apps 0.0.1-beta.129 → 0.0.1-beta.130
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/framework-reference.json +1 -1
- package/js/{chunk-DJNOADLI.js → chunk-2XDCAXAR.js} +1 -1
- package/js/{chunk-KKKUQPWD.js → chunk-34RH47V5.js} +2 -2
- package/js/{chunk-ZJ4P2ZKS.js → chunk-3ICMSVNC.js} +4 -4
- package/js/{chunk-6AW7FQYY.js → chunk-4SIYTPIK.js} +10 -10
- package/js/{chunk-67DM7ASO.js → chunk-6QZVXLF2.js} +2 -2
- package/js/{chunk-5CMAHXQD.js → chunk-7MPPHKRW.js} +4 -4
- package/js/{chunk-FKU2HRYV.js → chunk-AR22I6UO.js} +8 -8
- package/js/{chunk-MS3D6YMD.js → chunk-BMHEVNGF.js} +3 -3
- package/js/{chunk-VUGZOJJM.js → chunk-BSSBP57D.js} +6 -6
- package/js/{chunk-XO4Z2SP7.js → chunk-DWYOLPWT.js} +55 -35
- package/js/{chunk-WE4FZOSH.js → chunk-H2K7OZ47.js} +1 -1
- package/js/{chunk-N7HXZNBD.js → chunk-I6QAWNUM.js} +2 -2
- package/js/{chunk-WS76KLDL.js → chunk-J52LZT2Y.js} +2 -2
- package/js/{chunk-MHFRQZXP.js → chunk-JLW4LQS7.js} +6 -6
- package/js/{chunk-QSPLCQAZ.js → chunk-L2RUGQAM.js} +5 -5
- package/js/{chunk-LC6YCEVL.js → chunk-LSOHA2RH.js} +1 -1
- package/js/{chunk-NGL6EJL6.js → chunk-MB6L5YZE.js} +1 -1
- package/js/{chunk-53GRY7ZE.js → chunk-OBT33ZDK.js} +3 -3
- package/js/{chunk-SA7FJGUX.js → chunk-QTX7OUFH.js} +2 -2
- package/js/{chunk-IKGZ4OEZ.js → chunk-T7MXJSCW.js} +13 -13
- package/js/{chunk-FXJUHTFE.js → chunk-VX36SA7Y.js} +1 -1
- package/js/{chunk-CH6HAYVG.js → chunk-WX773GGX.js} +6 -6
- package/js/{chunk-PZBT2QO5.js → chunk-WXHRUWNT.js} +2 -2
- package/js/{chunk-QYHUNAWH.js → chunk-YFSOSNF3.js} +243 -223
- package/js/{chunk-5H5IO2NZ.js → chunk-YVN2AMAU.js} +2 -2
- package/js/client.js +10 -10
- package/js/contracts.js +7 -7
- package/js/effect.js +18 -18
- package/js/graphql.js +20 -20
- package/js/host.js +18 -18
- package/js/index.js +13 -13
- package/js/mcp/effect.js +19 -19
- package/js/mcp.js +21 -21
- package/js/openapi.js +16 -16
- package/js/react.js +2 -2
- package/js/skills/effect.js +6 -6
- package/js/skills.js +15 -15
- package/js/ui/auth/contracts.js +2 -2
- package/js/ui/auth.js +5 -5
- package/js/ui/contracts.js +5 -5
- package/js/ui/serving.js +10 -10
- package/package.json +1 -1
- package/runtime.json +1 -1
- package/types/telemetry/src/index.d.ts +1 -1
- package/types/telemetry/src/measurements.d.ts +6 -2
- package/types/telemetry/src/relay.d.ts +11 -3
|
@@ -5463,6 +5463,7 @@ var makeScope = (finalizerStrategy = "sequential", parent) => ({
|
|
|
5463
5463
|
var constScopeEmpty = {
|
|
5464
5464
|
_tag: "Empty"
|
|
5465
5465
|
};
|
|
5466
|
+
var scopeMake = (finalizerStrategy) => sync(() => scopeMakeUnsafe(finalizerStrategy));
|
|
5466
5467
|
var scope = scopeTag;
|
|
5467
5468
|
var provideScope = /* @__PURE__ */ provideService(scopeTag);
|
|
5468
5469
|
var scoped = (self) => withFiber((fiber3) => {
|
|
@@ -5475,6 +5476,7 @@ var scoped = (self) => withFiber((fiber3) => {
|
|
|
5475
5476
|
});
|
|
5476
5477
|
return self;
|
|
5477
5478
|
});
|
|
5479
|
+
var scopeUse = /* @__PURE__ */ dual(2, (self, scope3) => onExit(provideScope(self, scope3), (exit3) => suspend(() => scopeCloseUnsafe(scope3, exit3) ?? void_3)));
|
|
5478
5480
|
var scopedWith = (f) => suspend(() => {
|
|
5479
5481
|
const scope3 = scopeMakeUnsafe();
|
|
5480
5482
|
return onExit(f(scope3), (exit3) => suspend(() => scopeCloseUnsafe(scope3, exit3) ?? void_3));
|
|
@@ -5555,7 +5557,7 @@ var onErrorFilter = /* @__PURE__ */ dual(3, (self, filter11, f) => onExit(self,
|
|
|
5555
5557
|
return isFailure2(result6) ? void_3 : f(result6.success, exit3.cause);
|
|
5556
5558
|
}));
|
|
5557
5559
|
var onInterrupt = /* @__PURE__ */ dual(2, (self, finalizer) => onErrorFilter(causeFilterInterruptors, finalizer)(self));
|
|
5558
|
-
var acquireUseRelease = (acquire,
|
|
5560
|
+
var acquireUseRelease = (acquire, use2, release4) => uninterruptibleMask((restore) => flatMap3(acquire, (a) => onExitPrimitive(suspend(() => restore(use2(a))), (exit3) => release4(a, exit3), true)));
|
|
5559
5561
|
var acquireDisposable = (acquire) => acquireRelease(acquire, (resource) => hasProperty(resource, Symbol.asyncDispose) ? promise(() => resource[Symbol.asyncDispose]()) : sync(() => resource[Symbol.dispose]()));
|
|
5560
5562
|
var cachedInvalidateWithTTL = /* @__PURE__ */ dual(2, (self, ttl) => sync(() => makeCachedUnsafe(self, typeof ttl === "function" ? (exit3) => toMillis(fromInputUnsafe(ttl(exit3))) : constant(toMillis(fromInputUnsafe(ttl))))));
|
|
5561
5563
|
var infiniteTTL = /* @__PURE__ */ constant(Infinity);
|
|
@@ -7263,7 +7265,22 @@ var CurrentStackFrame2 = CurrentStackFrame;
|
|
|
7263
7265
|
var TracerTimingEnabled2 = TracerTimingEnabled;
|
|
7264
7266
|
|
|
7265
7267
|
// ../../node_modules/.bun/effect@4.1.4/node_modules/effect/dist/Scope.js
|
|
7268
|
+
var Scope_exports = {};
|
|
7269
|
+
__export(Scope_exports, {
|
|
7270
|
+
Scope: () => Scope,
|
|
7271
|
+
addFinalizer: () => addFinalizer2,
|
|
7272
|
+
addFinalizerExit: () => addFinalizerExit,
|
|
7273
|
+
close: () => close,
|
|
7274
|
+
closeUnsafe: () => closeUnsafe,
|
|
7275
|
+
fork: () => fork,
|
|
7276
|
+
forkUnsafe: () => forkUnsafe2,
|
|
7277
|
+
make: () => make9,
|
|
7278
|
+
makeUnsafe: () => makeUnsafe3,
|
|
7279
|
+
provide: () => provide,
|
|
7280
|
+
use: () => use
|
|
7281
|
+
});
|
|
7266
7282
|
var Scope = scopeTag;
|
|
7283
|
+
var make9 = scopeMake;
|
|
7267
7284
|
var makeUnsafe3 = scopeMakeUnsafe;
|
|
7268
7285
|
var provide = provideScope;
|
|
7269
7286
|
var addFinalizerExit = scopeAddFinalizerExit;
|
|
@@ -7271,6 +7288,8 @@ var addFinalizer2 = scopeAddFinalizer;
|
|
|
7271
7288
|
var fork = scopeFork;
|
|
7272
7289
|
var forkUnsafe2 = scopeForkUnsafe;
|
|
7273
7290
|
var close = scopeClose;
|
|
7291
|
+
var closeUnsafe = scopeCloseUnsafe;
|
|
7292
|
+
var use = scopeUse;
|
|
7274
7293
|
|
|
7275
7294
|
// ../../node_modules/.bun/effect@4.1.4/node_modules/effect/dist/Layer.js
|
|
7276
7295
|
var TypeId6 = "~effect/Layer";
|
|
@@ -7671,7 +7690,7 @@ __export(Cron_exports, {
|
|
|
7671
7690
|
format: () => format3,
|
|
7672
7691
|
isCron: () => isCron,
|
|
7673
7692
|
isCronParseError: () => isCronParseError,
|
|
7674
|
-
make: () =>
|
|
7693
|
+
make: () => make11,
|
|
7675
7694
|
match: () => match6,
|
|
7676
7695
|
next: () => next,
|
|
7677
7696
|
parse: () => parse,
|
|
@@ -7882,7 +7901,7 @@ var makeZonedUnsafe = (input, options) => {
|
|
|
7882
7901
|
return makeZonedFromAdjusted(self.epochMilliseconds, zone, options?.disambiguation ?? "compatible");
|
|
7883
7902
|
};
|
|
7884
7903
|
var makeZoned = /* @__PURE__ */ liftThrowable(makeZonedUnsafe);
|
|
7885
|
-
var
|
|
7904
|
+
var make10 = /* @__PURE__ */ liftThrowable(makeUnsafe4);
|
|
7886
7905
|
var zonedStringRegExp = /^(.{17,35})\[(.+)\]$/;
|
|
7887
7906
|
var makeZonedFromString = (input) => {
|
|
7888
7907
|
const match10 = zonedStringRegExp.exec(input);
|
|
@@ -8246,7 +8265,7 @@ var CronProto = {
|
|
|
8246
8265
|
}
|
|
8247
8266
|
};
|
|
8248
8267
|
var isCron = (u) => hasProperty(u, TypeId9);
|
|
8249
|
-
var
|
|
8268
|
+
var make11 = (values2) => {
|
|
8250
8269
|
const o = Object.create(CronProto);
|
|
8251
8270
|
o.seconds = restrictions.seconds(values2.seconds ?? [0]);
|
|
8252
8271
|
o.minutes = restrictions.minutes(values2.minutes);
|
|
@@ -8395,7 +8414,7 @@ var parse = (cron2, tz, options) => {
|
|
|
8395
8414
|
days: days3,
|
|
8396
8415
|
months: months2,
|
|
8397
8416
|
weekdays: weekdays2
|
|
8398
|
-
}) =>
|
|
8417
|
+
}) => make11({
|
|
8399
8418
|
tz: tz2,
|
|
8400
8419
|
seconds: seconds3.values,
|
|
8401
8420
|
minutes: minutes3.values,
|
|
@@ -10618,7 +10637,7 @@ var fnUntracedEager2 = fnUntracedEager;
|
|
|
10618
10637
|
var Redacted_exports = {};
|
|
10619
10638
|
__export(Redacted_exports, {
|
|
10620
10639
|
isRedacted: () => isRedacted,
|
|
10621
|
-
make: () =>
|
|
10640
|
+
make: () => make12,
|
|
10622
10641
|
makeEquivalence: () => makeEquivalence6,
|
|
10623
10642
|
value: () => value3,
|
|
10624
10643
|
wipeUnsafe: () => wipeUnsafe
|
|
@@ -10638,7 +10657,7 @@ var stringOrRedacted = (val) => typeof val === "string" ? val : value2(val);
|
|
|
10638
10657
|
// ../../node_modules/.bun/effect@4.1.4/node_modules/effect/dist/Redacted.js
|
|
10639
10658
|
var TypeId16 = "~effect/Redacted";
|
|
10640
10659
|
var isRedacted = (u) => hasProperty(u, TypeId16);
|
|
10641
|
-
var
|
|
10660
|
+
var make12 = (value6, options) => {
|
|
10642
10661
|
const self = Object.create(Proto4);
|
|
10643
10662
|
if (options?.label) {
|
|
10644
10663
|
self.label = options.label;
|
|
@@ -11026,7 +11045,7 @@ __export(Schema_exports, {
|
|
|
11026
11045
|
isUppercased: () => isUppercased,
|
|
11027
11046
|
link: () => link,
|
|
11028
11047
|
linkDecoding: () => linkDecoding,
|
|
11029
|
-
make: () =>
|
|
11048
|
+
make: () => make29,
|
|
11030
11049
|
makeClassTrusted: () => makeClassTrusted,
|
|
11031
11050
|
makeFilter: () => makeFilter2,
|
|
11032
11051
|
makeFilterGroup: () => makeFilterGroup,
|
|
@@ -11115,7 +11134,7 @@ var BigDecimalProto = {
|
|
|
11115
11134
|
}
|
|
11116
11135
|
};
|
|
11117
11136
|
var isBigDecimal = (u) => hasProperty(u, TypeId17);
|
|
11118
|
-
var
|
|
11137
|
+
var make13 = (value6, scale) => {
|
|
11119
11138
|
if (!Number.isSafeInteger(scale)) {
|
|
11120
11139
|
throw new RangeError(`Scale must be a safe integer, got ${scale}`);
|
|
11121
11140
|
}
|
|
@@ -11125,7 +11144,7 @@ var make12 = (value6, scale) => {
|
|
|
11125
11144
|
return o;
|
|
11126
11145
|
};
|
|
11127
11146
|
var makeNormalized = (value6, scale) => {
|
|
11128
|
-
const o =
|
|
11147
|
+
const o = make13(value6, scale);
|
|
11129
11148
|
o.normalized = o;
|
|
11130
11149
|
return o;
|
|
11131
11150
|
};
|
|
@@ -11219,7 +11238,7 @@ var fromString = (s) => {
|
|
|
11219
11238
|
if (scale > MAX_SCALE || normalizedScale < -MAX_SCALE) {
|
|
11220
11239
|
return none2();
|
|
11221
11240
|
}
|
|
11222
|
-
return some3(
|
|
11241
|
+
return some3(make13(value6, scale));
|
|
11223
11242
|
};
|
|
11224
11243
|
var format4 = (n) => {
|
|
11225
11244
|
const normalized = normalize2(n);
|
|
@@ -11352,8 +11371,8 @@ var binaryUnits = [decimalUnits[0], {
|
|
|
11352
11371
|
var allUnits = [...decimalUnits, .../* @__PURE__ */ binaryUnits.slice(1)];
|
|
11353
11372
|
var unitsByName = /* @__PURE__ */ new Map(/* @__PURE__ */ allUnits.flatMap((unit) => unit.names.map((name) => [name, unit])));
|
|
11354
11373
|
var unitsBySymbol = /* @__PURE__ */ new Map(/* @__PURE__ */ allUnits.map((unit) => [unit.symbol, unit]));
|
|
11355
|
-
var
|
|
11356
|
-
var zero3 = /* @__PURE__ */
|
|
11374
|
+
var make14 = (value6) => value6;
|
|
11375
|
+
var zero3 = /* @__PURE__ */ make14(bigint06);
|
|
11357
11376
|
var invalid2 = (message) => {
|
|
11358
11377
|
throw new Error(`Invalid ByteSize: ${message}`);
|
|
11359
11378
|
};
|
|
@@ -11361,7 +11380,7 @@ var fromNumber = (input) => {
|
|
|
11361
11380
|
if (!Number.isSafeInteger(input) || input < 0) {
|
|
11362
11381
|
return invalid2(`expected a non-negative safe integer, received ${input}`);
|
|
11363
11382
|
}
|
|
11364
|
-
return
|
|
11383
|
+
return make14(BigInt(input));
|
|
11365
11384
|
};
|
|
11366
11385
|
var maxSafeInteger = /* @__PURE__ */ BigInt(Number.MAX_SAFE_INTEGER);
|
|
11367
11386
|
var scaleDecimal = (quantity, factor) => {
|
|
@@ -11377,14 +11396,14 @@ var scaleDecimal = (quantity, factor) => {
|
|
|
11377
11396
|
var fromQuantity = (quantity, unit) => {
|
|
11378
11397
|
if (typeof quantity === "bigint") {
|
|
11379
11398
|
if (quantity < bigint06) return invalid2(`expected a non-negative quantity, received ${quantity}`);
|
|
11380
|
-
return
|
|
11399
|
+
return make14(quantity * unit.factor);
|
|
11381
11400
|
}
|
|
11382
11401
|
if (binaryUnits.includes(unit)) {
|
|
11383
11402
|
const value6 = quantity * Number(unit.factor);
|
|
11384
|
-
if (Number.isSafeInteger(value6) && value6 >= 0) return
|
|
11403
|
+
if (Number.isSafeInteger(value6) && value6 >= 0) return make14(BigInt(value6));
|
|
11385
11404
|
} else {
|
|
11386
11405
|
const value6 = scaleDecimal(String(quantity), unit.factor);
|
|
11387
|
-
if (value6 !== void 0 && value6 <= maxSafeInteger) return
|
|
11406
|
+
if (value6 !== void 0 && value6 <= maxSafeInteger) return make14(value6);
|
|
11388
11407
|
}
|
|
11389
11408
|
return invalid2(`expected an exact non-negative safe-integer byte result, received ${quantity} ${unit.symbol}`);
|
|
11390
11409
|
};
|
|
@@ -11395,14 +11414,14 @@ var fromStringUnsafe = (input) => {
|
|
|
11395
11414
|
if (unit === void 0) return invalid2(`unsupported unit ${JSON.stringify(match10[2])}`);
|
|
11396
11415
|
const value6 = scaleDecimal(match10[1], unit.factor);
|
|
11397
11416
|
if (value6 === void 0) return invalid2(`${JSON.stringify(input)} does not represent an integral number of bytes`);
|
|
11398
|
-
return
|
|
11417
|
+
return make14(value6);
|
|
11399
11418
|
};
|
|
11400
11419
|
var fromString2 = /* @__PURE__ */ liftThrowable(fromStringUnsafe);
|
|
11401
11420
|
var fromInputUnsafe2 = (input) => {
|
|
11402
11421
|
switch (typeof input) {
|
|
11403
11422
|
case "bigint":
|
|
11404
11423
|
if (input < bigint06) return invalid2(`expected a non-negative bigint, received ${input}`);
|
|
11405
|
-
return
|
|
11424
|
+
return make14(input);
|
|
11406
11425
|
case "number":
|
|
11407
11426
|
return fromNumber(input);
|
|
11408
11427
|
case "string":
|
|
@@ -12439,7 +12458,7 @@ var redactedProto = (typeId, label) => ({
|
|
|
12439
12458
|
return this.toJSON();
|
|
12440
12459
|
}
|
|
12441
12460
|
});
|
|
12442
|
-
var
|
|
12461
|
+
var make15 = (proto, algorithm, material2) => byReferenceUnsafe(Object.create(proto, {
|
|
12443
12462
|
algorithm: {
|
|
12444
12463
|
value: algorithm,
|
|
12445
12464
|
enumerable: true
|
|
@@ -12448,7 +12467,7 @@ var make14 = (proto, algorithm, material2) => byReferenceUnsafe(Object.create(pr
|
|
|
12448
12467
|
value: material2
|
|
12449
12468
|
}
|
|
12450
12469
|
}));
|
|
12451
|
-
var makeBytes = (proto, algorithm, bytes2) =>
|
|
12470
|
+
var makeBytes = (proto, algorithm, bytes2) => make15(proto, algorithm, {
|
|
12452
12471
|
_tag: "Bytes",
|
|
12453
12472
|
bytes: bytes2
|
|
12454
12473
|
});
|
|
@@ -12491,7 +12510,7 @@ var importedAlgorithm = (algorithm, cryptoKey) => {
|
|
|
12491
12510
|
};
|
|
12492
12511
|
var fromCryptoKey = (module, method, proto, algorithm, cryptoKey, expected) => suspend3(() => {
|
|
12493
12512
|
const problem = checkCryptoKey(cryptoKey, expected);
|
|
12494
|
-
return problem === void 0 ? succeed7(
|
|
12513
|
+
return problem === void 0 ? succeed7(make15(proto, importedAlgorithm(algorithm, cryptoKey), {
|
|
12495
12514
|
_tag: "CryptoKey",
|
|
12496
12515
|
cryptoKey
|
|
12497
12516
|
})) : invalidKey(module, method, problem);
|
|
@@ -13679,7 +13698,7 @@ var isZoned2 = isZoned;
|
|
|
13679
13698
|
var Equivalence5 = Equivalence2;
|
|
13680
13699
|
var makeUnsafe5 = makeUnsafe4;
|
|
13681
13700
|
var makeZonedUnsafe2 = makeZonedUnsafe;
|
|
13682
|
-
var
|
|
13701
|
+
var make16 = make10;
|
|
13683
13702
|
var makeZonedFromString2 = makeZonedFromString;
|
|
13684
13703
|
var toUtc2 = toUtc;
|
|
13685
13704
|
var zoneMakeNamedUnsafe2 = zoneMakeNamedUnsafe;
|
|
@@ -14925,7 +14944,7 @@ var Proto6 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
|
|
|
14925
14944
|
value: BaseProto[NodeInspectSymbol]
|
|
14926
14945
|
}
|
|
14927
14946
|
});
|
|
14928
|
-
var
|
|
14947
|
+
var make19 = (input) => Object.assign(Object.create(Proto6), input);
|
|
14929
14948
|
var Equivalence6 = /* @__PURE__ */ makeEquivalence4(/* @__PURE__ */ strictEqual());
|
|
14930
14949
|
var empty11 = /* @__PURE__ */ Object.create(Proto6);
|
|
14931
14950
|
var fromInput3 = (input) => {
|
|
@@ -14953,26 +14972,26 @@ var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto6);
|
|
|
14953
14972
|
var has6 = /* @__PURE__ */ dual(2, (self, key5) => key5.toLowerCase() in self);
|
|
14954
14973
|
var get4 = /* @__PURE__ */ dual(2, (self, key5) => fromUndefinedOr(self[key5.toLowerCase()]));
|
|
14955
14974
|
var set5 = /* @__PURE__ */ dual(3, (self, key5, value6) => {
|
|
14956
|
-
const out =
|
|
14975
|
+
const out = make19(self);
|
|
14957
14976
|
out[key5.toLowerCase()] = value6;
|
|
14958
14977
|
return out;
|
|
14959
14978
|
});
|
|
14960
|
-
var setAll2 = /* @__PURE__ */ dual(2, (self, headers) =>
|
|
14979
|
+
var setAll2 = /* @__PURE__ */ dual(2, (self, headers) => make19({
|
|
14961
14980
|
...self,
|
|
14962
14981
|
...fromInput3(headers)
|
|
14963
14982
|
}));
|
|
14964
14983
|
var merge5 = /* @__PURE__ */ dual(2, (self, headers) => {
|
|
14965
|
-
const out =
|
|
14984
|
+
const out = make19(self);
|
|
14966
14985
|
Object.assign(out, headers);
|
|
14967
14986
|
return out;
|
|
14968
14987
|
});
|
|
14969
14988
|
var remove8 = /* @__PURE__ */ dual(2, (self, key5) => {
|
|
14970
|
-
const out =
|
|
14989
|
+
const out = make19(self);
|
|
14971
14990
|
delete out[key5.toLowerCase()];
|
|
14972
14991
|
return out;
|
|
14973
14992
|
});
|
|
14974
14993
|
var removeMany2 = /* @__PURE__ */ dual(2, (self, keys4) => {
|
|
14975
|
-
const out =
|
|
14994
|
+
const out = make19(self);
|
|
14976
14995
|
for (const key5 of keys4) {
|
|
14977
14996
|
delete out[key5.toLowerCase()];
|
|
14978
14997
|
}
|
|
@@ -14986,12 +15005,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key5) => {
|
|
|
14986
15005
|
if (typeof key6 === "string") {
|
|
14987
15006
|
const k = key6.toLowerCase();
|
|
14988
15007
|
if (k in self) {
|
|
14989
|
-
out[k] =
|
|
15008
|
+
out[k] = make12(self[k]);
|
|
14990
15009
|
}
|
|
14991
15010
|
} else {
|
|
14992
15011
|
for (const name in self) {
|
|
14993
15012
|
if (name.search(key6) !== -1) {
|
|
14994
|
-
out[name] =
|
|
15013
|
+
out[name] = make12(self[name]);
|
|
14995
15014
|
}
|
|
14996
15015
|
}
|
|
14997
15016
|
}
|
|
@@ -15187,7 +15206,7 @@ var Proto7 = {
|
|
|
15187
15206
|
return array(this.params.flat());
|
|
15188
15207
|
}
|
|
15189
15208
|
};
|
|
15190
|
-
var
|
|
15209
|
+
var make20 = (params2) => {
|
|
15191
15210
|
const self = Object.create(Proto7);
|
|
15192
15211
|
self.params = params2;
|
|
15193
15212
|
return self;
|
|
@@ -15206,7 +15225,7 @@ var fromInput4 = (input) => {
|
|
|
15206
15225
|
out.push(parsed[i]);
|
|
15207
15226
|
}
|
|
15208
15227
|
}
|
|
15209
|
-
return
|
|
15228
|
+
return make20(out);
|
|
15210
15229
|
};
|
|
15211
15230
|
var fromInputNested = (input) => {
|
|
15212
15231
|
const entries3 = typeof input[Symbol.iterator] === "function" ? fromIterable2(input) : Object.entries(input);
|
|
@@ -15232,10 +15251,10 @@ var fromInputNested = (input) => {
|
|
|
15232
15251
|
var coerce = (value6) => isRedacted(value6) ? value6 : String(value6);
|
|
15233
15252
|
var Equivalence7 = /* @__PURE__ */ make3((a, b) => arrayEquivalence(a.params, b.params));
|
|
15234
15253
|
var arrayEquivalence = /* @__PURE__ */ makeEquivalence5(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
|
|
15235
|
-
var empty12 = /* @__PURE__ */
|
|
15254
|
+
var empty12 = /* @__PURE__ */ make20([]);
|
|
15236
15255
|
var getFirst = /* @__PURE__ */ dual(2, (self, key5) => findFirst2(self.params, ([k]) => k === key5).pipe(map(([, value6]) => unwrap2(value6))));
|
|
15237
|
-
var set6 = /* @__PURE__ */ dual(3, (self, key5, value6) =>
|
|
15238
|
-
var transform = /* @__PURE__ */ dual(2, (self, f) =>
|
|
15256
|
+
var set6 = /* @__PURE__ */ dual(3, (self, key5, value6) => make20(append(filter3(self.params, ([k]) => k !== key5), [key5, coerce(value6)])));
|
|
15257
|
+
var transform = /* @__PURE__ */ dual(2, (self, f) => make20(f(self.params)));
|
|
15239
15258
|
var setAll3 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
15240
15259
|
const params2 = fromInput4(input).params.slice();
|
|
15241
15260
|
const keys4 = /* @__PURE__ */ new Set();
|
|
@@ -15246,9 +15265,9 @@ var setAll3 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
|
15246
15265
|
if (keys4.has(self.params[i][0])) continue;
|
|
15247
15266
|
params2.push(self.params[i]);
|
|
15248
15267
|
}
|
|
15249
|
-
return
|
|
15268
|
+
return make20(params2);
|
|
15250
15269
|
});
|
|
15251
|
-
var append2 = /* @__PURE__ */ dual(3, (self, key5, value6) =>
|
|
15270
|
+
var append2 = /* @__PURE__ */ dual(3, (self, key5, value6) => make20(append(self.params, [key5, coerce(value6)])));
|
|
15252
15271
|
var appendAll2 = /* @__PURE__ */ dual(2, (self, input) => transform(self, appendAll(fromInput4(input).params)));
|
|
15253
15272
|
var toString = (input) => new URLSearchParams(fromInput4(input).params.map(([key5, value6]) => [key5, unwrap2(value6)])).toString();
|
|
15254
15273
|
var toRecord2 = (self) => {
|
|
@@ -15271,7 +15290,7 @@ var toRecord2 = (self) => {
|
|
|
15271
15290
|
var toReadonlyRecord = toRecord2;
|
|
15272
15291
|
var redact3 = /* @__PURE__ */ dual(2, (self, key5) => {
|
|
15273
15292
|
const patterns = Array.isArray(key5) ? key5 : [key5];
|
|
15274
|
-
return self.params.map(([name, value6]) => [name, typeof value6 === "string" && isRedactedName2(name, patterns) ?
|
|
15293
|
+
return self.params.map(([name, value6]) => [name, typeof value6 === "string" && isRedactedName2(name, patterns) ? make12(value6) : value6]);
|
|
15275
15294
|
});
|
|
15276
15295
|
var isRedactedName2 = isRedactedName;
|
|
15277
15296
|
var redactUrl = (url, redactedNames = currentRedactedNames()) => {
|
|
@@ -15389,7 +15408,7 @@ var ProtoGraph = {
|
|
|
15389
15408
|
return pipeArguments(this, arguments);
|
|
15390
15409
|
}
|
|
15391
15410
|
};
|
|
15392
|
-
var
|
|
15411
|
+
var make21 = (type3, mutable3) => {
|
|
15393
15412
|
const graph = Object.create(ProtoGraph);
|
|
15394
15413
|
graph.type = type3;
|
|
15395
15414
|
graph.mutable = mutable3;
|
|
@@ -15420,7 +15439,7 @@ var snapshot2 = (graph) => {
|
|
|
15420
15439
|
};
|
|
15421
15440
|
};
|
|
15422
15441
|
var hydrate = (snapshot3) => {
|
|
15423
|
-
const graph =
|
|
15442
|
+
const graph = make21(snapshot3.type, false);
|
|
15424
15443
|
for (const node of snapshot3.nodes) {
|
|
15425
15444
|
graph.nodes.set(node.index, node.data);
|
|
15426
15445
|
graph.adjacency.set(node.index, []);
|
|
@@ -16346,7 +16365,7 @@ function decodeUriComponent() {
|
|
|
16346
16365
|
}
|
|
16347
16366
|
function dateTimeUtcFromInput() {
|
|
16348
16367
|
return transformEffect((input, options) => {
|
|
16349
|
-
return match(
|
|
16368
|
+
return match(make16(input), {
|
|
16350
16369
|
onNone: () => fail7(new InvalidValue({
|
|
16351
16370
|
message: "Invalid DateTime input"
|
|
16352
16371
|
}, input, options)),
|
|
@@ -16829,7 +16848,7 @@ var timeZoneFromString = /* @__PURE__ */ transformEffect2({
|
|
|
16829
16848
|
});
|
|
16830
16849
|
var dateTimeUtcFromString = /* @__PURE__ */ transformEffect2({
|
|
16831
16850
|
decode: (s, options) => {
|
|
16832
|
-
return match(
|
|
16851
|
+
return match(make16(s), {
|
|
16833
16852
|
onNone: () => fail7(new InvalidValue({
|
|
16834
16853
|
expected: "a valid UTC DateTime string"
|
|
16835
16854
|
}, s, options)),
|
|
@@ -19045,7 +19064,7 @@ __export(SchemaParser_exports, {
|
|
|
19045
19064
|
encodeUnknownResult: () => encodeUnknownResult,
|
|
19046
19065
|
encodeUnknownSync: () => encodeUnknownSync,
|
|
19047
19066
|
is: () => is,
|
|
19048
|
-
make: () =>
|
|
19067
|
+
make: () => make22,
|
|
19049
19068
|
makeClassSync: () => makeClassSync,
|
|
19050
19069
|
makeEffect: () => makeEffect,
|
|
19051
19070
|
makeOption: () => makeOption,
|
|
@@ -19344,7 +19363,7 @@ function makeOption(schema2) {
|
|
|
19344
19363
|
return none2();
|
|
19345
19364
|
};
|
|
19346
19365
|
}
|
|
19347
|
-
function
|
|
19366
|
+
function make22(schema2) {
|
|
19348
19367
|
return makeConstructorSync(toType(schema2.ast));
|
|
19349
19368
|
}
|
|
19350
19369
|
function is(schema2) {
|
|
@@ -19597,11 +19616,11 @@ function constructSync(entry, input, options) {
|
|
|
19597
19616
|
} : {
|
|
19598
19617
|
disableChecks: true
|
|
19599
19618
|
} : options?.parseOptions ?? defaultParseOptions;
|
|
19600
|
-
const
|
|
19601
|
-
if (
|
|
19619
|
+
const make46 = entry.make;
|
|
19620
|
+
if (make46 !== void 0 && input !== missing) {
|
|
19602
19621
|
let output;
|
|
19603
19622
|
try {
|
|
19604
|
-
output =
|
|
19623
|
+
output = make46(input, parseOptions);
|
|
19605
19624
|
} catch (error) {
|
|
19606
19625
|
throwConstructorDefect(error);
|
|
19607
19626
|
}
|
|
@@ -19632,7 +19651,7 @@ var RebuildOptions = /* @__PURE__ */ Symbol();
|
|
|
19632
19651
|
var SchemaProto = {
|
|
19633
19652
|
[TypeId30]: TypeId30,
|
|
19634
19653
|
get make() {
|
|
19635
|
-
const value6 =
|
|
19654
|
+
const value6 = make22(this);
|
|
19636
19655
|
Object.defineProperty(this, "make", {
|
|
19637
19656
|
value: value6,
|
|
19638
19657
|
enumerable: true
|
|
@@ -19668,10 +19687,10 @@ var SchemaProto = {
|
|
|
19668
19687
|
return this.rebuild(appendChecks(this.ast, checks));
|
|
19669
19688
|
},
|
|
19670
19689
|
rebuild(ast) {
|
|
19671
|
-
return
|
|
19690
|
+
return make23(ast, this[RebuildOptions]);
|
|
19672
19691
|
}
|
|
19673
19692
|
};
|
|
19674
|
-
function
|
|
19693
|
+
function make23(ast, options) {
|
|
19675
19694
|
function Schema() {
|
|
19676
19695
|
}
|
|
19677
19696
|
const self = Object.setPrototypeOf(Schema, SchemaProto);
|
|
@@ -19957,7 +19976,7 @@ function mapObject(value6, f) {
|
|
|
19957
19976
|
}
|
|
19958
19977
|
return out;
|
|
19959
19978
|
}
|
|
19960
|
-
function runConverter(adapter, options,
|
|
19979
|
+
function runConverter(adapter, options, use2) {
|
|
19961
19980
|
const locations = /* @__PURE__ */ new Map();
|
|
19962
19981
|
const references = [];
|
|
19963
19982
|
let rootUri = ROOT_URI;
|
|
@@ -19987,7 +20006,7 @@ function runConverter(adapter, options, use) {
|
|
|
19987
20006
|
assignProperty(out2, "$ref", reference);
|
|
19988
20007
|
}
|
|
19989
20008
|
}
|
|
19990
|
-
const out =
|
|
20009
|
+
const out = use2(convert);
|
|
19991
20010
|
finish();
|
|
19992
20011
|
return out;
|
|
19993
20012
|
function loop(node, sourcePath, targetPath, resourceScope) {
|
|
@@ -20581,7 +20600,7 @@ function convertDraft04ExclusiveBound(source, out, boundKey) {
|
|
|
20581
20600
|
|
|
20582
20601
|
// ../../node_modules/.bun/effect@4.1.4/node_modules/effect/dist/internal/schema/toCodec.js
|
|
20583
20602
|
function toCodecJson(schema2) {
|
|
20584
|
-
return
|
|
20603
|
+
return make23(toCodecJsonAST(schema2.ast), {
|
|
20585
20604
|
schema: schema2
|
|
20586
20605
|
});
|
|
20587
20606
|
}
|
|
@@ -20635,7 +20654,7 @@ function toCodecJsonASTStep(ast, recur2) {
|
|
|
20635
20654
|
if (!isFunction(getLink)) {
|
|
20636
20655
|
return replaceEncoding(ast, [unknownToJson]);
|
|
20637
20656
|
}
|
|
20638
|
-
const typeParameters = ast.typeParameters.map((tp) =>
|
|
20657
|
+
const typeParameters = ast.typeParameters.map((tp) => make23(toEncoded(tp)));
|
|
20639
20658
|
const link2 = getLink(typeParameters);
|
|
20640
20659
|
return link2 === void 0 ? ast : replaceEncoding(ast, [mapLink(link2, recur2)]);
|
|
20641
20660
|
}
|
|
@@ -20670,7 +20689,7 @@ function toCodecJsonASTStep(ast, recur2) {
|
|
|
20670
20689
|
return ast;
|
|
20671
20690
|
}
|
|
20672
20691
|
function toCodecIso(schema2) {
|
|
20673
|
-
return
|
|
20692
|
+
return make23(toCodecIsoAST(toType(schema2.ast)));
|
|
20674
20693
|
}
|
|
20675
20694
|
var toCodecIsoAST = /* @__PURE__ */ memoize((ast) => {
|
|
20676
20695
|
const out = toCodecIsoASTStep(ast, toCodecIsoAST);
|
|
@@ -20681,7 +20700,7 @@ function toCodecIsoASTStep(ast, recur2) {
|
|
|
20681
20700
|
case "Declaration": {
|
|
20682
20701
|
const getLink = ast.annotations?.toCodecIso ?? ast.annotations?.toCodec;
|
|
20683
20702
|
if (isFunction(getLink)) {
|
|
20684
|
-
const link2 = getLink(ast.typeParameters.map((tp) =>
|
|
20703
|
+
const link2 = getLink(ast.typeParameters.map((tp) => make23(tp)));
|
|
20685
20704
|
return replaceEncoding(ast, [mapLink(link2, recur2)]);
|
|
20686
20705
|
}
|
|
20687
20706
|
return ast;
|
|
@@ -20695,12 +20714,12 @@ function toCodecIsoASTStep(ast, recur2) {
|
|
|
20695
20714
|
return ast;
|
|
20696
20715
|
}
|
|
20697
20716
|
function toCodecStringTree(schema2) {
|
|
20698
|
-
return
|
|
20717
|
+
return make23(toCodecStringTreeAST(schema2.ast), {
|
|
20699
20718
|
schema: schema2
|
|
20700
20719
|
});
|
|
20701
20720
|
}
|
|
20702
20721
|
function toCodecArrayFromSingle(schema2) {
|
|
20703
|
-
return
|
|
20722
|
+
return make23(toCodecArrayFromSingleAST(schema2.ast));
|
|
20704
20723
|
}
|
|
20705
20724
|
var toStringTreeReorder = /* @__PURE__ */ makeReorder((ast) => {
|
|
20706
20725
|
switch (ast._tag) {
|
|
@@ -20718,7 +20737,7 @@ var toStringTreeReorder = /* @__PURE__ */ makeReorder((ast) => {
|
|
|
20718
20737
|
function toCodecStringTreeASTStep(ast, recur2, onMissingAnnotation) {
|
|
20719
20738
|
switch (ast._tag) {
|
|
20720
20739
|
case "Declaration": {
|
|
20721
|
-
const typeParameters = ast.typeParameters.map((tp) =>
|
|
20740
|
+
const typeParameters = ast.typeParameters.map((tp) => make23(recur2(toEncoded(tp))));
|
|
20722
20741
|
const getStringTreeLink = ast.annotations?.toCodecStringTree;
|
|
20723
20742
|
if (isFunction(getStringTreeLink)) {
|
|
20724
20743
|
const link3 = getStringTreeLink(typeParameters);
|
|
@@ -20787,7 +20806,7 @@ var toCodecArrayFromSingleAST = /* @__PURE__ */ applyToSelfOrLastLinkEncodingIde
|
|
|
20787
20806
|
stopAt: isCodecArrayFromSingleLink
|
|
20788
20807
|
});
|
|
20789
20808
|
function toCodecGoJson(schema2) {
|
|
20790
|
-
return
|
|
20809
|
+
return make23(toCodecGoJsonAST(schema2.ast), {
|
|
20791
20810
|
schema: schema2
|
|
20792
20811
|
});
|
|
20793
20812
|
}
|
|
@@ -20830,7 +20849,7 @@ function acceptsNull(ast) {
|
|
|
20830
20849
|
case "Unknown":
|
|
20831
20850
|
case "Any":
|
|
20832
20851
|
case "Declaration":
|
|
20833
|
-
return is(
|
|
20852
|
+
return is(make23(replaceContext(encoded, void 0)))(null);
|
|
20834
20853
|
}
|
|
20835
20854
|
return false;
|
|
20836
20855
|
}
|
|
@@ -22732,10 +22751,10 @@ function buildStruct(source, f) {
|
|
|
22732
22751
|
|
|
22733
22752
|
// ../../node_modules/.bun/effect@4.1.4/node_modules/effect/dist/Optic.js
|
|
22734
22753
|
function makeIso(get12, set10) {
|
|
22735
|
-
return
|
|
22754
|
+
return make24(primitiveNode("Iso", get12, set10));
|
|
22736
22755
|
}
|
|
22737
22756
|
function makeLens(get12, replace) {
|
|
22738
|
-
return
|
|
22757
|
+
return make24(primitiveNode("Lens", get12, replace));
|
|
22739
22758
|
}
|
|
22740
22759
|
function primitiveNode(kind, get12, set10) {
|
|
22741
22760
|
return [{
|
|
@@ -22808,7 +22827,7 @@ function compose4(a, b) {
|
|
|
22808
22827
|
return nodes;
|
|
22809
22828
|
}
|
|
22810
22829
|
function makeOptional(getResult, set10) {
|
|
22811
|
-
return
|
|
22830
|
+
return make24(primitiveNode("Optional", getResult, set10));
|
|
22812
22831
|
}
|
|
22813
22832
|
var OptionalImpl = class {
|
|
22814
22833
|
/** @internal */
|
|
@@ -22827,13 +22846,13 @@ var OptionalImpl = class {
|
|
|
22827
22846
|
return (s) => getOrElse3(flatMap2(this.getResult(s), (a) => this.replaceResult(f(a), s)), () => s);
|
|
22828
22847
|
}
|
|
22829
22848
|
compose(that) {
|
|
22830
|
-
return
|
|
22849
|
+
return make24(compose4(this.node, that.node));
|
|
22831
22850
|
}
|
|
22832
22851
|
key(key5) {
|
|
22833
|
-
return
|
|
22852
|
+
return make24(compose4(this.node, [new PathNode([key5])]));
|
|
22834
22853
|
}
|
|
22835
22854
|
optionalKey(key5) {
|
|
22836
|
-
return
|
|
22855
|
+
return make24(compose4(this.node, primitiveNode("Lens", (s) => s[key5], (a, s) => {
|
|
22837
22856
|
const copy3 = cloneShallow(s);
|
|
22838
22857
|
if (a === void 0) {
|
|
22839
22858
|
if (Array.isArray(copy3) && (typeof key5 === "number" || typeof key5 === "string" && isCanonicalArrayIndex(key5))) {
|
|
@@ -22848,20 +22867,20 @@ var OptionalImpl = class {
|
|
|
22848
22867
|
})));
|
|
22849
22868
|
}
|
|
22850
22869
|
check(...checks) {
|
|
22851
|
-
return
|
|
22870
|
+
return make24(compose4(this.node, [new CheckNode(checks)]));
|
|
22852
22871
|
}
|
|
22853
22872
|
refine(refinement, annotations2) {
|
|
22854
|
-
return
|
|
22873
|
+
return make24(compose4(this.node, [new CheckNode([makeFilterByGuard(refinement, annotations2)])]));
|
|
22855
22874
|
}
|
|
22856
22875
|
tag(tag4) {
|
|
22857
22876
|
const err = fail2(new InvalidValue({
|
|
22858
22877
|
expected: `${JSON.stringify(tag4)} tag`
|
|
22859
22878
|
}));
|
|
22860
|
-
return
|
|
22879
|
+
return make24(compose4(this.node, primitiveNode("Prism", (s) => s._tag === tag4 ? succeed2(s) : err, identity)));
|
|
22861
22880
|
}
|
|
22862
22881
|
at(key5, ..._rest) {
|
|
22863
22882
|
const err = fail2(new Pointer([key5], new MissingKey(void 0)));
|
|
22864
|
-
return
|
|
22883
|
+
return make24(compose4(this.node, primitiveNode("Optional", (s) => Object.hasOwn(s, key5) ? succeed2(s[key5]) : err, (a, s) => {
|
|
22865
22884
|
if (Object.hasOwn(s, key5)) {
|
|
22866
22885
|
const copy3 = cloneShallow(s);
|
|
22867
22886
|
assignProperty(copy3, key5, a);
|
|
@@ -22967,7 +22986,7 @@ var PrismImpl = class extends OptionalImpl {
|
|
|
22967
22986
|
return (s) => getOrElse3(map2(this.getResult(s), (a) => this.set(f(a))), () => s);
|
|
22968
22987
|
}
|
|
22969
22988
|
};
|
|
22970
|
-
function
|
|
22989
|
+
function make24(node) {
|
|
22971
22990
|
let op = node[0] ?? identityOperation;
|
|
22972
22991
|
if (node.length > 1) {
|
|
22973
22992
|
const kind = node.reduce((kind2, step) => composeKind(kind2, step.kind), "Iso");
|
|
@@ -23071,7 +23090,7 @@ function composeKind(a, b) {
|
|
|
23071
23090
|
if (b === "Iso" || a === b) return a;
|
|
23072
23091
|
return "Optional";
|
|
23073
23092
|
}
|
|
23074
|
-
var identityIso = /* @__PURE__ */
|
|
23093
|
+
var identityIso = /* @__PURE__ */ make24([]);
|
|
23075
23094
|
function id() {
|
|
23076
23095
|
return identityIso;
|
|
23077
23096
|
}
|
|
@@ -23867,7 +23886,7 @@ var interfaceError = (input, message) => fail2(new NetAddressError({
|
|
|
23867
23886
|
input,
|
|
23868
23887
|
message
|
|
23869
23888
|
}));
|
|
23870
|
-
var
|
|
23889
|
+
var make25 = (address, prefixLength) => {
|
|
23871
23890
|
const max7 = width(address);
|
|
23872
23891
|
if (!Number.isInteger(prefixLength) || prefixLength < 0 || prefixLength > max7) {
|
|
23873
23892
|
return interfaceError(address, `prefix length must be an integer from 0 through ${max7}`);
|
|
@@ -23898,9 +23917,9 @@ var parseAddressWithPrefix = (input, options) => {
|
|
|
23898
23917
|
prefixLength: Number(prefix)
|
|
23899
23918
|
});
|
|
23900
23919
|
};
|
|
23901
|
-
var ipv4FromString2 = (input, options) => flatMap2(parseAddressWithPrefix(input, options), (parts2) => flatMap2(ipv4FromString(parts2.address), (address) =>
|
|
23902
|
-
var ipv6FromString2 = (input, options) => flatMap2(parseAddressWithPrefix(input, options), (parts2) => flatMap2(ipv6FromString(parts2.address), (address) =>
|
|
23903
|
-
var fromString3 = (input, options) => flatMap2(parseAddressWithPrefix(input, options), (parts2) => flatMap2(ipFromString(parts2.address), (address) =>
|
|
23920
|
+
var ipv4FromString2 = (input, options) => flatMap2(parseAddressWithPrefix(input, options), (parts2) => flatMap2(ipv4FromString(parts2.address), (address) => make25(address, parts2.prefixLength ?? width(address))));
|
|
23921
|
+
var ipv6FromString2 = (input, options) => flatMap2(parseAddressWithPrefix(input, options), (parts2) => flatMap2(ipv6FromString(parts2.address), (address) => make25(address, parts2.prefixLength ?? width(address))));
|
|
23922
|
+
var fromString3 = (input, options) => flatMap2(parseAddressWithPrefix(input, options), (parts2) => flatMap2(ipFromString(parts2.address), (address) => make25(address, parts2.prefixLength ?? width(address))));
|
|
23904
23923
|
var format6 = (self) => `${formatIp(self.address)}/${self.prefixLength}`;
|
|
23905
23924
|
|
|
23906
23925
|
// ../../node_modules/.bun/effect@4.1.4/node_modules/effect/dist/net/IpNetwork.js
|
|
@@ -23942,8 +23961,8 @@ var maskBytes = (bytes2, prefixLength) => {
|
|
|
23942
23961
|
return 0;
|
|
23943
23962
|
});
|
|
23944
23963
|
};
|
|
23945
|
-
var
|
|
23946
|
-
return flatMap2(
|
|
23964
|
+
var make26 = (address, prefixLength) => {
|
|
23965
|
+
return flatMap2(make25(address, prefixLength), (value6) => {
|
|
23947
23966
|
const bytes2 = toBytes10(address);
|
|
23948
23967
|
const masked = maskBytes(bytes2, prefixLength);
|
|
23949
23968
|
if (bytes2.some((byte, index2) => byte !== masked[index2])) {
|
|
@@ -23958,17 +23977,17 @@ var make25 = (address, prefixLength) => {
|
|
|
23958
23977
|
var ipv4FromString3 = (input) => {
|
|
23959
23978
|
return flatMap2(ipv4FromString2(input, {
|
|
23960
23979
|
prefix: "required"
|
|
23961
|
-
}), (value6) =>
|
|
23980
|
+
}), (value6) => make26(value6.address, value6.prefixLength));
|
|
23962
23981
|
};
|
|
23963
23982
|
var ipv6FromString3 = (input) => {
|
|
23964
23983
|
return flatMap2(ipv6FromString2(input, {
|
|
23965
23984
|
prefix: "required"
|
|
23966
|
-
}), (value6) =>
|
|
23985
|
+
}), (value6) => make26(value6.address, value6.prefixLength));
|
|
23967
23986
|
};
|
|
23968
23987
|
var fromString4 = (input) => {
|
|
23969
23988
|
return flatMap2(fromString3(input, {
|
|
23970
23989
|
prefix: "required"
|
|
23971
|
-
}), (value6) =>
|
|
23990
|
+
}), (value6) => make26(value6.address, value6.prefixLength));
|
|
23972
23991
|
};
|
|
23973
23992
|
var format7 = (self) => `${formatIp(self.address)}/${self.prefixLength}`;
|
|
23974
23993
|
var containsBytes = (self, address) => {
|
|
@@ -24024,7 +24043,7 @@ var reduce6 = (numerator, denominator) => {
|
|
|
24024
24043
|
return canonical(numerator / divisor, denominator / divisor);
|
|
24025
24044
|
};
|
|
24026
24045
|
var isRational = (u) => hasProperty(u, TypeId35);
|
|
24027
|
-
var
|
|
24046
|
+
var make27 = (numerator, denominator) => denominator === bigint07 ? none2() : some3(reduce6(numerator, denominator));
|
|
24028
24047
|
var makeUnsafe7 = (numerator, denominator) => {
|
|
24029
24048
|
if (denominator === bigint07) {
|
|
24030
24049
|
throw new RangeError("Denominator must be non-zero");
|
|
@@ -24036,7 +24055,7 @@ var fromString5 = (s) => {
|
|
|
24036
24055
|
if (match10 === null) {
|
|
24037
24056
|
return none2();
|
|
24038
24057
|
}
|
|
24039
|
-
return
|
|
24058
|
+
return make27(BigInt(match10[1]), match10[2] === void 0 ? bigint14 : BigInt(match10[2]));
|
|
24040
24059
|
};
|
|
24041
24060
|
var Equivalence9 = /* @__PURE__ */ make3((self, that) => self.numerator === that.numerator && self.denominator === that.denominator);
|
|
24042
24061
|
var format8 = (n) => `${n.numerator}/${n.denominator}`;
|
|
@@ -24126,7 +24145,7 @@ var unchecked = (major, minor, patch, prerelease, build2) => {
|
|
|
24126
24145
|
return self;
|
|
24127
24146
|
};
|
|
24128
24147
|
var isSemVer = (u) => hasProperty(u, TypeId36);
|
|
24129
|
-
var
|
|
24148
|
+
var make28 = (components) => unchecked(checkComponent(components.major, "major"), checkComponent(components.minor, "minor"), checkComponent(components.patch, "patch"), components.prerelease?.map(prereleaseIdentifier) ?? [], components.build?.map(buildIdentifier) ?? []);
|
|
24130
24149
|
var parseOrThrow = (input) => {
|
|
24131
24150
|
let rest = input;
|
|
24132
24151
|
let build2 = [];
|
|
@@ -24267,7 +24286,7 @@ var format10 = (self) => self.sets.map((set10) => set10.map(formatComparator).jo
|
|
|
24267
24286
|
var TypeId38 = TypeId30;
|
|
24268
24287
|
function declareConstructor() {
|
|
24269
24288
|
return (typeParameters, run6, annotations2) => {
|
|
24270
|
-
return
|
|
24289
|
+
return make29(new Declaration(typeParameters.map(getAST), (typeParameters2) => run6(typeParameters2.map((ast) => make29(ast))), annotations2));
|
|
24271
24290
|
};
|
|
24272
24291
|
}
|
|
24273
24292
|
function declare(is5, annotations2) {
|
|
@@ -24445,29 +24464,29 @@ function encodeUnknownSync2(schema2, options) {
|
|
|
24445
24464
|
};
|
|
24446
24465
|
}
|
|
24447
24466
|
var encodeSync2 = encodeUnknownSync2;
|
|
24448
|
-
var
|
|
24467
|
+
var make29 = make23;
|
|
24449
24468
|
function isSchema(u) {
|
|
24450
24469
|
return hasProperty(u, TypeId38) && u[TypeId38] === TypeId38;
|
|
24451
24470
|
}
|
|
24452
|
-
var optionalKey2 = /* @__PURE__ */ lambda((schema2) =>
|
|
24471
|
+
var optionalKey2 = /* @__PURE__ */ lambda((schema2) => make29(optionalKey(schema2.ast), {
|
|
24453
24472
|
schema: schema2
|
|
24454
24473
|
}));
|
|
24455
24474
|
var requiredKey = /* @__PURE__ */ lambda((self) => self.schema);
|
|
24456
24475
|
var optional2 = /* @__PURE__ */ lambda((self) => {
|
|
24457
24476
|
const schema2 = UndefinedOr(self);
|
|
24458
|
-
return
|
|
24477
|
+
return make29(optional(self.ast), {
|
|
24459
24478
|
schema: schema2
|
|
24460
24479
|
});
|
|
24461
24480
|
});
|
|
24462
24481
|
var required2 = /* @__PURE__ */ lambda((self) => self.schema.members[0]);
|
|
24463
|
-
var mutableKey2 = /* @__PURE__ */ lambda((schema2) =>
|
|
24482
|
+
var mutableKey2 = /* @__PURE__ */ lambda((schema2) => make29(mutableKey(schema2.ast), {
|
|
24464
24483
|
schema: schema2
|
|
24465
24484
|
}));
|
|
24466
24485
|
var readonlyKey = /* @__PURE__ */ lambda((self) => self.schema);
|
|
24467
|
-
var toType2 = /* @__PURE__ */ lambda((schema2) =>
|
|
24486
|
+
var toType2 = /* @__PURE__ */ lambda((schema2) => make29(toType(schema2.ast), {
|
|
24468
24487
|
schema: schema2
|
|
24469
24488
|
}));
|
|
24470
|
-
var toEncoded2 = /* @__PURE__ */ lambda((schema2) =>
|
|
24489
|
+
var toEncoded2 = /* @__PURE__ */ lambda((schema2) => make29(toEncoded(schema2.ast), {
|
|
24471
24490
|
schema: schema2
|
|
24472
24491
|
}));
|
|
24473
24492
|
var FlipTypeId = "~effect/Schema/flip";
|
|
@@ -24478,13 +24497,13 @@ function flip5(schema2) {
|
|
|
24478
24497
|
if (isFlip$(schema2)) {
|
|
24479
24498
|
return schema2.schema.rebuild(flip4(schema2.ast));
|
|
24480
24499
|
}
|
|
24481
|
-
return
|
|
24500
|
+
return make29(flip4(schema2.ast), {
|
|
24482
24501
|
[FlipTypeId]: FlipTypeId,
|
|
24483
24502
|
schema: schema2
|
|
24484
24503
|
});
|
|
24485
24504
|
}
|
|
24486
24505
|
function Literal2(literal) {
|
|
24487
|
-
const out =
|
|
24506
|
+
const out = make29(new Literal(literal), {
|
|
24488
24507
|
literal,
|
|
24489
24508
|
transform(to) {
|
|
24490
24509
|
return out.pipe(decodeTo2(Literal2(to), {
|
|
@@ -24499,38 +24518,38 @@ function templateLiteralParts(parts2) {
|
|
|
24499
24518
|
return parts2.map((part) => isSchema(part) ? part.ast : new Literal(part));
|
|
24500
24519
|
}
|
|
24501
24520
|
function TemplateLiteral2(parts2) {
|
|
24502
|
-
return
|
|
24521
|
+
return make29(new TemplateLiteral(templateLiteralParts(parts2)), {
|
|
24503
24522
|
parts: parts2
|
|
24504
24523
|
});
|
|
24505
24524
|
}
|
|
24506
24525
|
function TemplateLiteralParser(parts2) {
|
|
24507
|
-
return
|
|
24526
|
+
return make29(templateLiteralParser(templateLiteralParts(parts2)), {
|
|
24508
24527
|
parts: parts2
|
|
24509
24528
|
});
|
|
24510
24529
|
}
|
|
24511
24530
|
function Enum2(enums) {
|
|
24512
|
-
return
|
|
24531
|
+
return make29(new Enum(Object.keys(enums).filter((key5) => typeof enums[enums[key5]] !== "number").map((key5) => [key5, enums[key5]])), {
|
|
24513
24532
|
enums
|
|
24514
24533
|
});
|
|
24515
24534
|
}
|
|
24516
|
-
var Never2 = /* @__PURE__ */
|
|
24517
|
-
var Any2 = /* @__PURE__ */
|
|
24518
|
-
var Unknown2 = /* @__PURE__ */
|
|
24519
|
-
var Null2 = /* @__PURE__ */
|
|
24520
|
-
var Undefined2 = /* @__PURE__ */
|
|
24521
|
-
var String6 = /* @__PURE__ */
|
|
24535
|
+
var Never2 = /* @__PURE__ */ make29(never3);
|
|
24536
|
+
var Any2 = /* @__PURE__ */ make29(any);
|
|
24537
|
+
var Unknown2 = /* @__PURE__ */ make29(unknown);
|
|
24538
|
+
var Null2 = /* @__PURE__ */ make29(null_);
|
|
24539
|
+
var Undefined2 = /* @__PURE__ */ make29(undefined_3);
|
|
24540
|
+
var String6 = /* @__PURE__ */ make29(string2);
|
|
24522
24541
|
var StringForLiteralAutocomplete = String6;
|
|
24523
|
-
var Number6 = /* @__PURE__ */
|
|
24524
|
-
var Boolean4 = /* @__PURE__ */
|
|
24525
|
-
var Symbol3 = /* @__PURE__ */
|
|
24526
|
-
var BigInt6 = /* @__PURE__ */
|
|
24527
|
-
var Void2 = /* @__PURE__ */
|
|
24528
|
-
var ObjectKeyword2 = /* @__PURE__ */
|
|
24542
|
+
var Number6 = /* @__PURE__ */ make29(number2);
|
|
24543
|
+
var Boolean4 = /* @__PURE__ */ make29(boolean);
|
|
24544
|
+
var Symbol3 = /* @__PURE__ */ make29(symbol3);
|
|
24545
|
+
var BigInt6 = /* @__PURE__ */ make29(bigInt);
|
|
24546
|
+
var Void2 = /* @__PURE__ */ make29(void_6);
|
|
24547
|
+
var ObjectKeyword2 = /* @__PURE__ */ make29(objectKeyword);
|
|
24529
24548
|
function UniqueSymbol2(symbol6) {
|
|
24530
|
-
return
|
|
24549
|
+
return make29(new UniqueSymbol(symbol6));
|
|
24531
24550
|
}
|
|
24532
24551
|
function makeStruct(ast, fields) {
|
|
24533
|
-
return
|
|
24552
|
+
return make29(ast, {
|
|
24534
24553
|
fields,
|
|
24535
24554
|
mapFields(f, options) {
|
|
24536
24555
|
const fields2 = f(this.fields);
|
|
@@ -24606,19 +24625,19 @@ function extendTo(fields, derive) {
|
|
|
24606
24625
|
};
|
|
24607
24626
|
}
|
|
24608
24627
|
function Record(key5, value6) {
|
|
24609
|
-
return
|
|
24628
|
+
return make29(record(key5.ast, value6.ast), {
|
|
24610
24629
|
key: key5,
|
|
24611
24630
|
value: value6
|
|
24612
24631
|
});
|
|
24613
24632
|
}
|
|
24614
24633
|
function StructWithRest(schema2, records) {
|
|
24615
|
-
return
|
|
24634
|
+
return make29(structWithRest(schema2.ast, records.map(getAST)), {
|
|
24616
24635
|
schema: schema2,
|
|
24617
24636
|
records
|
|
24618
24637
|
});
|
|
24619
24638
|
}
|
|
24620
24639
|
function makeTuple(ast, elements) {
|
|
24621
|
-
return
|
|
24640
|
+
return make29(ast, {
|
|
24622
24641
|
elements,
|
|
24623
24642
|
mapElements(f, options) {
|
|
24624
24643
|
const elements2 = f(this.elements);
|
|
@@ -24630,12 +24649,12 @@ function Tuple3(elements) {
|
|
|
24630
24649
|
return makeTuple(tuple(elements), elements);
|
|
24631
24650
|
}
|
|
24632
24651
|
function TupleWithRest(schema2, rest) {
|
|
24633
|
-
return
|
|
24652
|
+
return make29(tupleWithRest(schema2.ast, rest.map(getAST)), {
|
|
24634
24653
|
schema: schema2,
|
|
24635
24654
|
rest
|
|
24636
24655
|
});
|
|
24637
24656
|
}
|
|
24638
|
-
var ArraySchema = /* @__PURE__ */ lambda((schema2) =>
|
|
24657
|
+
var ArraySchema = /* @__PURE__ */ lambda((schema2) => make29(new Arrays(false, [], [schema2.ast]), {
|
|
24639
24658
|
value: schema2
|
|
24640
24659
|
}));
|
|
24641
24660
|
function withArrayLengthConstraints(self, minimum, maximum) {
|
|
@@ -24646,7 +24665,7 @@ function withArrayLengthConstraints(self, minimum, maximum) {
|
|
|
24646
24665
|
if (maximum !== void 0) return self.check(isMaxLength(maximum));
|
|
24647
24666
|
return self;
|
|
24648
24667
|
}
|
|
24649
|
-
var NonEmptyArray = /* @__PURE__ */ lambda((schema2) =>
|
|
24668
|
+
var NonEmptyArray = /* @__PURE__ */ lambda((schema2) => make29(new Arrays(false, [schema2.ast], [schema2.ast]), {
|
|
24650
24669
|
value: schema2
|
|
24651
24670
|
}));
|
|
24652
24671
|
function ArrayEnsure(schema2) {
|
|
@@ -24656,7 +24675,7 @@ function ArrayEnsure(schema2) {
|
|
|
24656
24675
|
decode: (value6) => [value6],
|
|
24657
24676
|
encode: ([value6]) => value6
|
|
24658
24677
|
}))(schema2);
|
|
24659
|
-
return
|
|
24678
|
+
return make29(Union2([one, many]).pipe(decodeTo2(to)).ast, {
|
|
24660
24679
|
from: Union2([schema2, many]),
|
|
24661
24680
|
to
|
|
24662
24681
|
});
|
|
@@ -24664,11 +24683,11 @@ function ArrayEnsure(schema2) {
|
|
|
24664
24683
|
function UniqueArray(item) {
|
|
24665
24684
|
return ArraySchema(item).check(isUnique());
|
|
24666
24685
|
}
|
|
24667
|
-
var mutable2 = /* @__PURE__ */ lambda((schema2) =>
|
|
24686
|
+
var mutable2 = /* @__PURE__ */ lambda((schema2) => make29(mutable(schema2.ast), {
|
|
24668
24687
|
schema: schema2
|
|
24669
24688
|
}));
|
|
24670
24689
|
function makeUnion(ast, members) {
|
|
24671
|
-
return
|
|
24690
|
+
return make29(ast, {
|
|
24672
24691
|
members,
|
|
24673
24692
|
mapMembers(f, options) {
|
|
24674
24693
|
const members2 = f(this.members);
|
|
@@ -24681,7 +24700,7 @@ function Union2(members, options) {
|
|
|
24681
24700
|
}
|
|
24682
24701
|
function Literals(literals3) {
|
|
24683
24702
|
const members = literals3.map(Literal2);
|
|
24684
|
-
return
|
|
24703
|
+
return make29(union4(members, void 0, void 0), {
|
|
24685
24704
|
literals: literals3,
|
|
24686
24705
|
members,
|
|
24687
24706
|
mapMembers(f) {
|
|
@@ -24699,18 +24718,18 @@ var NullOr = /* @__PURE__ */ lambda((self) => Union2([self, Null2]));
|
|
|
24699
24718
|
var UndefinedOr = /* @__PURE__ */ lambda((self) => Union2([self, Undefined2]));
|
|
24700
24719
|
var NullishOr = /* @__PURE__ */ lambda((self) => Union2([self, Null2, Undefined2]));
|
|
24701
24720
|
function suspend4(f) {
|
|
24702
|
-
return
|
|
24721
|
+
return make29(new Suspend(() => f().ast));
|
|
24703
24722
|
}
|
|
24704
24723
|
function check(...checks) {
|
|
24705
24724
|
return (self) => self.check(...checks);
|
|
24706
24725
|
}
|
|
24707
24726
|
function refine(refinement, annotations2) {
|
|
24708
|
-
return (schema2) =>
|
|
24727
|
+
return (schema2) => make29(appendChecks(schema2.ast, [makeFilterByGuard(refinement, annotations2)]), {
|
|
24709
24728
|
schema: schema2
|
|
24710
24729
|
});
|
|
24711
24730
|
}
|
|
24712
24731
|
function brand(identifier2) {
|
|
24713
|
-
return (schema2) =>
|
|
24732
|
+
return (schema2) => make29(schema2.ast, {
|
|
24714
24733
|
schema: schema2,
|
|
24715
24734
|
identifier: identifier2
|
|
24716
24735
|
});
|
|
@@ -24722,12 +24741,12 @@ function fromBrand(identifier2, ctor) {
|
|
|
24722
24741
|
);
|
|
24723
24742
|
}
|
|
24724
24743
|
function middlewareDecoding2(decode6) {
|
|
24725
|
-
return (schema2) =>
|
|
24744
|
+
return (schema2) => make29(middlewareDecoding(schema2.ast, new Middleware(decode6, identity)), {
|
|
24726
24745
|
schema: schema2
|
|
24727
24746
|
});
|
|
24728
24747
|
}
|
|
24729
24748
|
function middlewareEncoding2(encode7) {
|
|
24730
|
-
return (schema2) =>
|
|
24749
|
+
return (schema2) => make29(middlewareEncoding(schema2.ast, new Middleware(identity, encode7)), {
|
|
24731
24750
|
schema: schema2
|
|
24732
24751
|
});
|
|
24733
24752
|
}
|
|
@@ -24745,7 +24764,7 @@ function catchEncodingWithContext(f) {
|
|
|
24745
24764
|
}
|
|
24746
24765
|
function decodeTo2(to, transformation) {
|
|
24747
24766
|
return (from) => {
|
|
24748
|
-
return
|
|
24767
|
+
return make29(decodeTo(from.ast, to.ast, transformation ? makeTransformation(transformation) : passthrough3()), {
|
|
24749
24768
|
from,
|
|
24750
24769
|
to
|
|
24751
24770
|
});
|
|
@@ -24779,7 +24798,7 @@ function encode6(transformation) {
|
|
|
24779
24798
|
};
|
|
24780
24799
|
}
|
|
24781
24800
|
function withConstructorDefault2(defaultValue) {
|
|
24782
|
-
return (schema2) =>
|
|
24801
|
+
return (schema2) => make29(withConstructorDefault(schema2.ast, defaultValue), {
|
|
24783
24802
|
schema: schema2
|
|
24784
24803
|
});
|
|
24785
24804
|
}
|
|
@@ -24920,7 +24939,7 @@ function TaggedUnion(casesByTag) {
|
|
|
24920
24939
|
match: match10,
|
|
24921
24940
|
matchOrElse
|
|
24922
24941
|
} = toTaggedUnion("_tag")(union5);
|
|
24923
|
-
return
|
|
24942
|
+
return make29(union5.ast, {
|
|
24924
24943
|
tag: tag4,
|
|
24925
24944
|
cases,
|
|
24926
24945
|
isAnyOf,
|
|
@@ -25304,7 +25323,7 @@ function isUncapitalized(annotations2) {
|
|
|
25304
25323
|
...annotations2
|
|
25305
25324
|
});
|
|
25306
25325
|
}
|
|
25307
|
-
var Finite = /* @__PURE__ */
|
|
25326
|
+
var Finite = /* @__PURE__ */ make29(finite);
|
|
25308
25327
|
var isFinite3 = isFinite2;
|
|
25309
25328
|
function makeIsGreaterThan(options) {
|
|
25310
25329
|
const gt = isGreaterThan(options.order);
|
|
@@ -26292,7 +26311,7 @@ function ReadonlyMap(key5, value6) {
|
|
|
26292
26311
|
encode: (map18) => [...map18.entries()]
|
|
26293
26312
|
}))
|
|
26294
26313
|
});
|
|
26295
|
-
return
|
|
26314
|
+
return make29(schema2.ast, {
|
|
26296
26315
|
key: key5,
|
|
26297
26316
|
value: value6
|
|
26298
26317
|
});
|
|
@@ -26326,7 +26345,7 @@ function ReadonlySet(value6) {
|
|
|
26326
26345
|
encode: (set10) => [...set10.values()]
|
|
26327
26346
|
}))
|
|
26328
26347
|
});
|
|
26329
|
-
return
|
|
26348
|
+
return make29(schema2.ast, {
|
|
26330
26349
|
value: value6
|
|
26331
26350
|
});
|
|
26332
26351
|
}
|
|
@@ -26510,7 +26529,7 @@ var NumberFromString = /* @__PURE__ */ String6.annotate({
|
|
|
26510
26529
|
var FiniteFromString = /* @__PURE__ */ String6.annotate({
|
|
26511
26530
|
expected: "a string that will be decoded as a finite number"
|
|
26512
26531
|
}).pipe(/* @__PURE__ */ decodeTo2(Finite, numberFromString));
|
|
26513
|
-
var BigIntFromString = /* @__PURE__ */
|
|
26532
|
+
var BigIntFromString = /* @__PURE__ */ make29(bigIntString).pipe(/* @__PURE__ */ decodeTo2(BigInt6, bigintFromString));
|
|
26514
26533
|
var Trimmed = /* @__PURE__ */ String6.check(/* @__PURE__ */ isTrimmed());
|
|
26515
26534
|
var Trim = /* @__PURE__ */ String6.annotate({
|
|
26516
26535
|
expected: "a string that will be decoded as a trimmed string"
|
|
@@ -26747,7 +26766,7 @@ function CauseReason(error, defect) {
|
|
|
26747
26766
|
}
|
|
26748
26767
|
}))
|
|
26749
26768
|
});
|
|
26750
|
-
return
|
|
26769
|
+
return make29(schema2.ast, {
|
|
26751
26770
|
error,
|
|
26752
26771
|
defect
|
|
26753
26772
|
});
|
|
@@ -26784,7 +26803,7 @@ function Cause(error, defect) {
|
|
|
26784
26803
|
}) => failures
|
|
26785
26804
|
}))
|
|
26786
26805
|
});
|
|
26787
|
-
return
|
|
26806
|
+
return make29(schema2.ast, {
|
|
26788
26807
|
error,
|
|
26789
26808
|
defect
|
|
26790
26809
|
});
|
|
@@ -26826,13 +26845,13 @@ function Chunk(value6) {
|
|
|
26826
26845
|
}) => chunkLink(withArrayLengthConstraints(ArraySchema(value7), constraint?.minLength, constraint?.maxLength)),
|
|
26827
26846
|
toEquivalence: ([value7]) => makeEquivalence7(value7)
|
|
26828
26847
|
});
|
|
26829
|
-
return
|
|
26848
|
+
return make29(schema2.ast, {
|
|
26830
26849
|
value: value6
|
|
26831
26850
|
});
|
|
26832
26851
|
}
|
|
26833
26852
|
function dateTimeUtcFromInput2() {
|
|
26834
26853
|
return transformEffect((input, options) => {
|
|
26835
|
-
return match(
|
|
26854
|
+
return match(make16(input), {
|
|
26836
26855
|
onNone: () => fail7(new InvalidValue({
|
|
26837
26856
|
message: "Invalid DateTime input"
|
|
26838
26857
|
}, input, options)),
|
|
@@ -26868,7 +26887,7 @@ var timeZoneFromString2 = /* @__PURE__ */ transformEffect2({
|
|
|
26868
26887
|
});
|
|
26869
26888
|
var dateTimeUtcFromString2 = /* @__PURE__ */ transformEffect2({
|
|
26870
26889
|
decode: (s, options) => {
|
|
26871
|
-
return match(
|
|
26890
|
+
return match(make16(s), {
|
|
26872
26891
|
onNone: () => fail7(new InvalidValue({
|
|
26873
26892
|
expected: "a valid UTC DateTime string"
|
|
26874
26893
|
}, s, options)),
|
|
@@ -27556,7 +27575,7 @@ function Exit(value6, error, defect) {
|
|
|
27556
27575
|
}
|
|
27557
27576
|
}))
|
|
27558
27577
|
});
|
|
27559
|
-
return
|
|
27578
|
+
return make29(schema2.ast, {
|
|
27560
27579
|
value: value6,
|
|
27561
27580
|
error,
|
|
27562
27581
|
defect
|
|
@@ -27694,7 +27713,7 @@ function Graph(type3, node, edge) {
|
|
|
27694
27713
|
}) => graphToArbitrary(type3, node2, edge2),
|
|
27695
27714
|
toEquivalence: ([node2, edge2]) => graphToEquivalence(node2, edge2)
|
|
27696
27715
|
});
|
|
27697
|
-
return
|
|
27716
|
+
return make29(schema2.ast, {
|
|
27698
27717
|
type: type3,
|
|
27699
27718
|
node,
|
|
27700
27719
|
edge
|
|
@@ -27738,7 +27757,7 @@ function HashMap(key5, value6) {
|
|
|
27738
27757
|
}) => hashMapLink(withArrayLengthConstraints(ArraySchema(Tuple3([key6, value7])).check(isUniqueKey()), constraint?.minSize, constraint?.maxSize)),
|
|
27739
27758
|
toEquivalence: ([key6, value7]) => makeCompareMap(key6, value7)
|
|
27740
27759
|
});
|
|
27741
|
-
return
|
|
27760
|
+
return make29(schema2.ast, {
|
|
27742
27761
|
key: key5,
|
|
27743
27762
|
value: value6
|
|
27744
27763
|
});
|
|
@@ -27780,7 +27799,7 @@ function HashSet(value6) {
|
|
|
27780
27799
|
}) => hashSetLink(withArrayLengthConstraints(ArraySchema(value7).check(isUnique()), constraint?.minSize, constraint?.maxSize)),
|
|
27781
27800
|
toEquivalence: ([value7]) => makeCompareSet(value7)
|
|
27782
27801
|
});
|
|
27783
|
-
return
|
|
27802
|
+
return make29(schema2.ast, {
|
|
27784
27803
|
value: value6
|
|
27785
27804
|
});
|
|
27786
27805
|
}
|
|
@@ -27824,7 +27843,7 @@ function Option(value6) {
|
|
|
27824
27843
|
}
|
|
27825
27844
|
}))
|
|
27826
27845
|
});
|
|
27827
|
-
return
|
|
27846
|
+
return make29(schema2.ast, {
|
|
27828
27847
|
value: value6
|
|
27829
27848
|
});
|
|
27830
27849
|
}
|
|
@@ -27926,7 +27945,7 @@ var UrlParams = /* @__PURE__ */ declare(isUrlParams, {
|
|
|
27926
27945
|
expected: "UrlParams",
|
|
27927
27946
|
toEquivalence: () => Equivalence7,
|
|
27928
27947
|
toCodec: () => link()(ArraySchema(Tuple3([String6, String6])), transform3({
|
|
27929
|
-
decode:
|
|
27948
|
+
decode: make20,
|
|
27930
27949
|
encode: (self) => self.params.map(([key5, value6]) => [key5, unwrap2(value6)])
|
|
27931
27950
|
}))
|
|
27932
27951
|
});
|
|
@@ -27935,7 +27954,7 @@ var JsonFromUrlParamsField = (field, options) => UrlParams.pipe(decodeTo2(fromJs
|
|
|
27935
27954
|
onNone: () => fail7(new Pointer([field], new MissingKey(void 0))),
|
|
27936
27955
|
onSome: succeed7
|
|
27937
27956
|
}),
|
|
27938
|
-
encode: (value6) => succeed7(
|
|
27957
|
+
encode: (value6) => succeed7(make20([[field, value6]]))
|
|
27939
27958
|
})));
|
|
27940
27959
|
var RecordFromUrlParams = /* @__PURE__ */ UrlParams.pipe(/* @__PURE__ */ decodeTo2(/* @__PURE__ */ Record(String6, /* @__PURE__ */ Union2([String6, /* @__PURE__ */ NonEmptyArray(String6)])), /* @__PURE__ */ transform3({
|
|
27941
27960
|
decode: toReadonlyRecord,
|
|
@@ -27971,7 +27990,7 @@ function Redacted(value6, options) {
|
|
|
27971
27990
|
if (isRedacted(input)) {
|
|
27972
27991
|
const label2 = decodeLabel !== void 0 ? mapErrorEager2(decodeLabel(input.label, poptions), (issue) => new Pointer(["label"], issue)) : void_5;
|
|
27973
27992
|
return flatMapEager2(label2, () => mapBothEager2(decodeUnknownEffect(value7)(value3(input), poptions), {
|
|
27974
|
-
onSuccess: (value8) =>
|
|
27993
|
+
onSuccess: (value8) => make12(value8, {
|
|
27975
27994
|
label: input.label
|
|
27976
27995
|
}),
|
|
27977
27996
|
onFailure: () => {
|
|
@@ -27994,14 +28013,14 @@ function Redacted(value6, options) {
|
|
|
27994
28013
|
}),
|
|
27995
28014
|
expected: "Redacted",
|
|
27996
28015
|
toCodecJson: ([value7]) => link()(value7, {
|
|
27997
|
-
decode: transform2((e) =>
|
|
28016
|
+
decode: transform2((e) => make12(e, {
|
|
27998
28017
|
label
|
|
27999
28018
|
})),
|
|
28000
28019
|
encode: disallowJsonEncode ? forbidden((oe) => "Cannot serialize Redacted" + (isSome2(oe) && typeof oe.value.label === "string" ? ` with label: "${oe.value.label}"` : "")) : transform2(value3)
|
|
28001
28020
|
}),
|
|
28002
28021
|
toEquivalence: ([value7]) => makeEquivalence6(value7)
|
|
28003
28022
|
});
|
|
28004
|
-
return
|
|
28023
|
+
return make29(schema2.ast, {
|
|
28005
28024
|
value: value6
|
|
28006
28025
|
});
|
|
28007
28026
|
}
|
|
@@ -28010,7 +28029,7 @@ function RedactedFromValue(value6, options) {
|
|
|
28010
28029
|
label: options?.label,
|
|
28011
28030
|
disallowJsonEncode: options?.disallowEncode
|
|
28012
28031
|
}), {
|
|
28013
|
-
decode: transform2((t) =>
|
|
28032
|
+
decode: transform2((t) => make12(t, {
|
|
28014
28033
|
label: options?.label
|
|
28015
28034
|
})),
|
|
28016
28035
|
encode: options?.disallowEncode ? forbidden((oe) => "Cannot encode Redacted" + (isSome2(oe) && typeof oe.value.label === "string" ? ` with label: "${oe.value.label}"` : "")) : transform2(value3)
|
|
@@ -28063,7 +28082,7 @@ function Result(success, failure) {
|
|
|
28063
28082
|
}
|
|
28064
28083
|
}))
|
|
28065
28084
|
});
|
|
28066
|
-
return
|
|
28085
|
+
return make29(schema2.ast, {
|
|
28067
28086
|
success,
|
|
28068
28087
|
failure
|
|
28069
28088
|
});
|
|
@@ -28098,7 +28117,7 @@ var SemVer = /* @__PURE__ */ declare(isSemVer, {
|
|
|
28098
28117
|
toCodecArbitrary: () => linkDecoding()(Struct2({
|
|
28099
28118
|
...SemVerCoreArbitrary.fields,
|
|
28100
28119
|
build: ArraySchema(String6.check(isPattern2(/^[0-9A-Za-z-]+$/)))
|
|
28101
|
-
}), transform2(
|
|
28120
|
+
}), transform2(make28)),
|
|
28102
28121
|
toCodecJson: () => link()(SemVerString, semVerFromString),
|
|
28103
28122
|
toFormatter: () => format9
|
|
28104
28123
|
});
|
|
@@ -28124,7 +28143,7 @@ var SemVerRange = /* @__PURE__ */ declare(isSemVerRange, {
|
|
|
28124
28143
|
})).check(isMinLength(1))), transform2((sets) => parseUnsafe2(sets.map((set10) => set10.map(({
|
|
28125
28144
|
operator,
|
|
28126
28145
|
version: version2
|
|
28127
|
-
}) => `${operator}${format9(
|
|
28146
|
+
}) => `${operator}${format9(make28(version2))}`).join(" ")).join(" || ")))),
|
|
28128
28147
|
toCodecJson: () => link()(SemVerRangeString, semVerRangeFromString),
|
|
28129
28148
|
toFormatter: () => format10
|
|
28130
28149
|
});
|
|
@@ -28227,7 +28246,7 @@ function getClassSchemaFactory(from, identifier2, annotations2) {
|
|
|
28227
28246
|
const ClassTypeId = getClassTypeId(identifier2);
|
|
28228
28247
|
const isClassValue = (input) => input instanceof self || hasProperty(input, ClassTypeId);
|
|
28229
28248
|
const transformation = getClassTransformation(self);
|
|
28230
|
-
const to =
|
|
28249
|
+
const to = make29(new Declaration([from.ast], () => (input, ast, options) => {
|
|
28231
28250
|
return isClassValue(input) ? succeed7(input) : fail7(new InvalidType(ast, input, options));
|
|
28232
28251
|
}, {
|
|
28233
28252
|
identifier: identifier2,
|
|
@@ -28328,7 +28347,7 @@ function toIsoFocus2(schema2) {
|
|
|
28328
28347
|
}
|
|
28329
28348
|
function overrideToCodecIso(to, transformation) {
|
|
28330
28349
|
return (schema2) => {
|
|
28331
|
-
return
|
|
28350
|
+
return make29(annotate2(schema2.ast, {
|
|
28332
28351
|
toCodecIso: () => new Link(to.ast, makeTransformation(transformation))
|
|
28333
28352
|
}), {
|
|
28334
28353
|
schema: schema2
|
|
@@ -28343,7 +28362,7 @@ function Tree(node) {
|
|
|
28343
28362
|
const Tree2 = Union2([node, ArraySchema(Tree$ref), Record(String6, Tree$ref)]);
|
|
28344
28363
|
return Tree2;
|
|
28345
28364
|
}
|
|
28346
|
-
var Json2 = /* @__PURE__ */
|
|
28365
|
+
var Json2 = /* @__PURE__ */ make29(/* @__PURE__ */ annotate2(Json, {
|
|
28347
28366
|
toCode: () => ({
|
|
28348
28367
|
runtime: "Schema.Json",
|
|
28349
28368
|
Type: "Schema.Json"
|
|
@@ -28356,7 +28375,7 @@ var JsonError = /* @__PURE__ */ Struct2({
|
|
|
28356
28375
|
stack: /* @__PURE__ */ optionalKey2(String6),
|
|
28357
28376
|
cause: /* @__PURE__ */ optionalKey2(Json2)
|
|
28358
28377
|
});
|
|
28359
|
-
var MutableJson2 = /* @__PURE__ */
|
|
28378
|
+
var MutableJson2 = /* @__PURE__ */ make29(/* @__PURE__ */ annotate2(MutableJson, {
|
|
28360
28379
|
toCode: () => ({
|
|
28361
28380
|
runtime: "Schema.MutableJson",
|
|
28362
28381
|
Type: "Schema.MutableJson"
|
|
@@ -28476,7 +28495,7 @@ __export(Stream_exports, {
|
|
|
28476
28495
|
iterate: () => iterate,
|
|
28477
28496
|
let: () => let_6,
|
|
28478
28497
|
limitBytes: () => limitBytes,
|
|
28479
|
-
make: () =>
|
|
28498
|
+
make: () => make39,
|
|
28480
28499
|
map: () => map14,
|
|
28481
28500
|
mapAccum: () => mapAccum3,
|
|
28482
28501
|
mapAccumArray: () => mapAccumArray,
|
|
@@ -28640,7 +28659,7 @@ var runIn = fiberRunIn;
|
|
|
28640
28659
|
|
|
28641
28660
|
// ../../node_modules/.bun/effect@4.1.4/node_modules/effect/dist/Latch.js
|
|
28642
28661
|
var makeUnsafe8 = makeLatchUnsafe;
|
|
28643
|
-
var
|
|
28662
|
+
var make30 = makeLatch;
|
|
28644
28663
|
|
|
28645
28664
|
// ../../node_modules/.bun/effect@4.1.4/node_modules/effect/dist/MutableRef.js
|
|
28646
28665
|
var TypeId39 = "~effect/MutableRef";
|
|
@@ -28654,7 +28673,7 @@ var MutableRefProto = {
|
|
|
28654
28673
|
};
|
|
28655
28674
|
}
|
|
28656
28675
|
};
|
|
28657
|
-
var
|
|
28676
|
+
var make31 = (value6) => {
|
|
28658
28677
|
const ref = Object.create(MutableRefProto);
|
|
28659
28678
|
ref.current = value6;
|
|
28660
28679
|
return ref;
|
|
@@ -28667,7 +28686,7 @@ var set7 = /* @__PURE__ */ dual(2, (self, value6) => {
|
|
|
28667
28686
|
|
|
28668
28687
|
// ../../node_modules/.bun/effect@4.1.4/node_modules/effect/dist/MutableList.js
|
|
28669
28688
|
var Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
|
|
28670
|
-
var
|
|
28689
|
+
var make32 = () => ({
|
|
28671
28690
|
head: void 0,
|
|
28672
28691
|
tail: void 0,
|
|
28673
28692
|
length: 0
|
|
@@ -28850,20 +28869,20 @@ var remove9 = (self, value6) => filter8(self, (v) => v !== value6);
|
|
|
28850
28869
|
// ../../node_modules/.bun/effect@4.1.4/node_modules/effect/dist/PubSub.js
|
|
28851
28870
|
var TypeId40 = "~effect/PubSub";
|
|
28852
28871
|
var SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
28853
|
-
var
|
|
28854
|
-
var bounded = (capacity) =>
|
|
28872
|
+
var make33 = (options) => sync4(() => makePubSubUnsafe(options.atomicPubSub(), /* @__PURE__ */ new Map(), makeUnsafe3(), makeUnsafe8(false), make31(false), options.strategy(), make31(none2())));
|
|
28873
|
+
var bounded = (capacity) => make33({
|
|
28855
28874
|
atomicPubSub: () => makeAtomicBounded(capacity),
|
|
28856
28875
|
strategy: () => new BackPressureStrategy()
|
|
28857
28876
|
});
|
|
28858
|
-
var dropping = (capacity) =>
|
|
28877
|
+
var dropping = (capacity) => make33({
|
|
28859
28878
|
atomicPubSub: () => makeAtomicBounded(capacity),
|
|
28860
28879
|
strategy: () => new DroppingStrategy()
|
|
28861
28880
|
});
|
|
28862
|
-
var sliding = (capacity) =>
|
|
28881
|
+
var sliding = (capacity) => make33({
|
|
28863
28882
|
atomicPubSub: () => makeAtomicBounded(capacity),
|
|
28864
28883
|
strategy: () => new SlidingStrategy()
|
|
28865
28884
|
});
|
|
28866
|
-
var unbounded = (options) =>
|
|
28885
|
+
var unbounded = (options) => make33({
|
|
28867
28886
|
atomicPubSub: () => makeAtomicUnbounded(options),
|
|
28868
28887
|
strategy: () => new DroppingStrategy()
|
|
28869
28888
|
});
|
|
@@ -29033,7 +29052,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
|
|
|
29033
29052
|
subscribers.delete(subscription);
|
|
29034
29053
|
}
|
|
29035
29054
|
};
|
|
29036
|
-
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(),
|
|
29055
|
+
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make32(), makeUnsafe8(false), make31(false), strategy, pubsub.replayWindow(), ended);
|
|
29037
29056
|
var BoundedPubSubArb = class {
|
|
29038
29057
|
array;
|
|
29039
29058
|
replayIndices;
|
|
@@ -29726,7 +29745,7 @@ var ensureCapacity = (capacity) => {
|
|
|
29726
29745
|
}
|
|
29727
29746
|
};
|
|
29728
29747
|
var BackPressureStrategy = class {
|
|
29729
|
-
publishers = /* @__PURE__ */
|
|
29748
|
+
publishers = /* @__PURE__ */ make32();
|
|
29730
29749
|
get shutdown() {
|
|
29731
29750
|
return withFiber2((fiber3) => forEach2(takeAll(this.publishers), ([_, deferred, last]) => last ? interruptWith(deferred, fiber3.id) : void_5, {
|
|
29732
29751
|
concurrency: "unbounded",
|
|
@@ -30019,7 +30038,7 @@ __export(Queue_exports, {
|
|
|
30019
30038
|
isFull: () => isFull,
|
|
30020
30039
|
isFullUnsafe: () => isFullUnsafe,
|
|
30021
30040
|
isQueue: () => isQueue,
|
|
30022
|
-
make: () =>
|
|
30041
|
+
make: () => make34,
|
|
30023
30042
|
offer: () => offer,
|
|
30024
30043
|
offerAll: () => offerAll,
|
|
30025
30044
|
offerAllUnsafe: () => offerAllUnsafe,
|
|
@@ -30063,12 +30082,12 @@ var QueueProto = {
|
|
|
30063
30082
|
};
|
|
30064
30083
|
}
|
|
30065
30084
|
};
|
|
30066
|
-
var
|
|
30085
|
+
var make34 = (options) => withFiber((fiber3) => {
|
|
30067
30086
|
const self = Object.create(QueueProto);
|
|
30068
30087
|
self.dispatcher = fiber3.currentDispatcher;
|
|
30069
30088
|
self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
|
|
30070
30089
|
self.strategy = options?.strategy ?? "suspend";
|
|
30071
|
-
self.messages =
|
|
30090
|
+
self.messages = make32();
|
|
30072
30091
|
self.scheduleRunning = false;
|
|
30073
30092
|
self.state = {
|
|
30074
30093
|
_tag: "Open",
|
|
@@ -30078,18 +30097,18 @@ var make33 = (options) => withFiber((fiber3) => {
|
|
|
30078
30097
|
};
|
|
30079
30098
|
return succeed3(self);
|
|
30080
30099
|
});
|
|
30081
|
-
var bounded2 = (capacity) =>
|
|
30100
|
+
var bounded2 = (capacity) => make34({
|
|
30082
30101
|
capacity
|
|
30083
30102
|
});
|
|
30084
|
-
var sliding2 = (capacity) =>
|
|
30103
|
+
var sliding2 = (capacity) => make34({
|
|
30085
30104
|
capacity,
|
|
30086
30105
|
strategy: "sliding"
|
|
30087
30106
|
});
|
|
30088
|
-
var dropping2 = (capacity) =>
|
|
30107
|
+
var dropping2 = (capacity) => make34({
|
|
30089
30108
|
capacity,
|
|
30090
30109
|
strategy: "dropping"
|
|
30091
30110
|
});
|
|
30092
|
-
var unbounded2 = () =>
|
|
30111
|
+
var unbounded2 = () => make34();
|
|
30093
30112
|
var offer = /* @__PURE__ */ dual(2, (self, message) => suspend(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
|
|
30094
30113
|
var offerUnsafe = (self, message) => {
|
|
30095
30114
|
if (self.state._tag !== "Open") {
|
|
@@ -30438,7 +30457,7 @@ var finalize = (self, exit3) => {
|
|
|
30438
30457
|
// ../../node_modules/.bun/effect@4.1.4/node_modules/effect/dist/Semaphore.js
|
|
30439
30458
|
var Semaphore_exports = {};
|
|
30440
30459
|
__export(Semaphore_exports, {
|
|
30441
|
-
make: () =>
|
|
30460
|
+
make: () => make35,
|
|
30442
30461
|
makeUnsafe: () => makeUnsafe9,
|
|
30443
30462
|
release: () => release,
|
|
30444
30463
|
releaseAll: () => releaseAll,
|
|
@@ -30570,7 +30589,7 @@ var SemaphoreImpl = class {
|
|
|
30570
30589
|
});
|
|
30571
30590
|
}
|
|
30572
30591
|
};
|
|
30573
|
-
var
|
|
30592
|
+
var make35 = (permits) => sync(() => new SemaphoreImpl(permits));
|
|
30574
30593
|
var resize = /* @__PURE__ */ dual(2, (self, permits) => self.resize(permits));
|
|
30575
30594
|
var withPermits = (self, permits, effect2) => {
|
|
30576
30595
|
const withPermits2 = self.withPermits(permits);
|
|
@@ -30623,7 +30642,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced2(function* (upstream,
|
|
|
30623
30642
|
}));
|
|
30624
30643
|
var toTransform = (channel) => channel.transform;
|
|
30625
30644
|
var DefaultChunkSize = 4096;
|
|
30626
|
-
var asyncQueue = (scope3, f, options) =>
|
|
30645
|
+
var asyncQueue = (scope3, f, options) => make34({
|
|
30627
30646
|
capacity: options?.bufferSize,
|
|
30628
30647
|
strategy: options?.strategy
|
|
30629
30648
|
}).pipe(tap6((queue) => addFinalizer2(scope3, shutdown2(queue))), tap6((queue) => provide(f(queue), scope3).pipe(catchCause3((cause) => failCause5(queue, cause)), forkIn2(scope3, {
|
|
@@ -30631,14 +30650,14 @@ var asyncQueue = (scope3, f, options) => make33({
|
|
|
30631
30650
|
}))));
|
|
30632
30651
|
var callbackArray = (f, options) => fromTransform((_, scope3) => map9(asyncQueue(scope3, f, options), takeAll3));
|
|
30633
30652
|
var suspend5 = (evaluate2) => fromTransform((upstream, scope3) => suspend3(() => toTransform(evaluate2())(upstream, scope3)));
|
|
30634
|
-
var acquireUseRelease3 = (acquire,
|
|
30653
|
+
var acquireUseRelease3 = (acquire, use2, release4) => fromTransformBracket(fnUntraced2(function* (upstream, scope3, forkedScope) {
|
|
30635
30654
|
let option6 = none2();
|
|
30636
30655
|
yield* addFinalizerExit(forkedScope, (exit3) => isSome2(option6) ? release4(option6.value, exit3) : void_5);
|
|
30637
30656
|
const value6 = yield* uninterruptible2(map9(acquire, (value7) => {
|
|
30638
30657
|
option6 = some3(value7);
|
|
30639
30658
|
return value7;
|
|
30640
30659
|
}));
|
|
30641
|
-
return yield* toTransform(
|
|
30660
|
+
return yield* toTransform(use2(value6))(upstream, scope3);
|
|
30642
30661
|
}));
|
|
30643
30662
|
var fromIterator = (iterator) => fromPull(sync4(() => {
|
|
30644
30663
|
const iter = iterator();
|
|
@@ -30706,7 +30725,7 @@ var fromReadableStream = (options) => fromTransform((_, scope3) => readableStrea
|
|
|
30706
30725
|
}));
|
|
30707
30726
|
var readableStreamToPullUnsafe = (options) => {
|
|
30708
30727
|
const reader = options.readable.getReader();
|
|
30709
|
-
const exit3 = options.exit ??
|
|
30728
|
+
const exit3 = options.exit ?? make31(void 0);
|
|
30710
30729
|
const pull = suspend3(() => {
|
|
30711
30730
|
if (exit3.current) return exit3.current;
|
|
30712
30731
|
return matchCauseEffect2(tryPromise2({
|
|
@@ -31118,7 +31137,7 @@ var mergeAll3 = /* @__PURE__ */ dual(2, (channels, {
|
|
|
31118
31137
|
}) => fromTransformBracket(fnUntraced2(function* (upstream, scope3, forkedScope) {
|
|
31119
31138
|
const concurrencyN = concurrency === "unbounded" ? Number.MAX_SAFE_INTEGER : Math.max(1, concurrency);
|
|
31120
31139
|
const semaphore = switch_ ? void 0 : makeUnsafe9(concurrencyN);
|
|
31121
|
-
const doneLatch = yield*
|
|
31140
|
+
const doneLatch = yield* make30(true);
|
|
31122
31141
|
const fibers = /* @__PURE__ */ new Map();
|
|
31123
31142
|
const queue = yield* bounded2(bufferSize);
|
|
31124
31143
|
yield* addFinalizer2(forkedScope, shutdown2(queue));
|
|
@@ -31306,7 +31325,7 @@ var unwrap3 = (channel) => fromTransform((upstream, scope3) => {
|
|
|
31306
31325
|
var scoped3 = (self) => fromTransformBracket((upstream, scope3, forkedScope) => map9(provide(toTransform(self)(upstream, scope3), forkedScope), provide(forkedScope)));
|
|
31307
31326
|
var buffer = /* @__PURE__ */ dual(2, (self, options) => fromTransform(fnUntraced2(function* (upstream, scope3) {
|
|
31308
31327
|
const pull = yield* toTransform(self)(upstream, scope3);
|
|
31309
|
-
const queue = yield*
|
|
31328
|
+
const queue = yield* make34({
|
|
31310
31329
|
capacity: options.capacity === "unbounded" ? void 0 : options.capacity,
|
|
31311
31330
|
strategy: options.capacity === "unbounded" ? void 0 : options.strategy
|
|
31312
31331
|
});
|
|
@@ -31318,7 +31337,7 @@ var buffer = /* @__PURE__ */ dual(2, (self, options) => fromTransform(fnUntraced
|
|
|
31318
31337
|
})));
|
|
31319
31338
|
var bufferArray = /* @__PURE__ */ dual(2, (self, options) => fromTransform(fnUntraced2(function* (upstream, scope3) {
|
|
31320
31339
|
const pull = yield* toTransform(self)(upstream, scope3);
|
|
31321
|
-
const queue = yield*
|
|
31340
|
+
const queue = yield* make34({
|
|
31322
31341
|
capacity: options.capacity === "unbounded" ? void 0 : options.capacity,
|
|
31323
31342
|
strategy: options.capacity === "unbounded" ? void 0 : options.strategy
|
|
31324
31343
|
});
|
|
@@ -31475,7 +31494,7 @@ var runIntoQueueArray = /* @__PURE__ */ dual((args2) => isChannel(args2[0]), (se
|
|
|
31475
31494
|
}))));
|
|
31476
31495
|
var toQueueArray = /* @__PURE__ */ dual((args2) => isChannel(args2[0]), /* @__PURE__ */ fnUntraced2(function* (self, options) {
|
|
31477
31496
|
const scope3 = yield* scope2;
|
|
31478
|
-
const queue = yield*
|
|
31497
|
+
const queue = yield* make34({
|
|
31479
31498
|
capacity: typeof options.capacity === "number" ? options.capacity : void 0,
|
|
31480
31499
|
strategy: typeof options.capacity === "number" ? options.strategy : void 0
|
|
31481
31500
|
});
|
|
@@ -31533,7 +31552,7 @@ var makeUnsafe10 = (options) => ({
|
|
|
31533
31552
|
return pipeArguments(this, arguments);
|
|
31534
31553
|
}
|
|
31535
31554
|
});
|
|
31536
|
-
var
|
|
31555
|
+
var make36 = (options) => withFiber2((fiber3) => {
|
|
31537
31556
|
const context3 = fiber3.context;
|
|
31538
31557
|
const scope3 = get(context3, Scope);
|
|
31539
31558
|
const self = makeUnsafe10({
|
|
@@ -31684,7 +31703,7 @@ var RcRefImpl = class {
|
|
|
31684
31703
|
this.idleTimeToLive = idleTimeToLive;
|
|
31685
31704
|
}
|
|
31686
31705
|
};
|
|
31687
|
-
var
|
|
31706
|
+
var make37 = (options) => withFiber2((fiber3) => {
|
|
31688
31707
|
const context3 = fiber3.context;
|
|
31689
31708
|
const scope3 = get(context3, Scope);
|
|
31690
31709
|
const ref = new RcRefImpl(options.acquire, context3, scope3, options.idleTimeToLive !== void 0 ? fromInputUnsafe(options.idleTimeToLive) : void 0);
|
|
@@ -31789,7 +31808,7 @@ var release3 = (self, state) => {
|
|
|
31789
31808
|
};
|
|
31790
31809
|
|
|
31791
31810
|
// ../../node_modules/.bun/effect@4.1.4/node_modules/effect/dist/RcRef.js
|
|
31792
|
-
var
|
|
31811
|
+
var make38 = make37;
|
|
31793
31812
|
var get9 = get8;
|
|
31794
31813
|
|
|
31795
31814
|
// ../../node_modules/.bun/effect@4.1.4/node_modules/effect/dist/Sink.js
|
|
@@ -31892,7 +31911,7 @@ var toChannel2 = (stream) => stream.channel;
|
|
|
31892
31911
|
var callback3 = (f, options) => fromChannel2(callbackArray(f, options));
|
|
31893
31912
|
var empty14 = /* @__PURE__ */ fromChannel2(empty13);
|
|
31894
31913
|
var succeed11 = (value6) => fromChannel2(succeed10(of(value6)));
|
|
31895
|
-
var
|
|
31914
|
+
var make39 = (...values2) => fromArray2(values2);
|
|
31896
31915
|
var sync6 = (evaluate2) => fromChannel2(sync5(() => of(evaluate2())));
|
|
31897
31916
|
var suspend6 = (stream) => {
|
|
31898
31917
|
const suspended = fromChannel2(suspend5(() => stream().channel));
|
|
@@ -32287,10 +32306,10 @@ var partitionQueue = /* @__PURE__ */ dual((args2) => isStream(args2[0]), /* @__P
|
|
|
32287
32306
|
const scope3 = yield* scope2;
|
|
32288
32307
|
const pull = yield* toPullScoped(self.channel, scope3);
|
|
32289
32308
|
const capacity = options?.capacity === "unbounded" ? void 0 : options?.capacity ?? DefaultChunkSize2;
|
|
32290
|
-
const passes = yield*
|
|
32309
|
+
const passes = yield* make34({
|
|
32291
32310
|
capacity
|
|
32292
32311
|
});
|
|
32293
|
-
const fails = yield*
|
|
32312
|
+
const fails = yield* make34({
|
|
32294
32313
|
capacity
|
|
32295
32314
|
});
|
|
32296
32315
|
yield* gen4(function* () {
|
|
@@ -32490,7 +32509,7 @@ var limitBytes = /* @__PURE__ */ dual(3, (self, bytes2, onLimitReached) => suspe
|
|
|
32490
32509
|
var takeRight = /* @__PURE__ */ dual(2, (self, n) => {
|
|
32491
32510
|
const count = normalize(n);
|
|
32492
32511
|
if (count === 0) return empty14;
|
|
32493
|
-
return mapAccumArray(self,
|
|
32512
|
+
return mapAccumArray(self, make32, (list, arr) => {
|
|
32494
32513
|
appendAllUnsafe(list, arr);
|
|
32495
32514
|
if (list.length > count) {
|
|
32496
32515
|
takeNVoid(list, list.length - count);
|
|
@@ -32624,7 +32643,7 @@ var dropRight = /* @__PURE__ */ dual(2, (self, n) => {
|
|
|
32624
32643
|
const count = normalize(n);
|
|
32625
32644
|
if (count === 0) return self;
|
|
32626
32645
|
return transformPull2(self, (pull, _scope) => sync4(() => {
|
|
32627
|
-
const list =
|
|
32646
|
+
const list = make32();
|
|
32628
32647
|
const emit = flatMap5(pull, (arr) => {
|
|
32629
32648
|
appendAllUnsafe(list, arr);
|
|
32630
32649
|
const toTake = list.length - count;
|
|
@@ -32684,7 +32703,7 @@ var slidingSize = /* @__PURE__ */ dual(3, (self, chunkSize, stepSize) => {
|
|
|
32684
32703
|
const step = normalizeNonEmpty(stepSize);
|
|
32685
32704
|
return transformPull2(self, (upstream, _scope) => sync4(() => {
|
|
32686
32705
|
let cause = null;
|
|
32687
|
-
const list =
|
|
32706
|
+
const list = make32();
|
|
32688
32707
|
let emitted = false;
|
|
32689
32708
|
let skip = 0;
|
|
32690
32709
|
const pull = matchCauseEffect2(upstream, {
|
|
@@ -32944,8 +32963,8 @@ var groupByImpl = (self, f, options) => transformPullBracket(self, fnUntraced2(f
|
|
|
32944
32963
|
const out = yield* unbounded2();
|
|
32945
32964
|
yield* addFinalizer2(scope3, shutdown2(out));
|
|
32946
32965
|
const queueMap = empty6();
|
|
32947
|
-
const queues = yield*
|
|
32948
|
-
lookup: (key5) => acquireRelease2(
|
|
32966
|
+
const queues = yield* make36({
|
|
32967
|
+
lookup: (key5) => acquireRelease2(make34({
|
|
32949
32968
|
capacity: options?.bufferSize ?? 4096
|
|
32950
32969
|
}).pipe(tap6((queue) => {
|
|
32951
32970
|
set2(queueMap, key5, queue);
|
|
@@ -33029,7 +33048,7 @@ var aggregateWithin = /* @__PURE__ */ dual(3, (self, sink, schedule4) => fromCha
|
|
|
33029
33048
|
const pull = yield* toPullScoped(self.channel, _);
|
|
33030
33049
|
const pullLatch = makeUnsafe8(false);
|
|
33031
33050
|
const scheduleStep = /* @__PURE__ */ Symbol();
|
|
33032
|
-
const buffer3 = yield*
|
|
33051
|
+
const buffer3 = yield* make34({
|
|
33033
33052
|
capacity: 0
|
|
33034
33053
|
});
|
|
33035
33054
|
yield* pull.pipe(
|
|
@@ -33109,7 +33128,7 @@ var broadcastN = /* @__PURE__ */ dual(2, /* @__PURE__ */ fnUntraced2(function* (
|
|
|
33109
33128
|
}));
|
|
33110
33129
|
var makePubSub2 = (options) => acquireRelease2(options.capacity === "unbounded" ? unbounded(options) : options.strategy === "dropping" ? dropping(options) : options.strategy === "sliding" ? sliding(options) : bounded(options), shutdown);
|
|
33111
33130
|
var broadcast = /* @__PURE__ */ dual(2, (self, options) => map9(toPubSubTake2(self, options), fromPubSubTake2));
|
|
33112
|
-
var share = /* @__PURE__ */ dual(2, (self, options) => map9(
|
|
33131
|
+
var share = /* @__PURE__ */ dual(2, (self, options) => map9(make38({
|
|
33113
33132
|
acquire: broadcast(self, options),
|
|
33114
33133
|
idleTimeToLive: options.idleTimeToLive
|
|
33115
33134
|
}), (ref) => unwrap4(get9(ref))));
|
|
@@ -33797,7 +33816,7 @@ __export(Ref_exports, {
|
|
|
33797
33816
|
getAndUpdate: () => getAndUpdate,
|
|
33798
33817
|
getAndUpdateSome: () => getAndUpdateSome,
|
|
33799
33818
|
getUnsafe: () => getUnsafe4,
|
|
33800
|
-
make: () =>
|
|
33819
|
+
make: () => make40,
|
|
33801
33820
|
makeUnsafe: () => makeUnsafe11,
|
|
33802
33821
|
modify: () => modify4,
|
|
33803
33822
|
modifySome: () => modifySome,
|
|
@@ -33823,10 +33842,10 @@ var RefProto = {
|
|
|
33823
33842
|
};
|
|
33824
33843
|
var makeUnsafe11 = (value6) => {
|
|
33825
33844
|
const self = Object.create(RefProto);
|
|
33826
|
-
self.ref =
|
|
33845
|
+
self.ref = make31(value6);
|
|
33827
33846
|
return self;
|
|
33828
33847
|
};
|
|
33829
|
-
var
|
|
33848
|
+
var make40 = (value6) => sync4(() => makeUnsafe11(value6));
|
|
33830
33849
|
var get10 = (self) => sync4(() => self.ref.current);
|
|
33831
33850
|
var set8 = /* @__PURE__ */ dual(2, (self, value6) => sync4(() => set7(self.ref, value6)));
|
|
33832
33851
|
var getAndSet = /* @__PURE__ */ dual(2, (self, value6) => sync4(() => {
|
|
@@ -33975,7 +33994,7 @@ function makeProvider(load, mapInput4) {
|
|
|
33975
33994
|
function makeSource(get12, transform4) {
|
|
33976
33995
|
return makeProvider((path) => get12(transform4(path)), (f) => makeSource(get12, (path) => f(transform4(path))));
|
|
33977
33996
|
}
|
|
33978
|
-
function
|
|
33997
|
+
function make41(get12) {
|
|
33979
33998
|
return makeSource(get12, identityPath);
|
|
33980
33999
|
}
|
|
33981
34000
|
function emptyStringAsMissing(value6, preserveEmptyStrings) {
|
|
@@ -33984,7 +34003,7 @@ function emptyStringAsMissing(value6, preserveEmptyStrings) {
|
|
|
33984
34003
|
function fromEnvRecord(env, options) {
|
|
33985
34004
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
33986
34005
|
const trie = buildEnvTrie(env);
|
|
33987
|
-
return
|
|
34006
|
+
return make41((path) => succeed7(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
33988
34007
|
}
|
|
33989
34008
|
function fromEnv(options) {
|
|
33990
34009
|
const env = options?.env ?? {
|
|
@@ -34063,7 +34082,7 @@ var Proto9 = {
|
|
|
34063
34082
|
};
|
|
34064
34083
|
}
|
|
34065
34084
|
};
|
|
34066
|
-
function
|
|
34085
|
+
function make42(evaluator) {
|
|
34067
34086
|
const self = Object.create(Proto9);
|
|
34068
34087
|
self.evaluator = evaluator;
|
|
34069
34088
|
self.parse = (provider) => flatMapEager2(evaluator(provider, []), fromResult2);
|
|
@@ -34071,10 +34090,10 @@ function make41(evaluator) {
|
|
|
34071
34090
|
}
|
|
34072
34091
|
var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
|
|
34073
34092
|
var map15 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
34074
|
-
return
|
|
34093
|
+
return make42((provider, pathPrefix) => map9(evaluateAt(self, provider, pathPrefix), map2(f)));
|
|
34075
34094
|
});
|
|
34076
34095
|
var orElse5 = /* @__PURE__ */ dual(2, (self, that) => {
|
|
34077
|
-
return
|
|
34096
|
+
return make42((provider, pathPrefix) => matchCauseEffect2(evaluateAt(self, provider, pathPrefix), {
|
|
34078
34097
|
// Only plain failures reach the fallback; defects and interruptions propagate unchanged.
|
|
34079
34098
|
onFailure: (cause) => {
|
|
34080
34099
|
const error = findErrorOption3(cause);
|
|
@@ -34085,10 +34104,10 @@ var orElse5 = /* @__PURE__ */ dual(2, (self, that) => {
|
|
|
34085
34104
|
});
|
|
34086
34105
|
function all5(arg) {
|
|
34087
34106
|
const configs = globalThis.Array.isArray(arg) ? arg : Symbol.iterator in arg ? [...arg] : arg;
|
|
34088
|
-
return
|
|
34107
|
+
return make42((provider, pathPrefix) => globalThis.Array.isArray(configs) ? mapEager2(all4(configs.map((config) => evaluateAt(config, provider, pathPrefix))), all2) : mapEager2(all4(map3(configs, (config) => evaluateAt(config, provider, pathPrefix))), all2));
|
|
34089
34108
|
}
|
|
34090
34109
|
var withDefault3 = /* @__PURE__ */ dual(2, (self, defaultValue) => {
|
|
34091
|
-
return
|
|
34110
|
+
return make42((provider, pathPrefix) => mapEager2(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure2(resolution) ? succeed2(defaultValue) : resolution));
|
|
34092
34111
|
});
|
|
34093
34112
|
var option5 = (self) => self.pipe(map15(some3), withDefault3(none2()));
|
|
34094
34113
|
var isSourceError = (u) => isTagged(u, "SourceError");
|
|
@@ -34204,9 +34223,9 @@ var toConfigCursorAST = /* @__PURE__ */ memoize((root) => {
|
|
|
34204
34223
|
function schema(codec, path) {
|
|
34205
34224
|
const codecStringTree = toCodecStringTree2(codec);
|
|
34206
34225
|
const encodedAst = toEncoded(codecStringTree.ast);
|
|
34207
|
-
const decodeCursor = decodeUnknownEffect(
|
|
34226
|
+
const decodeCursor = decodeUnknownEffect(make29(toConfigCursorAST(codecStringTree.ast)));
|
|
34208
34227
|
const localPath = typeof path === "string" ? [path] : path ?? [];
|
|
34209
|
-
return
|
|
34228
|
+
return make42((provider, pathPrefix) => {
|
|
34210
34229
|
const fullPath = [...pathPrefix, ...localPath];
|
|
34211
34230
|
return loadCursor(provider, fullPath).pipe(flatMapEager2((cursor) => decodeCursor(cursor).pipe(mapEager2(succeed2), catchEager2((issue) => {
|
|
34212
34231
|
const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
|
|
@@ -34268,7 +34287,7 @@ __export(FiberSet_exports, {
|
|
|
34268
34287
|
clear: () => clear4,
|
|
34269
34288
|
isFiberSet: () => isFiberSet,
|
|
34270
34289
|
join: () => join2,
|
|
34271
|
-
make: () =>
|
|
34290
|
+
make: () => make43,
|
|
34272
34291
|
makeRuntime: () => makeRuntime,
|
|
34273
34292
|
makeRuntimePromise: () => makeRuntimePromise,
|
|
34274
34293
|
run: () => run5,
|
|
@@ -34303,7 +34322,7 @@ var makeUnsafe12 = (backing, deferred) => {
|
|
|
34303
34322
|
self.deferred = deferred;
|
|
34304
34323
|
return self;
|
|
34305
34324
|
};
|
|
34306
|
-
var
|
|
34325
|
+
var make43 = () => acquireRelease2(sync4(() => makeUnsafe12(/* @__PURE__ */ new Set(), makeUnsafe2())), (set10) => suspend3(() => {
|
|
34307
34326
|
const state = set10.state;
|
|
34308
34327
|
if (state._tag === "Closed") return void_5;
|
|
34309
34328
|
set10.state = {
|
|
@@ -34312,8 +34331,8 @@ var make42 = () => acquireRelease2(sync4(() => makeUnsafe12(/* @__PURE__ */ new
|
|
|
34312
34331
|
const fibers = state.backing;
|
|
34313
34332
|
return interruptAll(fibers).pipe(into(set10.deferred));
|
|
34314
34333
|
}));
|
|
34315
|
-
var makeRuntime = () => flatMap5(
|
|
34316
|
-
var makeRuntimePromise = () => flatMap5(
|
|
34334
|
+
var makeRuntime = () => flatMap5(make43(), (self) => runtime(self)());
|
|
34335
|
+
var makeRuntimePromise = () => flatMap5(make43(), (self) => runtimePromise(self)());
|
|
34317
34336
|
var internalFiberId = -1;
|
|
34318
34337
|
var isInternalInterruption = /* @__PURE__ */ toPredicate(/* @__PURE__ */ compose2(filterInterruptors, /* @__PURE__ */ has2(internalFiberId)));
|
|
34319
34338
|
var addUnsafe2 = /* @__PURE__ */ dual((args2) => isFiberSet(args2[0]), (self, fiber3, options) => {
|
|
@@ -34414,7 +34433,7 @@ __export(Logger_exports, {
|
|
|
34414
34433
|
formatStructured: () => formatStructured,
|
|
34415
34434
|
isLogger: () => isLogger,
|
|
34416
34435
|
layer: () => layer,
|
|
34417
|
-
make: () =>
|
|
34436
|
+
make: () => make44,
|
|
34418
34437
|
map: () => map16,
|
|
34419
34438
|
toFile: () => toFile,
|
|
34420
34439
|
tracerLogger: () => tracerLogger2,
|
|
@@ -34491,7 +34510,7 @@ var format11 = (quoteValue, space) => ({
|
|
|
34491
34510
|
}
|
|
34492
34511
|
return out;
|
|
34493
34512
|
};
|
|
34494
|
-
var
|
|
34513
|
+
var make44 = loggerMake;
|
|
34495
34514
|
var defaultLogger2 = defaultLogger;
|
|
34496
34515
|
var formatSimple = /* @__PURE__ */ loggerMake(/* @__PURE__ */ format11(escapeDoubleQuotes));
|
|
34497
34516
|
var formatLogFmt = /* @__PURE__ */ loggerMake(/* @__PURE__ */ format11(JSON.stringify, 0));
|
|
@@ -34573,14 +34592,14 @@ var toFile = /* @__PURE__ */ dual((args2) => isLogger(args2[0]), (self, path, op
|
|
|
34573
34592
|
var ManagedRuntime_exports = {};
|
|
34574
34593
|
__export(ManagedRuntime_exports, {
|
|
34575
34594
|
isManagedRuntime: () => isManagedRuntime,
|
|
34576
|
-
make: () =>
|
|
34595
|
+
make: () => make45
|
|
34577
34596
|
});
|
|
34578
34597
|
var TypeId54 = "~effect/ManagedRuntime";
|
|
34579
34598
|
var isManagedRuntime = (input) => hasProperty(input, TypeId54);
|
|
34580
34599
|
var DisposingRuntimes = /* @__PURE__ */ Reference("effect/ManagedRuntime/DisposingRuntimes", {
|
|
34581
34600
|
defaultValue: () => /* @__PURE__ */ new Set()
|
|
34582
34601
|
});
|
|
34583
|
-
var
|
|
34602
|
+
var make45 = (layer2, options) => {
|
|
34584
34603
|
const memoMap = options?.memoMap ?? makeMemoMapUnsafe();
|
|
34585
34604
|
const scope3 = makeUnsafe3("sequential");
|
|
34586
34605
|
const layerScope = forkUnsafe2(scope3, "sequential");
|
|
@@ -34865,6 +34884,7 @@ export {
|
|
|
34865
34884
|
addFinalizer2 as addFinalizer,
|
|
34866
34885
|
fork,
|
|
34867
34886
|
close,
|
|
34887
|
+
Scope_exports,
|
|
34868
34888
|
makeMemoMapUnsafe,
|
|
34869
34889
|
CurrentMemoMap,
|
|
34870
34890
|
buildWithMemoMap,
|
|
@@ -34990,7 +35010,7 @@ export {
|
|
|
34990
35010
|
getCurrent,
|
|
34991
35011
|
runIn,
|
|
34992
35012
|
Fiber_exports,
|
|
34993
|
-
|
|
35013
|
+
make34 as make2,
|
|
34994
35014
|
offerUnsafe,
|
|
34995
35015
|
failCauseUnsafe,
|
|
34996
35016
|
Queue_exports,
|
|
@@ -35104,7 +35124,7 @@ export {
|
|
|
35104
35124
|
encodeEffect2 as encodeEffect,
|
|
35105
35125
|
encodeExit2 as encodeExit,
|
|
35106
35126
|
encodeSync2 as encodeSync,
|
|
35107
|
-
|
|
35127
|
+
make29 as make3,
|
|
35108
35128
|
isSchema,
|
|
35109
35129
|
optionalKey2 as optionalKey,
|
|
35110
35130
|
optional2 as optional,
|
|
@@ -35156,7 +35176,7 @@ export {
|
|
|
35156
35176
|
toCodecJson2 as toCodecJson,
|
|
35157
35177
|
toCodecStringTree2 as toCodecStringTree,
|
|
35158
35178
|
Schema_exports,
|
|
35159
|
-
|
|
35179
|
+
make30 as make4,
|
|
35160
35180
|
fromTransform,
|
|
35161
35181
|
fromPull,
|
|
35162
35182
|
map13 as map5,
|
|
@@ -35221,13 +35241,13 @@ export {
|
|
|
35221
35241
|
Boolean5 as Boolean2,
|
|
35222
35242
|
URL3 as URL,
|
|
35223
35243
|
ignore5 as ignore2,
|
|
35224
|
-
|
|
35244
|
+
make43 as make5,
|
|
35225
35245
|
run5 as run2,
|
|
35226
35246
|
runtime,
|
|
35227
35247
|
awaitEmpty,
|
|
35228
35248
|
FiberSet_exports,
|
|
35229
35249
|
symbol5 as symbol3,
|
|
35230
|
-
|
|
35250
|
+
make44 as make6,
|
|
35231
35251
|
layer,
|
|
35232
35252
|
Logger_exports,
|
|
35233
35253
|
ManagedRuntime_exports,
|