prettier 2.8.0 → 2.8.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/LICENSE +76 -21
- package/README.md +3 -3
- package/bin-prettier.js +3 -1
- package/cli.js +413 -185
- package/esm/parser-angular.mjs +1 -1
- package/esm/parser-babel.mjs +21 -21
- package/esm/parser-espree.mjs +18 -18
- package/esm/parser-flow.mjs +26 -26
- package/esm/parser-glimmer.mjs +4 -4
- package/esm/parser-graphql.mjs +1 -1
- package/esm/parser-html.mjs +16 -16
- package/esm/parser-markdown.mjs +48 -48
- package/esm/parser-meriyah.mjs +13 -13
- package/esm/parser-postcss.mjs +57 -57
- package/esm/parser-typescript.mjs +39 -39
- package/esm/parser-yaml.mjs +13 -13
- package/esm/standalone.mjs +75 -75
- package/index.js +639 -302
- package/package.json +1 -1
- package/parser-babel.js +18 -18
- package/parser-espree.js +17 -17
- package/parser-flow.js +26 -26
- package/parser-glimmer.js +3 -3
- package/parser-html.js +20 -20
- package/parser-markdown.js +47 -47
- package/parser-meriyah.js +13 -13
- package/parser-postcss.js +56 -56
- package/parser-typescript.js +39 -39
- package/parser-yaml.js +13 -13
- package/standalone.js +72 -72
- package/third-party.js +5 -5
package/index.js
CHANGED
|
@@ -97,13 +97,10 @@ var require_function_uncurry_this = __commonJS({
|
|
|
97
97
|
"node_modules/core-js/internals/function-uncurry-this.js"(exports2, module2) {
|
|
98
98
|
var NATIVE_BIND = require_function_bind_native();
|
|
99
99
|
var FunctionPrototype = Function.prototype;
|
|
100
|
-
var bind = FunctionPrototype.bind;
|
|
101
100
|
var call = FunctionPrototype.call;
|
|
102
|
-
var
|
|
103
|
-
module2.exports = NATIVE_BIND ? function(fn) {
|
|
104
|
-
return
|
|
105
|
-
} : function(fn) {
|
|
106
|
-
return fn && function() {
|
|
101
|
+
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
|
|
102
|
+
module2.exports = NATIVE_BIND ? uncurryThisWithBind : function(fn) {
|
|
103
|
+
return function() {
|
|
107
104
|
return call.apply(fn, arguments);
|
|
108
105
|
};
|
|
109
106
|
};
|
|
@@ -125,28 +122,36 @@ var require_classof_raw = __commonJS({
|
|
|
125
122
|
// node_modules/core-js/internals/indexed-object.js
|
|
126
123
|
var require_indexed_object = __commonJS({
|
|
127
124
|
"node_modules/core-js/internals/indexed-object.js"(exports2, module2) {
|
|
128
|
-
var global2 = require_global();
|
|
129
125
|
var uncurryThis = require_function_uncurry_this();
|
|
130
126
|
var fails = require_fails();
|
|
131
127
|
var classof = require_classof_raw();
|
|
132
|
-
var
|
|
128
|
+
var $Object = Object;
|
|
133
129
|
var split = uncurryThis("".split);
|
|
134
130
|
module2.exports = fails(function() {
|
|
135
|
-
return
|
|
131
|
+
return !$Object("z").propertyIsEnumerable(0);
|
|
136
132
|
}) ? function(it) {
|
|
137
|
-
return classof(it) == "String" ? split(it, "") :
|
|
138
|
-
} :
|
|
133
|
+
return classof(it) == "String" ? split(it, "") : $Object(it);
|
|
134
|
+
} : $Object;
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
// node_modules/core-js/internals/is-null-or-undefined.js
|
|
139
|
+
var require_is_null_or_undefined = __commonJS({
|
|
140
|
+
"node_modules/core-js/internals/is-null-or-undefined.js"(exports2, module2) {
|
|
141
|
+
module2.exports = function(it) {
|
|
142
|
+
return it === null || it === void 0;
|
|
143
|
+
};
|
|
139
144
|
}
|
|
140
145
|
});
|
|
141
146
|
|
|
142
147
|
// node_modules/core-js/internals/require-object-coercible.js
|
|
143
148
|
var require_require_object_coercible = __commonJS({
|
|
144
149
|
"node_modules/core-js/internals/require-object-coercible.js"(exports2, module2) {
|
|
145
|
-
var
|
|
146
|
-
var
|
|
150
|
+
var isNullOrUndefined = require_is_null_or_undefined();
|
|
151
|
+
var $TypeError = TypeError;
|
|
147
152
|
module2.exports = function(it) {
|
|
148
|
-
if (it
|
|
149
|
-
throw
|
|
153
|
+
if (isNullOrUndefined(it))
|
|
154
|
+
throw $TypeError("Can't call method on " + it);
|
|
150
155
|
return it;
|
|
151
156
|
};
|
|
152
157
|
}
|
|
@@ -163,10 +168,26 @@ var require_to_indexed_object = __commonJS({
|
|
|
163
168
|
}
|
|
164
169
|
});
|
|
165
170
|
|
|
171
|
+
// node_modules/core-js/internals/document-all.js
|
|
172
|
+
var require_document_all = __commonJS({
|
|
173
|
+
"node_modules/core-js/internals/document-all.js"(exports2, module2) {
|
|
174
|
+
var documentAll = typeof document == "object" && document.all;
|
|
175
|
+
var IS_HTMLDDA = typeof documentAll == "undefined" && documentAll !== void 0;
|
|
176
|
+
module2.exports = {
|
|
177
|
+
all: documentAll,
|
|
178
|
+
IS_HTMLDDA
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
|
|
166
183
|
// node_modules/core-js/internals/is-callable.js
|
|
167
184
|
var require_is_callable = __commonJS({
|
|
168
185
|
"node_modules/core-js/internals/is-callable.js"(exports2, module2) {
|
|
169
|
-
|
|
186
|
+
var $documentAll = require_document_all();
|
|
187
|
+
var documentAll = $documentAll.all;
|
|
188
|
+
module2.exports = $documentAll.IS_HTMLDDA ? function(argument) {
|
|
189
|
+
return typeof argument == "function" || argument === documentAll;
|
|
190
|
+
} : function(argument) {
|
|
170
191
|
return typeof argument == "function";
|
|
171
192
|
};
|
|
172
193
|
}
|
|
@@ -176,7 +197,11 @@ var require_is_callable = __commonJS({
|
|
|
176
197
|
var require_is_object = __commonJS({
|
|
177
198
|
"node_modules/core-js/internals/is-object.js"(exports2, module2) {
|
|
178
199
|
var isCallable = require_is_callable();
|
|
179
|
-
|
|
200
|
+
var $documentAll = require_document_all();
|
|
201
|
+
var documentAll = $documentAll.all;
|
|
202
|
+
module2.exports = $documentAll.IS_HTMLDDA ? function(it) {
|
|
203
|
+
return typeof it == "object" ? it !== null : isCallable(it) || it === documentAll;
|
|
204
|
+
} : function(it) {
|
|
180
205
|
return typeof it == "object" ? it !== null : isCallable(it);
|
|
181
206
|
};
|
|
182
207
|
}
|
|
@@ -239,9 +264,9 @@ var require_engine_v8_version = __commonJS({
|
|
|
239
264
|
}
|
|
240
265
|
});
|
|
241
266
|
|
|
242
|
-
// node_modules/core-js/internals/
|
|
243
|
-
var
|
|
244
|
-
"node_modules/core-js/internals/
|
|
267
|
+
// node_modules/core-js/internals/symbol-constructor-detection.js
|
|
268
|
+
var require_symbol_constructor_detection = __commonJS({
|
|
269
|
+
"node_modules/core-js/internals/symbol-constructor-detection.js"(exports2, module2) {
|
|
245
270
|
var V8_VERSION = require_engine_v8_version();
|
|
246
271
|
var fails = require_fails();
|
|
247
272
|
module2.exports = !!Object.getOwnPropertySymbols && !fails(function() {
|
|
@@ -254,7 +279,7 @@ var require_native_symbol = __commonJS({
|
|
|
254
279
|
// node_modules/core-js/internals/use-symbol-as-uid.js
|
|
255
280
|
var require_use_symbol_as_uid = __commonJS({
|
|
256
281
|
"node_modules/core-js/internals/use-symbol-as-uid.js"(exports2, module2) {
|
|
257
|
-
var NATIVE_SYMBOL =
|
|
282
|
+
var NATIVE_SYMBOL = require_symbol_constructor_detection();
|
|
258
283
|
module2.exports = NATIVE_SYMBOL && !Symbol.sham && typeof Symbol.iterator == "symbol";
|
|
259
284
|
}
|
|
260
285
|
});
|
|
@@ -262,17 +287,16 @@ var require_use_symbol_as_uid = __commonJS({
|
|
|
262
287
|
// node_modules/core-js/internals/is-symbol.js
|
|
263
288
|
var require_is_symbol = __commonJS({
|
|
264
289
|
"node_modules/core-js/internals/is-symbol.js"(exports2, module2) {
|
|
265
|
-
var global2 = require_global();
|
|
266
290
|
var getBuiltIn = require_get_built_in();
|
|
267
291
|
var isCallable = require_is_callable();
|
|
268
292
|
var isPrototypeOf = require_object_is_prototype_of();
|
|
269
293
|
var USE_SYMBOL_AS_UID = require_use_symbol_as_uid();
|
|
270
|
-
var
|
|
294
|
+
var $Object = Object;
|
|
271
295
|
module2.exports = USE_SYMBOL_AS_UID ? function(it) {
|
|
272
296
|
return typeof it == "symbol";
|
|
273
297
|
} : function(it) {
|
|
274
298
|
var $Symbol = getBuiltIn("Symbol");
|
|
275
|
-
return isCallable($Symbol) && isPrototypeOf($Symbol.prototype,
|
|
299
|
+
return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
|
|
276
300
|
};
|
|
277
301
|
}
|
|
278
302
|
});
|
|
@@ -280,11 +304,10 @@ var require_is_symbol = __commonJS({
|
|
|
280
304
|
// node_modules/core-js/internals/try-to-string.js
|
|
281
305
|
var require_try_to_string = __commonJS({
|
|
282
306
|
"node_modules/core-js/internals/try-to-string.js"(exports2, module2) {
|
|
283
|
-
var
|
|
284
|
-
var String2 = global2.String;
|
|
307
|
+
var $String = String;
|
|
285
308
|
module2.exports = function(argument) {
|
|
286
309
|
try {
|
|
287
|
-
return
|
|
310
|
+
return $String(argument);
|
|
288
311
|
} catch (error) {
|
|
289
312
|
return "Object";
|
|
290
313
|
}
|
|
@@ -295,14 +318,13 @@ var require_try_to_string = __commonJS({
|
|
|
295
318
|
// node_modules/core-js/internals/a-callable.js
|
|
296
319
|
var require_a_callable = __commonJS({
|
|
297
320
|
"node_modules/core-js/internals/a-callable.js"(exports2, module2) {
|
|
298
|
-
var global2 = require_global();
|
|
299
321
|
var isCallable = require_is_callable();
|
|
300
322
|
var tryToString = require_try_to_string();
|
|
301
|
-
var
|
|
323
|
+
var $TypeError = TypeError;
|
|
302
324
|
module2.exports = function(argument) {
|
|
303
325
|
if (isCallable(argument))
|
|
304
326
|
return argument;
|
|
305
|
-
throw
|
|
327
|
+
throw $TypeError(tryToString(argument) + " is not a function");
|
|
306
328
|
};
|
|
307
329
|
}
|
|
308
330
|
});
|
|
@@ -311,9 +333,10 @@ var require_a_callable = __commonJS({
|
|
|
311
333
|
var require_get_method = __commonJS({
|
|
312
334
|
"node_modules/core-js/internals/get-method.js"(exports2, module2) {
|
|
313
335
|
var aCallable = require_a_callable();
|
|
336
|
+
var isNullOrUndefined = require_is_null_or_undefined();
|
|
314
337
|
module2.exports = function(V, P) {
|
|
315
338
|
var func = V[P];
|
|
316
|
-
return func
|
|
339
|
+
return isNullOrUndefined(func) ? void 0 : aCallable(func);
|
|
317
340
|
};
|
|
318
341
|
}
|
|
319
342
|
});
|
|
@@ -321,11 +344,10 @@ var require_get_method = __commonJS({
|
|
|
321
344
|
// node_modules/core-js/internals/ordinary-to-primitive.js
|
|
322
345
|
var require_ordinary_to_primitive = __commonJS({
|
|
323
346
|
"node_modules/core-js/internals/ordinary-to-primitive.js"(exports2, module2) {
|
|
324
|
-
var global2 = require_global();
|
|
325
347
|
var call = require_function_call();
|
|
326
348
|
var isCallable = require_is_callable();
|
|
327
349
|
var isObject = require_is_object();
|
|
328
|
-
var
|
|
350
|
+
var $TypeError = TypeError;
|
|
329
351
|
module2.exports = function(input, pref) {
|
|
330
352
|
var fn, val;
|
|
331
353
|
if (pref === "string" && isCallable(fn = input.toString) && !isObject(val = call(fn, input)))
|
|
@@ -334,7 +356,7 @@ var require_ordinary_to_primitive = __commonJS({
|
|
|
334
356
|
return val;
|
|
335
357
|
if (pref !== "string" && isCallable(fn = input.toString) && !isObject(val = call(fn, input)))
|
|
336
358
|
return val;
|
|
337
|
-
throw
|
|
359
|
+
throw $TypeError("Can't convert object to primitive value");
|
|
338
360
|
};
|
|
339
361
|
}
|
|
340
362
|
});
|
|
@@ -346,9 +368,9 @@ var require_is_pure = __commonJS({
|
|
|
346
368
|
}
|
|
347
369
|
});
|
|
348
370
|
|
|
349
|
-
// node_modules/core-js/internals/
|
|
350
|
-
var
|
|
351
|
-
"node_modules/core-js/internals/
|
|
371
|
+
// node_modules/core-js/internals/define-global-property.js
|
|
372
|
+
var require_define_global_property = __commonJS({
|
|
373
|
+
"node_modules/core-js/internals/define-global-property.js"(exports2, module2) {
|
|
352
374
|
var global2 = require_global();
|
|
353
375
|
var defineProperty = Object.defineProperty;
|
|
354
376
|
module2.exports = function(key, value) {
|
|
@@ -366,9 +388,9 @@ var require_set_global = __commonJS({
|
|
|
366
388
|
var require_shared_store = __commonJS({
|
|
367
389
|
"node_modules/core-js/internals/shared-store.js"(exports2, module2) {
|
|
368
390
|
var global2 = require_global();
|
|
369
|
-
var
|
|
391
|
+
var defineGlobalProperty = require_define_global_property();
|
|
370
392
|
var SHARED = "__core-js_shared__";
|
|
371
|
-
var store = global2[SHARED] ||
|
|
393
|
+
var store = global2[SHARED] || defineGlobalProperty(SHARED, {});
|
|
372
394
|
module2.exports = store;
|
|
373
395
|
}
|
|
374
396
|
});
|
|
@@ -381,10 +403,10 @@ var require_shared = __commonJS({
|
|
|
381
403
|
(module2.exports = function(key, value) {
|
|
382
404
|
return store[key] || (store[key] = value !== void 0 ? value : {});
|
|
383
405
|
})("versions", []).push({
|
|
384
|
-
version: "3.
|
|
406
|
+
version: "3.26.1",
|
|
385
407
|
mode: IS_PURE ? "pure" : "global",
|
|
386
408
|
copyright: "\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",
|
|
387
|
-
license: "https://github.com/zloirock/core-js/blob/v3.
|
|
409
|
+
license: "https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",
|
|
388
410
|
source: "https://github.com/zloirock/core-js"
|
|
389
411
|
});
|
|
390
412
|
}
|
|
@@ -393,11 +415,10 @@ var require_shared = __commonJS({
|
|
|
393
415
|
// node_modules/core-js/internals/to-object.js
|
|
394
416
|
var require_to_object = __commonJS({
|
|
395
417
|
"node_modules/core-js/internals/to-object.js"(exports2, module2) {
|
|
396
|
-
var global2 = require_global();
|
|
397
418
|
var requireObjectCoercible = require_require_object_coercible();
|
|
398
|
-
var
|
|
419
|
+
var $Object = Object;
|
|
399
420
|
module2.exports = function(argument) {
|
|
400
|
-
return
|
|
421
|
+
return $Object(requireObjectCoercible(argument));
|
|
401
422
|
};
|
|
402
423
|
}
|
|
403
424
|
});
|
|
@@ -434,7 +455,7 @@ var require_well_known_symbol = __commonJS({
|
|
|
434
455
|
var shared = require_shared();
|
|
435
456
|
var hasOwn = require_has_own_property();
|
|
436
457
|
var uid = require_uid();
|
|
437
|
-
var NATIVE_SYMBOL =
|
|
458
|
+
var NATIVE_SYMBOL = require_symbol_constructor_detection();
|
|
438
459
|
var USE_SYMBOL_AS_UID = require_use_symbol_as_uid();
|
|
439
460
|
var WellKnownSymbolsStore = shared("wks");
|
|
440
461
|
var Symbol2 = global2.Symbol;
|
|
@@ -459,14 +480,13 @@ var require_well_known_symbol = __commonJS({
|
|
|
459
480
|
// node_modules/core-js/internals/to-primitive.js
|
|
460
481
|
var require_to_primitive = __commonJS({
|
|
461
482
|
"node_modules/core-js/internals/to-primitive.js"(exports2, module2) {
|
|
462
|
-
var global2 = require_global();
|
|
463
483
|
var call = require_function_call();
|
|
464
484
|
var isObject = require_is_object();
|
|
465
485
|
var isSymbol = require_is_symbol();
|
|
466
486
|
var getMethod = require_get_method();
|
|
467
487
|
var ordinaryToPrimitive = require_ordinary_to_primitive();
|
|
468
488
|
var wellKnownSymbol = require_well_known_symbol();
|
|
469
|
-
var
|
|
489
|
+
var $TypeError = TypeError;
|
|
470
490
|
var TO_PRIMITIVE = wellKnownSymbol("toPrimitive");
|
|
471
491
|
module2.exports = function(input, pref) {
|
|
472
492
|
if (!isObject(input) || isSymbol(input))
|
|
@@ -479,7 +499,7 @@ var require_to_primitive = __commonJS({
|
|
|
479
499
|
result = call(exoticToPrim, input, pref);
|
|
480
500
|
if (!isObject(result) || isSymbol(result))
|
|
481
501
|
return result;
|
|
482
|
-
throw
|
|
502
|
+
throw $TypeError("Can't convert object to primitive value");
|
|
483
503
|
}
|
|
484
504
|
if (pref === void 0)
|
|
485
505
|
pref = "number";
|
|
@@ -505,10 +525,10 @@ var require_document_create_element = __commonJS({
|
|
|
505
525
|
"node_modules/core-js/internals/document-create-element.js"(exports2, module2) {
|
|
506
526
|
var global2 = require_global();
|
|
507
527
|
var isObject = require_is_object();
|
|
508
|
-
var
|
|
509
|
-
var EXISTS = isObject(
|
|
528
|
+
var document2 = global2.document;
|
|
529
|
+
var EXISTS = isObject(document2) && isObject(document2.createElement);
|
|
510
530
|
module2.exports = function(it) {
|
|
511
|
-
return EXISTS ?
|
|
531
|
+
return EXISTS ? document2.createElement(it) : {};
|
|
512
532
|
};
|
|
513
533
|
}
|
|
514
534
|
});
|
|
@@ -573,14 +593,13 @@ var require_v8_prototype_define_bug = __commonJS({
|
|
|
573
593
|
// node_modules/core-js/internals/an-object.js
|
|
574
594
|
var require_an_object = __commonJS({
|
|
575
595
|
"node_modules/core-js/internals/an-object.js"(exports2, module2) {
|
|
576
|
-
var global2 = require_global();
|
|
577
596
|
var isObject = require_is_object();
|
|
578
|
-
var
|
|
579
|
-
var
|
|
597
|
+
var $String = String;
|
|
598
|
+
var $TypeError = TypeError;
|
|
580
599
|
module2.exports = function(argument) {
|
|
581
600
|
if (isObject(argument))
|
|
582
601
|
return argument;
|
|
583
|
-
throw
|
|
602
|
+
throw $TypeError($String(argument) + " is not an object");
|
|
584
603
|
};
|
|
585
604
|
}
|
|
586
605
|
});
|
|
@@ -588,13 +607,12 @@ var require_an_object = __commonJS({
|
|
|
588
607
|
// node_modules/core-js/internals/object-define-property.js
|
|
589
608
|
var require_object_define_property = __commonJS({
|
|
590
609
|
"node_modules/core-js/internals/object-define-property.js"(exports2) {
|
|
591
|
-
var global2 = require_global();
|
|
592
610
|
var DESCRIPTORS = require_descriptors();
|
|
593
611
|
var IE8_DOM_DEFINE = require_ie8_dom_define();
|
|
594
612
|
var V8_PROTOTYPE_DEFINE_BUG = require_v8_prototype_define_bug();
|
|
595
613
|
var anObject = require_an_object();
|
|
596
614
|
var toPropertyKey = require_to_property_key();
|
|
597
|
-
var
|
|
615
|
+
var $TypeError = TypeError;
|
|
598
616
|
var $defineProperty = Object.defineProperty;
|
|
599
617
|
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
600
618
|
var ENUMERABLE = "enumerable";
|
|
@@ -626,7 +644,7 @@ var require_object_define_property = __commonJS({
|
|
|
626
644
|
} catch (error) {
|
|
627
645
|
}
|
|
628
646
|
if ("get" in Attributes || "set" in Attributes)
|
|
629
|
-
throw
|
|
647
|
+
throw $TypeError("Accessors not supported");
|
|
630
648
|
if ("value" in Attributes)
|
|
631
649
|
O[P] = Attributes.value;
|
|
632
650
|
return O;
|
|
@@ -649,6 +667,25 @@ var require_create_non_enumerable_property = __commonJS({
|
|
|
649
667
|
}
|
|
650
668
|
});
|
|
651
669
|
|
|
670
|
+
// node_modules/core-js/internals/function-name.js
|
|
671
|
+
var require_function_name = __commonJS({
|
|
672
|
+
"node_modules/core-js/internals/function-name.js"(exports2, module2) {
|
|
673
|
+
var DESCRIPTORS = require_descriptors();
|
|
674
|
+
var hasOwn = require_has_own_property();
|
|
675
|
+
var FunctionPrototype = Function.prototype;
|
|
676
|
+
var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
|
|
677
|
+
var EXISTS = hasOwn(FunctionPrototype, "name");
|
|
678
|
+
var PROPER = EXISTS && function something() {
|
|
679
|
+
}.name === "something";
|
|
680
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS || DESCRIPTORS && getDescriptor(FunctionPrototype, "name").configurable);
|
|
681
|
+
module2.exports = {
|
|
682
|
+
EXISTS,
|
|
683
|
+
PROPER,
|
|
684
|
+
CONFIGURABLE
|
|
685
|
+
};
|
|
686
|
+
}
|
|
687
|
+
});
|
|
688
|
+
|
|
652
689
|
// node_modules/core-js/internals/inspect-source.js
|
|
653
690
|
var require_inspect_source = __commonJS({
|
|
654
691
|
"node_modules/core-js/internals/inspect-source.js"(exports2, module2) {
|
|
@@ -665,14 +702,13 @@ var require_inspect_source = __commonJS({
|
|
|
665
702
|
}
|
|
666
703
|
});
|
|
667
704
|
|
|
668
|
-
// node_modules/core-js/internals/
|
|
669
|
-
var
|
|
670
|
-
"node_modules/core-js/internals/
|
|
705
|
+
// node_modules/core-js/internals/weak-map-basic-detection.js
|
|
706
|
+
var require_weak_map_basic_detection = __commonJS({
|
|
707
|
+
"node_modules/core-js/internals/weak-map-basic-detection.js"(exports2, module2) {
|
|
671
708
|
var global2 = require_global();
|
|
672
709
|
var isCallable = require_is_callable();
|
|
673
|
-
var inspectSource = require_inspect_source();
|
|
674
710
|
var WeakMap2 = global2.WeakMap;
|
|
675
|
-
module2.exports = isCallable(WeakMap2) && /native code/.test(
|
|
711
|
+
module2.exports = isCallable(WeakMap2) && /native code/.test(String(WeakMap2));
|
|
676
712
|
}
|
|
677
713
|
});
|
|
678
714
|
|
|
@@ -698,9 +734,8 @@ var require_hidden_keys = __commonJS({
|
|
|
698
734
|
// node_modules/core-js/internals/internal-state.js
|
|
699
735
|
var require_internal_state = __commonJS({
|
|
700
736
|
"node_modules/core-js/internals/internal-state.js"(exports2, module2) {
|
|
701
|
-
var NATIVE_WEAK_MAP =
|
|
737
|
+
var NATIVE_WEAK_MAP = require_weak_map_basic_detection();
|
|
702
738
|
var global2 = require_global();
|
|
703
|
-
var uncurryThis = require_function_uncurry_this();
|
|
704
739
|
var isObject = require_is_object();
|
|
705
740
|
var createNonEnumerableProperty = require_create_non_enumerable_property();
|
|
706
741
|
var hasOwn = require_has_own_property();
|
|
@@ -727,28 +762,28 @@ var require_internal_state = __commonJS({
|
|
|
727
762
|
};
|
|
728
763
|
if (NATIVE_WEAK_MAP || shared.state) {
|
|
729
764
|
store = shared.state || (shared.state = new WeakMap2());
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
765
|
+
store.get = store.get;
|
|
766
|
+
store.has = store.has;
|
|
767
|
+
store.set = store.set;
|
|
733
768
|
set = function(it, metadata) {
|
|
734
|
-
if (
|
|
735
|
-
throw
|
|
769
|
+
if (store.has(it))
|
|
770
|
+
throw TypeError2(OBJECT_ALREADY_INITIALIZED);
|
|
736
771
|
metadata.facade = it;
|
|
737
|
-
|
|
772
|
+
store.set(it, metadata);
|
|
738
773
|
return metadata;
|
|
739
774
|
};
|
|
740
775
|
get = function(it) {
|
|
741
|
-
return
|
|
776
|
+
return store.get(it) || {};
|
|
742
777
|
};
|
|
743
778
|
has = function(it) {
|
|
744
|
-
return
|
|
779
|
+
return store.has(it);
|
|
745
780
|
};
|
|
746
781
|
} else {
|
|
747
782
|
STATE = sharedKey("state");
|
|
748
783
|
hiddenKeys[STATE] = true;
|
|
749
784
|
set = function(it, metadata) {
|
|
750
785
|
if (hasOwn(it, STATE))
|
|
751
|
-
throw
|
|
786
|
+
throw TypeError2(OBJECT_ALREADY_INITIALIZED);
|
|
752
787
|
metadata.facade = it;
|
|
753
788
|
createNonEnumerableProperty(it, STATE, metadata);
|
|
754
789
|
return metadata;
|
|
@@ -761,9 +796,6 @@ var require_internal_state = __commonJS({
|
|
|
761
796
|
};
|
|
762
797
|
}
|
|
763
798
|
var store;
|
|
764
|
-
var wmget;
|
|
765
|
-
var wmhas;
|
|
766
|
-
var wmset;
|
|
767
799
|
var STATE;
|
|
768
800
|
module2.exports = {
|
|
769
801
|
set,
|
|
@@ -775,86 +807,122 @@ var require_internal_state = __commonJS({
|
|
|
775
807
|
}
|
|
776
808
|
});
|
|
777
809
|
|
|
778
|
-
// node_modules/core-js/internals/
|
|
779
|
-
var
|
|
780
|
-
"node_modules/core-js/internals/
|
|
781
|
-
var
|
|
782
|
-
var hasOwn = require_has_own_property();
|
|
783
|
-
var FunctionPrototype = Function.prototype;
|
|
784
|
-
var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
|
|
785
|
-
var EXISTS = hasOwn(FunctionPrototype, "name");
|
|
786
|
-
var PROPER = EXISTS && function something() {
|
|
787
|
-
}.name === "something";
|
|
788
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS || DESCRIPTORS && getDescriptor(FunctionPrototype, "name").configurable);
|
|
789
|
-
module2.exports = {
|
|
790
|
-
EXISTS,
|
|
791
|
-
PROPER,
|
|
792
|
-
CONFIGURABLE
|
|
793
|
-
};
|
|
794
|
-
}
|
|
795
|
-
});
|
|
796
|
-
|
|
797
|
-
// node_modules/core-js/internals/redefine.js
|
|
798
|
-
var require_redefine = __commonJS({
|
|
799
|
-
"node_modules/core-js/internals/redefine.js"(exports2, module2) {
|
|
800
|
-
var global2 = require_global();
|
|
810
|
+
// node_modules/core-js/internals/make-built-in.js
|
|
811
|
+
var require_make_built_in = __commonJS({
|
|
812
|
+
"node_modules/core-js/internals/make-built-in.js"(exports2, module2) {
|
|
813
|
+
var fails = require_fails();
|
|
801
814
|
var isCallable = require_is_callable();
|
|
802
815
|
var hasOwn = require_has_own_property();
|
|
803
|
-
var
|
|
804
|
-
var
|
|
816
|
+
var DESCRIPTORS = require_descriptors();
|
|
817
|
+
var CONFIGURABLE_FUNCTION_NAME = require_function_name().CONFIGURABLE;
|
|
805
818
|
var inspectSource = require_inspect_source();
|
|
806
819
|
var InternalStateModule = require_internal_state();
|
|
807
|
-
var CONFIGURABLE_FUNCTION_NAME = require_function_name().CONFIGURABLE;
|
|
808
|
-
var getInternalState = InternalStateModule.get;
|
|
809
820
|
var enforceInternalState = InternalStateModule.enforce;
|
|
821
|
+
var getInternalState = InternalStateModule.get;
|
|
822
|
+
var defineProperty = Object.defineProperty;
|
|
823
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function() {
|
|
824
|
+
return defineProperty(function() {
|
|
825
|
+
}, "length", { value: 8 }).length !== 8;
|
|
826
|
+
});
|
|
810
827
|
var TEMPLATE = String(String).split("String");
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
if (
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
}
|
|
828
|
+
var makeBuiltIn = module2.exports = function(value, name, options) {
|
|
829
|
+
if (String(name).slice(0, 7) === "Symbol(") {
|
|
830
|
+
name = "[" + String(name).replace(/^Symbol\(([^)]*)\)/, "$1") + "]";
|
|
831
|
+
}
|
|
832
|
+
if (options && options.getter)
|
|
833
|
+
name = "get " + name;
|
|
834
|
+
if (options && options.setter)
|
|
835
|
+
name = "set " + name;
|
|
836
|
+
if (!hasOwn(value, "name") || CONFIGURABLE_FUNCTION_NAME && value.name !== name) {
|
|
837
|
+
if (DESCRIPTORS)
|
|
838
|
+
defineProperty(value, "name", { value: name, configurable: true });
|
|
839
|
+
else
|
|
840
|
+
value.name = name;
|
|
841
|
+
}
|
|
842
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn(options, "arity") && value.length !== options.arity) {
|
|
843
|
+
defineProperty(value, "length", { value: options.arity });
|
|
828
844
|
}
|
|
829
|
-
|
|
845
|
+
try {
|
|
846
|
+
if (options && hasOwn(options, "constructor") && options.constructor) {
|
|
847
|
+
if (DESCRIPTORS)
|
|
848
|
+
defineProperty(value, "prototype", { writable: false });
|
|
849
|
+
} else if (value.prototype)
|
|
850
|
+
value.prototype = void 0;
|
|
851
|
+
} catch (error) {
|
|
852
|
+
}
|
|
853
|
+
var state = enforceInternalState(value);
|
|
854
|
+
if (!hasOwn(state, "source")) {
|
|
855
|
+
state.source = TEMPLATE.join(typeof name == "string" ? name : "");
|
|
856
|
+
}
|
|
857
|
+
return value;
|
|
858
|
+
};
|
|
859
|
+
Function.prototype.toString = makeBuiltIn(function toString() {
|
|
860
|
+
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
|
861
|
+
}, "toString");
|
|
862
|
+
}
|
|
863
|
+
});
|
|
864
|
+
|
|
865
|
+
// node_modules/core-js/internals/define-built-in.js
|
|
866
|
+
var require_define_built_in = __commonJS({
|
|
867
|
+
"node_modules/core-js/internals/define-built-in.js"(exports2, module2) {
|
|
868
|
+
var isCallable = require_is_callable();
|
|
869
|
+
var definePropertyModule = require_object_define_property();
|
|
870
|
+
var makeBuiltIn = require_make_built_in();
|
|
871
|
+
var defineGlobalProperty = require_define_global_property();
|
|
872
|
+
module2.exports = function(O, key, value, options) {
|
|
873
|
+
if (!options)
|
|
874
|
+
options = {};
|
|
875
|
+
var simple = options.enumerable;
|
|
876
|
+
var name = options.name !== void 0 ? options.name : key;
|
|
877
|
+
if (isCallable(value))
|
|
878
|
+
makeBuiltIn(value, name, options);
|
|
879
|
+
if (options.global) {
|
|
830
880
|
if (simple)
|
|
831
881
|
O[key] = value;
|
|
832
882
|
else
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
883
|
+
defineGlobalProperty(key, value);
|
|
884
|
+
} else {
|
|
885
|
+
try {
|
|
886
|
+
if (!options.unsafe)
|
|
887
|
+
delete O[key];
|
|
888
|
+
else if (O[key])
|
|
889
|
+
simple = true;
|
|
890
|
+
} catch (error) {
|
|
891
|
+
}
|
|
892
|
+
if (simple)
|
|
893
|
+
O[key] = value;
|
|
894
|
+
else
|
|
895
|
+
definePropertyModule.f(O, key, {
|
|
896
|
+
value,
|
|
897
|
+
enumerable: false,
|
|
898
|
+
configurable: !options.nonConfigurable,
|
|
899
|
+
writable: !options.nonWritable
|
|
900
|
+
});
|
|
839
901
|
}
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
902
|
+
return O;
|
|
903
|
+
};
|
|
904
|
+
}
|
|
905
|
+
});
|
|
906
|
+
|
|
907
|
+
// node_modules/core-js/internals/math-trunc.js
|
|
908
|
+
var require_math_trunc = __commonJS({
|
|
909
|
+
"node_modules/core-js/internals/math-trunc.js"(exports2, module2) {
|
|
910
|
+
var ceil = Math.ceil;
|
|
911
|
+
var floor = Math.floor;
|
|
912
|
+
module2.exports = Math.trunc || function trunc(x) {
|
|
913
|
+
var n = +x;
|
|
914
|
+
return (n > 0 ? floor : ceil)(n);
|
|
915
|
+
};
|
|
847
916
|
}
|
|
848
917
|
});
|
|
849
918
|
|
|
850
919
|
// node_modules/core-js/internals/to-integer-or-infinity.js
|
|
851
920
|
var require_to_integer_or_infinity = __commonJS({
|
|
852
921
|
"node_modules/core-js/internals/to-integer-or-infinity.js"(exports2, module2) {
|
|
853
|
-
var
|
|
854
|
-
var floor = Math.floor;
|
|
922
|
+
var trunc = require_math_trunc();
|
|
855
923
|
module2.exports = function(argument) {
|
|
856
924
|
var number = +argument;
|
|
857
|
-
return number !== number || number === 0 ? 0 : (number
|
|
925
|
+
return number !== number || number === 0 ? 0 : trunc(number);
|
|
858
926
|
};
|
|
859
927
|
}
|
|
860
928
|
});
|
|
@@ -1049,8 +1117,8 @@ var require_export = __commonJS({
|
|
|
1049
1117
|
var global2 = require_global();
|
|
1050
1118
|
var getOwnPropertyDescriptor = require_object_get_own_property_descriptor().f;
|
|
1051
1119
|
var createNonEnumerableProperty = require_create_non_enumerable_property();
|
|
1052
|
-
var
|
|
1053
|
-
var
|
|
1120
|
+
var defineBuiltIn = require_define_built_in();
|
|
1121
|
+
var defineGlobalProperty = require_define_global_property();
|
|
1054
1122
|
var copyConstructorProperties = require_copy_constructor_properties();
|
|
1055
1123
|
var isForced = require_is_forced();
|
|
1056
1124
|
module2.exports = function(options, source) {
|
|
@@ -1061,14 +1129,14 @@ var require_export = __commonJS({
|
|
|
1061
1129
|
if (GLOBAL) {
|
|
1062
1130
|
target = global2;
|
|
1063
1131
|
} else if (STATIC) {
|
|
1064
|
-
target = global2[TARGET] ||
|
|
1132
|
+
target = global2[TARGET] || defineGlobalProperty(TARGET, {});
|
|
1065
1133
|
} else {
|
|
1066
1134
|
target = (global2[TARGET] || {}).prototype;
|
|
1067
1135
|
}
|
|
1068
1136
|
if (target)
|
|
1069
1137
|
for (key in source) {
|
|
1070
1138
|
sourceProperty = source[key];
|
|
1071
|
-
if (options.
|
|
1139
|
+
if (options.dontCallGetSet) {
|
|
1072
1140
|
descriptor = getOwnPropertyDescriptor(target, key);
|
|
1073
1141
|
targetProperty = descriptor && descriptor.value;
|
|
1074
1142
|
} else
|
|
@@ -1082,7 +1150,7 @@ var require_export = __commonJS({
|
|
|
1082
1150
|
if (options.sham || targetProperty && targetProperty.sham) {
|
|
1083
1151
|
createNonEnumerableProperty(sourceProperty, "sham", true);
|
|
1084
1152
|
}
|
|
1085
|
-
|
|
1153
|
+
defineBuiltIn(target, key, sourceProperty, options);
|
|
1086
1154
|
}
|
|
1087
1155
|
};
|
|
1088
1156
|
}
|
|
@@ -1098,10 +1166,35 @@ var require_is_array = __commonJS({
|
|
|
1098
1166
|
}
|
|
1099
1167
|
});
|
|
1100
1168
|
|
|
1169
|
+
// node_modules/core-js/internals/does-not-exceed-safe-integer.js
|
|
1170
|
+
var require_does_not_exceed_safe_integer = __commonJS({
|
|
1171
|
+
"node_modules/core-js/internals/does-not-exceed-safe-integer.js"(exports2, module2) {
|
|
1172
|
+
var $TypeError = TypeError;
|
|
1173
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
1174
|
+
module2.exports = function(it) {
|
|
1175
|
+
if (it > MAX_SAFE_INTEGER)
|
|
1176
|
+
throw $TypeError("Maximum allowed index exceeded");
|
|
1177
|
+
return it;
|
|
1178
|
+
};
|
|
1179
|
+
}
|
|
1180
|
+
});
|
|
1181
|
+
|
|
1182
|
+
// node_modules/core-js/internals/function-uncurry-this-clause.js
|
|
1183
|
+
var require_function_uncurry_this_clause = __commonJS({
|
|
1184
|
+
"node_modules/core-js/internals/function-uncurry-this-clause.js"(exports2, module2) {
|
|
1185
|
+
var classofRaw = require_classof_raw();
|
|
1186
|
+
var uncurryThis = require_function_uncurry_this();
|
|
1187
|
+
module2.exports = function(fn) {
|
|
1188
|
+
if (classofRaw(fn) === "Function")
|
|
1189
|
+
return uncurryThis(fn);
|
|
1190
|
+
};
|
|
1191
|
+
}
|
|
1192
|
+
});
|
|
1193
|
+
|
|
1101
1194
|
// node_modules/core-js/internals/function-bind-context.js
|
|
1102
1195
|
var require_function_bind_context = __commonJS({
|
|
1103
1196
|
"node_modules/core-js/internals/function-bind-context.js"(exports2, module2) {
|
|
1104
|
-
var uncurryThis =
|
|
1197
|
+
var uncurryThis = require_function_uncurry_this_clause();
|
|
1105
1198
|
var aCallable = require_a_callable();
|
|
1106
1199
|
var NATIVE_BIND = require_function_bind_native();
|
|
1107
1200
|
var bind = uncurryThis(uncurryThis.bind);
|
|
@@ -1118,11 +1211,10 @@ var require_function_bind_context = __commonJS({
|
|
|
1118
1211
|
var require_flatten_into_array = __commonJS({
|
|
1119
1212
|
"node_modules/core-js/internals/flatten-into-array.js"(exports2, module2) {
|
|
1120
1213
|
"use strict";
|
|
1121
|
-
var global2 = require_global();
|
|
1122
1214
|
var isArray = require_is_array();
|
|
1123
1215
|
var lengthOfArrayLike = require_length_of_array_like();
|
|
1216
|
+
var doesNotExceedSafeInteger = require_does_not_exceed_safe_integer();
|
|
1124
1217
|
var bind = require_function_bind_context();
|
|
1125
|
-
var TypeError2 = global2.TypeError;
|
|
1126
1218
|
var flattenIntoArray = function(target, original, source, sourceLen, start, depth, mapper, thisArg) {
|
|
1127
1219
|
var targetIndex = start;
|
|
1128
1220
|
var sourceIndex = 0;
|
|
@@ -1135,8 +1227,7 @@ var require_flatten_into_array = __commonJS({
|
|
|
1135
1227
|
elementLen = lengthOfArrayLike(element);
|
|
1136
1228
|
targetIndex = flattenIntoArray(target, original, element, elementLen, targetIndex, depth - 1) - 1;
|
|
1137
1229
|
} else {
|
|
1138
|
-
|
|
1139
|
-
throw TypeError2("Exceed the acceptable array length");
|
|
1230
|
+
doesNotExceedSafeInteger(targetIndex + 1);
|
|
1140
1231
|
target[targetIndex] = element;
|
|
1141
1232
|
}
|
|
1142
1233
|
targetIndex++;
|
|
@@ -1163,13 +1254,12 @@ var require_to_string_tag_support = __commonJS({
|
|
|
1163
1254
|
// node_modules/core-js/internals/classof.js
|
|
1164
1255
|
var require_classof = __commonJS({
|
|
1165
1256
|
"node_modules/core-js/internals/classof.js"(exports2, module2) {
|
|
1166
|
-
var global2 = require_global();
|
|
1167
1257
|
var TO_STRING_TAG_SUPPORT = require_to_string_tag_support();
|
|
1168
1258
|
var isCallable = require_is_callable();
|
|
1169
1259
|
var classofRaw = require_classof_raw();
|
|
1170
1260
|
var wellKnownSymbol = require_well_known_symbol();
|
|
1171
1261
|
var TO_STRING_TAG = wellKnownSymbol("toStringTag");
|
|
1172
|
-
var
|
|
1262
|
+
var $Object = Object;
|
|
1173
1263
|
var CORRECT_ARGUMENTS = classofRaw(function() {
|
|
1174
1264
|
return arguments;
|
|
1175
1265
|
}()) == "Arguments";
|
|
@@ -1181,7 +1271,7 @@ var require_classof = __commonJS({
|
|
|
1181
1271
|
};
|
|
1182
1272
|
module2.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function(it) {
|
|
1183
1273
|
var O, tag, result;
|
|
1184
|
-
return it === void 0 ? "Undefined" : it === null ? "Null" : typeof (tag = tryGet(O =
|
|
1274
|
+
return it === void 0 ? "Undefined" : it === null ? "Null" : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == "string" ? tag : CORRECT_ARGUMENTS ? classofRaw(O) : (result = classofRaw(O)) == "Object" && isCallable(O.callee) ? "Arguments" : result;
|
|
1185
1275
|
};
|
|
1186
1276
|
}
|
|
1187
1277
|
});
|
|
@@ -1240,18 +1330,17 @@ var require_is_constructor = __commonJS({
|
|
|
1240
1330
|
// node_modules/core-js/internals/array-species-constructor.js
|
|
1241
1331
|
var require_array_species_constructor = __commonJS({
|
|
1242
1332
|
"node_modules/core-js/internals/array-species-constructor.js"(exports2, module2) {
|
|
1243
|
-
var global2 = require_global();
|
|
1244
1333
|
var isArray = require_is_array();
|
|
1245
1334
|
var isConstructor = require_is_constructor();
|
|
1246
1335
|
var isObject = require_is_object();
|
|
1247
1336
|
var wellKnownSymbol = require_well_known_symbol();
|
|
1248
1337
|
var SPECIES = wellKnownSymbol("species");
|
|
1249
|
-
var
|
|
1338
|
+
var $Array = Array;
|
|
1250
1339
|
module2.exports = function(originalArray) {
|
|
1251
1340
|
var C;
|
|
1252
1341
|
if (isArray(originalArray)) {
|
|
1253
1342
|
C = originalArray.constructor;
|
|
1254
|
-
if (isConstructor(C) && (C ===
|
|
1343
|
+
if (isConstructor(C) && (C === $Array || isArray(C.prototype)))
|
|
1255
1344
|
C = void 0;
|
|
1256
1345
|
else if (isObject(C)) {
|
|
1257
1346
|
C = C[SPECIES];
|
|
@@ -1259,7 +1348,7 @@ var require_array_species_constructor = __commonJS({
|
|
|
1259
1348
|
C = void 0;
|
|
1260
1349
|
}
|
|
1261
1350
|
}
|
|
1262
|
-
return C === void 0 ?
|
|
1351
|
+
return C === void 0 ? $Array : C;
|
|
1263
1352
|
};
|
|
1264
1353
|
}
|
|
1265
1354
|
});
|
|
@@ -1323,11 +1412,12 @@ var require_get_iterator_method = __commonJS({
|
|
|
1323
1412
|
"node_modules/core-js/internals/get-iterator-method.js"(exports2, module2) {
|
|
1324
1413
|
var classof = require_classof();
|
|
1325
1414
|
var getMethod = require_get_method();
|
|
1415
|
+
var isNullOrUndefined = require_is_null_or_undefined();
|
|
1326
1416
|
var Iterators = require_iterators();
|
|
1327
1417
|
var wellKnownSymbol = require_well_known_symbol();
|
|
1328
1418
|
var ITERATOR = wellKnownSymbol("iterator");
|
|
1329
1419
|
module2.exports = function(it) {
|
|
1330
|
-
if (it
|
|
1420
|
+
if (!isNullOrUndefined(it))
|
|
1331
1421
|
return getMethod(it, ITERATOR) || getMethod(it, "@@iterator") || Iterators[classof(it)];
|
|
1332
1422
|
};
|
|
1333
1423
|
}
|
|
@@ -1336,18 +1426,17 @@ var require_get_iterator_method = __commonJS({
|
|
|
1336
1426
|
// node_modules/core-js/internals/get-iterator.js
|
|
1337
1427
|
var require_get_iterator = __commonJS({
|
|
1338
1428
|
"node_modules/core-js/internals/get-iterator.js"(exports2, module2) {
|
|
1339
|
-
var global2 = require_global();
|
|
1340
1429
|
var call = require_function_call();
|
|
1341
1430
|
var aCallable = require_a_callable();
|
|
1342
1431
|
var anObject = require_an_object();
|
|
1343
1432
|
var tryToString = require_try_to_string();
|
|
1344
1433
|
var getIteratorMethod = require_get_iterator_method();
|
|
1345
|
-
var
|
|
1434
|
+
var $TypeError = TypeError;
|
|
1346
1435
|
module2.exports = function(argument, usingIterator) {
|
|
1347
1436
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;
|
|
1348
1437
|
if (aCallable(iteratorMethod))
|
|
1349
1438
|
return anObject(call(iteratorMethod, argument));
|
|
1350
|
-
throw
|
|
1439
|
+
throw $TypeError(tryToString(argument) + " is not iterable");
|
|
1351
1440
|
};
|
|
1352
1441
|
}
|
|
1353
1442
|
});
|
|
@@ -1386,7 +1475,6 @@ var require_iterator_close = __commonJS({
|
|
|
1386
1475
|
// node_modules/core-js/internals/iterate.js
|
|
1387
1476
|
var require_iterate = __commonJS({
|
|
1388
1477
|
"node_modules/core-js/internals/iterate.js"(exports2, module2) {
|
|
1389
|
-
var global2 = require_global();
|
|
1390
1478
|
var bind = require_function_bind_context();
|
|
1391
1479
|
var call = require_function_call();
|
|
1392
1480
|
var anObject = require_an_object();
|
|
@@ -1397,7 +1485,7 @@ var require_iterate = __commonJS({
|
|
|
1397
1485
|
var getIterator = require_get_iterator();
|
|
1398
1486
|
var getIteratorMethod = require_get_iterator_method();
|
|
1399
1487
|
var iteratorClose = require_iterator_close();
|
|
1400
|
-
var
|
|
1488
|
+
var $TypeError = TypeError;
|
|
1401
1489
|
var Result = function(stopped, result) {
|
|
1402
1490
|
this.stopped = stopped;
|
|
1403
1491
|
this.result = result;
|
|
@@ -1406,6 +1494,7 @@ var require_iterate = __commonJS({
|
|
|
1406
1494
|
module2.exports = function(iterable, unboundFunction, options) {
|
|
1407
1495
|
var that = options && options.that;
|
|
1408
1496
|
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
1497
|
+
var IS_RECORD = !!(options && options.IS_RECORD);
|
|
1409
1498
|
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
1410
1499
|
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
1411
1500
|
var fn = bind(unboundFunction, that);
|
|
@@ -1422,12 +1511,14 @@ var require_iterate = __commonJS({
|
|
|
1422
1511
|
}
|
|
1423
1512
|
return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
1424
1513
|
};
|
|
1425
|
-
if (
|
|
1514
|
+
if (IS_RECORD) {
|
|
1515
|
+
iterator = iterable.iterator;
|
|
1516
|
+
} else if (IS_ITERATOR) {
|
|
1426
1517
|
iterator = iterable;
|
|
1427
1518
|
} else {
|
|
1428
1519
|
iterFn = getIteratorMethod(iterable);
|
|
1429
1520
|
if (!iterFn)
|
|
1430
|
-
throw
|
|
1521
|
+
throw $TypeError(tryToString(iterable) + " is not iterable");
|
|
1431
1522
|
if (isArrayIteratorMethod(iterFn)) {
|
|
1432
1523
|
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
1433
1524
|
result = callFn(iterable[index]);
|
|
@@ -1438,7 +1529,7 @@ var require_iterate = __commonJS({
|
|
|
1438
1529
|
}
|
|
1439
1530
|
iterator = getIterator(iterable, iterFn);
|
|
1440
1531
|
}
|
|
1441
|
-
next = iterator.next;
|
|
1532
|
+
next = IS_RECORD ? iterable.next : iterator.next;
|
|
1442
1533
|
while (!(step = call(next, iterator)).done) {
|
|
1443
1534
|
try {
|
|
1444
1535
|
result = callFn(step.value);
|
|
@@ -1488,6 +1579,98 @@ var require_es_object_from_entries = __commonJS({
|
|
|
1488
1579
|
}
|
|
1489
1580
|
});
|
|
1490
1581
|
|
|
1582
|
+
// node_modules/core-js/internals/define-built-in-accessor.js
|
|
1583
|
+
var require_define_built_in_accessor = __commonJS({
|
|
1584
|
+
"node_modules/core-js/internals/define-built-in-accessor.js"(exports2, module2) {
|
|
1585
|
+
var makeBuiltIn = require_make_built_in();
|
|
1586
|
+
var defineProperty = require_object_define_property();
|
|
1587
|
+
module2.exports = function(target, name, descriptor) {
|
|
1588
|
+
if (descriptor.get)
|
|
1589
|
+
makeBuiltIn(descriptor.get, name, { getter: true });
|
|
1590
|
+
if (descriptor.set)
|
|
1591
|
+
makeBuiltIn(descriptor.set, name, { setter: true });
|
|
1592
|
+
return defineProperty.f(target, name, descriptor);
|
|
1593
|
+
};
|
|
1594
|
+
}
|
|
1595
|
+
});
|
|
1596
|
+
|
|
1597
|
+
// node_modules/core-js/internals/regexp-flags.js
|
|
1598
|
+
var require_regexp_flags = __commonJS({
|
|
1599
|
+
"node_modules/core-js/internals/regexp-flags.js"(exports2, module2) {
|
|
1600
|
+
"use strict";
|
|
1601
|
+
var anObject = require_an_object();
|
|
1602
|
+
module2.exports = function() {
|
|
1603
|
+
var that = anObject(this);
|
|
1604
|
+
var result = "";
|
|
1605
|
+
if (that.hasIndices)
|
|
1606
|
+
result += "d";
|
|
1607
|
+
if (that.global)
|
|
1608
|
+
result += "g";
|
|
1609
|
+
if (that.ignoreCase)
|
|
1610
|
+
result += "i";
|
|
1611
|
+
if (that.multiline)
|
|
1612
|
+
result += "m";
|
|
1613
|
+
if (that.dotAll)
|
|
1614
|
+
result += "s";
|
|
1615
|
+
if (that.unicode)
|
|
1616
|
+
result += "u";
|
|
1617
|
+
if (that.unicodeSets)
|
|
1618
|
+
result += "v";
|
|
1619
|
+
if (that.sticky)
|
|
1620
|
+
result += "y";
|
|
1621
|
+
return result;
|
|
1622
|
+
};
|
|
1623
|
+
}
|
|
1624
|
+
});
|
|
1625
|
+
|
|
1626
|
+
// node_modules/core-js/modules/es.regexp.flags.js
|
|
1627
|
+
var require_es_regexp_flags = __commonJS({
|
|
1628
|
+
"node_modules/core-js/modules/es.regexp.flags.js"() {
|
|
1629
|
+
var global2 = require_global();
|
|
1630
|
+
var DESCRIPTORS = require_descriptors();
|
|
1631
|
+
var defineBuiltInAccessor = require_define_built_in_accessor();
|
|
1632
|
+
var regExpFlags = require_regexp_flags();
|
|
1633
|
+
var fails = require_fails();
|
|
1634
|
+
var RegExp2 = global2.RegExp;
|
|
1635
|
+
var RegExpPrototype = RegExp2.prototype;
|
|
1636
|
+
var FORCED = DESCRIPTORS && fails(function() {
|
|
1637
|
+
var INDICES_SUPPORT = true;
|
|
1638
|
+
try {
|
|
1639
|
+
RegExp2(".", "d");
|
|
1640
|
+
} catch (error) {
|
|
1641
|
+
INDICES_SUPPORT = false;
|
|
1642
|
+
}
|
|
1643
|
+
var O = {};
|
|
1644
|
+
var calls = "";
|
|
1645
|
+
var expected = INDICES_SUPPORT ? "dgimsy" : "gimsy";
|
|
1646
|
+
var addGetter = function(key2, chr) {
|
|
1647
|
+
Object.defineProperty(O, key2, { get: function() {
|
|
1648
|
+
calls += chr;
|
|
1649
|
+
return true;
|
|
1650
|
+
} });
|
|
1651
|
+
};
|
|
1652
|
+
var pairs = {
|
|
1653
|
+
dotAll: "s",
|
|
1654
|
+
global: "g",
|
|
1655
|
+
ignoreCase: "i",
|
|
1656
|
+
multiline: "m",
|
|
1657
|
+
sticky: "y"
|
|
1658
|
+
};
|
|
1659
|
+
if (INDICES_SUPPORT)
|
|
1660
|
+
pairs.hasIndices = "d";
|
|
1661
|
+
for (var key in pairs)
|
|
1662
|
+
addGetter(key, pairs[key]);
|
|
1663
|
+
var result = Object.getOwnPropertyDescriptor(RegExpPrototype, "flags").get.call(O);
|
|
1664
|
+
return result !== expected || calls !== expected;
|
|
1665
|
+
});
|
|
1666
|
+
if (FORCED)
|
|
1667
|
+
defineBuiltInAccessor(RegExpPrototype, "flags", {
|
|
1668
|
+
configurable: true,
|
|
1669
|
+
get: regExpFlags
|
|
1670
|
+
});
|
|
1671
|
+
}
|
|
1672
|
+
});
|
|
1673
|
+
|
|
1491
1674
|
// node_modules/core-js/modules/es.array.flat.js
|
|
1492
1675
|
var require_es_array_flat = __commonJS({
|
|
1493
1676
|
"node_modules/core-js/modules/es.array.flat.js"() {
|
|
@@ -1550,6 +1733,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
1550
1733
|
}
|
|
1551
1734
|
require_es_array_flat_map();
|
|
1552
1735
|
require_es_object_from_entries();
|
|
1736
|
+
require_es_regexp_flags();
|
|
1553
1737
|
require_es_array_flat();
|
|
1554
1738
|
var __create = Object.create;
|
|
1555
1739
|
var __defProp = Object.defineProperty;
|
|
@@ -6477,12 +6661,12 @@ var require_identifier = __commonJS2({
|
|
|
6477
6661
|
exports2.isIdentifierName = isIdentifierName;
|
|
6478
6662
|
exports2.isIdentifierStart = isIdentifierStart;
|
|
6479
6663
|
var nonASCIIidentifierStartChars = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC";
|
|
6480
|
-
var nonASCIIidentifierChars = "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\
|
|
6664
|
+
var nonASCIIidentifierChars = "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F";
|
|
6481
6665
|
var nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
|
|
6482
6666
|
var nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
|
|
6483
6667
|
nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;
|
|
6484
|
-
var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24,
|
|
6485
|
-
var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1,
|
|
6668
|
+
var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 264, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 757, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 3104, 541, 1507, 4938, 6, 4191];
|
|
6669
|
+
var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 81, 2, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
|
|
6486
6670
|
function isInAstralSet(code, set) {
|
|
6487
6671
|
let pos = 65536;
|
|
6488
6672
|
for (let i = 0, length = set.length; i < length; i += 2) {
|
|
@@ -7063,7 +7247,7 @@ var require_lib4 = __commonJS2({
|
|
|
7063
7247
|
if ((0, _helperValidatorIdentifier.isKeyword)(token.value) || (0, _helperValidatorIdentifier.isStrictReservedWord)(token.value, true) || sometimesKeywords.has(token.value)) {
|
|
7064
7248
|
return "keyword";
|
|
7065
7249
|
}
|
|
7066
|
-
if (JSX_TAG.test(token.value) && (text[offset - 1] === "<" || text.
|
|
7250
|
+
if (JSX_TAG.test(token.value) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) == "</")) {
|
|
7067
7251
|
return "jsxIdentifier";
|
|
7068
7252
|
}
|
|
7069
7253
|
if (token.value[0] !== token.value[0].toLowerCase()) {
|
|
@@ -13516,12 +13700,34 @@ var require_parse3 = __commonJS2({
|
|
|
13516
13700
|
function internalize(holder, name, reviver) {
|
|
13517
13701
|
const value = holder[name];
|
|
13518
13702
|
if (value != null && typeof value === "object") {
|
|
13519
|
-
|
|
13520
|
-
|
|
13521
|
-
|
|
13522
|
-
|
|
13523
|
-
|
|
13524
|
-
|
|
13703
|
+
if (Array.isArray(value)) {
|
|
13704
|
+
for (let i = 0; i < value.length; i++) {
|
|
13705
|
+
const key2 = String(i);
|
|
13706
|
+
const replacement = internalize(value, key2, reviver);
|
|
13707
|
+
if (replacement === void 0) {
|
|
13708
|
+
delete value[key2];
|
|
13709
|
+
} else {
|
|
13710
|
+
Object.defineProperty(value, key2, {
|
|
13711
|
+
value: replacement,
|
|
13712
|
+
writable: true,
|
|
13713
|
+
enumerable: true,
|
|
13714
|
+
configurable: true
|
|
13715
|
+
});
|
|
13716
|
+
}
|
|
13717
|
+
}
|
|
13718
|
+
} else {
|
|
13719
|
+
for (const key2 in value) {
|
|
13720
|
+
const replacement = internalize(value, key2, reviver);
|
|
13721
|
+
if (replacement === void 0) {
|
|
13722
|
+
delete value[key2];
|
|
13723
|
+
} else {
|
|
13724
|
+
Object.defineProperty(value, key2, {
|
|
13725
|
+
value: replacement,
|
|
13726
|
+
writable: true,
|
|
13727
|
+
enumerable: true,
|
|
13728
|
+
configurable: true
|
|
13729
|
+
});
|
|
13730
|
+
}
|
|
13525
13731
|
}
|
|
13526
13732
|
}
|
|
13527
13733
|
}
|
|
@@ -14220,7 +14426,12 @@ var require_parse3 = __commonJS2({
|
|
|
14220
14426
|
if (Array.isArray(parent)) {
|
|
14221
14427
|
parent.push(value);
|
|
14222
14428
|
} else {
|
|
14223
|
-
parent
|
|
14429
|
+
Object.defineProperty(parent, key, {
|
|
14430
|
+
value,
|
|
14431
|
+
writable: true,
|
|
14432
|
+
enumerable: true,
|
|
14433
|
+
configurable: true
|
|
14434
|
+
});
|
|
14224
14435
|
}
|
|
14225
14436
|
}
|
|
14226
14437
|
if (value !== null && typeof value === "object") {
|
|
@@ -14806,6 +15017,8 @@ var require_core2 = __commonJS2({
|
|
|
14806
15017
|
"node:https": [">= 14.18 && < 15", ">= 16"],
|
|
14807
15018
|
inspector: ">= 8",
|
|
14808
15019
|
"node:inspector": [">= 14.18 && < 15", ">= 16"],
|
|
15020
|
+
"inspector/promises": [">= 19"],
|
|
15021
|
+
"node:inspector/promises": [">= 19"],
|
|
14809
15022
|
_linklist: "< 8",
|
|
14810
15023
|
module: true,
|
|
14811
15024
|
"node:module": [">= 14.18 && < 15", ">= 16"],
|
|
@@ -14861,6 +15074,7 @@ var require_core2 = __commonJS2({
|
|
|
14861
15074
|
"node:string_decoder": [">= 14.18 && < 15", ">= 16"],
|
|
14862
15075
|
sys: [">= 0.4 && < 0.7", ">= 0.8"],
|
|
14863
15076
|
"node:sys": [">= 14.18 && < 15", ">= 16"],
|
|
15077
|
+
"node:test": [">= 16.17 && < 17", ">= 18"],
|
|
14864
15078
|
timers: true,
|
|
14865
15079
|
"node:timers": [">= 14.18 && < 15", ">= 16"],
|
|
14866
15080
|
"timers/promises": ">= 15",
|
|
@@ -14971,7 +15185,7 @@ var require_async = __commonJS2({
|
|
|
14971
15185
|
var nodeModulesPaths = require_node_modules_paths();
|
|
14972
15186
|
var normalizeOptions = require_normalize_options();
|
|
14973
15187
|
var isCore = require_is_core_module();
|
|
14974
|
-
var realpathFS = fs.realpath && typeof fs.realpath.native === "function" ? fs.realpath.native : fs.realpath;
|
|
15188
|
+
var realpathFS = process.platform !== "win32" && fs.realpath && typeof fs.realpath.native === "function" ? fs.realpath.native : fs.realpath;
|
|
14975
15189
|
var homedir = getHomedir();
|
|
14976
15190
|
var defaultPaths = function() {
|
|
14977
15191
|
return [path.join(homedir, ".node_modules"), path.join(homedir, ".node_libraries")];
|
|
@@ -15399,6 +15613,7 @@ var require_core3 = __commonJS2({
|
|
|
15399
15613
|
"node:string_decoder": [">= 14.18 && < 15", ">= 16"],
|
|
15400
15614
|
sys: [">= 0.4 && < 0.7", ">= 0.8"],
|
|
15401
15615
|
"node:sys": [">= 14.18 && < 15", ">= 16"],
|
|
15616
|
+
"node:test": ">= 18",
|
|
15402
15617
|
timers: true,
|
|
15403
15618
|
"node:timers": [">= 14.18 && < 15", ">= 16"],
|
|
15404
15619
|
"timers/promises": ">= 15",
|
|
@@ -15515,7 +15730,7 @@ var require_sync = __commonJS2({
|
|
|
15515
15730
|
var caller = require_caller();
|
|
15516
15731
|
var nodeModulesPaths = require_node_modules_paths();
|
|
15517
15732
|
var normalizeOptions = require_normalize_options();
|
|
15518
|
-
var realpathFS = fs.realpathSync && typeof fs.realpathSync.native === "function" ? fs.realpathSync.native : fs.realpathSync;
|
|
15733
|
+
var realpathFS = process.platform !== "win32" && fs.realpathSync && typeof fs.realpathSync.native === "function" ? fs.realpathSync.native : fs.realpathSync;
|
|
15519
15734
|
var homedir = getHomedir();
|
|
15520
15735
|
var defaultPaths = function() {
|
|
15521
15736
|
return [path.join(homedir, ".node_modules"), path.join(homedir, ".node_libraries")];
|
|
@@ -16985,7 +17200,7 @@ var require_fnmatch = __commonJS2({
|
|
|
16985
17200
|
if (options.debug)
|
|
16986
17201
|
console.error(this.pattern, set);
|
|
16987
17202
|
set = set.filter(function(s) {
|
|
16988
|
-
return s.indexOf(false)
|
|
17203
|
+
return -1 === s.indexOf(false);
|
|
16989
17204
|
});
|
|
16990
17205
|
if (options.debug)
|
|
16991
17206
|
console.error(this.pattern, set);
|
|
@@ -20698,6 +20913,45 @@ var require_stream3 = __commonJS2({
|
|
|
20698
20913
|
exports2.default = ReaderStream;
|
|
20699
20914
|
}
|
|
20700
20915
|
});
|
|
20916
|
+
var require_async6 = __commonJS2({
|
|
20917
|
+
"node_modules/fast-glob/out/readers/async.js"(exports2) {
|
|
20918
|
+
"use strict";
|
|
20919
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
20920
|
+
value: true
|
|
20921
|
+
});
|
|
20922
|
+
var fsWalk = require_out3();
|
|
20923
|
+
var reader_1 = require_reader2();
|
|
20924
|
+
var stream_1 = require_stream3();
|
|
20925
|
+
var ReaderAsync = class extends reader_1.default {
|
|
20926
|
+
constructor() {
|
|
20927
|
+
super(...arguments);
|
|
20928
|
+
this._walkAsync = fsWalk.walk;
|
|
20929
|
+
this._readerStream = new stream_1.default(this._settings);
|
|
20930
|
+
}
|
|
20931
|
+
dynamic(root, options) {
|
|
20932
|
+
return new Promise((resolve, reject) => {
|
|
20933
|
+
this._walkAsync(root, options, (error, entries) => {
|
|
20934
|
+
if (error === null) {
|
|
20935
|
+
resolve(entries);
|
|
20936
|
+
} else {
|
|
20937
|
+
reject(error);
|
|
20938
|
+
}
|
|
20939
|
+
});
|
|
20940
|
+
});
|
|
20941
|
+
}
|
|
20942
|
+
async static(patterns, options) {
|
|
20943
|
+
const entries = [];
|
|
20944
|
+
const stream = this._readerStream.static(patterns, options);
|
|
20945
|
+
return new Promise((resolve, reject) => {
|
|
20946
|
+
stream.once("error", reject);
|
|
20947
|
+
stream.on("data", (entry) => entries.push(entry));
|
|
20948
|
+
stream.once("end", () => resolve(entries));
|
|
20949
|
+
});
|
|
20950
|
+
}
|
|
20951
|
+
};
|
|
20952
|
+
exports2.default = ReaderAsync;
|
|
20953
|
+
}
|
|
20954
|
+
});
|
|
20701
20955
|
var require_matcher = __commonJS2({
|
|
20702
20956
|
"node_modules/fast-glob/out/providers/matchers/matcher.js"(exports2) {
|
|
20703
20957
|
"use strict";
|
|
@@ -20881,7 +21135,8 @@ var require_entry = __commonJS2({
|
|
|
20881
21135
|
return false;
|
|
20882
21136
|
}
|
|
20883
21137
|
const filepath = this._settings.baseNameMatch ? entry.name : entry.path;
|
|
20884
|
-
const
|
|
21138
|
+
const isDirectory = entry.dirent.isDirectory();
|
|
21139
|
+
const isMatched = this._isMatchToPatterns(filepath, positiveRe, isDirectory) && !this._isMatchToPatterns(entry.path, negativeRe, isDirectory);
|
|
20885
21140
|
if (this._settings.unique && isMatched) {
|
|
20886
21141
|
this._createIndexRecord(entry);
|
|
20887
21142
|
}
|
|
@@ -20906,9 +21161,13 @@ var require_entry = __commonJS2({
|
|
|
20906
21161
|
const fullpath = utils.path.makeAbsolute(this._settings.cwd, entryPath);
|
|
20907
21162
|
return utils.pattern.matchAny(fullpath, patternsRe);
|
|
20908
21163
|
}
|
|
20909
|
-
_isMatchToPatterns(entryPath, patternsRe) {
|
|
21164
|
+
_isMatchToPatterns(entryPath, patternsRe, isDirectory) {
|
|
20910
21165
|
const filepath = utils.path.removeLeadingDotSegment(entryPath);
|
|
20911
|
-
|
|
21166
|
+
const isMatched = utils.pattern.matchAny(filepath, patternsRe);
|
|
21167
|
+
if (!isMatched && isDirectory) {
|
|
21168
|
+
return utils.pattern.matchAny(filepath + "/", patternsRe);
|
|
21169
|
+
}
|
|
21170
|
+
return isMatched;
|
|
20912
21171
|
}
|
|
20913
21172
|
};
|
|
20914
21173
|
exports2.default = EntryFilter;
|
|
@@ -21023,29 +21282,24 @@ var require_provider = __commonJS2({
|
|
|
21023
21282
|
exports2.default = Provider;
|
|
21024
21283
|
}
|
|
21025
21284
|
});
|
|
21026
|
-
var
|
|
21285
|
+
var require_async7 = __commonJS2({
|
|
21027
21286
|
"node_modules/fast-glob/out/providers/async.js"(exports2) {
|
|
21028
21287
|
"use strict";
|
|
21029
21288
|
Object.defineProperty(exports2, "__esModule", {
|
|
21030
21289
|
value: true
|
|
21031
21290
|
});
|
|
21032
|
-
var
|
|
21291
|
+
var async_1 = require_async6();
|
|
21033
21292
|
var provider_1 = require_provider();
|
|
21034
21293
|
var ProviderAsync = class extends provider_1.default {
|
|
21035
21294
|
constructor() {
|
|
21036
21295
|
super(...arguments);
|
|
21037
|
-
this._reader = new
|
|
21296
|
+
this._reader = new async_1.default(this._settings);
|
|
21038
21297
|
}
|
|
21039
|
-
read(task) {
|
|
21298
|
+
async read(task) {
|
|
21040
21299
|
const root = this._getRootDirectory(task);
|
|
21041
21300
|
const options = this._getReaderOptions(task);
|
|
21042
|
-
const entries =
|
|
21043
|
-
return
|
|
21044
|
-
const stream = this.api(root, task, options);
|
|
21045
|
-
stream.once("error", reject);
|
|
21046
|
-
stream.on("data", (entry) => entries.push(options.transform(entry)));
|
|
21047
|
-
stream.once("end", () => resolve(entries));
|
|
21048
|
-
});
|
|
21301
|
+
const entries = await this.api(root, task, options);
|
|
21302
|
+
return entries.map((entry) => options.transform(entry));
|
|
21049
21303
|
}
|
|
21050
21304
|
api(root, task, options) {
|
|
21051
21305
|
if (task.dynamic) {
|
|
@@ -21235,7 +21489,7 @@ var require_out4 = __commonJS2({
|
|
|
21235
21489
|
"use strict";
|
|
21236
21490
|
var taskManager = require_tasks();
|
|
21237
21491
|
var patternManager = require_patterns();
|
|
21238
|
-
var async_1 =
|
|
21492
|
+
var async_1 = require_async7();
|
|
21239
21493
|
var stream_1 = require_stream4();
|
|
21240
21494
|
var sync_1 = require_sync7();
|
|
21241
21495
|
var settings_1 = require_settings4();
|
|
@@ -22025,43 +22279,41 @@ var require_utils7 = __commonJS2({
|
|
|
22025
22279
|
function shouldPrintComma(options, level = "es5") {
|
|
22026
22280
|
return options.trailingComma === "es5" && level === "es5" || options.trailingComma === "all" && (level === "all" || level === "es5");
|
|
22027
22281
|
}
|
|
22028
|
-
function startsWithNoLookaheadToken(node,
|
|
22029
|
-
node = getLeftMost(node);
|
|
22282
|
+
function startsWithNoLookaheadToken(node, predicate) {
|
|
22030
22283
|
switch (node.type) {
|
|
22031
|
-
case "
|
|
22032
|
-
case "
|
|
22033
|
-
case "
|
|
22034
|
-
|
|
22035
|
-
|
|
22036
|
-
return true;
|
|
22284
|
+
case "BinaryExpression":
|
|
22285
|
+
case "LogicalExpression":
|
|
22286
|
+
case "AssignmentExpression":
|
|
22287
|
+
case "NGPipeExpression":
|
|
22288
|
+
return startsWithNoLookaheadToken(node.left, predicate);
|
|
22037
22289
|
case "MemberExpression":
|
|
22038
22290
|
case "OptionalMemberExpression":
|
|
22039
|
-
return startsWithNoLookaheadToken(node.object,
|
|
22291
|
+
return startsWithNoLookaheadToken(node.object, predicate);
|
|
22040
22292
|
case "TaggedTemplateExpression":
|
|
22041
22293
|
if (node.tag.type === "FunctionExpression") {
|
|
22042
22294
|
return false;
|
|
22043
22295
|
}
|
|
22044
|
-
return startsWithNoLookaheadToken(node.tag,
|
|
22296
|
+
return startsWithNoLookaheadToken(node.tag, predicate);
|
|
22045
22297
|
case "CallExpression":
|
|
22046
22298
|
case "OptionalCallExpression":
|
|
22047
22299
|
if (node.callee.type === "FunctionExpression") {
|
|
22048
22300
|
return false;
|
|
22049
22301
|
}
|
|
22050
|
-
return startsWithNoLookaheadToken(node.callee,
|
|
22302
|
+
return startsWithNoLookaheadToken(node.callee, predicate);
|
|
22051
22303
|
case "ConditionalExpression":
|
|
22052
|
-
return startsWithNoLookaheadToken(node.test,
|
|
22304
|
+
return startsWithNoLookaheadToken(node.test, predicate);
|
|
22053
22305
|
case "UpdateExpression":
|
|
22054
|
-
return !node.prefix && startsWithNoLookaheadToken(node.argument,
|
|
22306
|
+
return !node.prefix && startsWithNoLookaheadToken(node.argument, predicate);
|
|
22055
22307
|
case "BindExpression":
|
|
22056
|
-
return node.object && startsWithNoLookaheadToken(node.object,
|
|
22308
|
+
return node.object && startsWithNoLookaheadToken(node.object, predicate);
|
|
22057
22309
|
case "SequenceExpression":
|
|
22058
|
-
return startsWithNoLookaheadToken(node.expressions[0],
|
|
22310
|
+
return startsWithNoLookaheadToken(node.expressions[0], predicate);
|
|
22059
22311
|
case "TSSatisfiesExpression":
|
|
22060
22312
|
case "TSAsExpression":
|
|
22061
22313
|
case "TSNonNullExpression":
|
|
22062
|
-
return startsWithNoLookaheadToken(node.expression,
|
|
22314
|
+
return startsWithNoLookaheadToken(node.expression, predicate);
|
|
22063
22315
|
default:
|
|
22064
|
-
return
|
|
22316
|
+
return predicate(node);
|
|
22065
22317
|
}
|
|
22066
22318
|
}
|
|
22067
22319
|
var equalityOperators = {
|
|
@@ -22105,12 +22357,6 @@ var require_utils7 = __commonJS2({
|
|
|
22105
22357
|
function getPrecedence(operator) {
|
|
22106
22358
|
return PRECEDENCE.get(operator);
|
|
22107
22359
|
}
|
|
22108
|
-
function getLeftMost(node) {
|
|
22109
|
-
while (node.left) {
|
|
22110
|
-
node = node.left;
|
|
22111
|
-
}
|
|
22112
|
-
return node;
|
|
22113
|
-
}
|
|
22114
22360
|
function isBitwiseOperator(operator) {
|
|
22115
22361
|
return Boolean(bitshiftOperators[operator]) || operator === "|" || operator === "^" || operator === "&";
|
|
22116
22362
|
}
|
|
@@ -23385,7 +23631,7 @@ var require_comments2 = __commonJS2({
|
|
|
23385
23631
|
}
|
|
23386
23632
|
return false;
|
|
23387
23633
|
}
|
|
23388
|
-
var propertyLikeNodeTypes = /* @__PURE__ */ new Set(["ClassMethod", "ClassProperty", "PropertyDefinition", "TSAbstractPropertyDefinition", "TSAbstractMethodDefinition", "TSDeclareMethod", "MethodDefinition"]);
|
|
23634
|
+
var propertyLikeNodeTypes = /* @__PURE__ */ new Set(["ClassMethod", "ClassProperty", "PropertyDefinition", "TSAbstractPropertyDefinition", "TSAbstractMethodDefinition", "TSDeclareMethod", "MethodDefinition", "ClassAccessorProperty", "AccessorProperty", "TSAbstractAccessorProperty"]);
|
|
23389
23635
|
function handleMethodNameComments({
|
|
23390
23636
|
comment,
|
|
23391
23637
|
precedingNode,
|
|
@@ -23673,7 +23919,7 @@ var require_comments2 = __commonJS2({
|
|
|
23673
23919
|
enclosingNode,
|
|
23674
23920
|
followingNode
|
|
23675
23921
|
}) {
|
|
23676
|
-
if (!enclosingNode || enclosingNode.type !== "SwitchCase" || enclosingNode.test) {
|
|
23922
|
+
if (!enclosingNode || enclosingNode.type !== "SwitchCase" || enclosingNode.test || !followingNode || followingNode !== enclosingNode.consequent[0]) {
|
|
23677
23923
|
return false;
|
|
23678
23924
|
}
|
|
23679
23925
|
if (followingNode.type === "BlockStatement" && isLineComment(comment)) {
|
|
@@ -23750,11 +23996,32 @@ var require_needs_parens = __commonJS2({
|
|
|
23750
23996
|
if (node.extra && node.extra.parenthesized && /^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(node.name)) {
|
|
23751
23997
|
return true;
|
|
23752
23998
|
}
|
|
23753
|
-
if (name === "left" && node.name === "async" && parent.
|
|
23999
|
+
if (name === "left" && (node.name === "async" && !parent.await || node.name === "let") && parent.type === "ForOfStatement") {
|
|
23754
24000
|
return true;
|
|
23755
24001
|
}
|
|
24002
|
+
if (node.name === "let") {
|
|
24003
|
+
var _path$findAncestor;
|
|
24004
|
+
const expression = (_path$findAncestor = path.findAncestor((node2) => node2.type === "ForOfStatement")) === null || _path$findAncestor === void 0 ? void 0 : _path$findAncestor.left;
|
|
24005
|
+
if (expression && startsWithNoLookaheadToken(expression, (leftmostNode) => leftmostNode === node)) {
|
|
24006
|
+
return true;
|
|
24007
|
+
}
|
|
24008
|
+
}
|
|
24009
|
+
if (name === "object" && node.name === "let" && parent.type === "MemberExpression" && parent.computed && !parent.optional) {
|
|
24010
|
+
const statement = path.findAncestor((node2) => node2.type === "ExpressionStatement" || node2.type === "ForStatement" || node2.type === "ForInStatement");
|
|
24011
|
+
const expression = !statement ? void 0 : statement.type === "ExpressionStatement" ? statement.expression : statement.type === "ForStatement" ? statement.init : statement.left;
|
|
24012
|
+
if (expression && startsWithNoLookaheadToken(expression, (leftmostNode) => leftmostNode === node)) {
|
|
24013
|
+
return true;
|
|
24014
|
+
}
|
|
24015
|
+
}
|
|
23756
24016
|
return false;
|
|
23757
24017
|
}
|
|
24018
|
+
if (node.type === "ObjectExpression" || node.type === "FunctionExpression" || node.type === "ClassExpression" || node.type === "DoExpression") {
|
|
24019
|
+
var _path$findAncestor2;
|
|
24020
|
+
const expression = (_path$findAncestor2 = path.findAncestor((node2) => node2.type === "ExpressionStatement")) === null || _path$findAncestor2 === void 0 ? void 0 : _path$findAncestor2.expression;
|
|
24021
|
+
if (expression && startsWithNoLookaheadToken(expression, (leftmostNode) => leftmostNode === node)) {
|
|
24022
|
+
return true;
|
|
24023
|
+
}
|
|
24024
|
+
}
|
|
23758
24025
|
switch (parent.type) {
|
|
23759
24026
|
case "ParenthesizedExpression":
|
|
23760
24027
|
return false;
|
|
@@ -23798,14 +24065,8 @@ var require_needs_parens = __commonJS2({
|
|
|
23798
24065
|
}
|
|
23799
24066
|
break;
|
|
23800
24067
|
}
|
|
23801
|
-
case "ExpressionStatement": {
|
|
23802
|
-
if (startsWithNoLookaheadToken(node, true)) {
|
|
23803
|
-
return true;
|
|
23804
|
-
}
|
|
23805
|
-
break;
|
|
23806
|
-
}
|
|
23807
24068
|
case "ArrowFunctionExpression": {
|
|
23808
|
-
if (name === "body" && node.type !== "SequenceExpression" && startsWithNoLookaheadToken(node,
|
|
24069
|
+
if (name === "body" && node.type !== "SequenceExpression" && startsWithNoLookaheadToken(node, (node2) => node2.type === "ObjectExpression")) {
|
|
23809
24070
|
return true;
|
|
23810
24071
|
}
|
|
23811
24072
|
break;
|
|
@@ -23994,6 +24255,8 @@ var require_needs_parens = __commonJS2({
|
|
|
23994
24255
|
}
|
|
23995
24256
|
case "TSTypeOperator":
|
|
23996
24257
|
return parent.type === "TSArrayType" || parent.type === "TSOptionalType" || parent.type === "TSRestType" || name === "objectType" && parent.type === "TSIndexedAccessType" || parent.type === "TSTypeOperator" || parent.type === "TSTypeAnnotation" && path.getParentNode(1).type.startsWith("TSJSDoc");
|
|
24258
|
+
case "TSTypeQuery":
|
|
24259
|
+
return name === "objectType" && parent.type === "TSIndexedAccessType" || name === "elementType" && parent.type === "TSArrayType";
|
|
23997
24260
|
case "ArrayTypeAnnotation":
|
|
23998
24261
|
return parent.type === "NullableTypeAnnotation";
|
|
23999
24262
|
case "IntersectionTypeAnnotation":
|
|
@@ -24549,7 +24812,8 @@ var require_jsx = __commonJS2({
|
|
|
24549
24812
|
"use strict";
|
|
24550
24813
|
var {
|
|
24551
24814
|
printComments,
|
|
24552
|
-
printDanglingComments
|
|
24815
|
+
printDanglingComments,
|
|
24816
|
+
printCommentsSeparately
|
|
24553
24817
|
} = require_comments();
|
|
24554
24818
|
var {
|
|
24555
24819
|
builders: {
|
|
@@ -24799,7 +25063,11 @@ var require_jsx = __commonJS2({
|
|
|
24799
25063
|
regex
|
|
24800
25064
|
} = getPreferredQuote(final, options.jsxSingleQuote ? "'" : '"');
|
|
24801
25065
|
final = final.replace(regex, escaped);
|
|
24802
|
-
|
|
25066
|
+
const {
|
|
25067
|
+
leading,
|
|
25068
|
+
trailing
|
|
25069
|
+
} = path.call(() => printCommentsSeparately(path, options), "value");
|
|
25070
|
+
res = [leading, quote, final, quote, trailing];
|
|
24803
25071
|
} else {
|
|
24804
25072
|
res = print("value");
|
|
24805
25073
|
}
|
|
@@ -24921,7 +25189,7 @@ var require_jsx = __commonJS2({
|
|
|
24921
25189
|
case "JSXEmptyExpression":
|
|
24922
25190
|
return printJsxEmptyExpression(path, options);
|
|
24923
25191
|
case "JSXText":
|
|
24924
|
-
throw new Error("
|
|
25192
|
+
throw new Error("JSXText should be handled by JSXElement");
|
|
24925
25193
|
default:
|
|
24926
25194
|
throw new Error(`Unknown JSX node type: ${JSON.stringify(node.type)}.`);
|
|
24927
25195
|
}
|
|
@@ -25583,6 +25851,14 @@ var require_misc = __commonJS2({
|
|
|
25583
25851
|
function printRestSpread(path, options, print) {
|
|
25584
25852
|
return ["...", print("argument"), printTypeAnnotation(path, options, print)];
|
|
25585
25853
|
}
|
|
25854
|
+
function printDirective(rawText, options) {
|
|
25855
|
+
const rawContent = rawText.slice(1, -1);
|
|
25856
|
+
if (rawContent.includes('"') || rawContent.includes("'")) {
|
|
25857
|
+
return rawText;
|
|
25858
|
+
}
|
|
25859
|
+
const enclosingQuote = options.singleQuote ? "'" : '"';
|
|
25860
|
+
return enclosingQuote + rawContent + enclosingQuote;
|
|
25861
|
+
}
|
|
25586
25862
|
module2.exports = {
|
|
25587
25863
|
printOptionalToken,
|
|
25588
25864
|
printDefiniteToken,
|
|
@@ -25591,7 +25867,8 @@ var require_misc = __commonJS2({
|
|
|
25591
25867
|
printTypeScriptModifiers,
|
|
25592
25868
|
printTypeAnnotation,
|
|
25593
25869
|
printRestSpread,
|
|
25594
|
-
adjustClause
|
|
25870
|
+
adjustClause,
|
|
25871
|
+
printDirective
|
|
25595
25872
|
};
|
|
25596
25873
|
}
|
|
25597
25874
|
});
|
|
@@ -26860,7 +27137,7 @@ var require_type_parameters = __commonJS2({
|
|
|
26860
27137
|
const grandparent = path.getNode(2);
|
|
26861
27138
|
const isParameterInTestCall = grandparent && isTestCall(grandparent);
|
|
26862
27139
|
const isArrowFunctionVariable = path.match((node2) => !(node2[paramsKey].length === 1 && isObjectType(node2[paramsKey][0])), void 0, (node2, name) => name === "typeAnnotation", (node2) => node2.type === "Identifier", isArrowFunctionVariableDeclarator);
|
|
26863
|
-
const shouldInline =
|
|
27140
|
+
const shouldInline = node[paramsKey].length === 0 || !isArrowFunctionVariable && (isParameterInTestCall || node[paramsKey].length === 1 && (node[paramsKey][0].type === "NullableTypeAnnotation" || shouldHugType(node[paramsKey][0])));
|
|
26864
27141
|
if (shouldInline) {
|
|
26865
27142
|
return ["<", join(", ", path.map(print, paramsKey)), printDanglingCommentsForInline(path, options), ">"];
|
|
26866
27143
|
}
|
|
@@ -26954,9 +27231,6 @@ var require_property = __commonJS2({
|
|
|
26954
27231
|
const {
|
|
26955
27232
|
key
|
|
26956
27233
|
} = node;
|
|
26957
|
-
if (node.type === "ClassPrivateProperty" && key.type === "Identifier") {
|
|
26958
|
-
return ["#", print("key")];
|
|
26959
|
-
}
|
|
26960
27234
|
if (options.quoteProps === "consistent" && !needsQuoteProps.has(parent)) {
|
|
26961
27235
|
const objectHasStringProp = (parent.properties || parent.body || parent.members).some((prop) => !prop.computed && prop.key && isStringLiteral(prop.key) && !isStringPropSafeToUnquote(prop, options));
|
|
26962
27236
|
needsQuoteProps.set(parent, objectHasStringProp);
|
|
@@ -27208,7 +27482,7 @@ var require_function = __commonJS2({
|
|
|
27208
27482
|
}
|
|
27209
27483
|
const shouldAddSoftLine = (args && args.expandLastArg || path.getParentNode().type === "JSXExpressionContainer") && !hasComment(node);
|
|
27210
27484
|
const printTrailingComma = args && args.expandLastArg && shouldPrintComma(options, "all");
|
|
27211
|
-
const shouldAddParens = node.body.type === "ConditionalExpression" && !startsWithNoLookaheadToken(node.body,
|
|
27485
|
+
const shouldAddParens = node.body.type === "ConditionalExpression" && !startsWithNoLookaheadToken(node.body, (node2) => node2.type === "ObjectExpression");
|
|
27212
27486
|
return group([...parts, group([indent([line, shouldAddParens ? ifBreak("", "(") : "", body, shouldAddParens ? ifBreak("", ")") : ""]), shouldAddSoftLine ? [ifBreak(printTrailingComma ? "," : ""), softline] : ""])]);
|
|
27213
27487
|
}
|
|
27214
27488
|
function canPrintParamsWithoutParens(node) {
|
|
@@ -27525,7 +27799,7 @@ var require_class = __commonJS2({
|
|
|
27525
27799
|
if (node.static) {
|
|
27526
27800
|
parts.push("static ");
|
|
27527
27801
|
}
|
|
27528
|
-
if (node.type === "TSAbstractPropertyDefinition" || node.abstract) {
|
|
27802
|
+
if (node.type === "TSAbstractPropertyDefinition" || node.type === "TSAbstractAccessorProperty" || node.abstract) {
|
|
27529
27803
|
parts.push("abstract ");
|
|
27530
27804
|
}
|
|
27531
27805
|
if (node.override) {
|
|
@@ -27537,7 +27811,7 @@ var require_class = __commonJS2({
|
|
|
27537
27811
|
if (node.variance) {
|
|
27538
27812
|
parts.push(print("variance"));
|
|
27539
27813
|
}
|
|
27540
|
-
if (node.type === "ClassAccessorProperty") {
|
|
27814
|
+
if (node.type === "ClassAccessorProperty" || node.type === "AccessorProperty" || node.type === "TSAbstractAccessorProperty") {
|
|
27541
27815
|
parts.push("accessor ");
|
|
27542
27816
|
}
|
|
27543
27817
|
parts.push(printPropertyKey(path, options, print), printOptionalToken(path), printDefiniteToken(path), printTypeAnnotation(path, options, print));
|
|
@@ -28555,10 +28829,13 @@ var require_statement = __commonJS2({
|
|
|
28555
28829
|
}
|
|
28556
28830
|
var isClassProperty = ({
|
|
28557
28831
|
type
|
|
28558
|
-
}) => type === "ClassProperty" || type === "PropertyDefinition" || type === "ClassPrivateProperty" || type === "ClassAccessorProperty";
|
|
28832
|
+
}) => type === "ClassProperty" || type === "PropertyDefinition" || type === "ClassPrivateProperty" || type === "ClassAccessorProperty" || type === "AccessorProperty" || type === "TSAbstractPropertyDefinition" || type === "TSAbstractAccessorProperty";
|
|
28559
28833
|
function shouldPrintSemicolonAfterClassProperty(node, nextNode) {
|
|
28560
|
-
const
|
|
28561
|
-
|
|
28834
|
+
const {
|
|
28835
|
+
type,
|
|
28836
|
+
name
|
|
28837
|
+
} = node.key;
|
|
28838
|
+
if (!node.computed && type === "Identifier" && (name === "static" || name === "get" || name === "set" || name === "accessor") && !node.value && !node.typeAnnotation) {
|
|
28562
28839
|
return true;
|
|
28563
28840
|
}
|
|
28564
28841
|
if (!nextNode) {
|
|
@@ -28819,6 +29096,7 @@ var require_typescript = __commonJS2({
|
|
|
28819
29096
|
case "TSAbstractMethodDefinition":
|
|
28820
29097
|
case "TSDeclareMethod":
|
|
28821
29098
|
return printClassMethod(path, options, print);
|
|
29099
|
+
case "TSAbstractAccessorProperty":
|
|
28822
29100
|
case "TSAbstractPropertyDefinition":
|
|
28823
29101
|
return printClassProperty(path, options, print);
|
|
28824
29102
|
case "TSInterfaceHeritage":
|
|
@@ -29124,6 +29402,9 @@ var require_literal = __commonJS2({
|
|
|
29124
29402
|
var {
|
|
29125
29403
|
replaceTextEndOfLine
|
|
29126
29404
|
} = require_doc_utils();
|
|
29405
|
+
var {
|
|
29406
|
+
printDirective
|
|
29407
|
+
} = require_misc();
|
|
29127
29408
|
function printLiteral(path, options) {
|
|
29128
29409
|
const node = path.getNode();
|
|
29129
29410
|
switch (node.type) {
|
|
@@ -29158,12 +29439,19 @@ var require_literal = __commonJS2({
|
|
|
29158
29439
|
return printNumber(node.raw);
|
|
29159
29440
|
}
|
|
29160
29441
|
if (typeof value === "string") {
|
|
29161
|
-
return replaceTextEndOfLine(printString(node.raw, options));
|
|
29442
|
+
return isDirective(path) ? printDirective(node.raw, options) : replaceTextEndOfLine(printString(node.raw, options));
|
|
29162
29443
|
}
|
|
29163
29444
|
return String(value);
|
|
29164
29445
|
}
|
|
29165
29446
|
}
|
|
29166
29447
|
}
|
|
29448
|
+
function isDirective(path) {
|
|
29449
|
+
if (path.getName() !== "expression") {
|
|
29450
|
+
return;
|
|
29451
|
+
}
|
|
29452
|
+
const parent = path.getParentNode();
|
|
29453
|
+
return parent.type === "ExpressionStatement" && parent.directive;
|
|
29454
|
+
}
|
|
29167
29455
|
function printBigInt(raw) {
|
|
29168
29456
|
return raw.toLowerCase();
|
|
29169
29457
|
}
|
|
@@ -29217,7 +29505,6 @@ var require_printer_estree = __commonJS2({
|
|
|
29217
29505
|
isLineComment,
|
|
29218
29506
|
isNextLineEmpty,
|
|
29219
29507
|
needsHardlineAfterDanglingComment,
|
|
29220
|
-
rawText,
|
|
29221
29508
|
hasIgnoreComment,
|
|
29222
29509
|
isCallExpression,
|
|
29223
29510
|
isMemberExpression,
|
|
@@ -29251,7 +29538,8 @@ var require_printer_estree = __commonJS2({
|
|
|
29251
29538
|
printTypeAnnotation,
|
|
29252
29539
|
adjustClause,
|
|
29253
29540
|
printRestSpread,
|
|
29254
|
-
printDefiniteToken
|
|
29541
|
+
printDefiniteToken,
|
|
29542
|
+
printDirective
|
|
29255
29543
|
} = require_misc();
|
|
29256
29544
|
var {
|
|
29257
29545
|
printImportDeclaration,
|
|
@@ -29324,7 +29612,7 @@ var require_printer_estree = __commonJS2({
|
|
|
29324
29612
|
const {
|
|
29325
29613
|
type
|
|
29326
29614
|
} = node;
|
|
29327
|
-
if (type === "ClassMethod" || type === "ClassPrivateMethod" || type === "ClassProperty" || type === "ClassAccessorProperty" || type === "PropertyDefinition" || type === "TSAbstractPropertyDefinition" || type === "ClassPrivateProperty" || type === "MethodDefinition" || type === "TSAbstractMethodDefinition" || type === "TSDeclareMethod") {
|
|
29615
|
+
if (type === "ClassMethod" || type === "ClassPrivateMethod" || type === "ClassProperty" || type === "ClassAccessorProperty" || type === "AccessorProperty" || type === "TSAbstractAccessorProperty" || type === "PropertyDefinition" || type === "TSAbstractPropertyDefinition" || type === "ClassPrivateProperty" || type === "MethodDefinition" || type === "TSAbstractMethodDefinition" || type === "TSDeclareMethod") {
|
|
29328
29616
|
return printed;
|
|
29329
29617
|
}
|
|
29330
29618
|
let parts = [printed];
|
|
@@ -29396,9 +29684,6 @@ var require_printer_estree = __commonJS2({
|
|
|
29396
29684
|
case "EmptyStatement":
|
|
29397
29685
|
return "";
|
|
29398
29686
|
case "ExpressionStatement": {
|
|
29399
|
-
if (node.directive) {
|
|
29400
|
-
return [printDirective(node.expression, options), semi];
|
|
29401
|
-
}
|
|
29402
29687
|
if (options.parser === "__vue_event_binding" || options.parser === "__vue_ts_event_binding") {
|
|
29403
29688
|
const parent = path.getParentNode();
|
|
29404
29689
|
if (parent.type === "Program" && parent.body.length === 1 && parent.body[0] === node) {
|
|
@@ -29549,7 +29834,7 @@ var require_printer_estree = __commonJS2({
|
|
|
29549
29834
|
case "Directive":
|
|
29550
29835
|
return [print("value"), semi];
|
|
29551
29836
|
case "DirectiveLiteral":
|
|
29552
|
-
return printDirective(node, options);
|
|
29837
|
+
return printDirective(node.extra.raw, options);
|
|
29553
29838
|
case "UnaryExpression":
|
|
29554
29839
|
parts.push(node.operator);
|
|
29555
29840
|
if (/[a-z]$/.test(node.operator)) {
|
|
@@ -29696,6 +29981,7 @@ var require_printer_estree = __commonJS2({
|
|
|
29696
29981
|
case "PropertyDefinition":
|
|
29697
29982
|
case "ClassPrivateProperty":
|
|
29698
29983
|
case "ClassAccessorProperty":
|
|
29984
|
+
case "AccessorProperty":
|
|
29699
29985
|
return printClassProperty(path, options, print);
|
|
29700
29986
|
case "TemplateElement":
|
|
29701
29987
|
return replaceTextEndOfLine(node.value.raw);
|
|
@@ -29730,15 +30016,6 @@ var require_printer_estree = __commonJS2({
|
|
|
29730
30016
|
throw new Error("unknown type: " + JSON.stringify(node.type));
|
|
29731
30017
|
}
|
|
29732
30018
|
}
|
|
29733
|
-
function printDirective(node, options) {
|
|
29734
|
-
const raw = rawText(node);
|
|
29735
|
-
const rawContent = raw.slice(1, -1);
|
|
29736
|
-
if (rawContent.includes('"') || rawContent.includes("'")) {
|
|
29737
|
-
return raw;
|
|
29738
|
-
}
|
|
29739
|
-
const enclosingQuote = options.singleQuote ? "'" : '"';
|
|
29740
|
-
return enclosingQuote + rawContent + enclosingQuote;
|
|
29741
|
-
}
|
|
29742
30019
|
function canAttachComment(node) {
|
|
29743
30020
|
return node.type && !isBlockComment(node) && !isLineComment(node) && node.type !== "EmptyStatement" && node.type !== "TemplateElement" && node.type !== "Import" && node.type !== "TSEmptyBodyFunctionExpression";
|
|
29744
30021
|
}
|
|
@@ -29799,15 +30076,11 @@ var require_printer_estree_json = __commonJS2({
|
|
|
29799
30076
|
case "BooleanLiteral":
|
|
29800
30077
|
return node.value ? "true" : "false";
|
|
29801
30078
|
case "StringLiteral":
|
|
29802
|
-
case "NumericLiteral":
|
|
29803
30079
|
return JSON.stringify(node.value);
|
|
29804
|
-
case "
|
|
29805
|
-
|
|
29806
|
-
|
|
29807
|
-
|
|
29808
|
-
}
|
|
29809
|
-
return node.name;
|
|
29810
|
-
}
|
|
30080
|
+
case "NumericLiteral":
|
|
30081
|
+
return isObjectKey(path) ? JSON.stringify(String(node.value)) : JSON.stringify(node.value);
|
|
30082
|
+
case "Identifier":
|
|
30083
|
+
return isObjectKey(path) ? JSON.stringify(node.name) : node.name;
|
|
29811
30084
|
case "TemplateLiteral":
|
|
29812
30085
|
return print(["quasis", 0]);
|
|
29813
30086
|
case "TemplateElement":
|
|
@@ -29816,16 +30089,29 @@ var require_printer_estree_json = __commonJS2({
|
|
|
29816
30089
|
throw new Error("unknown type: " + JSON.stringify(node.type));
|
|
29817
30090
|
}
|
|
29818
30091
|
}
|
|
30092
|
+
function isObjectKey(path) {
|
|
30093
|
+
return path.getName() === "key" && path.getParentNode().type === "ObjectProperty";
|
|
30094
|
+
}
|
|
29819
30095
|
var ignoredProperties = /* @__PURE__ */ new Set(["start", "end", "extra", "loc", "comments", "leadingComments", "trailingComments", "innerComments", "errors", "range", "tokens"]);
|
|
29820
30096
|
function clean(node, newNode) {
|
|
29821
30097
|
const {
|
|
29822
30098
|
type
|
|
29823
30099
|
} = node;
|
|
29824
|
-
if (type === "ObjectProperty"
|
|
29825
|
-
|
|
29826
|
-
|
|
29827
|
-
|
|
29828
|
-
|
|
30100
|
+
if (type === "ObjectProperty") {
|
|
30101
|
+
const {
|
|
30102
|
+
key
|
|
30103
|
+
} = node;
|
|
30104
|
+
if (key.type === "Identifier") {
|
|
30105
|
+
newNode.key = {
|
|
30106
|
+
type: "StringLiteral",
|
|
30107
|
+
value: key.name
|
|
30108
|
+
};
|
|
30109
|
+
} else if (key.type === "NumericLiteral") {
|
|
30110
|
+
newNode.key = {
|
|
30111
|
+
type: "StringLiteral",
|
|
30112
|
+
value: String(key.value)
|
|
30113
|
+
};
|
|
30114
|
+
}
|
|
29829
30115
|
return;
|
|
29830
30116
|
}
|
|
29831
30117
|
if (type === "UnaryExpression" && node.operator === "+") {
|
|
@@ -30365,6 +30651,18 @@ var require_clean2 = __commonJS2({
|
|
|
30365
30651
|
});
|
|
30366
30652
|
}
|
|
30367
30653
|
}
|
|
30654
|
+
if (ast.type === "value-comma_group" && ast.groups.some((node) => node.type === "value-atword" && node.value.endsWith("[") || node.type === "value-word" && node.value.startsWith("]"))) {
|
|
30655
|
+
return {
|
|
30656
|
+
type: "value-atword",
|
|
30657
|
+
value: ast.groups.map((node) => node.value).join(""),
|
|
30658
|
+
group: {
|
|
30659
|
+
open: null,
|
|
30660
|
+
close: null,
|
|
30661
|
+
groups: [],
|
|
30662
|
+
type: "value-paren_group"
|
|
30663
|
+
}
|
|
30664
|
+
};
|
|
30665
|
+
}
|
|
30368
30666
|
}
|
|
30369
30667
|
clean.ignoredProperties = ignoredProperties;
|
|
30370
30668
|
function cleanCSSStrings(value) {
|
|
@@ -31145,7 +31443,10 @@ var require_printer_postcss = __commonJS2({
|
|
|
31145
31443
|
return [node.raw, hardline];
|
|
31146
31444
|
case "css-root": {
|
|
31147
31445
|
const nodes = printNodeSequence(path, options, print);
|
|
31148
|
-
|
|
31446
|
+
let after = node.raws.after.trim();
|
|
31447
|
+
if (after.startsWith(";")) {
|
|
31448
|
+
after = after.slice(1).trim();
|
|
31449
|
+
}
|
|
31149
31450
|
return [nodes, after ? ` ${after}` : "", getDocParts(nodes).length > 0 ? hardline : ""];
|
|
31150
31451
|
}
|
|
31151
31452
|
case "css-comment": {
|
|
@@ -31167,7 +31468,7 @@ var require_printer_postcss = __commonJS2({
|
|
|
31167
31468
|
if (!isColon && lastLineHasInlineComment(trimmedBetween)) {
|
|
31168
31469
|
value = indent([hardline, dedent(value)]);
|
|
31169
31470
|
}
|
|
31170
|
-
return [node.raws.before.replace(/[\s;]/g, ""), insideICSSRuleNode(path) ? node.prop : maybeToLowerCase(node.prop), trimmedBetween.startsWith("//") ? " " : "", trimmedBetween, node.extend ? "" : " ", isLessParser(options) && node.extend && node.selector ? ["extend(", print("selector"), ")"] : "", value, node.raws.important ? node.raws.important.replace(/\s*!\s*important/i, " !important") : node.important ? " !important" : "", node.raws.scssDefault ? node.raws.scssDefault.replace(/\s*!default/i, " !default") : node.scssDefault ? " !default" : "", node.raws.scssGlobal ? node.raws.scssGlobal.replace(/\s*!global/i, " !global") : node.scssGlobal ? " !global" : "", node.nodes ? [" {", indent([softline, printNodeSequence(path, options, print)]), softline, "}"] : isTemplatePropNode(node) && !parentNode.raws.semicolon && options.originalText[locEnd(node) - 1] !== ";" ? "" : options.__isHTMLStyleAttribute && isLastNode(path, node) ? ifBreak(";") : ";"];
|
|
31471
|
+
return [node.raws.before.replace(/[\s;]/g, ""), parentNode.type === "css-atrule" && parentNode.variable || insideICSSRuleNode(path) ? node.prop : maybeToLowerCase(node.prop), trimmedBetween.startsWith("//") ? " " : "", trimmedBetween, node.extend ? "" : " ", isLessParser(options) && node.extend && node.selector ? ["extend(", print("selector"), ")"] : "", value, node.raws.important ? node.raws.important.replace(/\s*!\s*important/i, " !important") : node.important ? " !important" : "", node.raws.scssDefault ? node.raws.scssDefault.replace(/\s*!default/i, " !default") : node.scssDefault ? " !default" : "", node.raws.scssGlobal ? node.raws.scssGlobal.replace(/\s*!global/i, " !global") : node.scssGlobal ? " !global" : "", node.nodes ? [" {", indent([softline, printNodeSequence(path, options, print)]), softline, "}"] : isTemplatePropNode(node) && !parentNode.raws.semicolon && options.originalText[locEnd(node) - 1] !== ";" ? "" : options.__isHTMLStyleAttribute && isLastNode(path, node) ? ifBreak(";") : ";"];
|
|
31171
31472
|
}
|
|
31172
31473
|
case "css-atrule": {
|
|
31173
31474
|
const parentNode = path.getParentNode();
|
|
@@ -31335,11 +31636,16 @@ var require_printer_postcss = __commonJS2({
|
|
|
31335
31636
|
if (iNode.type === "value-word" && iNode.value.endsWith("-") && isAtWordPlaceholderNode(iNextNode)) {
|
|
31336
31637
|
continue;
|
|
31337
31638
|
}
|
|
31338
|
-
|
|
31339
|
-
|
|
31340
|
-
|
|
31341
|
-
|
|
31342
|
-
|
|
31639
|
+
if (iNode.type === "value-string" && iNode.quoted) {
|
|
31640
|
+
const positionOfOpeningInterpolation = iNode.value.lastIndexOf("#{");
|
|
31641
|
+
const positionOfClosingInterpolation = iNode.value.lastIndexOf("}");
|
|
31642
|
+
if (positionOfOpeningInterpolation !== -1 && positionOfClosingInterpolation !== -1) {
|
|
31643
|
+
insideSCSSInterpolationInString = positionOfOpeningInterpolation > positionOfClosingInterpolation;
|
|
31644
|
+
} else if (positionOfOpeningInterpolation !== -1) {
|
|
31645
|
+
insideSCSSInterpolationInString = true;
|
|
31646
|
+
} else if (positionOfClosingInterpolation !== -1) {
|
|
31647
|
+
insideSCSSInterpolationInString = false;
|
|
31648
|
+
}
|
|
31343
31649
|
}
|
|
31344
31650
|
if (insideSCSSInterpolationInString) {
|
|
31345
31651
|
continue;
|
|
@@ -31347,7 +31653,10 @@ var require_printer_postcss = __commonJS2({
|
|
|
31347
31653
|
if (isColonNode(iNode) || isColonNode(iNextNode)) {
|
|
31348
31654
|
continue;
|
|
31349
31655
|
}
|
|
31350
|
-
if (iNode.type === "value-atword" && iNode.value === "") {
|
|
31656
|
+
if (iNode.type === "value-atword" && (iNode.value === "" || iNode.value.endsWith("["))) {
|
|
31657
|
+
continue;
|
|
31658
|
+
}
|
|
31659
|
+
if (iNextNode.type === "value-word" && iNextNode.value.startsWith("]")) {
|
|
31351
31660
|
continue;
|
|
31352
31661
|
}
|
|
31353
31662
|
if (iNode.value === "~") {
|
|
@@ -31388,6 +31697,9 @@ var require_printer_postcss = __commonJS2({
|
|
|
31388
31697
|
if (!(isMultiplicationNode(iNextNode) || isMultiplicationNode(iNode)) && !insideValueFunctionNode(path, "calc") && !isColorAdjusterNode && (isDivisionNode(iNextNode) && !requireSpaceBeforeOperator || isDivisionNode(iNode) && !requireSpaceAfterOperator || isAdditionNode(iNextNode) && !requireSpaceBeforeOperator || isAdditionNode(iNode) && !requireSpaceAfterOperator || isSubtractionNode(iNextNode) || isSubtractionNode(iNode)) && (hasEmptyRawBefore(iNextNode) || isMathOperator && (!iPrevNode || iPrevNode && isMathOperatorNode(iPrevNode)))) {
|
|
31389
31698
|
continue;
|
|
31390
31699
|
}
|
|
31700
|
+
if ((options.parser === "scss" || options.parser === "less") && isMathOperator && iNode.value === "-" && isParenGroupNode(iNextNode) && locEnd(iNode) === locStart(iNextNode.open) && iNextNode.open.value === "(") {
|
|
31701
|
+
continue;
|
|
31702
|
+
}
|
|
31391
31703
|
if (isInlineValueCommentNode(iNode)) {
|
|
31392
31704
|
if (parentNode.type === "value-paren_group") {
|
|
31393
31705
|
parts.push(dedent(hardline));
|
|
@@ -31476,14 +31788,17 @@ var require_printer_postcss = __commonJS2({
|
|
|
31476
31788
|
const printed = group([node.open ? print("open") : "", indent([softline, join([line], path.map((childPath, index) => {
|
|
31477
31789
|
const child = childPath.getValue();
|
|
31478
31790
|
const isLast = index === node.groups.length - 1;
|
|
31479
|
-
|
|
31791
|
+
let printed2 = [print(), isLast ? "" : ","];
|
|
31480
31792
|
if (isKeyValuePairNode(child) && child.type === "value-comma_group" && child.groups && child.groups[0].type !== "value-paren_group" && child.groups[2] && child.groups[2].type === "value-paren_group") {
|
|
31481
31793
|
const parts = getDocParts(printed2[0].contents.contents);
|
|
31482
31794
|
parts[1] = group(parts[1]);
|
|
31483
|
-
|
|
31795
|
+
printed2 = [group(dedent(printed2))];
|
|
31484
31796
|
}
|
|
31485
31797
|
if (!isLast && child.type === "value-comma_group" && isNonEmptyArray(child.groups)) {
|
|
31486
|
-
|
|
31798
|
+
let last = getLast(child.groups);
|
|
31799
|
+
if (!last.source && last.close) {
|
|
31800
|
+
last = last.close;
|
|
31801
|
+
}
|
|
31487
31802
|
if (last.source && isNextLineEmpty(options.originalText, last, locEnd)) {
|
|
31488
31803
|
printed2.push(hardline);
|
|
31489
31804
|
}
|
|
@@ -31776,7 +32091,7 @@ var require_utils9 = __commonJS2({
|
|
|
31776
32091
|
}
|
|
31777
32092
|
var voidTags = new Set(htmlVoidElements);
|
|
31778
32093
|
function isVoid(node) {
|
|
31779
|
-
return voidTags.has(node.tag) || isGlimmerComponent(node) && node.children.every((node2) => isWhitespaceNode(node2));
|
|
32094
|
+
return voidTags.has(node.tag) || node.selfClosing === true || isGlimmerComponent(node) && node.children.every((node2) => isWhitespaceNode(node2));
|
|
31780
32095
|
}
|
|
31781
32096
|
function isWhitespaceNode(node) {
|
|
31782
32097
|
return isNodeOfSomeType(node, ["TextNode"]) && !/\S/.test(node.chars);
|
|
@@ -32180,8 +32495,13 @@ var require_printer_glimmer = __commonJS2({
|
|
|
32180
32495
|
return [options.htmlWhitespaceSensitivity === "ignore" ? hardline : "", printInverseBlockOpeningMustache(node), "else", printInverseBlockClosingMustache(node)];
|
|
32181
32496
|
}
|
|
32182
32497
|
function printElseIfLikeBlock(path, print2, ifLikeKeyword) {
|
|
32498
|
+
const node = path.getValue();
|
|
32499
|
+
let blockParams = [];
|
|
32500
|
+
if (isNonEmptyArray(node.program.blockParams)) {
|
|
32501
|
+
blockParams = [line, printBlockParams(node.program)];
|
|
32502
|
+
}
|
|
32183
32503
|
const parentNode = path.getParentNode(1);
|
|
32184
|
-
return [printInverseBlockOpeningMustache(parentNode), "else
|
|
32504
|
+
return group([printInverseBlockOpeningMustache(parentNode), indent(group([group(["else", line, ifLikeKeyword]), line, printParams(path, print2)])), indent(blockParams), softline, printInverseBlockClosingMustache(parentNode)]);
|
|
32185
32505
|
}
|
|
32186
32506
|
function printCloseBlock(path, print2, options) {
|
|
32187
32507
|
const node = path.getValue();
|
|
@@ -32696,6 +33016,15 @@ var require_language_graphql = __commonJS2({
|
|
|
32696
33016
|
};
|
|
32697
33017
|
}
|
|
32698
33018
|
});
|
|
33019
|
+
var require_collapse_white_space = __commonJS2({
|
|
33020
|
+
"node_modules/collapse-white-space/index.js"(exports2, module2) {
|
|
33021
|
+
"use strict";
|
|
33022
|
+
module2.exports = collapse;
|
|
33023
|
+
function collapse(value) {
|
|
33024
|
+
return String(value).replace(/\s+/g, " ");
|
|
33025
|
+
}
|
|
33026
|
+
}
|
|
33027
|
+
});
|
|
32699
33028
|
var require_loc5 = __commonJS2({
|
|
32700
33029
|
"src/language-markdown/loc.js"(exports2, module2) {
|
|
32701
33030
|
"use strict";
|
|
@@ -33146,6 +33475,7 @@ var require_print_preprocess2 = __commonJS2({
|
|
|
33146
33475
|
var require_clean4 = __commonJS2({
|
|
33147
33476
|
"src/language-markdown/clean.js"(exports2, module2) {
|
|
33148
33477
|
"use strict";
|
|
33478
|
+
var collapseWhiteSpace = require_collapse_white_space();
|
|
33149
33479
|
var {
|
|
33150
33480
|
isFrontMatterNode
|
|
33151
33481
|
} = require_util();
|
|
@@ -33173,8 +33503,8 @@ var require_clean4 = __commonJS2({
|
|
|
33173
33503
|
if (ast.type === "wikiLink") {
|
|
33174
33504
|
newObj.value = ast.value.trim().replace(/[\t\n]+/g, " ");
|
|
33175
33505
|
}
|
|
33176
|
-
if (ast.type === "definition" || ast.type === "linkReference") {
|
|
33177
|
-
newObj.label = ast.label
|
|
33506
|
+
if (ast.type === "definition" || ast.type === "linkReference" || ast.type === "imageReference") {
|
|
33507
|
+
newObj.label = collapseWhiteSpace(ast.label);
|
|
33178
33508
|
}
|
|
33179
33509
|
if ((ast.type === "definition" || ast.type === "link" || ast.type === "image") && ast.title) {
|
|
33180
33510
|
newObj.title = ast.title.replace(/\\(["')])/g, "$1");
|
|
@@ -33190,6 +33520,7 @@ var require_clean4 = __commonJS2({
|
|
|
33190
33520
|
var require_printer_markdown = __commonJS2({
|
|
33191
33521
|
"src/language-markdown/printer-markdown.js"(exports2, module2) {
|
|
33192
33522
|
"use strict";
|
|
33523
|
+
var collapseWhiteSpace = require_collapse_white_space();
|
|
33193
33524
|
var {
|
|
33194
33525
|
getLast,
|
|
33195
33526
|
getMinNotPresentContinuousCount,
|
|
@@ -33373,26 +33704,26 @@ var require_printer_markdown = __commonJS2({
|
|
|
33373
33704
|
return nthSiblingIndex % 2 === 0 ? "***" : "---";
|
|
33374
33705
|
}
|
|
33375
33706
|
case "linkReference":
|
|
33376
|
-
return ["[", printChildren(path, options, print), "]", node.referenceType === "full" ?
|
|
33707
|
+
return ["[", printChildren(path, options, print), "]", node.referenceType === "full" ? printLinkReference(node) : node.referenceType === "collapsed" ? "[]" : ""];
|
|
33377
33708
|
case "imageReference":
|
|
33378
33709
|
switch (node.referenceType) {
|
|
33379
33710
|
case "full":
|
|
33380
|
-
return ["![", node.alt || "", "]
|
|
33711
|
+
return ["![", node.alt || "", "]", printLinkReference(node)];
|
|
33381
33712
|
default:
|
|
33382
33713
|
return ["![", node.alt, "]", node.referenceType === "collapsed" ? "[]" : ""];
|
|
33383
33714
|
}
|
|
33384
33715
|
case "definition": {
|
|
33385
33716
|
const lineOrSpace = options.proseWrap === "always" ? line : " ";
|
|
33386
|
-
return group([
|
|
33717
|
+
return group([printLinkReference(node), ":", indent([lineOrSpace, printUrl(node.url), node.title === null ? "" : [lineOrSpace, printTitle(node.title, options, false)]])]);
|
|
33387
33718
|
}
|
|
33388
33719
|
case "footnote":
|
|
33389
33720
|
return ["[^", printChildren(path, options, print), "]"];
|
|
33390
33721
|
case "footnoteReference":
|
|
33391
|
-
return
|
|
33722
|
+
return printFootnoteReference(node);
|
|
33392
33723
|
case "footnoteDefinition": {
|
|
33393
33724
|
const nextNode = path.getParentNode().children[path.getName() + 1];
|
|
33394
33725
|
const shouldInlineFootnote = node.children.length === 1 && node.children[0].type === "paragraph" && (options.proseWrap === "never" || options.proseWrap === "preserve" && node.children[0].position.start.line === node.children[0].position.end.line);
|
|
33395
|
-
return [
|
|
33726
|
+
return [printFootnoteReference(node), ": ", shouldInlineFootnote ? printChildren(path, options, print) : group([align(" ".repeat(4), printChildren(path, options, print, {
|
|
33396
33727
|
processor: (childPath, index) => index === 0 ? group([softline, print()]) : print()
|
|
33397
33728
|
})), nextNode && nextNode.type === "footnoteDefinition" ? softline : ""])];
|
|
33398
33729
|
}
|
|
@@ -33718,6 +34049,12 @@ var require_printer_markdown = __commonJS2({
|
|
|
33718
34049
|
const prevNode = path.getParentNode().children[index - 1];
|
|
33719
34050
|
return isPrettierIgnore(prevNode) === "next";
|
|
33720
34051
|
}
|
|
34052
|
+
function printLinkReference(node) {
|
|
34053
|
+
return `[${collapseWhiteSpace(node.label)}]`;
|
|
34054
|
+
}
|
|
34055
|
+
function printFootnoteReference(node) {
|
|
34056
|
+
return `[^${node.label}]`;
|
|
34057
|
+
}
|
|
33721
34058
|
module2.exports = {
|
|
33722
34059
|
preprocess,
|
|
33723
34060
|
print: genericPrint,
|
|
@@ -36937,8 +37274,8 @@ var require_utils12 = __commonJS2({
|
|
|
36937
37274
|
function hasPrettierIgnore(path) {
|
|
36938
37275
|
const node = path.getValue();
|
|
36939
37276
|
if (node.type === "documentBody") {
|
|
36940
|
-
const
|
|
36941
|
-
return hasEndComments(
|
|
37277
|
+
const document2 = path.getParentNode();
|
|
37278
|
+
return hasEndComments(document2.head) && isPrettierIgnore(getLast(document2.head.endComments));
|
|
36942
37279
|
}
|
|
36943
37280
|
return hasLeadingComments(node) && isPrettierIgnore(getLast(node.leadingComments));
|
|
36944
37281
|
}
|
|
@@ -37495,15 +37832,15 @@ var require_printer_yaml = __commonJS2({
|
|
|
37495
37832
|
} = node;
|
|
37496
37833
|
const parts = [];
|
|
37497
37834
|
path.each((childPath, index) => {
|
|
37498
|
-
const
|
|
37835
|
+
const document2 = children[index];
|
|
37499
37836
|
const nextDocument = children[index + 1];
|
|
37500
37837
|
if (index !== 0) {
|
|
37501
37838
|
parts.push(hardline);
|
|
37502
37839
|
}
|
|
37503
37840
|
parts.push(print());
|
|
37504
|
-
if (shouldPrintDocumentEndMarker(
|
|
37841
|
+
if (shouldPrintDocumentEndMarker(document2, nextDocument)) {
|
|
37505
37842
|
parts.push(hardline, "...");
|
|
37506
|
-
if (hasTrailingComment(
|
|
37843
|
+
if (hasTrailingComment(document2)) {
|
|
37507
37844
|
parts.push(" ", print("trailingComment"));
|
|
37508
37845
|
}
|
|
37509
37846
|
} else if (nextDocument && !hasTrailingComment(nextDocument.head)) {
|
|
@@ -37610,17 +37947,17 @@ var require_printer_yaml = __commonJS2({
|
|
|
37610
37947
|
throw new Error(`Unexpected node type ${node.type}`);
|
|
37611
37948
|
}
|
|
37612
37949
|
}
|
|
37613
|
-
function shouldPrintDocumentBody(
|
|
37614
|
-
return
|
|
37950
|
+
function shouldPrintDocumentBody(document2) {
|
|
37951
|
+
return document2.body.children.length > 0 || hasEndComments(document2.body);
|
|
37615
37952
|
}
|
|
37616
|
-
function shouldPrintDocumentEndMarker(
|
|
37617
|
-
return hasTrailingComment(
|
|
37953
|
+
function shouldPrintDocumentEndMarker(document2, nextDocument) {
|
|
37954
|
+
return hasTrailingComment(document2) || nextDocument && (nextDocument.head.children.length > 0 || hasEndComments(nextDocument.head));
|
|
37618
37955
|
}
|
|
37619
|
-
function shouldPrintDocumentHeadEndMarker(
|
|
37620
|
-
if (root.children[0] ===
|
|
37956
|
+
function shouldPrintDocumentHeadEndMarker(document2, nextDocument, root, options) {
|
|
37957
|
+
if (root.children[0] === document2 && /---(?:\s|$)/.test(options.originalText.slice(locStart(document2), locStart(document2) + 4)) || document2.head.children.length > 0 || hasEndComments(document2.head) || hasTrailingComment(document2.head)) {
|
|
37621
37958
|
return "head";
|
|
37622
37959
|
}
|
|
37623
|
-
if (shouldPrintDocumentEndMarker(
|
|
37960
|
+
if (shouldPrintDocumentEndMarker(document2, nextDocument)) {
|
|
37624
37961
|
return false;
|
|
37625
37962
|
}
|
|
37626
37963
|
return nextDocument ? "root" : false;
|