pretierr 3.3.3
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +4379 -0
- package/README.md +109 -0
- package/bin/prettier.cjs +64 -0
- package/doc.d.ts +243 -0
- package/doc.js +1319 -0
- package/doc.mjs +1291 -0
- package/index.cjs +648 -0
- package/index.d.ts +941 -0
- package/index.mjs +22795 -0
- package/internal/cli.mjs +3884 -0
- package/package.json +206 -0
- package/plugins/acorn.d.ts +6 -0
- package/plugins/acorn.js +15 -0
- package/plugins/acorn.mjs +15 -0
- package/plugins/angular.d.ts +8 -0
- package/plugins/angular.js +1 -0
- package/plugins/angular.mjs +1 -0
- package/plugins/babel.d.ts +18 -0
- package/plugins/babel.js +15 -0
- package/plugins/babel.mjs +15 -0
- package/plugins/estree.d.ts +1 -0
- package/plugins/estree.js +36 -0
- package/plugins/estree.mjs +36 -0
- package/plugins/flow.d.ts +5 -0
- package/plugins/flow.js +19 -0
- package/plugins/flow.mjs +19 -0
- package/plugins/glimmer.d.ts +5 -0
- package/plugins/glimmer.js +30 -0
- package/plugins/glimmer.mjs +30 -0
- package/plugins/graphql.d.ts +5 -0
- package/plugins/graphql.js +29 -0
- package/plugins/graphql.mjs +29 -0
- package/plugins/html.d.ts +8 -0
- package/plugins/html.js +22 -0
- package/plugins/html.mjs +22 -0
- package/plugins/markdown.d.ts +7 -0
- package/plugins/markdown.js +62 -0
- package/plugins/markdown.mjs +62 -0
- package/plugins/meriyah.d.ts +5 -0
- package/plugins/meriyah.js +4 -0
- package/plugins/meriyah.mjs +4 -0
- package/plugins/postcss.d.ts +7 -0
- package/plugins/postcss.js +52 -0
- package/plugins/postcss.mjs +52 -0
- package/plugins/typescript.d.ts +5 -0
- package/plugins/typescript.js +20 -0
- package/plugins/typescript.mjs +20 -0
- package/plugins/yaml.d.ts +5 -0
- package/plugins/yaml.js +161 -0
- package/plugins/yaml.mjs +161 -0
- package/standalone.d.ts +33 -0
- package/standalone.js +35 -0
- package/standalone.mjs +35 -0
- package/te24xjoq.cjs +1 -0
package/index.cjs
ADDED
@@ -0,0 +1,648 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __create = Object.create;
|
3
|
+
var __defProp = Object.defineProperty;
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
8
|
+
var __esm = (fn, res) => function __init() {
|
9
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
10
|
+
};
|
11
|
+
var __commonJS = (cb, mod) => function __require() {
|
12
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
13
|
+
};
|
14
|
+
var __export = (target, all) => {
|
15
|
+
for (var name in all)
|
16
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
17
|
+
};
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
20
|
+
for (let key of __getOwnPropNames(from))
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
22
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
23
|
+
}
|
24
|
+
return to;
|
25
|
+
};
|
26
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
27
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
28
|
+
// file that has been converted to a CommonJS file using a Babel-
|
29
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
30
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
31
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
32
|
+
mod
|
33
|
+
));
|
34
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
35
|
+
|
36
|
+
// src/utils/skip.js
|
37
|
+
function skip(characters) {
|
38
|
+
return (text, startIndex, options) => {
|
39
|
+
const backwards = Boolean(options == null ? void 0 : options.backwards);
|
40
|
+
if (startIndex === false) {
|
41
|
+
return false;
|
42
|
+
}
|
43
|
+
const { length } = text;
|
44
|
+
let cursor = startIndex;
|
45
|
+
while (cursor >= 0 && cursor < length) {
|
46
|
+
const character = text.charAt(cursor);
|
47
|
+
if (characters instanceof RegExp) {
|
48
|
+
if (!characters.test(character)) {
|
49
|
+
return cursor;
|
50
|
+
}
|
51
|
+
} else if (!characters.includes(character)) {
|
52
|
+
return cursor;
|
53
|
+
}
|
54
|
+
backwards ? cursor-- : cursor++;
|
55
|
+
}
|
56
|
+
if (cursor === -1 || cursor === length) {
|
57
|
+
return cursor;
|
58
|
+
}
|
59
|
+
return false;
|
60
|
+
};
|
61
|
+
}
|
62
|
+
var skipWhitespace, skipSpaces, skipToLineEnd, skipEverythingButNewLine;
|
63
|
+
var init_skip = __esm({
|
64
|
+
"src/utils/skip.js"() {
|
65
|
+
skipWhitespace = skip(/\s/u);
|
66
|
+
skipSpaces = skip(" ");
|
67
|
+
skipToLineEnd = skip(",; ");
|
68
|
+
skipEverythingButNewLine = skip(/[^\n\r]/u);
|
69
|
+
}
|
70
|
+
});
|
71
|
+
|
72
|
+
// src/utils/skip-inline-comment.js
|
73
|
+
function skipInlineComment(text, startIndex) {
|
74
|
+
if (startIndex === false) {
|
75
|
+
return false;
|
76
|
+
}
|
77
|
+
if (text.charAt(startIndex) === "/" && text.charAt(startIndex + 1) === "*") {
|
78
|
+
for (let i = startIndex + 2; i < text.length; ++i) {
|
79
|
+
if (text.charAt(i) === "*" && text.charAt(i + 1) === "/") {
|
80
|
+
return i + 2;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
return startIndex;
|
85
|
+
}
|
86
|
+
var skip_inline_comment_default;
|
87
|
+
var init_skip_inline_comment = __esm({
|
88
|
+
"src/utils/skip-inline-comment.js"() {
|
89
|
+
skip_inline_comment_default = skipInlineComment;
|
90
|
+
}
|
91
|
+
});
|
92
|
+
|
93
|
+
// src/utils/skip-newline.js
|
94
|
+
function skipNewline(text, startIndex, options) {
|
95
|
+
const backwards = Boolean(options == null ? void 0 : options.backwards);
|
96
|
+
if (startIndex === false) {
|
97
|
+
return false;
|
98
|
+
}
|
99
|
+
const character = text.charAt(startIndex);
|
100
|
+
if (backwards) {
|
101
|
+
if (text.charAt(startIndex - 1) === "\r" && character === "\n") {
|
102
|
+
return startIndex - 2;
|
103
|
+
}
|
104
|
+
if (character === "\n" || character === "\r" || character === "\u2028" || character === "\u2029") {
|
105
|
+
return startIndex - 1;
|
106
|
+
}
|
107
|
+
} else {
|
108
|
+
if (character === "\r" && text.charAt(startIndex + 1) === "\n") {
|
109
|
+
return startIndex + 2;
|
110
|
+
}
|
111
|
+
if (character === "\n" || character === "\r" || character === "\u2028" || character === "\u2029") {
|
112
|
+
return startIndex + 1;
|
113
|
+
}
|
114
|
+
}
|
115
|
+
return startIndex;
|
116
|
+
}
|
117
|
+
var skip_newline_default;
|
118
|
+
var init_skip_newline = __esm({
|
119
|
+
"src/utils/skip-newline.js"() {
|
120
|
+
skip_newline_default = skipNewline;
|
121
|
+
}
|
122
|
+
});
|
123
|
+
|
124
|
+
// src/utils/skip-trailing-comment.js
|
125
|
+
function skipTrailingComment(text, startIndex) {
|
126
|
+
if (startIndex === false) {
|
127
|
+
return false;
|
128
|
+
}
|
129
|
+
if (text.charAt(startIndex) === "/" && text.charAt(startIndex + 1) === "/") {
|
130
|
+
return skipEverythingButNewLine(text, startIndex);
|
131
|
+
}
|
132
|
+
return startIndex;
|
133
|
+
}
|
134
|
+
var skip_trailing_comment_default;
|
135
|
+
var init_skip_trailing_comment = __esm({
|
136
|
+
"src/utils/skip-trailing-comment.js"() {
|
137
|
+
init_skip();
|
138
|
+
skip_trailing_comment_default = skipTrailingComment;
|
139
|
+
}
|
140
|
+
});
|
141
|
+
|
142
|
+
// src/utils/get-next-non-space-non-comment-character-index.js
|
143
|
+
function getNextNonSpaceNonCommentCharacterIndex(text, startIndex) {
|
144
|
+
let oldIdx = null;
|
145
|
+
let nextIdx = startIndex;
|
146
|
+
while (nextIdx !== oldIdx) {
|
147
|
+
oldIdx = nextIdx;
|
148
|
+
nextIdx = skipSpaces(text, nextIdx);
|
149
|
+
nextIdx = skip_inline_comment_default(text, nextIdx);
|
150
|
+
nextIdx = skip_trailing_comment_default(text, nextIdx);
|
151
|
+
nextIdx = skip_newline_default(text, nextIdx);
|
152
|
+
}
|
153
|
+
return nextIdx;
|
154
|
+
}
|
155
|
+
var get_next_non_space_non_comment_character_index_default;
|
156
|
+
var init_get_next_non_space_non_comment_character_index = __esm({
|
157
|
+
"src/utils/get-next-non-space-non-comment-character-index.js"() {
|
158
|
+
init_skip();
|
159
|
+
init_skip_inline_comment();
|
160
|
+
init_skip_newline();
|
161
|
+
init_skip_trailing_comment();
|
162
|
+
get_next_non_space_non_comment_character_index_default = getNextNonSpaceNonCommentCharacterIndex;
|
163
|
+
}
|
164
|
+
});
|
165
|
+
|
166
|
+
// src/utils/has-newline.js
|
167
|
+
function hasNewline(text, startIndex, options = {}) {
|
168
|
+
const idx = skipSpaces(
|
169
|
+
text,
|
170
|
+
options.backwards ? startIndex - 1 : startIndex,
|
171
|
+
options
|
172
|
+
);
|
173
|
+
const idx2 = skip_newline_default(text, idx, options);
|
174
|
+
return idx !== idx2;
|
175
|
+
}
|
176
|
+
var has_newline_default;
|
177
|
+
var init_has_newline = __esm({
|
178
|
+
"src/utils/has-newline.js"() {
|
179
|
+
init_skip();
|
180
|
+
init_skip_newline();
|
181
|
+
has_newline_default = hasNewline;
|
182
|
+
}
|
183
|
+
});
|
184
|
+
|
185
|
+
// src/utils/is-next-line-empty.js
|
186
|
+
function isNextLineEmpty(text, startIndex) {
|
187
|
+
let oldIdx = null;
|
188
|
+
let idx = startIndex;
|
189
|
+
while (idx !== oldIdx) {
|
190
|
+
oldIdx = idx;
|
191
|
+
idx = skipToLineEnd(text, idx);
|
192
|
+
idx = skip_inline_comment_default(text, idx);
|
193
|
+
idx = skipSpaces(text, idx);
|
194
|
+
}
|
195
|
+
idx = skip_trailing_comment_default(text, idx);
|
196
|
+
idx = skip_newline_default(text, idx);
|
197
|
+
return idx !== false && has_newline_default(text, idx);
|
198
|
+
}
|
199
|
+
var is_next_line_empty_default;
|
200
|
+
var init_is_next_line_empty = __esm({
|
201
|
+
"src/utils/is-next-line-empty.js"() {
|
202
|
+
init_has_newline();
|
203
|
+
init_skip();
|
204
|
+
init_skip_inline_comment();
|
205
|
+
init_skip_newline();
|
206
|
+
init_skip_trailing_comment();
|
207
|
+
is_next_line_empty_default = isNextLineEmpty;
|
208
|
+
}
|
209
|
+
});
|
210
|
+
|
211
|
+
// src/utils/is-previous-line-empty.js
|
212
|
+
function isPreviousLineEmpty(text, startIndex) {
|
213
|
+
let idx = startIndex - 1;
|
214
|
+
idx = skipSpaces(text, idx, { backwards: true });
|
215
|
+
idx = skip_newline_default(text, idx, { backwards: true });
|
216
|
+
idx = skipSpaces(text, idx, { backwards: true });
|
217
|
+
const idx2 = skip_newline_default(text, idx, { backwards: true });
|
218
|
+
return idx !== idx2;
|
219
|
+
}
|
220
|
+
var is_previous_line_empty_default;
|
221
|
+
var init_is_previous_line_empty = __esm({
|
222
|
+
"src/utils/is-previous-line-empty.js"() {
|
223
|
+
init_skip();
|
224
|
+
init_skip_newline();
|
225
|
+
is_previous_line_empty_default = isPreviousLineEmpty;
|
226
|
+
}
|
227
|
+
});
|
228
|
+
|
229
|
+
// src/main/comments/utils.js
|
230
|
+
function describeNodeForDebugging(node) {
|
231
|
+
const nodeType = node.type || node.kind || "(unknown type)";
|
232
|
+
let nodeName = String(
|
233
|
+
node.name || node.id && (typeof node.id === "object" ? node.id.name : node.id) || node.key && (typeof node.key === "object" ? node.key.name : node.key) || node.value && (typeof node.value === "object" ? "" : String(node.value)) || node.operator || ""
|
234
|
+
);
|
235
|
+
if (nodeName.length > 20) {
|
236
|
+
nodeName = nodeName.slice(0, 19) + "\u2026";
|
237
|
+
}
|
238
|
+
return nodeType + (nodeName ? " " + nodeName : "");
|
239
|
+
}
|
240
|
+
function addCommentHelper(node, comment) {
|
241
|
+
const comments = node.comments ?? (node.comments = []);
|
242
|
+
comments.push(comment);
|
243
|
+
comment.printed = false;
|
244
|
+
comment.nodeDescription = describeNodeForDebugging(node);
|
245
|
+
}
|
246
|
+
function addLeadingComment(node, comment) {
|
247
|
+
comment.leading = true;
|
248
|
+
comment.trailing = false;
|
249
|
+
addCommentHelper(node, comment);
|
250
|
+
}
|
251
|
+
function addDanglingComment(node, comment, marker) {
|
252
|
+
comment.leading = false;
|
253
|
+
comment.trailing = false;
|
254
|
+
if (marker) {
|
255
|
+
comment.marker = marker;
|
256
|
+
}
|
257
|
+
addCommentHelper(node, comment);
|
258
|
+
}
|
259
|
+
function addTrailingComment(node, comment) {
|
260
|
+
comment.leading = false;
|
261
|
+
comment.trailing = true;
|
262
|
+
addCommentHelper(node, comment);
|
263
|
+
}
|
264
|
+
var init_utils = __esm({
|
265
|
+
"src/main/comments/utils.js"() {
|
266
|
+
}
|
267
|
+
});
|
268
|
+
|
269
|
+
// src/utils/get-alignment-size.js
|
270
|
+
function getAlignmentSize(text, tabWidth, startIndex = 0) {
|
271
|
+
let size = 0;
|
272
|
+
for (let i = startIndex; i < text.length; ++i) {
|
273
|
+
if (text[i] === " ") {
|
274
|
+
size = size + tabWidth - size % tabWidth;
|
275
|
+
} else {
|
276
|
+
size++;
|
277
|
+
}
|
278
|
+
}
|
279
|
+
return size;
|
280
|
+
}
|
281
|
+
var get_alignment_size_default;
|
282
|
+
var init_get_alignment_size = __esm({
|
283
|
+
"src/utils/get-alignment-size.js"() {
|
284
|
+
get_alignment_size_default = getAlignmentSize;
|
285
|
+
}
|
286
|
+
});
|
287
|
+
|
288
|
+
// src/utils/get-indent-size.js
|
289
|
+
function getIndentSize(value, tabWidth) {
|
290
|
+
const lastNewlineIndex = value.lastIndexOf("\n");
|
291
|
+
if (lastNewlineIndex === -1) {
|
292
|
+
return 0;
|
293
|
+
}
|
294
|
+
return get_alignment_size_default(
|
295
|
+
// All the leading whitespaces
|
296
|
+
value.slice(lastNewlineIndex + 1).match(/^[\t ]*/u)[0],
|
297
|
+
tabWidth
|
298
|
+
);
|
299
|
+
}
|
300
|
+
var get_indent_size_default;
|
301
|
+
var init_get_indent_size = __esm({
|
302
|
+
"src/utils/get-indent-size.js"() {
|
303
|
+
init_get_alignment_size();
|
304
|
+
get_indent_size_default = getIndentSize;
|
305
|
+
}
|
306
|
+
});
|
307
|
+
|
308
|
+
// node_modules/escape-string-regexp/index.js
|
309
|
+
function escapeStringRegexp(string) {
|
310
|
+
if (typeof string !== "string") {
|
311
|
+
throw new TypeError("Expected a string");
|
312
|
+
}
|
313
|
+
return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
314
|
+
}
|
315
|
+
var init_escape_string_regexp = __esm({
|
316
|
+
"node_modules/escape-string-regexp/index.js"() {
|
317
|
+
}
|
318
|
+
});
|
319
|
+
|
320
|
+
// src/utils/get-max-continuous-count.js
|
321
|
+
function getMaxContinuousCount(text, searchString) {
|
322
|
+
const results = text.match(
|
323
|
+
new RegExp(`(${escapeStringRegexp(searchString)})+`, "gu")
|
324
|
+
);
|
325
|
+
if (results === null) {
|
326
|
+
return 0;
|
327
|
+
}
|
328
|
+
return results.reduce(
|
329
|
+
(maxCount, result) => Math.max(maxCount, result.length / searchString.length),
|
330
|
+
0
|
331
|
+
);
|
332
|
+
}
|
333
|
+
var get_max_continuous_count_default;
|
334
|
+
var init_get_max_continuous_count = __esm({
|
335
|
+
"src/utils/get-max-continuous-count.js"() {
|
336
|
+
init_escape_string_regexp();
|
337
|
+
get_max_continuous_count_default = getMaxContinuousCount;
|
338
|
+
}
|
339
|
+
});
|
340
|
+
|
341
|
+
// src/utils/get-next-non-space-non-comment-character.js
|
342
|
+
function getNextNonSpaceNonCommentCharacter(text, startIndex) {
|
343
|
+
const index = get_next_non_space_non_comment_character_index_default(text, startIndex);
|
344
|
+
return index === false ? "" : text.charAt(index);
|
345
|
+
}
|
346
|
+
var get_next_non_space_non_comment_character_default;
|
347
|
+
var init_get_next_non_space_non_comment_character = __esm({
|
348
|
+
"src/utils/get-next-non-space-non-comment-character.js"() {
|
349
|
+
init_get_next_non_space_non_comment_character_index();
|
350
|
+
get_next_non_space_non_comment_character_default = getNextNonSpaceNonCommentCharacter;
|
351
|
+
}
|
352
|
+
});
|
353
|
+
|
354
|
+
// node_modules/emoji-regex/index.mjs
|
355
|
+
var emoji_regex_default;
|
356
|
+
var init_emoji_regex = __esm({
|
357
|
+
"node_modules/emoji-regex/index.mjs"() {
|
358
|
+
emoji_regex_default = () => {
|
359
|
+
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](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\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(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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-\uDDF5\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](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\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(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\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;
|
360
|
+
};
|
361
|
+
}
|
362
|
+
});
|
363
|
+
|
364
|
+
// node_modules/get-east-asian-width/lookup.js
|
365
|
+
function isFullWidth(x) {
|
366
|
+
return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510;
|
367
|
+
}
|
368
|
+
function isWide(x) {
|
369
|
+
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 >= 9800 && x <= 9811 || x === 9855 || 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 <= 12771 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 19903 || x >= 19968 && 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 >= 101632 && 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 === 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 <= 129672 || x >= 129680 && x <= 129725 || x >= 129727 && x <= 129733 || x >= 129742 && x <= 129755 || x >= 129760 && x <= 129768 || x >= 129776 && x <= 129784 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141;
|
370
|
+
}
|
371
|
+
var init_lookup = __esm({
|
372
|
+
"node_modules/get-east-asian-width/lookup.js"() {
|
373
|
+
}
|
374
|
+
});
|
375
|
+
|
376
|
+
// node_modules/get-east-asian-width/index.js
|
377
|
+
var _isNarrowWidth;
|
378
|
+
var init_get_east_asian_width = __esm({
|
379
|
+
"node_modules/get-east-asian-width/index.js"() {
|
380
|
+
init_lookup();
|
381
|
+
_isNarrowWidth = (codePoint) => !(isFullWidth(codePoint) || isWide(codePoint));
|
382
|
+
}
|
383
|
+
});
|
384
|
+
|
385
|
+
// src/utils/get-string-width.js
|
386
|
+
function getStringWidth(text) {
|
387
|
+
if (!text) {
|
388
|
+
return 0;
|
389
|
+
}
|
390
|
+
if (!notAsciiRegex.test(text)) {
|
391
|
+
return text.length;
|
392
|
+
}
|
393
|
+
text = text.replace(emoji_regex_default(), " ");
|
394
|
+
let width = 0;
|
395
|
+
for (const character of text) {
|
396
|
+
const codePoint = character.codePointAt(0);
|
397
|
+
if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) {
|
398
|
+
continue;
|
399
|
+
}
|
400
|
+
if (codePoint >= 768 && codePoint <= 879) {
|
401
|
+
continue;
|
402
|
+
}
|
403
|
+
width += _isNarrowWidth(codePoint) ? 1 : 2;
|
404
|
+
}
|
405
|
+
return width;
|
406
|
+
}
|
407
|
+
var notAsciiRegex, get_string_width_default;
|
408
|
+
var init_get_string_width = __esm({
|
409
|
+
"src/utils/get-string-width.js"() {
|
410
|
+
init_emoji_regex();
|
411
|
+
init_get_east_asian_width();
|
412
|
+
notAsciiRegex = /[^\x20-\x7F]/u;
|
413
|
+
get_string_width_default = getStringWidth;
|
414
|
+
}
|
415
|
+
});
|
416
|
+
|
417
|
+
// src/utils/has-newline-in-range.js
|
418
|
+
function hasNewlineInRange(text, startIndex, endIndex) {
|
419
|
+
for (let i = startIndex; i < endIndex; ++i) {
|
420
|
+
if (text.charAt(i) === "\n") {
|
421
|
+
return true;
|
422
|
+
}
|
423
|
+
}
|
424
|
+
return false;
|
425
|
+
}
|
426
|
+
var has_newline_in_range_default;
|
427
|
+
var init_has_newline_in_range = __esm({
|
428
|
+
"src/utils/has-newline-in-range.js"() {
|
429
|
+
has_newline_in_range_default = hasNewlineInRange;
|
430
|
+
}
|
431
|
+
});
|
432
|
+
|
433
|
+
// src/utils/has-spaces.js
|
434
|
+
function hasSpaces(text, startIndex, options = {}) {
|
435
|
+
const idx = skipSpaces(
|
436
|
+
text,
|
437
|
+
options.backwards ? startIndex - 1 : startIndex,
|
438
|
+
options
|
439
|
+
);
|
440
|
+
return idx !== startIndex;
|
441
|
+
}
|
442
|
+
var has_spaces_default;
|
443
|
+
var init_has_spaces = __esm({
|
444
|
+
"src/utils/has-spaces.js"() {
|
445
|
+
init_skip();
|
446
|
+
has_spaces_default = hasSpaces;
|
447
|
+
}
|
448
|
+
});
|
449
|
+
|
450
|
+
// scripts/build/shims/string-replace-all.js
|
451
|
+
var stringReplaceAll, string_replace_all_default;
|
452
|
+
var init_string_replace_all = __esm({
|
453
|
+
"scripts/build/shims/string-replace-all.js"() {
|
454
|
+
stringReplaceAll = (isOptionalObject, original, pattern, replacement) => {
|
455
|
+
if (isOptionalObject && (original === void 0 || original === null)) {
|
456
|
+
return;
|
457
|
+
}
|
458
|
+
if (original.replaceAll) {
|
459
|
+
return original.replaceAll(pattern, replacement);
|
460
|
+
}
|
461
|
+
if (pattern.global) {
|
462
|
+
return original.replace(pattern, replacement);
|
463
|
+
}
|
464
|
+
return original.split(pattern).join(replacement);
|
465
|
+
};
|
466
|
+
string_replace_all_default = stringReplaceAll;
|
467
|
+
}
|
468
|
+
});
|
469
|
+
|
470
|
+
// src/utils/make-string.js
|
471
|
+
function makeString(rawText, enclosingQuote, unescapeUnnecessaryEscapes) {
|
472
|
+
const otherQuote = enclosingQuote === '"' ? "'" : '"';
|
473
|
+
const regex = /\\(.)|(["'])/gsu;
|
474
|
+
const raw = string_replace_all_default(
|
475
|
+
/* isOptionalObject */
|
476
|
+
false,
|
477
|
+
rawText,
|
478
|
+
regex,
|
479
|
+
(match, escaped, quote) => {
|
480
|
+
if (escaped === otherQuote) {
|
481
|
+
return escaped;
|
482
|
+
}
|
483
|
+
if (quote === enclosingQuote) {
|
484
|
+
return "\\" + quote;
|
485
|
+
}
|
486
|
+
if (quote) {
|
487
|
+
return quote;
|
488
|
+
}
|
489
|
+
return unescapeUnnecessaryEscapes && /^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(escaped) ? escaped : "\\" + escaped;
|
490
|
+
}
|
491
|
+
);
|
492
|
+
return enclosingQuote + raw + enclosingQuote;
|
493
|
+
}
|
494
|
+
var make_string_default;
|
495
|
+
var init_make_string = __esm({
|
496
|
+
"src/utils/make-string.js"() {
|
497
|
+
init_string_replace_all();
|
498
|
+
make_string_default = makeString;
|
499
|
+
}
|
500
|
+
});
|
501
|
+
|
502
|
+
// src/utils/public.js
|
503
|
+
var public_exports = {};
|
504
|
+
__export(public_exports, {
|
505
|
+
addDanglingComment: () => addDanglingComment,
|
506
|
+
addLeadingComment: () => addLeadingComment,
|
507
|
+
addTrailingComment: () => addTrailingComment,
|
508
|
+
getAlignmentSize: () => get_alignment_size_default,
|
509
|
+
getIndentSize: () => get_indent_size_default,
|
510
|
+
getMaxContinuousCount: () => get_max_continuous_count_default,
|
511
|
+
getNextNonSpaceNonCommentCharacter: () => get_next_non_space_non_comment_character_default,
|
512
|
+
getNextNonSpaceNonCommentCharacterIndex: () => getNextNonSpaceNonCommentCharacterIndex2,
|
513
|
+
getStringWidth: () => get_string_width_default,
|
514
|
+
hasNewline: () => has_newline_default,
|
515
|
+
hasNewlineInRange: () => has_newline_in_range_default,
|
516
|
+
hasSpaces: () => has_spaces_default,
|
517
|
+
isNextLineEmpty: () => isNextLineEmpty2,
|
518
|
+
isNextLineEmptyAfterIndex: () => is_next_line_empty_default,
|
519
|
+
isPreviousLineEmpty: () => isPreviousLineEmpty2,
|
520
|
+
makeString: () => make_string_default,
|
521
|
+
skip: () => skip,
|
522
|
+
skipEverythingButNewLine: () => skipEverythingButNewLine,
|
523
|
+
skipInlineComment: () => skip_inline_comment_default,
|
524
|
+
skipNewline: () => skip_newline_default,
|
525
|
+
skipSpaces: () => skipSpaces,
|
526
|
+
skipToLineEnd: () => skipToLineEnd,
|
527
|
+
skipTrailingComment: () => skip_trailing_comment_default,
|
528
|
+
skipWhitespace: () => skipWhitespace
|
529
|
+
});
|
530
|
+
function legacyGetNextNonSpaceNonCommentCharacterIndex(text, node, locEnd) {
|
531
|
+
return get_next_non_space_non_comment_character_index_default(
|
532
|
+
text,
|
533
|
+
locEnd(node)
|
534
|
+
);
|
535
|
+
}
|
536
|
+
function getNextNonSpaceNonCommentCharacterIndex2(text, startIndex) {
|
537
|
+
return arguments.length === 2 || typeof startIndex === "number" ? get_next_non_space_non_comment_character_index_default(text, startIndex) : (
|
538
|
+
// @ts-expect-error -- expected
|
539
|
+
// eslint-disable-next-line prefer-rest-params
|
540
|
+
legacyGetNextNonSpaceNonCommentCharacterIndex(...arguments)
|
541
|
+
);
|
542
|
+
}
|
543
|
+
function legacyIsPreviousLineEmpty(text, node, locStart) {
|
544
|
+
return is_previous_line_empty_default(text, locStart(node));
|
545
|
+
}
|
546
|
+
function isPreviousLineEmpty2(text, startIndex) {
|
547
|
+
return arguments.length === 2 || typeof startIndex === "number" ? is_previous_line_empty_default(text, startIndex) : (
|
548
|
+
// @ts-expect-error -- expected
|
549
|
+
// eslint-disable-next-line prefer-rest-params
|
550
|
+
legacyIsPreviousLineEmpty(...arguments)
|
551
|
+
);
|
552
|
+
}
|
553
|
+
function legacyIsNextLineEmpty(text, node, locEnd) {
|
554
|
+
return is_next_line_empty_default(text, locEnd(node));
|
555
|
+
}
|
556
|
+
function isNextLineEmpty2(text, startIndex) {
|
557
|
+
return arguments.length === 2 || typeof startIndex === "number" ? is_next_line_empty_default(text, startIndex) : (
|
558
|
+
// @ts-expect-error -- expected
|
559
|
+
// eslint-disable-next-line prefer-rest-params
|
560
|
+
legacyIsNextLineEmpty(...arguments)
|
561
|
+
);
|
562
|
+
}
|
563
|
+
var init_public = __esm({
|
564
|
+
"src/utils/public.js"() {
|
565
|
+
init_get_next_non_space_non_comment_character_index();
|
566
|
+
init_is_next_line_empty();
|
567
|
+
init_is_previous_line_empty();
|
568
|
+
init_utils();
|
569
|
+
init_get_alignment_size();
|
570
|
+
init_get_indent_size();
|
571
|
+
init_get_max_continuous_count();
|
572
|
+
init_get_next_non_space_non_comment_character();
|
573
|
+
init_get_string_width();
|
574
|
+
init_has_newline();
|
575
|
+
init_has_newline_in_range();
|
576
|
+
init_has_spaces();
|
577
|
+
init_make_string();
|
578
|
+
init_skip();
|
579
|
+
init_skip_inline_comment();
|
580
|
+
init_skip_newline();
|
581
|
+
init_skip_trailing_comment();
|
582
|
+
}
|
583
|
+
});
|
584
|
+
|
585
|
+
// src/main/version.evaluate.cjs
|
586
|
+
var require_version_evaluate = __commonJS({
|
587
|
+
"src/main/version.evaluate.cjs"(exports2, module2) {
|
588
|
+
module2.exports = "3.3.3";
|
589
|
+
}
|
590
|
+
});
|
591
|
+
|
592
|
+
// src/index.cjs
|
593
|
+
var prettierPromise = import("./index.mjs");
|
594
|
+
var functionNames = [
|
595
|
+
"formatWithCursor",
|
596
|
+
"format",
|
597
|
+
"check",
|
598
|
+
"resolveConfig",
|
599
|
+
"resolveConfigFile",
|
600
|
+
"clearConfigCache",
|
601
|
+
"getFileInfo",
|
602
|
+
"getSupportInfo"
|
603
|
+
];
|
604
|
+
var prettier = /* @__PURE__ */ Object.create(null);
|
605
|
+
for (const name of functionNames) {
|
606
|
+
prettier[name] = async (...args) => {
|
607
|
+
const prettier2 = await prettierPromise;
|
608
|
+
return prettier2[name](...args);
|
609
|
+
};
|
610
|
+
}
|
611
|
+
var debugApiFunctionNames = [
|
612
|
+
"parse",
|
613
|
+
"formatAST",
|
614
|
+
"formatDoc",
|
615
|
+
"printToDoc",
|
616
|
+
"printDocToString"
|
617
|
+
];
|
618
|
+
var debugApis = /* @__PURE__ */ Object.create(null);
|
619
|
+
for (const name of debugApiFunctionNames) {
|
620
|
+
debugApis[name] = async (...args) => {
|
621
|
+
const prettier2 = await prettierPromise;
|
622
|
+
return prettier2.__debug[name](...args);
|
623
|
+
};
|
624
|
+
}
|
625
|
+
prettier.__debug = debugApis;
|
626
|
+
if (true) {
|
627
|
+
prettier.util = (init_public(), __toCommonJS(public_exports));
|
628
|
+
prettier.doc = require("./doc.js");
|
629
|
+
} else {
|
630
|
+
Object.defineProperties(prettier, {
|
631
|
+
util: {
|
632
|
+
get() {
|
633
|
+
throw new Error(
|
634
|
+
"prettier.util is not available in development CommonJS version"
|
635
|
+
);
|
636
|
+
}
|
637
|
+
},
|
638
|
+
doc: {
|
639
|
+
get() {
|
640
|
+
throw new Error(
|
641
|
+
"prettier.doc is not available in development CommonJS version"
|
642
|
+
);
|
643
|
+
}
|
644
|
+
}
|
645
|
+
});
|
646
|
+
}
|
647
|
+
prettier.version = require_version_evaluate();
|
648
|
+
module.exports = prettier;
|