prettier 3.5.0 → 3.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/THIRD-PARTY-NOTICES.md +8 -8
- package/index.cjs +1 -1
- package/index.d.ts +7 -2
- package/index.mjs +6 -4
- package/internal/cli.mjs +20 -8
- package/package.json +1 -17
- package/plugins/estree.js +1 -1
- package/plugins/estree.mjs +1 -1
- package/plugins/html.js +1 -1
- package/plugins/html.mjs +1 -1
- package/plugins/postcss.js +6 -6
- package/plugins/postcss.mjs +6 -6
- package/plugins/typescript.js +1 -1
- package/plugins/typescript.mjs +1 -1
- package/plugins/yaml.js +1 -1
- package/plugins/yaml.mjs +1 -1
- package/standalone.d.ts +1 -1
- package/standalone.js +2 -2
- package/standalone.mjs +2 -2
package/README.md
CHANGED
package/THIRD-PARTY-NOTICES.md
CHANGED
|
@@ -102,7 +102,7 @@ Author: The Babel Team (https://babel.dev/team)
|
|
|
102
102
|
|
|
103
103
|
----------------------------------------
|
|
104
104
|
|
|
105
|
-
## @babel/parser@v7.26.
|
|
105
|
+
## @babel/parser@v7.26.9
|
|
106
106
|
|
|
107
107
|
> A JavaScript parser
|
|
108
108
|
|
|
@@ -133,7 +133,7 @@ Author: The Babel Team (https://babel.dev/team)
|
|
|
133
133
|
|
|
134
134
|
----------------------------------------
|
|
135
135
|
|
|
136
|
-
## @glimmer/syntax@v0.94.
|
|
136
|
+
## @glimmer/syntax@v0.94.7
|
|
137
137
|
|
|
138
138
|
License: MIT
|
|
139
139
|
Repository: <git+https://github.com/glimmerjs/glimmer-vm.git>
|
|
@@ -160,7 +160,7 @@ Repository: <git+https://github.com/glimmerjs/glimmer-vm.git>
|
|
|
160
160
|
|
|
161
161
|
----------------------------------------
|
|
162
162
|
|
|
163
|
-
## @glimmer/util@v0.94.
|
|
163
|
+
## @glimmer/util@v0.94.6
|
|
164
164
|
|
|
165
165
|
> Common utilities used in Glimmer
|
|
166
166
|
|
|
@@ -189,7 +189,7 @@ Repository: <git+https://github.com/glimmerjs/glimmer-vm.git>
|
|
|
189
189
|
|
|
190
190
|
----------------------------------------
|
|
191
191
|
|
|
192
|
-
## @glimmer/wire-format@v0.94.
|
|
192
|
+
## @glimmer/wire-format@v0.94.6
|
|
193
193
|
|
|
194
194
|
License: MIT
|
|
195
195
|
Repository: <git+https://github.com/glimmerjs/glimmer-vm.git>
|
|
@@ -414,7 +414,7 @@ Author: Alex Bell <alex@bellandwhistle.net>
|
|
|
414
414
|
|
|
415
415
|
----------------------------------------
|
|
416
416
|
|
|
417
|
-
## @typescript-eslint/types@v8.
|
|
417
|
+
## @typescript-eslint/types@v8.24.1
|
|
418
418
|
|
|
419
419
|
> Types for the TypeScript-ESTree AST spec
|
|
420
420
|
|
|
@@ -446,7 +446,7 @@ Repository: <https://github.com/typescript-eslint/typescript-eslint.git>
|
|
|
446
446
|
|
|
447
447
|
----------------------------------------
|
|
448
448
|
|
|
449
|
-
## @typescript-eslint/typescript-estree@v8.
|
|
449
|
+
## @typescript-eslint/typescript-estree@v8.24.1
|
|
450
450
|
|
|
451
451
|
> A parser that converts TypeScript source code into an ESTree compatible form
|
|
452
452
|
|
|
@@ -2947,7 +2947,7 @@ Author: typicode
|
|
|
2947
2947
|
|
|
2948
2948
|
----------------------------------------
|
|
2949
2949
|
|
|
2950
|
-
## postcss@v8.5.
|
|
2950
|
+
## postcss@v8.5.3
|
|
2951
2951
|
|
|
2952
2952
|
> Tool for transforming styles with JS plugins
|
|
2953
2953
|
|
|
@@ -3692,7 +3692,7 @@ Contributors:
|
|
|
3692
3692
|
|
|
3693
3693
|
----------------------------------------
|
|
3694
3694
|
|
|
3695
|
-
## ts-api-utils@v2.0.
|
|
3695
|
+
## ts-api-utils@v2.0.1
|
|
3696
3696
|
|
|
3697
3697
|
> Utility functions for working with TypeScript's API. Successor to the wonderful tsutils. 🛠️️
|
|
3698
3698
|
|
package/index.cjs
CHANGED
package/index.d.ts
CHANGED
|
@@ -429,6 +429,11 @@ export interface RequiredOptions extends doc.printer.Options {
|
|
|
429
429
|
* @default false
|
|
430
430
|
*/
|
|
431
431
|
singleAttributePerLine: boolean;
|
|
432
|
+
/**
|
|
433
|
+
* Where to print operators when binary expressions wrap lines.
|
|
434
|
+
* @default "end"
|
|
435
|
+
*/
|
|
436
|
+
experimentalOperatorPosition: "start" | "end";
|
|
432
437
|
/**
|
|
433
438
|
* Use curious ternaries, with the question mark after the condition, instead
|
|
434
439
|
* of on the same line as the consequent.
|
|
@@ -573,7 +578,7 @@ export interface CursorResult {
|
|
|
573
578
|
}
|
|
574
579
|
|
|
575
580
|
/**
|
|
576
|
-
* `format` is used to format text using Prettier. [Options](https://prettier.io/docs/
|
|
581
|
+
* `format` is used to format text using Prettier. [Options](https://prettier.io/docs/options) may be provided to override the defaults.
|
|
577
582
|
*/
|
|
578
583
|
export function format(source: string, options?: Options): Promise<string>;
|
|
579
584
|
|
|
@@ -622,7 +627,7 @@ export interface ResolveConfigOptions {
|
|
|
622
627
|
*
|
|
623
628
|
* A promise is returned which will resolve to:
|
|
624
629
|
*
|
|
625
|
-
* - An options object, providing a [config file](https://prettier.io/docs/
|
|
630
|
+
* - An options object, providing a [config file](https://prettier.io/docs/configuration) was found.
|
|
626
631
|
* - `null`, if no file was found.
|
|
627
632
|
*
|
|
628
633
|
* The promise will be rejected if there was an error parsing the configuration file.
|
package/index.mjs
CHANGED
|
@@ -6419,9 +6419,9 @@ var require_yallist = __commonJS({
|
|
|
6419
6419
|
}
|
|
6420
6420
|
});
|
|
6421
6421
|
|
|
6422
|
-
// node_modules/lru-cache/index.js
|
|
6422
|
+
// node_modules/editorconfig/node_modules/lru-cache/index.js
|
|
6423
6423
|
var require_lru_cache = __commonJS({
|
|
6424
|
-
"node_modules/lru-cache/index.js"(exports, module) {
|
|
6424
|
+
"node_modules/editorconfig/node_modules/lru-cache/index.js"(exports, module) {
|
|
6425
6425
|
"use strict";
|
|
6426
6426
|
module.exports = LRUCache;
|
|
6427
6427
|
var Map2 = require_map();
|
|
@@ -20019,7 +20019,7 @@ async function printEmbeddedLanguages(path13, genericPrint, options8, printAstTo
|
|
|
20019
20019
|
}
|
|
20020
20020
|
if (embed.length > 2) {
|
|
20021
20021
|
throw new Error(
|
|
20022
|
-
"printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/
|
|
20022
|
+
"printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed"
|
|
20023
20023
|
);
|
|
20024
20024
|
}
|
|
20025
20025
|
const getVisitorKeys = create_get_visitor_keys_function_default(
|
|
@@ -21719,6 +21719,8 @@ var languages_evaluate_default8 = [
|
|
|
21719
21719
|
"vscodeLanguageIds": [
|
|
21720
21720
|
"yaml",
|
|
21721
21721
|
"ansible",
|
|
21722
|
+
"dockercompose",
|
|
21723
|
+
"github-actions-workflow",
|
|
21722
21724
|
"home-assistant"
|
|
21723
21725
|
]
|
|
21724
21726
|
}
|
|
@@ -21922,7 +21924,7 @@ var object_omit_default = omit;
|
|
|
21922
21924
|
import * as doc from "./doc.mjs";
|
|
21923
21925
|
|
|
21924
21926
|
// src/main/version.evaluate.cjs
|
|
21925
|
-
var version_evaluate_default = "3.5.
|
|
21927
|
+
var version_evaluate_default = "3.5.2";
|
|
21926
21928
|
|
|
21927
21929
|
// src/utils/public.js
|
|
21928
21930
|
var public_exports = {};
|
package/internal/cli.mjs
CHANGED
|
@@ -1573,7 +1573,7 @@ async function logResolvedConfigPathOrDie(context) {
|
|
|
1573
1573
|
var find_config_path_default = logResolvedConfigPathOrDie;
|
|
1574
1574
|
|
|
1575
1575
|
// src/cli/format.js
|
|
1576
|
-
import
|
|
1576
|
+
import fs8 from "fs/promises";
|
|
1577
1577
|
import path11 from "path";
|
|
1578
1578
|
import * as prettier from "../index.mjs";
|
|
1579
1579
|
|
|
@@ -1905,6 +1905,7 @@ var find_cache_file_default = findCacheFile;
|
|
|
1905
1905
|
|
|
1906
1906
|
// src/cli/format-results-cache.js
|
|
1907
1907
|
var import_fast_json_stable_stringify2 = __toESM(require_fast_json_stable_stringify(), 1);
|
|
1908
|
+
import fs7 from "fs";
|
|
1908
1909
|
|
|
1909
1910
|
// node_modules/file-entry-cache/dist/index.js
|
|
1910
1911
|
import crypto2 from "crypto";
|
|
@@ -3755,11 +3756,22 @@ var FormatResultsCache = class {
|
|
|
3755
3756
|
constructor(cacheFileLocation, cacheStrategy) {
|
|
3756
3757
|
__privateAdd(this, _fileEntryCache);
|
|
3757
3758
|
const useChecksum = cacheStrategy === "content";
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3759
|
+
try {
|
|
3760
|
+
__privateSet(this, _fileEntryCache, FileEntryDefault.createFromFile(
|
|
3761
|
+
/* filePath */
|
|
3762
|
+
cacheFileLocation,
|
|
3763
|
+
useChecksum
|
|
3764
|
+
));
|
|
3765
|
+
} catch {
|
|
3766
|
+
if (fs7.existsSync(cacheFileLocation)) {
|
|
3767
|
+
fs7.unlinkSync(cacheFileLocation);
|
|
3768
|
+
__privateSet(this, _fileEntryCache, FileEntryDefault.createFromFile(
|
|
3769
|
+
/* filePath */
|
|
3770
|
+
cacheFileLocation,
|
|
3771
|
+
useChecksum
|
|
3772
|
+
));
|
|
3773
|
+
}
|
|
3774
|
+
}
|
|
3763
3775
|
}
|
|
3764
3776
|
/**
|
|
3765
3777
|
* @param {string} filePath
|
|
@@ -4143,7 +4155,7 @@ async function formatFiles(context) {
|
|
|
4143
4155
|
} else if (!context.argv.cacheLocation) {
|
|
4144
4156
|
const stat = await statSafe(cacheFilePath);
|
|
4145
4157
|
if (stat) {
|
|
4146
|
-
await
|
|
4158
|
+
await fs8.unlink(cacheFilePath);
|
|
4147
4159
|
}
|
|
4148
4160
|
}
|
|
4149
4161
|
for await (const { error, filename, ignoreUnknown } of expandPatterns(
|
|
@@ -4172,7 +4184,7 @@ async function formatFiles(context) {
|
|
|
4172
4184
|
}
|
|
4173
4185
|
let input;
|
|
4174
4186
|
try {
|
|
4175
|
-
input = await
|
|
4187
|
+
input = await fs8.readFile(filename, "utf8");
|
|
4176
4188
|
} catch (error2) {
|
|
4177
4189
|
context.logger.log("");
|
|
4178
4190
|
context.logger.error(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prettier",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.2",
|
|
4
4
|
"description": "Prettier is an opinionated code formatter",
|
|
5
5
|
"bin": "./bin/prettier.cjs",
|
|
6
6
|
"repository": "prettier/prettier",
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
|
16
16
|
"types": "./index.d.ts",
|
|
17
|
-
"module-sync": "./index.mjs",
|
|
18
17
|
"require": "./index.cjs",
|
|
19
18
|
"browser": {
|
|
20
19
|
"import": "./standalone.mjs",
|
|
@@ -25,91 +24,76 @@
|
|
|
25
24
|
"./*": "./*",
|
|
26
25
|
"./doc": {
|
|
27
26
|
"types": "./doc.d.ts",
|
|
28
|
-
"module-sync": "./doc.mjs",
|
|
29
27
|
"require": "./doc.js",
|
|
30
28
|
"default": "./doc.mjs"
|
|
31
29
|
},
|
|
32
30
|
"./standalone": {
|
|
33
31
|
"types": "./standalone.d.ts",
|
|
34
|
-
"module-sync": "./standalone.mjs",
|
|
35
32
|
"require": "./standalone.js",
|
|
36
33
|
"default": "./standalone.mjs"
|
|
37
34
|
},
|
|
38
35
|
"./plugins/estree": {
|
|
39
36
|
"types": "./plugins/estree.d.ts",
|
|
40
|
-
"module-sync": "./plugins/estree.mjs",
|
|
41
37
|
"require": "./plugins/estree.js",
|
|
42
38
|
"default": "./plugins/estree.mjs"
|
|
43
39
|
},
|
|
44
40
|
"./plugins/babel": {
|
|
45
41
|
"types": "./plugins/babel.d.ts",
|
|
46
|
-
"module-sync": "./plugins/babel.mjs",
|
|
47
42
|
"require": "./plugins/babel.js",
|
|
48
43
|
"default": "./plugins/babel.mjs"
|
|
49
44
|
},
|
|
50
45
|
"./plugins/flow": {
|
|
51
46
|
"types": "./plugins/flow.d.ts",
|
|
52
|
-
"module-sync": "./plugins/flow.mjs",
|
|
53
47
|
"require": "./plugins/flow.js",
|
|
54
48
|
"default": "./plugins/flow.mjs"
|
|
55
49
|
},
|
|
56
50
|
"./plugins/typescript": {
|
|
57
51
|
"types": "./plugins/typescript.d.ts",
|
|
58
|
-
"module-sync": "./plugins/typescript.mjs",
|
|
59
52
|
"require": "./plugins/typescript.js",
|
|
60
53
|
"default": "./plugins/typescript.mjs"
|
|
61
54
|
},
|
|
62
55
|
"./plugins/acorn": {
|
|
63
56
|
"types": "./plugins/acorn.d.ts",
|
|
64
|
-
"module-sync": "./plugins/acorn.mjs",
|
|
65
57
|
"require": "./plugins/acorn.js",
|
|
66
58
|
"default": "./plugins/acorn.mjs"
|
|
67
59
|
},
|
|
68
60
|
"./plugins/meriyah": {
|
|
69
61
|
"types": "./plugins/meriyah.d.ts",
|
|
70
|
-
"module-sync": "./plugins/meriyah.mjs",
|
|
71
62
|
"require": "./plugins/meriyah.js",
|
|
72
63
|
"default": "./plugins/meriyah.mjs"
|
|
73
64
|
},
|
|
74
65
|
"./plugins/angular": {
|
|
75
66
|
"types": "./plugins/angular.d.ts",
|
|
76
|
-
"module-sync": "./plugins/angular.mjs",
|
|
77
67
|
"require": "./plugins/angular.js",
|
|
78
68
|
"default": "./plugins/angular.mjs"
|
|
79
69
|
},
|
|
80
70
|
"./plugins/postcss": {
|
|
81
71
|
"types": "./plugins/postcss.d.ts",
|
|
82
|
-
"module-sync": "./plugins/postcss.mjs",
|
|
83
72
|
"require": "./plugins/postcss.js",
|
|
84
73
|
"default": "./plugins/postcss.mjs"
|
|
85
74
|
},
|
|
86
75
|
"./plugins/graphql": {
|
|
87
76
|
"types": "./plugins/graphql.d.ts",
|
|
88
|
-
"module-sync": "./plugins/graphql.mjs",
|
|
89
77
|
"require": "./plugins/graphql.js",
|
|
90
78
|
"default": "./plugins/graphql.mjs"
|
|
91
79
|
},
|
|
92
80
|
"./plugins/markdown": {
|
|
93
81
|
"types": "./plugins/markdown.d.ts",
|
|
94
|
-
"module-sync": "./plugins/markdown.mjs",
|
|
95
82
|
"require": "./plugins/markdown.js",
|
|
96
83
|
"default": "./plugins/markdown.mjs"
|
|
97
84
|
},
|
|
98
85
|
"./plugins/glimmer": {
|
|
99
86
|
"types": "./plugins/glimmer.d.ts",
|
|
100
|
-
"module-sync": "./plugins/glimmer.mjs",
|
|
101
87
|
"require": "./plugins/glimmer.js",
|
|
102
88
|
"default": "./plugins/glimmer.mjs"
|
|
103
89
|
},
|
|
104
90
|
"./plugins/html": {
|
|
105
91
|
"types": "./plugins/html.d.ts",
|
|
106
|
-
"module-sync": "./plugins/html.mjs",
|
|
107
92
|
"require": "./plugins/html.js",
|
|
108
93
|
"default": "./plugins/html.mjs"
|
|
109
94
|
},
|
|
110
95
|
"./plugins/yaml": {
|
|
111
96
|
"types": "./plugins/yaml.d.ts",
|
|
112
|
-
"module-sync": "./plugins/yaml.mjs",
|
|
113
97
|
"require": "./plugins/yaml.js",
|
|
114
98
|
"default": "./plugins/yaml.mjs"
|
|
115
99
|
},
|
package/plugins/estree.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
`)return t-2;if(s===`
|
|
3
3
|
`||s==="\r"||s==="\u2028"||s==="\u2029")return t-1}else{if(s==="\r"&&e.charAt(t+1)===`
|
|
4
4
|
`)return t+2;if(s===`
|
|
5
|
-
`||s==="\r"||s==="\u2028"||s==="\u2029")return t+1}return t}var Ne=so;function uo(e,t,r={}){let n=Ye(e,r.backwards?t-1:t,r),s=Ne(e,n,r);return n!==s}var Z=uo;function io(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;r<e.length;++r)if(e.charAt(r)==="*"&&e.charAt(r+1)==="/")return r+2}return t}var Ot=io;function ao(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?Zs(e,t):t}var _t=ao;function oo(e,t){let r=null,n=t;for(;n!==r;)r=n,n=zs(e,n),n=Ot(e,n),n=Ye(e,n);return n=_t(e,n),n=Ne(e,n),n!==!1&&Z(e,n)}var vt=oo;function po(e){return Array.isArray(e)&&e.length>0}var O=po;var eu=new Proxy(()=>{},{get:()=>eu}),jt=eu;var xr="'",tu='"';function co(e,t){let r=t===!0||t===xr?xr:tu,n=r===xr?tu:xr,s=0,u=0;for(let i of e)i===r?s++:i===n&&u++;return s>u?n:r}var hr=co;function lo(e,t,r){let n=t==='"'?"'":'"',u=N(!1,e,/\\(.)|(["'])/gsu,(i,a,o)=>a===n?a:o===t?"\\"+o:o||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(a)?a:"\\"+a));return t+u+t}var ru=lo;function mo(e,t){jt(/^(?<quote>["']).*\k<quote>$/su.test(e));let r=e.slice(1,-1),n=t.parser==="json"||t.parser==="jsonc"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":hr(r,t.singleQuote);return e.charAt(0)===n?e:ru(r,n,!1)}var rt=mo;function q(e){var n,s,u;let t=((n=e.range)==null?void 0:n[0])??e.start,r=(u=((s=e.declaration)==null?void 0:s.decorators)??e.decorators)==null?void 0:u[0];return r?Math.min(q(r),t):t}function k(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function bt(e,t){let r=q(e);return Number.isInteger(r)&&r===q(t)}function yo(e,t){let r=k(e);return Number.isInteger(r)&&r===k(t)}function nu(e,t){return bt(e,t)&&yo(e,t)}var er=null;function tr(e){if(er!==null&&typeof er.property){let t=er;return er=tr.prototype=null,t}return er=tr.prototype=e??Object.create(null),new tr}var Do=10;for(let e=0;e<=Do;e++)tr();function wn(e){return tr(e)}function fo(e,t="type"){wn(e);function r(n){let s=n[t],u=e[s];if(!Array.isArray(u))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return u}return r}var gr=fo;var su={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","predicate","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","variance","key","typeAnnotation","value"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","variance","key","typeAnnotation","value"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["qualification","id"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeParameters","typeArguments","attributes"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","nameType","typeAnnotation"],TSTemplateLiteralType:["quasis","types"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumBody:["members"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","options","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]};var Eo=gr(su),Sr=Eo;function Fo(e){let t=new Set(e);return r=>t.has(r==null?void 0:r.type)}var R=Fo;var Co=R(["Block","CommentBlock","MultiLine"]),ee=Co;var Ao=R(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),Br=Ao;function To(e,t){let r=t.split(".");for(let n=r.length-1;n>=0;n--){let s=r[n];if(n===0)return e.type==="Identifier"&&e.name===s;if(e.type!=="MemberExpression"||e.optional||e.computed||e.property.type!=="Identifier"||e.property.name!==s)return!1;e=e.object}}function xo(e,t){return t.some(r=>To(e,r))}var uu=xo;function ho({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var br=ho;function nr(e,t){return t(e)||Hs(e,{getVisitorKeys:Sr,predicate:t})}function Rt(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||L(e)||W(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||Ae(e)||e.type==="TSNonNullExpression"||e.type==="ChainExpression"}function ou(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function kr(e){if(e.expressions)return["expressions",0];if(e.left)return["left"];if(e.test)return["test"];if(e.object)return["object"];if(e.callee)return["callee"];if(e.tag)return["tag"];if(e.argument)return["argument"];if(e.expression)return["expression"];throw new Error("Unexpected node has no left side.")}var Ct=R(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),pu=R(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),Y=R(["ArrayExpression","TupleExpression"]),se=R(["ObjectExpression","RecordExpression"]);function cu(e){return e.type==="LogicalExpression"&&e.operator==="??"}function Fe(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function Mn(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&Fe(e.argument)}function te(e){return!!(e&&(e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"))}function Rn(e){return e.type==="RegExpLiteral"||e.type==="Literal"&&!!e.regex}var Ir=R(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),go=R(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier"]),Me=R(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),Mt=R(["FunctionExpression","ArrowFunctionExpression"]);function So(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function On(e){return L(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var X=R(["JSXElement","JSXFragment"]);function Pt(e){return e.method&&e.kind==="init"||e.kind==="get"||e.kind==="set"}function Lr(e){return(e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&!e.static&&!e.method&&e.kind!=="get"&&e.kind!=="set"&&e.value.type==="FunctionTypeAnnotation"}function lu(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!bt(e,e.typeAnnotation)}var De=R(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function At(e){return W(e)||e.type==="BindExpression"&&!!e.object}var Bo=R(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function Jt(e){return br(e)||Br(e)||Bo(e)||(e.type==="GenericTypeAnnotation"||e.type==="TSTypeReference")&&!e.typeParameters&&!e.typeArguments}function bo(e){return e.type==="Identifier"&&(e.name==="beforeEach"||e.name==="beforeAll"||e.name==="afterEach"||e.name==="afterAll")}var Po=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.step","test.describe","test.describe.only","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function ko(e){return uu(e,Po)}function kt(e,t){if((e==null?void 0:e.type)!=="CallExpression"||e.optional)return!1;let r=pe(e);if(r.length===1){if(On(e)&&kt(t))return Mt(r[0]);if(bo(e.callee))return On(r[0])}else if((r.length===2||r.length===3)&&(r[0].type==="TemplateLiteral"||te(r[0]))&&ko(e.callee))return r[2]&&!Fe(r[2])?!1:(r.length===2?Mt(r[1]):So(r[1])&&z(r[1]).length<=1)||On(r[1]);return!1}var mu=e=>t=>((t==null?void 0:t.type)==="ChainExpression"&&(t=t.expression),e(t)),L=mu(R(["CallExpression","OptionalCallExpression"])),W=mu(R(["MemberExpression","OptionalMemberExpression"]));function Jn(e,t=5){return yu(e,t)<=t}function yu(e,t){let r=0;for(let n in e){let s=e[n];if(s&&typeof s=="object"&&typeof s.type=="string"&&(r++,r+=yu(s,t-r)),r>t)return r}return r}var Io=.25;function sr(e,t){let{printWidth:r}=t;if(T(e))return!1;let n=r*Io;if(e.type==="ThisExpression"||e.type==="Identifier"&&e.name.length<=n||Mn(e)&&!T(e.argument))return!0;let s=e.type==="Literal"&&"regex"in e&&e.regex.pattern||e.type==="RegExpLiteral"&&e.pattern;return s?s.length<=n:te(e)?rt(fe(e),t).length<=n:e.type==="TemplateLiteral"?e.expressions.length===0&&e.quasis[0].value.raw.length<=n&&!e.quasis[0].value.raw.includes(`
|
|
5
|
+
`||s==="\r"||s==="\u2028"||s==="\u2029")return t+1}return t}var Ne=so;function uo(e,t,r={}){let n=Ye(e,r.backwards?t-1:t,r),s=Ne(e,n,r);return n!==s}var Z=uo;function io(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;r<e.length;++r)if(e.charAt(r)==="*"&&e.charAt(r+1)==="/")return r+2}return t}var Ot=io;function ao(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?Zs(e,t):t}var _t=ao;function oo(e,t){let r=null,n=t;for(;n!==r;)r=n,n=zs(e,n),n=Ot(e,n),n=Ye(e,n);return n=_t(e,n),n=Ne(e,n),n!==!1&&Z(e,n)}var vt=oo;function po(e){return Array.isArray(e)&&e.length>0}var O=po;var eu=new Proxy(()=>{},{get:()=>eu}),jt=eu;var xr="'",tu='"';function co(e,t){let r=t===!0||t===xr?xr:tu,n=r===xr?tu:xr,s=0,u=0;for(let i of e)i===r?s++:i===n&&u++;return s>u?n:r}var hr=co;function lo(e,t,r){let n=t==='"'?"'":'"',u=N(!1,e,/\\(.)|(["'])/gsu,(i,a,o)=>a===n?a:o===t?"\\"+o:o||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(a)?a:"\\"+a));return t+u+t}var ru=lo;function mo(e,t){jt.ok(/^(?<quote>["']).*\k<quote>$/su.test(e));let r=e.slice(1,-1),n=t.parser==="json"||t.parser==="jsonc"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":hr(r,t.singleQuote);return e.charAt(0)===n?e:ru(r,n,!1)}var rt=mo;function q(e){var n,s,u;let t=((n=e.range)==null?void 0:n[0])??e.start,r=(u=((s=e.declaration)==null?void 0:s.decorators)??e.decorators)==null?void 0:u[0];return r?Math.min(q(r),t):t}function k(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function bt(e,t){let r=q(e);return Number.isInteger(r)&&r===q(t)}function yo(e,t){let r=k(e);return Number.isInteger(r)&&r===k(t)}function nu(e,t){return bt(e,t)&&yo(e,t)}var er=null;function tr(e){if(er!==null&&typeof er.property){let t=er;return er=tr.prototype=null,t}return er=tr.prototype=e??Object.create(null),new tr}var Do=10;for(let e=0;e<=Do;e++)tr();function wn(e){return tr(e)}function fo(e,t="type"){wn(e);function r(n){let s=n[t],u=e[s];if(!Array.isArray(u))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return u}return r}var gr=fo;var su={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","predicate","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","variance","key","typeAnnotation","value"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","variance","key","typeAnnotation","value"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["qualification","id"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeParameters","typeArguments","attributes"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","nameType","typeAnnotation"],TSTemplateLiteralType:["quasis","types"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumBody:["members"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","options","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]};var Eo=gr(su),Sr=Eo;function Fo(e){let t=new Set(e);return r=>t.has(r==null?void 0:r.type)}var R=Fo;var Co=R(["Block","CommentBlock","MultiLine"]),ee=Co;var Ao=R(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),Br=Ao;function To(e,t){let r=t.split(".");for(let n=r.length-1;n>=0;n--){let s=r[n];if(n===0)return e.type==="Identifier"&&e.name===s;if(e.type!=="MemberExpression"||e.optional||e.computed||e.property.type!=="Identifier"||e.property.name!==s)return!1;e=e.object}}function xo(e,t){return t.some(r=>To(e,r))}var uu=xo;function ho({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var br=ho;function nr(e,t){return t(e)||Hs(e,{getVisitorKeys:Sr,predicate:t})}function Rt(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||L(e)||W(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||Ae(e)||e.type==="TSNonNullExpression"||e.type==="ChainExpression"}function ou(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function kr(e){if(e.expressions)return["expressions",0];if(e.left)return["left"];if(e.test)return["test"];if(e.object)return["object"];if(e.callee)return["callee"];if(e.tag)return["tag"];if(e.argument)return["argument"];if(e.expression)return["expression"];throw new Error("Unexpected node has no left side.")}var Ct=R(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),pu=R(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),Y=R(["ArrayExpression","TupleExpression"]),se=R(["ObjectExpression","RecordExpression"]);function cu(e){return e.type==="LogicalExpression"&&e.operator==="??"}function Fe(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function Mn(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&Fe(e.argument)}function te(e){return!!(e&&(e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"))}function Rn(e){return e.type==="RegExpLiteral"||e.type==="Literal"&&!!e.regex}var Ir=R(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),go=R(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier"]),Me=R(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),Mt=R(["FunctionExpression","ArrowFunctionExpression"]);function So(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function On(e){return L(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var X=R(["JSXElement","JSXFragment"]);function Pt(e){return e.method&&e.kind==="init"||e.kind==="get"||e.kind==="set"}function Lr(e){return(e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&!e.static&&!e.method&&e.kind!=="get"&&e.kind!=="set"&&e.value.type==="FunctionTypeAnnotation"}function lu(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!bt(e,e.typeAnnotation)}var De=R(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function At(e){return W(e)||e.type==="BindExpression"&&!!e.object}var Bo=R(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function Jt(e){return br(e)||Br(e)||Bo(e)||(e.type==="GenericTypeAnnotation"||e.type==="TSTypeReference")&&!e.typeParameters&&!e.typeArguments}function bo(e){return e.type==="Identifier"&&(e.name==="beforeEach"||e.name==="beforeAll"||e.name==="afterEach"||e.name==="afterAll")}var Po=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.step","test.describe","test.describe.only","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function ko(e){return uu(e,Po)}function kt(e,t){if((e==null?void 0:e.type)!=="CallExpression"||e.optional)return!1;let r=pe(e);if(r.length===1){if(On(e)&&kt(t))return Mt(r[0]);if(bo(e.callee))return On(r[0])}else if((r.length===2||r.length===3)&&(r[0].type==="TemplateLiteral"||te(r[0]))&&ko(e.callee))return r[2]&&!Fe(r[2])?!1:(r.length===2?Mt(r[1]):So(r[1])&&z(r[1]).length<=1)||On(r[1]);return!1}var mu=e=>t=>((t==null?void 0:t.type)==="ChainExpression"&&(t=t.expression),e(t)),L=mu(R(["CallExpression","OptionalCallExpression"])),W=mu(R(["MemberExpression","OptionalMemberExpression"]));function Jn(e,t=5){return yu(e,t)<=t}function yu(e,t){let r=0;for(let n in e){let s=e[n];if(s&&typeof s=="object"&&typeof s.type=="string"&&(r++,r+=yu(s,t-r)),r>t)return r}return r}var Io=.25;function sr(e,t){let{printWidth:r}=t;if(T(e))return!1;let n=r*Io;if(e.type==="ThisExpression"||e.type==="Identifier"&&e.name.length<=n||Mn(e)&&!T(e.argument))return!0;let s=e.type==="Literal"&&"regex"in e&&e.regex.pattern||e.type==="RegExpLiteral"&&e.pattern;return s?s.length<=n:te(e)?rt(fe(e),t).length<=n:e.type==="TemplateLiteral"?e.expressions.length===0&&e.quasis[0].value.raw.length<=n&&!e.quasis[0].value.raw.includes(`
|
|
6
6
|
`):e.type==="UnaryExpression"?sr(e.argument,{printWidth:r}):e.type==="CallExpression"&&e.arguments.length===0&&e.callee.type==="Identifier"?e.callee.name.length<=n-2:Ir(e)}function Le(e,t){return X(t)?It(t):T(t,h.Leading,r=>Z(e,k(r)))}function iu(e){return e.quasis.some(t=>t.value.raw.includes(`
|
|
7
7
|
`))}function wr(e,t){return(e.type==="TemplateLiteral"&&iu(e)||e.type==="TaggedTemplateExpression"&&iu(e.quasi))&&!Z(t,q(e),{backwards:!0})}function Or(e){if(!T(e))return!1;let t=M(!1,ct(e,h.Dangling),-1);return t&&!ee(t)}function Du(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(Mt(r)){if(t+=1,t>1)return!0}else if(L(r)){for(let n of pe(r))if(Mt(n))return!0}return!1}function _r(e){let{node:t,parent:r,key:n}=e;return n==="callee"&&L(t)&&L(r)&&r.arguments.length>0&&t.arguments.length>r.arguments.length}var Lo=new Set(["!","-","+","~"]);function Ie(e,t=2){if(t<=0)return!1;if(e.type==="ChainExpression"||e.type==="TSNonNullExpression")return Ie(e.expression,t);let r=n=>Ie(n,t-1);if(Rn(e))return tt(e.pattern??e.regex.pattern)<=5;if(Ir(e)||go(e)||e.type==="ArgumentPlaceholder")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(n=>!n.value.raw.includes(`
|
|
8
8
|
`))&&e.expressions.every(r);if(se(e))return e.properties.every(n=>!n.computed&&(n.shorthand||n.value&&r(n.value)));if(Y(e))return e.elements.every(n=>n===null||r(n));if(lt(e)){if(e.type==="ImportExpression"||Ie(e.callee,t)){let n=pe(e);return n.length<=t&&n.every(r)}return!1}return W(e)?Ie(e.object,t)&&Ie(e.property,t):e.type==="UnaryExpression"&&Lo.has(e.operator)||e.type==="UpdateExpression"?Ie(e.argument,t):!1}function fe(e){var t;return((t=e.extra)==null?void 0:t.raw)??e.raw}function fu(e){return e}function oe(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function ae(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return ae(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return ae(e.object,t);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:ae(e.tag,t);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:ae(e.callee,t);case"ConditionalExpression":return ae(e.test,t);case"UpdateExpression":return!e.prefix&&ae(e.argument,t);case"BindExpression":return e.object&&ae(e.object,t);case"SequenceExpression":return ae(e.expressions[0],t);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return ae(e.expression,t);default:return t(e)}}var au={"==":!0,"!=":!0,"===":!0,"!==":!0},Pr={"*":!0,"/":!0,"%":!0},jn={">>":!0,">>>":!0,"<<":!0};function ur(e,t){return!(rr(t)!==rr(e)||e==="**"||au[e]&&au[t]||t==="%"&&Pr[e]||e==="%"&&Pr[t]||t!==e&&Pr[t]&&Pr[e]||jn[e]&&jn[t])}var wo=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(r=>[r,t])));function rr(e){return wo.get(e)}function Eu(e){return!!jn[e]||e==="|"||e==="^"||e==="&"}function Fu(e){var r;if(e.rest)return!0;let t=z(e);return((r=M(!1,t,-1))==null?void 0:r.type)==="RestElement"}var _n=new WeakMap;function z(e){if(_n.has(e))return _n.get(e);let t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push(...e.parameters):Array.isArray(e.params)&&t.push(...e.params),e.rest&&t.push(e.rest),_n.set(e,t),t}function Cu(e,t){let{node:r}=e,n=0,s=u=>t(u,n++);r.this&&e.call(s,"this"),Array.isArray(r.parameters)?e.each(s,"parameters"):Array.isArray(r.params)&&e.each(s,"params"),r.rest&&e.call(s,"rest")}var vn=new WeakMap;function pe(e){if(vn.has(e))return vn.get(e);if(e.type==="ChainExpression")return pe(e.expression);let t=e.arguments;return e.type==="ImportExpression"&&(t=[e.source],e.options&&t.push(e.options)),vn.set(e,t),t}function qt(e,t){let{node:r}=e;if(r.type==="ChainExpression")return e.call(()=>qt(e,t),"expression");r.type==="ImportExpression"?(e.call(n=>t(n,0),"source"),r.options&&e.call(n=>t(n,1),"options")):e.each(t,"arguments")}function qn(e,t){let r=[];if(e.type==="ChainExpression"&&(e=e.expression,r.push("expression")),e.type==="ImportExpression"){if(t===0||t===(e.options?-2:-1))return[...r,"source"];if(e.options&&(t===1||t===-1))return[...r,"options"];throw new RangeError("Invalid argument index")}if(t<0&&(t=e.arguments.length+t),t<0||t>=e.arguments.length)throw new RangeError("Invalid argument index");return[...r,"arguments",t]}function ir(e){return e.value.trim()==="prettier-ignore"&&!e.unignore}function It(e){return(e==null?void 0:e.prettierIgnore)||T(e,h.PrettierIgnore)}var h={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},Au=(e,t)=>{if(typeof e=="function"&&(t=e,e=0),e||t)return(r,n,s)=>!(e&h.Leading&&!r.leading||e&h.Trailing&&!r.trailing||e&h.Dangling&&(r.leading||r.trailing)||e&h.Block&&!ee(r)||e&h.Line&&!Ct(r)||e&h.First&&n!==0||e&h.Last&&n!==s.length-1||e&h.PrettierIgnore&&!ir(r)||t&&!t(r))};function T(e,t,r){if(!O(e==null?void 0:e.comments))return!1;let n=Au(t,r);return n?e.comments.some(n):!0}function ct(e,t,r){if(!Array.isArray(e==null?void 0:e.comments))return[];let n=Au(t,r);return n?e.comments.filter(n):e.comments}var ce=(e,{originalText:t})=>vt(t,k(e));function lt(e){return L(e)||e.type==="NewExpression"||e.type==="ImportExpression"}function Ce(e){return e&&(e.type==="ObjectProperty"||e.type==="Property"&&!Pt(e))}var Ae=R(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),Xe=R(["UnionTypeAnnotation","TSUnionType"]),vr=R(["IntersectionTypeAnnotation","TSIntersectionType"]);var Oo=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),Wt=e=>{for(let t of e.quasis)delete t.value};function Tu(e,t,r){var s,u;if(e.type==="Program"&&delete t.sourceType,(e.type==="BigIntLiteral"||e.type==="BigIntLiteralTypeAnnotation")&&e.value&&(t.value=e.value.toLowerCase()),(e.type==="BigIntLiteral"||e.type==="Literal")&&e.bigint&&(t.bigint=e.bigint.toLowerCase()),e.type==="EmptyStatement"||e.type==="JSXText"||e.type==="JSXExpressionContainer"&&(e.expression.type==="Literal"||e.expression.type==="StringLiteral")&&e.expression.value===" ")return null;if((e.type==="Property"||e.type==="ObjectProperty"||e.type==="MethodDefinition"||e.type==="ClassProperty"||e.type==="ClassMethod"||e.type==="PropertyDefinition"||e.type==="TSDeclareMethod"||e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty"||e.type==="ImportAttribute")&&e.key&&!e.computed){let{key:i}=e;te(i)||Fe(i)?t.key=String(i.value):i.type==="Identifier"&&(t.key=i.name)}if(e.type==="JSXElement"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(i=>i.type==="JSXAttribute"&&i.name.name==="jsx"))for(let{type:i,expression:a}of t.children)i==="JSXExpressionContainer"&&a.type==="TemplateLiteral"&&Wt(a);e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&Wt(t.value.expression),e.type==="JSXAttribute"&&((s=e.value)==null?void 0:s.type)==="Literal"&&/["']|"|'/u.test(e.value.value)&&(t.value.value=N(!1,e.value.value,/["']|"|'/gu,'"'));let n=e.expression||e.callee;if(e.type==="Decorator"&&n.type==="CallExpression"&&n.callee.name==="Component"&&n.arguments.length===1){let i=e.expression.arguments[0].properties;for(let[a,o]of t.expression.arguments[0].properties.entries())switch(i[a].key.name){case"styles":Y(o.value)&&Wt(o.value.elements[0]);break;case"template":o.value.type==="TemplateLiteral"&&Wt(o.value);break}}e.type==="TaggedTemplateExpression"&&(e.tag.type==="MemberExpression"||e.tag.type==="Identifier"&&(e.tag.name==="gql"||e.tag.name==="graphql"||e.tag.name==="css"||e.tag.name==="md"||e.tag.name==="markdown"||e.tag.name==="html")||e.tag.type==="CallExpression")&&Wt(t.quasi),e.type==="TemplateLiteral"&&((u=e.leadingComments)!=null&&u.some(a=>ee(a)&&["GraphQL","HTML"].some(o=>a.value===` ${o} `))||r.type==="CallExpression"&&r.callee.name==="graphql"||!e.leadingComments)&&Wt(t),e.type==="ChainExpression"&&e.expression.type==="TSNonNullExpression"&&(t.type="TSNonNullExpression",t.expression.type="ChainExpression"),e.type==="TSMappedType"&&(delete t.key,delete t.constraint),e.type==="TSEnumDeclaration"&&delete t.body}Tu.ignoredProperties=Oo;var du=Tu;var Re="string",he="array",nt="cursor",He="indent",Ve="align",$e="trim",me="group",we="fill",Te="if-break",Ke="indent-if-break",Qe="line-suffix",Je="line-suffix-boundary",ie="line",ge="label",Oe="break-parent",jr=new Set([nt,He,Ve,$e,me,we,Te,Ke,Qe,Je,ie,ge,Oe]);function _o(e){if(typeof e=="string")return Re;if(Array.isArray(e))return he;if(!e)return;let{type:t}=e;if(jr.has(t))return t}var Se=_o;var vo=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function jo(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
|