@foldkit/devtools-mcp 0.15.0 → 0.16.1-canary.0ad2f3984e36

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.
Files changed (3) hide show
  1. package/README.md +16 -16
  2. package/dist/server.js +404 -155
  3. package/package.json +5 -5
package/dist/server.js CHANGED
@@ -1208,8 +1208,8 @@ var require_util = __commonJS({
1208
1208
  })(Type || (exports.Type = Type = {}));
1209
1209
  function getErrorPath(dataProp, dataPropType, jsPropertySyntax) {
1210
1210
  if (dataProp instanceof codegen_1.Name) {
1211
- const isNumber2 = dataPropType === Type.Num;
1212
- return jsPropertySyntax ? isNumber2 ? (0, codegen_1._)`"[" + ${dataProp} + "]"` : (0, codegen_1._)`"['" + ${dataProp} + "']"` : isNumber2 ? (0, codegen_1._)`"/" + ${dataProp}` : (0, codegen_1._)`"/" + ${dataProp}.replace(/~/g, "~0").replace(/\\//g, "~1")`;
1211
+ const isNumber3 = dataPropType === Type.Num;
1212
+ return jsPropertySyntax ? isNumber3 ? (0, codegen_1._)`"[" + ${dataProp} + "]"` : (0, codegen_1._)`"['" + ${dataProp} + "']"` : isNumber3 ? (0, codegen_1._)`"/" + ${dataProp}` : (0, codegen_1._)`"/" + ${dataProp}.replace(/~/g, "~0").replace(/\\//g, "~1")`;
1213
1213
  }
1214
1214
  return jsPropertySyntax ? (0, codegen_1.getProperty)(dataProp).toString() : "/" + escapeJsonPointer(dataProp);
1215
1215
  }
@@ -2991,7 +2991,7 @@ var require_compile = __commonJS({
2991
2991
  const schOrFunc = root.refs[ref];
2992
2992
  if (schOrFunc)
2993
2993
  return schOrFunc;
2994
- let _sch = resolve2.call(this, root, ref);
2994
+ let _sch = resolve3.call(this, root, ref);
2995
2995
  if (_sch === void 0) {
2996
2996
  const schema = (_a2 = root.localRefs) === null || _a2 === void 0 ? void 0 : _a2[ref];
2997
2997
  const { schemaId } = this.opts;
@@ -3018,7 +3018,7 @@ var require_compile = __commonJS({
3018
3018
  function sameSchemaEnv(s1, s2) {
3019
3019
  return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId;
3020
3020
  }
3021
- function resolve2(root, ref) {
3021
+ function resolve3(root, ref) {
3022
3022
  let sch;
3023
3023
  while (typeof (sch = this.refs[ref]) == "string")
3024
3024
  ref = sch;
@@ -3649,7 +3649,7 @@ var require_fast_uri = __commonJS({
3649
3649
  }
3650
3650
  return uri;
3651
3651
  }
3652
- function resolve2(baseURI, relativeURI, options) {
3652
+ function resolve3(baseURI, relativeURI, options) {
3653
3653
  const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
3654
3654
  const resolved = resolveComponent(parse4(baseURI, schemelessOptions), parse4(relativeURI, schemelessOptions), schemelessOptions, true);
3655
3655
  schemelessOptions.skipEscape = true;
@@ -3907,7 +3907,7 @@ var require_fast_uri = __commonJS({
3907
3907
  var fastUri = {
3908
3908
  SCHEMES,
3909
3909
  normalize: normalize2,
3910
- resolve: resolve2,
3910
+ resolve: resolve3,
3911
3911
  resolveComponent,
3912
3912
  equal,
3913
3913
  serialize,
@@ -10575,7 +10575,7 @@ var require_websocket_server = __commonJS({
10575
10575
  }
10576
10576
  });
10577
10577
 
10578
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Pipeable.js
10578
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Pipeable.js
10579
10579
  var pipeArguments = (self, args2) => {
10580
10580
  switch (args2.length) {
10581
10581
  case 0:
@@ -10619,7 +10619,7 @@ var Class = /* @__PURE__ */ (function() {
10619
10619
  return PipeableBase;
10620
10620
  })();
10621
10621
 
10622
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Function.js
10622
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Function.js
10623
10623
  var dual = function(arity, body) {
10624
10624
  if (typeof arity === "function") {
10625
10625
  return function() {
@@ -10692,7 +10692,7 @@ function memoizeIdempotent(f) {
10692
10692
  };
10693
10693
  }
10694
10694
 
10695
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Array.js
10695
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Array.js
10696
10696
  var Array_exports = {};
10697
10697
  __export(Array_exports, {
10698
10698
  Array: () => Array2,
@@ -10830,7 +10830,7 @@ __export(Array_exports, {
10830
10830
  zipWith: () => zipWith2
10831
10831
  });
10832
10832
 
10833
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/equal.js
10833
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/internal/equal.js
10834
10834
  var getAllObjectKeys = (obj) => {
10835
10835
  const keys4 = new Set(Reflect.ownKeys(obj));
10836
10836
  if (obj.constructor === Object) return keys4;
@@ -10853,7 +10853,7 @@ var getAllObjectKeys = (obj) => {
10853
10853
  };
10854
10854
  var byReferenceInstances = /* @__PURE__ */ new WeakSet();
10855
10855
 
10856
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Predicate.js
10856
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Predicate.js
10857
10857
  function isString(input) {
10858
10858
  return typeof input === "string";
10859
10859
  }
@@ -10911,7 +10911,7 @@ function isIterable(input) {
10911
10911
  return hasProperty(input, Symbol.iterator) || isString(input);
10912
10912
  }
10913
10913
 
10914
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Hash.js
10914
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Hash.js
10915
10915
  var symbol = "~effect/interfaces/Hash";
10916
10916
  var hash = (self) => {
10917
10917
  switch (typeof self) {
@@ -11035,7 +11035,7 @@ function withVisitedTracking(obj, fn3) {
11035
11035
  return result5;
11036
11036
  }
11037
11037
 
11038
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Equal.js
11038
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Equal.js
11039
11039
  var symbol2 = "~effect/interfaces/Equal";
11040
11040
  function equals() {
11041
11041
  if (arguments.length === 1) {
@@ -11232,7 +11232,7 @@ var byReferenceUnsafe = (obj) => {
11232
11232
  return obj;
11233
11233
  };
11234
11234
 
11235
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Reducer.js
11235
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Reducer.js
11236
11236
  function make(combine2, initialValue, combineAll2) {
11237
11237
  return {
11238
11238
  combine: combine2,
@@ -11247,7 +11247,7 @@ function make(combine2, initialValue, combineAll2) {
11247
11247
  };
11248
11248
  }
11249
11249
 
11250
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Equivalence.js
11250
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Equivalence.js
11251
11251
  var make2 = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
11252
11252
  var isStrictEquivalent = (x, y) => x === y;
11253
11253
  var strictEqual = () => isStrictEquivalent;
@@ -11261,10 +11261,10 @@ function Array_(item) {
11261
11261
  });
11262
11262
  }
11263
11263
 
11264
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/array.js
11264
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/internal/array.js
11265
11265
  var isArrayNonEmpty = (self) => self.length > 0;
11266
11266
 
11267
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/doNotation.js
11267
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/internal/doNotation.js
11268
11268
  var let_ = (map14) => dual(3, (self, name, f) => map14(self, (a) => ({
11269
11269
  ...a,
11270
11270
  [name]: f(a)
@@ -11277,7 +11277,7 @@ var bind = (map14, flatMap8) => dual(3, (self, name, f) => flatMap8(self, (a) =>
11277
11277
  [name]: b
11278
11278
  }))));
11279
11279
 
11280
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/record.js
11280
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/internal/record.js
11281
11281
  function assignProperty(self, key, value5) {
11282
11282
  if (key === "__proto__") {
11283
11283
  Object.defineProperty(self, key, {
@@ -11299,7 +11299,7 @@ function assignProperties(self, source) {
11299
11299
  }
11300
11300
  }
11301
11301
 
11302
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Option.js
11302
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Option.js
11303
11303
  var Option_exports = {};
11304
11304
  __export(Option_exports, {
11305
11305
  Do: () => Do,
@@ -11364,7 +11364,7 @@ __export(Option_exports, {
11364
11364
  zipWith: () => zipWith
11365
11365
  });
11366
11366
 
11367
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Combiner.js
11367
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Combiner.js
11368
11368
  function make3(combine2) {
11369
11369
  return {
11370
11370
  combine: combine2
@@ -11377,7 +11377,7 @@ function max(order) {
11377
11377
  return make3((self, that) => order(self, that) === 1 ? self : that);
11378
11378
  }
11379
11379
 
11380
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Redactable.js
11380
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Redactable.js
11381
11381
  var symbolRedactable = /* @__PURE__ */ Symbol.for("~effect/Redactable");
11382
11382
  var isRedactable = (u) => hasProperty(u, symbolRedactable);
11383
11383
  function redact(u) {
@@ -11399,7 +11399,7 @@ var emptyContext = {
11399
11399
  }
11400
11400
  };
11401
11401
 
11402
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Formatter.js
11402
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Formatter.js
11403
11403
  function format(input, options) {
11404
11404
  const space = options?.space ?? 0;
11405
11405
  const ancestors = /* @__PURE__ */ new WeakSet();
@@ -11500,7 +11500,7 @@ function formatJson(input, options) {
11500
11500
  }, options?.space) ?? "null";
11501
11501
  }
11502
11502
 
11503
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Inspectable.js
11503
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Inspectable.js
11504
11504
  var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
11505
11505
  var toJson = (input) => {
11506
11506
  try {
@@ -11567,7 +11567,7 @@ var Class2 = class {
11567
11567
  }
11568
11568
  };
11569
11569
 
11570
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Utils.js
11570
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Utils.js
11571
11571
  var SingleShotGen = class _SingleShotGen {
11572
11572
  called = false;
11573
11573
  self;
@@ -11627,7 +11627,7 @@ var pickInternalCall = () => {
11627
11627
  };
11628
11628
  var internalCall = /* @__PURE__ */ pickInternalCall();
11629
11629
 
11630
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/core.js
11630
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/internal/core.js
11631
11631
  var EffectTypeId = `~effect/Effect`;
11632
11632
  var ExitTypeId = `~effect/Exit`;
11633
11633
  var effectVariance = {
@@ -11988,7 +11988,7 @@ var done = (value5) => {
11988
11988
  return exitFail(Done(value5));
11989
11989
  };
11990
11990
 
11991
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/option.js
11991
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/internal/option.js
11992
11992
  var TypeId = "~effect/data/Option";
11993
11993
  var CommonProto = {
11994
11994
  [TypeId]: {
@@ -12054,7 +12054,7 @@ var some = (value5) => {
12054
12054
  return a;
12055
12055
  };
12056
12056
 
12057
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/result.js
12057
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/internal/result.js
12058
12058
  var TypeId2 = "~effect/data/Result";
12059
12059
  var CommonProto2 = {
12060
12060
  [TypeId2]: {
@@ -12124,7 +12124,7 @@ var getFailure = (self) => isSuccess(self) ? none : some(self.failure);
12124
12124
  var getSuccess = (self) => isFailure(self) ? none : some(self.success);
12125
12125
  var fromOption = /* @__PURE__ */ dual(2, (self, onNone) => isNone(self) ? fail(onNone()) : succeed(self.value));
12126
12126
 
12127
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Order.js
12127
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Order.js
12128
12128
  function make4(compare) {
12129
12129
  return (self, that) => self === that ? 0 : compare(self, that);
12130
12130
  }
@@ -12172,7 +12172,7 @@ var max2 = (O) => dual(2, (self, that) => self === that || O(self, that) > -1 ?
12172
12172
  var clamp = (O) => dual(2, (self, options) => min2(O)(options.maximum, max2(O)(options.minimum, self)));
12173
12173
  var isBetween = (O) => dual(2, (self, options) => !isLessThan(O)(self, options.minimum) && !isGreaterThan(O)(self, options.maximum));
12174
12174
 
12175
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Option.js
12175
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Option.js
12176
12176
  var none2 = () => none;
12177
12177
  var some2 = some;
12178
12178
  var isOption2 = isOption;
@@ -12350,7 +12350,7 @@ function makeReducerFailFast(reducer2) {
12350
12350
  });
12351
12351
  }
12352
12352
 
12353
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Result.js
12353
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Result.js
12354
12354
  var succeed2 = succeed;
12355
12355
  var fail2 = fail;
12356
12356
  var fromOption2 = fromOption;
@@ -12407,10 +12407,10 @@ var all2 = (input) => {
12407
12407
  return succeed2(out);
12408
12408
  };
12409
12409
 
12410
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Tuple.js
12410
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Tuple.js
12411
12411
  var make5 = (...elements) => elements;
12412
12412
 
12413
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Iterable.js
12413
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Iterable.js
12414
12414
  var findFirst = /* @__PURE__ */ dual(2, (self, f) => {
12415
12415
  let i = 0;
12416
12416
  for (const a of self) {
@@ -12453,7 +12453,7 @@ var filter2 = /* @__PURE__ */ dual(2, (self, predicate) => ({
12453
12453
  }
12454
12454
  }));
12455
12455
 
12456
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Record.js
12456
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Record.js
12457
12457
  var collect = /* @__PURE__ */ dual(2, (self, f) => {
12458
12458
  const out = [];
12459
12459
  for (const key of keys(self)) {
@@ -12473,7 +12473,7 @@ var map3 = /* @__PURE__ */ dual(2, (self, f) => {
12473
12473
  });
12474
12474
  var keys = (self) => Object.keys(self);
12475
12475
 
12476
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Array.js
12476
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Array.js
12477
12477
  var Array2 = globalThis.Array;
12478
12478
  var make6 = (...elements) => elements;
12479
12479
  var allocate = (n) => new Array2(n);
@@ -13178,7 +13178,7 @@ var countBy = /* @__PURE__ */ dual(2, (self, f) => {
13178
13178
  return count2;
13179
13179
  });
13180
13180
 
13181
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/BigDecimal.js
13181
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/BigDecimal.js
13182
13182
  var FINITE_INT_REGEXP = /^[+-]?\d+$/;
13183
13183
  var TypeId3 = "~effect/BigDecimal";
13184
13184
  var BigDecimalProto = {
@@ -13407,17 +13407,153 @@ var floor = /* @__PURE__ */ dual(isBigDecimalArgs, (self, scale2 = 0) => {
13407
13407
  return truncated;
13408
13408
  });
13409
13409
 
13410
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Boolean.js
13410
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Boolean.js
13411
13411
  var Boolean2 = globalThis.Boolean;
13412
13412
  var ReducerOr = /* @__PURE__ */ make((a, b) => a || b, false);
13413
13413
 
13414
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Effectable.js
13414
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/SchemaAST.js
13415
+ var SchemaAST_exports = {};
13416
+ __export(SchemaAST_exports, {
13417
+ Any: () => Any,
13418
+ Arrays: () => Arrays,
13419
+ Base: () => Base2,
13420
+ BigInt: () => BigInt4,
13421
+ Boolean: () => Boolean3,
13422
+ Context: () => Context,
13423
+ Declaration: () => Declaration,
13424
+ Enum: () => Enum,
13425
+ FINITE_PATTERN: () => FINITE_PATTERN,
13426
+ Filter: () => Filter2,
13427
+ FilterGroup: () => FilterGroup,
13428
+ IndexSignature: () => IndexSignature,
13429
+ Json: () => Json,
13430
+ Link: () => Link,
13431
+ Literal: () => Literal,
13432
+ MutableJson: () => MutableJson,
13433
+ Never: () => Never,
13434
+ Null: () => Null,
13435
+ Number: () => Number5,
13436
+ ObjectKeyword: () => ObjectKeyword,
13437
+ Objects: () => Objects,
13438
+ PropertySignature: () => PropertySignature,
13439
+ STRING_PATTERN: () => STRING_PATTERN,
13440
+ String: () => String4,
13441
+ Suspend: () => Suspend,
13442
+ Symbol: () => Symbol2,
13443
+ TemplateLiteral: () => TemplateLiteral,
13444
+ Undefined: () => Undefined,
13445
+ Union: () => Union,
13446
+ UniqueSymbol: () => UniqueSymbol,
13447
+ Unknown: () => Unknown,
13448
+ Void: () => Void,
13449
+ annotate: () => annotate,
13450
+ annotateKey: () => annotateKey,
13451
+ any: () => any,
13452
+ appendChecks: () => appendChecks,
13453
+ applyToLastLink: () => applyToLastLink,
13454
+ applyToSelfOrLastLinkEncoding: () => applyToSelfOrLastLinkEncoding,
13455
+ applyToSelfOrLastLinkEncodingIdempotent: () => applyToSelfOrLastLinkEncodingIdempotent,
13456
+ bigInt: () => bigInt,
13457
+ bigIntString: () => bigIntString,
13458
+ boolean: () => boolean,
13459
+ brand: () => brand,
13460
+ collectIssues: () => collectIssues,
13461
+ collectSentinels: () => collectSentinels,
13462
+ containsUndefined: () => containsUndefined,
13463
+ decodeTo: () => decodeTo,
13464
+ defaultParseOptions: () => defaultParseOptions,
13465
+ enumsToLiterals: () => enumsToLiterals,
13466
+ finite: () => finite,
13467
+ flip: () => flip3,
13468
+ getAST: () => getAST,
13469
+ getCandidates: () => getCandidates,
13470
+ getConstructorDescriptor: () => getConstructorDescriptor,
13471
+ getContextOwner: () => getContextOwner,
13472
+ getIndexSignatureKeys: () => getIndexSignatureKeys,
13473
+ getLastEncoding: () => getLastEncoding,
13474
+ isAST: () => isAST,
13475
+ isAny: () => isAny,
13476
+ isArrays: () => isArrays,
13477
+ isBigInt: () => isBigInt2,
13478
+ isBoolean: () => isBoolean2,
13479
+ isDeclaration: () => isDeclaration,
13480
+ isEnum: () => isEnum,
13481
+ isFinite: () => isFinite2,
13482
+ isJson: () => isJson,
13483
+ isLiteral: () => isLiteral,
13484
+ isMutable: () => isMutable,
13485
+ isNever: () => isNever2,
13486
+ isNull: () => isNull2,
13487
+ isNumber: () => isNumber2,
13488
+ isObjectKeyword: () => isObjectKeyword2,
13489
+ isObjects: () => isObjects,
13490
+ isOptional: () => isOptional,
13491
+ isPattern: () => isPattern,
13492
+ isString: () => isString2,
13493
+ isStringBigInt: () => isStringBigInt,
13494
+ isStringFinite: () => isStringFinite,
13495
+ isStringSymbol: () => isStringSymbol,
13496
+ isStringTree: () => isStringTree,
13497
+ isSuspend: () => isSuspend,
13498
+ isSymbol: () => isSymbol2,
13499
+ isTemplateLiteral: () => isTemplateLiteral,
13500
+ isUndefined: () => isUndefined2,
13501
+ isUnion: () => isUnion,
13502
+ isUniqueSymbol: () => isUniqueSymbol,
13503
+ isUnknown: () => isUnknown2,
13504
+ isVoid: () => isVoid,
13505
+ makeFilter: () => makeFilter,
13506
+ makeFilterByGuard: () => makeFilterByGuard,
13507
+ mapLink: () => mapLink,
13508
+ mapOrSame: () => mapOrSame,
13509
+ memoizeThunk: () => memoizeThunk,
13510
+ middlewareDecoding: () => middlewareDecoding,
13511
+ middlewareEncoding: () => middlewareEncoding,
13512
+ mutableKey: () => mutableKey,
13513
+ never: () => never3,
13514
+ null: () => null_,
13515
+ number: () => number2,
13516
+ objectKeyword: () => objectKeyword,
13517
+ objectKeywordToJson: () => objectKeywordToJson,
13518
+ optional: () => optional,
13519
+ optionalKey: () => optionalKey,
13520
+ parameterFromString: () => parameterFromString,
13521
+ record: () => record,
13522
+ replaceChecks: () => replaceChecks,
13523
+ replaceContext: () => replaceContext,
13524
+ replaceContextLastLink: () => replaceContextLastLink,
13525
+ replaceEncoding: () => replaceEncoding,
13526
+ resolve: () => resolve2,
13527
+ resolveAt: () => resolveAt2,
13528
+ resolveDescription: () => resolveDescription2,
13529
+ resolveIdentifier: () => resolveIdentifier2,
13530
+ resolveTitle: () => resolveTitle2,
13531
+ runChecks: () => runChecks,
13532
+ string: () => string2,
13533
+ struct: () => struct,
13534
+ structWithRest: () => structWithRest,
13535
+ symbol: () => symbol3,
13536
+ symbolString: () => symbolString,
13537
+ toEncoded: () => toEncoded,
13538
+ toType: () => toType,
13539
+ tuple: () => tuple,
13540
+ tupleWithRest: () => tupleWithRest,
13541
+ undefined: () => undefined_3,
13542
+ union: () => union2,
13543
+ unknown: () => unknown,
13544
+ unknownToJson: () => unknownToJson,
13545
+ unknownToStringTree: () => unknownToStringTree,
13546
+ void: () => void_5,
13547
+ withConstructorDefault: () => withConstructorDefault
13548
+ });
13549
+
13550
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Effectable.js
13415
13551
  var Prototype2 = (options) => makePrimitiveProto({
13416
13552
  op: options.label,
13417
13553
  [evaluate]: options.evaluate
13418
13554
  });
13419
13555
 
13420
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Context.js
13556
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Context.js
13421
13557
  var ServiceTypeId = "~effect/Context/Service";
13422
13558
  var Service = function() {
13423
13559
  function KeyClass() {
@@ -13553,20 +13689,21 @@ var isReference = (u) => !!u[ReferenceTypeId];
13553
13689
  var empty2 = () => emptyContext2;
13554
13690
  var emptyContext2 = /* @__PURE__ */ makeUnsafe(/* @__PURE__ */ new Map());
13555
13691
  var make8 = (key, service3) => makeUnsafe(/* @__PURE__ */ new Map([[key.key, service3]]));
13556
- var add = /* @__PURE__ */ dual(3, (self, key, service3) => {
13692
+ var add = /* @__PURE__ */ dual(3, (self, key, service3) => addUnsafe(self, key.key, service3));
13693
+ var addUnsafe = (self, key, service3) => {
13557
13694
  const impl = self;
13558
- const cacheRoot = cacheKeys.has(key.key) ? void 0 : impl.cacheRoot;
13695
+ const cacheRoot = cacheKeys.has(key) ? void 0 : impl.cacheRoot;
13559
13696
  if (impl.depth >= MaxDepth) {
13560
13697
  const map14 = new Map(impl.mapUnsafe);
13561
- map14.set(key.key, service3);
13698
+ map14.set(key, service3);
13562
13699
  return makeImpl(cacheRoot, map14, void 0, 0);
13563
13700
  }
13564
13701
  return makeImpl(cacheRoot, impl.base, {
13565
- key: key.key,
13702
+ key,
13566
13703
  value: service3,
13567
13704
  parent: impl.overlay
13568
13705
  }, impl.depth + 1);
13569
- });
13706
+ };
13570
13707
  var getOrUndefined2 = /* @__PURE__ */ dual(2, (self, key) => getOrUndefinedUnsafe(self, key.key));
13571
13708
  var getOrUndefinedUnsafe = (self, key) => {
13572
13709
  const value5 = lookup(self, key);
@@ -13618,7 +13755,7 @@ var mergeAll = (...ctxs) => {
13618
13755
  };
13619
13756
  var Reference = Service;
13620
13757
 
13621
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Duration.js
13758
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Duration.js
13622
13759
  var Duration_exports = {};
13623
13760
  __export(Duration_exports, {
13624
13761
  CombinerMax: () => CombinerMax,
@@ -14206,7 +14343,7 @@ var ReducerSum = /* @__PURE__ */ make(sum2, zero2);
14206
14343
  var CombinerMax = /* @__PURE__ */ max(Order2);
14207
14344
  var CombinerMin = /* @__PURE__ */ min(Order2);
14208
14345
 
14209
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Filter.js
14346
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Filter.js
14210
14347
  var composePassthrough = /* @__PURE__ */ dual(2, (left, right) => (input) => {
14211
14348
  const leftOut = left(input);
14212
14349
  if (isFailure2(leftOut)) return fail2(input);
@@ -14215,7 +14352,7 @@ var composePassthrough = /* @__PURE__ */ dual(2, (left, right) => (input) => {
14215
14352
  return rightOut;
14216
14353
  });
14217
14354
 
14218
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Scheduler.js
14355
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Scheduler.js
14219
14356
  var Scheduler = /* @__PURE__ */ Reference("effect/Scheduler", {
14220
14357
  fiberCached: true,
14221
14358
  defaultValue: () => new MixedScheduler()
@@ -14352,7 +14489,7 @@ var PreventSchedulerYield = /* @__PURE__ */ Reference("effect/Scheduler/PreventS
14352
14489
  defaultValue: () => false
14353
14490
  });
14354
14491
 
14355
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Tracer.js
14492
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Tracer.js
14356
14493
  var ParentSpanKey = "effect/Tracer/ParentSpan";
14357
14494
  var ParentSpan = class extends (/* @__PURE__ */ Service()(ParentSpanKey, {
14358
14495
  fiberCached: true
@@ -14435,10 +14572,10 @@ var randomHexString = /* @__PURE__ */ (function() {
14435
14572
  };
14436
14573
  })();
14437
14574
 
14438
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/metric.js
14575
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/internal/metric.js
14439
14576
  var FiberRuntimeMetricsKey = "effect/observability/Metric/FiberRuntimeMetricsKey";
14440
14577
 
14441
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/references.js
14578
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/internal/references.js
14442
14579
  var CurrentErrorReporters = /* @__PURE__ */ Reference("effect/ErrorReporter/CurrentErrorReporters", {
14443
14580
  defaultValue: () => /* @__PURE__ */ new Set()
14444
14581
  });
@@ -14473,7 +14610,7 @@ var CurrentLogSpans = /* @__PURE__ */ Reference("effect/References/CurrentLogSpa
14473
14610
  defaultValue: () => []
14474
14611
  });
14475
14612
 
14476
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/stackTraceLimit.js
14613
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/internal/stackTraceLimit.js
14477
14614
  var isStackTraceLimitWritable = () => {
14478
14615
  const desc = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit");
14479
14616
  if (desc === void 0) {
@@ -14490,7 +14627,7 @@ var setStackTraceLimit = (value5) => {
14490
14627
  }
14491
14628
  };
14492
14629
 
14493
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/tracer.js
14630
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/internal/tracer.js
14494
14631
  var addSpanStackTrace = (options) => {
14495
14632
  if (options?.captureStackTrace === false) {
14496
14633
  return options;
@@ -14521,7 +14658,7 @@ var makeStackCleaner = (line) => (stack) => {
14521
14658
  };
14522
14659
  var spanCleaner = /* @__PURE__ */ makeStackCleaner(3);
14523
14660
 
14524
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/effect.js
14661
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/internal/effect.js
14525
14662
  var Interrupt = class extends ReasonBase {
14526
14663
  fiberId;
14527
14664
  constructor(fiberId3, annotations = constEmptyAnnotations) {
@@ -15501,7 +15638,7 @@ var exitFindErrorOption = (self) => {
15501
15638
  };
15502
15639
  var service = (service3) => service3;
15503
15640
  var serviceOption = (service3) => withFiber((fiber3) => succeed3(getOption(fiber3.context, service3)));
15504
- var serviceOptional = (service3) => withFiber((fiber3) => fiber3.context.mapUnsafe.has(service3.key) ? succeed3(getUnsafe2(fiber3.context, service3)) : fail3(new NoSuchElementError()));
15641
+ var serviceOptional = (service3) => withFiber((fiber3) => fromOption4(getOption(fiber3.context, service3)));
15505
15642
  var updateContext = /* @__PURE__ */ dual(2, (self, f) => withFiber((fiber3) => {
15506
15643
  const prevContext = fiber3.context;
15507
15644
  const nextContext = f(prevContext);
@@ -15549,11 +15686,7 @@ var provideService = function() {
15549
15686
  }
15550
15687
  return dual(3, (self, service3, impl) => provideServiceImpl(self, service3, impl)).apply(this, arguments);
15551
15688
  };
15552
- var provideServiceImpl = (self, service3, implementation) => updateContext(self, (s) => {
15553
- const prev = s.mapUnsafe.get(service3.key);
15554
- if (prev === implementation) return s;
15555
- return add(s, service3, implementation);
15556
- });
15689
+ var provideServiceImpl = (self, service3, implementation) => updateContext(self, add(service3, implementation));
15557
15690
  var provideServiceEffect = /* @__PURE__ */ dual(3, (self, service3, acquire) => flatMap4(acquire, (implementation) => provideService(self, service3, implementation)));
15558
15691
  var zip2 = /* @__PURE__ */ dual((args2) => isEffect(args2[1]), (self, that, options) => zipWith3(self, that, (a, a2) => [a, a2], options));
15559
15692
  var zipWith3 = /* @__PURE__ */ dual((args2) => isEffect(args2[1]), (self, that, f, options) => options?.concurrent ? map5(all3([self, that], {
@@ -16459,8 +16592,8 @@ var runPromiseExitWith = (context3) => {
16459
16592
  const runFork3 = runForkWith(context3);
16460
16593
  return (effect, options) => {
16461
16594
  const fiber3 = runFork3(effect, options);
16462
- return new Promise((resolve2) => {
16463
- fiber3.addObserver((exit3) => resolve2(exit3));
16595
+ return new Promise((resolve3) => {
16596
+ fiber3.addObserver((exit3) => resolve3(exit3));
16464
16597
  });
16465
16598
  };
16466
16599
  };
@@ -17086,7 +17219,7 @@ var reportCauseUnsafe = (fiber3, cause, defectsOnly) => {
17086
17219
  reporters.forEach((reporter) => reporter.report(opts));
17087
17220
  };
17088
17221
 
17089
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Cause.js
17222
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Cause.js
17090
17223
  var isCause2 = isCause;
17091
17224
  var isReason = isCauseReason;
17092
17225
  var isFailReason2 = isFailReason;
@@ -17102,7 +17235,7 @@ var isDone2 = isDone;
17102
17235
  var done2 = done;
17103
17236
  var IllegalArgumentError2 = IllegalArgumentError;
17104
17237
 
17105
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Effect.js
17238
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Effect.js
17106
17239
  var Effect_exports = {};
17107
17240
  __export(Effect_exports, {
17108
17241
  Do: () => Do4,
@@ -17334,7 +17467,7 @@ __export(Effect_exports, {
17334
17467
  zipWith: () => zipWith4
17335
17468
  });
17336
17469
 
17337
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Exit.js
17470
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Exit.js
17338
17471
  var Exit_exports = {};
17339
17472
  __export(Exit_exports, {
17340
17473
  asVoid: () => asVoid3,
@@ -17393,7 +17526,7 @@ var getSuccess3 = exitGetSuccess;
17393
17526
  var getCause = exitGetCause;
17394
17527
  var findErrorOption2 = exitFindErrorOption;
17395
17528
 
17396
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Deferred.js
17529
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Deferred.js
17397
17530
  var Deferred_exports = {};
17398
17531
  __export(Deferred_exports, {
17399
17532
  await: () => _await,
@@ -17479,16 +17612,16 @@ var doneUnsafe = (self, effect) => {
17479
17612
  };
17480
17613
  var into = /* @__PURE__ */ dual(2, (self, deferred) => uninterruptibleMask((restore) => flatMap4(exit(restore(self)), (exit3) => done3(deferred, exit3))));
17481
17614
 
17482
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/References.js
17615
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/References.js
17483
17616
  var CurrentLogAnnotations2 = CurrentLogAnnotations;
17484
17617
  var CurrentLogSpans2 = CurrentLogSpans;
17485
17618
 
17486
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Scope.js
17619
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Scope.js
17487
17620
  var makeUnsafe3 = scopeMakeUnsafe;
17488
17621
  var forkUnsafe2 = scopeForkUnsafe;
17489
17622
  var close = scopeClose;
17490
17623
 
17491
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Layer.js
17624
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Layer.js
17492
17625
  var TypeId7 = "~effect/Layer";
17493
17626
  var MemoMapTypeId = "~effect/Layer/MemoMap";
17494
17627
  var memoMapReuse = (entry, scope3) => {
@@ -17583,7 +17716,7 @@ var mergeAll2 = (...layers) => fromBuild((memoMap, scope3) => mergeAllEffect(lay
17583
17716
  var provideWith = (self, that, f) => fromBuild((memoMap, scope3) => flatMap4(Array.isArray(that) ? mergeAllEffect(that, memoMap, scope3) : that.build(memoMap, scope3), (context3) => self.build(memoMap, scope3).pipe(provideContext(context3), map5((merged) => f(merged, context3)))));
17584
17717
  var provide2 = /* @__PURE__ */ dual(2, (self, that) => provideWith(self, that, identity));
17585
17718
 
17586
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/ExecutionPlan.js
17719
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/ExecutionPlan.js
17587
17720
  var TypeId8 = "~effect/ExecutionPlan";
17588
17721
  var Proto2 = {
17589
17722
  [TypeId8]: TypeId8,
@@ -17610,7 +17743,7 @@ var CurrentMetadata = /* @__PURE__ */ Reference("effect/ExecutionPlan/CurrentMet
17610
17743
  })
17611
17744
  });
17612
17745
 
17613
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Schedule.js
17746
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Schedule.js
17614
17747
  var Schedule_exports = {};
17615
17748
  __export(Schedule_exports, {
17616
17749
  CurrentMetadata: () => CurrentMetadata2,
@@ -17646,7 +17779,7 @@ __export(Schedule_exports, {
17646
17779
  windowed: () => windowed
17647
17780
  });
17648
17781
 
17649
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Data.js
17782
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Data.js
17650
17783
  var Class3 = class extends Class {
17651
17784
  constructor(props) {
17652
17785
  super();
@@ -17657,7 +17790,7 @@ var Class3 = class extends Class {
17657
17790
  };
17658
17791
  var TaggedError2 = TaggedError;
17659
17792
 
17660
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/dateTime.js
17793
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/internal/dateTime.js
17661
17794
  var TypeId9 = "~effect/time/DateTime";
17662
17795
  var TimeZoneTypeId = "~effect/time/DateTime/TimeZone";
17663
17796
  var Proto3 = {
@@ -18063,7 +18196,7 @@ var formatIsoOffset = (self) => {
18063
18196
  };
18064
18197
  var formatIsoZoned = (self) => self.zone._tag === "Offset" ? formatIsoOffset(self) : `${formatIsoOffset(self)}[${self.zone.id}]`;
18065
18198
 
18066
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Number.js
18199
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Number.js
18067
18200
  var Number3 = globalThis.Number;
18068
18201
  var Order4 = Number2;
18069
18202
  var remainder = /* @__PURE__ */ dual(2, (self, divisor) => {
@@ -18105,13 +18238,13 @@ function toScientificInteger(n) {
18105
18238
  var ReducerMax = /* @__PURE__ */ make((a, b) => Math.max(a, b), -Infinity);
18106
18239
  var ReducerMin = /* @__PURE__ */ make((a, b) => Math.min(a, b), Infinity);
18107
18240
 
18108
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/String.js
18241
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/String.js
18109
18242
  var String2 = globalThis.String;
18110
18243
  var toLowerCase = (self) => self.toLowerCase();
18111
18244
  var trim = (self) => self.trim();
18112
18245
  var isNonEmpty = (self) => self.length > 0;
18113
18246
 
18114
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Cron.js
18247
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Cron.js
18115
18248
  var TypeId10 = "~effect/time/Cron";
18116
18249
  function toPojo(cron2) {
18117
18250
  const out = {
@@ -18630,7 +18763,7 @@ function aliasOrValue(field, aliases) {
18630
18763
  }
18631
18764
  var decimalRegex = /^\d+$/;
18632
18765
 
18633
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/random.js
18766
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/internal/random.js
18634
18767
  var Random = /* @__PURE__ */ Reference("effect/Random", {
18635
18768
  defaultValue: () => ({
18636
18769
  nextIntUnsafe() {
@@ -18642,7 +18775,7 @@ var Random = /* @__PURE__ */ Reference("effect/Random", {
18642
18775
  })
18643
18776
  });
18644
18777
 
18645
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Pull.js
18778
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Pull.js
18646
18779
  var catchDone = /* @__PURE__ */ dual(2, (effect, f) => catchCauseFilter(effect, filterDoneLeftover, (l) => f(l)));
18647
18780
  var filterDone = /* @__PURE__ */ composePassthrough(findError2, (e) => isDone2(e) ? succeed2(e) : fail2(e));
18648
18781
  var filterDoneLeftover = /* @__PURE__ */ composePassthrough(findError2, (e) => isDone2(e) ? succeed2(e.value) : fail2(e));
@@ -18654,7 +18787,7 @@ var matchEffect2 = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffect(s
18654
18787
  }
18655
18788
  }));
18656
18789
 
18657
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Schedule.js
18790
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Schedule.js
18658
18791
  var TypeId11 = "~effect/Schedule";
18659
18792
  var randomNext = /* @__PURE__ */ Random.useSync((random2) => random2.nextDoubleUnsafe());
18660
18793
  var CurrentMetadata2 = /* @__PURE__ */ Reference("effect/Schedule/CurrentMetadata", {
@@ -18944,11 +19077,11 @@ var constIdentity = /* @__PURE__ */ fromStep(/* @__PURE__ */ succeed3((_now, inp
18944
19077
  var identity_ = () => constIdentity;
18945
19078
  var setInputType = () => (self) => self;
18946
19079
 
18947
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/layer.js
19080
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/internal/layer.js
18948
19081
  var provideLayer = (self, layer, options) => scopedWith((scope3) => flatMap4(options?.local ? buildWithMemoMap(layer, makeMemoMapUnsafe(), scope3) : buildWithScope(layer, scope3), (context3) => provideContext(self, context3)));
18949
19082
  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));
18950
19083
 
18951
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/schedule.js
19084
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/internal/schedule.js
18952
19085
  var repeatOrElse = /* @__PURE__ */ dual(3, (self, schedule2, orElse4) => flatMap4(toStepWithMetadata(schedule2), (step) => {
18953
19086
  let meta3 = CurrentMetadata2.defaultValue();
18954
19087
  return catch_(forever(tap2(flatMap4(suspend(() => provideService(self, CurrentMetadata2, meta3)), step), (meta_) => sync(() => {
@@ -19019,7 +19152,7 @@ var buildFromOptions = (options) => {
19019
19152
  return schedule2;
19020
19153
  };
19021
19154
 
19022
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/executionPlan.js
19155
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/internal/executionPlan.js
19023
19156
  var makeEventEmitter = (onEvent, currentMetadata) => {
19024
19157
  let lastStepIndex = -1;
19025
19158
  let stepAttempt = 0;
@@ -19124,7 +19257,7 @@ var scheduleFromStep = (step, first) => {
19124
19257
  };
19125
19258
  var scheduleOnce = /* @__PURE__ */ recurs(1);
19126
19259
 
19127
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Request.js
19260
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Request.js
19128
19261
  var TypeId12 = "~effect/Request";
19129
19262
  var requestVariance = /* @__PURE__ */ byReferenceUnsafe({
19130
19263
  /* c8 ignore next */
@@ -19140,7 +19273,7 @@ var RequestPrototype = {
19140
19273
  };
19141
19274
  var makeEntry = (options) => options;
19142
19275
 
19143
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/request.js
19276
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/internal/request.js
19144
19277
  var request = /* @__PURE__ */ dual(2, (self, resolver) => {
19145
19278
  const withResolver = (resolver2) => callback((resume) => {
19146
19279
  const entry = addEntry(resolver2, self, resume, getCurrentFiber());
@@ -19250,7 +19383,7 @@ function runBatch(batch) {
19250
19383
  return batch.run;
19251
19384
  }
19252
19385
 
19253
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Metric.js
19386
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Metric.js
19254
19387
  var CurrentMetricAttributesKey = "effect/Metric/CurrentMetricAttributes";
19255
19388
  var CurrentMetricAttributes = /* @__PURE__ */ Reference(CurrentMetricAttributesKey, {
19256
19389
  defaultValue: () => ({})
@@ -19350,7 +19483,7 @@ function attributesToRecord(attributes) {
19350
19483
  return attributes;
19351
19484
  }
19352
19485
 
19353
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Effect.js
19486
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Effect.js
19354
19487
  var TypeId14 = EffectTypeId;
19355
19488
  var isEffect2 = isEffect;
19356
19489
  var all4 = all3;
@@ -19604,10 +19737,11 @@ var trackDuration = /* @__PURE__ */ dual((args2) => isEffect2(args2[0]), (self,
19604
19737
  var Transaction = class extends (/* @__PURE__ */ Service()("effect/Effect/Transaction")) {
19605
19738
  };
19606
19739
  var tx = (effect) => withFiber2((fiber3) => {
19607
- if (fiber3.context.mapUnsafe.has(Transaction.key)) {
19740
+ let state = getOrUndefined2(fiber3.context, Transaction);
19741
+ if (state) {
19608
19742
  return effect;
19609
19743
  }
19610
- const state = {
19744
+ state = {
19611
19745
  journal: /* @__PURE__ */ new Map(),
19612
19746
  retry: false
19613
19747
  };
@@ -19705,7 +19839,7 @@ var flatMapEager2 = flatMapEager;
19705
19839
  var catchEager2 = catchEager;
19706
19840
  var fnUntracedEager2 = fnUntracedEager;
19707
19841
 
19708
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/schema/annotations.js
19842
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/internal/schema/annotations.js
19709
19843
  function resolve(ast) {
19710
19844
  return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
19711
19845
  }
@@ -19720,6 +19854,7 @@ var jsonSchemaAnnotationKeys = ["title", "description", "default", "examples", "
19720
19854
  var resolveIdentifier = /* @__PURE__ */ resolveAt("identifier");
19721
19855
  var resolveIdentifierFallback = /* @__PURE__ */ resolveAt(IDENTIFIER_FALLBACK_KEY);
19722
19856
  var resolveTitle = /* @__PURE__ */ resolveAt("title");
19857
+ var resolveDescription = /* @__PURE__ */ resolveAt("description");
19723
19858
  var resolveBrands = /* @__PURE__ */ resolveAt("brands");
19724
19859
  var getExpected = /* @__PURE__ */ memoize((ast) => {
19725
19860
  const identifier2 = resolve(ast)?.identifier;
@@ -19728,7 +19863,7 @@ var getExpected = /* @__PURE__ */ memoize((ast) => {
19728
19863
  });
19729
19864
  var annotationExcludedKeys = /* @__PURE__ */ new Set([SENTINELS_ANNOTATION_KEY, STRUCTURAL_ANNOTATION_KEY, "representation", "arbitrary", "brands", "toJsonSchema", "toCode", "toArbitrary", "toEquivalence", "toFormatter", "toCodec", "toCodecJson", "toCodecStringTree", "toCodecIso"]);
19730
19865
 
19731
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/schema/parser.js
19866
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/internal/schema/parser.js
19732
19867
  var missing = /* @__PURE__ */ Symbol();
19733
19868
  var succeed7 = succeed4;
19734
19869
  var missingExit = /* @__PURE__ */ succeed7(missing);
@@ -19736,7 +19871,7 @@ var sameExit = /* @__PURE__ */ succeed7(missing);
19736
19871
  var toOption2 = (value5) => value5 === missing ? none2() : some2(value5);
19737
19872
  var fromOptionExit = (option5) => option5._tag === "None" ? missingExit : succeed7(option5.value);
19738
19873
 
19739
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/SchemaIssue.js
19874
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/SchemaIssue.js
19740
19875
  var TypeId15 = "~effect/SchemaIssue/Issue";
19741
19876
  function isIssue(u) {
19742
19877
  return hasProperty(u, TypeId15) && u[TypeId15] === TypeId15;
@@ -20079,7 +20214,7 @@ function findMessage(issue2) {
20079
20214
  if (typeof message === "string") return message;
20080
20215
  }
20081
20216
 
20082
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/schema/cause.js
20217
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/internal/schema/cause.js
20083
20218
  function getSchemaIssue(cause) {
20084
20219
  let issue2;
20085
20220
  for (const reason of cause.reasons) {
@@ -20100,7 +20235,7 @@ function getSchemaIssueOrThrow(cause, message) {
20100
20235
  return issue2;
20101
20236
  }
20102
20237
 
20103
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/DateTime.js
20238
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/DateTime.js
20104
20239
  var isDateTime2 = isDateTime;
20105
20240
  var isTimeZone2 = isTimeZone;
20106
20241
  var isTimeZoneOffset2 = isTimeZoneOffset;
@@ -20124,7 +20259,7 @@ var toEpochMillis2 = toEpochMillis;
20124
20259
  var formatIso2 = formatIso;
20125
20260
  var formatIsoZoned2 = formatIsoZoned;
20126
20261
 
20127
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Encoding.js
20262
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Encoding.js
20128
20263
  var EncodingErrorTypeId = "~effect/encoding/EncodingError";
20129
20264
  var EncodingError = class extends (/* @__PURE__ */ TaggedError2("EncodingError")) {
20130
20265
  /**
@@ -20294,7 +20429,7 @@ var fromHexChar = (byte) => {
20294
20429
  };
20295
20430
  var bytesToHex = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "0a", "0b", "0c", "0d", "0e", "0f", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "1a", "1b", "1c", "1d", "1e", "1f", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "2a", "2b", "2c", "2d", "2e", "2f", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "3a", "3b", "3c", "3d", "3e", "3f", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "4a", "4b", "4c", "4d", "4e", "4f", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "5a", "5b", "5c", "5d", "5e", "5f", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "6a", "6b", "6c", "6d", "6e", "6f", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "7a", "7b", "7c", "7d", "7e", "7f", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "8a", "8b", "8c", "8d", "8e", "8f", "90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "9a", "9b", "9c", "9d", "9e", "9f", "a0", "a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "aa", "ab", "ac", "ad", "ae", "af", "b0", "b1", "b2", "b3", "b4", "b5", "b6", "b7", "b8", "b9", "ba", "bb", "bc", "bd", "be", "bf", "c0", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "ca", "cb", "cc", "cd", "ce", "cf", "d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7", "d8", "d9", "da", "db", "dc", "dd", "de", "df", "e0", "e1", "e2", "e3", "e4", "e5", "e6", "e7", "e8", "e9", "ea", "eb", "ec", "ed", "ee", "ef", "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "fa", "fb", "fc", "fd", "fe", "ff"];
20296
20431
 
20297
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/SchemaGetter.js
20432
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/SchemaGetter.js
20298
20433
  var Getter = class _Getter extends Class {
20299
20434
  run;
20300
20435
  constructor(run2) {
@@ -20581,7 +20716,7 @@ function collectBracketPathEntries(isLeaf) {
20581
20716
  };
20582
20717
  }
20583
20718
 
20584
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/SchemaTransformation.js
20719
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/SchemaTransformation.js
20585
20720
  var Middleware = class _Middleware {
20586
20721
  _tag = "Middleware";
20587
20722
  decode;
@@ -20822,14 +20957,30 @@ var dateTimeZonedFromString = /* @__PURE__ */ transformOrFail2({
20822
20957
  encode: (zoned) => succeed6(formatIsoZoned2(zoned))
20823
20958
  });
20824
20959
 
20825
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/SchemaAST.js
20960
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/SchemaAST.js
20826
20961
  function makeGuard(tag4) {
20827
20962
  return (ast) => ast._tag === tag4;
20828
20963
  }
20964
+ function isAST(u) {
20965
+ return hasProperty(u, TypeId17) && u[TypeId17] === TypeId17;
20966
+ }
20829
20967
  var isDeclaration = /* @__PURE__ */ makeGuard("Declaration");
20968
+ var isNull2 = /* @__PURE__ */ makeGuard("Null");
20969
+ var isUndefined2 = /* @__PURE__ */ makeGuard("Undefined");
20970
+ var isVoid = /* @__PURE__ */ makeGuard("Void");
20830
20971
  var isNever2 = /* @__PURE__ */ makeGuard("Never");
20972
+ var isUnknown2 = /* @__PURE__ */ makeGuard("Unknown");
20973
+ var isAny = /* @__PURE__ */ makeGuard("Any");
20974
+ var isString2 = /* @__PURE__ */ makeGuard("String");
20975
+ var isNumber2 = /* @__PURE__ */ makeGuard("Number");
20976
+ var isBoolean2 = /* @__PURE__ */ makeGuard("Boolean");
20977
+ var isBigInt2 = /* @__PURE__ */ makeGuard("BigInt");
20978
+ var isSymbol2 = /* @__PURE__ */ makeGuard("Symbol");
20831
20979
  var isLiteral = /* @__PURE__ */ makeGuard("Literal");
20832
20980
  var isUniqueSymbol = /* @__PURE__ */ makeGuard("UniqueSymbol");
20981
+ var isObjectKeyword2 = /* @__PURE__ */ makeGuard("ObjectKeyword");
20982
+ var isEnum = /* @__PURE__ */ makeGuard("Enum");
20983
+ var isTemplateLiteral = /* @__PURE__ */ makeGuard("TemplateLiteral");
20833
20984
  var isArrays = /* @__PURE__ */ makeGuard("Arrays");
20834
20985
  var isObjects = /* @__PURE__ */ makeGuard("Objects");
20835
20986
  var isUnion = /* @__PURE__ */ makeGuard("Union");
@@ -22356,6 +22507,12 @@ function applyToLastLink(f) {
22356
22507
  function replaceContextLastLink(ast, context3) {
22357
22508
  return applyToLastLink((ast2) => replaceContext(ast2, context3))(ast);
22358
22509
  }
22510
+ function applyToSelfOrLastLinkEncoding(f) {
22511
+ function out(ast) {
22512
+ return ast.encoding ? replaceEncoding(ast, updateLastLink(ast.encoding, out)) : f(ast);
22513
+ }
22514
+ return memoize(out);
22515
+ }
22359
22516
  function applyToSelfOrLastLinkEncodingIdempotent(f, options) {
22360
22517
  function out(ast) {
22361
22518
  if (ast.encoding) {
@@ -22728,6 +22885,11 @@ function getConstructorDescriptor(ast) {
22728
22885
  const getDescriptor = ast.annotations?.[CONSTRUCTOR_ANNOTATION_KEY];
22729
22886
  return isFunction(getDescriptor) ? getDescriptor(ast.typeParameters) : void 0;
22730
22887
  }
22888
+ var resolve2 = resolve;
22889
+ var resolveAt2 = resolveAt;
22890
+ var resolveIdentifier2 = resolveIdentifier;
22891
+ var resolveTitle2 = resolveTitle;
22892
+ var resolveDescription2 = resolveDescription;
22731
22893
  function isJsonLeaf(u) {
22732
22894
  return u === null || typeof u === "string" || typeof u === "boolean" || typeof u === "number" && globalThis.Number.isFinite(u);
22733
22895
  }
@@ -22812,7 +22974,7 @@ var StringTree = /* @__PURE__ */ new Declaration([], () => (input, ast, options)
22812
22974
  });
22813
22975
  var unknownToStringTree = /* @__PURE__ */ new Link(StringTree, /* @__PURE__ */ passthrough3());
22814
22976
 
22815
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Chunk.js
22977
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Chunk.js
22816
22978
  var TypeId18 = "~effect/collections/Chunk";
22817
22979
  function copy2(src, srcPos, dest, destPos, len) {
22818
22980
  for (let i = srcPos; i < Math.min(src.length, srcPos + len); i++) {
@@ -22996,7 +23158,7 @@ var getUnsafe3 = /* @__PURE__ */ dual(2, (self, index2) => {
22996
23158
  });
22997
23159
  var size = (self) => self.length;
22998
23160
 
22999
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Fiber.js
23161
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Fiber.js
23000
23162
  var Fiber_exports = {};
23001
23163
  __export(Fiber_exports, {
23002
23164
  await: () => await_,
@@ -23023,7 +23185,7 @@ var isFiber = (u) => hasProperty(u, FiberTypeId);
23023
23185
  var getCurrent = getCurrentFiber;
23024
23186
  var runIn = fiberRunIn;
23025
23187
 
23026
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/MutableRef.js
23188
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/MutableRef.js
23027
23189
  var TypeId19 = "~effect/MutableRef";
23028
23190
  var MutableRefProto = {
23029
23191
  [TypeId19]: TypeId19,
@@ -23045,7 +23207,7 @@ var set = /* @__PURE__ */ dual(2, (self, value5) => {
23045
23207
  return self;
23046
23208
  });
23047
23209
 
23048
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Schema.js
23210
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Schema.js
23049
23211
  var Schema_exports = {};
23050
23212
  __export(Schema_exports, {
23051
23213
  Any: () => Any2,
@@ -23395,7 +23557,7 @@ __export(Schema_exports, {
23395
23557
  withDecodingDefaultTypeKey: () => withDecodingDefaultTypeKey
23396
23558
  });
23397
23559
 
23398
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/HashMap.js
23560
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/HashMap.js
23399
23561
  var HashMap_exports = {};
23400
23562
  __export(HashMap_exports, {
23401
23563
  beginMutation: () => beginMutation2,
@@ -23438,7 +23600,7 @@ __export(HashMap_exports, {
23438
23600
  values: () => values2
23439
23601
  });
23440
23602
 
23441
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/hashMap.js
23603
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/internal/hashMap.js
23442
23604
  var HashMapTypeId = "~effect/collections/HashMap";
23443
23605
  var SHIFT = 5;
23444
23606
  var BUCKET_SIZE = 1 << SHIFT;
@@ -24281,7 +24443,7 @@ var every2 = /* @__PURE__ */ dual(2, (self, predicate) => {
24281
24443
  return true;
24282
24444
  });
24283
24445
 
24284
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/HashMap.js
24446
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/HashMap.js
24285
24447
  var isHashMap2 = isHashMap;
24286
24448
  var empty6 = empty5;
24287
24449
  var make18 = make17;
@@ -24321,7 +24483,7 @@ var findFirst6 = findFirst5;
24321
24483
  var some5 = some4;
24322
24484
  var every3 = every2;
24323
24485
 
24324
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/hashSet.js
24486
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/internal/hashSet.js
24325
24487
  var HashSetTypeId = "~effect/collections/HashSet";
24326
24488
  var HashSetProto = {
24327
24489
  [symbol]() {
@@ -24375,12 +24537,12 @@ var every4 = (self, predicate) => {
24375
24537
  return true;
24376
24538
  };
24377
24539
 
24378
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/HashSet.js
24540
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/HashSet.js
24379
24541
  var fromIterable7 = fromIterable6;
24380
24542
  var isHashSet2 = isHashSet;
24381
24543
  var size5 = size4;
24382
24544
 
24383
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/SchemaParser.js
24545
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/SchemaParser.js
24384
24546
  function makeEffect(schema) {
24385
24547
  const parser = runWithCompiler(constructorCompiler, toType(schema.ast));
24386
24548
  return (input, options) => {
@@ -24678,7 +24840,7 @@ function makeParser(ast, compile, compileConstructorDefault2, constructorDefault
24678
24840
  };
24679
24841
  }
24680
24842
 
24681
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/schema/schema.js
24843
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/internal/schema/schema.js
24682
24844
  var TypeId20 = "~effect/Schema/Schema";
24683
24845
  function makeDeclarationReviver(id2, payloadSchema, revive) {
24684
24846
  return {
@@ -24723,7 +24885,7 @@ function make21(ast, options) {
24723
24885
  return self;
24724
24886
  }
24725
24887
 
24726
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Struct.js
24888
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Struct.js
24727
24889
  var pick = /* @__PURE__ */ dual(2, (self, keys4) => {
24728
24890
  return buildStruct(self, (k, v) => keys4.includes(k) ? [k, v] : void 0);
24729
24891
  });
@@ -24766,7 +24928,7 @@ function makeCombiner(combiners, options) {
24766
24928
  });
24767
24929
  }
24768
24930
 
24769
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/UndefinedOr.js
24931
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/UndefinedOr.js
24770
24932
  function makeReducer2(combiner2) {
24771
24933
  return make((self, that) => {
24772
24934
  if (self === void 0) return that;
@@ -24775,7 +24937,7 @@ function makeReducer2(combiner2) {
24775
24937
  }, void 0);
24776
24938
  }
24777
24939
 
24778
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/errors.js
24940
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/internal/errors.js
24779
24941
  function errorWithPath(message, path) {
24780
24942
  if (path.length > 0) {
24781
24943
  message += `
@@ -24784,7 +24946,7 @@ function errorWithPath(message, path) {
24784
24946
  return new Error(message);
24785
24947
  }
24786
24948
 
24787
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/schema/toArbitrary.js
24949
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/internal/schema/toArbitrary.js
24788
24950
  var arbitraryMemoMap = /* @__PURE__ */ new WeakMap();
24789
24951
  var suspendDepthIdentifierMap = /* @__PURE__ */ new WeakMap();
24790
24952
  var emptyRecursionStack = [];
@@ -25446,7 +25608,7 @@ function base(ast, path) {
25446
25608
  }
25447
25609
  }
25448
25610
 
25449
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/schema/toEquivalence.js
25611
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/internal/schema/toEquivalence.js
25450
25612
  var toEquivalence = /* @__PURE__ */ memoize((ast) => {
25451
25613
  return recur2(ast, []);
25452
25614
  });
@@ -25569,7 +25731,7 @@ function recur2(ast, path) {
25569
25731
  }
25570
25732
  }
25571
25733
 
25572
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/JsonPointer.js
25734
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/JsonPointer.js
25573
25735
  function escapeToken(token) {
25574
25736
  return token.replace(/~/g, "~0").replace(/\//g, "~1");
25575
25737
  }
@@ -25577,7 +25739,7 @@ function unescapeToken(token) {
25577
25739
  return token.replace(/~1/g, "/").replace(/~0/g, "~");
25578
25740
  }
25579
25741
 
25580
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/JsonSchema.js
25742
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/JsonSchema.js
25581
25743
  var RE_DEFS = /^#\/\$defs(?=\/|$)/;
25582
25744
  var DRAFT_04_COPY_KEYWORDS = /* @__PURE__ */ new Set(["$ref", "type", "required", "enum", "title", "description", "default", "format", "pattern", "minLength", "maxLength", "minItems", "maxItems", "minProperties", "maxProperties", "multipleOf", "uniqueItems"]);
25583
25745
  var DRAFT_07_COPY_KEYWORDS = /* @__PURE__ */ new Set([...DRAFT_04_COPY_KEYWORDS, "const", "examples", "readOnly", "writeOnly", "minimum", "maximum", "exclusiveMinimum", "exclusiveMaximum"]);
@@ -25692,11 +25854,11 @@ function mapObject(value5, f) {
25692
25854
  return isObject(value5) ? map3(value5, f) : void 0;
25693
25855
  }
25694
25856
 
25695
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/RegExp.js
25857
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/RegExp.js
25696
25858
  var RegExp2 = globalThis.RegExp;
25697
25859
  var escape2 = (string6) => string6.replace(/[/\\^$*+?.()|[\]{}]/g, "\\$&");
25698
25860
 
25699
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/schema/toJsonSchemaDocument.js
25861
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/internal/schema/toJsonSchemaDocument.js
25700
25862
  var jsonSchemaAnnotationExcludedKeys = /* @__PURE__ */ new Set([...annotationExcludedKeys, IDENTIFIER_FALLBACK_KEY, ...jsonSchemaAnnotationKeys]);
25701
25863
  var toRepresentationOptions = {
25702
25864
  isAnonymousReferenceAllowed: (ast) => !isDeclaration(ast)
@@ -26200,7 +26362,7 @@ function toJsonSchemaDocument(document, options) {
26200
26362
  };
26201
26363
  }
26202
26364
 
26203
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/schema/toRepresentation.js
26365
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/internal/schema/toRepresentation.js
26204
26366
  function toRepresentation(ast, options) {
26205
26367
  const {
26206
26368
  references,
@@ -26546,7 +26708,7 @@ function fromASTs(asts, options) {
26546
26708
  }
26547
26709
  }
26548
26710
 
26549
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/JsonPatch.js
26711
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/JsonPatch.js
26550
26712
  function get5(oldValue, newValue) {
26551
26713
  const patches = [];
26552
26714
  getLoop(oldValue, newValue, "", patches);
@@ -26727,7 +26889,7 @@ function rebuildFromStack(stack, newParent) {
26727
26889
  return acc;
26728
26890
  }
26729
26891
 
26730
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Optic.js
26892
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Optic.js
26731
26893
  function makeIso(get7, set6) {
26732
26894
  return make22(primitiveNode("Iso", get7, set6));
26733
26895
  }
@@ -27073,7 +27235,7 @@ function id() {
27073
27235
  return identityIso;
27074
27236
  }
27075
27237
 
27076
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/redacted.js
27238
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/internal/redacted.js
27077
27239
  var redactedRegistry = /* @__PURE__ */ new WeakMap();
27078
27240
  var value = (self) => {
27079
27241
  if (redactedRegistry.has(self)) {
@@ -27083,7 +27245,7 @@ var value = (self) => {
27083
27245
  }
27084
27246
  };
27085
27247
 
27086
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Redacted.js
27248
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Redacted.js
27087
27249
  var TypeId21 = "~effect/data/Redacted";
27088
27250
  var isRedacted = (u) => hasProperty(u, TypeId21);
27089
27251
  var make23 = (value5, options) => {
@@ -27116,7 +27278,7 @@ var Proto4 = {
27116
27278
  var value2 = value;
27117
27279
  var makeEquivalence5 = (isEquivalent) => make2((x, y) => isEquivalent(value2(x), value2(y)));
27118
27280
 
27119
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Schema.js
27281
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Schema.js
27120
27282
  var TypeId22 = TypeId20;
27121
27283
  function declareConstructor() {
27122
27284
  return (typeParameters, run2, annotations) => {
@@ -27190,9 +27352,9 @@ function toStandardSchemaV1(self, options) {
27190
27352
  if (exit3) {
27191
27353
  return makeStandardResult(exit3);
27192
27354
  }
27193
- return new Promise((resolve2) => {
27355
+ return new Promise((resolve3) => {
27194
27356
  fiber3.addObserver((exit4) => {
27195
- resolve2(makeStandardResult(exit4));
27357
+ resolve3(makeStandardResult(exit4));
27196
27358
  });
27197
27359
  });
27198
27360
  };
@@ -31315,7 +31477,7 @@ function resolveAnnotationsKey(schema) {
31315
31477
  return schema.ast.context?.annotations;
31316
31478
  }
31317
31479
 
31318
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Console.js
31480
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Console.js
31319
31481
  var Console_exports = {};
31320
31482
  __export(Console_exports, {
31321
31483
  Console: () => Console,
@@ -31412,7 +31574,7 @@ var withTime = /* @__PURE__ */ dual((args2) => isEffect(args2[0]), (self, label)
31412
31574
  console2.timeEnd(label);
31413
31575
  }))));
31414
31576
 
31415
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Match.js
31577
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Match.js
31416
31578
  var Match_exports = {};
31417
31579
  __export(Match_exports, {
31418
31580
  any: () => any3,
@@ -31454,7 +31616,7 @@ __export(Match_exports, {
31454
31616
  withReturnType: () => withReturnType2
31455
31617
  });
31456
31618
 
31457
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/matcher.js
31619
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/internal/matcher.js
31458
31620
  var TypeId23 = "~effect/match/Match/Matcher";
31459
31621
  var TypeMatcherProto = {
31460
31622
  [TypeId23]: {
@@ -31707,7 +31869,7 @@ var exhaustive = (self) => {
31707
31869
  };
31708
31870
  };
31709
31871
 
31710
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Match.js
31872
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Match.js
31711
31873
  var type2 = type;
31712
31874
  var value4 = value3;
31713
31875
  var valueTags2 = valueTags;
@@ -31746,7 +31908,7 @@ var result4 = result3;
31746
31908
  var option4 = option3;
31747
31909
  var exhaustive2 = exhaustive;
31748
31910
 
31749
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Ref.js
31911
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.109/node_modules/effect/dist/Ref.js
31750
31912
  var Ref_exports = {};
31751
31913
  __export(Ref_exports, {
31752
31914
  get: () => get6,
@@ -41116,7 +41278,7 @@ var lazyProcessor = (schema, ctx, _json, params) => {
41116
41278
  seen.ref = innerType;
41117
41279
  };
41118
41280
 
41119
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
41281
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_supports-color@7.2.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
41120
41282
  function isZ4Schema(s) {
41121
41283
  const schema = s;
41122
41284
  return !!schema._zod;
@@ -42571,7 +42733,7 @@ var z = {
42571
42733
  // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/external.js
42572
42734
  config(en_default2());
42573
42735
 
42574
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
42736
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_supports-color@7.2.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
42575
42737
  var LATEST_PROTOCOL_VERSION = "2025-11-25";
42576
42738
  var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"];
42577
42739
  var RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task";
@@ -44090,7 +44252,7 @@ var UrlElicitationRequiredError = class extends McpError {
44090
44252
  }
44091
44253
  };
44092
44254
 
44093
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
44255
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_supports-color@7.2.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
44094
44256
  function isTerminal(status) {
44095
44257
  return status === "completed" || status === "failed" || status === "cancelled";
44096
44258
  }
@@ -44098,7 +44260,7 @@ function isTerminal(status) {
44098
44260
  // ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parsers/string.js
44099
44261
  var ALPHA_NUMERIC = new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");
44100
44262
 
44101
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
44263
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_supports-color@7.2.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
44102
44264
  function getMethodLiteral(schema) {
44103
44265
  const shape = getObjectShape(schema);
44104
44266
  const methodSchema = shape?.method;
@@ -44119,7 +44281,7 @@ function parseWithCompat(schema, data) {
44119
44281
  return result5.data;
44120
44282
  }
44121
44283
 
44122
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
44284
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_supports-color@7.2.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
44123
44285
  var DEFAULT_REQUEST_TIMEOUT_MSEC = 6e4;
44124
44286
  var Protocol = class {
44125
44287
  constructor(_options) {
@@ -44619,7 +44781,7 @@ var Protocol = class {
44619
44781
  return;
44620
44782
  }
44621
44783
  const pollInterval = task2.pollInterval ?? this._options?.defaultTaskPollInterval ?? 1e3;
44622
- await new Promise((resolve2) => setTimeout(resolve2, pollInterval));
44784
+ await new Promise((resolve3) => setTimeout(resolve3, pollInterval));
44623
44785
  options?.signal?.throwIfAborted();
44624
44786
  }
44625
44787
  } catch (error3) {
@@ -44636,7 +44798,7 @@ var Protocol = class {
44636
44798
  */
44637
44799
  request(request3, resultSchema, options) {
44638
44800
  const { relatedRequestId, resumptionToken, onresumptiontoken, task, relatedTask } = options ?? {};
44639
- return new Promise((resolve2, reject) => {
44801
+ return new Promise((resolve3, reject) => {
44640
44802
  const earlyReject = (error3) => {
44641
44803
  reject(error3);
44642
44804
  };
@@ -44714,7 +44876,7 @@ var Protocol = class {
44714
44876
  if (!parseResult.success) {
44715
44877
  reject(parseResult.error);
44716
44878
  } else {
44717
- resolve2(parseResult.data);
44879
+ resolve3(parseResult.data);
44718
44880
  }
44719
44881
  } catch (error3) {
44720
44882
  reject(error3);
@@ -44975,12 +45137,12 @@ var Protocol = class {
44975
45137
  }
44976
45138
  } catch {
44977
45139
  }
44978
- return new Promise((resolve2, reject) => {
45140
+ return new Promise((resolve3, reject) => {
44979
45141
  if (signal.aborted) {
44980
45142
  reject(new McpError(ErrorCode.InvalidRequest, "Request cancelled"));
44981
45143
  return;
44982
45144
  }
44983
- const timeoutId = setTimeout(resolve2, interval);
45145
+ const timeoutId = setTimeout(resolve3, interval);
44984
45146
  signal.addEventListener("abort", () => {
44985
45147
  clearTimeout(timeoutId);
44986
45148
  reject(new McpError(ErrorCode.InvalidRequest, "Request cancelled"));
@@ -45073,7 +45235,7 @@ function mergeCapabilities(base2, additional) {
45073
45235
  return result5;
45074
45236
  }
45075
45237
 
45076
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
45238
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_supports-color@7.2.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
45077
45239
  var import_ajv = __toESM(require_ajv(), 1);
45078
45240
  var import_ajv_formats = __toESM(require_dist(), 1);
45079
45241
  function createDefaultAjvInstance() {
@@ -45141,7 +45303,7 @@ var AjvJsonSchemaValidator = class {
45141
45303
  }
45142
45304
  };
45143
45305
 
45144
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
45306
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_supports-color@7.2.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
45145
45307
  var ExperimentalServerTasks = class {
45146
45308
  constructor(_server) {
45147
45309
  this._server = _server;
@@ -45354,7 +45516,7 @@ var ExperimentalServerTasks = class {
45354
45516
  }
45355
45517
  };
45356
45518
 
45357
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
45519
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_supports-color@7.2.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
45358
45520
  function assertToolsCallTaskCapability(requests, method, entityName) {
45359
45521
  if (!requests) {
45360
45522
  throw new Error(`${entityName} does not support task creation (required for ${method})`);
@@ -45389,7 +45551,7 @@ function assertClientRequestTaskCapability(requests, method, entityName) {
45389
45551
  }
45390
45552
  }
45391
45553
 
45392
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
45554
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_supports-color@7.2.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
45393
45555
  var Server = class extends Protocol {
45394
45556
  /**
45395
45557
  * Initializes this server with the given name and version information.
@@ -45769,10 +45931,10 @@ var Server = class extends Protocol {
45769
45931
  }
45770
45932
  };
45771
45933
 
45772
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
45934
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_supports-color@7.2.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
45773
45935
  import process3 from "node:process";
45774
45936
 
45775
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
45937
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_supports-color@7.2.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
45776
45938
  var ReadBuffer = class {
45777
45939
  append(chunk) {
45778
45940
  this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk;
@@ -45800,7 +45962,7 @@ function serializeMessage(message) {
45800
45962
  return JSON.stringify(message) + "\n";
45801
45963
  }
45802
45964
 
45803
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
45965
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_supports-color@7.2.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
45804
45966
  var StdioServerTransport = class {
45805
45967
  constructor(_stdin = process3.stdin, _stdout = process3.stdout) {
45806
45968
  this._stdin = _stdin;
@@ -45850,12 +46012,12 @@ var StdioServerTransport = class {
45850
46012
  this.onclose?.();
45851
46013
  }
45852
46014
  send(message) {
45853
- return new Promise((resolve2) => {
46015
+ return new Promise((resolve3) => {
45854
46016
  const json2 = serializeMessage(message);
45855
46017
  if (this._stdout.write(json2)) {
45856
- resolve2();
46018
+ resolve3();
45857
46019
  } else {
45858
- this._stdout.once("drain", resolve2);
46020
+ this._stdout.once("drain", resolve3);
45859
46021
  }
45860
46022
  });
45861
46023
  }
@@ -45941,12 +46103,99 @@ var runInit = () => {
45941
46103
  };
45942
46104
 
45943
46105
  // ../foldkit/src/schema/index.ts
45944
- var makeCallable = (schema) => (
45945
- /* eslint-disable-next-line @typescript-eslint/consistent-type-assertions */
45946
- new Proxy(function() {
46106
+ var assignPlainProperty = (output, name, value5) => {
46107
+ if (name === "__proto__") {
46108
+ Object.defineProperty(output, name, {
46109
+ value: value5,
46110
+ writable: true,
46111
+ enumerable: true,
46112
+ configurable: true
46113
+ });
46114
+ } else {
46115
+ output[name] = value5;
46116
+ }
46117
+ };
46118
+ var isDirectlyCopyable = (ast) => {
46119
+ if (ast.checks !== void 0 || ast.encoding !== void 0 || ast.context !== void 0 || ast.annotations?.["parseOptions"] !== void 0) {
46120
+ return false;
46121
+ }
46122
+ return Match_exports.value(ast).pipe(
46123
+ Match_exports.withReturnType(),
46124
+ Match_exports.tagsExhaustive({
46125
+ Declaration: () => false,
46126
+ Null: () => true,
46127
+ Undefined: () => true,
46128
+ Void: () => true,
46129
+ Never: () => true,
46130
+ Unknown: () => true,
46131
+ Any: () => true,
46132
+ String: () => true,
46133
+ Number: () => true,
46134
+ Boolean: () => true,
46135
+ BigInt: () => true,
46136
+ Symbol: () => true,
46137
+ Literal: () => true,
46138
+ UniqueSymbol: () => true,
46139
+ ObjectKeyword: () => true,
46140
+ Enum: () => true,
46141
+ TemplateLiteral: ({ parts: parts2 }) => parts2.every(isDirectlyCopyable),
46142
+ Arrays: () => false,
46143
+ Objects: () => false,
46144
+ Union: ({ mode, types }) => mode !== "oneOf" && types.every(isDirectlyCopyable),
46145
+ Suspend: () => false
46146
+ })
46147
+ );
46148
+ };
46149
+ var getDirectPropertyNames = (propertySignatures) => {
46150
+ const names = [];
46151
+ for (const { name, type: type3 } of propertySignatures) {
46152
+ if (name !== "_tag" && !isDirectlyCopyable(SchemaAST_exports.toType(type3))) {
46153
+ return void 0;
46154
+ }
46155
+ names.push(name);
46156
+ }
46157
+ return names;
46158
+ };
46159
+ var makeCallable = (tag4, fields) => {
46160
+ const schema = Schema_exports.TaggedStruct(tag4, fields);
46161
+ const propertyNames = Object.hasOwn(fields, "_tag") ? void 0 : getDirectPropertyNames(schema.ast.propertySignatures);
46162
+ const make26 = (value5) => schema.make(
46163
+ /* eslint-disable-next-line @typescript-eslint/consistent-type-assertions */
46164
+ value5 ?? {}
46165
+ );
46166
+ const construct = propertyNames !== void 0 ? (value5) => {
46167
+ const input = value5 ?? {};
46168
+ if (Object(input) !== input) {
46169
+ return make26(value5);
46170
+ }
46171
+ const output = {};
46172
+ for (const name of propertyNames) {
46173
+ const descriptor = Object.getOwnPropertyDescriptor(input, name);
46174
+ if (name !== "_tag" && descriptor === void 0 && Reflect.has(input, name)) {
46175
+ return make26(value5);
46176
+ }
46177
+ if (descriptor !== void 0 && !("value" in descriptor)) {
46178
+ return make26(value5);
46179
+ }
46180
+ const inputValue = descriptor === void 0 ? void 0 : input[name];
46181
+ if (name === "_tag") {
46182
+ if (inputValue !== void 0 && inputValue !== tag4) {
46183
+ return make26(value5);
46184
+ }
46185
+ if (descriptor !== void 0 && inputValue === void 0) {
46186
+ assignPlainProperty(output, name, inputValue);
46187
+ }
46188
+ assignPlainProperty(output, name, tag4);
46189
+ } else {
46190
+ assignPlainProperty(output, name, inputValue);
46191
+ }
46192
+ }
46193
+ return output;
46194
+ } : make26;
46195
+ return new Proxy(function() {
45947
46196
  }, {
45948
46197
  apply(_target, _thisArg, argumentsList) {
45949
- return schema.make(argumentsList[0] ?? {});
46198
+ return construct(argumentsList[0]);
45950
46199
  },
45951
46200
  get(_target, property, receiver) {
45952
46201
  return Reflect.get(schema, property, receiver);
@@ -45957,10 +46206,10 @@ var makeCallable = (schema) => (
45957
46206
  getPrototypeOf() {
45958
46207
  return Reflect.getPrototypeOf(schema);
45959
46208
  }
45960
- })
45961
- );
46209
+ });
46210
+ };
45962
46211
  function ts(tag4, fields = {}) {
45963
- return makeCallable(Schema_exports.TaggedStruct(tag4, fields));
46212
+ return makeCallable(tag4, fields);
45964
46213
  }
45965
46214
 
45966
46215
  // ../foldkit/src/devTools/protocol.ts