@abduljebar/text-editor 1.1.1 → 1.1.2

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
@@ -51,7 +51,7 @@ function sn() {
51
51
  return u.$$typeof === Dt ? null : u.displayName || u.name || null;
52
52
  if (typeof u == "string") return u;
53
53
  switch (u) {
54
- case T:
54
+ case y:
55
55
  return "Fragment";
56
56
  case L:
57
57
  return "Profiler";
@@ -70,7 +70,7 @@ function sn() {
70
70
  ), u.$$typeof) {
71
71
  case R:
72
72
  return "Portal";
73
- case j:
73
+ case I:
74
74
  return u.displayName || "Context";
75
75
  case A:
76
76
  return (u._context.displayName || "Context") + ".Consumer";
@@ -100,16 +100,16 @@ function sn() {
100
100
  }
101
101
  if (_) {
102
102
  _ = console;
103
- var z = _.error, Z = typeof Symbol == "function" && Symbol.toStringTag && u[Symbol.toStringTag] || u.constructor.name || "Object";
103
+ var z = _.error, E = typeof Symbol == "function" && Symbol.toStringTag && u[Symbol.toStringTag] || u.constructor.name || "Object";
104
104
  return z.call(
105
105
  _,
106
106
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
107
- Z
107
+ E
108
108
  ), t(u);
109
109
  }
110
110
  }
111
111
  function r(u) {
112
- if (u === T) return "<>";
112
+ if (u === y) return "<>";
113
113
  if (typeof u == "object" && u !== null && u.$$typeof === de)
114
114
  return "<...>";
115
115
  try {
@@ -127,7 +127,7 @@ function sn() {
127
127
  return Error("react-stack-top-frame");
128
128
  }
129
129
  function c(u) {
130
- if (je.call(u, "key")) {
130
+ if (Ie.call(u, "key")) {
131
131
  var _ = Object.getOwnPropertyDescriptor(u, "key").get;
132
132
  if (_ && _.isReactWarning) return !1;
133
133
  }
@@ -151,15 +151,15 @@ function sn() {
151
151
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
152
152
  )), u = this.props.ref, u !== void 0 ? u : null;
153
153
  }
154
- function d(u, _, z, Z, X, pe) {
155
- var E = z.ref;
154
+ function d(u, _, z, E, X, pe) {
155
+ var x = z.ref;
156
156
  return u = {
157
- $$typeof: x,
157
+ $$typeof: T,
158
158
  type: u,
159
159
  key: _,
160
160
  props: z,
161
- _owner: Z
162
- }, (E !== void 0 ? E : null) !== null ? Object.defineProperty(u, "ref", {
161
+ _owner: E
162
+ }, (x !== void 0 ? x : null) !== null ? Object.defineProperty(u, "ref", {
163
163
  enumerable: !1,
164
164
  get: f
165
165
  }) : Object.defineProperty(u, "ref", { enumerable: !1, value: null }), u._store = {}, Object.defineProperty(u._store, "validated", {
@@ -184,48 +184,48 @@ function sn() {
184
184
  value: pe
185
185
  }), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
186
186
  }
187
- function l(u, _, z, Z, X, pe) {
188
- var E = _.children;
189
- if (E !== void 0)
190
- if (Z)
191
- if (Ut(E)) {
192
- for (Z = 0; Z < E.length; Z++)
193
- g(E[Z]);
194
- Object.freeze && Object.freeze(E);
187
+ function l(u, _, z, E, X, pe) {
188
+ var x = _.children;
189
+ if (x !== void 0)
190
+ if (E)
191
+ if (Ut(x)) {
192
+ for (E = 0; E < x.length; E++)
193
+ g(x[E]);
194
+ Object.freeze && Object.freeze(x);
195
195
  } else
196
196
  console.error(
197
197
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
198
198
  );
199
- else g(E);
200
- if (je.call(_, "key")) {
201
- E = e(u);
199
+ else g(x);
200
+ if (Ie.call(_, "key")) {
201
+ x = e(u);
202
202
  var M = Object.keys(_).filter(function(Ft) {
203
203
  return Ft !== "key";
204
204
  });
205
- Z = 0 < M.length ? "{key: someKey, " + M.join(": ..., ") + ": ...}" : "{key: someKey}", Ce[E + Z] || (M = 0 < M.length ? "{" + M.join(": ..., ") + ": ...}" : "{}", console.error(
205
+ E = 0 < M.length ? "{key: someKey, " + M.join(": ..., ") + ": ...}" : "{key: someKey}", Ce[x + E] || (M = 0 < M.length ? "{" + M.join(": ..., ") + ": ...}" : "{}", console.error(
206
206
  `A props object containing a "key" prop is being spread into JSX:
207
207
  let props = %s;
208
208
  <%s {...props} />
209
209
  React keys must be passed directly to JSX without using spread:
210
210
  let props = %s;
211
211
  <%s key={someKey} {...props} />`,
212
- Z,
213
212
  E,
213
+ x,
214
214
  M,
215
- E
216
- ), Ce[E + Z] = !0);
215
+ x
216
+ ), Ce[x + E] = !0);
217
217
  }
218
- if (E = null, z !== void 0 && (n(z), E = "" + z), c(_) && (n(_.key), E = "" + _.key), "key" in _) {
218
+ if (x = null, z !== void 0 && (n(z), x = "" + z), c(_) && (n(_.key), x = "" + _.key), "key" in _) {
219
219
  z = {};
220
220
  for (var me in _)
221
221
  me !== "key" && (z[me] = _[me]);
222
222
  } else z = _;
223
- return E && a(
223
+ return x && a(
224
224
  z,
225
225
  typeof u == "function" ? u.displayName || u.name || "Unknown" : u
226
226
  ), d(
227
227
  u,
228
- E,
228
+ x,
229
229
  z,
230
230
  o(),
231
231
  X,
@@ -236,9 +236,9 @@ React keys must be passed directly to JSX without using spread:
236
236
  p(u) ? u._store && (u._store.validated = 1) : typeof u == "object" && u !== null && u.$$typeof === de && (u._payload.status === "fulfilled" ? p(u._payload.value) && u._payload.value._store && (u._payload.value._store.validated = 1) : u._store && (u._store.validated = 1));
237
237
  }
238
238
  function p(u) {
239
- return typeof u == "object" && u !== null && u.$$typeof === x;
239
+ return typeof u == "object" && u !== null && u.$$typeof === T;
240
240
  }
241
- var v = Lt, x = Symbol.for("react.transitional.element"), R = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), P = Symbol.for("react.strict_mode"), L = Symbol.for("react.profiler"), A = Symbol.for("react.consumer"), j = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), Rt = Symbol.for("react.suspense"), Pt = Symbol.for("react.suspense_list"), Ct = Symbol.for("react.memo"), de = Symbol.for("react.lazy"), Nt = Symbol.for("react.activity"), Dt = Symbol.for("react.client.reference"), fe = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, je = Object.prototype.hasOwnProperty, Ut = Array.isArray, he = console.createTask ? console.createTask : function() {
241
+ var v = Lt, T = Symbol.for("react.transitional.element"), R = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), P = Symbol.for("react.strict_mode"), L = Symbol.for("react.profiler"), A = Symbol.for("react.consumer"), I = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), Rt = Symbol.for("react.suspense"), Pt = Symbol.for("react.suspense_list"), Ct = Symbol.for("react.memo"), de = Symbol.for("react.lazy"), Nt = Symbol.for("react.activity"), Dt = Symbol.for("react.client.reference"), fe = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Ie = Object.prototype.hasOwnProperty, Ut = Array.isArray, he = console.createTask ? console.createTask : function() {
242
242
  return null;
243
243
  };
244
244
  v = {
@@ -250,25 +250,25 @@ React keys must be passed directly to JSX without using spread:
250
250
  v,
251
251
  i
252
252
  )(), Pe = he(r(i)), Ce = {};
253
- J.Fragment = T, J.jsx = function(u, _, z) {
254
- var Z = 1e4 > fe.recentlyCreatedOwnerStacks++;
253
+ J.Fragment = y, J.jsx = function(u, _, z) {
254
+ var E = 1e4 > fe.recentlyCreatedOwnerStacks++;
255
255
  return l(
256
256
  u,
257
257
  _,
258
258
  z,
259
259
  !1,
260
- Z ? Error("react-stack-top-frame") : Re,
261
- Z ? he(r(u)) : Pe
260
+ E ? Error("react-stack-top-frame") : Re,
261
+ E ? he(r(u)) : Pe
262
262
  );
263
263
  }, J.jsxs = function(u, _, z) {
264
- var Z = 1e4 > fe.recentlyCreatedOwnerStacks++;
264
+ var E = 1e4 > fe.recentlyCreatedOwnerStacks++;
265
265
  return l(
266
266
  u,
267
267
  _,
268
268
  z,
269
269
  !0,
270
- Z ? Error("react-stack-top-frame") : Re,
271
- Z ? he(r(u)) : Pe
270
+ E ? Error("react-stack-top-frame") : Re,
271
+ E ? he(r(u)) : Pe
272
272
  );
273
273
  };
274
274
  })()), J;
@@ -802,10 +802,10 @@ const xe = (e) => (t, n, r, o) => {
802
802
  }, xn = /* @__PURE__ */ ue(gt), Tn = (e) => (t, n, r) => {
803
803
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
804
804
  return xe(e)(t, n, o);
805
- }, An = (e) => (t, n, r) => xe(e)(t, n, r), In = (e) => async (t, n, r) => {
805
+ }, An = (e) => (t, n, r) => xe(e)(t, n, r), jn = (e) => async (t, n, r) => {
806
806
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
807
807
  return Te(e)(t, n, o);
808
- }, jn = (e) => async (t, n, r) => Te(e)(t, n, r), Sn = (e) => (t, n, r) => {
808
+ }, In = (e) => async (t, n, r) => Te(e)(t, n, r), Sn = (e) => (t, n, r) => {
809
809
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
810
810
  return ae(e)(t, n, o);
811
811
  }, On = (e) => (t, n, r) => ae(e)(t, n, r), Rn = (e) => async (t, n, r) => {
@@ -832,7 +832,7 @@ function nr(e) {
832
832
  const rr = (e) => {
833
833
  const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
834
834
  return new RegExp(`^${t}$`);
835
- }, or = /^-?\d+$/, ir = /^-?\d+(?:\.\d+)?/, cr = /^(?:true|false)$/i, sr = /^[^A-Z]*$/, ar = /^[^a-z]*$/, I = /* @__PURE__ */ s("$ZodCheck", (e, t) => {
835
+ }, or = /^-?\d+$/, ir = /^-?\d+(?:\.\d+)?/, cr = /^(?:true|false)$/i, sr = /^[^A-Z]*$/, ar = /^[^a-z]*$/, j = /* @__PURE__ */ s("$ZodCheck", (e, t) => {
836
836
  var n;
837
837
  e._zod ?? (e._zod = {}), e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
838
838
  }), kt = {
@@ -840,7 +840,7 @@ const rr = (e) => {
840
840
  bigint: "bigint",
841
841
  object: "date"
842
842
  }, zt = /* @__PURE__ */ s("$ZodCheckLessThan", (e, t) => {
843
- I.init(e, t);
843
+ j.init(e, t);
844
844
  const n = kt[typeof t.value];
845
845
  e._zod.onattach.push((r) => {
846
846
  const o = r._zod.bag, i = (t.inclusive ? o.maximum : o.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
@@ -857,7 +857,7 @@ const rr = (e) => {
857
857
  });
858
858
  };
859
859
  }), yt = /* @__PURE__ */ s("$ZodCheckGreaterThan", (e, t) => {
860
- I.init(e, t);
860
+ j.init(e, t);
861
861
  const n = kt[typeof t.value];
862
862
  e._zod.onattach.push((r) => {
863
863
  const o = r._zod.bag, i = (t.inclusive ? o.minimum : o.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
@@ -874,7 +874,7 @@ const rr = (e) => {
874
874
  });
875
875
  };
876
876
  }), ur = /* @__PURE__ */ s("$ZodCheckMultipleOf", (e, t) => {
877
- I.init(e, t), e._zod.onattach.push((n) => {
877
+ j.init(e, t), e._zod.onattach.push((n) => {
878
878
  var r;
879
879
  (r = n._zod.bag).multipleOf ?? (r.multipleOf = t.value);
880
880
  }), e._zod.check = (n) => {
@@ -890,7 +890,7 @@ const rr = (e) => {
890
890
  });
891
891
  };
892
892
  }), lr = /* @__PURE__ */ s("$ZodCheckNumberFormat", (e, t) => {
893
- I.init(e, t), t.format = t.format || "float64";
893
+ j.init(e, t), t.format = t.format || "float64";
894
894
  const n = t.format?.includes("int"), r = n ? "int" : "number", [o, i] = _n[t.format];
895
895
  e._zod.onattach.push((c) => {
896
896
  const a = c._zod.bag;
@@ -948,7 +948,7 @@ const rr = (e) => {
948
948
  };
949
949
  }), dr = /* @__PURE__ */ s("$ZodCheckMaxLength", (e, t) => {
950
950
  var n;
951
- I.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
951
+ j.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
952
952
  const o = r.value;
953
953
  return !$e(o) && o.length !== void 0;
954
954
  }), e._zod.onattach.push((r) => {
@@ -971,7 +971,7 @@ const rr = (e) => {
971
971
  };
972
972
  }), fr = /* @__PURE__ */ s("$ZodCheckMinLength", (e, t) => {
973
973
  var n;
974
- I.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
974
+ j.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
975
975
  const o = r.value;
976
976
  return !$e(o) && o.length !== void 0;
977
977
  }), e._zod.onattach.push((r) => {
@@ -994,7 +994,7 @@ const rr = (e) => {
994
994
  };
995
995
  }), hr = /* @__PURE__ */ s("$ZodCheckLengthEquals", (e, t) => {
996
996
  var n;
997
- I.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
997
+ j.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
998
998
  const o = r.value;
999
999
  return !$e(o) && o.length !== void 0;
1000
1000
  }), e._zod.onattach.push((r) => {
@@ -1017,7 +1017,7 @@ const rr = (e) => {
1017
1017
  };
1018
1018
  }), le = /* @__PURE__ */ s("$ZodCheckStringFormat", (e, t) => {
1019
1019
  var n, r;
1020
- I.init(e, t), e._zod.onattach.push((o) => {
1020
+ j.init(e, t), e._zod.onattach.push((o) => {
1021
1021
  const i = o._zod.bag;
1022
1022
  i.format = t.format, t.pattern && (i.patterns ?? (i.patterns = /* @__PURE__ */ new Set()), i.patterns.add(t.pattern));
1023
1023
  }), t.pattern ? (n = e._zod).check ?? (n.check = (o) => {
@@ -1049,7 +1049,7 @@ const rr = (e) => {
1049
1049
  }), _r = /* @__PURE__ */ s("$ZodCheckUpperCase", (e, t) => {
1050
1050
  t.pattern ?? (t.pattern = ar), le.init(e, t);
1051
1051
  }), gr = /* @__PURE__ */ s("$ZodCheckIncludes", (e, t) => {
1052
- I.init(e, t);
1052
+ j.init(e, t);
1053
1053
  const n = se(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
1054
1054
  t.pattern = r, e._zod.onattach.push((o) => {
1055
1055
  const i = o._zod.bag;
@@ -1066,7 +1066,7 @@ const rr = (e) => {
1066
1066
  });
1067
1067
  };
1068
1068
  }), vr = /* @__PURE__ */ s("$ZodCheckStartsWith", (e, t) => {
1069
- I.init(e, t);
1069
+ j.init(e, t);
1070
1070
  const n = new RegExp(`^${se(t.prefix)}.*`);
1071
1071
  t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
1072
1072
  const o = r._zod.bag;
@@ -1083,7 +1083,7 @@ const rr = (e) => {
1083
1083
  });
1084
1084
  };
1085
1085
  }), br = /* @__PURE__ */ s("$ZodCheckEndsWith", (e, t) => {
1086
- I.init(e, t);
1086
+ j.init(e, t);
1087
1087
  const n = new RegExp(`.*${se(t.suffix)}$`);
1088
1088
  t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
1089
1089
  const o = r._zod.bag;
@@ -1100,7 +1100,7 @@ const rr = (e) => {
1100
1100
  });
1101
1101
  };
1102
1102
  }), wr = /* @__PURE__ */ s("$ZodCheckOverwrite", (e, t) => {
1103
- I.init(e, t), e._zod.check = (n) => {
1103
+ j.init(e, t), e._zod.check = (n) => {
1104
1104
  n.value = t.tx(n.value);
1105
1105
  };
1106
1106
  });
@@ -1131,7 +1131,7 @@ const zr = {
1131
1131
  major: 4,
1132
1132
  minor: 1,
1133
1133
  patch: 11
1134
- }, y = /* @__PURE__ */ s("$ZodType", (e, t) => {
1134
+ }, $ = /* @__PURE__ */ s("$ZodType", (e, t) => {
1135
1135
  var n;
1136
1136
  e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = zr;
1137
1137
  const r = [...e._zod.def.checks ?? []];
@@ -1206,7 +1206,7 @@ const zr = {
1206
1206
  version: 1
1207
1207
  };
1208
1208
  }), Ae = /* @__PURE__ */ s("$ZodString", (e, t) => {
1209
- y.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? rr(e._zod.bag), e._zod.parse = (n, r) => {
1209
+ $.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? rr(e._zod.bag), e._zod.parse = (n, r) => {
1210
1210
  if (t.coerce)
1211
1211
  try {
1212
1212
  n.value = String(n.value);
@@ -1281,9 +1281,9 @@ const zr = {
1281
1281
  t.pattern ?? (t.pattern = Ln), w.init(e, t);
1282
1282
  }), Ar = /* @__PURE__ */ s("$ZodCUID", (e, t) => {
1283
1283
  t.pattern ?? (t.pattern = Cn), w.init(e, t);
1284
- }), Ir = /* @__PURE__ */ s("$ZodCUID2", (e, t) => {
1284
+ }), jr = /* @__PURE__ */ s("$ZodCUID2", (e, t) => {
1285
1285
  t.pattern ?? (t.pattern = Nn), w.init(e, t);
1286
- }), jr = /* @__PURE__ */ s("$ZodULID", (e, t) => {
1286
+ }), Ir = /* @__PURE__ */ s("$ZodULID", (e, t) => {
1287
1287
  t.pattern ?? (t.pattern = Dn), w.init(e, t);
1288
1288
  }), Sr = /* @__PURE__ */ s("$ZodXID", (e, t) => {
1289
1289
  t.pattern ?? (t.pattern = Un), w.init(e, t);
@@ -1417,7 +1417,7 @@ const Jr = /* @__PURE__ */ s("$ZodJWT", (e, t) => {
1417
1417
  });
1418
1418
  };
1419
1419
  }), Zt = /* @__PURE__ */ s("$ZodNumber", (e, t) => {
1420
- y.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? ir, e._zod.parse = (n, r) => {
1420
+ $.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? ir, e._zod.parse = (n, r) => {
1421
1421
  if (t.coerce)
1422
1422
  try {
1423
1423
  n.value = Number(n.value);
@@ -1438,7 +1438,7 @@ const Jr = /* @__PURE__ */ s("$ZodJWT", (e, t) => {
1438
1438
  }), Gr = /* @__PURE__ */ s("$ZodNumber", (e, t) => {
1439
1439
  lr.init(e, t), Zt.init(e, t);
1440
1440
  }), qr = /* @__PURE__ */ s("$ZodBoolean", (e, t) => {
1441
- y.init(e, t), e._zod.pattern = cr, e._zod.parse = (n, r) => {
1441
+ $.init(e, t), e._zod.pattern = cr, e._zod.parse = (n, r) => {
1442
1442
  if (t.coerce)
1443
1443
  try {
1444
1444
  n.value = !!n.value;
@@ -1453,9 +1453,9 @@ const Jr = /* @__PURE__ */ s("$ZodJWT", (e, t) => {
1453
1453
  }), n;
1454
1454
  };
1455
1455
  }), Hr = /* @__PURE__ */ s("$ZodUnknown", (e, t) => {
1456
- y.init(e, t), e._zod.parse = (n) => n;
1456
+ $.init(e, t), e._zod.parse = (n) => n;
1457
1457
  }), Xr = /* @__PURE__ */ s("$ZodNever", (e, t) => {
1458
- y.init(e, t), e._zod.parse = (n, r) => (n.issues.push({
1458
+ $.init(e, t), e._zod.parse = (n, r) => (n.issues.push({
1459
1459
  expected: "never",
1460
1460
  code: "invalid_type",
1461
1461
  input: n.value,
@@ -1466,7 +1466,7 @@ function Ve(e, t, n) {
1466
1466
  e.issues.length && t.issues.push(...pt(n, e.issues)), t.value[n] = e.value;
1467
1467
  }
1468
1468
  const Kr = /* @__PURE__ */ s("$ZodArray", (e, t) => {
1469
- y.init(e, t), e._zod.parse = (n, r) => {
1469
+ $.init(e, t), e._zod.parse = (n, r) => {
1470
1470
  const o = n.value;
1471
1471
  if (!Array.isArray(o))
1472
1472
  return n.issues.push({
@@ -1524,7 +1524,7 @@ function xt(e, t, n, r, o, i) {
1524
1524
  }), e.length ? Promise.all(e).then(() => n) : n;
1525
1525
  }
1526
1526
  const Qr = /* @__PURE__ */ s("$ZodObject", (e, t) => {
1527
- if (y.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
1527
+ if ($.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
1528
1528
  const a = t.shape;
1529
1529
  Object.defineProperty(t, "shape", {
1530
1530
  get: () => {
@@ -1563,59 +1563,59 @@ const Qr = /* @__PURE__ */ s("$ZodObject", (e, t) => {
1563
1563
  a.value = {};
1564
1564
  const l = [], g = c.shape;
1565
1565
  for (const p of c.keys) {
1566
- const x = g[p]._zod.run({ value: d[p], issues: [] }, f);
1567
- x instanceof Promise ? l.push(x.then((R) => ie(R, a, p, d))) : ie(x, a, p, d);
1566
+ const T = g[p]._zod.run({ value: d[p], issues: [] }, f);
1567
+ T instanceof Promise ? l.push(T.then((R) => ie(R, a, p, d))) : ie(T, a, p, d);
1568
1568
  }
1569
1569
  return i ? xt(l, d, a, f, r.value, e) : l.length ? Promise.all(l).then(() => a) : a;
1570
1570
  };
1571
1571
  }), eo = /* @__PURE__ */ s("$ZodObjectJIT", (e, t) => {
1572
1572
  Qr.init(e, t);
1573
1573
  const n = e._zod.parse, r = ye(() => Et(t)), o = (p) => {
1574
- const v = new kr(["shape", "payload", "ctx"]), x = r.value, R = (A) => {
1575
- const j = Le(A);
1576
- return `shape[${j}]._zod.run({ value: input[${j}], issues: [] }, ctx)`;
1574
+ const v = new kr(["shape", "payload", "ctx"]), T = r.value, R = (A) => {
1575
+ const I = Le(A);
1576
+ return `shape[${I}]._zod.run({ value: input[${I}], issues: [] }, ctx)`;
1577
1577
  };
1578
1578
  v.write("const input = payload.value;");
1579
- const T = /* @__PURE__ */ Object.create(null);
1579
+ const y = /* @__PURE__ */ Object.create(null);
1580
1580
  let P = 0;
1581
- for (const A of x.keys)
1582
- T[A] = `key_${P++}`;
1581
+ for (const A of T.keys)
1582
+ y[A] = `key_${P++}`;
1583
1583
  v.write("const newResult = {};");
1584
- for (const A of x.keys) {
1585
- const j = T[A], C = Le(A);
1586
- v.write(`const ${j} = ${R(A)};`), v.write(`
1587
- if (${j}.issues.length) {
1588
- payload.issues = payload.issues.concat(${j}.issues.map(iss => ({
1584
+ for (const A of T.keys) {
1585
+ const I = y[A], C = Le(A);
1586
+ v.write(`const ${I} = ${R(A)};`), v.write(`
1587
+ if (${I}.issues.length) {
1588
+ payload.issues = payload.issues.concat(${I}.issues.map(iss => ({
1589
1589
  ...iss,
1590
1590
  path: iss.path ? [${C}, ...iss.path] : [${C}]
1591
1591
  })));
1592
1592
  }
1593
1593
 
1594
1594
 
1595
- if (${j}.value === undefined) {
1595
+ if (${I}.value === undefined) {
1596
1596
  if (${C} in input) {
1597
1597
  newResult[${C}] = undefined;
1598
1598
  }
1599
1599
  } else {
1600
- newResult[${C}] = ${j}.value;
1600
+ newResult[${C}] = ${I}.value;
1601
1601
  }
1602
1602
 
1603
1603
  `);
1604
1604
  }
1605
1605
  v.write("payload.value = newResult;"), v.write("return payload;");
1606
1606
  const L = v.compile();
1607
- return (A, j) => L(p, A, j);
1607
+ return (A, I) => L(p, A, I);
1608
1608
  };
1609
1609
  let i;
1610
1610
  const c = oe, a = !dt.jitless, d = a && hn.value, l = t.catchall;
1611
1611
  let g;
1612
1612
  e._zod.parse = (p, v) => {
1613
1613
  g ?? (g = r.value);
1614
- const x = p.value;
1615
- return c(x) ? a && d && v?.async === !1 && v.jitless !== !0 ? (i || (i = o(t.shape)), p = i(p, v), l ? xt([], x, p, v, g, e) : p) : n(p, v) : (p.issues.push({
1614
+ const T = p.value;
1615
+ return c(T) ? a && d && v?.async === !1 && v.jitless !== !0 ? (i || (i = o(t.shape)), p = i(p, v), l ? xt([], T, p, v, g, e) : p) : n(p, v) : (p.issues.push({
1616
1616
  expected: "object",
1617
1617
  code: "invalid_type",
1618
- input: x,
1618
+ input: T,
1619
1619
  inst: e
1620
1620
  }), p);
1621
1621
  };
@@ -1633,7 +1633,7 @@ function We(e, t, n, r) {
1633
1633
  }), t);
1634
1634
  }
1635
1635
  const to = /* @__PURE__ */ s("$ZodUnion", (e, t) => {
1636
- y.init(e, t), b(e._zod, "optin", () => t.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), b(e._zod, "optout", () => t.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), b(e._zod, "values", () => {
1636
+ $.init(e, t), b(e._zod, "optin", () => t.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), b(e._zod, "optout", () => t.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), b(e._zod, "values", () => {
1637
1637
  if (t.options.every((o) => o._zod.values))
1638
1638
  return new Set(t.options.flatMap((o) => Array.from(o._zod.values)));
1639
1639
  }), b(e._zod, "pattern", () => {
@@ -1664,7 +1664,7 @@ const to = /* @__PURE__ */ s("$ZodUnion", (e, t) => {
1664
1664
  return c ? Promise.all(a).then((f) => We(f, o, e, i)) : We(a, o, e, i);
1665
1665
  };
1666
1666
  }), no = /* @__PURE__ */ s("$ZodIntersection", (e, t) => {
1667
- y.init(e, t), e._zod.parse = (n, r) => {
1667
+ $.init(e, t), e._zod.parse = (n, r) => {
1668
1668
  const o = n.value, i = t.left._zod.run({ value: o, issues: [] }, r), c = t.right._zod.run({ value: o, issues: [] }, r);
1669
1669
  return i instanceof Promise || c instanceof Promise ? Promise.all([i, c]).then(([f, d]) => Be(n, f, d)) : Be(n, i, c);
1670
1670
  };
@@ -1713,7 +1713,7 @@ function Be(e, t, n) {
1713
1713
  return e.value = r.data, e;
1714
1714
  }
1715
1715
  const ro = /* @__PURE__ */ s("$ZodEnum", (e, t) => {
1716
- y.init(e, t);
1716
+ $.init(e, t);
1717
1717
  const n = dn(t.entries), r = new Set(n);
1718
1718
  e._zod.values = r, e._zod.pattern = new RegExp(`^(${n.filter((o) => pn.has(typeof o)).map((o) => typeof o == "string" ? se(o) : o.toString()).join("|")})$`), e._zod.parse = (o, i) => {
1719
1719
  const c = o.value;
@@ -1725,7 +1725,7 @@ const ro = /* @__PURE__ */ s("$ZodEnum", (e, t) => {
1725
1725
  }), o;
1726
1726
  };
1727
1727
  }), oo = /* @__PURE__ */ s("$ZodTransform", (e, t) => {
1728
- y.init(e, t), e._zod.parse = (n, r) => {
1728
+ $.init(e, t), e._zod.parse = (n, r) => {
1729
1729
  if (r.direction === "backward")
1730
1730
  throw new lt(e.constructor.name);
1731
1731
  const o = t.transform(n.value, n);
@@ -1740,7 +1740,7 @@ function Ye(e, t) {
1740
1740
  return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
1741
1741
  }
1742
1742
  const io = /* @__PURE__ */ s("$ZodOptional", (e, t) => {
1743
- y.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", b(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), b(e._zod, "pattern", () => {
1743
+ $.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", b(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), b(e._zod, "pattern", () => {
1744
1744
  const n = t.innerType._zod.pattern;
1745
1745
  return n ? new RegExp(`^(${Ze(n.source)})?$`) : void 0;
1746
1746
  }), e._zod.parse = (n, r) => {
@@ -1751,12 +1751,12 @@ const io = /* @__PURE__ */ s("$ZodOptional", (e, t) => {
1751
1751
  return n.value === void 0 ? n : t.innerType._zod.run(n, r);
1752
1752
  };
1753
1753
  }), co = /* @__PURE__ */ s("$ZodNullable", (e, t) => {
1754
- y.init(e, t), b(e._zod, "optin", () => t.innerType._zod.optin), b(e._zod, "optout", () => t.innerType._zod.optout), b(e._zod, "pattern", () => {
1754
+ $.init(e, t), b(e._zod, "optin", () => t.innerType._zod.optin), b(e._zod, "optout", () => t.innerType._zod.optout), b(e._zod, "pattern", () => {
1755
1755
  const n = t.innerType._zod.pattern;
1756
1756
  return n ? new RegExp(`^(${Ze(n.source)}|null)$`) : void 0;
1757
1757
  }), b(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (n, r) => n.value === null ? n : t.innerType._zod.run(n, r);
1758
1758
  }), so = /* @__PURE__ */ s("$ZodDefault", (e, t) => {
1759
- y.init(e, t), e._zod.optin = "optional", b(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
1759
+ $.init(e, t), e._zod.optin = "optional", b(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
1760
1760
  if (r.direction === "backward")
1761
1761
  return t.innerType._zod.run(n, r);
1762
1762
  if (n.value === void 0)
@@ -1769,9 +1769,9 @@ function Je(e, t) {
1769
1769
  return e.value === void 0 && (e.value = t.defaultValue), e;
1770
1770
  }
1771
1771
  const ao = /* @__PURE__ */ s("$ZodPrefault", (e, t) => {
1772
- y.init(e, t), e._zod.optin = "optional", b(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => (r.direction === "backward" || n.value === void 0 && (n.value = t.defaultValue), t.innerType._zod.run(n, r));
1772
+ $.init(e, t), e._zod.optin = "optional", b(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => (r.direction === "backward" || n.value === void 0 && (n.value = t.defaultValue), t.innerType._zod.run(n, r));
1773
1773
  }), uo = /* @__PURE__ */ s("$ZodNonOptional", (e, t) => {
1774
- y.init(e, t), b(e._zod, "values", () => {
1774
+ $.init(e, t), b(e._zod, "values", () => {
1775
1775
  const n = t.innerType._zod.values;
1776
1776
  return n ? new Set([...n].filter((r) => r !== void 0)) : void 0;
1777
1777
  }), e._zod.parse = (n, r) => {
@@ -1788,7 +1788,7 @@ function Ge(e, t) {
1788
1788
  }), e;
1789
1789
  }
1790
1790
  const lo = /* @__PURE__ */ s("$ZodCatch", (e, t) => {
1791
- y.init(e, t), b(e._zod, "optin", () => t.innerType._zod.optin), b(e._zod, "optout", () => t.innerType._zod.optout), b(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
1791
+ $.init(e, t), b(e._zod, "optin", () => t.innerType._zod.optin), b(e._zod, "optout", () => t.innerType._zod.optout), b(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
1792
1792
  if (r.direction === "backward")
1793
1793
  return t.innerType._zod.run(n, r);
1794
1794
  const o = t.innerType._zod.run(n, r);
@@ -1807,7 +1807,7 @@ const lo = /* @__PURE__ */ s("$ZodCatch", (e, t) => {
1807
1807
  }), n.issues = []), n);
1808
1808
  };
1809
1809
  }), fo = /* @__PURE__ */ s("$ZodPipe", (e, t) => {
1810
- y.init(e, t), b(e._zod, "values", () => t.in._zod.values), b(e._zod, "optin", () => t.in._zod.optin), b(e._zod, "optout", () => t.out._zod.optout), b(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (n, r) => {
1810
+ $.init(e, t), b(e._zod, "values", () => t.in._zod.values), b(e._zod, "optin", () => t.in._zod.optin), b(e._zod, "optout", () => t.out._zod.optout), b(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (n, r) => {
1811
1811
  if (r.direction === "backward") {
1812
1812
  const i = t.out._zod.run(n, r);
1813
1813
  return i instanceof Promise ? i.then((c) => ee(c, t.in, r)) : ee(i, t.in, r);
@@ -1820,7 +1820,7 @@ function ee(e, t, n) {
1820
1820
  return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues }, n);
1821
1821
  }
1822
1822
  const ho = /* @__PURE__ */ s("$ZodReadonly", (e, t) => {
1823
- y.init(e, t), b(e._zod, "propValues", () => t.innerType._zod.propValues), b(e._zod, "values", () => t.innerType._zod.values), b(e._zod, "optin", () => t.innerType._zod.optin), b(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (n, r) => {
1823
+ $.init(e, t), b(e._zod, "propValues", () => t.innerType._zod.propValues), b(e._zod, "values", () => t.innerType._zod.values), b(e._zod, "optin", () => t.innerType._zod.optin), b(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (n, r) => {
1824
1824
  if (r.direction === "backward")
1825
1825
  return t.innerType._zod.run(n, r);
1826
1826
  const o = t.innerType._zod.run(n, r);
@@ -1831,7 +1831,7 @@ function qe(e) {
1831
1831
  return e.value = Object.freeze(e.value), e;
1832
1832
  }
1833
1833
  const po = /* @__PURE__ */ s("$ZodCustom", (e, t) => {
1834
- I.init(e, t), y.init(e, t), e._zod.parse = (n, r) => n, e._zod.check = (n) => {
1834
+ j.init(e, t), $.init(e, t), e._zod.parse = (n, r) => n, e._zod.check = (n) => {
1835
1835
  const r = n.value, o = t.fn(r);
1836
1836
  if (o instanceof Promise)
1837
1837
  return o.then((i) => He(i, n, r, e));
@@ -2017,7 +2017,7 @@ function Ao(e, t) {
2017
2017
  ...h(t)
2018
2018
  });
2019
2019
  }
2020
- function Io(e, t) {
2020
+ function jo(e, t) {
2021
2021
  return new e({
2022
2022
  type: "string",
2023
2023
  format: "ksuid",
@@ -2026,7 +2026,7 @@ function Io(e, t) {
2026
2026
  ...h(t)
2027
2027
  });
2028
2028
  }
2029
- function jo(e, t) {
2029
+ function Io(e, t) {
2030
2030
  return new e({
2031
2031
  type: "string",
2032
2032
  format: "ipv4",
@@ -2321,7 +2321,7 @@ function ci(e) {
2321
2321
  return t;
2322
2322
  }
2323
2323
  function si(e, t) {
2324
- const n = new I({
2324
+ const n = new j({
2325
2325
  check: "custom",
2326
2326
  ...h(t)
2327
2327
  });
@@ -2382,7 +2382,7 @@ const _i = (e, t) => {
2382
2382
  });
2383
2383
  }, S = s("ZodError", _i, {
2384
2384
  Parent: Error
2385
- }), gi = /* @__PURE__ */ xe(S), vi = /* @__PURE__ */ Te(S), bi = /* @__PURE__ */ ae(S), wi = /* @__PURE__ */ ue(S), ki = /* @__PURE__ */ Tn(S), zi = /* @__PURE__ */ An(S), yi = /* @__PURE__ */ In(S), $i = /* @__PURE__ */ jn(S), Zi = /* @__PURE__ */ Sn(S), Ei = /* @__PURE__ */ On(S), xi = /* @__PURE__ */ Rn(S), Ti = /* @__PURE__ */ Pn(S), $ = /* @__PURE__ */ s("ZodType", (e, t) => (y.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(F(t, {
2385
+ }), gi = /* @__PURE__ */ xe(S), vi = /* @__PURE__ */ Te(S), bi = /* @__PURE__ */ ae(S), wi = /* @__PURE__ */ ue(S), ki = /* @__PURE__ */ Tn(S), zi = /* @__PURE__ */ An(S), yi = /* @__PURE__ */ jn(S), $i = /* @__PURE__ */ In(S), Zi = /* @__PURE__ */ Sn(S), Ei = /* @__PURE__ */ On(S), xi = /* @__PURE__ */ Rn(S), Ti = /* @__PURE__ */ Pn(S), Z = /* @__PURE__ */ s("ZodType", (e, t) => ($.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(F(t, {
2386
2386
  checks: [
2387
2387
  ...t.checks ?? [],
2388
2388
  ...n.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
@@ -2400,25 +2400,25 @@ const _i = (e, t) => {
2400
2400
  return te.get(e);
2401
2401
  const r = e.clone();
2402
2402
  return te.add(r, n[0]), r;
2403
- }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), It = /* @__PURE__ */ s("_ZodString", (e, t) => {
2404
- Ae.init(e, t), $.init(e, t);
2403
+ }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), jt = /* @__PURE__ */ s("_ZodString", (e, t) => {
2404
+ Ae.init(e, t), Z.init(e, t);
2405
2405
  const n = e._zod.bag;
2406
2406
  e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(Go(...r)), e.includes = (...r) => e.check(Xo(...r)), e.startsWith = (...r) => e.check(Ko(...r)), e.endsWith = (...r) => e.check(Qo(...r)), e.min = (...r) => e.check(ce(...r)), e.max = (...r) => e.check(Tt(...r)), e.length = (...r) => e.check(At(...r)), e.nonempty = (...r) => e.check(ce(1, ...r)), e.lowercase = (r) => e.check(qo(r)), e.uppercase = (r) => e.check(Ho(r)), e.trim = () => e.check(ti()), e.normalize = (...r) => e.check(ei(...r)), e.toLowerCase = () => e.check(ni()), e.toUpperCase = () => e.check(ri());
2407
2407
  }), Ai = /* @__PURE__ */ s("ZodString", (e, t) => {
2408
- Ae.init(e, t), It.init(e, t), e.email = (n) => e.check(vo(Ii, n)), e.url = (n) => e.check(yo(ji, n)), e.jwt = (n) => e.check(Do(Yi, n)), e.emoji = (n) => e.check($o(Si, n)), e.guid = (n) => e.check(Xe(tt, n)), e.uuid = (n) => e.check(bo(re, n)), e.uuidv4 = (n) => e.check(wo(re, n)), e.uuidv6 = (n) => e.check(ko(re, n)), e.uuidv7 = (n) => e.check(zo(re, n)), e.nanoid = (n) => e.check(Zo(Oi, n)), e.guid = (n) => e.check(Xe(tt, n)), e.cuid = (n) => e.check(Eo(Ri, n)), e.cuid2 = (n) => e.check(xo(Pi, n)), e.ulid = (n) => e.check(To(Ci, n)), e.base64 = (n) => e.check(Po(Vi, n)), e.base64url = (n) => e.check(Co(Wi, n)), e.xid = (n) => e.check(Ao(Ni, n)), e.ksuid = (n) => e.check(Io(Di, n)), e.ipv4 = (n) => e.check(jo(Ui, n)), e.ipv6 = (n) => e.check(So(Fi, n)), e.cidrv4 = (n) => e.check(Oo(Li, n)), e.cidrv6 = (n) => e.check(Ro(Mi, n)), e.e164 = (n) => e.check(No(Bi, n)), e.datetime = (n) => e.check(ui(n)), e.date = (n) => e.check(di(n)), e.time = (n) => e.check(hi(n)), e.duration = (n) => e.check(mi(n));
2408
+ Ae.init(e, t), jt.init(e, t), e.email = (n) => e.check(vo(ji, n)), e.url = (n) => e.check(yo(Ii, n)), e.jwt = (n) => e.check(Do(Yi, n)), e.emoji = (n) => e.check($o(Si, n)), e.guid = (n) => e.check(Xe(tt, n)), e.uuid = (n) => e.check(bo(re, n)), e.uuidv4 = (n) => e.check(wo(re, n)), e.uuidv6 = (n) => e.check(ko(re, n)), e.uuidv7 = (n) => e.check(zo(re, n)), e.nanoid = (n) => e.check(Zo(Oi, n)), e.guid = (n) => e.check(Xe(tt, n)), e.cuid = (n) => e.check(Eo(Ri, n)), e.cuid2 = (n) => e.check(xo(Pi, n)), e.ulid = (n) => e.check(To(Ci, n)), e.base64 = (n) => e.check(Po(Vi, n)), e.base64url = (n) => e.check(Co(Wi, n)), e.xid = (n) => e.check(Ao(Ni, n)), e.ksuid = (n) => e.check(jo(Di, n)), e.ipv4 = (n) => e.check(Io(Ui, n)), e.ipv6 = (n) => e.check(So(Fi, n)), e.cidrv4 = (n) => e.check(Oo(Li, n)), e.cidrv6 = (n) => e.check(Ro(Mi, n)), e.e164 = (n) => e.check(No(Bi, n)), e.datetime = (n) => e.check(ui(n)), e.date = (n) => e.check(di(n)), e.time = (n) => e.check(hi(n)), e.duration = (n) => e.check(mi(n));
2409
2409
  });
2410
2410
  function ne(e) {
2411
2411
  return go(Ai, e);
2412
2412
  }
2413
2413
  const k = /* @__PURE__ */ s("ZodStringFormat", (e, t) => {
2414
- w.init(e, t), It.init(e, t);
2415
- }), Ii = /* @__PURE__ */ s("ZodEmail", (e, t) => {
2414
+ w.init(e, t), jt.init(e, t);
2415
+ }), ji = /* @__PURE__ */ s("ZodEmail", (e, t) => {
2416
2416
  Zr.init(e, t), k.init(e, t);
2417
2417
  }), tt = /* @__PURE__ */ s("ZodGUID", (e, t) => {
2418
2418
  yr.init(e, t), k.init(e, t);
2419
2419
  }), re = /* @__PURE__ */ s("ZodUUID", (e, t) => {
2420
2420
  $r.init(e, t), k.init(e, t);
2421
- }), ji = /* @__PURE__ */ s("ZodURL", (e, t) => {
2421
+ }), Ii = /* @__PURE__ */ s("ZodURL", (e, t) => {
2422
2422
  Er.init(e, t), k.init(e, t);
2423
2423
  }), Si = /* @__PURE__ */ s("ZodEmoji", (e, t) => {
2424
2424
  xr.init(e, t), k.init(e, t);
@@ -2427,9 +2427,9 @@ const k = /* @__PURE__ */ s("ZodStringFormat", (e, t) => {
2427
2427
  }), Ri = /* @__PURE__ */ s("ZodCUID", (e, t) => {
2428
2428
  Ar.init(e, t), k.init(e, t);
2429
2429
  }), Pi = /* @__PURE__ */ s("ZodCUID2", (e, t) => {
2430
- Ir.init(e, t), k.init(e, t);
2431
- }), Ci = /* @__PURE__ */ s("ZodULID", (e, t) => {
2432
2430
  jr.init(e, t), k.init(e, t);
2431
+ }), Ci = /* @__PURE__ */ s("ZodULID", (e, t) => {
2432
+ Ir.init(e, t), k.init(e, t);
2433
2433
  }), Ni = /* @__PURE__ */ s("ZodXID", (e, t) => {
2434
2434
  Sr.init(e, t), k.init(e, t);
2435
2435
  }), Di = /* @__PURE__ */ s("ZodKSUID", (e, t) => {
@@ -2450,46 +2450,46 @@ const k = /* @__PURE__ */ s("ZodStringFormat", (e, t) => {
2450
2450
  Br.init(e, t), k.init(e, t);
2451
2451
  }), Yi = /* @__PURE__ */ s("ZodJWT", (e, t) => {
2452
2452
  Jr.init(e, t), k.init(e, t);
2453
- }), jt = /* @__PURE__ */ s("ZodNumber", (e, t) => {
2454
- Zt.init(e, t), $.init(e, t), e.gt = (r, o) => e.check(Qe(r, o)), e.gte = (r, o) => e.check(ge(r, o)), e.min = (r, o) => e.check(ge(r, o)), e.lt = (r, o) => e.check(Ke(r, o)), e.lte = (r, o) => e.check(_e(r, o)), e.max = (r, o) => e.check(_e(r, o)), e.int = (r) => e.check(rt(r)), e.safe = (r) => e.check(rt(r)), e.positive = (r) => e.check(Qe(0, r)), e.nonnegative = (r) => e.check(ge(0, r)), e.negative = (r) => e.check(Ke(0, r)), e.nonpositive = (r) => e.check(_e(0, r)), e.multipleOf = (r, o) => e.check(et(r, o)), e.step = (r, o) => e.check(et(r, o)), e.finite = () => e;
2453
+ }), It = /* @__PURE__ */ s("ZodNumber", (e, t) => {
2454
+ Zt.init(e, t), Z.init(e, t), e.gt = (r, o) => e.check(Qe(r, o)), e.gte = (r, o) => e.check(ge(r, o)), e.min = (r, o) => e.check(ge(r, o)), e.lt = (r, o) => e.check(Ke(r, o)), e.lte = (r, o) => e.check(_e(r, o)), e.max = (r, o) => e.check(_e(r, o)), e.int = (r) => e.check(rt(r)), e.safe = (r) => e.check(rt(r)), e.positive = (r) => e.check(Qe(0, r)), e.nonnegative = (r) => e.check(ge(0, r)), e.negative = (r) => e.check(Ke(0, r)), e.nonpositive = (r) => e.check(_e(0, r)), e.multipleOf = (r, o) => e.check(et(r, o)), e.step = (r, o) => e.check(et(r, o)), e.finite = () => e;
2455
2455
  const n = e._zod.bag;
2456
2456
  e.minValue = Math.max(n.minimum ?? Number.NEGATIVE_INFINITY, n.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, e.maxValue = Math.min(n.maximum ?? Number.POSITIVE_INFINITY, n.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, e.isInt = (n.format ?? "").includes("int") || Number.isSafeInteger(n.multipleOf ?? 0.5), e.isFinite = !0, e.format = n.format ?? null;
2457
2457
  });
2458
2458
  function nt(e) {
2459
- return Vo(jt, e);
2459
+ return Vo(It, e);
2460
2460
  }
2461
2461
  const Ji = /* @__PURE__ */ s("ZodNumberFormat", (e, t) => {
2462
- Gr.init(e, t), jt.init(e, t);
2462
+ Gr.init(e, t), It.init(e, t);
2463
2463
  });
2464
2464
  function rt(e) {
2465
2465
  return Wo(Ji, e);
2466
2466
  }
2467
2467
  const Gi = /* @__PURE__ */ s("ZodBoolean", (e, t) => {
2468
- qr.init(e, t), $.init(e, t);
2468
+ qr.init(e, t), Z.init(e, t);
2469
2469
  });
2470
2470
  function ot(e) {
2471
2471
  return Bo(Gi, e);
2472
2472
  }
2473
2473
  const qi = /* @__PURE__ */ s("ZodUnknown", (e, t) => {
2474
- Hr.init(e, t), $.init(e, t);
2474
+ Hr.init(e, t), Z.init(e, t);
2475
2475
  });
2476
2476
  function it() {
2477
2477
  return Yo(qi);
2478
2478
  }
2479
2479
  const Hi = /* @__PURE__ */ s("ZodNever", (e, t) => {
2480
- Xr.init(e, t), $.init(e, t);
2480
+ Xr.init(e, t), Z.init(e, t);
2481
2481
  });
2482
2482
  function Xi(e) {
2483
2483
  return Jo(Hi, e);
2484
2484
  }
2485
2485
  const Ki = /* @__PURE__ */ s("ZodArray", (e, t) => {
2486
- Kr.init(e, t), $.init(e, t), e.element = t.element, e.min = (n, r) => e.check(ce(n, r)), e.nonempty = (n) => e.check(ce(1, n)), e.max = (n, r) => e.check(Tt(n, r)), e.length = (n, r) => e.check(At(n, r)), e.unwrap = () => e.element;
2486
+ Kr.init(e, t), Z.init(e, t), e.element = t.element, e.min = (n, r) => e.check(ce(n, r)), e.nonempty = (n) => e.check(ce(1, n)), e.max = (n, r) => e.check(Tt(n, r)), e.length = (n, r) => e.check(At(n, r)), e.unwrap = () => e.element;
2487
2487
  });
2488
2488
  function Qi(e, t) {
2489
2489
  return oi(Ki, e, t);
2490
2490
  }
2491
2491
  const ec = /* @__PURE__ */ s("ZodObject", (e, t) => {
2492
- eo.init(e, t), $.init(e, t), b(e, "shape", () => t.shape), e.keyof = () => Ie(Object.keys(e._zod.def.shape)), e.catchall = (n) => e.clone({ ...e._zod.def, catchall: n }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: it() }), e.loose = () => e.clone({ ...e._zod.def, catchall: it() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Xi() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (n) => bn(e, n), e.safeExtend = (n) => wn(e, n), e.merge = (n) => kn(e, n), e.pick = (n) => gn(e, n), e.omit = (n) => vn(e, n), e.partial = (...n) => zn(St, e, n[0]), e.required = (...n) => yn(Ot, e, n[0]);
2492
+ eo.init(e, t), Z.init(e, t), b(e, "shape", () => t.shape), e.keyof = () => je(Object.keys(e._zod.def.shape)), e.catchall = (n) => e.clone({ ...e._zod.def, catchall: n }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: it() }), e.loose = () => e.clone({ ...e._zod.def, catchall: it() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Xi() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (n) => bn(e, n), e.safeExtend = (n) => wn(e, n), e.merge = (n) => kn(e, n), e.pick = (n) => gn(e, n), e.omit = (n) => vn(e, n), e.partial = (...n) => zn(St, e, n[0]), e.required = (...n) => yn(Ot, e, n[0]);
2493
2493
  });
2494
2494
  function we(e, t) {
2495
2495
  const n = {
@@ -2500,7 +2500,7 @@ function we(e, t) {
2500
2500
  return new ec(n);
2501
2501
  }
2502
2502
  const tc = /* @__PURE__ */ s("ZodUnion", (e, t) => {
2503
- to.init(e, t), $.init(e, t), e.options = t.options;
2503
+ to.init(e, t), Z.init(e, t), e.options = t.options;
2504
2504
  });
2505
2505
  function nc(e, t) {
2506
2506
  return new tc({
@@ -2510,7 +2510,7 @@ function nc(e, t) {
2510
2510
  });
2511
2511
  }
2512
2512
  const rc = /* @__PURE__ */ s("ZodIntersection", (e, t) => {
2513
- no.init(e, t), $.init(e, t);
2513
+ no.init(e, t), Z.init(e, t);
2514
2514
  });
2515
2515
  function oc(e, t) {
2516
2516
  return new rc({
@@ -2520,7 +2520,7 @@ function oc(e, t) {
2520
2520
  });
2521
2521
  }
2522
2522
  const ke = /* @__PURE__ */ s("ZodEnum", (e, t) => {
2523
- ro.init(e, t), $.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
2523
+ ro.init(e, t), Z.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
2524
2524
  const n = new Set(Object.keys(t.entries));
2525
2525
  e.extract = (r, o) => {
2526
2526
  const i = {};
@@ -2550,7 +2550,7 @@ const ke = /* @__PURE__ */ s("ZodEnum", (e, t) => {
2550
2550
  });
2551
2551
  };
2552
2552
  });
2553
- function Ie(e, t) {
2553
+ function je(e, t) {
2554
2554
  const n = Array.isArray(e) ? Object.fromEntries(e.map((r) => [r, r])) : e;
2555
2555
  return new ke({
2556
2556
  type: "enum",
@@ -2559,7 +2559,7 @@ function Ie(e, t) {
2559
2559
  });
2560
2560
  }
2561
2561
  const ic = /* @__PURE__ */ s("ZodTransform", (e, t) => {
2562
- oo.init(e, t), $.init(e, t), e._zod.parse = (n, r) => {
2562
+ oo.init(e, t), Z.init(e, t), e._zod.parse = (n, r) => {
2563
2563
  if (r.direction === "backward")
2564
2564
  throw new lt(e.constructor.name);
2565
2565
  n.addIssue = (i) => {
@@ -2581,7 +2581,7 @@ function cc(e) {
2581
2581
  });
2582
2582
  }
2583
2583
  const St = /* @__PURE__ */ s("ZodOptional", (e, t) => {
2584
- io.init(e, t), $.init(e, t), e.unwrap = () => e._zod.def.innerType;
2584
+ io.init(e, t), Z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2585
2585
  });
2586
2586
  function ct(e) {
2587
2587
  return new St({
@@ -2590,7 +2590,7 @@ function ct(e) {
2590
2590
  });
2591
2591
  }
2592
2592
  const sc = /* @__PURE__ */ s("ZodNullable", (e, t) => {
2593
- co.init(e, t), $.init(e, t), e.unwrap = () => e._zod.def.innerType;
2593
+ co.init(e, t), Z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2594
2594
  });
2595
2595
  function st(e) {
2596
2596
  return new sc({
@@ -2599,7 +2599,7 @@ function st(e) {
2599
2599
  });
2600
2600
  }
2601
2601
  const ac = /* @__PURE__ */ s("ZodDefault", (e, t) => {
2602
- so.init(e, t), $.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2602
+ so.init(e, t), Z.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2603
2603
  });
2604
2604
  function uc(e, t) {
2605
2605
  return new ac({
@@ -2611,7 +2611,7 @@ function uc(e, t) {
2611
2611
  });
2612
2612
  }
2613
2613
  const lc = /* @__PURE__ */ s("ZodPrefault", (e, t) => {
2614
- ao.init(e, t), $.init(e, t), e.unwrap = () => e._zod.def.innerType;
2614
+ ao.init(e, t), Z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2615
2615
  });
2616
2616
  function dc(e, t) {
2617
2617
  return new lc({
@@ -2623,7 +2623,7 @@ function dc(e, t) {
2623
2623
  });
2624
2624
  }
2625
2625
  const Ot = /* @__PURE__ */ s("ZodNonOptional", (e, t) => {
2626
- uo.init(e, t), $.init(e, t), e.unwrap = () => e._zod.def.innerType;
2626
+ uo.init(e, t), Z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2627
2627
  });
2628
2628
  function fc(e, t) {
2629
2629
  return new Ot({
@@ -2633,7 +2633,7 @@ function fc(e, t) {
2633
2633
  });
2634
2634
  }
2635
2635
  const hc = /* @__PURE__ */ s("ZodCatch", (e, t) => {
2636
- lo.init(e, t), $.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2636
+ lo.init(e, t), Z.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2637
2637
  });
2638
2638
  function pc(e, t) {
2639
2639
  return new hc({
@@ -2643,7 +2643,7 @@ function pc(e, t) {
2643
2643
  });
2644
2644
  }
2645
2645
  const mc = /* @__PURE__ */ s("ZodPipe", (e, t) => {
2646
- fo.init(e, t), $.init(e, t), e.in = t.in, e.out = t.out;
2646
+ fo.init(e, t), Z.init(e, t), e.in = t.in, e.out = t.out;
2647
2647
  });
2648
2648
  function at(e, t) {
2649
2649
  return new mc({
@@ -2654,7 +2654,7 @@ function at(e, t) {
2654
2654
  });
2655
2655
  }
2656
2656
  const _c = /* @__PURE__ */ s("ZodReadonly", (e, t) => {
2657
- ho.init(e, t), $.init(e, t), e.unwrap = () => e._zod.def.innerType;
2657
+ ho.init(e, t), Z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2658
2658
  });
2659
2659
  function gc(e) {
2660
2660
  return new _c({
@@ -2663,7 +2663,7 @@ function gc(e) {
2663
2663
  });
2664
2664
  }
2665
2665
  const vc = /* @__PURE__ */ s("ZodCustom", (e, t) => {
2666
- po.init(e, t), $.init(e, t);
2666
+ po.init(e, t), Z.init(e, t);
2667
2667
  });
2668
2668
  function bc(e, t = {}) {
2669
2669
  return ii(vc, e, t);
@@ -2674,7 +2674,7 @@ function wc(e) {
2674
2674
  const kc = we({
2675
2675
  title: ne().min(1, "Title is required").max(200, "Title too long"),
2676
2676
  content: ne().min(1, "Content is required"),
2677
- format: Ie(["html", "markdown"]).default("html"),
2677
+ format: je(["html", "markdown"]).default("html"),
2678
2678
  metadata: we({
2679
2679
  createdAt: ne().datetime(),
2680
2680
  updatedAt: ne().datetime(),
@@ -2685,7 +2685,7 @@ const kc = we({
2685
2685
  we({
2686
2686
  includeStyles: ot().default(!0),
2687
2687
  includeMeta: ot().default(!0),
2688
- format: Ie(["html", "txt"]).default("html")
2688
+ format: je(["html", "txt"]).default("html")
2689
2689
  });
2690
2690
  const zc = (e = "") => {
2691
2691
  const [t, n] = ze({
@@ -2817,38 +2817,38 @@ const zc = (e = "") => {
2817
2817
  t?.(r.content, P);
2818
2818
  } else
2819
2819
  p(!0), setTimeout(() => p(!1), 3e3);
2820
- }, x = () => {
2820
+ }, T = () => {
2821
2821
  try {
2822
- const T = d();
2823
- n?.(T);
2824
- const P = new Blob([T], { type: "text/html" }), L = URL.createObjectURL(P), A = document.createElement("a");
2822
+ const y = d();
2823
+ n?.(y);
2824
+ const P = new Blob([y], { type: "text/html" }), L = URL.createObjectURL(P), A = document.createElement("a");
2825
2825
  A.href = L, A.download = `${r.title.replace(/\s+/g, "_")}.html`, document.body.appendChild(A), A.click(), document.body.removeChild(A), URL.revokeObjectURL(L);
2826
- } catch (T) {
2827
- alert("Export failed: " + (T instanceof Error ? T.message : "Unknown error"));
2826
+ } catch (y) {
2827
+ alert("Export failed: " + (y instanceof Error ? y.message : "Unknown error"));
2828
2828
  }
2829
2829
  }, R = () => {
2830
2830
  confirm("Are you sure you want to clear the editor? All unsaved changes will be lost.") && l();
2831
2831
  };
2832
- return /* @__PURE__ */ m.jsxs("div", { className: "w-full max-w-6xl mx-auto bg-white rounded-xl shadow-lg overflow-hidden", children: [
2833
- /* @__PURE__ */ m.jsxs("div", { className: "p-6 border-b border-gray-200 bg-gray-50", children: [
2832
+ return /* @__PURE__ */ m.jsxs("div", { className: "w-full max-w-6xl mx-auto bg-white rounded-xl shadow-lg border border-gray-200 overflow-hidden", children: [
2833
+ /* @__PURE__ */ m.jsxs("div", { className: "p-6 border-b border-gray-200 bg-gray-50 rounded-t-xl", children: [
2834
2834
  /* @__PURE__ */ m.jsx(
2835
2835
  "input",
2836
2836
  {
2837
2837
  type: "text",
2838
- className: "w-full bg-transparent text-2xl font-bold text-gray-800 outline-none placeholder-gray-400",
2838
+ className: "w-full bg-transparent text-2xl font-bold text-gray-800 placeholder-gray-500 outline-none border-none focus:ring-0",
2839
2839
  value: r.title,
2840
- onChange: (T) => c(T.target.value),
2840
+ onChange: (y) => c(y.target.value),
2841
2841
  placeholder: "Document Title"
2842
2842
  }
2843
2843
  ),
2844
- g && /* @__PURE__ */ m.jsx("div", { className: "text-red-600 text-sm mt-2 animate-fadeIn", children: "Please add content before saving" })
2844
+ g && /* @__PURE__ */ m.jsx("div", { className: "mt-2 px-3 py-2 bg-red-50 border border-red-200 rounded-lg text-red-700 text-sm animate-pulse", children: "Please add content before saving" })
2845
2845
  ] }),
2846
2846
  /* @__PURE__ */ m.jsx(
2847
2847
  un,
2848
2848
  {
2849
2849
  onCommand: a,
2850
2850
  onSave: v,
2851
- onExport: x,
2851
+ onExport: T,
2852
2852
  onClear: R,
2853
2853
  hasUnsavedChanges: r.hasUnsavedChanges
2854
2854
  }
@@ -2857,9 +2857,11 @@ const zc = (e = "") => {
2857
2857
  "div",
2858
2858
  {
2859
2859
  ref: o,
2860
- className: "editor-content min-h-[500px] p-8 border-none outline-none resize-none text-gray-700 leading-relaxed prose max-w-none",
2860
+ className: "min-h-[500px] p-8 prose max-w-none border-none outline-none resize-none text-gray-700 leading-relaxed bg-white focus:bg-gray-50 transition-colors duration-200",
2861
2861
  contentEditable: !0,
2862
- onInput: (T) => i(T.currentTarget.innerHTML)
2862
+ onInput: (y) => i(y.currentTarget.innerHTML),
2863
+ onFocus: (y) => y.currentTarget.classList.add("bg-gray-50"),
2864
+ onBlur: (y) => y.currentTarget.classList.remove("bg-gray-50")
2863
2865
  }
2864
2866
  ),
2865
2867
  /* @__PURE__ */ m.jsx(