@mx-space/cli 0.15.0 → 0.15.2

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 (51) hide show
  1. package/README.md +1 -1
  2. package/dist/{Lexical.dev-Cck4n26y.mjs → Lexical.dev-Df5TNMgP.mjs} +129 -96
  3. package/dist/{Lexical.node-D6wf2D5M.mjs → Lexical.node-B064E4Hy.mjs} +1 -1
  4. package/dist/{Lexical.prod-DCwS1oTq.mjs → Lexical.prod-DRFSwoE7.mjs} +6 -4
  5. package/dist/{LexicalClipboard.dev-CMkPHV7O.mjs → LexicalClipboard.dev-ClOWeg5v.mjs} +18 -14
  6. package/dist/{LexicalClipboard.node-m4nZ7IYw.mjs → LexicalClipboard.node-BJBLWpEi.mjs} +1 -1
  7. package/dist/{LexicalClipboard.prod-B_rN1vE1.mjs → LexicalClipboard.prod-Ytt65eQo.mjs} +10 -10
  8. package/dist/{LexicalCodeCore.dev-DyJw3i8V.mjs → LexicalCodeCore.dev-CzEPINOT.mjs} +43 -25
  9. package/dist/{LexicalCodeCore.prod-DPXLHQLF.mjs → LexicalCodeCore.prod-DOVk7lL_.mjs} +6 -6
  10. package/dist/{LexicalDragon.dev-ZkNfMwrE.mjs → LexicalDragon.dev-DxePN9fP.mjs} +2 -2
  11. package/dist/{LexicalDragon.node-Ds9oLUFh.mjs → LexicalDragon.node-DBwaqStp.mjs} +1 -1
  12. package/dist/{LexicalDragon.prod-B58ic2av.mjs → LexicalDragon.prod-Bji84-Hq.mjs} +2 -2
  13. package/dist/{LexicalExtension.dev-DvwHs1Xv.mjs → LexicalExtension.dev-DtSRyjbf.mjs} +25 -13
  14. package/dist/{LexicalExtension.node-5OymZQfy.mjs → LexicalExtension.node-3nsS5NjU.mjs} +1 -1
  15. package/dist/{LexicalExtension.prod-Ce0T5smQ.mjs → LexicalExtension.prod-Ddk0ja_6.mjs} +16 -13
  16. package/dist/{LexicalHeadless.dev-DA0WldSR.mjs → LexicalHeadless.dev-DdWJsPoH.mjs} +1 -1
  17. package/dist/{LexicalHeadless.prod-1kQgKB6c.mjs → LexicalHeadless.prod-CH74ZDMt.mjs} +1 -1
  18. package/dist/{LexicalHtml.dev-BDB7CUrx.mjs → LexicalHtml.dev-DN7QIb_7.mjs} +20 -14
  19. package/dist/{LexicalHtml.node-DpVNt7It.mjs → LexicalHtml.node-DAwuaPeI.mjs} +1 -1
  20. package/dist/{LexicalHtml.prod-HkxM5scw.mjs → LexicalHtml.prod-X4eTHEfI.mjs} +4 -4
  21. package/dist/{LexicalLink.dev-C5zNJlrm.mjs → LexicalLink.dev-owitIl6I.mjs} +28 -21
  22. package/dist/{LexicalLink.prod-Bkt9hQAt.mjs → LexicalLink.prod-BZ7ZZkVD.mjs} +6 -5
  23. package/dist/{LexicalList.dev-B7VgME-m.mjs → LexicalList.dev-CUbi09Yo.mjs} +4 -4
  24. package/dist/{LexicalList.prod-B8c7TDjH.mjs → LexicalList.prod-pUsUZa0r.mjs} +4 -4
  25. package/dist/{LexicalMarkdown.dev-B5z9kLbV.mjs → LexicalMarkdown.dev-S2yWckH9.mjs} +40 -29
  26. package/dist/{LexicalMarkdown.prod-wKzw7FFH.mjs → LexicalMarkdown.prod-TRkMWfmC.mjs} +10 -7
  27. package/dist/{LexicalRichText.dev-CUd6Li5F.mjs → LexicalRichText.dev-Y3ybFF2S.mjs} +15 -11
  28. package/dist/{LexicalRichText.node-BKfaQ-CH.mjs → LexicalRichText.node-wNAi2Z4i.mjs} +4 -4
  29. package/dist/{LexicalRichText.prod-SBewjJHx.mjs → LexicalRichText.prod-HLxqZ6hQ.mjs} +17 -11
  30. package/dist/{LexicalSelection.dev-D27JOCqj.mjs → LexicalSelection.dev-CyhKOKbs.mjs} +28 -24
  31. package/dist/{LexicalSelection.node-DBEwPjBu.mjs → LexicalSelection.node-BCuHMbzl.mjs} +1 -1
  32. package/dist/{LexicalSelection.prod-OaYhXHOL.mjs → LexicalSelection.prod-RebDJliC.mjs} +2 -2
  33. package/dist/{LexicalTable.dev-6IFFOAE0.mjs → LexicalTable.dev-DN3ezVey.mjs} +33 -28
  34. package/dist/{LexicalTable.prod-2CaLZ7fH.mjs → LexicalTable.prod-B0MioVyq.mjs} +10 -9
  35. package/dist/{LexicalUtils.dev-DJA7J_7v.mjs → LexicalUtils.dev-Bw6LFRlt.mjs} +8 -5
  36. package/dist/{LexicalUtils.node-Df9oPTlA.mjs → LexicalUtils.node-BPKMFN80.mjs} +1 -1
  37. package/dist/{LexicalUtils.prod-Bb7V4Ewg.mjs → LexicalUtils.prod-CJYQVQJO.mjs} +7 -6
  38. package/dist/bin/mxs.mjs +1 -1
  39. package/dist/{esm-DLzrv7gD.mjs → esm-7vSMGlFz.mjs} +428 -505
  40. package/dist/esm-ZrfYH2y2.mjs +2 -0
  41. package/dist/index.mjs +1 -1
  42. package/dist/{mxs-BIRW5Axj.mjs → mxs-DKv-4ZTg.mjs} +1091 -806
  43. package/dist/{rolldown-runtime-JspESFgx.mjs → rolldown-runtime-B4iAMlE-.mjs} +1 -1
  44. package/dist/vendor/litexml/cli.mjs +113 -42
  45. package/dist/vendor/litexml/litexml-html-preview-client.css +575 -997
  46. package/dist/vendor/litexml/litexml-html-preview-client.js +8177 -7143
  47. package/dist/vendor/litexml/style.css +9 -5
  48. package/package.json +28 -25
  49. package/skills/safety.md +1 -1
  50. package/LICENSE +0 -33
  51. package/dist/esm-CDcJmHkG.mjs +0 -2
@@ -1,4 +1,4 @@
1
- import { n as __exportAll } from "./rolldown-runtime-JspESFgx.mjs";
1
+ import { n as __exportAll } from "./rolldown-runtime-B4iAMlE-.mjs";
2
2
  //#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Function.js
3
3
  /**
4
4
  * Tests if a value is a `function`.
@@ -1218,9 +1218,10 @@ function compareBoth(self, that) {
1218
1218
  if (selfType !== typeof that) return false;
1219
1219
  if (selfType === "object" || selfType === "function") {
1220
1220
  if (self !== null && that !== null) {
1221
- if (isEqual(self) && isEqual(that)) if (hash(self) === hash(that) && self[symbol](that)) return true;
1222
- else return structuralRegionState.enabled && structuralRegionState.tester ? structuralRegionState.tester(self, that) : false;
1223
- else if (self instanceof Date && that instanceof Date) {
1221
+ if (isEqual(self) && isEqual(that)) {
1222
+ if (hash(self) === hash(that) && self[symbol](that)) return true;
1223
+ else return structuralRegionState.enabled && structuralRegionState.tester ? structuralRegionState.tester(self, that) : false;
1224
+ } else if (self instanceof Date && that instanceof Date) {
1224
1225
  const t1 = self.getTime();
1225
1226
  const t2 = that.getTime();
1226
1227
  return t1 === t2 || Number.isNaN(t1) && Number.isNaN(t2);
@@ -4051,9 +4052,7 @@ const reduceWithContext$2 = /*#__PURE__*/ dual(3, (self, context, reducer) => {
4051
4052
  case OP_SOURCE_UNAVAILABLE:
4052
4053
  output.push(right(reducer.sourceUnavailableCase(context, error.path, error.message, error.cause)));
4053
4054
  break;
4054
- case OP_UNSUPPORTED:
4055
- output.push(right(reducer.unsupportedCase(context, error.path, error.message)));
4056
- break;
4055
+ case OP_UNSUPPORTED: output.push(right(reducer.unsupportedCase(context, error.path, error.message)));
4057
4056
  }
4058
4057
  }
4059
4058
  const accumulator = [];
@@ -4078,9 +4077,7 @@ const reduceWithContext$2 = /*#__PURE__*/ dual(3, (self, context, reducer) => {
4078
4077
  }
4079
4078
  }
4080
4079
  break;
4081
- case "Right":
4082
- accumulator.push(either.right);
4083
- break;
4080
+ case "Right": accumulator.push(either.right);
4084
4081
  }
4085
4082
  }
4086
4083
  if (accumulator.length === 0) throw new Error("BUG: ConfigError.reduceWithContext - please report an issue at https://github.com/Effect-TS/effect/issues");
@@ -4696,7 +4693,6 @@ const makeChunk = (backing) => {
4696
4693
  chunk.depth = backing.chunk.depth + 1;
4697
4694
  chunk.left = _empty$5;
4698
4695
  chunk.right = _empty$5;
4699
- break;
4700
4696
  }
4701
4697
  return chunk;
4702
4698
  };
@@ -4978,40 +4974,41 @@ const appendAll$1 = /*#__PURE__*/ dual(2, (self, that) => {
4978
4974
  left: self,
4979
4975
  right: that
4980
4976
  });
4981
- else if (diff < -1) if (self.left.depth >= self.right.depth) {
4982
- const nr = appendAll$1(self.right, that);
4983
- return makeChunk({
4984
- _tag: "IConcat",
4985
- left: self.left,
4986
- right: nr
4987
- });
4988
- } else {
4989
- const nrr = appendAll$1(self.right.right, that);
4990
- if (nrr.depth === self.depth - 3) {
4991
- const nr = makeChunk({
4992
- _tag: "IConcat",
4993
- left: self.right.left,
4994
- right: nrr
4995
- });
4977
+ else if (diff < -1) {
4978
+ if (self.left.depth >= self.right.depth) {
4979
+ const nr = appendAll$1(self.right, that);
4996
4980
  return makeChunk({
4997
4981
  _tag: "IConcat",
4998
4982
  left: self.left,
4999
4983
  right: nr
5000
4984
  });
5001
4985
  } else {
5002
- const nl = makeChunk({
5003
- _tag: "IConcat",
5004
- left: self.left,
5005
- right: self.right.left
5006
- });
5007
- return makeChunk({
5008
- _tag: "IConcat",
5009
- left: nl,
5010
- right: nrr
5011
- });
4986
+ const nrr = appendAll$1(self.right.right, that);
4987
+ if (nrr.depth === self.depth - 3) {
4988
+ const nr = makeChunk({
4989
+ _tag: "IConcat",
4990
+ left: self.right.left,
4991
+ right: nrr
4992
+ });
4993
+ return makeChunk({
4994
+ _tag: "IConcat",
4995
+ left: self.left,
4996
+ right: nr
4997
+ });
4998
+ } else {
4999
+ const nl = makeChunk({
5000
+ _tag: "IConcat",
5001
+ left: self.left,
5002
+ right: self.right.left
5003
+ });
5004
+ return makeChunk({
5005
+ _tag: "IConcat",
5006
+ left: nl,
5007
+ right: nrr
5008
+ });
5009
+ }
5012
5010
  }
5013
- }
5014
- else if (that.right.depth >= that.left.depth) {
5011
+ } else if (that.right.depth >= that.left.depth) {
5015
5012
  const nl = appendAll$1(self, that.left);
5016
5013
  return makeChunk({
5017
5014
  _tag: "IConcat",
@@ -5221,17 +5218,18 @@ const DurationProto = {
5221
5218
  };
5222
5219
  const make$32 = (input) => {
5223
5220
  const duration = Object.create(DurationProto);
5224
- if (isNumber(input)) if (isNaN(input) || input <= 0) duration.value = zeroValue;
5225
- else if (!Number.isFinite(input)) duration.value = infinityValue;
5226
- else if (!Number.isInteger(input)) duration.value = {
5227
- _tag: "Nanos",
5228
- nanos: BigInt(Math.round(input * 1e6))
5229
- };
5230
- else duration.value = {
5231
- _tag: "Millis",
5232
- millis: input
5233
- };
5234
- else if (input <= bigint0$3) duration.value = zeroValue;
5221
+ if (isNumber(input)) {
5222
+ if (isNaN(input) || input <= 0) duration.value = zeroValue;
5223
+ else if (!Number.isFinite(input)) duration.value = infinityValue;
5224
+ else if (!Number.isInteger(input)) duration.value = {
5225
+ _tag: "Nanos",
5226
+ nanos: BigInt(Math.round(input * 1e6))
5227
+ };
5228
+ else duration.value = {
5229
+ _tag: "Millis",
5230
+ millis: input
5231
+ };
5232
+ } else if (input <= bigint0$3) duration.value = zeroValue;
5235
5233
  else duration.value = {
5236
5234
  _tag: "Nanos",
5237
5235
  nanos: input
@@ -6053,9 +6051,11 @@ const reduce$5 = /*#__PURE__*/ dual(3, (self, zero, f) => {
6053
6051
  let children;
6054
6052
  while (children = toVisit.pop()) for (let i = 0, len = children.length; i < len;) {
6055
6053
  const child = children[i++];
6056
- if (child && !isEmptyNode(child)) if (child._tag === "LeafNode") {
6057
- if (isSome(child.value)) zero = f(zero, child.value.value, child.key);
6058
- } else toVisit.push(child.children);
6054
+ if (child && !isEmptyNode(child)) {
6055
+ if (child._tag === "LeafNode") {
6056
+ if (isSome(child.value)) zero = f(zero, child.value.value, child.key);
6057
+ } else toVisit.push(child.children);
6058
+ }
6059
6059
  }
6060
6060
  return zero;
6061
6061
  });
@@ -7608,7 +7608,6 @@ const patch$7 = /*#__PURE__*/ dual(2, (self, context) => {
7608
7608
  updatedContext.set(head.key, head.update(updatedContext.get(head.key)));
7609
7609
  wasServiceUpdated = true;
7610
7610
  patches = tail;
7611
- break;
7612
7611
  }
7613
7612
  }
7614
7613
  if (!wasServiceUpdated) return makeContext(updatedContext);
@@ -7787,7 +7786,6 @@ const patch$5 = /*#__PURE__*/ dual(3, (self, oldValue, differ) => {
7787
7786
  case "Update":
7788
7787
  readonlyArray[head.index] = differ.patch(head.patch, readonlyArray[head.index]);
7789
7788
  patches = tail;
7790
- break;
7791
7789
  }
7792
7790
  }
7793
7791
  return readonlyArray;
@@ -8017,7 +8015,6 @@ const step$1 = (requests) => {
8017
8015
  case "Single":
8018
8016
  current = left;
8019
8017
  sequential = cons(right, sequential);
8020
- break;
8021
8018
  }
8022
8019
  break;
8023
8020
  }
@@ -8026,7 +8023,6 @@ const step$1 = (requests) => {
8026
8023
  if (isNil(stack)) return [parallel, sequential];
8027
8024
  current = stack.head;
8028
8025
  stack = stack.tail;
8029
- break;
8030
8026
  }
8031
8027
  throw new Error("BUG: BlockedRequests.step - please report an issue at https://github.com/Effect-TS/effect/issues");
8032
8028
  };
@@ -8169,7 +8165,7 @@ const empty$10 = /*#__PURE__*/ (() => {
8169
8165
  return o;
8170
8166
  })();
8171
8167
  /** @internal */
8172
- const fail$6 = (error) => {
8168
+ const fail$5 = (error) => {
8173
8169
  const o = Object.create(proto$3);
8174
8170
  o._tag = OP_FAIL$1;
8175
8171
  o.error = error;
@@ -8249,7 +8245,7 @@ const failureOrCause$1 = (self) => {
8249
8245
  /** @internal */
8250
8246
  const flipCauseOption$1 = (self) => match$4(self, {
8251
8247
  onEmpty: some$1(empty$10),
8252
- onFail: map$12(fail$6),
8248
+ onFail: map$12(fail$5),
8253
8249
  onDie: (defect) => some$1(die$4(defect)),
8254
8250
  onInterrupt: (fiberId) => some$1(interrupt$3(fiberId)),
8255
8251
  onSequential: mergeWith(sequential$3),
@@ -8285,7 +8281,7 @@ const electFailures = (self) => match$4(self, {
8285
8281
  onParallel: parallel$3
8286
8282
  });
8287
8283
  /** @internal */
8288
- const map$7 = /*#__PURE__*/ dual(2, (self, f) => flatMap$4(self, (e) => fail$6(f(e))));
8284
+ const map$7 = /*#__PURE__*/ dual(2, (self, f) => flatMap$4(self, (e) => fail$5(f(e))));
8289
8285
  /** @internal */
8290
8286
  const flatMap$4 = /*#__PURE__*/ dual(2, (self, f) => match$4(self, {
8291
8287
  onEmpty: empty$10,
@@ -8351,7 +8347,6 @@ const find = /*#__PURE__*/ dual(2, (self, pf) => {
8351
8347
  case OP_PARALLEL$1:
8352
8348
  stack.push(item.right);
8353
8349
  stack.push(item.left);
8354
- break;
8355
8350
  }
8356
8351
  break;
8357
8352
  case "Some": return option;
@@ -8404,13 +8399,11 @@ const evaluateCause = (self) => {
8404
8399
  default:
8405
8400
  _sequential = prepend$1(_sequential, cause.right);
8406
8401
  cause = cause.left;
8407
- break;
8408
8402
  }
8409
8403
  break;
8410
8404
  case OP_PARALLEL$1:
8411
8405
  stack.push(cause.right);
8412
8406
  cause = cause.left;
8413
- break;
8414
8407
  }
8415
8408
  throw new Error(getBugErrorMessage("Cause.evaluateCauseLoop"));
8416
8409
  };
@@ -8453,9 +8446,7 @@ const reduce = /*#__PURE__*/ dual(3, (self, zero, pf) => {
8453
8446
  causes.push(cause.right);
8454
8447
  cause = cause.left;
8455
8448
  break;
8456
- default:
8457
- cause = void 0;
8458
- break;
8449
+ default: cause = void 0;
8459
8450
  }
8460
8451
  if (cause === void 0 && causes.length > 0) cause = causes.pop();
8461
8452
  }
@@ -8489,7 +8480,6 @@ const reduceWithContext$1 = /*#__PURE__*/ dual(3, (self, context, reducer) => {
8489
8480
  input.push(cause.right);
8490
8481
  input.push(cause.left);
8491
8482
  output.push(left({ _tag: OP_PARALLEL_CASE }));
8492
- break;
8493
8483
  }
8494
8484
  }
8495
8485
  const accumulator = [];
@@ -8514,9 +8504,7 @@ const reduceWithContext$1 = /*#__PURE__*/ dual(3, (self, context, reducer) => {
8514
8504
  }
8515
8505
  }
8516
8506
  break;
8517
- case "Right":
8518
- accumulator.push(either.right);
8519
- break;
8507
+ case "Right": accumulator.push(either.right);
8520
8508
  }
8521
8509
  }
8522
8510
  if (accumulator.length === 0) throw new Error("BUG: Cause.reduceWithContext - please report an issue at https://github.com/Effect-TS/effect/issues");
@@ -8967,8 +8955,8 @@ const exit$1 = (self) => matchCause$1(self, {
8967
8955
  onFailure: exitFailCause$1,
8968
8956
  onSuccess: exitSucceed$1
8969
8957
  });
8970
- const fail$5 = (error) => isObject(error) && !(spanSymbol in error) ? withFiberRuntime$1((fiber) => failCause$3(fail$6(capture(error, currentSpanFromFiber(fiber))))) : failCause$3(fail$6(error));
8971
- const failSync$1 = (evaluate) => flatMap$3(sync$1(evaluate), fail$5);
8958
+ const fail$4 = (error) => isObject(error) && !(spanSymbol in error) ? withFiberRuntime$1((fiber) => failCause$3(fail$5(capture(error, currentSpanFromFiber(fiber))))) : failCause$3(fail$5(error));
8959
+ const failSync$1 = (evaluate) => flatMap$3(sync$1(evaluate), fail$4);
8972
8960
  const failCause$3 = (cause) => {
8973
8961
  const effect = new EffectPrimitiveFailure(OP_FAILURE);
8974
8962
  effect.effect_instruction_i0 = cause;
@@ -9100,7 +9088,7 @@ const tap$1 = /*#__PURE__*/ dual((args) => args.length === 3 || args.length ===
9100
9088
  const b = typeof f === "function" ? f(a) : f;
9101
9089
  if (isEffect$1(b)) return as$1(b, a);
9102
9090
  else if (isPromiseLike(b)) return unsafeAsync((resume) => {
9103
- b.then((_) => resume(succeed$5(a)), (e) => resume(fail$5(new UnknownException(e, "An unknown error occurred in Effect.tap"))));
9091
+ b.then((_) => resume(succeed$5(a)), (e) => resume(fail$4(new UnknownException(e, "An unknown error occurred in Effect.tap"))));
9104
9092
  });
9105
9093
  return succeed$5(a);
9106
9094
  }));
@@ -9409,10 +9397,10 @@ const causeSquashWith = /*#__PURE__*/ dual(2, (self, f) => {
9409
9397
  }
9410
9398
  });
9411
9399
  /** @internal */
9412
- const YieldableError$1 = /*#__PURE__*/ function() {
9400
+ const YieldableError = /*#__PURE__*/ function() {
9413
9401
  class YieldableError extends globalThis.Error {
9414
9402
  commit() {
9415
- return fail$5(this);
9403
+ return fail$4(this);
9416
9404
  }
9417
9405
  toJSON() {
9418
9406
  const obj = { ...this };
@@ -9422,7 +9410,7 @@ const YieldableError$1 = /*#__PURE__*/ function() {
9422
9410
  }
9423
9411
  [NodeInspectSymbol]() {
9424
9412
  if (this.toString !== globalThis.Error.prototype.toString) return this.stack ? `${this.toString()}\n${this.stack.split("\n").slice(1).join("\n")}` : this.toString();
9425
- else if ("Bun" in globalThis) return pretty$1(fail$6(this), { renderErrorCause: true });
9413
+ else if ("Bun" in globalThis) return pretty$1(fail$5(this), { renderErrorCause: true });
9426
9414
  return this;
9427
9415
  }
9428
9416
  }
@@ -9430,7 +9418,7 @@ const YieldableError$1 = /*#__PURE__*/ function() {
9430
9418
  return YieldableError;
9431
9419
  }();
9432
9420
  const makeException = (proto, tag) => {
9433
- class Base extends YieldableError$1 {
9421
+ class Base extends YieldableError {
9434
9422
  _tag = tag;
9435
9423
  }
9436
9424
  Object.assign(Base.prototype, proto);
@@ -9454,18 +9442,18 @@ const IllegalArgumentException$1 = /*#__PURE__*/ makeException({ [IllegalArgumen
9454
9442
  /** @internal */
9455
9443
  const NoSuchElementExceptionTypeId = /*#__PURE__*/ Symbol.for("effect/Cause/errors/NoSuchElement");
9456
9444
  /** @internal */
9457
- const NoSuchElementException$2 = /*#__PURE__*/ makeException({ [NoSuchElementExceptionTypeId]: NoSuchElementExceptionTypeId }, "NoSuchElementException");
9445
+ const NoSuchElementException$1 = /*#__PURE__*/ makeException({ [NoSuchElementExceptionTypeId]: NoSuchElementExceptionTypeId }, "NoSuchElementException");
9458
9446
  /** @internal */
9459
9447
  const TimeoutExceptionTypeId = /*#__PURE__*/ Symbol.for("effect/Cause/errors/Timeout");
9460
9448
  /** @internal */
9461
- const TimeoutException$1 = /*#__PURE__*/ makeException({ [TimeoutExceptionTypeId]: TimeoutExceptionTypeId }, "TimeoutException");
9449
+ const TimeoutException = /*#__PURE__*/ makeException({ [TimeoutExceptionTypeId]: TimeoutExceptionTypeId }, "TimeoutException");
9462
9450
  /** @internal */
9463
- const timeoutExceptionFromDuration = (duration) => new TimeoutException$1(`Operation timed out after '${format$3(duration)}'`);
9451
+ const timeoutExceptionFromDuration = (duration) => new TimeoutException(`Operation timed out after '${format$3(duration)}'`);
9464
9452
  /** @internal */
9465
9453
  const UnknownExceptionTypeId = /*#__PURE__*/ Symbol.for("effect/Cause/errors/UnknownException");
9466
9454
  /** @internal */
9467
9455
  const UnknownException = /*#__PURE__*/ function() {
9468
- class UnknownException extends YieldableError$1 {
9456
+ class UnknownException extends YieldableError {
9469
9457
  _tag = "UnknownException";
9470
9458
  error;
9471
9459
  constructor(cause, message) {
@@ -9499,7 +9487,7 @@ const exitCollectAll = (exits, options) => exitCollectAllInternal(exits, options
9499
9487
  /** @internal */
9500
9488
  const exitDie$1 = (defect) => exitFailCause$1(die$4(defect));
9501
9489
  /** @internal */
9502
- const exitFail = (error) => exitFailCause$1(fail$6(error));
9490
+ const exitFail = (error) => exitFailCause$1(fail$5(error));
9503
9491
  /** @internal */
9504
9492
  const exitFailCause$1 = (cause) => {
9505
9493
  const effect = new EffectPrimitiveFailure(OP_FAILURE);
@@ -9619,7 +9607,7 @@ const deferredCompleteWith = /*#__PURE__*/ dual(2, (self, effect) => sync$1(() =
9619
9607
  }
9620
9608
  }));
9621
9609
  const deferredDone = /*#__PURE__*/ dual(2, (self, exit) => deferredCompleteWith(self, exit));
9622
- const deferredFail = /*#__PURE__*/ dual(2, (self, error) => deferredCompleteWith(self, fail$5(error)));
9610
+ const deferredFail = /*#__PURE__*/ dual(2, (self, error) => deferredCompleteWith(self, fail$4(error)));
9623
9611
  const deferredFailCause = /*#__PURE__*/ dual(2, (self, cause) => deferredCompleteWith(self, failCause$3(cause)));
9624
9612
  const deferredInterrupt = (self) => flatMap$3(fiberId, (fiberId) => deferredCompleteWith(self, interruptWith(fiberId)));
9625
9613
  const deferredInterruptWith = /*#__PURE__*/ dual(2, (self, fiberId) => deferredCompleteWith(self, interruptWith(fiberId)));
@@ -9868,12 +9856,10 @@ const patch$3 = /*#__PURE__*/ dual(2, (path, patch) => {
9868
9856
  output = prepend$2(output, patch.name);
9869
9857
  input = input.tail;
9870
9858
  break;
9871
- case "Unnested":
9872
- if (pipe(head$2(output), contains$1(patch.name))) {
9873
- output = tailNonEmpty$1(output);
9874
- input = input.tail;
9875
- } else return left(MissingData(output, `Expected ${patch.name} to be in path in ConfigProvider#unnested`));
9876
- break;
9859
+ case "Unnested": if (pipe(head$2(output), contains$1(patch.name))) {
9860
+ output = tailNonEmpty$1(output);
9861
+ input = input.tail;
9862
+ } else return left(MissingData(output, `Expected ${patch.name} to be in path in ConfigProvider#unnested`));
9877
9863
  }
9878
9864
  }
9879
9865
  return right(output);
@@ -9931,7 +9917,7 @@ const makeFlat = (options) => ({
9931
9917
  /** @internal */
9932
9918
  const fromFlat = (flat) => make$19({
9933
9919
  load: (config) => flatMap$3(fromFlatLoop(flat, empty$23(), config, false), (chunk) => match$7(head$2(chunk), {
9934
- onNone: () => fail$5(MissingData(empty$23(), `Expected a single value having structure: ${config}`)),
9920
+ onNone: () => fail$4(MissingData(empty$23(), `Expected a single value having structure: ${config}`)),
9935
9921
  onSome: succeed$5
9936
9922
  })),
9937
9923
  flattened: flat
@@ -9999,10 +9985,10 @@ const fromFlatLoop = (flat, prefix, config, split) => {
9999
9985
  switch (op._tag) {
10000
9986
  case OP_CONSTANT: return succeed$5(of$2(op.value));
10001
9987
  case OP_DESCRIBED: return suspend$3(() => fromFlatLoop(flat, prefix, op.config, split));
10002
- case OP_FAIL: return fail$5(MissingData(prefix, op.message));
9988
+ case OP_FAIL: return fail$4(MissingData(prefix, op.message));
10003
9989
  case OP_FALLBACK: return pipe(suspend$3(() => fromFlatLoop(flat, prefix, op.first, split)), catchAll$1((error1) => {
10004
- if (op.condition(error1)) return pipe(fromFlatLoop(flat, prefix, op.second, split), catchAll$1((error2) => fail$5(Or(error1, error2))));
10005
- return fail$5(error1);
9990
+ if (op.condition(error1)) return pipe(fromFlatLoop(flat, prefix, op.second, split), catchAll$1((error2) => fail$4(Or(error1, error2))));
9991
+ return fail$4(error1);
10006
9992
  }));
10007
9993
  case OP_LAZY: return suspend$3(() => fromFlatLoop(flat, prefix, op.config(), split));
10008
9994
  case OP_MAP_OR_FAIL: return suspend$3(() => pipe(fromFlatLoop(flat, prefix, op.original, split), flatMap$3(forEachSequential((a) => pipe(op.mapOrFail(a), mapError$2(prefixed(appendConfigPath(prefix, op.original))))))));
@@ -10010,7 +9996,7 @@ const fromFlatLoop = (flat, prefix, config, split) => {
10010
9996
  case OP_PRIMITIVE: return pipe(patch$3(prefix, flat.patch), flatMap$3((prefix) => pipe(flat.load(prefix, op, split), flatMap$3((values) => {
10011
9997
  if (values.length === 0) {
10012
9998
  const name = pipe(last(prefix), getOrElse(() => "<n/a>"));
10013
- return fail$5(MissingData([], `Expected ${op.description} with name ${name}`));
9999
+ return fail$4(MissingData([], `Expected ${op.description} with name ${name}`));
10014
10000
  }
10015
10001
  return succeed$5(values);
10016
10002
  }))));
@@ -10030,9 +10016,9 @@ const fromFlatLoop = (flat, prefix, config, split) => {
10030
10016
  }));
10031
10017
  })))));
10032
10018
  case OP_ZIP_WITH: return suspend$3(() => pipe(fromFlatLoop(flat, prefix, op.left, split), either$1, flatMap$3((left) => pipe(fromFlatLoop(flat, prefix, op.right, split), either$1, flatMap$3((right$4) => {
10033
- if (isLeft(left) && isLeft(right$4)) return fail$5(And(left.left, right$4.left));
10034
- if (isLeft(left) && isRight(right$4)) return fail$5(left.left);
10035
- if (isRight(left) && isLeft(right$4)) return fail$5(right$4.left);
10019
+ if (isLeft(left) && isLeft(right$4)) return fail$4(And(left.left, right$4.left));
10020
+ if (isLeft(left) && isRight(right$4)) return fail$4(left.left);
10021
+ if (isRight(left) && isLeft(right$4)) return fail$4(right$4.left);
10036
10022
  if (isRight(left) && isRight(right$4)) {
10037
10023
  const path = pipe(prefix, join$1("."));
10038
10024
  const fail = fromFlatLoopFail(prefix, path);
@@ -10540,9 +10526,10 @@ const unsafeUpdateAs = (locals, fiberId, fiberRef, value) => {
10540
10526
  let newStack;
10541
10527
  if (isNonEmptyReadonlyArray(oldStack)) {
10542
10528
  const [currentId, currentValue] = headNonEmpty$2(oldStack);
10543
- if (currentId[symbol](fiberId)) if (equals$3(currentValue, value)) return;
10544
- else newStack = [[fiberId, value], ...oldStack.slice(1)];
10545
- else newStack = [[fiberId, value], ...oldStack];
10529
+ if (currentId[symbol](fiberId)) {
10530
+ if (equals$3(currentValue, value)) return;
10531
+ else newStack = [[fiberId, value], ...oldStack.slice(1)];
10532
+ } else newStack = [[fiberId, value], ...oldStack];
10546
10533
  } else newStack = [[fiberId, value]];
10547
10534
  locals.set(fiberRef, newStack);
10548
10535
  };
@@ -10676,9 +10663,7 @@ const patch$2 = /*#__PURE__*/ dual(3, (self, fiberId, oldValue) => {
10676
10663
  patches = tail;
10677
10664
  break;
10678
10665
  }
10679
- case OP_AND_THEN$1:
10680
- patches = prepend$2(head.first)(prepend$2(head.second)(tail));
10681
- break;
10666
+ case OP_AND_THEN$1: patches = prepend$2(head.first)(prepend$2(head.second)(tail));
10682
10667
  }
10683
10668
  }
10684
10669
  return fiberRefs;
@@ -10806,7 +10791,7 @@ const Fatal = logLevelFatal;
10806
10791
  * @since 2.0.0
10807
10792
  * @category constructors
10808
10793
  */
10809
- const Error$3 = logLevelError;
10794
+ const Error$2 = logLevelError;
10810
10795
  /**
10811
10796
  * @since 2.0.0
10812
10797
  * @category constructors
@@ -10850,7 +10835,7 @@ const fromLiteral = (literal) => {
10850
10835
  switch (literal) {
10851
10836
  case "All": return All;
10852
10837
  case "Debug": return Debug;
10853
- case "Error": return Error$3;
10838
+ case "Error": return Error$2;
10854
10839
  case "Fatal": return Fatal;
10855
10840
  case "Info": return Info;
10856
10841
  case "Trace": return Trace;
@@ -10916,19 +10901,6 @@ var MicroCauseImpl = class extends globalThis.Error {
10916
10901
  return this.stack;
10917
10902
  }
10918
10903
  };
10919
- var Fail = class extends MicroCauseImpl {
10920
- error;
10921
- constructor(error, traces = []) {
10922
- super("Fail", error, traces);
10923
- this.error = error;
10924
- }
10925
- };
10926
- /**
10927
- * @since 3.4.6
10928
- * @experimental
10929
- * @category MicroCause
10930
- */
10931
- const causeFail = (error, traces = []) => new Fail(error, traces);
10932
10904
  var Die = class extends MicroCauseImpl {
10933
10905
  defect;
10934
10906
  constructor(defect, traces = []) {
@@ -11185,17 +11157,6 @@ const failCause$2 = /*#__PURE__*/ makeExit({
11185
11157
  }
11186
11158
  });
11187
11159
  /**
11188
- * Creates a `Micro` effect that fails with the given error.
11189
- *
11190
- * This results in a `Fail` variant of the `MicroCause` type, where the error is
11191
- * tracked at the type level.
11192
- *
11193
- * @since 3.4.0
11194
- * @experimental
11195
- * @category constructors
11196
- */
11197
- const fail$4 = (error) => failCause$2(causeFail(error));
11198
- /**
11199
11160
  * Pause the execution of the current `Micro` effect, and resume it on the next
11200
11161
  * scheduler tick.
11201
11162
  *
@@ -11362,14 +11323,13 @@ const provideContext = /*#__PURE__*/ dual(2, (self, provided) => updateContext$1
11362
11323
  * @experimental
11363
11324
  * @category references
11364
11325
  */
11365
- var MaxOpsBeforeYield = class extends Reference()("effect/Micro/currentMaxOpsBeforeYield", { defaultValue: () => 2048 }) {};
11366
- Reference()("effect/Micro/currentConcurrency", { defaultValue: () => "unbounded" });
11326
+ var MaxOpsBeforeYield = class extends (/*#__PURE__*/ Reference()("effect/Micro/currentMaxOpsBeforeYield", { defaultValue: () => 2048 })) {};
11367
11327
  /**
11368
11328
  * @since 3.11.0
11369
11329
  * @experimental
11370
11330
  * @category environment refs
11371
11331
  */
11372
- var CurrentScheduler = class extends Reference()("effect/Micro/currentScheduler", { defaultValue: () => new MicroSchedulerDefault() }) {};
11332
+ var CurrentScheduler = class extends (/*#__PURE__*/ Reference()("effect/Micro/currentScheduler", { defaultValue: () => new MicroSchedulerDefault() })) {};
11373
11333
  /**
11374
11334
  * @since 3.4.6
11375
11335
  * @experimental
@@ -11479,62 +11439,16 @@ const uninterruptibleMask$1 = (f) => withMicroFiber((fiber) => {
11479
11439
  const runFork$1 = (effect, options) => {
11480
11440
  const fiber = new MicroFiberImpl(CurrentScheduler.context(options?.scheduler ?? new MicroSchedulerDefault()));
11481
11441
  fiber.evaluate(effect);
11482
- if (options?.signal) if (options.signal.aborted) fiber.unsafeInterrupt();
11483
- else {
11484
- const abort = () => fiber.unsafeInterrupt();
11485
- options.signal.addEventListener("abort", abort, { once: true });
11486
- fiber.addObserver(() => options.signal.removeEventListener("abort", abort));
11487
- }
11488
- return fiber;
11489
- };
11490
- const YieldableError = /*#__PURE__*/ function() {
11491
- class YieldableError extends globalThis.Error {}
11492
- Object.assign(YieldableError.prototype, MicroProto, StructuralPrototype, {
11493
- [identifier]: "Failure",
11494
- [evaluate]() {
11495
- return fail$4(this);
11496
- },
11497
- toString() {
11498
- return this.message ? `${this.name}: ${this.message}` : this.name;
11499
- },
11500
- toJSON() {
11501
- return { ...this };
11502
- },
11503
- [NodeInspectSymbol]() {
11504
- const stack = this.stack;
11505
- if (stack) return `${this.toString()}\n${stack.split("\n").slice(1).join("\n")}`;
11506
- return this.toString();
11507
- }
11508
- });
11509
- return YieldableError;
11510
- }();
11511
- /**
11512
- * @since 3.4.0
11513
- * @experimental
11514
- * @category errors
11515
- */
11516
- const Error$2 = /*#__PURE__*/ function() {
11517
- return class extends YieldableError {
11518
- constructor(args) {
11519
- super();
11520
- if (args) Object.assign(this, args);
11442
+ if (options?.signal) {
11443
+ if (options.signal.aborted) fiber.unsafeInterrupt();
11444
+ else {
11445
+ const abort = () => fiber.unsafeInterrupt();
11446
+ options.signal.addEventListener("abort", abort, { once: true });
11447
+ fiber.addObserver(() => options.signal.removeEventListener("abort", abort));
11521
11448
  }
11522
- };
11523
- }();
11524
- /**
11525
- * @since 3.4.0
11526
- * @experimental
11527
- * @category errors
11528
- */
11529
- const TaggedError$2 = (tag) => {
11530
- class Base extends Error$2 {
11531
- _tag = tag;
11532
11449
  }
11533
- Base.prototype.name = tag;
11534
- return Base;
11450
+ return fiber;
11535
11451
  };
11536
- TaggedError$2("NoSuchElementException");
11537
- TaggedError$2("TimeoutException");
11538
11452
  //#endregion
11539
11453
  //#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Readable.js
11540
11454
  /**
@@ -11875,7 +11789,7 @@ const try_$1 = (arg) => {
11875
11789
  try {
11876
11790
  return succeed$5(internalCall(evaluate));
11877
11791
  } catch (error) {
11878
- return fail$5(onFailure ? internalCall(() => onFailure(error)) : new UnknownException(error, "An unknown error occurred in Effect.try"));
11792
+ return fail$4(onFailure ? internalCall(() => onFailure(error)) : new UnknownException(error, "An unknown error occurred in Effect.try"));
11879
11793
  }
11880
11794
  });
11881
11795
  };
@@ -11943,7 +11857,7 @@ const logWithLevel = (level) => (...message) => {
11943
11857
  /** @internal */
11944
11858
  const logWarning$1 = /*#__PURE__*/ logWithLevel(Warning);
11945
11859
  /** @internal */
11946
- const logError$1 = /*#__PURE__*/ logWithLevel(Error$3);
11860
+ const logError$1 = /*#__PURE__*/ logWithLevel(Error$2);
11947
11861
  const mapErrorCause = /*#__PURE__*/ dual(2, (self, f) => matchCauseEffect$2(self, {
11948
11862
  onFailure: (c) => failCauseSync(() => f(c)),
11949
11863
  onSuccess: succeed$5
@@ -11995,7 +11909,7 @@ const tryPromise$1 = (arg) => {
11995
11909
  evaluate = arg.try;
11996
11910
  catcher = arg.catch;
11997
11911
  }
11998
- const fail = (e) => catcher ? failSync$1(() => catcher(e)) : fail$5(new UnknownException(e, "An unknown error occurred in Effect.tryPromise"));
11912
+ const fail = (e) => catcher ? failSync$1(() => catcher(e)) : fail$4(new UnknownException(e, "An unknown error occurred in Effect.tryPromise"));
11999
11913
  if (evaluate.length >= 1) return async_((resolve, signal) => {
12000
11914
  try {
12001
11915
  evaluate(signal).then((a) => resolve(succeed$5(a)), (e) => resolve(fail(e)));
@@ -12991,8 +12905,10 @@ const histogram$1 = (key) => {
12991
12905
  const mid = Math.floor(from + (to - from) / 2);
12992
12906
  if (value <= boundaries[mid]) to = mid;
12993
12907
  else from = mid;
12994
- if (to === from + 1) if (value <= boundaries[from]) to = from;
12995
- else from = to;
12908
+ if (to === from + 1) {
12909
+ if (value <= boundaries[from]) to = from;
12910
+ else from = to;
12911
+ }
12996
12912
  }
12997
12913
  values[from] = values[from] + 1;
12998
12914
  count = count + 1;
@@ -13657,57 +13573,58 @@ const insert = /*#__PURE__*/ dual(3, (self, key, value) => {
13657
13573
  const n3 = n_stack[s];
13658
13574
  if (p.color === Color.Black || n3.color === Color.Black) break;
13659
13575
  const pp = n_stack[s - 2];
13660
- if (pp.left === p) if (p.left === n3) {
13661
- const y = pp.right;
13662
- if (y && y.color === Color.Red) {
13663
- p.color = Color.Black;
13664
- pp.right = repaint(y, Color.Black);
13665
- pp.color = Color.Red;
13666
- s -= 1;
13667
- } else {
13668
- pp.color = Color.Red;
13669
- pp.left = p.right;
13670
- p.color = Color.Black;
13671
- p.right = pp;
13672
- n_stack[s - 2] = p;
13673
- n_stack[s - 1] = n3;
13674
- recount(pp);
13675
- recount(p);
13676
- if (s >= 3) {
13677
- const ppp = n_stack[s - 3];
13678
- if (ppp.left === pp) ppp.left = p;
13679
- else ppp.right = p;
13576
+ if (pp.left === p) {
13577
+ if (p.left === n3) {
13578
+ const y = pp.right;
13579
+ if (y && y.color === Color.Red) {
13580
+ p.color = Color.Black;
13581
+ pp.right = repaint(y, Color.Black);
13582
+ pp.color = Color.Red;
13583
+ s -= 1;
13584
+ } else {
13585
+ pp.color = Color.Red;
13586
+ pp.left = p.right;
13587
+ p.color = Color.Black;
13588
+ p.right = pp;
13589
+ n_stack[s - 2] = p;
13590
+ n_stack[s - 1] = n3;
13591
+ recount(pp);
13592
+ recount(p);
13593
+ if (s >= 3) {
13594
+ const ppp = n_stack[s - 3];
13595
+ if (ppp.left === pp) ppp.left = p;
13596
+ else ppp.right = p;
13597
+ }
13598
+ break;
13680
13599
  }
13681
- break;
13682
- }
13683
- } else {
13684
- const y = pp.right;
13685
- if (y && y.color === Color.Red) {
13686
- p.color = Color.Black;
13687
- pp.right = repaint(y, Color.Black);
13688
- pp.color = Color.Red;
13689
- s -= 1;
13690
13600
  } else {
13691
- p.right = n3.left;
13692
- pp.color = Color.Red;
13693
- pp.left = n3.right;
13694
- n3.color = Color.Black;
13695
- n3.left = p;
13696
- n3.right = pp;
13697
- n_stack[s - 2] = n3;
13698
- n_stack[s - 1] = p;
13699
- recount(pp);
13700
- recount(p);
13701
- recount(n3);
13702
- if (s >= 3) {
13703
- const ppp = n_stack[s - 3];
13704
- if (ppp.left === pp) ppp.left = n3;
13705
- else ppp.right = n3;
13601
+ const y = pp.right;
13602
+ if (y && y.color === Color.Red) {
13603
+ p.color = Color.Black;
13604
+ pp.right = repaint(y, Color.Black);
13605
+ pp.color = Color.Red;
13606
+ s -= 1;
13607
+ } else {
13608
+ p.right = n3.left;
13609
+ pp.color = Color.Red;
13610
+ pp.left = n3.right;
13611
+ n3.color = Color.Black;
13612
+ n3.left = p;
13613
+ n3.right = pp;
13614
+ n_stack[s - 2] = n3;
13615
+ n_stack[s - 1] = p;
13616
+ recount(pp);
13617
+ recount(p);
13618
+ recount(n3);
13619
+ if (s >= 3) {
13620
+ const ppp = n_stack[s - 3];
13621
+ if (ppp.left === pp) ppp.left = n3;
13622
+ else ppp.right = n3;
13623
+ }
13624
+ break;
13706
13625
  }
13707
- break;
13708
13626
  }
13709
- }
13710
- else if (p.right === n3) {
13627
+ } else if (p.right === n3) {
13711
13628
  const y = pp.left;
13712
13629
  if (y && y.color === Color.Red) {
13713
13630
  p.color = Color.Black;
@@ -14066,9 +13983,7 @@ const patchLoop = (_supervisor, _patches) => {
14066
13983
  supervisor = removeSupervisor(supervisor, head.supervisor);
14067
13984
  patches = tailNonEmpty(patches);
14068
13985
  break;
14069
- case OP_AND_THEN:
14070
- patches = prepend$1(head.first)(prepend$1(head.second)(tailNonEmpty(patches)));
14071
- break;
13986
+ case OP_AND_THEN: patches = prepend$1(head.first)(prepend$1(head.second)(tailNonEmpty(patches)));
14072
13987
  }
14073
13988
  }
14074
13989
  return supervisor;
@@ -14638,9 +14553,7 @@ var FiberRuntime = class extends Class$4 {
14638
14553
  case OP_SUCCESS:
14639
14554
  fiberSuccesses.unsafeUpdate(1, tags);
14640
14555
  break;
14641
- case OP_FAILURE:
14642
- fiberFailures.unsafeUpdate(1, tags);
14643
- break;
14556
+ case OP_FAILURE: fiberFailures.unsafeUpdate(1, tags);
14644
14557
  }
14645
14558
  }
14646
14559
  if (exit._tag === "Failure") {
@@ -14725,12 +14638,13 @@ var FiberRuntime = class extends Class$4 {
14725
14638
  if (exit === YieldedOp) {
14726
14639
  const op = yieldedOpChannel.currentOp;
14727
14640
  yieldedOpChannel.currentOp = null;
14728
- if (op._op === "Yield") if (cooperativeYielding(this.currentRuntimeFlags)) {
14729
- this.tell(yieldNow());
14730
- this.tell(resume(exitVoid$1));
14731
- effect = null;
14732
- } else effect = exitVoid$1;
14733
- else if (op._op === "Async") effect = null;
14641
+ if (op._op === "Yield") {
14642
+ if (cooperativeYielding(this.currentRuntimeFlags)) {
14643
+ this.tell(yieldNow());
14644
+ this.tell(resume(exitVoid$1));
14645
+ effect = null;
14646
+ } else effect = exitVoid$1;
14647
+ } else if (op._op === "Async") effect = null;
14734
14648
  } else {
14735
14649
  this.currentRuntimeFlags = pipe(this.currentRuntimeFlags, enable$1(16));
14736
14650
  const interruption = this.interruptAllChildren();
@@ -14844,10 +14758,10 @@ var FiberRuntime = class extends Class$4 {
14844
14758
  return sync$1(() => unsafeGet$1(this.currentContext, op));
14845
14759
  }
14846
14760
  ["Left"](op) {
14847
- return fail$5(op.left);
14761
+ return fail$4(op.left);
14848
14762
  }
14849
14763
  ["None"](_) {
14850
- return fail$5(new NoSuchElementException$2());
14764
+ return fail$4(new NoSuchElementException$1());
14851
14765
  }
14852
14766
  ["Right"](op) {
14853
14767
  return exitSucceed$1(op.right);
@@ -14863,7 +14777,7 @@ var FiberRuntime = class extends Class$4 {
14863
14777
  if (exit._tag === "Success") return resume(exitSucceed$1(exit.value));
14864
14778
  switch (exit.cause._tag) {
14865
14779
  case "Interrupt": return resume(exitFailCause$1(interrupt$3(none$2)));
14866
- case "Fail": return resume(fail$5(exit.cause.error));
14780
+ case "Fail": return resume(fail$4(exit.cause.error));
14867
14781
  case "Die": return resume(die$3(exit.cause.defect));
14868
14782
  }
14869
14783
  });
@@ -15127,7 +15041,7 @@ const allValidate = (effects, reconcile, options) => {
15127
15041
  errors[i] = none;
15128
15042
  }
15129
15043
  }
15130
- if (errored) return reconcile._tag === "Some" ? fail$5(reconcile.value(errors)) : fail$5(errors);
15044
+ if (errored) return reconcile._tag === "Some" ? fail$4(reconcile.value(errors)) : fail$4(errors);
15131
15045
  else if (options?.discard) return void_$2;
15132
15046
  return reconcile._tag === "Some" ? succeed$5(reconcile.value(successes)) : succeed$5(successes);
15133
15047
  });
@@ -15566,7 +15480,7 @@ const empty$2 = empty$10;
15566
15480
  * @since 2.0.0
15567
15481
  * @category Constructors
15568
15482
  */
15569
- const fail$2 = fail$6;
15483
+ const fail$2 = fail$5;
15570
15484
  /**
15571
15485
  * Creates a `Die` cause from an unexpected error.
15572
15486
  *
@@ -15811,7 +15725,7 @@ const IllegalArgumentException = IllegalArgumentException$1;
15811
15725
  * @since 2.0.0
15812
15726
  * @category Errors
15813
15727
  */
15814
- const NoSuchElementException = NoSuchElementException$2;
15728
+ const NoSuchElementException = NoSuchElementException$1;
15815
15729
  /**
15816
15730
  * Converts a `Cause` into a human-readable string.
15817
15731
  *
@@ -16464,7 +16378,7 @@ const fastPath = (effect) => {
16464
16378
  case "Left": return exitFail(op.left);
16465
16379
  case "Right": return exitSucceed$1(op.right);
16466
16380
  case "Some": return exitSucceed$1(op.value);
16467
- case "None": return exitFail(new NoSuchElementException$2());
16381
+ case "None": return exitFail(new NoSuchElementException$1());
16468
16382
  }
16469
16383
  };
16470
16384
  /** @internal */
@@ -16493,10 +16407,12 @@ const unsafeRunPromiseExit = /*#__PURE__*/ makeDual((runtime, effect, options) =
16493
16407
  fiber.addObserver((exit) => {
16494
16408
  resolve(exit);
16495
16409
  });
16496
- if (options?.signal !== void 0) if (options.signal.aborted) fiber.unsafeInterruptAsFork(fiber.id());
16497
- else options.signal.addEventListener("abort", () => {
16498
- fiber.unsafeInterruptAsFork(fiber.id());
16499
- }, { once: true });
16410
+ if (options?.signal !== void 0) {
16411
+ if (options.signal.aborted) fiber.unsafeInterruptAsFork(fiber.id());
16412
+ else options.signal.addEventListener("abort", () => {
16413
+ fiber.unsafeInterruptAsFork(fiber.id());
16414
+ }, { once: true });
16415
+ }
16500
16416
  }));
16501
16417
  /** @internal */
16502
16418
  var RuntimeImpl = class {
@@ -16920,7 +16836,7 @@ function taggedMatch() {
16920
16836
  */
16921
16837
  const Error$1 = /*#__PURE__*/ function() {
16922
16838
  const plainArgsSymbol = /*#__PURE__*/ Symbol.for("effect/Data/Error/plainArgs");
16923
- return { BaseEffectError: class extends YieldableError$1 {
16839
+ return { BaseEffectError: class extends YieldableError {
16924
16840
  constructor(args) {
16925
16841
  super(args?.message, args?.cause ? { cause: args.cause } : void 0);
16926
16842
  if (args) {
@@ -17104,8 +17020,8 @@ const unsafeMake$1 = (input) => {
17104
17020
  return unsafeFromDate$1(new Date(input));
17105
17021
  };
17106
17022
  const hasZone = (input) => /Z|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input);
17107
- const minEpochMillis = -86399999568e5;
17108
- const maxEpochMillis = 864e13 - 840 * 60 * 1e3;
17023
+ const minEpochMillis = -864e13 + 432e5;
17024
+ const maxEpochMillis = 864e13 - 504e5;
17109
17025
  /** @internal */
17110
17026
  const unsafeMakeZoned$1 = (input, options) => {
17111
17027
  if (options?.timeZone === void 0 && isDateTime$1(input) && isZoned$1(input)) return input;
@@ -17213,8 +17129,8 @@ const zonedOffset = (self) => {
17213
17129
  };
17214
17130
  const offsetToString = (offset) => {
17215
17131
  const abs = Math.abs(offset);
17216
- let hours = Math.floor(abs / (3600 * 1e3));
17217
- let minutes = Math.round(abs % (3600 * 1e3) / (60 * 1e3));
17132
+ let hours = Math.floor(abs / 36e5);
17133
+ let minutes = Math.round(abs % 36e5 / 6e4);
17218
17134
  if (minutes === 60) {
17219
17135
  hours += 1;
17220
17136
  minutes = 0;
@@ -17238,7 +17154,7 @@ const setPartsDate = (date, parts) => {
17238
17154
  if (parts.seconds !== void 0) date.setUTCSeconds(parts.seconds);
17239
17155
  if (parts.millis !== void 0) date.setUTCMilliseconds(parts.millis);
17240
17156
  };
17241
- const constDayMillis = 1440 * 60 * 1e3;
17157
+ const constDayMillis = 864e5;
17242
17158
  const makeZonedFromAdjusted = (adjustedMillis, zone, disambiguation) => {
17243
17159
  if (zone._tag === "Offset") return makeZonedProto(adjustedMillis - zone.offset, zone);
17244
17160
  const beforeOffset = calculateNamedOffset(adjustedMillis - constDayMillis, adjustedMillis, zone);
@@ -17447,7 +17363,7 @@ var ScheduleDriverImpl = class {
17447
17363
  get last() {
17448
17364
  return flatMap$3(get$2(this.ref), ([element, _]) => {
17449
17365
  switch (element._tag) {
17450
- case "None": return failSync$1(() => new NoSuchElementException$2());
17366
+ case "None": return failSync$1(() => new NoSuchElementException$1());
17451
17367
  case "Some": return succeed$5(element.value);
17452
17368
  }
17453
17369
  });
@@ -17459,7 +17375,7 @@ var ScheduleDriverImpl = class {
17459
17375
  next(input) {
17460
17376
  return pipe(map$6(get$2(this.ref), (tuple) => tuple[1]), flatMap$3((state) => pipe(currentTimeMillis, flatMap$3((now) => pipe(suspend$3(() => this.schedule.step(now, input, state)), flatMap$3(([state, out, decision]) => {
17461
17377
  const setState = set$3(this.ref, [some$1(out), state]);
17462
- if (isDone(decision)) return setState.pipe(zipRight$2(fail$5(none$4())));
17378
+ if (isDone(decision)) return setState.pipe(zipRight$2(fail$4(none$4())));
17463
17379
  const millis$1 = start(decision.intervals) - now;
17464
17380
  if (millis$1 <= 0) return setState.pipe(zipRight$2(updateInfo(this.iterationMeta, now, input, out)), as$1(out));
17465
17381
  const duration = millis(millis$1);
@@ -17597,12 +17513,12 @@ const scheduleDefectWrap = (self) => catchAll$1(self, (e) => die$3(new ScheduleD
17597
17513
  /** @internal */
17598
17514
  const scheduleDefectRefailCause = (cause) => match$7(find(cause, (_) => isDieType$1(_) && isScheduleDefect(_.defect) ? some$1(_.defect) : none$4()), {
17599
17515
  onNone: () => cause,
17600
- onSome: (error) => fail$6(error.error)
17516
+ onSome: (error) => fail$5(error.error)
17601
17517
  });
17602
17518
  /** @internal */
17603
17519
  const scheduleDefectRefail = (effect) => catchAllCause$1(effect, (cause) => failCause$3(scheduleDefectRefailCause(cause)));
17604
17520
  /** @internal */
17605
- const repeat_Effect = /*#__PURE__*/ dual(2, (self, schedule) => repeatOrElse_Effect(self, schedule, (e, _) => fail$5(e)));
17521
+ const repeat_Effect = /*#__PURE__*/ dual(2, (self, schedule) => repeatOrElse_Effect(self, schedule, (e, _) => fail$4(e)));
17606
17522
  /** @internal */
17607
17523
  const repeat_combined = /*#__PURE__*/ dual(2, (self, options) => {
17608
17524
  if (isSchedule(options)) return repeat_Effect(self, options);
@@ -17634,7 +17550,7 @@ const repeatOrElseEffectLoop = (self, driver, orElse, value) => matchEffect$1(dr
17634
17550
  })
17635
17551
  });
17636
17552
  /** @internal */
17637
- const retry_Effect = /*#__PURE__*/ dual(2, (self, policy) => retryOrElse_Effect(self, policy, (e, _) => fail$5(e)));
17553
+ const retry_Effect = /*#__PURE__*/ dual(2, (self, policy) => retryOrElse_Effect(self, policy, (e, _) => fail$4(e)));
17638
17554
  /** @internal */
17639
17555
  const retry_combined = /*#__PURE__*/ dual(2, (self, options) => {
17640
17556
  if (isSchedule(options)) return retry_Effect(self, options);
@@ -18260,7 +18176,7 @@ const withFiberRuntime = withFiberRuntime$1;
18260
18176
  * @since 2.0.0
18261
18177
  * @category Creating Effects
18262
18178
  */
18263
- const fail$1 = fail$5;
18179
+ const fail$1 = fail$4;
18264
18180
  /**
18265
18181
  * Creates an `Effect` that fails with the specified error, evaluated lazily.
18266
18182
  *
@@ -23375,12 +23291,10 @@ const unify = (candidates) => {
23375
23291
  out.push(ast);
23376
23292
  }
23377
23293
  break;
23378
- case "object":
23379
- if (!literals.includes(ast.literal)) {
23380
- literals.push(ast.literal);
23381
- out.push(ast);
23382
- }
23383
- break;
23294
+ case "object": if (!literals.includes(ast.literal)) {
23295
+ literals.push(ast.literal);
23296
+ out.push(ast);
23297
+ }
23384
23298
  }
23385
23299
  break;
23386
23300
  }
@@ -24432,7 +24346,7 @@ const ParseErrorTypeId = /*#__PURE__*/ Symbol.for("effect/Schema/ParseErrorTypeI
24432
24346
  /**
24433
24347
  * @since 3.10.0
24434
24348
  */
24435
- var ParseError = class extends TaggedError$1("ParseError") {
24349
+ var ParseError = class extends (/*#__PURE__*/ TaggedError$1("ParseError")) {
24436
24350
  /**
24437
24351
  * @since 3.10.0
24438
24352
  */
@@ -24818,14 +24732,15 @@ const go$1 = (ast, isDecoding) => {
24818
24732
  const [head, ...tail] = rest;
24819
24733
  for (; i < len - tail.length; i++) {
24820
24734
  const te = head(input[i], options);
24821
- if (isEither(te)) if (isLeft(te)) {
24822
- const e = new Pointer(i, input, te.left);
24823
- if (allErrors) {
24824
- es.push([stepKey++, e]);
24825
- continue;
24826
- } else return left(new Composite(ast, input, e, sortByIndex(output)));
24827
- } else output.push([stepKey++, te.right]);
24828
- else {
24735
+ if (isEither(te)) {
24736
+ if (isLeft(te)) {
24737
+ const e = new Pointer(i, input, te.left);
24738
+ if (allErrors) {
24739
+ es.push([stepKey++, e]);
24740
+ continue;
24741
+ } else return left(new Composite(ast, input, e, sortByIndex(output)));
24742
+ } else output.push([stepKey++, te.right]);
24743
+ } else {
24829
24744
  const nk = stepKey++;
24830
24745
  const index = i;
24831
24746
  if (!queue) queue = [];
@@ -24928,13 +24843,15 @@ const go$1 = (ast, isDecoding) => {
24928
24843
  inputKeys = Reflect.ownKeys(input);
24929
24844
  for (const key of inputKeys) {
24930
24845
  const te = expected(key, options);
24931
- if (isEither(te) && isLeft(te)) if (onExcessPropertyError) {
24932
- const e = new Pointer(key, input, new Unexpected(input[key], `is unexpected, expected: ${String(expectedAST)}`));
24933
- if (allErrors) {
24934
- es.push([stepKey++, e]);
24935
- continue;
24936
- } else return left(new Composite(ast, input, e, output));
24937
- } else output[key] = input[key];
24846
+ if (isEither(te) && isLeft(te)) {
24847
+ if (onExcessPropertyError) {
24848
+ const e = new Pointer(key, input, new Unexpected(input[key], `is unexpected, expected: ${String(expectedAST)}`));
24849
+ if (allErrors) {
24850
+ es.push([stepKey++, e]);
24851
+ continue;
24852
+ } else return left(new Composite(ast, input, e, output));
24853
+ } else output[key] = input[key];
24854
+ }
24938
24855
  }
24939
24856
  }
24940
24857
  let queue = void 0;
@@ -25062,37 +24979,40 @@ const go$1 = (ast, isDecoding) => {
25062
24979
  const es = [];
25063
24980
  let stepKey = 0;
25064
24981
  let candidates = [];
25065
- if (ownKeysLen > 0) if (isRecordOrArray(input)) for (let i = 0; i < ownKeysLen; i++) {
25066
- const name = ownKeys[i];
25067
- const buckets = searchTree.keys[name].buckets;
25068
- if (Object.prototype.hasOwnProperty.call(input, name)) {
25069
- const literal = String(input[name]);
25070
- if (Object.prototype.hasOwnProperty.call(buckets, literal)) candidates = candidates.concat(buckets[literal]);
25071
- else {
24982
+ if (ownKeysLen > 0) {
24983
+ if (isRecordOrArray(input)) for (let i = 0; i < ownKeysLen; i++) {
24984
+ const name = ownKeys[i];
24985
+ const buckets = searchTree.keys[name].buckets;
24986
+ if (Object.prototype.hasOwnProperty.call(input, name)) {
24987
+ const literal = String(input[name]);
24988
+ if (Object.prototype.hasOwnProperty.call(buckets, literal)) candidates = candidates.concat(buckets[literal]);
24989
+ else {
24990
+ const { candidates, literals } = searchTree.keys[name];
24991
+ const literalsUnion = Union$1.make(literals);
24992
+ const errorAst = candidates.length === astTypesLen ? new TypeLiteral([new PropertySignature(name, literalsUnion, false, true)], []) : Union$1.make(candidates);
24993
+ es.push([stepKey++, new Composite(errorAst, input, new Pointer(name, input, new Type(literalsUnion, input[name])))]);
24994
+ }
24995
+ } else {
25072
24996
  const { candidates, literals } = searchTree.keys[name];
25073
- const literalsUnion = Union$1.make(literals);
25074
- const errorAst = candidates.length === astTypesLen ? new TypeLiteral([new PropertySignature(name, literalsUnion, false, true)], []) : Union$1.make(candidates);
25075
- es.push([stepKey++, new Composite(errorAst, input, new Pointer(name, input, new Type(literalsUnion, input[name])))]);
24997
+ const fakePropertySignature = new PropertySignature(name, Union$1.make(literals), false, true);
24998
+ const errorAst = candidates.length === astTypesLen ? new TypeLiteral([fakePropertySignature], []) : Union$1.make(candidates);
24999
+ es.push([stepKey++, new Composite(errorAst, input, new Pointer(name, input, new Missing(fakePropertySignature)))]);
25076
25000
  }
25077
- } else {
25078
- const { candidates, literals } = searchTree.keys[name];
25079
- const fakePropertySignature = new PropertySignature(name, Union$1.make(literals), false, true);
25080
- const errorAst = candidates.length === astTypesLen ? new TypeLiteral([fakePropertySignature], []) : Union$1.make(candidates);
25081
- es.push([stepKey++, new Composite(errorAst, input, new Pointer(name, input, new Missing(fakePropertySignature)))]);
25082
25001
  }
25083
- }
25084
- else {
25085
- const errorAst = searchTree.candidates.length === astTypesLen ? ast : Union$1.make(searchTree.candidates);
25086
- es.push([stepKey++, new Type(errorAst, input)]);
25002
+ else {
25003
+ const errorAst = searchTree.candidates.length === astTypesLen ? ast : Union$1.make(searchTree.candidates);
25004
+ es.push([stepKey++, new Type(errorAst, input)]);
25005
+ }
25087
25006
  }
25088
25007
  if (searchTree.otherwise.length > 0) candidates = candidates.concat(searchTree.otherwise);
25089
25008
  let queue = void 0;
25090
25009
  for (let i = 0; i < candidates.length; i++) {
25091
25010
  const candidate = candidates[i];
25092
25011
  const pr = map.get(candidate)(input, options);
25093
- if (isEither(pr) && (!queue || queue.length === 0)) if (isRight(pr)) return pr;
25094
- else es.push([stepKey++, pr.left]);
25095
- else {
25012
+ if (isEither(pr) && (!queue || queue.length === 0)) {
25013
+ if (isRight(pr)) return pr;
25014
+ else es.push([stepKey++, pr.left]);
25015
+ } else {
25096
25016
  const nk = stepKey++;
25097
25017
  if (!queue) queue = [];
25098
25018
  queue.push((state) => suspend$1(() => {
@@ -25525,16 +25445,18 @@ const zero = /*#__PURE__*/ unsafeMakeNormalized(bigint0, 0);
25525
25445
  * @category scaling
25526
25446
  */
25527
25447
  const normalize = (self) => {
25528
- if (self.normalized === void 0) if (self.value === bigint0) self.normalized = zero;
25529
- else {
25530
- const digits = `${self.value}`;
25531
- let trail = 0;
25532
- for (let i = digits.length - 1; i >= 0; i--) if (digits[i] === "0") trail++;
25533
- else break;
25534
- if (trail === 0) self.normalized = self;
25535
- const value = BigInt(digits.substring(0, digits.length - trail));
25536
- const scale = self.scale - trail;
25537
- self.normalized = unsafeMakeNormalized(value, scale);
25448
+ if (self.normalized === void 0) {
25449
+ if (self.value === bigint0) self.normalized = zero;
25450
+ else {
25451
+ const digits = `${self.value}`;
25452
+ let trail = 0;
25453
+ for (let i = digits.length - 1; i >= 0; i--) if (digits[i] === "0") trail++;
25454
+ else break;
25455
+ if (trail === 0) self.normalized = self;
25456
+ const value = BigInt(digits.substring(0, digits.length - trail));
25457
+ const scale = self.scale - trail;
25458
+ self.normalized = unsafeMakeNormalized(value, scale);
25459
+ }
25538
25460
  }
25539
25461
  return self.normalized;
25540
25462
  };
@@ -26331,7 +26253,6 @@ const toDateUtc = toDateUtc$1;
26331
26253
  * @category conversions
26332
26254
  */
26333
26255
  const toEpochMillis = toEpochMillis$1;
26334
- Tag("effect/DateTime/CurrentTimeZone")();
26335
26256
  /**
26336
26257
  * Format a `DateTime` as a UTC ISO string.
26337
26258
  *
@@ -26384,8 +26305,8 @@ const decoder = /*#__PURE__*/ new TextDecoder();
26384
26305
  const encode$3 = (bytes) => {
26385
26306
  const length = bytes.length;
26386
26307
  let result = "";
26387
- let i;
26388
- for (i = 2; i < length; i += 3) {
26308
+ let i = 2;
26309
+ for (; i < length; i += 3) {
26389
26310
  result += base64abc[bytes[i - 2] >> 2];
26390
26311
  result += base64abc[(bytes[i - 2] & 3) << 4 | bytes[i - 1] >> 4];
26391
26312
  result += base64abc[(bytes[i - 1] & 15) << 2 | bytes[i] >> 6];
@@ -28818,9 +28739,10 @@ const TemplateLiteral = (...[head, ...tail]) => {
28818
28739
  const spans = [];
28819
28740
  let h = "";
28820
28741
  let ts = tail;
28821
- if (isSchema(head)) if (isLiteral(head.ast)) h = String(head.ast.literal);
28822
- else ts = [head, ...ts];
28823
- else h = String(head);
28742
+ if (isSchema(head)) {
28743
+ if (isLiteral(head.ast)) h = String(head.ast.literal);
28744
+ else ts = [head, ...ts];
28745
+ } else h = String(head);
28824
28746
  for (let i = 0; i < ts.length; i++) {
28825
28747
  const item = ts[i];
28826
28748
  if (isSchema(item)) {
@@ -28980,50 +28902,50 @@ const instanceOf = (constructor, annotations) => declare((u) => u instanceof con
28980
28902
  * @category primitives
28981
28903
  * @since 3.10.0
28982
28904
  */
28983
- var Undefined = class extends make(undefinedKeyword) {};
28905
+ var Undefined = class extends (/*#__PURE__*/ make(undefinedKeyword)) {};
28984
28906
  /**
28985
28907
  * @category primitives
28986
28908
  * @since 3.10.0
28987
28909
  */
28988
- var Void = class extends make(voidKeyword) {};
28910
+ var Void = class extends (/*#__PURE__*/ make(voidKeyword)) {};
28989
28911
  /**
28990
28912
  * @category primitives
28991
28913
  * @since 3.10.0
28992
28914
  */
28993
- var Null = class extends make($null) {};
28915
+ var Null = class extends (/*#__PURE__*/ make($null)) {};
28994
28916
  /**
28995
28917
  * @category primitives
28996
28918
  * @since 3.10.0
28997
28919
  */
28998
- var Never = class extends make(neverKeyword) {};
28920
+ var Never = class extends (/*#__PURE__*/ make(neverKeyword)) {};
28999
28921
  /**
29000
28922
  * @category primitives
29001
28923
  * @since 3.10.0
29002
28924
  */
29003
- var Unknown = class extends make(unknownKeyword) {};
28925
+ var Unknown = class extends (/*#__PURE__*/ make(unknownKeyword)) {};
29004
28926
  /**
29005
28927
  * @category primitives
29006
28928
  * @since 3.10.0
29007
28929
  */
29008
- var Any = class extends make(anyKeyword) {};
28930
+ var Any = class extends (/*#__PURE__*/ make(anyKeyword)) {};
29009
28931
  /**
29010
28932
  * @category primitives
29011
28933
  * @since 3.10.0
29012
28934
  */
29013
- var BigIntFromSelf = class extends make(bigIntKeyword) {};
28935
+ var BigIntFromSelf = class extends (/*#__PURE__*/ make(bigIntKeyword)) {};
29014
28936
  /**
29015
28937
  * @category primitives
29016
28938
  * @since 3.10.0
29017
28939
  */
29018
- var SymbolFromSelf = class extends make(symbolKeyword) {};
28940
+ var SymbolFromSelf = class extends (/*#__PURE__*/ make(symbolKeyword)) {};
29019
28941
  /** @ignore */
29020
- var String$ = class extends make(stringKeyword) {};
28942
+ var String$ = class extends (/*#__PURE__*/ make(stringKeyword)) {};
29021
28943
  /** @ignore */
29022
- var Number$ = class extends make(numberKeyword) {};
28944
+ var Number$ = class extends (/*#__PURE__*/ make(numberKeyword)) {};
29023
28945
  /** @ignore */
29024
- var Boolean$ = class extends make(booleanKeyword) {};
28946
+ var Boolean$ = class extends (/*#__PURE__*/ make(booleanKeyword)) {};
29025
28947
  /** @ignore */
29026
- var Object$ = class extends make(objectKeyword) {};
28948
+ var Object$ = class extends (/*#__PURE__*/ make(objectKeyword)) {};
29027
28949
  const getDefaultUnionAST = (members) => Union$1.make(members.map((m) => m.ast));
29028
28950
  function makeUnionClass(members, ast = getDefaultUnionAST(members)) {
29029
28951
  return class UnionClass extends make(ast) {
@@ -29388,50 +29310,53 @@ const optionalPropertySignatureAST = (self, options) => {
29388
29310
  const isNullable = options?.nullable;
29389
29311
  const asOption = options?.as == "Option";
29390
29312
  const asOptionEncode = options?.onNoneEncoding ? orElse$3(options.onNoneEncoding) : identity;
29391
- if (isExact) if (defaultValue) if (isNullable) return withConstructorDefault(optionalToRequired(NullOr(self), typeSchema(self), {
29392
- decode: match$7({
29393
- onNone: defaultValue,
29394
- onSome: (a) => a === null ? defaultValue() : a
29395
- }),
29396
- encode: some$1
29397
- }), defaultValue).ast;
29398
- else return withConstructorDefault(optionalToRequired(self, typeSchema(self), {
29399
- decode: match$7({
29400
- onNone: defaultValue,
29401
- onSome: identity
29402
- }),
29403
- encode: some$1
29404
- }), defaultValue).ast;
29405
- else if (asOption) {
29406
- const to = OptionFromSelf_(typeSchema(self));
29407
- if (isNullable) return optionalToRequired(NullOr(self), to, {
29313
+ if (isExact) {
29314
+ if (defaultValue) {
29315
+ if (isNullable) return withConstructorDefault(optionalToRequired(NullOr(self), typeSchema(self), {
29316
+ decode: match$7({
29317
+ onNone: defaultValue,
29318
+ onSome: (a) => a === null ? defaultValue() : a
29319
+ }),
29320
+ encode: some$1
29321
+ }), defaultValue).ast;
29322
+ else return withConstructorDefault(optionalToRequired(self, typeSchema(self), {
29323
+ decode: match$7({
29324
+ onNone: defaultValue,
29325
+ onSome: identity
29326
+ }),
29327
+ encode: some$1
29328
+ }), defaultValue).ast;
29329
+ } else if (asOption) {
29330
+ const to = OptionFromSelf_(typeSchema(self));
29331
+ if (isNullable) return optionalToRequired(NullOr(self), to, {
29332
+ decode: filter$5(isNotNull),
29333
+ encode: asOptionEncode
29334
+ }).ast;
29335
+ else return optionalToRequired(self, to, {
29336
+ decode: identity,
29337
+ encode: identity
29338
+ }).ast;
29339
+ } else if (isNullable) return optionalToOptional(NullOr(self), typeSchema(self), {
29408
29340
  decode: filter$5(isNotNull),
29409
- encode: asOptionEncode
29410
- }).ast;
29411
- else return optionalToRequired(self, to, {
29412
- decode: identity,
29413
29341
  encode: identity
29414
29342
  }).ast;
29415
- } else if (isNullable) return optionalToOptional(NullOr(self), typeSchema(self), {
29416
- decode: filter$5(isNotNull),
29417
- encode: identity
29418
- }).ast;
29419
- else return new PropertySignatureDeclaration(self.ast, true, true, {}, void 0);
29420
- else if (defaultValue) if (isNullable) return withConstructorDefault(optionalToRequired(NullishOr(self), typeSchema(self), {
29421
- decode: match$7({
29422
- onNone: defaultValue,
29423
- onSome: (a) => a == null ? defaultValue() : a
29424
- }),
29425
- encode: some$1
29426
- }), defaultValue).ast;
29427
- else return withConstructorDefault(optionalToRequired(UndefinedOr(self), typeSchema(self), {
29428
- decode: match$7({
29429
- onNone: defaultValue,
29430
- onSome: (a) => a === void 0 ? defaultValue() : a
29431
- }),
29432
- encode: some$1
29433
- }), defaultValue).ast;
29434
- else if (asOption) {
29343
+ else return new PropertySignatureDeclaration(self.ast, true, true, {}, void 0);
29344
+ } else if (defaultValue) {
29345
+ if (isNullable) return withConstructorDefault(optionalToRequired(NullishOr(self), typeSchema(self), {
29346
+ decode: match$7({
29347
+ onNone: defaultValue,
29348
+ onSome: (a) => a == null ? defaultValue() : a
29349
+ }),
29350
+ encode: some$1
29351
+ }), defaultValue).ast;
29352
+ else return withConstructorDefault(optionalToRequired(UndefinedOr(self), typeSchema(self), {
29353
+ decode: match$7({
29354
+ onNone: defaultValue,
29355
+ onSome: (a) => a === void 0 ? defaultValue() : a
29356
+ }),
29357
+ encode: some$1
29358
+ }), defaultValue).ast;
29359
+ } else if (asOption) {
29435
29360
  const to = OptionFromSelf_(typeSchema(self));
29436
29361
  if (isNullable) return optionalToRequired(NullishOr(self), to, {
29437
29362
  decode: filter$5((a) => a != null),
@@ -29803,11 +29728,9 @@ const intersectUnionMembers = (xs, ys, path) => flatMap$5(xs, (x) => flatMap$5(y
29803
29728
  }
29804
29729
  }
29805
29730
  break;
29806
- case "Transformation":
29807
- if (isTransformation$1(x)) {
29808
- if (isTypeLiteralTransformation(y.transformation) && isTypeLiteralTransformation(x.transformation)) return [new Transformation$1(intersectTypeLiterals(x.from, y.from, path), intersectTypeLiterals(x.to, y.to, path), new TypeLiteralTransformation(y.transformation.propertySignatureTransformations.concat(x.transformation.propertySignatureTransformations)))];
29809
- } else return intersectUnionMembers([y], [x], path);
29810
- break;
29731
+ case "Transformation": if (isTransformation$1(x)) {
29732
+ if (isTypeLiteralTransformation(y.transformation) && isTypeLiteralTransformation(x.transformation)) return [new Transformation$1(intersectTypeLiterals(x.from, y.from, path), intersectTypeLiterals(x.to, y.to, path), new TypeLiteralTransformation(y.transformation.propertySignatureTransformations.concat(x.transformation.propertySignatureTransformations)))];
29733
+ } else return intersectUnionMembers([y], [x], path);
29811
29734
  }
29812
29735
  throw new Error(getSchemaExtendErrorMessage(x, y, path));
29813
29736
  }));
@@ -30214,7 +30137,7 @@ const lowercased = (annotations) => (self) => self.pipe(filter((a) => a === a.to
30214
30137
  * @category string constructors
30215
30138
  * @since 3.10.0
30216
30139
  */
30217
- var Lowercased = class extends String$.pipe(/*#__PURE__*/ lowercased({ identifier: "Lowercased" })) {};
30140
+ var Lowercased = class extends (/*#__PURE__*/ String$.pipe(/*#__PURE__*/ lowercased({ identifier: "Lowercased" }))) {};
30218
30141
  /**
30219
30142
  * @category schema id
30220
30143
  * @since 3.10.0
@@ -30237,7 +30160,7 @@ const uppercased = (annotations) => (self) => self.pipe(filter((a) => a === a.to
30237
30160
  * @category string constructors
30238
30161
  * @since 3.10.0
30239
30162
  */
30240
- var Uppercased = class extends String$.pipe(/*#__PURE__*/ uppercased({ identifier: "Uppercased" })) {};
30163
+ var Uppercased = class extends (/*#__PURE__*/ String$.pipe(/*#__PURE__*/ uppercased({ identifier: "Uppercased" }))) {};
30241
30164
  /**
30242
30165
  * @category schema id
30243
30166
  * @since 3.10.0
@@ -30260,7 +30183,7 @@ const capitalized = (annotations) => (self) => self.pipe(filter((a) => a[0]?.toU
30260
30183
  * @category string constructors
30261
30184
  * @since 3.10.0
30262
30185
  */
30263
- var Capitalized = class extends String$.pipe(/*#__PURE__*/ capitalized({ identifier: "Capitalized" })) {};
30186
+ var Capitalized = class extends (/*#__PURE__*/ String$.pipe(/*#__PURE__*/ capitalized({ identifier: "Capitalized" }))) {};
30264
30187
  /**
30265
30188
  * @category schema id
30266
30189
  * @since 3.10.0
@@ -30283,14 +30206,14 @@ const uncapitalized = (annotations) => (self) => self.pipe(filter((a) => a[0]?.t
30283
30206
  * @category string constructors
30284
30207
  * @since 3.10.0
30285
30208
  */
30286
- var Uncapitalized = class extends String$.pipe(/*#__PURE__*/ uncapitalized({ identifier: "Uncapitalized" })) {};
30209
+ var Uncapitalized = class extends (/*#__PURE__*/ String$.pipe(/*#__PURE__*/ uncapitalized({ identifier: "Uncapitalized" }))) {};
30287
30210
  /**
30288
30211
  * A schema representing a single character.
30289
30212
  *
30290
30213
  * @category string constructors
30291
30214
  * @since 3.10.0
30292
30215
  */
30293
- var Char = class extends String$.pipe(/*#__PURE__*/ length(1, { identifier: "Char" })) {};
30216
+ var Char = class extends (/*#__PURE__*/ String$.pipe(/*#__PURE__*/ length(1, { identifier: "Char" }))) {};
30294
30217
  /**
30295
30218
  * @category string filters
30296
30219
  * @since 3.10.0
@@ -30306,49 +30229,49 @@ const nonEmptyString = (annotations) => minLength(1, {
30306
30229
  * @category string transformations
30307
30230
  * @since 3.10.0
30308
30231
  */
30309
- var Lowercase = class extends transform(String$.annotations({ description: "a string that will be converted to lowercase" }), Lowercased, {
30232
+ var Lowercase = class extends (/*#__PURE__*/ transform(String$.annotations({ description: "a string that will be converted to lowercase" }), Lowercased, {
30310
30233
  strict: true,
30311
30234
  decode: (i) => i.toLowerCase(),
30312
30235
  encode: identity
30313
- }).annotations({ identifier: "Lowercase" }) {};
30236
+ }).annotations({ identifier: "Lowercase" })) {};
30314
30237
  /**
30315
30238
  * This schema converts a string to uppercase.
30316
30239
  *
30317
30240
  * @category string transformations
30318
30241
  * @since 3.10.0
30319
30242
  */
30320
- var Uppercase = class extends transform(String$.annotations({ description: "a string that will be converted to uppercase" }), Uppercased, {
30243
+ var Uppercase = class extends (/*#__PURE__*/ transform(String$.annotations({ description: "a string that will be converted to uppercase" }), Uppercased, {
30321
30244
  strict: true,
30322
30245
  decode: (i) => i.toUpperCase(),
30323
30246
  encode: identity
30324
- }).annotations({ identifier: "Uppercase" }) {};
30247
+ }).annotations({ identifier: "Uppercase" })) {};
30325
30248
  /**
30326
30249
  * This schema converts a string to capitalized one.
30327
30250
  *
30328
30251
  * @category string transformations
30329
30252
  * @since 3.10.0
30330
30253
  */
30331
- var Capitalize = class extends transform(String$.annotations({ description: "a string that will be converted to a capitalized format" }), Capitalized, {
30254
+ var Capitalize = class extends (/*#__PURE__*/ transform(String$.annotations({ description: "a string that will be converted to a capitalized format" }), Capitalized, {
30332
30255
  strict: true,
30333
30256
  decode: (i) => capitalize(i),
30334
30257
  encode: identity
30335
- }).annotations({ identifier: "Capitalize" }) {};
30258
+ }).annotations({ identifier: "Capitalize" })) {};
30336
30259
  /**
30337
30260
  * This schema converts a string to uncapitalized one.
30338
30261
  *
30339
30262
  * @category string transformations
30340
30263
  * @since 3.10.0
30341
30264
  */
30342
- var Uncapitalize = class extends transform(String$.annotations({ description: "a string that will be converted to an uncapitalized format" }), Uncapitalized, {
30265
+ var Uncapitalize = class extends (/*#__PURE__*/ transform(String$.annotations({ description: "a string that will be converted to an uncapitalized format" }), Uncapitalized, {
30343
30266
  strict: true,
30344
30267
  decode: (i) => uncapitalize(i),
30345
30268
  encode: identity
30346
- }).annotations({ identifier: "Uncapitalize" }) {};
30269
+ }).annotations({ identifier: "Uncapitalize" })) {};
30347
30270
  /**
30348
30271
  * @category string constructors
30349
30272
  * @since 3.10.0
30350
30273
  */
30351
- var Trimmed = class extends String$.pipe(/*#__PURE__*/ trimmed({ identifier: "Trimmed" })) {};
30274
+ var Trimmed = class extends (/*#__PURE__*/ String$.pipe(/*#__PURE__*/ trimmed({ identifier: "Trimmed" }))) {};
30352
30275
  /**
30353
30276
  * Useful for validating strings that must contain meaningful characters without
30354
30277
  * leading or trailing whitespace.
@@ -30365,18 +30288,18 @@ var Trimmed = class extends String$.pipe(/*#__PURE__*/ trimmed({ identifier: "Tr
30365
30288
  * @category string constructors
30366
30289
  * @since 3.10.0
30367
30290
  */
30368
- var NonEmptyTrimmedString = class extends Trimmed.pipe(/*#__PURE__*/ nonEmptyString({ identifier: "NonEmptyTrimmedString" })) {};
30291
+ var NonEmptyTrimmedString = class extends (/*#__PURE__*/ Trimmed.pipe(/*#__PURE__*/ nonEmptyString({ identifier: "NonEmptyTrimmedString" }))) {};
30369
30292
  /**
30370
30293
  * This schema allows removing whitespaces from the beginning and end of a string.
30371
30294
  *
30372
30295
  * @category string transformations
30373
30296
  * @since 3.10.0
30374
30297
  */
30375
- var Trim = class extends transform(String$.annotations({ description: "a string that will be trimmed" }), Trimmed, {
30298
+ var Trim = class extends (/*#__PURE__*/ transform(String$.annotations({ description: "a string that will be trimmed" }), Trimmed, {
30376
30299
  strict: true,
30377
30300
  decode: (i) => i.trim(),
30378
30301
  encode: identity
30379
- }).annotations({ identifier: "Trim" }) {};
30302
+ }).annotations({ identifier: "Trim" })) {};
30380
30303
  /**
30381
30304
  * Returns a schema that allows splitting a string into an array of strings.
30382
30305
  *
@@ -30428,7 +30351,7 @@ const parseJson = (schemaOrOptions, o) => isSchema(schemaOrOptions) ? compose(pa
30428
30351
  * @category string constructors
30429
30352
  * @since 3.10.0
30430
30353
  */
30431
- var NonEmptyString = class extends String$.pipe(/*#__PURE__*/ nonEmptyString({ identifier: "NonEmptyString" })) {};
30354
+ var NonEmptyString = class extends (/*#__PURE__*/ String$.pipe(/*#__PURE__*/ nonEmptyString({ identifier: "NonEmptyString" }))) {};
30432
30355
  /**
30433
30356
  * @category schema id
30434
30357
  * @since 3.10.0
@@ -30443,7 +30366,7 @@ const uuidRegexp = /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}
30443
30366
  * @category string constructors
30444
30367
  * @since 3.10.0
30445
30368
  */
30446
- var UUID = class extends String$.pipe(/*#__PURE__*/ pattern(uuidRegexp, {
30369
+ var UUID = class extends (/*#__PURE__*/ String$.pipe(/*#__PURE__*/ pattern(uuidRegexp, {
30447
30370
  schemaId: UUIDSchemaId,
30448
30371
  identifier: "UUID",
30449
30372
  jsonSchema: {
@@ -30452,7 +30375,7 @@ var UUID = class extends String$.pipe(/*#__PURE__*/ pattern(uuidRegexp, {
30452
30375
  },
30453
30376
  description: "a Universally Unique Identifier",
30454
30377
  arbitrary: () => (fc) => fc.uuid()
30455
- })) {};
30378
+ }))) {};
30456
30379
  /**
30457
30380
  * @category schema id
30458
30381
  * @since 3.10.0
@@ -30468,26 +30391,26 @@ const ulidRegexp = /^[0-7][0-9A-HJKMNP-TV-Z]{25}$/i;
30468
30391
  * @category string constructors
30469
30392
  * @since 3.10.0
30470
30393
  */
30471
- var ULID = class extends String$.pipe(/*#__PURE__*/ pattern(ulidRegexp, {
30394
+ var ULID = class extends (/*#__PURE__*/ String$.pipe(/*#__PURE__*/ pattern(ulidRegexp, {
30472
30395
  schemaId: ULIDSchemaId,
30473
30396
  identifier: "ULID",
30474
30397
  description: "a Universally Unique Lexicographically Sortable Identifier",
30475
30398
  arbitrary: () => (fc) => fc.ulid()
30476
- })) {};
30399
+ }))) {};
30477
30400
  /**
30478
30401
  * Defines a schema that represents a `URL` object.
30479
30402
  *
30480
30403
  * @category URL constructors
30481
30404
  * @since 3.11.0
30482
30405
  */
30483
- var URLFromSelf = class extends instanceOf(URL, {
30406
+ var URLFromSelf = class extends (/*#__PURE__*/ instanceOf(URL, {
30484
30407
  typeConstructor: { _tag: "URL" },
30485
30408
  identifier: "URLFromSelf",
30486
30409
  arbitrary: () => (fc) => fc.webUrl().map((s) => new URL(s)),
30487
30410
  pretty: () => (url) => url.toString()
30488
- }) {};
30411
+ })) {};
30489
30412
  /** @ignore */
30490
- var URL$ = class extends transformOrFail(String$.annotations({ description: "a string to be decoded into a URL" }), URLFromSelf, {
30413
+ var URL$ = class extends (/*#__PURE__*/ transformOrFail(String$.annotations({ description: "a string to be decoded into a URL" }), URLFromSelf, {
30491
30414
  strict: true,
30492
30415
  decode: (i, _, ast) => _try({
30493
30416
  try: () => new URL(i),
@@ -30497,7 +30420,7 @@ var URL$ = class extends transformOrFail(String$.annotations({ description: "a s
30497
30420
  }).annotations({
30498
30421
  identifier: "URL",
30499
30422
  pretty: () => (url) => url.toString()
30500
- }) {};
30423
+ })) {};
30501
30424
  /**
30502
30425
  * @category schema id
30503
30426
  * @since 3.10.0
@@ -30739,42 +30662,42 @@ function parseNumber(self) {
30739
30662
  * @category number transformations
30740
30663
  * @since 3.10.0
30741
30664
  */
30742
- var NumberFromString = class extends parseNumber(String$.annotations({ description: "a string to be decoded into a number" })).annotations({ identifier: "NumberFromString" }) {};
30665
+ var NumberFromString = class extends (/*#__PURE__*/ parseNumber(String$.annotations({ description: "a string to be decoded into a number" })).annotations({ identifier: "NumberFromString" })) {};
30743
30666
  /**
30744
30667
  * @category number constructors
30745
30668
  * @since 3.10.0
30746
30669
  */
30747
- var Finite = class extends Number$.pipe(/*#__PURE__*/ finite({ identifier: "Finite" })) {};
30670
+ var Finite = class extends (/*#__PURE__*/ Number$.pipe(/*#__PURE__*/ finite({ identifier: "Finite" }))) {};
30748
30671
  /**
30749
30672
  * @category number constructors
30750
30673
  * @since 3.10.0
30751
30674
  */
30752
- var Int = class extends Number$.pipe(/*#__PURE__*/ int({ identifier: "Int" })) {};
30675
+ var Int = class extends (/*#__PURE__*/ Number$.pipe(/*#__PURE__*/ int({ identifier: "Int" }))) {};
30753
30676
  /**
30754
30677
  * @category number constructors
30755
30678
  * @since 3.10.0
30756
30679
  */
30757
- var NonNaN = class extends Number$.pipe(/*#__PURE__*/ nonNaN({ identifier: "NonNaN" })) {};
30680
+ var NonNaN = class extends (/*#__PURE__*/ Number$.pipe(/*#__PURE__*/ nonNaN({ identifier: "NonNaN" }))) {};
30758
30681
  /**
30759
30682
  * @category number constructors
30760
30683
  * @since 3.10.0
30761
30684
  */
30762
- var Positive = class extends Number$.pipe(/*#__PURE__*/ positive({ identifier: "Positive" })) {};
30685
+ var Positive = class extends (/*#__PURE__*/ Number$.pipe(/*#__PURE__*/ positive({ identifier: "Positive" }))) {};
30763
30686
  /**
30764
30687
  * @category number constructors
30765
30688
  * @since 3.10.0
30766
30689
  */
30767
- var Negative = class extends Number$.pipe(/*#__PURE__*/ negative({ identifier: "Negative" })) {};
30690
+ var Negative = class extends (/*#__PURE__*/ Number$.pipe(/*#__PURE__*/ negative({ identifier: "Negative" }))) {};
30768
30691
  /**
30769
30692
  * @category number constructors
30770
30693
  * @since 3.10.0
30771
30694
  */
30772
- var NonPositive = class extends Number$.pipe(/*#__PURE__*/ nonPositive({ identifier: "NonPositive" })) {};
30695
+ var NonPositive = class extends (/*#__PURE__*/ Number$.pipe(/*#__PURE__*/ nonPositive({ identifier: "NonPositive" }))) {};
30773
30696
  /**
30774
30697
  * @category number constructors
30775
30698
  * @since 3.10.0
30776
30699
  */
30777
- var NonNegative = class extends Number$.pipe(/*#__PURE__*/ nonNegative({ identifier: "NonNegative" })) {};
30700
+ var NonNegative = class extends (/*#__PURE__*/ Number$.pipe(/*#__PURE__*/ nonNegative({ identifier: "NonNegative" }))) {};
30778
30701
  /**
30779
30702
  * @category schema id
30780
30703
  * @since 3.10.0
@@ -30801,30 +30724,30 @@ const JsonNumberSchemaId = JsonNumberSchemaId$1;
30801
30724
  * @category number constructors
30802
30725
  * @since 3.10.0
30803
30726
  */
30804
- var JsonNumber = class extends Number$.pipe(/*#__PURE__*/ finite({
30727
+ var JsonNumber = class extends (/*#__PURE__*/ Number$.pipe(/*#__PURE__*/ finite({
30805
30728
  schemaId: JsonNumberSchemaId,
30806
30729
  identifier: "JsonNumber"
30807
- })) {};
30730
+ }))) {};
30808
30731
  /**
30809
30732
  * @category boolean transformations
30810
30733
  * @since 3.10.0
30811
30734
  */
30812
- var Not = class extends transform(/*#__PURE__*/ Boolean$.annotations({ description: "a boolean that will be negated" }), Boolean$, {
30735
+ var Not = class extends (/*#__PURE__*/ transform(/*#__PURE__*/ Boolean$.annotations({ description: "a boolean that will be negated" }), Boolean$, {
30813
30736
  strict: true,
30814
30737
  decode: (i) => not(i),
30815
30738
  encode: (a) => not(a)
30816
- }) {};
30739
+ })) {};
30817
30740
  const encodeSymbol = (sym, ast) => {
30818
30741
  const key = Symbol.keyFor(sym);
30819
30742
  return key === void 0 ? fail(new Type(ast, sym, `Unable to encode a unique symbol ${String(sym)} into a string`)) : succeed(key);
30820
30743
  };
30821
30744
  const decodeSymbol = (s) => succeed(Symbol.for(s));
30822
30745
  /** @ignore */
30823
- var Symbol$ = class extends transformOrFail(String$.annotations({ description: "a string to be decoded into a globally shared symbol" }), SymbolFromSelf, {
30746
+ var Symbol$ = class extends (/*#__PURE__*/ transformOrFail(String$.annotations({ description: "a string to be decoded into a globally shared symbol" }), SymbolFromSelf, {
30824
30747
  strict: false,
30825
30748
  decode: (i) => decodeSymbol(i),
30826
30749
  encode: (a, _, ast) => encodeSymbol(a, ast)
30827
- }).annotations({ identifier: "Symbol" }) {};
30750
+ }).annotations({ identifier: "Symbol" })) {};
30828
30751
  /**
30829
30752
  * @category schema id
30830
30753
  * @since 3.10.0
@@ -30955,11 +30878,11 @@ const clampBigInt = (minimum, maximum) => (self) => transform(self, self.pipe(ty
30955
30878
  encode: identity
30956
30879
  });
30957
30880
  /** @ignore */
30958
- var BigInt$ = class extends transformOrFail(String$.annotations({ description: "a string to be decoded into a bigint" }), BigIntFromSelf, {
30881
+ var BigInt$ = class extends (/*#__PURE__*/ transformOrFail(String$.annotations({ description: "a string to be decoded into a bigint" }), BigIntFromSelf, {
30959
30882
  strict: true,
30960
30883
  decode: (i, _, ast) => fromOption(fromString(i), () => new Type(ast, i, `Unable to decode ${JSON.stringify(i)} into a bigint`)),
30961
30884
  encode: (a) => succeed(String(a))
30962
- }).annotations({ identifier: "BigInt" }) {};
30885
+ }).annotations({ identifier: "BigInt" })) {};
30963
30886
  /**
30964
30887
  * @category bigint constructors
30965
30888
  * @since 3.10.0
@@ -31008,11 +30931,11 @@ const NonNegativeBigInt = /*#__PURE__*/ BigInt$.pipe(/*#__PURE__*/ nonNegativeBi
31008
30931
  * @category bigint transformations
31009
30932
  * @since 3.10.0
31010
30933
  */
31011
- var BigIntFromNumber = class extends transformOrFail(Number$.annotations({ description: "a number to be decoded into a bigint" }), BigIntFromSelf.pipe(betweenBigInt(BigInt(Number.MIN_SAFE_INTEGER), BigInt(Number.MAX_SAFE_INTEGER))), {
30934
+ var BigIntFromNumber = class extends (/*#__PURE__*/ transformOrFail(Number$.annotations({ description: "a number to be decoded into a bigint" }), BigIntFromSelf.pipe(betweenBigInt(BigInt(Number.MIN_SAFE_INTEGER), BigInt(Number.MAX_SAFE_INTEGER))), {
31012
30935
  strict: true,
31013
30936
  decode: (i, _, ast) => fromOption(fromNumber(i), () => new Type(ast, i, `Unable to decode ${i} into a bigint`)),
31014
30937
  encode: (a, _, ast) => fromOption(toNumber(a), () => new Type(ast, a, `Unable to encode ${a}n into a number`))
31015
- }).annotations({ identifier: "BigIntFromNumber" }) {};
30938
+ }).annotations({ identifier: "BigIntFromNumber" })) {};
31016
30939
  const redactedArbitrary = (value) => (fc) => value(fc).map(make$1);
31017
30940
  const toComposite = (eff, onSuccess, ast, actual) => mapBoth(eff, {
31018
30941
  onFailure: (e) => new Composite(ast, actual, e),
@@ -31051,13 +30974,13 @@ function Redacted(value$2) {
31051
30974
  * @category Duration constructors
31052
30975
  * @since 3.10.0
31053
30976
  */
31054
- var DurationFromSelf = class extends declare(isDuration, {
30977
+ var DurationFromSelf = class extends (/*#__PURE__*/ declare(isDuration, {
31055
30978
  typeConstructor: { _tag: "effect/Duration" },
31056
30979
  identifier: "DurationFromSelf",
31057
30980
  pretty: () => String,
31058
30981
  arbitrary: () => (fc) => fc.oneof(fc.constant(infinity), fc.bigInt({ min: 0n }).map((_) => nanos(_)), fc.maxSafeNat().map((_) => millis(_))),
31059
30982
  equivalence: () => Equivalence$4
31060
- }) {};
30983
+ })) {};
31061
30984
  /**
31062
30985
  * A schema that transforms a non negative `bigint` into a `Duration`. Treats
31063
30986
  * the value as the number of nanoseconds.
@@ -31065,14 +30988,14 @@ var DurationFromSelf = class extends declare(isDuration, {
31065
30988
  * @category Duration transformations
31066
30989
  * @since 3.10.0
31067
30990
  */
31068
- var DurationFromNanos = class extends transformOrFail(NonNegativeBigIntFromSelf.annotations({ description: "a bigint to be decoded into a Duration" }), DurationFromSelf.pipe(filter((duration) => isFinite(duration), { description: "a finite duration" })), {
30991
+ var DurationFromNanos = class extends (/*#__PURE__*/ transformOrFail(NonNegativeBigIntFromSelf.annotations({ description: "a bigint to be decoded into a Duration" }), DurationFromSelf.pipe(filter((duration) => isFinite(duration), { description: "a finite duration" })), {
31069
30992
  strict: true,
31070
30993
  decode: (i) => succeed(nanos(i)),
31071
30994
  encode: (a, _, ast) => match$7(toNanos(a), {
31072
30995
  onNone: () => fail(new Type(ast, a, `Unable to encode ${a} into a bigint`)),
31073
30996
  onSome: (nanos) => succeed(nanos)
31074
30997
  })
31075
- }).annotations({ identifier: "DurationFromNanos" }) {};
30998
+ }).annotations({ identifier: "DurationFromNanos" })) {};
31076
30999
  /**
31077
31000
  * A non-negative integer. +Infinity is excluded.
31078
31001
  *
@@ -31087,11 +31010,11 @@ const NonNegativeInt = /*#__PURE__*/ NonNegative.pipe(int()).annotations({ ident
31087
31010
  * @category Duration transformations
31088
31011
  * @since 3.10.0
31089
31012
  */
31090
- var DurationFromMillis = class extends transform(NonNegative.annotations({ description: "a non-negative number to be decoded into a Duration" }), DurationFromSelf, {
31013
+ var DurationFromMillis = class extends (/*#__PURE__*/ transform(NonNegative.annotations({ description: "a non-negative number to be decoded into a Duration" }), DurationFromSelf, {
31091
31014
  strict: true,
31092
31015
  decode: (i) => millis(i),
31093
31016
  encode: (a) => toMillis(a)
31094
- }).annotations({ identifier: "DurationFromMillis" }) {};
31017
+ }).annotations({ identifier: "DurationFromMillis" })) {};
31095
31018
  const DurationValueMillis = /*#__PURE__*/ TaggedStruct("Millis", { millis: NonNegativeInt });
31096
31019
  const DurationValueNanos = /*#__PURE__*/ TaggedStruct("Nanos", { nanos: BigInt$ });
31097
31020
  const DurationValueInfinity = /*#__PURE__*/ TaggedStruct("Infinity", {});
@@ -31111,7 +31034,7 @@ const isDurationValue = (u) => typeof u === "object";
31111
31034
  * @category Duration transformations
31112
31035
  * @since 3.10.0
31113
31036
  */
31114
- var Duration = class extends transform(Union(DurationValue, HRTime), DurationFromSelf, {
31037
+ var Duration = class extends (/*#__PURE__*/ transform(Union(DurationValue, HRTime), DurationFromSelf, {
31115
31038
  strict: true,
31116
31039
  decode: (i) => {
31117
31040
  if (isDurationValue(i)) switch (i._tag) {
@@ -31129,7 +31052,7 @@ var Duration = class extends transform(Union(DurationValue, HRTime), DurationFro
31129
31052
  case "Infinity": return durationValueInfinity;
31130
31053
  }
31131
31054
  }
31132
- }).annotations({ identifier: "Duration" }) {};
31055
+ }).annotations({ identifier: "Duration" })) {};
31133
31056
  /**
31134
31057
  * Clamps a `Duration` between a minimum and a maximum value.
31135
31058
  *
@@ -31234,27 +31157,27 @@ const betweenDuration = (minimum, maximum, annotations) => (self) => self.pipe(f
31234
31157
  * @category Uint8Array constructors
31235
31158
  * @since 3.10.0
31236
31159
  */
31237
- var Uint8ArrayFromSelf = class extends declare(isUint8Array, {
31160
+ var Uint8ArrayFromSelf = class extends (/*#__PURE__*/ declare(isUint8Array, {
31238
31161
  typeConstructor: { _tag: "Uint8Array" },
31239
31162
  identifier: "Uint8ArrayFromSelf",
31240
31163
  pretty: () => (u8arr) => `new Uint8Array(${JSON.stringify(Array.from(u8arr))})`,
31241
31164
  arbitrary: () => (fc) => fc.uint8Array(),
31242
31165
  equivalence: () => getEquivalence$4(equals$3)
31243
- }) {};
31166
+ })) {};
31244
31167
  /**
31245
31168
  * @category number constructors
31246
31169
  * @since 3.11.10
31247
31170
  */
31248
- var Uint8 = class extends Number$.pipe(/*#__PURE__*/ between(0, 255, {
31171
+ var Uint8 = class extends (/*#__PURE__*/ Number$.pipe(/*#__PURE__*/ between(0, 255, {
31249
31172
  identifier: "Uint8",
31250
31173
  description: "a 8-bit unsigned integer"
31251
- })) {};
31174
+ }))) {};
31252
31175
  /** @ignore */
31253
- var Uint8Array$ = class extends transform(Array$(Uint8).annotations({ description: "an array of 8-bit unsigned integers to be decoded into a Uint8Array" }), Uint8ArrayFromSelf, {
31176
+ var Uint8Array$ = class extends (/*#__PURE__*/ transform(Array$(Uint8).annotations({ description: "an array of 8-bit unsigned integers to be decoded into a Uint8Array" }), Uint8ArrayFromSelf, {
31254
31177
  strict: true,
31255
31178
  decode: (i) => Uint8Array.from(i),
31256
31179
  encode: (a) => Array.from(a)
31257
- }).annotations({ identifier: "Uint8Array" }) {};
31180
+ }).annotations({ identifier: "Uint8Array" })) {};
31258
31181
  const makeUint8ArrayTransformation = (id, decode, encode) => transformOrFail(String$.annotations({ description: "a string to be decoded into a Uint8Array" }), Uint8ArrayFromSelf, {
31259
31182
  strict: true,
31260
31183
  decode: (i, _, ast) => mapLeft(decode(i), (decodeException) => new Type(ast, i, decodeException.message)),
@@ -31563,7 +31486,7 @@ const DateFromSelfSchemaId = DateFromSelfSchemaId$1;
31563
31486
  * @category Date constructors
31564
31487
  * @since 3.10.0
31565
31488
  */
31566
- var DateFromSelf = class extends declare(isDate, {
31489
+ var DateFromSelf = class extends (/*#__PURE__*/ declare(isDate, {
31567
31490
  typeConstructor: { _tag: "Date" },
31568
31491
  identifier: "DateFromSelf",
31569
31492
  schemaId: DateFromSelfSchemaId,
@@ -31572,7 +31495,7 @@ var DateFromSelf = class extends declare(isDate, {
31572
31495
  pretty: () => (date) => `new Date(${JSON.stringify(date)})`,
31573
31496
  arbitrary: () => (fc) => fc.date({ noInvalidDate: false }),
31574
31497
  equivalence: () => Date$1
31575
- }) {};
31498
+ })) {};
31576
31499
  /**
31577
31500
  * Defines a schema that ensures only valid dates are accepted. This schema
31578
31501
  * rejects values like `new Date("Invalid Date")`, which, despite being a `Date`
@@ -31583,10 +31506,10 @@ var DateFromSelf = class extends declare(isDate, {
31583
31506
  * @category Date constructors
31584
31507
  * @since 3.10.0
31585
31508
  */
31586
- var ValidDateFromSelf = class extends DateFromSelf.pipe(/*#__PURE__*/ validDate({
31509
+ var ValidDateFromSelf = class extends (/*#__PURE__*/ DateFromSelf.pipe(/*#__PURE__*/ validDate({
31587
31510
  identifier: "ValidDateFromSelf",
31588
31511
  description: "a valid Date instance"
31589
- })) {};
31512
+ }))) {};
31590
31513
  /**
31591
31514
  * Defines a schema that attempts to convert a `string` to a `Date` object using
31592
31515
  * the `new Date` constructor. This conversion is lenient, meaning it does not
@@ -31596,13 +31519,13 @@ var ValidDateFromSelf = class extends DateFromSelf.pipe(/*#__PURE__*/ validDate(
31596
31519
  * @category Date transformations
31597
31520
  * @since 3.10.0
31598
31521
  */
31599
- var DateFromString = class extends transform(String$.annotations({ description: "a string to be decoded into a Date" }), DateFromSelf, {
31522
+ var DateFromString = class extends (/*#__PURE__*/ transform(String$.annotations({ description: "a string to be decoded into a Date" }), DateFromSelf, {
31600
31523
  strict: true,
31601
31524
  decode: (i) => new Date(i),
31602
31525
  encode: (a) => formatDate(a)
31603
- }).annotations({ identifier: "DateFromString" }) {};
31526
+ }).annotations({ identifier: "DateFromString" })) {};
31604
31527
  /** @ignore */
31605
- var Date$ = class extends DateFromString.pipe(/*#__PURE__*/ validDate({ identifier: "Date" })) {};
31528
+ var Date$ = class extends (/*#__PURE__*/ DateFromString.pipe(/*#__PURE__*/ validDate({ identifier: "Date" }))) {};
31606
31529
  /**
31607
31530
  * Defines a schema that converts a `number` into a `Date` object using the `new
31608
31531
  * Date` constructor. This schema does not validate the numerical input,
@@ -31613,25 +31536,25 @@ var Date$ = class extends DateFromString.pipe(/*#__PURE__*/ validDate({ identifi
31613
31536
  * @category Date transformations
31614
31537
  * @since 3.10.0
31615
31538
  */
31616
- var DateFromNumber = class extends transform(Number$.annotations({ description: "a number to be decoded into a Date" }), DateFromSelf, {
31539
+ var DateFromNumber = class extends (/*#__PURE__*/ transform(Number$.annotations({ description: "a number to be decoded into a Date" }), DateFromSelf, {
31617
31540
  strict: true,
31618
31541
  decode: (i) => new Date(i),
31619
31542
  encode: (a) => a.getTime()
31620
- }).annotations({ identifier: "DateFromNumber" }) {};
31543
+ }).annotations({ identifier: "DateFromNumber" })) {};
31621
31544
  /**
31622
31545
  * Describes a schema that represents a `DateTime.Utc` instance.
31623
31546
  *
31624
31547
  * @category DateTime.Utc constructors
31625
31548
  * @since 3.10.0
31626
31549
  */
31627
- var DateTimeUtcFromSelf = class extends declare((u) => isDateTime(u) && isUtc(u), {
31550
+ var DateTimeUtcFromSelf = class extends (/*#__PURE__*/ declare((u) => isDateTime(u) && isUtc(u), {
31628
31551
  typeConstructor: { _tag: "effect/DateTime.Utc" },
31629
31552
  identifier: "DateTimeUtcFromSelf",
31630
31553
  description: "a DateTime.Utc instance",
31631
31554
  pretty: () => (dateTime) => dateTime.toString(),
31632
31555
  arbitrary: () => (fc) => fc.date({ noInvalidDate: true }).map((date) => unsafeFromDate(date)),
31633
31556
  equivalence: () => Equivalence
31634
- }) {};
31557
+ })) {};
31635
31558
  const decodeDateTimeUtc = (input, ast) => _try({
31636
31559
  try: () => unsafeMake(input),
31637
31560
  catch: () => new Type(ast, input, `Unable to decode ${formatUnknown(input)} into a DateTime.Utc`)
@@ -31642,36 +31565,36 @@ const decodeDateTimeUtc = (input, ast) => _try({
31642
31565
  * @category DateTime.Utc transformations
31643
31566
  * @since 3.10.0
31644
31567
  */
31645
- var DateTimeUtcFromNumber = class extends transformOrFail(Number$.annotations({ description: "a number to be decoded into a DateTime.Utc" }), DateTimeUtcFromSelf, {
31568
+ var DateTimeUtcFromNumber = class extends (/*#__PURE__*/ transformOrFail(Number$.annotations({ description: "a number to be decoded into a DateTime.Utc" }), DateTimeUtcFromSelf, {
31646
31569
  strict: true,
31647
31570
  decode: (i, _, ast) => decodeDateTimeUtc(i, ast),
31648
31571
  encode: (a) => succeed(toEpochMillis(a))
31649
- }).annotations({ identifier: "DateTimeUtcFromNumber" }) {};
31572
+ }).annotations({ identifier: "DateTimeUtcFromNumber" })) {};
31650
31573
  /**
31651
31574
  * Defines a schema that attempts to convert a `Date` to a `DateTime.Utc` instance using the `DateTime.unsafeMake` constructor.
31652
31575
  *
31653
31576
  * @category DateTime.Utc transformations
31654
31577
  * @since 3.12.0
31655
31578
  */
31656
- var DateTimeUtcFromDate = class extends transformOrFail(DateFromSelf.annotations({ description: "a Date to be decoded into a DateTime.Utc" }), DateTimeUtcFromSelf, {
31579
+ var DateTimeUtcFromDate = class extends (/*#__PURE__*/ transformOrFail(DateFromSelf.annotations({ description: "a Date to be decoded into a DateTime.Utc" }), DateTimeUtcFromSelf, {
31657
31580
  strict: true,
31658
31581
  decode: (i, _, ast) => decodeDateTimeUtc(i, ast),
31659
31582
  encode: (a) => succeed(toDateUtc(a))
31660
- }).annotations({ identifier: "DateTimeUtcFromDate" }) {};
31583
+ }).annotations({ identifier: "DateTimeUtcFromDate" })) {};
31661
31584
  /**
31662
31585
  * Defines a schema that attempts to convert a `string` to a `DateTime.Utc` instance using the `DateTime.unsafeMake` constructor.
31663
31586
  *
31664
31587
  * @category DateTime.Utc transformations
31665
31588
  * @since 3.10.0
31666
31589
  */
31667
- var DateTimeUtc = class extends transformOrFail(String$.annotations({ description: "a string to be decoded into a DateTime.Utc" }), DateTimeUtcFromSelf, {
31590
+ var DateTimeUtc = class extends (/*#__PURE__*/ transformOrFail(String$.annotations({ description: "a string to be decoded into a DateTime.Utc" }), DateTimeUtcFromSelf, {
31668
31591
  strict: true,
31669
31592
  decode: (i, _, ast) => decodeDateTimeUtc(i, ast),
31670
31593
  encode: (a) => succeed(formatIso(a))
31671
- }).annotations({ identifier: "DateTimeUtc" }) {};
31594
+ }).annotations({ identifier: "DateTimeUtc" })) {};
31672
31595
  const timeZoneOffsetArbitrary = () => (fc) => fc.integer({
31673
- min: -720 * 60 * 1e3,
31674
- max: 840 * 60 * 1e3
31596
+ min: -432e5,
31597
+ max: 504e5
31675
31598
  }).map(zoneMakeOffset);
31676
31599
  /**
31677
31600
  * Describes a schema that represents a `TimeZone.Offset` instance.
@@ -31679,24 +31602,24 @@ const timeZoneOffsetArbitrary = () => (fc) => fc.integer({
31679
31602
  * @category TimeZone constructors
31680
31603
  * @since 3.10.0
31681
31604
  */
31682
- var TimeZoneOffsetFromSelf = class extends declare(isTimeZoneOffset, {
31605
+ var TimeZoneOffsetFromSelf = class extends (/*#__PURE__*/ declare(isTimeZoneOffset, {
31683
31606
  typeConstructor: { _tag: "effect/DateTime.TimeZone.Offset" },
31684
31607
  identifier: "TimeZoneOffsetFromSelf",
31685
31608
  description: "a TimeZone.Offset instance",
31686
31609
  pretty: () => (zone) => zone.toString(),
31687
31610
  arbitrary: timeZoneOffsetArbitrary
31688
- }) {};
31611
+ })) {};
31689
31612
  /**
31690
31613
  * Defines a schema that converts a `number` to a `TimeZone.Offset` instance using the `DateTime.zoneMakeOffset` constructor.
31691
31614
  *
31692
31615
  * @category TimeZone transformations
31693
31616
  * @since 3.10.0
31694
31617
  */
31695
- var TimeZoneOffset = class extends transform(Number$.annotations({ description: "a number to be decoded into a TimeZone.Offset" }), TimeZoneOffsetFromSelf, {
31618
+ var TimeZoneOffset = class extends (/*#__PURE__*/ transform(Number$.annotations({ description: "a number to be decoded into a TimeZone.Offset" }), TimeZoneOffsetFromSelf, {
31696
31619
  strict: true,
31697
31620
  decode: (i) => zoneMakeOffset(i),
31698
31621
  encode: (a) => a.offset
31699
- }).annotations({ identifier: "TimeZoneOffset" }) {};
31622
+ }).annotations({ identifier: "TimeZoneOffset" })) {};
31700
31623
  const timeZoneNamedArbitrary = () => (fc) => fc.constantFrom(...Intl.supportedValuesOf("timeZone")).map(zoneUnsafeMakeNamed);
31701
31624
  /**
31702
31625
  * Describes a schema that represents a `TimeZone.Named` instance.
@@ -31704,46 +31627,46 @@ const timeZoneNamedArbitrary = () => (fc) => fc.constantFrom(...Intl.supportedVa
31704
31627
  * @category TimeZone constructors
31705
31628
  * @since 3.10.0
31706
31629
  */
31707
- var TimeZoneNamedFromSelf = class extends declare(isTimeZoneNamed, {
31630
+ var TimeZoneNamedFromSelf = class extends (/*#__PURE__*/ declare(isTimeZoneNamed, {
31708
31631
  typeConstructor: { _tag: "effect/DateTime.TimeZone.Named" },
31709
31632
  identifier: "TimeZoneNamedFromSelf",
31710
31633
  description: "a TimeZone.Named instance",
31711
31634
  pretty: () => (zone) => zone.toString(),
31712
31635
  arbitrary: timeZoneNamedArbitrary
31713
- }) {};
31636
+ })) {};
31714
31637
  /**
31715
31638
  * Defines a schema that attempts to convert a `string` to a `TimeZone.Named` instance using the `DateTime.zoneUnsafeMakeNamed` constructor.
31716
31639
  *
31717
31640
  * @category TimeZone transformations
31718
31641
  * @since 3.10.0
31719
31642
  */
31720
- var TimeZoneNamed = class extends transformOrFail(String$.annotations({ description: "a string to be decoded into a TimeZone.Named" }), TimeZoneNamedFromSelf, {
31643
+ var TimeZoneNamed = class extends (/*#__PURE__*/ transformOrFail(String$.annotations({ description: "a string to be decoded into a TimeZone.Named" }), TimeZoneNamedFromSelf, {
31721
31644
  strict: true,
31722
31645
  decode: (i, _, ast) => _try({
31723
31646
  try: () => zoneUnsafeMakeNamed(i),
31724
31647
  catch: () => new Type(ast, i, `Unable to decode ${JSON.stringify(i)} into a TimeZone.Named`)
31725
31648
  }),
31726
31649
  encode: (a) => succeed(a.id)
31727
- }).annotations({ identifier: "TimeZoneNamed" }) {};
31650
+ }).annotations({ identifier: "TimeZoneNamed" })) {};
31728
31651
  /**
31729
31652
  * @category TimeZone constructors
31730
31653
  * @since 3.10.0
31731
31654
  */
31732
- var TimeZoneFromSelf = class extends Union(TimeZoneOffsetFromSelf, TimeZoneNamedFromSelf) {};
31655
+ var TimeZoneFromSelf = class extends (/*#__PURE__*/ Union(TimeZoneOffsetFromSelf, TimeZoneNamedFromSelf)) {};
31733
31656
  /**
31734
31657
  * Defines a schema that attempts to convert a `string` to a `TimeZone` using the `DateTime.zoneFromString` constructor.
31735
31658
  *
31736
31659
  * @category TimeZone transformations
31737
31660
  * @since 3.10.0
31738
31661
  */
31739
- var TimeZone = class extends transformOrFail(String$.annotations({ description: "a string to be decoded into a TimeZone" }), TimeZoneFromSelf, {
31662
+ var TimeZone = class extends (/*#__PURE__*/ transformOrFail(String$.annotations({ description: "a string to be decoded into a TimeZone" }), TimeZoneFromSelf, {
31740
31663
  strict: true,
31741
31664
  decode: (i, _, ast) => match$7(zoneFromString(i), {
31742
31665
  onNone: () => fail(new Type(ast, i, `Unable to decode ${JSON.stringify(i)} into a TimeZone`)),
31743
31666
  onSome: succeed
31744
31667
  }),
31745
31668
  encode: (a) => succeed(zoneToString(a))
31746
- }).annotations({ identifier: "TimeZone" }) {};
31669
+ }).annotations({ identifier: "TimeZone" })) {};
31747
31670
  const timeZoneArbitrary = (fc) => fc.oneof(timeZoneOffsetArbitrary()(fc), timeZoneNamedArbitrary()(fc));
31748
31671
  /**
31749
31672
  * Describes a schema that represents a `DateTime.Zoned` instance.
@@ -31751,7 +31674,7 @@ const timeZoneArbitrary = (fc) => fc.oneof(timeZoneOffsetArbitrary()(fc), timeZo
31751
31674
  * @category DateTime.Zoned constructors
31752
31675
  * @since 3.10.0
31753
31676
  */
31754
- var DateTimeZonedFromSelf = class extends declare((u) => isDateTime(u) && isZoned(u), {
31677
+ var DateTimeZonedFromSelf = class extends (/*#__PURE__*/ declare((u) => isDateTime(u) && isZoned(u), {
31755
31678
  typeConstructor: { _tag: "effect/DateTime.Zoned" },
31756
31679
  identifier: "DateTimeZonedFromSelf",
31757
31680
  description: "a DateTime.Zoned instance",
@@ -31761,21 +31684,21 @@ var DateTimeZonedFromSelf = class extends declare((u) => isDateTime(u) && isZone
31761
31684
  max: 31536e9
31762
31685
  }), timeZoneArbitrary(fc)).map(([millis, timeZone]) => unsafeMakeZoned(millis, { timeZone })),
31763
31686
  equivalence: () => Equivalence
31764
- }) {};
31687
+ })) {};
31765
31688
  /**
31766
31689
  * Defines a schema that attempts to convert a `string` to a `DateTime.Zoned` instance.
31767
31690
  *
31768
31691
  * @category DateTime.Zoned transformations
31769
31692
  * @since 3.10.0
31770
31693
  */
31771
- var DateTimeZoned = class extends transformOrFail(String$.annotations({ description: "a string to be decoded into a DateTime.Zoned" }), DateTimeZonedFromSelf, {
31694
+ var DateTimeZoned = class extends (/*#__PURE__*/ transformOrFail(String$.annotations({ description: "a string to be decoded into a DateTime.Zoned" }), DateTimeZonedFromSelf, {
31772
31695
  strict: true,
31773
31696
  decode: (i, _, ast) => match$7(makeZonedFromString(i), {
31774
31697
  onNone: () => fail(new Type(ast, i, `Unable to decode ${JSON.stringify(i)} into a DateTime.Zoned`)),
31775
31698
  onSome: succeed
31776
31699
  }),
31777
31700
  encode: (a) => succeed(formatIsoZoned(a))
31778
- }).annotations({ identifier: "DateTimeZoned" }) {};
31701
+ }).annotations({ identifier: "DateTimeZoned" })) {};
31779
31702
  const OptionNoneEncoded = /*#__PURE__*/ Struct({ _tag: Literal("None") }).annotations({ description: "NoneEncoded" });
31780
31703
  const optionSomeEncoded = (value) => Struct({
31781
31704
  _tag: Literal("Some"),
@@ -31880,11 +31803,11 @@ function OptionFromUndefinedOr(value) {
31880
31803
  * @category Option transformations
31881
31804
  * @since 3.10.0
31882
31805
  */
31883
- var OptionFromNonEmptyTrimmedString = class extends transform(String$, /*#__PURE__*/ OptionFromSelf(NonEmptyTrimmedString), {
31806
+ var OptionFromNonEmptyTrimmedString = class extends (/*#__PURE__*/ transform(String$, /*#__PURE__*/ OptionFromSelf(NonEmptyTrimmedString), {
31884
31807
  strict: true,
31885
31808
  decode: (i) => filter$5(some$1(i.trim()), isNonEmpty$1),
31886
31809
  encode: (a) => getOrElse(a, () => "")
31887
- }) {};
31810
+ })) {};
31888
31811
  const rightEncoded = (right) => Struct({
31889
31812
  _tag: Literal("Right"),
31890
31813
  right
@@ -31907,7 +31830,7 @@ const eitherPretty = (right, left) => match$8({
31907
31830
  onRight: (a) => `right(${right(a)})`
31908
31831
  });
31909
31832
  const eitherParse = (parseRight, decodeUnknownLeft) => (u, options, ast) => isEither$1(u) ? match$8(u, {
31910
- onLeft: (left$2) => toComposite(decodeUnknownLeft(left$2, options), left, ast, u),
31833
+ onLeft: (left$3) => toComposite(decodeUnknownLeft(left$3, options), left, ast, u),
31911
31834
  onRight: (right$3) => toComposite(parseRight(right$3, options), right, ast, u)
31912
31835
  }) : fail(new Type(ast, u));
31913
31836
  /**
@@ -31968,9 +31891,9 @@ const Either = ({ left, right }) => {
31968
31891
  * @category Either transformations
31969
31892
  * @since 3.10.0
31970
31893
  */
31971
- const EitherFromUnion = ({ left: left$3, right: right$2 }) => {
31894
+ const EitherFromUnion = ({ left: left$2, right: right$2 }) => {
31972
31895
  const right_ = asSchema(right$2);
31973
- const left_ = asSchema(left$3);
31896
+ const left_ = asSchema(left$2);
31974
31897
  const toright = typeSchema(right_);
31975
31898
  const toleft = typeSchema(left_);
31976
31899
  const fromRight = transform(right_, rightEncoded(toright), {
@@ -32140,25 +32063,25 @@ const bigDecimalArbitrary = () => (fc) => fc.tuple(fc.bigInt(), fc.integer({
32140
32063
  * @category BigDecimal constructors
32141
32064
  * @since 3.10.0
32142
32065
  */
32143
- var BigDecimalFromSelf = class extends declare(isBigDecimal, {
32066
+ var BigDecimalFromSelf = class extends (/*#__PURE__*/ declare(isBigDecimal, {
32144
32067
  typeConstructor: { _tag: "effect/BigDecimal" },
32145
32068
  identifier: "BigDecimalFromSelf",
32146
32069
  pretty: bigDecimalPretty,
32147
32070
  arbitrary: bigDecimalArbitrary,
32148
32071
  equivalence: () => Equivalence$1
32149
- }) {};
32072
+ })) {};
32150
32073
  /**
32151
32074
  * @category BigDecimal transformations
32152
32075
  * @since 3.10.0
32153
32076
  */
32154
- var BigDecimal = class extends transformOrFail(String$.annotations({ description: "a string to be decoded into a BigDecimal" }), BigDecimalFromSelf, {
32077
+ var BigDecimal = class extends (/*#__PURE__*/ transformOrFail(String$.annotations({ description: "a string to be decoded into a BigDecimal" }), BigDecimalFromSelf, {
32155
32078
  strict: true,
32156
32079
  decode: (i, _, ast) => fromString$1(i).pipe(match$7({
32157
32080
  onNone: () => fail(new Type(ast, i, `Unable to decode ${JSON.stringify(i)} into a BigDecimal`)),
32158
32081
  onSome: (val) => succeed(normalize(val))
32159
32082
  })),
32160
32083
  encode: (a) => succeed(format$1(normalize(a)))
32161
- }).annotations({ identifier: "BigDecimal" }) {};
32084
+ }).annotations({ identifier: "BigDecimal" })) {};
32162
32085
  /**
32163
32086
  * A schema that transforms a `number` into a `BigDecimal`.
32164
32087
  * When encoding, this Schema will produce incorrect results if the BigDecimal exceeds the 64-bit range of a number.
@@ -32166,11 +32089,11 @@ var BigDecimal = class extends transformOrFail(String$.annotations({ description
32166
32089
  * @category BigDecimal transformations
32167
32090
  * @since 3.10.0
32168
32091
  */
32169
- var BigDecimalFromNumber = class extends transform(Number$.annotations({ description: "a number to be decoded into a BigDecimal" }), BigDecimalFromSelf, {
32092
+ var BigDecimalFromNumber = class extends (/*#__PURE__*/ transform(Number$.annotations({ description: "a number to be decoded into a BigDecimal" }), BigDecimalFromSelf, {
32170
32093
  strict: true,
32171
32094
  decode: (i) => unsafeFromNumber(i),
32172
32095
  encode: (a) => unsafeToNumber(a)
32173
- }).annotations({ identifier: "BigDecimalFromNumber" }) {};
32096
+ }).annotations({ identifier: "BigDecimalFromNumber" })) {};
32174
32097
  /**
32175
32098
  * @category schema id
32176
32099
  * @since 3.10.0
@@ -32754,12 +32677,12 @@ const fiberIdPretty = (fiberId) => {
32754
32677
  * @category FiberId constructors
32755
32678
  * @since 3.10.0
32756
32679
  */
32757
- var FiberIdFromSelf = class extends declare(isFiberId, {
32680
+ var FiberIdFromSelf = class extends (/*#__PURE__*/ declare(isFiberId, {
32758
32681
  typeConstructor: { _tag: "effect/FiberId" },
32759
32682
  identifier: "FiberIdFromSelf",
32760
32683
  pretty: () => fiberIdPretty,
32761
32684
  arbitrary: () => fiberIdArbitrary
32762
- }) {};
32685
+ })) {};
32763
32686
  const fiberIdDecode = (input) => {
32764
32687
  switch (input._tag) {
32765
32688
  case "None": return none$2;
@@ -32786,11 +32709,11 @@ const fiberIdEncode = (input) => {
32786
32709
  * @category FiberId transformations
32787
32710
  * @since 3.10.0
32788
32711
  */
32789
- var FiberId = class extends transform(FiberIdEncoded, FiberIdFromSelf, {
32712
+ var FiberId = class extends (/*#__PURE__*/ transform(FiberIdEncoded, FiberIdFromSelf, {
32790
32713
  strict: true,
32791
32714
  decode: (i) => fiberIdDecode(i),
32792
32715
  encode: (a) => fiberIdEncode(a)
32793
- }).annotations({ identifier: "FiberId" }) {};
32716
+ }).annotations({ identifier: "FiberId" })) {};
32794
32717
  const causeDieEncoded = (defect) => Struct({
32795
32718
  _tag: Literal("Die"),
32796
32719
  defect
@@ -32944,7 +32867,7 @@ const Cause = ({ defect, error }) => {
32944
32867
  * @category defect
32945
32868
  * @since 3.10.0
32946
32869
  */
32947
- var Defect = class extends transform(Unknown, Unknown, {
32870
+ var Defect = class extends (/*#__PURE__*/ transform(Unknown, Unknown, {
32948
32871
  strict: true,
32949
32872
  decode: (i) => {
32950
32873
  if (isObject(i) && "message" in i && typeof i.message === "string") {
@@ -32962,7 +32885,7 @@ var Defect = class extends transform(Unknown, Unknown, {
32962
32885
  };
32963
32886
  return prettyErrorMessage(a);
32964
32887
  }
32965
- }).annotations({ identifier: "Defect" }) {};
32888
+ }).annotations({ identifier: "Defect" })) {};
32966
32889
  const exitFailureEncoded = (error, defect) => Struct({
32967
32890
  _tag: Literal("Failure"),
32968
32891
  cause: causeEncoded(error, defect)
@@ -33196,11 +33119,11 @@ function SortedSet(value, ordA) {
33196
33119
  * @category boolean constructors
33197
33120
  * @since 3.10.0
33198
33121
  */
33199
- var BooleanFromUnknown = class extends transform(Unknown, Boolean$, {
33122
+ var BooleanFromUnknown = class extends (/*#__PURE__*/ transform(Unknown, Boolean$, {
33200
33123
  strict: true,
33201
33124
  decode: (i) => isTruthy(i),
33202
33125
  encode: identity
33203
- }).annotations({ identifier: "BooleanFromUnknown" }) {};
33126
+ }).annotations({ identifier: "BooleanFromUnknown" })) {};
33204
33127
  /**
33205
33128
  * Converts an `string` value into its corresponding `boolean`
33206
33129
  * ("true" as `true` and "false" as `false`).
@@ -33208,11 +33131,11 @@ var BooleanFromUnknown = class extends transform(Unknown, Boolean$, {
33208
33131
  * @category boolean transformations
33209
33132
  * @since 3.11.0
33210
33133
  */
33211
- var BooleanFromString = class extends transform(Literal("true", "false").annotations({ description: "a string to be decoded into a boolean" }), Boolean$, {
33134
+ var BooleanFromString = class extends (/*#__PURE__*/ transform(Literal("true", "false").annotations({ description: "a string to be decoded into a boolean" }), Boolean$, {
33212
33135
  strict: true,
33213
33136
  decode: (i) => i === "true",
33214
33137
  encode: (a) => a ? "true" : "false"
33215
- }).annotations({ identifier: "BooleanFromString" }) {};
33138
+ }).annotations({ identifier: "BooleanFromString" })) {};
33216
33139
  /**
33217
33140
  * @category Config validations
33218
33141
  * @since 3.10.0
@@ -33492,18 +33415,18 @@ const SymbolFromStruct = /*#__PURE__*/ transformOrFail(SymbolStruct, SymbolFromS
33492
33415
  encode: (a, _, ast) => map$1(encodeSymbol(a, ast), (key) => SymbolStruct.make({ key }))
33493
33416
  });
33494
33417
  /** @ignore */
33495
- var PropertyKey$ = class extends Union(String$, Number$, SymbolFromStruct).annotations({ identifier: "PropertyKey" }) {};
33418
+ var PropertyKey$ = class extends (/*#__PURE__*/ Union(String$, Number$, SymbolFromStruct).annotations({ identifier: "PropertyKey" })) {};
33496
33419
  /**
33497
33420
  * @category ArrayFormatter
33498
33421
  * @since 3.12.5
33499
33422
  */
33500
- var ArrayFormatterIssue = class extends Struct({
33423
+ var ArrayFormatterIssue = class extends (/*#__PURE__*/ Struct({
33501
33424
  _tag: propertySignature(Literal("Pointer", "Unexpected", "Missing", "Composite", "Refinement", "Transformation", "Type", "Forbidden")).annotations({ description: "The tag identifying the type of parse issue" }),
33502
33425
  path: propertySignature(Array$(PropertyKey$)).annotations({ description: "The path to the property where the issue occurred" }),
33503
33426
  message: propertySignature(String$).annotations({ description: "A descriptive message explaining the issue" })
33504
33427
  }).annotations({
33505
33428
  identifier: "ArrayFormatterIssue",
33506
33429
  description: "Represents an issue returned by the ArrayFormatter formatter"
33507
- }) {};
33430
+ })) {};
33508
33431
  //#endregion
33509
33432
  export { fiberIdWith as $, findFirst$1 as $a, combine$5 as $i, isDieType as $n, NodeInspectSymbol as $o, catchAll$1 as $r, sync as $t, all as A, toArray$1 as Aa, onInterrupt$1 as Ai, scoped$1 as An, fromNullable as Ao, bindTo as Ar, orDie as At, catchSome as B, merge$1 as Ba, withFiberRuntime$1 as Bi, addFinalizer$1 as Bn, orElse$3 as Bo, allLevels as Br, retry as Bt, decodeSync as C, map$10 as Ca, fiberRefUnsafeMake as Ci, TaggedError$1 as Cn, splitAt as Co, mapBoth$2 as Cr, match as Ct, acquireRelease as D, reverse$1 as Da, interruptFiber as Di, mergeAll as Dn, empty$24 as Do, zip$1 as Dr, negate as Dt, _void as E, reduce$6 as Ea, interruptAsFiber as Ei, fromEffect as En, unsafeGet$3 as Eo, void_ as Er, matchEffect as Et, cached as F, Reference as Fa, tap$1 as Fi, updateContext as Fn, isOption as Fo, set$2 as Fr, provideService as Ft, die as G, append$1 as Ga, of as Gi, make$5 as Gn, isEither$1 as Go, CommitPrototype as Gr, scopeWith as Gt, catchTags as H, isConfigError as Ha, DeferredTypeId as Hi, close as Hn, boolean as Ho, updateAs as Hr, runSync as Ht, catchAll as I, Tag as Ia, uninterruptible$1 as Ii, forkIn$1 as In, isSome as Io, update$1 as Ir, race as It, ensuring as J, drop$1 as Ja, get$5 as Ji, fail$2 as Jn, merge$3 as Jo, consoleTag as Jr, serviceFunctions as Jt, dieMessage as K, appendAll$2 as Ka, empty$16 as Ki, NoSuchElementException as Kn, left as Ko, currentServices as Kr, scoped as Kt, catchAllCause as L, add$2 as La, uninterruptibleMask$2 as Li, makeSynchronized as Ln, map$12 as Lo, updateAndGet as Lr, raceWith as Lt, as as M, unsafeGet as Ma, succeed$5 as Mi, updateEffect as Mn, getOrThrow as Mo, get$1 as Mr, orElseFail as Mt, asVoid as N, unsafeHead as Na, suspend$3 as Ni, unsafeFork as Nn, getOrUndefined as No, make$15 as Nr, promise as Nt, acquireUseRelease as O, take as Oa, interruptible$2 as Oi, provide$1 as On, filter$5 as Oo, zipRight$1 as Or, onError as Ot, async as P, GenericTag as Pa, sync$1 as Pi, unsafeRunPromiseExit as Pn, isNone as Po, modify as Pr, provide as Pt, failSync as Q, filterMap as Qa, set$4 as Qi, interruptors as Qn, Class$5 as Qo, asyncInterrupt as Qr, suspend$1 as Qt, catchAllDefect as R, get$9 as Ra, void_$2 as Ri, unsafeMakeSemaphore$1 as Rn, match$7 as Ro, get$2 as Rr, repeat as Rt, redactedRegistry as S, isEmpty$5 as Sa, fiberRefLocally as Si, Error$1 as Sn, span as So, map$5 as Sr, pipe as Ss, mapInputContext as St, is as T, prepend$1 as Ta, interrupt$2 as Ti, taggedEnum as Tn, take$1 as To, succeed$3 as Tr, matchCauseEffect as Tt, context as U, isMissingDataOnly as Ua, cons as Ui, extend$1 as Un, mapInput as Uo, sequential$1 as Ur, runtime as Ut, catchTag as V, omit$3 as Va, zipRight$2 as Vi, addFinalizerExit as Vn, some$1 as Vo, getOrDefault as Vr, runFork as Vt, contextWithEffect as W, allocate as Wa, isNil as Wi, fork as Wn, string$2 as Wo, Class$4 as Wr, scope as Wt, fail$1 as X, every$1 as Xa, isEmpty$3 as Xi, flipCauseOption as Xn, pipeArguments as Xo, as$1 as Xr, sleep as Xt, exit as Y, empty$23 as Ya, has$4 as Yi, failureOrCause as Yn, right as Yo, round as Yr, serviceOption as Yt, failCause as Z, filter$4 as Za, make$24 as Zi, interrupt$1 as Zn, BaseProto as Zo, asVoid$1 as Zr, succeed$1 as Zt, optional as _, drop as _a, exitVoid$1 as _i, zipLeft as _n, prepend$2 as _o, all$2 as _r, constTrue as _s, logWarning as _t, Literal as a, make$27 as aa, deferredFailCause as ai, tryPromise as an, head$2 as ao, currentLoggers as ar, equals$3 as as, forEach as at, isConfig as b, fromIterable$9 as ba, fiberRefGet as bi, spaced as bn, some as bo, failCause$1 as br, dual as bs, mapBoth$1 as bt, Record as c, fromIterable$6 as ca, deferredIsDone as ci, uninterruptibleMask as cn, isEmptyReadonlyArray as co, ensuring$1 as cr, combine$7 as cs, forkScoped as ct, TaggedError as d, size$3 as da, deferredUnsafeDone as di, unsafeMakeSemaphore as dn, make$36 as do, scopeTag as dr, symbol$1 as ds, interrupt as dt, combineAll as ea, currentContext as ei, tap as en, findFirstIndex as eo, isInterrupted as er, format$4 as es, filter$1 as et, Union as f, decode$4 as fa, deferredUnsafeMake as fi, useSpan as fn, map$11 as fo, prettyLoggerDefault as fr, hasProperty as fs, interruptible as ft, int as g, appendAll$1 as ga, exitSucceed$1 as gi, zip as gn, of$2 as go, join as gr, constFalse as gs, logError as gt, decodeUnknown as h, append as ha, exitFailCause$1 as hi, withParentSpan as hn, matchRight as ho, interruptAllAs as hr, globalValue as hs, locally as ht, Int as i, get$6 as ia, deferredFail as ii, tryMap as in, getSomes as io, squash as ir, toStringUnknown as is, fnUntraced as it, annotateLogs as j, unsafeFromArray as ja, scopeClose as ji, succeed$2 as jn, getOrElse as jo, sleep$1 as jr, orElse$1 as jt, addFinalizer as k, takeRight as ka, map$6 as ki, provideMerge as kn, flatMap$6 as ko, bind as kr, onInterrupt as kt, Schema_exports as l, has$5 as la, deferredMake as li, unlessEffect as ln, isNonEmptyReadonlyArray as lo, forEachConcurrentDiscard as lr, hash as ls, gen as lt, declare as m, seconds as ma, exitFail as mi, withFiberRuntime as mn, matchLeft as mo, inheritAll as mr, isTagged as ms, isEffect as mt, Date$ as n, make$25 as na, deferredAwait as ni, tapErrorCause as nn, flatMap$5 as no, map$4 as nr, symbolRedactable as ns, flatMap$1 as nt, Number$ as o, set$5 as oa, deferredInterrupt as oi, try_ as on, headNonEmpty$2 as oo, currentMinimumLogLevel as or, symbol as os, forkDaemon as ot, compose as p, isFinite as pa, exitAs as pi, when as pn, match$6 as po, _await as pr, isObject as ps, intoDeferred as pt, either as q, contains as qa, fromIterable$5 as qi, die$1 as qn, match$8 as qo, spanTag as qr, scopedWith as qt, Defect as r, none$2 as ra, deferredComplete as ri, timeout as rn, fromIterable$10 as ro, reduceWithContext as rr, toJSON as rs, flatten$1 as rt, NumberFromString as s, add as sa, deferredInterruptWith as si, uninterruptible as sn, isArray as so, defaultLogger as sr, cached$1 as ss, forkIn as st, Cause as t, ids as ta, currentTracerEnabled as ti, tapError as tn, findLast as to, isInterruptedOnly as tr, redact as ts, filterOrDieMessage as tt, String$ as u, remove as ua, deferredSucceed as ui, unsafeMakeLatch as un, join$1 as uo, scopeMake as ur, string$3 as us, ignore as ut, transform as v, empty$20 as va, exitZipRight as vi, zipRight as vn, reduce$7 as vo, die$2 as vr, constUndefined as vs, makeSemaphore as vt, encodeSync as w, of$1 as wa, flatMap$3 as wi, tagged as wn, tailNonEmpty$1 as wo, match$1 as wr, matchCause as wt, proto$1 as x, isChunk as xa, fiberRefGetWith as xi, Equivalence$2 as xn, sort as xo, isFailure as xr, identity as xs, mapError$1 as xt, make$1 as y, filter$3 as ya, fiberId as yi, zipWith as yn, reduceRight as yo, fail$3 as yr, constVoid as ys, map$2 as yt, catchIf as z, getOption$1 as za, whenEffect as zi, Scope as zn, none$4 as zo, TypeId$6 as zr, repeatN as zt };