create-efffrida-app 0.0.14 → 0.0.15

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 (2) hide show
  1. package/dist/bin.cjs +250 -214
  2. package/package.json +3 -3
package/dist/bin.cjs CHANGED
@@ -55,7 +55,7 @@ var __export = (target, all4) => {
55
55
  __defProp(target, name, { get: all4[name], enumerable: true });
56
56
  };
57
57
 
58
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Effect.js
58
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Effect.js
59
59
  var Effect_exports = {};
60
60
  __export(Effect_exports, {
61
61
  Do: () => Do2,
@@ -145,7 +145,7 @@ __export(Effect_exports, {
145
145
  interruptible: () => interruptible2,
146
146
  interruptibleMask: () => interruptibleMask2,
147
147
  isEffect: () => isEffect2,
148
- isFailure: () => isFailure4,
148
+ isFailure: () => isFailure5,
149
149
  isSuccess: () => isSuccess5,
150
150
  let: () => let_3,
151
151
  linkSpans: () => linkSpans2,
@@ -287,7 +287,7 @@ __export(Effect_exports, {
287
287
  zipWith: () => zipWith2
288
288
  });
289
289
 
290
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Pipeable.js
290
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Pipeable.js
291
291
  var pipeArguments = (self, args2) => {
292
292
  switch (args2.length) {
293
293
  case 0:
@@ -331,7 +331,7 @@ var Class = /* @__PURE__ */ (function() {
331
331
  return PipeableBase;
332
332
  })();
333
333
 
334
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Function.js
334
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Function.js
335
335
  var dual = function(arity, body) {
336
336
  if (typeof arity === "function") {
337
337
  return function() {
@@ -430,8 +430,19 @@ function memoize(f2) {
430
430
  return result3;
431
431
  };
432
432
  }
433
+ function memoizeIdempotent(f2) {
434
+ const cache = /* @__PURE__ */ new WeakMap();
435
+ return (a) => {
436
+ const cached3 = cache.get(a);
437
+ if (cached3 !== void 0) return cached3;
438
+ const result3 = f2(a);
439
+ cache.set(a, result3);
440
+ cache.set(result3, result3);
441
+ return result3;
442
+ };
443
+ }
433
444
 
434
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/equal.js
445
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/equal.js
435
446
  var getAllObjectKeys = (obj) => {
436
447
  const keys2 = new Set(Reflect.ownKeys(obj));
437
448
  if (obj.constructor === Object) return keys2;
@@ -454,7 +465,7 @@ var getAllObjectKeys = (obj) => {
454
465
  };
455
466
  var byReferenceInstances = /* @__PURE__ */ new WeakSet();
456
467
 
457
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Predicate.js
468
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Predicate.js
458
469
  function isString(input) {
459
470
  return typeof input === "string";
460
471
  }
@@ -500,7 +511,7 @@ function isIterable(input) {
500
511
  return hasProperty(input, Symbol.iterator) || isString(input);
501
512
  }
502
513
 
503
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Hash.js
514
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Hash.js
504
515
  var symbol = "~effect/interfaces/Hash";
505
516
  var hash = (self) => {
506
517
  switch (typeof self) {
@@ -624,7 +635,7 @@ function withVisitedTracking(obj, fn3) {
624
635
  return result3;
625
636
  }
626
637
 
627
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Equal.js
638
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Equal.js
628
639
  var symbol2 = "~effect/interfaces/Equal";
629
640
  function equals() {
630
641
  if (arguments.length === 1) {
@@ -816,7 +827,7 @@ function makeCompareSet(equivalence) {
816
827
  var compareSets = /* @__PURE__ */ makeCompareSet(compareBoth);
817
828
  var isEqual = (u2) => hasProperty(u2, symbol2);
818
829
 
819
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Redactable.js
830
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Redactable.js
820
831
  var symbolRedactable = /* @__PURE__ */ Symbol.for("~effect/Redactable");
821
832
  var isRedactable = (u2) => hasProperty(u2, symbolRedactable);
822
833
  function redact(u2) {
@@ -838,7 +849,7 @@ var emptyContext = {
838
849
  }
839
850
  };
840
851
 
841
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Formatter.js
852
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Formatter.js
842
853
  function format(input, options) {
843
854
  const space = options?.space ?? 0;
844
855
  const ancestors = /* @__PURE__ */ new WeakSet();
@@ -943,7 +954,7 @@ function formatJson(input, options) {
943
954
  }, options?.space) ?? "null";
944
955
  }
945
956
 
946
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Inspectable.js
957
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Inspectable.js
947
958
  var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
948
959
  var toJson = (input) => {
949
960
  try {
@@ -1007,7 +1018,7 @@ var Class2 = class {
1007
1018
  }
1008
1019
  };
1009
1020
 
1010
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Utils.js
1021
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Utils.js
1011
1022
  var SingleShotGen = class _SingleShotGen {
1012
1023
  called = false;
1013
1024
  self;
@@ -1067,7 +1078,7 @@ var pickInternalCall = () => {
1067
1078
  };
1068
1079
  var internalCall = /* @__PURE__ */ pickInternalCall();
1069
1080
 
1070
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/record.js
1081
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/record.js
1071
1082
  function assignProperty(self, key, value3) {
1072
1083
  if (key === "__proto__") {
1073
1084
  Object.defineProperty(self, key, {
@@ -1088,7 +1099,7 @@ function assignProperties(self, source) {
1088
1099
  }
1089
1100
  }
1090
1101
 
1091
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/core.js
1102
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/core.js
1092
1103
  var EffectTypeId = `~effect/Effect`;
1093
1104
  var ExitTypeId = `~effect/Exit`;
1094
1105
  var effectVariance = {
@@ -1431,13 +1442,13 @@ var done = (value3) => {
1431
1442
  return exitFail(Done(value3));
1432
1443
  };
1433
1444
 
1434
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Effectable.js
1445
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Effectable.js
1435
1446
  var Prototype2 = (options) => makePrimitiveProto({
1436
1447
  op: options.label,
1437
1448
  [evaluate]: options.evaluate
1438
1449
  });
1439
1450
 
1440
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Equivalence.js
1451
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Equivalence.js
1441
1452
  var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
1442
1453
  var isStrictEquivalent = (x, y) => x === y;
1443
1454
  var strictEqual = () => isStrictEquivalent;
@@ -1464,7 +1475,7 @@ function Array_(item) {
1464
1475
  });
1465
1476
  }
1466
1477
 
1467
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/doNotation.js
1478
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/doNotation.js
1468
1479
  var let_ = (map15) => dual(3, (self, name, f2) => map15(self, (a) => ({
1469
1480
  ...a,
1470
1481
  [name]: f2(a)
@@ -1477,7 +1488,7 @@ var bind = (map15, flatMap6) => dual(3, (self, name, f2) => flatMap6(self, (a) =
1477
1488
  [name]: b2
1478
1489
  }))));
1479
1490
 
1480
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/option.js
1491
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/option.js
1481
1492
  var TypeId = "~effect/data/Option";
1482
1493
  var CommonProto = {
1483
1494
  [TypeId]: {
@@ -1543,7 +1554,7 @@ var some = (value3) => {
1543
1554
  return a;
1544
1555
  };
1545
1556
 
1546
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/result.js
1557
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/result.js
1547
1558
  var TypeId2 = "~effect/data/Result";
1548
1559
  var CommonProto2 = {
1549
1560
  [TypeId2]: {
@@ -1610,7 +1621,7 @@ var succeed = (success) => {
1610
1621
  return a;
1611
1622
  };
1612
1623
 
1613
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Order.js
1624
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Order.js
1614
1625
  function make2(compare) {
1615
1626
  return (self, that) => self === that ? 0 : compare(self, that);
1616
1627
  }
@@ -1624,7 +1635,7 @@ var mapInput = /* @__PURE__ */ dual(2, (self, f2) => make2((b1, b2) => self(f2(b
1624
1635
  var Date2 = /* @__PURE__ */ mapInput(Number2, (date6) => date6.getTime());
1625
1636
  var isGreaterThan = (O2) => dual(2, (self, that) => O2(self, that) === 1);
1626
1637
 
1627
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Option.js
1638
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Option.js
1628
1639
  var none2 = () => none;
1629
1640
  var some2 = some;
1630
1641
  var isOption2 = isOption;
@@ -1644,7 +1655,7 @@ var filter = /* @__PURE__ */ dual(2, (self, predicate) => isNone2(self) ? none2(
1644
1655
  var liftPredicate = /* @__PURE__ */ dual(2, (b2, predicate) => predicate(b2) ? some2(b2) : none2());
1645
1656
  var exists = /* @__PURE__ */ dual(2, (self, refinement) => isNone2(self) ? false : refinement(self.value));
1646
1657
 
1647
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Context.js
1658
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Context.js
1648
1659
  var ServiceTypeId = "~effect/Context/Service";
1649
1660
  var Service = function() {
1650
1661
  function KeyClass() {
@@ -1844,7 +1855,7 @@ var mergeAll = (...ctxs) => {
1844
1855
  };
1845
1856
  var Reference = Service;
1846
1857
 
1847
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Duration.js
1858
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Duration.js
1848
1859
  var TypeId4 = "~effect/time/Duration";
1849
1860
  var bigint0 = /* @__PURE__ */ BigInt(0);
1850
1861
  var bigint1 = /* @__PURE__ */ BigInt(1);
@@ -2103,10 +2114,10 @@ var subtract = /* @__PURE__ */ dual(2, (self, that) => matchPair(self, that, {
2103
2114
  }));
2104
2115
  var equals2 = /* @__PURE__ */ dual(2, (self, that) => Equivalence(self, that));
2105
2116
 
2106
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/array.js
2117
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/array.js
2107
2118
  var isArrayNonEmpty = (self) => self.length > 0;
2108
2119
 
2109
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Result.js
2120
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Result.js
2110
2121
  var succeed2 = succeed;
2111
2122
  var fail2 = fail;
2112
2123
  var try_ = (evaluate2) => {
@@ -2131,10 +2142,10 @@ var match3 = /* @__PURE__ */ dual(2, (self, {
2131
2142
  onSuccess
2132
2143
  }) => isFailure2(self) ? onFailure(self.failure) : onSuccess(self.success));
2133
2144
 
2134
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Tuple.js
2145
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Tuple.js
2135
2146
  var makeEquivalence = Tuple;
2136
2147
 
2137
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Iterable.js
2148
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Iterable.js
2138
2149
  var findFirst = /* @__PURE__ */ dual(2, (self, f2) => {
2139
2150
  let i = 0;
2140
2151
  for (const a of self) {
@@ -2177,7 +2188,7 @@ var filter2 = /* @__PURE__ */ dual(2, (self, predicate) => ({
2177
2188
  }
2178
2189
  }));
2179
2190
 
2180
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Record.js
2191
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Record.js
2181
2192
  var has = /* @__PURE__ */ dual(2, (self, key) => Object.hasOwn(self, key));
2182
2193
  var map2 = /* @__PURE__ */ dual(2, (self, f2) => {
2183
2194
  const out = {
@@ -2202,7 +2213,7 @@ var makeEquivalence2 = (equivalence) => {
2202
2213
  return (self, that) => is4(self, that) && is4(that, self);
2203
2214
  };
2204
2215
 
2205
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Array.js
2216
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Array.js
2206
2217
  var Array2 = globalThis.Array;
2207
2218
  var fromIterable = (collection) => Array2.isArray(collection) ? collection : Array2.from(collection);
2208
2219
  var ensure = (self) => Array2.isArray(self) ? self : [self];
@@ -2299,7 +2310,7 @@ var dedupe = (self) => {
2299
2310
  return out;
2300
2311
  };
2301
2312
 
2302
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Filter.js
2313
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Filter.js
2303
2314
  var composePassthrough = /* @__PURE__ */ dual(2, (left, right) => (input) => {
2304
2315
  const leftOut = left(input);
2305
2316
  if (isFailure2(leftOut)) return fail2(input);
@@ -2308,7 +2319,7 @@ var composePassthrough = /* @__PURE__ */ dual(2, (left, right) => (input) => {
2308
2319
  return rightOut;
2309
2320
  });
2310
2321
 
2311
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Scheduler.js
2322
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Scheduler.js
2312
2323
  var Scheduler = /* @__PURE__ */ Reference("effect/Scheduler", {
2313
2324
  fiberCached: true,
2314
2325
  defaultValue: () => new MixedScheduler()
@@ -2445,7 +2456,7 @@ var PreventSchedulerYield = /* @__PURE__ */ Reference("effect/Scheduler/PreventS
2445
2456
  defaultValue: () => false
2446
2457
  });
2447
2458
 
2448
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Tracer.js
2459
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Tracer.js
2449
2460
  var ParentSpanKey = "effect/Tracer/ParentSpan";
2450
2461
  var ParentSpan = class extends (/* @__PURE__ */ Service()(ParentSpanKey, {
2451
2462
  fiberCached: true
@@ -2528,10 +2539,10 @@ var randomHexString = /* @__PURE__ */ (function() {
2528
2539
  };
2529
2540
  })();
2530
2541
 
2531
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/metric.js
2542
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/metric.js
2532
2543
  var FiberRuntimeMetricsKey = "effect/observability/Metric/FiberRuntimeMetricsKey";
2533
2544
 
2534
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/references.js
2545
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/references.js
2535
2546
  var CurrentErrorReporters = /* @__PURE__ */ Reference("effect/ErrorReporter/CurrentErrorReporters", {
2536
2547
  defaultValue: () => /* @__PURE__ */ new Set()
2537
2548
  });
@@ -2566,7 +2577,7 @@ var CurrentLogSpans = /* @__PURE__ */ Reference("effect/References/CurrentLogSpa
2566
2577
  defaultValue: () => []
2567
2578
  });
2568
2579
 
2569
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/stackTraceLimit.js
2580
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/stackTraceLimit.js
2570
2581
  var isStackTraceLimitWritable = () => {
2571
2582
  const desc = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit");
2572
2583
  if (desc === void 0) {
@@ -2582,7 +2593,7 @@ var setStackTraceLimit = (value3) => {
2582
2593
  }
2583
2594
  };
2584
2595
 
2585
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/tracer.js
2596
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/tracer.js
2586
2597
  var addSpanStackTrace = (options) => {
2587
2598
  if (options?.captureStackTrace === false) {
2588
2599
  return options;
@@ -2613,7 +2624,7 @@ var makeStackCleaner = (line) => (stack) => {
2613
2624
  };
2614
2625
  var spanCleaner = /* @__PURE__ */ makeStackCleaner(3);
2615
2626
 
2616
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/effect.js
2627
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/effect.js
2617
2628
  var Interrupt = class extends ReasonBase {
2618
2629
  fiberId;
2619
2630
  constructor(fiberId3, annotations = constEmptyAnnotations) {
@@ -3499,6 +3510,7 @@ var catchEager = /* @__PURE__ */ dual(2, (self, f2) => {
3499
3510
  });
3500
3511
  var exitInterrupt = (fiberId3) => exitFailCause(causeInterrupt(fiberId3));
3501
3512
  var exitIsSuccess = (self) => self._tag === "Success";
3513
+ var exitIsFailure = (self) => self._tag === "Failure";
3502
3514
  var exitFilterCause = (self) => self._tag === "Failure" ? succeed2(self.cause) : fail2(self);
3503
3515
  var exitVoid = /* @__PURE__ */ exitSucceed(void 0);
3504
3516
  var exitMap = /* @__PURE__ */ dual(2, (self, f2) => self._tag === "Success" ? exitSucceed(f2(self.value)) : self);
@@ -4722,10 +4734,8 @@ var useSpan = (name, ...args2) => {
4722
4734
  return withFiber((fiber3) => {
4723
4735
  const span = makeSpanUnsafe(fiber3, name, options);
4724
4736
  const clock = fiber3.getRef(ClockRef);
4725
- return onExit(internalCall(() => evaluate2(span)), (exit3) => sync(() => {
4726
- if (span.status._tag === "Ended") return;
4727
- span.end(clock.currentTimeNanosUnsafe(), exit3);
4728
- }));
4737
+ const timingEnabled = fiber3.getRef(TracerTimingEnabled);
4738
+ return onExit(internalCall(() => evaluate2(span)), (exit3) => endSpan(span, exit3, clock, timingEnabled));
4729
4739
  });
4730
4740
  };
4731
4741
  var provideParentSpan = /* @__PURE__ */ provideService(ParentSpan);
@@ -5073,14 +5083,15 @@ var reportCauseUnsafe = (fiber3, cause, defectsOnly) => {
5073
5083
  reporters.forEach((reporter) => reporter.report(opts));
5074
5084
  };
5075
5085
 
5076
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Exit.js
5086
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Exit.js
5077
5087
  var succeed4 = exitSucceed;
5078
5088
  var failCause2 = exitFailCause;
5079
5089
  var fail4 = exitFail;
5080
5090
  var void_2 = exitVoid;
5081
5091
  var isSuccess4 = exitIsSuccess;
5092
+ var isFailure4 = exitIsFailure;
5082
5093
 
5083
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Deferred.js
5094
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Deferred.js
5084
5095
  var TypeId5 = "~effect/Deferred";
5085
5096
  var DeferredProto = {
5086
5097
  [TypeId5]: {
@@ -5122,12 +5133,12 @@ var doneUnsafe = (self, effect2) => {
5122
5133
  return true;
5123
5134
  };
5124
5135
 
5125
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/References.js
5136
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/References.js
5126
5137
  var CurrentLogAnnotations2 = CurrentLogAnnotations;
5127
5138
  var CurrentLogSpans2 = CurrentLogSpans;
5128
5139
  var MinimumLogLevel2 = MinimumLogLevel;
5129
5140
 
5130
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Scope.js
5141
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Scope.js
5131
5142
  var Scope = scopeTag;
5132
5143
  var makeUnsafe3 = scopeMakeUnsafe;
5133
5144
  var provide = provideScope;
@@ -5136,7 +5147,7 @@ var addFinalizer2 = scopeAddFinalizer;
5136
5147
  var forkUnsafe2 = scopeForkUnsafe;
5137
5148
  var close = scopeClose;
5138
5149
 
5139
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Layer.js
5150
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Layer.js
5140
5151
  var TypeId6 = "~effect/Layer";
5141
5152
  var MemoMapTypeId = "~effect/Layer/MemoMap";
5142
5153
  var memoMapReuse = (entry, scope3) => {
@@ -5254,7 +5265,7 @@ var CurrentMetadata = /* @__PURE__ */ Reference("effect/ExecutionPlan/CurrentMet
5254
5265
  })
5255
5266
  });
5256
5267
 
5257
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Cause.js
5268
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Cause.js
5258
5269
  var isFailReason2 = isFailReason;
5259
5270
  var fail5 = causeFail;
5260
5271
  var hasInterruptsOnly2 = hasInterruptsOnly;
@@ -5267,7 +5278,7 @@ var Done2 = Done;
5267
5278
  var done3 = done;
5268
5279
  var UnknownError2 = UnknownError;
5269
5280
 
5270
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Data.js
5281
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Data.js
5271
5282
  var taggedEnum = () => new Proxy({}, {
5272
5283
  get(_target, tag2, _receiver) {
5273
5284
  if (tag2 === "$is") {
@@ -5300,7 +5311,7 @@ var round = /* @__PURE__ */ dual(2, (self, precision) => {
5300
5311
  return Math.round(self * factor) / factor;
5301
5312
  });
5302
5313
 
5303
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Pull.js
5314
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Pull.js
5304
5315
  var catchDone = /* @__PURE__ */ dual(2, (effect2, f2) => catchCauseFilter(effect2, filterDoneLeftover, (l) => f2(l)));
5305
5316
  var isDoneCause = (cause) => cause.reasons.some(isDoneFailure);
5306
5317
  var isDoneFailure = (failure) => failure._tag === "Fail" && isDone3(failure.error);
@@ -5318,7 +5329,7 @@ var matchEffect2 = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffect(s
5318
5329
  }
5319
5330
  }));
5320
5331
 
5321
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Schedule.js
5332
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Schedule.js
5322
5333
  var TypeId8 = "~effect/Schedule";
5323
5334
  var CurrentMetadata2 = /* @__PURE__ */ Reference("effect/Schedule/CurrentMetadata", {
5324
5335
  defaultValue: /* @__PURE__ */ constant({
@@ -5410,11 +5421,11 @@ var while_ = /* @__PURE__ */ dual(2, (self, predicate) => fromStep(map4(toStep(s
5410
5421
  })));
5411
5422
  var forever2 = /* @__PURE__ */ spaced(zero);
5412
5423
 
5413
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/layer.js
5424
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/layer.js
5414
5425
  var provideLayer = (self, layer16, options) => scopedWith((scope3) => flatMap2(options?.local ? buildWithMemoMap(layer16, makeMemoMapUnsafe(), scope3) : buildWithScope(layer16, scope3), (context3) => provideContext(self, context3)));
5415
5426
  var provide3 = /* @__PURE__ */ dual((args2) => isEffect(args2[0]), (self, source, options) => isContext(source) ? provideContext(self, source) : provideLayer(self, Array.isArray(source) ? mergeAll2(...source) : source, options));
5416
5427
 
5417
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/schedule.js
5428
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/schedule.js
5418
5429
  var repeatOrElse = /* @__PURE__ */ dual(3, (self, schedule3, orElse4) => flatMap2(toStepWithMetadata(schedule3), (step) => {
5419
5430
  let meta = CurrentMetadata2.defaultValue();
5420
5431
  return catch_(forever(tap(flatMap2(suspend(() => provideService(self, CurrentMetadata2, meta)), step), (meta_) => sync(() => {
@@ -5485,10 +5496,11 @@ var buildFromOptions = (options) => {
5485
5496
  return schedule3;
5486
5497
  };
5487
5498
 
5488
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/executionPlan.js
5499
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/executionPlan.js
5489
5500
  var makeEventEmitter = (onEvent, currentMetadata) => {
5490
5501
  let lastStepIndex = -1;
5491
5502
  let stepAttempt = 0;
5503
+ const emit = (event) => ignoreCause(onEvent(event));
5492
5504
  return {
5493
5505
  begin: clockWith((clock) => suspend(() => {
5494
5506
  const meta = currentMetadata();
@@ -5503,7 +5515,7 @@ var makeEventEmitter = (onEvent, currentMetadata) => {
5503
5515
  stepIndex: meta.stepIndex,
5504
5516
  startNanos: clock.monotonicTimeNanosUnsafe()
5505
5517
  };
5506
- return as(onEvent({
5518
+ return as(emit({
5507
5519
  _tag: "AttemptStart",
5508
5520
  attempt: state.attempt,
5509
5521
  stepAttempt: state.stepAttempt,
@@ -5512,7 +5524,7 @@ var makeEventEmitter = (onEvent, currentMetadata) => {
5512
5524
  })),
5513
5525
  end: (state, exit3) => clockWith((clock) => {
5514
5526
  const duration = nanos(clock.monotonicTimeNanosUnsafe() - state.startNanos);
5515
- return onEvent(exit3._tag === "Success" ? {
5527
+ return emit(exit3._tag === "Success" ? {
5516
5528
  _tag: "AttemptSuccess",
5517
5529
  attempt: state.attempt,
5518
5530
  stepAttempt: state.stepAttempt,
@@ -5590,7 +5602,7 @@ var scheduleFromStep = (step, first) => {
5590
5602
  var scheduleOnce = /* @__PURE__ */ recurs(1);
5591
5603
  var makeEntry = (options) => options;
5592
5604
 
5593
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/request.js
5605
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/request.js
5594
5606
  var request = /* @__PURE__ */ dual(2, (self, resolver) => {
5595
5607
  const withResolver = (resolver2) => callback((resume) => {
5596
5608
  const entry = addEntry(resolver2, self, resume, getCurrentFiber());
@@ -5701,7 +5713,7 @@ function runBatch(batch) {
5701
5713
  }
5702
5714
  var update = /* @__PURE__ */ dual(2, (self, input) => contextWith((services) => sync(() => self.updateUnsafe(input, services))));
5703
5715
 
5704
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Effect.js
5716
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Effect.js
5705
5717
  var TypeId11 = EffectTypeId;
5706
5718
  var isEffect2 = isEffect;
5707
5719
  var all2 = all;
@@ -5812,7 +5824,7 @@ var matchCauseEager2 = matchCauseEager;
5812
5824
  var matchCauseEffectEager2 = matchCauseEffectEager;
5813
5825
  var matchCauseEffect2 = matchCauseEffect;
5814
5826
  var matchEffect3 = matchEffect;
5815
- var isFailure4 = isFailure3;
5827
+ var isFailure5 = isFailure3;
5816
5828
  var isSuccess5 = isSuccess3;
5817
5829
  var context2 = context;
5818
5830
  var contextWith2 = contextWith;
@@ -6056,7 +6068,7 @@ var flatMapEager2 = flatMapEager;
6056
6068
  var catchEager2 = catchEager;
6057
6069
  var fnUntracedEager2 = fnUntracedEager;
6058
6070
 
6059
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/FileSystem.js
6071
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/FileSystem.js
6060
6072
  var FileSystem_exports = {};
6061
6073
  __export(FileSystem_exports, {
6062
6074
  FileSystem: () => FileSystem,
@@ -6074,7 +6086,7 @@ __export(FileSystem_exports, {
6074
6086
  makeNoop: () => makeNoop
6075
6087
  });
6076
6088
 
6077
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/PlatformError.js
6089
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/PlatformError.js
6078
6090
  var TypeId12 = "~effect/platform/PlatformError";
6079
6091
  var BadArgument = class extends (/* @__PURE__ */ TaggedError2("BadArgument")) {
6080
6092
  /**
@@ -6134,14 +6146,14 @@ var PlatformError = class extends (/* @__PURE__ */ TaggedError2("PlatformError")
6134
6146
  var systemError = (options) => new PlatformError(new SystemError(options));
6135
6147
  var badArgument = (options) => new PlatformError(new BadArgument(options));
6136
6148
 
6137
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Fiber.js
6149
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Fiber.js
6138
6150
  var interrupt3 = fiberInterrupt;
6139
6151
  var runIn = fiberRunIn;
6140
6152
 
6141
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Latch.js
6153
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Latch.js
6142
6154
  var makeUnsafe4 = makeLatchUnsafe;
6143
6155
 
6144
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/MutableRef.js
6156
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/MutableRef.js
6145
6157
  var TypeId13 = "~effect/MutableRef";
6146
6158
  var MutableRefProto = {
6147
6159
  [TypeId13]: TypeId13,
@@ -6159,7 +6171,7 @@ var make6 = (value3) => {
6159
6171
  return ref;
6160
6172
  };
6161
6173
 
6162
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/MutableList.js
6174
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/MutableList.js
6163
6175
  var Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
6164
6176
  var make7 = () => ({
6165
6177
  head: void 0,
@@ -6230,7 +6242,7 @@ var take = (self) => {
6230
6242
  return message;
6231
6243
  };
6232
6244
 
6233
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Queue.js
6245
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Queue.js
6234
6246
  var TypeId14 = "~effect/Queue";
6235
6247
  var EnqueueTypeId = "~effect/Queue/Enqueue";
6236
6248
  var DequeueTypeId = "~effect/Queue/Dequeue";
@@ -6504,7 +6516,7 @@ var finalize = (self, exit3) => {
6504
6516
  openState.awaiters.clear();
6505
6517
  };
6506
6518
 
6507
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Semaphore.js
6519
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Semaphore.js
6508
6520
  var makeUnsafe5 = (permits) => new SemaphoreImpl(permits);
6509
6521
  var waitForPermits = (self, n, effect2) => callback((resume) => {
6510
6522
  if (self.free >= n) return resume(effect2);
@@ -6600,7 +6612,7 @@ var SemaphoreImpl = class {
6600
6612
  }
6601
6613
  };
6602
6614
 
6603
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Channel.js
6615
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Channel.js
6604
6616
  var TypeId15 = "~effect/Channel";
6605
6617
  var isChannel = (u2) => hasProperty(u2, TypeId15);
6606
6618
  var ChannelProto = {
@@ -6805,7 +6817,7 @@ var runFold = /* @__PURE__ */ dual(3, (self, initial, f2) => suspend2(() => {
6805
6817
  }));
6806
6818
  var toPullScoped = (self, scope3) => toTransform(self)(done3(), scope3);
6807
6819
 
6808
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/stream.js
6820
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/stream.js
6809
6821
  var TypeId16 = "~effect/Stream";
6810
6822
  var streamVariance = {
6811
6823
  _R: identity,
@@ -6824,7 +6836,7 @@ var fromChannel = (channel) => {
6824
6836
  return self;
6825
6837
  };
6826
6838
 
6827
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Sink.js
6839
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Sink.js
6828
6840
  var TypeId17 = "~effect/Sink";
6829
6841
  var endVoid = /* @__PURE__ */ succeed6([void 0]);
6830
6842
  var sinkVariance = {
@@ -6863,7 +6875,7 @@ var forEachArray = (f2) => fromTransform2((upstream) => upstream.pipe(flatMap3(f
6863
6875
  }), catchDone(() => endVoid)));
6864
6876
  var unwrap2 = (effect2) => fromChannel2(unwrap(map6(effect2, toChannel)));
6865
6877
 
6866
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/rcRef.js
6878
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/rcRef.js
6867
6879
  var TypeId18 = "~effect/RcRef";
6868
6880
  var stateEmpty = {
6869
6881
  _tag: "Empty"
@@ -6903,7 +6915,7 @@ var make9 = (options) => withFiber2((fiber3) => {
6903
6915
  return close3;
6904
6916
  }), ref);
6905
6917
  });
6906
- var getState = (self) => uninterruptibleMask2((restore) => {
6918
+ var getState = (self) => uninterruptibleMask2(function loop(restore) {
6907
6919
  switch (self.state._tag) {
6908
6920
  case "Closed": {
6909
6921
  return interrupt2;
@@ -6914,18 +6926,23 @@ var getState = (self) => uninterruptibleMask2((restore) => {
6914
6926
  }
6915
6927
  case "Empty": {
6916
6928
  const scope3 = makeUnsafe3();
6917
- return self.semaphore.withPermits(1)(restore(provideContext2(self.acquire, add(self.context, Scope, scope3))).pipe(map6((value3) => {
6918
- const state = {
6919
- _tag: "Acquired",
6920
- value: value3,
6921
- scope: scope3,
6922
- fiber: void 0,
6923
- refCount: 1,
6924
- invalidated: false
6925
- };
6926
- self.state = state;
6927
- return state;
6928
- })));
6929
+ return self.semaphore.withPermit(suspend2(() => {
6930
+ if (self.state._tag !== "Empty") {
6931
+ return loop(restore);
6932
+ }
6933
+ return restore(provideContext2(self.acquire, add(self.context, Scope, scope3))).pipe(map6((value3) => {
6934
+ const state = {
6935
+ _tag: "Acquired",
6936
+ value: value3,
6937
+ scope: scope3,
6938
+ fiber: void 0,
6939
+ refCount: 1,
6940
+ invalidated: false
6941
+ };
6942
+ self.state = state;
6943
+ return state;
6944
+ }), onExit2((exit3) => isFailure4(exit3) ? close(scope3, exit3) : void_3));
6945
+ }));
6929
6946
  }
6930
6947
  }
6931
6948
  });
@@ -6961,11 +6978,11 @@ var get2 = /* @__PURE__ */ fnUntraced2(function* (self_) {
6961
6978
  return state.value;
6962
6979
  });
6963
6980
 
6964
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/RcRef.js
6981
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/RcRef.js
6965
6982
  var make10 = make9;
6966
6983
  var get3 = get2;
6967
6984
 
6968
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Stream.js
6985
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Stream.js
6969
6986
  var TypeId19 = "~effect/Stream";
6970
6987
  var isStream = (u2) => hasProperty(u2, TypeId19);
6971
6988
  var fromChannel3 = fromChannel;
@@ -7056,7 +7073,7 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args2) => isStream(args2[0]), (
7056
7073
  });
7057
7074
  var toReadableStreamEffect = /* @__PURE__ */ dual((args2) => isStream(args2[0]), (self, options) => map6(context2(), (context3) => toReadableStreamWith(self, context3, options)));
7058
7075
 
7059
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/FileSystem.js
7076
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/FileSystem.js
7060
7077
  var TypeId20 = "~effect/platform/FileSystem";
7061
7078
  var Size = (bytes) => typeof bytes === "bigint" ? bytes : BigInt(bytes);
7062
7079
  var KiB = (n) => Size(n * 1024);
@@ -7225,7 +7242,7 @@ var isFile = (u2) => hasProperty(u2, FileTypeId);
7225
7242
  var WatchBackend = class extends (/* @__PURE__ */ Service()("effect/platform/FileSystem/WatchBackend")) {
7226
7243
  };
7227
7244
 
7228
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Logger.js
7245
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Logger.js
7229
7246
  var CurrentLoggers2 = CurrentLoggers;
7230
7247
  var make12 = loggerMake;
7231
7248
  var layer = (loggers, options) => effect(CurrentLoggers2, withFiber(fnUntraced(function* (fiber3) {
@@ -7236,7 +7253,7 @@ var layer = (loggers, options) => effect(CurrentLoggers2, withFiber(fnUntraced(f
7236
7253
  return currentLoggers;
7237
7254
  })));
7238
7255
 
7239
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/schema/annotations.js
7256
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/schema/annotations.js
7240
7257
  function resolve(ast) {
7241
7258
  return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
7242
7259
  }
@@ -7253,7 +7270,7 @@ var getExpected = /* @__PURE__ */ memoize((ast) => {
7253
7270
  return ast.getExpected(getExpected);
7254
7271
  });
7255
7272
 
7256
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/schema/parser.js
7273
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/schema/parser.js
7257
7274
  var missing = /* @__PURE__ */ Symbol();
7258
7275
  var succeed8 = succeed4;
7259
7276
  var missingExit = /* @__PURE__ */ succeed8(missing);
@@ -7261,7 +7278,7 @@ var sameExit = /* @__PURE__ */ succeed8(missing);
7261
7278
  var toOption = (value3) => value3 === missing ? none2() : some2(value3);
7262
7279
  var fromOptionExit = (option4) => option4._tag === "None" ? missingExit : succeed8(option4.value);
7263
7280
 
7264
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/SchemaIssue.js
7281
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/SchemaIssue.js
7265
7282
  var TypeId21 = "~effect/SchemaIssue/Issue";
7266
7283
  function isIssue(u2) {
7267
7284
  return hasProperty(u2, TypeId21) && u2[TypeId21] === TypeId21;
@@ -7576,7 +7593,7 @@ function getMessageAnnotation(annotations, type = "message") {
7576
7593
  if (typeof message === "string") return message;
7577
7594
  }
7578
7595
 
7579
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/schema/cause.js
7596
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/schema/cause.js
7580
7597
  function getSchemaIssue(cause) {
7581
7598
  let issue;
7582
7599
  for (const reason of cause.reasons) {
@@ -7597,7 +7614,7 @@ function getSchemaIssueOrThrow(cause, message) {
7597
7614
  return issue;
7598
7615
  }
7599
7616
 
7600
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/SchemaGetter.js
7617
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/SchemaGetter.js
7601
7618
  var Getter = class _Getter extends Class {
7602
7619
  run;
7603
7620
  constructor(run6) {
@@ -7646,7 +7663,7 @@ function Date3() {
7646
7663
  return transform((u2) => new globalThis.Date(u2));
7647
7664
  }
7648
7665
 
7649
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/SchemaTransformation.js
7666
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/SchemaTransformation.js
7650
7667
  var TypeId22 = "~effect/SchemaTransformation/Transformation";
7651
7668
  var Transformation = class _Transformation {
7652
7669
  [TypeId22] = TypeId22;
@@ -7735,7 +7752,7 @@ var defectFromJson = (options) => transform2({
7735
7752
  encode: makeEncodeDefect(options)
7736
7753
  });
7737
7754
 
7738
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/SchemaAST.js
7755
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/SchemaAST.js
7739
7756
  function makeGuard(tag2) {
7740
7757
  return (ast) => ast._tag === tag2;
7741
7758
  }
@@ -7745,7 +7762,6 @@ var isLiteral = /* @__PURE__ */ makeGuard("Literal");
7745
7762
  var isUniqueSymbol = /* @__PURE__ */ makeGuard("UniqueSymbol");
7746
7763
  var isArrays = /* @__PURE__ */ makeGuard("Arrays");
7747
7764
  var isObjects = /* @__PURE__ */ makeGuard("Objects");
7748
- var isUnion = /* @__PURE__ */ makeGuard("Union");
7749
7765
  var isSuspend = /* @__PURE__ */ makeGuard("Suspend");
7750
7766
  var Link = class {
7751
7767
  to;
@@ -8437,7 +8453,7 @@ function getAST(self) {
8437
8453
  function union2(members, mode, checks) {
8438
8454
  return new Union(members.map(getAST), mode, void 0, checks);
8439
8455
  }
8440
- var toCandidate = /* @__PURE__ */ memoize((ast) => {
8456
+ var toCandidate = /* @__PURE__ */ memoizeIdempotent((ast) => {
8441
8457
  while (true) {
8442
8458
  if (isSuspend(ast)) return unknown;
8443
8459
  const encoding = ast.encoding;
@@ -8866,6 +8882,10 @@ function modifyOwnPropertyDescriptors(ast, f2) {
8866
8882
  f2(d);
8867
8883
  return Object.create(Object.getPrototypeOf(ast), d);
8868
8884
  }
8885
+ var contextOwners = /* @__PURE__ */ new WeakMap();
8886
+ function getContextOwner(ast) {
8887
+ return contextOwners.get(ast) ?? ast;
8888
+ }
8869
8889
  function replaceEncoding(ast, encoding) {
8870
8890
  if (ast.encoding === encoding) {
8871
8891
  return ast;
@@ -8878,9 +8898,15 @@ function replaceContext(ast, context3) {
8878
8898
  if (ast.context === context3) {
8879
8899
  return ast;
8880
8900
  }
8881
- return modifyOwnPropertyDescriptors(ast, (d) => {
8901
+ const owner = getContextOwner(ast);
8902
+ if (owner.context === context3) {
8903
+ return owner;
8904
+ }
8905
+ const out = modifyOwnPropertyDescriptors(ast, (d) => {
8882
8906
  d.context.value = context3;
8883
8907
  });
8908
+ contextOwners.set(out, owner);
8909
+ return out;
8884
8910
  }
8885
8911
  function annotate(ast, annotations) {
8886
8912
  if (ast.checks) {
@@ -8924,11 +8950,15 @@ function applyToLastLink(f2) {
8924
8950
  function replaceContextLastLink(ast, context3) {
8925
8951
  return applyToLastLink((ast2) => replaceContext(ast2, context3))(ast);
8926
8952
  }
8927
- function applyToSelfOrLastLinkEncoding(f2) {
8953
+ function applyToSelfOrLastLinkEncodingIdempotent(f2, options) {
8928
8954
  function out(ast) {
8929
- return ast.encoding ? replaceEncoding(ast, updateLastLink(ast.encoding, out)) : f2(ast);
8955
+ if (ast.encoding) {
8956
+ const last = ast.encoding[ast.encoding.length - 1];
8957
+ return options?.stopAt?.(last) ? ast : replaceEncoding(ast, updateLastLink(ast.encoding, out));
8958
+ }
8959
+ return f2(ast);
8930
8960
  }
8931
- return memoize(out);
8961
+ return memoizeIdempotent(out);
8932
8962
  }
8933
8963
  function appendTransformation(from, transformation, to2) {
8934
8964
  const link4 = new Link(from, transformation);
@@ -8954,11 +8984,12 @@ function annotateKey(ast, annotations) {
8954
8984
  }) : new Context(false, false, void 0, annotations);
8955
8985
  return replaceContext(ast, context3);
8956
8986
  }
8957
- var optionalKeyLastLink = /* @__PURE__ */ applyToLastLink(optionalKey);
8958
- function optionalKey(ast) {
8987
+ var optionalKey = /* @__PURE__ */ memoizeIdempotent((ast) => {
8959
8988
  const context3 = ast.context ? ast.context.isOptional === false ? new Context(true, ast.context.isMutable, ast.context.constructorDefault, ast.context.annotations) : ast.context : new Context(true, false);
8960
8989
  return optionalKeyLastLink(replaceContext(ast, context3));
8961
- }
8990
+ });
8991
+ var optionalKeyLastLink = /* @__PURE__ */ applyToLastLink(optionalKey);
8992
+ var optional = /* @__PURE__ */ memoize((ast) => optionalKey(new Union([ast, undefined_3], "anyOf")));
8962
8993
  function withConstructorDefault(ast, defaultValue) {
8963
8994
  const transformation = new Transformation(withDefault(defaultValue), passthrough2());
8964
8995
  const constructorDefault = new Link(unknown, transformation);
@@ -8982,7 +9013,7 @@ function extractStructuralChecks(checks) {
8982
9013
  const out = checks.flatMap(extract);
8983
9014
  return isArrayNonEmpty2(out) ? out : void 0;
8984
9015
  }
8985
- var toType = /* @__PURE__ */ memoize((ast) => {
9016
+ var toType = /* @__PURE__ */ memoizeIdempotent((ast) => {
8986
9017
  if (ast.encoding) {
8987
9018
  return toType(replaceEncoding(ast, void 0));
8988
9019
  }
@@ -8998,7 +9029,7 @@ var toType = /* @__PURE__ */ memoize((ast) => {
8998
9029
  }
8999
9030
  return type;
9000
9031
  });
9001
- var toEncoded = /* @__PURE__ */ memoize((ast) => {
9032
+ var toEncoded = /* @__PURE__ */ memoizeIdempotent((ast) => {
9002
9033
  return toType(flip3(ast));
9003
9034
  });
9004
9035
  function flipEncoding(ast, encoding) {
@@ -9048,7 +9079,7 @@ function fromRefinement(ast, refinement) {
9048
9079
  return fail6(new InvalidType(ast, input, options));
9049
9080
  };
9050
9081
  }
9051
- var parameterFromPropertyKey = /* @__PURE__ */ applyToSelfOrLastLinkEncoding((ast) => {
9082
+ var parameterFromPropertyKey = /* @__PURE__ */ applyToSelfOrLastLinkEncodingIdempotent((ast) => {
9052
9083
  switch (ast._tag) {
9053
9084
  default:
9054
9085
  return ast;
@@ -9058,7 +9089,7 @@ var parameterFromPropertyKey = /* @__PURE__ */ applyToSelfOrLastLinkEncoding((as
9058
9089
  return ast.recur(parameterFromPropertyKey);
9059
9090
  }
9060
9091
  });
9061
- var parameterFromString = /* @__PURE__ */ applyToSelfOrLastLinkEncoding((ast) => {
9092
+ var parameterFromString = /* @__PURE__ */ applyToSelfOrLastLinkEncodingIdempotent((ast) => {
9062
9093
  switch (ast._tag) {
9063
9094
  default:
9064
9095
  return ast;
@@ -9190,7 +9221,7 @@ var StringTree = /* @__PURE__ */ new Declaration([], () => (input, ast, options)
9190
9221
  });
9191
9222
  var unknownToStringTree = /* @__PURE__ */ new Link(StringTree, /* @__PURE__ */ passthrough3());
9192
9223
 
9193
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/SchemaParser.js
9224
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/SchemaParser.js
9194
9225
  function makeEffect(schema) {
9195
9226
  const parser = runWithCompiler(constructorCompiler, toType(schema.ast));
9196
9227
  return (input, options) => {
@@ -9282,8 +9313,8 @@ function compileConstructorDefault(ast) {
9282
9313
  function applyTransformation(result3, current, transformation, options) {
9283
9314
  let transformed;
9284
9315
  if (effectIsExit(result3) && result3._tag === "Success") {
9285
- const optional5 = toOption(result3 === sameExit ? current : result3[args]);
9286
- transformed = transformation._tag === "Transformation" ? transformation.decode.run(optional5, options) : transformation.decode(succeed8(optional5), options);
9316
+ const optional6 = toOption(result3 === sameExit ? current : result3[args]);
9317
+ transformed = transformation._tag === "Transformation" ? transformation.decode.run(optional6, options) : transformation.decode(succeed8(optional6), options);
9287
9318
  } else if (transformation._tag === "Transformation") {
9288
9319
  transformed = flatMapEager2(result3, (value3) => transformation.decode.run(toOption(value3), options));
9289
9320
  } else {
@@ -9401,7 +9432,7 @@ function makeParser(ast, compile, compileConstructorDefault2, constructorDefault
9401
9432
  };
9402
9433
  }
9403
9434
 
9404
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/schema/schema.js
9435
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/schema/schema.js
9405
9436
  var TypeId24 = "~effect/Schema/Schema";
9406
9437
  var SchemaProto = {
9407
9438
  [TypeId24]: TypeId24,
@@ -9432,10 +9463,10 @@ function make15(ast, options) {
9432
9463
  return self;
9433
9464
  }
9434
9465
 
9435
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Struct.js
9466
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Struct.js
9436
9467
  var lambda = (f2) => f2;
9437
9468
 
9438
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/internal/redacted.js
9469
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/redacted.js
9439
9470
  var redactedRegistry = /* @__PURE__ */ new WeakMap();
9440
9471
  var value = (self) => {
9441
9472
  if (redactedRegistry.has(self)) {
@@ -9445,7 +9476,7 @@ var value = (self) => {
9445
9476
  }
9446
9477
  };
9447
9478
 
9448
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Redacted.js
9479
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Redacted.js
9449
9480
  var TypeId25 = "~effect/data/Redacted";
9450
9481
  var isRedacted = (u2) => hasProperty(u2, TypeId25);
9451
9482
  var make16 = (value3, options) => {
@@ -9477,7 +9508,7 @@ var Proto3 = {
9477
9508
  };
9478
9509
  var value2 = value;
9479
9510
 
9480
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/SchemaError.js
9511
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/SchemaError.js
9481
9512
  var TypeId26 = "~effect/SchemaError/SchemaError";
9482
9513
  var SchemaError = class extends (/* @__PURE__ */ TaggedError2("SchemaError")) {
9483
9514
  [TypeId26] = TypeId26;
@@ -9494,7 +9525,7 @@ var SchemaError = class extends (/* @__PURE__ */ TaggedError2("SchemaError")) {
9494
9525
  }
9495
9526
  };
9496
9527
 
9497
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Schema.js
9528
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Schema.js
9498
9529
  var TypeId27 = TypeId24;
9499
9530
  function declareConstructor() {
9500
9531
  return (typeParameters, run6, annotations) => {
@@ -9518,10 +9549,12 @@ var make17 = make15;
9518
9549
  function isSchema(u2) {
9519
9550
  return hasProperty(u2, TypeId27) && u2[TypeId27] === TypeId27;
9520
9551
  }
9521
- var optionalKey2 = /* @__PURE__ */ lambda((schema) => make17(optionalKey(schema.ast), {
9522
- schema
9523
- }));
9524
- var optional = /* @__PURE__ */ lambda((self) => optionalKey2(UndefinedOr(self)));
9552
+ var optional2 = /* @__PURE__ */ lambda((self) => {
9553
+ const schema = UndefinedOr(self);
9554
+ return make17(optional(self.ast), {
9555
+ schema
9556
+ });
9557
+ });
9525
9558
  function Literal2(literal) {
9526
9559
  const out = make17(new Literal(literal), {
9527
9560
  literal,
@@ -9938,7 +9971,7 @@ function makeReorder(getPriority) {
9938
9971
  };
9939
9972
  }
9940
9973
  function toCodecStringTree(schema) {
9941
- return make17(serializerStringTree(schema.ast), {
9974
+ return make17(toCodecStringTreeAST(schema.ast), {
9942
9975
  schema
9943
9976
  });
9944
9977
  }
@@ -9955,7 +9988,7 @@ var toStringTreeReorder = /* @__PURE__ */ makeReorder((ast) => {
9955
9988
  return 1;
9956
9989
  }
9957
9990
  });
9958
- function serializerTree(ast, recur, onMissingAnnotation) {
9991
+ function toCodecStringTreeASTStep(ast, recur, onMissingAnnotation) {
9959
9992
  switch (ast._tag) {
9960
9993
  case "Declaration": {
9961
9994
  const typeParameters = ast.typeParameters.map((tp) => make17(recur(toEncoded(tp))));
@@ -10004,13 +10037,10 @@ function serializerTree(ast, recur, onMissingAnnotation) {
10004
10037
  }
10005
10038
  var nullToString = /* @__PURE__ */ new Link(/* @__PURE__ */ new Literal("null"), /* @__PURE__ */ new Transformation(/* @__PURE__ */ transform(() => null), /* @__PURE__ */ transform(() => "null")));
10006
10039
  var booleanToString = /* @__PURE__ */ new Link(/* @__PURE__ */ new Union([/* @__PURE__ */ new Literal("true"), /* @__PURE__ */ new Literal("false")], "anyOf"), /* @__PURE__ */ new Transformation(/* @__PURE__ */ transform((s3) => s3 === "true"), /* @__PURE__ */ String2()));
10007
- var SERIALIZER_ENSURE_ARRAY = "~effect/Schema/SERIALIZER_ENSURE_ARRAY";
10008
- var isSerializerArrayFromSingle = (ast) => isUnion(ast) && ast.annotations?.[SERIALIZER_ENSURE_ARRAY] === true;
10009
- var serializerStringTree = /* @__PURE__ */ applyToSelfOrLastLinkEncoding((ast) => {
10010
- if (isSerializerArrayFromSingle(ast)) {
10011
- return ast;
10012
- }
10013
- const out = serializerTree(ast, serializerStringTree, (ast2) => {
10040
+ var arrayFromSingleTransformation = /* @__PURE__ */ new Transformation(/* @__PURE__ */ transform((input) => typeof input === "string" ? [input] : input), /* @__PURE__ */ passthrough2());
10041
+ var isCodecArrayFromSingleLink = (link4) => link4.transformation === arrayFromSingleTransformation;
10042
+ var toCodecStringTreeAST = /* @__PURE__ */ applyToSelfOrLastLinkEncodingIdempotent((ast) => {
10043
+ const out = toCodecStringTreeASTStep(ast, toCodecStringTreeAST, (ast2) => {
10014
10044
  throw new globalThis.Error("Missing structural codec for StringTree", {
10015
10045
  cause: ast2
10016
10046
  });
@@ -10019,6 +10049,8 @@ var serializerStringTree = /* @__PURE__ */ applyToSelfOrLastLinkEncoding((ast) =
10019
10049
  return replaceContextLastLink(out, withoutConstructorDefault(ast.context));
10020
10050
  }
10021
10051
  return out;
10052
+ }, {
10053
+ stopAt: isCodecArrayFromSingleLink
10022
10054
  });
10023
10055
  var Json2 = /* @__PURE__ */ make17(/* @__PURE__ */ annotate(Json, {
10024
10056
  toCode: () => ({
@@ -10027,7 +10059,7 @@ var Json2 = /* @__PURE__ */ make17(/* @__PURE__ */ annotate(Json, {
10027
10059
  })
10028
10060
  }));
10029
10061
 
10030
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/http/Cookies.js
10062
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/Cookies.js
10031
10063
  var TypeId28 = "~effect/http/Cookies";
10032
10064
  var CookieTypeId = "~effect/http/Cookies/Cookie";
10033
10065
  var Proto4 = {
@@ -10210,7 +10242,7 @@ var tryDecodeURIComponent = (str) => {
10210
10242
  }
10211
10243
  };
10212
10244
 
10213
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/http/Headers.js
10245
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/Headers.js
10214
10246
  var TypeId29 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
10215
10247
  var Proto5 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
10216
10248
  [TypeId29]: {
@@ -10317,7 +10349,7 @@ var CurrentRedactedNames = /* @__PURE__ */ Reference("effect/Headers/CurrentReda
10317
10349
  defaultValue: () => ["authorization", "cookie", "set-cookie", "x-api-key"]
10318
10350
  });
10319
10351
 
10320
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/http/UrlParams.js
10352
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/UrlParams.js
10321
10353
  var TypeId30 = "~effect/http/UrlParams";
10322
10354
  var isUrlParams = (u2) => hasProperty(u2, TypeId30);
10323
10355
  var Proto6 = {
@@ -10398,7 +10430,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
10398
10430
  return out;
10399
10431
  });
10400
10432
 
10401
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/http/HttpBody.js
10433
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/HttpBody.js
10402
10434
  var TypeId31 = "~effect/http/HttpBody";
10403
10435
  var Proto7 = class {
10404
10436
  [TypeId31];
@@ -10425,7 +10457,7 @@ var Empty2 = class extends Proto7 {
10425
10457
  };
10426
10458
  var empty9 = /* @__PURE__ */ new Empty2();
10427
10459
 
10428
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/http/HttpClientError.js
10460
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/HttpClientError.js
10429
10461
  var TypeId32 = "~effect/http/HttpClientError";
10430
10462
  var HttpClientError = class extends (/* @__PURE__ */ TaggedError2("HttpClientError")) {
10431
10463
  constructor(props) {
@@ -10560,10 +10592,10 @@ var EmptyBodyError = class extends (/* @__PURE__ */ TaggedError2("EmptyBodyError
10560
10592
  }
10561
10593
  };
10562
10594
 
10563
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/http/HttpMethod.js
10595
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/HttpMethod.js
10564
10596
  var allShort = [["GET", "get"], ["POST", "post"], ["PUT", "put"], ["DELETE", "del"], ["PATCH", "patch"], ["HEAD", "head"], ["OPTIONS", "options"], ["TRACE", "trace"]];
10565
10597
 
10566
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/http/internal/httpBody.js
10598
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/internal/httpBody.js
10567
10599
  var updateHeaders = (headers, body) => {
10568
10600
  if (body._tag === "Empty" || body._tag === "FormData") {
10569
10601
  return remove2(remove2(headers, "content-type"), "content-length");
@@ -10572,7 +10604,7 @@ var updateHeaders = (headers, body) => {
10572
10604
  return body.contentLength === void 0 ? remove2(headers, "content-length") : set2(headers, "content-length", body.contentLength.toString());
10573
10605
  };
10574
10606
 
10575
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/http/Url.js
10607
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/Url.js
10576
10608
  var UrlError = class extends (/* @__PURE__ */ TaggedError2("UrlError")) {
10577
10609
  };
10578
10610
  var make20 = (url, params, hash2) => try_({
@@ -10600,7 +10632,7 @@ var baseUrl = () => {
10600
10632
  return void 0;
10601
10633
  };
10602
10634
 
10603
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/http/HttpClientRequest.js
10635
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/HttpClientRequest.js
10604
10636
  var TypeId33 = "~effect/http/HttpClientRequest";
10605
10637
  var Proto8 = {
10606
10638
  [TypeId33]: TypeId33,
@@ -10697,7 +10729,7 @@ var setBody = /* @__PURE__ */ dual(2, (self, body) => {
10697
10729
  return makeWith(self.method, self.url, self.urlParams, self.hash, updateHeaders(self.headers, body), body);
10698
10730
  });
10699
10731
 
10700
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/http/HttpIncomingMessage.js
10732
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/HttpIncomingMessage.js
10701
10733
  var TypeId34 = "~effect/http/HttpIncomingMessage";
10702
10734
  var inspect = (self, that) => {
10703
10735
  const contentType = self.headers["content-type"] ?? "";
@@ -10724,7 +10756,7 @@ var inspect = (self, that) => {
10724
10756
  return obj;
10725
10757
  };
10726
10758
 
10727
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/http/HttpClientResponse.js
10759
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/HttpClientResponse.js
10728
10760
  var TypeId35 = "~effect/http/HttpClientResponse";
10729
10761
  var fromWeb = (request5, source) => new WebHttpClientResponse(request5, source);
10730
10762
  var stream2 = (effect2) => unwrap3(map6(effect2, (self) => self.stream));
@@ -10851,7 +10883,7 @@ var WebHttpClientResponse = class extends Class2 {
10851
10883
  }
10852
10884
  };
10853
10885
 
10854
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/http/HttpTraceContext.js
10886
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/HttpTraceContext.js
10855
10887
  var toHeaders = (span) => fromRecordUnsafe({
10856
10888
  b3: `${span.traceId}-${span.spanId}-${span.sampled ? "1" : "0"}${match(span.parent, {
10857
10889
  onNone: () => "",
@@ -10860,7 +10892,7 @@ var toHeaders = (span) => fromRecordUnsafe({
10860
10892
  traceparent: `00-${span.traceId}-${span.spanId}-${span.sampled ? "01" : "00"}`
10861
10893
  });
10862
10894
 
10863
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/http/HttpClient.js
10895
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/HttpClient.js
10864
10896
  var TypeId36 = "~effect/http/HttpClient";
10865
10897
  var HttpClient = /* @__PURE__ */ Service("effect/HttpClient");
10866
10898
  var transformResponse = /* @__PURE__ */ dual(2, (self, f2) => makeWith2((request5) => f2(self.postprocess(request5)), self.preprocess));
@@ -11073,7 +11105,7 @@ var InterruptibleResponse = class {
11073
11105
  }
11074
11106
  };
11075
11107
 
11076
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.105_effect@4.0.0-beta.105/node_modules/@effect/platform-node-shared/dist/NodeSink.js
11108
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.106_effect@4.0.0-beta.106/node_modules/@effect/platform-node-shared/dist/NodeSink.js
11077
11109
  var fromWritable = (options) => fromChannel2(mapDone(fromWritableChannel(options), (_2) => [_2]));
11078
11110
  var fromWritableChannel = (options) => fromTransform((pull) => {
11079
11111
  const writable = options.evaluate();
@@ -11113,7 +11145,7 @@ var pullIntoWritable = (options) => options.pull.pipe(flatMap3((chunk) => {
11113
11145
  });
11114
11146
  }) : identity);
11115
11147
 
11116
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.105_effect@4.0.0-beta.105/node_modules/@effect/platform-node-shared/dist/NodeStream.js
11148
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.106_effect@4.0.0-beta.106/node_modules/@effect/platform-node-shared/dist/NodeStream.js
11117
11149
  var fromReadable = (options) => fromChannel3(fromReadableChannel(options));
11118
11150
  var fromReadableChannel = (options) => fromTransform((_2, scope3) => readableToPullUnsafe({
11119
11151
  scope: scope3,
@@ -11172,7 +11204,7 @@ var readableToPullUnsafe = (options) => {
11172
11204
  };
11173
11205
  var defaultOnError = (error2) => new UnknownError2(error2);
11174
11206
 
11175
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/http/FetchHttpClient.js
11207
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/FetchHttpClient.js
11176
11208
  var Fetch = /* @__PURE__ */ Reference("effect/http/FetchHttpClient/Fetch", {
11177
11209
  defaultValue: () => globalThis.fetch
11178
11210
  });
@@ -11214,7 +11246,7 @@ var fetch = /* @__PURE__ */ make22((request5, url, signal, fiber3) => {
11214
11246
  });
11215
11247
  var layer2 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch));
11216
11248
 
11217
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Runtime.js
11249
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Runtime.js
11218
11250
  var defaultTeardown = (exit3, onExit4) => {
11219
11251
  if (isSuccess4(exit3)) return onExit4(0);
11220
11252
  if (hasInterruptsOnly2(exit3.cause)) return onExit4(130);
@@ -11260,7 +11292,7 @@ var getErrorReported = (u2) => {
11260
11292
  return true;
11261
11293
  };
11262
11294
 
11263
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.105_effect@4.0.0-beta.105/node_modules/@effect/platform-node-shared/dist/NodeRuntime.js
11295
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.106_effect@4.0.0-beta.106/node_modules/@effect/platform-node-shared/dist/NodeRuntime.js
11264
11296
  var runMain = /* @__PURE__ */ makeRunMain(({
11265
11297
  fiber: fiber3,
11266
11298
  teardown
@@ -11283,10 +11315,10 @@ var runMain = /* @__PURE__ */ makeRunMain(({
11283
11315
  process.on("SIGTERM", onSigint);
11284
11316
  });
11285
11317
 
11286
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.105_effect@4.0.0-beta.105_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeRuntime.js
11318
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.106_effect@4.0.0-beta.106_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeRuntime.js
11287
11319
  var runMain2 = runMain;
11288
11320
 
11289
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Path.js
11321
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Path.js
11290
11322
  var Path_exports = {};
11291
11323
  __export(Path_exports, {
11292
11324
  Path: () => Path,
@@ -11760,7 +11792,7 @@ var posixImpl = /* @__PURE__ */ Path.of({
11760
11792
  });
11761
11793
  var layer3 = /* @__PURE__ */ succeed5(Path)(posixImpl);
11762
11794
 
11763
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Brand.js
11795
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Brand.js
11764
11796
  function nominal() {
11765
11797
  return Object.assign((input) => input, {
11766
11798
  option: (input) => some2(input),
@@ -11769,7 +11801,7 @@ function nominal() {
11769
11801
  });
11770
11802
  }
11771
11803
 
11772
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/process/ChildProcessSpawner.js
11804
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/process/ChildProcessSpawner.js
11773
11805
  var ExitCode = /* @__PURE__ */ nominal();
11774
11806
  var ProcessId = /* @__PURE__ */ nominal();
11775
11807
  var HandleTypeId = "~effect/ChildProcessSpawner/ChildProcessHandle";
@@ -11801,7 +11833,7 @@ var make23 = (spawn2) => {
11801
11833
  var ChildProcessSpawner = class extends (/* @__PURE__ */ Service()("effect/process/ChildProcessSpawner")) {
11802
11834
  };
11803
11835
 
11804
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/process/ChildProcess.js
11836
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/process/ChildProcess.js
11805
11837
  var TypeId38 = "~effect/unstable/process/ChildProcess";
11806
11838
  var Proto10 = {
11807
11839
  .../* @__PURE__ */ Prototype2({
@@ -11925,7 +11957,7 @@ var splitByWhitespaces = (template, rawTemplate) => {
11925
11957
  };
11926
11958
  var concatTokens = (prevTokens, nextTokens, isSeparated) => isSeparated || prevTokens.length === 0 || nextTokens.length === 0 ? [...prevTokens, ...nextTokens] : [...prevTokens.slice(0, -1), `${prevTokens.at(-1)}${nextTokens.at(0)}`, ...nextTokens.slice(1)];
11927
11959
 
11928
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.105_effect@4.0.0-beta.105/node_modules/@effect/platform-node-shared/dist/internal/utils.js
11960
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.106_effect@4.0.0-beta.106/node_modules/@effect/platform-node-shared/dist/internal/utils.js
11929
11961
  var handleErrnoException = (module, method) => (err, [path5]) => {
11930
11962
  let reason = "Unknown";
11931
11963
  switch (err.code) {
@@ -11961,7 +11993,7 @@ var handleErrnoException = (module, method) => (err, [path5]) => {
11961
11993
  });
11962
11994
  };
11963
11995
 
11964
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.105_effect@4.0.0-beta.105/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
11996
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.106_effect@4.0.0-beta.106/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
11965
11997
  var toError = (error2) => error2 instanceof globalThis.Error ? error2 : new globalThis.Error(String(error2));
11966
11998
  var toPlatformError = (method, error2, command2) => {
11967
11999
  const {
@@ -12445,7 +12477,7 @@ var flattenCommand = (command2) => {
12445
12477
  };
12446
12478
  };
12447
12479
 
12448
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Crypto.js
12480
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Crypto.js
12449
12481
  var TypeId39 = "~effect/platform/Crypto";
12450
12482
  var Crypto = /* @__PURE__ */ Service("effect/Crypto");
12451
12483
  var make27 = (impl) => {
@@ -12553,7 +12585,7 @@ var make28 = /* @__PURE__ */ make27({
12553
12585
  });
12554
12586
  var layer5 = /* @__PURE__ */ succeed5(Crypto, make28);
12555
12587
 
12556
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.105_effect@4.0.0-beta.105_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeCrypto.js
12588
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.106_effect@4.0.0-beta.106_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeCrypto.js
12557
12589
  var layer6 = layer5;
12558
12590
  var handleBadArgument = (method) => (err) => badArgument({
12559
12591
  module: "FileSystem",
@@ -12933,7 +12965,7 @@ var makeFileSystem = /* @__PURE__ */ map6(/* @__PURE__ */ serviceOption2(WatchBa
12933
12965
  }));
12934
12966
  var layer7 = /* @__PURE__ */ effect(FileSystem)(makeFileSystem);
12935
12967
 
12936
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.105_effect@4.0.0-beta.105_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeFileSystem.js
12968
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.106_effect@4.0.0-beta.106_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeFileSystem.js
12937
12969
  var layer8 = layer7;
12938
12970
  var fileUrlOps = (windows) => ({
12939
12971
  fromFileUrl: (url) => try_3({
@@ -12963,10 +12995,10 @@ var layer9 = /* @__PURE__ */ succeed5(Path)({
12963
12995
  .../* @__PURE__ */ fileUrlOps(void 0)
12964
12996
  });
12965
12997
 
12966
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.105_effect@4.0.0-beta.105_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodePath.js
12998
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.106_effect@4.0.0-beta.106_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodePath.js
12967
12999
  var layer10 = layer9;
12968
13000
 
12969
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Stdio.js
13001
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Stdio.js
12970
13002
  var TypeId40 = "~effect/Stdio";
12971
13003
  var Stdio = /* @__PURE__ */ Service(TypeId40);
12972
13004
  var make29 = (options) => ({
@@ -12976,7 +13008,7 @@ var make29 = (options) => ({
12976
13008
  ...options
12977
13009
  });
12978
13010
 
12979
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.105_effect@4.0.0-beta.105/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
13011
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.106_effect@4.0.0-beta.106/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
12980
13012
  var layer11 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make29({
12981
13013
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
12982
13014
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
@@ -13013,10 +13045,10 @@ var layer11 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make29({
13013
13045
  })
13014
13046
  }));
13015
13047
 
13016
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.105_effect@4.0.0-beta.105_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeStdio.js
13048
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.106_effect@4.0.0-beta.106_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeStdio.js
13017
13049
  var layer12 = layer11;
13018
13050
 
13019
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Terminal.js
13051
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Terminal.js
13020
13052
  var TypeId41 = "~effect/platform/Terminal";
13021
13053
  var QuitErrorTypeId = "effect/platform/Terminal/QuitError";
13022
13054
  var QuitError = class extends (/* @__PURE__ */ Error4("QuitError")({
@@ -13087,7 +13119,8 @@ var make31 = /* @__PURE__ */ fnUntraced2(function* (shouldQuit = defaultShouldQu
13087
13119
  if (inputEnded) {
13088
13120
  endUnsafe(lines2);
13089
13121
  }
13090
- }))
13122
+ })),
13123
+ idleTimeToLive: "10 millis"
13091
13124
  });
13092
13125
  const columns = sync2(() => stdout.columns ?? 0);
13093
13126
  const rows = sync2(() => stdout.rows ?? 0);
@@ -13153,13 +13186,13 @@ function defaultShouldQuit(input) {
13153
13186
  return input.key.ctrl && (input.key.name === "c" || input.key.name === "d");
13154
13187
  }
13155
13188
 
13156
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.105_effect@4.0.0-beta.105_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeTerminal.js
13189
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.106_effect@4.0.0-beta.106_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeTerminal.js
13157
13190
  var layer14 = layer13;
13158
13191
 
13159
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.105_effect@4.0.0-beta.105_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeServices.js
13192
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.106_effect@4.0.0-beta.106_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeServices.js
13160
13193
  var layer15 = /* @__PURE__ */ provideMerge(layer4, /* @__PURE__ */ mergeAll2(layer8, layer6, layer10, layer12, layer14));
13161
13194
 
13162
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/ConfigProvider.js
13195
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/ConfigProvider.js
13163
13196
  function makeValue(value3) {
13164
13197
  return {
13165
13198
  _tag: "Value",
@@ -13207,13 +13240,16 @@ function make32(get4) {
13207
13240
  function emptyStringAsMissing(value3, preserveEmptyStrings) {
13208
13241
  return value3 === "" && true ? void 0 : value3;
13209
13242
  }
13243
+ function fromEnvRecord(env, options) {
13244
+ const trie = buildEnvTrie(env);
13245
+ return make32((path5) => succeed6(nodeAtEnv(trie, env, path5)));
13246
+ }
13210
13247
  function fromEnv(options) {
13211
13248
  const env = {
13212
13249
  ...globalThis.process?.env,
13213
13250
  ...undefined
13214
13251
  };
13215
- const trie = buildEnvTrie(env);
13216
- return make32((path5) => succeed6(nodeAtEnv(trie, env, path5)));
13252
+ return fromEnvRecord(env);
13217
13253
  }
13218
13254
  function buildEnvTrie(env) {
13219
13255
  const trie = {};
@@ -13254,7 +13290,7 @@ function trieNodeAt(root, path5) {
13254
13290
  return node;
13255
13291
  }
13256
13292
 
13257
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Config.js
13293
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Config.js
13258
13294
  var TypeId42 = "~effect/Config";
13259
13295
  var Proto12 = {
13260
13296
  .../* @__PURE__ */ Prototype2({
@@ -13296,7 +13332,7 @@ var Boolean3 = /* @__PURE__ */ Literals([...TrueValues.literals, ...FalseValues.
13296
13332
  encode: (value3) => value3 ? "true" : "false"
13297
13333
  })));
13298
13334
 
13299
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/Console.js
13335
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Console.js
13300
13336
  var Console = ConsoleRef;
13301
13337
  var consoleWith = (f2) => withFiber((fiber3) => f2(fiber3.getRef(Console)));
13302
13338
  var error = (...args2) => consoleWith((console) => sync(() => {
@@ -13306,7 +13342,7 @@ var log2 = (...args2) => consoleWith((console) => sync(() => {
13306
13342
  console.log(...args2);
13307
13343
  }));
13308
13344
 
13309
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/cli/Argument.js
13345
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Argument.js
13310
13346
  var Argument_exports = {};
13311
13347
  __export(Argument_exports, {
13312
13348
  atLeast: () => atLeast2,
@@ -13328,7 +13364,7 @@ __export(Argument_exports, {
13328
13364
  mapEffect: () => mapEffect3,
13329
13365
  mapTryCatch: () => mapTryCatch2,
13330
13366
  none: () => none5,
13331
- optional: () => optional3,
13367
+ optional: () => optional4,
13332
13368
  orElse: () => orElse2,
13333
13369
  orElseResult: () => orElseResult2,
13334
13370
  path: () => path3,
@@ -13343,12 +13379,12 @@ __export(Argument_exports, {
13343
13379
  withSchema: () => withSchema2
13344
13380
  });
13345
13381
 
13346
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/cli/CliError.js
13382
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/CliError.js
13347
13383
  var TypeId43 = "~effect/cli/CliError";
13348
13384
  var isCliError = (u2) => hasProperty(u2, TypeId43);
13349
13385
  var UnrecognizedOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/UnrecognizedOption`)("UnrecognizedOption", {
13350
13386
  option: String4,
13351
- command: /* @__PURE__ */ optional(/* @__PURE__ */ ArraySchema(String4)),
13387
+ command: /* @__PURE__ */ optional2(/* @__PURE__ */ ArraySchema(String4)),
13352
13388
  suggestions: /* @__PURE__ */ ArraySchema(String4)
13353
13389
  })) {
13354
13390
  /**
@@ -13476,7 +13512,7 @@ var InvalidValue2 = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/Inv
13476
13512
  };
13477
13513
  var UnknownSubcommand = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/UnknownSubcommand`)("UnknownSubcommand", {
13478
13514
  subcommand: String4,
13479
- parent: /* @__PURE__ */ optional(/* @__PURE__ */ ArraySchema(String4)),
13515
+ parent: /* @__PURE__ */ optional2(/* @__PURE__ */ ArraySchema(String4)),
13480
13516
  suggestions: /* @__PURE__ */ ArraySchema(String4)
13481
13517
  })) {
13482
13518
  /**
@@ -13521,7 +13557,7 @@ var ShowHelp = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/ShowHelp
13521
13557
  }
13522
13558
  };
13523
13559
 
13524
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/encoding/Ini.js
13560
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/encoding/Ini.js
13525
13561
  var hasOwn = Object.prototype.hasOwnProperty;
13526
13562
  var splitSections = (value3) => {
13527
13563
  const sections = [];
@@ -13640,7 +13676,7 @@ var parse = (input) => {
13640
13676
  return output;
13641
13677
  };
13642
13678
 
13643
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/encoding/Toml.js
13679
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/encoding/Toml.js
13644
13680
  var hasOwn2 = Object.prototype.hasOwnProperty;
13645
13681
  var makeTable = () => /* @__PURE__ */ Object.create(null);
13646
13682
  var isTable = (value3) => typeof value3 === "object" && value3 !== null && !Array.isArray(value3) && !(value3 instanceof Date);
@@ -14058,7 +14094,7 @@ var TomlParser = class {
14058
14094
  };
14059
14095
  var parse2 = (input) => new TomlParser(input.replace(/^\uFEFF/, "")).parse();
14060
14096
 
14061
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/encoding/Yaml.js
14097
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/encoding/Yaml.js
14062
14098
  var hasOwn3 = Object.prototype.hasOwnProperty;
14063
14099
  var setProperty = (record2, key, value3) => {
14064
14100
  Object.defineProperty(record2, key, {
@@ -14511,7 +14547,7 @@ var parse3 = (input) => {
14511
14547
  return new YamlParser(lines2).parse();
14512
14548
  };
14513
14549
 
14514
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/cli/Primitive.js
14550
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Primitive.js
14515
14551
  var TypeId44 = "~effect/cli/Primitive";
14516
14552
  var Proto13 = {
14517
14553
  [TypeId44]: {
@@ -14665,7 +14701,7 @@ var getTypeName = (primitive) => {
14665
14701
  var getChoiceKeys = (primitive) => primitive._tag === "Choice" ? primitive.choiceKeys : void 0;
14666
14702
  var getPathType = (primitive) => primitive._tag === "Path" ? primitive.pathType : void 0;
14667
14703
 
14668
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/cli/Prompt.js
14704
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Prompt.js
14669
14705
  var Prompt_exports = {};
14670
14706
  __export(Prompt_exports, {
14671
14707
  all: () => all3,
@@ -14691,7 +14727,7 @@ __export(Prompt_exports, {
14691
14727
  toggle: () => toggle
14692
14728
  });
14693
14729
 
14694
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/cli/internal/ansi.js
14730
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/ansi.js
14695
14731
  var ESC = "\x1B[";
14696
14732
  var BEL = "\x07";
14697
14733
  var reset = `${ESC}0m`;
@@ -14752,7 +14788,7 @@ var eraseLines = (rows) => {
14752
14788
  return command2;
14753
14789
  };
14754
14790
 
14755
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/cli/Prompt.js
14791
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Prompt.js
14756
14792
  var TypeId45 = "~effect/cli/Prompt";
14757
14793
  var isPrompt = (u2) => hasProperty(u2, TypeId45);
14758
14794
  var defaultFigures = {
@@ -17268,7 +17304,7 @@ var entriesToDisplay = (cursor, total, maxVisible) => {
17268
17304
  };
17269
17305
  };
17270
17306
 
17271
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/cli/Param.js
17307
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Param.js
17272
17308
  var TypeId46 = "~effect/cli/Param";
17273
17309
  var argumentKind = "argument";
17274
17310
  var flagKind = "flag";
@@ -17426,7 +17462,7 @@ var mapTryCatch = /* @__PURE__ */ dual(3, (self, f2, onError4) => {
17426
17462
  kind: single.kind
17427
17463
  })), map6((b2) => [leftover, b2]))));
17428
17464
  });
17429
- var optional2 = (param) => {
17465
+ var optional3 = (param) => {
17430
17466
  const parse4 = fnUntraced2(function* (args2) {
17431
17467
  const single = getUnderlyingSingleOrThrow(param);
17432
17468
  if (isFlagParam(single) && isBoolean2(single.primitiveType) && ![single.name, ...single.aliases].some((name) => (args2.flags[name] ?? []).length > 0)) {
@@ -17450,9 +17486,9 @@ var optional2 = (param) => {
17450
17486
  };
17451
17487
  var withDefault3 = /* @__PURE__ */ dual(2, (self, defaultValue) => {
17452
17488
  if (!isEffect2(defaultValue)) {
17453
- return map12(optional2(self), getOrElse(() => defaultValue));
17489
+ return map12(optional3(self), getOrElse(() => defaultValue));
17454
17490
  }
17455
- return mapEffect2(optional2(self), match({
17491
+ return mapEffect2(optional3(self), match({
17456
17492
  onNone: () => defaultValue,
17457
17493
  onSome: succeed6
17458
17494
  }));
@@ -17668,7 +17704,7 @@ var transformSingle = (param, f2) => {
17668
17704
  Single: (single) => f2(single),
17669
17705
  Map: (mapped) => map12(transformSingle(mapped.param, f2), mapped.f),
17670
17706
  Transform: (mapped) => transform3(transformSingle(mapped.param, f2), mapped.f, mapped.alternatives.map((alternative) => () => transformSingle(alternative(), f2))),
17671
- Optional: (p2) => optional2(transformSingle(p2.param, f2)),
17707
+ Optional: (p2) => optional3(transformSingle(p2.param, f2)),
17672
17708
  Variadic: (p2) => variadic(transformSingle(p2.param, f2), {
17673
17709
  min: getOrUndefined(p2.min),
17674
17710
  max: getOrUndefined(p2.max)
@@ -17680,7 +17716,7 @@ var extractSingleParams = (param) => {
17680
17716
  Single: (single) => [single],
17681
17717
  Map: (mapped) => extractSingleParams(mapped.param),
17682
17718
  Transform: (mapped) => [...extractSingleParams(mapped.param), ...mapped.alternatives.flatMap((alternative) => extractSingleParams(alternative()))],
17683
- Optional: (optional5) => extractSingleParams(optional5.param),
17719
+ Optional: (optional6) => extractSingleParams(optional6.param),
17684
17720
  Variadic: (variadic3) => extractSingleParams(variadic3.param)
17685
17721
  });
17686
17722
  };
@@ -17704,8 +17740,8 @@ var getParamMetadata = (param) => {
17704
17740
  }),
17705
17741
  Map: (mapped) => getParamMetadata(mapped.param),
17706
17742
  Transform: (mapped) => getParamMetadata(mapped.param),
17707
- Optional: (optional5) => ({
17708
- ...getParamMetadata(optional5.param),
17743
+ Optional: (optional6) => ({
17744
+ ...getParamMetadata(optional6.param),
17709
17745
  isOptional: true
17710
17746
  }),
17711
17747
  Variadic: (variadic3) => ({
@@ -17717,7 +17753,7 @@ var getParamMetadata = (param) => {
17717
17753
  });
17718
17754
  };
17719
17755
 
17720
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/cli/Argument.js
17756
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Argument.js
17721
17757
  var string5 = (name) => string4(argumentKind, name);
17722
17758
  var integer4 = (name) => integer3(argumentKind, name);
17723
17759
  var file4 = (name, options) => file3(argumentKind, name, options);
@@ -17731,7 +17767,7 @@ var fileText3 = (name) => fileText2(argumentKind, name);
17731
17767
  var fileParse3 = (name, options) => fileParse2(argumentKind, name, options);
17732
17768
  var fileSchema3 = (name, schema, options) => fileSchema2(argumentKind, name, schema, options);
17733
17769
  var none5 = /* @__PURE__ */ none4(argumentKind);
17734
- var optional3 = (arg) => optional2(arg);
17770
+ var optional4 = (arg) => optional3(arg);
17735
17771
  var withDescription2 = /* @__PURE__ */ dual(2, (self, description) => withDescription(self, description));
17736
17772
  var withDefault4 = withDefault3;
17737
17773
  var withFallbackConfig2 = /* @__PURE__ */ dual(2, (self, config) => withFallbackConfig(self, config));
@@ -17751,7 +17787,7 @@ var filterMap4 = /* @__PURE__ */ dual(3, (self, f2, onNone) => filterMap3(self,
17751
17787
  var orElse2 = /* @__PURE__ */ dual(2, (self, that) => orElse(self, that));
17752
17788
  var orElseResult2 = /* @__PURE__ */ dual(2, (self, that) => orElseResult(self, that));
17753
17789
 
17754
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/cli/CliOutput.js
17790
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/CliOutput.js
17755
17791
  var Formatter = /* @__PURE__ */ Reference("effect/cli/CliOutput", {
17756
17792
  defaultValue: () => defaultFormatter2()
17757
17793
  });
@@ -17947,7 +17983,7 @@ var formatHelpDocImpl = (doc, colors2) => {
17947
17983
  return sections.join("\n");
17948
17984
  };
17949
17985
 
17950
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/cli/internal/completions/bash.js
17986
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/completions/bash.js
17951
17987
  var escapeForBash = (s3) => s3.replace(/'/g, "'\\''");
17952
17988
  var sanitizeFunctionName = (s3) => s3.replace(/[^a-zA-Z0-9_]/g, "_");
17953
17989
  var flagNamesForWordlist = (flag) => {
@@ -18169,7 +18205,7 @@ var generate = (executableName, descriptor) => {
18169
18205
  return lines2.join("\n");
18170
18206
  };
18171
18207
 
18172
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/cli/internal/completions/fish.js
18208
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/completions/fish.js
18173
18209
  var escapeFishString = (s3) => s3.replace(/'/g, "\\'");
18174
18210
  var subcommandCondition = (parentPath, childSubcommandNames) => {
18175
18211
  if (parentPath.length === 0) {
@@ -18337,7 +18373,7 @@ var generate2 = (executableName, descriptor) => {
18337
18373
  return lines2.join("\n");
18338
18374
  };
18339
18375
 
18340
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/cli/internal/completions/zsh.js
18376
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/completions/zsh.js
18341
18377
  var escapeZsh = (s3) => s3.replace(/\\/g, "\\\\").replace(/'/g, "'\\''").replace(/:/g, "\\:");
18342
18378
  var sanitize = (s3) => s3.replace(/[^a-zA-Z0-9_]/g, "_");
18343
18379
  var allForms = (flag) => {
@@ -18495,7 +18531,7 @@ var generate3 = (executableName, descriptor) => {
18495
18531
  return lines2.join("\n");
18496
18532
  };
18497
18533
 
18498
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/cli/Completions.js
18534
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Completions.js
18499
18535
  var generate4 = (executableName, shell, descriptor) => {
18500
18536
  switch (shell) {
18501
18537
  case "bash":
@@ -18507,7 +18543,7 @@ var generate4 = (executableName, shell, descriptor) => {
18507
18543
  }
18508
18544
  };
18509
18545
 
18510
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/cli/Flag.js
18546
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Flag.js
18511
18547
  var Flag_exports = {};
18512
18548
  __export(Flag_exports, {
18513
18549
  atLeast: () => atLeast3,
@@ -18531,7 +18567,7 @@ __export(Flag_exports, {
18531
18567
  mapEffect: () => mapEffect4,
18532
18568
  mapTryCatch: () => mapTryCatch3,
18533
18569
  none: () => none6,
18534
- optional: () => optional4,
18570
+ optional: () => optional5,
18535
18571
  orElse: () => orElse3,
18536
18572
  orElseResult: () => orElseResult3,
18537
18573
  path: () => path4,
@@ -18566,7 +18602,7 @@ var withAlias2 = /* @__PURE__ */ dual(2, (self, alias) => withAlias(self, alias)
18566
18602
  var withDescription3 = /* @__PURE__ */ dual(2, (self, description) => withDescription(self, description));
18567
18603
  var withMetavar3 = /* @__PURE__ */ dual(2, (self, metavar) => withMetavar(self, metavar));
18568
18604
  var withHidden2 = (self) => withHidden(self);
18569
- var optional4 = (param) => optional2(param);
18605
+ var optional5 = (param) => optional3(param);
18570
18606
  var withDefault5 = withDefault3;
18571
18607
  var withFallbackConfig3 = /* @__PURE__ */ dual(2, (self, config) => withFallbackConfig(self, config));
18572
18608
  var withFallbackPrompt3 = /* @__PURE__ */ dual(2, (self, prompt) => withFallbackPrompt(self, prompt));
@@ -18582,7 +18618,7 @@ var orElse3 = /* @__PURE__ */ dual(2, (self, that) => orElse(self, that));
18582
18618
  var orElseResult3 = /* @__PURE__ */ dual(2, (self, that) => orElseResult(self, that));
18583
18619
  var withSchema3 = /* @__PURE__ */ dual(2, (self, schema) => withSchema(self, schema));
18584
18620
 
18585
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/cli/internal/config.js
18621
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/config.js
18586
18622
  var ConfigInternalTypeId = "~effect/cli/Command/Config/Internal";
18587
18623
  var parseConfig = (config) => {
18588
18624
  const orderedParams = [];
@@ -18683,7 +18719,7 @@ var reconstructTree = (tree, results) => {
18683
18719
  }
18684
18720
  };
18685
18721
 
18686
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/cli/internal/command.js
18722
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/command.js
18687
18723
  var TypeId47 = "~effect/cli/Command";
18688
18724
  var toImpl = (self) => self;
18689
18725
  var Proto15 = {
@@ -18874,7 +18910,7 @@ var checkForDuplicateFlags = (parent, subcommands, options) => {
18874
18910
  }
18875
18911
  };
18876
18912
 
18877
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/cli/internal/completions/descriptor.js
18913
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/completions/descriptor.js
18878
18914
  var toFlagType = (single) => {
18879
18915
  const tag2 = single.primitiveType._tag;
18880
18916
  switch (tag2) {
@@ -19007,7 +19043,7 @@ var fromCommand = (cmd) => {
19007
19043
  };
19008
19044
  };
19009
19045
 
19010
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/cli/internal/help.js
19046
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/help.js
19011
19047
  var dedupeGlobalFlags = (flags) => {
19012
19048
  const seen = /* @__PURE__ */ new Set();
19013
19049
  const deduped = [];
@@ -19112,7 +19148,7 @@ var getHelpForCommandPath = (command2, commandPath, builtIns) => gen2(function*
19112
19148
  };
19113
19149
  });
19114
19150
 
19115
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/cli/GlobalFlag.js
19151
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/GlobalFlag.js
19116
19152
  var action = (options) => ({
19117
19153
  _tag: "Action",
19118
19154
  flag: options.flag,
@@ -19155,7 +19191,7 @@ var Wizard = /* @__PURE__ */ action({
19155
19191
  run: () => void_3
19156
19192
  });
19157
19193
  var Completions = /* @__PURE__ */ action({
19158
- flag: /* @__PURE__ */ choice4("completions", ["bash", "zsh", "fish", "sh"]).pipe(optional4, /* @__PURE__ */ map14((v2) => map(v2, (s3) => s3 === "sh" ? "bash" : s3)), /* @__PURE__ */ withMetavar3("<bash|zsh|fish|sh>"), /* @__PURE__ */ withDescription3("Print shell completion script")),
19194
+ flag: /* @__PURE__ */ choice4("completions", ["bash", "zsh", "fish", "sh"]).pipe(optional5, /* @__PURE__ */ map14((v2) => map(v2, (s3) => s3 === "sh" ? "bash" : s3)), /* @__PURE__ */ withMetavar3("<bash|zsh|fish|sh>"), /* @__PURE__ */ withDescription3("Print shell completion script")),
19159
19195
  run: /* @__PURE__ */ fnUntraced2(function* (shell, {
19160
19196
  command: command2
19161
19197
  }) {
@@ -19165,11 +19201,11 @@ var Completions = /* @__PURE__ */ action({
19165
19201
  })
19166
19202
  });
19167
19203
  var LogLevel = /* @__PURE__ */ setting("log-level")({
19168
- flag: /* @__PURE__ */ choiceWithValue3("log-level", [["all", "All"], ["trace", "Trace"], ["debug", "Debug"], ["info", "Info"], ["warn", "Warn"], ["warning", "Warn"], ["error", "Error"], ["fatal", "Fatal"], ["none", "None"]]).pipe(optional4, /* @__PURE__ */ withDescription3("Sets the minimum log level"), /* @__PURE__ */ withMetavar3("<all|trace|debug|info|warn|warning|error|fatal|none>"))
19204
+ flag: /* @__PURE__ */ choiceWithValue3("log-level", [["all", "All"], ["trace", "Trace"], ["debug", "Debug"], ["info", "Info"], ["warn", "Warn"], ["warning", "Warn"], ["error", "Error"], ["fatal", "Fatal"], ["none", "None"]]).pipe(optional5, /* @__PURE__ */ withDescription3("Sets the minimum log level"), /* @__PURE__ */ withMetavar3("<all|trace|debug|info|warn|warning|error|fatal|none>"))
19169
19205
  });
19170
19206
  var BuiltIns = [Help, Version, Wizard, Completions, LogLevel];
19171
19207
 
19172
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/cli/CliConfig.js
19208
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/CliConfig.js
19173
19209
  var CliConfig = class extends (/* @__PURE__ */ Reference("effect/unstable/cli/CliConfig", {
19174
19210
  defaultValue: () => defaults
19175
19211
  })) {
@@ -19178,7 +19214,7 @@ var defaults = {
19178
19214
  builtIns: BuiltIns
19179
19215
  };
19180
19216
 
19181
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/cli/Command.js
19217
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Command.js
19182
19218
  var Command_exports = {};
19183
19219
  __export(Command_exports, {
19184
19220
  annotate: () => annotate3,
@@ -19203,7 +19239,7 @@ __export(Command_exports, {
19203
19239
  wizard: () => wizard
19204
19240
  });
19205
19241
 
19206
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/cli/internal/lexer.js
19242
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/lexer.js
19207
19243
  function lex(argv) {
19208
19244
  const endIndex = argv.indexOf("--");
19209
19245
  if (endIndex === -1) {
@@ -19274,7 +19310,7 @@ var lexTokens = (args2) => {
19274
19310
  return tokens;
19275
19311
  };
19276
19312
 
19277
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/cli/internal/auto-suggest.js
19313
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/auto-suggest.js
19278
19314
  var levenshtein = (a, b2) => {
19279
19315
  const m2 = a.length;
19280
19316
  const n = b2.length;
@@ -19298,7 +19334,7 @@ var suggest = (input, candidates) => {
19298
19334
  return distances.filter(([d]) => d === minDistance).map(([, c]) => c);
19299
19335
  };
19300
19336
 
19301
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/cli/internal/parser.js
19337
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/parser.js
19302
19338
  var getCommandPath = (parsedInput) => match(parsedInput.subcommand, {
19303
19339
  onNone: () => [],
19304
19340
  onSome: (subcommand) => [subcommand.name, ...getCommandPath(subcommand.parsedInput)]
@@ -19801,7 +19837,7 @@ var scanCommandLevel = (tokens, context3) => {
19801
19837
  return toLeafResult(state);
19802
19838
  };
19803
19839
 
19804
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/cli/internal/wizard.js
19840
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/wizard.js
19805
19841
  var run4 = /* @__PURE__ */ fnUntraced2(function* (command2, options) {
19806
19842
  const commandPath = options?.commandPath ?? [command2.name];
19807
19843
  const selected = getCommandAtPath(command2, commandPath);
@@ -20005,7 +20041,7 @@ var wrapCommand = (commandLine) => {
20005
20041
  };
20006
20042
  var formatShellArg = (arg) => /^[A-Za-z0-9_./:@%+=,-]+$/.test(arg) ? arg : `'${arg.replaceAll("'", `'"'"'`)}'`;
20007
20043
 
20008
- // ../../node_modules/.pnpm/effect@4.0.0-beta.105/node_modules/effect/dist/unstable/cli/Command.js
20044
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Command.js
20009
20045
  var isCommand = (u2) => hasProperty(u2, TypeId47);
20010
20046
  var make34 = (name, config, handler) => {
20011
20047
  const parsedConfig = parseConfig(config ?? {});