weapp-vite 3.0.1 → 3.0.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.
Files changed (54) hide show
  1. package/dist/auto-import-components/resolvers.cjs +7 -8
  2. package/dist/auto-import-components/resolvers.mjs +1 -2
  3. package/dist/{chunk-XWG2K7KD.mjs → chunk-HYF6JF4U.mjs} +1 -2
  4. package/dist/chunk-I7VYO5OF.cjs +15 -0
  5. package/dist/{chunk-3PDVWG3J.cjs → chunk-ILAIINMU.cjs} +7 -8
  6. package/dist/{chunk-AXQXIKIF.mjs → chunk-J4FW3JHK.mjs} +2 -3
  7. package/dist/{chunk-MOS2LLUH.mjs → chunk-PRR5DJHJ.mjs} +1 -2
  8. package/dist/{chunk-VMKFJAQK.cjs → chunk-RJF2LDZW.cjs} +2 -3
  9. package/dist/{chunk-FAXOYXBI.cjs → chunk-TQKIOJUX.cjs} +1843 -1531
  10. package/dist/{chunk-STCFYYUS.mjs → chunk-WC7SBOSS.mjs} +1006 -694
  11. package/dist/cli.cjs +192 -51
  12. package/dist/cli.mjs +152 -11
  13. package/dist/{config-CCFoPOGU.d.cts → config-CmnUGB9g.d.cts} +66 -11
  14. package/dist/{config-PWMAoAbY.d.ts → config-nkS0_6JW.d.ts} +66 -11
  15. package/dist/config.cjs +4 -5
  16. package/dist/config.d.cts +2 -1
  17. package/dist/config.d.ts +2 -1
  18. package/dist/config.mjs +3 -4
  19. package/dist/index.cjs +7 -8
  20. package/dist/index.d.cts +3 -2
  21. package/dist/index.d.ts +3 -2
  22. package/dist/index.mjs +4 -5
  23. package/dist/json.cjs +3 -4
  24. package/dist/json.d.cts +2 -1
  25. package/dist/json.d.ts +2 -1
  26. package/dist/json.mjs +2 -3
  27. package/dist/types.cjs +18 -0
  28. package/dist/types.d.cts +57 -0
  29. package/dist/types.d.ts +57 -0
  30. package/dist/types.mjs +18 -0
  31. package/dist/volar.cjs +2 -3
  32. package/dist/volar.mjs +1 -2
  33. package/package.json +21 -8
  34. package/dist/auto-import-components/resolvers.cjs.map +0 -1
  35. package/dist/auto-import-components/resolvers.mjs.map +0 -1
  36. package/dist/chunk-3PDVWG3J.cjs.map +0 -1
  37. package/dist/chunk-AXQXIKIF.mjs.map +0 -1
  38. package/dist/chunk-FAXOYXBI.cjs.map +0 -1
  39. package/dist/chunk-JOVYVHI7.cjs +0 -16
  40. package/dist/chunk-JOVYVHI7.cjs.map +0 -1
  41. package/dist/chunk-MOS2LLUH.mjs.map +0 -1
  42. package/dist/chunk-STCFYYUS.mjs.map +0 -1
  43. package/dist/chunk-VMKFJAQK.cjs.map +0 -1
  44. package/dist/chunk-XWG2K7KD.mjs.map +0 -1
  45. package/dist/cli.cjs.map +0 -1
  46. package/dist/cli.mjs.map +0 -1
  47. package/dist/config.cjs.map +0 -1
  48. package/dist/config.mjs.map +0 -1
  49. package/dist/index.cjs.map +0 -1
  50. package/dist/index.mjs.map +0 -1
  51. package/dist/json.cjs.map +0 -1
  52. package/dist/json.mjs.map +0 -1
  53. package/dist/volar.cjs.map +0 -1
  54. package/dist/volar.mjs.map +0 -1
@@ -3,7 +3,7 @@ import {
3
3
  __name,
4
4
  __toESM,
5
5
  init_esm_shims
6
- } from "./chunk-AXQXIKIF.mjs";
6
+ } from "./chunk-J4FW3JHK.mjs";
7
7
 
8
8
  // ../../node_modules/.pnpm/reflect-metadata@0.2.2/node_modules/reflect-metadata/Reflect.js
9
9
  var require_Reflect = __commonJS({
@@ -36,14 +36,14 @@ var require_Reflect = __commonJS({
36
36
  function functionThis() {
37
37
  try {
38
38
  return Function("return this;")();
39
- } catch (_3) {
39
+ } catch (_4) {
40
40
  }
41
41
  }
42
42
  __name(functionThis, "functionThis");
43
43
  function indirectEvalThis() {
44
44
  try {
45
45
  return (0, eval)("(function() { return this; })()");
46
- } catch (_3) {
46
+ } catch (_4) {
47
47
  }
48
48
  }
49
49
  __name(indirectEvalThis, "indirectEvalThis");
@@ -206,57 +206,57 @@ var require_Reflect = __commonJS({
206
206
  return descriptor;
207
207
  }
208
208
  __name(DecorateProperty, "DecorateProperty");
209
- function OrdinaryHasMetadata(MetadataKey, O4, P3) {
210
- var hasOwn3 = OrdinaryHasOwnMetadata(MetadataKey, O4, P3);
209
+ function OrdinaryHasMetadata(MetadataKey, O3, P3) {
210
+ var hasOwn3 = OrdinaryHasOwnMetadata(MetadataKey, O3, P3);
211
211
  if (hasOwn3) return true;
212
- var parent = OrdinaryGetPrototypeOf(O4);
212
+ var parent = OrdinaryGetPrototypeOf(O3);
213
213
  if (!IsNull(parent)) return OrdinaryHasMetadata(MetadataKey, parent, P3);
214
214
  return false;
215
215
  }
216
216
  __name(OrdinaryHasMetadata, "OrdinaryHasMetadata");
217
- function OrdinaryHasOwnMetadata(MetadataKey, O4, P3) {
217
+ function OrdinaryHasOwnMetadata(MetadataKey, O3, P3) {
218
218
  var provider = GetMetadataProvider(
219
- O4,
219
+ O3,
220
220
  P3,
221
221
  /*Create*/
222
222
  false
223
223
  );
224
224
  if (IsUndefined(provider)) return false;
225
- return ToBoolean(provider.OrdinaryHasOwnMetadata(MetadataKey, O4, P3));
225
+ return ToBoolean(provider.OrdinaryHasOwnMetadata(MetadataKey, O3, P3));
226
226
  }
227
227
  __name(OrdinaryHasOwnMetadata, "OrdinaryHasOwnMetadata");
228
- function OrdinaryGetMetadata(MetadataKey, O4, P3) {
229
- var hasOwn3 = OrdinaryHasOwnMetadata(MetadataKey, O4, P3);
230
- if (hasOwn3) return OrdinaryGetOwnMetadata(MetadataKey, O4, P3);
231
- var parent = OrdinaryGetPrototypeOf(O4);
228
+ function OrdinaryGetMetadata(MetadataKey, O3, P3) {
229
+ var hasOwn3 = OrdinaryHasOwnMetadata(MetadataKey, O3, P3);
230
+ if (hasOwn3) return OrdinaryGetOwnMetadata(MetadataKey, O3, P3);
231
+ var parent = OrdinaryGetPrototypeOf(O3);
232
232
  if (!IsNull(parent)) return OrdinaryGetMetadata(MetadataKey, parent, P3);
233
233
  return void 0;
234
234
  }
235
235
  __name(OrdinaryGetMetadata, "OrdinaryGetMetadata");
236
- function OrdinaryGetOwnMetadata(MetadataKey, O4, P3) {
236
+ function OrdinaryGetOwnMetadata(MetadataKey, O3, P3) {
237
237
  var provider = GetMetadataProvider(
238
- O4,
238
+ O3,
239
239
  P3,
240
240
  /*Create*/
241
241
  false
242
242
  );
243
243
  if (IsUndefined(provider)) return;
244
- return provider.OrdinaryGetOwnMetadata(MetadataKey, O4, P3);
244
+ return provider.OrdinaryGetOwnMetadata(MetadataKey, O3, P3);
245
245
  }
246
246
  __name(OrdinaryGetOwnMetadata, "OrdinaryGetOwnMetadata");
247
- function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O4, P3) {
247
+ function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O3, P3) {
248
248
  var provider = GetMetadataProvider(
249
- O4,
249
+ O3,
250
250
  P3,
251
251
  /*Create*/
252
252
  true
253
253
  );
254
- provider.OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O4, P3);
254
+ provider.OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O3, P3);
255
255
  }
256
256
  __name(OrdinaryDefineOwnMetadata, "OrdinaryDefineOwnMetadata");
257
- function OrdinaryMetadataKeys(O4, P3) {
258
- var ownKeys = OrdinaryOwnMetadataKeys(O4, P3);
259
- var parent = OrdinaryGetPrototypeOf(O4);
257
+ function OrdinaryMetadataKeys(O3, P3) {
258
+ var ownKeys = OrdinaryOwnMetadataKeys(O3, P3);
259
+ var parent = OrdinaryGetPrototypeOf(O3);
260
260
  if (parent === null) return ownKeys;
261
261
  var parentKeys = OrdinaryMetadataKeys(parent, P3);
262
262
  if (parentKeys.length <= 0) return ownKeys;
@@ -282,9 +282,9 @@ var require_Reflect = __commonJS({
282
282
  return keys;
283
283
  }
284
284
  __name(OrdinaryMetadataKeys, "OrdinaryMetadataKeys");
285
- function OrdinaryOwnMetadataKeys(O4, P3) {
285
+ function OrdinaryOwnMetadataKeys(O3, P3) {
286
286
  var provider = GetMetadataProvider(
287
- O4,
287
+ O3,
288
288
  P3,
289
289
  /*create*/
290
290
  false
@@ -292,7 +292,7 @@ var require_Reflect = __commonJS({
292
292
  if (!provider) {
293
293
  return [];
294
294
  }
295
- return provider.OrdinaryOwnMetadataKeys(O4, P3);
295
+ return provider.OrdinaryOwnMetadataKeys(O3, P3);
296
296
  }
297
297
  __name(OrdinaryOwnMetadataKeys, "OrdinaryOwnMetadataKeys");
298
298
  function Type(x3) {
@@ -356,27 +356,27 @@ var require_Reflect = __commonJS({
356
356
  return OrdinaryToPrimitive(input, hint === "default" ? "number" : hint);
357
357
  }
358
358
  __name(ToPrimitive, "ToPrimitive");
359
- function OrdinaryToPrimitive(O4, hint) {
359
+ function OrdinaryToPrimitive(O3, hint) {
360
360
  if (hint === "string") {
361
- var toString_1 = O4.toString;
361
+ var toString_1 = O3.toString;
362
362
  if (IsCallable(toString_1)) {
363
- var result = toString_1.call(O4);
363
+ var result = toString_1.call(O3);
364
364
  if (!IsObject(result)) return result;
365
365
  }
366
- var valueOf = O4.valueOf;
366
+ var valueOf = O3.valueOf;
367
367
  if (IsCallable(valueOf)) {
368
- var result = valueOf.call(O4);
368
+ var result = valueOf.call(O3);
369
369
  if (!IsObject(result)) return result;
370
370
  }
371
371
  } else {
372
- var valueOf = O4.valueOf;
372
+ var valueOf = O3.valueOf;
373
373
  if (IsCallable(valueOf)) {
374
- var result = valueOf.call(O4);
374
+ var result = valueOf.call(O3);
375
375
  if (!IsObject(result)) return result;
376
376
  }
377
- var toString_2 = O4.toString;
377
+ var toString_2 = O3.toString;
378
378
  if (IsCallable(toString_2)) {
379
- var result = toString_2.call(O4);
379
+ var result = toString_2.call(O3);
380
380
  if (!IsObject(result)) return result;
381
381
  }
382
382
  }
@@ -424,8 +424,8 @@ var require_Reflect = __commonJS({
424
424
  }
425
425
  }
426
426
  __name(IsPropertyKey, "IsPropertyKey");
427
- function SameValueZero(x3, y4) {
428
- return x3 === y4 || x3 !== x3 && y4 !== y4;
427
+ function SameValueZero(x3, y3) {
428
+ return x3 === y3 || x3 !== x3 && y3 !== y3;
429
429
  }
430
430
  __name(SameValueZero, "SameValueZero");
431
431
  function GetMethod(V4, P3) {
@@ -457,16 +457,16 @@ var require_Reflect = __commonJS({
457
457
  if (f2) f2.call(iterator);
458
458
  }
459
459
  __name(IteratorClose, "IteratorClose");
460
- function OrdinaryGetPrototypeOf(O4) {
461
- var proto = Object.getPrototypeOf(O4);
462
- if (typeof O4 !== "function" || O4 === functionPrototype) return proto;
460
+ function OrdinaryGetPrototypeOf(O3) {
461
+ var proto = Object.getPrototypeOf(O3);
462
+ if (typeof O3 !== "function" || O3 === functionPrototype) return proto;
463
463
  if (proto !== functionPrototype) return proto;
464
- var prototype = O4.prototype;
464
+ var prototype = O3.prototype;
465
465
  var prototypeProto = prototype && Object.getPrototypeOf(prototype);
466
466
  if (prototypeProto == null || prototypeProto === Object.prototype) return proto;
467
467
  var constructor = prototypeProto.constructor;
468
468
  if (typeof constructor !== "function") return proto;
469
- if (constructor === O4) return proto;
469
+ if (constructor === O3) return proto;
470
470
  return constructor;
471
471
  }
472
472
  __name(OrdinaryGetPrototypeOf, "OrdinaryGetPrototypeOf");
@@ -509,11 +509,11 @@ var require_Reflect = __commonJS({
509
509
  }
510
510
  }
511
511
  __name(registerProvider, "registerProvider");
512
- function getProviderNoCache(O4, P3) {
512
+ function getProviderNoCache(O3, P3) {
513
513
  if (!IsUndefined(first)) {
514
- if (first.isProviderFor(O4, P3)) return first;
514
+ if (first.isProviderFor(O3, P3)) return first;
515
515
  if (!IsUndefined(second)) {
516
- if (second.isProviderFor(O4, P3)) return first;
516
+ if (second.isProviderFor(O3, P3)) return first;
517
517
  if (!IsUndefined(rest)) {
518
518
  var iterator = GetIterator(rest);
519
519
  while (true) {
@@ -522,7 +522,7 @@ var require_Reflect = __commonJS({
522
522
  return void 0;
523
523
  }
524
524
  var provider = IteratorValue(next);
525
- if (provider.isProviderFor(O4, P3)) {
525
+ if (provider.isProviderFor(O3, P3)) {
526
526
  IteratorClose(iterator);
527
527
  return provider;
528
528
  }
@@ -530,14 +530,14 @@ var require_Reflect = __commonJS({
530
530
  }
531
531
  }
532
532
  }
533
- if (!IsUndefined(fallback) && fallback.isProviderFor(O4, P3)) {
533
+ if (!IsUndefined(fallback) && fallback.isProviderFor(O3, P3)) {
534
534
  return fallback;
535
535
  }
536
536
  return void 0;
537
537
  }
538
538
  __name(getProviderNoCache, "getProviderNoCache");
539
- function getProvider(O4, P3) {
540
- var providerMap = targetProviderMap.get(O4);
539
+ function getProvider(O3, P3) {
540
+ var providerMap = targetProviderMap.get(O3);
541
541
  var provider;
542
542
  if (!IsUndefined(providerMap)) {
543
543
  provider = providerMap.get(P3);
@@ -545,11 +545,11 @@ var require_Reflect = __commonJS({
545
545
  if (!IsUndefined(provider)) {
546
546
  return provider;
547
547
  }
548
- provider = getProviderNoCache(O4, P3);
548
+ provider = getProviderNoCache(O3, P3);
549
549
  if (!IsUndefined(provider)) {
550
550
  if (IsUndefined(providerMap)) {
551
551
  providerMap = new _Map();
552
- targetProviderMap.set(O4, providerMap);
552
+ targetProviderMap.set(O3, providerMap);
553
553
  }
554
554
  providerMap.set(P3, provider);
555
555
  }
@@ -561,19 +561,19 @@ var require_Reflect = __commonJS({
561
561
  return first === provider || second === provider || !IsUndefined(rest) && rest.has(provider);
562
562
  }
563
563
  __name(hasProvider, "hasProvider");
564
- function setProvider(O4, P3, provider) {
564
+ function setProvider(O3, P3, provider) {
565
565
  if (!hasProvider(provider)) {
566
566
  throw new Error("Metadata provider not registered.");
567
567
  }
568
- var existingProvider = getProvider(O4, P3);
568
+ var existingProvider = getProvider(O3, P3);
569
569
  if (existingProvider !== provider) {
570
570
  if (!IsUndefined(existingProvider)) {
571
571
  return false;
572
572
  }
573
- var providerMap = targetProviderMap.get(O4);
573
+ var providerMap = targetProviderMap.get(O3);
574
574
  if (IsUndefined(providerMap)) {
575
575
  providerMap = new _Map();
576
- targetProviderMap.set(O4, providerMap);
576
+ targetProviderMap.set(O3, providerMap);
577
577
  }
578
578
  providerMap.set(P3, provider);
579
579
  }
@@ -604,8 +604,8 @@ var require_Reflect = __commonJS({
604
604
  function CreateMetadataProvider(registry) {
605
605
  var metadata2 = new _WeakMap();
606
606
  var provider = {
607
- isProviderFor: /* @__PURE__ */ __name(function(O4, P3) {
608
- var targetMetadata = metadata2.get(O4);
607
+ isProviderFor: /* @__PURE__ */ __name(function(O3, P3) {
608
+ var targetMetadata = metadata2.get(O3);
609
609
  if (IsUndefined(targetMetadata)) return false;
610
610
  return targetMetadata.has(P3);
611
611
  }, "isProviderFor"),
@@ -617,13 +617,13 @@ var require_Reflect = __commonJS({
617
617
  };
618
618
  metadataRegistry.registerProvider(provider);
619
619
  return provider;
620
- function GetOrCreateMetadataMap(O4, P3, Create) {
621
- var targetMetadata = metadata2.get(O4);
620
+ function GetOrCreateMetadataMap(O3, P3, Create) {
621
+ var targetMetadata = metadata2.get(O3);
622
622
  var createdTargetMetadata = false;
623
623
  if (IsUndefined(targetMetadata)) {
624
624
  if (!Create) return void 0;
625
625
  targetMetadata = new _Map();
626
- metadata2.set(O4, targetMetadata);
626
+ metadata2.set(O3, targetMetadata);
627
627
  createdTargetMetadata = true;
628
628
  }
629
629
  var metadataMap = targetMetadata.get(P3);
@@ -631,10 +631,10 @@ var require_Reflect = __commonJS({
631
631
  if (!Create) return void 0;
632
632
  metadataMap = new _Map();
633
633
  targetMetadata.set(P3, metadataMap);
634
- if (!registry.setProvider(O4, P3, provider)) {
634
+ if (!registry.setProvider(O3, P3, provider)) {
635
635
  targetMetadata.delete(P3);
636
636
  if (createdTargetMetadata) {
637
- metadata2.delete(O4);
637
+ metadata2.delete(O3);
638
638
  }
639
639
  throw new Error("Wrong provider for target.");
640
640
  }
@@ -642,9 +642,9 @@ var require_Reflect = __commonJS({
642
642
  return metadataMap;
643
643
  }
644
644
  __name(GetOrCreateMetadataMap, "GetOrCreateMetadataMap");
645
- function OrdinaryHasOwnMetadata2(MetadataKey, O4, P3) {
645
+ function OrdinaryHasOwnMetadata2(MetadataKey, O3, P3) {
646
646
  var metadataMap = GetOrCreateMetadataMap(
647
- O4,
647
+ O3,
648
648
  P3,
649
649
  /*Create*/
650
650
  false
@@ -653,9 +653,9 @@ var require_Reflect = __commonJS({
653
653
  return ToBoolean(metadataMap.has(MetadataKey));
654
654
  }
655
655
  __name(OrdinaryHasOwnMetadata2, "OrdinaryHasOwnMetadata");
656
- function OrdinaryGetOwnMetadata2(MetadataKey, O4, P3) {
656
+ function OrdinaryGetOwnMetadata2(MetadataKey, O3, P3) {
657
657
  var metadataMap = GetOrCreateMetadataMap(
658
- O4,
658
+ O3,
659
659
  P3,
660
660
  /*Create*/
661
661
  false
@@ -664,9 +664,9 @@ var require_Reflect = __commonJS({
664
664
  return metadataMap.get(MetadataKey);
665
665
  }
666
666
  __name(OrdinaryGetOwnMetadata2, "OrdinaryGetOwnMetadata");
667
- function OrdinaryDefineOwnMetadata2(MetadataKey, MetadataValue, O4, P3) {
667
+ function OrdinaryDefineOwnMetadata2(MetadataKey, MetadataValue, O3, P3) {
668
668
  var metadataMap = GetOrCreateMetadataMap(
669
- O4,
669
+ O3,
670
670
  P3,
671
671
  /*Create*/
672
672
  true
@@ -674,10 +674,10 @@ var require_Reflect = __commonJS({
674
674
  metadataMap.set(MetadataKey, MetadataValue);
675
675
  }
676
676
  __name(OrdinaryDefineOwnMetadata2, "OrdinaryDefineOwnMetadata");
677
- function OrdinaryOwnMetadataKeys2(O4, P3) {
677
+ function OrdinaryOwnMetadataKeys2(O3, P3) {
678
678
  var keys = [];
679
679
  var metadataMap = GetOrCreateMetadataMap(
680
- O4,
680
+ O3,
681
681
  P3,
682
682
  /*Create*/
683
683
  false
@@ -706,9 +706,9 @@ var require_Reflect = __commonJS({
706
706
  }
707
707
  }
708
708
  __name(OrdinaryOwnMetadataKeys2, "OrdinaryOwnMetadataKeys");
709
- function OrdinaryDeleteMetadata(MetadataKey, O4, P3) {
709
+ function OrdinaryDeleteMetadata(MetadataKey, O3, P3) {
710
710
  var metadataMap = GetOrCreateMetadataMap(
711
- O4,
711
+ O3,
712
712
  P3,
713
713
  /*Create*/
714
714
  false
@@ -716,7 +716,7 @@ var require_Reflect = __commonJS({
716
716
  if (IsUndefined(metadataMap)) return false;
717
717
  if (!metadataMap.delete(MetadataKey)) return false;
718
718
  if (metadataMap.size === 0) {
719
- var targetMetadata = metadata2.get(O4);
719
+ var targetMetadata = metadata2.get(O3);
720
720
  if (!IsUndefined(targetMetadata)) {
721
721
  targetMetadata.delete(P3);
722
722
  if (targetMetadata.size === 0) {
@@ -733,15 +733,15 @@ var require_Reflect = __commonJS({
733
733
  var defineMetadata2 = reflect.defineMetadata, hasOwnMetadata2 = reflect.hasOwnMetadata, getOwnMetadata2 = reflect.getOwnMetadata, getOwnMetadataKeys2 = reflect.getOwnMetadataKeys, deleteMetadata2 = reflect.deleteMetadata;
734
734
  var metadataOwner = new _WeakMap();
735
735
  var provider = {
736
- isProviderFor: /* @__PURE__ */ __name(function(O4, P3) {
737
- var metadataPropertySet = metadataOwner.get(O4);
736
+ isProviderFor: /* @__PURE__ */ __name(function(O3, P3) {
737
+ var metadataPropertySet = metadataOwner.get(O3);
738
738
  if (!IsUndefined(metadataPropertySet) && metadataPropertySet.has(P3)) {
739
739
  return true;
740
740
  }
741
- if (getOwnMetadataKeys2(O4, P3).length) {
741
+ if (getOwnMetadataKeys2(O3, P3).length) {
742
742
  if (IsUndefined(metadataPropertySet)) {
743
743
  metadataPropertySet = new _Set();
744
- metadataOwner.set(O4, metadataPropertySet);
744
+ metadataOwner.set(O3, metadataPropertySet);
745
745
  }
746
746
  metadataPropertySet.add(P3);
747
747
  return true;
@@ -757,13 +757,13 @@ var require_Reflect = __commonJS({
757
757
  return provider;
758
758
  }
759
759
  __name(CreateFallbackProvider, "CreateFallbackProvider");
760
- function GetMetadataProvider(O4, P3, Create) {
761
- var registeredProvider = metadataRegistry.getProvider(O4, P3);
760
+ function GetMetadataProvider(O3, P3, Create) {
761
+ var registeredProvider = metadataRegistry.getProvider(O3, P3);
762
762
  if (!IsUndefined(registeredProvider)) {
763
763
  return registeredProvider;
764
764
  }
765
765
  if (Create) {
766
- if (metadataRegistry.setProvider(O4, P3, metadataProvider)) {
766
+ if (metadataRegistry.setProvider(O3, P3, metadataProvider)) {
767
767
  return metadataProvider;
768
768
  }
769
769
  throw new Error("Illegal state.");
@@ -938,11 +938,11 @@ var require_Reflect = __commonJS({
938
938
  }()
939
939
  );
940
940
  return Map1;
941
- function getKey(key, _3) {
941
+ function getKey(key, _4) {
942
942
  return key;
943
943
  }
944
944
  __name(getKey, "getKey");
945
- function getValue(_3, value) {
945
+ function getValue(_4, value) {
946
946
  return value;
947
947
  }
948
948
  __name(getValue, "getValue");
@@ -1139,8 +1139,8 @@ var require_balanced_match = __commonJS({
1139
1139
  }
1140
1140
  __name(balanced, "balanced");
1141
1141
  function maybeMatch(reg, str) {
1142
- var m4 = str.match(reg);
1143
- return m4 ? m4[0] : null;
1142
+ var m3 = str.match(reg);
1143
+ return m3 ? m3[0] : null;
1144
1144
  }
1145
1145
  __name(maybeMatch, "maybeMatch");
1146
1146
  balanced.range = range;
@@ -1219,11 +1219,11 @@ var require_brace_expansion = __commonJS({
1219
1219
  ""
1220
1220
  ];
1221
1221
  var parts = [];
1222
- var m4 = balanced("{", "}", str);
1223
- if (!m4) return str.split(",");
1224
- var pre = m4.pre;
1225
- var body = m4.body;
1226
- var post = m4.post;
1222
+ var m3 = balanced("{", "}", str);
1223
+ if (!m3) return str.split(",");
1224
+ var pre = m3.pre;
1225
+ var body = m3.body;
1226
+ var post = m3.post;
1227
1227
  var p2 = pre.split(",");
1228
1228
  p2[p2.length - 1] += "{" + body + "}";
1229
1229
  var postParts = parseCommaParts(post);
@@ -1251,37 +1251,37 @@ var require_brace_expansion = __commonJS({
1251
1251
  return /^-?0\d/.test(el);
1252
1252
  }
1253
1253
  __name(isPadded, "isPadded");
1254
- function lte(i, y4) {
1255
- return i <= y4;
1254
+ function lte(i, y3) {
1255
+ return i <= y3;
1256
1256
  }
1257
1257
  __name(lte, "lte");
1258
- function gte(i, y4) {
1259
- return i >= y4;
1258
+ function gte(i, y3) {
1259
+ return i >= y3;
1260
1260
  }
1261
1261
  __name(gte, "gte");
1262
1262
  function expand2(str, isTop) {
1263
1263
  var expansions = [];
1264
- var m4 = balanced("{", "}", str);
1265
- if (!m4) return [
1264
+ var m3 = balanced("{", "}", str);
1265
+ if (!m3) return [
1266
1266
  str
1267
1267
  ];
1268
- var pre = m4.pre;
1269
- var post = m4.post.length ? expand2(m4.post, false) : [
1268
+ var pre = m3.pre;
1269
+ var post = m3.post.length ? expand2(m3.post, false) : [
1270
1270
  ""
1271
1271
  ];
1272
- if (/\$$/.test(m4.pre)) {
1272
+ if (/\$$/.test(m3.pre)) {
1273
1273
  for (var k4 = 0; k4 < post.length; k4++) {
1274
- var expansion = pre + "{" + m4.body + "}" + post[k4];
1274
+ var expansion = pre + "{" + m3.body + "}" + post[k4];
1275
1275
  expansions.push(expansion);
1276
1276
  }
1277
1277
  } else {
1278
- var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m4.body);
1279
- var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m4.body);
1278
+ var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m3.body);
1279
+ var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m3.body);
1280
1280
  var isSequence = isNumericSequence || isAlphaSequence;
1281
- var isOptions = m4.body.indexOf(",") >= 0;
1281
+ var isOptions = m3.body.indexOf(",") >= 0;
1282
1282
  if (!isSequence && !isOptions) {
1283
- if (m4.post.match(/,.*\}/)) {
1284
- str = m4.pre + "{" + m4.body + escClose + m4.post;
1283
+ if (m3.post.match(/,.*\}/)) {
1284
+ str = m3.pre + "{" + m3.body + escClose + m3.post;
1285
1285
  return expand2(str);
1286
1286
  }
1287
1287
  return [
@@ -1290,14 +1290,14 @@ var require_brace_expansion = __commonJS({
1290
1290
  }
1291
1291
  var n4;
1292
1292
  if (isSequence) {
1293
- n4 = m4.body.split(/\.\./);
1293
+ n4 = m3.body.split(/\.\./);
1294
1294
  } else {
1295
- n4 = parseCommaParts(m4.body);
1295
+ n4 = parseCommaParts(m3.body);
1296
1296
  if (n4.length === 1) {
1297
1297
  n4 = expand2(n4[0], false).map(embrace);
1298
1298
  if (n4.length === 1) {
1299
1299
  return post.map(function(p2) {
1300
- return m4.pre + n4[0] + p2;
1300
+ return m3.pre + n4[0] + p2;
1301
1301
  });
1302
1302
  }
1303
1303
  }
@@ -1305,18 +1305,18 @@ var require_brace_expansion = __commonJS({
1305
1305
  var N3;
1306
1306
  if (isSequence) {
1307
1307
  var x3 = numeric(n4[0]);
1308
- var y4 = numeric(n4[1]);
1308
+ var y3 = numeric(n4[1]);
1309
1309
  var width = Math.max(n4[0].length, n4[1].length);
1310
1310
  var incr = n4.length == 3 ? Math.abs(numeric(n4[2])) : 1;
1311
1311
  var test = lte;
1312
- var reverse = y4 < x3;
1312
+ var reverse = y3 < x3;
1313
1313
  if (reverse) {
1314
1314
  incr *= -1;
1315
1315
  test = gte;
1316
1316
  }
1317
1317
  var pad = n4.some(isPadded);
1318
1318
  N3 = [];
1319
- for (var i = x3; test(i, y4); i += incr) {
1319
+ for (var i = x3; test(i, y3); i += incr) {
1320
1320
  var c2;
1321
1321
  if (isAlphaSequence) {
1322
1322
  c2 = String.fromCharCode(i);
@@ -1336,13 +1336,13 @@ var require_brace_expansion = __commonJS({
1336
1336
  }
1337
1337
  } else {
1338
1338
  N3 = [];
1339
- for (var j4 = 0; j4 < n4.length; j4++) {
1340
- N3.push.apply(N3, expand2(n4[j4], false));
1339
+ for (var j3 = 0; j3 < n4.length; j3++) {
1340
+ N3.push.apply(N3, expand2(n4[j3], false));
1341
1341
  }
1342
1342
  }
1343
- for (var j4 = 0; j4 < N3.length; j4++) {
1343
+ for (var j3 = 0; j3 < N3.length; j3++) {
1344
1344
  for (var k4 = 0; k4 < post.length; k4++) {
1345
- var expansion = pre + N3[j4] + post[k4];
1345
+ var expansion = pre + N3[j3] + post[k4];
1346
1346
  if (!isTop || isSequence || expansion) expansions.push(expansion);
1347
1347
  }
1348
1348
  }
@@ -1440,6 +1440,94 @@ var require_debounce = __commonJS({
1440
1440
  }
1441
1441
  });
1442
1442
 
1443
+ // ../../node_modules/.pnpm/merge@2.1.1/node_modules/merge/lib/src/index.js
1444
+ var require_src = __commonJS({
1445
+ "../../node_modules/.pnpm/merge@2.1.1/node_modules/merge/lib/src/index.js"(exports, module) {
1446
+ "use strict";
1447
+ init_esm_shims();
1448
+ Object.defineProperty(exports, "__esModule", {
1449
+ value: true
1450
+ });
1451
+ exports.isPlainObject = exports.clone = exports.recursive = exports.merge = exports.main = void 0;
1452
+ module.exports = exports = main;
1453
+ exports.default = main;
1454
+ function main() {
1455
+ var items = [];
1456
+ for (var _i = 0; _i < arguments.length; _i++) {
1457
+ items[_i] = arguments[_i];
1458
+ }
1459
+ return merge.apply(void 0, items);
1460
+ }
1461
+ __name(main, "main");
1462
+ exports.main = main;
1463
+ main.clone = clone;
1464
+ main.isPlainObject = isPlainObject;
1465
+ main.recursive = recursive2;
1466
+ function merge() {
1467
+ var items = [];
1468
+ for (var _i = 0; _i < arguments.length; _i++) {
1469
+ items[_i] = arguments[_i];
1470
+ }
1471
+ return _merge(items[0] === true, false, items);
1472
+ }
1473
+ __name(merge, "merge");
1474
+ exports.merge = merge;
1475
+ function recursive2() {
1476
+ var items = [];
1477
+ for (var _i = 0; _i < arguments.length; _i++) {
1478
+ items[_i] = arguments[_i];
1479
+ }
1480
+ return _merge(items[0] === true, true, items);
1481
+ }
1482
+ __name(recursive2, "recursive");
1483
+ exports.recursive = recursive2;
1484
+ function clone(input) {
1485
+ if (Array.isArray(input)) {
1486
+ var output = [];
1487
+ for (var index = 0; index < input.length; ++index) output.push(clone(input[index]));
1488
+ return output;
1489
+ } else if (isPlainObject(input)) {
1490
+ var output = {};
1491
+ for (var index in input) output[index] = clone(input[index]);
1492
+ return output;
1493
+ } else {
1494
+ return input;
1495
+ }
1496
+ }
1497
+ __name(clone, "clone");
1498
+ exports.clone = clone;
1499
+ function isPlainObject(input) {
1500
+ return input && typeof input === "object" && !Array.isArray(input);
1501
+ }
1502
+ __name(isPlainObject, "isPlainObject");
1503
+ exports.isPlainObject = isPlainObject;
1504
+ function _recursiveMerge(base, extend2) {
1505
+ if (!isPlainObject(base)) return extend2;
1506
+ for (var key in extend2) {
1507
+ if (key === "__proto__" || key === "constructor" || key === "prototype") continue;
1508
+ base[key] = isPlainObject(base[key]) && isPlainObject(extend2[key]) ? _recursiveMerge(base[key], extend2[key]) : extend2[key];
1509
+ }
1510
+ return base;
1511
+ }
1512
+ __name(_recursiveMerge, "_recursiveMerge");
1513
+ function _merge(isClone, isRecursive, items) {
1514
+ var result;
1515
+ if (isClone || !isPlainObject(result = items.shift())) result = {};
1516
+ for (var index = 0; index < items.length; ++index) {
1517
+ var item = items[index];
1518
+ if (!isPlainObject(item)) continue;
1519
+ for (var key in item) {
1520
+ if (key === "__proto__" || key === "constructor" || key === "prototype") continue;
1521
+ var value = isClone ? clone(item[key]) : item[key];
1522
+ result[key] = isRecursive ? _recursiveMerge(result[key], value) : value;
1523
+ }
1524
+ }
1525
+ return result;
1526
+ }
1527
+ __name(_merge, "_merge");
1528
+ }
1529
+ });
1530
+
1443
1531
  // src/constants.ts
1444
1532
  init_esm_shims();
1445
1533
  var VERSION = "__VERSION__";
@@ -1493,7 +1581,7 @@ var Symbols = {
1493
1581
  // src/inversify.config.ts
1494
1582
  init_esm_shims();
1495
1583
 
1496
- // ../../node_modules/.pnpm/inversify@7.1.0_reflect-metadata@0.2.2/node_modules/inversify/lib/esm/index.js
1584
+ // ../../node_modules/.pnpm/inversify@7.2.0_reflect-metadata@0.2.2/node_modules/inversify/lib/esm/index.js
1497
1585
  init_esm_shims();
1498
1586
  var import_reflect_metadata2 = __toESM(require_Reflect(), 1);
1499
1587
 
@@ -1533,7 +1621,7 @@ var r = class r2 {
1533
1621
  }
1534
1622
  };
1535
1623
 
1536
- // ../../node_modules/.pnpm/@inversifyjs+container@1.5.4_reflect-metadata@0.2.2/node_modules/@inversifyjs/container/lib/esm/index.js
1624
+ // ../../node_modules/.pnpm/@inversifyjs+container@1.6.0_reflect-metadata@0.2.2/node_modules/@inversifyjs/container/lib/esm/index.js
1537
1625
  init_esm_shims();
1538
1626
  var import_reflect_metadata = __toESM(require_Reflect(), 1);
1539
1627
 
@@ -1553,13 +1641,13 @@ function a(e2, n4, a2, f2) {
1553
1641
  }
1554
1642
  __name(a, "a");
1555
1643
 
1556
- // ../../node_modules/.pnpm/@inversifyjs+core@5.0.0_reflect-metadata@0.2.2/node_modules/@inversifyjs/core/lib/esm/index.js
1644
+ // ../../node_modules/.pnpm/@inversifyjs+core@5.1.0_reflect-metadata@0.2.2/node_modules/@inversifyjs/core/lib/esm/index.js
1557
1645
  init_esm_shims();
1558
1646
 
1559
1647
  // ../../node_modules/.pnpm/@inversifyjs+prototype-utils@0.1.0/node_modules/@inversifyjs/prototype-utils/lib/esm/index.js
1560
1648
  init_esm_shims();
1561
1649
 
1562
- // ../../node_modules/.pnpm/@inversifyjs+core@5.0.0_reflect-metadata@0.2.2/node_modules/@inversifyjs/core/lib/esm/index.js
1650
+ // ../../node_modules/.pnpm/@inversifyjs+core@5.1.0_reflect-metadata@0.2.2/node_modules/@inversifyjs/core/lib/esm/index.js
1563
1651
  var s = {
1564
1652
  Request: "Request",
1565
1653
  Singleton: "Singleton",
@@ -1686,7 +1774,7 @@ var g = class g2 {
1686
1774
  }
1687
1775
  };
1688
1776
  !function(e2) {
1689
- e2.moduleId = "moduleId", e2.serviceId = "serviceId";
1777
+ e2.id = "id", e2.moduleId = "moduleId", e2.serviceId = "serviceId";
1690
1778
  }(p || (p = {}));
1691
1779
  var m = class m2 {
1692
1780
  static {
@@ -1696,6 +1784,9 @@ var m = class m2 {
1696
1784
  #u;
1697
1785
  constructor(e2, t5) {
1698
1786
  this.#d = t5 ?? new d({
1787
+ id: {
1788
+ isOptional: false
1789
+ },
1699
1790
  moduleId: {
1700
1791
  isOptional: true
1701
1792
  },
@@ -1713,14 +1804,20 @@ var m = class m2 {
1713
1804
  get(e2) {
1714
1805
  return this.getNonParentBindings(e2) ?? this.#u?.get(e2);
1715
1806
  }
1807
+ getById(e2) {
1808
+ return this.#d.get(p.id, e2) ?? this.#u?.getById(e2);
1809
+ }
1810
+ getByModuleId(e2) {
1811
+ return this.#d.get(p.moduleId, e2) ?? this.#u?.getByModuleId(e2);
1812
+ }
1716
1813
  getNonParentBindings(e2) {
1717
1814
  return this.#d.get(p.serviceId, e2);
1718
1815
  }
1719
1816
  getNonParentBoundServices() {
1720
1817
  return this.#d.getAllKeys(p.serviceId);
1721
1818
  }
1722
- getByModuleId(e2) {
1723
- return this.#d.get(p.moduleId, e2) ?? this.#u?.getByModuleId(e2);
1819
+ removeById(e2) {
1820
+ this.#d.removeByRelation(p.id, e2);
1724
1821
  }
1725
1822
  removeAllByModuleId(e2) {
1726
1823
  this.#d.removeByRelation(p.moduleId, e2);
@@ -1730,6 +1827,7 @@ var m = class m2 {
1730
1827
  }
1731
1828
  set(e2) {
1732
1829
  const t5 = {
1830
+ [p.id]: e2.id,
1733
1831
  [p.serviceId]: e2.serviceIdentifier
1734
1832
  };
1735
1833
  void 0 !== e2.moduleId && (t5[p.moduleId] = e2.moduleId), this.#d.add(e2, t5);
@@ -1866,10 +1964,10 @@ function x(e2, t5) {
1866
1964
  };
1867
1965
  }
1868
1966
  __name(x, "x");
1869
- function R(e2) {
1967
+ function B(e2) {
1870
1968
  if (e2.kind !== T.unknown && true !== e2.isFromTypescriptParamType) throw new b(j.injectionDecoratorConflict, "Unexpected injection found. Multiple @inject, @multiInject or @unmanaged decorators found");
1871
1969
  }
1872
- __name(R, "R");
1970
+ __name(B, "B");
1873
1971
  !function(e2) {
1874
1972
  e2[e2.injectionDecoratorConflict = 0] = "injectionDecoratorConflict", e2[e2.missingInjectionDecorator = 1] = "missingInjectionDecorator", e2[e2.planning = 2] = "planning", e2[e2.resolution = 3] = "resolution", e2[e2.unknown = 4] = "unknown";
1875
1973
  }(j || (j = {})), function(e2) {
@@ -1877,7 +1975,7 @@ __name(R, "R");
1877
1975
  }(T || (T = {})), function(e2) {
1878
1976
  e2[e2.multipleInjection = 0] = "multipleInjection", e2[e2.singleInjection = 1] = "singleInjection", e2[e2.unmanaged = 2] = "unmanaged";
1879
1977
  }(C || (C = {}));
1880
- var B = x(function(e2, t5) {
1978
+ var R = x(function(e2, t5) {
1881
1979
  return {
1882
1980
  kind: e2,
1883
1981
  name: void 0,
@@ -1886,7 +1984,7 @@ var B = x(function(e2, t5) {
1886
1984
  value: t5
1887
1985
  };
1888
1986
  }, function(e2, t5, n4) {
1889
- return R(e2), {
1987
+ return B(e2), {
1890
1988
  ...e2,
1891
1989
  kind: t5,
1892
1990
  value: n4
@@ -1991,7 +2089,7 @@ function F(e2, t5) {
1991
2089
  }
1992
2090
  __name(F, "F");
1993
2091
  function O(e2) {
1994
- return V(B(C.singleInjection, e2), $);
2092
+ return V(R(C.singleInjection, e2), $);
1995
2093
  }
1996
2094
  __name(O, "O");
1997
2095
  !function(e2) {
@@ -2045,7 +2143,7 @@ function te() {
2045
2143
  }
2046
2144
  __name(te, "te");
2047
2145
  var ne = x(te, function(e2) {
2048
- if (R(e2), function(e3) {
2146
+ if (B(e2), function(e3) {
2049
2147
  return void 0 !== e3.name || e3.optional || e3.tags.size > 0;
2050
2148
  }(e2)) throw new b(j.injectionDecoratorConflict, "Unexpected injection found. Found @unmanaged injection with additional @named, @optional, @tagged or @targetName injections");
2051
2149
  return te();
@@ -2477,7 +2575,7 @@ async function xe(e2, t5, n4) {
2477
2575
  return i;
2478
2576
  }
2479
2577
  __name(xe, "xe");
2480
- function Re(e2, t5, n4) {
2578
+ function Be(e2, t5, n4) {
2481
2579
  let i = n4;
2482
2580
  if (void 0 !== t5.onActivation) {
2483
2581
  const n5 = t5.onActivation;
@@ -2485,15 +2583,15 @@ function Re(e2, t5, n4) {
2485
2583
  }
2486
2584
  return $e(e2, t5.serviceIdentifier, i);
2487
2585
  }
2488
- __name(Re, "Re");
2489
- function Be(e2) {
2586
+ __name(Be, "Be");
2587
+ function Re(e2) {
2490
2588
  return (t5, n4) => {
2491
2589
  if (n4.cache.isRight) return n4.cache.value;
2492
- return Se(n4, Re(t5, n4, e2(t5, n4)));
2590
+ return Se(n4, Be(t5, n4, e2(t5, n4)));
2493
2591
  };
2494
2592
  }
2495
- __name(Be, "Be");
2496
- var ke = Be(function(e2, t5) {
2593
+ __name(Re, "Re");
2594
+ var ke = Re(function(e2, t5) {
2497
2595
  return t5.value;
2498
2596
  });
2499
2597
  function Pe(e2) {
@@ -2506,14 +2604,14 @@ function De(e2, t5) {
2506
2604
  switch (o.scope) {
2507
2605
  case s.Singleton:
2508
2606
  if (o.cache.isRight) return o.cache.value;
2509
- return Se(o, Re(n4, o, t5(n4, i)));
2607
+ return Se(o, Be(n4, o, t5(n4, i)));
2510
2608
  case s.Request: {
2511
2609
  if (n4.requestScopeCache.has(o.id)) return n4.requestScopeCache.get(o.id);
2512
- const e3 = Re(n4, o, t5(n4, i));
2610
+ const e3 = Be(n4, o, t5(n4, i));
2513
2611
  return n4.requestScopeCache.set(o.id, e3), e3;
2514
2612
  }
2515
2613
  case s.Transient:
2516
- return Re(n4, o, t5(n4, i));
2614
+ return Be(n4, o, t5(n4, i));
2517
2615
  }
2518
2616
  };
2519
2617
  }
@@ -2521,7 +2619,7 @@ __name(De, "De");
2521
2619
  var Ve = ((e2) => De(Pe, e2))(function(e2, t5) {
2522
2620
  return t5.value(e2.context);
2523
2621
  });
2524
- var Fe = Be(function(e2, t5) {
2622
+ var Fe = Re(function(e2, t5) {
2525
2623
  return t5.factory(e2.context);
2526
2624
  });
2527
2625
  function Oe(e2, t5, n4) {
@@ -2559,7 +2657,7 @@ function Ne(e2) {
2559
2657
  };
2560
2658
  }
2561
2659
  __name(Ne, "Ne");
2562
- var Ee = Be(function(e2, t5) {
2660
+ var Ee = Re(function(e2, t5) {
2563
2661
  return t5.provider(e2.context);
2564
2662
  });
2565
2663
  function Ue(e2) {
@@ -2734,89 +2832,100 @@ function at(e2, t5) {
2734
2832
  }
2735
2833
  __name(at, "at");
2736
2834
 
2737
- // ../../node_modules/.pnpm/@inversifyjs+container@1.5.4_reflect-metadata@0.2.2/node_modules/@inversifyjs/container/lib/esm/index.js
2738
- var y2 = class y3 {
2835
+ // ../../node_modules/.pnpm/@inversifyjs+container@1.6.0_reflect-metadata@0.2.2/node_modules/@inversifyjs/container/lib/esm/index.js
2836
+ var w2 = Symbol.for("@inversifyjs/container/bindingIdentifier");
2837
+ var I2 = class I3 {
2739
2838
  static {
2740
- __name(this, "y");
2839
+ __name(this, "I");
2741
2840
  }
2742
2841
  static always = /* @__PURE__ */ __name((i) => true, "always");
2743
2842
  };
2744
- var w2 = "@inversifyjs/container/bindingId";
2745
- function I2() {
2746
- const n4 = t2(Object, w2) ?? 0;
2747
- return n4 === Number.MAX_SAFE_INTEGER ? n2(Object, w2, Number.MIN_SAFE_INTEGER) : a(Object, w2, () => n4, (i) => i + 1), n4;
2843
+ var A2 = "@inversifyjs/container/bindingId";
2844
+ function P2() {
2845
+ const n4 = t2(Object, A2) ?? 0;
2846
+ return n4 === Number.MAX_SAFE_INTEGER ? n2(Object, A2, Number.MIN_SAFE_INTEGER) : a(Object, A2, () => n4, (i) => i + 1), n4;
2748
2847
  }
2749
- __name(I2, "I");
2750
- function A2(i) {
2848
+ __name(P2, "P");
2849
+ function R2(i) {
2850
+ return {
2851
+ [w2]: true,
2852
+ id: i.id
2853
+ };
2854
+ }
2855
+ __name(R2, "R");
2856
+ function B2(i) {
2751
2857
  return (e2) => {
2752
2858
  for (let t5 = e2.getAncestor(); void 0 !== t5; t5 = t5.getAncestor()) if (i(t5)) return true;
2753
2859
  return false;
2754
2860
  };
2755
2861
  }
2756
- __name(A2, "A");
2757
- function P2(i) {
2862
+ __name(B2, "B");
2863
+ function C2(i) {
2758
2864
  return (e2) => e2.name === i;
2759
2865
  }
2760
- __name(P2, "P");
2761
- function R2(i) {
2866
+ __name(C2, "C");
2867
+ function M2(i) {
2762
2868
  return (e2) => e2.serviceIdentifier === i;
2763
2869
  }
2764
- __name(R2, "R");
2765
- function B2(i, e2) {
2870
+ __name(M2, "M");
2871
+ function N2(i, e2) {
2766
2872
  return (t5) => t5.tags.has(i) && t5.tags.get(i) === e2;
2767
2873
  }
2768
- __name(B2, "B");
2769
- function C2(i) {
2874
+ __name(N2, "N");
2875
+ function x2(i) {
2770
2876
  return void 0 === i.name && 0 === i.tags.size;
2771
2877
  }
2772
- __name(C2, "C");
2773
- function M2(i) {
2774
- const e2 = A2(i);
2878
+ __name(x2, "x");
2879
+ function O2(i) {
2880
+ const e2 = B2(i);
2775
2881
  return (i2) => !e2(i2);
2776
2882
  }
2777
- __name(M2, "M");
2778
- function N2(i) {
2883
+ __name(O2, "O");
2884
+ function F2(i) {
2779
2885
  return (e2) => {
2780
2886
  const t5 = e2.getAncestor();
2781
2887
  return void 0 === t5 || !i(t5);
2782
2888
  };
2783
2889
  }
2784
- __name(N2, "N");
2785
- function x2(i) {
2890
+ __name(F2, "F");
2891
+ function j2(i) {
2786
2892
  return (e2) => {
2787
2893
  const t5 = e2.getAncestor();
2788
2894
  return void 0 !== t5 && i(t5);
2789
2895
  };
2790
2896
  }
2791
- __name(x2, "x");
2792
- var O2 = class O3 {
2897
+ __name(j2, "j");
2898
+ var k2 = class k3 {
2793
2899
  static {
2794
- __name(this, "O");
2900
+ __name(this, "k");
2795
2901
  }
2796
2902
  #t;
2797
2903
  constructor(i) {
2798
2904
  this.#t = i;
2799
2905
  }
2906
+ getIdentifier() {
2907
+ return R2(this.#t);
2908
+ }
2800
2909
  inRequestScope() {
2801
- return this.#t.scope = s.Request, new j2(this.#t);
2910
+ return this.#t.scope = s.Request, new V2(this.#t);
2802
2911
  }
2803
2912
  inSingletonScope() {
2804
- return this.#t.scope = s.Singleton, new j2(this.#t);
2913
+ return this.#t.scope = s.Singleton, new V2(this.#t);
2805
2914
  }
2806
2915
  inTransientScope() {
2807
- return this.#t.scope = s.Transient, new j2(this.#t);
2916
+ return this.#t.scope = s.Transient, new V2(this.#t);
2808
2917
  }
2809
2918
  };
2810
- var F2 = class F3 {
2919
+ var D2 = class D3 {
2811
2920
  static {
2812
- __name(this, "F");
2921
+ __name(this, "D");
2813
2922
  }
2814
2923
  #n;
2815
2924
  #s;
2816
2925
  #a;
2817
- #o;
2926
+ #r;
2818
2927
  constructor(i, e2, t5, n4) {
2819
- this.#n = i, this.#s = e2, this.#a = t5, this.#o = n4;
2928
+ this.#n = i, this.#s = e2, this.#a = t5, this.#r = n4;
2820
2929
  }
2821
2930
  to(i) {
2822
2931
  const e2 = S(i), t5 = {
@@ -2824,21 +2933,21 @@ var F2 = class F3 {
2824
2933
  isRight: false,
2825
2934
  value: void 0
2826
2935
  },
2827
- id: I2(),
2936
+ id: P2(),
2828
2937
  implementationType: i,
2829
- isSatisfiedBy: y2.always,
2938
+ isSatisfiedBy: I2.always,
2830
2939
  moduleId: this.#s,
2831
2940
  onActivation: void 0,
2832
2941
  onDeactivation: void 0,
2833
2942
  scope: e2.scope ?? this.#a,
2834
- serviceIdentifier: this.#o,
2943
+ serviceIdentifier: this.#r,
2835
2944
  type: c.Instance
2836
2945
  };
2837
- return this.#n(t5), new E2(t5);
2946
+ return this.#n(t5), new _(t5);
2838
2947
  }
2839
2948
  toSelf() {
2840
- if ("function" != typeof this.#o) throw new Error('"toSelf" function can only be applied when a newable function is used as service identifier');
2841
- return this.to(this.#o);
2949
+ if ("function" != typeof this.#r) throw new Error('"toSelf" function can only be applied when a newable function is used as service identifier');
2950
+ return this.to(this.#r);
2842
2951
  }
2843
2952
  toConstantValue(i) {
2844
2953
  const e2 = {
@@ -2846,17 +2955,17 @@ var F2 = class F3 {
2846
2955
  isRight: false,
2847
2956
  value: void 0
2848
2957
  },
2849
- id: I2(),
2850
- isSatisfiedBy: y2.always,
2958
+ id: P2(),
2959
+ isSatisfiedBy: I2.always,
2851
2960
  moduleId: this.#s,
2852
2961
  onActivation: void 0,
2853
2962
  onDeactivation: void 0,
2854
2963
  scope: s.Singleton,
2855
- serviceIdentifier: this.#o,
2964
+ serviceIdentifier: this.#r,
2856
2965
  type: c.ConstantValue,
2857
2966
  value: i
2858
2967
  };
2859
- return this.#n(e2), new j2(e2);
2968
+ return this.#n(e2), new V2(e2);
2860
2969
  }
2861
2970
  toDynamicValue(i) {
2862
2971
  const e2 = {
@@ -2864,17 +2973,17 @@ var F2 = class F3 {
2864
2973
  isRight: false,
2865
2974
  value: void 0
2866
2975
  },
2867
- id: I2(),
2868
- isSatisfiedBy: y2.always,
2976
+ id: P2(),
2977
+ isSatisfiedBy: I2.always,
2869
2978
  moduleId: this.#s,
2870
2979
  onActivation: void 0,
2871
2980
  onDeactivation: void 0,
2872
2981
  scope: this.#a,
2873
- serviceIdentifier: this.#o,
2982
+ serviceIdentifier: this.#r,
2874
2983
  type: c.DynamicValue,
2875
2984
  value: i
2876
2985
  };
2877
- return this.#n(e2), new E2(e2);
2986
+ return this.#n(e2), new _(e2);
2878
2987
  }
2879
2988
  toResolvedValue(i, e2) {
2880
2989
  const t5 = {
@@ -2883,17 +2992,17 @@ var F2 = class F3 {
2883
2992
  value: void 0
2884
2993
  },
2885
2994
  factory: i,
2886
- id: I2(),
2887
- isSatisfiedBy: y2.always,
2888
- metadata: this.#r(e2),
2995
+ id: P2(),
2996
+ isSatisfiedBy: I2.always,
2997
+ metadata: this.#o(e2),
2889
2998
  moduleId: this.#s,
2890
2999
  onActivation: void 0,
2891
3000
  onDeactivation: void 0,
2892
3001
  scope: this.#a,
2893
- serviceIdentifier: this.#o,
3002
+ serviceIdentifier: this.#r,
2894
3003
  type: c.ResolvedValue
2895
3004
  };
2896
- return this.#n(t5), new E2(t5);
3005
+ return this.#n(t5), new _(t5);
2897
3006
  }
2898
3007
  toFactory(i) {
2899
3008
  const e2 = {
@@ -2902,16 +3011,16 @@ var F2 = class F3 {
2902
3011
  value: void 0
2903
3012
  },
2904
3013
  factory: i,
2905
- id: I2(),
2906
- isSatisfiedBy: y2.always,
3014
+ id: P2(),
3015
+ isSatisfiedBy: I2.always,
2907
3016
  moduleId: this.#s,
2908
3017
  onActivation: void 0,
2909
3018
  onDeactivation: void 0,
2910
3019
  scope: s.Singleton,
2911
- serviceIdentifier: this.#o,
3020
+ serviceIdentifier: this.#r,
2912
3021
  type: c.Factory
2913
3022
  };
2914
- return this.#n(e2), new j2(e2);
3023
+ return this.#n(e2), new V2(e2);
2915
3024
  }
2916
3025
  toProvider(i) {
2917
3026
  const e2 = {
@@ -2919,30 +3028,30 @@ var F2 = class F3 {
2919
3028
  isRight: false,
2920
3029
  value: void 0
2921
3030
  },
2922
- id: I2(),
2923
- isSatisfiedBy: y2.always,
3031
+ id: P2(),
3032
+ isSatisfiedBy: I2.always,
2924
3033
  moduleId: this.#s,
2925
3034
  onActivation: void 0,
2926
3035
  onDeactivation: void 0,
2927
3036
  provider: i,
2928
3037
  scope: s.Singleton,
2929
- serviceIdentifier: this.#o,
3038
+ serviceIdentifier: this.#r,
2930
3039
  type: c.Provider
2931
3040
  };
2932
- return this.#n(e2), new j2(e2);
3041
+ return this.#n(e2), new V2(e2);
2933
3042
  }
2934
3043
  toService(i) {
2935
3044
  const e2 = {
2936
- id: I2(),
2937
- isSatisfiedBy: y2.always,
3045
+ id: P2(),
3046
+ isSatisfiedBy: I2.always,
2938
3047
  moduleId: this.#s,
2939
- serviceIdentifier: this.#o,
3048
+ serviceIdentifier: this.#r,
2940
3049
  targetServiceIdentifier: i,
2941
3050
  type: c.ServiceRedirection
2942
3051
  };
2943
3052
  this.#n(e2);
2944
3053
  }
2945
- #r(i) {
3054
+ #o(i) {
2946
3055
  return {
2947
3056
  arguments: (i ?? []).map((i2) => function(i3) {
2948
3057
  return "object" == typeof i3 && !r.is(i3);
@@ -2965,113 +3074,119 @@ var F2 = class F3 {
2965
3074
  };
2966
3075
  }
2967
3076
  };
2968
- var D2 = class D3 {
3077
+ var E2 = class E3 {
2969
3078
  static {
2970
- __name(this, "D");
3079
+ __name(this, "E");
2971
3080
  }
2972
3081
  #t;
2973
3082
  constructor(i) {
2974
3083
  this.#t = i;
2975
3084
  }
3085
+ getIdentifier() {
3086
+ return R2(this.#t);
3087
+ }
2976
3088
  onActivation(i) {
2977
- return this.#t.onActivation = i, new k2(this.#t);
3089
+ return this.#t.onActivation = i, new T2(this.#t);
2978
3090
  }
2979
3091
  onDeactivation(i) {
2980
- return this.#t.onDeactivation = i, new k2(this.#t);
3092
+ return this.#t.onDeactivation = i, new T2(this.#t);
2981
3093
  }
2982
3094
  };
2983
- var k2 = class k3 {
3095
+ var T2 = class T3 {
2984
3096
  static {
2985
- __name(this, "k");
3097
+ __name(this, "T");
2986
3098
  }
2987
3099
  #t;
2988
3100
  constructor(i) {
2989
3101
  this.#t = i;
2990
3102
  }
3103
+ getIdentifier() {
3104
+ return R2(this.#t);
3105
+ }
2991
3106
  when(i) {
2992
- return this.#t.isSatisfiedBy = i, new D2(this.#t);
3107
+ return this.#t.isSatisfiedBy = i, new E2(this.#t);
2993
3108
  }
2994
3109
  whenAnyAncestor(i) {
2995
- return this.when(A2(i));
3110
+ return this.when(B2(i));
2996
3111
  }
2997
3112
  whenAnyAncestorIs(i) {
2998
- return this.when(A2(R2(i)));
3113
+ return this.when(B2(M2(i)));
2999
3114
  }
3000
3115
  whenAnyAncestorNamed(i) {
3001
3116
  return this.when(function(i2) {
3002
- return A2(P2(i2));
3117
+ return B2(C2(i2));
3003
3118
  }(i));
3004
3119
  }
3005
3120
  whenAnyAncestorTagged(i, e2) {
3006
3121
  return this.when(function(i2, e3) {
3007
- return A2(B2(i2, e3));
3122
+ return B2(N2(i2, e3));
3008
3123
  }(i, e2));
3009
3124
  }
3010
3125
  whenDefault() {
3011
- return this.when(C2);
3126
+ return this.when(x2);
3012
3127
  }
3013
3128
  whenNamed(i) {
3014
- return this.when(P2(i));
3129
+ return this.when(C2(i));
3015
3130
  }
3016
3131
  whenNoParent(i) {
3017
- return this.when(N2(i));
3132
+ return this.when(F2(i));
3018
3133
  }
3019
3134
  whenNoParentIs(i) {
3020
- return this.when(N2(R2(i)));
3135
+ return this.when(F2(M2(i)));
3021
3136
  }
3022
3137
  whenNoParentNamed(i) {
3023
3138
  return this.when(function(i2) {
3024
- return N2(P2(i2));
3139
+ return F2(C2(i2));
3025
3140
  }(i));
3026
3141
  }
3027
3142
  whenNoParentTagged(i, e2) {
3028
3143
  return this.when(function(i2, e3) {
3029
- return N2(B2(i2, e3));
3144
+ return F2(N2(i2, e3));
3030
3145
  }(i, e2));
3031
3146
  }
3032
3147
  whenParent(i) {
3033
- return this.when(x2(i));
3148
+ return this.when(j2(i));
3034
3149
  }
3035
3150
  whenParentIs(i) {
3036
- return this.when(x2(R2(i)));
3151
+ return this.when(j2(M2(i)));
3037
3152
  }
3038
3153
  whenParentNamed(i) {
3039
3154
  return this.when(function(i2) {
3040
- return x2(P2(i2));
3155
+ return j2(C2(i2));
3041
3156
  }(i));
3042
3157
  }
3043
3158
  whenParentTagged(i, e2) {
3044
3159
  return this.when(function(i2, e3) {
3045
- return x2(B2(i2, e3));
3160
+ return j2(N2(i2, e3));
3046
3161
  }(i, e2));
3047
3162
  }
3048
3163
  whenTagged(i, e2) {
3049
- return this.when(B2(i, e2));
3164
+ return this.when(N2(i, e2));
3050
3165
  }
3051
3166
  whenNoAncestor(i) {
3052
- return this.when(M2(i));
3167
+ return this.when(O2(i));
3053
3168
  }
3054
3169
  whenNoAncestorIs(i) {
3055
- return this.when(M2(R2(i)));
3170
+ return this.when(O2(M2(i)));
3056
3171
  }
3057
3172
  whenNoAncestorNamed(i) {
3058
3173
  return this.when(function(i2) {
3059
- return M2(P2(i2));
3174
+ return O2(C2(i2));
3060
3175
  }(i));
3061
3176
  }
3062
3177
  whenNoAncestorTagged(i, e2) {
3063
3178
  return this.when(function(i2, e3) {
3064
- return M2(B2(i2, e3));
3179
+ return O2(N2(i2, e3));
3065
3180
  }(i, e2));
3066
3181
  }
3067
3182
  };
3068
- var j2 = class j3 extends k2 {
3183
+ var V2 = class V3 extends T2 {
3069
3184
  static {
3070
- __name(this, "j");
3185
+ __name(this, "V");
3071
3186
  }
3072
3187
  #c;
3073
3188
  constructor(i) {
3074
- super(i), this.#c = new D2(i);
3189
+ super(i), this.#c = new E2(i);
3075
3190
  }
3076
3191
  onActivation(i) {
3077
3192
  return this.#c.onActivation(i);
@@ -3080,13 +3195,13 @@ var j2 = class j3 extends k2 {
3080
3195
  return this.#c.onDeactivation(i);
3081
3196
  }
3082
3197
  };
3083
- var E2 = class E3 extends j2 {
3198
+ var _ = class _2 extends V2 {
3084
3199
  static {
3085
- __name(this, "E");
3200
+ __name(this, "_");
3086
3201
  }
3087
3202
  #d;
3088
3203
  constructor(i) {
3089
- super(i), this.#d = new O2(i);
3204
+ super(i), this.#d = new k2(i);
3090
3205
  }
3091
3206
  inRequestScope() {
3092
3207
  return this.#d.inRequestScope();
@@ -3098,31 +3213,31 @@ var E2 = class E3 extends j2 {
3098
3213
  return this.#d.inTransientScope();
3099
3214
  }
3100
3215
  };
3101
- var T2 = Symbol.for("@inversifyjs/container/InversifyContainerError");
3102
- var V2 = class V3 extends Error {
3216
+ var G = Symbol.for("@inversifyjs/container/InversifyContainerError");
3217
+ var q = class q2 extends Error {
3103
3218
  static {
3104
- __name(this, "V");
3219
+ __name(this, "q");
3105
3220
  }
3106
- [T2];
3221
+ [G];
3107
3222
  kind;
3108
3223
  constructor(i, e2, t5) {
3109
- super(e2, t5), this[T2] = true, this.kind = i;
3224
+ super(e2, t5), this[G] = true, this.kind = i;
3110
3225
  }
3111
3226
  static is(i) {
3112
- return "object" == typeof i && null !== i && true === i[T2];
3227
+ return "object" == typeof i && null !== i && true === i[G];
3113
3228
  }
3114
3229
  static isErrorOfKind(i, e2) {
3115
- return V3.is(i) && i.kind === e2;
3230
+ return q2.is(i) && i.kind === e2;
3116
3231
  }
3117
3232
  };
3118
- var _;
3233
+ var L;
3119
3234
  !function(i) {
3120
3235
  i[i.invalidOperation = 0] = "invalidOperation";
3121
- }(_ || (_ = {}));
3122
- var G = s.Transient;
3123
- var q = class q2 {
3236
+ }(L || (L = {}));
3237
+ var U2 = s.Transient;
3238
+ var X = class X2 {
3124
3239
  static {
3125
- __name(this, "q");
3240
+ __name(this, "X");
3126
3241
  }
3127
3242
  #l;
3128
3243
  #u;
@@ -3134,45 +3249,46 @@ var q = class q2 {
3134
3249
  #p;
3135
3250
  #f;
3136
3251
  #m;
3252
+ #y;
3137
3253
  constructor(i) {
3138
- this.#v = (i2) => this.#l.get(i2), this.#S = new Ce(), this.#p = this.#y(), void 0 === i?.parent ? (this.#l = g.build(void 0), this.#u = m.build(void 0), this.#h = h.build(void 0)) : (this.#l = g.build(i.parent.#l), this.#u = m.build(i.parent.#u), this.#h = h.build(i.parent.#h), i.parent.#S.subscribe(this.#S)), this.#g = this.#u.get.bind(this.#u), this.#f = this.#w.bind(this), this.#b = {
3254
+ this.#h = this.#w(), this.#g = (i2) => this.#l.get(i2), this.#p = new Ce(), this.#f = this.#I(), void 0 === i?.parent ? (this.#l = g.build(void 0), this.#u = m.build(void 0), this.#v = h.build(void 0)) : (this.#l = g.build(i.parent.#l), this.#u = m.build(i.parent.#u), this.#v = h.build(i.parent.#v), i.parent.#p.subscribe(this.#p)), this.#b = this.#u.get.bind(this.#u), this.#m = this.#A.bind(this), this.#S = {
3139
3255
  autobind: i?.autobind ?? false,
3140
- defaultScope: i?.defaultScope ?? G
3141
- }, this.#m = [];
3256
+ defaultScope: i?.defaultScope ?? U2
3257
+ }, this.#y = [];
3142
3258
  }
3143
3259
  bind(i) {
3144
- return new F2((i2) => {
3145
- this.#w(i2);
3146
- }, void 0, this.#b.defaultScope, i);
3260
+ return new D2((i2) => {
3261
+ this.#A(i2);
3262
+ }, void 0, this.#S.defaultScope, i);
3147
3263
  }
3148
3264
  get(i, e2) {
3149
- const t5 = this.#I(false, i, e2), n4 = this.#A(t5);
3150
- if (e(n4)) throw new V2(_.invalidOperation, `Unexpected asyncronous service when resolving service "${t(i)}"`);
3265
+ const t5 = this.#P(false, i, e2), n4 = this.#R(t5);
3266
+ if (e(n4)) throw new q(L.invalidOperation, `Unexpected asyncronous service when resolving service "${t(i)}"`);
3151
3267
  return n4;
3152
3268
  }
3153
3269
  getAll(i, e2) {
3154
- const t5 = this.#I(true, i, e2), n4 = this.#A(t5);
3155
- if (e(n4)) throw new V2(_.invalidOperation, `Unexpected asyncronous service when resolving service "${t(i)}"`);
3270
+ const t5 = this.#P(true, i, e2), n4 = this.#R(t5);
3271
+ if (e(n4)) throw new q(L.invalidOperation, `Unexpected asyncronous service when resolving service "${t(i)}"`);
3156
3272
  return n4;
3157
3273
  }
3158
3274
  async getAllAsync(i, e2) {
3159
- const t5 = this.#I(true, i, e2);
3160
- return this.#A(t5);
3275
+ const t5 = this.#P(true, i, e2);
3276
+ return this.#R(t5);
3161
3277
  }
3162
3278
  async getAsync(i, e2) {
3163
- const t5 = this.#I(false, i, e2);
3164
- return this.#A(t5);
3279
+ const t5 = this.#P(false, i, e2);
3280
+ return this.#R(t5);
3165
3281
  }
3166
3282
  isBound(i, e2) {
3167
3283
  const t5 = this.#u.get(i);
3168
- return this.#P(i, t5, e2);
3284
+ return this.#B(i, t5, e2);
3169
3285
  }
3170
3286
  isCurrentBound(i, e2) {
3171
3287
  const t5 = this.#u.getNonParentBindings(i);
3172
- return this.#P(i, t5, e2);
3288
+ return this.#B(i, t5, e2);
3173
3289
  }
3174
3290
  async load(...i) {
3175
- await Promise.all(i.map(async (i2) => i2.load(this.#R(i2.id))));
3291
+ await Promise.all(i.map(async (i2) => i2.load(this.#C(i2.id))));
3176
3292
  }
3177
3293
  onActivation(i, e2) {
3178
3294
  this.#l.add(e2, {
@@ -3180,44 +3296,44 @@ var q = class q2 {
3180
3296
  });
3181
3297
  }
3182
3298
  onDeactivation(i, e2) {
3183
- this.#h.add(e2, {
3299
+ this.#v.add(e2, {
3184
3300
  serviceId: i
3185
3301
  });
3186
3302
  }
3187
3303
  restore() {
3188
- const i = this.#m.pop();
3189
- if (void 0 === i) throw new V2(_.invalidOperation, "No snapshot available to restore");
3190
- this.#l = i.activationService, this.#u = i.bindingService, this.#h = i.deactivationService, this.#B();
3304
+ const i = this.#y.pop();
3305
+ if (void 0 === i) throw new q(L.invalidOperation, "No snapshot available to restore");
3306
+ this.#l = i.activationService, this.#u = i.bindingService, this.#v = i.deactivationService, this.#M();
3191
3307
  }
3192
3308
  snapshot() {
3193
- this.#m.push({
3309
+ this.#y.push({
3194
3310
  activationService: this.#l.clone(),
3195
3311
  bindingService: this.#u.clone(),
3196
- deactivationService: this.#h.clone()
3312
+ deactivationService: this.#v.clone()
3197
3313
  });
3198
3314
  }
3199
3315
  async unbind(i) {
3200
- await at(this.#C(), i), this.#l.removeAllByServiceId(i), this.#u.removeAllByServiceId(i), this.#h.removeAllByServiceId(i), this.#S.clearCache();
3316
+ var e2;
3317
+ "object" == typeof (e2 = i) && null !== e2 && true === e2[w2] ? await this.#N(i) : await this.#x(i);
3201
3318
  }
3202
3319
  async unbindAll() {
3203
- const i = this.#C(), e2 = [
3320
+ const i = [
3204
3321
  ...this.#u.getNonParentBoundServices()
3205
3322
  ];
3206
- await Promise.all(e2.map(async (e3) => at(i, e3)));
3207
- for (const i2 of e2) this.#l.removeAllByServiceId(i2), this.#u.removeAllByServiceId(i2), this.#h.removeAllByServiceId(i2);
3208
- this.#S.clearCache();
3323
+ await Promise.all(i.map(async (i2) => at(this.#h, i2)));
3324
+ for (const e2 of i) this.#l.removeAllByServiceId(e2), this.#u.removeAllByServiceId(e2), this.#v.removeAllByServiceId(e2);
3325
+ this.#p.clearCache();
3209
3326
  }
3210
3327
  async unload(...i) {
3211
- const e2 = this.#C();
3212
- await Promise.all(i.map((i2) => rt(e2, i2.id)));
3213
- for (const e3 of i) this.#l.removeAllByModuleId(e3.id), this.#u.removeAllByModuleId(e3.id), this.#h.removeAllByModuleId(e3.id);
3214
- this.#S.clearCache();
3328
+ await Promise.all(i.map((i2) => rt(this.#h, i2.id)));
3329
+ for (const e2 of i) this.#l.removeAllByModuleId(e2.id), this.#u.removeAllByModuleId(e2.id), this.#v.removeAllByModuleId(e2.id);
3330
+ this.#p.clearCache();
3215
3331
  }
3216
- #R(i) {
3332
+ #C(i) {
3217
3333
  return {
3218
- bind: /* @__PURE__ */ __name((e2) => new F2((i2) => {
3219
- this.#w(i2);
3220
- }, i, this.#b.defaultScope, e2), "bind"),
3334
+ bind: /* @__PURE__ */ __name((e2) => new D2((i2) => {
3335
+ this.#A(i2);
3336
+ }, i, this.#S.defaultScope, e2), "bind"),
3221
3337
  isBound: this.isBound.bind(this),
3222
3338
  onActivation: /* @__PURE__ */ __name((e2, t5) => {
3223
3339
  this.#l.add(t5, {
@@ -3226,7 +3342,7 @@ var q = class q2 {
3226
3342
  });
3227
3343
  }, "onActivation"),
3228
3344
  onDeactivation: /* @__PURE__ */ __name((e2, t5) => {
3229
- this.#h.add(t5, {
3345
+ this.#v.add(t5, {
3230
3346
  moduleId: i,
3231
3347
  serviceId: e2
3232
3348
  });
@@ -3234,15 +3350,15 @@ var q = class q2 {
3234
3350
  unbind: this.unbind.bind(this)
3235
3351
  };
3236
3352
  }
3237
- #C() {
3353
+ #w() {
3238
3354
  return {
3239
3355
  getBindings: /* @__PURE__ */ __name((i) => this.#u.get(i), "getBindings"),
3240
3356
  getBindingsFromModule: /* @__PURE__ */ __name((i) => this.#u.getByModuleId(i), "getBindingsFromModule"),
3241
3357
  getClassMetadata: S,
3242
- getDeactivations: /* @__PURE__ */ __name((i) => this.#h.get(i), "getDeactivations")
3358
+ getDeactivations: /* @__PURE__ */ __name((i) => this.#v.get(i), "getDeactivations")
3243
3359
  };
3244
3360
  }
3245
- #M(i, e2, t5) {
3361
+ #O(i, e2, t5) {
3246
3362
  return {
3247
3363
  isMultiple: i,
3248
3364
  name: t5?.name,
@@ -3251,29 +3367,29 @@ var q = class q2 {
3251
3367
  tag: t5?.tag
3252
3368
  };
3253
3369
  }
3254
- #N(i, e2, t5) {
3370
+ #F(i, e2, t5) {
3255
3371
  const n4 = {
3256
- autobindOptions: t5?.autobind ?? this.#b.autobind ? {
3257
- scope: this.#b.defaultScope
3372
+ autobindOptions: t5?.autobind ?? this.#S.autobind ? {
3373
+ scope: this.#S.defaultScope
3258
3374
  } : void 0,
3259
- getBindings: this.#g,
3375
+ getBindings: this.#b,
3260
3376
  getClassMetadata: S,
3261
3377
  rootConstraints: {
3262
3378
  isMultiple: e2,
3263
3379
  serviceIdentifier: i
3264
3380
  },
3265
3381
  servicesBranch: [],
3266
- setBinding: this.#f
3382
+ setBinding: this.#m
3267
3383
  };
3268
- return this.#x(n4, t5), n4;
3384
+ return this.#j(n4, t5), n4;
3269
3385
  }
3270
- #I(i, e2, t5) {
3271
- const n4 = this.#M(i, e2, t5), s2 = this.#S.get(n4);
3386
+ #P(i, e2, t5) {
3387
+ const n4 = this.#O(i, e2, t5), s2 = this.#p.get(n4);
3272
3388
  if (void 0 !== s2) return s2;
3273
- const a2 = he(this.#N(e2, i, t5));
3274
- return this.#S.set(n4, a2), a2;
3389
+ const a2 = he(this.#F(e2, i, t5));
3390
+ return this.#p.set(n4, a2), a2;
3275
3391
  }
3276
- #y() {
3392
+ #I() {
3277
3393
  return {
3278
3394
  get: this.get.bind(this),
3279
3395
  getAll: this.getAll.bind(this),
@@ -3281,21 +3397,21 @@ var q = class q2 {
3281
3397
  getAsync: this.getAsync.bind(this)
3282
3398
  };
3283
3399
  }
3284
- #A(i) {
3400
+ #R(i) {
3285
3401
  return Qe({
3286
- context: this.#p,
3287
- getActivations: this.#v,
3402
+ context: this.#f,
3403
+ getActivations: this.#g,
3288
3404
  planResult: i,
3289
3405
  requestScopeCache: /* @__PURE__ */ new Map()
3290
3406
  });
3291
3407
  }
3292
- #x(i, e2) {
3408
+ #j(i, e2) {
3293
3409
  void 0 !== e2 && (void 0 !== e2.name && (i.rootConstraints.name = e2.name), true === e2.optional && (i.rootConstraints.isOptional = true), void 0 !== e2.tag && (i.rootConstraints.tag = {
3294
3410
  key: e2.tag.key,
3295
3411
  value: e2.tag.value
3296
3412
  }));
3297
3413
  }
3298
- #P(i, e2, t5) {
3414
+ #B(i, e2, t5) {
3299
3415
  if (void 0 === e2) return false;
3300
3416
  const n4 = {
3301
3417
  getAncestor: /* @__PURE__ */ __name(() => {
@@ -3308,11 +3424,18 @@ var q = class q2 {
3308
3424
  for (const i2 of e2) if (i2.isSatisfiedBy(n4)) return true;
3309
3425
  return false;
3310
3426
  }
3311
- #B() {
3312
- this.#S.clearCache(), this.#v = (i) => this.#l.get(i), this.#g = this.#u.get.bind(this.#u), this.#p = this.#y(), this.#f = this.#w.bind(this);
3427
+ #M() {
3428
+ this.#p.clearCache(), this.#g = (i) => this.#l.get(i), this.#b = this.#u.get.bind(this.#u), this.#f = this.#I(), this.#m = this.#A.bind(this);
3429
+ }
3430
+ #A(i) {
3431
+ this.#u.set(i), this.#p.clearCache();
3432
+ }
3433
+ async #N(i) {
3434
+ const e2 = this.#u.getById(i.id);
3435
+ await ot(this.#h, e2), this.#u.removeById(i.id), this.#p.clearCache();
3313
3436
  }
3314
- #w(i) {
3315
- this.#u.set(i), this.#S.clearCache();
3437
+ async #x(i) {
3438
+ await at(this.#h, i), this.#l.removeAllByServiceId(i), this.#u.removeAllByServiceId(i), this.#v.removeAllByServiceId(i), this.#p.clearCache();
3316
3439
  }
3317
3440
  };
3318
3441
 
@@ -4335,7 +4458,7 @@ var AST = class _AST {
4335
4458
  if (!this.type) {
4336
4459
  const noEmpty = this.isStart() && this.isEnd();
4337
4460
  const src = this.#parts.map((p2) => {
4338
- const [re3, _3, hasMagic2, uflag] = typeof p2 === "string" ? _AST.#parseGlob(p2, this.#hasMagic, noEmpty) : p2.toRegExpSource(allowDot);
4461
+ const [re3, _4, hasMagic2, uflag] = typeof p2 === "string" ? _AST.#parseGlob(p2, this.#hasMagic, noEmpty) : p2.toRegExpSource(allowDot);
4339
4462
  this.#hasMagic = this.#hasMagic || hasMagic2;
4340
4463
  this.#uflag = this.#uflag || uflag;
4341
4464
  return re3;
@@ -4412,7 +4535,7 @@ var AST = class _AST {
4412
4535
  if (typeof p2 === "string") {
4413
4536
  throw new Error("string type in extglob ast??");
4414
4537
  }
4415
- const [re3, _3, _hasMagic, uflag] = p2.toRegExpSource(dot);
4538
+ const [re3, _4, _hasMagic, uflag] = p2.toRegExpSource(dot);
4416
4539
  this.#uflag = this.#uflag || uflag;
4417
4540
  return re3;
4418
4541
  }).filter((p2) => !(this.isStart() && this.isEnd()) || !!p2).join("|");
@@ -4563,8 +4686,8 @@ var defaults = /* @__PURE__ */ __name((def) => {
4563
4686
  return minimatch;
4564
4687
  }
4565
4688
  const orig = minimatch;
4566
- const m4 = /* @__PURE__ */ __name((p2, pattern, options = {}) => orig(p2, pattern, ext(def, options)), "m");
4567
- return Object.assign(m4, {
4689
+ const m3 = /* @__PURE__ */ __name((p2, pattern, options = {}) => orig(p2, pattern, ext(def, options)), "m");
4690
+ return Object.assign(m3, {
4568
4691
  Minimatch: class Minimatch extends orig.Minimatch {
4569
4692
  static {
4570
4693
  __name(this, "Minimatch");
@@ -4681,7 +4804,7 @@ var Minimatch = class {
4681
4804
  }
4682
4805
  return false;
4683
4806
  }
4684
- debug(..._3) {
4807
+ debug(..._4) {
4685
4808
  }
4686
4809
  make() {
4687
4810
  const pattern = this.pattern;
@@ -4705,7 +4828,7 @@ var Minimatch = class {
4705
4828
  const rawGlobParts = this.globSet.map((s2) => this.slashSplit(s2));
4706
4829
  this.globParts = this.preprocess(rawGlobParts);
4707
4830
  this.debug(this.pattern, this.globParts);
4708
- let set3 = this.globParts.map((s2, _3, __) => {
4831
+ let set3 = this.globParts.map((s2, _4, __) => {
4709
4832
  if (this.isWindows && this.windowsNoMagicRoot) {
4710
4833
  const isUNC = s2[0] === "" && s2[1] === "" && (s2[2] === "?" || !globMagic.test(s2[2])) && !globMagic.test(s2[3]);
4711
4834
  const isDrive = /^[a-z]:/i.test(s2[0]);
@@ -4743,9 +4866,9 @@ var Minimatch = class {
4743
4866
  preprocess(globParts) {
4744
4867
  if (this.options.noglobstar) {
4745
4868
  for (let i = 0; i < globParts.length; i++) {
4746
- for (let j4 = 0; j4 < globParts[i].length; j4++) {
4747
- if (globParts[i][j4] === "**") {
4748
- globParts[i][j4] = "*";
4869
+ for (let j3 = 0; j3 < globParts[i].length; j3++) {
4870
+ if (globParts[i][j3] === "**") {
4871
+ globParts[i][j3] = "*";
4749
4872
  }
4750
4873
  }
4751
4874
  }
@@ -4923,11 +5046,11 @@ var Minimatch = class {
4923
5046
  // ^-- not valid because ** doens't follow symlinks
4924
5047
  secondPhasePreProcess(globParts) {
4925
5048
  for (let i = 0; i < globParts.length - 1; i++) {
4926
- for (let j4 = i + 1; j4 < globParts.length; j4++) {
4927
- const matched = this.partsMatch(globParts[i], globParts[j4], !this.preserveMultipleSlashes);
5049
+ for (let j3 = i + 1; j3 < globParts.length; j3++) {
5050
+ const matched = this.partsMatch(globParts[i], globParts[j3], !this.preserveMultipleSlashes);
4928
5051
  if (matched) {
4929
5052
  globParts[i] = [];
4930
- globParts[j4] = matched;
5053
+ globParts[j3] = matched;
4931
5054
  break;
4932
5055
  }
4933
5056
  }
@@ -5092,17 +5215,17 @@ var Minimatch = class {
5092
5215
  const options = this.options;
5093
5216
  if (pattern === "**") return GLOBSTAR;
5094
5217
  if (pattern === "") return "";
5095
- let m4;
5218
+ let m3;
5096
5219
  let fastTest = null;
5097
- if (m4 = pattern.match(starRE)) {
5220
+ if (m3 = pattern.match(starRE)) {
5098
5221
  fastTest = options.dot ? starTestDot : starTest;
5099
- } else if (m4 = pattern.match(starDotExtRE)) {
5100
- fastTest = (options.nocase ? options.dot ? starDotExtTestNocaseDot : starDotExtTestNocase : options.dot ? starDotExtTestDot : starDotExtTest)(m4[1]);
5101
- } else if (m4 = pattern.match(qmarksRE)) {
5102
- fastTest = (options.nocase ? options.dot ? qmarksTestNocaseDot : qmarksTestNocase : options.dot ? qmarksTestDot : qmarksTest)(m4);
5103
- } else if (m4 = pattern.match(starDotStarRE)) {
5222
+ } else if (m3 = pattern.match(starDotExtRE)) {
5223
+ fastTest = (options.nocase ? options.dot ? starDotExtTestNocaseDot : starDotExtTestNocase : options.dot ? starDotExtTestDot : starDotExtTest)(m3[1]);
5224
+ } else if (m3 = pattern.match(qmarksRE)) {
5225
+ fastTest = (options.nocase ? options.dot ? qmarksTestNocaseDot : qmarksTestNocase : options.dot ? qmarksTestDot : qmarksTest)(m3);
5226
+ } else if (m3 = pattern.match(starDotStarRE)) {
5104
5227
  fastTest = options.dot ? starDotStarTestDot : starDotStarTest;
5105
- } else if (m4 = pattern.match(dotStarRE)) {
5228
+ } else if (m3 = pattern.match(dotStarRE)) {
5106
5229
  fastTest = dotStarTest;
5107
5230
  }
5108
5231
  const re3 = AST.fromGlob(pattern, this.options).toMMPattern();
@@ -5264,7 +5387,7 @@ if (typeof AC === "undefined") {
5264
5387
  _onabort = [];
5265
5388
  reason;
5266
5389
  aborted = false;
5267
- addEventListener(_3, fn) {
5390
+ addEventListener(_4, fn) {
5268
5391
  this._onabort.push(fn);
5269
5392
  }
5270
5393
  };
@@ -6892,7 +7015,7 @@ var Minipass = class extends EventEmitter {
6892
7015
  * No-op setter. Stream aborted status is set via the AbortSignal provided
6893
7016
  * in the constructor options.
6894
7017
  */
6895
- set aborted(_3) {
7018
+ set aborted(_4) {
6896
7019
  }
6897
7020
  write(chunk, encoding, cb) {
6898
7021
  if (this[ABORTED]) return false;
@@ -7774,12 +7897,12 @@ var PathBase = class {
7774
7897
  /**
7775
7898
  * Get the Path object referenced by the string path, resolved from this Path
7776
7899
  */
7777
- resolve(path16) {
7778
- if (!path16) {
7900
+ resolve(path17) {
7901
+ if (!path17) {
7779
7902
  return this;
7780
7903
  }
7781
- const rootPath = this.getRootString(path16);
7782
- const dir = path16.substring(rootPath.length);
7904
+ const rootPath = this.getRootString(path17);
7905
+ const dir = path17.substring(rootPath.length);
7783
7906
  const dirParts = dir.split(this.splitSep);
7784
7907
  const result = rootPath ? this.getRoot(rootPath).#resolveParts(dirParts) : this.#resolveParts(dirParts);
7785
7908
  return result;
@@ -8439,7 +8562,7 @@ var PathBase = class {
8439
8562
  try {
8440
8563
  const rp = await this.#fs.promises.realpath(this.fullpath());
8441
8564
  return this.#realpath = this.resolve(rp);
8442
- } catch (_3) {
8565
+ } catch (_4) {
8443
8566
  this.#markENOREALPATH();
8444
8567
  }
8445
8568
  }
@@ -8452,7 +8575,7 @@ var PathBase = class {
8452
8575
  try {
8453
8576
  const rp = this.#fs.realpathSync(this.fullpath());
8454
8577
  return this.#realpath = this.resolve(rp);
8455
- } catch (_3) {
8578
+ } catch (_4) {
8456
8579
  this.#markENOREALPATH();
8457
8580
  }
8458
8581
  }
@@ -8514,8 +8637,8 @@ var PathWin32 = class _PathWin32 extends PathBase {
8514
8637
  /**
8515
8638
  * @internal
8516
8639
  */
8517
- getRootString(path16) {
8518
- return win32.parse(path16).root;
8640
+ getRootString(path17) {
8641
+ return win32.parse(path17).root;
8519
8642
  }
8520
8643
  /**
8521
8644
  * @internal
@@ -8564,8 +8687,8 @@ var PathPosix = class _PathPosix extends PathBase {
8564
8687
  /**
8565
8688
  * @internal
8566
8689
  */
8567
- getRootString(path16) {
8568
- return path16.startsWith("/") ? "/" : "";
8690
+ getRootString(path17) {
8691
+ return path17.startsWith("/") ? "/" : "";
8569
8692
  }
8570
8693
  /**
8571
8694
  * @internal
@@ -8617,8 +8740,8 @@ var PathScurryBase = class {
8617
8740
  *
8618
8741
  * @internal
8619
8742
  */
8620
- constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs14 = defaultFS } = {}) {
8621
- this.#fs = fsFromOption(fs14);
8743
+ constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs15 = defaultFS } = {}) {
8744
+ this.#fs = fsFromOption(fs15);
8622
8745
  if (cwd instanceof URL || cwd.startsWith("file://")) {
8623
8746
  cwd = fileURLToPath(cwd);
8624
8747
  }
@@ -8657,11 +8780,11 @@ var PathScurryBase = class {
8657
8780
  /**
8658
8781
  * Get the depth of a provided path, string, or the cwd
8659
8782
  */
8660
- depth(path16 = this.cwd) {
8661
- if (typeof path16 === "string") {
8662
- path16 = this.cwd.resolve(path16);
8783
+ depth(path17 = this.cwd) {
8784
+ if (typeof path17 === "string") {
8785
+ path17 = this.cwd.resolve(path17);
8663
8786
  }
8664
- return path16.depth();
8787
+ return path17.depth();
8665
8788
  }
8666
8789
  /**
8667
8790
  * Return the cache of child entries. Exposed so subclasses can create
@@ -9146,9 +9269,9 @@ var PathScurryBase = class {
9146
9269
  process1();
9147
9270
  return results;
9148
9271
  }
9149
- chdir(path16 = this.cwd) {
9272
+ chdir(path17 = this.cwd) {
9150
9273
  const oldCwd = this.cwd;
9151
- this.cwd = typeof path16 === "string" ? this.cwd.resolve(path16) : path16;
9274
+ this.cwd = typeof path17 === "string" ? this.cwd.resolve(path17) : path17;
9152
9275
  this.cwd[setAsCwd](oldCwd);
9153
9276
  }
9154
9277
  };
@@ -9180,9 +9303,9 @@ var PathScurryWin32 = class extends PathScurryBase {
9180
9303
  /**
9181
9304
  * @internal
9182
9305
  */
9183
- newRoot(fs14) {
9306
+ newRoot(fs15) {
9184
9307
  return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), {
9185
- fs: fs14
9308
+ fs: fs15
9186
9309
  });
9187
9310
  }
9188
9311
  /**
@@ -9217,9 +9340,9 @@ var PathScurryPosix = class extends PathScurryBase {
9217
9340
  /**
9218
9341
  * @internal
9219
9342
  */
9220
- newRoot(fs14) {
9343
+ newRoot(fs15) {
9221
9344
  return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), {
9222
- fs: fs14
9345
+ fs: fs15
9223
9346
  });
9224
9347
  }
9225
9348
  /**
@@ -9482,14 +9605,14 @@ var Ignore = class {
9482
9605
  globParts.shift();
9483
9606
  }
9484
9607
  const p2 = new Pattern(parsed, globParts, 0, this.platform);
9485
- const m4 = new Minimatch(p2.globString(), this.mmopts);
9608
+ const m3 = new Minimatch(p2.globString(), this.mmopts);
9486
9609
  const children = globParts[globParts.length - 1] === "**";
9487
9610
  const absolute = p2.isAbsolute();
9488
- if (absolute) this.absolute.push(m4);
9489
- else this.relative.push(m4);
9611
+ if (absolute) this.absolute.push(m3);
9612
+ else this.relative.push(m3);
9490
9613
  if (children) {
9491
- if (absolute) this.absoluteChildren.push(m4);
9492
- else this.relativeChildren.push(m4);
9614
+ if (absolute) this.absoluteChildren.push(m3);
9615
+ else this.relativeChildren.push(m3);
9493
9616
  }
9494
9617
  }
9495
9618
  }
@@ -9498,22 +9621,22 @@ var Ignore = class {
9498
9621
  const fullpaths = `${fullpath}/`;
9499
9622
  const relative = p2.relative() || ".";
9500
9623
  const relatives = `${relative}/`;
9501
- for (const m4 of this.relative) {
9502
- if (m4.match(relative) || m4.match(relatives)) return true;
9624
+ for (const m3 of this.relative) {
9625
+ if (m3.match(relative) || m3.match(relatives)) return true;
9503
9626
  }
9504
- for (const m4 of this.absolute) {
9505
- if (m4.match(fullpath) || m4.match(fullpaths)) return true;
9627
+ for (const m3 of this.absolute) {
9628
+ if (m3.match(fullpath) || m3.match(fullpaths)) return true;
9506
9629
  }
9507
9630
  return false;
9508
9631
  }
9509
9632
  childrenIgnored(p2) {
9510
9633
  const fullpath = p2.fullpath() + "/";
9511
9634
  const relative = (p2.relative() || ".") + "/";
9512
- for (const m4 of this.relativeChildren) {
9513
- if (m4.match(relative)) return true;
9635
+ for (const m3 of this.relativeChildren) {
9636
+ if (m3.match(relative)) return true;
9514
9637
  }
9515
- for (const m4 of this.absoluteChildren) {
9516
- if (m4.match(fullpath)) return true;
9638
+ for (const m3 of this.absoluteChildren) {
9639
+ if (m3.match(fullpath)) return true;
9517
9640
  }
9518
9641
  return false;
9519
9642
  }
@@ -9558,8 +9681,8 @@ var MatchRecord = class {
9558
9681
  entries() {
9559
9682
  return [
9560
9683
  ...this.store.entries()
9561
- ].map(([path16, n4]) => [
9562
- path16,
9684
+ ].map(([path17, n4]) => [
9685
+ path17,
9563
9686
  !!(n4 & 2),
9564
9687
  !!(n4 & 1)
9565
9688
  ]);
@@ -9779,17 +9902,17 @@ var GlobUtil = class {
9779
9902
  signal;
9780
9903
  maxDepth;
9781
9904
  includeChildMatches;
9782
- constructor(patterns, path16, opts) {
9905
+ constructor(patterns, path17, opts) {
9783
9906
  this.patterns = patterns;
9784
- this.path = path16;
9907
+ this.path = path17;
9785
9908
  this.opts = opts;
9786
9909
  this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/";
9787
9910
  this.includeChildMatches = opts.includeChildMatches !== false;
9788
9911
  if (opts.ignore || !this.includeChildMatches) {
9789
9912
  this.#ignore = makeIgnore(opts.ignore ?? [], opts);
9790
9913
  if (!this.includeChildMatches && typeof this.#ignore.add !== "function") {
9791
- const m4 = "cannot ignore child matches, ignore lacks add() method.";
9792
- throw new Error(m4);
9914
+ const m3 = "cannot ignore child matches, ignore lacks add() method.";
9915
+ throw new Error(m3);
9793
9916
  }
9794
9917
  }
9795
9918
  this.maxDepth = opts.maxDepth || Infinity;
@@ -9800,11 +9923,11 @@ var GlobUtil = class {
9800
9923
  });
9801
9924
  }
9802
9925
  }
9803
- #ignored(path16) {
9804
- return this.seen.has(path16) || !!this.#ignore?.ignored?.(path16);
9926
+ #ignored(path17) {
9927
+ return this.seen.has(path17) || !!this.#ignore?.ignored?.(path17);
9805
9928
  }
9806
- #childrenIgnored(path16) {
9807
- return !!this.#ignore?.childrenIgnored?.(path16);
9929
+ #childrenIgnored(path17) {
9930
+ return !!this.#ignore?.childrenIgnored?.(path17);
9808
9931
  }
9809
9932
  // backpressure mechanism
9810
9933
  pause() {
@@ -9911,10 +10034,10 @@ var GlobUtil = class {
9911
10034
  const next = /* @__PURE__ */ __name(() => {
9912
10035
  if (--tasks === 0) cb();
9913
10036
  }, "next");
9914
- for (const [m4, absolute, ifDir] of processor.matches.entries()) {
9915
- if (this.#ignored(m4)) continue;
10037
+ for (const [m3, absolute, ifDir] of processor.matches.entries()) {
10038
+ if (this.#ignored(m3)) continue;
9916
10039
  tasks++;
9917
- this.match(m4, absolute, ifDir).then(() => next());
10040
+ this.match(m3, absolute, ifDir).then(() => next());
9918
10041
  }
9919
10042
  for (const t5 of processor.subwalkTargets()) {
9920
10043
  if (this.maxDepth !== Infinity && t5.depth() >= this.maxDepth) {
@@ -9924,7 +10047,7 @@ var GlobUtil = class {
9924
10047
  const childrenCached = t5.readdirCached();
9925
10048
  if (t5.calledReaddir()) this.walkCB3(t5, childrenCached, processor, next);
9926
10049
  else {
9927
- t5.readdirCB((_3, entries) => this.walkCB3(t5, entries, processor, next), true);
10050
+ t5.readdirCB((_4, entries) => this.walkCB3(t5, entries, processor, next), true);
9928
10051
  }
9929
10052
  }
9930
10053
  next();
@@ -9935,10 +10058,10 @@ var GlobUtil = class {
9935
10058
  const next = /* @__PURE__ */ __name(() => {
9936
10059
  if (--tasks === 0) cb();
9937
10060
  }, "next");
9938
- for (const [m4, absolute, ifDir] of processor.matches.entries()) {
9939
- if (this.#ignored(m4)) continue;
10061
+ for (const [m3, absolute, ifDir] of processor.matches.entries()) {
10062
+ if (this.#ignored(m3)) continue;
9940
10063
  tasks++;
9941
- this.match(m4, absolute, ifDir).then(() => next());
10064
+ this.match(m3, absolute, ifDir).then(() => next());
9942
10065
  }
9943
10066
  for (const [target2, patterns] of processor.subwalks.entries()) {
9944
10067
  tasks++;
@@ -9962,9 +10085,9 @@ var GlobUtil = class {
9962
10085
  const next = /* @__PURE__ */ __name(() => {
9963
10086
  if (--tasks === 0) cb();
9964
10087
  }, "next");
9965
- for (const [m4, absolute, ifDir] of processor.matches.entries()) {
9966
- if (this.#ignored(m4)) continue;
9967
- this.matchSync(m4, absolute, ifDir);
10088
+ for (const [m3, absolute, ifDir] of processor.matches.entries()) {
10089
+ if (this.#ignored(m3)) continue;
10090
+ this.matchSync(m3, absolute, ifDir);
9968
10091
  }
9969
10092
  for (const t5 of processor.subwalkTargets()) {
9970
10093
  if (this.maxDepth !== Infinity && t5.depth() >= this.maxDepth) {
@@ -9982,9 +10105,9 @@ var GlobUtil = class {
9982
10105
  const next = /* @__PURE__ */ __name(() => {
9983
10106
  if (--tasks === 0) cb();
9984
10107
  }, "next");
9985
- for (const [m4, absolute, ifDir] of processor.matches.entries()) {
9986
- if (this.#ignored(m4)) continue;
9987
- this.matchSync(m4, absolute, ifDir);
10108
+ for (const [m3, absolute, ifDir] of processor.matches.entries()) {
10109
+ if (this.#ignored(m3)) continue;
10110
+ this.matchSync(m3, absolute, ifDir);
9988
10111
  }
9989
10112
  for (const [target2, patterns] of processor.subwalks.entries()) {
9990
10113
  tasks++;
@@ -9998,8 +10121,8 @@ var GlobWalker = class extends GlobUtil {
9998
10121
  __name(this, "GlobWalker");
9999
10122
  }
10000
10123
  matches = /* @__PURE__ */ new Set();
10001
- constructor(patterns, path16, opts) {
10002
- super(patterns, path16, opts);
10124
+ constructor(patterns, path17, opts) {
10125
+ super(patterns, path17, opts);
10003
10126
  }
10004
10127
  matchEmit(e2) {
10005
10128
  this.matches.add(e2);
@@ -10036,8 +10159,8 @@ var GlobStream = class extends GlobUtil {
10036
10159
  __name(this, "GlobStream");
10037
10160
  }
10038
10161
  results;
10039
- constructor(patterns, path16, opts) {
10040
- super(patterns, path16, opts);
10162
+ constructor(patterns, path17, opts) {
10163
+ super(patterns, path17, opts);
10041
10164
  this.results = new Minipass({
10042
10165
  signal: this.signal,
10043
10166
  objectMode: true
@@ -10202,9 +10325,9 @@ var Glob = class {
10202
10325
  debug: !!this.opts.debug
10203
10326
  };
10204
10327
  const mms = this.pattern.map((p2) => new Minimatch(p2, mmo));
10205
- const [matchSet, globParts] = mms.reduce((set3, m4) => {
10206
- set3[0].push(...m4.set);
10207
- set3[1].push(...m4.globParts);
10328
+ const [matchSet, globParts] = mms.reduce((set3, m3) => {
10329
+ set3[0].push(...m3.set);
10330
+ set3[1].push(...m3.globParts);
10208
10331
  return set3;
10209
10332
  }, [
10210
10333
  [],
@@ -10393,44 +10516,44 @@ init_esm_shims();
10393
10516
  var platform_default = process.env.__TESTING_RIMRAF_PLATFORM__ || process.platform;
10394
10517
 
10395
10518
  // ../../node_modules/.pnpm/rimraf@5.0.10/node_modules/rimraf/dist/esm/path-arg.js
10396
- var pathArg = /* @__PURE__ */ __name((path16, opt = {}) => {
10397
- const type = typeof path16;
10519
+ var pathArg = /* @__PURE__ */ __name((path17, opt = {}) => {
10520
+ const type = typeof path17;
10398
10521
  if (type !== "string") {
10399
- const ctor = path16 && type === "object" && path16.constructor;
10400
- const received = ctor && ctor.name ? `an instance of ${ctor.name}` : type === "object" ? inspect(path16) : `type ${type} ${path16}`;
10522
+ const ctor = path17 && type === "object" && path17.constructor;
10523
+ const received = ctor && ctor.name ? `an instance of ${ctor.name}` : type === "object" ? inspect(path17) : `type ${type} ${path17}`;
10401
10524
  const msg = `The "path" argument must be of type string. Received ${received}`;
10402
10525
  throw Object.assign(new TypeError(msg), {
10403
- path: path16,
10526
+ path: path17,
10404
10527
  code: "ERR_INVALID_ARG_TYPE"
10405
10528
  });
10406
10529
  }
10407
- if (/\0/.test(path16)) {
10530
+ if (/\0/.test(path17)) {
10408
10531
  const msg = "path must be a string without null bytes";
10409
10532
  throw Object.assign(new TypeError(msg), {
10410
- path: path16,
10533
+ path: path17,
10411
10534
  code: "ERR_INVALID_ARG_VALUE"
10412
10535
  });
10413
10536
  }
10414
- path16 = resolve(path16);
10415
- const { root } = parse(path16);
10416
- if (path16 === root && opt.preserveRoot !== false) {
10537
+ path17 = resolve(path17);
10538
+ const { root } = parse(path17);
10539
+ if (path17 === root && opt.preserveRoot !== false) {
10417
10540
  const msg = "refusing to remove root directory without preserveRoot:false";
10418
10541
  throw Object.assign(new Error(msg), {
10419
- path: path16,
10542
+ path: path17,
10420
10543
  code: "ERR_PRESERVE_ROOT"
10421
10544
  });
10422
10545
  }
10423
10546
  if (platform_default === "win32") {
10424
10547
  const badWinChars = /[*|"<>?:]/;
10425
- const { root: root2 } = parse(path16);
10426
- if (badWinChars.test(path16.substring(root2.length))) {
10548
+ const { root: root2 } = parse(path17);
10549
+ if (badWinChars.test(path17.substring(root2.length))) {
10427
10550
  throw Object.assign(new Error("Illegal characters in path."), {
10428
- path: path16,
10551
+ path: path17,
10429
10552
  code: "EINVAL"
10430
10553
  });
10431
10554
  }
10432
10555
  }
10433
- return path16;
10556
+ return path17;
10434
10557
  }, "pathArg");
10435
10558
  var path_arg_default = pathArg;
10436
10559
 
@@ -10445,20 +10568,20 @@ init_esm_shims();
10445
10568
  import fs3 from "fs";
10446
10569
  import { chmodSync, mkdirSync, renameSync, rmdirSync, rmSync, statSync, lstatSync as lstatSync2, unlinkSync } from "fs";
10447
10570
  import { readdirSync as rdSync } from "fs";
10448
- var readdirSync2 = /* @__PURE__ */ __name((path16) => rdSync(path16, {
10571
+ var readdirSync2 = /* @__PURE__ */ __name((path17) => rdSync(path17, {
10449
10572
  withFileTypes: true
10450
10573
  }), "readdirSync");
10451
- var chmod = /* @__PURE__ */ __name((path16, mode) => new Promise((res, rej) => fs3.chmod(path16, mode, (er, ...d3) => er ? rej(er) : res(...d3))), "chmod");
10452
- var mkdir = /* @__PURE__ */ __name((path16, options) => new Promise((res, rej) => fs3.mkdir(path16, options, (er, made) => er ? rej(er) : res(made))), "mkdir");
10453
- var readdir2 = /* @__PURE__ */ __name((path16) => new Promise((res, rej) => fs3.readdir(path16, {
10574
+ var chmod = /* @__PURE__ */ __name((path17, mode) => new Promise((res, rej) => fs3.chmod(path17, mode, (er, ...d3) => er ? rej(er) : res(...d3))), "chmod");
10575
+ var mkdir = /* @__PURE__ */ __name((path17, options) => new Promise((res, rej) => fs3.mkdir(path17, options, (er, made) => er ? rej(er) : res(made))), "mkdir");
10576
+ var readdir2 = /* @__PURE__ */ __name((path17) => new Promise((res, rej) => fs3.readdir(path17, {
10454
10577
  withFileTypes: true
10455
10578
  }, (er, data2) => er ? rej(er) : res(data2))), "readdir");
10456
10579
  var rename = /* @__PURE__ */ __name((oldPath, newPath) => new Promise((res, rej) => fs3.rename(oldPath, newPath, (er, ...d3) => er ? rej(er) : res(...d3))), "rename");
10457
- var rm = /* @__PURE__ */ __name((path16, options) => new Promise((res, rej) => fs3.rm(path16, options, (er, ...d3) => er ? rej(er) : res(...d3))), "rm");
10458
- var rmdir = /* @__PURE__ */ __name((path16) => new Promise((res, rej) => fs3.rmdir(path16, (er, ...d3) => er ? rej(er) : res(...d3))), "rmdir");
10459
- var stat = /* @__PURE__ */ __name((path16) => new Promise((res, rej) => fs3.stat(path16, (er, data2) => er ? rej(er) : res(data2))), "stat");
10460
- var lstat2 = /* @__PURE__ */ __name((path16) => new Promise((res, rej) => fs3.lstat(path16, (er, data2) => er ? rej(er) : res(data2))), "lstat");
10461
- var unlink = /* @__PURE__ */ __name((path16) => new Promise((res, rej) => fs3.unlink(path16, (er, ...d3) => er ? rej(er) : res(...d3))), "unlink");
10580
+ var rm = /* @__PURE__ */ __name((path17, options) => new Promise((res, rej) => fs3.rm(path17, options, (er, ...d3) => er ? rej(er) : res(...d3))), "rm");
10581
+ var rmdir = /* @__PURE__ */ __name((path17) => new Promise((res, rej) => fs3.rmdir(path17, (er, ...d3) => er ? rej(er) : res(...d3))), "rmdir");
10582
+ var stat = /* @__PURE__ */ __name((path17) => new Promise((res, rej) => fs3.stat(path17, (er, data2) => er ? rej(er) : res(data2))), "stat");
10583
+ var lstat2 = /* @__PURE__ */ __name((path17) => new Promise((res, rej) => fs3.lstat(path17, (er, data2) => er ? rej(er) : res(data2))), "lstat");
10584
+ var unlink = /* @__PURE__ */ __name((path17) => new Promise((res, rej) => fs3.unlink(path17, (er, ...d3) => er ? rej(er) : res(...d3))), "unlink");
10462
10585
  var promises = {
10463
10586
  chmod,
10464
10587
  mkdir,
@@ -10477,10 +10600,10 @@ import { parse as parse2, resolve as resolve2 } from "path";
10477
10600
  // ../../node_modules/.pnpm/rimraf@5.0.10/node_modules/rimraf/dist/esm/readdir-or-error.js
10478
10601
  init_esm_shims();
10479
10602
  var { readdir: readdir3 } = promises;
10480
- var readdirOrError = /* @__PURE__ */ __name((path16) => readdir3(path16).catch((er) => er), "readdirOrError");
10481
- var readdirOrErrorSync = /* @__PURE__ */ __name((path16) => {
10603
+ var readdirOrError = /* @__PURE__ */ __name((path17) => readdir3(path17).catch((er) => er), "readdirOrError");
10604
+ var readdirOrErrorSync = /* @__PURE__ */ __name((path17) => {
10482
10605
  try {
10483
- return readdirSync2(path16);
10606
+ return readdirSync2(path17);
10484
10607
  } catch (er) {
10485
10608
  return er;
10486
10609
  }
@@ -10505,33 +10628,33 @@ var ignoreENOENTSync = /* @__PURE__ */ __name((fn) => {
10505
10628
 
10506
10629
  // ../../node_modules/.pnpm/rimraf@5.0.10/node_modules/rimraf/dist/esm/rimraf-posix.js
10507
10630
  var { lstat: lstat3, rmdir: rmdir2, unlink: unlink2 } = promises;
10508
- var rimrafPosix = /* @__PURE__ */ __name(async (path16, opt) => {
10631
+ var rimrafPosix = /* @__PURE__ */ __name(async (path17, opt) => {
10509
10632
  if (opt?.signal?.aborted) {
10510
10633
  throw opt.signal.reason;
10511
10634
  }
10512
10635
  try {
10513
- return await rimrafPosixDir(path16, opt, await lstat3(path16));
10636
+ return await rimrafPosixDir(path17, opt, await lstat3(path17));
10514
10637
  } catch (er) {
10515
10638
  if (er?.code === "ENOENT") return true;
10516
10639
  throw er;
10517
10640
  }
10518
10641
  }, "rimrafPosix");
10519
- var rimrafPosixSync = /* @__PURE__ */ __name((path16, opt) => {
10642
+ var rimrafPosixSync = /* @__PURE__ */ __name((path17, opt) => {
10520
10643
  if (opt?.signal?.aborted) {
10521
10644
  throw opt.signal.reason;
10522
10645
  }
10523
10646
  try {
10524
- return rimrafPosixDirSync(path16, opt, lstatSync2(path16));
10647
+ return rimrafPosixDirSync(path17, opt, lstatSync2(path17));
10525
10648
  } catch (er) {
10526
10649
  if (er?.code === "ENOENT") return true;
10527
10650
  throw er;
10528
10651
  }
10529
10652
  }, "rimrafPosixSync");
10530
- var rimrafPosixDir = /* @__PURE__ */ __name(async (path16, opt, ent) => {
10653
+ var rimrafPosixDir = /* @__PURE__ */ __name(async (path17, opt, ent) => {
10531
10654
  if (opt?.signal?.aborted) {
10532
10655
  throw opt.signal.reason;
10533
10656
  }
10534
- const entries = ent.isDirectory() ? await readdirOrError(path16) : null;
10657
+ const entries = ent.isDirectory() ? await readdirOrError(path17) : null;
10535
10658
  if (!Array.isArray(entries)) {
10536
10659
  if (entries) {
10537
10660
  if (entries.code === "ENOENT") {
@@ -10541,30 +10664,30 @@ var rimrafPosixDir = /* @__PURE__ */ __name(async (path16, opt, ent) => {
10541
10664
  throw entries;
10542
10665
  }
10543
10666
  }
10544
- if (opt.filter && !await opt.filter(path16, ent)) {
10667
+ if (opt.filter && !await opt.filter(path17, ent)) {
10545
10668
  return false;
10546
10669
  }
10547
- await ignoreENOENT(unlink2(path16));
10670
+ await ignoreENOENT(unlink2(path17));
10548
10671
  return true;
10549
10672
  }
10550
- const removedAll = (await Promise.all(entries.map((ent2) => rimrafPosixDir(resolve2(path16, ent2.name), opt, ent2)))).reduce((a2, b3) => a2 && b3, true);
10673
+ const removedAll = (await Promise.all(entries.map((ent2) => rimrafPosixDir(resolve2(path17, ent2.name), opt, ent2)))).reduce((a2, b3) => a2 && b3, true);
10551
10674
  if (!removedAll) {
10552
10675
  return false;
10553
10676
  }
10554
- if (opt.preserveRoot === false && path16 === parse2(path16).root) {
10677
+ if (opt.preserveRoot === false && path17 === parse2(path17).root) {
10555
10678
  return false;
10556
10679
  }
10557
- if (opt.filter && !await opt.filter(path16, ent)) {
10680
+ if (opt.filter && !await opt.filter(path17, ent)) {
10558
10681
  return false;
10559
10682
  }
10560
- await ignoreENOENT(rmdir2(path16));
10683
+ await ignoreENOENT(rmdir2(path17));
10561
10684
  return true;
10562
10685
  }, "rimrafPosixDir");
10563
- var rimrafPosixDirSync = /* @__PURE__ */ __name((path16, opt, ent) => {
10686
+ var rimrafPosixDirSync = /* @__PURE__ */ __name((path17, opt, ent) => {
10564
10687
  if (opt?.signal?.aborted) {
10565
10688
  throw opt.signal.reason;
10566
10689
  }
10567
- const entries = ent.isDirectory() ? readdirOrErrorSync(path16) : null;
10690
+ const entries = ent.isDirectory() ? readdirOrErrorSync(path17) : null;
10568
10691
  if (!Array.isArray(entries)) {
10569
10692
  if (entries) {
10570
10693
  if (entries.code === "ENOENT") {
@@ -10574,27 +10697,27 @@ var rimrafPosixDirSync = /* @__PURE__ */ __name((path16, opt, ent) => {
10574
10697
  throw entries;
10575
10698
  }
10576
10699
  }
10577
- if (opt.filter && !opt.filter(path16, ent)) {
10700
+ if (opt.filter && !opt.filter(path17, ent)) {
10578
10701
  return false;
10579
10702
  }
10580
- ignoreENOENTSync(() => unlinkSync(path16));
10703
+ ignoreENOENTSync(() => unlinkSync(path17));
10581
10704
  return true;
10582
10705
  }
10583
10706
  let removedAll = true;
10584
10707
  for (const ent2 of entries) {
10585
- const p2 = resolve2(path16, ent2.name);
10708
+ const p2 = resolve2(path17, ent2.name);
10586
10709
  removedAll = rimrafPosixDirSync(p2, opt, ent2) && removedAll;
10587
10710
  }
10588
- if (opt.preserveRoot === false && path16 === parse2(path16).root) {
10711
+ if (opt.preserveRoot === false && path17 === parse2(path17).root) {
10589
10712
  return false;
10590
10713
  }
10591
10714
  if (!removedAll) {
10592
10715
  return false;
10593
10716
  }
10594
- if (opt.filter && !opt.filter(path16, ent)) {
10717
+ if (opt.filter && !opt.filter(path17, ent)) {
10595
10718
  return false;
10596
10719
  }
10597
- ignoreENOENTSync(() => rmdirSync(path16));
10720
+ ignoreENOENTSync(() => rmdirSync(path17));
10598
10721
  return true;
10599
10722
  }, "rimrafPosixDirSync");
10600
10723
 
@@ -10605,9 +10728,9 @@ import { parse as parse5, resolve as resolve5 } from "path";
10605
10728
  // ../../node_modules/.pnpm/rimraf@5.0.10/node_modules/rimraf/dist/esm/fix-eperm.js
10606
10729
  init_esm_shims();
10607
10730
  var { chmod: chmod2 } = promises;
10608
- var fixEPERM = /* @__PURE__ */ __name((fn) => async (path16) => {
10731
+ var fixEPERM = /* @__PURE__ */ __name((fn) => async (path17) => {
10609
10732
  try {
10610
- return await fn(path16);
10733
+ return await fn(path17);
10611
10734
  } catch (er) {
10612
10735
  const fer = er;
10613
10736
  if (fer?.code === "ENOENT") {
@@ -10615,7 +10738,7 @@ var fixEPERM = /* @__PURE__ */ __name((fn) => async (path16) => {
10615
10738
  }
10616
10739
  if (fer?.code === "EPERM") {
10617
10740
  try {
10618
- await chmod2(path16, 438);
10741
+ await chmod2(path17, 438);
10619
10742
  } catch (er2) {
10620
10743
  const fer2 = er2;
10621
10744
  if (fer2?.code === "ENOENT") {
@@ -10623,14 +10746,14 @@ var fixEPERM = /* @__PURE__ */ __name((fn) => async (path16) => {
10623
10746
  }
10624
10747
  throw er;
10625
10748
  }
10626
- return await fn(path16);
10749
+ return await fn(path17);
10627
10750
  }
10628
10751
  throw er;
10629
10752
  }
10630
10753
  }, "fixEPERM");
10631
- var fixEPERMSync = /* @__PURE__ */ __name((fn) => (path16) => {
10754
+ var fixEPERMSync = /* @__PURE__ */ __name((fn) => (path17) => {
10632
10755
  try {
10633
- return fn(path16);
10756
+ return fn(path17);
10634
10757
  } catch (er) {
10635
10758
  const fer = er;
10636
10759
  if (fer?.code === "ENOENT") {
@@ -10638,7 +10761,7 @@ var fixEPERMSync = /* @__PURE__ */ __name((fn) => (path16) => {
10638
10761
  }
10639
10762
  if (fer?.code === "EPERM") {
10640
10763
  try {
10641
- chmodSync(path16, 438);
10764
+ chmodSync(path17, 438);
10642
10765
  } catch (er2) {
10643
10766
  const fer2 = er2;
10644
10767
  if (fer2?.code === "ENOENT") {
@@ -10646,7 +10769,7 @@ var fixEPERMSync = /* @__PURE__ */ __name((fn) => (path16) => {
10646
10769
  }
10647
10770
  throw er;
10648
10771
  }
10649
- return fn(path16);
10772
+ return fn(path17);
10650
10773
  }
10651
10774
  throw er;
10652
10775
  }
@@ -10663,23 +10786,23 @@ var codes = /* @__PURE__ */ new Set([
10663
10786
  "EBUSY"
10664
10787
  ]);
10665
10788
  var retryBusy = /* @__PURE__ */ __name((fn) => {
10666
- const method = /* @__PURE__ */ __name(async (path16, opt, backoff = 1, total = 0) => {
10789
+ const method = /* @__PURE__ */ __name(async (path17, opt, backoff = 1, total = 0) => {
10667
10790
  const mbo = opt.maxBackoff || MAXBACKOFF;
10668
10791
  const rate = opt.backoff || RATE;
10669
10792
  const max = opt.maxRetries || MAXRETRIES;
10670
10793
  let retries = 0;
10671
10794
  while (true) {
10672
10795
  try {
10673
- return await fn(path16);
10796
+ return await fn(path17);
10674
10797
  } catch (er) {
10675
10798
  const fer = er;
10676
- if (fer?.path === path16 && fer?.code && codes.has(fer.code)) {
10799
+ if (fer?.path === path17 && fer?.code && codes.has(fer.code)) {
10677
10800
  backoff = Math.ceil(backoff * rate);
10678
10801
  total = backoff + total;
10679
10802
  if (total < mbo) {
10680
10803
  return new Promise((res, rej) => {
10681
10804
  setTimeout(() => {
10682
- method(path16, opt, backoff, total).then(res, rej);
10805
+ method(path17, opt, backoff, total).then(res, rej);
10683
10806
  }, backoff);
10684
10807
  });
10685
10808
  }
@@ -10695,15 +10818,15 @@ var retryBusy = /* @__PURE__ */ __name((fn) => {
10695
10818
  return method;
10696
10819
  }, "retryBusy");
10697
10820
  var retryBusySync = /* @__PURE__ */ __name((fn) => {
10698
- const method = /* @__PURE__ */ __name((path16, opt) => {
10821
+ const method = /* @__PURE__ */ __name((path17, opt) => {
10699
10822
  const max = opt.maxRetries || MAXRETRIES;
10700
10823
  let retries = 0;
10701
10824
  while (true) {
10702
10825
  try {
10703
- return fn(path16);
10826
+ return fn(path17);
10704
10827
  } catch (er) {
10705
10828
  const fer = er;
10706
- if (fer?.path === path16 && fer?.code && codes.has(fer.code) && retries < max) {
10829
+ if (fer?.path === path17 && fer?.code && codes.has(fer.code) && retries < max) {
10707
10830
  retries++;
10708
10831
  continue;
10709
10832
  }
@@ -10723,16 +10846,16 @@ init_esm_shims();
10723
10846
  import { tmpdir } from "os";
10724
10847
  import { parse as parse3, resolve as resolve3 } from "path";
10725
10848
  var { stat: stat2 } = promises;
10726
- var isDirSync = /* @__PURE__ */ __name((path16) => {
10849
+ var isDirSync = /* @__PURE__ */ __name((path17) => {
10727
10850
  try {
10728
- return statSync(path16).isDirectory();
10851
+ return statSync(path17).isDirectory();
10729
10852
  } catch (er) {
10730
10853
  return false;
10731
10854
  }
10732
10855
  }, "isDirSync");
10733
- var isDir = /* @__PURE__ */ __name((path16) => stat2(path16).then((st) => st.isDirectory(), () => false), "isDir");
10734
- var win32DefaultTmp = /* @__PURE__ */ __name(async (path16) => {
10735
- const { root } = parse3(path16);
10856
+ var isDir = /* @__PURE__ */ __name((path17) => stat2(path17).then((st) => st.isDirectory(), () => false), "isDir");
10857
+ var win32DefaultTmp = /* @__PURE__ */ __name(async (path17) => {
10858
+ const { root } = parse3(path17);
10736
10859
  const tmp = tmpdir();
10737
10860
  const { root: tmpRoot } = parse3(tmp);
10738
10861
  if (root.toLowerCase() === tmpRoot.toLowerCase()) {
@@ -10744,8 +10867,8 @@ var win32DefaultTmp = /* @__PURE__ */ __name(async (path16) => {
10744
10867
  }
10745
10868
  return root;
10746
10869
  }, "win32DefaultTmp");
10747
- var win32DefaultTmpSync = /* @__PURE__ */ __name((path16) => {
10748
- const { root } = parse3(path16);
10870
+ var win32DefaultTmpSync = /* @__PURE__ */ __name((path17) => {
10871
+ const { root } = parse3(path17);
10749
10872
  const tmp = tmpdir();
10750
10873
  const { root: tmpRoot } = parse3(tmp);
10751
10874
  if (root.toLowerCase() === tmpRoot.toLowerCase()) {
@@ -10764,10 +10887,10 @@ var defaultTmpSync = platform_default === "win32" ? win32DefaultTmpSync : posixD
10764
10887
 
10765
10888
  // ../../node_modules/.pnpm/rimraf@5.0.10/node_modules/rimraf/dist/esm/rimraf-move-remove.js
10766
10889
  var { lstat: lstat4, rename: rename2, unlink: unlink3, rmdir: rmdir3, chmod: chmod3 } = promises;
10767
- var uniqueFilename = /* @__PURE__ */ __name((path16) => `.${basename(path16)}.${Math.random()}`, "uniqueFilename");
10768
- var unlinkFixEPERM = /* @__PURE__ */ __name(async (path16) => unlink3(path16).catch((er) => {
10890
+ var uniqueFilename = /* @__PURE__ */ __name((path17) => `.${basename(path17)}.${Math.random()}`, "uniqueFilename");
10891
+ var unlinkFixEPERM = /* @__PURE__ */ __name(async (path17) => unlink3(path17).catch((er) => {
10769
10892
  if (er.code === "EPERM") {
10770
- return chmod3(path16, 438).then(() => unlink3(path16), (er2) => {
10893
+ return chmod3(path17, 438).then(() => unlink3(path17), (er2) => {
10771
10894
  if (er2.code === "ENOENT") {
10772
10895
  return;
10773
10896
  }
@@ -10778,13 +10901,13 @@ var unlinkFixEPERM = /* @__PURE__ */ __name(async (path16) => unlink3(path16).ca
10778
10901
  }
10779
10902
  throw er;
10780
10903
  }), "unlinkFixEPERM");
10781
- var unlinkFixEPERMSync = /* @__PURE__ */ __name((path16) => {
10904
+ var unlinkFixEPERMSync = /* @__PURE__ */ __name((path17) => {
10782
10905
  try {
10783
- unlinkSync(path16);
10906
+ unlinkSync(path17);
10784
10907
  } catch (er) {
10785
10908
  if (er?.code === "EPERM") {
10786
10909
  try {
10787
- return chmodSync(path16, 438);
10910
+ return chmodSync(path17, 438);
10788
10911
  } catch (er2) {
10789
10912
  if (er2?.code === "ENOENT") {
10790
10913
  return;
@@ -10797,31 +10920,31 @@ var unlinkFixEPERMSync = /* @__PURE__ */ __name((path16) => {
10797
10920
  throw er;
10798
10921
  }
10799
10922
  }, "unlinkFixEPERMSync");
10800
- var rimrafMoveRemove = /* @__PURE__ */ __name(async (path16, opt) => {
10923
+ var rimrafMoveRemove = /* @__PURE__ */ __name(async (path17, opt) => {
10801
10924
  if (opt?.signal?.aborted) {
10802
10925
  throw opt.signal.reason;
10803
10926
  }
10804
10927
  try {
10805
- return await rimrafMoveRemoveDir(path16, opt, await lstat4(path16));
10928
+ return await rimrafMoveRemoveDir(path17, opt, await lstat4(path17));
10806
10929
  } catch (er) {
10807
10930
  if (er?.code === "ENOENT") return true;
10808
10931
  throw er;
10809
10932
  }
10810
10933
  }, "rimrafMoveRemove");
10811
- var rimrafMoveRemoveDir = /* @__PURE__ */ __name(async (path16, opt, ent) => {
10934
+ var rimrafMoveRemoveDir = /* @__PURE__ */ __name(async (path17, opt, ent) => {
10812
10935
  if (opt?.signal?.aborted) {
10813
10936
  throw opt.signal.reason;
10814
10937
  }
10815
10938
  if (!opt.tmp) {
10816
- return rimrafMoveRemoveDir(path16, {
10939
+ return rimrafMoveRemoveDir(path17, {
10817
10940
  ...opt,
10818
- tmp: await defaultTmp(path16)
10941
+ tmp: await defaultTmp(path17)
10819
10942
  }, ent);
10820
10943
  }
10821
- if (path16 === opt.tmp && parse4(path16).root !== path16) {
10944
+ if (path17 === opt.tmp && parse4(path17).root !== path17) {
10822
10945
  throw new Error("cannot delete temp directory used for deletion");
10823
10946
  }
10824
- const entries = ent.isDirectory() ? await readdirOrError(path16) : null;
10947
+ const entries = ent.isDirectory() ? await readdirOrError(path17) : null;
10825
10948
  if (!Array.isArray(entries)) {
10826
10949
  if (entries) {
10827
10950
  if (entries.code === "ENOENT") {
@@ -10831,56 +10954,56 @@ var rimrafMoveRemoveDir = /* @__PURE__ */ __name(async (path16, opt, ent) => {
10831
10954
  throw entries;
10832
10955
  }
10833
10956
  }
10834
- if (opt.filter && !await opt.filter(path16, ent)) {
10957
+ if (opt.filter && !await opt.filter(path17, ent)) {
10835
10958
  return false;
10836
10959
  }
10837
- await ignoreENOENT(tmpUnlink(path16, opt.tmp, unlinkFixEPERM));
10960
+ await ignoreENOENT(tmpUnlink(path17, opt.tmp, unlinkFixEPERM));
10838
10961
  return true;
10839
10962
  }
10840
- const removedAll = (await Promise.all(entries.map((ent2) => rimrafMoveRemoveDir(resolve4(path16, ent2.name), opt, ent2)))).reduce((a2, b3) => a2 && b3, true);
10963
+ const removedAll = (await Promise.all(entries.map((ent2) => rimrafMoveRemoveDir(resolve4(path17, ent2.name), opt, ent2)))).reduce((a2, b3) => a2 && b3, true);
10841
10964
  if (!removedAll) {
10842
10965
  return false;
10843
10966
  }
10844
- if (opt.preserveRoot === false && path16 === parse4(path16).root) {
10967
+ if (opt.preserveRoot === false && path17 === parse4(path17).root) {
10845
10968
  return false;
10846
10969
  }
10847
- if (opt.filter && !await opt.filter(path16, ent)) {
10970
+ if (opt.filter && !await opt.filter(path17, ent)) {
10848
10971
  return false;
10849
10972
  }
10850
- await ignoreENOENT(tmpUnlink(path16, opt.tmp, rmdir3));
10973
+ await ignoreENOENT(tmpUnlink(path17, opt.tmp, rmdir3));
10851
10974
  return true;
10852
10975
  }, "rimrafMoveRemoveDir");
10853
- var tmpUnlink = /* @__PURE__ */ __name(async (path16, tmp, rm3) => {
10854
- const tmpFile = resolve4(tmp, uniqueFilename(path16));
10855
- await rename2(path16, tmpFile);
10976
+ var tmpUnlink = /* @__PURE__ */ __name(async (path17, tmp, rm3) => {
10977
+ const tmpFile = resolve4(tmp, uniqueFilename(path17));
10978
+ await rename2(path17, tmpFile);
10856
10979
  return await rm3(tmpFile);
10857
10980
  }, "tmpUnlink");
10858
- var rimrafMoveRemoveSync = /* @__PURE__ */ __name((path16, opt) => {
10981
+ var rimrafMoveRemoveSync = /* @__PURE__ */ __name((path17, opt) => {
10859
10982
  if (opt?.signal?.aborted) {
10860
10983
  throw opt.signal.reason;
10861
10984
  }
10862
10985
  try {
10863
- return rimrafMoveRemoveDirSync(path16, opt, lstatSync2(path16));
10986
+ return rimrafMoveRemoveDirSync(path17, opt, lstatSync2(path17));
10864
10987
  } catch (er) {
10865
10988
  if (er?.code === "ENOENT") return true;
10866
10989
  throw er;
10867
10990
  }
10868
10991
  }, "rimrafMoveRemoveSync");
10869
- var rimrafMoveRemoveDirSync = /* @__PURE__ */ __name((path16, opt, ent) => {
10992
+ var rimrafMoveRemoveDirSync = /* @__PURE__ */ __name((path17, opt, ent) => {
10870
10993
  if (opt?.signal?.aborted) {
10871
10994
  throw opt.signal.reason;
10872
10995
  }
10873
10996
  if (!opt.tmp) {
10874
- return rimrafMoveRemoveDirSync(path16, {
10997
+ return rimrafMoveRemoveDirSync(path17, {
10875
10998
  ...opt,
10876
- tmp: defaultTmpSync(path16)
10999
+ tmp: defaultTmpSync(path17)
10877
11000
  }, ent);
10878
11001
  }
10879
11002
  const tmp = opt.tmp;
10880
- if (path16 === opt.tmp && parse4(path16).root !== path16) {
11003
+ if (path17 === opt.tmp && parse4(path17).root !== path17) {
10881
11004
  throw new Error("cannot delete temp directory used for deletion");
10882
11005
  }
10883
- const entries = ent.isDirectory() ? readdirOrErrorSync(path16) : null;
11006
+ const entries = ent.isDirectory() ? readdirOrErrorSync(path17) : null;
10884
11007
  if (!Array.isArray(entries)) {
10885
11008
  if (entries) {
10886
11009
  if (entries.code === "ENOENT") {
@@ -10890,32 +11013,32 @@ var rimrafMoveRemoveDirSync = /* @__PURE__ */ __name((path16, opt, ent) => {
10890
11013
  throw entries;
10891
11014
  }
10892
11015
  }
10893
- if (opt.filter && !opt.filter(path16, ent)) {
11016
+ if (opt.filter && !opt.filter(path17, ent)) {
10894
11017
  return false;
10895
11018
  }
10896
- ignoreENOENTSync(() => tmpUnlinkSync(path16, tmp, unlinkFixEPERMSync));
11019
+ ignoreENOENTSync(() => tmpUnlinkSync(path17, tmp, unlinkFixEPERMSync));
10897
11020
  return true;
10898
11021
  }
10899
11022
  let removedAll = true;
10900
11023
  for (const ent2 of entries) {
10901
- const p2 = resolve4(path16, ent2.name);
11024
+ const p2 = resolve4(path17, ent2.name);
10902
11025
  removedAll = rimrafMoveRemoveDirSync(p2, opt, ent2) && removedAll;
10903
11026
  }
10904
11027
  if (!removedAll) {
10905
11028
  return false;
10906
11029
  }
10907
- if (opt.preserveRoot === false && path16 === parse4(path16).root) {
11030
+ if (opt.preserveRoot === false && path17 === parse4(path17).root) {
10908
11031
  return false;
10909
11032
  }
10910
- if (opt.filter && !opt.filter(path16, ent)) {
11033
+ if (opt.filter && !opt.filter(path17, ent)) {
10911
11034
  return false;
10912
11035
  }
10913
- ignoreENOENTSync(() => tmpUnlinkSync(path16, tmp, rmdirSync));
11036
+ ignoreENOENTSync(() => tmpUnlinkSync(path17, tmp, rmdirSync));
10914
11037
  return true;
10915
11038
  }, "rimrafMoveRemoveDirSync");
10916
- var tmpUnlinkSync = /* @__PURE__ */ __name((path16, tmp, rmSync2) => {
10917
- const tmpFile = resolve4(tmp, uniqueFilename(path16));
10918
- renameSync(path16, tmpFile);
11039
+ var tmpUnlinkSync = /* @__PURE__ */ __name((path17, tmp, rmSync2) => {
11040
+ const tmpFile = resolve4(tmp, uniqueFilename(path17));
11041
+ renameSync(path17, tmpFile);
10919
11042
  return rmSync2(tmpFile);
10920
11043
  }, "tmpUnlinkSync");
10921
11044
 
@@ -10925,31 +11048,31 @@ var rimrafWindowsFile = retryBusy(fixEPERM(unlink4));
10925
11048
  var rimrafWindowsFileSync = retryBusySync(fixEPERMSync(unlinkSync));
10926
11049
  var rimrafWindowsDirRetry = retryBusy(fixEPERM(rmdir4));
10927
11050
  var rimrafWindowsDirRetrySync = retryBusySync(fixEPERMSync(rmdirSync));
10928
- var rimrafWindowsDirMoveRemoveFallback = /* @__PURE__ */ __name(async (path16, opt) => {
11051
+ var rimrafWindowsDirMoveRemoveFallback = /* @__PURE__ */ __name(async (path17, opt) => {
10929
11052
  if (opt?.signal?.aborted) {
10930
11053
  throw opt.signal.reason;
10931
11054
  }
10932
11055
  const { filter: filter3, ...options } = opt;
10933
11056
  try {
10934
- return await rimrafWindowsDirRetry(path16, options);
11057
+ return await rimrafWindowsDirRetry(path17, options);
10935
11058
  } catch (er) {
10936
11059
  if (er?.code === "ENOTEMPTY") {
10937
- return await rimrafMoveRemove(path16, options);
11060
+ return await rimrafMoveRemove(path17, options);
10938
11061
  }
10939
11062
  throw er;
10940
11063
  }
10941
11064
  }, "rimrafWindowsDirMoveRemoveFallback");
10942
- var rimrafWindowsDirMoveRemoveFallbackSync = /* @__PURE__ */ __name((path16, opt) => {
11065
+ var rimrafWindowsDirMoveRemoveFallbackSync = /* @__PURE__ */ __name((path17, opt) => {
10943
11066
  if (opt?.signal?.aborted) {
10944
11067
  throw opt.signal.reason;
10945
11068
  }
10946
11069
  const { filter: filter3, ...options } = opt;
10947
11070
  try {
10948
- return rimrafWindowsDirRetrySync(path16, options);
11071
+ return rimrafWindowsDirRetrySync(path17, options);
10949
11072
  } catch (er) {
10950
11073
  const fer = er;
10951
11074
  if (fer?.code === "ENOTEMPTY") {
10952
- return rimrafMoveRemoveSync(path16, options);
11075
+ return rimrafMoveRemoveSync(path17, options);
10953
11076
  }
10954
11077
  throw er;
10955
11078
  }
@@ -10957,33 +11080,33 @@ var rimrafWindowsDirMoveRemoveFallbackSync = /* @__PURE__ */ __name((path16, opt
10957
11080
  var START = Symbol("start");
10958
11081
  var CHILD = Symbol("child");
10959
11082
  var FINISH = Symbol("finish");
10960
- var rimrafWindows = /* @__PURE__ */ __name(async (path16, opt) => {
11083
+ var rimrafWindows = /* @__PURE__ */ __name(async (path17, opt) => {
10961
11084
  if (opt?.signal?.aborted) {
10962
11085
  throw opt.signal.reason;
10963
11086
  }
10964
11087
  try {
10965
- return await rimrafWindowsDir(path16, opt, await lstat5(path16), START);
11088
+ return await rimrafWindowsDir(path17, opt, await lstat5(path17), START);
10966
11089
  } catch (er) {
10967
11090
  if (er?.code === "ENOENT") return true;
10968
11091
  throw er;
10969
11092
  }
10970
11093
  }, "rimrafWindows");
10971
- var rimrafWindowsSync = /* @__PURE__ */ __name((path16, opt) => {
11094
+ var rimrafWindowsSync = /* @__PURE__ */ __name((path17, opt) => {
10972
11095
  if (opt?.signal?.aborted) {
10973
11096
  throw opt.signal.reason;
10974
11097
  }
10975
11098
  try {
10976
- return rimrafWindowsDirSync(path16, opt, lstatSync2(path16), START);
11099
+ return rimrafWindowsDirSync(path17, opt, lstatSync2(path17), START);
10977
11100
  } catch (er) {
10978
11101
  if (er?.code === "ENOENT") return true;
10979
11102
  throw er;
10980
11103
  }
10981
11104
  }, "rimrafWindowsSync");
10982
- var rimrafWindowsDir = /* @__PURE__ */ __name(async (path16, opt, ent, state = START) => {
11105
+ var rimrafWindowsDir = /* @__PURE__ */ __name(async (path17, opt, ent, state = START) => {
10983
11106
  if (opt?.signal?.aborted) {
10984
11107
  throw opt.signal.reason;
10985
11108
  }
10986
- const entries = ent.isDirectory() ? await readdirOrError(path16) : null;
11109
+ const entries = ent.isDirectory() ? await readdirOrError(path17) : null;
10987
11110
  if (!Array.isArray(entries)) {
10988
11111
  if (entries) {
10989
11112
  if (entries.code === "ENOENT") {
@@ -10993,32 +11116,32 @@ var rimrafWindowsDir = /* @__PURE__ */ __name(async (path16, opt, ent, state = S
10993
11116
  throw entries;
10994
11117
  }
10995
11118
  }
10996
- if (opt.filter && !await opt.filter(path16, ent)) {
11119
+ if (opt.filter && !await opt.filter(path17, ent)) {
10997
11120
  return false;
10998
11121
  }
10999
- await ignoreENOENT(rimrafWindowsFile(path16, opt));
11122
+ await ignoreENOENT(rimrafWindowsFile(path17, opt));
11000
11123
  return true;
11001
11124
  }
11002
11125
  const s2 = state === START ? CHILD : state;
11003
- const removedAll = (await Promise.all(entries.map((ent2) => rimrafWindowsDir(resolve5(path16, ent2.name), opt, ent2, s2)))).reduce((a2, b3) => a2 && b3, true);
11126
+ const removedAll = (await Promise.all(entries.map((ent2) => rimrafWindowsDir(resolve5(path17, ent2.name), opt, ent2, s2)))).reduce((a2, b3) => a2 && b3, true);
11004
11127
  if (state === START) {
11005
- return rimrafWindowsDir(path16, opt, ent, FINISH);
11128
+ return rimrafWindowsDir(path17, opt, ent, FINISH);
11006
11129
  } else if (state === FINISH) {
11007
- if (opt.preserveRoot === false && path16 === parse5(path16).root) {
11130
+ if (opt.preserveRoot === false && path17 === parse5(path17).root) {
11008
11131
  return false;
11009
11132
  }
11010
11133
  if (!removedAll) {
11011
11134
  return false;
11012
11135
  }
11013
- if (opt.filter && !await opt.filter(path16, ent)) {
11136
+ if (opt.filter && !await opt.filter(path17, ent)) {
11014
11137
  return false;
11015
11138
  }
11016
- await ignoreENOENT(rimrafWindowsDirMoveRemoveFallback(path16, opt));
11139
+ await ignoreENOENT(rimrafWindowsDirMoveRemoveFallback(path17, opt));
11017
11140
  }
11018
11141
  return true;
11019
11142
  }, "rimrafWindowsDir");
11020
- var rimrafWindowsDirSync = /* @__PURE__ */ __name((path16, opt, ent, state = START) => {
11021
- const entries = ent.isDirectory() ? readdirOrErrorSync(path16) : null;
11143
+ var rimrafWindowsDirSync = /* @__PURE__ */ __name((path17, opt, ent, state = START) => {
11144
+ const entries = ent.isDirectory() ? readdirOrErrorSync(path17) : null;
11022
11145
  if (!Array.isArray(entries)) {
11023
11146
  if (entries) {
11024
11147
  if (entries.code === "ENOENT") {
@@ -11028,32 +11151,32 @@ var rimrafWindowsDirSync = /* @__PURE__ */ __name((path16, opt, ent, state = STA
11028
11151
  throw entries;
11029
11152
  }
11030
11153
  }
11031
- if (opt.filter && !opt.filter(path16, ent)) {
11154
+ if (opt.filter && !opt.filter(path17, ent)) {
11032
11155
  return false;
11033
11156
  }
11034
- ignoreENOENTSync(() => rimrafWindowsFileSync(path16, opt));
11157
+ ignoreENOENTSync(() => rimrafWindowsFileSync(path17, opt));
11035
11158
  return true;
11036
11159
  }
11037
11160
  let removedAll = true;
11038
11161
  for (const ent2 of entries) {
11039
11162
  const s2 = state === START ? CHILD : state;
11040
- const p2 = resolve5(path16, ent2.name);
11163
+ const p2 = resolve5(path17, ent2.name);
11041
11164
  removedAll = rimrafWindowsDirSync(p2, opt, ent2, s2) && removedAll;
11042
11165
  }
11043
11166
  if (state === START) {
11044
- return rimrafWindowsDirSync(path16, opt, ent, FINISH);
11167
+ return rimrafWindowsDirSync(path17, opt, ent, FINISH);
11045
11168
  } else if (state === FINISH) {
11046
- if (opt.preserveRoot === false && path16 === parse5(path16).root) {
11169
+ if (opt.preserveRoot === false && path17 === parse5(path17).root) {
11047
11170
  return false;
11048
11171
  }
11049
11172
  if (!removedAll) {
11050
11173
  return false;
11051
11174
  }
11052
- if (opt.filter && !opt.filter(path16, ent)) {
11175
+ if (opt.filter && !opt.filter(path17, ent)) {
11053
11176
  return false;
11054
11177
  }
11055
11178
  ignoreENOENTSync(() => {
11056
- rimrafWindowsDirMoveRemoveFallbackSync(path16, opt);
11179
+ rimrafWindowsDirMoveRemoveFallbackSync(path17, opt);
11057
11180
  });
11058
11181
  }
11059
11182
  return true;
@@ -11066,16 +11189,16 @@ var rimrafManualSync = platform_default === "win32" ? rimrafWindowsSync : rimraf
11066
11189
  // ../../node_modules/.pnpm/rimraf@5.0.10/node_modules/rimraf/dist/esm/rimraf-native.js
11067
11190
  init_esm_shims();
11068
11191
  var { rm: rm2 } = promises;
11069
- var rimrafNative = /* @__PURE__ */ __name(async (path16, opt) => {
11070
- await rm2(path16, {
11192
+ var rimrafNative = /* @__PURE__ */ __name(async (path17, opt) => {
11193
+ await rm2(path17, {
11071
11194
  ...opt,
11072
11195
  force: true,
11073
11196
  recursive: true
11074
11197
  });
11075
11198
  return true;
11076
11199
  }, "rimrafNative");
11077
- var rimrafNativeSync = /* @__PURE__ */ __name((path16, opt) => {
11078
- rmSync(path16, {
11200
+ var rimrafNativeSync = /* @__PURE__ */ __name((path17, opt) => {
11201
+ rmSync(path17, {
11079
11202
  ...opt,
11080
11203
  force: true,
11081
11204
  recursive: true
@@ -11093,26 +11216,26 @@ var useNative = !hasNative || platform_default === "win32" ? () => false : (opt)
11093
11216
  var useNativeSync = !hasNative || platform_default === "win32" ? () => false : (opt) => !opt?.signal && !opt?.filter;
11094
11217
 
11095
11218
  // ../../node_modules/.pnpm/rimraf@5.0.10/node_modules/rimraf/dist/esm/index.js
11096
- var wrap = /* @__PURE__ */ __name((fn) => async (path16, opt) => {
11219
+ var wrap = /* @__PURE__ */ __name((fn) => async (path17, opt) => {
11097
11220
  const options = optArg(opt);
11098
11221
  if (options.glob) {
11099
- path16 = await glob(path16, options.glob);
11222
+ path17 = await glob(path17, options.glob);
11100
11223
  }
11101
- if (Array.isArray(path16)) {
11102
- return !!(await Promise.all(path16.map((p2) => fn(path_arg_default(p2, options), options)))).reduce((a2, b3) => a2 && b3, true);
11224
+ if (Array.isArray(path17)) {
11225
+ return !!(await Promise.all(path17.map((p2) => fn(path_arg_default(p2, options), options)))).reduce((a2, b3) => a2 && b3, true);
11103
11226
  } else {
11104
- return !!await fn(path_arg_default(path16, options), options);
11227
+ return !!await fn(path_arg_default(path17, options), options);
11105
11228
  }
11106
11229
  }, "wrap");
11107
- var wrapSync = /* @__PURE__ */ __name((fn) => (path16, opt) => {
11230
+ var wrapSync = /* @__PURE__ */ __name((fn) => (path17, opt) => {
11108
11231
  const options = optArgSync(opt);
11109
11232
  if (options.glob) {
11110
- path16 = globSync(path16, options.glob);
11233
+ path17 = globSync(path17, options.glob);
11111
11234
  }
11112
- if (Array.isArray(path16)) {
11113
- return !!path16.map((p2) => fn(path_arg_default(p2, options), options)).reduce((a2, b3) => a2 && b3, true);
11235
+ if (Array.isArray(path17)) {
11236
+ return !!path17.map((p2) => fn(path_arg_default(p2, options), options)).reduce((a2, b3) => a2 && b3, true);
11114
11237
  } else {
11115
- return !!fn(path_arg_default(path16, options), options);
11238
+ return !!fn(path_arg_default(path17, options), options);
11116
11239
  }
11117
11240
  }, "wrapSync");
11118
11241
  var nativeSync = wrapSync(rimrafNativeSync);
@@ -11135,8 +11258,8 @@ var moveRemoveSync = wrapSync(rimrafMoveRemoveSync);
11135
11258
  var moveRemove = Object.assign(wrap(rimrafMoveRemove), {
11136
11259
  sync: moveRemoveSync
11137
11260
  });
11138
- var rimrafSync = wrapSync((path16, opt) => useNativeSync(opt) ? rimrafNativeSync(path16, opt) : rimrafManualSync(path16, opt));
11139
- var rimraf_ = wrap((path16, opt) => useNative(opt) ? rimrafNative(path16, opt) : rimrafManual(path16, opt));
11261
+ var rimrafSync = wrapSync((path17, opt) => useNativeSync(opt) ? rimrafNativeSync(path17, opt) : rimrafManualSync(path17, opt));
11262
+ var rimraf_ = wrap((path17, opt) => useNative(opt) ? rimrafNative(path17, opt) : rimrafManual(path17, opt));
11140
11263
  var rimraf = Object.assign(rimraf_, {
11141
11264
  rimraf: rimraf_,
11142
11265
  sync: rimrafSync,
@@ -11254,7 +11377,7 @@ BuildService2 = _ts_decorate3([
11254
11377
 
11255
11378
  // src/context/services/ConfigService.ts
11256
11379
  init_esm_shims();
11257
- import process3 from "node:process";
11380
+ import process4 from "node:process";
11258
11381
 
11259
11382
  // src/defaults.ts
11260
11383
  init_esm_shims();
@@ -11415,7 +11538,7 @@ init_esm_shims();
11415
11538
  // src/wxs/index.ts
11416
11539
  init_esm_shims();
11417
11540
  import babel from "@babel/core";
11418
- import t4 from "@babel/types";
11541
+ import * as t4 from "@babel/types";
11419
11542
  import { defu } from "@weapp-core/shared";
11420
11543
 
11421
11544
  // src/wxs/utils.ts
@@ -11588,9 +11711,9 @@ function encode(decoded) {
11588
11711
  if (line.length === 0)
11589
11712
  continue;
11590
11713
  let genColumn = 0;
11591
- for (let j4 = 0; j4 < line.length; j4++) {
11592
- const segment = line[j4];
11593
- if (j4 > 0)
11714
+ for (let j3 = 0; j3 < line.length; j3++) {
11715
+ const segment = line[j3];
11716
+ if (j3 > 0)
11594
11717
  writer.write(comma);
11595
11718
  genColumn = encodeInteger(writer, segment[0], genColumn);
11596
11719
  if (segment.length === 1)
@@ -11843,13 +11966,13 @@ function getLocator(source) {
11843
11966
  }
11844
11967
  return /* @__PURE__ */ __name(function locate(index) {
11845
11968
  let i = 0;
11846
- let j4 = lineOffsets.length;
11847
- while (i < j4) {
11848
- const m4 = i + j4 >> 1;
11849
- if (index < lineOffsets[m4]) {
11850
- j4 = m4;
11969
+ let j3 = lineOffsets.length;
11970
+ while (i < j3) {
11971
+ const m3 = i + j3 >> 1;
11972
+ if (index < lineOffsets[m3]) {
11973
+ j3 = m3;
11851
11974
  } else {
11852
- i = m4 + 1;
11975
+ i = m3 + 1;
11853
11976
  }
11854
11977
  }
11855
11978
  const line = i - 1;
@@ -12527,7 +12650,7 @@ var MagicString = class _MagicString {
12527
12650
  _replaceRegexp(searchValue, replacement) {
12528
12651
  function getReplacement(match3, str) {
12529
12652
  if (typeof replacement === "string") {
12530
- return replacement.replace(/\$(\$|&|\d+)/g, (_3, i) => {
12653
+ return replacement.replace(/\$(\$|&|\d+)/g, (_4, i) => {
12531
12654
  if (i === "$") return "$";
12532
12655
  if (i === "&") return match3[0];
12533
12656
  const num = +i;
@@ -12633,8 +12756,8 @@ ${res.code}`);
12633
12756
  }
12634
12757
  for (let i = 0; i < removeStartStack.length; i++) {
12635
12758
  const startIndex = removeStartStack[i];
12636
- for (let j4 = i; j4 < removeEndStack.length; j4++) {
12637
- const endIndex = removeEndStack[j4];
12759
+ for (let j3 = i; j3 < removeEndStack.length; j3++) {
12760
+ const endIndex = removeEndStack[j3];
12638
12761
  if (endIndex > startIndex) {
12639
12762
  ms.remove(startIndex, endIndex);
12640
12763
  break;
@@ -21711,6 +21834,7 @@ var import_debounce = __toESM(require_debounce(), 1);
21711
21834
  import { isObject as isObject3, removeExtension as removeExtension2 } from "@weapp-core/shared";
21712
21835
  import { fdir as Fdir } from "fdir";
21713
21836
  import fs4 from "fs-extra";
21837
+ var import_merge = __toESM(require_src(), 1);
21714
21838
  import path7 from "pathe";
21715
21839
  import { isCSSRequest } from "vite";
21716
21840
 
@@ -21765,6 +21889,10 @@ var VitePluginService = class {
21765
21889
  this.cachedWorkerFiles = [];
21766
21890
  }
21767
21891
  configResolved(config) {
21892
+ const idx = config.plugins?.findIndex((x3) => x3.name === "vite:build-import-analysis");
21893
+ if (idx > -1) {
21894
+ config.plugins.splice(idx, 1);
21895
+ }
21768
21896
  this.resolvedConfig = config;
21769
21897
  if (isObject3(this.resolvedConfig.env)) {
21770
21898
  for (const [key, value] of Object.entries(this.resolvedConfig.env)) {
@@ -21778,6 +21906,18 @@ var VitePluginService = class {
21778
21906
  return acc;
21779
21907
  }, {});
21780
21908
  }
21909
+ getUserDefinedInput(input) {
21910
+ return typeof input === "string" ? input.endsWith(".html") ? {} : {
21911
+ [this.ctx.configService.relativeCwd(input)]: input
21912
+ } : Array.isArray(input) ? input.reduce((acc, cur) => {
21913
+ acc[this.ctx.configService.relativeCwd(cur)] = cur;
21914
+ return acc;
21915
+ }, {}) : input;
21916
+ }
21917
+ mergeInputOption(entries, input) {
21918
+ const userDefinedInput = this.getUserDefinedInput(input);
21919
+ return (0, import_merge.recursive)(this.getInputOption(entries), userDefinedInput);
21920
+ }
21781
21921
  async handleWxsDeps(deps, absPath) {
21782
21922
  for (const wxsDep of deps.filter((x3) => x3.tagName === "wxs")) {
21783
21923
  if (jsExtensions.includes(wxsDep.attrs.lang) || /\.wxs\.[jt]s$/.test(wxsDep.value)) {
@@ -21965,9 +22105,9 @@ var VitePluginService = class {
21965
22105
  })
21966
22106
  ]);
21967
22107
  }
21968
- const input = this.getInputOption([
22108
+ const input = this.mergeInputOption([
21969
22109
  ...this.entriesSet
21970
- ]);
22110
+ ], options.input);
21971
22111
  options.input = input;
21972
22112
  }
21973
22113
  buildStart(pluginContext) {
@@ -22120,10 +22260,19 @@ var VitePluginService = class {
22120
22260
  // src/plugins/index.ts
22121
22261
  function vitePluginWeapp(ctx, subPackageMeta) {
22122
22262
  const service = new VitePluginService(ctx);
22263
+ const api = {
22264
+ get ctx() {
22265
+ return ctx;
22266
+ },
22267
+ get service() {
22268
+ return service;
22269
+ }
22270
+ };
22123
22271
  return [
22124
22272
  {
22125
22273
  name: "weapp-vite:pre",
22126
22274
  enforce: "pre",
22275
+ api,
22127
22276
  // config->configResolved->|watching|options->buildStart
22128
22277
  // config(config, env) {
22129
22278
  // debug?.(config, env)
@@ -22156,12 +22305,14 @@ function vitePluginWeapp(ctx, subPackageMeta) {
22156
22305
  },
22157
22306
  {
22158
22307
  // todo
22159
- name: "weapp-vite"
22308
+ name: "weapp-vite",
22309
+ api
22160
22310
  },
22161
22311
  {
22162
22312
  // todo
22163
22313
  name: "weapp-vite:post",
22164
- enforce: "post"
22314
+ enforce: "post",
22315
+ api
22165
22316
  }
22166
22317
  ];
22167
22318
  }
@@ -22169,8 +22320,165 @@ __name(vitePluginWeapp, "vitePluginWeapp");
22169
22320
 
22170
22321
  // src/context/services/ConfigService.ts
22171
22322
  import { addExtension as addExtension2, defu as defu4, removeExtension as removeExtension3 } from "@weapp-core/shared";
22172
- import fs5 from "fs-extra";
22173
- import path8 from "pathe";
22323
+ import fs6 from "fs-extra";
22324
+
22325
+ // ../../node_modules/.pnpm/package-manager-detector@1.1.0/node_modules/package-manager-detector/dist/detect.mjs
22326
+ init_esm_shims();
22327
+ import fs5 from "node:fs/promises";
22328
+ import path8 from "node:path";
22329
+ import process3 from "node:process";
22330
+
22331
+ // ../../node_modules/.pnpm/package-manager-detector@1.1.0/node_modules/package-manager-detector/dist/constants.mjs
22332
+ init_esm_shims();
22333
+ var AGENTS = [
22334
+ "npm",
22335
+ "yarn",
22336
+ "yarn@berry",
22337
+ "pnpm",
22338
+ "pnpm@6",
22339
+ "bun",
22340
+ "deno"
22341
+ ];
22342
+ var LOCKS = {
22343
+ "bun.lock": "bun",
22344
+ "bun.lockb": "bun",
22345
+ "deno.lock": "deno",
22346
+ "pnpm-lock.yaml": "pnpm",
22347
+ "yarn.lock": "yarn",
22348
+ "package-lock.json": "npm",
22349
+ "npm-shrinkwrap.json": "npm"
22350
+ };
22351
+ var INSTALL_METADATA = {
22352
+ "node_modules/.deno/": "deno",
22353
+ "node_modules/.pnpm/": "pnpm",
22354
+ "node_modules/.yarn-state.yml": "yarn",
22355
+ // yarn v2+ (node-modules)
22356
+ "node_modules/.yarn_integrity": "yarn",
22357
+ // yarn v1
22358
+ "node_modules/.package-lock.json": "npm",
22359
+ ".pnp.cjs": "yarn",
22360
+ // yarn v3+ (pnp)
22361
+ ".pnp.js": "yarn",
22362
+ // yarn v2 (pnp)
22363
+ "bun.lock": "bun",
22364
+ "bun.lockb": "bun"
22365
+ };
22366
+
22367
+ // ../../node_modules/.pnpm/package-manager-detector@1.1.0/node_modules/package-manager-detector/dist/detect.mjs
22368
+ async function pathExists(path23, type) {
22369
+ try {
22370
+ const stat3 = await fs5.stat(path23);
22371
+ return type === "file" ? stat3.isFile() : stat3.isDirectory();
22372
+ } catch {
22373
+ return false;
22374
+ }
22375
+ }
22376
+ __name(pathExists, "pathExists");
22377
+ function* lookup(cwd = process3.cwd()) {
22378
+ let directory = path8.resolve(cwd);
22379
+ const { root } = path8.parse(directory);
22380
+ while (directory && directory !== root) {
22381
+ yield directory;
22382
+ directory = path8.dirname(directory);
22383
+ }
22384
+ }
22385
+ __name(lookup, "lookup");
22386
+ async function parsePackageJson(filepath, onUnknown) {
22387
+ return !filepath || !pathExists(filepath, "file") ? null : await handlePackageManager(filepath, onUnknown);
22388
+ }
22389
+ __name(parsePackageJson, "parsePackageJson");
22390
+ async function detect(options = {}) {
22391
+ const { cwd, strategies = ["lockfile", "packageManager-field", "devEngines-field"], onUnknown } = options;
22392
+ for (const directory of lookup(cwd)) {
22393
+ for (const strategy of strategies) {
22394
+ switch (strategy) {
22395
+ case "lockfile": {
22396
+ for (const lock of Object.keys(LOCKS)) {
22397
+ if (await pathExists(path8.join(directory, lock), "file")) {
22398
+ const name = LOCKS[lock];
22399
+ const result = await parsePackageJson(path8.join(directory, "package.json"), onUnknown);
22400
+ if (result)
22401
+ return result;
22402
+ else
22403
+ return { name, agent: name };
22404
+ }
22405
+ }
22406
+ break;
22407
+ }
22408
+ case "packageManager-field":
22409
+ case "devEngines-field": {
22410
+ const result = await parsePackageJson(path8.join(directory, "package.json"), onUnknown);
22411
+ if (result)
22412
+ return result;
22413
+ break;
22414
+ }
22415
+ case "install-metadata": {
22416
+ for (const metadata of Object.keys(INSTALL_METADATA)) {
22417
+ const fileOrDir = metadata.endsWith("/") ? "dir" : "file";
22418
+ if (await pathExists(path8.join(directory, metadata), fileOrDir)) {
22419
+ const name = INSTALL_METADATA[metadata];
22420
+ const agent = name === "yarn" ? isMetadataYarnClassic(metadata) ? "yarn" : "yarn@berry" : name;
22421
+ return { name, agent };
22422
+ }
22423
+ }
22424
+ break;
22425
+ }
22426
+ }
22427
+ }
22428
+ }
22429
+ return null;
22430
+ }
22431
+ __name(detect, "detect");
22432
+ function getNameAndVer(pkg) {
22433
+ const handelVer = /* @__PURE__ */ __name((version3) => version3?.match(/\d+(\.\d+){0,2}/)?.[0] ?? version3, "handelVer");
22434
+ if (typeof pkg.packageManager === "string") {
22435
+ const [name, ver] = pkg.packageManager.replace(/^\^/, "").split("@");
22436
+ return { name, ver: handelVer(ver) };
22437
+ }
22438
+ if (typeof pkg.devEngines?.packageManager?.name === "string") {
22439
+ return {
22440
+ name: pkg.devEngines.packageManager.name,
22441
+ ver: handelVer(pkg.devEngines.packageManager.version)
22442
+ };
22443
+ }
22444
+ return void 0;
22445
+ }
22446
+ __name(getNameAndVer, "getNameAndVer");
22447
+ async function handlePackageManager(filepath, onUnknown) {
22448
+ try {
22449
+ const pkg = JSON.parse(await fs5.readFile(filepath, "utf8"));
22450
+ let agent;
22451
+ const nameAndVer = getNameAndVer(pkg);
22452
+ if (nameAndVer) {
22453
+ const name = nameAndVer.name;
22454
+ const ver = nameAndVer.ver;
22455
+ let version3 = ver;
22456
+ if (name === "yarn" && ver && Number.parseInt(ver) > 1) {
22457
+ agent = "yarn@berry";
22458
+ version3 = "berry";
22459
+ return { name, agent, version: version3 };
22460
+ } else if (name === "pnpm" && ver && Number.parseInt(ver) < 7) {
22461
+ agent = "pnpm@6";
22462
+ return { name, agent, version: version3 };
22463
+ } else if (AGENTS.includes(name)) {
22464
+ agent = name;
22465
+ return { name, agent, version: version3 };
22466
+ } else {
22467
+ return onUnknown?.(pkg.packageManager) ?? null;
22468
+ }
22469
+ }
22470
+ } catch {
22471
+ }
22472
+ return null;
22473
+ }
22474
+ __name(handlePackageManager, "handlePackageManager");
22475
+ function isMetadataYarnClassic(metadataPath) {
22476
+ return metadataPath.endsWith(".yarn_integrity");
22477
+ }
22478
+ __name(isMetadataYarnClassic, "isMetadataYarnClassic");
22479
+
22480
+ // src/context/services/ConfigService.ts
22481
+ import path9 from "pathe";
22174
22482
  import { loadConfigFromFile } from "vite";
22175
22483
  import tsconfigPaths from "vite-tsconfig-paths";
22176
22484
  function _ts_decorate4(decorators, target, key, desc) {
@@ -22192,11 +22500,11 @@ async function loadConfig(opts) {
22192
22500
  logger_default.error("\u8BF7\u5728 `project.config.json` \u91CC\u8BBE\u7F6E `miniprogramRoot`, \u6BD4\u5982\u53EF\u4EE5\u8BBE\u7F6E\u4E3A `dist/` ");
22193
22501
  return;
22194
22502
  }
22195
- const packageJsonPath = path8.resolve(cwd, "package.json");
22503
+ const packageJsonPath = path9.resolve(cwd, "package.json");
22196
22504
  const external = [];
22197
22505
  let packageJson = {};
22198
- if (await fs5.exists(packageJsonPath)) {
22199
- const localPackageJson = await fs5.readJson(packageJsonPath, {
22506
+ if (await fs6.exists(packageJsonPath)) {
22507
+ const localPackageJson = await fs6.readJson(packageJsonPath, {
22200
22508
  throws: false
22201
22509
  }) || {};
22202
22510
  packageJson = localPackageJson;
@@ -22212,7 +22520,7 @@ async function loadConfig(opts) {
22212
22520
  const srcRoot = loadedConfig?.weapp?.srcRoot ?? "";
22213
22521
  function relativeSrcRoot(p2) {
22214
22522
  if (srcRoot) {
22215
- return path8.relative(srcRoot, p2);
22523
+ return path9.relative(srcRoot, p2);
22216
22524
  }
22217
22525
  return p2;
22218
22526
  }
@@ -22283,6 +22591,7 @@ var ConfigService2 = class {
22283
22591
  * esbuild 定义的环境变量
22284
22592
  */
22285
22593
  defineEnv;
22594
+ packageManager;
22286
22595
  constructor() {
22287
22596
  this.defineEnv = {};
22288
22597
  }
@@ -22303,13 +22612,13 @@ var ConfigService2 = class {
22303
22612
  }
22304
22613
  async load(options) {
22305
22614
  const input = defu4(options, {
22306
- cwd: process3.cwd(),
22615
+ cwd: process4.cwd(),
22307
22616
  isDev: false,
22308
22617
  mode: "development"
22309
22618
  });
22310
22619
  const rawConfig = await loadConfig(input);
22311
22620
  const resolvedConfig = defu4(rawConfig, {
22312
- cwd: process3.cwd(),
22621
+ cwd: process4.cwd(),
22313
22622
  isDev: false,
22314
22623
  projectConfig: {},
22315
22624
  config: {},
@@ -22318,6 +22627,10 @@ var ConfigService2 = class {
22318
22627
  });
22319
22628
  this.options = resolvedConfig;
22320
22629
  this.outputExtensions = getOutputExtensions(resolvedConfig.platform);
22630
+ this.packageManager = await detect() ?? {
22631
+ agent: "npm",
22632
+ name: "npm"
22633
+ };
22321
22634
  return resolvedConfig;
22322
22635
  }
22323
22636
  get cwd() {
@@ -22330,7 +22643,7 @@ var ConfigService2 = class {
22330
22643
  return this.options.mpDistRoot;
22331
22644
  }
22332
22645
  get outDir() {
22333
- return path8.resolve(this.cwd, this.mpDistRoot ?? "");
22646
+ return path9.resolve(this.cwd, this.mpDistRoot ?? "");
22334
22647
  }
22335
22648
  get inlineConfig() {
22336
22649
  return this.options.config;
@@ -22348,7 +22661,7 @@ var ConfigService2 = class {
22348
22661
  return this.options.srcRoot;
22349
22662
  }
22350
22663
  get absoluteSrcRoot() {
22351
- return path8.resolve(this.cwd, this.srcRoot);
22664
+ return path9.resolve(this.cwd, this.srcRoot);
22352
22665
  }
22353
22666
  get mode() {
22354
22667
  return this.options.mode;
@@ -22360,7 +22673,7 @@ var ConfigService2 = class {
22360
22673
  return this.options.platform;
22361
22674
  }
22362
22675
  relativeCwd(p2) {
22363
- return path8.relative(this.cwd, p2);
22676
+ return path9.relative(this.cwd, p2);
22364
22677
  }
22365
22678
  relativeSrcRoot(p2) {
22366
22679
  return this.options.relativeSrcRoot(p2);
@@ -22379,10 +22692,10 @@ var ConfigService2 = class {
22379
22692
  watch: {
22380
22693
  exclude: [
22381
22694
  ...defaultExcluded,
22382
- this.options.mpDistRoot ? path8.join(this.options.mpDistRoot, "**") : "dist/**"
22695
+ this.options.mpDistRoot ? path9.join(this.options.mpDistRoot, "**") : "dist/**"
22383
22696
  ],
22384
22697
  include: [
22385
- path8.join(this.options.srcRoot, "**")
22698
+ path9.join(this.options.srcRoot, "**")
22386
22699
  ],
22387
22700
  chokidar: {
22388
22701
  ignored: [
@@ -22429,8 +22742,8 @@ import { build as build2, context } from "esbuild";
22429
22742
 
22430
22743
  // ../../node_modules/.pnpm/load-tsconfig@0.2.5/node_modules/load-tsconfig/dist/index.js
22431
22744
  init_esm_shims();
22432
- import path9 from "path";
22433
- import fs6 from "fs";
22745
+ import path10 from "path";
22746
+ import fs7 from "fs";
22434
22747
  import { createRequire } from "module";
22435
22748
  var singleComment = Symbol("singleComment");
22436
22749
  var multiComment = Symbol("multiComment");
@@ -22522,31 +22835,31 @@ __name(stripJsonComments, "stripJsonComments");
22522
22835
  function jsoncParse(data2) {
22523
22836
  try {
22524
22837
  return new Function("return " + stripJsonComments(data2).trim())();
22525
- } catch (_3) {
22838
+ } catch (_4) {
22526
22839
  return {};
22527
22840
  }
22528
22841
  }
22529
22842
  __name(jsoncParse, "jsoncParse");
22530
22843
  var req = true ? createRequire(import.meta.url) : __require;
22531
- var findUp = /* @__PURE__ */ __name((name, startDir, stopDir = path9.parse(startDir).root) => {
22844
+ var findUp = /* @__PURE__ */ __name((name, startDir, stopDir = path10.parse(startDir).root) => {
22532
22845
  let dir = startDir;
22533
22846
  while (dir !== stopDir) {
22534
- const file = path9.join(dir, name);
22535
- if (fs6.existsSync(file)) return file;
22847
+ const file = path10.join(dir, name);
22848
+ if (fs7.existsSync(file)) return file;
22536
22849
  if (!file.endsWith(".json")) {
22537
22850
  const fileWithExt = file + ".json";
22538
- if (fs6.existsSync(fileWithExt)) return fileWithExt;
22851
+ if (fs7.existsSync(fileWithExt)) return fileWithExt;
22539
22852
  }
22540
- dir = path9.dirname(dir);
22853
+ dir = path10.dirname(dir);
22541
22854
  }
22542
22855
  return null;
22543
22856
  }, "findUp");
22544
22857
  var resolveTsConfigFromFile = /* @__PURE__ */ __name((cwd, filename) => {
22545
- if (path9.isAbsolute(filename)) return fs6.existsSync(filename) ? filename : null;
22858
+ if (path10.isAbsolute(filename)) return fs7.existsSync(filename) ? filename : null;
22546
22859
  return findUp(filename, cwd);
22547
22860
  }, "resolveTsConfigFromFile");
22548
22861
  var resolveTsConfigFromExtends = /* @__PURE__ */ __name((cwd, name) => {
22549
- if (path9.isAbsolute(name)) return fs6.existsSync(name) ? name : null;
22862
+ if (path10.isAbsolute(name)) return fs7.existsSync(name) ? name : null;
22550
22863
  if (name.startsWith(".")) return findUp(name, cwd);
22551
22864
  const id = req.resolve(name, {
22552
22865
  paths: [
@@ -22557,13 +22870,13 @@ var resolveTsConfigFromExtends = /* @__PURE__ */ __name((cwd, name) => {
22557
22870
  }, "resolveTsConfigFromExtends");
22558
22871
  var loadTsConfigInternal = /* @__PURE__ */ __name((dir = process.cwd(), name = "tsconfig.json", isExtends = false) => {
22559
22872
  var _a3, _b;
22560
- dir = path9.resolve(dir);
22873
+ dir = path10.resolve(dir);
22561
22874
  const id = isExtends ? resolveTsConfigFromExtends(dir, name) : resolveTsConfigFromFile(dir, name);
22562
22875
  if (!id) return null;
22563
- const data2 = jsoncParse(fs6.readFileSync(id, "utf-8"));
22564
- const configDir = path9.dirname(id);
22876
+ const data2 = jsoncParse(fs7.readFileSync(id, "utf-8"));
22877
+ const configDir = path10.dirname(id);
22565
22878
  if ((_a3 = data2.compilerOptions) == null ? void 0 : _a3.baseUrl) {
22566
- data2.compilerOptions.baseUrl = path9.join(configDir, data2.compilerOptions.baseUrl);
22879
+ data2.compilerOptions.baseUrl = path10.join(configDir, data2.compilerOptions.baseUrl);
22567
22880
  }
22568
22881
  let extendsFiles = [];
22569
22882
  if (data2.extends) {
@@ -22606,19 +22919,19 @@ var loadTsConfigInternal = /* @__PURE__ */ __name((dir = process.cwd(), name = "
22606
22919
  var loadTsConfig = /* @__PURE__ */ __name((dir, name) => loadTsConfigInternal(dir, name), "loadTsConfig");
22607
22920
 
22608
22921
  // ../../node_modules/.pnpm/bundle-require@5.1.0_esbuild@0.25.1/node_modules/bundle-require/dist/index.js
22609
- import fs7 from "fs";
22610
- import path10 from "path";
22922
+ import fs8 from "fs";
22923
+ import path11 from "path";
22611
22924
  import { createRequire as createRequire2 } from "module";
22612
22925
  var getPkgType = /* @__PURE__ */ __name(() => {
22613
22926
  try {
22614
- const pkg = JSON.parse(fs7.readFileSync(path10.resolve("package.json"), "utf-8"));
22927
+ const pkg = JSON.parse(fs8.readFileSync(path11.resolve("package.json"), "utf-8"));
22615
22928
  return pkg.type;
22616
22929
  } catch (error) {
22617
22930
  }
22618
22931
  }, "getPkgType");
22619
22932
  function guessFormat(inputFile) {
22620
22933
  if (!usingDynamicImport) return "cjs";
22621
- const ext2 = path10.extname(inputFile);
22934
+ const ext2 = path11.extname(inputFile);
22622
22935
  const type = getPkgType();
22623
22936
  if (ext2 === ".js") {
22624
22937
  return type === "module" ? "esm" : "cjs";
@@ -22847,7 +23160,7 @@ __name(bundleRequire, "bundleRequire");
22847
23160
 
22848
23161
  // src/context/services/JsonService.ts
22849
23162
  import { parse as parseJson2 } from "comment-json";
22850
- import fs8 from "fs-extra";
23163
+ import fs9 from "fs-extra";
22851
23164
  function _ts_decorate5(decorators, target, key, desc) {
22852
23165
  var c2 = arguments.length, r4 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d3;
22853
23166
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r4 = Reflect.decorate(decorators, target, key, desc);
@@ -22889,7 +23202,7 @@ var JsonService2 = class {
22889
23202
  });
22890
23203
  return typeof mod.default === "function" ? await mod.default(getCompilerContext()) : mod.default;
22891
23204
  } else {
22892
- return parseCommentJson(await fs8.readFile(filepath, "utf8"));
23205
+ return parseCommentJson(await fs9.readFile(filepath, "utf8"));
22893
23206
  }
22894
23207
  } catch (error) {
22895
23208
  logger_default.error(`\u6B8B\u7834\u7684JSON\u6587\u4EF6: ${filepath}`);
@@ -22913,14 +23226,14 @@ JsonService2 = _ts_decorate5([
22913
23226
  init_esm_shims();
22914
23227
  import { isBuiltin } from "node:module";
22915
23228
  import { defu as defu5, isObject as isObject4, objectHash } from "@weapp-core/shared";
22916
- import fs11 from "fs-extra";
23229
+ import fs12 from "fs-extra";
22917
23230
 
22918
23231
  // ../../node_modules/.pnpm/local-pkg@1.1.1/node_modules/local-pkg/dist/index.mjs
22919
23232
  init_esm_shims();
22920
- import fs10 from "node:fs";
23233
+ import fs11 from "node:fs";
22921
23234
  import { createRequire as createRequire4 } from "node:module";
22922
- import path12, { dirname as dirname2, join, win32 as win322 } from "node:path";
22923
- import process4 from "node:process";
23235
+ import path13, { dirname as dirname2, join, win32 as win322 } from "node:path";
23236
+ import process5 from "node:process";
22924
23237
  import fsPromises from "node:fs/promises";
22925
23238
  import { fileURLToPath as fileURLToPath4 } from "node:url";
22926
23239
 
@@ -24663,11 +24976,11 @@ pp$8.parseImportAttribute = function() {
24663
24976
  };
24664
24977
  pp$8.parseModuleExportName = function() {
24665
24978
  if (this.options.ecmaVersion >= 13 && this.type === types$1.string) {
24666
- var stringLiteral = this.parseLiteral(this.value);
24667
- if (loneSurrogate.test(stringLiteral.value)) {
24668
- this.raise(stringLiteral.start, "An export name cannot include a lone surrogate.");
24979
+ var stringLiteral2 = this.parseLiteral(this.value);
24980
+ if (loneSurrogate.test(stringLiteral2.value)) {
24981
+ this.raise(stringLiteral2.start, "An export name cannot include a lone surrogate.");
24669
24982
  }
24670
- return stringLiteral;
24983
+ return stringLiteral2;
24671
24984
  }
24672
24985
  return this.parseIdent(true);
24673
24986
  };
@@ -26457,7 +26770,7 @@ pp$1.validateRegExpFlags = function(state) {
26457
26770
  }
26458
26771
  };
26459
26772
  function hasProp(obj) {
26460
- for (var _3 in obj) {
26773
+ for (var _4 in obj) {
26461
26774
  return true;
26462
26775
  }
26463
26776
  return false;
@@ -28495,7 +28808,7 @@ Parser2.acorn = {
28495
28808
 
28496
28809
  // ../../node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs
28497
28810
  import { builtinModules, createRequire as createRequire3 } from "node:module";
28498
- import fs9, { realpathSync as realpathSync2, statSync as statSync2, promises as promises2 } from "node:fs";
28811
+ import fs10, { realpathSync as realpathSync2, statSync as statSync2, promises as promises2 } from "node:fs";
28499
28812
 
28500
28813
  // ../../node_modules/.pnpm/ufo@1.5.4/node_modules/ufo/dist/index.mjs
28501
28814
  init_esm_shims();
@@ -28516,17 +28829,17 @@ function withTrailingSlash(input = "", respectQueryAndFragment) {
28516
28829
  if (hasTrailingSlash(input, true)) {
28517
28830
  return input || "/";
28518
28831
  }
28519
- let path16 = input;
28832
+ let path17 = input;
28520
28833
  let fragment = "";
28521
28834
  const fragmentIndex = input.indexOf("#");
28522
28835
  if (fragmentIndex >= 0) {
28523
- path16 = input.slice(0, fragmentIndex);
28836
+ path17 = input.slice(0, fragmentIndex);
28524
28837
  fragment = input.slice(fragmentIndex);
28525
- if (!path16) {
28838
+ if (!path17) {
28526
28839
  return fragment;
28527
28840
  }
28528
28841
  }
28529
- const [s0, ...s2] = path16.split("?");
28842
+ const [s0, ...s2] = path17.split("?");
28530
28843
  return s0 + "/" + (s2.length > 0 ? `?${s2.join("?")}` : "") + fragment;
28531
28844
  }
28532
28845
  __name(withTrailingSlash, "withTrailingSlash");
@@ -28554,12 +28867,12 @@ import { normalize as normalize2, isAbsolute, extname as extname$1 } from "pathe
28554
28867
  import { fileURLToPath as fileURLToPath$1, URL as URL$1, pathToFileURL as pathToFileURL$1 } from "node:url";
28555
28868
  import assert from "node:assert";
28556
28869
  import process$1 from "node:process";
28557
- import path11, { dirname } from "node:path";
28870
+ import path12, { dirname } from "node:path";
28558
28871
  import v8 from "node:v8";
28559
28872
  import { format, inspect as inspect2 } from "node:util";
28560
28873
  var BUILTIN_MODULES = new Set(builtinModules);
28561
- function normalizeSlash(path16) {
28562
- return path16.replace(/\\/g, "/");
28874
+ function normalizeSlash(path17) {
28875
+ return path17.replace(/\\/g, "/");
28563
28876
  }
28564
28877
  __name(normalizeSlash, "normalizeSlash");
28565
28878
  var own$1 = {}.hasOwnProperty;
@@ -28674,8 +28987,8 @@ codes2.ERR_INVALID_PACKAGE_CONFIG = createError(
28674
28987
  * @param {string} [base]
28675
28988
  * @param {string} [message]
28676
28989
  */
28677
- (path16, base, message) => {
28678
- return `Invalid package config ${path16}${base ? ` while importing ${base}` : ""}${message ? `. ${message}` : ""}`;
28990
+ (path17, base, message) => {
28991
+ return `Invalid package config ${path17}${base ? ` while importing ${base}` : ""}${message ? `. ${message}` : ""}`;
28679
28992
  },
28680
28993
  Error
28681
28994
  );
@@ -28707,8 +29020,8 @@ codes2.ERR_MODULE_NOT_FOUND = createError(
28707
29020
  * @param {string} base
28708
29021
  * @param {boolean} [exactUrl]
28709
29022
  */
28710
- (path16, base, exactUrl = false) => {
28711
- return `Cannot find ${exactUrl ? "module" : "package"} '${path16}' imported from ${base}`;
29023
+ (path17, base, exactUrl = false) => {
29024
+ return `Cannot find ${exactUrl ? "module" : "package"} '${path17}' imported from ${base}`;
28712
29025
  },
28713
29026
  Error
28714
29027
  );
@@ -28759,8 +29072,8 @@ codes2.ERR_UNKNOWN_FILE_EXTENSION = createError(
28759
29072
  * @param {string} extension
28760
29073
  * @param {string} path
28761
29074
  */
28762
- (extension, path16) => {
28763
- return `Unknown file extension "${extension}" for ${path16}`;
29075
+ (extension, path17) => {
29076
+ return `Unknown file extension "${extension}" for ${path17}`;
28764
29077
  },
28765
29078
  TypeError
28766
29079
  );
@@ -28912,7 +29225,7 @@ function read(jsonPath, { base, specifier }) {
28912
29225
  }
28913
29226
  let string;
28914
29227
  try {
28915
- string = fs9.readFileSync(path11.toNamespacedPath(jsonPath), "utf8");
29228
+ string = fs10.readFileSync(path12.toNamespacedPath(jsonPath), "utf8");
28916
29229
  } catch (error) {
28917
29230
  const exception = (
28918
29231
  /** @type {ErrnoException} */
@@ -29138,7 +29451,7 @@ Default "index" lookups for the main are deprecated for ES modules.`,
29138
29451
  "DeprecationWarning",
29139
29452
  "DEP0151"
29140
29453
  );
29141
- } else if (path11.resolve(packagePath, main) !== urlPath) {
29454
+ } else if (path12.resolve(packagePath, main) !== urlPath) {
29142
29455
  process$1.emitWarning(
29143
29456
  `Package ${packagePath} has a "main" field set to "${main}", excluding the full filename and extension to the resolved file at "${urlPath.slice(
29144
29457
  packagePath.length
@@ -29150,9 +29463,9 @@ Default "index" lookups for the main are deprecated for ES modules.`,
29150
29463
  }
29151
29464
  }
29152
29465
  __name(emitLegacyIndexDeprecation, "emitLegacyIndexDeprecation");
29153
- function tryStatSync(path16) {
29466
+ function tryStatSync(path17) {
29154
29467
  try {
29155
- return statSync2(path16);
29468
+ return statSync2(path17);
29156
29469
  } catch {
29157
29470
  }
29158
29471
  }
@@ -29249,7 +29562,7 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
29249
29562
  {
29250
29563
  const real = realpathSync2(filePath);
29251
29564
  const { search, hash } = resolved;
29252
- resolved = pathToFileURL$1(real + (filePath.endsWith(path11.sep) ? "/" : ""));
29565
+ resolved = pathToFileURL$1(real + (filePath.endsWith(path12.sep) ? "/" : ""));
29253
29566
  resolved.search = search;
29254
29567
  resolved.hash = hash;
29255
29568
  }
@@ -30060,16 +30373,16 @@ var quansync2 = quansync;
30060
30373
  // ../../node_modules/.pnpm/local-pkg@1.1.1/node_modules/local-pkg/dist/index.mjs
30061
30374
  var toPath = /* @__PURE__ */ __name((urlOrPath) => urlOrPath instanceof URL ? fileURLToPath4(urlOrPath) : urlOrPath, "toPath");
30062
30375
  async function findUp$1(name, {
30063
- cwd = process4.cwd(),
30376
+ cwd = process5.cwd(),
30064
30377
  type = "file",
30065
30378
  stopAt
30066
30379
  } = {}) {
30067
- let directory = path12.resolve(toPath(cwd) ?? "");
30068
- const { root } = path12.parse(directory);
30069
- stopAt = path12.resolve(directory, toPath(stopAt ?? root));
30070
- const isAbsoluteName = path12.isAbsolute(name);
30380
+ let directory = path13.resolve(toPath(cwd) ?? "");
30381
+ const { root } = path13.parse(directory);
30382
+ stopAt = path13.resolve(directory, toPath(stopAt ?? root));
30383
+ const isAbsoluteName = path13.isAbsolute(name);
30071
30384
  while (directory) {
30072
- const filePath = isAbsoluteName ? name : path12.join(directory, name);
30385
+ const filePath = isAbsoluteName ? name : path13.join(directory, name);
30073
30386
  try {
30074
30387
  const stats = await fsPromises.stat(filePath);
30075
30388
  if (type === "file" && stats.isFile() || type === "directory" && stats.isDirectory()) {
@@ -30080,23 +30393,23 @@ async function findUp$1(name, {
30080
30393
  if (directory === stopAt || directory === root) {
30081
30394
  break;
30082
30395
  }
30083
- directory = path12.dirname(directory);
30396
+ directory = path13.dirname(directory);
30084
30397
  }
30085
30398
  }
30086
30399
  __name(findUp$1, "findUp$1");
30087
30400
  function findUpSync(name, {
30088
- cwd = process4.cwd(),
30401
+ cwd = process5.cwd(),
30089
30402
  type = "file",
30090
30403
  stopAt
30091
30404
  } = {}) {
30092
- let directory = path12.resolve(toPath(cwd) ?? "");
30093
- const { root } = path12.parse(directory);
30094
- stopAt = path12.resolve(directory, toPath(stopAt) ?? root);
30095
- const isAbsoluteName = path12.isAbsolute(name);
30405
+ let directory = path13.resolve(toPath(cwd) ?? "");
30406
+ const { root } = path13.parse(directory);
30407
+ stopAt = path13.resolve(directory, toPath(stopAt) ?? root);
30408
+ const isAbsoluteName = path13.isAbsolute(name);
30096
30409
  while (directory) {
30097
- const filePath = isAbsoluteName ? name : path12.join(directory, name);
30410
+ const filePath = isAbsoluteName ? name : path13.join(directory, name);
30098
30411
  try {
30099
- const stats = fs10.statSync(filePath, { throwIfNoEntry: false });
30412
+ const stats = fs11.statSync(filePath, { throwIfNoEntry: false });
30100
30413
  if (type === "file" && stats?.isFile() || type === "directory" && stats?.isDirectory()) {
30101
30414
  return filePath;
30102
30415
  }
@@ -30105,24 +30418,24 @@ function findUpSync(name, {
30105
30418
  if (directory === stopAt || directory === root) {
30106
30419
  break;
30107
30420
  }
30108
- directory = path12.dirname(directory);
30421
+ directory = path13.dirname(directory);
30109
30422
  }
30110
30423
  }
30111
30424
  __name(findUpSync, "findUpSync");
30112
- function _resolve2(path16, options = {}) {
30425
+ function _resolve2(path17, options = {}) {
30113
30426
  if (options.platform === "auto" || !options.platform)
30114
- options.platform = process4.platform === "win32" ? "win32" : "posix";
30115
- if (process4.versions.pnp) {
30427
+ options.platform = process5.platform === "win32" ? "win32" : "posix";
30428
+ if (process5.versions.pnp) {
30116
30429
  const paths = options.paths || [];
30117
30430
  if (paths.length === 0)
30118
- paths.push(process4.cwd());
30431
+ paths.push(process5.cwd());
30119
30432
  const targetRequire = createRequire4(import.meta.url);
30120
30433
  try {
30121
- return targetRequire.resolve(path16, { paths });
30434
+ return targetRequire.resolve(path17, { paths });
30122
30435
  } catch {
30123
30436
  }
30124
30437
  }
30125
- const modulePath = resolvePathSync(path16, {
30438
+ const modulePath = resolvePathSync(path17, {
30126
30439
  url: options.paths
30127
30440
  });
30128
30441
  if (options.platform === "win32")
@@ -30146,8 +30459,8 @@ function getPackageJsonPath(name, options = {}) {
30146
30459
  }
30147
30460
  __name(getPackageJsonPath, "getPackageJsonPath");
30148
30461
  var readFile = quansync2({
30149
- async: /* @__PURE__ */ __name((id) => fs10.promises.readFile(id, "utf8"), "async"),
30150
- sync: /* @__PURE__ */ __name((id) => fs10.readFileSync(id, "utf8"), "sync")
30462
+ async: /* @__PURE__ */ __name((id) => fs11.promises.readFile(id, "utf8"), "async"),
30463
+ sync: /* @__PURE__ */ __name((id) => fs11.readFileSync(id, "utf8"), "sync")
30151
30464
  });
30152
30465
  var getPackageInfo = quansync2(function* (name, options = {}) {
30153
30466
  const packageJsonPath = getPackageJsonPath(name, options);
@@ -30187,7 +30500,7 @@ function searchPackageJSON(dir) {
30187
30500
  return;
30188
30501
  dir = newDir;
30189
30502
  packageJsonPath = join(dir, "package.json");
30190
- if (fs10.existsSync(packageJsonPath))
30503
+ if (fs11.existsSync(packageJsonPath))
30191
30504
  break;
30192
30505
  }
30193
30506
  return packageJsonPath;
@@ -30197,11 +30510,11 @@ var findUp2 = quansync2({
30197
30510
  sync: findUpSync,
30198
30511
  async: findUp$1
30199
30512
  });
30200
- var loadPackageJSON = quansync2(function* (cwd = process4.cwd()) {
30201
- const path16 = yield findUp2("package.json", { cwd });
30202
- if (!path16 || !fs10.existsSync(path16))
30513
+ var loadPackageJSON = quansync2(function* (cwd = process5.cwd()) {
30514
+ const path17 = yield findUp2("package.json", { cwd });
30515
+ if (!path17 || !fs11.existsSync(path17))
30203
30516
  return null;
30204
- return JSON.parse(yield readFile(path16));
30517
+ return JSON.parse(yield readFile(path17));
30205
30518
  });
30206
30519
  var loadPackageJSONSync = loadPackageJSON.sync;
30207
30520
  var isPackageListed = quansync2(function* (name, cwd) {
@@ -30211,7 +30524,7 @@ var isPackageListed = quansync2(function* (name, cwd) {
30211
30524
  var isPackageListedSync = isPackageListed.sync;
30212
30525
 
30213
30526
  // src/context/services/NpmService.ts
30214
- import path13 from "pathe";
30527
+ import path14 from "pathe";
30215
30528
  function _ts_decorate6(decorators, target, key, desc) {
30216
30529
  var c2 = arguments.length, r4 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d3;
30217
30530
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r4 = Reflect.decorate(decorators, target, key, desc);
@@ -30241,7 +30554,7 @@ var NpmService2 = class {
30241
30554
  this.builtDepSetMap = /* @__PURE__ */ new Map();
30242
30555
  }
30243
30556
  getDependenciesCacheFilePath(key = "/") {
30244
- return path13.resolve(this.configService.cwd, `node_modules/weapp-vite/.cache/${key.replaceAll("/", "-")}.json`);
30557
+ return path14.resolve(this.configService.cwd, `node_modules/weapp-vite/.cache/${key.replaceAll("/", "-")}.json`);
30245
30558
  }
30246
30559
  get dependenciesCacheHash() {
30247
30560
  return objectHash(this.configService.packageJson.dependencies ?? {});
@@ -30250,19 +30563,19 @@ var NpmService2 = class {
30250
30563
  return Reflect.has(pkg, "miniprogram") && typeof pkg.miniprogram === "string";
30251
30564
  }
30252
30565
  async shouldSkipBuild(outDir, isOutdated) {
30253
- return !isOutdated && await fs11.exists(outDir);
30566
+ return !isOutdated && await fs12.exists(outDir);
30254
30567
  }
30255
30568
  writeDependenciesCache(subPackage) {
30256
30569
  if (this.configService.inlineConfig.weapp?.npm?.cache) {
30257
- return fs11.outputJSON(this.getDependenciesCacheFilePath(subPackage?.root), {
30570
+ return fs12.outputJSON(this.getDependenciesCacheFilePath(subPackage?.root), {
30258
30571
  hash: this.dependenciesCacheHash
30259
30572
  });
30260
30573
  }
30261
30574
  }
30262
30575
  async readDependenciesCache(subPackage) {
30263
30576
  const cachePath = this.getDependenciesCacheFilePath(subPackage?.root);
30264
- if (await fs11.exists(cachePath)) {
30265
- return await fs11.readJson(cachePath, {
30577
+ if (await fs12.exists(cachePath)) {
30578
+ return await fs12.readJson(cachePath, {
30266
30579
  throws: false
30267
30580
  });
30268
30581
  }
@@ -30343,7 +30656,7 @@ var NpmService2 = class {
30343
30656
  if (builtSet.has(name)) {
30344
30657
  return;
30345
30658
  }
30346
- await fs11.copy(from, to);
30659
+ await fs12.copy(from, to);
30347
30660
  builtSet.add(name);
30348
30661
  }
30349
30662
  async buildPackage({ dep, outDir, options, isDependenciesCacheOutdate, heading = "", subPackage }) {
@@ -30355,13 +30668,13 @@ var NpmService2 = class {
30355
30668
  const dependencies = targetJson.dependencies ?? {};
30356
30669
  const keys = Object.keys(dependencies);
30357
30670
  if (this.isMiniprogramPackage(targetJson)) {
30358
- const destOutDir = path13.resolve(outDir, dep);
30671
+ const destOutDir = path14.resolve(outDir, dep);
30359
30672
  if (await this.shouldSkipBuild(destOutDir, isDependenciesCacheOutdate)) {
30360
30673
  logger_default.info(`${heading} ${dep} \u4F9D\u8D56\u672A\u53D1\u751F\u53D8\u5316\uFF0C\u8DF3\u8FC7\u5904\u7406!`);
30361
30674
  return;
30362
30675
  }
30363
30676
  await this.copyBuild({
30364
- from: path13.resolve(rootPath, targetJson.miniprogram),
30677
+ from: path14.resolve(rootPath, targetJson.miniprogram),
30365
30678
  to: destOutDir,
30366
30679
  name: dep,
30367
30680
  subPackage
@@ -30380,7 +30693,7 @@ var NpmService2 = class {
30380
30693
  }));
30381
30694
  }
30382
30695
  } else {
30383
- const destOutDir = path13.resolve(outDir, dep);
30696
+ const destOutDir = path14.resolve(outDir, dep);
30384
30697
  if (await this.shouldSkipBuild(destOutDir, isDependenciesCacheOutdate)) {
30385
30698
  logger_default.info(`${heading} ${dep} \u4F9D\u8D56\u672A\u53D1\u751F\u53D8\u5316\uFF0C\u8DF3\u8FC7\u5904\u7406!`);
30386
30699
  return;
@@ -30444,10 +30757,10 @@ var NpmService2 = class {
30444
30757
  this.builtDepSetMap.set(Symbols.NpmMainPackageBuiltDepToken, /* @__PURE__ */ new Set());
30445
30758
  }
30446
30759
  for (const relation of packNpmRelationList) {
30447
- const packageJsonPath = path13.resolve(this.configService.cwd, relation.packageJsonPath);
30448
- if (await fs11.exists(packageJsonPath)) {
30449
- const pkgJson = await fs11.readJson(packageJsonPath);
30450
- const outDir = path13.resolve(this.configService.cwd, relation.miniprogramNpmDistDir, subPackage?.root ?? "", "miniprogram_npm");
30760
+ const packageJsonPath = path14.resolve(this.configService.cwd, relation.packageJsonPath);
30761
+ if (await fs12.exists(packageJsonPath)) {
30762
+ const pkgJson = await fs12.readJson(packageJsonPath);
30763
+ const outDir = path14.resolve(this.configService.cwd, relation.miniprogramNpmDistDir, subPackage?.root ?? "", "miniprogram_npm");
30451
30764
  if (pkgJson.dependencies) {
30452
30765
  const dependencies = Object.keys(pkgJson.dependencies);
30453
30766
  if (dependencies.length > 0) {
@@ -30486,8 +30799,8 @@ NpmService2 = _ts_decorate6([
30486
30799
  // src/context/services/ScanService.ts
30487
30800
  init_esm_shims();
30488
30801
  import { get as get2, isObject as isObject5, removeExtension as removeExtension4, set as set2 } from "@weapp-core/shared";
30489
- import fs12 from "fs-extra";
30490
- import path14 from "pathe";
30802
+ import fs13 from "fs-extra";
30803
+ import path15 from "pathe";
30491
30804
  import { ModuleKind, Project, ScriptTarget } from "ts-morph";
30492
30805
  function _ts_decorate7(decorators, target, key, desc) {
30493
30806
  var c2 = arguments.length, r4 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d3;
@@ -30570,7 +30883,7 @@ var ScanService2 = class {
30570
30883
  } else if (tokens[0] === "") {
30571
30884
  await this.scanComponentEntry({
30572
30885
  componentEntry: componentUrl.substring(1),
30573
- dirname: path14.resolve(this.configService.cwd, this.configService.srcRoot),
30886
+ dirname: path15.resolve(this.configService.cwd, this.configService.srcRoot),
30574
30887
  subPackageMeta
30575
30888
  });
30576
30889
  } else {
@@ -30596,8 +30909,8 @@ var ScanService2 = class {
30596
30909
  this.wxmlService.wxmlComponentsMap.clear();
30597
30910
  }
30598
30911
  async loadAppEntry() {
30599
- const appDirname = path14.resolve(this.configService.cwd, this.configService.srcRoot);
30600
- const appBasename = path14.resolve(appDirname, "app");
30912
+ const appDirname = path15.resolve(this.configService.cwd, this.configService.srcRoot);
30913
+ const appBasename = path15.resolve(appDirname, "app");
30601
30914
  const appConfigFile = await findJsonEntry(appBasename);
30602
30915
  const appEntryPath = await findJsEntry(appBasename);
30603
30916
  if (appEntryPath && appConfigFile) {
@@ -30612,14 +30925,14 @@ var ScanService2 = class {
30612
30925
  this.appEntry = appEntry;
30613
30926
  const { sitemapLocation = "sitemap.json", themeLocation = "theme.json" } = config;
30614
30927
  if (sitemapLocation) {
30615
- const sitemapJsonPath = await findJsonEntry(path14.resolve(appDirname, sitemapLocation));
30928
+ const sitemapJsonPath = await findJsonEntry(path15.resolve(appDirname, sitemapLocation));
30616
30929
  if (sitemapJsonPath) {
30617
30930
  appEntry.sitemapJsonPath = sitemapJsonPath;
30618
30931
  appEntry.sitemapJson = await this.jsonService.read(sitemapJsonPath);
30619
30932
  }
30620
30933
  }
30621
30934
  if (themeLocation) {
30622
- const themeJsonPath = await findJsonEntry(path14.resolve(appDirname, themeLocation));
30935
+ const themeJsonPath = await findJsonEntry(path15.resolve(appDirname, themeLocation));
30623
30936
  if (themeJsonPath) {
30624
30937
  appEntry.themeJsonPath = themeJsonPath;
30625
30938
  appEntry.themeJson = await this.jsonService.read(themeJsonPath);
@@ -30634,7 +30947,7 @@ var ScanService2 = class {
30634
30947
  async scanAppEntry() {
30635
30948
  debug?.("scanAppEntry start");
30636
30949
  this.resetEntries();
30637
- const appDirname = path14.resolve(this.configService.cwd, this.configService.srcRoot);
30950
+ const appDirname = path15.resolve(this.configService.cwd, this.configService.srcRoot);
30638
30951
  if (this.appEntry) {
30639
30952
  const { path: appEntryPath, json: config } = this.appEntry;
30640
30953
  if (this.entriesSet.has(appEntryPath)) {
@@ -30674,7 +30987,7 @@ var ScanService2 = class {
30674
30987
  if (Array.isArray(sub.pages)) {
30675
30988
  for (const page of sub.pages) {
30676
30989
  await this.scanComponentEntry({
30677
- componentEntry: path14.join(sub.root, page),
30990
+ componentEntry: path15.join(sub.root, page),
30678
30991
  dirname: appDirname,
30679
30992
  subPackageMeta: meta
30680
30993
  });
@@ -30682,7 +30995,7 @@ var ScanService2 = class {
30682
30995
  }
30683
30996
  if (sub.entry) {
30684
30997
  await this.scanComponentEntry({
30685
- componentEntry: path14.join(sub.root, sub.entry),
30998
+ componentEntry: path15.join(sub.root, sub.entry),
30686
30999
  dirname: appDirname,
30687
31000
  subPackageMeta: meta
30688
31001
  });
@@ -30692,14 +31005,14 @@ var ScanService2 = class {
30692
31005
  if (Array.isArray(sub.pages)) {
30693
31006
  for (const page of sub.pages) {
30694
31007
  await this.scanComponentEntry({
30695
- componentEntry: path14.join(sub.root, page),
31008
+ componentEntry: path15.join(sub.root, page),
30696
31009
  dirname: appDirname
30697
31010
  });
30698
31011
  }
30699
31012
  }
30700
31013
  if (sub.entry) {
30701
31014
  await this.scanComponentEntry({
30702
- componentEntry: path14.join(sub.root, sub.entry),
31015
+ componentEntry: path15.join(sub.root, sub.entry),
30703
31016
  dirname: appDirname
30704
31017
  });
30705
31018
  }
@@ -30748,11 +31061,11 @@ var ScanService2 = class {
30748
31061
  entries: this.entries
30749
31062
  };
30750
31063
  debug?.("scanComponentEntry start", componentEntry);
30751
- let baseName = removeExtension4(path14.resolve(dirname3, componentEntry));
30752
- if (await fs12.exists(baseName)) {
30753
- const stat3 = await fs12.stat(baseName);
31064
+ let baseName = removeExtension4(path15.resolve(dirname3, componentEntry));
31065
+ if (await fs13.exists(baseName)) {
31066
+ const stat3 = await fs13.stat(baseName);
30754
31067
  if (stat3.isDirectory()) {
30755
- baseName = path14.join(baseName, "index");
31068
+ baseName = path15.join(baseName, "index");
30756
31069
  }
30757
31070
  }
30758
31071
  const jsEntry = await findJsEntry(baseName);
@@ -30826,7 +31139,7 @@ var ScanService2 = class {
30826
31139
  if (isObject5(config)) {
30827
31140
  await this.usingComponentsHandler({
30828
31141
  entry: jsonFragment,
30829
- dirname: path14.dirname(baseName),
31142
+ dirname: path15.dirname(baseName),
30830
31143
  subPackageMeta
30831
31144
  });
30832
31145
  }
@@ -30850,7 +31163,7 @@ var ScanService2 = class {
30850
31163
  compilerOptions: {
30851
31164
  target: ScriptTarget.ES5,
30852
31165
  module: ModuleKind.CommonJS,
30853
- outDir: path14.resolve(this.configService.outDir, this.workersDir),
31166
+ outDir: path15.resolve(this.configService.outDir, this.workersDir),
30854
31167
  strict: true,
30855
31168
  allowJs: true
30856
31169
  },
@@ -30864,8 +31177,8 @@ var ScanService2 = class {
30864
31177
  for (let i = 0; i < sourceFiles.length; i++) {
30865
31178
  const absPath = files.find((x3) => {
30866
31179
  const fileName = this.configService.relativeSrcRoot(this.configService.relativeCwd(x3));
30867
- const y4 = path14.relative(this.configService.outDir, this.configService.relativeCwd(sourceFiles[i].filePath));
30868
- return fileName === y4;
31180
+ const y3 = path15.relative(this.configService.outDir, this.configService.relativeCwd(sourceFiles[i].filePath));
31181
+ return fileName === y3;
30869
31182
  });
30870
31183
  if (absPath) {
30871
31184
  sourceFiles[i].absPath = absPath;
@@ -31011,8 +31324,8 @@ WatcherService2 = _ts_decorate9([
31011
31324
  // src/context/services/WxmlService.ts
31012
31325
  init_esm_shims();
31013
31326
  import { removeExtension as removeExtension5 } from "@weapp-core/shared";
31014
- import fs13 from "fs-extra";
31015
- import path15 from "pathe";
31327
+ import fs14 from "fs-extra";
31328
+ import path16 from "pathe";
31016
31329
  function _ts_decorate10(decorators, target, key, desc) {
31017
31330
  var c2 = arguments.length, r4 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d3;
31018
31331
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r4 = Reflect.decorate(decorators, target, key, desc);
@@ -31078,9 +31391,9 @@ var WxmlService2 = class {
31078
31391
  this.tokenMap.clear();
31079
31392
  }
31080
31393
  async scan(filepath) {
31081
- if (await fs13.exists(filepath)) {
31082
- const dirname3 = path15.dirname(filepath);
31083
- const wxml = await fs13.readFile(filepath, "utf8");
31394
+ if (await fs14.exists(filepath)) {
31395
+ const dirname3 = path16.dirname(filepath);
31396
+ const wxml = await fs14.readFile(filepath, "utf8");
31084
31397
  const res = scanWxml(wxml, {
31085
31398
  platform: this.configService.platform,
31086
31399
  ...this.configService.weappViteConfig?.enhance?.wxml === true ? {} : this.configService.weappViteConfig?.enhance?.wxml
@@ -31088,9 +31401,9 @@ var WxmlService2 = class {
31088
31401
  this.tokenMap.set(filepath, res);
31089
31402
  await this.addDeps(filepath, res.deps.filter((x3) => isImportTag(x3.tagName) && isTemplate(x3.value)).map((x3) => {
31090
31403
  if (x3.value.startsWith("/")) {
31091
- return path15.resolve(this.configService.absoluteSrcRoot, x3.value.slice(1));
31404
+ return path16.resolve(this.configService.absoluteSrcRoot, x3.value.slice(1));
31092
31405
  } else {
31093
- return path15.resolve(dirname3, x3.value);
31406
+ return path16.resolve(dirname3, x3.value);
31094
31407
  }
31095
31408
  }));
31096
31409
  return res;
@@ -31114,7 +31427,7 @@ WxmlService2 = _ts_decorate10([
31114
31427
  ], WxmlService2);
31115
31428
 
31116
31429
  // src/inversify.config.ts
31117
- var container = new q();
31430
+ var container = new X();
31118
31431
  container.bind(Symbols.CompilerContext).to(CompilerContext).inSingletonScope();
31119
31432
  container.bind(Symbols.JsonService).to(JsonService2).inSingletonScope();
31120
31433
  container.bind(Symbols.NpmService).to(NpmService2).inSingletonScope();
@@ -31158,4 +31471,3 @@ reflect-metadata/Reflect.js:
31158
31471
  and limitations under the License.
31159
31472
  ***************************************************************************** *)
31160
31473
  */
31161
- //# sourceMappingURL=chunk-STCFYYUS.mjs.map