@gobing-ai/knowledge-kit 0.0.23 → 0.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/dist/index.js +137 -59
  3. package/package.json +4 -4
  4. package/plugins/generations/content-gen/dist/index.js +97 -45
  5. package/plugins/generations/core-facts-gen/dist/index.js +106 -57
  6. package/plugins/generations/daily-article-gen/dist/index.js +105 -56
  7. package/plugins/generations/dailynews-gen/dist/index.js +235 -57
  8. package/plugins/generations/dailynews-gen/src/index.ts +67 -2
  9. package/plugins/generations/dailynews-gen/src/script-builder.ts +36 -15
  10. package/plugins/generations/dailynews-gen/src/script-plan.ts +142 -0
  11. package/plugins/generations/episode-plan-gen/dist/index.js +115 -66
  12. package/plugins/generations/gemini-tts/README.md +24 -0
  13. package/plugins/generations/gemini-tts/dist/index.js +326 -260
  14. package/plugins/generations/gemini-tts/src/gemini-client.ts +41 -11
  15. package/plugins/generations/image-gen/dist/index.js +338 -117
  16. package/plugins/generations/image-gen/presets/formats/daily-news-cover.yaml +19 -0
  17. package/plugins/generations/image-gen/presets/formats/xhs-card.yaml +55 -0
  18. package/plugins/generations/image-gen/presets/styles/daily-news.yaml +9 -0
  19. package/plugins/generations/image-gen/presets/styles/xhs-knowledge.yaml +7 -0
  20. package/plugins/generations/image-gen/src/index.ts +148 -14
  21. package/plugins/generations/image-gen/src/job.ts +30 -0
  22. package/plugins/generations/image-gen/src/providers/errors.ts +91 -0
  23. package/plugins/generations/image-gen/src/providers/types.ts +79 -0
  24. package/plugins/generations/news-report-gen/dist/index.js +136 -55
  25. package/plugins/generations/news-report-gen/src/index.ts +57 -1
  26. package/plugins/generations/voice-gen/dist/index.js +119 -67
  27. package/plugins/ingestions/aihot-ingest/dist/index.js +103 -53
  28. package/plugins/ingestions/horizon-ingest/dist/index.js +102 -53
  29. package/plugins/ingestions/karakeep-local/dist/index.js +273 -224
  30. package/plugins/ingestions/last30days-ingest/dist/index.js +97 -48
  31. package/plugins/ingestions/web-search/dist/index.js +121 -72
  32. package/plugins/kk/config.example.yaml +13 -0
  33. package/plugins/kk/plugin.json +1 -1
  34. package/plugins/kk/scripts/daily-voice-style.zh.md +52 -0
  35. package/plugins/kk/scripts/kk-workflow-stages.ts +433 -16
  36. package/plugins/kk/skills/publish/SKILL.md +24 -1
  37. package/plugins/kk/skills/xhs-images/SKILL.md +89 -0
  38. package/plugins/kk/skills/xhs-images/references/card-layouts.md +35 -0
  39. package/plugins/kk/workflows/kk-daily-ai-voice.yaml +162 -11
  40. package/plugins/publishings/emdash-pub/dist/index.js +94 -45
  41. package/plugins/publishings/infoq-pub/dist/index.js +94 -45
  42. package/plugins/publishings/juejin-pub/dist/index.js +94 -45
  43. package/plugins/publishings/medium-pub/dist/index.js +94 -45
  44. package/plugins/publishings/podcast-pub/dist/index.js +115 -55
  45. package/plugins/publishings/podcast-pub/src/map.ts +30 -10
  46. package/plugins/publishings/podcast-pub/src/show-notes.ts +6 -1
  47. package/plugins/publishings/qiita-pub/dist/index.js +94 -45
  48. package/plugins/publishings/substack-pub/dist/index.js +94 -45
  49. package/plugins/publishings/surfdash-pub/dist/index.js +99 -63
  50. package/plugins/publishings/surfdash-pub/src/index.ts +10 -1
  51. package/plugins/publishings/wechatmp-pub/dist/index.js +94 -45
  52. package/plugins/publishings/x-pub/dist/index.js +94 -45
  53. package/plugins/publishings/xhs-pub/dist/index.js +8908 -229
  54. package/plugins/publishings/xhs-pub/package.json +1 -0
  55. package/plugins/publishings/xhs-pub/plugin.json +1 -1
  56. package/plugins/publishings/xhs-pub/src/automation-guard.ts +128 -0
  57. package/plugins/publishings/xhs-pub/src/index.ts +753 -24
  58. package/plugins/publishings/xhs-pub/src/profile-check.ts +133 -0
  59. package/plugins/publishings/zenn-pub/dist/index.js +94 -45
  60. package/plugins/sp/lib/env.ts +46 -0
  61. package/plugins/sp/lib/inline-run.generated.mjs +1489 -0
  62. package/plugins/sp/scripts/feature-verification-steps.ts +275 -0
  63. package/plugins/sp/scripts/inline-run-setup.ts +571 -47
  64. package/plugins/sp/scripts/wrapup-drift-probe.mjs +190 -0
  65. package/plugins/sp/scripts/wrapup-drift-probe.ts +258 -0
  66. package/plugins/sp/scripts/wrapup-steps.mjs +77 -6
  67. package/plugins/sp/scripts/wrapup-steps.ts +91 -5
@@ -17,6 +17,72 @@ var __export = (target, all) => {
17
17
  var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
18
18
  var __require = import.meta.require;
19
19
 
20
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.11/node_modules/@gobing-ai/ts-utils/dist/errors.js
21
+ var ErrorCode;
22
+ var init_errors = __esm(() => {
23
+ ErrorCode = {
24
+ NotFound: "NOT_FOUND",
25
+ Validation: "VALIDATION",
26
+ Conflict: "CONFLICT",
27
+ Internal: "INTERNAL"
28
+ };
29
+ });
30
+
31
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.11/node_modules/@gobing-ai/ts-utils/dist/api-response.js
32
+ var API_ERROR_CODES, ERROR_CODE_TO_HTTP, CLIENT_SAFE_CODES;
33
+ var init_api_response = __esm(() => {
34
+ init_errors();
35
+ API_ERROR_CODES = {
36
+ SUCCESS: 0,
37
+ NOT_FOUND: 404,
38
+ VALIDATION_ERROR: 422,
39
+ BAD_REQUEST: 400,
40
+ UNAUTHORIZED: 401,
41
+ FORBIDDEN: 403,
42
+ CONFLICT: 409,
43
+ INTERNAL_ERROR: 500
44
+ };
45
+ ERROR_CODE_TO_HTTP = {
46
+ [ErrorCode.NotFound]: API_ERROR_CODES.NOT_FOUND,
47
+ [ErrorCode.Validation]: API_ERROR_CODES.VALIDATION_ERROR,
48
+ [ErrorCode.Conflict]: API_ERROR_CODES.CONFLICT,
49
+ [ErrorCode.Internal]: API_ERROR_CODES.INTERNAL_ERROR
50
+ };
51
+ CLIENT_SAFE_CODES = new Set([ErrorCode.NotFound, ErrorCode.Validation, ErrorCode.Conflict]);
52
+ });
53
+
54
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.11/node_modules/@gobing-ai/ts-utils/dist/cursor.js
55
+ var init_cursor = () => {};
56
+
57
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.11/node_modules/@gobing-ai/ts-utils/dist/event-severity.js
58
+ var init_event_severity = () => {};
59
+
60
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.11/node_modules/@gobing-ai/ts-utils/dist/output.js
61
+ function processStream(name) {
62
+ const proc = globalThis.process;
63
+ const stream = proc?.[name];
64
+ if (stream === undefined) {
65
+ throw new Error(`No ${name} target available: set one via setDefaultOutputTargets or pass an explicit target`);
66
+ }
67
+ return stream;
68
+ }
69
+ function writeLine(message, target) {
70
+ target.write(`${message}
71
+ `);
72
+ }
73
+ function echoError(message, target = defaultStderrTarget ?? processStream("stderr")) {
74
+ writeLine(message, target);
75
+ }
76
+ var defaultStderrTarget;
77
+
78
+ // ../../node_modules/.bun/@gobing-ai+ts-utils@0.5.11/node_modules/@gobing-ai/ts-utils/dist/index.js
79
+ var init_dist = __esm(() => {
80
+ init_api_response();
81
+ init_cursor();
82
+ init_errors();
83
+ init_event_severity();
84
+ });
85
+
20
86
  // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/core.js
21
87
  function $constructor(name, initializer, params) {
22
88
  function init(inst, def) {
@@ -216,9 +282,9 @@ function floatSafeRemainder(val, step) {
216
282
  return 0;
217
283
  return ratio - roundedRatio;
218
284
  }
219
- function defineLazy(object, key, getter) {
285
+ function defineLazy(object2, key, getter) {
220
286
  let value = undefined;
221
- Object.defineProperty(object, key, {
287
+ Object.defineProperty(object2, key, {
222
288
  get() {
223
289
  if (value === EVALUATING) {
224
290
  return;
@@ -230,7 +296,7 @@ function defineLazy(object, key, getter) {
230
296
  return value;
231
297
  },
232
298
  set(v) {
233
- Object.defineProperty(object, key, {
299
+ Object.defineProperty(object2, key, {
234
300
  value: v
235
301
  });
236
302
  },
@@ -928,7 +994,7 @@ var initializer = (inst, def) => {
928
994
  enumerable: false
929
995
  });
930
996
  }, $ZodError, $ZodRealError;
931
- var init_errors = __esm(() => {
997
+ var init_errors2 = __esm(() => {
932
998
  init_core();
933
999
  init_util();
934
1000
  $ZodError = $constructor("$ZodError", initializer);
@@ -1001,7 +1067,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
1001
1067
  }, safeDecodeAsync;
1002
1068
  var init_parse = __esm(() => {
1003
1069
  init_core();
1004
- init_errors();
1070
+ init_errors2();
1005
1071
  init_util();
1006
1072
  parse = /* @__PURE__ */ _parse($ZodRealError);
1007
1073
  parseAsync = /* @__PURE__ */ _parseAsync($ZodRealError);
@@ -1069,7 +1135,7 @@ __export(exports_regexes, {
1069
1135
  duration: () => duration,
1070
1136
  domain: () => domain,
1071
1137
  datetime: () => datetime,
1072
- date: () => date,
1138
+ date: () => date2,
1073
1139
  cuid2: () => cuid2,
1074
1140
  cuid: () => cuid,
1075
1141
  cidrv6: () => cidrv6,
@@ -1114,7 +1180,7 @@ var cuid, cuid2, ulid, xid, ksuid, nanoid, duration, extendedDuration, guid, uui
1114
1180
  }, uuid4, uuid6, uuid7, email, html5Email, rfc5322Email, unicodeEmail, idnEmail, browserEmail, _emoji = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`, ipv4, ipv6, mac = (delimiter) => {
1115
1181
  const escapedDelim = escapeRegex(delimiter ?? ":");
1116
1182
  return new RegExp(`^(?:[0-9A-F]{2}${escapedDelim}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${escapedDelim}){5}[0-9a-f]{2}$`);
1117
- }, cidrv4, cidrv6, base64, base64url, hostname, domain, httpProtocol, e164, 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])))`, date, string = (params) => {
1183
+ }, cidrv4, cidrv6, base64, base64url, hostname, domain, httpProtocol, e164, 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])))`, date2, string = (params) => {
1118
1184
  const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
1119
1185
  return new RegExp(`^${regex}$`);
1120
1186
  }, bigint, integer, number, boolean, _null, _undefined, lowercase, uppercase, hex, md5_hex, md5_base64, md5_base64url, sha1_hex, sha1_base64, sha1_base64url, sha256_hex, sha256_base64, sha256_base64url, sha384_hex, sha384_base64, sha384_base64url, sha512_hex, sha512_base64, sha512_base64url;
@@ -1148,7 +1214,7 @@ var init_regexes = __esm(() => {
1148
1214
  domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
1149
1215
  httpProtocol = /^https?$/;
1150
1216
  e164 = /^\+[1-9]\d{6,14}$/;
1151
- date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
1217
+ date2 = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
1152
1218
  bigint = /^-?\d+n?$/;
1153
1219
  integer = /^-?\d+$/;
1154
1220
  number = /^-?\d+(?:\.\d+)?$/;
@@ -1199,7 +1265,7 @@ var init_checks = __esm(() => {
1199
1265
  };
1200
1266
  $ZodCheckLessThan = /* @__PURE__ */ $constructor("$ZodCheckLessThan", (inst, def) => {
1201
1267
  $ZodCheck.init(inst, def);
1202
- const origin = numericOriginMap[typeof def.value];
1268
+ const origin2 = numericOriginMap[typeof def.value];
1203
1269
  inst._zod.onattach.push((inst2) => {
1204
1270
  const bag = inst2._zod.bag;
1205
1271
  const curr = (def.inclusive ? bag.maximum : bag.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
@@ -1215,7 +1281,7 @@ var init_checks = __esm(() => {
1215
1281
  return;
1216
1282
  }
1217
1283
  payload.issues.push({
1218
- origin,
1284
+ origin: origin2,
1219
1285
  code: "too_big",
1220
1286
  maximum: typeof def.value === "object" ? def.value.getTime() : def.value,
1221
1287
  input: payload.value,
@@ -1227,7 +1293,7 @@ var init_checks = __esm(() => {
1227
1293
  });
1228
1294
  $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan", (inst, def) => {
1229
1295
  $ZodCheck.init(inst, def);
1230
- const origin = numericOriginMap[typeof def.value];
1296
+ const origin2 = numericOriginMap[typeof def.value];
1231
1297
  inst._zod.onattach.push((inst2) => {
1232
1298
  const bag = inst2._zod.bag;
1233
1299
  const curr = (def.inclusive ? bag.minimum : bag.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
@@ -1243,7 +1309,7 @@ var init_checks = __esm(() => {
1243
1309
  return;
1244
1310
  }
1245
1311
  payload.issues.push({
1246
- origin,
1312
+ origin: origin2,
1247
1313
  code: "too_small",
1248
1314
  minimum: typeof def.value === "object" ? def.value.getTime() : def.value,
1249
1315
  input: payload.value,
@@ -1279,7 +1345,7 @@ var init_checks = __esm(() => {
1279
1345
  $ZodCheck.init(inst, def);
1280
1346
  def.format = def.format || "float64";
1281
1347
  const isInt = def.format?.includes("int");
1282
- const origin = isInt ? "int" : "number";
1348
+ const origin2 = isInt ? "int" : "number";
1283
1349
  const [minimum, maximum] = NUMBER_FORMAT_RANGES[def.format];
1284
1350
  inst._zod.onattach.push((inst2) => {
1285
1351
  const bag = inst2._zod.bag;
@@ -1294,7 +1360,7 @@ var init_checks = __esm(() => {
1294
1360
  if (isInt) {
1295
1361
  if (!Number.isInteger(input)) {
1296
1362
  payload.issues.push({
1297
- expected: origin,
1363
+ expected: origin2,
1298
1364
  format: def.format,
1299
1365
  code: "invalid_type",
1300
1366
  continue: false,
@@ -1311,7 +1377,7 @@ var init_checks = __esm(() => {
1311
1377
  maximum: Number.MAX_SAFE_INTEGER,
1312
1378
  note: "Integers must be within the safe integer range.",
1313
1379
  inst,
1314
- origin,
1380
+ origin: origin2,
1315
1381
  inclusive: true,
1316
1382
  continue: !def.abort
1317
1383
  });
@@ -1322,7 +1388,7 @@ var init_checks = __esm(() => {
1322
1388
  minimum: Number.MIN_SAFE_INTEGER,
1323
1389
  note: "Integers must be within the safe integer range.",
1324
1390
  inst,
1325
- origin,
1391
+ origin: origin2,
1326
1392
  inclusive: true,
1327
1393
  continue: !def.abort
1328
1394
  });
@@ -1492,9 +1558,9 @@ var init_checks = __esm(() => {
1492
1558
  const length = input.length;
1493
1559
  if (length <= def.maximum)
1494
1560
  return;
1495
- const origin = getLengthableOrigin(input);
1561
+ const origin2 = getLengthableOrigin(input);
1496
1562
  payload.issues.push({
1497
- origin,
1563
+ origin: origin2,
1498
1564
  code: "too_big",
1499
1565
  maximum: def.maximum,
1500
1566
  inclusive: true,
@@ -1521,9 +1587,9 @@ var init_checks = __esm(() => {
1521
1587
  const length = input.length;
1522
1588
  if (length >= def.minimum)
1523
1589
  return;
1524
- const origin = getLengthableOrigin(input);
1590
+ const origin2 = getLengthableOrigin(input);
1525
1591
  payload.issues.push({
1526
- origin,
1592
+ origin: origin2,
1527
1593
  code: "too_small",
1528
1594
  minimum: def.minimum,
1529
1595
  inclusive: true,
@@ -1551,10 +1617,10 @@ var init_checks = __esm(() => {
1551
1617
  const length = input.length;
1552
1618
  if (length === def.length)
1553
1619
  return;
1554
- const origin = getLengthableOrigin(input);
1620
+ const origin2 = getLengthableOrigin(input);
1555
1621
  const tooBig = length > def.length;
1556
1622
  payload.issues.push({
1557
- origin,
1623
+ origin: origin2,
1558
1624
  ...tooBig ? { code: "too_big", maximum: def.length } : { code: "too_small", minimum: def.length },
1559
1625
  inclusive: true,
1560
1626
  exact: true,
@@ -2445,7 +2511,7 @@ var init_schemas = __esm(() => {
2445
2511
  $ZodStringFormat.init(inst, def);
2446
2512
  });
2447
2513
  $ZodISODate = /* @__PURE__ */ $constructor("$ZodISODate", (inst, def) => {
2448
- def.pattern ?? (def.pattern = date);
2514
+ def.pattern ?? (def.pattern = date2);
2449
2515
  $ZodStringFormat.init(inst, def);
2450
2516
  });
2451
2517
  $ZodISOTime = /* @__PURE__ */ $constructor("$ZodISOTime", (inst, def) => {
@@ -3458,9 +3524,9 @@ var init_schemas = __esm(() => {
3458
3524
  }
3459
3525
  const _out = def.transform(payload.value, payload);
3460
3526
  if (ctx.async) {
3461
- const output = _out instanceof Promise ? _out : Promise.resolve(_out);
3462
- return output.then((output2) => {
3463
- payload.value = output2;
3527
+ const output2 = _out instanceof Promise ? _out : Promise.resolve(_out);
3528
+ return output2.then((output3) => {
3529
+ payload.value = output3;
3464
3530
  payload.fallback = true;
3465
3531
  return payload;
3466
3532
  });
@@ -3820,12 +3886,12 @@ var init_schemas = __esm(() => {
3820
3886
  output: inst._def.output
3821
3887
  });
3822
3888
  };
3823
- inst.output = (output) => {
3889
+ inst.output = (output2) => {
3824
3890
  const F = inst.constructor;
3825
3891
  return new F({
3826
3892
  type: "function",
3827
3893
  input: inst._def.input,
3828
- output
3894
+ output: output2
3829
3895
  });
3830
3896
  };
3831
3897
  return inst;
@@ -3884,8 +3950,8 @@ var error = () => {
3884
3950
  array: { unit: "\u0639\u0646\u0635\u0631", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
3885
3951
  set: { unit: "\u0639\u0646\u0635\u0631", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" }
3886
3952
  };
3887
- function getSizing(origin) {
3888
- return Sizable[origin] ?? null;
3953
+ function getSizing(origin2) {
3954
+ return Sizable[origin2] ?? null;
3889
3955
  }
3890
3956
  const FormatDictionary = {
3891
3957
  regex: "\u0645\u062F\u062E\u0644",
@@ -3994,8 +4060,8 @@ var error2 = () => {
3994
4060
  array: { unit: "element", verb: "olmal\u0131d\u0131r" },
3995
4061
  set: { unit: "element", verb: "olmal\u0131d\u0131r" }
3996
4062
  };
3997
- function getSizing(origin) {
3998
- return Sizable[origin] ?? null;
4063
+ function getSizing(origin2) {
4064
+ return Sizable[origin2] ?? null;
3999
4065
  }
4000
4066
  const FormatDictionary = {
4001
4067
  regex: "input",
@@ -4146,8 +4212,8 @@ var error3 = () => {
4146
4212
  verb: "\u043C\u0435\u0446\u044C"
4147
4213
  }
4148
4214
  };
4149
- function getSizing(origin) {
4150
- return Sizable[origin] ?? null;
4215
+ function getSizing(origin2) {
4216
+ return Sizable[origin2] ?? null;
4151
4217
  }
4152
4218
  const FormatDictionary = {
4153
4219
  regex: "\u0443\u0432\u043E\u0434",
@@ -4263,8 +4329,8 @@ var error4 = () => {
4263
4329
  array: { unit: "\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
4264
4330
  set: { unit: "\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" }
4265
4331
  };
4266
- function getSizing(origin) {
4267
- return Sizable[origin] ?? null;
4332
+ function getSizing(origin2) {
4333
+ return Sizable[origin2] ?? null;
4268
4334
  }
4269
4335
  const FormatDictionary = {
4270
4336
  regex: "\u0432\u0445\u043E\u0434",
@@ -4387,8 +4453,8 @@ var error5 = () => {
4387
4453
  array: { unit: "elements", verb: "contenir" },
4388
4454
  set: { unit: "elements", verb: "contenir" }
4389
4455
  };
4390
- function getSizing(origin) {
4391
- return Sizable[origin] ?? null;
4456
+ function getSizing(origin2) {
4457
+ return Sizable[origin2] ?? null;
4392
4458
  }
4393
4459
  const FormatDictionary = {
4394
4460
  regex: "entrada",
@@ -4498,8 +4564,8 @@ var error6 = () => {
4498
4564
  array: { unit: "prvk\u016F", verb: "m\xEDt" },
4499
4565
  set: { unit: "prvk\u016F", verb: "m\xEDt" }
4500
4566
  };
4501
- function getSizing(origin) {
4502
- return Sizable[origin] ?? null;
4567
+ function getSizing(origin2) {
4568
+ return Sizable[origin2] ?? null;
4503
4569
  }
4504
4570
  const FormatDictionary = {
4505
4571
  regex: "regul\xE1rn\xED v\xFDraz",
@@ -4613,8 +4679,8 @@ var error7 = () => {
4613
4679
  array: { unit: "elementer", verb: "indeholdt" },
4614
4680
  set: { unit: "elementer", verb: "indeholdt" }
4615
4681
  };
4616
- function getSizing(origin) {
4617
- return Sizable[origin] ?? null;
4682
+ function getSizing(origin2) {
4683
+ return Sizable[origin2] ?? null;
4618
4684
  }
4619
4685
  const FormatDictionary = {
4620
4686
  regex: "input",
@@ -4674,19 +4740,19 @@ var error7 = () => {
4674
4740
  case "too_big": {
4675
4741
  const adj = issue2.inclusive ? "<=" : "<";
4676
4742
  const sizing = getSizing(issue2.origin);
4677
- const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
4743
+ const origin2 = TypeDictionary[issue2.origin] ?? issue2.origin;
4678
4744
  if (sizing)
4679
- return `For stor: forventede ${origin ?? "value"} ${sizing.verb} ${adj} ${issue2.maximum.toString()} ${sizing.unit ?? "elementer"}`;
4680
- return `For stor: forventede ${origin ?? "value"} havde ${adj} ${issue2.maximum.toString()}`;
4745
+ return `For stor: forventede ${origin2 ?? "value"} ${sizing.verb} ${adj} ${issue2.maximum.toString()} ${sizing.unit ?? "elementer"}`;
4746
+ return `For stor: forventede ${origin2 ?? "value"} havde ${adj} ${issue2.maximum.toString()}`;
4681
4747
  }
4682
4748
  case "too_small": {
4683
4749
  const adj = issue2.inclusive ? ">=" : ">";
4684
4750
  const sizing = getSizing(issue2.origin);
4685
- const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
4751
+ const origin2 = TypeDictionary[issue2.origin] ?? issue2.origin;
4686
4752
  if (sizing) {
4687
- return `For lille: forventede ${origin} ${sizing.verb} ${adj} ${issue2.minimum.toString()} ${sizing.unit}`;
4753
+ return `For lille: forventede ${origin2} ${sizing.verb} ${adj} ${issue2.minimum.toString()} ${sizing.unit}`;
4688
4754
  }
4689
- return `For lille: forventede ${origin} havde ${adj} ${issue2.minimum.toString()}`;
4755
+ return `For lille: forventede ${origin2} havde ${adj} ${issue2.minimum.toString()}`;
4690
4756
  }
4691
4757
  case "invalid_format": {
4692
4758
  const _issue = issue2;
@@ -4732,8 +4798,8 @@ var error8 = () => {
4732
4798
  array: { unit: "Elemente", verb: "zu haben" },
4733
4799
  set: { unit: "Elemente", verb: "zu haben" }
4734
4800
  };
4735
- function getSizing(origin) {
4736
- return Sizable[origin] ?? null;
4801
+ function getSizing(origin2) {
4802
+ return Sizable[origin2] ?? null;
4737
4803
  }
4738
4804
  const FormatDictionary = {
4739
4805
  regex: "Eingabe",
@@ -4845,8 +4911,8 @@ var error9 = () => {
4845
4911
  set: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
4846
4912
  map: { unit: "\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" }
4847
4913
  };
4848
- function getSizing(origin) {
4849
- return Sizable[origin] ?? null;
4914
+ function getSizing(origin2) {
4915
+ return Sizable[origin2] ?? null;
4850
4916
  }
4851
4917
  const FormatDictionary = {
4852
4918
  regex: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",
@@ -4958,8 +5024,8 @@ var error10 = () => {
4958
5024
  set: { unit: "items", verb: "to have" },
4959
5025
  map: { unit: "entries", verb: "to have" }
4960
5026
  };
4961
- function getSizing(origin) {
4962
- return Sizable[origin] ?? null;
5027
+ function getSizing(origin2) {
5028
+ return Sizable[origin2] ?? null;
4963
5029
  }
4964
5030
  const FormatDictionary = {
4965
5031
  regex: "input",
@@ -5071,8 +5137,8 @@ var error11 = () => {
5071
5137
  array: { unit: "elementojn", verb: "havi" },
5072
5138
  set: { unit: "elementojn", verb: "havi" }
5073
5139
  };
5074
- function getSizing(origin) {
5075
- return Sizable[origin] ?? null;
5140
+ function getSizing(origin2) {
5141
+ return Sizable[origin2] ?? null;
5076
5142
  }
5077
5143
  const FormatDictionary = {
5078
5144
  regex: "enigo",
@@ -5184,8 +5250,8 @@ var error12 = () => {
5184
5250
  array: { unit: "elementos", verb: "tener" },
5185
5251
  set: { unit: "elementos", verb: "tener" }
5186
5252
  };
5187
- function getSizing(origin) {
5188
- return Sizable[origin] ?? null;
5253
+ function getSizing(origin2) {
5254
+ return Sizable[origin2] ?? null;
5189
5255
  }
5190
5256
  const FormatDictionary = {
5191
5257
  regex: "entrada",
@@ -5262,19 +5328,19 @@ var error12 = () => {
5262
5328
  case "too_big": {
5263
5329
  const adj = issue2.inclusive ? "<=" : "<";
5264
5330
  const sizing = getSizing(issue2.origin);
5265
- const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
5331
+ const origin2 = TypeDictionary[issue2.origin] ?? issue2.origin;
5266
5332
  if (sizing)
5267
- return `Demasiado grande: se esperaba que ${origin ?? "valor"} tuviera ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementos"}`;
5268
- return `Demasiado grande: se esperaba que ${origin ?? "valor"} fuera ${adj}${issue2.maximum.toString()}`;
5333
+ return `Demasiado grande: se esperaba que ${origin2 ?? "valor"} tuviera ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementos"}`;
5334
+ return `Demasiado grande: se esperaba que ${origin2 ?? "valor"} fuera ${adj}${issue2.maximum.toString()}`;
5269
5335
  }
5270
5336
  case "too_small": {
5271
5337
  const adj = issue2.inclusive ? ">=" : ">";
5272
5338
  const sizing = getSizing(issue2.origin);
5273
- const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
5339
+ const origin2 = TypeDictionary[issue2.origin] ?? issue2.origin;
5274
5340
  if (sizing) {
5275
- return `Demasiado peque\xF1o: se esperaba que ${origin} tuviera ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
5341
+ return `Demasiado peque\xF1o: se esperaba que ${origin2} tuviera ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
5276
5342
  }
5277
- return `Demasiado peque\xF1o: se esperaba que ${origin} fuera ${adj}${issue2.minimum.toString()}`;
5343
+ return `Demasiado peque\xF1o: se esperaba que ${origin2} fuera ${adj}${issue2.minimum.toString()}`;
5278
5344
  }
5279
5345
  case "invalid_format": {
5280
5346
  const _issue = issue2;
@@ -5320,8 +5386,8 @@ var error13 = () => {
5320
5386
  array: { unit: "\u0622\u06CC\u062A\u0645", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
5321
5387
  set: { unit: "\u0622\u06CC\u062A\u0645", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" }
5322
5388
  };
5323
- function getSizing(origin) {
5324
- return Sizable[origin] ?? null;
5389
+ function getSizing(origin2) {
5390
+ return Sizable[origin2] ?? null;
5325
5391
  }
5326
5392
  const FormatDictionary = {
5327
5393
  regex: "\u0648\u0631\u0648\u062F\u06CC",
@@ -5442,8 +5508,8 @@ var error14 = () => {
5442
5508
  int: { unit: "", subject: "kokonaisluvun" },
5443
5509
  date: { unit: "", subject: "p\xE4iv\xE4m\xE4\xE4r\xE4n" }
5444
5510
  };
5445
- function getSizing(origin) {
5446
- return Sizable[origin] ?? null;
5511
+ function getSizing(origin2) {
5512
+ return Sizable[origin2] ?? null;
5447
5513
  }
5448
5514
  const FormatDictionary = {
5449
5515
  regex: "s\xE4\xE4nn\xF6llinen lauseke",
@@ -5554,8 +5620,8 @@ var error15 = () => {
5554
5620
  array: { unit: "\xE9l\xE9ments", verb: "avoir" },
5555
5621
  set: { unit: "\xE9l\xE9ments", verb: "avoir" }
5556
5622
  };
5557
- function getSizing(origin) {
5558
- return Sizable[origin] ?? null;
5623
+ function getSizing(origin2) {
5624
+ return Sizable[origin2] ?? null;
5559
5625
  }
5560
5626
  const FormatDictionary = {
5561
5627
  regex: "entr\xE9e",
@@ -5683,8 +5749,8 @@ var error16 = () => {
5683
5749
  array: { unit: "\xE9l\xE9ments", verb: "avoir" },
5684
5750
  set: { unit: "\xE9l\xE9ments", verb: "avoir" }
5685
5751
  };
5686
- function getSizing(origin) {
5687
- return Sizable[origin] ?? null;
5752
+ function getSizing(origin2) {
5753
+ return Sizable[origin2] ?? null;
5688
5754
  }
5689
5755
  const FormatDictionary = {
5690
5756
  regex: "entr\xE9e",
@@ -5828,10 +5894,10 @@ var error17 = () => {
5828
5894
  const gender = e?.gender ?? "m";
5829
5895
  return gender === "f" ? "\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA" : "\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA";
5830
5896
  };
5831
- const getSizing = (origin) => {
5832
- if (!origin)
5897
+ const getSizing = (origin2) => {
5898
+ if (!origin2)
5833
5899
  return null;
5834
- return Sizable[origin] ?? null;
5900
+ return Sizable[origin2] ?? null;
5835
5901
  };
5836
5902
  const FormatDictionary = {
5837
5903
  regex: { label: "\u05E7\u05DC\u05D8", gender: "m" },
@@ -5991,8 +6057,8 @@ var error18 = () => {
5991
6057
  array: { unit: "stavki", verb: "imati" },
5992
6058
  set: { unit: "stavki", verb: "imati" }
5993
6059
  };
5994
- function getSizing(origin) {
5995
- return Sizable[origin] ?? null;
6060
+ function getSizing(origin2) {
6061
+ return Sizable[origin2] ?? null;
5996
6062
  }
5997
6063
  const FormatDictionary = {
5998
6064
  regex: "unos",
@@ -6059,19 +6125,19 @@ var error18 = () => {
6059
6125
  case "too_big": {
6060
6126
  const adj = issue2.inclusive ? "<=" : "<";
6061
6127
  const sizing = getSizing(issue2.origin);
6062
- const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
6128
+ const origin2 = TypeDictionary[issue2.origin] ?? issue2.origin;
6063
6129
  if (sizing)
6064
- return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} ima ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemenata"}`;
6065
- return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} bude ${adj}${issue2.maximum.toString()}`;
6130
+ return `Preveliko: o\u010Dekivano da ${origin2 ?? "vrijednost"} ima ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemenata"}`;
6131
+ return `Preveliko: o\u010Dekivano da ${origin2 ?? "vrijednost"} bude ${adj}${issue2.maximum.toString()}`;
6066
6132
  }
6067
6133
  case "too_small": {
6068
6134
  const adj = issue2.inclusive ? ">=" : ">";
6069
6135
  const sizing = getSizing(issue2.origin);
6070
- const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
6136
+ const origin2 = TypeDictionary[issue2.origin] ?? issue2.origin;
6071
6137
  if (sizing) {
6072
- return `Premalo: o\u010Dekivano da ${origin} ima ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
6138
+ return `Premalo: o\u010Dekivano da ${origin2} ima ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
6073
6139
  }
6074
- return `Premalo: o\u010Dekivano da ${origin} bude ${adj}${issue2.minimum.toString()}`;
6140
+ return `Premalo: o\u010Dekivano da ${origin2} bude ${adj}${issue2.minimum.toString()}`;
6075
6141
  }
6076
6142
  case "invalid_format": {
6077
6143
  const _issue = issue2;
@@ -6117,8 +6183,8 @@ var error19 = () => {
6117
6183
  array: { unit: "elem", verb: "legyen" },
6118
6184
  set: { unit: "elem", verb: "legyen" }
6119
6185
  };
6120
- function getSizing(origin) {
6121
- return Sizable[origin] ?? null;
6186
+ function getSizing(origin2) {
6187
+ return Sizable[origin2] ?? null;
6122
6188
  }
6123
6189
  const FormatDictionary = {
6124
6190
  regex: "bemenet",
@@ -6263,8 +6329,8 @@ var error20 = () => {
6263
6329
  verb: "\u0578\u0582\u0576\u0565\u0576\u0561\u056C"
6264
6330
  }
6265
6331
  };
6266
- function getSizing(origin) {
6267
- return Sizable[origin] ?? null;
6332
+ function getSizing(origin2) {
6333
+ return Sizable[origin2] ?? null;
6268
6334
  }
6269
6335
  const FormatDictionary = {
6270
6336
  regex: "\u0574\u0578\u0582\u057F\u0584",
@@ -6380,8 +6446,8 @@ var error21 = () => {
6380
6446
  array: { unit: "item", verb: "memiliki" },
6381
6447
  set: { unit: "item", verb: "memiliki" }
6382
6448
  };
6383
- function getSizing(origin) {
6384
- return Sizable[origin] ?? null;
6449
+ function getSizing(origin2) {
6450
+ return Sizable[origin2] ?? null;
6385
6451
  }
6386
6452
  const FormatDictionary = {
6387
6453
  regex: "input",
@@ -6490,8 +6556,8 @@ var error22 = () => {
6490
6556
  array: { unit: "hluti", verb: "a\xF0 hafa" },
6491
6557
  set: { unit: "hluti", verb: "a\xF0 hafa" }
6492
6558
  };
6493
- function getSizing(origin) {
6494
- return Sizable[origin] ?? null;
6559
+ function getSizing(origin2) {
6560
+ return Sizable[origin2] ?? null;
6495
6561
  }
6496
6562
  const FormatDictionary = {
6497
6563
  regex: "gildi",
@@ -6603,8 +6669,8 @@ var error23 = () => {
6603
6669
  array: { unit: "elementi", verb: "avere" },
6604
6670
  set: { unit: "elementi", verb: "avere" }
6605
6671
  };
6606
- function getSizing(origin) {
6607
- return Sizable[origin] ?? null;
6672
+ function getSizing(origin2) {
6673
+ return Sizable[origin2] ?? null;
6608
6674
  }
6609
6675
  const FormatDictionary = {
6610
6676
  regex: "input",
@@ -6715,8 +6781,8 @@ var error24 = () => {
6715
6781
  array: { unit: "\u8981\u7D20", verb: "\u3067\u3042\u308B" },
6716
6782
  set: { unit: "\u8981\u7D20", verb: "\u3067\u3042\u308B" }
6717
6783
  };
6718
- function getSizing(origin) {
6719
- return Sizable[origin] ?? null;
6784
+ function getSizing(origin2) {
6785
+ return Sizable[origin2] ?? null;
6720
6786
  }
6721
6787
  const FormatDictionary = {
6722
6788
  regex: "\u5165\u529B\u5024",
@@ -6826,8 +6892,8 @@ var error25 = () => {
6826
6892
  array: { unit: "\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
6827
6893
  set: { unit: "\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" }
6828
6894
  };
6829
- function getSizing(origin) {
6830
- return Sizable[origin] ?? null;
6895
+ function getSizing(origin2) {
6896
+ return Sizable[origin2] ?? null;
6831
6897
  }
6832
6898
  const FormatDictionary = {
6833
6899
  regex: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",
@@ -6942,8 +7008,8 @@ var error26 = () => {
6942
7008
  array: { unit: "\u1792\u17B6\u178F\u17BB", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
6943
7009
  set: { unit: "\u1792\u17B6\u178F\u17BB", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" }
6944
7010
  };
6945
- function getSizing(origin) {
6946
- return Sizable[origin] ?? null;
7011
+ function getSizing(origin2) {
7012
+ return Sizable[origin2] ?? null;
6947
7013
  }
6948
7014
  const FormatDictionary = {
6949
7015
  regex: "\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",
@@ -7064,8 +7130,8 @@ var error27 = () => {
7064
7130
  array: { unit: "\uAC1C", verb: "to have" },
7065
7131
  set: { unit: "\uAC1C", verb: "to have" }
7066
7132
  };
7067
- function getSizing(origin) {
7068
- return Sizable[origin] ?? null;
7133
+ function getSizing(origin2) {
7134
+ return Sizable[origin2] ?? null;
7069
7135
  }
7070
7136
  const FormatDictionary = {
7071
7137
  regex: "\uC785\uB825",
@@ -7255,8 +7321,8 @@ var capitalizeFirstCharacter = (text) => {
7255
7321
  }
7256
7322
  }
7257
7323
  };
7258
- function getSizing(origin, unitType, inclusive, targetShouldBe) {
7259
- const result = Sizable[origin] ?? null;
7324
+ function getSizing(origin2, unitType, inclusive, targetShouldBe) {
7325
+ const result = Sizable[origin2] ?? null;
7260
7326
  if (result === null)
7261
7327
  return result;
7262
7328
  return {
@@ -7323,20 +7389,20 @@ var capitalizeFirstCharacter = (text) => {
7323
7389
  return `Privalo b\u016Bti ${stringifyPrimitive(issue2.values[0])}`;
7324
7390
  return `Privalo b\u016Bti vienas i\u0161 ${joinValues(issue2.values, "|")} pasirinkim\u0173`;
7325
7391
  case "too_big": {
7326
- const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
7392
+ const origin2 = TypeDictionary[issue2.origin] ?? issue2.origin;
7327
7393
  const sizing = getSizing(issue2.origin, getUnitTypeFromNumber(Number(issue2.maximum)), issue2.inclusive ?? false, "smaller");
7328
7394
  if (sizing?.verb)
7329
- return `${capitalizeFirstCharacter(origin ?? issue2.origin ?? "reik\u0161m\u0117")} ${sizing.verb} ${issue2.maximum.toString()} ${sizing.unit ?? "element\u0173"}`;
7395
+ return `${capitalizeFirstCharacter(origin2 ?? issue2.origin ?? "reik\u0161m\u0117")} ${sizing.verb} ${issue2.maximum.toString()} ${sizing.unit ?? "element\u0173"}`;
7330
7396
  const adj = issue2.inclusive ? "ne didesnis kaip" : "ma\u017Eesnis kaip";
7331
- return `${capitalizeFirstCharacter(origin ?? issue2.origin ?? "reik\u0161m\u0117")} turi b\u016Bti ${adj} ${issue2.maximum.toString()} ${sizing?.unit}`;
7397
+ return `${capitalizeFirstCharacter(origin2 ?? issue2.origin ?? "reik\u0161m\u0117")} turi b\u016Bti ${adj} ${issue2.maximum.toString()} ${sizing?.unit}`;
7332
7398
  }
7333
7399
  case "too_small": {
7334
- const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
7400
+ const origin2 = TypeDictionary[issue2.origin] ?? issue2.origin;
7335
7401
  const sizing = getSizing(issue2.origin, getUnitTypeFromNumber(Number(issue2.minimum)), issue2.inclusive ?? false, "bigger");
7336
7402
  if (sizing?.verb)
7337
- return `${capitalizeFirstCharacter(origin ?? issue2.origin ?? "reik\u0161m\u0117")} ${sizing.verb} ${issue2.minimum.toString()} ${sizing.unit ?? "element\u0173"}`;
7403
+ return `${capitalizeFirstCharacter(origin2 ?? issue2.origin ?? "reik\u0161m\u0117")} ${sizing.verb} ${issue2.minimum.toString()} ${sizing.unit ?? "element\u0173"}`;
7338
7404
  const adj = issue2.inclusive ? "ne ma\u017Eesnis kaip" : "didesnis kaip";
7339
- return `${capitalizeFirstCharacter(origin ?? issue2.origin ?? "reik\u0161m\u0117")} turi b\u016Bti ${adj} ${issue2.minimum.toString()} ${sizing?.unit}`;
7405
+ return `${capitalizeFirstCharacter(origin2 ?? issue2.origin ?? "reik\u0161m\u0117")} turi b\u016Bti ${adj} ${issue2.minimum.toString()} ${sizing?.unit}`;
7340
7406
  }
7341
7407
  case "invalid_format": {
7342
7408
  const _issue = issue2;
@@ -7360,8 +7426,8 @@ var capitalizeFirstCharacter = (text) => {
7360
7426
  case "invalid_union":
7361
7427
  return "Klaidinga \u012Fvestis";
7362
7428
  case "invalid_element": {
7363
- const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
7364
- return `${capitalizeFirstCharacter(origin ?? issue2.origin ?? "reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`;
7429
+ const origin2 = TypeDictionary[issue2.origin] ?? issue2.origin;
7430
+ return `${capitalizeFirstCharacter(origin2 ?? issue2.origin ?? "reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`;
7365
7431
  }
7366
7432
  default:
7367
7433
  return "Klaidinga \u012Fvestis";
@@ -7385,8 +7451,8 @@ var error29 = () => {
7385
7451
  array: { unit: "\u0441\u0442\u0430\u0432\u043A\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
7386
7452
  set: { unit: "\u0441\u0442\u0430\u0432\u043A\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" }
7387
7453
  };
7388
- function getSizing(origin) {
7389
- return Sizable[origin] ?? null;
7454
+ function getSizing(origin2) {
7455
+ return Sizable[origin2] ?? null;
7390
7456
  }
7391
7457
  const FormatDictionary = {
7392
7458
  regex: "\u0432\u043D\u0435\u0441",
@@ -7498,8 +7564,8 @@ var error30 = () => {
7498
7564
  array: { unit: "elemen", verb: "mempunyai" },
7499
7565
  set: { unit: "elemen", verb: "mempunyai" }
7500
7566
  };
7501
- function getSizing(origin) {
7502
- return Sizable[origin] ?? null;
7567
+ function getSizing(origin2) {
7568
+ return Sizable[origin2] ?? null;
7503
7569
  }
7504
7570
  const FormatDictionary = {
7505
7571
  regex: "input",
@@ -7609,8 +7675,8 @@ var error31 = () => {
7609
7675
  array: { unit: "elementen", verb: "heeft" },
7610
7676
  set: { unit: "elementen", verb: "heeft" }
7611
7677
  };
7612
- function getSizing(origin) {
7613
- return Sizable[origin] ?? null;
7678
+ function getSizing(origin2) {
7679
+ return Sizable[origin2] ?? null;
7614
7680
  }
7615
7681
  const FormatDictionary = {
7616
7682
  regex: "invoer",
@@ -7723,8 +7789,8 @@ var error32 = () => {
7723
7789
  array: { unit: "elementer", verb: "\xE5 inneholde" },
7724
7790
  set: { unit: "elementer", verb: "\xE5 inneholde" }
7725
7791
  };
7726
- function getSizing(origin) {
7727
- return Sizable[origin] ?? null;
7792
+ function getSizing(origin2) {
7793
+ return Sizable[origin2] ?? null;
7728
7794
  }
7729
7795
  const FormatDictionary = {
7730
7796
  regex: "input",
@@ -7835,8 +7901,8 @@ var error33 = () => {
7835
7901
  array: { unit: "unsur", verb: "olmal\u0131d\u0131r" },
7836
7902
  set: { unit: "unsur", verb: "olmal\u0131d\u0131r" }
7837
7903
  };
7838
- function getSizing(origin) {
7839
- return Sizable[origin] ?? null;
7904
+ function getSizing(origin2) {
7905
+ return Sizable[origin2] ?? null;
7840
7906
  }
7841
7907
  const FormatDictionary = {
7842
7908
  regex: "giren",
@@ -7948,8 +8014,8 @@ var error34 = () => {
7948
8014
  array: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
7949
8015
  set: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" }
7950
8016
  };
7951
- function getSizing(origin) {
7952
- return Sizable[origin] ?? null;
8017
+ function getSizing(origin2) {
8018
+ return Sizable[origin2] ?? null;
7953
8019
  }
7954
8020
  const FormatDictionary = {
7955
8021
  regex: "\u0648\u0631\u0648\u062F\u064A",
@@ -8066,8 +8132,8 @@ var error35 = () => {
8066
8132
  array: { unit: "element\xF3w", verb: "mie\u0107" },
8067
8133
  set: { unit: "element\xF3w", verb: "mie\u0107" }
8068
8134
  };
8069
- function getSizing(origin) {
8070
- return Sizable[origin] ?? null;
8135
+ function getSizing(origin2) {
8136
+ return Sizable[origin2] ?? null;
8071
8137
  }
8072
8138
  const FormatDictionary = {
8073
8139
  regex: "wyra\u017Cenie",
@@ -8179,8 +8245,8 @@ var error36 = () => {
8179
8245
  array: { unit: "itens", verb: "ter" },
8180
8246
  set: { unit: "itens", verb: "ter" }
8181
8247
  };
8182
- function getSizing(origin) {
8183
- return Sizable[origin] ?? null;
8248
+ function getSizing(origin2) {
8249
+ return Sizable[origin2] ?? null;
8184
8250
  }
8185
8251
  const FormatDictionary = {
8186
8252
  regex: "padr\xE3o",
@@ -8292,8 +8358,8 @@ var error37 = () => {
8292
8358
  set: { unit: "elemente", verb: "s\u0103 aib\u0103" },
8293
8359
  map: { unit: "intr\u0103ri", verb: "s\u0103 aib\u0103" }
8294
8360
  };
8295
- function getSizing(origin) {
8296
- return Sizable[origin] ?? null;
8361
+ function getSizing(origin2) {
8362
+ return Sizable[origin2] ?? null;
8297
8363
  }
8298
8364
  const FormatDictionary = {
8299
8365
  regex: "intrare",
@@ -8457,8 +8523,8 @@ var error38 = () => {
8457
8523
  verb: "\u0438\u043C\u0435\u0442\u044C"
8458
8524
  }
8459
8525
  };
8460
- function getSizing(origin) {
8461
- return Sizable[origin] ?? null;
8526
+ function getSizing(origin2) {
8527
+ return Sizable[origin2] ?? null;
8462
8528
  }
8463
8529
  const FormatDictionary = {
8464
8530
  regex: "\u0432\u0432\u043E\u0434",
@@ -8574,8 +8640,8 @@ var error39 = () => {
8574
8640
  array: { unit: "elementov", verb: "imeti" },
8575
8641
  set: { unit: "elementov", verb: "imeti" }
8576
8642
  };
8577
- function getSizing(origin) {
8578
- return Sizable[origin] ?? null;
8643
+ function getSizing(origin2) {
8644
+ return Sizable[origin2] ?? null;
8579
8645
  }
8580
8646
  const FormatDictionary = {
8581
8647
  regex: "vnos",
@@ -8687,8 +8753,8 @@ var error40 = () => {
8687
8753
  array: { unit: "objekt", verb: "att inneh\xE5lla" },
8688
8754
  set: { unit: "objekt", verb: "att inneh\xE5lla" }
8689
8755
  };
8690
- function getSizing(origin) {
8691
- return Sizable[origin] ?? null;
8756
+ function getSizing(origin2) {
8757
+ return Sizable[origin2] ?? null;
8692
8758
  }
8693
8759
  const FormatDictionary = {
8694
8760
  regex: "regulj\xE4rt uttryck",
@@ -8801,8 +8867,8 @@ var error41 = () => {
8801
8867
  array: { unit: "\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
8802
8868
  set: { unit: "\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" }
8803
8869
  };
8804
- function getSizing(origin) {
8805
- return Sizable[origin] ?? null;
8870
+ function getSizing(origin2) {
8871
+ return Sizable[origin2] ?? null;
8806
8872
  }
8807
8873
  const FormatDictionary = {
8808
8874
  regex: "\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",
@@ -8915,8 +8981,8 @@ var error42 = () => {
8915
8981
  array: { unit: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
8916
8982
  set: { unit: "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" }
8917
8983
  };
8918
- function getSizing(origin) {
8919
- return Sizable[origin] ?? null;
8984
+ function getSizing(origin2) {
8985
+ return Sizable[origin2] ?? null;
8920
8986
  }
8921
8987
  const FormatDictionary = {
8922
8988
  regex: "\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",
@@ -9029,8 +9095,8 @@ var error43 = () => {
9029
9095
  array: { unit: "\xF6\u011Fe", verb: "olmal\u0131" },
9030
9096
  set: { unit: "\xF6\u011Fe", verb: "olmal\u0131" }
9031
9097
  };
9032
- function getSizing(origin) {
9033
- return Sizable[origin] ?? null;
9098
+ function getSizing(origin2) {
9099
+ return Sizable[origin2] ?? null;
9034
9100
  }
9035
9101
  const FormatDictionary = {
9036
9102
  regex: "girdi",
@@ -9138,8 +9204,8 @@ var error44 = () => {
9138
9204
  array: { unit: "\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
9139
9205
  set: { unit: "\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" }
9140
9206
  };
9141
- function getSizing(origin) {
9142
- return Sizable[origin] ?? null;
9207
+ function getSizing(origin2) {
9208
+ return Sizable[origin2] ?? null;
9143
9209
  }
9144
9210
  const FormatDictionary = {
9145
9211
  regex: "\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",
@@ -9258,8 +9324,8 @@ var error45 = () => {
9258
9324
  array: { unit: "\u0622\u0626\u0679\u0645\u0632", verb: "\u06C1\u0648\u0646\u0627" },
9259
9325
  set: { unit: "\u0622\u0626\u0679\u0645\u0632", verb: "\u06C1\u0648\u0646\u0627" }
9260
9326
  };
9261
- function getSizing(origin) {
9262
- return Sizable[origin] ?? null;
9327
+ function getSizing(origin2) {
9328
+ return Sizable[origin2] ?? null;
9263
9329
  }
9264
9330
  const FormatDictionary = {
9265
9331
  regex: "\u0627\u0646 \u067E\u0679",
@@ -9373,8 +9439,8 @@ var error46 = () => {
9373
9439
  set: { unit: "element", verb: "bo\u2018lishi kerak" },
9374
9440
  map: { unit: "yozuv", verb: "bo\u2018lishi kerak" }
9375
9441
  };
9376
- function getSizing(origin) {
9377
- return Sizable[origin] ?? null;
9442
+ function getSizing(origin2) {
9443
+ return Sizable[origin2] ?? null;
9378
9444
  }
9379
9445
  const FormatDictionary = {
9380
9446
  regex: "kirish",
@@ -9486,8 +9552,8 @@ var error47 = () => {
9486
9552
  array: { unit: "ph\u1EA7n t\u1EED", verb: "c\xF3" },
9487
9553
  set: { unit: "ph\u1EA7n t\u1EED", verb: "c\xF3" }
9488
9554
  };
9489
- function getSizing(origin) {
9490
- return Sizable[origin] ?? null;
9555
+ function getSizing(origin2) {
9556
+ return Sizable[origin2] ?? null;
9491
9557
  }
9492
9558
  const FormatDictionary = {
9493
9559
  regex: "\u0111\u1EA7u v\xE0o",
@@ -9598,8 +9664,8 @@ var error48 = () => {
9598
9664
  array: { unit: "\u9879", verb: "\u5305\u542B" },
9599
9665
  set: { unit: "\u9879", verb: "\u5305\u542B" }
9600
9666
  };
9601
- function getSizing(origin) {
9602
- return Sizable[origin] ?? null;
9667
+ function getSizing(origin2) {
9668
+ return Sizable[origin2] ?? null;
9603
9669
  }
9604
9670
  const FormatDictionary = {
9605
9671
  regex: "\u8F93\u5165",
@@ -9711,8 +9777,8 @@ var error49 = () => {
9711
9777
  array: { unit: "\u9805\u76EE", verb: "\u64C1\u6709" },
9712
9778
  set: { unit: "\u9805\u76EE", verb: "\u64C1\u6709" }
9713
9779
  };
9714
- function getSizing(origin) {
9715
- return Sizable[origin] ?? null;
9780
+ function getSizing(origin2) {
9781
+ return Sizable[origin2] ?? null;
9716
9782
  }
9717
9783
  const FormatDictionary = {
9718
9784
  regex: "\u8F38\u5165",
@@ -9822,8 +9888,8 @@ var error50 = () => {
9822
9888
  array: { unit: "nkan", verb: "n\xED" },
9823
9889
  set: { unit: "nkan", verb: "n\xED" }
9824
9890
  };
9825
- function getSizing(origin) {
9826
- return Sizable[origin] ?? null;
9891
+ function getSizing(origin2) {
9892
+ return Sizable[origin2] ?? null;
9827
9893
  }
9828
9894
  const FormatDictionary = {
9829
9895
  regex: "\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",
@@ -12226,7 +12292,7 @@ var init_core2 = __esm(() => {
12226
12292
  init_json_schema();
12227
12293
  init_core();
12228
12294
  init_parse();
12229
- init_errors();
12295
+ init_errors2();
12230
12296
  init_schemas();
12231
12297
  init_checks();
12232
12298
  init_versions();
@@ -12278,7 +12344,7 @@ __export(exports_iso, {
12278
12344
  time: () => time2,
12279
12345
  duration: () => duration2,
12280
12346
  datetime: () => datetime2,
12281
- date: () => date2,
12347
+ date: () => date3,
12282
12348
  ZodISOTime: () => ZodISOTime,
12283
12349
  ZodISODuration: () => ZodISODuration,
12284
12350
  ZodISODateTime: () => ZodISODateTime,
@@ -12287,7 +12353,7 @@ __export(exports_iso, {
12287
12353
  function datetime2(params) {
12288
12354
  return _isoDateTime(ZodISODateTime, params);
12289
12355
  }
12290
- function date2(params) {
12356
+ function date3(params) {
12291
12357
  return _isoDate(ZodISODate, params);
12292
12358
  }
12293
12359
  function time2(params) {
@@ -12348,7 +12414,7 @@ var initializer2 = (inst, issues) => {
12348
12414
  }
12349
12415
  });
12350
12416
  }, ZodError, ZodRealError;
12351
- var init_errors2 = __esm(() => {
12417
+ var init_errors3 = __esm(() => {
12352
12418
  init_core2();
12353
12419
  init_core2();
12354
12420
  init_util();
@@ -12362,7 +12428,7 @@ var init_errors2 = __esm(() => {
12362
12428
  var parse3, parseAsync2, safeParse2, safeParseAsync2, encode2, decode2, encodeAsync2, decodeAsync2, safeEncode2, safeDecode2, safeEncodeAsync2, safeDecodeAsync2;
12363
12429
  var init_parse2 = __esm(() => {
12364
12430
  init_core2();
12365
- init_errors2();
12431
+ init_errors3();
12366
12432
  parse3 = /* @__PURE__ */ _parse(ZodRealError);
12367
12433
  parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
12368
12434
  safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -12414,7 +12480,7 @@ __export(exports_schemas2, {
12414
12480
  pipe: () => pipe,
12415
12481
  partialRecord: () => partialRecord,
12416
12482
  optional: () => optional,
12417
- object: () => object,
12483
+ object: () => object2,
12418
12484
  number: () => number2,
12419
12485
  nullish: () => nullish2,
12420
12486
  nullable: () => nullable,
@@ -12459,7 +12525,7 @@ __export(exports_schemas2, {
12459
12525
  e164: () => e1642,
12460
12526
  discriminatedUnion: () => discriminatedUnion,
12461
12527
  describe: () => describe2,
12462
- date: () => date3,
12528
+ date: () => date4,
12463
12529
  custom: () => custom,
12464
12530
  cuid2: () => cuid22,
12465
12531
  cuid: () => cuid3,
@@ -12730,7 +12796,7 @@ function never(params) {
12730
12796
  function _void2(params) {
12731
12797
  return _void(ZodVoid, params);
12732
12798
  }
12733
- function date3(params) {
12799
+ function date4(params) {
12734
12800
  return _date(ZodDate, params);
12735
12801
  }
12736
12802
  function array(element, params) {
@@ -12740,7 +12806,7 @@ function keyof(schema) {
12740
12806
  const shape = schema._zod.def.shape;
12741
12807
  return _enum2(Object.keys(shape));
12742
12808
  }
12743
- function object(shape, params) {
12809
+ function object2(shape, params) {
12744
12810
  const def = {
12745
12811
  type: "object",
12746
12812
  shape: shape ?? {},
@@ -13283,7 +13349,7 @@ var init_schemas2 = __esm(() => {
13283
13349
  inst.cidrv6 = (params) => inst.check(_cidrv6(ZodCIDRv6, params));
13284
13350
  inst.e164 = (params) => inst.check(_e164(ZodE164, params));
13285
13351
  inst.datetime = (params) => inst.check(datetime2(params));
13286
- inst.date = (params) => inst.check(date2(params));
13352
+ inst.date = (params) => inst.check(date3(params));
13287
13353
  inst.time = (params) => inst.check(time2(params));
13288
13354
  inst.duration = (params) => inst.check(duration2(params));
13289
13355
  });
@@ -13723,15 +13789,15 @@ var init_schemas2 = __esm(() => {
13723
13789
  payload.issues.push(exports_util.issue(_issue));
13724
13790
  }
13725
13791
  };
13726
- const output = def.transform(payload.value, payload);
13727
- if (output instanceof Promise) {
13728
- return output.then((output2) => {
13729
- payload.value = output2;
13792
+ const output2 = def.transform(payload.value, payload);
13793
+ if (output2 instanceof Promise) {
13794
+ return output2.then((output3) => {
13795
+ payload.value = output3;
13730
13796
  payload.fallback = true;
13731
13797
  return payload;
13732
13798
  });
13733
13799
  }
13734
- payload.value = output;
13800
+ payload.value = output2;
13735
13801
  payload.fallback = true;
13736
13802
  return payload;
13737
13803
  };
@@ -14351,7 +14417,7 @@ var exports_coerce = {};
14351
14417
  __export(exports_coerce, {
14352
14418
  string: () => string3,
14353
14419
  number: () => number3,
14354
- date: () => date4,
14420
+ date: () => date5,
14355
14421
  boolean: () => boolean3,
14356
14422
  bigint: () => bigint3
14357
14423
  });
@@ -14367,7 +14433,7 @@ function boolean3(params) {
14367
14433
  function bigint3(params) {
14368
14434
  return _coercedBigint(ZodBigInt, params);
14369
14435
  }
14370
- function date4(params) {
14436
+ function date5(params) {
14371
14437
  return _coercedDate(ZodDate, params);
14372
14438
  }
14373
14439
  var init_coerce = __esm(() => {
@@ -14438,7 +14504,7 @@ __export(exports_external, {
14438
14504
  parse: () => parse3,
14439
14505
  overwrite: () => _overwrite,
14440
14506
  optional: () => optional,
14441
- object: () => object,
14507
+ object: () => object2,
14442
14508
  number: () => number2,
14443
14509
  nullish: () => nullish2,
14444
14510
  nullable: () => nullable,
@@ -14512,7 +14578,7 @@ __export(exports_external, {
14512
14578
  describe: () => describe2,
14513
14579
  decodeAsync: () => decodeAsync2,
14514
14580
  decode: () => decode2,
14515
- date: () => date3,
14581
+ date: () => date4,
14516
14582
  custom: () => custom,
14517
14583
  cuid2: () => cuid22,
14518
14584
  cuid: () => cuid3,
@@ -14630,7 +14696,7 @@ var init_external = __esm(() => {
14630
14696
  init_coerce();
14631
14697
  init_schemas2();
14632
14698
  init_checks2();
14633
- init_errors2();
14699
+ init_errors3();
14634
14700
  init_parse2();
14635
14701
  init_compat();
14636
14702
  config(en_default());
@@ -17546,15 +17612,15 @@ var require_timestamp = __commonJS((exports) => {
17546
17612
  throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");
17547
17613
  const [, year, month, day, hour, minute, second] = match.map(Number);
17548
17614
  const millisec = match[7] ? Number((match[7] + "00").substr(1, 3)) : 0;
17549
- let date5 = Date.UTC(year, month - 1, day, hour || 0, minute || 0, second || 0, millisec);
17615
+ let date6 = Date.UTC(year, month - 1, day, hour || 0, minute || 0, second || 0, millisec);
17550
17616
  const tz = match[8];
17551
17617
  if (tz && tz !== "Z") {
17552
17618
  let d = parseSexagesimal(tz, false);
17553
17619
  if (Math.abs(d) < 30)
17554
17620
  d *= 60;
17555
- date5 -= 60000 * d;
17621
+ date6 -= 60000 * d;
17556
17622
  }
17557
- return new Date(date5);
17623
+ return new Date(date6);
17558
17624
  },
17559
17625
  stringify: ({ value }) => value?.toISOString().replace(/(T00:00:00)?\.000Z$/, "") ?? ""
17560
17626
  };
@@ -19414,7 +19480,7 @@ var require_composer = __commonJS((exports) => {
19414
19480
  var node_process = __require("process");
19415
19481
  var directives = require_directives();
19416
19482
  var Document = require_Document();
19417
- var errors3 = require_errors();
19483
+ var errors4 = require_errors();
19418
19484
  var identity = require_identity();
19419
19485
  var composeDoc = require_compose_doc();
19420
19486
  var resolveEnd = require_resolve_end();
@@ -19465,9 +19531,9 @@ var require_composer = __commonJS((exports) => {
19465
19531
  this.onError = (source, code, message, warning) => {
19466
19532
  const pos = getErrorPos(source);
19467
19533
  if (warning)
19468
- this.warnings.push(new errors3.YAMLWarning(pos, code, message));
19534
+ this.warnings.push(new errors4.YAMLWarning(pos, code, message));
19469
19535
  else
19470
- this.errors.push(new errors3.YAMLParseError(pos, code, message));
19536
+ this.errors.push(new errors4.YAMLParseError(pos, code, message));
19471
19537
  };
19472
19538
  this.directives = new directives.Directives({ version: options.version || "1.2" });
19473
19539
  this.options = options;
@@ -19553,7 +19619,7 @@ ${cb}` : comment;
19553
19619
  break;
19554
19620
  case "error": {
19555
19621
  const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
19556
- const error51 = new errors3.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
19622
+ const error51 = new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
19557
19623
  if (this.atDirectives || !this.doc)
19558
19624
  this.errors.push(error51);
19559
19625
  else
@@ -19563,7 +19629,7 @@ ${cb}` : comment;
19563
19629
  case "doc-end": {
19564
19630
  if (!this.doc) {
19565
19631
  const msg = "Unexpected doc-end without preceding document";
19566
- this.errors.push(new errors3.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
19632
+ this.errors.push(new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
19567
19633
  break;
19568
19634
  }
19569
19635
  this.doc.directives.docEnd = true;
@@ -19578,7 +19644,7 @@ ${end.comment}` : end.comment;
19578
19644
  break;
19579
19645
  }
19580
19646
  default:
19581
- this.errors.push(new errors3.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
19647
+ this.errors.push(new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
19582
19648
  }
19583
19649
  }
19584
19650
  *end(forceDoc = false, endOffset = -1) {
@@ -19604,7 +19670,7 @@ ${end.comment}` : end.comment;
19604
19670
  var require_cst_scalar = __commonJS((exports) => {
19605
19671
  var resolveBlockScalar = require_resolve_block_scalar();
19606
19672
  var resolveFlowScalar = require_resolve_flow_scalar();
19607
- var errors3 = require_errors();
19673
+ var errors4 = require_errors();
19608
19674
  var stringifyString = require_stringifyString();
19609
19675
  function resolveAsScalar(token, strict = true, onError) {
19610
19676
  if (token) {
@@ -19613,7 +19679,7 @@ var require_cst_scalar = __commonJS((exports) => {
19613
19679
  if (onError)
19614
19680
  onError(offset, code, message);
19615
19681
  else
19616
- throw new errors3.YAMLParseError([offset, offset + 1], code, message);
19682
+ throw new errors4.YAMLParseError([offset, offset + 1], code, message);
19617
19683
  };
19618
19684
  switch (token.type) {
19619
19685
  case "scalar":
@@ -21493,7 +21559,7 @@ var require_parser = __commonJS((exports) => {
21493
21559
  var require_public_api = __commonJS((exports) => {
21494
21560
  var composer = require_composer();
21495
21561
  var Document = require_Document();
21496
- var errors3 = require_errors();
21562
+ var errors4 = require_errors();
21497
21563
  var log = require_log();
21498
21564
  var identity = require_identity();
21499
21565
  var lineCounter = require_line_counter();
@@ -21510,8 +21576,8 @@ var require_public_api = __commonJS((exports) => {
21510
21576
  const docs = Array.from(composer$1.compose(parser$1.parse(source)));
21511
21577
  if (prettyErrors && lineCounter2)
21512
21578
  for (const doc2 of docs) {
21513
- doc2.errors.forEach(errors3.prettifyError(source, lineCounter2));
21514
- doc2.warnings.forEach(errors3.prettifyError(source, lineCounter2));
21579
+ doc2.errors.forEach(errors4.prettifyError(source, lineCounter2));
21580
+ doc2.warnings.forEach(errors4.prettifyError(source, lineCounter2));
21515
21581
  }
21516
21582
  if (docs.length > 0)
21517
21583
  return docs;
@@ -21526,13 +21592,13 @@ var require_public_api = __commonJS((exports) => {
21526
21592
  if (!doc2)
21527
21593
  doc2 = _doc;
21528
21594
  else if (doc2.options.logLevel !== "silent") {
21529
- doc2.errors.push(new errors3.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
21595
+ doc2.errors.push(new errors4.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
21530
21596
  break;
21531
21597
  }
21532
21598
  }
21533
21599
  if (prettyErrors && lineCounter2) {
21534
- doc2.errors.forEach(errors3.prettifyError(source, lineCounter2));
21535
- doc2.warnings.forEach(errors3.prettifyError(source, lineCounter2));
21600
+ doc2.errors.forEach(errors4.prettifyError(source, lineCounter2));
21601
+ doc2.warnings.forEach(errors4.prettifyError(source, lineCounter2));
21536
21602
  }
21537
21603
  return doc2;
21538
21604
  }
@@ -21584,12 +21650,12 @@ var require_public_api = __commonJS((exports) => {
21584
21650
  });
21585
21651
 
21586
21652
  // ../../node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/index.js
21587
- var composer, Document, Schema, errors3, Alias, identity, Pair, Scalar, YAMLMap, YAMLSeq, cst, lexer, lineCounter, parser, publicApi, visit, $Composer, $Document, $Schema, $YAMLError, $YAMLParseError, $YAMLWarning, $Alias, $isAlias, $isCollection, $isDocument, $isMap, $isNode, $isPair, $isScalar, $isSeq, $Pair, $Scalar, $YAMLMap, $YAMLSeq, $Lexer, $LineCounter, $Parser, $parse, $parseAllDocuments, $parseDocument, $stringify, $visit, $visitAsync;
21588
- var init_dist = __esm(() => {
21653
+ var composer, Document, Schema, errors4, Alias, identity, Pair, Scalar, YAMLMap, YAMLSeq, cst, lexer, lineCounter, parser, publicApi, visit, $Composer, $Document, $Schema, $YAMLError, $YAMLParseError, $YAMLWarning, $Alias, $isAlias, $isCollection, $isDocument, $isMap, $isNode, $isPair, $isScalar, $isSeq, $Pair, $Scalar, $YAMLMap, $YAMLSeq, $Lexer, $LineCounter, $Parser, $parse, $parseAllDocuments, $parseDocument, $stringify, $visit, $visitAsync;
21654
+ var init_dist2 = __esm(() => {
21589
21655
  composer = require_composer();
21590
21656
  Document = require_Document();
21591
21657
  Schema = require_Schema();
21592
- errors3 = require_errors();
21658
+ errors4 = require_errors();
21593
21659
  Alias = require_Alias();
21594
21660
  identity = require_identity();
21595
21661
  Pair = require_Pair();
@@ -21605,9 +21671,9 @@ var init_dist = __esm(() => {
21605
21671
  $Composer = composer.Composer;
21606
21672
  $Document = Document.Document;
21607
21673
  $Schema = Schema.Schema;
21608
- $YAMLError = errors3.YAMLError;
21609
- $YAMLParseError = errors3.YAMLParseError;
21610
- $YAMLWarning = errors3.YAMLWarning;
21674
+ $YAMLError = errors4.YAMLError;
21675
+ $YAMLParseError = errors4.YAMLParseError;
21676
+ $YAMLWarning = errors4.YAMLWarning;
21611
21677
  $Alias = Alias.Alias;
21612
21678
  $isAlias = identity.isAlias;
21613
21679
  $isCollection = identity.isCollection;
@@ -21632,10 +21698,10 @@ var init_dist = __esm(() => {
21632
21698
  $visitAsync = visit.visitAsync;
21633
21699
  });
21634
21700
 
21635
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.4.39/node_modules/@gobing-ai/ts-runtime/dist/config.js
21701
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.11/node_modules/@gobing-ai/ts-runtime/dist/config.js
21636
21702
  var configSchema;
21637
21703
  var init_config = __esm(() => {
21638
- init_dist();
21704
+ init_dist2();
21639
21705
  init_zod();
21640
21706
  configSchema = exports_external.object({
21641
21707
  app: exports_external.object({
@@ -21656,7 +21722,7 @@ var init_config = __esm(() => {
21656
21722
  });
21657
21723
  });
21658
21724
 
21659
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.4.39/node_modules/@gobing-ai/ts-runtime/dist/file-system-node.js
21725
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.11/node_modules/@gobing-ai/ts-runtime/dist/file-system-node.js
21660
21726
  import { appendFileSync, cpSync, createReadStream, createWriteStream, existsSync, mkdirSync, readdirSync, readFileSync, realpathSync, renameSync, rmSync, statSync, writeFileSync } from "fs";
21661
21727
  import { dirname, resolve as resolvePath } from "path";
21662
21728
  function createNodeFileSystem(root, paths) {
@@ -21744,26 +21810,9 @@ function findProjectRoot(startDir) {
21744
21810
  var init_file_system_node = () => {};
21745
21811
 
21746
21812
  // ../../plugins/generations/gemini-tts/src/index.ts
21813
+ init_dist();
21747
21814
  import { parseArgs } from "util";
21748
21815
 
21749
- // ../../node_modules/.bun/@gobing-ai+ts-utils@0.4.67/node_modules/@gobing-ai/ts-utils/dist/output.js
21750
- var defaultStderrTarget;
21751
- function processStream(name) {
21752
- const proc = globalThis.process;
21753
- const stream = proc?.[name];
21754
- if (stream === undefined) {
21755
- throw new Error(`No ${name} target available: set one via setDefaultOutputTargets or pass an explicit target`);
21756
- }
21757
- return stream;
21758
- }
21759
- function writeLine(message, target) {
21760
- target.write(`${message}
21761
- `);
21762
- }
21763
- function echoError(message, target = defaultStderrTarget ?? processStream("stderr")) {
21764
- writeLine(message, target);
21765
- }
21766
-
21767
21816
  // ../../plugins/generations/voice-gen/src/index.ts
21768
21817
  import { basename, dirname as dirname2, extname, join as join2, resolve } from "path";
21769
21818
 
@@ -21854,12 +21903,15 @@ var PluginManifestSchema = exports_external.looseObject({
21854
21903
  description: exports_external.string().optional(),
21855
21904
  operations: exports_external.record(exports_external.string(), PluginOperationSchema).optional()
21856
21905
  });
21857
- // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.4.39/node_modules/@gobing-ai/ts-runtime/dist/index.js
21906
+ // ../../node_modules/.bun/@gobing-ai+ts-runtime@0.5.11/node_modules/@gobing-ai/ts-runtime/dist/index.js
21858
21907
  init_file_system_node();
21859
21908
  init_config();
21860
21909
 
21861
21910
  // ../../packages/kk-core/src/render-md.ts
21862
21911
  if (false) {}
21912
+ // ../../plugins/generations/voice-gen/src/index.ts
21913
+ init_dist();
21914
+
21863
21915
  // ../../plugins/generations/voice-gen/src/concat.ts
21864
21916
  function parseWav(buffer) {
21865
21917
  if (buffer.length < 44) {
@@ -21975,21 +22027,21 @@ function concatWavs(wavBuffers, gapsMs = []) {
21975
22027
  }
21976
22028
  const headerSize = 44;
21977
22029
  const totalFileSize = headerSize + totalDataLength;
21978
- const output = new Uint8Array(totalFileSize);
21979
- const view = new DataView(output.buffer, output.byteOffset, output.byteLength);
21980
- output[0] = 82;
21981
- output[1] = 73;
21982
- output[2] = 70;
21983
- output[3] = 70;
22030
+ const output2 = new Uint8Array(totalFileSize);
22031
+ const view = new DataView(output2.buffer, output2.byteOffset, output2.byteLength);
22032
+ output2[0] = 82;
22033
+ output2[1] = 73;
22034
+ output2[2] = 70;
22035
+ output2[3] = 70;
21984
22036
  view.setUint32(4, 36 + totalDataLength, true);
21985
- output[8] = 87;
21986
- output[9] = 65;
21987
- output[10] = 86;
21988
- output[11] = 69;
21989
- output[12] = 102;
21990
- output[13] = 109;
21991
- output[14] = 116;
21992
- output[15] = 32;
22037
+ output2[8] = 87;
22038
+ output2[9] = 65;
22039
+ output2[10] = 86;
22040
+ output2[11] = 69;
22041
+ output2[12] = 102;
22042
+ output2[13] = 109;
22043
+ output2[14] = 116;
22044
+ output2[15] = 32;
21993
22045
  view.setUint32(16, 16, true);
21994
22046
  view.setUint16(20, first.audioFormat, true);
21995
22047
  view.setUint16(22, first.numChannels, true);
@@ -21997,17 +22049,17 @@ function concatWavs(wavBuffers, gapsMs = []) {
21997
22049
  view.setUint32(28, first.byteRate, true);
21998
22050
  view.setUint16(32, first.blockAlign, true);
21999
22051
  view.setUint16(34, first.bitsPerSample, true);
22000
- output[36] = 100;
22001
- output[37] = 97;
22002
- output[38] = 116;
22003
- output[39] = 97;
22052
+ output2[36] = 100;
22053
+ output2[37] = 97;
22054
+ output2[38] = 116;
22055
+ output2[39] = 97;
22004
22056
  view.setUint32(40, totalDataLength, true);
22005
22057
  let currentOffset = headerSize;
22006
22058
  for (const piece of pieces) {
22007
- output.set(piece, currentOffset);
22059
+ output2.set(piece, currentOffset);
22008
22060
  currentOffset += piece.length;
22009
22061
  }
22010
- return output;
22062
+ return output2;
22011
22063
  }
22012
22064
  function applySpeed(wav, speed) {
22013
22065
  if (speed === 1)
@@ -22039,8 +22091,8 @@ function applySpeed(wav, speed) {
22039
22091
 
22040
22092
  // ../../plugins/generations/voice-gen/src/mp3.ts
22041
22093
  var MP3_TRUTHY = new Set(["1", "true", "yes", "on"]);
22042
- function isMp3Requested(env = process.env) {
22043
- const raw = env.VOICE_GEN_MP3;
22094
+ function isMp3Requested(env2 = process.env) {
22095
+ const raw = env2.VOICE_GEN_MP3;
22044
22096
  if (raw === undefined || raw === "") {
22045
22097
  return false;
22046
22098
  }
@@ -22441,6 +22493,7 @@ function createVoiceboxClient(options = {}) {
22441
22493
  }
22442
22494
 
22443
22495
  // ../../plugins/generations/voice-gen/src/voicebox-server.ts
22496
+ init_dist();
22444
22497
  import { spawn as nodeSpawn } from "child_process";
22445
22498
  import { existsSync as existsSync2, openSync } from "fs";
22446
22499
  import { homedir } from "os";
@@ -23107,6 +23160,7 @@ var GEMINI_ASR_DEFAULT_MODEL = "gemini-3.8-flash";
23107
23160
  var DEFAULT_BASE_URL = "https://generativelanguage.googleapis.com";
23108
23161
  var DEFAULT_PROFILES_PATH = new URL("../profiles.json", import.meta.url).pathname;
23109
23162
  var TRANSCRIBE_PROMPT = "Transcribe this audio verbatim. Output only the transcript, no commentary.";
23163
+ var RETRY_AFTER_CAP_SEC = 120;
23110
23164
  var PLACEHOLDER_VOICE = "voice_REPLACE_ME";
23111
23165
  function findOutput(json2, type) {
23112
23166
  for (const step of json2.steps ?? []) {
@@ -23125,28 +23179,36 @@ function positiveInt(raw, fallback) {
23125
23179
  function excerpt(text) {
23126
23180
  return text.length > 30 ? `${text.slice(0, 30)}\u2026` : text;
23127
23181
  }
23182
+ function withDeadline(p, ms) {
23183
+ let timer;
23184
+ const timeout = new Promise((_, reject) => {
23185
+ timer = setTimeout(() => reject(new Error(`response body timed out after ${ms}ms`)), ms);
23186
+ });
23187
+ return Promise.race([p, timeout]).finally(() => clearTimeout(timer));
23188
+ }
23128
23189
  function createGeminiVoiceClient(options = {}) {
23129
- const env = options.env ?? process.env;
23190
+ const env2 = options.env ?? process.env;
23130
23191
  const doFetch = options.fetch ?? fetch;
23131
23192
  const sleep = options.sleep ?? ((ms) => Bun.sleep(ms));
23132
- const baseUrl = (env.GOOGLE_BASE_URL || DEFAULT_BASE_URL).replace(/\/+$/, "");
23133
- const model = env.GEMINI_TTS_MODEL || GEMINI_TTS_DEFAULT_MODEL;
23134
- const maxAttempts = positiveInt(env.GEMINI_TTS_MAX_ATTEMPTS, 4);
23135
- const timeoutMs = positiveInt(env.GEMINI_TTS_TIMEOUT_MS, 120000);
23193
+ const baseUrl = (env2.GOOGLE_BASE_URL || DEFAULT_BASE_URL).replace(/\/+$/, "");
23194
+ const model = env2.GEMINI_TTS_MODEL || GEMINI_TTS_DEFAULT_MODEL;
23195
+ const styleOverride = env2.GEMINI_TTS_STYLE;
23196
+ const maxAttempts = positiveInt(env2.GEMINI_TTS_MAX_ATTEMPTS, 4);
23197
+ const timeoutMs = positiveInt(env2.GEMINI_TTS_TIMEOUT_MS, 120000);
23136
23198
  const buffered = new Map;
23137
23199
  let profiles;
23138
23200
  let seq = 0;
23139
23201
  async function post(body, label) {
23140
- const apiKey = env.GEMINI_API_KEY ?? "";
23202
+ const apiKey = env2.GEMINI_API_KEY ?? "";
23141
23203
  for (let attempt = 1;; attempt++) {
23142
23204
  let res;
23143
23205
  try {
23144
- res = await doFetch(`${baseUrl}/v1beta/interactions`, {
23206
+ res = await withDeadline(doFetch(`${baseUrl}/v1beta/interactions`, {
23145
23207
  method: "POST",
23146
23208
  headers: { "content-type": "application/json", "x-goog-api-key": apiKey },
23147
23209
  body: JSON.stringify(body),
23148
23210
  signal: AbortSignal.timeout(timeoutMs)
23149
- });
23211
+ }), timeoutMs);
23150
23212
  } catch (err) {
23151
23213
  const msg = err instanceof Error ? err.message : String(err);
23152
23214
  if (attempt >= maxAttempts)
@@ -23155,24 +23217,27 @@ function createGeminiVoiceClient(options = {}) {
23155
23217
  continue;
23156
23218
  }
23157
23219
  if (res.ok)
23158
- return await res.json();
23159
- const raw = await res.text();
23220
+ return withDeadline(res.json(), timeoutMs);
23221
+ const raw = await withDeadline(res.text(), timeoutMs);
23160
23222
  let apiMessage = raw.slice(0, 300);
23161
23223
  try {
23162
23224
  apiMessage = JSON.parse(raw).error?.message ?? apiMessage;
23163
23225
  } catch {}
23226
+ const retryAfter = Number(res.headers.get("retry-after"));
23227
+ if (retryAfter > RETRY_AFTER_CAP_SEC) {
23228
+ throw new Error(`${label}: HTTP ${res.status} quota/reset horizon too far out (retry-after ${retryAfter}s \u2248 ${(retryAfter / 3600).toFixed(1)}h): ${apiMessage}`);
23229
+ }
23164
23230
  const retryable = res.status === 429 || res.status >= 500;
23165
23231
  if (!retryable || attempt >= maxAttempts) {
23166
23232
  throw new Error(`${label}: HTTP ${res.status} after ${attempt} attempt(s): ${apiMessage}`);
23167
23233
  }
23168
- const retryAfter = Number(res.headers.get("retry-after"));
23169
- await sleep(retryAfter > 0 ? retryAfter * 1000 : 2000 * 2 ** (attempt - 1));
23234
+ await sleep(retryAfter > 0 ? Math.min(retryAfter, RETRY_AFTER_CAP_SEC) * 1000 : 2000 * 2 ** (attempt - 1));
23170
23235
  }
23171
23236
  }
23172
23237
  async function loadProfiles() {
23173
23238
  if (profiles)
23174
23239
  return profiles;
23175
- const path2 = env.GEMINI_TTS_PROFILES || DEFAULT_PROFILES_PATH;
23240
+ const path2 = env2.GEMINI_TTS_PROFILES || DEFAULT_PROFILES_PATH;
23176
23241
  const file2 = Bun.file(path2);
23177
23242
  if (!await file2.exists())
23178
23243
  throw new Error(`gemini-tts: profile map not found: ${path2}`);
@@ -23182,7 +23247,7 @@ function createGeminiVoiceClient(options = {}) {
23182
23247
  const client = {
23183
23248
  url: baseUrl,
23184
23249
  async health() {
23185
- if (!env.GEMINI_API_KEY)
23250
+ if (!env2.GEMINI_API_KEY)
23186
23251
  throw new Error("gemini-tts: GEMINI_API_KEY is required");
23187
23252
  if (!GEMINI_TTS_MODELS.includes(model)) {
23188
23253
  throw new Error(`gemini-tts: unsupported GEMINI_TTS_MODEL "${model}" (allowed: ${GEMINI_TTS_MODELS.join(", ")})`);
@@ -23202,8 +23267,9 @@ function createGeminiVoiceClient(options = {}) {
23202
23267
  },
23203
23268
  async generate(body) {
23204
23269
  const part = { type: "text", text: body.text };
23205
- if (body.instruct)
23206
- part.annotations = [{ type: "speech_metadata", style: body.instruct }];
23270
+ const style = styleOverride ?? body.instruct;
23271
+ if (style)
23272
+ part.annotations = [{ type: "speech_metadata", style }];
23207
23273
  const json2 = await post({
23208
23274
  model,
23209
23275
  input: [{ type: "user_input", content: [part] }],
@@ -23233,8 +23299,8 @@ function createGeminiVoiceClient(options = {}) {
23233
23299
  return bytes;
23234
23300
  }
23235
23301
  };
23236
- if (env.GEMINI_TTS_ASR !== "off") {
23237
- const asrModel = env.GEMINI_TTS_ASR_MODEL || GEMINI_ASR_DEFAULT_MODEL;
23302
+ if (env2.GEMINI_TTS_ASR !== "off") {
23303
+ const asrModel = env2.GEMINI_TTS_ASR_MODEL || GEMINI_ASR_DEFAULT_MODEL;
23238
23304
  client.transcribe = async (audio) => {
23239
23305
  const json2 = await post({
23240
23306
  model: asrModel,