@inline-openclaw/inline 0.0.31 → 0.0.32

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/index.js CHANGED
@@ -5560,13 +5560,6 @@ var import_runtime = __toESM(require_commonjs(), 1);
5560
5560
  var import_runtime2 = __toESM(require_commonjs(), 1);
5561
5561
  var import_runtime3 = __toESM(require_commonjs(), 1);
5562
5562
  var import_runtime4 = __toESM(require_commonjs(), 1);
5563
- var ConnectionError_Reason;
5564
- (function(ConnectionError_Reason2) {
5565
- ConnectionError_Reason2[ConnectionError_Reason2["REASON_UNSPECIFIED"] = 0] = "REASON_UNSPECIFIED";
5566
- ConnectionError_Reason2[ConnectionError_Reason2["UNAUTHORIZED"] = 1] = "UNAUTHORIZED";
5567
- ConnectionError_Reason2[ConnectionError_Reason2["INVALID_AUTH"] = 2] = "INVALID_AUTH";
5568
- ConnectionError_Reason2[ConnectionError_Reason2["SESSION_REVOKED"] = 3] = "SESSION_REVOKED";
5569
- })(ConnectionError_Reason || (ConnectionError_Reason = {}));
5570
5563
  var MessageEntity_Type;
5571
5564
  (function(MessageEntity_Type2) {
5572
5565
  MessageEntity_Type2[MessageEntity_Type2["UNSPECIFIED"] = 0] = "UNSPECIFIED";
@@ -5726,7 +5719,6 @@ var Method;
5726
5719
  Method2[Method2["RESERVE_CHAT_IDS"] = 47] = "RESERVE_CHAT_IDS";
5727
5720
  Method2[Method2["INVOKE_MESSAGE_ACTION"] = 48] = "INVOKE_MESSAGE_ACTION";
5728
5721
  Method2[Method2["ANSWER_MESSAGE_ACTION"] = 49] = "ANSWER_MESSAGE_ACTION";
5729
- Method2[Method2["REVOKE_SESSION"] = 50] = "REVOKE_SESSION";
5730
5722
  })(Method || (Method = {}));
5731
5723
  var PushNotificationProvider;
5732
5724
  (function(PushNotificationProvider2) {
@@ -6169,39 +6161,18 @@ var ConnectionOpen = new ConnectionOpen$Type;
6169
6161
 
6170
6162
  class ConnectionError$Type extends import_runtime4.MessageType {
6171
6163
  constructor() {
6172
- super("ConnectionError", [
6173
- { no: 1, name: "reason", kind: "enum", T: () => ["ConnectionError.Reason", ConnectionError_Reason] }
6174
- ]);
6164
+ super("ConnectionError", []);
6175
6165
  }
6176
6166
  create(value) {
6177
6167
  const message = globalThis.Object.create(this.messagePrototype);
6178
- message.reason = 0;
6179
6168
  if (value !== undefined)
6180
6169
  import_runtime3.reflectionMergePartial(this, message, value);
6181
6170
  return message;
6182
6171
  }
6183
6172
  internalBinaryRead(reader, length, options, target) {
6184
- let message = target ?? this.create(), end = reader.pos + length;
6185
- while (reader.pos < end) {
6186
- let [fieldNo, wireType] = reader.tag();
6187
- switch (fieldNo) {
6188
- case 1:
6189
- message.reason = reader.int32();
6190
- break;
6191
- default:
6192
- let u = options.readUnknownField;
6193
- if (u === "throw")
6194
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
6195
- let d = reader.skip(wireType);
6196
- if (u !== false)
6197
- (u === true ? import_runtime2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
6198
- }
6199
- }
6200
- return message;
6173
+ return target ?? this.create();
6201
6174
  }
6202
6175
  internalBinaryWrite(message, writer, options) {
6203
- if (message.reason !== 0)
6204
- writer.tag(1, import_runtime.WireType.Varint).int32(message.reason);
6205
6176
  let u = options.writeUnknownFields;
6206
6177
  if (u !== false)
6207
6178
  (u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -9399,8 +9370,7 @@ class RpcCall$Type extends import_runtime4.MessageType {
9399
9370
  { no: 47, name: "showChatInSidebar", kind: "message", oneof: "input", T: () => ShowChatInSidebarInput },
9400
9371
  { no: 48, name: "reserveChatIds", kind: "message", oneof: "input", T: () => ReserveChatIdsInput },
9401
9372
  { no: 49, name: "invokeMessageAction", kind: "message", oneof: "input", T: () => InvokeMessageActionInput },
9402
- { no: 50, name: "answerMessageAction", kind: "message", oneof: "input", T: () => AnswerMessageActionInput },
9403
- { no: 51, name: "revokeSession", kind: "message", oneof: "input", T: () => RevokeSessionInput }
9373
+ { no: 50, name: "answerMessageAction", kind: "message", oneof: "input", T: () => AnswerMessageActionInput }
9404
9374
  ]);
9405
9375
  }
9406
9376
  create(value) {
@@ -9713,12 +9683,6 @@ class RpcCall$Type extends import_runtime4.MessageType {
9713
9683
  answerMessageAction: AnswerMessageActionInput.internalBinaryRead(reader, reader.uint32(), options, message.input.answerMessageAction)
9714
9684
  };
9715
9685
  break;
9716
- case 51:
9717
- message.input = {
9718
- oneofKind: "revokeSession",
9719
- revokeSession: RevokeSessionInput.internalBinaryRead(reader, reader.uint32(), options, message.input.revokeSession)
9720
- };
9721
- break;
9722
9686
  default:
9723
9687
  let u = options.readUnknownField;
9724
9688
  if (u === "throw")
@@ -9831,8 +9795,6 @@ class RpcCall$Type extends import_runtime4.MessageType {
9831
9795
  InvokeMessageActionInput.internalBinaryWrite(message.input.invokeMessageAction, writer.tag(49, import_runtime.WireType.LengthDelimited).fork(), options).join();
9832
9796
  if (message.input.oneofKind === "answerMessageAction")
9833
9797
  AnswerMessageActionInput.internalBinaryWrite(message.input.answerMessageAction, writer.tag(50, import_runtime.WireType.LengthDelimited).fork(), options).join();
9834
- if (message.input.oneofKind === "revokeSession")
9835
- RevokeSessionInput.internalBinaryWrite(message.input.revokeSession, writer.tag(51, import_runtime.WireType.LengthDelimited).fork(), options).join();
9836
9798
  let u = options.writeUnknownFields;
9837
9799
  if (u !== false)
9838
9800
  (u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -9893,8 +9855,7 @@ class RpcResult$Type extends import_runtime4.MessageType {
9893
9855
  { no: 47, name: "showChatInSidebar", kind: "message", oneof: "result", T: () => ShowChatInSidebarResult },
9894
9856
  { no: 48, name: "reserveChatIds", kind: "message", oneof: "result", T: () => ReserveChatIdsResult },
9895
9857
  { no: 49, name: "invokeMessageAction", kind: "message", oneof: "result", T: () => InvokeMessageActionResult },
9896
- { no: 50, name: "answerMessageAction", kind: "message", oneof: "result", T: () => AnswerMessageActionResult },
9897
- { no: 51, name: "revokeSession", kind: "message", oneof: "result", T: () => RevokeSessionResult }
9858
+ { no: 50, name: "answerMessageAction", kind: "message", oneof: "result", T: () => AnswerMessageActionResult }
9898
9859
  ]);
9899
9860
  }
9900
9861
  create(value) {
@@ -10207,12 +10168,6 @@ class RpcResult$Type extends import_runtime4.MessageType {
10207
10168
  answerMessageAction: AnswerMessageActionResult.internalBinaryRead(reader, reader.uint32(), options, message.result.answerMessageAction)
10208
10169
  };
10209
10170
  break;
10210
- case 51:
10211
- message.result = {
10212
- oneofKind: "revokeSession",
10213
- revokeSession: RevokeSessionResult.internalBinaryRead(reader, reader.uint32(), options, message.result.revokeSession)
10214
- };
10215
- break;
10216
10171
  default:
10217
10172
  let u = options.readUnknownField;
10218
10173
  if (u === "throw")
@@ -10325,8 +10280,6 @@ class RpcResult$Type extends import_runtime4.MessageType {
10325
10280
  InvokeMessageActionResult.internalBinaryWrite(message.result.invokeMessageAction, writer.tag(49, import_runtime.WireType.LengthDelimited).fork(), options).join();
10326
10281
  if (message.result.oneofKind === "answerMessageAction")
10327
10282
  AnswerMessageActionResult.internalBinaryWrite(message.result.answerMessageAction, writer.tag(50, import_runtime.WireType.LengthDelimited).fork(), options).join();
10328
- if (message.result.oneofKind === "revokeSession")
10329
- RevokeSessionResult.internalBinaryWrite(message.result.revokeSession, writer.tag(51, import_runtime.WireType.LengthDelimited).fork(), options).join();
10330
10283
  let u = options.writeUnknownFields;
10331
10284
  if (u !== false)
10332
10285
  (u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -11464,15 +11417,18 @@ class ListBotsResult$Type extends import_runtime4.MessageType {
11464
11417
  }
11465
11418
  var ListBotsResult = new ListBotsResult$Type;
11466
11419
 
11467
- class RevokeSessionInput$Type extends import_runtime4.MessageType {
11420
+ class BotCommand$Type extends import_runtime4.MessageType {
11468
11421
  constructor() {
11469
- super("RevokeSessionInput", [
11470
- { no: 1, name: "session_id", kind: "scalar", T: 3, L: 0 }
11422
+ super("BotCommand", [
11423
+ { no: 1, name: "command", kind: "scalar", T: 9 },
11424
+ { no: 2, name: "description", kind: "scalar", T: 9 },
11425
+ { no: 3, name: "sort_order", kind: "scalar", opt: true, T: 5 }
11471
11426
  ]);
11472
11427
  }
11473
11428
  create(value) {
11474
11429
  const message = globalThis.Object.create(this.messagePrototype);
11475
- message.sessionId = 0n;
11430
+ message.command = "";
11431
+ message.description = "";
11476
11432
  if (value !== undefined)
11477
11433
  import_runtime3.reflectionMergePartial(this, message, value);
11478
11434
  return message;
@@ -11483,7 +11439,13 @@ class RevokeSessionInput$Type extends import_runtime4.MessageType {
11483
11439
  let [fieldNo, wireType] = reader.tag();
11484
11440
  switch (fieldNo) {
11485
11441
  case 1:
11486
- message.sessionId = reader.int64().toBigInt();
11442
+ message.command = reader.string();
11443
+ break;
11444
+ case 2:
11445
+ message.description = reader.string();
11446
+ break;
11447
+ case 3:
11448
+ message.sortOrder = reader.int32();
11487
11449
  break;
11488
11450
  default:
11489
11451
  let u = options.readUnknownField;
@@ -11497,27 +11459,30 @@ class RevokeSessionInput$Type extends import_runtime4.MessageType {
11497
11459
  return message;
11498
11460
  }
11499
11461
  internalBinaryWrite(message, writer, options) {
11500
- if (message.sessionId !== 0n)
11501
- writer.tag(1, import_runtime.WireType.Varint).int64(message.sessionId);
11462
+ if (message.command !== "")
11463
+ writer.tag(1, import_runtime.WireType.LengthDelimited).string(message.command);
11464
+ if (message.description !== "")
11465
+ writer.tag(2, import_runtime.WireType.LengthDelimited).string(message.description);
11466
+ if (message.sortOrder !== undefined)
11467
+ writer.tag(3, import_runtime.WireType.Varint).int32(message.sortOrder);
11502
11468
  let u = options.writeUnknownFields;
11503
11469
  if (u !== false)
11504
11470
  (u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
11505
11471
  return writer;
11506
11472
  }
11507
11473
  }
11508
- var RevokeSessionInput = new RevokeSessionInput$Type;
11474
+ var BotCommand = new BotCommand$Type;
11509
11475
 
11510
- class RevokeSessionResult$Type extends import_runtime4.MessageType {
11476
+ class PeerBotCommands$Type extends import_runtime4.MessageType {
11511
11477
  constructor() {
11512
- super("RevokeSessionResult", [
11513
- { no: 1, name: "revoked", kind: "scalar", T: 8 },
11514
- { no: 2, name: "already_revoked", kind: "scalar", T: 8 }
11478
+ super("PeerBotCommands", [
11479
+ { no: 1, name: "bot", kind: "message", T: () => User },
11480
+ { no: 2, name: "commands", kind: "message", repeat: 1, T: () => BotCommand }
11515
11481
  ]);
11516
11482
  }
11517
11483
  create(value) {
11518
11484
  const message = globalThis.Object.create(this.messagePrototype);
11519
- message.revoked = false;
11520
- message.alreadyRevoked = false;
11485
+ message.commands = [];
11521
11486
  if (value !== undefined)
11522
11487
  import_runtime3.reflectionMergePartial(this, message, value);
11523
11488
  return message;
@@ -11528,10 +11493,10 @@ class RevokeSessionResult$Type extends import_runtime4.MessageType {
11528
11493
  let [fieldNo, wireType] = reader.tag();
11529
11494
  switch (fieldNo) {
11530
11495
  case 1:
11531
- message.revoked = reader.bool();
11496
+ message.bot = User.internalBinaryRead(reader, reader.uint32(), options, message.bot);
11532
11497
  break;
11533
11498
  case 2:
11534
- message.alreadyRevoked = reader.bool();
11499
+ message.commands.push(BotCommand.internalBinaryRead(reader, reader.uint32(), options));
11535
11500
  break;
11536
11501
  default:
11537
11502
  let u = options.readUnknownField;
@@ -11545,30 +11510,27 @@ class RevokeSessionResult$Type extends import_runtime4.MessageType {
11545
11510
  return message;
11546
11511
  }
11547
11512
  internalBinaryWrite(message, writer, options) {
11548
- if (message.revoked !== false)
11549
- writer.tag(1, import_runtime.WireType.Varint).bool(message.revoked);
11550
- if (message.alreadyRevoked !== false)
11551
- writer.tag(2, import_runtime.WireType.Varint).bool(message.alreadyRevoked);
11513
+ if (message.bot)
11514
+ User.internalBinaryWrite(message.bot, writer.tag(1, import_runtime.WireType.LengthDelimited).fork(), options).join();
11515
+ for (let i = 0;i < message.commands.length; i++)
11516
+ BotCommand.internalBinaryWrite(message.commands[i], writer.tag(2, import_runtime.WireType.LengthDelimited).fork(), options).join();
11552
11517
  let u = options.writeUnknownFields;
11553
11518
  if (u !== false)
11554
11519
  (u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
11555
11520
  return writer;
11556
11521
  }
11557
11522
  }
11558
- var RevokeSessionResult = new RevokeSessionResult$Type;
11523
+ var PeerBotCommands = new PeerBotCommands$Type;
11559
11524
 
11560
- class BotCommand$Type extends import_runtime4.MessageType {
11525
+ class GetBotCommandsInput$Type extends import_runtime4.MessageType {
11561
11526
  constructor() {
11562
- super("BotCommand", [
11563
- { no: 1, name: "command", kind: "scalar", T: 9 },
11564
- { no: 2, name: "description", kind: "scalar", T: 9 },
11565
- { no: 3, name: "sort_order", kind: "scalar", opt: true, T: 5 }
11527
+ super("GetBotCommandsInput", [
11528
+ { no: 1, name: "bot_user_id", kind: "scalar", T: 3, L: 0 }
11566
11529
  ]);
11567
11530
  }
11568
11531
  create(value) {
11569
11532
  const message = globalThis.Object.create(this.messagePrototype);
11570
- message.command = "";
11571
- message.description = "";
11533
+ message.botUserId = 0n;
11572
11534
  if (value !== undefined)
11573
11535
  import_runtime3.reflectionMergePartial(this, message, value);
11574
11536
  return message;
@@ -11579,13 +11541,50 @@ class BotCommand$Type extends import_runtime4.MessageType {
11579
11541
  let [fieldNo, wireType] = reader.tag();
11580
11542
  switch (fieldNo) {
11581
11543
  case 1:
11582
- message.command = reader.string();
11583
- break;
11584
- case 2:
11585
- message.description = reader.string();
11544
+ message.botUserId = reader.int64().toBigInt();
11586
11545
  break;
11587
- case 3:
11588
- message.sortOrder = reader.int32();
11546
+ default:
11547
+ let u = options.readUnknownField;
11548
+ if (u === "throw")
11549
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
11550
+ let d = reader.skip(wireType);
11551
+ if (u !== false)
11552
+ (u === true ? import_runtime2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
11553
+ }
11554
+ }
11555
+ return message;
11556
+ }
11557
+ internalBinaryWrite(message, writer, options) {
11558
+ if (message.botUserId !== 0n)
11559
+ writer.tag(1, import_runtime.WireType.Varint).int64(message.botUserId);
11560
+ let u = options.writeUnknownFields;
11561
+ if (u !== false)
11562
+ (u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
11563
+ return writer;
11564
+ }
11565
+ }
11566
+ var GetBotCommandsInput = new GetBotCommandsInput$Type;
11567
+
11568
+ class GetBotCommandsResult$Type extends import_runtime4.MessageType {
11569
+ constructor() {
11570
+ super("GetBotCommandsResult", [
11571
+ { no: 1, name: "commands", kind: "message", repeat: 1, T: () => BotCommand }
11572
+ ]);
11573
+ }
11574
+ create(value) {
11575
+ const message = globalThis.Object.create(this.messagePrototype);
11576
+ message.commands = [];
11577
+ if (value !== undefined)
11578
+ import_runtime3.reflectionMergePartial(this, message, value);
11579
+ return message;
11580
+ }
11581
+ internalBinaryRead(reader, length, options, target) {
11582
+ let message = target ?? this.create(), end = reader.pos + length;
11583
+ while (reader.pos < end) {
11584
+ let [fieldNo, wireType] = reader.tag();
11585
+ switch (fieldNo) {
11586
+ case 1:
11587
+ message.commands.push(BotCommand.internalBinaryRead(reader, reader.uint32(), options));
11589
11588
  break;
11590
11589
  default:
11591
11590
  let u = options.readUnknownField;
@@ -11599,29 +11598,26 @@ class BotCommand$Type extends import_runtime4.MessageType {
11599
11598
  return message;
11600
11599
  }
11601
11600
  internalBinaryWrite(message, writer, options) {
11602
- if (message.command !== "")
11603
- writer.tag(1, import_runtime.WireType.LengthDelimited).string(message.command);
11604
- if (message.description !== "")
11605
- writer.tag(2, import_runtime.WireType.LengthDelimited).string(message.description);
11606
- if (message.sortOrder !== undefined)
11607
- writer.tag(3, import_runtime.WireType.Varint).int32(message.sortOrder);
11601
+ for (let i = 0;i < message.commands.length; i++)
11602
+ BotCommand.internalBinaryWrite(message.commands[i], writer.tag(1, import_runtime.WireType.LengthDelimited).fork(), options).join();
11608
11603
  let u = options.writeUnknownFields;
11609
11604
  if (u !== false)
11610
11605
  (u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
11611
11606
  return writer;
11612
11607
  }
11613
11608
  }
11614
- var BotCommand = new BotCommand$Type;
11609
+ var GetBotCommandsResult = new GetBotCommandsResult$Type;
11615
11610
 
11616
- class PeerBotCommands$Type extends import_runtime4.MessageType {
11611
+ class SetBotCommandsInput$Type extends import_runtime4.MessageType {
11617
11612
  constructor() {
11618
- super("PeerBotCommands", [
11619
- { no: 1, name: "bot", kind: "message", T: () => User },
11613
+ super("SetBotCommandsInput", [
11614
+ { no: 1, name: "bot_user_id", kind: "scalar", T: 3, L: 0 },
11620
11615
  { no: 2, name: "commands", kind: "message", repeat: 1, T: () => BotCommand }
11621
11616
  ]);
11622
11617
  }
11623
11618
  create(value) {
11624
11619
  const message = globalThis.Object.create(this.messagePrototype);
11620
+ message.botUserId = 0n;
11625
11621
  message.commands = [];
11626
11622
  if (value !== undefined)
11627
11623
  import_runtime3.reflectionMergePartial(this, message, value);
@@ -11633,7 +11629,7 @@ class PeerBotCommands$Type extends import_runtime4.MessageType {
11633
11629
  let [fieldNo, wireType] = reader.tag();
11634
11630
  switch (fieldNo) {
11635
11631
  case 1:
11636
- message.bot = User.internalBinaryRead(reader, reader.uint32(), options, message.bot);
11632
+ message.botUserId = reader.int64().toBigInt();
11637
11633
  break;
11638
11634
  case 2:
11639
11635
  message.commands.push(BotCommand.internalBinaryRead(reader, reader.uint32(), options));
@@ -11650,8 +11646,8 @@ class PeerBotCommands$Type extends import_runtime4.MessageType {
11650
11646
  return message;
11651
11647
  }
11652
11648
  internalBinaryWrite(message, writer, options) {
11653
- if (message.bot)
11654
- User.internalBinaryWrite(message.bot, writer.tag(1, import_runtime.WireType.LengthDelimited).fork(), options).join();
11649
+ if (message.botUserId !== 0n)
11650
+ writer.tag(1, import_runtime.WireType.Varint).int64(message.botUserId);
11655
11651
  for (let i = 0;i < message.commands.length; i++)
11656
11652
  BotCommand.internalBinaryWrite(message.commands[i], writer.tag(2, import_runtime.WireType.LengthDelimited).fork(), options).join();
11657
11653
  let u = options.writeUnknownFields;
@@ -11660,275 +11656,139 @@ class PeerBotCommands$Type extends import_runtime4.MessageType {
11660
11656
  return writer;
11661
11657
  }
11662
11658
  }
11663
- var PeerBotCommands = new PeerBotCommands$Type;
11659
+ var SetBotCommandsInput = new SetBotCommandsInput$Type;
11664
11660
 
11665
- class GetBotCommandsInput$Type extends import_runtime4.MessageType {
11661
+ class SetBotCommandsResult$Type extends import_runtime4.MessageType {
11666
11662
  constructor() {
11667
- super("GetBotCommandsInput", [
11668
- { no: 1, name: "bot_user_id", kind: "scalar", T: 3, L: 0 }
11669
- ]);
11670
- }
11671
- create(value) {
11672
- const message = globalThis.Object.create(this.messagePrototype);
11673
- message.botUserId = 0n;
11674
- if (value !== undefined)
11675
- import_runtime3.reflectionMergePartial(this, message, value);
11676
- return message;
11677
- }
11678
- internalBinaryRead(reader, length, options, target) {
11679
- let message = target ?? this.create(), end = reader.pos + length;
11680
- while (reader.pos < end) {
11681
- let [fieldNo, wireType] = reader.tag();
11682
- switch (fieldNo) {
11683
- case 1:
11684
- message.botUserId = reader.int64().toBigInt();
11685
- break;
11686
- default:
11687
- let u = options.readUnknownField;
11688
- if (u === "throw")
11689
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
11690
- let d = reader.skip(wireType);
11691
- if (u !== false)
11692
- (u === true ? import_runtime2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
11693
- }
11694
- }
11695
- return message;
11696
- }
11697
- internalBinaryWrite(message, writer, options) {
11698
- if (message.botUserId !== 0n)
11699
- writer.tag(1, import_runtime.WireType.Varint).int64(message.botUserId);
11700
- let u = options.writeUnknownFields;
11701
- if (u !== false)
11702
- (u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
11703
- return writer;
11704
- }
11705
- }
11706
- var GetBotCommandsInput = new GetBotCommandsInput$Type;
11707
-
11708
- class GetBotCommandsResult$Type extends import_runtime4.MessageType {
11709
- constructor() {
11710
- super("GetBotCommandsResult", [
11711
- { no: 1, name: "commands", kind: "message", repeat: 1, T: () => BotCommand }
11712
- ]);
11713
- }
11714
- create(value) {
11715
- const message = globalThis.Object.create(this.messagePrototype);
11716
- message.commands = [];
11717
- if (value !== undefined)
11718
- import_runtime3.reflectionMergePartial(this, message, value);
11719
- return message;
11720
- }
11721
- internalBinaryRead(reader, length, options, target) {
11722
- let message = target ?? this.create(), end = reader.pos + length;
11723
- while (reader.pos < end) {
11724
- let [fieldNo, wireType] = reader.tag();
11725
- switch (fieldNo) {
11726
- case 1:
11727
- message.commands.push(BotCommand.internalBinaryRead(reader, reader.uint32(), options));
11728
- break;
11729
- default:
11730
- let u = options.readUnknownField;
11731
- if (u === "throw")
11732
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
11733
- let d = reader.skip(wireType);
11734
- if (u !== false)
11735
- (u === true ? import_runtime2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
11736
- }
11737
- }
11738
- return message;
11739
- }
11740
- internalBinaryWrite(message, writer, options) {
11741
- for (let i = 0;i < message.commands.length; i++)
11742
- BotCommand.internalBinaryWrite(message.commands[i], writer.tag(1, import_runtime.WireType.LengthDelimited).fork(), options).join();
11743
- let u = options.writeUnknownFields;
11744
- if (u !== false)
11745
- (u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
11746
- return writer;
11747
- }
11748
- }
11749
- var GetBotCommandsResult = new GetBotCommandsResult$Type;
11750
-
11751
- class SetBotCommandsInput$Type extends import_runtime4.MessageType {
11752
- constructor() {
11753
- super("SetBotCommandsInput", [
11754
- { no: 1, name: "bot_user_id", kind: "scalar", T: 3, L: 0 },
11755
- { no: 2, name: "commands", kind: "message", repeat: 1, T: () => BotCommand }
11756
- ]);
11757
- }
11758
- create(value) {
11759
- const message = globalThis.Object.create(this.messagePrototype);
11760
- message.botUserId = 0n;
11761
- message.commands = [];
11762
- if (value !== undefined)
11763
- import_runtime3.reflectionMergePartial(this, message, value);
11764
- return message;
11765
- }
11766
- internalBinaryRead(reader, length, options, target) {
11767
- let message = target ?? this.create(), end = reader.pos + length;
11768
- while (reader.pos < end) {
11769
- let [fieldNo, wireType] = reader.tag();
11770
- switch (fieldNo) {
11771
- case 1:
11772
- message.botUserId = reader.int64().toBigInt();
11773
- break;
11774
- case 2:
11775
- message.commands.push(BotCommand.internalBinaryRead(reader, reader.uint32(), options));
11776
- break;
11777
- default:
11778
- let u = options.readUnknownField;
11779
- if (u === "throw")
11780
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
11781
- let d = reader.skip(wireType);
11782
- if (u !== false)
11783
- (u === true ? import_runtime2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
11784
- }
11785
- }
11786
- return message;
11787
- }
11788
- internalBinaryWrite(message, writer, options) {
11789
- if (message.botUserId !== 0n)
11790
- writer.tag(1, import_runtime.WireType.Varint).int64(message.botUserId);
11791
- for (let i = 0;i < message.commands.length; i++)
11792
- BotCommand.internalBinaryWrite(message.commands[i], writer.tag(2, import_runtime.WireType.LengthDelimited).fork(), options).join();
11793
- let u = options.writeUnknownFields;
11794
- if (u !== false)
11795
- (u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
11796
- return writer;
11797
- }
11798
- }
11799
- var SetBotCommandsInput = new SetBotCommandsInput$Type;
11800
-
11801
- class SetBotCommandsResult$Type extends import_runtime4.MessageType {
11802
- constructor() {
11803
- super("SetBotCommandsResult", [
11804
- { no: 1, name: "commands", kind: "message", repeat: 1, T: () => BotCommand }
11805
- ]);
11806
- }
11807
- create(value) {
11808
- const message = globalThis.Object.create(this.messagePrototype);
11809
- message.commands = [];
11810
- if (value !== undefined)
11811
- import_runtime3.reflectionMergePartial(this, message, value);
11812
- return message;
11813
- }
11814
- internalBinaryRead(reader, length, options, target) {
11815
- let message = target ?? this.create(), end = reader.pos + length;
11816
- while (reader.pos < end) {
11817
- let [fieldNo, wireType] = reader.tag();
11818
- switch (fieldNo) {
11819
- case 1:
11820
- message.commands.push(BotCommand.internalBinaryRead(reader, reader.uint32(), options));
11821
- break;
11822
- default:
11823
- let u = options.readUnknownField;
11824
- if (u === "throw")
11825
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
11826
- let d = reader.skip(wireType);
11827
- if (u !== false)
11828
- (u === true ? import_runtime2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
11829
- }
11830
- }
11831
- return message;
11832
- }
11833
- internalBinaryWrite(message, writer, options) {
11834
- for (let i = 0;i < message.commands.length; i++)
11835
- BotCommand.internalBinaryWrite(message.commands[i], writer.tag(1, import_runtime.WireType.LengthDelimited).fork(), options).join();
11836
- let u = options.writeUnknownFields;
11837
- if (u !== false)
11838
- (u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
11839
- return writer;
11840
- }
11841
- }
11842
- var SetBotCommandsResult = new SetBotCommandsResult$Type;
11843
-
11844
- class GetPeerBotCommandsInput$Type extends import_runtime4.MessageType {
11845
- constructor() {
11846
- super("GetPeerBotCommandsInput", [
11847
- { no: 1, name: "peer_id", kind: "message", T: () => InputPeer }
11848
- ]);
11849
- }
11850
- create(value) {
11851
- const message = globalThis.Object.create(this.messagePrototype);
11852
- if (value !== undefined)
11853
- import_runtime3.reflectionMergePartial(this, message, value);
11854
- return message;
11855
- }
11856
- internalBinaryRead(reader, length, options, target) {
11857
- let message = target ?? this.create(), end = reader.pos + length;
11858
- while (reader.pos < end) {
11859
- let [fieldNo, wireType] = reader.tag();
11860
- switch (fieldNo) {
11861
- case 1:
11862
- message.peerId = InputPeer.internalBinaryRead(reader, reader.uint32(), options, message.peerId);
11863
- break;
11864
- default:
11865
- let u = options.readUnknownField;
11866
- if (u === "throw")
11867
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
11868
- let d = reader.skip(wireType);
11869
- if (u !== false)
11870
- (u === true ? import_runtime2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
11871
- }
11872
- }
11873
- return message;
11874
- }
11875
- internalBinaryWrite(message, writer, options) {
11876
- if (message.peerId)
11877
- InputPeer.internalBinaryWrite(message.peerId, writer.tag(1, import_runtime.WireType.LengthDelimited).fork(), options).join();
11878
- let u = options.writeUnknownFields;
11879
- if (u !== false)
11880
- (u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
11881
- return writer;
11882
- }
11883
- }
11884
- var GetPeerBotCommandsInput = new GetPeerBotCommandsInput$Type;
11885
-
11886
- class GetPeerBotCommandsResult$Type extends import_runtime4.MessageType {
11887
- constructor() {
11888
- super("GetPeerBotCommandsResult", [
11889
- { no: 1, name: "bots", kind: "message", repeat: 1, T: () => PeerBotCommands }
11890
- ]);
11891
- }
11892
- create(value) {
11893
- const message = globalThis.Object.create(this.messagePrototype);
11894
- message.bots = [];
11895
- if (value !== undefined)
11896
- import_runtime3.reflectionMergePartial(this, message, value);
11897
- return message;
11898
- }
11899
- internalBinaryRead(reader, length, options, target) {
11900
- let message = target ?? this.create(), end = reader.pos + length;
11901
- while (reader.pos < end) {
11902
- let [fieldNo, wireType] = reader.tag();
11903
- switch (fieldNo) {
11904
- case 1:
11905
- message.bots.push(PeerBotCommands.internalBinaryRead(reader, reader.uint32(), options));
11906
- break;
11907
- default:
11908
- let u = options.readUnknownField;
11909
- if (u === "throw")
11910
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
11911
- let d = reader.skip(wireType);
11912
- if (u !== false)
11913
- (u === true ? import_runtime2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
11914
- }
11915
- }
11916
- return message;
11917
- }
11918
- internalBinaryWrite(message, writer, options) {
11919
- for (let i = 0;i < message.bots.length; i++)
11920
- PeerBotCommands.internalBinaryWrite(message.bots[i], writer.tag(1, import_runtime.WireType.LengthDelimited).fork(), options).join();
11921
- let u = options.writeUnknownFields;
11922
- if (u !== false)
11923
- (u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
11924
- return writer;
11925
- }
11926
- }
11927
- var GetPeerBotCommandsResult = new GetPeerBotCommandsResult$Type;
11928
-
11929
- class RevealBotTokenInput$Type extends import_runtime4.MessageType {
11930
- constructor() {
11931
- super("RevealBotTokenInput", [
11663
+ super("SetBotCommandsResult", [
11664
+ { no: 1, name: "commands", kind: "message", repeat: 1, T: () => BotCommand }
11665
+ ]);
11666
+ }
11667
+ create(value) {
11668
+ const message = globalThis.Object.create(this.messagePrototype);
11669
+ message.commands = [];
11670
+ if (value !== undefined)
11671
+ import_runtime3.reflectionMergePartial(this, message, value);
11672
+ return message;
11673
+ }
11674
+ internalBinaryRead(reader, length, options, target) {
11675
+ let message = target ?? this.create(), end = reader.pos + length;
11676
+ while (reader.pos < end) {
11677
+ let [fieldNo, wireType] = reader.tag();
11678
+ switch (fieldNo) {
11679
+ case 1:
11680
+ message.commands.push(BotCommand.internalBinaryRead(reader, reader.uint32(), options));
11681
+ break;
11682
+ default:
11683
+ let u = options.readUnknownField;
11684
+ if (u === "throw")
11685
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
11686
+ let d = reader.skip(wireType);
11687
+ if (u !== false)
11688
+ (u === true ? import_runtime2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
11689
+ }
11690
+ }
11691
+ return message;
11692
+ }
11693
+ internalBinaryWrite(message, writer, options) {
11694
+ for (let i = 0;i < message.commands.length; i++)
11695
+ BotCommand.internalBinaryWrite(message.commands[i], writer.tag(1, import_runtime.WireType.LengthDelimited).fork(), options).join();
11696
+ let u = options.writeUnknownFields;
11697
+ if (u !== false)
11698
+ (u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
11699
+ return writer;
11700
+ }
11701
+ }
11702
+ var SetBotCommandsResult = new SetBotCommandsResult$Type;
11703
+
11704
+ class GetPeerBotCommandsInput$Type extends import_runtime4.MessageType {
11705
+ constructor() {
11706
+ super("GetPeerBotCommandsInput", [
11707
+ { no: 1, name: "peer_id", kind: "message", T: () => InputPeer }
11708
+ ]);
11709
+ }
11710
+ create(value) {
11711
+ const message = globalThis.Object.create(this.messagePrototype);
11712
+ if (value !== undefined)
11713
+ import_runtime3.reflectionMergePartial(this, message, value);
11714
+ return message;
11715
+ }
11716
+ internalBinaryRead(reader, length, options, target) {
11717
+ let message = target ?? this.create(), end = reader.pos + length;
11718
+ while (reader.pos < end) {
11719
+ let [fieldNo, wireType] = reader.tag();
11720
+ switch (fieldNo) {
11721
+ case 1:
11722
+ message.peerId = InputPeer.internalBinaryRead(reader, reader.uint32(), options, message.peerId);
11723
+ break;
11724
+ default:
11725
+ let u = options.readUnknownField;
11726
+ if (u === "throw")
11727
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
11728
+ let d = reader.skip(wireType);
11729
+ if (u !== false)
11730
+ (u === true ? import_runtime2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
11731
+ }
11732
+ }
11733
+ return message;
11734
+ }
11735
+ internalBinaryWrite(message, writer, options) {
11736
+ if (message.peerId)
11737
+ InputPeer.internalBinaryWrite(message.peerId, writer.tag(1, import_runtime.WireType.LengthDelimited).fork(), options).join();
11738
+ let u = options.writeUnknownFields;
11739
+ if (u !== false)
11740
+ (u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
11741
+ return writer;
11742
+ }
11743
+ }
11744
+ var GetPeerBotCommandsInput = new GetPeerBotCommandsInput$Type;
11745
+
11746
+ class GetPeerBotCommandsResult$Type extends import_runtime4.MessageType {
11747
+ constructor() {
11748
+ super("GetPeerBotCommandsResult", [
11749
+ { no: 1, name: "bots", kind: "message", repeat: 1, T: () => PeerBotCommands }
11750
+ ]);
11751
+ }
11752
+ create(value) {
11753
+ const message = globalThis.Object.create(this.messagePrototype);
11754
+ message.bots = [];
11755
+ if (value !== undefined)
11756
+ import_runtime3.reflectionMergePartial(this, message, value);
11757
+ return message;
11758
+ }
11759
+ internalBinaryRead(reader, length, options, target) {
11760
+ let message = target ?? this.create(), end = reader.pos + length;
11761
+ while (reader.pos < end) {
11762
+ let [fieldNo, wireType] = reader.tag();
11763
+ switch (fieldNo) {
11764
+ case 1:
11765
+ message.bots.push(PeerBotCommands.internalBinaryRead(reader, reader.uint32(), options));
11766
+ break;
11767
+ default:
11768
+ let u = options.readUnknownField;
11769
+ if (u === "throw")
11770
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
11771
+ let d = reader.skip(wireType);
11772
+ if (u !== false)
11773
+ (u === true ? import_runtime2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
11774
+ }
11775
+ }
11776
+ return message;
11777
+ }
11778
+ internalBinaryWrite(message, writer, options) {
11779
+ for (let i = 0;i < message.bots.length; i++)
11780
+ PeerBotCommands.internalBinaryWrite(message.bots[i], writer.tag(1, import_runtime.WireType.LengthDelimited).fork(), options).join();
11781
+ let u = options.writeUnknownFields;
11782
+ if (u !== false)
11783
+ (u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
11784
+ return writer;
11785
+ }
11786
+ }
11787
+ var GetPeerBotCommandsResult = new GetPeerBotCommandsResult$Type;
11788
+
11789
+ class RevealBotTokenInput$Type extends import_runtime4.MessageType {
11790
+ constructor() {
11791
+ super("RevealBotTokenInput", [
11932
11792
  { no: 1, name: "bot_user_id", kind: "scalar", T: 3, L: 0 }
11933
11793
  ]);
11934
11794
  }
@@ -20365,7 +20225,7 @@ class JsonFileStateStore {
20365
20225
  await rename(tempPath, this.path);
20366
20226
  }
20367
20227
  }
20368
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/external.js
20228
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/external.js
20369
20229
  var exports_external = {};
20370
20230
  __export(exports_external, {
20371
20231
  xor: () => xor,
@@ -20467,6 +20327,7 @@ __export(exports_external, {
20467
20327
  iso: () => exports_iso,
20468
20328
  ipv6: () => ipv62,
20469
20329
  ipv4: () => ipv42,
20330
+ invertCodec: () => invertCodec,
20470
20331
  intersection: () => intersection,
20471
20332
  int64: () => int64,
20472
20333
  int32: () => int32,
@@ -20545,6 +20406,7 @@ __export(exports_external, {
20545
20406
  ZodRealError: () => ZodRealError,
20546
20407
  ZodReadonly: () => ZodReadonly,
20547
20408
  ZodPromise: () => ZodPromise,
20409
+ ZodPreprocess: () => ZodPreprocess,
20548
20410
  ZodPrefault: () => ZodPrefault,
20549
20411
  ZodPipe: () => ZodPipe,
20550
20412
  ZodOptional: () => ZodOptional,
@@ -20606,7 +20468,7 @@ __export(exports_external, {
20606
20468
  $brand: () => $brand
20607
20469
  });
20608
20470
 
20609
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/index.js
20471
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/index.js
20610
20472
  var exports_core2 = {};
20611
20473
  __export(exports_core2, {
20612
20474
  version: () => version,
@@ -20805,6 +20667,7 @@ __export(exports_core2, {
20805
20667
  $ZodRealError: () => $ZodRealError,
20806
20668
  $ZodReadonly: () => $ZodReadonly,
20807
20669
  $ZodPromise: () => $ZodPromise,
20670
+ $ZodPreprocess: () => $ZodPreprocess,
20808
20671
  $ZodPrefault: () => $ZodPrefault,
20809
20672
  $ZodPipe: () => $ZodPipe,
20810
20673
  $ZodOptional: () => $ZodOptional,
@@ -20884,8 +20747,9 @@ __export(exports_core2, {
20884
20747
  $ZodAny: () => $ZodAny
20885
20748
  });
20886
20749
 
20887
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/core.js
20888
- var NEVER = Object.freeze({
20750
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/core.js
20751
+ var _a;
20752
+ var NEVER = /* @__PURE__ */ Object.freeze({
20889
20753
  status: "aborted"
20890
20754
  });
20891
20755
  function $constructor(name, initializer, params) {
@@ -20920,10 +20784,10 @@ function $constructor(name, initializer, params) {
20920
20784
  }
20921
20785
  Object.defineProperty(Definition, "name", { value: name });
20922
20786
  function _(def) {
20923
- var _a;
20787
+ var _a2;
20924
20788
  const inst = params?.Parent ? new Definition : this;
20925
20789
  init(inst, def);
20926
- (_a = inst._zod).deferred ?? (_a.deferred = []);
20790
+ (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
20927
20791
  for (const fn of inst._zod.deferred) {
20928
20792
  fn();
20929
20793
  }
@@ -20954,13 +20818,14 @@ class $ZodEncodeError extends Error {
20954
20818
  this.name = "ZodEncodeError";
20955
20819
  }
20956
20820
  }
20957
- var globalConfig = {};
20821
+ (_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
20822
+ var globalConfig = globalThis.__zod_globalConfig;
20958
20823
  function config(newConfig) {
20959
20824
  if (newConfig)
20960
20825
  Object.assign(globalConfig, newConfig);
20961
20826
  return globalConfig;
20962
20827
  }
20963
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/util.js
20828
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/util.js
20964
20829
  var exports_util = {};
20965
20830
  __export(exports_util, {
20966
20831
  unwrapMessage: () => unwrapMessage,
@@ -21002,6 +20867,7 @@ __export(exports_util, {
21002
20867
  floatSafeRemainder: () => floatSafeRemainder,
21003
20868
  finalizeIssue: () => finalizeIssue,
21004
20869
  extend: () => extend,
20870
+ explicitlyAborted: () => explicitlyAborted,
21005
20871
  escapeRegex: () => escapeRegex,
21006
20872
  esc: () => esc,
21007
20873
  defineLazy: () => defineLazy,
@@ -21072,21 +20938,14 @@ function cleanRegex(source) {
21072
20938
  return source.slice(start, end);
21073
20939
  }
21074
20940
  function floatSafeRemainder(val, step) {
21075
- const valDecCount = (val.toString().split(".")[1] || "").length;
21076
- const stepString = step.toString();
21077
- let stepDecCount = (stepString.split(".")[1] || "").length;
21078
- if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) {
21079
- const match = stepString.match(/\d?e-(\d?)/);
21080
- if (match?.[1]) {
21081
- stepDecCount = Number.parseInt(match[1]);
21082
- }
21083
- }
21084
- const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
21085
- const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
21086
- const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
21087
- return valInt % stepInt / 10 ** decCount;
21088
- }
21089
- var EVALUATING = Symbol("evaluating");
20941
+ const ratio = val / step;
20942
+ const roundedRatio = Math.round(ratio);
20943
+ const tolerance = Number.EPSILON * Math.max(Math.abs(ratio), 1);
20944
+ if (Math.abs(ratio - roundedRatio) < tolerance)
20945
+ return 0;
20946
+ return ratio - roundedRatio;
20947
+ }
20948
+ var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
21090
20949
  function defineLazy(object, key, getter) {
21091
20950
  let value = undefined;
21092
20951
  Object.defineProperty(object, key, {
@@ -21164,7 +21023,10 @@ var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace :
21164
21023
  function isObject(data) {
21165
21024
  return typeof data === "object" && data !== null && !Array.isArray(data);
21166
21025
  }
21167
- var allowsEval = cached2(() => {
21026
+ var allowsEval = /* @__PURE__ */ cached2(() => {
21027
+ if (globalConfig.jitless) {
21028
+ return false;
21029
+ }
21168
21030
  if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
21169
21031
  return false;
21170
21032
  }
@@ -21197,6 +21059,10 @@ function shallowClone(o) {
21197
21059
  return { ...o };
21198
21060
  if (Array.isArray(o))
21199
21061
  return [...o];
21062
+ if (o instanceof Map)
21063
+ return new Map(o);
21064
+ if (o instanceof Set)
21065
+ return new Set(o);
21200
21066
  return o;
21201
21067
  }
21202
21068
  function numKeys(data) {
@@ -21252,8 +21118,15 @@ var getParsedType = (data) => {
21252
21118
  throw new Error(`Unknown data type: ${t}`);
21253
21119
  }
21254
21120
  };
21255
- var propertyKeyTypes = new Set(["string", "number", "symbol"]);
21256
- var primitiveTypes = new Set(["string", "number", "bigint", "boolean", "symbol", "undefined"]);
21121
+ var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
21122
+ var primitiveTypes = /* @__PURE__ */ new Set([
21123
+ "string",
21124
+ "number",
21125
+ "bigint",
21126
+ "boolean",
21127
+ "symbol",
21128
+ "undefined"
21129
+ ]);
21257
21130
  function escapeRegex(str) {
21258
21131
  return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
21259
21132
  }
@@ -21422,6 +21295,9 @@ function safeExtend(schema, shape) {
21422
21295
  return clone(schema, def);
21423
21296
  }
21424
21297
  function merge(a, b) {
21298
+ if (a._zod.def.checks?.length) {
21299
+ throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
21300
+ }
21425
21301
  const def = mergeDefs(a._zod.def, {
21426
21302
  get shape() {
21427
21303
  const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
@@ -21431,7 +21307,7 @@ function merge(a, b) {
21431
21307
  get catchall() {
21432
21308
  return b._zod.def.catchall;
21433
21309
  },
21434
- checks: []
21310
+ checks: b._zod.def.checks ?? []
21435
21311
  });
21436
21312
  return clone(a, def);
21437
21313
  }
@@ -21514,10 +21390,20 @@ function aborted(x, startIndex = 0) {
21514
21390
  }
21515
21391
  return false;
21516
21392
  }
21393
+ function explicitlyAborted(x, startIndex = 0) {
21394
+ if (x.aborted === true)
21395
+ return true;
21396
+ for (let i = startIndex;i < x.issues.length; i++) {
21397
+ if (x.issues[i]?.continue === false) {
21398
+ return true;
21399
+ }
21400
+ }
21401
+ return false;
21402
+ }
21517
21403
  function prefixIssues(path, issues) {
21518
21404
  return issues.map((iss) => {
21519
- var _a;
21520
- (_a = iss).path ?? (_a.path = []);
21405
+ var _a2;
21406
+ (_a2 = iss).path ?? (_a2.path = []);
21521
21407
  iss.path.unshift(path);
21522
21408
  return iss;
21523
21409
  });
@@ -21526,17 +21412,14 @@ function unwrapMessage(message) {
21526
21412
  return typeof message === "string" ? message : message?.message;
21527
21413
  }
21528
21414
  function finalizeIssue(iss, ctx, config2) {
21529
- const full = { ...iss, path: iss.path ?? [] };
21530
- if (!iss.message) {
21531
- const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
21532
- full.message = message;
21533
- }
21534
- delete full.inst;
21535
- delete full.continue;
21536
- if (!ctx?.reportInput) {
21537
- delete full.input;
21415
+ const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
21416
+ const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
21417
+ rest.path ?? (rest.path = []);
21418
+ rest.message = message;
21419
+ if (ctx?.reportInput) {
21420
+ rest.input = _input;
21538
21421
  }
21539
- return full;
21422
+ return rest;
21540
21423
  }
21541
21424
  function getSizableOrigin(input) {
21542
21425
  if (input instanceof Set)
@@ -21634,7 +21517,7 @@ class Class {
21634
21517
  constructor(..._args) {}
21635
21518
  }
21636
21519
 
21637
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/errors.js
21520
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/errors.js
21638
21521
  var initializer = (inst, def) => {
21639
21522
  inst.name = "$ZodError";
21640
21523
  Object.defineProperty(inst, "_zod", {
@@ -21668,30 +21551,33 @@ function flattenError(error, mapper = (issue2) => issue2.message) {
21668
21551
  }
21669
21552
  function formatError(error, mapper = (issue2) => issue2.message) {
21670
21553
  const fieldErrors = { _errors: [] };
21671
- const processError = (error2) => {
21554
+ const processError = (error2, path = []) => {
21672
21555
  for (const issue2 of error2.issues) {
21673
21556
  if (issue2.code === "invalid_union" && issue2.errors.length) {
21674
- issue2.errors.map((issues) => processError({ issues }));
21557
+ issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
21675
21558
  } else if (issue2.code === "invalid_key") {
21676
- processError({ issues: issue2.issues });
21559
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
21677
21560
  } else if (issue2.code === "invalid_element") {
21678
- processError({ issues: issue2.issues });
21679
- } else if (issue2.path.length === 0) {
21680
- fieldErrors._errors.push(mapper(issue2));
21561
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
21681
21562
  } else {
21682
- let curr = fieldErrors;
21683
- let i = 0;
21684
- while (i < issue2.path.length) {
21685
- const el = issue2.path[i];
21686
- const terminal = i === issue2.path.length - 1;
21687
- if (!terminal) {
21688
- curr[el] = curr[el] || { _errors: [] };
21689
- } else {
21690
- curr[el] = curr[el] || { _errors: [] };
21691
- curr[el]._errors.push(mapper(issue2));
21563
+ const fullpath = [...path, ...issue2.path];
21564
+ if (fullpath.length === 0) {
21565
+ fieldErrors._errors.push(mapper(issue2));
21566
+ } else {
21567
+ let curr = fieldErrors;
21568
+ let i = 0;
21569
+ while (i < fullpath.length) {
21570
+ const el = fullpath[i];
21571
+ const terminal = i === fullpath.length - 1;
21572
+ if (!terminal) {
21573
+ curr[el] = curr[el] || { _errors: [] };
21574
+ } else {
21575
+ curr[el] = curr[el] || { _errors: [] };
21576
+ curr[el]._errors.push(mapper(issue2));
21577
+ }
21578
+ curr = curr[el];
21579
+ i++;
21692
21580
  }
21693
- curr = curr[el];
21694
- i++;
21695
21581
  }
21696
21582
  }
21697
21583
  }
@@ -21702,14 +21588,14 @@ function formatError(error, mapper = (issue2) => issue2.message) {
21702
21588
  function treeifyError(error, mapper = (issue2) => issue2.message) {
21703
21589
  const result = { errors: [] };
21704
21590
  const processError = (error2, path = []) => {
21705
- var _a, _b;
21591
+ var _a2, _b;
21706
21592
  for (const issue2 of error2.issues) {
21707
21593
  if (issue2.code === "invalid_union" && issue2.errors.length) {
21708
- issue2.errors.map((issues) => processError({ issues }, issue2.path));
21594
+ issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
21709
21595
  } else if (issue2.code === "invalid_key") {
21710
- processError({ issues: issue2.issues }, issue2.path);
21596
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
21711
21597
  } else if (issue2.code === "invalid_element") {
21712
- processError({ issues: issue2.issues }, issue2.path);
21598
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
21713
21599
  } else {
21714
21600
  const fullpath = [...path, ...issue2.path];
21715
21601
  if (fullpath.length === 0) {
@@ -21723,7 +21609,7 @@ function treeifyError(error, mapper = (issue2) => issue2.message) {
21723
21609
  const terminal = i === fullpath.length - 1;
21724
21610
  if (typeof el === "string") {
21725
21611
  curr.properties ?? (curr.properties = {});
21726
- (_a = curr.properties)[el] ?? (_a[el] = { errors: [] });
21612
+ (_a2 = curr.properties)[el] ?? (_a2[el] = { errors: [] });
21727
21613
  curr = curr.properties[el];
21728
21614
  } else {
21729
21615
  curr.items ?? (curr.items = []);
@@ -21771,9 +21657,9 @@ function prettifyError(error) {
21771
21657
  `);
21772
21658
  }
21773
21659
 
21774
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/parse.js
21660
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/parse.js
21775
21661
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
21776
- const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
21662
+ const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
21777
21663
  const result = schema._zod.run({ value, issues: [] }, ctx);
21778
21664
  if (result instanceof Promise) {
21779
21665
  throw new $ZodAsyncError;
@@ -21787,7 +21673,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
21787
21673
  };
21788
21674
  var parse = /* @__PURE__ */ _parse($ZodRealError);
21789
21675
  var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
21790
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
21676
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
21791
21677
  let result = schema._zod.run({ value, issues: [] }, ctx);
21792
21678
  if (result instanceof Promise)
21793
21679
  result = await result;
@@ -21812,7 +21698,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
21812
21698
  };
21813
21699
  var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
21814
21700
  var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
21815
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
21701
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
21816
21702
  let result = schema._zod.run({ value, issues: [] }, ctx);
21817
21703
  if (result instanceof Promise)
21818
21704
  result = await result;
@@ -21823,7 +21709,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
21823
21709
  };
21824
21710
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
21825
21711
  var _encode = (_Err) => (schema, value, _ctx) => {
21826
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
21712
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
21827
21713
  return _parse(_Err)(schema, value, ctx);
21828
21714
  };
21829
21715
  var encode = /* @__PURE__ */ _encode($ZodRealError);
@@ -21832,7 +21718,7 @@ var _decode = (_Err) => (schema, value, _ctx) => {
21832
21718
  };
21833
21719
  var decode = /* @__PURE__ */ _decode($ZodRealError);
21834
21720
  var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
21835
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
21721
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
21836
21722
  return _parseAsync(_Err)(schema, value, ctx);
21837
21723
  };
21838
21724
  var encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError);
@@ -21841,7 +21727,7 @@ var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
21841
21727
  };
21842
21728
  var decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError);
21843
21729
  var _safeEncode = (_Err) => (schema, value, _ctx) => {
21844
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
21730
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
21845
21731
  return _safeParse(_Err)(schema, value, ctx);
21846
21732
  };
21847
21733
  var safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError);
@@ -21850,7 +21736,7 @@ var _safeDecode = (_Err) => (schema, value, _ctx) => {
21850
21736
  };
21851
21737
  var safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError);
21852
21738
  var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
21853
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
21739
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
21854
21740
  return _safeParseAsync(_Err)(schema, value, ctx);
21855
21741
  };
21856
21742
  var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
@@ -21858,7 +21744,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
21858
21744
  return _safeParseAsync(_Err)(schema, value, _ctx);
21859
21745
  };
21860
21746
  var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
21861
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/regexes.js
21747
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/regexes.js
21862
21748
  var exports_regexes = {};
21863
21749
  __export(exports_regexes, {
21864
21750
  xid: () => xid,
@@ -21898,6 +21784,7 @@ __export(exports_regexes, {
21898
21784
  ipv4: () => ipv4,
21899
21785
  integer: () => integer,
21900
21786
  idnEmail: () => idnEmail,
21787
+ httpProtocol: () => httpProtocol,
21901
21788
  html5Email: () => html5Email,
21902
21789
  hostname: () => hostname,
21903
21790
  hex: () => hex,
@@ -21920,7 +21807,7 @@ __export(exports_regexes, {
21920
21807
  base64url: () => base64url,
21921
21808
  base64: () => base64
21922
21809
  });
21923
- var cuid = /^[cC][^\s-]{8,}$/;
21810
+ var cuid = /^[cC][0-9a-z]{6,}$/;
21924
21811
  var cuid2 = /^[0-9a-z]+$/;
21925
21812
  var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
21926
21813
  var xid = /^[0-9a-vA-V]{20}$/;
@@ -21959,6 +21846,7 @@ var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/
21959
21846
  var base64url = /^[A-Za-z0-9_-]*$/;
21960
21847
  var hostname = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/;
21961
21848
  var domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
21849
+ var httpProtocol = /^https?$/;
21962
21850
  var e164 = /^\+[1-9]\d{6,14}$/;
21963
21851
  var dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;
21964
21852
  var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
@@ -22015,12 +21903,12 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
22015
21903
  var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
22016
21904
  var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
22017
21905
 
22018
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/checks.js
21906
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/checks.js
22019
21907
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
22020
- var _a;
21908
+ var _a2;
22021
21909
  inst._zod ?? (inst._zod = {});
22022
21910
  inst._zod.def = def;
22023
- (_a = inst._zod).onattach ?? (_a.onattach = []);
21911
+ (_a2 = inst._zod).onattach ?? (_a2.onattach = []);
22024
21912
  });
22025
21913
  var numericOriginMap = {
22026
21914
  number: "number",
@@ -22086,8 +21974,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
22086
21974
  var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
22087
21975
  $ZodCheck.init(inst, def);
22088
21976
  inst._zod.onattach.push((inst2) => {
22089
- var _a;
22090
- (_a = inst2._zod.bag).multipleOf ?? (_a.multipleOf = def.value);
21977
+ var _a2;
21978
+ (_a2 = inst2._zod.bag).multipleOf ?? (_a2.multipleOf = def.value);
22091
21979
  });
22092
21980
  inst._zod.check = (payload) => {
22093
21981
  if (typeof payload.value !== typeof def.value)
@@ -22220,9 +22108,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
22220
22108
  };
22221
22109
  });
22222
22110
  var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
22223
- var _a;
22111
+ var _a2;
22224
22112
  $ZodCheck.init(inst, def);
22225
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
22113
+ (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
22226
22114
  const val = payload.value;
22227
22115
  return !nullish(val) && val.size !== undefined;
22228
22116
  });
@@ -22248,9 +22136,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
22248
22136
  };
22249
22137
  });
22250
22138
  var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
22251
- var _a;
22139
+ var _a2;
22252
22140
  $ZodCheck.init(inst, def);
22253
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
22141
+ (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
22254
22142
  const val = payload.value;
22255
22143
  return !nullish(val) && val.size !== undefined;
22256
22144
  });
@@ -22276,9 +22164,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
22276
22164
  };
22277
22165
  });
22278
22166
  var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
22279
- var _a;
22167
+ var _a2;
22280
22168
  $ZodCheck.init(inst, def);
22281
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
22169
+ (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
22282
22170
  const val = payload.value;
22283
22171
  return !nullish(val) && val.size !== undefined;
22284
22172
  });
@@ -22306,9 +22194,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
22306
22194
  };
22307
22195
  });
22308
22196
  var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
22309
- var _a;
22197
+ var _a2;
22310
22198
  $ZodCheck.init(inst, def);
22311
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
22199
+ (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
22312
22200
  const val = payload.value;
22313
22201
  return !nullish(val) && val.length !== undefined;
22314
22202
  });
@@ -22335,9 +22223,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
22335
22223
  };
22336
22224
  });
22337
22225
  var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
22338
- var _a;
22226
+ var _a2;
22339
22227
  $ZodCheck.init(inst, def);
22340
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
22228
+ (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
22341
22229
  const val = payload.value;
22342
22230
  return !nullish(val) && val.length !== undefined;
22343
22231
  });
@@ -22364,9 +22252,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
22364
22252
  };
22365
22253
  });
22366
22254
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
22367
- var _a;
22255
+ var _a2;
22368
22256
  $ZodCheck.init(inst, def);
22369
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
22257
+ (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
22370
22258
  const val = payload.value;
22371
22259
  return !nullish(val) && val.length !== undefined;
22372
22260
  });
@@ -22395,7 +22283,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
22395
22283
  };
22396
22284
  });
22397
22285
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
22398
- var _a, _b;
22286
+ var _a2, _b;
22399
22287
  $ZodCheck.init(inst, def);
22400
22288
  inst._zod.onattach.push((inst2) => {
22401
22289
  const bag = inst2._zod.bag;
@@ -22406,7 +22294,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
22406
22294
  }
22407
22295
  });
22408
22296
  if (def.pattern)
22409
- (_a = inst._zod).check ?? (_a.check = (payload) => {
22297
+ (_a2 = inst._zod).check ?? (_a2.check = (payload) => {
22410
22298
  def.pattern.lastIndex = 0;
22411
22299
  if (def.pattern.test(payload.value))
22412
22300
  return;
@@ -22562,7 +22450,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
22562
22450
  };
22563
22451
  });
22564
22452
 
22565
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/doc.js
22453
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/doc.js
22566
22454
  class Doc {
22567
22455
  constructor(args = []) {
22568
22456
  this.content = [];
@@ -22600,16 +22488,16 @@ class Doc {
22600
22488
  }
22601
22489
  }
22602
22490
 
22603
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/versions.js
22491
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/versions.js
22604
22492
  var version = {
22605
22493
  major: 4,
22606
- minor: 3,
22607
- patch: 6
22494
+ minor: 4,
22495
+ patch: 3
22608
22496
  };
22609
22497
 
22610
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/schemas.js
22498
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/schemas.js
22611
22499
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
22612
- var _a;
22500
+ var _a2;
22613
22501
  inst ?? (inst = {});
22614
22502
  inst._zod.def = def;
22615
22503
  inst._zod.bag = inst._zod.bag || {};
@@ -22624,7 +22512,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
22624
22512
  }
22625
22513
  }
22626
22514
  if (checks.length === 0) {
22627
- (_a = inst._zod).deferred ?? (_a.deferred = []);
22515
+ (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
22628
22516
  inst._zod.deferred?.push(() => {
22629
22517
  inst._zod.run = inst._zod.parse;
22630
22518
  });
@@ -22634,6 +22522,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
22634
22522
  let asyncResult;
22635
22523
  for (const ch of checks2) {
22636
22524
  if (ch._zod.def.when) {
22525
+ if (explicitlyAborted(payload))
22526
+ continue;
22637
22527
  const shouldRun = ch._zod.def.when(payload);
22638
22528
  if (!shouldRun)
22639
22529
  continue;
@@ -22773,6 +22663,19 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
22773
22663
  inst._zod.check = (payload) => {
22774
22664
  try {
22775
22665
  const trimmed = payload.value.trim();
22666
+ if (!def.normalize && def.protocol?.source === httpProtocol.source) {
22667
+ if (!/^https?:\/\//i.test(trimmed)) {
22668
+ payload.issues.push({
22669
+ code: "invalid_format",
22670
+ format: "url",
22671
+ note: "Invalid URL format",
22672
+ input: payload.value,
22673
+ inst,
22674
+ continue: !def.abort
22675
+ });
22676
+ return;
22677
+ }
22678
+ }
22776
22679
  const url = new URL(trimmed);
22777
22680
  if (def.hostname) {
22778
22681
  def.hostname.lastIndex = 0;
@@ -22926,6 +22829,8 @@ var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
22926
22829
  function isValidBase64(data) {
22927
22830
  if (data === "")
22928
22831
  return true;
22832
+ if (/\s/.test(data))
22833
+ return false;
22929
22834
  if (data.length % 4 !== 0)
22930
22835
  return false;
22931
22836
  try {
@@ -23115,8 +23020,6 @@ var $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def) =>
23115
23020
  $ZodType.init(inst, def);
23116
23021
  inst._zod.pattern = _undefined;
23117
23022
  inst._zod.values = new Set([undefined]);
23118
- inst._zod.optin = "optional";
23119
- inst._zod.optout = "optional";
23120
23023
  inst._zod.parse = (payload, _ctx) => {
23121
23024
  const input = payload.value;
23122
23025
  if (typeof input === "undefined")
@@ -23244,15 +23147,27 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
23244
23147
  return payload;
23245
23148
  };
23246
23149
  });
23247
- function handlePropertyResult(result, final, key, input, isOptionalOut) {
23150
+ function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
23151
+ const isPresent = key in input;
23248
23152
  if (result.issues.length) {
23249
- if (isOptionalOut && !(key in input)) {
23153
+ if (isOptionalIn && isOptionalOut && !isPresent) {
23250
23154
  return;
23251
23155
  }
23252
23156
  final.issues.push(...prefixIssues(key, result.issues));
23253
23157
  }
23158
+ if (!isPresent && !isOptionalIn) {
23159
+ if (!result.issues.length) {
23160
+ final.issues.push({
23161
+ code: "invalid_type",
23162
+ expected: "nonoptional",
23163
+ input: undefined,
23164
+ path: [key]
23165
+ });
23166
+ }
23167
+ return;
23168
+ }
23254
23169
  if (result.value === undefined) {
23255
- if (key in input) {
23170
+ if (isPresent) {
23256
23171
  final.value[key] = undefined;
23257
23172
  }
23258
23173
  } else {
@@ -23280,8 +23195,11 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
23280
23195
  const keySet = def.keySet;
23281
23196
  const _catchall = def.catchall._zod;
23282
23197
  const t = _catchall.def.type;
23198
+ const isOptionalIn = _catchall.optin === "optional";
23283
23199
  const isOptionalOut = _catchall.optout === "optional";
23284
23200
  for (const key in input) {
23201
+ if (key === "__proto__")
23202
+ continue;
23285
23203
  if (keySet.has(key))
23286
23204
  continue;
23287
23205
  if (t === "never") {
@@ -23290,9 +23208,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
23290
23208
  }
23291
23209
  const r = _catchall.run({ value: input[key], issues: [] }, ctx);
23292
23210
  if (r instanceof Promise) {
23293
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
23211
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
23294
23212
  } else {
23295
- handlePropertyResult(r, payload, key, input, isOptionalOut);
23213
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
23296
23214
  }
23297
23215
  }
23298
23216
  if (unrecognized.length) {
@@ -23358,12 +23276,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
23358
23276
  const shape = value.shape;
23359
23277
  for (const key of value.keys) {
23360
23278
  const el = shape[key];
23279
+ const isOptionalIn = el._zod.optin === "optional";
23361
23280
  const isOptionalOut = el._zod.optout === "optional";
23362
23281
  const r = el._zod.run({ value: input[key], issues: [] }, ctx);
23363
23282
  if (r instanceof Promise) {
23364
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
23283
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
23365
23284
  } else {
23366
- handlePropertyResult(r, payload, key, input, isOptionalOut);
23285
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
23367
23286
  }
23368
23287
  }
23369
23288
  if (!catchall) {
@@ -23394,9 +23313,10 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
23394
23313
  const id = ids[key];
23395
23314
  const k = esc(key);
23396
23315
  const schema = shape[key];
23316
+ const isOptionalIn = schema?._zod?.optin === "optional";
23397
23317
  const isOptionalOut = schema?._zod?.optout === "optional";
23398
23318
  doc.write(`const ${id} = ${parseStr(key)};`);
23399
- if (isOptionalOut) {
23319
+ if (isOptionalIn && isOptionalOut) {
23400
23320
  doc.write(`
23401
23321
  if (${id}.issues.length) {
23402
23322
  if (${k} in input) {
@@ -23415,6 +23335,33 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
23415
23335
  newResult[${k}] = ${id}.value;
23416
23336
  }
23417
23337
 
23338
+ `);
23339
+ } else if (!isOptionalIn) {
23340
+ doc.write(`
23341
+ const ${id}_present = ${k} in input;
23342
+ if (${id}.issues.length) {
23343
+ payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
23344
+ ...iss,
23345
+ path: iss.path ? [${k}, ...iss.path] : [${k}]
23346
+ })));
23347
+ }
23348
+ if (!${id}_present && !${id}.issues.length) {
23349
+ payload.issues.push({
23350
+ code: "invalid_type",
23351
+ expected: "nonoptional",
23352
+ input: undefined,
23353
+ path: [${k}]
23354
+ });
23355
+ }
23356
+
23357
+ if (${id}_present) {
23358
+ if (${id}.value === undefined) {
23359
+ newResult[${k}] = undefined;
23360
+ } else {
23361
+ newResult[${k}] = ${id}.value;
23362
+ }
23363
+ }
23364
+
23418
23365
  `);
23419
23366
  } else {
23420
23367
  doc.write(`
@@ -23508,10 +23455,9 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
23508
23455
  }
23509
23456
  return;
23510
23457
  });
23511
- const single = def.options.length === 1;
23512
- const first = def.options[0]._zod.run;
23458
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
23513
23459
  inst._zod.parse = (payload, ctx) => {
23514
- if (single) {
23460
+ if (first) {
23515
23461
  return first(payload, ctx);
23516
23462
  }
23517
23463
  let async = false;
@@ -23564,10 +23510,9 @@ function handleExclusiveUnionResults(results, final, inst, ctx) {
23564
23510
  var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def) => {
23565
23511
  $ZodUnion.init(inst, def);
23566
23512
  def.inclusive = false;
23567
- const single = def.options.length === 1;
23568
- const first = def.options[0]._zod.run;
23513
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
23569
23514
  inst._zod.parse = (payload, ctx) => {
23570
- if (single) {
23515
+ if (first) {
23571
23516
  return first(payload, ctx);
23572
23517
  }
23573
23518
  let async = false;
@@ -23642,7 +23587,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
23642
23587
  if (opt) {
23643
23588
  return opt._zod.run(payload, ctx);
23644
23589
  }
23645
- if (def.unionFallback) {
23590
+ if (def.unionFallback || ctx.direction === "backward") {
23646
23591
  return _super(payload, ctx);
23647
23592
  }
23648
23593
  payload.issues.push({
@@ -23650,6 +23595,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
23650
23595
  errors: [],
23651
23596
  note: "No matching discriminator",
23652
23597
  discriminator: def.discriminator,
23598
+ options: Array.from(disc.value.keys()),
23653
23599
  input,
23654
23600
  path: [def.discriminator],
23655
23601
  inst
@@ -23771,64 +23717,96 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
23771
23717
  }
23772
23718
  payload.value = [];
23773
23719
  const proms = [];
23774
- const reversedIndex = [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
23775
- const optStart = reversedIndex === -1 ? 0 : items.length - reversedIndex;
23720
+ const optinStart = getTupleOptStart(items, "optin");
23721
+ const optoutStart = getTupleOptStart(items, "optout");
23776
23722
  if (!def.rest) {
23777
- const tooBig = input.length > items.length;
23778
- const tooSmall = input.length < optStart - 1;
23779
- if (tooBig || tooSmall) {
23723
+ if (input.length < optinStart) {
23780
23724
  payload.issues.push({
23781
- ...tooBig ? { code: "too_big", maximum: items.length, inclusive: true } : { code: "too_small", minimum: items.length },
23725
+ code: "too_small",
23726
+ minimum: optinStart,
23727
+ inclusive: true,
23782
23728
  input,
23783
23729
  inst,
23784
23730
  origin: "array"
23785
23731
  });
23786
23732
  return payload;
23787
23733
  }
23788
- }
23789
- let i = -1;
23790
- for (const item of items) {
23791
- i++;
23792
- if (i >= input.length) {
23793
- if (i >= optStart)
23794
- continue;
23734
+ if (input.length > items.length) {
23735
+ payload.issues.push({
23736
+ code: "too_big",
23737
+ maximum: items.length,
23738
+ inclusive: true,
23739
+ input,
23740
+ inst,
23741
+ origin: "array"
23742
+ });
23795
23743
  }
23796
- const result = item._zod.run({
23797
- value: input[i],
23798
- issues: []
23799
- }, ctx);
23800
- if (result instanceof Promise) {
23801
- proms.push(result.then((result2) => handleTupleResult(result2, payload, i)));
23744
+ }
23745
+ const itemResults = new Array(items.length);
23746
+ for (let i = 0;i < items.length; i++) {
23747
+ const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);
23748
+ if (r instanceof Promise) {
23749
+ proms.push(r.then((rr) => {
23750
+ itemResults[i] = rr;
23751
+ }));
23802
23752
  } else {
23803
- handleTupleResult(result, payload, i);
23753
+ itemResults[i] = r;
23804
23754
  }
23805
23755
  }
23806
23756
  if (def.rest) {
23757
+ let i = items.length - 1;
23807
23758
  const rest = input.slice(items.length);
23808
23759
  for (const el of rest) {
23809
23760
  i++;
23810
- const result = def.rest._zod.run({
23811
- value: el,
23812
- issues: []
23813
- }, ctx);
23761
+ const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
23814
23762
  if (result instanceof Promise) {
23815
- proms.push(result.then((result2) => handleTupleResult(result2, payload, i)));
23763
+ proms.push(result.then((r) => handleTupleResult(r, payload, i)));
23816
23764
  } else {
23817
23765
  handleTupleResult(result, payload, i);
23818
23766
  }
23819
23767
  }
23820
23768
  }
23821
- if (proms.length)
23822
- return Promise.all(proms).then(() => payload);
23823
- return payload;
23769
+ if (proms.length) {
23770
+ return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));
23771
+ }
23772
+ return handleTupleResults(itemResults, payload, items, input, optoutStart);
23824
23773
  };
23825
23774
  });
23775
+ function getTupleOptStart(items, key) {
23776
+ for (let i = items.length - 1;i >= 0; i--) {
23777
+ if (items[i]._zod[key] !== "optional")
23778
+ return i + 1;
23779
+ }
23780
+ return 0;
23781
+ }
23826
23782
  function handleTupleResult(result, final, index) {
23827
23783
  if (result.issues.length) {
23828
23784
  final.issues.push(...prefixIssues(index, result.issues));
23829
23785
  }
23830
23786
  final.value[index] = result.value;
23831
23787
  }
23788
+ function handleTupleResults(itemResults, final, items, input, optoutStart) {
23789
+ for (let i = 0;i < items.length; i++) {
23790
+ const r = itemResults[i];
23791
+ const isPresent = i < input.length;
23792
+ if (r.issues.length) {
23793
+ if (!isPresent && i >= optoutStart) {
23794
+ final.value.length = i;
23795
+ break;
23796
+ }
23797
+ final.issues.push(...prefixIssues(i, r.issues));
23798
+ }
23799
+ final.value[i] = r.value;
23800
+ }
23801
+ for (let i = final.value.length - 1;i >= input.length; i--) {
23802
+ if (items[i]._zod.optout === "optional" && final.value[i] === undefined) {
23803
+ final.value.length = i;
23804
+ } else {
23805
+ break;
23806
+ }
23807
+ }
23808
+ return final;
23809
+ }
23832
23810
  var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
23833
23811
  $ZodType.init(inst, def);
23834
23812
  inst._zod.parse = (payload, ctx) => {
@@ -23850,19 +23828,35 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
23850
23828
  for (const key of values) {
23851
23829
  if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
23852
23830
  recordKeys.add(typeof key === "number" ? key.toString() : key);
23831
+ const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
23832
+ if (keyResult instanceof Promise) {
23833
+ throw new Error("Async schemas not supported in object keys currently");
23834
+ }
23835
+ if (keyResult.issues.length) {
23836
+ payload.issues.push({
23837
+ code: "invalid_key",
23838
+ origin: "record",
23839
+ issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
23840
+ input: key,
23841
+ path: [key],
23842
+ inst
23843
+ });
23844
+ continue;
23845
+ }
23846
+ const outKey = keyResult.value;
23853
23847
  const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
23854
23848
  if (result instanceof Promise) {
23855
23849
  proms.push(result.then((result2) => {
23856
23850
  if (result2.issues.length) {
23857
23851
  payload.issues.push(...prefixIssues(key, result2.issues));
23858
23852
  }
23859
- payload.value[key] = result2.value;
23853
+ payload.value[outKey] = result2.value;
23860
23854
  }));
23861
23855
  } else {
23862
23856
  if (result.issues.length) {
23863
23857
  payload.issues.push(...prefixIssues(key, result.issues));
23864
23858
  }
23865
- payload.value[key] = result.value;
23859
+ payload.value[outKey] = result.value;
23866
23860
  }
23867
23861
  }
23868
23862
  }
@@ -23886,6 +23880,8 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
23886
23880
  for (const key of Reflect.ownKeys(input)) {
23887
23881
  if (key === "__proto__")
23888
23882
  continue;
23883
+ if (!Object.prototype.propertyIsEnumerable.call(input, key))
23884
+ continue;
23889
23885
  let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
23890
23886
  if (keyResult instanceof Promise) {
23891
23887
  throw new Error("Async schemas not supported in object keys currently");
@@ -24090,6 +24086,7 @@ var $ZodFile = /* @__PURE__ */ $constructor("$ZodFile", (inst, def) => {
24090
24086
  });
24091
24087
  var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
24092
24088
  $ZodType.init(inst, def);
24089
+ inst._zod.optin = "optional";
24093
24090
  inst._zod.parse = (payload, ctx) => {
24094
24091
  if (ctx.direction === "backward") {
24095
24092
  throw new $ZodEncodeError(inst.constructor.name);
@@ -24099,6 +24096,7 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
24099
24096
  const output = _out instanceof Promise ? _out : Promise.resolve(_out);
24100
24097
  return output.then((output2) => {
24101
24098
  payload.value = output2;
24099
+ payload.fallback = true;
24102
24100
  return payload;
24103
24101
  });
24104
24102
  }
@@ -24106,11 +24104,12 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
24106
24104
  throw new $ZodAsyncError;
24107
24105
  }
24108
24106
  payload.value = _out;
24107
+ payload.fallback = true;
24109
24108
  return payload;
24110
24109
  };
24111
24110
  });
24112
24111
  function handleOptionalResult(result, input) {
24113
- if (result.issues.length && input === undefined) {
24112
+ if (input === undefined && (result.issues.length || result.fallback)) {
24114
24113
  return { issues: [], value: undefined };
24115
24114
  }
24116
24115
  return result;
@@ -24128,10 +24127,11 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
24128
24127
  });
24129
24128
  inst._zod.parse = (payload, ctx) => {
24130
24129
  if (def.innerType._zod.optin === "optional") {
24130
+ const input = payload.value;
24131
24131
  const result = def.innerType._zod.run(payload, ctx);
24132
24132
  if (result instanceof Promise)
24133
- return result.then((r) => handleOptionalResult(r, payload.value));
24134
- return handleOptionalResult(result, payload.value);
24133
+ return result.then((r) => handleOptionalResult(r, input));
24134
+ return handleOptionalResult(result, input);
24135
24135
  }
24136
24136
  if (payload.value === undefined) {
24137
24137
  return payload;
@@ -24247,7 +24247,7 @@ var $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => {
24247
24247
  });
24248
24248
  var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
24249
24249
  $ZodType.init(inst, def);
24250
- defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
24250
+ inst._zod.optin = "optional";
24251
24251
  defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
24252
24252
  defineLazy(inst._zod, "values", () => def.innerType._zod.values);
24253
24253
  inst._zod.parse = (payload, ctx) => {
@@ -24267,6 +24267,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
24267
24267
  input: payload.value
24268
24268
  });
24269
24269
  payload.issues = [];
24270
+ payload.fallback = true;
24270
24271
  }
24271
24272
  return payload;
24272
24273
  });
@@ -24281,6 +24282,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
24281
24282
  input: payload.value
24282
24283
  });
24283
24284
  payload.issues = [];
24285
+ payload.fallback = true;
24284
24286
  }
24285
24287
  return payload;
24286
24288
  };
@@ -24326,7 +24328,7 @@ function handlePipeResult(left, next, ctx) {
24326
24328
  left.aborted = true;
24327
24329
  return left;
24328
24330
  }
24329
- return next._zod.run({ value: left.value, issues: left.issues }, ctx);
24331
+ return next._zod.run({ value: left.value, issues: left.issues, fallback: left.fallback }, ctx);
24330
24332
  }
24331
24333
  var $ZodCodec = /* @__PURE__ */ $constructor("$ZodCodec", (inst, def) => {
24332
24334
  $ZodType.init(inst, def);
@@ -24378,6 +24380,9 @@ function handleCodecTxResult(left, value, nextSchema, ctx) {
24378
24380
  }
24379
24381
  return nextSchema._zod.run({ value, issues: left.issues }, ctx);
24380
24382
  }
24383
+ var $ZodPreprocess = /* @__PURE__ */ $constructor("$ZodPreprocess", (inst, def) => {
24384
+ $ZodPipe.init(inst, def);
24385
+ });
24381
24386
  var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
24382
24387
  $ZodType.init(inst, def);
24383
24388
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
@@ -24529,7 +24534,12 @@ var $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {
24529
24534
  });
24530
24535
  var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
24531
24536
  $ZodType.init(inst, def);
24532
- defineLazy(inst._zod, "innerType", () => def.getter());
24537
+ defineLazy(inst._zod, "innerType", () => {
24538
+ const d = def;
24539
+ if (!d._cachedInner)
24540
+ d._cachedInner = def.getter();
24541
+ return d._cachedInner;
24542
+ });
24533
24543
  defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
24534
24544
  defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
24535
24545
  defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? undefined);
@@ -24569,7 +24579,7 @@ function handleRefineResult(result, payload, input, inst) {
24569
24579
  payload.issues.push(issue(_iss));
24570
24580
  }
24571
24581
  }
24572
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/index.js
24582
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/index.js
24573
24583
  var exports_locales = {};
24574
24584
  __export(exports_locales, {
24575
24585
  zhTW: () => zh_TW_default,
@@ -24586,6 +24596,7 @@ __export(exports_locales, {
24586
24596
  sv: () => sv_default,
24587
24597
  sl: () => sl_default,
24588
24598
  ru: () => ru_default,
24599
+ ro: () => ro_default,
24589
24600
  pt: () => pt_default,
24590
24601
  ps: () => ps_default,
24591
24602
  pl: () => pl_default,
@@ -24605,6 +24616,7 @@ __export(exports_locales, {
24605
24616
  id: () => id_default,
24606
24617
  hy: () => hy_default,
24607
24618
  hu: () => hu_default,
24619
+ hr: () => hr_default,
24608
24620
  he: () => he_default,
24609
24621
  frCA: () => fr_CA_default,
24610
24622
  fr: () => fr_default,
@@ -24613,6 +24625,7 @@ __export(exports_locales, {
24613
24625
  es: () => es_default,
24614
24626
  eo: () => eo_default,
24615
24627
  en: () => en_default,
24628
+ el: () => el_default,
24616
24629
  de: () => de_default,
24617
24630
  da: () => da_default,
24618
24631
  cs: () => cs_default,
@@ -24623,7 +24636,7 @@ __export(exports_locales, {
24623
24636
  ar: () => ar_default
24624
24637
  });
24625
24638
 
24626
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ar.js
24639
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ar.js
24627
24640
  var error = () => {
24628
24641
  const Sizable = {
24629
24642
  string: { unit: "حرف", verb: "أن يحوي" },
@@ -24729,7 +24742,7 @@ function ar_default() {
24729
24742
  localeError: error()
24730
24743
  };
24731
24744
  }
24732
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/az.js
24745
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/az.js
24733
24746
  var error2 = () => {
24734
24747
  const Sizable = {
24735
24748
  string: { unit: "simvol", verb: "olmalıdır" },
@@ -24834,7 +24847,7 @@ function az_default() {
24834
24847
  localeError: error2()
24835
24848
  };
24836
24849
  }
24837
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/be.js
24850
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/be.js
24838
24851
  function getBelarusianPlural(count, one, few, many) {
24839
24852
  const absCount = Math.abs(count);
24840
24853
  const lastDigit = absCount % 10;
@@ -24990,7 +25003,7 @@ function be_default() {
24990
25003
  localeError: error3()
24991
25004
  };
24992
25005
  }
24993
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/bg.js
25006
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/bg.js
24994
25007
  var error4 = () => {
24995
25008
  const Sizable = {
24996
25009
  string: { unit: "символа", verb: "да съдържа" },
@@ -25110,7 +25123,7 @@ function bg_default() {
25110
25123
  localeError: error4()
25111
25124
  };
25112
25125
  }
25113
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ca.js
25126
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ca.js
25114
25127
  var error5 = () => {
25115
25128
  const Sizable = {
25116
25129
  string: { unit: "caràcters", verb: "contenir" },
@@ -25217,7 +25230,7 @@ function ca_default() {
25217
25230
  localeError: error5()
25218
25231
  };
25219
25232
  }
25220
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/cs.js
25233
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/cs.js
25221
25234
  var error6 = () => {
25222
25235
  const Sizable = {
25223
25236
  string: { unit: "znaků", verb: "mít" },
@@ -25328,7 +25341,7 @@ function cs_default() {
25328
25341
  localeError: error6()
25329
25342
  };
25330
25343
  }
25331
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/da.js
25344
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/da.js
25332
25345
  var error7 = () => {
25333
25346
  const Sizable = {
25334
25347
  string: { unit: "tegn", verb: "havde" },
@@ -25443,7 +25456,7 @@ function da_default() {
25443
25456
  localeError: error7()
25444
25457
  };
25445
25458
  }
25446
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/de.js
25459
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/de.js
25447
25460
  var error8 = () => {
25448
25461
  const Sizable = {
25449
25462
  string: { unit: "Zeichen", verb: "zu haben" },
@@ -25551,8 +25564,117 @@ function de_default() {
25551
25564
  localeError: error8()
25552
25565
  };
25553
25566
  }
25554
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/en.js
25567
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/el.js
25555
25568
  var error9 = () => {
25569
+ const Sizable = {
25570
+ string: { unit: "χαρακτήρες", verb: "να έχει" },
25571
+ file: { unit: "bytes", verb: "να έχει" },
25572
+ array: { unit: "στοιχεία", verb: "να έχει" },
25573
+ set: { unit: "στοιχεία", verb: "να έχει" },
25574
+ map: { unit: "καταχωρήσεις", verb: "να έχει" }
25575
+ };
25576
+ function getSizing(origin) {
25577
+ return Sizable[origin] ?? null;
25578
+ }
25579
+ const FormatDictionary = {
25580
+ regex: "είσοδος",
25581
+ email: "διεύθυνση email",
25582
+ url: "URL",
25583
+ emoji: "emoji",
25584
+ uuid: "UUID",
25585
+ uuidv4: "UUIDv4",
25586
+ uuidv6: "UUIDv6",
25587
+ nanoid: "nanoid",
25588
+ guid: "GUID",
25589
+ cuid: "cuid",
25590
+ cuid2: "cuid2",
25591
+ ulid: "ULID",
25592
+ xid: "XID",
25593
+ ksuid: "KSUID",
25594
+ datetime: "ISO ημερομηνία και ώρα",
25595
+ date: "ISO ημερομηνία",
25596
+ time: "ISO ώρα",
25597
+ duration: "ISO διάρκεια",
25598
+ ipv4: "διεύθυνση IPv4",
25599
+ ipv6: "διεύθυνση IPv6",
25600
+ mac: "διεύθυνση MAC",
25601
+ cidrv4: "εύρος IPv4",
25602
+ cidrv6: "εύρος IPv6",
25603
+ base64: "συμβολοσειρά κωδικοποιημένη σε base64",
25604
+ base64url: "συμβολοσειρά κωδικοποιημένη σε base64url",
25605
+ json_string: "συμβολοσειρά JSON",
25606
+ e164: "αριθμός E.164",
25607
+ jwt: "JWT",
25608
+ template_literal: "είσοδος"
25609
+ };
25610
+ const TypeDictionary = {
25611
+ nan: "NaN"
25612
+ };
25613
+ return (issue2) => {
25614
+ switch (issue2.code) {
25615
+ case "invalid_type": {
25616
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
25617
+ const receivedType = parsedType(issue2.input);
25618
+ const received = TypeDictionary[receivedType] ?? receivedType;
25619
+ if (typeof issue2.expected === "string" && /^[A-Z]/.test(issue2.expected)) {
25620
+ return `Μη έγκυρη είσοδος: αναμενόταν instanceof ${issue2.expected}, λήφθηκε ${received}`;
25621
+ }
25622
+ return `Μη έγκυρη είσοδος: αναμενόταν ${expected}, λήφθηκε ${received}`;
25623
+ }
25624
+ case "invalid_value":
25625
+ if (issue2.values.length === 1)
25626
+ return `Μη έγκυρη είσοδος: αναμενόταν ${stringifyPrimitive(issue2.values[0])}`;
25627
+ return `Μη έγκυρη επιλογή: αναμενόταν ένα από ${joinValues(issue2.values, "|")}`;
25628
+ case "too_big": {
25629
+ const adj = issue2.inclusive ? "<=" : "<";
25630
+ const sizing = getSizing(issue2.origin);
25631
+ if (sizing)
25632
+ return `Πολύ μεγάλο: αναμενόταν ${issue2.origin ?? "τιμή"} να έχει ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "στοιχεία"}`;
25633
+ return `Πολύ μεγάλο: αναμενόταν ${issue2.origin ?? "τιμή"} να είναι ${adj}${issue2.maximum.toString()}`;
25634
+ }
25635
+ case "too_small": {
25636
+ const adj = issue2.inclusive ? ">=" : ">";
25637
+ const sizing = getSizing(issue2.origin);
25638
+ if (sizing) {
25639
+ return `Πολύ μικρό: αναμενόταν ${issue2.origin} να έχει ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
25640
+ }
25641
+ return `Πολύ μικρό: αναμενόταν ${issue2.origin} να είναι ${adj}${issue2.minimum.toString()}`;
25642
+ }
25643
+ case "invalid_format": {
25644
+ const _issue = issue2;
25645
+ if (_issue.format === "starts_with") {
25646
+ return `Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${_issue.prefix}"`;
25647
+ }
25648
+ if (_issue.format === "ends_with")
25649
+ return `Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${_issue.suffix}"`;
25650
+ if (_issue.format === "includes")
25651
+ return `Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${_issue.includes}"`;
25652
+ if (_issue.format === "regex")
25653
+ return `Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${_issue.pattern}`;
25654
+ return `Μη έγκυρο: ${FormatDictionary[_issue.format] ?? issue2.format}`;
25655
+ }
25656
+ case "not_multiple_of":
25657
+ return `Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${issue2.divisor}`;
25658
+ case "unrecognized_keys":
25659
+ return `Άγνωστ${issue2.keys.length > 1 ? "α" : "ο"} κλειδ${issue2.keys.length > 1 ? "ιά" : "ί"}: ${joinValues(issue2.keys, ", ")}`;
25660
+ case "invalid_key":
25661
+ return `Μη έγκυρο κλειδί στο ${issue2.origin}`;
25662
+ case "invalid_union":
25663
+ return "Μη έγκυρη είσοδος";
25664
+ case "invalid_element":
25665
+ return `Μη έγκυρη τιμή στο ${issue2.origin}`;
25666
+ default:
25667
+ return `Μη έγκυρη είσοδος`;
25668
+ }
25669
+ };
25670
+ };
25671
+ function el_default() {
25672
+ return {
25673
+ localeError: error9()
25674
+ };
25675
+ }
25676
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/en.js
25677
+ var error10 = () => {
25556
25678
  const Sizable = {
25557
25679
  string: { unit: "characters", verb: "to have" },
25558
25680
  file: { unit: "bytes", verb: "to have" },
@@ -25644,6 +25766,10 @@ var error9 = () => {
25644
25766
  case "invalid_key":
25645
25767
  return `Invalid key in ${issue2.origin}`;
25646
25768
  case "invalid_union":
25769
+ if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) {
25770
+ const opts = issue2.options.map((o) => `'${o}'`).join(" | ");
25771
+ return `Invalid discriminator value. Expected ${opts}`;
25772
+ }
25647
25773
  return "Invalid input";
25648
25774
  case "invalid_element":
25649
25775
  return `Invalid value in ${issue2.origin}`;
@@ -25654,11 +25780,11 @@ var error9 = () => {
25654
25780
  };
25655
25781
  function en_default() {
25656
25782
  return {
25657
- localeError: error9()
25783
+ localeError: error10()
25658
25784
  };
25659
25785
  }
25660
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/eo.js
25661
- var error10 = () => {
25786
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/eo.js
25787
+ var error11 = () => {
25662
25788
  const Sizable = {
25663
25789
  string: { unit: "karaktrojn", verb: "havi" },
25664
25790
  file: { unit: "bajtojn", verb: "havi" },
@@ -25763,11 +25889,11 @@ var error10 = () => {
25763
25889
  };
25764
25890
  function eo_default() {
25765
25891
  return {
25766
- localeError: error10()
25892
+ localeError: error11()
25767
25893
  };
25768
25894
  }
25769
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/es.js
25770
- var error11 = () => {
25895
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/es.js
25896
+ var error12 = () => {
25771
25897
  const Sizable = {
25772
25898
  string: { unit: "caracteres", verb: "tener" },
25773
25899
  file: { unit: "bytes", verb: "tener" },
@@ -25895,11 +26021,11 @@ var error11 = () => {
25895
26021
  };
25896
26022
  function es_default() {
25897
26023
  return {
25898
- localeError: error11()
26024
+ localeError: error12()
25899
26025
  };
25900
26026
  }
25901
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/fa.js
25902
- var error12 = () => {
26027
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/fa.js
26028
+ var error13 = () => {
25903
26029
  const Sizable = {
25904
26030
  string: { unit: "کاراکتر", verb: "داشته باشد" },
25905
26031
  file: { unit: "بایت", verb: "داشته باشد" },
@@ -26009,11 +26135,11 @@ var error12 = () => {
26009
26135
  };
26010
26136
  function fa_default() {
26011
26137
  return {
26012
- localeError: error12()
26138
+ localeError: error13()
26013
26139
  };
26014
26140
  }
26015
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/fi.js
26016
- var error13 = () => {
26141
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/fi.js
26142
+ var error14 = () => {
26017
26143
  const Sizable = {
26018
26144
  string: { unit: "merkkiä", subject: "merkkijonon" },
26019
26145
  file: { unit: "tavua", subject: "tiedoston" },
@@ -26121,11 +26247,11 @@ var error13 = () => {
26121
26247
  };
26122
26248
  function fi_default() {
26123
26249
  return {
26124
- localeError: error13()
26250
+ localeError: error14()
26125
26251
  };
26126
26252
  }
26127
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/fr.js
26128
- var error14 = () => {
26253
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/fr.js
26254
+ var error15 = () => {
26129
26255
  const Sizable = {
26130
26256
  string: { unit: "caractères", verb: "avoir" },
26131
26257
  file: { unit: "octets", verb: "avoir" },
@@ -26166,9 +26292,27 @@ var error14 = () => {
26166
26292
  template_literal: "entrée"
26167
26293
  };
26168
26294
  const TypeDictionary = {
26169
- nan: "NaN",
26295
+ string: "chaîne",
26170
26296
  number: "nombre",
26171
- array: "tableau"
26297
+ int: "entier",
26298
+ boolean: "booléen",
26299
+ bigint: "grand entier",
26300
+ symbol: "symbole",
26301
+ undefined: "indéfini",
26302
+ null: "null",
26303
+ never: "jamais",
26304
+ void: "vide",
26305
+ date: "date",
26306
+ array: "tableau",
26307
+ object: "objet",
26308
+ tuple: "tuple",
26309
+ record: "enregistrement",
26310
+ map: "carte",
26311
+ set: "ensemble",
26312
+ file: "fichier",
26313
+ nonoptional: "non-optionnel",
26314
+ nan: "NaN",
26315
+ function: "fonction"
26172
26316
  };
26173
26317
  return (issue2) => {
26174
26318
  switch (issue2.code) {
@@ -26189,16 +26333,15 @@ var error14 = () => {
26189
26333
  const adj = issue2.inclusive ? "<=" : "<";
26190
26334
  const sizing = getSizing(issue2.origin);
26191
26335
  if (sizing)
26192
- return `Trop grand : ${issue2.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "élément(s)"}`;
26193
- return `Trop grand : ${issue2.origin ?? "valeur"} doit être ${adj}${issue2.maximum.toString()}`;
26336
+ return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "élément(s)"}`;
26337
+ return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit être ${adj}${issue2.maximum.toString()}`;
26194
26338
  }
26195
26339
  case "too_small": {
26196
26340
  const adj = issue2.inclusive ? ">=" : ">";
26197
26341
  const sizing = getSizing(issue2.origin);
26198
- if (sizing) {
26199
- return `Trop petit : ${issue2.origin} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
26200
- }
26201
- return `Trop petit : ${issue2.origin} doit être ${adj}${issue2.minimum.toString()}`;
26342
+ if (sizing)
26343
+ return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
26344
+ return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit être ${adj}${issue2.minimum.toString()}`;
26202
26345
  }
26203
26346
  case "invalid_format": {
26204
26347
  const _issue = issue2;
@@ -26229,11 +26372,11 @@ var error14 = () => {
26229
26372
  };
26230
26373
  function fr_default() {
26231
26374
  return {
26232
- localeError: error14()
26375
+ localeError: error15()
26233
26376
  };
26234
26377
  }
26235
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/fr-CA.js
26236
- var error15 = () => {
26378
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/fr-CA.js
26379
+ var error16 = () => {
26237
26380
  const Sizable = {
26238
26381
  string: { unit: "caractères", verb: "avoir" },
26239
26382
  file: { unit: "octets", verb: "avoir" },
@@ -26336,11 +26479,11 @@ var error15 = () => {
26336
26479
  };
26337
26480
  function fr_CA_default() {
26338
26481
  return {
26339
- localeError: error15()
26482
+ localeError: error16()
26340
26483
  };
26341
26484
  }
26342
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/he.js
26343
- var error16 = () => {
26485
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/he.js
26486
+ var error17 = () => {
26344
26487
  const TypeNames = {
26345
26488
  string: { label: "מחרוזת", gender: "f" },
26346
26489
  number: { label: "מספר", gender: "m" },
@@ -26529,11 +26672,133 @@ var error16 = () => {
26529
26672
  };
26530
26673
  function he_default() {
26531
26674
  return {
26532
- localeError: error16()
26675
+ localeError: error17()
26533
26676
  };
26534
26677
  }
26535
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/hu.js
26536
- var error17 = () => {
26678
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/hr.js
26679
+ var error18 = () => {
26680
+ const Sizable = {
26681
+ string: { unit: "znakova", verb: "imati" },
26682
+ file: { unit: "bajtova", verb: "imati" },
26683
+ array: { unit: "stavki", verb: "imati" },
26684
+ set: { unit: "stavki", verb: "imati" }
26685
+ };
26686
+ function getSizing(origin) {
26687
+ return Sizable[origin] ?? null;
26688
+ }
26689
+ const FormatDictionary = {
26690
+ regex: "unos",
26691
+ email: "email adresa",
26692
+ url: "URL",
26693
+ emoji: "emoji",
26694
+ uuid: "UUID",
26695
+ uuidv4: "UUIDv4",
26696
+ uuidv6: "UUIDv6",
26697
+ nanoid: "nanoid",
26698
+ guid: "GUID",
26699
+ cuid: "cuid",
26700
+ cuid2: "cuid2",
26701
+ ulid: "ULID",
26702
+ xid: "XID",
26703
+ ksuid: "KSUID",
26704
+ datetime: "ISO datum i vrijeme",
26705
+ date: "ISO datum",
26706
+ time: "ISO vrijeme",
26707
+ duration: "ISO trajanje",
26708
+ ipv4: "IPv4 adresa",
26709
+ ipv6: "IPv6 adresa",
26710
+ cidrv4: "IPv4 raspon",
26711
+ cidrv6: "IPv6 raspon",
26712
+ base64: "base64 kodirani tekst",
26713
+ base64url: "base64url kodirani tekst",
26714
+ json_string: "JSON tekst",
26715
+ e164: "E.164 broj",
26716
+ jwt: "JWT",
26717
+ template_literal: "unos"
26718
+ };
26719
+ const TypeDictionary = {
26720
+ nan: "NaN",
26721
+ string: "tekst",
26722
+ number: "broj",
26723
+ boolean: "boolean",
26724
+ array: "niz",
26725
+ object: "objekt",
26726
+ set: "skup",
26727
+ file: "datoteka",
26728
+ date: "datum",
26729
+ bigint: "bigint",
26730
+ symbol: "simbol",
26731
+ undefined: "undefined",
26732
+ null: "null",
26733
+ function: "funkcija",
26734
+ map: "mapa"
26735
+ };
26736
+ return (issue2) => {
26737
+ switch (issue2.code) {
26738
+ case "invalid_type": {
26739
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
26740
+ const receivedType = parsedType(issue2.input);
26741
+ const received = TypeDictionary[receivedType] ?? receivedType;
26742
+ if (/^[A-Z]/.test(issue2.expected)) {
26743
+ return `Neispravan unos: očekuje se instanceof ${issue2.expected}, a primljeno je ${received}`;
26744
+ }
26745
+ return `Neispravan unos: očekuje se ${expected}, a primljeno je ${received}`;
26746
+ }
26747
+ case "invalid_value":
26748
+ if (issue2.values.length === 1)
26749
+ return `Neispravna vrijednost: očekivano ${stringifyPrimitive(issue2.values[0])}`;
26750
+ return `Neispravna opcija: očekivano jedno od ${joinValues(issue2.values, "|")}`;
26751
+ case "too_big": {
26752
+ const adj = issue2.inclusive ? "<=" : "<";
26753
+ const sizing = getSizing(issue2.origin);
26754
+ const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
26755
+ if (sizing)
26756
+ return `Preveliko: očekivano da ${origin ?? "vrijednost"} ima ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemenata"}`;
26757
+ return `Preveliko: očekivano da ${origin ?? "vrijednost"} bude ${adj}${issue2.maximum.toString()}`;
26758
+ }
26759
+ case "too_small": {
26760
+ const adj = issue2.inclusive ? ">=" : ">";
26761
+ const sizing = getSizing(issue2.origin);
26762
+ const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
26763
+ if (sizing) {
26764
+ return `Premalo: očekivano da ${origin} ima ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
26765
+ }
26766
+ return `Premalo: očekivano da ${origin} bude ${adj}${issue2.minimum.toString()}`;
26767
+ }
26768
+ case "invalid_format": {
26769
+ const _issue = issue2;
26770
+ if (_issue.format === "starts_with")
26771
+ return `Neispravan tekst: mora započinjati s "${_issue.prefix}"`;
26772
+ if (_issue.format === "ends_with")
26773
+ return `Neispravan tekst: mora završavati s "${_issue.suffix}"`;
26774
+ if (_issue.format === "includes")
26775
+ return `Neispravan tekst: mora sadržavati "${_issue.includes}"`;
26776
+ if (_issue.format === "regex")
26777
+ return `Neispravan tekst: mora odgovarati uzorku ${_issue.pattern}`;
26778
+ return `Neispravna ${FormatDictionary[_issue.format] ?? issue2.format}`;
26779
+ }
26780
+ case "not_multiple_of":
26781
+ return `Neispravan broj: mora biti višekratnik od ${issue2.divisor}`;
26782
+ case "unrecognized_keys":
26783
+ return `Neprepoznat${issue2.keys.length > 1 ? "i ključevi" : " ključ"}: ${joinValues(issue2.keys, ", ")}`;
26784
+ case "invalid_key":
26785
+ return `Neispravan ključ u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
26786
+ case "invalid_union":
26787
+ return "Neispravan unos";
26788
+ case "invalid_element":
26789
+ return `Neispravna vrijednost u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
26790
+ default:
26791
+ return `Neispravan unos`;
26792
+ }
26793
+ };
26794
+ };
26795
+ function hr_default() {
26796
+ return {
26797
+ localeError: error18()
26798
+ };
26799
+ }
26800
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/hu.js
26801
+ var error19 = () => {
26537
26802
  const Sizable = {
26538
26803
  string: { unit: "karakter", verb: "legyen" },
26539
26804
  file: { unit: "byte", verb: "legyen" },
@@ -26637,10 +26902,10 @@ var error17 = () => {
26637
26902
  };
26638
26903
  function hu_default() {
26639
26904
  return {
26640
- localeError: error17()
26905
+ localeError: error19()
26641
26906
  };
26642
26907
  }
26643
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/hy.js
26908
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/hy.js
26644
26909
  function getArmenianPlural(count, one, many) {
26645
26910
  return Math.abs(count) === 1 ? one : many;
26646
26911
  }
@@ -26651,7 +26916,7 @@ function withDefiniteArticle(word) {
26651
26916
  const lastChar = word[word.length - 1];
26652
26917
  return word + (vowels.includes(lastChar) ? "ն" : "ը");
26653
26918
  }
26654
- var error18 = () => {
26919
+ var error20 = () => {
26655
26920
  const Sizable = {
26656
26921
  string: {
26657
26922
  unit: {
@@ -26784,11 +27049,11 @@ var error18 = () => {
26784
27049
  };
26785
27050
  function hy_default() {
26786
27051
  return {
26787
- localeError: error18()
27052
+ localeError: error20()
26788
27053
  };
26789
27054
  }
26790
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/id.js
26791
- var error19 = () => {
27055
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/id.js
27056
+ var error21 = () => {
26792
27057
  const Sizable = {
26793
27058
  string: { unit: "karakter", verb: "memiliki" },
26794
27059
  file: { unit: "byte", verb: "memiliki" },
@@ -26890,11 +27155,11 @@ var error19 = () => {
26890
27155
  };
26891
27156
  function id_default() {
26892
27157
  return {
26893
- localeError: error19()
27158
+ localeError: error21()
26894
27159
  };
26895
27160
  }
26896
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/is.js
26897
- var error20 = () => {
27161
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/is.js
27162
+ var error22 = () => {
26898
27163
  const Sizable = {
26899
27164
  string: { unit: "stafi", verb: "að hafa" },
26900
27165
  file: { unit: "bæti", verb: "að hafa" },
@@ -26999,11 +27264,11 @@ var error20 = () => {
26999
27264
  };
27000
27265
  function is_default() {
27001
27266
  return {
27002
- localeError: error20()
27267
+ localeError: error22()
27003
27268
  };
27004
27269
  }
27005
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/it.js
27006
- var error21 = () => {
27270
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/it.js
27271
+ var error23 = () => {
27007
27272
  const Sizable = {
27008
27273
  string: { unit: "caratteri", verb: "avere" },
27009
27274
  file: { unit: "byte", verb: "avere" },
@@ -27088,7 +27353,7 @@ var error21 = () => {
27088
27353
  return `Stringa non valida: deve includere "${_issue.includes}"`;
27089
27354
  if (_issue.format === "regex")
27090
27355
  return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
27091
- return `Invalid ${FormatDictionary[_issue.format] ?? issue2.format}`;
27356
+ return `Input non valido: ${FormatDictionary[_issue.format] ?? issue2.format}`;
27092
27357
  }
27093
27358
  case "not_multiple_of":
27094
27359
  return `Numero non valido: deve essere un multiplo di ${issue2.divisor}`;
@@ -27107,11 +27372,11 @@ var error21 = () => {
27107
27372
  };
27108
27373
  function it_default() {
27109
27374
  return {
27110
- localeError: error21()
27375
+ localeError: error23()
27111
27376
  };
27112
27377
  }
27113
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ja.js
27114
- var error22 = () => {
27378
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ja.js
27379
+ var error24 = () => {
27115
27380
  const Sizable = {
27116
27381
  string: { unit: "文字", verb: "である" },
27117
27382
  file: { unit: "バイト", verb: "である" },
@@ -27214,11 +27479,11 @@ var error22 = () => {
27214
27479
  };
27215
27480
  function ja_default() {
27216
27481
  return {
27217
- localeError: error22()
27482
+ localeError: error24()
27218
27483
  };
27219
27484
  }
27220
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ka.js
27221
- var error23 = () => {
27485
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ka.js
27486
+ var error25 = () => {
27222
27487
  const Sizable = {
27223
27488
  string: { unit: "სიმბოლო", verb: "უნდა შეიცავდეს" },
27224
27489
  file: { unit: "ბაიტი", verb: "უნდა შეიცავდეს" },
@@ -27251,9 +27516,9 @@ var error23 = () => {
27251
27516
  ipv6: "IPv6 მისამართი",
27252
27517
  cidrv4: "IPv4 დიაპაზონი",
27253
27518
  cidrv6: "IPv6 დიაპაზონი",
27254
- base64: "base64-კოდირებული სტრინგი",
27255
- base64url: "base64url-კოდირებული სტრინგი",
27256
- json_string: "JSON სტრინგი",
27519
+ base64: "base64-კოდირებული ველი",
27520
+ base64url: "base64url-კოდირებული ველი",
27521
+ json_string: "JSON ველი",
27257
27522
  e164: "E.164 ნომერი",
27258
27523
  jwt: "JWT",
27259
27524
  template_literal: "შეყვანა"
@@ -27261,7 +27526,7 @@ var error23 = () => {
27261
27526
  const TypeDictionary = {
27262
27527
  nan: "NaN",
27263
27528
  number: "რიცხვი",
27264
- string: "სტრინგი",
27529
+ string: "ველი",
27265
27530
  boolean: "ბულეანი",
27266
27531
  function: "ფუნქცია",
27267
27532
  array: "მასივი"
@@ -27299,14 +27564,14 @@ var error23 = () => {
27299
27564
  case "invalid_format": {
27300
27565
  const _issue = issue2;
27301
27566
  if (_issue.format === "starts_with") {
27302
- return `არასწორი სტრინგი: უნდა იწყებოდეს "${_issue.prefix}"-ით`;
27567
+ return `არასწორი ველი: უნდა იწყებოდეს "${_issue.prefix}"-ით`;
27303
27568
  }
27304
27569
  if (_issue.format === "ends_with")
27305
- return `არასწორი სტრინგი: უნდა მთავრდებოდეს "${_issue.suffix}"-ით`;
27570
+ return `არასწორი ველი: უნდა მთავრდებოდეს "${_issue.suffix}"-ით`;
27306
27571
  if (_issue.format === "includes")
27307
- return `არასწორი სტრინგი: უნდა შეიცავდეს "${_issue.includes}"-ს`;
27572
+ return `არასწორი ველი: უნდა შეიცავდეს "${_issue.includes}"-ს`;
27308
27573
  if (_issue.format === "regex")
27309
- return `არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${_issue.pattern}`;
27574
+ return `არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${_issue.pattern}`;
27310
27575
  return `არასწორი ${FormatDictionary[_issue.format] ?? issue2.format}`;
27311
27576
  }
27312
27577
  case "not_multiple_of":
@@ -27326,11 +27591,11 @@ var error23 = () => {
27326
27591
  };
27327
27592
  function ka_default() {
27328
27593
  return {
27329
- localeError: error23()
27594
+ localeError: error25()
27330
27595
  };
27331
27596
  }
27332
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/km.js
27333
- var error24 = () => {
27597
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/km.js
27598
+ var error26 = () => {
27334
27599
  const Sizable = {
27335
27600
  string: { unit: "តួអក្សរ", verb: "គួរមាន" },
27336
27601
  file: { unit: "បៃ", verb: "គួរមាន" },
@@ -27436,16 +27701,16 @@ var error24 = () => {
27436
27701
  };
27437
27702
  function km_default() {
27438
27703
  return {
27439
- localeError: error24()
27704
+ localeError: error26()
27440
27705
  };
27441
27706
  }
27442
27707
 
27443
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/kh.js
27708
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/kh.js
27444
27709
  function kh_default() {
27445
27710
  return km_default();
27446
27711
  }
27447
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ko.js
27448
- var error25 = () => {
27712
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ko.js
27713
+ var error27 = () => {
27449
27714
  const Sizable = {
27450
27715
  string: { unit: "문자", verb: "to have" },
27451
27716
  file: { unit: "바이트", verb: "to have" },
@@ -27552,10 +27817,10 @@ var error25 = () => {
27552
27817
  };
27553
27818
  function ko_default() {
27554
27819
  return {
27555
- localeError: error25()
27820
+ localeError: error27()
27556
27821
  };
27557
27822
  }
27558
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/lt.js
27823
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/lt.js
27559
27824
  var capitalizeFirstCharacter = (text) => {
27560
27825
  return text.charAt(0).toUpperCase() + text.slice(1);
27561
27826
  };
@@ -27569,7 +27834,7 @@ function getUnitTypeFromNumber(number2) {
27569
27834
  return "one";
27570
27835
  return "few";
27571
27836
  }
27572
- var error26 = () => {
27837
+ var error28 = () => {
27573
27838
  const Sizable = {
27574
27839
  string: {
27575
27840
  unit: {
@@ -27755,11 +28020,11 @@ var error26 = () => {
27755
28020
  };
27756
28021
  function lt_default() {
27757
28022
  return {
27758
- localeError: error26()
28023
+ localeError: error28()
27759
28024
  };
27760
28025
  }
27761
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/mk.js
27762
- var error27 = () => {
28026
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/mk.js
28027
+ var error29 = () => {
27763
28028
  const Sizable = {
27764
28029
  string: { unit: "знаци", verb: "да имаат" },
27765
28030
  file: { unit: "бајти", verb: "да имаат" },
@@ -27864,11 +28129,11 @@ var error27 = () => {
27864
28129
  };
27865
28130
  function mk_default() {
27866
28131
  return {
27867
- localeError: error27()
28132
+ localeError: error29()
27868
28133
  };
27869
28134
  }
27870
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ms.js
27871
- var error28 = () => {
28135
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ms.js
28136
+ var error30 = () => {
27872
28137
  const Sizable = {
27873
28138
  string: { unit: "aksara", verb: "mempunyai" },
27874
28139
  file: { unit: "bait", verb: "mempunyai" },
@@ -27971,11 +28236,11 @@ var error28 = () => {
27971
28236
  };
27972
28237
  function ms_default() {
27973
28238
  return {
27974
- localeError: error28()
28239
+ localeError: error30()
27975
28240
  };
27976
28241
  }
27977
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/nl.js
27978
- var error29 = () => {
28242
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/nl.js
28243
+ var error31 = () => {
27979
28244
  const Sizable = {
27980
28245
  string: { unit: "tekens", verb: "heeft" },
27981
28246
  file: { unit: "bytes", verb: "heeft" },
@@ -28081,11 +28346,11 @@ var error29 = () => {
28081
28346
  };
28082
28347
  function nl_default() {
28083
28348
  return {
28084
- localeError: error29()
28349
+ localeError: error31()
28085
28350
  };
28086
28351
  }
28087
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/no.js
28088
- var error30 = () => {
28352
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/no.js
28353
+ var error32 = () => {
28089
28354
  const Sizable = {
28090
28355
  string: { unit: "tegn", verb: "å ha" },
28091
28356
  file: { unit: "bytes", verb: "å ha" },
@@ -28189,11 +28454,11 @@ var error30 = () => {
28189
28454
  };
28190
28455
  function no_default() {
28191
28456
  return {
28192
- localeError: error30()
28457
+ localeError: error32()
28193
28458
  };
28194
28459
  }
28195
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ota.js
28196
- var error31 = () => {
28460
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ota.js
28461
+ var error33 = () => {
28197
28462
  const Sizable = {
28198
28463
  string: { unit: "harf", verb: "olmalıdır" },
28199
28464
  file: { unit: "bayt", verb: "olmalıdır" },
@@ -28298,11 +28563,11 @@ var error31 = () => {
28298
28563
  };
28299
28564
  function ota_default() {
28300
28565
  return {
28301
- localeError: error31()
28566
+ localeError: error33()
28302
28567
  };
28303
28568
  }
28304
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ps.js
28305
- var error32 = () => {
28569
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ps.js
28570
+ var error34 = () => {
28306
28571
  const Sizable = {
28307
28572
  string: { unit: "توکي", verb: "ولري" },
28308
28573
  file: { unit: "بایټس", verb: "ولري" },
@@ -28412,11 +28677,11 @@ var error32 = () => {
28412
28677
  };
28413
28678
  function ps_default() {
28414
28679
  return {
28415
- localeError: error32()
28680
+ localeError: error34()
28416
28681
  };
28417
28682
  }
28418
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/pl.js
28419
- var error33 = () => {
28683
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/pl.js
28684
+ var error35 = () => {
28420
28685
  const Sizable = {
28421
28686
  string: { unit: "znaków", verb: "mieć" },
28422
28687
  file: { unit: "bajtów", verb: "mieć" },
@@ -28521,11 +28786,11 @@ var error33 = () => {
28521
28786
  };
28522
28787
  function pl_default() {
28523
28788
  return {
28524
- localeError: error33()
28789
+ localeError: error35()
28525
28790
  };
28526
28791
  }
28527
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/pt.js
28528
- var error34 = () => {
28792
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/pt.js
28793
+ var error36 = () => {
28529
28794
  const Sizable = {
28530
28795
  string: { unit: "caracteres", verb: "ter" },
28531
28796
  file: { unit: "bytes", verb: "ter" },
@@ -28629,10 +28894,129 @@ var error34 = () => {
28629
28894
  };
28630
28895
  function pt_default() {
28631
28896
  return {
28632
- localeError: error34()
28897
+ localeError: error36()
28898
+ };
28899
+ }
28900
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ro.js
28901
+ var error37 = () => {
28902
+ const Sizable = {
28903
+ string: { unit: "caractere", verb: "să aibă" },
28904
+ file: { unit: "octeți", verb: "să aibă" },
28905
+ array: { unit: "elemente", verb: "să aibă" },
28906
+ set: { unit: "elemente", verb: "să aibă" },
28907
+ map: { unit: "intrări", verb: "să aibă" }
28908
+ };
28909
+ function getSizing(origin) {
28910
+ return Sizable[origin] ?? null;
28911
+ }
28912
+ const FormatDictionary = {
28913
+ regex: "intrare",
28914
+ email: "adresă de email",
28915
+ url: "URL",
28916
+ emoji: "emoji",
28917
+ uuid: "UUID",
28918
+ uuidv4: "UUIDv4",
28919
+ uuidv6: "UUIDv6",
28920
+ nanoid: "nanoid",
28921
+ guid: "GUID",
28922
+ cuid: "cuid",
28923
+ cuid2: "cuid2",
28924
+ ulid: "ULID",
28925
+ xid: "XID",
28926
+ ksuid: "KSUID",
28927
+ datetime: "dată și oră ISO",
28928
+ date: "dată ISO",
28929
+ time: "oră ISO",
28930
+ duration: "durată ISO",
28931
+ ipv4: "adresă IPv4",
28932
+ ipv6: "adresă IPv6",
28933
+ mac: "adresă MAC",
28934
+ cidrv4: "interval IPv4",
28935
+ cidrv6: "interval IPv6",
28936
+ base64: "șir codat base64",
28937
+ base64url: "șir codat base64url",
28938
+ json_string: "șir JSON",
28939
+ e164: "număr E.164",
28940
+ jwt: "JWT",
28941
+ template_literal: "intrare"
28942
+ };
28943
+ const TypeDictionary = {
28944
+ nan: "NaN",
28945
+ string: "șir",
28946
+ number: "număr",
28947
+ boolean: "boolean",
28948
+ function: "funcție",
28949
+ array: "matrice",
28950
+ object: "obiect",
28951
+ undefined: "nedefinit",
28952
+ symbol: "simbol",
28953
+ bigint: "număr mare",
28954
+ void: "void",
28955
+ never: "never",
28956
+ map: "hartă",
28957
+ set: "set"
28958
+ };
28959
+ return (issue2) => {
28960
+ switch (issue2.code) {
28961
+ case "invalid_type": {
28962
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
28963
+ const receivedType = parsedType(issue2.input);
28964
+ const received = TypeDictionary[receivedType] ?? receivedType;
28965
+ return `Intrare invalidă: așteptat ${expected}, primit ${received}`;
28966
+ }
28967
+ case "invalid_value":
28968
+ if (issue2.values.length === 1)
28969
+ return `Intrare invalidă: așteptat ${stringifyPrimitive(issue2.values[0])}`;
28970
+ return `Opțiune invalidă: așteptat una dintre ${joinValues(issue2.values, "|")}`;
28971
+ case "too_big": {
28972
+ const adj = issue2.inclusive ? "<=" : "<";
28973
+ const sizing = getSizing(issue2.origin);
28974
+ if (sizing)
28975
+ return `Prea mare: așteptat ca ${issue2.origin ?? "valoarea"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemente"}`;
28976
+ return `Prea mare: așteptat ca ${issue2.origin ?? "valoarea"} să fie ${adj}${issue2.maximum.toString()}`;
28977
+ }
28978
+ case "too_small": {
28979
+ const adj = issue2.inclusive ? ">=" : ">";
28980
+ const sizing = getSizing(issue2.origin);
28981
+ if (sizing) {
28982
+ return `Prea mic: așteptat ca ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
28983
+ }
28984
+ return `Prea mic: așteptat ca ${issue2.origin} să fie ${adj}${issue2.minimum.toString()}`;
28985
+ }
28986
+ case "invalid_format": {
28987
+ const _issue = issue2;
28988
+ if (_issue.format === "starts_with") {
28989
+ return `Șir invalid: trebuie să înceapă cu "${_issue.prefix}"`;
28990
+ }
28991
+ if (_issue.format === "ends_with")
28992
+ return `Șir invalid: trebuie să se termine cu "${_issue.suffix}"`;
28993
+ if (_issue.format === "includes")
28994
+ return `Șir invalid: trebuie să includă "${_issue.includes}"`;
28995
+ if (_issue.format === "regex")
28996
+ return `Șir invalid: trebuie să se potrivească cu modelul ${_issue.pattern}`;
28997
+ return `Format invalid: ${FormatDictionary[_issue.format] ?? issue2.format}`;
28998
+ }
28999
+ case "not_multiple_of":
29000
+ return `Număr invalid: trebuie să fie multiplu de ${issue2.divisor}`;
29001
+ case "unrecognized_keys":
29002
+ return `Chei nerecunoscute: ${joinValues(issue2.keys, ", ")}`;
29003
+ case "invalid_key":
29004
+ return `Cheie invalidă în ${issue2.origin}`;
29005
+ case "invalid_union":
29006
+ return "Intrare invalidă";
29007
+ case "invalid_element":
29008
+ return `Valoare invalidă în ${issue2.origin}`;
29009
+ default:
29010
+ return `Intrare invalidă`;
29011
+ }
29012
+ };
29013
+ };
29014
+ function ro_default() {
29015
+ return {
29016
+ localeError: error37()
28633
29017
  };
28634
29018
  }
28635
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ru.js
29019
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ru.js
28636
29020
  function getRussianPlural(count, one, few, many) {
28637
29021
  const absCount = Math.abs(count);
28638
29022
  const lastDigit = absCount % 10;
@@ -28648,7 +29032,7 @@ function getRussianPlural(count, one, few, many) {
28648
29032
  }
28649
29033
  return many;
28650
29034
  }
28651
- var error35 = () => {
29035
+ var error38 = () => {
28652
29036
  const Sizable = {
28653
29037
  string: {
28654
29038
  unit: {
@@ -28785,11 +29169,11 @@ var error35 = () => {
28785
29169
  };
28786
29170
  function ru_default() {
28787
29171
  return {
28788
- localeError: error35()
29172
+ localeError: error38()
28789
29173
  };
28790
29174
  }
28791
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/sl.js
28792
- var error36 = () => {
29175
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/sl.js
29176
+ var error39 = () => {
28793
29177
  const Sizable = {
28794
29178
  string: { unit: "znakov", verb: "imeti" },
28795
29179
  file: { unit: "bajtov", verb: "imeti" },
@@ -28894,11 +29278,11 @@ var error36 = () => {
28894
29278
  };
28895
29279
  function sl_default() {
28896
29280
  return {
28897
- localeError: error36()
29281
+ localeError: error39()
28898
29282
  };
28899
29283
  }
28900
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/sv.js
28901
- var error37 = () => {
29284
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/sv.js
29285
+ var error40 = () => {
28902
29286
  const Sizable = {
28903
29287
  string: { unit: "tecken", verb: "att ha" },
28904
29288
  file: { unit: "bytes", verb: "att ha" },
@@ -29004,11 +29388,11 @@ var error37 = () => {
29004
29388
  };
29005
29389
  function sv_default() {
29006
29390
  return {
29007
- localeError: error37()
29391
+ localeError: error40()
29008
29392
  };
29009
29393
  }
29010
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ta.js
29011
- var error38 = () => {
29394
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ta.js
29395
+ var error41 = () => {
29012
29396
  const Sizable = {
29013
29397
  string: { unit: "எழுத்துக்கள்", verb: "கொண்டிருக்க வேண்டும்" },
29014
29398
  file: { unit: "பைட்டுகள்", verb: "கொண்டிருக்க வேண்டும்" },
@@ -29114,11 +29498,11 @@ var error38 = () => {
29114
29498
  };
29115
29499
  function ta_default() {
29116
29500
  return {
29117
- localeError: error38()
29501
+ localeError: error41()
29118
29502
  };
29119
29503
  }
29120
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/th.js
29121
- var error39 = () => {
29504
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/th.js
29505
+ var error42 = () => {
29122
29506
  const Sizable = {
29123
29507
  string: { unit: "ตัวอักษร", verb: "ควรมี" },
29124
29508
  file: { unit: "ไบต์", verb: "ควรมี" },
@@ -29224,11 +29608,11 @@ var error39 = () => {
29224
29608
  };
29225
29609
  function th_default() {
29226
29610
  return {
29227
- localeError: error39()
29611
+ localeError: error42()
29228
29612
  };
29229
29613
  }
29230
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/tr.js
29231
- var error40 = () => {
29614
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/tr.js
29615
+ var error43 = () => {
29232
29616
  const Sizable = {
29233
29617
  string: { unit: "karakter", verb: "olmalı" },
29234
29618
  file: { unit: "bayt", verb: "olmalı" },
@@ -29329,11 +29713,11 @@ var error40 = () => {
29329
29713
  };
29330
29714
  function tr_default() {
29331
29715
  return {
29332
- localeError: error40()
29716
+ localeError: error43()
29333
29717
  };
29334
29718
  }
29335
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/uk.js
29336
- var error41 = () => {
29719
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/uk.js
29720
+ var error44 = () => {
29337
29721
  const Sizable = {
29338
29722
  string: { unit: "символів", verb: "матиме" },
29339
29723
  file: { unit: "байтів", verb: "матиме" },
@@ -29437,16 +29821,16 @@ var error41 = () => {
29437
29821
  };
29438
29822
  function uk_default() {
29439
29823
  return {
29440
- localeError: error41()
29824
+ localeError: error44()
29441
29825
  };
29442
29826
  }
29443
29827
 
29444
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ua.js
29828
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ua.js
29445
29829
  function ua_default() {
29446
29830
  return uk_default();
29447
29831
  }
29448
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ur.js
29449
- var error42 = () => {
29832
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ur.js
29833
+ var error45 = () => {
29450
29834
  const Sizable = {
29451
29835
  string: { unit: "حروف", verb: "ہونا" },
29452
29836
  file: { unit: "بائٹس", verb: "ہونا" },
@@ -29552,16 +29936,17 @@ var error42 = () => {
29552
29936
  };
29553
29937
  function ur_default() {
29554
29938
  return {
29555
- localeError: error42()
29939
+ localeError: error45()
29556
29940
  };
29557
29941
  }
29558
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/uz.js
29559
- var error43 = () => {
29942
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/uz.js
29943
+ var error46 = () => {
29560
29944
  const Sizable = {
29561
29945
  string: { unit: "belgi", verb: "bo‘lishi kerak" },
29562
29946
  file: { unit: "bayt", verb: "bo‘lishi kerak" },
29563
29947
  array: { unit: "element", verb: "bo‘lishi kerak" },
29564
- set: { unit: "element", verb: "bo‘lishi kerak" }
29948
+ set: { unit: "element", verb: "bo‘lishi kerak" },
29949
+ map: { unit: "yozuv", verb: "bo‘lishi kerak" }
29565
29950
  };
29566
29951
  function getSizing(origin) {
29567
29952
  return Sizable[origin] ?? null;
@@ -29661,11 +30046,11 @@ var error43 = () => {
29661
30046
  };
29662
30047
  function uz_default() {
29663
30048
  return {
29664
- localeError: error43()
30049
+ localeError: error46()
29665
30050
  };
29666
30051
  }
29667
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/vi.js
29668
- var error44 = () => {
30052
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/vi.js
30053
+ var error47 = () => {
29669
30054
  const Sizable = {
29670
30055
  string: { unit: "ký tự", verb: "có" },
29671
30056
  file: { unit: "byte", verb: "có" },
@@ -29769,11 +30154,11 @@ var error44 = () => {
29769
30154
  };
29770
30155
  function vi_default() {
29771
30156
  return {
29772
- localeError: error44()
30157
+ localeError: error47()
29773
30158
  };
29774
30159
  }
29775
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/zh-CN.js
29776
- var error45 = () => {
30160
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/zh-CN.js
30161
+ var error48 = () => {
29777
30162
  const Sizable = {
29778
30163
  string: { unit: "字符", verb: "包含" },
29779
30164
  file: { unit: "字节", verb: "包含" },
@@ -29878,11 +30263,11 @@ var error45 = () => {
29878
30263
  };
29879
30264
  function zh_CN_default() {
29880
30265
  return {
29881
- localeError: error45()
30266
+ localeError: error48()
29882
30267
  };
29883
30268
  }
29884
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/zh-TW.js
29885
- var error46 = () => {
30269
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/zh-TW.js
30270
+ var error49 = () => {
29886
30271
  const Sizable = {
29887
30272
  string: { unit: "字元", verb: "擁有" },
29888
30273
  file: { unit: "位元組", verb: "擁有" },
@@ -29985,11 +30370,11 @@ var error46 = () => {
29985
30370
  };
29986
30371
  function zh_TW_default() {
29987
30372
  return {
29988
- localeError: error46()
30373
+ localeError: error49()
29989
30374
  };
29990
30375
  }
29991
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/yo.js
29992
- var error47 = () => {
30376
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/yo.js
30377
+ var error50 = () => {
29993
30378
  const Sizable = {
29994
30379
  string: { unit: "àmi", verb: "ní" },
29995
30380
  file: { unit: "bytes", verb: "ní" },
@@ -30092,11 +30477,11 @@ var error47 = () => {
30092
30477
  };
30093
30478
  function yo_default() {
30094
30479
  return {
30095
- localeError: error47()
30480
+ localeError: error50()
30096
30481
  };
30097
30482
  }
30098
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/registries.js
30099
- var _a;
30483
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/registries.js
30484
+ var _a2;
30100
30485
  var $output = Symbol("ZodOutput");
30101
30486
  var $input = Symbol("ZodInput");
30102
30487
 
@@ -30143,9 +30528,9 @@ class $ZodRegistry {
30143
30528
  function registry() {
30144
30529
  return new $ZodRegistry;
30145
30530
  }
30146
- (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
30531
+ (_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
30147
30532
  var globalRegistry = globalThis.__zod_globalRegistry;
30148
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/api.js
30533
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/api.js
30149
30534
  function _string(Class2, params) {
30150
30535
  return new Class2({
30151
30536
  type: "string",
@@ -30949,7 +31334,7 @@ function _refine(Class2, fn, _params) {
30949
31334
  });
30950
31335
  return schema;
30951
31336
  }
30952
- function _superRefine(fn) {
31337
+ function _superRefine(fn, params) {
30953
31338
  const ch = _check((payload) => {
30954
31339
  payload.addIssue = (issue2) => {
30955
31340
  if (typeof issue2 === "string") {
@@ -30966,7 +31351,7 @@ function _superRefine(fn) {
30966
31351
  }
30967
31352
  };
30968
31353
  return fn(payload.value, payload);
30969
- });
31354
+ }, params);
30970
31355
  return ch;
30971
31356
  }
30972
31357
  function _check(fn, params) {
@@ -31065,7 +31450,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
31065
31450
  const inst = new Class2(def);
31066
31451
  return inst;
31067
31452
  }
31068
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
31453
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
31069
31454
  function initializeContext(params) {
31070
31455
  let target = params?.target ?? "draft-2020-12";
31071
31456
  if (target === "draft-4")
@@ -31087,7 +31472,7 @@ function initializeContext(params) {
31087
31472
  };
31088
31473
  }
31089
31474
  function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
31090
- var _a2;
31475
+ var _a3;
31091
31476
  const def = schema._zod.def;
31092
31477
  const seen = ctx.seen.get(schema);
31093
31478
  if (seen) {
@@ -31134,8 +31519,8 @@ function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
31134
31519
  delete result.schema.examples;
31135
31520
  delete result.schema.default;
31136
31521
  }
31137
- if (ctx.io === "input" && result.schema._prefault)
31138
- (_a2 = result.schema).default ?? (_a2.default = result.schema._prefault);
31522
+ if (ctx.io === "input" && "_prefault" in result.schema)
31523
+ (_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
31139
31524
  delete result.schema._prefault;
31140
31525
  const _result = ctx.seen.get(schema);
31141
31526
  return _result.schema;
@@ -31312,10 +31697,15 @@ function finalize(ctx, schema) {
31312
31697
  result.$id = ctx.external.uri(id);
31313
31698
  }
31314
31699
  Object.assign(result, root.def ?? root.schema);
31700
+ const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
31701
+ if (rootMetaId !== undefined && result.id === rootMetaId)
31702
+ delete result.id;
31315
31703
  const defs = ctx.external?.defs ?? {};
31316
31704
  for (const entry of ctx.seen.entries()) {
31317
31705
  const seen = entry[1];
31318
31706
  if (seen.def && seen.defId) {
31707
+ if (seen.def.id === seen.defId)
31708
+ delete seen.def.id;
31319
31709
  defs[seen.defId] = seen.def;
31320
31710
  }
31321
31711
  }
@@ -31370,6 +31760,8 @@ function isTransforming(_schema, _ctx) {
31370
31760
  return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
31371
31761
  }
31372
31762
  if (def.type === "pipe") {
31763
+ if (_schema._zod.traits.has("$ZodCodec"))
31764
+ return true;
31373
31765
  return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
31374
31766
  }
31375
31767
  if (def.type === "object") {
@@ -31410,7 +31802,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
31410
31802
  extractDefs(ctx, schema);
31411
31803
  return finalize(ctx, schema);
31412
31804
  };
31413
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js
31805
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.js
31414
31806
  var formatMap = {
31415
31807
  guid: "uuid",
31416
31808
  url: "uri",
@@ -31457,39 +31849,28 @@ var numberProcessor = (schema, ctx, _json, _params) => {
31457
31849
  json.type = "integer";
31458
31850
  else
31459
31851
  json.type = "number";
31460
- if (typeof exclusiveMinimum === "number") {
31461
- if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
31852
+ const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
31853
+ const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
31854
+ const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
31855
+ if (exMin) {
31856
+ if (legacy) {
31462
31857
  json.minimum = exclusiveMinimum;
31463
31858
  json.exclusiveMinimum = true;
31464
31859
  } else {
31465
31860
  json.exclusiveMinimum = exclusiveMinimum;
31466
31861
  }
31467
- }
31468
- if (typeof minimum === "number") {
31862
+ } else if (typeof minimum === "number") {
31469
31863
  json.minimum = minimum;
31470
- if (typeof exclusiveMinimum === "number" && ctx.target !== "draft-04") {
31471
- if (exclusiveMinimum >= minimum)
31472
- delete json.minimum;
31473
- else
31474
- delete json.exclusiveMinimum;
31475
- }
31476
31864
  }
31477
- if (typeof exclusiveMaximum === "number") {
31478
- if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
31865
+ if (exMax) {
31866
+ if (legacy) {
31479
31867
  json.maximum = exclusiveMaximum;
31480
31868
  json.exclusiveMaximum = true;
31481
31869
  } else {
31482
31870
  json.exclusiveMaximum = exclusiveMaximum;
31483
31871
  }
31484
- }
31485
- if (typeof maximum === "number") {
31872
+ } else if (typeof maximum === "number") {
31486
31873
  json.maximum = maximum;
31487
- if (typeof exclusiveMaximum === "number" && ctx.target !== "draft-04") {
31488
- if (exclusiveMaximum <= maximum)
31489
- delete json.maximum;
31490
- else
31491
- delete json.exclusiveMaximum;
31492
- }
31493
31874
  }
31494
31875
  if (typeof multipleOf === "number")
31495
31876
  json.multipleOf = multipleOf;
@@ -31657,7 +32038,10 @@ var arrayProcessor = (schema, ctx, _json, params) => {
31657
32038
  if (typeof maximum === "number")
31658
32039
  json.maxItems = maximum;
31659
32040
  json.type = "array";
31660
- json.items = process2(def.element, ctx, { ...params, path: [...params.path, "items"] });
32041
+ json.items = process2(def.element, ctx, {
32042
+ ...params,
32043
+ path: [...params.path, "items"]
32044
+ });
31661
32045
  };
31662
32046
  var objectProcessor = (schema, ctx, _json, params) => {
31663
32047
  const json = _json;
@@ -31850,7 +32234,8 @@ var catchProcessor = (schema, ctx, json, params) => {
31850
32234
  };
31851
32235
  var pipeProcessor = (schema, ctx, _json, params) => {
31852
32236
  const def = schema._zod.def;
31853
- const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
32237
+ const inIsTransform = def.in._zod.traits.has("$ZodTransform");
32238
+ const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
31854
32239
  process2(innerType, ctx, params);
31855
32240
  const seen = ctx.seen.get(schema);
31856
32241
  seen.ref = innerType;
@@ -31955,7 +32340,7 @@ function toJSONSchema(input, params) {
31955
32340
  extractDefs(ctx, input);
31956
32341
  return finalize(ctx, input);
31957
32342
  }
31958
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/json-schema-generator.js
32343
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/json-schema-generator.js
31959
32344
  class JSONSchemaGenerator {
31960
32345
  get metadataRegistry() {
31961
32346
  return this.ctx.metadataRegistry;
@@ -32014,9 +32399,9 @@ class JSONSchemaGenerator {
32014
32399
  return plainResult;
32015
32400
  }
32016
32401
  }
32017
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/json-schema.js
32402
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/json-schema.js
32018
32403
  var exports_json_schema = {};
32019
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
32404
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
32020
32405
  var exports_schemas2 = {};
32021
32406
  __export(exports_schemas2, {
32022
32407
  xor: () => xor,
@@ -32076,6 +32461,7 @@ __export(exports_schemas2, {
32076
32461
  json: () => json,
32077
32462
  ipv6: () => ipv62,
32078
32463
  ipv4: () => ipv42,
32464
+ invertCodec: () => invertCodec,
32079
32465
  intersection: () => intersection,
32080
32466
  int64: () => int64,
32081
32467
  int32: () => int32,
@@ -32136,6 +32522,7 @@ __export(exports_schemas2, {
32136
32522
  ZodRecord: () => ZodRecord,
32137
32523
  ZodReadonly: () => ZodReadonly,
32138
32524
  ZodPromise: () => ZodPromise,
32525
+ ZodPreprocess: () => ZodPreprocess,
32139
32526
  ZodPrefault: () => ZodPrefault,
32140
32527
  ZodPipe: () => ZodPipe,
32141
32528
  ZodOptional: () => ZodOptional,
@@ -32185,7 +32572,7 @@ __export(exports_schemas2, {
32185
32572
  ZodAny: () => ZodAny
32186
32573
  });
32187
32574
 
32188
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/checks.js
32575
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/checks.js
32189
32576
  var exports_checks2 = {};
32190
32577
  __export(exports_checks2, {
32191
32578
  uppercase: () => _uppercase,
@@ -32219,7 +32606,7 @@ __export(exports_checks2, {
32219
32606
  endsWith: () => _endsWith
32220
32607
  });
32221
32608
 
32222
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/iso.js
32609
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/iso.js
32223
32610
  var exports_iso = {};
32224
32611
  __export(exports_iso, {
32225
32612
  time: () => time2,
@@ -32260,7 +32647,7 @@ function duration2(params) {
32260
32647
  return _isoDuration(ZodISODuration, params);
32261
32648
  }
32262
32649
 
32263
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/errors.js
32650
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/errors.js
32264
32651
  var initializer2 = (inst, issues) => {
32265
32652
  $ZodError.init(inst, issues);
32266
32653
  inst.name = "ZodError";
@@ -32290,12 +32677,12 @@ var initializer2 = (inst, issues) => {
32290
32677
  }
32291
32678
  });
32292
32679
  };
32293
- var ZodError = $constructor("ZodError", initializer2);
32294
- var ZodRealError = $constructor("ZodError", initializer2, {
32680
+ var ZodError = /* @__PURE__ */ $constructor("ZodError", initializer2);
32681
+ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
32295
32682
  Parent: Error
32296
32683
  });
32297
32684
 
32298
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/parse.js
32685
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/parse.js
32299
32686
  var parse3 = /* @__PURE__ */ _parse(ZodRealError);
32300
32687
  var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
32301
32688
  var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -32309,7 +32696,44 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
32309
32696
  var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
32310
32697
  var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
32311
32698
 
32312
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
32699
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
32700
+ var _installedGroups = /* @__PURE__ */ new WeakMap;
32701
+ function _installLazyMethods(inst, group, methods) {
32702
+ const proto = Object.getPrototypeOf(inst);
32703
+ let installed = _installedGroups.get(proto);
32704
+ if (!installed) {
32705
+ installed = new Set;
32706
+ _installedGroups.set(proto, installed);
32707
+ }
32708
+ if (installed.has(group))
32709
+ return;
32710
+ installed.add(group);
32711
+ for (const key in methods) {
32712
+ const fn = methods[key];
32713
+ Object.defineProperty(proto, key, {
32714
+ configurable: true,
32715
+ enumerable: false,
32716
+ get() {
32717
+ const bound = fn.bind(this);
32718
+ Object.defineProperty(this, key, {
32719
+ configurable: true,
32720
+ writable: true,
32721
+ enumerable: true,
32722
+ value: bound
32723
+ });
32724
+ return bound;
32725
+ },
32726
+ set(v) {
32727
+ Object.defineProperty(this, key, {
32728
+ configurable: true,
32729
+ writable: true,
32730
+ enumerable: true,
32731
+ value: v
32732
+ });
32733
+ }
32734
+ });
32735
+ }
32736
+ }
32313
32737
  var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
32314
32738
  $ZodType.init(inst, def);
32315
32739
  Object.assign(inst["~standard"], {
@@ -32322,23 +32746,6 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
32322
32746
  inst.def = def;
32323
32747
  inst.type = def.type;
32324
32748
  Object.defineProperty(inst, "_def", { value: def });
32325
- inst.check = (...checks2) => {
32326
- return inst.clone(exports_util.mergeDefs(def, {
32327
- checks: [
32328
- ...def.checks ?? [],
32329
- ...checks2.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
32330
- ]
32331
- }), {
32332
- parent: true
32333
- });
32334
- };
32335
- inst.with = inst.check;
32336
- inst.clone = (def2, params) => clone(inst, def2, params);
32337
- inst.brand = () => inst;
32338
- inst.register = (reg, meta2) => {
32339
- reg.add(inst, meta2);
32340
- return inst;
32341
- };
32342
32749
  inst.parse = (data, params) => parse3(inst, data, params, { callee: inst.parse });
32343
32750
  inst.safeParse = (data, params) => safeParse2(inst, data, params);
32344
32751
  inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
@@ -32352,45 +32759,108 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
32352
32759
  inst.safeDecode = (data, params) => safeDecode2(inst, data, params);
32353
32760
  inst.safeEncodeAsync = async (data, params) => safeEncodeAsync2(inst, data, params);
32354
32761
  inst.safeDecodeAsync = async (data, params) => safeDecodeAsync2(inst, data, params);
32355
- inst.refine = (check, params) => inst.check(refine(check, params));
32356
- inst.superRefine = (refinement) => inst.check(superRefine(refinement));
32357
- inst.overwrite = (fn) => inst.check(_overwrite(fn));
32358
- inst.optional = () => optional(inst);
32359
- inst.exactOptional = () => exactOptional(inst);
32360
- inst.nullable = () => nullable(inst);
32361
- inst.nullish = () => optional(nullable(inst));
32362
- inst.nonoptional = (params) => nonoptional(inst, params);
32363
- inst.array = () => array(inst);
32364
- inst.or = (arg) => union([inst, arg]);
32365
- inst.and = (arg) => intersection(inst, arg);
32366
- inst.transform = (tx) => pipe(inst, transform(tx));
32367
- inst.default = (def2) => _default2(inst, def2);
32368
- inst.prefault = (def2) => prefault(inst, def2);
32369
- inst.catch = (params) => _catch2(inst, params);
32370
- inst.pipe = (target) => pipe(inst, target);
32371
- inst.readonly = () => readonly(inst);
32372
- inst.describe = (description) => {
32373
- const cl = inst.clone();
32374
- globalRegistry.add(cl, { description });
32375
- return cl;
32376
- };
32762
+ _installLazyMethods(inst, "ZodType", {
32763
+ check(...chks) {
32764
+ const def2 = this.def;
32765
+ return this.clone(exports_util.mergeDefs(def2, {
32766
+ checks: [
32767
+ ...def2.checks ?? [],
32768
+ ...chks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
32769
+ ]
32770
+ }), { parent: true });
32771
+ },
32772
+ with(...chks) {
32773
+ return this.check(...chks);
32774
+ },
32775
+ clone(def2, params) {
32776
+ return clone(this, def2, params);
32777
+ },
32778
+ brand() {
32779
+ return this;
32780
+ },
32781
+ register(reg, meta2) {
32782
+ reg.add(this, meta2);
32783
+ return this;
32784
+ },
32785
+ refine(check, params) {
32786
+ return this.check(refine(check, params));
32787
+ },
32788
+ superRefine(refinement, params) {
32789
+ return this.check(superRefine(refinement, params));
32790
+ },
32791
+ overwrite(fn) {
32792
+ return this.check(_overwrite(fn));
32793
+ },
32794
+ optional() {
32795
+ return optional(this);
32796
+ },
32797
+ exactOptional() {
32798
+ return exactOptional(this);
32799
+ },
32800
+ nullable() {
32801
+ return nullable(this);
32802
+ },
32803
+ nullish() {
32804
+ return optional(nullable(this));
32805
+ },
32806
+ nonoptional(params) {
32807
+ return nonoptional(this, params);
32808
+ },
32809
+ array() {
32810
+ return array(this);
32811
+ },
32812
+ or(arg) {
32813
+ return union([this, arg]);
32814
+ },
32815
+ and(arg) {
32816
+ return intersection(this, arg);
32817
+ },
32818
+ transform(tx) {
32819
+ return pipe(this, transform(tx));
32820
+ },
32821
+ default(d) {
32822
+ return _default2(this, d);
32823
+ },
32824
+ prefault(d) {
32825
+ return prefault(this, d);
32826
+ },
32827
+ catch(params) {
32828
+ return _catch2(this, params);
32829
+ },
32830
+ pipe(target) {
32831
+ return pipe(this, target);
32832
+ },
32833
+ readonly() {
32834
+ return readonly(this);
32835
+ },
32836
+ describe(description) {
32837
+ const cl = this.clone();
32838
+ globalRegistry.add(cl, { description });
32839
+ return cl;
32840
+ },
32841
+ meta(...args) {
32842
+ if (args.length === 0)
32843
+ return globalRegistry.get(this);
32844
+ const cl = this.clone();
32845
+ globalRegistry.add(cl, args[0]);
32846
+ return cl;
32847
+ },
32848
+ isOptional() {
32849
+ return this.safeParse(undefined).success;
32850
+ },
32851
+ isNullable() {
32852
+ return this.safeParse(null).success;
32853
+ },
32854
+ apply(fn) {
32855
+ return fn(this);
32856
+ }
32857
+ });
32377
32858
  Object.defineProperty(inst, "description", {
32378
32859
  get() {
32379
32860
  return globalRegistry.get(inst)?.description;
32380
32861
  },
32381
32862
  configurable: true
32382
32863
  });
32383
- inst.meta = (...args) => {
32384
- if (args.length === 0) {
32385
- return globalRegistry.get(inst);
32386
- }
32387
- const cl = inst.clone();
32388
- globalRegistry.add(cl, args[0]);
32389
- return cl;
32390
- };
32391
- inst.isOptional = () => inst.safeParse(undefined).success;
32392
- inst.isNullable = () => inst.safeParse(null).success;
32393
- inst.apply = (fn) => fn(inst);
32394
32864
  return inst;
32395
32865
  });
32396
32866
  var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
@@ -32401,21 +32871,53 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
32401
32871
  inst.format = bag.format ?? null;
32402
32872
  inst.minLength = bag.minimum ?? null;
32403
32873
  inst.maxLength = bag.maximum ?? null;
32404
- inst.regex = (...args) => inst.check(_regex(...args));
32405
- inst.includes = (...args) => inst.check(_includes(...args));
32406
- inst.startsWith = (...args) => inst.check(_startsWith(...args));
32407
- inst.endsWith = (...args) => inst.check(_endsWith(...args));
32408
- inst.min = (...args) => inst.check(_minLength(...args));
32409
- inst.max = (...args) => inst.check(_maxLength(...args));
32410
- inst.length = (...args) => inst.check(_length(...args));
32411
- inst.nonempty = (...args) => inst.check(_minLength(1, ...args));
32412
- inst.lowercase = (params) => inst.check(_lowercase(params));
32413
- inst.uppercase = (params) => inst.check(_uppercase(params));
32414
- inst.trim = () => inst.check(_trim());
32415
- inst.normalize = (...args) => inst.check(_normalize(...args));
32416
- inst.toLowerCase = () => inst.check(_toLowerCase());
32417
- inst.toUpperCase = () => inst.check(_toUpperCase());
32418
- inst.slugify = () => inst.check(_slugify());
32874
+ _installLazyMethods(inst, "_ZodString", {
32875
+ regex(...args) {
32876
+ return this.check(_regex(...args));
32877
+ },
32878
+ includes(...args) {
32879
+ return this.check(_includes(...args));
32880
+ },
32881
+ startsWith(...args) {
32882
+ return this.check(_startsWith(...args));
32883
+ },
32884
+ endsWith(...args) {
32885
+ return this.check(_endsWith(...args));
32886
+ },
32887
+ min(...args) {
32888
+ return this.check(_minLength(...args));
32889
+ },
32890
+ max(...args) {
32891
+ return this.check(_maxLength(...args));
32892
+ },
32893
+ length(...args) {
32894
+ return this.check(_length(...args));
32895
+ },
32896
+ nonempty(...args) {
32897
+ return this.check(_minLength(1, ...args));
32898
+ },
32899
+ lowercase(params) {
32900
+ return this.check(_lowercase(params));
32901
+ },
32902
+ uppercase(params) {
32903
+ return this.check(_uppercase(params));
32904
+ },
32905
+ trim() {
32906
+ return this.check(_trim());
32907
+ },
32908
+ normalize(...args) {
32909
+ return this.check(_normalize(...args));
32910
+ },
32911
+ toLowerCase() {
32912
+ return this.check(_toLowerCase());
32913
+ },
32914
+ toUpperCase() {
32915
+ return this.check(_toUpperCase());
32916
+ },
32917
+ slugify() {
32918
+ return this.check(_slugify());
32919
+ }
32920
+ });
32419
32921
  });
32420
32922
  var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
32421
32923
  $ZodString.init(inst, def);
@@ -32494,7 +32996,7 @@ function url(params) {
32494
32996
  }
32495
32997
  function httpUrl(params) {
32496
32998
  return _url(ZodURL, {
32497
- protocol: /^https?$/,
32999
+ protocol: exports_regexes.httpProtocol,
32498
33000
  hostname: exports_regexes.domain,
32499
33001
  ...exports_util.normalizeParams(params)
32500
33002
  });
@@ -32636,21 +33138,53 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
32636
33138
  $ZodNumber.init(inst, def);
32637
33139
  ZodType.init(inst, def);
32638
33140
  inst._zod.processJSONSchema = (ctx, json, params) => numberProcessor(inst, ctx, json, params);
32639
- inst.gt = (value, params) => inst.check(_gt(value, params));
32640
- inst.gte = (value, params) => inst.check(_gte(value, params));
32641
- inst.min = (value, params) => inst.check(_gte(value, params));
32642
- inst.lt = (value, params) => inst.check(_lt(value, params));
32643
- inst.lte = (value, params) => inst.check(_lte(value, params));
32644
- inst.max = (value, params) => inst.check(_lte(value, params));
32645
- inst.int = (params) => inst.check(int(params));
32646
- inst.safe = (params) => inst.check(int(params));
32647
- inst.positive = (params) => inst.check(_gt(0, params));
32648
- inst.nonnegative = (params) => inst.check(_gte(0, params));
32649
- inst.negative = (params) => inst.check(_lt(0, params));
32650
- inst.nonpositive = (params) => inst.check(_lte(0, params));
32651
- inst.multipleOf = (value, params) => inst.check(_multipleOf(value, params));
32652
- inst.step = (value, params) => inst.check(_multipleOf(value, params));
32653
- inst.finite = () => inst;
33141
+ _installLazyMethods(inst, "ZodNumber", {
33142
+ gt(value, params) {
33143
+ return this.check(_gt(value, params));
33144
+ },
33145
+ gte(value, params) {
33146
+ return this.check(_gte(value, params));
33147
+ },
33148
+ min(value, params) {
33149
+ return this.check(_gte(value, params));
33150
+ },
33151
+ lt(value, params) {
33152
+ return this.check(_lt(value, params));
33153
+ },
33154
+ lte(value, params) {
33155
+ return this.check(_lte(value, params));
33156
+ },
33157
+ max(value, params) {
33158
+ return this.check(_lte(value, params));
33159
+ },
33160
+ int(params) {
33161
+ return this.check(int(params));
33162
+ },
33163
+ safe(params) {
33164
+ return this.check(int(params));
33165
+ },
33166
+ positive(params) {
33167
+ return this.check(_gt(0, params));
33168
+ },
33169
+ nonnegative(params) {
33170
+ return this.check(_gte(0, params));
33171
+ },
33172
+ negative(params) {
33173
+ return this.check(_lt(0, params));
33174
+ },
33175
+ nonpositive(params) {
33176
+ return this.check(_lte(0, params));
33177
+ },
33178
+ multipleOf(value, params) {
33179
+ return this.check(_multipleOf(value, params));
33180
+ },
33181
+ step(value, params) {
33182
+ return this.check(_multipleOf(value, params));
33183
+ },
33184
+ finite() {
33185
+ return this;
33186
+ }
33187
+ });
32654
33188
  const bag = inst._zod.bag;
32655
33189
  inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
32656
33190
  inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
@@ -32797,11 +33331,23 @@ var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
32797
33331
  ZodType.init(inst, def);
32798
33332
  inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params);
32799
33333
  inst.element = def.element;
32800
- inst.min = (minLength, params) => inst.check(_minLength(minLength, params));
32801
- inst.nonempty = (params) => inst.check(_minLength(1, params));
32802
- inst.max = (maxLength, params) => inst.check(_maxLength(maxLength, params));
32803
- inst.length = (len, params) => inst.check(_length(len, params));
32804
- inst.unwrap = () => inst.element;
33334
+ _installLazyMethods(inst, "ZodArray", {
33335
+ min(n, params) {
33336
+ return this.check(_minLength(n, params));
33337
+ },
33338
+ nonempty(params) {
33339
+ return this.check(_minLength(1, params));
33340
+ },
33341
+ max(n, params) {
33342
+ return this.check(_maxLength(n, params));
33343
+ },
33344
+ length(n, params) {
33345
+ return this.check(_length(n, params));
33346
+ },
33347
+ unwrap() {
33348
+ return this.element;
33349
+ }
33350
+ });
32805
33351
  });
32806
33352
  function array(element, params) {
32807
33353
  return _array(ZodArray, element, params);
@@ -32817,23 +33363,47 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
32817
33363
  exports_util.defineLazy(inst, "shape", () => {
32818
33364
  return def.shape;
32819
33365
  });
32820
- inst.keyof = () => _enum2(Object.keys(inst._zod.def.shape));
32821
- inst.catchall = (catchall) => inst.clone({ ...inst._zod.def, catchall });
32822
- inst.passthrough = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
32823
- inst.loose = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
32824
- inst.strict = () => inst.clone({ ...inst._zod.def, catchall: never() });
32825
- inst.strip = () => inst.clone({ ...inst._zod.def, catchall: undefined });
32826
- inst.extend = (incoming) => {
32827
- return exports_util.extend(inst, incoming);
32828
- };
32829
- inst.safeExtend = (incoming) => {
32830
- return exports_util.safeExtend(inst, incoming);
32831
- };
32832
- inst.merge = (other) => exports_util.merge(inst, other);
32833
- inst.pick = (mask) => exports_util.pick(inst, mask);
32834
- inst.omit = (mask) => exports_util.omit(inst, mask);
32835
- inst.partial = (...args) => exports_util.partial(ZodOptional, inst, args[0]);
32836
- inst.required = (...args) => exports_util.required(ZodNonOptional, inst, args[0]);
33366
+ _installLazyMethods(inst, "ZodObject", {
33367
+ keyof() {
33368
+ return _enum2(Object.keys(this._zod.def.shape));
33369
+ },
33370
+ catchall(catchall) {
33371
+ return this.clone({ ...this._zod.def, catchall });
33372
+ },
33373
+ passthrough() {
33374
+ return this.clone({ ...this._zod.def, catchall: unknown() });
33375
+ },
33376
+ loose() {
33377
+ return this.clone({ ...this._zod.def, catchall: unknown() });
33378
+ },
33379
+ strict() {
33380
+ return this.clone({ ...this._zod.def, catchall: never() });
33381
+ },
33382
+ strip() {
33383
+ return this.clone({ ...this._zod.def, catchall: undefined });
33384
+ },
33385
+ extend(incoming) {
33386
+ return exports_util.extend(this, incoming);
33387
+ },
33388
+ safeExtend(incoming) {
33389
+ return exports_util.safeExtend(this, incoming);
33390
+ },
33391
+ merge(other) {
33392
+ return exports_util.merge(this, other);
33393
+ },
33394
+ pick(mask) {
33395
+ return exports_util.pick(this, mask);
33396
+ },
33397
+ omit(mask) {
33398
+ return exports_util.omit(this, mask);
33399
+ },
33400
+ partial(...args) {
33401
+ return exports_util.partial(ZodOptional, this, args[0]);
33402
+ },
33403
+ required(...args) {
33404
+ return exports_util.required(ZodNonOptional, this, args[0]);
33405
+ }
33406
+ });
32837
33407
  });
32838
33408
  function object(shape, params) {
32839
33409
  const def = {
@@ -32938,6 +33508,14 @@ var ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
32938
33508
  inst.valueType = def.valueType;
32939
33509
  });
32940
33510
  function record(keyType, valueType, params) {
33511
+ if (!valueType || !valueType._zod) {
33512
+ return new ZodRecord({
33513
+ type: "record",
33514
+ keyType: string2(),
33515
+ valueType: keyType,
33516
+ ...exports_util.normalizeParams(valueType)
33517
+ });
33518
+ }
32941
33519
  return new ZodRecord({
32942
33520
  type: "record",
32943
33521
  keyType,
@@ -33109,10 +33687,12 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
33109
33687
  if (output instanceof Promise) {
33110
33688
  return output.then((output2) => {
33111
33689
  payload.value = output2;
33690
+ payload.fallback = true;
33112
33691
  return payload;
33113
33692
  });
33114
33693
  }
33115
33694
  payload.value = output;
33695
+ payload.fallback = true;
33116
33696
  return payload;
33117
33697
  };
33118
33698
  });
@@ -33266,6 +33846,20 @@ function codec(in_, out, params) {
33266
33846
  reverseTransform: params.encode
33267
33847
  });
33268
33848
  }
33849
+ function invertCodec(codec2) {
33850
+ const def = codec2._zod.def;
33851
+ return new ZodCodec({
33852
+ type: "pipe",
33853
+ in: def.out,
33854
+ out: def.in,
33855
+ transform: def.reverseTransform,
33856
+ reverseTransform: def.transform
33857
+ });
33858
+ }
33859
+ var ZodPreprocess = /* @__PURE__ */ $constructor("ZodPreprocess", (inst, def) => {
33860
+ ZodPipe.init(inst, def);
33861
+ $ZodPreprocess.init(inst, def);
33862
+ });
33269
33863
  var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
33270
33864
  $ZodReadonly.init(inst, def);
33271
33865
  ZodType.init(inst, def);
@@ -33344,8 +33938,8 @@ function custom(fn, _params) {
33344
33938
  function refine(fn, _params = {}) {
33345
33939
  return _refine(ZodCustom, fn, _params);
33346
33940
  }
33347
- function superRefine(fn) {
33348
- return _superRefine(fn);
33941
+ function superRefine(fn, params) {
33942
+ return _superRefine(fn, params);
33349
33943
  }
33350
33944
  var describe2 = describe;
33351
33945
  var meta2 = meta;
@@ -33383,9 +33977,13 @@ function json(params) {
33383
33977
  return jsonSchema;
33384
33978
  }
33385
33979
  function preprocess(fn, schema) {
33386
- return pipe(transform(fn), schema);
33980
+ return new ZodPreprocess({
33981
+ type: "pipe",
33982
+ in: transform(fn),
33983
+ out: schema
33984
+ });
33387
33985
  }
33388
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/compat.js
33986
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/compat.js
33389
33987
  var ZodIssueCode = {
33390
33988
  invalid_type: "invalid_type",
33391
33989
  too_big: "too_big",
@@ -33409,13 +34007,13 @@ function getErrorMap() {
33409
34007
  }
33410
34008
  var ZodFirstPartyTypeKind;
33411
34009
  (function(ZodFirstPartyTypeKind2) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
33412
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/from-json-schema.js
34010
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/from-json-schema.js
33413
34011
  var z = {
33414
34012
  ...exports_schemas2,
33415
34013
  ...exports_checks2,
33416
34014
  iso: exports_iso
33417
34015
  };
33418
- var RECOGNIZED_KEYS = new Set([
34016
+ var RECOGNIZED_KEYS = /* @__PURE__ */ new Set([
33419
34017
  "$schema",
33420
34018
  "$ref",
33421
34019
  "$defs",
@@ -33789,12 +34387,6 @@ function convertBaseSchema(schema, ctx) {
33789
34387
  default:
33790
34388
  throw new Error(`Unsupported type: ${type}`);
33791
34389
  }
33792
- if (schema.description) {
33793
- zodSchema = zodSchema.describe(schema.description);
33794
- }
33795
- if (schema.default !== undefined) {
33796
- zodSchema = zodSchema.default(schema.default);
33797
- }
33798
34390
  return zodSchema;
33799
34391
  }
33800
34392
  function convertSchema(schema, ctx) {
@@ -33831,6 +34423,9 @@ function convertSchema(schema, ctx) {
33831
34423
  if (schema.readOnly === true) {
33832
34424
  baseSchema = z.readonly(baseSchema);
33833
34425
  }
34426
+ if (schema.default !== undefined) {
34427
+ baseSchema = baseSchema.default(schema.default);
34428
+ }
33834
34429
  const extraMeta = {};
33835
34430
  const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
33836
34431
  for (const key of coreMetadataKeys) {
@@ -33852,25 +34447,34 @@ function convertSchema(schema, ctx) {
33852
34447
  if (Object.keys(extraMeta).length > 0) {
33853
34448
  ctx.registry.add(baseSchema, extraMeta);
33854
34449
  }
34450
+ if (schema.description) {
34451
+ baseSchema = baseSchema.describe(schema.description);
34452
+ }
33855
34453
  return baseSchema;
33856
34454
  }
33857
34455
  function fromJSONSchema(schema, params) {
33858
34456
  if (typeof schema === "boolean") {
33859
34457
  return schema ? z.any() : z.never();
33860
34458
  }
33861
- const version2 = detectVersion(schema, params?.defaultTarget);
33862
- const defs = schema.$defs || schema.definitions || {};
34459
+ let normalized;
34460
+ try {
34461
+ normalized = JSON.parse(JSON.stringify(schema));
34462
+ } catch {
34463
+ throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
34464
+ }
34465
+ const version2 = detectVersion(normalized, params?.defaultTarget);
34466
+ const defs = normalized.$defs || normalized.definitions || {};
33863
34467
  const ctx = {
33864
34468
  version: version2,
33865
34469
  defs,
33866
34470
  refs: new Map,
33867
34471
  processing: new Set,
33868
- rootSchema: schema,
34472
+ rootSchema: normalized,
33869
34473
  registry: params?.registry ?? globalRegistry
33870
34474
  };
33871
- return convertSchema(schema, ctx);
34475
+ return convertSchema(normalized, ctx);
33872
34476
  }
33873
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/coerce.js
34477
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/coerce.js
33874
34478
  var exports_coerce = {};
33875
34479
  __export(exports_coerce, {
33876
34480
  string: () => string3,
@@ -33895,7 +34499,7 @@ function date4(params) {
33895
34499
  return _coercedDate(ZodDate, params);
33896
34500
  }
33897
34501
 
33898
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/external.js
34502
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/external.js
33899
34503
  config(en_default());
33900
34504
  // src/openclaw-compat.ts
33901
34505
  var MB = 1024 * 1024;
@@ -33917,7 +34521,7 @@ function normalizeAccountId(value) {
33917
34521
  return normalized;
33918
34522
  }
33919
34523
  function emptyPluginConfigSchema() {
33920
- function error48(message) {
34524
+ function error51(message) {
33921
34525
  return { success: false, error: { issues: [{ path: [], message }] } };
33922
34526
  }
33923
34527
  return {
@@ -33926,10 +34530,10 @@ function emptyPluginConfigSchema() {
33926
34530
  return { success: true, data: undefined };
33927
34531
  }
33928
34532
  if (!value || typeof value !== "object" || Array.isArray(value)) {
33929
- return error48("expected config object");
34533
+ return error51("expected config object");
33930
34534
  }
33931
34535
  if (Object.keys(value).length > 0) {
33932
- return error48("config must be empty");
34536
+ return error51("config must be empty");
33933
34537
  }
33934
34538
  return { success: true, data: value };
33935
34539
  },
@@ -34860,10 +35464,10 @@ function describeInlineMediaContext(params) {
34860
35464
  parts.push(`uploadFileName=${params.uploadFileName}`);
34861
35465
  return parts.join(", ");
34862
35466
  }
34863
- function extractErrorMessage2(error48) {
34864
- if (error48 instanceof Error)
34865
- return error48.message;
34866
- return String(error48);
35467
+ function extractErrorMessage2(error51) {
35468
+ if (error51 instanceof Error)
35469
+ return error51.message;
35470
+ return String(error51);
34867
35471
  }
34868
35472
  function resolveMediaMaxBytes(params) {
34869
35473
  return resolveChannelMediaMaxBytes({
@@ -34898,11 +35502,11 @@ async function uploadInlineMediaFromUrl(params) {
34898
35502
  try {
34899
35503
  try {
34900
35504
  loaded = await runtimeMedia.loadWebMedia(params.mediaUrl, maxBytes);
34901
- } catch (error48) {
34902
- const message = String(error48);
35505
+ } catch (error51) {
35506
+ const message = String(error51);
34903
35507
  const deniedLocalPath = /not under an allowed directory/i.test(message);
34904
35508
  if (!deniedLocalPath || !looksLikeLocalMediaSource(params.mediaUrl)) {
34905
- throw error48;
35509
+ throw error51;
34906
35510
  }
34907
35511
  loaded = await loadWebMediaCompat(params.mediaUrl, maxBytes, {
34908
35512
  localRoots: "any"
@@ -34942,7 +35546,7 @@ async function uploadInlineMediaFromUrl(params) {
34942
35546
  uploadType,
34943
35547
  result: upload
34944
35548
  });
34945
- } catch (error48) {
35549
+ } catch (error51) {
34946
35550
  const context = describeInlineMediaContext({
34947
35551
  ...params.accountId !== undefined ? { accountId: params.accountId } : {},
34948
35552
  mediaUrl: params.mediaUrl,
@@ -34954,8 +35558,8 @@ async function uploadInlineMediaFromUrl(params) {
34954
35558
  ...uploadType ? { uploadType } : {},
34955
35559
  ...fileName ? { uploadFileName: fileName } : {}
34956
35560
  });
34957
- throw new Error(`inline media upload failed (${extractErrorMessage2(error48)}; ${context})`, {
34958
- cause: error48
35561
+ throw new Error(`inline media upload failed (${extractErrorMessage2(error51)}; ${context})`, {
35562
+ cause: error51
34959
35563
  });
34960
35564
  }
34961
35565
  }
@@ -35298,9 +35902,6 @@ function formatSdkLogLine(message, meta3) {
35298
35902
  return message;
35299
35903
  return `${message} ${detail}`;
35300
35904
  }
35301
- function isTransientSdkConnectionLog(line) {
35302
- return line.startsWith("WebSocket reconnect scheduled ") || line.startsWith("WebSocket closed ") || line.startsWith("WebSocket error: ") || line.startsWith("Protocol reconnect scheduled ") || line.startsWith("Ping timeout, reconnecting ") || line.startsWith("Failed to send ping") || line.startsWith("Failed to send RPC request; waiting for reconnect");
35303
- }
35304
35905
  var DEFAULT_DM_HISTORY_LIMIT = 6;
35305
35906
  var HISTORY_LINE_MAX_CHARS = 280;
35306
35907
  var URL_LIKE_PATTERN = /https?:\/\/\S+/i;
@@ -35760,11 +36361,35 @@ function resolveHistorySenderLabel(params) {
35760
36361
  return "assistant";
35761
36362
  const senderId = String(params.senderId);
35762
36363
  const profile = params.senderProfilesById.get(senderId);
35763
- if (profile?.username)
35764
- return `@${profile.username}`;
35765
- if (profile?.name)
35766
- return profile.name;
35767
- return `user:${senderId}`;
36364
+ return resolveInlineSenderLabel({
36365
+ senderId,
36366
+ senderName: profile?.name,
36367
+ senderUsername: profile?.username
36368
+ });
36369
+ }
36370
+ function resolveInlineSenderLabel(params) {
36371
+ const senderId = params.senderId.trim();
36372
+ const name = params.senderName?.trim();
36373
+ const usernameRaw = params.senderUsername?.trim().replace(/^@+/, "");
36374
+ const username = usernameRaw ? `@${usernameRaw}` : undefined;
36375
+ let label = name;
36376
+ if (name && username) {
36377
+ label = `${name} (${username})`;
36378
+ } else if (!name && username) {
36379
+ label = username;
36380
+ }
36381
+ const id = senderId ? `id:${senderId}` : undefined;
36382
+ if (label && id)
36383
+ return `${label} ${id}`;
36384
+ if (label)
36385
+ return label;
36386
+ return id ?? "id:unknown";
36387
+ }
36388
+ function resolveInlineConversationLabel(params) {
36389
+ if (!params.isGroup)
36390
+ return params.senderLabel;
36391
+ const title = params.groupTitle?.trim();
36392
+ return title ? `${title} id:${params.groupId}` : `group:${params.groupId}`;
35768
36393
  }
35769
36394
  function resolveHistoryLimit(params) {
35770
36395
  if (params.isGroup) {
@@ -36126,12 +36751,12 @@ async function monitorInlineProvider(params) {
36126
36751
  warn: (msg, meta3) => {
36127
36752
  const line = formatSdkLogLine(msg, meta3);
36128
36753
  log?.warn(line);
36129
- pushDiagnostics();
36754
+ pushDiagnostics({ lastError: line });
36130
36755
  },
36131
36756
  error: (msg, meta3) => {
36132
36757
  const line = formatSdkLogLine(msg, meta3);
36133
36758
  log?.error(line);
36134
- pushDiagnostics(isTransientSdkConnectionLog(line) ? undefined : { lastError: line });
36759
+ pushDiagnostics({ lastError: line });
36135
36760
  }
36136
36761
  };
36137
36762
  client = new InlineSdkClient({
@@ -36247,16 +36872,14 @@ async function monitorInlineProvider(params) {
36247
36872
  const senderUsername = senderProfile?.username;
36248
36873
  const senderName = senderProfile?.name ?? (!isGroup ? chatInfo.title ?? undefined : undefined);
36249
36874
  if (reactionEvent) {
36250
- const actor = senderUsername != null && senderUsername.length > 0 ? `@${senderUsername}` : senderName ?? `user:${senderId}`;
36251
36875
  const emoji3 = reactionEvent.emoji.trim() || "a reaction";
36252
36876
  const messageId = String(reactionEvent.targetMessageId);
36253
36877
  if (reactionEvent.action === "added") {
36254
- rawBody = `${actor} reacted with ${emoji3} to your message #${messageId}`;
36878
+ rawBody = `reacted with ${emoji3} to your message #${messageId}`;
36255
36879
  } else {
36256
- rawBody = `${actor} removed ${emoji3} from your message #${messageId}`;
36880
+ rawBody = `removed ${emoji3} from your message #${messageId}`;
36257
36881
  }
36258
36882
  } else if (callbackActionEvent) {
36259
- const actor = senderUsername != null && senderUsername.length > 0 ? `@${senderUsername}` : senderName ?? `user:${senderId}`;
36260
36883
  const payload = {
36261
36884
  type: "inline_message_action_callback",
36262
36885
  interaction_id: String(callbackActionEvent.interactionId),
@@ -36267,7 +36890,7 @@ async function monitorInlineProvider(params) {
36267
36890
  data_base64: callbackDataToBase64(callbackActionEvent.data),
36268
36891
  data_utf8: callbackDataToUtf8(callbackActionEvent.data) ?? null
36269
36892
  };
36270
- rawBody = `${actor} pressed a button on message #${String(callbackActionEvent.targetMessageId)}
36893
+ rawBody = `pressed a button on message #${String(callbackActionEvent.targetMessageId)}
36271
36894
  ${JSON.stringify(payload)}`;
36272
36895
  }
36273
36896
  const dmPolicy = account.config.dmPolicy ?? "pairing";
@@ -36297,8 +36920,8 @@ ${JSON.stringify(payload)}`;
36297
36920
  callbackActionAnswered = true;
36298
36921
  };
36299
36922
  if (callbackActionEvent) {
36300
- await answerCallbackIfNeeded().catch((error48) => {
36301
- runtime2.error?.(`inline callback answer failed: ${String(error48)}`);
36923
+ await answerCallbackIfNeeded().catch((error51) => {
36924
+ runtime2.error?.(`inline callback answer failed: ${String(error51)}`);
36302
36925
  });
36303
36926
  }
36304
36927
  const shouldEditCallbackTargetInPlace = callbackActionEvent != null;
@@ -36321,8 +36944,8 @@ ${JSON.stringify(payload)}`;
36321
36944
  if (isGroup) {
36322
36945
  if (groupPolicy === "disabled") {
36323
36946
  log?.info(`[${account.accountId}] inline: drop group chat=${String(chatId)} (groupPolicy=disabled)`);
36324
- await answerCallbackIfNeeded().catch((error48) => {
36325
- runtime2.error?.(`inline callback answer failed: ${String(error48)}`);
36947
+ await answerCallbackIfNeeded().catch((error51) => {
36948
+ runtime2.error?.(`inline callback answer failed: ${String(error51)}`);
36326
36949
  });
36327
36950
  return;
36328
36951
  }
@@ -36330,8 +36953,8 @@ ${JSON.stringify(payload)}`;
36330
36953
  const allowed = allowlistMatch({ allowFrom: effectiveGroupAllowFrom, senderId });
36331
36954
  if (!allowed) {
36332
36955
  log?.info(`[${account.accountId}] inline: drop group sender=${senderId} (groupPolicy=allowlist)`);
36333
- await answerCallbackIfNeeded().catch((error48) => {
36334
- runtime2.error?.(`inline callback answer failed: ${String(error48)}`);
36956
+ await answerCallbackIfNeeded().catch((error51) => {
36957
+ runtime2.error?.(`inline callback answer failed: ${String(error51)}`);
36335
36958
  });
36336
36959
  return;
36337
36960
  }
@@ -36339,8 +36962,8 @@ ${JSON.stringify(payload)}`;
36339
36962
  } else {
36340
36963
  if (dmPolicy === "disabled") {
36341
36964
  log?.info(`[${account.accountId}] inline: drop DM sender=${senderId} (dmPolicy=disabled)`);
36342
- await answerCallbackIfNeeded().catch((error48) => {
36343
- runtime2.error?.(`inline callback answer failed: ${String(error48)}`);
36965
+ await answerCallbackIfNeeded().catch((error51) => {
36966
+ runtime2.error?.(`inline callback answer failed: ${String(error51)}`);
36344
36967
  });
36345
36968
  return;
36346
36969
  }
@@ -36372,8 +36995,8 @@ ${JSON.stringify(payload)}`;
36372
36995
  }
36373
36996
  }
36374
36997
  log?.info(`[${account.accountId}] inline: drop DM sender=${senderId} (dmPolicy=${dmPolicy})`);
36375
- await answerCallbackIfNeeded().catch((error48) => {
36376
- runtime2.error?.(`inline callback answer failed: ${String(error48)}`);
36998
+ await answerCallbackIfNeeded().catch((error51) => {
36999
+ runtime2.error?.(`inline callback answer failed: ${String(error51)}`);
36377
37000
  });
36378
37001
  return;
36379
37002
  }
@@ -36386,8 +37009,8 @@ ${JSON.stringify(payload)}`;
36386
37009
  reason: "control command (unauthorized)",
36387
37010
  target: senderId
36388
37011
  });
36389
- await answerCallbackIfNeeded().catch((error48) => {
36390
- runtime2.error?.(`inline callback answer failed: ${String(error48)}`);
37012
+ await answerCallbackIfNeeded().catch((error51) => {
37013
+ runtime2.error?.(`inline callback answer failed: ${String(error51)}`);
36391
37014
  });
36392
37015
  return;
36393
37016
  }
@@ -36406,7 +37029,12 @@ ${JSON.stringify(payload)}`;
36406
37029
  const wasMentioned = nativeMentioned || patternMentioned;
36407
37030
  const messageTimestamp = Number(msg.date) * 1000;
36408
37031
  const groupHistoryKey = isGroup ? replyThreadContext ? `${route.sessionKey}:thread:${String(replyThreadContext.childChatId)}` : route.sessionKey : null;
36409
- const pendingHistorySender = senderUsername ? `@${senderUsername}` : senderName ?? `user:${senderId}`;
37032
+ const senderLabel = resolveInlineSenderLabel({
37033
+ senderId,
37034
+ senderName,
37035
+ senderUsername
37036
+ });
37037
+ const pendingHistorySender = senderLabel;
36410
37038
  const historyLimit = resolveHistoryLimit({
36411
37039
  cfg,
36412
37040
  isGroup,
@@ -36471,8 +37099,8 @@ ${JSON.stringify(payload)}`;
36471
37099
  messageId: String(msg.id)
36472
37100
  } : null
36473
37101
  });
36474
- await answerCallbackIfNeeded().catch((error48) => {
36475
- runtime2.error?.(`inline callback answer failed: ${String(error48)}`);
37102
+ await answerCallbackIfNeeded().catch((error51) => {
37103
+ runtime2.error?.(`inline callback answer failed: ${String(error51)}`);
36476
37104
  });
36477
37105
  return;
36478
37106
  }
@@ -36506,8 +37134,8 @@ ${JSON.stringify(payload)}`;
36506
37134
  throw new Error(`inline native command menu: expected editMessage result, got ${String(result.oneofKind)}`);
36507
37135
  }
36508
37136
  deliveredNativeMenu = true;
36509
- } catch (error48) {
36510
- runtime2.error?.(`inline native command menu edit failed; falling back to send (${String(error48)})`);
37137
+ } catch (error51) {
37138
+ runtime2.error?.(`inline native command menu edit failed; falling back to send (${String(error51)})`);
36511
37139
  }
36512
37140
  }
36513
37141
  if (!deliveredNativeMenu) {
@@ -36521,8 +37149,8 @@ ${JSON.stringify(payload)}`;
36521
37149
  }
36522
37150
  }
36523
37151
  statusSink?.({ lastOutboundAt: Date.now() });
36524
- await answerCallbackIfNeeded().catch((error48) => {
36525
- runtime2.error?.(`inline callback answer failed: ${String(error48)}`);
37152
+ await answerCallbackIfNeeded().catch((error51) => {
37153
+ runtime2.error?.(`inline callback answer failed: ${String(error51)}`);
36526
37154
  });
36527
37155
  return;
36528
37156
  }
@@ -36551,8 +37179,8 @@ ${JSON.stringify(payload)}`;
36551
37179
  if (result.oneofKind !== "editMessage") {
36552
37180
  throw new Error(`inline model picker edit: expected editMessage result, got ${String(result.oneofKind)}`);
36553
37181
  }
36554
- } catch (error48) {
36555
- runtime2.error?.(`inline model picker edit failed; falling back to send (${String(error48)})`);
37182
+ } catch (error51) {
37183
+ runtime2.error?.(`inline model picker edit failed; falling back to send (${String(error51)})`);
36556
37184
  const sent = await client.sendMessage({
36557
37185
  chatId,
36558
37186
  text,
@@ -36611,14 +37239,14 @@ Select a provider:`, providerButtons);
36611
37239
  await deliverModelPickerEdit(`✅ Model ${actionText}
36612
37240
 
36613
37241
  This model will be used for your next message.`, []);
36614
- } catch (error48) {
36615
- await deliverModelPickerEdit(`❌ Failed to change model: ${String(error48)}`, []);
37242
+ } catch (error51) {
37243
+ await deliverModelPickerEdit(`❌ Failed to change model: ${String(error51)}`, []);
36616
37244
  }
36617
37245
  }
36618
37246
  }
36619
37247
  statusSink?.({ lastOutboundAt: Date.now() });
36620
- await answerCallbackIfNeeded().catch((error48) => {
36621
- runtime2.error?.(`inline callback answer failed: ${String(error48)}`);
37248
+ await answerCallbackIfNeeded().catch((error51) => {
37249
+ runtime2.error?.(`inline callback answer failed: ${String(error51)}`);
36622
37250
  });
36623
37251
  return;
36624
37252
  }
@@ -36629,41 +37257,56 @@ This model will be used for your next message.`, []);
36629
37257
  ...log ? { log } : {}
36630
37258
  });
36631
37259
  const timestamp = messageTimestamp;
36632
- const fromLabel = isGroup ? `chat:${effectiveGroupTitle ?? String(effectiveChatId)}` : `user:${senderId}`;
37260
+ const fromLabel = resolveInlineConversationLabel({
37261
+ isGroup,
37262
+ groupTitle: effectiveGroupTitle,
37263
+ groupId: String(effectiveChatId),
37264
+ senderLabel
37265
+ });
36633
37266
  const storePath = core3.channel.session.resolveStorePath(cfg.session?.store, { agentId: route.agentId });
36634
37267
  const envelopeOptions = core3.channel.reply.resolveEnvelopeFormatOptions(cfg);
36635
37268
  const previousTimestamp = core3.channel.session.readSessionUpdatedAt({ storePath, sessionKey: route.sessionKey });
36636
- const combinedBody = [
37269
+ const currentBody = buildInlineBodyForAgent({
37270
+ rawBody,
37271
+ currentAttachmentText,
37272
+ currentEntityText
37273
+ });
37274
+ const contextBody = [
36637
37275
  effectiveHistoryContext.historyText,
36638
37276
  effectiveHistoryContext.attachmentText,
36639
37277
  effectiveHistoryContext.entityText,
36640
- INLINE_FORMATTING_NOTE,
36641
- `Current message:
36642
- ${rawBody}`,
36643
- currentAttachmentText && currentAttachmentText !== rawBody ? `Current media/attachments:
36644
- ${currentAttachmentText}` : null,
36645
- currentEntityText ? `Current message entities:
36646
- ${currentEntityText}` : null
37278
+ INLINE_FORMATTING_NOTE
36647
37279
  ].filter(Boolean).join(`
36648
37280
 
36649
37281
  `);
36650
- let body = core3.channel.reply.formatAgentEnvelope({
37282
+ const currentEnvelope = core3.channel.reply.formatInboundEnvelope({
36651
37283
  channel: "Inline",
36652
37284
  from: fromLabel,
36653
37285
  timestamp,
37286
+ chatType: isGroup ? "group" : "direct",
37287
+ sender: {
37288
+ id: senderId,
37289
+ ...senderName ? { name: senderName } : {},
37290
+ ...senderUsername ? { username: senderUsername } : {}
37291
+ },
36654
37292
  ...previousTimestamp != null ? { previousTimestamp } : {},
36655
37293
  envelope: envelopeOptions,
36656
- body: combinedBody || rawBody
37294
+ body: currentBody || rawBody
36657
37295
  });
37296
+ let body = [contextBody, currentEnvelope].filter(Boolean).join(`
37297
+
37298
+ `);
36658
37299
  if (isGroup && groupHistoryKey) {
36659
37300
  body = buildPendingHistoryContextFromMap({
36660
37301
  historyMap: groupPendingHistories,
36661
37302
  historyKey: groupHistoryKey,
36662
37303
  limit: historyLimit,
36663
37304
  currentMessage: body,
36664
- formatEntry: (entry) => core3.channel.reply.formatAgentEnvelope({
37305
+ formatEntry: (entry) => core3.channel.reply.formatInboundEnvelope({
36665
37306
  channel: "Inline",
36666
37307
  from: fromLabel,
37308
+ chatType: "group",
37309
+ senderLabel: entry.sender,
36667
37310
  ...entry.timestamp != null ? { timestamp: entry.timestamp } : {},
36668
37311
  envelope: envelopeOptions,
36669
37312
  body: `${entry.body}${entry.messageId ? ` [id:${entry.messageId} chat:${String(chatId)}]` : ""}`
@@ -36675,11 +37318,7 @@ ${currentEntityText}` : null
36675
37318
  pendingEntries: groupPendingHistories.get(groupHistoryKey) ?? [],
36676
37319
  limit: historyLimit
36677
37320
  }) : [];
36678
- const bodyForAgent = buildInlineBodyForAgent({
36679
- rawBody,
36680
- currentAttachmentText,
36681
- currentEntityText
36682
- });
37321
+ const bodyForAgent = currentBody;
36683
37322
  const effectiveSurface = shouldUseTelegramSurfaceForModelCommands(normalizedCommandBody) ? "telegram" : CHANNEL_ID;
36684
37323
  const systemPrompt = resolveInlineSystemPrompt({
36685
37324
  account,
@@ -36845,9 +37484,9 @@ ${currentEntityText}` : null
36845
37484
  }
36846
37485
  editStreamState.accumulatedText = nextText;
36847
37486
  statusSink?.({ lastOutboundAt: Date.now() });
36848
- } catch (error48) {
37487
+ } catch (error51) {
36849
37488
  editStreamState.failed = true;
36850
- runtime2.error?.(`inline edit stream failed: ${String(error48)}`);
37489
+ runtime2.error?.(`inline edit stream failed: ${String(error51)}`);
36851
37490
  }
36852
37491
  });
36853
37492
  await editStreamState.opChain;
@@ -36865,6 +37504,16 @@ ${currentEntityText}` : null
36865
37504
  await handlePartialStreamPayload(payload);
36866
37505
  }
36867
37506
  } : {},
37507
+ ...streamViaEditMessage ? {
37508
+ onReasoningStream: async (payload) => {
37509
+ await handlePartialStreamPayload(payload);
37510
+ }
37511
+ } : {},
37512
+ ...streamViaEditMessage ? {
37513
+ onReasoningEnd: async () => {
37514
+ await editStreamState.opChain;
37515
+ }
37516
+ } : {},
36868
37517
  ...streamViaEditMessage ? {
36869
37518
  onToolStart: async () => {
36870
37519
  await resetEditStreamOnBoundary();
@@ -36895,9 +37544,6 @@ ${currentEntityText}` : null
36895
37544
  ...prefixOptions,
36896
37545
  ...typingCallbacks ? { typingCallbacks } : {},
36897
37546
  deliver: async (payload, info) => {
36898
- if (payload.isReasoning === true) {
36899
- return;
36900
- }
36901
37547
  const rawText = payload.text ?? "";
36902
37548
  const mediaList = payload.mediaUrls?.length ? payload.mediaUrls : payload.mediaUrl ? [payload.mediaUrl] : [];
36903
37549
  const outboundText = rewriteNumericMentionsToUsernames(rawText, senderProfilesById);
@@ -37023,8 +37669,8 @@ ${currentEntityText}` : null
37023
37669
  });
37024
37670
  rememberSent(sent.messageId);
37025
37671
  delivered = true;
37026
- } catch (error48) {
37027
- runtime2.error?.(`inline media upload failed; falling back to url text (${String(error48)})`);
37672
+ } catch (error51) {
37673
+ runtime2.error?.(`inline media upload failed; falling back to url text (${String(error51)})`);
37028
37674
  const fallbackText = caption ? `${caption}
37029
37675
 
37030
37676
  Attachment: ${mediaUrl}` : `Attachment: ${mediaUrl}`;
@@ -37045,9 +37691,9 @@ Attachment: ${mediaUrl}` : `Attachment: ${mediaUrl}`;
37045
37691
  },
37046
37692
  replyOptions
37047
37693
  });
37048
- } catch (error48) {
37049
- dispatchError = error48;
37050
- runtime2.error?.(`inline dispatch failed: ${String(error48)}`);
37694
+ } catch (error51) {
37695
+ dispatchError = error51;
37696
+ runtime2.error?.(`inline dispatch failed: ${String(error51)}`);
37051
37697
  }
37052
37698
  if (!delivered && streamViaEditMessage && editStreamState.messageId != null) {
37053
37699
  delivered = true;
@@ -37069,8 +37715,8 @@ Attachment: ${mediaUrl}` : `Attachment: ${mediaUrl}`;
37069
37715
  if (callbackActionEvent && !callbackActionAnswered) {
37070
37716
  try {
37071
37717
  await answerCallbackIfNeeded();
37072
- } catch (error48) {
37073
- runtime2.error?.(`inline callback answer failed: ${String(error48)}`);
37718
+ } catch (error51) {
37719
+ runtime2.error?.(`inline callback answer failed: ${String(error51)}`);
37074
37720
  }
37075
37721
  }
37076
37722
  }
@@ -37431,7 +38077,7 @@ function chunkInteractiveButtons(buttons, rows) {
37431
38077
  for (let i = 0;i < buttons.length; i += INLINE_ACTION_MAX_PER_ROW2) {
37432
38078
  const row = buttons.slice(i, i + INLINE_ACTION_MAX_PER_ROW2).map((button) => {
37433
38079
  const text = button.label.trim();
37434
- const callbackData = button.value.trim();
38080
+ const callbackData = button.value?.trim() ?? "";
37435
38081
  if (!text || !callbackData) {
37436
38082
  return null;
37437
38083
  }
@@ -37919,18 +38565,18 @@ async function loadMessageReactions(params) {
37919
38565
  }
37920
38566
  return Array.from(byEmoji.values());
37921
38567
  }
37922
- function getErrorMessage(error48) {
37923
- if (error48 instanceof Error)
37924
- return error48.message;
37925
- if (typeof error48 === "string")
37926
- return error48;
37927
- if (error48 && typeof error48 === "object" && "message" in error48 && typeof error48.message === "string") {
37928
- return error48.message;
38568
+ function getErrorMessage(error51) {
38569
+ if (error51 instanceof Error)
38570
+ return error51.message;
38571
+ if (typeof error51 === "string")
38572
+ return error51;
38573
+ if (error51 && typeof error51 === "object" && "message" in error51 && typeof error51.message === "string") {
38574
+ return error51.message;
37929
38575
  }
37930
- return String(error48);
38576
+ return String(error51);
37931
38577
  }
37932
- function isDuplicateReactionError(error48) {
37933
- const text = getErrorMessage(error48).toLowerCase();
38578
+ function isDuplicateReactionError(error51) {
38579
+ const text = getErrorMessage(error51).toLowerCase();
37934
38580
  return text.includes("unique_reaction_per_emoji") || text.includes("duplicate") && text.includes("reaction") || text.includes("duplicate key value violates unique constraint");
37935
38581
  }
37936
38582
  async function reactionAlreadyExists(params) {
@@ -38078,7 +38724,7 @@ function describeInlineMessageTool({
38078
38724
  };
38079
38725
  }
38080
38726
  const buttonsEnabled = supportsInlineMessageButtons(actions);
38081
- const capabilities = buttonsEnabled ? ["interactive", "buttons"] : [];
38727
+ const capabilities = buttonsEnabled ? ["presentation"] : [];
38082
38728
  const schema = buttonsEnabled ? [
38083
38729
  {
38084
38730
  properties: {
@@ -38334,8 +38980,8 @@ var inlineMessageActions = {
38334
38980
  if (result.oneofKind !== "addReaction") {
38335
38981
  throw new Error(`inline action: expected addReaction result, got ${String(result.oneofKind)}`);
38336
38982
  }
38337
- } catch (error48) {
38338
- if (!isDuplicateReactionError(error48)) {
38983
+ } catch (error51) {
38984
+ if (!isDuplicateReactionError(error51)) {
38339
38985
  return jsonResult({
38340
38986
  ok: false,
38341
38987
  reason: "error",
@@ -39062,9 +39708,9 @@ async function withTimeout(promise2, timeoutMs) {
39062
39708
  promise2.then((value) => {
39063
39709
  clearTimeout(timer);
39064
39710
  resolve(value);
39065
- }, (error48) => {
39711
+ }, (error51) => {
39066
39712
  clearTimeout(timer);
39067
- reject(error48);
39713
+ reject(error51);
39068
39714
  });
39069
39715
  });
39070
39716
  }
@@ -39105,11 +39751,11 @@ async function probeInlineAccountDirect(account) {
39105
39751
  await client.close().catch(() => {});
39106
39752
  }
39107
39753
  }
39108
- function toErrorText(error48) {
39109
- if (error48 instanceof Error && error48.message.trim()) {
39110
- return error48.message;
39754
+ function toErrorText(error51) {
39755
+ if (error51 instanceof Error && error51.message.trim()) {
39756
+ return error51.message;
39111
39757
  }
39112
- return String(error48);
39758
+ return String(error51);
39113
39759
  }
39114
39760
  async function probeInlineAccount(account, timeoutMs) {
39115
39761
  if (!account.configured) {
@@ -39122,12 +39768,12 @@ async function probeInlineAccount(account, timeoutMs) {
39122
39768
  }
39123
39769
  try {
39124
39770
  return await withTimeout(probeInlineAccountDirect(account), timeoutMs);
39125
- } catch (error48) {
39771
+ } catch (error51) {
39126
39772
  return {
39127
39773
  ok: false,
39128
39774
  accountId: account.accountId,
39129
39775
  baseUrl: account.baseUrl,
39130
- error: toErrorText(error48)
39776
+ error: toErrorText(error51)
39131
39777
  };
39132
39778
  }
39133
39779
  }
@@ -39143,18 +39789,15 @@ function readInlineProbeSummary(value) {
39143
39789
  if (typeof value.ok === "boolean") {
39144
39790
  summary.ok = value.ok;
39145
39791
  }
39146
- const error48 = asString(value.error);
39147
- if (error48) {
39148
- summary.error = error48;
39792
+ const error51 = asString(value.error);
39793
+ if (error51) {
39794
+ summary.error = error51;
39149
39795
  }
39150
39796
  return summary;
39151
39797
  }
39152
39798
  function looksLikeAuthError(text) {
39153
39799
  return /(401|403|unauth|forbidden|invalid token|token invalid|unauthorized)/i.test(text);
39154
39800
  }
39155
- function looksLikeTransientConnectionNotice(text) {
39156
- return text.startsWith("WebSocket reconnect scheduled ") || text.startsWith("WebSocket closed ") || text.startsWith("WebSocket error: ") || text.startsWith("Protocol reconnect scheduled ") || text.startsWith("Ping timeout, reconnecting ") || text.startsWith("Failed to send ping") || text.startsWith("Failed to send RPC request; waiting for reconnect");
39157
- }
39158
39801
  function readInlineDiagnosticsSummary(value) {
39159
39802
  if (!isRecord5(value)) {
39160
39803
  return {};
@@ -39223,7 +39866,7 @@ function collectInlineStatusIssues(accounts) {
39223
39866
  });
39224
39867
  }
39225
39868
  const lastError = asString(entry.lastError);
39226
- if (lastError && !looksLikeTransientConnectionNotice(lastError)) {
39869
+ if (lastError) {
39227
39870
  issues.push({
39228
39871
  channel: "inline",
39229
39872
  accountId,
@@ -39491,10 +40134,10 @@ async function resolveInlineOutboundTarget(params) {
39491
40134
  }
39492
40135
  return target;
39493
40136
  }
39494
- function isChatInvalidError(error48) {
39495
- if (error48 == null)
40137
+ function isChatInvalidError(error51) {
40138
+ if (error51 == null)
39496
40139
  return false;
39497
- const text = error48 instanceof Error ? error48.message : String(error48);
40140
+ const text = error51 instanceof Error ? error51.message : String(error51);
39498
40141
  return text.toUpperCase().includes("CHAT_INVALID");
39499
40142
  }
39500
40143
  function wrapInlineTargetError(params) {
@@ -39694,9 +40337,9 @@ async function sendMessageInline(params) {
39694
40337
  text: params.text,
39695
40338
  ...replyToMsgId != null ? { replyToMsgId } : {},
39696
40339
  parseMarkdown: account.config.parseMarkdown ?? true
39697
- }).catch((error48) => {
40340
+ }).catch((error51) => {
39698
40341
  throw wrapInlineTargetError({
39699
- error: error48,
40342
+ error: error51,
39700
40343
  context: "sendText",
39701
40344
  target,
39702
40345
  resolvedTarget
@@ -39752,9 +40395,9 @@ async function sendMediaInline(params) {
39752
40395
  media,
39753
40396
  ...replyToMsgId != null ? { replyToMsgId } : {},
39754
40397
  ...caption ? { parseMarkdown: account.config.parseMarkdown ?? true } : {}
39755
- }).catch((error48) => {
40398
+ }).catch((error51) => {
39756
40399
  throw wrapInlineTargetError({
39757
- error: error48,
40400
+ error: error51,
39758
40401
  context: "sendMedia",
39759
40402
  target,
39760
40403
  resolvedTarget
@@ -40968,11 +41611,11 @@ async function uploadProfilePhoto(client, rawSource) {
40968
41611
  let loaded;
40969
41612
  try {
40970
41613
  loaded = await runtimeMedia.loadWebMedia(rawSource);
40971
- } catch (error48) {
40972
- const message = String(error48);
41614
+ } catch (error51) {
41615
+ const message = String(error51);
40973
41616
  const deniedLocalPath = /not under an allowed directory/i.test(message);
40974
41617
  if (!deniedLocalPath || !looksLikeLocalMediaSource2(rawSource)) {
40975
- throw error48;
41618
+ throw error51;
40976
41619
  }
40977
41620
  loaded = await loadWebMediaCompat(rawSource, undefined, { localRoots: "any" });
40978
41621
  }
@@ -41066,8 +41709,8 @@ async function callInlineBotApi(params) {
41066
41709
  let response;
41067
41710
  try {
41068
41711
  response = await fetch(url2, request);
41069
- } catch (error48) {
41070
- throw new Error(`inline_bot_commands: ${params.method} ${redactInlineBotApiUrl(url2)} fetch failed: ${summarizeInlineBotApiError(error48)}`);
41712
+ } catch (error51) {
41713
+ throw new Error(`inline_bot_commands: ${params.method} ${redactInlineBotApiUrl(url2)} fetch failed: ${summarizeInlineBotApiError(error51)}`);
41071
41714
  }
41072
41715
  const payload = await response.json().catch(() => null);
41073
41716
  return { response, payload };
@@ -41098,11 +41741,11 @@ async function callInlineBotApi(params) {
41098
41741
  }
41099
41742
  return resolve(headerResult);
41100
41743
  }
41101
- function summarizeInlineBotApiError(error48) {
41102
- if (error48 instanceof Error) {
41103
- return `${error48.name}: ${error48.message}`;
41744
+ function summarizeInlineBotApiError(error51) {
41745
+ if (error51 instanceof Error) {
41746
+ return `${error51.name}: ${error51.message}`;
41104
41747
  }
41105
- return String(error48);
41748
+ return String(error51);
41106
41749
  }
41107
41750
  function redactInlineBotApiUrl(raw) {
41108
41751
  try {
@@ -41451,5 +42094,5 @@ export {
41451
42094
  src_default as default
41452
42095
  };
41453
42096
 
41454
- //# debugId=AA2B11EC366875DE64756E2164756E21
42097
+ //# debugId=47B0E906C43785DE64756E2164756E21
41455
42098
  //# sourceMappingURL=index.js.map