@absolutejs/sync 2.2.2 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/manifest.js CHANGED
@@ -5933,2558 +5933,8 @@ var manifestSchema = Type.Object({
5933
5933
  wiring: Type.Array(wiringRecipe)
5934
5934
  });
5935
5935
 
5936
- // node_modules/@sinclair/typebox/build/esm/type/guard/value.mjs
5937
- var exports_value3 = {};
5938
- __export(exports_value3, {
5939
- IsUndefined: () => IsUndefined5,
5940
- IsUint8Array: () => IsUint8Array5,
5941
- IsSymbol: () => IsSymbol5,
5942
- IsString: () => IsString5,
5943
- IsRegExp: () => IsRegExp4,
5944
- IsObject: () => IsObject5,
5945
- IsNumber: () => IsNumber5,
5946
- IsNull: () => IsNull5,
5947
- IsIterator: () => IsIterator5,
5948
- IsFunction: () => IsFunction5,
5949
- IsDate: () => IsDate5,
5950
- IsBoolean: () => IsBoolean5,
5951
- IsBigInt: () => IsBigInt5,
5952
- IsAsyncIterator: () => IsAsyncIterator5,
5953
- IsArray: () => IsArray5,
5954
- HasPropertyKey: () => HasPropertyKey3
5955
- });
5956
- function HasPropertyKey3(value, key) {
5957
- return key in value;
5958
- }
5959
- function IsAsyncIterator5(value) {
5960
- return IsObject5(value) && !IsArray5(value) && !IsUint8Array5(value) && Symbol.asyncIterator in value;
5961
- }
5962
- function IsArray5(value) {
5963
- return Array.isArray(value);
5964
- }
5965
- function IsBigInt5(value) {
5966
- return typeof value === "bigint";
5967
- }
5968
- function IsBoolean5(value) {
5969
- return typeof value === "boolean";
5970
- }
5971
- function IsDate5(value) {
5972
- return value instanceof globalThis.Date;
5973
- }
5974
- function IsFunction5(value) {
5975
- return typeof value === "function";
5976
- }
5977
- function IsIterator5(value) {
5978
- return IsObject5(value) && !IsArray5(value) && !IsUint8Array5(value) && Symbol.iterator in value;
5979
- }
5980
- function IsNull5(value) {
5981
- return value === null;
5982
- }
5983
- function IsNumber5(value) {
5984
- return typeof value === "number";
5985
- }
5986
- function IsObject5(value) {
5987
- return typeof value === "object" && value !== null;
5988
- }
5989
- function IsRegExp4(value) {
5990
- return value instanceof globalThis.RegExp;
5991
- }
5992
- function IsString5(value) {
5993
- return typeof value === "string";
5994
- }
5995
- function IsSymbol5(value) {
5996
- return typeof value === "symbol";
5997
- }
5998
- function IsUint8Array5(value) {
5999
- return value instanceof globalThis.Uint8Array;
6000
- }
6001
- function IsUndefined5(value) {
6002
- return value === undefined;
6003
- }
6004
-
6005
- // node_modules/@sinclair/typebox/build/esm/type/clone/value.mjs
6006
- function ArrayType6(value) {
6007
- return value.map((value2) => Visit17(value2));
6008
- }
6009
- function DateType4(value) {
6010
- return new Date(value.getTime());
6011
- }
6012
- function Uint8ArrayType3(value) {
6013
- return new Uint8Array(value);
6014
- }
6015
- function RegExpType2(value) {
6016
- return new RegExp(value.source, value.flags);
6017
- }
6018
- function ObjectType6(value) {
6019
- const result = {};
6020
- for (const key of Object.getOwnPropertyNames(value)) {
6021
- result[key] = Visit17(value[key]);
6022
- }
6023
- for (const key of Object.getOwnPropertySymbols(value)) {
6024
- result[key] = Visit17(value[key]);
6025
- }
6026
- return result;
6027
- }
6028
- function Visit17(value) {
6029
- return IsArray5(value) ? ArrayType6(value) : IsDate5(value) ? DateType4(value) : IsUint8Array5(value) ? Uint8ArrayType3(value) : IsRegExp4(value) ? RegExpType2(value) : IsObject5(value) ? ObjectType6(value) : value;
6030
- }
6031
- function Clone3(value) {
6032
- return Visit17(value);
6033
- }
6034
-
6035
- // node_modules/@sinclair/typebox/build/esm/type/clone/type.mjs
6036
- function CloneType2(schema, options) {
6037
- return options === undefined ? Clone3(schema) : Clone3({ ...options, ...schema });
6038
- }
6039
-
6040
- // node_modules/@sinclair/typebox/build/esm/value/guard/guard.mjs
6041
- function IsObject7(value) {
6042
- return value !== null && typeof value === "object";
6043
- }
6044
- function IsArray7(value) {
6045
- return globalThis.Array.isArray(value) && !globalThis.ArrayBuffer.isView(value);
6046
- }
6047
- function IsUndefined7(value) {
6048
- return value === undefined;
6049
- }
6050
- function IsNumber7(value) {
6051
- return typeof value === "number";
6052
- }
6053
-
6054
- // node_modules/@sinclair/typebox/build/esm/system/policy.mjs
6055
- var TypeSystemPolicy2;
6056
- (function(TypeSystemPolicy3) {
6057
- TypeSystemPolicy3.InstanceMode = "default";
6058
- TypeSystemPolicy3.ExactOptionalPropertyTypes = false;
6059
- TypeSystemPolicy3.AllowArrayObject = false;
6060
- TypeSystemPolicy3.AllowNaN = false;
6061
- TypeSystemPolicy3.AllowNullVoid = false;
6062
- function IsExactOptionalProperty(value, key) {
6063
- return TypeSystemPolicy3.ExactOptionalPropertyTypes ? key in value : value[key] !== undefined;
6064
- }
6065
- TypeSystemPolicy3.IsExactOptionalProperty = IsExactOptionalProperty;
6066
- function IsObjectLike(value) {
6067
- const isObject = IsObject7(value);
6068
- return TypeSystemPolicy3.AllowArrayObject ? isObject : isObject && !IsArray7(value);
6069
- }
6070
- TypeSystemPolicy3.IsObjectLike = IsObjectLike;
6071
- function IsRecordLike(value) {
6072
- return IsObjectLike(value) && !(value instanceof Date) && !(value instanceof Uint8Array);
6073
- }
6074
- TypeSystemPolicy3.IsRecordLike = IsRecordLike;
6075
- function IsNumberLike(value) {
6076
- return TypeSystemPolicy3.AllowNaN ? IsNumber7(value) : Number.isFinite(value);
6077
- }
6078
- TypeSystemPolicy3.IsNumberLike = IsNumberLike;
6079
- function IsVoidLike(value) {
6080
- const isUndefined = IsUndefined7(value);
6081
- return TypeSystemPolicy3.AllowNullVoid ? isUndefined || value === null : isUndefined;
6082
- }
6083
- TypeSystemPolicy3.IsVoidLike = IsVoidLike;
6084
- })(TypeSystemPolicy2 || (TypeSystemPolicy2 = {}));
6085
-
6086
- // node_modules/@sinclair/typebox/build/esm/type/create/immutable.mjs
6087
- function ImmutableArray2(value) {
6088
- return globalThis.Object.freeze(value).map((value2) => Immutable2(value2));
6089
- }
6090
- function ImmutableDate2(value) {
6091
- return value;
6092
- }
6093
- function ImmutableUint8Array2(value) {
6094
- return value;
6095
- }
6096
- function ImmutableRegExp2(value) {
6097
- return value;
6098
- }
6099
- function ImmutableObject2(value) {
6100
- const result = {};
6101
- for (const key of Object.getOwnPropertyNames(value)) {
6102
- result[key] = Immutable2(value[key]);
6103
- }
6104
- for (const key of Object.getOwnPropertySymbols(value)) {
6105
- result[key] = Immutable2(value[key]);
6106
- }
6107
- return globalThis.Object.freeze(result);
6108
- }
6109
- function Immutable2(value) {
6110
- return IsArray5(value) ? ImmutableArray2(value) : IsDate5(value) ? ImmutableDate2(value) : IsUint8Array5(value) ? ImmutableUint8Array2(value) : IsRegExp4(value) ? ImmutableRegExp2(value) : IsObject5(value) ? ImmutableObject2(value) : value;
6111
- }
6112
-
6113
- // node_modules/@sinclair/typebox/build/esm/type/create/type.mjs
6114
- function CreateType2(schema, options) {
6115
- const result = options !== undefined ? { ...options, ...schema } : schema;
6116
- switch (TypeSystemPolicy2.InstanceMode) {
6117
- case "freeze":
6118
- return Immutable2(result);
6119
- case "clone":
6120
- return Clone3(result);
6121
- default:
6122
- return result;
6123
- }
6124
- }
6125
-
6126
- // node_modules/@sinclair/typebox/build/esm/type/error/error.mjs
6127
- class TypeBoxError2 extends Error {
6128
- constructor(message) {
6129
- super(message);
6130
- }
6131
- }
6132
-
6133
- // node_modules/@sinclair/typebox/build/esm/type/symbols/symbols.mjs
6134
- var TransformKind2 = Symbol.for("TypeBox.Transform");
6135
- var ReadonlyKind2 = Symbol.for("TypeBox.Readonly");
6136
- var OptionalKind2 = Symbol.for("TypeBox.Optional");
6137
- var Hint2 = Symbol.for("TypeBox.Hint");
6138
- var Kind2 = Symbol.for("TypeBox.Kind");
6139
-
6140
- // node_modules/@sinclair/typebox/build/esm/type/guard/kind.mjs
6141
- function IsReadonly3(value) {
6142
- return IsObject5(value) && value[ReadonlyKind2] === "Readonly";
6143
- }
6144
- function IsOptional3(value) {
6145
- return IsObject5(value) && value[OptionalKind2] === "Optional";
6146
- }
6147
- function IsAny3(value) {
6148
- return IsKindOf3(value, "Any");
6149
- }
6150
- function IsArgument3(value) {
6151
- return IsKindOf3(value, "Argument");
6152
- }
6153
- function IsArray8(value) {
6154
- return IsKindOf3(value, "Array");
6155
- }
6156
- function IsAsyncIterator7(value) {
6157
- return IsKindOf3(value, "AsyncIterator");
6158
- }
6159
- function IsBigInt7(value) {
6160
- return IsKindOf3(value, "BigInt");
6161
- }
6162
- function IsBoolean7(value) {
6163
- return IsKindOf3(value, "Boolean");
6164
- }
6165
- function IsComputed3(value) {
6166
- return IsKindOf3(value, "Computed");
6167
- }
6168
- function IsConstructor3(value) {
6169
- return IsKindOf3(value, "Constructor");
6170
- }
6171
- function IsDate7(value) {
6172
- return IsKindOf3(value, "Date");
6173
- }
6174
- function IsFunction7(value) {
6175
- return IsKindOf3(value, "Function");
6176
- }
6177
- function IsInteger4(value) {
6178
- return IsKindOf3(value, "Integer");
6179
- }
6180
- function IsIntersect3(value) {
6181
- return IsKindOf3(value, "Intersect");
6182
- }
6183
- function IsIterator7(value) {
6184
- return IsKindOf3(value, "Iterator");
6185
- }
6186
- function IsKindOf3(value, kind) {
6187
- return IsObject5(value) && Kind2 in value && value[Kind2] === kind;
6188
- }
6189
- function IsLiteralValue3(value) {
6190
- return IsBoolean5(value) || IsNumber5(value) || IsString5(value);
6191
- }
6192
- function IsLiteral3(value) {
6193
- return IsKindOf3(value, "Literal");
6194
- }
6195
- function IsMappedKey3(value) {
6196
- return IsKindOf3(value, "MappedKey");
6197
- }
6198
- function IsMappedResult3(value) {
6199
- return IsKindOf3(value, "MappedResult");
6200
- }
6201
- function IsNever3(value) {
6202
- return IsKindOf3(value, "Never");
6203
- }
6204
- function IsNot3(value) {
6205
- return IsKindOf3(value, "Not");
6206
- }
6207
- function IsNull7(value) {
6208
- return IsKindOf3(value, "Null");
6209
- }
6210
- function IsNumber8(value) {
6211
- return IsKindOf3(value, "Number");
6212
- }
6213
- function IsObject8(value) {
6214
- return IsKindOf3(value, "Object");
6215
- }
6216
- function IsPromise4(value) {
6217
- return IsKindOf3(value, "Promise");
6218
- }
6219
- function IsRecord3(value) {
6220
- return IsKindOf3(value, "Record");
6221
- }
6222
- function IsRef3(value) {
6223
- return IsKindOf3(value, "Ref");
6224
- }
6225
- function IsRegExp6(value) {
6226
- return IsKindOf3(value, "RegExp");
6227
- }
6228
- function IsString7(value) {
6229
- return IsKindOf3(value, "String");
6230
- }
6231
- function IsSymbol7(value) {
6232
- return IsKindOf3(value, "Symbol");
6233
- }
6234
- function IsTemplateLiteral3(value) {
6235
- return IsKindOf3(value, "TemplateLiteral");
6236
- }
6237
- function IsThis3(value) {
6238
- return IsKindOf3(value, "This");
6239
- }
6240
- function IsTransform3(value) {
6241
- return IsObject5(value) && TransformKind2 in value;
6242
- }
6243
- function IsTuple3(value) {
6244
- return IsKindOf3(value, "Tuple");
6245
- }
6246
- function IsUndefined8(value) {
6247
- return IsKindOf3(value, "Undefined");
6248
- }
6249
- function IsUnion3(value) {
6250
- return IsKindOf3(value, "Union");
6251
- }
6252
- function IsUint8Array7(value) {
6253
- return IsKindOf3(value, "Uint8Array");
6254
- }
6255
- function IsUnknown3(value) {
6256
- return IsKindOf3(value, "Unknown");
6257
- }
6258
- function IsUnsafe3(value) {
6259
- return IsKindOf3(value, "Unsafe");
6260
- }
6261
- function IsVoid3(value) {
6262
- return IsKindOf3(value, "Void");
6263
- }
6264
- function IsKind3(value) {
6265
- return IsObject5(value) && Kind2 in value && IsString5(value[Kind2]);
6266
- }
6267
- function IsSchema3(value) {
6268
- return IsAny3(value) || IsArgument3(value) || IsArray8(value) || IsBoolean7(value) || IsBigInt7(value) || IsAsyncIterator7(value) || IsComputed3(value) || IsConstructor3(value) || IsDate7(value) || IsFunction7(value) || IsInteger4(value) || IsIntersect3(value) || IsIterator7(value) || IsLiteral3(value) || IsMappedKey3(value) || IsMappedResult3(value) || IsNever3(value) || IsNot3(value) || IsNull7(value) || IsNumber8(value) || IsObject8(value) || IsPromise4(value) || IsRecord3(value) || IsRef3(value) || IsRegExp6(value) || IsString7(value) || IsSymbol7(value) || IsTemplateLiteral3(value) || IsThis3(value) || IsTuple3(value) || IsUndefined8(value) || IsUnion3(value) || IsUint8Array7(value) || IsUnknown3(value) || IsUnsafe3(value) || IsVoid3(value) || IsKind3(value);
6269
- }
6270
- // node_modules/@sinclair/typebox/build/esm/type/guard/type.mjs
6271
- var exports_type4 = {};
6272
- __export(exports_type4, {
6273
- TypeGuardUnknownTypeError: () => TypeGuardUnknownTypeError2,
6274
- IsVoid: () => IsVoid5,
6275
- IsUnsafe: () => IsUnsafe5,
6276
- IsUnknown: () => IsUnknown5,
6277
- IsUnionLiteral: () => IsUnionLiteral2,
6278
- IsUnion: () => IsUnion5,
6279
- IsUndefined: () => IsUndefined9,
6280
- IsUint8Array: () => IsUint8Array8,
6281
- IsTuple: () => IsTuple5,
6282
- IsTransform: () => IsTransform5,
6283
- IsThis: () => IsThis5,
6284
- IsTemplateLiteral: () => IsTemplateLiteral5,
6285
- IsSymbol: () => IsSymbol8,
6286
- IsString: () => IsString8,
6287
- IsSchema: () => IsSchema5,
6288
- IsRegExp: () => IsRegExp7,
6289
- IsRef: () => IsRef5,
6290
- IsRecursive: () => IsRecursive2,
6291
- IsRecord: () => IsRecord5,
6292
- IsReadonly: () => IsReadonly5,
6293
- IsProperties: () => IsProperties2,
6294
- IsPromise: () => IsPromise6,
6295
- IsOptional: () => IsOptional5,
6296
- IsObject: () => IsObject9,
6297
- IsNumber: () => IsNumber9,
6298
- IsNull: () => IsNull8,
6299
- IsNot: () => IsNot5,
6300
- IsNever: () => IsNever5,
6301
- IsMappedResult: () => IsMappedResult5,
6302
- IsMappedKey: () => IsMappedKey5,
6303
- IsLiteralValue: () => IsLiteralValue5,
6304
- IsLiteralString: () => IsLiteralString2,
6305
- IsLiteralNumber: () => IsLiteralNumber2,
6306
- IsLiteralBoolean: () => IsLiteralBoolean2,
6307
- IsLiteral: () => IsLiteral5,
6308
- IsKindOf: () => IsKindOf5,
6309
- IsKind: () => IsKind5,
6310
- IsIterator: () => IsIterator8,
6311
- IsIntersect: () => IsIntersect5,
6312
- IsInteger: () => IsInteger6,
6313
- IsImport: () => IsImport2,
6314
- IsFunction: () => IsFunction8,
6315
- IsDate: () => IsDate8,
6316
- IsConstructor: () => IsConstructor5,
6317
- IsComputed: () => IsComputed5,
6318
- IsBoolean: () => IsBoolean8,
6319
- IsBigInt: () => IsBigInt8,
6320
- IsAsyncIterator: () => IsAsyncIterator8,
6321
- IsArray: () => IsArray9,
6322
- IsArgument: () => IsArgument5,
6323
- IsAny: () => IsAny5
6324
- });
6325
- class TypeGuardUnknownTypeError2 extends TypeBoxError2 {
6326
- }
6327
- var KnownTypes2 = [
6328
- "Argument",
6329
- "Any",
6330
- "Array",
6331
- "AsyncIterator",
6332
- "BigInt",
6333
- "Boolean",
6334
- "Computed",
6335
- "Constructor",
6336
- "Date",
6337
- "Enum",
6338
- "Function",
6339
- "Integer",
6340
- "Intersect",
6341
- "Iterator",
6342
- "Literal",
6343
- "MappedKey",
6344
- "MappedResult",
6345
- "Not",
6346
- "Null",
6347
- "Number",
6348
- "Object",
6349
- "Promise",
6350
- "Record",
6351
- "Ref",
6352
- "RegExp",
6353
- "String",
6354
- "Symbol",
6355
- "TemplateLiteral",
6356
- "This",
6357
- "Tuple",
6358
- "Undefined",
6359
- "Union",
6360
- "Uint8Array",
6361
- "Unknown",
6362
- "Void"
6363
- ];
6364
- function IsPattern2(value) {
6365
- try {
6366
- new RegExp(value);
6367
- return true;
6368
- } catch {
6369
- return false;
6370
- }
6371
- }
6372
- function IsControlCharacterFree2(value) {
6373
- if (!IsString5(value))
6374
- return false;
6375
- for (let i = 0;i < value.length; i++) {
6376
- const code = value.charCodeAt(i);
6377
- if (code >= 7 && code <= 13 || code === 27 || code === 127) {
6378
- return false;
6379
- }
6380
- }
6381
- return true;
6382
- }
6383
- function IsAdditionalProperties2(value) {
6384
- return IsOptionalBoolean2(value) || IsSchema5(value);
6385
- }
6386
- function IsOptionalBigInt2(value) {
6387
- return IsUndefined5(value) || IsBigInt5(value);
6388
- }
6389
- function IsOptionalNumber2(value) {
6390
- return IsUndefined5(value) || IsNumber5(value);
6391
- }
6392
- function IsOptionalBoolean2(value) {
6393
- return IsUndefined5(value) || IsBoolean5(value);
6394
- }
6395
- function IsOptionalString2(value) {
6396
- return IsUndefined5(value) || IsString5(value);
6397
- }
6398
- function IsOptionalPattern2(value) {
6399
- return IsUndefined5(value) || IsString5(value) && IsControlCharacterFree2(value) && IsPattern2(value);
6400
- }
6401
- function IsOptionalFormat2(value) {
6402
- return IsUndefined5(value) || IsString5(value) && IsControlCharacterFree2(value);
6403
- }
6404
- function IsOptionalSchema2(value) {
6405
- return IsUndefined5(value) || IsSchema5(value);
6406
- }
6407
- function IsReadonly5(value) {
6408
- return IsObject5(value) && value[ReadonlyKind2] === "Readonly";
6409
- }
6410
- function IsOptional5(value) {
6411
- return IsObject5(value) && value[OptionalKind2] === "Optional";
6412
- }
6413
- function IsAny5(value) {
6414
- return IsKindOf5(value, "Any") && IsOptionalString2(value.$id);
6415
- }
6416
- function IsArgument5(value) {
6417
- return IsKindOf5(value, "Argument") && IsNumber5(value.index);
6418
- }
6419
- function IsArray9(value) {
6420
- return IsKindOf5(value, "Array") && value.type === "array" && IsOptionalString2(value.$id) && IsSchema5(value.items) && IsOptionalNumber2(value.minItems) && IsOptionalNumber2(value.maxItems) && IsOptionalBoolean2(value.uniqueItems) && IsOptionalSchema2(value.contains) && IsOptionalNumber2(value.minContains) && IsOptionalNumber2(value.maxContains);
6421
- }
6422
- function IsAsyncIterator8(value) {
6423
- return IsKindOf5(value, "AsyncIterator") && value.type === "AsyncIterator" && IsOptionalString2(value.$id) && IsSchema5(value.items);
6424
- }
6425
- function IsBigInt8(value) {
6426
- return IsKindOf5(value, "BigInt") && value.type === "bigint" && IsOptionalString2(value.$id) && IsOptionalBigInt2(value.exclusiveMaximum) && IsOptionalBigInt2(value.exclusiveMinimum) && IsOptionalBigInt2(value.maximum) && IsOptionalBigInt2(value.minimum) && IsOptionalBigInt2(value.multipleOf);
6427
- }
6428
- function IsBoolean8(value) {
6429
- return IsKindOf5(value, "Boolean") && value.type === "boolean" && IsOptionalString2(value.$id);
6430
- }
6431
- function IsComputed5(value) {
6432
- return IsKindOf5(value, "Computed") && IsString5(value.target) && IsArray5(value.parameters) && value.parameters.every((schema) => IsSchema5(schema));
6433
- }
6434
- function IsConstructor5(value) {
6435
- return IsKindOf5(value, "Constructor") && value.type === "Constructor" && IsOptionalString2(value.$id) && IsArray5(value.parameters) && value.parameters.every((schema) => IsSchema5(schema)) && IsSchema5(value.returns);
6436
- }
6437
- function IsDate8(value) {
6438
- return IsKindOf5(value, "Date") && value.type === "Date" && IsOptionalString2(value.$id) && IsOptionalNumber2(value.exclusiveMaximumTimestamp) && IsOptionalNumber2(value.exclusiveMinimumTimestamp) && IsOptionalNumber2(value.maximumTimestamp) && IsOptionalNumber2(value.minimumTimestamp) && IsOptionalNumber2(value.multipleOfTimestamp);
6439
- }
6440
- function IsFunction8(value) {
6441
- return IsKindOf5(value, "Function") && value.type === "Function" && IsOptionalString2(value.$id) && IsArray5(value.parameters) && value.parameters.every((schema) => IsSchema5(schema)) && IsSchema5(value.returns);
6442
- }
6443
- function IsImport2(value) {
6444
- return IsKindOf5(value, "Import") && HasPropertyKey3(value, "$defs") && IsObject5(value.$defs) && IsProperties2(value.$defs) && HasPropertyKey3(value, "$ref") && IsString5(value.$ref) && value.$ref in value.$defs;
6445
- }
6446
- function IsInteger6(value) {
6447
- return IsKindOf5(value, "Integer") && value.type === "integer" && IsOptionalString2(value.$id) && IsOptionalNumber2(value.exclusiveMaximum) && IsOptionalNumber2(value.exclusiveMinimum) && IsOptionalNumber2(value.maximum) && IsOptionalNumber2(value.minimum) && IsOptionalNumber2(value.multipleOf);
6448
- }
6449
- function IsProperties2(value) {
6450
- return IsObject5(value) && Object.entries(value).every(([key, schema]) => IsControlCharacterFree2(key) && IsSchema5(schema));
6451
- }
6452
- function IsIntersect5(value) {
6453
- return IsKindOf5(value, "Intersect") && (IsString5(value.type) && value.type !== "object" ? false : true) && IsArray5(value.allOf) && value.allOf.every((schema) => IsSchema5(schema) && !IsTransform5(schema)) && IsOptionalString2(value.type) && (IsOptionalBoolean2(value.unevaluatedProperties) || IsOptionalSchema2(value.unevaluatedProperties)) && IsOptionalString2(value.$id);
6454
- }
6455
- function IsIterator8(value) {
6456
- return IsKindOf5(value, "Iterator") && value.type === "Iterator" && IsOptionalString2(value.$id) && IsSchema5(value.items);
6457
- }
6458
- function IsKindOf5(value, kind) {
6459
- return IsObject5(value) && Kind2 in value && value[Kind2] === kind;
6460
- }
6461
- function IsLiteralString2(value) {
6462
- return IsLiteral5(value) && IsString5(value.const);
6463
- }
6464
- function IsLiteralNumber2(value) {
6465
- return IsLiteral5(value) && IsNumber5(value.const);
6466
- }
6467
- function IsLiteralBoolean2(value) {
6468
- return IsLiteral5(value) && IsBoolean5(value.const);
6469
- }
6470
- function IsLiteral5(value) {
6471
- return IsKindOf5(value, "Literal") && IsOptionalString2(value.$id) && IsLiteralValue5(value.const);
6472
- }
6473
- function IsLiteralValue5(value) {
6474
- return IsBoolean5(value) || IsNumber5(value) || IsString5(value);
6475
- }
6476
- function IsMappedKey5(value) {
6477
- return IsKindOf5(value, "MappedKey") && IsArray5(value.keys) && value.keys.every((key) => IsNumber5(key) || IsString5(key));
6478
- }
6479
- function IsMappedResult5(value) {
6480
- return IsKindOf5(value, "MappedResult") && IsProperties2(value.properties);
6481
- }
6482
- function IsNever5(value) {
6483
- return IsKindOf5(value, "Never") && IsObject5(value.not) && Object.getOwnPropertyNames(value.not).length === 0;
6484
- }
6485
- function IsNot5(value) {
6486
- return IsKindOf5(value, "Not") && IsSchema5(value.not);
6487
- }
6488
- function IsNull8(value) {
6489
- return IsKindOf5(value, "Null") && value.type === "null" && IsOptionalString2(value.$id);
6490
- }
6491
- function IsNumber9(value) {
6492
- return IsKindOf5(value, "Number") && value.type === "number" && IsOptionalString2(value.$id) && IsOptionalNumber2(value.exclusiveMaximum) && IsOptionalNumber2(value.exclusiveMinimum) && IsOptionalNumber2(value.maximum) && IsOptionalNumber2(value.minimum) && IsOptionalNumber2(value.multipleOf);
6493
- }
6494
- function IsObject9(value) {
6495
- return IsKindOf5(value, "Object") && value.type === "object" && IsOptionalString2(value.$id) && IsProperties2(value.properties) && IsAdditionalProperties2(value.additionalProperties) && IsOptionalNumber2(value.minProperties) && IsOptionalNumber2(value.maxProperties);
6496
- }
6497
- function IsPromise6(value) {
6498
- return IsKindOf5(value, "Promise") && value.type === "Promise" && IsOptionalString2(value.$id) && IsSchema5(value.item);
6499
- }
6500
- function IsRecord5(value) {
6501
- return IsKindOf5(value, "Record") && value.type === "object" && IsOptionalString2(value.$id) && IsAdditionalProperties2(value.additionalProperties) && IsObject5(value.patternProperties) && ((schema) => {
6502
- const keys = Object.getOwnPropertyNames(schema.patternProperties);
6503
- return keys.length === 1 && IsPattern2(keys[0]) && IsObject5(schema.patternProperties) && IsSchema5(schema.patternProperties[keys[0]]);
6504
- })(value);
6505
- }
6506
- function IsRecursive2(value) {
6507
- return IsObject5(value) && Hint2 in value && value[Hint2] === "Recursive";
6508
- }
6509
- function IsRef5(value) {
6510
- return IsKindOf5(value, "Ref") && IsOptionalString2(value.$id) && IsString5(value.$ref);
6511
- }
6512
- function IsRegExp7(value) {
6513
- return IsKindOf5(value, "RegExp") && IsOptionalString2(value.$id) && IsString5(value.source) && IsString5(value.flags) && IsOptionalNumber2(value.maxLength) && IsOptionalNumber2(value.minLength);
6514
- }
6515
- function IsString8(value) {
6516
- return IsKindOf5(value, "String") && value.type === "string" && IsOptionalString2(value.$id) && IsOptionalNumber2(value.minLength) && IsOptionalNumber2(value.maxLength) && IsOptionalPattern2(value.pattern) && IsOptionalFormat2(value.format);
6517
- }
6518
- function IsSymbol8(value) {
6519
- return IsKindOf5(value, "Symbol") && value.type === "symbol" && IsOptionalString2(value.$id);
6520
- }
6521
- function IsTemplateLiteral5(value) {
6522
- return IsKindOf5(value, "TemplateLiteral") && value.type === "string" && IsString5(value.pattern) && value.pattern[0] === "^" && value.pattern[value.pattern.length - 1] === "$";
6523
- }
6524
- function IsThis5(value) {
6525
- return IsKindOf5(value, "This") && IsOptionalString2(value.$id) && IsString5(value.$ref);
6526
- }
6527
- function IsTransform5(value) {
6528
- return IsObject5(value) && TransformKind2 in value;
6529
- }
6530
- function IsTuple5(value) {
6531
- return IsKindOf5(value, "Tuple") && value.type === "array" && IsOptionalString2(value.$id) && IsNumber5(value.minItems) && IsNumber5(value.maxItems) && value.minItems === value.maxItems && (IsUndefined5(value.items) && IsUndefined5(value.additionalItems) && value.minItems === 0 || IsArray5(value.items) && value.items.every((schema) => IsSchema5(schema)));
6532
- }
6533
- function IsUndefined9(value) {
6534
- return IsKindOf5(value, "Undefined") && value.type === "undefined" && IsOptionalString2(value.$id);
6535
- }
6536
- function IsUnionLiteral2(value) {
6537
- return IsUnion5(value) && value.anyOf.every((schema) => IsLiteralString2(schema) || IsLiteralNumber2(schema));
6538
- }
6539
- function IsUnion5(value) {
6540
- return IsKindOf5(value, "Union") && IsOptionalString2(value.$id) && IsObject5(value) && IsArray5(value.anyOf) && value.anyOf.every((schema) => IsSchema5(schema));
6541
- }
6542
- function IsUint8Array8(value) {
6543
- return IsKindOf5(value, "Uint8Array") && value.type === "Uint8Array" && IsOptionalString2(value.$id) && IsOptionalNumber2(value.minByteLength) && IsOptionalNumber2(value.maxByteLength);
6544
- }
6545
- function IsUnknown5(value) {
6546
- return IsKindOf5(value, "Unknown") && IsOptionalString2(value.$id);
6547
- }
6548
- function IsUnsafe5(value) {
6549
- return IsKindOf5(value, "Unsafe");
6550
- }
6551
- function IsVoid5(value) {
6552
- return IsKindOf5(value, "Void") && value.type === "void" && IsOptionalString2(value.$id);
6553
- }
6554
- function IsKind5(value) {
6555
- return IsObject5(value) && Kind2 in value && IsString5(value[Kind2]) && !KnownTypes2.includes(value[Kind2]);
6556
- }
6557
- function IsSchema5(value) {
6558
- return IsObject5(value) && (IsAny5(value) || IsArgument5(value) || IsArray9(value) || IsBoolean8(value) || IsBigInt8(value) || IsAsyncIterator8(value) || IsComputed5(value) || IsConstructor5(value) || IsDate8(value) || IsFunction8(value) || IsInteger6(value) || IsIntersect5(value) || IsIterator8(value) || IsLiteral5(value) || IsMappedKey5(value) || IsMappedResult5(value) || IsNever5(value) || IsNot5(value) || IsNull8(value) || IsNumber9(value) || IsObject9(value) || IsPromise6(value) || IsRecord5(value) || IsRef5(value) || IsRegExp7(value) || IsString8(value) || IsSymbol8(value) || IsTemplateLiteral5(value) || IsThis5(value) || IsTuple5(value) || IsUndefined9(value) || IsUnion5(value) || IsUint8Array8(value) || IsUnknown5(value) || IsUnsafe5(value) || IsVoid5(value) || IsKind5(value));
6559
- }
6560
- // node_modules/@sinclair/typebox/build/esm/type/patterns/patterns.mjs
6561
- var PatternBoolean2 = "(true|false)";
6562
- var PatternNumber2 = "(0|[1-9][0-9]*)";
6563
- var PatternString2 = "(.*)";
6564
- var PatternNever2 = "(?!.*)";
6565
- var PatternBooleanExact2 = `^${PatternBoolean2}$`;
6566
- var PatternNumberExact2 = `^${PatternNumber2}$`;
6567
- var PatternStringExact2 = `^${PatternString2}$`;
6568
- var PatternNeverExact2 = `^${PatternNever2}$`;
6569
-
6570
- // node_modules/@sinclair/typebox/build/esm/type/sets/set.mjs
6571
- function SetIncludes2(T, S) {
6572
- return T.includes(S);
6573
- }
6574
- function SetDistinct2(T) {
6575
- return [...new Set(T)];
6576
- }
6577
- function SetIntersect2(T, S) {
6578
- return T.filter((L) => S.includes(L));
6579
- }
6580
- function SetIntersectManyResolve2(T, Init) {
6581
- return T.reduce((Acc, L) => {
6582
- return SetIntersect2(Acc, L);
6583
- }, Init);
6584
- }
6585
- function SetIntersectMany2(T) {
6586
- return T.length === 1 ? T[0] : T.length > 1 ? SetIntersectManyResolve2(T.slice(1), T[0]) : [];
6587
- }
6588
- function SetUnionMany2(T) {
6589
- const Acc = [];
6590
- for (const L of T)
6591
- Acc.push(...L);
6592
- return Acc;
6593
- }
6594
-
6595
- // node_modules/@sinclair/typebox/build/esm/type/any/any.mjs
6596
- function Any2(options) {
6597
- return CreateType2({ [Kind2]: "Any" }, options);
6598
- }
6599
-
6600
- // node_modules/@sinclair/typebox/build/esm/type/array/array.mjs
6601
- function Array3(items, options) {
6602
- return CreateType2({ [Kind2]: "Array", type: "array", items }, options);
6603
- }
6604
-
6605
- // node_modules/@sinclair/typebox/build/esm/type/argument/argument.mjs
6606
- function Argument2(index) {
6607
- return CreateType2({ [Kind2]: "Argument", index });
6608
- }
6609
-
6610
- // node_modules/@sinclair/typebox/build/esm/type/async-iterator/async-iterator.mjs
6611
- function AsyncIterator2(items, options) {
6612
- return CreateType2({ [Kind2]: "AsyncIterator", type: "AsyncIterator", items }, options);
6613
- }
6614
-
6615
- // node_modules/@sinclair/typebox/build/esm/type/computed/computed.mjs
6616
- function Computed2(target, parameters, options) {
6617
- return CreateType2({ [Kind2]: "Computed", target, parameters }, options);
6618
- }
6619
-
6620
- // node_modules/@sinclair/typebox/build/esm/type/discard/discard.mjs
6621
- function DiscardKey2(value, key) {
6622
- const { [key]: _, ...rest } = value;
6623
- return rest;
6624
- }
6625
- function Discard2(value, keys) {
6626
- return keys.reduce((acc, key) => DiscardKey2(acc, key), value);
6627
- }
6628
-
6629
- // node_modules/@sinclair/typebox/build/esm/type/never/never.mjs
6630
- function Never2(options) {
6631
- return CreateType2({ [Kind2]: "Never", not: {} }, options);
6632
- }
6633
-
6634
- // node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-result.mjs
6635
- function MappedResult2(properties) {
6636
- return CreateType2({
6637
- [Kind2]: "MappedResult",
6638
- properties
6639
- });
6640
- }
6641
-
6642
- // node_modules/@sinclair/typebox/build/esm/type/constructor/constructor.mjs
6643
- function Constructor2(parameters, returns, options) {
6644
- return CreateType2({ [Kind2]: "Constructor", type: "Constructor", parameters, returns }, options);
6645
- }
6646
-
6647
- // node_modules/@sinclair/typebox/build/esm/type/function/function.mjs
6648
- function Function2(parameters, returns, options) {
6649
- return CreateType2({ [Kind2]: "Function", type: "Function", parameters, returns }, options);
6650
- }
6651
-
6652
- // node_modules/@sinclair/typebox/build/esm/type/union/union-create.mjs
6653
- function UnionCreate2(T, options) {
6654
- return CreateType2({ [Kind2]: "Union", anyOf: T }, options);
6655
- }
6656
-
6657
- // node_modules/@sinclair/typebox/build/esm/type/union/union-evaluated.mjs
6658
- function IsUnionOptional2(types) {
6659
- return types.some((type) => IsOptional3(type));
6660
- }
6661
- function RemoveOptionalFromRest3(types) {
6662
- return types.map((left) => IsOptional3(left) ? RemoveOptionalFromType3(left) : left);
6663
- }
6664
- function RemoveOptionalFromType3(T) {
6665
- return Discard2(T, [OptionalKind2]);
6666
- }
6667
- function ResolveUnion2(types, options) {
6668
- const isOptional = IsUnionOptional2(types);
6669
- return isOptional ? Optional2(UnionCreate2(RemoveOptionalFromRest3(types), options)) : UnionCreate2(RemoveOptionalFromRest3(types), options);
6670
- }
6671
- function UnionEvaluated2(T, options) {
6672
- return T.length === 1 ? CreateType2(T[0], options) : T.length === 0 ? Never2(options) : ResolveUnion2(T, options);
6673
- }
6674
-
6675
- // node_modules/@sinclair/typebox/build/esm/type/union/union.mjs
6676
- function Union3(types, options) {
6677
- return types.length === 0 ? Never2(options) : types.length === 1 ? CreateType2(types[0], options) : UnionCreate2(types, options);
6678
- }
6679
-
6680
- // node_modules/@sinclair/typebox/build/esm/type/template-literal/parse.mjs
6681
- class TemplateLiteralParserError2 extends TypeBoxError2 {
6682
- }
6683
- function Unescape2(pattern) {
6684
- return pattern.replace(/\\\$/g, "$").replace(/\\\*/g, "*").replace(/\\\^/g, "^").replace(/\\\|/g, "|").replace(/\\\(/g, "(").replace(/\\\)/g, ")");
6685
- }
6686
- function IsNonEscaped2(pattern, index, char) {
6687
- return pattern[index] === char && pattern.charCodeAt(index - 1) !== 92;
6688
- }
6689
- function IsOpenParen2(pattern, index) {
6690
- return IsNonEscaped2(pattern, index, "(");
6691
- }
6692
- function IsCloseParen2(pattern, index) {
6693
- return IsNonEscaped2(pattern, index, ")");
6694
- }
6695
- function IsSeparator2(pattern, index) {
6696
- return IsNonEscaped2(pattern, index, "|");
6697
- }
6698
- function IsGroup2(pattern) {
6699
- if (!(IsOpenParen2(pattern, 0) && IsCloseParen2(pattern, pattern.length - 1)))
6700
- return false;
6701
- let count = 0;
6702
- for (let index = 0;index < pattern.length; index++) {
6703
- if (IsOpenParen2(pattern, index))
6704
- count += 1;
6705
- if (IsCloseParen2(pattern, index))
6706
- count -= 1;
6707
- if (count === 0 && index !== pattern.length - 1)
6708
- return false;
6709
- }
6710
- return true;
6711
- }
6712
- function InGroup2(pattern) {
6713
- return pattern.slice(1, pattern.length - 1);
6714
- }
6715
- function IsPrecedenceOr2(pattern) {
6716
- let count = 0;
6717
- for (let index = 0;index < pattern.length; index++) {
6718
- if (IsOpenParen2(pattern, index))
6719
- count += 1;
6720
- if (IsCloseParen2(pattern, index))
6721
- count -= 1;
6722
- if (IsSeparator2(pattern, index) && count === 0)
6723
- return true;
6724
- }
6725
- return false;
6726
- }
6727
- function IsPrecedenceAnd2(pattern) {
6728
- for (let index = 0;index < pattern.length; index++) {
6729
- if (IsOpenParen2(pattern, index))
6730
- return true;
6731
- }
6732
- return false;
6733
- }
6734
- function Or2(pattern) {
6735
- let [count, start] = [0, 0];
6736
- const expressions = [];
6737
- for (let index = 0;index < pattern.length; index++) {
6738
- if (IsOpenParen2(pattern, index))
6739
- count += 1;
6740
- if (IsCloseParen2(pattern, index))
6741
- count -= 1;
6742
- if (IsSeparator2(pattern, index) && count === 0) {
6743
- const range2 = pattern.slice(start, index);
6744
- if (range2.length > 0)
6745
- expressions.push(TemplateLiteralParse2(range2));
6746
- start = index + 1;
6747
- }
6748
- }
6749
- const range = pattern.slice(start);
6750
- if (range.length > 0)
6751
- expressions.push(TemplateLiteralParse2(range));
6752
- if (expressions.length === 0)
6753
- return { type: "const", const: "" };
6754
- if (expressions.length === 1)
6755
- return expressions[0];
6756
- return { type: "or", expr: expressions };
6757
- }
6758
- function And2(pattern) {
6759
- function Group(value, index) {
6760
- if (!IsOpenParen2(value, index))
6761
- throw new TemplateLiteralParserError2(`TemplateLiteralParser: Index must point to open parens`);
6762
- let count = 0;
6763
- for (let scan = index;scan < value.length; scan++) {
6764
- if (IsOpenParen2(value, scan))
6765
- count += 1;
6766
- if (IsCloseParen2(value, scan))
6767
- count -= 1;
6768
- if (count === 0)
6769
- return [index, scan];
6770
- }
6771
- throw new TemplateLiteralParserError2(`TemplateLiteralParser: Unclosed group parens in expression`);
6772
- }
6773
- function Range(pattern2, index) {
6774
- for (let scan = index;scan < pattern2.length; scan++) {
6775
- if (IsOpenParen2(pattern2, scan))
6776
- return [index, scan];
6777
- }
6778
- return [index, pattern2.length];
6779
- }
6780
- const expressions = [];
6781
- for (let index = 0;index < pattern.length; index++) {
6782
- if (IsOpenParen2(pattern, index)) {
6783
- const [start, end] = Group(pattern, index);
6784
- const range = pattern.slice(start, end + 1);
6785
- expressions.push(TemplateLiteralParse2(range));
6786
- index = end;
6787
- } else {
6788
- const [start, end] = Range(pattern, index);
6789
- const range = pattern.slice(start, end);
6790
- if (range.length > 0)
6791
- expressions.push(TemplateLiteralParse2(range));
6792
- index = end - 1;
6793
- }
6794
- }
6795
- return expressions.length === 0 ? { type: "const", const: "" } : expressions.length === 1 ? expressions[0] : { type: "and", expr: expressions };
6796
- }
6797
- function TemplateLiteralParse2(pattern) {
6798
- return IsGroup2(pattern) ? TemplateLiteralParse2(InGroup2(pattern)) : IsPrecedenceOr2(pattern) ? Or2(pattern) : IsPrecedenceAnd2(pattern) ? And2(pattern) : { type: "const", const: Unescape2(pattern) };
6799
- }
6800
- function TemplateLiteralParseExact2(pattern) {
6801
- return TemplateLiteralParse2(pattern.slice(1, pattern.length - 1));
6802
- }
6803
-
6804
- // node_modules/@sinclair/typebox/build/esm/type/template-literal/finite.mjs
6805
- class TemplateLiteralFiniteError2 extends TypeBoxError2 {
6806
- }
6807
- function IsNumberExpression2(expression) {
6808
- return expression.type === "or" && expression.expr.length === 2 && expression.expr[0].type === "const" && expression.expr[0].const === "0" && expression.expr[1].type === "const" && expression.expr[1].const === "[1-9][0-9]*";
6809
- }
6810
- function IsBooleanExpression2(expression) {
6811
- return expression.type === "or" && expression.expr.length === 2 && expression.expr[0].type === "const" && expression.expr[0].const === "true" && expression.expr[1].type === "const" && expression.expr[1].const === "false";
6812
- }
6813
- function IsStringExpression2(expression) {
6814
- return expression.type === "const" && expression.const === ".*";
6815
- }
6816
- function IsTemplateLiteralExpressionFinite2(expression) {
6817
- return IsNumberExpression2(expression) || IsStringExpression2(expression) ? false : IsBooleanExpression2(expression) ? true : expression.type === "and" ? expression.expr.every((expr) => IsTemplateLiteralExpressionFinite2(expr)) : expression.type === "or" ? expression.expr.every((expr) => IsTemplateLiteralExpressionFinite2(expr)) : expression.type === "const" ? true : (() => {
6818
- throw new TemplateLiteralFiniteError2(`Unknown expression type`);
6819
- })();
6820
- }
6821
- function IsTemplateLiteralFinite2(schema) {
6822
- const expression = TemplateLiteralParseExact2(schema.pattern);
6823
- return IsTemplateLiteralExpressionFinite2(expression);
6824
- }
6825
-
6826
- // node_modules/@sinclair/typebox/build/esm/type/template-literal/generate.mjs
6827
- class TemplateLiteralGenerateError2 extends TypeBoxError2 {
6828
- }
6829
- function* GenerateReduce2(buffer) {
6830
- if (buffer.length === 1)
6831
- return yield* buffer[0];
6832
- for (const left of buffer[0]) {
6833
- for (const right of GenerateReduce2(buffer.slice(1))) {
6834
- yield `${left}${right}`;
6835
- }
6836
- }
6837
- }
6838
- function* GenerateAnd2(expression) {
6839
- return yield* GenerateReduce2(expression.expr.map((expr) => [...TemplateLiteralExpressionGenerate2(expr)]));
6840
- }
6841
- function* GenerateOr2(expression) {
6842
- for (const expr of expression.expr)
6843
- yield* TemplateLiteralExpressionGenerate2(expr);
6844
- }
6845
- function* GenerateConst2(expression) {
6846
- return yield expression.const;
6847
- }
6848
- function* TemplateLiteralExpressionGenerate2(expression) {
6849
- return expression.type === "and" ? yield* GenerateAnd2(expression) : expression.type === "or" ? yield* GenerateOr2(expression) : expression.type === "const" ? yield* GenerateConst2(expression) : (() => {
6850
- throw new TemplateLiteralGenerateError2("Unknown expression");
6851
- })();
6852
- }
6853
- function TemplateLiteralGenerate2(schema) {
6854
- const expression = TemplateLiteralParseExact2(schema.pattern);
6855
- return IsTemplateLiteralExpressionFinite2(expression) ? [...TemplateLiteralExpressionGenerate2(expression)] : [];
6856
- }
6857
-
6858
- // node_modules/@sinclair/typebox/build/esm/type/literal/literal.mjs
6859
- function Literal2(value, options) {
6860
- return CreateType2({
6861
- [Kind2]: "Literal",
6862
- const: value,
6863
- type: typeof value
6864
- }, options);
6865
- }
6866
-
6867
- // node_modules/@sinclair/typebox/build/esm/type/boolean/boolean.mjs
6868
- function Boolean2(options) {
6869
- return CreateType2({ [Kind2]: "Boolean", type: "boolean" }, options);
6870
- }
6871
-
6872
- // node_modules/@sinclair/typebox/build/esm/type/bigint/bigint.mjs
6873
- function BigInt3(options) {
6874
- return CreateType2({ [Kind2]: "BigInt", type: "bigint" }, options);
6875
- }
6876
-
6877
- // node_modules/@sinclair/typebox/build/esm/type/number/number.mjs
6878
- function Number3(options) {
6879
- return CreateType2({ [Kind2]: "Number", type: "number" }, options);
6880
- }
6881
-
6882
- // node_modules/@sinclair/typebox/build/esm/type/string/string.mjs
6883
- function String3(options) {
6884
- return CreateType2({ [Kind2]: "String", type: "string" }, options);
6885
- }
6886
-
6887
- // node_modules/@sinclair/typebox/build/esm/type/template-literal/syntax.mjs
6888
- function* FromUnion21(syntax) {
6889
- const trim = syntax.trim().replace(/"|'/g, "");
6890
- return trim === "boolean" ? yield Boolean2() : trim === "number" ? yield Number3() : trim === "bigint" ? yield BigInt3() : trim === "string" ? yield String3() : yield (() => {
6891
- const literals = trim.split("|").map((literal) => Literal2(literal.trim()));
6892
- return literals.length === 0 ? Never2() : literals.length === 1 ? literals[0] : UnionEvaluated2(literals);
6893
- })();
6894
- }
6895
- function* FromTerminal2(syntax) {
6896
- if (syntax[1] !== "{") {
6897
- const L = Literal2("$");
6898
- const R = FromSyntax2(syntax.slice(1));
6899
- return yield* [L, ...R];
6900
- }
6901
- for (let i = 2;i < syntax.length; i++) {
6902
- if (syntax[i] === "}") {
6903
- const L = FromUnion21(syntax.slice(2, i));
6904
- const R = FromSyntax2(syntax.slice(i + 1));
6905
- return yield* [...L, ...R];
6906
- }
6907
- }
6908
- yield Literal2(syntax);
6909
- }
6910
- function* FromSyntax2(syntax) {
6911
- for (let i = 0;i < syntax.length; i++) {
6912
- if (syntax[i] === "$") {
6913
- const L = Literal2(syntax.slice(0, i));
6914
- const R = FromTerminal2(syntax.slice(i));
6915
- return yield* [L, ...R];
6916
- }
6917
- }
6918
- yield Literal2(syntax);
6919
- }
6920
- function TemplateLiteralSyntax2(syntax) {
6921
- return [...FromSyntax2(syntax)];
6922
- }
6923
-
6924
- // node_modules/@sinclair/typebox/build/esm/type/template-literal/pattern.mjs
6925
- class TemplateLiteralPatternError2 extends TypeBoxError2 {
6926
- }
6927
- function Escape3(value) {
6928
- return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
6929
- }
6930
- function Visit19(schema, acc) {
6931
- return IsTemplateLiteral3(schema) ? schema.pattern.slice(1, schema.pattern.length - 1) : IsUnion3(schema) ? `(${schema.anyOf.map((schema2) => Visit19(schema2, acc)).join("|")})` : IsNumber8(schema) ? `${acc}${PatternNumber2}` : IsInteger4(schema) ? `${acc}${PatternNumber2}` : IsBigInt7(schema) ? `${acc}${PatternNumber2}` : IsString7(schema) ? `${acc}${PatternString2}` : IsLiteral3(schema) ? `${acc}${Escape3(schema.const.toString())}` : IsBoolean7(schema) ? `${acc}${PatternBoolean2}` : (() => {
6932
- throw new TemplateLiteralPatternError2(`Unexpected Kind '${schema[Kind2]}'`);
6933
- })();
6934
- }
6935
- function TemplateLiteralPattern2(kinds) {
6936
- return `^${kinds.map((schema) => Visit19(schema, "")).join("")}$`;
6937
- }
6938
-
6939
- // node_modules/@sinclair/typebox/build/esm/type/template-literal/union.mjs
6940
- function TemplateLiteralToUnion2(schema) {
6941
- const R = TemplateLiteralGenerate2(schema);
6942
- const L = R.map((S) => Literal2(S));
6943
- return UnionEvaluated2(L);
6944
- }
6945
-
6946
- // node_modules/@sinclair/typebox/build/esm/type/template-literal/template-literal.mjs
6947
- function TemplateLiteral2(unresolved, options) {
6948
- const pattern = IsString5(unresolved) ? TemplateLiteralPattern2(TemplateLiteralSyntax2(unresolved)) : TemplateLiteralPattern2(unresolved);
6949
- return CreateType2({ [Kind2]: "TemplateLiteral", type: "string", pattern }, options);
6950
- }
6951
-
6952
- // node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-property-keys.mjs
6953
- function FromTemplateLiteral7(templateLiteral) {
6954
- const keys = TemplateLiteralGenerate2(templateLiteral);
6955
- return keys.map((key) => key.toString());
6956
- }
6957
- function FromUnion23(types) {
6958
- const result = [];
6959
- for (const type of types)
6960
- result.push(...IndexPropertyKeys2(type));
6961
- return result;
6962
- }
6963
- function FromLiteral7(literalValue) {
6964
- return [literalValue.toString()];
6965
- }
6966
- function IndexPropertyKeys2(type) {
6967
- return [...new Set(IsTemplateLiteral3(type) ? FromTemplateLiteral7(type) : IsUnion3(type) ? FromUnion23(type.anyOf) : IsLiteral3(type) ? FromLiteral7(type.const) : IsNumber8(type) ? ["[number]"] : IsInteger4(type) ? ["[number]"] : [])];
6968
- }
6969
-
6970
- // node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-result.mjs
6971
- function FromProperties20(type, properties, options) {
6972
- const result = {};
6973
- for (const K2 of Object.getOwnPropertyNames(properties)) {
6974
- result[K2] = Index2(type, IndexPropertyKeys2(properties[K2]), options);
6975
- }
6976
- return result;
6977
- }
6978
- function FromMappedResult13(type, mappedResult, options) {
6979
- return FromProperties20(type, mappedResult.properties, options);
6980
- }
6981
- function IndexFromMappedResult2(type, mappedResult, options) {
6982
- const properties = FromMappedResult13(type, mappedResult, options);
6983
- return MappedResult2(properties);
6984
- }
6985
-
6986
- // node_modules/@sinclair/typebox/build/esm/type/indexed/indexed.mjs
6987
- function FromRest8(types, key) {
6988
- return types.map((type) => IndexFromPropertyKey2(type, key));
6989
- }
6990
- function FromIntersectRest2(types) {
6991
- return types.filter((type) => !IsNever3(type));
6992
- }
6993
- function FromIntersect19(types, key) {
6994
- return IntersectEvaluated2(FromIntersectRest2(FromRest8(types, key)));
6995
- }
6996
- function FromUnionRest2(types) {
6997
- return types.some((L) => IsNever3(L)) ? [] : types;
6998
- }
6999
- function FromUnion24(types, key) {
7000
- return UnionEvaluated2(FromUnionRest2(FromRest8(types, key)));
7001
- }
7002
- function FromTuple16(types, key) {
7003
- return key in types ? types[key] : key === "[number]" ? UnionEvaluated2(types) : Never2();
7004
- }
7005
- function FromArray18(type, key) {
7006
- return key === "[number]" ? type : Never2();
7007
- }
7008
- function FromProperty4(properties, propertyKey) {
7009
- return propertyKey in properties ? properties[propertyKey] : Never2();
7010
- }
7011
- function IndexFromPropertyKey2(type, propertyKey) {
7012
- return IsIntersect3(type) ? FromIntersect19(type.allOf, propertyKey) : IsUnion3(type) ? FromUnion24(type.anyOf, propertyKey) : IsTuple3(type) ? FromTuple16(type.items ?? [], propertyKey) : IsArray8(type) ? FromArray18(type.items, propertyKey) : IsObject8(type) ? FromProperty4(type.properties, propertyKey) : Never2();
7013
- }
7014
- function IndexFromPropertyKeys2(type, propertyKeys) {
7015
- return propertyKeys.map((propertyKey) => IndexFromPropertyKey2(type, propertyKey));
7016
- }
7017
- function FromSchema2(type, propertyKeys) {
7018
- return UnionEvaluated2(IndexFromPropertyKeys2(type, propertyKeys));
7019
- }
7020
- function Index2(type, key, options) {
7021
- if (IsRef3(type) || IsRef3(key)) {
7022
- const error = `Index types using Ref parameters require both Type and Key to be of TSchema`;
7023
- if (!IsSchema3(type) || !IsSchema3(key))
7024
- throw new TypeBoxError2(error);
7025
- return Computed2("Index", [type, key]);
7026
- }
7027
- if (IsMappedResult3(key))
7028
- return IndexFromMappedResult2(type, key, options);
7029
- if (IsMappedKey3(key))
7030
- return IndexFromMappedKey2(type, key, options);
7031
- return CreateType2(IsSchema3(key) ? FromSchema2(type, IndexPropertyKeys2(key)) : FromSchema2(type, key), options);
7032
- }
7033
-
7034
- // node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-key.mjs
7035
- function MappedIndexPropertyKey2(type, key, options) {
7036
- return { [key]: Index2(type, [key], Clone3(options)) };
7037
- }
7038
- function MappedIndexPropertyKeys2(type, propertyKeys, options) {
7039
- return propertyKeys.reduce((result, left) => {
7040
- return { ...result, ...MappedIndexPropertyKey2(type, left, options) };
7041
- }, {});
7042
- }
7043
- function MappedIndexProperties2(type, mappedKey, options) {
7044
- return MappedIndexPropertyKeys2(type, mappedKey.keys, options);
7045
- }
7046
- function IndexFromMappedKey2(type, mappedKey, options) {
7047
- const properties = MappedIndexProperties2(type, mappedKey, options);
7048
- return MappedResult2(properties);
7049
- }
7050
-
7051
- // node_modules/@sinclair/typebox/build/esm/type/iterator/iterator.mjs
7052
- function Iterator2(items, options) {
7053
- return CreateType2({ [Kind2]: "Iterator", type: "Iterator", items }, options);
7054
- }
7055
-
7056
- // node_modules/@sinclair/typebox/build/esm/type/object/object.mjs
7057
- function RequiredArray2(properties) {
7058
- return globalThis.Object.keys(properties).filter((key) => !IsOptional3(properties[key]));
7059
- }
7060
- function _Object(properties, options) {
7061
- const required = RequiredArray2(properties);
7062
- const schema = required.length > 0 ? { [Kind2]: "Object", type: "object", required, properties } : { [Kind2]: "Object", type: "object", properties };
7063
- return CreateType2(schema, options);
7064
- }
7065
- var Object3 = _Object;
7066
-
7067
- // node_modules/@sinclair/typebox/build/esm/type/promise/promise.mjs
7068
- function Promise3(item, options) {
7069
- return CreateType2({ [Kind2]: "Promise", type: "Promise", item }, options);
7070
- }
7071
-
7072
- // node_modules/@sinclair/typebox/build/esm/type/readonly/readonly.mjs
7073
- function RemoveReadonly2(schema) {
7074
- return CreateType2(Discard2(schema, [ReadonlyKind2]));
7075
- }
7076
- function AddReadonly2(schema) {
7077
- return CreateType2({ ...schema, [ReadonlyKind2]: "Readonly" });
7078
- }
7079
- function ReadonlyWithFlag2(schema, F) {
7080
- return F === false ? RemoveReadonly2(schema) : AddReadonly2(schema);
7081
- }
7082
- function Readonly2(schema, enable) {
7083
- const F = enable ?? true;
7084
- return IsMappedResult3(schema) ? ReadonlyFromMappedResult2(schema, F) : ReadonlyWithFlag2(schema, F);
7085
- }
7086
-
7087
- // node_modules/@sinclair/typebox/build/esm/type/readonly/readonly-from-mapped-result.mjs
7088
- function FromProperties22(K, F) {
7089
- const Acc = {};
7090
- for (const K2 of globalThis.Object.getOwnPropertyNames(K))
7091
- Acc[K2] = Readonly2(K[K2], F);
7092
- return Acc;
7093
- }
7094
- function FromMappedResult15(R, F) {
7095
- return FromProperties22(R.properties, F);
7096
- }
7097
- function ReadonlyFromMappedResult2(R, F) {
7098
- const P = FromMappedResult15(R, F);
7099
- return MappedResult2(P);
7100
- }
7101
-
7102
- // node_modules/@sinclair/typebox/build/esm/type/tuple/tuple.mjs
7103
- function Tuple2(types, options) {
7104
- return CreateType2(types.length > 0 ? { [Kind2]: "Tuple", type: "array", items: types, additionalItems: false, minItems: types.length, maxItems: types.length } : { [Kind2]: "Tuple", type: "array", minItems: types.length, maxItems: types.length }, options);
7105
- }
7106
-
7107
- // node_modules/@sinclair/typebox/build/esm/type/mapped/mapped.mjs
7108
- function FromMappedResult16(K, P) {
7109
- return K in P ? FromSchemaType2(K, P[K]) : MappedResult2(P);
7110
- }
7111
- function MappedKeyToKnownMappedResultProperties2(K) {
7112
- return { [K]: Literal2(K) };
7113
- }
7114
- function MappedKeyToUnknownMappedResultProperties2(P) {
7115
- const Acc = {};
7116
- for (const L of P)
7117
- Acc[L] = Literal2(L);
7118
- return Acc;
7119
- }
7120
- function MappedKeyToMappedResultProperties2(K, P) {
7121
- return SetIncludes2(P, K) ? MappedKeyToKnownMappedResultProperties2(K) : MappedKeyToUnknownMappedResultProperties2(P);
7122
- }
7123
- function FromMappedKey5(K, P) {
7124
- const R = MappedKeyToMappedResultProperties2(K, P);
7125
- return FromMappedResult16(K, R);
7126
- }
7127
- function FromRest10(K, T) {
7128
- return T.map((L) => FromSchemaType2(K, L));
7129
- }
7130
- function FromProperties23(K, T) {
7131
- const Acc = {};
7132
- for (const K2 of globalThis.Object.getOwnPropertyNames(T))
7133
- Acc[K2] = FromSchemaType2(K, T[K2]);
7134
- return Acc;
7135
- }
7136
- function FromSchemaType2(K, T) {
7137
- const options = { ...T };
7138
- return IsOptional3(T) ? Optional2(FromSchemaType2(K, Discard2(T, [OptionalKind2]))) : IsReadonly3(T) ? Readonly2(FromSchemaType2(K, Discard2(T, [ReadonlyKind2]))) : IsMappedResult3(T) ? FromMappedResult16(K, T.properties) : IsMappedKey3(T) ? FromMappedKey5(K, T.keys) : IsConstructor3(T) ? Constructor2(FromRest10(K, T.parameters), FromSchemaType2(K, T.returns), options) : IsFunction7(T) ? Function2(FromRest10(K, T.parameters), FromSchemaType2(K, T.returns), options) : IsAsyncIterator7(T) ? AsyncIterator2(FromSchemaType2(K, T.items), options) : IsIterator7(T) ? Iterator2(FromSchemaType2(K, T.items), options) : IsIntersect3(T) ? Intersect3(FromRest10(K, T.allOf), options) : IsUnion3(T) ? Union3(FromRest10(K, T.anyOf), options) : IsTuple3(T) ? Tuple2(FromRest10(K, T.items ?? []), options) : IsObject8(T) ? Object3(FromProperties23(K, T.properties), options) : IsArray8(T) ? Array3(FromSchemaType2(K, T.items), options) : IsPromise4(T) ? Promise3(FromSchemaType2(K, T.item), options) : T;
7139
- }
7140
- function MappedFunctionReturnType2(K, T) {
7141
- const Acc = {};
7142
- for (const L of K)
7143
- Acc[L] = FromSchemaType2(L, T);
7144
- return Acc;
7145
- }
7146
- function Mapped2(key, map3, options) {
7147
- const K = IsSchema3(key) ? IndexPropertyKeys2(key) : key;
7148
- const RT = map3({ [Kind2]: "MappedKey", keys: K });
7149
- const R = MappedFunctionReturnType2(K, RT);
7150
- return Object3(R, options);
7151
- }
7152
-
7153
- // node_modules/@sinclair/typebox/build/esm/type/optional/optional.mjs
7154
- function RemoveOptional2(schema) {
7155
- return CreateType2(Discard2(schema, [OptionalKind2]));
7156
- }
7157
- function AddOptional2(schema) {
7158
- return CreateType2({ ...schema, [OptionalKind2]: "Optional" });
7159
- }
7160
- function OptionalWithFlag2(schema, F) {
7161
- return F === false ? RemoveOptional2(schema) : AddOptional2(schema);
7162
- }
7163
- function Optional2(schema, enable) {
7164
- const F = enable ?? true;
7165
- return IsMappedResult3(schema) ? OptionalFromMappedResult2(schema, F) : OptionalWithFlag2(schema, F);
7166
- }
7167
-
7168
- // node_modules/@sinclair/typebox/build/esm/type/optional/optional-from-mapped-result.mjs
7169
- function FromProperties24(P, F) {
7170
- const Acc = {};
7171
- for (const K2 of globalThis.Object.getOwnPropertyNames(P))
7172
- Acc[K2] = Optional2(P[K2], F);
7173
- return Acc;
7174
- }
7175
- function FromMappedResult17(R, F) {
7176
- return FromProperties24(R.properties, F);
7177
- }
7178
- function OptionalFromMappedResult2(R, F) {
7179
- const P = FromMappedResult17(R, F);
7180
- return MappedResult2(P);
7181
- }
7182
-
7183
- // node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-create.mjs
7184
- function IntersectCreate2(T, options = {}) {
7185
- const allObjects = T.every((schema) => IsObject8(schema));
7186
- const clonedUnevaluatedProperties = IsSchema3(options.unevaluatedProperties) ? { unevaluatedProperties: options.unevaluatedProperties } : {};
7187
- return CreateType2(options.unevaluatedProperties === false || IsSchema3(options.unevaluatedProperties) || allObjects ? { ...clonedUnevaluatedProperties, [Kind2]: "Intersect", type: "object", allOf: T } : { ...clonedUnevaluatedProperties, [Kind2]: "Intersect", allOf: T }, options);
7188
- }
7189
-
7190
- // node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-evaluated.mjs
7191
- function IsIntersectOptional2(types) {
7192
- return types.every((left) => IsOptional3(left));
7193
- }
7194
- function RemoveOptionalFromType5(type) {
7195
- return Discard2(type, [OptionalKind2]);
7196
- }
7197
- function RemoveOptionalFromRest5(types) {
7198
- return types.map((left) => IsOptional3(left) ? RemoveOptionalFromType5(left) : left);
7199
- }
7200
- function ResolveIntersect2(types, options) {
7201
- return IsIntersectOptional2(types) ? Optional2(IntersectCreate2(RemoveOptionalFromRest5(types), options)) : IntersectCreate2(RemoveOptionalFromRest5(types), options);
7202
- }
7203
- function IntersectEvaluated2(types, options = {}) {
7204
- if (types.length === 1)
7205
- return CreateType2(types[0], options);
7206
- if (types.length === 0)
7207
- return Never2(options);
7208
- if (types.some((schema) => IsTransform3(schema)))
7209
- throw new Error("Cannot intersect transform types");
7210
- return ResolveIntersect2(types, options);
7211
- }
7212
-
7213
- // node_modules/@sinclair/typebox/build/esm/type/intersect/intersect.mjs
7214
- function Intersect3(types, options) {
7215
- if (types.length === 1)
7216
- return CreateType2(types[0], options);
7217
- if (types.length === 0)
7218
- return Never2(options);
7219
- if (types.some((schema) => IsTransform3(schema)))
7220
- throw new Error("Cannot intersect transform types");
7221
- return IntersectCreate2(types, options);
7222
- }
7223
-
7224
- // node_modules/@sinclair/typebox/build/esm/type/ref/ref.mjs
7225
- function Ref2(...args) {
7226
- const [$ref, options] = typeof args[0] === "string" ? [args[0], args[1]] : [args[0].$id, args[1]];
7227
- if (typeof $ref !== "string")
7228
- throw new TypeBoxError2("Ref: $ref must be a string");
7229
- return CreateType2({ [Kind2]: "Ref", $ref }, options);
7230
- }
7231
-
7232
- // node_modules/@sinclair/typebox/build/esm/type/awaited/awaited.mjs
7233
- function FromComputed6(target, parameters) {
7234
- return Computed2("Awaited", [Computed2(target, parameters)]);
7235
- }
7236
- function FromRef15($ref) {
7237
- return Computed2("Awaited", [Ref2($ref)]);
7238
- }
7239
- function FromIntersect21(types) {
7240
- return Intersect3(FromRest11(types));
7241
- }
7242
- function FromUnion25(types) {
7243
- return Union3(FromRest11(types));
7244
- }
7245
- function FromPromise8(type) {
7246
- return Awaited2(type);
7247
- }
7248
- function FromRest11(types) {
7249
- return types.map((type) => Awaited2(type));
7250
- }
7251
- function Awaited2(type, options) {
7252
- return CreateType2(IsComputed3(type) ? FromComputed6(type.target, type.parameters) : IsIntersect3(type) ? FromIntersect21(type.allOf) : IsUnion3(type) ? FromUnion25(type.anyOf) : IsPromise4(type) ? FromPromise8(type.item) : IsRef3(type) ? FromRef15(type.$ref) : type, options);
7253
- }
7254
-
7255
- // node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-keys.mjs
7256
- function FromRest12(types) {
7257
- const result = [];
7258
- for (const L of types)
7259
- result.push(KeyOfPropertyKeys2(L));
7260
- return result;
7261
- }
7262
- function FromIntersect22(types) {
7263
- const propertyKeysArray = FromRest12(types);
7264
- const propertyKeys = SetUnionMany2(propertyKeysArray);
7265
- return propertyKeys;
7266
- }
7267
- function FromUnion26(types) {
7268
- const propertyKeysArray = FromRest12(types);
7269
- const propertyKeys = SetIntersectMany2(propertyKeysArray);
7270
- return propertyKeys;
7271
- }
7272
- function FromTuple18(types) {
7273
- return types.map((_, indexer) => indexer.toString());
7274
- }
7275
- function FromArray20(_) {
7276
- return ["[number]"];
7277
- }
7278
- function FromProperties25(T) {
7279
- return globalThis.Object.getOwnPropertyNames(T);
7280
- }
7281
- function FromPatternProperties2(patternProperties) {
7282
- if (!includePatternProperties2)
7283
- return [];
7284
- const patternPropertyKeys = globalThis.Object.getOwnPropertyNames(patternProperties);
7285
- return patternPropertyKeys.map((key) => {
7286
- return key[0] === "^" && key[key.length - 1] === "$" ? key.slice(1, key.length - 1) : key;
7287
- });
7288
- }
7289
- function KeyOfPropertyKeys2(type) {
7290
- return IsIntersect3(type) ? FromIntersect22(type.allOf) : IsUnion3(type) ? FromUnion26(type.anyOf) : IsTuple3(type) ? FromTuple18(type.items ?? []) : IsArray8(type) ? FromArray20(type.items) : IsObject8(type) ? FromProperties25(type.properties) : IsRecord3(type) ? FromPatternProperties2(type.patternProperties) : [];
7291
- }
7292
- var includePatternProperties2 = false;
7293
-
7294
- // node_modules/@sinclair/typebox/build/esm/type/keyof/keyof.mjs
7295
- function FromComputed8(target, parameters) {
7296
- return Computed2("KeyOf", [Computed2(target, parameters)]);
7297
- }
7298
- function FromRef17($ref) {
7299
- return Computed2("KeyOf", [Ref2($ref)]);
7300
- }
7301
- function KeyOfFromType2(type, options) {
7302
- const propertyKeys = KeyOfPropertyKeys2(type);
7303
- const propertyKeyTypes = KeyOfPropertyKeysToRest2(propertyKeys);
7304
- const result = UnionEvaluated2(propertyKeyTypes);
7305
- return CreateType2(result, options);
7306
- }
7307
- function KeyOfPropertyKeysToRest2(propertyKeys) {
7308
- return propertyKeys.map((L) => L === "[number]" ? Number3() : Literal2(L));
7309
- }
7310
- function KeyOf2(type, options) {
7311
- return IsComputed3(type) ? FromComputed8(type.target, type.parameters) : IsRef3(type) ? FromRef17(type.$ref) : IsMappedResult3(type) ? KeyOfFromMappedResult2(type, options) : KeyOfFromType2(type, options);
7312
- }
7313
-
7314
- // node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-from-mapped-result.mjs
7315
- function FromProperties26(properties, options) {
7316
- const result = {};
7317
- for (const K2 of globalThis.Object.getOwnPropertyNames(properties))
7318
- result[K2] = KeyOf2(properties[K2], Clone3(options));
7319
- return result;
7320
- }
7321
- function FromMappedResult18(mappedResult, options) {
7322
- return FromProperties26(mappedResult.properties, options);
7323
- }
7324
- function KeyOfFromMappedResult2(mappedResult, options) {
7325
- const properties = FromMappedResult18(mappedResult, options);
7326
- return MappedResult2(properties);
7327
- }
7328
-
7329
- // node_modules/@sinclair/typebox/build/esm/type/composite/composite.mjs
7330
- function CompositeKeys2(T) {
7331
- const Acc = [];
7332
- for (const L of T)
7333
- Acc.push(...KeyOfPropertyKeys2(L));
7334
- return SetDistinct2(Acc);
7335
- }
7336
- function FilterNever2(T) {
7337
- return T.filter((L) => !IsNever3(L));
7338
- }
7339
- function CompositeProperty2(T, K) {
7340
- const Acc = [];
7341
- for (const L of T)
7342
- Acc.push(...IndexFromPropertyKeys2(L, [K]));
7343
- return FilterNever2(Acc);
7344
- }
7345
- function CompositeProperties2(T, K) {
7346
- const Acc = {};
7347
- for (const L of K) {
7348
- Acc[L] = IntersectEvaluated2(CompositeProperty2(T, L));
7349
- }
7350
- return Acc;
7351
- }
7352
- function Composite2(T, options) {
7353
- const K = CompositeKeys2(T);
7354
- const P = CompositeProperties2(T, K);
7355
- const R = Object3(P, options);
7356
- return R;
7357
- }
7358
-
7359
- // node_modules/@sinclair/typebox/build/esm/type/date/date.mjs
7360
- function Date3(options) {
7361
- return CreateType2({ [Kind2]: "Date", type: "Date" }, options);
7362
- }
7363
-
7364
- // node_modules/@sinclair/typebox/build/esm/type/null/null.mjs
7365
- function Null2(options) {
7366
- return CreateType2({ [Kind2]: "Null", type: "null" }, options);
7367
- }
7368
-
7369
- // node_modules/@sinclair/typebox/build/esm/type/symbol/symbol.mjs
7370
- function Symbol3(options) {
7371
- return CreateType2({ [Kind2]: "Symbol", type: "symbol" }, options);
7372
- }
7373
-
7374
- // node_modules/@sinclair/typebox/build/esm/type/undefined/undefined.mjs
7375
- function Undefined2(options) {
7376
- return CreateType2({ [Kind2]: "Undefined", type: "undefined" }, options);
7377
- }
7378
-
7379
- // node_modules/@sinclair/typebox/build/esm/type/uint8array/uint8array.mjs
7380
- function Uint8Array3(options) {
7381
- return CreateType2({ [Kind2]: "Uint8Array", type: "Uint8Array" }, options);
7382
- }
7383
-
7384
- // node_modules/@sinclair/typebox/build/esm/type/unknown/unknown.mjs
7385
- function Unknown2(options) {
7386
- return CreateType2({ [Kind2]: "Unknown" }, options);
7387
- }
7388
-
7389
- // node_modules/@sinclair/typebox/build/esm/type/const/const.mjs
7390
- function FromArray21(T) {
7391
- return T.map((L) => FromValue3(L, false));
7392
- }
7393
- function FromProperties27(value) {
7394
- const Acc = {};
7395
- for (const K of globalThis.Object.getOwnPropertyNames(value))
7396
- Acc[K] = Readonly2(FromValue3(value[K], false));
7397
- return Acc;
7398
- }
7399
- function ConditionalReadonly2(T, root) {
7400
- return root === true ? T : Readonly2(T);
7401
- }
7402
- function FromValue3(value, root) {
7403
- return IsAsyncIterator5(value) ? ConditionalReadonly2(Any2(), root) : IsIterator5(value) ? ConditionalReadonly2(Any2(), root) : IsArray5(value) ? Readonly2(Tuple2(FromArray21(value))) : IsUint8Array5(value) ? Uint8Array3() : IsDate5(value) ? Date3() : IsObject5(value) ? ConditionalReadonly2(Object3(FromProperties27(value)), root) : IsFunction5(value) ? ConditionalReadonly2(Function2([], Unknown2()), root) : IsUndefined5(value) ? Undefined2() : IsNull5(value) ? Null2() : IsSymbol5(value) ? Symbol3() : IsBigInt5(value) ? BigInt3() : IsNumber5(value) ? Literal2(value) : IsBoolean5(value) ? Literal2(value) : IsString5(value) ? Literal2(value) : Object3({});
7404
- }
7405
- function Const2(T, options) {
7406
- return CreateType2(FromValue3(T, true), options);
7407
- }
7408
-
7409
- // node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/constructor-parameters.mjs
7410
- function ConstructorParameters2(schema, options) {
7411
- return IsConstructor3(schema) ? Tuple2(schema.parameters, options) : Never2(options);
7412
- }
7413
-
7414
- // node_modules/@sinclair/typebox/build/esm/type/enum/enum.mjs
7415
- function Enum2(item, options) {
7416
- if (IsUndefined5(item))
7417
- throw new Error("Enum undefined or empty");
7418
- const values1 = globalThis.Object.getOwnPropertyNames(item).filter((key) => isNaN(key)).map((key) => item[key]);
7419
- const values2 = [...new Set(values1)];
7420
- const anyOf = values2.map((value) => Literal2(value));
7421
- return Union3(anyOf, { ...options, [Hint2]: "Enum" });
7422
- }
7423
-
7424
- // node_modules/@sinclair/typebox/build/esm/type/extends/extends-check.mjs
7425
- class ExtendsResolverError2 extends TypeBoxError2 {
7426
- }
7427
- var ExtendsResult2;
7428
- (function(ExtendsResult3) {
7429
- ExtendsResult3[ExtendsResult3["Union"] = 0] = "Union";
7430
- ExtendsResult3[ExtendsResult3["True"] = 1] = "True";
7431
- ExtendsResult3[ExtendsResult3["False"] = 2] = "False";
7432
- })(ExtendsResult2 || (ExtendsResult2 = {}));
7433
- function IntoBooleanResult2(result) {
7434
- return result === ExtendsResult2.False ? result : ExtendsResult2.True;
7435
- }
7436
- function Throw2(message) {
7437
- throw new ExtendsResolverError2(message);
7438
- }
7439
- function IsStructuralRight2(right) {
7440
- return exports_type4.IsNever(right) || exports_type4.IsIntersect(right) || exports_type4.IsUnion(right) || exports_type4.IsUnknown(right) || exports_type4.IsAny(right);
7441
- }
7442
- function StructuralRight2(left, right) {
7443
- return exports_type4.IsNever(right) ? FromNeverRight2(left, right) : exports_type4.IsIntersect(right) ? FromIntersectRight2(left, right) : exports_type4.IsUnion(right) ? FromUnionRight2(left, right) : exports_type4.IsUnknown(right) ? FromUnknownRight2(left, right) : exports_type4.IsAny(right) ? FromAnyRight2(left, right) : Throw2("StructuralRight");
7444
- }
7445
- function FromAnyRight2(left, right) {
7446
- return ExtendsResult2.True;
7447
- }
7448
- function FromAny5(left, right) {
7449
- return exports_type4.IsIntersect(right) ? FromIntersectRight2(left, right) : exports_type4.IsUnion(right) && right.anyOf.some((schema) => exports_type4.IsAny(schema) || exports_type4.IsUnknown(schema)) ? ExtendsResult2.True : exports_type4.IsUnion(right) ? ExtendsResult2.Union : exports_type4.IsUnknown(right) ? ExtendsResult2.True : exports_type4.IsAny(right) ? ExtendsResult2.True : ExtendsResult2.Union;
7450
- }
7451
- function FromArrayRight2(left, right) {
7452
- return exports_type4.IsUnknown(left) ? ExtendsResult2.False : exports_type4.IsAny(left) ? ExtendsResult2.Union : exports_type4.IsNever(left) ? ExtendsResult2.True : ExtendsResult2.False;
7453
- }
7454
- function FromArray22(left, right) {
7455
- return exports_type4.IsObject(right) && IsObjectArrayLike2(right) ? ExtendsResult2.True : IsStructuralRight2(right) ? StructuralRight2(left, right) : !exports_type4.IsArray(right) ? ExtendsResult2.False : IntoBooleanResult2(Visit20(left.items, right.items));
7456
- }
7457
- function FromAsyncIterator8(left, right) {
7458
- return IsStructuralRight2(right) ? StructuralRight2(left, right) : !exports_type4.IsAsyncIterator(right) ? ExtendsResult2.False : IntoBooleanResult2(Visit20(left.items, right.items));
7459
- }
7460
- function FromBigInt6(left, right) {
7461
- return IsStructuralRight2(right) ? StructuralRight2(left, right) : exports_type4.IsObject(right) ? FromObjectRight2(left, right) : exports_type4.IsRecord(right) ? FromRecordRight2(left, right) : exports_type4.IsBigInt(right) ? ExtendsResult2.True : ExtendsResult2.False;
7462
- }
7463
- function FromBooleanRight2(left, right) {
7464
- return exports_type4.IsLiteralBoolean(left) ? ExtendsResult2.True : exports_type4.IsBoolean(left) ? ExtendsResult2.True : ExtendsResult2.False;
7465
- }
7466
- function FromBoolean6(left, right) {
7467
- return IsStructuralRight2(right) ? StructuralRight2(left, right) : exports_type4.IsObject(right) ? FromObjectRight2(left, right) : exports_type4.IsRecord(right) ? FromRecordRight2(left, right) : exports_type4.IsBoolean(right) ? ExtendsResult2.True : ExtendsResult2.False;
7468
- }
7469
- function FromConstructor9(left, right) {
7470
- return IsStructuralRight2(right) ? StructuralRight2(left, right) : exports_type4.IsObject(right) ? FromObjectRight2(left, right) : !exports_type4.IsConstructor(right) ? ExtendsResult2.False : left.parameters.length > right.parameters.length ? ExtendsResult2.False : !left.parameters.every((schema, index) => IntoBooleanResult2(Visit20(right.parameters[index], schema)) === ExtendsResult2.True) ? ExtendsResult2.False : IntoBooleanResult2(Visit20(left.returns, right.returns));
7471
- }
7472
- function FromDate8(left, right) {
7473
- return IsStructuralRight2(right) ? StructuralRight2(left, right) : exports_type4.IsObject(right) ? FromObjectRight2(left, right) : exports_type4.IsRecord(right) ? FromRecordRight2(left, right) : exports_type4.IsDate(right) ? ExtendsResult2.True : ExtendsResult2.False;
7474
- }
7475
- function FromFunction8(left, right) {
7476
- return IsStructuralRight2(right) ? StructuralRight2(left, right) : exports_type4.IsObject(right) ? FromObjectRight2(left, right) : !exports_type4.IsFunction(right) ? ExtendsResult2.False : left.parameters.length > right.parameters.length ? ExtendsResult2.False : !left.parameters.every((schema, index) => IntoBooleanResult2(Visit20(right.parameters[index], schema)) === ExtendsResult2.True) ? ExtendsResult2.False : IntoBooleanResult2(Visit20(left.returns, right.returns));
7477
- }
7478
- function FromIntegerRight2(left, right) {
7479
- return exports_type4.IsLiteral(left) && exports_value3.IsNumber(left.const) ? ExtendsResult2.True : exports_type4.IsNumber(left) || exports_type4.IsInteger(left) ? ExtendsResult2.True : ExtendsResult2.False;
7480
- }
7481
- function FromInteger6(left, right) {
7482
- return exports_type4.IsInteger(right) || exports_type4.IsNumber(right) ? ExtendsResult2.True : IsStructuralRight2(right) ? StructuralRight2(left, right) : exports_type4.IsObject(right) ? FromObjectRight2(left, right) : exports_type4.IsRecord(right) ? FromRecordRight2(left, right) : ExtendsResult2.False;
7483
- }
7484
- function FromIntersectRight2(left, right) {
7485
- return right.allOf.every((schema) => Visit20(left, schema) === ExtendsResult2.True) ? ExtendsResult2.True : ExtendsResult2.False;
7486
- }
7487
- function FromIntersect23(left, right) {
7488
- return left.allOf.some((schema) => Visit20(schema, right) === ExtendsResult2.True) ? ExtendsResult2.True : ExtendsResult2.False;
7489
- }
7490
- function FromIterator8(left, right) {
7491
- return IsStructuralRight2(right) ? StructuralRight2(left, right) : !exports_type4.IsIterator(right) ? ExtendsResult2.False : IntoBooleanResult2(Visit20(left.items, right.items));
7492
- }
7493
- function FromLiteral9(left, right) {
7494
- return exports_type4.IsLiteral(right) && right.const === left.const ? ExtendsResult2.True : IsStructuralRight2(right) ? StructuralRight2(left, right) : exports_type4.IsObject(right) ? FromObjectRight2(left, right) : exports_type4.IsRecord(right) ? FromRecordRight2(left, right) : exports_type4.IsString(right) ? FromStringRight2(left, right) : exports_type4.IsNumber(right) ? FromNumberRight2(left, right) : exports_type4.IsInteger(right) ? FromIntegerRight2(left, right) : exports_type4.IsBoolean(right) ? FromBooleanRight2(left, right) : ExtendsResult2.False;
7495
- }
7496
- function FromNeverRight2(left, right) {
7497
- return ExtendsResult2.False;
7498
- }
7499
- function FromNever6(left, right) {
7500
- return ExtendsResult2.True;
7501
- }
7502
- function UnwrapTNot2(schema) {
7503
- let [current, depth] = [schema, 0];
7504
- while (true) {
7505
- if (!exports_type4.IsNot(current))
7506
- break;
7507
- current = current.not;
7508
- depth += 1;
7509
- }
7510
- return depth % 2 === 0 ? current : Unknown2();
7511
- }
7512
- function FromNot8(left, right) {
7513
- return exports_type4.IsNot(left) ? Visit20(UnwrapTNot2(left), right) : exports_type4.IsNot(right) ? Visit20(left, UnwrapTNot2(right)) : Throw2("Invalid fallthrough for Not");
7514
- }
7515
- function FromNull6(left, right) {
7516
- return IsStructuralRight2(right) ? StructuralRight2(left, right) : exports_type4.IsObject(right) ? FromObjectRight2(left, right) : exports_type4.IsRecord(right) ? FromRecordRight2(left, right) : exports_type4.IsNull(right) ? ExtendsResult2.True : ExtendsResult2.False;
7517
- }
7518
- function FromNumberRight2(left, right) {
7519
- return exports_type4.IsLiteralNumber(left) ? ExtendsResult2.True : exports_type4.IsNumber(left) || exports_type4.IsInteger(left) ? ExtendsResult2.True : ExtendsResult2.False;
7520
- }
7521
- function FromNumber6(left, right) {
7522
- return IsStructuralRight2(right) ? StructuralRight2(left, right) : exports_type4.IsObject(right) ? FromObjectRight2(left, right) : exports_type4.IsRecord(right) ? FromRecordRight2(left, right) : exports_type4.IsInteger(right) || exports_type4.IsNumber(right) ? ExtendsResult2.True : ExtendsResult2.False;
7523
- }
7524
- function IsObjectPropertyCount2(schema, count) {
7525
- return Object.getOwnPropertyNames(schema.properties).length === count;
7526
- }
7527
- function IsObjectStringLike2(schema) {
7528
- return IsObjectArrayLike2(schema);
7529
- }
7530
- function IsObjectSymbolLike2(schema) {
7531
- return IsObjectPropertyCount2(schema, 0) || IsObjectPropertyCount2(schema, 1) && "description" in schema.properties && exports_type4.IsUnion(schema.properties.description) && schema.properties.description.anyOf.length === 2 && (exports_type4.IsString(schema.properties.description.anyOf[0]) && exports_type4.IsUndefined(schema.properties.description.anyOf[1]) || exports_type4.IsString(schema.properties.description.anyOf[1]) && exports_type4.IsUndefined(schema.properties.description.anyOf[0]));
7532
- }
7533
- function IsObjectNumberLike2(schema) {
7534
- return IsObjectPropertyCount2(schema, 0);
7535
- }
7536
- function IsObjectBooleanLike2(schema) {
7537
- return IsObjectPropertyCount2(schema, 0);
7538
- }
7539
- function IsObjectBigIntLike2(schema) {
7540
- return IsObjectPropertyCount2(schema, 0);
7541
- }
7542
- function IsObjectDateLike2(schema) {
7543
- return IsObjectPropertyCount2(schema, 0);
7544
- }
7545
- function IsObjectUint8ArrayLike2(schema) {
7546
- return IsObjectArrayLike2(schema);
7547
- }
7548
- function IsObjectFunctionLike2(schema) {
7549
- const length = Number3();
7550
- return IsObjectPropertyCount2(schema, 0) || IsObjectPropertyCount2(schema, 1) && "length" in schema.properties && IntoBooleanResult2(Visit20(schema.properties["length"], length)) === ExtendsResult2.True;
7551
- }
7552
- function IsObjectConstructorLike2(schema) {
7553
- return IsObjectPropertyCount2(schema, 0);
7554
- }
7555
- function IsObjectArrayLike2(schema) {
7556
- const length = Number3();
7557
- return IsObjectPropertyCount2(schema, 0) || IsObjectPropertyCount2(schema, 1) && "length" in schema.properties && IntoBooleanResult2(Visit20(schema.properties["length"], length)) === ExtendsResult2.True;
7558
- }
7559
- function IsObjectPromiseLike2(schema) {
7560
- const then = Function2([Any2()], Any2());
7561
- return IsObjectPropertyCount2(schema, 0) || IsObjectPropertyCount2(schema, 1) && "then" in schema.properties && IntoBooleanResult2(Visit20(schema.properties["then"], then)) === ExtendsResult2.True;
7562
- }
7563
- function Property2(left, right) {
7564
- return Visit20(left, right) === ExtendsResult2.False ? ExtendsResult2.False : exports_type4.IsOptional(left) && !exports_type4.IsOptional(right) ? ExtendsResult2.False : ExtendsResult2.True;
7565
- }
7566
- function FromObjectRight2(left, right) {
7567
- return exports_type4.IsUnknown(left) ? ExtendsResult2.False : exports_type4.IsAny(left) ? ExtendsResult2.Union : exports_type4.IsNever(left) || exports_type4.IsLiteralString(left) && IsObjectStringLike2(right) || exports_type4.IsLiteralNumber(left) && IsObjectNumberLike2(right) || exports_type4.IsLiteralBoolean(left) && IsObjectBooleanLike2(right) || exports_type4.IsSymbol(left) && IsObjectSymbolLike2(right) || exports_type4.IsBigInt(left) && IsObjectBigIntLike2(right) || exports_type4.IsString(left) && IsObjectStringLike2(right) || exports_type4.IsSymbol(left) && IsObjectSymbolLike2(right) || exports_type4.IsNumber(left) && IsObjectNumberLike2(right) || exports_type4.IsInteger(left) && IsObjectNumberLike2(right) || exports_type4.IsBoolean(left) && IsObjectBooleanLike2(right) || exports_type4.IsUint8Array(left) && IsObjectUint8ArrayLike2(right) || exports_type4.IsDate(left) && IsObjectDateLike2(right) || exports_type4.IsConstructor(left) && IsObjectConstructorLike2(right) || exports_type4.IsFunction(left) && IsObjectFunctionLike2(right) ? ExtendsResult2.True : exports_type4.IsRecord(left) && exports_type4.IsString(RecordKey3(left)) ? (() => {
7568
- return right[Hint2] === "Record" ? ExtendsResult2.True : ExtendsResult2.False;
7569
- })() : exports_type4.IsRecord(left) && exports_type4.IsNumber(RecordKey3(left)) ? (() => {
7570
- return IsObjectPropertyCount2(right, 0) ? ExtendsResult2.True : ExtendsResult2.False;
7571
- })() : ExtendsResult2.False;
7572
- }
7573
- function FromObject19(left, right) {
7574
- return IsStructuralRight2(right) ? StructuralRight2(left, right) : exports_type4.IsRecord(right) ? FromRecordRight2(left, right) : !exports_type4.IsObject(right) ? ExtendsResult2.False : (() => {
7575
- for (const key of Object.getOwnPropertyNames(right.properties)) {
7576
- if (!(key in left.properties) && !exports_type4.IsOptional(right.properties[key])) {
7577
- return ExtendsResult2.False;
7578
- }
7579
- if (exports_type4.IsOptional(right.properties[key])) {
7580
- return ExtendsResult2.True;
7581
- }
7582
- if (Property2(left.properties[key], right.properties[key]) === ExtendsResult2.False) {
7583
- return ExtendsResult2.False;
7584
- }
7585
- }
7586
- return ExtendsResult2.True;
7587
- })();
7588
- }
7589
- function FromPromise10(left, right) {
7590
- return IsStructuralRight2(right) ? StructuralRight2(left, right) : exports_type4.IsObject(right) && IsObjectPromiseLike2(right) ? ExtendsResult2.True : !exports_type4.IsPromise(right) ? ExtendsResult2.False : IntoBooleanResult2(Visit20(left.item, right.item));
7591
- }
7592
- function RecordKey3(schema) {
7593
- return PatternNumberExact2 in schema.patternProperties ? Number3() : (PatternStringExact2 in schema.patternProperties) ? String3() : Throw2("Unknown record key pattern");
7594
- }
7595
- function RecordValue3(schema) {
7596
- return PatternNumberExact2 in schema.patternProperties ? schema.patternProperties[PatternNumberExact2] : (PatternStringExact2 in schema.patternProperties) ? schema.patternProperties[PatternStringExact2] : Throw2("Unable to get record value schema");
7597
- }
7598
- function FromRecordRight2(left, right) {
7599
- const [Key, Value] = [RecordKey3(right), RecordValue3(right)];
7600
- return exports_type4.IsLiteralString(left) && exports_type4.IsNumber(Key) && IntoBooleanResult2(Visit20(left, Value)) === ExtendsResult2.True ? ExtendsResult2.True : exports_type4.IsUint8Array(left) && exports_type4.IsNumber(Key) ? Visit20(left, Value) : exports_type4.IsString(left) && exports_type4.IsNumber(Key) ? Visit20(left, Value) : exports_type4.IsArray(left) && exports_type4.IsNumber(Key) ? Visit20(left, Value) : exports_type4.IsObject(left) ? (() => {
7601
- for (const key of Object.getOwnPropertyNames(left.properties)) {
7602
- if (Property2(Value, left.properties[key]) === ExtendsResult2.False) {
7603
- return ExtendsResult2.False;
7604
- }
7605
- }
7606
- return ExtendsResult2.True;
7607
- })() : ExtendsResult2.False;
7608
- }
7609
- function FromRecord14(left, right) {
7610
- return IsStructuralRight2(right) ? StructuralRight2(left, right) : exports_type4.IsObject(right) ? FromObjectRight2(left, right) : !exports_type4.IsRecord(right) ? ExtendsResult2.False : Visit20(RecordValue3(left), RecordValue3(right));
7611
- }
7612
- function FromRegExp5(left, right) {
7613
- const L = exports_type4.IsRegExp(left) ? String3() : left;
7614
- const R = exports_type4.IsRegExp(right) ? String3() : right;
7615
- return Visit20(L, R);
7616
- }
7617
- function FromStringRight2(left, right) {
7618
- return exports_type4.IsLiteral(left) && exports_value3.IsString(left.const) ? ExtendsResult2.True : exports_type4.IsString(left) ? ExtendsResult2.True : ExtendsResult2.False;
7619
- }
7620
- function FromString6(left, right) {
7621
- return IsStructuralRight2(right) ? StructuralRight2(left, right) : exports_type4.IsObject(right) ? FromObjectRight2(left, right) : exports_type4.IsRecord(right) ? FromRecordRight2(left, right) : exports_type4.IsString(right) ? ExtendsResult2.True : ExtendsResult2.False;
7622
- }
7623
- function FromSymbol6(left, right) {
7624
- return IsStructuralRight2(right) ? StructuralRight2(left, right) : exports_type4.IsObject(right) ? FromObjectRight2(left, right) : exports_type4.IsRecord(right) ? FromRecordRight2(left, right) : exports_type4.IsSymbol(right) ? ExtendsResult2.True : ExtendsResult2.False;
7625
- }
7626
- function FromTemplateLiteral9(left, right) {
7627
- return exports_type4.IsTemplateLiteral(left) ? Visit20(TemplateLiteralToUnion2(left), right) : exports_type4.IsTemplateLiteral(right) ? Visit20(left, TemplateLiteralToUnion2(right)) : Throw2("Invalid fallthrough for TemplateLiteral");
7628
- }
7629
- function IsArrayOfTuple2(left, right) {
7630
- return exports_type4.IsArray(right) && left.items !== undefined && left.items.every((schema) => Visit20(schema, right.items) === ExtendsResult2.True);
7631
- }
7632
- function FromTupleRight2(left, right) {
7633
- return exports_type4.IsNever(left) ? ExtendsResult2.True : exports_type4.IsUnknown(left) ? ExtendsResult2.False : exports_type4.IsAny(left) ? ExtendsResult2.Union : ExtendsResult2.False;
7634
- }
7635
- function FromTuple19(left, right) {
7636
- return IsStructuralRight2(right) ? StructuralRight2(left, right) : exports_type4.IsObject(right) && IsObjectArrayLike2(right) ? ExtendsResult2.True : exports_type4.IsArray(right) && IsArrayOfTuple2(left, right) ? ExtendsResult2.True : !exports_type4.IsTuple(right) ? ExtendsResult2.False : exports_value3.IsUndefined(left.items) && !exports_value3.IsUndefined(right.items) || !exports_value3.IsUndefined(left.items) && exports_value3.IsUndefined(right.items) ? ExtendsResult2.False : exports_value3.IsUndefined(left.items) && !exports_value3.IsUndefined(right.items) ? ExtendsResult2.True : left.items.every((schema, index) => Visit20(schema, right.items[index]) === ExtendsResult2.True) ? ExtendsResult2.True : ExtendsResult2.False;
7637
- }
7638
- function FromUint8Array5(left, right) {
7639
- return IsStructuralRight2(right) ? StructuralRight2(left, right) : exports_type4.IsObject(right) ? FromObjectRight2(left, right) : exports_type4.IsRecord(right) ? FromRecordRight2(left, right) : exports_type4.IsUint8Array(right) ? ExtendsResult2.True : ExtendsResult2.False;
7640
- }
7641
- function FromUndefined6(left, right) {
7642
- return IsStructuralRight2(right) ? StructuralRight2(left, right) : exports_type4.IsObject(right) ? FromObjectRight2(left, right) : exports_type4.IsRecord(right) ? FromRecordRight2(left, right) : exports_type4.IsVoid(right) ? FromVoidRight2(left, right) : exports_type4.IsUndefined(right) ? ExtendsResult2.True : ExtendsResult2.False;
7643
- }
7644
- function FromUnionRight2(left, right) {
7645
- return right.anyOf.some((schema) => Visit20(left, schema) === ExtendsResult2.True) ? ExtendsResult2.True : ExtendsResult2.False;
7646
- }
7647
- function FromUnion27(left, right) {
7648
- return left.anyOf.every((schema) => Visit20(schema, right) === ExtendsResult2.True) ? ExtendsResult2.True : ExtendsResult2.False;
7649
- }
7650
- function FromUnknownRight2(left, right) {
7651
- return ExtendsResult2.True;
7652
- }
7653
- function FromUnknown5(left, right) {
7654
- return exports_type4.IsNever(right) ? FromNeverRight2(left, right) : exports_type4.IsIntersect(right) ? FromIntersectRight2(left, right) : exports_type4.IsUnion(right) ? FromUnionRight2(left, right) : exports_type4.IsAny(right) ? FromAnyRight2(left, right) : exports_type4.IsString(right) ? FromStringRight2(left, right) : exports_type4.IsNumber(right) ? FromNumberRight2(left, right) : exports_type4.IsInteger(right) ? FromIntegerRight2(left, right) : exports_type4.IsBoolean(right) ? FromBooleanRight2(left, right) : exports_type4.IsArray(right) ? FromArrayRight2(left, right) : exports_type4.IsTuple(right) ? FromTupleRight2(left, right) : exports_type4.IsObject(right) ? FromObjectRight2(left, right) : exports_type4.IsUnknown(right) ? ExtendsResult2.True : ExtendsResult2.False;
7655
- }
7656
- function FromVoidRight2(left, right) {
7657
- return exports_type4.IsUndefined(left) ? ExtendsResult2.True : exports_type4.IsUndefined(left) ? ExtendsResult2.True : ExtendsResult2.False;
7658
- }
7659
- function FromVoid5(left, right) {
7660
- return exports_type4.IsIntersect(right) ? FromIntersectRight2(left, right) : exports_type4.IsUnion(right) ? FromUnionRight2(left, right) : exports_type4.IsUnknown(right) ? FromUnknownRight2(left, right) : exports_type4.IsAny(right) ? FromAnyRight2(left, right) : exports_type4.IsObject(right) ? FromObjectRight2(left, right) : exports_type4.IsVoid(right) ? ExtendsResult2.True : ExtendsResult2.False;
7661
- }
7662
- function Visit20(left, right) {
7663
- return exports_type4.IsTemplateLiteral(left) || exports_type4.IsTemplateLiteral(right) ? FromTemplateLiteral9(left, right) : exports_type4.IsRegExp(left) || exports_type4.IsRegExp(right) ? FromRegExp5(left, right) : exports_type4.IsNot(left) || exports_type4.IsNot(right) ? FromNot8(left, right) : exports_type4.IsAny(left) ? FromAny5(left, right) : exports_type4.IsArray(left) ? FromArray22(left, right) : exports_type4.IsBigInt(left) ? FromBigInt6(left, right) : exports_type4.IsBoolean(left) ? FromBoolean6(left, right) : exports_type4.IsAsyncIterator(left) ? FromAsyncIterator8(left, right) : exports_type4.IsConstructor(left) ? FromConstructor9(left, right) : exports_type4.IsDate(left) ? FromDate8(left, right) : exports_type4.IsFunction(left) ? FromFunction8(left, right) : exports_type4.IsInteger(left) ? FromInteger6(left, right) : exports_type4.IsIntersect(left) ? FromIntersect23(left, right) : exports_type4.IsIterator(left) ? FromIterator8(left, right) : exports_type4.IsLiteral(left) ? FromLiteral9(left, right) : exports_type4.IsNever(left) ? FromNever6(left, right) : exports_type4.IsNull(left) ? FromNull6(left, right) : exports_type4.IsNumber(left) ? FromNumber6(left, right) : exports_type4.IsObject(left) ? FromObject19(left, right) : exports_type4.IsRecord(left) ? FromRecord14(left, right) : exports_type4.IsString(left) ? FromString6(left, right) : exports_type4.IsSymbol(left) ? FromSymbol6(left, right) : exports_type4.IsTuple(left) ? FromTuple19(left, right) : exports_type4.IsPromise(left) ? FromPromise10(left, right) : exports_type4.IsUint8Array(left) ? FromUint8Array5(left, right) : exports_type4.IsUndefined(left) ? FromUndefined6(left, right) : exports_type4.IsUnion(left) ? FromUnion27(left, right) : exports_type4.IsUnknown(left) ? FromUnknown5(left, right) : exports_type4.IsVoid(left) ? FromVoid5(left, right) : Throw2(`Unknown left type operand '${left[Kind2]}'`);
7664
- }
7665
- function ExtendsCheck2(left, right) {
7666
- return Visit20(left, right);
7667
- }
7668
-
7669
- // node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-result.mjs
7670
- function FromProperties28(P, Right, True, False, options) {
7671
- const Acc = {};
7672
- for (const K2 of globalThis.Object.getOwnPropertyNames(P))
7673
- Acc[K2] = Extends2(P[K2], Right, True, False, Clone3(options));
7674
- return Acc;
7675
- }
7676
- function FromMappedResult19(Left, Right, True, False, options) {
7677
- return FromProperties28(Left.properties, Right, True, False, options);
7678
- }
7679
- function ExtendsFromMappedResult2(Left, Right, True, False, options) {
7680
- const P = FromMappedResult19(Left, Right, True, False, options);
7681
- return MappedResult2(P);
7682
- }
7683
-
7684
- // node_modules/@sinclair/typebox/build/esm/type/extends/extends.mjs
7685
- function ExtendsResolve2(left, right, trueType, falseType) {
7686
- const R = ExtendsCheck2(left, right);
7687
- return R === ExtendsResult2.Union ? Union3([trueType, falseType]) : R === ExtendsResult2.True ? trueType : falseType;
7688
- }
7689
- function Extends2(L, R, T, F, options) {
7690
- return IsMappedResult3(L) ? ExtendsFromMappedResult2(L, R, T, F, options) : IsMappedKey3(L) ? CreateType2(ExtendsFromMappedKey2(L, R, T, F, options)) : CreateType2(ExtendsResolve2(L, R, T, F), options);
7691
- }
7692
-
7693
- // node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-key.mjs
7694
- function FromPropertyKey4(K, U, L, R, options) {
7695
- return {
7696
- [K]: Extends2(Literal2(K), U, L, R, Clone3(options))
7697
- };
7698
- }
7699
- function FromPropertyKeys4(K, U, L, R, options) {
7700
- return K.reduce((Acc, LK) => {
7701
- return { ...Acc, ...FromPropertyKey4(LK, U, L, R, options) };
7702
- }, {});
7703
- }
7704
- function FromMappedKey7(K, U, L, R, options) {
7705
- return FromPropertyKeys4(K.keys, U, L, R, options);
7706
- }
7707
- function ExtendsFromMappedKey2(T, U, L, R, options) {
7708
- const P = FromMappedKey7(T, U, L, R, options);
7709
- return MappedResult2(P);
7710
- }
7711
-
7712
- // node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-template-literal.mjs
7713
- function ExcludeFromTemplateLiteral2(L, R) {
7714
- return Exclude2(TemplateLiteralToUnion2(L), R);
7715
- }
7716
-
7717
- // node_modules/@sinclair/typebox/build/esm/type/exclude/exclude.mjs
7718
- function ExcludeRest2(L, R) {
7719
- const excluded = L.filter((inner) => ExtendsCheck2(inner, R) === ExtendsResult2.False);
7720
- return excluded.length === 1 ? excluded[0] : Union3(excluded);
7721
- }
7722
- function Exclude2(L, R, options = {}) {
7723
- if (IsTemplateLiteral3(L))
7724
- return CreateType2(ExcludeFromTemplateLiteral2(L, R), options);
7725
- if (IsMappedResult3(L))
7726
- return CreateType2(ExcludeFromMappedResult2(L, R), options);
7727
- return CreateType2(IsUnion3(L) ? ExcludeRest2(L.anyOf, R) : ExtendsCheck2(L, R) !== ExtendsResult2.False ? Never2() : L, options);
7728
- }
7729
-
7730
- // node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-mapped-result.mjs
7731
- function FromProperties29(P, U) {
7732
- const Acc = {};
7733
- for (const K2 of globalThis.Object.getOwnPropertyNames(P))
7734
- Acc[K2] = Exclude2(P[K2], U);
7735
- return Acc;
7736
- }
7737
- function FromMappedResult20(R, T) {
7738
- return FromProperties29(R.properties, T);
7739
- }
7740
- function ExcludeFromMappedResult2(R, T) {
7741
- const P = FromMappedResult20(R, T);
7742
- return MappedResult2(P);
7743
- }
7744
-
7745
- // node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-template-literal.mjs
7746
- function ExtractFromTemplateLiteral2(L, R) {
7747
- return Extract2(TemplateLiteralToUnion2(L), R);
7748
- }
7749
-
7750
- // node_modules/@sinclair/typebox/build/esm/type/extract/extract.mjs
7751
- function ExtractRest2(L, R) {
7752
- const extracted = L.filter((inner) => ExtendsCheck2(inner, R) !== ExtendsResult2.False);
7753
- return extracted.length === 1 ? extracted[0] : Union3(extracted);
7754
- }
7755
- function Extract2(L, R, options) {
7756
- if (IsTemplateLiteral3(L))
7757
- return CreateType2(ExtractFromTemplateLiteral2(L, R), options);
7758
- if (IsMappedResult3(L))
7759
- return CreateType2(ExtractFromMappedResult2(L, R), options);
7760
- return CreateType2(IsUnion3(L) ? ExtractRest2(L.anyOf, R) : ExtendsCheck2(L, R) !== ExtendsResult2.False ? L : Never2(), options);
7761
- }
7762
-
7763
- // node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-mapped-result.mjs
7764
- function FromProperties30(P, T) {
7765
- const Acc = {};
7766
- for (const K2 of globalThis.Object.getOwnPropertyNames(P))
7767
- Acc[K2] = Extract2(P[K2], T);
7768
- return Acc;
7769
- }
7770
- function FromMappedResult21(R, T) {
7771
- return FromProperties30(R.properties, T);
7772
- }
7773
- function ExtractFromMappedResult2(R, T) {
7774
- const P = FromMappedResult21(R, T);
7775
- return MappedResult2(P);
7776
- }
7777
-
7778
- // node_modules/@sinclair/typebox/build/esm/type/instance-type/instance-type.mjs
7779
- function InstanceType2(schema, options) {
7780
- return IsConstructor3(schema) ? CreateType2(schema.returns, options) : Never2(options);
7781
- }
7782
-
7783
- // node_modules/@sinclair/typebox/build/esm/type/readonly-optional/readonly-optional.mjs
7784
- function ReadonlyOptional2(schema) {
7785
- return Readonly2(Optional2(schema));
7786
- }
7787
-
7788
- // node_modules/@sinclair/typebox/build/esm/type/record/record.mjs
7789
- function RecordCreateFromPattern2(pattern, T, options) {
7790
- return CreateType2({ [Kind2]: "Record", type: "object", patternProperties: { [pattern]: T } }, options);
7791
- }
7792
- function RecordCreateFromKeys2(K, T, options) {
7793
- const result = {};
7794
- for (const K2 of K)
7795
- result[K2] = T;
7796
- return Object3(result, { ...options, [Hint2]: "Record" });
7797
- }
7798
- function FromTemplateLiteralKey2(K, T, options) {
7799
- return IsTemplateLiteralFinite2(K) ? RecordCreateFromKeys2(IndexPropertyKeys2(K), T, options) : RecordCreateFromPattern2(K.pattern, T, options);
7800
- }
7801
- function FromUnionKey2(key, type, options) {
7802
- return RecordCreateFromKeys2(IndexPropertyKeys2(Union3(key)), type, options);
7803
- }
7804
- function FromLiteralKey2(key, type, options) {
7805
- return RecordCreateFromKeys2([key.toString()], type, options);
7806
- }
7807
- function FromRegExpKey2(key, type, options) {
7808
- return RecordCreateFromPattern2(key.source, type, options);
7809
- }
7810
- function FromStringKey2(key, type, options) {
7811
- const pattern = IsUndefined5(key.pattern) ? PatternStringExact2 : key.pattern;
7812
- return RecordCreateFromPattern2(pattern, type, options);
7813
- }
7814
- function FromAnyKey2(_, type, options) {
7815
- return RecordCreateFromPattern2(PatternStringExact2, type, options);
7816
- }
7817
- function FromNeverKey2(_key, type, options) {
7818
- return RecordCreateFromPattern2(PatternNeverExact2, type, options);
7819
- }
7820
- function FromBooleanKey2(_key, type, options) {
7821
- return Object3({ true: type, false: type }, options);
7822
- }
7823
- function FromIntegerKey2(_key, type, options) {
7824
- return RecordCreateFromPattern2(PatternNumberExact2, type, options);
7825
- }
7826
- function FromNumberKey2(_, type, options) {
7827
- return RecordCreateFromPattern2(PatternNumberExact2, type, options);
7828
- }
7829
- function Record2(key, type, options = {}) {
7830
- return IsUnion3(key) ? FromUnionKey2(key.anyOf, type, options) : IsTemplateLiteral3(key) ? FromTemplateLiteralKey2(key, type, options) : IsLiteral3(key) ? FromLiteralKey2(key.const, type, options) : IsBoolean7(key) ? FromBooleanKey2(key, type, options) : IsInteger4(key) ? FromIntegerKey2(key, type, options) : IsNumber8(key) ? FromNumberKey2(key, type, options) : IsRegExp6(key) ? FromRegExpKey2(key, type, options) : IsString7(key) ? FromStringKey2(key, type, options) : IsAny3(key) ? FromAnyKey2(key, type, options) : IsNever3(key) ? FromNeverKey2(key, type, options) : Never2(options);
7831
- }
7832
- function RecordPattern2(record) {
7833
- return globalThis.Object.getOwnPropertyNames(record.patternProperties)[0];
7834
- }
7835
- function RecordKey5(type) {
7836
- const pattern = RecordPattern2(type);
7837
- return pattern === PatternStringExact2 ? String3() : pattern === PatternNumberExact2 ? Number3() : String3({ pattern });
7838
- }
7839
- function RecordValue5(type) {
7840
- return type.patternProperties[RecordPattern2(type)];
7841
- }
7842
-
7843
- // node_modules/@sinclair/typebox/build/esm/type/instantiate/instantiate.mjs
7844
- function FromConstructor11(args, type) {
7845
- type.parameters = FromTypes3(args, type.parameters);
7846
- type.returns = FromType3(args, type.returns);
7847
- return type;
7848
- }
7849
- function FromFunction10(args, type) {
7850
- type.parameters = FromTypes3(args, type.parameters);
7851
- type.returns = FromType3(args, type.returns);
7852
- return type;
7853
- }
7854
- function FromIntersect24(args, type) {
7855
- type.allOf = FromTypes3(args, type.allOf);
7856
- return type;
7857
- }
7858
- function FromUnion28(args, type) {
7859
- type.anyOf = FromTypes3(args, type.anyOf);
7860
- return type;
7861
- }
7862
- function FromTuple20(args, type) {
7863
- if (IsUndefined5(type.items))
7864
- return type;
7865
- type.items = FromTypes3(args, type.items);
7866
- return type;
7867
- }
7868
- function FromArray23(args, type) {
7869
- type.items = FromType3(args, type.items);
7870
- return type;
7871
- }
7872
- function FromAsyncIterator10(args, type) {
7873
- type.items = FromType3(args, type.items);
7874
- return type;
7875
- }
7876
- function FromIterator10(args, type) {
7877
- type.items = FromType3(args, type.items);
7878
- return type;
7879
- }
7880
- function FromPromise11(args, type) {
7881
- type.item = FromType3(args, type.item);
7882
- return type;
7883
- }
7884
- function FromObject21(args, type) {
7885
- const mappedProperties = FromProperties31(args, type.properties);
7886
- return { ...type, ...Object3(mappedProperties) };
7887
- }
7888
- function FromRecord16(args, type) {
7889
- const mappedKey = FromType3(args, RecordKey5(type));
7890
- const mappedValue = FromType3(args, RecordValue5(type));
7891
- const result = Record2(mappedKey, mappedValue);
7892
- return { ...type, ...result };
7893
- }
7894
- function FromArgument5(args, argument) {
7895
- return argument.index in args ? args[argument.index] : Unknown2();
7896
- }
7897
- function FromProperty6(args, type) {
7898
- const isReadonly = IsReadonly3(type);
7899
- const isOptional = IsOptional3(type);
7900
- const mapped = FromType3(args, type);
7901
- return isReadonly && isOptional ? ReadonlyOptional2(mapped) : isReadonly && !isOptional ? Readonly2(mapped) : !isReadonly && isOptional ? Optional2(mapped) : mapped;
7902
- }
7903
- function FromProperties31(args, properties) {
7904
- return globalThis.Object.getOwnPropertyNames(properties).reduce((result, key) => {
7905
- return { ...result, [key]: FromProperty6(args, properties[key]) };
7906
- }, {});
7907
- }
7908
- function FromTypes3(args, types) {
7909
- return types.map((type) => FromType3(args, type));
7910
- }
7911
- function FromType3(args, type) {
7912
- return IsConstructor3(type) ? FromConstructor11(args, type) : IsFunction7(type) ? FromFunction10(args, type) : IsIntersect3(type) ? FromIntersect24(args, type) : IsUnion3(type) ? FromUnion28(args, type) : IsTuple3(type) ? FromTuple20(args, type) : IsArray8(type) ? FromArray23(args, type) : IsAsyncIterator7(type) ? FromAsyncIterator10(args, type) : IsIterator7(type) ? FromIterator10(args, type) : IsPromise4(type) ? FromPromise11(args, type) : IsObject8(type) ? FromObject21(args, type) : IsRecord3(type) ? FromRecord16(args, type) : IsArgument3(type) ? FromArgument5(args, type) : type;
7913
- }
7914
- function Instantiate2(type, args) {
7915
- return FromType3(args, CloneType2(type));
7916
- }
7917
-
7918
- // node_modules/@sinclair/typebox/build/esm/type/integer/integer.mjs
7919
- function Integer2(options) {
7920
- return CreateType2({ [Kind2]: "Integer", type: "integer" }, options);
7921
- }
7922
-
7923
- // node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic-from-mapped-key.mjs
7924
- function MappedIntrinsicPropertyKey2(K, M, options) {
7925
- return {
7926
- [K]: Intrinsic2(Literal2(K), M, Clone3(options))
7927
- };
7928
- }
7929
- function MappedIntrinsicPropertyKeys2(K, M, options) {
7930
- const result = K.reduce((Acc, L) => {
7931
- return { ...Acc, ...MappedIntrinsicPropertyKey2(L, M, options) };
7932
- }, {});
7933
- return result;
7934
- }
7935
- function MappedIntrinsicProperties2(T, M, options) {
7936
- return MappedIntrinsicPropertyKeys2(T["keys"], M, options);
7937
- }
7938
- function IntrinsicFromMappedKey2(T, M, options) {
7939
- const P = MappedIntrinsicProperties2(T, M, options);
7940
- return MappedResult2(P);
7941
- }
7942
-
7943
- // node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic.mjs
7944
- function ApplyUncapitalize2(value) {
7945
- const [first, rest] = [value.slice(0, 1), value.slice(1)];
7946
- return [first.toLowerCase(), rest].join("");
7947
- }
7948
- function ApplyCapitalize2(value) {
7949
- const [first, rest] = [value.slice(0, 1), value.slice(1)];
7950
- return [first.toUpperCase(), rest].join("");
7951
- }
7952
- function ApplyUppercase2(value) {
7953
- return value.toUpperCase();
7954
- }
7955
- function ApplyLowercase2(value) {
7956
- return value.toLowerCase();
7957
- }
7958
- function FromTemplateLiteral10(schema, mode, options) {
7959
- const expression = TemplateLiteralParseExact2(schema.pattern);
7960
- const finite = IsTemplateLiteralExpressionFinite2(expression);
7961
- if (!finite)
7962
- return { ...schema, pattern: FromLiteralValue2(schema.pattern, mode) };
7963
- const strings = [...TemplateLiteralExpressionGenerate2(expression)];
7964
- const literals = strings.map((value) => Literal2(value));
7965
- const mapped = FromRest13(literals, mode);
7966
- const union = Union3(mapped);
7967
- return TemplateLiteral2([union], options);
7968
- }
7969
- function FromLiteralValue2(value, mode) {
7970
- return typeof value === "string" ? mode === "Uncapitalize" ? ApplyUncapitalize2(value) : mode === "Capitalize" ? ApplyCapitalize2(value) : mode === "Uppercase" ? ApplyUppercase2(value) : mode === "Lowercase" ? ApplyLowercase2(value) : value : value.toString();
7971
- }
7972
- function FromRest13(T, M) {
7973
- return T.map((L) => Intrinsic2(L, M));
7974
- }
7975
- function Intrinsic2(schema, mode, options = {}) {
7976
- return IsMappedKey3(schema) ? IntrinsicFromMappedKey2(schema, mode, options) : IsTemplateLiteral3(schema) ? FromTemplateLiteral10(schema, mode, options) : IsUnion3(schema) ? Union3(FromRest13(schema.anyOf, mode), options) : IsLiteral3(schema) ? Literal2(FromLiteralValue2(schema.const, mode), options) : CreateType2(schema, options);
7977
- }
7978
-
7979
- // node_modules/@sinclair/typebox/build/esm/type/intrinsic/capitalize.mjs
7980
- function Capitalize2(T, options = {}) {
7981
- return Intrinsic2(T, "Capitalize", options);
7982
- }
7983
-
7984
- // node_modules/@sinclair/typebox/build/esm/type/intrinsic/lowercase.mjs
7985
- function Lowercase2(T, options = {}) {
7986
- return Intrinsic2(T, "Lowercase", options);
7987
- }
7988
-
7989
- // node_modules/@sinclair/typebox/build/esm/type/intrinsic/uncapitalize.mjs
7990
- function Uncapitalize2(T, options = {}) {
7991
- return Intrinsic2(T, "Uncapitalize", options);
7992
- }
7993
-
7994
- // node_modules/@sinclair/typebox/build/esm/type/intrinsic/uppercase.mjs
7995
- function Uppercase2(T, options = {}) {
7996
- return Intrinsic2(T, "Uppercase", options);
7997
- }
7998
-
7999
- // node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-result.mjs
8000
- function FromProperties32(properties, propertyKeys, options) {
8001
- const result = {};
8002
- for (const K2 of globalThis.Object.getOwnPropertyNames(properties))
8003
- result[K2] = Omit2(properties[K2], propertyKeys, Clone3(options));
8004
- return result;
8005
- }
8006
- function FromMappedResult22(mappedResult, propertyKeys, options) {
8007
- return FromProperties32(mappedResult.properties, propertyKeys, options);
8008
- }
8009
- function OmitFromMappedResult2(mappedResult, propertyKeys, options) {
8010
- const properties = FromMappedResult22(mappedResult, propertyKeys, options);
8011
- return MappedResult2(properties);
8012
- }
8013
-
8014
- // node_modules/@sinclair/typebox/build/esm/type/omit/omit.mjs
8015
- function FromIntersect25(types, propertyKeys) {
8016
- return types.map((type) => OmitResolve2(type, propertyKeys));
8017
- }
8018
- function FromUnion29(types, propertyKeys) {
8019
- return types.map((type) => OmitResolve2(type, propertyKeys));
8020
- }
8021
- function FromProperty7(properties, key) {
8022
- const { [key]: _, ...R } = properties;
8023
- return R;
8024
- }
8025
- function FromProperties33(properties, propertyKeys) {
8026
- return propertyKeys.reduce((T, K2) => FromProperty7(T, K2), properties);
8027
- }
8028
- function FromObject22(type, propertyKeys, properties) {
8029
- const options = Discard2(type, [TransformKind2, "$id", "required", "properties"]);
8030
- const mappedProperties = FromProperties33(properties, propertyKeys);
8031
- return Object3(mappedProperties, options);
8032
- }
8033
- function UnionFromPropertyKeys3(propertyKeys) {
8034
- const result = propertyKeys.reduce((result2, key) => IsLiteralValue3(key) ? [...result2, Literal2(key)] : result2, []);
8035
- return Union3(result);
8036
- }
8037
- function OmitResolve2(type, propertyKeys) {
8038
- return IsIntersect3(type) ? Intersect3(FromIntersect25(type.allOf, propertyKeys)) : IsUnion3(type) ? Union3(FromUnion29(type.anyOf, propertyKeys)) : IsObject8(type) ? FromObject22(type, propertyKeys, type.properties) : Object3({});
8039
- }
8040
- function Omit2(type, key, options) {
8041
- const typeKey = IsArray5(key) ? UnionFromPropertyKeys3(key) : key;
8042
- const propertyKeys = IsSchema3(key) ? IndexPropertyKeys2(key) : key;
8043
- const isTypeRef = IsRef3(type);
8044
- const isKeyRef = IsRef3(key);
8045
- return IsMappedResult3(type) ? OmitFromMappedResult2(type, propertyKeys, options) : IsMappedKey3(key) ? OmitFromMappedKey2(type, key, options) : isTypeRef && isKeyRef ? Computed2("Omit", [type, typeKey], options) : !isTypeRef && isKeyRef ? Computed2("Omit", [type, typeKey], options) : isTypeRef && !isKeyRef ? Computed2("Omit", [type, typeKey], options) : CreateType2({ ...OmitResolve2(type, propertyKeys), ...options });
8046
- }
8047
-
8048
- // node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-key.mjs
8049
- function FromPropertyKey6(type, key, options) {
8050
- return { [key]: Omit2(type, [key], Clone3(options)) };
8051
- }
8052
- function FromPropertyKeys6(type, propertyKeys, options) {
8053
- return propertyKeys.reduce((Acc, LK) => {
8054
- return { ...Acc, ...FromPropertyKey6(type, LK, options) };
8055
- }, {});
8056
- }
8057
- function FromMappedKey8(type, mappedKey, options) {
8058
- return FromPropertyKeys6(type, mappedKey.keys, options);
8059
- }
8060
- function OmitFromMappedKey2(type, mappedKey, options) {
8061
- const properties = FromMappedKey8(type, mappedKey, options);
8062
- return MappedResult2(properties);
8063
- }
8064
-
8065
- // node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-result.mjs
8066
- function FromProperties34(properties, propertyKeys, options) {
8067
- const result = {};
8068
- for (const K2 of globalThis.Object.getOwnPropertyNames(properties))
8069
- result[K2] = Pick2(properties[K2], propertyKeys, Clone3(options));
8070
- return result;
8071
- }
8072
- function FromMappedResult23(mappedResult, propertyKeys, options) {
8073
- return FromProperties34(mappedResult.properties, propertyKeys, options);
8074
- }
8075
- function PickFromMappedResult2(mappedResult, propertyKeys, options) {
8076
- const properties = FromMappedResult23(mappedResult, propertyKeys, options);
8077
- return MappedResult2(properties);
8078
- }
8079
-
8080
- // node_modules/@sinclair/typebox/build/esm/type/pick/pick.mjs
8081
- function FromIntersect26(types, propertyKeys) {
8082
- return types.map((type) => PickResolve2(type, propertyKeys));
8083
- }
8084
- function FromUnion30(types, propertyKeys) {
8085
- return types.map((type) => PickResolve2(type, propertyKeys));
8086
- }
8087
- function FromProperties35(properties, propertyKeys) {
8088
- const result = {};
8089
- for (const K2 of propertyKeys)
8090
- if (K2 in properties)
8091
- result[K2] = properties[K2];
8092
- return result;
8093
- }
8094
- function FromObject23(Type2, keys, properties) {
8095
- const options = Discard2(Type2, [TransformKind2, "$id", "required", "properties"]);
8096
- const mappedProperties = FromProperties35(properties, keys);
8097
- return Object3(mappedProperties, options);
8098
- }
8099
- function UnionFromPropertyKeys5(propertyKeys) {
8100
- const result = propertyKeys.reduce((result2, key) => IsLiteralValue3(key) ? [...result2, Literal2(key)] : result2, []);
8101
- return Union3(result);
8102
- }
8103
- function PickResolve2(type, propertyKeys) {
8104
- return IsIntersect3(type) ? Intersect3(FromIntersect26(type.allOf, propertyKeys)) : IsUnion3(type) ? Union3(FromUnion30(type.anyOf, propertyKeys)) : IsObject8(type) ? FromObject23(type, propertyKeys, type.properties) : Object3({});
8105
- }
8106
- function Pick2(type, key, options) {
8107
- const typeKey = IsArray5(key) ? UnionFromPropertyKeys5(key) : key;
8108
- const propertyKeys = IsSchema3(key) ? IndexPropertyKeys2(key) : key;
8109
- const isTypeRef = IsRef3(type);
8110
- const isKeyRef = IsRef3(key);
8111
- return IsMappedResult3(type) ? PickFromMappedResult2(type, propertyKeys, options) : IsMappedKey3(key) ? PickFromMappedKey2(type, key, options) : isTypeRef && isKeyRef ? Computed2("Pick", [type, typeKey], options) : !isTypeRef && isKeyRef ? Computed2("Pick", [type, typeKey], options) : isTypeRef && !isKeyRef ? Computed2("Pick", [type, typeKey], options) : CreateType2({ ...PickResolve2(type, propertyKeys), ...options });
8112
- }
8113
-
8114
- // node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-key.mjs
8115
- function FromPropertyKey7(type, key, options) {
8116
- return {
8117
- [key]: Pick2(type, [key], Clone3(options))
8118
- };
8119
- }
8120
- function FromPropertyKeys7(type, propertyKeys, options) {
8121
- return propertyKeys.reduce((result, leftKey) => {
8122
- return { ...result, ...FromPropertyKey7(type, leftKey, options) };
8123
- }, {});
8124
- }
8125
- function FromMappedKey9(type, mappedKey, options) {
8126
- return FromPropertyKeys7(type, mappedKey.keys, options);
8127
- }
8128
- function PickFromMappedKey2(type, mappedKey, options) {
8129
- const properties = FromMappedKey9(type, mappedKey, options);
8130
- return MappedResult2(properties);
8131
- }
8132
-
8133
- // node_modules/@sinclair/typebox/build/esm/type/partial/partial.mjs
8134
- function FromComputed9(target, parameters) {
8135
- return Computed2("Partial", [Computed2(target, parameters)]);
8136
- }
8137
- function FromRef18($ref) {
8138
- return Computed2("Partial", [Ref2($ref)]);
8139
- }
8140
- function FromProperties36(properties) {
8141
- const partialProperties = {};
8142
- for (const K of globalThis.Object.getOwnPropertyNames(properties))
8143
- partialProperties[K] = Optional2(properties[K]);
8144
- return partialProperties;
8145
- }
8146
- function FromObject24(type, properties) {
8147
- const options = Discard2(type, [TransformKind2, "$id", "required", "properties"]);
8148
- const mappedProperties = FromProperties36(properties);
8149
- return Object3(mappedProperties, options);
8150
- }
8151
- function FromRest14(types) {
8152
- return types.map((type) => PartialResolve2(type));
8153
- }
8154
- function PartialResolve2(type) {
8155
- return IsComputed3(type) ? FromComputed9(type.target, type.parameters) : IsRef3(type) ? FromRef18(type.$ref) : IsIntersect3(type) ? Intersect3(FromRest14(type.allOf)) : IsUnion3(type) ? Union3(FromRest14(type.anyOf)) : IsObject8(type) ? FromObject24(type, type.properties) : IsBigInt7(type) ? type : IsBoolean7(type) ? type : IsInteger4(type) ? type : IsLiteral3(type) ? type : IsNull7(type) ? type : IsNumber8(type) ? type : IsString7(type) ? type : IsSymbol7(type) ? type : IsUndefined8(type) ? type : Object3({});
8156
- }
8157
- function Partial2(type, options) {
8158
- if (IsMappedResult3(type)) {
8159
- return PartialFromMappedResult2(type, options);
8160
- } else {
8161
- return CreateType2({ ...PartialResolve2(type), ...options });
8162
- }
8163
- }
8164
-
8165
- // node_modules/@sinclair/typebox/build/esm/type/partial/partial-from-mapped-result.mjs
8166
- function FromProperties37(K, options) {
8167
- const Acc = {};
8168
- for (const K2 of globalThis.Object.getOwnPropertyNames(K))
8169
- Acc[K2] = Partial2(K[K2], Clone3(options));
8170
- return Acc;
8171
- }
8172
- function FromMappedResult24(R, options) {
8173
- return FromProperties37(R.properties, options);
8174
- }
8175
- function PartialFromMappedResult2(R, options) {
8176
- const P = FromMappedResult24(R, options);
8177
- return MappedResult2(P);
8178
- }
8179
-
8180
- // node_modules/@sinclair/typebox/build/esm/type/required/required.mjs
8181
- function FromComputed10(target, parameters) {
8182
- return Computed2("Required", [Computed2(target, parameters)]);
8183
- }
8184
- function FromRef19($ref) {
8185
- return Computed2("Required", [Ref2($ref)]);
8186
- }
8187
- function FromProperties38(properties) {
8188
- const requiredProperties = {};
8189
- for (const K of globalThis.Object.getOwnPropertyNames(properties))
8190
- requiredProperties[K] = Discard2(properties[K], [OptionalKind2]);
8191
- return requiredProperties;
8192
- }
8193
- function FromObject25(type, properties) {
8194
- const options = Discard2(type, [TransformKind2, "$id", "required", "properties"]);
8195
- const mappedProperties = FromProperties38(properties);
8196
- return Object3(mappedProperties, options);
8197
- }
8198
- function FromRest15(types) {
8199
- return types.map((type) => RequiredResolve2(type));
8200
- }
8201
- function RequiredResolve2(type) {
8202
- return IsComputed3(type) ? FromComputed10(type.target, type.parameters) : IsRef3(type) ? FromRef19(type.$ref) : IsIntersect3(type) ? Intersect3(FromRest15(type.allOf)) : IsUnion3(type) ? Union3(FromRest15(type.anyOf)) : IsObject8(type) ? FromObject25(type, type.properties) : IsBigInt7(type) ? type : IsBoolean7(type) ? type : IsInteger4(type) ? type : IsLiteral3(type) ? type : IsNull7(type) ? type : IsNumber8(type) ? type : IsString7(type) ? type : IsSymbol7(type) ? type : IsUndefined8(type) ? type : Object3({});
8203
- }
8204
- function Required2(type, options) {
8205
- if (IsMappedResult3(type)) {
8206
- return RequiredFromMappedResult2(type, options);
8207
- } else {
8208
- return CreateType2({ ...RequiredResolve2(type), ...options });
8209
- }
8210
- }
8211
-
8212
- // node_modules/@sinclair/typebox/build/esm/type/required/required-from-mapped-result.mjs
8213
- function FromProperties39(P, options) {
8214
- const Acc = {};
8215
- for (const K2 of globalThis.Object.getOwnPropertyNames(P))
8216
- Acc[K2] = Required2(P[K2], options);
8217
- return Acc;
8218
- }
8219
- function FromMappedResult25(R, options) {
8220
- return FromProperties39(R.properties, options);
8221
- }
8222
- function RequiredFromMappedResult2(R, options) {
8223
- const P = FromMappedResult25(R, options);
8224
- return MappedResult2(P);
8225
- }
8226
-
8227
- // node_modules/@sinclair/typebox/build/esm/type/module/compute.mjs
8228
- function DereferenceParameters2(moduleProperties, types) {
8229
- return types.map((type) => {
8230
- return IsRef3(type) ? Dereference2(moduleProperties, type.$ref) : FromType5(moduleProperties, type);
8231
- });
8232
- }
8233
- function Dereference2(moduleProperties, ref) {
8234
- return ref in moduleProperties ? IsRef3(moduleProperties[ref]) ? Dereference2(moduleProperties, moduleProperties[ref].$ref) : FromType5(moduleProperties, moduleProperties[ref]) : Never2();
8235
- }
8236
- function FromAwaited2(parameters) {
8237
- return Awaited2(parameters[0]);
8238
- }
8239
- function FromIndex2(parameters) {
8240
- return Index2(parameters[0], parameters[1]);
8241
- }
8242
- function FromKeyOf2(parameters) {
8243
- return KeyOf2(parameters[0]);
8244
- }
8245
- function FromPartial2(parameters) {
8246
- return Partial2(parameters[0]);
8247
- }
8248
- function FromOmit2(parameters) {
8249
- return Omit2(parameters[0], parameters[1]);
8250
- }
8251
- function FromPick2(parameters) {
8252
- return Pick2(parameters[0], parameters[1]);
8253
- }
8254
- function FromRequired2(parameters) {
8255
- return Required2(parameters[0]);
8256
- }
8257
- function FromComputed11(moduleProperties, target, parameters) {
8258
- const dereferenced = DereferenceParameters2(moduleProperties, parameters);
8259
- return target === "Awaited" ? FromAwaited2(dereferenced) : target === "Index" ? FromIndex2(dereferenced) : target === "KeyOf" ? FromKeyOf2(dereferenced) : target === "Partial" ? FromPartial2(dereferenced) : target === "Omit" ? FromOmit2(dereferenced) : target === "Pick" ? FromPick2(dereferenced) : target === "Required" ? FromRequired2(dereferenced) : Never2();
8260
- }
8261
- function FromArray24(moduleProperties, type) {
8262
- return Array3(FromType5(moduleProperties, type));
8263
- }
8264
- function FromAsyncIterator11(moduleProperties, type) {
8265
- return AsyncIterator2(FromType5(moduleProperties, type));
8266
- }
8267
- function FromConstructor12(moduleProperties, parameters, instanceType) {
8268
- return Constructor2(FromTypes5(moduleProperties, parameters), FromType5(moduleProperties, instanceType));
8269
- }
8270
- function FromFunction11(moduleProperties, parameters, returnType) {
8271
- return Function2(FromTypes5(moduleProperties, parameters), FromType5(moduleProperties, returnType));
8272
- }
8273
- function FromIntersect27(moduleProperties, types) {
8274
- return Intersect3(FromTypes5(moduleProperties, types));
8275
- }
8276
- function FromIterator11(moduleProperties, type) {
8277
- return Iterator2(FromType5(moduleProperties, type));
8278
- }
8279
- function FromObject26(moduleProperties, properties) {
8280
- return Object3(globalThis.Object.keys(properties).reduce((result, key) => {
8281
- return { ...result, [key]: FromType5(moduleProperties, properties[key]) };
8282
- }, {}));
8283
- }
8284
- function FromRecord17(moduleProperties, type) {
8285
- const [value, pattern] = [FromType5(moduleProperties, RecordValue5(type)), RecordPattern2(type)];
8286
- const result = CloneType2(type);
8287
- result.patternProperties[pattern] = value;
8288
- return result;
8289
- }
8290
- function FromTransform2(moduleProperties, transform) {
8291
- return IsRef3(transform) ? { ...Dereference2(moduleProperties, transform.$ref), [TransformKind2]: transform[TransformKind2] } : transform;
8292
- }
8293
- function FromTuple21(moduleProperties, types) {
8294
- return Tuple2(FromTypes5(moduleProperties, types));
8295
- }
8296
- function FromUnion31(moduleProperties, types) {
8297
- return Union3(FromTypes5(moduleProperties, types));
8298
- }
8299
- function FromTypes5(moduleProperties, types) {
8300
- return types.map((type) => FromType5(moduleProperties, type));
8301
- }
8302
- function FromType5(moduleProperties, type) {
8303
- return IsOptional3(type) ? CreateType2(FromType5(moduleProperties, Discard2(type, [OptionalKind2])), type) : IsReadonly3(type) ? CreateType2(FromType5(moduleProperties, Discard2(type, [ReadonlyKind2])), type) : IsTransform3(type) ? CreateType2(FromTransform2(moduleProperties, type), type) : IsArray8(type) ? CreateType2(FromArray24(moduleProperties, type.items), type) : IsAsyncIterator7(type) ? CreateType2(FromAsyncIterator11(moduleProperties, type.items), type) : IsComputed3(type) ? CreateType2(FromComputed11(moduleProperties, type.target, type.parameters)) : IsConstructor3(type) ? CreateType2(FromConstructor12(moduleProperties, type.parameters, type.returns), type) : IsFunction7(type) ? CreateType2(FromFunction11(moduleProperties, type.parameters, type.returns), type) : IsIntersect3(type) ? CreateType2(FromIntersect27(moduleProperties, type.allOf), type) : IsIterator7(type) ? CreateType2(FromIterator11(moduleProperties, type.items), type) : IsObject8(type) ? CreateType2(FromObject26(moduleProperties, type.properties), type) : IsRecord3(type) ? CreateType2(FromRecord17(moduleProperties, type)) : IsTuple3(type) ? CreateType2(FromTuple21(moduleProperties, type.items || []), type) : IsUnion3(type) ? CreateType2(FromUnion31(moduleProperties, type.anyOf), type) : type;
8304
- }
8305
- function ComputeType2(moduleProperties, key) {
8306
- return key in moduleProperties ? FromType5(moduleProperties, moduleProperties[key]) : Never2();
8307
- }
8308
- function ComputeModuleProperties2(moduleProperties) {
8309
- return globalThis.Object.getOwnPropertyNames(moduleProperties).reduce((result, key) => {
8310
- return { ...result, [key]: ComputeType2(moduleProperties, key) };
8311
- }, {});
8312
- }
8313
-
8314
- // node_modules/@sinclair/typebox/build/esm/type/module/module.mjs
8315
- class TModule2 {
8316
- constructor($defs) {
8317
- const computed = ComputeModuleProperties2($defs);
8318
- const identified = this.WithIdentifiers(computed);
8319
- this.$defs = identified;
8320
- }
8321
- Import(key, options) {
8322
- const $defs = { ...this.$defs, [key]: CreateType2(this.$defs[key], options) };
8323
- return CreateType2({ [Kind2]: "Import", $defs, $ref: key });
8324
- }
8325
- WithIdentifiers($defs) {
8326
- return globalThis.Object.getOwnPropertyNames($defs).reduce((result, key) => {
8327
- return { ...result, [key]: { ...$defs[key], $id: key } };
8328
- }, {});
8329
- }
8330
- }
8331
- function Module2(properties) {
8332
- return new TModule2(properties);
8333
- }
8334
-
8335
- // node_modules/@sinclair/typebox/build/esm/type/not/not.mjs
8336
- function Not3(type, options) {
8337
- return CreateType2({ [Kind2]: "Not", not: type }, options);
8338
- }
8339
-
8340
- // node_modules/@sinclair/typebox/build/esm/type/parameters/parameters.mjs
8341
- function Parameters2(schema, options) {
8342
- return IsFunction7(schema) ? Tuple2(schema.parameters, options) : Never2();
8343
- }
8344
-
8345
- // node_modules/@sinclair/typebox/build/esm/type/recursive/recursive.mjs
8346
- var Ordinal2 = 0;
8347
- function Recursive2(callback, options = {}) {
8348
- if (IsUndefined5(options.$id))
8349
- options.$id = `T${Ordinal2++}`;
8350
- const thisType = CloneType2(callback({ [Kind2]: "This", $ref: `${options.$id}` }));
8351
- thisType.$id = options.$id;
8352
- return CreateType2({ [Hint2]: "Recursive", ...thisType }, options);
8353
- }
8354
-
8355
- // node_modules/@sinclair/typebox/build/esm/type/regexp/regexp.mjs
8356
- function RegExp3(unresolved, options) {
8357
- const expr = IsString5(unresolved) ? new globalThis.RegExp(unresolved) : unresolved;
8358
- return CreateType2({ [Kind2]: "RegExp", type: "RegExp", source: expr.source, flags: expr.flags }, options);
8359
- }
8360
-
8361
- // node_modules/@sinclair/typebox/build/esm/type/rest/rest.mjs
8362
- function RestResolve2(T) {
8363
- return IsIntersect3(T) ? T.allOf : IsUnion3(T) ? T.anyOf : IsTuple3(T) ? T.items ?? [] : [];
8364
- }
8365
- function Rest2(T) {
8366
- return RestResolve2(T);
8367
- }
8368
-
8369
- // node_modules/@sinclair/typebox/build/esm/type/return-type/return-type.mjs
8370
- function ReturnType2(schema, options) {
8371
- return IsFunction7(schema) ? CreateType2(schema.returns, options) : Never2(options);
8372
- }
8373
-
8374
- // node_modules/@sinclair/typebox/build/esm/type/transform/transform.mjs
8375
- class TransformDecodeBuilder2 {
8376
- constructor(schema) {
8377
- this.schema = schema;
8378
- }
8379
- Decode(decode) {
8380
- return new TransformEncodeBuilder2(this.schema, decode);
8381
- }
8382
- }
8383
-
8384
- class TransformEncodeBuilder2 {
8385
- constructor(schema, decode) {
8386
- this.schema = schema;
8387
- this.decode = decode;
8388
- }
8389
- EncodeTransform(encode, schema) {
8390
- const Encode2 = (value) => schema[TransformKind2].Encode(encode(value));
8391
- const Decode2 = (value) => this.decode(schema[TransformKind2].Decode(value));
8392
- const Codec = { Encode: Encode2, Decode: Decode2 };
8393
- return { ...schema, [TransformKind2]: Codec };
8394
- }
8395
- EncodeSchema(encode, schema) {
8396
- const Codec = { Decode: this.decode, Encode: encode };
8397
- return { ...schema, [TransformKind2]: Codec };
8398
- }
8399
- Encode(encode) {
8400
- return IsTransform3(this.schema) ? this.EncodeTransform(encode, this.schema) : this.EncodeSchema(encode, this.schema);
8401
- }
8402
- }
8403
- function Transform2(schema) {
8404
- return new TransformDecodeBuilder2(schema);
8405
- }
8406
-
8407
- // node_modules/@sinclair/typebox/build/esm/type/unsafe/unsafe.mjs
8408
- function Unsafe2(options = {}) {
8409
- return CreateType2({ [Kind2]: options[Kind2] ?? "Unsafe" }, options);
8410
- }
8411
-
8412
- // node_modules/@sinclair/typebox/build/esm/type/void/void.mjs
8413
- function Void2(options) {
8414
- return CreateType2({ [Kind2]: "Void", type: "void" }, options);
8415
- }
8416
-
8417
- // node_modules/@sinclair/typebox/build/esm/type/type/type.mjs
8418
- var exports_type6 = {};
8419
- __export(exports_type6, {
8420
- Void: () => Void2,
8421
- Uppercase: () => Uppercase2,
8422
- Unsafe: () => Unsafe2,
8423
- Unknown: () => Unknown2,
8424
- Union: () => Union3,
8425
- Undefined: () => Undefined2,
8426
- Uncapitalize: () => Uncapitalize2,
8427
- Uint8Array: () => Uint8Array3,
8428
- Tuple: () => Tuple2,
8429
- Transform: () => Transform2,
8430
- TemplateLiteral: () => TemplateLiteral2,
8431
- Symbol: () => Symbol3,
8432
- String: () => String3,
8433
- ReturnType: () => ReturnType2,
8434
- Rest: () => Rest2,
8435
- Required: () => Required2,
8436
- RegExp: () => RegExp3,
8437
- Ref: () => Ref2,
8438
- Recursive: () => Recursive2,
8439
- Record: () => Record2,
8440
- ReadonlyOptional: () => ReadonlyOptional2,
8441
- Readonly: () => Readonly2,
8442
- Promise: () => Promise3,
8443
- Pick: () => Pick2,
8444
- Partial: () => Partial2,
8445
- Parameters: () => Parameters2,
8446
- Optional: () => Optional2,
8447
- Omit: () => Omit2,
8448
- Object: () => Object3,
8449
- Number: () => Number3,
8450
- Null: () => Null2,
8451
- Not: () => Not3,
8452
- Never: () => Never2,
8453
- Module: () => Module2,
8454
- Mapped: () => Mapped2,
8455
- Lowercase: () => Lowercase2,
8456
- Literal: () => Literal2,
8457
- KeyOf: () => KeyOf2,
8458
- Iterator: () => Iterator2,
8459
- Intersect: () => Intersect3,
8460
- Integer: () => Integer2,
8461
- Instantiate: () => Instantiate2,
8462
- InstanceType: () => InstanceType2,
8463
- Index: () => Index2,
8464
- Function: () => Function2,
8465
- Extract: () => Extract2,
8466
- Extends: () => Extends2,
8467
- Exclude: () => Exclude2,
8468
- Enum: () => Enum2,
8469
- Date: () => Date3,
8470
- ConstructorParameters: () => ConstructorParameters2,
8471
- Constructor: () => Constructor2,
8472
- Const: () => Const2,
8473
- Composite: () => Composite2,
8474
- Capitalize: () => Capitalize2,
8475
- Boolean: () => Boolean2,
8476
- BigInt: () => BigInt3,
8477
- Awaited: () => Awaited2,
8478
- AsyncIterator: () => AsyncIterator2,
8479
- Array: () => Array3,
8480
- Argument: () => Argument2,
8481
- Any: () => Any2
8482
- });
8483
-
8484
- // node_modules/@sinclair/typebox/build/esm/type/type/index.mjs
8485
- var Type2 = exports_type6;
8486
-
8487
5936
  // src/manifest.ts
5937
+ import { Type as Type2 } from "@sinclair/typebox";
8488
5938
  var tool = toolFactory();
8489
5939
  var RECENT_CHANGES_LIMIT = 20;
8490
5940
  var manifest = defineManifest()({
@@ -8505,9 +5955,7 @@ var manifest = defineManifest()({
8505
5955
  title: "Built-in collaborative text (zero dependencies)",
8506
5956
  wiring: {
8507
5957
  code: "rgaText",
8508
- imports: [
8509
- { from: "@absolutejs/sync/crdt", names: ["rgaText"] }
8510
- ]
5958
+ imports: [{ from: "@absolutejs/sync/crdt", names: ["rgaText"] }]
8511
5959
  }
8512
5960
  }),
8513
5961
  defineImplementation()({
@@ -8880,5 +6328,5 @@ export {
8880
6328
  manifest
8881
6329
  };
8882
6330
 
8883
- //# debugId=E177927368B843B064756E2164756E21
6331
+ //# debugId=B81259F723D92DC264756E2164756E21
8884
6332
  //# sourceMappingURL=manifest.js.map