@voidzero-dev/vite-plus-test 0.1.1 → 0.1.3

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.
@@ -1,5 +1,4 @@
1
- import { t as __commonJSMin } from "./shared-BL6rqJMI.mjs";
2
-
1
+ import { t as __commonJSMin } from "./shared-BelWnsAF.mjs";
3
2
  //#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/constants.js
4
3
  var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5
4
  const WIN_SLASH = "\\\\/";
@@ -16,13 +15,6 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16
15
  const END_ANCHOR = `(?:${SLASH_LITERAL}|$)`;
17
16
  const START_ANCHOR = `(?:^|${SLASH_LITERAL})`;
18
17
  const DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`;
19
- const NO_DOT = `(?!${DOT_LITERAL})`;
20
- const NO_DOTS = `(?!${START_ANCHOR}${DOTS_SLASH})`;
21
- const NO_DOT_SLASH = `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`;
22
- const NO_DOTS_SLASH = `(?!${DOTS_SLASH})`;
23
- const QMARK_NO_DOT = `[^.${SLASH_LITERAL}]`;
24
- const STAR = `${QMARK}*?`;
25
- const SEP = "/";
26
18
  const POSIX_CHARS = {
27
19
  DOT_LITERAL,
28
20
  PLUS_LITERAL,
@@ -32,14 +24,14 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
32
24
  QMARK,
33
25
  END_ANCHOR,
34
26
  DOTS_SLASH,
35
- NO_DOT,
36
- NO_DOTS,
37
- NO_DOT_SLASH,
38
- NO_DOTS_SLASH,
39
- QMARK_NO_DOT,
40
- STAR,
27
+ NO_DOT: `(?!${DOT_LITERAL})`,
28
+ NO_DOTS: `(?!${START_ANCHOR}${DOTS_SLASH})`,
29
+ NO_DOT_SLASH: `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`,
30
+ NO_DOTS_SLASH: `(?!${DOTS_SLASH})`,
31
+ QMARK_NO_DOT: `[^.${SLASH_LITERAL}]`,
32
+ STAR: `${QMARK}*?`,
41
33
  START_ANCHOR,
42
- SEP
34
+ SEP: "/"
43
35
  };
44
36
  /**
45
37
  * Windows glob regex
@@ -59,28 +51,24 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
59
51
  END_ANCHOR: `(?:[${WIN_SLASH}]|$)`,
60
52
  SEP: "\\"
61
53
  };
62
- /**
63
- * POSIX Bracket Regex
64
- */
65
- const POSIX_REGEX_SOURCE = {
66
- alnum: "a-zA-Z0-9",
67
- alpha: "a-zA-Z",
68
- ascii: "\\x00-\\x7F",
69
- blank: " \\t",
70
- cntrl: "\\x00-\\x1F\\x7F",
71
- digit: "0-9",
72
- graph: "\\x21-\\x7E",
73
- lower: "a-z",
74
- print: "\\x20-\\x7E ",
75
- punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
76
- space: " \\t\\r\\n\\v\\f",
77
- upper: "A-Z",
78
- word: "A-Za-z0-9_",
79
- xdigit: "A-Fa-f0-9"
80
- };
81
54
  module.exports = {
82
55
  MAX_LENGTH: 1024 * 64,
83
- POSIX_REGEX_SOURCE,
56
+ POSIX_REGEX_SOURCE: {
57
+ alnum: "a-zA-Z0-9",
58
+ alpha: "a-zA-Z",
59
+ ascii: "\\x00-\\x7F",
60
+ blank: " \\t",
61
+ cntrl: "\\x00-\\x1F\\x7F",
62
+ digit: "0-9",
63
+ graph: "\\x21-\\x7E",
64
+ lower: "a-z",
65
+ print: "\\x20-\\x7E ",
66
+ punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
67
+ space: " \\t\\r\\n\\v\\f",
68
+ upper: "A-Z",
69
+ word: "A-Za-z0-9_",
70
+ xdigit: "A-Fa-f0-9"
71
+ },
84
72
  REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
85
73
  REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
86
74
  REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
@@ -170,7 +158,6 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
170
158
  }
171
159
  };
172
160
  }));
173
-
174
161
  //#endregion
175
162
  //#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/utils.js
176
163
  var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -185,9 +172,7 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
185
172
  const platform = navigator.platform.toLowerCase();
186
173
  return platform === "win32" || platform === "windows";
187
174
  }
188
- if (typeof process !== "undefined" && process.platform) {
189
- return process.platform === "win32";
190
- }
175
+ if (typeof process !== "undefined" && process.platform) return process.platform === "win32";
191
176
  return false;
192
177
  };
193
178
  exports.removeBackslashes = (str) => {
@@ -210,24 +195,17 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
210
195
  return output;
211
196
  };
212
197
  exports.wrapOutput = (input, state = {}, options = {}) => {
213
- const prepend = options.contains ? "" : "^";
214
- const append = options.contains ? "" : "$";
215
- let output = `${prepend}(?:${input})${append}`;
216
- if (state.negated === true) {
217
- output = `(?:^(?!${output}).*$)`;
218
- }
198
+ let output = `${options.contains ? "" : "^"}(?:${input})${options.contains ? "" : "$"}`;
199
+ if (state.negated === true) output = `(?:^(?!${output}).*$)`;
219
200
  return output;
220
201
  };
221
202
  exports.basename = (path, { windows } = {}) => {
222
203
  const segs = path.split(windows ? /[\\/]/ : "/");
223
204
  const last = segs[segs.length - 1];
224
- if (last === "") {
225
- return segs[segs.length - 2];
226
- }
205
+ if (last === "") return segs[segs.length - 2];
227
206
  return last;
228
207
  };
229
208
  }));
230
-
231
209
  //#endregion
232
210
  //#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/scan.js
233
211
  var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -237,9 +215,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
237
215
  return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
238
216
  };
239
217
  const depth = (token) => {
240
- if (token.isPrefix !== true) {
241
- token.depth = token.isGlobstar ? Infinity : 1;
242
- }
218
+ if (token.isPrefix !== true) token.depth = token.isGlobstar ? Infinity : 1;
243
219
  };
244
220
  /**
245
221
  * Quickly scans a glob pattern and returns an object with a handful of
@@ -298,9 +274,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
298
274
  if (code === CHAR_BACKWARD_SLASH) {
299
275
  backslashes = token.backslashes = true;
300
276
  code = advance();
301
- if (code === CHAR_LEFT_CURLY_BRACE) {
302
- braceEscaped = true;
303
- }
277
+ if (code === CHAR_LEFT_CURLY_BRACE) braceEscaped = true;
304
278
  continue;
305
279
  }
306
280
  if (braceEscaped === true || code === CHAR_LEFT_CURLY_BRACE) {
@@ -319,18 +293,14 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
319
293
  isBrace = token.isBrace = true;
320
294
  isGlob = token.isGlob = true;
321
295
  finished = true;
322
- if (scanToEnd === true) {
323
- continue;
324
- }
296
+ if (scanToEnd === true) continue;
325
297
  break;
326
298
  }
327
299
  if (braceEscaped !== true && code === CHAR_COMMA) {
328
300
  isBrace = token.isBrace = true;
329
301
  isGlob = token.isGlob = true;
330
302
  finished = true;
331
- if (scanToEnd === true) {
332
- continue;
333
- }
303
+ if (scanToEnd === true) continue;
334
304
  break;
335
305
  }
336
306
  if (code === CHAR_RIGHT_CURLY_BRACE) {
@@ -343,9 +313,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
343
313
  }
344
314
  }
345
315
  }
346
- if (scanToEnd === true) {
347
- continue;
348
- }
316
+ if (scanToEnd === true) continue;
349
317
  break;
350
318
  }
351
319
  if (code === CHAR_FORWARD_SLASH) {
@@ -365,14 +333,11 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
365
333
  continue;
366
334
  }
367
335
  if (opts.noext !== true) {
368
- const isExtglobChar = code === CHAR_PLUS || code === CHAR_AT || code === CHAR_ASTERISK || code === CHAR_QUESTION_MARK || code === CHAR_EXCLAMATION_MARK;
369
- if (isExtglobChar === true && peek() === CHAR_LEFT_PARENTHESES) {
336
+ if ((code === CHAR_PLUS || code === CHAR_AT || code === CHAR_ASTERISK || code === CHAR_QUESTION_MARK || code === CHAR_EXCLAMATION_MARK) === true && peek() === CHAR_LEFT_PARENTHESES) {
370
337
  isGlob = token.isGlob = true;
371
338
  isExtglob = token.isExtglob = true;
372
339
  finished = true;
373
- if (code === CHAR_EXCLAMATION_MARK && index === start) {
374
- negatedExtglob = true;
375
- }
340
+ if (code === CHAR_EXCLAMATION_MARK && index === start) negatedExtglob = true;
376
341
  if (scanToEnd === true) {
377
342
  while (eos() !== true && (code = advance())) {
378
343
  if (code === CHAR_BACKWARD_SLASH) {
@@ -395,17 +360,13 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
395
360
  if (prev === CHAR_ASTERISK) isGlobstar = token.isGlobstar = true;
396
361
  isGlob = token.isGlob = true;
397
362
  finished = true;
398
- if (scanToEnd === true) {
399
- continue;
400
- }
363
+ if (scanToEnd === true) continue;
401
364
  break;
402
365
  }
403
366
  if (code === CHAR_QUESTION_MARK) {
404
367
  isGlob = token.isGlob = true;
405
368
  finished = true;
406
- if (scanToEnd === true) {
407
- continue;
408
- }
369
+ if (scanToEnd === true) continue;
409
370
  break;
410
371
  }
411
372
  if (code === CHAR_LEFT_SQUARE_BRACKET) {
@@ -422,9 +383,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
422
383
  break;
423
384
  }
424
385
  }
425
- if (scanToEnd === true) {
426
- continue;
427
- }
386
+ if (scanToEnd === true) continue;
428
387
  break;
429
388
  }
430
389
  if (opts.nonegate !== true && code === CHAR_EXCLAMATION_MARK && index === start) {
@@ -452,9 +411,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
452
411
  }
453
412
  if (isGlob === true) {
454
413
  finished = true;
455
- if (scanToEnd === true) {
456
- continue;
457
- }
414
+ if (scanToEnd === true) continue;
458
415
  break;
459
416
  }
460
417
  }
@@ -476,19 +433,13 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
476
433
  } else if (isGlob === true) {
477
434
  base = "";
478
435
  glob = str;
479
- } else {
480
- base = str;
481
- }
436
+ } else base = str;
482
437
  if (base && base !== "" && base !== "/" && base !== str) {
483
- if (isPathSeparator(base.charCodeAt(base.length - 1))) {
484
- base = base.slice(0, -1);
485
- }
438
+ if (isPathSeparator(base.charCodeAt(base.length - 1))) base = base.slice(0, -1);
486
439
  }
487
440
  if (opts.unescape === true) {
488
441
  if (glob) glob = utils.removeBackslashes(glob);
489
- if (base && backslashes === true) {
490
- base = utils.removeBackslashes(base);
491
- }
442
+ if (base && backslashes === true) base = utils.removeBackslashes(base);
492
443
  }
493
444
  const state = {
494
445
  prefix,
@@ -506,9 +457,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
506
457
  };
507
458
  if (opts.tokens === true) {
508
459
  state.maxDepth = 0;
509
- if (!isPathSeparator(code)) {
510
- tokens.push(token);
511
- }
460
+ if (!isPathSeparator(code)) tokens.push(token);
512
461
  state.tokens = tokens;
513
462
  }
514
463
  if (opts.parts === true || opts.tokens === true) {
@@ -521,15 +470,11 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
521
470
  if (idx === 0 && start !== 0) {
522
471
  tokens[idx].isPrefix = true;
523
472
  tokens[idx].value = prefix;
524
- } else {
525
- tokens[idx].value = value;
526
- }
473
+ } else tokens[idx].value = value;
527
474
  depth(tokens[idx]);
528
475
  state.maxDepth += tokens[idx].depth;
529
476
  }
530
- if (idx !== 0 || value !== "") {
531
- parts.push(value);
532
- }
477
+ if (idx !== 0 || value !== "") parts.push(value);
533
478
  prevIndex = i;
534
479
  }
535
480
  if (prevIndex && prevIndex + 1 < input.length) {
@@ -548,7 +493,6 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
548
493
  };
549
494
  module.exports = scan;
550
495
  }));
551
-
552
496
  //#endregion
553
497
  //#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/parse.js
554
498
  var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -562,9 +506,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
562
506
  * Helpers
563
507
  */
564
508
  const expandRange = (args, options) => {
565
- if (typeof options.expandRange === "function") {
566
- return options.expandRange(...args, options);
567
- }
509
+ if (typeof options.expandRange === "function") return options.expandRange(...args, options);
568
510
  args.sort();
569
511
  const value = `[${args.join("-")}]`;
570
512
  try {
@@ -587,16 +529,12 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
587
529
  * @return {Object}
588
530
  */
589
531
  const parse = (input, options) => {
590
- if (typeof input !== "string") {
591
- throw new TypeError("Expected a string");
592
- }
532
+ if (typeof input !== "string") throw new TypeError("Expected a string");
593
533
  input = REPLACEMENTS[input] || input;
594
534
  const opts = { ...options };
595
535
  const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
596
536
  let len = input.length;
597
- if (len > max) {
598
- throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
599
- }
537
+ if (len > max) throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
600
538
  const bos = {
601
539
  type: "bos",
602
540
  value: "",
@@ -613,12 +551,8 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
613
551
  const nodot = opts.dot ? "" : NO_DOT;
614
552
  const qmarkNoDot = opts.dot ? QMARK : QMARK_NO_DOT;
615
553
  let star = opts.bash === true ? globstar(opts) : STAR;
616
- if (opts.capture) {
617
- star = `(${star})`;
618
- }
619
- if (typeof opts.noext === "boolean") {
620
- opts.noextglob = opts.noext;
621
- }
554
+ if (opts.capture) star = `(${star})`;
555
+ if (typeof opts.noext === "boolean") opts.noextglob = opts.noext;
622
556
  const state = {
623
557
  input,
624
558
  index: -1,
@@ -665,9 +599,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
665
599
  state.start++;
666
600
  count++;
667
601
  }
668
- if (count % 2 === 0) {
669
- return false;
670
- }
602
+ if (count % 2 === 0) return false;
671
603
  state.negated = true;
672
604
  state.start++;
673
605
  return true;
@@ -699,9 +631,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
699
631
  state.output += prev.output;
700
632
  }
701
633
  }
702
- if (extglobs.length && tok.type !== "paren") {
703
- extglobs[extglobs.length - 1].inner += tok.value;
704
- }
634
+ if (extglobs.length && tok.type !== "paren") extglobs[extglobs.length - 1].inner += tok.value;
705
635
  if (tok.value || tok.output) append(tok);
706
636
  if (prev && prev.type === "text" && tok.type === "text") {
707
637
  prev.output = (prev.output || prev.value) + tok.value;
@@ -741,22 +671,13 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
741
671
  let rest;
742
672
  if (token.type === "negate") {
743
673
  let extglobStar = star;
744
- if (token.inner && token.inner.length > 1 && token.inner.includes("/")) {
745
- extglobStar = globstar(opts);
746
- }
747
- if (extglobStar !== star || eos() || /^\)+$/.test(remaining())) {
748
- output = token.close = `)$))${extglobStar}`;
749
- }
750
- if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
751
- const expression = parse(rest, {
752
- ...options,
753
- fastpaths: false
754
- }).output;
755
- output = token.close = `)${expression})${extglobStar})`;
756
- }
757
- if (token.prev.type === "bos") {
758
- state.negatedExtglob = true;
759
- }
674
+ if (token.inner && token.inner.length > 1 && token.inner.includes("/")) extglobStar = globstar(opts);
675
+ if (extglobStar !== star || eos() || /^\)+$/.test(remaining())) output = token.close = `)$))${extglobStar}`;
676
+ if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) output = token.close = `)${parse(rest, {
677
+ ...options,
678
+ fastpaths: false
679
+ }).output})${extglobStar})`;
680
+ if (token.prev.type === "bos") state.negatedExtglob = true;
760
681
  }
761
682
  push({
762
683
  type: "paren",
@@ -777,34 +698,21 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
777
698
  return m;
778
699
  }
779
700
  if (first === "?") {
780
- if (esc) {
781
- return esc + first + (rest ? QMARK.repeat(rest.length) : "");
782
- }
783
- if (index === 0) {
784
- return qmarkNoDot + (rest ? QMARK.repeat(rest.length) : "");
785
- }
701
+ if (esc) return esc + first + (rest ? QMARK.repeat(rest.length) : "");
702
+ if (index === 0) return qmarkNoDot + (rest ? QMARK.repeat(rest.length) : "");
786
703
  return QMARK.repeat(chars.length);
787
704
  }
788
- if (first === ".") {
789
- return DOT_LITERAL.repeat(chars.length);
790
- }
705
+ if (first === ".") return DOT_LITERAL.repeat(chars.length);
791
706
  if (first === "*") {
792
- if (esc) {
793
- return esc + first + (rest ? star : "");
794
- }
707
+ if (esc) return esc + first + (rest ? star : "");
795
708
  return star;
796
709
  }
797
710
  return esc ? m : `\\${m}`;
798
711
  });
799
- if (backslashes === true) {
800
- if (opts.unescape === true) {
801
- output = output.replace(/\\/g, "");
802
- } else {
803
- output = output.replace(/\\+/g, (m) => {
804
- return m.length % 2 === 0 ? "\\\\" : m ? "\\" : "";
805
- });
806
- }
807
- }
712
+ if (backslashes === true) if (opts.unescape === true) output = output.replace(/\\/g, "");
713
+ else output = output.replace(/\\+/g, (m) => {
714
+ return m.length % 2 === 0 ? "\\\\" : m ? "\\" : "";
715
+ });
808
716
  if (output === input && opts.contains === true) {
809
717
  state.output = input;
810
718
  return state;
@@ -817,20 +725,14 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
817
725
  */
818
726
  while (!eos()) {
819
727
  value = advance();
820
- if (value === "\0") {
821
- continue;
822
- }
728
+ if (value === "\0") continue;
823
729
  /**
824
730
  * Escaped characters
825
731
  */
826
732
  if (value === "\\") {
827
733
  const next = peek();
828
- if (next === "/" && opts.bash !== true) {
829
- continue;
830
- }
831
- if (next === "." || next === ";") {
832
- continue;
833
- }
734
+ if (next === "/" && opts.bash !== true) continue;
735
+ if (next === "." || next === ";") continue;
834
736
  if (!next) {
835
737
  value += "\\";
836
738
  push({
@@ -844,15 +746,10 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
844
746
  if (match && match[0].length > 2) {
845
747
  slashes = match[0].length;
846
748
  state.index += slashes;
847
- if (slashes % 2 !== 0) {
848
- value += "\\";
849
- }
850
- }
851
- if (opts.unescape === true) {
852
- value = advance();
853
- } else {
854
- value += advance();
749
+ if (slashes % 2 !== 0) value += "\\";
855
750
  }
751
+ if (opts.unescape === true) value = advance();
752
+ else value += advance();
856
753
  if (state.brackets === 0) {
857
754
  push({
858
755
  type: "text",
@@ -873,29 +770,20 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
873
770
  if (inner.includes(":")) {
874
771
  const idx = prev.value.lastIndexOf("[");
875
772
  const pre = prev.value.slice(0, idx);
876
- const rest = prev.value.slice(idx + 2);
877
- const posix = POSIX_REGEX_SOURCE[rest];
773
+ const posix = POSIX_REGEX_SOURCE[prev.value.slice(idx + 2)];
878
774
  if (posix) {
879
775
  prev.value = pre + posix;
880
776
  state.backtrack = true;
881
777
  advance();
882
- if (!bos.output && tokens.indexOf(prev) === 1) {
883
- bos.output = ONE_CHAR;
884
- }
778
+ if (!bos.output && tokens.indexOf(prev) === 1) bos.output = ONE_CHAR;
885
779
  continue;
886
780
  }
887
781
  }
888
782
  }
889
783
  }
890
- if (value === "[" && peek() !== ":" || value === "-" && peek() === "]") {
891
- value = `\\${value}`;
892
- }
893
- if (value === "]" && (prev.value === "[" || prev.value === "[^")) {
894
- value = `\\${value}`;
895
- }
896
- if (opts.posix === true && value === "!" && prev.value === "[") {
897
- value = "^";
898
- }
784
+ if (value === "[" && peek() !== ":" || value === "-" && peek() === "]") value = `\\${value}`;
785
+ if (value === "]" && (prev.value === "[" || prev.value === "[^")) value = `\\${value}`;
786
+ if (opts.posix === true && value === "!" && prev.value === "[") value = "^";
899
787
  prev.value += value;
900
788
  append({ value });
901
789
  continue;
@@ -915,12 +803,10 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
915
803
  */
916
804
  if (value === "\"") {
917
805
  state.quotes = state.quotes === 1 ? 0 : 1;
918
- if (opts.keepQuotes === true) {
919
- push({
920
- type: "text",
921
- value
922
- });
923
- }
806
+ if (opts.keepQuotes === true) push({
807
+ type: "text",
808
+ value
809
+ });
924
810
  continue;
925
811
  }
926
812
  /**
@@ -935,9 +821,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
935
821
  continue;
936
822
  }
937
823
  if (value === ")") {
938
- if (state.parens === 0 && opts.strictBrackets === true) {
939
- throw new SyntaxError(syntaxError("opening", "("));
940
- }
824
+ if (state.parens === 0 && opts.strictBrackets === true) throw new SyntaxError(syntaxError("opening", "("));
941
825
  const extglob = extglobs[extglobs.length - 1];
942
826
  if (extglob && state.parens === extglob.parens + 1) {
943
827
  extglobClose(extglobs.pop());
@@ -956,13 +840,9 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
956
840
  */
957
841
  if (value === "[") {
958
842
  if (opts.nobracket === true || !remaining().includes("]")) {
959
- if (opts.nobracket !== true && opts.strictBrackets === true) {
960
- throw new SyntaxError(syntaxError("closing", "]"));
961
- }
843
+ if (opts.nobracket !== true && opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "]"));
962
844
  value = `\\${value}`;
963
- } else {
964
- increment("brackets");
965
- }
845
+ } else increment("brackets");
966
846
  push({
967
847
  type: "bracket",
968
848
  value
@@ -979,9 +859,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
979
859
  continue;
980
860
  }
981
861
  if (state.brackets === 0) {
982
- if (opts.strictBrackets === true) {
983
- throw new SyntaxError(syntaxError("opening", "["));
984
- }
862
+ if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("opening", "["));
985
863
  push({
986
864
  type: "text",
987
865
  value,
@@ -991,14 +869,10 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
991
869
  }
992
870
  decrement("brackets");
993
871
  const prevValue = prev.value.slice(1);
994
- if (prev.posix !== true && prevValue[0] === "^" && !prevValue.includes("/")) {
995
- value = `/${value}`;
996
- }
872
+ if (prev.posix !== true && prevValue[0] === "^" && !prevValue.includes("/")) value = `/${value}`;
997
873
  prev.value += value;
998
874
  append({ value });
999
- if (opts.literalBrackets === false || utils.hasRegexChars(prevValue)) {
1000
- continue;
1001
- }
875
+ if (opts.literalBrackets === false || utils.hasRegexChars(prevValue)) continue;
1002
876
  const escaped = utils.escapeRegex(prev.value);
1003
877
  state.output = state.output.slice(0, -prev.value.length);
1004
878
  if (opts.literalBrackets === true) {
@@ -1042,12 +916,8 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1042
916
  const range = [];
1043
917
  for (let i = arr.length - 1; i >= 0; i--) {
1044
918
  tokens.pop();
1045
- if (arr[i].type === "brace") {
1046
- break;
1047
- }
1048
- if (arr[i].type !== "dots") {
1049
- range.unshift(arr[i].value);
1050
- }
919
+ if (arr[i].type === "brace") break;
920
+ if (arr[i].type !== "dots") range.unshift(arr[i].value);
1051
921
  }
1052
922
  output = expandRange(range, opts);
1053
923
  state.backtrack = true;
@@ -1058,9 +928,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1058
928
  brace.value = brace.output = "\\{";
1059
929
  value = output = "\\}";
1060
930
  state.output = out;
1061
- for (const t of toks) {
1062
- state.output += t.output || t.value;
1063
- }
931
+ for (const t of toks) state.output += t.output || t.value;
1064
932
  }
1065
933
  push({
1066
934
  type: "brace",
@@ -1075,9 +943,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1075
943
  * Pipes
1076
944
  */
1077
945
  if (value === "|") {
1078
- if (extglobs.length > 0) {
1079
- extglobs[extglobs.length - 1].conditions++;
1080
- }
946
+ if (extglobs.length > 0) extglobs[extglobs.length - 1].conditions++;
1081
947
  push({
1082
948
  type: "text",
1083
949
  value
@@ -1152,17 +1018,14 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1152
1018
  * Question marks
1153
1019
  */
1154
1020
  if (value === "?") {
1155
- const isGroup = prev && prev.value === "(";
1156
- if (!isGroup && opts.noextglob !== true && peek() === "(" && peek(2) !== "?") {
1021
+ if (!(prev && prev.value === "(") && opts.noextglob !== true && peek() === "(" && peek(2) !== "?") {
1157
1022
  extglobOpen("qmark", value);
1158
1023
  continue;
1159
1024
  }
1160
1025
  if (prev && prev.type === "paren") {
1161
1026
  const next = peek();
1162
1027
  let output = value;
1163
- if (prev.value === "(" && !/[!=<:]/.test(next) || next === "<" && !/<([!=]|\w+>)/.test(remaining())) {
1164
- output = `\\${value}`;
1165
- }
1028
+ if (prev.value === "(" && !/[!=<:]/.test(next) || next === "<" && !/<([!=]|\w+>)/.test(remaining())) output = `\\${value}`;
1166
1029
  push({
1167
1030
  type: "text",
1168
1031
  value,
@@ -1252,9 +1115,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1252
1115
  * Plain text
1253
1116
  */
1254
1117
  if (value !== "*") {
1255
- if (value === "$" || value === "^") {
1256
- value = `\\${value}`;
1257
- }
1118
+ if (value === "$" || value === "^") value = `\\${value}`;
1258
1119
  const match = REGEX_NON_SPECIAL_CHARS.exec(remaining());
1259
1120
  if (match) {
1260
1121
  value += match[0];
@@ -1313,9 +1174,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1313
1174
  }
1314
1175
  while (rest.slice(0, 3) === "/**") {
1315
1176
  const after = input[state.index + 4];
1316
- if (after && after !== "/") {
1317
- break;
1318
- }
1177
+ if (after && after !== "/") break;
1319
1178
  rest = rest.slice(3);
1320
1179
  consume("/**", 3);
1321
1180
  }
@@ -1386,9 +1245,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1386
1245
  };
1387
1246
  if (opts.bash === true) {
1388
1247
  token.output = ".*?";
1389
- if (prev.type === "bos" || prev.type === "slash") {
1390
- token.output = nodot + token.output;
1391
- }
1248
+ if (prev.type === "bos" || prev.type === "slash") token.output = nodot + token.output;
1392
1249
  push(token);
1393
1250
  continue;
1394
1251
  }
@@ -1430,20 +1287,16 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1430
1287
  state.output = utils.escapeLast(state.output, "{");
1431
1288
  decrement("braces");
1432
1289
  }
1433
- if (opts.strictSlashes !== true && (prev.type === "star" || prev.type === "bracket")) {
1434
- push({
1435
- type: "maybe_slash",
1436
- value: "",
1437
- output: `${SLASH_LITERAL}?`
1438
- });
1439
- }
1290
+ if (opts.strictSlashes !== true && (prev.type === "star" || prev.type === "bracket")) push({
1291
+ type: "maybe_slash",
1292
+ value: "",
1293
+ output: `${SLASH_LITERAL}?`
1294
+ });
1440
1295
  if (state.backtrack === true) {
1441
1296
  state.output = "";
1442
1297
  for (const token of state.tokens) {
1443
1298
  state.output += token.output != null ? token.output : token.value;
1444
- if (token.suffix) {
1445
- state.output += token.suffix;
1446
- }
1299
+ if (token.suffix) state.output += token.suffix;
1447
1300
  }
1448
1301
  }
1449
1302
  return state;
@@ -1457,9 +1310,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1457
1310
  const opts = { ...options };
1458
1311
  const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
1459
1312
  const len = input.length;
1460
- if (len > max) {
1461
- throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
1462
- }
1313
+ if (len > max) throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
1463
1314
  input = REPLACEMENTS[input] || input;
1464
1315
  const { DOT_LITERAL, SLASH_LITERAL, ONE_CHAR, DOTS_SLASH, NO_DOT, NO_DOTS, NO_DOTS_SLASH, STAR, START_ANCHOR } = constants.globChars(opts.windows);
1465
1316
  const nodot = opts.dot ? NO_DOTS : NO_DOT;
@@ -1470,9 +1321,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1470
1321
  prefix: ""
1471
1322
  };
1472
1323
  let star = opts.bash === true ? ".*?" : STAR;
1473
- if (opts.capture) {
1474
- star = `(${star})`;
1475
- }
1324
+ if (opts.capture) star = `(${star})`;
1476
1325
  const globstar = (opts) => {
1477
1326
  if (opts.noglobstar === true) return star;
1478
1327
  return `(${capture}(?:(?!${START_ANCHOR}${opts.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
@@ -1496,16 +1345,12 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1496
1345
  }
1497
1346
  }
1498
1347
  };
1499
- const output = utils.removePrefix(input, state);
1500
- let source = create(output);
1501
- if (source && opts.strictSlashes !== true) {
1502
- source += `${SLASH_LITERAL}?`;
1503
- }
1348
+ let source = create(utils.removePrefix(input, state));
1349
+ if (source && opts.strictSlashes !== true) source += `${SLASH_LITERAL}?`;
1504
1350
  return source;
1505
1351
  };
1506
1352
  module.exports = parse;
1507
1353
  }));
1508
-
1509
1354
  //#endregion
1510
1355
  //#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/picomatch.js
1511
1356
  var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -1548,9 +1393,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1548
1393
  return arrayMatcher;
1549
1394
  }
1550
1395
  const isState = isObject(glob) && glob.tokens && glob.input;
1551
- if (glob === "" || typeof glob !== "string" && !isState) {
1552
- throw new TypeError("Expected pattern to be a non-empty string");
1553
- }
1396
+ if (glob === "" || typeof glob !== "string" && !isState) throw new TypeError("Expected pattern to be a non-empty string");
1554
1397
  const opts = options || {};
1555
1398
  const posix = opts.windows;
1556
1399
  const regex = isState ? picomatch.compileRe(glob, options) : picomatch.makeRe(glob, options, false, true);
@@ -1581,28 +1424,20 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1581
1424
  match,
1582
1425
  isMatch
1583
1426
  };
1584
- if (typeof opts.onResult === "function") {
1585
- opts.onResult(result);
1586
- }
1427
+ if (typeof opts.onResult === "function") opts.onResult(result);
1587
1428
  if (isMatch === false) {
1588
1429
  result.isMatch = false;
1589
1430
  return returnObject ? result : false;
1590
1431
  }
1591
1432
  if (isIgnored(input)) {
1592
- if (typeof opts.onIgnore === "function") {
1593
- opts.onIgnore(result);
1594
- }
1433
+ if (typeof opts.onIgnore === "function") opts.onIgnore(result);
1595
1434
  result.isMatch = false;
1596
1435
  return returnObject ? result : false;
1597
1436
  }
1598
- if (typeof opts.onMatch === "function") {
1599
- opts.onMatch(result);
1600
- }
1437
+ if (typeof opts.onMatch === "function") opts.onMatch(result);
1601
1438
  return returnObject ? result : true;
1602
1439
  };
1603
- if (returnState) {
1604
- matcher.state = state;
1605
- }
1440
+ if (returnState) matcher.state = state;
1606
1441
  return matcher;
1607
1442
  };
1608
1443
  /**
@@ -1622,15 +1457,11 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1622
1457
  * @api public
1623
1458
  */
1624
1459
  picomatch.test = (input, regex, options, { glob, posix } = {}) => {
1625
- if (typeof input !== "string") {
1626
- throw new TypeError("Expected input to be a string");
1627
- }
1628
- if (input === "") {
1629
- return {
1630
- isMatch: false,
1631
- output: ""
1632
- };
1633
- }
1460
+ if (typeof input !== "string") throw new TypeError("Expected input to be a string");
1461
+ if (input === "") return {
1462
+ isMatch: false,
1463
+ output: ""
1464
+ };
1634
1465
  const opts = options || {};
1635
1466
  const format = opts.format || (posix ? utils.toPosixSlashes : null);
1636
1467
  let match = input === glob;
@@ -1639,13 +1470,8 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1639
1470
  output = format ? format(input) : input;
1640
1471
  match = output === glob;
1641
1472
  }
1642
- if (match === false || opts.capture === true) {
1643
- if (opts.matchBase === true || opts.basename === true) {
1644
- match = picomatch.matchBase(input, regex, options, posix);
1645
- } else {
1646
- match = regex.exec(output);
1647
- }
1648
- }
1473
+ if (match === false || opts.capture === true) if (opts.matchBase === true || opts.basename === true) match = picomatch.matchBase(input, regex, options, posix);
1474
+ else match = regex.exec(output);
1649
1475
  return {
1650
1476
  isMatch: Boolean(match),
1651
1477
  match,
@@ -1666,8 +1492,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1666
1492
  * @api public
1667
1493
  */
1668
1494
  picomatch.matchBase = (input, glob, options) => {
1669
- const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
1670
- return regex.test(utils.basename(input));
1495
+ return (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(utils.basename(input));
1671
1496
  };
1672
1497
  /**
1673
1498
  * Returns true if **any** of the given glob `patterns` match the specified `string`.
@@ -1745,20 +1570,14 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1745
1570
  * @api public
1746
1571
  */
1747
1572
  picomatch.compileRe = (state, options, returnOutput = false, returnState = false) => {
1748
- if (returnOutput === true) {
1749
- return state.output;
1750
- }
1573
+ if (returnOutput === true) return state.output;
1751
1574
  const opts = options || {};
1752
1575
  const prepend = opts.contains ? "" : "^";
1753
1576
  const append = opts.contains ? "" : "$";
1754
1577
  let source = `${prepend}(?:${state.output})${append}`;
1755
- if (state && state.negated === true) {
1756
- source = `^(?!${source}).*$`;
1757
- }
1578
+ if (state && state.negated === true) source = `^(?!${source}).*$`;
1758
1579
  const regex = picomatch.toRegex(source, options);
1759
- if (returnState === true) {
1760
- regex.state = state;
1761
- }
1580
+ if (returnState === true) regex.state = state;
1762
1581
  return regex;
1763
1582
  };
1764
1583
  /**
@@ -1780,19 +1599,13 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1780
1599
  * @api public
1781
1600
  */
1782
1601
  picomatch.makeRe = (input, options = {}, returnOutput = false, returnState = false) => {
1783
- if (!input || typeof input !== "string") {
1784
- throw new TypeError("Expected a non-empty string");
1785
- }
1602
+ if (!input || typeof input !== "string") throw new TypeError("Expected a non-empty string");
1786
1603
  let parsed = {
1787
1604
  negated: false,
1788
1605
  fastpaths: true
1789
1606
  };
1790
- if (options.fastpaths !== false && (input[0] === "." || input[0] === "*")) {
1791
- parsed.output = parse.fastpaths(input, options);
1792
- }
1793
- if (!parsed.output) {
1794
- parsed = parse(input, options);
1795
- }
1607
+ if (options.fastpaths !== false && (input[0] === "." || input[0] === "*")) parsed.output = parse.fastpaths(input, options);
1608
+ if (!parsed.output) parsed = parse(input, options);
1796
1609
  return picomatch.compileRe(parsed, options, returnOutput, returnState);
1797
1610
  };
1798
1611
  /**
@@ -1830,26 +1643,21 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1830
1643
  */
1831
1644
  module.exports = picomatch;
1832
1645
  }));
1833
-
1834
1646
  //#endregion
1835
1647
  //#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/index.js
1836
1648
  var require_picomatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1837
1649
  const pico = require_picomatch$1();
1838
1650
  const utils = require_utils();
1839
1651
  function picomatch(glob, options, returnState = false) {
1840
- if (options && (options.windows === null || options.windows === undefined)) {
1841
- options = {
1842
- ...options,
1843
- windows: utils.isWindows()
1844
- };
1845
- }
1652
+ if (options && (options.windows === null || options.windows === void 0)) options = {
1653
+ ...options,
1654
+ windows: utils.isWindows()
1655
+ };
1846
1656
  return pico(glob, options, returnState);
1847
1657
  }
1848
1658
  Object.assign(picomatch, pico);
1849
1659
  module.exports = picomatch;
1850
1660
  }));
1851
-
1852
1661
  //#endregion
1853
1662
  export default require_picomatch();
1854
-
1855
- export { require_picomatch as t };
1663
+ export { require_picomatch as t };