create-efffrida-app 0.0.18 → 0.0.20
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/bin.cjs +508 -535
- package/package.json +5 -5
package/dist/bin.cjs
CHANGED
|
@@ -55,7 +55,7 @@ var __export = (target, all5) => {
|
|
|
55
55
|
__defProp(target, name, { get: all5[name], enumerable: true });
|
|
56
56
|
};
|
|
57
57
|
|
|
58
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
58
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Effect.js
|
|
59
59
|
var Effect_exports = {};
|
|
60
60
|
__export(Effect_exports, {
|
|
61
61
|
Do: () => Do2,
|
|
@@ -289,7 +289,7 @@ __export(Effect_exports, {
|
|
|
289
289
|
zipWith: () => zipWith2
|
|
290
290
|
});
|
|
291
291
|
|
|
292
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
292
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Pipeable.js
|
|
293
293
|
var pipeArguments = (self, args2) => {
|
|
294
294
|
switch (args2.length) {
|
|
295
295
|
case 0:
|
|
@@ -333,7 +333,7 @@ var Class = /* @__PURE__ */ (function() {
|
|
|
333
333
|
return PipeableBase;
|
|
334
334
|
})();
|
|
335
335
|
|
|
336
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
336
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Function.js
|
|
337
337
|
var dual = function(arity, body) {
|
|
338
338
|
if (typeof arity === "function") {
|
|
339
339
|
return function() {
|
|
@@ -407,7 +407,7 @@ function memoizeIdempotent(f2) {
|
|
|
407
407
|
};
|
|
408
408
|
}
|
|
409
409
|
|
|
410
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
410
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/equal.js
|
|
411
411
|
var getAllObjectKeys = (obj) => {
|
|
412
412
|
const keys2 = new Set(Reflect.ownKeys(obj));
|
|
413
413
|
if (obj.constructor === Object) return keys2;
|
|
@@ -431,13 +431,13 @@ var getAllObjectKeys = (obj) => {
|
|
|
431
431
|
var byReferenceInstances = /* @__PURE__ */ new WeakSet();
|
|
432
432
|
var viewBytes = (view) => new Uint8Array(view.buffer, view.byteOffset, view.byteLength);
|
|
433
433
|
|
|
434
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
434
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/hash.js
|
|
435
435
|
var backEdges = 0;
|
|
436
436
|
var addBackEdge = () => {
|
|
437
437
|
backEdges++;
|
|
438
438
|
};
|
|
439
439
|
|
|
440
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
440
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Predicate.js
|
|
441
441
|
function isString(input) {
|
|
442
442
|
return typeof input === "string";
|
|
443
443
|
}
|
|
@@ -483,7 +483,7 @@ function isIterable(input) {
|
|
|
483
483
|
return hasProperty(input, Symbol.iterator) || isString(input);
|
|
484
484
|
}
|
|
485
485
|
|
|
486
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
486
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Hash.js
|
|
487
487
|
var symbol = "~effect/Hash";
|
|
488
488
|
var hash = (self) => {
|
|
489
489
|
switch (typeof self) {
|
|
@@ -607,7 +607,7 @@ var randomHashCache = /* @__PURE__ */ new WeakMap();
|
|
|
607
607
|
var hashCache = /* @__PURE__ */ new WeakMap();
|
|
608
608
|
var visitedObjects = /* @__PURE__ */ new WeakSet();
|
|
609
609
|
|
|
610
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
610
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Equal.js
|
|
611
611
|
var symbol2 = "~effect/Equal";
|
|
612
612
|
function equals() {
|
|
613
613
|
if (arguments.length === 1) {
|
|
@@ -760,7 +760,7 @@ var entryHash = (entry) => hash(entry[0]);
|
|
|
760
760
|
var equalEntries = (self, that) => compareBoth(self[0], that[0]) && compareBoth(self[1], that[1]);
|
|
761
761
|
var isEqual = (u2) => hasProperty(u2, symbol2);
|
|
762
762
|
|
|
763
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
763
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Redactable.js
|
|
764
764
|
var symbolRedactable = /* @__PURE__ */ Symbol.for("~effect/Redactable");
|
|
765
765
|
var isRedactable = (u2) => hasProperty(u2, symbolRedactable);
|
|
766
766
|
function redact(u2) {
|
|
@@ -782,7 +782,7 @@ var emptyContext = {
|
|
|
782
782
|
}
|
|
783
783
|
};
|
|
784
784
|
|
|
785
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
785
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Formatter.js
|
|
786
786
|
function format(input, options) {
|
|
787
787
|
const space = options?.space ?? 0;
|
|
788
788
|
const ancestors = /* @__PURE__ */ new WeakSet();
|
|
@@ -906,7 +906,7 @@ function formatJson(input, options) {
|
|
|
906
906
|
}, options?.space) ?? "null";
|
|
907
907
|
}
|
|
908
908
|
|
|
909
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
909
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Inspectable.js
|
|
910
910
|
var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
|
|
911
911
|
var toJson = (input) => {
|
|
912
912
|
try {
|
|
@@ -973,7 +973,7 @@ var Class2 = class {
|
|
|
973
973
|
}
|
|
974
974
|
};
|
|
975
975
|
|
|
976
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
976
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/stackTraceLimit.js
|
|
977
977
|
var isStackTraceLimitWritable = () => {
|
|
978
978
|
const desc = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit");
|
|
979
979
|
if (desc === void 0) {
|
|
@@ -989,7 +989,7 @@ var setStackTraceLimit = (value3) => {
|
|
|
989
989
|
}
|
|
990
990
|
};
|
|
991
991
|
|
|
992
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
992
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Utils.js
|
|
993
993
|
var SingleShotGen = class {
|
|
994
994
|
constructor(self) {
|
|
995
995
|
this.value = self;
|
|
@@ -1037,7 +1037,7 @@ var pickInternalCall = () => {
|
|
|
1037
1037
|
};
|
|
1038
1038
|
var internalCall = /* @__PURE__ */ pickInternalCall();
|
|
1039
1039
|
|
|
1040
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
1040
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/record.js
|
|
1041
1041
|
function assignProperty(self, key, value3) {
|
|
1042
1042
|
if (key === "__proto__") {
|
|
1043
1043
|
Object.defineProperty(self, key, {
|
|
@@ -1058,7 +1058,7 @@ function assignProperties(self, source) {
|
|
|
1058
1058
|
}
|
|
1059
1059
|
}
|
|
1060
1060
|
|
|
1061
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
1061
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/core.js
|
|
1062
1062
|
var EffectTypeId = `~effect/Effect`;
|
|
1063
1063
|
var ExitTypeId = `~effect/Exit`;
|
|
1064
1064
|
var effectVariance = {
|
|
@@ -1201,6 +1201,32 @@ var Fail = class extends ReasonBase {
|
|
|
1201
1201
|
}
|
|
1202
1202
|
};
|
|
1203
1203
|
var causeFromReasons = (reasons) => new CauseImpl(reasons);
|
|
1204
|
+
var dedupeReasons = (self, that) => {
|
|
1205
|
+
const buckets = /* @__PURE__ */ new Map();
|
|
1206
|
+
const out = [];
|
|
1207
|
+
for (const reason of self.concat(that)) {
|
|
1208
|
+
const hash2 = hash(reason);
|
|
1209
|
+
const bucket = buckets.get(hash2);
|
|
1210
|
+
if (bucket === void 0) {
|
|
1211
|
+
buckets.set(hash2, [reason]);
|
|
1212
|
+
} else if (bucket.some((previous) => equals(previous, reason))) {
|
|
1213
|
+
continue;
|
|
1214
|
+
} else {
|
|
1215
|
+
bucket.push(reason);
|
|
1216
|
+
}
|
|
1217
|
+
out.push(reason);
|
|
1218
|
+
}
|
|
1219
|
+
return out;
|
|
1220
|
+
};
|
|
1221
|
+
var causeCombine = /* @__PURE__ */ dual(2, (self, that) => {
|
|
1222
|
+
if (self.reasons.length === 0) {
|
|
1223
|
+
return that;
|
|
1224
|
+
} else if (that.reasons.length === 0) {
|
|
1225
|
+
return self;
|
|
1226
|
+
}
|
|
1227
|
+
const newCause = new CauseImpl(dedupeReasons(self.reasons, that.reasons));
|
|
1228
|
+
return equals(self, newCause) ? self : newCause;
|
|
1229
|
+
});
|
|
1204
1230
|
var causeEmpty = /* @__PURE__ */ new CauseImpl([]);
|
|
1205
1231
|
var causeFail = (error2) => new CauseImpl([new Fail(error2)]);
|
|
1206
1232
|
var Die = class extends ReasonBase {
|
|
@@ -1313,8 +1339,18 @@ var exitFailCause = /* @__PURE__ */ makeExit({
|
|
|
1313
1339
|
annotated = true;
|
|
1314
1340
|
}
|
|
1315
1341
|
let cont = fiber3.getCont(contE);
|
|
1316
|
-
|
|
1317
|
-
|
|
1342
|
+
const interruptedCause = fiber3._interruptedCause;
|
|
1343
|
+
if (interruptedCause && fiber3.interruptible) {
|
|
1344
|
+
let skippedHandler = false;
|
|
1345
|
+
while (cont && fiber3.interruptible) {
|
|
1346
|
+
skippedHandler ||= identifier in cont;
|
|
1347
|
+
cont = fiber3.getCont(contE);
|
|
1348
|
+
}
|
|
1349
|
+
if (skippedHandler) {
|
|
1350
|
+
cause = causeFromReasons(cause.reasons.filter((reason) => reason._tag !== "Fail"));
|
|
1351
|
+
}
|
|
1352
|
+
cause = causeCombine(cause, interruptedCause);
|
|
1353
|
+
annotated = true;
|
|
1318
1354
|
}
|
|
1319
1355
|
return cont ? cont[contE](cause, fiber3, annotated ? void 0 : this) : fiber3.yieldWith(annotated ? exitFailCause(cause) : this);
|
|
1320
1356
|
}
|
|
@@ -1409,13 +1445,13 @@ var done = (value3) => {
|
|
|
1409
1445
|
return exitFail(Done(value3));
|
|
1410
1446
|
};
|
|
1411
1447
|
|
|
1412
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
1448
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Effectable.js
|
|
1413
1449
|
var Prototype2 = (options) => makePrimitiveProto({
|
|
1414
1450
|
op: options.label,
|
|
1415
1451
|
[evaluate]: options.evaluate
|
|
1416
1452
|
});
|
|
1417
1453
|
|
|
1418
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
1454
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Equivalence.js
|
|
1419
1455
|
var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
|
|
1420
1456
|
var isStrictEquivalent = (x, y) => x === y;
|
|
1421
1457
|
var strictEqual = () => isStrictEquivalent;
|
|
@@ -1442,7 +1478,7 @@ function Array_(item) {
|
|
|
1442
1478
|
});
|
|
1443
1479
|
}
|
|
1444
1480
|
|
|
1445
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
1481
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/doNotation.js
|
|
1446
1482
|
var let_ = (map15) => dual(3, (self, name, f2) => map15(self, (a) => ({
|
|
1447
1483
|
...a,
|
|
1448
1484
|
[name]: f2(a)
|
|
@@ -1455,7 +1491,7 @@ var bind = (map15, flatMap6) => dual(3, (self, name, f2) => flatMap6(self, (a) =
|
|
|
1455
1491
|
[name]: b2
|
|
1456
1492
|
}))));
|
|
1457
1493
|
|
|
1458
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
1494
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/option.js
|
|
1459
1495
|
var TypeId = "~effect/Option";
|
|
1460
1496
|
var CommonProto = {
|
|
1461
1497
|
[TypeId]: {
|
|
@@ -1521,7 +1557,7 @@ var SomeImpl = function(value3) {
|
|
|
1521
1557
|
SomeImpl.prototype = SomeProto;
|
|
1522
1558
|
var some = (value3) => new SomeImpl(value3);
|
|
1523
1559
|
|
|
1524
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
1560
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/result.js
|
|
1525
1561
|
var TypeId2 = "~effect/Result";
|
|
1526
1562
|
var CommonProto2 = {
|
|
1527
1563
|
[TypeId2]: {
|
|
@@ -1588,7 +1624,7 @@ var SuccessImpl = function(success) {
|
|
|
1588
1624
|
SuccessImpl.prototype = SuccessProto;
|
|
1589
1625
|
var succeed = (success) => new SuccessImpl(success);
|
|
1590
1626
|
|
|
1591
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
1627
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Order.js
|
|
1592
1628
|
function make2(compare) {
|
|
1593
1629
|
return (self, that) => self === that ? 0 : compare(self, that);
|
|
1594
1630
|
}
|
|
@@ -1601,7 +1637,7 @@ var Number2 = /* @__PURE__ */ make2((self, that) => {
|
|
|
1601
1637
|
var mapInput = /* @__PURE__ */ dual(2, (self, f2) => make2((b1, b2) => self(f2(b1), f2(b2))));
|
|
1602
1638
|
var isGreaterThan = (O2) => dual(2, (self, that) => O2(self, that) === 1);
|
|
1603
1639
|
|
|
1604
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
1640
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Option.js
|
|
1605
1641
|
var none2 = () => none;
|
|
1606
1642
|
var some2 = some;
|
|
1607
1643
|
var isOption2 = isOption;
|
|
@@ -1620,7 +1656,7 @@ var flatMap = /* @__PURE__ */ dual(2, (self, f2) => isNone2(self) ? none2() : f2
|
|
|
1620
1656
|
var liftPredicate = /* @__PURE__ */ dual(2, (b2, predicate) => predicate(b2) ? some2(b2) : none2());
|
|
1621
1657
|
var exists = /* @__PURE__ */ dual(2, (self, refinement) => isNone2(self) ? false : refinement(self.value));
|
|
1622
1658
|
|
|
1623
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
1659
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Context.js
|
|
1624
1660
|
var ServiceTypeId = "~effect/Context/Service";
|
|
1625
1661
|
var Service = function() {
|
|
1626
1662
|
function KeyClass() {
|
|
@@ -1821,7 +1857,7 @@ var mergeAll = (...ctxs) => {
|
|
|
1821
1857
|
};
|
|
1822
1858
|
var Reference = Service;
|
|
1823
1859
|
|
|
1824
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
1860
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Duration.js
|
|
1825
1861
|
var TypeId4 = "~effect/Duration";
|
|
1826
1862
|
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
1827
1863
|
var bigint1 = /* @__PURE__ */ BigInt(1);
|
|
@@ -2200,13 +2236,13 @@ var format2 = (self) => {
|
|
|
2200
2236
|
return pieces.join(" ");
|
|
2201
2237
|
};
|
|
2202
2238
|
|
|
2203
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
2239
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/array.js
|
|
2204
2240
|
var isArrayNonEmpty = (self) => self.length > 0;
|
|
2205
2241
|
|
|
2206
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
2242
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/count.js
|
|
2207
2243
|
var normalize = (n) => n > 0 ? Math.floor(n) : 0;
|
|
2208
2244
|
|
|
2209
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
2245
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Result.js
|
|
2210
2246
|
var succeed2 = succeed;
|
|
2211
2247
|
var fail2 = fail;
|
|
2212
2248
|
var try_ = (evaluate2) => {
|
|
@@ -2232,10 +2268,10 @@ var match3 = /* @__PURE__ */ dual(2, (self, {
|
|
|
2232
2268
|
onSuccess
|
|
2233
2269
|
}) => isFailure2(self) ? onFailure(self.failure) : onSuccess(self.success));
|
|
2234
2270
|
|
|
2235
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
2271
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Tuple.js
|
|
2236
2272
|
var makeEquivalence = Tuple;
|
|
2237
2273
|
|
|
2238
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
2274
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Iterable.js
|
|
2239
2275
|
var findFirst = /* @__PURE__ */ dual(2, (self, f2) => {
|
|
2240
2276
|
let i = 0;
|
|
2241
2277
|
for (const a of self) {
|
|
@@ -2278,7 +2314,7 @@ var filter = /* @__PURE__ */ dual(2, (self, predicate) => ({
|
|
|
2278
2314
|
}
|
|
2279
2315
|
}));
|
|
2280
2316
|
|
|
2281
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
2317
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Record.js
|
|
2282
2318
|
var has = /* @__PURE__ */ dual(2, (self, key) => Object.hasOwn(self, key));
|
|
2283
2319
|
var map3 = /* @__PURE__ */ dual(2, (self, f2) => {
|
|
2284
2320
|
const out = {
|
|
@@ -2303,7 +2339,7 @@ var makeEquivalence2 = (equivalence) => {
|
|
|
2303
2339
|
return (self, that) => is4(self, that) && is4(that, self);
|
|
2304
2340
|
};
|
|
2305
2341
|
|
|
2306
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
2342
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Array.js
|
|
2307
2343
|
var Array2 = globalThis.Array;
|
|
2308
2344
|
var fromIterable = (collection) => Array2.isArray(collection) ? collection : Array2.from(collection);
|
|
2309
2345
|
var ensure = (self) => Array2.isArray(self) ? self : [self];
|
|
@@ -2350,23 +2386,23 @@ var empty2 = () => [];
|
|
|
2350
2386
|
var of = (a) => [a];
|
|
2351
2387
|
var map4 = /* @__PURE__ */ dual(2, (self, f2) => self.map(f2));
|
|
2352
2388
|
var partition = /* @__PURE__ */ dual(2, (self, f2) => {
|
|
2353
|
-
const
|
|
2354
|
-
const
|
|
2389
|
+
const passes = [];
|
|
2390
|
+
const fails = [];
|
|
2355
2391
|
let i = 0;
|
|
2356
2392
|
for (const a of self) {
|
|
2357
2393
|
const result3 = f2(a, i++);
|
|
2358
2394
|
if (isSuccess2(result3)) {
|
|
2359
|
-
|
|
2395
|
+
passes.push(result3.success);
|
|
2360
2396
|
} else {
|
|
2361
|
-
|
|
2397
|
+
fails.push(result3.failure);
|
|
2362
2398
|
}
|
|
2363
2399
|
}
|
|
2364
|
-
return [
|
|
2400
|
+
return [passes, fails];
|
|
2365
2401
|
});
|
|
2366
2402
|
var reduce = /* @__PURE__ */ dual(3, (self, b2, f2) => fromIterable(self).reduce((b3, a, i) => f2(b3, a, i), b2));
|
|
2367
2403
|
var makeEquivalence3 = Array_;
|
|
2368
2404
|
|
|
2369
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
2405
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Scheduler.js
|
|
2370
2406
|
var Scheduler = /* @__PURE__ */ Reference("effect/Scheduler", {
|
|
2371
2407
|
fiberCached: true,
|
|
2372
2408
|
defaultValue: () => new MixedScheduler()
|
|
@@ -2510,7 +2546,7 @@ var PreventSchedulerYield = /* @__PURE__ */ Reference("effect/Scheduler/PreventS
|
|
|
2510
2546
|
defaultValue: () => false
|
|
2511
2547
|
});
|
|
2512
2548
|
|
|
2513
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
2549
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Data.js
|
|
2514
2550
|
var taggedEnum = () => new Proxy({}, {
|
|
2515
2551
|
get(_target, tag2, _receiver) {
|
|
2516
2552
|
if (tag2 === "$is") {
|
|
@@ -2538,7 +2574,7 @@ function taggedMatch() {
|
|
|
2538
2574
|
var Error3 = Error2;
|
|
2539
2575
|
var TaggedError2 = TaggedError;
|
|
2540
2576
|
|
|
2541
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
2577
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/encoding/Hex.js
|
|
2542
2578
|
var random2 = (length) => {
|
|
2543
2579
|
switch (length) {
|
|
2544
2580
|
case 16:
|
|
@@ -2573,7 +2609,7 @@ var random32 = () => {
|
|
|
2573
2609
|
return String.fromCharCode(hexCharCodes[a >>> 28], hexCharCodes[a >>> 24 & 15], hexCharCodes[a >>> 20 & 15], hexCharCodes[a >>> 16 & 15], hexCharCodes[a >>> 12 & 15], hexCharCodes[a >>> 8 & 15], hexCharCodes[a >>> 4 & 15], hexCharCodes[a & 15], hexCharCodes[b2 >>> 28], hexCharCodes[b2 >>> 24 & 15], hexCharCodes[b2 >>> 20 & 15], hexCharCodes[b2 >>> 16 & 15], hexCharCodes[b2 >>> 12 & 15], hexCharCodes[b2 >>> 8 & 15], hexCharCodes[b2 >>> 4 & 15], hexCharCodes[b2 & 15], hexCharCodes[c >>> 28], hexCharCodes[c >>> 24 & 15], hexCharCodes[c >>> 20 & 15], hexCharCodes[c >>> 16 & 15], hexCharCodes[c >>> 12 & 15], hexCharCodes[c >>> 8 & 15], hexCharCodes[c >>> 4 & 15], hexCharCodes[c & 15], hexCharCodes[d >>> 28], hexCharCodes[d >>> 24 & 15], hexCharCodes[d >>> 20 & 15], hexCharCodes[d >>> 16 & 15], hexCharCodes[d >>> 12 & 15], hexCharCodes[d >>> 8 & 15], hexCharCodes[d >>> 4 & 15], hexCharCodes[d & 15]);
|
|
2574
2610
|
};
|
|
2575
2611
|
|
|
2576
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
2612
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Tracer.js
|
|
2577
2613
|
var ParentSpanKey = "effect/Tracer/ParentSpan";
|
|
2578
2614
|
var ParentSpan = class extends (/* @__PURE__ */ Service()(ParentSpanKey, {
|
|
2579
2615
|
fiberCached: true
|
|
@@ -2655,10 +2691,10 @@ var NativeSpan = class {
|
|
|
2655
2691
|
}
|
|
2656
2692
|
};
|
|
2657
2693
|
|
|
2658
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
2694
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/metric.js
|
|
2659
2695
|
var FiberRuntimeMetricsKey = "effect/Metric/FiberRuntimeMetrics";
|
|
2660
2696
|
|
|
2661
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
2697
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/references.js
|
|
2662
2698
|
var CurrentErrorReporters = /* @__PURE__ */ Reference("effect/ErrorReporter/CurrentErrorReporters", {
|
|
2663
2699
|
defaultValue: () => /* @__PURE__ */ new Set()
|
|
2664
2700
|
});
|
|
@@ -2694,7 +2730,7 @@ var CurrentLogSpans = /* @__PURE__ */ Reference("effect/References/CurrentLogSpa
|
|
|
2694
2730
|
defaultValue: () => []
|
|
2695
2731
|
});
|
|
2696
2732
|
|
|
2697
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
2733
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/tracer.js
|
|
2698
2734
|
var addSpanStackTrace = (options) => {
|
|
2699
2735
|
if (options?.captureStackTrace === false) {
|
|
2700
2736
|
return options;
|
|
@@ -2731,7 +2767,7 @@ var makeStackCleaner = (line) => (stack) => {
|
|
|
2731
2767
|
};
|
|
2732
2768
|
var spanCleaner = /* @__PURE__ */ makeStackCleaner(3);
|
|
2733
2769
|
|
|
2734
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
2770
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/effect.js
|
|
2735
2771
|
var Interrupt = class extends ReasonBase {
|
|
2736
2772
|
constructor(fiberId3, annotations = constEmptyAnnotations) {
|
|
2737
2773
|
super("Interrupt", annotations, "Interrupted");
|
|
@@ -2786,32 +2822,6 @@ var causeFilterInterruptors = (self) => {
|
|
|
2786
2822
|
return interruptors ? succeed2(interruptors) : fail2(self);
|
|
2787
2823
|
};
|
|
2788
2824
|
var hasInterruptsOnly = (self) => self.reasons.length > 0 && self.reasons.every(isInterruptReason);
|
|
2789
|
-
var dedupeReasons = (self, that) => {
|
|
2790
|
-
const buckets = /* @__PURE__ */ new Map();
|
|
2791
|
-
const out = [];
|
|
2792
|
-
for (const reason of self.concat(that)) {
|
|
2793
|
-
const hash2 = hash(reason);
|
|
2794
|
-
const bucket = buckets.get(hash2);
|
|
2795
|
-
if (bucket === void 0) {
|
|
2796
|
-
buckets.set(hash2, [reason]);
|
|
2797
|
-
} else if (bucket.some((previous) => equals(previous, reason))) {
|
|
2798
|
-
continue;
|
|
2799
|
-
} else {
|
|
2800
|
-
bucket.push(reason);
|
|
2801
|
-
}
|
|
2802
|
-
out.push(reason);
|
|
2803
|
-
}
|
|
2804
|
-
return out;
|
|
2805
|
-
};
|
|
2806
|
-
var causeCombine = /* @__PURE__ */ dual(2, (self, that) => {
|
|
2807
|
-
if (self.reasons.length === 0) {
|
|
2808
|
-
return that;
|
|
2809
|
-
} else if (that.reasons.length === 0) {
|
|
2810
|
-
return self;
|
|
2811
|
-
}
|
|
2812
|
-
const newCause = new CauseImpl(dedupeReasons(self.reasons, that.reasons));
|
|
2813
|
-
return equals(self, newCause) ? self : newCause;
|
|
2814
|
-
});
|
|
2815
2825
|
var causeMap = /* @__PURE__ */ dual(2, (self, f2) => {
|
|
2816
2826
|
let hasFail = false;
|
|
2817
2827
|
const failures = self.reasons.map((failure) => {
|
|
@@ -2981,6 +2991,14 @@ var fiberVariance = {
|
|
|
2981
2991
|
var fiberIdStore = {
|
|
2982
2992
|
id: 0
|
|
2983
2993
|
};
|
|
2994
|
+
var AsyncResource = /* @__PURE__ */ (() => {
|
|
2995
|
+
try {
|
|
2996
|
+
return globalThis.process?.getBuiltinModule?.("node:async_hooks")?.AsyncResource;
|
|
2997
|
+
} catch {
|
|
2998
|
+
return void 0;
|
|
2999
|
+
}
|
|
3000
|
+
})();
|
|
3001
|
+
var captureAsyncContext = () => AsyncResource === void 0 ? void 0 : new AsyncResource("effect/Fiber");
|
|
2984
3002
|
var getCurrentFiber = () => globalThis[currentFiberTypeId];
|
|
2985
3003
|
var FiberImpl = class {
|
|
2986
3004
|
constructor(context3, interruptible3 = true) {
|
|
@@ -2997,6 +3015,7 @@ var FiberImpl = class {
|
|
|
2997
3015
|
this._running = false;
|
|
2998
3016
|
this._deferredInterrupt = false;
|
|
2999
3017
|
this._parent = void 0;
|
|
3018
|
+
this._asyncContext = void 0;
|
|
3000
3019
|
this.cache.runtimeMetrics?.recordFiberStart(this.context);
|
|
3001
3020
|
}
|
|
3002
3021
|
get [FiberTypeId]() {
|
|
@@ -3053,6 +3072,10 @@ var FiberImpl = class {
|
|
|
3053
3072
|
evaluate(effect2) {
|
|
3054
3073
|
if (this._exit) {
|
|
3055
3074
|
return;
|
|
3075
|
+
} else if (this._asyncContext !== void 0) {
|
|
3076
|
+
const asyncContext = this._asyncContext;
|
|
3077
|
+
this._asyncContext = void 0;
|
|
3078
|
+
return asyncContext.runInAsyncScope(this.evaluate, this, effect2);
|
|
3056
3079
|
} else if (this._yielded !== void 0) {
|
|
3057
3080
|
const yielded = this._yielded;
|
|
3058
3081
|
this._yielded = void 0;
|
|
@@ -3060,6 +3083,7 @@ var FiberImpl = class {
|
|
|
3060
3083
|
}
|
|
3061
3084
|
const exit3 = this.runLoop(effect2);
|
|
3062
3085
|
if (exit3 === Yield) {
|
|
3086
|
+
this._asyncContext = captureAsyncContext();
|
|
3063
3087
|
return;
|
|
3064
3088
|
}
|
|
3065
3089
|
const interruptChildren = fiberMiddleware.interruptChildren && fiberMiddleware.interruptChildren(this);
|
|
@@ -3256,6 +3280,14 @@ var fiberAwaitAll = (self) => callback((resume) => {
|
|
|
3256
3280
|
loop();
|
|
3257
3281
|
return sync(() => cancel?.());
|
|
3258
3282
|
});
|
|
3283
|
+
var fiberJoin = (self) => {
|
|
3284
|
+
const impl = self;
|
|
3285
|
+
if (impl._exit) return impl._exit;
|
|
3286
|
+
return callback((resume) => {
|
|
3287
|
+
if (impl._exit) return resume(impl._exit);
|
|
3288
|
+
return sync(self.addObserver(resume));
|
|
3289
|
+
});
|
|
3290
|
+
};
|
|
3259
3291
|
var fiberInterrupt = (self) => withFiber((fiber3) => fiberInterruptAs(self, fiber3.id));
|
|
3260
3292
|
var fiberInterruptAs = /* @__PURE__ */ dual((args2) => hasProperty(args2[0], FiberTypeId), (self, fiberId3, annotations) => withFiber((parent) => {
|
|
3261
3293
|
let ann = fiberStackAnnotations(parent);
|
|
@@ -3334,17 +3366,17 @@ var tryPromise = (options) => {
|
|
|
3334
3366
|
const f2 = typeof options === "function" ? options : options.try;
|
|
3335
3367
|
const catcher = typeof options === "function" ? (cause) => new UnknownError(cause, "An error occurred in Effect.tryPromise") : options.catch;
|
|
3336
3368
|
return callbackOptions(function(resume, signal) {
|
|
3337
|
-
const failWithCatch = (cause) => {
|
|
3369
|
+
const failWithCatch = (cause) => suspend(() => {
|
|
3338
3370
|
try {
|
|
3339
|
-
|
|
3371
|
+
return fail3(internalCall(() => catcher(cause)));
|
|
3340
3372
|
} catch (err) {
|
|
3341
|
-
|
|
3373
|
+
return die(err);
|
|
3342
3374
|
}
|
|
3343
|
-
};
|
|
3375
|
+
});
|
|
3344
3376
|
try {
|
|
3345
|
-
f2(signal).then((a) => resume(succeed3(a)), failWithCatch);
|
|
3377
|
+
f2(signal).then((a) => resume(succeed3(a)), (e) => resume(failWithCatch(e)));
|
|
3346
3378
|
} catch (err) {
|
|
3347
|
-
failWithCatch(err);
|
|
3379
|
+
resume(failWithCatch(err));
|
|
3348
3380
|
}
|
|
3349
3381
|
}, f2.length !== 0);
|
|
3350
3382
|
};
|
|
@@ -3401,7 +3433,7 @@ var asyncFinalizer = /* @__PURE__ */ makePrimitive({
|
|
|
3401
3433
|
}
|
|
3402
3434
|
},
|
|
3403
3435
|
[contE](cause, _fiber) {
|
|
3404
|
-
return hasInterrupts(cause) ? flatMap2(this[args](), () => failCause(cause)) : failCause(cause);
|
|
3436
|
+
return hasInterrupts(cause) ? flatMap2(combineFinalizerCause(exitFailCause(cause), this[args]()), () => failCause(cause)) : failCause(cause);
|
|
3405
3437
|
}
|
|
3406
3438
|
});
|
|
3407
3439
|
var callback = (register) => callbackOptions(register, register.length >= 2);
|
|
@@ -3604,72 +3636,73 @@ var andThen = /* @__PURE__ */ dual(2, (self, f2) => new ContImpl(self, isEffect(
|
|
|
3604
3636
|
var tap = /* @__PURE__ */ dual(2, (self, f2) => new ContImpl(self, isEffect(f2) ? tapEffectCont : tapCont, f2));
|
|
3605
3637
|
var asVoid = (self) => new ContImpl(self, returnPayload, exitVoid);
|
|
3606
3638
|
var sandbox = (self) => catchCause(self, fail3);
|
|
3607
|
-
var raceAll = (all5, options) => withFiber((parent) =>
|
|
3608
|
-
const effects = fromIterable(all5);
|
|
3609
|
-
const len = effects.length;
|
|
3610
|
-
let doneCount = 0;
|
|
3611
|
-
let done3 = false;
|
|
3639
|
+
var raceAll = (all5, options) => withFiber((parent) => {
|
|
3612
3640
|
const fibers = /* @__PURE__ */ new Set();
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3641
|
+
onExitUnsafe(parent, () => fibers.size === 0 ? void 0 : fiberInterruptAll(fibers));
|
|
3642
|
+
return callback((resume) => {
|
|
3643
|
+
const effects = fromIterable(all5);
|
|
3644
|
+
const len = effects.length;
|
|
3645
|
+
let doneCount = 0;
|
|
3646
|
+
let done3 = false;
|
|
3647
|
+
const failures = [];
|
|
3648
|
+
const onExit4 = (exit3, fiber3, i) => {
|
|
3649
|
+
doneCount++;
|
|
3650
|
+
if (exit3._tag === "Failure") {
|
|
3651
|
+
failures.push(...exit3.cause.reasons);
|
|
3652
|
+
if (doneCount >= len) {
|
|
3653
|
+
resume(failCause(causeFromReasons(failures)));
|
|
3654
|
+
}
|
|
3655
|
+
return;
|
|
3620
3656
|
}
|
|
3621
|
-
return;
|
|
3622
|
-
}
|
|
3623
|
-
const isWinner = !done3;
|
|
3624
|
-
done3 = true;
|
|
3625
|
-
resume(fibers.size === 0 ? exit3 : flatMap2(uninterruptible(fiberInterruptAll(fibers)), () => exit3));
|
|
3626
|
-
if (isWinner && options?.onWinner) {
|
|
3627
|
-
options.onWinner({
|
|
3628
|
-
fiber: fiber3,
|
|
3629
|
-
index: i,
|
|
3630
|
-
parentFiber: parent
|
|
3631
|
-
});
|
|
3632
|
-
}
|
|
3633
|
-
};
|
|
3634
|
-
for (let i = 0; i < len; i++) {
|
|
3635
|
-
const fiber3 = forkUnsafe(parent, effects[i], true, true, false);
|
|
3636
|
-
fibers.add(fiber3);
|
|
3637
|
-
fiber3.addObserver((exit3) => {
|
|
3638
|
-
fibers.delete(fiber3);
|
|
3639
|
-
onExit4(exit3, fiber3, i);
|
|
3640
|
-
});
|
|
3641
|
-
if (done3) break;
|
|
3642
|
-
}
|
|
3643
|
-
return fiberInterruptAll(fibers);
|
|
3644
|
-
}));
|
|
3645
|
-
var raceAllFirst = (all5, options) => withFiber((parent) => callback((resume) => {
|
|
3646
|
-
let done3 = false;
|
|
3647
|
-
const fibers = /* @__PURE__ */ new Set();
|
|
3648
|
-
const onExit4 = (exit3) => {
|
|
3649
|
-
done3 = true;
|
|
3650
|
-
resume(fibers.size === 0 ? exit3 : flatMap2(uninterruptible(fiberInterruptAll(fibers)), () => exit3));
|
|
3651
|
-
};
|
|
3652
|
-
let i = 0;
|
|
3653
|
-
for (const effect2 of all5) {
|
|
3654
|
-
if (done3) break;
|
|
3655
|
-
const index = i++;
|
|
3656
|
-
const fiber3 = forkUnsafe(parent, effect2, true, true, false);
|
|
3657
|
-
fibers.add(fiber3);
|
|
3658
|
-
fiber3.addObserver((exit3) => {
|
|
3659
|
-
fibers.delete(fiber3);
|
|
3660
3657
|
const isWinner = !done3;
|
|
3661
|
-
|
|
3658
|
+
done3 = true;
|
|
3659
|
+
resume(exit3);
|
|
3662
3660
|
if (isWinner && options?.onWinner) {
|
|
3663
3661
|
options.onWinner({
|
|
3664
3662
|
fiber: fiber3,
|
|
3665
|
-
index,
|
|
3663
|
+
index: i,
|
|
3666
3664
|
parentFiber: parent
|
|
3667
3665
|
});
|
|
3668
3666
|
}
|
|
3669
|
-
}
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3667
|
+
};
|
|
3668
|
+
for (let i = 0; i < len; i++) {
|
|
3669
|
+
const fiber3 = forkUnsafe(parent, effects[i], true, true, false);
|
|
3670
|
+
fibers.add(fiber3);
|
|
3671
|
+
fiber3.addObserver((exit3) => {
|
|
3672
|
+
fibers.delete(fiber3);
|
|
3673
|
+
onExit4(exit3, fiber3, i);
|
|
3674
|
+
});
|
|
3675
|
+
if (done3) break;
|
|
3676
|
+
}
|
|
3677
|
+
});
|
|
3678
|
+
});
|
|
3679
|
+
var raceAllFirst = (all5, options) => withFiber((parent) => {
|
|
3680
|
+
const fibers = /* @__PURE__ */ new Set();
|
|
3681
|
+
onExitUnsafe(parent, () => fibers.size === 0 ? void 0 : fiberInterruptAll(fibers));
|
|
3682
|
+
return callback((resume) => {
|
|
3683
|
+
let done3 = false;
|
|
3684
|
+
let i = 0;
|
|
3685
|
+
for (const effect2 of all5) {
|
|
3686
|
+
if (done3) break;
|
|
3687
|
+
const index = i++;
|
|
3688
|
+
const fiber3 = forkUnsafe(parent, effect2, true, true, false);
|
|
3689
|
+
fibers.add(fiber3);
|
|
3690
|
+
fiber3.addObserver((exit3) => {
|
|
3691
|
+
fibers.delete(fiber3);
|
|
3692
|
+
const isWinner = !done3;
|
|
3693
|
+
done3 = true;
|
|
3694
|
+
resume(exit3);
|
|
3695
|
+
if (isWinner && options?.onWinner) {
|
|
3696
|
+
options.onWinner({
|
|
3697
|
+
fiber: fiber3,
|
|
3698
|
+
index,
|
|
3699
|
+
parentFiber: parent
|
|
3700
|
+
});
|
|
3701
|
+
}
|
|
3702
|
+
});
|
|
3703
|
+
}
|
|
3704
|
+
});
|
|
3705
|
+
});
|
|
3673
3706
|
var race = /* @__PURE__ */ dual((args2) => isEffect(args2[1]), (self, that, options) => raceAll([self, that], options));
|
|
3674
3707
|
var raceFirst = /* @__PURE__ */ dual((args2) => isEffect(args2[1]), (self, that, options) => raceAllFirst([self, that], options));
|
|
3675
3708
|
var flatMap2 = /* @__PURE__ */ dual(2, (self, f2) => new ContImpl(self, andThenCont, f2));
|
|
@@ -3704,6 +3737,7 @@ var exitInterrupt = (fiberId3) => exitFailCause(causeInterrupt(fiberId3));
|
|
|
3704
3737
|
var exitIsSuccess = (self) => self._tag === "Success";
|
|
3705
3738
|
var exitIsFailure = (self) => self._tag === "Failure";
|
|
3706
3739
|
var exitFilterCause = (self) => self._tag === "Failure" ? succeed2(self.cause) : fail2(self);
|
|
3740
|
+
var exitHasInterrupts = (self) => self._tag === "Failure" && hasInterrupts(self.cause);
|
|
3707
3741
|
var exitVoid = /* @__PURE__ */ exitSucceed(void 0);
|
|
3708
3742
|
var exitMap = /* @__PURE__ */ dual(2, (self, f2) => self._tag === "Success" ? exitSucceed(f2(self.value)) : self);
|
|
3709
3743
|
var exitMapError = /* @__PURE__ */ dual(2, (self, f2) => {
|
|
@@ -4258,58 +4292,48 @@ var onErrorFilter = /* @__PURE__ */ dual(3, (self, filter9, f2) => onExit(self,
|
|
|
4258
4292
|
var onInterrupt = /* @__PURE__ */ dual(2, (self, finalizer) => onErrorFilter(causeFilterInterruptors, finalizer)(self));
|
|
4259
4293
|
var acquireUseRelease = (acquire, use, release2) => uninterruptibleMask((restore) => flatMap2(acquire, (a) => onExitPrimitive(suspend(() => restore(use(a))), (exit3) => release2(a, exit3), true)));
|
|
4260
4294
|
var acquireDisposable = (acquire) => acquireRelease(acquire, (resource) => hasProperty(resource, Symbol.asyncDispose) ? promise(() => resource[Symbol.asyncDispose]()) : sync(() => resource[Symbol.dispose]()));
|
|
4261
|
-
var cachedInvalidateWithTTL = /* @__PURE__ */ dual(2, (self, ttl) => sync(() =>
|
|
4262
|
-
|
|
4263
|
-
|
|
4295
|
+
var cachedInvalidateWithTTL = /* @__PURE__ */ dual(2, (self, ttl) => sync(() => makeCachedUnsafe(self, typeof ttl === "function" ? (exit3) => toMillis(fromInputUnsafe(ttl(exit3))) : constant(toMillis(fromInputUnsafe(ttl))))));
|
|
4296
|
+
var infiniteTTL = /* @__PURE__ */ constant(Infinity);
|
|
4297
|
+
var makeCachedUnsafe = (self, ttlMillis) => {
|
|
4264
4298
|
let expiresAt = 0;
|
|
4265
|
-
let running = false;
|
|
4266
4299
|
let exit3;
|
|
4267
|
-
|
|
4300
|
+
let current;
|
|
4301
|
+
const join3 = (fiber3, run6) => {
|
|
4302
|
+
run6.awaiters++;
|
|
4303
|
+
onExitUnsafe(fiber3, () => {
|
|
4304
|
+
if (--run6.awaiters > 0 || current !== run6) return;
|
|
4305
|
+
current = void 0;
|
|
4306
|
+
return fiberInterrupt(run6.fiber);
|
|
4307
|
+
});
|
|
4308
|
+
return fiberJoin(run6.fiber);
|
|
4309
|
+
};
|
|
4268
4310
|
return [withFiber((fiber3) => {
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
latch.closeUnsafe();
|
|
4311
|
+
if (current !== void 0) return join3(fiber3, current);
|
|
4312
|
+
if (exit3 !== void 0 && (expiresAt === Infinity || fiber3.getRef(ClockRef).currentTimeMillisUnsafe() < expiresAt)) {
|
|
4313
|
+
return exit3;
|
|
4314
|
+
}
|
|
4274
4315
|
exit3 = void 0;
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
}));
|
|
4289
|
-
return
|
|
4316
|
+
const clock = fiber3.getRef(ClockRef);
|
|
4317
|
+
const run6 = {
|
|
4318
|
+
fiber: void 0,
|
|
4319
|
+
awaiters: 0
|
|
4320
|
+
};
|
|
4321
|
+
current = run6;
|
|
4322
|
+
run6.fiber = forkUnsafe(fiber3, onExitPrimitive(self, (exit_) => {
|
|
4323
|
+
if (current !== run6) return;
|
|
4324
|
+
current = void 0;
|
|
4325
|
+
if (exitHasInterrupts(exit_)) return;
|
|
4326
|
+
const duration = ttlMillis(exit_);
|
|
4327
|
+
expiresAt = duration === Infinity ? Infinity : clock.currentTimeMillisUnsafe() + duration;
|
|
4328
|
+
exit3 = exit_;
|
|
4329
|
+
}), true, true);
|
|
4330
|
+
return run6.fiber._exit ?? join3(fiber3, run6);
|
|
4290
4331
|
}), sync(() => {
|
|
4291
|
-
expiresAt = 0;
|
|
4292
|
-
latch.closeUnsafe();
|
|
4293
4332
|
exit3 = void 0;
|
|
4294
4333
|
})];
|
|
4295
|
-
}
|
|
4334
|
+
};
|
|
4296
4335
|
var cachedWithTTL = /* @__PURE__ */ dual(2, (self, timeToLive) => map5(cachedInvalidateWithTTL(self, timeToLive), (tuple2) => tuple2[0]));
|
|
4297
|
-
var cached = (self) => sync(() =>
|
|
4298
|
-
const latch = makeLatchUnsafe(false);
|
|
4299
|
-
let started = false;
|
|
4300
|
-
let exit3;
|
|
4301
|
-
const wait = flatMap2(latch.await, () => exit3);
|
|
4302
|
-
return withFiber((fiber3) => {
|
|
4303
|
-
if (exit3 !== void 0) return exit3;
|
|
4304
|
-
if (started) return wait;
|
|
4305
|
-
started = true;
|
|
4306
|
-
onExitUnsafe(fiber3, (result3) => sync(() => {
|
|
4307
|
-
exit3 = result3;
|
|
4308
|
-
latch.openUnsafe();
|
|
4309
|
-
}));
|
|
4310
|
-
return self;
|
|
4311
|
-
});
|
|
4312
|
-
});
|
|
4336
|
+
var cached = (self) => sync(() => makeCachedUnsafe(self, infiniteTTL)[0]);
|
|
4313
4337
|
var interrupt = /* @__PURE__ */ withFiber((fiber3) => failCause(causeInterrupt(fiber3.id)));
|
|
4314
4338
|
var uninterruptible = (self) => withFiber((fiber3) => {
|
|
4315
4339
|
if (!fiber3.interruptible) return self;
|
|
@@ -4391,11 +4415,11 @@ var reduce2 = /* @__PURE__ */ dual(3, (elements, zero2, f2) => {
|
|
|
4391
4415
|
});
|
|
4392
4416
|
var validate = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffect(args2[0]), (elements, f2, options) => flatMap2(partition2(elements, f2, {
|
|
4393
4417
|
concurrency: options?.concurrency
|
|
4394
|
-
}), ([
|
|
4395
|
-
if (isArrayNonEmpty2(
|
|
4396
|
-
return fail3(
|
|
4418
|
+
}), ([passes, fails]) => {
|
|
4419
|
+
if (isArrayNonEmpty2(fails)) {
|
|
4420
|
+
return fail3(fails);
|
|
4397
4421
|
}
|
|
4398
|
-
return options?.discard ? void_ : succeed3(
|
|
4422
|
+
return options?.discard ? void_ : succeed3(passes);
|
|
4399
4423
|
}));
|
|
4400
4424
|
var findFirst3 = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffect(args2[0]), (elements, predicate) => suspend(() => {
|
|
4401
4425
|
const iterator = elements[Symbol.iterator]();
|
|
@@ -4517,15 +4541,13 @@ var iterateConcurrentImpl = (options) => {
|
|
|
4517
4541
|
let parentFiber;
|
|
4518
4542
|
let fibers;
|
|
4519
4543
|
let resume;
|
|
4520
|
-
let interrupted = false;
|
|
4521
4544
|
let terminal;
|
|
4522
4545
|
let effect2;
|
|
4523
4546
|
const failDefect = (error2) => {
|
|
4524
4547
|
const defect = exitDie(error2);
|
|
4525
4548
|
terminal = defect;
|
|
4526
4549
|
done3 = true;
|
|
4527
|
-
|
|
4528
|
-
return fibers && fibers.size > 0 ? flatMap2(uninterruptible(fiberInterruptAll(Array.from(fibers))), () => defect) : defect;
|
|
4550
|
+
return fibers && fibers.size > 0 ? flatMap2(uninterruptible(fiberInterruptAll(Array.from(fibers))), () => terminal ?? defect) : defect;
|
|
4529
4551
|
};
|
|
4530
4552
|
const go2 = () => {
|
|
4531
4553
|
let paused = false;
|
|
@@ -4549,9 +4571,8 @@ var iterateConcurrentImpl = (options) => {
|
|
|
4549
4571
|
}
|
|
4550
4572
|
if (result3) return cb(result3);
|
|
4551
4573
|
return suspend(() => {
|
|
4552
|
-
terminal
|
|
4553
|
-
|
|
4554
|
-
return fibers ? fiberInterruptAll(fibers) : void_;
|
|
4574
|
+
terminal ??= exitVoid;
|
|
4575
|
+
return flatMap2(fibers ? fiberInterruptAll(fibers) : void_, () => terminal?._tag === "Failure" ? terminal : void_);
|
|
4555
4576
|
});
|
|
4556
4577
|
});
|
|
4557
4578
|
} else {
|
|
@@ -4568,20 +4589,17 @@ var iterateConcurrentImpl = (options) => {
|
|
|
4568
4589
|
fibers.delete(fiber3);
|
|
4569
4590
|
try {
|
|
4570
4591
|
if (terminal) {
|
|
4571
|
-
if (
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
} else {
|
|
4577
|
-
terminal = exitFailCause(causeFromReasons([reason]));
|
|
4578
|
-
}
|
|
4592
|
+
if (exit3._tag === "Failure") {
|
|
4593
|
+
const reasons = exit3.cause.reasons.filter((reason) => reason._tag !== "Interrupt");
|
|
4594
|
+
if (reasons.length > 0) {
|
|
4595
|
+
const cause = causeFromReasons(reasons);
|
|
4596
|
+
terminal = exitFailCause(terminal._tag === "Failure" ? causeCombine(terminal.cause, cause) : cause);
|
|
4579
4597
|
}
|
|
4580
4598
|
}
|
|
4581
4599
|
} else {
|
|
4582
4600
|
const result3 = step(state, item, exit3, currentIndex);
|
|
4583
4601
|
if (result3) {
|
|
4584
|
-
terminal = result3
|
|
4602
|
+
terminal = result3;
|
|
4585
4603
|
go2();
|
|
4586
4604
|
}
|
|
4587
4605
|
}
|
|
@@ -4694,6 +4712,7 @@ var forkUnsafe = (parent, effect2, immediate = false, daemon = false, uninterrup
|
|
|
4694
4712
|
if (immediate) {
|
|
4695
4713
|
child.evaluate(effect2);
|
|
4696
4714
|
} else {
|
|
4715
|
+
child._asyncContext = captureAsyncContext();
|
|
4697
4716
|
parentRuntime.currentDispatcher.scheduleTask(() => child.evaluate(effect2), 0);
|
|
4698
4717
|
}
|
|
4699
4718
|
if (!daemon && !child._exit) {
|
|
@@ -5369,7 +5388,7 @@ var reportCauseUnsafe = (fiber3, cause, defectsOnly) => {
|
|
|
5369
5388
|
reporters.forEach((reporter) => reporter.report(opts));
|
|
5370
5389
|
};
|
|
5371
5390
|
|
|
5372
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
5391
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Exit.js
|
|
5373
5392
|
var succeed4 = exitSucceed;
|
|
5374
5393
|
var failCause2 = exitFailCause;
|
|
5375
5394
|
var fail4 = exitFail;
|
|
@@ -5377,7 +5396,7 @@ var void_2 = exitVoid;
|
|
|
5377
5396
|
var isSuccess4 = exitIsSuccess;
|
|
5378
5397
|
var isFailure4 = exitIsFailure;
|
|
5379
5398
|
|
|
5380
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
5399
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Deferred.js
|
|
5381
5400
|
var TypeId5 = "~effect/Deferred";
|
|
5382
5401
|
var DeferredProto = {
|
|
5383
5402
|
[TypeId5]: {
|
|
@@ -5420,12 +5439,12 @@ var doneUnsafe = (self, effect2) => {
|
|
|
5420
5439
|
return true;
|
|
5421
5440
|
};
|
|
5422
5441
|
|
|
5423
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
5442
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/References.js
|
|
5424
5443
|
var CurrentLogAnnotations2 = CurrentLogAnnotations;
|
|
5425
5444
|
var CurrentLogSpans2 = CurrentLogSpans;
|
|
5426
5445
|
var MinimumLogLevel2 = MinimumLogLevel;
|
|
5427
5446
|
|
|
5428
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
5447
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Scope.js
|
|
5429
5448
|
var Scope = scopeTag;
|
|
5430
5449
|
var makeUnsafe3 = scopeMakeUnsafe;
|
|
5431
5450
|
var provide = provideScope;
|
|
@@ -5434,7 +5453,7 @@ var addFinalizer2 = scopeAddFinalizer;
|
|
|
5434
5453
|
var forkUnsafe2 = scopeForkUnsafe;
|
|
5435
5454
|
var close = scopeClose;
|
|
5436
5455
|
|
|
5437
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
5456
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Layer.js
|
|
5438
5457
|
var TypeId6 = "~effect/Layer";
|
|
5439
5458
|
var MemoMapTypeId = "~effect/Layer/MemoMap";
|
|
5440
5459
|
var makeMemoMapEntry = (memoMap, layer16) => {
|
|
@@ -5554,7 +5573,7 @@ var CurrentMetadata = /* @__PURE__ */ Reference("effect/ExecutionPlan/CurrentMet
|
|
|
5554
5573
|
})
|
|
5555
5574
|
});
|
|
5556
5575
|
|
|
5557
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
5576
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Cause.js
|
|
5558
5577
|
var isFailReason2 = isFailReason;
|
|
5559
5578
|
var fromReasons = causeFromReasons;
|
|
5560
5579
|
var fail5 = causeFail;
|
|
@@ -5573,7 +5592,7 @@ var round = /* @__PURE__ */ dual(2, (self, precision) => {
|
|
|
5573
5592
|
return Math.round(self * factor) / factor;
|
|
5574
5593
|
});
|
|
5575
5594
|
|
|
5576
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
5595
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/random.js
|
|
5577
5596
|
var nextBetween = (min3, max3, draw) => {
|
|
5578
5597
|
const value3 = draw * (max3 - min3) + min3;
|
|
5579
5598
|
if (value3 !== max3 || min3 >= max3 || !Number.isFinite(max3)) {
|
|
@@ -5589,7 +5608,7 @@ var nextBetween = (min3, max3, draw) => {
|
|
|
5589
5608
|
return view.getFloat64(0);
|
|
5590
5609
|
};
|
|
5591
5610
|
|
|
5592
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
5611
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Pull.js
|
|
5593
5612
|
var catchDone = /* @__PURE__ */ dual(2, (effect2, f2) => catchCauseFilter(effect2, filterDoneLeftover, (l) => f2(l)));
|
|
5594
5613
|
var isDoneCause = (cause) => cause.reasons.some(isDoneFailure);
|
|
5595
5614
|
var isDoneFailure = (failure) => failure._tag === "Fail" && isDone3(failure.error);
|
|
@@ -5622,7 +5641,7 @@ var matchEffect2 = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffect(s
|
|
|
5622
5641
|
}
|
|
5623
5642
|
}));
|
|
5624
5643
|
|
|
5625
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
5644
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Schedule.js
|
|
5626
5645
|
var TypeId8 = "~effect/Schedule";
|
|
5627
5646
|
var CurrentMetadata2 = /* @__PURE__ */ Reference("effect/Schedule/CurrentMetadata", {
|
|
5628
5647
|
defaultValue: /* @__PURE__ */ constant({
|
|
@@ -5714,11 +5733,11 @@ var while_ = /* @__PURE__ */ dual(2, (self, predicate) => fromStep(map5(toStep(s
|
|
|
5714
5733
|
})));
|
|
5715
5734
|
var forever2 = /* @__PURE__ */ spaced(zero);
|
|
5716
5735
|
|
|
5717
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
5736
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/layer.js
|
|
5718
5737
|
var provideLayer = (self, layer16, options) => scopedWith((scope3) => flatMap2(options?.local ? buildWithMemoMap(layer16, makeMemoMapUnsafe(), scope3) : buildWithScope(layer16, scope3), (context3) => provideContext(self, context3)));
|
|
5719
5738
|
var provide3 = /* @__PURE__ */ dual((args2) => isEffect(args2[0]), (self, source, options) => isContext(source) ? provideContext(self, source) : provideLayer(self, Array.isArray(source) ? mergeAll2(...source) : source, options));
|
|
5720
5739
|
|
|
5721
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
5740
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/schedule.js
|
|
5722
5741
|
var repeatOrElse = /* @__PURE__ */ dual(3, (self, schedule3, orElse4) => flatMap2(toStepWithMetadata(schedule3), (step) => {
|
|
5723
5742
|
let meta = CurrentMetadata2.defaultValue();
|
|
5724
5743
|
return catch_(forever(tap(flatMap2(suspend(() => provideService(self, CurrentMetadata2, meta)), step), (meta_) => sync(() => {
|
|
@@ -5789,7 +5808,7 @@ var buildFromOptions = (options) => {
|
|
|
5789
5808
|
return schedule3;
|
|
5790
5809
|
};
|
|
5791
5810
|
|
|
5792
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
5811
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/executionPlan.js
|
|
5793
5812
|
var makeEventEmitter = (onEvent, currentMetadata) => {
|
|
5794
5813
|
let lastStepIndex = -1;
|
|
5795
5814
|
let stepAttempt = 0;
|
|
@@ -5895,7 +5914,7 @@ var scheduleFromStep = (step, first) => {
|
|
|
5895
5914
|
var scheduleOnce = /* @__PURE__ */ recurs(1);
|
|
5896
5915
|
var makeEntry = (options) => options;
|
|
5897
5916
|
|
|
5898
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
5917
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/request.js
|
|
5899
5918
|
var request = /* @__PURE__ */ dual(2, (self, resolver) => {
|
|
5900
5919
|
const withResolver = (resolver2) => callback((resume) => {
|
|
5901
5920
|
const entry = addEntry(resolver2, self, resume, getCurrentFiber());
|
|
@@ -6011,7 +6030,7 @@ function runBatch(batch) {
|
|
|
6011
6030
|
}
|
|
6012
6031
|
var update = /* @__PURE__ */ dual(2, (self, input) => contextWith((services) => sync(() => self.updateUnsafe(input, services))));
|
|
6013
6032
|
|
|
6014
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
6033
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Effect.js
|
|
6015
6034
|
var TypeId11 = EffectTypeId;
|
|
6016
6035
|
var isEffect2 = isEffect;
|
|
6017
6036
|
var all2 = all;
|
|
@@ -6372,7 +6391,7 @@ var flatMapEager2 = flatMapEager;
|
|
|
6372
6391
|
var catchEager2 = catchEager;
|
|
6373
6392
|
var fnUntracedEager2 = fnUntracedEager;
|
|
6374
6393
|
|
|
6375
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
6394
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/FileSystem.js
|
|
6376
6395
|
var FileSystem_exports = {};
|
|
6377
6396
|
__export(FileSystem_exports, {
|
|
6378
6397
|
FileSystem: () => FileSystem,
|
|
@@ -6384,7 +6403,7 @@ __export(FileSystem_exports, {
|
|
|
6384
6403
|
makeNoop: () => makeNoop
|
|
6385
6404
|
});
|
|
6386
6405
|
|
|
6387
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
6406
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/BigInt.js
|
|
6388
6407
|
var BigInt2 = globalThis.BigInt;
|
|
6389
6408
|
var toNumber = (b2) => {
|
|
6390
6409
|
if (b2 > BigInt2(Number.MAX_SAFE_INTEGER) || b2 < BigInt2(Number.MIN_SAFE_INTEGER)) {
|
|
@@ -6393,7 +6412,7 @@ var toNumber = (b2) => {
|
|
|
6393
6412
|
return some2(Number(b2));
|
|
6394
6413
|
};
|
|
6395
6414
|
|
|
6396
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
6415
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/ByteSize.js
|
|
6397
6416
|
var bigint03 = /* @__PURE__ */ BigInt(0);
|
|
6398
6417
|
var bigint12 = /* @__PURE__ */ BigInt(1);
|
|
6399
6418
|
var decimalBase = /* @__PURE__ */ BigInt(1e3);
|
|
@@ -6515,7 +6534,7 @@ var fromInputUnsafe2 = (input) => {
|
|
|
6515
6534
|
};
|
|
6516
6535
|
var bytes = (value3) => typeof value3 === "bigint" ? fromInputUnsafe2(value3) : fromNumber(value3);
|
|
6517
6536
|
|
|
6518
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
6537
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/PlatformError.js
|
|
6519
6538
|
var TypeId12 = "~effect/PlatformError";
|
|
6520
6539
|
var BadArgument = class extends (/* @__PURE__ */ TaggedError2("BadArgument")) {
|
|
6521
6540
|
/**
|
|
@@ -6575,14 +6594,16 @@ var PlatformError = class extends (/* @__PURE__ */ TaggedError2("PlatformError")
|
|
|
6575
6594
|
var systemError = (options) => new PlatformError(new SystemError(options));
|
|
6576
6595
|
var badArgument = (options) => new PlatformError(new BadArgument(options));
|
|
6577
6596
|
|
|
6578
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
6597
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Fiber.js
|
|
6598
|
+
var join = fiberJoin;
|
|
6579
6599
|
var interrupt3 = fiberInterrupt;
|
|
6600
|
+
var getCurrent = getCurrentFiber;
|
|
6580
6601
|
var runIn = fiberRunIn;
|
|
6581
6602
|
|
|
6582
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
6603
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Latch.js
|
|
6583
6604
|
var makeUnsafe4 = makeLatchUnsafe;
|
|
6584
6605
|
|
|
6585
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
6606
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/MutableRef.js
|
|
6586
6607
|
var TypeId13 = "~effect/MutableRef";
|
|
6587
6608
|
var MutableRefProto = {
|
|
6588
6609
|
[TypeId13]: TypeId13,
|
|
@@ -6600,7 +6621,7 @@ var make7 = (value3) => {
|
|
|
6600
6621
|
return ref;
|
|
6601
6622
|
};
|
|
6602
6623
|
|
|
6603
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
6624
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/MutableList.js
|
|
6604
6625
|
var Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
|
|
6605
6626
|
var make8 = () => ({
|
|
6606
6627
|
head: void 0,
|
|
@@ -6686,7 +6707,7 @@ var take = (self) => {
|
|
|
6686
6707
|
return message;
|
|
6687
6708
|
};
|
|
6688
6709
|
|
|
6689
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
6710
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Queue.js
|
|
6690
6711
|
var TypeId14 = "~effect/Queue";
|
|
6691
6712
|
var EnqueueTypeId = "~effect/Queue/Enqueue";
|
|
6692
6713
|
var DequeueTypeId = "~effect/Queue/Dequeue";
|
|
@@ -6820,8 +6841,9 @@ var releaseTakers = (self) => {
|
|
|
6820
6841
|
return;
|
|
6821
6842
|
}
|
|
6822
6843
|
for (const taker of self.state.takers) {
|
|
6844
|
+
if (!taker.ready()) continue;
|
|
6823
6845
|
self.state.takers.delete(taker);
|
|
6824
|
-
taker(exitVoid);
|
|
6846
|
+
taker.resume(exitVoid);
|
|
6825
6847
|
if (self.messages.length === 0) {
|
|
6826
6848
|
break;
|
|
6827
6849
|
}
|
|
@@ -6853,9 +6875,13 @@ var canTake = (self, min3) => self.messages.length >= (self.state._tag === "Clos
|
|
|
6853
6875
|
var awaitTake = (self, ready) => callback((resume) => {
|
|
6854
6876
|
if (self.state._tag === "Done") return resume(self.state.exit);
|
|
6855
6877
|
if (ready()) return resume(exitVoid);
|
|
6856
|
-
|
|
6878
|
+
const taker = {
|
|
6879
|
+
ready,
|
|
6880
|
+
resume
|
|
6881
|
+
};
|
|
6882
|
+
self.state.takers.add(taker);
|
|
6857
6883
|
return sync(() => {
|
|
6858
|
-
if (self.state._tag !== "Done") self.state.takers.delete(
|
|
6884
|
+
if (self.state._tag !== "Done") self.state.takers.delete(taker);
|
|
6859
6885
|
});
|
|
6860
6886
|
});
|
|
6861
6887
|
var offerOrWait = (self, message) => callback((resume) => offerUnsafe(self, message) ? resume(exitTrue) : waitToOffer(self, {
|
|
@@ -6929,7 +6955,7 @@ var finalize = (self, exit3) => {
|
|
|
6929
6955
|
exit: exit3
|
|
6930
6956
|
};
|
|
6931
6957
|
for (const taker of openState.takers) {
|
|
6932
|
-
taker(exit3);
|
|
6958
|
+
taker.resume(exit3);
|
|
6933
6959
|
}
|
|
6934
6960
|
openState.takers.clear();
|
|
6935
6961
|
for (const awaiter of openState.awaiters) {
|
|
@@ -6938,103 +6964,7 @@ var finalize = (self, exit3) => {
|
|
|
6938
6964
|
openState.awaiters.clear();
|
|
6939
6965
|
};
|
|
6940
6966
|
|
|
6941
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
6942
|
-
var makeUnsafe5 = (permits) => new SemaphoreImpl(permits);
|
|
6943
|
-
var waitForPermits = (self, n, effect2) => callback((resume) => {
|
|
6944
|
-
if (self.free >= n) return resume(effect2);
|
|
6945
|
-
const observer = () => {
|
|
6946
|
-
if (self.free < n) return;
|
|
6947
|
-
self.waiters.delete(observer);
|
|
6948
|
-
resume(effect2);
|
|
6949
|
-
};
|
|
6950
|
-
self.waiters.add(observer);
|
|
6951
|
-
return sync(() => {
|
|
6952
|
-
self.waiters.delete(observer);
|
|
6953
|
-
});
|
|
6954
|
-
});
|
|
6955
|
-
var SemaphoreImpl = class {
|
|
6956
|
-
waiters = /* @__PURE__ */ new Set();
|
|
6957
|
-
taken = 0;
|
|
6958
|
-
permits;
|
|
6959
|
-
constructor(permits) {
|
|
6960
|
-
this.permits = permits;
|
|
6961
|
-
}
|
|
6962
|
-
get free() {
|
|
6963
|
-
return this.permits - this.taken;
|
|
6964
|
-
}
|
|
6965
|
-
take(n) {
|
|
6966
|
-
const take3 = suspend(() => {
|
|
6967
|
-
if (this.free < n) {
|
|
6968
|
-
return waitForPermits(this, n, take3);
|
|
6969
|
-
}
|
|
6970
|
-
this.taken += n;
|
|
6971
|
-
return succeed3(n);
|
|
6972
|
-
});
|
|
6973
|
-
return take3;
|
|
6974
|
-
}
|
|
6975
|
-
takeIfAvailable(n) {
|
|
6976
|
-
return suspend(() => {
|
|
6977
|
-
if (this.free < n) return succeed3(false);
|
|
6978
|
-
this.taken += n;
|
|
6979
|
-
return succeed3(true);
|
|
6980
|
-
});
|
|
6981
|
-
}
|
|
6982
|
-
releaseUnsafe(fiber3, n) {
|
|
6983
|
-
this.taken -= n;
|
|
6984
|
-
if (this.waiters.size > 0) {
|
|
6985
|
-
fiber3.currentDispatcher.scheduleTask(() => {
|
|
6986
|
-
for (const observer of this.waiters) {
|
|
6987
|
-
if (this.free <= 0) break;
|
|
6988
|
-
observer();
|
|
6989
|
-
}
|
|
6990
|
-
}, 0);
|
|
6991
|
-
}
|
|
6992
|
-
return this.free;
|
|
6993
|
-
}
|
|
6994
|
-
resize(permits) {
|
|
6995
|
-
return withFiber((fiber3) => {
|
|
6996
|
-
this.permits = permits;
|
|
6997
|
-
if (this.free < 0) return void_;
|
|
6998
|
-
this.releaseUnsafe(fiber3, 0);
|
|
6999
|
-
return void_;
|
|
7000
|
-
});
|
|
7001
|
-
}
|
|
7002
|
-
release(n) {
|
|
7003
|
-
return withFiber((fiber3) => succeed3(this.releaseUnsafe(fiber3, n)));
|
|
7004
|
-
}
|
|
7005
|
-
get releaseAll() {
|
|
7006
|
-
return withFiber((fiber3) => succeed3(this.releaseUnsafe(fiber3, this.taken)));
|
|
7007
|
-
}
|
|
7008
|
-
withPermits(n) {
|
|
7009
|
-
return (self) => uninterruptibleMask((restore) => {
|
|
7010
|
-
const acquire = suspend(() => {
|
|
7011
|
-
if (this.free < n) {
|
|
7012
|
-
const wait = waitForPermits(this, n, void_);
|
|
7013
|
-
return flatMap2(restore(wait), () => acquire);
|
|
7014
|
-
}
|
|
7015
|
-
this.taken += n;
|
|
7016
|
-
return onExitPrimitive(restore(self), () => {
|
|
7017
|
-
this.releaseUnsafe(getCurrentFiber(), n);
|
|
7018
|
-
return void 0;
|
|
7019
|
-
}, true);
|
|
7020
|
-
});
|
|
7021
|
-
return acquire;
|
|
7022
|
-
});
|
|
7023
|
-
}
|
|
7024
|
-
withPermit = /* @__PURE__ */ this.withPermits(1);
|
|
7025
|
-
withPermitsIfAvailable(n) {
|
|
7026
|
-
return (self) => uninterruptibleMask((restore) => {
|
|
7027
|
-
if (this.free < n) return succeedNone;
|
|
7028
|
-
this.taken += n;
|
|
7029
|
-
return onExitPrimitive(restore(asSome(self)), () => {
|
|
7030
|
-
this.releaseUnsafe(getCurrentFiber(), n);
|
|
7031
|
-
return void 0;
|
|
7032
|
-
}, true);
|
|
7033
|
-
});
|
|
7034
|
-
}
|
|
7035
|
-
};
|
|
7036
|
-
|
|
7037
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.118/node_modules/effect/dist/Channel.js
|
|
6967
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Channel.js
|
|
7038
6968
|
var TypeId15 = "~effect/Channel";
|
|
7039
6969
|
var isChannel = (u2) => hasProperty(u2, TypeId15);
|
|
7040
6970
|
var ChannelProto = {
|
|
@@ -7237,7 +7167,7 @@ var runFold = /* @__PURE__ */ dual(3, (self, initial, f2) => suspend2(() => {
|
|
|
7237
7167
|
}));
|
|
7238
7168
|
var toPullScoped = (self, scope3) => toTransform(self)(done2(), scope3);
|
|
7239
7169
|
|
|
7240
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
7170
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/stream.js
|
|
7241
7171
|
var TypeId16 = "~effect/Stream";
|
|
7242
7172
|
var streamVariance = {
|
|
7243
7173
|
_R: identity,
|
|
@@ -7255,7 +7185,7 @@ Stream.prototype = {
|
|
|
7255
7185
|
};
|
|
7256
7186
|
var fromChannel = (channel) => new Stream(channel);
|
|
7257
7187
|
|
|
7258
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
7188
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Sink.js
|
|
7259
7189
|
var TypeId17 = "~effect/Sink";
|
|
7260
7190
|
var endVoid = /* @__PURE__ */ succeed6([void 0]);
|
|
7261
7191
|
var sinkVariance = {
|
|
@@ -7294,7 +7224,7 @@ var forEachArray = (f2) => fromTransform2((upstream) => upstream.pipe(flatMap3(f
|
|
|
7294
7224
|
}), catchDone(() => endVoid)));
|
|
7295
7225
|
var unwrap2 = (effect2) => fromChannel2(unwrap(map7(effect2, toChannel)));
|
|
7296
7226
|
|
|
7297
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
7227
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/rcRef.js
|
|
7298
7228
|
var TypeId18 = "~effect/RcRef";
|
|
7299
7229
|
var stateEmpty = {
|
|
7300
7230
|
_tag: "Empty"
|
|
@@ -7312,7 +7242,6 @@ var RcRefImpl = class {
|
|
|
7312
7242
|
return pipeArguments(this, arguments);
|
|
7313
7243
|
}
|
|
7314
7244
|
state = stateEmpty;
|
|
7315
|
-
semaphore = /* @__PURE__ */ makeUnsafe5(1);
|
|
7316
7245
|
acquire;
|
|
7317
7246
|
context;
|
|
7318
7247
|
scope;
|
|
@@ -7329,9 +7258,11 @@ var make10 = (options) => withFiber2((fiber3) => {
|
|
|
7329
7258
|
const scope3 = get(context3, Scope);
|
|
7330
7259
|
const ref = new RcRefImpl(options.acquire, context3, scope3, options.idleTimeToLive !== void 0 ? fromInputUnsafe(options.idleTimeToLive) : void 0);
|
|
7331
7260
|
return as2(addFinalizerExit(scope3, () => {
|
|
7332
|
-
const
|
|
7261
|
+
const state = ref.state;
|
|
7333
7262
|
ref.state = stateClosed;
|
|
7334
|
-
return
|
|
7263
|
+
if (state._tag === "Acquired") return close(state.scope, void_2);
|
|
7264
|
+
if (state._tag === "Acquiring") return interrupt3(state.fiber);
|
|
7265
|
+
return void_3;
|
|
7335
7266
|
}), ref);
|
|
7336
7267
|
});
|
|
7337
7268
|
var getState = (self, restore) => {
|
|
@@ -7344,31 +7275,55 @@ var getState = (self, restore) => {
|
|
|
7344
7275
|
state.refCount++;
|
|
7345
7276
|
return state.fiber ? as2(interrupt3(state.fiber), state) : succeed6(state);
|
|
7346
7277
|
}
|
|
7278
|
+
case "Acquiring": {
|
|
7279
|
+
const state = self.state;
|
|
7280
|
+
state.awaiters++;
|
|
7281
|
+
return awaitAcquiring(self, state, restore);
|
|
7282
|
+
}
|
|
7347
7283
|
case "Empty": {
|
|
7348
|
-
|
|
7349
|
-
|
|
7350
|
-
|
|
7284
|
+
const acquiring = {
|
|
7285
|
+
_tag: "Acquiring",
|
|
7286
|
+
fiber: void 0,
|
|
7287
|
+
awaiters: 1,
|
|
7288
|
+
acquired: void 0
|
|
7289
|
+
};
|
|
7290
|
+
self.state = acquiring;
|
|
7291
|
+
const scope3 = makeUnsafe3();
|
|
7292
|
+
const acquire = provideContext2(self.acquire, add(self.context, Scope, scope3)).pipe(flatMap3((value3) => {
|
|
7293
|
+
if (self.state !== acquiring) {
|
|
7294
|
+
return interrupt2;
|
|
7351
7295
|
}
|
|
7352
|
-
const
|
|
7353
|
-
|
|
7354
|
-
|
|
7355
|
-
|
|
7356
|
-
|
|
7357
|
-
|
|
7358
|
-
|
|
7359
|
-
|
|
7360
|
-
|
|
7361
|
-
|
|
7362
|
-
|
|
7363
|
-
|
|
7364
|
-
|
|
7365
|
-
|
|
7366
|
-
|
|
7367
|
-
|
|
7296
|
+
const state = {
|
|
7297
|
+
_tag: "Acquired",
|
|
7298
|
+
value: value3,
|
|
7299
|
+
scope: scope3,
|
|
7300
|
+
fiber: void 0,
|
|
7301
|
+
// Every caller still waiting holds a reference.
|
|
7302
|
+
refCount: acquiring.awaiters,
|
|
7303
|
+
invalidated: false
|
|
7304
|
+
};
|
|
7305
|
+
self.state = state;
|
|
7306
|
+
acquiring.acquired = state;
|
|
7307
|
+
return succeed6(state);
|
|
7308
|
+
}), onExit2((exit3) => {
|
|
7309
|
+
if (isSuccess4(exit3)) return void_3;
|
|
7310
|
+
if (self.state === acquiring) self.state = stateEmpty;
|
|
7311
|
+
return close(scope3, exit3);
|
|
7368
7312
|
}));
|
|
7313
|
+
acquiring.fiber = runForkWith2(getCurrent().context)(acquire);
|
|
7314
|
+
return awaitAcquiring(self, acquiring, restore);
|
|
7369
7315
|
}
|
|
7370
7316
|
}
|
|
7371
7317
|
};
|
|
7318
|
+
var awaitAcquiring = (self, acquiring, restore) => onExit2(restore(join(acquiring.fiber)), (exit3) => {
|
|
7319
|
+
const acquired = acquiring.acquired;
|
|
7320
|
+
if (acquired !== void 0) {
|
|
7321
|
+
return isFailure4(exit3) ? release(self, acquired) : void_3;
|
|
7322
|
+
}
|
|
7323
|
+
if (--acquiring.awaiters > 0 || self.state !== acquiring) return void_3;
|
|
7324
|
+
self.state = stateEmpty;
|
|
7325
|
+
return interrupt3(acquiring.fiber);
|
|
7326
|
+
});
|
|
7372
7327
|
var get2 = (self_) => {
|
|
7373
7328
|
const self = self_;
|
|
7374
7329
|
return uninterruptibleMask2((restore) => flatMap3(scope2, (scope3) => flatMap3(getState(self, restore), (state) => as2(addFinalizerExit(scope3, () => release(self, state)), state.value))));
|
|
@@ -7399,11 +7354,11 @@ var release = (self, state) => {
|
|
|
7399
7354
|
return void_3;
|
|
7400
7355
|
};
|
|
7401
7356
|
|
|
7402
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
7357
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/RcRef.js
|
|
7403
7358
|
var make11 = make10;
|
|
7404
7359
|
var get3 = get2;
|
|
7405
7360
|
|
|
7406
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
7361
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Stream.js
|
|
7407
7362
|
var TypeId19 = "~effect/Stream";
|
|
7408
7363
|
var isStream = (u2) => hasProperty(u2, TypeId19);
|
|
7409
7364
|
var fromChannel3 = fromChannel;
|
|
@@ -7494,7 +7449,7 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args2) => isStream(args2[0]), (
|
|
|
7494
7449
|
});
|
|
7495
7450
|
var toReadableStreamEffect = /* @__PURE__ */ dual((args2) => isStream(args2[0]), (self, options) => map7(context2(), (context3) => toReadableStreamWith(self, context3, options)));
|
|
7496
7451
|
|
|
7497
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
7452
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/FileSystem.js
|
|
7498
7453
|
var TypeId20 = "~effect/FileSystem";
|
|
7499
7454
|
var FileSystem = /* @__PURE__ */ Service("effect/FileSystem");
|
|
7500
7455
|
var make12 = (impl) => FileSystem.of({
|
|
@@ -7656,7 +7611,7 @@ var isFile = (u2) => hasProperty(u2, FileTypeId);
|
|
|
7656
7611
|
var WatchBackend = class extends (/* @__PURE__ */ Service()("effect/FileSystem/WatchBackend")) {
|
|
7657
7612
|
};
|
|
7658
7613
|
|
|
7659
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
7614
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Logger.js
|
|
7660
7615
|
var CurrentLoggers2 = CurrentLoggers;
|
|
7661
7616
|
var make13 = loggerMake;
|
|
7662
7617
|
var layer = (loggers, options) => effect(CurrentLoggers2, withFiber(fnUntraced(function* (fiber3) {
|
|
@@ -7667,7 +7622,7 @@ var layer = (loggers, options) => effect(CurrentLoggers2, withFiber(fnUntraced(f
|
|
|
7667
7622
|
return currentLoggers;
|
|
7668
7623
|
})));
|
|
7669
7624
|
|
|
7670
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
7625
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/http/Cookies.js
|
|
7671
7626
|
var TypeId21 = "~effect/http/Cookies";
|
|
7672
7627
|
var CookieTypeId = "~effect/http/Cookies/Cookie";
|
|
7673
7628
|
var Proto3 = {
|
|
@@ -7850,7 +7805,7 @@ var tryDecodeURIComponent = (str) => {
|
|
|
7850
7805
|
}
|
|
7851
7806
|
};
|
|
7852
7807
|
|
|
7853
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
7808
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/redacted.js
|
|
7854
7809
|
var redactedRegistry = /* @__PURE__ */ new WeakMap();
|
|
7855
7810
|
var value = (self) => {
|
|
7856
7811
|
if (redactedRegistry.has(self)) {
|
|
@@ -7860,7 +7815,7 @@ var value = (self) => {
|
|
|
7860
7815
|
}
|
|
7861
7816
|
};
|
|
7862
7817
|
|
|
7863
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
7818
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Redacted.js
|
|
7864
7819
|
var TypeId22 = "~effect/Redacted";
|
|
7865
7820
|
var isRedacted = (u2) => hasProperty(u2, TypeId22);
|
|
7866
7821
|
var make14 = (value3, options) => {
|
|
@@ -7892,7 +7847,7 @@ var Proto4 = {
|
|
|
7892
7847
|
};
|
|
7893
7848
|
var value2 = value;
|
|
7894
7849
|
|
|
7895
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
7850
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/http/Headers.js
|
|
7896
7851
|
var TypeId23 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
|
|
7897
7852
|
var Proto5 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
|
|
7898
7853
|
[TypeId23]: {
|
|
@@ -8016,7 +7971,7 @@ var codes = /* @__PURE__ */ new Uint8Array(123).fill(255);
|
|
|
8016
7971
|
for (let i = 0; i < alphabet.length; i++) codes[/* @__PURE__ */ alphabet.charCodeAt(i)] = i;
|
|
8017
7972
|
codes[/* @__PURE__ */ "=".charCodeAt(0)] = 0;
|
|
8018
7973
|
|
|
8019
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
7974
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/http/UrlParams.js
|
|
8020
7975
|
var TypeId24 = "~effect/http/UrlParams";
|
|
8021
7976
|
var isUrlParams = (u2) => hasProperty(u2, TypeId24);
|
|
8022
7977
|
var Proto6 = {
|
|
@@ -8096,7 +8051,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
|
8096
8051
|
return make16(params);
|
|
8097
8052
|
});
|
|
8098
8053
|
|
|
8099
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
8054
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/schema/annotations.js
|
|
8100
8055
|
function resolve(ast) {
|
|
8101
8056
|
return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
|
|
8102
8057
|
}
|
|
@@ -8109,7 +8064,7 @@ var getExpected = /* @__PURE__ */ memoize((ast) => {
|
|
|
8109
8064
|
return ast.getExpected(getExpected);
|
|
8110
8065
|
});
|
|
8111
8066
|
|
|
8112
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
8067
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/schema/parser.js
|
|
8113
8068
|
var missing = /* @__PURE__ */ Symbol();
|
|
8114
8069
|
var succeed8 = succeed4;
|
|
8115
8070
|
var missingExit = /* @__PURE__ */ succeed8(missing);
|
|
@@ -8117,7 +8072,7 @@ var sameExit = /* @__PURE__ */ succeed8(missing);
|
|
|
8117
8072
|
var toOption = (value3) => value3 === missing ? none2() : some2(value3);
|
|
8118
8073
|
var fromOptionExit = (option4) => option4._tag === "None" ? missingExit : succeed8(option4.value);
|
|
8119
8074
|
|
|
8120
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
8075
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/SchemaIssue.js
|
|
8121
8076
|
var TypeId25 = "~effect/SchemaIssue/Issue";
|
|
8122
8077
|
function isIssue(u2) {
|
|
8123
8078
|
return hasProperty(u2, TypeId25) && u2[TypeId25] === TypeId25;
|
|
@@ -8400,7 +8355,7 @@ function findMessage(issue) {
|
|
|
8400
8355
|
if (typeof message === "string") return message;
|
|
8401
8356
|
}
|
|
8402
8357
|
|
|
8403
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
8358
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/schema/cause.js
|
|
8404
8359
|
function getSchemaIssue(cause) {
|
|
8405
8360
|
let issue;
|
|
8406
8361
|
for (const reason of cause.reasons) {
|
|
@@ -8421,7 +8376,7 @@ function getSchemaIssueOrThrow(cause, message) {
|
|
|
8421
8376
|
return issue;
|
|
8422
8377
|
}
|
|
8423
8378
|
|
|
8424
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
8379
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/SchemaGetter.js
|
|
8425
8380
|
var makeGetter = (fields) => Object.assign(Object.create(Prototype), fields);
|
|
8426
8381
|
var passthrough_ = /* @__PURE__ */ makeGetter({
|
|
8427
8382
|
_tag: "Passthrough"
|
|
@@ -8445,7 +8400,7 @@ function Date2() {
|
|
|
8445
8400
|
return transform((u2) => new globalThis.Date(u2));
|
|
8446
8401
|
}
|
|
8447
8402
|
|
|
8448
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
8403
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/SchemaTransformation.js
|
|
8449
8404
|
var TypeId26 = "~effect/SchemaTransformation/Transformation";
|
|
8450
8405
|
var Transformation = class extends Class {
|
|
8451
8406
|
[TypeId26] = TypeId26;
|
|
@@ -8532,7 +8487,7 @@ var defectFromJson = (options) => transform2({
|
|
|
8532
8487
|
encode: makeEncodeDefect(options)
|
|
8533
8488
|
});
|
|
8534
8489
|
|
|
8535
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
8490
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/SchemaAST.js
|
|
8536
8491
|
function makeGuard(tag2) {
|
|
8537
8492
|
return (ast) => ast._tag === tag2;
|
|
8538
8493
|
}
|
|
@@ -9416,7 +9371,7 @@ var candidateIndexCache = /* @__PURE__ */ new WeakMap();
|
|
|
9416
9371
|
var emptyCandidates = /* @__PURE__ */ Object.freeze([]);
|
|
9417
9372
|
var getRuntimeType = (input) => input === null ? "null" : Array.isArray(input) ? "array" : typeof input;
|
|
9418
9373
|
var hasPropertySignature = (input, key) => key === "__proto__" ? Object.hasOwn(input, key) : key in input;
|
|
9419
|
-
function
|
|
9374
|
+
function getCandidateIndex(types) {
|
|
9420
9375
|
let index = candidateIndexCache.get(types);
|
|
9421
9376
|
if (index) return index;
|
|
9422
9377
|
let bySentinel;
|
|
@@ -9424,6 +9379,7 @@ function getIndex(types) {
|
|
|
9424
9379
|
let otherwise;
|
|
9425
9380
|
let literalCandidates;
|
|
9426
9381
|
let onlyLiterals = true;
|
|
9382
|
+
const literalOf = [];
|
|
9427
9383
|
for (let i = 0; i < types.length; i++) {
|
|
9428
9384
|
const a = types[i];
|
|
9429
9385
|
const encoded = toCandidate(a);
|
|
@@ -9431,9 +9387,10 @@ function getIndex(types) {
|
|
|
9431
9387
|
if (isLiteral(encoded) || isUniqueSymbol(encoded)) {
|
|
9432
9388
|
literalCandidates ??= /* @__PURE__ */ new Map();
|
|
9433
9389
|
const literal = isLiteral(encoded) ? encoded.literal : encoded.symbol;
|
|
9390
|
+
literalOf[i] = literal;
|
|
9434
9391
|
let arr = literalCandidates.get(literal);
|
|
9435
9392
|
if (!arr) literalCandidates.set(literal, arr = []);
|
|
9436
|
-
arr.push(
|
|
9393
|
+
arr.push(i);
|
|
9437
9394
|
} else {
|
|
9438
9395
|
onlyLiterals = false;
|
|
9439
9396
|
}
|
|
@@ -9459,21 +9416,22 @@ function getIndex(types) {
|
|
|
9459
9416
|
}
|
|
9460
9417
|
}
|
|
9461
9418
|
const fallbacks = {};
|
|
9462
|
-
const getFallback = (type) => fallbacks[type] ??= Object.freeze(
|
|
9419
|
+
const getFallback = (type) => fallbacks[type] ??= Object.freeze(otherwise?.[type] ?? emptyCandidates);
|
|
9463
9420
|
if (onlyLiterals && literalCandidates) {
|
|
9464
9421
|
literalCandidates.forEach(Object.freeze);
|
|
9465
9422
|
index = (input) => literalCandidates.get(input) ?? emptyCandidates;
|
|
9466
9423
|
} else if (bySentinel?.size === 1 && !otherwise) {
|
|
9467
9424
|
const [key, [byValue]] = bySentinel.entries().next().value;
|
|
9468
|
-
const candidates =
|
|
9425
|
+
const candidates = /* @__PURE__ */ new Map();
|
|
9469
9426
|
for (const [literal, indexes] of byValue) {
|
|
9470
|
-
candidates.set(literal, Object.freeze(Array.from(indexes
|
|
9427
|
+
candidates.set(literal, Object.freeze(Array.from(indexes)));
|
|
9471
9428
|
}
|
|
9429
|
+
const all5 = Object.freeze(types.map((_2, i) => i));
|
|
9472
9430
|
index = (input, isConstructor) => {
|
|
9473
9431
|
if (isObjectKeyword(input)) {
|
|
9474
9432
|
const value3 = hasPropertySignature(input, key) ? input[key] : void 0;
|
|
9475
9433
|
if (value3 !== void 0) return candidates.get(value3) ?? emptyCandidates;
|
|
9476
|
-
if (isConstructor) return
|
|
9434
|
+
if (isConstructor) return all5;
|
|
9477
9435
|
}
|
|
9478
9436
|
return emptyCandidates;
|
|
9479
9437
|
};
|
|
@@ -9525,26 +9483,17 @@ function getIndex(types) {
|
|
|
9525
9483
|
}
|
|
9526
9484
|
}
|
|
9527
9485
|
}
|
|
9528
|
-
return Array.from(selected).sort((a, b2) => a - b2)
|
|
9486
|
+
return Array.from(selected).sort((a, b2) => a - b2);
|
|
9529
9487
|
};
|
|
9530
9488
|
} else {
|
|
9531
9489
|
index = (input) => {
|
|
9532
9490
|
const fallback = getFallback(getRuntimeType(input));
|
|
9533
|
-
return literalCandidates ? fallback.filter(
|
|
9491
|
+
return literalCandidates ? fallback.filter((i) => literalOf[i] === void 0 || literalOf[i] === input) : fallback;
|
|
9534
9492
|
};
|
|
9535
9493
|
}
|
|
9536
9494
|
candidateIndexCache.set(types, index);
|
|
9537
9495
|
return index;
|
|
9538
9496
|
}
|
|
9539
|
-
function filterLiterals(input) {
|
|
9540
|
-
return (ast) => {
|
|
9541
|
-
const encoded = toCandidate(ast);
|
|
9542
|
-
return encoded._tag === "Literal" ? encoded.literal === input : encoded._tag === "UniqueSymbol" ? encoded.symbol === input : true;
|
|
9543
|
-
};
|
|
9544
|
-
}
|
|
9545
|
-
function getCandidates(input, types, isConstructor = false) {
|
|
9546
|
-
return getIndex(types)(input, isConstructor);
|
|
9547
|
-
}
|
|
9548
9497
|
var Union = class extends ASTNodeImpl {
|
|
9549
9498
|
_tag = "Union";
|
|
9550
9499
|
types;
|
|
@@ -9559,38 +9508,24 @@ var Union = class extends ASTNodeImpl {
|
|
|
9559
9508
|
/** @internal */
|
|
9560
9509
|
getParser(compile2, compileField2) {
|
|
9561
9510
|
const ast = this;
|
|
9511
|
+
const isConstructor = compileField2 !== void 0;
|
|
9512
|
+
const parsers = [];
|
|
9513
|
+
const parser = (i) => parsers[i] ??= compile2(ast.types[i]);
|
|
9514
|
+
let index;
|
|
9562
9515
|
return (input, options) => {
|
|
9563
9516
|
if (input === missing) {
|
|
9564
9517
|
return missingExit;
|
|
9565
9518
|
}
|
|
9566
|
-
const candidates =
|
|
9519
|
+
const candidates = (index ??= getCandidateIndex(ast.types))(input, isConstructor);
|
|
9567
9520
|
if (candidates.length === 0) {
|
|
9568
9521
|
return fail6(new AnyOf(ast, [], input, options));
|
|
9569
9522
|
}
|
|
9570
9523
|
if (candidates.length === 1) {
|
|
9571
|
-
const result3 =
|
|
9524
|
+
const result3 = parser(candidates[0])(input, options);
|
|
9572
9525
|
if (result3._tag === "Success") return result3;
|
|
9573
|
-
return effectIsExit(result3) ? failSingleUnionCandidate(ast, result3.cause, input, options) :
|
|
9526
|
+
return effectIsExit(result3) ? failSingleUnionCandidate(ast, result3.cause, input, options) : catchSingleUnionCandidate(ast, result3, input, options);
|
|
9574
9527
|
}
|
|
9575
|
-
|
|
9576
|
-
ast,
|
|
9577
|
-
compile: compile2,
|
|
9578
|
-
input,
|
|
9579
|
-
out: void 0,
|
|
9580
|
-
successes: ast.options?.mode === "oneOf" ? [] : void 0,
|
|
9581
|
-
issues: void 0,
|
|
9582
|
-
options
|
|
9583
|
-
};
|
|
9584
|
-
const eff = parseUnion(state, candidates);
|
|
9585
|
-
if (!eff) {
|
|
9586
|
-
if (state.out) return state.out;
|
|
9587
|
-
return fail6(new AnyOf(ast, state.issues ?? [], input, options));
|
|
9588
|
-
}
|
|
9589
|
-
return flatMapEager2(eff, (_2) => {
|
|
9590
|
-
if (state.out === sameExit) return succeed6(input);
|
|
9591
|
-
if (state.out) return state.out;
|
|
9592
|
-
return fail6(new AnyOf(ast, state.issues ?? [], input, options));
|
|
9593
|
-
});
|
|
9528
|
+
return parseUnionCandidates(ast, parser, candidates, input, options);
|
|
9594
9529
|
};
|
|
9595
9530
|
}
|
|
9596
9531
|
_rebuild(recur, checks, encodingChecks) {
|
|
@@ -9646,12 +9581,38 @@ function failSingleUnionCandidate(ast, cause, input, options) {
|
|
|
9646
9581
|
if (!issue) return failCause2(cause);
|
|
9647
9582
|
return fail4(new AnyOf(ast, [issue], input, options));
|
|
9648
9583
|
}
|
|
9584
|
+
function catchSingleUnionCandidate(ast, result3, input, options) {
|
|
9585
|
+
return catchCause2(result3, (cause) => failSingleUnionCandidate(ast, cause, input, options));
|
|
9586
|
+
}
|
|
9587
|
+
function parseUnionCandidates(ast, parser, candidates, input, options) {
|
|
9588
|
+
const state = {
|
|
9589
|
+
ast,
|
|
9590
|
+
parser,
|
|
9591
|
+
input,
|
|
9592
|
+
out: void 0,
|
|
9593
|
+
successes: ast.options?.mode === "oneOf" ? [] : void 0,
|
|
9594
|
+
issues: void 0,
|
|
9595
|
+
options
|
|
9596
|
+
};
|
|
9597
|
+
const eff = parseUnion(state, candidates);
|
|
9598
|
+
if (!eff) {
|
|
9599
|
+
if (state.out) return state.out;
|
|
9600
|
+
return fail6(new AnyOf(ast, state.issues ?? [], input, options));
|
|
9601
|
+
}
|
|
9602
|
+
return resumeUnion(eff, state);
|
|
9603
|
+
}
|
|
9604
|
+
function resumeUnion(eff, state) {
|
|
9605
|
+
return flatMapEager2(eff, (_2) => {
|
|
9606
|
+
if (state.out === sameExit) return succeed6(state.input);
|
|
9607
|
+
if (state.out) return state.out;
|
|
9608
|
+
return fail6(new AnyOf(state.ast, state.issues ?? [], state.input, state.options));
|
|
9609
|
+
});
|
|
9610
|
+
}
|
|
9649
9611
|
var parseUnion = /* @__PURE__ */ iterateEager()({
|
|
9650
|
-
onItem(s3,
|
|
9651
|
-
|
|
9652
|
-
return parser(s3.input, s3.options);
|
|
9612
|
+
onItem(s3, i) {
|
|
9613
|
+
return s3.parser(i)(s3.input, s3.options);
|
|
9653
9614
|
},
|
|
9654
|
-
step(s3,
|
|
9615
|
+
step(s3, i, exit3) {
|
|
9655
9616
|
if (exit3._tag === "Failure") {
|
|
9656
9617
|
const issue = getSchemaIssue(exit3.cause);
|
|
9657
9618
|
if (issue === void 0) {
|
|
@@ -9661,12 +9622,12 @@ var parseUnion = /* @__PURE__ */ iterateEager()({
|
|
|
9661
9622
|
else s3.issues = [issue];
|
|
9662
9623
|
} else {
|
|
9663
9624
|
if (s3.out && s3.successes) {
|
|
9664
|
-
s3.successes.push(
|
|
9625
|
+
s3.successes.push(s3.ast.types[i]);
|
|
9665
9626
|
return fail4(new OneOf(s3.ast, s3.successes, s3.input, s3.options));
|
|
9666
9627
|
}
|
|
9667
9628
|
s3.out = exit3;
|
|
9668
9629
|
if (s3.successes) {
|
|
9669
|
-
s3.successes.push(
|
|
9630
|
+
s3.successes.push(s3.ast.types[i]);
|
|
9670
9631
|
} else {
|
|
9671
9632
|
return void_2;
|
|
9672
9633
|
}
|
|
@@ -9774,33 +9735,40 @@ function isPattern(regExp, annotations) {
|
|
|
9774
9735
|
...annotations
|
|
9775
9736
|
});
|
|
9776
9737
|
}
|
|
9777
|
-
|
|
9778
|
-
|
|
9738
|
+
var bodyOwners = /* @__PURE__ */ new WeakMap();
|
|
9739
|
+
function copy(ast, changes) {
|
|
9740
|
+
const out = Object.assign(Object.create(Object.getPrototypeOf(ast)), ast, changes);
|
|
9741
|
+
if (Reflect.ownKeys(changes).every((key) => key === "context" || key === "encoding")) {
|
|
9742
|
+
bodyOwners.set(out, getContextOwner(ast));
|
|
9743
|
+
}
|
|
9744
|
+
return out;
|
|
9779
9745
|
}
|
|
9780
|
-
var contextOwners = /* @__PURE__ */ new WeakMap();
|
|
9781
9746
|
function getContextOwner(ast) {
|
|
9782
|
-
|
|
9747
|
+
const existing = bodyOwners.get(ast);
|
|
9748
|
+
if (existing !== void 0) return existing;
|
|
9749
|
+
if (ast.encoding === void 0) return ast;
|
|
9750
|
+
const owner = Object.assign(Object.create(Object.getPrototypeOf(ast)), ast, {
|
|
9751
|
+
encoding: void 0
|
|
9752
|
+
});
|
|
9753
|
+
bodyOwners.set(ast, owner);
|
|
9754
|
+
return owner;
|
|
9783
9755
|
}
|
|
9784
9756
|
function replaceEncoding(ast, encoding) {
|
|
9785
|
-
|
|
9786
|
-
|
|
9787
|
-
}
|
|
9788
|
-
const out = copy(ast);
|
|
9789
|
-
out.encoding = encoding;
|
|
9790
|
-
return out;
|
|
9757
|
+
return ast.encoding === encoding ? ast : copy(ast, {
|
|
9758
|
+
encoding
|
|
9759
|
+
});
|
|
9791
9760
|
}
|
|
9792
9761
|
function replaceContext(ast, context3) {
|
|
9793
9762
|
if (ast.context === context3) {
|
|
9794
9763
|
return ast;
|
|
9795
9764
|
}
|
|
9796
9765
|
const owner = getContextOwner(ast);
|
|
9797
|
-
if (owner.context === context3) {
|
|
9766
|
+
if (owner.context === context3 && owner.encoding === ast.encoding) {
|
|
9798
9767
|
return owner;
|
|
9799
9768
|
}
|
|
9800
|
-
|
|
9801
|
-
|
|
9802
|
-
|
|
9803
|
-
return out;
|
|
9769
|
+
return copy(ast, {
|
|
9770
|
+
context: context3
|
|
9771
|
+
});
|
|
9804
9772
|
}
|
|
9805
9773
|
function getLastEncoding(ast) {
|
|
9806
9774
|
return ast.encoding ? getLastEncoding(ast.encoding[ast.encoding.length - 1].to) : ast;
|
|
@@ -9810,12 +9778,12 @@ function annotate(ast, annotations) {
|
|
|
9810
9778
|
const last = ast.checks[ast.checks.length - 1];
|
|
9811
9779
|
return replaceChecks(ast, append(ast.checks.slice(0, -1), last.annotate(annotations)));
|
|
9812
9780
|
}
|
|
9813
|
-
|
|
9814
|
-
|
|
9815
|
-
|
|
9816
|
-
|
|
9817
|
-
|
|
9818
|
-
|
|
9781
|
+
return copy(ast, {
|
|
9782
|
+
annotations: {
|
|
9783
|
+
...ast.annotations,
|
|
9784
|
+
...annotations
|
|
9785
|
+
}
|
|
9786
|
+
});
|
|
9819
9787
|
}
|
|
9820
9788
|
function replaceChecks(ast, checks) {
|
|
9821
9789
|
if (ast._tag === "Suspend" && checks) {
|
|
@@ -9824,9 +9792,9 @@ function replaceChecks(ast, checks) {
|
|
|
9824
9792
|
if (ast.checks === checks) {
|
|
9825
9793
|
return ast;
|
|
9826
9794
|
}
|
|
9827
|
-
|
|
9828
|
-
|
|
9829
|
-
|
|
9795
|
+
return copy(ast, {
|
|
9796
|
+
checks
|
|
9797
|
+
});
|
|
9830
9798
|
}
|
|
9831
9799
|
function appendChecks(ast, checks) {
|
|
9832
9800
|
return replaceChecks(ast, combineChecks(ast.checks, checks));
|
|
@@ -9912,19 +9880,31 @@ function extractStructuralChecks(checks) {
|
|
|
9912
9880
|
const out = checks.flatMap(extract);
|
|
9913
9881
|
return isArrayNonEmpty2(out) ? out : void 0;
|
|
9914
9882
|
}
|
|
9883
|
+
function canPreserveEncodingChecks(ast) {
|
|
9884
|
+
let preserve = true;
|
|
9885
|
+
function visit(child) {
|
|
9886
|
+
preserve = preserve && !child.encoding && !isSuspend(child);
|
|
9887
|
+
if (preserve && "recur" in child) child.recur(visit);
|
|
9888
|
+
return child;
|
|
9889
|
+
}
|
|
9890
|
+
if ("recur" in ast) ast.recur(visit);
|
|
9891
|
+
return preserve;
|
|
9892
|
+
}
|
|
9915
9893
|
var toType = /* @__PURE__ */ memoizeIdempotent((ast) => {
|
|
9916
|
-
const
|
|
9917
|
-
|
|
9918
|
-
|
|
9919
|
-
|
|
9920
|
-
|
|
9921
|
-
|
|
9922
|
-
|
|
9923
|
-
|
|
9924
|
-
|
|
9925
|
-
|
|
9926
|
-
|
|
9927
|
-
|
|
9894
|
+
const owner = getContextOwner(ast);
|
|
9895
|
+
if (owner !== ast) {
|
|
9896
|
+
const type2 = toType(owner);
|
|
9897
|
+
return type2 === owner && ast.encoding === void 0 ? ast : replaceContext(type2, ast.context);
|
|
9898
|
+
}
|
|
9899
|
+
const type = "recur" in ast ? ast.recur(toType) : ast;
|
|
9900
|
+
if ("encodingChecks" in type && type.encodingChecks) {
|
|
9901
|
+
const checks = canPreserveEncodingChecks(ast) ? type.encodingChecks : isArrays(type) || isObjects(type) || isDeclaration(type) && type.typeParameters.length > 0 ? extractStructuralChecks(type.encodingChecks) : void 0;
|
|
9902
|
+
return copy(type, {
|
|
9903
|
+
encodingChecks: void 0,
|
|
9904
|
+
checks: combineChecks(type.checks, checks)
|
|
9905
|
+
});
|
|
9906
|
+
}
|
|
9907
|
+
return type;
|
|
9928
9908
|
});
|
|
9929
9909
|
var toEncoded = /* @__PURE__ */ memoizeIdempotent((ast) => {
|
|
9930
9910
|
return toType(flip3(ast));
|
|
@@ -9948,8 +9928,12 @@ var flip3 = /* @__PURE__ */ memoize((ast) => {
|
|
|
9948
9928
|
if (ast.encoding) {
|
|
9949
9929
|
return flipEncoding(ast, ast.encoding);
|
|
9950
9930
|
}
|
|
9951
|
-
const
|
|
9952
|
-
|
|
9931
|
+
const owner = getContextOwner(ast);
|
|
9932
|
+
if (owner !== ast) {
|
|
9933
|
+
const flipped = flip3(owner);
|
|
9934
|
+
return flipped === owner ? ast : replaceContext(flipped, ast.context);
|
|
9935
|
+
}
|
|
9936
|
+
return "flip" in ast ? ast.flip(flip3) : "recur" in ast ? ast.recur(flip3) : ast;
|
|
9953
9937
|
});
|
|
9954
9938
|
function containsUndefined(ast) {
|
|
9955
9939
|
switch (ast._tag) {
|
|
@@ -10117,7 +10101,7 @@ var StringTree = /* @__PURE__ */ new Declaration([], () => (input, ast, options)
|
|
|
10117
10101
|
});
|
|
10118
10102
|
var unknownToStringTree = /* @__PURE__ */ new Link(StringTree, /* @__PURE__ */ passthrough3());
|
|
10119
10103
|
|
|
10120
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
10104
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/schema/interpreter.js
|
|
10121
10105
|
var flatMapTransformation = (result3, current, f2) => result3 === sameExit ? f2(current) : flatMapEager2(result3, f2);
|
|
10122
10106
|
function compileTransformation(transformation) {
|
|
10123
10107
|
if (transformation._tag === "Middleware") {
|
|
@@ -10274,7 +10258,7 @@ function compile(ast, compile2, compileField2, base, specialize) {
|
|
|
10274
10258
|
};
|
|
10275
10259
|
}
|
|
10276
10260
|
|
|
10277
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
10261
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/schema/compilerRegistry.js
|
|
10278
10262
|
var invalid3 = /* @__PURE__ */ Symbol();
|
|
10279
10263
|
var cache = /* @__PURE__ */ new WeakMap();
|
|
10280
10264
|
var decodeChild = (ast) => resolve2(ast).parser;
|
|
@@ -10303,7 +10287,7 @@ function resolve2(ast) {
|
|
|
10303
10287
|
return entry;
|
|
10304
10288
|
}
|
|
10305
10289
|
|
|
10306
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
10290
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/SchemaParser.js
|
|
10307
10291
|
function makeEffect(schema) {
|
|
10308
10292
|
const ast = schema.ast;
|
|
10309
10293
|
let parser;
|
|
@@ -10431,7 +10415,7 @@ function makeConstructorSync(ast) {
|
|
|
10431
10415
|
var normalCompiler = (ast) => resolve2(ast).parser;
|
|
10432
10416
|
var constructorCompiler = (ast) => resolve2(ast).makeEffect;
|
|
10433
10417
|
|
|
10434
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
10418
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/schema/make.js
|
|
10435
10419
|
var TypeId28 = "~effect/Schema/Schema";
|
|
10436
10420
|
var RebuildOptions = /* @__PURE__ */ Symbol();
|
|
10437
10421
|
var SchemaProto = {
|
|
@@ -10492,7 +10476,7 @@ function make18(ast, options) {
|
|
|
10492
10476
|
return self;
|
|
10493
10477
|
}
|
|
10494
10478
|
|
|
10495
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
10479
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/schema/toCodec.js
|
|
10496
10480
|
function withoutConstructorDefault(context3) {
|
|
10497
10481
|
return context3.constructorDefault === void 0 ? context3 : new Context(context3.isOptional, context3.isMutable, void 0, context3.annotations);
|
|
10498
10482
|
}
|
|
@@ -10505,18 +10489,7 @@ function validateCanonicalObjectPropertyNames(ast) {
|
|
|
10505
10489
|
}
|
|
10506
10490
|
function makeReorder(getPriority) {
|
|
10507
10491
|
return (types) => {
|
|
10508
|
-
const
|
|
10509
|
-
for (let i = 0; i < types.length; i++) {
|
|
10510
|
-
indexMap.set(toEncoded(types[i]), i);
|
|
10511
|
-
}
|
|
10512
|
-
const sortedTypes = [...types].sort((a, b2) => {
|
|
10513
|
-
a = toEncoded(a);
|
|
10514
|
-
b2 = toEncoded(b2);
|
|
10515
|
-
const pa = getPriority(a);
|
|
10516
|
-
const pb = getPriority(b2);
|
|
10517
|
-
if (pa !== pb) return pa - pb;
|
|
10518
|
-
return indexMap.get(a) - indexMap.get(b2);
|
|
10519
|
-
});
|
|
10492
|
+
const sortedTypes = [...types].sort((a, b2) => getPriority(toEncoded(a)) - getPriority(toEncoded(b2)));
|
|
10520
10493
|
const orderChanged = sortedTypes.some((ast, index) => ast !== types[index]);
|
|
10521
10494
|
if (!orderChanged) return types;
|
|
10522
10495
|
return sortedTypes;
|
|
@@ -10605,13 +10578,13 @@ var toCodecStringTreeAST = /* @__PURE__ */ applyToSelfOrLastLinkEncodingIdempote
|
|
|
10605
10578
|
stopAt: isCodecArrayFromSingleLink
|
|
10606
10579
|
});
|
|
10607
10580
|
|
|
10608
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
10581
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Struct.js
|
|
10609
10582
|
var lambda = (f2) => f2;
|
|
10610
10583
|
|
|
10611
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
10584
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/schemaError.js
|
|
10612
10585
|
var SchemaErrorTypeId = "~effect/Schema/SchemaError";
|
|
10613
10586
|
|
|
10614
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
10587
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Schema.js
|
|
10615
10588
|
var TypeId29 = TypeId28;
|
|
10616
10589
|
function declareConstructor() {
|
|
10617
10590
|
return (typeParameters, run6, annotations) => {
|
|
@@ -11061,7 +11034,7 @@ var Json2 = /* @__PURE__ */ make19(/* @__PURE__ */ annotate(Json, {
|
|
|
11061
11034
|
})
|
|
11062
11035
|
}));
|
|
11063
11036
|
|
|
11064
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
11037
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/http/HttpBody.js
|
|
11065
11038
|
var TypeId30 = "~effect/http/HttpBody";
|
|
11066
11039
|
var Proto7 = class {
|
|
11067
11040
|
[TypeId30];
|
|
@@ -11088,7 +11061,7 @@ var Empty2 = class extends Proto7 {
|
|
|
11088
11061
|
};
|
|
11089
11062
|
var empty8 = /* @__PURE__ */ new Empty2();
|
|
11090
11063
|
|
|
11091
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
11064
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/http/HttpClientError.js
|
|
11092
11065
|
var TypeId31 = "~effect/http/HttpClientError";
|
|
11093
11066
|
var HttpClientError = class extends (/* @__PURE__ */ TaggedError2("HttpClientError")) {
|
|
11094
11067
|
constructor(props) {
|
|
@@ -11236,10 +11209,10 @@ var EmptyBodyError = class extends (/* @__PURE__ */ TaggedError2("EmptyBodyError
|
|
|
11236
11209
|
}
|
|
11237
11210
|
};
|
|
11238
11211
|
|
|
11239
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
11212
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/http/HttpMethod.js
|
|
11240
11213
|
var allShort = [["GET", "get"], ["POST", "post"], ["PUT", "put"], ["DELETE", "del"], ["PATCH", "patch"], ["HEAD", "head"], ["OPTIONS", "options"], ["TRACE", "trace"], ["QUERY", "query"]];
|
|
11241
11214
|
|
|
11242
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
11215
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/http/internal/httpBody.js
|
|
11243
11216
|
var updateHeaders = (headers, body) => {
|
|
11244
11217
|
if (body._tag === "Empty" || body._tag === "FormData") {
|
|
11245
11218
|
return remove2(remove2(headers, "content-type"), "content-length");
|
|
@@ -11248,7 +11221,7 @@ var updateHeaders = (headers, body) => {
|
|
|
11248
11221
|
return body.contentLength === void 0 ? remove2(headers, "content-length") : set2(headers, "content-length", body.contentLength.toString());
|
|
11249
11222
|
};
|
|
11250
11223
|
|
|
11251
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
11224
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/http/Url.js
|
|
11252
11225
|
var UrlError = class extends (/* @__PURE__ */ TaggedError2("UrlError")) {
|
|
11253
11226
|
};
|
|
11254
11227
|
var make20 = (url, params, hash2) => try_({
|
|
@@ -11276,7 +11249,7 @@ var baseUrl = () => {
|
|
|
11276
11249
|
return void 0;
|
|
11277
11250
|
};
|
|
11278
11251
|
|
|
11279
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
11252
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/http/HttpClientRequest.js
|
|
11280
11253
|
var TypeId32 = "~effect/http/HttpClientRequest";
|
|
11281
11254
|
var Proto8 = {
|
|
11282
11255
|
[TypeId32]: TypeId32,
|
|
@@ -11380,7 +11353,7 @@ function toUrl(self) {
|
|
|
11380
11353
|
return none2();
|
|
11381
11354
|
}
|
|
11382
11355
|
|
|
11383
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
11356
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/http/HttpIncomingMessage.js
|
|
11384
11357
|
var TypeId33 = "~effect/http/HttpIncomingMessage";
|
|
11385
11358
|
var inspect = (self, that) => {
|
|
11386
11359
|
const contentType = self.headers["content-type"] ?? "";
|
|
@@ -11407,7 +11380,7 @@ var inspect = (self, that) => {
|
|
|
11407
11380
|
return obj;
|
|
11408
11381
|
};
|
|
11409
11382
|
|
|
11410
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
11383
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/http/HttpClientResponse.js
|
|
11411
11384
|
var TypeId34 = "~effect/http/HttpClientResponse";
|
|
11412
11385
|
var fromWeb = (request5, source) => new WebHttpClientResponse(request5, source);
|
|
11413
11386
|
var stream2 = (effect2) => unwrap3(map7(effect2, (self) => self.stream));
|
|
@@ -11541,7 +11514,7 @@ var WebHttpClientResponse = class extends Class2 {
|
|
|
11541
11514
|
}
|
|
11542
11515
|
};
|
|
11543
11516
|
|
|
11544
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
11517
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/http/HttpTraceContext.js
|
|
11545
11518
|
var toHeaders = (span) => fromRecordUnsafe({
|
|
11546
11519
|
b3: `${span.traceId}-${span.spanId}-${span.sampled ? "1" : "0"}${match(span.parent, {
|
|
11547
11520
|
onNone: () => "",
|
|
@@ -11550,7 +11523,7 @@ var toHeaders = (span) => fromRecordUnsafe({
|
|
|
11550
11523
|
traceparent: `00-${span.traceId}-${span.spanId}-${span.sampled ? "01" : "00"}`
|
|
11551
11524
|
});
|
|
11552
11525
|
|
|
11553
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
11526
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/http/HttpClient.js
|
|
11554
11527
|
var TypeId35 = "~effect/http/HttpClient";
|
|
11555
11528
|
var HttpClient = /* @__PURE__ */ Service("effect/HttpClient");
|
|
11556
11529
|
var transformResponse = /* @__PURE__ */ dual(2, (self, f2) => makeWith2((request5) => f2(self.postprocess(request5)), self.preprocess));
|
|
@@ -11764,7 +11737,7 @@ var InterruptibleResponse = class {
|
|
|
11764
11737
|
}
|
|
11765
11738
|
};
|
|
11766
11739
|
|
|
11767
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.
|
|
11740
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.1_effect@4.0.1/node_modules/@effect/platform-node-shared/dist/NodeSink.js
|
|
11768
11741
|
var fromWritable = (options) => fromChannel2(mapDone(fromWritableChannel(options), (_2) => [_2]));
|
|
11769
11742
|
var fromWritableChannel = (options) => fromTransform((pull) => {
|
|
11770
11743
|
const writable = options.evaluate();
|
|
@@ -11823,7 +11796,7 @@ var pullIntoWritable = (options) => options.pull.pipe(flatMap3((chunk) => {
|
|
|
11823
11796
|
});
|
|
11824
11797
|
})));
|
|
11825
11798
|
|
|
11826
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.
|
|
11799
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.1_effect@4.0.1/node_modules/@effect/platform-node-shared/dist/NodeStream.js
|
|
11827
11800
|
var fromReadable = (options) => fromChannel3(fromReadableChannel(options));
|
|
11828
11801
|
var fromReadableChannel = (options) => fromTransform((_2, scope3) => readableToPullUnsafe({
|
|
11829
11802
|
scope: scope3,
|
|
@@ -11882,7 +11855,7 @@ var readableToPullUnsafe = (options) => {
|
|
|
11882
11855
|
};
|
|
11883
11856
|
var defaultOnError = (error2) => new UnknownError2(error2);
|
|
11884
11857
|
|
|
11885
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
11858
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/http/FetchHttpClient.js
|
|
11886
11859
|
var Fetch = /* @__PURE__ */ Reference("effect/http/FetchHttpClient/Fetch", {
|
|
11887
11860
|
defaultValue: () => globalThis.fetch
|
|
11888
11861
|
});
|
|
@@ -11924,7 +11897,7 @@ var fetch = /* @__PURE__ */ make22((request5, url, signal, fiber3) => {
|
|
|
11924
11897
|
});
|
|
11925
11898
|
var layer2 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch));
|
|
11926
11899
|
|
|
11927
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
11900
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Runtime.js
|
|
11928
11901
|
var defaultTeardown = (exit3, onExit4) => {
|
|
11929
11902
|
if (isSuccess4(exit3)) return onExit4(0);
|
|
11930
11903
|
if (hasInterruptsOnly2(exit3.cause)) return onExit4(130);
|
|
@@ -11970,7 +11943,7 @@ var getErrorReported = (u2) => {
|
|
|
11970
11943
|
return true;
|
|
11971
11944
|
};
|
|
11972
11945
|
|
|
11973
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.
|
|
11946
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.1_effect@4.0.1/node_modules/@effect/platform-node-shared/dist/NodeRuntime.js
|
|
11974
11947
|
var runMain = /* @__PURE__ */ makeRunMain(({
|
|
11975
11948
|
fiber: fiber3,
|
|
11976
11949
|
teardown
|
|
@@ -11993,10 +11966,10 @@ var runMain = /* @__PURE__ */ makeRunMain(({
|
|
|
11993
11966
|
process.on("SIGTERM", onSigint);
|
|
11994
11967
|
});
|
|
11995
11968
|
|
|
11996
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.0.
|
|
11969
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.0.1_effect@4.0.1_redis@6.3.0/node_modules/@effect/platform-node/dist/NodeRuntime.js
|
|
11997
11970
|
var runMain2 = runMain;
|
|
11998
11971
|
|
|
11999
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
11972
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Path.js
|
|
12000
11973
|
var Path_exports = {};
|
|
12001
11974
|
__export(Path_exports, {
|
|
12002
11975
|
Path: () => Path,
|
|
@@ -12470,7 +12443,7 @@ var posixImpl = /* @__PURE__ */ Path.of({
|
|
|
12470
12443
|
});
|
|
12471
12444
|
var layer3 = /* @__PURE__ */ succeed5(Path)(posixImpl);
|
|
12472
12445
|
|
|
12473
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
12446
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Brand.js
|
|
12474
12447
|
function nominal() {
|
|
12475
12448
|
return Object.assign((input) => input, {
|
|
12476
12449
|
option: (input) => some2(input),
|
|
@@ -12479,7 +12452,7 @@ function nominal() {
|
|
|
12479
12452
|
});
|
|
12480
12453
|
}
|
|
12481
12454
|
|
|
12482
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
12455
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/process/ChildProcessSpawner.js
|
|
12483
12456
|
var ExitCode = /* @__PURE__ */ nominal();
|
|
12484
12457
|
var ProcessId = /* @__PURE__ */ nominal();
|
|
12485
12458
|
var HandleTypeId = "~effect/process/ChildProcessSpawner/ChildProcessHandle";
|
|
@@ -12511,7 +12484,7 @@ var make23 = (spawn2) => {
|
|
|
12511
12484
|
var ChildProcessSpawner = class extends (/* @__PURE__ */ Service()("effect/process/ChildProcessSpawner")) {
|
|
12512
12485
|
};
|
|
12513
12486
|
|
|
12514
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
12487
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/process/ChildProcess.js
|
|
12515
12488
|
var TypeId37 = "~effect/process/ChildProcess";
|
|
12516
12489
|
var Proto10 = {
|
|
12517
12490
|
.../* @__PURE__ */ Prototype2({
|
|
@@ -12639,7 +12612,7 @@ var splitByWhitespaces = (template, rawTemplate) => {
|
|
|
12639
12612
|
};
|
|
12640
12613
|
var concatTokens = (prevTokens, nextTokens, isSeparated) => isSeparated || prevTokens.length === 0 || nextTokens.length === 0 ? [...prevTokens, ...nextTokens] : [...prevTokens.slice(0, -1), `${prevTokens.at(-1)}${nextTokens.at(0)}`, ...nextTokens.slice(1)];
|
|
12641
12614
|
|
|
12642
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.
|
|
12615
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.1_effect@4.0.1/node_modules/@effect/platform-node-shared/dist/internal/nodeChildProcessSpawner.js
|
|
12643
12616
|
var buildSpawnOptions = (options, base, platform) => {
|
|
12644
12617
|
const detached = options.detached ?? platform !== "win32";
|
|
12645
12618
|
return {
|
|
@@ -12650,7 +12623,7 @@ var buildSpawnOptions = (options, base, platform) => {
|
|
|
12650
12623
|
};
|
|
12651
12624
|
};
|
|
12652
12625
|
|
|
12653
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.
|
|
12626
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.1_effect@4.0.1/node_modules/@effect/platform-node-shared/dist/internal/utils.js
|
|
12654
12627
|
var handleErrnoException = (module, method) => (err, [path]) => {
|
|
12655
12628
|
let reason = "Unknown";
|
|
12656
12629
|
switch (err.code) {
|
|
@@ -12686,7 +12659,7 @@ var handleErrnoException = (module, method) => (err, [path]) => {
|
|
|
12686
12659
|
});
|
|
12687
12660
|
};
|
|
12688
12661
|
|
|
12689
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.
|
|
12662
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.1_effect@4.0.1/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
|
|
12690
12663
|
var toError = (error2) => error2 instanceof globalThis.Error ? error2 : new globalThis.Error(String(error2));
|
|
12691
12664
|
var toPlatformError = (method, error2, command2) => {
|
|
12692
12665
|
const {
|
|
@@ -13041,7 +13014,7 @@ var make26 = /* @__PURE__ */ gen2(function* () {
|
|
|
13041
13014
|
if (exited) {
|
|
13042
13015
|
const [code] = yield* _await(exitSignal2);
|
|
13043
13016
|
if (code !== 0 && isNotNull(code)) {
|
|
13044
|
-
yield* ignore2(
|
|
13017
|
+
yield* ignore2(terminateProcessGroup(cmd, childProcess2, exitSignal2, cmd.options));
|
|
13045
13018
|
} else if (isReferenced && process.platform !== "win32" && cmd.options.detached !== false) {
|
|
13046
13019
|
yield* ignore2(terminateProcessGroup(cmd, childProcess2, exitSignal2, cmd.options));
|
|
13047
13020
|
}
|
|
@@ -13212,7 +13185,7 @@ var flattenCommand = (command2) => {
|
|
|
13212
13185
|
};
|
|
13213
13186
|
};
|
|
13214
13187
|
|
|
13215
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
13188
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/ulid.js
|
|
13216
13189
|
var maxTimestamp = 2 ** 48 - 1;
|
|
13217
13190
|
var base32Chars = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
13218
13191
|
var ulidString = (timestampMillis, bytes2) => {
|
|
@@ -13238,7 +13211,7 @@ var ulidString = (timestampMillis, bytes2) => {
|
|
|
13238
13211
|
return out;
|
|
13239
13212
|
};
|
|
13240
13213
|
|
|
13241
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
13214
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/internal/uuid.js
|
|
13242
13215
|
var hex = (byte) => byte.toString(16).padStart(2, "0");
|
|
13243
13216
|
var stringify = (bytes2) => {
|
|
13244
13217
|
const segments = [bytes2.subarray(0, 4), bytes2.subarray(4, 6), bytes2.subarray(6, 8), bytes2.subarray(8, 10), bytes2.subarray(10, 16)];
|
|
@@ -13266,7 +13239,7 @@ function v7Bytes(timestampMillis, bytes2 = randomBytes()) {
|
|
|
13266
13239
|
}
|
|
13267
13240
|
var v7String = (timestampMillis, bytes2) => stringify(bytes2 === void 0 ? v7Bytes(timestampMillis) : v7Bytes(timestampMillis, bytes2));
|
|
13268
13241
|
|
|
13269
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
13242
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Crypto.js
|
|
13270
13243
|
var TypeId38 = "~effect/Crypto";
|
|
13271
13244
|
var Crypto = /* @__PURE__ */ Service("effect/Crypto");
|
|
13272
13245
|
var make27 = (impl) => {
|
|
@@ -13352,7 +13325,7 @@ var make28 = /* @__PURE__ */ make27({
|
|
|
13352
13325
|
});
|
|
13353
13326
|
var layer5 = /* @__PURE__ */ succeed5(Crypto, make28);
|
|
13354
13327
|
|
|
13355
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.0.
|
|
13328
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.0.1_effect@4.0.1_redis@6.3.0/node_modules/@effect/platform-node/dist/NodeCrypto.js
|
|
13356
13329
|
var layer6 = layer5;
|
|
13357
13330
|
var handleBadArgument = (method) => (err) => badArgument({
|
|
13358
13331
|
module: "FileSystem",
|
|
@@ -13759,7 +13732,7 @@ var makeFileSystem = /* @__PURE__ */ map7(/* @__PURE__ */ serviceOption2(WatchBa
|
|
|
13759
13732
|
}));
|
|
13760
13733
|
var layer7 = /* @__PURE__ */ effect(FileSystem)(makeFileSystem);
|
|
13761
13734
|
|
|
13762
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.0.
|
|
13735
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.0.1_effect@4.0.1_redis@6.3.0/node_modules/@effect/platform-node/dist/NodeFileSystem.js
|
|
13763
13736
|
var layer8 = layer7;
|
|
13764
13737
|
var fileUrlOps = (windows) => ({
|
|
13765
13738
|
fromFileUrl: (url) => try_3({
|
|
@@ -13789,10 +13762,10 @@ var layer9 = /* @__PURE__ */ succeed5(Path)({
|
|
|
13789
13762
|
.../* @__PURE__ */ fileUrlOps(void 0)
|
|
13790
13763
|
});
|
|
13791
13764
|
|
|
13792
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.0.
|
|
13765
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.0.1_effect@4.0.1_redis@6.3.0/node_modules/@effect/platform-node/dist/NodePath.js
|
|
13793
13766
|
var layer10 = layer9;
|
|
13794
13767
|
|
|
13795
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
13768
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Stdio.js
|
|
13796
13769
|
var TypeId39 = "~effect/Stdio";
|
|
13797
13770
|
var Stdio = /* @__PURE__ */ Service(TypeId39);
|
|
13798
13771
|
var make29 = (options) => ({
|
|
@@ -13802,7 +13775,7 @@ var make29 = (options) => ({
|
|
|
13802
13775
|
...options
|
|
13803
13776
|
});
|
|
13804
13777
|
|
|
13805
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.
|
|
13778
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.1_effect@4.0.1/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
|
|
13806
13779
|
var layer11 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make29({
|
|
13807
13780
|
args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
|
|
13808
13781
|
stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
|
|
@@ -13839,10 +13812,10 @@ var layer11 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make29({
|
|
|
13839
13812
|
})
|
|
13840
13813
|
}));
|
|
13841
13814
|
|
|
13842
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.0.
|
|
13815
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.0.1_effect@4.0.1_redis@6.3.0/node_modules/@effect/platform-node/dist/NodeStdio.js
|
|
13843
13816
|
var layer12 = layer11;
|
|
13844
13817
|
|
|
13845
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
13818
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Terminal.js
|
|
13846
13819
|
var TypeId40 = "~effect/Terminal";
|
|
13847
13820
|
var QuitErrorTypeId = "~effect/Terminal/QuitError";
|
|
13848
13821
|
var QuitError = class extends (/* @__PURE__ */ Error4("QuitError")({
|
|
@@ -13980,13 +13953,13 @@ function defaultShouldQuit(input) {
|
|
|
13980
13953
|
return input.key.ctrl && (input.key.name === "c" || input.key.name === "d");
|
|
13981
13954
|
}
|
|
13982
13955
|
|
|
13983
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.0.
|
|
13956
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.0.1_effect@4.0.1_redis@6.3.0/node_modules/@effect/platform-node/dist/NodeTerminal.js
|
|
13984
13957
|
var layer14 = layer13;
|
|
13985
13958
|
|
|
13986
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.0.
|
|
13959
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.0.1_effect@4.0.1_redis@6.3.0/node_modules/@effect/platform-node/dist/NodeServices.js
|
|
13987
13960
|
var layer15 = /* @__PURE__ */ provideMerge(layer4, /* @__PURE__ */ mergeAll2(layer8, layer6, layer10, layer12, layer14));
|
|
13988
13961
|
|
|
13989
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
13962
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/ConfigProvider.js
|
|
13990
13963
|
function makeValue(value3) {
|
|
13991
13964
|
return {
|
|
13992
13965
|
_tag: "Value",
|
|
@@ -14083,7 +14056,7 @@ function trieNodeAt(root, path) {
|
|
|
14083
14056
|
return node;
|
|
14084
14057
|
}
|
|
14085
14058
|
|
|
14086
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
14059
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Config.js
|
|
14087
14060
|
var TypeId41 = "~effect/Config";
|
|
14088
14061
|
var Proto12 = {
|
|
14089
14062
|
.../* @__PURE__ */ Prototype2({
|
|
@@ -14114,7 +14087,7 @@ var withDefault3 = /* @__PURE__ */ dual(2, (self, defaultValue) => {
|
|
|
14114
14087
|
});
|
|
14115
14088
|
var option3 = (self) => self.pipe(map10(some2), withDefault3(none2()));
|
|
14116
14089
|
|
|
14117
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
14090
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/Console.js
|
|
14118
14091
|
var Console = ConsoleRef;
|
|
14119
14092
|
var consoleWith = (f2) => withFiber((fiber3) => f2(fiber3.getRef(Console)));
|
|
14120
14093
|
var error = (...args2) => consoleWith((console) => sync(() => {
|
|
@@ -14124,7 +14097,7 @@ var log2 = (...args2) => consoleWith((console) => sync(() => {
|
|
|
14124
14097
|
console.log(...args2);
|
|
14125
14098
|
}));
|
|
14126
14099
|
|
|
14127
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
14100
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/Argument.js
|
|
14128
14101
|
var Argument_exports = {};
|
|
14129
14102
|
__export(Argument_exports, {
|
|
14130
14103
|
ChoiceWithValue: () => ChoiceWithValue2,
|
|
@@ -14161,7 +14134,7 @@ __export(Argument_exports, {
|
|
|
14161
14134
|
withSchema: () => withSchema2
|
|
14162
14135
|
});
|
|
14163
14136
|
|
|
14164
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
14137
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/CliError.js
|
|
14165
14138
|
var TypeId42 = "~effect/cli/CliError";
|
|
14166
14139
|
var isCliError = (u2) => hasProperty(u2, TypeId42);
|
|
14167
14140
|
var UnrecognizedOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId42}/UnrecognizedOption`)("UnrecognizedOption", {
|
|
@@ -14375,7 +14348,7 @@ var ShowHelp = class extends (/* @__PURE__ */ TaggedError3(`${TypeId42}/ShowHelp
|
|
|
14375
14348
|
}
|
|
14376
14349
|
};
|
|
14377
14350
|
|
|
14378
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
14351
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/encoding/Ini.js
|
|
14379
14352
|
var hasOwn = Object.prototype.hasOwnProperty;
|
|
14380
14353
|
var splitSections = (value3) => {
|
|
14381
14354
|
const sections = [];
|
|
@@ -14494,7 +14467,7 @@ var parse = (input) => {
|
|
|
14494
14467
|
return output;
|
|
14495
14468
|
};
|
|
14496
14469
|
|
|
14497
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
14470
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/encoding/Toml.js
|
|
14498
14471
|
var hasOwn2 = Object.prototype.hasOwnProperty;
|
|
14499
14472
|
var makeTable = () => /* @__PURE__ */ Object.create(null);
|
|
14500
14473
|
var isTable = (value3) => typeof value3 === "object" && value3 !== null && !Array.isArray(value3) && !(value3 instanceof Date);
|
|
@@ -14912,7 +14885,7 @@ var TomlParser = class {
|
|
|
14912
14885
|
};
|
|
14913
14886
|
var parse2 = (input) => new TomlParser(input.replace(/^\uFEFF/, "")).parse();
|
|
14914
14887
|
|
|
14915
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
14888
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/encoding/Yaml.js
|
|
14916
14889
|
var hasOwn3 = Object.prototype.hasOwnProperty;
|
|
14917
14890
|
var setProperty = (record2, key, value3) => {
|
|
14918
14891
|
Object.defineProperty(record2, key, {
|
|
@@ -15419,7 +15392,7 @@ var parse3 = (input) => {
|
|
|
15419
15392
|
return new YamlParser(lines2).parse();
|
|
15420
15393
|
};
|
|
15421
15394
|
|
|
15422
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
15395
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/Primitive.js
|
|
15423
15396
|
var TypeId43 = "~effect/cli/Primitive";
|
|
15424
15397
|
var Proto13 = {
|
|
15425
15398
|
[TypeId43]: {
|
|
@@ -15574,7 +15547,7 @@ var getTypeName = (primitive) => {
|
|
|
15574
15547
|
var getChoiceKeys = (primitive) => primitive._tag === "Choice" ? primitive.choiceKeys : void 0;
|
|
15575
15548
|
var getPathType = (primitive) => primitive._tag === "Path" ? primitive.pathType : void 0;
|
|
15576
15549
|
|
|
15577
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
15550
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/Prompt.js
|
|
15578
15551
|
var Prompt_exports = {};
|
|
15579
15552
|
__export(Prompt_exports, {
|
|
15580
15553
|
AutoComplete: () => AutoComplete,
|
|
@@ -15601,7 +15574,7 @@ __export(Prompt_exports, {
|
|
|
15601
15574
|
succeed: () => succeed9
|
|
15602
15575
|
});
|
|
15603
15576
|
|
|
15604
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
15577
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/internal/ansi.js
|
|
15605
15578
|
var ESC = "\x1B[";
|
|
15606
15579
|
var BEL = "\x07";
|
|
15607
15580
|
var reset = `${ESC}0m`;
|
|
@@ -15662,7 +15635,7 @@ var eraseLines = (rows) => {
|
|
|
15662
15635
|
return command2;
|
|
15663
15636
|
};
|
|
15664
15637
|
|
|
15665
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
15638
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/Prompt.js
|
|
15666
15639
|
var TypeId44 = "~effect/cli/Prompt";
|
|
15667
15640
|
var isPrompt = (u2) => hasProperty(u2, TypeId44);
|
|
15668
15641
|
var defaultTheme = {
|
|
@@ -18210,7 +18183,7 @@ var entriesToDisplay = (cursor, total, maxVisible) => {
|
|
|
18210
18183
|
};
|
|
18211
18184
|
};
|
|
18212
18185
|
|
|
18213
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
18186
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/Param.js
|
|
18214
18187
|
var TypeId45 = "~effect/cli/Param";
|
|
18215
18188
|
var argumentKind = "argument";
|
|
18216
18189
|
var flagKind = "flag";
|
|
@@ -18651,7 +18624,7 @@ var getParamMetadata = (param) => {
|
|
|
18651
18624
|
});
|
|
18652
18625
|
};
|
|
18653
18626
|
|
|
18654
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
18627
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/Argument.js
|
|
18655
18628
|
var String8 = (name) => String7(argumentKind, name);
|
|
18656
18629
|
var Int5 = (name) => Int4(argumentKind, name);
|
|
18657
18630
|
var File4 = (name, options) => File3(argumentKind, name, options);
|
|
@@ -18685,7 +18658,7 @@ var filterMap4 = /* @__PURE__ */ dual(3, (self, f2, onNone) => filterMap3(self,
|
|
|
18685
18658
|
var orElse2 = /* @__PURE__ */ dual(2, (self, that) => orElse(self, that));
|
|
18686
18659
|
var orElseResult2 = /* @__PURE__ */ dual(2, (self, that) => orElseResult(self, that));
|
|
18687
18660
|
|
|
18688
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
18661
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/CliOutput.js
|
|
18689
18662
|
var Formatter = /* @__PURE__ */ Reference("effect/cli/CliOutput", {
|
|
18690
18663
|
defaultValue: () => defaultFormatter2()
|
|
18691
18664
|
});
|
|
@@ -18904,7 +18877,7 @@ var formatHelpDocImpl = (doc, colors2) => {
|
|
|
18904
18877
|
return sections.join("\n");
|
|
18905
18878
|
};
|
|
18906
18879
|
|
|
18907
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
18880
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/internal/completions/bash.js
|
|
18908
18881
|
var escapeForBash = (s3) => s3.replace(/'/g, "'\\''");
|
|
18909
18882
|
var sanitizeFunctionName = (s3) => s3.replace(/[^a-zA-Z0-9_]/g, "_");
|
|
18910
18883
|
var flagNamesForWordlist = (flag) => {
|
|
@@ -19187,7 +19160,7 @@ var generate = (executableName, descriptor) => {
|
|
|
19187
19160
|
return lines2.join("\n");
|
|
19188
19161
|
};
|
|
19189
19162
|
|
|
19190
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
19163
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/internal/completions/fish.js
|
|
19191
19164
|
var escapeFishString = (s3) => s3.replace(/\\/g, "\\\\").replace(/'/g, "\\'");
|
|
19192
19165
|
var escapeFishChoice = (s3) => escapeFishString(s3.replace(/[^A-Za-z0-9_.,/@%+-]/gu, "\\$&"));
|
|
19193
19166
|
var subcommandCondition = (parentPath, childSubcommandNames) => {
|
|
@@ -19364,7 +19337,7 @@ var generate2 = (executableName, descriptor) => {
|
|
|
19364
19337
|
return lines2.join("\n");
|
|
19365
19338
|
};
|
|
19366
19339
|
|
|
19367
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
19340
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/internal/completions/zsh.js
|
|
19368
19341
|
var escapeZsh = (s3) => s3.replace(/\\/g, "\\\\").replace(/'/g, "'\\''").replace(/:/g, "\\:");
|
|
19369
19342
|
var escapeZshChoice = (s3) => s3.replace(/[^A-Za-z0-9_.,/@%+-]/gu, "\\$&").replace(/'/g, "'\\''");
|
|
19370
19343
|
var sanitize = (s3) => s3.replace(/[^a-zA-Z0-9_]/g, "_");
|
|
@@ -19529,7 +19502,7 @@ var generate3 = (executableName, descriptor) => {
|
|
|
19529
19502
|
return lines2.join("\n");
|
|
19530
19503
|
};
|
|
19531
19504
|
|
|
19532
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
19505
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/Completions.js
|
|
19533
19506
|
var generate4 = (executableName, shell, descriptor) => {
|
|
19534
19507
|
switch (shell) {
|
|
19535
19508
|
case "bash":
|
|
@@ -19541,7 +19514,7 @@ var generate4 = (executableName, shell, descriptor) => {
|
|
|
19541
19514
|
}
|
|
19542
19515
|
};
|
|
19543
19516
|
|
|
19544
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
19517
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/Flag.js
|
|
19545
19518
|
var Flag_exports = {};
|
|
19546
19519
|
__export(Flag_exports, {
|
|
19547
19520
|
Boolean: () => Boolean5,
|
|
@@ -19616,7 +19589,7 @@ var orElse3 = /* @__PURE__ */ dual(2, (self, that) => orElse(self, that));
|
|
|
19616
19589
|
var orElseResult3 = /* @__PURE__ */ dual(2, (self, that) => orElseResult(self, that));
|
|
19617
19590
|
var withSchema3 = /* @__PURE__ */ dual(2, (self, schema) => withSchema(self, schema));
|
|
19618
19591
|
|
|
19619
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
19592
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/internal/config.js
|
|
19620
19593
|
var ConfigInternalTypeId = "~effect/cli/Command/Config/Internal";
|
|
19621
19594
|
var parseConfig = (config) => {
|
|
19622
19595
|
const orderedParams = [];
|
|
@@ -19717,7 +19690,7 @@ var reconstructTree = (tree, results2) => {
|
|
|
19717
19690
|
}
|
|
19718
19691
|
};
|
|
19719
19692
|
|
|
19720
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
19693
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/internal/command.js
|
|
19721
19694
|
var TypeId46 = "~effect/cli/Command";
|
|
19722
19695
|
var toImpl = (self) => self;
|
|
19723
19696
|
var Proto15 = {
|
|
@@ -19908,7 +19881,7 @@ var checkForDuplicateFlags = (parent, subcommands, options) => {
|
|
|
19908
19881
|
}
|
|
19909
19882
|
};
|
|
19910
19883
|
|
|
19911
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
19884
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/internal/completions/descriptor.js
|
|
19912
19885
|
var toFlagType = (single) => {
|
|
19913
19886
|
const tag2 = single.primitiveType._tag;
|
|
19914
19887
|
switch (tag2) {
|
|
@@ -20052,7 +20025,7 @@ var fromCommand = (cmd, inheritedFlags = []) => {
|
|
|
20052
20025
|
};
|
|
20053
20026
|
};
|
|
20054
20027
|
|
|
20055
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
20028
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/internal/help.js
|
|
20056
20029
|
var dedupeGlobalFlags = (flags) => {
|
|
20057
20030
|
const seen = /* @__PURE__ */ new Set();
|
|
20058
20031
|
const deduped = [];
|
|
@@ -20157,7 +20130,7 @@ var getHelpForCommandPath = (command2, commandPath, builtIns) => gen2(function*
|
|
|
20157
20130
|
};
|
|
20158
20131
|
});
|
|
20159
20132
|
|
|
20160
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
20133
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/GlobalFlag.js
|
|
20161
20134
|
var Action2 = (options) => ({
|
|
20162
20135
|
_tag: "Action",
|
|
20163
20136
|
flag: options.flag,
|
|
@@ -20214,7 +20187,7 @@ var LogLevel = /* @__PURE__ */ Setting("log-level")({
|
|
|
20214
20187
|
});
|
|
20215
20188
|
var BuiltIns = [Help, Version, Wizard, Completions, LogLevel];
|
|
20216
20189
|
|
|
20217
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
20190
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/CliConfig.js
|
|
20218
20191
|
var CliConfig = class extends (/* @__PURE__ */ Reference("effect/cli/CliConfig", {
|
|
20219
20192
|
defaultValue: () => defaults
|
|
20220
20193
|
})) {
|
|
@@ -20223,7 +20196,7 @@ var defaults = {
|
|
|
20223
20196
|
builtIns: BuiltIns
|
|
20224
20197
|
};
|
|
20225
20198
|
|
|
20226
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
20199
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/Command.js
|
|
20227
20200
|
var Command_exports = {};
|
|
20228
20201
|
__export(Command_exports, {
|
|
20229
20202
|
annotate: () => annotate3,
|
|
@@ -20248,7 +20221,7 @@ __export(Command_exports, {
|
|
|
20248
20221
|
wizard: () => wizard
|
|
20249
20222
|
});
|
|
20250
20223
|
|
|
20251
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
20224
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/internal/lexer.js
|
|
20252
20225
|
function lex(argv) {
|
|
20253
20226
|
const endIndex = argv.indexOf("--");
|
|
20254
20227
|
if (endIndex === -1) {
|
|
@@ -20320,7 +20293,7 @@ var lexTokens = (args2) => {
|
|
|
20320
20293
|
return tokens;
|
|
20321
20294
|
};
|
|
20322
20295
|
|
|
20323
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
20296
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/internal/auto-suggest.js
|
|
20324
20297
|
var levenshtein = (a, b2) => {
|
|
20325
20298
|
const m2 = a.length;
|
|
20326
20299
|
const n = b2.length;
|
|
@@ -20344,7 +20317,7 @@ var suggest = (input, candidates) => {
|
|
|
20344
20317
|
return distances.filter(([d]) => d === minDistance).map(([, c]) => c);
|
|
20345
20318
|
};
|
|
20346
20319
|
|
|
20347
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
20320
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/internal/parser.js
|
|
20348
20321
|
var getCommandPath = (parsedInput) => match(parsedInput.subcommand, {
|
|
20349
20322
|
onNone: () => [],
|
|
20350
20323
|
onSome: (subcommand) => [subcommand.name, ...getCommandPath(subcommand.parsedInput)]
|
|
@@ -20847,7 +20820,7 @@ var scanCommandLevel = (tokens, context3) => {
|
|
|
20847
20820
|
return toLeafResult(state);
|
|
20848
20821
|
};
|
|
20849
20822
|
|
|
20850
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
20823
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/internal/wizard.js
|
|
20851
20824
|
var run4 = /* @__PURE__ */ fnUntraced2(function* (command2, options) {
|
|
20852
20825
|
const commandPath = options?.commandPath ?? [command2.name];
|
|
20853
20826
|
const selected = getCommandAtPath(command2, commandPath);
|
|
@@ -21058,7 +21031,7 @@ var wrapCommand = (commandLine) => {
|
|
|
21058
21031
|
};
|
|
21059
21032
|
var formatShellArg = (arg) => /^[A-Za-z0-9_./:@%+=,-]+$/.test(arg) ? arg : `'${arg.replaceAll("'", `'"'"'`)}'`;
|
|
21060
21033
|
|
|
21061
|
-
// ../../node_modules/.pnpm/effect@4.0.
|
|
21034
|
+
// ../../node_modules/.pnpm/effect@4.0.1/node_modules/effect/dist/cli/Command.js
|
|
21062
21035
|
var isCommand = (u2) => hasProperty(u2, TypeId46);
|
|
21063
21036
|
var make34 = (name, config, handler) => {
|
|
21064
21037
|
const parsedConfig = parseConfig(config ?? {});
|