@puckeditor/plugin-ai 0.1.0-canary.dfd624ec → 0.1.0-canary.e666268d

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
@@ -189,14 +189,12 @@ var require_classnames = __commonJS({
189
189
  // index.ts
190
190
  var index_exports = {};
191
191
  __export(index_exports, {
192
- createAiPlugin: () => createAiPlugin
192
+ ChatBody: () => ChatBody,
193
+ default: () => src_default
193
194
  });
194
195
  module.exports = __toCommonJS(index_exports);
195
196
  init_react_import();
196
197
 
197
- // ../ai-types/index.js
198
- init_react_import();
199
-
200
198
  // src/index.tsx
201
199
  init_react_import();
202
200
 
@@ -340,14 +338,14 @@ var TriangleAlert = createLucideIcon("TriangleAlert", [
340
338
  // src/components/Chat/index.tsx
341
339
  init_react_import();
342
340
 
343
- // ../../node_modules/.pnpm/@ai-sdk+react@2.0.29_react@19.1.1_zod@4.1.12/node_modules/@ai-sdk/react/dist/index.mjs
341
+ // ../../node_modules/.pnpm/@ai-sdk+react@2.0.29_react@19.1.1_zod@4.1.9/node_modules/@ai-sdk/react/dist/index.mjs
344
342
  init_react_import();
345
343
  var import_react4 = require("react");
346
344
 
347
- // ../../node_modules/.pnpm/ai@5.0.29_zod@4.1.12/node_modules/ai/dist/index.mjs
345
+ // ../../node_modules/.pnpm/ai@5.0.29_zod@4.1.9/node_modules/ai/dist/index.mjs
348
346
  init_react_import();
349
347
 
350
- // ../../node_modules/.pnpm/@ai-sdk+provider-utils@3.0.7_zod@4.1.12/node_modules/@ai-sdk/provider-utils/dist/index.mjs
348
+ // ../../node_modules/.pnpm/@ai-sdk+provider-utils@3.0.7_zod@4.1.9/node_modules/@ai-sdk/provider-utils/dist/index.mjs
351
349
  init_react_import();
352
350
 
353
351
  // ../../node_modules/.pnpm/@ai-sdk+provider@2.0.0/node_modules/@ai-sdk/provider/dist/index.mjs
@@ -379,12 +377,12 @@ var _AISDKError = class _AISDKError2 extends Error {
379
377
  * @param {unknown} error - The error to check.
380
378
  * @returns {boolean} True if the error is an AI SDK Error, false otherwise.
381
379
  */
382
- static isInstance(error46) {
383
- return _AISDKError2.hasMarker(error46, marker);
380
+ static isInstance(error45) {
381
+ return _AISDKError2.hasMarker(error45, marker);
384
382
  }
385
- static hasMarker(error46, marker153) {
383
+ static hasMarker(error45, marker153) {
386
384
  const markerSymbol = Symbol.for(marker153);
387
- return error46 != null && typeof error46 === "object" && markerSymbol in error46 && typeof error46[markerSymbol] === "boolean" && error46[markerSymbol] === true;
385
+ return error45 != null && typeof error45 === "object" && markerSymbol in error45 && typeof error45[markerSymbol] === "boolean" && error45[markerSymbol] === true;
388
386
  }
389
387
  };
390
388
  _a = symbol;
@@ -399,17 +397,17 @@ var marker3 = `vercel.ai.error.${name2}`;
399
397
  var symbol3 = Symbol.for(marker3);
400
398
  var _a3;
401
399
  _a3 = symbol3;
402
- function getErrorMessage(error46) {
403
- if (error46 == null) {
400
+ function getErrorMessage(error45) {
401
+ if (error45 == null) {
404
402
  return "unknown error";
405
403
  }
406
- if (typeof error46 === "string") {
407
- return error46;
404
+ if (typeof error45 === "string") {
405
+ return error45;
408
406
  }
409
- if (error46 instanceof Error) {
410
- return error46.message;
407
+ if (error45 instanceof Error) {
408
+ return error45.message;
411
409
  }
412
- return JSON.stringify(error46);
410
+ return JSON.stringify(error45);
413
411
  }
414
412
  var name3 = "AI_InvalidArgumentError";
415
413
  var marker4 = `vercel.ai.error.${name3}`;
@@ -425,8 +423,8 @@ var InvalidArgumentError = class extends AISDKError {
425
423
  this[_a4] = true;
426
424
  this.argument = argument;
427
425
  }
428
- static isInstance(error46) {
429
- return AISDKError.hasMarker(error46, marker4);
426
+ static isInstance(error45) {
427
+ return AISDKError.hasMarker(error45, marker4);
430
428
  }
431
429
  };
432
430
  _a4 = symbol4;
@@ -455,8 +453,8 @@ Error message: ${getErrorMessage(cause)}`,
455
453
  this[_a7] = true;
456
454
  this.text = text2;
457
455
  }
458
- static isInstance(error46) {
459
- return AISDKError.hasMarker(error46, marker7);
456
+ static isInstance(error45) {
457
+ return AISDKError.hasMarker(error45, marker7);
460
458
  }
461
459
  };
462
460
  _a7 = symbol7;
@@ -500,8 +498,8 @@ Error message: ${getErrorMessage(cause)}`,
500
498
  this[_a13] = true;
501
499
  this.value = value;
502
500
  }
503
- static isInstance(error46) {
504
- return AISDKError.hasMarker(error46, marker13);
501
+ static isInstance(error45) {
502
+ return AISDKError.hasMarker(error45, marker13);
505
503
  }
506
504
  /**
507
505
  * Wraps an error into a TypeValidationError.
@@ -645,8 +643,8 @@ var EventSourceParserStream = class extends TransformStream {
645
643
  onEvent: (event) => {
646
644
  controller.enqueue(event);
647
645
  },
648
- onError(error46) {
649
- onError === "terminate" ? controller.error(error46) : typeof onError == "function" && onError(error46);
646
+ onError(error45) {
647
+ onError === "terminate" ? controller.error(error45) : typeof onError == "function" && onError(error45);
650
648
  },
651
649
  onRetry,
652
650
  onComment
@@ -659,13 +657,13 @@ var EventSourceParserStream = class extends TransformStream {
659
657
  }
660
658
  };
661
659
 
662
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/index.js
660
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/index.js
663
661
  init_react_import();
664
662
 
665
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/index.js
663
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/index.js
666
664
  init_react_import();
667
665
 
668
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/external.js
666
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/external.js
669
667
  var external_exports = {};
670
668
  __export(external_exports, {
671
669
  $brand: () => $brand,
@@ -896,7 +894,7 @@ __export(external_exports, {
896
894
  });
897
895
  init_react_import();
898
896
 
899
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/index.js
897
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/index.js
900
898
  var core_exports2 = {};
901
899
  __export(core_exports2, {
902
900
  $ZodAny: () => $ZodAny,
@@ -1161,7 +1159,7 @@ __export(core_exports2, {
1161
1159
  });
1162
1160
  init_react_import();
1163
1161
 
1164
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/core.js
1162
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/core.js
1165
1163
  init_react_import();
1166
1164
  var NEVER = Object.freeze({
1167
1165
  status: "aborted"
@@ -1232,13 +1230,13 @@ function config(newConfig) {
1232
1230
  return globalConfig;
1233
1231
  }
1234
1232
 
1235
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/parse.js
1233
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/parse.js
1236
1234
  init_react_import();
1237
1235
 
1238
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/errors.js
1236
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/errors.js
1239
1237
  init_react_import();
1240
1238
 
1241
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/util.js
1239
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/util.js
1242
1240
  var util_exports = {};
1243
1241
  __export(util_exports, {
1244
1242
  BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
@@ -1876,7 +1874,7 @@ var Class = class {
1876
1874
  }
1877
1875
  };
1878
1876
 
1879
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/errors.js
1877
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/errors.js
1880
1878
  var initializer = (inst, def) => {
1881
1879
  inst.name = "$ZodError";
1882
1880
  Object.defineProperty(inst, "_zod", {
@@ -1895,10 +1893,10 @@ var initializer = (inst, def) => {
1895
1893
  };
1896
1894
  var $ZodError = $constructor("$ZodError", initializer);
1897
1895
  var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
1898
- function flattenError(error46, mapper = (issue2) => issue2.message) {
1896
+ function flattenError(error45, mapper = (issue2) => issue2.message) {
1899
1897
  const fieldErrors = {};
1900
1898
  const formErrors = [];
1901
- for (const sub of error46.issues) {
1899
+ for (const sub of error45.issues) {
1902
1900
  if (sub.path.length > 0) {
1903
1901
  fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
1904
1902
  fieldErrors[sub.path[0]].push(mapper(sub));
@@ -1908,10 +1906,13 @@ function flattenError(error46, mapper = (issue2) => issue2.message) {
1908
1906
  }
1909
1907
  return { formErrors, fieldErrors };
1910
1908
  }
1911
- function formatError(error46, mapper = (issue2) => issue2.message) {
1909
+ function formatError(error45, _mapper) {
1910
+ const mapper = _mapper || function(issue2) {
1911
+ return issue2.message;
1912
+ };
1912
1913
  const fieldErrors = { _errors: [] };
1913
- const processError = (error47) => {
1914
- for (const issue2 of error47.issues) {
1914
+ const processError = (error46) => {
1915
+ for (const issue2 of error46.issues) {
1915
1916
  if (issue2.code === "invalid_union" && issue2.errors.length) {
1916
1917
  issue2.errors.map((issues) => processError({ issues }));
1917
1918
  } else if (issue2.code === "invalid_key") {
@@ -1938,15 +1939,18 @@ function formatError(error46, mapper = (issue2) => issue2.message) {
1938
1939
  }
1939
1940
  }
1940
1941
  };
1941
- processError(error46);
1942
+ processError(error45);
1942
1943
  return fieldErrors;
1943
1944
  }
1944
- function treeifyError(error46, mapper = (issue2) => issue2.message) {
1945
+ function treeifyError(error45, _mapper) {
1946
+ const mapper = _mapper || function(issue2) {
1947
+ return issue2.message;
1948
+ };
1945
1949
  const result = { errors: [] };
1946
- const processError = (error47, path = []) => {
1950
+ const processError = (error46, path = []) => {
1947
1951
  var _a18, _b2, _c, _d;
1948
1952
  var _a17, _b;
1949
- for (const issue2 of error47.issues) {
1953
+ for (const issue2 of error46.issues) {
1950
1954
  if (issue2.code === "invalid_union" && issue2.errors.length) {
1951
1955
  issue2.errors.map((issues) => processError({ issues }, issue2.path));
1952
1956
  } else if (issue2.code === "invalid_key") {
@@ -1981,7 +1985,7 @@ function treeifyError(error46, mapper = (issue2) => issue2.message) {
1981
1985
  }
1982
1986
  }
1983
1987
  };
1984
- processError(error46);
1988
+ processError(error45);
1985
1989
  return result;
1986
1990
  }
1987
1991
  function toDotPath(_path) {
@@ -2002,10 +2006,10 @@ function toDotPath(_path) {
2002
2006
  }
2003
2007
  return segs.join("");
2004
2008
  }
2005
- function prettifyError(error46) {
2009
+ function prettifyError(error45) {
2006
2010
  var _a17;
2007
2011
  const lines = [];
2008
- const issues = [...error46.issues].sort((a, b) => {
2012
+ const issues = [...error45.issues].sort((a, b) => {
2009
2013
  var _a18, _b;
2010
2014
  return ((_a18 = a.path) != null ? _a18 : []).length - ((_b = b.path) != null ? _b : []).length;
2011
2015
  });
@@ -2017,7 +2021,7 @@ function prettifyError(error46) {
2017
2021
  return lines.join("\n");
2018
2022
  }
2019
2023
 
2020
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/parse.js
2024
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/parse.js
2021
2025
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
2022
2026
  var _a17;
2023
2027
  const ctx2 = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
@@ -2107,13 +2111,13 @@ var _safeDecodeAsync = (_Err) => (schema, value, _ctx) => __async(null, null, fu
2107
2111
  });
2108
2112
  var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
2109
2113
 
2110
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/schemas.js
2114
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/schemas.js
2111
2115
  init_react_import();
2112
2116
 
2113
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/checks.js
2117
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/checks.js
2114
2118
  init_react_import();
2115
2119
 
2116
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/regexes.js
2120
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/regexes.js
2117
2121
  var regexes_exports = {};
2118
2122
  __export(regexes_exports, {
2119
2123
  base64: () => base64,
@@ -2267,7 +2271,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
2267
2271
  var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
2268
2272
  var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
2269
2273
 
2270
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/checks.js
2274
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/checks.js
2271
2275
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
2272
2276
  var _a18, _b;
2273
2277
  var _a17;
@@ -2833,7 +2837,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
2833
2837
  };
2834
2838
  });
2835
2839
 
2836
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/doc.js
2840
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/doc.js
2837
2841
  init_react_import();
2838
2842
  var Doc = class {
2839
2843
  constructor(args = []) {
@@ -2871,15 +2875,15 @@ var Doc = class {
2871
2875
  }
2872
2876
  };
2873
2877
 
2874
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/versions.js
2878
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/versions.js
2875
2879
  init_react_import();
2876
2880
  var version = {
2877
2881
  major: 4,
2878
2882
  minor: 1,
2879
- patch: 12
2883
+ patch: 9
2880
2884
  };
2881
2885
 
2882
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/schemas.js
2886
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/schemas.js
2883
2887
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
2884
2888
  var _a18, _b, _c;
2885
2889
  var _a17;
@@ -3616,19 +3620,6 @@ function handleCatchall(proms, input, payload, ctx2, def, inst) {
3616
3620
  }
3617
3621
  var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
3618
3622
  $ZodType.init(inst, def);
3619
- const desc = Object.getOwnPropertyDescriptor(def, "shape");
3620
- if (!(desc == null ? void 0 : desc.get)) {
3621
- const sh = def.shape;
3622
- Object.defineProperty(def, "shape", {
3623
- get: () => {
3624
- const newSh = __spreadValues({}, sh);
3625
- Object.defineProperty(def, "shape", {
3626
- value: newSh
3627
- });
3628
- return newSh;
3629
- }
3630
- });
3631
- }
3632
3623
  const _normalized = cached(() => normalizeDef(def));
3633
3624
  defineLazy(inst._zod, "propValues", () => {
3634
3625
  var _a17;
@@ -4760,13 +4751,12 @@ function handleRefineResult(result, payload, input, inst) {
4760
4751
  }
4761
4752
  }
4762
4753
 
4763
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/index.js
4754
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/index.js
4764
4755
  var locales_exports = {};
4765
4756
  __export(locales_exports, {
4766
4757
  ar: () => ar_default,
4767
4758
  az: () => az_default,
4768
4759
  be: () => be_default,
4769
- bg: () => bg_default,
4770
4760
  ca: () => ca_default,
4771
4761
  cs: () => cs_default,
4772
4762
  da: () => da_default,
@@ -4813,7 +4803,7 @@ __export(locales_exports, {
4813
4803
  });
4814
4804
  init_react_import();
4815
4805
 
4816
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/ar.js
4806
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/ar.js
4817
4807
  init_react_import();
4818
4808
  var error = () => {
4819
4809
  const Sizable = {
@@ -4826,7 +4816,7 @@ var error = () => {
4826
4816
  var _a17;
4827
4817
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
4828
4818
  }
4829
- const parsedType8 = (data) => {
4819
+ const parsedType7 = (data) => {
4830
4820
  const t = typeof data;
4831
4821
  switch (t) {
4832
4822
  case "number": {
@@ -4880,7 +4870,7 @@ var error = () => {
4880
4870
  var _a17, _b, _c, _d;
4881
4871
  switch (issue2.code) {
4882
4872
  case "invalid_type":
4883
- return `\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${issue2.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${parsedType8(issue2.input)}`;
4873
+ return `\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${issue2.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${parsedType7(issue2.input)}`;
4884
4874
  case "invalid_value":
4885
4875
  if (issue2.values.length === 1)
4886
4876
  return `\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${stringifyPrimitive(issue2.values[0])}`;
@@ -4933,7 +4923,7 @@ function ar_default() {
4933
4923
  };
4934
4924
  }
4935
4925
 
4936
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/az.js
4926
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/az.js
4937
4927
  init_react_import();
4938
4928
  var error2 = () => {
4939
4929
  const Sizable = {
@@ -4946,7 +4936,7 @@ var error2 = () => {
4946
4936
  var _a17;
4947
4937
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
4948
4938
  }
4949
- const parsedType8 = (data) => {
4939
+ const parsedType7 = (data) => {
4950
4940
  const t = typeof data;
4951
4941
  switch (t) {
4952
4942
  case "number": {
@@ -5000,7 +4990,7 @@ var error2 = () => {
5000
4990
  var _a17, _b, _c, _d;
5001
4991
  switch (issue2.code) {
5002
4992
  case "invalid_type":
5003
- return `Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${issue2.expected}, daxil olan ${parsedType8(issue2.input)}`;
4993
+ return `Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${issue2.expected}, daxil olan ${parsedType7(issue2.input)}`;
5004
4994
  case "invalid_value":
5005
4995
  if (issue2.values.length === 1)
5006
4996
  return `Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${stringifyPrimitive(issue2.values[0])}`;
@@ -5052,7 +5042,7 @@ function az_default() {
5052
5042
  };
5053
5043
  }
5054
5044
 
5055
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/be.js
5045
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/be.js
5056
5046
  init_react_import();
5057
5047
  function getBelarusianPlural(count, one, few, many) {
5058
5048
  const absCount = Math.abs(count);
@@ -5108,7 +5098,7 @@ var error3 = () => {
5108
5098
  var _a17;
5109
5099
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
5110
5100
  }
5111
- const parsedType8 = (data) => {
5101
+ const parsedType7 = (data) => {
5112
5102
  const t = typeof data;
5113
5103
  switch (t) {
5114
5104
  case "number": {
@@ -5162,7 +5152,7 @@ var error3 = () => {
5162
5152
  var _a17, _b, _c;
5163
5153
  switch (issue2.code) {
5164
5154
  case "invalid_type":
5165
- return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${issue2.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${parsedType8(issue2.input)}`;
5155
+ return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${issue2.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${parsedType7(issue2.input)}`;
5166
5156
  case "invalid_value":
5167
5157
  if (issue2.values.length === 1)
5168
5158
  return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${stringifyPrimitive(issue2.values[0])}`;
@@ -5220,141 +5210,9 @@ function be_default() {
5220
5210
  };
5221
5211
  }
5222
5212
 
5223
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/bg.js
5213
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/ca.js
5224
5214
  init_react_import();
5225
- var parsedType = (data) => {
5226
- const t = typeof data;
5227
- switch (t) {
5228
- case "number": {
5229
- return Number.isNaN(data) ? "NaN" : "\u0447\u0438\u0441\u043B\u043E";
5230
- }
5231
- case "object": {
5232
- if (Array.isArray(data)) {
5233
- return "\u043C\u0430\u0441\u0438\u0432";
5234
- }
5235
- if (data === null) {
5236
- return "null";
5237
- }
5238
- if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
5239
- return data.constructor.name;
5240
- }
5241
- }
5242
- }
5243
- return t;
5244
- };
5245
5215
  var error4 = () => {
5246
- const Sizable = {
5247
- string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
5248
- file: { unit: "\u0431\u0430\u0439\u0442\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
5249
- array: { unit: "\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
5250
- set: { unit: "\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" }
5251
- };
5252
- function getSizing(origin) {
5253
- var _a17;
5254
- return (_a17 = Sizable[origin]) != null ? _a17 : null;
5255
- }
5256
- const Nouns = {
5257
- regex: "\u0432\u0445\u043E\u0434",
5258
- email: "\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",
5259
- url: "URL",
5260
- emoji: "\u0435\u043C\u043E\u0434\u0436\u0438",
5261
- uuid: "UUID",
5262
- uuidv4: "UUIDv4",
5263
- uuidv6: "UUIDv6",
5264
- nanoid: "nanoid",
5265
- guid: "GUID",
5266
- cuid: "cuid",
5267
- cuid2: "cuid2",
5268
- ulid: "ULID",
5269
- xid: "XID",
5270
- ksuid: "KSUID",
5271
- datetime: "ISO \u0432\u0440\u0435\u043C\u0435",
5272
- date: "ISO \u0434\u0430\u0442\u0430",
5273
- time: "ISO \u0432\u0440\u0435\u043C\u0435",
5274
- duration: "ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",
5275
- ipv4: "IPv4 \u0430\u0434\u0440\u0435\u0441",
5276
- ipv6: "IPv6 \u0430\u0434\u0440\u0435\u0441",
5277
- cidrv4: "IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",
5278
- cidrv6: "IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",
5279
- base64: "base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",
5280
- base64url: "base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",
5281
- json_string: "JSON \u043D\u0438\u0437",
5282
- e164: "E.164 \u043D\u043E\u043C\u0435\u0440",
5283
- jwt: "JWT",
5284
- template_literal: "\u0432\u0445\u043E\u0434"
5285
- };
5286
- return (issue2) => {
5287
- var _a17, _b, _c, _d;
5288
- switch (issue2.code) {
5289
- case "invalid_type":
5290
- return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${issue2.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${parsedType(issue2.input)}`;
5291
- case "invalid_value":
5292
- if (issue2.values.length === 1)
5293
- return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${stringifyPrimitive(issue2.values[0])}`;
5294
- return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${joinValues(issue2.values, "|")}`;
5295
- case "too_big": {
5296
- const adj = issue2.inclusive ? "<=" : "<";
5297
- const sizing = getSizing(issue2.origin);
5298
- if (sizing)
5299
- return `\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${(_a17 = issue2.origin) != null ? _a17 : "\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${adj}${issue2.maximum.toString()} ${(_b = sizing.unit) != null ? _b : "\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`;
5300
- return `\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${(_c = issue2.origin) != null ? _c : "\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${adj}${issue2.maximum.toString()}`;
5301
- }
5302
- case "too_small": {
5303
- const adj = issue2.inclusive ? ">=" : ">";
5304
- const sizing = getSizing(issue2.origin);
5305
- if (sizing) {
5306
- return `\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${issue2.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
5307
- }
5308
- return `\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${issue2.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${adj}${issue2.minimum.toString()}`;
5309
- }
5310
- case "invalid_format": {
5311
- const _issue = issue2;
5312
- if (_issue.format === "starts_with") {
5313
- return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${_issue.prefix}"`;
5314
- }
5315
- if (_issue.format === "ends_with")
5316
- return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${_issue.suffix}"`;
5317
- if (_issue.format === "includes")
5318
- return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${_issue.includes}"`;
5319
- if (_issue.format === "regex")
5320
- return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${_issue.pattern}`;
5321
- let invalid_adj = "\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";
5322
- if (_issue.format === "emoji")
5323
- invalid_adj = "\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E";
5324
- if (_issue.format === "datetime")
5325
- invalid_adj = "\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E";
5326
- if (_issue.format === "date")
5327
- invalid_adj = "\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430";
5328
- if (_issue.format === "time")
5329
- invalid_adj = "\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E";
5330
- if (_issue.format === "duration")
5331
- invalid_adj = "\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430";
5332
- return `${invalid_adj} ${(_d = Nouns[_issue.format]) != null ? _d : issue2.format}`;
5333
- }
5334
- case "not_multiple_of":
5335
- return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${issue2.divisor}`;
5336
- case "unrecognized_keys":
5337
- return `\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${issue2.keys.length > 1 ? "\u0438" : ""} \u043A\u043B\u044E\u0447${issue2.keys.length > 1 ? "\u043E\u0432\u0435" : ""}: ${joinValues(issue2.keys, ", ")}`;
5338
- case "invalid_key":
5339
- return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${issue2.origin}`;
5340
- case "invalid_union":
5341
- return "\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";
5342
- case "invalid_element":
5343
- return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${issue2.origin}`;
5344
- default:
5345
- return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434`;
5346
- }
5347
- };
5348
- };
5349
- function bg_default() {
5350
- return {
5351
- localeError: error4()
5352
- };
5353
- }
5354
-
5355
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/ca.js
5356
- init_react_import();
5357
- var error5 = () => {
5358
5216
  const Sizable = {
5359
5217
  string: { unit: "car\xE0cters", verb: "contenir" },
5360
5218
  file: { unit: "bytes", verb: "contenir" },
@@ -5365,7 +5223,7 @@ var error5 = () => {
5365
5223
  var _a17;
5366
5224
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
5367
5225
  }
5368
- const parsedType8 = (data) => {
5226
+ const parsedType7 = (data) => {
5369
5227
  const t = typeof data;
5370
5228
  switch (t) {
5371
5229
  case "number": {
@@ -5419,7 +5277,7 @@ var error5 = () => {
5419
5277
  var _a17, _b, _c, _d;
5420
5278
  switch (issue2.code) {
5421
5279
  case "invalid_type":
5422
- return `Tipus inv\xE0lid: s'esperava ${issue2.expected}, s'ha rebut ${parsedType8(issue2.input)}`;
5280
+ return `Tipus inv\xE0lid: s'esperava ${issue2.expected}, s'ha rebut ${parsedType7(issue2.input)}`;
5423
5281
  // return `Tipus invàlid: s'esperava ${issue.expected}, s'ha rebut ${util.getParsedType(issue.input)}`;
5424
5282
  case "invalid_value":
5425
5283
  if (issue2.values.length === 1)
@@ -5471,13 +5329,13 @@ var error5 = () => {
5471
5329
  };
5472
5330
  function ca_default() {
5473
5331
  return {
5474
- localeError: error5()
5332
+ localeError: error4()
5475
5333
  };
5476
5334
  }
5477
5335
 
5478
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/cs.js
5336
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/cs.js
5479
5337
  init_react_import();
5480
- var error6 = () => {
5338
+ var error5 = () => {
5481
5339
  const Sizable = {
5482
5340
  string: { unit: "znak\u016F", verb: "m\xEDt" },
5483
5341
  file: { unit: "bajt\u016F", verb: "m\xEDt" },
@@ -5488,7 +5346,7 @@ var error6 = () => {
5488
5346
  var _a17;
5489
5347
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
5490
5348
  }
5491
- const parsedType8 = (data) => {
5349
+ const parsedType7 = (data) => {
5492
5350
  const t = typeof data;
5493
5351
  switch (t) {
5494
5352
  case "number": {
@@ -5560,7 +5418,7 @@ var error6 = () => {
5560
5418
  var _a17, _b, _c, _d, _e, _f, _g;
5561
5419
  switch (issue2.code) {
5562
5420
  case "invalid_type":
5563
- return `Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${issue2.expected}, obdr\u017Eeno ${parsedType8(issue2.input)}`;
5421
+ return `Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${issue2.expected}, obdr\u017Eeno ${parsedType7(issue2.input)}`;
5564
5422
  case "invalid_value":
5565
5423
  if (issue2.values.length === 1)
5566
5424
  return `Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${stringifyPrimitive(issue2.values[0])}`;
@@ -5610,13 +5468,13 @@ var error6 = () => {
5610
5468
  };
5611
5469
  function cs_default() {
5612
5470
  return {
5613
- localeError: error6()
5471
+ localeError: error5()
5614
5472
  };
5615
5473
  }
5616
5474
 
5617
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/da.js
5475
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/da.js
5618
5476
  init_react_import();
5619
- var error7 = () => {
5477
+ var error6 = () => {
5620
5478
  const Sizable = {
5621
5479
  string: { unit: "tegn", verb: "havde" },
5622
5480
  file: { unit: "bytes", verb: "havde" },
@@ -5640,7 +5498,7 @@ var error7 = () => {
5640
5498
  var _a17;
5641
5499
  return (_a17 = TypeNames[type]) != null ? _a17 : type;
5642
5500
  }
5643
- const parsedType8 = (data) => {
5501
+ const parsedType7 = (data) => {
5644
5502
  const t = typeof data;
5645
5503
  switch (t) {
5646
5504
  case "number": {
@@ -5695,7 +5553,7 @@ var error7 = () => {
5695
5553
  var _a17, _b;
5696
5554
  switch (issue2.code) {
5697
5555
  case "invalid_type":
5698
- return `Ugyldigt input: forventede ${getTypeName(issue2.expected)}, fik ${getTypeName(parsedType8(issue2.input))}`;
5556
+ return `Ugyldigt input: forventede ${getTypeName(issue2.expected)}, fik ${getTypeName(parsedType7(issue2.input))}`;
5699
5557
  case "invalid_value":
5700
5558
  if (issue2.values.length === 1)
5701
5559
  return `Ugyldig v\xE6rdi: forventede ${stringifyPrimitive(issue2.values[0])}`;
@@ -5746,13 +5604,13 @@ var error7 = () => {
5746
5604
  };
5747
5605
  function da_default() {
5748
5606
  return {
5749
- localeError: error7()
5607
+ localeError: error6()
5750
5608
  };
5751
5609
  }
5752
5610
 
5753
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/de.js
5611
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/de.js
5754
5612
  init_react_import();
5755
- var error8 = () => {
5613
+ var error7 = () => {
5756
5614
  const Sizable = {
5757
5615
  string: { unit: "Zeichen", verb: "zu haben" },
5758
5616
  file: { unit: "Bytes", verb: "zu haben" },
@@ -5763,7 +5621,7 @@ var error8 = () => {
5763
5621
  var _a17;
5764
5622
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
5765
5623
  }
5766
- const parsedType8 = (data) => {
5624
+ const parsedType7 = (data) => {
5767
5625
  const t = typeof data;
5768
5626
  switch (t) {
5769
5627
  case "number": {
@@ -5817,7 +5675,7 @@ var error8 = () => {
5817
5675
  var _a17, _b, _c, _d;
5818
5676
  switch (issue2.code) {
5819
5677
  case "invalid_type":
5820
- return `Ung\xFCltige Eingabe: erwartet ${issue2.expected}, erhalten ${parsedType8(issue2.input)}`;
5678
+ return `Ung\xFCltige Eingabe: erwartet ${issue2.expected}, erhalten ${parsedType7(issue2.input)}`;
5821
5679
  case "invalid_value":
5822
5680
  if (issue2.values.length === 1)
5823
5681
  return `Ung\xFCltige Eingabe: erwartet ${stringifyPrimitive(issue2.values[0])}`;
@@ -5866,13 +5724,13 @@ var error8 = () => {
5866
5724
  };
5867
5725
  function de_default() {
5868
5726
  return {
5869
- localeError: error8()
5727
+ localeError: error7()
5870
5728
  };
5871
5729
  }
5872
5730
 
5873
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/en.js
5731
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/en.js
5874
5732
  init_react_import();
5875
- var parsedType2 = (data) => {
5733
+ var parsedType = (data) => {
5876
5734
  const t = typeof data;
5877
5735
  switch (t) {
5878
5736
  case "number": {
@@ -5892,7 +5750,7 @@ var parsedType2 = (data) => {
5892
5750
  }
5893
5751
  return t;
5894
5752
  };
5895
- var error9 = () => {
5753
+ var error8 = () => {
5896
5754
  const Sizable = {
5897
5755
  string: { unit: "characters", verb: "to have" },
5898
5756
  file: { unit: "bytes", verb: "to have" },
@@ -5937,7 +5795,7 @@ var error9 = () => {
5937
5795
  var _a17, _b, _c, _d;
5938
5796
  switch (issue2.code) {
5939
5797
  case "invalid_type":
5940
- return `Invalid input: expected ${issue2.expected}, received ${parsedType2(issue2.input)}`;
5798
+ return `Invalid input: expected ${issue2.expected}, received ${parsedType(issue2.input)}`;
5941
5799
  case "invalid_value":
5942
5800
  if (issue2.values.length === 1)
5943
5801
  return `Invalid input: expected ${stringifyPrimitive(issue2.values[0])}`;
@@ -5987,13 +5845,13 @@ var error9 = () => {
5987
5845
  };
5988
5846
  function en_default() {
5989
5847
  return {
5990
- localeError: error9()
5848
+ localeError: error8()
5991
5849
  };
5992
5850
  }
5993
5851
 
5994
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/eo.js
5852
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/eo.js
5995
5853
  init_react_import();
5996
- var parsedType3 = (data) => {
5854
+ var parsedType2 = (data) => {
5997
5855
  const t = typeof data;
5998
5856
  switch (t) {
5999
5857
  case "number": {
@@ -6013,7 +5871,7 @@ var parsedType3 = (data) => {
6013
5871
  }
6014
5872
  return t;
6015
5873
  };
6016
- var error10 = () => {
5874
+ var error9 = () => {
6017
5875
  const Sizable = {
6018
5876
  string: { unit: "karaktrojn", verb: "havi" },
6019
5877
  file: { unit: "bajtojn", verb: "havi" },
@@ -6058,7 +5916,7 @@ var error10 = () => {
6058
5916
  var _a17, _b, _c, _d;
6059
5917
  switch (issue2.code) {
6060
5918
  case "invalid_type":
6061
- return `Nevalida enigo: atendi\u011Dis ${issue2.expected}, ricevi\u011Dis ${parsedType3(issue2.input)}`;
5919
+ return `Nevalida enigo: atendi\u011Dis ${issue2.expected}, ricevi\u011Dis ${parsedType2(issue2.input)}`;
6062
5920
  case "invalid_value":
6063
5921
  if (issue2.values.length === 1)
6064
5922
  return `Nevalida enigo: atendi\u011Dis ${stringifyPrimitive(issue2.values[0])}`;
@@ -6107,13 +5965,13 @@ var error10 = () => {
6107
5965
  };
6108
5966
  function eo_default() {
6109
5967
  return {
6110
- localeError: error10()
5968
+ localeError: error9()
6111
5969
  };
6112
5970
  }
6113
5971
 
6114
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/es.js
5972
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/es.js
6115
5973
  init_react_import();
6116
- var error11 = () => {
5974
+ var error10 = () => {
6117
5975
  const Sizable = {
6118
5976
  string: { unit: "caracteres", verb: "tener" },
6119
5977
  file: { unit: "bytes", verb: "tener" },
@@ -6154,7 +6012,7 @@ var error11 = () => {
6154
6012
  var _a17;
6155
6013
  return (_a17 = TypeNames[type]) != null ? _a17 : type;
6156
6014
  }
6157
- const parsedType8 = (data) => {
6015
+ const parsedType7 = (data) => {
6158
6016
  const t = typeof data;
6159
6017
  switch (t) {
6160
6018
  case "number": {
@@ -6209,7 +6067,7 @@ var error11 = () => {
6209
6067
  var _a17, _b;
6210
6068
  switch (issue2.code) {
6211
6069
  case "invalid_type":
6212
- return `Entrada inv\xE1lida: se esperaba ${getTypeName(issue2.expected)}, recibido ${getTypeName(parsedType8(issue2.input))}`;
6070
+ return `Entrada inv\xE1lida: se esperaba ${getTypeName(issue2.expected)}, recibido ${getTypeName(parsedType7(issue2.input))}`;
6213
6071
  // return `Entrada inválida: se esperaba ${issue.expected}, recibido ${util.getParsedType(issue.input)}`;
6214
6072
  case "invalid_value":
6215
6073
  if (issue2.values.length === 1)
@@ -6261,13 +6119,13 @@ var error11 = () => {
6261
6119
  };
6262
6120
  function es_default() {
6263
6121
  return {
6264
- localeError: error11()
6122
+ localeError: error10()
6265
6123
  };
6266
6124
  }
6267
6125
 
6268
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/fa.js
6126
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/fa.js
6269
6127
  init_react_import();
6270
- var error12 = () => {
6128
+ var error11 = () => {
6271
6129
  const Sizable = {
6272
6130
  string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
6273
6131
  file: { unit: "\u0628\u0627\u06CC\u062A", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
@@ -6278,7 +6136,7 @@ var error12 = () => {
6278
6136
  var _a17;
6279
6137
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
6280
6138
  }
6281
- const parsedType8 = (data) => {
6139
+ const parsedType7 = (data) => {
6282
6140
  const t = typeof data;
6283
6141
  switch (t) {
6284
6142
  case "number": {
@@ -6332,7 +6190,7 @@ var error12 = () => {
6332
6190
  var _a17, _b, _c, _d;
6333
6191
  switch (issue2.code) {
6334
6192
  case "invalid_type":
6335
- return `\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${issue2.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${parsedType8(issue2.input)} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`;
6193
+ return `\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${issue2.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${parsedType7(issue2.input)} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`;
6336
6194
  case "invalid_value":
6337
6195
  if (issue2.values.length === 1) {
6338
6196
  return `\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${stringifyPrimitive(issue2.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`;
@@ -6387,13 +6245,13 @@ var error12 = () => {
6387
6245
  };
6388
6246
  function fa_default() {
6389
6247
  return {
6390
- localeError: error12()
6248
+ localeError: error11()
6391
6249
  };
6392
6250
  }
6393
6251
 
6394
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/fi.js
6252
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/fi.js
6395
6253
  init_react_import();
6396
- var error13 = () => {
6254
+ var error12 = () => {
6397
6255
  const Sizable = {
6398
6256
  string: { unit: "merkki\xE4", subject: "merkkijonon" },
6399
6257
  file: { unit: "tavua", subject: "tiedoston" },
@@ -6408,7 +6266,7 @@ var error13 = () => {
6408
6266
  var _a17;
6409
6267
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
6410
6268
  }
6411
- const parsedType8 = (data) => {
6269
+ const parsedType7 = (data) => {
6412
6270
  const t = typeof data;
6413
6271
  switch (t) {
6414
6272
  case "number": {
@@ -6462,7 +6320,7 @@ var error13 = () => {
6462
6320
  var _a17;
6463
6321
  switch (issue2.code) {
6464
6322
  case "invalid_type":
6465
- return `Virheellinen tyyppi: odotettiin ${issue2.expected}, oli ${parsedType8(issue2.input)}`;
6323
+ return `Virheellinen tyyppi: odotettiin ${issue2.expected}, oli ${parsedType7(issue2.input)}`;
6466
6324
  case "invalid_value":
6467
6325
  if (issue2.values.length === 1)
6468
6326
  return `Virheellinen sy\xF6te: t\xE4ytyy olla ${stringifyPrimitive(issue2.values[0])}`;
@@ -6513,13 +6371,13 @@ var error13 = () => {
6513
6371
  };
6514
6372
  function fi_default() {
6515
6373
  return {
6516
- localeError: error13()
6374
+ localeError: error12()
6517
6375
  };
6518
6376
  }
6519
6377
 
6520
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/fr.js
6378
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/fr.js
6521
6379
  init_react_import();
6522
- var error14 = () => {
6380
+ var error13 = () => {
6523
6381
  const Sizable = {
6524
6382
  string: { unit: "caract\xE8res", verb: "avoir" },
6525
6383
  file: { unit: "octets", verb: "avoir" },
@@ -6530,7 +6388,7 @@ var error14 = () => {
6530
6388
  var _a17;
6531
6389
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
6532
6390
  }
6533
- const parsedType8 = (data) => {
6391
+ const parsedType7 = (data) => {
6534
6392
  const t = typeof data;
6535
6393
  switch (t) {
6536
6394
  case "number": {
@@ -6584,7 +6442,7 @@ var error14 = () => {
6584
6442
  var _a17, _b, _c, _d;
6585
6443
  switch (issue2.code) {
6586
6444
  case "invalid_type":
6587
- return `Entr\xE9e invalide : ${issue2.expected} attendu, ${parsedType8(issue2.input)} re\xE7u`;
6445
+ return `Entr\xE9e invalide : ${issue2.expected} attendu, ${parsedType7(issue2.input)} re\xE7u`;
6588
6446
  case "invalid_value":
6589
6447
  if (issue2.values.length === 1)
6590
6448
  return `Entr\xE9e invalide : ${stringifyPrimitive(issue2.values[0])} attendu`;
@@ -6633,13 +6491,13 @@ var error14 = () => {
6633
6491
  };
6634
6492
  function fr_default() {
6635
6493
  return {
6636
- localeError: error14()
6494
+ localeError: error13()
6637
6495
  };
6638
6496
  }
6639
6497
 
6640
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/fr-CA.js
6498
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/fr-CA.js
6641
6499
  init_react_import();
6642
- var error15 = () => {
6500
+ var error14 = () => {
6643
6501
  const Sizable = {
6644
6502
  string: { unit: "caract\xE8res", verb: "avoir" },
6645
6503
  file: { unit: "octets", verb: "avoir" },
@@ -6650,7 +6508,7 @@ var error15 = () => {
6650
6508
  var _a17;
6651
6509
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
6652
6510
  }
6653
- const parsedType8 = (data) => {
6511
+ const parsedType7 = (data) => {
6654
6512
  const t = typeof data;
6655
6513
  switch (t) {
6656
6514
  case "number": {
@@ -6704,7 +6562,7 @@ var error15 = () => {
6704
6562
  var _a17, _b, _c;
6705
6563
  switch (issue2.code) {
6706
6564
  case "invalid_type":
6707
- return `Entr\xE9e invalide : attendu ${issue2.expected}, re\xE7u ${parsedType8(issue2.input)}`;
6565
+ return `Entr\xE9e invalide : attendu ${issue2.expected}, re\xE7u ${parsedType7(issue2.input)}`;
6708
6566
  case "invalid_value":
6709
6567
  if (issue2.values.length === 1)
6710
6568
  return `Entr\xE9e invalide : attendu ${stringifyPrimitive(issue2.values[0])}`;
@@ -6754,13 +6612,13 @@ var error15 = () => {
6754
6612
  };
6755
6613
  function fr_CA_default() {
6756
6614
  return {
6757
- localeError: error15()
6615
+ localeError: error14()
6758
6616
  };
6759
6617
  }
6760
6618
 
6761
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/he.js
6619
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/he.js
6762
6620
  init_react_import();
6763
- var error16 = () => {
6621
+ var error15 = () => {
6764
6622
  const Sizable = {
6765
6623
  string: { unit: "\u05D0\u05D5\u05EA\u05D9\u05D5\u05EA", verb: "\u05DC\u05DB\u05DC\u05D5\u05DC" },
6766
6624
  file: { unit: "\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD", verb: "\u05DC\u05DB\u05DC\u05D5\u05DC" },
@@ -6771,7 +6629,7 @@ var error16 = () => {
6771
6629
  var _a17;
6772
6630
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
6773
6631
  }
6774
- const parsedType8 = (data) => {
6632
+ const parsedType7 = (data) => {
6775
6633
  const t = typeof data;
6776
6634
  switch (t) {
6777
6635
  case "number": {
@@ -6825,7 +6683,7 @@ var error16 = () => {
6825
6683
  var _a17, _b, _c, _d;
6826
6684
  switch (issue2.code) {
6827
6685
  case "invalid_type":
6828
- return `\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${issue2.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${parsedType8(issue2.input)}`;
6686
+ return `\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${issue2.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${parsedType7(issue2.input)}`;
6829
6687
  // return `Invalid input: expected ${issue.expected}, received ${util.getParsedType(issue.input)}`;
6830
6688
  case "invalid_value":
6831
6689
  if (issue2.values.length === 1)
@@ -6875,13 +6733,13 @@ var error16 = () => {
6875
6733
  };
6876
6734
  function he_default() {
6877
6735
  return {
6878
- localeError: error16()
6736
+ localeError: error15()
6879
6737
  };
6880
6738
  }
6881
6739
 
6882
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/hu.js
6740
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/hu.js
6883
6741
  init_react_import();
6884
- var error17 = () => {
6742
+ var error16 = () => {
6885
6743
  const Sizable = {
6886
6744
  string: { unit: "karakter", verb: "legyen" },
6887
6745
  file: { unit: "byte", verb: "legyen" },
@@ -6892,7 +6750,7 @@ var error17 = () => {
6892
6750
  var _a17;
6893
6751
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
6894
6752
  }
6895
- const parsedType8 = (data) => {
6753
+ const parsedType7 = (data) => {
6896
6754
  const t = typeof data;
6897
6755
  switch (t) {
6898
6756
  case "number": {
@@ -6946,7 +6804,7 @@ var error17 = () => {
6946
6804
  var _a17, _b, _c, _d;
6947
6805
  switch (issue2.code) {
6948
6806
  case "invalid_type":
6949
- return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${issue2.expected}, a kapott \xE9rt\xE9k ${parsedType8(issue2.input)}`;
6807
+ return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${issue2.expected}, a kapott \xE9rt\xE9k ${parsedType7(issue2.input)}`;
6950
6808
  // return `Invalid input: expected ${issue.expected}, received ${util.getParsedType(issue.input)}`;
6951
6809
  case "invalid_value":
6952
6810
  if (issue2.values.length === 1)
@@ -6996,13 +6854,13 @@ var error17 = () => {
6996
6854
  };
6997
6855
  function hu_default() {
6998
6856
  return {
6999
- localeError: error17()
6857
+ localeError: error16()
7000
6858
  };
7001
6859
  }
7002
6860
 
7003
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/id.js
6861
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/id.js
7004
6862
  init_react_import();
7005
- var error18 = () => {
6863
+ var error17 = () => {
7006
6864
  const Sizable = {
7007
6865
  string: { unit: "karakter", verb: "memiliki" },
7008
6866
  file: { unit: "byte", verb: "memiliki" },
@@ -7013,7 +6871,7 @@ var error18 = () => {
7013
6871
  var _a17;
7014
6872
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
7015
6873
  }
7016
- const parsedType8 = (data) => {
6874
+ const parsedType7 = (data) => {
7017
6875
  const t = typeof data;
7018
6876
  switch (t) {
7019
6877
  case "number": {
@@ -7067,7 +6925,7 @@ var error18 = () => {
7067
6925
  var _a17, _b, _c, _d;
7068
6926
  switch (issue2.code) {
7069
6927
  case "invalid_type":
7070
- return `Input tidak valid: diharapkan ${issue2.expected}, diterima ${parsedType8(issue2.input)}`;
6928
+ return `Input tidak valid: diharapkan ${issue2.expected}, diterima ${parsedType7(issue2.input)}`;
7071
6929
  case "invalid_value":
7072
6930
  if (issue2.values.length === 1)
7073
6931
  return `Input tidak valid: diharapkan ${stringifyPrimitive(issue2.values[0])}`;
@@ -7116,13 +6974,13 @@ var error18 = () => {
7116
6974
  };
7117
6975
  function id_default() {
7118
6976
  return {
7119
- localeError: error18()
6977
+ localeError: error17()
7120
6978
  };
7121
6979
  }
7122
6980
 
7123
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/is.js
6981
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/is.js
7124
6982
  init_react_import();
7125
- var parsedType4 = (data) => {
6983
+ var parsedType3 = (data) => {
7126
6984
  const t = typeof data;
7127
6985
  switch (t) {
7128
6986
  case "number": {
@@ -7142,7 +7000,7 @@ var parsedType4 = (data) => {
7142
7000
  }
7143
7001
  return t;
7144
7002
  };
7145
- var error19 = () => {
7003
+ var error18 = () => {
7146
7004
  const Sizable = {
7147
7005
  string: { unit: "stafi", verb: "a\xF0 hafa" },
7148
7006
  file: { unit: "b\xE6ti", verb: "a\xF0 hafa" },
@@ -7187,7 +7045,7 @@ var error19 = () => {
7187
7045
  var _a17, _b, _c, _d;
7188
7046
  switch (issue2.code) {
7189
7047
  case "invalid_type":
7190
- return `Rangt gildi: \xDE\xFA sl\xF3st inn ${parsedType4(issue2.input)} \xFEar sem \xE1 a\xF0 vera ${issue2.expected}`;
7048
+ return `Rangt gildi: \xDE\xFA sl\xF3st inn ${parsedType3(issue2.input)} \xFEar sem \xE1 a\xF0 vera ${issue2.expected}`;
7191
7049
  case "invalid_value":
7192
7050
  if (issue2.values.length === 1)
7193
7051
  return `Rangt gildi: gert r\xE1\xF0 fyrir ${stringifyPrimitive(issue2.values[0])}`;
@@ -7237,13 +7095,13 @@ var error19 = () => {
7237
7095
  };
7238
7096
  function is_default() {
7239
7097
  return {
7240
- localeError: error19()
7098
+ localeError: error18()
7241
7099
  };
7242
7100
  }
7243
7101
 
7244
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/it.js
7102
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/it.js
7245
7103
  init_react_import();
7246
- var error20 = () => {
7104
+ var error19 = () => {
7247
7105
  const Sizable = {
7248
7106
  string: { unit: "caratteri", verb: "avere" },
7249
7107
  file: { unit: "byte", verb: "avere" },
@@ -7254,7 +7112,7 @@ var error20 = () => {
7254
7112
  var _a17;
7255
7113
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
7256
7114
  }
7257
- const parsedType8 = (data) => {
7115
+ const parsedType7 = (data) => {
7258
7116
  const t = typeof data;
7259
7117
  switch (t) {
7260
7118
  case "number": {
@@ -7308,7 +7166,7 @@ var error20 = () => {
7308
7166
  var _a17, _b, _c, _d;
7309
7167
  switch (issue2.code) {
7310
7168
  case "invalid_type":
7311
- return `Input non valido: atteso ${issue2.expected}, ricevuto ${parsedType8(issue2.input)}`;
7169
+ return `Input non valido: atteso ${issue2.expected}, ricevuto ${parsedType7(issue2.input)}`;
7312
7170
  // return `Input non valido: atteso ${issue.expected}, ricevuto ${util.getParsedType(issue.input)}`;
7313
7171
  case "invalid_value":
7314
7172
  if (issue2.values.length === 1)
@@ -7358,13 +7216,13 @@ var error20 = () => {
7358
7216
  };
7359
7217
  function it_default() {
7360
7218
  return {
7361
- localeError: error20()
7219
+ localeError: error19()
7362
7220
  };
7363
7221
  }
7364
7222
 
7365
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/ja.js
7223
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/ja.js
7366
7224
  init_react_import();
7367
- var error21 = () => {
7225
+ var error20 = () => {
7368
7226
  const Sizable = {
7369
7227
  string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
7370
7228
  file: { unit: "\u30D0\u30A4\u30C8", verb: "\u3067\u3042\u308B" },
@@ -7375,7 +7233,7 @@ var error21 = () => {
7375
7233
  var _a17;
7376
7234
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
7377
7235
  }
7378
- const parsedType8 = (data) => {
7236
+ const parsedType7 = (data) => {
7379
7237
  const t = typeof data;
7380
7238
  switch (t) {
7381
7239
  case "number": {
@@ -7429,7 +7287,7 @@ var error21 = () => {
7429
7287
  var _a17, _b, _c, _d;
7430
7288
  switch (issue2.code) {
7431
7289
  case "invalid_type":
7432
- return `\u7121\u52B9\u306A\u5165\u529B: ${issue2.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${parsedType8(issue2.input)}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`;
7290
+ return `\u7121\u52B9\u306A\u5165\u529B: ${issue2.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${parsedType7(issue2.input)}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`;
7433
7291
  case "invalid_value":
7434
7292
  if (issue2.values.length === 1)
7435
7293
  return `\u7121\u52B9\u306A\u5165\u529B: ${stringifyPrimitive(issue2.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`;
@@ -7477,13 +7335,13 @@ var error21 = () => {
7477
7335
  };
7478
7336
  function ja_default() {
7479
7337
  return {
7480
- localeError: error21()
7338
+ localeError: error20()
7481
7339
  };
7482
7340
  }
7483
7341
 
7484
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/ka.js
7342
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/ka.js
7485
7343
  init_react_import();
7486
- var parsedType5 = (data) => {
7344
+ var parsedType4 = (data) => {
7487
7345
  var _a17;
7488
7346
  const t = typeof data;
7489
7347
  switch (t) {
@@ -7512,7 +7370,7 @@ var parsedType5 = (data) => {
7512
7370
  };
7513
7371
  return (_a17 = typeMap[t]) != null ? _a17 : t;
7514
7372
  };
7515
- var error22 = () => {
7373
+ var error21 = () => {
7516
7374
  const Sizable = {
7517
7375
  string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
7518
7376
  file: { unit: "\u10D1\u10D0\u10D8\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
@@ -7557,7 +7415,7 @@ var error22 = () => {
7557
7415
  var _a17, _b, _c;
7558
7416
  switch (issue2.code) {
7559
7417
  case "invalid_type":
7560
- return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${issue2.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${parsedType5(issue2.input)}`;
7418
+ return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${issue2.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${parsedType4(issue2.input)}`;
7561
7419
  case "invalid_value":
7562
7420
  if (issue2.values.length === 1)
7563
7421
  return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${stringifyPrimitive(issue2.values[0])}`;
@@ -7607,16 +7465,16 @@ var error22 = () => {
7607
7465
  };
7608
7466
  function ka_default() {
7609
7467
  return {
7610
- localeError: error22()
7468
+ localeError: error21()
7611
7469
  };
7612
7470
  }
7613
7471
 
7614
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/kh.js
7472
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/kh.js
7615
7473
  init_react_import();
7616
7474
 
7617
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/km.js
7475
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/km.js
7618
7476
  init_react_import();
7619
- var error23 = () => {
7477
+ var error22 = () => {
7620
7478
  const Sizable = {
7621
7479
  string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
7622
7480
  file: { unit: "\u1794\u17C3", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
@@ -7627,7 +7485,7 @@ var error23 = () => {
7627
7485
  var _a17;
7628
7486
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
7629
7487
  }
7630
- const parsedType8 = (data) => {
7488
+ const parsedType7 = (data) => {
7631
7489
  const t = typeof data;
7632
7490
  switch (t) {
7633
7491
  case "number": {
@@ -7681,7 +7539,7 @@ var error23 = () => {
7681
7539
  var _a17, _b, _c, _d;
7682
7540
  switch (issue2.code) {
7683
7541
  case "invalid_type":
7684
- return `\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${issue2.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${parsedType8(issue2.input)}`;
7542
+ return `\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${issue2.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${parsedType7(issue2.input)}`;
7685
7543
  case "invalid_value":
7686
7544
  if (issue2.values.length === 1)
7687
7545
  return `\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${stringifyPrimitive(issue2.values[0])}`;
@@ -7731,18 +7589,18 @@ var error23 = () => {
7731
7589
  };
7732
7590
  function km_default() {
7733
7591
  return {
7734
- localeError: error23()
7592
+ localeError: error22()
7735
7593
  };
7736
7594
  }
7737
7595
 
7738
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/kh.js
7596
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/kh.js
7739
7597
  function kh_default() {
7740
7598
  return km_default();
7741
7599
  }
7742
7600
 
7743
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/ko.js
7601
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/ko.js
7744
7602
  init_react_import();
7745
- var error24 = () => {
7603
+ var error23 = () => {
7746
7604
  const Sizable = {
7747
7605
  string: { unit: "\uBB38\uC790", verb: "to have" },
7748
7606
  file: { unit: "\uBC14\uC774\uD2B8", verb: "to have" },
@@ -7753,7 +7611,7 @@ var error24 = () => {
7753
7611
  var _a17;
7754
7612
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
7755
7613
  }
7756
- const parsedType8 = (data) => {
7614
+ const parsedType7 = (data) => {
7757
7615
  const t = typeof data;
7758
7616
  switch (t) {
7759
7617
  case "number": {
@@ -7807,7 +7665,7 @@ var error24 = () => {
7807
7665
  var _a17, _b, _c, _d, _e, _f, _g;
7808
7666
  switch (issue2.code) {
7809
7667
  case "invalid_type":
7810
- return `\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${issue2.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${parsedType8(issue2.input)}\uC785\uB2C8\uB2E4`;
7668
+ return `\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${issue2.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${parsedType7(issue2.input)}\uC785\uB2C8\uB2E4`;
7811
7669
  case "invalid_value":
7812
7670
  if (issue2.values.length === 1)
7813
7671
  return `\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${stringifyPrimitive(issue2.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`;
@@ -7861,13 +7719,13 @@ var error24 = () => {
7861
7719
  };
7862
7720
  function ko_default() {
7863
7721
  return {
7864
- localeError: error24()
7722
+ localeError: error23()
7865
7723
  };
7866
7724
  }
7867
7725
 
7868
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/lt.js
7726
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/lt.js
7869
7727
  init_react_import();
7870
- var parsedType6 = (data) => {
7728
+ var parsedType5 = (data) => {
7871
7729
  const t = typeof data;
7872
7730
  return parsedTypeFromType(t, data);
7873
7731
  };
@@ -7927,7 +7785,7 @@ function getUnitTypeFromNumber(number4) {
7927
7785
  return "one";
7928
7786
  return "few";
7929
7787
  }
7930
- var error25 = () => {
7788
+ var error24 = () => {
7931
7789
  const Sizable = {
7932
7790
  string: {
7933
7791
  unit: {
@@ -8042,7 +7900,7 @@ var error25 = () => {
8042
7900
  var _a17, _b, _c, _d, _e, _f, _g, _h, _i, _j;
8043
7901
  switch (issue2.code) {
8044
7902
  case "invalid_type":
8045
- return `Gautas tipas ${parsedType6(issue2.input)}, o tik\u0117tasi - ${parsedTypeFromType(issue2.expected)}`;
7903
+ return `Gautas tipas ${parsedType5(issue2.input)}, o tik\u0117tasi - ${parsedTypeFromType(issue2.expected)}`;
8046
7904
  case "invalid_value":
8047
7905
  if (issue2.values.length === 1)
8048
7906
  return `Privalo b\u016Bti ${stringifyPrimitive(issue2.values[0])}`;
@@ -8095,13 +7953,13 @@ var error25 = () => {
8095
7953
  };
8096
7954
  function lt_default() {
8097
7955
  return {
8098
- localeError: error25()
7956
+ localeError: error24()
8099
7957
  };
8100
7958
  }
8101
7959
 
8102
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/mk.js
7960
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/mk.js
8103
7961
  init_react_import();
8104
- var error26 = () => {
7962
+ var error25 = () => {
8105
7963
  const Sizable = {
8106
7964
  string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
8107
7965
  file: { unit: "\u0431\u0430\u0458\u0442\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
@@ -8112,7 +7970,7 @@ var error26 = () => {
8112
7970
  var _a17;
8113
7971
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
8114
7972
  }
8115
- const parsedType8 = (data) => {
7973
+ const parsedType7 = (data) => {
8116
7974
  const t = typeof data;
8117
7975
  switch (t) {
8118
7976
  case "number": {
@@ -8166,7 +8024,7 @@ var error26 = () => {
8166
8024
  var _a17, _b, _c, _d;
8167
8025
  switch (issue2.code) {
8168
8026
  case "invalid_type":
8169
- return `\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${issue2.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${parsedType8(issue2.input)}`;
8027
+ return `\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${issue2.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${parsedType7(issue2.input)}`;
8170
8028
  // return `Invalid input: expected ${issue.expected}, received ${util.getParsedType(issue.input)}`;
8171
8029
  case "invalid_value":
8172
8030
  if (issue2.values.length === 1)
@@ -8217,13 +8075,13 @@ var error26 = () => {
8217
8075
  };
8218
8076
  function mk_default() {
8219
8077
  return {
8220
- localeError: error26()
8078
+ localeError: error25()
8221
8079
  };
8222
8080
  }
8223
8081
 
8224
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/ms.js
8082
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/ms.js
8225
8083
  init_react_import();
8226
- var error27 = () => {
8084
+ var error26 = () => {
8227
8085
  const Sizable = {
8228
8086
  string: { unit: "aksara", verb: "mempunyai" },
8229
8087
  file: { unit: "bait", verb: "mempunyai" },
@@ -8234,7 +8092,7 @@ var error27 = () => {
8234
8092
  var _a17;
8235
8093
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
8236
8094
  }
8237
- const parsedType8 = (data) => {
8095
+ const parsedType7 = (data) => {
8238
8096
  const t = typeof data;
8239
8097
  switch (t) {
8240
8098
  case "number": {
@@ -8288,7 +8146,7 @@ var error27 = () => {
8288
8146
  var _a17, _b, _c, _d;
8289
8147
  switch (issue2.code) {
8290
8148
  case "invalid_type":
8291
- return `Input tidak sah: dijangka ${issue2.expected}, diterima ${parsedType8(issue2.input)}`;
8149
+ return `Input tidak sah: dijangka ${issue2.expected}, diterima ${parsedType7(issue2.input)}`;
8292
8150
  case "invalid_value":
8293
8151
  if (issue2.values.length === 1)
8294
8152
  return `Input tidak sah: dijangka ${stringifyPrimitive(issue2.values[0])}`;
@@ -8337,13 +8195,13 @@ var error27 = () => {
8337
8195
  };
8338
8196
  function ms_default() {
8339
8197
  return {
8340
- localeError: error27()
8198
+ localeError: error26()
8341
8199
  };
8342
8200
  }
8343
8201
 
8344
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/nl.js
8202
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/nl.js
8345
8203
  init_react_import();
8346
- var error28 = () => {
8204
+ var error27 = () => {
8347
8205
  const Sizable = {
8348
8206
  string: { unit: "tekens" },
8349
8207
  file: { unit: "bytes" },
@@ -8354,7 +8212,7 @@ var error28 = () => {
8354
8212
  var _a17;
8355
8213
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
8356
8214
  }
8357
- const parsedType8 = (data) => {
8215
+ const parsedType7 = (data) => {
8358
8216
  const t = typeof data;
8359
8217
  switch (t) {
8360
8218
  case "number": {
@@ -8408,7 +8266,7 @@ var error28 = () => {
8408
8266
  var _a17, _b, _c, _d;
8409
8267
  switch (issue2.code) {
8410
8268
  case "invalid_type":
8411
- return `Ongeldige invoer: verwacht ${issue2.expected}, ontving ${parsedType8(issue2.input)}`;
8269
+ return `Ongeldige invoer: verwacht ${issue2.expected}, ontving ${parsedType7(issue2.input)}`;
8412
8270
  case "invalid_value":
8413
8271
  if (issue2.values.length === 1)
8414
8272
  return `Ongeldige invoer: verwacht ${stringifyPrimitive(issue2.values[0])}`;
@@ -8458,13 +8316,13 @@ var error28 = () => {
8458
8316
  };
8459
8317
  function nl_default() {
8460
8318
  return {
8461
- localeError: error28()
8319
+ localeError: error27()
8462
8320
  };
8463
8321
  }
8464
8322
 
8465
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/no.js
8323
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/no.js
8466
8324
  init_react_import();
8467
- var error29 = () => {
8325
+ var error28 = () => {
8468
8326
  const Sizable = {
8469
8327
  string: { unit: "tegn", verb: "\xE5 ha" },
8470
8328
  file: { unit: "bytes", verb: "\xE5 ha" },
@@ -8475,7 +8333,7 @@ var error29 = () => {
8475
8333
  var _a17;
8476
8334
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
8477
8335
  }
8478
- const parsedType8 = (data) => {
8336
+ const parsedType7 = (data) => {
8479
8337
  const t = typeof data;
8480
8338
  switch (t) {
8481
8339
  case "number": {
@@ -8529,7 +8387,7 @@ var error29 = () => {
8529
8387
  var _a17, _b, _c, _d;
8530
8388
  switch (issue2.code) {
8531
8389
  case "invalid_type":
8532
- return `Ugyldig input: forventet ${issue2.expected}, fikk ${parsedType8(issue2.input)}`;
8390
+ return `Ugyldig input: forventet ${issue2.expected}, fikk ${parsedType7(issue2.input)}`;
8533
8391
  case "invalid_value":
8534
8392
  if (issue2.values.length === 1)
8535
8393
  return `Ugyldig verdi: forventet ${stringifyPrimitive(issue2.values[0])}`;
@@ -8578,13 +8436,13 @@ var error29 = () => {
8578
8436
  };
8579
8437
  function no_default() {
8580
8438
  return {
8581
- localeError: error29()
8439
+ localeError: error28()
8582
8440
  };
8583
8441
  }
8584
8442
 
8585
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/ota.js
8443
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/ota.js
8586
8444
  init_react_import();
8587
- var error30 = () => {
8445
+ var error29 = () => {
8588
8446
  const Sizable = {
8589
8447
  string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
8590
8448
  file: { unit: "bayt", verb: "olmal\u0131d\u0131r" },
@@ -8595,7 +8453,7 @@ var error30 = () => {
8595
8453
  var _a17;
8596
8454
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
8597
8455
  }
8598
- const parsedType8 = (data) => {
8456
+ const parsedType7 = (data) => {
8599
8457
  const t = typeof data;
8600
8458
  switch (t) {
8601
8459
  case "number": {
@@ -8649,7 +8507,7 @@ var error30 = () => {
8649
8507
  var _a17, _b, _c, _d;
8650
8508
  switch (issue2.code) {
8651
8509
  case "invalid_type":
8652
- return `F\xE2sit giren: umulan ${issue2.expected}, al\u0131nan ${parsedType8(issue2.input)}`;
8510
+ return `F\xE2sit giren: umulan ${issue2.expected}, al\u0131nan ${parsedType7(issue2.input)}`;
8653
8511
  // return `Fâsit giren: umulan ${issue.expected}, alınan ${util.getParsedType(issue.input)}`;
8654
8512
  case "invalid_value":
8655
8513
  if (issue2.values.length === 1)
@@ -8699,13 +8557,13 @@ var error30 = () => {
8699
8557
  };
8700
8558
  function ota_default() {
8701
8559
  return {
8702
- localeError: error30()
8560
+ localeError: error29()
8703
8561
  };
8704
8562
  }
8705
8563
 
8706
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/ps.js
8564
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/ps.js
8707
8565
  init_react_import();
8708
- var error31 = () => {
8566
+ var error30 = () => {
8709
8567
  const Sizable = {
8710
8568
  string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
8711
8569
  file: { unit: "\u0628\u0627\u06CC\u067C\u0633", verb: "\u0648\u0644\u0631\u064A" },
@@ -8716,7 +8574,7 @@ var error31 = () => {
8716
8574
  var _a17;
8717
8575
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
8718
8576
  }
8719
- const parsedType8 = (data) => {
8577
+ const parsedType7 = (data) => {
8720
8578
  const t = typeof data;
8721
8579
  switch (t) {
8722
8580
  case "number": {
@@ -8770,7 +8628,7 @@ var error31 = () => {
8770
8628
  var _a17, _b, _c, _d;
8771
8629
  switch (issue2.code) {
8772
8630
  case "invalid_type":
8773
- return `\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${issue2.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${parsedType8(issue2.input)} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`;
8631
+ return `\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${issue2.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${parsedType7(issue2.input)} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`;
8774
8632
  case "invalid_value":
8775
8633
  if (issue2.values.length === 1) {
8776
8634
  return `\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${stringifyPrimitive(issue2.values[0])} \u0648\u0627\u06CC`;
@@ -8825,13 +8683,13 @@ var error31 = () => {
8825
8683
  };
8826
8684
  function ps_default() {
8827
8685
  return {
8828
- localeError: error31()
8686
+ localeError: error30()
8829
8687
  };
8830
8688
  }
8831
8689
 
8832
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/pl.js
8690
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/pl.js
8833
8691
  init_react_import();
8834
- var error32 = () => {
8692
+ var error31 = () => {
8835
8693
  const Sizable = {
8836
8694
  string: { unit: "znak\xF3w", verb: "mie\u0107" },
8837
8695
  file: { unit: "bajt\xF3w", verb: "mie\u0107" },
@@ -8842,7 +8700,7 @@ var error32 = () => {
8842
8700
  var _a17;
8843
8701
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
8844
8702
  }
8845
- const parsedType8 = (data) => {
8703
+ const parsedType7 = (data) => {
8846
8704
  const t = typeof data;
8847
8705
  switch (t) {
8848
8706
  case "number": {
@@ -8896,7 +8754,7 @@ var error32 = () => {
8896
8754
  var _a17, _b, _c, _d, _e, _f, _g;
8897
8755
  switch (issue2.code) {
8898
8756
  case "invalid_type":
8899
- return `Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${issue2.expected}, otrzymano ${parsedType8(issue2.input)}`;
8757
+ return `Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${issue2.expected}, otrzymano ${parsedType7(issue2.input)}`;
8900
8758
  case "invalid_value":
8901
8759
  if (issue2.values.length === 1)
8902
8760
  return `Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${stringifyPrimitive(issue2.values[0])}`;
@@ -8946,13 +8804,13 @@ var error32 = () => {
8946
8804
  };
8947
8805
  function pl_default() {
8948
8806
  return {
8949
- localeError: error32()
8807
+ localeError: error31()
8950
8808
  };
8951
8809
  }
8952
8810
 
8953
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/pt.js
8811
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/pt.js
8954
8812
  init_react_import();
8955
- var error33 = () => {
8813
+ var error32 = () => {
8956
8814
  const Sizable = {
8957
8815
  string: { unit: "caracteres", verb: "ter" },
8958
8816
  file: { unit: "bytes", verb: "ter" },
@@ -8963,7 +8821,7 @@ var error33 = () => {
8963
8821
  var _a17;
8964
8822
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
8965
8823
  }
8966
- const parsedType8 = (data) => {
8824
+ const parsedType7 = (data) => {
8967
8825
  const t = typeof data;
8968
8826
  switch (t) {
8969
8827
  case "number": {
@@ -9017,7 +8875,7 @@ var error33 = () => {
9017
8875
  var _a17, _b, _c, _d;
9018
8876
  switch (issue2.code) {
9019
8877
  case "invalid_type":
9020
- return `Tipo inv\xE1lido: esperado ${issue2.expected}, recebido ${parsedType8(issue2.input)}`;
8878
+ return `Tipo inv\xE1lido: esperado ${issue2.expected}, recebido ${parsedType7(issue2.input)}`;
9021
8879
  case "invalid_value":
9022
8880
  if (issue2.values.length === 1)
9023
8881
  return `Entrada inv\xE1lida: esperado ${stringifyPrimitive(issue2.values[0])}`;
@@ -9066,11 +8924,11 @@ var error33 = () => {
9066
8924
  };
9067
8925
  function pt_default() {
9068
8926
  return {
9069
- localeError: error33()
8927
+ localeError: error32()
9070
8928
  };
9071
8929
  }
9072
8930
 
9073
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/ru.js
8931
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/ru.js
9074
8932
  init_react_import();
9075
8933
  function getRussianPlural(count, one, few, many) {
9076
8934
  const absCount = Math.abs(count);
@@ -9087,7 +8945,7 @@ function getRussianPlural(count, one, few, many) {
9087
8945
  }
9088
8946
  return many;
9089
8947
  }
9090
- var error34 = () => {
8948
+ var error33 = () => {
9091
8949
  const Sizable = {
9092
8950
  string: {
9093
8951
  unit: {
@@ -9126,7 +8984,7 @@ var error34 = () => {
9126
8984
  var _a17;
9127
8985
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
9128
8986
  }
9129
- const parsedType8 = (data) => {
8987
+ const parsedType7 = (data) => {
9130
8988
  const t = typeof data;
9131
8989
  switch (t) {
9132
8990
  case "number": {
@@ -9180,7 +9038,7 @@ var error34 = () => {
9180
9038
  var _a17, _b, _c;
9181
9039
  switch (issue2.code) {
9182
9040
  case "invalid_type":
9183
- return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${issue2.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${parsedType8(issue2.input)}`;
9041
+ return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${issue2.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${parsedType7(issue2.input)}`;
9184
9042
  case "invalid_value":
9185
9043
  if (issue2.values.length === 1)
9186
9044
  return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${stringifyPrimitive(issue2.values[0])}`;
@@ -9234,13 +9092,13 @@ var error34 = () => {
9234
9092
  };
9235
9093
  function ru_default() {
9236
9094
  return {
9237
- localeError: error34()
9095
+ localeError: error33()
9238
9096
  };
9239
9097
  }
9240
9098
 
9241
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/sl.js
9099
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/sl.js
9242
9100
  init_react_import();
9243
- var error35 = () => {
9101
+ var error34 = () => {
9244
9102
  const Sizable = {
9245
9103
  string: { unit: "znakov", verb: "imeti" },
9246
9104
  file: { unit: "bajtov", verb: "imeti" },
@@ -9251,7 +9109,7 @@ var error35 = () => {
9251
9109
  var _a17;
9252
9110
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
9253
9111
  }
9254
- const parsedType8 = (data) => {
9112
+ const parsedType7 = (data) => {
9255
9113
  const t = typeof data;
9256
9114
  switch (t) {
9257
9115
  case "number": {
@@ -9305,7 +9163,7 @@ var error35 = () => {
9305
9163
  var _a17, _b, _c, _d;
9306
9164
  switch (issue2.code) {
9307
9165
  case "invalid_type":
9308
- return `Neveljaven vnos: pri\u010Dakovano ${issue2.expected}, prejeto ${parsedType8(issue2.input)}`;
9166
+ return `Neveljaven vnos: pri\u010Dakovano ${issue2.expected}, prejeto ${parsedType7(issue2.input)}`;
9309
9167
  case "invalid_value":
9310
9168
  if (issue2.values.length === 1)
9311
9169
  return `Neveljaven vnos: pri\u010Dakovano ${stringifyPrimitive(issue2.values[0])}`;
@@ -9355,13 +9213,13 @@ var error35 = () => {
9355
9213
  };
9356
9214
  function sl_default() {
9357
9215
  return {
9358
- localeError: error35()
9216
+ localeError: error34()
9359
9217
  };
9360
9218
  }
9361
9219
 
9362
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/sv.js
9220
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/sv.js
9363
9221
  init_react_import();
9364
- var error36 = () => {
9222
+ var error35 = () => {
9365
9223
  const Sizable = {
9366
9224
  string: { unit: "tecken", verb: "att ha" },
9367
9225
  file: { unit: "bytes", verb: "att ha" },
@@ -9372,7 +9230,7 @@ var error36 = () => {
9372
9230
  var _a17;
9373
9231
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
9374
9232
  }
9375
- const parsedType8 = (data) => {
9233
+ const parsedType7 = (data) => {
9376
9234
  const t = typeof data;
9377
9235
  switch (t) {
9378
9236
  case "number": {
@@ -9426,7 +9284,7 @@ var error36 = () => {
9426
9284
  var _a17, _b, _c, _d, _e, _f, _g, _h;
9427
9285
  switch (issue2.code) {
9428
9286
  case "invalid_type":
9429
- return `Ogiltig inmatning: f\xF6rv\xE4ntat ${issue2.expected}, fick ${parsedType8(issue2.input)}`;
9287
+ return `Ogiltig inmatning: f\xF6rv\xE4ntat ${issue2.expected}, fick ${parsedType7(issue2.input)}`;
9430
9288
  case "invalid_value":
9431
9289
  if (issue2.values.length === 1)
9432
9290
  return `Ogiltig inmatning: f\xF6rv\xE4ntat ${stringifyPrimitive(issue2.values[0])}`;
@@ -9477,13 +9335,13 @@ var error36 = () => {
9477
9335
  };
9478
9336
  function sv_default() {
9479
9337
  return {
9480
- localeError: error36()
9338
+ localeError: error35()
9481
9339
  };
9482
9340
  }
9483
9341
 
9484
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/ta.js
9342
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/ta.js
9485
9343
  init_react_import();
9486
- var error37 = () => {
9344
+ var error36 = () => {
9487
9345
  const Sizable = {
9488
9346
  string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
9489
9347
  file: { unit: "\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
@@ -9494,7 +9352,7 @@ var error37 = () => {
9494
9352
  var _a17;
9495
9353
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
9496
9354
  }
9497
- const parsedType8 = (data) => {
9355
+ const parsedType7 = (data) => {
9498
9356
  const t = typeof data;
9499
9357
  switch (t) {
9500
9358
  case "number": {
@@ -9548,7 +9406,7 @@ var error37 = () => {
9548
9406
  var _a17, _b, _c, _d;
9549
9407
  switch (issue2.code) {
9550
9408
  case "invalid_type":
9551
- return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${issue2.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${parsedType8(issue2.input)}`;
9409
+ return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${issue2.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${parsedType7(issue2.input)}`;
9552
9410
  case "invalid_value":
9553
9411
  if (issue2.values.length === 1)
9554
9412
  return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${stringifyPrimitive(issue2.values[0])}`;
@@ -9598,13 +9456,13 @@ var error37 = () => {
9598
9456
  };
9599
9457
  function ta_default() {
9600
9458
  return {
9601
- localeError: error37()
9459
+ localeError: error36()
9602
9460
  };
9603
9461
  }
9604
9462
 
9605
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/th.js
9463
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/th.js
9606
9464
  init_react_import();
9607
- var error38 = () => {
9465
+ var error37 = () => {
9608
9466
  const Sizable = {
9609
9467
  string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
9610
9468
  file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
@@ -9615,7 +9473,7 @@ var error38 = () => {
9615
9473
  var _a17;
9616
9474
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
9617
9475
  }
9618
- const parsedType8 = (data) => {
9476
+ const parsedType7 = (data) => {
9619
9477
  const t = typeof data;
9620
9478
  switch (t) {
9621
9479
  case "number": {
@@ -9669,7 +9527,7 @@ var error38 = () => {
9669
9527
  var _a17, _b, _c, _d;
9670
9528
  switch (issue2.code) {
9671
9529
  case "invalid_type":
9672
- return `\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${issue2.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${parsedType8(issue2.input)}`;
9530
+ return `\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${issue2.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${parsedType7(issue2.input)}`;
9673
9531
  case "invalid_value":
9674
9532
  if (issue2.values.length === 1)
9675
9533
  return `\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${stringifyPrimitive(issue2.values[0])}`;
@@ -9719,13 +9577,13 @@ var error38 = () => {
9719
9577
  };
9720
9578
  function th_default() {
9721
9579
  return {
9722
- localeError: error38()
9580
+ localeError: error37()
9723
9581
  };
9724
9582
  }
9725
9583
 
9726
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/tr.js
9584
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/tr.js
9727
9585
  init_react_import();
9728
- var parsedType7 = (data) => {
9586
+ var parsedType6 = (data) => {
9729
9587
  const t = typeof data;
9730
9588
  switch (t) {
9731
9589
  case "number": {
@@ -9745,7 +9603,7 @@ var parsedType7 = (data) => {
9745
9603
  }
9746
9604
  return t;
9747
9605
  };
9748
- var error39 = () => {
9606
+ var error38 = () => {
9749
9607
  const Sizable = {
9750
9608
  string: { unit: "karakter", verb: "olmal\u0131" },
9751
9609
  file: { unit: "bayt", verb: "olmal\u0131" },
@@ -9790,7 +9648,7 @@ var error39 = () => {
9790
9648
  var _a17, _b, _c, _d;
9791
9649
  switch (issue2.code) {
9792
9650
  case "invalid_type":
9793
- return `Ge\xE7ersiz de\u011Fer: beklenen ${issue2.expected}, al\u0131nan ${parsedType7(issue2.input)}`;
9651
+ return `Ge\xE7ersiz de\u011Fer: beklenen ${issue2.expected}, al\u0131nan ${parsedType6(issue2.input)}`;
9794
9652
  case "invalid_value":
9795
9653
  if (issue2.values.length === 1)
9796
9654
  return `Ge\xE7ersiz de\u011Fer: beklenen ${stringifyPrimitive(issue2.values[0])}`;
@@ -9838,16 +9696,16 @@ var error39 = () => {
9838
9696
  };
9839
9697
  function tr_default() {
9840
9698
  return {
9841
- localeError: error39()
9699
+ localeError: error38()
9842
9700
  };
9843
9701
  }
9844
9702
 
9845
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/ua.js
9703
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/ua.js
9846
9704
  init_react_import();
9847
9705
 
9848
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/uk.js
9706
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/uk.js
9849
9707
  init_react_import();
9850
- var error40 = () => {
9708
+ var error39 = () => {
9851
9709
  const Sizable = {
9852
9710
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
9853
9711
  file: { unit: "\u0431\u0430\u0439\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
@@ -9858,7 +9716,7 @@ var error40 = () => {
9858
9716
  var _a17;
9859
9717
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
9860
9718
  }
9861
- const parsedType8 = (data) => {
9719
+ const parsedType7 = (data) => {
9862
9720
  const t = typeof data;
9863
9721
  switch (t) {
9864
9722
  case "number": {
@@ -9912,7 +9770,7 @@ var error40 = () => {
9912
9770
  var _a17, _b, _c, _d;
9913
9771
  switch (issue2.code) {
9914
9772
  case "invalid_type":
9915
- return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${issue2.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${parsedType8(issue2.input)}`;
9773
+ return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${issue2.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${parsedType7(issue2.input)}`;
9916
9774
  // return `Неправильні вхідні дані: очікується ${issue.expected}, отримано ${util.getParsedType(issue.input)}`;
9917
9775
  case "invalid_value":
9918
9776
  if (issue2.values.length === 1)
@@ -9962,18 +9820,18 @@ var error40 = () => {
9962
9820
  };
9963
9821
  function uk_default() {
9964
9822
  return {
9965
- localeError: error40()
9823
+ localeError: error39()
9966
9824
  };
9967
9825
  }
9968
9826
 
9969
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/ua.js
9827
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/ua.js
9970
9828
  function ua_default() {
9971
9829
  return uk_default();
9972
9830
  }
9973
9831
 
9974
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/ur.js
9832
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/ur.js
9975
9833
  init_react_import();
9976
- var error41 = () => {
9834
+ var error40 = () => {
9977
9835
  const Sizable = {
9978
9836
  string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
9979
9837
  file: { unit: "\u0628\u0627\u0626\u0679\u0633", verb: "\u06C1\u0648\u0646\u0627" },
@@ -9984,7 +9842,7 @@ var error41 = () => {
9984
9842
  var _a17;
9985
9843
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
9986
9844
  }
9987
- const parsedType8 = (data) => {
9845
+ const parsedType7 = (data) => {
9988
9846
  const t = typeof data;
9989
9847
  switch (t) {
9990
9848
  case "number": {
@@ -10038,7 +9896,7 @@ var error41 = () => {
10038
9896
  var _a17, _b, _c, _d;
10039
9897
  switch (issue2.code) {
10040
9898
  case "invalid_type":
10041
- return `\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${issue2.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${parsedType8(issue2.input)} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;
9899
+ return `\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${issue2.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${parsedType7(issue2.input)} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;
10042
9900
  case "invalid_value":
10043
9901
  if (issue2.values.length === 1)
10044
9902
  return `\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${stringifyPrimitive(issue2.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;
@@ -10088,13 +9946,13 @@ var error41 = () => {
10088
9946
  };
10089
9947
  function ur_default() {
10090
9948
  return {
10091
- localeError: error41()
9949
+ localeError: error40()
10092
9950
  };
10093
9951
  }
10094
9952
 
10095
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/vi.js
9953
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/vi.js
10096
9954
  init_react_import();
10097
- var error42 = () => {
9955
+ var error41 = () => {
10098
9956
  const Sizable = {
10099
9957
  string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
10100
9958
  file: { unit: "byte", verb: "c\xF3" },
@@ -10105,7 +9963,7 @@ var error42 = () => {
10105
9963
  var _a17;
10106
9964
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
10107
9965
  }
10108
- const parsedType8 = (data) => {
9966
+ const parsedType7 = (data) => {
10109
9967
  const t = typeof data;
10110
9968
  switch (t) {
10111
9969
  case "number": {
@@ -10159,7 +10017,7 @@ var error42 = () => {
10159
10017
  var _a17, _b, _c, _d;
10160
10018
  switch (issue2.code) {
10161
10019
  case "invalid_type":
10162
- return `\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${issue2.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${parsedType8(issue2.input)}`;
10020
+ return `\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${issue2.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${parsedType7(issue2.input)}`;
10163
10021
  case "invalid_value":
10164
10022
  if (issue2.values.length === 1)
10165
10023
  return `\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${stringifyPrimitive(issue2.values[0])}`;
@@ -10208,13 +10066,13 @@ var error42 = () => {
10208
10066
  };
10209
10067
  function vi_default() {
10210
10068
  return {
10211
- localeError: error42()
10069
+ localeError: error41()
10212
10070
  };
10213
10071
  }
10214
10072
 
10215
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/zh-CN.js
10073
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/zh-CN.js
10216
10074
  init_react_import();
10217
- var error43 = () => {
10075
+ var error42 = () => {
10218
10076
  const Sizable = {
10219
10077
  string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
10220
10078
  file: { unit: "\u5B57\u8282", verb: "\u5305\u542B" },
@@ -10225,7 +10083,7 @@ var error43 = () => {
10225
10083
  var _a17;
10226
10084
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
10227
10085
  }
10228
- const parsedType8 = (data) => {
10086
+ const parsedType7 = (data) => {
10229
10087
  const t = typeof data;
10230
10088
  switch (t) {
10231
10089
  case "number": {
@@ -10279,7 +10137,7 @@ var error43 = () => {
10279
10137
  var _a17, _b, _c, _d;
10280
10138
  switch (issue2.code) {
10281
10139
  case "invalid_type":
10282
- return `\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${issue2.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${parsedType8(issue2.input)}`;
10140
+ return `\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${issue2.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${parsedType7(issue2.input)}`;
10283
10141
  case "invalid_value":
10284
10142
  if (issue2.values.length === 1)
10285
10143
  return `\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${stringifyPrimitive(issue2.values[0])}`;
@@ -10328,13 +10186,13 @@ var error43 = () => {
10328
10186
  };
10329
10187
  function zh_CN_default() {
10330
10188
  return {
10331
- localeError: error43()
10189
+ localeError: error42()
10332
10190
  };
10333
10191
  }
10334
10192
 
10335
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/zh-TW.js
10193
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/zh-TW.js
10336
10194
  init_react_import();
10337
- var error44 = () => {
10195
+ var error43 = () => {
10338
10196
  const Sizable = {
10339
10197
  string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
10340
10198
  file: { unit: "\u4F4D\u5143\u7D44", verb: "\u64C1\u6709" },
@@ -10345,7 +10203,7 @@ var error44 = () => {
10345
10203
  var _a17;
10346
10204
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
10347
10205
  }
10348
- const parsedType8 = (data) => {
10206
+ const parsedType7 = (data) => {
10349
10207
  const t = typeof data;
10350
10208
  switch (t) {
10351
10209
  case "number": {
@@ -10399,7 +10257,7 @@ var error44 = () => {
10399
10257
  var _a17, _b, _c, _d;
10400
10258
  switch (issue2.code) {
10401
10259
  case "invalid_type":
10402
- return `\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${issue2.expected}\uFF0C\u4F46\u6536\u5230 ${parsedType8(issue2.input)}`;
10260
+ return `\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${issue2.expected}\uFF0C\u4F46\u6536\u5230 ${parsedType7(issue2.input)}`;
10403
10261
  case "invalid_value":
10404
10262
  if (issue2.values.length === 1)
10405
10263
  return `\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${stringifyPrimitive(issue2.values[0])}`;
@@ -10449,13 +10307,13 @@ var error44 = () => {
10449
10307
  };
10450
10308
  function zh_TW_default() {
10451
10309
  return {
10452
- localeError: error44()
10310
+ localeError: error43()
10453
10311
  };
10454
10312
  }
10455
10313
 
10456
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/locales/yo.js
10314
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/locales/yo.js
10457
10315
  init_react_import();
10458
- var error45 = () => {
10316
+ var error44 = () => {
10459
10317
  const Sizable = {
10460
10318
  string: { unit: "\xE0mi", verb: "n\xED" },
10461
10319
  file: { unit: "bytes", verb: "n\xED" },
@@ -10466,7 +10324,7 @@ var error45 = () => {
10466
10324
  var _a17;
10467
10325
  return (_a17 = Sizable[origin]) != null ? _a17 : null;
10468
10326
  }
10469
- const parsedType8 = (data) => {
10327
+ const parsedType7 = (data) => {
10470
10328
  const t = typeof data;
10471
10329
  switch (t) {
10472
10330
  case "number": {
@@ -10520,7 +10378,7 @@ var error45 = () => {
10520
10378
  var _a17, _b;
10521
10379
  switch (issue2.code) {
10522
10380
  case "invalid_type":
10523
- return `\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${issue2.expected}, \xE0m\u1ECD\u0300 a r\xED ${parsedType8(issue2.input)}`;
10381
+ return `\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${issue2.expected}, \xE0m\u1ECD\u0300 a r\xED ${parsedType7(issue2.input)}`;
10524
10382
  case "invalid_value":
10525
10383
  if (issue2.values.length === 1)
10526
10384
  return `\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${stringifyPrimitive(issue2.values[0])}`;
@@ -10568,11 +10426,11 @@ var error45 = () => {
10568
10426
  };
10569
10427
  function yo_default() {
10570
10428
  return {
10571
- localeError: error45()
10429
+ localeError: error44()
10572
10430
  };
10573
10431
  }
10574
10432
 
10575
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/registries.js
10433
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/registries.js
10576
10434
  init_react_import();
10577
10435
  var $output = Symbol("ZodOutput");
10578
10436
  var $input = Symbol("ZodInput");
@@ -10625,7 +10483,7 @@ function registry() {
10625
10483
  }
10626
10484
  var globalRegistry = /* @__PURE__ */ registry();
10627
10485
 
10628
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/api.js
10486
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/api.js
10629
10487
  init_react_import();
10630
10488
  function _string(Class2, params) {
10631
10489
  return new Class2(__spreadValues({
@@ -11437,7 +11295,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
11437
11295
  return inst;
11438
11296
  }
11439
11297
 
11440
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/to-json-schema.js
11298
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/to-json-schema.js
11441
11299
  init_react_import();
11442
11300
  var JSONSchemaGenerator = class {
11443
11301
  constructor(params) {
@@ -12251,17 +12109,17 @@ function isTransforming(_schema, _ctx) {
12251
12109
  throw new Error(`Unknown schema type: ${def.type}`);
12252
12110
  }
12253
12111
 
12254
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/json-schema.js
12112
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/core/json-schema.js
12255
12113
  var json_schema_exports = {};
12256
12114
  init_react_import();
12257
12115
 
12258
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/schemas.js
12116
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/schemas.js
12259
12117
  init_react_import();
12260
12118
 
12261
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/checks.js
12119
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/checks.js
12262
12120
  init_react_import();
12263
12121
 
12264
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/iso.js
12122
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/iso.js
12265
12123
  var iso_exports = {};
12266
12124
  __export(iso_exports, {
12267
12125
  ZodISODate: () => ZodISODate,
@@ -12303,10 +12161,10 @@ function duration2(params) {
12303
12161
  return _isoDuration(ZodISODuration, params);
12304
12162
  }
12305
12163
 
12306
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/parse.js
12164
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/parse.js
12307
12165
  init_react_import();
12308
12166
 
12309
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/errors.js
12167
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/errors.js
12310
12168
  init_react_import();
12311
12169
  var initializer2 = (inst, issues) => {
12312
12170
  $ZodError.init(inst, issues);
@@ -12347,7 +12205,7 @@ var ZodRealError = $constructor("ZodError", initializer2, {
12347
12205
  Parent: Error
12348
12206
  });
12349
12207
 
12350
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/parse.js
12208
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/parse.js
12351
12209
  var parse2 = /* @__PURE__ */ _parse(ZodRealError);
12352
12210
  var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
12353
12211
  var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -12361,7 +12219,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
12361
12219
  var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
12362
12220
  var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
12363
12221
 
12364
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/schemas.js
12222
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/schemas.js
12365
12223
  var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
12366
12224
  $ZodType.init(inst, def);
12367
12225
  inst.def = def;
@@ -12369,12 +12227,15 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
12369
12227
  Object.defineProperty(inst, "_def", { value: def });
12370
12228
  inst.check = (...checks) => {
12371
12229
  var _a17;
12372
- return inst.clone(util_exports.mergeDefs(def, {
12373
- checks: [
12374
- ...(_a17 = def.checks) != null ? _a17 : [],
12375
- ...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
12376
- ]
12377
- }));
12230
+ return inst.clone(
12231
+ __spreadProps(__spreadValues({}, def), {
12232
+ checks: [
12233
+ ...(_a17 = def.checks) != null ? _a17 : [],
12234
+ ...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
12235
+ ]
12236
+ })
12237
+ // { parent: true }
12238
+ );
12378
12239
  };
12379
12240
  inst.clone = (def2, params) => clone(inst, def2, params);
12380
12241
  inst.brand = () => inst;
@@ -12849,9 +12710,7 @@ function keyof(schema) {
12849
12710
  var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
12850
12711
  $ZodObjectJIT.init(inst, def);
12851
12712
  ZodType.init(inst, def);
12852
- util_exports.defineLazy(inst, "shape", () => {
12853
- return def.shape;
12854
- });
12713
+ util_exports.defineLazy(inst, "shape", () => def.shape);
12855
12714
  inst.keyof = () => _enum2(Object.keys(inst._zod.def.shape));
12856
12715
  inst.catchall = (catchall) => inst.clone(__spreadProps(__spreadValues({}, inst._zod.def), { catchall }));
12857
12716
  inst.passthrough = () => inst.clone(__spreadProps(__spreadValues({}, inst._zod.def), { catchall: unknown() }));
@@ -12873,21 +12732,30 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
12873
12732
  function object(shape, params) {
12874
12733
  const def = __spreadValues({
12875
12734
  type: "object",
12876
- shape: shape != null ? shape : {}
12735
+ get shape() {
12736
+ util_exports.assignProp(this, "shape", shape ? util_exports.objectClone(shape) : {});
12737
+ return this.shape;
12738
+ }
12877
12739
  }, util_exports.normalizeParams(params));
12878
12740
  return new ZodObject(def);
12879
12741
  }
12880
12742
  function strictObject(shape, params) {
12881
12743
  return new ZodObject(__spreadValues({
12882
12744
  type: "object",
12883
- shape,
12745
+ get shape() {
12746
+ util_exports.assignProp(this, "shape", util_exports.objectClone(shape));
12747
+ return this.shape;
12748
+ },
12884
12749
  catchall: never()
12885
12750
  }, util_exports.normalizeParams(params)));
12886
12751
  }
12887
12752
  function looseObject(shape, params) {
12888
12753
  return new ZodObject(__spreadValues({
12889
12754
  type: "object",
12890
- shape,
12755
+ get shape() {
12756
+ util_exports.assignProp(this, "shape", util_exports.objectClone(shape));
12757
+ return this.shape;
12758
+ },
12891
12759
  catchall: unknown()
12892
12760
  }, util_exports.normalizeParams(params)));
12893
12761
  }
@@ -13331,7 +13199,7 @@ function preprocess(fn, schema) {
13331
13199
  return pipe(transform(fn), schema);
13332
13200
  }
13333
13201
 
13334
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/compat.js
13202
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/compat.js
13335
13203
  init_react_import();
13336
13204
  var ZodIssueCode = {
13337
13205
  invalid_type: "invalid_type",
@@ -13358,7 +13226,7 @@ var ZodFirstPartyTypeKind;
13358
13226
  /* @__PURE__ */ (function(ZodFirstPartyTypeKind3) {
13359
13227
  })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
13360
13228
 
13361
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/coerce.js
13229
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/coerce.js
13362
13230
  var coerce_exports = {};
13363
13231
  __export(coerce_exports, {
13364
13232
  bigint: () => bigint3,
@@ -13384,25 +13252,25 @@ function date4(params) {
13384
13252
  return _coercedDate(ZodDate, params);
13385
13253
  }
13386
13254
 
13387
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/external.js
13255
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v4/classic/external.js
13388
13256
  config(en_default());
13389
13257
 
13390
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v3/index.js
13258
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v3/index.js
13391
13259
  init_react_import();
13392
13260
 
13393
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v3/external.js
13261
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v3/external.js
13394
13262
  init_react_import();
13395
13263
 
13396
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v3/errors.js
13264
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v3/errors.js
13397
13265
  init_react_import();
13398
13266
 
13399
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v3/locales/en.js
13267
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v3/locales/en.js
13400
13268
  init_react_import();
13401
13269
 
13402
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v3/ZodError.js
13270
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v3/ZodError.js
13403
13271
  init_react_import();
13404
13272
 
13405
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v3/helpers/util.js
13273
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v3/helpers/util.js
13406
13274
  init_react_import();
13407
13275
  var util;
13408
13276
  (function(util2) {
@@ -13533,7 +13401,7 @@ var getParsedType2 = (data) => {
13533
13401
  }
13534
13402
  };
13535
13403
 
13536
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v3/ZodError.js
13404
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v3/ZodError.js
13537
13405
  var ZodIssueCode2 = util.arrayToEnum([
13538
13406
  "invalid_type",
13539
13407
  "invalid_literal",
@@ -13579,8 +13447,8 @@ var ZodError2 = class _ZodError extends Error {
13579
13447
  return issue2.message;
13580
13448
  };
13581
13449
  const fieldErrors = { _errors: [] };
13582
- const processError = (error46) => {
13583
- for (const issue2 of error46.issues) {
13450
+ const processError = (error45) => {
13451
+ for (const issue2 of error45.issues) {
13584
13452
  if (issue2.code === "invalid_union") {
13585
13453
  issue2.unionErrors.map(processError);
13586
13454
  } else if (issue2.code === "invalid_return_type") {
@@ -13625,7 +13493,7 @@ var ZodError2 = class _ZodError extends Error {
13625
13493
  return this.issues.length === 0;
13626
13494
  }
13627
13495
  flatten(mapper = (issue2) => issue2.message) {
13628
- const fieldErrors = /* @__PURE__ */ Object.create(null);
13496
+ const fieldErrors = {};
13629
13497
  const formErrors = [];
13630
13498
  for (const sub of this.issues) {
13631
13499
  if (sub.path.length > 0) {
@@ -13643,11 +13511,11 @@ var ZodError2 = class _ZodError extends Error {
13643
13511
  }
13644
13512
  };
13645
13513
  ZodError2.create = (issues) => {
13646
- const error46 = new ZodError2(issues);
13647
- return error46;
13514
+ const error45 = new ZodError2(issues);
13515
+ return error45;
13648
13516
  };
13649
13517
 
13650
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v3/locales/en.js
13518
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v3/locales/en.js
13651
13519
  var errorMap = (issue2, _ctx) => {
13652
13520
  let message;
13653
13521
  switch (issue2.code) {
@@ -13750,13 +13618,13 @@ var errorMap = (issue2, _ctx) => {
13750
13618
  };
13751
13619
  var en_default2 = errorMap;
13752
13620
 
13753
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v3/errors.js
13621
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v3/errors.js
13754
13622
  var overrideErrorMap = en_default2;
13755
13623
  function getErrorMap2() {
13756
13624
  return overrideErrorMap;
13757
13625
  }
13758
13626
 
13759
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v3/helpers/parseUtil.js
13627
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v3/helpers/parseUtil.js
13760
13628
  init_react_import();
13761
13629
  var makeIssue = (params) => {
13762
13630
  const { data, path, errorMaps, issueData } = params;
@@ -13865,13 +13733,13 @@ var isDirty = (x) => x.status === "dirty";
13865
13733
  var isValid = (x) => x.status === "valid";
13866
13734
  var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
13867
13735
 
13868
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v3/helpers/typeAliases.js
13736
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v3/helpers/typeAliases.js
13869
13737
  init_react_import();
13870
13738
 
13871
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v3/types.js
13739
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v3/types.js
13872
13740
  init_react_import();
13873
13741
 
13874
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v3/helpers/errorUtil.js
13742
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v3/helpers/errorUtil.js
13875
13743
  init_react_import();
13876
13744
  var errorUtil;
13877
13745
  (function(errorUtil2) {
@@ -13879,7 +13747,7 @@ var errorUtil;
13879
13747
  errorUtil2.toString = (message) => typeof message === "string" ? message : message == null ? void 0 : message.message;
13880
13748
  })(errorUtil || (errorUtil = {}));
13881
13749
 
13882
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v3/types.js
13750
+ // ../../node_modules/.pnpm/zod@4.1.9/node_modules/zod/v3/types.js
13883
13751
  var ParseInputLazyPath = class {
13884
13752
  constructor(parent, value, path, key) {
13885
13753
  this._cachedPath = [];
@@ -13911,8 +13779,8 @@ var handleResult = (ctx2, result) => {
13911
13779
  get error() {
13912
13780
  if (this._error)
13913
13781
  return this._error;
13914
- const error46 = new ZodError2(ctx2.common.issues);
13915
- this._error = error46;
13782
+ const error45 = new ZodError2(ctx2.common.issues);
13783
+ this._error = error45;
13916
13784
  return this._error;
13917
13785
  }
13918
13786
  };
@@ -14310,8 +14178,8 @@ var ZodString2 = class _ZodString2 extends ZodType2 {
14310
14178
  if (this._def.coerce) {
14311
14179
  input.data = String(input.data);
14312
14180
  }
14313
- const parsedType8 = this._getType(input);
14314
- if (parsedType8 !== ZodParsedType.string) {
14181
+ const parsedType7 = this._getType(input);
14182
+ if (parsedType7 !== ZodParsedType.string) {
14315
14183
  const ctx3 = this._getOrReturnCtx(input);
14316
14184
  addIssueToContext(ctx3, {
14317
14185
  code: ZodIssueCode2.invalid_type,
@@ -14856,8 +14724,8 @@ var ZodNumber2 = class _ZodNumber extends ZodType2 {
14856
14724
  if (this._def.coerce) {
14857
14725
  input.data = Number(input.data);
14858
14726
  }
14859
- const parsedType8 = this._getType(input);
14860
- if (parsedType8 !== ZodParsedType.number) {
14727
+ const parsedType7 = this._getType(input);
14728
+ if (parsedType7 !== ZodParsedType.number) {
14861
14729
  const ctx3 = this._getOrReturnCtx(input);
14862
14730
  addIssueToContext(ctx3, {
14863
14731
  code: ZodIssueCode2.invalid_type,
@@ -15088,8 +14956,8 @@ var ZodBigInt2 = class _ZodBigInt extends ZodType2 {
15088
14956
  return this._getInvalidInput(input);
15089
14957
  }
15090
14958
  }
15091
- const parsedType8 = this._getType(input);
15092
- if (parsedType8 !== ZodParsedType.bigint) {
14959
+ const parsedType7 = this._getType(input);
14960
+ if (parsedType7 !== ZodParsedType.bigint) {
15093
14961
  return this._getInvalidInput(input);
15094
14962
  }
15095
14963
  let ctx2 = void 0;
@@ -15249,8 +15117,8 @@ var ZodBoolean2 = class extends ZodType2 {
15249
15117
  if (this._def.coerce) {
15250
15118
  input.data = Boolean(input.data);
15251
15119
  }
15252
- const parsedType8 = this._getType(input);
15253
- if (parsedType8 !== ZodParsedType.boolean) {
15120
+ const parsedType7 = this._getType(input);
15121
+ if (parsedType7 !== ZodParsedType.boolean) {
15254
15122
  const ctx2 = this._getOrReturnCtx(input);
15255
15123
  addIssueToContext(ctx2, {
15256
15124
  code: ZodIssueCode2.invalid_type,
@@ -15273,8 +15141,8 @@ var ZodDate2 = class _ZodDate extends ZodType2 {
15273
15141
  if (this._def.coerce) {
15274
15142
  input.data = new Date(input.data);
15275
15143
  }
15276
- const parsedType8 = this._getType(input);
15277
- if (parsedType8 !== ZodParsedType.date) {
15144
+ const parsedType7 = this._getType(input);
15145
+ if (parsedType7 !== ZodParsedType.date) {
15278
15146
  const ctx3 = this._getOrReturnCtx(input);
15279
15147
  addIssueToContext(ctx3, {
15280
15148
  code: ZodIssueCode2.invalid_type,
@@ -15377,8 +15245,8 @@ ZodDate2.create = (params) => {
15377
15245
  };
15378
15246
  var ZodSymbol2 = class extends ZodType2 {
15379
15247
  _parse(input) {
15380
- const parsedType8 = this._getType(input);
15381
- if (parsedType8 !== ZodParsedType.symbol) {
15248
+ const parsedType7 = this._getType(input);
15249
+ if (parsedType7 !== ZodParsedType.symbol) {
15382
15250
  const ctx2 = this._getOrReturnCtx(input);
15383
15251
  addIssueToContext(ctx2, {
15384
15252
  code: ZodIssueCode2.invalid_type,
@@ -15397,8 +15265,8 @@ ZodSymbol2.create = (params) => {
15397
15265
  };
15398
15266
  var ZodUndefined2 = class extends ZodType2 {
15399
15267
  _parse(input) {
15400
- const parsedType8 = this._getType(input);
15401
- if (parsedType8 !== ZodParsedType.undefined) {
15268
+ const parsedType7 = this._getType(input);
15269
+ if (parsedType7 !== ZodParsedType.undefined) {
15402
15270
  const ctx2 = this._getOrReturnCtx(input);
15403
15271
  addIssueToContext(ctx2, {
15404
15272
  code: ZodIssueCode2.invalid_type,
@@ -15417,8 +15285,8 @@ ZodUndefined2.create = (params) => {
15417
15285
  };
15418
15286
  var ZodNull2 = class extends ZodType2 {
15419
15287
  _parse(input) {
15420
- const parsedType8 = this._getType(input);
15421
- if (parsedType8 !== ZodParsedType.null) {
15288
+ const parsedType7 = this._getType(input);
15289
+ if (parsedType7 !== ZodParsedType.null) {
15422
15290
  const ctx2 = this._getOrReturnCtx(input);
15423
15291
  addIssueToContext(ctx2, {
15424
15292
  code: ZodIssueCode2.invalid_type,
@@ -15481,8 +15349,8 @@ ZodNever2.create = (params) => {
15481
15349
  };
15482
15350
  var ZodVoid2 = class extends ZodType2 {
15483
15351
  _parse(input) {
15484
- const parsedType8 = this._getType(input);
15485
- if (parsedType8 !== ZodParsedType.undefined) {
15352
+ const parsedType7 = this._getType(input);
15353
+ if (parsedType7 !== ZodParsedType.undefined) {
15486
15354
  const ctx2 = this._getOrReturnCtx(input);
15487
15355
  addIssueToContext(ctx2, {
15488
15356
  code: ZodIssueCode2.invalid_type,
@@ -15636,8 +15504,8 @@ var ZodObject2 = class _ZodObject extends ZodType2 {
15636
15504
  return this._cached;
15637
15505
  }
15638
15506
  _parse(input) {
15639
- const parsedType8 = this._getType(input);
15640
- if (parsedType8 !== ZodParsedType.object) {
15507
+ const parsedType7 = this._getType(input);
15508
+ if (parsedType7 !== ZodParsedType.object) {
15641
15509
  const ctx3 = this._getOrReturnCtx(input);
15642
15510
  addIssueToContext(ctx3, {
15643
15511
  code: ZodIssueCode2.invalid_type,
@@ -16500,25 +16368,25 @@ var ZodFunction2 = class _ZodFunction extends ZodType2 {
16500
16368
  });
16501
16369
  return INVALID;
16502
16370
  }
16503
- function makeArgsIssue(args, error46) {
16371
+ function makeArgsIssue(args, error45) {
16504
16372
  return makeIssue({
16505
16373
  data: args,
16506
16374
  path: ctx2.path,
16507
16375
  errorMaps: [ctx2.common.contextualErrorMap, ctx2.schemaErrorMap, getErrorMap2(), en_default2].filter((x) => !!x),
16508
16376
  issueData: {
16509
16377
  code: ZodIssueCode2.invalid_arguments,
16510
- argumentsError: error46
16378
+ argumentsError: error45
16511
16379
  }
16512
16380
  });
16513
16381
  }
16514
- function makeReturnsIssue(returns, error46) {
16382
+ function makeReturnsIssue(returns, error45) {
16515
16383
  return makeIssue({
16516
16384
  data: returns,
16517
16385
  path: ctx2.path,
16518
16386
  errorMaps: [ctx2.common.contextualErrorMap, ctx2.schemaErrorMap, getErrorMap2(), en_default2].filter((x) => !!x),
16519
16387
  issueData: {
16520
16388
  code: ZodIssueCode2.invalid_return_type,
16521
- returnTypeError: error46
16389
+ returnTypeError: error45
16522
16390
  }
16523
16391
  });
16524
16392
  }
@@ -16528,15 +16396,15 @@ var ZodFunction2 = class _ZodFunction extends ZodType2 {
16528
16396
  const me = this;
16529
16397
  return OK(function(...args) {
16530
16398
  return __async(this, null, function* () {
16531
- const error46 = new ZodError2([]);
16399
+ const error45 = new ZodError2([]);
16532
16400
  const parsedArgs = yield me._def.args.parseAsync(args, params).catch((e) => {
16533
- error46.addIssue(makeArgsIssue(args, e));
16534
- throw error46;
16401
+ error45.addIssue(makeArgsIssue(args, e));
16402
+ throw error45;
16535
16403
  });
16536
16404
  const result = yield Reflect.apply(fn, this, parsedArgs);
16537
16405
  const parsedReturns = yield me._def.returns._def.type.parseAsync(result, params).catch((e) => {
16538
- error46.addIssue(makeReturnsIssue(result, e));
16539
- throw error46;
16406
+ error45.addIssue(makeReturnsIssue(result, e));
16407
+ throw error45;
16540
16408
  });
16541
16409
  return parsedReturns;
16542
16410
  });
@@ -16898,8 +16766,8 @@ ZodEffects.createWithPreprocess = (preprocess2, schema, params) => {
16898
16766
  };
16899
16767
  var ZodOptional2 = class extends ZodType2 {
16900
16768
  _parse(input) {
16901
- const parsedType8 = this._getType(input);
16902
- if (parsedType8 === ZodParsedType.undefined) {
16769
+ const parsedType7 = this._getType(input);
16770
+ if (parsedType7 === ZodParsedType.undefined) {
16903
16771
  return OK(void 0);
16904
16772
  }
16905
16773
  return this._def.innerType._parse(input);
@@ -16916,8 +16784,8 @@ ZodOptional2.create = (type, params) => {
16916
16784
  };
16917
16785
  var ZodNullable2 = class extends ZodType2 {
16918
16786
  _parse(input) {
16919
- const parsedType8 = this._getType(input);
16920
- if (parsedType8 === ZodParsedType.null) {
16787
+ const parsedType7 = this._getType(input);
16788
+ if (parsedType7 === ZodParsedType.null) {
16921
16789
  return OK(null);
16922
16790
  }
16923
16791
  return this._def.innerType._parse(input);
@@ -17006,8 +16874,8 @@ ZodCatch2.create = (type, params) => {
17006
16874
  };
17007
16875
  var ZodNaN2 = class extends ZodType2 {
17008
16876
  _parse(input) {
17009
- const parsedType8 = this._getType(input);
17010
- if (parsedType8 !== ZodParsedType.nan) {
16877
+ const parsedType7 = this._getType(input);
16878
+ if (parsedType7 !== ZodParsedType.nan) {
17011
16879
  const ctx2 = this._getOrReturnCtx(input);
17012
16880
  addIssueToContext(ctx2, {
17013
16881
  code: ZodIssueCode2.invalid_type,
@@ -17192,7 +17060,7 @@ var nullableType = ZodNullable2.create;
17192
17060
  var preprocessType = ZodEffects.createWithPreprocess;
17193
17061
  var pipelineType = ZodPipeline.create;
17194
17062
 
17195
- // ../../node_modules/.pnpm/@ai-sdk+provider-utils@3.0.7_zod@4.1.12/node_modules/@ai-sdk/provider-utils/dist/index.mjs
17063
+ // ../../node_modules/.pnpm/@ai-sdk+provider-utils@3.0.7_zod@4.1.9/node_modules/@ai-sdk/provider-utils/dist/index.mjs
17196
17064
  var createIdGenerator = ({
17197
17065
  prefix,
17198
17066
  size = 16,
@@ -17315,10 +17183,10 @@ function safeValidateTypes(_0) {
17315
17183
  error: TypeValidationError.wrap({ value, cause: result.error }),
17316
17184
  rawValue: value
17317
17185
  };
17318
- } catch (error46) {
17186
+ } catch (error45) {
17319
17187
  return {
17320
17188
  success: false,
17321
- error: TypeValidationError.wrap({ value, cause: error46 }),
17189
+ error: TypeValidationError.wrap({ value, cause: error45 }),
17322
17190
  rawValue: value
17323
17191
  };
17324
17192
  }
@@ -17335,10 +17203,10 @@ function safeParseJSON(_0) {
17335
17203
  return { success: true, value, rawValue: value };
17336
17204
  }
17337
17205
  return yield safeValidateTypes({ value, schema });
17338
- } catch (error46) {
17206
+ } catch (error45) {
17339
17207
  return {
17340
17208
  success: false,
17341
- error: JSONParseError.isInstance(error46) ? error46 : new JSONParseError({ text: text2, cause: error46 }),
17209
+ error: JSONParseError.isInstance(error45) ? error45 : new JSONParseError({ text: text2, cause: error45 }),
17342
17210
  rawValue: void 0
17343
17211
  };
17344
17212
  }
@@ -17552,14 +17420,14 @@ function parseIntersectionDef(def, refs) {
17552
17420
  return mergedAllOf.length ? { allOf: mergedAllOf } : void 0;
17553
17421
  }
17554
17422
  function parseLiteralDef(def) {
17555
- const parsedType8 = typeof def.value;
17556
- if (parsedType8 !== "bigint" && parsedType8 !== "number" && parsedType8 !== "boolean" && parsedType8 !== "string") {
17423
+ const parsedType7 = typeof def.value;
17424
+ if (parsedType7 !== "bigint" && parsedType7 !== "number" && parsedType7 !== "boolean" && parsedType7 !== "string") {
17557
17425
  return {
17558
17426
  type: Array.isArray(def.value) ? "array" : "object"
17559
17427
  };
17560
17428
  }
17561
17429
  return {
17562
- type: parsedType8 === "bigint" ? "integer" : parsedType8,
17430
+ type: parsedType7 === "bigint" ? "integer" : parsedType7,
17563
17431
  const: def.value
17564
17432
  };
17565
17433
  }
@@ -18505,7 +18373,7 @@ function asSchema(schema) {
18505
18373
  }
18506
18374
  var { btoa: btoa2, atob: atob2 } = globalThis;
18507
18375
 
18508
- // ../../node_modules/.pnpm/ai@5.0.29_zod@4.1.12/node_modules/ai/dist/index.mjs
18376
+ // ../../node_modules/.pnpm/ai@5.0.29_zod@4.1.9/node_modules/ai/dist/index.mjs
18509
18377
  var __defProp2 = Object.defineProperty;
18510
18378
  var __export2 = (target, all) => {
18511
18379
  for (var name17 in all)
@@ -18561,8 +18429,8 @@ var NoObjectGeneratedError = class extends AISDKError {
18561
18429
  this.usage = usage;
18562
18430
  this.finishReason = finishReason;
18563
18431
  }
18564
- static isInstance(error46) {
18565
- return AISDKError.hasMarker(error46, marker72);
18432
+ static isInstance(error45) {
18433
+ return AISDKError.hasMarker(error45, marker72);
18566
18434
  }
18567
18435
  };
18568
18436
  _a72 = symbol72;
@@ -19744,8 +19612,8 @@ function consumeStream(_0) {
19744
19612
  if (done)
19745
19613
  break;
19746
19614
  }
19747
- } catch (error46) {
19748
- onError == null ? void 0 : onError(error46);
19615
+ } catch (error45) {
19616
+ onError == null ? void 0 : onError(error45);
19749
19617
  } finally {
19750
19618
  reader.releaseLock();
19751
19619
  }
@@ -19781,8 +19649,8 @@ var SerialJobExecutor = class {
19781
19649
  try {
19782
19650
  yield job();
19783
19651
  resolve2();
19784
- } catch (error46) {
19785
- reject(error46);
19652
+ } catch (error45) {
19653
+ reject(error45);
19786
19654
  }
19787
19655
  }));
19788
19656
  void this.processQueue();
@@ -20018,7 +19886,7 @@ function convertFileListToFileUIParts(files) {
20018
19886
  var _a17;
20019
19887
  resolve2((_a17 = readerEvent.target) == null ? void 0 : _a17.result);
20020
19888
  };
20021
- reader.onerror = (error46) => reject(error46);
19889
+ reader.onerror = (error45) => reject(error45);
20022
19890
  reader.readAsDataURL(file2);
20023
19891
  });
20024
19892
  return {
@@ -20321,12 +20189,12 @@ var AbstractChat = class {
20321
20189
  }
20322
20190
  setStatus({
20323
20191
  status,
20324
- error: error46
20192
+ error: error45
20325
20193
  }) {
20326
20194
  if (this.status === status)
20327
20195
  return;
20328
20196
  this.state.status = status;
20329
- this.state.error = error46;
20197
+ this.state.error = error45;
20330
20198
  }
20331
20199
  get error() {
20332
20200
  return this.state.error;
@@ -20420,12 +20288,12 @@ var AbstractChat = class {
20420
20288
  messageMetadataSchema: this.messageMetadataSchema,
20421
20289
  dataPartSchemas: this.dataPartSchemas,
20422
20290
  runUpdateMessageJob,
20423
- onError: (error46) => {
20424
- throw error46;
20291
+ onError: (error45) => {
20292
+ throw error45;
20425
20293
  }
20426
20294
  }),
20427
- onError: (error46) => {
20428
- throw error46;
20295
+ onError: (error45) => {
20296
+ throw error45;
20429
20297
  }
20430
20298
  });
20431
20299
  this.setStatus({ status: "ready" });
@@ -20610,7 +20478,7 @@ var uiMessageSchema = external_exports.object({
20610
20478
  )
20611
20479
  });
20612
20480
 
20613
- // ../../node_modules/.pnpm/@ai-sdk+react@2.0.29_react@19.1.1_zod@4.1.12/node_modules/@ai-sdk/react/dist/index.mjs
20481
+ // ../../node_modules/.pnpm/@ai-sdk+react@2.0.29_react@19.1.1_zod@4.1.9/node_modules/@ai-sdk/react/dist/index.mjs
20614
20482
  var import_throttleit = __toESM(require_throttleit(), 1);
20615
20483
  var import_react5 = require("react");
20616
20484
  var import_react6 = require("react");
@@ -20777,7 +20645,7 @@ function useChat(_a17 = {}) {
20777
20645
  () => chatRef.current.status,
20778
20646
  () => chatRef.current.status
20779
20647
  );
20780
- const error46 = (0, import_react4.useSyncExternalStore)(
20648
+ const error45 = (0, import_react4.useSyncExternalStore)(
20781
20649
  chatRef.current["~registerErrorCallback"],
20782
20650
  () => chatRef.current.error,
20783
20651
  () => chatRef.current.error
@@ -20804,7 +20672,7 @@ function useChat(_a17 = {}) {
20804
20672
  regenerate: chatRef.current.regenerate,
20805
20673
  clearError: chatRef.current.clearError,
20806
20674
  stop: chatRef.current.stop,
20807
- error: error46,
20675
+ error: error45,
20808
20676
  resumeStream: chatRef.current.resumeStream,
20809
20677
  status,
20810
20678
  addToolResult: chatRef.current.addToolResult
@@ -20813,7 +20681,7 @@ function useChat(_a17 = {}) {
20813
20681
 
20814
20682
  // src/components/Chat/index.tsx
20815
20683
  var import_puck2 = require("@measured/puck");
20816
- var import_react20 = require("react");
20684
+ var import_react19 = require("react");
20817
20685
  var import_ulid = require("ulid");
20818
20686
 
20819
20687
  // ../utils/lib/get-class-name-factory.ts
@@ -20853,7 +20721,7 @@ var styles_module_default = { "Chat": "_Chat_1mv7h_1", "Chat-header": "_Chat-hea
20853
20721
 
20854
20722
  // src/components/ChatBody/index.tsx
20855
20723
  init_react_import();
20856
- var import_react18 = require("react");
20724
+ var import_react17 = require("react");
20857
20725
  var import_use_stick_to_bottom = require("use-stick-to-bottom");
20858
20726
  var import_react_markdown = __toESM(require("react-markdown"));
20859
20727
 
@@ -20910,7 +20778,7 @@ init_react_import();
20910
20778
 
20911
20779
  // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Modal/Modal.module.css#css-module
20912
20780
  init_react_import();
20913
- var Modal_module_default = { "Modal-background": "_Modal-background_1bedq_1", "Modal--visible": "_Modal--visible_1bedq_16", "Modal-modal": "_Modal-modal_1bedq_22" };
20781
+ var Modal_module_default = { "Modal-background": "_Modal-background_874yi_1", "Modal--visible": "_Modal--visible_874yi_16", "Modal-modal": "_Modal-modal_874yi_22" };
20914
20782
 
20915
20783
  // ../platform-client/components/Modal/Modal.tsx
20916
20784
  var import_react9 = require("react");
@@ -20928,7 +20796,7 @@ var import_react8 = require("react");
20928
20796
 
20929
20797
  // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Button/Button.module.css#css-module
20930
20798
  init_react_import();
20931
- var Button_module_default = { "Button": "_Button_1wyvm_1", "Button--medium": "_Button--medium_1wyvm_29", "Button--large": "_Button--large_1wyvm_37", "Button-icon": "_Button-icon_1wyvm_44", "Button--primary": "_Button--primary_1wyvm_48", "Button--secondary": "_Button--secondary_1wyvm_67", "Button--danger": "_Button--danger_1wyvm_84", "Button--flush": "_Button--flush_1wyvm_98", "Button--disabled": "_Button--disabled_1wyvm_102", "Button--fullWidth": "_Button--fullWidth_1wyvm_109", "Button-spinner": "_Button-spinner_1wyvm_114" };
20799
+ var Button_module_default = { "Button": "_Button_w2ngt_1", "Button--medium": "_Button--medium_w2ngt_29", "Button--large": "_Button--large_w2ngt_37", "Button-icon": "_Button-icon_w2ngt_44", "Button--primary": "_Button--primary_w2ngt_48", "Button--secondary": "_Button--secondary_w2ngt_67", "Button--flush": "_Button--flush_w2ngt_84", "Button--disabled": "_Button--disabled_w2ngt_88", "Button--fullWidth": "_Button--fullWidth_w2ngt_95", "Button-spinner": "_Button-spinner_w2ngt_100" };
20932
20800
 
20933
20801
  // ../platform-client/components/Loader/index.tsx
20934
20802
  init_react_import();
@@ -20988,7 +20856,6 @@ var Button = ({
20988
20856
  className: getClassName2({
20989
20857
  primary: variant === "primary",
20990
20858
  secondary: variant === "secondary",
20991
- danger: variant === "danger",
20992
20859
  disabled,
20993
20860
  fullWidth,
20994
20861
  [size]: true
@@ -21010,7 +20877,7 @@ var Button = ({
21010
20877
  children: [
21011
20878
  icon && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: getClassName2("icon"), children: icon }),
21012
20879
  children,
21013
- loading && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: getClassName2("spinner"), children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Loader, { size: 12 }) })
20880
+ loading && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: getClassName2("spinner"), children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Loader, { size: 14 }) })
21014
20881
  ]
21015
20882
  }
21016
20883
  );
@@ -21020,24 +20887,18 @@ var Button = ({
21020
20887
  // ../platform-client/components/Modal/Modal.tsx
21021
20888
  var import_jsx_runtime3 = require("react/jsx-runtime");
21022
20889
  var getClassName3 = getClassNameFactory2("Modal", Modal_module_default);
21023
- var modalContext = (0, import_react9.createContext)({
21024
- buttonVariant: "primary",
21025
- visible: false,
21026
- setVisible: () => {
21027
- },
21028
- ref: null
21029
- });
20890
+ var modalContext = (0, import_react9.createContext)({ visible: false, setVisible: () => {
20891
+ }, ref: null });
21030
20892
  var Modal = ({
21031
20893
  actionLabel = "Open",
21032
- children,
21033
- hideButton = false
20894
+ children
21034
20895
  }) => {
21035
- const { visible, setVisible, buttonVariant, ref } = (0, import_react9.useContext)(modalContext);
20896
+ const { visible, setVisible, ref } = (0, import_react9.useContext)(modalContext);
21036
20897
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: getClassName3({ visible }), children: [
21037
- !hideButton && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: getClassName3("button"), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
20898
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: getClassName3("button"), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
21038
20899
  Button,
21039
20900
  {
21040
- variant: buttonVariant,
20901
+ variant: "secondary",
21041
20902
  onClick: () => {
21042
20903
  setVisible(!visible);
21043
20904
  },
@@ -21056,7 +20917,7 @@ init_react_import();
21056
20917
 
21057
20918
  // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Heading/Heading.module.css#css-module
21058
20919
  init_react_import();
21059
- var Heading_module_default = { "Heading": "_Heading_qkzg9_1", "Heading--xxxxl": "_Heading--xxxxl_qkzg9_11", "Heading--xxxl": "_Heading--xxxl_qkzg9_15", "Heading--xxl": "_Heading--xxl_qkzg9_19", "Heading--xl": "_Heading--xl_qkzg9_23", "Heading--l": "_Heading--l_qkzg9_27", "Heading--m": "_Heading--m_qkzg9_31", "Heading--s": "_Heading--s_qkzg9_35", "Heading--xs": "_Heading--xs_qkzg9_39", "Heading--xxs": "_Heading--xxs_qkzg9_43" };
20920
+ var Heading_module_default = { "Heading": "_Heading_1czuc_1", "Heading--xxxxl": "_Heading--xxxxl_1czuc_11", "Heading--xxxl": "_Heading--xxxl_1czuc_17", "Heading--xxl": "_Heading--xxl_1czuc_21", "Heading--xl": "_Heading--xl_1czuc_25", "Heading--l": "_Heading--l_1czuc_29", "Heading--m": "_Heading--m_1czuc_33", "Heading--s": "_Heading--s_1czuc_37", "Heading--xs": "_Heading--xs_1czuc_41", "Heading--xxs": "_Heading--xxs_1czuc_45" };
21060
20921
 
21061
20922
  // ../platform-client/components/Heading/Heading.tsx
21062
20923
  var import_jsx_runtime4 = require("react/jsx-runtime");
@@ -21083,10 +20944,9 @@ var ActionModal = ({
21083
20944
  children,
21084
20945
  title,
21085
20946
  description,
21086
- actions,
21087
- hideButton
20947
+ actions
21088
20948
  }) => {
21089
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Modal, { actionLabel, hideButton, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: getClassName5(), children: [
20949
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Modal, { actionLabel, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: getClassName5(), children: [
21090
20950
  /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: getClassName5("header"), children: [
21091
20951
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Heading, { size: "s", children: title }),
21092
20952
  description && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("small", { children: description })
@@ -21322,28 +21182,12 @@ init_react_import();
21322
21182
 
21323
21183
  // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Page/Page.module.css#css-module
21324
21184
  init_react_import();
21325
- var Page_module_default = { "Page": "_Page_1ajs1_1", "Page-masthead": "_Page-masthead_1ajs1_8", "Page-crumbs": "_Page-crumbs_1ajs1_19", "Page-crumb": "_Page-crumb_1ajs1_19", "Page-crumbLink": "_Page-crumbLink_1ajs1_30", "Page-actions": "_Page-actions_1ajs1_62", "Page-footer": "_Page-footer_1ajs1_66" };
21185
+ var Page_module_default = { "Page": "_Page_1uz1e_1", "Page-masthead": "_Page-masthead_1uz1e_8", "Page-crumbs": "_Page-crumbs_1uz1e_18", "Page-crumb": "_Page-crumb_1uz1e_18", "Page-crumbLink": "_Page-crumbLink_1uz1e_28", "Page-actions": "_Page-actions_1uz1e_60" };
21326
21186
 
21327
21187
  // ../platform-client/components/Page/Page.tsx
21328
21188
  var import_jsx_runtime14 = require("react/jsx-runtime");
21329
21189
  var cx2 = getClassNameFactory2("Page", Page_module_default);
21330
21190
 
21331
- // ../platform-client/components/Pagination/index.ts
21332
- init_react_import();
21333
-
21334
- // ../platform-client/components/Pagination/Pagination.tsx
21335
- init_react_import();
21336
- var import_react13 = require("react");
21337
-
21338
- // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Pagination/Pagination.module.css#css-module
21339
- init_react_import();
21340
- var Pagination_module_default = { "Pagination": "_Pagination_1okv2_1", "PaginationButton": "_PaginationButton_1okv2_8", "PaginationButton--isActive": "_PaginationButton--isActive_1okv2_20", "Pagination-ellipsis": "_Pagination-ellipsis_1okv2_30" };
21341
-
21342
- // ../platform-client/components/Pagination/Pagination.tsx
21343
- var import_jsx_runtime15 = require("react/jsx-runtime");
21344
- var cx3 = getClassNameFactory2("Pagination", Pagination_module_default);
21345
- var cxButton = getClassNameFactory2("PaginationButton", Pagination_module_default);
21346
-
21347
21191
  // ../platform-client/components/Section/index.ts
21348
21192
  init_react_import();
21349
21193
 
@@ -21355,7 +21199,7 @@ init_react_import();
21355
21199
  var Section_module_default = { "Section-inner": "_Section-inner_1uwo0_1", "Section--flush": "_Section--flush_1uwo0_8", "Section": "_Section_1uwo0_1", "Section--full": "_Section--full_1uwo0_17" };
21356
21200
 
21357
21201
  // ../platform-client/components/Section/Section.tsx
21358
- var import_jsx_runtime16 = require("react/jsx-runtime");
21202
+ var import_jsx_runtime15 = require("react/jsx-runtime");
21359
21203
  var getClassName12 = getClassNameFactory2("Section", Section_module_default);
21360
21204
 
21361
21205
  // ../platform-client/components/StatusTag/index.ts
@@ -21375,27 +21219,26 @@ init_react_import();
21375
21219
  var Tag_module_default = { "Tag": "_Tag_1baze_1", "Tag--colorBlue": "_Tag--colorBlue_1baze_19", "Tag--colorGreen": "_Tag--colorGreen_1baze_23", "Tag--colorRed": "_Tag--colorRed_1baze_27", "Tag--colorMuted": "_Tag--colorMuted_1baze_31", "Tag-sprite": "_Tag-sprite_1baze_35", "Tag--pulse": "_Tag--pulse_1baze_39", "pulse": "_pulse_1baze_1" };
21376
21220
 
21377
21221
  // ../platform-client/components/Tag/Tag.tsx
21378
- var import_jsx_runtime17 = require("react/jsx-runtime");
21222
+ var import_jsx_runtime16 = require("react/jsx-runtime");
21379
21223
  var getClassName13 = getClassNameFactory2("Tag", Tag_module_default);
21380
21224
 
21381
21225
  // ../platform-client/components/StatusTag/StatusTag.tsx
21382
- var import_jsx_runtime18 = require("react/jsx-runtime");
21226
+ var import_jsx_runtime17 = require("react/jsx-runtime");
21383
21227
 
21384
21228
  // ../platform-client/components/Table/index.ts
21385
21229
  init_react_import();
21386
21230
 
21387
21231
  // ../platform-client/components/Table/Table.tsx
21388
21232
  init_react_import();
21389
- var import_react14 = require("react");
21233
+ var import_react13 = require("react");
21390
21234
 
21391
21235
  // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Table/Table.module.css#css-module
21392
21236
  init_react_import();
21393
- var Table_module_default = { "Table": "_Table_1bbu5_1", "Table-filters": "_Table-filters_1bbu5_9", "Table-inner": "_Table-inner_1bbu5_13", "Table-table": "_Table-table_1bbu5_17", "Table--hideHeader": "_Table--hideHeader_1bbu5_41", "Table-footer": "_Table-footer_1bbu5_89", "Table--clickableRows": "_Table--clickableRows_1bbu5_93", "Table-placeholder": "_Table-placeholder_1bbu5_98", "Table-loader": "_Table-loader_1bbu5_109", "TableRow--highlightRow": "_TableRow--highlightRow_1bbu5_113" };
21237
+ var Table_module_default = { "Table": "_Table_1t44j_1", "Table-filters": "_Table-filters_1t44j_8", "Table-inner": "_Table-inner_1t44j_12", "Table-table": "_Table-table_1t44j_16", "Table-footer": "_Table-footer_1t44j_78", "Table--clickableRows": "_Table--clickableRows_1t44j_82", "Table-placeholder": "_Table-placeholder_1t44j_87" };
21394
21238
 
21395
21239
  // ../platform-client/components/Table/Table.tsx
21396
- var import_jsx_runtime19 = require("react/jsx-runtime");
21240
+ var import_jsx_runtime18 = require("react/jsx-runtime");
21397
21241
  var getClassName14 = get_class_name_factory_default("Table", Table_module_default);
21398
- var getRowClassName = get_class_name_factory_default("TableRow", Table_module_default);
21399
21242
 
21400
21243
  // ../platform-client/components/Textarea/index.tsx
21401
21244
  init_react_import();
@@ -21412,41 +21255,30 @@ init_react_import();
21412
21255
  var VerticalSpace_module_default = { "VerticalSpace": "_VerticalSpace_1tjaw_1", "VerticalSpace--size4": "_VerticalSpace--size4_1tjaw_5", "VerticalSpace--size8": "_VerticalSpace--size8_1tjaw_9", "VerticalSpace--size16": "_VerticalSpace--size16_1tjaw_13", "VerticalSpace--size32": "_VerticalSpace--size32_1tjaw_17", "VerticalSpace--size40": "_VerticalSpace--size40_1tjaw_21", "VerticalSpace--size48": "_VerticalSpace--size48_1tjaw_25", "VerticalSpace--size56": "_VerticalSpace--size56_1tjaw_29", "VerticalSpace--size96": "_VerticalSpace--size96_1tjaw_33", "VerticalSpace--size128": "_VerticalSpace--size128_1tjaw_37" };
21413
21256
 
21414
21257
  // ../platform-client/components/VerticalSpace/VerticalSpace.tsx
21415
- var import_jsx_runtime20 = require("react/jsx-runtime");
21258
+ var import_jsx_runtime19 = require("react/jsx-runtime");
21416
21259
  var getClassName15 = get_class_name_factory_default("VerticalSpace", VerticalSpace_module_default);
21417
21260
 
21418
- // ../platform-client/components/Viewport/index.tsx
21419
- init_react_import();
21420
-
21421
- // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Viewport/styles.module.css#css-module
21422
- init_react_import();
21423
- var styles_module_default3 = { "Viewport": "_Viewport_1vvhm_3", "Viewport--standard": "_Viewport--standard_1vvhm_6", "Viewport--inline": "_Viewport--inline_1vvhm_7", "Viewport--narrow": "_Viewport--narrow_1vvhm_11", "Viewport--flex": "_Viewport--flex_1vvhm_19" };
21424
-
21425
- // ../platform-client/components/Viewport/index.tsx
21426
- var import_jsx_runtime21 = require("react/jsx-runtime");
21427
- var cx4 = getClassNameFactory("Viewport", styles_module_default3);
21428
-
21429
21261
  // ../platform-client/context/editor.tsx
21430
21262
  init_react_import();
21431
- var import_react15 = require("react");
21432
- var import_jsx_runtime22 = require("react/jsx-runtime");
21433
- var ctx = (0, import_react15.createContext)({});
21263
+ var import_react14 = require("react");
21264
+ var import_jsx_runtime20 = require("react/jsx-runtime");
21265
+ var ctx = (0, import_react14.createContext)({});
21434
21266
 
21435
21267
  // css-module:/home/runner/work/puck-platform/puck-platform/packages/plugin-ai/src/components/ChatBody/styles.module.css#css-module
21436
21268
  init_react_import();
21437
- var styles_module_default4 = { "Chat": "_Chat_150yz_1", "Chat-inner": "_Chat-inner_150yz_17", "Chat--hasMessages": "_Chat--hasMessages_150yz_25", "Chat--hasChildren": "_Chat--hasChildren_150yz_29", "Chat-messages": "_Chat-messages_150yz_34", "Chat-form": "_Chat-form_150yz_41", "Chat--hideInput": "_Chat--hideInput_150yz_46", "Chat-formHelper": "_Chat-formHelper_150yz_60", "Chat-examplePrompts": "_Chat-examplePrompts_150yz_75", "Chat-examplePrompt": "_Chat-examplePrompt_150yz_75", "Chat-examplePromptArrow": "_Chat-examplePromptArrow_150yz_103", "Chat-default": "_Chat-default_150yz_107", "ChatMessage": "_ChatMessage_150yz_124", "ChatMessage--userRole": "_ChatMessage--userRole_150yz_130", "ChatMessage-text": "_ChatMessage-text_150yz_130", "ChatMessage-data": "_ChatMessage-data_150yz_220", "ChatMessage-dataInner": "_ChatMessage-dataInner_150yz_231", "ChatMessage-dataIcon": "_ChatMessage-dataIcon_150yz_237", "Chat-loader": "_Chat-loader_150yz_241", "Chat-error": "_Chat-error_150yz_246", "Chat-errorLabel": "_Chat-errorLabel_150yz_255", "Chat-errorAction": "_Chat-errorAction_150yz_259" };
21269
+ var styles_module_default3 = { "Chat": "_Chat_14j71_1", "Chat-inner": "_Chat-inner_14j71_17", "Chat--hasMessages": "_Chat--hasMessages_14j71_25", "Chat--hasChildren": "_Chat--hasChildren_14j71_29", "Chat-messages": "_Chat-messages_14j71_34", "Chat-form": "_Chat-form_14j71_41", "Chat--hideInput": "_Chat--hideInput_14j71_46", "Chat-formHelper": "_Chat-formHelper_14j71_60", "Chat-examplePrompts": "_Chat-examplePrompts_14j71_75", "Chat-examplePrompt": "_Chat-examplePrompt_14j71_75", "Chat-examplePromptArrow": "_Chat-examplePromptArrow_14j71_103", "Chat-default": "_Chat-default_14j71_107", "ChatMessage": "_ChatMessage_14j71_124", "ChatMessage--userRole": "_ChatMessage--userRole_14j71_129", "ChatMessage-text": "_ChatMessage-text_14j71_129", "ChatMessage-data": "_ChatMessage-data_14j71_219", "ChatMessage-dataInner": "_ChatMessage-dataInner_14j71_230", "ChatMessage-dataIcon": "_ChatMessage-dataIcon_14j71_236", "Chat-loader": "_Chat-loader_14j71_240", "Chat-error": "_Chat-error_14j71_245", "Chat-errorLabel": "_Chat-errorLabel_14j71_254", "Chat-errorAction": "_Chat-errorAction_14j71_258" };
21438
21270
 
21439
21271
  // src/components/PromptForm/index.tsx
21440
21272
  init_react_import();
21441
- var import_react16 = require("react");
21273
+ var import_react15 = require("react");
21442
21274
 
21443
21275
  // css-module:/home/runner/work/puck-platform/puck-platform/packages/plugin-ai/src/components/PromptForm/styles.module.css#css-module
21444
21276
  init_react_import();
21445
- var styles_module_default5 = { "PromptForm": "_PromptForm_136g1_1", "PromptForm-inner": "_PromptForm-inner_136g1_8", "PromptForm--dark": "_PromptForm--dark_136g1_14", "PromptForm--glow": "_PromptForm--glow_136g1_19", "PromptForm-glow": "_PromptForm-glow_136g1_19", "loop": "_loop_136g1_1", "PromptForm-formInner": "_PromptForm-formInner_136g1_60", "PromptForm-input": "_PromptForm-input_136g1_64", "PromptForm--disabled": "_PromptForm--disabled_136g1_92", "PromptForm-helper": "_PromptForm-helper_136g1_97", "PromptForm-actions": "_PromptForm-actions_136g1_107", "PromptForm-actionsLeft": "_PromptForm-actionsLeft_136g1_118", "PromptForm-actionsRight": "_PromptForm-actionsRight_136g1_124", "PromptForm-actionSubmit": "_PromptForm-actionSubmit_136g1_128", "PromptForm--isDisabled": "_PromptForm--isDisabled_136g1_147", "PromptForm--isLoading": "_PromptForm--isLoading_136g1_152" };
21277
+ var styles_module_default4 = { "PromptForm": "_PromptForm_136g1_1", "PromptForm-inner": "_PromptForm-inner_136g1_8", "PromptForm--dark": "_PromptForm--dark_136g1_14", "PromptForm--glow": "_PromptForm--glow_136g1_19", "PromptForm-glow": "_PromptForm-glow_136g1_19", "loop": "_loop_136g1_1", "PromptForm-formInner": "_PromptForm-formInner_136g1_60", "PromptForm-input": "_PromptForm-input_136g1_64", "PromptForm--disabled": "_PromptForm--disabled_136g1_92", "PromptForm-helper": "_PromptForm-helper_136g1_97", "PromptForm-actions": "_PromptForm-actions_136g1_107", "PromptForm-actionsLeft": "_PromptForm-actionsLeft_136g1_118", "PromptForm-actionsRight": "_PromptForm-actionsRight_136g1_124", "PromptForm-actionSubmit": "_PromptForm-actionSubmit_136g1_128", "PromptForm--isDisabled": "_PromptForm--isDisabled_136g1_147", "PromptForm--isLoading": "_PromptForm--isLoading_136g1_152" };
21446
21278
 
21447
21279
  // src/components/PromptForm/index.tsx
21448
- var import_jsx_runtime23 = require("react/jsx-runtime");
21449
- var cx5 = getClassNameFactory2("PromptForm", styles_module_default5);
21280
+ var import_jsx_runtime21 = require("react/jsx-runtime");
21281
+ var cx3 = getClassNameFactory2("PromptForm", styles_module_default4);
21450
21282
  function PromptForm({
21451
21283
  actions,
21452
21284
  colorScheme = "light",
@@ -21458,8 +21290,8 @@ function PromptForm({
21458
21290
  isLoading,
21459
21291
  placeholder = "Create a page for..."
21460
21292
  }) {
21461
- const hasSetInitialPrompt = (0, import_react16.useRef)(false);
21462
- const [prompt, setPrompt] = (0, import_react16.useState)("");
21293
+ const hasSetInitialPrompt = (0, import_react15.useRef)(false);
21294
+ const [prompt, setPrompt] = (0, import_react15.useState)("");
21463
21295
  const sendPrompt = () => {
21464
21296
  if (isLoading || isDisabled) return;
21465
21297
  if (handleSubmit) {
@@ -21467,7 +21299,7 @@ function PromptForm({
21467
21299
  }
21468
21300
  setPrompt("");
21469
21301
  };
21470
- (0, import_react16.useEffect)(() => {
21302
+ (0, import_react15.useEffect)(() => {
21471
21303
  const currentUrl = new URL(location.href);
21472
21304
  const initialPrompt = currentUrl.searchParams.get("initialPrompt");
21473
21305
  if (!hasSetInitialPrompt.current && initialPrompt && prompt === "") {
@@ -21475,31 +21307,31 @@ function PromptForm({
21475
21307
  setPrompt(initialPrompt);
21476
21308
  }
21477
21309
  }, [setPrompt]);
21478
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
21310
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
21479
21311
  "div",
21480
21312
  {
21481
- className: cx5({
21313
+ className: cx3({
21482
21314
  isDisabled,
21483
21315
  isLoading,
21484
21316
  dark: colorScheme === "dark",
21485
21317
  glow
21486
21318
  }),
21487
21319
  children: [
21488
- helperText ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: cx5("helper"), children: helperText }) : null,
21489
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: cx5("inner"), children: [
21490
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: cx5("glow") }),
21491
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
21320
+ helperText ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: cx3("helper"), children: helperText }) : null,
21321
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: cx3("inner"), children: [
21322
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: cx3("glow") }),
21323
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
21492
21324
  "form",
21493
21325
  {
21494
21326
  onSubmit: (e) => {
21495
21327
  e.preventDefault();
21496
21328
  sendPrompt();
21497
21329
  },
21498
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: cx5("formInner"), children: [
21499
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
21330
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: cx3("formInner"), children: [
21331
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
21500
21332
  import_react_textarea_autosize.default,
21501
21333
  {
21502
- className: cx5("input"),
21334
+ className: cx3("input"),
21503
21335
  name: "prompt",
21504
21336
  minRows: 2,
21505
21337
  placeholder,
@@ -21520,15 +21352,15 @@ function PromptForm({
21520
21352
  }
21521
21353
  }
21522
21354
  ),
21523
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: cx5("actions"), children: [
21524
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: cx5("actionsLeft"), children: actions }),
21525
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: cx5("actionsRight"), children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
21355
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: cx3("actions"), children: [
21356
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: cx3("actionsLeft"), children: actions }),
21357
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: cx3("actionsRight"), children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
21526
21358
  "button",
21527
21359
  {
21528
- className: cx5("actionSubmit"),
21360
+ className: cx3("actionSubmit"),
21529
21361
  type: "submit",
21530
21362
  disabled: isLoading,
21531
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ArrowUp, {})
21363
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ArrowUp, {})
21532
21364
  }
21533
21365
  ) })
21534
21366
  ] })
@@ -21543,14 +21375,14 @@ function PromptForm({
21543
21375
 
21544
21376
  // src/lib/context.ts
21545
21377
  init_react_import();
21546
- var import_react17 = require("react");
21547
- var toolStatusContext = (0, import_react17.createContext)({});
21378
+ var import_react16 = require("react");
21379
+ var toolStatusContext = (0, import_react16.createContext)({});
21548
21380
  var ToolStatusProvider = toolStatusContext.Provider;
21549
21381
 
21550
21382
  // src/components/ChatBody/index.tsx
21551
- var import_jsx_runtime24 = require("react/jsx-runtime");
21552
- var cx6 = getClassNameFactory2("Chat", styles_module_default4);
21553
- var cxMessage = getClassNameFactory2("ChatMessage", styles_module_default4);
21383
+ var import_jsx_runtime22 = require("react/jsx-runtime");
21384
+ var cx4 = getClassNameFactory2("Chat", styles_module_default3);
21385
+ var cxMessage = getClassNameFactory2("ChatMessage", styles_module_default3);
21554
21386
  function ChatBody({
21555
21387
  children,
21556
21388
  examplePrompts,
@@ -21559,22 +21391,22 @@ function ChatBody({
21559
21391
  inputRef,
21560
21392
  messages = [],
21561
21393
  status,
21562
- error: error46,
21394
+ error: error45,
21563
21395
  handleRetry
21564
21396
  }) {
21565
21397
  const { scrollRef, contentRef } = (0, import_use_stick_to_bottom.useStickToBottom)();
21566
21398
  const hasMessages = messages && messages.length > 0;
21567
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: cx6({ hasMessages, hasChildren: !!children, hideInput }), children: [
21568
- children ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: cx6("default"), children }) : null,
21569
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: cx6("inner"), ref: scrollRef, children: [
21570
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: cx6("messages"), ref: contentRef, children: messages.toReversed().map((message) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ChatMessage, { message }, message.id)) }),
21571
- status === "submitted" && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: cx6("loader"), children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Loader, { size: 14 }) }),
21572
- error46 && /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: cx6("error"), children: [
21573
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: cx6("errorLabel"), children: "Something went wrong." }),
21574
- handleRetry && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: cx6("errorAction"), children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(IconButton, { title: "Retry", onClick: handleRetry, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(RotateCcw, { size: "14" }) }) })
21399
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: cx4({ hasMessages, hasChildren: !!children, hideInput }), children: [
21400
+ children ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: cx4("default"), children }) : null,
21401
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: cx4("inner"), ref: scrollRef, children: [
21402
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: cx4("messages"), ref: contentRef, children: messages.toReversed().map((message) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ChatMessage, { message }, message.id)) }),
21403
+ status === "submitted" && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: cx4("loader"), children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Loader, { size: 14 }) }),
21404
+ error45 && /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: cx4("error"), children: [
21405
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: cx4("errorLabel"), children: "Something went wrong." }),
21406
+ handleRetry && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: cx4("errorAction"), children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(IconButton, { title: "Retry", onClick: handleRetry, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(RotateCcw, { size: "14" }) }) })
21575
21407
  ] }),
21576
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: cx6("form"), children: [
21577
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
21408
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: cx4("form"), children: [
21409
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
21578
21410
  PromptForm,
21579
21411
  {
21580
21412
  glow: !hasMessages,
@@ -21584,19 +21416,19 @@ function ChatBody({
21584
21416
  placeholder: "What do you want to build?"
21585
21417
  }
21586
21418
  ),
21587
- examplePrompts ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: cx6("examplePrompts"), children: examplePrompts }) : null
21419
+ examplePrompts ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: cx4("examplePrompts"), children: examplePrompts }) : null
21588
21420
  ] })
21589
21421
  ] })
21590
21422
  ] });
21591
21423
  }
21592
21424
  function ChatMessage({ message }) {
21593
21425
  const { role, parts } = message;
21594
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
21426
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
21595
21427
  "div",
21596
21428
  {
21597
21429
  className: cxMessage({ [`${role}Role`]: true }),
21598
21430
  "data-message-id": message.id,
21599
- children: parts.map((part, i) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
21431
+ children: parts.map((part, i) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
21600
21432
  ChatMessagePart,
21601
21433
  {
21602
21434
  part,
@@ -21612,25 +21444,25 @@ function ChatMessageWrapper({
21612
21444
  role
21613
21445
  }) {
21614
21446
  if (role === "assistant") {
21615
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_markdown.default, { children });
21447
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react_markdown.default, { children });
21616
21448
  }
21617
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { children });
21449
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { children });
21618
21450
  }
21619
21451
  function ChatMessagePart({
21620
21452
  part,
21621
21453
  role
21622
21454
  }) {
21623
21455
  if (part.type === "text") {
21624
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: cxMessage("text"), children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ChatMessageWrapper, { role, children: part.text }) });
21456
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: cxMessage("text"), children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ChatMessageWrapper, { role, children: part.text }) });
21625
21457
  }
21626
21458
  if (part.type === "tool-createPage") {
21627
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(PuckTool, __spreadValues({}, part));
21459
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(PuckTool, __spreadValues({}, part));
21628
21460
  }
21629
21461
  if (part.type === "tool-updatePage") {
21630
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(PuckTool, __spreadValues({}, part));
21462
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(PuckTool, __spreadValues({}, part));
21631
21463
  }
21632
21464
  if (part.type === "tool-userTool") {
21633
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(PuckTool, __spreadValues({}, part));
21465
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(PuckTool, __spreadValues({}, part));
21634
21466
  }
21635
21467
  return null;
21636
21468
  }
@@ -21639,47 +21471,51 @@ function PuckTool({
21639
21471
  output,
21640
21472
  defaultLabel = "Thinking..."
21641
21473
  }) {
21642
- const toolStatus = (0, import_react18.useContext)(toolStatusContext)[toolCallId];
21474
+ const toolStatus = (0, import_react17.useContext)(toolStatusContext)[toolCallId];
21643
21475
  const outputObj = output;
21644
21476
  const status = outputObj && "status" in outputObj ? outputObj.status : toolStatus != null ? toolStatus : { loading: true, label: defaultLabel };
21645
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ToolStatus, { status });
21477
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ToolStatus, { status });
21646
21478
  }
21647
21479
  function ToolStatus({ status }) {
21648
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: cxMessage("data"), children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: cxMessage("dataInner"), children: [
21649
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: cxMessage("dataIcon"), children: status.error ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TriangleAlert, { size: 18 }) : status.loading ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Loader, { size: 16 }) : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Check, { size: 18 }) }),
21650
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { children: status.label })
21480
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: cxMessage("data"), children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: cxMessage("dataInner"), children: [
21481
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: cxMessage("dataIcon"), children: status.error ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(TriangleAlert, { size: 18 }) : status.loading ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Loader, { size: 16 }) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Check, { size: 18 }) }),
21482
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { children: status.label })
21651
21483
  ] }) });
21652
21484
  }
21653
21485
  function ExamplePrompt({
21654
21486
  label,
21655
21487
  href
21656
21488
  }) {
21657
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("a", { className: cx6("examplePrompt"), href, children: [
21658
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { children: label }),
21659
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: cx6("examplePromptArrow"), children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ArrowRight, { size: "16" }) })
21489
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("a", { className: cx4("examplePrompt"), href, children: [
21490
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { children: label }),
21491
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: cx4("examplePromptArrow"), children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ArrowRight, { size: "16" }) })
21660
21492
  ] });
21661
21493
  }
21662
21494
 
21663
21495
  // src/components/Chat/index.tsx
21664
21496
  var import_qler = __toESM(require("qler"));
21665
- var import_jsx_runtime25 = require("react/jsx-runtime");
21497
+ var import_jsx_runtime23 = require("react/jsx-runtime");
21666
21498
  var q = (0, import_qler.default)();
21667
21499
  var BENCHMARK = false;
21668
21500
  var prefixedUlid = (prefix = "") => `${prefix ? `${prefix}_` : ""}${(0, import_ulid.ulid)()}`;
21669
21501
  var getClassName16 = getClassNameFactory("Chat", styles_module_default);
21670
21502
  var usePuck = (0, import_puck2.createUsePuck)();
21671
- function Chat2({ chat, host = "/api/puck/chat" }) {
21672
- const { examplePrompts } = chat != null ? chat : {};
21503
+ function Chat2({
21504
+ chatId,
21505
+ examplePrompts,
21506
+ host = "/api/puck/chat",
21507
+ initialMessages = []
21508
+ }) {
21673
21509
  const puckDispatch = usePuck((s) => s.dispatch);
21674
21510
  const getPuck = (0, import_puck2.useGetPuck)();
21675
- const localChatId = (0, import_react20.useRef)("");
21676
- const inputRef = (0, import_react20.useRef)(null);
21677
- const pluginRef = (0, import_react20.useRef)(null);
21678
- const [error46, setError] = (0, import_react20.useState)();
21679
- const [toolStatus, setToolStatus] = (0, import_react20.useState)({});
21511
+ const localChatId = (0, import_react19.useRef)(chatId);
21512
+ const inputRef = (0, import_react19.useRef)(null);
21513
+ const pluginRef = (0, import_react19.useRef)(null);
21514
+ const [error45, setError] = (0, import_react19.useState)();
21515
+ const [toolStatus, setToolStatus] = (0, import_react19.useState)({});
21680
21516
  const { messages, status, sendMessage, regenerate } = useChat({
21681
21517
  generateId: () => prefixedUlid("msg"),
21682
- messages: [],
21518
+ messages: initialMessages,
21683
21519
  transport: new DefaultChatTransport({
21684
21520
  api: host,
21685
21521
  prepareSendMessagesRequest: (opts) => {
@@ -21692,7 +21528,7 @@ function Chat2({ chat, host = "/api/puck/chat" }) {
21692
21528
  fields: {
21693
21529
  title: {
21694
21530
  type: "text",
21695
- ai: { instructions: "The title for the page" }
21531
+ metadata: { ai: { instructions: "The title for the page" } }
21696
21532
  }
21697
21533
  }
21698
21534
  };
@@ -21730,7 +21566,6 @@ function Chat2({ chat, host = "/api/puck/chat" }) {
21730
21566
  case "data-build-op": {
21731
21567
  const data = dataPart.data;
21732
21568
  q.queue(() => {
21733
- var _a17, _b, _c, _d;
21734
21569
  const puckDispatch2 = getPuck().dispatch;
21735
21570
  try {
21736
21571
  if (data.op === "add") {
@@ -21777,13 +21612,11 @@ function Chat2({ chat, host = "/api/puck/chat" }) {
21777
21612
  recordHistory: false
21778
21613
  });
21779
21614
  } else if (data.op === "updateRoot") {
21780
- const { appState, config: config2 } = getPuck();
21781
- const existing = appState.data.root;
21782
- const defaultProps = (_b = (_a17 = config2.root) == null ? void 0 : _a17.defaultProps) != null ? _b : {};
21615
+ const existing = getPuck().appState.data.root;
21783
21616
  puckDispatch2({
21784
21617
  type: "replaceRoot",
21785
21618
  root: __spreadProps(__spreadValues({}, existing), {
21786
- props: __spreadValues(__spreadValues(__spreadValues({}, defaultProps), existing.props), data.props)
21619
+ props: __spreadValues(__spreadValues({}, existing.props), data.props)
21787
21620
  }),
21788
21621
  recordHistory: false
21789
21622
  });
@@ -21829,11 +21662,9 @@ function Chat2({ chat, host = "/api/puck/chat" }) {
21829
21662
  recordHistory: false
21830
21663
  });
21831
21664
  } else if (data.op === "reset") {
21832
- const { config: config2 } = getPuck();
21833
- const defaultRootProps = (_d = (_c = config2.root) == null ? void 0 : _c.defaultProps) != null ? _d : {};
21834
21665
  puckDispatch2({
21835
21666
  type: "setData",
21836
- data: { content: [], root: defaultRootProps },
21667
+ data: { content: [], root: {} },
21837
21668
  recordHistory: false
21838
21669
  });
21839
21670
  } else {
@@ -21886,7 +21717,7 @@ function Chat2({ chat, host = "/api/puck/chat" }) {
21886
21717
  console.error(e);
21887
21718
  });
21888
21719
  };
21889
- const messagesWithStatuses = (0, import_react20.useMemo)(() => {
21720
+ const messagesWithStatuses = (0, import_react19.useMemo)(() => {
21890
21721
  return messages.map((msg) => {
21891
21722
  return __spreadProps(__spreadValues({}, msg), {
21892
21723
  parts: msg.parts.map((part) => {
@@ -21898,22 +21729,22 @@ function Chat2({ chat, host = "/api/puck/chat" }) {
21898
21729
  });
21899
21730
  });
21900
21731
  }, [messages, toolStatus]);
21901
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: getClassName16(), ref: pluginRef, children: [
21902
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: getClassName16("header"), children: "AI page builder" }),
21903
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ToolStatusProvider, { value: toolStatus, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
21732
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: getClassName16(), ref: pluginRef, children: [
21733
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: getClassName16("header"), children: "AI page builder" }),
21734
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ToolStatusProvider, { value: toolStatus, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
21904
21735
  ChatBody,
21905
21736
  {
21906
21737
  messages: messagesWithStatuses,
21907
21738
  handleSubmit,
21908
21739
  inputRef,
21909
21740
  status,
21910
- examplePrompts: examplePrompts == null ? void 0 : examplePrompts.map(({ label, href }) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ExamplePrompt, { label, href }, label)),
21911
- error: error46,
21741
+ examplePrompts: examplePrompts == null ? void 0 : examplePrompts.map(({ label, href }) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ExamplePrompt, { label, href }, label)),
21742
+ error: error45,
21912
21743
  handleRetry: () => {
21913
21744
  setError("");
21914
21745
  regenerate();
21915
21746
  },
21916
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
21747
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
21917
21748
  Placeholder,
21918
21749
  {
21919
21750
  dispatch: puckDispatch,
@@ -21944,11 +21775,11 @@ function Placeholder({
21944
21775
  }
21945
21776
  }, 10);
21946
21777
  };
21947
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: getClassName16("placeholder"), children: [
21948
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Bot, { size: "24" }),
21949
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { children: "Use AI to build a page using your own components" }),
21950
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: getClassName16("actions"), children: [
21951
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
21778
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: getClassName16("placeholder"), children: [
21779
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Bot, { size: "24" }),
21780
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { children: "Use AI to build a page using your own components" }),
21781
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: getClassName16("actions"), children: [
21782
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
21952
21783
  "button",
21953
21784
  {
21954
21785
  className: getClassName16("action"),
@@ -21956,7 +21787,7 @@ function Placeholder({
21956
21787
  children: "Enter prompt"
21957
21788
  }
21958
21789
  ),
21959
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
21790
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
21960
21791
  "button",
21961
21792
  {
21962
21793
  className: getClassName16("actionOutlined"),
@@ -21980,19 +21811,20 @@ function isScrolledIntoView(el) {
21980
21811
  }
21981
21812
 
21982
21813
  // src/index.tsx
21983
- var import_jsx_runtime26 = require("react/jsx-runtime");
21984
- function createAiPlugin(opts) {
21814
+ var import_jsx_runtime24 = require("react/jsx-runtime");
21815
+ function createAIPlugin(opts) {
21985
21816
  return {
21986
21817
  label: "AI",
21987
21818
  name: "ai",
21988
- render: () => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Chat2, __spreadValues({}, opts)),
21989
- icon: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Bot, {}),
21819
+ render: () => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Chat2, __spreadValues({}, opts)),
21820
+ icon: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Bot, {}),
21990
21821
  mobilePanelHeight: "min-content"
21991
21822
  };
21992
21823
  }
21824
+ var src_default = createAIPlugin;
21993
21825
  // Annotate the CommonJS export names for ESM import in node:
21994
21826
  0 && (module.exports = {
21995
- createAiPlugin
21827
+ ChatBody
21996
21828
  });
21997
21829
  /*! Bundled license information:
21998
21830