@eventcatalog/generator-openapi 4.0.3 → 4.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5,6 +5,9 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __commonJS = (cb, mod) => function __require() {
9
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
+ };
8
11
  var __export = (target, all) => {
9
12
  for (var name in all)
10
13
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -27,6 +30,259 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
30
  ));
28
31
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
32
 
33
+ // ../../node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/boxes.json
34
+ var require_boxes = __commonJS({
35
+ "../../node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/boxes.json"(exports2, module2) {
36
+ module2.exports = {
37
+ single: {
38
+ topLeft: "\u250C",
39
+ top: "\u2500",
40
+ topRight: "\u2510",
41
+ right: "\u2502",
42
+ bottomRight: "\u2518",
43
+ bottom: "\u2500",
44
+ bottomLeft: "\u2514",
45
+ left: "\u2502"
46
+ },
47
+ double: {
48
+ topLeft: "\u2554",
49
+ top: "\u2550",
50
+ topRight: "\u2557",
51
+ right: "\u2551",
52
+ bottomRight: "\u255D",
53
+ bottom: "\u2550",
54
+ bottomLeft: "\u255A",
55
+ left: "\u2551"
56
+ },
57
+ round: {
58
+ topLeft: "\u256D",
59
+ top: "\u2500",
60
+ topRight: "\u256E",
61
+ right: "\u2502",
62
+ bottomRight: "\u256F",
63
+ bottom: "\u2500",
64
+ bottomLeft: "\u2570",
65
+ left: "\u2502"
66
+ },
67
+ bold: {
68
+ topLeft: "\u250F",
69
+ top: "\u2501",
70
+ topRight: "\u2513",
71
+ right: "\u2503",
72
+ bottomRight: "\u251B",
73
+ bottom: "\u2501",
74
+ bottomLeft: "\u2517",
75
+ left: "\u2503"
76
+ },
77
+ singleDouble: {
78
+ topLeft: "\u2553",
79
+ top: "\u2500",
80
+ topRight: "\u2556",
81
+ right: "\u2551",
82
+ bottomRight: "\u255C",
83
+ bottom: "\u2500",
84
+ bottomLeft: "\u2559",
85
+ left: "\u2551"
86
+ },
87
+ doubleSingle: {
88
+ topLeft: "\u2552",
89
+ top: "\u2550",
90
+ topRight: "\u2555",
91
+ right: "\u2502",
92
+ bottomRight: "\u255B",
93
+ bottom: "\u2550",
94
+ bottomLeft: "\u2558",
95
+ left: "\u2502"
96
+ },
97
+ classic: {
98
+ topLeft: "+",
99
+ top: "-",
100
+ topRight: "+",
101
+ right: "|",
102
+ bottomRight: "+",
103
+ bottom: "-",
104
+ bottomLeft: "+",
105
+ left: "|"
106
+ },
107
+ arrow: {
108
+ topLeft: "\u2198",
109
+ top: "\u2193",
110
+ topRight: "\u2199",
111
+ right: "\u2190",
112
+ bottomRight: "\u2196",
113
+ bottom: "\u2191",
114
+ bottomLeft: "\u2197",
115
+ left: "\u2192"
116
+ }
117
+ };
118
+ }
119
+ });
120
+
121
+ // ../../node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/index.js
122
+ var require_cli_boxes = __commonJS({
123
+ "../../node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/index.js"(exports2, module2) {
124
+ "use strict";
125
+ var cliBoxes2 = require_boxes();
126
+ module2.exports = cliBoxes2;
127
+ module2.exports.default = cliBoxes2;
128
+ }
129
+ });
130
+
131
+ // ../../node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js
132
+ var require_ansi_regex = __commonJS({
133
+ "../../node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js"(exports2, module2) {
134
+ "use strict";
135
+ module2.exports = ({ onlyFirst = false } = {}) => {
136
+ const pattern = [
137
+ "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
138
+ "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
139
+ ].join("|");
140
+ return new RegExp(pattern, onlyFirst ? void 0 : "g");
141
+ };
142
+ }
143
+ });
144
+
145
+ // ../../node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js
146
+ var require_strip_ansi = __commonJS({
147
+ "../../node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports2, module2) {
148
+ "use strict";
149
+ var ansiRegex2 = require_ansi_regex();
150
+ module2.exports = (string) => typeof string === "string" ? string.replace(ansiRegex2(), "") : string;
151
+ }
152
+ });
153
+
154
+ // ../../node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js
155
+ var require_is_fullwidth_code_point = __commonJS({
156
+ "../../node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js"(exports2, module2) {
157
+ "use strict";
158
+ var isFullwidthCodePoint = (codePoint) => {
159
+ if (Number.isNaN(codePoint)) {
160
+ return false;
161
+ }
162
+ if (codePoint >= 4352 && (codePoint <= 4447 || // Hangul Jamo
163
+ codePoint === 9001 || // LEFT-POINTING ANGLE BRACKET
164
+ codePoint === 9002 || // RIGHT-POINTING ANGLE BRACKET
165
+ // CJK Radicals Supplement .. Enclosed CJK Letters and Months
166
+ 11904 <= codePoint && codePoint <= 12871 && codePoint !== 12351 || // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
167
+ 12880 <= codePoint && codePoint <= 19903 || // CJK Unified Ideographs .. Yi Radicals
168
+ 19968 <= codePoint && codePoint <= 42182 || // Hangul Jamo Extended-A
169
+ 43360 <= codePoint && codePoint <= 43388 || // Hangul Syllables
170
+ 44032 <= codePoint && codePoint <= 55203 || // CJK Compatibility Ideographs
171
+ 63744 <= codePoint && codePoint <= 64255 || // Vertical Forms
172
+ 65040 <= codePoint && codePoint <= 65049 || // CJK Compatibility Forms .. Small Form Variants
173
+ 65072 <= codePoint && codePoint <= 65131 || // Halfwidth and Fullwidth Forms
174
+ 65281 <= codePoint && codePoint <= 65376 || 65504 <= codePoint && codePoint <= 65510 || // Kana Supplement
175
+ 110592 <= codePoint && codePoint <= 110593 || // Enclosed Ideographic Supplement
176
+ 127488 <= codePoint && codePoint <= 127569 || // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
177
+ 131072 <= codePoint && codePoint <= 262141)) {
178
+ return true;
179
+ }
180
+ return false;
181
+ };
182
+ module2.exports = isFullwidthCodePoint;
183
+ module2.exports.default = isFullwidthCodePoint;
184
+ }
185
+ });
186
+
187
+ // ../../node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js
188
+ var require_emoji_regex = __commonJS({
189
+ "../../node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js"(exports2, module2) {
190
+ "use strict";
191
+ module2.exports = function() {
192
+ 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;
193
+ };
194
+ }
195
+ });
196
+
197
+ // ../../node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js
198
+ var require_string_width = __commonJS({
199
+ "../../node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js"(exports2, module2) {
200
+ "use strict";
201
+ var stripAnsi2 = require_strip_ansi();
202
+ var isFullwidthCodePoint = require_is_fullwidth_code_point();
203
+ var emojiRegex = require_emoji_regex();
204
+ var stringWidth2 = (string) => {
205
+ if (typeof string !== "string" || string.length === 0) {
206
+ return 0;
207
+ }
208
+ string = stripAnsi2(string);
209
+ if (string.length === 0) {
210
+ return 0;
211
+ }
212
+ string = string.replace(emojiRegex(), " ");
213
+ let width = 0;
214
+ for (let i = 0; i < string.length; i++) {
215
+ const code = string.codePointAt(i);
216
+ if (code <= 31 || code >= 127 && code <= 159) {
217
+ continue;
218
+ }
219
+ if (code >= 768 && code <= 879) {
220
+ continue;
221
+ }
222
+ if (code > 65535) {
223
+ i++;
224
+ }
225
+ width += isFullwidthCodePoint(code) ? 2 : 1;
226
+ }
227
+ return width;
228
+ };
229
+ module2.exports = stringWidth2;
230
+ module2.exports.default = stringWidth2;
231
+ }
232
+ });
233
+
234
+ // ../../node_modules/.pnpm/ansi-align@3.0.1/node_modules/ansi-align/index.js
235
+ var require_ansi_align = __commonJS({
236
+ "../../node_modules/.pnpm/ansi-align@3.0.1/node_modules/ansi-align/index.js"(exports2, module2) {
237
+ "use strict";
238
+ var stringWidth2 = require_string_width();
239
+ function ansiAlign2(text, opts) {
240
+ if (!text) return text;
241
+ opts = opts || {};
242
+ const align = opts.align || "center";
243
+ if (align === "left") return text;
244
+ const split = opts.split || "\n";
245
+ const pad = opts.pad || " ";
246
+ const widthDiffFn = align !== "right" ? halfDiff : fullDiff;
247
+ let returnString = false;
248
+ if (!Array.isArray(text)) {
249
+ returnString = true;
250
+ text = String(text).split(split);
251
+ }
252
+ let width;
253
+ let maxWidth = 0;
254
+ text = text.map(function(str) {
255
+ str = String(str);
256
+ width = stringWidth2(str);
257
+ maxWidth = Math.max(width, maxWidth);
258
+ return {
259
+ str,
260
+ width
261
+ };
262
+ }).map(function(obj) {
263
+ return new Array(widthDiffFn(maxWidth, obj.width) + 1).join(pad) + obj.str;
264
+ });
265
+ return returnString ? text.join(split) : text;
266
+ }
267
+ ansiAlign2.left = function left(text) {
268
+ return ansiAlign2(text, { align: "left" });
269
+ };
270
+ ansiAlign2.center = function center(text) {
271
+ return ansiAlign2(text, { align: "center" });
272
+ };
273
+ ansiAlign2.right = function right(text) {
274
+ return ansiAlign2(text, { align: "right" });
275
+ };
276
+ module2.exports = ansiAlign2;
277
+ function halfDiff(maxWidth, curWidth) {
278
+ return Math.floor((maxWidth - curWidth) / 2);
279
+ }
280
+ function fullDiff(maxWidth, curWidth) {
281
+ return maxWidth - curWidth;
282
+ }
283
+ }
284
+ });
285
+
30
286
  // src/index.ts
31
287
  var index_exports = {};
32
288
  __export(index_exports, {
@@ -35,7 +291,7 @@ __export(index_exports, {
35
291
  module.exports = __toCommonJS(index_exports);
36
292
  var import_sdk2 = __toESM(require("@eventcatalog/sdk"));
37
293
  var import_promises = require("fs/promises");
38
- var import_chalk2 = __toESM(require("chalk"));
294
+ var import_chalk3 = __toESM(require("chalk"));
39
295
  var import_swagger_parser2 = __toESM(require("@apidevtools/swagger-parser"));
40
296
 
41
297
  // src/utils/domains.ts
@@ -101,7 +357,7 @@ async function getSchemasByOperationId(filePath, operationId) {
101
357
  requestBody: null,
102
358
  responses: {}
103
359
  };
104
- for (const [path2, pathItem] of Object.entries(api.paths)) {
360
+ for (const [path3, pathItem] of Object.entries(api.paths)) {
105
361
  for (const [method, operation] of Object.entries(pathItem)) {
106
362
  const typedOperation = operation;
107
363
  if (typedOperation.operationId === operationId) {
@@ -135,8 +391,8 @@ async function getOperationsByType(openApiPath) {
135
391
  try {
136
392
  const api = await import_swagger_parser.default.validate(openApiPath);
137
393
  const operations = [];
138
- for (const path2 in api.paths) {
139
- const pathItem = api.paths[path2];
394
+ for (const path3 in api.paths) {
395
+ const pathItem = api.paths[path3];
140
396
  for (const method in pathItem) {
141
397
  const openAPIOperation = pathItem[method];
142
398
  const messageType = openAPIOperation["x-eventcatalog-message-type"] || DEFAULT_MESSAGE_TYPE;
@@ -148,7 +404,7 @@ async function getOperationsByType(openApiPath) {
148
404
  return acc;
149
405
  }, {});
150
406
  const operation = {
151
- path: path2,
407
+ path: path3,
152
408
  method: method.toUpperCase(),
153
409
  operationId: openAPIOperation.operationId,
154
410
  externalDocs: openAPIOperation.externalDocs,
@@ -291,10 +547,10 @@ var buildMessage = async (pathToFile, document, operation) => {
291
547
  }));
292
548
  const badges = [{ content: operation.method.toUpperCase(), textColor: "blue", backgroundColor: "blue" }, ...operationTags];
293
549
  const apiName = (0, import_slugify2.default)(document.info.title, { lower: true });
294
- const path2 = operation.path.replace(/\//, "").replace(/\//g, "_");
550
+ const path3 = operation.path.replace(/\//, "").replace(/\//g, "_");
295
551
  let uniqueIdentifier = operation.operationId || `${apiName}_${operation.method}`;
296
- if (!operation.operationId && path2) {
297
- uniqueIdentifier = uniqueIdentifier.concat(`_${path2}`);
552
+ if (!operation.operationId && path3) {
553
+ uniqueIdentifier = uniqueIdentifier.concat(`_${path3}`);
298
554
  }
299
555
  return {
300
556
  id: extensions["x-eventcatalog-message-id"] || uniqueIdentifier,
@@ -363,7 +619,7 @@ var import_chalk = __toESM(require("chalk"));
363
619
  // package.json
364
620
  var package_default = {
365
621
  name: "@eventcatalog/generator-openapi",
366
- version: "4.0.3",
622
+ version: "4.0.5",
367
623
  description: "OpenAPI generator for EventCatalog",
368
624
  scripts: {
369
625
  build: "tsup",
@@ -403,7 +659,8 @@ var package_default = {
403
659
  chalk: "^4",
404
660
  "js-yaml": "^4.1.0",
405
661
  "openapi-types": "^12.1.3",
406
- slugify: "^1.6.6"
662
+ slugify: "^1.6.6",
663
+ "update-notifier": "^7.3.1"
407
664
  }
408
665
  };
409
666
 
@@ -449,6 +706,864 @@ You are using a trial license for this plugin`));
449
706
  // src/index.ts
450
707
  var import_js_yaml = __toESM(require("js-yaml"));
451
708
  var import_node_path = require("path");
709
+
710
+ // ../../node_modules/.pnpm/boxen@8.0.1/node_modules/boxen/index.js
711
+ var import_node_process = __toESM(require("process"), 1);
712
+
713
+ // ../../node_modules/.pnpm/ansi-regex@6.1.0/node_modules/ansi-regex/index.js
714
+ function ansiRegex({ onlyFirst = false } = {}) {
715
+ const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
716
+ const pattern = [
717
+ `[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${ST})`,
718
+ "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"
719
+ ].join("|");
720
+ return new RegExp(pattern, onlyFirst ? void 0 : "g");
721
+ }
722
+
723
+ // ../../node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js
724
+ var regex = ansiRegex();
725
+ function stripAnsi(string) {
726
+ if (typeof string !== "string") {
727
+ throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
728
+ }
729
+ return string.replace(regex, "");
730
+ }
731
+
732
+ // ../../node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/lookup.js
733
+ function isAmbiguous(x) {
734
+ return x === 161 || x === 164 || x === 167 || x === 168 || x === 170 || x === 173 || x === 174 || x >= 176 && x <= 180 || x >= 182 && x <= 186 || x >= 188 && x <= 191 || x === 198 || x === 208 || x === 215 || x === 216 || x >= 222 && x <= 225 || x === 230 || x >= 232 && x <= 234 || x === 236 || x === 237 || x === 240 || x === 242 || x === 243 || x >= 247 && x <= 250 || x === 252 || x === 254 || x === 257 || x === 273 || x === 275 || x === 283 || x === 294 || x === 295 || x === 299 || x >= 305 && x <= 307 || x === 312 || x >= 319 && x <= 322 || x === 324 || x >= 328 && x <= 331 || x === 333 || x === 338 || x === 339 || x === 358 || x === 359 || x === 363 || x === 462 || x === 464 || x === 466 || x === 468 || x === 470 || x === 472 || x === 474 || x === 476 || x === 593 || x === 609 || x === 708 || x === 711 || x >= 713 && x <= 715 || x === 717 || x === 720 || x >= 728 && x <= 731 || x === 733 || x === 735 || x >= 768 && x <= 879 || x >= 913 && x <= 929 || x >= 931 && x <= 937 || x >= 945 && x <= 961 || x >= 963 && x <= 969 || x === 1025 || x >= 1040 && x <= 1103 || x === 1105 || x === 8208 || x >= 8211 && x <= 8214 || x === 8216 || x === 8217 || x === 8220 || x === 8221 || x >= 8224 && x <= 8226 || x >= 8228 && x <= 8231 || x === 8240 || x === 8242 || x === 8243 || x === 8245 || x === 8251 || x === 8254 || x === 8308 || x === 8319 || x >= 8321 && x <= 8324 || x === 8364 || x === 8451 || x === 8453 || x === 8457 || x === 8467 || x === 8470 || x === 8481 || x === 8482 || x === 8486 || x === 8491 || x === 8531 || x === 8532 || x >= 8539 && x <= 8542 || x >= 8544 && x <= 8555 || x >= 8560 && x <= 8569 || x === 8585 || x >= 8592 && x <= 8601 || x === 8632 || x === 8633 || x === 8658 || x === 8660 || x === 8679 || x === 8704 || x === 8706 || x === 8707 || x === 8711 || x === 8712 || x === 8715 || x === 8719 || x === 8721 || x === 8725 || x === 8730 || x >= 8733 && x <= 8736 || x === 8739 || x === 8741 || x >= 8743 && x <= 8748 || x === 8750 || x >= 8756 && x <= 8759 || x === 8764 || x === 8765 || x === 8776 || x === 8780 || x === 8786 || x === 8800 || x === 8801 || x >= 8804 && x <= 8807 || x === 8810 || x === 8811 || x === 8814 || x === 8815 || x === 8834 || x === 8835 || x === 8838 || x === 8839 || x === 8853 || x === 8857 || x === 8869 || x === 8895 || x === 8978 || x >= 9312 && x <= 9449 || x >= 9451 && x <= 9547 || x >= 9552 && x <= 9587 || x >= 9600 && x <= 9615 || x >= 9618 && x <= 9621 || x === 9632 || x === 9633 || x >= 9635 && x <= 9641 || x === 9650 || x === 9651 || x === 9654 || x === 9655 || x === 9660 || x === 9661 || x === 9664 || x === 9665 || x >= 9670 && x <= 9672 || x === 9675 || x >= 9678 && x <= 9681 || x >= 9698 && x <= 9701 || x === 9711 || x === 9733 || x === 9734 || x === 9737 || x === 9742 || x === 9743 || x === 9756 || x === 9758 || x === 9792 || x === 9794 || x === 9824 || x === 9825 || x >= 9827 && x <= 9829 || x >= 9831 && x <= 9834 || x === 9836 || x === 9837 || x === 9839 || x === 9886 || x === 9887 || x === 9919 || x >= 9926 && x <= 9933 || x >= 9935 && x <= 9939 || x >= 9941 && x <= 9953 || x === 9955 || x === 9960 || x === 9961 || x >= 9963 && x <= 9969 || x === 9972 || x >= 9974 && x <= 9977 || x === 9979 || x === 9980 || x === 9982 || x === 9983 || x === 10045 || x >= 10102 && x <= 10111 || x >= 11094 && x <= 11097 || x >= 12872 && x <= 12879 || x >= 57344 && x <= 63743 || x >= 65024 && x <= 65039 || x === 65533 || x >= 127232 && x <= 127242 || x >= 127248 && x <= 127277 || x >= 127280 && x <= 127337 || x >= 127344 && x <= 127373 || x === 127375 || x === 127376 || x >= 127387 && x <= 127404 || x >= 917760 && x <= 917999 || x >= 983040 && x <= 1048573 || x >= 1048576 && x <= 1114109;
735
+ }
736
+ function isFullWidth(x) {
737
+ return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510;
738
+ }
739
+ function isWide(x) {
740
+ return x >= 4352 && x <= 4447 || x === 8986 || x === 8987 || x === 9001 || x === 9002 || x >= 9193 && x <= 9196 || x === 9200 || x === 9203 || x === 9725 || x === 9726 || x === 9748 || x === 9749 || x >= 9776 && x <= 9783 || x >= 9800 && x <= 9811 || x === 9855 || x >= 9866 && x <= 9871 || x === 9875 || x === 9889 || x === 9898 || x === 9899 || x === 9917 || x === 9918 || x === 9924 || x === 9925 || x === 9934 || x === 9940 || x === 9962 || x === 9970 || x === 9971 || x === 9973 || x === 9978 || x === 9981 || x === 9989 || x === 9994 || x === 9995 || x === 10024 || x === 10060 || x === 10062 || x >= 10067 && x <= 10069 || x === 10071 || x >= 10133 && x <= 10135 || x === 10160 || x === 10175 || x === 11035 || x === 11036 || x === 11088 || x === 11093 || x >= 11904 && x <= 11929 || x >= 11931 && x <= 12019 || x >= 12032 && x <= 12245 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12353 && x <= 12438 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12773 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 42124 || x >= 42128 && x <= 42182 || x >= 43360 && x <= 43388 || x >= 44032 && x <= 55203 || x >= 63744 && x <= 64255 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 94176 && x <= 94180 || x === 94192 || x === 94193 || x >= 94208 && x <= 100343 || x >= 100352 && x <= 101589 || x >= 101631 && x <= 101640 || x >= 110576 && x <= 110579 || x >= 110581 && x <= 110587 || x === 110589 || x === 110590 || x >= 110592 && x <= 110882 || x === 110898 || x >= 110928 && x <= 110930 || x === 110933 || x >= 110948 && x <= 110951 || x >= 110960 && x <= 111355 || x >= 119552 && x <= 119638 || x >= 119648 && x <= 119670 || x === 126980 || x === 127183 || x === 127374 || x >= 127377 && x <= 127386 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x === 127568 || x === 127569 || x >= 127584 && x <= 127589 || x >= 127744 && x <= 127776 || x >= 127789 && x <= 127797 || x >= 127799 && x <= 127868 || x >= 127870 && x <= 127891 || x >= 127904 && x <= 127946 || x >= 127951 && x <= 127955 || x >= 127968 && x <= 127984 || x === 127988 || x >= 127992 && x <= 128062 || x === 128064 || x >= 128066 && x <= 128252 || x >= 128255 && x <= 128317 || x >= 128331 && x <= 128334 || x >= 128336 && x <= 128359 || x === 128378 || x === 128405 || x === 128406 || x === 128420 || x >= 128507 && x <= 128591 || x >= 128640 && x <= 128709 || x === 128716 || x >= 128720 && x <= 128722 || x >= 128725 && x <= 128727 || x >= 128732 && x <= 128735 || x === 128747 || x === 128748 || x >= 128756 && x <= 128764 || x >= 128992 && x <= 129003 || x === 129008 || x >= 129292 && x <= 129338 || x >= 129340 && x <= 129349 || x >= 129351 && x <= 129535 || x >= 129648 && x <= 129660 || x >= 129664 && x <= 129673 || x >= 129679 && x <= 129734 || x >= 129742 && x <= 129756 || x >= 129759 && x <= 129769 || x >= 129776 && x <= 129784 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141;
741
+ }
742
+
743
+ // ../../node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/index.js
744
+ function validate(codePoint) {
745
+ if (!Number.isSafeInteger(codePoint)) {
746
+ throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
747
+ }
748
+ }
749
+ function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
750
+ validate(codePoint);
751
+ if (isFullWidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) {
752
+ return 2;
753
+ }
754
+ return 1;
755
+ }
756
+
757
+ // ../../node_modules/.pnpm/emoji-regex@10.4.0/node_modules/emoji-regex/index.mjs
758
+ var emoji_regex_default = () => {
759
+ 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\uDC70\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-\uDED7\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\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\uDD3D\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-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\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]|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\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;
760
+ };
761
+
762
+ // ../../node_modules/.pnpm/string-width@7.2.0/node_modules/string-width/index.js
763
+ var segmenter = new Intl.Segmenter();
764
+ var defaultIgnorableCodePointRegex = /^\p{Default_Ignorable_Code_Point}$/u;
765
+ function stringWidth(string, options = {}) {
766
+ if (typeof string !== "string" || string.length === 0) {
767
+ return 0;
768
+ }
769
+ const {
770
+ ambiguousIsNarrow = true,
771
+ countAnsiEscapeCodes = false
772
+ } = options;
773
+ if (!countAnsiEscapeCodes) {
774
+ string = stripAnsi(string);
775
+ }
776
+ if (string.length === 0) {
777
+ return 0;
778
+ }
779
+ let width = 0;
780
+ const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
781
+ for (const { segment: character } of segmenter.segment(string)) {
782
+ const codePoint = character.codePointAt(0);
783
+ if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) {
784
+ continue;
785
+ }
786
+ if (codePoint >= 8203 && codePoint <= 8207 || codePoint === 65279) {
787
+ continue;
788
+ }
789
+ if (codePoint >= 768 && codePoint <= 879 || codePoint >= 6832 && codePoint <= 6911 || codePoint >= 7616 && codePoint <= 7679 || codePoint >= 8400 && codePoint <= 8447 || codePoint >= 65056 && codePoint <= 65071) {
790
+ continue;
791
+ }
792
+ if (codePoint >= 55296 && codePoint <= 57343) {
793
+ continue;
794
+ }
795
+ if (codePoint >= 65024 && codePoint <= 65039) {
796
+ continue;
797
+ }
798
+ if (defaultIgnorableCodePointRegex.test(character)) {
799
+ continue;
800
+ }
801
+ if (emoji_regex_default().test(character)) {
802
+ width += 2;
803
+ continue;
804
+ }
805
+ width += eastAsianWidth(codePoint, eastAsianWidthOptions);
806
+ }
807
+ return width;
808
+ }
809
+
810
+ // ../../node_modules/.pnpm/boxen@8.0.1/node_modules/boxen/index.js
811
+ var import_chalk2 = __toESM(require("chalk"), 1);
812
+
813
+ // ../../node_modules/.pnpm/widest-line@5.0.0/node_modules/widest-line/index.js
814
+ function widestLine(string) {
815
+ let lineWidth = 0;
816
+ for (const line of string.split("\n")) {
817
+ lineWidth = Math.max(lineWidth, stringWidth(line));
818
+ }
819
+ return lineWidth;
820
+ }
821
+
822
+ // ../../node_modules/.pnpm/boxen@8.0.1/node_modules/boxen/index.js
823
+ var import_cli_boxes = __toESM(require_cli_boxes(), 1);
824
+
825
+ // ../../node_modules/.pnpm/camelcase@8.0.0/node_modules/camelcase/index.js
826
+ var UPPERCASE = /[\p{Lu}]/u;
827
+ var LOWERCASE = /[\p{Ll}]/u;
828
+ var LEADING_CAPITAL = /^[\p{Lu}](?![\p{Lu}])/gu;
829
+ var IDENTIFIER = /([\p{Alpha}\p{N}_]|$)/u;
830
+ var SEPARATORS = /[_.\- ]+/;
831
+ var LEADING_SEPARATORS = new RegExp("^" + SEPARATORS.source);
832
+ var SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, "gu");
833
+ var NUMBERS_AND_IDENTIFIER = new RegExp("\\d+" + IDENTIFIER.source, "gu");
834
+ var preserveCamelCase = (string, toLowerCase, toUpperCase, preserveConsecutiveUppercase2) => {
835
+ let isLastCharLower = false;
836
+ let isLastCharUpper = false;
837
+ let isLastLastCharUpper = false;
838
+ let isLastLastCharPreserved = false;
839
+ for (let index = 0; index < string.length; index++) {
840
+ const character = string[index];
841
+ isLastLastCharPreserved = index > 2 ? string[index - 3] === "-" : true;
842
+ if (isLastCharLower && UPPERCASE.test(character)) {
843
+ string = string.slice(0, index) + "-" + string.slice(index);
844
+ isLastCharLower = false;
845
+ isLastLastCharUpper = isLastCharUpper;
846
+ isLastCharUpper = true;
847
+ index++;
848
+ } else if (isLastCharUpper && isLastLastCharUpper && LOWERCASE.test(character) && (!isLastLastCharPreserved || preserveConsecutiveUppercase2)) {
849
+ string = string.slice(0, index - 1) + "-" + string.slice(index - 1);
850
+ isLastLastCharUpper = isLastCharUpper;
851
+ isLastCharUpper = false;
852
+ isLastCharLower = true;
853
+ } else {
854
+ isLastCharLower = toLowerCase(character) === character && toUpperCase(character) !== character;
855
+ isLastLastCharUpper = isLastCharUpper;
856
+ isLastCharUpper = toUpperCase(character) === character && toLowerCase(character) !== character;
857
+ }
858
+ }
859
+ return string;
860
+ };
861
+ var preserveConsecutiveUppercase = (input, toLowerCase) => {
862
+ LEADING_CAPITAL.lastIndex = 0;
863
+ return input.replaceAll(LEADING_CAPITAL, (match) => toLowerCase(match));
864
+ };
865
+ var postProcess = (input, toUpperCase) => {
866
+ SEPARATORS_AND_IDENTIFIER.lastIndex = 0;
867
+ NUMBERS_AND_IDENTIFIER.lastIndex = 0;
868
+ return input.replaceAll(NUMBERS_AND_IDENTIFIER, (match, pattern, offset) => ["_", "-"].includes(input.charAt(offset + match.length)) ? match : toUpperCase(match)).replaceAll(SEPARATORS_AND_IDENTIFIER, (_, identifier) => toUpperCase(identifier));
869
+ };
870
+ function camelCase(input, options) {
871
+ if (!(typeof input === "string" || Array.isArray(input))) {
872
+ throw new TypeError("Expected the input to be `string | string[]`");
873
+ }
874
+ options = {
875
+ pascalCase: false,
876
+ preserveConsecutiveUppercase: false,
877
+ ...options
878
+ };
879
+ if (Array.isArray(input)) {
880
+ input = input.map((x) => x.trim()).filter((x) => x.length).join("-");
881
+ } else {
882
+ input = input.trim();
883
+ }
884
+ if (input.length === 0) {
885
+ return "";
886
+ }
887
+ const toLowerCase = options.locale === false ? (string) => string.toLowerCase() : (string) => string.toLocaleLowerCase(options.locale);
888
+ const toUpperCase = options.locale === false ? (string) => string.toUpperCase() : (string) => string.toLocaleUpperCase(options.locale);
889
+ if (input.length === 1) {
890
+ if (SEPARATORS.test(input)) {
891
+ return "";
892
+ }
893
+ return options.pascalCase ? toUpperCase(input) : toLowerCase(input);
894
+ }
895
+ const hasUpperCase = input !== toLowerCase(input);
896
+ if (hasUpperCase) {
897
+ input = preserveCamelCase(input, toLowerCase, toUpperCase, options.preserveConsecutiveUppercase);
898
+ }
899
+ input = input.replace(LEADING_SEPARATORS, "");
900
+ input = options.preserveConsecutiveUppercase ? preserveConsecutiveUppercase(input, toLowerCase) : toLowerCase(input);
901
+ if (options.pascalCase) {
902
+ input = toUpperCase(input.charAt(0)) + input.slice(1);
903
+ }
904
+ return postProcess(input, toUpperCase);
905
+ }
906
+
907
+ // ../../node_modules/.pnpm/boxen@8.0.1/node_modules/boxen/index.js
908
+ var import_ansi_align = __toESM(require_ansi_align(), 1);
909
+
910
+ // ../../node_modules/.pnpm/ansi-styles@6.2.1/node_modules/ansi-styles/index.js
911
+ var ANSI_BACKGROUND_OFFSET = 10;
912
+ var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
913
+ var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
914
+ var wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
915
+ var styles = {
916
+ modifier: {
917
+ reset: [0, 0],
918
+ // 21 isn't widely supported and 22 does the same thing
919
+ bold: [1, 22],
920
+ dim: [2, 22],
921
+ italic: [3, 23],
922
+ underline: [4, 24],
923
+ overline: [53, 55],
924
+ inverse: [7, 27],
925
+ hidden: [8, 28],
926
+ strikethrough: [9, 29]
927
+ },
928
+ color: {
929
+ black: [30, 39],
930
+ red: [31, 39],
931
+ green: [32, 39],
932
+ yellow: [33, 39],
933
+ blue: [34, 39],
934
+ magenta: [35, 39],
935
+ cyan: [36, 39],
936
+ white: [37, 39],
937
+ // Bright color
938
+ blackBright: [90, 39],
939
+ gray: [90, 39],
940
+ // Alias of `blackBright`
941
+ grey: [90, 39],
942
+ // Alias of `blackBright`
943
+ redBright: [91, 39],
944
+ greenBright: [92, 39],
945
+ yellowBright: [93, 39],
946
+ blueBright: [94, 39],
947
+ magentaBright: [95, 39],
948
+ cyanBright: [96, 39],
949
+ whiteBright: [97, 39]
950
+ },
951
+ bgColor: {
952
+ bgBlack: [40, 49],
953
+ bgRed: [41, 49],
954
+ bgGreen: [42, 49],
955
+ bgYellow: [43, 49],
956
+ bgBlue: [44, 49],
957
+ bgMagenta: [45, 49],
958
+ bgCyan: [46, 49],
959
+ bgWhite: [47, 49],
960
+ // Bright color
961
+ bgBlackBright: [100, 49],
962
+ bgGray: [100, 49],
963
+ // Alias of `bgBlackBright`
964
+ bgGrey: [100, 49],
965
+ // Alias of `bgBlackBright`
966
+ bgRedBright: [101, 49],
967
+ bgGreenBright: [102, 49],
968
+ bgYellowBright: [103, 49],
969
+ bgBlueBright: [104, 49],
970
+ bgMagentaBright: [105, 49],
971
+ bgCyanBright: [106, 49],
972
+ bgWhiteBright: [107, 49]
973
+ }
974
+ };
975
+ var modifierNames = Object.keys(styles.modifier);
976
+ var foregroundColorNames = Object.keys(styles.color);
977
+ var backgroundColorNames = Object.keys(styles.bgColor);
978
+ var colorNames = [...foregroundColorNames, ...backgroundColorNames];
979
+ function assembleStyles() {
980
+ const codes = /* @__PURE__ */ new Map();
981
+ for (const [groupName, group] of Object.entries(styles)) {
982
+ for (const [styleName, style] of Object.entries(group)) {
983
+ styles[styleName] = {
984
+ open: `\x1B[${style[0]}m`,
985
+ close: `\x1B[${style[1]}m`
986
+ };
987
+ group[styleName] = styles[styleName];
988
+ codes.set(style[0], style[1]);
989
+ }
990
+ Object.defineProperty(styles, groupName, {
991
+ value: group,
992
+ enumerable: false
993
+ });
994
+ }
995
+ Object.defineProperty(styles, "codes", {
996
+ value: codes,
997
+ enumerable: false
998
+ });
999
+ styles.color.close = "\x1B[39m";
1000
+ styles.bgColor.close = "\x1B[49m";
1001
+ styles.color.ansi = wrapAnsi16();
1002
+ styles.color.ansi256 = wrapAnsi256();
1003
+ styles.color.ansi16m = wrapAnsi16m();
1004
+ styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
1005
+ styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
1006
+ styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
1007
+ Object.defineProperties(styles, {
1008
+ rgbToAnsi256: {
1009
+ value: (red, green, blue) => {
1010
+ if (red === green && green === blue) {
1011
+ if (red < 8) {
1012
+ return 16;
1013
+ }
1014
+ if (red > 248) {
1015
+ return 231;
1016
+ }
1017
+ return Math.round((red - 8) / 247 * 24) + 232;
1018
+ }
1019
+ return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
1020
+ },
1021
+ enumerable: false
1022
+ },
1023
+ hexToRgb: {
1024
+ value: (hex) => {
1025
+ const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
1026
+ if (!matches) {
1027
+ return [0, 0, 0];
1028
+ }
1029
+ let [colorString] = matches;
1030
+ if (colorString.length === 3) {
1031
+ colorString = [...colorString].map((character) => character + character).join("");
1032
+ }
1033
+ const integer = Number.parseInt(colorString, 16);
1034
+ return [
1035
+ /* eslint-disable no-bitwise */
1036
+ integer >> 16 & 255,
1037
+ integer >> 8 & 255,
1038
+ integer & 255
1039
+ /* eslint-enable no-bitwise */
1040
+ ];
1041
+ },
1042
+ enumerable: false
1043
+ },
1044
+ hexToAnsi256: {
1045
+ value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
1046
+ enumerable: false
1047
+ },
1048
+ ansi256ToAnsi: {
1049
+ value: (code) => {
1050
+ if (code < 8) {
1051
+ return 30 + code;
1052
+ }
1053
+ if (code < 16) {
1054
+ return 90 + (code - 8);
1055
+ }
1056
+ let red;
1057
+ let green;
1058
+ let blue;
1059
+ if (code >= 232) {
1060
+ red = ((code - 232) * 10 + 8) / 255;
1061
+ green = red;
1062
+ blue = red;
1063
+ } else {
1064
+ code -= 16;
1065
+ const remainder = code % 36;
1066
+ red = Math.floor(code / 36) / 5;
1067
+ green = Math.floor(remainder / 6) / 5;
1068
+ blue = remainder % 6 / 5;
1069
+ }
1070
+ const value = Math.max(red, green, blue) * 2;
1071
+ if (value === 0) {
1072
+ return 30;
1073
+ }
1074
+ let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
1075
+ if (value === 2) {
1076
+ result += 60;
1077
+ }
1078
+ return result;
1079
+ },
1080
+ enumerable: false
1081
+ },
1082
+ rgbToAnsi: {
1083
+ value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
1084
+ enumerable: false
1085
+ },
1086
+ hexToAnsi: {
1087
+ value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
1088
+ enumerable: false
1089
+ }
1090
+ });
1091
+ return styles;
1092
+ }
1093
+ var ansiStyles = assembleStyles();
1094
+ var ansi_styles_default = ansiStyles;
1095
+
1096
+ // ../../node_modules/.pnpm/wrap-ansi@9.0.0/node_modules/wrap-ansi/index.js
1097
+ var ESCAPES = /* @__PURE__ */ new Set([
1098
+ "\x1B",
1099
+ "\x9B"
1100
+ ]);
1101
+ var END_CODE = 39;
1102
+ var ANSI_ESCAPE_BELL = "\x07";
1103
+ var ANSI_CSI = "[";
1104
+ var ANSI_OSC = "]";
1105
+ var ANSI_SGR_TERMINATOR = "m";
1106
+ var ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
1107
+ var wrapAnsiCode = (code) => `${ESCAPES.values().next().value}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`;
1108
+ var wrapAnsiHyperlink = (url) => `${ESCAPES.values().next().value}${ANSI_ESCAPE_LINK}${url}${ANSI_ESCAPE_BELL}`;
1109
+ var wordLengths = (string) => string.split(" ").map((character) => stringWidth(character));
1110
+ var wrapWord = (rows, word, columns) => {
1111
+ const characters = [...word];
1112
+ let isInsideEscape = false;
1113
+ let isInsideLinkEscape = false;
1114
+ let visible = stringWidth(stripAnsi(rows.at(-1)));
1115
+ for (const [index, character] of characters.entries()) {
1116
+ const characterLength = stringWidth(character);
1117
+ if (visible + characterLength <= columns) {
1118
+ rows[rows.length - 1] += character;
1119
+ } else {
1120
+ rows.push(character);
1121
+ visible = 0;
1122
+ }
1123
+ if (ESCAPES.has(character)) {
1124
+ isInsideEscape = true;
1125
+ const ansiEscapeLinkCandidate = characters.slice(index + 1, index + 1 + ANSI_ESCAPE_LINK.length).join("");
1126
+ isInsideLinkEscape = ansiEscapeLinkCandidate === ANSI_ESCAPE_LINK;
1127
+ }
1128
+ if (isInsideEscape) {
1129
+ if (isInsideLinkEscape) {
1130
+ if (character === ANSI_ESCAPE_BELL) {
1131
+ isInsideEscape = false;
1132
+ isInsideLinkEscape = false;
1133
+ }
1134
+ } else if (character === ANSI_SGR_TERMINATOR) {
1135
+ isInsideEscape = false;
1136
+ }
1137
+ continue;
1138
+ }
1139
+ visible += characterLength;
1140
+ if (visible === columns && index < characters.length - 1) {
1141
+ rows.push("");
1142
+ visible = 0;
1143
+ }
1144
+ }
1145
+ if (!visible && rows.at(-1).length > 0 && rows.length > 1) {
1146
+ rows[rows.length - 2] += rows.pop();
1147
+ }
1148
+ };
1149
+ var stringVisibleTrimSpacesRight = (string) => {
1150
+ const words = string.split(" ");
1151
+ let last = words.length;
1152
+ while (last > 0) {
1153
+ if (stringWidth(words[last - 1]) > 0) {
1154
+ break;
1155
+ }
1156
+ last--;
1157
+ }
1158
+ if (last === words.length) {
1159
+ return string;
1160
+ }
1161
+ return words.slice(0, last).join(" ") + words.slice(last).join("");
1162
+ };
1163
+ var exec = (string, columns, options = {}) => {
1164
+ if (options.trim !== false && string.trim() === "") {
1165
+ return "";
1166
+ }
1167
+ let returnValue = "";
1168
+ let escapeCode;
1169
+ let escapeUrl;
1170
+ const lengths = wordLengths(string);
1171
+ let rows = [""];
1172
+ for (const [index, word] of string.split(" ").entries()) {
1173
+ if (options.trim !== false) {
1174
+ rows[rows.length - 1] = rows.at(-1).trimStart();
1175
+ }
1176
+ let rowLength = stringWidth(rows.at(-1));
1177
+ if (index !== 0) {
1178
+ if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
1179
+ rows.push("");
1180
+ rowLength = 0;
1181
+ }
1182
+ if (rowLength > 0 || options.trim === false) {
1183
+ rows[rows.length - 1] += " ";
1184
+ rowLength++;
1185
+ }
1186
+ }
1187
+ if (options.hard && lengths[index] > columns) {
1188
+ const remainingColumns = columns - rowLength;
1189
+ const breaksStartingThisLine = 1 + Math.floor((lengths[index] - remainingColumns - 1) / columns);
1190
+ const breaksStartingNextLine = Math.floor((lengths[index] - 1) / columns);
1191
+ if (breaksStartingNextLine < breaksStartingThisLine) {
1192
+ rows.push("");
1193
+ }
1194
+ wrapWord(rows, word, columns);
1195
+ continue;
1196
+ }
1197
+ if (rowLength + lengths[index] > columns && rowLength > 0 && lengths[index] > 0) {
1198
+ if (options.wordWrap === false && rowLength < columns) {
1199
+ wrapWord(rows, word, columns);
1200
+ continue;
1201
+ }
1202
+ rows.push("");
1203
+ }
1204
+ if (rowLength + lengths[index] > columns && options.wordWrap === false) {
1205
+ wrapWord(rows, word, columns);
1206
+ continue;
1207
+ }
1208
+ rows[rows.length - 1] += word;
1209
+ }
1210
+ if (options.trim !== false) {
1211
+ rows = rows.map((row) => stringVisibleTrimSpacesRight(row));
1212
+ }
1213
+ const preString = rows.join("\n");
1214
+ const pre = [...preString];
1215
+ let preStringIndex = 0;
1216
+ for (const [index, character] of pre.entries()) {
1217
+ returnValue += character;
1218
+ if (ESCAPES.has(character)) {
1219
+ const { groups } = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`).exec(preString.slice(preStringIndex)) || { groups: {} };
1220
+ if (groups.code !== void 0) {
1221
+ const code2 = Number.parseFloat(groups.code);
1222
+ escapeCode = code2 === END_CODE ? void 0 : code2;
1223
+ } else if (groups.uri !== void 0) {
1224
+ escapeUrl = groups.uri.length === 0 ? void 0 : groups.uri;
1225
+ }
1226
+ }
1227
+ const code = ansi_styles_default.codes.get(Number(escapeCode));
1228
+ if (pre[index + 1] === "\n") {
1229
+ if (escapeUrl) {
1230
+ returnValue += wrapAnsiHyperlink("");
1231
+ }
1232
+ if (escapeCode && code) {
1233
+ returnValue += wrapAnsiCode(code);
1234
+ }
1235
+ } else if (character === "\n") {
1236
+ if (escapeCode && code) {
1237
+ returnValue += wrapAnsiCode(escapeCode);
1238
+ }
1239
+ if (escapeUrl) {
1240
+ returnValue += wrapAnsiHyperlink(escapeUrl);
1241
+ }
1242
+ }
1243
+ preStringIndex += character.length;
1244
+ }
1245
+ return returnValue;
1246
+ };
1247
+ function wrapAnsi(string, columns, options) {
1248
+ return String(string).normalize().replaceAll("\r\n", "\n").split("\n").map((line) => exec(line, columns, options)).join("\n");
1249
+ }
1250
+
1251
+ // ../../node_modules/.pnpm/boxen@8.0.1/node_modules/boxen/index.js
1252
+ var import_cli_boxes2 = __toESM(require_cli_boxes(), 1);
1253
+ var NEWLINE = "\n";
1254
+ var PAD = " ";
1255
+ var NONE = "none";
1256
+ var terminalColumns = () => {
1257
+ const { env, stdout, stderr } = import_node_process.default;
1258
+ if (stdout?.columns) {
1259
+ return stdout.columns;
1260
+ }
1261
+ if (stderr?.columns) {
1262
+ return stderr.columns;
1263
+ }
1264
+ if (env.COLUMNS) {
1265
+ return Number.parseInt(env.COLUMNS, 10);
1266
+ }
1267
+ return 80;
1268
+ };
1269
+ var getObject = (detail) => typeof detail === "number" ? {
1270
+ top: detail,
1271
+ right: detail * 3,
1272
+ bottom: detail,
1273
+ left: detail * 3
1274
+ } : {
1275
+ top: 0,
1276
+ right: 0,
1277
+ bottom: 0,
1278
+ left: 0,
1279
+ ...detail
1280
+ };
1281
+ var getBorderWidth = (borderStyle) => borderStyle === NONE ? 0 : 2;
1282
+ var getBorderChars = (borderStyle) => {
1283
+ const sides = [
1284
+ "topLeft",
1285
+ "topRight",
1286
+ "bottomRight",
1287
+ "bottomLeft",
1288
+ "left",
1289
+ "right",
1290
+ "top",
1291
+ "bottom"
1292
+ ];
1293
+ let characters;
1294
+ if (borderStyle === NONE) {
1295
+ borderStyle = {};
1296
+ for (const side of sides) {
1297
+ borderStyle[side] = "";
1298
+ }
1299
+ }
1300
+ if (typeof borderStyle === "string") {
1301
+ characters = import_cli_boxes.default[borderStyle];
1302
+ if (!characters) {
1303
+ throw new TypeError(`Invalid border style: ${borderStyle}`);
1304
+ }
1305
+ } else {
1306
+ if (typeof borderStyle?.vertical === "string") {
1307
+ borderStyle.left = borderStyle.vertical;
1308
+ borderStyle.right = borderStyle.vertical;
1309
+ }
1310
+ if (typeof borderStyle?.horizontal === "string") {
1311
+ borderStyle.top = borderStyle.horizontal;
1312
+ borderStyle.bottom = borderStyle.horizontal;
1313
+ }
1314
+ for (const side of sides) {
1315
+ if (borderStyle[side] === null || typeof borderStyle[side] !== "string") {
1316
+ throw new TypeError(`Invalid border style: ${side}`);
1317
+ }
1318
+ }
1319
+ characters = borderStyle;
1320
+ }
1321
+ return characters;
1322
+ };
1323
+ var makeTitle = (text, horizontal, alignment) => {
1324
+ let title = "";
1325
+ const textWidth = stringWidth(text);
1326
+ switch (alignment) {
1327
+ case "left": {
1328
+ title = text + horizontal.slice(textWidth);
1329
+ break;
1330
+ }
1331
+ case "right": {
1332
+ title = horizontal.slice(textWidth) + text;
1333
+ break;
1334
+ }
1335
+ default: {
1336
+ horizontal = horizontal.slice(textWidth);
1337
+ if (horizontal.length % 2 === 1) {
1338
+ horizontal = horizontal.slice(Math.floor(horizontal.length / 2));
1339
+ title = horizontal.slice(1) + text + horizontal;
1340
+ } else {
1341
+ horizontal = horizontal.slice(horizontal.length / 2);
1342
+ title = horizontal + text + horizontal;
1343
+ }
1344
+ break;
1345
+ }
1346
+ }
1347
+ return title;
1348
+ };
1349
+ var makeContentText = (text, { padding, width, textAlignment, height }) => {
1350
+ text = (0, import_ansi_align.default)(text, { align: textAlignment });
1351
+ let lines = text.split(NEWLINE);
1352
+ const textWidth = widestLine(text);
1353
+ const max = width - padding.left - padding.right;
1354
+ if (textWidth > max) {
1355
+ const newLines = [];
1356
+ for (const line of lines) {
1357
+ const createdLines = wrapAnsi(line, max, { hard: true });
1358
+ const alignedLines = (0, import_ansi_align.default)(createdLines, { align: textAlignment });
1359
+ const alignedLinesArray = alignedLines.split("\n");
1360
+ const longestLength = Math.max(...alignedLinesArray.map((s) => stringWidth(s)));
1361
+ for (const alignedLine of alignedLinesArray) {
1362
+ let paddedLine;
1363
+ switch (textAlignment) {
1364
+ case "center": {
1365
+ paddedLine = PAD.repeat((max - longestLength) / 2) + alignedLine;
1366
+ break;
1367
+ }
1368
+ case "right": {
1369
+ paddedLine = PAD.repeat(max - longestLength) + alignedLine;
1370
+ break;
1371
+ }
1372
+ default: {
1373
+ paddedLine = alignedLine;
1374
+ break;
1375
+ }
1376
+ }
1377
+ newLines.push(paddedLine);
1378
+ }
1379
+ }
1380
+ lines = newLines;
1381
+ }
1382
+ if (textAlignment === "center" && textWidth < max) {
1383
+ lines = lines.map((line) => PAD.repeat((max - textWidth) / 2) + line);
1384
+ } else if (textAlignment === "right" && textWidth < max) {
1385
+ lines = lines.map((line) => PAD.repeat(max - textWidth) + line);
1386
+ }
1387
+ const paddingLeft = PAD.repeat(padding.left);
1388
+ const paddingRight = PAD.repeat(padding.right);
1389
+ lines = lines.map((line) => {
1390
+ const newLine = paddingLeft + line + paddingRight;
1391
+ return newLine + PAD.repeat(width - stringWidth(newLine));
1392
+ });
1393
+ if (padding.top > 0) {
1394
+ lines = [...Array.from({ length: padding.top }).fill(PAD.repeat(width)), ...lines];
1395
+ }
1396
+ if (padding.bottom > 0) {
1397
+ lines = [...lines, ...Array.from({ length: padding.bottom }).fill(PAD.repeat(width))];
1398
+ }
1399
+ if (height && lines.length > height) {
1400
+ lines = lines.slice(0, height);
1401
+ } else if (height && lines.length < height) {
1402
+ lines = [...lines, ...Array.from({ length: height - lines.length }).fill(PAD.repeat(width))];
1403
+ }
1404
+ return lines.join(NEWLINE);
1405
+ };
1406
+ var boxContent = (content, contentWidth, options) => {
1407
+ const colorizeBorder = (border) => {
1408
+ const newBorder = options.borderColor ? getColorFunction(options.borderColor)(border) : border;
1409
+ return options.dimBorder ? import_chalk2.default.dim(newBorder) : newBorder;
1410
+ };
1411
+ const colorizeContent = (content2) => options.backgroundColor ? getBGColorFunction(options.backgroundColor)(content2) : content2;
1412
+ const chars = getBorderChars(options.borderStyle);
1413
+ const columns = terminalColumns();
1414
+ let marginLeft = PAD.repeat(options.margin.left);
1415
+ if (options.float === "center") {
1416
+ const marginWidth = Math.max((columns - contentWidth - getBorderWidth(options.borderStyle)) / 2, 0);
1417
+ marginLeft = PAD.repeat(marginWidth);
1418
+ } else if (options.float === "right") {
1419
+ const marginWidth = Math.max(columns - contentWidth - options.margin.right - getBorderWidth(options.borderStyle), 0);
1420
+ marginLeft = PAD.repeat(marginWidth);
1421
+ }
1422
+ let result = "";
1423
+ if (options.margin.top) {
1424
+ result += NEWLINE.repeat(options.margin.top);
1425
+ }
1426
+ if (options.borderStyle !== NONE || options.title) {
1427
+ result += colorizeBorder(marginLeft + chars.topLeft + (options.title ? makeTitle(options.title, chars.top.repeat(contentWidth), options.titleAlignment) : chars.top.repeat(contentWidth)) + chars.topRight) + NEWLINE;
1428
+ }
1429
+ const lines = content.split(NEWLINE);
1430
+ result += lines.map((line) => marginLeft + colorizeBorder(chars.left) + colorizeContent(line) + colorizeBorder(chars.right)).join(NEWLINE);
1431
+ if (options.borderStyle !== NONE) {
1432
+ result += NEWLINE + colorizeBorder(marginLeft + chars.bottomLeft + chars.bottom.repeat(contentWidth) + chars.bottomRight);
1433
+ }
1434
+ if (options.margin.bottom) {
1435
+ result += NEWLINE.repeat(options.margin.bottom);
1436
+ }
1437
+ return result;
1438
+ };
1439
+ var sanitizeOptions = (options) => {
1440
+ if (options.fullscreen && import_node_process.default?.stdout) {
1441
+ let newDimensions = [import_node_process.default.stdout.columns, import_node_process.default.stdout.rows];
1442
+ if (typeof options.fullscreen === "function") {
1443
+ newDimensions = options.fullscreen(...newDimensions);
1444
+ }
1445
+ options.width || (options.width = newDimensions[0]);
1446
+ options.height || (options.height = newDimensions[1]);
1447
+ }
1448
+ options.width && (options.width = Math.max(1, options.width - getBorderWidth(options.borderStyle)));
1449
+ options.height && (options.height = Math.max(1, options.height - getBorderWidth(options.borderStyle)));
1450
+ return options;
1451
+ };
1452
+ var formatTitle = (title, borderStyle) => borderStyle === NONE ? title : ` ${title} `;
1453
+ var determineDimensions = (text, options) => {
1454
+ options = sanitizeOptions(options);
1455
+ const widthOverride = options.width !== void 0;
1456
+ const columns = terminalColumns();
1457
+ const borderWidth = getBorderWidth(options.borderStyle);
1458
+ const maxWidth = columns - options.margin.left - options.margin.right - borderWidth;
1459
+ const widest = widestLine(wrapAnsi(text, columns - borderWidth, { hard: true, trim: false })) + options.padding.left + options.padding.right;
1460
+ if (options.title && widthOverride) {
1461
+ options.title = options.title.slice(0, Math.max(0, options.width - 2));
1462
+ options.title && (options.title = formatTitle(options.title, options.borderStyle));
1463
+ } else if (options.title) {
1464
+ options.title = options.title.slice(0, Math.max(0, maxWidth - 2));
1465
+ if (options.title) {
1466
+ options.title = formatTitle(options.title, options.borderStyle);
1467
+ if (stringWidth(options.title) > widest) {
1468
+ options.width = stringWidth(options.title);
1469
+ }
1470
+ }
1471
+ }
1472
+ options.width || (options.width = widest);
1473
+ if (!widthOverride) {
1474
+ if (options.margin.left && options.margin.right && options.width > maxWidth) {
1475
+ const spaceForMargins = columns - options.width - borderWidth;
1476
+ const multiplier = spaceForMargins / (options.margin.left + options.margin.right);
1477
+ options.margin.left = Math.max(0, Math.floor(options.margin.left * multiplier));
1478
+ options.margin.right = Math.max(0, Math.floor(options.margin.right * multiplier));
1479
+ }
1480
+ options.width = Math.min(options.width, columns - borderWidth - options.margin.left - options.margin.right);
1481
+ }
1482
+ if (options.width - (options.padding.left + options.padding.right) <= 0) {
1483
+ options.padding.left = 0;
1484
+ options.padding.right = 0;
1485
+ }
1486
+ if (options.height && options.height - (options.padding.top + options.padding.bottom) <= 0) {
1487
+ options.padding.top = 0;
1488
+ options.padding.bottom = 0;
1489
+ }
1490
+ return options;
1491
+ };
1492
+ var isHex = (color) => color.match(/^#(?:[0-f]{3}){1,2}$/i);
1493
+ var isColorValid = (color) => typeof color === "string" && (import_chalk2.default[color] ?? isHex(color));
1494
+ var getColorFunction = (color) => isHex(color) ? import_chalk2.default.hex(color) : import_chalk2.default[color];
1495
+ var getBGColorFunction = (color) => isHex(color) ? import_chalk2.default.bgHex(color) : import_chalk2.default[camelCase(["bg", color])];
1496
+ function boxen(text, options) {
1497
+ options = {
1498
+ padding: 0,
1499
+ borderStyle: "single",
1500
+ dimBorder: false,
1501
+ textAlignment: "left",
1502
+ float: "left",
1503
+ titleAlignment: "left",
1504
+ ...options
1505
+ };
1506
+ if (options.align) {
1507
+ options.textAlignment = options.align;
1508
+ }
1509
+ if (options.borderColor && !isColorValid(options.borderColor)) {
1510
+ throw new Error(`${options.borderColor} is not a valid borderColor`);
1511
+ }
1512
+ if (options.backgroundColor && !isColorValid(options.backgroundColor)) {
1513
+ throw new Error(`${options.backgroundColor} is not a valid backgroundColor`);
1514
+ }
1515
+ options.padding = getObject(options.padding);
1516
+ options.margin = getObject(options.margin);
1517
+ options = determineDimensions(text, options);
1518
+ text = makeContentText(text, options);
1519
+ return boxContent(text, options.width, options);
1520
+ }
1521
+
1522
+ // ../../shared/check-for-package-update.ts
1523
+ var import_fs = __toESM(require("fs"));
1524
+ var import_path2 = __toESM(require("path"));
1525
+ var getInstalledVersionOfPackage = (packageName) => {
1526
+ try {
1527
+ const PROJECT_DIR = process.env.PROJECT_DIR || process.cwd();
1528
+ const pkg = import_fs.default.readFileSync(import_path2.default.join(PROJECT_DIR, "package.json"), "utf8");
1529
+ const json = JSON.parse(pkg);
1530
+ return json.dependencies[packageName];
1531
+ } catch (error) {
1532
+ return null;
1533
+ }
1534
+ };
1535
+ async function checkForPackageUpdate(packageName) {
1536
+ const installedVersion = getInstalledVersionOfPackage(packageName);
1537
+ if (!installedVersion || installedVersion === "latest") return;
1538
+ const pkg = { name: packageName, version: installedVersion };
1539
+ const updateNotifierModule = await import("update-notifier");
1540
+ const notifier = updateNotifierModule.default({ pkg, updateCheckInterval: 0, shouldNotifyInNpmScript: true });
1541
+ const info = await notifier.fetchInfo();
1542
+ if (info?.type !== "latest") {
1543
+ const message = `Package ${packageName} update available ${info.current} \u2192 ${info.latest}
1544
+ Run npm i ${packageName} to update`;
1545
+ console.log(
1546
+ boxen(message, {
1547
+ padding: 1,
1548
+ margin: 1,
1549
+ align: "center",
1550
+ borderColor: "yellow",
1551
+ borderStyle: {
1552
+ topLeft: " ",
1553
+ topRight: " ",
1554
+ bottomLeft: " ",
1555
+ bottomRight: " ",
1556
+ right: " ",
1557
+ top: "-",
1558
+ bottom: "-",
1559
+ left: " "
1560
+ }
1561
+ })
1562
+ );
1563
+ }
1564
+ }
1565
+
1566
+ // src/index.ts
452
1567
  var index_default = async (_, options) => {
453
1568
  if (!process.env.PROJECT_DIR) {
454
1569
  process.env.PROJECT_DIR = process.cwd();
@@ -457,6 +1572,7 @@ var index_default = async (_, options) => {
457
1572
  throw new Error("Please provide catalog url (env variable PROJECT_DIR)");
458
1573
  }
459
1574
  await checkLicense_default(options.licenseKey);
1575
+ await checkForPackageUpdate(package_default.name);
460
1576
  const {
461
1577
  getDomain,
462
1578
  versionDomain,
@@ -470,12 +1586,12 @@ var index_default = async (_, options) => {
470
1586
  } = (0, import_sdk2.default)(process.env.PROJECT_DIR);
471
1587
  const { services = [], saveParsedSpecFile = false } = options;
472
1588
  for (const serviceSpec of services) {
473
- console.log(import_chalk2.default.green(`Processing ${serviceSpec.path}`));
1589
+ console.log(import_chalk3.default.green(`Processing ${serviceSpec.path}`));
474
1590
  try {
475
1591
  await import_swagger_parser2.default.validate(serviceSpec.path);
476
1592
  } catch (error) {
477
- console.error(import_chalk2.default.red(`Failed to parse OpenAPI file: ${serviceSpec.path}`));
478
- console.error(import_chalk2.default.red(error));
1593
+ console.error(import_chalk3.default.red(`Failed to parse OpenAPI file: ${serviceSpec.path}`));
1594
+ console.error(import_chalk3.default.red(error));
479
1595
  continue;
480
1596
  }
481
1597
  const document = await import_swagger_parser2.default.dereference(serviceSpec.path);
@@ -492,11 +1608,11 @@ var index_default = async (_, options) => {
492
1608
  const { id: domainId, name: domainName, version: domainVersion } = options.domain;
493
1609
  const domain = await getDomain(options.domain.id, domainVersion || "latest");
494
1610
  const currentDomain = await getDomain(options.domain.id, "latest");
495
- console.log(import_chalk2.default.blue(`
1611
+ console.log(import_chalk3.default.blue(`
496
1612
  Processing domain: ${domainName} (v${domainVersion})`));
497
1613
  if (currentDomain && currentDomain.version !== domainVersion) {
498
1614
  await versionDomain(domainId);
499
- console.log(import_chalk2.default.cyan(` - Versioned previous domain (v${currentDomain.version})`));
1615
+ console.log(import_chalk3.default.cyan(` - Versioned previous domain (v${currentDomain.version})`));
500
1616
  }
501
1617
  if (!domain || domain && domain.version !== domainVersion) {
502
1618
  await writeDomain({
@@ -506,10 +1622,10 @@ Processing domain: ${domainName} (v${domainVersion})`));
506
1622
  markdown: defaultMarkdown(),
507
1623
  ...options.domain?.owners ? { owners: options.domain.owners } : {}
508
1624
  });
509
- console.log(import_chalk2.default.cyan(` - Domain (v${domainVersion}) created`));
1625
+ console.log(import_chalk3.default.cyan(` - Domain (v${domainVersion}) created`));
510
1626
  }
511
1627
  if (currentDomain && currentDomain.version === domainVersion) {
512
- console.log(import_chalk2.default.yellow(` - Domain (v${domainVersion}) already exists, skipped creation...`));
1628
+ console.log(import_chalk3.default.yellow(` - Domain (v${domainVersion}) already exists, skipped creation...`));
513
1629
  }
514
1630
  await addServiceToDomain(domainId, { id: service.id, version: service.version }, domainVersion);
515
1631
  }
@@ -520,7 +1636,7 @@ Processing domain: ${domainName} (v${domainVersion})`));
520
1636
  let owners = service.owners || [];
521
1637
  let repository = null;
522
1638
  const latestServiceInCatalog = await getService(service.id, "latest");
523
- console.log(import_chalk2.default.blue(`Processing service: ${document.info.title} (v${version})`));
1639
+ console.log(import_chalk3.default.blue(`Processing service: ${document.info.title} (v${version})`));
524
1640
  if (latestServiceInCatalog) {
525
1641
  serviceMarkdown = latestServiceInCatalog.markdown;
526
1642
  serviceSpecificationsFiles = await getSpecificationFilesForService(service.id, "latest");
@@ -533,7 +1649,7 @@ Processing domain: ${domainName} (v${domainVersion})`));
533
1649
  };
534
1650
  if (latestServiceInCatalog.version !== version) {
535
1651
  await versionService(service.id);
536
- console.log(import_chalk2.default.cyan(` - Versioned previous service (v${latestServiceInCatalog.version})`));
1652
+ console.log(import_chalk3.default.cyan(` - Versioned previous service (v${latestServiceInCatalog.version})`));
537
1653
  }
538
1654
  if (latestServiceInCatalog.version === version) {
539
1655
  receives = latestServiceInCatalog.receives ? [...latestServiceInCatalog.receives, ...receives] : receives;
@@ -569,7 +1685,7 @@ Processing domain: ${domainName} (v${domainVersion})`));
569
1685
  version
570
1686
  );
571
1687
  }
572
- console.log(import_chalk2.default.cyan(` - Service (v${version}) created`));
1688
+ console.log(import_chalk3.default.cyan(` - Service (v${version}) created`));
573
1689
  }
574
1690
  };
575
1691
  var processMessagesForOpenAPISpec = async (pathToSpec, document, servicePath, options) => {
@@ -581,7 +1697,7 @@ var processMessagesForOpenAPISpec = async (pathToSpec, document, servicePath, op
581
1697
  let messageMarkdown = message.markdown;
582
1698
  const messageType = operation.type;
583
1699
  const messageAction = operation.action;
584
- console.log(import_chalk2.default.blue(`Processing message: ${message.name} (v${message.version})`));
1700
+ console.log(import_chalk3.default.blue(`Processing message: ${message.name} (v${message.version})`));
585
1701
  const {
586
1702
  addFileToMessage,
587
1703
  writeMessage,
@@ -594,7 +1710,7 @@ var processMessagesForOpenAPISpec = async (pathToSpec, document, servicePath, op
594
1710
  messageMarkdown = catalogedMessage.markdown;
595
1711
  if (catalogedMessage.version !== version) {
596
1712
  await versionMessage(message.id);
597
- console.log(import_chalk2.default.cyan(` - Versioned previous message: (v${catalogedMessage.version})`));
1713
+ console.log(import_chalk3.default.cyan(` - Versioned previous message: (v${catalogedMessage.version})`));
598
1714
  }
599
1715
  }
600
1716
  let messagePath = (0, import_node_path.join)(servicePath, folder, message.id);
@@ -638,10 +1754,10 @@ var processMessagesForOpenAPISpec = async (pathToSpec, document, servicePath, op
638
1754
  );
639
1755
  }
640
1756
  }
641
- console.log(import_chalk2.default.cyan(` - Message (v${message.version}) created`));
1757
+ console.log(import_chalk3.default.cyan(` - Message (v${message.version}) created`));
642
1758
  if (!operation.operationId) {
643
- console.log(import_chalk2.default.yellow(` - OperationId not found for ${operation.method} ${operation.path}, creating one...`));
644
- console.log(import_chalk2.default.yellow(` - Use operationIds to give better unique names for EventCatalog`));
1759
+ console.log(import_chalk3.default.yellow(` - OperationId not found for ${operation.method} ${operation.path}, creating one...`));
1760
+ console.log(import_chalk3.default.yellow(` - Use operationIds to give better unique names for EventCatalog`));
645
1761
  }
646
1762
  }
647
1763
  return { receives, sends };