@brytdesigns/shopify-ajax-client 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +528 -470
- package/dist/esm/index.js.map +1 -1
- package/dist/main/AjaxClientResponse.js.map +1 -1
- package/dist/main/LoggerUtils.js.map +1 -1
- package/dist/main/errors.js +3 -0
- package/dist/main/errors.js.map +1 -1
- package/dist/main/index.d.ts +38 -0
- package/dist/main/index.js.map +1 -1
- package/package.json +4 -4
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.
|
|
7
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/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.
|
|
106
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/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.
|
|
122
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/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.
|
|
136
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/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";
|
|
@@ -149,11 +149,11 @@ var isTagged = /* @__PURE__ */ dual(2, (self, tag2) => hasProperty(self, "_tag")
|
|
|
149
149
|
var isNullable = (input) => input === null || input === void 0;
|
|
150
150
|
var isNotNullable = (input) => input !== null && input !== void 0;
|
|
151
151
|
var isDate = (input) => input instanceof Date;
|
|
152
|
-
var isIterable = (input) => hasProperty(input, Symbol.iterator);
|
|
152
|
+
var isIterable = (input) => typeof input === "string" || hasProperty(input, Symbol.iterator);
|
|
153
153
|
var isRecord = (input) => isRecordOrArray(input) && !Array.isArray(input);
|
|
154
154
|
var isPromiseLike = (input) => hasProperty(input, "then") && isFunction2(input.then);
|
|
155
155
|
|
|
156
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
156
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/errors.js
|
|
157
157
|
var getBugErrorMessage = (message) => `BUG: ${message} - please report an issue at https://github.com/Effect-TS/effect/issues`;
|
|
158
158
|
var SingleShotGen = class _SingleShotGen {
|
|
159
159
|
self;
|
|
@@ -353,7 +353,7 @@ var forced = {
|
|
|
353
353
|
var isNotOptimizedAway = /* @__PURE__ */ standard.effect_internal_function(() => new Error().stack)?.includes("effect_internal_function") === true;
|
|
354
354
|
var internalCall = isNotOptimizedAway ? standard.effect_internal_function : forced.effect_internal_function;
|
|
355
355
|
|
|
356
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
356
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Hash.js
|
|
357
357
|
var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => /* @__PURE__ */ new WeakMap());
|
|
358
358
|
var symbol = /* @__PURE__ */ Symbol.for("effect/Hash");
|
|
359
359
|
var hash = (self) => {
|
|
@@ -459,7 +459,7 @@ var cached = function() {
|
|
|
459
459
|
return hash2;
|
|
460
460
|
};
|
|
461
461
|
|
|
462
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
462
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Equal.js
|
|
463
463
|
var symbol2 = /* @__PURE__ */ Symbol.for("effect/Equal");
|
|
464
464
|
function equals() {
|
|
465
465
|
if (arguments.length === 1) {
|
|
@@ -513,7 +513,7 @@ function compareBoth(self, that) {
|
|
|
513
513
|
var isEqual = (u) => hasProperty(u, symbol2);
|
|
514
514
|
var equivalence = () => equals;
|
|
515
515
|
|
|
516
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
516
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Inspectable.js
|
|
517
517
|
var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
|
|
518
518
|
var toJSON = (x) => {
|
|
519
519
|
try {
|
|
@@ -527,6 +527,73 @@ var toJSON = (x) => {
|
|
|
527
527
|
}
|
|
528
528
|
return redact(x);
|
|
529
529
|
};
|
|
530
|
+
var CIRCULAR = "[Circular]";
|
|
531
|
+
function formatDate(date) {
|
|
532
|
+
try {
|
|
533
|
+
return date.toISOString();
|
|
534
|
+
} catch {
|
|
535
|
+
return "Invalid Date";
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
function safeToString(input) {
|
|
539
|
+
try {
|
|
540
|
+
const s = input.toString();
|
|
541
|
+
return typeof s === "string" ? s : String(s);
|
|
542
|
+
} catch {
|
|
543
|
+
return "[toString threw]";
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
function formatPropertyKey(name) {
|
|
547
|
+
return isString(name) ? JSON.stringify(name) : String(name);
|
|
548
|
+
}
|
|
549
|
+
function formatUnknown(input, options3) {
|
|
550
|
+
const seen = /* @__PURE__ */ new WeakSet();
|
|
551
|
+
const wrap = (v, body) => {
|
|
552
|
+
const ctor = v?.constructor;
|
|
553
|
+
return ctor && ctor !== Object.prototype.constructor && ctor.name ? `${ctor.name}(${body})` : body;
|
|
554
|
+
};
|
|
555
|
+
const ownKeys = (o) => {
|
|
556
|
+
try {
|
|
557
|
+
return Reflect.ownKeys(o);
|
|
558
|
+
} catch {
|
|
559
|
+
return ["[ownKeys threw]"];
|
|
560
|
+
}
|
|
561
|
+
};
|
|
562
|
+
function go2(v, d = 0) {
|
|
563
|
+
if (Array.isArray(v)) {
|
|
564
|
+
if (seen.has(v)) return CIRCULAR;
|
|
565
|
+
seen.add(v);
|
|
566
|
+
return `[${v.map((x) => go2(x, d)).join(",")}]`;
|
|
567
|
+
}
|
|
568
|
+
if (isDate(v)) return formatDate(v);
|
|
569
|
+
if (hasProperty(v, "toString") && isFunction2(v["toString"]) && v["toString"] !== Object.prototype.toString && v["toString"] !== Array.prototype.toString) {
|
|
570
|
+
const s = safeToString(v);
|
|
571
|
+
if (v instanceof Error && v.cause) {
|
|
572
|
+
return `${s} (cause: ${go2(v.cause, d)})`;
|
|
573
|
+
}
|
|
574
|
+
return s;
|
|
575
|
+
}
|
|
576
|
+
if (isString(v)) return JSON.stringify(v);
|
|
577
|
+
if (isNumber(v) || v == null || isBoolean(v) || isSymbol(v)) return String(v);
|
|
578
|
+
if (isBigInt(v)) return String(v) + "n";
|
|
579
|
+
if (v instanceof Set || v instanceof Map) {
|
|
580
|
+
if (seen.has(v)) return CIRCULAR;
|
|
581
|
+
seen.add(v);
|
|
582
|
+
return `${v.constructor.name}(${go2(Array.from(v), d)})`;
|
|
583
|
+
}
|
|
584
|
+
if (isObject(v)) {
|
|
585
|
+
if (seen.has(v)) return CIRCULAR;
|
|
586
|
+
seen.add(v);
|
|
587
|
+
const keys6 = ownKeys(v);
|
|
588
|
+
{
|
|
589
|
+
const body2 = `{${keys6.map((k) => `${formatPropertyKey(k)}:${go2(v[k], d)}`).join(",")}}`;
|
|
590
|
+
return wrap(v, body2);
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
return String(v);
|
|
594
|
+
}
|
|
595
|
+
return go2(input, 0);
|
|
596
|
+
}
|
|
530
597
|
var format = (x) => JSON.stringify(x, null, 2);
|
|
531
598
|
var BaseProto = {
|
|
532
599
|
toJSON() {
|
|
@@ -590,7 +657,7 @@ var redact = (u) => {
|
|
|
590
657
|
return u;
|
|
591
658
|
};
|
|
592
659
|
|
|
593
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
660
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Pipeable.js
|
|
594
661
|
var pipeArguments = (self, args2) => {
|
|
595
662
|
switch (args2.length) {
|
|
596
663
|
case 0:
|
|
@@ -623,7 +690,7 @@ var pipeArguments = (self, args2) => {
|
|
|
623
690
|
}
|
|
624
691
|
};
|
|
625
692
|
|
|
626
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
693
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/opCodes/effect.js
|
|
627
694
|
var OP_ASYNC = "Async";
|
|
628
695
|
var OP_COMMIT = "Commit";
|
|
629
696
|
var OP_FAILURE = "Failure";
|
|
@@ -640,11 +707,11 @@ var OP_WITH_RUNTIME = "WithRuntime";
|
|
|
640
707
|
var OP_YIELD = "Yield";
|
|
641
708
|
var OP_REVERT_FLAGS = "RevertFlags";
|
|
642
709
|
|
|
643
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
644
|
-
var moduleVersion = "3.
|
|
710
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/version.js
|
|
711
|
+
var moduleVersion = "3.19.4";
|
|
645
712
|
var getCurrentVersion = () => moduleVersion;
|
|
646
713
|
|
|
647
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
714
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/effectable.js
|
|
648
715
|
var EffectTypeId = /* @__PURE__ */ Symbol.for("effect/Effect");
|
|
649
716
|
var StreamTypeId = /* @__PURE__ */ Symbol.for("effect/Stream");
|
|
650
717
|
var SinkTypeId = /* @__PURE__ */ Symbol.for("effect/Sink");
|
|
@@ -737,7 +804,7 @@ var Base = /* @__PURE__ */ function() {
|
|
|
737
804
|
return Base3;
|
|
738
805
|
}();
|
|
739
806
|
|
|
740
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
807
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/option.js
|
|
741
808
|
var TypeId = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
742
809
|
var CommonProto = {
|
|
743
810
|
...EffectPrototype,
|
|
@@ -795,7 +862,7 @@ var some = (value2) => {
|
|
|
795
862
|
return a;
|
|
796
863
|
};
|
|
797
864
|
|
|
798
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
865
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/either.js
|
|
799
866
|
var TypeId2 = /* @__PURE__ */ Symbol.for("effect/Either");
|
|
800
867
|
var CommonProto2 = {
|
|
801
868
|
...EffectPrototype,
|
|
@@ -858,7 +925,7 @@ var right = (right3) => {
|
|
|
858
925
|
};
|
|
859
926
|
var fromOption = /* @__PURE__ */ dual(2, (self, onNone) => isNone(self) ? left(onNone()) : right(self.value));
|
|
860
927
|
|
|
861
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
928
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Either.js
|
|
862
929
|
var right2 = right;
|
|
863
930
|
var left2 = left;
|
|
864
931
|
var fromOption2 = fromOption;
|
|
@@ -883,16 +950,16 @@ var getOrThrowWith = /* @__PURE__ */ dual(2, (self, onLeft) => {
|
|
|
883
950
|
});
|
|
884
951
|
var getOrThrow = /* @__PURE__ */ getOrThrowWith(() => new Error("getOrThrow called on a Left"));
|
|
885
952
|
|
|
886
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
953
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/array.js
|
|
887
954
|
var isNonEmptyArray = (self) => self.length > 0;
|
|
888
955
|
|
|
889
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
956
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Order.js
|
|
890
957
|
var make2 = (compare2) => (self, that) => self === that ? 0 : compare2(self, that);
|
|
891
958
|
var number3 = /* @__PURE__ */ make2((self, that) => self < that ? -1 : 1);
|
|
892
959
|
var mapInput2 = /* @__PURE__ */ dual(2, (self, f) => make2((b1, b2) => self(f(b1), f(b2))));
|
|
893
960
|
var greaterThan = (O) => dual(2, (self, that) => O(self, that) === 1);
|
|
894
961
|
|
|
895
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
962
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Option.js
|
|
896
963
|
var none2 = () => none;
|
|
897
964
|
var some2 = some;
|
|
898
965
|
var isNone2 = isNone;
|
|
@@ -921,10 +988,10 @@ var _equivalence = /* @__PURE__ */ equivalence();
|
|
|
921
988
|
var contains = /* @__PURE__ */ containsWith(_equivalence);
|
|
922
989
|
var exists = /* @__PURE__ */ dual(2, (self, refinement) => isNone2(self) ? false : refinement(self.value));
|
|
923
990
|
|
|
924
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
991
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Tuple.js
|
|
925
992
|
var make3 = (...elements) => elements;
|
|
926
993
|
|
|
927
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
994
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Record.js
|
|
928
995
|
var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
929
996
|
const out = {
|
|
930
997
|
...self
|
|
@@ -936,7 +1003,7 @@ var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
|
936
1003
|
});
|
|
937
1004
|
var keys = (self) => Object.keys(self);
|
|
938
1005
|
|
|
939
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
1006
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Array.js
|
|
940
1007
|
var allocate = (n) => new Array(n);
|
|
941
1008
|
var makeBy = /* @__PURE__ */ dual(2, (n, f) => {
|
|
942
1009
|
const max5 = Math.max(1, Math.floor(n));
|
|
@@ -1111,7 +1178,7 @@ var dedupeWith = /* @__PURE__ */ dual(2, (self, isEquivalent) => {
|
|
|
1111
1178
|
var dedupe = (self) => dedupeWith(self, equivalence());
|
|
1112
1179
|
var join = /* @__PURE__ */ dual(2, (self, sep) => fromIterable(self).join(sep));
|
|
1113
1180
|
|
|
1114
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
1181
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Chunk.js
|
|
1115
1182
|
var TypeId3 = /* @__PURE__ */ Symbol.for("effect/Chunk");
|
|
1116
1183
|
function copy2(src, srcPos, dest, destPos, len) {
|
|
1117
1184
|
for (let i = srcPos; i < Math.min(src.length, srcPos + len); i++) {
|
|
@@ -1450,14 +1517,14 @@ var map5 = /* @__PURE__ */ dual(2, (self, f) => self.backing._tag === "ISingleto
|
|
|
1450
1517
|
var tailNonEmpty2 = (self) => drop2(self, 1);
|
|
1451
1518
|
var reduce2 = reduce;
|
|
1452
1519
|
|
|
1453
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
1520
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/hashMap/config.js
|
|
1454
1521
|
var SIZE = 5;
|
|
1455
1522
|
var BUCKET_SIZE = /* @__PURE__ */ Math.pow(2, SIZE);
|
|
1456
1523
|
var MASK = BUCKET_SIZE - 1;
|
|
1457
1524
|
var MAX_INDEX_NODE = BUCKET_SIZE / 2;
|
|
1458
1525
|
var MIN_ARRAY_NODE = BUCKET_SIZE / 4;
|
|
1459
1526
|
|
|
1460
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
1527
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/hashMap/bitwise.js
|
|
1461
1528
|
function popcount(x) {
|
|
1462
1529
|
x -= x >> 1 & 1431655765;
|
|
1463
1530
|
x = (x & 858993459) + (x >> 2 & 858993459);
|
|
@@ -1476,13 +1543,13 @@ function fromBitmap(bitmap, bit) {
|
|
|
1476
1543
|
return popcount(bitmap & bit - 1);
|
|
1477
1544
|
}
|
|
1478
1545
|
|
|
1479
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
1546
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/stack.js
|
|
1480
1547
|
var make5 = (value2, previous) => ({
|
|
1481
1548
|
value: value2,
|
|
1482
1549
|
previous
|
|
1483
1550
|
});
|
|
1484
1551
|
|
|
1485
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
1552
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/hashMap/array.js
|
|
1486
1553
|
function arrayUpdate(mutate4, at, v, arr) {
|
|
1487
1554
|
let out = arr;
|
|
1488
1555
|
if (!mutate4) {
|
|
@@ -1527,7 +1594,7 @@ function arraySpliceIn(mutate4, at, v, arr) {
|
|
|
1527
1594
|
return out;
|
|
1528
1595
|
}
|
|
1529
1596
|
|
|
1530
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
1597
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/hashMap/node.js
|
|
1531
1598
|
var EmptyNode = class _EmptyNode {
|
|
1532
1599
|
_tag = "EmptyNode";
|
|
1533
1600
|
modify(edit, _shift, f, hash2, key, size11) {
|
|
@@ -1762,7 +1829,7 @@ function mergeLeaves(edit, shift2, h1, n1, h2, n2) {
|
|
|
1762
1829
|
}
|
|
1763
1830
|
}
|
|
1764
1831
|
|
|
1765
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
1832
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/hashMap.js
|
|
1766
1833
|
var HashMapSymbolKey = "effect/HashMap";
|
|
1767
1834
|
var HashMapTypeId = /* @__PURE__ */ Symbol.for(HashMapSymbolKey);
|
|
1768
1835
|
var HashMapProto = {
|
|
@@ -1994,7 +2061,7 @@ var reduce3 = /* @__PURE__ */ dual(3, (self, zero2, f) => {
|
|
|
1994
2061
|
return zero2;
|
|
1995
2062
|
});
|
|
1996
2063
|
|
|
1997
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
2064
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/hashSet.js
|
|
1998
2065
|
var HashSetSymbolKey = "effect/HashSet";
|
|
1999
2066
|
var HashSetTypeId = /* @__PURE__ */ Symbol.for(HashSetSymbolKey);
|
|
2000
2067
|
var HashSetProto = {
|
|
@@ -2077,7 +2144,7 @@ var union2 = /* @__PURE__ */ dual(2, (self, that) => mutate2(empty4(), (set10) =
|
|
|
2077
2144
|
var forEach2 = /* @__PURE__ */ dual(2, (self, f) => forEach(self._keyMap, (_, k) => f(k)));
|
|
2078
2145
|
var reduce4 = /* @__PURE__ */ dual(3, (self, zero2, f) => reduce3(self._keyMap, zero2, (z, _, a) => f(z, a)));
|
|
2079
2146
|
|
|
2080
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
2147
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/HashSet.js
|
|
2081
2148
|
var empty5 = empty4;
|
|
2082
2149
|
var fromIterable5 = fromIterable4;
|
|
2083
2150
|
var make7 = make6;
|
|
@@ -2089,7 +2156,7 @@ var difference3 = difference2;
|
|
|
2089
2156
|
var union3 = union2;
|
|
2090
2157
|
var reduce5 = reduce4;
|
|
2091
2158
|
|
|
2092
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
2159
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/opCodes/cause.js
|
|
2093
2160
|
var OP_DIE = "Die";
|
|
2094
2161
|
var OP_EMPTY = "Empty";
|
|
2095
2162
|
var OP_FAIL = "Fail";
|
|
@@ -2097,7 +2164,7 @@ var OP_INTERRUPT = "Interrupt";
|
|
|
2097
2164
|
var OP_PARALLEL = "Parallel";
|
|
2098
2165
|
var OP_SEQUENTIAL = "Sequential";
|
|
2099
2166
|
|
|
2100
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
2167
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/cause.js
|
|
2101
2168
|
var CauseSymbolKey = "effect/Cause";
|
|
2102
2169
|
var CauseTypeId = /* @__PURE__ */ Symbol.for(CauseSymbolKey);
|
|
2103
2170
|
var variance = {
|
|
@@ -2652,7 +2719,7 @@ var prettyErrors = (cause2) => reduceWithContext(cause2, void 0, {
|
|
|
2652
2719
|
sequentialCase: (_, l, r) => [...l, ...r]
|
|
2653
2720
|
});
|
|
2654
2721
|
|
|
2655
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
2722
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/context.js
|
|
2656
2723
|
var TagTypeId = /* @__PURE__ */ Symbol.for("effect/Context/Tag");
|
|
2657
2724
|
var ReferenceTypeId = /* @__PURE__ */ Symbol.for("effect/Context/Reference");
|
|
2658
2725
|
var STMSymbolKey = "effect/STM";
|
|
@@ -2824,8 +2891,17 @@ var merge2 = /* @__PURE__ */ dual(2, (self, that) => {
|
|
|
2824
2891
|
}
|
|
2825
2892
|
return makeContext(map22);
|
|
2826
2893
|
});
|
|
2894
|
+
var mergeAll = (...ctxs) => {
|
|
2895
|
+
const map22 = /* @__PURE__ */ new Map();
|
|
2896
|
+
for (let i = 0; i < ctxs.length; i++) {
|
|
2897
|
+
ctxs[i].unsafeMap.forEach((value2, key) => {
|
|
2898
|
+
map22.set(key, value2);
|
|
2899
|
+
});
|
|
2900
|
+
}
|
|
2901
|
+
return makeContext(map22);
|
|
2902
|
+
};
|
|
2827
2903
|
|
|
2828
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
2904
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Context.js
|
|
2829
2905
|
var GenericTag = makeGenericTag;
|
|
2830
2906
|
var isContext2 = isContext;
|
|
2831
2907
|
var isTag2 = isTag;
|
|
@@ -2836,9 +2912,10 @@ var get5 = get4;
|
|
|
2836
2912
|
var unsafeGet4 = unsafeGet3;
|
|
2837
2913
|
var getOption2 = getOption;
|
|
2838
2914
|
var merge3 = merge2;
|
|
2915
|
+
var mergeAll2 = mergeAll;
|
|
2839
2916
|
var Reference2 = Reference;
|
|
2840
2917
|
|
|
2841
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
2918
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Duration.js
|
|
2842
2919
|
var TypeId5 = /* @__PURE__ */ Symbol.for("effect/Duration");
|
|
2843
2920
|
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
2844
2921
|
var bigint24 = /* @__PURE__ */ BigInt(24);
|
|
@@ -3115,7 +3192,7 @@ var format2 = (self) => {
|
|
|
3115
3192
|
return pieces.join(" ");
|
|
3116
3193
|
};
|
|
3117
3194
|
|
|
3118
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3195
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/MutableRef.js
|
|
3119
3196
|
var TypeId6 = /* @__PURE__ */ Symbol.for("effect/MutableRef");
|
|
3120
3197
|
var MutableRefProto = {
|
|
3121
3198
|
[TypeId6]: TypeId6,
|
|
@@ -3153,7 +3230,7 @@ var set2 = /* @__PURE__ */ dual(2, (self, value2) => {
|
|
|
3153
3230
|
return self;
|
|
3154
3231
|
});
|
|
3155
3232
|
|
|
3156
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3233
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/fiberId.js
|
|
3157
3234
|
var FiberIdSymbolKey = "effect/FiberId";
|
|
3158
3235
|
var FiberIdTypeId = /* @__PURE__ */ Symbol.for(FiberIdSymbolKey);
|
|
3159
3236
|
var OP_NONE = "None";
|
|
@@ -3283,7 +3360,7 @@ var unsafeMake = () => {
|
|
|
3283
3360
|
return new Runtime(id2, Date.now());
|
|
3284
3361
|
};
|
|
3285
3362
|
|
|
3286
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3363
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/FiberId.js
|
|
3287
3364
|
var none4 = none3;
|
|
3288
3365
|
var combine3 = combine2;
|
|
3289
3366
|
var combineAll2 = combineAll;
|
|
@@ -3291,7 +3368,7 @@ var ids2 = ids;
|
|
|
3291
3368
|
var threadName2 = threadName;
|
|
3292
3369
|
var unsafeMake2 = unsafeMake;
|
|
3293
3370
|
|
|
3294
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3371
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/HashMap.js
|
|
3295
3372
|
var empty9 = empty3;
|
|
3296
3373
|
var fromIterable6 = fromIterable3;
|
|
3297
3374
|
var isEmpty4 = isEmpty2;
|
|
@@ -3304,7 +3381,7 @@ var map10 = map6;
|
|
|
3304
3381
|
var forEach3 = forEach;
|
|
3305
3382
|
var reduce7 = reduce3;
|
|
3306
3383
|
|
|
3307
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3384
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/List.js
|
|
3308
3385
|
var TypeId7 = /* @__PURE__ */ Symbol.for("effect/List");
|
|
3309
3386
|
var toArray2 = (self) => fromIterable(self);
|
|
3310
3387
|
var getEquivalence3 = (isEquivalent) => mapInput(getEquivalence(isEquivalent), toArray2);
|
|
@@ -3464,7 +3541,7 @@ var Structural = /* @__PURE__ */ function() {
|
|
|
3464
3541
|
}();
|
|
3465
3542
|
var struct = (as6) => Object.assign(Object.create(StructuralPrototype), as6);
|
|
3466
3543
|
|
|
3467
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3544
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/differ/contextPatch.js
|
|
3468
3545
|
var ContextPatchTypeId = /* @__PURE__ */ Symbol.for("effect/DifferContextPatch");
|
|
3469
3546
|
function variance2(a) {
|
|
3470
3547
|
return a;
|
|
@@ -3590,7 +3667,7 @@ var patch = /* @__PURE__ */ dual(2, (self, context5) => {
|
|
|
3590
3667
|
return makeContext(map22);
|
|
3591
3668
|
});
|
|
3592
3669
|
|
|
3593
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3670
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/differ/hashSetPatch.js
|
|
3594
3671
|
var HashSetPatchTypeId = /* @__PURE__ */ Symbol.for("effect/DifferHashSetPatch");
|
|
3595
3672
|
function variance3(a) {
|
|
3596
3673
|
return a;
|
|
@@ -3675,7 +3752,7 @@ var patch2 = /* @__PURE__ */ dual(2, (self, oldValue) => {
|
|
|
3675
3752
|
return set10;
|
|
3676
3753
|
});
|
|
3677
3754
|
|
|
3678
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3755
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/differ/readonlyArrayPatch.js
|
|
3679
3756
|
var ReadonlyArrayPatchTypeId = /* @__PURE__ */ Symbol.for("effect/DifferReadonlyArrayPatch");
|
|
3680
3757
|
function variance4(a) {
|
|
3681
3758
|
return a;
|
|
@@ -3789,7 +3866,7 @@ var patch3 = /* @__PURE__ */ dual(3, (self, oldValue, differ3) => {
|
|
|
3789
3866
|
return readonlyArray2;
|
|
3790
3867
|
});
|
|
3791
3868
|
|
|
3792
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3869
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/differ.js
|
|
3793
3870
|
var DifferTypeId = /* @__PURE__ */ Symbol.for("effect/Differ");
|
|
3794
3871
|
var DifferProto = {
|
|
3795
3872
|
[DifferTypeId]: {
|
|
@@ -3851,7 +3928,7 @@ var updateWith = (f) => make14({
|
|
|
3851
3928
|
patch: (patch11, oldValue) => f(oldValue, patch11(oldValue))
|
|
3852
3929
|
});
|
|
3853
3930
|
|
|
3854
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3931
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/runtimeFlagsPatch.js
|
|
3855
3932
|
var BIT_MASK = 255;
|
|
3856
3933
|
var BIT_SHIFT = 8;
|
|
3857
3934
|
var active = (patch11) => patch11 & BIT_MASK;
|
|
@@ -3864,7 +3941,7 @@ var exclude = /* @__PURE__ */ dual(2, (self, flag) => make15(active(self) & ~fla
|
|
|
3864
3941
|
var andThen = /* @__PURE__ */ dual(2, (self, that) => self | that);
|
|
3865
3942
|
var invert = (n) => ~n >>> 0 & BIT_MASK;
|
|
3866
3943
|
|
|
3867
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3944
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/runtimeFlags.js
|
|
3868
3945
|
var None2 = 0;
|
|
3869
3946
|
var Interruption = 1 << 0;
|
|
3870
3947
|
var OpSupervision = 1 << 1;
|
|
@@ -3890,12 +3967,12 @@ var differ = /* @__PURE__ */ make14({
|
|
|
3890
3967
|
patch: (_patch, oldValue) => patch4(oldValue, _patch)
|
|
3891
3968
|
});
|
|
3892
3969
|
|
|
3893
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3970
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/RuntimeFlagsPatch.js
|
|
3894
3971
|
var enable3 = enable;
|
|
3895
3972
|
var disable3 = disable;
|
|
3896
3973
|
var exclude2 = exclude;
|
|
3897
3974
|
|
|
3898
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3975
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/blockedRequests.js
|
|
3899
3976
|
var par = (self, that) => ({
|
|
3900
3977
|
_tag: "Par",
|
|
3901
3978
|
left: self,
|
|
@@ -4038,11 +4115,11 @@ var sequentialCollectionCombine = (self, that) => new SequentialImpl(reduce7(tha
|
|
|
4038
4115
|
var sequentialCollectionKeys = (self) => Array.from(keys3(self.map));
|
|
4039
4116
|
var sequentialCollectionToChunk = (self) => Array.from(self.map);
|
|
4040
4117
|
|
|
4041
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
4118
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/opCodes/deferred.js
|
|
4042
4119
|
var OP_STATE_PENDING = "Pending";
|
|
4043
4120
|
var OP_STATE_DONE = "Done";
|
|
4044
4121
|
|
|
4045
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
4122
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/deferred.js
|
|
4046
4123
|
var DeferredSymbolKey = "effect/Deferred";
|
|
4047
4124
|
var DeferredTypeId = /* @__PURE__ */ Symbol.for(DeferredSymbolKey);
|
|
4048
4125
|
var deferredVariance = {
|
|
@@ -4064,7 +4141,7 @@ var done = (effect3) => {
|
|
|
4064
4141
|
};
|
|
4065
4142
|
};
|
|
4066
4143
|
|
|
4067
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
4144
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/singleShotGen.js
|
|
4068
4145
|
var SingleShotGen2 = class _SingleShotGen {
|
|
4069
4146
|
self;
|
|
4070
4147
|
called = false;
|
|
@@ -4094,7 +4171,7 @@ var SingleShotGen2 = class _SingleShotGen {
|
|
|
4094
4171
|
}
|
|
4095
4172
|
};
|
|
4096
4173
|
|
|
4097
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
4174
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/core.js
|
|
4098
4175
|
var blocked = (blockedRequests, _continue3) => {
|
|
4099
4176
|
const effect3 = new EffectPrimitive("Blocked");
|
|
4100
4177
|
effect3.effect_instruction_i0 = blockedRequests;
|
|
@@ -4574,6 +4651,18 @@ var gen = function() {
|
|
|
4574
4651
|
const f = arguments.length === 1 ? arguments[0] : arguments[1].bind(arguments[0]);
|
|
4575
4652
|
return fromIterator(() => f(pipe));
|
|
4576
4653
|
};
|
|
4654
|
+
var fnUntraced = (body, ...pipeables) => Object.defineProperty(pipeables.length === 0 ? function(...args2) {
|
|
4655
|
+
return fromIterator(() => body.apply(this, args2));
|
|
4656
|
+
} : function(...args2) {
|
|
4657
|
+
let effect3 = fromIterator(() => body.apply(this, args2));
|
|
4658
|
+
for (const x of pipeables) {
|
|
4659
|
+
effect3 = x(effect3, ...args2);
|
|
4660
|
+
}
|
|
4661
|
+
return effect3;
|
|
4662
|
+
}, "length", {
|
|
4663
|
+
value: body.length,
|
|
4664
|
+
configurable: true
|
|
4665
|
+
});
|
|
4577
4666
|
var withRuntimeFlags = /* @__PURE__ */ dual(2, (self, update5) => {
|
|
4578
4667
|
const effect3 = new EffectPrimitive(OP_UPDATE_RUNTIME_FLAGS);
|
|
4579
4668
|
effect3.effect_instruction_i0 = update5;
|
|
@@ -4844,14 +4933,6 @@ var UnknownException = /* @__PURE__ */ function() {
|
|
|
4844
4933
|
var exitIsExit = (u) => isEffect(u) && "_tag" in u && (u._tag === "Success" || u._tag === "Failure");
|
|
4845
4934
|
var exitIsFailure = (self) => self._tag === "Failure";
|
|
4846
4935
|
var exitIsSuccess = (self) => self._tag === "Success";
|
|
4847
|
-
var exitIsInterrupted = (self) => {
|
|
4848
|
-
switch (self._tag) {
|
|
4849
|
-
case OP_FAILURE:
|
|
4850
|
-
return isInterrupted(self.effect_instruction_i0);
|
|
4851
|
-
case OP_SUCCESS:
|
|
4852
|
-
return false;
|
|
4853
|
-
}
|
|
4854
|
-
};
|
|
4855
4936
|
var exitAs = /* @__PURE__ */ dual(2, (self, value2) => {
|
|
4856
4937
|
switch (self._tag) {
|
|
4857
4938
|
case OP_FAILURE: {
|
|
@@ -5049,7 +5130,7 @@ var NoopSpanProto = {
|
|
|
5049
5130
|
};
|
|
5050
5131
|
var noopSpan = (options3) => Object.assign(Object.create(NoopSpanProto), options3);
|
|
5051
5132
|
|
|
5052
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5133
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/clock.js
|
|
5053
5134
|
var ClockSymbolKey = "effect/Clock";
|
|
5054
5135
|
var ClockTypeId = /* @__PURE__ */ Symbol.for(ClockSymbolKey);
|
|
5055
5136
|
var clockTag = /* @__PURE__ */ GenericTag("effect/Clock");
|
|
@@ -5114,7 +5195,7 @@ var ClockImpl = class {
|
|
|
5114
5195
|
};
|
|
5115
5196
|
var make18 = () => new ClockImpl();
|
|
5116
5197
|
|
|
5117
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5198
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Number.js
|
|
5118
5199
|
var Order = number3;
|
|
5119
5200
|
var parse = (s) => {
|
|
5120
5201
|
if (s === "NaN") {
|
|
@@ -5133,10 +5214,10 @@ var parse = (s) => {
|
|
|
5133
5214
|
return Number.isNaN(n) ? none : some(n);
|
|
5134
5215
|
};
|
|
5135
5216
|
|
|
5136
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5217
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/RegExp.js
|
|
5137
5218
|
var escape = (string2) => string2.replace(/[/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
5138
5219
|
|
|
5139
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5220
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/opCodes/configError.js
|
|
5140
5221
|
var OP_AND = "And";
|
|
5141
5222
|
var OP_OR = "Or";
|
|
5142
5223
|
var OP_INVALID_DATA = "InvalidData";
|
|
@@ -5144,7 +5225,7 @@ var OP_MISSING_DATA = "MissingData";
|
|
|
5144
5225
|
var OP_SOURCE_UNAVAILABLE = "SourceUnavailable";
|
|
5145
5226
|
var OP_UNSUPPORTED = "Unsupported";
|
|
5146
5227
|
|
|
5147
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5228
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/configError.js
|
|
5148
5229
|
var ConfigErrorSymbolKey = "effect/ConfigError";
|
|
5149
5230
|
var ConfigErrorTypeId = /* @__PURE__ */ Symbol.for(ConfigErrorSymbolKey);
|
|
5150
5231
|
var proto2 = {
|
|
@@ -5277,7 +5358,7 @@ var prefixed = /* @__PURE__ */ dual(2, (self, prefix) => {
|
|
|
5277
5358
|
}
|
|
5278
5359
|
});
|
|
5279
5360
|
|
|
5280
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5361
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/configProvider/pathPatch.js
|
|
5281
5362
|
var empty15 = {
|
|
5282
5363
|
_tag: "Empty"
|
|
5283
5364
|
};
|
|
@@ -5320,7 +5401,7 @@ var patch5 = /* @__PURE__ */ dual(2, (path, patch11) => {
|
|
|
5320
5401
|
return right2(output);
|
|
5321
5402
|
});
|
|
5322
5403
|
|
|
5323
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5404
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/opCodes/config.js
|
|
5324
5405
|
var OP_CONSTANT = "Constant";
|
|
5325
5406
|
var OP_FAIL2 = "Fail";
|
|
5326
5407
|
var OP_FALLBACK = "Fallback";
|
|
@@ -5333,7 +5414,7 @@ var OP_SEQUENCE = "Sequence";
|
|
|
5333
5414
|
var OP_HASHMAP = "HashMap";
|
|
5334
5415
|
var OP_ZIP_WITH = "ZipWith";
|
|
5335
5416
|
|
|
5336
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5417
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/configProvider.js
|
|
5337
5418
|
var concat = (l, r) => [...l, ...r];
|
|
5338
5419
|
var ConfigProviderSymbolKey = "effect/ConfigProvider";
|
|
5339
5420
|
var ConfigProviderTypeId = /* @__PURE__ */ Symbol.for(ConfigProviderSymbolKey);
|
|
@@ -5537,7 +5618,7 @@ var parseInteger = (str) => {
|
|
|
5537
5618
|
return Number.isNaN(parsedIndex) ? none2() : some2(parsedIndex);
|
|
5538
5619
|
};
|
|
5539
5620
|
|
|
5540
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5621
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/defaultServices/console.js
|
|
5541
5622
|
var TypeId8 = /* @__PURE__ */ Symbol.for("effect/Console");
|
|
5542
5623
|
var consoleTag = /* @__PURE__ */ GenericTag("effect/Console");
|
|
5543
5624
|
var defaultConsole = {
|
|
@@ -5625,7 +5706,7 @@ var defaultConsole = {
|
|
|
5625
5706
|
unsafe: console
|
|
5626
5707
|
};
|
|
5627
5708
|
|
|
5628
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5709
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/random.js
|
|
5629
5710
|
var RandomSymbolKey = "effect/Random";
|
|
5630
5711
|
var RandomTypeId = /* @__PURE__ */ Symbol.for(RandomSymbolKey);
|
|
5631
5712
|
var randomTag = /* @__PURE__ */ GenericTag("effect/Random");
|
|
@@ -5673,7 +5754,7 @@ var swap = (buffer2, index1, index2) => {
|
|
|
5673
5754
|
};
|
|
5674
5755
|
var make21 = (seed) => new RandomImpl(hash(seed));
|
|
5675
5756
|
|
|
5676
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5757
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/tracer.js
|
|
5677
5758
|
var TracerTypeId = /* @__PURE__ */ Symbol.for("effect/Tracer");
|
|
5678
5759
|
var make22 = (options3) => ({
|
|
5679
5760
|
[TracerTypeId]: TracerTypeId,
|
|
@@ -5774,7 +5855,7 @@ var DisablePropagation = /* @__PURE__ */ Reference2()("effect/Tracer/DisableProp
|
|
|
5774
5855
|
defaultValue: constFalse
|
|
5775
5856
|
});
|
|
5776
5857
|
|
|
5777
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5858
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/defaultServices.js
|
|
5778
5859
|
var liveServices = /* @__PURE__ */ pipe(/* @__PURE__ */ empty8(), /* @__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));
|
|
5779
5860
|
var currentServices = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/DefaultServices/currentServices"), () => fiberRefUnsafeMakeContext(liveServices));
|
|
5780
5861
|
var sleep = (duration) => {
|
|
@@ -5785,20 +5866,13 @@ var defaultServicesWith = (f) => withFiberRuntime((fiber) => f(fiber.currentDefa
|
|
|
5785
5866
|
var clockWith = (f) => defaultServicesWith((services) => f(services.unsafeMap.get(clockTag.key)));
|
|
5786
5867
|
var currentTimeMillis = /* @__PURE__ */ clockWith((clock3) => clock3.currentTimeMillis);
|
|
5787
5868
|
|
|
5788
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5789
|
-
var make23 = deferredMake;
|
|
5790
|
-
var _await = deferredAwait;
|
|
5791
|
-
var failCause2 = deferredFailCause;
|
|
5792
|
-
var isDone = deferredIsDone;
|
|
5793
|
-
var succeed2 = deferredSucceed;
|
|
5794
|
-
|
|
5795
|
-
// ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Effectable.js
|
|
5869
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Effectable.js
|
|
5796
5870
|
var EffectPrototype2 = EffectPrototype;
|
|
5797
5871
|
var Base2 = Base;
|
|
5798
5872
|
var Class2 = class extends Base2 {
|
|
5799
5873
|
};
|
|
5800
5874
|
|
|
5801
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5875
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/executionStrategy.js
|
|
5802
5876
|
var OP_SEQUENTIAL2 = "Sequential";
|
|
5803
5877
|
var OP_PARALLEL2 = "Parallel";
|
|
5804
5878
|
var OP_PARALLEL_N = "ParallelN";
|
|
@@ -5815,12 +5889,12 @@ var parallelN = (parallelism) => ({
|
|
|
5815
5889
|
var isSequential = (self) => self._tag === OP_SEQUENTIAL2;
|
|
5816
5890
|
var isParallel = (self) => self._tag === OP_PARALLEL2;
|
|
5817
5891
|
|
|
5818
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5892
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/ExecutionStrategy.js
|
|
5819
5893
|
var sequential3 = sequential2;
|
|
5820
5894
|
var parallel3 = parallel2;
|
|
5821
5895
|
var parallelN2 = parallelN;
|
|
5822
5896
|
|
|
5823
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5897
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/fiberRefs.js
|
|
5824
5898
|
function unsafeMake3(fiberRefLocals) {
|
|
5825
5899
|
return new FiberRefsImpl(fiberRefLocals);
|
|
5826
5900
|
}
|
|
@@ -5987,13 +6061,13 @@ var updateManyAs = /* @__PURE__ */ dual(2, (self, {
|
|
|
5987
6061
|
return new FiberRefsImpl(locals);
|
|
5988
6062
|
});
|
|
5989
6063
|
|
|
5990
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6064
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/FiberRefs.js
|
|
5991
6065
|
var get9 = get8;
|
|
5992
6066
|
var getOrDefault2 = getOrDefault;
|
|
5993
6067
|
var updateManyAs2 = updateManyAs;
|
|
5994
6068
|
var empty17 = empty16;
|
|
5995
6069
|
|
|
5996
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6070
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/fiberRefs/patch.js
|
|
5997
6071
|
var OP_EMPTY2 = "Empty";
|
|
5998
6072
|
var OP_ADD = "Add";
|
|
5999
6073
|
var OP_REMOVE = "Remove";
|
|
@@ -6083,11 +6157,11 @@ var patch6 = /* @__PURE__ */ dual(3, (self, fiberId2, oldValue) => {
|
|
|
6083
6157
|
return fiberRefs3;
|
|
6084
6158
|
});
|
|
6085
6159
|
|
|
6086
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6160
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/FiberRefsPatch.js
|
|
6087
6161
|
var diff6 = diff5;
|
|
6088
6162
|
var patch7 = patch6;
|
|
6089
6163
|
|
|
6090
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6164
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/fiberStatus.js
|
|
6091
6165
|
var FiberStatusSymbolKey = "effect/FiberStatus";
|
|
6092
6166
|
var FiberStatusTypeId = /* @__PURE__ */ Symbol.for(FiberStatusSymbolKey);
|
|
6093
6167
|
var OP_DONE = "Done";
|
|
@@ -6138,15 +6212,15 @@ var done2 = /* @__PURE__ */ new Done();
|
|
|
6138
6212
|
var running = (runtimeFlags2) => new Running(runtimeFlags2);
|
|
6139
6213
|
var suspended = (runtimeFlags2, blockingOn) => new Suspended(runtimeFlags2, blockingOn);
|
|
6140
6214
|
var isFiberStatus = (u) => hasProperty(u, FiberStatusTypeId);
|
|
6141
|
-
var
|
|
6215
|
+
var isDone = (self) => self._tag === OP_DONE;
|
|
6142
6216
|
|
|
6143
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6217
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/FiberStatus.js
|
|
6144
6218
|
var done3 = done2;
|
|
6145
6219
|
var running2 = running;
|
|
6146
6220
|
var suspended2 = suspended;
|
|
6147
|
-
var
|
|
6221
|
+
var isDone2 = isDone;
|
|
6148
6222
|
|
|
6149
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6223
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/LogLevel.js
|
|
6150
6224
|
var All = logLevelAll;
|
|
6151
6225
|
var Fatal = logLevelFatal;
|
|
6152
6226
|
var Error2 = logLevelError;
|
|
@@ -6178,7 +6252,7 @@ var fromLiteral = (literal) => {
|
|
|
6178
6252
|
}
|
|
6179
6253
|
};
|
|
6180
6254
|
|
|
6181
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6255
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Micro.js
|
|
6182
6256
|
var TypeId9 = /* @__PURE__ */ Symbol.for("effect/Micro");
|
|
6183
6257
|
var MicroExitTypeId = /* @__PURE__ */ Symbol.for("effect/Micro/MicroExit");
|
|
6184
6258
|
var MicroCauseTypeId = /* @__PURE__ */ Symbol.for("effect/Micro/MicroCause");
|
|
@@ -6451,7 +6525,7 @@ var makeExit = (options3) => {
|
|
|
6451
6525
|
return self;
|
|
6452
6526
|
};
|
|
6453
6527
|
};
|
|
6454
|
-
var
|
|
6528
|
+
var succeed2 = /* @__PURE__ */ makeExit({
|
|
6455
6529
|
op: "Success",
|
|
6456
6530
|
prop: "value",
|
|
6457
6531
|
eval(fiber) {
|
|
@@ -6459,7 +6533,7 @@ var succeed3 = /* @__PURE__ */ makeExit({
|
|
|
6459
6533
|
return cont ? cont[successCont](this[args], fiber) : fiber.yieldWith(this);
|
|
6460
6534
|
}
|
|
6461
6535
|
});
|
|
6462
|
-
var
|
|
6536
|
+
var failCause2 = /* @__PURE__ */ makeExit({
|
|
6463
6537
|
op: "Failure",
|
|
6464
6538
|
prop: "cause",
|
|
6465
6539
|
eval(fiber) {
|
|
@@ -6484,7 +6558,7 @@ var yieldNowWith = /* @__PURE__ */ makePrimitive({
|
|
|
6484
6558
|
}
|
|
6485
6559
|
});
|
|
6486
6560
|
var yieldNow2 = /* @__PURE__ */ yieldNowWith(0);
|
|
6487
|
-
var void_2 = /* @__PURE__ */
|
|
6561
|
+
var void_2 = /* @__PURE__ */ succeed2(void 0);
|
|
6488
6562
|
var withMicroFiber = /* @__PURE__ */ makePrimitive({
|
|
6489
6563
|
op: "WithMicroFiber",
|
|
6490
6564
|
eval(fiber) {
|
|
@@ -6505,8 +6579,8 @@ var OnSuccessProto = /* @__PURE__ */ makePrimitiveProto({
|
|
|
6505
6579
|
}
|
|
6506
6580
|
});
|
|
6507
6581
|
var isMicroExit = (u) => hasProperty(u, MicroExitTypeId);
|
|
6508
|
-
var exitSucceed2 =
|
|
6509
|
-
var exitFailCause2 =
|
|
6582
|
+
var exitSucceed2 = succeed2;
|
|
6583
|
+
var exitFailCause2 = failCause2;
|
|
6510
6584
|
var exitInterrupt2 = /* @__PURE__ */ exitFailCause2(/* @__PURE__ */ causeInterrupt());
|
|
6511
6585
|
var exitDie2 = (defect) => exitFailCause2(causeDie(defect));
|
|
6512
6586
|
var exitVoid2 = /* @__PURE__ */ exitSucceed2(void 0);
|
|
@@ -6588,8 +6662,8 @@ var OnSuccessAndFailureProto = /* @__PURE__ */ makePrimitiveProto({
|
|
|
6588
6662
|
}
|
|
6589
6663
|
});
|
|
6590
6664
|
var onExit2 = /* @__PURE__ */ dual(2, (self, f) => uninterruptibleMask2((restore) => matchCauseEffect2(restore(self), {
|
|
6591
|
-
onFailure: (cause2) => flatMap8(f(exitFailCause2(cause2)), () =>
|
|
6592
|
-
onSuccess: (a) => flatMap8(f(exitSucceed2(a)), () =>
|
|
6665
|
+
onFailure: (cause2) => flatMap8(f(exitFailCause2(cause2)), () => failCause2(cause2)),
|
|
6666
|
+
onSuccess: (a) => flatMap8(f(exitSucceed2(a)), () => succeed2(a))
|
|
6593
6667
|
})));
|
|
6594
6668
|
var setInterruptible = /* @__PURE__ */ makePrimitive({
|
|
6595
6669
|
op: "SetInterruptible",
|
|
@@ -6619,10 +6693,10 @@ var runFork = (effect3, options3) => {
|
|
|
6619
6693
|
return fiber;
|
|
6620
6694
|
};
|
|
6621
6695
|
|
|
6622
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6696
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Readable.js
|
|
6623
6697
|
var TypeId10 = /* @__PURE__ */ Symbol.for("effect/Readable");
|
|
6624
6698
|
|
|
6625
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6699
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/ref.js
|
|
6626
6700
|
var RefTypeId = /* @__PURE__ */ Symbol.for("effect/Ref");
|
|
6627
6701
|
var refVariance = {
|
|
6628
6702
|
/* c8 ignore next */
|
|
@@ -6653,21 +6727,21 @@ var RefImpl = class extends Class2 {
|
|
|
6653
6727
|
}
|
|
6654
6728
|
};
|
|
6655
6729
|
var unsafeMake4 = (value2) => new RefImpl(make11(value2));
|
|
6656
|
-
var
|
|
6730
|
+
var make23 = (value2) => sync(() => unsafeMake4(value2));
|
|
6657
6731
|
var get10 = (self) => self.get;
|
|
6658
6732
|
var set4 = /* @__PURE__ */ dual(2, (self, value2) => self.modify(() => [void 0, value2]));
|
|
6659
6733
|
var getAndSet = /* @__PURE__ */ dual(2, (self, value2) => self.modify((a) => [a, value2]));
|
|
6660
6734
|
var modify3 = /* @__PURE__ */ dual(2, (self, f) => self.modify(f));
|
|
6661
6735
|
var update2 = /* @__PURE__ */ dual(2, (self, f) => self.modify((a) => [void 0, f(a)]));
|
|
6662
6736
|
|
|
6663
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6664
|
-
var
|
|
6737
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Ref.js
|
|
6738
|
+
var make24 = make23;
|
|
6665
6739
|
var get11 = get10;
|
|
6666
6740
|
var getAndSet2 = getAndSet;
|
|
6667
6741
|
var modify4 = modify3;
|
|
6668
6742
|
var update3 = update2;
|
|
6669
6743
|
|
|
6670
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6744
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Scheduler.js
|
|
6671
6745
|
var PriorityBuckets = class {
|
|
6672
6746
|
/**
|
|
6673
6747
|
* @since 2.0.0
|
|
@@ -6797,10 +6871,10 @@ var SyncScheduler = class {
|
|
|
6797
6871
|
};
|
|
6798
6872
|
var currentScheduler = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentScheduler"), () => fiberRefUnsafeMake(defaultScheduler));
|
|
6799
6873
|
|
|
6800
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6874
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/completedRequestMap.js
|
|
6801
6875
|
var currentRequestMap = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentRequestMap"), () => fiberRefUnsafeMake(/* @__PURE__ */ new Map()));
|
|
6802
6876
|
|
|
6803
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6877
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/concurrency.js
|
|
6804
6878
|
var match7 = (concurrency, sequential4, unbounded4, bounded4) => {
|
|
6805
6879
|
switch (concurrency) {
|
|
6806
6880
|
case void 0:
|
|
@@ -6814,13 +6888,13 @@ var match7 = (concurrency, sequential4, unbounded4, bounded4) => {
|
|
|
6814
6888
|
}
|
|
6815
6889
|
};
|
|
6816
6890
|
|
|
6817
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6891
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Clock.js
|
|
6818
6892
|
var sleep2 = sleep;
|
|
6819
6893
|
var currentTimeMillis2 = currentTimeMillis;
|
|
6820
6894
|
var Clock = clockTag;
|
|
6821
6895
|
|
|
6822
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6823
|
-
var
|
|
6896
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/logSpan.js
|
|
6897
|
+
var make25 = (label, startTime) => ({
|
|
6824
6898
|
label,
|
|
6825
6899
|
startTime
|
|
6826
6900
|
});
|
|
@@ -6830,10 +6904,10 @@ var render = (now) => (self) => {
|
|
|
6830
6904
|
return `${label}=${now - self.startTime}ms`;
|
|
6831
6905
|
};
|
|
6832
6906
|
|
|
6833
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6834
|
-
var
|
|
6907
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/LogSpan.js
|
|
6908
|
+
var make26 = make25;
|
|
6835
6909
|
|
|
6836
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6910
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/metric/label.js
|
|
6837
6911
|
var MetricLabelSymbolKey = "effect/MetricLabel";
|
|
6838
6912
|
var MetricLabelTypeId = /* @__PURE__ */ Symbol.for(MetricLabelSymbolKey);
|
|
6839
6913
|
var MetricLabelImpl = class {
|
|
@@ -6856,12 +6930,12 @@ var MetricLabelImpl = class {
|
|
|
6856
6930
|
return pipeArguments(this, arguments);
|
|
6857
6931
|
}
|
|
6858
6932
|
};
|
|
6859
|
-
var
|
|
6933
|
+
var make27 = (key, value2) => {
|
|
6860
6934
|
return new MetricLabelImpl(key, value2);
|
|
6861
6935
|
};
|
|
6862
6936
|
var isMetricLabel = (u) => hasProperty(u, MetricLabelTypeId);
|
|
6863
6937
|
|
|
6864
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6938
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/core-effect.js
|
|
6865
6939
|
var asSome = (self) => map11(self, some2);
|
|
6866
6940
|
var try_ = (arg) => {
|
|
6867
6941
|
let evaluate2;
|
|
@@ -6915,27 +6989,27 @@ var logWithLevel = (level) => (...message) => {
|
|
|
6915
6989
|
});
|
|
6916
6990
|
};
|
|
6917
6991
|
var logInfo = /* @__PURE__ */ logWithLevel(Info);
|
|
6918
|
-
var withLogSpan = /* @__PURE__ */ dual(2, (effect3, label) => flatMap7(currentTimeMillis2, (now) => fiberRefLocallyWith(effect3, currentLogSpan, prepend3(
|
|
6992
|
+
var withLogSpan = /* @__PURE__ */ dual(2, (effect3, label) => flatMap7(currentTimeMillis2, (now) => fiberRefLocallyWith(effect3, currentLogSpan, prepend3(make26(label, now)))));
|
|
6919
6993
|
var mapErrorCause = /* @__PURE__ */ dual(2, (self, f) => matchCauseEffect(self, {
|
|
6920
6994
|
onFailure: (c) => failCauseSync(() => f(c)),
|
|
6921
6995
|
onSuccess: succeed
|
|
6922
6996
|
}));
|
|
6923
6997
|
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))))))));
|
|
6924
6998
|
var negate = (self) => map11(self, (b) => !b);
|
|
6925
|
-
var once = (self) => map11(
|
|
6999
|
+
var once = (self) => map11(make24(true), (ref) => asVoid(whenEffect(self, getAndSet2(ref, false))));
|
|
6926
7000
|
var patchFiberRefs = (patch11) => updateFiberRefs((fiberId2, fiberRefs3) => pipe(patch11, patch6(fiberId2, fiberRefs3)));
|
|
6927
7001
|
var promise = (evaluate2) => evaluate2.length >= 1 ? async_((resolve, signal) => {
|
|
6928
7002
|
try {
|
|
6929
|
-
evaluate2(signal).then((a) => resolve(
|
|
7003
|
+
evaluate2(signal).then((a) => resolve(succeed(a)), (e) => resolve(die2(e)));
|
|
6930
7004
|
} catch (e) {
|
|
6931
|
-
resolve(
|
|
7005
|
+
resolve(die2(e));
|
|
6932
7006
|
}
|
|
6933
7007
|
}) : async_((resolve) => {
|
|
6934
7008
|
try {
|
|
6935
7009
|
;
|
|
6936
|
-
evaluate2().then((a) => resolve(
|
|
7010
|
+
evaluate2().then((a) => resolve(succeed(a)), (e) => resolve(die2(e)));
|
|
6937
7011
|
} catch (e) {
|
|
6938
|
-
resolve(
|
|
7012
|
+
resolve(die2(e));
|
|
6939
7013
|
}
|
|
6940
7014
|
});
|
|
6941
7015
|
var provideService = /* @__PURE__ */ dual(3, (self, tag2, service2) => contextWithEffect((env) => provideContext(self, add4(env, tag2, service2))));
|
|
@@ -6960,7 +7034,7 @@ var tryPromise = (arg) => {
|
|
|
6960
7034
|
if (evaluate2.length >= 1) {
|
|
6961
7035
|
return async_((resolve, signal) => {
|
|
6962
7036
|
try {
|
|
6963
|
-
evaluate2(signal).then((a) => resolve(
|
|
7037
|
+
evaluate2(signal).then((a) => resolve(succeed(a)), (e) => resolve(fail13(e)));
|
|
6964
7038
|
} catch (e) {
|
|
6965
7039
|
resolve(fail13(e));
|
|
6966
7040
|
}
|
|
@@ -6968,7 +7042,7 @@ var tryPromise = (arg) => {
|
|
|
6968
7042
|
}
|
|
6969
7043
|
return async_((resolve) => {
|
|
6970
7044
|
try {
|
|
6971
|
-
evaluate2().then((a) => resolve(
|
|
7045
|
+
evaluate2().then((a) => resolve(succeed(a)), (e) => resolve(fail13(e)));
|
|
6972
7046
|
} catch (e) {
|
|
6973
7047
|
resolve(fail13(e));
|
|
6974
7048
|
}
|
|
@@ -7010,7 +7084,7 @@ var unsafeMakeSpan = (fiber, name, options3) => {
|
|
|
7010
7084
|
const annotationsFromEnv = get9(fiberRefs3, currentTracerSpanAnnotations);
|
|
7011
7085
|
const linksFromEnv = get9(fiberRefs3, currentTracerSpanLinks);
|
|
7012
7086
|
const links = linksFromEnv._tag === "Some" ? options3.links !== void 0 ? [...toReadonlyArray(linksFromEnv.value), ...options3.links ?? []] : toReadonlyArray(linksFromEnv.value) : options3.links ?? empty();
|
|
7013
|
-
span2 = tracer2.span(name, parent, options3.context ?? empty8(), links, timingEnabled ? clock3.unsafeCurrentTimeNanos() : bigint02, options3.kind ?? "internal");
|
|
7087
|
+
span2 = tracer2.span(name, parent, options3.context ?? empty8(), links, timingEnabled ? clock3.unsafeCurrentTimeNanos() : bigint02, options3.kind ?? "internal", options3);
|
|
7014
7088
|
if (annotationsFromEnv._tag === "Some") {
|
|
7015
7089
|
forEach3(annotationsFromEnv.value, (value2, key) => span2.attribute(key, value2));
|
|
7016
7090
|
}
|
|
@@ -7044,22 +7118,21 @@ var useSpan = (name, ...args2) => {
|
|
|
7044
7118
|
};
|
|
7045
7119
|
var withParentSpan = /* @__PURE__ */ dual(2, (self, span2) => provideService(self, spanTag, span2));
|
|
7046
7120
|
|
|
7047
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7121
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Exit.js
|
|
7048
7122
|
var isFailure = exitIsFailure;
|
|
7049
7123
|
var isSuccess = exitIsSuccess;
|
|
7050
|
-
var isInterrupted2 = exitIsInterrupted;
|
|
7051
7124
|
var all2 = exitCollectAll;
|
|
7052
7125
|
var die3 = exitDie;
|
|
7053
7126
|
var fail3 = exitFail;
|
|
7054
|
-
var
|
|
7127
|
+
var failCause3 = exitFailCause;
|
|
7055
7128
|
var map13 = exitMap;
|
|
7056
7129
|
var match9 = exitMatch;
|
|
7057
|
-
var
|
|
7130
|
+
var succeed3 = exitSucceed;
|
|
7058
7131
|
var void_3 = exitVoid;
|
|
7059
7132
|
var zip3 = exitZip;
|
|
7060
7133
|
var zipRight2 = exitZipRight;
|
|
7061
7134
|
|
|
7062
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7135
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/fiberMessage.js
|
|
7063
7136
|
var OP_INTERRUPT_SIGNAL = "InterruptSignal";
|
|
7064
7137
|
var OP_STATEFUL = "Stateful";
|
|
7065
7138
|
var OP_RESUME = "Resume";
|
|
@@ -7080,7 +7153,7 @@ var yieldNow3 = () => ({
|
|
|
7080
7153
|
_tag: OP_YIELD_NOW
|
|
7081
7154
|
});
|
|
7082
7155
|
|
|
7083
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7156
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/fiberScope.js
|
|
7084
7157
|
var FiberScopeSymbolKey = "effect/FiberScope";
|
|
7085
7158
|
var FiberScopeTypeId = /* @__PURE__ */ Symbol.for(FiberScopeSymbolKey);
|
|
7086
7159
|
var Global = class {
|
|
@@ -7116,7 +7189,7 @@ var unsafeMake5 = (fiber) => {
|
|
|
7116
7189
|
};
|
|
7117
7190
|
var globalScope = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberScope/Global"), () => new Global());
|
|
7118
7191
|
|
|
7119
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7192
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/fiber.js
|
|
7120
7193
|
var FiberSymbolKey = "effect/Fiber";
|
|
7121
7194
|
var FiberTypeId = /* @__PURE__ */ Symbol.for(FiberSymbolKey);
|
|
7122
7195
|
var fiberVariance2 = {
|
|
@@ -7127,14 +7200,14 @@ var fiberVariance2 = {
|
|
|
7127
7200
|
};
|
|
7128
7201
|
var RuntimeFiberSymbolKey = "effect/Fiber";
|
|
7129
7202
|
var RuntimeFiberTypeId = /* @__PURE__ */ Symbol.for(RuntimeFiberSymbolKey);
|
|
7130
|
-
var
|
|
7203
|
+
var _await = (self) => self.await;
|
|
7131
7204
|
var inheritAll = (self) => self.inheritAll;
|
|
7132
7205
|
var join2 = (self) => zipLeft(flatten3(self.await), self.inheritAll);
|
|
7133
7206
|
({
|
|
7134
7207
|
...CommitPrototype});
|
|
7135
7208
|
var currentFiberURI = "effect/FiberCurrent";
|
|
7136
7209
|
|
|
7137
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7210
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/logger.js
|
|
7138
7211
|
var LoggerSymbolKey = "effect/Logger";
|
|
7139
7212
|
var LoggerTypeId = /* @__PURE__ */ Symbol.for(LoggerSymbolKey);
|
|
7140
7213
|
var loggerVariance = {
|
|
@@ -7188,7 +7261,7 @@ var stringLogger = /* @__PURE__ */ makeLogger(/* @__PURE__ */ format3(escapeDoub
|
|
|
7188
7261
|
var hasProcessStdout = typeof process === "object" && process !== null && typeof process.stdout === "object" && process.stdout !== null;
|
|
7189
7262
|
hasProcessStdout && process.stdout.isTTY === true;
|
|
7190
7263
|
|
|
7191
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7264
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/metric/boundaries.js
|
|
7192
7265
|
var MetricBoundariesSymbolKey = "effect/MetricBoundaries";
|
|
7193
7266
|
var MetricBoundariesTypeId = /* @__PURE__ */ Symbol.for(MetricBoundariesSymbolKey);
|
|
7194
7267
|
var MetricBoundariesImpl = class {
|
|
@@ -7216,7 +7289,7 @@ var fromIterable7 = (iterable) => {
|
|
|
7216
7289
|
};
|
|
7217
7290
|
var exponential = (options3) => pipe(makeBy(options3.count - 1, (i) => options3.start * Math.pow(options3.factor, i)), unsafeFromArray, fromIterable7);
|
|
7218
7291
|
|
|
7219
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7292
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/metric/keyType.js
|
|
7220
7293
|
var MetricKeyTypeSymbolKey = "effect/MetricKeyType";
|
|
7221
7294
|
var MetricKeyTypeTypeId = /* @__PURE__ */ Symbol.for(MetricKeyTypeSymbolKey);
|
|
7222
7295
|
var CounterKeyTypeSymbolKey = "effect/MetricKeyType/Counter";
|
|
@@ -7285,7 +7358,7 @@ var isGaugeKey = (u) => hasProperty(u, GaugeKeyTypeTypeId);
|
|
|
7285
7358
|
var isHistogramKey = (u) => hasProperty(u, HistogramKeyTypeTypeId);
|
|
7286
7359
|
var isSummaryKey = (u) => hasProperty(u, SummaryKeyTypeTypeId);
|
|
7287
7360
|
|
|
7288
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7361
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/metric/key.js
|
|
7289
7362
|
var MetricKeySymbolKey = "effect/MetricKey";
|
|
7290
7363
|
var MetricKeyTypeId = /* @__PURE__ */ Symbol.for(MetricKeySymbolKey);
|
|
7291
7364
|
var metricKeyVariance = {
|
|
@@ -7322,7 +7395,7 @@ var counter2 = (name, options3) => new MetricKeyImpl(name, counter(options3), fr
|
|
|
7322
7395
|
var histogram2 = (name, boundaries, description) => new MetricKeyImpl(name, histogram(boundaries), fromNullable(description));
|
|
7323
7396
|
var taggedWithLabels = /* @__PURE__ */ dual(2, (self, extraTags) => extraTags.length === 0 ? self : new MetricKeyImpl(self.name, self.keyType, self.description, union(self.tags, extraTags)));
|
|
7324
7397
|
|
|
7325
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7398
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/MutableHashMap.js
|
|
7326
7399
|
var TypeId11 = /* @__PURE__ */ Symbol.for("effect/MutableHashMap");
|
|
7327
7400
|
var MutableHashMapProto = {
|
|
7328
7401
|
[TypeId11]: TypeId11,
|
|
@@ -7449,7 +7522,7 @@ var removeFromBucket = (self, bucket, key) => {
|
|
|
7449
7522
|
}
|
|
7450
7523
|
};
|
|
7451
7524
|
|
|
7452
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7525
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/metric/state.js
|
|
7453
7526
|
var MetricStateSymbolKey = "effect/MetricState";
|
|
7454
7527
|
var MetricStateTypeId = /* @__PURE__ */ Symbol.for(MetricStateSymbolKey);
|
|
7455
7528
|
var CounterStateSymbolKey = "effect/MetricState/Counter";
|
|
@@ -7584,7 +7657,7 @@ var isGaugeState = (u) => hasProperty(u, GaugeStateTypeId);
|
|
|
7584
7657
|
var isHistogramState = (u) => hasProperty(u, HistogramStateTypeId);
|
|
7585
7658
|
var isSummaryState = (u) => hasProperty(u, SummaryStateTypeId);
|
|
7586
7659
|
|
|
7587
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7660
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/metric/hook.js
|
|
7588
7661
|
var MetricHookSymbolKey = "effect/MetricHook";
|
|
7589
7662
|
var MetricHookTypeId = /* @__PURE__ */ Symbol.for(MetricHookSymbolKey);
|
|
7590
7663
|
var metricHookVariance = {
|
|
@@ -7593,7 +7666,7 @@ var metricHookVariance = {
|
|
|
7593
7666
|
/* c8 ignore next */
|
|
7594
7667
|
_Out: (_) => _
|
|
7595
7668
|
};
|
|
7596
|
-
var
|
|
7669
|
+
var make28 = (options3) => ({
|
|
7597
7670
|
[MetricHookTypeId]: metricHookVariance,
|
|
7598
7671
|
pipe() {
|
|
7599
7672
|
return pipeArguments(this, arguments);
|
|
@@ -7609,7 +7682,7 @@ var counter4 = (key) => {
|
|
|
7609
7682
|
sum3 = sum3 + value2;
|
|
7610
7683
|
}
|
|
7611
7684
|
};
|
|
7612
|
-
return
|
|
7685
|
+
return make28({
|
|
7613
7686
|
get: () => counter3(sum3),
|
|
7614
7687
|
update: update5,
|
|
7615
7688
|
modify: update5
|
|
@@ -7624,7 +7697,7 @@ var frequency3 = (key) => {
|
|
|
7624
7697
|
const slotCount = values3.get(word) ?? 0;
|
|
7625
7698
|
values3.set(word, slotCount + 1);
|
|
7626
7699
|
};
|
|
7627
|
-
return
|
|
7700
|
+
return make28({
|
|
7628
7701
|
get: () => frequency2(values3),
|
|
7629
7702
|
update: update5,
|
|
7630
7703
|
modify: update5
|
|
@@ -7632,7 +7705,7 @@ var frequency3 = (key) => {
|
|
|
7632
7705
|
};
|
|
7633
7706
|
var gauge3 = (_key, startAt) => {
|
|
7634
7707
|
let value2 = startAt;
|
|
7635
|
-
return
|
|
7708
|
+
return make28({
|
|
7636
7709
|
get: () => gauge2(value2),
|
|
7637
7710
|
update: (v) => {
|
|
7638
7711
|
value2 = v;
|
|
@@ -7646,7 +7719,7 @@ var histogram4 = (key) => {
|
|
|
7646
7719
|
const bounds = key.keyType.boundaries.values;
|
|
7647
7720
|
const size11 = bounds.length;
|
|
7648
7721
|
const values3 = new Uint32Array(size11 + 1);
|
|
7649
|
-
const boundaries = new
|
|
7722
|
+
const boundaries = new Float64Array(size11);
|
|
7650
7723
|
let count2 = 0;
|
|
7651
7724
|
let sum3 = 0;
|
|
7652
7725
|
let min3 = Number.MAX_VALUE;
|
|
@@ -7694,7 +7767,7 @@ var histogram4 = (key) => {
|
|
|
7694
7767
|
}
|
|
7695
7768
|
return builder;
|
|
7696
7769
|
};
|
|
7697
|
-
return
|
|
7770
|
+
return make28({
|
|
7698
7771
|
get: () => histogram3({
|
|
7699
7772
|
buckets: getBuckets(),
|
|
7700
7773
|
count: count2,
|
|
@@ -7747,7 +7820,7 @@ var summary3 = (key) => {
|
|
|
7747
7820
|
count2 = count2 + 1;
|
|
7748
7821
|
sum3 = sum3 + value2;
|
|
7749
7822
|
};
|
|
7750
|
-
return
|
|
7823
|
+
return make28({
|
|
7751
7824
|
get: () => summary2({
|
|
7752
7825
|
error,
|
|
7753
7826
|
quantiles: snapshot(Date.now()),
|
|
@@ -7879,7 +7952,7 @@ var resolveQuantile = (error, sampleCount, current, consumed, quantile, rest) =>
|
|
|
7879
7952
|
throw new Error("BUG: MetricHook.resolveQuantiles - please report an issue at https://github.com/Effect-TS/effect/issues");
|
|
7880
7953
|
};
|
|
7881
7954
|
|
|
7882
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7955
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/metric/pair.js
|
|
7883
7956
|
var MetricPairSymbolKey = "effect/MetricPair";
|
|
7884
7957
|
var MetricPairTypeId = /* @__PURE__ */ Symbol.for(MetricPairSymbolKey);
|
|
7885
7958
|
var metricPairVariance = {
|
|
@@ -7897,7 +7970,7 @@ var unsafeMake6 = (metricKey, metricState) => {
|
|
|
7897
7970
|
};
|
|
7898
7971
|
};
|
|
7899
7972
|
|
|
7900
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7973
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/metric/registry.js
|
|
7901
7974
|
var MetricRegistrySymbolKey = "effect/MetricRegistry";
|
|
7902
7975
|
var MetricRegistryTypeId = /* @__PURE__ */ Symbol.for(MetricRegistrySymbolKey);
|
|
7903
7976
|
var MetricRegistryImpl = class {
|
|
@@ -7989,11 +8062,11 @@ var MetricRegistryImpl = class {
|
|
|
7989
8062
|
return value2;
|
|
7990
8063
|
}
|
|
7991
8064
|
};
|
|
7992
|
-
var
|
|
8065
|
+
var make29 = () => {
|
|
7993
8066
|
return new MetricRegistryImpl();
|
|
7994
8067
|
};
|
|
7995
8068
|
|
|
7996
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
8069
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/metric.js
|
|
7997
8070
|
var MetricSymbolKey = "effect/Metric";
|
|
7998
8071
|
var MetricTypeId = /* @__PURE__ */ Symbol.for(MetricSymbolKey);
|
|
7999
8072
|
var metricVariance = {
|
|
@@ -8004,8 +8077,8 @@ var metricVariance = {
|
|
|
8004
8077
|
/* c8 ignore next */
|
|
8005
8078
|
_Out: (_) => _
|
|
8006
8079
|
};
|
|
8007
|
-
var globalMetricRegistry = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Metric/globalMetricRegistry"), () =>
|
|
8008
|
-
var
|
|
8080
|
+
var globalMetricRegistry = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Metric/globalMetricRegistry"), () => make29());
|
|
8081
|
+
var make30 = function(keyType, unsafeUpdate, unsafeValue, unsafeModify) {
|
|
8009
8082
|
const metric = Object.assign((effect3) => tap(effect3, (a) => update4(metric, a)), {
|
|
8010
8083
|
[MetricTypeId]: metricVariance,
|
|
8011
8084
|
keyType,
|
|
@@ -8042,12 +8115,12 @@ var fromMetricKey = (key) => {
|
|
|
8042
8115
|
hookCache.set(extraTags, hook2);
|
|
8043
8116
|
return hook2;
|
|
8044
8117
|
};
|
|
8045
|
-
return
|
|
8118
|
+
return make30(key.keyType, (input, extraTags) => hook(extraTags).update(input), (extraTags) => hook(extraTags).get(), (input, extraTags) => hook(extraTags).modify(input));
|
|
8046
8119
|
};
|
|
8047
8120
|
var histogram5 = (name, boundaries, description) => fromMetricKey(histogram2(name, boundaries, description));
|
|
8048
|
-
var tagged = /* @__PURE__ */ dual(3, (self, key, value2) => taggedWithLabels2(self, [
|
|
8121
|
+
var tagged = /* @__PURE__ */ dual(3, (self, key, value2) => taggedWithLabels2(self, [make27(key, value2)]));
|
|
8049
8122
|
var taggedWithLabels2 = /* @__PURE__ */ dual(2, (self, extraTags) => {
|
|
8050
|
-
return
|
|
8123
|
+
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)));
|
|
8051
8124
|
});
|
|
8052
8125
|
var update4 = /* @__PURE__ */ dual(2, (self, input) => fiberRefGetWith(currentMetricLabels, (tags) => sync(() => self.unsafeUpdate(input, tags))));
|
|
8053
8126
|
({
|
|
@@ -8062,7 +8135,7 @@ var complete = /* @__PURE__ */ dual(2, (self, result) => fiberRefGetWith(current
|
|
|
8062
8135
|
}
|
|
8063
8136
|
})));
|
|
8064
8137
|
|
|
8065
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
8138
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/supervisor.js
|
|
8066
8139
|
var SupervisorSymbolKey = "effect/Supervisor";
|
|
8067
8140
|
var SupervisorTypeId = /* @__PURE__ */ Symbol.for(SupervisorSymbolKey);
|
|
8068
8141
|
var supervisorVariance = {
|
|
@@ -8176,10 +8249,10 @@ var fromEffect = (effect3) => {
|
|
|
8176
8249
|
};
|
|
8177
8250
|
var none7 = /* @__PURE__ */ globalValue("effect/Supervisor/none", () => fromEffect(void_));
|
|
8178
8251
|
|
|
8179
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
8180
|
-
var
|
|
8252
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Differ.js
|
|
8253
|
+
var make32 = make14;
|
|
8181
8254
|
|
|
8182
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
8255
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/supervisor/patch.js
|
|
8183
8256
|
var OP_EMPTY3 = "Empty";
|
|
8184
8257
|
var OP_ADD_SUPERVISOR = "AddSupervisor";
|
|
8185
8258
|
var OP_REMOVE_SUPERVISOR = "RemoveSupervisor";
|
|
@@ -8263,14 +8336,14 @@ var diff7 = (oldValue, newValue) => {
|
|
|
8263
8336
|
})));
|
|
8264
8337
|
return combine8(added, removed);
|
|
8265
8338
|
};
|
|
8266
|
-
var differ2 = /* @__PURE__ */
|
|
8339
|
+
var differ2 = /* @__PURE__ */ make32({
|
|
8267
8340
|
empty: empty22,
|
|
8268
8341
|
patch: patch8,
|
|
8269
8342
|
combine: combine8,
|
|
8270
8343
|
diff: diff7
|
|
8271
8344
|
});
|
|
8272
8345
|
|
|
8273
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
8346
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/fiberRuntime.js
|
|
8274
8347
|
var fiberStarted = /* @__PURE__ */ counter5("effect_fiber_started", {
|
|
8275
8348
|
incremental: true
|
|
8276
8349
|
});
|
|
@@ -8430,7 +8503,7 @@ var FiberRuntime = class extends Class2 {
|
|
|
8430
8503
|
*/
|
|
8431
8504
|
get runtimeFlags() {
|
|
8432
8505
|
return this.ask((state, status2) => {
|
|
8433
|
-
if (
|
|
8506
|
+
if (isDone2(status2)) {
|
|
8434
8507
|
return state.currentRuntimeFlags;
|
|
8435
8508
|
}
|
|
8436
8509
|
return status2.runtimeFlags;
|
|
@@ -9358,7 +9431,7 @@ var tracerLogger = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effec
|
|
|
9358
9431
|
renderErrorCause: true
|
|
9359
9432
|
});
|
|
9360
9433
|
}
|
|
9361
|
-
span2.value.event(toStringUnknown(Array.isArray(message) ? message[0] : message), clockService.unsafeCurrentTimeNanos(), attributes);
|
|
9434
|
+
span2.value.event(toStringUnknown(Array.isArray(message) && message.length === 1 ? message[0] : message), clockService.unsafeCurrentTimeNanos(), attributes);
|
|
9362
9435
|
}));
|
|
9363
9436
|
var currentLoggers = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentLoggers"), () => fiberRefUnsafeMakeHashSet(make7(defaultLogger, tracerLogger)));
|
|
9364
9437
|
var annotateLogsScoped = function() {
|
|
@@ -9919,20 +9992,20 @@ var invokeWithInterrupt = (self, entries2, onInterrupt3) => fiberIdWith((id2) =>
|
|
|
9919
9992
|
return forEachSequentialDiscard(residual, (entry) => complete(entry.request, exitInterrupt(id2)));
|
|
9920
9993
|
})));
|
|
9921
9994
|
|
|
9922
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
9995
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Cause.js
|
|
9923
9996
|
var fail4 = fail;
|
|
9924
9997
|
var die4 = die;
|
|
9925
9998
|
var interrupt3 = interrupt;
|
|
9926
9999
|
var isFailType2 = isFailType;
|
|
9927
10000
|
var isDieType2 = isDieType;
|
|
9928
|
-
var
|
|
10001
|
+
var isInterrupted2 = isInterrupted;
|
|
9929
10002
|
var interruptors2 = interruptors;
|
|
9930
10003
|
var failureOrCause2 = failureOrCause;
|
|
9931
10004
|
var map14 = map9;
|
|
9932
10005
|
var squash = causeSquash;
|
|
9933
10006
|
var pretty2 = pretty;
|
|
9934
10007
|
|
|
9935
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10008
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/schedule/interval.js
|
|
9936
10009
|
var IntervalSymbolKey = "effect/ScheduleInterval";
|
|
9937
10010
|
var IntervalTypeId = /* @__PURE__ */ Symbol.for(IntervalSymbolKey);
|
|
9938
10011
|
var empty24 = {
|
|
@@ -9940,7 +10013,7 @@ var empty24 = {
|
|
|
9940
10013
|
startMillis: 0,
|
|
9941
10014
|
endMillis: 0
|
|
9942
10015
|
};
|
|
9943
|
-
var
|
|
10016
|
+
var make33 = (startMillis, endMillis) => {
|
|
9944
10017
|
if (startMillis > endMillis) {
|
|
9945
10018
|
return empty24;
|
|
9946
10019
|
}
|
|
@@ -9965,23 +10038,23 @@ var isEmpty6 = (self) => {
|
|
|
9965
10038
|
var intersect = /* @__PURE__ */ dual(2, (self, that) => {
|
|
9966
10039
|
const start3 = Math.max(self.startMillis, that.startMillis);
|
|
9967
10040
|
const end3 = Math.min(self.endMillis, that.endMillis);
|
|
9968
|
-
return
|
|
10041
|
+
return make33(start3, end3);
|
|
9969
10042
|
});
|
|
9970
10043
|
var after = (startMilliseconds) => {
|
|
9971
|
-
return
|
|
10044
|
+
return make33(startMilliseconds, Number.POSITIVE_INFINITY);
|
|
9972
10045
|
};
|
|
9973
10046
|
|
|
9974
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10047
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/ScheduleInterval.js
|
|
9975
10048
|
var empty25 = empty24;
|
|
9976
10049
|
var lessThan3 = lessThan2;
|
|
9977
10050
|
var isEmpty7 = isEmpty6;
|
|
9978
10051
|
var intersect2 = intersect;
|
|
9979
10052
|
var after2 = after;
|
|
9980
10053
|
|
|
9981
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10054
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/schedule/intervals.js
|
|
9982
10055
|
var IntervalsSymbolKey = "effect/ScheduleIntervals";
|
|
9983
10056
|
var IntervalsTypeId = /* @__PURE__ */ Symbol.for(IntervalsSymbolKey);
|
|
9984
|
-
var
|
|
10057
|
+
var make35 = (intervals) => {
|
|
9985
10058
|
return {
|
|
9986
10059
|
[IntervalsTypeId]: IntervalsTypeId,
|
|
9987
10060
|
intervals
|
|
@@ -10002,7 +10075,7 @@ var intersectLoop = (_left, _right, _acc) => {
|
|
|
10002
10075
|
}
|
|
10003
10076
|
acc = intervals;
|
|
10004
10077
|
}
|
|
10005
|
-
return
|
|
10078
|
+
return make35(reverse2(acc));
|
|
10006
10079
|
};
|
|
10007
10080
|
var start = (self) => {
|
|
10008
10081
|
return pipe(self.intervals, head2, getOrElse(() => empty25)).startMillis;
|
|
@@ -10015,15 +10088,15 @@ var isNonEmpty3 = (self) => {
|
|
|
10015
10088
|
return isNonEmpty(self.intervals);
|
|
10016
10089
|
};
|
|
10017
10090
|
|
|
10018
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10019
|
-
var
|
|
10091
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/ScheduleIntervals.js
|
|
10092
|
+
var make36 = make35;
|
|
10020
10093
|
var intersect4 = intersect3;
|
|
10021
10094
|
var start2 = start;
|
|
10022
10095
|
var end2 = end;
|
|
10023
10096
|
var lessThan5 = lessThan4;
|
|
10024
10097
|
var isNonEmpty4 = isNonEmpty3;
|
|
10025
10098
|
|
|
10026
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10099
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/schedule/decision.js
|
|
10027
10100
|
var OP_CONTINUE = "Continue";
|
|
10028
10101
|
var OP_DONE2 = "Done";
|
|
10029
10102
|
var _continue = (intervals) => {
|
|
@@ -10035,7 +10108,7 @@ var _continue = (intervals) => {
|
|
|
10035
10108
|
var continueWith = (interval) => {
|
|
10036
10109
|
return {
|
|
10037
10110
|
_tag: OP_CONTINUE,
|
|
10038
|
-
intervals:
|
|
10111
|
+
intervals: make36(of2(interval))
|
|
10039
10112
|
};
|
|
10040
10113
|
};
|
|
10041
10114
|
var done4 = {
|
|
@@ -10044,26 +10117,26 @@ var done4 = {
|
|
|
10044
10117
|
var isContinue = (self) => {
|
|
10045
10118
|
return self._tag === OP_CONTINUE;
|
|
10046
10119
|
};
|
|
10047
|
-
var
|
|
10120
|
+
var isDone3 = (self) => {
|
|
10048
10121
|
return self._tag === OP_DONE2;
|
|
10049
10122
|
};
|
|
10050
10123
|
|
|
10051
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10124
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/ScheduleDecision.js
|
|
10052
10125
|
var _continue2 = _continue;
|
|
10053
10126
|
var continueWith2 = continueWith;
|
|
10054
10127
|
var done5 = done4;
|
|
10055
10128
|
var isContinue2 = isContinue;
|
|
10056
|
-
var
|
|
10129
|
+
var isDone4 = isDone3;
|
|
10057
10130
|
|
|
10058
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10131
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Scope.js
|
|
10059
10132
|
var addFinalizer2 = scopeAddFinalizer;
|
|
10060
10133
|
var addFinalizerExit = scopeAddFinalizerExit;
|
|
10061
10134
|
var close = scopeClose;
|
|
10062
10135
|
var extend2 = scopeExtend;
|
|
10063
10136
|
var fork = scopeFork;
|
|
10064
|
-
var
|
|
10137
|
+
var make37 = scopeMake;
|
|
10065
10138
|
|
|
10066
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10139
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/effect/circular.js
|
|
10067
10140
|
var Semaphore = class {
|
|
10068
10141
|
permits;
|
|
10069
10142
|
waiters = /* @__PURE__ */ new Set();
|
|
@@ -10092,7 +10165,7 @@ var Semaphore = class {
|
|
|
10092
10165
|
this.taken += n;
|
|
10093
10166
|
return resume2(succeed(n));
|
|
10094
10167
|
});
|
|
10095
|
-
|
|
10168
|
+
updateTakenUnsafe(fiber, f) {
|
|
10096
10169
|
this.taken = f(this.taken);
|
|
10097
10170
|
if (this.waiters.size > 0) {
|
|
10098
10171
|
fiber.getFiberRef(currentScheduler).scheduleTask(() => {
|
|
@@ -10105,7 +10178,17 @@ var Semaphore = class {
|
|
|
10105
10178
|
}, fiber.getFiberRef(currentSchedulingPriority));
|
|
10106
10179
|
}
|
|
10107
10180
|
return succeed(this.free);
|
|
10108
|
-
}
|
|
10181
|
+
}
|
|
10182
|
+
updateTaken(f) {
|
|
10183
|
+
return withFiberRuntime((fiber) => this.updateTakenUnsafe(fiber, f));
|
|
10184
|
+
}
|
|
10185
|
+
resize = (permits) => asVoid(withFiberRuntime((fiber) => {
|
|
10186
|
+
this.permits = permits;
|
|
10187
|
+
if (this.free < 0) {
|
|
10188
|
+
return void_;
|
|
10189
|
+
}
|
|
10190
|
+
return this.updateTakenUnsafe(fiber, (taken) => taken);
|
|
10191
|
+
}));
|
|
10109
10192
|
release = (n) => this.updateTaken((taken) => taken - n);
|
|
10110
10193
|
releaseAll = /* @__PURE__ */ this.updateTaken((_) => 0);
|
|
10111
10194
|
withPermits = (n) => (self) => uninterruptibleMask((restore) => flatMap7(restore(this.take(n)), (permits) => ensuring(restore(self), this.release(permits))));
|
|
@@ -10239,23 +10322,22 @@ var unsafeMakeSynchronized = (value2) => {
|
|
|
10239
10322
|
return new SynchronizedImpl(ref, sem.withPermits(1));
|
|
10240
10323
|
};
|
|
10241
10324
|
|
|
10242
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10325
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/managedRuntime/circular.js
|
|
10243
10326
|
var TypeId13 = /* @__PURE__ */ Symbol.for("effect/ManagedRuntime");
|
|
10244
10327
|
|
|
10245
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10328
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/opCodes/layer.js
|
|
10246
10329
|
var OP_FRESH = "Fresh";
|
|
10247
10330
|
var OP_FROM_EFFECT = "FromEffect";
|
|
10248
|
-
var
|
|
10249
|
-
var OP_ZIP_WITH2 = "ZipWith";
|
|
10331
|
+
var OP_MERGE_ALL = "MergeAll";
|
|
10250
10332
|
|
|
10251
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10252
|
-
var
|
|
10333
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Fiber.js
|
|
10334
|
+
var _await2 = _await;
|
|
10253
10335
|
var inheritAll2 = inheritAll;
|
|
10254
10336
|
var interrupt4 = interruptFiber;
|
|
10255
10337
|
var interruptAs = interruptAsFiber;
|
|
10256
10338
|
var join3 = join2;
|
|
10257
10339
|
|
|
10258
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10340
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/runtime.js
|
|
10259
10341
|
var makeDual = (f) => function() {
|
|
10260
10342
|
if (arguments.length === 1) {
|
|
10261
10343
|
const runtime4 = arguments[0];
|
|
@@ -10436,10 +10518,10 @@ var RuntimeImpl = class {
|
|
|
10436
10518
|
return pipeArguments(this, arguments);
|
|
10437
10519
|
}
|
|
10438
10520
|
};
|
|
10439
|
-
var
|
|
10521
|
+
var make38 = (options3) => new RuntimeImpl(options3.context, options3.runtimeFlags, options3.fiberRefs);
|
|
10440
10522
|
var runtime2 = () => withFiberRuntime((state, status2) => succeed(new RuntimeImpl(state.getFiberRef(currentContext), status2.runtimeFlags, state.getFiberRefs())));
|
|
10441
10523
|
var defaultRuntimeFlags = /* @__PURE__ */ make16(Interruption, CooperativeYielding, RuntimeMetrics);
|
|
10442
|
-
var defaultRuntime = /* @__PURE__ */
|
|
10524
|
+
var defaultRuntime = /* @__PURE__ */ make38({
|
|
10443
10525
|
context: /* @__PURE__ */ empty8(),
|
|
10444
10526
|
runtimeFlags: defaultRuntimeFlags,
|
|
10445
10527
|
fiberRefs: /* @__PURE__ */ empty17()
|
|
@@ -10448,10 +10530,10 @@ var unsafeForkEffect = /* @__PURE__ */ unsafeFork3(defaultRuntime);
|
|
|
10448
10530
|
var unsafeRunPromiseEffect = /* @__PURE__ */ unsafeRunPromise(defaultRuntime);
|
|
10449
10531
|
var unsafeRunSyncEffect = /* @__PURE__ */ unsafeRunSync(defaultRuntime);
|
|
10450
10532
|
|
|
10451
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10533
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/synchronizedRef.js
|
|
10452
10534
|
var modifyEffect = /* @__PURE__ */ dual(2, (self, f) => self.modifyEffect(f));
|
|
10453
10535
|
|
|
10454
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10536
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/layer.js
|
|
10455
10537
|
var LayerSymbolKey = "effect/Layer";
|
|
10456
10538
|
var LayerTypeId = /* @__PURE__ */ Symbol.for(LayerSymbolKey);
|
|
10457
10539
|
var layerVariance = {
|
|
@@ -10500,7 +10582,7 @@ var MemoMapImpl = class {
|
|
|
10500
10582
|
})));
|
|
10501
10583
|
return succeed([cached4, map22]);
|
|
10502
10584
|
}
|
|
10503
|
-
return pipe(
|
|
10585
|
+
return pipe(make23(0), flatMap7((observers) => pipe(deferredMake(), flatMap7((deferred) => pipe(make23(() => void_), map11((finalizerRef) => {
|
|
10504
10586
|
const resource = uninterruptibleMask((restore) => pipe(scopeMake(), flatMap7((innerScope) => pipe(restore(flatMap7(makeBuilder(layer3, innerScope, true), (f) => diffFiberRefs(f(this)))), exit, flatMap7((exit4) => {
|
|
10505
10587
|
switch (exit4._tag) {
|
|
10506
10588
|
case OP_FAILURE: {
|
|
@@ -10558,9 +10640,25 @@ var makeBuilder = (self, scope4, inMemoMap = false) => {
|
|
|
10558
10640
|
return sync(() => (memoMap) => pipe(memoMap.getOrElseMemoize(op.first, scope4), zipWith2(memoMap.getOrElseMemoize(op.second, scope4), op.zipK)));
|
|
10559
10641
|
}
|
|
10560
10642
|
case "ZipWith": {
|
|
10561
|
-
return
|
|
10562
|
-
|
|
10563
|
-
|
|
10643
|
+
return gen(function* () {
|
|
10644
|
+
const parallelScope = yield* scopeFork(scope4, parallel2);
|
|
10645
|
+
const firstScope = yield* scopeFork(parallelScope, sequential2);
|
|
10646
|
+
const secondScope = yield* scopeFork(parallelScope, sequential2);
|
|
10647
|
+
return (memoMap) => pipe(memoMap.getOrElseMemoize(op.first, firstScope), zipWithOptions(memoMap.getOrElseMemoize(op.second, secondScope), op.zipK, {
|
|
10648
|
+
concurrent: true
|
|
10649
|
+
}));
|
|
10650
|
+
});
|
|
10651
|
+
}
|
|
10652
|
+
case "MergeAll": {
|
|
10653
|
+
const layers = op.layers;
|
|
10654
|
+
return map11(scopeFork(scope4, parallel2), (parallelScope) => (memoMap) => {
|
|
10655
|
+
const contexts = new Array(layers.length);
|
|
10656
|
+
return map11(forEachConcurrentDiscard(layers, fnUntraced(function* (layer3, i) {
|
|
10657
|
+
const scope5 = yield* scopeFork(parallelScope, sequential2);
|
|
10658
|
+
const context5 = yield* memoMap.getOrElseMemoize(layer3, scope5);
|
|
10659
|
+
contexts[i] = context5;
|
|
10660
|
+
}), false, false), () => mergeAll2(...contexts));
|
|
10661
|
+
});
|
|
10564
10662
|
}
|
|
10565
10663
|
}
|
|
10566
10664
|
};
|
|
@@ -10576,28 +10674,12 @@ function fromEffectContext(effect3) {
|
|
|
10576
10674
|
fromEffect8.effect = effect3;
|
|
10577
10675
|
return fromEffect8;
|
|
10578
10676
|
}
|
|
10579
|
-
var
|
|
10580
|
-
|
|
10581
|
-
|
|
10582
|
-
|
|
10583
|
-
|
|
10584
|
-
|
|
10585
|
-
return final;
|
|
10586
|
-
};
|
|
10587
|
-
var suspend3 = (evaluate2) => {
|
|
10588
|
-
const suspend8 = Object.create(proto3);
|
|
10589
|
-
suspend8._op_layer = OP_SUSPEND;
|
|
10590
|
-
suspend8.evaluate = evaluate2;
|
|
10591
|
-
return suspend8;
|
|
10592
|
-
};
|
|
10593
|
-
var zipWith3 = /* @__PURE__ */ dual(3, (self, that, f) => suspend3(() => {
|
|
10594
|
-
const zipWith7 = Object.create(proto3);
|
|
10595
|
-
zipWith7._op_layer = OP_ZIP_WITH2;
|
|
10596
|
-
zipWith7.first = self;
|
|
10597
|
-
zipWith7.second = that;
|
|
10598
|
-
zipWith7.zipK = f;
|
|
10599
|
-
return zipWith7;
|
|
10600
|
-
}));
|
|
10677
|
+
var mergeAll3 = (...layers) => {
|
|
10678
|
+
const mergeAll7 = Object.create(proto3);
|
|
10679
|
+
mergeAll7._op_layer = OP_MERGE_ALL;
|
|
10680
|
+
mergeAll7.layers = layers;
|
|
10681
|
+
return mergeAll7;
|
|
10682
|
+
};
|
|
10601
10683
|
var provideSomeLayer = /* @__PURE__ */ dual(2, (self, layer3) => scopedWith((scope4) => flatMap7(buildWithScope(layer3, scope4), (context5) => provideSomeContext(self, context5))));
|
|
10602
10684
|
var provideSomeRuntime = /* @__PURE__ */ dual(2, (self, rt) => {
|
|
10603
10685
|
const patchRefs = diff6(defaultRuntime.fiberRefs, rt.fiberRefs);
|
|
@@ -10621,7 +10703,7 @@ var provideSomeRuntime = /* @__PURE__ */ dual(2, (self, rt) => {
|
|
|
10621
10703
|
});
|
|
10622
10704
|
var effect_provide = /* @__PURE__ */ dual(2, (self, source) => {
|
|
10623
10705
|
if (Array.isArray(source)) {
|
|
10624
|
-
return provideSomeLayer(self,
|
|
10706
|
+
return provideSomeLayer(self, mergeAll3(...source));
|
|
10625
10707
|
} else if (isLayer(source)) {
|
|
10626
10708
|
return provideSomeLayer(self, source);
|
|
10627
10709
|
} else if (isContext2(source)) {
|
|
@@ -10633,7 +10715,7 @@ var effect_provide = /* @__PURE__ */ dual(2, (self, source) => {
|
|
|
10633
10715
|
}
|
|
10634
10716
|
});
|
|
10635
10717
|
|
|
10636
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10718
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Data.js
|
|
10637
10719
|
var struct2 = struct;
|
|
10638
10720
|
var _case = () => (args2) => args2 === void 0 ? Object.create(StructuralPrototype) : struct2(args2);
|
|
10639
10721
|
var tagged2 = (tag2) => (args2) => {
|
|
@@ -10678,7 +10760,7 @@ var TaggedError = (tag2) => {
|
|
|
10678
10760
|
return O.BaseEffectError;
|
|
10679
10761
|
};
|
|
10680
10762
|
|
|
10681
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10763
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/schedule.js
|
|
10682
10764
|
var ScheduleSymbolKey = "effect/Schedule";
|
|
10683
10765
|
var ScheduleTypeId = /* @__PURE__ */ Symbol.for(ScheduleSymbolKey);
|
|
10684
10766
|
var isSchedule = (u) => hasProperty(u, ScheduleTypeId);
|
|
@@ -10771,7 +10853,7 @@ var ScheduleDriverImpl = class {
|
|
|
10771
10853
|
next(input) {
|
|
10772
10854
|
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]) => {
|
|
10773
10855
|
const setState = set4(this.ref, [some2(out), state2]);
|
|
10774
|
-
if (
|
|
10856
|
+
if (isDone4(decision)) {
|
|
10775
10857
|
return setState.pipe(zipRight(fail2(none2())));
|
|
10776
10858
|
}
|
|
10777
10859
|
const millis2 = start2(decision.intervals) - now;
|
|
@@ -10786,12 +10868,12 @@ var ScheduleDriverImpl = class {
|
|
|
10786
10868
|
var makeWithState = (initial, step3) => new ScheduleImpl(initial, step3);
|
|
10787
10869
|
var check = /* @__PURE__ */ dual(2, (self, test) => checkEffect(self, (input, out) => sync(() => test(input, out))));
|
|
10788
10870
|
var checkEffect = /* @__PURE__ */ dual(2, (self, test) => makeWithState(self.initial, (now, input, state) => flatMap7(self.step(now, input, state), ([state2, out, decision]) => {
|
|
10789
|
-
if (
|
|
10871
|
+
if (isDone4(decision)) {
|
|
10790
10872
|
return succeed([state2, out, done5]);
|
|
10791
10873
|
}
|
|
10792
10874
|
return map11(test(input, out), (cont) => cont ? [state2, out, decision] : [state2, out, done5]);
|
|
10793
10875
|
})));
|
|
10794
|
-
var driver = (self) => pipe(
|
|
10876
|
+
var driver = (self) => pipe(make23([none2(), self.initial]), map11((ref) => new ScheduleDriverImpl(self, ref)));
|
|
10795
10877
|
var intersect5 = /* @__PURE__ */ dual(2, (self, that) => intersectWith(self, that, intersect4));
|
|
10796
10878
|
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]]) => {
|
|
10797
10879
|
if (isContinue2(lDecision) && isContinue2(rDecision)) {
|
|
@@ -10806,14 +10888,14 @@ var intersectWithLoop = (self, that, input, lState, out, lInterval, rState, out2
|
|
|
10806
10888
|
}
|
|
10807
10889
|
if (pipe(lInterval, lessThan5(rInterval))) {
|
|
10808
10890
|
return flatMap7(self.step(end2(lInterval), input, lState), ([lState2, out3, decision]) => {
|
|
10809
|
-
if (
|
|
10891
|
+
if (isDone4(decision)) {
|
|
10810
10892
|
return succeed([[lState2, rState], [out3, out2], done5]);
|
|
10811
10893
|
}
|
|
10812
10894
|
return intersectWithLoop(self, that, input, lState2, out3, decision.intervals, rState, out2, rInterval, f);
|
|
10813
10895
|
});
|
|
10814
10896
|
}
|
|
10815
10897
|
return flatMap7(that.step(end2(rInterval), input, rState), ([rState2, out22, decision]) => {
|
|
10816
|
-
if (
|
|
10898
|
+
if (isDone4(decision)) {
|
|
10817
10899
|
return succeed([[lState, rState2], [out, out22], done5]);
|
|
10818
10900
|
}
|
|
10819
10901
|
return intersectWithLoop(self, that, input, lState, out, lInterval, rState2, out22, decision.intervals, f);
|
|
@@ -10879,7 +10961,14 @@ var repeatOrElseEffectLoop = (self, driver2, orElse9, value2) => matchEffect(dri
|
|
|
10879
10961
|
});
|
|
10880
10962
|
var forever2 = /* @__PURE__ */ unfold2(0, (n) => n + 1);
|
|
10881
10963
|
|
|
10882
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10964
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Deferred.js
|
|
10965
|
+
var make39 = deferredMake;
|
|
10966
|
+
var _await3 = deferredAwait;
|
|
10967
|
+
var failCause5 = deferredFailCause;
|
|
10968
|
+
var isDone5 = deferredIsDone;
|
|
10969
|
+
var succeed5 = deferredSucceed;
|
|
10970
|
+
|
|
10971
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/MutableList.js
|
|
10883
10972
|
var TypeId14 = /* @__PURE__ */ Symbol.for("effect/MutableList");
|
|
10884
10973
|
var MutableListProto = {
|
|
10885
10974
|
[TypeId14]: TypeId14,
|
|
@@ -10990,7 +11079,7 @@ var remove6 = (self, node) => {
|
|
|
10990
11079
|
}
|
|
10991
11080
|
};
|
|
10992
11081
|
|
|
10993
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
11082
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/MutableQueue.js
|
|
10994
11083
|
var TypeId15 = /* @__PURE__ */ Symbol.for("effect/MutableQueue");
|
|
10995
11084
|
var EmptyMutableQueue = /* @__PURE__ */ Symbol.for("effect/mutable/MutableQueue/Empty");
|
|
10996
11085
|
var MutableQueueProto = {
|
|
@@ -11067,7 +11156,7 @@ var pollUpTo = /* @__PURE__ */ dual(2, (self, n) => {
|
|
|
11067
11156
|
return reverse2(result);
|
|
11068
11157
|
});
|
|
11069
11158
|
|
|
11070
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
11159
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Effect.js
|
|
11071
11160
|
var isEffect2 = isEffect;
|
|
11072
11161
|
var cached3 = memoize;
|
|
11073
11162
|
var all4 = all3;
|
|
@@ -11079,7 +11168,7 @@ var dieMessage2 = dieMessage;
|
|
|
11079
11168
|
var gen2 = gen;
|
|
11080
11169
|
var promise2 = promise;
|
|
11081
11170
|
var succeed7 = succeed;
|
|
11082
|
-
var
|
|
11171
|
+
var suspend3 = suspend;
|
|
11083
11172
|
var sync4 = sync;
|
|
11084
11173
|
var _void = void_;
|
|
11085
11174
|
var catchAll2 = catchAll;
|
|
@@ -11136,11 +11225,11 @@ var runSync = unsafeRunSyncEffect;
|
|
|
11136
11225
|
var zip5 = zipOptions;
|
|
11137
11226
|
var zipLeft2 = zipLeftOptions;
|
|
11138
11227
|
var zipRight3 = zipRightOptions;
|
|
11139
|
-
var
|
|
11228
|
+
var zipWith3 = zipWithOptions;
|
|
11140
11229
|
var useSpan2 = useSpan;
|
|
11141
11230
|
var withParentSpan2 = withParentSpan;
|
|
11142
11231
|
|
|
11143
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
11232
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/redacted.js
|
|
11144
11233
|
var RedactedSymbolKey = "effect/Redacted";
|
|
11145
11234
|
var redactedRegistry = /* @__PURE__ */ globalValue("effect/Redacted/redactedRegistry", () => /* @__PURE__ */ new WeakMap());
|
|
11146
11235
|
var RedactedTypeId = /* @__PURE__ */ Symbol.for(RedactedSymbolKey);
|
|
@@ -11174,10 +11263,10 @@ var make41 = (value2) => {
|
|
|
11174
11263
|
return redacted;
|
|
11175
11264
|
};
|
|
11176
11265
|
|
|
11177
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
11266
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Layer.js
|
|
11178
11267
|
var effect = fromEffect3;
|
|
11179
11268
|
|
|
11180
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
11269
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/schema/util.js
|
|
11181
11270
|
var getKeysForIndexSignature = (input, parameter) => {
|
|
11182
11271
|
switch (parameter._tag) {
|
|
11183
11272
|
case "StringKeyword":
|
|
@@ -11189,7 +11278,6 @@ var getKeysForIndexSignature = (input, parameter) => {
|
|
|
11189
11278
|
return getKeysForIndexSignature(input, parameter.from);
|
|
11190
11279
|
}
|
|
11191
11280
|
};
|
|
11192
|
-
var ownKeys = (o) => Object.keys(o).concat(Object.getOwnPropertySymbols(o));
|
|
11193
11281
|
var memoizeThunk = (f) => {
|
|
11194
11282
|
let done7 = false;
|
|
11195
11283
|
let a;
|
|
@@ -11202,53 +11290,12 @@ var memoizeThunk = (f) => {
|
|
|
11202
11290
|
return a;
|
|
11203
11291
|
};
|
|
11204
11292
|
};
|
|
11205
|
-
var formatDate = (date) => {
|
|
11206
|
-
try {
|
|
11207
|
-
return date.toISOString();
|
|
11208
|
-
} catch {
|
|
11209
|
-
return String(date);
|
|
11210
|
-
}
|
|
11211
|
-
};
|
|
11212
|
-
var formatUnknown = (u, checkCircular = true) => {
|
|
11213
|
-
if (Array.isArray(u)) {
|
|
11214
|
-
return `[${u.map((i) => formatUnknown(i, checkCircular)).join(",")}]`;
|
|
11215
|
-
}
|
|
11216
|
-
if (isDate(u)) {
|
|
11217
|
-
return formatDate(u);
|
|
11218
|
-
}
|
|
11219
|
-
if (hasProperty(u, "toString") && isFunction2(u["toString"]) && u["toString"] !== Object.prototype.toString) {
|
|
11220
|
-
return u["toString"]();
|
|
11221
|
-
}
|
|
11222
|
-
if (isString(u)) {
|
|
11223
|
-
return JSON.stringify(u);
|
|
11224
|
-
}
|
|
11225
|
-
if (isNumber(u) || u == null || isBoolean(u) || isSymbol(u)) {
|
|
11226
|
-
return String(u);
|
|
11227
|
-
}
|
|
11228
|
-
if (isBigInt(u)) {
|
|
11229
|
-
return String(u) + "n";
|
|
11230
|
-
}
|
|
11231
|
-
if (isIterable(u)) {
|
|
11232
|
-
return `${u.constructor.name}(${formatUnknown(Array.from(u), checkCircular)})`;
|
|
11233
|
-
}
|
|
11234
|
-
try {
|
|
11235
|
-
if (checkCircular) {
|
|
11236
|
-
JSON.stringify(u);
|
|
11237
|
-
}
|
|
11238
|
-
const pojo = `{${ownKeys(u).map((k) => `${isString(k) ? JSON.stringify(k) : String(k)}:${formatUnknown(u[k], false)}`).join(",")}}`;
|
|
11239
|
-
const name = u.constructor.name;
|
|
11240
|
-
return u.constructor !== Object.prototype.constructor ? `${name}(${pojo})` : pojo;
|
|
11241
|
-
} catch {
|
|
11242
|
-
return "<circular structure>";
|
|
11243
|
-
}
|
|
11244
|
-
};
|
|
11245
|
-
var formatPropertyKey = (name) => typeof name === "string" ? JSON.stringify(name) : String(name);
|
|
11246
11293
|
var isNonEmpty5 = (x) => Array.isArray(x);
|
|
11247
11294
|
var isSingle = (x) => !Array.isArray(x);
|
|
11248
11295
|
var formatPathKey = (key) => `[${formatPropertyKey(key)}]`;
|
|
11249
11296
|
var formatPath = (path) => isNonEmpty5(path) ? path.map(formatPathKey).join("") : formatPathKey(path);
|
|
11250
11297
|
|
|
11251
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
11298
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/schema/errors.js
|
|
11252
11299
|
var getErrorMessage = (reason, details, path, ast) => {
|
|
11253
11300
|
let out = reason;
|
|
11254
11301
|
if (path && isNonEmptyReadonlyArray(path)) {
|
|
@@ -11274,7 +11321,7 @@ var getASTRequiredElementFollowinAnOptionalElementErrorMessage = /* @__PURE__ */
|
|
|
11274
11321
|
var getASTDuplicatePropertySignatureTransformationErrorMessage = (key) => getErrorMessage("Duplicate property signature transformation", `Duplicate key ${formatUnknown(key)}`);
|
|
11275
11322
|
var getASTDuplicatePropertySignatureErrorMessage = (key) => getErrorMessage("Duplicate property signature", `Duplicate key ${formatUnknown(key)}`);
|
|
11276
11323
|
|
|
11277
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
11324
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/SchemaAST.js
|
|
11278
11325
|
var BrandAnnotationId = /* @__PURE__ */ Symbol.for("effect/annotation/Brand");
|
|
11279
11326
|
var SchemaIdAnnotationId = /* @__PURE__ */ Symbol.for("effect/annotation/SchemaId");
|
|
11280
11327
|
var MessageAnnotationId = /* @__PURE__ */ Symbol.for("effect/annotation/Message");
|
|
@@ -12193,8 +12240,12 @@ var TypeLiteralTransformation = class {
|
|
|
12193
12240
|
var isTypeLiteralTransformation = /* @__PURE__ */ createTransformationGuard("TypeLiteralTransformation");
|
|
12194
12241
|
var annotations = (ast, overrides) => {
|
|
12195
12242
|
const d = Object.getOwnPropertyDescriptors(ast);
|
|
12243
|
+
const base = {
|
|
12244
|
+
...ast.annotations
|
|
12245
|
+
};
|
|
12246
|
+
delete base[IdentifierAnnotationId];
|
|
12196
12247
|
const value2 = {
|
|
12197
|
-
...
|
|
12248
|
+
...base,
|
|
12198
12249
|
...overrides
|
|
12199
12250
|
};
|
|
12200
12251
|
const surrogate = getSurrogateAnnotation(ast);
|
|
@@ -12204,7 +12255,7 @@ var annotations = (ast, overrides) => {
|
|
|
12204
12255
|
d.annotations.value = value2;
|
|
12205
12256
|
return Object.create(Object.getPrototypeOf(ast), d);
|
|
12206
12257
|
};
|
|
12207
|
-
var STRING_KEYWORD_PATTERN = "[\\s\\S]
|
|
12258
|
+
var STRING_KEYWORD_PATTERN = "[\\s\\S]*?";
|
|
12208
12259
|
var NUMBER_KEYWORD_PATTERN = "[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?";
|
|
12209
12260
|
var getTemplateLiteralSpanTypePattern = (type, capture2) => {
|
|
12210
12261
|
switch (type._tag) {
|
|
@@ -12350,12 +12401,6 @@ var typeAST = (ast) => {
|
|
|
12350
12401
|
}
|
|
12351
12402
|
return ast;
|
|
12352
12403
|
};
|
|
12353
|
-
var createJSONIdentifierAnnotation = (annotated) => match2(getJSONIdentifier(annotated), {
|
|
12354
|
-
onNone: () => void 0,
|
|
12355
|
-
onSome: (identifier2) => ({
|
|
12356
|
-
[JSONIdentifierAnnotationId]: identifier2
|
|
12357
|
-
})
|
|
12358
|
-
});
|
|
12359
12404
|
function changeMap(as6, f) {
|
|
12360
12405
|
let changed = false;
|
|
12361
12406
|
const out = allocate(as6.length);
|
|
@@ -12373,7 +12418,7 @@ var encodedAST_ = (ast, isBound) => {
|
|
|
12373
12418
|
switch (ast._tag) {
|
|
12374
12419
|
case "Declaration": {
|
|
12375
12420
|
const typeParameters = changeMap(ast.typeParameters, (ast2) => encodedAST_(ast2));
|
|
12376
|
-
return typeParameters === ast.typeParameters ? ast : new Declaration(typeParameters, ast.decodeUnknown, ast.encodeUnknown
|
|
12421
|
+
return typeParameters === ast.typeParameters ? ast : new Declaration(typeParameters, ast.decodeUnknown, ast.encodeUnknown);
|
|
12377
12422
|
}
|
|
12378
12423
|
case "TupleType": {
|
|
12379
12424
|
const elements = changeMap(ast.elements, (e) => {
|
|
@@ -12382,7 +12427,7 @@ var encodedAST_ = (ast, isBound) => {
|
|
|
12382
12427
|
});
|
|
12383
12428
|
const restASTs = getRestASTs(ast.rest);
|
|
12384
12429
|
const rest = changeMap(restASTs, (ast2) => encodedAST_(ast2));
|
|
12385
|
-
return elements === ast.elements && rest === restASTs ? ast : new TupleType(elements, rest.map((ast2) => new Type(ast2)), ast.isReadonly
|
|
12430
|
+
return elements === ast.elements && rest === restASTs ? ast : new TupleType(elements, rest.map((ast2) => new Type(ast2)), ast.isReadonly);
|
|
12386
12431
|
}
|
|
12387
12432
|
case "TypeLiteral": {
|
|
12388
12433
|
const propertySignatures = changeMap(ast.propertySignatures, (ps) => {
|
|
@@ -12393,23 +12438,31 @@ var encodedAST_ = (ast, isBound) => {
|
|
|
12393
12438
|
const type = encodedAST_(is2.type);
|
|
12394
12439
|
return type === is2.type ? is2 : new IndexSignature(is2.parameter, type, is2.isReadonly);
|
|
12395
12440
|
});
|
|
12396
|
-
return propertySignatures === ast.propertySignatures && indexSignatures === ast.indexSignatures ? ast : new TypeLiteral(propertySignatures, indexSignatures
|
|
12441
|
+
return propertySignatures === ast.propertySignatures && indexSignatures === ast.indexSignatures ? ast : new TypeLiteral(propertySignatures, indexSignatures);
|
|
12397
12442
|
}
|
|
12398
12443
|
case "Union": {
|
|
12399
12444
|
const types = changeMap(ast.types, (ast2) => encodedAST_(ast2));
|
|
12400
|
-
return types === ast.types ? ast : Union.make(types
|
|
12445
|
+
return types === ast.types ? ast : Union.make(types);
|
|
12446
|
+
}
|
|
12447
|
+
case "Suspend": {
|
|
12448
|
+
let borrowedAnnotations = void 0;
|
|
12449
|
+
const identifier2 = getJSONIdentifier(ast);
|
|
12450
|
+
if (isSome2(identifier2)) {
|
|
12451
|
+
const suffix = "";
|
|
12452
|
+
borrowedAnnotations = {
|
|
12453
|
+
[JSONIdentifierAnnotationId]: `${identifier2.value}Encoded${suffix}`
|
|
12454
|
+
};
|
|
12455
|
+
}
|
|
12456
|
+
return new Suspend(() => encodedAST_(ast.f()), borrowedAnnotations);
|
|
12401
12457
|
}
|
|
12402
|
-
case "Suspend":
|
|
12403
|
-
return new Suspend(() => encodedAST_(ast.f()), createJSONIdentifierAnnotation(ast));
|
|
12404
12458
|
case "Refinement": {
|
|
12405
12459
|
const from = encodedAST_(ast.from);
|
|
12406
|
-
|
|
12407
|
-
|
|
12408
|
-
|
|
12409
|
-
case "Transformation": {
|
|
12410
|
-
const identifier2 = createJSONIdentifierAnnotation(ast);
|
|
12411
|
-
return encodedAST_(identifier2 ? annotations(ast.from, identifier2) : ast.from);
|
|
12460
|
+
{
|
|
12461
|
+
return from;
|
|
12462
|
+
}
|
|
12412
12463
|
}
|
|
12464
|
+
case "Transformation":
|
|
12465
|
+
return encodedAST_(ast.from);
|
|
12413
12466
|
}
|
|
12414
12467
|
return ast;
|
|
12415
12468
|
};
|
|
@@ -12441,7 +12494,7 @@ function getBrands(ast) {
|
|
|
12441
12494
|
var getOrElseExpected = (ast) => getTitleAnnotation(ast).pipe(orElse(() => getDescriptionAnnotation(ast)), orElse(() => getAutoTitleAnnotation(ast)), map2((s) => s + getBrands(ast)));
|
|
12442
12495
|
var getExpected = (ast) => orElse(getIdentifierAnnotation(ast), () => getOrElseExpected(ast));
|
|
12443
12496
|
|
|
12444
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
12497
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/ParseResult.js
|
|
12445
12498
|
var Pointer = class {
|
|
12446
12499
|
path;
|
|
12447
12500
|
actual;
|
|
@@ -12903,7 +12956,7 @@ var go = (ast, isDecoding) => {
|
|
|
12903
12956
|
}) => isNonEmptyArray2(es2) ? left2(new Composite2(ast, input, sortByIndex(es2), sortByIndex(output2))) : right2(sortByIndex(output2));
|
|
12904
12957
|
if (queue && queue.length > 0) {
|
|
12905
12958
|
const cqueue = queue;
|
|
12906
|
-
return
|
|
12959
|
+
return suspend3(() => {
|
|
12907
12960
|
const state = {
|
|
12908
12961
|
es: copy(es),
|
|
12909
12962
|
output: copy(output)
|
|
@@ -12950,7 +13003,7 @@ var go = (ast, isDecoding) => {
|
|
|
12950
13003
|
const output = {};
|
|
12951
13004
|
let inputKeys;
|
|
12952
13005
|
if (onExcessPropertyError || onExcessPropertyPreserve) {
|
|
12953
|
-
inputKeys = ownKeys(input);
|
|
13006
|
+
inputKeys = Reflect.ownKeys(input);
|
|
12954
13007
|
for (const key of inputKeys) {
|
|
12955
13008
|
const te = expected(key, options3);
|
|
12956
13009
|
if (isEither3(te) && isLeft2(te)) {
|
|
@@ -13084,7 +13137,7 @@ var go = (ast, isDecoding) => {
|
|
|
13084
13137
|
return left2(new Composite2(ast, input, sortByIndex(es2), output2));
|
|
13085
13138
|
}
|
|
13086
13139
|
if (options3?.propertyOrder === "original") {
|
|
13087
|
-
const keys6 = inputKeys || ownKeys(input);
|
|
13140
|
+
const keys6 = inputKeys || Reflect.ownKeys(input);
|
|
13088
13141
|
for (const name of expectedKeys) {
|
|
13089
13142
|
if (keys6.indexOf(name) === -1) {
|
|
13090
13143
|
keys6.push(name);
|
|
@@ -13102,7 +13155,7 @@ var go = (ast, isDecoding) => {
|
|
|
13102
13155
|
};
|
|
13103
13156
|
if (queue && queue.length > 0) {
|
|
13104
13157
|
const cqueue = queue;
|
|
13105
|
-
return
|
|
13158
|
+
return suspend3(() => {
|
|
13106
13159
|
const state = {
|
|
13107
13160
|
es: copy(es),
|
|
13108
13161
|
output: Object.assign({}, output)
|
|
@@ -13122,8 +13175,8 @@ var go = (ast, isDecoding) => {
|
|
|
13122
13175
|
}
|
|
13123
13176
|
case "Union": {
|
|
13124
13177
|
const searchTree = getSearchTree(ast.types);
|
|
13125
|
-
const
|
|
13126
|
-
const ownKeysLen =
|
|
13178
|
+
const ownKeys = Reflect.ownKeys(searchTree.keys);
|
|
13179
|
+
const ownKeysLen = ownKeys.length;
|
|
13127
13180
|
const astTypesLen = ast.types.length;
|
|
13128
13181
|
const map22 = /* @__PURE__ */ new Map();
|
|
13129
13182
|
for (let i = 0; i < astTypesLen; i++) {
|
|
@@ -13138,7 +13191,7 @@ var go = (ast, isDecoding) => {
|
|
|
13138
13191
|
if (ownKeysLen > 0) {
|
|
13139
13192
|
if (isRecordOrArray(input)) {
|
|
13140
13193
|
for (let i = 0; i < ownKeysLen; i++) {
|
|
13141
|
-
const name =
|
|
13194
|
+
const name = ownKeys[i];
|
|
13142
13195
|
const buckets = searchTree.keys[name].buckets;
|
|
13143
13196
|
if (Object.prototype.hasOwnProperty.call(input, name)) {
|
|
13144
13197
|
const literal = String(input[name]);
|
|
@@ -13186,7 +13239,7 @@ var go = (ast, isDecoding) => {
|
|
|
13186
13239
|
if (!queue) {
|
|
13187
13240
|
queue = [];
|
|
13188
13241
|
}
|
|
13189
|
-
queue.push((state) =>
|
|
13242
|
+
queue.push((state) => suspend3(() => {
|
|
13190
13243
|
if ("finalResult" in state) {
|
|
13191
13244
|
return _void;
|
|
13192
13245
|
} else {
|
|
@@ -13208,7 +13261,7 @@ var go = (ast, isDecoding) => {
|
|
|
13208
13261
|
);
|
|
13209
13262
|
if (queue && queue.length > 0) {
|
|
13210
13263
|
const cqueue = queue;
|
|
13211
|
-
return
|
|
13264
|
+
return suspend3(() => {
|
|
13212
13265
|
const state = {
|
|
13213
13266
|
es: copy(es)
|
|
13214
13267
|
};
|
|
@@ -13228,7 +13281,7 @@ var go = (ast, isDecoding) => {
|
|
|
13228
13281
|
};
|
|
13229
13282
|
}
|
|
13230
13283
|
case "Suspend": {
|
|
13231
|
-
const get18 = memoizeThunk(() => goMemo(
|
|
13284
|
+
const get18 = memoizeThunk(() => goMemo(ast.f()));
|
|
13232
13285
|
return (a, options3) => get18()(a, options3);
|
|
13233
13286
|
}
|
|
13234
13287
|
}
|
|
@@ -13516,10 +13569,10 @@ var formatTree = (issue) => {
|
|
|
13516
13569
|
}
|
|
13517
13570
|
};
|
|
13518
13571
|
|
|
13519
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
13572
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Redacted.js
|
|
13520
13573
|
var make42 = make41;
|
|
13521
13574
|
|
|
13522
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
13575
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Struct.js
|
|
13523
13576
|
var pick2 = /* @__PURE__ */ dual((args2) => isObject(args2[0]), (s, ...keys6) => {
|
|
13524
13577
|
const out = {};
|
|
13525
13578
|
for (const k of keys6) {
|
|
@@ -13539,7 +13592,7 @@ var omit2 = /* @__PURE__ */ dual((args2) => isObject(args2[0]), (s, ...keys6) =>
|
|
|
13539
13592
|
return out;
|
|
13540
13593
|
});
|
|
13541
13594
|
|
|
13542
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
13595
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Schema.js
|
|
13543
13596
|
var TypeId16 = /* @__PURE__ */ Symbol.for("effect/Schema");
|
|
13544
13597
|
function make43(ast) {
|
|
13545
13598
|
return class SchemaClass {
|
|
@@ -13820,14 +13873,14 @@ var optional = (self) => {
|
|
|
13820
13873
|
};
|
|
13821
13874
|
var preserveMissingMessageAnnotation = /* @__PURE__ */ pickAnnotations([MissingMessageAnnotationId]);
|
|
13822
13875
|
var getDefaultTypeLiteralAST = (fields, records) => {
|
|
13823
|
-
const
|
|
13876
|
+
const ownKeys = Reflect.ownKeys(fields);
|
|
13824
13877
|
const pss = [];
|
|
13825
|
-
if (
|
|
13878
|
+
if (ownKeys.length > 0) {
|
|
13826
13879
|
const from = [];
|
|
13827
13880
|
const to = [];
|
|
13828
13881
|
const transformations = [];
|
|
13829
|
-
for (let i = 0; i <
|
|
13830
|
-
const key =
|
|
13882
|
+
for (let i = 0; i < ownKeys.length; i++) {
|
|
13883
|
+
const key = ownKeys[i];
|
|
13831
13884
|
const field = fields[key];
|
|
13832
13885
|
if (isPropertySignature(field)) {
|
|
13833
13886
|
const ast = field.ast;
|
|
@@ -13891,8 +13944,8 @@ var getDefaultTypeLiteralAST = (fields, records) => {
|
|
|
13891
13944
|
return new TypeLiteral(pss, iss);
|
|
13892
13945
|
};
|
|
13893
13946
|
var lazilyMergeDefaults = (fields, out) => {
|
|
13894
|
-
const
|
|
13895
|
-
for (const key of
|
|
13947
|
+
const ownKeys = Reflect.ownKeys(fields);
|
|
13948
|
+
for (const key of ownKeys) {
|
|
13896
13949
|
const field = fields[key];
|
|
13897
13950
|
if (out[key] === void 0 && isPropertySignature(field)) {
|
|
13898
13951
|
const ast = field.ast;
|
|
@@ -14162,26 +14215,14 @@ function getDisableValidationMakeOption(options3) {
|
|
|
14162
14215
|
return isBoolean(options3) ? options3 : options3?.disableValidation ?? false;
|
|
14163
14216
|
}
|
|
14164
14217
|
|
|
14165
|
-
// ../../../node_modules/.pnpm
|
|
14166
|
-
var ATTR_HTTP_REQUEST_HEADER = (key) => `http.request.header.${key}`;
|
|
14167
|
-
var ATTR_HTTP_REQUEST_METHOD = "http.request.method";
|
|
14168
|
-
var ATTR_HTTP_RESPONSE_HEADER = (key) => `http.response.header.${key}`;
|
|
14169
|
-
var ATTR_HTTP_RESPONSE_STATUS_CODE = "http.response.status_code";
|
|
14170
|
-
var ATTR_SERVER_ADDRESS = "server.address";
|
|
14171
|
-
var ATTR_SERVER_PORT = "server.port";
|
|
14172
|
-
var ATTR_URL_FULL = "url.full";
|
|
14173
|
-
var ATTR_URL_PATH = "url.path";
|
|
14174
|
-
var ATTR_URL_QUERY = "url.query";
|
|
14175
|
-
var ATTR_URL_SCHEME = "url.scheme";
|
|
14176
|
-
|
|
14177
|
-
// ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/FiberRef.js
|
|
14218
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/FiberRef.js
|
|
14178
14219
|
var unsafeMake7 = fiberRefUnsafeMake;
|
|
14179
14220
|
var get13 = fiberRefGet;
|
|
14180
14221
|
var currentContext2 = currentContext;
|
|
14181
14222
|
var currentMinimumLogLevel2 = currentMinimumLogLevel;
|
|
14182
14223
|
var currentTracerEnabled2 = currentTracerEnabled;
|
|
14183
14224
|
|
|
14184
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
14225
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/queue.js
|
|
14185
14226
|
var EnqueueSymbolKey = "effect/QueueEnqueue";
|
|
14186
14227
|
var EnqueueTypeId = /* @__PURE__ */ Symbol.for(EnqueueSymbolKey);
|
|
14187
14228
|
var DequeueSymbolKey = "effect/QueueDequeue";
|
|
@@ -14540,7 +14581,7 @@ var unsafeCompleteTakers = (strategy, queue, takers) => {
|
|
|
14540
14581
|
}
|
|
14541
14582
|
};
|
|
14542
14583
|
|
|
14543
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
14584
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Queue.js
|
|
14544
14585
|
var bounded3 = bounded2;
|
|
14545
14586
|
var unbounded3 = unbounded2;
|
|
14546
14587
|
var size10 = size9;
|
|
@@ -14548,12 +14589,12 @@ var shutdown2 = shutdown;
|
|
|
14548
14589
|
var offer3 = offer2;
|
|
14549
14590
|
var take2 = take;
|
|
14550
14591
|
|
|
14551
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
14592
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/opCodes/channelChildExecutorDecision.js
|
|
14552
14593
|
var OP_CONTINUE2 = "Continue";
|
|
14553
14594
|
var OP_CLOSE = "Close";
|
|
14554
14595
|
var OP_YIELD2 = "Yield";
|
|
14555
14596
|
|
|
14556
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
14597
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/channel/childExecutorDecision.js
|
|
14557
14598
|
var ChildExecutorDecisionSymbolKey = "effect/ChannelChildExecutorDecision";
|
|
14558
14599
|
var ChildExecutorDecisionTypeId = /* @__PURE__ */ Symbol.for(ChildExecutorDecisionSymbolKey);
|
|
14559
14600
|
var proto5 = {
|
|
@@ -14565,11 +14606,11 @@ var Continue = (_) => {
|
|
|
14565
14606
|
return op;
|
|
14566
14607
|
};
|
|
14567
14608
|
|
|
14568
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
14609
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/opCodes/continuation.js
|
|
14569
14610
|
var OP_CONTINUATION_K = "ContinuationK";
|
|
14570
14611
|
var OP_CONTINUATION_FINALIZER = "ContinuationFinalizer";
|
|
14571
14612
|
|
|
14572
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
14613
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/channel/continuation.js
|
|
14573
14614
|
var ContinuationTypeId = /* @__PURE__ */ Symbol.for("effect/ChannelContinuation");
|
|
14574
14615
|
var continuationVariance = {
|
|
14575
14616
|
/* c8 ignore next */
|
|
@@ -14613,11 +14654,11 @@ var ContinuationFinalizerImpl = class {
|
|
|
14613
14654
|
}
|
|
14614
14655
|
};
|
|
14615
14656
|
|
|
14616
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
14657
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/opCodes/channelUpstreamPullStrategy.js
|
|
14617
14658
|
var OP_PULL_AFTER_NEXT = "PullAfterNext";
|
|
14618
14659
|
var OP_PULL_AFTER_ALL_ENQUEUED = "PullAfterAllEnqueued";
|
|
14619
14660
|
|
|
14620
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
14661
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/channel/upstreamPullStrategy.js
|
|
14621
14662
|
var UpstreamPullStrategySymbolKey = "effect/ChannelUpstreamPullStrategy";
|
|
14622
14663
|
var UpstreamPullStrategyTypeId = /* @__PURE__ */ Symbol.for(UpstreamPullStrategySymbolKey);
|
|
14623
14664
|
var upstreamPullStrategyVariance = {
|
|
@@ -14634,7 +14675,7 @@ var PullAfterNext = (emitSeparator) => {
|
|
|
14634
14675
|
return op;
|
|
14635
14676
|
};
|
|
14636
14677
|
|
|
14637
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
14678
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/opCodes/channel.js
|
|
14638
14679
|
var OP_BRACKET_OUT = "BracketOut";
|
|
14639
14680
|
var OP_BRIDGE = "Bridge";
|
|
14640
14681
|
var OP_CONCAT_ALL = "ConcatAll";
|
|
@@ -14650,7 +14691,7 @@ var OP_SUCCEED = "Succeed";
|
|
|
14650
14691
|
var OP_SUCCEED_NOW = "SucceedNow";
|
|
14651
14692
|
var OP_SUSPEND2 = "Suspend";
|
|
14652
14693
|
|
|
14653
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
14694
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/core-stream.js
|
|
14654
14695
|
var ChannelSymbolKey = "effect/Channel";
|
|
14655
14696
|
var ChannelTypeId2 = /* @__PURE__ */ Symbol.for(ChannelSymbolKey);
|
|
14656
14697
|
var channelVariance2 = {
|
|
@@ -14789,13 +14830,13 @@ var write = (out) => {
|
|
|
14789
14830
|
return op;
|
|
14790
14831
|
};
|
|
14791
14832
|
|
|
14792
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
14833
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/opCodes/channelState.js
|
|
14793
14834
|
var OP_DONE3 = "Done";
|
|
14794
14835
|
var OP_EMIT2 = "Emit";
|
|
14795
14836
|
var OP_FROM_EFFECT3 = "FromEffect";
|
|
14796
14837
|
var OP_READ2 = "Read";
|
|
14797
14838
|
|
|
14798
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
14839
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/channel/channelState.js
|
|
14799
14840
|
var ChannelStateTypeId = /* @__PURE__ */ Symbol.for("effect/ChannelState");
|
|
14800
14841
|
var channelStateVariance = {
|
|
14801
14842
|
/* c8 ignore next */
|
|
@@ -14835,7 +14876,7 @@ var isFromEffect = (self) => self._tag === OP_FROM_EFFECT3;
|
|
|
14835
14876
|
var effect2 = (self) => isFromEffect(self) ? self.effect : _void;
|
|
14836
14877
|
var effectOrUndefinedIgnored = (self) => isFromEffect(self) ? ignore2(self.effect) : void 0;
|
|
14837
14878
|
|
|
14838
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
14879
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/channel/subexecutor.js
|
|
14839
14880
|
var OP_PULL_FROM_CHILD = "PullFromChild";
|
|
14840
14881
|
var OP_PULL_FROM_UPSTREAM = "PullFromUpstream";
|
|
14841
14882
|
var OP_DRAIN_CHILD_EXECUTORS = "DrainChildExecutors";
|
|
@@ -14854,7 +14895,7 @@ var PullFromChild = class {
|
|
|
14854
14895
|
const fin1 = this.childExecutor.close(exit4);
|
|
14855
14896
|
const fin2 = this.parentSubexecutor.close(exit4);
|
|
14856
14897
|
if (fin1 !== void 0 && fin2 !== void 0) {
|
|
14857
|
-
return
|
|
14898
|
+
return zipWith3(exit3(fin1), exit3(fin2), (exit1, exit22) => pipe(exit1, zipRight2(exit22)));
|
|
14858
14899
|
} else if (fin1 !== void 0) {
|
|
14859
14900
|
return fin1;
|
|
14860
14901
|
} else if (fin2 !== void 0) {
|
|
@@ -14892,7 +14933,7 @@ var PullFromUpstream = class _PullFromUpstream {
|
|
|
14892
14933
|
const fins = [...this.activeChildExecutors.map((child) => child !== void 0 ? child.childExecutor.close(exit4) : void 0), fin1];
|
|
14893
14934
|
const result = fins.reduce((acc, next) => {
|
|
14894
14935
|
if (acc !== void 0 && next !== void 0) {
|
|
14895
|
-
return
|
|
14936
|
+
return zipWith3(acc, exit3(next), (exit1, exit22) => zipRight2(exit1, exit22));
|
|
14896
14937
|
} else if (acc !== void 0) {
|
|
14897
14938
|
return acc;
|
|
14898
14939
|
} else if (next !== void 0) {
|
|
@@ -14930,7 +14971,7 @@ var DrainChildExecutors = class _DrainChildExecutors {
|
|
|
14930
14971
|
const fins = [...this.activeChildExecutors.map((child) => child !== void 0 ? child.childExecutor.close(exit4) : void 0), fin1];
|
|
14931
14972
|
const result = fins.reduce((acc, next) => {
|
|
14932
14973
|
if (acc !== void 0 && next !== void 0) {
|
|
14933
|
-
return
|
|
14974
|
+
return zipWith3(acc, exit3(next), (exit1, exit22) => zipRight2(exit1, exit22));
|
|
14934
14975
|
} else if (acc !== void 0) {
|
|
14935
14976
|
return acc;
|
|
14936
14977
|
} else if (next !== void 0) {
|
|
@@ -14962,11 +15003,11 @@ var Emit2 = class {
|
|
|
14962
15003
|
}
|
|
14963
15004
|
};
|
|
14964
15005
|
|
|
14965
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15006
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/opCodes/channelUpstreamPullRequest.js
|
|
14966
15007
|
var OP_PULLED = "Pulled";
|
|
14967
15008
|
var OP_NO_UPSTREAM = "NoUpstream";
|
|
14968
15009
|
|
|
14969
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15010
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/channel/upstreamPullRequest.js
|
|
14970
15011
|
var UpstreamPullRequestSymbolKey = "effect/ChannelUpstreamPullRequest";
|
|
14971
15012
|
var UpstreamPullRequestTypeId = /* @__PURE__ */ Symbol.for(UpstreamPullRequestSymbolKey);
|
|
14972
15013
|
var upstreamPullRequestVariance = {
|
|
@@ -14989,7 +15030,7 @@ var NoUpstream = (activeDownstreamCount) => {
|
|
|
14989
15030
|
return op;
|
|
14990
15031
|
};
|
|
14991
15032
|
|
|
14992
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15033
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/channel/channelExecutor.js
|
|
14993
15034
|
var ChannelExecutor = class _ChannelExecutor {
|
|
14994
15035
|
_activeSubexecutor = void 0;
|
|
14995
15036
|
_cancelled = void 0;
|
|
@@ -15033,7 +15074,7 @@ var ChannelExecutor = class _ChannelExecutor {
|
|
|
15033
15074
|
if (this._input !== void 0) {
|
|
15034
15075
|
const inputExecutor = this._input;
|
|
15035
15076
|
this._input = void 0;
|
|
15036
|
-
const drainer = () => flatMap9(bridgeInput.awaitRead(), () =>
|
|
15077
|
+
const drainer = () => flatMap9(bridgeInput.awaitRead(), () => suspend3(() => {
|
|
15037
15078
|
const state = inputExecutor.run();
|
|
15038
15079
|
switch (state._tag) {
|
|
15039
15080
|
case OP_DONE3: {
|
|
@@ -15056,7 +15097,7 @@ var ChannelExecutor = class _ChannelExecutor {
|
|
|
15056
15097
|
}
|
|
15057
15098
|
}
|
|
15058
15099
|
}));
|
|
15059
|
-
result = fromEffect5(flatMap9(forkDaemon2(interruptible4(drainer())), (fiber) => sync4(() => this.addFinalizer((exit4) => flatMap9(interrupt4(fiber), () =>
|
|
15100
|
+
result = fromEffect5(flatMap9(forkDaemon2(interruptible4(drainer())), (fiber) => sync4(() => this.addFinalizer((exit4) => flatMap9(interrupt4(fiber), () => suspend3(() => {
|
|
15060
15101
|
const effect3 = this.restorePipe(exit4, inputExecutor);
|
|
15061
15102
|
return effect3 !== void 0 ? effect3 : _void;
|
|
15062
15103
|
}))))));
|
|
@@ -15239,12 +15280,12 @@ var ChannelExecutor = class _ChannelExecutor {
|
|
|
15239
15280
|
map17(([[exit1, exit22], exit32]) => pipe(exit1, zipRight2(exit22), zipRight2(exit32))),
|
|
15240
15281
|
uninterruptible2,
|
|
15241
15282
|
// TODO: remove
|
|
15242
|
-
flatMap9((exit5) =>
|
|
15283
|
+
flatMap9((exit5) => suspend3(() => exit5))
|
|
15243
15284
|
);
|
|
15244
15285
|
}
|
|
15245
15286
|
doneSucceed(value2) {
|
|
15246
15287
|
if (this._doneStack.length === 0) {
|
|
15247
|
-
this._done =
|
|
15288
|
+
this._done = succeed3(value2);
|
|
15248
15289
|
this._currentChannel = void 0;
|
|
15249
15290
|
return Done2();
|
|
15250
15291
|
}
|
|
@@ -15257,18 +15298,18 @@ var ChannelExecutor = class _ChannelExecutor {
|
|
|
15257
15298
|
const finalizers = this.popNextFinalizers();
|
|
15258
15299
|
if (this._doneStack.length === 0) {
|
|
15259
15300
|
this._doneStack = finalizers.reverse();
|
|
15260
|
-
this._done =
|
|
15301
|
+
this._done = succeed3(value2);
|
|
15261
15302
|
this._currentChannel = void 0;
|
|
15262
15303
|
return Done2();
|
|
15263
15304
|
}
|
|
15264
|
-
const finalizerEffect = runFinalizers(finalizers.map((f) => f.finalizer),
|
|
15305
|
+
const finalizerEffect = runFinalizers(finalizers.map((f) => f.finalizer), succeed3(value2));
|
|
15265
15306
|
this.storeInProgressFinalizer(finalizerEffect);
|
|
15266
15307
|
const effect3 = pipe(finalizerEffect, ensuring2(sync4(() => this.clearInProgressFinalizer())), uninterruptible2, flatMap9(() => sync4(() => this.doneSucceed(value2))));
|
|
15267
15308
|
return fromEffect5(effect3);
|
|
15268
15309
|
}
|
|
15269
15310
|
doneHalt(cause2) {
|
|
15270
15311
|
if (this._doneStack.length === 0) {
|
|
15271
|
-
this._done =
|
|
15312
|
+
this._done = failCause3(cause2);
|
|
15272
15313
|
this._currentChannel = void 0;
|
|
15273
15314
|
return Done2();
|
|
15274
15315
|
}
|
|
@@ -15285,11 +15326,11 @@ var ChannelExecutor = class _ChannelExecutor {
|
|
|
15285
15326
|
const finalizers = this.popNextFinalizers();
|
|
15286
15327
|
if (this._doneStack.length === 0) {
|
|
15287
15328
|
this._doneStack = finalizers.reverse();
|
|
15288
|
-
this._done =
|
|
15329
|
+
this._done = failCause3(cause2);
|
|
15289
15330
|
this._currentChannel = void 0;
|
|
15290
15331
|
return Done2();
|
|
15291
15332
|
}
|
|
15292
|
-
const finalizerEffect = runFinalizers(finalizers.map((f) => f.finalizer),
|
|
15333
|
+
const finalizerEffect = runFinalizers(finalizers.map((f) => f.finalizer), failCause3(cause2));
|
|
15293
15334
|
this.storeInProgressFinalizer(finalizerEffect);
|
|
15294
15335
|
const effect3 = pipe(finalizerEffect, ensuring2(sync4(() => this.clearInProgressFinalizer())), uninterruptible2, flatMap9(() => sync4(() => this.doneHalt(cause2))));
|
|
15295
15336
|
return fromEffect5(effect3);
|
|
@@ -15318,9 +15359,9 @@ var ChannelExecutor = class _ChannelExecutor {
|
|
|
15318
15359
|
}
|
|
15319
15360
|
return pipe(effect3, provide2(this._providedEnv));
|
|
15320
15361
|
}
|
|
15321
|
-
runEnsuring(
|
|
15322
|
-
this.addFinalizer(
|
|
15323
|
-
this._currentChannel =
|
|
15362
|
+
runEnsuring(ensuring6) {
|
|
15363
|
+
this.addFinalizer(ensuring6.finalizer);
|
|
15364
|
+
this._currentChannel = ensuring6.channel;
|
|
15324
15365
|
}
|
|
15325
15366
|
addFinalizer(f) {
|
|
15326
15367
|
this._doneStack.push(new ContinuationFinalizerImpl(f));
|
|
@@ -15414,20 +15455,20 @@ var ChannelExecutor = class _ChannelExecutor {
|
|
|
15414
15455
|
switch (subexecutor._tag) {
|
|
15415
15456
|
case OP_PULL_FROM_UPSTREAM: {
|
|
15416
15457
|
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);
|
|
15417
|
-
this._closeLastSubstream = childExecutor.close(
|
|
15458
|
+
this._closeLastSubstream = childExecutor.close(succeed3(doneValue));
|
|
15418
15459
|
this.replaceSubexecutor(modifiedParent);
|
|
15419
15460
|
break;
|
|
15420
15461
|
}
|
|
15421
15462
|
case OP_DRAIN_CHILD_EXECUTORS: {
|
|
15422
15463
|
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);
|
|
15423
|
-
this._closeLastSubstream = childExecutor.close(
|
|
15464
|
+
this._closeLastSubstream = childExecutor.close(succeed3(doneValue));
|
|
15424
15465
|
this.replaceSubexecutor(modifiedParent);
|
|
15425
15466
|
break;
|
|
15426
15467
|
}
|
|
15427
15468
|
}
|
|
15428
15469
|
}
|
|
15429
15470
|
handleSubexecutorFailure(childExecutor, parentSubexecutor, cause2) {
|
|
15430
|
-
return this.finishSubexecutorWithCloseEffect(
|
|
15471
|
+
return this.finishSubexecutorWithCloseEffect(failCause3(cause2), (exit4) => parentSubexecutor.close(exit4), (exit4) => childExecutor.close(exit4));
|
|
15431
15472
|
}
|
|
15432
15473
|
pullFromUpstream(subexecutor) {
|
|
15433
15474
|
if (subexecutor.activeChildExecutors.length === 0) {
|
|
@@ -15514,7 +15555,7 @@ var ChannelExecutor = class _ChannelExecutor {
|
|
|
15514
15555
|
};
|
|
15515
15556
|
var ifNotNull = (effect3) => effect3 !== void 0 ? effect3 : _void;
|
|
15516
15557
|
var runFinalizers = (finalizers, exit4) => {
|
|
15517
|
-
return pipe(forEach8(finalizers, (fin) => exit3(fin(exit4))), map17((exits) => pipe(all2(exits), getOrElse(() => void_3))), flatMap9((exit5) =>
|
|
15558
|
+
return pipe(forEach8(finalizers, (fin) => exit3(fin(exit4))), map17((exits) => pipe(all2(exits), getOrElse(() => void_3))), flatMap9((exit5) => suspend3(() => exit5)));
|
|
15518
15559
|
};
|
|
15519
15560
|
var readUpstream = (r, onSuccess, onFailure) => {
|
|
15520
15561
|
const readStack = [r];
|
|
@@ -15529,7 +15570,7 @@ var readUpstream = (r, onSuccess, onFailure) => {
|
|
|
15529
15570
|
const emitEffect = current.onEmit(current.upstream.getEmit());
|
|
15530
15571
|
if (readStack.length === 0) {
|
|
15531
15572
|
if (emitEffect === void 0) {
|
|
15532
|
-
return
|
|
15573
|
+
return suspend3(onSuccess);
|
|
15533
15574
|
}
|
|
15534
15575
|
return pipe(emitEffect, matchCauseEffect3({
|
|
15535
15576
|
onFailure,
|
|
@@ -15537,7 +15578,7 @@ var readUpstream = (r, onSuccess, onFailure) => {
|
|
|
15537
15578
|
}));
|
|
15538
15579
|
}
|
|
15539
15580
|
if (emitEffect === void 0) {
|
|
15540
|
-
return
|
|
15581
|
+
return suspend3(() => read());
|
|
15541
15582
|
}
|
|
15542
15583
|
return pipe(emitEffect, matchCauseEffect3({
|
|
15543
15584
|
onFailure,
|
|
@@ -15548,7 +15589,7 @@ var readUpstream = (r, onSuccess, onFailure) => {
|
|
|
15548
15589
|
const doneEffect = current.onDone(current.upstream.getDone());
|
|
15549
15590
|
if (readStack.length === 0) {
|
|
15550
15591
|
if (doneEffect === void 0) {
|
|
15551
|
-
return
|
|
15592
|
+
return suspend3(onSuccess);
|
|
15552
15593
|
}
|
|
15553
15594
|
return pipe(doneEffect, matchCauseEffect3({
|
|
15554
15595
|
onFailure,
|
|
@@ -15556,7 +15597,7 @@ var readUpstream = (r, onSuccess, onFailure) => {
|
|
|
15556
15597
|
}));
|
|
15557
15598
|
}
|
|
15558
15599
|
if (doneEffect === void 0) {
|
|
15559
|
-
return
|
|
15600
|
+
return suspend3(() => read());
|
|
15560
15601
|
}
|
|
15561
15602
|
return pipe(doneEffect, matchCauseEffect3({
|
|
15562
15603
|
onFailure,
|
|
@@ -15565,8 +15606,8 @@ var readUpstream = (r, onSuccess, onFailure) => {
|
|
|
15565
15606
|
}
|
|
15566
15607
|
case OP_FROM_EFFECT3: {
|
|
15567
15608
|
readStack.push(current);
|
|
15568
|
-
return pipe(current.onEffect(state.effect), catchAllCause2((cause2) =>
|
|
15569
|
-
const doneEffect = current.onDone(
|
|
15609
|
+
return pipe(current.onEffect(state.effect), catchAllCause2((cause2) => suspend3(() => {
|
|
15610
|
+
const doneEffect = current.onDone(failCause3(cause2));
|
|
15570
15611
|
return doneEffect === void 0 ? _void : doneEffect;
|
|
15571
15612
|
})), matchCauseEffect3({
|
|
15572
15613
|
onFailure,
|
|
@@ -15576,24 +15617,24 @@ var readUpstream = (r, onSuccess, onFailure) => {
|
|
|
15576
15617
|
case OP_READ2: {
|
|
15577
15618
|
readStack.push(current);
|
|
15578
15619
|
readStack.push(state);
|
|
15579
|
-
return
|
|
15620
|
+
return suspend3(() => read());
|
|
15580
15621
|
}
|
|
15581
15622
|
}
|
|
15582
15623
|
};
|
|
15583
15624
|
return read();
|
|
15584
15625
|
};
|
|
15585
15626
|
var runIn = /* @__PURE__ */ dual(2, (self, scope4) => {
|
|
15586
|
-
const run3 = (channelDeferred, scopeDeferred, scope5) => acquireUseRelease2(sync4(() => new ChannelExecutor(self, void 0, identity)), (exec) =>
|
|
15627
|
+
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) => {
|
|
15587
15628
|
const finalize = exec.close(exit4);
|
|
15588
15629
|
if (finalize === void 0) {
|
|
15589
15630
|
return _void;
|
|
15590
15631
|
}
|
|
15591
15632
|
return tapErrorCause2(finalize, (cause2) => addFinalizer2(scope5, failCause6(cause2)));
|
|
15592
15633
|
});
|
|
15593
|
-
return uninterruptibleMask3((restore) => all4([fork(scope4, sequential3),
|
|
15634
|
+
return uninterruptibleMask3((restore) => all4([fork(scope4, sequential3), make39(), make39()]).pipe(flatMap9(([child, channelDeferred, scopeDeferred]) => restore(run3(channelDeferred, scopeDeferred, child)).pipe(forkIn2(scope4), flatMap9((fiber) => scope4.addFinalizer((exit4) => {
|
|
15594
15635
|
const interruptors3 = isFailure(exit4) ? interruptors2(exit4.cause) : void 0;
|
|
15595
|
-
return
|
|
15596
|
-
}).pipe(zipRight3(restore(
|
|
15636
|
+
return isDone5(channelDeferred).pipe(flatMap9((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)))));
|
|
15637
|
+
}).pipe(zipRight3(restore(_await3(channelDeferred)))))))));
|
|
15597
15638
|
});
|
|
15598
15639
|
var runScopedInterpret = (channelState, exec) => {
|
|
15599
15640
|
const op = channelState;
|
|
@@ -15605,7 +15646,7 @@ var runScopedInterpret = (channelState, exec) => {
|
|
|
15605
15646
|
return runScopedInterpret(exec.run(), exec);
|
|
15606
15647
|
}
|
|
15607
15648
|
case OP_DONE3: {
|
|
15608
|
-
return
|
|
15649
|
+
return suspend3(() => exec.getDone());
|
|
15609
15650
|
}
|
|
15610
15651
|
case OP_READ2: {
|
|
15611
15652
|
return readUpstream(op, () => runScopedInterpret(exec.run(), exec), failCause6);
|
|
@@ -15613,11 +15654,11 @@ var runScopedInterpret = (channelState, exec) => {
|
|
|
15613
15654
|
}
|
|
15614
15655
|
};
|
|
15615
15656
|
|
|
15616
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15657
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/opCodes/channelMergeDecision.js
|
|
15617
15658
|
var OP_DONE4 = "Done";
|
|
15618
15659
|
var OP_AWAIT = "Await";
|
|
15619
15660
|
|
|
15620
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15661
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/channel/mergeDecision.js
|
|
15621
15662
|
var MergeDecisionSymbolKey = "effect/ChannelMergeDecision";
|
|
15622
15663
|
var MergeDecisionTypeId = /* @__PURE__ */ Symbol.for(MergeDecisionSymbolKey);
|
|
15623
15664
|
var proto10 = {
|
|
@@ -15636,12 +15677,12 @@ var Await = (f) => {
|
|
|
15636
15677
|
return op;
|
|
15637
15678
|
};
|
|
15638
15679
|
|
|
15639
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15680
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/opCodes/channelMergeState.js
|
|
15640
15681
|
var OP_BOTH_RUNNING = "BothRunning";
|
|
15641
15682
|
var OP_LEFT_DONE = "LeftDone";
|
|
15642
15683
|
var OP_RIGHT_DONE = "RightDone";
|
|
15643
15684
|
|
|
15644
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15685
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/channel/mergeState.js
|
|
15645
15686
|
var MergeStateSymbolKey = "effect/ChannelMergeState";
|
|
15646
15687
|
var MergeStateTypeId = /* @__PURE__ */ Symbol.for(MergeStateSymbolKey);
|
|
15647
15688
|
var proto11 = {
|
|
@@ -15667,11 +15708,11 @@ var RightDone = (f) => {
|
|
|
15667
15708
|
return op;
|
|
15668
15709
|
};
|
|
15669
15710
|
|
|
15670
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15711
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/opCodes/channelMergeStrategy.js
|
|
15671
15712
|
var OP_BACK_PRESSURE = "BackPressure";
|
|
15672
15713
|
var OP_BUFFER_SLIDING = "BufferSliding";
|
|
15673
15714
|
|
|
15674
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15715
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/channel/mergeStrategy.js
|
|
15675
15716
|
var MergeStrategySymbolKey = "effect/ChannelMergeStrategy";
|
|
15676
15717
|
var MergeStrategyTypeId = /* @__PURE__ */ Symbol.for(MergeStrategySymbolKey);
|
|
15677
15718
|
var proto12 = {
|
|
@@ -15701,7 +15742,7 @@ var match13 = /* @__PURE__ */ dual(2, (self, {
|
|
|
15701
15742
|
}
|
|
15702
15743
|
});
|
|
15703
15744
|
|
|
15704
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15745
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/channel/singleProducerAsyncInput.js
|
|
15705
15746
|
var OP_STATE_EMPTY = "Empty";
|
|
15706
15747
|
var OP_STATE_EMIT = "Emit";
|
|
15707
15748
|
var OP_STATE_ERROR = "Error";
|
|
@@ -15728,7 +15769,7 @@ var SingleProducerAsyncInputImpl = class {
|
|
|
15728
15769
|
this.ref = ref;
|
|
15729
15770
|
}
|
|
15730
15771
|
awaitRead() {
|
|
15731
|
-
return flatten5(modify4(this.ref, (state) => state._tag === OP_STATE_EMPTY ? [
|
|
15772
|
+
return flatten5(modify4(this.ref, (state) => state._tag === OP_STATE_EMPTY ? [_await3(state.notifyProducer), state] : [_void, state]));
|
|
15732
15773
|
}
|
|
15733
15774
|
get close() {
|
|
15734
15775
|
return fiberIdWith2((fiberId2) => this.error(interrupt3(fiberId2)));
|
|
@@ -15737,10 +15778,10 @@ var SingleProducerAsyncInputImpl = class {
|
|
|
15737
15778
|
return flatten5(modify4(this.ref, (state) => {
|
|
15738
15779
|
switch (state._tag) {
|
|
15739
15780
|
case OP_STATE_EMPTY: {
|
|
15740
|
-
return [
|
|
15781
|
+
return [_await3(state.notifyProducer), state];
|
|
15741
15782
|
}
|
|
15742
15783
|
case OP_STATE_EMIT: {
|
|
15743
|
-
return [forEach8(state.notifyConsumers, (deferred) =>
|
|
15784
|
+
return [forEach8(state.notifyConsumers, (deferred) => succeed5(deferred, left2(value2)), {
|
|
15744
15785
|
discard: true
|
|
15745
15786
|
}), stateDone(value2)];
|
|
15746
15787
|
}
|
|
@@ -15754,16 +15795,16 @@ var SingleProducerAsyncInputImpl = class {
|
|
|
15754
15795
|
}));
|
|
15755
15796
|
}
|
|
15756
15797
|
emit(element) {
|
|
15757
|
-
return flatMap9(
|
|
15798
|
+
return flatMap9(make39(), (deferred) => flatten5(modify4(this.ref, (state) => {
|
|
15758
15799
|
switch (state._tag) {
|
|
15759
15800
|
case OP_STATE_EMPTY: {
|
|
15760
|
-
return [
|
|
15801
|
+
return [_await3(state.notifyProducer), state];
|
|
15761
15802
|
}
|
|
15762
15803
|
case OP_STATE_EMIT: {
|
|
15763
15804
|
const notifyConsumer = state.notifyConsumers[0];
|
|
15764
15805
|
const notifyConsumers = state.notifyConsumers.slice(1);
|
|
15765
15806
|
if (notifyConsumer !== void 0) {
|
|
15766
|
-
return [
|
|
15807
|
+
return [succeed5(notifyConsumer, right2(element)), notifyConsumers.length === 0 ? stateEmpty(deferred) : stateEmit(notifyConsumers)];
|
|
15767
15808
|
}
|
|
15768
15809
|
throw new Error("Bug: Channel.SingleProducerAsyncInput.emit - Queue was empty! please report an issue at https://github.com/Effect-TS/effect/issues");
|
|
15769
15810
|
}
|
|
@@ -15780,10 +15821,10 @@ var SingleProducerAsyncInputImpl = class {
|
|
|
15780
15821
|
return flatten5(modify4(this.ref, (state) => {
|
|
15781
15822
|
switch (state._tag) {
|
|
15782
15823
|
case OP_STATE_EMPTY: {
|
|
15783
|
-
return [
|
|
15824
|
+
return [_await3(state.notifyProducer), state];
|
|
15784
15825
|
}
|
|
15785
15826
|
case OP_STATE_EMIT: {
|
|
15786
|
-
return [forEach8(state.notifyConsumers, (deferred) =>
|
|
15827
|
+
return [forEach8(state.notifyConsumers, (deferred) => failCause5(deferred, cause2), {
|
|
15787
15828
|
discard: true
|
|
15788
15829
|
}), stateError(cause2)];
|
|
15789
15830
|
}
|
|
@@ -15797,13 +15838,13 @@ var SingleProducerAsyncInputImpl = class {
|
|
|
15797
15838
|
}));
|
|
15798
15839
|
}
|
|
15799
15840
|
get take() {
|
|
15800
|
-
return this.takeWith((cause2) =>
|
|
15841
|
+
return this.takeWith((cause2) => failCause3(map14(cause2, left2)), (elem) => succeed3(elem), (done7) => fail3(right2(done7)));
|
|
15801
15842
|
}
|
|
15802
15843
|
takeWith(onError4, onElement, onDone2) {
|
|
15803
|
-
return flatMap9(
|
|
15844
|
+
return flatMap9(make39(), (deferred) => flatten5(modify4(this.ref, (state) => {
|
|
15804
15845
|
switch (state._tag) {
|
|
15805
15846
|
case OP_STATE_EMPTY: {
|
|
15806
|
-
return [zipRight3(
|
|
15847
|
+
return [zipRight3(succeed5(state.notifyProducer, void 0), matchCause3(_await3(deferred), {
|
|
15807
15848
|
onFailure: onError4,
|
|
15808
15849
|
onSuccess: match({
|
|
15809
15850
|
onLeft: onDone2,
|
|
@@ -15812,7 +15853,7 @@ var SingleProducerAsyncInputImpl = class {
|
|
|
15812
15853
|
})), stateEmit([deferred])];
|
|
15813
15854
|
}
|
|
15814
15855
|
case OP_STATE_EMIT: {
|
|
15815
|
-
return [matchCause3(
|
|
15856
|
+
return [matchCause3(_await3(deferred), {
|
|
15816
15857
|
onFailure: onError4,
|
|
15817
15858
|
onSuccess: match({
|
|
15818
15859
|
onLeft: onDone2,
|
|
@@ -15830,9 +15871,9 @@ var SingleProducerAsyncInputImpl = class {
|
|
|
15830
15871
|
})));
|
|
15831
15872
|
}
|
|
15832
15873
|
};
|
|
15833
|
-
var make45 = () => pipe(
|
|
15874
|
+
var make45 = () => pipe(make39(), flatMap9((deferred) => make24(stateEmpty(deferred))), map17((ref) => new SingleProducerAsyncInputImpl(ref)));
|
|
15834
15875
|
|
|
15835
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15876
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/channel.js
|
|
15836
15877
|
var concatMap = /* @__PURE__ */ dual(2, (self, f) => concatMapWith(self, f, () => void 0, () => void 0));
|
|
15837
15878
|
var drain = (self) => {
|
|
15838
15879
|
const drainer = readWithCause({
|
|
@@ -15854,7 +15895,7 @@ var mapOut = /* @__PURE__ */ dual(2, (self, f) => {
|
|
|
15854
15895
|
});
|
|
15855
15896
|
return pipeTo(self, reader);
|
|
15856
15897
|
});
|
|
15857
|
-
var
|
|
15898
|
+
var mergeAll5 = (options3) => {
|
|
15858
15899
|
return (channels) => mergeAllWith(options3)(channels, constVoid);
|
|
15859
15900
|
};
|
|
15860
15901
|
var mergeAllWith = ({
|
|
@@ -15869,8 +15910,8 @@ var mergeAllWith = ({
|
|
|
15869
15910
|
yield* addFinalizer2(scope4, shutdown2(queue));
|
|
15870
15911
|
const cancelers = yield* unbounded3();
|
|
15871
15912
|
yield* addFinalizer2(scope4, shutdown2(cancelers));
|
|
15872
|
-
const lastDone = yield*
|
|
15873
|
-
const errorSignal = yield*
|
|
15913
|
+
const lastDone = yield* make24(none2());
|
|
15914
|
+
const errorSignal = yield* make39();
|
|
15874
15915
|
const withPermits = (yield* makeSemaphore2(concurrencyN)).withPermits;
|
|
15875
15916
|
const pull = yield* toPullIn(pipeTo(queueReader, channels), scope4);
|
|
15876
15917
|
function evaluatePull(pull2) {
|
|
@@ -15882,12 +15923,12 @@ var mergeAllWith = ({
|
|
|
15882
15923
|
}), flatMap9((outDone) => update3(lastDone, match2({
|
|
15883
15924
|
onNone: () => some2(outDone.value),
|
|
15884
15925
|
onSome: (lastDone2) => some2(f(lastDone2, outDone.value))
|
|
15885
|
-
}))), catchAllCause2((cause2) =>
|
|
15926
|
+
}))), catchAllCause2((cause2) => isInterrupted2(cause2) ? failCause6(cause2) : offer3(queue, failCause6(cause2)).pipe(zipRight3(succeed5(errorSignal, void 0)), asVoid2)));
|
|
15886
15927
|
}
|
|
15887
15928
|
yield* pull.pipe(matchCauseEffect3({
|
|
15888
15929
|
onFailure: (cause2) => offer3(queue, failCause6(cause2)).pipe(zipRight3(succeed7(false))),
|
|
15889
15930
|
onSuccess: match({
|
|
15890
|
-
onLeft: (outDone) => raceWith2(interruptible4(
|
|
15931
|
+
onLeft: (outDone) => raceWith2(interruptible4(_await3(errorSignal)), interruptible4(withPermits(concurrencyN)(_void)), {
|
|
15891
15932
|
onSelfDone: (_, permitAcquisition) => as4(interrupt4(permitAcquisition), false),
|
|
15892
15933
|
onOtherDone: (_, failureAwait) => zipRight3(interrupt4(failureAwait), get11(lastDone).pipe(flatMap9(match2({
|
|
15893
15934
|
onNone: () => offer3(queue, succeed7(left2(outDone))),
|
|
@@ -15896,23 +15937,23 @@ var mergeAllWith = ({
|
|
|
15896
15937
|
}),
|
|
15897
15938
|
onRight: (channel) => match13(mergeStrategy, {
|
|
15898
15939
|
onBackPressure: () => gen2(function* () {
|
|
15899
|
-
const latch = yield*
|
|
15900
|
-
const raceEffects = scopedWith2((scope5) => toPullIn(pipeTo(queueReader, channel), scope5).pipe(flatMap9((pull2) => race2(exit3(evaluatePull(pull2)), exit3(interruptible4(
|
|
15901
|
-
yield*
|
|
15902
|
-
yield*
|
|
15903
|
-
const errored = yield*
|
|
15940
|
+
const latch = yield* make39();
|
|
15941
|
+
const raceEffects = scopedWith2((scope5) => toPullIn(pipeTo(queueReader, channel), scope5).pipe(flatMap9((pull2) => race2(exit3(evaluatePull(pull2)), exit3(interruptible4(_await3(errorSignal))))), flatMap9(identity)));
|
|
15942
|
+
yield* succeed5(latch, void 0).pipe(zipRight3(raceEffects), withPermits(1), forkIn2(scope4));
|
|
15943
|
+
yield* _await3(latch);
|
|
15944
|
+
const errored = yield* isDone5(errorSignal);
|
|
15904
15945
|
return !errored;
|
|
15905
15946
|
}),
|
|
15906
15947
|
onBufferSliding: () => gen2(function* () {
|
|
15907
|
-
const canceler = yield*
|
|
15908
|
-
const latch = yield*
|
|
15948
|
+
const canceler = yield* make39();
|
|
15949
|
+
const latch = yield* make39();
|
|
15909
15950
|
const size11 = yield* size10(cancelers);
|
|
15910
|
-
yield* take2(cancelers).pipe(flatMap9((canceler2) =>
|
|
15951
|
+
yield* take2(cancelers).pipe(flatMap9((canceler2) => succeed5(canceler2, void 0)), when2(() => size11 >= concurrencyN));
|
|
15911
15952
|
yield* offer3(cancelers, canceler);
|
|
15912
|
-
const raceEffects = scopedWith2((scope5) => toPullIn(pipeTo(queueReader, channel), scope5).pipe(flatMap9((pull2) => exit3(evaluatePull(pull2)).pipe(race2(exit3(interruptible4(
|
|
15913
|
-
yield*
|
|
15914
|
-
yield*
|
|
15915
|
-
const errored = yield*
|
|
15953
|
+
const raceEffects = scopedWith2((scope5) => toPullIn(pipeTo(queueReader, channel), scope5).pipe(flatMap9((pull2) => exit3(evaluatePull(pull2)).pipe(race2(exit3(interruptible4(_await3(errorSignal)))), race2(exit3(interruptible4(_await3(canceler)))))), flatMap9(identity)));
|
|
15954
|
+
yield* succeed5(latch, void 0).pipe(zipRight3(raceEffects), withPermits(1), forkIn2(scope4));
|
|
15955
|
+
yield* _await3(latch);
|
|
15956
|
+
const errored = yield* isDone5(errorSignal);
|
|
15916
15957
|
return !errored;
|
|
15917
15958
|
})
|
|
15918
15959
|
})
|
|
@@ -15929,7 +15970,7 @@ var mergeAllWith = ({
|
|
|
15929
15970
|
}), unwrap);
|
|
15930
15971
|
return embedInput(consumer, input);
|
|
15931
15972
|
}));
|
|
15932
|
-
var mergeMap = /* @__PURE__ */ dual(3, (self, f, options3) =>
|
|
15973
|
+
var mergeMap = /* @__PURE__ */ dual(3, (self, f, options3) => mergeAll5(options3)(mapOut(self, f)));
|
|
15933
15974
|
var mergeWith2 = /* @__PURE__ */ dual(2, (self, options3) => {
|
|
15934
15975
|
function merge9(scope4) {
|
|
15935
15976
|
return gen2(function* () {
|
|
@@ -15944,18 +15985,18 @@ var mergeWith2 = /* @__PURE__ */ dual(2, (self, options3) => {
|
|
|
15944
15985
|
if (op._tag === OP_DONE4) {
|
|
15945
15986
|
return succeed7(fromEffect4(zipRight3(interrupt4(fiber), op.effect)));
|
|
15946
15987
|
}
|
|
15947
|
-
return map17(
|
|
15948
|
-
onFailure: (cause2) => fromEffect4(op.f(
|
|
15988
|
+
return map17(_await2(fiber), match9({
|
|
15989
|
+
onFailure: (cause2) => fromEffect4(op.f(failCause3(cause2))),
|
|
15949
15990
|
onSuccess: match({
|
|
15950
|
-
onLeft: (done8) => fromEffect4(op.f(
|
|
15991
|
+
onLeft: (done8) => fromEffect4(op.f(succeed3(done8))),
|
|
15951
15992
|
onRight: (elem) => zipRight4(write(elem), go2(single(op.f)))
|
|
15952
15993
|
})
|
|
15953
15994
|
}));
|
|
15954
15995
|
}
|
|
15955
15996
|
return match9(exit4, {
|
|
15956
|
-
onFailure: (cause2) => onDecision(done7(
|
|
15997
|
+
onFailure: (cause2) => onDecision(done7(failCause3(cause2))),
|
|
15957
15998
|
onSuccess: match({
|
|
15958
|
-
onLeft: (z) => onDecision(done7(
|
|
15999
|
+
onLeft: (z) => onDecision(done7(succeed3(z))),
|
|
15959
16000
|
onRight: (elem) => succeed7(flatMap12(write(elem), () => flatMap12(fromEffect4(forkIn2(interruptible4(pull), scope4)), (leftFiber) => go2(both2(leftFiber, fiber)))))
|
|
15960
16001
|
})
|
|
15961
16002
|
});
|
|
@@ -15973,18 +16014,18 @@ var mergeWith2 = /* @__PURE__ */ dual(2, (self, options3) => {
|
|
|
15973
16014
|
}
|
|
15974
16015
|
case OP_LEFT_DONE: {
|
|
15975
16016
|
return unwrap(map17(exit3(pullR), match9({
|
|
15976
|
-
onFailure: (cause2) => fromEffect4(state.f(
|
|
16017
|
+
onFailure: (cause2) => fromEffect4(state.f(failCause3(cause2))),
|
|
15977
16018
|
onSuccess: match({
|
|
15978
|
-
onLeft: (done7) => fromEffect4(state.f(
|
|
16019
|
+
onLeft: (done7) => fromEffect4(state.f(succeed3(done7))),
|
|
15979
16020
|
onRight: (elem) => flatMap12(write(elem), () => go2(LeftDone(state.f)))
|
|
15980
16021
|
})
|
|
15981
16022
|
})));
|
|
15982
16023
|
}
|
|
15983
16024
|
case OP_RIGHT_DONE: {
|
|
15984
16025
|
return unwrap(map17(exit3(pullL), match9({
|
|
15985
|
-
onFailure: (cause2) => fromEffect4(state.f(
|
|
16026
|
+
onFailure: (cause2) => fromEffect4(state.f(failCause3(cause2))),
|
|
15986
16027
|
onSuccess: match({
|
|
15987
|
-
onLeft: (done7) => fromEffect4(state.f(
|
|
16028
|
+
onLeft: (done7) => fromEffect4(state.f(succeed3(done7))),
|
|
15988
16029
|
onRight: (elem) => flatMap12(write(elem), () => go2(RightDone(state.f)))
|
|
15989
16030
|
})
|
|
15990
16031
|
})));
|
|
@@ -15998,7 +16039,7 @@ var mergeWith2 = /* @__PURE__ */ dual(2, (self, options3) => {
|
|
|
15998
16039
|
});
|
|
15999
16040
|
const leftFiber = interruptible4(pullL).pipe(ensuring2(inherit), forkIn2(scope4));
|
|
16000
16041
|
const rightFiber = interruptible4(pullR).pipe(ensuring2(inherit), forkIn2(scope4));
|
|
16001
|
-
return
|
|
16042
|
+
return zipWith3(leftFiber, rightFiber, (left3, right3) => BothRunning(left3, right3));
|
|
16002
16043
|
})).pipe(flatMap12(go2), embedInput(input));
|
|
16003
16044
|
});
|
|
16004
16045
|
}
|
|
@@ -16023,12 +16064,12 @@ var pipeToOrFail = /* @__PURE__ */ dual(2, (self, that) => suspend5(() => {
|
|
|
16023
16064
|
}));
|
|
16024
16065
|
var run = (self) => scopedWith2((scope4) => runIn(self, scope4));
|
|
16025
16066
|
var runDrain = (self) => run(drain(self));
|
|
16026
|
-
var scoped3 = (effect3) => unwrap(uninterruptibleMask3((restore) => map17(
|
|
16067
|
+
var scoped3 = (effect3) => unwrap(uninterruptibleMask3((restore) => map17(make37(), (scope4) => acquireReleaseOut(tapErrorCause2(restore(extend2(effect3, scope4)), (cause2) => close(scope4, failCause3(cause2))), (_, exit4) => close(scope4, exit4)))));
|
|
16027
16068
|
var scopedWith3 = (f) => unwrapScoped2(map17(scope2, (scope4) => flatMap12(fromEffect4(f(scope4)), write)));
|
|
16028
16069
|
var toPullIn = /* @__PURE__ */ dual(2, (self, scope4) => zip5(sync4(() => new ChannelExecutor(self, void 0, identity)), runtime3()).pipe(tap2(([executor, runtime4]) => addFinalizerExit(scope4, (exit4) => {
|
|
16029
16070
|
const finalizer2 = executor.close(exit4);
|
|
16030
16071
|
return finalizer2 !== void 0 ? provide2(finalizer2, runtime4) : _void;
|
|
16031
|
-
})), uninterruptible2, map17(([executor]) =>
|
|
16072
|
+
})), uninterruptible2, map17(([executor]) => suspend3(() => interpretToPull(executor.run(), executor)))));
|
|
16032
16073
|
var interpretToPull = (channelState, exec) => {
|
|
16033
16074
|
const state = channelState;
|
|
16034
16075
|
switch (state._tag) {
|
|
@@ -16058,8 +16099,8 @@ var writeChunkWriter = (idx, len, chunk2) => {
|
|
|
16058
16099
|
};
|
|
16059
16100
|
var zip6 = /* @__PURE__ */ dual((args2) => isChannel(args2[1]), (self, that, options3) => options3?.concurrent ? mergeWith2(self, {
|
|
16060
16101
|
other: that,
|
|
16061
|
-
onSelfDone: (exit1) => Await((exit22) =>
|
|
16062
|
-
onOtherDone: (exit22) => Await((exit1) =>
|
|
16102
|
+
onSelfDone: (exit1) => Await((exit22) => suspend3(() => zip3(exit1, exit22))),
|
|
16103
|
+
onOtherDone: (exit22) => Await((exit1) => suspend3(() => zip3(exit1, exit22)))
|
|
16063
16104
|
}) : flatMap12(self, (a) => map20(that, (b) => [a, b])));
|
|
16064
16105
|
var zipRight4 = /* @__PURE__ */ dual((args2) => isChannel(args2[1]), (self, that, options3) => options3?.concurrent ? map20(zip6(self, that, {
|
|
16065
16106
|
concurrent: true
|
|
@@ -16072,10 +16113,10 @@ var ChannelException = (error) => ({
|
|
|
16072
16113
|
});
|
|
16073
16114
|
var isChannelException = (u) => hasProperty(u, ChannelExceptionTypeId);
|
|
16074
16115
|
|
|
16075
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
16116
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Runtime.js
|
|
16076
16117
|
var runFork3 = unsafeFork3;
|
|
16077
16118
|
|
|
16078
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
16119
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/sink.js
|
|
16079
16120
|
var SinkTypeId2 = /* @__PURE__ */ Symbol.for("effect/Sink");
|
|
16080
16121
|
var sinkVariance2 = {
|
|
16081
16122
|
/* c8 ignore next */
|
|
@@ -16110,7 +16151,7 @@ var forEachChunk = (f) => {
|
|
|
16110
16151
|
var fromEffect6 = (effect3) => new SinkImpl(fromEffect4(effect3));
|
|
16111
16152
|
var toChannel = (self) => isEffect2(self) ? toChannel(fromEffect6(self)) : self.channel;
|
|
16112
16153
|
|
|
16113
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
16154
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/internal/stream.js
|
|
16114
16155
|
var StreamSymbolKey = "effect/Stream";
|
|
16115
16156
|
var StreamTypeId2 = /* @__PURE__ */ Symbol.for(StreamSymbolKey);
|
|
16116
16157
|
var streamVariance = {
|
|
@@ -16129,7 +16170,7 @@ var StreamImpl = class {
|
|
|
16129
16170
|
}
|
|
16130
16171
|
};
|
|
16131
16172
|
var isStream = (u) => hasProperty(u, StreamTypeId2) || isEffect2(u);
|
|
16132
|
-
var
|
|
16173
|
+
var ensuring4 = /* @__PURE__ */ dual(2, (self, finalizer2) => new StreamImpl(pipe(toChannel2(self), ensuring3(finalizer2))));
|
|
16133
16174
|
var fail11 = (error) => fromEffectOption(fail6(some2(error)));
|
|
16134
16175
|
var flatMap14 = /* @__PURE__ */ dual((args2) => isStream(args2[0]), (self, f, options3) => {
|
|
16135
16176
|
const bufferSize = options3?.bufferSize ?? 16;
|
|
@@ -16243,8 +16284,8 @@ var unfoldChunkEffect = (s, f) => suspend6(() => {
|
|
|
16243
16284
|
});
|
|
16244
16285
|
var unwrapScoped3 = (effect3) => flatten10(scoped4(effect3));
|
|
16245
16286
|
|
|
16246
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
16247
|
-
var
|
|
16287
|
+
// ../../../node_modules/.pnpm/effect@3.19.4/node_modules/effect/dist/esm/Stream.js
|
|
16288
|
+
var ensuring5 = ensuring4;
|
|
16248
16289
|
var fail12 = fail11;
|
|
16249
16290
|
var fromReadableStream2 = fromReadableStream;
|
|
16250
16291
|
var suspend7 = suspend6;
|
|
@@ -16258,7 +16299,7 @@ var TypeIdError = (typeId, tag2) => {
|
|
|
16258
16299
|
return Base3;
|
|
16259
16300
|
};
|
|
16260
16301
|
|
|
16261
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
16302
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.4/node_modules/@effect/platform/dist/esm/Cookies.js
|
|
16262
16303
|
var TypeId18 = /* @__PURE__ */ Symbol.for("@effect/platform/Cookies");
|
|
16263
16304
|
var CookieTypeId = /* @__PURE__ */ Symbol.for("@effect/platform/Cookies/Cookie");
|
|
16264
16305
|
var Proto2 = {
|
|
@@ -16441,7 +16482,7 @@ var tryDecodeURIComponent = (str) => {
|
|
|
16441
16482
|
}
|
|
16442
16483
|
};
|
|
16443
16484
|
|
|
16444
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
16485
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.4/node_modules/@effect/platform/dist/esm/Headers.js
|
|
16445
16486
|
var HeadersTypeId = /* @__PURE__ */ Symbol.for("@effect/platform/Headers");
|
|
16446
16487
|
var Proto3 = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
16447
16488
|
[HeadersTypeId]: HeadersTypeId,
|
|
@@ -16540,10 +16581,10 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
|
16540
16581
|
});
|
|
16541
16582
|
var currentRedactedNames = /* @__PURE__ */ globalValue("@effect/platform/Headers/currentRedactedNames", () => unsafeMake7(["authorization", "cookie", "set-cookie", "x-api-key"]));
|
|
16542
16583
|
|
|
16543
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
16584
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.4/node_modules/@effect/platform/dist/esm/internal/httpClientError.js
|
|
16544
16585
|
var TypeId19 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpClientError");
|
|
16545
16586
|
|
|
16546
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
16587
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.4/node_modules/@effect/platform/dist/esm/HttpClientError.js
|
|
16547
16588
|
var TypeId20 = TypeId19;
|
|
16548
16589
|
var RequestError = class extends (/* @__PURE__ */ TypeIdError(TypeId20, "RequestError")) {
|
|
16549
16590
|
get methodAndUrl() {
|
|
@@ -16563,7 +16604,7 @@ var ResponseError = class extends (/* @__PURE__ */ TypeIdError(TypeId20, "Respon
|
|
|
16563
16604
|
}
|
|
16564
16605
|
};
|
|
16565
16606
|
|
|
16566
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
16607
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.4/node_modules/@effect/platform/dist/esm/UrlParams.js
|
|
16567
16608
|
var fromInput3 = (input) => {
|
|
16568
16609
|
const parsed = fromInputNested(input);
|
|
16569
16610
|
const out = [];
|
|
@@ -16600,9 +16641,16 @@ var fromInputNested = (input) => {
|
|
|
16600
16641
|
};
|
|
16601
16642
|
var empty31 = [];
|
|
16602
16643
|
var setAll4 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
16603
|
-
const
|
|
16604
|
-
const keys6 =
|
|
16605
|
-
|
|
16644
|
+
const out = fromInput3(input);
|
|
16645
|
+
const keys6 = /* @__PURE__ */ new Set();
|
|
16646
|
+
for (let i = 0; i < out.length; i++) {
|
|
16647
|
+
keys6.add(out[i][0]);
|
|
16648
|
+
}
|
|
16649
|
+
for (let i = 0; i < self.length; i++) {
|
|
16650
|
+
if (keys6.has(self[i][0])) continue;
|
|
16651
|
+
out.push(self[i]);
|
|
16652
|
+
}
|
|
16653
|
+
return out;
|
|
16606
16654
|
});
|
|
16607
16655
|
var makeUrl = (url, params, hash2) => {
|
|
16608
16656
|
try {
|
|
@@ -16628,7 +16676,7 @@ var baseUrl = () => {
|
|
|
16628
16676
|
return void 0;
|
|
16629
16677
|
};
|
|
16630
16678
|
|
|
16631
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
16679
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.4/node_modules/@effect/platform/dist/esm/HttpIncomingMessage.js
|
|
16632
16680
|
var TypeId21 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpIncomingMessage");
|
|
16633
16681
|
var schemaBodyJson = (schema, options3) => {
|
|
16634
16682
|
const parse2 = decodeUnknown2(schema, options3);
|
|
@@ -16659,13 +16707,13 @@ var inspect = (self, that) => {
|
|
|
16659
16707
|
return obj;
|
|
16660
16708
|
};
|
|
16661
16709
|
|
|
16662
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
16710
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.4/node_modules/@effect/platform/dist/esm/HttpTraceContext.js
|
|
16663
16711
|
var toHeaders = (span2) => unsafeFromRecord({
|
|
16664
16712
|
b3: `${span2.traceId}-${span2.spanId}-${span2.sampled ? "1" : "0"}${span2.parent._tag === "Some" ? `-${span2.parent.value.spanId}` : ""}`,
|
|
16665
16713
|
traceparent: `00-${span2.traceId}-${span2.spanId}-${span2.sampled ? "01" : "00"}`
|
|
16666
16714
|
});
|
|
16667
16715
|
|
|
16668
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
16716
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.4/node_modules/@effect/platform/dist/esm/internal/httpBody.js
|
|
16669
16717
|
var TypeId22 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpBody");
|
|
16670
16718
|
var ErrorTypeId = /* @__PURE__ */ Symbol.for("@effect/platform/HttpBody/HttpBodyError");
|
|
16671
16719
|
var bodyError = /* @__PURE__ */ tagged2("HttpBodyError");
|
|
@@ -16730,7 +16778,7 @@ var json = (body) => try_2({
|
|
|
16730
16778
|
})
|
|
16731
16779
|
});
|
|
16732
16780
|
|
|
16733
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
16781
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.4/node_modules/@effect/platform/dist/esm/internal/httpClientRequest.js
|
|
16734
16782
|
var TypeId23 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpClientRequest");
|
|
16735
16783
|
var Proto4 = {
|
|
16736
16784
|
[TypeId23]: TypeId23,
|
|
@@ -16837,7 +16885,7 @@ var setBody = /* @__PURE__ */ dual(2, (self, body) => {
|
|
|
16837
16885
|
});
|
|
16838
16886
|
var bodyJson = /* @__PURE__ */ dual(2, (self, body) => map17(json(body), (body2) => setBody(self, body2)));
|
|
16839
16887
|
|
|
16840
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
16888
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.4/node_modules/@effect/platform/dist/esm/internal/httpClientResponse.js
|
|
16841
16889
|
var TypeId24 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpClientResponse");
|
|
16842
16890
|
var fromWeb = (request, source) => new ClientResponseImpl(request, source);
|
|
16843
16891
|
var ClientResponseImpl = class extends Class {
|
|
@@ -16948,7 +16996,17 @@ var ClientResponseImpl = class extends Class {
|
|
|
16948
16996
|
}
|
|
16949
16997
|
};
|
|
16950
16998
|
|
|
16951
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
16999
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.4/node_modules/@effect/platform/dist/esm/internal/httpClient.js
|
|
17000
|
+
var ATTR_HTTP_REQUEST_HEADER = (key) => `http.request.header.${key}`;
|
|
17001
|
+
var ATTR_HTTP_REQUEST_METHOD = "http.request.method";
|
|
17002
|
+
var ATTR_HTTP_RESPONSE_HEADER = (key) => `http.response.header.${key}`;
|
|
17003
|
+
var ATTR_HTTP_RESPONSE_STATUS_CODE = "http.response.status_code";
|
|
17004
|
+
var ATTR_SERVER_ADDRESS = "server.address";
|
|
17005
|
+
var ATTR_SERVER_PORT = "server.port";
|
|
17006
|
+
var ATTR_URL_FULL = "url.full";
|
|
17007
|
+
var ATTR_URL_PATH = "url.path";
|
|
17008
|
+
var ATTR_URL_SCHEME = "url.scheme";
|
|
17009
|
+
var ATTR_URL_QUERY = "url.query";
|
|
16952
17010
|
var TypeId25 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpClient");
|
|
16953
17011
|
var tag = /* @__PURE__ */ GenericTag("@effect/platform/HttpClient");
|
|
16954
17012
|
var currentTracerDisabledWhen = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("@effect/platform/HttpClient/tracerDisabledWhen"), () => unsafeMake7(constFalse));
|
|
@@ -17048,7 +17106,7 @@ var make49 = (f) => makeWith((effect3) => flatMap9(effect3, (request) => withFib
|
|
|
17048
17106
|
return succeed7(new InterruptibleResponse(response, controller));
|
|
17049
17107
|
},
|
|
17050
17108
|
onFailure(cause2) {
|
|
17051
|
-
if (
|
|
17109
|
+
if (isInterrupted2(cause2)) {
|
|
17052
17110
|
controller.abort();
|
|
17053
17111
|
}
|
|
17054
17112
|
return failCause6(cause2);
|
|
@@ -17090,7 +17148,7 @@ var make49 = (f) => makeWith((effect3) => flatMap9(effect3, (request) => withFib
|
|
|
17090
17148
|
return succeed7(new InterruptibleResponse(response, controller));
|
|
17091
17149
|
},
|
|
17092
17150
|
onFailure(cause2) {
|
|
17093
|
-
if (!scopedController &&
|
|
17151
|
+
if (!scopedController && isInterrupted2(cause2)) {
|
|
17094
17152
|
controller.abort();
|
|
17095
17153
|
}
|
|
17096
17154
|
return failCause6(cause2);
|
|
@@ -17108,7 +17166,7 @@ var InterruptibleResponse = class {
|
|
|
17108
17166
|
[TypeId24] = TypeId24;
|
|
17109
17167
|
[TypeId21] = TypeId21;
|
|
17110
17168
|
applyInterrupt(effect3) {
|
|
17111
|
-
return
|
|
17169
|
+
return suspend3(() => {
|
|
17112
17170
|
responseRegistry.unregister(this.original);
|
|
17113
17171
|
return onInterrupt2(effect3, () => sync4(() => {
|
|
17114
17172
|
this.controller.abort();
|
|
@@ -17148,12 +17206,9 @@ var InterruptibleResponse = class {
|
|
|
17148
17206
|
get stream() {
|
|
17149
17207
|
return suspend7(() => {
|
|
17150
17208
|
responseRegistry.unregister(this.original);
|
|
17151
|
-
return
|
|
17152
|
-
|
|
17153
|
-
|
|
17154
|
-
}
|
|
17155
|
-
return _void;
|
|
17156
|
-
});
|
|
17209
|
+
return ensuring5(this.original.stream, sync4(() => {
|
|
17210
|
+
this.controller.abort();
|
|
17211
|
+
}));
|
|
17157
17212
|
});
|
|
17158
17213
|
}
|
|
17159
17214
|
toJSON() {
|
|
@@ -17187,16 +17242,16 @@ var transformResponse = /* @__PURE__ */ dual(2, (self, f) => {
|
|
|
17187
17242
|
});
|
|
17188
17243
|
var layerMergedContext = (effect3) => effect(tag, flatMap9(context2(), (context5) => map17(effect3, (client) => transformResponse(client, mapInputContext2((input) => merge3(context5, input))))));
|
|
17189
17244
|
|
|
17190
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
17245
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.4/node_modules/@effect/platform/dist/esm/HttpClient.js
|
|
17191
17246
|
var HttpClient = tag;
|
|
17192
17247
|
|
|
17193
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
17248
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.4/node_modules/@effect/platform/dist/esm/HttpClientRequest.js
|
|
17194
17249
|
var get17 = get15;
|
|
17195
17250
|
var post3 = post;
|
|
17196
17251
|
var setUrlParams2 = setUrlParams;
|
|
17197
17252
|
var bodyJson2 = bodyJson;
|
|
17198
17253
|
|
|
17199
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
17254
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.4/node_modules/@effect/platform/dist/esm/internal/fetchHttpClient.js
|
|
17200
17255
|
var fetchTagKey = "@effect/platform/FetchHttpClient/Fetch";
|
|
17201
17256
|
var requestInitTagKey = "@effect/platform/FetchHttpClient/FetchOptions";
|
|
17202
17257
|
var fetch = /* @__PURE__ */ make49((request, url, signal, fiber) => {
|
|
@@ -17232,7 +17287,7 @@ var fetch = /* @__PURE__ */ make49((request, url, signal, fiber) => {
|
|
|
17232
17287
|
});
|
|
17233
17288
|
var layer = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed7(fetch));
|
|
17234
17289
|
|
|
17235
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
17290
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.4/node_modules/@effect/platform/dist/esm/FetchHttpClient.js
|
|
17236
17291
|
var layer2 = layer;
|
|
17237
17292
|
|
|
17238
17293
|
// ../../utils/dist/effect/Resource/schema.js
|
|
@@ -17420,6 +17475,9 @@ Logging_exports.filterLevelOrNever;
|
|
|
17420
17475
|
var InvalidAjaxMethodError = class extends TaggedError(
|
|
17421
17476
|
"@brytdesigns/ajax-client/InvalidAjaxMethodError"
|
|
17422
17477
|
) {
|
|
17478
|
+
/**
|
|
17479
|
+
* Constructs a new instance of InvalidAjaxMethodError with a default error message.
|
|
17480
|
+
*/
|
|
17423
17481
|
constructor() {
|
|
17424
17482
|
super({ message: "Invalid HTTP method | Allowed: 'get' or 'post'" });
|
|
17425
17483
|
}
|