appwrite-cli 17.3.0 → 17.4.0
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/README.md +2 -2
- package/dist/bundle-win-arm64.mjs +1558 -456
- package/dist/cli.cjs +1558 -456
- package/dist/index.cjs +1328 -303
- package/dist/index.js +1328 -303
- package/dist/lib/commands/init.d.ts.map +1 -1
- package/dist/lib/commands/pull.d.ts.map +1 -1
- package/dist/lib/commands/push.d.ts +2 -0
- package/dist/lib/commands/push.d.ts.map +1 -1
- package/dist/lib/commands/utils/deployment.d.ts.map +1 -1
- package/dist/lib/constants.d.ts +1 -1
- package/dist/lib/parser.d.ts +6 -2
- package/dist/lib/parser.d.ts.map +1 -1
- package/dist/lib/questions.d.ts +1 -0
- package/dist/lib/questions.d.ts.map +1 -1
- package/dist/lib/response-config.d.ts +7 -0
- package/dist/lib/response-config.d.ts.map +1 -0
- package/dist/lib/utils.d.ts +5 -0
- package/dist/lib/utils.d.ts.map +1 -1
- package/package.json +5 -3
package/dist/index.cjs
CHANGED
|
@@ -1704,14 +1704,14 @@ var require_templates = __commonJS({
|
|
|
1704
1704
|
}
|
|
1705
1705
|
return results;
|
|
1706
1706
|
}
|
|
1707
|
-
function buildStyle(
|
|
1707
|
+
function buildStyle(chalk10, styles) {
|
|
1708
1708
|
const enabled = {};
|
|
1709
1709
|
for (const layer of styles) {
|
|
1710
1710
|
for (const style of layer.styles) {
|
|
1711
1711
|
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
|
1712
1712
|
}
|
|
1713
1713
|
}
|
|
1714
|
-
let current =
|
|
1714
|
+
let current = chalk10;
|
|
1715
1715
|
for (const [styleName, styles2] of Object.entries(enabled)) {
|
|
1716
1716
|
if (!Array.isArray(styles2)) {
|
|
1717
1717
|
continue;
|
|
@@ -1723,7 +1723,7 @@ var require_templates = __commonJS({
|
|
|
1723
1723
|
}
|
|
1724
1724
|
return current;
|
|
1725
1725
|
}
|
|
1726
|
-
module2.exports = (
|
|
1726
|
+
module2.exports = (chalk10, temporary) => {
|
|
1727
1727
|
const styles = [];
|
|
1728
1728
|
const chunks = [];
|
|
1729
1729
|
let chunk = [];
|
|
@@ -1733,13 +1733,13 @@ var require_templates = __commonJS({
|
|
|
1733
1733
|
} else if (style) {
|
|
1734
1734
|
const string4 = chunk.join("");
|
|
1735
1735
|
chunk = [];
|
|
1736
|
-
chunks.push(styles.length === 0 ? string4 : buildStyle(
|
|
1736
|
+
chunks.push(styles.length === 0 ? string4 : buildStyle(chalk10, styles)(string4));
|
|
1737
1737
|
styles.push({ inverse, styles: parseStyle(style) });
|
|
1738
1738
|
} else if (close) {
|
|
1739
1739
|
if (styles.length === 0) {
|
|
1740
1740
|
throw new Error("Found extraneous } in Chalk template literal");
|
|
1741
1741
|
}
|
|
1742
|
-
chunks.push(buildStyle(
|
|
1742
|
+
chunks.push(buildStyle(chalk10, styles)(chunk.join("")));
|
|
1743
1743
|
chunk = [];
|
|
1744
1744
|
styles.pop();
|
|
1745
1745
|
} else {
|
|
@@ -1787,16 +1787,16 @@ var require_source = __commonJS({
|
|
|
1787
1787
|
}
|
|
1788
1788
|
};
|
|
1789
1789
|
var chalkFactory = (options) => {
|
|
1790
|
-
const
|
|
1791
|
-
applyOptions(
|
|
1792
|
-
|
|
1793
|
-
Object.setPrototypeOf(
|
|
1794
|
-
Object.setPrototypeOf(
|
|
1795
|
-
|
|
1790
|
+
const chalk11 = {};
|
|
1791
|
+
applyOptions(chalk11, options);
|
|
1792
|
+
chalk11.template = (...arguments_) => chalkTag(chalk11.template, ...arguments_);
|
|
1793
|
+
Object.setPrototypeOf(chalk11, Chalk.prototype);
|
|
1794
|
+
Object.setPrototypeOf(chalk11.template, chalk11);
|
|
1795
|
+
chalk11.template.constructor = () => {
|
|
1796
1796
|
throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
|
|
1797
1797
|
};
|
|
1798
|
-
|
|
1799
|
-
return
|
|
1798
|
+
chalk11.template.Instance = ChalkClass;
|
|
1799
|
+
return chalk11.template;
|
|
1800
1800
|
};
|
|
1801
1801
|
function Chalk(options) {
|
|
1802
1802
|
return chalkFactory(options);
|
|
@@ -1907,7 +1907,7 @@ var require_source = __commonJS({
|
|
|
1907
1907
|
return openAll + string4 + closeAll;
|
|
1908
1908
|
};
|
|
1909
1909
|
var template;
|
|
1910
|
-
var chalkTag = (
|
|
1910
|
+
var chalkTag = (chalk11, ...strings) => {
|
|
1911
1911
|
const [firstString] = strings;
|
|
1912
1912
|
if (!isArray(firstString) || !isArray(firstString.raw)) {
|
|
1913
1913
|
return strings.join(" ");
|
|
@@ -1923,14 +1923,14 @@ var require_source = __commonJS({
|
|
|
1923
1923
|
if (template === void 0) {
|
|
1924
1924
|
template = require_templates();
|
|
1925
1925
|
}
|
|
1926
|
-
return template(
|
|
1926
|
+
return template(chalk11, parts.join(""));
|
|
1927
1927
|
};
|
|
1928
1928
|
Object.defineProperties(Chalk.prototype, styles);
|
|
1929
|
-
var
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
module2.exports =
|
|
1929
|
+
var chalk10 = Chalk();
|
|
1930
|
+
chalk10.supportsColor = stdoutColor;
|
|
1931
|
+
chalk10.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
1932
|
+
chalk10.stderr.supportsColor = stderrColor;
|
|
1933
|
+
module2.exports = chalk10;
|
|
1934
1934
|
}
|
|
1935
1935
|
});
|
|
1936
1936
|
|
|
@@ -2098,12 +2098,12 @@ var require_figures = __commonJS({
|
|
|
2098
2098
|
var require_separator = __commonJS({
|
|
2099
2099
|
"node_modules/inquirer/lib/objects/separator.js"(exports2, module2) {
|
|
2100
2100
|
"use strict";
|
|
2101
|
-
var
|
|
2101
|
+
var chalk10 = require_source();
|
|
2102
2102
|
var figures = require_figures();
|
|
2103
2103
|
var Separator = class {
|
|
2104
2104
|
constructor(line) {
|
|
2105
2105
|
this.type = "separator";
|
|
2106
|
-
this.line =
|
|
2106
|
+
this.line = chalk10.dim(line || new Array(15).join(figures.line));
|
|
2107
2107
|
}
|
|
2108
2108
|
/**
|
|
2109
2109
|
* Stringify separator
|
|
@@ -16245,8 +16245,8 @@ var require_ansi_regex = __commonJS({
|
|
|
16245
16245
|
var require_strip_ansi = __commonJS({
|
|
16246
16246
|
"node_modules/strip-ansi/index.js"(exports2, module2) {
|
|
16247
16247
|
"use strict";
|
|
16248
|
-
var
|
|
16249
|
-
module2.exports = (string4) => typeof string4 === "string" ? string4.replace(
|
|
16248
|
+
var ansiRegex2 = require_ansi_regex();
|
|
16249
|
+
module2.exports = (string4) => typeof string4 === "string" ? string4.replace(ansiRegex2(), "") : string4;
|
|
16250
16250
|
}
|
|
16251
16251
|
});
|
|
16252
16252
|
|
|
@@ -16283,9 +16283,9 @@ var require_is_fullwidth_code_point = __commonJS({
|
|
|
16283
16283
|
}
|
|
16284
16284
|
});
|
|
16285
16285
|
|
|
16286
|
-
// node_modules/emoji-regex/index.js
|
|
16286
|
+
// node_modules/wrap-ansi/node_modules/string-width/node_modules/emoji-regex/index.js
|
|
16287
16287
|
var require_emoji_regex = __commonJS({
|
|
16288
|
-
"node_modules/emoji-regex/index.js"(exports2, module2) {
|
|
16288
|
+
"node_modules/wrap-ansi/node_modules/string-width/node_modules/emoji-regex/index.js"(exports2, module2) {
|
|
16289
16289
|
"use strict";
|
|
16290
16290
|
module2.exports = function() {
|
|
16291
16291
|
return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
|
|
@@ -16293,22 +16293,22 @@ var require_emoji_regex = __commonJS({
|
|
|
16293
16293
|
}
|
|
16294
16294
|
});
|
|
16295
16295
|
|
|
16296
|
-
// node_modules/string-width/index.js
|
|
16296
|
+
// node_modules/wrap-ansi/node_modules/string-width/index.js
|
|
16297
16297
|
var require_string_width = __commonJS({
|
|
16298
|
-
"node_modules/string-width/index.js"(exports2, module2) {
|
|
16298
|
+
"node_modules/wrap-ansi/node_modules/string-width/index.js"(exports2, module2) {
|
|
16299
16299
|
"use strict";
|
|
16300
|
-
var
|
|
16300
|
+
var stripAnsi2 = require_strip_ansi();
|
|
16301
16301
|
var isFullwidthCodePoint = require_is_fullwidth_code_point();
|
|
16302
|
-
var
|
|
16303
|
-
var
|
|
16302
|
+
var emojiRegex2 = require_emoji_regex();
|
|
16303
|
+
var stringWidth2 = (string4) => {
|
|
16304
16304
|
if (typeof string4 !== "string" || string4.length === 0) {
|
|
16305
16305
|
return 0;
|
|
16306
16306
|
}
|
|
16307
|
-
string4 =
|
|
16307
|
+
string4 = stripAnsi2(string4);
|
|
16308
16308
|
if (string4.length === 0) {
|
|
16309
16309
|
return 0;
|
|
16310
16310
|
}
|
|
16311
|
-
string4 = string4.replace(
|
|
16311
|
+
string4 = string4.replace(emojiRegex2(), " ");
|
|
16312
16312
|
let width = 0;
|
|
16313
16313
|
for (let i = 0; i < string4.length; i++) {
|
|
16314
16314
|
const code = string4.codePointAt(i);
|
|
@@ -16325,8 +16325,8 @@ var require_string_width = __commonJS({
|
|
|
16325
16325
|
}
|
|
16326
16326
|
return width;
|
|
16327
16327
|
};
|
|
16328
|
-
module2.exports =
|
|
16329
|
-
module2.exports.default =
|
|
16328
|
+
module2.exports = stringWidth2;
|
|
16329
|
+
module2.exports.default = stringWidth2;
|
|
16330
16330
|
}
|
|
16331
16331
|
});
|
|
16332
16332
|
|
|
@@ -16334,8 +16334,8 @@ var require_string_width = __commonJS({
|
|
|
16334
16334
|
var require_wrap_ansi = __commonJS({
|
|
16335
16335
|
"node_modules/wrap-ansi/index.js"(exports2, module2) {
|
|
16336
16336
|
"use strict";
|
|
16337
|
-
var
|
|
16338
|
-
var
|
|
16337
|
+
var stringWidth2 = require_string_width();
|
|
16338
|
+
var stripAnsi2 = require_strip_ansi();
|
|
16339
16339
|
var ansiStyles = require_ansi_styles();
|
|
16340
16340
|
var ESCAPES = /* @__PURE__ */ new Set([
|
|
16341
16341
|
"\x1B",
|
|
@@ -16343,13 +16343,13 @@ var require_wrap_ansi = __commonJS({
|
|
|
16343
16343
|
]);
|
|
16344
16344
|
var END_CODE = 39;
|
|
16345
16345
|
var wrapAnsi = (code) => `${ESCAPES.values().next().value}[${code}m`;
|
|
16346
|
-
var wordLengths = (string4) => string4.split(" ").map((character) =>
|
|
16346
|
+
var wordLengths = (string4) => string4.split(" ").map((character) => stringWidth2(character));
|
|
16347
16347
|
var wrapWord = (rows, word, columns) => {
|
|
16348
16348
|
const characters = [...word];
|
|
16349
16349
|
let isInsideEscape = false;
|
|
16350
|
-
let visible =
|
|
16350
|
+
let visible = stringWidth2(stripAnsi2(rows[rows.length - 1]));
|
|
16351
16351
|
for (const [index, character] of characters.entries()) {
|
|
16352
|
-
const characterLength =
|
|
16352
|
+
const characterLength = stringWidth2(character);
|
|
16353
16353
|
if (visible + characterLength <= columns) {
|
|
16354
16354
|
rows[rows.length - 1] += character;
|
|
16355
16355
|
} else {
|
|
@@ -16379,7 +16379,7 @@ var require_wrap_ansi = __commonJS({
|
|
|
16379
16379
|
const words = str.split(" ");
|
|
16380
16380
|
let last = words.length;
|
|
16381
16381
|
while (last > 0) {
|
|
16382
|
-
if (
|
|
16382
|
+
if (stringWidth2(words[last - 1]) > 0) {
|
|
16383
16383
|
break;
|
|
16384
16384
|
}
|
|
16385
16385
|
last--;
|
|
@@ -16402,7 +16402,7 @@ var require_wrap_ansi = __commonJS({
|
|
|
16402
16402
|
if (options.trim !== false) {
|
|
16403
16403
|
rows[rows.length - 1] = rows[rows.length - 1].trimLeft();
|
|
16404
16404
|
}
|
|
16405
|
-
let rowLength =
|
|
16405
|
+
let rowLength = stringWidth2(rows[rows.length - 1]);
|
|
16406
16406
|
if (index !== 0) {
|
|
16407
16407
|
if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
|
|
16408
16408
|
rows.push("");
|
|
@@ -16463,6 +16463,53 @@ var require_wrap_ansi = __commonJS({
|
|
|
16463
16463
|
}
|
|
16464
16464
|
});
|
|
16465
16465
|
|
|
16466
|
+
// node_modules/inquirer/node_modules/string-width/node_modules/emoji-regex/index.js
|
|
16467
|
+
var require_emoji_regex2 = __commonJS({
|
|
16468
|
+
"node_modules/inquirer/node_modules/string-width/node_modules/emoji-regex/index.js"(exports2, module2) {
|
|
16469
|
+
"use strict";
|
|
16470
|
+
module2.exports = function() {
|
|
16471
|
+
return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
|
|
16472
|
+
};
|
|
16473
|
+
}
|
|
16474
|
+
});
|
|
16475
|
+
|
|
16476
|
+
// node_modules/inquirer/node_modules/string-width/index.js
|
|
16477
|
+
var require_string_width2 = __commonJS({
|
|
16478
|
+
"node_modules/inquirer/node_modules/string-width/index.js"(exports2, module2) {
|
|
16479
|
+
"use strict";
|
|
16480
|
+
var stripAnsi2 = require_strip_ansi();
|
|
16481
|
+
var isFullwidthCodePoint = require_is_fullwidth_code_point();
|
|
16482
|
+
var emojiRegex2 = require_emoji_regex2();
|
|
16483
|
+
var stringWidth2 = (string4) => {
|
|
16484
|
+
if (typeof string4 !== "string" || string4.length === 0) {
|
|
16485
|
+
return 0;
|
|
16486
|
+
}
|
|
16487
|
+
string4 = stripAnsi2(string4);
|
|
16488
|
+
if (string4.length === 0) {
|
|
16489
|
+
return 0;
|
|
16490
|
+
}
|
|
16491
|
+
string4 = string4.replace(emojiRegex2(), " ");
|
|
16492
|
+
let width = 0;
|
|
16493
|
+
for (let i = 0; i < string4.length; i++) {
|
|
16494
|
+
const code = string4.codePointAt(i);
|
|
16495
|
+
if (code <= 31 || code >= 127 && code <= 159) {
|
|
16496
|
+
continue;
|
|
16497
|
+
}
|
|
16498
|
+
if (code >= 768 && code <= 879) {
|
|
16499
|
+
continue;
|
|
16500
|
+
}
|
|
16501
|
+
if (code > 65535) {
|
|
16502
|
+
i++;
|
|
16503
|
+
}
|
|
16504
|
+
width += isFullwidthCodePoint(code) ? 2 : 1;
|
|
16505
|
+
}
|
|
16506
|
+
return width;
|
|
16507
|
+
};
|
|
16508
|
+
module2.exports = stringWidth2;
|
|
16509
|
+
module2.exports.default = stringWidth2;
|
|
16510
|
+
}
|
|
16511
|
+
});
|
|
16512
|
+
|
|
16466
16513
|
// node_modules/cli-spinners/spinners.json
|
|
16467
16514
|
var require_spinners = __commonJS({
|
|
16468
16515
|
"node_modules/cli-spinners/spinners.json"(exports2, module2) {
|
|
@@ -18126,19 +18173,19 @@ var require_is_unicode_supported = __commonJS({
|
|
|
18126
18173
|
var require_log_symbols = __commonJS({
|
|
18127
18174
|
"node_modules/log-symbols/index.js"(exports2, module2) {
|
|
18128
18175
|
"use strict";
|
|
18129
|
-
var
|
|
18176
|
+
var chalk10 = require_source();
|
|
18130
18177
|
var isUnicodeSupported = require_is_unicode_supported();
|
|
18131
18178
|
var main = {
|
|
18132
|
-
info:
|
|
18133
|
-
success:
|
|
18134
|
-
warning:
|
|
18135
|
-
error:
|
|
18179
|
+
info: chalk10.blue("\u2139"),
|
|
18180
|
+
success: chalk10.green("\u2714"),
|
|
18181
|
+
warning: chalk10.yellow("\u26A0"),
|
|
18182
|
+
error: chalk10.red("\u2716")
|
|
18136
18183
|
};
|
|
18137
18184
|
var fallback = {
|
|
18138
|
-
info:
|
|
18139
|
-
success:
|
|
18140
|
-
warning:
|
|
18141
|
-
error:
|
|
18185
|
+
info: chalk10.blue("i"),
|
|
18186
|
+
success: chalk10.green("\u221A"),
|
|
18187
|
+
warning: chalk10.yellow("\u203C"),
|
|
18188
|
+
error: chalk10.red("\xD7")
|
|
18142
18189
|
};
|
|
18143
18190
|
module2.exports = isUnicodeSupported() ? main : fallback;
|
|
18144
18191
|
}
|
|
@@ -21606,11 +21653,11 @@ var require_ora = __commonJS({
|
|
|
21606
21653
|
"node_modules/ora/index.js"(exports2, module2) {
|
|
21607
21654
|
"use strict";
|
|
21608
21655
|
var readline = require("readline");
|
|
21609
|
-
var
|
|
21656
|
+
var chalk10 = require_source();
|
|
21610
21657
|
var cliCursor = require_cli_cursor();
|
|
21611
21658
|
var cliSpinners = require_cli_spinners();
|
|
21612
21659
|
var logSymbols = require_log_symbols();
|
|
21613
|
-
var
|
|
21660
|
+
var stripAnsi2 = require_strip_ansi();
|
|
21614
21661
|
var wcwidth = require_wcwidth();
|
|
21615
21662
|
var isInteractive = require_is_interactive();
|
|
21616
21663
|
var isUnicodeSupported = require_is_unicode_supported();
|
|
@@ -21777,7 +21824,7 @@ var require_ora = __commonJS({
|
|
|
21777
21824
|
const columns = this.stream.columns || 80;
|
|
21778
21825
|
const fullPrefixText = this.getFullPrefixText(this.prefixText, "-");
|
|
21779
21826
|
this.lineCount = 0;
|
|
21780
|
-
for (const line of
|
|
21827
|
+
for (const line of stripAnsi2(fullPrefixText + "--" + this[TEXT]).split("\n")) {
|
|
21781
21828
|
this.lineCount += Math.max(1, Math.ceil(wcwidth(line) / columns));
|
|
21782
21829
|
}
|
|
21783
21830
|
}
|
|
@@ -21803,7 +21850,7 @@ var require_ora = __commonJS({
|
|
|
21803
21850
|
const { frames } = this.spinner;
|
|
21804
21851
|
let frame = frames[this.frameIndex];
|
|
21805
21852
|
if (this.color) {
|
|
21806
|
-
frame =
|
|
21853
|
+
frame = chalk10[this.color](frame);
|
|
21807
21854
|
}
|
|
21808
21855
|
this.frameIndex = ++this.frameIndex % frames.length;
|
|
21809
21856
|
const fullPrefixText = typeof this.prefixText === "string" && this.prefixText !== "" ? this.prefixText + " " : "";
|
|
@@ -21933,8 +21980,8 @@ var require_screen_manager = __commonJS({
|
|
|
21933
21980
|
var util = require_readline();
|
|
21934
21981
|
var cliWidth = require_cli_width();
|
|
21935
21982
|
var wrapAnsi = require_wrap_ansi();
|
|
21936
|
-
var
|
|
21937
|
-
var
|
|
21983
|
+
var stripAnsi2 = require_strip_ansi();
|
|
21984
|
+
var stringWidth2 = require_string_width2();
|
|
21938
21985
|
var ora = require_ora();
|
|
21939
21986
|
function height(content) {
|
|
21940
21987
|
return content.split("\n").length;
|
|
@@ -21976,7 +22023,7 @@ var require_screen_manager = __commonJS({
|
|
|
21976
22023
|
this.rl.output.unmute();
|
|
21977
22024
|
this.clean(this.extraLinesUnderPrompt);
|
|
21978
22025
|
const promptLine = lastLine(content);
|
|
21979
|
-
const rawPromptLine =
|
|
22026
|
+
const rawPromptLine = stripAnsi2(promptLine);
|
|
21980
22027
|
let prompt = rawPromptLine;
|
|
21981
22028
|
if (this.rl.line.length) {
|
|
21982
22029
|
prompt = prompt.slice(0, -this.rl.line.length);
|
|
@@ -21998,7 +22045,7 @@ var require_screen_manager = __commonJS({
|
|
|
21998
22045
|
if (bottomContentHeight > 0) {
|
|
21999
22046
|
util.up(this.rl, bottomContentHeight);
|
|
22000
22047
|
}
|
|
22001
|
-
util.left(this.rl,
|
|
22048
|
+
util.left(this.rl, stringWidth2(lastLine(fullContent)));
|
|
22002
22049
|
if (cursorPos.cols > 0) {
|
|
22003
22050
|
util.right(this.rl, cursorPos.cols);
|
|
22004
22051
|
}
|
|
@@ -22056,7 +22103,7 @@ var require_base = __commonJS({
|
|
|
22056
22103
|
defaults: require_defaults(),
|
|
22057
22104
|
clone: require_clone()
|
|
22058
22105
|
};
|
|
22059
|
-
var
|
|
22106
|
+
var chalk10 = require_source();
|
|
22060
22107
|
var runAsync = require_run_async();
|
|
22061
22108
|
var { filter, flatMap, share, take, takeUntil } = require_operators();
|
|
22062
22109
|
var Choices = require_choices();
|
|
@@ -22074,7 +22121,7 @@ var require_base = __commonJS({
|
|
|
22074
22121
|
filteringText: "",
|
|
22075
22122
|
when: () => true,
|
|
22076
22123
|
suffix: "",
|
|
22077
|
-
prefix:
|
|
22124
|
+
prefix: chalk10.green("?")
|
|
22078
22125
|
});
|
|
22079
22126
|
if (!this.opt.name) {
|
|
22080
22127
|
this.throwParamError("name");
|
|
@@ -22125,7 +22172,7 @@ var require_base = __commonJS({
|
|
|
22125
22172
|
*/
|
|
22126
22173
|
handleSubmitEvents(submit) {
|
|
22127
22174
|
const self2 = this;
|
|
22128
|
-
const
|
|
22175
|
+
const validate2 = runAsync(this.opt.validate);
|
|
22129
22176
|
const asyncFilter = runAsync(this.opt.filter);
|
|
22130
22177
|
const validation = submit.pipe(
|
|
22131
22178
|
flatMap((value) => {
|
|
@@ -22133,7 +22180,7 @@ var require_base = __commonJS({
|
|
|
22133
22180
|
return asyncFilter(value, self2.answers).then(
|
|
22134
22181
|
(filteredValue) => {
|
|
22135
22182
|
this.startSpinner(filteredValue, this.opt.validatingText);
|
|
22136
|
-
return
|
|
22183
|
+
return validate2(filteredValue, self2.answers).then(
|
|
22137
22184
|
(isValid) => ({ isValid, value: filteredValue }),
|
|
22138
22185
|
(err) => ({ isValid: err, value: filteredValue })
|
|
22139
22186
|
);
|
|
@@ -22175,12 +22222,12 @@ var require_base = __commonJS({
|
|
|
22175
22222
|
* @return {String} prompt question string
|
|
22176
22223
|
*/
|
|
22177
22224
|
getQuestion() {
|
|
22178
|
-
let message = (this.opt.prefix ? this.opt.prefix + " " : "") +
|
|
22225
|
+
let message = (this.opt.prefix ? this.opt.prefix + " " : "") + chalk10.bold(this.opt.message) + this.opt.suffix + chalk10.reset(" ");
|
|
22179
22226
|
if (this.opt.default != null && this.status !== "touched" && this.status !== "answered") {
|
|
22180
22227
|
if (this.opt.type === "password") {
|
|
22181
|
-
message +=
|
|
22228
|
+
message += chalk10.italic.dim("[hidden] ");
|
|
22182
22229
|
} else {
|
|
22183
|
-
message +=
|
|
22230
|
+
message += chalk10.dim("(" + this.opt.default + ") ");
|
|
22184
22231
|
}
|
|
22185
22232
|
}
|
|
22186
22233
|
return message;
|
|
@@ -22242,7 +22289,7 @@ var require_events = __commonJS({
|
|
|
22242
22289
|
var require_paginator = __commonJS({
|
|
22243
22290
|
"node_modules/inquirer/lib/utils/paginator.js"(exports2, module2) {
|
|
22244
22291
|
"use strict";
|
|
22245
|
-
var
|
|
22292
|
+
var chalk10 = require_source();
|
|
22246
22293
|
var Paginator = class {
|
|
22247
22294
|
/**
|
|
22248
22295
|
* @param {import("./screen-manager")} [screen]
|
|
@@ -22267,7 +22314,7 @@ var require_paginator = __commonJS({
|
|
|
22267
22314
|
}
|
|
22268
22315
|
const visibleLines = this.isInfinite ? this.getInfiniteLines(lines, active, pageSize) : this.getFiniteLines(lines, active, pageSize);
|
|
22269
22316
|
this.lastIndex = active;
|
|
22270
|
-
return visibleLines.join("\n") + "\n" +
|
|
22317
|
+
return visibleLines.join("\n") + "\n" + chalk10.dim("(Move up and down to reveal more choices)");
|
|
22271
22318
|
}
|
|
22272
22319
|
getInfiniteLines(lines, active, pageSize) {
|
|
22273
22320
|
if (this.pointer === void 0) {
|
|
@@ -22323,7 +22370,7 @@ var require_incrementListIndex = __commonJS({
|
|
|
22323
22370
|
var require_list = __commonJS({
|
|
22324
22371
|
"node_modules/inquirer/lib/prompts/list.js"(exports2, module2) {
|
|
22325
22372
|
"use strict";
|
|
22326
|
-
var
|
|
22373
|
+
var chalk10 = require_source();
|
|
22327
22374
|
var figures = require_figures();
|
|
22328
22375
|
var cliCursor = require_cli_cursor();
|
|
22329
22376
|
var runAsync = require_run_async();
|
|
@@ -22381,10 +22428,10 @@ var require_list = __commonJS({
|
|
|
22381
22428
|
render() {
|
|
22382
22429
|
let message = this.getQuestion();
|
|
22383
22430
|
if (this.firstRender) {
|
|
22384
|
-
message +=
|
|
22431
|
+
message += chalk10.dim("(Use arrow keys)");
|
|
22385
22432
|
}
|
|
22386
22433
|
if (this.status === "answered") {
|
|
22387
|
-
message +=
|
|
22434
|
+
message += chalk10.cyan(this.opt.choices.getChoice(this.selected).short);
|
|
22388
22435
|
} else {
|
|
22389
22436
|
const choicesStr = listRender(this.opt.choices, this.selected);
|
|
22390
22437
|
const indexPosition = this.opt.choices.indexOf(
|
|
@@ -22459,7 +22506,7 @@ var require_list = __commonJS({
|
|
|
22459
22506
|
const isSelected = i - separatorOffset === pointer;
|
|
22460
22507
|
let line = (isSelected ? figures.pointer + " " : " ") + choice.name;
|
|
22461
22508
|
if (isSelected) {
|
|
22462
|
-
line =
|
|
22509
|
+
line = chalk10.cyan(line);
|
|
22463
22510
|
}
|
|
22464
22511
|
output += line + " \n";
|
|
22465
22512
|
});
|
|
@@ -22473,7 +22520,7 @@ var require_list = __commonJS({
|
|
|
22473
22520
|
var require_input = __commonJS({
|
|
22474
22521
|
"node_modules/inquirer/lib/prompts/input.js"(exports2, module2) {
|
|
22475
22522
|
"use strict";
|
|
22476
|
-
var
|
|
22523
|
+
var chalk10 = require_source();
|
|
22477
22524
|
var { map: map2, takeUntil } = require_operators();
|
|
22478
22525
|
var Base = require_base();
|
|
22479
22526
|
var observe = require_events();
|
|
@@ -22512,10 +22559,10 @@ var require_input = __commonJS({
|
|
|
22512
22559
|
if (transformer) {
|
|
22513
22560
|
message += transformer(appendContent, this.answers, { isFinal });
|
|
22514
22561
|
} else {
|
|
22515
|
-
message += isFinal ?
|
|
22562
|
+
message += isFinal ? chalk10.cyan(appendContent) : appendContent;
|
|
22516
22563
|
}
|
|
22517
22564
|
if (error49) {
|
|
22518
|
-
bottomContent =
|
|
22565
|
+
bottomContent = chalk10.red(">> ") + error49;
|
|
22519
22566
|
}
|
|
22520
22567
|
this.screen.render(message, bottomContent);
|
|
22521
22568
|
}
|
|
@@ -22577,7 +22624,7 @@ var require_number = __commonJS({
|
|
|
22577
22624
|
var require_confirm = __commonJS({
|
|
22578
22625
|
"node_modules/inquirer/lib/prompts/confirm.js"(exports2, module2) {
|
|
22579
22626
|
"use strict";
|
|
22580
|
-
var
|
|
22627
|
+
var chalk10 = require_source();
|
|
22581
22628
|
var { take, takeUntil } = require_operators();
|
|
22582
22629
|
var Base = require_base();
|
|
22583
22630
|
var observe = require_events();
|
|
@@ -22619,7 +22666,7 @@ var require_confirm = __commonJS({
|
|
|
22619
22666
|
render(answer) {
|
|
22620
22667
|
let message = this.getQuestion();
|
|
22621
22668
|
if (typeof answer === "boolean") {
|
|
22622
|
-
message +=
|
|
22669
|
+
message += chalk10.cyan(answer ? "Yes" : "No");
|
|
22623
22670
|
} else {
|
|
22624
22671
|
message += this.rl.line;
|
|
22625
22672
|
}
|
|
@@ -22651,7 +22698,7 @@ var require_confirm = __commonJS({
|
|
|
22651
22698
|
var require_rawlist = __commonJS({
|
|
22652
22699
|
"node_modules/inquirer/lib/prompts/rawlist.js"(exports2, module2) {
|
|
22653
22700
|
"use strict";
|
|
22654
|
-
var
|
|
22701
|
+
var chalk10 = require_source();
|
|
22655
22702
|
var { map: map2, takeUntil } = require_operators();
|
|
22656
22703
|
var Base = require_base();
|
|
22657
22704
|
var Separator = require_separator();
|
|
@@ -22714,7 +22761,7 @@ var require_rawlist = __commonJS({
|
|
|
22714
22761
|
let message = this.getQuestion();
|
|
22715
22762
|
let bottomContent = "";
|
|
22716
22763
|
if (this.status === "answered") {
|
|
22717
|
-
message +=
|
|
22764
|
+
message += chalk10.cyan(this.opt.choices.getChoice(this.selected).short);
|
|
22718
22765
|
} else {
|
|
22719
22766
|
const choicesStr = renderChoices(this.opt.choices, this.selected);
|
|
22720
22767
|
message += "\n" + this.paginator.paginate(choicesStr, this.selected, this.opt.pageSize);
|
|
@@ -22722,7 +22769,7 @@ var require_rawlist = __commonJS({
|
|
|
22722
22769
|
}
|
|
22723
22770
|
message += this.rl.line;
|
|
22724
22771
|
if (error49) {
|
|
22725
|
-
bottomContent = "\n" +
|
|
22772
|
+
bottomContent = "\n" + chalk10.red(">> ") + error49;
|
|
22726
22773
|
}
|
|
22727
22774
|
this.screen.render(message, bottomContent);
|
|
22728
22775
|
}
|
|
@@ -22805,7 +22852,7 @@ var require_rawlist = __commonJS({
|
|
|
22805
22852
|
const index = i - separatorOffset;
|
|
22806
22853
|
let display = index + 1 + ") " + choice.name;
|
|
22807
22854
|
if (index === pointer) {
|
|
22808
|
-
display =
|
|
22855
|
+
display = chalk10.cyan(display);
|
|
22809
22856
|
}
|
|
22810
22857
|
output += display;
|
|
22811
22858
|
});
|
|
@@ -22819,7 +22866,7 @@ var require_rawlist = __commonJS({
|
|
|
22819
22866
|
var require_expand2 = __commonJS({
|
|
22820
22867
|
"node_modules/inquirer/lib/prompts/expand.js"(exports2, module2) {
|
|
22821
22868
|
"use strict";
|
|
22822
|
-
var
|
|
22869
|
+
var chalk10 = require_source();
|
|
22823
22870
|
var { map: map2, takeUntil } = require_operators();
|
|
22824
22871
|
var Base = require_base();
|
|
22825
22872
|
var Separator = require_separator();
|
|
@@ -22871,7 +22918,7 @@ var require_expand2 = __commonJS({
|
|
|
22871
22918
|
let message = this.getQuestion();
|
|
22872
22919
|
let bottomContent = "";
|
|
22873
22920
|
if (this.status === "answered") {
|
|
22874
|
-
message +=
|
|
22921
|
+
message += chalk10.cyan(this.answer);
|
|
22875
22922
|
} else if (this.status === "expanded") {
|
|
22876
22923
|
const choicesStr = renderChoices(this.opt.choices, this.selectedKey);
|
|
22877
22924
|
message += this.paginator.paginate(choicesStr, this.selectedKey, this.opt.pageSize);
|
|
@@ -22879,10 +22926,10 @@ var require_expand2 = __commonJS({
|
|
|
22879
22926
|
}
|
|
22880
22927
|
message += this.rl.line;
|
|
22881
22928
|
if (error49) {
|
|
22882
|
-
bottomContent =
|
|
22929
|
+
bottomContent = chalk10.red(">> ") + error49;
|
|
22883
22930
|
}
|
|
22884
22931
|
if (hint2) {
|
|
22885
|
-
bottomContent =
|
|
22932
|
+
bottomContent = chalk10.cyan(">> ") + hint2;
|
|
22886
22933
|
}
|
|
22887
22934
|
this.screen.render(message, bottomContent);
|
|
22888
22935
|
}
|
|
@@ -22910,7 +22957,7 @@ var require_expand2 = __commonJS({
|
|
|
22910
22957
|
}
|
|
22911
22958
|
let choiceStr = choice.key + ") " + choice.name;
|
|
22912
22959
|
if (this.selectedKey === choice.key) {
|
|
22913
|
-
choiceStr =
|
|
22960
|
+
choiceStr = chalk10.cyan(choiceStr);
|
|
22914
22961
|
}
|
|
22915
22962
|
output += choiceStr;
|
|
22916
22963
|
});
|
|
@@ -23012,7 +23059,7 @@ var require_expand2 = __commonJS({
|
|
|
23012
23059
|
}
|
|
23013
23060
|
let choiceStr = choice.key + ") " + choice.name;
|
|
23014
23061
|
if (pointer === choice.key) {
|
|
23015
|
-
choiceStr =
|
|
23062
|
+
choiceStr = chalk10.cyan(choiceStr);
|
|
23016
23063
|
}
|
|
23017
23064
|
output += choiceStr;
|
|
23018
23065
|
});
|
|
@@ -23026,7 +23073,7 @@ var require_expand2 = __commonJS({
|
|
|
23026
23073
|
var require_checkbox = __commonJS({
|
|
23027
23074
|
"node_modules/inquirer/lib/prompts/checkbox.js"(exports2, module2) {
|
|
23028
23075
|
"use strict";
|
|
23029
|
-
var
|
|
23076
|
+
var chalk10 = require_source();
|
|
23030
23077
|
var cliCursor = require_cli_cursor();
|
|
23031
23078
|
var figures = require_figures();
|
|
23032
23079
|
var { map: map2, takeUntil } = require_operators();
|
|
@@ -23084,10 +23131,10 @@ var require_checkbox = __commonJS({
|
|
|
23084
23131
|
let message = this.getQuestion();
|
|
23085
23132
|
let bottomContent = "";
|
|
23086
23133
|
if (!this.dontShowHints) {
|
|
23087
|
-
message += "(Press " +
|
|
23134
|
+
message += "(Press " + chalk10.cyan.bold("<space>") + " to select, " + chalk10.cyan.bold("<a>") + " to toggle all, " + chalk10.cyan.bold("<i>") + " to invert selection, and " + chalk10.cyan.bold("<enter>") + " to proceed)";
|
|
23088
23135
|
}
|
|
23089
23136
|
if (this.status === "answered") {
|
|
23090
|
-
message +=
|
|
23137
|
+
message += chalk10.cyan(this.selection.join(", "));
|
|
23091
23138
|
} else {
|
|
23092
23139
|
const choicesStr = renderChoices(this.opt.choices, this.pointer);
|
|
23093
23140
|
const indexPosition = this.opt.choices.indexOf(
|
|
@@ -23110,7 +23157,7 @@ var require_checkbox = __commonJS({
|
|
|
23110
23157
|
message += "\n" + this.paginator.paginate(choicesStr, realIndexPosition, this.opt.pageSize);
|
|
23111
23158
|
}
|
|
23112
23159
|
if (error49) {
|
|
23113
|
-
bottomContent =
|
|
23160
|
+
bottomContent = chalk10.red(">> ") + error49;
|
|
23114
23161
|
}
|
|
23115
23162
|
this.screen.render(message, bottomContent);
|
|
23116
23163
|
}
|
|
@@ -23196,7 +23243,7 @@ var require_checkbox = __commonJS({
|
|
|
23196
23243
|
} else {
|
|
23197
23244
|
const line = getCheckbox(choice.checked) + " " + choice.name;
|
|
23198
23245
|
if (i - separatorOffset === pointer) {
|
|
23199
|
-
output +=
|
|
23246
|
+
output += chalk10.cyan(figures.pointer + line);
|
|
23200
23247
|
} else {
|
|
23201
23248
|
output += " " + line;
|
|
23202
23249
|
}
|
|
@@ -23206,7 +23253,7 @@ var require_checkbox = __commonJS({
|
|
|
23206
23253
|
return output.replace(/\n$/, "");
|
|
23207
23254
|
}
|
|
23208
23255
|
function getCheckbox(checked) {
|
|
23209
|
-
return checked ?
|
|
23256
|
+
return checked ? chalk10.green(figures.radioOn) : figures.radioOff;
|
|
23210
23257
|
}
|
|
23211
23258
|
module2.exports = CheckboxPrompt;
|
|
23212
23259
|
}
|
|
@@ -23216,7 +23263,7 @@ var require_checkbox = __commonJS({
|
|
|
23216
23263
|
var require_password = __commonJS({
|
|
23217
23264
|
"node_modules/inquirer/lib/prompts/password.js"(exports2, module2) {
|
|
23218
23265
|
"use strict";
|
|
23219
|
-
var
|
|
23266
|
+
var chalk10 = require_source();
|
|
23220
23267
|
var { map: map2, takeUntil } = require_operators();
|
|
23221
23268
|
var Base = require_base();
|
|
23222
23269
|
var observe = require_events();
|
|
@@ -23258,15 +23305,15 @@ var require_password = __commonJS({
|
|
|
23258
23305
|
message += this.getMaskedValue(this.rl.line || "");
|
|
23259
23306
|
}
|
|
23260
23307
|
if (error49) {
|
|
23261
|
-
bottomContent = "\n" +
|
|
23308
|
+
bottomContent = "\n" + chalk10.red(">> ") + error49;
|
|
23262
23309
|
}
|
|
23263
23310
|
this.screen.render(message, bottomContent);
|
|
23264
23311
|
}
|
|
23265
23312
|
getMaskedValue(value) {
|
|
23266
23313
|
if (this.status === "answered") {
|
|
23267
|
-
return this.opt.mask ?
|
|
23314
|
+
return this.opt.mask ? chalk10.cyan(mask(value, this.opt.mask)) : chalk10.italic.dim("[hidden]");
|
|
23268
23315
|
}
|
|
23269
|
-
return this.opt.mask ? mask(value, this.opt.mask) :
|
|
23316
|
+
return this.opt.mask ? mask(value, this.opt.mask) : chalk10.italic.dim("[input is hidden] ");
|
|
23270
23317
|
}
|
|
23271
23318
|
/**
|
|
23272
23319
|
* Mask value during async filter/validation.
|
|
@@ -32988,7 +33035,7 @@ var require_commonjs = __commonJS({
|
|
|
32988
33035
|
var require_editor = __commonJS({
|
|
32989
33036
|
"node_modules/inquirer/lib/prompts/editor.js"(exports2, module2) {
|
|
32990
33037
|
"use strict";
|
|
32991
|
-
var
|
|
33038
|
+
var chalk10 = require_source();
|
|
32992
33039
|
var { editAsync } = require_commonjs();
|
|
32993
33040
|
var Base = require_base();
|
|
32994
33041
|
var observe = require_events();
|
|
@@ -33020,12 +33067,12 @@ var require_editor = __commonJS({
|
|
|
33020
33067
|
let bottomContent = "";
|
|
33021
33068
|
let message = this.getQuestion();
|
|
33022
33069
|
if (this.status === "answered") {
|
|
33023
|
-
message +=
|
|
33070
|
+
message += chalk10.dim("Received");
|
|
33024
33071
|
} else {
|
|
33025
|
-
message +=
|
|
33072
|
+
message += chalk10.dim("Press <enter> to launch your preferred editor.");
|
|
33026
33073
|
}
|
|
33027
33074
|
if (error49) {
|
|
33028
|
-
bottomContent =
|
|
33075
|
+
bottomContent = chalk10.red(">> ") + error49;
|
|
33029
33076
|
}
|
|
33030
33077
|
this.screen.render(message, bottomContent);
|
|
33031
33078
|
}
|
|
@@ -33636,8 +33683,8 @@ var require_help = __commonJS({
|
|
|
33636
33683
|
const leadingStr = str.slice(0, indent);
|
|
33637
33684
|
const columnText = str.slice(indent);
|
|
33638
33685
|
const indentString = " ".repeat(indent);
|
|
33639
|
-
const
|
|
33640
|
-
const lines = columnText.match(
|
|
33686
|
+
const regex2 = new RegExp(".{1," + (columnWidth - 1) + "}([\\s\u200B]|$)|[^\\s\u200B]+?([\\s\u200B]|$)", "g");
|
|
33687
|
+
const lines = columnText.match(regex2) || [];
|
|
33641
33688
|
return leadingStr + lines.map((line, i) => {
|
|
33642
33689
|
if (line.slice(-1) === "\n") {
|
|
33643
33690
|
line = line.slice(0, line.length - 1);
|
|
@@ -34514,9 +34561,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
34514
34561
|
if (typeof fn2 === "function") {
|
|
34515
34562
|
option.default(defaultValue).argParser(fn2);
|
|
34516
34563
|
} else if (fn2 instanceof RegExp) {
|
|
34517
|
-
const
|
|
34564
|
+
const regex2 = fn2;
|
|
34518
34565
|
fn2 = (val, def) => {
|
|
34519
|
-
const m2 =
|
|
34566
|
+
const m2 = regex2.exec(val);
|
|
34520
34567
|
return m2 ? m2[0] : def;
|
|
34521
34568
|
};
|
|
34522
34569
|
option.default(defaultValue).argParser(fn2);
|
|
@@ -37772,6 +37819,53 @@ var require_terminal = __commonJS({
|
|
|
37772
37819
|
}
|
|
37773
37820
|
});
|
|
37774
37821
|
|
|
37822
|
+
// node_modules/cli-progress/node_modules/string-width/node_modules/emoji-regex/index.js
|
|
37823
|
+
var require_emoji_regex3 = __commonJS({
|
|
37824
|
+
"node_modules/cli-progress/node_modules/string-width/node_modules/emoji-regex/index.js"(exports2, module2) {
|
|
37825
|
+
"use strict";
|
|
37826
|
+
module2.exports = function() {
|
|
37827
|
+
return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
|
|
37828
|
+
};
|
|
37829
|
+
}
|
|
37830
|
+
});
|
|
37831
|
+
|
|
37832
|
+
// node_modules/cli-progress/node_modules/string-width/index.js
|
|
37833
|
+
var require_string_width3 = __commonJS({
|
|
37834
|
+
"node_modules/cli-progress/node_modules/string-width/index.js"(exports2, module2) {
|
|
37835
|
+
"use strict";
|
|
37836
|
+
var stripAnsi2 = require_strip_ansi();
|
|
37837
|
+
var isFullwidthCodePoint = require_is_fullwidth_code_point();
|
|
37838
|
+
var emojiRegex2 = require_emoji_regex3();
|
|
37839
|
+
var stringWidth2 = (string4) => {
|
|
37840
|
+
if (typeof string4 !== "string" || string4.length === 0) {
|
|
37841
|
+
return 0;
|
|
37842
|
+
}
|
|
37843
|
+
string4 = stripAnsi2(string4);
|
|
37844
|
+
if (string4.length === 0) {
|
|
37845
|
+
return 0;
|
|
37846
|
+
}
|
|
37847
|
+
string4 = string4.replace(emojiRegex2(), " ");
|
|
37848
|
+
let width = 0;
|
|
37849
|
+
for (let i = 0; i < string4.length; i++) {
|
|
37850
|
+
const code = string4.codePointAt(i);
|
|
37851
|
+
if (code <= 31 || code >= 127 && code <= 159) {
|
|
37852
|
+
continue;
|
|
37853
|
+
}
|
|
37854
|
+
if (code >= 768 && code <= 879) {
|
|
37855
|
+
continue;
|
|
37856
|
+
}
|
|
37857
|
+
if (code > 65535) {
|
|
37858
|
+
i++;
|
|
37859
|
+
}
|
|
37860
|
+
width += isFullwidthCodePoint(code) ? 2 : 1;
|
|
37861
|
+
}
|
|
37862
|
+
return width;
|
|
37863
|
+
};
|
|
37864
|
+
module2.exports = stringWidth2;
|
|
37865
|
+
module2.exports.default = stringWidth2;
|
|
37866
|
+
}
|
|
37867
|
+
});
|
|
37868
|
+
|
|
37775
37869
|
// node_modules/cli-progress/lib/format-value.js
|
|
37776
37870
|
var require_format_value = __commonJS({
|
|
37777
37871
|
"node_modules/cli-progress/lib/format-value.js"(exports2, module2) {
|
|
@@ -37833,7 +37927,7 @@ var require_format_time = __commonJS({
|
|
|
37833
37927
|
// node_modules/cli-progress/lib/formatter.js
|
|
37834
37928
|
var require_formatter = __commonJS({
|
|
37835
37929
|
"node_modules/cli-progress/lib/formatter.js"(exports2, module2) {
|
|
37836
|
-
var _stringWidth =
|
|
37930
|
+
var _stringWidth = require_string_width3();
|
|
37837
37931
|
var _defaultFormatValue = require_format_value();
|
|
37838
37932
|
var _defaultFormatBar = require_format_bar();
|
|
37839
37933
|
var _defaultFormatTime = require_format_time();
|
|
@@ -38609,8 +38703,8 @@ var require_ignore = __commonJS({
|
|
|
38609
38703
|
// It does not need to bind pattern
|
|
38610
38704
|
TRAILING_WILD_CARD_REPLACERS[mode]
|
|
38611
38705
|
);
|
|
38612
|
-
const
|
|
38613
|
-
return define2(this, key,
|
|
38706
|
+
const regex2 = this.ignoreCase ? new RegExp(str, "i") : new RegExp(str);
|
|
38707
|
+
return define2(this, key, regex2);
|
|
38614
38708
|
}
|
|
38615
38709
|
};
|
|
38616
38710
|
var createRule = ({
|
|
@@ -38858,10 +38952,57 @@ var require_debug = __commonJS({
|
|
|
38858
38952
|
}
|
|
38859
38953
|
});
|
|
38860
38954
|
|
|
38955
|
+
// node_modules/cli-table3/node_modules/string-width/node_modules/emoji-regex/index.js
|
|
38956
|
+
var require_emoji_regex4 = __commonJS({
|
|
38957
|
+
"node_modules/cli-table3/node_modules/string-width/node_modules/emoji-regex/index.js"(exports2, module2) {
|
|
38958
|
+
"use strict";
|
|
38959
|
+
module2.exports = function() {
|
|
38960
|
+
return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
|
|
38961
|
+
};
|
|
38962
|
+
}
|
|
38963
|
+
});
|
|
38964
|
+
|
|
38965
|
+
// node_modules/cli-table3/node_modules/string-width/index.js
|
|
38966
|
+
var require_string_width4 = __commonJS({
|
|
38967
|
+
"node_modules/cli-table3/node_modules/string-width/index.js"(exports2, module2) {
|
|
38968
|
+
"use strict";
|
|
38969
|
+
var stripAnsi2 = require_strip_ansi();
|
|
38970
|
+
var isFullwidthCodePoint = require_is_fullwidth_code_point();
|
|
38971
|
+
var emojiRegex2 = require_emoji_regex4();
|
|
38972
|
+
var stringWidth2 = (string4) => {
|
|
38973
|
+
if (typeof string4 !== "string" || string4.length === 0) {
|
|
38974
|
+
return 0;
|
|
38975
|
+
}
|
|
38976
|
+
string4 = stripAnsi2(string4);
|
|
38977
|
+
if (string4.length === 0) {
|
|
38978
|
+
return 0;
|
|
38979
|
+
}
|
|
38980
|
+
string4 = string4.replace(emojiRegex2(), " ");
|
|
38981
|
+
let width = 0;
|
|
38982
|
+
for (let i = 0; i < string4.length; i++) {
|
|
38983
|
+
const code = string4.codePointAt(i);
|
|
38984
|
+
if (code <= 31 || code >= 127 && code <= 159) {
|
|
38985
|
+
continue;
|
|
38986
|
+
}
|
|
38987
|
+
if (code >= 768 && code <= 879) {
|
|
38988
|
+
continue;
|
|
38989
|
+
}
|
|
38990
|
+
if (code > 65535) {
|
|
38991
|
+
i++;
|
|
38992
|
+
}
|
|
38993
|
+
width += isFullwidthCodePoint(code) ? 2 : 1;
|
|
38994
|
+
}
|
|
38995
|
+
return width;
|
|
38996
|
+
};
|
|
38997
|
+
module2.exports = stringWidth2;
|
|
38998
|
+
module2.exports.default = stringWidth2;
|
|
38999
|
+
}
|
|
39000
|
+
});
|
|
39001
|
+
|
|
38861
39002
|
// node_modules/cli-table3/src/utils.js
|
|
38862
39003
|
var require_utils3 = __commonJS({
|
|
38863
39004
|
"node_modules/cli-table3/src/utils.js"(exports2, module2) {
|
|
38864
|
-
var
|
|
39005
|
+
var stringWidth2 = require_string_width4();
|
|
38865
39006
|
function codeRegex(capture) {
|
|
38866
39007
|
return capture ? /\u001b\[((?:\d*;){0,5}\d*)m/g : /\u001b\[(?:\d*;){0,5}\d*m/g;
|
|
38867
39008
|
}
|
|
@@ -38870,7 +39011,7 @@ var require_utils3 = __commonJS({
|
|
|
38870
39011
|
let stripped = ("" + str).replace(code, "");
|
|
38871
39012
|
let split = stripped.split("\n");
|
|
38872
39013
|
return split.reduce(function(memo, s3) {
|
|
38873
|
-
return
|
|
39014
|
+
return stringWidth2(s3) > memo ? stringWidth2(s3) : memo;
|
|
38874
39015
|
}, 0);
|
|
38875
39016
|
}
|
|
38876
39017
|
function repeat(str, times) {
|
|
@@ -40533,6 +40674,15 @@ var require_cli_table3 = __commonJS({
|
|
|
40533
40674
|
}
|
|
40534
40675
|
});
|
|
40535
40676
|
|
|
40677
|
+
// node_modules/emoji-regex/index.js
|
|
40678
|
+
var require_emoji_regex5 = __commonJS({
|
|
40679
|
+
"node_modules/emoji-regex/index.js"(exports2, module2) {
|
|
40680
|
+
module2.exports = () => {
|
|
40681
|
+
return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
|
|
40682
|
+
};
|
|
40683
|
+
}
|
|
40684
|
+
});
|
|
40685
|
+
|
|
40536
40686
|
// node_modules/handlebars/dist/cjs/handlebars/utils.js
|
|
40537
40687
|
var require_utils4 = __commonJS({
|
|
40538
40688
|
"node_modules/handlebars/dist/cjs/handlebars/utils.js"(exports2) {
|
|
@@ -46441,7 +46591,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
46441
46591
|
var import_fs7 = __toESM(require("fs"), 1);
|
|
46442
46592
|
var import_path6 = __toESM(require("path"), 1);
|
|
46443
46593
|
var import_dotenv = __toESM(require_main(), 1);
|
|
46444
|
-
var
|
|
46594
|
+
var import_chalk8 = __toESM(require_source(), 1);
|
|
46445
46595
|
var import_inquirer3 = __toESM(require_inquirer(), 1);
|
|
46446
46596
|
|
|
46447
46597
|
// node_modules/commander/esm.mjs
|
|
@@ -46490,7 +46640,7 @@ var id_default = ID;
|
|
|
46490
46640
|
// lib/constants.ts
|
|
46491
46641
|
var SDK_TITLE = "Appwrite";
|
|
46492
46642
|
var SDK_TITLE_LOWER = "appwrite";
|
|
46493
|
-
var SDK_VERSION = "17.
|
|
46643
|
+
var SDK_VERSION = "17.4.0";
|
|
46494
46644
|
var SDK_LOGO = "\n _ _ _ ___ __ _____\n /_\\ _ __ _ ____ ___ __(_) |_ ___ / __\\ / / \\_ \\\n //_\\\\| '_ \\| '_ \\ \\ /\\ / / '__| | __/ _ \\ / / / / / /\\/\n / _ \\ |_) | |_) \\ V V /| | | | || __/ / /___/ /___/\\/ /_\n \\_/ \\_/ .__/| .__/ \\_/\\_/ |_| |_|\\__\\___| \\____/\\____/\\____/\n |_| |_|\n\n";
|
|
46495
46645
|
var EXECUTABLE_NAME = "appwrite";
|
|
46496
46646
|
var UPDATE_CHECK_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -48124,8 +48274,8 @@ var dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][
|
|
|
48124
48274
|
var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
48125
48275
|
function timeSource(args) {
|
|
48126
48276
|
const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
|
|
48127
|
-
const
|
|
48128
|
-
return
|
|
48277
|
+
const regex2 = 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+)?)?`;
|
|
48278
|
+
return regex2;
|
|
48129
48279
|
}
|
|
48130
48280
|
function time(args) {
|
|
48131
48281
|
return new RegExp(`^${timeSource(args)}$`);
|
|
@@ -48141,8 +48291,8 @@ function datetime(args) {
|
|
|
48141
48291
|
return new RegExp(`^${dateSource}T(?:${timeRegex})$`);
|
|
48142
48292
|
}
|
|
48143
48293
|
var string = (params) => {
|
|
48144
|
-
const
|
|
48145
|
-
return new RegExp(`^${
|
|
48294
|
+
const regex2 = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
48295
|
+
return new RegExp(`^${regex2}$`);
|
|
48146
48296
|
};
|
|
48147
48297
|
var bigint = /^-?\d+n?$/;
|
|
48148
48298
|
var integer = /^-?\d+$/;
|
|
@@ -57788,9 +57938,9 @@ var stringProcessor = (schema, ctx, _json, _params) => {
|
|
|
57788
57938
|
json2.pattern = regexes[0].source;
|
|
57789
57939
|
else if (regexes.length > 1) {
|
|
57790
57940
|
json2.allOf = [
|
|
57791
|
-
...regexes.map((
|
|
57941
|
+
...regexes.map((regex2) => ({
|
|
57792
57942
|
...ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0" ? { type: "string" } : {},
|
|
57793
|
-
pattern:
|
|
57943
|
+
pattern: regex2.source
|
|
57794
57944
|
}))
|
|
57795
57945
|
];
|
|
57796
57946
|
}
|
|
@@ -59000,10 +59150,10 @@ function hex2(_params) {
|
|
|
59000
59150
|
function hash(alg, params) {
|
|
59001
59151
|
const enc = params?.enc ?? "hex";
|
|
59002
59152
|
const format = `${alg}_${enc}`;
|
|
59003
|
-
const
|
|
59004
|
-
if (!
|
|
59153
|
+
const regex2 = regexes_exports[format];
|
|
59154
|
+
if (!regex2)
|
|
59005
59155
|
throw new Error(`Unrecognized hash format: ${format}`);
|
|
59006
|
-
return _stringFormat(ZodCustomStringFormat, format,
|
|
59156
|
+
return _stringFormat(ZodCustomStringFormat, format, regex2, params);
|
|
59007
59157
|
}
|
|
59008
59158
|
var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
59009
59159
|
$ZodNumber.init(inst, def);
|
|
@@ -60740,6 +60890,34 @@ var createSettingsObject = (project) => {
|
|
|
60740
60890
|
}
|
|
60741
60891
|
};
|
|
60742
60892
|
};
|
|
60893
|
+
var getSafeDirectoryName = (value, fallback) => {
|
|
60894
|
+
const normalized = value.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
60895
|
+
return normalized || fallback;
|
|
60896
|
+
};
|
|
60897
|
+
var getConsoleBaseUrl = (endpoint) => {
|
|
60898
|
+
return endpoint.replace(/\/v1\/?$/, "");
|
|
60899
|
+
};
|
|
60900
|
+
var getConsoleProjectSlug = (endpoint, projectId) => {
|
|
60901
|
+
try {
|
|
60902
|
+
const hostname3 = new URL(endpoint).hostname;
|
|
60903
|
+
const isCloudHostname = hostname3 === "cloud.appwrite.io" || hostname3.endsWith(".cloud.appwrite.io");
|
|
60904
|
+
if (!isCloudHostname) {
|
|
60905
|
+
return `project-${projectId}`;
|
|
60906
|
+
}
|
|
60907
|
+
const firstSubdomain = hostname3.split(".")[0];
|
|
60908
|
+
return firstSubdomain.length === 3 ? `project-${firstSubdomain}-${projectId}` : `project-${projectId}`;
|
|
60909
|
+
} catch {
|
|
60910
|
+
return `project-${projectId}`;
|
|
60911
|
+
}
|
|
60912
|
+
};
|
|
60913
|
+
var getFunctionDeploymentConsoleUrl = (endpoint, projectId, functionId, deploymentId) => {
|
|
60914
|
+
const projectSlug = getConsoleProjectSlug(endpoint, projectId);
|
|
60915
|
+
return `${getConsoleBaseUrl(endpoint)}/console/${projectSlug}/functions/function-${functionId}/deployment-${deploymentId}`;
|
|
60916
|
+
};
|
|
60917
|
+
var getSiteDeploymentConsoleUrl = (endpoint, projectId, siteId, deploymentId) => {
|
|
60918
|
+
const projectSlug = getConsoleProjectSlug(endpoint, projectId);
|
|
60919
|
+
return `${getConsoleBaseUrl(endpoint)}/console/${projectSlug}/sites/site-${siteId}/deployments/deployment-${deploymentId}`;
|
|
60920
|
+
};
|
|
60743
60921
|
var checkDeployConditions = (localConfig2) => {
|
|
60744
60922
|
if (localConfig2.keys().length === 0) {
|
|
60745
60923
|
throw new Error(
|
|
@@ -65023,7 +65201,7 @@ var Client = class _Client {
|
|
|
65023
65201
|
"x-sdk-name": "Console",
|
|
65024
65202
|
"x-sdk-platform": "console",
|
|
65025
65203
|
"x-sdk-language": "web",
|
|
65026
|
-
"x-sdk-version": "8.
|
|
65204
|
+
"x-sdk-version": "8.3.0",
|
|
65027
65205
|
"X-Appwrite-Response-Format": "1.9.0"
|
|
65028
65206
|
};
|
|
65029
65207
|
this.realtime = {
|
|
@@ -73217,6 +73395,146 @@ var Organizations = class {
|
|
|
73217
73395
|
};
|
|
73218
73396
|
return this.client.call("delete", uri, apiHeaders, payload);
|
|
73219
73397
|
}
|
|
73398
|
+
listAddons(paramsOrFirst) {
|
|
73399
|
+
let params;
|
|
73400
|
+
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
73401
|
+
params = paramsOrFirst || {};
|
|
73402
|
+
} else {
|
|
73403
|
+
params = {
|
|
73404
|
+
organizationId: paramsOrFirst
|
|
73405
|
+
};
|
|
73406
|
+
}
|
|
73407
|
+
const organizationId = params.organizationId;
|
|
73408
|
+
if (typeof organizationId === "undefined") {
|
|
73409
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
73410
|
+
}
|
|
73411
|
+
const apiPath = "/organizations/{organizationId}/addons".replace("{organizationId}", organizationId);
|
|
73412
|
+
const payload = {};
|
|
73413
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
73414
|
+
const apiHeaders = {};
|
|
73415
|
+
return this.client.call("get", uri, apiHeaders, payload);
|
|
73416
|
+
}
|
|
73417
|
+
createBaaAddon(paramsOrFirst) {
|
|
73418
|
+
let params;
|
|
73419
|
+
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
73420
|
+
params = paramsOrFirst || {};
|
|
73421
|
+
} else {
|
|
73422
|
+
params = {
|
|
73423
|
+
organizationId: paramsOrFirst
|
|
73424
|
+
};
|
|
73425
|
+
}
|
|
73426
|
+
const organizationId = params.organizationId;
|
|
73427
|
+
if (typeof organizationId === "undefined") {
|
|
73428
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
73429
|
+
}
|
|
73430
|
+
const apiPath = "/organizations/{organizationId}/addons/baa".replace("{organizationId}", organizationId);
|
|
73431
|
+
const payload = {};
|
|
73432
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
73433
|
+
const apiHeaders = {
|
|
73434
|
+
"content-type": "application/json"
|
|
73435
|
+
};
|
|
73436
|
+
return this.client.call("post", uri, apiHeaders, payload);
|
|
73437
|
+
}
|
|
73438
|
+
getAddon(paramsOrFirst, ...rest) {
|
|
73439
|
+
let params;
|
|
73440
|
+
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
73441
|
+
params = paramsOrFirst || {};
|
|
73442
|
+
} else {
|
|
73443
|
+
params = {
|
|
73444
|
+
organizationId: paramsOrFirst,
|
|
73445
|
+
addonId: rest[0]
|
|
73446
|
+
};
|
|
73447
|
+
}
|
|
73448
|
+
const organizationId = params.organizationId;
|
|
73449
|
+
const addonId = params.addonId;
|
|
73450
|
+
if (typeof organizationId === "undefined") {
|
|
73451
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
73452
|
+
}
|
|
73453
|
+
if (typeof addonId === "undefined") {
|
|
73454
|
+
throw new AppwriteException('Missing required parameter: "addonId"');
|
|
73455
|
+
}
|
|
73456
|
+
const apiPath = "/organizations/{organizationId}/addons/{addonId}".replace("{organizationId}", organizationId).replace("{addonId}", addonId);
|
|
73457
|
+
const payload = {};
|
|
73458
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
73459
|
+
const apiHeaders = {};
|
|
73460
|
+
return this.client.call("get", uri, apiHeaders, payload);
|
|
73461
|
+
}
|
|
73462
|
+
deleteAddon(paramsOrFirst, ...rest) {
|
|
73463
|
+
let params;
|
|
73464
|
+
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
73465
|
+
params = paramsOrFirst || {};
|
|
73466
|
+
} else {
|
|
73467
|
+
params = {
|
|
73468
|
+
organizationId: paramsOrFirst,
|
|
73469
|
+
addonId: rest[0]
|
|
73470
|
+
};
|
|
73471
|
+
}
|
|
73472
|
+
const organizationId = params.organizationId;
|
|
73473
|
+
const addonId = params.addonId;
|
|
73474
|
+
if (typeof organizationId === "undefined") {
|
|
73475
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
73476
|
+
}
|
|
73477
|
+
if (typeof addonId === "undefined") {
|
|
73478
|
+
throw new AppwriteException('Missing required parameter: "addonId"');
|
|
73479
|
+
}
|
|
73480
|
+
const apiPath = "/organizations/{organizationId}/addons/{addonId}".replace("{organizationId}", organizationId).replace("{addonId}", addonId);
|
|
73481
|
+
const payload = {};
|
|
73482
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
73483
|
+
const apiHeaders = {
|
|
73484
|
+
"content-type": "application/json"
|
|
73485
|
+
};
|
|
73486
|
+
return this.client.call("delete", uri, apiHeaders, payload);
|
|
73487
|
+
}
|
|
73488
|
+
confirmAddonPayment(paramsOrFirst, ...rest) {
|
|
73489
|
+
let params;
|
|
73490
|
+
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
73491
|
+
params = paramsOrFirst || {};
|
|
73492
|
+
} else {
|
|
73493
|
+
params = {
|
|
73494
|
+
organizationId: paramsOrFirst,
|
|
73495
|
+
addonId: rest[0]
|
|
73496
|
+
};
|
|
73497
|
+
}
|
|
73498
|
+
const organizationId = params.organizationId;
|
|
73499
|
+
const addonId = params.addonId;
|
|
73500
|
+
if (typeof organizationId === "undefined") {
|
|
73501
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
73502
|
+
}
|
|
73503
|
+
if (typeof addonId === "undefined") {
|
|
73504
|
+
throw new AppwriteException('Missing required parameter: "addonId"');
|
|
73505
|
+
}
|
|
73506
|
+
const apiPath = "/organizations/{organizationId}/addons/{addonId}/confirmations".replace("{organizationId}", organizationId).replace("{addonId}", addonId);
|
|
73507
|
+
const payload = {};
|
|
73508
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
73509
|
+
const apiHeaders = {
|
|
73510
|
+
"content-type": "application/json"
|
|
73511
|
+
};
|
|
73512
|
+
return this.client.call("post", uri, apiHeaders, payload);
|
|
73513
|
+
}
|
|
73514
|
+
getAddonPrice(paramsOrFirst, ...rest) {
|
|
73515
|
+
let params;
|
|
73516
|
+
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
73517
|
+
params = paramsOrFirst || {};
|
|
73518
|
+
} else {
|
|
73519
|
+
params = {
|
|
73520
|
+
organizationId: paramsOrFirst,
|
|
73521
|
+
addon: rest[0]
|
|
73522
|
+
};
|
|
73523
|
+
}
|
|
73524
|
+
const organizationId = params.organizationId;
|
|
73525
|
+
const addon = params.addon;
|
|
73526
|
+
if (typeof organizationId === "undefined") {
|
|
73527
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
73528
|
+
}
|
|
73529
|
+
if (typeof addon === "undefined") {
|
|
73530
|
+
throw new AppwriteException('Missing required parameter: "addon"');
|
|
73531
|
+
}
|
|
73532
|
+
const apiPath = "/organizations/{organizationId}/addons/{addon}/price".replace("{organizationId}", organizationId).replace("{addon}", addon);
|
|
73533
|
+
const payload = {};
|
|
73534
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
73535
|
+
const apiHeaders = {};
|
|
73536
|
+
return this.client.call("get", uri, apiHeaders, payload);
|
|
73537
|
+
}
|
|
73220
73538
|
listAggregations(paramsOrFirst, ...rest) {
|
|
73221
73539
|
let params;
|
|
73222
73540
|
if (paramsOrFirst && typeof paramsOrFirst === "object" && !Array.isArray(paramsOrFirst)) {
|
|
@@ -83420,6 +83738,10 @@ var SupabaseMigrationResource;
|
|
|
83420
83738
|
SupabaseMigrationResource2["Bucket"] = "bucket";
|
|
83421
83739
|
SupabaseMigrationResource2["File"] = "file";
|
|
83422
83740
|
})(SupabaseMigrationResource || (SupabaseMigrationResource = {}));
|
|
83741
|
+
var Addon;
|
|
83742
|
+
(function(Addon2) {
|
|
83743
|
+
Addon2["Baa"] = "baa";
|
|
83744
|
+
})(Addon || (Addon = {}));
|
|
83423
83745
|
var ProjectUsageRange;
|
|
83424
83746
|
(function(ProjectUsageRange2) {
|
|
83425
83747
|
ProjectUsageRange2["OneHour"] = "1h";
|
|
@@ -84090,7 +84412,7 @@ var DomainPurchaseStatus;
|
|
|
84090
84412
|
})(DomainPurchaseStatus || (DomainPurchaseStatus = {}));
|
|
84091
84413
|
|
|
84092
84414
|
// lib/parser.ts
|
|
84093
|
-
var
|
|
84415
|
+
var import_chalk3 = __toESM(require_source(), 1);
|
|
84094
84416
|
var import_cli_table3 = __toESM(require_cli_table3(), 1);
|
|
84095
84417
|
|
|
84096
84418
|
// package.json
|
|
@@ -84099,7 +84421,7 @@ var package_default = {
|
|
|
84099
84421
|
type: "module",
|
|
84100
84422
|
homepage: "https://appwrite.io/support",
|
|
84101
84423
|
description: "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
|
|
84102
|
-
version: "17.
|
|
84424
|
+
version: "17.4.0",
|
|
84103
84425
|
license: "BSD-3-Clause",
|
|
84104
84426
|
main: "dist/index.cjs",
|
|
84105
84427
|
module: "dist/index.js",
|
|
@@ -84129,7 +84451,8 @@ var package_default = {
|
|
|
84129
84451
|
scripts: {
|
|
84130
84452
|
build: "npm run build:types && npm run build:runtime",
|
|
84131
84453
|
"build:types": "tsc -p tsconfig.json --emitDeclarationOnly",
|
|
84132
|
-
"build:runtime": "npm run build:lib:
|
|
84454
|
+
"build:runtime": "npm run build:lib:runtime && npm run build:cli",
|
|
84455
|
+
"build:lib:runtime": "npm run build:lib:esm && npm run build:lib:cjs",
|
|
84133
84456
|
"build:lib:esm": "esbuild index.ts --bundle --platform=node --target=node18 --format=esm --loader:.hbs=text --outfile=dist/index.js",
|
|
84134
84457
|
"build:lib:cjs": "esbuild index.ts --bundle --platform=node --target=node18 --format=cjs --loader:.hbs=text --outfile=dist/index.cjs",
|
|
84135
84458
|
"build:cli": "esbuild cli.ts --bundle --platform=node --target=node18 --format=cjs --loader:.hbs=text --external:fsevents --outfile=dist/cli.cjs",
|
|
@@ -84146,7 +84469,7 @@ var package_default = {
|
|
|
84146
84469
|
"windows-arm64": "esbuild cli.ts --bundle --loader:.hbs=text --platform=node --target=node18 --format=esm --external:fsevents --outfile=dist/bundle-win-arm64.mjs && pkg dist/bundle-win-arm64.mjs -t node18-win-arm64 -o build/appwrite-cli-win-arm64.exe"
|
|
84147
84470
|
},
|
|
84148
84471
|
dependencies: {
|
|
84149
|
-
"@appwrite.io/console": "~8.
|
|
84472
|
+
"@appwrite.io/console": "~8.3.0",
|
|
84150
84473
|
chalk: "4.1.2",
|
|
84151
84474
|
chokidar: "^3.6.0",
|
|
84152
84475
|
"cli-progress": "^3.12.0",
|
|
@@ -84159,6 +84482,7 @@ var package_default = {
|
|
|
84159
84482
|
inquirer: "^8.2.4",
|
|
84160
84483
|
"inquirer-search-list": "^1.2.6",
|
|
84161
84484
|
"json-bigint": "^1.0.0",
|
|
84485
|
+
"string-width": "^7.2.0",
|
|
84162
84486
|
tail: "^2.2.6",
|
|
84163
84487
|
tar: "^7.4.3",
|
|
84164
84488
|
undici: "^5.28.2",
|
|
@@ -84192,6 +84516,530 @@ var package_default = {
|
|
|
84192
84516
|
|
|
84193
84517
|
// lib/parser.ts
|
|
84194
84518
|
var import_os2 = __toESM(require("os"), 1);
|
|
84519
|
+
|
|
84520
|
+
// lib/response-config.ts
|
|
84521
|
+
var import_chalk2 = __toESM(require_source(), 1);
|
|
84522
|
+
|
|
84523
|
+
// node_modules/string-width/node_modules/strip-ansi/node_modules/ansi-regex/index.js
|
|
84524
|
+
function ansiRegex({ onlyFirst = false } = {}) {
|
|
84525
|
+
const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
|
|
84526
|
+
const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
|
|
84527
|
+
const csi = "[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
|
|
84528
|
+
const pattern = `${osc}|${csi}`;
|
|
84529
|
+
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
84530
|
+
}
|
|
84531
|
+
|
|
84532
|
+
// node_modules/string-width/node_modules/strip-ansi/index.js
|
|
84533
|
+
var regex = ansiRegex();
|
|
84534
|
+
function stripAnsi(string4) {
|
|
84535
|
+
if (typeof string4 !== "string") {
|
|
84536
|
+
throw new TypeError(`Expected a \`string\`, got \`${typeof string4}\``);
|
|
84537
|
+
}
|
|
84538
|
+
if (!string4.includes("\x1B") && !string4.includes("\x9B")) {
|
|
84539
|
+
return string4;
|
|
84540
|
+
}
|
|
84541
|
+
return string4.replace(regex, "");
|
|
84542
|
+
}
|
|
84543
|
+
|
|
84544
|
+
// node_modules/get-east-asian-width/lookup-data.js
|
|
84545
|
+
var ambiguousRanges = [161, 161, 164, 164, 167, 168, 170, 170, 173, 174, 176, 180, 182, 186, 188, 191, 198, 198, 208, 208, 215, 216, 222, 225, 230, 230, 232, 234, 236, 237, 240, 240, 242, 243, 247, 250, 252, 252, 254, 254, 257, 257, 273, 273, 275, 275, 283, 283, 294, 295, 299, 299, 305, 307, 312, 312, 319, 322, 324, 324, 328, 331, 333, 333, 338, 339, 358, 359, 363, 363, 462, 462, 464, 464, 466, 466, 468, 468, 470, 470, 472, 472, 474, 474, 476, 476, 593, 593, 609, 609, 708, 708, 711, 711, 713, 715, 717, 717, 720, 720, 728, 731, 733, 733, 735, 735, 768, 879, 913, 929, 931, 937, 945, 961, 963, 969, 1025, 1025, 1040, 1103, 1105, 1105, 8208, 8208, 8211, 8214, 8216, 8217, 8220, 8221, 8224, 8226, 8228, 8231, 8240, 8240, 8242, 8243, 8245, 8245, 8251, 8251, 8254, 8254, 8308, 8308, 8319, 8319, 8321, 8324, 8364, 8364, 8451, 8451, 8453, 8453, 8457, 8457, 8467, 8467, 8470, 8470, 8481, 8482, 8486, 8486, 8491, 8491, 8531, 8532, 8539, 8542, 8544, 8555, 8560, 8569, 8585, 8585, 8592, 8601, 8632, 8633, 8658, 8658, 8660, 8660, 8679, 8679, 8704, 8704, 8706, 8707, 8711, 8712, 8715, 8715, 8719, 8719, 8721, 8721, 8725, 8725, 8730, 8730, 8733, 8736, 8739, 8739, 8741, 8741, 8743, 8748, 8750, 8750, 8756, 8759, 8764, 8765, 8776, 8776, 8780, 8780, 8786, 8786, 8800, 8801, 8804, 8807, 8810, 8811, 8814, 8815, 8834, 8835, 8838, 8839, 8853, 8853, 8857, 8857, 8869, 8869, 8895, 8895, 8978, 8978, 9312, 9449, 9451, 9547, 9552, 9587, 9600, 9615, 9618, 9621, 9632, 9633, 9635, 9641, 9650, 9651, 9654, 9655, 9660, 9661, 9664, 9665, 9670, 9672, 9675, 9675, 9678, 9681, 9698, 9701, 9711, 9711, 9733, 9734, 9737, 9737, 9742, 9743, 9756, 9756, 9758, 9758, 9792, 9792, 9794, 9794, 9824, 9825, 9827, 9829, 9831, 9834, 9836, 9837, 9839, 9839, 9886, 9887, 9919, 9919, 9926, 9933, 9935, 9939, 9941, 9953, 9955, 9955, 9960, 9961, 9963, 9969, 9972, 9972, 9974, 9977, 9979, 9980, 9982, 9983, 10045, 10045, 10102, 10111, 11094, 11097, 12872, 12879, 57344, 63743, 65024, 65039, 65533, 65533, 127232, 127242, 127248, 127277, 127280, 127337, 127344, 127373, 127375, 127376, 127387, 127404, 917760, 917999, 983040, 1048573, 1048576, 1114109];
|
|
84546
|
+
var fullwidthRanges = [12288, 12288, 65281, 65376, 65504, 65510];
|
|
84547
|
+
var halfwidthRanges = [8361, 8361, 65377, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500, 65512, 65518];
|
|
84548
|
+
var narrowRanges = [32, 126, 162, 163, 165, 166, 172, 172, 175, 175, 10214, 10221, 10629, 10630];
|
|
84549
|
+
var wideRanges = [4352, 4447, 8986, 8987, 9001, 9002, 9193, 9196, 9200, 9200, 9203, 9203, 9725, 9726, 9748, 9749, 9776, 9783, 9800, 9811, 9855, 9855, 9866, 9871, 9875, 9875, 9889, 9889, 9898, 9899, 9917, 9918, 9924, 9925, 9934, 9934, 9940, 9940, 9962, 9962, 9970, 9971, 9973, 9973, 9978, 9978, 9981, 9981, 9989, 9989, 9994, 9995, 10024, 10024, 10060, 10060, 10062, 10062, 10067, 10069, 10071, 10071, 10133, 10135, 10160, 10160, 10175, 10175, 11035, 11036, 11088, 11088, 11093, 11093, 11904, 11929, 11931, 12019, 12032, 12245, 12272, 12287, 12289, 12350, 12353, 12438, 12441, 12543, 12549, 12591, 12593, 12686, 12688, 12773, 12783, 12830, 12832, 12871, 12880, 42124, 42128, 42182, 43360, 43388, 44032, 55203, 63744, 64255, 65040, 65049, 65072, 65106, 65108, 65126, 65128, 65131, 94176, 94180, 94192, 94198, 94208, 101589, 101631, 101662, 101760, 101874, 110576, 110579, 110581, 110587, 110589, 110590, 110592, 110882, 110898, 110898, 110928, 110930, 110933, 110933, 110948, 110951, 110960, 111355, 119552, 119638, 119648, 119670, 126980, 126980, 127183, 127183, 127374, 127374, 127377, 127386, 127488, 127490, 127504, 127547, 127552, 127560, 127568, 127569, 127584, 127589, 127744, 127776, 127789, 127797, 127799, 127868, 127870, 127891, 127904, 127946, 127951, 127955, 127968, 127984, 127988, 127988, 127992, 128062, 128064, 128064, 128066, 128252, 128255, 128317, 128331, 128334, 128336, 128359, 128378, 128378, 128405, 128406, 128420, 128420, 128507, 128591, 128640, 128709, 128716, 128716, 128720, 128722, 128725, 128728, 128732, 128735, 128747, 128748, 128756, 128764, 128992, 129003, 129008, 129008, 129292, 129338, 129340, 129349, 129351, 129535, 129648, 129660, 129664, 129674, 129678, 129734, 129736, 129736, 129741, 129756, 129759, 129770, 129775, 129784, 131072, 196605, 196608, 262141];
|
|
84550
|
+
|
|
84551
|
+
// node_modules/get-east-asian-width/utilities.js
|
|
84552
|
+
var isInRange = (ranges, codePoint) => {
|
|
84553
|
+
let low = 0;
|
|
84554
|
+
let high = Math.floor(ranges.length / 2) - 1;
|
|
84555
|
+
while (low <= high) {
|
|
84556
|
+
const mid = Math.floor((low + high) / 2);
|
|
84557
|
+
const i = mid * 2;
|
|
84558
|
+
if (codePoint < ranges[i]) {
|
|
84559
|
+
high = mid - 1;
|
|
84560
|
+
} else if (codePoint > ranges[i + 1]) {
|
|
84561
|
+
low = mid + 1;
|
|
84562
|
+
} else {
|
|
84563
|
+
return true;
|
|
84564
|
+
}
|
|
84565
|
+
}
|
|
84566
|
+
return false;
|
|
84567
|
+
};
|
|
84568
|
+
|
|
84569
|
+
// node_modules/get-east-asian-width/lookup.js
|
|
84570
|
+
var minimumAmbiguousCodePoint = ambiguousRanges[0];
|
|
84571
|
+
var maximumAmbiguousCodePoint = ambiguousRanges.at(-1);
|
|
84572
|
+
var minimumFullWidthCodePoint = fullwidthRanges[0];
|
|
84573
|
+
var maximumFullWidthCodePoint = fullwidthRanges.at(-1);
|
|
84574
|
+
var minimumHalfWidthCodePoint = halfwidthRanges[0];
|
|
84575
|
+
var maximumHalfWidthCodePoint = halfwidthRanges.at(-1);
|
|
84576
|
+
var minimumNarrowCodePoint = narrowRanges[0];
|
|
84577
|
+
var maximumNarrowCodePoint = narrowRanges.at(-1);
|
|
84578
|
+
var minimumWideCodePoint = wideRanges[0];
|
|
84579
|
+
var maximumWideCodePoint = wideRanges.at(-1);
|
|
84580
|
+
var commonCjkCodePoint = 19968;
|
|
84581
|
+
var [wideFastPathStart, wideFastPathEnd] = findWideFastPathRange(wideRanges);
|
|
84582
|
+
function findWideFastPathRange(ranges) {
|
|
84583
|
+
let fastPathStart = ranges[0];
|
|
84584
|
+
let fastPathEnd = ranges[1];
|
|
84585
|
+
for (let index = 0; index < ranges.length; index += 2) {
|
|
84586
|
+
const start = ranges[index];
|
|
84587
|
+
const end = ranges[index + 1];
|
|
84588
|
+
if (commonCjkCodePoint >= start && commonCjkCodePoint <= end) {
|
|
84589
|
+
return [start, end];
|
|
84590
|
+
}
|
|
84591
|
+
if (end - start > fastPathEnd - fastPathStart) {
|
|
84592
|
+
fastPathStart = start;
|
|
84593
|
+
fastPathEnd = end;
|
|
84594
|
+
}
|
|
84595
|
+
}
|
|
84596
|
+
return [fastPathStart, fastPathEnd];
|
|
84597
|
+
}
|
|
84598
|
+
var isAmbiguous = (codePoint) => {
|
|
84599
|
+
if (codePoint < minimumAmbiguousCodePoint || codePoint > maximumAmbiguousCodePoint) {
|
|
84600
|
+
return false;
|
|
84601
|
+
}
|
|
84602
|
+
return isInRange(ambiguousRanges, codePoint);
|
|
84603
|
+
};
|
|
84604
|
+
var isFullWidth = (codePoint) => {
|
|
84605
|
+
if (codePoint < minimumFullWidthCodePoint || codePoint > maximumFullWidthCodePoint) {
|
|
84606
|
+
return false;
|
|
84607
|
+
}
|
|
84608
|
+
return isInRange(fullwidthRanges, codePoint);
|
|
84609
|
+
};
|
|
84610
|
+
var isWide = (codePoint) => {
|
|
84611
|
+
if (codePoint >= wideFastPathStart && codePoint <= wideFastPathEnd) {
|
|
84612
|
+
return true;
|
|
84613
|
+
}
|
|
84614
|
+
if (codePoint < minimumWideCodePoint || codePoint > maximumWideCodePoint) {
|
|
84615
|
+
return false;
|
|
84616
|
+
}
|
|
84617
|
+
return isInRange(wideRanges, codePoint);
|
|
84618
|
+
};
|
|
84619
|
+
|
|
84620
|
+
// node_modules/get-east-asian-width/index.js
|
|
84621
|
+
function validate(codePoint) {
|
|
84622
|
+
if (!Number.isSafeInteger(codePoint)) {
|
|
84623
|
+
throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
|
|
84624
|
+
}
|
|
84625
|
+
}
|
|
84626
|
+
function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
|
|
84627
|
+
validate(codePoint);
|
|
84628
|
+
if (isFullWidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) {
|
|
84629
|
+
return 2;
|
|
84630
|
+
}
|
|
84631
|
+
return 1;
|
|
84632
|
+
}
|
|
84633
|
+
|
|
84634
|
+
// node_modules/string-width/index.js
|
|
84635
|
+
var import_emoji_regex = __toESM(require_emoji_regex5(), 1);
|
|
84636
|
+
var segmenter = new Intl.Segmenter();
|
|
84637
|
+
var defaultIgnorableCodePointRegex = new RegExp("^\\p{Default_Ignorable_Code_Point}$", "u");
|
|
84638
|
+
function stringWidth(string4, options = {}) {
|
|
84639
|
+
if (typeof string4 !== "string" || string4.length === 0) {
|
|
84640
|
+
return 0;
|
|
84641
|
+
}
|
|
84642
|
+
const {
|
|
84643
|
+
ambiguousIsNarrow = true,
|
|
84644
|
+
countAnsiEscapeCodes = false
|
|
84645
|
+
} = options;
|
|
84646
|
+
if (!countAnsiEscapeCodes) {
|
|
84647
|
+
string4 = stripAnsi(string4);
|
|
84648
|
+
}
|
|
84649
|
+
if (string4.length === 0) {
|
|
84650
|
+
return 0;
|
|
84651
|
+
}
|
|
84652
|
+
let width = 0;
|
|
84653
|
+
const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
|
|
84654
|
+
for (const { segment: character } of segmenter.segment(string4)) {
|
|
84655
|
+
const codePoint = character.codePointAt(0);
|
|
84656
|
+
if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) {
|
|
84657
|
+
continue;
|
|
84658
|
+
}
|
|
84659
|
+
if (codePoint >= 8203 && codePoint <= 8207 || codePoint === 65279) {
|
|
84660
|
+
continue;
|
|
84661
|
+
}
|
|
84662
|
+
if (codePoint >= 768 && codePoint <= 879 || codePoint >= 6832 && codePoint <= 6911 || codePoint >= 7616 && codePoint <= 7679 || codePoint >= 8400 && codePoint <= 8447 || codePoint >= 65056 && codePoint <= 65071) {
|
|
84663
|
+
continue;
|
|
84664
|
+
}
|
|
84665
|
+
if (codePoint >= 55296 && codePoint <= 57343) {
|
|
84666
|
+
continue;
|
|
84667
|
+
}
|
|
84668
|
+
if (codePoint >= 65024 && codePoint <= 65039) {
|
|
84669
|
+
continue;
|
|
84670
|
+
}
|
|
84671
|
+
if (defaultIgnorableCodePointRegex.test(character)) {
|
|
84672
|
+
continue;
|
|
84673
|
+
}
|
|
84674
|
+
if ((0, import_emoji_regex.default)().test(character)) {
|
|
84675
|
+
width += 2;
|
|
84676
|
+
continue;
|
|
84677
|
+
}
|
|
84678
|
+
width += eastAsianWidth(codePoint, eastAsianWidthOptions);
|
|
84679
|
+
}
|
|
84680
|
+
return width;
|
|
84681
|
+
}
|
|
84682
|
+
|
|
84683
|
+
// lib/response-config.ts
|
|
84684
|
+
var splitWords = (value) => value.replace(/([a-z0-9])([A-Z])/g, "$1 $2").split(/[\s_-]+/).filter(Boolean);
|
|
84685
|
+
var toTitleCase = (value) => splitWords(value).map((part) => part.charAt(0).toUpperCase() + part.slice(1).toLowerCase()).join(" ");
|
|
84686
|
+
var padColumn = (value, width) => {
|
|
84687
|
+
const valueWidth = stringWidth(value);
|
|
84688
|
+
if (valueWidth >= width) return value;
|
|
84689
|
+
return value + " ".repeat(width - valueWidth);
|
|
84690
|
+
};
|
|
84691
|
+
var renderAlignedColumns = (columns, options = {}, headers) => {
|
|
84692
|
+
const indent = options.indent ?? "";
|
|
84693
|
+
const widths = columns.map((column, columnIndex) => {
|
|
84694
|
+
const dataWidth = column.reduce(
|
|
84695
|
+
(max, value) => Math.max(max, stringWidth(value)),
|
|
84696
|
+
0
|
|
84697
|
+
);
|
|
84698
|
+
const headerWidth = stringWidth(headers?.[columnIndex] ?? "");
|
|
84699
|
+
return Math.max(dataWidth, headerWidth);
|
|
84700
|
+
});
|
|
84701
|
+
if (headers && headers.length === columns.length) {
|
|
84702
|
+
const headerParts = headers.map((header, columnIndex) => {
|
|
84703
|
+
const value = import_chalk2.default.cyan.bold(header);
|
|
84704
|
+
if (columnIndex === columns.length - 1) {
|
|
84705
|
+
return value;
|
|
84706
|
+
}
|
|
84707
|
+
return padColumn(value, widths[columnIndex]);
|
|
84708
|
+
});
|
|
84709
|
+
console.log(`${indent}${headerParts.join(" ")}`.trimEnd());
|
|
84710
|
+
}
|
|
84711
|
+
for (let idx = 0; idx < columns[0].length; idx++) {
|
|
84712
|
+
const parts = columns.map((column, columnIndex) => {
|
|
84713
|
+
const value = column[idx] ?? "";
|
|
84714
|
+
if (columnIndex === columns.length - 1) {
|
|
84715
|
+
return value;
|
|
84716
|
+
}
|
|
84717
|
+
return padColumn(value, widths[columnIndex]);
|
|
84718
|
+
});
|
|
84719
|
+
console.log(`${indent}${parts.join(" ")}`.trimEnd());
|
|
84720
|
+
}
|
|
84721
|
+
};
|
|
84722
|
+
var compactDate = (value) => {
|
|
84723
|
+
if (typeof value !== "string" || value.trim() === "") {
|
|
84724
|
+
return "\u2014";
|
|
84725
|
+
}
|
|
84726
|
+
return value.replace("T", " ").replace("+00:00", "Z");
|
|
84727
|
+
};
|
|
84728
|
+
var compactText = (value, fallback = "\u2014") => {
|
|
84729
|
+
if (typeof value !== "string") {
|
|
84730
|
+
return fallback;
|
|
84731
|
+
}
|
|
84732
|
+
const trimmed = value.trim();
|
|
84733
|
+
return trimmed === "" ? fallback : trimmed;
|
|
84734
|
+
};
|
|
84735
|
+
var compactAmount = (value) => {
|
|
84736
|
+
if (typeof value === "number" || typeof value === "string") {
|
|
84737
|
+
return String(value);
|
|
84738
|
+
}
|
|
84739
|
+
return "\u2014";
|
|
84740
|
+
};
|
|
84741
|
+
var isPresent = (value) => {
|
|
84742
|
+
if (value == null) return false;
|
|
84743
|
+
if (typeof value === "string") return value.trim() !== "";
|
|
84744
|
+
return true;
|
|
84745
|
+
};
|
|
84746
|
+
var valueFrom = (row, key) => row[key];
|
|
84747
|
+
var indexedLabel = (label, context) => `[${context.index + 1}] ${label}`;
|
|
84748
|
+
var createSummarySchema = (shape, requiredKeys, message) => external_exports.object(shape).passthrough().refine((row) => requiredKeys.some((key) => isPresent(row[key])), {
|
|
84749
|
+
message
|
|
84750
|
+
});
|
|
84751
|
+
var createColumnRenderer = (itemSchema, columns) => ({
|
|
84752
|
+
itemSchema,
|
|
84753
|
+
columns
|
|
84754
|
+
});
|
|
84755
|
+
var PaymentMethodSummarySchema = createSummarySchema(
|
|
84756
|
+
{
|
|
84757
|
+
providerUserId: external_exports.string().nullable().optional(),
|
|
84758
|
+
providerMethodId: external_exports.string().nullable().optional(),
|
|
84759
|
+
mandateId: external_exports.string().nullable().optional(),
|
|
84760
|
+
mandateStatus: external_exports.string().nullable().optional(),
|
|
84761
|
+
last4: external_exports.string().nullable().optional(),
|
|
84762
|
+
brand: external_exports.string().nullable().optional(),
|
|
84763
|
+
country: external_exports.string().nullable().optional(),
|
|
84764
|
+
expiryMonth: external_exports.union([external_exports.string(), external_exports.number()]).nullable().optional(),
|
|
84765
|
+
expiryYear: external_exports.union([external_exports.string(), external_exports.number()]).nullable().optional(),
|
|
84766
|
+
default: external_exports.boolean().optional(),
|
|
84767
|
+
expired: external_exports.boolean().optional(),
|
|
84768
|
+
failed: external_exports.boolean().optional()
|
|
84769
|
+
},
|
|
84770
|
+
["providerUserId", "providerMethodId", "mandateId", "last4"],
|
|
84771
|
+
"Expected a payment method summary row"
|
|
84772
|
+
);
|
|
84773
|
+
var IdentitySummarySchema = createSummarySchema(
|
|
84774
|
+
{
|
|
84775
|
+
provider: external_exports.string().nullable().optional(),
|
|
84776
|
+
providerUid: external_exports.union([external_exports.string(), external_exports.number()]).nullable().optional(),
|
|
84777
|
+
providerEmail: external_exports.string().nullable().optional(),
|
|
84778
|
+
providerAccessTokenExpiry: external_exports.string().nullable().optional()
|
|
84779
|
+
},
|
|
84780
|
+
["provider", "providerUid", "providerEmail"],
|
|
84781
|
+
"Expected an identity summary row"
|
|
84782
|
+
);
|
|
84783
|
+
var SessionSummarySchema = createSummarySchema(
|
|
84784
|
+
{
|
|
84785
|
+
provider: external_exports.string().nullable().optional(),
|
|
84786
|
+
current: external_exports.boolean().optional(),
|
|
84787
|
+
expire: external_exports.string().nullable().optional(),
|
|
84788
|
+
clientName: external_exports.string().nullable().optional(),
|
|
84789
|
+
clientType: external_exports.string().nullable().optional(),
|
|
84790
|
+
osName: external_exports.string().nullable().optional(),
|
|
84791
|
+
deviceName: external_exports.string().nullable().optional(),
|
|
84792
|
+
countryName: external_exports.string().nullable().optional(),
|
|
84793
|
+
countryCode: external_exports.string().nullable().optional()
|
|
84794
|
+
},
|
|
84795
|
+
["provider", "expire"],
|
|
84796
|
+
"Expected a session summary row"
|
|
84797
|
+
);
|
|
84798
|
+
var LogSummarySchema = createSummarySchema(
|
|
84799
|
+
{
|
|
84800
|
+
event: external_exports.string().nullable().optional(),
|
|
84801
|
+
time: external_exports.string().nullable().optional(),
|
|
84802
|
+
clientName: external_exports.string().nullable().optional(),
|
|
84803
|
+
osName: external_exports.string().nullable().optional(),
|
|
84804
|
+
countryName: external_exports.string().nullable().optional(),
|
|
84805
|
+
countryCode: external_exports.string().nullable().optional(),
|
|
84806
|
+
mode: external_exports.string().nullable().optional()
|
|
84807
|
+
},
|
|
84808
|
+
["event", "time"],
|
|
84809
|
+
"Expected a log summary row"
|
|
84810
|
+
);
|
|
84811
|
+
var InvoiceSummarySchema = createSummarySchema(
|
|
84812
|
+
{
|
|
84813
|
+
plan: external_exports.string().nullable().optional(),
|
|
84814
|
+
currency: external_exports.string().nullable().optional(),
|
|
84815
|
+
amount: external_exports.union([external_exports.string(), external_exports.number()]).nullable().optional(),
|
|
84816
|
+
grossAmount: external_exports.union([external_exports.string(), external_exports.number()]).nullable().optional(),
|
|
84817
|
+
status: external_exports.string().nullable().optional(),
|
|
84818
|
+
dueAt: external_exports.string().nullable().optional(),
|
|
84819
|
+
from: external_exports.string().nullable().optional(),
|
|
84820
|
+
to: external_exports.string().nullable().optional()
|
|
84821
|
+
},
|
|
84822
|
+
["plan", "status", "dueAt"],
|
|
84823
|
+
"Expected an invoice summary row"
|
|
84824
|
+
);
|
|
84825
|
+
var paymentMethodLabel = (row) => {
|
|
84826
|
+
const brand = valueFrom(row, "brand") ?? "";
|
|
84827
|
+
const last4 = valueFrom(row, "last4") ?? "";
|
|
84828
|
+
if (brand && last4) {
|
|
84829
|
+
return `${toTitleCase(brand)} \u2022\u2022\u2022\u2022 ${last4}`;
|
|
84830
|
+
}
|
|
84831
|
+
if (last4) {
|
|
84832
|
+
return `Card \u2022\u2022\u2022\u2022 ${last4}`;
|
|
84833
|
+
}
|
|
84834
|
+
return "Setup only";
|
|
84835
|
+
};
|
|
84836
|
+
var paymentMethodDetails = (row) => {
|
|
84837
|
+
const expiryMonth = valueFrom(row, "expiryMonth");
|
|
84838
|
+
const expiryYear = valueFrom(row, "expiryYear");
|
|
84839
|
+
if (expiryMonth != null && expiryYear != null) {
|
|
84840
|
+
return `exp ${String(expiryMonth).padStart(2, "0")}/${String(expiryYear)}`;
|
|
84841
|
+
}
|
|
84842
|
+
return "no card data";
|
|
84843
|
+
};
|
|
84844
|
+
var paymentMethodStatus = (row) => {
|
|
84845
|
+
const mandateStatus = valueFrom(row, "mandateStatus");
|
|
84846
|
+
if (mandateStatus && mandateStatus.trim() !== "") {
|
|
84847
|
+
return `mandate: ${mandateStatus}`;
|
|
84848
|
+
}
|
|
84849
|
+
if (row.failed === true) {
|
|
84850
|
+
return "status: failed";
|
|
84851
|
+
}
|
|
84852
|
+
if (row.expired === true) {
|
|
84853
|
+
return "status: expired";
|
|
84854
|
+
}
|
|
84855
|
+
if (isPresent(valueFrom(row, "providerMethodId")) || isPresent(valueFrom(row, "last4"))) {
|
|
84856
|
+
return "status: active";
|
|
84857
|
+
}
|
|
84858
|
+
return "status: pending";
|
|
84859
|
+
};
|
|
84860
|
+
var structuredCollectionRenderers = {
|
|
84861
|
+
identities: createColumnRenderer(IdentitySummarySchema, [
|
|
84862
|
+
{
|
|
84863
|
+
header: "identity",
|
|
84864
|
+
value: (row, context) => indexedLabel(
|
|
84865
|
+
toTitleCase(compactText(valueFrom(row, "provider"), "Identity")),
|
|
84866
|
+
context
|
|
84867
|
+
)
|
|
84868
|
+
},
|
|
84869
|
+
{
|
|
84870
|
+
header: "account",
|
|
84871
|
+
value: (row) => {
|
|
84872
|
+
const providerEmail = valueFrom(row, "providerEmail");
|
|
84873
|
+
const providerUid = valueFrom(row, "providerUid");
|
|
84874
|
+
if (providerEmail && providerEmail.trim() !== "") {
|
|
84875
|
+
return providerEmail;
|
|
84876
|
+
}
|
|
84877
|
+
if (providerUid != null) {
|
|
84878
|
+
return `uid ${providerUid}`;
|
|
84879
|
+
}
|
|
84880
|
+
return "\u2014";
|
|
84881
|
+
}
|
|
84882
|
+
},
|
|
84883
|
+
{
|
|
84884
|
+
header: "identifier",
|
|
84885
|
+
value: (row) => {
|
|
84886
|
+
const providerEmail = valueFrom(row, "providerEmail");
|
|
84887
|
+
const providerUid = valueFrom(row, "providerUid");
|
|
84888
|
+
if (providerEmail && providerEmail.trim() !== "" && providerUid != null) {
|
|
84889
|
+
return `uid ${providerUid}`;
|
|
84890
|
+
}
|
|
84891
|
+
return "";
|
|
84892
|
+
}
|
|
84893
|
+
},
|
|
84894
|
+
{
|
|
84895
|
+
header: "expires",
|
|
84896
|
+
value: (row) => {
|
|
84897
|
+
const expiry = valueFrom(row, "providerAccessTokenExpiry");
|
|
84898
|
+
return expiry ? `expires ${compactDate(expiry)}` : "";
|
|
84899
|
+
}
|
|
84900
|
+
}
|
|
84901
|
+
]),
|
|
84902
|
+
sessions: createColumnRenderer(SessionSummarySchema, [
|
|
84903
|
+
{
|
|
84904
|
+
header: "session",
|
|
84905
|
+
value: (row, context) => {
|
|
84906
|
+
const provider = compactText(valueFrom(row, "provider"), "Session");
|
|
84907
|
+
const current = row.current === true ? " (current)" : "";
|
|
84908
|
+
return indexedLabel(`${toTitleCase(provider)}${current}`, context);
|
|
84909
|
+
}
|
|
84910
|
+
},
|
|
84911
|
+
{
|
|
84912
|
+
header: "client",
|
|
84913
|
+
value: (row) => {
|
|
84914
|
+
const clientName = compactText(valueFrom(row, "clientName"), "");
|
|
84915
|
+
const osName = compactText(valueFrom(row, "osName"), "");
|
|
84916
|
+
const deviceName = compactText(valueFrom(row, "deviceName"), "");
|
|
84917
|
+
if (clientName && osName) {
|
|
84918
|
+
return `${clientName} on ${osName}`;
|
|
84919
|
+
}
|
|
84920
|
+
if (clientName && deviceName) {
|
|
84921
|
+
return `${clientName} on ${deviceName}`;
|
|
84922
|
+
}
|
|
84923
|
+
return clientName || osName || deviceName || "\u2014";
|
|
84924
|
+
}
|
|
84925
|
+
},
|
|
84926
|
+
{
|
|
84927
|
+
header: "location",
|
|
84928
|
+
value: (row) => compactText(row.countryName ?? row.countryCode, "\u2014")
|
|
84929
|
+
},
|
|
84930
|
+
{
|
|
84931
|
+
header: "expires",
|
|
84932
|
+
value: (row) => `expires ${compactDate(valueFrom(row, "expire"))}`
|
|
84933
|
+
}
|
|
84934
|
+
]),
|
|
84935
|
+
logs: createColumnRenderer(LogSummarySchema, [
|
|
84936
|
+
{
|
|
84937
|
+
header: "time",
|
|
84938
|
+
value: (row) => compactDate(valueFrom(row, "time"))
|
|
84939
|
+
},
|
|
84940
|
+
{
|
|
84941
|
+
header: "event",
|
|
84942
|
+
value: (row) => {
|
|
84943
|
+
const event = compactText(valueFrom(row, "event"), "event");
|
|
84944
|
+
const mode = valueFrom(row, "mode");
|
|
84945
|
+
if (mode && mode.trim() !== "" && mode !== "default") {
|
|
84946
|
+
return `${event} (${mode})`;
|
|
84947
|
+
}
|
|
84948
|
+
return event;
|
|
84949
|
+
}
|
|
84950
|
+
},
|
|
84951
|
+
{
|
|
84952
|
+
header: "client",
|
|
84953
|
+
value: (row) => {
|
|
84954
|
+
const clientName = compactText(valueFrom(row, "clientName"), "");
|
|
84955
|
+
const osName = compactText(valueFrom(row, "osName"), "");
|
|
84956
|
+
if (clientName && osName) {
|
|
84957
|
+
return `${clientName} on ${osName}`;
|
|
84958
|
+
}
|
|
84959
|
+
return clientName || osName || "\u2014";
|
|
84960
|
+
}
|
|
84961
|
+
},
|
|
84962
|
+
{
|
|
84963
|
+
header: "location",
|
|
84964
|
+
value: (row) => compactText(row.countryName ?? row.countryCode, "\u2014")
|
|
84965
|
+
}
|
|
84966
|
+
]),
|
|
84967
|
+
invoices: createColumnRenderer(InvoiceSummarySchema, [
|
|
84968
|
+
{
|
|
84969
|
+
header: "status",
|
|
84970
|
+
value: (row, context) => indexedLabel(compactText(valueFrom(row, "status"), "pending"), context)
|
|
84971
|
+
},
|
|
84972
|
+
{
|
|
84973
|
+
header: "plan",
|
|
84974
|
+
value: (row) => compactText(valueFrom(row, "plan"))
|
|
84975
|
+
},
|
|
84976
|
+
{
|
|
84977
|
+
header: "amount",
|
|
84978
|
+
value: (row) => {
|
|
84979
|
+
const currency = compactText(valueFrom(row, "currency"), "\u2014");
|
|
84980
|
+
const grossAmount = valueFrom(row, "grossAmount");
|
|
84981
|
+
const amount = valueFrom(row, "amount");
|
|
84982
|
+
return `${currency} ${grossAmount != null ? compactAmount(grossAmount) : compactAmount(amount)}`.trim();
|
|
84983
|
+
}
|
|
84984
|
+
},
|
|
84985
|
+
{
|
|
84986
|
+
header: "due",
|
|
84987
|
+
value: (row) => `due ${compactDate(valueFrom(row, "dueAt"))}`
|
|
84988
|
+
},
|
|
84989
|
+
{
|
|
84990
|
+
header: "period",
|
|
84991
|
+
value: (row) => `${compactDate(valueFrom(row, "from"))} -> ${compactDate(valueFrom(row, "to"))}`
|
|
84992
|
+
}
|
|
84993
|
+
]),
|
|
84994
|
+
paymentMethods: createColumnRenderer(PaymentMethodSummarySchema, [
|
|
84995
|
+
{
|
|
84996
|
+
header: "method",
|
|
84997
|
+
value: (row, context) => indexedLabel(paymentMethodLabel(row), context)
|
|
84998
|
+
},
|
|
84999
|
+
{
|
|
85000
|
+
header: "country",
|
|
85001
|
+
value: (row) => compactText(valueFrom(row, "country"), "\u2014")
|
|
85002
|
+
},
|
|
85003
|
+
{
|
|
85004
|
+
header: "details",
|
|
85005
|
+
value: (row) => paymentMethodDetails(row)
|
|
85006
|
+
},
|
|
85007
|
+
{
|
|
85008
|
+
header: "default",
|
|
85009
|
+
value: (row) => `default: ${Boolean(row.default) ? "yes" : "no"}`
|
|
85010
|
+
},
|
|
85011
|
+
{
|
|
85012
|
+
header: "status",
|
|
85013
|
+
value: (row) => paymentMethodStatus(row)
|
|
85014
|
+
}
|
|
85015
|
+
])
|
|
85016
|
+
};
|
|
85017
|
+
var renderStructuredCollection = (sectionName, rows, options = {}) => {
|
|
85018
|
+
if (!sectionName) {
|
|
85019
|
+
return false;
|
|
85020
|
+
}
|
|
85021
|
+
const renderer = structuredCollectionRenderers[sectionName];
|
|
85022
|
+
if (!renderer) {
|
|
85023
|
+
return false;
|
|
85024
|
+
}
|
|
85025
|
+
const allRowsMatch = rows.every(
|
|
85026
|
+
(row) => renderer.itemSchema.safeParse(row).success
|
|
85027
|
+
);
|
|
85028
|
+
if (!allRowsMatch) {
|
|
85029
|
+
return false;
|
|
85030
|
+
}
|
|
85031
|
+
const columns = renderer.columns.map(
|
|
85032
|
+
(column) => rows.map((row, index) => column.value(row, { index }))
|
|
85033
|
+
);
|
|
85034
|
+
renderAlignedColumns(
|
|
85035
|
+
columns,
|
|
85036
|
+
options,
|
|
85037
|
+
renderer.columns.map((column) => column.header)
|
|
85038
|
+
);
|
|
85039
|
+
return true;
|
|
85040
|
+
};
|
|
85041
|
+
|
|
85042
|
+
// lib/parser.ts
|
|
84195
85043
|
BigInt.prototype.toJSON = function() {
|
|
84196
85044
|
return this.toString();
|
|
84197
85045
|
};
|
|
@@ -84222,12 +85070,14 @@ var SENSITIVE_KEYS = /* @__PURE__ */ new Set([
|
|
|
84222
85070
|
]);
|
|
84223
85071
|
var renderDepth = 0;
|
|
84224
85072
|
var redactionApplied = false;
|
|
85073
|
+
var renderedRedactionApplied = false;
|
|
84225
85074
|
var toJsonObject = (value) => {
|
|
84226
85075
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
84227
85076
|
return value;
|
|
84228
85077
|
}
|
|
84229
85078
|
return null;
|
|
84230
85079
|
};
|
|
85080
|
+
var isNormalViewHiddenKey = (key) => key.startsWith("$") && key !== "$id";
|
|
84231
85081
|
var extractReportCommandArgs = (value) => {
|
|
84232
85082
|
if (!value || typeof value !== "object") {
|
|
84233
85083
|
return [];
|
|
@@ -84241,15 +85091,17 @@ var extractReportCommandArgs = (value) => {
|
|
|
84241
85091
|
var beginRender = () => {
|
|
84242
85092
|
if (renderDepth === 0) {
|
|
84243
85093
|
redactionApplied = false;
|
|
85094
|
+
renderedRedactionApplied = false;
|
|
84244
85095
|
}
|
|
84245
85096
|
renderDepth++;
|
|
84246
85097
|
};
|
|
84247
85098
|
var endRender = () => {
|
|
84248
85099
|
renderDepth = Math.max(0, renderDepth - 1);
|
|
84249
|
-
|
|
85100
|
+
const shouldShowRedactionHint = cliConfig.json || cliConfig.raw ? redactionApplied : renderedRedactionApplied;
|
|
85101
|
+
if (renderDepth === 0 && shouldShowRedactionHint && !cliConfig.showSecrets) {
|
|
84250
85102
|
const message = "Sensitive values were redacted. Pass --show-secrets to display them.";
|
|
84251
85103
|
if (cliConfig.json || cliConfig.raw) {
|
|
84252
|
-
console.error(`${
|
|
85104
|
+
console.error(`${import_chalk3.default.cyan.bold("\u2665 Hint:")} ${import_chalk3.default.cyan(message)}`);
|
|
84253
85105
|
} else {
|
|
84254
85106
|
hint(message);
|
|
84255
85107
|
}
|
|
@@ -84265,7 +85117,9 @@ var withRender = (callback) => {
|
|
|
84265
85117
|
};
|
|
84266
85118
|
var isSensitiveKey = (key) => {
|
|
84267
85119
|
const normalizedKey = key.toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
84268
|
-
return SENSITIVE_KEYS.
|
|
85120
|
+
return [...SENSITIVE_KEYS].some(
|
|
85121
|
+
(sensitiveKey) => normalizedKey === sensitiveKey || normalizedKey.endsWith(sensitiveKey)
|
|
85122
|
+
);
|
|
84269
85123
|
};
|
|
84270
85124
|
var maskSensitiveString = (value) => {
|
|
84271
85125
|
if (value.length <= 16) {
|
|
@@ -84279,9 +85133,11 @@ var maskSensitiveString = (value) => {
|
|
|
84279
85133
|
}
|
|
84280
85134
|
return `${HIDDEN_VALUE}${value.slice(-4)}`;
|
|
84281
85135
|
};
|
|
84282
|
-
var maskSensitiveData = (value, key) => {
|
|
85136
|
+
var maskSensitiveData = (value, key, trackRedaction = true) => {
|
|
84283
85137
|
if (key && isSensitiveKey(key) && !cliConfig.showSecrets) {
|
|
84284
|
-
|
|
85138
|
+
if (trackRedaction) {
|
|
85139
|
+
redactionApplied = true;
|
|
85140
|
+
}
|
|
84285
85141
|
if (typeof value === "string") {
|
|
84286
85142
|
return maskSensitiveString(value);
|
|
84287
85143
|
}
|
|
@@ -84291,7 +85147,9 @@ var maskSensitiveData = (value, key) => {
|
|
|
84291
85147
|
return HIDDEN_VALUE;
|
|
84292
85148
|
}
|
|
84293
85149
|
if (Array.isArray(value)) {
|
|
84294
|
-
return value.map(
|
|
85150
|
+
return value.map(
|
|
85151
|
+
(item) => maskSensitiveData(item, void 0, trackRedaction)
|
|
85152
|
+
);
|
|
84295
85153
|
}
|
|
84296
85154
|
if (value && typeof value === "object") {
|
|
84297
85155
|
if (value?.constructor?.name === "BigNumber") {
|
|
@@ -84301,7 +85159,11 @@ var maskSensitiveData = (value, key) => {
|
|
|
84301
85159
|
for (const childKey of Object.keys(value)) {
|
|
84302
85160
|
const childValue = value[childKey];
|
|
84303
85161
|
if (typeof childValue === "function") continue;
|
|
84304
|
-
result[childKey] = maskSensitiveData(
|
|
85162
|
+
result[childKey] = maskSensitiveData(
|
|
85163
|
+
childValue,
|
|
85164
|
+
childKey,
|
|
85165
|
+
trackRedaction
|
|
85166
|
+
);
|
|
84305
85167
|
}
|
|
84306
85168
|
return result;
|
|
84307
85169
|
}
|
|
@@ -84322,10 +85184,22 @@ var applyDisplayFilter = (rows) => {
|
|
|
84322
85184
|
});
|
|
84323
85185
|
};
|
|
84324
85186
|
var MAX_COL_WIDTH = 40;
|
|
85187
|
+
var MAX_COLUMNS = 6;
|
|
84325
85188
|
var formatCellValue = (value) => {
|
|
84326
85189
|
if (value == null) return "-";
|
|
85190
|
+
if (!cliConfig.showSecrets && typeof value === "string" && value.includes(HIDDEN_VALUE)) {
|
|
85191
|
+
renderedRedactionApplied = true;
|
|
85192
|
+
}
|
|
84327
85193
|
if (Array.isArray(value)) {
|
|
84328
85194
|
if (value.length === 0) return "[]";
|
|
85195
|
+
if (value.every(
|
|
85196
|
+
(item) => item == null || typeof item === "string" || typeof item === "number" || typeof item === "boolean"
|
|
85197
|
+
)) {
|
|
85198
|
+
const joinedValue = value.map((item) => String(item)).join(", ");
|
|
85199
|
+
if (joinedValue.length <= MAX_COL_WIDTH) {
|
|
85200
|
+
return joinedValue;
|
|
85201
|
+
}
|
|
85202
|
+
}
|
|
84329
85203
|
return `[${value.length} items]`;
|
|
84330
85204
|
}
|
|
84331
85205
|
if (typeof value === "object") {
|
|
@@ -84340,7 +85214,94 @@ var formatCellValue = (value) => {
|
|
|
84340
85214
|
}
|
|
84341
85215
|
return str;
|
|
84342
85216
|
};
|
|
84343
|
-
var
|
|
85217
|
+
var formatKeyValue = (key, value) => {
|
|
85218
|
+
if (key === "status" && typeof value === "boolean") {
|
|
85219
|
+
return value ? "active" : "inactive";
|
|
85220
|
+
}
|
|
85221
|
+
return String(value);
|
|
85222
|
+
};
|
|
85223
|
+
var toScalarEntries = (row) => {
|
|
85224
|
+
const entries = [];
|
|
85225
|
+
for (const key of Object.keys(row)) {
|
|
85226
|
+
if (isNormalViewHiddenKey(key)) continue;
|
|
85227
|
+
const value = row[key];
|
|
85228
|
+
if (typeof value === "function") continue;
|
|
85229
|
+
if (value == null) continue;
|
|
85230
|
+
if (value?.constructor?.name === "BigNumber") {
|
|
85231
|
+
entries.push([key, String(value)]);
|
|
85232
|
+
continue;
|
|
85233
|
+
}
|
|
85234
|
+
if (typeof value === "object") continue;
|
|
85235
|
+
if (typeof value === "string" && value.trim() === "") continue;
|
|
85236
|
+
entries.push([key, formatKeyValue(key, value)]);
|
|
85237
|
+
}
|
|
85238
|
+
return entries;
|
|
85239
|
+
};
|
|
85240
|
+
var toDisplayEntries = (row) => {
|
|
85241
|
+
const entries = [];
|
|
85242
|
+
for (const key of Object.keys(row)) {
|
|
85243
|
+
if (isNormalViewHiddenKey(key)) continue;
|
|
85244
|
+
const value = row[key];
|
|
85245
|
+
if (typeof value === "function") continue;
|
|
85246
|
+
if (value == null) continue;
|
|
85247
|
+
if (typeof value === "string" && value.trim() === "") continue;
|
|
85248
|
+
entries.push([key, formatCellValue(value)]);
|
|
85249
|
+
}
|
|
85250
|
+
return entries;
|
|
85251
|
+
};
|
|
85252
|
+
var drawKeyValueEntries = (entries, options = {}) => {
|
|
85253
|
+
if (entries.length === 0) return;
|
|
85254
|
+
const indent = options.indent ?? "";
|
|
85255
|
+
const maxKeyLen = Math.max(...entries.map(([key]) => key.length));
|
|
85256
|
+
for (const [key, value] of entries) {
|
|
85257
|
+
const paddedKey = key.padEnd(maxKeyLen);
|
|
85258
|
+
if (!cliConfig.showSecrets && value.includes(HIDDEN_VALUE)) {
|
|
85259
|
+
renderedRedactionApplied = true;
|
|
85260
|
+
}
|
|
85261
|
+
console.log(`${indent}${import_chalk3.default.yellow.bold(paddedKey)} ${value}`);
|
|
85262
|
+
}
|
|
85263
|
+
};
|
|
85264
|
+
var drawNamedObjectCollection = (rows, options = {}) => {
|
|
85265
|
+
if (renderStructuredCollection(options.sectionName, rows, options)) {
|
|
85266
|
+
return true;
|
|
85267
|
+
}
|
|
85268
|
+
const scalarEntries = rows.map((row) => toScalarEntries(row));
|
|
85269
|
+
const flatScalarEntries = scalarEntries.flat();
|
|
85270
|
+
if (flatScalarEntries.length > 0) {
|
|
85271
|
+
scalarEntries.forEach((entries, idx) => {
|
|
85272
|
+
if (idx > 0) {
|
|
85273
|
+
console.log();
|
|
85274
|
+
}
|
|
85275
|
+
if (rows.length > 1) {
|
|
85276
|
+
const indent = options.indent ?? "";
|
|
85277
|
+
console.log(`${indent}${import_chalk3.default.cyan.bold(`[${idx + 1}]`)}`);
|
|
85278
|
+
}
|
|
85279
|
+
drawKeyValueEntries(entries, {
|
|
85280
|
+
indent: rows.length > 1 ? `${options.indent ?? ""} ` : options.indent
|
|
85281
|
+
});
|
|
85282
|
+
});
|
|
85283
|
+
return true;
|
|
85284
|
+
}
|
|
85285
|
+
const displayEntries = rows.map((row) => toDisplayEntries(row));
|
|
85286
|
+
const flatDisplayEntries = displayEntries.flat();
|
|
85287
|
+
if (flatDisplayEntries.length === 0) {
|
|
85288
|
+
return false;
|
|
85289
|
+
}
|
|
85290
|
+
displayEntries.forEach((entries, idx) => {
|
|
85291
|
+
if (idx > 0) {
|
|
85292
|
+
console.log();
|
|
85293
|
+
}
|
|
85294
|
+
if (rows.length > 1) {
|
|
85295
|
+
const indent = options.indent ?? "";
|
|
85296
|
+
console.log(`${indent}${import_chalk3.default.cyan.bold(`[${idx + 1}]`)}`);
|
|
85297
|
+
}
|
|
85298
|
+
drawKeyValueEntries(entries, {
|
|
85299
|
+
indent: rows.length > 1 ? `${options.indent ?? ""} ` : options.indent
|
|
85300
|
+
});
|
|
85301
|
+
});
|
|
85302
|
+
return true;
|
|
85303
|
+
};
|
|
85304
|
+
var drawTable = (data, options = {}) => {
|
|
84344
85305
|
withRender(() => {
|
|
84345
85306
|
if (data.length == 0) {
|
|
84346
85307
|
console.log("[]");
|
|
@@ -84348,8 +85309,14 @@ var drawTable = (data) => {
|
|
|
84348
85309
|
}
|
|
84349
85310
|
const rows = applyDisplayFilter(
|
|
84350
85311
|
data.map((item) => {
|
|
84351
|
-
const maskedItem = maskSensitiveData(item);
|
|
84352
|
-
|
|
85312
|
+
const maskedItem = maskSensitiveData(item, void 0, false);
|
|
85313
|
+
const row = toJsonObject(maskedItem) ?? {};
|
|
85314
|
+
const visibleRow = {};
|
|
85315
|
+
for (const key of Object.keys(row)) {
|
|
85316
|
+
if (isNormalViewHiddenKey(key)) continue;
|
|
85317
|
+
visibleRow[key] = row[key];
|
|
85318
|
+
}
|
|
85319
|
+
return visibleRow;
|
|
84353
85320
|
})
|
|
84354
85321
|
);
|
|
84355
85322
|
const obj = rows.reduce((res, item) => ({ ...res, ...item }), {});
|
|
@@ -84358,42 +85325,14 @@ var drawTable = (data) => {
|
|
|
84358
85325
|
drawJSON(data);
|
|
84359
85326
|
return;
|
|
84360
85327
|
}
|
|
84361
|
-
|
|
84362
|
-
|
|
84363
|
-
|
|
84364
|
-
|
|
84365
|
-
|
|
84366
|
-
const value = row[key];
|
|
84367
|
-
if (typeof value === "function") continue;
|
|
84368
|
-
if (value == null) continue;
|
|
84369
|
-
if (value?.constructor?.name === "BigNumber") {
|
|
84370
|
-
entries.push([key, String(value)]);
|
|
84371
|
-
continue;
|
|
84372
|
-
}
|
|
84373
|
-
if (typeof value === "object") continue;
|
|
84374
|
-
if (typeof value === "string" && value.trim() === "") continue;
|
|
84375
|
-
entries.push([key, String(value)]);
|
|
84376
|
-
}
|
|
84377
|
-
return entries;
|
|
84378
|
-
});
|
|
84379
|
-
const flatEntries = rowEntries.flat();
|
|
84380
|
-
if (flatEntries.length === 0) {
|
|
85328
|
+
if (allKeys.length > MAX_COLUMNS) {
|
|
85329
|
+
if (drawNamedObjectCollection(rows, options)) {
|
|
85330
|
+
return;
|
|
85331
|
+
}
|
|
85332
|
+
if (rows.every((row) => toScalarEntries(row).length === 0)) {
|
|
84381
85333
|
drawJSON(data);
|
|
84382
85334
|
return;
|
|
84383
85335
|
}
|
|
84384
|
-
const maxKeyLen = Math.max(...flatEntries.map(([key]) => key.length));
|
|
84385
|
-
const separatorLen = Math.min(
|
|
84386
|
-
maxKeyLen + 2 + MAX_COL_WIDTH,
|
|
84387
|
-
process.stdout.columns || 80
|
|
84388
|
-
);
|
|
84389
|
-
rowEntries.forEach((entries, idx) => {
|
|
84390
|
-
if (idx > 0) console.log(import_chalk2.default.cyan("\u2500".repeat(separatorLen)));
|
|
84391
|
-
for (const [key, value] of entries) {
|
|
84392
|
-
const paddedKey = key.padEnd(maxKeyLen);
|
|
84393
|
-
console.log(`${import_chalk2.default.yellow.bold(paddedKey)} ${value}`);
|
|
84394
|
-
}
|
|
84395
|
-
});
|
|
84396
|
-
return;
|
|
84397
85336
|
}
|
|
84398
85337
|
const columns = allKeys;
|
|
84399
85338
|
const def = allKeys.reduce((result, key) => {
|
|
@@ -84402,7 +85341,7 @@ var drawTable = (data) => {
|
|
|
84402
85341
|
}, {});
|
|
84403
85342
|
const normalizedData = rows.map((item) => ({ ...def, ...item }));
|
|
84404
85343
|
const table = new import_cli_table3.default({
|
|
84405
|
-
head: columns.map((c) =>
|
|
85344
|
+
head: columns.map((c) => import_chalk3.default.cyan.italic.bold(c)),
|
|
84406
85345
|
colWidths: columns.map(() => null),
|
|
84407
85346
|
wordWrap: false,
|
|
84408
85347
|
chars: {
|
|
@@ -84416,11 +85355,11 @@ var drawTable = (data) => {
|
|
|
84416
85355
|
"bottom-right": " ",
|
|
84417
85356
|
left: " ",
|
|
84418
85357
|
"left-mid": " ",
|
|
84419
|
-
mid:
|
|
84420
|
-
"mid-mid":
|
|
85358
|
+
mid: import_chalk3.default.cyan("\u2500"),
|
|
85359
|
+
"mid-mid": import_chalk3.default.cyan("\u253C"),
|
|
84421
85360
|
right: " ",
|
|
84422
85361
|
"right-mid": " ",
|
|
84423
|
-
middle:
|
|
85362
|
+
middle: import_chalk3.default.cyan("\u2502")
|
|
84424
85363
|
}
|
|
84425
85364
|
});
|
|
84426
85365
|
normalizedData.forEach((row) => {
|
|
@@ -84513,23 +85452,23 @@ var parseBool = (value) => {
|
|
|
84513
85452
|
throw new InvalidArgumentError("Not a boolean.");
|
|
84514
85453
|
};
|
|
84515
85454
|
var log = (message) => {
|
|
84516
|
-
console.log(`${
|
|
85455
|
+
console.log(`${import_chalk3.default.cyan.bold("\u2139 Info:")} ${import_chalk3.default.cyan(message ?? "")}`);
|
|
84517
85456
|
};
|
|
84518
85457
|
var warn = (message) => {
|
|
84519
85458
|
console.log(
|
|
84520
|
-
`${
|
|
85459
|
+
`${import_chalk3.default.yellow.bold("\u2139 Warning:")} ${import_chalk3.default.yellow(message ?? "")}`
|
|
84521
85460
|
);
|
|
84522
85461
|
};
|
|
84523
85462
|
var hint = (message) => {
|
|
84524
|
-
console.log(`${
|
|
85463
|
+
console.log(`${import_chalk3.default.cyan.bold("\u2665 Hint:")} ${import_chalk3.default.cyan(message ?? "")}`);
|
|
84525
85464
|
};
|
|
84526
85465
|
var success2 = (message) => {
|
|
84527
85466
|
console.log(
|
|
84528
|
-
`${
|
|
85467
|
+
`${import_chalk3.default.green.bold("\u2713 Success:")} ${import_chalk3.default.green(message ?? "")}`
|
|
84529
85468
|
);
|
|
84530
85469
|
};
|
|
84531
85470
|
var error48 = (message) => {
|
|
84532
|
-
console.error(`${
|
|
85471
|
+
console.error(`${import_chalk3.default.red.bold("\u2717 Error:")} ${import_chalk3.default.red(message ?? "")}`);
|
|
84533
85472
|
};
|
|
84534
85473
|
var logo = SDK_LOGO;
|
|
84535
85474
|
var commandDescriptions = {
|
|
@@ -84563,7 +85502,7 @@ var commandDescriptions = {
|
|
|
84563
85502
|
migrations: `The migrations command allows you to migrate data between services.`,
|
|
84564
85503
|
vcs: `The vcs command allows you to interact with VCS providers and manage your code repositories.`,
|
|
84565
85504
|
webhooks: `The webhooks command allows you to manage your project webhooks.`,
|
|
84566
|
-
main:
|
|
85505
|
+
main: import_chalk3.default.redBright(`${logo}${description}`)
|
|
84567
85506
|
};
|
|
84568
85507
|
|
|
84569
85508
|
// lib/commands/utils/deployment.ts
|
|
@@ -84573,7 +85512,9 @@ function listDeployableFiles(dirPath, extraIgnoreRules = []) {
|
|
|
84573
85512
|
const normalizePath = (value) => value.split(import_path5.default.sep).join("/");
|
|
84574
85513
|
const createMatcher = (baseDir, rules) => {
|
|
84575
85514
|
const ignorer = ignore();
|
|
84576
|
-
|
|
85515
|
+
for (const rule of rules) {
|
|
85516
|
+
ignorer.add(rule);
|
|
85517
|
+
}
|
|
84577
85518
|
return {
|
|
84578
85519
|
baseDir,
|
|
84579
85520
|
ignorer
|
|
@@ -84770,7 +85711,7 @@ async function pushDeployment(params) {
|
|
|
84770
85711
|
}
|
|
84771
85712
|
|
|
84772
85713
|
// lib/questions.ts
|
|
84773
|
-
var
|
|
85714
|
+
var import_chalk4 = __toESM(require_source(), 1);
|
|
84774
85715
|
|
|
84775
85716
|
// lib/sdks.ts
|
|
84776
85717
|
var import_os4 = __toESM(require("os"), 1);
|
|
@@ -85037,17 +85978,17 @@ var questionsPullResources = [
|
|
|
85037
85978
|
name: "resource",
|
|
85038
85979
|
message: "Which resources would you like to pull?",
|
|
85039
85980
|
choices: [
|
|
85040
|
-
{ name: `Settings ${
|
|
85981
|
+
{ name: `Settings ${import_chalk4.default.blackBright(`(Project)`)}`, value: "settings" },
|
|
85041
85982
|
{
|
|
85042
|
-
name: `Functions ${
|
|
85983
|
+
name: `Functions ${import_chalk4.default.blackBright(`(Deployment)`)}`,
|
|
85043
85984
|
value: "functions"
|
|
85044
85985
|
},
|
|
85045
|
-
{ name: `Tables ${
|
|
85046
|
-
{ name: `Buckets ${
|
|
85047
|
-
{ name: `Teams ${
|
|
85048
|
-
{ name: `Topics ${
|
|
85986
|
+
{ name: `Tables ${import_chalk4.default.blackBright(`(TablesDB)`)}`, value: "tables" },
|
|
85987
|
+
{ name: `Buckets ${import_chalk4.default.blackBright(`(Storage)`)}`, value: "buckets" },
|
|
85988
|
+
{ name: `Teams ${import_chalk4.default.blackBright(`(Auth)`)}`, value: "teams" },
|
|
85989
|
+
{ name: `Topics ${import_chalk4.default.blackBright(`(Messaging)`)}`, value: "messages" },
|
|
85049
85990
|
{
|
|
85050
|
-
name: `Collections ${
|
|
85991
|
+
name: `Collections ${import_chalk4.default.blackBright(`(Legacy Databases)`)}`,
|
|
85051
85992
|
value: "collections"
|
|
85052
85993
|
}
|
|
85053
85994
|
]
|
|
@@ -85092,6 +86033,14 @@ var questionsPushFunctionsCode = [
|
|
|
85092
86033
|
message: "Do you want to create a deployment for your functions?"
|
|
85093
86034
|
}
|
|
85094
86035
|
];
|
|
86036
|
+
var questionsPushFunctionsActivate = [
|
|
86037
|
+
{
|
|
86038
|
+
type: "confirm",
|
|
86039
|
+
name: "activate",
|
|
86040
|
+
message: "Do you want to activate the deployment after it is ready?",
|
|
86041
|
+
default: true
|
|
86042
|
+
}
|
|
86043
|
+
];
|
|
85095
86044
|
var questionsPullSites = [
|
|
85096
86045
|
{
|
|
85097
86046
|
type: "checkbox",
|
|
@@ -85172,17 +86121,17 @@ var questionsPushResources = [
|
|
|
85172
86121
|
name: "resource",
|
|
85173
86122
|
message: "Which resources would you like to push?",
|
|
85174
86123
|
choices: [
|
|
85175
|
-
{ name: `Settings ${
|
|
86124
|
+
{ name: `Settings ${import_chalk4.default.blackBright(`(Project)`)}`, value: "settings" },
|
|
85176
86125
|
{
|
|
85177
|
-
name: `Functions ${
|
|
86126
|
+
name: `Functions ${import_chalk4.default.blackBright(`(Deployment)`)}`,
|
|
85178
86127
|
value: "functions"
|
|
85179
86128
|
},
|
|
85180
|
-
{ name: `Tables ${
|
|
85181
|
-
{ name: `Buckets ${
|
|
85182
|
-
{ name: `Teams ${
|
|
85183
|
-
{ name: `Topics ${
|
|
86129
|
+
{ name: `Tables ${import_chalk4.default.blackBright(`(TablesDB)`)}`, value: "tables" },
|
|
86130
|
+
{ name: `Buckets ${import_chalk4.default.blackBright(`(Storage)`)}`, value: "buckets" },
|
|
86131
|
+
{ name: `Teams ${import_chalk4.default.blackBright(`(Auth)`)}`, value: "teams" },
|
|
86132
|
+
{ name: `Topics ${import_chalk4.default.blackBright(`(Messaging)`)}`, value: "messages" },
|
|
85184
86133
|
{
|
|
85185
|
-
name: `Collections ${
|
|
86134
|
+
name: `Collections ${import_chalk4.default.blackBright(`(Legacy Databases)`)}`,
|
|
85186
86135
|
value: "collections"
|
|
85187
86136
|
}
|
|
85188
86137
|
]
|
|
@@ -85567,7 +86516,7 @@ var Pools = class {
|
|
|
85567
86516
|
};
|
|
85568
86517
|
|
|
85569
86518
|
// lib/commands/utils/attributes.ts
|
|
85570
|
-
var
|
|
86519
|
+
var import_chalk5 = __toESM(require_source(), 1);
|
|
85571
86520
|
var import_inquirer = __toESM(require_inquirer(), 1);
|
|
85572
86521
|
var changeableKeys = [
|
|
85573
86522
|
"status",
|
|
@@ -85637,11 +86586,11 @@ var Attributes = class {
|
|
|
85637
86586
|
if (Array.isArray(remote) && Array.isArray(local)) {
|
|
85638
86587
|
if (JSON.stringify(remote) !== JSON.stringify(local)) {
|
|
85639
86588
|
const bol = reason === "" ? "" : "\n";
|
|
85640
|
-
reason += `${bol}${key} changed from ${
|
|
86589
|
+
reason += `${bol}${key} changed from ${import_chalk5.default.red(remote)} to ${import_chalk5.default.green(local)}`;
|
|
85641
86590
|
}
|
|
85642
86591
|
} else if (!this.isEqual(remote, local)) {
|
|
85643
86592
|
const bol = reason === "" ? "" : "\n";
|
|
85644
|
-
reason += `${bol}${key} changed from ${
|
|
86593
|
+
reason += `${bol}${key} changed from ${import_chalk5.default.red(remote)} to ${import_chalk5.default.green(local)}`;
|
|
85645
86594
|
}
|
|
85646
86595
|
return reason;
|
|
85647
86596
|
};
|
|
@@ -85653,8 +86602,8 @@ var Attributes = class {
|
|
|
85653
86602
|
if (local === void 0) {
|
|
85654
86603
|
return void 0;
|
|
85655
86604
|
}
|
|
85656
|
-
const keyName = `${
|
|
85657
|
-
const action =
|
|
86605
|
+
const keyName = `${import_chalk5.default.yellow(local.key)} in ${collection.name} (${collection["$id"]})`;
|
|
86606
|
+
const action = import_chalk5.default.cyan(recreating ? "recreating" : "changing");
|
|
85658
86607
|
let reason = "";
|
|
85659
86608
|
const attribute = recreating ? remote : local;
|
|
85660
86609
|
for (const key of Object.keys(remote)) {
|
|
@@ -85680,10 +86629,10 @@ var Attributes = class {
|
|
|
85680
86629
|
attributesContains = (attribute, attributes) => attributes.find((attr) => attr.key === attribute.key);
|
|
85681
86630
|
generateChangesObject = (attribute, collection, isAdding) => {
|
|
85682
86631
|
return {
|
|
85683
|
-
key: `${
|
|
86632
|
+
key: `${import_chalk5.default.yellow(attribute.key)} in ${collection.name} (${collection["$id"]})`,
|
|
85684
86633
|
attribute,
|
|
85685
86634
|
reason: isAdding ? "Field isn't present on the remote server" : "Field isn't present on the appwrite.config.json file",
|
|
85686
|
-
action: isAdding ?
|
|
86635
|
+
action: isAdding ? import_chalk5.default.green("adding") : import_chalk5.default.red("deleting")
|
|
85687
86636
|
};
|
|
85688
86637
|
};
|
|
85689
86638
|
createAttribute = async (databaseId, collectionId, attribute) => {
|
|
@@ -86089,25 +87038,25 @@ var Attributes = class {
|
|
|
86089
87038
|
if (!cliConfig.force) {
|
|
86090
87039
|
if (deleting.length > 0 && !isIndex) {
|
|
86091
87040
|
console.log(
|
|
86092
|
-
`${
|
|
87041
|
+
`${import_chalk5.default.red("------------------------------------------------------")}`
|
|
86093
87042
|
);
|
|
86094
87043
|
console.log(
|
|
86095
|
-
`${
|
|
87044
|
+
`${import_chalk5.default.red("| WARNING: Attribute deletion may cause loss of data |")}`
|
|
86096
87045
|
);
|
|
86097
87046
|
console.log(
|
|
86098
|
-
`${
|
|
87047
|
+
`${import_chalk5.default.red("------------------------------------------------------")}`
|
|
86099
87048
|
);
|
|
86100
87049
|
console.log();
|
|
86101
87050
|
}
|
|
86102
87051
|
if (conflicts.length > 0 && !isIndex) {
|
|
86103
87052
|
console.log(
|
|
86104
|
-
`${
|
|
87053
|
+
`${import_chalk5.default.red("--------------------------------------------------------")}`
|
|
86105
87054
|
);
|
|
86106
87055
|
console.log(
|
|
86107
|
-
`${
|
|
87056
|
+
`${import_chalk5.default.red("| WARNING: Attribute recreation may cause loss of data |")}`
|
|
86108
87057
|
);
|
|
86109
87058
|
console.log(
|
|
86110
|
-
`${
|
|
87059
|
+
`${import_chalk5.default.red("--------------------------------------------------------")}`
|
|
86111
87060
|
);
|
|
86112
87061
|
console.log();
|
|
86113
87062
|
}
|
|
@@ -86240,7 +87189,7 @@ var Attributes = class {
|
|
|
86240
87189
|
};
|
|
86241
87190
|
|
|
86242
87191
|
// lib/commands/utils/change-approval.ts
|
|
86243
|
-
var
|
|
87192
|
+
var import_chalk6 = __toESM(require_source(), 1);
|
|
86244
87193
|
var import_inquirer2 = __toESM(require_inquirer(), 1);
|
|
86245
87194
|
var isEmpty = (value) => value === null || value === void 0 || typeof value === "string" && value.trim().length === 0 || Array.isArray(value) && value.length === 0;
|
|
86246
87195
|
var getConfirmation = async () => {
|
|
@@ -86283,8 +87232,8 @@ var getObjectChanges = (remote, local, index, what) => {
|
|
|
86283
87232
|
changes.push({
|
|
86284
87233
|
group: what,
|
|
86285
87234
|
setting: service,
|
|
86286
|
-
remote:
|
|
86287
|
-
local:
|
|
87235
|
+
remote: import_chalk6.default.red(String(status ?? "")),
|
|
87236
|
+
local: import_chalk6.default.green(String(localValue ?? ""))
|
|
86288
87237
|
});
|
|
86289
87238
|
}
|
|
86290
87239
|
}
|
|
@@ -86319,8 +87268,8 @@ var approveChanges = async (resource, resourceGetFunction, keys, resourceName, r
|
|
|
86319
87268
|
changes.push({
|
|
86320
87269
|
id: localResource["$id"],
|
|
86321
87270
|
key,
|
|
86322
|
-
remote:
|
|
86323
|
-
local:
|
|
87271
|
+
remote: import_chalk6.default.red(value.join("\n")),
|
|
87272
|
+
local: import_chalk6.default.green(
|
|
86324
87273
|
localValue.map((entry) => String(entry)).join("\n")
|
|
86325
87274
|
)
|
|
86326
87275
|
});
|
|
@@ -86329,8 +87278,8 @@ var approveChanges = async (resource, resourceGetFunction, keys, resourceName, r
|
|
|
86329
87278
|
changes.push({
|
|
86330
87279
|
id: localResource["$id"],
|
|
86331
87280
|
key,
|
|
86332
|
-
remote:
|
|
86333
|
-
local:
|
|
87281
|
+
remote: import_chalk6.default.red(String(value ?? "")),
|
|
87282
|
+
local: import_chalk6.default.green(String(localValue ?? ""))
|
|
86334
87283
|
});
|
|
86335
87284
|
}
|
|
86336
87285
|
}
|
|
@@ -86352,7 +87301,7 @@ var approveChanges = async (resource, resourceGetFunction, keys, resourceName, r
|
|
|
86352
87301
|
};
|
|
86353
87302
|
|
|
86354
87303
|
// lib/commands/utils/database-sync.ts
|
|
86355
|
-
var
|
|
87304
|
+
var import_chalk7 = __toESM(require_source(), 1);
|
|
86356
87305
|
var isTablesDBResource = (value) => {
|
|
86357
87306
|
if (!value || typeof value !== "object") {
|
|
86358
87307
|
return false;
|
|
@@ -86397,7 +87346,7 @@ var checkAndApplyTablesDBChanges = async () => {
|
|
|
86397
87346
|
toDelete.push(remoteDB);
|
|
86398
87347
|
changes.push({
|
|
86399
87348
|
id: remoteDB.$id,
|
|
86400
|
-
action:
|
|
87349
|
+
action: import_chalk7.default.red("deleting"),
|
|
86401
87350
|
key: "Database",
|
|
86402
87351
|
remote: remoteDB.name,
|
|
86403
87352
|
local: "(deleted locally)"
|
|
@@ -86410,7 +87359,7 @@ var checkAndApplyTablesDBChanges = async () => {
|
|
|
86410
87359
|
toCreate.push(localDB);
|
|
86411
87360
|
changes.push({
|
|
86412
87361
|
id: localDB.$id,
|
|
86413
|
-
action:
|
|
87362
|
+
action: import_chalk7.default.green("creating"),
|
|
86414
87363
|
key: "Database",
|
|
86415
87364
|
remote: "(does not exist)",
|
|
86416
87365
|
local: localDB.name
|
|
@@ -86421,7 +87370,7 @@ var checkAndApplyTablesDBChanges = async () => {
|
|
|
86421
87370
|
hasChanges = true;
|
|
86422
87371
|
changes.push({
|
|
86423
87372
|
id: localDB.$id,
|
|
86424
|
-
action:
|
|
87373
|
+
action: import_chalk7.default.yellow("updating"),
|
|
86425
87374
|
key: "Name",
|
|
86426
87375
|
remote: remoteDB.name,
|
|
86427
87376
|
local: localDB.name
|
|
@@ -86431,7 +87380,7 @@ var checkAndApplyTablesDBChanges = async () => {
|
|
|
86431
87380
|
hasChanges = true;
|
|
86432
87381
|
changes.push({
|
|
86433
87382
|
id: localDB.$id,
|
|
86434
|
-
action:
|
|
87383
|
+
action: import_chalk7.default.yellow("updating"),
|
|
86435
87384
|
key: "Enabled",
|
|
86436
87385
|
remote: remoteDB.enabled,
|
|
86437
87386
|
local: localDB.enabled
|
|
@@ -86449,13 +87398,13 @@ var checkAndApplyTablesDBChanges = async () => {
|
|
|
86449
87398
|
drawTable(changes);
|
|
86450
87399
|
if (toDelete.length > 0) {
|
|
86451
87400
|
console.log(
|
|
86452
|
-
`${
|
|
87401
|
+
`${import_chalk7.default.red("------------------------------------------------------------------")}`
|
|
86453
87402
|
);
|
|
86454
87403
|
console.log(
|
|
86455
|
-
`${
|
|
87404
|
+
`${import_chalk7.default.red("| WARNING: Database deletion will also delete all related tables |")}`
|
|
86456
87405
|
);
|
|
86457
87406
|
console.log(
|
|
86458
|
-
`${
|
|
87407
|
+
`${import_chalk7.default.red("------------------------------------------------------------------")}`
|
|
86459
87408
|
);
|
|
86460
87409
|
console.log();
|
|
86461
87410
|
}
|
|
@@ -86587,7 +87536,7 @@ var Push = class {
|
|
|
86587
87536
|
settings: config2.settings
|
|
86588
87537
|
});
|
|
86589
87538
|
this.success(
|
|
86590
|
-
`Successfully pushed ${
|
|
87539
|
+
`Successfully pushed ${import_chalk8.default.bold("all")} project settings.`
|
|
86591
87540
|
);
|
|
86592
87541
|
results.settings = { success: true };
|
|
86593
87542
|
} catch (e) {
|
|
@@ -86600,7 +87549,7 @@ var Push = class {
|
|
|
86600
87549
|
this.log("Pushing buckets ...");
|
|
86601
87550
|
const result = await this.pushBuckets(config2.buckets);
|
|
86602
87551
|
this.success(
|
|
86603
|
-
`Successfully pushed ${
|
|
87552
|
+
`Successfully pushed ${import_chalk8.default.bold(result.successfullyPushed)} buckets.`
|
|
86604
87553
|
);
|
|
86605
87554
|
results.buckets = result;
|
|
86606
87555
|
allErrors.push(...result.errors);
|
|
@@ -86614,7 +87563,7 @@ var Push = class {
|
|
|
86614
87563
|
this.log("Pushing teams ...");
|
|
86615
87564
|
const result = await this.pushTeams(config2.teams);
|
|
86616
87565
|
this.success(
|
|
86617
|
-
`Successfully pushed ${
|
|
87566
|
+
`Successfully pushed ${import_chalk8.default.bold(result.successfullyPushed)} teams.`
|
|
86618
87567
|
);
|
|
86619
87568
|
results.teams = result;
|
|
86620
87569
|
allErrors.push(...result.errors);
|
|
@@ -86628,7 +87577,7 @@ var Push = class {
|
|
|
86628
87577
|
this.log("Pushing topics ...");
|
|
86629
87578
|
const result = await this.pushMessagingTopics(config2.topics);
|
|
86630
87579
|
this.success(
|
|
86631
|
-
`Successfully pushed ${
|
|
87580
|
+
`Successfully pushed ${import_chalk8.default.bold(result.successfullyPushed)} topics.`
|
|
86632
87581
|
);
|
|
86633
87582
|
results.topics = result;
|
|
86634
87583
|
allErrors.push(...result.errors);
|
|
@@ -86645,7 +87594,7 @@ var Push = class {
|
|
|
86645
87594
|
options.functionOptions
|
|
86646
87595
|
);
|
|
86647
87596
|
this.success(
|
|
86648
|
-
`Successfully pushed ${
|
|
87597
|
+
`Successfully pushed ${import_chalk8.default.bold(result.successfullyPushed)} functions.`
|
|
86649
87598
|
);
|
|
86650
87599
|
results.functions = result;
|
|
86651
87600
|
allErrors.push(...result.errors);
|
|
@@ -86667,7 +87616,7 @@ var Push = class {
|
|
|
86667
87616
|
options.siteOptions
|
|
86668
87617
|
);
|
|
86669
87618
|
this.success(
|
|
86670
|
-
`Successfully pushed ${
|
|
87619
|
+
`Successfully pushed ${import_chalk8.default.bold(result.successfullyPushed)} sites.`
|
|
86671
87620
|
);
|
|
86672
87621
|
results.sites = result;
|
|
86673
87622
|
allErrors.push(...result.errors);
|
|
@@ -86689,7 +87638,7 @@ var Push = class {
|
|
|
86689
87638
|
skipConfirmation: options.skipConfirmation
|
|
86690
87639
|
});
|
|
86691
87640
|
this.success(
|
|
86692
|
-
`Successfully pushed ${
|
|
87641
|
+
`Successfully pushed ${import_chalk8.default.bold(result.successfullyPushed)} tables.`
|
|
86693
87642
|
);
|
|
86694
87643
|
results.tables = result;
|
|
86695
87644
|
allErrors.push(...result.errors);
|
|
@@ -86716,7 +87665,7 @@ var Push = class {
|
|
|
86716
87665
|
skipConfirmation: options.skipConfirmation
|
|
86717
87666
|
});
|
|
86718
87667
|
this.success(
|
|
86719
|
-
`Successfully pushed ${
|
|
87668
|
+
`Successfully pushed ${import_chalk8.default.bold(result.successfullyPushed)} collections.`
|
|
86720
87669
|
);
|
|
86721
87670
|
results.collections = result;
|
|
86722
87671
|
allErrors.push(...result.errors);
|
|
@@ -86832,14 +87781,14 @@ var Push = class {
|
|
|
86832
87781
|
};
|
|
86833
87782
|
for (const bucket of buckets) {
|
|
86834
87783
|
try {
|
|
86835
|
-
this.log(`Pushing bucket ${
|
|
87784
|
+
this.log(`Pushing bucket ${import_chalk8.default.bold(bucket["name"])} ...`);
|
|
86836
87785
|
const storageService = await getStorageService(this.projectClient);
|
|
86837
87786
|
try {
|
|
86838
87787
|
const remoteBucket = await storageService.getBucket(bucket["$id"]);
|
|
86839
87788
|
const hasChanges = hasBucketChanges(remoteBucket, bucket);
|
|
86840
87789
|
if (!hasChanges) {
|
|
86841
87790
|
this.log(
|
|
86842
|
-
`No changes detected for bucket ${
|
|
87791
|
+
`No changes detected for bucket ${import_chalk8.default.bold(bucket["name"])}. Skipping.`
|
|
86843
87792
|
);
|
|
86844
87793
|
continue;
|
|
86845
87794
|
}
|
|
@@ -86890,7 +87839,7 @@ var Push = class {
|
|
|
86890
87839
|
const errors = [];
|
|
86891
87840
|
for (const team of teams) {
|
|
86892
87841
|
try {
|
|
86893
|
-
this.log(`Pushing team ${
|
|
87842
|
+
this.log(`Pushing team ${import_chalk8.default.bold(team["name"])} ...`);
|
|
86894
87843
|
const teamsService = await getTeamsService(this.projectClient);
|
|
86895
87844
|
try {
|
|
86896
87845
|
await teamsService.get(team["$id"]);
|
|
@@ -86924,7 +87873,7 @@ var Push = class {
|
|
|
86924
87873
|
const errors = [];
|
|
86925
87874
|
for (const topic of topics) {
|
|
86926
87875
|
try {
|
|
86927
|
-
this.log(`Pushing topic ${
|
|
87876
|
+
this.log(`Pushing topic ${import_chalk8.default.bold(topic["name"])} ...`);
|
|
86928
87877
|
const messagingService = await getMessagingService(this.projectClient);
|
|
86929
87878
|
try {
|
|
86930
87879
|
await messagingService.getTopic(topic["$id"]);
|
|
@@ -86957,12 +87906,18 @@ var Push = class {
|
|
|
86957
87906
|
};
|
|
86958
87907
|
}
|
|
86959
87908
|
async pushFunctions(functions, options = {}) {
|
|
86960
|
-
const {
|
|
87909
|
+
const {
|
|
87910
|
+
async: asyncDeploy,
|
|
87911
|
+
code,
|
|
87912
|
+
activate = true,
|
|
87913
|
+
withVariables
|
|
87914
|
+
} = options;
|
|
86961
87915
|
Spinner.start(false);
|
|
86962
87916
|
let successfullyPushed = 0;
|
|
86963
87917
|
let successfullyDeployed = 0;
|
|
86964
87918
|
const failedDeployments = [];
|
|
86965
87919
|
const errors = [];
|
|
87920
|
+
const deploymentLogs = [];
|
|
86966
87921
|
await Promise.all(
|
|
86967
87922
|
functions.map(async (func) => {
|
|
86968
87923
|
let response = {};
|
|
@@ -87134,6 +88089,7 @@ var Push = class {
|
|
|
87134
88089
|
});
|
|
87135
88090
|
return;
|
|
87136
88091
|
}
|
|
88092
|
+
const deployStartTime = Date.now();
|
|
87137
88093
|
try {
|
|
87138
88094
|
updaterRow.update({ status: "Pushing" }).replaceSpinner(SPINNER_DOTS);
|
|
87139
88095
|
const functionsServiceDeploy = await getFunctionsService(
|
|
@@ -87148,7 +88104,7 @@ var Push = class {
|
|
|
87148
88104
|
entrypoint: func.entrypoint,
|
|
87149
88105
|
commands: func.commands,
|
|
87150
88106
|
code: codeFile,
|
|
87151
|
-
activate
|
|
88107
|
+
activate
|
|
87152
88108
|
});
|
|
87153
88109
|
},
|
|
87154
88110
|
pollForStatus: false
|
|
@@ -87200,6 +88156,19 @@ var Push = class {
|
|
|
87200
88156
|
});
|
|
87201
88157
|
const status = response["status"];
|
|
87202
88158
|
if (status === "ready") {
|
|
88159
|
+
if (activate) {
|
|
88160
|
+
updaterRow.update({
|
|
88161
|
+
status: "Activating",
|
|
88162
|
+
end: "Setting active deployment..."
|
|
88163
|
+
});
|
|
88164
|
+
const functionsServiceActivate = await getFunctionsService(
|
|
88165
|
+
this.projectClient
|
|
88166
|
+
);
|
|
88167
|
+
await functionsServiceActivate.updateFunctionDeployment({
|
|
88168
|
+
functionId: func["$id"],
|
|
88169
|
+
deploymentId
|
|
88170
|
+
});
|
|
88171
|
+
}
|
|
87203
88172
|
successfullyDeployed++;
|
|
87204
88173
|
let url2 = "";
|
|
87205
88174
|
const proxyServiceUrl = await getProxyService(
|
|
@@ -87216,7 +88185,23 @@ var Push = class {
|
|
|
87216
88185
|
if (Number(res.total) === 1) {
|
|
87217
88186
|
url2 = `https://${res.rules[0].domain}`;
|
|
87218
88187
|
}
|
|
87219
|
-
|
|
88188
|
+
const elapsed = ((Date.now() - deployStartTime) / 1e3).toFixed(
|
|
88189
|
+
1
|
|
88190
|
+
);
|
|
88191
|
+
const endpoint = localConfig.getEndpoint() || globalConfig2.getEndpoint();
|
|
88192
|
+
const projectId = localConfig.getProject().projectId;
|
|
88193
|
+
const consoleUrl = getFunctionDeploymentConsoleUrl(
|
|
88194
|
+
endpoint,
|
|
88195
|
+
projectId,
|
|
88196
|
+
func["$id"],
|
|
88197
|
+
deploymentId
|
|
88198
|
+
);
|
|
88199
|
+
updaterRow.stopSpinner();
|
|
88200
|
+
updaterRow.update({
|
|
88201
|
+
status: activate ? "Deployed" : "Built",
|
|
88202
|
+
end: ""
|
|
88203
|
+
});
|
|
88204
|
+
deploymentLogs.push({ url: url2, consoleUrl, elapsed });
|
|
87220
88205
|
break;
|
|
87221
88206
|
} else if (status === "failed") {
|
|
87222
88207
|
failedDeployments.push({
|
|
@@ -87247,6 +88232,13 @@ var Push = class {
|
|
|
87247
88232
|
})
|
|
87248
88233
|
);
|
|
87249
88234
|
Spinner.stop();
|
|
88235
|
+
for (const dl of deploymentLogs) {
|
|
88236
|
+
if (dl.url) {
|
|
88237
|
+
this.log(` ${import_chalk8.default.cyan("\u2192")} ${dl.url}`);
|
|
88238
|
+
}
|
|
88239
|
+
this.log(` ${import_chalk8.default.cyan("\u2192")} ${dl.consoleUrl}`);
|
|
88240
|
+
this.success(`Successfully deployed in ${import_chalk8.default.bold(dl.elapsed + "s")}`);
|
|
88241
|
+
}
|
|
87250
88242
|
return {
|
|
87251
88243
|
successfullyPushed,
|
|
87252
88244
|
successfullyDeployed,
|
|
@@ -87266,6 +88258,7 @@ var Push = class {
|
|
|
87266
88258
|
let successfullyDeployed = 0;
|
|
87267
88259
|
const failedDeployments = [];
|
|
87268
88260
|
const errors = [];
|
|
88261
|
+
const deploymentLogs = [];
|
|
87269
88262
|
await Promise.all(
|
|
87270
88263
|
sites.map(async (site) => {
|
|
87271
88264
|
let response = {};
|
|
@@ -87431,6 +88424,7 @@ var Push = class {
|
|
|
87431
88424
|
});
|
|
87432
88425
|
return;
|
|
87433
88426
|
}
|
|
88427
|
+
const deployStartTime = Date.now();
|
|
87434
88428
|
try {
|
|
87435
88429
|
updaterRow.update({ status: "Pushing" }).replaceSpinner(SPINNER_DOTS);
|
|
87436
88430
|
const sitesServiceDeploy = await getSitesService(this.projectClient);
|
|
@@ -87443,7 +88437,7 @@ var Push = class {
|
|
|
87443
88437
|
buildCommand: site.buildCommand,
|
|
87444
88438
|
outputDirectory: site.outputDirectory,
|
|
87445
88439
|
code: codeFile,
|
|
87446
|
-
activate
|
|
88440
|
+
activate
|
|
87447
88441
|
});
|
|
87448
88442
|
},
|
|
87449
88443
|
pollForStatus: false
|
|
@@ -87524,10 +88518,23 @@ var Push = class {
|
|
|
87524
88518
|
if (Number(res.total) === 1) {
|
|
87525
88519
|
url2 = `https://${res.rules[0].domain}`;
|
|
87526
88520
|
}
|
|
88521
|
+
const elapsed = ((Date.now() - deployStartTime) / 1e3).toFixed(
|
|
88522
|
+
1
|
|
88523
|
+
);
|
|
88524
|
+
const endpoint = localConfig.getEndpoint() || globalConfig2.getEndpoint();
|
|
88525
|
+
const projectId = localConfig.getProject().projectId;
|
|
88526
|
+
const consoleUrl = getSiteDeploymentConsoleUrl(
|
|
88527
|
+
endpoint,
|
|
88528
|
+
projectId,
|
|
88529
|
+
site["$id"],
|
|
88530
|
+
deploymentId
|
|
88531
|
+
);
|
|
88532
|
+
updaterRow.stopSpinner();
|
|
87527
88533
|
updaterRow.update({
|
|
87528
88534
|
status: activate ? "Deployed" : "Built",
|
|
87529
|
-
end:
|
|
88535
|
+
end: ""
|
|
87530
88536
|
});
|
|
88537
|
+
deploymentLogs.push({ url: url2, consoleUrl, elapsed });
|
|
87531
88538
|
break;
|
|
87532
88539
|
} else if (status === "failed") {
|
|
87533
88540
|
failedDeployments.push({
|
|
@@ -87558,6 +88565,13 @@ var Push = class {
|
|
|
87558
88565
|
})
|
|
87559
88566
|
);
|
|
87560
88567
|
Spinner.stop();
|
|
88568
|
+
for (const dl of deploymentLogs) {
|
|
88569
|
+
if (dl.url) {
|
|
88570
|
+
this.log(` ${import_chalk8.default.cyan("\u2192")} ${dl.url}`);
|
|
88571
|
+
}
|
|
88572
|
+
this.log(` ${import_chalk8.default.cyan("\u2192")} ${dl.consoleUrl}`);
|
|
88573
|
+
this.success(`Successfully deployed in ${import_chalk8.default.bold(dl.elapsed + "s")}`);
|
|
88574
|
+
}
|
|
87561
88575
|
return {
|
|
87562
88576
|
successfullyPushed,
|
|
87563
88577
|
successfullyDeployed,
|
|
@@ -87650,7 +88664,7 @@ var Push = class {
|
|
|
87650
88664
|
if (!hadChanges && columns.length <= 0 && indexes.length <= 0) {
|
|
87651
88665
|
if (!tablesChanged.has(table["$id"])) {
|
|
87652
88666
|
this.log(
|
|
87653
|
-
`No changes detected for table ${
|
|
88667
|
+
`No changes detected for table ${import_chalk8.default.bold(table["name"])}. Skipping.`
|
|
87654
88668
|
);
|
|
87655
88669
|
}
|
|
87656
88670
|
continue;
|
|
@@ -87839,10 +88853,17 @@ var pushResources = async ({
|
|
|
87839
88853
|
checkDeployConditions(localConfig);
|
|
87840
88854
|
const functions = localConfig.getFunctions();
|
|
87841
88855
|
let allowFunctionsCodePush = cliConfig.force === true ? true : null;
|
|
88856
|
+
let activateFunctionsDeployment = cliConfig.force === true ? true : void 0;
|
|
87842
88857
|
if (functions.length > 0 && allowFunctionsCodePush === null) {
|
|
87843
88858
|
const codeAnswer = await import_inquirer3.default.prompt(questionsPushFunctionsCode);
|
|
87844
88859
|
allowFunctionsCodePush = codeAnswer.override;
|
|
87845
88860
|
}
|
|
88861
|
+
if (functions.length > 0 && allowFunctionsCodePush === true && activateFunctionsDeployment === void 0) {
|
|
88862
|
+
const activateAnswer = await import_inquirer3.default.prompt(
|
|
88863
|
+
questionsPushFunctionsActivate
|
|
88864
|
+
);
|
|
88865
|
+
activateFunctionsDeployment = activateAnswer.activate;
|
|
88866
|
+
}
|
|
87846
88867
|
const sites = localConfig.getSites();
|
|
87847
88868
|
let allowSitesCodePush = cliConfig.force === true ? true : null;
|
|
87848
88869
|
let activateSitesDeployment = cliConfig.force === true ? true : void 0;
|
|
@@ -87883,6 +88904,7 @@ var pushResources = async ({
|
|
|
87883
88904
|
skipDeprecated,
|
|
87884
88905
|
functionOptions: {
|
|
87885
88906
|
code: allowFunctionsCodePush === true,
|
|
88907
|
+
activate: activateFunctionsDeployment ?? true,
|
|
87886
88908
|
withVariables: false
|
|
87887
88909
|
},
|
|
87888
88910
|
siteOptions: {
|
|
@@ -87962,7 +88984,7 @@ var pushSettings = async () => {
|
|
|
87962
88984
|
projectName: config2.projectName,
|
|
87963
88985
|
settings: config2.projectSettings
|
|
87964
88986
|
});
|
|
87965
|
-
success2(`Successfully pushed ${
|
|
88987
|
+
success2(`Successfully pushed ${import_chalk8.default.bold("all")} project settings.`);
|
|
87966
88988
|
} catch (e) {
|
|
87967
88989
|
throw e;
|
|
87968
88990
|
}
|
|
@@ -88059,17 +89081,12 @@ var pushSite = async ({
|
|
|
88059
89081
|
const { name, deployment, $id } = failed;
|
|
88060
89082
|
const projectId = localConfig.getProject().projectId;
|
|
88061
89083
|
const endpoint = localConfig.getEndpoint() || globalConfig2.getEndpoint();
|
|
88062
|
-
|
|
88063
|
-
|
|
88064
|
-
|
|
88065
|
-
|
|
88066
|
-
|
|
88067
|
-
|
|
88068
|
-
}
|
|
88069
|
-
} catch {
|
|
88070
|
-
}
|
|
88071
|
-
const projectSlug = region ? `project-${region}-${projectId}` : `project-${projectId}`;
|
|
88072
|
-
const failUrl = `${globalConfig2.getEndpoint().slice(0, -3)}/console/${projectSlug}/sites/site-${$id}/deployments/deployment-${deployment}`;
|
|
89084
|
+
const failUrl = getSiteDeploymentConsoleUrl(
|
|
89085
|
+
endpoint,
|
|
89086
|
+
projectId,
|
|
89087
|
+
$id,
|
|
89088
|
+
deployment
|
|
89089
|
+
);
|
|
88073
89090
|
error48(
|
|
88074
89091
|
`Deployment of ${name} has failed. Check at ${failUrl} for more details
|
|
88075
89092
|
`
|
|
@@ -88098,6 +89115,7 @@ var pushFunction = async ({
|
|
|
88098
89115
|
functionId,
|
|
88099
89116
|
async: asyncDeploy,
|
|
88100
89117
|
code,
|
|
89118
|
+
activate,
|
|
88101
89119
|
withVariables
|
|
88102
89120
|
} = {}) => {
|
|
88103
89121
|
process.chdir(localConfig.configDirectoryPath);
|
|
@@ -88162,11 +89180,19 @@ var pushFunction = async ({
|
|
|
88162
89180
|
allowCodePush = codeAnswer.override;
|
|
88163
89181
|
}
|
|
88164
89182
|
const shouldPushCode = code !== false && allowCodePush === true;
|
|
89183
|
+
let shouldActivate = activate;
|
|
89184
|
+
if (shouldPushCode && shouldActivate === void 0) {
|
|
89185
|
+
const activateAnswer = await import_inquirer3.default.prompt(
|
|
89186
|
+
questionsPushFunctionsActivate
|
|
89187
|
+
);
|
|
89188
|
+
shouldActivate = activateAnswer.activate;
|
|
89189
|
+
}
|
|
88165
89190
|
log("Pushing functions ...");
|
|
88166
89191
|
const pushInstance = await createPushInstance();
|
|
88167
89192
|
const result = await pushInstance.pushFunctions(functions, {
|
|
88168
89193
|
async: asyncDeploy,
|
|
88169
89194
|
code: shouldPushCode,
|
|
89195
|
+
activate: shouldActivate ?? true,
|
|
88170
89196
|
withVariables
|
|
88171
89197
|
});
|
|
88172
89198
|
const {
|
|
@@ -88179,17 +89205,12 @@ var pushFunction = async ({
|
|
|
88179
89205
|
const { name, deployment, $id } = failed;
|
|
88180
89206
|
const projectId = localConfig.getProject().projectId;
|
|
88181
89207
|
const endpoint = localConfig.getEndpoint() || globalConfig2.getEndpoint();
|
|
88182
|
-
|
|
88183
|
-
|
|
88184
|
-
|
|
88185
|
-
|
|
88186
|
-
|
|
88187
|
-
|
|
88188
|
-
}
|
|
88189
|
-
} catch {
|
|
88190
|
-
}
|
|
88191
|
-
const projectSlug = region ? `project-${region}-${projectId}` : `project-${projectId}`;
|
|
88192
|
-
const failUrl = `${globalConfig2.getEndpoint().slice(0, -3)}/console/${projectSlug}/functions/function-${$id}/deployment-${deployment}`;
|
|
89208
|
+
const failUrl = getFunctionDeploymentConsoleUrl(
|
|
89209
|
+
endpoint,
|
|
89210
|
+
projectId,
|
|
89211
|
+
$id,
|
|
89212
|
+
deployment
|
|
89213
|
+
);
|
|
88193
89214
|
error48(
|
|
88194
89215
|
`Deployment of ${name} has failed. Check at ${failUrl} for more details
|
|
88195
89216
|
`
|
|
@@ -88283,7 +89304,7 @@ var pushTable = async ({
|
|
|
88283
89304
|
log("Found tables that exist remotely but not locally:");
|
|
88284
89305
|
const deletionChanges = tablesToDelete.map((table) => ({
|
|
88285
89306
|
id: table.$id,
|
|
88286
|
-
action:
|
|
89307
|
+
action: import_chalk8.default.red("deleting"),
|
|
88287
89308
|
key: "Table",
|
|
88288
89309
|
database: table.databaseName,
|
|
88289
89310
|
remote: table.name,
|
|
@@ -88580,7 +89601,11 @@ push.command("all").description("Push all resource.").action(
|
|
|
88580
89601
|
})
|
|
88581
89602
|
);
|
|
88582
89603
|
push.command("settings").description("Push project name, services and auth settings").action(actionRunner(pushSettings));
|
|
88583
|
-
push.command("function").alias("functions").description("Push functions in the current directory.").option(`-f, --function-id <function-id>`, `ID of function to run`).option(`-A, --async`, `Don't wait for functions deployments status`).option("--no-code", "Don't push the function's code").option(
|
|
89604
|
+
push.command("function").alias("functions").description("Push functions in the current directory.").option(`-f, --function-id <function-id>`, `ID of function to run`).option(`-A, --async`, `Don't wait for functions deployments status`).option("--no-code", "Don't push the function's code").option(
|
|
89605
|
+
"--activate [value]",
|
|
89606
|
+
"Activate the function's deployment after it is ready.",
|
|
89607
|
+
(value) => value === void 0 ? true : parseBool(value)
|
|
89608
|
+
).option("--with-variables", `Push function variables.`).action(actionRunner(pushFunction));
|
|
88584
89609
|
push.command("site").alias("sites").description("Push sites in the current directory.").option(`-f, --site-id <site-id>`, `ID of site to run`).option(`-A, --async`, `Don't wait for sites deployments status`).option("--no-code", "Don't push the site's code").option(
|
|
88585
89610
|
"--activate [value]",
|
|
88586
89611
|
"Activate the site's deployment after it is ready.",
|
|
@@ -88610,7 +89635,7 @@ var deploy = new Command("deploy").description(`Removed. Use ${EXECUTABLE_NAME}
|
|
|
88610
89635
|
// lib/commands/pull.ts
|
|
88611
89636
|
var import_fs8 = __toESM(require("fs"), 1);
|
|
88612
89637
|
var import_path7 = __toESM(require("path"), 1);
|
|
88613
|
-
var
|
|
89638
|
+
var import_chalk9 = __toESM(require_source(), 1);
|
|
88614
89639
|
var import_inquirer4 = __toESM(require_inquirer(), 1);
|
|
88615
89640
|
|
|
88616
89641
|
// lib/commands/errors.ts
|
|
@@ -88739,7 +89764,7 @@ var Pull = class {
|
|
|
88739
89764
|
this.log("Pulling project settings ...");
|
|
88740
89765
|
const projectsService = new Projects(this.consoleClient);
|
|
88741
89766
|
const project = await projectsService.get({ projectId });
|
|
88742
|
-
this.success(`Successfully pulled ${
|
|
89767
|
+
this.success(`Successfully pulled ${import_chalk9.default.bold("all")} project settings.`);
|
|
88743
89768
|
return {
|
|
88744
89769
|
projectName: project.name,
|
|
88745
89770
|
settings: createSettingsObject(project),
|
|
@@ -88767,7 +89792,7 @@ var Pull = class {
|
|
|
88767
89792
|
});
|
|
88768
89793
|
if (fetchResponse["functions"].length <= 0) {
|
|
88769
89794
|
this.log("No functions found.");
|
|
88770
|
-
this.success(`Successfully pulled ${
|
|
89795
|
+
this.success(`Successfully pulled ${import_chalk9.default.bold(0)} functions.`);
|
|
88771
89796
|
return [];
|
|
88772
89797
|
}
|
|
88773
89798
|
const { functions: allFunctions } = await paginate(
|
|
@@ -88780,8 +89805,8 @@ var Pull = class {
|
|
|
88780
89805
|
}
|
|
88781
89806
|
const result = [];
|
|
88782
89807
|
for (const func of functions) {
|
|
88783
|
-
this.log(`Pulling function ${
|
|
88784
|
-
const funcPath = `functions/${func.name}`;
|
|
89808
|
+
this.log(`Pulling function ${import_chalk9.default.bold(func.name)} ...`);
|
|
89809
|
+
const funcPath = `functions/${getSafeDirectoryName(func.name, func.$id)}`;
|
|
88785
89810
|
const absoluteFuncPath = import_path7.default.resolve(this.configDirectoryPath, funcPath);
|
|
88786
89811
|
const holdingVars = func.vars || [];
|
|
88787
89812
|
const functionConfig = {
|
|
@@ -88803,10 +89828,10 @@ var Pull = class {
|
|
|
88803
89828
|
deploymentRetention: func.deploymentRetention
|
|
88804
89829
|
};
|
|
88805
89830
|
result.push(functionConfig);
|
|
88806
|
-
if (!import_fs8.default.existsSync(absoluteFuncPath)) {
|
|
88807
|
-
import_fs8.default.mkdirSync(absoluteFuncPath, { recursive: true });
|
|
88808
|
-
}
|
|
88809
89831
|
if (options.code !== false) {
|
|
89832
|
+
if (!import_fs8.default.existsSync(absoluteFuncPath)) {
|
|
89833
|
+
import_fs8.default.mkdirSync(absoluteFuncPath, { recursive: true });
|
|
89834
|
+
}
|
|
88810
89835
|
await downloadDeploymentCode({
|
|
88811
89836
|
resourceId: func["$id"],
|
|
88812
89837
|
resourcePath: absoluteFuncPath,
|
|
@@ -88827,7 +89852,7 @@ var Pull = class {
|
|
|
88827
89852
|
if (options.code === false) {
|
|
88828
89853
|
this.warn("Source code download skipped.");
|
|
88829
89854
|
}
|
|
88830
|
-
this.success(`Successfully pulled ${
|
|
89855
|
+
this.success(`Successfully pulled ${import_chalk9.default.bold(result.length)} functions.`);
|
|
88831
89856
|
return result;
|
|
88832
89857
|
}
|
|
88833
89858
|
/**
|
|
@@ -88851,7 +89876,7 @@ var Pull = class {
|
|
|
88851
89876
|
});
|
|
88852
89877
|
if (fetchResponse["sites"].length <= 0) {
|
|
88853
89878
|
this.log("No sites found.");
|
|
88854
|
-
this.success(`Successfully pulled ${
|
|
89879
|
+
this.success(`Successfully pulled ${import_chalk9.default.bold(0)} sites.`);
|
|
88855
89880
|
return [];
|
|
88856
89881
|
}
|
|
88857
89882
|
const { sites: fetchedSites } = await paginate(
|
|
@@ -88864,8 +89889,8 @@ var Pull = class {
|
|
|
88864
89889
|
}
|
|
88865
89890
|
const result = [];
|
|
88866
89891
|
for (const site of sites) {
|
|
88867
|
-
this.log(`Pulling site ${
|
|
88868
|
-
const sitePath = `sites/${site.name}`;
|
|
89892
|
+
this.log(`Pulling site ${import_chalk9.default.bold(site.name)} ...`);
|
|
89893
|
+
const sitePath = `sites/${getSafeDirectoryName(site.name, site.$id)}`;
|
|
88869
89894
|
const absoluteSitePath = import_path7.default.resolve(this.configDirectoryPath, sitePath);
|
|
88870
89895
|
const holdingVars = site.vars || [];
|
|
88871
89896
|
const siteConfig = {
|
|
@@ -88888,10 +89913,10 @@ var Pull = class {
|
|
|
88888
89913
|
deploymentRetention: site.deploymentRetention
|
|
88889
89914
|
};
|
|
88890
89915
|
result.push(siteConfig);
|
|
88891
|
-
if (!import_fs8.default.existsSync(absoluteSitePath)) {
|
|
88892
|
-
import_fs8.default.mkdirSync(absoluteSitePath, { recursive: true });
|
|
88893
|
-
}
|
|
88894
89916
|
if (options.code !== false) {
|
|
89917
|
+
if (!import_fs8.default.existsSync(absoluteSitePath)) {
|
|
89918
|
+
import_fs8.default.mkdirSync(absoluteSitePath, { recursive: true });
|
|
89919
|
+
}
|
|
88895
89920
|
await downloadDeploymentCode({
|
|
88896
89921
|
resourceId: site["$id"],
|
|
88897
89922
|
resourcePath: absoluteSitePath,
|
|
@@ -88912,7 +89937,7 @@ var Pull = class {
|
|
|
88912
89937
|
if (options.code === false) {
|
|
88913
89938
|
this.warn("Source code download skipped.");
|
|
88914
89939
|
}
|
|
88915
|
-
this.success(`Successfully pulled ${
|
|
89940
|
+
this.success(`Successfully pulled ${import_chalk9.default.bold(result.length)} sites.`);
|
|
88916
89941
|
return result;
|
|
88917
89942
|
}
|
|
88918
89943
|
/**
|
|
@@ -88928,7 +89953,7 @@ var Pull = class {
|
|
|
88928
89953
|
if (fetchResponse["databases"].length <= 0) {
|
|
88929
89954
|
this.log("No collections found.");
|
|
88930
89955
|
this.success(
|
|
88931
|
-
`Successfully pulled ${
|
|
89956
|
+
`Successfully pulled ${import_chalk9.default.bold(0)} collections from ${import_chalk9.default.bold(0)} databases.`
|
|
88932
89957
|
);
|
|
88933
89958
|
return { databases: [], collections: [] };
|
|
88934
89959
|
}
|
|
@@ -88942,7 +89967,7 @@ var Pull = class {
|
|
|
88942
89967
|
const allCollections = [];
|
|
88943
89968
|
for (const database of databases) {
|
|
88944
89969
|
this.log(
|
|
88945
|
-
`Pulling all collections from ${
|
|
89970
|
+
`Pulling all collections from ${import_chalk9.default.bold(database.name)} database ...`
|
|
88946
89971
|
);
|
|
88947
89972
|
allDatabases.push(database);
|
|
88948
89973
|
const { collections } = await paginate(
|
|
@@ -88963,7 +89988,7 @@ var Pull = class {
|
|
|
88963
89988
|
}
|
|
88964
89989
|
}
|
|
88965
89990
|
this.success(
|
|
88966
|
-
`Successfully pulled ${
|
|
89991
|
+
`Successfully pulled ${import_chalk9.default.bold(allCollections.length)} collections from ${import_chalk9.default.bold(allDatabases.length)} databases.`
|
|
88967
89992
|
);
|
|
88968
89993
|
return {
|
|
88969
89994
|
databases: allDatabases,
|
|
@@ -88982,7 +90007,7 @@ var Pull = class {
|
|
|
88982
90007
|
if (fetchResponse["databases"].length <= 0) {
|
|
88983
90008
|
this.log("No tables found.");
|
|
88984
90009
|
this.success(
|
|
88985
|
-
`Successfully pulled ${
|
|
90010
|
+
`Successfully pulled ${import_chalk9.default.bold(0)} tables from ${import_chalk9.default.bold(0)} tableDBs.`
|
|
88986
90011
|
);
|
|
88987
90012
|
return { databases: [], tables: [] };
|
|
88988
90013
|
}
|
|
@@ -88998,7 +90023,7 @@ var Pull = class {
|
|
|
88998
90023
|
const allTables = [];
|
|
88999
90024
|
for (const database of databases) {
|
|
89000
90025
|
this.log(
|
|
89001
|
-
`Pulling all tables from ${
|
|
90026
|
+
`Pulling all tables from ${import_chalk9.default.bold(database.name)} database ...`
|
|
89002
90027
|
);
|
|
89003
90028
|
allDatabases.push(filterBySchema(database, DatabaseSchema));
|
|
89004
90029
|
const { tables } = await paginate(
|
|
@@ -89025,7 +90050,7 @@ var Pull = class {
|
|
|
89025
90050
|
}
|
|
89026
90051
|
}
|
|
89027
90052
|
this.success(
|
|
89028
|
-
`Successfully pulled ${
|
|
90053
|
+
`Successfully pulled ${import_chalk9.default.bold(allTables.length)} tables from ${import_chalk9.default.bold(allDatabases.length)} tableDBs.`
|
|
89029
90054
|
);
|
|
89030
90055
|
return {
|
|
89031
90056
|
databases: allDatabases,
|
|
@@ -89043,7 +90068,7 @@ var Pull = class {
|
|
|
89043
90068
|
});
|
|
89044
90069
|
if (fetchResponse["buckets"].length <= 0) {
|
|
89045
90070
|
this.log("No buckets found.");
|
|
89046
|
-
this.success(`Successfully pulled ${
|
|
90071
|
+
this.success(`Successfully pulled ${import_chalk9.default.bold(0)} buckets.`);
|
|
89047
90072
|
return [];
|
|
89048
90073
|
}
|
|
89049
90074
|
const { buckets } = await paginate(
|
|
@@ -89054,11 +90079,11 @@ var Pull = class {
|
|
|
89054
90079
|
);
|
|
89055
90080
|
const filteredBuckets = [];
|
|
89056
90081
|
for (const bucket of buckets) {
|
|
89057
|
-
this.log(`Pulling bucket ${
|
|
90082
|
+
this.log(`Pulling bucket ${import_chalk9.default.bold(bucket.name)} ...`);
|
|
89058
90083
|
filteredBuckets.push(filterBySchema(bucket, BucketSchema));
|
|
89059
90084
|
}
|
|
89060
90085
|
this.success(
|
|
89061
|
-
`Successfully pulled ${
|
|
90086
|
+
`Successfully pulled ${import_chalk9.default.bold(filteredBuckets.length)} buckets.`
|
|
89062
90087
|
);
|
|
89063
90088
|
return filteredBuckets;
|
|
89064
90089
|
}
|
|
@@ -89073,7 +90098,7 @@ var Pull = class {
|
|
|
89073
90098
|
});
|
|
89074
90099
|
if (fetchResponse["teams"].length <= 0) {
|
|
89075
90100
|
this.log("No teams found.");
|
|
89076
|
-
this.success(`Successfully pulled ${
|
|
90101
|
+
this.success(`Successfully pulled ${import_chalk9.default.bold(0)} teams.`);
|
|
89077
90102
|
return [];
|
|
89078
90103
|
}
|
|
89079
90104
|
const { teams } = await paginate(
|
|
@@ -89083,9 +90108,9 @@ var Pull = class {
|
|
|
89083
90108
|
"teams"
|
|
89084
90109
|
);
|
|
89085
90110
|
for (const team of teams) {
|
|
89086
|
-
this.log(`Pulling team ${
|
|
90111
|
+
this.log(`Pulling team ${import_chalk9.default.bold(team.name)} ...`);
|
|
89087
90112
|
}
|
|
89088
|
-
this.success(`Successfully pulled ${
|
|
90113
|
+
this.success(`Successfully pulled ${import_chalk9.default.bold(teams.length)} teams.`);
|
|
89089
90114
|
return teams;
|
|
89090
90115
|
}
|
|
89091
90116
|
/**
|
|
@@ -89099,7 +90124,7 @@ var Pull = class {
|
|
|
89099
90124
|
});
|
|
89100
90125
|
if (fetchResponse["topics"].length <= 0) {
|
|
89101
90126
|
this.log("No topics found.");
|
|
89102
|
-
this.success(`Successfully pulled ${
|
|
90127
|
+
this.success(`Successfully pulled ${import_chalk9.default.bold(0)} topics.`);
|
|
89103
90128
|
return [];
|
|
89104
90129
|
}
|
|
89105
90130
|
const { topics } = await paginate(
|
|
@@ -89110,11 +90135,11 @@ var Pull = class {
|
|
|
89110
90135
|
);
|
|
89111
90136
|
const filteredTopics = [];
|
|
89112
90137
|
for (const topic of topics) {
|
|
89113
|
-
this.log(`Pulling topic ${
|
|
90138
|
+
this.log(`Pulling topic ${import_chalk9.default.bold(topic.name)} ...`);
|
|
89114
90139
|
filteredTopics.push(filterBySchema(topic, TopicSchema));
|
|
89115
90140
|
}
|
|
89116
90141
|
this.success(
|
|
89117
|
-
`Successfully pulled ${
|
|
90142
|
+
`Successfully pulled ${import_chalk9.default.bold(filteredTopics.length)} topics.`
|
|
89118
90143
|
);
|
|
89119
90144
|
return filteredTopics;
|
|
89120
90145
|
}
|
|
@@ -89171,7 +90196,7 @@ var pullFunctions = async ({
|
|
|
89171
90196
|
const fetchResponse = await functionsService.list([Query.limit(1)]);
|
|
89172
90197
|
if (fetchResponse["functions"].length <= 0) {
|
|
89173
90198
|
log("No functions found.");
|
|
89174
|
-
success2(`Successfully pulled ${
|
|
90199
|
+
success2(`Successfully pulled ${import_chalk9.default.bold(0)} functions.`);
|
|
89175
90200
|
return;
|
|
89176
90201
|
}
|
|
89177
90202
|
const functionsToCheck = cliConfig.all ? (await paginate(
|
|
@@ -89180,7 +90205,7 @@ var pullFunctions = async ({
|
|
|
89180
90205
|
100,
|
|
89181
90206
|
"functions"
|
|
89182
90207
|
)).functions : (await import_inquirer4.default.prompt(questionsPullFunctions)).functions;
|
|
89183
|
-
let allowCodePull =
|
|
90208
|
+
let allowCodePull = null;
|
|
89184
90209
|
if (code !== false && allowCodePull === null) {
|
|
89185
90210
|
const codeAnswer = await import_inquirer4.default.prompt(questionsPullFunctionsCode);
|
|
89186
90211
|
allowCodePull = codeAnswer.override;
|
|
@@ -89209,7 +90234,7 @@ var pullSites = async ({
|
|
|
89209
90234
|
});
|
|
89210
90235
|
if (fetchResponse["sites"].length <= 0) {
|
|
89211
90236
|
log("No sites found.");
|
|
89212
|
-
success2(`Successfully pulled ${
|
|
90237
|
+
success2(`Successfully pulled ${import_chalk9.default.bold(0)} sites.`);
|
|
89213
90238
|
return;
|
|
89214
90239
|
}
|
|
89215
90240
|
const sitesToCheck = cliConfig.all ? (await paginate(
|
|
@@ -89218,7 +90243,7 @@ var pullSites = async ({
|
|
|
89218
90243
|
100,
|
|
89219
90244
|
"sites"
|
|
89220
90245
|
)).sites : (await import_inquirer4.default.prompt(questionsPullSites)).sites;
|
|
89221
|
-
let allowCodePull =
|
|
90246
|
+
let allowCodePull = null;
|
|
89222
90247
|
if (code !== false && allowCodePull === null) {
|
|
89223
90248
|
const codeAnswer = await import_inquirer4.default.prompt(questionsPullSitesCode);
|
|
89224
90249
|
allowCodePull = codeAnswer.override;
|
|
@@ -89346,11 +90371,11 @@ pull.command("all").description("Pull all resources").action(
|
|
|
89346
90371
|
pull.command("settings").description("Pull your Appwrite project name, services and auth settings").action(actionRunner(pullSettings));
|
|
89347
90372
|
pull.command("function").alias("functions").description("Pull your Appwrite cloud function").option("--no-code", "Don't pull the function's code").option(
|
|
89348
90373
|
"--with-variables",
|
|
89349
|
-
`Pull function variables. ${
|
|
90374
|
+
`Pull function variables. ${import_chalk9.default.red("recommend for testing purposes only")}`
|
|
89350
90375
|
).action(actionRunner(pullFunctions));
|
|
89351
90376
|
pull.command("site").alias("sites").description("Pull your Appwrite site").option("--no-code", "Don't pull the site's code").option(
|
|
89352
90377
|
"--with-variables",
|
|
89353
|
-
`Pull site variables. ${
|
|
90378
|
+
`Pull site variables. ${import_chalk9.default.red("recommend for testing purposes only")}`
|
|
89354
90379
|
).action(actionRunner(pullSites));
|
|
89355
90380
|
pull.command("collection").alias("collections").description(
|
|
89356
90381
|
"Pull your Appwrite collections (deprecated, please use 'pull tables' instead)"
|