create-efffrida-app 0.0.8 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.cjs +464 -396
- package/package.json +4 -4
package/dist/bin.cjs
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var Cs = require('stream');
|
|
5
5
|
var NodeChildProcess = require('child_process');
|
|
6
6
|
var NodeCrypto = require('crypto');
|
|
7
|
-
var
|
|
7
|
+
var u = require('fs');
|
|
8
8
|
var OS = require('os');
|
|
9
9
|
var R = require('path');
|
|
10
10
|
var NodeUrl = require('url');
|
|
@@ -39,7 +39,7 @@ function _interopNamespace(e) {
|
|
|
39
39
|
var Cs__default = /*#__PURE__*/_interopDefault(Cs);
|
|
40
40
|
var NodeChildProcess__namespace = /*#__PURE__*/_interopNamespace(NodeChildProcess);
|
|
41
41
|
var NodeCrypto__namespace = /*#__PURE__*/_interopNamespace(NodeCrypto);
|
|
42
|
-
var
|
|
42
|
+
var u__namespace = /*#__PURE__*/_interopNamespace(u);
|
|
43
43
|
var OS__namespace = /*#__PURE__*/_interopNamespace(OS);
|
|
44
44
|
var R__namespace = /*#__PURE__*/_interopNamespace(R);
|
|
45
45
|
var NodeUrl__namespace = /*#__PURE__*/_interopNamespace(NodeUrl);
|
|
@@ -4873,8 +4873,8 @@ var require_compiler = __commonJS({
|
|
|
4873
4873
|
var ownedContainers = /* @__PURE__ */ new WeakSet();
|
|
4874
4874
|
var data = createTable();
|
|
4875
4875
|
var context3 = data;
|
|
4876
|
-
return
|
|
4877
|
-
function
|
|
4876
|
+
return reduce4(nodes);
|
|
4877
|
+
function reduce4(nodes2) {
|
|
4878
4878
|
var node;
|
|
4879
4879
|
for (var i = 0; i < nodes2.length; i++) {
|
|
4880
4880
|
node = nodes2[i];
|
|
@@ -12376,7 +12376,7 @@ var require_dist = __commonJS({
|
|
|
12376
12376
|
}
|
|
12377
12377
|
});
|
|
12378
12378
|
|
|
12379
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
12379
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Effect.js
|
|
12380
12380
|
var Effect_exports = {};
|
|
12381
12381
|
__export(Effect_exports, {
|
|
12382
12382
|
Do: () => Do2,
|
|
@@ -12515,6 +12515,7 @@ __export(Effect_exports, {
|
|
|
12515
12515
|
raceAll: () => raceAll2,
|
|
12516
12516
|
raceAllFirst: () => raceAllFirst2,
|
|
12517
12517
|
raceFirst: () => raceFirst2,
|
|
12518
|
+
reduce: () => reduce3,
|
|
12518
12519
|
repeat: () => repeat2,
|
|
12519
12520
|
repeatOrElse: () => repeatOrElse2,
|
|
12520
12521
|
replicate: () => replicate2,
|
|
@@ -12607,7 +12608,7 @@ __export(Effect_exports, {
|
|
|
12607
12608
|
zipWith: () => zipWith2
|
|
12608
12609
|
});
|
|
12609
12610
|
|
|
12610
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
12611
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Pipeable.js
|
|
12611
12612
|
var pipeArguments = (self, args2) => {
|
|
12612
12613
|
switch (args2.length) {
|
|
12613
12614
|
case 0:
|
|
@@ -12651,7 +12652,7 @@ var Class = /* @__PURE__ */ (function() {
|
|
|
12651
12652
|
return PipeableBase;
|
|
12652
12653
|
})();
|
|
12653
12654
|
|
|
12654
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
12655
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Function.js
|
|
12655
12656
|
var dual = function(arity, body) {
|
|
12656
12657
|
if (typeof arity === "function") {
|
|
12657
12658
|
return function() {
|
|
@@ -12713,7 +12714,7 @@ function memoize(f2) {
|
|
|
12713
12714
|
};
|
|
12714
12715
|
}
|
|
12715
12716
|
|
|
12716
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
12717
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/equal.js
|
|
12717
12718
|
var getAllObjectKeys = (obj) => {
|
|
12718
12719
|
const keys2 = new Set(Reflect.ownKeys(obj));
|
|
12719
12720
|
if (obj.constructor === Object) return keys2;
|
|
@@ -12736,7 +12737,7 @@ var getAllObjectKeys = (obj) => {
|
|
|
12736
12737
|
};
|
|
12737
12738
|
var byReferenceInstances = /* @__PURE__ */ new WeakSet();
|
|
12738
12739
|
|
|
12739
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
12740
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Predicate.js
|
|
12740
12741
|
function isString(input) {
|
|
12741
12742
|
return typeof input === "string";
|
|
12742
12743
|
}
|
|
@@ -12782,7 +12783,7 @@ function isIterable(input) {
|
|
|
12782
12783
|
return hasProperty(input, Symbol.iterator) || isString(input);
|
|
12783
12784
|
}
|
|
12784
12785
|
|
|
12785
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
12786
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Hash.js
|
|
12786
12787
|
var symbol = "~effect/interfaces/Hash";
|
|
12787
12788
|
var hash = (self) => {
|
|
12788
12789
|
switch (typeof self) {
|
|
@@ -12901,7 +12902,7 @@ function withVisitedTracking(obj, fn3) {
|
|
|
12901
12902
|
return result3;
|
|
12902
12903
|
}
|
|
12903
12904
|
|
|
12904
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
12905
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Equal.js
|
|
12905
12906
|
var symbol2 = "~effect/interfaces/Equal";
|
|
12906
12907
|
function equals() {
|
|
12907
12908
|
if (arguments.length === 1) {
|
|
@@ -13079,7 +13080,7 @@ var compareSets = /* @__PURE__ */ makeCompareSet(compareBoth);
|
|
|
13079
13080
|
var isEqual = (u2) => hasProperty(u2, symbol2);
|
|
13080
13081
|
var asEquivalence = () => equals;
|
|
13081
13082
|
|
|
13082
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13083
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Redactable.js
|
|
13083
13084
|
var symbolRedactable = /* @__PURE__ */ Symbol.for("~effect/Redactable");
|
|
13084
13085
|
var isRedactable = (u2) => hasProperty(u2, symbolRedactable);
|
|
13085
13086
|
function redact(u2) {
|
|
@@ -13098,7 +13099,7 @@ var emptyContext = {
|
|
|
13098
13099
|
}
|
|
13099
13100
|
};
|
|
13100
13101
|
|
|
13101
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13102
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Formatter.js
|
|
13102
13103
|
function format(input, options) {
|
|
13103
13104
|
const space = options?.space ?? 0;
|
|
13104
13105
|
const seen = /* @__PURE__ */ new WeakSet();
|
|
@@ -13197,7 +13198,7 @@ function formatJson(input, options) {
|
|
|
13197
13198
|
}, options?.space);
|
|
13198
13199
|
}
|
|
13199
13200
|
|
|
13200
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13201
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Inspectable.js
|
|
13201
13202
|
var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
|
|
13202
13203
|
var toJson = (input) => {
|
|
13203
13204
|
try {
|
|
@@ -13261,7 +13262,7 @@ var Class2 = class {
|
|
|
13261
13262
|
}
|
|
13262
13263
|
};
|
|
13263
13264
|
|
|
13264
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13265
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Utils.js
|
|
13265
13266
|
var SingleShotGen = class _SingleShotGen {
|
|
13266
13267
|
called = false;
|
|
13267
13268
|
self;
|
|
@@ -13321,7 +13322,7 @@ var pickInternalCall = () => {
|
|
|
13321
13322
|
};
|
|
13322
13323
|
var internalCall = /* @__PURE__ */ pickInternalCall();
|
|
13323
13324
|
|
|
13324
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13325
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/core.js
|
|
13325
13326
|
var EffectTypeId = `~effect/Effect`;
|
|
13326
13327
|
var ExitTypeId = `~effect/Exit`;
|
|
13327
13328
|
var effectVariance = {
|
|
@@ -13579,7 +13580,7 @@ var exitFailCause = /* @__PURE__ */ makeExit({
|
|
|
13579
13580
|
while (fiber3.interruptible && fiber3._interruptedCause && cont) {
|
|
13580
13581
|
cont = fiber3.getCont(contE);
|
|
13581
13582
|
}
|
|
13582
|
-
return cont ? cont[contE](cause, fiber3, annotated ? void 0 : this) : fiber3.yieldWith(annotated ?
|
|
13583
|
+
return cont ? cont[contE](cause, fiber3, annotated ? void 0 : this) : fiber3.yieldWith(annotated ? exitFailCause(cause) : this);
|
|
13583
13584
|
}
|
|
13584
13585
|
});
|
|
13585
13586
|
var exitFail = (e) => exitFailCause(causeFail(e));
|
|
@@ -13664,13 +13665,13 @@ var done = (value3) => {
|
|
|
13664
13665
|
return exitFail(Done(value3));
|
|
13665
13666
|
};
|
|
13666
13667
|
|
|
13667
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13668
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Effectable.js
|
|
13668
13669
|
var Prototype2 = (options) => makePrimitiveProto({
|
|
13669
13670
|
op: options.label,
|
|
13670
13671
|
[evaluate]: options.evaluate
|
|
13671
13672
|
});
|
|
13672
13673
|
|
|
13673
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13674
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/stackTraceLimit.js
|
|
13674
13675
|
var ObjectGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
13675
13676
|
var ObjectPrototypeHasOwnProperty = Object.prototype.hasOwnProperty;
|
|
13676
13677
|
var ObjectIsExtensible = Object.isExtensible;
|
|
@@ -13689,7 +13690,7 @@ var setStackTraceLimit = (value3) => {
|
|
|
13689
13690
|
}
|
|
13690
13691
|
};
|
|
13691
13692
|
|
|
13692
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13693
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Equivalence.js
|
|
13693
13694
|
var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
|
|
13694
13695
|
var isStrictEquivalent = (x, y) => x === y;
|
|
13695
13696
|
var strictEqual = () => isStrictEquivalent;
|
|
@@ -13716,7 +13717,7 @@ function Array_(item) {
|
|
|
13716
13717
|
});
|
|
13717
13718
|
}
|
|
13718
13719
|
|
|
13719
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13720
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/doNotation.js
|
|
13720
13721
|
var let_ = (map15) => dual(3, (self, name, f2) => map15(self, (a) => ({
|
|
13721
13722
|
...a,
|
|
13722
13723
|
[name]: f2(a)
|
|
@@ -13729,7 +13730,7 @@ var bind = (map15, flatMap6) => dual(3, (self, name, f2) => flatMap6(self, (a) =
|
|
|
13729
13730
|
[name]: b2
|
|
13730
13731
|
}))));
|
|
13731
13732
|
|
|
13732
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13733
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/option.js
|
|
13733
13734
|
var TypeId = "~effect/data/Option";
|
|
13734
13735
|
var CommonProto = {
|
|
13735
13736
|
[TypeId]: {
|
|
@@ -13795,7 +13796,7 @@ var some = (value3) => {
|
|
|
13795
13796
|
return a;
|
|
13796
13797
|
};
|
|
13797
13798
|
|
|
13798
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13799
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/result.js
|
|
13799
13800
|
var TypeId2 = "~effect/data/Result";
|
|
13800
13801
|
var CommonProto2 = {
|
|
13801
13802
|
[TypeId2]: {
|
|
@@ -13862,7 +13863,7 @@ var succeed = (success) => {
|
|
|
13862
13863
|
return a;
|
|
13863
13864
|
};
|
|
13864
13865
|
|
|
13865
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13866
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Order.js
|
|
13866
13867
|
function make2(compare) {
|
|
13867
13868
|
return (self, that) => self === that ? 0 : compare(self, that);
|
|
13868
13869
|
}
|
|
@@ -13876,7 +13877,7 @@ var mapInput = /* @__PURE__ */ dual(2, (self, f2) => make2((b1, b2) => self(f2(b
|
|
|
13876
13877
|
var Date2 = /* @__PURE__ */ mapInput(Number2, (date6) => date6.getTime());
|
|
13877
13878
|
var isGreaterThan = (O2) => dual(2, (self, that) => O2(self, that) === 1);
|
|
13878
13879
|
|
|
13879
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13880
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Option.js
|
|
13880
13881
|
var none2 = () => none;
|
|
13881
13882
|
var some2 = some;
|
|
13882
13883
|
var isOption2 = isOption;
|
|
@@ -13895,7 +13896,7 @@ var flatMap = /* @__PURE__ */ dual(2, (self, f2) => isNone2(self) ? none2() : f2
|
|
|
13895
13896
|
var filter = /* @__PURE__ */ dual(2, (self, predicate) => isNone2(self) ? none2() : predicate(self.value) ? some2(self.value) : none2());
|
|
13896
13897
|
var liftPredicate = /* @__PURE__ */ dual(2, (b2, predicate) => predicate(b2) ? some2(b2) : none2());
|
|
13897
13898
|
|
|
13898
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13899
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Context.js
|
|
13899
13900
|
var ServiceTypeId = "~effect/Context/Service";
|
|
13900
13901
|
var Service = function() {
|
|
13901
13902
|
const prevLimit = getStackTraceLimit();
|
|
@@ -14071,7 +14072,7 @@ var withMapUnsafe = (self, f2) => {
|
|
|
14071
14072
|
};
|
|
14072
14073
|
var Reference = Service;
|
|
14073
14074
|
|
|
14074
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
14075
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Duration.js
|
|
14075
14076
|
var TypeId4 = "~effect/time/Duration";
|
|
14076
14077
|
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
14077
14078
|
var bigint1 = /* @__PURE__ */ BigInt(1);
|
|
@@ -14319,10 +14320,10 @@ var subtract = /* @__PURE__ */ dual(2, (self, that) => matchPair(self, that, {
|
|
|
14319
14320
|
}));
|
|
14320
14321
|
var equals2 = /* @__PURE__ */ dual(2, (self, that) => Equivalence(self, that));
|
|
14321
14322
|
|
|
14322
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
14323
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/array.js
|
|
14323
14324
|
var isArrayNonEmpty = (self) => self.length > 0;
|
|
14324
14325
|
|
|
14325
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
14326
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Result.js
|
|
14326
14327
|
var succeed2 = succeed;
|
|
14327
14328
|
var fail2 = fail;
|
|
14328
14329
|
var try_ = (evaluate2) => {
|
|
@@ -14347,10 +14348,10 @@ var match3 = /* @__PURE__ */ dual(2, (self, {
|
|
|
14347
14348
|
onSuccess
|
|
14348
14349
|
}) => isFailure2(self) ? onFailure(self.failure) : onSuccess(self.success));
|
|
14349
14350
|
|
|
14350
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
14351
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Tuple.js
|
|
14351
14352
|
var makeEquivalence = Tuple;
|
|
14352
14353
|
|
|
14353
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
14354
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Iterable.js
|
|
14354
14355
|
var findFirst = /* @__PURE__ */ dual(2, (self, f2) => {
|
|
14355
14356
|
let i = 0;
|
|
14356
14357
|
for (const a of self) {
|
|
@@ -14393,7 +14394,7 @@ var filter2 = /* @__PURE__ */ dual(2, (self, predicate) => ({
|
|
|
14393
14394
|
}
|
|
14394
14395
|
}));
|
|
14395
14396
|
|
|
14396
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
14397
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Record.js
|
|
14397
14398
|
var has = /* @__PURE__ */ dual(2, (self, key) => Object.hasOwn(self, key));
|
|
14398
14399
|
var map2 = /* @__PURE__ */ dual(2, (self, f2) => {
|
|
14399
14400
|
const out = {
|
|
@@ -14418,7 +14419,7 @@ var makeEquivalence2 = (equivalence) => {
|
|
|
14418
14419
|
return (self, that) => is4(self, that) && is4(that, self);
|
|
14419
14420
|
};
|
|
14420
14421
|
|
|
14421
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
14422
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Array.js
|
|
14422
14423
|
var Array2 = globalThis.Array;
|
|
14423
14424
|
var fromIterable = (collection) => Array2.isArray(collection) ? collection : Array2.from(collection);
|
|
14424
14425
|
var ensure = (self) => Array2.isArray(self) ? self : [self];
|
|
@@ -14517,7 +14518,7 @@ var dedupeWith = /* @__PURE__ */ dual(2, (self, isEquivalent) => {
|
|
|
14517
14518
|
return [];
|
|
14518
14519
|
});
|
|
14519
14520
|
|
|
14520
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
14521
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Filter.js
|
|
14521
14522
|
var composePassthrough = /* @__PURE__ */ dual(2, (left, right) => (input) => {
|
|
14522
14523
|
const leftOut = left(input);
|
|
14523
14524
|
if (isFailure2(leftOut)) return fail2(input);
|
|
@@ -14526,7 +14527,7 @@ var composePassthrough = /* @__PURE__ */ dual(2, (left, right) => (input) => {
|
|
|
14526
14527
|
return rightOut;
|
|
14527
14528
|
});
|
|
14528
14529
|
|
|
14529
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
14530
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Scheduler.js
|
|
14530
14531
|
var Scheduler = /* @__PURE__ */ Reference("effect/Scheduler", {
|
|
14531
14532
|
defaultValue: () => new MixedScheduler()
|
|
14532
14533
|
});
|
|
@@ -14651,7 +14652,7 @@ var PreventSchedulerYield = /* @__PURE__ */ Reference("effect/Scheduler/PreventS
|
|
|
14651
14652
|
defaultValue: () => false
|
|
14652
14653
|
});
|
|
14653
14654
|
|
|
14654
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
14655
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Tracer.js
|
|
14655
14656
|
var ParentSpanKey = "effect/Tracer/ParentSpan";
|
|
14656
14657
|
var ParentSpan = class extends (/* @__PURE__ */ Service()(ParentSpanKey)) {
|
|
14657
14658
|
};
|
|
@@ -14731,10 +14732,10 @@ var randomHexString = /* @__PURE__ */ (function() {
|
|
|
14731
14732
|
};
|
|
14732
14733
|
})();
|
|
14733
14734
|
|
|
14734
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
14735
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/metric.js
|
|
14735
14736
|
var FiberRuntimeMetricsKey = "effect/observability/Metric/FiberRuntimeMetricsKey";
|
|
14736
14737
|
|
|
14737
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
14738
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/references.js
|
|
14738
14739
|
var CurrentConcurrency = /* @__PURE__ */ Reference("effect/References/CurrentConcurrency", {
|
|
14739
14740
|
defaultValue: () => "unbounded"
|
|
14740
14741
|
});
|
|
@@ -14769,7 +14770,7 @@ var CurrentLogSpans = /* @__PURE__ */ Reference("effect/References/CurrentLogSpa
|
|
|
14769
14770
|
defaultValue: () => []
|
|
14770
14771
|
});
|
|
14771
14772
|
|
|
14772
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
14773
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/tracer.js
|
|
14773
14774
|
var addSpanStackTrace = (options) => {
|
|
14774
14775
|
if (options?.captureStackTrace === false) {
|
|
14775
14776
|
return options;
|
|
@@ -14800,10 +14801,10 @@ var makeStackCleaner = (line) => (stack) => {
|
|
|
14800
14801
|
};
|
|
14801
14802
|
var spanCleaner = /* @__PURE__ */ makeStackCleaner(3);
|
|
14802
14803
|
|
|
14803
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
14804
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/version.js
|
|
14804
14805
|
var version = "dev";
|
|
14805
14806
|
|
|
14806
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
14807
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/effect.js
|
|
14807
14808
|
var Interrupt = class extends ReasonBase {
|
|
14808
14809
|
fiberId;
|
|
14809
14810
|
constructor(fiberId3, annotations = constEmptyAnnotations) {
|
|
@@ -15053,7 +15054,6 @@ var FiberImpl = class {
|
|
|
15053
15054
|
this.setContext(context3);
|
|
15054
15055
|
this.id = ++fiberIdStore.id;
|
|
15055
15056
|
this.currentOpCount = 0;
|
|
15056
|
-
this.currentLoopCount = 0;
|
|
15057
15057
|
this.interruptible = interruptible3;
|
|
15058
15058
|
this._stack = [];
|
|
15059
15059
|
this._observers = [];
|
|
@@ -15061,20 +15061,22 @@ var FiberImpl = class {
|
|
|
15061
15061
|
this._children = void 0;
|
|
15062
15062
|
this._interruptedCause = void 0;
|
|
15063
15063
|
this._yielded = void 0;
|
|
15064
|
+
this._running = false;
|
|
15065
|
+
this._deferredInterrupt = false;
|
|
15064
15066
|
this.runtimeMetrics?.recordFiberStart(this.context);
|
|
15065
15067
|
}
|
|
15066
15068
|
[FiberTypeId];
|
|
15067
15069
|
id;
|
|
15068
15070
|
interruptible;
|
|
15069
15071
|
currentOpCount;
|
|
15070
|
-
currentLoopCount;
|
|
15071
15072
|
_stack;
|
|
15072
15073
|
_observers;
|
|
15073
15074
|
_exit;
|
|
15074
|
-
_currentExit;
|
|
15075
15075
|
_children;
|
|
15076
15076
|
_interruptedCause;
|
|
15077
15077
|
_yielded;
|
|
15078
|
+
_running;
|
|
15079
|
+
_deferredInterrupt;
|
|
15078
15080
|
// set in setContext
|
|
15079
15081
|
context;
|
|
15080
15082
|
currentScheduler;
|
|
@@ -15119,7 +15121,11 @@ var FiberImpl = class {
|
|
|
15119
15121
|
}
|
|
15120
15122
|
this._interruptedCause = this._interruptedCause ? causeCombine(this._interruptedCause, cause) : cause;
|
|
15121
15123
|
if (this.interruptible) {
|
|
15122
|
-
|
|
15124
|
+
if (this._running) {
|
|
15125
|
+
this._deferredInterrupt = true;
|
|
15126
|
+
} else {
|
|
15127
|
+
this.evaluate(failCause(this._interruptedCause));
|
|
15128
|
+
}
|
|
15123
15129
|
}
|
|
15124
15130
|
}
|
|
15125
15131
|
pollUnsafe() {
|
|
@@ -15147,16 +15153,24 @@ var FiberImpl = class {
|
|
|
15147
15153
|
this._observers[i](exit3);
|
|
15148
15154
|
}
|
|
15149
15155
|
this._observers.length = 0;
|
|
15156
|
+
this._stack.length = 0;
|
|
15157
|
+
this._children = void 0;
|
|
15158
|
+
this.context = empty();
|
|
15150
15159
|
}
|
|
15151
15160
|
runLoop(effect2) {
|
|
15152
15161
|
const prevFiber = globalThis[currentFiberTypeId];
|
|
15153
15162
|
globalThis[currentFiberTypeId] = this;
|
|
15163
|
+
const prevRunning = this._running;
|
|
15164
|
+
this._running = true;
|
|
15154
15165
|
let yielding = false;
|
|
15155
15166
|
let current = effect2;
|
|
15156
15167
|
this.currentOpCount = 0;
|
|
15157
|
-
const currentLoop = ++this.currentLoopCount;
|
|
15158
15168
|
try {
|
|
15159
15169
|
while (true) {
|
|
15170
|
+
if (this._deferredInterrupt) {
|
|
15171
|
+
this._deferredInterrupt = false;
|
|
15172
|
+
current = failCause(this._interruptedCause);
|
|
15173
|
+
}
|
|
15160
15174
|
this.currentOpCount++;
|
|
15161
15175
|
if (!yielding && !this.currentPreventYield && this.currentScheduler.shouldYield(this)) {
|
|
15162
15176
|
yielding = true;
|
|
@@ -15164,13 +15178,16 @@ var FiberImpl = class {
|
|
|
15164
15178
|
current = flatMap2(yieldNow, () => prev);
|
|
15165
15179
|
}
|
|
15166
15180
|
current = this.currentTracerContext ? this.currentTracerContext(current, this) : current[evaluate](this);
|
|
15167
|
-
if (
|
|
15168
|
-
return Yield;
|
|
15169
|
-
} else if (current === Yield) {
|
|
15181
|
+
if (current === Yield) {
|
|
15170
15182
|
const yielded = this._yielded;
|
|
15171
15183
|
if (ExitTypeId in yielded) {
|
|
15184
|
+
this._deferredInterrupt = false;
|
|
15172
15185
|
this._yielded = void 0;
|
|
15173
15186
|
return yielded;
|
|
15187
|
+
} else if (this._deferredInterrupt) {
|
|
15188
|
+
this._yielded = void 0;
|
|
15189
|
+
yielded();
|
|
15190
|
+
continue;
|
|
15174
15191
|
}
|
|
15175
15192
|
return Yield;
|
|
15176
15193
|
}
|
|
@@ -15181,10 +15198,15 @@ var FiberImpl = class {
|
|
|
15181
15198
|
}
|
|
15182
15199
|
return this.runLoop(exitDie(error2));
|
|
15183
15200
|
} finally {
|
|
15201
|
+
this._running = prevRunning;
|
|
15184
15202
|
globalThis[currentFiberTypeId] = prevFiber;
|
|
15185
15203
|
}
|
|
15186
15204
|
}
|
|
15187
15205
|
getCont(symbol4) {
|
|
15206
|
+
if (this._deferredInterrupt) {
|
|
15207
|
+
this._deferredInterrupt = false;
|
|
15208
|
+
return deferredInterruptCont;
|
|
15209
|
+
}
|
|
15188
15210
|
while (true) {
|
|
15189
15211
|
const op = this._stack.pop();
|
|
15190
15212
|
if (!op) return void 0;
|
|
@@ -15227,13 +15249,21 @@ var FiberImpl = class {
|
|
|
15227
15249
|
return this.currentSpan?._tag === "Span" ? this.currentSpan : void 0;
|
|
15228
15250
|
}
|
|
15229
15251
|
};
|
|
15252
|
+
var deferredInterruptCont = {
|
|
15253
|
+
[contA](_value, fiber3) {
|
|
15254
|
+
return failCause(fiber3._interruptedCause);
|
|
15255
|
+
},
|
|
15256
|
+
[contE](_cause, fiber3) {
|
|
15257
|
+
return failCause(fiber3._interruptedCause);
|
|
15258
|
+
}
|
|
15259
|
+
};
|
|
15230
15260
|
var fiberMiddleware = {
|
|
15231
15261
|
interruptChildren: void 0
|
|
15232
15262
|
};
|
|
15233
15263
|
var fiberStackAnnotations = (fiber3) => {
|
|
15234
15264
|
if (!fiber3.currentStackFrame) return void 0;
|
|
15235
15265
|
const annotations = /* @__PURE__ */ new Map();
|
|
15236
|
-
annotations.set(
|
|
15266
|
+
annotations.set(InterruptorStackTrace.key, fiber3.currentStackFrame);
|
|
15237
15267
|
return makeUnsafe(annotations);
|
|
15238
15268
|
};
|
|
15239
15269
|
var fiberInterruptChildren = (fiber3) => {
|
|
@@ -16173,12 +16203,14 @@ var setInterruptible = /* @__PURE__ */ makePrimitive({
|
|
|
16173
16203
|
});
|
|
16174
16204
|
var setInterruptibleTrue = /* @__PURE__ */ setInterruptible(true);
|
|
16175
16205
|
var setInterruptibleFalse = /* @__PURE__ */ setInterruptible(false);
|
|
16176
|
-
var
|
|
16177
|
-
if (fiber3.interruptible) return self;
|
|
16206
|
+
var setFiberInterruptible = (fiber3) => {
|
|
16178
16207
|
fiber3.interruptible = true;
|
|
16179
16208
|
fiber3._stack.push(setInterruptibleFalse);
|
|
16180
16209
|
if (fiber3._interruptedCause) return failCause(fiber3._interruptedCause);
|
|
16181
|
-
|
|
16210
|
+
};
|
|
16211
|
+
var interruptible = (self) => withFiber((fiber3) => {
|
|
16212
|
+
if (fiber3.interruptible) return self;
|
|
16213
|
+
return setFiberInterruptible(fiber3) ?? self;
|
|
16182
16214
|
});
|
|
16183
16215
|
var uninterruptibleMask = (f2) => withFiber((fiber3) => {
|
|
16184
16216
|
if (!fiber3.interruptible) return f2(identity);
|
|
@@ -16188,9 +16220,9 @@ var uninterruptibleMask = (f2) => withFiber((fiber3) => {
|
|
|
16188
16220
|
});
|
|
16189
16221
|
var interruptibleMask = (f2) => withFiber((fiber3) => {
|
|
16190
16222
|
if (fiber3.interruptible) return f2(identity);
|
|
16191
|
-
|
|
16192
|
-
|
|
16193
|
-
return
|
|
16223
|
+
const interrupted = setFiberInterruptible(fiber3);
|
|
16224
|
+
const effect2 = f2(uninterruptible);
|
|
16225
|
+
return interrupted ?? effect2;
|
|
16194
16226
|
});
|
|
16195
16227
|
var abortSignal = /* @__PURE__ */ map4(/* @__PURE__ */ acquireRelease(/* @__PURE__ */ sync(() => new AbortController()), (controller) => sync(() => controller.abort())), (_2) => _2.signal);
|
|
16196
16228
|
var all = (arg, options) => {
|
|
@@ -16210,6 +16242,22 @@ var all = (arg, options) => {
|
|
|
16210
16242
|
});
|
|
16211
16243
|
};
|
|
16212
16244
|
var partition2 = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffect(args2[0]), (elements, f2, options) => map4(forEach(elements, (a, i) => result(f2(a, i)), options), (results) => partition(results, identity)));
|
|
16245
|
+
var reduce2 = /* @__PURE__ */ dual(3, (elements, zero2, f2) => {
|
|
16246
|
+
const arr = fromIterable(elements);
|
|
16247
|
+
if (arr.length === 0) return sync(zero2);
|
|
16248
|
+
return suspend(() => {
|
|
16249
|
+
let index = 0;
|
|
16250
|
+
let state = zero2();
|
|
16251
|
+
return map4(whileLoop({
|
|
16252
|
+
while: () => index < arr.length,
|
|
16253
|
+
body: () => f2(state, arr[index], index),
|
|
16254
|
+
step(next) {
|
|
16255
|
+
state = next;
|
|
16256
|
+
index++;
|
|
16257
|
+
}
|
|
16258
|
+
}), () => state);
|
|
16259
|
+
});
|
|
16260
|
+
});
|
|
16213
16261
|
var validate = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffect(args2[0]), (elements, f2, options) => flatMap2(partition2(elements, f2, {
|
|
16214
16262
|
concurrency: options?.concurrency
|
|
16215
16263
|
}), ([excluded, satisfying]) => {
|
|
@@ -16323,6 +16371,13 @@ var iterateEagerImpl = (options) => {
|
|
|
16323
16371
|
let effect2;
|
|
16324
16372
|
let nextIndex = index;
|
|
16325
16373
|
const exits = orderedStep ? new Array(end) : void 0;
|
|
16374
|
+
const failDefect = (error2) => {
|
|
16375
|
+
const defect = exitDie(error2);
|
|
16376
|
+
terminal = defect;
|
|
16377
|
+
done4 = true;
|
|
16378
|
+
interrupted = true;
|
|
16379
|
+
return fibers && fibers.size > 0 ? flatMap2(uninterruptible(fiberInterruptAll(Array.from(fibers))), () => defect) : defect;
|
|
16380
|
+
};
|
|
16326
16381
|
const runStep = (item, exit3, currentIndex) => {
|
|
16327
16382
|
if (!orderedStep) return step(state, item, exit3, currentIndex);
|
|
16328
16383
|
if (terminal) return terminal;
|
|
@@ -16353,9 +16408,15 @@ var iterateEagerImpl = (options) => {
|
|
|
16353
16408
|
} else if (!parentFiber) {
|
|
16354
16409
|
return callback((cb) => {
|
|
16355
16410
|
parentFiber = getCurrentFiber();
|
|
16411
|
+
fibers = /* @__PURE__ */ new Set();
|
|
16356
16412
|
effect2 = eff;
|
|
16357
16413
|
resume = cb;
|
|
16358
|
-
|
|
16414
|
+
let result3;
|
|
16415
|
+
try {
|
|
16416
|
+
result3 = go2();
|
|
16417
|
+
} catch (error2) {
|
|
16418
|
+
return cb(failDefect(error2));
|
|
16419
|
+
}
|
|
16359
16420
|
if (result3) return cb(result3);
|
|
16360
16421
|
return suspend(() => {
|
|
16361
16422
|
terminal = exitVoid;
|
|
@@ -16371,34 +16432,37 @@ var iterateEagerImpl = (options) => {
|
|
|
16371
16432
|
if (terminal) break;
|
|
16372
16433
|
continue;
|
|
16373
16434
|
}
|
|
16374
|
-
|
|
16375
|
-
else fibers = /* @__PURE__ */ new Set([fiber3]);
|
|
16435
|
+
fibers.add(fiber3);
|
|
16376
16436
|
const currentIndex = index;
|
|
16377
16437
|
fiber3.addObserver((exit3) => {
|
|
16378
16438
|
fibers.delete(fiber3);
|
|
16379
|
-
|
|
16380
|
-
if (
|
|
16381
|
-
|
|
16382
|
-
|
|
16383
|
-
|
|
16384
|
-
terminal.
|
|
16385
|
-
|
|
16386
|
-
|
|
16439
|
+
try {
|
|
16440
|
+
if (terminal) {
|
|
16441
|
+
if (!interrupted && exit3._tag === "Failure") {
|
|
16442
|
+
for (const reason of exit3.cause.reasons) {
|
|
16443
|
+
if (reason._tag === "Interrupt") continue;
|
|
16444
|
+
else if (terminal._tag === "Failure") {
|
|
16445
|
+
terminal.cause.reasons.push(reason);
|
|
16446
|
+
} else {
|
|
16447
|
+
terminal = exitFailCause(causeFromReasons([reason]));
|
|
16448
|
+
}
|
|
16387
16449
|
}
|
|
16388
16450
|
}
|
|
16451
|
+
} else {
|
|
16452
|
+
const result3 = runStep(item, exit3, currentIndex);
|
|
16453
|
+
if (result3) {
|
|
16454
|
+
terminal = result3._tag === "Failure" ? exitFailCause(causeFromReasons(result3.cause.reasons.slice())) : result3;
|
|
16455
|
+
go2();
|
|
16456
|
+
}
|
|
16389
16457
|
}
|
|
16390
|
-
|
|
16391
|
-
|
|
16392
|
-
|
|
16393
|
-
|
|
16394
|
-
|
|
16458
|
+
if (paused) {
|
|
16459
|
+
const eff2 = go2();
|
|
16460
|
+
if (eff2) resume(eff2);
|
|
16461
|
+
} else if (done4 && fibers.size === 0) {
|
|
16462
|
+
resume(terminal ?? void_);
|
|
16395
16463
|
}
|
|
16396
|
-
}
|
|
16397
|
-
|
|
16398
|
-
const eff2 = go2();
|
|
16399
|
-
if (eff2) resume(eff2);
|
|
16400
|
-
} else if (done4 && fibers.size === 0) {
|
|
16401
|
-
resume(terminal ?? void_);
|
|
16464
|
+
} catch (error2) {
|
|
16465
|
+
resume(failDefect(error2));
|
|
16402
16466
|
}
|
|
16403
16467
|
});
|
|
16404
16468
|
if (fibers.size < concurrency) continue;
|
|
@@ -16509,13 +16573,13 @@ var forkUnsafe = (parent, effect2, immediate = false, daemon = false, uninterrup
|
|
|
16509
16573
|
};
|
|
16510
16574
|
var forkDetach = /* @__PURE__ */ dual((args2) => isEffect(args2[0]), (self, options) => withFiber((fiber3) => succeed3(forkUnsafe(fiber3, self, options?.startImmediately, true, options?.uninterruptible))));
|
|
16511
16575
|
var awaitAllChildren = (self) => withFiber((fiber3) => {
|
|
16512
|
-
const initialChildren = fiber3._children &&
|
|
16576
|
+
const initialChildren = fiber3._children && new Set(fiber3._children);
|
|
16513
16577
|
return onExit(self, (_2) => {
|
|
16514
16578
|
let children = fiber3._children;
|
|
16515
16579
|
if (children === void 0 || children.size === 0) {
|
|
16516
16580
|
return void_;
|
|
16517
16581
|
} else if (initialChildren) {
|
|
16518
|
-
children = filter2(children, (child) => !initialChildren.
|
|
16582
|
+
children = filter2(children, (child) => !initialChildren.has(child));
|
|
16519
16583
|
}
|
|
16520
16584
|
return asVoid(fiberAwaitAll(children));
|
|
16521
16585
|
});
|
|
@@ -16609,7 +16673,7 @@ var runSyncExitWith = (context3) => {
|
|
|
16609
16673
|
const fiber3 = runFork3(effect2, {
|
|
16610
16674
|
scheduler
|
|
16611
16675
|
});
|
|
16612
|
-
fiber3.
|
|
16676
|
+
fiber3._dispatcher?.flush();
|
|
16613
16677
|
return fiber3._exit ?? exitDie(new AsyncFiberError(fiber3));
|
|
16614
16678
|
};
|
|
16615
16679
|
};
|
|
@@ -17129,14 +17193,14 @@ var reportCauseUnsafe = (fiber3, cause, defectsOnly) => {
|
|
|
17129
17193
|
reporters.forEach((reporter) => reporter.report(opts));
|
|
17130
17194
|
};
|
|
17131
17195
|
|
|
17132
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
17196
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Exit.js
|
|
17133
17197
|
var succeed4 = exitSucceed;
|
|
17134
17198
|
var failCause2 = exitFailCause;
|
|
17135
17199
|
var fail4 = exitFail;
|
|
17136
17200
|
var void_2 = exitVoid;
|
|
17137
17201
|
var isSuccess4 = exitIsSuccess;
|
|
17138
17202
|
|
|
17139
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
17203
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Deferred.js
|
|
17140
17204
|
var TypeId5 = "~effect/Deferred";
|
|
17141
17205
|
var DeferredProto = {
|
|
17142
17206
|
[TypeId5]: {
|
|
@@ -17178,12 +17242,12 @@ var doneUnsafe = (self, effect2) => {
|
|
|
17178
17242
|
return true;
|
|
17179
17243
|
};
|
|
17180
17244
|
|
|
17181
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
17245
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/References.js
|
|
17182
17246
|
var CurrentLogAnnotations2 = CurrentLogAnnotations;
|
|
17183
17247
|
var CurrentLogSpans2 = CurrentLogSpans;
|
|
17184
17248
|
var MinimumLogLevel2 = MinimumLogLevel;
|
|
17185
17249
|
|
|
17186
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
17250
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Scope.js
|
|
17187
17251
|
var Scope = scopeTag;
|
|
17188
17252
|
var makeUnsafe3 = scopeMakeUnsafe;
|
|
17189
17253
|
var provide = provideScope;
|
|
@@ -17192,7 +17256,7 @@ var addFinalizer2 = scopeAddFinalizer;
|
|
|
17192
17256
|
var forkUnsafe2 = scopeForkUnsafe;
|
|
17193
17257
|
var close = scopeClose;
|
|
17194
17258
|
|
|
17195
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
17259
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Layer.js
|
|
17196
17260
|
var TypeId6 = "~effect/Layer";
|
|
17197
17261
|
var MemoMapTypeId = "~effect/Layer/MemoMap";
|
|
17198
17262
|
var memoMapReuse = (entry, scope3) => {
|
|
@@ -17308,7 +17372,7 @@ var CurrentMetadata = /* @__PURE__ */ Reference("effect/ExecutionPlan/CurrentMet
|
|
|
17308
17372
|
})
|
|
17309
17373
|
});
|
|
17310
17374
|
|
|
17311
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
17375
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Cause.js
|
|
17312
17376
|
var isFailReason2 = isFailReason;
|
|
17313
17377
|
var fail5 = causeFail;
|
|
17314
17378
|
var hasInterruptsOnly2 = hasInterruptsOnly;
|
|
@@ -17321,7 +17385,7 @@ var Done2 = Done;
|
|
|
17321
17385
|
var done3 = done;
|
|
17322
17386
|
var UnknownError2 = UnknownError;
|
|
17323
17387
|
|
|
17324
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
17388
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Data.js
|
|
17325
17389
|
var taggedEnum = () => new Proxy({}, {
|
|
17326
17390
|
get(_target, tag2, _receiver) {
|
|
17327
17391
|
if (tag2 === "$is") {
|
|
@@ -17354,7 +17418,7 @@ var round = /* @__PURE__ */ dual(2, (self, precision) => {
|
|
|
17354
17418
|
return Math.round(self * factor) / factor;
|
|
17355
17419
|
});
|
|
17356
17420
|
|
|
17357
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
17421
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Pull.js
|
|
17358
17422
|
var catchDone = /* @__PURE__ */ dual(2, (effect2, f2) => catchCauseFilter(effect2, filterDoneLeftover, (l) => f2(l)));
|
|
17359
17423
|
var isDoneCause = (cause) => cause.reasons.some(isDoneFailure);
|
|
17360
17424
|
var isDoneFailure = (failure) => failure._tag === "Fail" && isDone3(failure.error);
|
|
@@ -17372,7 +17436,7 @@ var matchEffect2 = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffect(s
|
|
|
17372
17436
|
}
|
|
17373
17437
|
}));
|
|
17374
17438
|
|
|
17375
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
17439
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Schedule.js
|
|
17376
17440
|
var TypeId8 = "~effect/Schedule";
|
|
17377
17441
|
var CurrentMetadata2 = /* @__PURE__ */ Reference("effect/Schedule/CurrentMetadata", {
|
|
17378
17442
|
defaultValue: /* @__PURE__ */ constant({
|
|
@@ -17464,11 +17528,11 @@ var while_ = /* @__PURE__ */ dual(2, (self, predicate) => fromStep(map4(toStep(s
|
|
|
17464
17528
|
})));
|
|
17465
17529
|
var forever2 = /* @__PURE__ */ spaced(zero);
|
|
17466
17530
|
|
|
17467
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
17531
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/layer.js
|
|
17468
17532
|
var provideLayer = (self, layer16, options) => scopedWith((scope3) => flatMap2(options?.local ? buildWithMemoMap(layer16, makeMemoMapUnsafe(), scope3) : buildWithScope(layer16, scope3), (context3) => provideContext(self, context3)));
|
|
17469
17533
|
var provide3 = /* @__PURE__ */ dual((args2) => isEffect(args2[0]), (self, source, options) => isContext(source) ? provideContext(self, source) : provideLayer(self, Array.isArray(source) ? mergeAll2(...source) : source, options));
|
|
17470
17534
|
|
|
17471
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
17535
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/schedule.js
|
|
17472
17536
|
var repeatOrElse = /* @__PURE__ */ dual(3, (self, schedule3, orElse5) => flatMap2(toStepWithMetadata(schedule3), (step) => {
|
|
17473
17537
|
let meta = CurrentMetadata2.defaultValue();
|
|
17474
17538
|
return catch_(forever(tap(flatMap2(suspend(() => provideService(self, CurrentMetadata2, meta)), step), (meta_) => sync(() => {
|
|
@@ -17539,7 +17603,7 @@ var buildFromOptions = (options) => {
|
|
|
17539
17603
|
return schedule3;
|
|
17540
17604
|
};
|
|
17541
17605
|
|
|
17542
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
17606
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/executionPlan.js
|
|
17543
17607
|
var withExecutionPlan = /* @__PURE__ */ dual(2, (self, plan) => suspend(() => {
|
|
17544
17608
|
let i = 0;
|
|
17545
17609
|
let meta = {
|
|
@@ -17599,7 +17663,7 @@ var scheduleFromStep = (step, first) => {
|
|
|
17599
17663
|
var scheduleOnce = /* @__PURE__ */ recurs(1);
|
|
17600
17664
|
var makeEntry = (options) => options;
|
|
17601
17665
|
|
|
17602
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
17666
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/request.js
|
|
17603
17667
|
var request = /* @__PURE__ */ dual(2, (self, resolver) => {
|
|
17604
17668
|
const withResolver = (resolver2) => callback((resume) => {
|
|
17605
17669
|
const entry = addEntry(resolver2, self, resume, getCurrentFiber());
|
|
@@ -17710,11 +17774,12 @@ function runBatch(batch) {
|
|
|
17710
17774
|
}
|
|
17711
17775
|
var update = /* @__PURE__ */ dual(2, (self, input) => contextWith((services) => sync(() => self.updateUnsafe(input, services))));
|
|
17712
17776
|
|
|
17713
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
17777
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Effect.js
|
|
17714
17778
|
var TypeId11 = EffectTypeId;
|
|
17715
17779
|
var isEffect2 = isEffect;
|
|
17716
17780
|
var all2 = all;
|
|
17717
17781
|
var partition3 = partition2;
|
|
17782
|
+
var reduce3 = reduce2;
|
|
17718
17783
|
var validate2 = validate;
|
|
17719
17784
|
var findFirst4 = findFirst3;
|
|
17720
17785
|
var findFirstFilter2 = findFirstFilter;
|
|
@@ -18061,7 +18126,7 @@ var flatMapEager2 = flatMapEager;
|
|
|
18061
18126
|
var catchEager2 = catchEager;
|
|
18062
18127
|
var fnUntracedEager2 = fnUntracedEager;
|
|
18063
18128
|
|
|
18064
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
18129
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/FileSystem.js
|
|
18065
18130
|
var FileSystem_exports = {};
|
|
18066
18131
|
__export(FileSystem_exports, {
|
|
18067
18132
|
FileDescriptor: () => FileDescriptor,
|
|
@@ -18080,7 +18145,7 @@ __export(FileSystem_exports, {
|
|
|
18080
18145
|
makeNoop: () => makeNoop
|
|
18081
18146
|
});
|
|
18082
18147
|
|
|
18083
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
18148
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/record.js
|
|
18084
18149
|
function set(self, key, value3) {
|
|
18085
18150
|
if (key === "__proto__") {
|
|
18086
18151
|
Object.defineProperty(self, key, {
|
|
@@ -18095,7 +18160,7 @@ function set(self, key, value3) {
|
|
|
18095
18160
|
return self;
|
|
18096
18161
|
}
|
|
18097
18162
|
|
|
18098
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
18163
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/schema/annotations.js
|
|
18099
18164
|
function resolve(ast) {
|
|
18100
18165
|
return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
|
|
18101
18166
|
}
|
|
@@ -18109,7 +18174,7 @@ var getExpected = /* @__PURE__ */ memoize((ast) => {
|
|
|
18109
18174
|
return ast.getExpected(getExpected);
|
|
18110
18175
|
});
|
|
18111
18176
|
|
|
18112
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
18177
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/redacted.js
|
|
18113
18178
|
var redactedRegistry = /* @__PURE__ */ new WeakMap();
|
|
18114
18179
|
var value = (self) => {
|
|
18115
18180
|
if (redactedRegistry.has(self)) {
|
|
@@ -18119,7 +18184,7 @@ var value = (self) => {
|
|
|
18119
18184
|
}
|
|
18120
18185
|
};
|
|
18121
18186
|
|
|
18122
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
18187
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Redacted.js
|
|
18123
18188
|
var TypeId12 = "~effect/data/Redacted";
|
|
18124
18189
|
var isRedacted = (u2) => hasProperty(u2, TypeId12);
|
|
18125
18190
|
var make6 = (value3, options) => {
|
|
@@ -18151,7 +18216,7 @@ var Proto3 = {
|
|
|
18151
18216
|
};
|
|
18152
18217
|
var value2 = value;
|
|
18153
18218
|
|
|
18154
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
18219
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/SchemaIssue.js
|
|
18155
18220
|
var TypeId13 = "~effect/SchemaIssue/Issue";
|
|
18156
18221
|
function isIssue(u2) {
|
|
18157
18222
|
return hasProperty(u2, TypeId13);
|
|
@@ -18501,7 +18566,7 @@ function formatOption(actual) {
|
|
|
18501
18566
|
return format(actual.value);
|
|
18502
18567
|
}
|
|
18503
18568
|
|
|
18504
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
18569
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/schema/cause.js
|
|
18505
18570
|
function getSchemaIssue(cause) {
|
|
18506
18571
|
let issue;
|
|
18507
18572
|
for (const reason of cause.reasons) {
|
|
@@ -18522,7 +18587,7 @@ function getSchemaIssueOrThrow(cause, message) {
|
|
|
18522
18587
|
return issue;
|
|
18523
18588
|
}
|
|
18524
18589
|
|
|
18525
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
18590
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/SchemaGetter.js
|
|
18526
18591
|
var Getter = class _Getter extends Class {
|
|
18527
18592
|
run;
|
|
18528
18593
|
constructor(run6) {
|
|
@@ -18571,7 +18636,7 @@ function Date3() {
|
|
|
18571
18636
|
return transform((u2) => new globalThis.Date(u2));
|
|
18572
18637
|
}
|
|
18573
18638
|
|
|
18574
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
18639
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/SchemaTransformation.js
|
|
18575
18640
|
var TypeId14 = "~effect/SchemaTransformation/Transformation";
|
|
18576
18641
|
var Transformation = class _Transformation {
|
|
18577
18642
|
[TypeId14] = TypeId14;
|
|
@@ -18660,7 +18725,7 @@ var defectFromJson = (options) => transform2({
|
|
|
18660
18725
|
encode: makeEncodeDefect(options)
|
|
18661
18726
|
});
|
|
18662
18727
|
|
|
18663
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
18728
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/SchemaAST.js
|
|
18664
18729
|
function makeGuard(tag2) {
|
|
18665
18730
|
return (ast) => ast._tag === tag2;
|
|
18666
18731
|
}
|
|
@@ -19950,7 +20015,7 @@ var StringTree = /* @__PURE__ */ new Declaration([], () => (input, ast) => isStr
|
|
|
19950
20015
|
});
|
|
19951
20016
|
var unknownToStringTree = /* @__PURE__ */ new Link(StringTree, /* @__PURE__ */ passthrough3());
|
|
19952
20017
|
|
|
19953
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
20018
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Brand.js
|
|
19954
20019
|
function nominal() {
|
|
19955
20020
|
return Object.assign((input) => input, {
|
|
19956
20021
|
option: (input) => some2(input),
|
|
@@ -19959,7 +20024,7 @@ function nominal() {
|
|
|
19959
20024
|
});
|
|
19960
20025
|
}
|
|
19961
20026
|
|
|
19962
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
20027
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/PlatformError.js
|
|
19963
20028
|
var TypeId16 = "~effect/platform/PlatformError";
|
|
19964
20029
|
var BadArgument = class extends (/* @__PURE__ */ TaggedError2("BadArgument")) {
|
|
19965
20030
|
/**
|
|
@@ -20021,10 +20086,10 @@ var badArgument = (options) => new PlatformError(new BadArgument(options));
|
|
|
20021
20086
|
var interrupt3 = fiberInterrupt;
|
|
20022
20087
|
var runIn = fiberRunIn;
|
|
20023
20088
|
|
|
20024
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
20089
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Latch.js
|
|
20025
20090
|
var makeUnsafe4 = makeLatchUnsafe;
|
|
20026
20091
|
|
|
20027
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
20092
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/MutableList.js
|
|
20028
20093
|
var Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
|
|
20029
20094
|
var make9 = () => ({
|
|
20030
20095
|
head: void 0,
|
|
@@ -20095,7 +20160,7 @@ var take = (self) => {
|
|
|
20095
20160
|
return message;
|
|
20096
20161
|
};
|
|
20097
20162
|
|
|
20098
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
20163
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/MutableRef.js
|
|
20099
20164
|
var TypeId18 = "~effect/MutableRef";
|
|
20100
20165
|
var MutableRefProto = {
|
|
20101
20166
|
[TypeId18]: TypeId18,
|
|
@@ -20113,7 +20178,7 @@ var make10 = (value3) => {
|
|
|
20113
20178
|
return ref;
|
|
20114
20179
|
};
|
|
20115
20180
|
|
|
20116
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
20181
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Queue.js
|
|
20117
20182
|
var TypeId19 = "~effect/Queue";
|
|
20118
20183
|
var EnqueueTypeId = "~effect/Queue/Enqueue";
|
|
20119
20184
|
var DequeueTypeId = "~effect/Queue/Dequeue";
|
|
@@ -20377,7 +20442,7 @@ var finalize = (self, exit3) => {
|
|
|
20377
20442
|
openState.awaiters.clear();
|
|
20378
20443
|
};
|
|
20379
20444
|
|
|
20380
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
20445
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Semaphore.js
|
|
20381
20446
|
var makeUnsafe5 = (permits) => new SemaphoreImpl(permits);
|
|
20382
20447
|
var SemaphoreImpl = class {
|
|
20383
20448
|
waiters = /* @__PURE__ */ new Set();
|
|
@@ -20460,7 +20525,7 @@ var SemaphoreImpl = class {
|
|
|
20460
20525
|
}
|
|
20461
20526
|
};
|
|
20462
20527
|
|
|
20463
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
20528
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Channel.js
|
|
20464
20529
|
var TypeId20 = "~effect/Channel";
|
|
20465
20530
|
var isChannel = (u2) => hasProperty(u2, TypeId20);
|
|
20466
20531
|
var ChannelProto = {
|
|
@@ -20638,7 +20703,7 @@ var runFold = /* @__PURE__ */ dual(3, (self, initial, f2) => suspend2(() => {
|
|
|
20638
20703
|
}));
|
|
20639
20704
|
var toPullScoped = (self, scope3) => toTransform(self)(done3(), scope3);
|
|
20640
20705
|
|
|
20641
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
20706
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/stream.js
|
|
20642
20707
|
var TypeId21 = "~effect/Stream";
|
|
20643
20708
|
var streamVariance = {
|
|
20644
20709
|
_R: identity,
|
|
@@ -20657,7 +20722,7 @@ var fromChannel = (channel) => {
|
|
|
20657
20722
|
return self;
|
|
20658
20723
|
};
|
|
20659
20724
|
|
|
20660
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
20725
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Sink.js
|
|
20661
20726
|
var TypeId22 = "~effect/Sink";
|
|
20662
20727
|
var endVoid = /* @__PURE__ */ succeed6([void 0]);
|
|
20663
20728
|
var sinkVariance = {
|
|
@@ -20696,7 +20761,7 @@ var forEachArray = (f2) => fromTransform2((upstream) => upstream.pipe(flatMap3(f
|
|
|
20696
20761
|
}), catchDone(() => endVoid)));
|
|
20697
20762
|
var unwrap2 = (effect2) => fromChannel2(unwrap(map6(effect2, toChannel)));
|
|
20698
20763
|
|
|
20699
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
20764
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/rcRef.js
|
|
20700
20765
|
var TypeId23 = "~effect/RcRef";
|
|
20701
20766
|
var stateEmpty = {
|
|
20702
20767
|
_tag: "Empty"
|
|
@@ -20794,11 +20859,11 @@ var get2 = /* @__PURE__ */ fnUntraced2(function* (self_) {
|
|
|
20794
20859
|
return state.value;
|
|
20795
20860
|
});
|
|
20796
20861
|
|
|
20797
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
20862
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/RcRef.js
|
|
20798
20863
|
var make13 = make12;
|
|
20799
20864
|
var get3 = get2;
|
|
20800
20865
|
|
|
20801
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
20866
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Stream.js
|
|
20802
20867
|
var TypeId24 = "~effect/Stream";
|
|
20803
20868
|
var isStream = (u2) => hasProperty(u2, TypeId24);
|
|
20804
20869
|
var fromChannel3 = fromChannel;
|
|
@@ -20899,7 +20964,7 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args2) => isStream(args2[0]), (
|
|
|
20899
20964
|
});
|
|
20900
20965
|
var toReadableStreamEffect = /* @__PURE__ */ dual((args2) => isStream(args2[0]), (self, options) => map6(context2(), (context3) => toReadableStreamWith(self, context3, options)));
|
|
20901
20966
|
|
|
20902
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
20967
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/FileSystem.js
|
|
20903
20968
|
var TypeId25 = "~effect/platform/FileSystem";
|
|
20904
20969
|
var Size = (bytes) => typeof bytes === "bigint" ? bytes : BigInt(bytes);
|
|
20905
20970
|
var KiB = (n) => Size(n * 1024);
|
|
@@ -21069,7 +21134,7 @@ var FileDescriptor = /* @__PURE__ */ nominal();
|
|
|
21069
21134
|
var WatchBackend = class extends (/* @__PURE__ */ Service()("effect/platform/FileSystem/WatchBackend")) {
|
|
21070
21135
|
};
|
|
21071
21136
|
|
|
21072
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
21137
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Logger.js
|
|
21073
21138
|
var CurrentLoggers2 = CurrentLoggers;
|
|
21074
21139
|
var make15 = loggerMake;
|
|
21075
21140
|
var layer = (loggers, options) => effect(CurrentLoggers2, withFiber(fnUntraced(function* (fiber3) {
|
|
@@ -21080,17 +21145,17 @@ var layer = (loggers, options) => effect(CurrentLoggers2, withFiber(fnUntraced(f
|
|
|
21080
21145
|
return currentLoggers;
|
|
21081
21146
|
})));
|
|
21082
21147
|
|
|
21083
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
21148
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Struct.js
|
|
21084
21149
|
var lambda = (f2) => f2;
|
|
21085
21150
|
|
|
21086
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
21087
|
-
var
|
|
21151
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/SchemaParser.js
|
|
21152
|
+
var toConstructorAST = /* @__PURE__ */ memoize((ast) => {
|
|
21088
21153
|
switch (ast._tag) {
|
|
21089
21154
|
case "Declaration": {
|
|
21090
21155
|
const getLink = ast.annotations?.[ClassTypeId];
|
|
21091
21156
|
if (isFunction(getLink)) {
|
|
21092
21157
|
const link4 = getLink(ast.typeParameters);
|
|
21093
|
-
const to2 =
|
|
21158
|
+
const to2 = toConstructorAST(link4.to);
|
|
21094
21159
|
return replaceEncoding(ast, to2 === link4.to ? [link4] : [new Link(to2, link4.transformation)]);
|
|
21095
21160
|
}
|
|
21096
21161
|
return ast;
|
|
@@ -21100,18 +21165,19 @@ var recurDefaults = /* @__PURE__ */ memoize((ast) => {
|
|
|
21100
21165
|
return ast.recur((ast2) => {
|
|
21101
21166
|
const defaultValue = ast2.context?.defaultValue;
|
|
21102
21167
|
if (defaultValue) {
|
|
21103
|
-
|
|
21168
|
+
const out = toConstructorAST(ast2);
|
|
21169
|
+
return replaceEncoding(out, out.encoding ? [...out.encoding, ...defaultValue] : defaultValue);
|
|
21104
21170
|
}
|
|
21105
|
-
return
|
|
21171
|
+
return toConstructorAST(ast2);
|
|
21106
21172
|
});
|
|
21107
21173
|
case "Suspend":
|
|
21108
|
-
return ast.recur(
|
|
21174
|
+
return ast.recur(toConstructorAST);
|
|
21109
21175
|
default:
|
|
21110
21176
|
return ast;
|
|
21111
21177
|
}
|
|
21112
21178
|
});
|
|
21113
21179
|
function makeEffect(schema) {
|
|
21114
|
-
const ast =
|
|
21180
|
+
const ast = toConstructorAST(toType(schema.ast));
|
|
21115
21181
|
const parser = run2(ast);
|
|
21116
21182
|
return (input, options) => {
|
|
21117
21183
|
return parser(input, options?.disableChecks ? options?.parseOptions ? {
|
|
@@ -21267,7 +21333,7 @@ var recur = /* @__PURE__ */ memoize((ast) => {
|
|
|
21267
21333
|
};
|
|
21268
21334
|
});
|
|
21269
21335
|
|
|
21270
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
21336
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/SchemaError.js
|
|
21271
21337
|
var TypeId26 = "~effect/SchemaError/SchemaError";
|
|
21272
21338
|
var SchemaError = class extends (/* @__PURE__ */ TaggedError2("SchemaError")) {
|
|
21273
21339
|
[TypeId26] = TypeId26;
|
|
@@ -21287,7 +21353,7 @@ function isSchemaError(u2) {
|
|
|
21287
21353
|
return hasProperty(u2, TypeId26);
|
|
21288
21354
|
}
|
|
21289
21355
|
|
|
21290
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
21356
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/schema/schema.js
|
|
21291
21357
|
var TypeId27 = "~effect/Schema/Schema";
|
|
21292
21358
|
var SchemaProto = {
|
|
21293
21359
|
[TypeId27]: TypeId27,
|
|
@@ -21340,7 +21406,7 @@ function makeReorder(getPriority) {
|
|
|
21340
21406
|
};
|
|
21341
21407
|
}
|
|
21342
21408
|
|
|
21343
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
21409
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Schema.js
|
|
21344
21410
|
var TypeId28 = TypeId27;
|
|
21345
21411
|
function declareConstructor() {
|
|
21346
21412
|
return (typeParameters, run6, annotations) => {
|
|
@@ -21820,7 +21886,7 @@ var serializerStringTree = /* @__PURE__ */ applyToSelfOrLastLinkEncoding((ast) =
|
|
|
21820
21886
|
var unknownToUndefined = /* @__PURE__ */ new Link(undefined_3, /* @__PURE__ */ new Transformation(/* @__PURE__ */ passthrough2(), /* @__PURE__ */ transform(() => void 0)));
|
|
21821
21887
|
var Json2 = /* @__PURE__ */ make18(Json);
|
|
21822
21888
|
|
|
21823
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
21889
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/http/Cookies.js
|
|
21824
21890
|
var TypeId29 = "~effect/http/Cookies";
|
|
21825
21891
|
var CookieTypeId = "~effect/http/Cookies/Cookie";
|
|
21826
21892
|
var Proto4 = {
|
|
@@ -22003,7 +22069,7 @@ var tryDecodeURIComponent = (str) => {
|
|
|
22003
22069
|
}
|
|
22004
22070
|
};
|
|
22005
22071
|
|
|
22006
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
22072
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/http/Headers.js
|
|
22007
22073
|
var TypeId30 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
|
|
22008
22074
|
var Proto5 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
|
|
22009
22075
|
[TypeId30]: {
|
|
@@ -22110,7 +22176,7 @@ var CurrentRedactedNames = /* @__PURE__ */ Reference("effect/Headers/CurrentReda
|
|
|
22110
22176
|
defaultValue: () => ["authorization", "cookie", "set-cookie", "x-api-key"]
|
|
22111
22177
|
});
|
|
22112
22178
|
|
|
22113
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
22179
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/http/HttpClientError.js
|
|
22114
22180
|
var TypeId31 = "~effect/http/HttpClientError";
|
|
22115
22181
|
var HttpClientError = class extends (/* @__PURE__ */ TaggedError2("HttpClientError")) {
|
|
22116
22182
|
constructor(props) {
|
|
@@ -22245,7 +22311,7 @@ var EmptyBodyError = class extends (/* @__PURE__ */ TaggedError2("EmptyBodyError
|
|
|
22245
22311
|
}
|
|
22246
22312
|
};
|
|
22247
22313
|
|
|
22248
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
22314
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/http/UrlParams.js
|
|
22249
22315
|
var TypeId32 = "~effect/http/UrlParams";
|
|
22250
22316
|
var isUrlParams = (u2) => hasProperty(u2, TypeId32);
|
|
22251
22317
|
var Proto6 = {
|
|
@@ -22326,7 +22392,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
|
22326
22392
|
return out;
|
|
22327
22393
|
});
|
|
22328
22394
|
|
|
22329
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
22395
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/http/HttpBody.js
|
|
22330
22396
|
var TypeId33 = "~effect/http/HttpBody";
|
|
22331
22397
|
var Proto7 = class {
|
|
22332
22398
|
[TypeId33];
|
|
@@ -22353,10 +22419,10 @@ var Empty2 = class extends Proto7 {
|
|
|
22353
22419
|
};
|
|
22354
22420
|
var empty9 = /* @__PURE__ */ new Empty2();
|
|
22355
22421
|
|
|
22356
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
22422
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/http/HttpMethod.js
|
|
22357
22423
|
var allShort = [["GET", "get"], ["POST", "post"], ["PUT", "put"], ["DELETE", "del"], ["PATCH", "patch"], ["HEAD", "head"], ["OPTIONS", "options"], ["TRACE", "trace"]];
|
|
22358
22424
|
|
|
22359
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
22425
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/http/Url.js
|
|
22360
22426
|
var UrlError = class extends (/* @__PURE__ */ TaggedError2("UrlError")) {
|
|
22361
22427
|
};
|
|
22362
22428
|
var make21 = (url, params, hash2) => try_({
|
|
@@ -22384,7 +22450,7 @@ var baseUrl = () => {
|
|
|
22384
22450
|
return void 0;
|
|
22385
22451
|
};
|
|
22386
22452
|
|
|
22387
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
22453
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/http/HttpClientRequest.js
|
|
22388
22454
|
var TypeId34 = "~effect/http/HttpClientRequest";
|
|
22389
22455
|
var Proto8 = {
|
|
22390
22456
|
[TypeId34]: TypeId34,
|
|
@@ -22492,7 +22558,7 @@ var setBody = /* @__PURE__ */ dual(2, (self, body) => {
|
|
|
22492
22558
|
return makeWith(self.method, self.url, self.urlParams, self.hash, headers, body);
|
|
22493
22559
|
});
|
|
22494
22560
|
|
|
22495
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
22561
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/http/HttpIncomingMessage.js
|
|
22496
22562
|
var TypeId35 = "~effect/http/HttpIncomingMessage";
|
|
22497
22563
|
var inspect = (self, that) => {
|
|
22498
22564
|
const contentType = self.headers["content-type"] ?? "";
|
|
@@ -22519,7 +22585,7 @@ var inspect = (self, that) => {
|
|
|
22519
22585
|
return obj;
|
|
22520
22586
|
};
|
|
22521
22587
|
|
|
22522
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
22588
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/http/HttpClientResponse.js
|
|
22523
22589
|
var TypeId36 = "~effect/http/HttpClientResponse";
|
|
22524
22590
|
var fromWeb = (request5, source) => new WebHttpClientResponse(request5, source);
|
|
22525
22591
|
var stream2 = (effect2) => unwrap3(map6(effect2, (self) => self.stream));
|
|
@@ -22661,7 +22727,7 @@ var WebHttpClientResponse = class extends Class2 {
|
|
|
22661
22727
|
}
|
|
22662
22728
|
};
|
|
22663
22729
|
|
|
22664
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
22730
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/http/HttpTraceContext.js
|
|
22665
22731
|
var toHeaders = (span) => fromRecordUnsafe({
|
|
22666
22732
|
b3: `${span.traceId}-${span.spanId}-${span.sampled ? "1" : "0"}${match(span.parent, {
|
|
22667
22733
|
onNone: () => "",
|
|
@@ -22670,7 +22736,7 @@ var toHeaders = (span) => fromRecordUnsafe({
|
|
|
22670
22736
|
traceparent: `00-${span.traceId}-${span.spanId}-${span.sampled ? "01" : "00"}`
|
|
22671
22737
|
});
|
|
22672
22738
|
|
|
22673
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
22739
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/http/HttpClient.js
|
|
22674
22740
|
var TypeId37 = "~effect/http/HttpClient";
|
|
22675
22741
|
var HttpClient = /* @__PURE__ */ Service("effect/HttpClient");
|
|
22676
22742
|
var transformResponse = /* @__PURE__ */ dual(2, (self, f2) => makeWith2((request5) => f2(self.postprocess(request5)), self.preprocess));
|
|
@@ -22877,7 +22943,7 @@ var InterruptibleResponse = class {
|
|
|
22877
22943
|
}
|
|
22878
22944
|
};
|
|
22879
22945
|
|
|
22880
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
22946
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.101_effect@4.0.0-beta.101/node_modules/@effect/platform-node-shared/dist/NodeSink.js
|
|
22881
22947
|
var fromWritable = (options) => fromChannel2(mapDone(fromWritableChannel(options), (_2) => [_2]));
|
|
22882
22948
|
var fromWritableChannel = (options) => fromTransform((pull) => {
|
|
22883
22949
|
const writable = options.evaluate();
|
|
@@ -22917,7 +22983,7 @@ var pullIntoWritable = (options) => options.pull.pipe(flatMap3((chunk) => {
|
|
|
22917
22983
|
});
|
|
22918
22984
|
}) : identity);
|
|
22919
22985
|
|
|
22920
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
22986
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.101_effect@4.0.0-beta.101/node_modules/@effect/platform-node-shared/dist/NodeStream.js
|
|
22921
22987
|
var fromReadable = (options) => fromChannel3(fromReadableChannel(options));
|
|
22922
22988
|
var fromReadableChannel = (options) => fromTransform((_2, scope3) => readableToPullUnsafe({
|
|
22923
22989
|
scope: scope3,
|
|
@@ -22976,7 +23042,7 @@ var readableToPullUnsafe = (options) => {
|
|
|
22976
23042
|
};
|
|
22977
23043
|
var defaultOnError = (error2) => new UnknownError2(error2);
|
|
22978
23044
|
|
|
22979
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
23045
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/http/FetchHttpClient.js
|
|
22980
23046
|
var Fetch = /* @__PURE__ */ Reference("effect/http/FetchHttpClient/Fetch", {
|
|
22981
23047
|
defaultValue: () => globalThis.fetch
|
|
22982
23048
|
});
|
|
@@ -23018,7 +23084,7 @@ var fetch = /* @__PURE__ */ make23((request5, url, signal, fiber3) => {
|
|
|
23018
23084
|
});
|
|
23019
23085
|
var layer2 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch));
|
|
23020
23086
|
|
|
23021
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
23087
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Runtime.js
|
|
23022
23088
|
var defaultTeardown = (exit3, onExit4) => {
|
|
23023
23089
|
if (isSuccess4(exit3)) return onExit4(0);
|
|
23024
23090
|
if (hasInterruptsOnly2(exit3.cause)) return onExit4(130);
|
|
@@ -23064,7 +23130,7 @@ var getErrorReported = (u2) => {
|
|
|
23064
23130
|
return true;
|
|
23065
23131
|
};
|
|
23066
23132
|
|
|
23067
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
23133
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.101_effect@4.0.0-beta.101/node_modules/@effect/platform-node-shared/dist/NodeRuntime.js
|
|
23068
23134
|
var runMain = /* @__PURE__ */ makeRunMain(({
|
|
23069
23135
|
fiber: fiber3,
|
|
23070
23136
|
teardown
|
|
@@ -23087,10 +23153,10 @@ var runMain = /* @__PURE__ */ makeRunMain(({
|
|
|
23087
23153
|
process.on("SIGTERM", onSigint);
|
|
23088
23154
|
});
|
|
23089
23155
|
|
|
23090
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
23156
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.101_effect@4.0.0-beta.101_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeRuntime.js
|
|
23091
23157
|
var runMain2 = runMain;
|
|
23092
23158
|
|
|
23093
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
23159
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Path.js
|
|
23094
23160
|
var Path_exports = {};
|
|
23095
23161
|
__export(Path_exports, {
|
|
23096
23162
|
Path: () => Path,
|
|
@@ -23564,7 +23630,7 @@ var posixImpl = /* @__PURE__ */ Path.of({
|
|
|
23564
23630
|
});
|
|
23565
23631
|
var layer3 = /* @__PURE__ */ succeed5(Path)(posixImpl);
|
|
23566
23632
|
|
|
23567
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
23633
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/process/ChildProcessSpawner.js
|
|
23568
23634
|
var ExitCode = /* @__PURE__ */ nominal();
|
|
23569
23635
|
var ProcessId = /* @__PURE__ */ nominal();
|
|
23570
23636
|
var HandleTypeId = "~effect/ChildProcessSpawner/ChildProcessHandle";
|
|
@@ -23594,7 +23660,7 @@ var make24 = (spawn2) => {
|
|
|
23594
23660
|
var ChildProcessSpawner = class extends (/* @__PURE__ */ Service()("effect/process/ChildProcessSpawner")) {
|
|
23595
23661
|
};
|
|
23596
23662
|
|
|
23597
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
23663
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/process/ChildProcess.js
|
|
23598
23664
|
var TypeId39 = "~effect/unstable/process/ChildProcess";
|
|
23599
23665
|
var Proto10 = {
|
|
23600
23666
|
.../* @__PURE__ */ Prototype2({
|
|
@@ -23718,7 +23784,7 @@ var splitByWhitespaces = (template, rawTemplate) => {
|
|
|
23718
23784
|
};
|
|
23719
23785
|
var concatTokens = (prevTokens, nextTokens, isSeparated) => isSeparated || prevTokens.length === 0 || nextTokens.length === 0 ? [...prevTokens, ...nextTokens] : [...prevTokens.slice(0, -1), `${prevTokens.at(-1)}${nextTokens.at(0)}`, ...nextTokens.slice(1)];
|
|
23720
23786
|
|
|
23721
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
23787
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.101_effect@4.0.0-beta.101/node_modules/@effect/platform-node-shared/dist/internal/utils.js
|
|
23722
23788
|
var handleErrnoException = (module, method) => (err, [path5]) => {
|
|
23723
23789
|
let reason = "Unknown";
|
|
23724
23790
|
switch (err.code) {
|
|
@@ -23754,7 +23820,7 @@ var handleErrnoException = (module, method) => (err, [path5]) => {
|
|
|
23754
23820
|
});
|
|
23755
23821
|
};
|
|
23756
23822
|
|
|
23757
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
23823
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.101_effect@4.0.0-beta.101/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
|
|
23758
23824
|
var toError = (error2) => error2 instanceof globalThis.Error ? error2 : new globalThis.Error(String(error2));
|
|
23759
23825
|
var toPlatformError = (method, error2, command2) => {
|
|
23760
23826
|
const {
|
|
@@ -24235,7 +24301,7 @@ var flattenCommand = (command2) => {
|
|
|
24235
24301
|
};
|
|
24236
24302
|
};
|
|
24237
24303
|
|
|
24238
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
24304
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Crypto.js
|
|
24239
24305
|
var TypeId40 = "~effect/platform/Crypto";
|
|
24240
24306
|
var Crypto = /* @__PURE__ */ Service("effect/Crypto");
|
|
24241
24307
|
var make28 = (impl) => {
|
|
@@ -24335,7 +24401,7 @@ var make29 = /* @__PURE__ */ make28({
|
|
|
24335
24401
|
});
|
|
24336
24402
|
var layer5 = /* @__PURE__ */ succeed5(Crypto, make29);
|
|
24337
24403
|
|
|
24338
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
24404
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.101_effect@4.0.0-beta.101_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeCrypto.js
|
|
24339
24405
|
var layer6 = layer5;
|
|
24340
24406
|
var handleBadArgument = (method) => (err) => badArgument({
|
|
24341
24407
|
module: "FileSystem",
|
|
@@ -24343,20 +24409,20 @@ var handleBadArgument = (method) => (err) => badArgument({
|
|
|
24343
24409
|
description: err.message ?? String(err)
|
|
24344
24410
|
});
|
|
24345
24411
|
var access2 = /* @__PURE__ */ (() => {
|
|
24346
|
-
const nodeAccess = /* @__PURE__ */ effectify(
|
|
24412
|
+
const nodeAccess = /* @__PURE__ */ effectify(u__namespace.access, /* @__PURE__ */ handleErrnoException("FileSystem", "access"), /* @__PURE__ */ handleBadArgument("access"));
|
|
24347
24413
|
return (path5, options) => {
|
|
24348
|
-
let mode =
|
|
24414
|
+
let mode = u__namespace.constants.F_OK;
|
|
24349
24415
|
if (options?.readable) {
|
|
24350
|
-
mode |=
|
|
24416
|
+
mode |= u__namespace.constants.R_OK;
|
|
24351
24417
|
}
|
|
24352
24418
|
if (options?.writable) {
|
|
24353
|
-
mode |=
|
|
24419
|
+
mode |= u__namespace.constants.W_OK;
|
|
24354
24420
|
}
|
|
24355
24421
|
return nodeAccess(path5, mode);
|
|
24356
24422
|
};
|
|
24357
24423
|
})();
|
|
24358
24424
|
var copy = /* @__PURE__ */ (() => {
|
|
24359
|
-
const nodeCp = /* @__PURE__ */ effectify(
|
|
24425
|
+
const nodeCp = /* @__PURE__ */ effectify(u__namespace.cp, /* @__PURE__ */ handleErrnoException("FileSystem", "copy"), /* @__PURE__ */ handleBadArgument("copy"));
|
|
24360
24426
|
return (fromPath, toPath, options) => nodeCp(fromPath, toPath, {
|
|
24361
24427
|
force: options?.overwrite ?? false,
|
|
24362
24428
|
preserveTimestamps: options?.preserveTimestamps ?? false,
|
|
@@ -24364,37 +24430,37 @@ var copy = /* @__PURE__ */ (() => {
|
|
|
24364
24430
|
});
|
|
24365
24431
|
})();
|
|
24366
24432
|
var copyFile2 = /* @__PURE__ */ (() => {
|
|
24367
|
-
const nodeCopyFile = /* @__PURE__ */ effectify(
|
|
24433
|
+
const nodeCopyFile = /* @__PURE__ */ effectify(u__namespace.copyFile, /* @__PURE__ */ handleErrnoException("FileSystem", "copyFile"), /* @__PURE__ */ handleBadArgument("copyFile"));
|
|
24368
24434
|
return (fromPath, toPath) => nodeCopyFile(fromPath, toPath);
|
|
24369
24435
|
})();
|
|
24370
24436
|
var chmod2 = /* @__PURE__ */ (() => {
|
|
24371
|
-
const nodeChmod = /* @__PURE__ */ effectify(
|
|
24437
|
+
const nodeChmod = /* @__PURE__ */ effectify(u__namespace.chmod, /* @__PURE__ */ handleErrnoException("FileSystem", "chmod"), /* @__PURE__ */ handleBadArgument("chmod"));
|
|
24372
24438
|
return (path5, mode) => nodeChmod(path5, mode);
|
|
24373
24439
|
})();
|
|
24374
24440
|
var chown2 = /* @__PURE__ */ (() => {
|
|
24375
|
-
const nodeChown = /* @__PURE__ */ effectify(
|
|
24441
|
+
const nodeChown = /* @__PURE__ */ effectify(u__namespace.chown, /* @__PURE__ */ handleErrnoException("FileSystem", "chown"), /* @__PURE__ */ handleBadArgument("chown"));
|
|
24376
24442
|
return (path5, uid, gid) => nodeChown(path5, uid, gid);
|
|
24377
24443
|
})();
|
|
24378
24444
|
var glob2 = /* @__PURE__ */ (() => {
|
|
24379
|
-
const nodeGlob = /* @__PURE__ */ effectify(
|
|
24445
|
+
const nodeGlob = /* @__PURE__ */ effectify(u__namespace.glob, /* @__PURE__ */ handleErrnoException("FileSystem", "glob"), /* @__PURE__ */ handleBadArgument("glob"));
|
|
24380
24446
|
return (pattern, options) => nodeGlob(pattern, {
|
|
24381
24447
|
cwd: options?.root,
|
|
24382
24448
|
exclude: options?.exclude
|
|
24383
24449
|
});
|
|
24384
24450
|
})();
|
|
24385
24451
|
var link3 = /* @__PURE__ */ (() => {
|
|
24386
|
-
const nodeLink = /* @__PURE__ */ effectify(
|
|
24452
|
+
const nodeLink = /* @__PURE__ */ effectify(u__namespace.link, /* @__PURE__ */ handleErrnoException("FileSystem", "link"), /* @__PURE__ */ handleBadArgument("link"));
|
|
24387
24453
|
return (existingPath, newPath) => nodeLink(existingPath, newPath);
|
|
24388
24454
|
})();
|
|
24389
24455
|
var makeDirectory = /* @__PURE__ */ (() => {
|
|
24390
|
-
const nodeMkdir = /* @__PURE__ */ effectify(
|
|
24456
|
+
const nodeMkdir = /* @__PURE__ */ effectify(u__namespace.mkdir, /* @__PURE__ */ handleErrnoException("FileSystem", "makeDirectory"), /* @__PURE__ */ handleBadArgument("makeDirectory"));
|
|
24391
24457
|
return (path5, options) => nodeMkdir(path5, {
|
|
24392
24458
|
recursive: options?.recursive ?? false,
|
|
24393
24459
|
mode: options?.mode
|
|
24394
24460
|
});
|
|
24395
24461
|
})();
|
|
24396
24462
|
var makeTempDirectoryFactory = (method) => {
|
|
24397
|
-
const nodeMkdtemp = effectify(
|
|
24463
|
+
const nodeMkdtemp = effectify(u__namespace.mkdtemp, handleErrnoException("FileSystem", method), handleBadArgument(method));
|
|
24398
24464
|
return (options) => suspend2(() => {
|
|
24399
24465
|
const prefix = options?.prefix ?? "";
|
|
24400
24466
|
const directory4 = typeof options?.directory === "string" ? R__namespace.join(options.directory, ".") : OS__namespace.tmpdir();
|
|
@@ -24403,7 +24469,7 @@ var makeTempDirectoryFactory = (method) => {
|
|
|
24403
24469
|
};
|
|
24404
24470
|
var makeTempDirectory = /* @__PURE__ */ makeTempDirectoryFactory("makeTempDirectory");
|
|
24405
24471
|
var removeFactory = (method) => {
|
|
24406
|
-
const nodeRm = effectify(
|
|
24472
|
+
const nodeRm = effectify(u__namespace.rm, handleErrnoException("FileSystem", method), handleBadArgument(method));
|
|
24407
24473
|
return (path5, options) => nodeRm(path5, {
|
|
24408
24474
|
recursive: options?.recursive ?? false,
|
|
24409
24475
|
force: options?.force ?? false
|
|
@@ -24418,19 +24484,19 @@ var makeTempDirectoryScoped = /* @__PURE__ */ (() => {
|
|
|
24418
24484
|
})));
|
|
24419
24485
|
})();
|
|
24420
24486
|
var openFactory = (method) => {
|
|
24421
|
-
const nodeOpen = effectify(
|
|
24422
|
-
const nodeClose = effectify(
|
|
24487
|
+
const nodeOpen = effectify(u__namespace.open, handleErrnoException("FileSystem", method), handleBadArgument(method));
|
|
24488
|
+
const nodeClose = effectify(u__namespace.close, handleErrnoException("FileSystem", method), handleBadArgument(method));
|
|
24423
24489
|
return (path5, options) => pipe(acquireRelease2(nodeOpen(path5, options?.flag ?? "r", options?.mode), (fd) => orDie2(nodeClose(fd))), map6((fd) => makeFile(FileDescriptor(fd), options?.flag?.startsWith("a") ?? false)));
|
|
24424
24490
|
};
|
|
24425
24491
|
var open2 = /* @__PURE__ */ openFactory("open");
|
|
24426
24492
|
var makeFile = /* @__PURE__ */ (() => {
|
|
24427
|
-
const nodeReadFactory = (method) => effectify(
|
|
24493
|
+
const nodeReadFactory = (method) => effectify(u__namespace.read, handleErrnoException("FileSystem", method), handleBadArgument(method));
|
|
24428
24494
|
const nodeRead = /* @__PURE__ */ nodeReadFactory("read");
|
|
24429
24495
|
const nodeReadAlloc = /* @__PURE__ */ nodeReadFactory("readAlloc");
|
|
24430
|
-
const nodeStat = /* @__PURE__ */ effectify(
|
|
24431
|
-
const nodeTruncate = /* @__PURE__ */ effectify(
|
|
24432
|
-
const nodeSync = /* @__PURE__ */ effectify(
|
|
24433
|
-
const nodeWriteFactory = (method) => effectify(
|
|
24496
|
+
const nodeStat = /* @__PURE__ */ effectify(u__namespace.fstat, /* @__PURE__ */ handleErrnoException("FileSystem", "stat"), /* @__PURE__ */ handleBadArgument("stat"));
|
|
24497
|
+
const nodeTruncate = /* @__PURE__ */ effectify(u__namespace.ftruncate, /* @__PURE__ */ handleErrnoException("FileSystem", "truncate"), /* @__PURE__ */ handleBadArgument("truncate"));
|
|
24498
|
+
const nodeSync = /* @__PURE__ */ effectify(u__namespace.fsync, /* @__PURE__ */ handleErrnoException("FileSystem", "sync"), /* @__PURE__ */ handleBadArgument("sync"));
|
|
24499
|
+
const nodeWriteFactory = (method) => effectify(u__namespace.write, handleErrnoException("FileSystem", method), handleBadArgument(method));
|
|
24434
24500
|
const nodeWrite = /* @__PURE__ */ nodeWriteFactory("write");
|
|
24435
24501
|
const nodeWriteAll = /* @__PURE__ */ nodeWriteFactory("writeAll");
|
|
24436
24502
|
class FileImpl {
|
|
@@ -24562,12 +24628,12 @@ var makeTempFileScoped = /* @__PURE__ */ (() => {
|
|
|
24562
24628
|
})));
|
|
24563
24629
|
})();
|
|
24564
24630
|
var readDirectory = (path5, options) => tryPromise2({
|
|
24565
|
-
try: () =>
|
|
24631
|
+
try: () => u__namespace.promises.readdir(path5, options),
|
|
24566
24632
|
catch: (err) => handleErrnoException("FileSystem", "readDirectory")(err, [path5])
|
|
24567
24633
|
});
|
|
24568
24634
|
var readFile2 = (path5) => callback2((resume, signal) => {
|
|
24569
24635
|
try {
|
|
24570
|
-
|
|
24636
|
+
u__namespace.readFile(path5, {
|
|
24571
24637
|
signal
|
|
24572
24638
|
}, (err, data) => {
|
|
24573
24639
|
if (err) {
|
|
@@ -24581,15 +24647,15 @@ var readFile2 = (path5) => callback2((resume, signal) => {
|
|
|
24581
24647
|
}
|
|
24582
24648
|
});
|
|
24583
24649
|
var readLink = /* @__PURE__ */ (() => {
|
|
24584
|
-
const nodeReadLink = /* @__PURE__ */ effectify(
|
|
24650
|
+
const nodeReadLink = /* @__PURE__ */ effectify(u__namespace.readlink, /* @__PURE__ */ handleErrnoException("FileSystem", "readLink"), /* @__PURE__ */ handleBadArgument("readLink"));
|
|
24585
24651
|
return (path5) => nodeReadLink(path5);
|
|
24586
24652
|
})();
|
|
24587
24653
|
var realPath = /* @__PURE__ */ (() => {
|
|
24588
|
-
const nodeRealPath = /* @__PURE__ */ effectify(
|
|
24654
|
+
const nodeRealPath = /* @__PURE__ */ effectify(u__namespace.realpath, /* @__PURE__ */ handleErrnoException("FileSystem", "realPath"), /* @__PURE__ */ handleBadArgument("realPath"));
|
|
24589
24655
|
return (path5) => nodeRealPath(path5);
|
|
24590
24656
|
})();
|
|
24591
24657
|
var rename2 = /* @__PURE__ */ (() => {
|
|
24592
|
-
const nodeRename = /* @__PURE__ */ effectify(
|
|
24658
|
+
const nodeRename = /* @__PURE__ */ effectify(u__namespace.rename, /* @__PURE__ */ handleErrnoException("FileSystem", "rename"), /* @__PURE__ */ handleBadArgument("rename"));
|
|
24593
24659
|
return (oldPath, newPath) => nodeRename(oldPath, newPath);
|
|
24594
24660
|
})();
|
|
24595
24661
|
var makeFileInfo = (stat3) => ({
|
|
@@ -24609,23 +24675,23 @@ var makeFileInfo = (stat3) => ({
|
|
|
24609
24675
|
blocks: fromNullishOr(stat3.blocks)
|
|
24610
24676
|
});
|
|
24611
24677
|
var stat2 = /* @__PURE__ */ (() => {
|
|
24612
|
-
const nodeStat = /* @__PURE__ */ effectify(
|
|
24678
|
+
const nodeStat = /* @__PURE__ */ effectify(u__namespace.stat, /* @__PURE__ */ handleErrnoException("FileSystem", "stat"), /* @__PURE__ */ handleBadArgument("stat"));
|
|
24613
24679
|
return (path5) => map6(nodeStat(path5), makeFileInfo);
|
|
24614
24680
|
})();
|
|
24615
24681
|
var symlink2 = /* @__PURE__ */ (() => {
|
|
24616
|
-
const nodeSymlink = /* @__PURE__ */ effectify(
|
|
24682
|
+
const nodeSymlink = /* @__PURE__ */ effectify(u__namespace.symlink, /* @__PURE__ */ handleErrnoException("FileSystem", "symlink"), /* @__PURE__ */ handleBadArgument("symlink"));
|
|
24617
24683
|
return (target, path5) => nodeSymlink(target, path5);
|
|
24618
24684
|
})();
|
|
24619
24685
|
var truncate2 = /* @__PURE__ */ (() => {
|
|
24620
|
-
const nodeTruncate = /* @__PURE__ */ effectify(
|
|
24686
|
+
const nodeTruncate = /* @__PURE__ */ effectify(u__namespace.truncate, /* @__PURE__ */ handleErrnoException("FileSystem", "truncate"), /* @__PURE__ */ handleBadArgument("truncate"));
|
|
24621
24687
|
return (path5, length) => nodeTruncate(path5, length !== void 0 ? Number(length) : void 0);
|
|
24622
24688
|
})();
|
|
24623
24689
|
var utimes2 = /* @__PURE__ */ (() => {
|
|
24624
|
-
const nodeUtimes = /* @__PURE__ */ effectify(
|
|
24690
|
+
const nodeUtimes = /* @__PURE__ */ effectify(u__namespace.utimes, /* @__PURE__ */ handleErrnoException("FileSystem", "utime"), /* @__PURE__ */ handleBadArgument("utime"));
|
|
24625
24691
|
return (path5, atime, mtime) => nodeUtimes(path5, atime, mtime);
|
|
24626
24692
|
})();
|
|
24627
24693
|
var watchNode = (path5) => callback3((queue) => acquireRelease2(sync2(() => {
|
|
24628
|
-
const watcher =
|
|
24694
|
+
const watcher = u__namespace.watch(path5, {
|
|
24629
24695
|
recursive: true
|
|
24630
24696
|
}, (event, path6) => {
|
|
24631
24697
|
if (!path6) return;
|
|
@@ -24669,7 +24735,7 @@ var watchNode = (path5) => callback3((queue) => acquireRelease2(sync2(() => {
|
|
|
24669
24735
|
var watch2 = (backend, path5) => stat2(path5).pipe(map6((stat3) => backend.pipe(flatMap((_2) => _2.register(path5, stat3)), getOrElse(() => watchNode(path5)))), unwrap3);
|
|
24670
24736
|
var writeFile2 = (path5, data, options) => callback2((resume, signal) => {
|
|
24671
24737
|
try {
|
|
24672
|
-
|
|
24738
|
+
u__namespace.writeFile(path5, data, {
|
|
24673
24739
|
signal,
|
|
24674
24740
|
flag: options?.flag,
|
|
24675
24741
|
mode: options?.mode
|
|
@@ -24715,7 +24781,7 @@ var makeFileSystem = /* @__PURE__ */ map6(/* @__PURE__ */ serviceOption2(WatchBa
|
|
|
24715
24781
|
}));
|
|
24716
24782
|
var layer7 = /* @__PURE__ */ effect(FileSystem)(makeFileSystem);
|
|
24717
24783
|
|
|
24718
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
24784
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.101_effect@4.0.0-beta.101_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeFileSystem.js
|
|
24719
24785
|
var layer8 = layer7;
|
|
24720
24786
|
var fromFileUrl2 = (url) => try_3({
|
|
24721
24787
|
try: () => NodeUrl__namespace.fileURLToPath(url),
|
|
@@ -24740,10 +24806,10 @@ var layer9 = /* @__PURE__ */ succeed5(Path)({
|
|
|
24740
24806
|
toFileUrl: toFileUrl2
|
|
24741
24807
|
});
|
|
24742
24808
|
|
|
24743
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
24809
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.101_effect@4.0.0-beta.101_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodePath.js
|
|
24744
24810
|
var layer10 = layer9;
|
|
24745
24811
|
|
|
24746
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
24812
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Stdio.js
|
|
24747
24813
|
var TypeId41 = "~effect/Stdio";
|
|
24748
24814
|
var Stdio = /* @__PURE__ */ Service(TypeId41);
|
|
24749
24815
|
var make30 = (options) => ({
|
|
@@ -24751,7 +24817,7 @@ var make30 = (options) => ({
|
|
|
24751
24817
|
...options
|
|
24752
24818
|
});
|
|
24753
24819
|
|
|
24754
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
24820
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.101_effect@4.0.0-beta.101/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
|
|
24755
24821
|
var layer11 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make30({
|
|
24756
24822
|
args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
|
|
24757
24823
|
stdout: (options) => fromWritable({
|
|
@@ -24786,10 +24852,10 @@ var layer11 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make30({
|
|
|
24786
24852
|
})
|
|
24787
24853
|
}));
|
|
24788
24854
|
|
|
24789
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
24855
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.101_effect@4.0.0-beta.101_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeStdio.js
|
|
24790
24856
|
var layer12 = layer11;
|
|
24791
24857
|
|
|
24792
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
24858
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Terminal.js
|
|
24793
24859
|
var TypeId42 = "~effect/platform/Terminal";
|
|
24794
24860
|
var QuitErrorTypeId = "effect/platform/Terminal/QuitError";
|
|
24795
24861
|
var QuitError = class extends (/* @__PURE__ */ ErrorClass("QuitError")({
|
|
@@ -24879,13 +24945,13 @@ function defaultShouldQuit(input) {
|
|
|
24879
24945
|
return input.key.ctrl && (input.key.name === "c" || input.key.name === "d");
|
|
24880
24946
|
}
|
|
24881
24947
|
|
|
24882
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
24948
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.101_effect@4.0.0-beta.101_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeTerminal.js
|
|
24883
24949
|
var layer14 = layer13;
|
|
24884
24950
|
|
|
24885
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
24951
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.101_effect@4.0.0-beta.101_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeServices.js
|
|
24886
24952
|
var layer15 = /* @__PURE__ */ provideMerge(layer4, /* @__PURE__ */ mergeAll2(layer8, layer6, layer10, layer12, layer14));
|
|
24887
24953
|
|
|
24888
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
24954
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/ConfigProvider.js
|
|
24889
24955
|
function makeValue(value3) {
|
|
24890
24956
|
return {
|
|
24891
24957
|
_tag: "Value",
|
|
@@ -24985,7 +25051,7 @@ function trieNodeAt(root, path5) {
|
|
|
24985
25051
|
return node;
|
|
24986
25052
|
}
|
|
24987
25053
|
|
|
24988
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
25054
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Config.js
|
|
24989
25055
|
var TypeId43 = "~effect/Config";
|
|
24990
25056
|
var ConfigError = class {
|
|
24991
25057
|
_tag = "ConfigError";
|
|
@@ -25077,7 +25143,7 @@ function succeed8(value3) {
|
|
|
25077
25143
|
return make34(() => succeed6(value3));
|
|
25078
25144
|
}
|
|
25079
25145
|
|
|
25080
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
25146
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Console.js
|
|
25081
25147
|
var Console = ConsoleRef;
|
|
25082
25148
|
var consoleWith = (f2) => withFiber((fiber3) => f2(fiber3.getRef(Console)));
|
|
25083
25149
|
var error = (...args2) => consoleWith((console2) => sync(() => {
|
|
@@ -25087,7 +25153,7 @@ var log2 = (...args2) => consoleWith((console2) => sync(() => {
|
|
|
25087
25153
|
console2.log(...args2);
|
|
25088
25154
|
}));
|
|
25089
25155
|
|
|
25090
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
25156
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/cli/Argument.js
|
|
25091
25157
|
var Argument_exports = {};
|
|
25092
25158
|
__export(Argument_exports, {
|
|
25093
25159
|
atLeast: () => atLeast2,
|
|
@@ -25124,7 +25190,7 @@ __export(Argument_exports, {
|
|
|
25124
25190
|
withSchema: () => withSchema2
|
|
25125
25191
|
});
|
|
25126
25192
|
|
|
25127
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
25193
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/cli/CliError.js
|
|
25128
25194
|
var TypeId44 = "~effect/cli/CliError";
|
|
25129
25195
|
var isCliError = (u2) => hasProperty(u2, TypeId44);
|
|
25130
25196
|
var UnrecognizedOption = class extends (/* @__PURE__ */ TaggedErrorClass(`${TypeId44}/UnrecognizedOption`)("UnrecognizedOption", {
|
|
@@ -25226,13 +25292,14 @@ var InvalidValue2 = class extends (/* @__PURE__ */ TaggedErrorClass(`${TypeId44}
|
|
|
25226
25292
|
* @since 4.0.0
|
|
25227
25293
|
*/
|
|
25228
25294
|
get message() {
|
|
25295
|
+
const expectation = this.expected.startsWith("Expected ") || this.expected.startsWith("Expected:") ? this.expected : `Expected: ${this.expected}`;
|
|
25229
25296
|
if (this.kind === "argument") {
|
|
25230
|
-
return `Invalid value for argument <${this.option}>: "${this.value}".
|
|
25297
|
+
return `Invalid value for argument <${this.option}>: "${this.value}". ${expectation}`;
|
|
25231
25298
|
}
|
|
25232
25299
|
if (this.value.length === 0) {
|
|
25233
|
-
return `Missing value for flag --${this.option}.
|
|
25300
|
+
return `Missing value for flag --${this.option}. ${expectation}`;
|
|
25234
25301
|
}
|
|
25235
|
-
return `Invalid value for flag --${this.option}: "${this.value}".
|
|
25302
|
+
return `Invalid value for flag --${this.option}: "${this.value}". ${expectation}`;
|
|
25236
25303
|
}
|
|
25237
25304
|
};
|
|
25238
25305
|
var UnknownSubcommand = class extends (/* @__PURE__ */ TaggedErrorClass(`${TypeId44}/UnknownSubcommand`)("UnknownSubcomand", {
|
|
@@ -25282,7 +25349,7 @@ var ShowHelp = class extends (/* @__PURE__ */ TaggedErrorClass(`${TypeId44}/Show
|
|
|
25282
25349
|
}
|
|
25283
25350
|
};
|
|
25284
25351
|
|
|
25285
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
25352
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/cli/Primitive.js
|
|
25286
25353
|
var Ini = __toESM(require_ini());
|
|
25287
25354
|
var Toml = __toESM(require_toml());
|
|
25288
25355
|
var Yaml = __toESM(require_dist());
|
|
@@ -25316,7 +25383,7 @@ var choice = (choices) => {
|
|
|
25316
25383
|
if (choiceMap.has(value3)) {
|
|
25317
25384
|
return succeed6(choiceMap.get(value3));
|
|
25318
25385
|
}
|
|
25319
|
-
return fail6(
|
|
25386
|
+
return fail6(validChoices);
|
|
25320
25387
|
});
|
|
25321
25388
|
return Object.assign(primitive, {
|
|
25322
25389
|
choiceKeys: choices.map(([key]) => key)
|
|
@@ -25433,7 +25500,7 @@ var getTypeName = (primitive) => {
|
|
|
25433
25500
|
};
|
|
25434
25501
|
var getChoiceKeys = (primitive) => primitive._tag === "Choice" ? primitive.choiceKeys : void 0;
|
|
25435
25502
|
|
|
25436
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
25503
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/cli/Prompt.js
|
|
25437
25504
|
var Prompt_exports = {};
|
|
25438
25505
|
__export(Prompt_exports, {
|
|
25439
25506
|
all: () => all3,
|
|
@@ -25459,7 +25526,7 @@ __export(Prompt_exports, {
|
|
|
25459
25526
|
toggle: () => toggle
|
|
25460
25527
|
});
|
|
25461
25528
|
|
|
25462
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
25529
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/cli/internal/ansi.js
|
|
25463
25530
|
var ESC = "\x1B[";
|
|
25464
25531
|
var BEL = "\x07";
|
|
25465
25532
|
var reset = `${ESC}0m`;
|
|
@@ -25520,7 +25587,7 @@ var eraseLines = (rows) => {
|
|
|
25520
25587
|
return command2;
|
|
25521
25588
|
};
|
|
25522
25589
|
|
|
25523
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
25590
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/cli/Prompt.js
|
|
25524
25591
|
var TypeId46 = "~effect/cli/Prompt";
|
|
25525
25592
|
var isPrompt = (u2) => hasProperty(u2, TypeId46);
|
|
25526
25593
|
var defaultFigures = {
|
|
@@ -28022,7 +28089,7 @@ var entriesToDisplay = (cursor, total, maxVisible) => {
|
|
|
28022
28089
|
};
|
|
28023
28090
|
};
|
|
28024
28091
|
|
|
28025
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
28092
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/cli/Param.js
|
|
28026
28093
|
var TypeId47 = "~effect/cli/Param";
|
|
28027
28094
|
var argumentKind = "argument";
|
|
28028
28095
|
var flagKind = "flag";
|
|
@@ -28467,7 +28534,7 @@ var getParamMetadata = (param) => {
|
|
|
28467
28534
|
});
|
|
28468
28535
|
};
|
|
28469
28536
|
|
|
28470
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
28537
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/cli/Argument.js
|
|
28471
28538
|
var string5 = (name) => string4(argumentKind, name);
|
|
28472
28539
|
var integer4 = (name) => integer3(argumentKind, name);
|
|
28473
28540
|
var file4 = (name, options) => file3(argumentKind, name, options);
|
|
@@ -28501,7 +28568,7 @@ var filterMap4 = /* @__PURE__ */ dual(3, (self, f2, onNone) => filterMap3(self,
|
|
|
28501
28568
|
var orElse3 = /* @__PURE__ */ dual(2, (self, that) => orElse2(self, that));
|
|
28502
28569
|
var orElseResult2 = /* @__PURE__ */ dual(2, (self, that) => orElseResult(self, that));
|
|
28503
28570
|
|
|
28504
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
28571
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/cli/CliOutput.js
|
|
28505
28572
|
var Formatter = /* @__PURE__ */ Reference("effect/cli/CliOutput", {
|
|
28506
28573
|
defaultValue: () => defaultFormatter2()
|
|
28507
28574
|
});
|
|
@@ -28693,7 +28760,7 @@ var formatHelpDocImpl = (doc, colors2) => {
|
|
|
28693
28760
|
return sections.join("\n");
|
|
28694
28761
|
};
|
|
28695
28762
|
|
|
28696
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
28763
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/cli/internal/completions/bash.js
|
|
28697
28764
|
var escapeForBash = (s3) => s3.replace(/'/g, "'\\''");
|
|
28698
28765
|
var sanitizeFunctionName = (s3) => s3.replace(/[^a-zA-Z0-9_]/g, "_");
|
|
28699
28766
|
var flagNamesForWordlist = (flag) => {
|
|
@@ -28855,7 +28922,7 @@ var generate = (executableName, descriptor) => {
|
|
|
28855
28922
|
return lines2.join("\n");
|
|
28856
28923
|
};
|
|
28857
28924
|
|
|
28858
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
28925
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/cli/internal/completions/fish.js
|
|
28859
28926
|
var escapeFishString = (s3) => s3.replace(/'/g, "\\'");
|
|
28860
28927
|
var subcommandCondition = (parentPath, childSubcommandNames) => {
|
|
28861
28928
|
if (parentPath.length === 0) {
|
|
@@ -29023,7 +29090,7 @@ var generate2 = (executableName, descriptor) => {
|
|
|
29023
29090
|
return lines2.join("\n");
|
|
29024
29091
|
};
|
|
29025
29092
|
|
|
29026
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
29093
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/cli/internal/completions/zsh.js
|
|
29027
29094
|
var escapeZsh = (s3) => s3.replace(/\\/g, "\\\\").replace(/'/g, "'\\''").replace(/:/g, "\\:");
|
|
29028
29095
|
var sanitize = (s3) => s3.replace(/[^a-zA-Z0-9_]/g, "_");
|
|
29029
29096
|
var allForms = (flag) => {
|
|
@@ -29181,7 +29248,7 @@ var generate3 = (executableName, descriptor) => {
|
|
|
29181
29248
|
return lines2.join("\n");
|
|
29182
29249
|
};
|
|
29183
29250
|
|
|
29184
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
29251
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/cli/Completions.js
|
|
29185
29252
|
var generate4 = (executableName, shell, descriptor) => {
|
|
29186
29253
|
switch (shell) {
|
|
29187
29254
|
case "bash":
|
|
@@ -29193,7 +29260,7 @@ var generate4 = (executableName, shell, descriptor) => {
|
|
|
29193
29260
|
}
|
|
29194
29261
|
};
|
|
29195
29262
|
|
|
29196
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
29263
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/cli/Flag.js
|
|
29197
29264
|
var Flag_exports = {};
|
|
29198
29265
|
__export(Flag_exports, {
|
|
29199
29266
|
atLeast: () => atLeast3,
|
|
@@ -29268,7 +29335,7 @@ var orElse4 = /* @__PURE__ */ dual(2, (self, that) => orElse2(self, that));
|
|
|
29268
29335
|
var orElseResult3 = /* @__PURE__ */ dual(2, (self, that) => orElseResult(self, that));
|
|
29269
29336
|
var withSchema3 = /* @__PURE__ */ dual(2, (self, schema) => withSchema(self, schema));
|
|
29270
29337
|
|
|
29271
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
29338
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/cli/internal/config.js
|
|
29272
29339
|
var ConfigInternalTypeId = "~effect/cli/Command/Config/Internal";
|
|
29273
29340
|
var parseConfig = (config) => {
|
|
29274
29341
|
const orderedParams = [];
|
|
@@ -29372,7 +29439,7 @@ var reconstructTree = (tree, results) => {
|
|
|
29372
29439
|
}
|
|
29373
29440
|
};
|
|
29374
29441
|
|
|
29375
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
29442
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/cli/internal/command.js
|
|
29376
29443
|
var TypeId48 = "~effect/cli/Command";
|
|
29377
29444
|
var toImpl = (self) => self;
|
|
29378
29445
|
var Proto15 = {
|
|
@@ -29555,7 +29622,7 @@ var checkForDuplicateFlags = (parent, subcommands, options) => {
|
|
|
29555
29622
|
}
|
|
29556
29623
|
};
|
|
29557
29624
|
|
|
29558
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
29625
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/cli/internal/completions/descriptor.js
|
|
29559
29626
|
var toFlagType = (single) => {
|
|
29560
29627
|
const tag2 = single.primitiveType._tag;
|
|
29561
29628
|
switch (tag2) {
|
|
@@ -29680,7 +29747,7 @@ var fromCommand = (cmd) => {
|
|
|
29680
29747
|
};
|
|
29681
29748
|
};
|
|
29682
29749
|
|
|
29683
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
29750
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/cli/internal/help.js
|
|
29684
29751
|
var dedupeGlobalFlags = (flags) => {
|
|
29685
29752
|
const seen = /* @__PURE__ */ new Set();
|
|
29686
29753
|
const deduped = [];
|
|
@@ -29783,7 +29850,7 @@ var getHelpForCommandPath = (command2, commandPath, builtIns) => gen2(function*
|
|
|
29783
29850
|
};
|
|
29784
29851
|
});
|
|
29785
29852
|
|
|
29786
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
29853
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/cli/GlobalFlag.js
|
|
29787
29854
|
var action = (options) => ({
|
|
29788
29855
|
_tag: "Action",
|
|
29789
29856
|
flag: options.flag,
|
|
@@ -29840,7 +29907,7 @@ var LogLevel = /* @__PURE__ */ setting("log-level")({
|
|
|
29840
29907
|
});
|
|
29841
29908
|
var BuiltIns = [Help, Version, Wizard, Completions, LogLevel];
|
|
29842
29909
|
|
|
29843
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
29910
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/cli/CliConfig.js
|
|
29844
29911
|
var CliConfig = class extends (/* @__PURE__ */ Reference("effect/unstable/cli/CliConfig", {
|
|
29845
29912
|
defaultValue: () => defaults
|
|
29846
29913
|
})) {
|
|
@@ -29849,7 +29916,7 @@ var defaults = {
|
|
|
29849
29916
|
builtIns: BuiltIns
|
|
29850
29917
|
};
|
|
29851
29918
|
|
|
29852
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
29919
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/cli/Command.js
|
|
29853
29920
|
var Command_exports = {};
|
|
29854
29921
|
__export(Command_exports, {
|
|
29855
29922
|
annotate: () => annotate3,
|
|
@@ -29874,7 +29941,7 @@ __export(Command_exports, {
|
|
|
29874
29941
|
wizard: () => wizard
|
|
29875
29942
|
});
|
|
29876
29943
|
|
|
29877
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
29944
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/cli/internal/lexer.js
|
|
29878
29945
|
function lex(argv) {
|
|
29879
29946
|
const endIndex = argv.indexOf("--");
|
|
29880
29947
|
if (endIndex === -1) {
|
|
@@ -29935,7 +30002,7 @@ var lexTokens = (args2) => {
|
|
|
29935
30002
|
return tokens;
|
|
29936
30003
|
};
|
|
29937
30004
|
|
|
29938
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
30005
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/cli/internal/auto-suggest.js
|
|
29939
30006
|
var levenshtein = (a, b2) => {
|
|
29940
30007
|
const m2 = a.length;
|
|
29941
30008
|
const n = b2.length;
|
|
@@ -29959,7 +30026,7 @@ var suggest = (input, candidates) => {
|
|
|
29959
30026
|
return distances.filter(([d]) => d === minDistance).map(([, c]) => c);
|
|
29960
30027
|
};
|
|
29961
30028
|
|
|
29962
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
30029
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/cli/internal/parser.js
|
|
29963
30030
|
var getCommandPath = (parsedInput) => match(parsedInput.subcommand, {
|
|
29964
30031
|
onNone: () => [],
|
|
29965
30032
|
onSome: (subcommand) => [subcommand.name, ...getCommandPath(subcommand.parsedInput)]
|
|
@@ -30462,7 +30529,7 @@ var scanCommandLevel = (tokens, context3) => {
|
|
|
30462
30529
|
return toLeafResult(state);
|
|
30463
30530
|
};
|
|
30464
30531
|
|
|
30465
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
30532
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/cli/internal/wizard.js
|
|
30466
30533
|
var run4 = /* @__PURE__ */ fnUntraced2(function* (command2, options) {
|
|
30467
30534
|
const commandPath = options?.commandPath ?? [command2.name];
|
|
30468
30535
|
const selected = getCommandAtPath(command2, commandPath);
|
|
@@ -30666,7 +30733,7 @@ var wrapCommand = (commandLine) => {
|
|
|
30666
30733
|
};
|
|
30667
30734
|
var formatShellArg = (arg) => /^[A-Za-z0-9_./:@%+=,-]+$/.test(arg) ? arg : `'${arg.replaceAll("'", `'"'"'`)}'`;
|
|
30668
30735
|
|
|
30669
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
30736
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/unstable/cli/Command.js
|
|
30670
30737
|
var isCommand = (u2) => hasProperty(u2, TypeId48);
|
|
30671
30738
|
var make35 = (name, config, handler) => {
|
|
30672
30739
|
const parsedConfig = parseConfig(config ?? {});
|
|
@@ -31365,11 +31432,11 @@ var A = class extends Qr.EventEmitter {
|
|
|
31365
31432
|
return Wr;
|
|
31366
31433
|
}
|
|
31367
31434
|
};
|
|
31368
|
-
var Jr =
|
|
31435
|
+
var Jr = u__namespace.default.writev;
|
|
31369
31436
|
var ht = /* @__PURE__ */ Symbol("_autoClose");
|
|
31370
31437
|
var H = /* @__PURE__ */ Symbol("_close");
|
|
31371
31438
|
var te = /* @__PURE__ */ Symbol("_ended");
|
|
31372
|
-
var
|
|
31439
|
+
var m = /* @__PURE__ */ Symbol("_fd");
|
|
31373
31440
|
var Ni = /* @__PURE__ */ Symbol("_finished");
|
|
31374
31441
|
var tt = /* @__PURE__ */ Symbol("_flags");
|
|
31375
31442
|
var Ai = /* @__PURE__ */ Symbol("_flush");
|
|
@@ -31396,7 +31463,7 @@ var Me = /* @__PURE__ */ Symbol("_defaultFlag");
|
|
|
31396
31463
|
var bt = /* @__PURE__ */ Symbol("_errored");
|
|
31397
31464
|
var _t = class extends A {
|
|
31398
31465
|
[bt] = false;
|
|
31399
|
-
[
|
|
31466
|
+
[m];
|
|
31400
31467
|
[U];
|
|
31401
31468
|
[Ci];
|
|
31402
31469
|
[j] = false;
|
|
@@ -31405,10 +31472,10 @@ var _t = class extends A {
|
|
|
31405
31472
|
[ht];
|
|
31406
31473
|
constructor(t, e) {
|
|
31407
31474
|
if (e = e || {}, super(e), this.readable = true, this.writable = false, typeof t != "string") throw new TypeError("path must be a string");
|
|
31408
|
-
this[bt] = false, this[
|
|
31475
|
+
this[bt] = false, this[m] = typeof e.fd == "number" ? e.fd : void 0, this[U] = t, this[Ci] = e.readSize || 16 * 1024 * 1024, this[j] = false, this[Fi] = typeof e.size == "number" ? e.size : 1 / 0, this[ee] = this[Fi], this[ht] = typeof e.autoClose == "boolean" ? e.autoClose : true, typeof this[m] == "number" ? this[zt]() : this[at]();
|
|
31409
31476
|
}
|
|
31410
31477
|
get fd() {
|
|
31411
|
-
return this[
|
|
31478
|
+
return this[m];
|
|
31412
31479
|
}
|
|
31413
31480
|
get path() {
|
|
31414
31481
|
return this[U];
|
|
@@ -31420,10 +31487,10 @@ var _t = class extends A {
|
|
|
31420
31487
|
throw new TypeError("this is a readable stream");
|
|
31421
31488
|
}
|
|
31422
31489
|
[at]() {
|
|
31423
|
-
|
|
31490
|
+
u__namespace.default.open(this[U], "r", (t, e) => this[Ht](t, e));
|
|
31424
31491
|
}
|
|
31425
31492
|
[Ht](t, e) {
|
|
31426
|
-
t ? this[Ut](t) : (this[
|
|
31493
|
+
t ? this[Ut](t) : (this[m] = e, this.emit("open", e), this[zt]());
|
|
31427
31494
|
}
|
|
31428
31495
|
[vi]() {
|
|
31429
31496
|
return Buffer.allocUnsafe(Math.min(this[Ci], this[ee]));
|
|
@@ -31433,16 +31500,16 @@ var _t = class extends A {
|
|
|
31433
31500
|
this[j] = true;
|
|
31434
31501
|
let t = this[vi]();
|
|
31435
31502
|
if (t.length === 0) return process.nextTick(() => this[Ii](null, 0, t));
|
|
31436
|
-
|
|
31503
|
+
u__namespace.default.read(this[m], t, 0, t.length, null, (e, i, r) => this[Ii](e, i, r));
|
|
31437
31504
|
}
|
|
31438
31505
|
}
|
|
31439
31506
|
[Ii](t, e, i) {
|
|
31440
31507
|
this[j] = false, t ? this[Ut](t) : this[ki](e, i) && this[zt]();
|
|
31441
31508
|
}
|
|
31442
31509
|
[H]() {
|
|
31443
|
-
if (this[ht] && typeof this[
|
|
31444
|
-
let t = this[
|
|
31445
|
-
this[
|
|
31510
|
+
if (this[ht] && typeof this[m] == "number") {
|
|
31511
|
+
let t = this[m];
|
|
31512
|
+
this[m] = void 0, u__namespace.default.close(t, (e) => e ? this.emit("error", e) : this.emit("close"));
|
|
31446
31513
|
}
|
|
31447
31514
|
}
|
|
31448
31515
|
[Ut](t) {
|
|
@@ -31458,7 +31525,7 @@ var _t = class extends A {
|
|
|
31458
31525
|
case "finish":
|
|
31459
31526
|
return false;
|
|
31460
31527
|
case "drain":
|
|
31461
|
-
return typeof this[
|
|
31528
|
+
return typeof this[m] == "number" && this[zt](), false;
|
|
31462
31529
|
case "error":
|
|
31463
31530
|
return this[bt] ? false : (this[bt] = true, super.emit(t, ...e));
|
|
31464
31531
|
default:
|
|
@@ -31470,7 +31537,7 @@ var Be = class extends _t {
|
|
|
31470
31537
|
[at]() {
|
|
31471
31538
|
let t = true;
|
|
31472
31539
|
try {
|
|
31473
|
-
this[Ht](null,
|
|
31540
|
+
this[Ht](null, u__namespace.default.openSync(this[U], "r")), t = false;
|
|
31474
31541
|
} finally {
|
|
31475
31542
|
t && this[H]();
|
|
31476
31543
|
}
|
|
@@ -31481,7 +31548,7 @@ var Be = class extends _t {
|
|
|
31481
31548
|
if (!this[j]) {
|
|
31482
31549
|
this[j] = true;
|
|
31483
31550
|
do {
|
|
31484
|
-
let e = this[vi](), i = e.length === 0 ? 0 :
|
|
31551
|
+
let e = this[vi](), i = e.length === 0 ? 0 : u__namespace.default.readSync(this[m], e, 0, e.length, null);
|
|
31485
31552
|
if (!this[ki](i, e)) break;
|
|
31486
31553
|
} while (true);
|
|
31487
31554
|
this[j] = false;
|
|
@@ -31492,9 +31559,9 @@ var Be = class extends _t {
|
|
|
31492
31559
|
}
|
|
31493
31560
|
}
|
|
31494
31561
|
[H]() {
|
|
31495
|
-
if (this[ht] && typeof this[
|
|
31496
|
-
let t = this[
|
|
31497
|
-
this[
|
|
31562
|
+
if (this[ht] && typeof this[m] == "number") {
|
|
31563
|
+
let t = this[m];
|
|
31564
|
+
this[m] = void 0, u__namespace.default.closeSync(t), this.emit("close");
|
|
31498
31565
|
}
|
|
31499
31566
|
}
|
|
31500
31567
|
};
|
|
@@ -31509,15 +31576,15 @@ var et = class extends Qr__default.default {
|
|
|
31509
31576
|
[U];
|
|
31510
31577
|
[ie];
|
|
31511
31578
|
[ht];
|
|
31512
|
-
[
|
|
31579
|
+
[m];
|
|
31513
31580
|
[Me];
|
|
31514
31581
|
[tt];
|
|
31515
31582
|
[Ni] = false;
|
|
31516
31583
|
[ot];
|
|
31517
31584
|
constructor(t, e) {
|
|
31518
|
-
e = e || {}, super(e), this[U] = t, this[
|
|
31585
|
+
e = e || {}, super(e), this[U] = t, this[m] = typeof e.fd == "number" ? e.fd : void 0, this[ie] = e.mode === void 0 ? 438 : e.mode, this[ot] = typeof e.start == "number" ? e.start : void 0, this[ht] = typeof e.autoClose == "boolean" ? e.autoClose : true;
|
|
31519
31586
|
let i = this[ot] !== void 0 ? "r+" : "w";
|
|
31520
|
-
this[Me] = e.flags === void 0, this[tt] = e.flags === void 0 ? i : e.flags, this[
|
|
31587
|
+
this[Me] = e.flags === void 0, this[tt] = e.flags === void 0 ? i : e.flags, this[m] === void 0 && this[at]();
|
|
31521
31588
|
}
|
|
31522
31589
|
emit(t, ...e) {
|
|
31523
31590
|
if (t === "error") {
|
|
@@ -31527,7 +31594,7 @@ var et = class extends Qr__default.default {
|
|
|
31527
31594
|
return super.emit(t, ...e);
|
|
31528
31595
|
}
|
|
31529
31596
|
get fd() {
|
|
31530
|
-
return this[
|
|
31597
|
+
return this[m];
|
|
31531
31598
|
}
|
|
31532
31599
|
get path() {
|
|
31533
31600
|
return this[U];
|
|
@@ -31536,19 +31603,19 @@ var et = class extends Qr__default.default {
|
|
|
31536
31603
|
this[H](), this[gt] = true, this.emit("error", t);
|
|
31537
31604
|
}
|
|
31538
31605
|
[at]() {
|
|
31539
|
-
|
|
31606
|
+
u__namespace.default.open(this[U], this[tt], this[ie], (t, e) => this[Ht](t, e));
|
|
31540
31607
|
}
|
|
31541
31608
|
[Ht](t, e) {
|
|
31542
|
-
this[Me] && this[tt] === "r+" && t && t.code === "ENOENT" ? (this[tt] = "w", this[at]()) : t ? this[Ut](t) : (this[
|
|
31609
|
+
this[Me] && this[tt] === "r+" && t && t.code === "ENOENT" ? (this[tt] = "w", this[at]()) : t ? this[Ut](t) : (this[m] = e, this.emit("open", e), this[gt] || this[Ai]());
|
|
31543
31610
|
}
|
|
31544
31611
|
end(t, e) {
|
|
31545
|
-
return t && this.write(t, e), this[te] = true, !this[gt] && !this[Y].length && typeof this[
|
|
31612
|
+
return t && this.write(t, e), this[te] = true, !this[gt] && !this[Y].length && typeof this[m] == "number" && this[Pt](null, 0), this;
|
|
31546
31613
|
}
|
|
31547
31614
|
write(t, e) {
|
|
31548
|
-
return typeof t == "string" && (t = Buffer.from(t, e)), this[te] ? (this.emit("error", new Error("write() after end()")), false) : this[
|
|
31615
|
+
return typeof t == "string" && (t = Buffer.from(t, e)), this[te] ? (this.emit("error", new Error("write() after end()")), false) : this[m] === void 0 || this[gt] || this[Y].length ? (this[Y].push(t), this[ke] = true, false) : (this[gt] = true, this[ve](t), true);
|
|
31549
31616
|
}
|
|
31550
31617
|
[ve](t) {
|
|
31551
|
-
|
|
31618
|
+
u__namespace.default.write(this[m], t, 0, t.length, this[ot], (e, i) => this[Pt](e, i));
|
|
31552
31619
|
}
|
|
31553
31620
|
[Pt](t, e) {
|
|
31554
31621
|
t ? this[Ut](t) : (this[ot] !== void 0 && typeof e == "number" && (this[ot] += e), this[Y].length ? this[Ai]() : (this[gt] = false, this[te] && !this[Ni] ? (this[Ni] = true, this[H](), this.emit("finish")) : this[ke] && (this[ke] = false, this.emit("drain"))));
|
|
@@ -31558,13 +31625,13 @@ var et = class extends Qr__default.default {
|
|
|
31558
31625
|
else if (this[Y].length === 1) this[ve](this[Y].pop());
|
|
31559
31626
|
else {
|
|
31560
31627
|
let t = this[Y];
|
|
31561
|
-
this[Y] = [], Jr(this[
|
|
31628
|
+
this[Y] = [], Jr(this[m], t, this[ot], (e, i) => this[Pt](e, i));
|
|
31562
31629
|
}
|
|
31563
31630
|
}
|
|
31564
31631
|
[H]() {
|
|
31565
|
-
if (this[ht] && typeof this[
|
|
31566
|
-
let t = this[
|
|
31567
|
-
this[
|
|
31632
|
+
if (this[ht] && typeof this[m] == "number") {
|
|
31633
|
+
let t = this[m];
|
|
31634
|
+
this[m] = void 0, u__namespace.default.close(t, (e) => e ? this.emit("error", e) : this.emit("close"));
|
|
31568
31635
|
}
|
|
31569
31636
|
}
|
|
31570
31637
|
};
|
|
@@ -31572,24 +31639,24 @@ var Wt = class extends et {
|
|
|
31572
31639
|
[at]() {
|
|
31573
31640
|
let t;
|
|
31574
31641
|
if (this[Me] && this[tt] === "r+") try {
|
|
31575
|
-
t =
|
|
31642
|
+
t = u__namespace.default.openSync(this[U], this[tt], this[ie]);
|
|
31576
31643
|
} catch (e) {
|
|
31577
31644
|
if (e?.code === "ENOENT") return this[tt] = "w", this[at]();
|
|
31578
31645
|
throw e;
|
|
31579
31646
|
}
|
|
31580
|
-
else t =
|
|
31647
|
+
else t = u__namespace.default.openSync(this[U], this[tt], this[ie]);
|
|
31581
31648
|
this[Ht](null, t);
|
|
31582
31649
|
}
|
|
31583
31650
|
[H]() {
|
|
31584
|
-
if (this[ht] && typeof this[
|
|
31585
|
-
let t = this[
|
|
31586
|
-
this[
|
|
31651
|
+
if (this[ht] && typeof this[m] == "number") {
|
|
31652
|
+
let t = this[m];
|
|
31653
|
+
this[m] = void 0, u__namespace.default.closeSync(t), this.emit("close");
|
|
31587
31654
|
}
|
|
31588
31655
|
}
|
|
31589
31656
|
[ve](t) {
|
|
31590
31657
|
let e = true;
|
|
31591
31658
|
try {
|
|
31592
|
-
this[Pt](null,
|
|
31659
|
+
this[Pt](null, u__namespace.default.writeSync(this[m], t, 0, t.length, this[ot])), e = false;
|
|
31593
31660
|
} finally {
|
|
31594
31661
|
if (e) try {
|
|
31595
31662
|
this[H]();
|
|
@@ -31848,7 +31915,7 @@ var dn = (s3) => Ve.has(s3);
|
|
|
31848
31915
|
var Ui = /* @__PURE__ */ new Set(["0", "", "1", "2", "3", "4", "5", "6", "7", "D"]);
|
|
31849
31916
|
var oe = /* @__PURE__ */ new Map([["0", "File"], ["", "OldFile"], ["1", "Link"], ["2", "SymbolicLink"], ["3", "CharacterDevice"], ["4", "BlockDevice"], ["5", "Directory"], ["6", "FIFO"], ["7", "ContiguousFile"], ["g", "GlobalExtendedHeader"], ["x", "ExtendedHeader"], ["A", "SolarisACL"], ["D", "GNUDumpDir"], ["I", "Inode"], ["K", "NextFileHasLongLinkpath"], ["L", "NextFileHasLongPath"], ["M", "ContinuationFile"], ["N", "OldGnuLongPath"], ["S", "SparseFile"], ["V", "TapeVolumeHeader"], ["X", "OldExtendedHeader"]]);
|
|
31850
31917
|
var Ve = new Map(Array.from(oe).map((s3) => [s3[1], s3[0]]));
|
|
31851
|
-
var
|
|
31918
|
+
var un = (s3) => s3 === void 0 || s3 < 0 ? void 0 : s3;
|
|
31852
31919
|
var F = class {
|
|
31853
31920
|
cksumValid = false;
|
|
31854
31921
|
needPax = false;
|
|
@@ -31877,7 +31944,7 @@ var F = class {
|
|
|
31877
31944
|
decode(t, e, i, r) {
|
|
31878
31945
|
if (e || (e = 0), !t || !(t.length >= e + 512)) throw new Error("need 512 bytes for header");
|
|
31879
31946
|
let n = xt(t, e + 156, 1), o = Ui.has(n), h = o ? i : void 0, a = o ? r : void 0;
|
|
31880
|
-
if (this.path = h?.path ?? xt(t, e, 100), this.mode = h?.mode ?? a?.mode ?? lt(t, e + 100, 8), this.uid = h?.uid ?? a?.uid ?? lt(t, e + 108, 8), this.gid = h?.gid ?? a?.gid ?? lt(t, e + 116, 8), this.size =
|
|
31947
|
+
if (this.path = h?.path ?? xt(t, e, 100), this.mode = h?.mode ?? a?.mode ?? lt(t, e + 100, 8), this.uid = h?.uid ?? a?.uid ?? lt(t, e + 108, 8), this.gid = h?.gid ?? a?.gid ?? lt(t, e + 116, 8), this.size = un(h?.size ?? a?.size ?? lt(t, e + 124, 12)), this.mtime = h?.mtime ?? a?.mtime ?? Wi(t, e + 136, 12), this.cksum = lt(t, e + 148, 12), a && this.#i(a, true), h && this.#i(h), ne(n) && (this.#t = n || "0"), this.#t === "0" && this.path.slice(-1) === "/" && (this.#t = "5"), this.#t === "5" && (this.size = 0), this.linkpath = xt(t, e + 157, 100), t.subarray(e + 257, e + 265).toString() === "ustar\x0000") if (this.uname = h?.uname ?? a?.uname ?? xt(t, e + 265, 32), this.gname = h?.gname ?? a?.gname ?? xt(t, e + 297, 32), this.devmaj = h?.devmaj ?? a?.devmaj ?? lt(t, e + 329, 8) ?? 0, this.devmin = h?.devmin ?? a?.devmin ?? lt(t, e + 337, 8) ?? 0, t[e + 475] !== 0) {
|
|
31881
31948
|
let c = xt(t, e + 345, 155);
|
|
31882
31949
|
this.path = c + "/" + this.path;
|
|
31883
31950
|
} else {
|
|
@@ -31894,7 +31961,7 @@ var F = class {
|
|
|
31894
31961
|
}
|
|
31895
31962
|
encode(t, e = 0) {
|
|
31896
31963
|
if (t || (t = this.block = Buffer.alloc(512)), this.#t === "Unsupported" && (this.#t = "0"), !(t.length >= e + 512)) throw new Error("need 512 bytes for header");
|
|
31897
|
-
let i = this.ctime || this.atime ? 130 : 155, r =
|
|
31964
|
+
let i = this.ctime || this.atime ? 130 : 155, r = mn(this.path || "", i), n = r[0], o = r[1];
|
|
31898
31965
|
this.needPax = !!r[2], this.needPax = Lt(t, e, 100, n) || this.needPax, this.needPax = ct(t, e + 100, 8, this.mode) || this.needPax, this.needPax = ct(t, e + 108, 8, this.uid) || this.needPax, this.needPax = ct(t, e + 116, 8, this.gid) || this.needPax, this.needPax = ct(t, e + 124, 12, this.size) || this.needPax, this.needPax = Gi(t, e + 136, 12, this.mtime) || this.needPax, t[e + 156] = Number(this.#t.codePointAt(0)), this.needPax = Lt(t, e + 157, 100, this.linkpath) || this.needPax, t.write("ustar\x0000", e + 257, 8), this.needPax = Lt(t, e + 265, 32, this.uname) || this.needPax, this.needPax = Lt(t, e + 297, 32, this.gname) || this.needPax, this.needPax = ct(t, e + 329, 8, this.devmaj) || this.needPax, this.needPax = ct(t, e + 337, 8, this.devmin) || this.needPax, this.needPax = Lt(t, e + 345, i, o) || this.needPax, t[e + 475] !== 0 ? this.needPax = Lt(t, e + 345, 155, o) || this.needPax : (this.needPax = Lt(t, e + 345, 130, o) || this.needPax, this.needPax = Gi(t, e + 476, 12, this.atime) || this.needPax, this.needPax = Gi(t, e + 488, 12, this.ctime) || this.needPax);
|
|
31899
31966
|
let h = 256;
|
|
31900
31967
|
for (let a = e; a < e + 148; a++) h += t[a];
|
|
@@ -31914,7 +31981,7 @@ var F = class {
|
|
|
31914
31981
|
else throw new TypeError("invalid entry type: " + t);
|
|
31915
31982
|
}
|
|
31916
31983
|
};
|
|
31917
|
-
var
|
|
31984
|
+
var mn = (s3, t) => {
|
|
31918
31985
|
let i = s3, r = "", n, o = R.posix.parse(s3).root || ".";
|
|
31919
31986
|
if (Buffer.byteLength(i) < 100) n = [i, r, false];
|
|
31920
31987
|
else {
|
|
@@ -32107,7 +32174,7 @@ var dt = /* @__PURE__ */ Symbol("meta");
|
|
|
32107
32174
|
var Ys = /* @__PURE__ */ Symbol("emitMeta");
|
|
32108
32175
|
var p = /* @__PURE__ */ Symbol("buffer");
|
|
32109
32176
|
var st = /* @__PURE__ */ Symbol("queue");
|
|
32110
|
-
var
|
|
32177
|
+
var ut = /* @__PURE__ */ Symbol("ended");
|
|
32111
32178
|
var Yi = /* @__PURE__ */ Symbol("emittedEnd");
|
|
32112
32179
|
var At = /* @__PURE__ */ Symbol("emit");
|
|
32113
32180
|
var w = /* @__PURE__ */ Symbol("unzip");
|
|
@@ -32149,7 +32216,7 @@ var rt = class extends Qr.EventEmitter {
|
|
|
32149
32216
|
[dt] = "";
|
|
32150
32217
|
[V];
|
|
32151
32218
|
[he];
|
|
32152
|
-
[
|
|
32219
|
+
[ut] = false;
|
|
32153
32220
|
[w];
|
|
32154
32221
|
[$] = false;
|
|
32155
32222
|
[It];
|
|
@@ -32287,7 +32354,7 @@ var rt = class extends Qr.EventEmitter {
|
|
|
32287
32354
|
}
|
|
32288
32355
|
}
|
|
32289
32356
|
let h = this.brotli === void 0 && !o;
|
|
32290
|
-
if (this[w] === false && h) if (t.length < 512) if (this[
|
|
32357
|
+
if (this[w] === false && h) if (t.length < 512) if (this[ut]) this.brotli = true;
|
|
32291
32358
|
else return this[p] = t, i?.(), true;
|
|
32292
32359
|
else try {
|
|
32293
32360
|
new F(t.subarray(0, 512)), this.brotli = false;
|
|
@@ -32295,13 +32362,13 @@ var rt = class extends Qr.EventEmitter {
|
|
|
32295
32362
|
this.brotli = true;
|
|
32296
32363
|
}
|
|
32297
32364
|
if (this[w] === void 0 || this[w] === false && (this.brotli || o)) {
|
|
32298
|
-
let a = this[
|
|
32299
|
-
this[
|
|
32365
|
+
let a = this[ut];
|
|
32366
|
+
this[ut] = false, this[w] = this[w] === void 0 ? new Ue({}) : o ? new Ke({}) : new Ge({}), this[w].on("data", (c) => {
|
|
32300
32367
|
this[Xs](c) && this[Xe](c);
|
|
32301
32368
|
}), this[w].on("error", (c) => {
|
|
32302
32369
|
this[$] || this.abort(c);
|
|
32303
32370
|
}), this[w].on("end", () => {
|
|
32304
|
-
this[
|
|
32371
|
+
this[ut] = true, this[Xe]();
|
|
32305
32372
|
}), this[Yt] = true, this[le] += t.length;
|
|
32306
32373
|
let l = !!this[w][a ? "end" : "write"](t);
|
|
32307
32374
|
return this[Yt] = false, i?.(), l;
|
|
@@ -32315,7 +32382,7 @@ var rt = class extends Qr.EventEmitter {
|
|
|
32315
32382
|
t && !this[$] && (this[p] = this[p] ? Buffer.concat([this[p], t]) : t);
|
|
32316
32383
|
}
|
|
32317
32384
|
[Qe]() {
|
|
32318
|
-
if (this[
|
|
32385
|
+
if (this[ut] && !this[Yi] && !this[$] && !this[ae]) {
|
|
32319
32386
|
this[Yi] = true;
|
|
32320
32387
|
let t = this[Nt];
|
|
32321
32388
|
if (t?.blockRemain) {
|
|
@@ -32340,7 +32407,7 @@ var rt = class extends Qr.EventEmitter {
|
|
|
32340
32407
|
}
|
|
32341
32408
|
this[ae] = false;
|
|
32342
32409
|
}
|
|
32343
|
-
(!this[p] || this[
|
|
32410
|
+
(!this[p] || this[ut]) && this[Qe]();
|
|
32344
32411
|
}
|
|
32345
32412
|
[qe](t) {
|
|
32346
32413
|
let e = 0, i = t.length;
|
|
@@ -32362,10 +32429,10 @@ var rt = class extends Qr.EventEmitter {
|
|
|
32362
32429
|
e < i && (this[p] = this[p] ? Buffer.concat([t.subarray(e), this[p]]) : t.subarray(e));
|
|
32363
32430
|
}
|
|
32364
32431
|
end(t, e, i) {
|
|
32365
|
-
return typeof t == "function" && (i = t, e = void 0, t = void 0), typeof e == "function" && (i = e, e = void 0), typeof t == "string" && (t = Buffer.from(t, e)), i && this.once("finish", i), this[$] || (this[w] ? (t && (this[le] += t.length, this[w].write(t)), this[w].end()) : (this[
|
|
32432
|
+
return typeof t == "function" && (i = t, e = void 0, t = void 0), typeof e == "function" && (i = e, e = void 0), typeof t == "string" && (t = Buffer.from(t, e)), i && this.once("finish", i), this[$] || (this[w] ? (t && (this[le] += t.length, this[w].write(t)), this[w].end()) : (this[ut] = true, (this.brotli === void 0 || this.zstd === void 0) && (t = t || Buffer.alloc(0)), t && this.write(t), this[Qe]())), this;
|
|
32366
32433
|
}
|
|
32367
32434
|
};
|
|
32368
|
-
var
|
|
32435
|
+
var mt = (s3) => {
|
|
32369
32436
|
let t = s3.length - 1, e = -1;
|
|
32370
32437
|
for (; t > -1 && s3.charAt(t) === "/"; ) e = t, t--;
|
|
32371
32438
|
return e === -1 ? s3 : s3.slice(0, e);
|
|
@@ -32377,29 +32444,30 @@ var vn = (s3) => {
|
|
|
32377
32444
|
} : (e) => e.resume();
|
|
32378
32445
|
};
|
|
32379
32446
|
var Qi = (s3, t) => {
|
|
32380
|
-
let e = new Map(t.map((
|
|
32381
|
-
|
|
32382
|
-
|
|
32447
|
+
let e = new Map(t.map((o) => [mt(o), true])), i = s3.filter, r = 100, n = (o, h = "", a = 0) => {
|
|
32448
|
+
if (a >= r) return e.set(o, false), false;
|
|
32449
|
+
let l = h || R.parse(o).root || ".", c;
|
|
32450
|
+
if (o === l) c = false;
|
|
32383
32451
|
else {
|
|
32384
|
-
let
|
|
32385
|
-
|
|
32452
|
+
let d = e.get(o);
|
|
32453
|
+
c = d !== void 0 ? d : n(R.dirname(o), l, a + 1);
|
|
32386
32454
|
}
|
|
32387
|
-
return e.set(
|
|
32455
|
+
return e.set(o, c), c;
|
|
32388
32456
|
};
|
|
32389
|
-
s3.filter = i ? (
|
|
32457
|
+
s3.filter = i ? (o, h) => i(o, h) && n(mt(o)) : (o) => n(mt(o));
|
|
32390
32458
|
};
|
|
32391
32459
|
var Mn = (s3) => {
|
|
32392
32460
|
let t = new rt(s3), e = s3.file, i;
|
|
32393
32461
|
try {
|
|
32394
|
-
i =
|
|
32395
|
-
let r =
|
|
32462
|
+
i = u__namespace.default.openSync(e, "r");
|
|
32463
|
+
let r = u__namespace.default.fstatSync(i), n = s3.maxReadSize || 16 * 1024 * 1024;
|
|
32396
32464
|
if (r.size < n) {
|
|
32397
|
-
let o = Buffer.allocUnsafe(r.size), h =
|
|
32465
|
+
let o = Buffer.allocUnsafe(r.size), h = u__namespace.default.readSync(i, o, 0, r.size, 0);
|
|
32398
32466
|
t.end(h === o.byteLength ? o : o.subarray(0, h));
|
|
32399
32467
|
} else {
|
|
32400
32468
|
let o = 0, h = Buffer.allocUnsafe(n);
|
|
32401
32469
|
for (; o < r.size; ) {
|
|
32402
|
-
let a =
|
|
32470
|
+
let a = u__namespace.default.readSync(i, h, 0, n, o);
|
|
32403
32471
|
if (a === 0) break;
|
|
32404
32472
|
o += a, t.write(h.subarray(0, a));
|
|
32405
32473
|
}
|
|
@@ -32407,7 +32475,7 @@ var Mn = (s3) => {
|
|
|
32407
32475
|
}
|
|
32408
32476
|
} finally {
|
|
32409
32477
|
if (typeof i == "number") try {
|
|
32410
|
-
|
|
32478
|
+
u__namespace.default.closeSync(i);
|
|
32411
32479
|
} catch {
|
|
32412
32480
|
}
|
|
32413
32481
|
}
|
|
@@ -32415,7 +32483,7 @@ var Mn = (s3) => {
|
|
|
32415
32483
|
var Bn = (s3, t) => {
|
|
32416
32484
|
let e = new rt(s3), i = s3.maxReadSize || 16 * 1024 * 1024, r = s3.file;
|
|
32417
32485
|
return new Promise((o, h) => {
|
|
32418
|
-
e.on("error", h), e.on("end", o),
|
|
32486
|
+
e.on("error", h), e.on("end", o), u__namespace.default.stat(r, (a, l) => {
|
|
32419
32487
|
if (a) h(a);
|
|
32420
32488
|
else {
|
|
32421
32489
|
let c = new _t(r, { readSize: i, size: l.size });
|
|
@@ -32443,7 +32511,7 @@ var Un = new Map(ei.map((s3, t) => [s3, ji[t]]));
|
|
|
32443
32511
|
var Hn = new Map(ji.map((s3, t) => [s3, ei[t]]));
|
|
32444
32512
|
var ts = (s3) => ei.reduce((t, e) => t.split(e).join(Un.get(e)), s3);
|
|
32445
32513
|
var Qs = (s3) => ji.reduce((t, e) => t.split(e).join(Hn.get(e)), s3);
|
|
32446
|
-
var rr = (s3, t) => t ? (s3 = f(s3).replace(/^\.(\/|$)/, ""),
|
|
32514
|
+
var rr = (s3, t) => t ? (s3 = f(s3).replace(/^\.(\/|$)/, ""), mt(t) + "/" + s3) : f(s3);
|
|
32447
32515
|
var Wn = 16 * 1024 * 1024;
|
|
32448
32516
|
var tr = /* @__PURE__ */ Symbol("process");
|
|
32449
32517
|
var er = /* @__PURE__ */ Symbol("file");
|
|
@@ -32513,7 +32581,7 @@ var de = class extends A {
|
|
|
32513
32581
|
return t === "error" && (this.#t = true), super.emit(t, ...e);
|
|
32514
32582
|
}
|
|
32515
32583
|
[ss]() {
|
|
32516
|
-
|
|
32584
|
+
u__namespace.default.lstat(this.absolute, (t, e) => {
|
|
32517
32585
|
if (t) return this.emit("error", t);
|
|
32518
32586
|
this[si](e);
|
|
32519
32587
|
});
|
|
@@ -32551,7 +32619,7 @@ var de = class extends A {
|
|
|
32551
32619
|
this.path.slice(-1) !== "/" && (this.path += "/"), this.stat.size = 0, this[fe](), this.end();
|
|
32552
32620
|
}
|
|
32553
32621
|
[is3]() {
|
|
32554
|
-
|
|
32622
|
+
u__namespace.default.readlink(this.absolute, (t, e) => {
|
|
32555
32623
|
if (t) return this.emit("error", t);
|
|
32556
32624
|
this[ns](e);
|
|
32557
32625
|
});
|
|
@@ -32574,7 +32642,7 @@ var de = class extends A {
|
|
|
32574
32642
|
this[os]();
|
|
32575
32643
|
}
|
|
32576
32644
|
[os]() {
|
|
32577
|
-
|
|
32645
|
+
u__namespace.default.open(this.absolute, "r", (t, e) => {
|
|
32578
32646
|
if (t) return this.emit("error", t);
|
|
32579
32647
|
this[hs](e);
|
|
32580
32648
|
});
|
|
@@ -32589,14 +32657,14 @@ var de = class extends A {
|
|
|
32589
32657
|
[ii]() {
|
|
32590
32658
|
let { fd: t, buf: e, offset: i, length: r, pos: n } = this;
|
|
32591
32659
|
if (t === void 0 || e === void 0) throw new Error("cannot read file without first opening");
|
|
32592
|
-
|
|
32660
|
+
u__namespace.default.read(t, e, i, r, n, (o, h) => {
|
|
32593
32661
|
if (o) return this[pt](() => this.emit("error", o));
|
|
32594
32662
|
this[rs](h);
|
|
32595
32663
|
});
|
|
32596
32664
|
}
|
|
32597
32665
|
[pt](t = () => {
|
|
32598
32666
|
}) {
|
|
32599
|
-
this.fd !== void 0 &&
|
|
32667
|
+
this.fd !== void 0 && u__namespace.default.close(this.fd, t);
|
|
32600
32668
|
}
|
|
32601
32669
|
[rs](t) {
|
|
32602
32670
|
if (t <= 0 && this.remain > 0) {
|
|
@@ -32631,20 +32699,20 @@ var de = class extends A {
|
|
|
32631
32699
|
var ni = class extends de {
|
|
32632
32700
|
sync = true;
|
|
32633
32701
|
[ss]() {
|
|
32634
|
-
this[si](
|
|
32702
|
+
this[si](u__namespace.default.lstatSync(this.absolute));
|
|
32635
32703
|
}
|
|
32636
32704
|
[is3]() {
|
|
32637
|
-
this[ns](
|
|
32705
|
+
this[ns](u__namespace.default.readlinkSync(this.absolute));
|
|
32638
32706
|
}
|
|
32639
32707
|
[os]() {
|
|
32640
|
-
this[hs](
|
|
32708
|
+
this[hs](u__namespace.default.openSync(this.absolute, "r"));
|
|
32641
32709
|
}
|
|
32642
32710
|
[ii]() {
|
|
32643
32711
|
let t = true;
|
|
32644
32712
|
try {
|
|
32645
32713
|
let { fd: e, buf: i, offset: r, length: n, pos: o } = this;
|
|
32646
32714
|
if (e === void 0 || i === void 0) throw new Error("fd and buf must be set in READ method");
|
|
32647
|
-
let h =
|
|
32715
|
+
let h = u__namespace.default.readSync(e, i, r, n, o);
|
|
32648
32716
|
this[rs](h), t = false;
|
|
32649
32717
|
} finally {
|
|
32650
32718
|
if (t) try {
|
|
@@ -32659,7 +32727,7 @@ var ni = class extends de {
|
|
|
32659
32727
|
}
|
|
32660
32728
|
[pt](t = () => {
|
|
32661
32729
|
}) {
|
|
32662
|
-
this.fd !== void 0 &&
|
|
32730
|
+
this.fd !== void 0 && u__namespace.default.closeSync(this.fd), t();
|
|
32663
32731
|
}
|
|
32664
32732
|
};
|
|
32665
32733
|
var oi = class extends A {
|
|
@@ -32870,16 +32938,16 @@ var hi = class s2 {
|
|
|
32870
32938
|
}
|
|
32871
32939
|
};
|
|
32872
32940
|
function Zn(s3, t, e) {
|
|
32873
|
-
let i = t, r = t ? t.next : s3.head, n = new
|
|
32941
|
+
let i = t, r = t ? t.next : s3.head, n = new ue(e, i, r, s3);
|
|
32874
32942
|
return n.next === void 0 && (s3.tail = n), n.prev === void 0 && (s3.head = n), s3.length++, n;
|
|
32875
32943
|
}
|
|
32876
32944
|
function Yn(s3, t) {
|
|
32877
|
-
s3.tail = new
|
|
32945
|
+
s3.tail = new ue(t, s3.tail, void 0, s3), s3.head || (s3.head = s3.tail), s3.length++;
|
|
32878
32946
|
}
|
|
32879
32947
|
function Kn(s3, t) {
|
|
32880
|
-
s3.head = new
|
|
32948
|
+
s3.head = new ue(t, void 0, s3.head, s3), s3.tail || (s3.tail = s3.head), s3.length++;
|
|
32881
32949
|
}
|
|
32882
|
-
var
|
|
32950
|
+
var ue = class {
|
|
32883
32951
|
list;
|
|
32884
32952
|
next;
|
|
32885
32953
|
prev;
|
|
@@ -32904,7 +32972,7 @@ var pi = class {
|
|
|
32904
32972
|
};
|
|
32905
32973
|
var nr = Buffer.alloc(1024);
|
|
32906
32974
|
var li = /* @__PURE__ */ Symbol("onStat");
|
|
32907
|
-
var
|
|
32975
|
+
var me = /* @__PURE__ */ Symbol("ended");
|
|
32908
32976
|
var W = /* @__PURE__ */ Symbol("queue");
|
|
32909
32977
|
var pe = /* @__PURE__ */ Symbol("pendingLinks");
|
|
32910
32978
|
var Et = /* @__PURE__ */ Symbol("current");
|
|
@@ -32916,12 +32984,12 @@ var ls = /* @__PURE__ */ Symbol("jobDone");
|
|
|
32916
32984
|
var ci = /* @__PURE__ */ Symbol("addFSEntry");
|
|
32917
32985
|
var or = /* @__PURE__ */ Symbol("addTarEntry");
|
|
32918
32986
|
var ds = /* @__PURE__ */ Symbol("stat");
|
|
32919
|
-
var
|
|
32987
|
+
var us = /* @__PURE__ */ Symbol("readdir");
|
|
32920
32988
|
var fi = /* @__PURE__ */ Symbol("onreaddir");
|
|
32921
32989
|
var di = /* @__PURE__ */ Symbol("pipe");
|
|
32922
32990
|
var hr = /* @__PURE__ */ Symbol("entry");
|
|
32923
32991
|
var cs = /* @__PURE__ */ Symbol("entryOpt");
|
|
32924
|
-
var
|
|
32992
|
+
var ui = /* @__PURE__ */ Symbol("writeEntryClass");
|
|
32925
32993
|
var lr = /* @__PURE__ */ Symbol("write");
|
|
32926
32994
|
var fs = /* @__PURE__ */ Symbol("ondrain");
|
|
32927
32995
|
var wt = class extends A {
|
|
@@ -32945,21 +33013,21 @@ var wt = class extends A {
|
|
|
32945
33013
|
mtime;
|
|
32946
33014
|
filter;
|
|
32947
33015
|
jobs;
|
|
32948
|
-
[
|
|
33016
|
+
[ui];
|
|
32949
33017
|
onWriteEntry;
|
|
32950
33018
|
[W];
|
|
32951
33019
|
[pe] = /* @__PURE__ */ new Map();
|
|
32952
33020
|
[G] = 0;
|
|
32953
33021
|
[Ee] = false;
|
|
32954
|
-
[
|
|
33022
|
+
[me] = false;
|
|
32955
33023
|
constructor(t = {}) {
|
|
32956
|
-
if (super(), this.opt = t, this.file = t.file || "", this.cwd = t.cwd || process.cwd(), this.maxReadSize = t.maxReadSize, this.preservePaths = !!t.preservePaths, this.strict = !!t.strict, this.noPax = !!t.noPax, this.prefix = f(t.prefix || ""), this.linkCache = t.linkCache || /* @__PURE__ */ new Map(), this.statCache = t.statCache || /* @__PURE__ */ new Map(), this.readdirCache = t.readdirCache || /* @__PURE__ */ new Map(), this.onWriteEntry = t.onWriteEntry, this[
|
|
33024
|
+
if (super(), this.opt = t, this.file = t.file || "", this.cwd = t.cwd || process.cwd(), this.maxReadSize = t.maxReadSize, this.preservePaths = !!t.preservePaths, this.strict = !!t.strict, this.noPax = !!t.noPax, this.prefix = f(t.prefix || ""), this.linkCache = t.linkCache || /* @__PURE__ */ new Map(), this.statCache = t.statCache || /* @__PURE__ */ new Map(), this.readdirCache = t.readdirCache || /* @__PURE__ */ new Map(), this.onWriteEntry = t.onWriteEntry, this[ui] = de, typeof t.onwarn == "function" && this.on("warn", t.onwarn), this.portable = !!t.portable, t.gzip || t.brotli || t.zstd) {
|
|
32957
33025
|
if ((t.gzip ? 1 : 0) + (t.brotli ? 1 : 0) + (t.zstd ? 1 : 0) > 1) throw new TypeError("gzip, brotli, zstd are mutually exclusive");
|
|
32958
33026
|
if (t.gzip && (typeof t.gzip != "object" && (t.gzip = {}), this.portable && (t.gzip.portable = true), this.zip = new ze(t.gzip)), t.brotli && (typeof t.brotli != "object" && (t.brotli = {}), this.zip = new We(t.brotli)), t.zstd && (typeof t.zstd != "object" && (t.zstd = {}), this.zip = new Ye(t.zstd)), !this.zip) throw new Error("impossible");
|
|
32959
33027
|
let e = this.zip;
|
|
32960
33028
|
e.on("data", (i) => super.write(i)), e.on("end", () => super.end()), e.on("drain", () => this[fs]()), this.on("resume", () => e.resume());
|
|
32961
33029
|
} else this.on("drain", this[fs]);
|
|
32962
|
-
this.noDirRecurse = !!t.noDirRecurse, this.follow = !!t.follow, this.noMtime = !!t.noMtime, t.mtime && (this.mtime = t.mtime), this.filter = typeof t.filter == "function" ? t.filter : () => true, this[W] = new hi(), this[G] = 0, this.jobs = Number(t.jobs) || 4, this[Ee] = false, this[
|
|
33030
|
+
this.noDirRecurse = !!t.noDirRecurse, this.follow = !!t.follow, this.noMtime = !!t.noMtime, t.mtime && (this.mtime = t.mtime), this.filter = typeof t.filter == "function" ? t.filter : () => true, this[W] = new hi(), this[G] = 0, this.jobs = Number(t.jobs) || 4, this[Ee] = false, this[me] = false;
|
|
32963
33031
|
}
|
|
32964
33032
|
[lr](t) {
|
|
32965
33033
|
return super.write(t);
|
|
@@ -32968,10 +33036,10 @@ var wt = class extends A {
|
|
|
32968
33036
|
return this.write(t), this;
|
|
32969
33037
|
}
|
|
32970
33038
|
end(t, e, i) {
|
|
32971
|
-
return typeof t == "function" && (i = t, t = void 0), typeof e == "function" && (i = e, e = void 0), t && this.add(t), this[
|
|
33039
|
+
return typeof t == "function" && (i = t, t = void 0), typeof e == "function" && (i = e, e = void 0), t && this.add(t), this[me] = true, this[Ft](), i && i(), this;
|
|
32972
33040
|
}
|
|
32973
33041
|
write(t) {
|
|
32974
|
-
if (this[
|
|
33042
|
+
if (this[me]) throw new Error("write after end");
|
|
32975
33043
|
return typeof t == "string" ? this[ci](t) : this[or](t), this.flowing;
|
|
32976
33044
|
}
|
|
32977
33045
|
[or](t) {
|
|
@@ -32990,7 +33058,7 @@ var wt = class extends A {
|
|
|
32990
33058
|
[ds](t) {
|
|
32991
33059
|
t.pending = true, this[G] += 1;
|
|
32992
33060
|
let e = this.follow ? "stat" : "lstat";
|
|
32993
|
-
|
|
33061
|
+
u__namespace.default[e](t.absolute, (i, r) => {
|
|
32994
33062
|
t.pending = false, this[G] -= 1, i ? this.emit("error", i) : this[li](t, r);
|
|
32995
33063
|
});
|
|
32996
33064
|
}
|
|
@@ -33003,8 +33071,8 @@ var wt = class extends A {
|
|
|
33003
33071
|
}
|
|
33004
33072
|
this[Ft]();
|
|
33005
33073
|
}
|
|
33006
|
-
[
|
|
33007
|
-
t.pending = true, this[G] += 1,
|
|
33074
|
+
[us](t) {
|
|
33075
|
+
t.pending = true, this[G] += 1, u__namespace.default.readdir(t.absolute, (e, i) => {
|
|
33008
33076
|
if (t.pending = false, this[G] -= 1, e) return this.emit("error", e);
|
|
33009
33077
|
this[fi](t, i);
|
|
33010
33078
|
});
|
|
@@ -33019,7 +33087,7 @@ var wt = class extends A {
|
|
|
33019
33087
|
let e = t.next;
|
|
33020
33088
|
this[W].removeNode(t), t.next = e;
|
|
33021
33089
|
}
|
|
33022
|
-
this[Ee] = false, this[
|
|
33090
|
+
this[Ee] = false, this[me] && this[W].length === 0 && this[G] === 0 && (this.zip ? this.zip.end(nr) : (super.write(nr), super.end()));
|
|
33023
33091
|
}
|
|
33024
33092
|
}
|
|
33025
33093
|
get [Et]() {
|
|
@@ -33050,7 +33118,7 @@ var wt = class extends A {
|
|
|
33050
33118
|
if (t.stat && !t.ignore) {
|
|
33051
33119
|
if (!this.noDirRecurse && t.stat.isDirectory() && !t.readdir) {
|
|
33052
33120
|
let e = this.readdirCache.get(t.absolute);
|
|
33053
|
-
if (e ? this[fi](t, e) : this[
|
|
33121
|
+
if (e ? this[fi](t, e) : this[us](t), !t.readdir) return;
|
|
33054
33122
|
}
|
|
33055
33123
|
if (t.entry = this[hr](t), !t.entry) {
|
|
33056
33124
|
t.ignore = true;
|
|
@@ -33066,7 +33134,7 @@ var wt = class extends A {
|
|
|
33066
33134
|
[hr](t) {
|
|
33067
33135
|
this[G] += 1;
|
|
33068
33136
|
try {
|
|
33069
|
-
return new this[
|
|
33137
|
+
return new this[ui](t.path, this[cs](t)).on("end", () => this[ls](t)).on("error", (i) => this.emit("error", i));
|
|
33070
33138
|
} catch (e) {
|
|
33071
33139
|
this.emit("error", e);
|
|
33072
33140
|
}
|
|
@@ -33097,7 +33165,7 @@ var wt = class extends A {
|
|
|
33097
33165
|
var kt = class extends wt {
|
|
33098
33166
|
sync = true;
|
|
33099
33167
|
constructor(t) {
|
|
33100
|
-
super(t), this[
|
|
33168
|
+
super(t), this[ui] = ni;
|
|
33101
33169
|
}
|
|
33102
33170
|
pause() {
|
|
33103
33171
|
}
|
|
@@ -33105,10 +33173,10 @@ var kt = class extends wt {
|
|
|
33105
33173
|
}
|
|
33106
33174
|
[ds](t) {
|
|
33107
33175
|
let e = this.follow ? "statSync" : "lstatSync";
|
|
33108
|
-
this[li](t,
|
|
33176
|
+
this[li](t, u__namespace.default[e](t.absolute));
|
|
33109
33177
|
}
|
|
33110
|
-
[
|
|
33111
|
-
this[fi](t,
|
|
33178
|
+
[us](t) {
|
|
33179
|
+
this[fi](t, u__namespace.default.readdirSync(t.absolute));
|
|
33112
33180
|
}
|
|
33113
33181
|
[di](t) {
|
|
33114
33182
|
let e = t.entry, i = this.zip;
|
|
@@ -33159,22 +33227,22 @@ K(Vn, $n, Xn, qn, (s3, t) => {
|
|
|
33159
33227
|
});
|
|
33160
33228
|
var Jn = process.env.__FAKE_PLATFORM__ || process.platform;
|
|
33161
33229
|
var Er = Jn === "win32";
|
|
33162
|
-
var { O_CREAT: wr, O_NOFOLLOW:
|
|
33163
|
-
var Rr = Number(process.env.__FAKE_FS_O_FILENAME__) ||
|
|
33230
|
+
var { O_CREAT: wr, O_NOFOLLOW: ur, O_TRUNC: Sr, O_WRONLY: yr } = u__namespace.default.constants;
|
|
33231
|
+
var Rr = Number(process.env.__FAKE_FS_O_FILENAME__) || u__namespace.default.constants.UV_FS_O_FILEMAP || 0;
|
|
33164
33232
|
var jn = Er && !!Rr;
|
|
33165
33233
|
var to = 512 * 1024;
|
|
33166
33234
|
var eo = Rr | Sr | wr | yr;
|
|
33167
|
-
var
|
|
33168
|
-
var
|
|
33235
|
+
var mr = !Er && typeof ur == "number" ? ur | Sr | wr | yr : null;
|
|
33236
|
+
var ms = mr !== null ? () => mr : jn ? (s3) => s3 < to ? eo : "w" : () => "w";
|
|
33169
33237
|
var ps = (s3, t, e) => {
|
|
33170
33238
|
try {
|
|
33171
|
-
return
|
|
33239
|
+
return u__namespace.default.lchownSync(s3, t, e);
|
|
33172
33240
|
} catch (i) {
|
|
33173
33241
|
if (i?.code !== "ENOENT") throw i;
|
|
33174
33242
|
}
|
|
33175
33243
|
};
|
|
33176
33244
|
var Ei = (s3, t, e, i) => {
|
|
33177
|
-
|
|
33245
|
+
u__namespace.default.lchown(s3, t, e, (r) => {
|
|
33178
33246
|
i(r && r?.code !== "ENOENT" ? r : null);
|
|
33179
33247
|
});
|
|
33180
33248
|
};
|
|
@@ -33190,7 +33258,7 @@ var io = (s3, t, e, i, r) => {
|
|
|
33190
33258
|
}
|
|
33191
33259
|
};
|
|
33192
33260
|
var Es = (s3, t, e, i) => {
|
|
33193
|
-
|
|
33261
|
+
u__namespace.default.readdir(s3, { withFileTypes: true }, (r, n) => {
|
|
33194
33262
|
if (r) {
|
|
33195
33263
|
if (r.code === "ENOENT") return i();
|
|
33196
33264
|
if (r.code !== "ENOTDIR" && r.code !== "ENOTSUP") return i(r);
|
|
@@ -33211,7 +33279,7 @@ var so = (s3, t, e, i) => {
|
|
|
33211
33279
|
var ws = (s3, t, e) => {
|
|
33212
33280
|
let i;
|
|
33213
33281
|
try {
|
|
33214
|
-
i =
|
|
33282
|
+
i = u__namespace.default.readdirSync(s3, { withFileTypes: true });
|
|
33215
33283
|
} catch (r) {
|
|
33216
33284
|
let n = r;
|
|
33217
33285
|
if (n?.code === "ENOENT") return;
|
|
@@ -33245,14 +33313,14 @@ var St = class extends Error {
|
|
|
33245
33313
|
}
|
|
33246
33314
|
};
|
|
33247
33315
|
var no = (s3, t) => {
|
|
33248
|
-
|
|
33316
|
+
u__namespace.default.stat(s3, (e, i) => {
|
|
33249
33317
|
(e || !i.isDirectory()) && (e = new Se(s3, e?.code || "ENOTDIR")), t(e);
|
|
33250
33318
|
});
|
|
33251
33319
|
};
|
|
33252
33320
|
var gr = (s3, t, e) => {
|
|
33253
33321
|
s3 = f(s3);
|
|
33254
33322
|
let i = t.umask ?? 18, r = t.mode | 448, n = (r & i) !== 0, o = t.uid, h = t.gid, a = typeof o == "number" && typeof h == "number" && (o !== t.processUid || h !== t.processGid), l = t.preserve, c = t.unlink, d = f(t.cwd), y = (E, x) => {
|
|
33255
|
-
E ? e(E) : x && a ? Es(x, o, h, (Le) => y(Le)) : n ?
|
|
33323
|
+
E ? e(E) : x && a ? Es(x, o, h, (Le) => y(Le)) : n ? u__namespace.default.chmod(s3, r, e) : e();
|
|
33256
33324
|
};
|
|
33257
33325
|
if (s3 === d) return no(s3, y);
|
|
33258
33326
|
if (l) return ro__default.default.mkdir(s3, { mode: r, recursive: true }).then((E) => y(null, E ?? void 0), y);
|
|
@@ -33262,15 +33330,15 @@ var gr = (s3, t, e) => {
|
|
|
33262
33330
|
var Ss = (s3, t, e, i, r, n, o) => {
|
|
33263
33331
|
if (t.length === 0) return o(null, n);
|
|
33264
33332
|
let h = t.shift(), a = f(R__namespace.default.resolve(s3 + "/" + h));
|
|
33265
|
-
|
|
33333
|
+
u__namespace.default.mkdir(a, e, br(a, t, e, i, r, n, o));
|
|
33266
33334
|
};
|
|
33267
33335
|
var br = (s3, t, e, i, r, n, o) => (h) => {
|
|
33268
|
-
h ?
|
|
33336
|
+
h ? u__namespace.default.lstat(s3, (a, l) => {
|
|
33269
33337
|
if (a) a.path = a.path && f(a.path), o(a);
|
|
33270
33338
|
else if (l.isDirectory()) Ss(s3, t, e, i, r, n, o);
|
|
33271
|
-
else if (i)
|
|
33339
|
+
else if (i) u__namespace.default.unlink(s3, (c) => {
|
|
33272
33340
|
if (c) return o(c);
|
|
33273
|
-
|
|
33341
|
+
u__namespace.default.mkdir(s3, e, br(s3, t, e, i, r, n, o));
|
|
33274
33342
|
});
|
|
33275
33343
|
else {
|
|
33276
33344
|
if (l.isSymbolicLink()) return o(new St(s3, s3 + "/" + t.join("/")));
|
|
@@ -33281,7 +33349,7 @@ var br = (s3, t, e, i, r, n, o) => (h) => {
|
|
|
33281
33349
|
var oo = (s3) => {
|
|
33282
33350
|
let t = false, e;
|
|
33283
33351
|
try {
|
|
33284
|
-
t =
|
|
33352
|
+
t = u__namespace.default.statSync(s3).isDirectory();
|
|
33285
33353
|
} catch (i) {
|
|
33286
33354
|
e = i?.code;
|
|
33287
33355
|
} finally {
|
|
@@ -33291,20 +33359,20 @@ var oo = (s3) => {
|
|
|
33291
33359
|
var _r = (s3, t) => {
|
|
33292
33360
|
s3 = f(s3);
|
|
33293
33361
|
let e = t.umask ?? 18, i = t.mode | 448, r = (i & e) !== 0, n = t.uid, o = t.gid, h = typeof n == "number" && typeof o == "number" && (n !== t.processUid || o !== t.processGid), a = t.preserve, l = t.unlink, c = f(t.cwd), d = (E) => {
|
|
33294
|
-
E && h && ws(E, n, o), r &&
|
|
33362
|
+
E && h && ws(E, n, o), r && u__namespace.default.chmodSync(s3, i);
|
|
33295
33363
|
};
|
|
33296
33364
|
if (s3 === c) return oo(c), d();
|
|
33297
|
-
if (a) return d(
|
|
33365
|
+
if (a) return d(u__namespace.default.mkdirSync(s3, { mode: i, recursive: true }) ?? void 0);
|
|
33298
33366
|
let T = f(R__namespace.default.relative(c, s3)).split("/"), D;
|
|
33299
33367
|
for (let E = T.shift(), x = c; E && (x += "/" + E); E = T.shift()) {
|
|
33300
33368
|
x = f(R__namespace.default.resolve(x));
|
|
33301
33369
|
try {
|
|
33302
|
-
|
|
33370
|
+
u__namespace.default.mkdirSync(x, i), D = D || x;
|
|
33303
33371
|
} catch {
|
|
33304
|
-
let Le =
|
|
33372
|
+
let Le = u__namespace.default.lstatSync(x);
|
|
33305
33373
|
if (Le.isDirectory()) continue;
|
|
33306
33374
|
if (l) {
|
|
33307
|
-
|
|
33375
|
+
u__namespace.default.unlinkSync(x), u__namespace.default.mkdirSync(x, i), D = D || x;
|
|
33308
33376
|
continue;
|
|
33309
33377
|
} else if (Le.isSymbolicLink()) return new St(x, x + "/" + T.join("/"));
|
|
33310
33378
|
}
|
|
@@ -33333,7 +33401,7 @@ var yi = class {
|
|
|
33333
33401
|
#i = /* @__PURE__ */ new Map();
|
|
33334
33402
|
#s = /* @__PURE__ */ new Set();
|
|
33335
33403
|
reserve(t, e) {
|
|
33336
|
-
t = ao ? ["win32 parallelization disabled"] : t.map((r) =>
|
|
33404
|
+
t = ao ? ["win32 parallelization disabled"] : t.map((r) => mt(R.join(Tr(r))));
|
|
33337
33405
|
let i = new Set(t.map((r) => lo(r)).reduce((r, n) => r.concat(n)));
|
|
33338
33406
|
this.#i.set(e, { dirs: i, paths: t });
|
|
33339
33407
|
for (let r of t) {
|
|
@@ -33421,19 +33489,19 @@ var _e = /* @__PURE__ */ Symbol("gid");
|
|
|
33421
33489
|
var Oe = /* @__PURE__ */ Symbol("checkedCwd");
|
|
33422
33490
|
var fo = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
33423
33491
|
var Te = fo === "win32";
|
|
33424
|
-
var
|
|
33425
|
-
var
|
|
33426
|
-
if (!Te) return
|
|
33492
|
+
var uo = 1024;
|
|
33493
|
+
var mo = (s3, t) => {
|
|
33494
|
+
if (!Te) return u__namespace.default.unlink(s3, t);
|
|
33427
33495
|
let e = s3 + ".DELETE." + NodeCrypto.randomBytes(16).toString("hex");
|
|
33428
|
-
|
|
33496
|
+
u__namespace.default.rename(s3, e, (i) => {
|
|
33429
33497
|
if (i) return t(i);
|
|
33430
|
-
|
|
33498
|
+
u__namespace.default.unlink(e, t);
|
|
33431
33499
|
});
|
|
33432
33500
|
};
|
|
33433
33501
|
var po = (s3) => {
|
|
33434
|
-
if (!Te) return
|
|
33502
|
+
if (!Te) return u__namespace.default.unlinkSync(s3);
|
|
33435
33503
|
let t = s3 + ".DELETE." + NodeCrypto.randomBytes(16).toString("hex");
|
|
33436
|
-
|
|
33504
|
+
u__namespace.default.renameSync(s3, t), u__namespace.default.unlinkSync(t);
|
|
33437
33505
|
};
|
|
33438
33506
|
var vr = (s3, t, e) => s3 !== void 0 && s3 === s3 >>> 0 ? s3 : t !== void 0 && t === t >>> 0 ? t : e;
|
|
33439
33507
|
var Xt = class extends rt {
|
|
@@ -33473,7 +33541,7 @@ var Xt = class extends rt {
|
|
|
33473
33541
|
if (t.preserveOwner) throw new TypeError("cannot preserve owner in archive and also set owner explicitly");
|
|
33474
33542
|
this.uid = t.uid, this.gid = t.gid, this.setOwner = true;
|
|
33475
33543
|
} else this.uid = void 0, this.gid = void 0, this.setOwner = false;
|
|
33476
|
-
this.preserveOwner = t.preserveOwner === void 0 && typeof t.uid != "number" ? process.getuid?.() === 0 : !!t.preserveOwner, this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : void 0, this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : void 0, this.maxDepth = typeof t.maxDepth == "number" ? t.maxDepth :
|
|
33544
|
+
this.preserveOwner = t.preserveOwner === void 0 && typeof t.uid != "number" ? process.getuid?.() === 0 : !!t.preserveOwner, this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : void 0, this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : void 0, this.maxDepth = typeof t.maxDepth == "number" ? t.maxDepth : uo, this.forceChown = t.forceChown === true, this.win32 = !!t.win32 || Te, this.newer = !!t.newer, this.keep = !!t.keep, this.noMtime = !!t.noMtime, this.preservePaths = !!t.preservePaths, this.unlink = !!t.unlink, this.cwd = f(R__namespace.default.resolve(t.cwd || process.cwd())), this.strip = Number(t.strip) || 0, this.processUmask = this.chmod ? typeof t.processUmask == "number" ? t.processUmask : Lr() : 0, this.umask = typeof t.umask == "number" ? t.umask : this.processUmask, this.dmode = t.dmode || 511 & ~this.umask, this.fmode = t.fmode || 438 & ~this.umask, this.on("entry", (e) => this[Dr](e));
|
|
33477
33545
|
}
|
|
33478
33546
|
warn(t, e, i = {}) {
|
|
33479
33547
|
return (t === "TAR_BAD_ARCHIVE" || t === "TAR_ABORT") && (i.recoverable = false), super.warn(t, e, i);
|
|
@@ -33547,18 +33615,18 @@ var Xt = class extends rt {
|
|
|
33547
33615
|
return vr(this.gid, t.gid, this.processGid);
|
|
33548
33616
|
}
|
|
33549
33617
|
[Ts](t, e) {
|
|
33550
|
-
let i = typeof t.mode == "number" ? t.mode & 4095 : this.fmode, r = new et(String(t.absolute), { flags:
|
|
33618
|
+
let i = typeof t.mode == "number" ? t.mode & 4095 : this.fmode, r = new et(String(t.absolute), { flags: ms(t.size), mode: i, autoClose: false });
|
|
33551
33619
|
r.on("error", (a) => {
|
|
33552
|
-
r.fd &&
|
|
33620
|
+
r.fd && u__namespace.default.close(r.fd, () => {
|
|
33553
33621
|
}), r.write = () => true, this[O](a, t), e();
|
|
33554
33622
|
});
|
|
33555
33623
|
let n = 1, o = (a) => {
|
|
33556
33624
|
if (a) {
|
|
33557
|
-
r.fd &&
|
|
33625
|
+
r.fd && u__namespace.default.close(r.fd, () => {
|
|
33558
33626
|
}), this[O](a, t), e();
|
|
33559
33627
|
return;
|
|
33560
33628
|
}
|
|
33561
|
-
--n === 0 && r.fd !== void 0 &&
|
|
33629
|
+
--n === 0 && r.fd !== void 0 && u__namespace.default.close(r.fd, (l) => {
|
|
33562
33630
|
l ? this[O](l, t) : this[$t](), e();
|
|
33563
33631
|
});
|
|
33564
33632
|
};
|
|
@@ -33567,12 +33635,12 @@ var Xt = class extends rt {
|
|
|
33567
33635
|
if (typeof l == "number" && t.mtime && !this.noMtime) {
|
|
33568
33636
|
n++;
|
|
33569
33637
|
let c = t.atime || /* @__PURE__ */ new Date(), d = t.mtime;
|
|
33570
|
-
|
|
33638
|
+
u__namespace.default.futimes(l, c, d, (y) => y ? u__namespace.default.utimes(a, c, d, (T) => o(T && y)) : o());
|
|
33571
33639
|
}
|
|
33572
33640
|
if (typeof l == "number" && this[ge](t)) {
|
|
33573
33641
|
n++;
|
|
33574
33642
|
let c = this[be](t), d = this[_e](t);
|
|
33575
|
-
typeof c == "number" && typeof d == "number" &&
|
|
33643
|
+
typeof c == "number" && typeof d == "number" && u__namespace.default.fchown(l, c, d, (y) => y ? u__namespace.default.chown(a, c, d, (T) => o(T && y)) : o());
|
|
33576
33644
|
}
|
|
33577
33645
|
o();
|
|
33578
33646
|
});
|
|
@@ -33591,7 +33659,7 @@ var Xt = class extends rt {
|
|
|
33591
33659
|
let n = 1, o = () => {
|
|
33592
33660
|
--n === 0 && (e(), this[$t](), t.resume());
|
|
33593
33661
|
};
|
|
33594
|
-
t.mtime && !this.noMtime && (n++,
|
|
33662
|
+
t.mtime && !this.noMtime && (n++, u__namespace.default.utimes(String(t.absolute), t.atime || /* @__PURE__ */ new Date(), t.mtime, o)), this[ge](t) && (n++, u__namespace.default.chown(String(t.absolute), Number(this[be](t)), Number(this[_e](t)), o)), o();
|
|
33595
33663
|
});
|
|
33596
33664
|
}
|
|
33597
33665
|
[Cr](t) {
|
|
@@ -33613,7 +33681,7 @@ var Xt = class extends rt {
|
|
|
33613
33681
|
let o = i.shift();
|
|
33614
33682
|
if (this.preservePaths || o === void 0) return r();
|
|
33615
33683
|
let h = R__namespace.default.resolve(e, o);
|
|
33616
|
-
|
|
33684
|
+
u__namespace.default.lstat(h, (a, l) => {
|
|
33617
33685
|
if (a) return r();
|
|
33618
33686
|
if (l?.isSymbolicLink()) return n(new St(h, R__namespace.default.resolve(h, i.join("/"))));
|
|
33619
33687
|
this[Re](t, h, i, r, n);
|
|
@@ -33660,7 +33728,7 @@ var Xt = class extends rt {
|
|
|
33660
33728
|
}
|
|
33661
33729
|
o();
|
|
33662
33730
|
}, o = () => {
|
|
33663
|
-
|
|
33731
|
+
u__namespace.default.lstat(String(t.absolute), (h, a) => {
|
|
33664
33732
|
if (a && (this.keep || this.newer && a.mtime > (t.mtime ?? a.mtime))) {
|
|
33665
33733
|
this[Ls](t), i();
|
|
33666
33734
|
return;
|
|
@@ -33669,12 +33737,12 @@ var Xt = class extends rt {
|
|
|
33669
33737
|
if (a.isDirectory()) {
|
|
33670
33738
|
if (t.type === "Directory") {
|
|
33671
33739
|
let l = this.chmod && t.mode && (a.mode & 4095) !== t.mode, c = (d) => this[P](d ?? null, t, i);
|
|
33672
|
-
return l ?
|
|
33740
|
+
return l ? u__namespace.default.chmod(String(t.absolute), Number(t.mode), c) : c();
|
|
33673
33741
|
}
|
|
33674
|
-
if (t.absolute !== this.cwd) return
|
|
33742
|
+
if (t.absolute !== this.cwd) return u__namespace.default.rmdir(String(t.absolute), (l) => this[P](l ?? null, t, i));
|
|
33675
33743
|
}
|
|
33676
33744
|
if (t.absolute === this.cwd) return this[P](null, t, i);
|
|
33677
|
-
|
|
33745
|
+
mo(String(t.absolute), (l) => this[P](l ?? null, t, i));
|
|
33678
33746
|
});
|
|
33679
33747
|
};
|
|
33680
33748
|
this[Oe] ? n() : r();
|
|
@@ -33699,7 +33767,7 @@ var Xt = class extends rt {
|
|
|
33699
33767
|
}
|
|
33700
33768
|
}
|
|
33701
33769
|
[gi](t, e, i, r) {
|
|
33702
|
-
|
|
33770
|
+
u__namespace.default[i](e, String(t.absolute), (n) => {
|
|
33703
33771
|
n ? this[O](n, t) : (this[$t](), t.resume()), r();
|
|
33704
33772
|
});
|
|
33705
33773
|
}
|
|
@@ -33730,17 +33798,17 @@ var xe = class extends Xt {
|
|
|
33730
33798
|
if (o) return this[O](o, t);
|
|
33731
33799
|
}
|
|
33732
33800
|
}
|
|
33733
|
-
let [e, i] = ye(() =>
|
|
33801
|
+
let [e, i] = ye(() => u__namespace.default.lstatSync(String(t.absolute)));
|
|
33734
33802
|
if (i && (this.keep || this.newer && i.mtime > (t.mtime ?? i.mtime))) return this[Ls](t);
|
|
33735
33803
|
if (e || this[Os](t, i)) return this[P](null, t);
|
|
33736
33804
|
if (i.isDirectory()) {
|
|
33737
33805
|
if (t.type === "Directory") {
|
|
33738
33806
|
let o = this.chmod && t.mode && (i.mode & 4095) !== t.mode, [h] = o ? ye(() => {
|
|
33739
|
-
|
|
33807
|
+
u__namespace.default.chmodSync(String(t.absolute), Number(t.mode));
|
|
33740
33808
|
}) : [];
|
|
33741
33809
|
return this[P](h, t);
|
|
33742
33810
|
}
|
|
33743
|
-
let [n] = ye(() =>
|
|
33811
|
+
let [n] = ye(() => u__namespace.default.rmdirSync(String(t.absolute)));
|
|
33744
33812
|
this[P](n, t);
|
|
33745
33813
|
}
|
|
33746
33814
|
let [r] = t.absolute === this.cwd ? [] : ye(() => po(String(t.absolute)));
|
|
@@ -33750,21 +33818,21 @@ var xe = class extends Xt {
|
|
|
33750
33818
|
let i = typeof t.mode == "number" ? t.mode & 4095 : this.fmode, r = (h) => {
|
|
33751
33819
|
let a;
|
|
33752
33820
|
try {
|
|
33753
|
-
|
|
33821
|
+
u__namespace.default.closeSync(n);
|
|
33754
33822
|
} catch (l) {
|
|
33755
33823
|
a = l;
|
|
33756
33824
|
}
|
|
33757
33825
|
(h || a) && this[O](h || a, t), e();
|
|
33758
33826
|
}, n;
|
|
33759
33827
|
try {
|
|
33760
|
-
n =
|
|
33828
|
+
n = u__namespace.default.openSync(String(t.absolute), ms(t.size), i);
|
|
33761
33829
|
} catch (h) {
|
|
33762
33830
|
return r(h);
|
|
33763
33831
|
}
|
|
33764
33832
|
let o = this.transform && this.transform(t) || t;
|
|
33765
33833
|
o !== t && (o.on("error", (h) => this[O](h, t)), t.pipe(o)), o.on("data", (h) => {
|
|
33766
33834
|
try {
|
|
33767
|
-
|
|
33835
|
+
u__namespace.default.writeSync(n, h, 0, h.length);
|
|
33768
33836
|
} catch (a) {
|
|
33769
33837
|
r(a);
|
|
33770
33838
|
}
|
|
@@ -33773,10 +33841,10 @@ var xe = class extends Xt {
|
|
|
33773
33841
|
if (t.mtime && !this.noMtime) {
|
|
33774
33842
|
let a = t.atime || /* @__PURE__ */ new Date(), l = t.mtime;
|
|
33775
33843
|
try {
|
|
33776
|
-
|
|
33844
|
+
u__namespace.default.futimesSync(n, a, l);
|
|
33777
33845
|
} catch (c) {
|
|
33778
33846
|
try {
|
|
33779
|
-
|
|
33847
|
+
u__namespace.default.utimesSync(String(t.absolute), a, l);
|
|
33780
33848
|
} catch {
|
|
33781
33849
|
h = c;
|
|
33782
33850
|
}
|
|
@@ -33785,10 +33853,10 @@ var xe = class extends Xt {
|
|
|
33785
33853
|
if (this[ge](t)) {
|
|
33786
33854
|
let a = this[be](t), l = this[_e](t);
|
|
33787
33855
|
try {
|
|
33788
|
-
|
|
33856
|
+
u__namespace.default.fchownSync(n, Number(a), Number(l));
|
|
33789
33857
|
} catch (c) {
|
|
33790
33858
|
try {
|
|
33791
|
-
|
|
33859
|
+
u__namespace.default.chownSync(String(t.absolute), Number(a), Number(l));
|
|
33792
33860
|
} catch {
|
|
33793
33861
|
h = h || c;
|
|
33794
33862
|
}
|
|
@@ -33804,11 +33872,11 @@ var xe = class extends Xt {
|
|
|
33804
33872
|
return;
|
|
33805
33873
|
}
|
|
33806
33874
|
if (t.mtime && !this.noMtime) try {
|
|
33807
|
-
|
|
33875
|
+
u__namespace.default.utimesSync(String(t.absolute), t.atime || /* @__PURE__ */ new Date(), t.mtime);
|
|
33808
33876
|
} catch {
|
|
33809
33877
|
}
|
|
33810
33878
|
if (this[ge](t)) try {
|
|
33811
|
-
|
|
33879
|
+
u__namespace.default.chownSync(String(t.absolute), Number(this[be](t)), Number(this[_e](t)));
|
|
33812
33880
|
} catch {
|
|
33813
33881
|
}
|
|
33814
33882
|
e(), t.resume();
|
|
@@ -33825,7 +33893,7 @@ var xe = class extends Xt {
|
|
|
33825
33893
|
let o = e;
|
|
33826
33894
|
for (let h of i) {
|
|
33827
33895
|
o = R__namespace.default.resolve(o, h);
|
|
33828
|
-
let [a, l] = ye(() =>
|
|
33896
|
+
let [a, l] = ye(() => u__namespace.default.lstatSync(o));
|
|
33829
33897
|
if (a) return r();
|
|
33830
33898
|
if (l.isSymbolicLink()) return n(new St(o, R__namespace.default.resolve(e, i.join("/"))));
|
|
33831
33899
|
}
|
|
@@ -33834,20 +33902,20 @@ var xe = class extends Xt {
|
|
|
33834
33902
|
[gi](t, e, i, r) {
|
|
33835
33903
|
let n = `${i}Sync`;
|
|
33836
33904
|
try {
|
|
33837
|
-
|
|
33905
|
+
u__namespace.default[n](e, String(t.absolute)), r(), t.resume();
|
|
33838
33906
|
} catch (o) {
|
|
33839
33907
|
return this[O](o, t);
|
|
33840
33908
|
}
|
|
33841
33909
|
}
|
|
33842
33910
|
};
|
|
33843
33911
|
var Eo = (s3) => {
|
|
33844
|
-
let t = new xe(s3), e = s3.file, i =
|
|
33912
|
+
let t = new xe(s3), e = s3.file, i = u__namespace.default.statSync(e), r = s3.maxReadSize || 16 * 1024 * 1024;
|
|
33845
33913
|
new Be(e, { readSize: r, size: i.size }).pipe(t);
|
|
33846
33914
|
};
|
|
33847
33915
|
var wo = (s3, t) => {
|
|
33848
33916
|
let e = new Xt(s3), i = s3.maxReadSize || 16 * 1024 * 1024, r = s3.file;
|
|
33849
33917
|
return new Promise((o, h) => {
|
|
33850
|
-
e.on("error", h), e.on("close", o),
|
|
33918
|
+
e.on("error", h), e.on("close", o), u__namespace.default.stat(r, (a, l) => {
|
|
33851
33919
|
if (a) h(a);
|
|
33852
33920
|
else {
|
|
33853
33921
|
let c = new _t(r, { readSize: i, size: l.size });
|
|
@@ -33863,15 +33931,15 @@ var yo = (s3, t) => {
|
|
|
33863
33931
|
let e = new kt(s3), i = true, r, n;
|
|
33864
33932
|
try {
|
|
33865
33933
|
try {
|
|
33866
|
-
r =
|
|
33934
|
+
r = u__namespace.default.openSync(s3.file, "r+");
|
|
33867
33935
|
} catch (a) {
|
|
33868
|
-
if (a?.code === "ENOENT") r =
|
|
33936
|
+
if (a?.code === "ENOENT") r = u__namespace.default.openSync(s3.file, "w+");
|
|
33869
33937
|
else throw a;
|
|
33870
33938
|
}
|
|
33871
|
-
let o =
|
|
33939
|
+
let o = u__namespace.default.fstatSync(r), h = Buffer.alloc(512);
|
|
33872
33940
|
t: for (n = 0; n < o.size; n += 512) {
|
|
33873
33941
|
for (let c = 0, d = 0; c < 512; c += d) {
|
|
33874
|
-
if (d =
|
|
33942
|
+
if (d = u__namespace.default.readSync(r, h, c, h.length - c, n + c), n === 0 && h[0] === 31 && h[1] === 139) throw new Error("cannot append to compressed archives");
|
|
33875
33943
|
if (!d) break t;
|
|
33876
33944
|
}
|
|
33877
33945
|
let a = new F(h);
|
|
@@ -33883,7 +33951,7 @@ var yo = (s3, t) => {
|
|
|
33883
33951
|
i = false, Ro(s3, e, n, r, t);
|
|
33884
33952
|
} finally {
|
|
33885
33953
|
if (i) try {
|
|
33886
|
-
|
|
33954
|
+
u__namespace.default.closeSync(r);
|
|
33887
33955
|
} catch {
|
|
33888
33956
|
}
|
|
33889
33957
|
}
|
|
@@ -33896,29 +33964,29 @@ var go = (s3, t) => {
|
|
|
33896
33964
|
t = Array.from(t);
|
|
33897
33965
|
let e = new wt(s3), i = (n, o, h) => {
|
|
33898
33966
|
let a = (T, D) => {
|
|
33899
|
-
T ?
|
|
33967
|
+
T ? u__namespace.default.close(n, (E) => h(T)) : h(null, D);
|
|
33900
33968
|
}, l = 0;
|
|
33901
33969
|
if (o === 0) return a(null, 0);
|
|
33902
33970
|
let c = 0, d = Buffer.alloc(512), y = (T, D) => {
|
|
33903
33971
|
if (T || D === void 0) return a(T);
|
|
33904
|
-
if (c += D, c < 512 && D) return
|
|
33972
|
+
if (c += D, c < 512 && D) return u__namespace.default.read(n, d, c, d.length - c, l + c, y);
|
|
33905
33973
|
if (l === 0 && d[0] === 31 && d[1] === 139) return a(new Error("cannot append to compressed archives"));
|
|
33906
33974
|
if (c < 512) return a(null, l);
|
|
33907
33975
|
let E = new F(d);
|
|
33908
33976
|
if (!E.cksumValid) return a(null, l);
|
|
33909
33977
|
let x = 512 * Math.ceil((E.size ?? 0) / 512);
|
|
33910
33978
|
if (l + x + 512 > o || (l += x + 512, l >= o)) return a(null, l);
|
|
33911
|
-
s3.mtimeCache && E.mtime && s3.mtimeCache.set(String(E.path), E.mtime), c = 0,
|
|
33979
|
+
s3.mtimeCache && E.mtime && s3.mtimeCache.set(String(E.path), E.mtime), c = 0, u__namespace.default.read(n, d, 0, 512, l, y);
|
|
33912
33980
|
};
|
|
33913
|
-
|
|
33981
|
+
u__namespace.default.read(n, d, 0, 512, l, y);
|
|
33914
33982
|
};
|
|
33915
33983
|
return new Promise((n, o) => {
|
|
33916
33984
|
e.on("error", o);
|
|
33917
33985
|
let h = "r+", a = (l, c) => {
|
|
33918
|
-
if (l && l.code === "ENOENT" && h === "r+") return h = "w+",
|
|
33986
|
+
if (l && l.code === "ENOENT" && h === "r+") return h = "w+", u__namespace.default.open(s3.file, h, a);
|
|
33919
33987
|
if (l || !c) return o(l);
|
|
33920
|
-
|
|
33921
|
-
if (d) return
|
|
33988
|
+
u__namespace.default.fstat(c, (d, y) => {
|
|
33989
|
+
if (d) return u__namespace.default.close(c, () => o(d));
|
|
33922
33990
|
i(c, y.size, (T, D) => {
|
|
33923
33991
|
if (T) return o(T);
|
|
33924
33992
|
let E = new et(s3.file, { fd: c, start: D });
|
|
@@ -33926,7 +33994,7 @@ var go = (s3, t) => {
|
|
|
33926
33994
|
});
|
|
33927
33995
|
});
|
|
33928
33996
|
};
|
|
33929
|
-
|
|
33997
|
+
u__namespace.default.open(s3.file, h, a);
|
|
33930
33998
|
});
|
|
33931
33999
|
};
|
|
33932
34000
|
var bo = (s3, t) => {
|