@brytdesigns/shopify-ajax-cart-api 1.0.37 → 1.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -4,7 +4,7 @@ var __export = (target, all5) => {
4
4
  __defProp(target, name, { get: all5[name], enumerable: true });
5
5
  };
6
6
 
7
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Function.js
7
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Function.js
8
8
  var isFunction = (input) => typeof input === "function";
9
9
  var dual = function(arity, body) {
10
10
  if (typeof arity === "function") {
@@ -103,7 +103,7 @@ function pipe(a, ab, bc, cd, de, ef, fg, gh, hi) {
103
103
  }
104
104
  }
105
105
 
106
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Equivalence.js
106
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Equivalence.js
107
107
  var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
108
108
  var mapInput = /* @__PURE__ */ dual(2, (self, f) => make((x, y) => self(f(x), f(y))));
109
109
  var array = (item) => make((self, that) => {
@@ -119,7 +119,7 @@ var array = (item) => make((self, that) => {
119
119
  return true;
120
120
  });
121
121
 
122
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/GlobalValue.js
122
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/GlobalValue.js
123
123
  var globalStoreId = `effect/GlobalValue`;
124
124
  var globalStore;
125
125
  var globalValue = (id2, compute) => {
@@ -133,7 +133,7 @@ var globalValue = (id2, compute) => {
133
133
  return globalStore.get(id2);
134
134
  };
135
135
 
136
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Predicate.js
136
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Predicate.js
137
137
  var isString = (input) => typeof input === "string";
138
138
  var isNumber = (input) => typeof input === "number";
139
139
  var isBoolean = (input) => typeof input === "boolean";
@@ -151,11 +151,11 @@ var isTagged = /* @__PURE__ */ dual(2, (self, tag2) => hasProperty(self, "_tag")
151
151
  var isNullable = (input) => input === null || input === void 0;
152
152
  var isNotNullable = (input) => input !== null && input !== void 0;
153
153
  var isDate = (input) => input instanceof Date;
154
- var isIterable = (input) => hasProperty(input, Symbol.iterator);
154
+ var isIterable = (input) => typeof input === "string" || hasProperty(input, Symbol.iterator);
155
155
  var isRecord = (input) => isRecordOrArray(input) && !Array.isArray(input);
156
156
  var isPromiseLike = (input) => hasProperty(input, "then") && isFunction2(input.then);
157
157
 
158
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/errors.js
158
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/errors.js
159
159
  var getBugErrorMessage = (message) => `BUG: ${message} - please report an issue at https://github.com/Effect-TS/effect/issues`;
160
160
  var SingleShotGen = class _SingleShotGen {
161
161
  self;
@@ -355,7 +355,7 @@ var forced = {
355
355
  var isNotOptimizedAway = /* @__PURE__ */ standard.effect_internal_function(() => new Error().stack)?.includes("effect_internal_function") === true;
356
356
  var internalCall = isNotOptimizedAway ? standard.effect_internal_function : forced.effect_internal_function;
357
357
 
358
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Hash.js
358
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Hash.js
359
359
  var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => /* @__PURE__ */ new WeakMap());
360
360
  var symbol = /* @__PURE__ */ Symbol.for("effect/Hash");
361
361
  var hash = (self) => {
@@ -461,7 +461,7 @@ var cached = function() {
461
461
  return hash2;
462
462
  };
463
463
 
464
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Equal.js
464
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Equal.js
465
465
  var symbol2 = /* @__PURE__ */ Symbol.for("effect/Equal");
466
466
  function equals() {
467
467
  if (arguments.length === 1) {
@@ -515,7 +515,7 @@ function compareBoth(self, that) {
515
515
  var isEqual = (u) => hasProperty(u, symbol2);
516
516
  var equivalence = () => equals;
517
517
 
518
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Inspectable.js
518
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Inspectable.js
519
519
  var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
520
520
  var toJSON = (x) => {
521
521
  try {
@@ -529,6 +529,73 @@ var toJSON = (x) => {
529
529
  }
530
530
  return redact(x);
531
531
  };
532
+ var CIRCULAR = "[Circular]";
533
+ function formatDate(date) {
534
+ try {
535
+ return date.toISOString();
536
+ } catch {
537
+ return "Invalid Date";
538
+ }
539
+ }
540
+ function safeToString(input) {
541
+ try {
542
+ const s = input.toString();
543
+ return typeof s === "string" ? s : String(s);
544
+ } catch {
545
+ return "[toString threw]";
546
+ }
547
+ }
548
+ function formatPropertyKey(name) {
549
+ return isString(name) ? JSON.stringify(name) : String(name);
550
+ }
551
+ function formatUnknown(input, options3) {
552
+ const seen = /* @__PURE__ */ new WeakSet();
553
+ const wrap = (v, body) => {
554
+ const ctor = v?.constructor;
555
+ return ctor && ctor !== Object.prototype.constructor && ctor.name ? `${ctor.name}(${body})` : body;
556
+ };
557
+ const ownKeys = (o) => {
558
+ try {
559
+ return Reflect.ownKeys(o);
560
+ } catch {
561
+ return ["[ownKeys threw]"];
562
+ }
563
+ };
564
+ function go2(v, d = 0) {
565
+ if (Array.isArray(v)) {
566
+ if (seen.has(v)) return CIRCULAR;
567
+ seen.add(v);
568
+ return `[${v.map((x) => go2(x, d)).join(",")}]`;
569
+ }
570
+ if (isDate(v)) return formatDate(v);
571
+ if (hasProperty(v, "toString") && isFunction2(v["toString"]) && v["toString"] !== Object.prototype.toString && v["toString"] !== Array.prototype.toString) {
572
+ const s = safeToString(v);
573
+ if (v instanceof Error && v.cause) {
574
+ return `${s} (cause: ${go2(v.cause, d)})`;
575
+ }
576
+ return s;
577
+ }
578
+ if (isString(v)) return JSON.stringify(v);
579
+ if (isNumber(v) || v == null || isBoolean(v) || isSymbol(v)) return String(v);
580
+ if (isBigInt(v)) return String(v) + "n";
581
+ if (v instanceof Set || v instanceof Map) {
582
+ if (seen.has(v)) return CIRCULAR;
583
+ seen.add(v);
584
+ return `${v.constructor.name}(${go2(Array.from(v), d)})`;
585
+ }
586
+ if (isObject(v)) {
587
+ if (seen.has(v)) return CIRCULAR;
588
+ seen.add(v);
589
+ const keys6 = ownKeys(v);
590
+ {
591
+ const body2 = `{${keys6.map((k) => `${formatPropertyKey(k)}:${go2(v[k], d)}`).join(",")}}`;
592
+ return wrap(v, body2);
593
+ }
594
+ }
595
+ return String(v);
596
+ }
597
+ return go2(input, 0);
598
+ }
532
599
  var format = (x) => JSON.stringify(x, null, 2);
533
600
  var BaseProto = {
534
601
  toJSON() {
@@ -592,7 +659,7 @@ var redact = (u) => {
592
659
  return u;
593
660
  };
594
661
 
595
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Pipeable.js
662
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Pipeable.js
596
663
  var pipeArguments = (self, args2) => {
597
664
  switch (args2.length) {
598
665
  case 0:
@@ -625,7 +692,7 @@ var pipeArguments = (self, args2) => {
625
692
  }
626
693
  };
627
694
 
628
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/opCodes/effect.js
695
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/effect.js
629
696
  var OP_ASYNC = "Async";
630
697
  var OP_COMMIT = "Commit";
631
698
  var OP_FAILURE = "Failure";
@@ -642,11 +709,11 @@ var OP_WITH_RUNTIME = "WithRuntime";
642
709
  var OP_YIELD = "Yield";
643
710
  var OP_REVERT_FLAGS = "RevertFlags";
644
711
 
645
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/version.js
646
- var moduleVersion = "3.17.2";
712
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/version.js
713
+ var moduleVersion = "3.19.6";
647
714
  var getCurrentVersion = () => moduleVersion;
648
715
 
649
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/effectable.js
716
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/effectable.js
650
717
  var EffectTypeId = /* @__PURE__ */ Symbol.for("effect/Effect");
651
718
  var StreamTypeId = /* @__PURE__ */ Symbol.for("effect/Stream");
652
719
  var SinkTypeId = /* @__PURE__ */ Symbol.for("effect/Sink");
@@ -739,7 +806,7 @@ var Base = /* @__PURE__ */ function() {
739
806
  return Base3;
740
807
  }();
741
808
 
742
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/option.js
809
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/option.js
743
810
  var TypeId = /* @__PURE__ */ Symbol.for("effect/Option");
744
811
  var CommonProto = {
745
812
  ...EffectPrototype,
@@ -797,7 +864,7 @@ var some = (value2) => {
797
864
  return a;
798
865
  };
799
866
 
800
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/either.js
867
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/either.js
801
868
  var TypeId2 = /* @__PURE__ */ Symbol.for("effect/Either");
802
869
  var CommonProto2 = {
803
870
  ...EffectPrototype,
@@ -860,7 +927,7 @@ var right = (right3) => {
860
927
  };
861
928
  var fromOption = /* @__PURE__ */ dual(2, (self, onNone) => isNone(self) ? left(onNone()) : right(self.value));
862
929
 
863
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Either.js
930
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Either.js
864
931
  var right2 = right;
865
932
  var left2 = left;
866
933
  var fromOption2 = fromOption;
@@ -889,16 +956,16 @@ var getOrThrowWith = /* @__PURE__ */ dual(2, (self, onLeft) => {
889
956
  });
890
957
  var getOrThrow = /* @__PURE__ */ getOrThrowWith(() => new Error("getOrThrow called on a Left"));
891
958
 
892
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/array.js
959
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/array.js
893
960
  var isNonEmptyArray = (self) => self.length > 0;
894
961
 
895
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Order.js
962
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Order.js
896
963
  var make2 = (compare2) => (self, that) => self === that ? 0 : compare2(self, that);
897
964
  var number3 = /* @__PURE__ */ make2((self, that) => self < that ? -1 : 1);
898
965
  var mapInput2 = /* @__PURE__ */ dual(2, (self, f) => make2((b1, b2) => self(f(b1), f(b2))));
899
966
  var greaterThan = (O) => dual(2, (self, that) => O(self, that) === 1);
900
967
 
901
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Option.js
968
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Option.js
902
969
  var none2 = () => none;
903
970
  var some2 = some;
904
971
  var isOption2 = isOption;
@@ -931,10 +998,10 @@ var _equivalence = /* @__PURE__ */ equivalence();
931
998
  var contains = /* @__PURE__ */ containsWith(_equivalence);
932
999
  var exists = /* @__PURE__ */ dual(2, (self, refinement) => isNone2(self) ? false : refinement(self.value));
933
1000
 
934
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Tuple.js
1001
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Tuple.js
935
1002
  var make3 = (...elements) => elements;
936
1003
 
937
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Record.js
1004
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Record.js
938
1005
  var empty = () => ({});
939
1006
  var fromEntries = Object.fromEntries;
940
1007
  var collect = /* @__PURE__ */ dual(2, (self, f) => {
@@ -978,7 +1045,7 @@ var filter2 = /* @__PURE__ */ dual(2, (self, predicate) => {
978
1045
  });
979
1046
  var keys = (self) => Object.keys(self);
980
1047
 
981
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Array.js
1048
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Array.js
982
1049
  var allocate = (n) => new Array(n);
983
1050
  var makeBy = /* @__PURE__ */ dual(2, (n, f) => {
984
1051
  const max5 = Math.max(1, Math.floor(n));
@@ -1153,7 +1220,7 @@ var dedupeWith = /* @__PURE__ */ dual(2, (self, isEquivalent) => {
1153
1220
  var dedupe = (self) => dedupeWith(self, equivalence());
1154
1221
  var join = /* @__PURE__ */ dual(2, (self, sep) => fromIterable(self).join(sep));
1155
1222
 
1156
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Chunk.js
1223
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Chunk.js
1157
1224
  var TypeId3 = /* @__PURE__ */ Symbol.for("effect/Chunk");
1158
1225
  function copy2(src, srcPos, dest, destPos, len) {
1159
1226
  for (let i = srcPos; i < Math.min(src.length, srcPos + len); i++) {
@@ -1492,14 +1559,14 @@ var map5 = /* @__PURE__ */ dual(2, (self, f) => self.backing._tag === "ISingleto
1492
1559
  var tailNonEmpty2 = (self) => drop2(self, 1);
1493
1560
  var reduce2 = reduce;
1494
1561
 
1495
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/hashMap/config.js
1562
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/hashMap/config.js
1496
1563
  var SIZE = 5;
1497
1564
  var BUCKET_SIZE = /* @__PURE__ */ Math.pow(2, SIZE);
1498
1565
  var MASK = BUCKET_SIZE - 1;
1499
1566
  var MAX_INDEX_NODE = BUCKET_SIZE / 2;
1500
1567
  var MIN_ARRAY_NODE = BUCKET_SIZE / 4;
1501
1568
 
1502
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/hashMap/bitwise.js
1569
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/hashMap/bitwise.js
1503
1570
  function popcount(x) {
1504
1571
  x -= x >> 1 & 1431655765;
1505
1572
  x = (x & 858993459) + (x >> 2 & 858993459);
@@ -1518,13 +1585,13 @@ function fromBitmap(bitmap, bit) {
1518
1585
  return popcount(bitmap & bit - 1);
1519
1586
  }
1520
1587
 
1521
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/stack.js
1588
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/stack.js
1522
1589
  var make5 = (value2, previous) => ({
1523
1590
  value: value2,
1524
1591
  previous
1525
1592
  });
1526
1593
 
1527
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/hashMap/array.js
1594
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/hashMap/array.js
1528
1595
  function arrayUpdate(mutate4, at, v, arr) {
1529
1596
  let out = arr;
1530
1597
  if (!mutate4) {
@@ -1569,7 +1636,7 @@ function arraySpliceIn(mutate4, at, v, arr) {
1569
1636
  return out;
1570
1637
  }
1571
1638
 
1572
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/hashMap/node.js
1639
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/hashMap/node.js
1573
1640
  var EmptyNode = class _EmptyNode {
1574
1641
  _tag = "EmptyNode";
1575
1642
  modify(edit, _shift, f, hash2, key, size12) {
@@ -1804,7 +1871,7 @@ function mergeLeaves(edit, shift2, h1, n1, h2, n2) {
1804
1871
  }
1805
1872
  }
1806
1873
 
1807
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/hashMap.js
1874
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/hashMap.js
1808
1875
  var HashMapSymbolKey = "effect/HashMap";
1809
1876
  var HashMapTypeId = /* @__PURE__ */ Symbol.for(HashMapSymbolKey);
1810
1877
  var HashMapProto = {
@@ -2036,7 +2103,7 @@ var reduce3 = /* @__PURE__ */ dual(3, (self, zero2, f) => {
2036
2103
  return zero2;
2037
2104
  });
2038
2105
 
2039
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/hashSet.js
2106
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/hashSet.js
2040
2107
  var HashSetSymbolKey = "effect/HashSet";
2041
2108
  var HashSetTypeId = /* @__PURE__ */ Symbol.for(HashSetSymbolKey);
2042
2109
  var HashSetProto = {
@@ -2119,7 +2186,7 @@ var union2 = /* @__PURE__ */ dual(2, (self, that) => mutate2(empty5(), (set10) =
2119
2186
  var forEach2 = /* @__PURE__ */ dual(2, (self, f) => forEach(self._keyMap, (_, k) => f(k)));
2120
2187
  var reduce4 = /* @__PURE__ */ dual(3, (self, zero2, f) => reduce3(self._keyMap, zero2, (z, _, a) => f(z, a)));
2121
2188
 
2122
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/HashSet.js
2189
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/HashSet.js
2123
2190
  var empty6 = empty5;
2124
2191
  var fromIterable5 = fromIterable4;
2125
2192
  var make7 = make6;
@@ -2131,7 +2198,7 @@ var difference3 = difference2;
2131
2198
  var union3 = union2;
2132
2199
  var reduce5 = reduce4;
2133
2200
 
2134
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/opCodes/cause.js
2201
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/cause.js
2135
2202
  var OP_DIE = "Die";
2136
2203
  var OP_EMPTY = "Empty";
2137
2204
  var OP_FAIL = "Fail";
@@ -2139,7 +2206,7 @@ var OP_INTERRUPT = "Interrupt";
2139
2206
  var OP_PARALLEL = "Parallel";
2140
2207
  var OP_SEQUENTIAL = "Sequential";
2141
2208
 
2142
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/cause.js
2209
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/cause.js
2143
2210
  var CauseSymbolKey = "effect/Cause";
2144
2211
  var CauseTypeId = /* @__PURE__ */ Symbol.for(CauseSymbolKey);
2145
2212
  var variance = {
@@ -2694,7 +2761,7 @@ var prettyErrors = (cause2) => reduceWithContext(cause2, void 0, {
2694
2761
  sequentialCase: (_, l, r) => [...l, ...r]
2695
2762
  });
2696
2763
 
2697
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/context.js
2764
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/context.js
2698
2765
  var TagTypeId = /* @__PURE__ */ Symbol.for("effect/Context/Tag");
2699
2766
  var ReferenceTypeId = /* @__PURE__ */ Symbol.for("effect/Context/Reference");
2700
2767
  var STMSymbolKey = "effect/STM";
@@ -2866,8 +2933,17 @@ var merge2 = /* @__PURE__ */ dual(2, (self, that) => {
2866
2933
  }
2867
2934
  return makeContext(map22);
2868
2935
  });
2936
+ var mergeAll = (...ctxs) => {
2937
+ const map22 = /* @__PURE__ */ new Map();
2938
+ for (let i = 0; i < ctxs.length; i++) {
2939
+ ctxs[i].unsafeMap.forEach((value2, key) => {
2940
+ map22.set(key, value2);
2941
+ });
2942
+ }
2943
+ return makeContext(map22);
2944
+ };
2869
2945
 
2870
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Context.js
2946
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Context.js
2871
2947
  var GenericTag = makeGenericTag;
2872
2948
  var isContext2 = isContext;
2873
2949
  var isTag2 = isTag;
@@ -2878,9 +2954,10 @@ var get5 = get4;
2878
2954
  var unsafeGet4 = unsafeGet3;
2879
2955
  var getOption2 = getOption;
2880
2956
  var merge3 = merge2;
2957
+ var mergeAll2 = mergeAll;
2881
2958
  var Reference2 = Reference;
2882
2959
 
2883
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Duration.js
2960
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Duration.js
2884
2961
  var TypeId5 = /* @__PURE__ */ Symbol.for("effect/Duration");
2885
2962
  var bigint0 = /* @__PURE__ */ BigInt(0);
2886
2963
  var bigint24 = /* @__PURE__ */ BigInt(24);
@@ -3157,7 +3234,7 @@ var format2 = (self) => {
3157
3234
  return pieces.join(" ");
3158
3235
  };
3159
3236
 
3160
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/MutableRef.js
3237
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/MutableRef.js
3161
3238
  var TypeId6 = /* @__PURE__ */ Symbol.for("effect/MutableRef");
3162
3239
  var MutableRefProto = {
3163
3240
  [TypeId6]: TypeId6,
@@ -3195,7 +3272,7 @@ var set2 = /* @__PURE__ */ dual(2, (self, value2) => {
3195
3272
  return self;
3196
3273
  });
3197
3274
 
3198
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/fiberId.js
3275
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/fiberId.js
3199
3276
  var FiberIdSymbolKey = "effect/FiberId";
3200
3277
  var FiberIdTypeId = /* @__PURE__ */ Symbol.for(FiberIdSymbolKey);
3201
3278
  var OP_NONE = "None";
@@ -3325,7 +3402,7 @@ var unsafeMake = () => {
3325
3402
  return new Runtime(id2, Date.now());
3326
3403
  };
3327
3404
 
3328
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/FiberId.js
3405
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/FiberId.js
3329
3406
  var none4 = none3;
3330
3407
  var combine3 = combine2;
3331
3408
  var combineAll2 = combineAll;
@@ -3333,7 +3410,7 @@ var ids2 = ids;
3333
3410
  var threadName2 = threadName;
3334
3411
  var unsafeMake2 = unsafeMake;
3335
3412
 
3336
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/HashMap.js
3413
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/HashMap.js
3337
3414
  var empty10 = empty4;
3338
3415
  var fromIterable6 = fromIterable3;
3339
3416
  var isEmpty4 = isEmpty2;
@@ -3347,7 +3424,7 @@ var map10 = map6;
3347
3424
  var forEach3 = forEach;
3348
3425
  var reduce7 = reduce3;
3349
3426
 
3350
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/List.js
3427
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/List.js
3351
3428
  var TypeId7 = /* @__PURE__ */ Symbol.for("effect/List");
3352
3429
  var toArray2 = (self) => fromIterable(self);
3353
3430
  var getEquivalence4 = (isEquivalent) => mapInput(getEquivalence2(isEquivalent), toArray2);
@@ -3507,7 +3584,7 @@ var Structural = /* @__PURE__ */ function() {
3507
3584
  }();
3508
3585
  var struct = (as6) => Object.assign(Object.create(StructuralPrototype), as6);
3509
3586
 
3510
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/differ/contextPatch.js
3587
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/differ/contextPatch.js
3511
3588
  var ContextPatchTypeId = /* @__PURE__ */ Symbol.for("effect/DifferContextPatch");
3512
3589
  function variance2(a) {
3513
3590
  return a;
@@ -3633,7 +3710,7 @@ var patch = /* @__PURE__ */ dual(2, (self, context5) => {
3633
3710
  return makeContext(map22);
3634
3711
  });
3635
3712
 
3636
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/differ/hashSetPatch.js
3713
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/differ/hashSetPatch.js
3637
3714
  var HashSetPatchTypeId = /* @__PURE__ */ Symbol.for("effect/DifferHashSetPatch");
3638
3715
  function variance3(a) {
3639
3716
  return a;
@@ -3718,7 +3795,7 @@ var patch2 = /* @__PURE__ */ dual(2, (self, oldValue) => {
3718
3795
  return set10;
3719
3796
  });
3720
3797
 
3721
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/differ/readonlyArrayPatch.js
3798
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/differ/readonlyArrayPatch.js
3722
3799
  var ReadonlyArrayPatchTypeId = /* @__PURE__ */ Symbol.for("effect/DifferReadonlyArrayPatch");
3723
3800
  function variance4(a) {
3724
3801
  return a;
@@ -3832,7 +3909,7 @@ var patch3 = /* @__PURE__ */ dual(3, (self, oldValue, differ3) => {
3832
3909
  return readonlyArray2;
3833
3910
  });
3834
3911
 
3835
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/differ.js
3912
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/differ.js
3836
3913
  var DifferTypeId = /* @__PURE__ */ Symbol.for("effect/Differ");
3837
3914
  var DifferProto = {
3838
3915
  [DifferTypeId]: {
@@ -3894,7 +3971,7 @@ var updateWith = (f) => make14({
3894
3971
  patch: (patch11, oldValue) => f(oldValue, patch11(oldValue))
3895
3972
  });
3896
3973
 
3897
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/runtimeFlagsPatch.js
3974
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/runtimeFlagsPatch.js
3898
3975
  var BIT_MASK = 255;
3899
3976
  var BIT_SHIFT = 8;
3900
3977
  var active = (patch11) => patch11 & BIT_MASK;
@@ -3907,7 +3984,7 @@ var exclude = /* @__PURE__ */ dual(2, (self, flag) => make15(active(self) & ~fla
3907
3984
  var andThen = /* @__PURE__ */ dual(2, (self, that) => self | that);
3908
3985
  var invert = (n) => ~n >>> 0 & BIT_MASK;
3909
3986
 
3910
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/runtimeFlags.js
3987
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/runtimeFlags.js
3911
3988
  var None2 = 0;
3912
3989
  var Interruption = 1 << 0;
3913
3990
  var OpSupervision = 1 << 1;
@@ -3933,12 +4010,12 @@ var differ = /* @__PURE__ */ make14({
3933
4010
  patch: (_patch, oldValue) => patch4(oldValue, _patch)
3934
4011
  });
3935
4012
 
3936
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/RuntimeFlagsPatch.js
4013
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/RuntimeFlagsPatch.js
3937
4014
  var enable3 = enable;
3938
4015
  var disable3 = disable;
3939
4016
  var exclude2 = exclude;
3940
4017
 
3941
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/blockedRequests.js
4018
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/blockedRequests.js
3942
4019
  var par = (self, that) => ({
3943
4020
  _tag: "Par",
3944
4021
  left: self,
@@ -4081,11 +4158,11 @@ var sequentialCollectionCombine = (self, that) => new SequentialImpl(reduce7(tha
4081
4158
  var sequentialCollectionKeys = (self) => Array.from(keys3(self.map));
4082
4159
  var sequentialCollectionToChunk = (self) => Array.from(self.map);
4083
4160
 
4084
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/opCodes/deferred.js
4161
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/deferred.js
4085
4162
  var OP_STATE_PENDING = "Pending";
4086
4163
  var OP_STATE_DONE = "Done";
4087
4164
 
4088
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/deferred.js
4165
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/deferred.js
4089
4166
  var DeferredSymbolKey = "effect/Deferred";
4090
4167
  var DeferredTypeId = /* @__PURE__ */ Symbol.for(DeferredSymbolKey);
4091
4168
  var deferredVariance = {
@@ -4107,7 +4184,7 @@ var done = (effect3) => {
4107
4184
  };
4108
4185
  };
4109
4186
 
4110
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/singleShotGen.js
4187
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/singleShotGen.js
4111
4188
  var SingleShotGen2 = class _SingleShotGen {
4112
4189
  self;
4113
4190
  called = false;
@@ -4137,7 +4214,7 @@ var SingleShotGen2 = class _SingleShotGen {
4137
4214
  }
4138
4215
  };
4139
4216
 
4140
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/core.js
4217
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/core.js
4141
4218
  var blocked = (blockedRequests, _continue3) => {
4142
4219
  const effect3 = new EffectPrimitive("Blocked");
4143
4220
  effect3.effect_instruction_i0 = blockedRequests;
@@ -4617,6 +4694,18 @@ var gen = function() {
4617
4694
  const f = arguments.length === 1 ? arguments[0] : arguments[1].bind(arguments[0]);
4618
4695
  return fromIterator(() => f(pipe));
4619
4696
  };
4697
+ var fnUntraced = (body, ...pipeables) => Object.defineProperty(pipeables.length === 0 ? function(...args2) {
4698
+ return fromIterator(() => body.apply(this, args2));
4699
+ } : function(...args2) {
4700
+ let effect3 = fromIterator(() => body.apply(this, args2));
4701
+ for (const x of pipeables) {
4702
+ effect3 = x(effect3, ...args2);
4703
+ }
4704
+ return effect3;
4705
+ }, "length", {
4706
+ value: body.length,
4707
+ configurable: true
4708
+ });
4620
4709
  var withRuntimeFlags = /* @__PURE__ */ dual(2, (self, update6) => {
4621
4710
  const effect3 = new EffectPrimitive(OP_UPDATE_RUNTIME_FLAGS);
4622
4711
  effect3.effect_instruction_i0 = update6;
@@ -4887,14 +4976,6 @@ var UnknownException = /* @__PURE__ */ function() {
4887
4976
  var exitIsExit = (u) => isEffect(u) && "_tag" in u && (u._tag === "Success" || u._tag === "Failure");
4888
4977
  var exitIsFailure = (self) => self._tag === "Failure";
4889
4978
  var exitIsSuccess = (self) => self._tag === "Success";
4890
- var exitIsInterrupted = (self) => {
4891
- switch (self._tag) {
4892
- case OP_FAILURE:
4893
- return isInterrupted(self.effect_instruction_i0);
4894
- case OP_SUCCESS:
4895
- return false;
4896
- }
4897
- };
4898
4979
  var exitAs = /* @__PURE__ */ dual(2, (self, value2) => {
4899
4980
  switch (self._tag) {
4900
4981
  case OP_FAILURE: {
@@ -5092,7 +5173,7 @@ var NoopSpanProto = {
5092
5173
  };
5093
5174
  var noopSpan = (options3) => Object.assign(Object.create(NoopSpanProto), options3);
5094
5175
 
5095
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/clock.js
5176
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/clock.js
5096
5177
  var ClockSymbolKey = "effect/Clock";
5097
5178
  var ClockTypeId = /* @__PURE__ */ Symbol.for(ClockSymbolKey);
5098
5179
  var clockTag = /* @__PURE__ */ GenericTag("effect/Clock");
@@ -5157,7 +5238,7 @@ var ClockImpl = class {
5157
5238
  };
5158
5239
  var make18 = () => new ClockImpl();
5159
5240
 
5160
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Number.js
5241
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Number.js
5161
5242
  var Order = number3;
5162
5243
  var parse = (s) => {
5163
5244
  if (s === "NaN") {
@@ -5176,10 +5257,10 @@ var parse = (s) => {
5176
5257
  return Number.isNaN(n) ? none : some(n);
5177
5258
  };
5178
5259
 
5179
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/RegExp.js
5260
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/RegExp.js
5180
5261
  var escape = (string2) => string2.replace(/[/\\^$*+?.()|[\]{}]/g, "\\$&");
5181
5262
 
5182
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/opCodes/configError.js
5263
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/configError.js
5183
5264
  var OP_AND = "And";
5184
5265
  var OP_OR = "Or";
5185
5266
  var OP_INVALID_DATA = "InvalidData";
@@ -5187,7 +5268,7 @@ var OP_MISSING_DATA = "MissingData";
5187
5268
  var OP_SOURCE_UNAVAILABLE = "SourceUnavailable";
5188
5269
  var OP_UNSUPPORTED = "Unsupported";
5189
5270
 
5190
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/configError.js
5271
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/configError.js
5191
5272
  var ConfigErrorSymbolKey = "effect/ConfigError";
5192
5273
  var ConfigErrorTypeId = /* @__PURE__ */ Symbol.for(ConfigErrorSymbolKey);
5193
5274
  var proto2 = {
@@ -5320,7 +5401,7 @@ var prefixed = /* @__PURE__ */ dual(2, (self, prefix) => {
5320
5401
  }
5321
5402
  });
5322
5403
 
5323
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/configProvider/pathPatch.js
5404
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/configProvider/pathPatch.js
5324
5405
  var empty16 = {
5325
5406
  _tag: "Empty"
5326
5407
  };
@@ -5363,7 +5444,7 @@ var patch5 = /* @__PURE__ */ dual(2, (path, patch11) => {
5363
5444
  return right2(output);
5364
5445
  });
5365
5446
 
5366
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/opCodes/config.js
5447
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/config.js
5367
5448
  var OP_CONSTANT = "Constant";
5368
5449
  var OP_FAIL2 = "Fail";
5369
5450
  var OP_FALLBACK = "Fallback";
@@ -5376,7 +5457,7 @@ var OP_SEQUENCE = "Sequence";
5376
5457
  var OP_HASHMAP = "HashMap";
5377
5458
  var OP_ZIP_WITH = "ZipWith";
5378
5459
 
5379
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/configProvider.js
5460
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/configProvider.js
5380
5461
  var concat = (l, r) => [...l, ...r];
5381
5462
  var ConfigProviderSymbolKey = "effect/ConfigProvider";
5382
5463
  var ConfigProviderTypeId = /* @__PURE__ */ Symbol.for(ConfigProviderSymbolKey);
@@ -5580,7 +5661,7 @@ var parseInteger = (str) => {
5580
5661
  return Number.isNaN(parsedIndex) ? none2() : some2(parsedIndex);
5581
5662
  };
5582
5663
 
5583
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/defaultServices/console.js
5664
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/defaultServices/console.js
5584
5665
  var TypeId8 = /* @__PURE__ */ Symbol.for("effect/Console");
5585
5666
  var consoleTag = /* @__PURE__ */ GenericTag("effect/Console");
5586
5667
  var defaultConsole = {
@@ -5668,7 +5749,7 @@ var defaultConsole = {
5668
5749
  unsafe: console
5669
5750
  };
5670
5751
 
5671
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/random.js
5752
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/random.js
5672
5753
  var RandomSymbolKey = "effect/Random";
5673
5754
  var RandomTypeId = /* @__PURE__ */ Symbol.for(RandomSymbolKey);
5674
5755
  var randomTag = /* @__PURE__ */ GenericTag("effect/Random");
@@ -5716,7 +5797,7 @@ var swap = (buffer2, index1, index2) => {
5716
5797
  };
5717
5798
  var make21 = (seed) => new RandomImpl(hash(seed));
5718
5799
 
5719
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/tracer.js
5800
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/tracer.js
5720
5801
  var TracerTypeId = /* @__PURE__ */ Symbol.for("effect/Tracer");
5721
5802
  var make22 = (options3) => ({
5722
5803
  [TracerTypeId]: TracerTypeId,
@@ -5817,7 +5898,7 @@ var DisablePropagation = /* @__PURE__ */ Reference2()("effect/Tracer/DisableProp
5817
5898
  defaultValue: constFalse
5818
5899
  });
5819
5900
 
5820
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/defaultServices.js
5901
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/defaultServices.js
5821
5902
  var liveServices = /* @__PURE__ */ pipe(/* @__PURE__ */ empty9(), /* @__PURE__ */ add4(clockTag, /* @__PURE__ */ make18()), /* @__PURE__ */ add4(consoleTag, defaultConsole), /* @__PURE__ */ add4(randomTag, /* @__PURE__ */ make21(/* @__PURE__ */ Math.random())), /* @__PURE__ */ add4(configProviderTag, /* @__PURE__ */ fromEnv()), /* @__PURE__ */ add4(tracerTag, nativeTracer));
5822
5903
  var currentServices = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/DefaultServices/currentServices"), () => fiberRefUnsafeMakeContext(liveServices));
5823
5904
  var sleep = (duration) => {
@@ -5828,20 +5909,13 @@ var defaultServicesWith = (f) => withFiberRuntime((fiber) => f(fiber.currentDefa
5828
5909
  var clockWith = (f) => defaultServicesWith((services) => f(services.unsafeMap.get(clockTag.key)));
5829
5910
  var currentTimeMillis = /* @__PURE__ */ clockWith((clock3) => clock3.currentTimeMillis);
5830
5911
 
5831
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Deferred.js
5832
- var make23 = deferredMake;
5833
- var _await = deferredAwait;
5834
- var failCause2 = deferredFailCause;
5835
- var isDone = deferredIsDone;
5836
- var succeed2 = deferredSucceed;
5837
-
5838
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Effectable.js
5912
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Effectable.js
5839
5913
  var EffectPrototype2 = EffectPrototype;
5840
5914
  var Base2 = Base;
5841
5915
  var Class2 = class extends Base2 {
5842
5916
  };
5843
5917
 
5844
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/executionStrategy.js
5918
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/executionStrategy.js
5845
5919
  var OP_SEQUENTIAL2 = "Sequential";
5846
5920
  var OP_PARALLEL2 = "Parallel";
5847
5921
  var OP_PARALLEL_N = "ParallelN";
@@ -5858,12 +5932,12 @@ var parallelN = (parallelism) => ({
5858
5932
  var isSequential = (self) => self._tag === OP_SEQUENTIAL2;
5859
5933
  var isParallel = (self) => self._tag === OP_PARALLEL2;
5860
5934
 
5861
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/ExecutionStrategy.js
5935
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/ExecutionStrategy.js
5862
5936
  var sequential3 = sequential2;
5863
5937
  var parallel3 = parallel2;
5864
5938
  var parallelN2 = parallelN;
5865
5939
 
5866
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/fiberRefs.js
5940
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/fiberRefs.js
5867
5941
  function unsafeMake3(fiberRefLocals) {
5868
5942
  return new FiberRefsImpl(fiberRefLocals);
5869
5943
  }
@@ -6030,13 +6104,13 @@ var updateManyAs = /* @__PURE__ */ dual(2, (self, {
6030
6104
  return new FiberRefsImpl(locals);
6031
6105
  });
6032
6106
 
6033
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/FiberRefs.js
6107
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/FiberRefs.js
6034
6108
  var get9 = get8;
6035
6109
  var getOrDefault2 = getOrDefault;
6036
6110
  var updateManyAs2 = updateManyAs;
6037
6111
  var empty18 = empty17;
6038
6112
 
6039
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/fiberRefs/patch.js
6113
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/fiberRefs/patch.js
6040
6114
  var OP_EMPTY2 = "Empty";
6041
6115
  var OP_ADD = "Add";
6042
6116
  var OP_REMOVE = "Remove";
@@ -6126,11 +6200,11 @@ var patch6 = /* @__PURE__ */ dual(3, (self, fiberId2, oldValue) => {
6126
6200
  return fiberRefs3;
6127
6201
  });
6128
6202
 
6129
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/FiberRefsPatch.js
6203
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/FiberRefsPatch.js
6130
6204
  var diff6 = diff5;
6131
6205
  var patch7 = patch6;
6132
6206
 
6133
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/fiberStatus.js
6207
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/fiberStatus.js
6134
6208
  var FiberStatusSymbolKey = "effect/FiberStatus";
6135
6209
  var FiberStatusTypeId = /* @__PURE__ */ Symbol.for(FiberStatusSymbolKey);
6136
6210
  var OP_DONE = "Done";
@@ -6181,15 +6255,15 @@ var done2 = /* @__PURE__ */ new Done();
6181
6255
  var running = (runtimeFlags2) => new Running(runtimeFlags2);
6182
6256
  var suspended = (runtimeFlags2, blockingOn) => new Suspended(runtimeFlags2, blockingOn);
6183
6257
  var isFiberStatus = (u) => hasProperty(u, FiberStatusTypeId);
6184
- var isDone2 = (self) => self._tag === OP_DONE;
6258
+ var isDone = (self) => self._tag === OP_DONE;
6185
6259
 
6186
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/FiberStatus.js
6260
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/FiberStatus.js
6187
6261
  var done3 = done2;
6188
6262
  var running2 = running;
6189
6263
  var suspended2 = suspended;
6190
- var isDone3 = isDone2;
6264
+ var isDone2 = isDone;
6191
6265
 
6192
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/LogLevel.js
6266
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/LogLevel.js
6193
6267
  var All = logLevelAll;
6194
6268
  var Fatal = logLevelFatal;
6195
6269
  var Error2 = logLevelError;
@@ -6221,7 +6295,7 @@ var fromLiteral = (literal) => {
6221
6295
  }
6222
6296
  };
6223
6297
 
6224
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Micro.js
6298
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Micro.js
6225
6299
  var TypeId9 = /* @__PURE__ */ Symbol.for("effect/Micro");
6226
6300
  var MicroExitTypeId = /* @__PURE__ */ Symbol.for("effect/Micro/MicroExit");
6227
6301
  var MicroCauseTypeId = /* @__PURE__ */ Symbol.for("effect/Micro/MicroCause");
@@ -6494,7 +6568,7 @@ var makeExit = (options3) => {
6494
6568
  return self;
6495
6569
  };
6496
6570
  };
6497
- var succeed3 = /* @__PURE__ */ makeExit({
6571
+ var succeed2 = /* @__PURE__ */ makeExit({
6498
6572
  op: "Success",
6499
6573
  prop: "value",
6500
6574
  eval(fiber) {
@@ -6502,7 +6576,7 @@ var succeed3 = /* @__PURE__ */ makeExit({
6502
6576
  return cont ? cont[successCont](this[args], fiber) : fiber.yieldWith(this);
6503
6577
  }
6504
6578
  });
6505
- var failCause3 = /* @__PURE__ */ makeExit({
6579
+ var failCause2 = /* @__PURE__ */ makeExit({
6506
6580
  op: "Failure",
6507
6581
  prop: "cause",
6508
6582
  eval(fiber) {
@@ -6527,7 +6601,7 @@ var yieldNowWith = /* @__PURE__ */ makePrimitive({
6527
6601
  }
6528
6602
  });
6529
6603
  var yieldNow2 = /* @__PURE__ */ yieldNowWith(0);
6530
- var void_2 = /* @__PURE__ */ succeed3(void 0);
6604
+ var void_2 = /* @__PURE__ */ succeed2(void 0);
6531
6605
  var withMicroFiber = /* @__PURE__ */ makePrimitive({
6532
6606
  op: "WithMicroFiber",
6533
6607
  eval(fiber) {
@@ -6548,8 +6622,8 @@ var OnSuccessProto = /* @__PURE__ */ makePrimitiveProto({
6548
6622
  }
6549
6623
  });
6550
6624
  var isMicroExit = (u) => hasProperty(u, MicroExitTypeId);
6551
- var exitSucceed2 = succeed3;
6552
- var exitFailCause2 = failCause3;
6625
+ var exitSucceed2 = succeed2;
6626
+ var exitFailCause2 = failCause2;
6553
6627
  var exitInterrupt2 = /* @__PURE__ */ exitFailCause2(/* @__PURE__ */ causeInterrupt());
6554
6628
  var exitDie2 = (defect) => exitFailCause2(causeDie(defect));
6555
6629
  var exitVoid2 = /* @__PURE__ */ exitSucceed2(void 0);
@@ -6631,8 +6705,8 @@ var OnSuccessAndFailureProto = /* @__PURE__ */ makePrimitiveProto({
6631
6705
  }
6632
6706
  });
6633
6707
  var onExit2 = /* @__PURE__ */ dual(2, (self, f) => uninterruptibleMask2((restore) => matchCauseEffect2(restore(self), {
6634
- onFailure: (cause2) => flatMap8(f(exitFailCause2(cause2)), () => failCause3(cause2)),
6635
- onSuccess: (a) => flatMap8(f(exitSucceed2(a)), () => succeed3(a))
6708
+ onFailure: (cause2) => flatMap8(f(exitFailCause2(cause2)), () => failCause2(cause2)),
6709
+ onSuccess: (a) => flatMap8(f(exitSucceed2(a)), () => succeed2(a))
6636
6710
  })));
6637
6711
  var setInterruptible = /* @__PURE__ */ makePrimitive({
6638
6712
  op: "SetInterruptible",
@@ -6662,10 +6736,10 @@ var runFork = (effect3, options3) => {
6662
6736
  return fiber;
6663
6737
  };
6664
6738
 
6665
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Readable.js
6739
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Readable.js
6666
6740
  var TypeId10 = /* @__PURE__ */ Symbol.for("effect/Readable");
6667
6741
 
6668
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/ref.js
6742
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/ref.js
6669
6743
  var RefTypeId = /* @__PURE__ */ Symbol.for("effect/Ref");
6670
6744
  var refVariance = {
6671
6745
  /* c8 ignore next */
@@ -6696,21 +6770,21 @@ var RefImpl = class extends Class2 {
6696
6770
  }
6697
6771
  };
6698
6772
  var unsafeMake4 = (value2) => new RefImpl(make11(value2));
6699
- var make24 = (value2) => sync(() => unsafeMake4(value2));
6773
+ var make23 = (value2) => sync(() => unsafeMake4(value2));
6700
6774
  var get10 = (self) => self.get;
6701
6775
  var set4 = /* @__PURE__ */ dual(2, (self, value2) => self.modify(() => [void 0, value2]));
6702
6776
  var getAndSet = /* @__PURE__ */ dual(2, (self, value2) => self.modify((a) => [a, value2]));
6703
6777
  var modify3 = /* @__PURE__ */ dual(2, (self, f) => self.modify(f));
6704
6778
  var update2 = /* @__PURE__ */ dual(2, (self, f) => self.modify((a) => [void 0, f(a)]));
6705
6779
 
6706
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Ref.js
6707
- var make25 = make24;
6780
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Ref.js
6781
+ var make24 = make23;
6708
6782
  var get11 = get10;
6709
6783
  var getAndSet2 = getAndSet;
6710
6784
  var modify4 = modify3;
6711
6785
  var update3 = update2;
6712
6786
 
6713
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Scheduler.js
6787
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Scheduler.js
6714
6788
  var PriorityBuckets = class {
6715
6789
  /**
6716
6790
  * @since 2.0.0
@@ -6840,10 +6914,10 @@ var SyncScheduler = class {
6840
6914
  };
6841
6915
  var currentScheduler = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentScheduler"), () => fiberRefUnsafeMake(defaultScheduler));
6842
6916
 
6843
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/completedRequestMap.js
6917
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/completedRequestMap.js
6844
6918
  var currentRequestMap = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentRequestMap"), () => fiberRefUnsafeMake(/* @__PURE__ */ new Map()));
6845
6919
 
6846
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/concurrency.js
6920
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/concurrency.js
6847
6921
  var match7 = (concurrency, sequential4, unbounded4, bounded4) => {
6848
6922
  switch (concurrency) {
6849
6923
  case void 0:
@@ -6857,13 +6931,13 @@ var match7 = (concurrency, sequential4, unbounded4, bounded4) => {
6857
6931
  }
6858
6932
  };
6859
6933
 
6860
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Clock.js
6934
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Clock.js
6861
6935
  var sleep2 = sleep;
6862
6936
  var currentTimeMillis2 = currentTimeMillis;
6863
6937
  var Clock = clockTag;
6864
6938
 
6865
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/logSpan.js
6866
- var make26 = (label, startTime) => ({
6939
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/logSpan.js
6940
+ var make25 = (label, startTime) => ({
6867
6941
  label,
6868
6942
  startTime
6869
6943
  });
@@ -6873,10 +6947,10 @@ var render = (now) => (self) => {
6873
6947
  return `${label}=${now - self.startTime}ms`;
6874
6948
  };
6875
6949
 
6876
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/LogSpan.js
6877
- var make27 = make26;
6950
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/LogSpan.js
6951
+ var make26 = make25;
6878
6952
 
6879
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/metric/label.js
6953
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/metric/label.js
6880
6954
  var MetricLabelSymbolKey = "effect/MetricLabel";
6881
6955
  var MetricLabelTypeId = /* @__PURE__ */ Symbol.for(MetricLabelSymbolKey);
6882
6956
  var MetricLabelImpl = class {
@@ -6899,12 +6973,12 @@ var MetricLabelImpl = class {
6899
6973
  return pipeArguments(this, arguments);
6900
6974
  }
6901
6975
  };
6902
- var make28 = (key, value2) => {
6976
+ var make27 = (key, value2) => {
6903
6977
  return new MetricLabelImpl(key, value2);
6904
6978
  };
6905
6979
  var isMetricLabel = (u) => hasProperty(u, MetricLabelTypeId);
6906
6980
 
6907
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/core-effect.js
6981
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/core-effect.js
6908
6982
  var asSome = (self) => map11(self, some2);
6909
6983
  var try_ = (arg) => {
6910
6984
  let evaluate2;
@@ -6958,27 +7032,27 @@ var logWithLevel = (level) => (...message) => {
6958
7032
  });
6959
7033
  };
6960
7034
  var logInfo = /* @__PURE__ */ logWithLevel(Info);
6961
- var withLogSpan = /* @__PURE__ */ dual(2, (effect3, label) => flatMap7(currentTimeMillis2, (now) => fiberRefLocallyWith(effect3, currentLogSpan, prepend3(make27(label, now)))));
7035
+ var withLogSpan = /* @__PURE__ */ dual(2, (effect3, label) => flatMap7(currentTimeMillis2, (now) => fiberRefLocallyWith(effect3, currentLogSpan, prepend3(make26(label, now)))));
6962
7036
  var mapErrorCause = /* @__PURE__ */ dual(2, (self, f) => matchCauseEffect(self, {
6963
7037
  onFailure: (c) => failCauseSync(() => f(c)),
6964
7038
  onSuccess: succeed
6965
7039
  }));
6966
7040
  var memoize = (self) => pipe(deferredMake(), flatMap7((deferred) => pipe(diffFiberRefsAndRuntimeFlags(self), intoDeferred(deferred), once, map11((complete2) => zipRight(complete2, pipe(deferredAwait(deferred), flatMap7(([patch11, a]) => as(zip2(patchFiberRefs(patch11[0]), updateRuntimeFlags(patch11[1])), a))))))));
6967
7041
  var negate = (self) => map11(self, (b) => !b);
6968
- var once = (self) => map11(make25(true), (ref) => asVoid(whenEffect(self, getAndSet2(ref, false))));
7042
+ var once = (self) => map11(make24(true), (ref) => asVoid(whenEffect(self, getAndSet2(ref, false))));
6969
7043
  var patchFiberRefs = (patch11) => updateFiberRefs((fiberId2, fiberRefs3) => pipe(patch11, patch6(fiberId2, fiberRefs3)));
6970
7044
  var promise = (evaluate2) => evaluate2.length >= 1 ? async_((resolve, signal) => {
6971
7045
  try {
6972
- evaluate2(signal).then((a) => resolve(exitSucceed(a)), (e) => resolve(exitDie(e)));
7046
+ evaluate2(signal).then((a) => resolve(succeed(a)), (e) => resolve(die2(e)));
6973
7047
  } catch (e) {
6974
- resolve(exitDie(e));
7048
+ resolve(die2(e));
6975
7049
  }
6976
7050
  }) : async_((resolve) => {
6977
7051
  try {
6978
7052
  ;
6979
- evaluate2().then((a) => resolve(exitSucceed(a)), (e) => resolve(exitDie(e)));
7053
+ evaluate2().then((a) => resolve(succeed(a)), (e) => resolve(die2(e)));
6980
7054
  } catch (e) {
6981
- resolve(exitDie(e));
7055
+ resolve(die2(e));
6982
7056
  }
6983
7057
  });
6984
7058
  var provideService = /* @__PURE__ */ dual(3, (self, tag2, service2) => contextWithEffect((env) => provideContext(self, add4(env, tag2, service2))));
@@ -7003,7 +7077,7 @@ var tryPromise = (arg) => {
7003
7077
  if (evaluate2.length >= 1) {
7004
7078
  return async_((resolve, signal) => {
7005
7079
  try {
7006
- evaluate2(signal).then((a) => resolve(exitSucceed(a)), (e) => resolve(fail13(e)));
7080
+ evaluate2(signal).then((a) => resolve(succeed(a)), (e) => resolve(fail13(e)));
7007
7081
  } catch (e) {
7008
7082
  resolve(fail13(e));
7009
7083
  }
@@ -7011,7 +7085,7 @@ var tryPromise = (arg) => {
7011
7085
  }
7012
7086
  return async_((resolve) => {
7013
7087
  try {
7014
- evaluate2().then((a) => resolve(exitSucceed(a)), (e) => resolve(fail13(e)));
7088
+ evaluate2().then((a) => resolve(succeed(a)), (e) => resolve(fail13(e)));
7015
7089
  } catch (e) {
7016
7090
  resolve(fail13(e));
7017
7091
  }
@@ -7053,7 +7127,7 @@ var unsafeMakeSpan = (fiber, name, options3) => {
7053
7127
  const annotationsFromEnv = get9(fiberRefs3, currentTracerSpanAnnotations);
7054
7128
  const linksFromEnv = get9(fiberRefs3, currentTracerSpanLinks);
7055
7129
  const links = linksFromEnv._tag === "Some" ? options3.links !== void 0 ? [...toReadonlyArray(linksFromEnv.value), ...options3.links ?? []] : toReadonlyArray(linksFromEnv.value) : options3.links ?? empty2();
7056
- span2 = tracer2.span(name, parent, options3.context ?? empty9(), links, timingEnabled ? clock3.unsafeCurrentTimeNanos() : bigint02, options3.kind ?? "internal");
7130
+ span2 = tracer2.span(name, parent, options3.context ?? empty9(), links, timingEnabled ? clock3.unsafeCurrentTimeNanos() : bigint02, options3.kind ?? "internal", options3);
7057
7131
  if (annotationsFromEnv._tag === "Some") {
7058
7132
  forEach3(annotationsFromEnv.value, (value2, key) => span2.attribute(key, value2));
7059
7133
  }
@@ -7087,22 +7161,21 @@ var useSpan = (name, ...args2) => {
7087
7161
  };
7088
7162
  var withParentSpan = /* @__PURE__ */ dual(2, (self, span2) => provideService(self, spanTag, span2));
7089
7163
 
7090
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Exit.js
7164
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Exit.js
7091
7165
  var isFailure = exitIsFailure;
7092
7166
  var isSuccess = exitIsSuccess;
7093
- var isInterrupted2 = exitIsInterrupted;
7094
7167
  var all2 = exitCollectAll;
7095
7168
  var die3 = exitDie;
7096
7169
  var fail3 = exitFail;
7097
- var failCause4 = exitFailCause;
7170
+ var failCause3 = exitFailCause;
7098
7171
  var map13 = exitMap;
7099
7172
  var match9 = exitMatch;
7100
- var succeed4 = exitSucceed;
7173
+ var succeed3 = exitSucceed;
7101
7174
  var void_3 = exitVoid;
7102
7175
  var zip3 = exitZip;
7103
7176
  var zipRight2 = exitZipRight;
7104
7177
 
7105
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/fiberMessage.js
7178
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/fiberMessage.js
7106
7179
  var OP_INTERRUPT_SIGNAL = "InterruptSignal";
7107
7180
  var OP_STATEFUL = "Stateful";
7108
7181
  var OP_RESUME = "Resume";
@@ -7123,7 +7196,7 @@ var yieldNow3 = () => ({
7123
7196
  _tag: OP_YIELD_NOW
7124
7197
  });
7125
7198
 
7126
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/fiberScope.js
7199
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/fiberScope.js
7127
7200
  var FiberScopeSymbolKey = "effect/FiberScope";
7128
7201
  var FiberScopeTypeId = /* @__PURE__ */ Symbol.for(FiberScopeSymbolKey);
7129
7202
  var Global = class {
@@ -7159,7 +7232,7 @@ var unsafeMake5 = (fiber) => {
7159
7232
  };
7160
7233
  var globalScope = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberScope/Global"), () => new Global());
7161
7234
 
7162
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/fiber.js
7235
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/fiber.js
7163
7236
  var FiberSymbolKey = "effect/Fiber";
7164
7237
  var FiberTypeId = /* @__PURE__ */ Symbol.for(FiberSymbolKey);
7165
7238
  var fiberVariance2 = {
@@ -7170,14 +7243,14 @@ var fiberVariance2 = {
7170
7243
  };
7171
7244
  var RuntimeFiberSymbolKey = "effect/Fiber";
7172
7245
  var RuntimeFiberTypeId = /* @__PURE__ */ Symbol.for(RuntimeFiberSymbolKey);
7173
- var _await2 = (self) => self.await;
7246
+ var _await = (self) => self.await;
7174
7247
  var inheritAll = (self) => self.inheritAll;
7175
7248
  var join2 = (self) => zipLeft(flatten3(self.await), self.inheritAll);
7176
7249
  ({
7177
7250
  ...CommitPrototype});
7178
7251
  var currentFiberURI = "effect/FiberCurrent";
7179
7252
 
7180
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/logger.js
7253
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/logger.js
7181
7254
  var LoggerSymbolKey = "effect/Logger";
7182
7255
  var LoggerTypeId = /* @__PURE__ */ Symbol.for(LoggerSymbolKey);
7183
7256
  var loggerVariance = {
@@ -7204,9 +7277,9 @@ var format3 = (quoteValue, whitespace) => ({
7204
7277
  spans
7205
7278
  }) => {
7206
7279
  const formatValue = (value2) => value2.match(textOnly) ? value2 : quoteValue(value2);
7207
- const format6 = (label, value2) => `${formatLabel(label)}=${formatValue(value2)}`;
7208
- const append5 = (label, value2) => " " + format6(label, value2);
7209
- let out = format6("timestamp", date.toISOString());
7280
+ const format5 = (label, value2) => `${formatLabel(label)}=${formatValue(value2)}`;
7281
+ const append5 = (label, value2) => " " + format5(label, value2);
7282
+ let out = format5("timestamp", date.toISOString());
7210
7283
  out += append5("level", logLevel.label);
7211
7284
  out += append5("fiber", threadName(fiberId2));
7212
7285
  const messages = ensure(message);
@@ -7299,7 +7372,6 @@ var prettyLogger = (options3) => {
7299
7372
  });
7300
7373
  };
7301
7374
  var prettyLoggerTty = (options3) => {
7302
- const processIsBun = typeof process === "object" && "isBun" in process && process.isBun === true;
7303
7375
  const color = options3.colors ? withColor : withColorNoop;
7304
7376
  return makeLogger(({
7305
7377
  annotations: annotations2,
@@ -7333,7 +7405,7 @@ var prettyLoggerTty = (options3) => {
7333
7405
  }
7334
7406
  }
7335
7407
  log2(firstLine);
7336
- if (!processIsBun) console2.group();
7408
+ console2.group();
7337
7409
  if (!isEmpty3(cause2)) {
7338
7410
  log2(pretty(cause2, {
7339
7411
  renderErrorCause: true
@@ -7349,7 +7421,7 @@ var prettyLoggerTty = (options3) => {
7349
7421
  log2(color(`${key}:`, colors.bold, colors.white), redact(value2));
7350
7422
  }
7351
7423
  }
7352
- if (!processIsBun) console2.groupEnd();
7424
+ console2.groupEnd();
7353
7425
  });
7354
7426
  };
7355
7427
  var prettyLoggerBrowser = (options3) => {
@@ -7421,7 +7493,7 @@ var prettyLoggerBrowser = (options3) => {
7421
7493
  };
7422
7494
  var prettyLoggerDefault = /* @__PURE__ */ globalValue("effect/Logger/prettyLoggerDefault", () => prettyLogger());
7423
7495
 
7424
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/metric/boundaries.js
7496
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/metric/boundaries.js
7425
7497
  var MetricBoundariesSymbolKey = "effect/MetricBoundaries";
7426
7498
  var MetricBoundariesTypeId = /* @__PURE__ */ Symbol.for(MetricBoundariesSymbolKey);
7427
7499
  var MetricBoundariesImpl = class {
@@ -7449,7 +7521,7 @@ var fromIterable7 = (iterable) => {
7449
7521
  };
7450
7522
  var exponential = (options3) => pipe(makeBy(options3.count - 1, (i) => options3.start * Math.pow(options3.factor, i)), unsafeFromArray, fromIterable7);
7451
7523
 
7452
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/metric/keyType.js
7524
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/metric/keyType.js
7453
7525
  var MetricKeyTypeSymbolKey = "effect/MetricKeyType";
7454
7526
  var MetricKeyTypeTypeId = /* @__PURE__ */ Symbol.for(MetricKeyTypeSymbolKey);
7455
7527
  var CounterKeyTypeSymbolKey = "effect/MetricKeyType/Counter";
@@ -7518,7 +7590,7 @@ var isGaugeKey = (u) => hasProperty(u, GaugeKeyTypeTypeId);
7518
7590
  var isHistogramKey = (u) => hasProperty(u, HistogramKeyTypeTypeId);
7519
7591
  var isSummaryKey = (u) => hasProperty(u, SummaryKeyTypeTypeId);
7520
7592
 
7521
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/metric/key.js
7593
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/metric/key.js
7522
7594
  var MetricKeySymbolKey = "effect/MetricKey";
7523
7595
  var MetricKeyTypeId = /* @__PURE__ */ Symbol.for(MetricKeySymbolKey);
7524
7596
  var metricKeyVariance = {
@@ -7555,7 +7627,7 @@ var counter2 = (name, options3) => new MetricKeyImpl(name, counter(options3), fr
7555
7627
  var histogram2 = (name, boundaries, description) => new MetricKeyImpl(name, histogram(boundaries), fromNullable(description));
7556
7628
  var taggedWithLabels = /* @__PURE__ */ dual(2, (self, extraTags) => extraTags.length === 0 ? self : new MetricKeyImpl(self.name, self.keyType, self.description, union(self.tags, extraTags)));
7557
7629
 
7558
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/MutableHashMap.js
7630
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/MutableHashMap.js
7559
7631
  var TypeId11 = /* @__PURE__ */ Symbol.for("effect/MutableHashMap");
7560
7632
  var MutableHashMapProto = {
7561
7633
  [TypeId11]: TypeId11,
@@ -7682,7 +7754,7 @@ var removeFromBucket = (self, bucket, key) => {
7682
7754
  }
7683
7755
  };
7684
7756
 
7685
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/metric/state.js
7757
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/metric/state.js
7686
7758
  var MetricStateSymbolKey = "effect/MetricState";
7687
7759
  var MetricStateTypeId = /* @__PURE__ */ Symbol.for(MetricStateSymbolKey);
7688
7760
  var CounterStateSymbolKey = "effect/MetricState/Counter";
@@ -7817,7 +7889,7 @@ var isGaugeState = (u) => hasProperty(u, GaugeStateTypeId);
7817
7889
  var isHistogramState = (u) => hasProperty(u, HistogramStateTypeId);
7818
7890
  var isSummaryState = (u) => hasProperty(u, SummaryStateTypeId);
7819
7891
 
7820
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/metric/hook.js
7892
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/metric/hook.js
7821
7893
  var MetricHookSymbolKey = "effect/MetricHook";
7822
7894
  var MetricHookTypeId = /* @__PURE__ */ Symbol.for(MetricHookSymbolKey);
7823
7895
  var metricHookVariance = {
@@ -7826,7 +7898,7 @@ var metricHookVariance = {
7826
7898
  /* c8 ignore next */
7827
7899
  _Out: (_) => _
7828
7900
  };
7829
- var make29 = (options3) => ({
7901
+ var make28 = (options3) => ({
7830
7902
  [MetricHookTypeId]: metricHookVariance,
7831
7903
  pipe() {
7832
7904
  return pipeArguments(this, arguments);
@@ -7842,7 +7914,7 @@ var counter4 = (key) => {
7842
7914
  sum3 = sum3 + value2;
7843
7915
  }
7844
7916
  };
7845
- return make29({
7917
+ return make28({
7846
7918
  get: () => counter3(sum3),
7847
7919
  update: update6,
7848
7920
  modify: update6
@@ -7857,7 +7929,7 @@ var frequency3 = (key) => {
7857
7929
  const slotCount = values3.get(word) ?? 0;
7858
7930
  values3.set(word, slotCount + 1);
7859
7931
  };
7860
- return make29({
7932
+ return make28({
7861
7933
  get: () => frequency2(values3),
7862
7934
  update: update6,
7863
7935
  modify: update6
@@ -7865,7 +7937,7 @@ var frequency3 = (key) => {
7865
7937
  };
7866
7938
  var gauge3 = (_key, startAt) => {
7867
7939
  let value2 = startAt;
7868
- return make29({
7940
+ return make28({
7869
7941
  get: () => gauge2(value2),
7870
7942
  update: (v) => {
7871
7943
  value2 = v;
@@ -7879,7 +7951,7 @@ var histogram4 = (key) => {
7879
7951
  const bounds = key.keyType.boundaries.values;
7880
7952
  const size12 = bounds.length;
7881
7953
  const values3 = new Uint32Array(size12 + 1);
7882
- const boundaries = new Float32Array(size12);
7954
+ const boundaries = new Float64Array(size12);
7883
7955
  let count2 = 0;
7884
7956
  let sum3 = 0;
7885
7957
  let min3 = Number.MAX_VALUE;
@@ -7927,7 +7999,7 @@ var histogram4 = (key) => {
7927
7999
  }
7928
8000
  return builder;
7929
8001
  };
7930
- return make29({
8002
+ return make28({
7931
8003
  get: () => histogram3({
7932
8004
  buckets: getBuckets(),
7933
8005
  count: count2,
@@ -7980,7 +8052,7 @@ var summary3 = (key) => {
7980
8052
  count2 = count2 + 1;
7981
8053
  sum3 = sum3 + value2;
7982
8054
  };
7983
- return make29({
8055
+ return make28({
7984
8056
  get: () => summary2({
7985
8057
  error,
7986
8058
  quantiles: snapshot(Date.now()),
@@ -8112,7 +8184,7 @@ var resolveQuantile = (error, sampleCount, current, consumed, quantile, rest) =>
8112
8184
  throw new Error("BUG: MetricHook.resolveQuantiles - please report an issue at https://github.com/Effect-TS/effect/issues");
8113
8185
  };
8114
8186
 
8115
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/metric/pair.js
8187
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/metric/pair.js
8116
8188
  var MetricPairSymbolKey = "effect/MetricPair";
8117
8189
  var MetricPairTypeId = /* @__PURE__ */ Symbol.for(MetricPairSymbolKey);
8118
8190
  var metricPairVariance = {
@@ -8130,7 +8202,7 @@ var unsafeMake6 = (metricKey, metricState) => {
8130
8202
  };
8131
8203
  };
8132
8204
 
8133
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/metric/registry.js
8205
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/metric/registry.js
8134
8206
  var MetricRegistrySymbolKey = "effect/MetricRegistry";
8135
8207
  var MetricRegistryTypeId = /* @__PURE__ */ Symbol.for(MetricRegistrySymbolKey);
8136
8208
  var MetricRegistryImpl = class {
@@ -8222,11 +8294,11 @@ var MetricRegistryImpl = class {
8222
8294
  return value2;
8223
8295
  }
8224
8296
  };
8225
- var make30 = () => {
8297
+ var make29 = () => {
8226
8298
  return new MetricRegistryImpl();
8227
8299
  };
8228
8300
 
8229
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/metric.js
8301
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/metric.js
8230
8302
  var MetricSymbolKey = "effect/Metric";
8231
8303
  var MetricTypeId = /* @__PURE__ */ Symbol.for(MetricSymbolKey);
8232
8304
  var metricVariance = {
@@ -8237,8 +8309,8 @@ var metricVariance = {
8237
8309
  /* c8 ignore next */
8238
8310
  _Out: (_) => _
8239
8311
  };
8240
- var globalMetricRegistry = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Metric/globalMetricRegistry"), () => make30());
8241
- var make31 = function(keyType, unsafeUpdate, unsafeValue, unsafeModify) {
8312
+ var globalMetricRegistry = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Metric/globalMetricRegistry"), () => make29());
8313
+ var make30 = function(keyType, unsafeUpdate, unsafeValue, unsafeModify) {
8242
8314
  const metric = Object.assign((effect3) => tap(effect3, (a) => update4(metric, a)), {
8243
8315
  [MetricTypeId]: metricVariance,
8244
8316
  keyType,
@@ -8275,12 +8347,12 @@ var fromMetricKey = (key) => {
8275
8347
  hookCache.set(extraTags, hook2);
8276
8348
  return hook2;
8277
8349
  };
8278
- return make31(key.keyType, (input, extraTags) => hook(extraTags).update(input), (extraTags) => hook(extraTags).get(), (input, extraTags) => hook(extraTags).modify(input));
8350
+ return make30(key.keyType, (input, extraTags) => hook(extraTags).update(input), (extraTags) => hook(extraTags).get(), (input, extraTags) => hook(extraTags).modify(input));
8279
8351
  };
8280
8352
  var histogram5 = (name, boundaries, description) => fromMetricKey(histogram2(name, boundaries, description));
8281
- var tagged = /* @__PURE__ */ dual(3, (self, key, value2) => taggedWithLabels2(self, [make28(key, value2)]));
8353
+ var tagged = /* @__PURE__ */ dual(3, (self, key, value2) => taggedWithLabels2(self, [make27(key, value2)]));
8282
8354
  var taggedWithLabels2 = /* @__PURE__ */ dual(2, (self, extraTags) => {
8283
- return make31(self.keyType, (input, extraTags1) => self.unsafeUpdate(input, union(extraTags, extraTags1)), (extraTags1) => self.unsafeValue(union(extraTags, extraTags1)), (input, extraTags1) => self.unsafeModify(input, union(extraTags, extraTags1)));
8355
+ return make30(self.keyType, (input, extraTags1) => self.unsafeUpdate(input, union(extraTags, extraTags1)), (extraTags1) => self.unsafeValue(union(extraTags, extraTags1)), (input, extraTags1) => self.unsafeModify(input, union(extraTags, extraTags1)));
8284
8356
  });
8285
8357
  var update4 = /* @__PURE__ */ dual(2, (self, input) => fiberRefGetWith(currentMetricLabels, (tags) => sync(() => self.unsafeUpdate(input, tags))));
8286
8358
  ({
@@ -8295,7 +8367,7 @@ var complete = /* @__PURE__ */ dual(2, (self, result) => fiberRefGetWith(current
8295
8367
  }
8296
8368
  })));
8297
8369
 
8298
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/supervisor.js
8370
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/supervisor.js
8299
8371
  var SupervisorSymbolKey = "effect/Supervisor";
8300
8372
  var SupervisorTypeId = /* @__PURE__ */ Symbol.for(SupervisorSymbolKey);
8301
8373
  var supervisorVariance = {
@@ -8409,10 +8481,10 @@ var fromEffect = (effect3) => {
8409
8481
  };
8410
8482
  var none7 = /* @__PURE__ */ globalValue("effect/Supervisor/none", () => fromEffect(void_));
8411
8483
 
8412
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Differ.js
8413
- var make33 = make14;
8484
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Differ.js
8485
+ var make32 = make14;
8414
8486
 
8415
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/supervisor/patch.js
8487
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/supervisor/patch.js
8416
8488
  var OP_EMPTY3 = "Empty";
8417
8489
  var OP_ADD_SUPERVISOR = "AddSupervisor";
8418
8490
  var OP_REMOVE_SUPERVISOR = "RemoveSupervisor";
@@ -8496,14 +8568,14 @@ var diff7 = (oldValue, newValue) => {
8496
8568
  })));
8497
8569
  return combine8(added, removed);
8498
8570
  };
8499
- var differ2 = /* @__PURE__ */ make33({
8571
+ var differ2 = /* @__PURE__ */ make32({
8500
8572
  empty: empty23,
8501
8573
  patch: patch8,
8502
8574
  combine: combine8,
8503
8575
  diff: diff7
8504
8576
  });
8505
8577
 
8506
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/fiberRuntime.js
8578
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/fiberRuntime.js
8507
8579
  var fiberStarted = /* @__PURE__ */ counter5("effect_fiber_started", {
8508
8580
  incremental: true
8509
8581
  });
@@ -8563,10 +8635,20 @@ var contOpSuccess = {
8563
8635
  }
8564
8636
  },
8565
8637
  [OP_ITERATOR]: (self, cont, value2) => {
8566
- const state = internalCall(() => cont.effect_instruction_i0.next(value2));
8567
- if (state.done) return exitSucceed(state.value);
8568
- self.pushStack(cont);
8569
- return yieldWrapGet(state.value);
8638
+ while (true) {
8639
+ const state = internalCall(() => cont.effect_instruction_i0.next(value2));
8640
+ if (state.done) {
8641
+ return exitSucceed(state.value);
8642
+ }
8643
+ const primitive = yieldWrapGet(state.value);
8644
+ if (!exitIsExit(primitive)) {
8645
+ self.pushStack(cont);
8646
+ return primitive;
8647
+ } else if (primitive._tag === "Failure") {
8648
+ return primitive;
8649
+ }
8650
+ value2 = primitive.value;
8651
+ }
8570
8652
  }
8571
8653
  };
8572
8654
  var drainQueueWhileRunningTable = {
@@ -8663,7 +8745,7 @@ var FiberRuntime = class extends Class2 {
8663
8745
  */
8664
8746
  get runtimeFlags() {
8665
8747
  return this.ask((state, status2) => {
8666
- if (isDone3(status2)) {
8748
+ if (isDone2(status2)) {
8667
8749
  return state.currentRuntimeFlags;
8668
8750
  }
8669
8751
  return status2.runtimeFlags;
@@ -9592,7 +9674,7 @@ var tracerLogger = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effec
9592
9674
  renderErrorCause: true
9593
9675
  });
9594
9676
  }
9595
- span2.value.event(toStringUnknown(Array.isArray(message) ? message[0] : message), clockService.unsafeCurrentTimeNanos(), attributes);
9677
+ span2.value.event(toStringUnknown(Array.isArray(message) && message.length === 1 ? message[0] : message), clockService.unsafeCurrentTimeNanos(), attributes);
9596
9678
  }));
9597
9679
  var currentLoggers = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentLoggers"), () => fiberRefUnsafeMakeHashSet(make7(defaultLogger, tracerLogger)));
9598
9680
  var annotateLogsScoped = function() {
@@ -10153,20 +10235,20 @@ var invokeWithInterrupt = (self, entries2, onInterrupt3) => fiberIdWith((id2) =>
10153
10235
  return forEachSequentialDiscard(residual, (entry) => complete(entry.request, exitInterrupt(id2)));
10154
10236
  })));
10155
10237
 
10156
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Cause.js
10238
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Cause.js
10157
10239
  var fail4 = fail;
10158
10240
  var die4 = die;
10159
10241
  var interrupt3 = interrupt;
10160
10242
  var isFailType2 = isFailType;
10161
10243
  var isDieType2 = isDieType;
10162
- var isInterrupted3 = isInterrupted;
10244
+ var isInterrupted2 = isInterrupted;
10163
10245
  var interruptors2 = interruptors;
10164
10246
  var failureOrCause2 = failureOrCause;
10165
10247
  var map14 = map9;
10166
10248
  var squash = causeSquash;
10167
10249
  var pretty2 = pretty;
10168
10250
 
10169
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/schedule/interval.js
10251
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/schedule/interval.js
10170
10252
  var IntervalSymbolKey = "effect/ScheduleInterval";
10171
10253
  var IntervalTypeId = /* @__PURE__ */ Symbol.for(IntervalSymbolKey);
10172
10254
  var empty25 = {
@@ -10174,7 +10256,7 @@ var empty25 = {
10174
10256
  startMillis: 0,
10175
10257
  endMillis: 0
10176
10258
  };
10177
- var make34 = (startMillis, endMillis) => {
10259
+ var make33 = (startMillis, endMillis) => {
10178
10260
  if (startMillis > endMillis) {
10179
10261
  return empty25;
10180
10262
  }
@@ -10199,23 +10281,23 @@ var isEmpty6 = (self) => {
10199
10281
  var intersect = /* @__PURE__ */ dual(2, (self, that) => {
10200
10282
  const start3 = Math.max(self.startMillis, that.startMillis);
10201
10283
  const end3 = Math.min(self.endMillis, that.endMillis);
10202
- return make34(start3, end3);
10284
+ return make33(start3, end3);
10203
10285
  });
10204
10286
  var after = (startMilliseconds) => {
10205
- return make34(startMilliseconds, Number.POSITIVE_INFINITY);
10287
+ return make33(startMilliseconds, Number.POSITIVE_INFINITY);
10206
10288
  };
10207
10289
 
10208
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/ScheduleInterval.js
10290
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/ScheduleInterval.js
10209
10291
  var empty26 = empty25;
10210
10292
  var lessThan3 = lessThan2;
10211
10293
  var isEmpty7 = isEmpty6;
10212
10294
  var intersect2 = intersect;
10213
10295
  var after2 = after;
10214
10296
 
10215
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/schedule/intervals.js
10297
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/schedule/intervals.js
10216
10298
  var IntervalsSymbolKey = "effect/ScheduleIntervals";
10217
10299
  var IntervalsTypeId = /* @__PURE__ */ Symbol.for(IntervalsSymbolKey);
10218
- var make36 = (intervals) => {
10300
+ var make35 = (intervals) => {
10219
10301
  return {
10220
10302
  [IntervalsTypeId]: IntervalsTypeId,
10221
10303
  intervals
@@ -10236,7 +10318,7 @@ var intersectLoop = (_left, _right, _acc) => {
10236
10318
  }
10237
10319
  acc = intervals;
10238
10320
  }
10239
- return make36(reverse2(acc));
10321
+ return make35(reverse2(acc));
10240
10322
  };
10241
10323
  var start = (self) => {
10242
10324
  return pipe(self.intervals, head2, getOrElse(() => empty26)).startMillis;
@@ -10249,15 +10331,15 @@ var isNonEmpty3 = (self) => {
10249
10331
  return isNonEmpty(self.intervals);
10250
10332
  };
10251
10333
 
10252
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/ScheduleIntervals.js
10253
- var make37 = make36;
10334
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/ScheduleIntervals.js
10335
+ var make36 = make35;
10254
10336
  var intersect4 = intersect3;
10255
10337
  var start2 = start;
10256
10338
  var end2 = end;
10257
10339
  var lessThan5 = lessThan4;
10258
10340
  var isNonEmpty4 = isNonEmpty3;
10259
10341
 
10260
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/schedule/decision.js
10342
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/schedule/decision.js
10261
10343
  var OP_CONTINUE = "Continue";
10262
10344
  var OP_DONE2 = "Done";
10263
10345
  var _continue = (intervals) => {
@@ -10269,7 +10351,7 @@ var _continue = (intervals) => {
10269
10351
  var continueWith = (interval) => {
10270
10352
  return {
10271
10353
  _tag: OP_CONTINUE,
10272
- intervals: make37(of2(interval))
10354
+ intervals: make36(of2(interval))
10273
10355
  };
10274
10356
  };
10275
10357
  var done4 = {
@@ -10278,26 +10360,26 @@ var done4 = {
10278
10360
  var isContinue = (self) => {
10279
10361
  return self._tag === OP_CONTINUE;
10280
10362
  };
10281
- var isDone4 = (self) => {
10363
+ var isDone3 = (self) => {
10282
10364
  return self._tag === OP_DONE2;
10283
10365
  };
10284
10366
 
10285
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/ScheduleDecision.js
10367
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/ScheduleDecision.js
10286
10368
  var _continue2 = _continue;
10287
10369
  var continueWith2 = continueWith;
10288
10370
  var done5 = done4;
10289
10371
  var isContinue2 = isContinue;
10290
- var isDone5 = isDone4;
10372
+ var isDone4 = isDone3;
10291
10373
 
10292
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Scope.js
10374
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Scope.js
10293
10375
  var addFinalizer2 = scopeAddFinalizer;
10294
10376
  var addFinalizerExit = scopeAddFinalizerExit;
10295
10377
  var close = scopeClose;
10296
10378
  var extend2 = scopeExtend;
10297
10379
  var fork = scopeFork;
10298
- var make38 = scopeMake;
10380
+ var make37 = scopeMake;
10299
10381
 
10300
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/effect/circular.js
10382
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/effect/circular.js
10301
10383
  var Semaphore = class {
10302
10384
  permits;
10303
10385
  waiters = /* @__PURE__ */ new Set();
@@ -10326,7 +10408,7 @@ var Semaphore = class {
10326
10408
  this.taken += n;
10327
10409
  return resume2(succeed(n));
10328
10410
  });
10329
- updateTaken = (f) => withFiberRuntime((fiber) => {
10411
+ updateTakenUnsafe(fiber, f) {
10330
10412
  this.taken = f(this.taken);
10331
10413
  if (this.waiters.size > 0) {
10332
10414
  fiber.getFiberRef(currentScheduler).scheduleTask(() => {
@@ -10339,7 +10421,17 @@ var Semaphore = class {
10339
10421
  }, fiber.getFiberRef(currentSchedulingPriority));
10340
10422
  }
10341
10423
  return succeed(this.free);
10342
- });
10424
+ }
10425
+ updateTaken(f) {
10426
+ return withFiberRuntime((fiber) => this.updateTakenUnsafe(fiber, f));
10427
+ }
10428
+ resize = (permits) => asVoid(withFiberRuntime((fiber) => {
10429
+ this.permits = permits;
10430
+ if (this.free < 0) {
10431
+ return void_;
10432
+ }
10433
+ return this.updateTakenUnsafe(fiber, (taken) => taken);
10434
+ }));
10343
10435
  release = (n) => this.updateTaken((taken) => taken - n);
10344
10436
  releaseAll = /* @__PURE__ */ this.updateTaken((_) => 0);
10345
10437
  withPermits = (n) => (self) => uninterruptibleMask((restore) => flatMap7(restore(this.take(n)), (permits) => ensuring(restore(self), this.release(permits))));
@@ -10473,25 +10565,24 @@ var unsafeMakeSynchronized = (value2) => {
10473
10565
  return new SynchronizedImpl(ref, sem.withPermits(1));
10474
10566
  };
10475
10567
 
10476
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/managedRuntime/circular.js
10568
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/managedRuntime/circular.js
10477
10569
  var TypeId13 = /* @__PURE__ */ Symbol.for("effect/ManagedRuntime");
10478
10570
 
10479
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/opCodes/layer.js
10571
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/layer.js
10480
10572
  var OP_FOLD = "Fold";
10481
10573
  var OP_FRESH = "Fresh";
10482
10574
  var OP_FROM_EFFECT = "FromEffect";
10483
10575
  var OP_SCOPED = "Scoped";
10484
- var OP_SUSPEND = "Suspend";
10485
- var OP_ZIP_WITH2 = "ZipWith";
10576
+ var OP_MERGE_ALL = "MergeAll";
10486
10577
 
10487
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Fiber.js
10488
- var _await3 = _await2;
10578
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Fiber.js
10579
+ var _await2 = _await;
10489
10580
  var inheritAll2 = inheritAll;
10490
10581
  var interrupt4 = interruptFiber;
10491
10582
  var interruptAs = interruptAsFiber;
10492
10583
  var join3 = join2;
10493
10584
 
10494
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/runtime.js
10585
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/runtime.js
10495
10586
  var makeDual = (f) => function() {
10496
10587
  if (arguments.length === 1) {
10497
10588
  const runtime4 = arguments[0];
@@ -10672,10 +10763,10 @@ var RuntimeImpl = class {
10672
10763
  return pipeArguments(this, arguments);
10673
10764
  }
10674
10765
  };
10675
- var make39 = (options3) => new RuntimeImpl(options3.context, options3.runtimeFlags, options3.fiberRefs);
10766
+ var make38 = (options3) => new RuntimeImpl(options3.context, options3.runtimeFlags, options3.fiberRefs);
10676
10767
  var runtime2 = () => withFiberRuntime((state, status2) => succeed(new RuntimeImpl(state.getFiberRef(currentContext), status2.runtimeFlags, state.getFiberRefs())));
10677
10768
  var defaultRuntimeFlags = /* @__PURE__ */ make16(Interruption, CooperativeYielding, RuntimeMetrics);
10678
- var defaultRuntime = /* @__PURE__ */ make39({
10769
+ var defaultRuntime = /* @__PURE__ */ make38({
10679
10770
  context: /* @__PURE__ */ empty9(),
10680
10771
  runtimeFlags: defaultRuntimeFlags,
10681
10772
  fiberRefs: /* @__PURE__ */ empty18()
@@ -10684,10 +10775,10 @@ var unsafeForkEffect = /* @__PURE__ */ unsafeFork3(defaultRuntime);
10684
10775
  var unsafeRunPromiseEffect = /* @__PURE__ */ unsafeRunPromise(defaultRuntime);
10685
10776
  var unsafeRunSyncEffect = /* @__PURE__ */ unsafeRunSync(defaultRuntime);
10686
10777
 
10687
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/synchronizedRef.js
10778
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/synchronizedRef.js
10688
10779
  var modifyEffect = /* @__PURE__ */ dual(2, (self, f) => self.modifyEffect(f));
10689
10780
 
10690
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/layer.js
10781
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/layer.js
10691
10782
  var LayerSymbolKey = "effect/Layer";
10692
10783
  var LayerTypeId = /* @__PURE__ */ Symbol.for(LayerSymbolKey);
10693
10784
  var layerVariance = {
@@ -10736,7 +10827,7 @@ var MemoMapImpl = class {
10736
10827
  })));
10737
10828
  return succeed([cached4, map22]);
10738
10829
  }
10739
- return pipe(make24(0), flatMap7((observers) => pipe(deferredMake(), flatMap7((deferred) => pipe(make24(() => void_), map11((finalizerRef) => {
10830
+ return pipe(make23(0), flatMap7((observers) => pipe(deferredMake(), flatMap7((deferred) => pipe(make23(() => void_), map11((finalizerRef) => {
10740
10831
  const resource = uninterruptibleMask((restore) => pipe(scopeMake(), flatMap7((innerScope) => pipe(restore(flatMap7(makeBuilder(layer3, innerScope, true), (f) => diffFiberRefs(f(this)))), exit, flatMap7((exit4) => {
10741
10832
  switch (exit4._tag) {
10742
10833
  case OP_FAILURE: {
@@ -10794,14 +10885,30 @@ var makeBuilder = (self, scope4, inMemoMap = false) => {
10794
10885
  return sync(() => (memoMap) => pipe(memoMap.getOrElseMemoize(op.first, scope4), zipWith2(memoMap.getOrElseMemoize(op.second, scope4), op.zipK)));
10795
10886
  }
10796
10887
  case "ZipWith": {
10797
- return sync(() => (memoMap) => pipe(memoMap.getOrElseMemoize(op.first, scope4), zipWithOptions(memoMap.getOrElseMemoize(op.second, scope4), op.zipK, {
10798
- concurrent: true
10799
- })));
10888
+ return gen(function* () {
10889
+ const parallelScope = yield* scopeFork(scope4, parallel2);
10890
+ const firstScope = yield* scopeFork(parallelScope, sequential2);
10891
+ const secondScope = yield* scopeFork(parallelScope, sequential2);
10892
+ return (memoMap) => pipe(memoMap.getOrElseMemoize(op.first, firstScope), zipWithOptions(memoMap.getOrElseMemoize(op.second, secondScope), op.zipK, {
10893
+ concurrent: true
10894
+ }));
10895
+ });
10896
+ }
10897
+ case "MergeAll": {
10898
+ const layers = op.layers;
10899
+ return map11(scopeFork(scope4, parallel2), (parallelScope) => (memoMap) => {
10900
+ const contexts = new Array(layers.length);
10901
+ return map11(forEachConcurrentDiscard(layers, fnUntraced(function* (layer3, i) {
10902
+ const scope5 = yield* scopeFork(parallelScope, sequential2);
10903
+ const context5 = yield* memoMap.getOrElseMemoize(layer3, scope5);
10904
+ contexts[i] = context5;
10905
+ }), false, false), () => mergeAll2(...contexts));
10906
+ });
10800
10907
  }
10801
10908
  }
10802
10909
  };
10803
- var fail6 = (error) => failCause6(fail4(error));
10804
- var failCause6 = (cause2) => fromEffectContext(failCause(cause2));
10910
+ var fail6 = (error) => failCause5(fail4(error));
10911
+ var failCause5 = (cause2) => fromEffectContext(failCause(cause2));
10805
10912
  var flatMap9 = /* @__PURE__ */ dual(2, (self, f) => match11(self, {
10806
10913
  onFailure: fail6,
10807
10914
  onSuccess: f
@@ -10840,19 +10947,17 @@ var match11 = /* @__PURE__ */ dual(2, (self, {
10840
10947
  return onFailure(failureOrCause3.left);
10841
10948
  }
10842
10949
  case "Right": {
10843
- return failCause6(failureOrCause3.right);
10950
+ return failCause5(failureOrCause3.right);
10844
10951
  }
10845
10952
  }
10846
10953
  },
10847
10954
  onSuccess
10848
10955
  }));
10849
- var merge5 = /* @__PURE__ */ dual(2, (self, that) => zipWith3(self, that, (a, b) => merge3(a, b)));
10850
- var mergeAll2 = (...layers) => {
10851
- let final = layers[0];
10852
- for (let i = 1; i < layers.length; i++) {
10853
- final = merge5(final, layers[i]);
10854
- }
10855
- return final;
10956
+ var mergeAll3 = (...layers) => {
10957
+ const mergeAll8 = Object.create(proto3);
10958
+ mergeAll8._op_layer = OP_MERGE_ALL;
10959
+ mergeAll8.layers = layers;
10960
+ return mergeAll8;
10856
10961
  };
10857
10962
  var scopedDiscard = (effect3) => scopedContext(pipe(effect3, as(empty9())));
10858
10963
  var scopedContext = (effect3) => {
@@ -10865,20 +10970,6 @@ var succeedContext = (context5) => {
10865
10970
  return fromEffectContext(succeed(context5));
10866
10971
  };
10867
10972
  var empty28 = /* @__PURE__ */ succeedContext(/* @__PURE__ */ empty9());
10868
- var suspend3 = (evaluate2) => {
10869
- const suspend8 = Object.create(proto3);
10870
- suspend8._op_layer = OP_SUSPEND;
10871
- suspend8.evaluate = evaluate2;
10872
- return suspend8;
10873
- };
10874
- var zipWith3 = /* @__PURE__ */ dual(3, (self, that, f) => suspend3(() => {
10875
- const zipWith7 = Object.create(proto3);
10876
- zipWith7._op_layer = OP_ZIP_WITH2;
10877
- zipWith7.first = self;
10878
- zipWith7.second = that;
10879
- zipWith7.zipK = f;
10880
- return zipWith7;
10881
- }));
10882
10973
  var provideSomeLayer = /* @__PURE__ */ dual(2, (self, layer3) => scopedWith((scope4) => flatMap7(buildWithScope(layer3, scope4), (context5) => provideSomeContext(self, context5))));
10883
10974
  var provideSomeRuntime = /* @__PURE__ */ dual(2, (self, rt) => {
10884
10975
  const patchRefs = diff6(defaultRuntime.fiberRefs, rt.fiberRefs);
@@ -10902,7 +10993,7 @@ var provideSomeRuntime = /* @__PURE__ */ dual(2, (self, rt) => {
10902
10993
  });
10903
10994
  var effect_provide = /* @__PURE__ */ dual(2, (self, source) => {
10904
10995
  if (Array.isArray(source)) {
10905
- return provideSomeLayer(self, mergeAll2(...source));
10996
+ return provideSomeLayer(self, mergeAll3(...source));
10906
10997
  } else if (isLayer(source)) {
10907
10998
  return provideSomeLayer(self, source);
10908
10999
  } else if (isContext2(source)) {
@@ -10914,7 +11005,7 @@ var effect_provide = /* @__PURE__ */ dual(2, (self, source) => {
10914
11005
  }
10915
11006
  });
10916
11007
 
10917
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Data.js
11008
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Data.js
10918
11009
  var struct2 = struct;
10919
11010
  var _case = () => (args2) => args2 === void 0 ? Object.create(StructuralPrototype) : struct2(args2);
10920
11011
  var tagged2 = (tag2) => (args2) => {
@@ -10959,7 +11050,7 @@ var TaggedError = (tag2) => {
10959
11050
  return O.BaseEffectError;
10960
11051
  };
10961
11052
 
10962
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/schedule.js
11053
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/schedule.js
10963
11054
  var ScheduleSymbolKey = "effect/Schedule";
10964
11055
  var ScheduleTypeId = /* @__PURE__ */ Symbol.for(ScheduleSymbolKey);
10965
11056
  var isSchedule = (u) => hasProperty(u, ScheduleTypeId);
@@ -11052,7 +11143,7 @@ var ScheduleDriverImpl = class {
11052
11143
  next(input) {
11053
11144
  return pipe(map11(get10(this.ref), (tuple) => tuple[1]), flatMap7((state) => pipe(currentTimeMillis2, flatMap7((now) => pipe(suspend(() => this.schedule.step(now, input, state)), flatMap7(([state2, out, decision]) => {
11054
11145
  const setState = set4(this.ref, [some2(out), state2]);
11055
- if (isDone5(decision)) {
11146
+ if (isDone4(decision)) {
11056
11147
  return setState.pipe(zipRight(fail2(none2())));
11057
11148
  }
11058
11149
  const millis2 = start2(decision.intervals) - now;
@@ -11067,12 +11158,12 @@ var ScheduleDriverImpl = class {
11067
11158
  var makeWithState = (initial, step3) => new ScheduleImpl(initial, step3);
11068
11159
  var check = /* @__PURE__ */ dual(2, (self, test) => checkEffect(self, (input, out) => sync(() => test(input, out))));
11069
11160
  var checkEffect = /* @__PURE__ */ dual(2, (self, test) => makeWithState(self.initial, (now, input, state) => flatMap7(self.step(now, input, state), ([state2, out, decision]) => {
11070
- if (isDone5(decision)) {
11161
+ if (isDone4(decision)) {
11071
11162
  return succeed([state2, out, done5]);
11072
11163
  }
11073
11164
  return map11(test(input, out), (cont) => cont ? [state2, out, decision] : [state2, out, done5]);
11074
11165
  })));
11075
- var driver = (self) => pipe(make24([none2(), self.initial]), map11((ref) => new ScheduleDriverImpl(self, ref)));
11166
+ var driver = (self) => pipe(make23([none2(), self.initial]), map11((ref) => new ScheduleDriverImpl(self, ref)));
11076
11167
  var intersect5 = /* @__PURE__ */ dual(2, (self, that) => intersectWith(self, that, intersect4));
11077
11168
  var intersectWith = /* @__PURE__ */ dual(3, (self, that, f) => makeWithState([self.initial, that.initial], (now, input, state) => pipe(zipWith2(self.step(now, input, state[0]), that.step(now, input, state[1]), (a, b) => [a, b]), flatMap7(([[lState, out, lDecision], [rState, out2, rDecision]]) => {
11078
11169
  if (isContinue2(lDecision) && isContinue2(rDecision)) {
@@ -11087,14 +11178,14 @@ var intersectWithLoop = (self, that, input, lState, out, lInterval, rState, out2
11087
11178
  }
11088
11179
  if (pipe(lInterval, lessThan5(rInterval))) {
11089
11180
  return flatMap7(self.step(end2(lInterval), input, lState), ([lState2, out3, decision]) => {
11090
- if (isDone5(decision)) {
11181
+ if (isDone4(decision)) {
11091
11182
  return succeed([[lState2, rState], [out3, out2], done5]);
11092
11183
  }
11093
11184
  return intersectWithLoop(self, that, input, lState2, out3, decision.intervals, rState, out2, rInterval, f);
11094
11185
  });
11095
11186
  }
11096
11187
  return flatMap7(that.step(end2(rInterval), input, rState), ([rState2, out22, decision]) => {
11097
- if (isDone5(decision)) {
11188
+ if (isDone4(decision)) {
11098
11189
  return succeed([[lState, rState2], [out, out22], done5]);
11099
11190
  }
11100
11191
  return intersectWithLoop(self, that, input, lState, out, lInterval, rState2, out22, decision.intervals, f);
@@ -11160,7 +11251,14 @@ var repeatOrElseEffectLoop = (self, driver2, orElse9, value2) => matchEffect(dri
11160
11251
  });
11161
11252
  var forever2 = /* @__PURE__ */ unfold2(0, (n) => n + 1);
11162
11253
 
11163
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/MutableList.js
11254
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Deferred.js
11255
+ var make39 = deferredMake;
11256
+ var _await3 = deferredAwait;
11257
+ var failCause6 = deferredFailCause;
11258
+ var isDone5 = deferredIsDone;
11259
+ var succeed5 = deferredSucceed;
11260
+
11261
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/MutableList.js
11164
11262
  var TypeId14 = /* @__PURE__ */ Symbol.for("effect/MutableList");
11165
11263
  var MutableListProto = {
11166
11264
  [TypeId14]: TypeId14,
@@ -11271,7 +11369,7 @@ var remove7 = (self, node) => {
11271
11369
  }
11272
11370
  };
11273
11371
 
11274
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/MutableQueue.js
11372
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/MutableQueue.js
11275
11373
  var TypeId15 = /* @__PURE__ */ Symbol.for("effect/MutableQueue");
11276
11374
  var EmptyMutableQueue = /* @__PURE__ */ Symbol.for("effect/mutable/MutableQueue/Empty");
11277
11375
  var MutableQueueProto = {
@@ -11348,7 +11446,7 @@ var pollUpTo = /* @__PURE__ */ dual(2, (self, n) => {
11348
11446
  return reverse2(result);
11349
11447
  });
11350
11448
 
11351
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Effect.js
11449
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Effect.js
11352
11450
  var isEffect2 = isEffect;
11353
11451
  var cached3 = memoize;
11354
11452
  var all4 = all3;
@@ -11360,7 +11458,7 @@ var dieMessage2 = dieMessage;
11360
11458
  var gen2 = gen;
11361
11459
  var promise2 = promise;
11362
11460
  var succeed7 = succeed;
11363
- var suspend4 = suspend;
11461
+ var suspend3 = suspend;
11364
11462
  var sync4 = sync;
11365
11463
  var _void = void_;
11366
11464
  var catchAll2 = catchAll;
@@ -11418,27 +11516,27 @@ var runSync = unsafeRunSyncEffect;
11418
11516
  var zip5 = zipOptions;
11419
11517
  var zipLeft2 = zipLeftOptions;
11420
11518
  var zipRight3 = zipRightOptions;
11421
- var zipWith4 = zipWithOptions;
11519
+ var zipWith3 = zipWithOptions;
11422
11520
  var useSpan2 = useSpan;
11423
11521
  var withParentSpan2 = withParentSpan;
11424
11522
 
11425
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/layer/circular.js
11523
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/layer/circular.js
11426
11524
  var withMinimumLogLevel = /* @__PURE__ */ dual(2, (self, level) => fiberRefLocally(currentMinimumLogLevel, level)(self));
11427
11525
  var addLogger = (logger) => scopedDiscard(fiberRefLocallyScopedWith(currentLoggers, add2(logger)));
11428
11526
  var removeLogger = (logger) => scopedDiscard(fiberRefLocallyScopedWith(currentLoggers, remove5(logger)));
11429
11527
  var replaceLogger = /* @__PURE__ */ dual(2, (self, that) => flatMap9(removeLogger(self), () => addLogger(that)));
11430
11528
 
11431
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Logger.js
11529
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Logger.js
11432
11530
  var replace = replaceLogger;
11433
11531
  var withMinimumLogLevel2 = withMinimumLogLevel;
11434
11532
  var pretty4 = /* @__PURE__ */ replace(defaultLogger, prettyLogger2);
11435
11533
 
11436
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Layer.js
11534
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Layer.js
11437
11535
  var effect = fromEffect3;
11438
11536
  var empty30 = empty28;
11439
- var mergeAll4 = mergeAll2;
11537
+ var mergeAll5 = mergeAll3;
11440
11538
 
11441
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/redacted.js
11539
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/redacted.js
11442
11540
  var RedactedSymbolKey = "effect/Redacted";
11443
11541
  var redactedRegistry = /* @__PURE__ */ globalValue("effect/Redacted/redactedRegistry", () => /* @__PURE__ */ new WeakMap());
11444
11542
  var RedactedTypeId = /* @__PURE__ */ Symbol.for(RedactedSymbolKey);
@@ -11472,7 +11570,7 @@ var make41 = (value2) => {
11472
11570
  return redacted;
11473
11571
  };
11474
11572
 
11475
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/schema/util.js
11573
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/schema/util.js
11476
11574
  var getKeysForIndexSignature = (input, parameter) => {
11477
11575
  switch (parameter._tag) {
11478
11576
  case "StringKeyword":
@@ -11484,7 +11582,6 @@ var getKeysForIndexSignature = (input, parameter) => {
11484
11582
  return getKeysForIndexSignature(input, parameter.from);
11485
11583
  }
11486
11584
  };
11487
- var ownKeys = (o) => Object.keys(o).concat(Object.getOwnPropertySymbols(o));
11488
11585
  var memoizeThunk = (f) => {
11489
11586
  let done7 = false;
11490
11587
  let a;
@@ -11497,53 +11594,12 @@ var memoizeThunk = (f) => {
11497
11594
  return a;
11498
11595
  };
11499
11596
  };
11500
- var formatDate = (date) => {
11501
- try {
11502
- return date.toISOString();
11503
- } catch {
11504
- return String(date);
11505
- }
11506
- };
11507
- var formatUnknown = (u, checkCircular = true) => {
11508
- if (Array.isArray(u)) {
11509
- return `[${u.map((i) => formatUnknown(i, checkCircular)).join(",")}]`;
11510
- }
11511
- if (isDate(u)) {
11512
- return formatDate(u);
11513
- }
11514
- if (hasProperty(u, "toString") && isFunction2(u["toString"]) && u["toString"] !== Object.prototype.toString) {
11515
- return u["toString"]();
11516
- }
11517
- if (isString(u)) {
11518
- return JSON.stringify(u);
11519
- }
11520
- if (isNumber(u) || u == null || isBoolean(u) || isSymbol(u)) {
11521
- return String(u);
11522
- }
11523
- if (isBigInt(u)) {
11524
- return String(u) + "n";
11525
- }
11526
- if (isIterable(u)) {
11527
- return `${u.constructor.name}(${formatUnknown(Array.from(u), checkCircular)})`;
11528
- }
11529
- try {
11530
- if (checkCircular) {
11531
- JSON.stringify(u);
11532
- }
11533
- const pojo = `{${ownKeys(u).map((k) => `${isString(k) ? JSON.stringify(k) : String(k)}:${formatUnknown(u[k], false)}`).join(",")}}`;
11534
- const name = u.constructor.name;
11535
- return u.constructor !== Object.prototype.constructor ? `${name}(${pojo})` : pojo;
11536
- } catch {
11537
- return "<circular structure>";
11538
- }
11539
- };
11540
- var formatPropertyKey = (name) => typeof name === "string" ? JSON.stringify(name) : String(name);
11541
11597
  var isNonEmpty5 = (x) => Array.isArray(x);
11542
11598
  var isSingle = (x) => !Array.isArray(x);
11543
11599
  var formatPathKey = (key) => `[${formatPropertyKey(key)}]`;
11544
11600
  var formatPath = (path) => isNonEmpty5(path) ? path.map(formatPathKey).join("") : formatPathKey(path);
11545
11601
 
11546
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/schema/errors.js
11602
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/schema/errors.js
11547
11603
  var getErrorMessage = (reason, details, path, ast) => {
11548
11604
  let out = reason;
11549
11605
  if (path && isNonEmptyReadonlyArray(path)) {
@@ -11570,7 +11626,7 @@ var getASTDuplicatePropertySignatureTransformationErrorMessage = (key) => getErr
11570
11626
  var getASTDuplicatePropertySignatureErrorMessage = (key) => getErrorMessage("Duplicate property signature", `Duplicate key ${formatUnknown(key)}`);
11571
11627
  var MinLengthSchemaId = /* @__PURE__ */ Symbol.for("effect/SchemaId/MinLength");
11572
11628
 
11573
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/SchemaAST.js
11629
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/SchemaAST.js
11574
11630
  var BrandAnnotationId = /* @__PURE__ */ Symbol.for("effect/annotation/Brand");
11575
11631
  var SchemaIdAnnotationId = /* @__PURE__ */ Symbol.for("effect/annotation/SchemaId");
11576
11632
  var MessageAnnotationId = /* @__PURE__ */ Symbol.for("effect/annotation/Message");
@@ -12489,8 +12545,12 @@ var TypeLiteralTransformation = class {
12489
12545
  var isTypeLiteralTransformation = /* @__PURE__ */ createTransformationGuard("TypeLiteralTransformation");
12490
12546
  var annotations = (ast, overrides) => {
12491
12547
  const d = Object.getOwnPropertyDescriptors(ast);
12548
+ const base = {
12549
+ ...ast.annotations
12550
+ };
12551
+ delete base[IdentifierAnnotationId];
12492
12552
  const value2 = {
12493
- ...ast.annotations,
12553
+ ...base,
12494
12554
  ...overrides
12495
12555
  };
12496
12556
  const surrogate = getSurrogateAnnotation(ast);
@@ -12500,7 +12560,7 @@ var annotations = (ast, overrides) => {
12500
12560
  d.annotations.value = value2;
12501
12561
  return Object.create(Object.getPrototypeOf(ast), d);
12502
12562
  };
12503
- var STRING_KEYWORD_PATTERN = "[\\s\\S]*";
12563
+ var STRING_KEYWORD_PATTERN = "[\\s\\S]*?";
12504
12564
  var NUMBER_KEYWORD_PATTERN = "[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?";
12505
12565
  var getTemplateLiteralSpanTypePattern = (type, capture2) => {
12506
12566
  switch (type._tag) {
@@ -12673,12 +12733,6 @@ var typeAST = (ast) => {
12673
12733
  }
12674
12734
  return ast;
12675
12735
  };
12676
- var createJSONIdentifierAnnotation = (annotated) => match2(getJSONIdentifier(annotated), {
12677
- onNone: () => void 0,
12678
- onSome: (identifier2) => ({
12679
- [JSONIdentifierAnnotationId]: identifier2
12680
- })
12681
- });
12682
12736
  function changeMap(as6, f) {
12683
12737
  let changed = false;
12684
12738
  const out = allocate(as6.length);
@@ -12696,7 +12750,7 @@ var encodedAST_ = (ast, isBound) => {
12696
12750
  switch (ast._tag) {
12697
12751
  case "Declaration": {
12698
12752
  const typeParameters = changeMap(ast.typeParameters, (ast2) => encodedAST_(ast2));
12699
- return typeParameters === ast.typeParameters ? ast : new Declaration(typeParameters, ast.decodeUnknown, ast.encodeUnknown, ast.annotations);
12753
+ return typeParameters === ast.typeParameters ? ast : new Declaration(typeParameters, ast.decodeUnknown, ast.encodeUnknown);
12700
12754
  }
12701
12755
  case "TupleType": {
12702
12756
  const elements = changeMap(ast.elements, (e) => {
@@ -12705,7 +12759,7 @@ var encodedAST_ = (ast, isBound) => {
12705
12759
  });
12706
12760
  const restASTs = getRestASTs(ast.rest);
12707
12761
  const rest = changeMap(restASTs, (ast2) => encodedAST_(ast2));
12708
- return elements === ast.elements && rest === restASTs ? ast : new TupleType(elements, rest.map((ast2) => new Type(ast2)), ast.isReadonly, createJSONIdentifierAnnotation(ast));
12762
+ return elements === ast.elements && rest === restASTs ? ast : new TupleType(elements, rest.map((ast2) => new Type(ast2)), ast.isReadonly);
12709
12763
  }
12710
12764
  case "TypeLiteral": {
12711
12765
  const propertySignatures = changeMap(ast.propertySignatures, (ps) => {
@@ -12716,23 +12770,31 @@ var encodedAST_ = (ast, isBound) => {
12716
12770
  const type = encodedAST_(is2.type);
12717
12771
  return type === is2.type ? is2 : new IndexSignature(is2.parameter, type, is2.isReadonly);
12718
12772
  });
12719
- return propertySignatures === ast.propertySignatures && indexSignatures === ast.indexSignatures ? ast : new TypeLiteral(propertySignatures, indexSignatures, createJSONIdentifierAnnotation(ast));
12773
+ return propertySignatures === ast.propertySignatures && indexSignatures === ast.indexSignatures ? ast : new TypeLiteral(propertySignatures, indexSignatures);
12720
12774
  }
12721
12775
  case "Union": {
12722
12776
  const types = changeMap(ast.types, (ast2) => encodedAST_(ast2));
12723
- return types === ast.types ? ast : Union.make(types, createJSONIdentifierAnnotation(ast));
12777
+ return types === ast.types ? ast : Union.make(types);
12778
+ }
12779
+ case "Suspend": {
12780
+ let borrowedAnnotations = void 0;
12781
+ const identifier2 = getJSONIdentifier(ast);
12782
+ if (isSome2(identifier2)) {
12783
+ const suffix = "";
12784
+ borrowedAnnotations = {
12785
+ [JSONIdentifierAnnotationId]: `${identifier2.value}Encoded${suffix}`
12786
+ };
12787
+ }
12788
+ return new Suspend(() => encodedAST_(ast.f()), borrowedAnnotations);
12724
12789
  }
12725
- case "Suspend":
12726
- return new Suspend(() => encodedAST_(ast.f()), createJSONIdentifierAnnotation(ast));
12727
12790
  case "Refinement": {
12728
12791
  const from = encodedAST_(ast.from);
12729
- const identifier2 = createJSONIdentifierAnnotation(ast);
12730
- return identifier2 ? annotations(from, identifier2) : from;
12731
- }
12732
- case "Transformation": {
12733
- const identifier2 = createJSONIdentifierAnnotation(ast);
12734
- return encodedAST_(identifier2 ? annotations(ast.from, identifier2) : ast.from);
12792
+ {
12793
+ return from;
12794
+ }
12735
12795
  }
12796
+ case "Transformation":
12797
+ return encodedAST_(ast.from);
12736
12798
  }
12737
12799
  return ast;
12738
12800
  };
@@ -12764,7 +12826,7 @@ function getBrands(ast) {
12764
12826
  var getOrElseExpected = (ast) => getTitleAnnotation(ast).pipe(orElse(() => getDescriptionAnnotation(ast)), orElse(() => getAutoTitleAnnotation(ast)), map2((s) => s + getBrands(ast)));
12765
12827
  var getExpected = (ast) => orElse(getIdentifierAnnotation(ast), () => getOrElseExpected(ast));
12766
12828
 
12767
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/ParseResult.js
12829
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/ParseResult.js
12768
12830
  var Pointer = class {
12769
12831
  path;
12770
12832
  actual;
@@ -13238,7 +13300,7 @@ var go = (ast, isDecoding) => {
13238
13300
  }) => isNonEmptyArray2(es2) ? left2(new Composite2(ast, input, sortByIndex(es2), sortByIndex(output2))) : right2(sortByIndex(output2));
13239
13301
  if (queue && queue.length > 0) {
13240
13302
  const cqueue = queue;
13241
- return suspend4(() => {
13303
+ return suspend3(() => {
13242
13304
  const state = {
13243
13305
  es: copy(es),
13244
13306
  output: copy(output)
@@ -13285,7 +13347,7 @@ var go = (ast, isDecoding) => {
13285
13347
  const output = {};
13286
13348
  let inputKeys;
13287
13349
  if (onExcessPropertyError || onExcessPropertyPreserve) {
13288
- inputKeys = ownKeys(input);
13350
+ inputKeys = Reflect.ownKeys(input);
13289
13351
  for (const key of inputKeys) {
13290
13352
  const te = expected(key, options3);
13291
13353
  if (isEither3(te) && isLeft2(te)) {
@@ -13419,7 +13481,7 @@ var go = (ast, isDecoding) => {
13419
13481
  return left2(new Composite2(ast, input, sortByIndex(es2), output2));
13420
13482
  }
13421
13483
  if (options3?.propertyOrder === "original") {
13422
- const keys6 = inputKeys || ownKeys(input);
13484
+ const keys6 = inputKeys || Reflect.ownKeys(input);
13423
13485
  for (const name of expectedKeys) {
13424
13486
  if (keys6.indexOf(name) === -1) {
13425
13487
  keys6.push(name);
@@ -13437,7 +13499,7 @@ var go = (ast, isDecoding) => {
13437
13499
  };
13438
13500
  if (queue && queue.length > 0) {
13439
13501
  const cqueue = queue;
13440
- return suspend4(() => {
13502
+ return suspend3(() => {
13441
13503
  const state = {
13442
13504
  es: copy(es),
13443
13505
  output: Object.assign({}, output)
@@ -13457,8 +13519,8 @@ var go = (ast, isDecoding) => {
13457
13519
  }
13458
13520
  case "Union": {
13459
13521
  const searchTree = getSearchTree(ast.types, isDecoding);
13460
- const ownKeys2 = ownKeys(searchTree.keys);
13461
- const ownKeysLen = ownKeys2.length;
13522
+ const ownKeys = Reflect.ownKeys(searchTree.keys);
13523
+ const ownKeysLen = ownKeys.length;
13462
13524
  const astTypesLen = ast.types.length;
13463
13525
  const map22 = /* @__PURE__ */ new Map();
13464
13526
  for (let i = 0; i < astTypesLen; i++) {
@@ -13473,7 +13535,7 @@ var go = (ast, isDecoding) => {
13473
13535
  if (ownKeysLen > 0) {
13474
13536
  if (isRecordOrArray(input)) {
13475
13537
  for (let i = 0; i < ownKeysLen; i++) {
13476
- const name = ownKeys2[i];
13538
+ const name = ownKeys[i];
13477
13539
  const buckets = searchTree.keys[name].buckets;
13478
13540
  if (Object.prototype.hasOwnProperty.call(input, name)) {
13479
13541
  const literal = String(input[name]);
@@ -13521,7 +13583,7 @@ var go = (ast, isDecoding) => {
13521
13583
  if (!queue) {
13522
13584
  queue = [];
13523
13585
  }
13524
- queue.push((state) => suspend4(() => {
13586
+ queue.push((state) => suspend3(() => {
13525
13587
  if ("finalResult" in state) {
13526
13588
  return _void;
13527
13589
  } else {
@@ -13543,7 +13605,7 @@ var go = (ast, isDecoding) => {
13543
13605
  );
13544
13606
  if (queue && queue.length > 0) {
13545
13607
  const cqueue = queue;
13546
- return suspend4(() => {
13608
+ return suspend3(() => {
13547
13609
  const state = {
13548
13610
  es: copy(es)
13549
13611
  };
@@ -13563,7 +13625,7 @@ var go = (ast, isDecoding) => {
13563
13625
  };
13564
13626
  }
13565
13627
  case "Suspend": {
13566
- const get19 = memoizeThunk(() => goMemo(annotations(ast.f(), ast.annotations), isDecoding));
13628
+ const get19 = memoizeThunk(() => goMemo(ast.f(), isDecoding));
13567
13629
  return (a, options3) => get19()(a, options3);
13568
13630
  }
13569
13631
  }
@@ -13852,10 +13914,10 @@ var formatTree = (issue) => {
13852
13914
  }
13853
13915
  };
13854
13916
 
13855
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Redacted.js
13917
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Redacted.js
13856
13918
  var make42 = make41;
13857
13919
 
13858
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Struct.js
13920
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Struct.js
13859
13921
  var pick2 = /* @__PURE__ */ dual((args2) => isObject(args2[0]), (s, ...keys6) => {
13860
13922
  const out = {};
13861
13923
  for (const k of keys6) {
@@ -13875,7 +13937,7 @@ var omit2 = /* @__PURE__ */ dual((args2) => isObject(args2[0]), (s, ...keys6) =>
13875
13937
  return out;
13876
13938
  });
13877
13939
 
13878
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Schema.js
13940
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Schema.js
13879
13941
  var TypeId16 = /* @__PURE__ */ Symbol.for("effect/Schema");
13880
13942
  function make43(ast) {
13881
13943
  return class SchemaClass {
@@ -13941,7 +14003,6 @@ var toASTAnnotations = (annotations2) => {
13941
14003
  return out;
13942
14004
  };
13943
14005
  var mergeSchemaAnnotations = (ast, annotations2) => annotations(ast, toASTAnnotations(annotations2));
13944
- var format4 = (schema) => String(schema.ast);
13945
14006
  var typeSchema = (schema) => make43(typeAST(schema.ast));
13946
14007
  var decodeUnknown2 = (schema, options3) => {
13947
14008
  const decodeUnknown3 = decodeUnknown(schema, options3);
@@ -14203,13 +14264,14 @@ var optionalPropertySignatureAST = (self, options3) => {
14203
14264
  }), defaultValue).ast;
14204
14265
  }
14205
14266
  } else if (asOption) {
14267
+ const to = OptionFromSelf_(typeSchema(self));
14206
14268
  if (isNullable2) {
14207
- return optionalToRequired(NullOr(self), OptionFromSelf(typeSchema(self)), {
14269
+ return optionalToRequired(NullOr(self), to, {
14208
14270
  decode: filter(isNotNull),
14209
14271
  encode: asOptionEncode
14210
14272
  }).ast;
14211
14273
  } else {
14212
- return optionalToRequired(self, OptionFromSelf(typeSchema(self)), {
14274
+ return optionalToRequired(self, to, {
14213
14275
  decode: identity,
14214
14276
  encode: identity
14215
14277
  }).ast;
@@ -14244,13 +14306,14 @@ var optionalPropertySignatureAST = (self, options3) => {
14244
14306
  }), defaultValue).ast;
14245
14307
  }
14246
14308
  } else if (asOption) {
14309
+ const to = OptionFromSelf_(typeSchema(self));
14247
14310
  if (isNullable2) {
14248
- return optionalToRequired(NullishOr(self), OptionFromSelf(typeSchema(self)), {
14311
+ return optionalToRequired(NullishOr(self), to, {
14249
14312
  decode: filter((a) => a != null),
14250
14313
  encode: asOptionEncode
14251
14314
  }).ast;
14252
14315
  } else {
14253
- return optionalToRequired(UndefinedOr(self), OptionFromSelf(typeSchema(self)), {
14316
+ return optionalToRequired(UndefinedOr(self), to, {
14254
14317
  decode: filter(isNotUndefined),
14255
14318
  encode: asOptionEncode
14256
14319
  }).ast;
@@ -14276,14 +14339,14 @@ var optionalWith = /* @__PURE__ */ dual((args2) => isSchema(args2[0]), (self, op
14276
14339
  });
14277
14340
  var preserveMissingMessageAnnotation = /* @__PURE__ */ pickAnnotations([MissingMessageAnnotationId]);
14278
14341
  var getDefaultTypeLiteralAST = (fields, records) => {
14279
- const ownKeys2 = ownKeys(fields);
14342
+ const ownKeys = Reflect.ownKeys(fields);
14280
14343
  const pss = [];
14281
- if (ownKeys2.length > 0) {
14344
+ if (ownKeys.length > 0) {
14282
14345
  const from = [];
14283
14346
  const to = [];
14284
14347
  const transformations = [];
14285
- for (let i = 0; i < ownKeys2.length; i++) {
14286
- const key = ownKeys2[i];
14348
+ for (let i = 0; i < ownKeys.length; i++) {
14349
+ const key = ownKeys[i];
14287
14350
  const field = fields[key];
14288
14351
  if (isPropertySignature(field)) {
14289
14352
  const ast = field.ast;
@@ -14347,8 +14410,8 @@ var getDefaultTypeLiteralAST = (fields, records) => {
14347
14410
  return new TypeLiteral(pss, iss);
14348
14411
  };
14349
14412
  var lazilyMergeDefaults = (fields, out) => {
14350
- const ownKeys2 = ownKeys(fields);
14351
- for (const key of ownKeys2) {
14413
+ const ownKeys = Reflect.ownKeys(fields);
14414
+ for (const key of ownKeys) {
14352
14415
  const field = fields[key];
14353
14416
  if (out[key] === void 0 && isPropertySignature(field)) {
14354
14417
  const ast = field.ast;
@@ -14650,12 +14713,11 @@ var optionPretty = (value2) => match2({
14650
14713
  onSome: (a) => `some(${value2(a)})`
14651
14714
  });
14652
14715
  var optionParse = (decodeUnknown3) => (u, options3, ast) => isOption2(u) ? isNone2(u) ? succeed8(none2()) : toComposite(decodeUnknown3(u.value, options3), some2, ast, u) : fail8(new Type2(ast, u));
14653
- var OptionFromSelf = (value2) => {
14716
+ var OptionFromSelf_ = (value2) => {
14654
14717
  return declare([value2], {
14655
14718
  decode: (value3) => optionParse(decodeUnknown(value3)),
14656
14719
  encode: (value3) => optionParse(encodeUnknown(value3))
14657
14720
  }, {
14658
- description: `Option<${format4(value2)}>`,
14659
14721
  pretty: optionPretty,
14660
14722
  arbitrary: optionArbitrary,
14661
14723
  equivalence: getEquivalence
@@ -14671,7 +14733,7 @@ __export(Resource_exports, {
14671
14733
  GID: () => GID,
14672
14734
  ID: () => ID,
14673
14735
  Type: () => Type3,
14674
- format: () => format5,
14736
+ format: () => format4,
14675
14737
  parse: () => parse2
14676
14738
  });
14677
14739
 
@@ -14719,7 +14781,7 @@ var ID = Union2(
14719
14781
  );
14720
14782
 
14721
14783
  // ../../utils/dist/effect/Resource/data.js
14722
- var format5 = ({
14784
+ var format4 = ({
14723
14785
  id: id2,
14724
14786
  type
14725
14787
  }) => gen2(function* () {
@@ -14867,7 +14929,7 @@ __export(Logging_exports, {
14867
14929
  makeNamespacedLogSpan: () => makeNamespacedLogSpan
14868
14930
  });
14869
14931
 
14870
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/FiberRef.js
14932
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/FiberRef.js
14871
14933
  var unsafeMake7 = fiberRefUnsafeMake;
14872
14934
  var get13 = fiberRefGet;
14873
14935
  var currentContext2 = currentContext;
@@ -14881,7 +14943,7 @@ var filterLevelOrNever = (level, effect3) => gen2(function* () {
14881
14943
  });
14882
14944
  var makeNamespacedLogSpan = (prefix) => (label) => withLogSpan2(`${prefix}:${label}`);
14883
14945
 
14884
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/queue.js
14946
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/queue.js
14885
14947
  var EnqueueSymbolKey = "effect/QueueEnqueue";
14886
14948
  var EnqueueTypeId = /* @__PURE__ */ Symbol.for(EnqueueSymbolKey);
14887
14949
  var DequeueSymbolKey = "effect/QueueDequeue";
@@ -15240,7 +15302,7 @@ var unsafeCompleteTakers = (strategy, queue, takers) => {
15240
15302
  }
15241
15303
  };
15242
15304
 
15243
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Queue.js
15305
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Queue.js
15244
15306
  var bounded3 = bounded2;
15245
15307
  var unbounded3 = unbounded2;
15246
15308
  var size11 = size10;
@@ -15248,12 +15310,12 @@ var shutdown2 = shutdown;
15248
15310
  var offer3 = offer2;
15249
15311
  var take2 = take;
15250
15312
 
15251
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/opCodes/channelChildExecutorDecision.js
15313
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/channelChildExecutorDecision.js
15252
15314
  var OP_CONTINUE2 = "Continue";
15253
15315
  var OP_CLOSE = "Close";
15254
15316
  var OP_YIELD2 = "Yield";
15255
15317
 
15256
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/channel/childExecutorDecision.js
15318
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/childExecutorDecision.js
15257
15319
  var ChildExecutorDecisionSymbolKey = "effect/ChannelChildExecutorDecision";
15258
15320
  var ChildExecutorDecisionTypeId = /* @__PURE__ */ Symbol.for(ChildExecutorDecisionSymbolKey);
15259
15321
  var proto5 = {
@@ -15265,11 +15327,11 @@ var Continue = (_) => {
15265
15327
  return op;
15266
15328
  };
15267
15329
 
15268
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/opCodes/continuation.js
15330
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/continuation.js
15269
15331
  var OP_CONTINUATION_K = "ContinuationK";
15270
15332
  var OP_CONTINUATION_FINALIZER = "ContinuationFinalizer";
15271
15333
 
15272
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/channel/continuation.js
15334
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/continuation.js
15273
15335
  var ContinuationTypeId = /* @__PURE__ */ Symbol.for("effect/ChannelContinuation");
15274
15336
  var continuationVariance = {
15275
15337
  /* c8 ignore next */
@@ -15313,11 +15375,11 @@ var ContinuationFinalizerImpl = class {
15313
15375
  }
15314
15376
  };
15315
15377
 
15316
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/opCodes/channelUpstreamPullStrategy.js
15378
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/channelUpstreamPullStrategy.js
15317
15379
  var OP_PULL_AFTER_NEXT = "PullAfterNext";
15318
15380
  var OP_PULL_AFTER_ALL_ENQUEUED = "PullAfterAllEnqueued";
15319
15381
 
15320
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/channel/upstreamPullStrategy.js
15382
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/upstreamPullStrategy.js
15321
15383
  var UpstreamPullStrategySymbolKey = "effect/ChannelUpstreamPullStrategy";
15322
15384
  var UpstreamPullStrategyTypeId = /* @__PURE__ */ Symbol.for(UpstreamPullStrategySymbolKey);
15323
15385
  var upstreamPullStrategyVariance = {
@@ -15334,7 +15396,7 @@ var PullAfterNext = (emitSeparator) => {
15334
15396
  return op;
15335
15397
  };
15336
15398
 
15337
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/opCodes/channel.js
15399
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/channel.js
15338
15400
  var OP_BRACKET_OUT = "BracketOut";
15339
15401
  var OP_BRIDGE = "Bridge";
15340
15402
  var OP_CONCAT_ALL = "ConcatAll";
@@ -15350,7 +15412,7 @@ var OP_SUCCEED = "Succeed";
15350
15412
  var OP_SUCCEED_NOW = "SucceedNow";
15351
15413
  var OP_SUSPEND2 = "Suspend";
15352
15414
 
15353
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/core-stream.js
15415
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/core-stream.js
15354
15416
  var ChannelSymbolKey = "effect/Channel";
15355
15417
  var ChannelTypeId2 = /* @__PURE__ */ Symbol.for(ChannelSymbolKey);
15356
15418
  var channelVariance2 = {
@@ -15489,13 +15551,13 @@ var write = (out) => {
15489
15551
  return op;
15490
15552
  };
15491
15553
 
15492
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/opCodes/channelState.js
15554
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/channelState.js
15493
15555
  var OP_DONE3 = "Done";
15494
15556
  var OP_EMIT2 = "Emit";
15495
15557
  var OP_FROM_EFFECT3 = "FromEffect";
15496
15558
  var OP_READ2 = "Read";
15497
15559
 
15498
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/channel/channelState.js
15560
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/channelState.js
15499
15561
  var ChannelStateTypeId = /* @__PURE__ */ Symbol.for("effect/ChannelState");
15500
15562
  var channelStateVariance = {
15501
15563
  /* c8 ignore next */
@@ -15535,7 +15597,7 @@ var isFromEffect = (self) => self._tag === OP_FROM_EFFECT3;
15535
15597
  var effect2 = (self) => isFromEffect(self) ? self.effect : _void;
15536
15598
  var effectOrUndefinedIgnored = (self) => isFromEffect(self) ? ignore2(self.effect) : void 0;
15537
15599
 
15538
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/channel/subexecutor.js
15600
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/subexecutor.js
15539
15601
  var OP_PULL_FROM_CHILD = "PullFromChild";
15540
15602
  var OP_PULL_FROM_UPSTREAM = "PullFromUpstream";
15541
15603
  var OP_DRAIN_CHILD_EXECUTORS = "DrainChildExecutors";
@@ -15554,7 +15616,7 @@ var PullFromChild = class {
15554
15616
  const fin1 = this.childExecutor.close(exit4);
15555
15617
  const fin2 = this.parentSubexecutor.close(exit4);
15556
15618
  if (fin1 !== void 0 && fin2 !== void 0) {
15557
- return zipWith4(exit3(fin1), exit3(fin2), (exit1, exit22) => pipe(exit1, zipRight2(exit22)));
15619
+ return zipWith3(exit3(fin1), exit3(fin2), (exit1, exit22) => pipe(exit1, zipRight2(exit22)));
15558
15620
  } else if (fin1 !== void 0) {
15559
15621
  return fin1;
15560
15622
  } else if (fin2 !== void 0) {
@@ -15592,7 +15654,7 @@ var PullFromUpstream = class _PullFromUpstream {
15592
15654
  const fins = [...this.activeChildExecutors.map((child) => child !== void 0 ? child.childExecutor.close(exit4) : void 0), fin1];
15593
15655
  const result = fins.reduce((acc, next) => {
15594
15656
  if (acc !== void 0 && next !== void 0) {
15595
- return zipWith4(acc, exit3(next), (exit1, exit22) => zipRight2(exit1, exit22));
15657
+ return zipWith3(acc, exit3(next), (exit1, exit22) => zipRight2(exit1, exit22));
15596
15658
  } else if (acc !== void 0) {
15597
15659
  return acc;
15598
15660
  } else if (next !== void 0) {
@@ -15630,7 +15692,7 @@ var DrainChildExecutors = class _DrainChildExecutors {
15630
15692
  const fins = [...this.activeChildExecutors.map((child) => child !== void 0 ? child.childExecutor.close(exit4) : void 0), fin1];
15631
15693
  const result = fins.reduce((acc, next) => {
15632
15694
  if (acc !== void 0 && next !== void 0) {
15633
- return zipWith4(acc, exit3(next), (exit1, exit22) => zipRight2(exit1, exit22));
15695
+ return zipWith3(acc, exit3(next), (exit1, exit22) => zipRight2(exit1, exit22));
15634
15696
  } else if (acc !== void 0) {
15635
15697
  return acc;
15636
15698
  } else if (next !== void 0) {
@@ -15662,11 +15724,11 @@ var Emit2 = class {
15662
15724
  }
15663
15725
  };
15664
15726
 
15665
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/opCodes/channelUpstreamPullRequest.js
15727
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/channelUpstreamPullRequest.js
15666
15728
  var OP_PULLED = "Pulled";
15667
15729
  var OP_NO_UPSTREAM = "NoUpstream";
15668
15730
 
15669
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/channel/upstreamPullRequest.js
15731
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/upstreamPullRequest.js
15670
15732
  var UpstreamPullRequestSymbolKey = "effect/ChannelUpstreamPullRequest";
15671
15733
  var UpstreamPullRequestTypeId = /* @__PURE__ */ Symbol.for(UpstreamPullRequestSymbolKey);
15672
15734
  var upstreamPullRequestVariance = {
@@ -15689,7 +15751,7 @@ var NoUpstream = (activeDownstreamCount) => {
15689
15751
  return op;
15690
15752
  };
15691
15753
 
15692
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/channel/channelExecutor.js
15754
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/channelExecutor.js
15693
15755
  var ChannelExecutor = class _ChannelExecutor {
15694
15756
  _activeSubexecutor = void 0;
15695
15757
  _cancelled = void 0;
@@ -15733,7 +15795,7 @@ var ChannelExecutor = class _ChannelExecutor {
15733
15795
  if (this._input !== void 0) {
15734
15796
  const inputExecutor = this._input;
15735
15797
  this._input = void 0;
15736
- const drainer = () => flatMap10(bridgeInput.awaitRead(), () => suspend4(() => {
15798
+ const drainer = () => flatMap10(bridgeInput.awaitRead(), () => suspend3(() => {
15737
15799
  const state = inputExecutor.run();
15738
15800
  switch (state._tag) {
15739
15801
  case OP_DONE3: {
@@ -15756,7 +15818,7 @@ var ChannelExecutor = class _ChannelExecutor {
15756
15818
  }
15757
15819
  }
15758
15820
  }));
15759
- result = fromEffect5(flatMap10(forkDaemon2(interruptible4(drainer())), (fiber) => sync4(() => this.addFinalizer((exit4) => flatMap10(interrupt4(fiber), () => suspend4(() => {
15821
+ result = fromEffect5(flatMap10(forkDaemon2(interruptible4(drainer())), (fiber) => sync4(() => this.addFinalizer((exit4) => flatMap10(interrupt4(fiber), () => suspend3(() => {
15760
15822
  const effect3 = this.restorePipe(exit4, inputExecutor);
15761
15823
  return effect3 !== void 0 ? effect3 : _void;
15762
15824
  }))))));
@@ -15939,12 +16001,12 @@ var ChannelExecutor = class _ChannelExecutor {
15939
16001
  map17(([[exit1, exit22], exit32]) => pipe(exit1, zipRight2(exit22), zipRight2(exit32))),
15940
16002
  uninterruptible2,
15941
16003
  // TODO: remove
15942
- flatMap10((exit5) => suspend4(() => exit5))
16004
+ flatMap10((exit5) => suspend3(() => exit5))
15943
16005
  );
15944
16006
  }
15945
16007
  doneSucceed(value2) {
15946
16008
  if (this._doneStack.length === 0) {
15947
- this._done = succeed4(value2);
16009
+ this._done = succeed3(value2);
15948
16010
  this._currentChannel = void 0;
15949
16011
  return Done2();
15950
16012
  }
@@ -15957,18 +16019,18 @@ var ChannelExecutor = class _ChannelExecutor {
15957
16019
  const finalizers = this.popNextFinalizers();
15958
16020
  if (this._doneStack.length === 0) {
15959
16021
  this._doneStack = finalizers.reverse();
15960
- this._done = succeed4(value2);
16022
+ this._done = succeed3(value2);
15961
16023
  this._currentChannel = void 0;
15962
16024
  return Done2();
15963
16025
  }
15964
- const finalizerEffect = runFinalizers(finalizers.map((f) => f.finalizer), succeed4(value2));
16026
+ const finalizerEffect = runFinalizers(finalizers.map((f) => f.finalizer), succeed3(value2));
15965
16027
  this.storeInProgressFinalizer(finalizerEffect);
15966
16028
  const effect3 = pipe(finalizerEffect, ensuring2(sync4(() => this.clearInProgressFinalizer())), uninterruptible2, flatMap10(() => sync4(() => this.doneSucceed(value2))));
15967
16029
  return fromEffect5(effect3);
15968
16030
  }
15969
16031
  doneHalt(cause2) {
15970
16032
  if (this._doneStack.length === 0) {
15971
- this._done = failCause4(cause2);
16033
+ this._done = failCause3(cause2);
15972
16034
  this._currentChannel = void 0;
15973
16035
  return Done2();
15974
16036
  }
@@ -15985,11 +16047,11 @@ var ChannelExecutor = class _ChannelExecutor {
15985
16047
  const finalizers = this.popNextFinalizers();
15986
16048
  if (this._doneStack.length === 0) {
15987
16049
  this._doneStack = finalizers.reverse();
15988
- this._done = failCause4(cause2);
16050
+ this._done = failCause3(cause2);
15989
16051
  this._currentChannel = void 0;
15990
16052
  return Done2();
15991
16053
  }
15992
- const finalizerEffect = runFinalizers(finalizers.map((f) => f.finalizer), failCause4(cause2));
16054
+ const finalizerEffect = runFinalizers(finalizers.map((f) => f.finalizer), failCause3(cause2));
15993
16055
  this.storeInProgressFinalizer(finalizerEffect);
15994
16056
  const effect3 = pipe(finalizerEffect, ensuring2(sync4(() => this.clearInProgressFinalizer())), uninterruptible2, flatMap10(() => sync4(() => this.doneHalt(cause2))));
15995
16057
  return fromEffect5(effect3);
@@ -16018,9 +16080,9 @@ var ChannelExecutor = class _ChannelExecutor {
16018
16080
  }
16019
16081
  return pipe(effect3, provide2(this._providedEnv));
16020
16082
  }
16021
- runEnsuring(ensuring5) {
16022
- this.addFinalizer(ensuring5.finalizer);
16023
- this._currentChannel = ensuring5.channel;
16083
+ runEnsuring(ensuring6) {
16084
+ this.addFinalizer(ensuring6.finalizer);
16085
+ this._currentChannel = ensuring6.channel;
16024
16086
  }
16025
16087
  addFinalizer(f) {
16026
16088
  this._doneStack.push(new ContinuationFinalizerImpl(f));
@@ -16114,20 +16176,20 @@ var ChannelExecutor = class _ChannelExecutor {
16114
16176
  switch (subexecutor._tag) {
16115
16177
  case OP_PULL_FROM_UPSTREAM: {
16116
16178
  const modifiedParent = new PullFromUpstream(subexecutor.upstreamExecutor, subexecutor.createChild, subexecutor.lastDone !== void 0 ? subexecutor.combineChildResults(subexecutor.lastDone, doneValue) : doneValue, subexecutor.activeChildExecutors, subexecutor.combineChildResults, subexecutor.combineWithChildResult, subexecutor.onPull, subexecutor.onEmit);
16117
- this._closeLastSubstream = childExecutor.close(succeed4(doneValue));
16179
+ this._closeLastSubstream = childExecutor.close(succeed3(doneValue));
16118
16180
  this.replaceSubexecutor(modifiedParent);
16119
16181
  break;
16120
16182
  }
16121
16183
  case OP_DRAIN_CHILD_EXECUTORS: {
16122
16184
  const modifiedParent = new DrainChildExecutors(subexecutor.upstreamExecutor, subexecutor.lastDone !== void 0 ? subexecutor.combineChildResults(subexecutor.lastDone, doneValue) : doneValue, subexecutor.activeChildExecutors, subexecutor.upstreamDone, subexecutor.combineChildResults, subexecutor.combineWithChildResult, subexecutor.onPull);
16123
- this._closeLastSubstream = childExecutor.close(succeed4(doneValue));
16185
+ this._closeLastSubstream = childExecutor.close(succeed3(doneValue));
16124
16186
  this.replaceSubexecutor(modifiedParent);
16125
16187
  break;
16126
16188
  }
16127
16189
  }
16128
16190
  }
16129
16191
  handleSubexecutorFailure(childExecutor, parentSubexecutor, cause2) {
16130
- return this.finishSubexecutorWithCloseEffect(failCause4(cause2), (exit4) => parentSubexecutor.close(exit4), (exit4) => childExecutor.close(exit4));
16192
+ return this.finishSubexecutorWithCloseEffect(failCause3(cause2), (exit4) => parentSubexecutor.close(exit4), (exit4) => childExecutor.close(exit4));
16131
16193
  }
16132
16194
  pullFromUpstream(subexecutor) {
16133
16195
  if (subexecutor.activeChildExecutors.length === 0) {
@@ -16214,7 +16276,7 @@ var ChannelExecutor = class _ChannelExecutor {
16214
16276
  };
16215
16277
  var ifNotNull = (effect3) => effect3 !== void 0 ? effect3 : _void;
16216
16278
  var runFinalizers = (finalizers, exit4) => {
16217
- return pipe(forEach8(finalizers, (fin) => exit3(fin(exit4))), map17((exits) => pipe(all2(exits), getOrElse(() => void_3))), flatMap10((exit5) => suspend4(() => exit5)));
16279
+ return pipe(forEach8(finalizers, (fin) => exit3(fin(exit4))), map17((exits) => pipe(all2(exits), getOrElse(() => void_3))), flatMap10((exit5) => suspend3(() => exit5)));
16218
16280
  };
16219
16281
  var readUpstream = (r, onSuccess, onFailure) => {
16220
16282
  const readStack = [r];
@@ -16229,7 +16291,7 @@ var readUpstream = (r, onSuccess, onFailure) => {
16229
16291
  const emitEffect = current.onEmit(current.upstream.getEmit());
16230
16292
  if (readStack.length === 0) {
16231
16293
  if (emitEffect === void 0) {
16232
- return suspend4(onSuccess);
16294
+ return suspend3(onSuccess);
16233
16295
  }
16234
16296
  return pipe(emitEffect, matchCauseEffect3({
16235
16297
  onFailure,
@@ -16237,7 +16299,7 @@ var readUpstream = (r, onSuccess, onFailure) => {
16237
16299
  }));
16238
16300
  }
16239
16301
  if (emitEffect === void 0) {
16240
- return suspend4(() => read());
16302
+ return suspend3(() => read());
16241
16303
  }
16242
16304
  return pipe(emitEffect, matchCauseEffect3({
16243
16305
  onFailure,
@@ -16248,7 +16310,7 @@ var readUpstream = (r, onSuccess, onFailure) => {
16248
16310
  const doneEffect = current.onDone(current.upstream.getDone());
16249
16311
  if (readStack.length === 0) {
16250
16312
  if (doneEffect === void 0) {
16251
- return suspend4(onSuccess);
16313
+ return suspend3(onSuccess);
16252
16314
  }
16253
16315
  return pipe(doneEffect, matchCauseEffect3({
16254
16316
  onFailure,
@@ -16256,7 +16318,7 @@ var readUpstream = (r, onSuccess, onFailure) => {
16256
16318
  }));
16257
16319
  }
16258
16320
  if (doneEffect === void 0) {
16259
- return suspend4(() => read());
16321
+ return suspend3(() => read());
16260
16322
  }
16261
16323
  return pipe(doneEffect, matchCauseEffect3({
16262
16324
  onFailure,
@@ -16265,8 +16327,8 @@ var readUpstream = (r, onSuccess, onFailure) => {
16265
16327
  }
16266
16328
  case OP_FROM_EFFECT3: {
16267
16329
  readStack.push(current);
16268
- return pipe(current.onEffect(state.effect), catchAllCause2((cause2) => suspend4(() => {
16269
- const doneEffect = current.onDone(failCause4(cause2));
16330
+ return pipe(current.onEffect(state.effect), catchAllCause2((cause2) => suspend3(() => {
16331
+ const doneEffect = current.onDone(failCause3(cause2));
16270
16332
  return doneEffect === void 0 ? _void : doneEffect;
16271
16333
  })), matchCauseEffect3({
16272
16334
  onFailure,
@@ -16276,24 +16338,24 @@ var readUpstream = (r, onSuccess, onFailure) => {
16276
16338
  case OP_READ2: {
16277
16339
  readStack.push(current);
16278
16340
  readStack.push(state);
16279
- return suspend4(() => read());
16341
+ return suspend3(() => read());
16280
16342
  }
16281
16343
  }
16282
16344
  };
16283
16345
  return read();
16284
16346
  };
16285
16347
  var runIn = /* @__PURE__ */ dual(2, (self, scope4) => {
16286
- const run3 = (channelDeferred, scopeDeferred, scope5) => acquireUseRelease2(sync4(() => new ChannelExecutor(self, void 0, identity)), (exec) => suspend4(() => runScopedInterpret(exec.run(), exec).pipe(intoDeferred2(channelDeferred), zipRight3(_await(channelDeferred)), zipLeft2(_await(scopeDeferred)))), (exec, exit4) => {
16348
+ const run3 = (channelDeferred, scopeDeferred, scope5) => acquireUseRelease2(sync4(() => new ChannelExecutor(self, void 0, identity)), (exec) => suspend3(() => runScopedInterpret(exec.run(), exec).pipe(intoDeferred2(channelDeferred), zipRight3(_await3(channelDeferred)), zipLeft2(_await3(scopeDeferred)))), (exec, exit4) => {
16287
16349
  const finalize = exec.close(exit4);
16288
16350
  if (finalize === void 0) {
16289
16351
  return _void;
16290
16352
  }
16291
16353
  return tapErrorCause2(finalize, (cause2) => addFinalizer2(scope5, failCause7(cause2)));
16292
16354
  });
16293
- return uninterruptibleMask3((restore) => all4([fork(scope4, sequential3), make23(), make23()]).pipe(flatMap10(([child, channelDeferred, scopeDeferred]) => restore(run3(channelDeferred, scopeDeferred, child)).pipe(forkIn2(scope4), flatMap10((fiber) => scope4.addFinalizer((exit4) => {
16355
+ return uninterruptibleMask3((restore) => all4([fork(scope4, sequential3), make39(), make39()]).pipe(flatMap10(([child, channelDeferred, scopeDeferred]) => restore(run3(channelDeferred, scopeDeferred, child)).pipe(forkIn2(scope4), flatMap10((fiber) => scope4.addFinalizer((exit4) => {
16294
16356
  const interruptors3 = isFailure(exit4) ? interruptors2(exit4.cause) : void 0;
16295
- return isDone(channelDeferred).pipe(flatMap10((isDone6) => isDone6 ? succeed2(scopeDeferred, void 0).pipe(zipRight3(_await3(fiber)), zipRight3(inheritAll2(fiber))) : succeed2(scopeDeferred, void 0).pipe(zipRight3(interruptors3 && size3(interruptors3) > 0 ? interruptAs(fiber, combineAll2(interruptors3)) : interrupt4(fiber)), zipRight3(inheritAll2(fiber)))));
16296
- }).pipe(zipRight3(restore(_await(channelDeferred)))))))));
16357
+ return isDone5(channelDeferred).pipe(flatMap10((isDone6) => isDone6 ? succeed5(scopeDeferred, void 0).pipe(zipRight3(_await2(fiber)), zipRight3(inheritAll2(fiber))) : succeed5(scopeDeferred, void 0).pipe(zipRight3(interruptors3 && size3(interruptors3) > 0 ? interruptAs(fiber, combineAll2(interruptors3)) : interrupt4(fiber)), zipRight3(inheritAll2(fiber)))));
16358
+ }).pipe(zipRight3(restore(_await3(channelDeferred)))))))));
16297
16359
  });
16298
16360
  var runScopedInterpret = (channelState, exec) => {
16299
16361
  const op = channelState;
@@ -16305,7 +16367,7 @@ var runScopedInterpret = (channelState, exec) => {
16305
16367
  return runScopedInterpret(exec.run(), exec);
16306
16368
  }
16307
16369
  case OP_DONE3: {
16308
- return suspend4(() => exec.getDone());
16370
+ return suspend3(() => exec.getDone());
16309
16371
  }
16310
16372
  case OP_READ2: {
16311
16373
  return readUpstream(op, () => runScopedInterpret(exec.run(), exec), failCause7);
@@ -16313,11 +16375,11 @@ var runScopedInterpret = (channelState, exec) => {
16313
16375
  }
16314
16376
  };
16315
16377
 
16316
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/opCodes/channelMergeDecision.js
16378
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/channelMergeDecision.js
16317
16379
  var OP_DONE4 = "Done";
16318
16380
  var OP_AWAIT = "Await";
16319
16381
 
16320
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/channel/mergeDecision.js
16382
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/mergeDecision.js
16321
16383
  var MergeDecisionSymbolKey = "effect/ChannelMergeDecision";
16322
16384
  var MergeDecisionTypeId = /* @__PURE__ */ Symbol.for(MergeDecisionSymbolKey);
16323
16385
  var proto10 = {
@@ -16336,12 +16398,12 @@ var Await = (f) => {
16336
16398
  return op;
16337
16399
  };
16338
16400
 
16339
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/opCodes/channelMergeState.js
16401
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/channelMergeState.js
16340
16402
  var OP_BOTH_RUNNING = "BothRunning";
16341
16403
  var OP_LEFT_DONE = "LeftDone";
16342
16404
  var OP_RIGHT_DONE = "RightDone";
16343
16405
 
16344
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/channel/mergeState.js
16406
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/mergeState.js
16345
16407
  var MergeStateSymbolKey = "effect/ChannelMergeState";
16346
16408
  var MergeStateTypeId = /* @__PURE__ */ Symbol.for(MergeStateSymbolKey);
16347
16409
  var proto11 = {
@@ -16367,11 +16429,11 @@ var RightDone = (f) => {
16367
16429
  return op;
16368
16430
  };
16369
16431
 
16370
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/opCodes/channelMergeStrategy.js
16432
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/channelMergeStrategy.js
16371
16433
  var OP_BACK_PRESSURE = "BackPressure";
16372
16434
  var OP_BUFFER_SLIDING = "BufferSliding";
16373
16435
 
16374
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/channel/mergeStrategy.js
16436
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/mergeStrategy.js
16375
16437
  var MergeStrategySymbolKey = "effect/ChannelMergeStrategy";
16376
16438
  var MergeStrategyTypeId = /* @__PURE__ */ Symbol.for(MergeStrategySymbolKey);
16377
16439
  var proto12 = {
@@ -16401,7 +16463,7 @@ var match13 = /* @__PURE__ */ dual(2, (self, {
16401
16463
  }
16402
16464
  });
16403
16465
 
16404
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/channel/singleProducerAsyncInput.js
16466
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/singleProducerAsyncInput.js
16405
16467
  var OP_STATE_EMPTY = "Empty";
16406
16468
  var OP_STATE_EMIT = "Emit";
16407
16469
  var OP_STATE_ERROR = "Error";
@@ -16428,7 +16490,7 @@ var SingleProducerAsyncInputImpl = class {
16428
16490
  this.ref = ref;
16429
16491
  }
16430
16492
  awaitRead() {
16431
- return flatten5(modify4(this.ref, (state) => state._tag === OP_STATE_EMPTY ? [_await(state.notifyProducer), state] : [_void, state]));
16493
+ return flatten5(modify4(this.ref, (state) => state._tag === OP_STATE_EMPTY ? [_await3(state.notifyProducer), state] : [_void, state]));
16432
16494
  }
16433
16495
  get close() {
16434
16496
  return fiberIdWith2((fiberId2) => this.error(interrupt3(fiberId2)));
@@ -16437,10 +16499,10 @@ var SingleProducerAsyncInputImpl = class {
16437
16499
  return flatten5(modify4(this.ref, (state) => {
16438
16500
  switch (state._tag) {
16439
16501
  case OP_STATE_EMPTY: {
16440
- return [_await(state.notifyProducer), state];
16502
+ return [_await3(state.notifyProducer), state];
16441
16503
  }
16442
16504
  case OP_STATE_EMIT: {
16443
- return [forEach8(state.notifyConsumers, (deferred) => succeed2(deferred, left2(value2)), {
16505
+ return [forEach8(state.notifyConsumers, (deferred) => succeed5(deferred, left2(value2)), {
16444
16506
  discard: true
16445
16507
  }), stateDone(value2)];
16446
16508
  }
@@ -16454,16 +16516,16 @@ var SingleProducerAsyncInputImpl = class {
16454
16516
  }));
16455
16517
  }
16456
16518
  emit(element) {
16457
- return flatMap10(make23(), (deferred) => flatten5(modify4(this.ref, (state) => {
16519
+ return flatMap10(make39(), (deferred) => flatten5(modify4(this.ref, (state) => {
16458
16520
  switch (state._tag) {
16459
16521
  case OP_STATE_EMPTY: {
16460
- return [_await(state.notifyProducer), state];
16522
+ return [_await3(state.notifyProducer), state];
16461
16523
  }
16462
16524
  case OP_STATE_EMIT: {
16463
16525
  const notifyConsumer = state.notifyConsumers[0];
16464
16526
  const notifyConsumers = state.notifyConsumers.slice(1);
16465
16527
  if (notifyConsumer !== void 0) {
16466
- return [succeed2(notifyConsumer, right2(element)), notifyConsumers.length === 0 ? stateEmpty(deferred) : stateEmit(notifyConsumers)];
16528
+ return [succeed5(notifyConsumer, right2(element)), notifyConsumers.length === 0 ? stateEmpty(deferred) : stateEmit(notifyConsumers)];
16467
16529
  }
16468
16530
  throw new Error("Bug: Channel.SingleProducerAsyncInput.emit - Queue was empty! please report an issue at https://github.com/Effect-TS/effect/issues");
16469
16531
  }
@@ -16480,10 +16542,10 @@ var SingleProducerAsyncInputImpl = class {
16480
16542
  return flatten5(modify4(this.ref, (state) => {
16481
16543
  switch (state._tag) {
16482
16544
  case OP_STATE_EMPTY: {
16483
- return [_await(state.notifyProducer), state];
16545
+ return [_await3(state.notifyProducer), state];
16484
16546
  }
16485
16547
  case OP_STATE_EMIT: {
16486
- return [forEach8(state.notifyConsumers, (deferred) => failCause2(deferred, cause2), {
16548
+ return [forEach8(state.notifyConsumers, (deferred) => failCause6(deferred, cause2), {
16487
16549
  discard: true
16488
16550
  }), stateError(cause2)];
16489
16551
  }
@@ -16497,13 +16559,13 @@ var SingleProducerAsyncInputImpl = class {
16497
16559
  }));
16498
16560
  }
16499
16561
  get take() {
16500
- return this.takeWith((cause2) => failCause4(map14(cause2, left2)), (elem) => succeed4(elem), (done7) => fail3(right2(done7)));
16562
+ return this.takeWith((cause2) => failCause3(map14(cause2, left2)), (elem) => succeed3(elem), (done7) => fail3(right2(done7)));
16501
16563
  }
16502
16564
  takeWith(onError4, onElement, onDone2) {
16503
- return flatMap10(make23(), (deferred) => flatten5(modify4(this.ref, (state) => {
16565
+ return flatMap10(make39(), (deferred) => flatten5(modify4(this.ref, (state) => {
16504
16566
  switch (state._tag) {
16505
16567
  case OP_STATE_EMPTY: {
16506
- return [zipRight3(succeed2(state.notifyProducer, void 0), matchCause4(_await(deferred), {
16568
+ return [zipRight3(succeed5(state.notifyProducer, void 0), matchCause4(_await3(deferred), {
16507
16569
  onFailure: onError4,
16508
16570
  onSuccess: match({
16509
16571
  onLeft: onDone2,
@@ -16512,7 +16574,7 @@ var SingleProducerAsyncInputImpl = class {
16512
16574
  })), stateEmit([deferred])];
16513
16575
  }
16514
16576
  case OP_STATE_EMIT: {
16515
- return [matchCause4(_await(deferred), {
16577
+ return [matchCause4(_await3(deferred), {
16516
16578
  onFailure: onError4,
16517
16579
  onSuccess: match({
16518
16580
  onLeft: onDone2,
@@ -16530,9 +16592,9 @@ var SingleProducerAsyncInputImpl = class {
16530
16592
  })));
16531
16593
  }
16532
16594
  };
16533
- var make47 = () => pipe(make23(), flatMap10((deferred) => make25(stateEmpty(deferred))), map17((ref) => new SingleProducerAsyncInputImpl(ref)));
16595
+ var make47 = () => pipe(make39(), flatMap10((deferred) => make24(stateEmpty(deferred))), map17((ref) => new SingleProducerAsyncInputImpl(ref)));
16534
16596
 
16535
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/channel.js
16597
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel.js
16536
16598
  var concatMap = /* @__PURE__ */ dual(2, (self, f) => concatMapWith(self, f, () => void 0, () => void 0));
16537
16599
  var drain = (self) => {
16538
16600
  const drainer = readWithCause({
@@ -16554,7 +16616,7 @@ var mapOut = /* @__PURE__ */ dual(2, (self, f) => {
16554
16616
  });
16555
16617
  return pipeTo(self, reader);
16556
16618
  });
16557
- var mergeAll5 = (options3) => {
16619
+ var mergeAll6 = (options3) => {
16558
16620
  return (channels) => mergeAllWith(options3)(channels, constVoid);
16559
16621
  };
16560
16622
  var mergeAllWith = ({
@@ -16569,8 +16631,8 @@ var mergeAllWith = ({
16569
16631
  yield* addFinalizer2(scope4, shutdown2(queue));
16570
16632
  const cancelers = yield* unbounded3();
16571
16633
  yield* addFinalizer2(scope4, shutdown2(cancelers));
16572
- const lastDone = yield* make25(none2());
16573
- const errorSignal = yield* make23();
16634
+ const lastDone = yield* make24(none2());
16635
+ const errorSignal = yield* make39();
16574
16636
  const withPermits = (yield* makeSemaphore2(concurrencyN)).withPermits;
16575
16637
  const pull = yield* toPullIn(pipeTo(queueReader, channels), scope4);
16576
16638
  function evaluatePull(pull2) {
@@ -16582,12 +16644,12 @@ var mergeAllWith = ({
16582
16644
  }), flatMap10((outDone) => update3(lastDone, match2({
16583
16645
  onNone: () => some2(outDone.value),
16584
16646
  onSome: (lastDone2) => some2(f(lastDone2, outDone.value))
16585
- }))), catchAllCause2((cause2) => isInterrupted3(cause2) ? failCause7(cause2) : offer3(queue, failCause7(cause2)).pipe(zipRight3(succeed2(errorSignal, void 0)), asVoid2)));
16647
+ }))), catchAllCause2((cause2) => isInterrupted2(cause2) ? failCause7(cause2) : offer3(queue, failCause7(cause2)).pipe(zipRight3(succeed5(errorSignal, void 0)), asVoid2)));
16586
16648
  }
16587
16649
  yield* pull.pipe(matchCauseEffect3({
16588
16650
  onFailure: (cause2) => offer3(queue, failCause7(cause2)).pipe(zipRight3(succeed7(false))),
16589
16651
  onSuccess: match({
16590
- onLeft: (outDone) => raceWith2(interruptible4(_await(errorSignal)), interruptible4(withPermits(concurrencyN)(_void)), {
16652
+ onLeft: (outDone) => raceWith2(interruptible4(_await3(errorSignal)), interruptible4(withPermits(concurrencyN)(_void)), {
16591
16653
  onSelfDone: (_, permitAcquisition) => as4(interrupt4(permitAcquisition), false),
16592
16654
  onOtherDone: (_, failureAwait) => zipRight3(interrupt4(failureAwait), get11(lastDone).pipe(flatMap10(match2({
16593
16655
  onNone: () => offer3(queue, succeed7(left2(outDone))),
@@ -16596,23 +16658,23 @@ var mergeAllWith = ({
16596
16658
  }),
16597
16659
  onRight: (channel) => match13(mergeStrategy, {
16598
16660
  onBackPressure: () => gen2(function* () {
16599
- const latch = yield* make23();
16600
- const raceEffects = scopedWith2((scope5) => toPullIn(pipeTo(queueReader, channel), scope5).pipe(flatMap10((pull2) => race2(exit3(evaluatePull(pull2)), exit3(interruptible4(_await(errorSignal))))), flatMap10(identity)));
16601
- yield* succeed2(latch, void 0).pipe(zipRight3(raceEffects), withPermits(1), forkIn2(scope4));
16602
- yield* _await(latch);
16603
- const errored = yield* isDone(errorSignal);
16661
+ const latch = yield* make39();
16662
+ const raceEffects = scopedWith2((scope5) => toPullIn(pipeTo(queueReader, channel), scope5).pipe(flatMap10((pull2) => race2(exit3(evaluatePull(pull2)), exit3(interruptible4(_await3(errorSignal))))), flatMap10(identity)));
16663
+ yield* succeed5(latch, void 0).pipe(zipRight3(raceEffects), withPermits(1), forkIn2(scope4));
16664
+ yield* _await3(latch);
16665
+ const errored = yield* isDone5(errorSignal);
16604
16666
  return !errored;
16605
16667
  }),
16606
16668
  onBufferSliding: () => gen2(function* () {
16607
- const canceler = yield* make23();
16608
- const latch = yield* make23();
16669
+ const canceler = yield* make39();
16670
+ const latch = yield* make39();
16609
16671
  const size12 = yield* size11(cancelers);
16610
- yield* take2(cancelers).pipe(flatMap10((canceler2) => succeed2(canceler2, void 0)), when2(() => size12 >= concurrencyN));
16672
+ yield* take2(cancelers).pipe(flatMap10((canceler2) => succeed5(canceler2, void 0)), when2(() => size12 >= concurrencyN));
16611
16673
  yield* offer3(cancelers, canceler);
16612
- const raceEffects = scopedWith2((scope5) => toPullIn(pipeTo(queueReader, channel), scope5).pipe(flatMap10((pull2) => exit3(evaluatePull(pull2)).pipe(race2(exit3(interruptible4(_await(errorSignal)))), race2(exit3(interruptible4(_await(canceler)))))), flatMap10(identity)));
16613
- yield* succeed2(latch, void 0).pipe(zipRight3(raceEffects), withPermits(1), forkIn2(scope4));
16614
- yield* _await(latch);
16615
- const errored = yield* isDone(errorSignal);
16674
+ const raceEffects = scopedWith2((scope5) => toPullIn(pipeTo(queueReader, channel), scope5).pipe(flatMap10((pull2) => exit3(evaluatePull(pull2)).pipe(race2(exit3(interruptible4(_await3(errorSignal)))), race2(exit3(interruptible4(_await3(canceler)))))), flatMap10(identity)));
16675
+ yield* succeed5(latch, void 0).pipe(zipRight3(raceEffects), withPermits(1), forkIn2(scope4));
16676
+ yield* _await3(latch);
16677
+ const errored = yield* isDone5(errorSignal);
16616
16678
  return !errored;
16617
16679
  })
16618
16680
  })
@@ -16629,7 +16691,7 @@ var mergeAllWith = ({
16629
16691
  }), unwrap);
16630
16692
  return embedInput(consumer, input);
16631
16693
  }));
16632
- var mergeMap = /* @__PURE__ */ dual(3, (self, f, options3) => mergeAll5(options3)(mapOut(self, f)));
16694
+ var mergeMap = /* @__PURE__ */ dual(3, (self, f, options3) => mergeAll6(options3)(mapOut(self, f)));
16633
16695
  var mergeWith2 = /* @__PURE__ */ dual(2, (self, options3) => {
16634
16696
  function merge9(scope4) {
16635
16697
  return gen2(function* () {
@@ -16644,18 +16706,18 @@ var mergeWith2 = /* @__PURE__ */ dual(2, (self, options3) => {
16644
16706
  if (op._tag === OP_DONE4) {
16645
16707
  return succeed7(fromEffect4(zipRight3(interrupt4(fiber), op.effect)));
16646
16708
  }
16647
- return map17(_await3(fiber), match9({
16648
- onFailure: (cause2) => fromEffect4(op.f(failCause4(cause2))),
16709
+ return map17(_await2(fiber), match9({
16710
+ onFailure: (cause2) => fromEffect4(op.f(failCause3(cause2))),
16649
16711
  onSuccess: match({
16650
- onLeft: (done8) => fromEffect4(op.f(succeed4(done8))),
16712
+ onLeft: (done8) => fromEffect4(op.f(succeed3(done8))),
16651
16713
  onRight: (elem) => zipRight4(write(elem), go2(single(op.f)))
16652
16714
  })
16653
16715
  }));
16654
16716
  }
16655
16717
  return match9(exit4, {
16656
- onFailure: (cause2) => onDecision(done7(failCause4(cause2))),
16718
+ onFailure: (cause2) => onDecision(done7(failCause3(cause2))),
16657
16719
  onSuccess: match({
16658
- onLeft: (z) => onDecision(done7(succeed4(z))),
16720
+ onLeft: (z) => onDecision(done7(succeed3(z))),
16659
16721
  onRight: (elem) => succeed7(flatMap12(write(elem), () => flatMap12(fromEffect4(forkIn2(interruptible4(pull), scope4)), (leftFiber) => go2(both2(leftFiber, fiber)))))
16660
16722
  })
16661
16723
  });
@@ -16673,18 +16735,18 @@ var mergeWith2 = /* @__PURE__ */ dual(2, (self, options3) => {
16673
16735
  }
16674
16736
  case OP_LEFT_DONE: {
16675
16737
  return unwrap(map17(exit3(pullR), match9({
16676
- onFailure: (cause2) => fromEffect4(state.f(failCause4(cause2))),
16738
+ onFailure: (cause2) => fromEffect4(state.f(failCause3(cause2))),
16677
16739
  onSuccess: match({
16678
- onLeft: (done7) => fromEffect4(state.f(succeed4(done7))),
16740
+ onLeft: (done7) => fromEffect4(state.f(succeed3(done7))),
16679
16741
  onRight: (elem) => flatMap12(write(elem), () => go2(LeftDone(state.f)))
16680
16742
  })
16681
16743
  })));
16682
16744
  }
16683
16745
  case OP_RIGHT_DONE: {
16684
16746
  return unwrap(map17(exit3(pullL), match9({
16685
- onFailure: (cause2) => fromEffect4(state.f(failCause4(cause2))),
16747
+ onFailure: (cause2) => fromEffect4(state.f(failCause3(cause2))),
16686
16748
  onSuccess: match({
16687
- onLeft: (done7) => fromEffect4(state.f(succeed4(done7))),
16749
+ onLeft: (done7) => fromEffect4(state.f(succeed3(done7))),
16688
16750
  onRight: (elem) => flatMap12(write(elem), () => go2(RightDone(state.f)))
16689
16751
  })
16690
16752
  })));
@@ -16698,7 +16760,7 @@ var mergeWith2 = /* @__PURE__ */ dual(2, (self, options3) => {
16698
16760
  });
16699
16761
  const leftFiber = interruptible4(pullL).pipe(ensuring2(inherit), forkIn2(scope4));
16700
16762
  const rightFiber = interruptible4(pullR).pipe(ensuring2(inherit), forkIn2(scope4));
16701
- return zipWith4(leftFiber, rightFiber, (left3, right3) => BothRunning(left3, right3));
16763
+ return zipWith3(leftFiber, rightFiber, (left3, right3) => BothRunning(left3, right3));
16702
16764
  })).pipe(flatMap12(go2), embedInput(input));
16703
16765
  });
16704
16766
  }
@@ -16723,12 +16785,12 @@ var pipeToOrFail = /* @__PURE__ */ dual(2, (self, that) => suspend5(() => {
16723
16785
  }));
16724
16786
  var run = (self) => scopedWith2((scope4) => runIn(self, scope4));
16725
16787
  var runDrain = (self) => run(drain(self));
16726
- var scoped3 = (effect3) => unwrap(uninterruptibleMask3((restore) => map17(make38(), (scope4) => acquireReleaseOut(tapErrorCause2(restore(extend2(effect3, scope4)), (cause2) => close(scope4, failCause4(cause2))), (_, exit4) => close(scope4, exit4)))));
16788
+ var scoped3 = (effect3) => unwrap(uninterruptibleMask3((restore) => map17(make37(), (scope4) => acquireReleaseOut(tapErrorCause2(restore(extend2(effect3, scope4)), (cause2) => close(scope4, failCause3(cause2))), (_, exit4) => close(scope4, exit4)))));
16727
16789
  var scopedWith3 = (f) => unwrapScoped2(map17(scope2, (scope4) => flatMap12(fromEffect4(f(scope4)), write)));
16728
16790
  var toPullIn = /* @__PURE__ */ dual(2, (self, scope4) => zip5(sync4(() => new ChannelExecutor(self, void 0, identity)), runtime3()).pipe(tap2(([executor, runtime4]) => addFinalizerExit(scope4, (exit4) => {
16729
16791
  const finalizer2 = executor.close(exit4);
16730
16792
  return finalizer2 !== void 0 ? provide2(finalizer2, runtime4) : _void;
16731
- })), uninterruptible2, map17(([executor]) => suspend4(() => interpretToPull(executor.run(), executor)))));
16793
+ })), uninterruptible2, map17(([executor]) => suspend3(() => interpretToPull(executor.run(), executor)))));
16732
16794
  var interpretToPull = (channelState, exec) => {
16733
16795
  const state = channelState;
16734
16796
  switch (state._tag) {
@@ -16758,8 +16820,8 @@ var writeChunkWriter = (idx, len, chunk2) => {
16758
16820
  };
16759
16821
  var zip6 = /* @__PURE__ */ dual((args2) => isChannel(args2[1]), (self, that, options3) => options3?.concurrent ? mergeWith2(self, {
16760
16822
  other: that,
16761
- onSelfDone: (exit1) => Await((exit22) => suspend4(() => zip3(exit1, exit22))),
16762
- onOtherDone: (exit22) => Await((exit1) => suspend4(() => zip3(exit1, exit22)))
16823
+ onSelfDone: (exit1) => Await((exit22) => suspend3(() => zip3(exit1, exit22))),
16824
+ onOtherDone: (exit22) => Await((exit1) => suspend3(() => zip3(exit1, exit22)))
16763
16825
  }) : flatMap12(self, (a) => map20(that, (b) => [a, b])));
16764
16826
  var zipRight4 = /* @__PURE__ */ dual((args2) => isChannel(args2[1]), (self, that, options3) => options3?.concurrent ? map20(zip6(self, that, {
16765
16827
  concurrent: true
@@ -16772,7 +16834,7 @@ var ChannelException = (error) => ({
16772
16834
  });
16773
16835
  var isChannelException = (u) => hasProperty(u, ChannelExceptionTypeId);
16774
16836
 
16775
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/sink.js
16837
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/sink.js
16776
16838
  var SinkTypeId2 = /* @__PURE__ */ Symbol.for("effect/Sink");
16777
16839
  var sinkVariance2 = {
16778
16840
  /* c8 ignore next */
@@ -16807,10 +16869,10 @@ var forEachChunk = (f) => {
16807
16869
  var fromEffect6 = (effect3) => new SinkImpl(fromEffect4(effect3));
16808
16870
  var toChannel = (self) => isEffect2(self) ? toChannel(fromEffect6(self)) : self.channel;
16809
16871
 
16810
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Runtime.js
16872
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Runtime.js
16811
16873
  var runFork3 = unsafeFork3;
16812
16874
 
16813
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/internal/stream.js
16875
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/stream.js
16814
16876
  var StreamSymbolKey = "effect/Stream";
16815
16877
  var StreamTypeId2 = /* @__PURE__ */ Symbol.for(StreamSymbolKey);
16816
16878
  var streamVariance = {
@@ -16829,7 +16891,7 @@ var StreamImpl = class {
16829
16891
  }
16830
16892
  };
16831
16893
  var isStream = (u) => hasProperty(u, StreamTypeId2) || isEffect2(u);
16832
- var ensuringWith2 = /* @__PURE__ */ dual(2, (self, finalizer2) => new StreamImpl(ensuringWith(toChannel2(self), finalizer2)));
16894
+ var ensuring4 = /* @__PURE__ */ dual(2, (self, finalizer2) => new StreamImpl(pipe(toChannel2(self), ensuring3(finalizer2))));
16833
16895
  var fail11 = (error) => fromEffectOption(fail7(some2(error)));
16834
16896
  var flatMap14 = /* @__PURE__ */ dual((args2) => isStream(args2[0]), (self, f, options3) => {
16835
16897
  const bufferSize = options3?.bufferSize ?? 16;
@@ -16943,8 +17005,8 @@ var unfoldChunkEffect = (s, f) => suspend6(() => {
16943
17005
  });
16944
17006
  var unwrapScoped3 = (effect3) => flatten10(scoped4(effect3));
16945
17007
 
16946
- // ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Stream.js
16947
- var ensuringWith3 = ensuringWith2;
17008
+ // ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Stream.js
17009
+ var ensuring5 = ensuring4;
16948
17010
  var fail12 = fail11;
16949
17011
  var fromReadableStream2 = fromReadableStream;
16950
17012
  var suspend7 = suspend6;
@@ -16956,13 +17018,34 @@ var BaseAttributeValue = Union2(
16956
17018
  String$,
16957
17019
  Boolean$,
16958
17020
  Number$
16959
- );
17021
+ ).annotations({
17022
+ title: "base_attribute_value",
17023
+ identifier: "BaseAttributeValue",
17024
+ description: "An attribute value that can be either a string, a boolean, or a number",
17025
+ examples: [null, "hello", true, 123131]
17026
+ });
16960
17027
  var AttributesArray = Array$(
16961
17028
  Struct({ key: String$, value: BaseAttributeValue })
16962
- );
17029
+ ).annotations({
17030
+ title: "base_attributes_array",
17031
+ identifier: "BaseAttributesArray",
17032
+ description: "An array of attribute key-value pairs",
17033
+ examples: [
17034
+ [{ key: "size", value: "medium" }],
17035
+ [{ key: "color", value: "red" }]
17036
+ ]
17037
+ });
16963
17038
  var BaseAttributes = Record({
16964
17039
  key: String$,
16965
17040
  value: BaseAttributeValue
17041
+ }).annotations({
17042
+ title: "base_attributes",
17043
+ identifier: "BaseAttributes",
17044
+ description: "An object containing attribute key-value pairs",
17045
+ examples: [
17046
+ { key: "size", value: "medium" },
17047
+ { key: "color", value: "red" }
17048
+ ]
16966
17049
  });
16967
17050
  var BaseAttributesArray = transform2(
16968
17051
  BaseAttributes,
@@ -16976,14 +17059,32 @@ var BaseAttributesArray = transform2(
16976
17059
  )
16977
17060
  )
16978
17061
  }
16979
- );
17062
+ ).annotations({
17063
+ title: "base_attributes_array",
17064
+ identifier: "BaseAttributesArray",
17065
+ description: "An array of attribute key-value pairs",
17066
+ examples: [
17067
+ [{ key: "size", value: "medium" }],
17068
+ [{ key: "color", value: "red" }]
17069
+ ]
17070
+ });
16980
17071
  var BasePrivateAttributes = transform2(BaseAttributes, BaseAttributes, {
16981
17072
  decode: filter2((_, key) => key.startsWith("_")),
16982
17073
  encode: identity
17074
+ }).annotations({
17075
+ title: "base_private_attributes",
17076
+ identifier: "BasePrivateAttributes",
17077
+ description: "An object containing private(_) attribute key-value pairs",
17078
+ examples: [{ _key: "private_attribute" }]
16983
17079
  });
16984
17080
  var BasePublicAttributes = transform2(BaseAttributes, BaseAttributes, {
16985
17081
  decode: filter2((_, key) => !key.startsWith("_")),
16986
17082
  encode: identity
17083
+ }).annotations({
17084
+ title: "base_public_attributes",
17085
+ identifier: "BasePublicAttributes",
17086
+ description: "An object containing public attribute key-value pairs",
17087
+ examples: [{ key: "public_attribute" }]
16987
17088
  });
16988
17089
  var BasePrivateAttributesArray = transform2(
16989
17090
  BasePrivateAttributes,
@@ -16997,7 +17098,12 @@ var BasePrivateAttributesArray = transform2(
16997
17098
  )
16998
17099
  )
16999
17100
  }
17000
- );
17101
+ ).annotations({
17102
+ title: "base_private_attributes_array",
17103
+ identifier: "BasePrivateAttributesArray",
17104
+ description: "An array of private(_)_attribute key-value pairs",
17105
+ examples: [[{ key: "_private_key", value: "private_value" }]]
17106
+ });
17001
17107
  var BasePublicAttributesArray = transform2(
17002
17108
  BasePublicAttributes,
17003
17109
  AttributesArray,
@@ -17010,7 +17116,12 @@ var BasePublicAttributesArray = transform2(
17010
17116
  )
17011
17117
  )
17012
17118
  }
17013
- );
17119
+ ).annotations({
17120
+ title: "base_public_attributes_array",
17121
+ identifier: "BasePublicAttributesArray",
17122
+ description: "An array of public attribute key-value pairs",
17123
+ examples: [[{ key: "public_key", value: "public_value" }]]
17124
+ });
17014
17125
  transform2(
17015
17126
  BaseAttributes,
17016
17127
  Struct({
@@ -17039,7 +17150,23 @@ transform2(
17039
17150
  ...attributes.public.record
17040
17151
  })
17041
17152
  }
17042
- );
17153
+ ).annotations({
17154
+ title: "attributes",
17155
+ identifier: "Attributes",
17156
+ description: "An object containing private and public properties which contain the array and record of private and public attribute key-value pairs",
17157
+ examples: [
17158
+ {
17159
+ private: {
17160
+ array: [{ key: "_size", value: "medium" }],
17161
+ record: { _size: "medium" }
17162
+ },
17163
+ public: {
17164
+ array: [{ key: "public_size", value: "large" }],
17165
+ record: { public_size: "large" }
17166
+ }
17167
+ }
17168
+ ]
17169
+ });
17043
17170
  var DiscountApplication = Struct({
17044
17171
  target_selection: Literal2("all", "entitled", "explicit"),
17045
17172
  target_type: Literal2("line_item", "shipping_line"),
@@ -17049,42 +17176,115 @@ var DiscountApplication = Struct({
17049
17176
  value: Union2(Number$, NumberFromString),
17050
17177
  value_type: Literal2("fixed_amount", "percentage"),
17051
17178
  description: NullOr(String$)
17179
+ }).annotations({
17180
+ title: "discount_application",
17181
+ identifier: "DiscountApplication",
17182
+ description: "An object representing a discount application",
17183
+ examples: [
17184
+ {
17185
+ target_selection: "all",
17186
+ target_type: "line_item",
17187
+ title: "10% off all line items",
17188
+ total_allocated_amount: 10,
17189
+ type: "automatic",
17190
+ value_type: "percentage",
17191
+ value: 10,
17192
+ description: null
17193
+ }
17194
+ ]
17052
17195
  });
17053
17196
  var Discount = Struct({
17054
17197
  amount: Number$,
17055
17198
  title: String$
17199
+ }).annotations({
17200
+ title: "discount",
17201
+ identifier: "Discount",
17202
+ description: "An object representing a discount",
17203
+ examples: [{ amount: 10, title: "10% off" }]
17204
+ });
17205
+ var CurrencyCode = String$.annotations({
17206
+ title: "currency_code",
17207
+ identifier: "CurrencyCode",
17208
+ description: "An ISO 4217 currency code",
17209
+ examples: ["USD", "EUR", "GBP"]
17056
17210
  });
17057
- var CurrencyCode = String$;
17058
17211
  var Image = Struct({
17059
17212
  aspect_ratio: NullOr(Number$),
17060
17213
  alt: NullOr(String$),
17061
17214
  height: NullOr(Number$),
17062
17215
  url: NullOr(String$),
17063
17216
  width: NullOr(Number$)
17217
+ }).annotations({
17218
+ title: "image",
17219
+ identifier: "Image",
17220
+ description: "An object representing an image",
17221
+ examples: [
17222
+ {
17223
+ url: "https://example.com/image.jpg",
17224
+ alt: "Example image",
17225
+ height: 100,
17226
+ width: 100,
17227
+ aspect_ratio: 1
17228
+ },
17229
+ {
17230
+ url: null,
17231
+ alt: null,
17232
+ height: null,
17233
+ width: null,
17234
+ aspect_ratio: null
17235
+ }
17236
+ ]
17064
17237
  });
17065
17238
  var OptionWithValue = Struct({
17066
17239
  name: String$,
17067
17240
  value: String$
17241
+ }).annotations({
17242
+ title: "option_with_value",
17243
+ identifier: "OptionWithValue",
17244
+ description: "An object representing an option with a value",
17245
+ examples: [{ name: "Size", value: "Large" }]
17068
17246
  });
17069
17247
  var QuantityRule = Struct({
17070
17248
  min: Number$,
17071
17249
  max: NullOr(Number$),
17072
17250
  increment: Number$
17251
+ }).annotations({
17252
+ title: "quantity_rule",
17253
+ identifier: "QuantityRule",
17254
+ description: "An object representing a quantity rule",
17255
+ examples: [{ min: 1, max: 5, increment: 1 }]
17073
17256
  });
17074
17257
  var SellingPlanAllocationPriceAdjustment = Struct({
17075
17258
  position: Number$,
17076
17259
  price: Number$
17260
+ }).annotations({
17261
+ title: "selling_plan_allocation_price_adjustment",
17262
+ identifier: "SellingPlanAllocationPriceAdjustment",
17263
+ description: "An object representing a selling plan allocation price adjustment",
17264
+ examples: [{ position: 1, price: 10 }]
17077
17265
  });
17078
17266
  var SellingPlanPriceAdjustment = Struct({
17079
17267
  order_count: NullOr(Number$),
17080
17268
  position: Number$,
17081
17269
  value: Union2(Number$, String$),
17082
17270
  value_type: Literal2("percentage", "fixed_amount", "price")
17271
+ }).annotations({
17272
+ title: "selling_plan_price_adjustment",
17273
+ identifier: "SellingPlanPriceAdjustment",
17274
+ description: "An object representing a selling plan price adjustment",
17275
+ examples: [
17276
+ { order_count: null, position: 1, value: 10, value_type: "percentage" }
17277
+ ]
17083
17278
  });
17084
17279
  var SellingPlanOption = Struct({
17085
17280
  name: String$,
17086
17281
  position: Number$,
17087
17282
  value: String$
17283
+ }).annotations({
17284
+ title: "selling_plan_option",
17285
+ identifier: "SellingPlanOption",
17286
+ description: "An object representing a selling plan option",
17287
+ examples: [{ name: "Size", position: 1, value: "Large" }]
17088
17288
  });
17089
17289
  var SellingPlan = Struct({
17090
17290
  id: Resource_exports.ID,
@@ -17098,6 +17298,21 @@ var SellingPlan = Struct({
17098
17298
  default: () => false
17099
17299
  }),
17100
17300
  price_adjustments: Array$(SellingPlanPriceAdjustment)
17301
+ }).annotations({
17302
+ title: "selling_plan",
17303
+ identifier: "SellingPlan",
17304
+ description: "An object representing a selling plan",
17305
+ examples: [
17306
+ {
17307
+ id: "sp-123",
17308
+ name: "Standard Plan",
17309
+ description: "A basic selling plan",
17310
+ options: [{ name: "Size", position: 1, value: "Large" }],
17311
+ recurring_deliveries: false,
17312
+ fixed_selling_plan: false,
17313
+ price_adjustments: []
17314
+ }
17315
+ ]
17101
17316
  });
17102
17317
  var SellingPlanAllocation = Struct({
17103
17318
  price_adjustments: Array$(SellingPlanAllocationPriceAdjustment),
@@ -17105,10 +17320,50 @@ var SellingPlanAllocation = Struct({
17105
17320
  compare_at_price: Number$,
17106
17321
  per_delivery_price: Number$,
17107
17322
  selling_plan: SellingPlan
17323
+ }).annotations({
17324
+ title: "selling_plan_allocation",
17325
+ identifier: "SellingPlanAllocation",
17326
+ description: "An object representing a selling plan allocation",
17327
+ examples: [
17328
+ {
17329
+ price_adjustments: [],
17330
+ price: 10,
17331
+ compare_at_price: 15,
17332
+ per_delivery_price: 10,
17333
+ selling_plan: {
17334
+ id: "sp-123",
17335
+ name: "Standard Plan",
17336
+ description: "A basic selling plan",
17337
+ options: [{ name: "Size", position: 1, value: "Large" }],
17338
+ recurring_deliveries: false,
17339
+ fixed_selling_plan: false,
17340
+ price_adjustments: []
17341
+ }
17342
+ }
17343
+ ]
17108
17344
  });
17109
17345
  var LineLevelDiscountAllocation = Struct({
17110
17346
  amount: Number$,
17111
17347
  discount_application: DiscountApplication
17348
+ }).annotations({
17349
+ title: "line_level_discount_allocation",
17350
+ identifier: "LineLevelDiscountAllocation",
17351
+ description: "An object representing a line level discount allocation",
17352
+ examples: [
17353
+ {
17354
+ amount: 10,
17355
+ discount_application: {
17356
+ target_selection: "all",
17357
+ target_type: "line_item",
17358
+ title: "10% off all line items",
17359
+ total_allocated_amount: 10,
17360
+ type: "automatic",
17361
+ value_type: "percentage",
17362
+ value: 10,
17363
+ description: null
17364
+ }
17365
+ }
17366
+ ]
17112
17367
  });
17113
17368
  var CartLevelDiscountApplicationUpdate = transform2(
17114
17369
  Struct({
@@ -17122,20 +17377,70 @@ var CartLevelDiscountApplicationUpdate = transform2(
17122
17377
  }),
17123
17378
  strict: false
17124
17379
  }
17125
- );
17380
+ ).annotations({
17381
+ title: "cart_level_discount_application",
17382
+ identifier: "CartLevelDiscountApplication",
17383
+ description: "An object representing a cart level discount application",
17384
+ examples: [
17385
+ {
17386
+ target_selection: "all",
17387
+ target_type: "line_item",
17388
+ title: "10% off all line items",
17389
+ total_allocated_amount: 10,
17390
+ type: "automatic",
17391
+ value_type: "percentage",
17392
+ value: 10,
17393
+ description: null
17394
+ }
17395
+ ]
17396
+ });
17126
17397
  var CartLevelDiscountApplication = Union2(
17127
17398
  DiscountApplication,
17128
17399
  CartLevelDiscountApplicationUpdate
17129
- );
17400
+ ).annotations({
17401
+ title: "cart_level_discount_application",
17402
+ identifier: "CartLevelDiscountApplication",
17403
+ description: "An object representing a cart level discount application",
17404
+ examples: [
17405
+ {
17406
+ target_selection: "all",
17407
+ target_type: "line_item",
17408
+ title: "10% off all line items",
17409
+ total_allocated_amount: 10,
17410
+ type: "automatic",
17411
+ value_type: "percentage",
17412
+ value: 10,
17413
+ description: null
17414
+ }
17415
+ ]
17416
+ });
17130
17417
  var UnitPriceMeasurement = Struct({
17131
17418
  measured_type: Literal2("volume", "weight", "dimension"),
17132
17419
  quantity_unit: String$,
17133
17420
  quantity_value: Number$,
17134
17421
  reference_unit: String$,
17135
17422
  reference_value: Number$
17423
+ }).annotations({
17424
+ title: "unit_price_measurement",
17425
+ identifier: "UnitPriceMeasurement",
17426
+ description: "An object representing a unit price measurement",
17427
+ examples: [
17428
+ {
17429
+ measured_type: "volume",
17430
+ quantity_unit: "gallons",
17431
+ quantity_value: 1,
17432
+ reference_unit: "ounces",
17433
+ reference_value: 128
17434
+ }
17435
+ ]
17136
17436
  });
17137
17437
  var VariantOptions = optionalWith(Array$(String$), {
17138
17438
  default: () => []
17439
+ }).annotations({
17440
+ title: "variant_options",
17441
+ identifier: "VariantOptions",
17442
+ description: "An array of strings representing variant options",
17443
+ examples: [["Red", "Size 10"]]
17139
17444
  });
17140
17445
  var BaseLineItem = Struct({
17141
17446
  id: Resource_exports.ID,
@@ -17181,6 +17486,73 @@ var BaseLineItem = Struct({
17181
17486
  NullOr(SellingPlanAllocation),
17182
17487
  { default: () => null }
17183
17488
  )
17489
+ }).annotations({
17490
+ identifier: "BaseLineItem",
17491
+ title: "base_line_item",
17492
+ description: "An object representing the base cart line item",
17493
+ examples: [
17494
+ {
17495
+ id: 103424255,
17496
+ properties: {
17497
+ Size: "Large",
17498
+ _hidden: "value"
17499
+ },
17500
+ quantity: 1,
17501
+ variant_id: 103424256,
17502
+ key: "2klj234ljlkjsdlf:103424255",
17503
+ title: "Black T-Shirt",
17504
+ price: 29.99,
17505
+ original_price: 39.99,
17506
+ discounted_price: 29.99,
17507
+ line_price: 29.99,
17508
+ original_line_price: 39.99,
17509
+ total_discount: 0,
17510
+ discounts: [],
17511
+ sku: "SKU-12345",
17512
+ grams: 100,
17513
+ vendor: "Vendor Name",
17514
+ taxable: true,
17515
+ product_id: 12345,
17516
+ product_has_only_default_variant: true,
17517
+ gift_card: false,
17518
+ final_line_price: 29.99,
17519
+ final_price: 29.99,
17520
+ url: "https://example.com/products/black-t-shirt?variant=103424256",
17521
+ featured_image: {
17522
+ alt: "Black T-Shirt",
17523
+ url: "https://example.com/black-t-shirt.jpg",
17524
+ width: 600,
17525
+ height: 400,
17526
+ aspect_ratio: 1.5
17527
+ },
17528
+ image: "https://example.com/black-t-shirt.jpg",
17529
+ handle: "black-t-shirt",
17530
+ requires_shipping: true,
17531
+ product_type: "t-shirt",
17532
+ product_title: "Black T-Shirt",
17533
+ product_description: "A stylish and comfortable t-shirt.",
17534
+ variant_title: "Large",
17535
+ variant_options: ["Large"],
17536
+ options_with_values: [],
17537
+ line_level_discount_allocations: [],
17538
+ line_level_total_discount: 0,
17539
+ quantity_rule: {
17540
+ min: 1,
17541
+ max: null,
17542
+ increment: 1
17543
+ },
17544
+ has_components: false,
17545
+ unit_price: 29.99,
17546
+ unit_price_measurement: {
17547
+ measured_type: "volume",
17548
+ quantity_unit: "gallons",
17549
+ quantity_value: 1,
17550
+ reference_unit: "ounces",
17551
+ reference_value: 128
17552
+ },
17553
+ selling_plan_allocation: null
17554
+ }
17555
+ ]
17184
17556
  });
17185
17557
  var LineItem = transform2(
17186
17558
  BaseLineItem,
@@ -17225,7 +17597,86 @@ var LineItem = transform2(
17225
17597
  remove("public_properties_array")
17226
17598
  )
17227
17599
  }
17228
- );
17600
+ ).annotations({
17601
+ identifier: "LineItem",
17602
+ title: "line_item",
17603
+ description: "An object representing a cart line item",
17604
+ examples: [
17605
+ {
17606
+ id: 103424255,
17607
+ properties: {
17608
+ Size: "Large",
17609
+ _hidden: "value"
17610
+ },
17611
+ properties_array: [
17612
+ { key: "Size", value: "Large" },
17613
+ { key: "_hidden", value: "value" }
17614
+ ],
17615
+ private_properties: {
17616
+ _hidden: "value"
17617
+ },
17618
+ private_properties_array: [{ key: "_hidden", value: "value" }],
17619
+ public_properties: {
17620
+ Size: "Large"
17621
+ },
17622
+ public_properties_array: [{ key: "Size", value: "Large" }],
17623
+ quantity: 1,
17624
+ variant_id: 103424256,
17625
+ key: "2klj234ljlkjsdlf:103424255",
17626
+ title: "Black T-Shirt",
17627
+ price: 29.99,
17628
+ original_price: 39.99,
17629
+ discounted_price: 29.99,
17630
+ line_price: 29.99,
17631
+ original_line_price: 39.99,
17632
+ total_discount: 0,
17633
+ discounts: [],
17634
+ sku: "SKU-12345",
17635
+ grams: 100,
17636
+ vendor: "Vendor Name",
17637
+ taxable: true,
17638
+ product_id: 12345,
17639
+ product_has_only_default_variant: true,
17640
+ gift_card: false,
17641
+ final_line_price: 29.99,
17642
+ final_price: 29.99,
17643
+ url: "https://example.com/products/black-t-shirt?variant=103424256",
17644
+ featured_image: {
17645
+ alt: "Black T-Shirt",
17646
+ url: "https://example.com/black-t-shirt.jpg",
17647
+ width: 600,
17648
+ height: 400,
17649
+ aspect_ratio: 1.5
17650
+ },
17651
+ image: "https://example.com/black-t-shirt.jpg",
17652
+ handle: "black-t-shirt",
17653
+ requires_shipping: true,
17654
+ product_type: "t-shirt",
17655
+ product_title: "Black T-Shirt",
17656
+ product_description: "A stylish and comfortable t-shirt.",
17657
+ variant_title: "Large",
17658
+ variant_options: ["Large"],
17659
+ options_with_values: [],
17660
+ line_level_discount_allocations: [],
17661
+ line_level_total_discount: 0,
17662
+ quantity_rule: {
17663
+ min: 1,
17664
+ max: null,
17665
+ increment: 1
17666
+ },
17667
+ has_components: false,
17668
+ unit_price: 29.99,
17669
+ unit_price_measurement: {
17670
+ measured_type: "volume",
17671
+ quantity_unit: "gallons",
17672
+ quantity_value: 1,
17673
+ reference_unit: "ounces",
17674
+ reference_value: 128
17675
+ },
17676
+ selling_plan_allocation: null
17677
+ }
17678
+ ]
17679
+ });
17229
17680
  var BaseCart = Struct({
17230
17681
  token: String$,
17231
17682
  note: NullOr(String$),
@@ -17247,6 +17698,32 @@ var BaseCart = Struct({
17247
17698
  currency: CurrencyCode,
17248
17699
  items_subtotal_price: Number$,
17249
17700
  cart_level_discount_applications: Array$(CartLevelDiscountApplication)
17701
+ }).annotations({
17702
+ identifier: "BaseCart",
17703
+ title: "base_cart",
17704
+ description: "An object representing the base cart",
17705
+ examples: [
17706
+ {
17707
+ token: "2lk34j2lk34kljl09sdfksldfk",
17708
+ note: "This is a note",
17709
+ attributes: {
17710
+ public: "value",
17711
+ _private: "value2"
17712
+ },
17713
+ discounts: [],
17714
+ discount_codes: [],
17715
+ original_total_price: 99.99,
17716
+ total_price: 99.99,
17717
+ total_discount: 0,
17718
+ total_weight: 100,
17719
+ item_count: 1,
17720
+ items: [],
17721
+ requires_shipping: true,
17722
+ currency: "USD",
17723
+ items_subtotal_price: 99.99,
17724
+ cart_level_discount_applications: []
17725
+ }
17726
+ ]
17250
17727
  });
17251
17728
  var Cart = extend3(
17252
17729
  BaseCart,
@@ -17267,7 +17744,41 @@ var Cart = extend3(
17267
17744
  default: () => []
17268
17745
  })
17269
17746
  })
17270
- );
17747
+ ).annotations({
17748
+ identifier: "Cart",
17749
+ title: "cart",
17750
+ description: "An object representing a cart",
17751
+ examples: [
17752
+ {
17753
+ token: "2lk34j2lk34kljl09sdfksldfk",
17754
+ note: "This is a note",
17755
+ attributes: {
17756
+ public: "value",
17757
+ _private: "value2"
17758
+ },
17759
+ attributes_array: [
17760
+ { key: "public", value: "value" },
17761
+ { key: "_private", value: "value2" }
17762
+ ],
17763
+ private_attributes: { _private: "value2" },
17764
+ private_attributes_array: [{ key: "_private", value: "value2" }],
17765
+ public_attributes: { public: "value" },
17766
+ public_attributes_array: [{ key: "public", value: "value" }],
17767
+ discounts: [],
17768
+ discount_codes: [],
17769
+ original_total_price: 99.99,
17770
+ total_price: 99.99,
17771
+ total_discount: 0,
17772
+ total_weight: 100,
17773
+ item_count: 1,
17774
+ items: [],
17775
+ requires_shipping: true,
17776
+ currency: "USD",
17777
+ items_subtotal_price: 99.99,
17778
+ cart_level_discount_applications: []
17779
+ }
17780
+ ]
17781
+ });
17271
17782
  var makeCartTransformSchema = (schema) => transform2(schema, Cart, {
17272
17783
  decode: (cart) => ({
17273
17784
  ...cart,
@@ -17291,17 +17802,65 @@ var AddItemInput = Struct({
17291
17802
  quantity: optionalWith(Number$, { default: () => 1 }),
17292
17803
  properties: optionalWith(BaseAttributes, { default: () => ({}) }),
17293
17804
  selling_plan: optional(Resource_exports.ID)
17805
+ }).annotations({
17806
+ identifier: "AddItemInput",
17807
+ title: "add_item_input",
17808
+ description: "An object representing the input for adding an item to the cart",
17809
+ examples: [
17810
+ {
17811
+ id: "1234567890",
17812
+ quantity: 1,
17813
+ properties: {
17814
+ public: "value",
17815
+ _private: "value2"
17816
+ },
17817
+ selling_plan: "sp1234567890"
17818
+ }
17819
+ ]
17294
17820
  });
17295
17821
  var BaseInput = extend3(Ajax_exports.Sections.Input);
17296
17822
  var CartAddInput = Struct({
17297
17823
  items: Array$(AddItemInput)
17298
- }).pipe(BaseInput);
17824
+ }).pipe(BaseInput).annotations({
17825
+ identifier: "CartAddInput",
17826
+ title: "cart_add_input",
17827
+ description: "An object representing the input for adding items to the cart",
17828
+ examples: [
17829
+ {
17830
+ items: [
17831
+ {
17832
+ id: "1234567890",
17833
+ quantity: 1,
17834
+ properties: {
17835
+ public: "value",
17836
+ _private: "value2"
17837
+ },
17838
+ selling_plan: "sp1234567890"
17839
+ }
17840
+ ]
17841
+ }
17842
+ ]
17843
+ });
17299
17844
  var CartAddOutput = Struct({
17300
17845
  items: Array$(LineItem)
17846
+ }).annotations({
17847
+ identifier: "CartAddOutput",
17848
+ title: "cart_add_output",
17849
+ description: "An object representing the output for adding items to the cart"
17301
17850
  });
17302
17851
  var UpdateItemRecordInput = Record({
17303
17852
  key: String$,
17304
17853
  value: Number$
17854
+ }).annotations({
17855
+ identifier: "UpdateItemRecordInput",
17856
+ title: "update_item_record_input",
17857
+ description: "An object representing the input for updating an item record",
17858
+ examples: [
17859
+ {
17860
+ 11231233132: 2,
17861
+ 1115235234242: 0
17862
+ }
17863
+ ]
17305
17864
  });
17306
17865
  var DiscountCodeInput = Array$(String$);
17307
17866
  var DiscountCodeTransformed = String$;
@@ -17317,10 +17876,38 @@ var CartUpdateInput = Struct({
17317
17876
  encode: (input) => input.split(",")
17318
17877
  })
17319
17878
  )
17320
- }).pipe(BaseInput);
17879
+ }).pipe(BaseInput).annotations({
17880
+ identifier: "CartUpdateInput",
17881
+ title: "cart_update_input",
17882
+ description: "An object representing the input for updating the cart",
17883
+ examples: [
17884
+ {
17885
+ updates: {
17886
+ 11231233132: 2,
17887
+ 1115235234242: 0
17888
+ },
17889
+ note: "Updated note",
17890
+ attributes: {
17891
+ public: "updated",
17892
+ _private: "updated2"
17893
+ },
17894
+ discount: "code1,code2"
17895
+ }
17896
+ ]
17897
+ });
17321
17898
  var ItemAddedChangelog = Struct({
17322
17899
  variant_id: Number$,
17323
17900
  quantity: Number$
17901
+ }).annotations({
17902
+ identifier: "ItemAddedChangelog",
17903
+ title: "item_added_changelog",
17904
+ description: "An object representing the item added to the cart",
17905
+ examples: [
17906
+ {
17907
+ variant_id: 123,
17908
+ quantity: 1
17909
+ }
17910
+ ]
17324
17911
  });
17325
17912
  var CartUpdateOutput = makeCartTransformSchema(
17326
17913
  extend3(
@@ -17331,7 +17918,11 @@ var CartUpdateOutput = makeCartTransformSchema(
17331
17918
  })
17332
17919
  })
17333
17920
  )
17334
- );
17921
+ ).annotations({
17922
+ identifier: "CartUpdateOutput",
17923
+ title: "cart_update_output",
17924
+ description: "An object representing the output for updating the cart"
17925
+ });
17335
17926
  var CartChangeItemOptionalInput = Struct({
17336
17927
  quantity: optional(Number$),
17337
17928
  properties: optional(
@@ -17341,7 +17932,29 @@ var CartChangeItemOptionalInput = Struct({
17341
17932
  })
17342
17933
  ),
17343
17934
  selling_plan: optional(NullOr(Resource_exports.ID))
17344
- }).pipe(BaseInput);
17935
+ }).pipe(BaseInput).annotations({
17936
+ identifier: "CartChangeItemOptionalInput",
17937
+ title: "cart_change_item_optional_input",
17938
+ description: "An object representing optional input for changing an item in the cart",
17939
+ examples: [
17940
+ {
17941
+ quantity: 1,
17942
+ properties: {
17943
+ key: "property_key",
17944
+ value: "property_value"
17945
+ },
17946
+ selling_plan: "sp1234567890"
17947
+ },
17948
+ {
17949
+ quantity: 1,
17950
+ properties: {
17951
+ key: "property_key",
17952
+ value: "property_value"
17953
+ },
17954
+ selling_plan: "sp1234567890"
17955
+ }
17956
+ ]
17957
+ });
17345
17958
  var LineItemChange = Struct({
17346
17959
  product_id: Number$,
17347
17960
  variant_id: Number$,
@@ -17360,6 +17973,10 @@ var LineItemChange = Struct({
17360
17973
  untranslated_product_title: String$,
17361
17974
  untranslated_variant_title: String$,
17362
17975
  view_key: String$
17976
+ }).annotations({
17977
+ identifier: "LineItemChange",
17978
+ title: "line_item_change",
17979
+ description: "An object representing a change in a line item in the cart"
17363
17980
  });
17364
17981
  var CartChangeInput = Union2(
17365
17982
  extend3(CartChangeItemOptionalInput)(
@@ -17372,7 +17989,31 @@ var CartChangeInput = Union2(
17372
17989
  line: Number$
17373
17990
  })
17374
17991
  )
17375
- );
17992
+ ).annotations({
17993
+ identifier: "CartChangeInput",
17994
+ title: "cart_change_input",
17995
+ description: "An object representing the input for changing an item in the cart",
17996
+ examples: [
17997
+ {
17998
+ id: "1234567890",
17999
+ quantity: 1,
18000
+ properties: {
18001
+ key: "property_key",
18002
+ value: "property_value"
18003
+ },
18004
+ selling_plan: "sp1234567890"
18005
+ },
18006
+ {
18007
+ line: 1,
18008
+ quantity: 1,
18009
+ properties: {
18010
+ key: "property_key",
18011
+ value: "property_value"
18012
+ },
18013
+ selling_plan: "sp1234567890"
18014
+ }
18015
+ ]
18016
+ });
17376
18017
  var CartChangeOutput = makeCartTransformSchema(
17377
18018
  extend3(
17378
18019
  BaseCart,
@@ -17381,24 +18022,26 @@ var CartChangeOutput = makeCartTransformSchema(
17381
18022
  items_removed: Array$(LineItemChange)
17382
18023
  })
17383
18024
  )
17384
- );
17385
- var CartClearInput = Ajax_exports.Sections.Input;
17386
- var CartGetInput = Ajax_exports.Sections.Input;
18025
+ ).annotations({
18026
+ identifier: "CartChangeOutput",
18027
+ title: "cart_change_output",
18028
+ description: "An object representing the output for changing an item in the cart"
18029
+ });
18030
+ var CartClearInput = Ajax_exports.Sections.Input.annotations({
18031
+ identifier: "CartClearInput",
18032
+ title: "cart_clear_input",
18033
+ description: "An object representing the input for clearing the cart",
18034
+ examples: [{}, { sections: "cart_drawer,cart_section" }]
18035
+ });
18036
+ var CartGetInput = Ajax_exports.Sections.Input.annotations({
18037
+ identifier: "CartGetInput",
18038
+ title: "cart_get_input",
18039
+ description: "An object representing the input for getting the cart",
18040
+ examples: [{}, { sections: "cart_drawer,cart_section" }]
18041
+ });
17387
18042
  mutable2(
17388
18043
  Array$(NonEmptyString)
17389
18044
  );
17390
-
17391
- // ../../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.36.0/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js
17392
- var ATTR_HTTP_REQUEST_HEADER = (key) => `http.request.header.${key}`;
17393
- var ATTR_HTTP_REQUEST_METHOD = "http.request.method";
17394
- var ATTR_HTTP_RESPONSE_HEADER = (key) => `http.response.header.${key}`;
17395
- var ATTR_HTTP_RESPONSE_STATUS_CODE = "http.response.status_code";
17396
- var ATTR_SERVER_ADDRESS = "server.address";
17397
- var ATTR_SERVER_PORT = "server.port";
17398
- var ATTR_URL_FULL = "url.full";
17399
- var ATTR_URL_PATH = "url.path";
17400
- var ATTR_URL_QUERY = "url.query";
17401
- var ATTR_URL_SCHEME = "url.scheme";
17402
18045
  var TypeIdError = (typeId, tag2) => {
17403
18046
  class Base3 extends Error3 {
17404
18047
  _tag = tag2;
@@ -17408,7 +18051,7 @@ var TypeIdError = (typeId, tag2) => {
17408
18051
  return Base3;
17409
18052
  };
17410
18053
 
17411
- // ../../../node_modules/.pnpm/@effect+platform@0.90.0_effect@3.17.2/node_modules/@effect/platform/dist/esm/Cookies.js
18054
+ // ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/Cookies.js
17412
18055
  var TypeId18 = /* @__PURE__ */ Symbol.for("@effect/platform/Cookies");
17413
18056
  var CookieTypeId = /* @__PURE__ */ Symbol.for("@effect/platform/Cookies/Cookie");
17414
18057
  var Proto2 = {
@@ -17591,7 +18234,7 @@ var tryDecodeURIComponent = (str) => {
17591
18234
  }
17592
18235
  };
17593
18236
 
17594
- // ../../../node_modules/.pnpm/@effect+platform@0.90.0_effect@3.17.2/node_modules/@effect/platform/dist/esm/Headers.js
18237
+ // ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/Headers.js
17595
18238
  var HeadersTypeId = /* @__PURE__ */ Symbol.for("@effect/platform/Headers");
17596
18239
  var Proto3 = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
17597
18240
  [HeadersTypeId]: HeadersTypeId,
@@ -17690,10 +18333,10 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
17690
18333
  });
17691
18334
  var currentRedactedNames = /* @__PURE__ */ globalValue("@effect/platform/Headers/currentRedactedNames", () => unsafeMake7(["authorization", "cookie", "set-cookie", "x-api-key"]));
17692
18335
 
17693
- // ../../../node_modules/.pnpm/@effect+platform@0.90.0_effect@3.17.2/node_modules/@effect/platform/dist/esm/internal/httpClientError.js
18336
+ // ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/internal/httpClientError.js
17694
18337
  var TypeId19 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpClientError");
17695
18338
 
17696
- // ../../../node_modules/.pnpm/@effect+platform@0.90.0_effect@3.17.2/node_modules/@effect/platform/dist/esm/HttpClientError.js
18339
+ // ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/HttpClientError.js
17697
18340
  var TypeId20 = TypeId19;
17698
18341
  var RequestError = class extends (/* @__PURE__ */ TypeIdError(TypeId20, "RequestError")) {
17699
18342
  get methodAndUrl() {
@@ -17713,7 +18356,7 @@ var ResponseError = class extends (/* @__PURE__ */ TypeIdError(TypeId20, "Respon
17713
18356
  }
17714
18357
  };
17715
18358
 
17716
- // ../../../node_modules/.pnpm/@effect+platform@0.90.0_effect@3.17.2/node_modules/@effect/platform/dist/esm/UrlParams.js
18359
+ // ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/UrlParams.js
17717
18360
  var fromInput3 = (input) => {
17718
18361
  const parsed = fromInputNested(input);
17719
18362
  const out = [];
@@ -17750,9 +18393,16 @@ var fromInputNested = (input) => {
17750
18393
  };
17751
18394
  var empty33 = [];
17752
18395
  var setAll4 = /* @__PURE__ */ dual(2, (self, input) => {
17753
- const toSet3 = fromInput3(input);
17754
- const keys6 = toSet3.map(([k]) => k);
17755
- return appendAll(filter3(self, ([k]) => keys6.includes(k)), toSet3);
18396
+ const out = fromInput3(input);
18397
+ const keys6 = /* @__PURE__ */ new Set();
18398
+ for (let i = 0; i < out.length; i++) {
18399
+ keys6.add(out[i][0]);
18400
+ }
18401
+ for (let i = 0; i < self.length; i++) {
18402
+ if (keys6.has(self[i][0])) continue;
18403
+ out.push(self[i]);
18404
+ }
18405
+ return out;
17756
18406
  });
17757
18407
  var makeUrl = (url, params, hash2) => {
17758
18408
  try {
@@ -17778,7 +18428,7 @@ var baseUrl = () => {
17778
18428
  return void 0;
17779
18429
  };
17780
18430
 
17781
- // ../../../node_modules/.pnpm/@effect+platform@0.90.0_effect@3.17.2/node_modules/@effect/platform/dist/esm/HttpIncomingMessage.js
18431
+ // ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/HttpIncomingMessage.js
17782
18432
  var TypeId21 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpIncomingMessage");
17783
18433
  var schemaBodyJson = (schema, options3) => {
17784
18434
  const parse3 = decodeUnknown2(schema, options3);
@@ -17809,13 +18459,13 @@ var inspect = (self, that) => {
17809
18459
  return obj;
17810
18460
  };
17811
18461
 
17812
- // ../../../node_modules/.pnpm/@effect+platform@0.90.0_effect@3.17.2/node_modules/@effect/platform/dist/esm/HttpTraceContext.js
18462
+ // ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/HttpTraceContext.js
17813
18463
  var toHeaders = (span2) => unsafeFromRecord({
17814
18464
  b3: `${span2.traceId}-${span2.spanId}-${span2.sampled ? "1" : "0"}${span2.parent._tag === "Some" ? `-${span2.parent.value.spanId}` : ""}`,
17815
18465
  traceparent: `00-${span2.traceId}-${span2.spanId}-${span2.sampled ? "01" : "00"}`
17816
18466
  });
17817
18467
 
17818
- // ../../../node_modules/.pnpm/@effect+platform@0.90.0_effect@3.17.2/node_modules/@effect/platform/dist/esm/internal/httpBody.js
18468
+ // ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/internal/httpBody.js
17819
18469
  var TypeId22 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpBody");
17820
18470
  var ErrorTypeId = /* @__PURE__ */ Symbol.for("@effect/platform/HttpBody/HttpBodyError");
17821
18471
  var bodyError = /* @__PURE__ */ tagged2("HttpBodyError");
@@ -17880,7 +18530,7 @@ var json = (body) => try_2({
17880
18530
  })
17881
18531
  });
17882
18532
 
17883
- // ../../../node_modules/.pnpm/@effect+platform@0.90.0_effect@3.17.2/node_modules/@effect/platform/dist/esm/internal/httpClientRequest.js
18533
+ // ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/internal/httpClientRequest.js
17884
18534
  var TypeId23 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpClientRequest");
17885
18535
  var Proto4 = {
17886
18536
  [TypeId23]: TypeId23,
@@ -17987,7 +18637,7 @@ var setBody = /* @__PURE__ */ dual(2, (self, body) => {
17987
18637
  });
17988
18638
  var bodyJson = /* @__PURE__ */ dual(2, (self, body) => map17(json(body), (body2) => setBody(self, body2)));
17989
18639
 
17990
- // ../../../node_modules/.pnpm/@effect+platform@0.90.0_effect@3.17.2/node_modules/@effect/platform/dist/esm/internal/httpClientResponse.js
18640
+ // ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/internal/httpClientResponse.js
17991
18641
  var TypeId24 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpClientResponse");
17992
18642
  var fromWeb = (request, source) => new ClientResponseImpl(request, source);
17993
18643
  var ClientResponseImpl = class extends Class {
@@ -18098,7 +18748,17 @@ var ClientResponseImpl = class extends Class {
18098
18748
  }
18099
18749
  };
18100
18750
 
18101
- // ../../../node_modules/.pnpm/@effect+platform@0.90.0_effect@3.17.2/node_modules/@effect/platform/dist/esm/internal/httpClient.js
18751
+ // ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/internal/httpClient.js
18752
+ var ATTR_HTTP_REQUEST_HEADER = (key) => `http.request.header.${key}`;
18753
+ var ATTR_HTTP_REQUEST_METHOD = "http.request.method";
18754
+ var ATTR_HTTP_RESPONSE_HEADER = (key) => `http.response.header.${key}`;
18755
+ var ATTR_HTTP_RESPONSE_STATUS_CODE = "http.response.status_code";
18756
+ var ATTR_SERVER_ADDRESS = "server.address";
18757
+ var ATTR_SERVER_PORT = "server.port";
18758
+ var ATTR_URL_FULL = "url.full";
18759
+ var ATTR_URL_PATH = "url.path";
18760
+ var ATTR_URL_SCHEME = "url.scheme";
18761
+ var ATTR_URL_QUERY = "url.query";
18102
18762
  var TypeId25 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpClient");
18103
18763
  var tag = /* @__PURE__ */ GenericTag("@effect/platform/HttpClient");
18104
18764
  var currentTracerDisabledWhen = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("@effect/platform/HttpClient/tracerDisabledWhen"), () => unsafeMake7(constFalse));
@@ -18198,7 +18858,7 @@ var make51 = (f) => makeWith((effect3) => flatMap10(effect3, (request) => withFi
18198
18858
  return succeed7(new InterruptibleResponse(response, controller));
18199
18859
  },
18200
18860
  onFailure(cause2) {
18201
- if (isInterrupted3(cause2)) {
18861
+ if (isInterrupted2(cause2)) {
18202
18862
  controller.abort();
18203
18863
  }
18204
18864
  return failCause7(cause2);
@@ -18240,7 +18900,7 @@ var make51 = (f) => makeWith((effect3) => flatMap10(effect3, (request) => withFi
18240
18900
  return succeed7(new InterruptibleResponse(response, controller));
18241
18901
  },
18242
18902
  onFailure(cause2) {
18243
- if (!scopedController && isInterrupted3(cause2)) {
18903
+ if (!scopedController && isInterrupted2(cause2)) {
18244
18904
  controller.abort();
18245
18905
  }
18246
18906
  return failCause7(cause2);
@@ -18258,7 +18918,7 @@ var InterruptibleResponse = class {
18258
18918
  [TypeId24] = TypeId24;
18259
18919
  [TypeId21] = TypeId21;
18260
18920
  applyInterrupt(effect3) {
18261
- return suspend4(() => {
18921
+ return suspend3(() => {
18262
18922
  responseRegistry.unregister(this.original);
18263
18923
  return onInterrupt2(effect3, () => sync4(() => {
18264
18924
  this.controller.abort();
@@ -18298,12 +18958,9 @@ var InterruptibleResponse = class {
18298
18958
  get stream() {
18299
18959
  return suspend7(() => {
18300
18960
  responseRegistry.unregister(this.original);
18301
- return ensuringWith3(this.original.stream, (exit4) => {
18302
- if (isInterrupted2(exit4)) {
18303
- this.controller.abort();
18304
- }
18305
- return _void;
18306
- });
18961
+ return ensuring5(this.original.stream, sync4(() => {
18962
+ this.controller.abort();
18963
+ }));
18307
18964
  });
18308
18965
  }
18309
18966
  toJSON() {
@@ -18337,16 +18994,16 @@ var transformResponse = /* @__PURE__ */ dual(2, (self, f) => {
18337
18994
  });
18338
18995
  var layerMergedContext = (effect3) => effect(tag, flatMap10(context2(), (context5) => map17(effect3, (client) => transformResponse(client, mapInputContext2((input) => merge3(context5, input))))));
18339
18996
 
18340
- // ../../../node_modules/.pnpm/@effect+platform@0.90.0_effect@3.17.2/node_modules/@effect/platform/dist/esm/HttpClient.js
18997
+ // ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/HttpClient.js
18341
18998
  var HttpClient = tag;
18342
18999
 
18343
- // ../../../node_modules/.pnpm/@effect+platform@0.90.0_effect@3.17.2/node_modules/@effect/platform/dist/esm/HttpClientRequest.js
19000
+ // ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/HttpClientRequest.js
18344
19001
  var get17 = get15;
18345
19002
  var post3 = post;
18346
19003
  var setUrlParams2 = setUrlParams;
18347
19004
  var bodyJson2 = bodyJson;
18348
19005
 
18349
- // ../../../node_modules/.pnpm/@effect+platform@0.90.0_effect@3.17.2/node_modules/@effect/platform/dist/esm/internal/fetchHttpClient.js
19006
+ // ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/internal/fetchHttpClient.js
18350
19007
  var fetchTagKey = "@effect/platform/FetchHttpClient/Fetch";
18351
19008
  var requestInitTagKey = "@effect/platform/FetchHttpClient/FetchOptions";
18352
19009
  var fetch = /* @__PURE__ */ make51((request, url, signal, fiber) => {
@@ -18382,7 +19039,7 @@ var fetch = /* @__PURE__ */ make51((request, url, signal, fiber) => {
18382
19039
  });
18383
19040
  var layer = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed7(fetch));
18384
19041
 
18385
- // ../../../node_modules/.pnpm/@effect+platform@0.90.0_effect@3.17.2/node_modules/@effect/platform/dist/esm/FetchHttpClient.js
19042
+ // ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/FetchHttpClient.js
18386
19043
  var layer2 = layer;
18387
19044
 
18388
19045
  // ../ajax-client/dist/main/LoggerUtils.js
@@ -18399,6 +19056,9 @@ Logging_exports.filterLevelOrNever;
18399
19056
  var InvalidAjaxMethodError = class extends TaggedError(
18400
19057
  "@brytdesigns/ajax-client/InvalidAjaxMethodError"
18401
19058
  ) {
19059
+ /**
19060
+ * Constructs a new instance of InvalidAjaxMethodError with a default error message.
19061
+ */
18402
19062
  constructor() {
18403
19063
  super({ message: "Invalid HTTP method | Allowed: 'get' or 'post'" });
18404
19064
  }
@@ -18600,11 +19260,34 @@ var createAjaxCartApi = ({ debug = false }) => {
18600
19260
  let minimumLogLevel2 = None3;
18601
19261
  let loggerLayer = pretty4;
18602
19262
  if (debug) {
18603
- baseLayer = mergeAll4(loggerLayer);
19263
+ baseLayer = mergeAll5(loggerLayer);
18604
19264
  minimumLogLevel2 = All;
18605
19265
  }
18606
- const ajaxLayer = mergeAll4(baseLayer, Default);
19266
+ const ajaxLayer = mergeAll5(baseLayer, Default);
18607
19267
  return {
19268
+ /**
19269
+ * Adds a product to the cart.
19270
+ *
19271
+ * @param input - The input object containing the product ID and quantity to be added.
19272
+ * @param options - An optional object containing request options.
19273
+ * @param options.signal - An AbortSignal object to abort the request.
19274
+ * @param options.headers - Custom headers to be sent with the request.
19275
+ *
19276
+ * @returns A Promise that resolves to the updated cart object.
19277
+ *
19278
+ * @example
19279
+ * ```typescript
19280
+ * const ajaxCartApi = createAjaxCartApi({ debug: true });
19281
+ *
19282
+ * ajaxCartApi.add({ productId: "123", quantity: 2 })
19283
+ * .then((response) => {
19284
+ * console.log("Cart updated:", response);
19285
+ * })
19286
+ * .catch((error) => {
19287
+ * console.error("Failed to update cart:", error);
19288
+ * });
19289
+ * ```
19290
+ */
18608
19291
  add: (input, options3) => runPromise(
18609
19292
  add6(input, {
18610
19293
  ...options3 || {},
@@ -18620,6 +19303,34 @@ var createAjaxCartApi = ({ debug = false }) => {
18620
19303
  signal: options3?.signal
18621
19304
  }
18622
19305
  ),
19306
+ /**
19307
+ * Updates the quantity, attributes, or selling plan of a specific item in the cart.
19308
+ *
19309
+ * @remarks
19310
+ * This function sends a request to update the quantity, attributes, or selling plan of a specific item in the cart.
19311
+ * It uses the provided input object to specify the item ID and the new quantity, attributes, or selling plan.
19312
+ * The function also accepts optional request options, such as an AbortSignal for cancellation.
19313
+ *
19314
+ * @param input - The input object containing the item ID and the new quantity.
19315
+ * @param options - An optional object containing request options.
19316
+ * @param options.signal - An AbortSignal object to abort the request.
19317
+ * @param options.headers - Custom headers to be sent with the request.
19318
+ *
19319
+ * @returns A Promise that resolves to the updated cart object.
19320
+ *
19321
+ * @example
19322
+ * ```typescript
19323
+ * const ajaxCartApi = createAjaxCartApi({ debug: true });
19324
+ *
19325
+ * ajaxCartApi.change({ itemId: "9876543210", quantity: 3 })
19326
+ * .then((response) => {
19327
+ * console.log("Cart updated:", response);
19328
+ * })
19329
+ * .catch((error) => {
19330
+ * console.error("Failed to update cart:", error);
19331
+ * });
19332
+ * ```
19333
+ */
18623
19334
  change: (input, options3) => runPromise(
18624
19335
  change(input, {
18625
19336
  ...options3 || {},
@@ -18635,6 +19346,31 @@ var createAjaxCartApi = ({ debug = false }) => {
18635
19346
  signal: options3?.signal
18636
19347
  }
18637
19348
  ),
19349
+ /**
19350
+ * Clears the entire cart.
19351
+ *
19352
+ * This function sends a request to clear the entire cart. It does not require any input parameters.
19353
+ * The function accepts optional request options, such as an AbortSignal for cancellation.
19354
+ *
19355
+ * @param input - An optional input object containing request options.
19356
+ * @param input.signal - An AbortSignal object to abort the request.
19357
+ * @param input.headers - Custom headers to be sent with the request.
19358
+ *
19359
+ * @returns A Promise that resolves to an empty object upon successful cart clearance.
19360
+ *
19361
+ * @example
19362
+ * ```typescript
19363
+ * const ajaxCartApi = createAjaxCartApi({ debug: true });
19364
+ *
19365
+ * ajaxCartApi.clear()
19366
+ * .then(() => {
19367
+ * console.log("Cart cleared successfully");
19368
+ * })
19369
+ * .catch((error) => {
19370
+ * console.error("Failed to clear cart:", error);
19371
+ * });
19372
+ * ```
19373
+ */
18638
19374
  clear: (input, options3) => runPromise(
18639
19375
  clear(input, {
18640
19376
  ...options3 || {},
@@ -18650,6 +19386,32 @@ var createAjaxCartApi = ({ debug = false }) => {
18650
19386
  signal: options3?.signal
18651
19387
  }
18652
19388
  ),
19389
+ /**
19390
+ * Retrieves the current state of the cart.
19391
+ *
19392
+ * This function sends a request to retrieve the current state of the cart.
19393
+ * It does not require any input parameters.
19394
+ * The function accepts optional request options, such as an AbortSignal for cancellation.
19395
+ *
19396
+ * @param input - An optional input object containing request options.
19397
+ * @param input.signal - An AbortSignal object to abort the request.
19398
+ * @param input.headers - Custom headers to be sent with the request.
19399
+ *
19400
+ * @returns A Promise that resolves to the current cart object.
19401
+ *
19402
+ * @example
19403
+ * ```typescript
19404
+ * const ajaxCartApi = createAjaxCartApi({ debug: true });
19405
+ *
19406
+ * ajaxCartApi.get()
19407
+ * .then((response) => {
19408
+ * console.log("Current cart:", response);
19409
+ * })
19410
+ * .catch((error) => {
19411
+ * console.error("Failed to retrieve cart:", error);
19412
+ * });
19413
+ * ```
19414
+ */
18653
19415
  get: (input, options3) => runPromise(
18654
19416
  get18(input, {
18655
19417
  ...options3 || {},
@@ -18665,6 +19427,41 @@ var createAjaxCartApi = ({ debug = false }) => {
18665
19427
  signal: options3?.signal
18666
19428
  }
18667
19429
  ),
19430
+ /**
19431
+ * Updates the cart with the provided input data.
19432
+ *
19433
+ * This function sends a request to update any cart level data (discount codes, notes, attributes, etc...).
19434
+ * It uses the provided input object to specify the changes to be made to the cart.
19435
+ * The function also accepts optional request options, such as an AbortSignal for cancellation.
19436
+ *
19437
+ * @param input - The input object containing the changes to be made to the cart.
19438
+ * @param options - An optional object containing request options.
19439
+ * @param options.signal - An AbortSignal object to abort the request.
19440
+ * @param options.headers - Custom headers to be sent with the request.
19441
+ *
19442
+ * @returns A Promise that resolves to the updated cart object.
19443
+ *
19444
+ * @example
19445
+ * ```typescript
19446
+ * const ajaxCartApi = createAjaxCartApi({ debug: true });
19447
+ *
19448
+ * ajaxCartApi.update({
19449
+ * updates: { 1231231: 2, 1231230: 0 },
19450
+ * note: "This is a note",
19451
+ * attributes: {
19452
+ * "public_key": "Public value",
19453
+ * "_private_key": "Private value"
19454
+ * },
19455
+ * discount: ["hello","world"]
19456
+ * })
19457
+ * .then((response) => {
19458
+ * console.log("Cart updated:", response);
19459
+ * })
19460
+ * .catch((error) => {
19461
+ * console.error("Failed to update cart:", error);
19462
+ * });
19463
+ * ```
19464
+ */
18668
19465
  update: (input, options3) => runPromise(
18669
19466
  update5(input, {
18670
19467
  ...options3 || {},