@deslop/auth 0.1.1287 → 0.1.1291
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/client/assets/(home)-HEAEx3uj.js +1 -0
- package/dist/client/assets/components-Ct6yjLbn.js +1 -0
- package/dist/client/assets/dropdown-menu-CxK8bylw.js +1 -0
- package/dist/client/assets/effect-DfvaysSc.js +17 -0
- package/dist/client/assets/index-B0ra-Jbs.css +2 -0
- package/dist/client/assets/index-BfJrmHP2.js +2 -0
- package/dist/client/assets/people-97uWIIv4.js +1 -0
- package/dist/client/assets/reason-parts-DycsCGQg.js +1 -0
- package/dist/client/assets/route-CyMqR1_V.js +1 -0
- package/dist/client/assets/utils-BatAIFEP.js +2 -0
- package/dist/client/assets/utils-Dl62aFvH.js +1 -0
- package/dist/client/index.html +5 -4
- package/dist/server.js +656 -343
- package/package.json +2 -2
- package/dist/client/assets/(home)-6NwrLz5K.js +0 -1
- package/dist/client/assets/components-BXbYUD7C.js +0 -1
- package/dist/client/assets/effect-ByTkGkTS.js +0 -17
- package/dist/client/assets/index-CEBeXdrM.css +0 -2
- package/dist/client/assets/index-Dc0f55_m.js +0 -2
- package/dist/client/assets/people-CqY9_5CK.js +0 -1
- package/dist/client/assets/reason-parts-CZ9lROBA.js +0 -1
- package/dist/client/assets/route-LfaVoPPO.js +0 -1
- package/dist/client/assets/utils-ZppjrtBG.js +0 -2
package/dist/server.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env -S node --max-old-space-size=16384 --heapsnapshot-near-heap-limit=3 --report-on-fatalerror
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import * as OS from "node:os";
|
|
4
|
+
import { userInfo } from "node:os";
|
|
4
5
|
import * as NodeChildProcess from "node:child_process";
|
|
5
6
|
import { Duplex, PassThrough, Readable, Transform, finished, pipeline } from "node:stream";
|
|
6
7
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
@@ -15,7 +16,7 @@ import { createZstdDecompress } from "node:zlib";
|
|
|
15
16
|
import * as NodeUrl from "node:url";
|
|
16
17
|
import { fileURLToPath } from "node:url";
|
|
17
18
|
import * as readline from "node:readline";
|
|
18
|
-
import { cwd, execPath } from "node:process";
|
|
19
|
+
import { cwd, execPath, platform } from "node:process";
|
|
19
20
|
import { createServer } from "node:http";
|
|
20
21
|
// \0rolldown/runtime.js
|
|
21
22
|
var __create = Object.create;
|
|
@@ -2174,7 +2175,7 @@ const emptyContext$1 = {
|
|
|
2174
2175
|
* @category formatting
|
|
2175
2176
|
* @since 2.0.0
|
|
2176
2177
|
*/
|
|
2177
|
-
function format$
|
|
2178
|
+
function format$4(input, options) {
|
|
2178
2179
|
const space = options?.space ?? 0;
|
|
2179
2180
|
const ancestors = /* @__PURE__ */ new WeakSet();
|
|
2180
2181
|
const gap = !space ? "" : typeof space === "number" ? " ".repeat(space) : space;
|
|
@@ -2338,7 +2339,7 @@ function formatJson(input, options) {
|
|
|
2338
2339
|
return JSON.stringify(input, function(key, value) {
|
|
2339
2340
|
const original = Object.getOwnPropertyDescriptor(sources.get(this) ?? this, key)?.value;
|
|
2340
2341
|
const redacted = hasProperty(original, symbolRedactable) ? redact$2(original) : redact$2(value);
|
|
2341
|
-
if (typeof redacted === "bigint") return format$
|
|
2342
|
+
if (typeof redacted === "bigint") return format$4(redacted);
|
|
2342
2343
|
if (typeof redacted !== "object" || redacted === null) return redacted;
|
|
2343
2344
|
const current = redacted instanceof Error && !hasProperty(redacted, "toJSON") ? {
|
|
2344
2345
|
...redacted,
|
|
@@ -2483,7 +2484,7 @@ const toJson = (input) => {
|
|
|
2483
2484
|
const toStringUnknown = (u, whitespace = 2) => {
|
|
2484
2485
|
if (typeof u === "string") return u;
|
|
2485
2486
|
try {
|
|
2486
|
-
return typeof u === "object" ? formatJson(u, { space: whitespace }) : format$
|
|
2487
|
+
return typeof u === "object" ? formatJson(u, { space: whitespace }) : format$4(u, { space: whitespace });
|
|
2487
2488
|
} catch {
|
|
2488
2489
|
return String(u);
|
|
2489
2490
|
}
|
|
@@ -2533,7 +2534,7 @@ const BaseProto = {
|
|
|
2533
2534
|
return this.toJSON();
|
|
2534
2535
|
},
|
|
2535
2536
|
toString() {
|
|
2536
|
-
return format$
|
|
2537
|
+
return format$4(this.toJSON());
|
|
2537
2538
|
}
|
|
2538
2539
|
};
|
|
2539
2540
|
/**
|
|
@@ -2605,7 +2606,7 @@ var Class$2 = class {
|
|
|
2605
2606
|
* @since 2.0.0
|
|
2606
2607
|
*/
|
|
2607
2608
|
toString() {
|
|
2608
|
-
return format$
|
|
2609
|
+
return format$4(this.toJSON());
|
|
2609
2610
|
}
|
|
2610
2611
|
};
|
|
2611
2612
|
// ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/internal/stackTraceLimit.js
|
|
@@ -2773,7 +2774,7 @@ const PipeInspectableProto = {
|
|
|
2773
2774
|
return { ...this };
|
|
2774
2775
|
},
|
|
2775
2776
|
toString() {
|
|
2776
|
-
return format$
|
|
2777
|
+
return format$4(this.toJSON(), {
|
|
2777
2778
|
ignoreToString: true,
|
|
2778
2779
|
space: 2
|
|
2779
2780
|
});
|
|
@@ -2825,7 +2826,7 @@ var CauseImpl = class {
|
|
|
2825
2826
|
};
|
|
2826
2827
|
}
|
|
2827
2828
|
toString() {
|
|
2828
|
-
return `Cause(${format$
|
|
2829
|
+
return `Cause(${format$4(this.reasons)})`;
|
|
2829
2830
|
}
|
|
2830
2831
|
[NodeInspectSymbol]() {
|
|
2831
2832
|
return this.toJSON();
|
|
@@ -2869,7 +2870,7 @@ var ReasonBase = class {
|
|
|
2869
2870
|
return pipeArguments(this, arguments);
|
|
2870
2871
|
}
|
|
2871
2872
|
toString() {
|
|
2872
|
-
return format$
|
|
2873
|
+
return format$4(this);
|
|
2873
2874
|
}
|
|
2874
2875
|
[NodeInspectSymbol]() {
|
|
2875
2876
|
return this.toString();
|
|
@@ -2884,7 +2885,7 @@ var Fail = class extends ReasonBase {
|
|
|
2884
2885
|
this.error = error;
|
|
2885
2886
|
}
|
|
2886
2887
|
toString() {
|
|
2887
|
-
return `Fail(${format$
|
|
2888
|
+
return `Fail(${format$4(this.error)})`;
|
|
2888
2889
|
}
|
|
2889
2890
|
toJSON() {
|
|
2890
2891
|
return {
|
|
@@ -2944,7 +2945,7 @@ var Die = class extends ReasonBase {
|
|
|
2944
2945
|
this.defect = defect;
|
|
2945
2946
|
}
|
|
2946
2947
|
toString() {
|
|
2947
|
-
return `Die(${format$
|
|
2948
|
+
return `Die(${format$4(this.defect)})`;
|
|
2948
2949
|
}
|
|
2949
2950
|
toJSON() {
|
|
2950
2951
|
return {
|
|
@@ -3005,7 +3006,7 @@ const makeExit = (options) => {
|
|
|
3005
3006
|
},
|
|
3006
3007
|
...makePrimitiveProto(options),
|
|
3007
3008
|
toString() {
|
|
3008
|
-
return `${options.op}(${format$
|
|
3009
|
+
return `${options.op}(${format$4(this[args])})`;
|
|
3009
3010
|
},
|
|
3010
3011
|
toJSON() {
|
|
3011
3012
|
return {
|
|
@@ -3232,7 +3233,7 @@ const Prototype = (options) => makePrimitiveProto({
|
|
|
3232
3233
|
* @category constructors
|
|
3233
3234
|
* @since 2.0.0
|
|
3234
3235
|
*/
|
|
3235
|
-
const make$
|
|
3236
|
+
const make$89 = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
|
|
3236
3237
|
const isStrictEquivalent = (x, y) => x === y;
|
|
3237
3238
|
/**
|
|
3238
3239
|
* Creates an equivalence relation that uses strict equality (`===`) to compare values.
|
|
@@ -3342,7 +3343,7 @@ const strictEqual = () => isStrictEquivalent;
|
|
|
3342
3343
|
* @since 4.0.0
|
|
3343
3344
|
*/
|
|
3344
3345
|
function Tuple$1(elements) {
|
|
3345
|
-
return make$
|
|
3346
|
+
return make$89((self, that) => {
|
|
3346
3347
|
if (self.length !== that.length) return false;
|
|
3347
3348
|
for (let i = 0; i < self.length; i++) if (!elements[i](self[i], that[i])) return false;
|
|
3348
3349
|
return true;
|
|
@@ -3352,7 +3353,7 @@ function Tuple$1(elements) {
|
|
|
3352
3353
|
* @since 4.0.0
|
|
3353
3354
|
*/
|
|
3354
3355
|
function Array_(item) {
|
|
3355
|
-
return make$
|
|
3356
|
+
return make$89((self, that) => {
|
|
3356
3357
|
if (self.length !== that.length) return false;
|
|
3357
3358
|
for (let i = 0; i < self.length; i++) if (!item(self[i], that[i])) return false;
|
|
3358
3359
|
return true;
|
|
@@ -3362,9 +3363,9 @@ function Array_(item) {
|
|
|
3362
3363
|
/**
|
|
3363
3364
|
* @since 2.0.0
|
|
3364
3365
|
*/
|
|
3365
|
-
const TypeId$
|
|
3366
|
+
const TypeId$73 = "~effect/Option";
|
|
3366
3367
|
const CommonProto$1 = {
|
|
3367
|
-
[TypeId$
|
|
3368
|
+
[TypeId$73]: { _A: (_) => _ },
|
|
3368
3369
|
...PipeInspectableProto,
|
|
3369
3370
|
[Symbol.iterator]() {
|
|
3370
3371
|
return new SingleShotGen(this);
|
|
@@ -3380,7 +3381,7 @@ const SomeProto = /*#__PURE__*/ Object.defineProperty(/*#__PURE__*/ Object.assig
|
|
|
3380
3381
|
return combine$2(hash(this._tag))(hash(this.value));
|
|
3381
3382
|
},
|
|
3382
3383
|
toString() {
|
|
3383
|
-
return `some(${format$
|
|
3384
|
+
return `some(${format$4(this.value)})`;
|
|
3384
3385
|
},
|
|
3385
3386
|
toJSON() {
|
|
3386
3387
|
return {
|
|
@@ -3414,7 +3415,7 @@ const NoneProto = /*#__PURE__*/ Object.assign(/*#__PURE__*/ Object.create(Common
|
|
|
3414
3415
|
}
|
|
3415
3416
|
});
|
|
3416
3417
|
/** @internal */
|
|
3417
|
-
const isOption$1 = (input) => hasProperty(input, TypeId$
|
|
3418
|
+
const isOption$1 = (input) => hasProperty(input, TypeId$73);
|
|
3418
3419
|
/** @internal */
|
|
3419
3420
|
const isNone$1 = (fa) => fa._tag === "None";
|
|
3420
3421
|
/** @internal */
|
|
@@ -3429,9 +3430,9 @@ SomeImpl.prototype = SomeProto;
|
|
|
3429
3430
|
/** @internal */
|
|
3430
3431
|
const some$2 = (value) => new SomeImpl(value);
|
|
3431
3432
|
// ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/internal/result.js
|
|
3432
|
-
const TypeId$
|
|
3433
|
+
const TypeId$72 = "~effect/Result";
|
|
3433
3434
|
const CommonProto = {
|
|
3434
|
-
[TypeId$
|
|
3435
|
+
[TypeId$72]: {
|
|
3435
3436
|
/* v8 ignore next 2 */
|
|
3436
3437
|
_A: (_) => _,
|
|
3437
3438
|
_E: (_) => _
|
|
@@ -3451,7 +3452,7 @@ const SuccessProto = /*#__PURE__*/ Object.assign(/*#__PURE__*/ Object.create(Com
|
|
|
3451
3452
|
return combine$2(hash(this._tag))(hash(this.success));
|
|
3452
3453
|
},
|
|
3453
3454
|
toString() {
|
|
3454
|
-
return `success(${format$
|
|
3455
|
+
return `success(${format$4(this.success)})`;
|
|
3455
3456
|
},
|
|
3456
3457
|
toJSON() {
|
|
3457
3458
|
return {
|
|
@@ -3471,7 +3472,7 @@ const FailureProto = /*#__PURE__*/ Object.assign(/*#__PURE__*/ Object.create(Com
|
|
|
3471
3472
|
return combine$2(hash(this._tag))(hash(this.failure));
|
|
3472
3473
|
},
|
|
3473
3474
|
toString() {
|
|
3474
|
-
return `failure(${format$
|
|
3475
|
+
return `failure(${format$4(this.failure)})`;
|
|
3475
3476
|
},
|
|
3476
3477
|
toJSON() {
|
|
3477
3478
|
return {
|
|
@@ -3482,7 +3483,7 @@ const FailureProto = /*#__PURE__*/ Object.assign(/*#__PURE__*/ Object.create(Com
|
|
|
3482
3483
|
}
|
|
3483
3484
|
});
|
|
3484
3485
|
/** @internal */
|
|
3485
|
-
const isResult$1 = (input) => hasProperty(input, TypeId$
|
|
3486
|
+
const isResult$1 = (input) => hasProperty(input, TypeId$72);
|
|
3486
3487
|
/** @internal */
|
|
3487
3488
|
const isFailure$2 = (result) => result._tag === "Failure";
|
|
3488
3489
|
/** @internal */
|
|
@@ -3555,7 +3556,7 @@ const fromOption$3 = /*#__PURE__*/ dual(2, (self, onNone) => isNone$1(self) ? fa
|
|
|
3555
3556
|
* @category constructors
|
|
3556
3557
|
* @since 2.0.0
|
|
3557
3558
|
*/
|
|
3558
|
-
function make$
|
|
3559
|
+
function make$88(compare) {
|
|
3559
3560
|
return (self, that) => self === that ? 0 : compare(self, that);
|
|
3560
3561
|
}
|
|
3561
3562
|
/**
|
|
@@ -3586,7 +3587,7 @@ function make$86(compare) {
|
|
|
3586
3587
|
* @category instances
|
|
3587
3588
|
* @since 4.0.0
|
|
3588
3589
|
*/
|
|
3589
|
-
const String$10 = /*#__PURE__*/ make$
|
|
3590
|
+
const String$10 = /*#__PURE__*/ make$88((self, that) => self < that ? -1 : 1);
|
|
3590
3591
|
/**
|
|
3591
3592
|
* Order instance for numbers that compares them numerically.
|
|
3592
3593
|
*
|
|
@@ -3619,7 +3620,7 @@ const String$10 = /*#__PURE__*/ make$86((self, that) => self < that ? -1 : 1);
|
|
|
3619
3620
|
* @category instances
|
|
3620
3621
|
* @since 4.0.0
|
|
3621
3622
|
*/
|
|
3622
|
-
const Number$6 = /*#__PURE__*/ make$
|
|
3623
|
+
const Number$6 = /*#__PURE__*/ make$88((self, that) => {
|
|
3623
3624
|
if (globalThis.Number.isNaN(self) && globalThis.Number.isNaN(that)) return 0;
|
|
3624
3625
|
if (globalThis.Number.isNaN(self)) return -1;
|
|
3625
3626
|
if (globalThis.Number.isNaN(that)) return 1;
|
|
@@ -3656,7 +3657,7 @@ const Number$6 = /*#__PURE__*/ make$86((self, that) => {
|
|
|
3656
3657
|
* @since 4.0.0
|
|
3657
3658
|
*/
|
|
3658
3659
|
function flip$1(O) {
|
|
3659
|
-
return make$
|
|
3660
|
+
return make$88((self, that) => O(that, self));
|
|
3660
3661
|
}
|
|
3661
3662
|
/**
|
|
3662
3663
|
* Transforms an `Order` on type `A` into an `Order` on type `B` by providing a function that
|
|
@@ -3691,7 +3692,7 @@ function flip$1(O) {
|
|
|
3691
3692
|
* @category mapping
|
|
3692
3693
|
* @since 2.0.0
|
|
3693
3694
|
*/
|
|
3694
|
-
const mapInput = /*#__PURE__*/ dual(2, (self, f) => make$
|
|
3695
|
+
const mapInput = /*#__PURE__*/ dual(2, (self, f) => make$88((b1, b2) => self(f(b1), f(b2))));
|
|
3695
3696
|
/**
|
|
3696
3697
|
* Checks whether one value is strictly less than another according to the given order.
|
|
3697
3698
|
*
|
|
@@ -4621,7 +4622,7 @@ const ServiceProto = {
|
|
|
4621
4622
|
return self;
|
|
4622
4623
|
},
|
|
4623
4624
|
context(self) {
|
|
4624
|
-
return make$
|
|
4625
|
+
return make$87(this, self);
|
|
4625
4626
|
},
|
|
4626
4627
|
use(f) {
|
|
4627
4628
|
return withFiber$1((fiber) => f(get$14(fiber.context, this)));
|
|
@@ -4632,7 +4633,7 @@ const ServiceProto = {
|
|
|
4632
4633
|
};
|
|
4633
4634
|
const cacheKeys = /*#__PURE__*/ new Set();
|
|
4634
4635
|
const ReferenceTypeId = "~effect/Context/Reference";
|
|
4635
|
-
const TypeId$
|
|
4636
|
+
const TypeId$71 = "~effect/Context";
|
|
4636
4637
|
const FlattenAfterBaseHits = 8;
|
|
4637
4638
|
const makeImpl$1 = (cacheRoot, base, overlay, depth, maxDepth) => {
|
|
4638
4639
|
const self = Object.create(Proto$24);
|
|
@@ -4731,7 +4732,7 @@ const Proto$24 = {
|
|
|
4731
4732
|
return flatten$4(this);
|
|
4732
4733
|
},
|
|
4733
4734
|
...PipeInspectableProto,
|
|
4734
|
-
[TypeId$
|
|
4735
|
+
[TypeId$71]: { _Services: (_) => _ },
|
|
4735
4736
|
toJSON() {
|
|
4736
4737
|
return {
|
|
4737
4738
|
_id: "Context",
|
|
@@ -4787,7 +4788,7 @@ const hasSameCache = (self, that) => self.cacheRoot === that.cacheRoot;
|
|
|
4787
4788
|
* @category guards
|
|
4788
4789
|
* @since 2.0.0
|
|
4789
4790
|
*/
|
|
4790
|
-
const isContext = (u) => hasProperty(u, TypeId$
|
|
4791
|
+
const isContext = (u) => hasProperty(u, TypeId$71);
|
|
4791
4792
|
/**
|
|
4792
4793
|
* Checks whether the provided argument is a `Reference`.
|
|
4793
4794
|
*
|
|
@@ -4844,7 +4845,7 @@ const emptyContext = /*#__PURE__*/ makeUnsafe$10(/*#__PURE__*/ new Map());
|
|
|
4844
4845
|
* @category constructors
|
|
4845
4846
|
* @since 2.0.0
|
|
4846
4847
|
*/
|
|
4847
|
-
const make$
|
|
4848
|
+
const make$87 = (key, service) => makeUnsafe$10(/* @__PURE__ */ new Map([[key.key, service]]));
|
|
4848
4849
|
/**
|
|
4849
4850
|
* Adds a service to a given `Context`.
|
|
4850
4851
|
*
|
|
@@ -5231,7 +5232,7 @@ const omit$2 = (...keys) => (self) => withFlat(self, (map) => {
|
|
|
5231
5232
|
*/
|
|
5232
5233
|
const Reference = Service$1;
|
|
5233
5234
|
// ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/Duration.js
|
|
5234
|
-
const TypeId$
|
|
5235
|
+
const TypeId$70 = "~effect/Duration";
|
|
5235
5236
|
const bigint0$3 = /*#__PURE__*/ BigInt(0);
|
|
5236
5237
|
const bigint1$2 = /*#__PURE__*/ BigInt(1);
|
|
5237
5238
|
const bigint2 = /*#__PURE__*/ BigInt(2);
|
|
@@ -5247,7 +5248,7 @@ const bigintNanosPerDay = /*#__PURE__*/ BigInt(864e11);
|
|
|
5247
5248
|
const bigintNanosPerWeek = /*#__PURE__*/ BigInt(6048e11);
|
|
5248
5249
|
const roundTiesAwayFromZero = (input) => BigInt(Math.sign(input) * Math.round(Math.abs(input)));
|
|
5249
5250
|
const roundMillisToNanos = (millis) => Number.isInteger(millis) ? BigInt(millis) * bigint1e6 : roundTiesAwayFromZero(millis * 1e6);
|
|
5250
|
-
const fromNanosNumber = (nanos) => make$
|
|
5251
|
+
const fromNanosNumber = (nanos) => make$86(Number.isFinite(nanos) ? roundTiesAwayFromZero(nanos) : nanos);
|
|
5251
5252
|
const nanosToUnit = (nanos, divisor) => {
|
|
5252
5253
|
const value = Number(nanos);
|
|
5253
5254
|
if (Number.isFinite(value)) return value / divisor;
|
|
@@ -5270,9 +5271,9 @@ const divideTiesAwayFromZero = (numerator, denominator) => {
|
|
|
5270
5271
|
};
|
|
5271
5272
|
const fromMillisString = (input, scale) => {
|
|
5272
5273
|
const millis = Number(input) * scale;
|
|
5273
|
-
if (!Number.isFinite(millis)) return make$
|
|
5274
|
+
if (!Number.isFinite(millis)) return make$86(millis);
|
|
5274
5275
|
const nanos = parseNanos(input, BigInt(scale) * bigint1e6);
|
|
5275
|
-
return make$
|
|
5276
|
+
return make$86(Number.isInteger(millis) && BigInt(millis) * bigint1e6 === nanos ? millis : nanos);
|
|
5276
5277
|
};
|
|
5277
5278
|
const DURATION_REGEXP = /^(-?\d+(?:\.\d+)?)\s+(nanos?|micros?|millis?|seconds?|minutes?|hours?|days?|weeks?)$/;
|
|
5278
5279
|
/**
|
|
@@ -5332,14 +5333,14 @@ const fromInputUnsafe$1 = (input) => {
|
|
|
5332
5333
|
}
|
|
5333
5334
|
case "object": {
|
|
5334
5335
|
if (input === null) break;
|
|
5335
|
-
if (TypeId$
|
|
5336
|
+
if (TypeId$70 in input) return input;
|
|
5336
5337
|
if (Array.isArray(input)) {
|
|
5337
5338
|
if (input.length !== 2 || !input.every(isNumber$1)) return invalid$4(input);
|
|
5338
5339
|
if (Number.isNaN(input[0]) || Number.isNaN(input[1])) return zero$2;
|
|
5339
5340
|
if (input[0] === -Infinity || input[1] === -Infinity) return negativeInfinity;
|
|
5340
5341
|
if (input[0] === Infinity || input[1] === Infinity) return infinity;
|
|
5341
5342
|
const nanos = input[0] * 1e9 + input[1];
|
|
5342
|
-
return Number.isFinite(nanos) && Number.isInteger(input[0]) && Number.isInteger(input[1]) ? make$
|
|
5343
|
+
return Number.isFinite(nanos) && Number.isInteger(input[0]) && Number.isInteger(input[1]) ? make$86(BigInt(input[0]) * bigint1e9 + BigInt(input[1])) : fromNanosNumber(nanos);
|
|
5343
5344
|
}
|
|
5344
5345
|
const obj = input;
|
|
5345
5346
|
let millis = 0;
|
|
@@ -5350,13 +5351,13 @@ const fromInputUnsafe$1 = (input) => {
|
|
|
5350
5351
|
if (obj.seconds) millis += obj.seconds * 1e3;
|
|
5351
5352
|
if (obj.milliseconds) millis += obj.milliseconds;
|
|
5352
5353
|
if (!obj.microseconds && !obj.nanoseconds) {
|
|
5353
|
-
if (!Number.isFinite(millis)) return make$
|
|
5354
|
+
if (!Number.isFinite(millis)) return make$86(millis);
|
|
5354
5355
|
const exact = sumObjectNanos(obj);
|
|
5355
|
-
return exact === void 0 || BigInt(millis) * bigint1e6 === exact ? make$
|
|
5356
|
+
return exact === void 0 || BigInt(millis) * bigint1e6 === exact ? make$86(millis) : make$86(exact);
|
|
5356
5357
|
}
|
|
5357
5358
|
const nanos = millis * 1e6 + (obj.microseconds ?? 0) * 1e3 + (obj.nanoseconds ?? 0);
|
|
5358
5359
|
const exact = Number.isFinite(nanos) ? sumObjectNanos(obj) : void 0;
|
|
5359
|
-
return exact === void 0 ? fromNanosNumber(nanos) : make$
|
|
5360
|
+
return exact === void 0 ? fromNanosNumber(nanos) : make$86(exact);
|
|
5360
5361
|
}
|
|
5361
5362
|
}
|
|
5362
5363
|
return invalid$4(input);
|
|
@@ -5403,7 +5404,7 @@ const zeroDurationValue = {
|
|
|
5403
5404
|
const infinityDurationValue = { _tag: "Infinity" };
|
|
5404
5405
|
const negativeInfinityDurationValue = { _tag: "NegativeInfinity" };
|
|
5405
5406
|
const DurationProto = {
|
|
5406
|
-
[TypeId$
|
|
5407
|
+
[TypeId$70]: TypeId$70,
|
|
5407
5408
|
[symbol$3]() {
|
|
5408
5409
|
switch (this.value._tag) {
|
|
5409
5410
|
case "Millis": return hash(roundMillisToNanos(this.value.millis));
|
|
@@ -5451,7 +5452,7 @@ const DurationProto = {
|
|
|
5451
5452
|
return pipeArguments(this, arguments);
|
|
5452
5453
|
}
|
|
5453
5454
|
};
|
|
5454
|
-
const make$
|
|
5455
|
+
const make$86 = (input) => {
|
|
5455
5456
|
const duration = Object.create(DurationProto);
|
|
5456
5457
|
if (typeof input === "number") {
|
|
5457
5458
|
if (isNaN(input) || input === 0 || Object.is(input, -0)) duration.value = zeroDurationValue;
|
|
@@ -5487,7 +5488,7 @@ const make$84 = (input) => {
|
|
|
5487
5488
|
* @category guards
|
|
5488
5489
|
* @since 2.0.0
|
|
5489
5490
|
*/
|
|
5490
|
-
const isDuration = (u) => hasProperty(u, TypeId$
|
|
5491
|
+
const isDuration = (u) => hasProperty(u, TypeId$70);
|
|
5491
5492
|
/**
|
|
5492
5493
|
* Checks whether a Duration is finite (not infinite).
|
|
5493
5494
|
*
|
|
@@ -5574,8 +5575,8 @@ const abs = (self) => {
|
|
|
5574
5575
|
switch (self.value._tag) {
|
|
5575
5576
|
case "Infinity":
|
|
5576
5577
|
case "NegativeInfinity": return infinity;
|
|
5577
|
-
case "Millis": return self.value.millis < 0 ? make$
|
|
5578
|
-
case "Nanos": return self.value.nanos < bigint0$3 ? make$
|
|
5578
|
+
case "Millis": return self.value.millis < 0 ? make$86(-self.value.millis) : self;
|
|
5579
|
+
case "Nanos": return self.value.nanos < bigint0$3 ? make$86(-self.value.nanos) : self;
|
|
5579
5580
|
}
|
|
5580
5581
|
};
|
|
5581
5582
|
/**
|
|
@@ -5593,7 +5594,7 @@ const abs = (self) => {
|
|
|
5593
5594
|
* @category constructors
|
|
5594
5595
|
* @since 2.0.0
|
|
5595
5596
|
*/
|
|
5596
|
-
const zero$2 = /*#__PURE__*/ make$
|
|
5597
|
+
const zero$2 = /*#__PURE__*/ make$86(0);
|
|
5597
5598
|
/**
|
|
5598
5599
|
* A Duration representing infinite time.
|
|
5599
5600
|
*
|
|
@@ -5609,7 +5610,7 @@ const zero$2 = /*#__PURE__*/ make$84(0);
|
|
|
5609
5610
|
* @category constructors
|
|
5610
5611
|
* @since 2.0.0
|
|
5611
5612
|
*/
|
|
5612
|
-
const infinity = /*#__PURE__*/ make$
|
|
5613
|
+
const infinity = /*#__PURE__*/ make$86(Infinity);
|
|
5613
5614
|
/**
|
|
5614
5615
|
* A Duration representing negative infinite time.
|
|
5615
5616
|
*
|
|
@@ -5625,7 +5626,7 @@ const infinity = /*#__PURE__*/ make$84(Infinity);
|
|
|
5625
5626
|
* @category constructors
|
|
5626
5627
|
* @since 4.0.0
|
|
5627
5628
|
*/
|
|
5628
|
-
const negativeInfinity = /*#__PURE__*/ make$
|
|
5629
|
+
const negativeInfinity = /*#__PURE__*/ make$86(-Infinity);
|
|
5629
5630
|
/**
|
|
5630
5631
|
* Creates a Duration from nanoseconds.
|
|
5631
5632
|
*
|
|
@@ -5641,7 +5642,7 @@ const negativeInfinity = /*#__PURE__*/ make$84(-Infinity);
|
|
|
5641
5642
|
* @category constructors
|
|
5642
5643
|
* @since 2.0.0
|
|
5643
5644
|
*/
|
|
5644
|
-
const nanos = (nanos) => make$
|
|
5645
|
+
const nanos = (nanos) => make$86(nanos);
|
|
5645
5646
|
/**
|
|
5646
5647
|
* Creates a Duration from milliseconds.
|
|
5647
5648
|
*
|
|
@@ -5657,7 +5658,7 @@ const nanos = (nanos) => make$84(nanos);
|
|
|
5657
5658
|
* @category constructors
|
|
5658
5659
|
* @since 2.0.0
|
|
5659
5660
|
*/
|
|
5660
|
-
const millis$1 = (millis) => make$
|
|
5661
|
+
const millis$1 = (millis) => make$86(millis);
|
|
5661
5662
|
/**
|
|
5662
5663
|
* Creates a Duration from seconds.
|
|
5663
5664
|
*
|
|
@@ -5673,7 +5674,7 @@ const millis$1 = (millis) => make$84(millis);
|
|
|
5673
5674
|
* @category constructors
|
|
5674
5675
|
* @since 2.0.0
|
|
5675
5676
|
*/
|
|
5676
|
-
const seconds = (seconds) => make$
|
|
5677
|
+
const seconds = (seconds) => make$86(seconds * 1e3);
|
|
5677
5678
|
/**
|
|
5678
5679
|
* Creates a Duration from minutes.
|
|
5679
5680
|
*
|
|
@@ -5689,7 +5690,7 @@ const seconds = (seconds) => make$84(seconds * 1e3);
|
|
|
5689
5690
|
* @category constructors
|
|
5690
5691
|
* @since 2.0.0
|
|
5691
5692
|
*/
|
|
5692
|
-
const minutes = (minutes) => make$
|
|
5693
|
+
const minutes = (minutes) => make$86(minutes * 6e4);
|
|
5693
5694
|
/**
|
|
5694
5695
|
* Converts a Duration to milliseconds.
|
|
5695
5696
|
*
|
|
@@ -5878,7 +5879,7 @@ const matchPair = /*#__PURE__*/ dual(3, (self, that, options) => {
|
|
|
5878
5879
|
* @category instances
|
|
5879
5880
|
* @since 2.0.0
|
|
5880
5881
|
*/
|
|
5881
|
-
const Order$5 = /*#__PURE__*/ make$
|
|
5882
|
+
const Order$5 = /*#__PURE__*/ make$88((self, that) => matchPair(self, that, {
|
|
5882
5883
|
onMillis: (self, that) => self < that ? -1 : self > that ? 1 : 0,
|
|
5883
5884
|
onNanos: (self, that) => self < that ? -1 : self > that ? 1 : 0,
|
|
5884
5885
|
onInfinity: (self, that) => {
|
|
@@ -5958,14 +5959,14 @@ const max$1 = /*#__PURE__*/ max$2(Order$5);
|
|
|
5958
5959
|
const divideUnsafe = /*#__PURE__*/ dual(2, (self, by) => {
|
|
5959
5960
|
if (!Number.isFinite(by)) return zero$2;
|
|
5960
5961
|
return match$7(self, {
|
|
5961
|
-
onMillis: (millis) => make$
|
|
5962
|
+
onMillis: (millis) => make$86(millis / by),
|
|
5962
5963
|
onNanos: (nanos) => {
|
|
5963
5964
|
if (Object.is(by, 0) || Object.is(by, -0)) {
|
|
5964
5965
|
if (nanos === bigint0$3) return zero$2;
|
|
5965
5966
|
return nanos > bigint0$3 === Object.is(by, 0) ? infinity : negativeInfinity;
|
|
5966
5967
|
}
|
|
5967
5968
|
try {
|
|
5968
|
-
return make$
|
|
5969
|
+
return make$86(nanos / BigInt(by));
|
|
5969
5970
|
} catch {
|
|
5970
5971
|
return zero$2;
|
|
5971
5972
|
}
|
|
@@ -6000,8 +6001,8 @@ const divideUnsafe = /*#__PURE__*/ dual(2, (self, by) => {
|
|
|
6000
6001
|
* @since 2.0.0
|
|
6001
6002
|
*/
|
|
6002
6003
|
const sum = /*#__PURE__*/ dual(2, (self, that) => matchPair(self, that, {
|
|
6003
|
-
onMillis: (self, that) => make$
|
|
6004
|
-
onNanos: (self, that) => make$
|
|
6004
|
+
onMillis: (self, that) => make$86(self + that),
|
|
6005
|
+
onNanos: (self, that) => make$86(self + that),
|
|
6005
6006
|
onInfinity: (self, that) => {
|
|
6006
6007
|
const s = self.value._tag;
|
|
6007
6008
|
const t = that.value._tag;
|
|
@@ -6111,11 +6112,11 @@ const parts$1 = (self) => {
|
|
|
6111
6112
|
* @category converting
|
|
6112
6113
|
* @since 2.0.0
|
|
6113
6114
|
*/
|
|
6114
|
-
const format$
|
|
6115
|
+
const format$3 = (self) => {
|
|
6115
6116
|
if (self.value._tag === "Infinity") return "Infinity";
|
|
6116
6117
|
if (self.value._tag === "NegativeInfinity") return "-Infinity";
|
|
6117
6118
|
if (isZero$1(self)) return "0";
|
|
6118
|
-
if (isNegative(self)) return "-" + format$
|
|
6119
|
+
if (isNegative(self)) return "-" + format$3(abs(self));
|
|
6119
6120
|
const fragments = parts$1(self);
|
|
6120
6121
|
const pieces = [];
|
|
6121
6122
|
if (fragments.days !== 0) pieces.push(`${fragments.days}d`);
|
|
@@ -8855,7 +8856,7 @@ var ParentSpan = class extends (/*#__PURE__*/ Service$1()(ParentSpanKey, { fiber
|
|
|
8855
8856
|
* @category constructors
|
|
8856
8857
|
* @since 2.0.0
|
|
8857
8858
|
*/
|
|
8858
|
-
const make$
|
|
8859
|
+
const make$85 = (options) => options;
|
|
8859
8860
|
/**
|
|
8860
8861
|
* Creates an `ExternalSpan` from trace and span identifiers, defaulting
|
|
8861
8862
|
* `sampled` to `true` and annotations to an empty context when they are not
|
|
@@ -9035,7 +9036,7 @@ const Tracer = /*#__PURE__*/ Reference(TracerKey, {
|
|
|
9035
9036
|
* @category references
|
|
9036
9037
|
* @since 4.0.0
|
|
9037
9038
|
*/
|
|
9038
|
-
const nativeTracer = /*#__PURE__*/ make$
|
|
9039
|
+
const nativeTracer = /*#__PURE__*/ make$85({ span: (options) => new NativeSpan(options) });
|
|
9039
9040
|
/**
|
|
9040
9041
|
* Default in-memory `Span` implementation used by the native tracer. It
|
|
9041
9042
|
* generates span and trace identifiers, stores attributes, events, and links,
|
|
@@ -9481,7 +9482,7 @@ var FiberImpl = class {
|
|
|
9481
9482
|
interruptUnsafe(fiberId, annotations) {
|
|
9482
9483
|
if (this._exit) return;
|
|
9483
9484
|
let cause = causeInterrupt(fiberId);
|
|
9484
|
-
if (this.cache.stackFrame) cause = causeAnnotate(cause, make$
|
|
9485
|
+
if (this.cache.stackFrame) cause = causeAnnotate(cause, make$87(StackTraceKey, this.cache.stackFrame));
|
|
9485
9486
|
if (annotations) cause = causeAnnotate(cause, annotations);
|
|
9486
9487
|
this._interruptedCause = this._interruptedCause ? causeAddInterrupts(this._interruptedCause, cause) : cause;
|
|
9487
9488
|
if (this.interruptible) {
|
|
@@ -10441,7 +10442,7 @@ const delay$1 = /*#__PURE__*/ dual(2, (self, duration) => andThen$1(sleep$1(dura
|
|
|
10441
10442
|
/** @internal */
|
|
10442
10443
|
const timeoutOrElse$1 = /*#__PURE__*/ dual(2, (self, options) => flatMap$4(timeoutOption$1(self, options.duration), (option) => isNone(option) ? options.orElse() : succeed$9(option.value)));
|
|
10443
10444
|
/** @internal */
|
|
10444
|
-
const timeoutErrorFromDuration = (duration) => new TimeoutError$1(`Operation timed out after '${format$
|
|
10445
|
+
const timeoutErrorFromDuration = (duration) => new TimeoutError$1(`Operation timed out after '${format$3(duration)}'`);
|
|
10445
10446
|
/** @internal */
|
|
10446
10447
|
const timeout$2 = /*#__PURE__*/ dual(2, (self, duration) => {
|
|
10447
10448
|
const decoded = fromInputUnsafe$1(duration);
|
|
@@ -11814,7 +11815,7 @@ const hasInterrupts$1 = exitHasInterrupts;
|
|
|
11814
11815
|
*/
|
|
11815
11816
|
const asVoidAll = exitAsVoidAll;
|
|
11816
11817
|
// ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/Deferred.js
|
|
11817
|
-
const TypeId$
|
|
11818
|
+
const TypeId$69 = "~effect/Deferred";
|
|
11818
11819
|
/**
|
|
11819
11820
|
* Checks whether a value is a `Deferred`.
|
|
11820
11821
|
*
|
|
@@ -11827,9 +11828,9 @@ const TypeId$67 = "~effect/Deferred";
|
|
|
11827
11828
|
* @category guards
|
|
11828
11829
|
* @since 4.0.0
|
|
11829
11830
|
*/
|
|
11830
|
-
const isDeferred = (u) => hasProperty(u, TypeId$
|
|
11831
|
+
const isDeferred = (u) => hasProperty(u, TypeId$69);
|
|
11831
11832
|
const DeferredProto = {
|
|
11832
|
-
[TypeId$
|
|
11833
|
+
[TypeId$69]: {
|
|
11833
11834
|
_A: identity,
|
|
11834
11835
|
_E: identity
|
|
11835
11836
|
},
|
|
@@ -11889,7 +11890,7 @@ const makeUnsafe$9 = () => new DeferredImpl();
|
|
|
11889
11890
|
* @category constructors
|
|
11890
11891
|
* @since 2.0.0
|
|
11891
11892
|
*/
|
|
11892
|
-
const make$
|
|
11893
|
+
const make$84 = () => sync$2(() => makeUnsafe$9());
|
|
11893
11894
|
const _await = (self) => callback$2((resume) => {
|
|
11894
11895
|
if (self.effect) return resume(self.effect);
|
|
11895
11896
|
self.resumes ??= [];
|
|
@@ -12535,7 +12536,7 @@ const Scope = scopeTag;
|
|
|
12535
12536
|
* @category constructors
|
|
12536
12537
|
* @since 2.0.0
|
|
12537
12538
|
*/
|
|
12538
|
-
const make$
|
|
12539
|
+
const make$83 = scopeMake;
|
|
12539
12540
|
/**
|
|
12540
12541
|
* Creates a new `Scope` synchronously without wrapping it in an `Effect`.
|
|
12541
12542
|
* This is useful when you need a scope immediately but should be used with caution
|
|
@@ -12839,7 +12840,7 @@ const closeUnsafe = scopeCloseUnsafe;
|
|
|
12839
12840
|
*/
|
|
12840
12841
|
const use$1 = scopeUse;
|
|
12841
12842
|
// ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/Layer.js
|
|
12842
|
-
const TypeId$
|
|
12843
|
+
const TypeId$68 = "~effect/Layer";
|
|
12843
12844
|
const MemoMapTypeId = "~effect/Layer/MemoMap";
|
|
12844
12845
|
const makeMemoMapEntry = (memoMap, layer) => {
|
|
12845
12846
|
const entry = {
|
|
@@ -12861,7 +12862,7 @@ const memoMapObserve = (entry, scope) => {
|
|
|
12861
12862
|
return true;
|
|
12862
12863
|
};
|
|
12863
12864
|
const LayerProto = {
|
|
12864
|
-
[TypeId$
|
|
12865
|
+
[TypeId$68]: {
|
|
12865
12866
|
_ROut: identity,
|
|
12866
12867
|
_E: identity,
|
|
12867
12868
|
_RIn: identity
|
|
@@ -13240,8 +13241,8 @@ const buildWithScope = /*#__PURE__*/ dual(2, (self, scope) => withFiber$1((fiber
|
|
|
13240
13241
|
* @since 2.0.0
|
|
13241
13242
|
*/
|
|
13242
13243
|
const succeed$6 = function() {
|
|
13243
|
-
if (arguments.length === 1) return (resource) => succeedContext(make$
|
|
13244
|
-
return succeedContext(make$
|
|
13244
|
+
if (arguments.length === 1) return (resource) => succeedContext(make$87(arguments[0], resource));
|
|
13245
|
+
return succeedContext(make$87(arguments[0], arguments[1]));
|
|
13245
13246
|
};
|
|
13246
13247
|
/**
|
|
13247
13248
|
* Constructs a layer that provides all services in an already available
|
|
@@ -13353,8 +13354,8 @@ const empty$11 = /*#__PURE__*/ succeedContext(/*#__PURE__*/ empty$15());
|
|
|
13353
13354
|
* @since 2.0.0
|
|
13354
13355
|
*/
|
|
13355
13356
|
const sync$1 = function() {
|
|
13356
|
-
if (arguments.length === 1) return (evaluate) => syncContext(() => make$
|
|
13357
|
-
return syncContext(() => make$
|
|
13357
|
+
if (arguments.length === 1) return (evaluate) => syncContext(() => make$87(arguments[0], evaluate()));
|
|
13358
|
+
return syncContext(() => make$87(arguments[0], arguments[1]()));
|
|
13358
13359
|
};
|
|
13359
13360
|
/**
|
|
13360
13361
|
* Constructs a layer lazily that provides all services in a `Context`.
|
|
@@ -13438,7 +13439,7 @@ const effect = function() {
|
|
|
13438
13439
|
if (arguments.length === 1) return (effect) => effectImpl(arguments[0], effect);
|
|
13439
13440
|
return effectImpl(arguments[0], arguments[1]);
|
|
13440
13441
|
};
|
|
13441
|
-
const effectImpl = (service, effect) => effectContext(map$7(effect, (value) => make$
|
|
13442
|
+
const effectImpl = (service, effect) => effectContext(map$7(effect, (value) => make$87(service, value)));
|
|
13442
13443
|
/**
|
|
13443
13444
|
* Constructs a layer from an effect that produces all services in a `Context`.
|
|
13444
13445
|
*
|
|
@@ -15012,11 +15013,11 @@ const currentTimeMillis = currentTimeMillis$1;
|
|
|
15012
15013
|
const currentTimeNanos = currentTimeNanos$1;
|
|
15013
15014
|
// ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/internal/dateTime.js
|
|
15014
15015
|
/** @internal */
|
|
15015
|
-
const TypeId$
|
|
15016
|
+
const TypeId$67 = "~effect/DateTime";
|
|
15016
15017
|
/** @internal */
|
|
15017
15018
|
const TimeZoneTypeId = "~effect/DateTime/TimeZone";
|
|
15018
15019
|
const Proto$23 = {
|
|
15019
|
-
[TypeId$
|
|
15020
|
+
[TypeId$67]: TypeId$67,
|
|
15020
15021
|
pipe() {
|
|
15021
15022
|
return pipeArguments(this, arguments);
|
|
15022
15023
|
},
|
|
@@ -15143,7 +15144,7 @@ const makeZonedProto = (epochMillis, zone, partsUtc) => {
|
|
|
15143
15144
|
return self;
|
|
15144
15145
|
};
|
|
15145
15146
|
/** @internal */
|
|
15146
|
-
const isDateTime$1 = (u) => hasProperty(u, TypeId$
|
|
15147
|
+
const isDateTime$1 = (u) => hasProperty(u, TypeId$67);
|
|
15147
15148
|
/** @internal */
|
|
15148
15149
|
const isTimeZone = (u) => hasProperty(u, TimeZoneTypeId);
|
|
15149
15150
|
/** @internal */
|
|
@@ -15208,7 +15209,7 @@ const makeZonedUnsafe$1 = (input, options) => {
|
|
|
15208
15209
|
return makeZonedFromAdjusted(self.epochMilliseconds, zone, options?.disambiguation ?? "compatible");
|
|
15209
15210
|
};
|
|
15210
15211
|
/** @internal */
|
|
15211
|
-
const make$
|
|
15212
|
+
const make$82 = /*#__PURE__*/ liftThrowable(makeUnsafe$7);
|
|
15212
15213
|
/** @internal */
|
|
15213
15214
|
const toUtc$1 = (self) => makeUtc(self.epochMilliseconds);
|
|
15214
15215
|
const validZoneCache = /*#__PURE__*/ new Map();
|
|
@@ -15978,7 +15979,7 @@ const matchEffect$1 = /*#__PURE__*/ dual(2, (self, options) => matchCauseEffect$
|
|
|
15978
15979
|
}
|
|
15979
15980
|
}));
|
|
15980
15981
|
// ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/Schedule.js
|
|
15981
|
-
const TypeId$
|
|
15982
|
+
const TypeId$66 = "~effect/Schedule";
|
|
15982
15983
|
/**
|
|
15983
15984
|
* Context reference containing metadata for the currently running schedule step.
|
|
15984
15985
|
*
|
|
@@ -16004,7 +16005,7 @@ const CurrentMetadata = /*#__PURE__*/ Reference("effect/Schedule/CurrentMetadata
|
|
|
16004
16005
|
elapsedSincePrevious: 0
|
|
16005
16006
|
}) });
|
|
16006
16007
|
const ScheduleProto = {
|
|
16007
|
-
[TypeId$
|
|
16008
|
+
[TypeId$66]: {
|
|
16008
16009
|
_Out: identity,
|
|
16009
16010
|
_In: identity,
|
|
16010
16011
|
_Env: identity
|
|
@@ -16034,7 +16035,7 @@ const ScheduleProto = {
|
|
|
16034
16035
|
* @category guards
|
|
16035
16036
|
* @since 2.0.0
|
|
16036
16037
|
*/
|
|
16037
|
-
const isSchedule = (u) => hasProperty(u, TypeId$
|
|
16038
|
+
const isSchedule = (u) => hasProperty(u, TypeId$66);
|
|
16038
16039
|
/**
|
|
16039
16040
|
* Creates a Schedule from a step function that returns a Pull.
|
|
16040
16041
|
*
|
|
@@ -16406,14 +16407,14 @@ const buildFromOptions = (options) => {
|
|
|
16406
16407
|
return schedule;
|
|
16407
16408
|
};
|
|
16408
16409
|
// ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/MutableHashMap.js
|
|
16409
|
-
const TypeId$
|
|
16410
|
+
const TypeId$65 = "~effect/MutableHashMap";
|
|
16410
16411
|
const MutableHashMapProto = {
|
|
16411
|
-
[TypeId$
|
|
16412
|
+
[TypeId$65]: TypeId$65,
|
|
16412
16413
|
[Symbol.iterator]() {
|
|
16413
16414
|
return this.backing[Symbol.iterator]();
|
|
16414
16415
|
},
|
|
16415
16416
|
toString() {
|
|
16416
|
-
return `MutableHashMap(${format$
|
|
16417
|
+
return `MutableHashMap(${format$4(Array.from(this))})`;
|
|
16417
16418
|
},
|
|
16418
16419
|
toJSON() {
|
|
16419
16420
|
return {
|
|
@@ -16495,7 +16496,7 @@ const empty$10 = () => {
|
|
|
16495
16496
|
* @category constructors
|
|
16496
16497
|
* @since 2.0.0
|
|
16497
16498
|
*/
|
|
16498
|
-
const make$
|
|
16499
|
+
const make$81 = (...entries) => fromIterable$4(entries);
|
|
16499
16500
|
/**
|
|
16500
16501
|
* Creates a MutableHashMap from an iterable collection of key-value pairs.
|
|
16501
16502
|
*
|
|
@@ -21873,13 +21874,13 @@ const concat$4 = (chunks) => {
|
|
|
21873
21874
|
* @category instances
|
|
21874
21875
|
* @since 4.0.6
|
|
21875
21876
|
*/
|
|
21876
|
-
const Order$2 = /*#__PURE__*/ make$
|
|
21877
|
+
const Order$2 = /*#__PURE__*/ make$88((self, that) => {
|
|
21877
21878
|
const length = Math.min(self.length, that.length);
|
|
21878
21879
|
for (let i = 0; i < length; i++) if (self[i] !== that[i]) return self[i] < that[i] ? -1 : 1;
|
|
21879
21880
|
return self.length < that.length ? -1 : self.length > that.length ? 1 : 0;
|
|
21880
21881
|
});
|
|
21881
21882
|
// ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/net/NetAddress.js
|
|
21882
|
-
const TypeId$
|
|
21883
|
+
const TypeId$64 = "~effect/net/NetAddress";
|
|
21883
21884
|
const ipv4Value = (self) => self.value;
|
|
21884
21885
|
const ipv6Words = (self) => self;
|
|
21885
21886
|
/**
|
|
@@ -21897,7 +21898,7 @@ const ipv6Words = (self) => self;
|
|
|
21897
21898
|
* @since 4.0.0
|
|
21898
21899
|
*/
|
|
21899
21900
|
var NetAddressError = class extends (/*#__PURE__*/ TaggedError$1("NetAddressError")) {};
|
|
21900
|
-
const isAddress = (u) => hasProperty(u, TypeId$
|
|
21901
|
+
const isAddress = (u) => hasProperty(u, TypeId$64);
|
|
21901
21902
|
/**
|
|
21902
21903
|
* Returns `true` when a value is an IPv4 address.
|
|
21903
21904
|
*
|
|
@@ -21915,6 +21916,14 @@ const isIpv4Address = (u) => isAddress(u) && u._tag === "Ipv4Address";
|
|
|
21915
21916
|
*/
|
|
21916
21917
|
const isIpv6Address = (u) => isAddress(u) && u._tag === "Ipv6Address";
|
|
21917
21918
|
/**
|
|
21919
|
+
* Returns the bit width of an IP address.
|
|
21920
|
+
*
|
|
21921
|
+
* @stability unstable
|
|
21922
|
+
* @category getters
|
|
21923
|
+
* @since 4.0.0
|
|
21924
|
+
*/
|
|
21925
|
+
const width$1 = (address) => isIpv4Address(address) ? 32 : 128;
|
|
21926
|
+
/**
|
|
21918
21927
|
* Returns `true` when a value is a resolved IPv4 internet address.
|
|
21919
21928
|
*
|
|
21920
21929
|
* @stability unstable
|
|
@@ -21949,7 +21958,7 @@ const isUnixPathAddress = (u) => isAddress(u) && u._tag === "UnixPathAddress";
|
|
|
21949
21958
|
const Ipv4Proto = {
|
|
21950
21959
|
...BaseProto,
|
|
21951
21960
|
_tag: "Ipv4Address",
|
|
21952
|
-
[TypeId$
|
|
21961
|
+
[TypeId$64]: TypeId$64,
|
|
21953
21962
|
[symbol$2](that) {
|
|
21954
21963
|
return isIpv4Address(that) && ipv4Value(this) === ipv4Value(that);
|
|
21955
21964
|
},
|
|
@@ -21966,7 +21975,7 @@ const Ipv4Proto = {
|
|
|
21966
21975
|
const Ipv6Proto = {
|
|
21967
21976
|
...BaseProto,
|
|
21968
21977
|
_tag: "Ipv6Address",
|
|
21969
|
-
[TypeId$
|
|
21978
|
+
[TypeId$64]: TypeId$64,
|
|
21970
21979
|
[symbol$2](that) {
|
|
21971
21980
|
if (!isIpv6Address(that)) return false;
|
|
21972
21981
|
const self = ipv6Words(this);
|
|
@@ -22149,6 +22158,22 @@ const ipv6ToSegments = (self) => {
|
|
|
22149
22158
|
];
|
|
22150
22159
|
};
|
|
22151
22160
|
/**
|
|
22161
|
+
* Returns the sixteen numeric octets of an IPv6 address in a fresh array.
|
|
22162
|
+
*
|
|
22163
|
+
* @stability unstable
|
|
22164
|
+
* @category getters
|
|
22165
|
+
* @since 4.0.0
|
|
22166
|
+
*/
|
|
22167
|
+
const ipv6ToOctets = (self) => {
|
|
22168
|
+
const { w0, w1, w2, w3 } = ipv6Words(self);
|
|
22169
|
+
return [
|
|
22170
|
+
...wordToOctets(w0),
|
|
22171
|
+
...wordToOctets(w1),
|
|
22172
|
+
...wordToOctets(w2),
|
|
22173
|
+
...wordToOctets(w3)
|
|
22174
|
+
];
|
|
22175
|
+
};
|
|
22176
|
+
/**
|
|
22152
22177
|
* Formats an IP address in canonical numeric form.
|
|
22153
22178
|
*
|
|
22154
22179
|
* @stability unstable
|
|
@@ -22238,7 +22263,7 @@ const fromIpv4Mapped = (self) => isIpv4Mapped(self) ? some$1(makeIpv4(ipv6Words(
|
|
|
22238
22263
|
const InetV4Proto = {
|
|
22239
22264
|
...BaseProto,
|
|
22240
22265
|
_tag: "InetAddressV4",
|
|
22241
|
-
[TypeId$
|
|
22266
|
+
[TypeId$64]: TypeId$64,
|
|
22242
22267
|
[symbol$2](that) {
|
|
22243
22268
|
return isInetAddressV4(that) && this.port === that.port && equals$2(this.address, that.address);
|
|
22244
22269
|
},
|
|
@@ -22255,7 +22280,7 @@ const InetV4Proto = {
|
|
|
22255
22280
|
const InetV6Proto = {
|
|
22256
22281
|
...BaseProto,
|
|
22257
22282
|
_tag: "InetAddressV6",
|
|
22258
|
-
[TypeId$
|
|
22283
|
+
[TypeId$64]: TypeId$64,
|
|
22259
22284
|
[symbol$2](that) {
|
|
22260
22285
|
return isInetAddressV6(that) && this.port === that.port && this.scopeId === that.scopeId && equals$2(this.address, that.address);
|
|
22261
22286
|
},
|
|
@@ -22423,7 +22448,7 @@ const formatUrlUnsafe = (self, scheme = "http") => getOrThrow(formatUrl(self, sc
|
|
|
22423
22448
|
const UnixPathProto = {
|
|
22424
22449
|
...BaseProto,
|
|
22425
22450
|
_tag: "UnixPathAddress",
|
|
22426
|
-
[TypeId$
|
|
22451
|
+
[TypeId$64]: TypeId$64,
|
|
22427
22452
|
[symbol$2](that) {
|
|
22428
22453
|
return isUnixPathAddress(that) && this.path === that.path;
|
|
22429
22454
|
},
|
|
@@ -22712,7 +22737,7 @@ const binaryUnits = [
|
|
|
22712
22737
|
const allUnits = [...decimalUnits, .../*#__PURE__*/ binaryUnits.slice(1)];
|
|
22713
22738
|
const unitsByName = /*#__PURE__*/ new Map(/*#__PURE__*/ allUnits.flatMap((unit) => unit.names.map((name) => [name, unit])));
|
|
22714
22739
|
const unitsBySymbol = /*#__PURE__*/ new Map(/*#__PURE__*/ allUnits.map((unit) => [unit.symbol, unit]));
|
|
22715
|
-
const make$
|
|
22740
|
+
const make$80 = (value) => value;
|
|
22716
22741
|
/**
|
|
22717
22742
|
* The byte size containing zero bytes.
|
|
22718
22743
|
*
|
|
@@ -22720,13 +22745,13 @@ const make$78 = (value) => value;
|
|
|
22720
22745
|
* @category constants
|
|
22721
22746
|
* @since 4.0.0
|
|
22722
22747
|
*/
|
|
22723
|
-
const zero$1 = /*#__PURE__*/ make$
|
|
22748
|
+
const zero$1 = /*#__PURE__*/ make$80(bigint0$1);
|
|
22724
22749
|
const invalid$3 = (message) => {
|
|
22725
22750
|
throw new Error(`Invalid ByteSize: ${message}`);
|
|
22726
22751
|
};
|
|
22727
22752
|
const fromNumber = (input) => {
|
|
22728
22753
|
if (!Number.isSafeInteger(input) || input < 0) return invalid$3(`expected a non-negative safe integer, received ${input}`);
|
|
22729
|
-
return make$
|
|
22754
|
+
return make$80(BigInt(input));
|
|
22730
22755
|
};
|
|
22731
22756
|
const maxSafeInteger = /*#__PURE__*/ BigInt(Number.MAX_SAFE_INTEGER);
|
|
22732
22757
|
const scaleDecimal = (quantity, factor) => {
|
|
@@ -22742,14 +22767,14 @@ const scaleDecimal = (quantity, factor) => {
|
|
|
22742
22767
|
const fromQuantity = (quantity, unit) => {
|
|
22743
22768
|
if (typeof quantity === "bigint") {
|
|
22744
22769
|
if (quantity < bigint0$1) return invalid$3(`expected a non-negative quantity, received ${quantity}`);
|
|
22745
|
-
return make$
|
|
22770
|
+
return make$80(quantity * unit.factor);
|
|
22746
22771
|
}
|
|
22747
22772
|
if (binaryUnits.includes(unit)) {
|
|
22748
22773
|
const value = quantity * Number(unit.factor);
|
|
22749
|
-
if (Number.isSafeInteger(value) && value >= 0) return make$
|
|
22774
|
+
if (Number.isSafeInteger(value) && value >= 0) return make$80(BigInt(value));
|
|
22750
22775
|
} else {
|
|
22751
22776
|
const value = scaleDecimal(String(quantity), unit.factor);
|
|
22752
|
-
if (value !== void 0 && value <= maxSafeInteger) return make$
|
|
22777
|
+
if (value !== void 0 && value <= maxSafeInteger) return make$80(value);
|
|
22753
22778
|
}
|
|
22754
22779
|
return invalid$3(`expected an exact non-negative safe-integer byte result, received ${quantity} ${unit.symbol}`);
|
|
22755
22780
|
};
|
|
@@ -22775,7 +22800,7 @@ const fromStringUnsafe = (input) => {
|
|
|
22775
22800
|
if (unit === void 0) return invalid$3(`unsupported unit ${JSON.stringify(match[2])}`);
|
|
22776
22801
|
const value = scaleDecimal(match[1], unit.factor);
|
|
22777
22802
|
if (value === void 0) return invalid$3(`${JSON.stringify(input)} does not represent an integral number of bytes`);
|
|
22778
|
-
return make$
|
|
22803
|
+
return make$80(value);
|
|
22779
22804
|
};
|
|
22780
22805
|
/**
|
|
22781
22806
|
* Decodes a trusted input into a byte size and throws for invalid input.
|
|
@@ -22788,7 +22813,7 @@ const fromInputUnsafe = (input) => {
|
|
|
22788
22813
|
switch (typeof input) {
|
|
22789
22814
|
case "bigint":
|
|
22790
22815
|
if (input < bigint0$1) return invalid$3(`expected a non-negative bigint, received ${input}`);
|
|
22791
|
-
return make$
|
|
22816
|
+
return make$80(input);
|
|
22792
22817
|
case "number": return fromNumber(input);
|
|
22793
22818
|
case "string": return fromStringUnsafe(input);
|
|
22794
22819
|
}
|
|
@@ -23443,7 +23468,7 @@ const isNotLink = (error) => isIgnorable(error) || error.reason._tag === "Unknow
|
|
|
23443
23468
|
const DIRECTORY_CONCURRENCY = 16;
|
|
23444
23469
|
const byName = /*#__PURE__*/ mapInput(String$10, (entry) => entry.name);
|
|
23445
23470
|
/** @internal */
|
|
23446
|
-
const make$
|
|
23471
|
+
const make$79 = (fs) => (pattern, options) => walk(fs, compile$1([pattern], options?.dot ?? false), options);
|
|
23447
23472
|
const walk = /*#__PURE__*/ fnUntraced(function* (fs, compiled, options) {
|
|
23448
23473
|
if (compiled.initial.size === 0) return [];
|
|
23449
23474
|
const root = options?.root ?? "";
|
|
@@ -23557,7 +23582,7 @@ const walk = /*#__PURE__*/ fnUntraced(function* (fs, compiled, options) {
|
|
|
23557
23582
|
* @stability unstable
|
|
23558
23583
|
* @since 4.0.0
|
|
23559
23584
|
*/
|
|
23560
|
-
const TypeId$
|
|
23585
|
+
const TypeId$62 = "~effect/PlatformError";
|
|
23561
23586
|
/**
|
|
23562
23587
|
* Error data for an invalid argument passed to a platform API.
|
|
23563
23588
|
*
|
|
@@ -23670,7 +23695,7 @@ var PlatformError = class extends (/*#__PURE__*/ TaggedError$1("PlatformError"))
|
|
|
23670
23695
|
*
|
|
23671
23696
|
* @since 4.0.0
|
|
23672
23697
|
*/
|
|
23673
|
-
[TypeId$
|
|
23698
|
+
[TypeId$62] = TypeId$62;
|
|
23674
23699
|
get message() {
|
|
23675
23700
|
return this.reason.message;
|
|
23676
23701
|
}
|
|
@@ -23702,7 +23727,7 @@ const systemError = (options) => new PlatformError(new SystemError(options));
|
|
|
23702
23727
|
*/
|
|
23703
23728
|
const badArgument = (options) => new PlatformError(new BadArgument(options));
|
|
23704
23729
|
// ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/Chunk.js
|
|
23705
|
-
const TypeId$
|
|
23730
|
+
const TypeId$61 = "~effect/Chunk";
|
|
23706
23731
|
function copy$2(src, srcPos, dest, destPos, len) {
|
|
23707
23732
|
for (let i = srcPos; i < Math.min(src.length, srcPos + len); i++) dest[destPos + i - srcPos] = src[i];
|
|
23708
23733
|
return dest;
|
|
@@ -23730,7 +23755,7 @@ const emptyArray = [];
|
|
|
23730
23755
|
* @category instances
|
|
23731
23756
|
* @since 4.0.0
|
|
23732
23757
|
*/
|
|
23733
|
-
const makeEquivalence$1 = (isEquivalent) => make$
|
|
23758
|
+
const makeEquivalence$1 = (isEquivalent) => make$89((self, that) => {
|
|
23734
23759
|
if (self.length !== that.length) return false;
|
|
23735
23760
|
const as = toReadonlyArray(self);
|
|
23736
23761
|
const bs = toReadonlyArray(that);
|
|
@@ -23739,9 +23764,9 @@ const makeEquivalence$1 = (isEquivalent) => make$87((self, that) => {
|
|
|
23739
23764
|
});
|
|
23740
23765
|
const _equivalence = /*#__PURE__*/ makeEquivalence$1(equals$2);
|
|
23741
23766
|
const ChunkProto = {
|
|
23742
|
-
[TypeId$
|
|
23767
|
+
[TypeId$61]: { _A: (_) => _ },
|
|
23743
23768
|
toString() {
|
|
23744
|
-
return `Chunk(${format$
|
|
23769
|
+
return `Chunk(${format$4(toReadonlyArray(this))})`;
|
|
23745
23770
|
},
|
|
23746
23771
|
toJSON() {
|
|
23747
23772
|
return {
|
|
@@ -23825,7 +23850,7 @@ const makeChunk = (backing) => {
|
|
|
23825
23850
|
* @category guards
|
|
23826
23851
|
* @since 2.0.0
|
|
23827
23852
|
*/
|
|
23828
|
-
const isChunk = (u) => hasProperty(u, TypeId$
|
|
23853
|
+
const isChunk = (u) => hasProperty(u, TypeId$61);
|
|
23829
23854
|
const _empty = /*#__PURE__*/ makeChunk({ _tag: "IEmpty" });
|
|
23830
23855
|
const copyToArray = (self, array, initial) => {
|
|
23831
23856
|
switch (self.backing._tag) {
|
|
@@ -23957,11 +23982,11 @@ const makeUnsafe$6 = makeLatchUnsafe;
|
|
|
23957
23982
|
* @category constructors
|
|
23958
23983
|
* @since 4.0.0
|
|
23959
23984
|
*/
|
|
23960
|
-
const make$
|
|
23985
|
+
const make$78 = makeLatch;
|
|
23961
23986
|
// ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/MutableRef.js
|
|
23962
|
-
const TypeId$
|
|
23987
|
+
const TypeId$60 = "~effect/MutableRef";
|
|
23963
23988
|
const MutableRefProto = {
|
|
23964
|
-
[TypeId$
|
|
23989
|
+
[TypeId$60]: TypeId$60,
|
|
23965
23990
|
...PipeInspectableProto,
|
|
23966
23991
|
toJSON() {
|
|
23967
23992
|
return {
|
|
@@ -24003,7 +24028,7 @@ const MutableRefProto = {
|
|
|
24003
24028
|
* @category constructors
|
|
24004
24029
|
* @since 2.0.0
|
|
24005
24030
|
*/
|
|
24006
|
-
const make$
|
|
24031
|
+
const make$77 = (value) => {
|
|
24007
24032
|
const ref = Object.create(MutableRefProto);
|
|
24008
24033
|
ref.current = value;
|
|
24009
24034
|
return ref;
|
|
@@ -24119,7 +24144,7 @@ const Empty$2 = /*#__PURE__*/ Symbol.for("effect/MutableList/Empty");
|
|
|
24119
24144
|
* @category constructors
|
|
24120
24145
|
* @since 2.0.0
|
|
24121
24146
|
*/
|
|
24122
|
-
const make$
|
|
24147
|
+
const make$76 = () => ({
|
|
24123
24148
|
head: void 0,
|
|
24124
24149
|
tail: void 0,
|
|
24125
24150
|
length: 0
|
|
@@ -24503,7 +24528,7 @@ const remove$4 = (self, value) => filter$3(self, (v) => v !== value);
|
|
|
24503
24528
|
* @stability stable
|
|
24504
24529
|
* @since 2.0.0
|
|
24505
24530
|
*/
|
|
24506
|
-
const TypeId$
|
|
24531
|
+
const TypeId$59 = "~effect/PubSub";
|
|
24507
24532
|
const SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
24508
24533
|
/**
|
|
24509
24534
|
* Creates a PubSub with a custom atomic implementation and strategy.
|
|
@@ -24534,7 +24559,7 @@ const SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
|
24534
24559
|
* @category constructors
|
|
24535
24560
|
* @since 4.0.0
|
|
24536
24561
|
*/
|
|
24537
|
-
const make$
|
|
24562
|
+
const make$75 = (options) => sync(() => makePubSubUnsafe(options.atomicPubSub(), /* @__PURE__ */ new Map(), makeUnsafe$8(), makeUnsafe$6(false), make$77(false), options.strategy(), make$77(none())));
|
|
24538
24563
|
/**
|
|
24539
24564
|
* Creates an unbounded `PubSub`.
|
|
24540
24565
|
*
|
|
@@ -24565,7 +24590,7 @@ const make$73 = (options) => sync(() => makePubSubUnsafe(options.atomicPubSub(),
|
|
|
24565
24590
|
* @category constructors
|
|
24566
24591
|
* @since 2.0.0
|
|
24567
24592
|
*/
|
|
24568
|
-
const unbounded = (options) => make$
|
|
24593
|
+
const unbounded = (options) => make$75({
|
|
24569
24594
|
atomicPubSub: () => makeAtomicUnbounded(options),
|
|
24570
24595
|
strategy: () => new DroppingStrategy()
|
|
24571
24596
|
});
|
|
@@ -24915,7 +24940,7 @@ const removeSubscribers = (subscribers, subscription, pollers) => {
|
|
|
24915
24940
|
set.delete(pollers);
|
|
24916
24941
|
if (set.size === 0) subscribers.delete(subscription);
|
|
24917
24942
|
};
|
|
24918
|
-
const makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make$
|
|
24943
|
+
const makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make$76(), makeUnsafe$6(false), make$77(false), strategy, pubsub.replayWindow(), ended);
|
|
24919
24944
|
var UnboundedPubSub = class {
|
|
24920
24945
|
publisherHead = {
|
|
24921
24946
|
value: AbsentValue,
|
|
@@ -25089,7 +25114,7 @@ var SubscriptionImpl = class {
|
|
|
25089
25114
|
}
|
|
25090
25115
|
};
|
|
25091
25116
|
var PubSubImpl = class {
|
|
25092
|
-
[TypeId$
|
|
25117
|
+
[TypeId$59] = { _A: identity };
|
|
25093
25118
|
pubsub;
|
|
25094
25119
|
subscribers;
|
|
25095
25120
|
scope;
|
|
@@ -25318,7 +25343,7 @@ const emptyReplayWindow = {
|
|
|
25318
25343
|
* @stability stable
|
|
25319
25344
|
* @since 3.8.0
|
|
25320
25345
|
*/
|
|
25321
|
-
const TypeId$
|
|
25346
|
+
const TypeId$58 = "~effect/Queue";
|
|
25322
25347
|
const EnqueueTypeId = "~effect/Queue/Enqueue";
|
|
25323
25348
|
const DequeueTypeId = "~effect/Queue/Dequeue";
|
|
25324
25349
|
const variance$1 = {
|
|
@@ -25326,7 +25351,7 @@ const variance$1 = {
|
|
|
25326
25351
|
_E: identity
|
|
25327
25352
|
};
|
|
25328
25353
|
const QueueProto = {
|
|
25329
|
-
[TypeId$
|
|
25354
|
+
[TypeId$58]: variance$1,
|
|
25330
25355
|
[EnqueueTypeId]: variance$1,
|
|
25331
25356
|
[DequeueTypeId]: variance$1,
|
|
25332
25357
|
...PipeInspectableProto,
|
|
@@ -25381,12 +25406,12 @@ const QueueProto = {
|
|
|
25381
25406
|
* @category constructors
|
|
25382
25407
|
* @since 4.0.0
|
|
25383
25408
|
*/
|
|
25384
|
-
const make$
|
|
25409
|
+
const make$74 = (options) => withFiber$1((fiber) => {
|
|
25385
25410
|
const self = Object.create(QueueProto);
|
|
25386
25411
|
self.dispatcher = fiber.currentDispatcher;
|
|
25387
25412
|
self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
|
|
25388
25413
|
self.strategy = options?.strategy ?? "suspend";
|
|
25389
|
-
self.messages = make$
|
|
25414
|
+
self.messages = make$76();
|
|
25390
25415
|
self.scheduleRunning = false;
|
|
25391
25416
|
self.state = {
|
|
25392
25417
|
_tag: "Open",
|
|
@@ -25427,7 +25452,7 @@ const make$72 = (options) => withFiber$1((fiber) => {
|
|
|
25427
25452
|
* @category constructors
|
|
25428
25453
|
* @since 2.0.0
|
|
25429
25454
|
*/
|
|
25430
|
-
const bounded = (capacity) => make$
|
|
25455
|
+
const bounded = (capacity) => make$74({ capacity });
|
|
25431
25456
|
/**
|
|
25432
25457
|
* Creates a bounded queue with sliding strategy. When the queue reaches capacity,
|
|
25433
25458
|
* new elements are added and the oldest elements are dropped.
|
|
@@ -25464,7 +25489,7 @@ const bounded = (capacity) => make$72({ capacity });
|
|
|
25464
25489
|
* @category constructors
|
|
25465
25490
|
* @since 2.0.0
|
|
25466
25491
|
*/
|
|
25467
|
-
const sliding = (capacity) => make$
|
|
25492
|
+
const sliding = (capacity) => make$74({
|
|
25468
25493
|
capacity,
|
|
25469
25494
|
strategy: "sliding"
|
|
25470
25495
|
});
|
|
@@ -25503,7 +25528,7 @@ const sliding = (capacity) => make$72({
|
|
|
25503
25528
|
* @category constructors
|
|
25504
25529
|
* @since 2.0.0
|
|
25505
25530
|
*/
|
|
25506
|
-
const dropping = (capacity) => make$
|
|
25531
|
+
const dropping = (capacity) => make$74({
|
|
25507
25532
|
capacity,
|
|
25508
25533
|
strategy: "dropping"
|
|
25509
25534
|
});
|
|
@@ -26548,7 +26573,7 @@ var SemaphoreImpl = class {
|
|
|
26548
26573
|
* @category constructors
|
|
26549
26574
|
* @since 4.0.0
|
|
26550
26575
|
*/
|
|
26551
|
-
const make$
|
|
26576
|
+
const make$73 = (permits) => sync$2(() => new SemaphoreImpl(permits));
|
|
26552
26577
|
/**
|
|
26553
26578
|
* Runs an effect with a single permit and releases the permit when the effect
|
|
26554
26579
|
* completes.
|
|
@@ -26607,7 +26632,7 @@ const toPull = (take) => isExit(take) ? isSuccess(take) ? done$1(take.value) : t
|
|
|
26607
26632
|
* @category type IDs
|
|
26608
26633
|
* @since 4.0.0
|
|
26609
26634
|
*/
|
|
26610
|
-
const TypeId$
|
|
26635
|
+
const TypeId$57 = "~effect/Channel";
|
|
26611
26636
|
/**
|
|
26612
26637
|
* Checks whether a value is a `Channel`.
|
|
26613
26638
|
*
|
|
@@ -26625,9 +26650,9 @@ const TypeId$55 = "~effect/Channel";
|
|
|
26625
26650
|
* @category guards
|
|
26626
26651
|
* @since 3.5.4
|
|
26627
26652
|
*/
|
|
26628
|
-
const isChannel = (u) => hasProperty(u, TypeId$
|
|
26653
|
+
const isChannel = (u) => hasProperty(u, TypeId$57);
|
|
26629
26654
|
const ChannelProto = {
|
|
26630
|
-
[TypeId$
|
|
26655
|
+
[TypeId$57]: {
|
|
26631
26656
|
_Env: identity,
|
|
26632
26657
|
_InErr: identity,
|
|
26633
26658
|
_InElem: identity,
|
|
@@ -26752,7 +26777,7 @@ const fromTransformBracket = (f) => fromTransform$1(fnUntraced(function* (upstre
|
|
|
26752
26777
|
* @since 4.0.0
|
|
26753
26778
|
*/
|
|
26754
26779
|
const toTransform = (channel) => channel.transform;
|
|
26755
|
-
const asyncQueue = (scope, f, options) => make$
|
|
26780
|
+
const asyncQueue = (scope, f, options) => make$74({
|
|
26756
26781
|
capacity: options?.bufferSize,
|
|
26757
26782
|
strategy: options?.strategy
|
|
26758
26783
|
}).pipe(tap$1((queue) => addFinalizer$1(scope, shutdown(queue))), tap$1((queue) => provide$3(f(queue), scope).pipe(catchCause$2((cause) => failCause$2(queue, cause)), forkIn(scope, { startImmediately: true }))));
|
|
@@ -27311,7 +27336,7 @@ const fromReadableStream$1 = (options) => fromTransform$1((_, scope) => readable
|
|
|
27311
27336
|
}));
|
|
27312
27337
|
const readableStreamToPullUnsafe = (options) => {
|
|
27313
27338
|
const reader = options.readable.getReader();
|
|
27314
|
-
const exit = options.exit ?? make$
|
|
27339
|
+
const exit = options.exit ?? make$77(void 0);
|
|
27315
27340
|
const pull = suspend$2(() => {
|
|
27316
27341
|
if (exit.current) return exit.current;
|
|
27317
27342
|
return matchCauseEffect(tryPromise({
|
|
@@ -27856,7 +27881,7 @@ const switchMap$1 = /*#__PURE__*/ dual((args) => isChannel(args[0]), (self, f, o
|
|
|
27856
27881
|
const mergeAll = /*#__PURE__*/ dual(2, (channels, { bufferSize = 16, concurrency, switch: switch_ = false }) => fromTransformBracket(fnUntraced(function* (upstream, scope, forkedScope) {
|
|
27857
27882
|
const concurrencyN = concurrency === "unbounded" ? Number.MAX_SAFE_INTEGER : Math.max(1, concurrency);
|
|
27858
27883
|
const semaphore = switch_ ? void 0 : makeUnsafe$5(concurrencyN);
|
|
27859
|
-
const doneLatch = yield* make$
|
|
27884
|
+
const doneLatch = yield* make$78(true);
|
|
27860
27885
|
const fibers = /* @__PURE__ */ new Map();
|
|
27861
27886
|
const queue = yield* bounded(bufferSize);
|
|
27862
27887
|
yield* addFinalizer$1(forkedScope, shutdown(queue));
|
|
@@ -28554,7 +28579,7 @@ const runFoldEffect$1 = /*#__PURE__*/ dual(3, (self, initial, f) => suspend$2(()
|
|
|
28554
28579
|
*/
|
|
28555
28580
|
const toPullScoped = (self, scope) => toTransform(self)(done$1(), scope);
|
|
28556
28581
|
// ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/internal/stream.js
|
|
28557
|
-
const TypeId$
|
|
28582
|
+
const TypeId$56 = "~effect/Stream";
|
|
28558
28583
|
const streamVariance = {
|
|
28559
28584
|
_R: identity,
|
|
28560
28585
|
_E: identity,
|
|
@@ -28564,7 +28589,7 @@ const Stream$2 = function(channel) {
|
|
|
28564
28589
|
this.channel = channel;
|
|
28565
28590
|
};
|
|
28566
28591
|
Stream$2.prototype = {
|
|
28567
|
-
[TypeId$
|
|
28592
|
+
[TypeId$56]: streamVariance,
|
|
28568
28593
|
pipe() {
|
|
28569
28594
|
return pipeArguments(this, arguments);
|
|
28570
28595
|
}
|
|
@@ -28572,7 +28597,7 @@ Stream$2.prototype = {
|
|
|
28572
28597
|
/** @internal */
|
|
28573
28598
|
const fromChannel$2 = (channel) => new Stream$2(channel);
|
|
28574
28599
|
// ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/Sink.js
|
|
28575
|
-
const TypeId$
|
|
28600
|
+
const TypeId$55 = "~effect/Sink";
|
|
28576
28601
|
const endVoid = /*#__PURE__*/ succeed$5([void 0]);
|
|
28577
28602
|
const sinkVariance = {
|
|
28578
28603
|
_A: identity,
|
|
@@ -28582,7 +28607,7 @@ const sinkVariance = {
|
|
|
28582
28607
|
_R: identity
|
|
28583
28608
|
};
|
|
28584
28609
|
const SinkProto = {
|
|
28585
|
-
[TypeId$
|
|
28610
|
+
[TypeId$55]: sinkVariance,
|
|
28586
28611
|
pipe() {
|
|
28587
28612
|
return pipeArguments(this, arguments);
|
|
28588
28613
|
}
|
|
@@ -28606,7 +28631,7 @@ const SinkProto = {
|
|
|
28606
28631
|
* @category guards
|
|
28607
28632
|
* @since 4.0.0
|
|
28608
28633
|
*/
|
|
28609
|
-
const isSink = (u) => hasProperty(u, TypeId$
|
|
28634
|
+
const isSink = (u) => hasProperty(u, TypeId$55);
|
|
28610
28635
|
/**
|
|
28611
28636
|
* Creates a sink from a `Channel`.
|
|
28612
28637
|
*
|
|
@@ -28778,9 +28803,9 @@ const unwrap$5 = (effect) => fromChannel$1(unwrap$6(map$5(effect, toChannel$1)))
|
|
|
28778
28803
|
* @stability stable
|
|
28779
28804
|
* @since 3.5.0
|
|
28780
28805
|
*/
|
|
28781
|
-
const TypeId$
|
|
28806
|
+
const TypeId$54 = "~effect/RcMap";
|
|
28782
28807
|
const makeUnsafe$4 = (options) => ({
|
|
28783
|
-
[TypeId$
|
|
28808
|
+
[TypeId$54]: TypeId$54,
|
|
28784
28809
|
lookup: options.lookup,
|
|
28785
28810
|
context: options.context,
|
|
28786
28811
|
scope: options.scope,
|
|
@@ -28847,7 +28872,7 @@ const makeUnsafe$4 = (options) => ({
|
|
|
28847
28872
|
* @category constructors
|
|
28848
28873
|
* @since 3.5.0
|
|
28849
28874
|
*/
|
|
28850
|
-
const make$
|
|
28875
|
+
const make$72 = (options) => withFiber((fiber) => {
|
|
28851
28876
|
const context = fiber.context;
|
|
28852
28877
|
const scope = get$14(context, Scope);
|
|
28853
28878
|
const self = makeUnsafe$4({
|
|
@@ -28993,7 +29018,7 @@ const release$1 = (self, key, entry) => withFiber((fiber) => {
|
|
|
28993
29018
|
return void_$1;
|
|
28994
29019
|
});
|
|
28995
29020
|
// ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
|
|
28996
|
-
const TypeId$
|
|
29021
|
+
const TypeId$53 = "~effect/RcRef";
|
|
28997
29022
|
const stateEmpty = { _tag: "Empty" };
|
|
28998
29023
|
const stateClosed = { _tag: "Closed" };
|
|
28999
29024
|
const variance = {
|
|
@@ -29001,7 +29026,7 @@ const variance = {
|
|
|
29001
29026
|
_E: identity
|
|
29002
29027
|
};
|
|
29003
29028
|
var RcRefImpl = class {
|
|
29004
|
-
[TypeId$
|
|
29029
|
+
[TypeId$53] = variance;
|
|
29005
29030
|
pipe() {
|
|
29006
29031
|
return pipeArguments(this, arguments);
|
|
29007
29032
|
}
|
|
@@ -29018,7 +29043,7 @@ var RcRefImpl = class {
|
|
|
29018
29043
|
}
|
|
29019
29044
|
};
|
|
29020
29045
|
/** @internal */
|
|
29021
|
-
const make$
|
|
29046
|
+
const make$71 = (options) => withFiber((fiber) => {
|
|
29022
29047
|
const context = fiber.context;
|
|
29023
29048
|
const scope = get$14(context, Scope);
|
|
29024
29049
|
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== void 0 ? fromInputUnsafe$1(options.idleTimeToLive) : void 0);
|
|
@@ -29157,7 +29182,7 @@ const release = (self, state) => {
|
|
|
29157
29182
|
* @category constructors
|
|
29158
29183
|
* @since 3.5.0
|
|
29159
29184
|
*/
|
|
29160
|
-
const make$
|
|
29185
|
+
const make$70 = make$71;
|
|
29161
29186
|
/**
|
|
29162
29187
|
* Gets the value from an `RcRef`, acquiring it first if needed.
|
|
29163
29188
|
*
|
|
@@ -29233,7 +29258,7 @@ const get$8 = get$9;
|
|
|
29233
29258
|
* @category type IDs
|
|
29234
29259
|
* @since 4.0.0
|
|
29235
29260
|
*/
|
|
29236
|
-
const TypeId$
|
|
29261
|
+
const TypeId$52 = "~effect/Stream";
|
|
29237
29262
|
/**
|
|
29238
29263
|
* Checks whether a value is a Stream.
|
|
29239
29264
|
*
|
|
@@ -29250,7 +29275,7 @@ const TypeId$50 = "~effect/Stream";
|
|
|
29250
29275
|
* @category guards
|
|
29251
29276
|
* @since 4.0.0
|
|
29252
29277
|
*/
|
|
29253
|
-
const isStream = (u) => hasProperty(u, TypeId$
|
|
29278
|
+
const isStream = (u) => hasProperty(u, TypeId$52);
|
|
29254
29279
|
/**
|
|
29255
29280
|
* Creates a stream from a array-emitting `Channel`.
|
|
29256
29281
|
*
|
|
@@ -29467,7 +29492,7 @@ const succeed$3 = (value) => fromChannel(succeed$4(of(value)));
|
|
|
29467
29492
|
* @category constructors
|
|
29468
29493
|
* @since 2.0.0
|
|
29469
29494
|
*/
|
|
29470
|
-
const make$
|
|
29495
|
+
const make$69 = (...values) => fromArray(values);
|
|
29471
29496
|
/**
|
|
29472
29497
|
* Creates a lazily constructed stream.
|
|
29473
29498
|
*
|
|
@@ -30886,7 +30911,7 @@ const toReadableStreamEffect = /*#__PURE__*/ dual((args) => isStream(args[0]), (
|
|
|
30886
30911
|
* @stability unstable
|
|
30887
30912
|
* @since 4.0.0
|
|
30888
30913
|
*/
|
|
30889
|
-
const TypeId$
|
|
30914
|
+
const TypeId$51 = "~effect/FileSystem";
|
|
30890
30915
|
/**
|
|
30891
30916
|
* Service tag for platform file-system operations.
|
|
30892
30917
|
*
|
|
@@ -30954,10 +30979,10 @@ const FileSystem = /*#__PURE__*/ Service$1("effect/FileSystem");
|
|
|
30954
30979
|
* @category constructors
|
|
30955
30980
|
* @since 4.0.0
|
|
30956
30981
|
*/
|
|
30957
|
-
const make$
|
|
30982
|
+
const make$68 = (impl) => FileSystem.of({
|
|
30958
30983
|
...impl,
|
|
30959
|
-
[TypeId$
|
|
30960
|
-
glob: make$
|
|
30984
|
+
[TypeId$51]: TypeId$51,
|
|
30985
|
+
glob: make$79(impl),
|
|
30961
30986
|
exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed$5(false) : fail$8(e))),
|
|
30962
30987
|
readFileString: (path, encoding) => flatMap$2(impl.readFile(path), (_) => try_({
|
|
30963
30988
|
try: () => new TextDecoder(encoding).decode(_),
|
|
@@ -31088,7 +31113,7 @@ var WatchBackend = class extends (/*#__PURE__*/ Service$1()("effect/FileSystem/W
|
|
|
31088
31113
|
* @category type IDs
|
|
31089
31114
|
* @since 4.0.0
|
|
31090
31115
|
*/
|
|
31091
|
-
const TypeId$
|
|
31116
|
+
const TypeId$50 = "~effect/Path";
|
|
31092
31117
|
/**
|
|
31093
31118
|
* Service tag for accessing the current `Path` implementation.
|
|
31094
31119
|
*
|
|
@@ -31176,9 +31201,9 @@ const Path$1 = /*#__PURE__*/ Service$1("effect/Path");
|
|
|
31176
31201
|
* @category constructors
|
|
31177
31202
|
* @since 4.0.0
|
|
31178
31203
|
*/
|
|
31179
|
-
const make$
|
|
31204
|
+
const make$67 = (impl) => Path$1.of({
|
|
31180
31205
|
...impl,
|
|
31181
|
-
[TypeId$
|
|
31206
|
+
[TypeId$50]: TypeId$50,
|
|
31182
31207
|
resolveWithin(root, input) {
|
|
31183
31208
|
if (impl.parse(input).root !== "") return none();
|
|
31184
31209
|
const base = impl.resolve(root);
|
|
@@ -31271,7 +31296,7 @@ const fromOptionExit = (option) => option._tag === "None" ? missingExit : succee
|
|
|
31271
31296
|
* @stability stable
|
|
31272
31297
|
* @since 4.0.0
|
|
31273
31298
|
*/
|
|
31274
|
-
const TypeId$
|
|
31299
|
+
const TypeId$49 = "~effect/SchemaIssue/Issue";
|
|
31275
31300
|
/**
|
|
31276
31301
|
* Returns `true` if the given value is an {@link Issue}.
|
|
31277
31302
|
*
|
|
@@ -31302,7 +31327,7 @@ const TypeId$47 = "~effect/SchemaIssue/Issue";
|
|
|
31302
31327
|
* @since 4.0.0
|
|
31303
31328
|
*/
|
|
31304
31329
|
function isIssue(u) {
|
|
31305
|
-
return hasProperty(u, TypeId$
|
|
31330
|
+
return hasProperty(u, TypeId$49) && u[TypeId$49] === TypeId$49;
|
|
31306
31331
|
}
|
|
31307
31332
|
/**
|
|
31308
31333
|
* Returns `true` when an issue contains an input reported by the schema parser.
|
|
@@ -31338,7 +31363,7 @@ function hasInput(issue) {
|
|
|
31338
31363
|
return Object.hasOwn(issue, "input");
|
|
31339
31364
|
}
|
|
31340
31365
|
var IssueNodeImpl = class {
|
|
31341
|
-
[TypeId$
|
|
31366
|
+
[TypeId$49] = TypeId$49;
|
|
31342
31367
|
constructor(input, options) {
|
|
31343
31368
|
if (options?.reportInput === true && input !== missing) this.input = input;
|
|
31344
31369
|
}
|
|
@@ -31683,7 +31708,7 @@ const defaultLeafHook = (issue) => {
|
|
|
31683
31708
|
*/
|
|
31684
31709
|
const defaultCheckHook = (issue) => findMessage(issue) ?? findMessage(issue.issue);
|
|
31685
31710
|
function formatInput(issue) {
|
|
31686
|
-
return hasInput(issue) ? format$
|
|
31711
|
+
return hasInput(issue) ? format$4(issue.input) : void 0;
|
|
31687
31712
|
}
|
|
31688
31713
|
function findExpected(issue) {
|
|
31689
31714
|
const expected = issue.annotations?.expected;
|
|
@@ -31931,7 +31956,7 @@ const makeZonedUnsafe = makeZonedUnsafe$1;
|
|
|
31931
31956
|
* @category constructors
|
|
31932
31957
|
* @since 3.6.0
|
|
31933
31958
|
*/
|
|
31934
|
-
const make$
|
|
31959
|
+
const make$66 = make$82;
|
|
31935
31960
|
/**
|
|
31936
31961
|
* Converts a `DateTime` to a UTC `DateTime`.
|
|
31937
31962
|
*
|
|
@@ -33100,9 +33125,9 @@ function decodeUriComponent() {
|
|
|
33100
33125
|
* @stability stable
|
|
33101
33126
|
* @since 2.0.0
|
|
33102
33127
|
*/
|
|
33103
|
-
const TypeId$
|
|
33128
|
+
const TypeId$48 = "~effect/BigDecimal";
|
|
33104
33129
|
const BigDecimalProto = {
|
|
33105
|
-
[TypeId$
|
|
33130
|
+
[TypeId$48]: TypeId$48,
|
|
33106
33131
|
[symbol$3]() {
|
|
33107
33132
|
const normalized = normalize(this);
|
|
33108
33133
|
return combine$2(string$2(String(normalized.value)), number$2(normalized.scale));
|
|
@@ -33111,7 +33136,7 @@ const BigDecimalProto = {
|
|
|
33111
33136
|
return isBigDecimal(that) && compare(this, that) === 0;
|
|
33112
33137
|
},
|
|
33113
33138
|
toString() {
|
|
33114
|
-
return `BigDecimal(${format(this)})`;
|
|
33139
|
+
return `BigDecimal(${format$2(this)})`;
|
|
33115
33140
|
},
|
|
33116
33141
|
toJSON() {
|
|
33117
33142
|
return {
|
|
@@ -33150,7 +33175,7 @@ const BigDecimalProto = {
|
|
|
33150
33175
|
* @category guards
|
|
33151
33176
|
* @since 2.0.0
|
|
33152
33177
|
*/
|
|
33153
|
-
const isBigDecimal = (u) => hasProperty(u, TypeId$
|
|
33178
|
+
const isBigDecimal = (u) => hasProperty(u, TypeId$48);
|
|
33154
33179
|
/**
|
|
33155
33180
|
* Creates a `BigDecimal` from a `bigint` value and a safe integer scale.
|
|
33156
33181
|
*
|
|
@@ -33183,7 +33208,7 @@ const isBigDecimal = (u) => hasProperty(u, TypeId$46);
|
|
|
33183
33208
|
* @category constructors
|
|
33184
33209
|
* @since 2.0.0
|
|
33185
33210
|
*/
|
|
33186
|
-
const make$
|
|
33211
|
+
const make$65 = (value, scale) => {
|
|
33187
33212
|
if (!Number.isSafeInteger(scale)) throw new RangeError(`Scale must be a safe integer, got ${scale}`);
|
|
33188
33213
|
const o = Object.create(BigDecimalProto);
|
|
33189
33214
|
o.value = value;
|
|
@@ -33191,7 +33216,7 @@ const make$63 = (value, scale) => {
|
|
|
33191
33216
|
return o;
|
|
33192
33217
|
};
|
|
33193
33218
|
const makeNormalized = (value, scale) => {
|
|
33194
|
-
const o = make$
|
|
33219
|
+
const o = make$65(value, scale);
|
|
33195
33220
|
o.normalized = o;
|
|
33196
33221
|
return o;
|
|
33197
33222
|
};
|
|
@@ -33315,7 +33340,7 @@ const sign$2 = (n) => n.value === bigint0 ? 0 : n.value < bigint0 ? -1 : 1;
|
|
|
33315
33340
|
* @category converting
|
|
33316
33341
|
* @since 2.0.0
|
|
33317
33342
|
*/
|
|
33318
|
-
const format = (n) => {
|
|
33343
|
+
const format$2 = (n) => {
|
|
33319
33344
|
const normalized = normalize(n);
|
|
33320
33345
|
if (Math.abs(normalized.scale) >= 16) return toExponential(normalized);
|
|
33321
33346
|
const negative = normalized.value < bigint0;
|
|
@@ -33409,7 +33434,7 @@ const Middleware = class extends Class$3 {
|
|
|
33409
33434
|
return new Middleware(this.encode, this.decode);
|
|
33410
33435
|
}
|
|
33411
33436
|
};
|
|
33412
|
-
const TypeId$
|
|
33437
|
+
const TypeId$47 = "~effect/SchemaTransformation/Transformation";
|
|
33413
33438
|
/**
|
|
33414
33439
|
* Constructs a bidirectional schema transformation from its decode and encode getters.
|
|
33415
33440
|
*
|
|
@@ -33418,7 +33443,7 @@ const TypeId$45 = "~effect/SchemaTransformation/Transformation";
|
|
|
33418
33443
|
* @since 4.0.0
|
|
33419
33444
|
*/
|
|
33420
33445
|
const Transformation = class extends Class$3 {
|
|
33421
|
-
[TypeId$
|
|
33446
|
+
[TypeId$47] = TypeId$47;
|
|
33422
33447
|
_tag = "Transformation";
|
|
33423
33448
|
decode;
|
|
33424
33449
|
encode;
|
|
@@ -33461,7 +33486,7 @@ const Transformation = class extends Class$3 {
|
|
|
33461
33486
|
* @since 4.0.0
|
|
33462
33487
|
*/
|
|
33463
33488
|
function isTransformation(u) {
|
|
33464
|
-
return hasProperty(u, TypeId$
|
|
33489
|
+
return hasProperty(u, TypeId$47) && u[TypeId$47] === TypeId$47;
|
|
33465
33490
|
}
|
|
33466
33491
|
/**
|
|
33467
33492
|
* Constructs a `Transformation` from an object with `decode` and `encode`
|
|
@@ -33717,9 +33742,9 @@ const decodeJsonError = (input) => {
|
|
|
33717
33742
|
const encodeUnknownAsJson = (input) => {
|
|
33718
33743
|
try {
|
|
33719
33744
|
const json = formatJson(input);
|
|
33720
|
-
return json === void 0 ? format$
|
|
33745
|
+
return json === void 0 ? format$4(input) : JSON.parse(json);
|
|
33721
33746
|
} catch {
|
|
33722
|
-
return format$
|
|
33747
|
+
return format$4(input);
|
|
33723
33748
|
}
|
|
33724
33749
|
};
|
|
33725
33750
|
const encodeJsonError = (input, options, encodeDefect) => {
|
|
@@ -34074,9 +34099,9 @@ const Context = class {
|
|
|
34074
34099
|
this.annotations = annotations;
|
|
34075
34100
|
}
|
|
34076
34101
|
};
|
|
34077
|
-
const TypeId$
|
|
34102
|
+
const TypeId$46 = "~effect/Schema";
|
|
34078
34103
|
var ASTNodeImpl = class {
|
|
34079
|
-
[TypeId$
|
|
34104
|
+
[TypeId$46] = TypeId$46;
|
|
34080
34105
|
annotations;
|
|
34081
34106
|
checks;
|
|
34082
34107
|
encoding;
|
|
@@ -34427,7 +34452,7 @@ const Literal$1 = class extends ASTNodeImpl {
|
|
|
34427
34452
|
literal;
|
|
34428
34453
|
constructor(literal, annotations, checks, encoding, context) {
|
|
34429
34454
|
super(annotations, checks, encoding, context);
|
|
34430
|
-
if (typeof literal === "number" && !globalThis.Number.isFinite(literal)) throw new Error(`A numeric literal must be finite, got ${format$
|
|
34455
|
+
if (typeof literal === "number" && !globalThis.Number.isFinite(literal)) throw new Error(`A numeric literal must be finite, got ${format$4(literal)}`);
|
|
34431
34456
|
this.literal = literal;
|
|
34432
34457
|
}
|
|
34433
34458
|
/** @internal */
|
|
@@ -36312,7 +36337,7 @@ const makeHandle$1 = (params) => Object.setPrototypeOf({ ...params }, HandleProt
|
|
|
36312
36337
|
* @category constructors
|
|
36313
36338
|
* @since 4.0.0
|
|
36314
36339
|
*/
|
|
36315
|
-
const make$
|
|
36340
|
+
const make$64 = (spawn) => {
|
|
36316
36341
|
const streamString = (command, options) => spawn(command).pipe(map$5((handle) => decodeText$1(options?.includeStderr === true ? handle.all : drainFork(handle.stdout, handle.stderr))), unwrap$4);
|
|
36317
36342
|
const streamLines = (command, options) => splitLines(streamString(command, options));
|
|
36318
36343
|
return ChildProcessSpawner.of({
|
|
@@ -36356,7 +36381,7 @@ const stringOrRedacted = (val) => typeof val === "string" ? val : value$3(val);
|
|
|
36356
36381
|
* @stability stable
|
|
36357
36382
|
* @since 3.3.0
|
|
36358
36383
|
*/
|
|
36359
|
-
const TypeId$
|
|
36384
|
+
const TypeId$45 = "~effect/Redacted";
|
|
36360
36385
|
/**
|
|
36361
36386
|
* Returns `true` if a value is a `Redacted` wrapper.
|
|
36362
36387
|
*
|
|
@@ -36385,7 +36410,7 @@ const TypeId$43 = "~effect/Redacted";
|
|
|
36385
36410
|
* @category guards
|
|
36386
36411
|
* @since 3.3.0
|
|
36387
36412
|
*/
|
|
36388
|
-
const isRedacted = (u) => hasProperty(u, TypeId$
|
|
36413
|
+
const isRedacted = (u) => hasProperty(u, TypeId$45);
|
|
36389
36414
|
/**
|
|
36390
36415
|
* Creates a `Redacted` wrapper for a sensitive value.
|
|
36391
36416
|
*
|
|
@@ -36413,14 +36438,14 @@ const isRedacted = (u) => hasProperty(u, TypeId$43);
|
|
|
36413
36438
|
* @category constructors
|
|
36414
36439
|
* @since 3.3.0
|
|
36415
36440
|
*/
|
|
36416
|
-
const make$
|
|
36441
|
+
const make$63 = (value, options) => {
|
|
36417
36442
|
const self = Object.create(Proto$22);
|
|
36418
36443
|
if (options?.label) self.label = options.label;
|
|
36419
36444
|
redactedRegistry.set(self, value);
|
|
36420
36445
|
return self;
|
|
36421
36446
|
};
|
|
36422
36447
|
const Proto$22 = {
|
|
36423
|
-
[TypeId$
|
|
36448
|
+
[TypeId$45]: { _A: (_) => _ },
|
|
36424
36449
|
label: void 0,
|
|
36425
36450
|
...PipeInspectableProto,
|
|
36426
36451
|
toJSON() {
|
|
@@ -36488,7 +36513,7 @@ const value$2 = value$3;
|
|
|
36488
36513
|
* @category instances
|
|
36489
36514
|
* @since 4.0.0
|
|
36490
36515
|
*/
|
|
36491
|
-
const makeEquivalence = (isEquivalent) => make$
|
|
36516
|
+
const makeEquivalence = (isEquivalent) => make$89((x, y) => isEquivalent(value$2(x), value$2(y)));
|
|
36492
36517
|
// ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/process/CommandLine.js
|
|
36493
36518
|
/**
|
|
36494
36519
|
* Builds command lines, the single strings that a shell or a Windows program
|
|
@@ -36751,7 +36776,7 @@ const parseTemplate$1 = (texts, values) => {
|
|
|
36751
36776
|
const endWord = () => {
|
|
36752
36777
|
if (word.length === 0) return;
|
|
36753
36778
|
const value = word.map(unwrap$3).join("");
|
|
36754
|
-
words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ? make$
|
|
36779
|
+
words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ? make$63(value) : value);
|
|
36755
36780
|
word = [];
|
|
36756
36781
|
plain = true;
|
|
36757
36782
|
braceDepth = 0;
|
|
@@ -36827,7 +36852,7 @@ const parseTemplate$1 = (texts, values) => {
|
|
|
36827
36852
|
* @stability unstable
|
|
36828
36853
|
* @since 4.0.0
|
|
36829
36854
|
*/
|
|
36830
|
-
const TypeId$
|
|
36855
|
+
const TypeId$44 = "~effect/process/ChildProcess";
|
|
36831
36856
|
const Proto$21 = {
|
|
36832
36857
|
.../*#__PURE__*/ Prototype({
|
|
36833
36858
|
label: "Command",
|
|
@@ -36835,7 +36860,7 @@ const Proto$21 = {
|
|
|
36835
36860
|
return getUnsafe$2(fiber.context, ChildProcessSpawner).spawn(this);
|
|
36836
36861
|
}
|
|
36837
36862
|
}),
|
|
36838
|
-
[TypeId$
|
|
36863
|
+
[TypeId$44]: TypeId$44
|
|
36839
36864
|
};
|
|
36840
36865
|
const makeStandardCommand = (command, args, options) => Object.assign(Object.create(Proto$21), {
|
|
36841
36866
|
_tag: "StandardCommand",
|
|
@@ -36894,7 +36919,7 @@ const makeStandardCommand = (command, args, options) => Object.assign(Object.cre
|
|
|
36894
36919
|
* @category constructors
|
|
36895
36920
|
* @since 4.0.0
|
|
36896
36921
|
*/
|
|
36897
|
-
const make$
|
|
36922
|
+
const make$62 = function make(...args) {
|
|
36898
36923
|
if (isTemplateString(args[0])) {
|
|
36899
36924
|
const [templates, ...expressions] = args;
|
|
36900
36925
|
const [command, cmdArgs] = parseTemplate(templates, expressions);
|
|
@@ -37215,7 +37240,7 @@ const fromReadableChannel = (options) => fromTransform$1((_, scope) => readableT
|
|
|
37215
37240
|
*/
|
|
37216
37241
|
const fromDuplex$1 = (options) => fromTransform$1((upstream, scope) => {
|
|
37217
37242
|
const duplex = options.evaluate();
|
|
37218
|
-
const exit = make$
|
|
37243
|
+
const exit = make$77(void 0);
|
|
37219
37244
|
const latch = makeUnsafe$6(false);
|
|
37220
37245
|
return pullIntoWritable({
|
|
37221
37246
|
pull: upstream,
|
|
@@ -37326,7 +37351,7 @@ const readableToPullUnsafe = (options) => {
|
|
|
37326
37351
|
const readable = options.readable;
|
|
37327
37352
|
const chunkSize = options.chunkSize ?? 4096;
|
|
37328
37353
|
const closeOnDone = options.closeOnDone ?? true;
|
|
37329
|
-
const exit = options.exit ?? make$
|
|
37354
|
+
const exit = options.exit ?? make$77(void 0);
|
|
37330
37355
|
const latch = options.latch ?? makeUnsafe$6(false);
|
|
37331
37356
|
function onReadable() {
|
|
37332
37357
|
latch.openUnsafe();
|
|
@@ -37789,7 +37814,7 @@ const layer$22 = /*#__PURE__*/ effect(ChildProcessSpawner, /* @__PURE__ */ gen(f
|
|
|
37789
37814
|
const stdinConfig = resolveStdinOption(command.options);
|
|
37790
37815
|
const sourceStream = unwrap$4(succeed$5(getSourceStream(handles[handles.length - 1], options.from)));
|
|
37791
37816
|
const toOption = options.to ?? "stdin";
|
|
37792
|
-
if (toOption === "stdin") handles.push(yield* spawnCommand(make$
|
|
37817
|
+
if (toOption === "stdin") handles.push(yield* spawnCommand(make$62(command.command, command.args, {
|
|
37793
37818
|
...command.options,
|
|
37794
37819
|
stdin: {
|
|
37795
37820
|
...stdinConfig,
|
|
@@ -37809,14 +37834,14 @@ const layer$22 = /*#__PURE__*/ effect(ChildProcessSpawner, /* @__PURE__ */ gen(f
|
|
|
37809
37834
|
type: "input",
|
|
37810
37835
|
stream: sourceStream
|
|
37811
37836
|
};
|
|
37812
|
-
handles.push(yield* spawnCommand(make$
|
|
37837
|
+
handles.push(yield* spawnCommand(make$62(command.command, command.args, {
|
|
37813
37838
|
...command.options,
|
|
37814
37839
|
additionalFds: {
|
|
37815
37840
|
...existingFds,
|
|
37816
37841
|
[fdName$1]: fdConfig
|
|
37817
37842
|
}
|
|
37818
37843
|
})));
|
|
37819
|
-
} else handles.push(yield* spawnCommand(make$
|
|
37844
|
+
} else handles.push(yield* spawnCommand(make$62(command.command, command.args, {
|
|
37820
37845
|
...command.options,
|
|
37821
37846
|
stdin: {
|
|
37822
37847
|
...stdinConfig,
|
|
@@ -37848,7 +37873,7 @@ const layer$22 = /*#__PURE__*/ effect(ChildProcessSpawner, /* @__PURE__ */ gen(f
|
|
|
37848
37873
|
}
|
|
37849
37874
|
}
|
|
37850
37875
|
});
|
|
37851
|
-
return make$
|
|
37876
|
+
return make$64(spawnCommand);
|
|
37852
37877
|
}));
|
|
37853
37878
|
/**
|
|
37854
37879
|
* Flattens a `Command` into an array of `StandardCommand`s along with pipe
|
|
@@ -37931,7 +37956,7 @@ const RefProto = {
|
|
|
37931
37956
|
*/
|
|
37932
37957
|
const makeUnsafe$2 = (value) => {
|
|
37933
37958
|
const self = Object.create(RefProto);
|
|
37934
|
-
self.ref = make$
|
|
37959
|
+
self.ref = make$77(value);
|
|
37935
37960
|
return self;
|
|
37936
37961
|
};
|
|
37937
37962
|
/**
|
|
@@ -37960,7 +37985,7 @@ const makeUnsafe$2 = (value) => {
|
|
|
37960
37985
|
* @category constructors
|
|
37961
37986
|
* @since 2.0.0
|
|
37962
37987
|
*/
|
|
37963
|
-
const make$
|
|
37988
|
+
const make$60 = (value) => sync(() => makeUnsafe$2(value));
|
|
37964
37989
|
/**
|
|
37965
37990
|
* Gets the current value of the Ref.
|
|
37966
37991
|
*
|
|
@@ -38129,7 +38154,7 @@ const updateAndGet$1 = /*#__PURE__*/ dual(2, (self, f) => sync(() => self.ref.cu
|
|
|
38129
38154
|
* @stability unstable
|
|
38130
38155
|
* @since 4.0.0
|
|
38131
38156
|
*/
|
|
38132
|
-
const TypeId$
|
|
38157
|
+
const TypeId$43 = "~effect/http/Cookies";
|
|
38133
38158
|
/**
|
|
38134
38159
|
* Returns `true` when a value is a `Cookies` collection.
|
|
38135
38160
|
*
|
|
@@ -38137,7 +38162,7 @@ const TypeId$41 = "~effect/http/Cookies";
|
|
|
38137
38162
|
* @category guards
|
|
38138
38163
|
* @since 4.0.0
|
|
38139
38164
|
*/
|
|
38140
|
-
const isCookies = (u) => hasProperty(u, TypeId$
|
|
38165
|
+
const isCookies = (u) => hasProperty(u, TypeId$43);
|
|
38141
38166
|
const CookieTypeId = "~effect/http/Cookies/Cookie";
|
|
38142
38167
|
const CookieErrorTypeId = "~effect/http/Cookies/CookieError";
|
|
38143
38168
|
/**
|
|
@@ -38191,7 +38216,7 @@ var CookiesError = class CookiesError extends (/*#__PURE__*/ TaggedError$1("Cook
|
|
|
38191
38216
|
}
|
|
38192
38217
|
};
|
|
38193
38218
|
const Proto$20 = {
|
|
38194
|
-
[TypeId$
|
|
38219
|
+
[TypeId$43]: TypeId$43,
|
|
38195
38220
|
...BaseProto,
|
|
38196
38221
|
toJSON() {
|
|
38197
38222
|
return {
|
|
@@ -38538,9 +38563,9 @@ const tryDecodeURIComponent = (str) => {
|
|
|
38538
38563
|
* @category type IDs
|
|
38539
38564
|
* @since 4.0.0
|
|
38540
38565
|
*/
|
|
38541
|
-
const TypeId$
|
|
38566
|
+
const TypeId$42 = /*#__PURE__*/ Symbol.for("~effect/http/Headers");
|
|
38542
38567
|
const Proto$19 = /*#__PURE__*/ Object.defineProperties(/*#__PURE__*/ Object.create(null), {
|
|
38543
|
-
[TypeId$
|
|
38568
|
+
[TypeId$42]: { value: TypeId$42 },
|
|
38544
38569
|
[symbolRedactable]: { value(context) {
|
|
38545
38570
|
return redact$1(this, get$14(context, CurrentRedactedNames$1));
|
|
38546
38571
|
} },
|
|
@@ -38556,7 +38581,7 @@ const Proto$19 = /*#__PURE__*/ Object.defineProperties(/*#__PURE__*/ Object.crea
|
|
|
38556
38581
|
toString: { value: BaseProto.toString },
|
|
38557
38582
|
[NodeInspectSymbol]: { value: BaseProto[NodeInspectSymbol] }
|
|
38558
38583
|
});
|
|
38559
|
-
const make$
|
|
38584
|
+
const make$59 = (input) => Object.assign(Object.create(Proto$19), input);
|
|
38560
38585
|
/**
|
|
38561
38586
|
* Provides an `Equivalence` instance that compares `Headers` by header names
|
|
38562
38587
|
* and string values.
|
|
@@ -38633,7 +38658,7 @@ const get$6 = /*#__PURE__*/ dual(2, (self, key) => fromUndefinedOr(self[key.toLo
|
|
|
38633
38658
|
* @since 4.0.0
|
|
38634
38659
|
*/
|
|
38635
38660
|
const set$3 = /*#__PURE__*/ dual(3, (self, key, value) => {
|
|
38636
|
-
const out = make$
|
|
38661
|
+
const out = make$59(self);
|
|
38637
38662
|
out[key.toLowerCase()] = value;
|
|
38638
38663
|
return out;
|
|
38639
38664
|
});
|
|
@@ -38648,7 +38673,7 @@ const set$3 = /*#__PURE__*/ dual(3, (self, key, value) => {
|
|
|
38648
38673
|
* @category combinators
|
|
38649
38674
|
* @since 4.0.0
|
|
38650
38675
|
*/
|
|
38651
|
-
const setAll$1 = /*#__PURE__*/ dual(2, (self, headers) => make$
|
|
38676
|
+
const setAll$1 = /*#__PURE__*/ dual(2, (self, headers) => make$59({
|
|
38652
38677
|
...self,
|
|
38653
38678
|
...fromInput$1(headers)
|
|
38654
38679
|
}));
|
|
@@ -38664,7 +38689,7 @@ const setAll$1 = /*#__PURE__*/ dual(2, (self, headers) => make$57({
|
|
|
38664
38689
|
* @since 4.0.0
|
|
38665
38690
|
*/
|
|
38666
38691
|
const merge = /*#__PURE__*/ dual(2, (self, headers) => {
|
|
38667
|
-
const out = make$
|
|
38692
|
+
const out = make$59(self);
|
|
38668
38693
|
Object.assign(out, headers);
|
|
38669
38694
|
return out;
|
|
38670
38695
|
});
|
|
@@ -38680,7 +38705,7 @@ const merge = /*#__PURE__*/ dual(2, (self, headers) => {
|
|
|
38680
38705
|
* @since 4.0.0
|
|
38681
38706
|
*/
|
|
38682
38707
|
const remove$3 = /*#__PURE__*/ dual(2, (self, key) => {
|
|
38683
|
-
const out = make$
|
|
38708
|
+
const out = make$59(self);
|
|
38684
38709
|
delete out[key.toLowerCase()];
|
|
38685
38710
|
return out;
|
|
38686
38711
|
});
|
|
@@ -38700,8 +38725,8 @@ const redact$1 = /*#__PURE__*/ dual(2, (self, key) => {
|
|
|
38700
38725
|
const modify = (key) => {
|
|
38701
38726
|
if (typeof key === "string") {
|
|
38702
38727
|
const k = key.toLowerCase();
|
|
38703
|
-
if (k in self) out[k] = make$
|
|
38704
|
-
} else for (const name in self) if (name.search(key) !== -1) out[name] = make$
|
|
38728
|
+
if (k in self) out[k] = make$63(self[k]);
|
|
38729
|
+
} else for (const name in self) if (name.search(key) !== -1) out[name] = make$63(self[name]);
|
|
38705
38730
|
};
|
|
38706
38731
|
if (Array.isArray(key)) for (let i = 0; i < key.length; i++) modify(key[i]);
|
|
38707
38732
|
else modify(key);
|
|
@@ -38943,7 +38968,7 @@ const retryAfterDelay$1 = (self, now) => self._tag === "Duration" ? self.duratio
|
|
|
38943
38968
|
* @stability unstable
|
|
38944
38969
|
* @since 4.0.0
|
|
38945
38970
|
*/
|
|
38946
|
-
const TypeId$
|
|
38971
|
+
const TypeId$41 = "~effect/crypto/CryptoError";
|
|
38947
38972
|
const ReasonTypeId$2 = "~effect/crypto/CryptoError/Reason";
|
|
38948
38973
|
/**
|
|
38949
38974
|
* Reason for an argument that the operation rejects before using the key or
|
|
@@ -39096,7 +39121,7 @@ var CryptoError = class extends (/*#__PURE__*/ TaggedError$1("CryptoError")) {
|
|
|
39096
39121
|
*
|
|
39097
39122
|
* @since 4.0.0
|
|
39098
39123
|
*/
|
|
39099
|
-
[TypeId$
|
|
39124
|
+
[TypeId$41] = TypeId$41;
|
|
39100
39125
|
/**
|
|
39101
39126
|
* The reason's cause, when it has one.
|
|
39102
39127
|
*
|
|
@@ -39962,7 +39987,7 @@ const redactedProto = (typeId, label) => ({
|
|
|
39962
39987
|
};
|
|
39963
39988
|
},
|
|
39964
39989
|
toString() {
|
|
39965
|
-
return format$
|
|
39990
|
+
return format$4(this.toJSON());
|
|
39966
39991
|
},
|
|
39967
39992
|
[NodeInspectSymbol]() {
|
|
39968
39993
|
return this.toJSON();
|
|
@@ -39972,7 +39997,7 @@ const redactedProto = (typeId, label) => ({
|
|
|
39972
39997
|
* Builds a key. Keys compare by reference: comparing key bytes is not constant
|
|
39973
39998
|
* time, and structural equality would let secret keys act as `HashMap` keys.
|
|
39974
39999
|
*/
|
|
39975
|
-
const make$
|
|
40000
|
+
const make$58 = (proto, algorithm, material) => byReferenceUnsafe(Object.create(proto, {
|
|
39976
40001
|
algorithm: {
|
|
39977
40002
|
value: algorithm,
|
|
39978
40003
|
enumerable: true
|
|
@@ -39980,7 +40005,7 @@ const make$56 = (proto, algorithm, material) => byReferenceUnsafe(Object.create(
|
|
|
39980
40005
|
[MaterialId]: { value: material }
|
|
39981
40006
|
}));
|
|
39982
40007
|
/** @internal */
|
|
39983
|
-
const makeBytes = (proto, algorithm, bytes) => make$
|
|
40008
|
+
const makeBytes = (proto, algorithm, bytes) => make$58(proto, algorithm, {
|
|
39984
40009
|
_tag: "Bytes",
|
|
39985
40010
|
bytes
|
|
39986
40011
|
});
|
|
@@ -40043,7 +40068,7 @@ const importedAlgorithm = (algorithm, cryptoKey) => {
|
|
|
40043
40068
|
*/
|
|
40044
40069
|
const fromCryptoKey$3 = (module, method, proto, algorithm, cryptoKey, expected) => suspend$2(() => {
|
|
40045
40070
|
const problem = checkCryptoKey(cryptoKey, expected);
|
|
40046
|
-
return problem === void 0 ? succeed$5(make$
|
|
40071
|
+
return problem === void 0 ? succeed$5(make$58(proto, importedAlgorithm(algorithm, cryptoKey), {
|
|
40047
40072
|
_tag: "CryptoKey",
|
|
40048
40073
|
cryptoKey
|
|
40049
40074
|
})) : invalidKey$2(module, method, problem);
|
|
@@ -40056,7 +40081,7 @@ const exportRaw = async (subtle, cryptoKey) => new Uint8Array(await subtle.expor
|
|
|
40056
40081
|
*
|
|
40057
40082
|
* @internal
|
|
40058
40083
|
*/
|
|
40059
|
-
const toBytes$
|
|
40084
|
+
const toBytes$6 = (module, key, exportKey) => suspend$2(() => {
|
|
40060
40085
|
const stored = material(key);
|
|
40061
40086
|
if (stored._tag === "Bytes") return succeed$5(copyBytes(stored.bytes));
|
|
40062
40087
|
if (!stored.cryptoKey.extractable) return notExtractable(module, "toBytes");
|
|
@@ -40309,7 +40334,7 @@ const makeUuid = (bytes, randomBytes, format) => {
|
|
|
40309
40334
|
* @category constructors
|
|
40310
40335
|
* @since 4.0.0
|
|
40311
40336
|
*/
|
|
40312
|
-
const make$
|
|
40337
|
+
const make$57 = (randomBytes) => {
|
|
40313
40338
|
const randomBytesChecked = (size) => {
|
|
40314
40339
|
checkSize(size);
|
|
40315
40340
|
return randomBytes(size);
|
|
@@ -40355,7 +40380,7 @@ const fillRandom = (crypto, size) => {
|
|
|
40355
40380
|
* @category layers
|
|
40356
40381
|
* @since 4.0.0
|
|
40357
40382
|
*/
|
|
40358
|
-
const layerWebCrypto$7 = /*#__PURE__*/ effect(SecureRandom, /*#__PURE__*/ WebCrypto.use((crypto) => succeed$5(make$
|
|
40383
|
+
const layerWebCrypto$7 = /*#__PURE__*/ effect(SecureRandom, /*#__PURE__*/ WebCrypto.use((crypto) => succeed$5(make$57((size) => fillRandom(crypto, size)))));
|
|
40359
40384
|
/**
|
|
40360
40385
|
* Synchronously generates `size` cryptographically secure random bytes from
|
|
40361
40386
|
* `globalThis.crypto`.
|
|
@@ -40433,10 +40458,10 @@ var Aead_exports = /* @__PURE__ */ __exportAll({
|
|
|
40433
40458
|
key: () => key$3,
|
|
40434
40459
|
layerWebCrypto: () => layerWebCrypto$6,
|
|
40435
40460
|
layerWebCryptoWith: () => layerWebCryptoWith$1,
|
|
40436
|
-
toBytes: () => toBytes$
|
|
40461
|
+
toBytes: () => toBytes$5,
|
|
40437
40462
|
xchacha20Poly1305: () => xchacha20Poly1305
|
|
40438
40463
|
});
|
|
40439
|
-
const TypeId$
|
|
40464
|
+
const TypeId$40 = "~effect/crypto/Aead/Key";
|
|
40440
40465
|
/**
|
|
40441
40466
|
* AES-128-GCM, with a 16-byte key and a 12-byte nonce.
|
|
40442
40467
|
*
|
|
@@ -40505,7 +40530,7 @@ const xchacha20Poly1305 = {
|
|
|
40505
40530
|
nonceLength: 24,
|
|
40506
40531
|
implementation: /* @__PURE__ */ chachaImplementation(xchacha20Poly1305$1)
|
|
40507
40532
|
};
|
|
40508
|
-
const KeyProto$3 = /*#__PURE__*/ redactedProto(TypeId$
|
|
40533
|
+
const KeyProto$3 = /*#__PURE__*/ redactedProto(TypeId$40, "Aead.Key");
|
|
40509
40534
|
/**
|
|
40510
40535
|
* Checks whether a value is a {@link Key}.
|
|
40511
40536
|
*
|
|
@@ -40513,7 +40538,7 @@ const KeyProto$3 = /*#__PURE__*/ redactedProto(TypeId$38, "Aead.Key");
|
|
|
40513
40538
|
* @category guards
|
|
40514
40539
|
* @since 4.0.0
|
|
40515
40540
|
*/
|
|
40516
|
-
const isKey$3 = (u) => hasProperty(u, TypeId$
|
|
40541
|
+
const isKey$3 = (u) => hasProperty(u, TypeId$40);
|
|
40517
40542
|
/**
|
|
40518
40543
|
* Service that generates keys, encrypts, and decrypts with authentication.
|
|
40519
40544
|
*
|
|
@@ -40702,7 +40727,7 @@ const fromCryptoKey$2 = (algorithm, cryptoKey) => algorithm.implementation !== v
|
|
|
40702
40727
|
* @category converting
|
|
40703
40728
|
* @since 4.0.0
|
|
40704
40729
|
*/
|
|
40705
|
-
const toBytes$
|
|
40730
|
+
const toBytes$5 = (key) => toBytes$6("Aead", key, exportRaw);
|
|
40706
40731
|
// ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/crypto/Cipher.js
|
|
40707
40732
|
/**
|
|
40708
40733
|
* Unauthenticated encryption with no integrity: compose with `Mac`.
|
|
@@ -40742,9 +40767,9 @@ var Cipher_exports = /* @__PURE__ */ __exportAll({
|
|
|
40742
40767
|
isKey: () => isKey$2,
|
|
40743
40768
|
key: () => key$2,
|
|
40744
40769
|
layerWebCrypto: () => layerWebCrypto$5,
|
|
40745
|
-
toBytes: () => toBytes$
|
|
40770
|
+
toBytes: () => toBytes$4
|
|
40746
40771
|
});
|
|
40747
|
-
const TypeId$
|
|
40772
|
+
const TypeId$39 = "~effect/crypto/Cipher/Key";
|
|
40748
40773
|
/**
|
|
40749
40774
|
* AES-128-CTR, with a 16-byte key.
|
|
40750
40775
|
*
|
|
@@ -40803,7 +40828,7 @@ const aes256Cbc = {
|
|
|
40803
40828
|
mode: "AES-CBC",
|
|
40804
40829
|
keyLength: 32
|
|
40805
40830
|
};
|
|
40806
|
-
const KeyProto$2 = /*#__PURE__*/ redactedProto(TypeId$
|
|
40831
|
+
const KeyProto$2 = /*#__PURE__*/ redactedProto(TypeId$39, "Cipher.Key");
|
|
40807
40832
|
/**
|
|
40808
40833
|
* Checks whether a value is a {@link Key}.
|
|
40809
40834
|
*
|
|
@@ -40811,7 +40836,7 @@ const KeyProto$2 = /*#__PURE__*/ redactedProto(TypeId$37, "Cipher.Key");
|
|
|
40811
40836
|
* @category guards
|
|
40812
40837
|
* @since 4.0.0
|
|
40813
40838
|
*/
|
|
40814
|
-
const isKey$2 = (u) => hasProperty(u, TypeId$
|
|
40839
|
+
const isKey$2 = (u) => hasProperty(u, TypeId$39);
|
|
40815
40840
|
/**
|
|
40816
40841
|
* Service that generates keys, encrypts, and decrypts without
|
|
40817
40842
|
* authentication.
|
|
@@ -40931,7 +40956,7 @@ const fromCryptoKey$1 = (algorithm, cryptoKey) => fromCryptoKey$3("Cipher", "fro
|
|
|
40931
40956
|
* @category converting
|
|
40932
40957
|
* @since 4.0.0
|
|
40933
40958
|
*/
|
|
40934
|
-
const toBytes$
|
|
40959
|
+
const toBytes$4 = (key) => toBytes$6("Cipher", key, exportRaw);
|
|
40935
40960
|
// ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/crypto/internal/asymmetric.js
|
|
40936
40961
|
const seedPrefix = (oid) => Uint8Array.of(48, 46, 2, 1, 0, 48, 5, 6, 3, 43, 101, oid, 4, 34, 4, 32);
|
|
40937
40962
|
/** @internal */
|
|
@@ -40997,7 +41022,7 @@ const exportKey = (subtle, cryptoKey, spec, role) => role === "private" ? export
|
|
|
40997
41022
|
*
|
|
40998
41023
|
* @internal
|
|
40999
41024
|
*/
|
|
41000
|
-
const toBytes$
|
|
41025
|
+
const toBytes$3 = (family, key) => toBytes$6(family.module, key, (subtle, cryptoKey) => exportKey(subtle, cryptoKey, family.specOf(key.algorithm), family.isPrivateKey(key) ? "private" : "public"));
|
|
41001
41026
|
/**
|
|
41002
41027
|
* Per-layer caches for imported byte-backed keys.
|
|
41003
41028
|
*
|
|
@@ -41418,9 +41443,9 @@ var Mac_exports = /* @__PURE__ */ __exportAll({
|
|
|
41418
41443
|
layerWebCrypto: () => layerWebCrypto$3,
|
|
41419
41444
|
layerWebCryptoWith: () => layerWebCryptoWith,
|
|
41420
41445
|
timingSafeEqual: () => timingSafeEqual,
|
|
41421
|
-
toBytes: () => toBytes$
|
|
41446
|
+
toBytes: () => toBytes$2
|
|
41422
41447
|
});
|
|
41423
|
-
const TypeId$
|
|
41448
|
+
const TypeId$38 = "~effect/crypto/Mac/Key";
|
|
41424
41449
|
/**
|
|
41425
41450
|
* HMAC with SHA-1, with a 20-byte tag.
|
|
41426
41451
|
*
|
|
@@ -41470,7 +41495,7 @@ const hmacSha512 = {
|
|
|
41470
41495
|
name: "hmacSha512",
|
|
41471
41496
|
hash: sha512
|
|
41472
41497
|
};
|
|
41473
|
-
const KeyProto$1 = /*#__PURE__*/ redactedProto(TypeId$
|
|
41498
|
+
const KeyProto$1 = /*#__PURE__*/ redactedProto(TypeId$38, "Mac.Key");
|
|
41474
41499
|
/**
|
|
41475
41500
|
* Checks whether a value is a {@link Key}.
|
|
41476
41501
|
*
|
|
@@ -41478,7 +41503,7 @@ const KeyProto$1 = /*#__PURE__*/ redactedProto(TypeId$36, "Mac.Key");
|
|
|
41478
41503
|
* @category guards
|
|
41479
41504
|
* @since 4.0.0
|
|
41480
41505
|
*/
|
|
41481
|
-
const isKey$1 = (u) => hasProperty(u, TypeId$
|
|
41506
|
+
const isKey$1 = (u) => hasProperty(u, TypeId$38);
|
|
41482
41507
|
const blockSizes = {
|
|
41483
41508
|
"MD5": 64,
|
|
41484
41509
|
"SHA-1": 64,
|
|
@@ -41645,7 +41670,7 @@ const fromCryptoKey = (algorithm, cryptoKey) => fromCryptoKey$3("Mac", "fromCryp
|
|
|
41645
41670
|
* @category converting
|
|
41646
41671
|
* @since 4.0.0
|
|
41647
41672
|
*/
|
|
41648
|
-
const toBytes$
|
|
41673
|
+
const toBytes$2 = (key) => toBytes$6("Mac", key, exportRaw);
|
|
41649
41674
|
/**
|
|
41650
41675
|
* Compares two byte arrays in constant time.
|
|
41651
41676
|
*
|
|
@@ -41757,7 +41782,7 @@ const family$1 = {
|
|
|
41757
41782
|
/** @internal */
|
|
41758
41783
|
const secretFamily = (algorithm) => "nonceLength" in algorithm ? Aead_exports : "mode" in algorithm ? Cipher_exports : "_tag" in algorithm ? {
|
|
41759
41784
|
key,
|
|
41760
|
-
toBytes
|
|
41785
|
+
toBytes: toBytes$1
|
|
41761
41786
|
} : Mac_exports;
|
|
41762
41787
|
const hmacParams = {
|
|
41763
41788
|
name: "HMAC",
|
|
@@ -41887,7 +41912,7 @@ const key = (algorithm, bytes) => fromBytes("KeyWrap", "key", KeyProto, algorith
|
|
|
41887
41912
|
* @category converting
|
|
41888
41913
|
* @since 4.0.0
|
|
41889
41914
|
*/
|
|
41890
|
-
const toBytes = (key) => isKey(key) ? toBytes$
|
|
41915
|
+
const toBytes$1 = (key) => isKey(key) ? toBytes$6("KeyWrap", key, exportRaw) : toBytes$3(family$1, key);
|
|
41891
41916
|
// ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/crypto/Signature.js
|
|
41892
41917
|
/**
|
|
41893
41918
|
* Digital signatures: Ed25519, ECDSA on P-256, P-384 and P-521, RSA-PSS, and
|
|
@@ -43099,7 +43124,7 @@ var HashMapImpl = class {
|
|
|
43099
43124
|
return toJson(this);
|
|
43100
43125
|
}
|
|
43101
43126
|
toString() {
|
|
43102
|
-
return `HashMap(${format$
|
|
43127
|
+
return `HashMap(${format$4(Array.from(this))})`;
|
|
43103
43128
|
}
|
|
43104
43129
|
toJSON() {
|
|
43105
43130
|
return {
|
|
@@ -43442,7 +43467,7 @@ const HashSetProto = {
|
|
|
43442
43467
|
return keys(keyMap(this));
|
|
43443
43468
|
},
|
|
43444
43469
|
toString() {
|
|
43445
|
-
return `HashSet(${format$
|
|
43470
|
+
return `HashSet(${format$4(Array.from(this))})`;
|
|
43446
43471
|
},
|
|
43447
43472
|
toJSON() {
|
|
43448
43473
|
return {
|
|
@@ -43608,7 +43633,7 @@ const toPath = (url) => {
|
|
|
43608
43633
|
* @stability unstable
|
|
43609
43634
|
* @since 4.0.0
|
|
43610
43635
|
*/
|
|
43611
|
-
const TypeId$
|
|
43636
|
+
const TypeId$37 = "~effect/http/UrlParams";
|
|
43612
43637
|
/**
|
|
43613
43638
|
* Returns `true` when a value is a `UrlParams` instance.
|
|
43614
43639
|
*
|
|
@@ -43616,10 +43641,10 @@ const TypeId$35 = "~effect/http/UrlParams";
|
|
|
43616
43641
|
* @category guards
|
|
43617
43642
|
* @since 4.0.0
|
|
43618
43643
|
*/
|
|
43619
|
-
const isUrlParams = (u) => hasProperty(u, TypeId$
|
|
43644
|
+
const isUrlParams = (u) => hasProperty(u, TypeId$37);
|
|
43620
43645
|
const Proto$18 = {
|
|
43621
43646
|
...PipeInspectableProto,
|
|
43622
|
-
[TypeId$
|
|
43647
|
+
[TypeId$37]: TypeId$37,
|
|
43623
43648
|
[Symbol.iterator]() {
|
|
43624
43649
|
return this.params[Symbol.iterator]();
|
|
43625
43650
|
},
|
|
@@ -43650,7 +43675,7 @@ const Proto$18 = {
|
|
|
43650
43675
|
* @category constructors
|
|
43651
43676
|
* @since 4.0.0
|
|
43652
43677
|
*/
|
|
43653
|
-
const make$
|
|
43678
|
+
const make$56 = (params) => {
|
|
43654
43679
|
const self = Object.create(Proto$18);
|
|
43655
43680
|
self.params = params;
|
|
43656
43681
|
return self;
|
|
@@ -43676,7 +43701,7 @@ const fromInput = (input) => {
|
|
|
43676
43701
|
const [keys, value] = parsed[i];
|
|
43677
43702
|
out.push([`${keys[0]}[${keys.slice(1).join("][")}]`, value]);
|
|
43678
43703
|
} else out.push(parsed[i]);
|
|
43679
|
-
return make$
|
|
43704
|
+
return make$56(out);
|
|
43680
43705
|
};
|
|
43681
43706
|
const fromInputNested = (input) => {
|
|
43682
43707
|
const entries = typeof input[Symbol.iterator] === "function" ? fromIterable$5(input) : Object.entries(input);
|
|
@@ -43702,7 +43727,7 @@ const coerce = (value) => isRedacted(value) ? value : String(value);
|
|
|
43702
43727
|
* @category instances
|
|
43703
43728
|
* @since 4.0.0
|
|
43704
43729
|
*/
|
|
43705
|
-
const Equivalence = /*#__PURE__*/ make$
|
|
43730
|
+
const Equivalence = /*#__PURE__*/ make$89((a, b) => arrayEquivalence(a.params, b.params));
|
|
43706
43731
|
const arrayEquivalence = /*#__PURE__*/ makeEquivalence$2(/*#__PURE__*/ makeEquivalence$4([/*#__PURE__*/ strictEqual(), /*#__PURE__*/ asEquivalence()]));
|
|
43707
43732
|
/**
|
|
43708
43733
|
* An empty `UrlParams` value.
|
|
@@ -43711,7 +43736,7 @@ const arrayEquivalence = /*#__PURE__*/ makeEquivalence$2(/*#__PURE__*/ makeEquiv
|
|
|
43711
43736
|
* @category constructors
|
|
43712
43737
|
* @since 4.0.0
|
|
43713
43738
|
*/
|
|
43714
|
-
const empty$3 = /*#__PURE__*/ make$
|
|
43739
|
+
const empty$3 = /*#__PURE__*/ make$56([]);
|
|
43715
43740
|
/**
|
|
43716
43741
|
* Sets multiple query parameters from input.
|
|
43717
43742
|
*
|
|
@@ -43732,7 +43757,7 @@ const setAll = /*#__PURE__*/ dual(2, (self, input) => {
|
|
|
43732
43757
|
if (keys.has(self.params[i][0])) continue;
|
|
43733
43758
|
params.push(self.params[i]);
|
|
43734
43759
|
}
|
|
43735
|
-
return make$
|
|
43760
|
+
return make$56(params);
|
|
43736
43761
|
});
|
|
43737
43762
|
/**
|
|
43738
43763
|
* Serializes `UrlParams` to a URL query string without a leading question mark.
|
|
@@ -43809,7 +43834,7 @@ const toReadonlyRecord = toRecord;
|
|
|
43809
43834
|
*/
|
|
43810
43835
|
const redact = /*#__PURE__*/ dual(2, (self, key) => {
|
|
43811
43836
|
const patterns = Array.isArray(key) ? key : [key];
|
|
43812
|
-
return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName(name, patterns) ? make$
|
|
43837
|
+
return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName(name, patterns) ? make$63(value) : value]);
|
|
43813
43838
|
});
|
|
43814
43839
|
/**
|
|
43815
43840
|
* Checks whether a parameter name matches one of the redaction patterns.
|
|
@@ -44188,7 +44213,7 @@ function makeOption(schema) {
|
|
|
44188
44213
|
* @category constructors
|
|
44189
44214
|
* @since 4.0.0
|
|
44190
44215
|
*/
|
|
44191
|
-
function make$
|
|
44216
|
+
function make$55(schema) {
|
|
44192
44217
|
return makeConstructorSync(toType$1(schema.ast));
|
|
44193
44218
|
}
|
|
44194
44219
|
/**
|
|
@@ -44429,12 +44454,12 @@ const normalCompiler = (ast) => resolve(ast).parser;
|
|
|
44429
44454
|
const constructorCompiler = (ast) => resolve(ast).makeEffect;
|
|
44430
44455
|
// ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/internal/schema/make.js
|
|
44431
44456
|
/** @internal */
|
|
44432
|
-
const TypeId$
|
|
44457
|
+
const TypeId$36 = "~effect/Schema/Schema";
|
|
44433
44458
|
const RebuildOptions = /*#__PURE__*/ Symbol();
|
|
44434
44459
|
const SchemaProto = {
|
|
44435
|
-
[TypeId$
|
|
44460
|
+
[TypeId$36]: TypeId$36,
|
|
44436
44461
|
get make() {
|
|
44437
|
-
const value = make$
|
|
44462
|
+
const value = make$55(this);
|
|
44438
44463
|
Object.defineProperty(this, "make", {
|
|
44439
44464
|
value,
|
|
44440
44465
|
enumerable: true
|
|
@@ -44470,11 +44495,11 @@ const SchemaProto = {
|
|
|
44470
44495
|
return this.rebuild(appendChecks(this.ast, checks));
|
|
44471
44496
|
},
|
|
44472
44497
|
rebuild(ast) {
|
|
44473
|
-
return make$
|
|
44498
|
+
return make$54(ast, this[RebuildOptions]);
|
|
44474
44499
|
}
|
|
44475
44500
|
};
|
|
44476
44501
|
/** @internal */
|
|
44477
|
-
function make$
|
|
44502
|
+
function make$54(ast, options) {
|
|
44478
44503
|
function Schema() {}
|
|
44479
44504
|
const self = Object.setPrototypeOf(Schema, SchemaProto);
|
|
44480
44505
|
if (options && (Object.hasOwn(options, "name") || Object.hasOwn(options, "length") || Object.hasOwn(options, "__proto__"))) Object.defineProperties(self, Object.getOwnPropertyDescriptors({ ...options }));
|
|
@@ -44726,7 +44751,7 @@ const PRE_2020_TO_2020_COLLISIONS = [
|
|
|
44726
44751
|
// ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/internal/schema/toCodec.js
|
|
44727
44752
|
/** @internal */
|
|
44728
44753
|
function toCodecJson$1(schema) {
|
|
44729
|
-
return make$
|
|
44754
|
+
return make$54(toCodecJsonAST(schema.ast), { schema });
|
|
44730
44755
|
}
|
|
44731
44756
|
/** @internal */
|
|
44732
44757
|
const toCodecJsonAST = /*#__PURE__*/ makeCodecDerivation(toCodecJsonASTStep);
|
|
@@ -44770,7 +44795,7 @@ function toCodecJsonASTStep(ast, recur) {
|
|
|
44770
44795
|
case "Declaration": {
|
|
44771
44796
|
const getLink = ast.annotations?.toCodecJson ?? ast.annotations?.toCodec;
|
|
44772
44797
|
if (!isFunction(getLink)) return replaceEncoding(ast, [unknownToJson]);
|
|
44773
|
-
const link = getLink(ast.typeParameters.map((tp) => make$
|
|
44798
|
+
const link = getLink(ast.typeParameters.map((tp) => make$54(toEncoded$1(tp))));
|
|
44774
44799
|
return link === void 0 ? ast : replaceEncoding(ast, [mapLink(link, recur)]);
|
|
44775
44800
|
}
|
|
44776
44801
|
case "Unknown": return replaceEncoding(ast, [unknownToJson]);
|
|
@@ -44797,7 +44822,7 @@ function toCodecJsonASTStep(ast, recur) {
|
|
|
44797
44822
|
}
|
|
44798
44823
|
/** @internal */
|
|
44799
44824
|
function toCodecStringTree$1(schema) {
|
|
44800
|
-
return make$
|
|
44825
|
+
return make$54(toCodecStringTreeAST(schema.ast), { schema });
|
|
44801
44826
|
}
|
|
44802
44827
|
const toStringTreeReorder = /*#__PURE__*/ makeReorder((ast) => {
|
|
44803
44828
|
switch (ast._tag) {
|
|
@@ -44813,7 +44838,7 @@ const toStringTreeReorder = /*#__PURE__*/ makeReorder((ast) => {
|
|
|
44813
44838
|
function toCodecStringTreeASTStep(ast, recur, onMissingAnnotation) {
|
|
44814
44839
|
switch (ast._tag) {
|
|
44815
44840
|
case "Declaration": {
|
|
44816
|
-
const typeParameters = ast.typeParameters.map((tp) => make$
|
|
44841
|
+
const typeParameters = ast.typeParameters.map((tp) => make$54(recur(toEncoded$1(tp))));
|
|
44817
44842
|
const getStringTreeLink = ast.annotations?.toCodecStringTree;
|
|
44818
44843
|
if (isFunction(getStringTreeLink)) {
|
|
44819
44844
|
const link = getStringTreeLink(typeParameters);
|
|
@@ -45866,8 +45891,186 @@ const SchemaErrorTypeId = "~effect/Schema/SchemaError";
|
|
|
45866
45891
|
function isSchemaError$1(u) {
|
|
45867
45892
|
return hasProperty(u, "~effect/Schema/SchemaError") && u["~effect/Schema/SchemaError"] === "~effect/Schema/SchemaError";
|
|
45868
45893
|
}
|
|
45894
|
+
// ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/net/IpInterface.js
|
|
45895
|
+
/**
|
|
45896
|
+
* IPv4 and IPv6 interface addresses that preserve host bits alongside a prefix length.
|
|
45897
|
+
*
|
|
45898
|
+
* @stability unstable
|
|
45899
|
+
* @since 4.0.0
|
|
45900
|
+
*/
|
|
45901
|
+
const TypeId$35 = "~effect/net/IpInterface";
|
|
45902
|
+
/**
|
|
45903
|
+
* Returns `true` when a value is an IP interface address.
|
|
45904
|
+
*
|
|
45905
|
+
* @stability unstable
|
|
45906
|
+
* @category guards
|
|
45907
|
+
* @since 4.0.0
|
|
45908
|
+
*/
|
|
45909
|
+
const isIpInterface = (u) => hasProperty(u, TypeId$35);
|
|
45910
|
+
const IpInterfaceProto = {
|
|
45911
|
+
...BaseProto,
|
|
45912
|
+
_tag: "IpInterface",
|
|
45913
|
+
[TypeId$35]: TypeId$35,
|
|
45914
|
+
[symbol$2](that) {
|
|
45915
|
+
return isIpInterface(that) && this.prefixLength === that.prefixLength && equals$2(this.address, that.address);
|
|
45916
|
+
},
|
|
45917
|
+
[symbol$3]() {
|
|
45918
|
+
return combine$2(hash(this.address), number$2(this.prefixLength));
|
|
45919
|
+
},
|
|
45920
|
+
toString() {
|
|
45921
|
+
return format$1(this);
|
|
45922
|
+
},
|
|
45923
|
+
toJSON() {
|
|
45924
|
+
return this.toString();
|
|
45925
|
+
}
|
|
45926
|
+
};
|
|
45927
|
+
const interfaceError = (input, message) => fail$13(new NetAddressError({
|
|
45928
|
+
input,
|
|
45929
|
+
message
|
|
45930
|
+
}));
|
|
45931
|
+
/**
|
|
45932
|
+
* Creates an interface address while preserving all address bits.
|
|
45933
|
+
*
|
|
45934
|
+
* @stability unstable
|
|
45935
|
+
* @category constructors
|
|
45936
|
+
* @since 4.0.0
|
|
45937
|
+
*/
|
|
45938
|
+
const make$53 = (address, prefixLength) => {
|
|
45939
|
+
const max = width$1(address);
|
|
45940
|
+
if (!Number.isInteger(prefixLength) || prefixLength < 0 || prefixLength > max) return interfaceError(address, `prefix length must be an integer from 0 through ${max}`);
|
|
45941
|
+
const self = Object.assign(Object.create(IpInterfaceProto), {
|
|
45942
|
+
address,
|
|
45943
|
+
prefixLength
|
|
45944
|
+
});
|
|
45945
|
+
return succeed$10(Object.freeze(self));
|
|
45946
|
+
};
|
|
45947
|
+
const parseAddressWithPrefix = (input, options) => {
|
|
45948
|
+
const slash = input.indexOf("/");
|
|
45949
|
+
if (slash === -1 && options?.prefix !== "required") return succeed$10({
|
|
45950
|
+
address: input,
|
|
45951
|
+
prefixLength: void 0
|
|
45952
|
+
});
|
|
45953
|
+
if (slash <= 0 || slash !== input.lastIndexOf("/") || slash === input.length - 1) return interfaceError(input, "expected an address and prefix length separated by one slash");
|
|
45954
|
+
const prefix = input.slice(slash + 1);
|
|
45955
|
+
if (!/^(0|[1-9][0-9]*)$/.test(prefix)) return interfaceError(input, "prefix length must be an unpadded ASCII decimal integer");
|
|
45956
|
+
return succeed$10({
|
|
45957
|
+
address: input.slice(0, slash),
|
|
45958
|
+
prefixLength: Number(prefix)
|
|
45959
|
+
});
|
|
45960
|
+
};
|
|
45961
|
+
/**
|
|
45962
|
+
* Parses an IP interface address while preserving host bits.
|
|
45963
|
+
*
|
|
45964
|
+
* **Details**
|
|
45965
|
+
*
|
|
45966
|
+
* A missing prefix defaults to the address width. Use `prefix: "required"` to
|
|
45967
|
+
* require one.
|
|
45968
|
+
*
|
|
45969
|
+
* @stability unstable
|
|
45970
|
+
* @category decoding
|
|
45971
|
+
* @since 4.0.0
|
|
45972
|
+
*/
|
|
45973
|
+
const fromString$2 = (input, options) => flatMap$6(parseAddressWithPrefix(input, options), (parts) => flatMap$6(ipFromString(parts.address), (address) => make$53(address, parts.prefixLength ?? width$1(address))));
|
|
45974
|
+
/**
|
|
45975
|
+
* Formats an interface address using canonical address text and its decimal prefix length.
|
|
45976
|
+
*
|
|
45977
|
+
* @stability unstable
|
|
45978
|
+
* @category encoding
|
|
45979
|
+
* @since 4.0.0
|
|
45980
|
+
*/
|
|
45981
|
+
const format$1 = (self) => `${formatIp(self.address)}/${self.prefixLength}`;
|
|
45982
|
+
// ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/net/IpNetwork.js
|
|
45983
|
+
/**
|
|
45984
|
+
* Pure, canonical IPv4 and IPv6 network prefixes using CIDR notation.
|
|
45985
|
+
*
|
|
45986
|
+
* @stability unstable
|
|
45987
|
+
* @since 4.0.0
|
|
45988
|
+
*/
|
|
45989
|
+
const TypeId$34 = "~effect/net/IpNetwork";
|
|
45990
|
+
/**
|
|
45991
|
+
* Returns `true` when a value is an IPv4 or IPv6 network prefix.
|
|
45992
|
+
*
|
|
45993
|
+
* @stability unstable
|
|
45994
|
+
* @category guards
|
|
45995
|
+
* @since 4.0.0
|
|
45996
|
+
*/
|
|
45997
|
+
const isIpNetwork = (u) => hasProperty(u, TypeId$34);
|
|
45998
|
+
const IpNetworkProto = {
|
|
45999
|
+
...BaseProto,
|
|
46000
|
+
_tag: "IpNetwork",
|
|
46001
|
+
[TypeId$34]: TypeId$34,
|
|
46002
|
+
[symbol$2](that) {
|
|
46003
|
+
return isIpNetwork(that) && this.prefixLength === that.prefixLength && equals$2(this.address, that.address);
|
|
46004
|
+
},
|
|
46005
|
+
[symbol$3]() {
|
|
46006
|
+
return combine$2(hash(this.address), number$2(this.prefixLength));
|
|
46007
|
+
},
|
|
46008
|
+
toString() {
|
|
46009
|
+
return format(this);
|
|
46010
|
+
},
|
|
46011
|
+
toJSON() {
|
|
46012
|
+
return this.toString();
|
|
46013
|
+
}
|
|
46014
|
+
};
|
|
46015
|
+
const fromInterfaceValue = (value) => {
|
|
46016
|
+
const self = Object.assign(Object.create(IpNetworkProto), {
|
|
46017
|
+
address: value.address,
|
|
46018
|
+
prefixLength: value.prefixLength
|
|
46019
|
+
});
|
|
46020
|
+
return Object.freeze(self);
|
|
46021
|
+
};
|
|
46022
|
+
const toBytes = (address) => isIpv4Address(address) ? ipv4ToOctets(address) : ipv6ToOctets(address);
|
|
46023
|
+
const maskBytes = (bytes, prefixLength) => {
|
|
46024
|
+
const wholeBytes = Math.floor(prefixLength / 8);
|
|
46025
|
+
const partialBits = prefixLength % 8;
|
|
46026
|
+
return bytes.map((byte, index) => {
|
|
46027
|
+
if (index < wholeBytes) return byte;
|
|
46028
|
+
if (index === wholeBytes && partialBits !== 0) return byte & (255 << 8 - partialBits & 255);
|
|
46029
|
+
return 0;
|
|
46030
|
+
});
|
|
46031
|
+
};
|
|
46032
|
+
/**
|
|
46033
|
+
* Creates a network prefix when the address has no host bits set.
|
|
46034
|
+
*
|
|
46035
|
+
* **Gotchas**
|
|
46036
|
+
*
|
|
46037
|
+
* Use {@link fromAddress} when a host address should be truncated to its containing network.
|
|
46038
|
+
*
|
|
46039
|
+
* @stability unstable
|
|
46040
|
+
* @category constructors
|
|
46041
|
+
* @since 4.0.0
|
|
46042
|
+
*/
|
|
46043
|
+
const make$52 = (address, prefixLength) => {
|
|
46044
|
+
return flatMap$6(make$53(address, prefixLength), (value) => {
|
|
46045
|
+
const bytes = toBytes(address);
|
|
46046
|
+
const masked = maskBytes(bytes, prefixLength);
|
|
46047
|
+
if (bytes.some((byte, index) => byte !== masked[index])) return fail$13(new NetAddressError({
|
|
46048
|
+
input: address,
|
|
46049
|
+
message: "address has non-zero host bits"
|
|
46050
|
+
}));
|
|
46051
|
+
return succeed$10(fromInterfaceValue(value));
|
|
46052
|
+
});
|
|
46053
|
+
};
|
|
46054
|
+
/**
|
|
46055
|
+
* Parses a strict IPv4 or IPv6 network prefix in CIDR notation.
|
|
46056
|
+
*
|
|
46057
|
+
* @stability unstable
|
|
46058
|
+
* @category decoding
|
|
46059
|
+
* @since 4.0.0
|
|
46060
|
+
*/
|
|
46061
|
+
const fromString$1 = (input) => {
|
|
46062
|
+
return flatMap$6(fromString$2(input, { prefix: "required" }), (value) => make$52(value.address, value.prefixLength));
|
|
46063
|
+
};
|
|
46064
|
+
/**
|
|
46065
|
+
* Formats a network prefix using canonical address text and its decimal prefix length.
|
|
46066
|
+
*
|
|
46067
|
+
* @stability unstable
|
|
46068
|
+
* @category encoding
|
|
46069
|
+
* @since 4.0.0
|
|
46070
|
+
*/
|
|
46071
|
+
const format = (self) => `${formatIp(self.address)}/${self.prefixLength}`;
|
|
45869
46072
|
// ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/Schema.js
|
|
45870
|
-
const TypeId$33 = TypeId$
|
|
46073
|
+
const TypeId$33 = TypeId$36;
|
|
45871
46074
|
/**
|
|
45872
46075
|
* Creates a schema for a **parametric** type (a generic container such as
|
|
45873
46076
|
* `Array<A>`, `Option<A>`, etc.) by accepting a list of type-parameter schemas
|
|
@@ -46432,7 +46635,7 @@ const encodeSync = encodeUnknownSync$1;
|
|
|
46432
46635
|
* @category constructors
|
|
46433
46636
|
* @since 3.10.0
|
|
46434
46637
|
*/
|
|
46435
|
-
const make$51 = make$
|
|
46638
|
+
const make$51 = make$54;
|
|
46436
46639
|
/**
|
|
46437
46640
|
* Checks whether a value is a `Schema`.
|
|
46438
46641
|
*
|
|
@@ -47607,7 +47810,7 @@ function isPattern(regExp, annotations) {
|
|
|
47607
47810
|
const source = regExp.source;
|
|
47608
47811
|
const flags = regExp.flags;
|
|
47609
47812
|
const canExport = /^[dg]*uy?$/.test(flags);
|
|
47610
|
-
const runtimeRegExp = flags === "" ? `new globalThis.RegExp(${format$
|
|
47813
|
+
const runtimeRegExp = flags === "" ? `new globalThis.RegExp(${format$4(source)})` : `new globalThis.RegExp(${format$4(source)}, ${format$4(flags)})`;
|
|
47611
47814
|
return isPattern$1(regExp, {
|
|
47612
47815
|
toJsonSchema: () => canExport ? { pattern: flags.endsWith("y") ? `^(?:${source})` : source } : [{}, true],
|
|
47613
47816
|
toCode: () => ({ runtime: `Schema.isPattern(${runtimeRegExp})` }),
|
|
@@ -47632,7 +47835,7 @@ const Finite = /*#__PURE__*/ make$51(finite);
|
|
|
47632
47835
|
*/
|
|
47633
47836
|
function makeIsGreaterThanOrEqualTo(options) {
|
|
47634
47837
|
const gte = isGreaterThanOrEqualTo$2(options.order);
|
|
47635
|
-
const formatter = options.formatter ?? format$
|
|
47838
|
+
const formatter = options.formatter ?? format$4;
|
|
47636
47839
|
return (minimum, annotations) => {
|
|
47637
47840
|
return makeFilter((input) => gte(input, minimum), {
|
|
47638
47841
|
expected: `a value greater than or equal to ${formatter(minimum)}`,
|
|
@@ -47658,7 +47861,7 @@ function makeIsBetween(deriveOptions) {
|
|
|
47658
47861
|
const greaterThan = isGreaterThan$1(deriveOptions.order);
|
|
47659
47862
|
const lessThanOrEqualTo = isLessThanOrEqualTo$1(deriveOptions.order);
|
|
47660
47863
|
const lessThan = isLessThan$1(deriveOptions.order);
|
|
47661
|
-
const formatter = deriveOptions.formatter ?? format$
|
|
47864
|
+
const formatter = deriveOptions.formatter ?? format$4;
|
|
47662
47865
|
return (options, annotations) => {
|
|
47663
47866
|
const gte = options.exclusiveMinimum ? greaterThan : greaterThanOrEqualTo;
|
|
47664
47867
|
const lte = options.exclusiveMaximum ? lessThan : lessThanOrEqualTo;
|
|
@@ -47677,7 +47880,7 @@ function makeIsBetween(deriveOptions) {
|
|
|
47677
47880
|
};
|
|
47678
47881
|
}
|
|
47679
47882
|
function encodeNumberPayload(number) {
|
|
47680
|
-
if (!globalThis.Number.isFinite(number)) throw new globalThis.RangeError(`Expected a finite number, got ${format$
|
|
47883
|
+
if (!globalThis.Number.isFinite(number)) throw new globalThis.RangeError(`Expected a finite number, got ${format$4(number)}`);
|
|
47681
47884
|
return number;
|
|
47682
47885
|
}
|
|
47683
47886
|
/**
|
|
@@ -47707,7 +47910,7 @@ const isGreaterThanOrEqualTo$1 = /*#__PURE__*/ makeIsGreaterThanOrEqualTo({
|
|
|
47707
47910
|
payload: { minimum: encodeNumberPayload(minimum) }
|
|
47708
47911
|
},
|
|
47709
47912
|
toJsonSchema: () => ({ minimum }),
|
|
47710
|
-
toCode: () => ({ runtime: `Schema.isGreaterThanOrEqualTo(${format$
|
|
47913
|
+
toCode: () => ({ runtime: `Schema.isGreaterThanOrEqualTo(${format$4(minimum)})` })
|
|
47711
47914
|
})
|
|
47712
47915
|
});
|
|
47713
47916
|
/**
|
|
@@ -47751,7 +47954,7 @@ const isBetween = /*#__PURE__*/ makeIsBetween({
|
|
|
47751
47954
|
[exclusiveMinimum ? "exclusiveMinimum" : "minimum"]: options.minimum,
|
|
47752
47955
|
[exclusiveMaximum ? "exclusiveMaximum" : "maximum"]: options.maximum
|
|
47753
47956
|
}),
|
|
47754
|
-
toCode: () => ({ runtime: `Schema.isBetween({ minimum: ${format$
|
|
47957
|
+
toCode: () => ({ runtime: `Schema.isBetween({ minimum: ${format$4(options.minimum)}, maximum: ${format$4(options.maximum)}, exclusiveMinimum: ${format$4(exclusiveMinimum)}, exclusiveMaximum: ${format$4(exclusiveMaximum)} })` })
|
|
47755
47958
|
};
|
|
47756
47959
|
}
|
|
47757
47960
|
});
|
|
@@ -48236,7 +48439,7 @@ function Cause(error, defect) {
|
|
|
48236
48439
|
}
|
|
48237
48440
|
const dateTimeUtcFromString = /*#__PURE__*/ transformEffect({
|
|
48238
48441
|
decode: (s, options) => {
|
|
48239
|
-
return match$8(make$
|
|
48442
|
+
return match$8(make$66(s), {
|
|
48240
48443
|
onNone: () => fail$8(new InvalidValue$1({ expected: "a valid UTC DateTime string" }, s, options)),
|
|
48241
48444
|
onSome: (result) => succeed$5(toUtc(result))
|
|
48242
48445
|
});
|
|
@@ -48542,7 +48745,7 @@ const RecordFromUrlParams = /*#__PURE__*/ (/* @__PURE__ */ declare(isUrlParams,
|
|
|
48542
48745
|
expected: "UrlParams",
|
|
48543
48746
|
toEquivalence: () => Equivalence,
|
|
48544
48747
|
toCodec: () => link$1()(ArraySchema(Tuple([String$6, String$6])), transform$2({
|
|
48545
|
-
decode: make$
|
|
48748
|
+
decode: make$56,
|
|
48546
48749
|
encode: (self) => self.params.map(([key, value]) => [key, unwrap$1(value)])
|
|
48547
48750
|
}))
|
|
48548
48751
|
})).pipe(/*#__PURE__*/ decodeTo(/*#__PURE__*/ Record$1(String$6, /*#__PURE__*/ Union([String$6, /*#__PURE__*/ NonEmptyArray(String$6)])), /*#__PURE__*/ transform$2({
|
|
@@ -48582,7 +48785,7 @@ function Redacted$1(value, options) {
|
|
|
48582
48785
|
if (isRedacted(input)) {
|
|
48583
48786
|
const label = decodeLabel !== void 0 ? mapErrorEager(decodeLabel(input.label, poptions), (issue) => new Pointer(["label"], issue)) : void_$1;
|
|
48584
48787
|
return flatMapEager(label, () => mapBothEager(decodeUnknownEffect$1(value)(value$2(input), poptions), {
|
|
48585
|
-
onSuccess: (value) => make$
|
|
48788
|
+
onSuccess: (value) => make$63(value, { label: input.label }),
|
|
48586
48789
|
onFailure: () => {
|
|
48587
48790
|
return new Composite(ast, [new Pointer(["value"], new InvalidValue$1(void 0, input, poptions))], input, poptions);
|
|
48588
48791
|
}
|
|
@@ -48595,13 +48798,13 @@ function Redacted$1(value, options) {
|
|
|
48595
48798
|
payload: normalizedOptions ?? null
|
|
48596
48799
|
},
|
|
48597
48800
|
toCode: ({ typeParameters }) => ({
|
|
48598
|
-
runtime: normalizedOptions !== void 0 ? `Schema.Redacted(${typeParameters[0].runtime}, ${format$
|
|
48801
|
+
runtime: normalizedOptions !== void 0 ? `Schema.Redacted(${typeParameters[0].runtime}, ${format$4(normalizedOptions)})` : `Schema.Redacted(${typeParameters[0].runtime})`,
|
|
48599
48802
|
Type: `Redacted.Redacted<${typeParameters[0].Type}>`,
|
|
48600
48803
|
importDeclarations: [`import * as Redacted from "effect/Redacted"`]
|
|
48601
48804
|
}),
|
|
48602
48805
|
expected: "Redacted",
|
|
48603
48806
|
toCodecJson: ([value]) => link$1()(value, {
|
|
48604
|
-
decode: transform$3((e) => make$
|
|
48807
|
+
decode: transform$3((e) => make$63(e, { label })),
|
|
48605
48808
|
encode: disallowJsonEncode ? forbidden((oe) => "Cannot serialize Redacted" + (isSome(oe) && typeof oe.value.label === "string" ? ` with label: "${oe.value.label}"` : "")) : transform$3(value$2)
|
|
48606
48809
|
}),
|
|
48607
48810
|
toEquivalence: ([value]) => makeEquivalence(value)
|
|
@@ -48623,7 +48826,7 @@ function RedactedFromValue(value, options) {
|
|
|
48623
48826
|
label: options?.label,
|
|
48624
48827
|
disallowJsonEncode: options?.disallowEncode
|
|
48625
48828
|
}), {
|
|
48626
|
-
decode: transform$3((t) => make$
|
|
48829
|
+
decode: transform$3((t) => make$63(t, { label: options?.label })),
|
|
48627
48830
|
encode: options?.disallowEncode ? forbidden((oe) => "Cannot encode Redacted" + (isSome(oe) && typeof oe.value.label === "string" ? ` with label: "${oe.value.label}"` : "")) : transform$3(value$2)
|
|
48628
48831
|
})(value);
|
|
48629
48832
|
}
|
|
@@ -48820,7 +49023,7 @@ function isStruct(schema) {
|
|
|
48820
49023
|
const Class = (identifier) => (schema, annotations) => {
|
|
48821
49024
|
const struct = isStruct(schema) ? schema : Struct(schema);
|
|
48822
49025
|
return makeClass(Class$1, identifier, struct, annotations, (identifier) => ({ toString() {
|
|
48823
|
-
return `${identifier}(${format$
|
|
49026
|
+
return `${identifier}(${format$4({ ...this })})`;
|
|
48824
49027
|
} }));
|
|
48825
49028
|
};
|
|
48826
49029
|
/**
|
|
@@ -49109,7 +49312,7 @@ var Proto$17 = class {
|
|
|
49109
49312
|
return this.toJSON();
|
|
49110
49313
|
}
|
|
49111
49314
|
toString() {
|
|
49112
|
-
return format$
|
|
49315
|
+
return format$4(this, { ignoreToString: true });
|
|
49113
49316
|
}
|
|
49114
49317
|
};
|
|
49115
49318
|
/**
|
|
@@ -50673,7 +50876,7 @@ const retryTransient = /*#__PURE__*/ dual(2, (self, options) => {
|
|
|
50673
50876
|
*/
|
|
50674
50877
|
const timeout = /*#__PURE__*/ dual(2, (self, duration) => {
|
|
50675
50878
|
const decoded = fromInputUnsafe$1(duration);
|
|
50676
|
-
const description = `timed out after ${format$
|
|
50879
|
+
const description = `timed out after ${format$3(decoded)}`;
|
|
50677
50880
|
return transform$1(self, (effect, request) => timeoutOrElse(effect, {
|
|
50678
50881
|
duration: decoded,
|
|
50679
50882
|
orElse: () => fail$8(new HttpClientError({ reason: new TransportError({
|
|
@@ -59891,7 +60094,7 @@ function decodeValueUnchecked(layout, r) {
|
|
|
59891
60094
|
const value = r.zigzag();
|
|
59892
60095
|
const scale = r.zigzag();
|
|
59893
60096
|
if (scale > MAX_SAFE_BIGINT || -scale > MAX_SAFE_BIGINT) invalid$1("safe integer length", void 0, r.options);
|
|
59894
|
-
return make$
|
|
60097
|
+
return make$65(value, Number(scale));
|
|
59895
60098
|
}
|
|
59896
60099
|
case "json": {
|
|
59897
60100
|
const text = r.readUtf8(r.end - r.pos);
|
|
@@ -60962,7 +61165,7 @@ const makeNoSerialization = /*#__PURE__*/ fnUntraced(function* (group, options)
|
|
|
60962
61165
|
const services = yield* context();
|
|
60963
61166
|
const scope = get$14(services, Scope);
|
|
60964
61167
|
const trackFiber = runIn(forkUnsafe(scope, "parallel"));
|
|
60965
|
-
const concurrencySemaphore = concurrency === "unbounded" ? void 0 : yield* make$
|
|
61168
|
+
const concurrencySemaphore = concurrency === "unbounded" ? void 0 : yield* make$73(concurrency);
|
|
60966
61169
|
const clients = /* @__PURE__ */ new Map();
|
|
60967
61170
|
let isShutdown = false;
|
|
60968
61171
|
const shutdownLatch = makeUnsafe$6(false);
|
|
@@ -61265,7 +61468,7 @@ const make$32 = /*#__PURE__*/ fnUntraced(function* (group, options) {
|
|
|
61265
61468
|
const { codecFor, disconnects, end, run, send, supportsAck, supportsSpanPropagation, supportsTransferables } = yield* Protocol;
|
|
61266
61469
|
const { encodeDefectUnsafe, encodeUnknownRequestExit } = defectCodecs(codecFor);
|
|
61267
61470
|
const services = yield* context();
|
|
61268
|
-
const scope = yield* make$
|
|
61471
|
+
const scope = yield* make$83();
|
|
61269
61472
|
const server = yield* makeNoSerialization(group, {
|
|
61270
61473
|
...options,
|
|
61271
61474
|
disableClientAcks: !supportsAck,
|
|
@@ -61541,7 +61744,7 @@ const makeProtocolWithHttpEffect = /*#__PURE__*/ fnUntraced(function* (options =
|
|
|
61541
61744
|
const { encodeDefectUnsafe } = defectCodecs(serialization.codecFor);
|
|
61542
61745
|
const includesFraming = serialization.includesFraming;
|
|
61543
61746
|
const isBinary = !serialization.contentType.includes("json");
|
|
61544
|
-
const disconnects = yield* make$
|
|
61747
|
+
const disconnects = yield* make$74();
|
|
61545
61748
|
let writeRequest;
|
|
61546
61749
|
let clientId = 0;
|
|
61547
61750
|
const clients = /* @__PURE__ */ new Map();
|
|
@@ -61554,7 +61757,7 @@ const makeProtocolWithHttpEffect = /*#__PURE__*/ fnUntraced(function* (options =
|
|
|
61554
61757
|
const requestHeaders = Object.entries(request.headers);
|
|
61555
61758
|
const data = yield* orDie$2(isBinary ? map$5(request.arrayBuffer, (buf) => new Uint8Array(buf)) : request.text);
|
|
61556
61759
|
const id = clientId++;
|
|
61557
|
-
const queue = yield* make$
|
|
61760
|
+
const queue = yield* make$74({ capacity: includesFraming && options.streamBufferSize !== "unbounded" ? options.streamBufferSize ?? 16 : void 0 });
|
|
61558
61761
|
const parser = serialization.makeUnsafe();
|
|
61559
61762
|
const requestIds = [];
|
|
61560
61763
|
const offer$1 = (data) => typeof data === "string" ? offer(queue, encoder.encode(data)) : offer(queue, data);
|
|
@@ -61659,7 +61862,7 @@ const layerProtocolHttp = (options) => {
|
|
|
61659
61862
|
const makeSocketProtocol = /*#__PURE__*/ gen(function* () {
|
|
61660
61863
|
const serialization = yield* RpcSerialization;
|
|
61661
61864
|
const { encodeDefectUnsafe } = defectCodecs(serialization.codecFor);
|
|
61662
|
-
const disconnects = yield* make$
|
|
61865
|
+
const disconnects = yield* make$74();
|
|
61663
61866
|
let clientId = 0;
|
|
61664
61867
|
const clients = /* @__PURE__ */ new Map();
|
|
61665
61868
|
const clientIds = /* @__PURE__ */ new Set();
|
|
@@ -61839,7 +62042,7 @@ const RpcGroupProto = {
|
|
|
61839
62042
|
});
|
|
61840
62043
|
},
|
|
61841
62044
|
annotateRpcs(service, value) {
|
|
61842
|
-
return this.annotateRpcsMerge(make$
|
|
62045
|
+
return this.annotateRpcsMerge(make$87(service, value));
|
|
61843
62046
|
},
|
|
61844
62047
|
annotateMerge(context) {
|
|
61845
62048
|
return makeProto$1({
|
|
@@ -62226,7 +62429,7 @@ function describeUnknown(u, preserveEmptyStrings) {
|
|
|
62226
62429
|
if (typeof u === "number" || typeof u === "boolean" || typeof u === "bigint") return makeValue(String(u));
|
|
62227
62430
|
if (Array.isArray(u)) return makeArray(u.length);
|
|
62228
62431
|
if (isObject$2(u)) return makeRecord(new Set(Object.keys(u)));
|
|
62229
|
-
return makeValue(format$
|
|
62432
|
+
return makeValue(format$4(u));
|
|
62230
62433
|
}
|
|
62231
62434
|
function stringNode(value, preserveEmptyStrings) {
|
|
62232
62435
|
const normalized = emptyStringAsMissing(value, preserveEmptyStrings);
|
|
@@ -67510,7 +67713,7 @@ const writeFile = (path, data, options) => callback$1((resume, signal) => {
|
|
|
67510
67713
|
resume(fail$8(handleBadArgument("writeFile")(err)));
|
|
67511
67714
|
}
|
|
67512
67715
|
});
|
|
67513
|
-
const makeFileSystem = /*#__PURE__*/ map$5(/*#__PURE__*/ serviceOption(WatchBackend), (backend) => make$
|
|
67716
|
+
const makeFileSystem = /*#__PURE__*/ map$5(/*#__PURE__*/ serviceOption(WatchBackend), (backend) => make$68({
|
|
67514
67717
|
access,
|
|
67515
67718
|
chmod,
|
|
67516
67719
|
chown,
|
|
@@ -68478,7 +68681,7 @@ const fileUrlOps = (windows) => ({
|
|
|
68478
68681
|
* @category layers
|
|
68479
68682
|
* @since 4.0.0
|
|
68480
68683
|
*/
|
|
68481
|
-
const layer$12 = /* @__PURE__ */ succeed$6(Path$1)(/*#__PURE__*/ make$
|
|
68684
|
+
const layer$12 = /* @__PURE__ */ succeed$6(Path$1)(/*#__PURE__*/ make$67({
|
|
68482
68685
|
...Path,
|
|
68483
68686
|
.../*#__PURE__*/ fileUrlOps(void 0)
|
|
68484
68687
|
}));
|
|
@@ -68631,7 +68834,7 @@ const make$25 = (impl) => Terminal.of({
|
|
|
68631
68834
|
const layer$9 = /*#__PURE__*/ effect(Terminal, /*#__PURE__*/ (/* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
|
|
68632
68835
|
const stdin = process.stdin;
|
|
68633
68836
|
const stdout = process.stdout;
|
|
68634
|
-
const lines = yield* make$
|
|
68837
|
+
const lines = yield* make$74();
|
|
68635
68838
|
let inputEnded = stdin.readableEnded;
|
|
68636
68839
|
let readlineActive = false;
|
|
68637
68840
|
const onStdinEnd = () => {
|
|
@@ -68640,7 +68843,7 @@ const layer$9 = /*#__PURE__*/ effect(Terminal, /*#__PURE__*/ (/* @__PURE__ */ fn
|
|
|
68640
68843
|
};
|
|
68641
68844
|
stdin.once("end", onStdinEnd);
|
|
68642
68845
|
yield* addFinalizer(() => sync(() => stdin.off("end", onStdinEnd)));
|
|
68643
|
-
const rlRef = yield* make$
|
|
68846
|
+
const rlRef = yield* make$70({
|
|
68644
68847
|
acquire: acquireRelease(sync(() => {
|
|
68645
68848
|
const rl = readline.createInterface({
|
|
68646
68849
|
input: stdin,
|
|
@@ -68672,7 +68875,7 @@ const layer$9 = /*#__PURE__*/ effect(Terminal, /*#__PURE__*/ (/* @__PURE__ */ fn
|
|
|
68672
68875
|
const setRawMode = (enabled) => sync(() => {
|
|
68673
68876
|
if (stdin.isTTY) stdin.setRawMode(enabled);
|
|
68674
68877
|
});
|
|
68675
|
-
const rawModeRef = yield* make$
|
|
68878
|
+
const rawModeRef = yield* make$70({
|
|
68676
68879
|
acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
|
|
68677
68880
|
idleTimeToLive: "10 millis"
|
|
68678
68881
|
});
|
|
@@ -68693,7 +68896,7 @@ const layer$9 = /*#__PURE__*/ effect(Terminal, /*#__PURE__*/ (/* @__PURE__ */ fn
|
|
|
68693
68896
|
return queue;
|
|
68694
68897
|
});
|
|
68695
68898
|
const readInput = gen(function* () {
|
|
68696
|
-
const queue = yield* make$
|
|
68899
|
+
const queue = yield* make$74();
|
|
68697
68900
|
const handleKeypress = (s, k) => {
|
|
68698
68901
|
const userInput = {
|
|
68699
68902
|
input: fromUndefinedOr(s),
|
|
@@ -69512,7 +69715,7 @@ const TypeId$15 = "~effect/Cache";
|
|
|
69512
69715
|
const makeWith = (lookup, options) => contextWith$1((context) => {
|
|
69513
69716
|
const self = Object.create(Proto$8);
|
|
69514
69717
|
self.lookup = (key) => updateContext$1(lookup(key), (input) => merge$4(context, input));
|
|
69515
|
-
self.map = make$
|
|
69718
|
+
self.map = make$81();
|
|
69516
69719
|
self.capacity = options.capacity;
|
|
69517
69720
|
self.timeToLive = options.timeToLive ? (exit, key) => fromInputUnsafe$1(options.timeToLive(exit, key)) : defaultTimeToLive;
|
|
69518
69721
|
return succeed$9(self);
|
|
@@ -72199,7 +72402,7 @@ var RateLimitError = class extends (/*#__PURE__*/ Error$1("effect/ai/AiError/Rat
|
|
|
72199
72402
|
}
|
|
72200
72403
|
get message() {
|
|
72201
72404
|
let msg = "Rate limit exceeded";
|
|
72202
|
-
if (this.retryAfter) msg += `. Retry after ${format$
|
|
72405
|
+
if (this.retryAfter) msg += `. Retry after ${format$3(this.retryAfter)}`;
|
|
72203
72406
|
return msg;
|
|
72204
72407
|
}
|
|
72205
72408
|
};
|
|
@@ -73846,7 +74049,7 @@ const FailureOrigin = /*#__PURE__*/ Reference("effect/ai/Toolkit/FailureOrigin",
|
|
|
73846
74049
|
* @since 4.1.0
|
|
73847
74050
|
*/
|
|
73848
74051
|
const PreliminaryBuffer = /*#__PURE__*/ Reference("effect/ai/Toolkit/PreliminaryBuffer", { defaultValue: () => "unbounded" });
|
|
73849
|
-
const failureCause = (error, origin) => annotate$2(fail$9(error), make$
|
|
74052
|
+
const failureCause = (error, origin) => annotate$2(fail$9(error), make$87(FailureOrigin, origin));
|
|
73850
74053
|
const failureOrigin = (error) => isSchemaError(error) ? "result" : "handler";
|
|
73851
74054
|
const Proto$4 = {
|
|
73852
74055
|
.../*#__PURE__*/ Prototype({
|
|
@@ -73921,7 +74124,7 @@ const Proto$4 = {
|
|
|
73921
74124
|
const decodedParams = decodedParamsResult.success;
|
|
73922
74125
|
const capacity = yield* PreliminaryBuffer;
|
|
73923
74126
|
if (capacity !== "unbounded" && !(Number.isInteger(capacity) && capacity > 0)) return yield* die$2(`Tool "${name}": PreliminaryBuffer must be a positive integer, got ${capacity}`);
|
|
73924
|
-
const queue = yield* make$
|
|
74127
|
+
const queue = yield* make$74(capacity === "unbounded" ? void 0 : { capacity });
|
|
73925
74128
|
const context = {
|
|
73926
74129
|
toolCallId,
|
|
73927
74130
|
preliminary: (result) => asVoid(offer(queue, {
|
|
@@ -73952,7 +74155,7 @@ const Proto$4 = {
|
|
|
73952
74155
|
reason: error
|
|
73953
74156
|
}) : error;
|
|
73954
74157
|
};
|
|
73955
|
-
return fromQueue(queue).pipe(tool.failureMode === "error" ? catchCause((cause) => failCause(map$6(fromReasons(cause.reasons.map((reason) => isFailReason(reason) ? reason.annotate(make$
|
|
74158
|
+
return fromQueue(queue).pipe(tool.failureMode === "error" ? catchCause((cause) => failCause(map$6(fromReasons(cause.reasons.map((reason) => isFailReason(reason) ? reason.annotate(make$87(FailureOrigin, failureOrigin(reason.error)), { overwrite: true }) : reason)), normalizeError))) : catch_((error) => succeed$3({
|
|
73956
74159
|
result: normalizeError(error),
|
|
73957
74160
|
isFailure: true,
|
|
73958
74161
|
failureOrigin: failureOrigin(error),
|
|
@@ -80003,7 +80206,7 @@ const makeHandlers = (core, _lifecycle, context) => {
|
|
|
80003
80206
|
const subscriptionMetadata = { "io.modelcontextprotocol/subscriptionId": requestId };
|
|
80004
80207
|
const resourceSubscriptions = new Set(honored.resourceSubscriptions);
|
|
80005
80208
|
const pending = yield* dropping(MAX_PENDING_SUBSCRIPTION_NOTIFICATIONS);
|
|
80006
|
-
const overflowed = yield* make$
|
|
80209
|
+
const overflowed = yield* make$84();
|
|
80007
80210
|
yield* gen(function* () {
|
|
80008
80211
|
while (true) {
|
|
80009
80212
|
const event = yield* take$1(events);
|
|
@@ -80520,7 +80723,7 @@ const getMiddleware = (context) => {
|
|
|
80520
80723
|
};
|
|
80521
80724
|
const isMcpError = (error) => hasProperty(error, "code") && typeof error.code === "number" && hasProperty(error, "message") && typeof error.message === "string";
|
|
80522
80725
|
const HandlerFailure = /*#__PURE__*/ Reference("effect/ai/McpServer/HandlerFailure", { defaultValue: () => false });
|
|
80523
|
-
const handlerFailure = /*#__PURE__*/ make$
|
|
80726
|
+
const handlerFailure = /*#__PURE__*/ make$87(HandlerFailure, true);
|
|
80524
80727
|
const internalError = /*#__PURE__*/ new InternalError({ message: "Internal error" });
|
|
80525
80728
|
const rejectWith = (error) => fail$8(new RequestRejected({
|
|
80526
80729
|
code: error.code,
|
|
@@ -80626,7 +80829,7 @@ var McpServer = class McpServer extends (/*#__PURE__*/ Service$1()("effect/ai/Mc
|
|
|
80626
80829
|
const resources = [];
|
|
80627
80830
|
const resourceTemplates = [];
|
|
80628
80831
|
const prompts = [];
|
|
80629
|
-
const notificationsQueue = yield* make$
|
|
80832
|
+
const notificationsQueue = yield* make$74();
|
|
80630
80833
|
const globalMiddleware = [];
|
|
80631
80834
|
const notificationDelivery = {
|
|
80632
80835
|
consumers: 0,
|
|
@@ -80638,7 +80841,7 @@ var McpServer = class McpServer extends (/*#__PURE__*/ Service$1()("effect/ai/Mc
|
|
|
80638
80841
|
const dispatcher = (yield* Scheduler).makeDispatcher();
|
|
80639
80842
|
const notifications = yield* makeNoSerialization$1(BroadcastServerNotificationRpcs, {
|
|
80640
80843
|
spanPrefix: "McpServer/Notifications",
|
|
80641
|
-
onFromClient: (options) => make$
|
|
80844
|
+
onFromClient: (options) => make$84().pipe(flatMap$2((delivered) => withFiber((fiber) => {
|
|
80642
80845
|
const message = options.message;
|
|
80643
80846
|
if (message._tag !== "Request") return void_$1;
|
|
80644
80847
|
const notification = toInternalServerNotification(message);
|
|
@@ -80702,7 +80905,7 @@ var McpServer = class McpServer extends (/*#__PURE__*/ Service$1()("effect/ai/Mc
|
|
|
80702
80905
|
});
|
|
80703
80906
|
const service = McpServer.of({
|
|
80704
80907
|
notifications: notifications.client,
|
|
80705
|
-
notifyElicitationComplete: ({ clientId, elicitationId }) => withoutSharedConsumer() ? void_$1 : make$
|
|
80908
|
+
notifyElicitationComplete: ({ clientId, elicitationId }) => withoutSharedConsumer() ? void_$1 : make$84().pipe(flatMap$2((delivered) => offer(notificationsQueue, {
|
|
80706
80909
|
notification: ServerNotification.ElicitationComplete({ elicitationId }),
|
|
80707
80910
|
targetClientId: clientId,
|
|
80708
80911
|
delivered
|
|
@@ -81002,7 +81205,7 @@ const runWithRuntime = /*#__PURE__*/ fnUntraced(function* (options, runtime, tra
|
|
|
81002
81205
|
defaultLogLevel,
|
|
81003
81206
|
serverInfo: options
|
|
81004
81207
|
}));
|
|
81005
|
-
const clients = yield* make$
|
|
81208
|
+
const clients = yield* make$72({
|
|
81006
81209
|
lookup: fnUntraced(function* (key) {
|
|
81007
81210
|
const selectedProtocol = runtime.selectProtocol(key.profile.protocolVersion);
|
|
81008
81211
|
let write;
|
|
@@ -81644,7 +81847,7 @@ const registerToolkit = /*#__PURE__*/ fnUntraced(function* (toolkit) {
|
|
|
81644
81847
|
isError: false,
|
|
81645
81848
|
content: []
|
|
81646
81849
|
})) : successResult(result.encodedResult);
|
|
81647
|
-
return result.failureOrigin === "handler" ? map$5(encodeReturnedFailure(result.encodedResult), failureResult) : failCause$3(annotate$2(fail$9(result.result), make$
|
|
81850
|
+
return result.failureOrigin === "handler" ? map$5(encodeReturnedFailure(result.encodedResult), failureResult) : failCause$3(annotate$2(fail$9(result.result), make$87(FailureOrigin, result.failureOrigin ?? "result")));
|
|
81648
81851
|
}), catchCause$2(handleCause));
|
|
81649
81852
|
},
|
|
81650
81853
|
services
|
|
@@ -83268,7 +83471,7 @@ const String$4 = /*#__PURE__*/ makePrimitive("String", (value) => succeed$5(valu
|
|
|
83268
83471
|
*/
|
|
83269
83472
|
const Choice = (choices) => {
|
|
83270
83473
|
const choiceMap = new Map(choices);
|
|
83271
|
-
const validChoices = choices.map(([key]) => format$
|
|
83474
|
+
const validChoices = choices.map(([key]) => format$4(key)).join(" | ");
|
|
83272
83475
|
const primitive = makePrimitive("Choice", (value) => {
|
|
83273
83476
|
if (choiceMap.has(value)) return succeed$5(choiceMap.get(value));
|
|
83274
83477
|
return fail$8(validChoices);
|
|
@@ -83779,7 +83982,7 @@ const map$1 = /*#__PURE__*/ dual(2, (self, f) => flatMap(self, (a) => succeed(f(
|
|
|
83779
83982
|
* @category constructors
|
|
83780
83983
|
* @since 4.0.0
|
|
83781
83984
|
*/
|
|
83782
|
-
const Password = (options) => basePrompt(options, "password").pipe(map$1(make$
|
|
83985
|
+
const Password = (options) => basePrompt(options, "password").pipe(map$1(make$63));
|
|
83783
83986
|
/**
|
|
83784
83987
|
* Runs a prompt by reading terminal input and rendering prompt frames until the
|
|
83785
83988
|
* prompt submits a value.
|
|
@@ -89667,7 +89870,7 @@ const runWith = (command, config) => {
|
|
|
89667
89870
|
}
|
|
89668
89871
|
const services = match$8(logLevel, {
|
|
89669
89872
|
onNone: () => empty$15(),
|
|
89670
|
-
onSome: (level) => make$
|
|
89873
|
+
onSome: (level) => make$87(MinimumLogLevel, level)
|
|
89671
89874
|
});
|
|
89672
89875
|
yield* provideContext$2(program, services);
|
|
89673
89876
|
}, catchFilter((error) => isCliError(error) && error._tag === "ShowHelp" ? succeed$10(error) : fail$13(error), (error) => andThen(showHelp(command, error, config.renderErrors !== false), fail$8(error))), catchFilter((error) => {
|
|
@@ -89917,8 +90120,8 @@ const make$6 = /*#__PURE__*/ fnUntraced(function* (options) {
|
|
|
89917
90120
|
runExportFork(runExport);
|
|
89918
90121
|
return awaitEmpty(exportFibers);
|
|
89919
90122
|
}).pipe(ignore$1, interruptible, timeoutOption(options.shutdownTimeout)));
|
|
89920
|
-
const armed = yield* make$
|
|
89921
|
-
const wake = yield* make$
|
|
90123
|
+
const armed = yield* make$78(exportsEmpty);
|
|
90124
|
+
const wake = yield* make$78();
|
|
89922
90125
|
const disarmIfEmpty = sync(() => {
|
|
89923
90126
|
if (exportsEmpty || buffer.length > 0 || !armed.closeUnsafe()) return;
|
|
89924
90127
|
wake.openUnsafe();
|
|
@@ -90064,7 +90267,7 @@ const unknownToAttributeValue = (value) => {
|
|
|
90064
90267
|
case "bigint": return BigInt.asIntN(64, value) === value ? { intValue: String(value) } : { stringValue: String(value) };
|
|
90065
90268
|
case "number": return Number.isInteger(value) && value >= -int64Bound && value < int64Bound ? { intValue: Number.isSafeInteger(value) ? value : String(BigInt(value)) } : { doubleValue: value };
|
|
90066
90269
|
case "boolean": return { boolValue: value };
|
|
90067
|
-
default: return { stringValue: format$
|
|
90270
|
+
default: return { stringValue: format$4(value) };
|
|
90068
90271
|
}
|
|
90069
90272
|
};
|
|
90070
90273
|
// ../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/observability/OtlpSerialization.js
|
|
@@ -90290,7 +90493,7 @@ const layer = /*#__PURE__*/ flow(/* @__PURE__ */ fnUntraced(function* (options)
|
|
|
90290
90493
|
if (!span.sampled) return;
|
|
90291
90494
|
exporter.push(makeOtlpSpan(span));
|
|
90292
90495
|
}
|
|
90293
|
-
return make$
|
|
90496
|
+
return make$85({
|
|
90294
90497
|
span(options) {
|
|
90295
90498
|
return new SpanImpl(options, exportFn);
|
|
90296
90499
|
},
|
|
@@ -90534,6 +90737,13 @@ const adminIds = gen(function* () {
|
|
|
90534
90737
|
function isAdmin(admins, id) {
|
|
90535
90738
|
return contains(admins, replace("github:", "")(id));
|
|
90536
90739
|
}
|
|
90740
|
+
function requireAdmin(admins, user, message) {
|
|
90741
|
+
if (isAdmin(admins, user.id)) return void_$1;
|
|
90742
|
+
return fail$8(AuthError.make({
|
|
90743
|
+
error: "access_denied",
|
|
90744
|
+
message
|
|
90745
|
+
}));
|
|
90746
|
+
}
|
|
90537
90747
|
function rejected(message) {
|
|
90538
90748
|
return mapError$2((cause) => {
|
|
90539
90749
|
if (is$2(AuthError)(cause)) return cause;
|
|
@@ -91137,7 +91347,7 @@ const generateKeyPair = /*#__PURE__*/ fnUntraced(function* (options) {
|
|
|
91137
91347
|
const privateJwk = yield* exportJwk(pair.privateKey, algorithm, kid);
|
|
91138
91348
|
return {
|
|
91139
91349
|
publicKey: publicJwk,
|
|
91140
|
-
privateKey: make$
|
|
91350
|
+
privateKey: make$63(privateJwk)
|
|
91141
91351
|
};
|
|
91142
91352
|
});
|
|
91143
91353
|
/**
|
|
@@ -91202,7 +91412,7 @@ const importPrivate = /*#__PURE__*/ fnUntraced(function* (input, algorithm) {
|
|
|
91202
91412
|
* @category encoding
|
|
91203
91413
|
* @since 4.1.1
|
|
91204
91414
|
*/
|
|
91205
|
-
const exportPrivate = (key) => map$5(exportJwk(key.key, key.algorithm, key.kid), (jwk) => make$
|
|
91415
|
+
const exportPrivate = (key) => map$5(exportJwk(key.key, key.algorithm, key.kid), (jwk) => make$63(jwk));
|
|
91206
91416
|
/**
|
|
91207
91417
|
* Computes an RFC 7638 JWK thumbprint, encoded as unpadded base64url.
|
|
91208
91418
|
*
|
|
@@ -91517,7 +91727,7 @@ const sign$1 = /*#__PURE__*/ fnUntraced(function* (payload, key, header) {
|
|
|
91517
91727
|
let signature;
|
|
91518
91728
|
if (key._tag === "SecretKey") signature = yield* (yield* Mac).sign(key.key, data).pipe(mapError$2(signFailure));
|
|
91519
91729
|
else signature = yield* (yield* Signature).sign(key.key, data).pipe(mapError$2(signFailure));
|
|
91520
|
-
return make$
|
|
91730
|
+
return make$63(`${signingInput}.${encode$3(signature)}`);
|
|
91521
91731
|
});
|
|
91522
91732
|
/**
|
|
91523
91733
|
* Verifies a compact JWS with a key. The token's `alg` must be the key's
|
|
@@ -91828,7 +92038,7 @@ var Sessions = class Sessions extends Service$1()("@deslop/runtime/auth/sessions
|
|
|
91828
92038
|
createdAt,
|
|
91829
92039
|
expiresAt: now + tokens.expires_in * 1e3,
|
|
91830
92040
|
lastUsedAt: now,
|
|
91831
|
-
refresh: make$
|
|
92041
|
+
refresh: make$63(tokens.refresh_token),
|
|
91832
92042
|
user: {
|
|
91833
92043
|
id: claims.sub,
|
|
91834
92044
|
name: claims.name
|
|
@@ -91919,7 +92129,7 @@ const unavailable = text("The authorization service is temporarily unavailable;
|
|
|
91919
92129
|
status: 503
|
|
91920
92130
|
});
|
|
91921
92131
|
var Auth = class Auth extends Service$1()("@deslop/runtime/auth/service/Auth") {
|
|
91922
|
-
static makeContext = (auth) => pipe(make$
|
|
92132
|
+
static makeContext = (auth) => pipe(make$87(Auth, auth), add$1(RpcAuth, RpcAuth.of((effect, request) => pipe(auth.user(request.headers), flatMap$2((user) => raceFirst(provideService(effect, CurrentUser, user), pipe(delay(auth.user(request.headers), "5 minutes"), retry({ while: (error) => error.error === "temporarily_unavailable" }), forever)))))));
|
|
91923
92133
|
static layer = unwrap$7(gen(function* () {
|
|
91924
92134
|
if (yield* localAuth) return succeedContext(Auth.makeContext(Auth.of({
|
|
91925
92135
|
token: () => fail$8(AuthError.make({ message: "There is no sign-in without --auth" })),
|
|
@@ -92078,7 +92288,7 @@ function layerKeyValueStore(directory) {
|
|
|
92078
92288
|
const base = yield* KeyValueStore;
|
|
92079
92289
|
const fs = yield* FileSystem;
|
|
92080
92290
|
const path = yield* Path$1;
|
|
92081
|
-
const writes = yield* make$
|
|
92291
|
+
const writes = yield* make$73(1);
|
|
92082
92292
|
return make$20({
|
|
92083
92293
|
...omit(base, [
|
|
92084
92294
|
"set",
|
|
@@ -92389,12 +92599,9 @@ var AppError = class extends TaggedError()("AppError", {
|
|
|
92389
92599
|
cause: optional$8(Defect()),
|
|
92390
92600
|
message: String$6
|
|
92391
92601
|
}) {};
|
|
92392
|
-
// ../../packages/runtime/src/cli/
|
|
92393
|
-
function systemdArgument(value) {
|
|
92394
|
-
return `"${pipe(value, replaceAll("\\", "\\\\"), replaceAll("\"", "\\\""), replaceAll("%", "%%"), replaceAll("$", "$$$$"), replaceAll("\n", "\\n"), replaceAll("\r", "\\r"))}"`;
|
|
92395
|
-
}
|
|
92602
|
+
// ../../packages/runtime/src/cli/command.ts
|
|
92396
92603
|
const execute = fnUntraced(function* (command, args) {
|
|
92397
|
-
const process = yield* make$
|
|
92604
|
+
const process = yield* make$62(command, args, {
|
|
92398
92605
|
stderr: "pipe",
|
|
92399
92606
|
stdout: "pipe"
|
|
92400
92607
|
});
|
|
@@ -92406,6 +92613,86 @@ const execute = fnUntraced(function* (command, args) {
|
|
|
92406
92613
|
if (result.code !== 0) return yield* AppError.make({ message: `${command} failed: ${result.stderr}` });
|
|
92407
92614
|
return result.stdout;
|
|
92408
92615
|
}, scoped);
|
|
92616
|
+
// ../../packages/runtime/src/cli/launchd.ts
|
|
92617
|
+
function xml(value) {
|
|
92618
|
+
return pipe(value, replaceAll("&", "&"), replaceAll("<", "<"), replaceAll(">", ">"), replaceAll("\"", """), replaceAll("'", "'"));
|
|
92619
|
+
}
|
|
92620
|
+
function domain() {
|
|
92621
|
+
return `gui/${userInfo().uid}`;
|
|
92622
|
+
}
|
|
92623
|
+
function launchctl(...args) {
|
|
92624
|
+
return execute("launchctl", args);
|
|
92625
|
+
}
|
|
92626
|
+
function bootout(file) {
|
|
92627
|
+
return launchctl("bootout", domain(), file);
|
|
92628
|
+
}
|
|
92629
|
+
const loaded = fnUntraced(function* (target) {
|
|
92630
|
+
const process = yield* make$62("launchctl", ["print", target], {
|
|
92631
|
+
stderr: "pipe",
|
|
92632
|
+
stdout: "ignore"
|
|
92633
|
+
});
|
|
92634
|
+
const result = yield* all$1({
|
|
92635
|
+
code: process.exitCode,
|
|
92636
|
+
stderr: mkString(decodeText$1(process.stderr))
|
|
92637
|
+
}, { concurrency: "unbounded" });
|
|
92638
|
+
if (result.code === 113) return false;
|
|
92639
|
+
if (result.code !== 0) return yield* AppError.make({ message: `launchctl failed: ${result.stderr}` });
|
|
92640
|
+
return true;
|
|
92641
|
+
}, scoped);
|
|
92642
|
+
const agentDirectory = gen(function* () {
|
|
92643
|
+
return (yield* Path$1).join(yield* String$5("HOME"), "Library", "LaunchAgents");
|
|
92644
|
+
});
|
|
92645
|
+
const writeAgent = fnUntraced(function* (label, name, command, schedule) {
|
|
92646
|
+
const fs = yield* FileSystem;
|
|
92647
|
+
const path = yield* Path$1;
|
|
92648
|
+
const home = yield* String$5("HOME");
|
|
92649
|
+
const directory = yield* agentDirectory;
|
|
92650
|
+
const args = [
|
|
92651
|
+
execPath,
|
|
92652
|
+
`--env-file-if-exists=${home}/.deslop/${name}.env`,
|
|
92653
|
+
...drop$1(command, 1)
|
|
92654
|
+
];
|
|
92655
|
+
const file = path.join(directory, `${label}.plist`);
|
|
92656
|
+
yield* fs.makeDirectory(directory, { recursive: true });
|
|
92657
|
+
yield* fs.writeFileString(file, `<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n<plist version="1.0">\n<dict>\n<key>Label</key><string>${xml(label)}</string>\n<key>ProgramArguments</key>\n<array>\n${join$2(map$8(args, (arg) => `<string>${xml(arg)}</string>`), "\n")}\n</array>\n<key>EnvironmentVariables</key>\n<dict>\n<key>NODE_ENV</key><string>production</string>\n<key>PATH</key><string>${xml(`${home}/.vite-plus/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin`)}</string>\n</dict>\n<key>Umask</key><integer>63</integer>\n${schedule}\n</dict>\n</plist>\n`, { mode: 384 });
|
|
92658
|
+
return file;
|
|
92659
|
+
});
|
|
92660
|
+
const installAgent = fnUntraced(function* (name, command) {
|
|
92661
|
+
const label = `deslop-${name}`;
|
|
92662
|
+
const target = `${domain()}/${label}`;
|
|
92663
|
+
const file = yield* writeAgent(label, name, command, "<key>RunAtLoad</key><true/>\n<key>KeepAlive</key><dict><key>SuccessfulExit</key><false/></dict>\n<key>ThrottleInterval</key><integer>3</integer>");
|
|
92664
|
+
if (yield* loaded(target)) yield* bootout(file);
|
|
92665
|
+
yield* launchctl("bootstrap", domain(), file);
|
|
92666
|
+
return `${label}.plist installed\n`;
|
|
92667
|
+
});
|
|
92668
|
+
const installUpdateAgent = fnUntraced(function* (name, command) {
|
|
92669
|
+
const label = `deslop-${name}-update`;
|
|
92670
|
+
const target = `${domain()}/${label}`;
|
|
92671
|
+
const file = yield* writeAgent(label, name, command, "<key>StartInterval</key><integer>900</integer>");
|
|
92672
|
+
if (yield* loaded(target)) yield* bootout(file);
|
|
92673
|
+
yield* launchctl("bootstrap", domain(), file);
|
|
92674
|
+
});
|
|
92675
|
+
const uninstallAgents = fnUntraced(function* (name) {
|
|
92676
|
+
const fs = yield* FileSystem;
|
|
92677
|
+
const path = yield* Path$1;
|
|
92678
|
+
const directory = yield* agentDirectory;
|
|
92679
|
+
yield* forEach$1([`deslop-${name}-update`, `deslop-${name}`], fnUntraced(function* (label) {
|
|
92680
|
+
const file = path.join(directory, `${label}.plist`);
|
|
92681
|
+
if (yield* loaded(`${domain()}/${label}`)) yield* bootout(file);
|
|
92682
|
+
yield* fs.remove(file, { force: true });
|
|
92683
|
+
}), { concurrency: 1 });
|
|
92684
|
+
return `deslop-${name}.plist removed; application data preserved\n`;
|
|
92685
|
+
});
|
|
92686
|
+
function agentStatus(name) {
|
|
92687
|
+
return pipe(launchctl("print", `${domain()}/deslop-${name}`), map$5((output) => `${join$2(map$8(filter$6(split$2(output, "\n"), (line) => isSome(match$3(/^\s*(?:path|state|pid|last exit code|last terminating signal) =/u)(line))), trim), "\n")}\n`));
|
|
92688
|
+
}
|
|
92689
|
+
function restartAgent(name) {
|
|
92690
|
+
return pipe(launchctl("kickstart", "-k", `${domain()}/deslop-${name}`), timeout$1("30 seconds"));
|
|
92691
|
+
}
|
|
92692
|
+
// ../../packages/runtime/src/cli/service.ts
|
|
92693
|
+
function systemdArgument(value) {
|
|
92694
|
+
return `"${pipe(value, replaceAll("\\", "\\\\"), replaceAll("\"", "\\\""), replaceAll("%", "%%"), replaceAll("$", "$$$$"), replaceAll("\n", "\\n"), replaceAll("\r", "\\r"))}"`;
|
|
92695
|
+
}
|
|
92409
92696
|
function systemctl(...args) {
|
|
92410
92697
|
return execute("systemctl", ["--user", ...args]);
|
|
92411
92698
|
}
|
|
@@ -92413,6 +92700,7 @@ const unitDirectory = gen(function* () {
|
|
|
92413
92700
|
return (yield* Path$1).join(yield* String$5("HOME"), ".config", "systemd", "user");
|
|
92414
92701
|
});
|
|
92415
92702
|
const install = fnUntraced(function* (name, command, options) {
|
|
92703
|
+
if (platform === "darwin") return yield* installAgent(name, command);
|
|
92416
92704
|
const fs = yield* FileSystem;
|
|
92417
92705
|
const path = yield* Path$1;
|
|
92418
92706
|
const home = yield* String$5("HOME");
|
|
@@ -92429,6 +92717,7 @@ const install = fnUntraced(function* (name, command, options) {
|
|
|
92429
92717
|
return `${unit} installed\n`;
|
|
92430
92718
|
});
|
|
92431
92719
|
const installUpdates = fnUntraced(function* (name, command) {
|
|
92720
|
+
if (platform === "darwin") return yield* installUpdateAgent(name, command);
|
|
92432
92721
|
const fs = yield* FileSystem;
|
|
92433
92722
|
const path = yield* Path$1;
|
|
92434
92723
|
const directory = yield* unitDirectory;
|
|
@@ -92439,6 +92728,7 @@ const installUpdates = fnUntraced(function* (name, command) {
|
|
|
92439
92728
|
yield* systemctl("enable", "--now", `${unit}.timer`);
|
|
92440
92729
|
});
|
|
92441
92730
|
const uninstall = fnUntraced(function* (name) {
|
|
92731
|
+
if (platform === "darwin") return yield* uninstallAgents(name);
|
|
92442
92732
|
const fs = yield* FileSystem;
|
|
92443
92733
|
const path = yield* Path$1;
|
|
92444
92734
|
const directory = yield* unitDirectory;
|
|
@@ -92452,9 +92742,11 @@ const uninstall = fnUntraced(function* (name) {
|
|
|
92452
92742
|
return `deslop-${name}.service removed; application data preserved\n`;
|
|
92453
92743
|
});
|
|
92454
92744
|
function status(name) {
|
|
92745
|
+
if (platform === "darwin") return agentStatus(name);
|
|
92455
92746
|
return systemctl("show", `deslop-${name}.service`, "--property=LoadState,ActiveState,SubState,MainPID");
|
|
92456
92747
|
}
|
|
92457
92748
|
function restart(name) {
|
|
92749
|
+
if (platform === "darwin") return restartAgent(name);
|
|
92458
92750
|
return pipe(systemctl("restart", `deslop-${name}.service`), timeout$1("30 seconds"));
|
|
92459
92751
|
}
|
|
92460
92752
|
// ../../packages/runtime/src/cli/update.ts
|
|
@@ -92570,7 +92862,7 @@ function server(app) {
|
|
|
92570
92862
|
}))), provide$2(layerNodeHttpServer), provide$2(layerPlatform), launch);
|
|
92571
92863
|
}
|
|
92572
92864
|
function output(text) {
|
|
92573
|
-
return flatMap$2(Stdio, (stdio) => run$7(make$
|
|
92865
|
+
return flatMap$2(Stdio, (stdio) => run$7(make$69(text), stdio.stdout()));
|
|
92574
92866
|
}
|
|
92575
92867
|
function runApp(app) {
|
|
92576
92868
|
const program = gen(function* () {
|
|
@@ -92823,6 +93115,34 @@ const AdmitParams = Struct({
|
|
|
92823
93115
|
allow: Boolean$5,
|
|
92824
93116
|
id: NonEmptyString
|
|
92825
93117
|
});
|
|
93118
|
+
map$8([
|
|
93119
|
+
"0.0.0.0/8",
|
|
93120
|
+
"100.64.0.0/10",
|
|
93121
|
+
"192.0.0.0/24",
|
|
93122
|
+
"192.0.2.0/24",
|
|
93123
|
+
"192.31.196.0/24",
|
|
93124
|
+
"192.52.193.0/24",
|
|
93125
|
+
"192.88.99.0/24",
|
|
93126
|
+
"192.175.48.0/24",
|
|
93127
|
+
"198.18.0.0/15",
|
|
93128
|
+
"198.51.100.0/24",
|
|
93129
|
+
"203.0.113.0/24",
|
|
93130
|
+
"240.0.0.0/4",
|
|
93131
|
+
"100::/64",
|
|
93132
|
+
"2001::/23",
|
|
93133
|
+
"2001:db8::/32",
|
|
93134
|
+
"2002::/16",
|
|
93135
|
+
"2620:4f:8000::/48",
|
|
93136
|
+
"3fff::/20",
|
|
93137
|
+
"5f00::/16",
|
|
93138
|
+
"64:ff9b::/96",
|
|
93139
|
+
"64:ff9b:1::/48",
|
|
93140
|
+
"fec0::/10"
|
|
93141
|
+
], (source) => getOrThrow(fromString$1(source)));
|
|
93142
|
+
function isPrivateAddress(ip) {
|
|
93143
|
+
if (isIpv4Address(ip)) return isPrivate(ip);
|
|
93144
|
+
return isUniqueLocal(ip);
|
|
93145
|
+
}
|
|
92826
93146
|
// src/services/tokens/lib/utils.ts
|
|
92827
93147
|
const WORKERS = {
|
|
92828
93148
|
"77.237.236.132": "dev",
|
|
@@ -92883,10 +93203,6 @@ function parsedAddress(address) {
|
|
|
92883
93203
|
return ip;
|
|
92884
93204
|
}));
|
|
92885
93205
|
}
|
|
92886
|
-
function isPrivateOrUniqueLocal(ip) {
|
|
92887
|
-
if (isIpv4Address(ip)) return isPrivate(ip);
|
|
92888
|
-
return isUniqueLocal(ip);
|
|
92889
|
-
}
|
|
92890
93206
|
function addressGroup(address) {
|
|
92891
93207
|
return match$8(parsedAddress(address), {
|
|
92892
93208
|
onNone: () => address,
|
|
@@ -92914,7 +93230,7 @@ function originFrom(headers, remote) {
|
|
|
92914
93230
|
function clientLabel(name) {
|
|
92915
93231
|
return pipe(name, replace(/\s*\([^)]*\)$/u, ""), trim, capitalize, liftPredicate(isNonEmpty$1), getOrElse(() => "Unknown client"));
|
|
92916
93232
|
}
|
|
92917
|
-
function platform(userAgent) {
|
|
93233
|
+
function platform$1(userAgent) {
|
|
92918
93234
|
if (includes("iPhone")(userAgent)) return some$1("iPhone");
|
|
92919
93235
|
if (includes("iPad")(userAgent)) return some$1("iPad");
|
|
92920
93236
|
if (includes("CFNetwork/")(userAgent)) return some$1("iPhone");
|
|
@@ -92934,9 +93250,9 @@ function browserLabel(origin) {
|
|
|
92934
93250
|
}
|
|
92935
93251
|
function deviceLabel(origin) {
|
|
92936
93252
|
return pipe(flatMap$7(fromUndefinedOr(origin.address), (address) => {
|
|
92937
|
-
if (exists(parsedAddress(address), (ip) => isLinkLocal(ip) || isLoopback(ip) ||
|
|
93253
|
+
if (exists(parsedAddress(address), (ip) => isLinkLocal(ip) || isLoopback(ip) || isPrivateAddress(ip))) return some$1("dev");
|
|
92938
93254
|
return get$13(WORKERS, address);
|
|
92939
|
-
}), orElse$3(() => flatMap$7(fromUndefinedOr(origin.userAgent), platform)), getOrElse(() => origin.address ?? "unknown"));
|
|
93255
|
+
}), orElse$3(() => flatMap$7(fromUndefinedOr(origin.userAgent), platform$1)), getOrElse(() => origin.address ?? "unknown"));
|
|
92940
93256
|
}
|
|
92941
93257
|
function loopback(redirect) {
|
|
92942
93258
|
return filter$8(getSuccess(fromString(redirect)), (target) => target.protocol === "http:" && contains([
|
|
@@ -114731,8 +115047,8 @@ var Passkeys = class Passkeys extends Service$1()("@deslop/auth/services/passkey
|
|
|
114731
115047
|
onFalse: () => "mp281x.xyz",
|
|
114732
115048
|
onTrue: () => new URL(origin).hostname
|
|
114733
115049
|
});
|
|
114734
|
-
const registering = yield* make$
|
|
114735
|
-
const signingIn = yield* make$
|
|
115050
|
+
const registering = yield* make$60(empty$4());
|
|
115051
|
+
const signingIn = yield* make$60(empty$4());
|
|
114736
115052
|
const change = fnUntraced(function* (next) {
|
|
114737
115053
|
yield* updateEffect(state, (current) => tap$1(next(current), (updated) => store.set("passkeys", updated)));
|
|
114738
115054
|
}, uninterruptible);
|
|
@@ -115093,8 +115409,8 @@ var Tokens = class Tokens extends Service$1()("@deslop/auth/services/tokens/serv
|
|
|
115093
115409
|
});
|
|
115094
115410
|
const publicKey = yield* importPublic(publicJwk, "EdDSA");
|
|
115095
115411
|
const signature = yield* Signature;
|
|
115096
|
-
const codes = yield* make$
|
|
115097
|
-
const redeeming = yield* make$
|
|
115412
|
+
const codes = yield* make$60(empty$4());
|
|
115413
|
+
const redeeming = yield* make$73(1);
|
|
115098
115414
|
const randomToken = randomTokenOf(yield* SecureRandom);
|
|
115099
115415
|
const hash = hashOf(yield* Digest);
|
|
115100
115416
|
const change = fnUntraced(function* (update) {
|
|
@@ -115429,12 +115745,9 @@ var People = class People extends Service$1()("@deslop/auth/services/people/serv
|
|
|
115429
115745
|
if (local) return developer;
|
|
115430
115746
|
return yield* allowed(yield* tokens.session(headers));
|
|
115431
115747
|
});
|
|
115432
|
-
|
|
115433
|
-
|
|
115434
|
-
|
|
115435
|
-
message: "Only an admin can manage people"
|
|
115436
|
-
});
|
|
115437
|
-
});
|
|
115748
|
+
function admin(user) {
|
|
115749
|
+
return requireAdmin(admins, user, "Only an admin can manage people");
|
|
115750
|
+
}
|
|
115438
115751
|
const list = fn("People.list")(function* (user) {
|
|
115439
115752
|
yield* admin(user);
|
|
115440
115753
|
return listPeople(yield* get(state), admins);
|
|
@@ -115516,7 +115829,7 @@ var People = class People extends Service$1()("@deslop/auth/services/people/serv
|
|
|
115516
115829
|
return personOf(admins, removed);
|
|
115517
115830
|
}, rejected("Cannot remove this account"))
|
|
115518
115831
|
});
|
|
115519
|
-
return pipe(make$
|
|
115832
|
+
return pipe(make$87(People, people), add$1(RpcOwner, RpcOwner.of((effect, request) => flatMap$2(sessionOwner(request.headers), (owner) => provideService(effect, CurrentOwner, owner)))));
|
|
115520
115833
|
}));
|
|
115521
115834
|
};
|
|
115522
115835
|
const layerIssuerAuth = effectContext(gen(function* () {
|
|
@@ -120577,7 +120890,7 @@ var CompiledProcess = class {
|
|
|
120577
120890
|
return this.requestTermination(requested).pipe(flatMap$2((accepted) => accepted ? forkDetach(this.settleRequestedTermination()).pipe(asVoid) : void_$1));
|
|
120578
120891
|
}
|
|
120579
120892
|
sendAcknowledgedEffect(event) {
|
|
120580
|
-
return uninterruptibleMask((restore) => make$
|
|
120893
|
+
return uninterruptibleMask((restore) => make$84().pipe(flatMap$2((deferred) => this.offerEvent(event, void 0, void 0, deferred).pipe(andThen(restore(_await(deferred)))))));
|
|
120581
120894
|
}
|
|
120582
120895
|
offerEvent(event, source, causedBy, deferred) {
|
|
120583
120896
|
return suspend$2(() => {
|
|
@@ -121007,8 +121320,8 @@ const startGenericInternal = fnUntraced(function* (logic, options) {
|
|
|
121007
121320
|
let initialMicrosteps;
|
|
121008
121321
|
const mailbox = makeProcessMailbox();
|
|
121009
121322
|
const emissions = options.emissions ?? makeEmissionRuntime();
|
|
121010
|
-
const termination = yield* make$
|
|
121011
|
-
const done = yield* make$
|
|
121323
|
+
const termination = yield* make$84();
|
|
121324
|
+
const done = yield* make$84();
|
|
121012
121325
|
const awaitCompletion = _await(done).pipe(exit, asVoid);
|
|
121013
121326
|
let initializing = true;
|
|
121014
121327
|
let inFlightMessage;
|
|
@@ -121022,7 +121335,7 @@ const startGenericInternal = fnUntraced(function* (logic, options) {
|
|
|
121022
121335
|
};
|
|
121023
121336
|
return offerDirect(message, () => publishInspectedSent(inspector, subject, message));
|
|
121024
121337
|
});
|
|
121025
|
-
const sendAcknowledged = logic.execution?._tag !== "Compiled" ? void 0 : (event) => uninterruptibleMask((restore) => make$
|
|
121338
|
+
const sendAcknowledged = logic.execution?._tag !== "Compiled" ? void 0 : (event) => uninterruptibleMask((restore) => make$84().pipe(flatMap$2((deferred) => {
|
|
121026
121339
|
return (inspector === void 0 ? offerDirect({
|
|
121027
121340
|
[AcknowledgedMessageTypeId]: true,
|
|
121028
121341
|
event,
|
|
@@ -121412,7 +121725,7 @@ fnUntraced(function* (logic, strategy, options) {
|
|
|
121412
121725
|
const inspection = yield* make$2(sessionId);
|
|
121413
121726
|
runtime.inspection = inspection;
|
|
121414
121727
|
const emissions = makeEmissionRuntime();
|
|
121415
|
-
const started = yield* make$
|
|
121728
|
+
const started = yield* make$84();
|
|
121416
121729
|
const internalOptions = options === void 0 ? {
|
|
121417
121730
|
detached: true,
|
|
121418
121731
|
emissions,
|
|
@@ -122941,7 +123254,7 @@ var SignIns = class SignIns extends Service$1()("@deslop/auth/services/sign-ins/
|
|
|
122941
123254
|
const hash = hashOf(yield* Digest);
|
|
122942
123255
|
const scope$2 = yield* scope;
|
|
122943
123256
|
const open = yield* make$18(empty$4());
|
|
122944
|
-
const answering = yield* make$
|
|
123257
|
+
const answering = yield* make$73(1);
|
|
122945
123258
|
function find(code) {
|
|
122946
123259
|
return map$5(get(open), get$4(typedCode(code)));
|
|
122947
123260
|
}
|