free-pi-cli 0.2.2 → 0.2.3

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 (2) hide show
  1. package/dist/index.js +469 -410
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -14501,7 +14501,10 @@ var ConfigSchema = exports_external.object({
14501
14501
  abuseRestrictedCapUsd: exports_external.number().default(0.5),
14502
14502
  abuseRestrictedHourlyCap: exports_external.number().int().default(5),
14503
14503
  abuseNormalHourlyCap: exports_external.number().int().default(30),
14504
- abuseFlipAlertThreshold: exports_external.number().int().default(10)
14504
+ abuseFlipAlertThreshold: exports_external.number().int().default(10),
14505
+ abuseAdBypassMinRequests: exports_external.number().int().default(20),
14506
+ abuseAdBypassRatio: exports_external.number().int().default(10),
14507
+ traceMaxInflightWrites: exports_external.number().int().default(32)
14505
14508
  });
14506
14509
  function envNumber(value) {
14507
14510
  if (value === undefined || value === "")
@@ -14557,7 +14560,10 @@ function loadConfig(env = process.env) {
14557
14560
  abuseRestrictedCapUsd: envNumber(env.ABUSE_RESTRICTED_CAP_USD),
14558
14561
  abuseRestrictedHourlyCap: envNumber(env.ABUSE_RESTRICTED_HOURLY_CAP),
14559
14562
  abuseNormalHourlyCap: envNumber(env.ABUSE_NORMAL_HOURLY_CAP),
14560
- abuseFlipAlertThreshold: envNumber(env.ABUSE_FLIP_ALERT_THRESHOLD)
14563
+ abuseFlipAlertThreshold: envNumber(env.ABUSE_FLIP_ALERT_THRESHOLD),
14564
+ abuseAdBypassMinRequests: envNumber(env.ABUSE_AD_BYPASS_MIN_REQUESTS),
14565
+ abuseAdBypassRatio: envNumber(env.ABUSE_AD_BYPASS_RATIO),
14566
+ traceMaxInflightWrites: envNumber(env.TRACE_MAX_INFLIGHT_WRITES)
14561
14567
  });
14562
14568
  }
14563
14569
  // ../shared/src/version.ts
@@ -14835,7 +14841,7 @@ import { join as join2, resolve } from "node:path";
14835
14841
  // package.json
14836
14842
  var package_default = {
14837
14843
  name: "free-pi-cli",
14838
- version: "0.2.2",
14844
+ version: "0.2.3",
14839
14845
  description: "Free, ad-supported distribution of the pi coding agent. Inference paid for by ads.",
14840
14846
  license: "MIT",
14841
14847
  type: "module",
@@ -14895,7 +14901,7 @@ function buildProviderConfig(baseUrl, jwt2, sessionId) {
14895
14901
  };
14896
14902
  }
14897
14903
 
14898
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/system/memory/memory.mjs
14904
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/system/memory/memory.mjs
14899
14905
  var exports_memory = {};
14900
14906
  __export(exports_memory, {
14901
14907
  Update: () => Update,
@@ -14906,7 +14912,7 @@ __export(exports_memory, {
14906
14912
  Assign: () => Assign
14907
14913
  });
14908
14914
 
14909
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/system/memory/metrics.mjs
14915
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/system/memory/metrics.mjs
14910
14916
  var Metrics = {
14911
14917
  assign: 0,
14912
14918
  create: 0,
@@ -14915,16 +14921,18 @@ var Metrics = {
14915
14921
  update: 0
14916
14922
  };
14917
14923
 
14918
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/system/memory/assign.mjs
14924
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/system/memory/assign.mjs
14919
14925
  function Assign(left, right) {
14920
14926
  Metrics.assign += 1;
14921
14927
  return { ...left, ...right };
14922
14928
  }
14923
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/guard/guard.mjs
14929
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/guard/guard.mjs
14924
14930
  var exports_guard = {};
14925
14931
  __export(exports_guard, {
14926
14932
  Values: () => Values,
14927
14933
  Symbols: () => Symbols,
14934
+ SomeAll: () => SomeAll,
14935
+ Some: () => Some,
14928
14936
  ShiftLeft: () => ShiftLeft,
14929
14937
  Keys: () => Keys,
14930
14938
  IsValueLike: () => IsValueLike,
@@ -14957,10 +14965,11 @@ __export(exports_guard, {
14957
14965
  EveryAll: () => EveryAll,
14958
14966
  Every: () => Every,
14959
14967
  EntriesRegExp: () => EntriesRegExp,
14960
- Entries: () => Entries
14968
+ Entries: () => Entries,
14969
+ Counted: () => Counted
14961
14970
  });
14962
14971
 
14963
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/guard/string.mjs
14972
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/guard/string.mjs
14964
14973
  function IsBetween(value, min, max) {
14965
14974
  return value >= min && value <= max;
14966
14975
  }
@@ -14997,7 +15006,7 @@ function NextGraphemeClusterIndex(value, clusterStart) {
14997
15006
  const startCP = value.codePointAt(clusterStart);
14998
15007
  let clusterEnd = clusterStart + CodePointLength(startCP);
14999
15008
  clusterEnd = ConsumeModifiers(value, clusterEnd);
15000
- while (clusterEnd < value.length - 1 && value[clusterEnd] === "‍") {
15009
+ while (clusterEnd < value.length - 1 && IsZeroWidthJoiner(value.codePointAt(clusterEnd))) {
15001
15010
  const nextCP = value.codePointAt(clusterEnd + 1);
15002
15011
  clusterEnd += 1 + CodePointLength(nextCP);
15003
15012
  clusterEnd = ConsumeModifiers(value, clusterEnd);
@@ -15019,7 +15028,7 @@ function GraphemeCount(value) {
15019
15028
  }
15020
15029
  return count;
15021
15030
  }
15022
- function IsMinLength(value, minLength) {
15031
+ function IsMinLengthSegmented(value, minLength) {
15023
15032
  if (minLength === 0)
15024
15033
  return true;
15025
15034
  let count = 0;
@@ -15032,7 +15041,7 @@ function IsMinLength(value, minLength) {
15032
15041
  }
15033
15042
  return false;
15034
15043
  }
15035
- function IsMaxLength(value, maxLength) {
15044
+ function IsMaxLengthSegmented(value, maxLength) {
15036
15045
  let count = 0;
15037
15046
  let index = 0;
15038
15047
  while (index < value.length) {
@@ -15043,13 +15052,13 @@ function IsMaxLength(value, maxLength) {
15043
15052
  }
15044
15053
  return true;
15045
15054
  }
15046
- function IsMinLengthFast(value, minLength) {
15055
+ function IsMinLength(value, minLength) {
15047
15056
  if (minLength === 0)
15048
15057
  return true;
15049
15058
  let index = 0;
15050
15059
  while (index < value.length) {
15051
15060
  if (IsGraphemeCodePoint(value.charCodeAt(index))) {
15052
- return IsMinLength(value, minLength);
15061
+ return IsMinLengthSegmented(value, minLength);
15053
15062
  }
15054
15063
  index++;
15055
15064
  if (index >= minLength)
@@ -15057,11 +15066,11 @@ function IsMinLengthFast(value, minLength) {
15057
15066
  }
15058
15067
  return false;
15059
15068
  }
15060
- function IsMaxLengthFast(value, maxLength) {
15069
+ function IsMaxLength(value, maxLength) {
15061
15070
  let index = 0;
15062
15071
  while (index < value.length) {
15063
15072
  if (IsGraphemeCodePoint(value.charCodeAt(index))) {
15064
- return IsMaxLength(value, maxLength);
15073
+ return IsMaxLengthSegmented(value, maxLength);
15065
15074
  }
15066
15075
  index++;
15067
15076
  if (index > maxLength)
@@ -15070,7 +15079,7 @@ function IsMaxLengthFast(value, maxLength) {
15070
15079
  return true;
15071
15080
  }
15072
15081
 
15073
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/guard/guard.mjs
15082
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/guard/guard.mjs
15074
15083
  function IsArray(value) {
15075
15084
  return Array.isArray(value);
15076
15085
  }
@@ -15159,10 +15168,10 @@ function GraphemeCount2(value) {
15159
15168
  return GraphemeCount(value);
15160
15169
  }
15161
15170
  function IsMaxLength2(value, length) {
15162
- return IsMaxLengthFast(value, length);
15171
+ return IsMaxLength(value, length);
15163
15172
  }
15164
15173
  function IsMinLength2(value, length) {
15165
- return IsMinLengthFast(value, length);
15174
+ return IsMinLength(value, length);
15166
15175
  }
15167
15176
  function Every(value, offset, callback) {
15168
15177
  for (let index = offset;index < value.length; index++) {
@@ -15179,6 +15188,24 @@ function EveryAll(value, offset, callback) {
15179
15188
  }
15180
15189
  return result;
15181
15190
  }
15191
+ function Some(value, callback) {
15192
+ for (let index = 0;index < value.length; index++) {
15193
+ if (callback(value[index], index))
15194
+ return true;
15195
+ }
15196
+ return false;
15197
+ }
15198
+ function SomeAll(value, callback) {
15199
+ let result = false;
15200
+ for (let index = 0;index < value.length; index++) {
15201
+ if (callback(value[index], index))
15202
+ result = true;
15203
+ }
15204
+ return result;
15205
+ }
15206
+ function Counted(value, callback) {
15207
+ return value.reduce((result, value2, index) => callback(value2, index) ? ++result : result, 0);
15208
+ }
15182
15209
  function ShiftLeft(array2, true_, false_) {
15183
15210
  return IsEqual(array2.length, 0) ? false_() : true_(array2[0], array2.slice(1));
15184
15211
  }
@@ -15215,7 +15242,7 @@ function DeepEqualArray(left, right) {
15215
15242
  function IsDeepEqual(left, right) {
15216
15243
  return IsArray(left) ? DeepEqualArray(left, right) : IsObject(left) ? DeepEqualObject(left, right) : IsEqual(left, right);
15217
15244
  }
15218
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/guard/globals.mjs
15245
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/guard/globals.mjs
15219
15246
  var exports_globals = {};
15220
15247
  __export(exports_globals, {
15221
15248
  IsUint8ClampedArray: () => IsUint8ClampedArray,
@@ -15295,22 +15322,24 @@ function IsSet(value) {
15295
15322
  function IsMap(value) {
15296
15323
  return value instanceof globalThis.Map;
15297
15324
  }
15298
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/system/memory/clone.mjs
15325
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/system/memory/clone.mjs
15299
15326
  function FromClassInstance(value) {
15300
15327
  return value;
15301
15328
  }
15302
- function IsTypeObject(value) {
15329
+ function IsSchemaObject(value) {
15303
15330
  return exports_guard.HasPropertyKey(value, "~kind") || exports_guard.HasPropertyKey(value, "~unsafe");
15304
15331
  }
15305
- function FromTypeObject(value) {
15332
+ function FromSchemaObject(value) {
15306
15333
  const result = {};
15307
- const descriptors = Object.getOwnPropertyDescriptors(value);
15308
- for (const key of Object.keys(descriptors)) {
15334
+ for (const key of exports_guard.Keys(value)) {
15309
15335
  if (exports_guard.IsUnsafePropertyKey(key))
15310
15336
  continue;
15311
- const descriptor = descriptors[key];
15312
- if (exports_guard.HasPropertyKey(descriptor, "value")) {
15313
- Object.defineProperty(result, key, { ...descriptor, value: FromValue(descriptor.value) });
15337
+ const descriptor = Object.getOwnPropertyDescriptor(value, key);
15338
+ descriptor.value = FromValue(descriptor.value);
15339
+ if (exports_guard.IsEqual(descriptor.enumerable, true)) {
15340
+ result[key] = descriptor.value;
15341
+ } else {
15342
+ Object.defineProperty(result, key, descriptor);
15314
15343
  }
15315
15344
  }
15316
15345
  return result;
@@ -15328,7 +15357,7 @@ function FromPlainObject(value) {
15328
15357
  return result;
15329
15358
  }
15330
15359
  function FromObject(value) {
15331
- return exports_guard.IsClassInstance(value) ? FromClassInstance(value) : IsTypeObject(value) ? FromTypeObject(value) : FromPlainObject(value);
15360
+ return exports_guard.IsClassInstance(value) ? FromClassInstance(value) : IsSchemaObject(value) ? FromSchemaObject(value) : FromPlainObject(value);
15332
15361
  }
15333
15362
  function FromArray(value) {
15334
15363
  return value.map((element) => FromValue(element));
@@ -15352,7 +15381,7 @@ function Clone(value) {
15352
15381
  Metrics.clone += 1;
15353
15382
  return FromValue(value);
15354
15383
  }
15355
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/system/settings/settings.mjs
15384
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/system/settings/settings.mjs
15356
15385
  var exports_settings = {};
15357
15386
  __export(exports_settings, {
15358
15387
  Set: () => Set2,
@@ -15362,6 +15391,7 @@ __export(exports_settings, {
15362
15391
  var settings = {
15363
15392
  immutableTypes: false,
15364
15393
  maxErrors: 8,
15394
+ maxInstantiationCount: 128,
15365
15395
  useAcceleration: true,
15366
15396
  exactOptionalPropertyTypes: false,
15367
15397
  enumerableKind: false,
@@ -15371,6 +15401,7 @@ var settings = {
15371
15401
  function Reset() {
15372
15402
  settings.immutableTypes = false;
15373
15403
  settings.maxErrors = 8;
15404
+ settings.maxInstantiationCount = 128;
15374
15405
  settings.useAcceleration = true;
15375
15406
  settings.exactOptionalPropertyTypes = false;
15376
15407
  settings.enumerableKind = false;
@@ -15388,7 +15419,7 @@ function Set2(options) {
15388
15419
  function Get() {
15389
15420
  return settings;
15390
15421
  }
15391
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/system/memory/create.mjs
15422
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/system/memory/create.mjs
15392
15423
  function MergeHidden(left, right) {
15393
15424
  for (const key of Object.keys(right)) {
15394
15425
  Object.defineProperty(left, key, {
@@ -15410,20 +15441,20 @@ function Create(hidden, enumerable, options = {}) {
15410
15441
  const withHidden = settings2.enumerableKind ? Merge(withOptions, hidden) : MergeHidden(withOptions, hidden);
15411
15442
  return settings2.immutableTypes ? Object.freeze(withHidden) : withHidden;
15412
15443
  }
15413
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/system/memory/discard.mjs
15444
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/system/memory/discard.mjs
15414
15445
  function Discard(value, propertyKeys) {
15415
15446
  Metrics.discard += 1;
15416
15447
  const result = {};
15417
- const descriptors = Object.getOwnPropertyDescriptors(Clone(value));
15418
- const keysToDiscard = new Set(propertyKeys);
15419
- for (const key of Object.keys(descriptors)) {
15420
- if (keysToDiscard.has(key))
15448
+ for (const key of exports_guard.Keys(value)) {
15449
+ if (propertyKeys.includes(key))
15421
15450
  continue;
15422
- Object.defineProperty(result, key, descriptors[key]);
15451
+ const descriptor = Object.getOwnPropertyDescriptor(value, key);
15452
+ descriptor.value = Clone(descriptor.value);
15453
+ Object.defineProperty(result, key, descriptor);
15423
15454
  }
15424
15455
  return result;
15425
15456
  }
15426
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/system/memory/update.mjs
15457
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/system/memory/update.mjs
15427
15458
  function Update(current, hidden, enumerable) {
15428
15459
  Metrics.update += 1;
15429
15460
  const settings2 = exports_settings.Get();
@@ -15446,7 +15477,7 @@ function Update(current, hidden, enumerable) {
15446
15477
  }
15447
15478
  return result;
15448
15479
  }
15449
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/schema.mjs
15480
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/schema.mjs
15450
15481
  function IsKind(value, kind) {
15451
15482
  return exports_guard.IsObject(value) && exports_guard.HasPropertyKey(value, "~kind") && exports_guard.IsEqual(value["~kind"], kind);
15452
15483
  }
@@ -15454,7 +15485,7 @@ function IsSchema(value) {
15454
15485
  return exports_guard.IsObject(value);
15455
15486
  }
15456
15487
 
15457
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/deferred.mjs
15488
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/deferred.mjs
15458
15489
  function Deferred(action, parameters, options) {
15459
15490
  return exports_memory.Create({ "~kind": "Deferred" }, { type: "deferred", action, parameters, options }, {});
15460
15491
  }
@@ -15462,7 +15493,7 @@ function IsDeferred(value) {
15462
15493
  return IsKind(value, "Deferred");
15463
15494
  }
15464
15495
 
15465
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs
15496
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs
15466
15497
  function AddReadonlyOperation(type) {
15467
15498
  return exports_memory.Update(type, { "~readonly": true }, {});
15468
15499
  }
@@ -15475,7 +15506,7 @@ function AddReadonlyInstantiate(context, state, type, options) {
15475
15506
  return AddReadonlyAction(instantiatedType, options);
15476
15507
  }
15477
15508
 
15478
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs
15509
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs
15479
15510
  function AddOptionalOperation(type) {
15480
15511
  return exports_memory.Update(type, { "~optional": true }, {});
15481
15512
  }
@@ -15488,7 +15519,7 @@ function AddOptionalInstantiate(context, state, type, options) {
15488
15519
  return AddOptionalAction(instantiatedType, options);
15489
15520
  }
15490
15521
 
15491
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/array.mjs
15522
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/array.mjs
15492
15523
  function _Array_(items, options) {
15493
15524
  return exports_memory.Create({ "~kind": "Array" }, { type: "array", items }, options);
15494
15525
  }
@@ -15499,7 +15530,7 @@ function ArrayOptions(type) {
15499
15530
  return exports_memory.Discard(type, ["~kind", "type", "items"]);
15500
15531
  }
15501
15532
 
15502
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/constructor.mjs
15533
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/constructor.mjs
15503
15534
  function Constructor(parameters, instanceType, options = {}) {
15504
15535
  return exports_memory.Create({ "~kind": "Constructor" }, { type: "constructor", parameters, instanceType }, options);
15505
15536
  }
@@ -15510,7 +15541,7 @@ function ConstructorOptions(type) {
15510
15541
  return exports_memory.Discard(type, ["~kind", "type", "parameters", "instanceType"]);
15511
15542
  }
15512
15543
 
15513
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/function.mjs
15544
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/function.mjs
15514
15545
  function _Function_(parameters, returnType, options = {}) {
15515
15546
  return exports_memory.Create({ ["~kind"]: "Function" }, { type: "function", parameters, returnType }, options);
15516
15547
  }
@@ -15521,7 +15552,7 @@ function FunctionOptions(type) {
15521
15552
  return exports_memory.Discard(type, ["~kind", "type", "parameters", "returnType"]);
15522
15553
  }
15523
15554
 
15524
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/ref.mjs
15555
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/ref.mjs
15525
15556
  function Ref(ref, options) {
15526
15557
  return exports_memory.Create({ ["~kind"]: "Ref" }, { $ref: ref }, options);
15527
15558
  }
@@ -15529,7 +15560,7 @@ function IsRef(value) {
15529
15560
  return IsKind(value, "Ref");
15530
15561
  }
15531
15562
 
15532
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/generic.mjs
15563
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/generic.mjs
15533
15564
  function Generic(parameters, expression) {
15534
15565
  return exports_memory.Create({ "~kind": "Generic" }, { type: "generic", parameters, expression });
15535
15566
  }
@@ -15537,7 +15568,7 @@ function IsGeneric(value) {
15537
15568
  return IsKind(value, "Generic");
15538
15569
  }
15539
15570
 
15540
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/any.mjs
15571
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/any.mjs
15541
15572
  function Any(options) {
15542
15573
  return exports_memory.Create({ ["~kind"]: "Any" }, {}, options);
15543
15574
  }
@@ -15545,7 +15576,7 @@ function IsAny(value) {
15545
15576
  return IsKind(value, "Any");
15546
15577
  }
15547
15578
 
15548
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/never.mjs
15579
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/never.mjs
15549
15580
  var NeverPattern = "(?!)";
15550
15581
  function Never(options) {
15551
15582
  return exports_memory.Create({ "~kind": "Never" }, { not: {} }, options);
@@ -15554,7 +15585,7 @@ function IsNever(value) {
15554
15585
  return IsKind(value, "Never");
15555
15586
  }
15556
15587
 
15557
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/action/_add_optional.mjs
15588
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/_add_optional.mjs
15558
15589
  function AddOptionalDeferred(type, options = {}) {
15559
15590
  return Deferred("AddOptional", [type], options);
15560
15591
  }
@@ -15562,7 +15593,7 @@ function AddOptional(type, options = {}) {
15562
15593
  return AddOptionalAction(type, options);
15563
15594
  }
15564
15595
 
15565
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/_optional.mjs
15596
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/_optional.mjs
15566
15597
  function Optional(type) {
15567
15598
  return AddOptional(type);
15568
15599
  }
@@ -15570,7 +15601,7 @@ function IsOptional(value) {
15570
15601
  return IsSchema(value) && exports_guard.HasPropertyKey(value, "~optional");
15571
15602
  }
15572
15603
 
15573
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/properties.mjs
15604
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/properties.mjs
15574
15605
  function RequiredArray(properties) {
15575
15606
  return exports_guard.Keys(properties).filter((key) => !IsOptional(properties[key]));
15576
15607
  }
@@ -15581,7 +15612,7 @@ function PropertyValues(properties) {
15581
15612
  return exports_guard.Values(properties);
15582
15613
  }
15583
15614
 
15584
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/object.mjs
15615
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/object.mjs
15585
15616
  function _Object_(properties, options = {}) {
15586
15617
  const requiredKeys = RequiredArray(properties);
15587
15618
  const required2 = requiredKeys.length > 0 ? { required: requiredKeys } : {};
@@ -15594,7 +15625,7 @@ function ObjectOptions(type) {
15594
15625
  return exports_memory.Discard(type, ["~kind", "type", "properties", "required"]);
15595
15626
  }
15596
15627
 
15597
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/unknown.mjs
15628
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/unknown.mjs
15598
15629
  function Unknown(options) {
15599
15630
  return exports_memory.Create({ ["~kind"]: "Unknown" }, {}, options);
15600
15631
  }
@@ -15602,7 +15633,7 @@ function IsUnknown(value) {
15602
15633
  return IsKind(value, "Unknown");
15603
15634
  }
15604
15635
 
15605
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/cyclic.mjs
15636
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/cyclic.mjs
15606
15637
  function Cyclic($defs, $ref, options) {
15607
15638
  const defs = exports_guard.Keys($defs).reduce((result, key) => {
15608
15639
  return { ...result, [key]: exports_memory.Update($defs[key], {}, { $id: key }) };
@@ -15613,7 +15644,7 @@ function IsCyclic(value) {
15613
15644
  return IsKind(value, "Cyclic");
15614
15645
  }
15615
15646
 
15616
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/unsafe.mjs
15647
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/unsafe.mjs
15617
15648
  function Unsafe(schema) {
15618
15649
  return exports_memory.Update(schema, { ["~unsafe"]: null }, {});
15619
15650
  }
@@ -15621,7 +15652,7 @@ function IsUnsafe(value) {
15621
15652
  return exports_guard.IsObjectNotArray(value) && exports_guard.HasPropertyKey(value, "~unsafe") && exports_guard.IsNull(value["~unsafe"]);
15622
15653
  }
15623
15654
 
15624
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/system/arguments/arguments.mjs
15655
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/system/arguments/arguments.mjs
15625
15656
  var exports_arguments = {};
15626
15657
  __export(exports_arguments, {
15627
15658
  Match: () => Match
@@ -15631,7 +15662,7 @@ function Match(args, match) {
15631
15662
  throw Error("Invalid Arguments");
15632
15663
  })();
15633
15664
  }
15634
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/infer.mjs
15665
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/infer.mjs
15635
15666
  function Infer(...args) {
15636
15667
  const [name, extends_] = exports_arguments.Match(args, {
15637
15668
  2: (name2, extends_2) => [name2, extends_2, extends_2],
@@ -15643,7 +15674,7 @@ function IsInfer(value) {
15643
15674
  return IsKind(value, "Infer");
15644
15675
  }
15645
15676
 
15646
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/dependent.mjs
15677
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/dependent.mjs
15647
15678
  function Dependent(if_, then_, else_, options = {}) {
15648
15679
  return exports_memory.Create({ "~kind": "Dependent" }, { if: if_, then: then_, else: else_ }, options);
15649
15680
  }
@@ -15654,7 +15685,7 @@ function DependentOptions(type) {
15654
15685
  return exports_memory.Discard(type, ["~kind", "if", "then", "else"]);
15655
15686
  }
15656
15687
 
15657
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.mjs
15688
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.mjs
15658
15689
  function IsTypeScriptEnumLike(value) {
15659
15690
  return exports_guard.IsObjectNotArray(value);
15660
15691
  }
@@ -15663,7 +15694,7 @@ function TypeScriptEnumToEnumValues(type) {
15663
15694
  return keys.reduce((result, key) => [...result, type[key]], []);
15664
15695
  }
15665
15696
 
15666
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/enum.mjs
15697
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/enum.mjs
15667
15698
  function IsEnumValue(value) {
15668
15699
  return exports_guard.IsString(value) || exports_guard.IsNumber(value);
15669
15700
  }
@@ -15675,7 +15706,7 @@ function IsEnum(value) {
15675
15706
  return IsKind(value, "Enum");
15676
15707
  }
15677
15708
 
15678
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/intersect.mjs
15709
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/intersect.mjs
15679
15710
  function Intersect(types, options = {}) {
15680
15711
  return exports_memory.Create({ "~kind": "Intersect" }, { allOf: types }, options);
15681
15712
  }
@@ -15685,11 +15716,11 @@ function IsIntersect(value) {
15685
15716
  function IntersectOptions(type) {
15686
15717
  return exports_memory.Discard(type, ["~kind", "allOf"]);
15687
15718
  }
15688
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/system/unreachable/unreachable.mjs
15719
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/system/unreachable/unreachable.mjs
15689
15720
  function Unreachable() {
15690
15721
  throw new Error("Unreachable");
15691
15722
  }
15692
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/system/hashing/hash.mjs
15723
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/system/hashing/hash.mjs
15693
15724
  var ByteMarker;
15694
15725
  (function(ByteMarker2) {
15695
15726
  ByteMarker2[ByteMarker2["Array"] = 0] = "Array";
@@ -15714,7 +15745,7 @@ var F64 = new Float64Array(1);
15714
15745
  var F64In = new DataView(F64.buffer);
15715
15746
  var F64Out = new Uint8Array(F64.buffer);
15716
15747
  var encoder = new TextEncoder;
15717
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/_codec.mjs
15748
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/_codec.mjs
15718
15749
  class EncodeBuilder {
15719
15750
  constructor(type, decode3) {
15720
15751
  this.type = type;
@@ -15753,14 +15784,14 @@ function Encode(type, callback) {
15753
15784
  function IsCodec(value) {
15754
15785
  return IsSchema(value) && exports_guard.HasPropertyKey(value, "~codec") && exports_guard.IsObject(value["~codec"]) && exports_guard.HasPropertyKey(value["~codec"], "encode") && exports_guard.HasPropertyKey(value["~codec"], "decode");
15755
15786
  }
15756
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/_immutable.mjs
15787
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/_immutable.mjs
15757
15788
  function Immutable(type) {
15758
15789
  return AddImmutable(type);
15759
15790
  }
15760
15791
  function IsImmutable(value) {
15761
15792
  return IsSchema(value) && exports_guard.HasPropertyKey(value, "~immutable");
15762
15793
  }
15763
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/action/_add_readonly.mjs
15794
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/_add_readonly.mjs
15764
15795
  function AddReadonlyDeferred(type, options = {}) {
15765
15796
  return Deferred("AddReadonly", [type], options);
15766
15797
  }
@@ -15768,14 +15799,14 @@ function AddReadonly(type, options = {}) {
15768
15799
  return AddReadonlyAction(type, options);
15769
15800
  }
15770
15801
 
15771
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/_readonly.mjs
15802
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/_readonly.mjs
15772
15803
  function Readonly(type) {
15773
15804
  return AddReadonly(type);
15774
15805
  }
15775
15806
  function IsReadonly(value) {
15776
15807
  return IsSchema(value) && exports_guard.HasPropertyKey(value, "~readonly");
15777
15808
  }
15778
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/_refine.mjs
15809
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/_refine.mjs
15779
15810
  function RefineAdd(type, refinement) {
15780
15811
  const refinements = IsRefine(type) ? [...type["~refine"], refinement] : [refinement];
15781
15812
  return exports_memory.Update(type, { "~refine": refinements }, {});
@@ -15793,7 +15824,7 @@ function IsRefinement(value) {
15793
15824
  function IsRefine(value) {
15794
15825
  return IsSchema(value) && exports_guard.HasPropertyKey(value, "~refine") && exports_guard.IsArray(value["~refine"]) && exports_guard.Every(value["~refine"], 0, (value2) => IsRefinement(value2));
15795
15826
  }
15796
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/bigint.mjs
15827
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/bigint.mjs
15797
15828
  var BigIntPattern = "-?(?:0|[1-9][0-9]*)n";
15798
15829
  function BigInt2(options) {
15799
15830
  return exports_memory.Create({ "~kind": "BigInt" }, { type: "bigint" }, options);
@@ -15801,21 +15832,21 @@ function BigInt2(options) {
15801
15832
  function IsBigInt2(value) {
15802
15833
  return IsKind(value, "BigInt");
15803
15834
  }
15804
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/boolean.mjs
15835
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/boolean.mjs
15805
15836
  function Boolean2(options) {
15806
15837
  return exports_memory.Create({ "~kind": "Boolean" }, { type: "boolean" }, options);
15807
15838
  }
15808
15839
  function IsBoolean3(value) {
15809
15840
  return IsKind(value, "Boolean");
15810
15841
  }
15811
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/identifier.mjs
15842
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/identifier.mjs
15812
15843
  function Identifier(name) {
15813
15844
  return exports_memory.Create({ "~kind": "Identifier" }, { name });
15814
15845
  }
15815
15846
  function IsIdentifier(value) {
15816
15847
  return IsKind(value, "Identifier");
15817
15848
  }
15818
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/integer.mjs
15849
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/integer.mjs
15819
15850
  var IntegerPattern = "-?(?:0|[1-9][0-9]*)";
15820
15851
  function Integer(options) {
15821
15852
  return exports_memory.Create({ "~kind": "Integer" }, { type: "integer" }, options);
@@ -15823,7 +15854,7 @@ function Integer(options) {
15823
15854
  function IsInteger2(value) {
15824
15855
  return IsKind(value, "Integer");
15825
15856
  }
15826
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/literal.mjs
15857
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/literal.mjs
15827
15858
  class InvalidLiteralValue extends Error {
15828
15859
  constructor(value) {
15829
15860
  super(`Invalid Literal value`);
@@ -15855,14 +15886,14 @@ function IsLiteralString(value) {
15855
15886
  function IsLiteral(value) {
15856
15887
  return IsKind(value, "Literal");
15857
15888
  }
15858
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/null.mjs
15889
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/null.mjs
15859
15890
  function Null(options) {
15860
15891
  return exports_memory.Create({ "~kind": "Null" }, { type: "null" }, options);
15861
15892
  }
15862
15893
  function IsNull2(value) {
15863
15894
  return IsKind(value, "Null");
15864
15895
  }
15865
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/number.mjs
15896
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/number.mjs
15866
15897
  var NumberPattern = "-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?";
15867
15898
  function Number2(options) {
15868
15899
  return exports_memory.Create({ "~kind": "Number" }, { type: "number" }, options);
@@ -15870,14 +15901,14 @@ function Number2(options) {
15870
15901
  function IsNumber3(value) {
15871
15902
  return IsKind(value, "Number");
15872
15903
  }
15873
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/symbol.mjs
15904
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/symbol.mjs
15874
15905
  function Symbol2(options) {
15875
15906
  return exports_memory.Create({ "~kind": "Symbol" }, { type: "symbol" }, options);
15876
15907
  }
15877
15908
  function IsSymbol2(value) {
15878
15909
  return IsKind(value, "Symbol");
15879
15910
  }
15880
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/parameter.mjs
15911
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/parameter.mjs
15881
15912
  function Parameter(...args) {
15882
15913
  const [name, extends_, equals] = exports_arguments.Match(args, {
15883
15914
  3: (name2, extends_2, equals2) => [name2, extends_2, equals2],
@@ -15889,7 +15920,7 @@ function Parameter(...args) {
15889
15920
  function IsParameter(value) {
15890
15921
  return IsKind(value, "Parameter");
15891
15922
  }
15892
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/string.mjs
15923
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/string.mjs
15893
15924
  var StringPattern = ".*";
15894
15925
  function String2(options) {
15895
15926
  return exports_memory.Create({ "~kind": "String" }, { type: "string" }, options);
@@ -15898,7 +15929,7 @@ function IsString3(value) {
15898
15929
  return IsKind(value, "String");
15899
15930
  }
15900
15931
 
15901
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/union.mjs
15932
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/union.mjs
15902
15933
  function Union(anyOf, options = {}) {
15903
15934
  return exports_memory.Create({ "~kind": "Union" }, { anyOf }, options);
15904
15935
  }
@@ -15909,14 +15940,14 @@ function UnionOptions(type) {
15909
15940
  return exports_memory.Discard(type, ["~kind", "anyOf"]);
15910
15941
  }
15911
15942
 
15912
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/patterns/pattern.mjs
15943
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/patterns/pattern.mjs
15913
15944
  function ParsePatternIntoTypes(pattern) {
15914
15945
  const parsed = Pattern(pattern);
15915
15946
  const result = exports_guard.IsEqual(parsed.length, 2) ? parsed[0] : [];
15916
15947
  return result;
15917
15948
  }
15918
15949
 
15919
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs
15950
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs
15920
15951
  function FromLiteral(_value) {
15921
15952
  return true;
15922
15953
  }
@@ -15935,12 +15966,12 @@ function IsTemplateLiteralFinite(types) {
15935
15966
  return result;
15936
15967
  }
15937
15968
 
15938
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/template_literal/create.mjs
15969
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/template_literal/create.mjs
15939
15970
  function TemplateLiteralCreate(pattern) {
15940
15971
  return exports_memory.Create({ ["~kind"]: "TemplateLiteral" }, { type: "string", pattern }, {});
15941
15972
  }
15942
15973
 
15943
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/template_literal/decode.mjs
15974
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/template_literal/decode.mjs
15944
15975
  function FromLiteralPush(variants, value, result = []) {
15945
15976
  return exports_guard.ShiftLeft(variants, (left, right) => FromLiteralPush(right, value, [...result, `${left}${value}`]), () => result);
15946
15977
  }
@@ -15980,24 +16011,24 @@ function TemplateLiteralDecode(pattern) {
15980
16011
  return result;
15981
16012
  }
15982
16013
 
15983
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/record/record_create.mjs
16014
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/record/record_create.mjs
15984
16015
  function CreateRecord(key, value) {
15985
16016
  const type = "object";
15986
16017
  const patternProperties = { [key]: value };
15987
16018
  return exports_memory.Create({ ["~kind"]: "Record" }, { type, patternProperties });
15988
16019
  }
15989
16020
 
15990
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/record/from_key_any.mjs
16021
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/record/from_key_any.mjs
15991
16022
  function FromAnyKey(value) {
15992
16023
  return CreateRecord(StringKey, value);
15993
16024
  }
15994
16025
 
15995
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/record/from_key_boolean.mjs
16026
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/record/from_key_boolean.mjs
15996
16027
  function FromBooleanKey(value) {
15997
16028
  return _Object_({ true: value, false: value });
15998
16029
  }
15999
16030
 
16000
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/tuple.mjs
16031
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/tuple.mjs
16001
16032
  function Tuple(types, options = {}) {
16002
16033
  const [items, minItems, additionalItems] = [types, types.length, false];
16003
16034
  return exports_memory.Create({ ["~kind"]: "Tuple" }, { type: "array", additionalItems, items, minItems }, options);
@@ -16009,7 +16040,7 @@ function TupleOptions(type) {
16009
16040
  return exports_memory.Discard(type, ["~kind", "type", "items", "minItems", "additionalItems"]);
16010
16041
  }
16011
16042
 
16012
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs
16043
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs
16013
16044
  function RemoveReadonlyOperation(type) {
16014
16045
  return exports_memory.Discard(type, ["~readonly"]);
16015
16046
  }
@@ -16022,7 +16053,7 @@ function RemoveReadonlyInstantiate(context, state, type, options) {
16022
16053
  return RemoveReadonlyAction(instantiatedType, options);
16023
16054
  }
16024
16055
 
16025
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/action/_remove_readonly.mjs
16056
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/_remove_readonly.mjs
16026
16057
  function RemoveReadonlyDeferred(type, options = {}) {
16027
16058
  return Deferred("RemoveReadonly", [type], options);
16028
16059
  }
@@ -16030,7 +16061,7 @@ function RemoveReadonly(type, options = {}) {
16030
16061
  return RemoveReadonlyAction(type, options);
16031
16062
  }
16032
16063
 
16033
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs
16064
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs
16034
16065
  function RemoveOptionalOperation(type) {
16035
16066
  return exports_memory.Discard(type, ["~optional"]);
16036
16067
  }
@@ -16043,7 +16074,7 @@ function RemoveOptionalInstantiate(context, state, type, options) {
16043
16074
  return RemoveOptionalAction(instantiatedType, options);
16044
16075
  }
16045
16076
 
16046
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/action/_remove_optional.mjs
16077
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/_remove_optional.mjs
16047
16078
  function RemoveOptionalDeferred(type, options = {}) {
16048
16079
  return Deferred("RemoveOptional", [type], options);
16049
16080
  }
@@ -16051,7 +16082,7 @@ function RemoveOptional(type, options = {}) {
16051
16082
  return RemoveOptionalAction(type, options);
16052
16083
  }
16053
16084
 
16054
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/tuple/to_object.mjs
16085
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/tuple/to_object.mjs
16055
16086
  function TupleElementsToProperties(types) {
16056
16087
  const result = types.reduceRight((result2, right, index) => {
16057
16088
  return { [index]: right, ...result2 };
@@ -16064,7 +16095,10 @@ function TupleToObject(type) {
16064
16095
  return result;
16065
16096
  }
16066
16097
 
16067
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/evaluate/composite.mjs
16098
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/evaluate/composite.mjs
16099
+ function CanComposite(type) {
16100
+ return IsObject2(type) || IsTuple(type);
16101
+ }
16068
16102
  function IsReadonlyProperty(left, right) {
16069
16103
  return IsReadonly(left) ? IsReadonly(right) ? true : false : false;
16070
16104
  }
@@ -16082,49 +16116,52 @@ function CompositePropertyKey(left, right, key) {
16082
16116
  return key in left ? key in right ? CompositeProperty(left[key], right[key]) : left[key] : (key in right) ? right[key] : Never();
16083
16117
  }
16084
16118
  function CompositeProperties(left, right) {
16085
- const keys = new Set([...exports_guard.Keys(right), ...exports_guard.Keys(left)]);
16086
- return [...keys].reduce((result, key) => {
16087
- return { ...result, [key]: CompositePropertyKey(left, right, key) };
16119
+ const keys = new Set([...exports_guard.Keys(left), ...exports_guard.Keys(right)]);
16120
+ const result = [...keys].reduce((result2, key) => {
16121
+ return { ...result2, [key]: CompositePropertyKey(left, right, key) };
16088
16122
  }, {});
16123
+ return result;
16089
16124
  }
16090
16125
  function GetProperties(type) {
16091
- const result = IsObject2(type) ? type.properties : IsTuple(type) ? TupleElementsToProperties(type.items) : Unreachable();
16126
+ const result = IsObject2(type) ? type.properties : IsTuple(type) ? TupleElementsToProperties(type.items) : {};
16092
16127
  return result;
16093
16128
  }
16094
16129
  function Composite(left, right) {
16095
16130
  const leftProperties = GetProperties(left);
16096
16131
  const rightProperties = GetProperties(right);
16097
16132
  const properties = CompositeProperties(leftProperties, rightProperties);
16098
- return _Object_(properties);
16133
+ const result = _Object_(properties);
16134
+ return result;
16099
16135
  }
16100
16136
 
16101
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/evaluate/narrow.mjs
16102
- function Narrow(left, right) {
16137
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/evaluate/narrow.mjs
16138
+ function NarrowCompareRule(left, right) {
16103
16139
  const result = Compare(left, right);
16104
- return exports_guard.IsEqual(result, ResultLeftInside) ? left : exports_guard.IsEqual(result, ResultRightInside) ? right : exports_guard.IsEqual(result, ResultEqual) ? right : Never();
16140
+ return exports_guard.IsEqual(result, CompareResultLeftInside) ? left : exports_guard.IsEqual(result, CompareResultRightInside) ? right : exports_guard.IsEqual(result, CompareResultEqual) ? right : Never();
16105
16141
  }
16106
-
16107
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/evaluate/distribute.mjs
16108
- function IsObjectLike(type) {
16109
- return IsObject2(type) || IsTuple(type);
16142
+ function NarrowCompositeRule(left, right) {
16143
+ const canCompositeLeft = CanComposite(left);
16144
+ const canCompositeRight = CanComposite(right);
16145
+ return canCompositeLeft && canCompositeRight ? Composite(left, right) : canCompositeLeft && !canCompositeRight ? left : !canCompositeLeft && canCompositeRight ? right : NarrowCompareRule(left, right);
16146
+ }
16147
+ function Narrow(left, right) {
16148
+ return IsNever(left) ? left : IsAny(left) ? left : IsUnknown(left) ? right : IsNever(right) ? right : IsAny(right) ? right : IsUnknown(right) ? left : NarrowCompositeRule(left, right);
16110
16149
  }
16111
- function IsUnionOperand(left, right) {
16112
- const isUnionLeft = IsUnion(left);
16113
- const isUnionRight = IsUnion(right);
16114
- const result = isUnionLeft || isUnionRight;
16150
+
16151
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/evaluate/distribute.mjs
16152
+ function ShouldEvaluate(left, right) {
16153
+ const result = IsUnion(left) || IsUnion(right);
16115
16154
  return result;
16116
16155
  }
16117
16156
  function DistributeOperation(left, right) {
16118
16157
  const evaluatedLeft = EvaluateType(left);
16119
16158
  const evaluatedRight = EvaluateType(right);
16120
- const isUnionOperand = IsUnionOperand(evaluatedLeft, evaluatedRight);
16121
- const isObjectLeft = IsObjectLike(evaluatedLeft);
16122
- const IsObjectRight = IsObjectLike(evaluatedRight);
16123
- const result = isUnionOperand ? EvaluateIntersect([evaluatedLeft, evaluatedRight]) : isObjectLeft && IsObjectRight ? Composite(evaluatedLeft, evaluatedRight) : isObjectLeft && !IsObjectRight ? evaluatedLeft : !isObjectLeft && IsObjectRight ? evaluatedRight : Narrow(evaluatedLeft, evaluatedRight);
16159
+ const shouldEvaluate = ShouldEvaluate(evaluatedLeft, evaluatedRight);
16160
+ const result = shouldEvaluate ? EvaluateIntersect([evaluatedLeft, evaluatedRight]) : Narrow(evaluatedLeft, evaluatedRight);
16124
16161
  return result;
16125
16162
  }
16126
16163
  function DistributeType(type, types, result = []) {
16127
- return exports_guard.ShiftLeft(types, (left, right) => DistributeType(type, right, [...result, DistributeOperation(type, left)]), () => exports_guard.IsEqual(result.length, 0) ? [type] : result);
16164
+ return exports_guard.ShiftLeft(types, (left, right) => DistributeType(type, right, [...result, DistributeOperation(left, type)]), () => exports_guard.IsEqual(result.length, 0) ? [type] : result);
16128
16165
  }
16129
16166
  function DistributeUnion(types, distribution, result = []) {
16130
16167
  return exports_guard.ShiftLeft(types, (left, right) => DistributeUnion(right, distribution, [...result, ...Distribute([left], distribution)]), () => result);
@@ -16133,16 +16170,14 @@ function Distribute(types, result = []) {
16133
16170
  return exports_guard.ShiftLeft(types, (left, right) => IsUnion(left) ? Distribute(right, DistributeUnion(left.anyOf, result)) : Distribute(right, DistributeType(left, result)), () => result);
16134
16171
  }
16135
16172
 
16136
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/exclude/operation.mjs
16173
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/exclude/operation.mjs
16137
16174
  function ExcludeType(left, right) {
16138
16175
  const check2 = Extends({}, left, right);
16139
16176
  const result = exports_result.IsExtendsTrueLike(check2) ? [] : [left];
16140
16177
  return result;
16141
16178
  }
16142
- function ExcludeUnion(types, right) {
16143
- return types.reduce((result, head) => {
16144
- return [...result, ...ExcludeType(head, right)];
16145
- }, []);
16179
+ function ExcludeUnion(left, right, result = []) {
16180
+ return exports_guard.ShiftLeft(left, (head, tail) => ExcludeUnion(tail, right, [...result, ...ExcludeType(head, right)]), () => result);
16146
16181
  }
16147
16182
  function ExcludeOperation(left, right) {
16148
16183
  const evaluated = EvaluateType(left);
@@ -16152,21 +16187,20 @@ function ExcludeOperation(left, right) {
16152
16187
  return result;
16153
16188
  }
16154
16189
 
16155
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs
16190
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs
16156
16191
  function EvaluateDependent(if_, then_, else_) {
16157
- const intersect = Intersect([if_, then_]);
16192
+ const intersected = EvaluateIntersect([if_, then_]);
16158
16193
  const excluded = ExcludeOperation(else_, if_);
16159
- const result = EvaluateUnion([intersect, excluded]);
16194
+ const result = EvaluateUnion([intersected, excluded]);
16160
16195
  return result;
16161
16196
  }
16162
- function EvaluateEnum(values) {
16163
- const result = values.map((value) => Literal(value));
16164
- return EvaluateUnion(result);
16197
+ function EvaluateEnum(values, result = []) {
16198
+ return exports_guard.ShiftLeft(values, (left, right) => EvaluateEnum(right, [...result, Literal(left)]), () => EvaluateUnion(result));
16165
16199
  }
16166
16200
  function EvaluateIntersect(types) {
16167
16201
  const distribution = Distribute(types);
16168
16202
  const broadend = Broaden(distribution);
16169
- const result = EvaluateUnionFast(broadend);
16203
+ const result = EvaluateUnion(broadend);
16170
16204
  return result;
16171
16205
  }
16172
16206
  function EvaluateTemplateLiteral(pattern) {
@@ -16180,50 +16214,51 @@ function EvaluateUnion(types) {
16180
16214
  return result;
16181
16215
  }
16182
16216
  function EvaluateType(type) {
16183
- return IsDependent(type) ? EvaluateDependent(type.if, type.then, type.else) : IsEnum(type) ? EvaluateEnum(type.enum) : IsIntersect(type) ? EvaluateIntersect(type.allOf) : IsTemplateLiteral(type) ? EvaluateTemplateLiteral(type.pattern) : IsUnion(type) ? EvaluateUnion(type.anyOf) : type;
16217
+ const result = IsDependent(type) ? EvaluateDependent(type.if, type.then, type.else) : IsEnum(type) ? EvaluateEnum(type.enum) : IsIntersect(type) ? EvaluateIntersect(type.allOf) : IsTemplateLiteral(type) ? EvaluateTemplateLiteral(type.pattern) : IsUnion(type) ? EvaluateUnion(type.anyOf) : type;
16218
+ return result;
16184
16219
  }
16185
16220
  function EvaluateUnionFast(types) {
16186
16221
  const result = exports_guard.IsEqual(types.length, 1) ? types[0] : exports_guard.IsEqual(types.length, 0) ? Never() : Union(types);
16187
16222
  return result;
16188
16223
  }
16189
16224
 
16190
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/record/from_key_enum.mjs
16225
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/record/from_key_enum.mjs
16191
16226
  function FromEnumKey(values, value) {
16192
16227
  const unionKey = EvaluateEnum(values);
16193
16228
  const result = FromKey(unionKey, value);
16194
16229
  return result;
16195
16230
  }
16196
16231
 
16197
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/record/from_key_integer.mjs
16232
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/record/from_key_integer.mjs
16198
16233
  function FromIntegerKey(_key, value) {
16199
16234
  const result = CreateRecord(IntegerKey, value);
16200
16235
  return result;
16201
16236
  }
16202
16237
 
16203
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/record/from_key_intersect.mjs
16238
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/record/from_key_intersect.mjs
16204
16239
  function FromIntersectKey(types, value) {
16205
16240
  const evaluatedKey = EvaluateIntersect(types);
16206
16241
  const result = FromKey(evaluatedKey, value);
16207
16242
  return result;
16208
16243
  }
16209
16244
 
16210
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/record/from_key_literal.mjs
16245
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/record/from_key_literal.mjs
16211
16246
  function FromLiteralKey(key, value) {
16212
16247
  return exports_guard.IsString(key) || exports_guard.IsNumber(key) ? _Object_({ [key]: value }) : exports_guard.IsEqual(key, false) ? _Object_({ false: value }) : exports_guard.IsEqual(key, true) ? _Object_({ true: value }) : _Object_({});
16213
16248
  }
16214
16249
 
16215
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/record/from_key_number.mjs
16250
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/record/from_key_number.mjs
16216
16251
  function FromNumberKey(_key, value) {
16217
16252
  const result = CreateRecord(NumberKey, value);
16218
16253
  return result;
16219
16254
  }
16220
16255
 
16221
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/record/from_key_string.mjs
16256
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/record/from_key_string.mjs
16222
16257
  function FromStringKey(key, value) {
16223
16258
  return exports_guard.HasPropertyKey(key, "pattern") && (exports_guard.IsString(key.pattern) || key.pattern instanceof RegExp) ? CreateRecord(key.pattern.toString(), value) : CreateRecord(StringKey, value);
16224
16259
  }
16225
16260
 
16226
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs
16261
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs
16227
16262
  function FromTemplateKey(pattern, value) {
16228
16263
  const types = ParsePatternIntoTypes(pattern);
16229
16264
  const finite = IsTemplateLiteralFinite(types);
@@ -16231,18 +16266,16 @@ function FromTemplateKey(pattern, value) {
16231
16266
  return result;
16232
16267
  }
16233
16268
 
16234
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/evaluate/flatten.mjs
16269
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/evaluate/flatten.mjs
16235
16270
  function FlattenType(type) {
16236
16271
  const result = IsUnion(type) ? Flatten(type.anyOf) : [type];
16237
16272
  return result;
16238
16273
  }
16239
- function Flatten(types) {
16240
- return types.reduce((result, type) => {
16241
- return [...result, ...FlattenType(type)];
16242
- }, []);
16274
+ function Flatten(types, result = []) {
16275
+ return exports_guard.ShiftLeft(types, (left, right) => Flatten(right, [...result, ...FlattenType(left)]), () => result);
16243
16276
  }
16244
16277
 
16245
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/record/from_key_union.mjs
16278
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/record/from_key_union.mjs
16246
16279
  function StringOrNumberCheck(types) {
16247
16280
  return types.some((type) => IsString3(type) || IsNumber3(type) || IsInteger2(type));
16248
16281
  }
@@ -16265,13 +16298,13 @@ function FromUnionKey(types, value) {
16265
16298
  return IsSchema(record2) ? record2 : CreateObject(flattened, value);
16266
16299
  }
16267
16300
 
16268
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/record/from_key.mjs
16301
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/record/from_key.mjs
16269
16302
  function FromKey(key, value) {
16270
16303
  const result = IsAny(key) ? FromAnyKey(value) : IsBoolean3(key) ? FromBooleanKey(value) : IsEnum(key) ? FromEnumKey(key.enum, value) : IsInteger2(key) ? FromIntegerKey(key, value) : IsIntersect(key) ? FromIntersectKey(key.allOf, value) : IsLiteral(key) ? FromLiteralKey(key.const, value) : IsNumber3(key) ? FromNumberKey(key, value) : IsUnion(key) ? FromUnionKey(key.anyOf, value) : IsString3(key) ? FromStringKey(key, value) : IsTemplateLiteral(key) ? FromTemplateKey(key.pattern, value) : _Object_({});
16271
16304
  return result;
16272
16305
  }
16273
16306
 
16274
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/record/instantiate.mjs
16307
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/record/instantiate.mjs
16275
16308
  function RecordAction(key, value, options) {
16276
16309
  const result = CanInstantiate([key]) ? exports_memory.Update(FromKey(key, value), {}, options) : RecordDeferred(key, value, options);
16277
16310
  return result;
@@ -16282,7 +16315,7 @@ function RecordInstantiate(context, state, key, value, options) {
16282
16315
  return RecordAction(instantiatedKey, instantiatedValue, options);
16283
16316
  }
16284
16317
 
16285
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/record.mjs
16318
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/record.mjs
16286
16319
  var IntegerKey = `^${IntegerPattern}$`;
16287
16320
  var NumberKey = `^${NumberPattern}$`;
16288
16321
  var StringKey = `^${StringPattern}$`;
@@ -16313,50 +16346,47 @@ function RecordValue(type) {
16313
16346
  function IsRecord(value) {
16314
16347
  return IsKind(value, "Record");
16315
16348
  }
16316
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/rest.mjs
16349
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/rest.mjs
16317
16350
  function Rest(type) {
16318
16351
  return exports_memory.Create({ "~kind": "Rest" }, { type: "rest", items: type }, {});
16319
16352
  }
16320
16353
  function IsRest(value) {
16321
16354
  return IsKind(value, "Rest");
16322
16355
  }
16323
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/this.mjs
16356
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/this.mjs
16324
16357
  function This(options) {
16325
16358
  return exports_memory.Create({ ["~kind"]: "This" }, { $ref: "#" }, options);
16326
16359
  }
16327
16360
  function IsThis(value) {
16328
16361
  return IsKind(value, "This");
16329
16362
  }
16330
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/undefined.mjs
16363
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/undefined.mjs
16331
16364
  function Undefined(options) {
16332
16365
  return exports_memory.Create({ "~kind": "Undefined" }, { type: "undefined" }, options);
16333
16366
  }
16334
16367
  function IsUndefined2(value) {
16335
16368
  return IsKind(value, "Undefined");
16336
16369
  }
16337
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/void.mjs
16370
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/void.mjs
16338
16371
  function Void(options) {
16339
16372
  return exports_memory.Create({ "~kind": "Void" }, { type: "void" }, options);
16340
16373
  }
16341
16374
  function IsVoid(value) {
16342
16375
  return IsKind(value, "Void");
16343
16376
  }
16344
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/script/mapping.mjs
16377
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/mapping.mjs
16345
16378
  function IntrinsicOrCall(ref2, parameters) {
16346
16379
  return exports_guard.IsEqual(ref2, "Array") ? _Array_(parameters[0]) : exports_guard.IsEqual(ref2, "Capitalize") ? CapitalizeDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "ConstructorParameters") ? ConstructorParametersDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "Evaluate") ? EvaluateDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "Exclude") ? ExcludeDeferred(parameters[0], parameters[1]) : exports_guard.IsEqual(ref2, "Extract") ? ExtractDeferred(parameters[0], parameters[1]) : exports_guard.IsEqual(ref2, "Index") ? IndexDeferred(parameters[0], parameters[1]) : exports_guard.IsEqual(ref2, "InstanceType") ? InstanceTypeDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "Lowercase") ? LowercaseDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "NonNullable") ? NonNullableDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "Omit") ? OmitDeferred(parameters[0], parameters[1]) : exports_guard.IsEqual(ref2, "Parameters") ? ParametersDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "Partial") ? PartialDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "Pick") ? PickDeferred(parameters[0], parameters[1]) : exports_guard.IsEqual(ref2, "Readonly") ? ReadonlyObjectDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "KeyOf") ? KeyOfDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "Record") ? RecordDeferred(parameters[0], parameters[1]) : exports_guard.IsEqual(ref2, "Required") ? RequiredDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "ReturnType") ? ReturnTypeDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "Uncapitalize") ? UncapitalizeDeferred(parameters[0]) : exports_guard.IsEqual(ref2, "Uppercase") ? UppercaseDeferred(parameters[0]) : CallConstruct(Ref(ref2), parameters);
16347
16380
  }
16348
16381
  function Unreachable2() {
16349
16382
  throw Error("Unreachable");
16350
16383
  }
16351
- var DelimitedDecode = (input, result = []) => {
16352
- return input.reduce((result2, left) => {
16353
- return exports_guard.IsArray(left) && exports_guard.IsEqual(left.length, 2) ? [...result2, left[0]] : [...result2, left];
16354
- }, []);
16355
- };
16356
- var Delimited = (input) => {
16357
- const [left, right] = input;
16358
- return DelimitedDecode([...left, ...right]);
16359
- };
16384
+ function DelimitedDecode(input, result = []) {
16385
+ return exports_guard.ShiftLeft(input, (left, right) => DelimitedDecode(right, [...result, left[1]]), () => result);
16386
+ }
16387
+ function Delimited(input) {
16388
+ return exports_guard.IsEqual(input.length, 3) ? [input[0], ...DelimitedDecode(input[1])] : [];
16389
+ }
16360
16390
  function GenericParameterExtendsEqualsMapping(input) {
16361
16391
  return Parameter(input[0], input[2], input[4]);
16362
16392
  }
@@ -16587,17 +16617,11 @@ function _Object_Mapping(input) {
16587
16617
  function ElementNamedMapping(input) {
16588
16618
  return exports_guard.IsEqual(input.length, 5) ? AddReadonlyDeferred(AddOptionalDeferred(input[4])) : exports_guard.IsEqual(input.length, 3) ? input[2] : exports_guard.IsEqual(input.length, 4) ? exports_guard.IsEqual(input[2], "readonly") ? AddReadonlyDeferred(input[3]) : AddOptionalDeferred(input[3]) : Unreachable2();
16589
16619
  }
16590
- function ElementReadonlyOptionalMapping(input) {
16591
- return AddReadonlyDeferred(AddOptionalDeferred(input[1]));
16592
- }
16593
- function ElementReadonlyMapping(input) {
16594
- return AddReadonlyDeferred(input[1]);
16595
- }
16596
- function ElementOptionalMapping(input) {
16597
- return AddOptionalDeferred(input[0]);
16598
- }
16599
16620
  function ElementBaseMapping(input) {
16600
- return input;
16621
+ if (!exports_guard.IsArray(input) || !exports_guard.IsEqual(input.length, 3))
16622
+ return input;
16623
+ const [isReadonly, type, isOptional] = input;
16624
+ return isReadonly && isOptional ? AddReadonlyDeferred(AddOptionalDeferred(type)) : isReadonly && !isOptional ? AddReadonlyDeferred(type) : !isReadonly && isOptional ? AddOptionalDeferred(type) : type;
16601
16625
  }
16602
16626
  function ElementMapping(input) {
16603
16627
  return exports_guard.IsEqual(input.length, 2) ? Rest(input[1]) : exports_guard.IsEqual(input.length, 1) ? input[0] : Unreachable2();
@@ -16765,20 +16789,19 @@ function ModuleDeclarationDelimiterMapping(input) {
16765
16789
  return input;
16766
16790
  }
16767
16791
  function ModuleDeclarationListMapping(input) {
16768
- return PropertiesReduce(Delimited(input));
16792
+ return Delimited(input);
16769
16793
  }
16770
16794
  function ModuleDeclarationMapping(input) {
16771
16795
  return input[1];
16772
16796
  }
16773
16797
  function ModuleMapping(input) {
16774
- const moduleDeclaration = input[0];
16775
- const moduleDeclarationList = input[1];
16776
- return ModuleDeferred(exports_memory.Assign(moduleDeclaration, moduleDeclarationList[0]));
16798
+ const [moduleDeclaration, moduleDeclarationList] = [input[0], input[1]];
16799
+ return ModuleDeferred(exports_memory.Assign(moduleDeclaration, PropertiesReduce(moduleDeclarationList)[0]));
16777
16800
  }
16778
16801
  function ScriptMapping(input) {
16779
16802
  return input;
16780
16803
  }
16781
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/script/token/internal/match.mjs
16804
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/internal/match.mjs
16782
16805
  function IsMatch(value) {
16783
16806
  return IsEqual(value.length, 2);
16784
16807
  }
@@ -16786,7 +16809,7 @@ function Match2(input, ok, fail) {
16786
16809
  return IsMatch(input) ? ok(input[0], input[1]) : fail();
16787
16810
  }
16788
16811
 
16789
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/script/token/internal/take.mjs
16812
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/internal/take.mjs
16790
16813
  function TakeVariant(variant, input) {
16791
16814
  return IsEqual(input.indexOf(variant), 0) ? [variant, input.slice(variant.length)] : [];
16792
16815
  }
@@ -16799,7 +16822,7 @@ function Take(variants, input) {
16799
16822
  return [];
16800
16823
  }
16801
16824
 
16802
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/script/token/internal/char.mjs
16825
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/internal/char.mjs
16803
16826
  function Range(start, end) {
16804
16827
  return Array.from({ length: end - start + 1 }, (_, i) => String.fromCharCode(start + i));
16805
16828
  }
@@ -16818,7 +16841,7 @@ var Dot = ".";
16818
16841
  var DollarSign = "$";
16819
16842
  var Hyphen = "-";
16820
16843
 
16821
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/script/token/internal/trim.mjs
16844
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/internal/trim.mjs
16822
16845
  var LineComment = "//";
16823
16846
  var OpenComment = "/*";
16824
16847
  var CloseComment = "*/";
@@ -16844,12 +16867,12 @@ function Trim(input) {
16844
16867
  return trimmed.startsWith(OpenComment) ? Trim(DiscardMultilineComment(trimmed.slice(2))) : trimmed.startsWith(LineComment) ? Trim(DiscardLineComment(trimmed.slice(2))) : trimmed;
16845
16868
  }
16846
16869
 
16847
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/script/token/internal/optional.mjs
16870
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/internal/optional.mjs
16848
16871
  function Optional2(value, input) {
16849
16872
  return Match2(Take([value], input), (Optional3, Rest2) => [Optional3, Rest2], () => ["", input]);
16850
16873
  }
16851
16874
 
16852
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/script/token/internal/many.mjs
16875
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/internal/many.mjs
16853
16876
  function IsDiscard(discard2, input) {
16854
16877
  return discard2.includes(input);
16855
16878
  }
@@ -16857,7 +16880,7 @@ function Many(allowed, discard2, input, result = "") {
16857
16880
  return Match2(Take(allowed, input), (Char, Rest2) => IsDiscard(discard2, Char) ? Many(allowed, discard2, Rest2, result) : Many(allowed, discard2, Rest2, `${result}${Char}`), () => [result, input]);
16858
16881
  }
16859
16882
 
16860
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/script/token/unsigned_integer.mjs
16883
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/unsigned_integer.mjs
16861
16884
  function TakeNonZero(input) {
16862
16885
  return Take(NonZero, input);
16863
16886
  }
@@ -16872,7 +16895,7 @@ function UnsignedInteger(input) {
16872
16895
  return TakeUnsignedInteger(Trim(input));
16873
16896
  }
16874
16897
 
16875
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/script/token/integer.mjs
16898
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/integer.mjs
16876
16899
  function TakeSign(input) {
16877
16900
  return Optional2(Hyphen, input);
16878
16901
  }
@@ -16883,21 +16906,21 @@ function Integer2(input) {
16883
16906
  return TakeSignedInteger(Trim(input));
16884
16907
  }
16885
16908
 
16886
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/script/token/bigint.mjs
16909
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/bigint.mjs
16887
16910
  function TakeBigInt(input) {
16888
16911
  return Match2(Integer2(input), (Integer3, IntegerRest) => Match2(Take(["n"], IntegerRest), (_N, NRest) => [`${Integer3}`, NRest], () => []), () => []);
16889
16912
  }
16890
16913
  function BigInt3(input) {
16891
16914
  return TakeBigInt(input);
16892
16915
  }
16893
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/script/token/const.mjs
16916
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/const.mjs
16894
16917
  function TakeConst(const_, input) {
16895
16918
  return Take([const_], input);
16896
16919
  }
16897
16920
  function Const(const_, input) {
16898
16921
  return IsEqual(const_, "") ? ["", input] : const_.startsWith(NewLine) ? TakeConst(const_, TrimWhitespace(input)) : const_.startsWith(WhiteSpace) ? TakeConst(const_, input) : TakeConst(const_, Trim(input));
16899
16922
  }
16900
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/script/token/ident.mjs
16923
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/ident.mjs
16901
16924
  var Initial = [...Alpha, UnderScore, DollarSign];
16902
16925
  function TakeInitial(input) {
16903
16926
  return Take(Initial, input);
@@ -16912,7 +16935,7 @@ function TakeIdent(input) {
16912
16935
  function Ident(input) {
16913
16936
  return TakeIdent(Trim(input));
16914
16937
  }
16915
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/script/token/unsigned_number.mjs
16938
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/unsigned_number.mjs
16916
16939
  var AllowedDigits2 = [...Digit, UnderScore];
16917
16940
  function IsLeadingDot(input) {
16918
16941
  return IsMatch(Take([Dot], input));
@@ -16933,7 +16956,7 @@ function UnsignedNumber(input) {
16933
16956
  return TakeUnsignedNumber(Trim(input));
16934
16957
  }
16935
16958
 
16936
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/script/token/number.mjs
16959
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/number.mjs
16937
16960
  function TakeSign2(input) {
16938
16961
  return Optional2(Hyphen, input);
16939
16962
  }
@@ -16943,7 +16966,7 @@ function TakeSignedNumber(input) {
16943
16966
  function Number3(input) {
16944
16967
  return TakeSignedNumber(Trim(input));
16945
16968
  }
16946
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/script/token/until.mjs
16969
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/until.mjs
16947
16970
  function TakeOne(input) {
16948
16971
  const result = IsEqual(input, "") ? [] : [input.slice(0, 1), input.slice(1)];
16949
16972
  return result;
@@ -16955,7 +16978,7 @@ function Until(end, input, result = "") {
16955
16978
  return Match2(TakeOne(input), (One, Rest2) => IsInputMatchSentinal(end, input) ? [result, input] : Until(end, Rest2, `${result}${One}`), () => []);
16956
16979
  }
16957
16980
 
16958
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/script/token/span.mjs
16981
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/span.mjs
16959
16982
  function MultiLine(start, end, input) {
16960
16983
  return Match2(Take([start], input), (_, Rest2) => Match2(Until([end], Rest2), (Until2, UntilRest) => Match2(Take([end], UntilRest), (_2, Rest3) => [`${Until2}`, Rest3], () => []), () => []), () => []);
16961
16984
  }
@@ -16965,7 +16988,7 @@ function SingleLine(start, end, input) {
16965
16988
  function Span(start, end, multiLine, input) {
16966
16989
  return multiLine ? MultiLine(start, end, Trim(input)) : SingleLine(start, end, Trim(input));
16967
16990
  }
16968
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/script/token/string.mjs
16991
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/string.mjs
16969
16992
  function TakeInitial2(quotes, input) {
16970
16993
  return Take(quotes, input);
16971
16994
  }
@@ -16978,22 +17001,22 @@ function TakeString(quotes, input) {
16978
17001
  function String3(quotes, input) {
16979
17002
  return TakeString(quotes, Trim(input));
16980
17003
  }
16981
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/script/token/until_1.mjs
17004
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/token/until_1.mjs
16982
17005
  function Until_1(end, input) {
16983
17006
  return Match2(Until(end, input), (Until2, UntilRest) => IsEqual(Until2, "") ? [] : [Until2, UntilRest], () => []);
16984
17007
  }
16985
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/script/parser.mjs
17008
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/parser.mjs
16986
17009
  var If = (result, left, right = () => []) => result.length === 2 ? left(result) : right();
16987
17010
  var GenericParameterExtendsEquals = (input) => If(If(Ident(input), ([_0, input2]) => If(Const("extends", input2), ([_1, input3]) => If(Type(input3), ([_2, input4]) => If(Const("=", input4), ([_3, input5]) => If(Type(input5), ([_4, input6]) => [[_0, _1, _2, _3, _4], input6]))))), ([_0, input2]) => [GenericParameterExtendsEqualsMapping(_0), input2]);
16988
17011
  var GenericParameterExtends = (input) => If(If(Ident(input), ([_0, input2]) => If(Const("extends", input2), ([_1, input3]) => If(Type(input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [GenericParameterExtendsMapping(_0), input2]);
16989
17012
  var GenericParameterEquals = (input) => If(If(Ident(input), ([_0, input2]) => If(Const("=", input2), ([_1, input3]) => If(Type(input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [GenericParameterEqualsMapping(_0), input2]);
16990
17013
  var GenericParameterIdentifier = (input) => If(Ident(input), ([_0, input2]) => [GenericParameterIdentifierMapping(_0), input2]);
16991
17014
  var GenericParameter = (input) => If(If(GenericParameterExtendsEquals(input), ([_0, input2]) => [_0, input2], () => If(GenericParameterExtends(input), ([_0, input2]) => [_0, input2], () => If(GenericParameterEquals(input), ([_0, input2]) => [_0, input2], () => If(GenericParameterIdentifier(input), ([_0, input2]) => [_0, input2], () => [])))), ([_0, input2]) => [GenericParameterMapping(_0), input2]);
16992
- var GenericParameterList_0 = (input, result = []) => If(If(GenericParameter(input), ([_0, input2]) => If(Const(",", input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => GenericParameterList_0(input2, [...result, _0]), () => [result, input]);
16993
- var GenericParameterList = (input) => If(If(GenericParameterList_0(input), ([_0, input2]) => If(If(If(GenericParameter(input2), ([_02, input3]) => [[_02], input3]), ([_02, input3]) => [_02, input3], () => If([[], input2], ([_02, input3]) => [_02, input3], () => [])), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [GenericParameterListMapping(_0), input2]);
17015
+ var GenericParameterList_0 = (input, result = []) => If(If(Const(",", input), ([_0, input2]) => If(GenericParameter(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => GenericParameterList_0(input2, [...result, _0]), () => [result, input]);
17016
+ var GenericParameterList = (input) => If(If(If(GenericParameter(input), ([_0, input2]) => If(GenericParameterList_0(input2), ([_1, input3]) => If(If(Const(",", input3), ([_02, input4]) => [[_02], input4], () => [[], input3]), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [GenericParameterListMapping(_0), input2]);
16994
17017
  var GenericParameters = (input) => If(If(Const("<", input), ([_0, input2]) => If(GenericParameterList(input2), ([_1, input3]) => If(Const(">", input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [GenericParametersMapping(_0), input2]);
16995
- var GenericCallArgumentList_0 = (input, result = []) => If(If(Type(input), ([_0, input2]) => If(Const(",", input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => GenericCallArgumentList_0(input2, [...result, _0]), () => [result, input]);
16996
- var GenericCallArgumentList = (input) => If(If(GenericCallArgumentList_0(input), ([_0, input2]) => If(If(If(Type(input2), ([_02, input3]) => [[_02], input3]), ([_02, input3]) => [_02, input3], () => If([[], input2], ([_02, input3]) => [_02, input3], () => [])), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [GenericCallArgumentListMapping(_0), input2]);
17018
+ var GenericCallArgumentList_0 = (input, result = []) => If(If(Const(",", input), ([_0, input2]) => If(Type(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => GenericCallArgumentList_0(input2, [...result, _0]), () => [result, input]);
17019
+ var GenericCallArgumentList = (input) => If(If(If(Type(input), ([_0, input2]) => If(GenericCallArgumentList_0(input2), ([_1, input3]) => If(If(Const(",", input3), ([_02, input4]) => [[_02], input4], () => [[], input3]), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [GenericCallArgumentListMapping(_0), input2]);
16997
17020
  var GenericCallArguments = (input) => If(If(Const("<", input), ([_0, input2]) => If(GenericCallArgumentList(input2), ([_1, input3]) => If(Const(">", input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [GenericCallArgumentsMapping(_0), input2]);
16998
17021
  var GenericCall = (input) => If(If(Ident(input), ([_0, input2]) => If(GenericCallArguments(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [GenericCallMapping(_0), input2]);
16999
17022
  var OptionalSemiColon = (input) => If(If(If(Const(";", input), ([_0, input2]) => [[_0], input2]), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [OptionalSemiColonMapping(_0), input2]);
@@ -17049,18 +17072,15 @@ var PropertyDelimiter = (input) => If(If(If(Const(",", input), ([_0, input2]) =>
17049
17072
  `, input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [_0, input2], () => If(If(Const(";", input), ([_0, input2]) => If(Const(`
17050
17073
  `, input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [_0, input2], () => If(If(Const(",", input), ([_0, input2]) => [[_0], input2]), ([_0, input2]) => [_0, input2], () => If(If(Const(";", input), ([_0, input2]) => [[_0], input2]), ([_0, input2]) => [_0, input2], () => If(If(Const(`
17051
17074
  `, input), ([_0, input2]) => [[_0], input2]), ([_0, input2]) => [_0, input2], () => []))))), ([_0, input2]) => [PropertyDelimiterMapping(_0), input2]);
17052
- var PropertyList_0 = (input, result = []) => If(If(Property(input), ([_0, input2]) => If(PropertyDelimiter(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => PropertyList_0(input2, [...result, _0]), () => [result, input]);
17053
- var PropertyList = (input) => If(If(PropertyList_0(input), ([_0, input2]) => If(If(If(Property(input2), ([_02, input3]) => [[_02], input3]), ([_02, input3]) => [_02, input3], () => If([[], input2], ([_02, input3]) => [_02, input3], () => [])), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [PropertyListMapping(_0), input2]);
17075
+ var PropertyList_0 = (input, result = []) => If(If(PropertyDelimiter(input), ([_0, input2]) => If(Property(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => PropertyList_0(input2, [...result, _0]), () => [result, input]);
17076
+ var PropertyList = (input) => If(If(If(Property(input), ([_0, input2]) => If(PropertyList_0(input2), ([_1, input3]) => If(If(PropertyDelimiter(input3), ([_02, input4]) => [[_02], input4], () => [[], input3]), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [PropertyListMapping(_0), input2]);
17054
17077
  var Properties = (input) => If(If(Const("{", input), ([_0, input2]) => If(PropertyList(input2), ([_1, input3]) => If(Const("}", input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [PropertiesMapping(_0), input2]);
17055
17078
  var _Object_2 = (input) => If(Properties(input), ([_0, input2]) => [_Object_Mapping(_0), input2]);
17056
17079
  var ElementNamed = (input) => If(If(If(Ident(input), ([_0, input2]) => If(Const("?", input2), ([_1, input3]) => If(Const(":", input3), ([_2, input4]) => If(Const("readonly", input4), ([_3, input5]) => If(Type(input5), ([_4, input6]) => [[_0, _1, _2, _3, _4], input6]))))), ([_0, input2]) => [_0, input2], () => If(If(Ident(input), ([_0, input2]) => If(Const(":", input2), ([_1, input3]) => If(Const("readonly", input3), ([_2, input4]) => If(Type(input4), ([_3, input5]) => [[_0, _1, _2, _3], input5])))), ([_0, input2]) => [_0, input2], () => If(If(Ident(input), ([_0, input2]) => If(Const("?", input2), ([_1, input3]) => If(Const(":", input3), ([_2, input4]) => If(Type(input4), ([_3, input5]) => [[_0, _1, _2, _3], input5])))), ([_0, input2]) => [_0, input2], () => If(If(Ident(input), ([_0, input2]) => If(Const(":", input2), ([_1, input3]) => If(Type(input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [_0, input2], () => [])))), ([_0, input2]) => [ElementNamedMapping(_0), input2]);
17057
- var ElementReadonlyOptional = (input) => If(If(Const("readonly", input), ([_0, input2]) => If(Type(input2), ([_1, input3]) => If(Const("?", input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [ElementReadonlyOptionalMapping(_0), input2]);
17058
- var ElementReadonly = (input) => If(If(Const("readonly", input), ([_0, input2]) => If(Type(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [ElementReadonlyMapping(_0), input2]);
17059
- var ElementOptional = (input) => If(If(Type(input), ([_0, input2]) => If(Const("?", input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [ElementOptionalMapping(_0), input2]);
17060
- var ElementBase = (input) => If(If(ElementNamed(input), ([_0, input2]) => [_0, input2], () => If(ElementReadonlyOptional(input), ([_0, input2]) => [_0, input2], () => If(ElementReadonly(input), ([_0, input2]) => [_0, input2], () => If(ElementOptional(input), ([_0, input2]) => [_0, input2], () => If(Type(input), ([_0, input2]) => [_0, input2], () => []))))), ([_0, input2]) => [ElementBaseMapping(_0), input2]);
17080
+ var ElementBase = (input) => If(If(ElementNamed(input), ([_0, input2]) => [_0, input2], () => If(If(Readonly2(input), ([_0, input2]) => If(Type(input2), ([_1, input3]) => If(Optional3(input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [ElementBaseMapping(_0), input2]);
17061
17081
  var Element = (input) => If(If(If(Const("...", input), ([_0, input2]) => If(ElementBase(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [_0, input2], () => If(If(ElementBase(input), ([_0, input2]) => [[_0], input2]), ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [ElementMapping(_0), input2]);
17062
- var ElementList_0 = (input, result = []) => If(If(Element(input), ([_0, input2]) => If(Const(",", input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => ElementList_0(input2, [...result, _0]), () => [result, input]);
17063
- var ElementList = (input) => If(If(ElementList_0(input), ([_0, input2]) => If(If(If(Element(input2), ([_02, input3]) => [[_02], input3]), ([_02, input3]) => [_02, input3], () => If([[], input2], ([_02, input3]) => [_02, input3], () => [])), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [ElementListMapping(_0), input2]);
17082
+ var ElementList_0 = (input, result = []) => If(If(Const(",", input), ([_0, input2]) => If(Element(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => ElementList_0(input2, [...result, _0]), () => [result, input]);
17083
+ var ElementList = (input) => If(If(If(Element(input), ([_0, input2]) => If(ElementList_0(input2), ([_1, input3]) => If(If(Const(",", input3), ([_02, input4]) => [[_02], input4], () => [[], input3]), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [ElementListMapping(_0), input2]);
17064
17084
  var _Tuple_ = (input) => If(If(Const("[", input), ([_0, input2]) => If(ElementList(input2), ([_1, input3]) => If(Const("]", input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [_Tuple_Mapping(_0), input2]);
17065
17085
  var ParameterReadonlyOptional = (input) => If(If(Ident(input), ([_0, input2]) => If(Const("?", input2), ([_1, input3]) => If(Const(":", input3), ([_2, input4]) => If(Const("readonly", input4), ([_3, input5]) => If(Type(input5), ([_4, input6]) => [[_0, _1, _2, _3, _4], input6]))))), ([_0, input2]) => [ParameterReadonlyOptionalMapping(_0), input2]);
17066
17086
  var ParameterReadonly = (input) => If(If(Ident(input), ([_0, input2]) => If(Const(":", input2), ([_1, input3]) => If(Const("readonly", input3), ([_2, input4]) => If(Type(input4), ([_3, input5]) => [[_0, _1, _2, _3], input5])))), ([_0, input2]) => [ParameterReadonlyMapping(_0), input2]);
@@ -17068,8 +17088,8 @@ var ParameterOptional = (input) => If(If(Ident(input), ([_0, input2]) => If(Cons
17068
17088
  var ParameterType = (input) => If(If(Ident(input), ([_0, input2]) => If(Const(":", input2), ([_1, input3]) => If(Type(input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [ParameterTypeMapping(_0), input2]);
17069
17089
  var ParameterBase = (input) => If(If(ParameterReadonlyOptional(input), ([_0, input2]) => [_0, input2], () => If(ParameterReadonly(input), ([_0, input2]) => [_0, input2], () => If(ParameterOptional(input), ([_0, input2]) => [_0, input2], () => If(ParameterType(input), ([_0, input2]) => [_0, input2], () => [])))), ([_0, input2]) => [ParameterBaseMapping(_0), input2]);
17070
17090
  var Parameter2 = (input) => If(If(If(Const("...", input), ([_0, input2]) => If(ParameterBase(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [_0, input2], () => If(If(ParameterBase(input), ([_0, input2]) => [[_0], input2]), ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [ParameterMapping(_0), input2]);
17071
- var ParameterList_0 = (input, result = []) => If(If(Parameter2(input), ([_0, input2]) => If(Const(",", input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => ParameterList_0(input2, [...result, _0]), () => [result, input]);
17072
- var ParameterList = (input) => If(If(ParameterList_0(input), ([_0, input2]) => If(If(If(Parameter2(input2), ([_02, input3]) => [[_02], input3]), ([_02, input3]) => [_02, input3], () => If([[], input2], ([_02, input3]) => [_02, input3], () => [])), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [ParameterListMapping(_0), input2]);
17091
+ var ParameterList_0 = (input, result = []) => If(If(Const(",", input), ([_0, input2]) => If(Parameter2(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => ParameterList_0(input2, [...result, _0]), () => [result, input]);
17092
+ var ParameterList = (input) => If(If(If(Parameter2(input), ([_0, input2]) => If(ParameterList_0(input2), ([_1, input3]) => If(If(Const(",", input3), ([_02, input4]) => [[_02], input4], () => [[], input3]), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [ParameterListMapping(_0), input2]);
17073
17093
  var _Function_2 = (input) => If(If(Const("(", input), ([_0, input2]) => If(ParameterList(input2), ([_1, input3]) => If(Const(")", input3), ([_2, input4]) => If(Const("=>", input4), ([_3, input5]) => If(Type(input5), ([_4, input6]) => [[_0, _1, _2, _3, _4], input6]))))), ([_0, input2]) => [_Function_Mapping(_0), input2]);
17074
17094
  var _Constructor_ = (input) => If(If(Const("new", input), ([_0, input2]) => If(Const("(", input2), ([_1, input3]) => If(ParameterList(input3), ([_2, input4]) => If(Const(")", input4), ([_3, input5]) => If(Const("=>", input5), ([_4, input6]) => If(Type(input6), ([_5, input7]) => [[_0, _1, _2, _3, _4, _5], input7])))))), ([_0, input2]) => [_Constructor_Mapping(_0), input2]);
17075
17095
  var MappedReadonly = (input) => If(If(If(Const("+", input), ([_0, input2]) => If(Const("readonly", input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [_0, input2], () => If(If(Const("-", input), ([_0, input2]) => If(Const("readonly", input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [_0, input2], () => If(If(Const("readonly", input), ([_0, input2]) => [[_0], input2]), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => [])))), ([_0, input2]) => [MappedReadonlyMapping(_0), input2]);
@@ -17084,11 +17104,11 @@ var WithString = (input) => If(String3(['"', "'"], input), ([_0, input2]) => [Wi
17084
17104
  var WithNull = (input) => If(Const("null", input), ([_0, input2]) => [WithNullMapping(_0), input2]);
17085
17105
  var WithUndefined = (input) => If(Const("undefined", input), ([_0, input2]) => [WithUndefinedMapping(_0), input2]);
17086
17106
  var WithProperty = (input) => If(If(PropertyKey(input), ([_0, input2]) => If(Const(":", input2), ([_1, input3]) => If(WithValue(input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [WithPropertyMapping(_0), input2]);
17087
- var WithPropertyList_0 = (input, result = []) => If(If(WithProperty(input), ([_0, input2]) => If(PropertyDelimiter(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => WithPropertyList_0(input2, [...result, _0]), () => [result, input]);
17088
- var WithPropertyList = (input) => If(If(WithPropertyList_0(input), ([_0, input2]) => If(If(If(WithProperty(input2), ([_02, input3]) => [[_02], input3]), ([_02, input3]) => [_02, input3], () => If([[], input2], ([_02, input3]) => [_02, input3], () => [])), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [WithPropertyListMapping(_0), input2]);
17107
+ var WithPropertyList_0 = (input, result = []) => If(If(PropertyDelimiter(input), ([_0, input2]) => If(WithProperty(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => WithPropertyList_0(input2, [...result, _0]), () => [result, input]);
17108
+ var WithPropertyList = (input) => If(If(If(WithProperty(input), ([_0, input2]) => If(WithPropertyList_0(input2), ([_1, input3]) => If(If(PropertyDelimiter(input3), ([_02, input4]) => [[_02], input4], () => [[], input3]), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [WithPropertyListMapping(_0), input2]);
17089
17109
  var WithObject = (input) => If(If(Const("{", input), ([_0, input2]) => If(WithPropertyList(input2), ([_1, input3]) => If(Const("}", input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [WithObjectMapping(_0), input2]);
17090
- var WithElementList_0 = (input, result = []) => If(If(WithValue(input), ([_0, input2]) => If(Const(",", input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => WithElementList_0(input2, [...result, _0]), () => [result, input]);
17091
- var WithElementList = (input) => If(If(WithElementList_0(input), ([_0, input2]) => If(If(If(WithValue(input2), ([_02, input3]) => [[_02], input3]), ([_02, input3]) => [_02, input3], () => If([[], input2], ([_02, input3]) => [_02, input3], () => [])), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [WithElementListMapping(_0), input2]);
17110
+ var WithElementList_0 = (input, result = []) => If(If(Const(",", input), ([_0, input2]) => If(WithValue(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => WithElementList_0(input2, [...result, _0]), () => [result, input]);
17111
+ var WithElementList = (input) => If(If(If(WithValue(input), ([_0, input2]) => If(WithElementList_0(input2), ([_1, input3]) => If(If(Const(",", input3), ([_02, input4]) => [[_02], input4], () => [[], input3]), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [WithElementListMapping(_0), input2]);
17092
17112
  var WithArray = (input) => If(If(Const("[", input), ([_0, input2]) => If(WithElementList(input2), ([_1, input3]) => If(Const("]", input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [WithArrayMapping(_0), input2]);
17093
17113
  var WithValue = (input) => If(If(WithBigInt(input), ([_0, input2]) => [_0, input2], () => If(WithNumber(input), ([_0, input2]) => [_0, input2], () => If(WithBoolean(input), ([_0, input2]) => [_0, input2], () => If(WithString(input), ([_0, input2]) => [_0, input2], () => If(WithNull(input), ([_0, input2]) => [_0, input2], () => If(WithUndefined(input), ([_0, input2]) => [_0, input2], () => If(WithObject(input), ([_0, input2]) => [_0, input2], () => If(WithArray(input), ([_0, input2]) => [_0, input2], () => [])))))))), ([_0, input2]) => [WithValueMapping(_0), input2]);
17094
17114
  var PatternBigInt = (input) => If(Const("-?(?:0|[1-9][0-9]*)n", input), ([_0, input2]) => [PatternBigIntMapping(_0), input2]);
@@ -17103,8 +17123,8 @@ var PatternUnion = (input) => If(If(If(PatternTerm(input), ([_0, input2]) => If(
17103
17123
  var PatternTerm = (input) => If(If(PatternBase(input), ([_0, input2]) => If(PatternBody(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [PatternTermMapping(_0), input2]);
17104
17124
  var PatternBody = (input) => If(If(PatternUnion(input), ([_0, input2]) => [_0, input2], () => If(PatternTerm(input), ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [PatternBodyMapping(_0), input2]);
17105
17125
  var Pattern = (input) => If(If(Const("^", input), ([_0, input2]) => If(PatternBody(input2), ([_1, input3]) => If(Const("$", input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [PatternMapping(_0), input2]);
17106
- var InterfaceDeclarationHeritageList_0 = (input, result = []) => If(If(Type(input), ([_0, input2]) => If(Const(",", input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => InterfaceDeclarationHeritageList_0(input2, [...result, _0]), () => [result, input]);
17107
- var InterfaceDeclarationHeritageList = (input) => If(If(InterfaceDeclarationHeritageList_0(input), ([_0, input2]) => If(If(If(Type(input2), ([_02, input3]) => [[_02], input3]), ([_02, input3]) => [_02, input3], () => If([[], input2], ([_02, input3]) => [_02, input3], () => [])), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [InterfaceDeclarationHeritageListMapping(_0), input2]);
17126
+ var InterfaceDeclarationHeritageList_0 = (input, result = []) => If(If(Const(",", input), ([_0, input2]) => If(Type(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => InterfaceDeclarationHeritageList_0(input2, [...result, _0]), () => [result, input]);
17127
+ var InterfaceDeclarationHeritageList = (input) => If(If(If(Type(input), ([_0, input2]) => If(InterfaceDeclarationHeritageList_0(input2), ([_1, input3]) => If(If(Const(",", input3), ([_02, input4]) => [[_02], input4], () => [[], input3]), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [InterfaceDeclarationHeritageListMapping(_0), input2]);
17108
17128
  var InterfaceDeclarationHeritage = (input) => If(If(If(Const("extends", input), ([_0, input2]) => If(InterfaceDeclarationHeritageList(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [InterfaceDeclarationHeritageMapping(_0), input2]);
17109
17129
  var InterfaceDeclarationGeneric = (input) => If(If(Const("interface", input), ([_0, input2]) => If(Ident(input2), ([_1, input3]) => If(GenericParameters(input3), ([_2, input4]) => If(InterfaceDeclarationHeritage(input4), ([_3, input5]) => If(Properties(input5), ([_4, input6]) => [[_0, _1, _2, _3, _4], input6]))))), ([_0, input2]) => [InterfaceDeclarationGenericMapping(_0), input2]);
17110
17130
  var InterfaceDeclaration = (input) => If(If(Const("interface", input), ([_0, input2]) => If(Ident(input2), ([_1, input3]) => If(InterfaceDeclarationHeritage(input3), ([_2, input4]) => If(Properties(input4), ([_3, input5]) => [[_0, _1, _2, _3], input5])))), ([_0, input2]) => [InterfaceDeclarationMapping(_0), input2]);
@@ -17114,20 +17134,20 @@ var ExportKeyword = (input) => If(If(If(Const("export", input), ([_0, input2]) =
17114
17134
  var ModuleDeclarationDelimiter = (input) => If(If(If(Const(";", input), ([_0, input2]) => If(Const(`
17115
17135
  `, input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [_0, input2], () => If(If(Const(";", input), ([_0, input2]) => [[_0], input2]), ([_0, input2]) => [_0, input2], () => If(If(Const(`
17116
17136
  `, input), ([_0, input2]) => [[_0], input2]), ([_0, input2]) => [_0, input2], () => []))), ([_0, input2]) => [ModuleDeclarationDelimiterMapping(_0), input2]);
17117
- var ModuleDeclarationList_0 = (input, result = []) => If(If(ModuleDeclaration(input), ([_0, input2]) => If(ModuleDeclarationDelimiter(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => ModuleDeclarationList_0(input2, [...result, _0]), () => [result, input]);
17118
- var ModuleDeclarationList = (input) => If(If(ModuleDeclarationList_0(input), ([_0, input2]) => If(If(If(ModuleDeclaration(input2), ([_02, input3]) => [[_02], input3]), ([_02, input3]) => [_02, input3], () => If([[], input2], ([_02, input3]) => [_02, input3], () => [])), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [ModuleDeclarationListMapping(_0), input2]);
17137
+ var ModuleDeclarationList_0 = (input, result = []) => If(If(ModuleDeclarationDelimiter(input), ([_0, input2]) => If(ModuleDeclaration(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => ModuleDeclarationList_0(input2, [...result, _0]), () => [result, input]);
17138
+ var ModuleDeclarationList = (input) => If(If(If(ModuleDeclaration(input), ([_0, input2]) => If(ModuleDeclarationList_0(input2), ([_1, input3]) => If(If(ModuleDeclarationDelimiter(input3), ([_02, input4]) => [[_02], input4], () => [[], input3]), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [_0, input2], () => If([[], input], ([_0, input2]) => [_0, input2], () => [])), ([_0, input2]) => [ModuleDeclarationListMapping(_0), input2]);
17119
17139
  var ModuleDeclaration = (input) => If(If(ExportKeyword(input), ([_0, input2]) => If(If(InterfaceDeclarationGeneric(input2), ([_02, input3]) => [_02, input3], () => If(InterfaceDeclaration(input2), ([_02, input3]) => [_02, input3], () => If(TypeAliasDeclarationGeneric(input2), ([_02, input3]) => [_02, input3], () => If(TypeAliasDeclaration(input2), ([_02, input3]) => [_02, input3], () => [])))), ([_1, input3]) => If(OptionalSemiColon(input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [ModuleDeclarationMapping(_0), input2]);
17120
17140
  var Module = (input) => If(If(ModuleDeclaration(input), ([_0, input2]) => If(ModuleDeclarationList(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [ModuleMapping(_0), input2]);
17121
17141
  var Script = (input) => If(If(Module(input), ([_0, input2]) => [_0, input2], () => If(GenericType(input), ([_0, input2]) => [_0, input2], () => If(Type(input), ([_0, input2]) => [_0, input2], () => []))), ([_0, input2]) => [ScriptMapping(_0), input2]);
17122
17142
 
17123
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/patterns/template.mjs
17143
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/patterns/template.mjs
17124
17144
  function ParseTemplateIntoTypes(template) {
17125
17145
  const parsed = TemplateLiteralTypes(`\`${template}\``);
17126
17146
  const result = exports_guard.IsEqual(parsed.length, 2) ? parsed[0] : Unreachable();
17127
17147
  return result;
17128
17148
  }
17129
17149
 
17130
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/template_literal/encode.mjs
17150
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/template_literal/encode.mjs
17131
17151
  function JoinString(input) {
17132
17152
  return input.join("|");
17133
17153
  }
@@ -17184,7 +17204,7 @@ function TemplateLiteralEncode(types) {
17184
17204
  return result;
17185
17205
  }
17186
17206
 
17187
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/template_literal/instantiate.mjs
17207
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/template_literal/instantiate.mjs
17188
17208
  function TemplateLiteralAction(types, options) {
17189
17209
  const result = CanInstantiate(types) ? exports_memory.Update(TemplateLiteralEncode(types), {}, options) : TemplateLiteralDeferred(types, options);
17190
17210
  return result;
@@ -17194,7 +17214,7 @@ function TemplateLiteralInstantiate(context, state, types, options) {
17194
17214
  return TemplateLiteralAction(instantiatedTypes, options);
17195
17215
  }
17196
17216
 
17197
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/template_literal.mjs
17217
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/template_literal.mjs
17198
17218
  function TemplateLiteralDeferred(types, options = {}) {
17199
17219
  return Deferred("TemplateLiteral", [types], options);
17200
17220
  }
@@ -17216,7 +17236,7 @@ function IsTemplateLiteral(value) {
17216
17236
  return IsKind(value, "TemplateLiteral");
17217
17237
  }
17218
17238
 
17219
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/extends/result.mjs
17239
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/result.mjs
17220
17240
  var exports_result = {};
17221
17241
  __export(exports_result, {
17222
17242
  Match: () => Match3,
@@ -17253,7 +17273,7 @@ function Match3(result, true_, false_) {
17253
17273
  return IsExtendsTrueLike(result) ? true_(result.inferred) : false_();
17254
17274
  }
17255
17275
 
17256
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/extends/extends_right.mjs
17276
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/extends_right.mjs
17257
17277
  function ExtendsRightInfer(inferred, name, left, right) {
17258
17278
  return Match3(ExtendsLeft(inferred, left, right), (checkInferred) => ExtendsTrue(exports_memory.Assign(exports_memory.Assign(inferred, checkInferred), { [name]: left })), () => ExtendsFalse());
17259
17279
  }
@@ -17281,12 +17301,12 @@ function ExtendsRight(inferred, left, right) {
17281
17301
  return IsAny(right) ? ExtendsRightAny(inferred, left) : IsDependent(right) ? ExtendsRightDependent(inferred, left, right.if, right.then, right.else) : IsEnum(right) ? ExtendsRightEnum(inferred, left, right.enum) : IsInfer(right) ? ExtendsRightInfer(inferred, right.name, left, right.extends) : IsIntersect(right) ? ExtendsRightIntersect(inferred, left, right.allOf) : IsTemplateLiteral(right) ? ExtendsRightTemplateLiteral(inferred, left, right.pattern) : IsUnion(right) ? ExtendsRightUnion(inferred, left, right.anyOf) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse();
17282
17302
  }
17283
17303
 
17284
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/extends/any.mjs
17304
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/any.mjs
17285
17305
  function ExtendsAny(inferred, left, right) {
17286
17306
  return IsInfer(right) ? ExtendsRight(inferred, left, right) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsUnion(inferred);
17287
17307
  }
17288
17308
 
17289
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/extends/array.mjs
17309
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/array.mjs
17290
17310
  function ExtendsImmutable(left, right) {
17291
17311
  const isImmutableLeft = IsImmutable(left);
17292
17312
  const isImmutableRight = IsImmutable(right);
@@ -17296,17 +17316,17 @@ function ExtendsArray(inferred, arrayLeft, left, right) {
17296
17316
  return IsArray2(right) ? ExtendsImmutable(arrayLeft, right) ? ExtendsLeft(inferred, left, right.items) : ExtendsFalse() : ExtendsRight(inferred, arrayLeft, right);
17297
17317
  }
17298
17318
 
17299
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/extends/bigint.mjs
17319
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/bigint.mjs
17300
17320
  function ExtendsBigInt(inferred, left, right) {
17301
17321
  return IsBigInt2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
17302
17322
  }
17303
17323
 
17304
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/extends/boolean.mjs
17324
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/boolean.mjs
17305
17325
  function ExtendsBoolean(inferred, left, right) {
17306
17326
  return IsBoolean3(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
17307
17327
  }
17308
17328
 
17309
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/extends/parameters.mjs
17329
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/parameters.mjs
17310
17330
  function ParameterCompare(inferred, left, leftRest, right, rightRest) {
17311
17331
  const checkLeft = IsInfer(right) ? left : right;
17312
17332
  const checkRight = IsInfer(right) ? right : left;
@@ -17324,44 +17344,44 @@ function ExtendsParameters(inferred, left, right) {
17324
17344
  return ParametersLeft(inferred, left, right);
17325
17345
  }
17326
17346
 
17327
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/extends/return_type.mjs
17347
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/return_type.mjs
17328
17348
  function ExtendsReturnType(inferred, left, right) {
17329
17349
  return IsVoid(right) ? ExtendsTrue(inferred) : ExtendsLeft(inferred, left, right);
17330
17350
  }
17331
17351
 
17332
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/extends/constructor.mjs
17352
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/constructor.mjs
17333
17353
  function ExtendsConstructor(inferred, parameters, returnType, right) {
17334
17354
  return IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : IsConstructor2(right) ? Match3(ExtendsParameters(inferred, parameters, right["parameters"]), (inferred2) => ExtendsReturnType(inferred2, returnType, right["instanceType"]), () => ExtendsFalse()) : ExtendsFalse();
17335
17355
  }
17336
17356
 
17337
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/extends/dependent.mjs
17357
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/dependent.mjs
17338
17358
  function ExtendsDependent(inferred, if_, then_, else_, right) {
17339
17359
  return Match3(ExtendsLeft(inferred, if_, right), () => ExtendsLeft(inferred, then_, right), () => ExtendsLeft(inferred, else_, right));
17340
17360
  }
17341
17361
 
17342
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/extends/enum.mjs
17362
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/enum.mjs
17343
17363
  function ExtendsEnum(inferred, left, right) {
17344
17364
  const evaluated = EvaluateEnum(left);
17345
17365
  return ExtendsLeft(inferred, evaluated, right);
17346
17366
  }
17347
17367
 
17348
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/extends/function.mjs
17368
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/function.mjs
17349
17369
  function ExtendsFunction(inferred, parameters, returnType, right) {
17350
17370
  return IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : IsFunction2(right) ? Match3(ExtendsParameters(inferred, parameters, right["parameters"]), (inferred2) => ExtendsReturnType(inferred2, returnType, right["returnType"]), () => ExtendsFalse()) : ExtendsFalse();
17351
17371
  }
17352
17372
 
17353
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/extends/integer.mjs
17373
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/integer.mjs
17354
17374
  function ExtendsInteger(inferred, left, right) {
17355
17375
  return IsInteger2(right) ? ExtendsTrue(inferred) : IsNumber3(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
17356
17376
  }
17357
17377
 
17358
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/extends/intersect.mjs
17378
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/intersect.mjs
17359
17379
  function ExtendsIntersect(inferred, left, right) {
17360
17380
  const evaluated = EvaluateIntersect(left);
17361
17381
  return ExtendsLeft(inferred, evaluated, right);
17362
17382
  }
17363
17383
 
17364
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/extends/literal.mjs
17384
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/literal.mjs
17365
17385
  function ExtendsLiteralValue(inferred, left, right) {
17366
17386
  return left === right ? ExtendsTrue(inferred) : ExtendsFalse();
17367
17387
  }
@@ -17381,22 +17401,22 @@ function ExtendsLiteral(inferred, left, right) {
17381
17401
  return exports_guard.IsBigInt(left.const) ? ExtendsLiteralBigInt(inferred, left.const, right) : exports_guard.IsBoolean(left.const) ? ExtendsLiteralBoolean(inferred, left.const, right) : exports_guard.IsNumber(left.const) ? ExtendsLiteralNumber(inferred, left.const, right) : exports_guard.IsString(left.const) ? ExtendsLiteralString(inferred, left.const, right) : Unreachable();
17382
17402
  }
17383
17403
 
17384
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/extends/never.mjs
17404
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/never.mjs
17385
17405
  function ExtendsNever(inferred, left, right) {
17386
17406
  return IsInfer(right) ? ExtendsRight(inferred, left, right) : ExtendsTrue(inferred);
17387
17407
  }
17388
17408
 
17389
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/extends/null.mjs
17409
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/null.mjs
17390
17410
  function ExtendsNull(inferred, left, right) {
17391
17411
  return IsNull2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
17392
17412
  }
17393
17413
 
17394
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/extends/number.mjs
17414
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/number.mjs
17395
17415
  function ExtendsNumber(inferred, left, right) {
17396
17416
  return IsNumber3(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
17397
17417
  }
17398
17418
 
17399
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/extends/object.mjs
17419
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/object.mjs
17400
17420
  function ExtendsPropertyOptional(inferred, left, right) {
17401
17421
  return IsOptional(left) ? IsOptional(right) ? ExtendsTrue(inferred) : ExtendsFalse() : ExtendsTrue(inferred);
17402
17422
  }
@@ -17444,7 +17464,7 @@ function ExtendsObject(inferred, left, right) {
17444
17464
  return IsRecord(right) ? ExtendsObjectToRecord(inferred, left, RecordPattern(right), RecordValue(right)) : IsObject2(right) ? ExtendsObjectToObject(inferred, left, right.properties) : ExtendsRight(inferred, _Object_(left), right);
17445
17465
  }
17446
17466
 
17447
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/extends/record.mjs
17467
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/record.mjs
17448
17468
  function FromObject2(inferred, properties2) {
17449
17469
  return exports_guard.IsEqual(exports_guard.Keys(properties2).length, 0) ? ExtendsTrue(inferred) : ExtendsFalse();
17450
17470
  }
@@ -17455,23 +17475,23 @@ function ExtendsRecord(inferred, leftPattern, leftValue, right) {
17455
17475
  return IsRecord(right) ? FromRecord(inferred, RecordPatternToType(leftPattern), leftValue, RecordPatternToType(RecordPattern(right)), RecordValue(right)) : IsObject2(right) ? FromObject2(inferred, right.properties) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse();
17456
17476
  }
17457
17477
 
17458
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/extends/string.mjs
17478
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/string.mjs
17459
17479
  function ExtendsString(inferred, left, right) {
17460
17480
  return IsString3(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
17461
17481
  }
17462
17482
 
17463
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/extends/symbol.mjs
17483
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/symbol.mjs
17464
17484
  function ExtendsSymbol(inferred, left, right) {
17465
17485
  return IsSymbol2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
17466
17486
  }
17467
17487
 
17468
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/extends/template_literal.mjs
17488
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/template_literal.mjs
17469
17489
  function ExtendsTemplateLiteral(inferred, left, right) {
17470
17490
  const evaluated = EvaluateTemplateLiteral(left);
17471
17491
  return ExtendsLeft(inferred, evaluated, right);
17472
17492
  }
17473
17493
 
17474
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/extends/inference.mjs
17494
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/inference.mjs
17475
17495
  function Inferrable(name, type) {
17476
17496
  return exports_memory.Create({ "~kind": "Inferrable" }, { name, type }, {});
17477
17497
  }
@@ -17498,7 +17518,7 @@ function InferUnionResult(inferred, name, left, right) {
17498
17518
  return exports_guard.IsArray(results) ? ExtendsTrue(exports_memory.Assign(inferred, { [name]: Union(results) })) : ExtendsFalse();
17499
17519
  }
17500
17520
 
17501
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/extends/tuple.mjs
17521
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/tuple.mjs
17502
17522
  function Reverse(types) {
17503
17523
  return [...types].reverse();
17504
17524
  }
@@ -17537,12 +17557,12 @@ function ExtendsTuple(inferred, left, right) {
17537
17557
  return IsTuple(right) ? ExtendsTupleToTuple(inferred, instantiatedLeft, right.items) : IsArray2(right) ? ExtendsTupleToArray(inferred, instantiatedLeft, right.items) : ExtendsRight(inferred, Tuple(instantiatedLeft), right);
17538
17558
  }
17539
17559
 
17540
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/extends/undefined.mjs
17560
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/undefined.mjs
17541
17561
  function ExtendsUndefined(inferred, left, right) {
17542
17562
  return IsVoid(right) ? ExtendsTrue(inferred) : IsUndefined2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
17543
17563
  }
17544
17564
 
17545
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/extends/union.mjs
17565
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/union.mjs
17546
17566
  function ExtendsUnionSome(inferred, type, unionTypes) {
17547
17567
  return exports_guard.ShiftLeft(unionTypes, (head, tail) => Match3(ExtendsLeft(inferred, type, head), (inferred2) => ExtendsTrue(inferred2), () => ExtendsUnionSome(inferred, type, tail)), () => ExtendsFalse());
17548
17568
  }
@@ -17554,22 +17574,22 @@ function ExtendsUnion2(inferred, left, right) {
17554
17574
  return IsInferable(inferrable) ? InferUnionResult(inferred, inferrable.name, left, inferrable.type) : IsUnion(right) ? ExtendsUnionLeft(inferred, left, right.anyOf) : ExtendsUnionLeft(inferred, left, [right]);
17555
17575
  }
17556
17576
 
17557
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/extends/unknown.mjs
17577
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/unknown.mjs
17558
17578
  function ExtendsUnknown(inferred, left, right) {
17559
17579
  return IsInfer(right) ? ExtendsRight(inferred, left, right) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse();
17560
17580
  }
17561
17581
 
17562
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/extends/void.mjs
17582
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/void.mjs
17563
17583
  function ExtendsVoid(inferred, left, right) {
17564
17584
  return IsVoid(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
17565
17585
  }
17566
17586
 
17567
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/extends/extends_left.mjs
17587
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/extends_left.mjs
17568
17588
  function ExtendsLeft(inferred, left, right) {
17569
17589
  return IsAny(left) ? ExtendsAny(inferred, left, right) : IsArray2(left) ? ExtendsArray(inferred, left, left.items, right) : IsBigInt2(left) ? ExtendsBigInt(inferred, left, right) : IsBoolean3(left) ? ExtendsBoolean(inferred, left, right) : IsConstructor2(left) ? ExtendsConstructor(inferred, left.parameters, left.instanceType, right) : IsDependent(left) ? ExtendsDependent(inferred, left.if, left.then, left.else, right) : IsEnum(left) ? ExtendsEnum(inferred, left.enum, right) : IsFunction2(left) ? ExtendsFunction(inferred, left.parameters, left.returnType, right) : IsInteger2(left) ? ExtendsInteger(inferred, left, right) : IsIntersect(left) ? ExtendsIntersect(inferred, left.allOf, right) : IsLiteral(left) ? ExtendsLiteral(inferred, left, right) : IsNever(left) ? ExtendsNever(inferred, left, right) : IsNull2(left) ? ExtendsNull(inferred, left, right) : IsNumber3(left) ? ExtendsNumber(inferred, left, right) : IsObject2(left) ? ExtendsObject(inferred, left.properties, right) : IsRecord(left) ? ExtendsRecord(inferred, RecordPattern(left), RecordValue(left), right) : IsString3(left) ? ExtendsString(inferred, left, right) : IsSymbol2(left) ? ExtendsSymbol(inferred, left, right) : IsTemplateLiteral(left) ? ExtendsTemplateLiteral(inferred, left.pattern, right) : IsTuple(left) ? ExtendsTuple(inferred, left.items, right) : IsUndefined2(left) ? ExtendsUndefined(inferred, left, right) : IsUnion(left) ? ExtendsUnion2(inferred, left.anyOf, right) : IsUnknown(left) ? ExtendsUnknown(inferred, left, right) : IsVoid(left) ? ExtendsVoid(inferred, left, right) : ExtendsFalse();
17570
17590
  }
17571
17591
 
17572
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/interface/instantiate.mjs
17592
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/interface/instantiate.mjs
17573
17593
  function InterfaceOperation(heritage, properties2) {
17574
17594
  const result = EvaluateIntersect([...heritage, _Object_(properties2)]);
17575
17595
  return result;
@@ -17584,7 +17604,7 @@ function InterfaceInstantiate(context, state, heritage, properties2, options) {
17584
17604
  return InterfaceAction(instantiatedHeritage, instantiatedProperties, options);
17585
17605
  }
17586
17606
 
17587
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/action/interface.mjs
17607
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/interface.mjs
17588
17608
  function InterfaceDeferred(heritage, properties2, options = {}) {
17589
17609
  return Deferred("Interface", [heritage, properties2], options);
17590
17610
  }
@@ -17595,7 +17615,7 @@ function Interface(heritage, properties2, options = {}) {
17595
17615
  return InterfaceAction(heritage, properties2, options);
17596
17616
  }
17597
17617
 
17598
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/cyclic/check.mjs
17618
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/cyclic/check.mjs
17599
17619
  function FromRef(stack, context, ref2) {
17600
17620
  return stack.includes(ref2) ? true : FromType3([...stack, ref2], context, context[ref2]);
17601
17621
  }
@@ -17614,7 +17634,7 @@ function CyclicCheck(stack, context, type) {
17614
17634
  return result;
17615
17635
  }
17616
17636
 
17617
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/cyclic/candidates.mjs
17637
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/cyclic/candidates.mjs
17618
17638
  function ResolveCandidateKeys(context, keys) {
17619
17639
  return keys.reduce((result, left) => {
17620
17640
  return CyclicCheck([left], context, context[left]) ? [...result, left] : result;
@@ -17625,7 +17645,7 @@ function CyclicCandidates(context) {
17625
17645
  const result = ResolveCandidateKeys(context, keys);
17626
17646
  return result;
17627
17647
  }
17628
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs
17648
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs
17629
17649
  function FromRef2(context, ref2, result) {
17630
17650
  return result.includes(ref2) ? result : (ref2 in context) ? FromType4(context, context[ref2], [...result, ref2]) : Unreachable();
17631
17651
  }
@@ -17645,7 +17665,7 @@ function CyclicDependencies(context, key, type) {
17645
17665
  const result = FromType4(context, type, [key]);
17646
17666
  return result;
17647
17667
  }
17648
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/cyclic/extends.mjs
17668
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/cyclic/extends.mjs
17649
17669
  function FromRef3(_ref) {
17650
17670
  return Any();
17651
17671
  }
@@ -17668,7 +17688,7 @@ function CyclicAnyFromParameters(defs, ref2) {
17668
17688
  function CyclicExtends(type) {
17669
17689
  return CyclicAnyFromParameters(type.$defs, type.$ref);
17670
17690
  }
17671
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs
17691
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs
17672
17692
  function CyclicInterface(context, heritage, properties2) {
17673
17693
  const instantiatedHeritage = InstantiateTypes(context, State([], []), heritage);
17674
17694
  const instantiatedProperties = InstantiateProperties({}, State([], []), properties2);
@@ -17689,7 +17709,7 @@ function InstantiateCyclic(context, ref2, type) {
17689
17709
  const result = Cyclic(definitions, ref2);
17690
17710
  return result;
17691
17711
  }
17692
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/cyclic/target.mjs
17712
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/cyclic/target.mjs
17693
17713
  function Resolve(defs, ref2) {
17694
17714
  return ref2 in defs ? IsRef(defs[ref2]) ? Resolve(defs, defs[ref2].$ref) : defs[ref2] : Never();
17695
17715
  }
@@ -17697,7 +17717,7 @@ function CyclicTarget(defs, ref2) {
17697
17717
  const result = Resolve(defs, ref2);
17698
17718
  return result;
17699
17719
  }
17700
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/extends/extends.mjs
17720
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/extends/extends.mjs
17701
17721
  function Canonical(type) {
17702
17722
  return IsCyclic(type) ? CyclicExtends(type) : IsUnsafe(type) ? Unknown() : type;
17703
17723
  }
@@ -17706,47 +17726,36 @@ function Extends(inferred, left, right) {
17706
17726
  const canonicalRight = Canonical(right);
17707
17727
  return ExtendsLeft(inferred, canonicalLeft, canonicalRight);
17708
17728
  }
17709
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/evaluate/compare.mjs
17710
- var ResultEqual = "equal";
17711
- var ResultDisjoint = "disjoint";
17712
- var ResultLeftInside = "left-inside";
17713
- var ResultRightInside = "right-inside";
17729
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/evaluate/compare.mjs
17730
+ var CompareResultEqual = 0;
17731
+ var CompareResultDisjoint = 1;
17732
+ var CompareResultLeftInside = 2;
17733
+ var CompareResultRightInside = 3;
17714
17734
  function Compare(left, right) {
17715
- const extendsCheck = [
17716
- IsUnknown(left) ? exports_result.ExtendsFalse() : Extends({}, left, right),
17717
- IsUnknown(left) ? exports_result.ExtendsTrue({}) : Extends({}, right, left)
17718
- ];
17719
- return exports_result.IsExtendsTrueLike(extendsCheck[0]) && exports_result.IsExtendsTrueLike(extendsCheck[1]) ? ResultEqual : exports_result.IsExtendsTrueLike(extendsCheck[0]) && exports_result.IsExtendsFalse(extendsCheck[1]) ? ResultLeftInside : exports_result.IsExtendsFalse(extendsCheck[0]) && exports_result.IsExtendsTrueLike(extendsCheck[1]) ? ResultRightInside : ResultDisjoint;
17735
+ const extendsCheck = [Extends({}, left, right), Extends({}, right, left)];
17736
+ return exports_result.IsExtendsTrueLike(extendsCheck[0]) && exports_result.IsExtendsTrueLike(extendsCheck[1]) ? CompareResultEqual : exports_result.IsExtendsTrueLike(extendsCheck[0]) && exports_result.IsExtendsFalse(extendsCheck[1]) ? CompareResultLeftInside : exports_result.IsExtendsFalse(extendsCheck[0]) && exports_result.IsExtendsTrueLike(extendsCheck[1]) ? CompareResultRightInside : CompareResultDisjoint;
17720
17737
  }
17721
17738
 
17722
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/evaluate/broaden.mjs
17723
- function BroadFilter(type, types) {
17724
- return types.filter((left) => {
17725
- return Compare(type, left) === ResultRightInside ? false : true;
17726
- });
17727
- }
17728
- function IsBroadestType(type, types) {
17729
- const result = types.some((left) => {
17730
- const result2 = Compare(type, left);
17731
- return exports_guard.IsEqual(result2, ResultLeftInside) || exports_guard.IsEqual(result2, ResultEqual);
17732
- });
17733
- return exports_guard.IsEqual(result, false);
17739
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/evaluate/broaden.mjs
17740
+ function BroadenFilter(type, types, result = [], all = types) {
17741
+ return exports_guard.ShiftLeft(types, (left, right) => {
17742
+ const compare = Compare(type, left);
17743
+ return exports_guard.IsEqual(compare, CompareResultLeftInside) || exports_guard.IsEqual(compare, CompareResultEqual) ? all : exports_guard.IsEqual(compare, CompareResultDisjoint) ? BroadenFilter(type, right, [...result, left], all) : BroadenFilter(type, right, result, all);
17744
+ }, () => [...result, type]);
17734
17745
  }
17735
- function BroadenType(type, types) {
17746
+ function BroadenType(type, types, result) {
17736
17747
  const evaluated = EvaluateType(type);
17737
- return IsAny(evaluated) ? [evaluated] : IsBroadestType(evaluated, types) ? [...BroadFilter(evaluated, types), evaluated] : types;
17748
+ return IsAny(evaluated) ? [evaluated] : IsUnknown(evaluated) ? [evaluated] : IsNever(evaluated) ? BroadenTypes(types, result) : IsObject2(evaluated) ? BroadenTypes(types, [...result, evaluated]) : BroadenTypes(types, BroadenFilter(evaluated, result));
17738
17749
  }
17739
- function BroadenTypes(types) {
17740
- return types.reduce((result, left) => {
17741
- return IsObject2(left) ? [...result, left] : IsNever(left) ? result : BroadenType(left, result);
17742
- }, []);
17750
+ function BroadenTypes(types, result = []) {
17751
+ return exports_guard.ShiftLeft(types, (left, right) => BroadenType(left, right, result), () => result);
17743
17752
  }
17744
17753
  function Broaden(types) {
17745
17754
  const broadened = BroadenTypes(types);
17746
17755
  const flattened = Flatten(broadened);
17747
17756
  return flattened;
17748
17757
  }
17749
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/evaluate/instantiate.mjs
17758
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/evaluate/instantiate.mjs
17750
17759
  function EvaluateAction(type, options) {
17751
17760
  const result = exports_memory.Update(EvaluateType(type), {}, options);
17752
17761
  return result;
@@ -17755,7 +17764,7 @@ function EvaluateInstantiate(context, state, type, options) {
17755
17764
  const instantiatedType = InstantiateType(context, state, type);
17756
17765
  return EvaluateAction(instantiatedType, options);
17757
17766
  }
17758
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs
17767
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs
17759
17768
  function CollectDistributionNames(expression, result = []) {
17760
17769
  return IsDeferred(expression) && exports_guard.IsEqual(expression.action, "Conditional") ? IsRef(expression.parameters[0]) ? CollectDistributionNames(expression.parameters[2], CollectDistributionNames(expression.parameters[3], [...result, expression.parameters[0]["$ref"]])) : CollectDistributionNames(expression.parameters[2], CollectDistributionNames(expression.parameters[3], result)) : IsDeferred(expression) && exports_guard.IsEqual(expression.action, "Mapped") ? IsDeferred(expression.parameters[1]) && exports_guard.IsEqual(expression.parameters[1].action, "KeyOf") && IsRef(expression.parameters[1].parameters[0]) ? [...result, expression.parameters[1].parameters[0]["$ref"]] : result : result;
17761
17770
  }
@@ -17765,8 +17774,12 @@ function BuildDistributionArray(parameters, names) {
17765
17774
  function ZipDistributionArray(arguments_, distributionArray, result = []) {
17766
17775
  return exports_guard.ShiftLeft(arguments_, (argumentLeft, argumentRight) => exports_guard.ShiftLeft(distributionArray, (booleanLeft, booleanRight) => ZipDistributionArray(argumentRight, booleanRight, [...result, [booleanLeft, argumentLeft]]), () => result), () => result);
17767
17776
  }
17777
+ function CanonicalArgument(type) {
17778
+ return IsTemplateLiteral(type) ? EvaluateTemplateLiteral(type.pattern) : IsEnum(type) ? EvaluateEnum(type.enum) : type;
17779
+ }
17768
17780
  function Expand(type) {
17769
- return IsUnion(type) ? [...type.anyOf] : [type];
17781
+ const canonicalArgument = CanonicalArgument(type);
17782
+ return IsUnion(canonicalArgument) ? [...canonicalArgument.anyOf] : [canonicalArgument];
17770
17783
  }
17771
17784
  function Append(current, type) {
17772
17785
  return current.reduce((result, left) => [...result, [...left, type]], []);
@@ -17788,7 +17801,7 @@ function DistributeArguments(parameters, arguments_, expression) {
17788
17801
  return IsDeferred(expression) && exports_guard.IsEqual(expression.action, "Conditional") ? Distribute2(zippedArguments) : IsDeferred(expression) && exports_guard.IsEqual(expression.action, "Mapped") ? Distribute2(zippedArguments) : [arguments_];
17789
17802
  }
17790
17803
 
17791
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/call/resolve_target.mjs
17804
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/call/resolve_target.mjs
17792
17805
  function FromNotResolvable() {
17793
17806
  return ["(not-resolvable)", Never()];
17794
17807
  }
@@ -17808,7 +17821,7 @@ function ResolveTarget(context, target2, arguments_) {
17808
17821
  return FromType6(context, "(anonymous)", target2, arguments_);
17809
17822
  }
17810
17823
 
17811
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs
17824
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs
17812
17825
  function AssertArgumentExtends(name, type, extends_) {
17813
17826
  if (IsInfer(type) || IsCall(type) || exports_result.IsExtendsTrueLike(Extends({}, type, extends_)))
17814
17827
  return;
@@ -17832,7 +17845,24 @@ function ResolveArgumentsContext(context, state, parameters, arguments_) {
17832
17845
  return BindParameters(context, state, parameters, arguments_);
17833
17846
  }
17834
17847
 
17835
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/call/instantiate.mjs
17848
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/call/instantiate.mjs
17849
+ var instantiationDepth = 0;
17850
+ var instantiationCount = 0;
17851
+ function InstantiationAssert() {
17852
+ if (exports_guard.IsLessThan(instantiationCount, exports_settings.Get().maxInstantiationCount))
17853
+ return;
17854
+ throw Error("Type instantiation is excessively deep and possibly infinite");
17855
+ }
17856
+ function InstantiationIncrement() {
17857
+ InstantiationAssert();
17858
+ instantiationCount++;
17859
+ instantiationDepth++;
17860
+ }
17861
+ function InstantiationDecrement() {
17862
+ instantiationDepth--;
17863
+ if (exports_guard.IsEqual(instantiationDepth, 0))
17864
+ instantiationCount = 0;
17865
+ }
17836
17866
  function Peek(state) {
17837
17867
  const result = exports_guard.IsGreaterThan(state.callstack.length, 0) ? state.callstack[state.callstack.length - 1] : "";
17838
17868
  return result;
@@ -17842,12 +17872,20 @@ function IsTailCall(state, name) {
17842
17872
  return result;
17843
17873
  }
17844
17874
  function CallDispatch(context, state, target2, parameters, expression, arguments_) {
17845
- const argumentsContext = ResolveArgumentsContext(context, state, parameters, arguments_);
17846
- const returnType = InstantiateType(argumentsContext, State([...state["callstack"], target2["$ref"]], state["visited"]), expression);
17847
- return InstantiateType(argumentsContext, State([], []), returnType);
17875
+ InstantiationIncrement();
17876
+ try {
17877
+ const argumentsContext = ResolveArgumentsContext(context, state, parameters, arguments_);
17878
+ const returnType = InstantiateType(argumentsContext, State([...state["callstack"], target2["$ref"]], state["visited"]), expression);
17879
+ return InstantiateType(argumentsContext, State([], []), returnType);
17880
+ } finally {
17881
+ InstantiationDecrement();
17882
+ }
17848
17883
  }
17849
17884
  function CallDistributed(context, state, target2, parameters, expression, distributedArguments) {
17850
- return distributedArguments.reduce((result, arguments_) => [...result, CallDispatch(context, state, target2, parameters, expression, arguments_)], []);
17885
+ return distributedArguments.reduce((result, arguments_) => {
17886
+ const returnType = CallDispatch(context, state, target2, parameters, expression, arguments_);
17887
+ return [...result, returnType];
17888
+ }, []);
17851
17889
  }
17852
17890
  function CallImmediate(context, state, target2, parameters, expression, arguments_) {
17853
17891
  const distributedArguments = DistributeArguments(parameters, arguments_, expression);
@@ -17864,7 +17902,7 @@ function CallInstantiate(context, state, target2, arguments_) {
17864
17902
  return result;
17865
17903
  }
17866
17904
 
17867
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/types/call.mjs
17905
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/types/call.mjs
17868
17906
  function CallConstruct(target2, arguments_) {
17869
17907
  return exports_memory.Create({ ["~kind"]: "Call" }, { type: "call", target: target2, arguments: arguments_ }, {});
17870
17908
  }
@@ -17875,7 +17913,7 @@ function IsCall(value) {
17875
17913
  return IsKind(value, "Call");
17876
17914
  }
17877
17915
 
17878
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs
17916
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs
17879
17917
  function RemoveImmutableOperation(type) {
17880
17918
  return exports_memory.Discard(type, ["~immutable"]);
17881
17919
  }
@@ -17888,35 +17926,35 @@ function RemoveImmutableInstantiate(context, state, type, options) {
17888
17926
  return RemoveImmutableAction(instantiatedType, options);
17889
17927
  }
17890
17928
 
17891
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/intrinsics/mapping.mjs
17929
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/intrinsics/mapping.mjs
17892
17930
  function ApplyMapping(mapping, value) {
17893
17931
  return mapping(value);
17894
17932
  }
17895
17933
 
17896
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/intrinsics/from_literal.mjs
17934
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/intrinsics/from_literal.mjs
17897
17935
  function FromLiteral3(mapping, value) {
17898
17936
  return exports_guard.IsString(value) ? Literal(ApplyMapping(mapping, value)) : Literal(value);
17899
17937
  }
17900
17938
 
17901
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs
17939
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs
17902
17940
  function FromTemplateLiteral(mapping, pattern) {
17903
17941
  const evaluated = EvaluateTemplateLiteral(pattern);
17904
17942
  const result = FromType7(mapping, evaluated);
17905
17943
  return result;
17906
17944
  }
17907
17945
 
17908
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/intrinsics/from_union.mjs
17946
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/intrinsics/from_union.mjs
17909
17947
  function FromUnion2(mapping, types) {
17910
17948
  const result = types.map((type) => FromType7(mapping, type));
17911
17949
  return Union(result);
17912
17950
  }
17913
17951
 
17914
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/intrinsics/from_type.mjs
17952
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/intrinsics/from_type.mjs
17915
17953
  function FromType7(mapping, type) {
17916
17954
  return IsLiteral(type) ? FromLiteral3(mapping, type.const) : IsTemplateLiteral(type) ? FromTemplateLiteral(mapping, type.pattern) : IsUnion(type) ? FromUnion2(mapping, type.anyOf) : type;
17917
17955
  }
17918
17956
 
17919
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/action/capitalize.mjs
17957
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/capitalize.mjs
17920
17958
  function CapitalizeDeferred(type, options = {}) {
17921
17959
  return Deferred("Capitalize", [type], options);
17922
17960
  }
@@ -17924,7 +17962,7 @@ function Capitalize(type, options = {}) {
17924
17962
  return CapitalizeAction(type, options);
17925
17963
  }
17926
17964
 
17927
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/action/lowercase.mjs
17965
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/lowercase.mjs
17928
17966
  function LowercaseDeferred(type, options = {}) {
17929
17967
  return Deferred("Lowercase", [type], options);
17930
17968
  }
@@ -17932,7 +17970,7 @@ function Lowercase(type, options = {}) {
17932
17970
  return LowercaseAction(type, options);
17933
17971
  }
17934
17972
 
17935
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/action/uncapitalize.mjs
17973
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/uncapitalize.mjs
17936
17974
  function UncapitalizeDeferred(type, options = {}) {
17937
17975
  return Deferred("Uncapitalize", [type], options);
17938
17976
  }
@@ -17940,7 +17978,7 @@ function Uncapitalize(type, options = {}) {
17940
17978
  return UncapitalizeAction(type, options);
17941
17979
  }
17942
17980
 
17943
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/action/uppercase.mjs
17981
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/uppercase.mjs
17944
17982
  function UppercaseDeferred(type, options = {}) {
17945
17983
  return Deferred("Uppercase", [type], options);
17946
17984
  }
@@ -17948,7 +17986,7 @@ function Uppercase(type, options = {}) {
17948
17986
  return UppercaseAction(type, options);
17949
17987
  }
17950
17988
 
17951
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/intrinsics/instantiate.mjs
17989
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/intrinsics/instantiate.mjs
17952
17990
  var CapitalizeMapping = (input) => input[0].toUpperCase() + input.slice(1);
17953
17991
  var LowercaseMapping = (input) => input.toLowerCase();
17954
17992
  var UncapitalizeMapping = (input) => input[0].toLowerCase() + input.slice(1);
@@ -17986,7 +18024,7 @@ function UppercaseInstantiate(context, state, type, options) {
17986
18024
  return UppercaseAction(instantiatedType, options);
17987
18025
  }
17988
18026
 
17989
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/action/conditional.mjs
18027
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/conditional.mjs
17990
18028
  function ConditionalDeferred(left, right, true_, false_, options = {}) {
17991
18029
  return Deferred("Conditional", [left, right, true_, false_], options);
17992
18030
  }
@@ -17994,7 +18032,7 @@ function Conditional(left, right, true_, false_, options = {}) {
17994
18032
  return ConditionalAction({}, State([], []), left, right, true_, false_, options);
17995
18033
  }
17996
18034
 
17997
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/conditional/instantiate.mjs
18035
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/conditional/instantiate.mjs
17998
18036
  function ConditionalOperation(context, state, left, right, true_, false_) {
17999
18037
  const extendsResult = Extends(context, left, right);
18000
18038
  return exports_result.IsExtendsUnion(extendsResult) ? Union([InstantiateType(extendsResult.inferred, state, true_), InstantiateType(context, state, false_)]) : exports_result.IsExtendsTrue(extendsResult) ? InstantiateType(extendsResult.inferred, state, true_) : InstantiateType(context, state, false_);
@@ -18008,7 +18046,7 @@ function ConditionalInstantiate(context, state, left, right, true_, false_, opti
18008
18046
  const instantiatedRight = InstantiateType(context, state, right);
18009
18047
  return ConditionalAction(context, state, instantiatedLeft, instantiatedRight, true_, false_, options);
18010
18048
  }
18011
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/action/constructor_parameters.mjs
18049
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/constructor_parameters.mjs
18012
18050
  function ConstructorParametersDeferred(type, options = {}) {
18013
18051
  return Deferred("ConstructorParameters", [type], options);
18014
18052
  }
@@ -18016,7 +18054,7 @@ function ConstructorParameters(type, options = {}) {
18016
18054
  return ConstructorParametersAction(type, options);
18017
18055
  }
18018
18056
 
18019
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs
18057
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs
18020
18058
  function ConstructorParametersOperation(type) {
18021
18059
  const parameters = IsConstructor2(type) ? type["parameters"] : [];
18022
18060
  const instantiatedParameters = InstantiateElements({}, State([], []), parameters);
@@ -18032,7 +18070,7 @@ function ConstructorParametersInstantiate(context, state, type, options) {
18032
18070
  return ConstructorParametersAction(instantiatedType, options);
18033
18071
  }
18034
18072
 
18035
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/action/exclude.mjs
18073
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/exclude.mjs
18036
18074
  function ExcludeDeferred(left, right, options = {}) {
18037
18075
  return Deferred("Exclude", [left, right], options);
18038
18076
  }
@@ -18040,7 +18078,7 @@ function Exclude(left, right, options = {}) {
18040
18078
  return ExcludeAction(left, right, options);
18041
18079
  }
18042
18080
 
18043
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/exclude/instantiate.mjs
18081
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/exclude/instantiate.mjs
18044
18082
  function ExcludeAction(left, right, options) {
18045
18083
  const result = CanInstantiate([left, right]) ? exports_memory.Update(ExcludeOperation(left, right), {}, options) : ExcludeDeferred(left, right, options);
18046
18084
  return result;
@@ -18051,7 +18089,7 @@ function ExcludeInstantiate(context, state, left, right, options) {
18051
18089
  return ExcludeAction(instantiatedLeft, instantiatedRight, options);
18052
18090
  }
18053
18091
 
18054
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/action/extract.mjs
18092
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/extract.mjs
18055
18093
  function ExtractDeferred(left, right, options = {}) {
18056
18094
  return Deferred("Extract", [left, right], options);
18057
18095
  }
@@ -18059,16 +18097,14 @@ function Extract(left, right, options = {}) {
18059
18097
  return ExtractAction(left, right, options);
18060
18098
  }
18061
18099
 
18062
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/extract/operation.mjs
18100
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/extract/operation.mjs
18063
18101
  function ExtractType(left, right) {
18064
18102
  const check3 = Extends({}, left, right);
18065
18103
  const result = exports_result.IsExtendsTrueLike(check3) ? [left] : [];
18066
18104
  return result;
18067
18105
  }
18068
- function ExtractUnion(types, right) {
18069
- return types.reduce((result, head) => {
18070
- return [...result, ...ExtractType(head, right)];
18071
- }, []);
18106
+ function ExtractUnion(left, right, result = []) {
18107
+ return exports_guard.ShiftLeft(left, (head, tail) => ExtractUnion(tail, right, [...result, ...ExtractType(head, right)]), () => result);
18072
18108
  }
18073
18109
  function ExtractOperation(left, right) {
18074
18110
  const evaluated = EvaluateType(left);
@@ -18078,7 +18114,7 @@ function ExtractOperation(left, right) {
18078
18114
  return result;
18079
18115
  }
18080
18116
 
18081
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/extract/instantiate.mjs
18117
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/extract/instantiate.mjs
18082
18118
  function ExtractAction(left, right, options) {
18083
18119
  const result = CanInstantiate([left, right]) ? exports_memory.Update(ExtractOperation(left, right), {}, options) : ExtractDeferred(left, right, options);
18084
18120
  return result;
@@ -18089,7 +18125,7 @@ function ExtractInstantiate(context, state, left, right, options) {
18089
18125
  return ExtractAction(instantiatedLeft, instantiatedRight, options);
18090
18126
  }
18091
18127
 
18092
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/helpers/keys_to_indexer.mjs
18128
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/helpers/keys_to_indexer.mjs
18093
18129
  function KeysToLiterals(keys) {
18094
18130
  return keys.reduce((result, left) => {
18095
18131
  return IsLiteralValue(left) ? [...result, Literal(left)] : result;
@@ -18101,7 +18137,7 @@ function KeysToIndexer(keys) {
18101
18137
  return result;
18102
18138
  }
18103
18139
 
18104
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/action/indexed.mjs
18140
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/indexed.mjs
18105
18141
  function IndexDeferred(type, indexer, options = {}) {
18106
18142
  return Deferred("Index", [type, indexer], options);
18107
18143
  }
@@ -18110,21 +18146,21 @@ function Index(type, indexer_or_keys, options = {}) {
18110
18146
  return IndexAction(type, indexer, options);
18111
18147
  }
18112
18148
 
18113
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/object/from_cyclic.mjs
18149
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/object/from_cyclic.mjs
18114
18150
  function FromCyclic(defs, ref2) {
18115
18151
  const target2 = CyclicTarget(defs, ref2);
18116
18152
  const result = FromType8(target2);
18117
18153
  return result;
18118
18154
  }
18119
18155
 
18120
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/object/from_dependent.mjs
18156
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/object/from_dependent.mjs
18121
18157
  function FromDependent(if_, then_, else_) {
18122
18158
  const evaluated = EvaluateDependent(if_, then_, else_);
18123
18159
  const result = FromType8(evaluated);
18124
18160
  return result;
18125
18161
  }
18126
18162
 
18127
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/object/from_intersect.mjs
18163
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/object/from_intersect.mjs
18128
18164
  function CollapseIntersectProperties(left, right) {
18129
18165
  const leftKeys = exports_guard.Keys(left).filter((key) => !exports_guard.HasPropertyKey(right, key));
18130
18166
  const rightKeys = exports_guard.Keys(right).filter((key) => !exports_guard.HasPropertyKey(left, key));
@@ -18142,19 +18178,19 @@ function FromIntersect(types) {
18142
18178
  }, {});
18143
18179
  }
18144
18180
 
18145
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/object/from_object.mjs
18181
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/object/from_object.mjs
18146
18182
  function FromObject3(properties2) {
18147
18183
  return properties2;
18148
18184
  }
18149
18185
 
18150
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/object/from_tuple.mjs
18186
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/object/from_tuple.mjs
18151
18187
  function FromTuple(types) {
18152
18188
  const object3 = TupleToObject(Tuple(types));
18153
18189
  const result = FromType8(object3);
18154
18190
  return result;
18155
18191
  }
18156
18192
 
18157
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/object/from_union.mjs
18193
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/object/from_union.mjs
18158
18194
  function CollapseUnionProperties(left, right) {
18159
18195
  const sharedKeys = exports_guard.Keys(left).filter((key) => (key in right));
18160
18196
  const result = sharedKeys.reduce((result2, key) => {
@@ -18169,25 +18205,25 @@ function FromUnion3(types) {
18169
18205
  return exports_guard.ShiftLeft(types, (left, right) => ReduceVariants(right, FromType8(left)), () => Unreachable());
18170
18206
  }
18171
18207
 
18172
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/object/from_type.mjs
18208
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/object/from_type.mjs
18173
18209
  function FromType8(type) {
18174
18210
  return IsCyclic(type) ? FromCyclic(type.$defs, type.$ref) : IsDependent(type) ? FromDependent(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect(type.allOf) : IsUnion(type) ? FromUnion3(type.anyOf) : IsTuple(type) ? FromTuple(type.items) : IsObject2(type) ? FromObject3(type.properties) : {};
18175
18211
  }
18176
18212
 
18177
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/object/collapse.mjs
18213
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/object/collapse.mjs
18178
18214
  function CollapseToObject(type) {
18179
18215
  const properties2 = FromType8(type);
18180
18216
  const result = _Object_(properties2);
18181
18217
  return result;
18182
18218
  }
18183
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/helpers/keys.mjs
18219
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/helpers/keys.mjs
18184
18220
  var integerKeyPattern = new RegExp("^(?:0|[1-9][0-9]*)$");
18185
18221
  function ConvertToIntegerKey(value) {
18186
18222
  const normal = `${value}`;
18187
18223
  return integerKeyPattern.test(normal) ? parseInt(normal) : value;
18188
18224
  }
18189
18225
 
18190
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/indexed/from_array.mjs
18226
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/indexed/from_array.mjs
18191
18227
  function NormalizeLiteral(value) {
18192
18228
  return Literal(ConvertToIntegerKey(value));
18193
18229
  }
@@ -18204,66 +18240,66 @@ function FromArray2(type, indexer) {
18204
18240
  return result;
18205
18241
  }
18206
18242
 
18207
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/indexable/from_cyclic.mjs
18243
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/indexable/from_cyclic.mjs
18208
18244
  function FromCyclic2(defs, ref2) {
18209
18245
  const target2 = CyclicTarget(defs, ref2);
18210
18246
  const result = FromType9(target2);
18211
18247
  return result;
18212
18248
  }
18213
18249
 
18214
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs
18250
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs
18215
18251
  function FromDependent2(if_, then_, else_) {
18216
18252
  const evaluated = EvaluateDependent(if_, then_, else_);
18217
18253
  const result = FromType9(evaluated);
18218
18254
  return result;
18219
18255
  }
18220
18256
 
18221
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/indexable/from_enum.mjs
18257
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/indexable/from_enum.mjs
18222
18258
  function FromEnum(values) {
18223
18259
  const evaluated = EvaluateEnum(values);
18224
18260
  const result = FromType9(evaluated);
18225
18261
  return result;
18226
18262
  }
18227
18263
 
18228
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/indexable/from_intersect.mjs
18264
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/indexable/from_intersect.mjs
18229
18265
  function FromIntersect2(types) {
18230
18266
  const evaluated = EvaluateIntersect(types);
18231
18267
  const result = FromType9(evaluated);
18232
18268
  return result;
18233
18269
  }
18234
18270
 
18235
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/indexable/from_literal.mjs
18271
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/indexable/from_literal.mjs
18236
18272
  function FromLiteral4(value) {
18237
18273
  const result = [`${value}`];
18238
18274
  return result;
18239
18275
  }
18240
18276
 
18241
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs
18277
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs
18242
18278
  function FromTemplateLiteral2(pattern) {
18243
18279
  const evaluated = EvaluateTemplateLiteral(pattern);
18244
18280
  const result = FromType9(evaluated);
18245
18281
  return result;
18246
18282
  }
18247
18283
 
18248
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/indexable/from_union.mjs
18284
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/indexable/from_union.mjs
18249
18285
  function FromUnion4(types) {
18250
18286
  return types.reduce((result, left) => {
18251
18287
  return [...result, ...FromType9(left)];
18252
18288
  }, []);
18253
18289
  }
18254
18290
 
18255
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/indexable/from_type.mjs
18291
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/indexable/from_type.mjs
18256
18292
  function FromType9(type) {
18257
18293
  return IsCyclic(type) ? FromCyclic2(type.$defs, type.$ref) : IsDependent(type) ? FromDependent2(type.if, type.then, type.else) : IsEnum(type) ? FromEnum(type.enum) : IsIntersect(type) ? FromIntersect2(type.allOf) : IsLiteral(type) ? FromLiteral4(type.const) : IsTemplateLiteral(type) ? FromTemplateLiteral2(type.pattern) : IsUnion(type) ? FromUnion4(type.anyOf) : [];
18258
18294
  }
18259
18295
 
18260
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.mjs
18296
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.mjs
18261
18297
  function ToIndexableKeys(type) {
18262
18298
  const result = FromType9(type);
18263
18299
  return result;
18264
18300
  }
18265
18301
 
18266
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/this/expand_this.mjs
18302
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/this/expand_this.mjs
18267
18303
  function FromTypes5(properties2, types) {
18268
18304
  return types.map((type) => FromType10(properties2, type));
18269
18305
  }
@@ -18275,7 +18311,7 @@ function ExpandThis(properties2, type) {
18275
18311
  return result;
18276
18312
  }
18277
18313
 
18278
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/indexed/from_object.mjs
18314
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/indexed/from_object.mjs
18279
18315
  function IndexProperty(properties2, key) {
18280
18316
  const selectedType = key in properties2 ? properties2[key] : Never();
18281
18317
  const result = ExpandThis(properties2, selectedType);
@@ -18309,7 +18345,7 @@ function FromObject4(properties2, indexer) {
18309
18345
  return result;
18310
18346
  }
18311
18347
 
18312
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/indexed/array_indexer.mjs
18348
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/indexed/array_indexer.mjs
18313
18349
  function ConvertLiteral(value) {
18314
18350
  return Literal(ConvertToIntegerKey(value));
18315
18351
  }
@@ -18320,7 +18356,7 @@ function FormatArrayIndexer(type) {
18320
18356
  return IsIntersect(type) ? Intersect(ArrayIndexerTypes(type.allOf)) : IsUnion(type) ? Union(ArrayIndexerTypes(type.anyOf)) : IsLiteral(type) ? ConvertLiteral(type.const) : type;
18321
18357
  }
18322
18358
 
18323
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/indexed/from_tuple.mjs
18359
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/indexed/from_tuple.mjs
18324
18360
  function IndexElementsWithIndexer(types, indexer) {
18325
18361
  return types.reduceRight((result, right, index) => {
18326
18362
  const check3 = Extends({}, Literal(index), indexer);
@@ -18339,12 +18375,12 @@ function FromTuple2(types, indexer) {
18339
18375
  return IsLiteral(indexer) && exports_guard.IsEqual(indexer.const, "length") ? Literal(types.length) : IsNumber3(indexer) || IsInteger2(indexer) ? FromTupleWithoutIndexer(types) : FromTupleWithIndexer(types, indexer);
18340
18376
  }
18341
18377
 
18342
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/indexed/from_type.mjs
18378
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/indexed/from_type.mjs
18343
18379
  function FromType11(type, indexer) {
18344
18380
  return IsArray2(type) ? FromArray2(type.items, indexer) : IsObject2(type) ? FromObject4(type.properties, indexer) : IsTuple(type) ? FromTuple2(type.items, indexer) : Never();
18345
18381
  }
18346
18382
 
18347
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/indexed/instantiate.mjs
18383
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/indexed/instantiate.mjs
18348
18384
  function NormalizeType(type) {
18349
18385
  const result = IsCyclic(type) || IsDependent(type) || IsIntersect(type) || IsUnion(type) ? CollapseToObject(type) : type;
18350
18386
  return result;
@@ -18359,7 +18395,7 @@ function IndexInstantiate(context, state, type, indexer, options) {
18359
18395
  return IndexAction(instantiatedType, instantiatedIndexer, options);
18360
18396
  }
18361
18397
 
18362
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/action/instance_type.mjs
18398
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/instance_type.mjs
18363
18399
  function InstanceTypeDeferred(type, options = {}) {
18364
18400
  return Deferred("InstanceType", [type], options);
18365
18401
  }
@@ -18367,7 +18403,7 @@ function InstanceType(type, options = {}) {
18367
18403
  return InstanceTypeAction(type, options);
18368
18404
  }
18369
18405
 
18370
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/instance_type/instantiate.mjs
18406
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/instance_type/instantiate.mjs
18371
18407
  function InstanceTypeOperation(type) {
18372
18408
  return IsConstructor2(type) ? type["instanceType"] : Never();
18373
18409
  }
@@ -18380,7 +18416,7 @@ function InstanceTypeInstantiate(context, state, type, options = {}) {
18380
18416
  return InstanceTypeAction(instantiatedType, options);
18381
18417
  }
18382
18418
 
18383
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/action/keyof.mjs
18419
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/keyof.mjs
18384
18420
  function KeyOfDeferred(type, options = {}) {
18385
18421
  return Deferred("KeyOf", [type], options);
18386
18422
  }
@@ -18388,17 +18424,17 @@ function KeyOf2(type, options = {}) {
18388
18424
  return KeyOfAction(type, options);
18389
18425
  }
18390
18426
 
18391
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/keyof/from_any.mjs
18427
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/keyof/from_any.mjs
18392
18428
  function FromAny() {
18393
18429
  return Union([Number2(), String2(), Symbol2()]);
18394
18430
  }
18395
18431
 
18396
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/keyof/from_array.mjs
18432
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/keyof/from_array.mjs
18397
18433
  function FromArray3(_type) {
18398
18434
  return Number2();
18399
18435
  }
18400
18436
 
18401
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/keyof/from_object.mjs
18437
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/keyof/from_object.mjs
18402
18438
  function FromPropertyKeys(keys) {
18403
18439
  const result = keys.reduce((result2, left) => {
18404
18440
  return IsLiteralValue(left) ? [...result2, Literal(ConvertToIntegerKey(left))] : Unreachable();
@@ -18412,23 +18448,23 @@ function FromObject5(properties2) {
18412
18448
  return result;
18413
18449
  }
18414
18450
 
18415
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/keyof/from_record.mjs
18451
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/keyof/from_record.mjs
18416
18452
  function FromRecord2(type) {
18417
18453
  return RecordKey(type);
18418
18454
  }
18419
18455
 
18420
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/keyof/from_tuple.mjs
18456
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/keyof/from_tuple.mjs
18421
18457
  function FromTuple3(types) {
18422
18458
  const result = types.map((_, index) => Literal(index));
18423
18459
  return EvaluateUnionFast(result);
18424
18460
  }
18425
18461
 
18426
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/keyof/from_type.mjs
18462
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/keyof/from_type.mjs
18427
18463
  function FromType12(type) {
18428
18464
  return IsAny(type) ? FromAny() : IsArray2(type) ? FromArray3(type.items) : IsObject2(type) ? FromObject5(type.properties) : IsRecord(type) ? FromRecord2(type) : IsTuple(type) ? FromTuple3(type.items) : Never();
18429
18465
  }
18430
18466
 
18431
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/keyof/instantiate.mjs
18467
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/keyof/instantiate.mjs
18432
18468
  function NormalizeType2(type) {
18433
18469
  const result = IsCyclic(type) || IsDependent(type) || IsIntersect(type) || IsUnion(type) ? CollapseToObject(type) : type;
18434
18470
  return result;
@@ -18441,7 +18477,7 @@ function KeyOfInstantiate(context, state, type, options) {
18441
18477
  return KeyOfAction(instantiatedType, options);
18442
18478
  }
18443
18479
 
18444
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/action/mapped.mjs
18480
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/mapped.mjs
18445
18481
  function MappedDeferred(identifier2, type, as, property, options = {}) {
18446
18482
  return Deferred("Mapped", [identifier2, type, as, property], options);
18447
18483
  }
@@ -18449,7 +18485,7 @@ function Mapped(identifier2, type, as, property, options = {}) {
18449
18485
  return MappedAction({}, State([], []), identifier2, type, as, property, options);
18450
18486
  }
18451
18487
 
18452
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs
18488
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs
18453
18489
  function FromTemplateLiteral3(pattern) {
18454
18490
  const evaluated = EvaluateTemplateLiteral(pattern);
18455
18491
  const result = FromType13(evaluated);
@@ -18478,7 +18514,7 @@ function MappedVariants(type) {
18478
18514
  return result;
18479
18515
  }
18480
18516
 
18481
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs
18517
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs
18482
18518
  function CanonicalAs(instantiatedAs) {
18483
18519
  const result = IsTemplateLiteral(instantiatedAs) ? EvaluateTemplateLiteral(instantiatedAs.pattern) : instantiatedAs;
18484
18520
  return result;
@@ -18508,7 +18544,7 @@ function MappedOperation(context, state, identifier2, type, as, property) {
18508
18544
  return result;
18509
18545
  }
18510
18546
 
18511
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/mapped/instantiate.mjs
18547
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/mapped/instantiate.mjs
18512
18548
  function MappedAction(context, state, identifier2, type, as, property, options) {
18513
18549
  const result = CanInstantiate([type]) ? exports_memory.Update(MappedOperation(context, state, identifier2, type, as, property), {}, options) : MappedDeferred(identifier2, type, as, property, options);
18514
18550
  return result;
@@ -18518,7 +18554,7 @@ function MappedInstantiate(context, state, identifier2, type, as, property, opti
18518
18554
  return MappedAction(context, state, identifier2, instantiatedType, as, property, options);
18519
18555
  }
18520
18556
 
18521
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/module/instantiate.mjs
18557
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/module/instantiate.mjs
18522
18558
  function InstantiateCyclics(context, declarations, cyclicKeys) {
18523
18559
  const declarationContext = exports_memory.Assign(context, declarations);
18524
18560
  const declarationKeys = exports_guard.Keys(declarations).filter((key) => cyclicKeys.includes(key));
@@ -18545,7 +18581,7 @@ function ModuleInstantiate(context, _state, declarations, options) {
18545
18581
  return instantiatedModule;
18546
18582
  }
18547
18583
 
18548
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/action/non_nullable.mjs
18584
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/non_nullable.mjs
18549
18585
  function NonNullableDeferred(type, options = {}) {
18550
18586
  return Deferred("NonNullable", [type], options);
18551
18587
  }
@@ -18553,7 +18589,7 @@ function NonNullable(type, options = {}) {
18553
18589
  return NonNullableAction(type, options);
18554
18590
  }
18555
18591
 
18556
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/non_nullable/instantiate.mjs
18592
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/non_nullable/instantiate.mjs
18557
18593
  function NonNullableOperation(type) {
18558
18594
  const excluded = Union([Null(), Undefined()]);
18559
18595
  return ExcludeAction(type, excluded, {});
@@ -18567,7 +18603,7 @@ function NonNullableInstantiate(context, state, type, options) {
18567
18603
  return NonNullableAction(instantiatedType, options);
18568
18604
  }
18569
18605
 
18570
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/action/omit.mjs
18606
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/omit.mjs
18571
18607
  function OmitDeferred(type, indexer, options = {}) {
18572
18608
  return Deferred("Omit", [type, indexer], options);
18573
18609
  }
@@ -18576,14 +18612,14 @@ function Omit(type, indexer_or_keys, options = {}) {
18576
18612
  return OmitAction(type, indexer, options);
18577
18613
  }
18578
18614
 
18579
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/indexable/to_indexable.mjs
18615
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/indexable/to_indexable.mjs
18580
18616
  function ToIndexable(type) {
18581
18617
  const collapsed = CollapseToObject(type);
18582
18618
  const result = IsObject2(collapsed) ? collapsed.properties : Unreachable();
18583
18619
  return result;
18584
18620
  }
18585
18621
 
18586
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/omit/from_type.mjs
18622
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/omit/from_type.mjs
18587
18623
  function FromKeys(properties2, keys) {
18588
18624
  const result = exports_guard.Keys(properties2).reduce((result2, key) => {
18589
18625
  return keys.includes(key) ? result2 : { ...result2, [key]: properties2[key] };
@@ -18598,7 +18634,7 @@ function FromType14(type, indexer) {
18598
18634
  return result;
18599
18635
  }
18600
18636
 
18601
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/omit/instantiate.mjs
18637
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/omit/instantiate.mjs
18602
18638
  function OmitAction(type, indexer, options) {
18603
18639
  const result = CanInstantiate([type, indexer]) ? exports_memory.Update(FromType14(type, indexer), {}, options) : OmitDeferred(type, indexer, options);
18604
18640
  return result;
@@ -18609,7 +18645,7 @@ function OmitInstantiate(context, state, type, indexer, options) {
18609
18645
  return OmitAction(instantiatedType, instantiatedIndexer, options);
18610
18646
  }
18611
18647
 
18612
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/action/parameters.mjs
18648
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/parameters.mjs
18613
18649
  function ParametersDeferred(type, options = {}) {
18614
18650
  return Deferred("Parameters", [type], options);
18615
18651
  }
@@ -18617,7 +18653,7 @@ function Parameters(type, options = {}) {
18617
18653
  return ParametersAction(type, options);
18618
18654
  }
18619
18655
 
18620
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/parameters/instantiate.mjs
18656
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/parameters/instantiate.mjs
18621
18657
  function ParametersOperation(type) {
18622
18658
  const parameters = IsFunction2(type) ? type["parameters"] : [];
18623
18659
  const instantiatedParameters = InstantiateElements({}, State([], []), parameters);
@@ -18633,7 +18669,7 @@ function ParametersInstantiate(context, state, type, options) {
18633
18669
  return ParametersAction(instantiatedType, options);
18634
18670
  }
18635
18671
 
18636
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/action/partial.mjs
18672
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/partial.mjs
18637
18673
  function PartialDeferred(type, options = {}) {
18638
18674
  return Deferred("Partial", [type], options);
18639
18675
  }
@@ -18641,7 +18677,7 @@ function Partial(type, options = {}) {
18641
18677
  return PartialAction(type, options);
18642
18678
  }
18643
18679
 
18644
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/partial/from_cyclic.mjs
18680
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/partial/from_cyclic.mjs
18645
18681
  function FromCyclic3(defs, ref2) {
18646
18682
  const target2 = CyclicTarget(defs, ref2);
18647
18683
  const partial2 = FromType15(target2);
@@ -18649,27 +18685,27 @@ function FromCyclic3(defs, ref2) {
18649
18685
  return result;
18650
18686
  }
18651
18687
 
18652
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/partial/from_dependent.mjs
18688
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/partial/from_dependent.mjs
18653
18689
  function FromDependent3(if_, then_, else_) {
18654
18690
  const evaluated = EvaluateDependent(if_, then_, else_);
18655
18691
  const result = FromType15(evaluated);
18656
18692
  return result;
18657
18693
  }
18658
18694
 
18659
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/partial/from_intersect.mjs
18695
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/partial/from_intersect.mjs
18660
18696
  function FromIntersect3(types) {
18661
18697
  const evaluated = EvaluateIntersect(types);
18662
18698
  const result = FromType15(evaluated);
18663
18699
  return result;
18664
18700
  }
18665
18701
 
18666
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/partial/from_union.mjs
18702
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/partial/from_union.mjs
18667
18703
  function FromUnion6(types) {
18668
18704
  const result = types.map((type) => FromType15(type));
18669
18705
  return Union(result);
18670
18706
  }
18671
18707
 
18672
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/partial/from_object.mjs
18708
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/partial/from_object.mjs
18673
18709
  function FromObject6(properties2) {
18674
18710
  const mapped = exports_guard.Keys(properties2).reduce((result2, left) => {
18675
18711
  return { ...result2, [left]: AddOptional(properties2[left]) };
@@ -18678,12 +18714,12 @@ function FromObject6(properties2) {
18678
18714
  return result;
18679
18715
  }
18680
18716
 
18681
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/partial/from_type.mjs
18717
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/partial/from_type.mjs
18682
18718
  function FromType15(type) {
18683
18719
  return IsCyclic(type) ? FromCyclic3(type.$defs, type.$ref) : IsDependent(type) ? FromDependent3(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect3(type.allOf) : IsUnion(type) ? FromUnion6(type.anyOf) : IsObject2(type) ? FromObject6(type.properties) : _Object_({});
18684
18720
  }
18685
18721
 
18686
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/partial/instantiate.mjs
18722
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/partial/instantiate.mjs
18687
18723
  function PartialAction(type, options) {
18688
18724
  const result = CanInstantiate([type]) ? exports_memory.Update(FromType15(type), {}, options) : PartialDeferred(type, options);
18689
18725
  return result;
@@ -18693,7 +18729,7 @@ function PartialInstantiate(context, state, type, options) {
18693
18729
  return PartialAction(instantiatedType, options);
18694
18730
  }
18695
18731
 
18696
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/action/pick.mjs
18732
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/pick.mjs
18697
18733
  function PickDeferred(type, indexer, options = {}) {
18698
18734
  return Deferred("Pick", [type, indexer], options);
18699
18735
  }
@@ -18702,7 +18738,7 @@ function Pick(type, indexer_or_keys, options = {}) {
18702
18738
  return PickAction(type, indexer, options);
18703
18739
  }
18704
18740
 
18705
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/pick/from_type.mjs
18741
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/pick/from_type.mjs
18706
18742
  function FromKeys2(properties2, keys) {
18707
18743
  const result = exports_guard.Keys(properties2).reduce((result2, key) => {
18708
18744
  return keys.includes(key) ? exports_memory.Assign(result2, { [key]: properties2[key] }) : result2;
@@ -18717,7 +18753,7 @@ function FromType16(type, indexer) {
18717
18753
  return result;
18718
18754
  }
18719
18755
 
18720
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/pick/instantiate.mjs
18756
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/pick/instantiate.mjs
18721
18757
  function PickAction(type, indexer, options) {
18722
18758
  const result = CanInstantiate([type, indexer]) ? exports_memory.Update(FromType16(type, indexer), {}, options) : PickDeferred(type, indexer, options);
18723
18759
  return result;
@@ -18728,7 +18764,7 @@ function PickInstantiate(context, state, type, indexer, options) {
18728
18764
  return PickAction(instantiatedType, instantiatedIndexer, options);
18729
18765
  }
18730
18766
 
18731
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/action/readonly_object.mjs
18767
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/readonly_object.mjs
18732
18768
  function ReadonlyObjectDeferred(type, options = {}) {
18733
18769
  return Deferred("ReadonlyObject", [type], options);
18734
18770
  }
@@ -18737,13 +18773,13 @@ function ReadonlyObject(type, options = {}) {
18737
18773
  }
18738
18774
  var ReadonlyType = ReadonlyObject;
18739
18775
 
18740
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs
18776
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs
18741
18777
  function FromArray4(type) {
18742
18778
  const result = AddImmutable(_Array_(type));
18743
18779
  return result;
18744
18780
  }
18745
18781
 
18746
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.mjs
18782
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.mjs
18747
18783
  function FromCyclic4(defs, ref2) {
18748
18784
  const target2 = CyclicTarget(defs, ref2);
18749
18785
  const partial2 = FromType17(target2);
@@ -18751,21 +18787,21 @@ function FromCyclic4(defs, ref2) {
18751
18787
  return result;
18752
18788
  }
18753
18789
 
18754
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs
18790
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs
18755
18791
  function FromDependent4(if_, then_, else_) {
18756
18792
  const evaluated = EvaluateDependent(if_, then_, else_);
18757
18793
  const result = FromType17(evaluated);
18758
18794
  return result;
18759
18795
  }
18760
18796
 
18761
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs
18797
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs
18762
18798
  function FromIntersect4(types) {
18763
18799
  const evaluated = EvaluateIntersect(types);
18764
18800
  const result = FromType17(evaluated);
18765
18801
  return result;
18766
18802
  }
18767
18803
 
18768
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs
18804
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs
18769
18805
  function FromObject7(properties2) {
18770
18806
  const mapped = exports_guard.Keys(properties2).reduce((result2, left) => {
18771
18807
  return { ...result2, [left]: AddReadonly(properties2[left]) };
@@ -18774,24 +18810,24 @@ function FromObject7(properties2) {
18774
18810
  return result;
18775
18811
  }
18776
18812
 
18777
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs
18813
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs
18778
18814
  function FromTuple4(types) {
18779
18815
  const result = AddImmutable(Tuple(types));
18780
18816
  return result;
18781
18817
  }
18782
18818
 
18783
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/readonly_object/from_union.mjs
18819
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/readonly_object/from_union.mjs
18784
18820
  function FromUnion7(types) {
18785
18821
  const result = types.map((type) => FromType17(type));
18786
18822
  return Union(result);
18787
18823
  }
18788
18824
 
18789
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs
18825
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs
18790
18826
  function FromType17(type) {
18791
18827
  return IsArray2(type) ? FromArray4(type.items) : IsCyclic(type) ? FromCyclic4(type.$defs, type.$ref) : IsDependent(type) ? FromDependent4(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect4(type.allOf) : IsObject2(type) ? FromObject7(type.properties) : IsTuple(type) ? FromTuple4(type.items) : IsUnion(type) ? FromUnion7(type.anyOf) : type;
18792
18828
  }
18793
18829
 
18794
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/readonly_object/instantiate.mjs
18830
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/readonly_object/instantiate.mjs
18795
18831
  function ReadonlyObjectAction(type, options) {
18796
18832
  const result = CanInstantiate([type]) ? exports_memory.Update(FromType17(type), {}, options) : ReadonlyObjectDeferred(type);
18797
18833
  return result;
@@ -18801,12 +18837,12 @@ function ReadonlyObjectInstantiate(context, state, type, options) {
18801
18837
  return ReadonlyObjectAction(instantiatedType, options);
18802
18838
  }
18803
18839
 
18804
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/ref/instantiate.mjs
18840
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/ref/instantiate.mjs
18805
18841
  function RefInstantiate(context, state, type, ref2) {
18806
18842
  return state.visited.includes(ref2) ? type : (ref2 in context) ? InstantiateType(context, State(state["callstack"], [...state["visited"], ref2]), context[ref2]) : type;
18807
18843
  }
18808
18844
 
18809
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/required/from_cyclic.mjs
18845
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/required/from_cyclic.mjs
18810
18846
  function FromCyclic5(defs, ref2) {
18811
18847
  const target2 = CyclicTarget(defs, ref2);
18812
18848
  const partial2 = FromType18(target2);
@@ -18814,27 +18850,27 @@ function FromCyclic5(defs, ref2) {
18814
18850
  return result;
18815
18851
  }
18816
18852
 
18817
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/required/from_dependent.mjs
18853
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/required/from_dependent.mjs
18818
18854
  function FromDependent5(if_, then_, else_) {
18819
18855
  const evaluated = EvaluateDependent(if_, then_, else_);
18820
18856
  const result = FromType18(evaluated);
18821
18857
  return result;
18822
18858
  }
18823
18859
 
18824
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/required/from_intersect.mjs
18860
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/required/from_intersect.mjs
18825
18861
  function FromIntersect5(types) {
18826
18862
  const evaluated = EvaluateIntersect(types);
18827
18863
  const result = FromType18(evaluated);
18828
18864
  return result;
18829
18865
  }
18830
18866
 
18831
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/required/from_union.mjs
18867
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/required/from_union.mjs
18832
18868
  function FromUnion8(types) {
18833
18869
  const result = types.map((type) => FromType18(type));
18834
18870
  return Union(result);
18835
18871
  }
18836
18872
 
18837
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/required/from_object.mjs
18873
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/required/from_object.mjs
18838
18874
  function FromObject8(properties2) {
18839
18875
  const mapped = exports_guard.Keys(properties2).reduce((result2, left) => {
18840
18876
  return { ...result2, [left]: RemoveOptional(properties2[left]) };
@@ -18843,12 +18879,12 @@ function FromObject8(properties2) {
18843
18879
  return result;
18844
18880
  }
18845
18881
 
18846
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/required/from_type.mjs
18882
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/required/from_type.mjs
18847
18883
  function FromType18(type) {
18848
18884
  return IsCyclic(type) ? FromCyclic5(type.$defs, type.$ref) : IsDependent(type) ? FromDependent5(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect5(type.allOf) : IsUnion(type) ? FromUnion8(type.anyOf) : IsObject2(type) ? FromObject8(type.properties) : _Object_({});
18849
18885
  }
18850
18886
 
18851
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/action/required.mjs
18887
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/required.mjs
18852
18888
  function RequiredDeferred(type, options = {}) {
18853
18889
  return Deferred("Required", [type], options);
18854
18890
  }
@@ -18856,7 +18892,7 @@ function Required(type, options = {}) {
18856
18892
  return RequiredAction(type, options);
18857
18893
  }
18858
18894
 
18859
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/required/instantiate.mjs
18895
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/required/instantiate.mjs
18860
18896
  function RequiredAction(type, options) {
18861
18897
  const result = CanInstantiate([type]) ? exports_memory.Update(FromType18(type), {}, options) : RequiredDeferred(type, options);
18862
18898
  return result;
@@ -18866,7 +18902,7 @@ function RequiredInstantiate(context, state, type, options) {
18866
18902
  return RequiredAction(instaniatedType, options);
18867
18903
  }
18868
18904
 
18869
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/action/return_type.mjs
18905
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/return_type.mjs
18870
18906
  function ReturnTypeDeferred(type, options = {}) {
18871
18907
  return Deferred("ReturnType", [type], options);
18872
18908
  }
@@ -18874,7 +18910,7 @@ function ReturnType(type, options = {}) {
18874
18910
  return ReturnTypeAction(type, options);
18875
18911
  }
18876
18912
 
18877
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/return_type/instantiate.mjs
18913
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/return_type/instantiate.mjs
18878
18914
  function ReturnTypeOperation(type) {
18879
18915
  return IsFunction2(type) ? type["returnType"] : Never();
18880
18916
  }
@@ -18887,7 +18923,7 @@ function ReturnTypeInstantiate(context, state, type, options = {}) {
18887
18923
  return ReturnTypeAction(instantiatedType, options);
18888
18924
  }
18889
18925
 
18890
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/action/with.mjs
18926
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/with.mjs
18891
18927
  function WithDeferred(type, options) {
18892
18928
  return Deferred("With", [type, options], {});
18893
18929
  }
@@ -18895,7 +18931,7 @@ function With2(type, options) {
18895
18931
  return WithAction(type, options);
18896
18932
  }
18897
18933
 
18898
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/with/instantiate.mjs
18934
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/with/instantiate.mjs
18899
18935
  function WithAction(type, options) {
18900
18936
  const result = CanInstantiate([type]) ? exports_memory.Update(type, {}, options) : WithDeferred(type, options);
18901
18937
  return result;
@@ -18905,7 +18941,7 @@ function WithInstantiate(context, state, type, options) {
18905
18941
  return WithAction(instaniatedType, options);
18906
18942
  }
18907
18943
 
18908
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/rest/spread.mjs
18944
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/rest/spread.mjs
18909
18945
  function SpreadElement(type) {
18910
18946
  const result = IsRest(type) ? IsTuple(type.items) ? RestSpread(type.items.items) : IsInfer(type.items) ? [type] : IsRef(type.items) ? [type] : [Never()] : [type];
18911
18947
  return result;
@@ -18916,7 +18952,7 @@ function RestSpread(types) {
18916
18952
  }, []);
18917
18953
  return result;
18918
18954
  }
18919
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/instantiate.mjs
18955
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/instantiate.mjs
18920
18956
  function State(callstack, visited) {
18921
18957
  return { callstack, visited };
18922
18958
  }
@@ -18958,7 +18994,7 @@ function Instantiate(context, type) {
18958
18994
  return InstantiateType(context, State([], []), type);
18959
18995
  }
18960
18996
 
18961
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs
18997
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs
18962
18998
  function AddImmutableOperation(type) {
18963
18999
  return exports_memory.Update(type, { "~immutable": true }, {});
18964
19000
  }
@@ -18971,28 +19007,28 @@ function AddImmutableInstantiate(context, state, type, options) {
18971
19007
  return AddImmutableAction(instantiatedType, options);
18972
19008
  }
18973
19009
 
18974
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/action/_add_immutable.mjs
19010
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/_add_immutable.mjs
18975
19011
  function AddImmutableDeferred(type, options = {}) {
18976
19012
  return Deferred("AddImmutable", [type], options);
18977
19013
  }
18978
19014
  function AddImmutable(type, options = {}) {
18979
19015
  return AddImmutableAction(type, options);
18980
19016
  }
18981
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/action/evaluate.mjs
19017
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/evaluate.mjs
18982
19018
  function EvaluateDeferred(type, options = {}) {
18983
19019
  return Deferred("Evaluate", [type], options);
18984
19020
  }
18985
19021
  function Evaluate(type, options = {}) {
18986
19022
  return EvaluateAction(type, options);
18987
19023
  }
18988
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/action/module.mjs
19024
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/action/module.mjs
18989
19025
  function ModuleDeferred(declarations, options = {}) {
18990
19026
  return Deferred("Module", [declarations], options);
18991
19027
  }
18992
19028
  function Module2(declarations, options = {}) {
18993
19029
  return ModuleInstantiate({}, State([], []), declarations, options);
18994
19030
  }
18995
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/type/script/script.mjs
19031
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/type/script/script.mjs
18996
19032
  function Script2(...args) {
18997
19033
  const [context, input, options] = exports_arguments.Match(args, {
18998
19034
  2: (script, options2) => exports_guard.IsString(script) ? [{}, script, options2] : [script, options2, {}],
@@ -19003,7 +19039,7 @@ function Script2(...args) {
19003
19039
  const parsed = exports_guard.IsArray(result) && exports_guard.IsEqual(result.length, 2) ? InstantiateType(context, State([], []), result[0]) : Never();
19004
19040
  return exports_memory.Update(parsed, {}, options);
19005
19041
  }
19006
- // ../../node_modules/.bun/typebox@1.3.7/node_modules/typebox/build/typebox.mjs
19042
+ // ../../node_modules/.bun/typebox@1.3.16/node_modules/typebox/build/typebox.mjs
19007
19043
  var exports_typebox = {};
19008
19044
  __export(exports_typebox, {
19009
19045
  With: () => With2,
@@ -19604,6 +19640,24 @@ async function checkClientVersion(baseUrl, cliVersion, fetchImpl = fetch) {
19604
19640
  }
19605
19641
  }
19606
19642
 
19643
+ // src/node-check.ts
19644
+ import * as zlib from "node:zlib";
19645
+ function zstdSupportError(zlibModule = zlib, nodeVersion = process.versions.node) {
19646
+ if (typeof zlibModule.createZstdDecompress === "function")
19647
+ return null;
19648
+ return [
19649
+ `free-pi-cli can't run on Node ${nodeVersion}.`,
19650
+ ``,
19651
+ `The pi agent needs Node with zstd support (Node >= 22.15, or >= 23.8 on the`,
19652
+ `Current line) — older Node crashes mid-request inside the agent. Upgrade Node:`,
19653
+ ``,
19654
+ ` nvm install 22 # then re-run: npx free-pi-cli`,
19655
+ ``,
19656
+ `(or update your system Node to the latest LTS.)`
19657
+ ].join(`
19658
+ `);
19659
+ }
19660
+
19607
19661
  // src/index.ts
19608
19662
  function realSpawn(cmd, args, opts) {
19609
19663
  const result = spawnSync(cmd, args, { timeout: opts.timeout, encoding: "utf8" });
@@ -19617,6 +19671,11 @@ function resolveCliRealpath() {
19617
19671
  }
19618
19672
  }
19619
19673
  async function main() {
19674
+ const zstdErr = zstdSupportError();
19675
+ if (zstdErr) {
19676
+ console.error(zstdErr);
19677
+ process.exit(1);
19678
+ }
19620
19679
  const agentDir = getFreePiAgentDir();
19621
19680
  const code = await run({
19622
19681
  baseUrl: resolveBaseUrl(),