@abduljebar/text-editor 1.1.5 → 1.1.6

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
@@ -1,6 +1,6 @@
1
- import xr, { useState as Oe, useEffect as rt, useRef as zr, useCallback as Y } from "react";
2
- import { Save as Er, FileDown as $r, Trash2 as Zr, Bold as Ar, Italic as Tr, Underline as Cr, Strikethrough as Sr, List as Ir, ListOrdered as Rr, Heading1 as jr, Heading2 as Pr, Type as Or, AlignLeft as Nr, AlignCenter as Lr, AlignRight as Dr, Link as Ur } from "lucide-react";
3
- var Ae = { exports: {} }, we = {};
1
+ import zr, { useState as Oe, useEffect as Ne, useRef as mt, useCallback as W } from "react";
2
+ import { Save as Er, FileDown as $r, Trash2 as Zr, Bold as Tr, Italic as Ar, Underline as Sr, Strikethrough as Ir, List as Cr, ListOrdered as Rr, Heading1 as jr, Heading2 as Pr, Type as Or, AlignLeft as Nr, AlignCenter as Lr, AlignRight as Mr, Link as Ur } from "lucide-react";
3
+ var Te = { exports: {} }, we = {};
4
4
  /**
5
5
  * @license React
6
6
  * react-jsx-runtime.production.js
@@ -10,10 +10,10 @@ var Ae = { exports: {} }, we = {};
10
10
  * This source code is licensed under the MIT license found in the
11
11
  * LICENSE file in the root directory of this source tree.
12
12
  */
13
- var mt;
14
- function Mr() {
15
- if (mt) return we;
16
- mt = 1;
13
+ var ft;
14
+ function Dr() {
15
+ if (ft) return we;
16
+ ft = 1;
17
17
  var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
18
18
  function r(n, o, s) {
19
19
  var i = null;
@@ -42,9 +42,9 @@ var ke = {};
42
42
  * This source code is licensed under the MIT license found in the
43
43
  * LICENSE file in the root directory of this source tree.
44
44
  */
45
- var ft;
45
+ var pt;
46
46
  function Fr() {
47
- return ft || (ft = 1, process.env.NODE_ENV !== "production" && (function() {
47
+ return pt || (pt = 1, process.env.NODE_ENV !== "production" && (function() {
48
48
  function e(l) {
49
49
  if (l == null) return null;
50
50
  if (typeof l == "function")
@@ -53,11 +53,11 @@ function Fr() {
53
53
  switch (l) {
54
54
  case P:
55
55
  return "Fragment";
56
- case D:
56
+ case M:
57
57
  return "Profiler";
58
58
  case U:
59
59
  return "StrictMode";
60
- case B:
60
+ case Y:
61
61
  return "Suspense";
62
62
  case A:
63
63
  return "SuspenseList";
@@ -68,21 +68,21 @@ function Fr() {
68
68
  switch (typeof l.tag == "number" && console.error(
69
69
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
70
70
  ), l.$$typeof) {
71
- case C:
71
+ case T:
72
72
  return "Portal";
73
73
  case R:
74
74
  return l.displayName || "Context";
75
75
  case N:
76
76
  return (l._context.displayName || "Context") + ".Consumer";
77
- case M:
78
- var y = l.render;
79
- return l = l.displayName, l || (l = y.displayName || y.name || "", l = l !== "" ? "ForwardRef(" + l + ")" : "ForwardRef"), l;
80
- case b:
81
- return y = l.displayName || null, y !== null ? y : e(l.type) || "Memo";
77
+ case D:
78
+ var k = l.render;
79
+ return l = l.displayName, l || (l = k.displayName || k.name || "", l = l !== "" ? "ForwardRef(" + l + ")" : "ForwardRef"), l;
80
+ case _:
81
+ return k = l.displayName || null, k !== null ? k : e(l.type) || "Memo";
82
82
  case F:
83
- y = l._payload, l = l._init;
83
+ k = l._payload, l = l._init;
84
84
  try {
85
- return e(l(y));
85
+ return e(l(k));
86
86
  } catch {
87
87
  }
88
88
  }
@@ -94,15 +94,15 @@ function Fr() {
94
94
  function r(l) {
95
95
  try {
96
96
  t(l);
97
- var y = !1;
97
+ var k = !1;
98
98
  } catch {
99
- y = !0;
99
+ k = !0;
100
100
  }
101
- if (y) {
102
- y = console;
103
- var E = y.error, Z = typeof Symbol == "function" && Symbol.toStringTag && l[Symbol.toStringTag] || l.constructor.name || "Object";
104
- return E.call(
105
- y,
101
+ if (k) {
102
+ k = console;
103
+ var z = k.error, Z = typeof Symbol == "function" && Symbol.toStringTag && l[Symbol.toStringTag] || l.constructor.name || "Object";
104
+ return z.call(
105
+ k,
106
106
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
107
107
  Z
108
108
  ), t(l);
@@ -113,8 +113,8 @@ function Fr() {
113
113
  if (typeof l == "object" && l !== null && l.$$typeof === F)
114
114
  return "<...>";
115
115
  try {
116
- var y = e(l);
117
- return y ? "<" + y + ">" : "<...>";
116
+ var k = e(l);
117
+ return k ? "<" + k + ">" : "<...>";
118
118
  } catch {
119
119
  return "<...>";
120
120
  }
@@ -128,20 +128,20 @@ function Fr() {
128
128
  }
129
129
  function i(l) {
130
130
  if (ge.call(l, "key")) {
131
- var y = Object.getOwnPropertyDescriptor(l, "key").get;
132
- if (y && y.isReactWarning) return !1;
131
+ var k = Object.getOwnPropertyDescriptor(l, "key").get;
132
+ if (k && k.isReactWarning) return !1;
133
133
  }
134
134
  return l.key !== void 0;
135
135
  }
136
- function a(l, y) {
137
- function E() {
136
+ function a(l, k) {
137
+ function z() {
138
138
  G || (G = !0, console.error(
139
139
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
140
- y
140
+ k
141
141
  ));
142
142
  }
143
- E.isReactWarning = !0, Object.defineProperty(l, "key", {
144
- get: E,
143
+ z.isReactWarning = !0, Object.defineProperty(l, "key", {
144
+ get: z,
145
145
  configurable: !0
146
146
  });
147
147
  }
@@ -151,15 +151,15 @@ function Fr() {
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
  )), l = this.props.ref, l !== void 0 ? l : null;
153
153
  }
154
- function d(l, y, E, Z, X, ue) {
155
- var $ = E.ref;
154
+ function d(l, k, z, Z, X, ue) {
155
+ var E = z.ref;
156
156
  return l = {
157
- $$typeof: _,
157
+ $$typeof: b,
158
158
  type: l,
159
- key: y,
160
- props: E,
159
+ key: k,
160
+ props: z,
161
161
  _owner: Z
162
- }, ($ !== void 0 ? $ : null) !== null ? Object.defineProperty(l, "ref", {
162
+ }, (E !== void 0 ? E : null) !== null ? Object.defineProperty(l, "ref", {
163
163
  enumerable: !1,
164
164
  get: c
165
165
  }) : Object.defineProperty(l, "ref", { enumerable: !1, value: null }), l._store = {}, Object.defineProperty(l._store, "validated", {
@@ -184,25 +184,25 @@ function Fr() {
184
184
  value: ue
185
185
  }), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
186
186
  }
187
- function m(l, y, E, Z, X, ue) {
188
- var $ = y.children;
189
- if ($ !== void 0)
187
+ function h(l, k, z, Z, X, ue) {
188
+ var E = k.children;
189
+ if (E !== void 0)
190
190
  if (Z)
191
- if (be($)) {
192
- for (Z = 0; Z < $.length; Z++)
193
- k($[Z]);
194
- Object.freeze && Object.freeze($);
191
+ if (be(E)) {
192
+ for (Z = 0; Z < E.length; Z++)
193
+ $(E[Z]);
194
+ Object.freeze && Object.freeze(E);
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 k($);
200
- if (ge.call(y, "key")) {
201
- $ = e(l);
202
- var K = Object.keys(y).filter(function(le) {
199
+ else $(E);
200
+ if (ge.call(k, "key")) {
201
+ E = e(l);
202
+ var K = Object.keys(k).filter(function(le) {
203
203
  return le !== "key";
204
204
  });
205
- Z = 0 < K.length ? "{key: someKey, " + K.join(": ..., ") + ": ...}" : "{key: someKey}", _e[$ + Z] || (K = 0 < K.length ? "{" + K.join(": ..., ") + ": ...}" : "{}", console.error(
205
+ Z = 0 < K.length ? "{key: someKey, " + K.join(": ..., ") + ": ...}" : "{key: someKey}", _e[E + Z] || (K = 0 < K.length ? "{" + K.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} />
@@ -210,74 +210,74 @@ React keys must be passed directly to JSX without using spread:
210
210
  let props = %s;
211
211
  <%s key={someKey} {...props} />`,
212
212
  Z,
213
- $,
213
+ E,
214
214
  K,
215
- $
216
- ), _e[$ + Z] = !0);
215
+ E
216
+ ), _e[E + Z] = !0);
217
217
  }
218
- if ($ = null, E !== void 0 && (r(E), $ = "" + E), i(y) && (r(y.key), $ = "" + y.key), "key" in y) {
219
- E = {};
220
- for (var te in y)
221
- te !== "key" && (E[te] = y[te]);
222
- } else E = y;
223
- return $ && a(
224
- E,
218
+ if (E = null, z !== void 0 && (r(z), E = "" + z), i(k) && (r(k.key), E = "" + k.key), "key" in k) {
219
+ z = {};
220
+ for (var te in k)
221
+ te !== "key" && (z[te] = k[te]);
222
+ } else z = k;
223
+ return E && a(
224
+ z,
225
225
  typeof l == "function" ? l.displayName || l.name || "Unknown" : l
226
226
  ), d(
227
227
  l,
228
- $,
229
228
  E,
229
+ z,
230
230
  o(),
231
231
  X,
232
232
  ue
233
233
  );
234
234
  }
235
- function k(l) {
236
- w(l) ? l._store && (l._store.validated = 1) : typeof l == "object" && l !== null && l.$$typeof === F && (l._payload.status === "fulfilled" ? w(l._payload.value) && l._payload.value._store && (l._payload.value._store.validated = 1) : l._store && (l._store.validated = 1));
235
+ function $(l) {
236
+ g(l) ? l._store && (l._store.validated = 1) : typeof l == "object" && l !== null && l.$$typeof === F && (l._payload.status === "fulfilled" ? g(l._payload.value) && l._payload.value._store && (l._payload.value._store.validated = 1) : l._store && (l._store.validated = 1));
237
237
  }
238
- function w(l) {
239
- return typeof l == "object" && l !== null && l.$$typeof === _;
238
+ function g(l) {
239
+ return typeof l == "object" && l !== null && l.$$typeof === b;
240
240
  }
241
- var f = xr, _ = Symbol.for("react.transitional.element"), C = Symbol.for("react.portal"), P = Symbol.for("react.fragment"), U = Symbol.for("react.strict_mode"), D = Symbol.for("react.profiler"), N = Symbol.for("react.consumer"), R = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), B = Symbol.for("react.suspense"), A = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), q = Symbol.for("react.activity"), $e = Symbol.for("react.client.reference"), ee = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ge = Object.prototype.hasOwnProperty, be = Array.isArray, J = console.createTask ? console.createTask : function() {
241
+ var m = zr, b = Symbol.for("react.transitional.element"), T = Symbol.for("react.portal"), P = Symbol.for("react.fragment"), U = Symbol.for("react.strict_mode"), M = Symbol.for("react.profiler"), N = Symbol.for("react.consumer"), R = Symbol.for("react.context"), D = Symbol.for("react.forward_ref"), Y = Symbol.for("react.suspense"), A = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), q = Symbol.for("react.activity"), $e = Symbol.for("react.client.reference"), ee = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ge = Object.prototype.hasOwnProperty, be = Array.isArray, J = console.createTask ? console.createTask : function() {
242
242
  return null;
243
243
  };
244
- f = {
244
+ m = {
245
245
  react_stack_bottom_frame: function(l) {
246
246
  return l();
247
247
  }
248
248
  };
249
- var G, H = {}, v = f.react_stack_bottom_frame.bind(
250
- f,
249
+ var G, H = {}, w = m.react_stack_bottom_frame.bind(
250
+ m,
251
251
  s
252
252
  )(), ve = J(n(s)), _e = {};
253
- ke.Fragment = P, ke.jsx = function(l, y, E) {
253
+ ke.Fragment = P, ke.jsx = function(l, k, z) {
254
254
  var Z = 1e4 > ee.recentlyCreatedOwnerStacks++;
255
- return m(
255
+ return h(
256
256
  l,
257
- y,
258
- E,
257
+ k,
258
+ z,
259
259
  !1,
260
- Z ? Error("react-stack-top-frame") : v,
260
+ Z ? Error("react-stack-top-frame") : w,
261
261
  Z ? J(n(l)) : ve
262
262
  );
263
- }, ke.jsxs = function(l, y, E) {
263
+ }, ke.jsxs = function(l, k, z) {
264
264
  var Z = 1e4 > ee.recentlyCreatedOwnerStacks++;
265
- return m(
265
+ return h(
266
266
  l,
267
- y,
268
- E,
267
+ k,
268
+ z,
269
269
  !0,
270
- Z ? Error("react-stack-top-frame") : v,
270
+ Z ? Error("react-stack-top-frame") : w,
271
271
  Z ? J(n(l)) : ve
272
272
  );
273
273
  };
274
274
  })()), ke;
275
275
  }
276
- var pt;
276
+ var ht;
277
277
  function Vr() {
278
- return pt || (pt = 1, process.env.NODE_ENV === "production" ? Ae.exports = Mr() : Ae.exports = Fr()), Ae.exports;
278
+ return ht || (ht = 1, process.env.NODE_ENV === "production" ? Te.exports = Dr() : Te.exports = Fr()), Te.exports;
279
279
  }
280
- var x = Vr();
280
+ var y = Vr();
281
281
  const Gr = ({
282
282
  onCommand: e,
283
283
  onSave: t,
@@ -286,73 +286,73 @@ const Gr = ({
286
286
  showButtons: o = !1,
287
287
  hasUnsavedChanges: s
288
288
  }) => {
289
- const [i, a] = Oe([]), [c, d] = Oe("p"), m = () => {
290
- const f = [];
291
- let _ = "p";
292
- document.queryCommandState("bold") && f.push("bold"), document.queryCommandState("italic") && f.push("italic"), document.queryCommandState("underline") && f.push("underline"), document.queryCommandState("strikeThrough") && f.push("strikeThrough"), document.queryCommandState("insertUnorderedList") && f.push("insertUnorderedList"), document.queryCommandState("insertOrderedList") && f.push("insertOrderedList"), document.queryCommandState("justifyLeft") && f.push("justifyLeft"), document.queryCommandState("justifyCenter") && f.push("justifyCenter"), document.queryCommandState("justifyRight") && f.push("justifyRight");
293
- const C = window.getSelection();
294
- if (C && C.rangeCount > 0) {
295
- let P = C.getRangeAt(0).commonAncestorContainer;
289
+ const [i, a] = Oe([]), [c, d] = Oe("p"), h = () => {
290
+ const m = [];
291
+ let b = "p";
292
+ document.queryCommandState("bold") && m.push("bold"), document.queryCommandState("italic") && m.push("italic"), document.queryCommandState("underline") && m.push("underline"), document.queryCommandState("strikeThrough") && m.push("strikeThrough"), document.queryCommandState("insertUnorderedList") && m.push("insertUnorderedList"), document.queryCommandState("insertOrderedList") && m.push("insertOrderedList"), document.queryCommandState("justifyLeft") && m.push("justifyLeft"), document.queryCommandState("justifyCenter") && m.push("justifyCenter"), document.queryCommandState("justifyRight") && m.push("justifyRight");
293
+ const T = window.getSelection();
294
+ if (T && T.rangeCount > 0) {
295
+ let P = T.getRangeAt(0).commonAncestorContainer;
296
296
  for (; P && P.nodeType === Node.ELEMENT_NODE; ) {
297
- const U = P, D = U.tagName.toLowerCase();
298
- if (["h1", "h2", "p", "div"].includes(D)) {
299
- D === "h1" || D === "h2" ? (_ = D, f.push(`formatBlock:${D}`)) : (D === "p" || D === "div" && !_) && (_ = "p");
297
+ const U = P, M = U.tagName.toLowerCase();
298
+ if (["h1", "h2", "p", "div"].includes(M)) {
299
+ M === "h1" || M === "h2" ? (b = M, m.push(`formatBlock:${M}`)) : (M === "p" || M === "div" && !b) && (b = "p");
300
300
  break;
301
301
  }
302
302
  P = U.parentNode;
303
303
  }
304
304
  }
305
- d(_), a(f);
305
+ d(b), a(m);
306
306
  };
307
- rt(() => {
308
- const f = () => {
309
- m();
310
- }, _ = () => {
311
- setTimeout(m, 10);
307
+ Ne(() => {
308
+ const m = () => {
309
+ h();
310
+ }, b = () => {
311
+ setTimeout(h, 10);
312
312
  };
313
- return document.addEventListener("selectionchange", f), document.addEventListener("click", _), document.addEventListener("keyup", _), () => {
314
- document.removeEventListener("selectionchange", f), document.removeEventListener("click", _), document.removeEventListener("keyup", _);
313
+ return document.addEventListener("selectionchange", m), document.addEventListener("click", b), document.addEventListener("keyup", b), () => {
314
+ document.removeEventListener("selectionchange", m), document.removeEventListener("click", b), document.removeEventListener("keyup", b);
315
315
  };
316
316
  }, []);
317
- const k = () => {
318
- const f = prompt("Enter URL:");
319
- f && e("createLink", f);
320
- }, w = [
317
+ const $ = () => {
318
+ const m = prompt("Enter URL:");
319
+ m && e("createLink", m);
320
+ }, g = [
321
321
  {
322
322
  id: "bold",
323
323
  command: "bold",
324
- icon: /* @__PURE__ */ x.jsx(Ar, { size: 18 }),
324
+ icon: /* @__PURE__ */ y.jsx(Tr, { size: 18 }),
325
325
  title: "Bold"
326
326
  },
327
327
  {
328
328
  id: "italic",
329
329
  command: "italic",
330
- icon: /* @__PURE__ */ x.jsx(Tr, { size: 18 }),
330
+ icon: /* @__PURE__ */ y.jsx(Ar, { size: 18 }),
331
331
  title: "Italic"
332
332
  },
333
333
  {
334
334
  id: "underline",
335
335
  command: "underline",
336
- icon: /* @__PURE__ */ x.jsx(Cr, { size: 18 }),
336
+ icon: /* @__PURE__ */ y.jsx(Sr, { size: 18 }),
337
337
  title: "Underline"
338
338
  },
339
339
  {
340
340
  id: "strikeThrough",
341
341
  command: "strikeThrough",
342
- icon: /* @__PURE__ */ x.jsx(Sr, { size: 18 }),
342
+ icon: /* @__PURE__ */ y.jsx(Ir, { size: 18 }),
343
343
  title: "Strikethrough"
344
344
  },
345
345
  { id: "separator-1", separator: !0 },
346
346
  {
347
347
  id: "unordered-list",
348
348
  command: "insertUnorderedList",
349
- icon: /* @__PURE__ */ x.jsx(Ir, { size: 18 }),
349
+ icon: /* @__PURE__ */ y.jsx(Cr, { size: 18 }),
350
350
  title: "Bullet List"
351
351
  },
352
352
  {
353
353
  id: "ordered-list",
354
354
  command: "insertOrderedList",
355
- icon: /* @__PURE__ */ x.jsx(Rr, { size: 18 }),
355
+ icon: /* @__PURE__ */ y.jsx(Rr, { size: 18 }),
356
356
  title: "Numbered List"
357
357
  },
358
358
  { id: "separator-2", separator: !0 },
@@ -360,7 +360,7 @@ const Gr = ({
360
360
  id: "heading-1",
361
361
  command: "formatBlock",
362
362
  value: "h1",
363
- icon: /* @__PURE__ */ x.jsx(jr, { size: 18 }),
363
+ icon: /* @__PURE__ */ y.jsx(jr, { size: 18 }),
364
364
  title: "Heading 1",
365
365
  isActive: c === "h1"
366
366
  },
@@ -368,7 +368,7 @@ const Gr = ({
368
368
  id: "heading-2",
369
369
  command: "formatBlock",
370
370
  value: "h2",
371
- icon: /* @__PURE__ */ x.jsx(Pr, { size: 18 }),
371
+ icon: /* @__PURE__ */ y.jsx(Pr, { size: 18 }),
372
372
  title: "Heading 2",
373
373
  isActive: c === "h2"
374
374
  },
@@ -376,7 +376,7 @@ const Gr = ({
376
376
  id: "paragraph",
377
377
  command: "formatBlock",
378
378
  value: "p",
379
- icon: /* @__PURE__ */ x.jsx(Or, { size: 18 }),
379
+ icon: /* @__PURE__ */ y.jsx(Or, { size: 18 }),
380
380
  title: "Paragraph",
381
381
  isActive: c === "p"
382
382
  },
@@ -384,50 +384,50 @@ const Gr = ({
384
384
  {
385
385
  id: "align-left",
386
386
  command: "justifyLeft",
387
- icon: /* @__PURE__ */ x.jsx(Nr, { size: 18 }),
387
+ icon: /* @__PURE__ */ y.jsx(Nr, { size: 18 }),
388
388
  title: "Align Left"
389
389
  },
390
390
  {
391
391
  id: "align-center",
392
392
  command: "justifyCenter",
393
- icon: /* @__PURE__ */ x.jsx(Lr, { size: 18 }),
393
+ icon: /* @__PURE__ */ y.jsx(Lr, { size: 18 }),
394
394
  title: "Center"
395
395
  },
396
396
  {
397
397
  id: "align-right",
398
398
  command: "justifyRight",
399
- icon: /* @__PURE__ */ x.jsx(Dr, { size: 18 }),
399
+ icon: /* @__PURE__ */ y.jsx(Mr, { size: 18 }),
400
400
  title: "Align Right"
401
401
  },
402
402
  { id: "separator-4", separator: !0 },
403
403
  {
404
404
  id: "link",
405
405
  command: "createLink",
406
- icon: /* @__PURE__ */ x.jsx(Ur, { size: 18 }),
406
+ icon: /* @__PURE__ */ y.jsx(Ur, { size: 18 }),
407
407
  title: "Insert Link",
408
- onClick: k
408
+ onClick: $
409
409
  }
410
410
  ];
411
- return /* @__PURE__ */ x.jsxs("div", { className: "flex flex-wrap justify-between items-center p-3 bg-gray-50 border-b border-gray-200", children: [
412
- /* @__PURE__ */ x.jsx("div", { className: "flex flex-wrap items-center gap-1", children: w.map((f) => {
413
- if ("separator" in f)
414
- return /* @__PURE__ */ x.jsx("div", { className: "w-px h-6 bg-gray-300 mx-2" }, f.id);
415
- const _ = f.isActive !== void 0 ? f.isActive : i.includes(f.command);
416
- return /* @__PURE__ */ x.jsx(
411
+ return /* @__PURE__ */ y.jsxs("div", { className: "flex flex-wrap justify-between items-center p-3 bg-gray-50 border-b border-gray-200", children: [
412
+ /* @__PURE__ */ y.jsx("div", { className: "flex flex-wrap items-center gap-1", children: g.map((m) => {
413
+ if ("separator" in m)
414
+ return /* @__PURE__ */ y.jsx("div", { className: "w-px h-6 bg-gray-300 mx-2" }, m.id);
415
+ const b = m.isActive !== void 0 ? m.isActive : i.includes(m.command);
416
+ return /* @__PURE__ */ y.jsx(
417
417
  "button",
418
418
  {
419
- onClick: () => f.onClick ? f.onClick() : e(f.command, f.value),
420
- title: f.title,
419
+ onClick: () => m.onClick ? m.onClick() : e(m.command, m.value),
420
+ title: m.title,
421
421
  type: "button",
422
422
  className: `w-9 h-9 flex items-center justify-center rounded-md border transition-colors duration-200
423
- ${_ ? "bg-blue-100 text-blue-600 border-blue-300 hover:bg-blue-200" : "bg-white border-gray-300 text-gray-700 hover:bg-gray-100"}`,
424
- children: f.icon
423
+ ${b ? "bg-blue-100 text-blue-600 border-blue-300 hover:bg-blue-200" : "bg-white border-gray-300 text-gray-700 hover:bg-gray-100"}`,
424
+ children: m.icon
425
425
  },
426
- f.id
426
+ m.id
427
427
  );
428
428
  }) }),
429
- o && /* @__PURE__ */ x.jsxs("div", { className: "flex items-center gap-2 mt-2 sm:mt-0", children: [
430
- /* @__PURE__ */ x.jsxs(
429
+ o && /* @__PURE__ */ y.jsxs("div", { className: "flex items-center gap-2 mt-2 sm:mt-0", children: [
430
+ /* @__PURE__ */ y.jsxs(
431
431
  "button",
432
432
  {
433
433
  onClick: t,
@@ -435,32 +435,32 @@ const Gr = ({
435
435
  title: "Save Document",
436
436
  className: "flex items-center gap-2 px-4 py-2 bg-blue-600 text-white text-sm font-medium rounded-md hover:bg-blue-700 disabled:bg-blue-300 disabled:cursor-not-allowed transition-colors duration-200",
437
437
  children: [
438
- /* @__PURE__ */ x.jsx(Er, { size: 16 }),
439
- /* @__PURE__ */ x.jsx("span", { children: "Save" })
438
+ /* @__PURE__ */ y.jsx(Er, { size: 16 }),
439
+ /* @__PURE__ */ y.jsx("span", { children: "Save" })
440
440
  ]
441
441
  }
442
442
  ),
443
- /* @__PURE__ */ x.jsxs(
443
+ /* @__PURE__ */ y.jsxs(
444
444
  "button",
445
445
  {
446
446
  onClick: r,
447
447
  title: "Export as HTML",
448
448
  className: "flex items-center gap-2 px-4 py-2 bg-green-600 text-white text-sm font-medium rounded-md hover:bg-green-700 transition-colors duration-200",
449
449
  children: [
450
- /* @__PURE__ */ x.jsx($r, { size: 16 }),
451
- /* @__PURE__ */ x.jsx("span", { children: "Export" })
450
+ /* @__PURE__ */ y.jsx($r, { size: 16 }),
451
+ /* @__PURE__ */ y.jsx("span", { children: "Export" })
452
452
  ]
453
453
  }
454
454
  ),
455
- /* @__PURE__ */ x.jsxs(
455
+ /* @__PURE__ */ y.jsxs(
456
456
  "button",
457
457
  {
458
458
  onClick: n,
459
459
  title: "Clear Editor",
460
460
  className: "flex items-center gap-2 px-4 py-2 bg-red-600 text-white text-sm font-medium rounded-md hover:bg-red-700 transition-colors duration-200",
461
461
  children: [
462
- /* @__PURE__ */ x.jsx(Zr, { size: 16 }),
463
- /* @__PURE__ */ x.jsx("span", { children: "Clear" })
462
+ /* @__PURE__ */ y.jsx(Zr, { size: 16 }),
463
+ /* @__PURE__ */ y.jsx("span", { children: "Clear" })
464
464
  ]
465
465
  }
466
466
  )
@@ -470,18 +470,18 @@ const Gr = ({
470
470
  wordCount: e,
471
471
  characterCount: t,
472
472
  hasUnsavedChanges: r
473
- }) => /* @__PURE__ */ x.jsx("div", { className: "flex justify-between items-center px-5 py-3 bg-gray-50 border-t border-gray-200 text-sm text-gray-600", children: /* @__PURE__ */ x.jsxs("div", { className: "flex items-center gap-6", children: [
474
- /* @__PURE__ */ x.jsxs("div", { children: [
473
+ }) => /* @__PURE__ */ y.jsx("div", { className: "flex justify-between items-center px-5 py-3 bg-gray-50 border-t border-gray-200 text-sm text-gray-600", children: /* @__PURE__ */ y.jsxs("div", { className: "flex items-center gap-6", children: [
474
+ /* @__PURE__ */ y.jsxs("div", { children: [
475
475
  "Words: ",
476
- /* @__PURE__ */ x.jsx("strong", { className: "text-gray-800", children: e })
476
+ /* @__PURE__ */ y.jsx("strong", { className: "text-gray-800", children: e })
477
477
  ] }),
478
- /* @__PURE__ */ x.jsxs("div", { children: [
478
+ /* @__PURE__ */ y.jsxs("div", { children: [
479
479
  "Characters: ",
480
- /* @__PURE__ */ x.jsx("strong", { className: "text-gray-800", children: t })
480
+ /* @__PURE__ */ y.jsx("strong", { className: "text-gray-800", children: t })
481
481
  ] }),
482
- /* @__PURE__ */ x.jsxs("div", { children: [
482
+ /* @__PURE__ */ y.jsxs("div", { children: [
483
483
  "Status: ",
484
- /* @__PURE__ */ x.jsx("strong", { className: r ? "text-orange-600" : "text-green-600", children: r ? "Unsaved Changes" : "Saved" })
484
+ /* @__PURE__ */ y.jsx("strong", { className: r ? "text-orange-600" : "text-green-600", children: r ? "Unsaved Changes" : "Saved" })
485
485
  ] })
486
486
  ] }) });
487
487
  function u(e, t, r) {
@@ -491,8 +491,8 @@ function u(e, t, r) {
491
491
  value: a._zod ?? {},
492
492
  enumerable: !1
493
493
  }), (d = a._zod).traits ?? (d.traits = /* @__PURE__ */ new Set()), a._zod.traits.add(e), t(a, c);
494
- for (const m in i.prototype)
495
- m in a || Object.defineProperty(a, m, { value: i.prototype[m].bind(a) });
494
+ for (const h in i.prototype)
495
+ h in a || Object.defineProperty(a, h, { value: i.prototype[h].bind(a) });
496
496
  a._zod.constr = i, a._zod.def = c;
497
497
  }
498
498
  const o = r?.Parent ?? Object;
@@ -503,8 +503,8 @@ function u(e, t, r) {
503
503
  var c;
504
504
  const d = r?.Parent ? new s() : this;
505
505
  n(d, a), (c = d._zod).deferred ?? (c.deferred = []);
506
- for (const m of d._zod.deferred)
507
- m();
506
+ for (const h of d._zod.deferred)
507
+ h();
508
508
  return d;
509
509
  }
510
510
  return Object.defineProperty(i, "init", { value: n }), Object.defineProperty(i, Symbol.hasInstance, {
@@ -516,20 +516,20 @@ class fe extends Error {
516
516
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
517
517
  }
518
518
  }
519
- class Ft extends Error {
519
+ class Vt extends Error {
520
520
  constructor(t) {
521
521
  super(`Encountered unidirectional transform during encode: ${t}`), this.name = "ZodEncodeError";
522
522
  }
523
523
  }
524
- const Vt = {};
524
+ const Gt = {};
525
525
  function se(e) {
526
- return Vt;
526
+ return Gt;
527
527
  }
528
528
  function Br(e) {
529
529
  const t = Object.values(e).filter((n) => typeof n == "number");
530
530
  return Object.entries(e).filter(([n, o]) => t.indexOf(+n) === -1).map(([n, o]) => o);
531
531
  }
532
- function Je(e, t) {
532
+ function He(e, t) {
533
533
  return typeof t == "bigint" ? t.toString() : t;
534
534
  }
535
535
  function nt(e) {
@@ -559,13 +559,13 @@ function Yr(e, t) {
559
559
  const s = r > o ? r : o, i = Number.parseInt(e.toFixed(s).replace(".", "")), a = Number.parseInt(t.toFixed(s).replace(".", ""));
560
560
  return i % a / 10 ** s;
561
561
  }
562
- const ht = Symbol("evaluating");
563
- function T(e, t, r) {
562
+ const gt = Symbol("evaluating");
563
+ function S(e, t, r) {
564
564
  let n;
565
565
  Object.defineProperty(e, t, {
566
566
  get() {
567
- if (n !== ht)
568
- return n === void 0 && (n = ht, n = r()), n;
567
+ if (n !== gt)
568
+ return n === void 0 && (n = gt, n = r()), n;
569
569
  },
570
570
  set(o) {
571
571
  Object.defineProperty(e, t, {
@@ -592,12 +592,12 @@ function ce(...e) {
592
592
  }
593
593
  return Object.defineProperties({}, t);
594
594
  }
595
- function gt(e) {
595
+ function bt(e) {
596
596
  return JSON.stringify(e);
597
597
  }
598
- const Gt = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
598
+ const Wt = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
599
599
  };
600
- function Ne(e) {
600
+ function Le(e) {
601
601
  return typeof e == "object" && e !== null && !Array.isArray(e);
602
602
  }
603
603
  const qr = nt(() => {
@@ -611,26 +611,26 @@ const qr = nt(() => {
611
611
  }
612
612
  });
613
613
  function xe(e) {
614
- if (Ne(e) === !1)
614
+ if (Le(e) === !1)
615
615
  return !1;
616
616
  const t = e.constructor;
617
617
  if (t === void 0)
618
618
  return !0;
619
619
  const r = t.prototype;
620
- return !(Ne(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
620
+ return !(Le(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
621
621
  }
622
- function Wt(e) {
622
+ function Bt(e) {
623
623
  return xe(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
624
624
  }
625
625
  const Jr = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
626
- function Ue(e) {
626
+ function De(e) {
627
627
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
628
628
  }
629
629
  function ne(e, t, r) {
630
630
  const n = new e._zod.constr(t ?? e._zod.def);
631
631
  return (!t || r?.parent) && (n._zod.parent = e), n;
632
632
  }
633
- function g(e) {
633
+ function v(e) {
634
634
  const t = e;
635
635
  if (!t)
636
636
  return {};
@@ -783,19 +783,19 @@ function me(e, t = 0) {
783
783
  return !0;
784
784
  return !1;
785
785
  }
786
- function Bt(e, t) {
786
+ function Yt(e, t) {
787
787
  return t.map((r) => {
788
788
  var n;
789
789
  return (n = r).path ?? (n.path = []), r.path.unshift(e), r;
790
790
  });
791
791
  }
792
- function Te(e) {
792
+ function Ae(e) {
793
793
  return typeof e == "string" ? e : e?.message;
794
794
  }
795
795
  function ie(e, t, r) {
796
796
  const n = { ...e, path: e.path ?? [] };
797
797
  if (!e.message) {
798
- const o = Te(e.inst?._zod.def?.error?.(e)) ?? Te(t?.error?.(e)) ?? Te(r.customError?.(e)) ?? Te(r.localeError?.(e)) ?? "Invalid input";
798
+ const o = Ae(e.inst?._zod.def?.error?.(e)) ?? Ae(t?.error?.(e)) ?? Ae(r.customError?.(e)) ?? Ae(r.localeError?.(e)) ?? "Invalid input";
799
799
  n.message = o;
800
800
  }
801
801
  return delete n.inst, delete n.continue, t?.reportInput || delete n.input, n;
@@ -812,18 +812,18 @@ function ze(...e) {
812
812
  inst: n
813
813
  } : { ...t };
814
814
  }
815
- const Yt = (e, t) => {
815
+ const qt = (e, t) => {
816
816
  e.name = "$ZodError", Object.defineProperty(e, "_zod", {
817
817
  value: e._zod,
818
818
  enumerable: !1
819
819
  }), Object.defineProperty(e, "issues", {
820
820
  value: t,
821
821
  enumerable: !1
822
- }), e.message = JSON.stringify(t, Je, 2), Object.defineProperty(e, "toString", {
822
+ }), e.message = JSON.stringify(t, He, 2), Object.defineProperty(e, "toString", {
823
823
  value: () => e.message,
824
824
  enumerable: !1
825
825
  });
826
- }, qt = u("$ZodError", Yt), Jt = u("$ZodError", Yt, { Parent: Error });
826
+ }, Jt = u("$ZodError", qt), Ht = u("$ZodError", qt, { Parent: Error });
827
827
  function sn(e, t = (r) => r.message) {
828
828
  const r = {}, n = [];
829
829
  for (const o of e.issues)
@@ -857,7 +857,7 @@ const at = (e) => (t, r, n, o) => {
857
857
  throw new fe();
858
858
  if (i.issues.length) {
859
859
  const a = new (o?.Err ?? e)(i.issues.map((c) => ie(c, s, se())));
860
- throw Gt(a, o?.callee), a;
860
+ throw Wt(a, o?.callee), a;
861
861
  }
862
862
  return i.value;
863
863
  }, ct = (e) => async (t, r, n, o) => {
@@ -865,67 +865,67 @@ const at = (e) => (t, r, n, o) => {
865
865
  let i = t._zod.run({ value: r, issues: [] }, s);
866
866
  if (i instanceof Promise && (i = await i), i.issues.length) {
867
867
  const a = new (o?.Err ?? e)(i.issues.map((c) => ie(c, s, se())));
868
- throw Gt(a, o?.callee), a;
868
+ throw Wt(a, o?.callee), a;
869
869
  }
870
870
  return i.value;
871
- }, Me = (e) => (t, r, n) => {
871
+ }, Fe = (e) => (t, r, n) => {
872
872
  const o = n ? { ...n, async: !1 } : { async: !1 }, s = t._zod.run({ value: r, issues: [] }, o);
873
873
  if (s instanceof Promise)
874
874
  throw new fe();
875
875
  return s.issues.length ? {
876
876
  success: !1,
877
- error: new (e ?? qt)(s.issues.map((i) => ie(i, o, se())))
877
+ error: new (e ?? Jt)(s.issues.map((i) => ie(i, o, se())))
878
878
  } : { success: !0, data: s.value };
879
- }, cn = /* @__PURE__ */ Me(Jt), Fe = (e) => async (t, r, n) => {
879
+ }, cn = /* @__PURE__ */ Fe(Ht), Ve = (e) => async (t, r, n) => {
880
880
  const o = n ? Object.assign(n, { async: !0 }) : { async: !0 };
881
881
  let s = t._zod.run({ value: r, issues: [] }, o);
882
882
  return s instanceof Promise && (s = await s), s.issues.length ? {
883
883
  success: !1,
884
884
  error: new e(s.issues.map((i) => ie(i, o, se())))
885
885
  } : { success: !0, data: s.value };
886
- }, un = /* @__PURE__ */ Fe(Jt), ln = (e) => (t, r, n) => {
886
+ }, un = /* @__PURE__ */ Ve(Ht), ln = (e) => (t, r, n) => {
887
887
  const o = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
888
888
  return at(e)(t, r, o);
889
889
  }, dn = (e) => (t, r, n) => at(e)(t, r, n), mn = (e) => async (t, r, n) => {
890
890
  const o = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
891
891
  return ct(e)(t, r, o);
892
892
  }, fn = (e) => async (t, r, n) => ct(e)(t, r, n), pn = (e) => (t, r, n) => {
893
- const o = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
894
- return Me(e)(t, r, o);
895
- }, hn = (e) => (t, r, n) => Me(e)(t, r, n), gn = (e) => async (t, r, n) => {
896
893
  const o = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
897
894
  return Fe(e)(t, r, o);
898
- }, bn = (e) => async (t, r, n) => Fe(e)(t, r, n), vn = /^[cC][^\s-]{8,}$/, _n = /^[0-9a-z]+$/, wn = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, kn = /^[0-9a-vA-V]{20}$/, yn = /^[A-Za-z0-9]{27}$/, xn = /^[a-zA-Z0-9_-]{21}$/, zn = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, En = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, bt = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, $n = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Zn = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
899
- function An() {
895
+ }, hn = (e) => (t, r, n) => Fe(e)(t, r, n), gn = (e) => async (t, r, n) => {
896
+ const o = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
897
+ return Ve(e)(t, r, o);
898
+ }, bn = (e) => async (t, r, n) => Ve(e)(t, r, n), vn = /^[cC][^\s-]{8,}$/, _n = /^[0-9a-z]+$/, wn = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, kn = /^[0-9a-vA-V]{20}$/, yn = /^[A-Za-z0-9]{27}$/, xn = /^[a-zA-Z0-9_-]{21}$/, zn = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, En = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, vt = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, $n = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Zn = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
899
+ function Tn() {
900
900
  return new RegExp(Zn, "u");
901
901
  }
902
- const Tn = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Cn = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, Sn = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, In = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Rn = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Ht = /^[A-Za-z0-9_-]*$/, jn = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, Pn = /^\+(?:[0-9]){6,14}[0-9]$/, Xt = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", On = /* @__PURE__ */ new RegExp(`^${Xt}$`);
903
- function Kt(e) {
902
+ const An = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Sn = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, In = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Cn = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Rn = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Xt = /^[A-Za-z0-9_-]*$/, jn = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, Pn = /^\+(?:[0-9]){6,14}[0-9]$/, Kt = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", On = /* @__PURE__ */ new RegExp(`^${Kt}$`);
903
+ function Qt(e) {
904
904
  const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
905
905
  return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
906
906
  }
907
907
  function Nn(e) {
908
- return new RegExp(`^${Kt(e)}$`);
908
+ return new RegExp(`^${Qt(e)}$`);
909
909
  }
910
910
  function Ln(e) {
911
- const t = Kt({ precision: e.precision }), r = ["Z"];
911
+ const t = Qt({ precision: e.precision }), r = ["Z"];
912
912
  e.local && r.push(""), e.offset && r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
913
913
  const n = `${t}(?:${r.join("|")})`;
914
- return new RegExp(`^${Xt}T(?:${n})$`);
914
+ return new RegExp(`^${Kt}T(?:${n})$`);
915
915
  }
916
- const Dn = (e) => {
916
+ const Mn = (e) => {
917
917
  const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
918
918
  return new RegExp(`^${t}$`);
919
- }, Un = /^-?\d+$/, Mn = /^-?\d+(?:\.\d+)?/, Fn = /^(?:true|false)$/i, Vn = /^[^A-Z]*$/, Gn = /^[^a-z]*$/, V = /* @__PURE__ */ u("$ZodCheck", (e, t) => {
919
+ }, Un = /^-?\d+$/, Dn = /^-?\d+(?:\.\d+)?/, Fn = /^(?:true|false)$/i, Vn = /^[^A-Z]*$/, Gn = /^[^a-z]*$/, V = /* @__PURE__ */ u("$ZodCheck", (e, t) => {
920
920
  var r;
921
921
  e._zod ?? (e._zod = {}), e._zod.def = t, (r = e._zod).onattach ?? (r.onattach = []);
922
- }), Qt = {
922
+ }), er = {
923
923
  number: "number",
924
924
  bigint: "bigint",
925
925
  object: "date"
926
- }, er = /* @__PURE__ */ u("$ZodCheckLessThan", (e, t) => {
926
+ }, tr = /* @__PURE__ */ u("$ZodCheckLessThan", (e, t) => {
927
927
  V.init(e, t);
928
- const r = Qt[typeof t.value];
928
+ const r = er[typeof t.value];
929
929
  e._zod.onattach.push((n) => {
930
930
  const o = n._zod.bag, s = (t.inclusive ? o.maximum : o.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
931
931
  t.value < s && (t.inclusive ? o.maximum = t.value : o.exclusiveMaximum = t.value);
@@ -940,9 +940,9 @@ const Dn = (e) => {
940
940
  continue: !t.abort
941
941
  });
942
942
  };
943
- }), tr = /* @__PURE__ */ u("$ZodCheckGreaterThan", (e, t) => {
943
+ }), rr = /* @__PURE__ */ u("$ZodCheckGreaterThan", (e, t) => {
944
944
  V.init(e, t);
945
- const r = Qt[typeof t.value];
945
+ const r = er[typeof t.value];
946
946
  e._zod.onattach.push((n) => {
947
947
  const o = n._zod.bag, s = (t.inclusive ? o.minimum : o.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
948
948
  t.value > s && (t.inclusive ? o.minimum = t.value : o.exclusiveMinimum = t.value);
@@ -1099,7 +1099,7 @@ const Dn = (e) => {
1099
1099
  continue: !t.abort
1100
1100
  });
1101
1101
  };
1102
- }), Ve = /* @__PURE__ */ u("$ZodCheckStringFormat", (e, t) => {
1102
+ }), Ge = /* @__PURE__ */ u("$ZodCheckStringFormat", (e, t) => {
1103
1103
  var r, n;
1104
1104
  V.init(e, t), e._zod.onattach.push((o) => {
1105
1105
  const s = o._zod.bag;
@@ -1117,7 +1117,7 @@ const Dn = (e) => {
1117
1117
  }) : (n = e._zod).check ?? (n.check = () => {
1118
1118
  });
1119
1119
  }), Hn = /* @__PURE__ */ u("$ZodCheckRegex", (e, t) => {
1120
- Ve.init(e, t), e._zod.check = (r) => {
1120
+ Ge.init(e, t), e._zod.check = (r) => {
1121
1121
  t.pattern.lastIndex = 0, !t.pattern.test(r.value) && r.issues.push({
1122
1122
  origin: "string",
1123
1123
  code: "invalid_format",
@@ -1129,12 +1129,12 @@ const Dn = (e) => {
1129
1129
  });
1130
1130
  };
1131
1131
  }), Xn = /* @__PURE__ */ u("$ZodCheckLowerCase", (e, t) => {
1132
- t.pattern ?? (t.pattern = Vn), Ve.init(e, t);
1132
+ t.pattern ?? (t.pattern = Vn), Ge.init(e, t);
1133
1133
  }), Kn = /* @__PURE__ */ u("$ZodCheckUpperCase", (e, t) => {
1134
- t.pattern ?? (t.pattern = Gn), Ve.init(e, t);
1134
+ t.pattern ?? (t.pattern = Gn), Ge.init(e, t);
1135
1135
  }), Qn = /* @__PURE__ */ u("$ZodCheckIncludes", (e, t) => {
1136
1136
  V.init(e, t);
1137
- const r = Ue(t.includes), n = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${r}` : r);
1137
+ const r = De(t.includes), n = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${r}` : r);
1138
1138
  t.pattern = n, e._zod.onattach.push((o) => {
1139
1139
  const s = o._zod.bag;
1140
1140
  s.patterns ?? (s.patterns = /* @__PURE__ */ new Set()), s.patterns.add(n);
@@ -1151,7 +1151,7 @@ const Dn = (e) => {
1151
1151
  };
1152
1152
  }), eo = /* @__PURE__ */ u("$ZodCheckStartsWith", (e, t) => {
1153
1153
  V.init(e, t);
1154
- const r = new RegExp(`^${Ue(t.prefix)}.*`);
1154
+ const r = new RegExp(`^${De(t.prefix)}.*`);
1155
1155
  t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
1156
1156
  const o = n._zod.bag;
1157
1157
  o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(r);
@@ -1168,7 +1168,7 @@ const Dn = (e) => {
1168
1168
  };
1169
1169
  }), to = /* @__PURE__ */ u("$ZodCheckEndsWith", (e, t) => {
1170
1170
  V.init(e, t);
1171
- const r = new RegExp(`.*${Ue(t.suffix)}$`);
1171
+ const r = new RegExp(`.*${De(t.suffix)}$`);
1172
1172
  t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
1173
1173
  const o = n._zod.bag;
1174
1174
  o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(r);
@@ -1229,27 +1229,27 @@ const oo = {
1229
1229
  });
1230
1230
  else {
1231
1231
  const o = (i, a, c) => {
1232
- let d = me(i), m;
1233
- for (const k of a) {
1234
- if (k._zod.def.when) {
1235
- if (!k._zod.def.when(i))
1232
+ let d = me(i), h;
1233
+ for (const $ of a) {
1234
+ if ($._zod.def.when) {
1235
+ if (!$._zod.def.when(i))
1236
1236
  continue;
1237
1237
  } else if (d)
1238
1238
  continue;
1239
- const w = i.issues.length, f = k._zod.check(i);
1240
- if (f instanceof Promise && c?.async === !1)
1239
+ const g = i.issues.length, m = $._zod.check(i);
1240
+ if (m instanceof Promise && c?.async === !1)
1241
1241
  throw new fe();
1242
- if (m || f instanceof Promise)
1243
- m = (m ?? Promise.resolve()).then(async () => {
1244
- await f, i.issues.length !== w && (d || (d = me(i, w)));
1242
+ if (h || m instanceof Promise)
1243
+ h = (h ?? Promise.resolve()).then(async () => {
1244
+ await m, i.issues.length !== g && (d || (d = me(i, g)));
1245
1245
  });
1246
1246
  else {
1247
- if (i.issues.length === w)
1247
+ if (i.issues.length === g)
1248
1248
  continue;
1249
- d || (d = me(i, w));
1249
+ d || (d = me(i, g));
1250
1250
  }
1251
1251
  }
1252
- return m ? m.then(() => i) : i;
1252
+ return h ? h.then(() => i) : i;
1253
1253
  }, s = (i, a, c) => {
1254
1254
  if (me(i))
1255
1255
  return i.aborted = !0, i;
@@ -1257,7 +1257,7 @@ const oo = {
1257
1257
  if (d instanceof Promise) {
1258
1258
  if (c.async === !1)
1259
1259
  throw new fe();
1260
- return d.then((m) => e._zod.parse(m, c));
1260
+ return d.then((h) => e._zod.parse(h, c));
1261
1261
  }
1262
1262
  return e._zod.parse(d, c);
1263
1263
  };
@@ -1266,7 +1266,7 @@ const oo = {
1266
1266
  return e._zod.parse(i, a);
1267
1267
  if (a.direction === "backward") {
1268
1268
  const d = e._zod.parse({ value: i.value, issues: [] }, { ...a, skipChecks: !0 });
1269
- return d instanceof Promise ? d.then((m) => s(m, i, a)) : s(d, i, a);
1269
+ return d instanceof Promise ? d.then((h) => s(h, i, a)) : s(d, i, a);
1270
1270
  }
1271
1271
  const c = e._zod.parse(i, a);
1272
1272
  if (c instanceof Promise) {
@@ -1290,7 +1290,7 @@ const oo = {
1290
1290
  version: 1
1291
1291
  };
1292
1292
  }), ut = /* @__PURE__ */ u("$ZodString", (e, t) => {
1293
- j.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? Dn(e._zod.bag), e._zod.parse = (r, n) => {
1293
+ j.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? Mn(e._zod.bag), e._zod.parse = (r, n) => {
1294
1294
  if (t.coerce)
1295
1295
  try {
1296
1296
  r.value = String(r.value);
@@ -1303,10 +1303,10 @@ const oo = {
1303
1303
  inst: e
1304
1304
  }), r;
1305
1305
  };
1306
- }), S = /* @__PURE__ */ u("$ZodStringFormat", (e, t) => {
1307
- Ve.init(e, t), ut.init(e, t);
1306
+ }), I = /* @__PURE__ */ u("$ZodStringFormat", (e, t) => {
1307
+ Ge.init(e, t), ut.init(e, t);
1308
1308
  }), so = /* @__PURE__ */ u("$ZodGUID", (e, t) => {
1309
- t.pattern ?? (t.pattern = En), S.init(e, t);
1309
+ t.pattern ?? (t.pattern = En), I.init(e, t);
1310
1310
  }), io = /* @__PURE__ */ u("$ZodUUID", (e, t) => {
1311
1311
  if (t.version) {
1312
1312
  const n = {
@@ -1321,14 +1321,14 @@ const oo = {
1321
1321
  }[t.version];
1322
1322
  if (n === void 0)
1323
1323
  throw new Error(`Invalid UUID version: "${t.version}"`);
1324
- t.pattern ?? (t.pattern = bt(n));
1324
+ t.pattern ?? (t.pattern = vt(n));
1325
1325
  } else
1326
- t.pattern ?? (t.pattern = bt());
1327
- S.init(e, t);
1326
+ t.pattern ?? (t.pattern = vt());
1327
+ I.init(e, t);
1328
1328
  }), ao = /* @__PURE__ */ u("$ZodEmail", (e, t) => {
1329
- t.pattern ?? (t.pattern = $n), S.init(e, t);
1329
+ t.pattern ?? (t.pattern = $n), I.init(e, t);
1330
1330
  }), co = /* @__PURE__ */ u("$ZodURL", (e, t) => {
1331
- S.init(e, t), e._zod.check = (r) => {
1331
+ I.init(e, t), e._zod.check = (r) => {
1332
1332
  try {
1333
1333
  const n = r.value.trim(), o = new URL(n);
1334
1334
  t.hostname && (t.hostname.lastIndex = 0, t.hostname.test(o.hostname) || r.issues.push({
@@ -1360,34 +1360,34 @@ const oo = {
1360
1360
  }
1361
1361
  };
1362
1362
  }), uo = /* @__PURE__ */ u("$ZodEmoji", (e, t) => {
1363
- t.pattern ?? (t.pattern = An()), S.init(e, t);
1363
+ t.pattern ?? (t.pattern = Tn()), I.init(e, t);
1364
1364
  }), lo = /* @__PURE__ */ u("$ZodNanoID", (e, t) => {
1365
- t.pattern ?? (t.pattern = xn), S.init(e, t);
1365
+ t.pattern ?? (t.pattern = xn), I.init(e, t);
1366
1366
  }), mo = /* @__PURE__ */ u("$ZodCUID", (e, t) => {
1367
- t.pattern ?? (t.pattern = vn), S.init(e, t);
1367
+ t.pattern ?? (t.pattern = vn), I.init(e, t);
1368
1368
  }), fo = /* @__PURE__ */ u("$ZodCUID2", (e, t) => {
1369
- t.pattern ?? (t.pattern = _n), S.init(e, t);
1369
+ t.pattern ?? (t.pattern = _n), I.init(e, t);
1370
1370
  }), po = /* @__PURE__ */ u("$ZodULID", (e, t) => {
1371
- t.pattern ?? (t.pattern = wn), S.init(e, t);
1371
+ t.pattern ?? (t.pattern = wn), I.init(e, t);
1372
1372
  }), ho = /* @__PURE__ */ u("$ZodXID", (e, t) => {
1373
- t.pattern ?? (t.pattern = kn), S.init(e, t);
1373
+ t.pattern ?? (t.pattern = kn), I.init(e, t);
1374
1374
  }), go = /* @__PURE__ */ u("$ZodKSUID", (e, t) => {
1375
- t.pattern ?? (t.pattern = yn), S.init(e, t);
1375
+ t.pattern ?? (t.pattern = yn), I.init(e, t);
1376
1376
  }), bo = /* @__PURE__ */ u("$ZodISODateTime", (e, t) => {
1377
- t.pattern ?? (t.pattern = Ln(t)), S.init(e, t);
1377
+ t.pattern ?? (t.pattern = Ln(t)), I.init(e, t);
1378
1378
  }), vo = /* @__PURE__ */ u("$ZodISODate", (e, t) => {
1379
- t.pattern ?? (t.pattern = On), S.init(e, t);
1379
+ t.pattern ?? (t.pattern = On), I.init(e, t);
1380
1380
  }), _o = /* @__PURE__ */ u("$ZodISOTime", (e, t) => {
1381
- t.pattern ?? (t.pattern = Nn(t)), S.init(e, t);
1381
+ t.pattern ?? (t.pattern = Nn(t)), I.init(e, t);
1382
1382
  }), wo = /* @__PURE__ */ u("$ZodISODuration", (e, t) => {
1383
- t.pattern ?? (t.pattern = zn), S.init(e, t);
1383
+ t.pattern ?? (t.pattern = zn), I.init(e, t);
1384
1384
  }), ko = /* @__PURE__ */ u("$ZodIPv4", (e, t) => {
1385
- t.pattern ?? (t.pattern = Tn), S.init(e, t), e._zod.onattach.push((r) => {
1385
+ t.pattern ?? (t.pattern = An), I.init(e, t), e._zod.onattach.push((r) => {
1386
1386
  const n = r._zod.bag;
1387
1387
  n.format = "ipv4";
1388
1388
  });
1389
1389
  }), yo = /* @__PURE__ */ u("$ZodIPv6", (e, t) => {
1390
- t.pattern ?? (t.pattern = Cn), S.init(e, t), e._zod.onattach.push((r) => {
1390
+ t.pattern ?? (t.pattern = Sn), I.init(e, t), e._zod.onattach.push((r) => {
1391
1391
  const n = r._zod.bag;
1392
1392
  n.format = "ipv6";
1393
1393
  }), e._zod.check = (r) => {
@@ -1404,9 +1404,9 @@ const oo = {
1404
1404
  }
1405
1405
  };
1406
1406
  }), xo = /* @__PURE__ */ u("$ZodCIDRv4", (e, t) => {
1407
- t.pattern ?? (t.pattern = Sn), S.init(e, t);
1407
+ t.pattern ?? (t.pattern = In), I.init(e, t);
1408
1408
  }), zo = /* @__PURE__ */ u("$ZodCIDRv6", (e, t) => {
1409
- t.pattern ?? (t.pattern = In), S.init(e, t), e._zod.check = (r) => {
1409
+ t.pattern ?? (t.pattern = Cn), I.init(e, t), e._zod.check = (r) => {
1410
1410
  const n = r.value.split("/");
1411
1411
  try {
1412
1412
  if (n.length !== 2)
@@ -1431,7 +1431,7 @@ const oo = {
1431
1431
  }
1432
1432
  };
1433
1433
  });
1434
- function rr(e) {
1434
+ function nr(e) {
1435
1435
  if (e === "")
1436
1436
  return !0;
1437
1437
  if (e.length % 4 !== 0)
@@ -1443,10 +1443,10 @@ function rr(e) {
1443
1443
  }
1444
1444
  }
1445
1445
  const Eo = /* @__PURE__ */ u("$ZodBase64", (e, t) => {
1446
- t.pattern ?? (t.pattern = Rn), S.init(e, t), e._zod.onattach.push((r) => {
1446
+ t.pattern ?? (t.pattern = Rn), I.init(e, t), e._zod.onattach.push((r) => {
1447
1447
  r._zod.bag.contentEncoding = "base64";
1448
1448
  }), e._zod.check = (r) => {
1449
- rr(r.value) || r.issues.push({
1449
+ nr(r.value) || r.issues.push({
1450
1450
  code: "invalid_format",
1451
1451
  format: "base64",
1452
1452
  input: r.value,
@@ -1456,13 +1456,13 @@ const Eo = /* @__PURE__ */ u("$ZodBase64", (e, t) => {
1456
1456
  };
1457
1457
  });
1458
1458
  function $o(e) {
1459
- if (!Ht.test(e))
1459
+ if (!Xt.test(e))
1460
1460
  return !1;
1461
1461
  const t = e.replace(/[-_]/g, (n) => n === "-" ? "+" : "/"), r = t.padEnd(Math.ceil(t.length / 4) * 4, "=");
1462
- return rr(r);
1462
+ return nr(r);
1463
1463
  }
1464
1464
  const Zo = /* @__PURE__ */ u("$ZodBase64URL", (e, t) => {
1465
- t.pattern ?? (t.pattern = Ht), S.init(e, t), e._zod.onattach.push((r) => {
1465
+ t.pattern ?? (t.pattern = Xt), I.init(e, t), e._zod.onattach.push((r) => {
1466
1466
  r._zod.bag.contentEncoding = "base64url";
1467
1467
  }), e._zod.check = (r) => {
1468
1468
  $o(r.value) || r.issues.push({
@@ -1473,10 +1473,10 @@ const Zo = /* @__PURE__ */ u("$ZodBase64URL", (e, t) => {
1473
1473
  continue: !t.abort
1474
1474
  });
1475
1475
  };
1476
- }), Ao = /* @__PURE__ */ u("$ZodE164", (e, t) => {
1477
- t.pattern ?? (t.pattern = Pn), S.init(e, t);
1476
+ }), To = /* @__PURE__ */ u("$ZodE164", (e, t) => {
1477
+ t.pattern ?? (t.pattern = Pn), I.init(e, t);
1478
1478
  });
1479
- function To(e, t = null) {
1479
+ function Ao(e, t = null) {
1480
1480
  try {
1481
1481
  const r = e.split(".");
1482
1482
  if (r.length !== 3)
@@ -1490,9 +1490,9 @@ function To(e, t = null) {
1490
1490
  return !1;
1491
1491
  }
1492
1492
  }
1493
- const Co = /* @__PURE__ */ u("$ZodJWT", (e, t) => {
1494
- S.init(e, t), e._zod.check = (r) => {
1495
- To(r.value, t.alg) || r.issues.push({
1493
+ const So = /* @__PURE__ */ u("$ZodJWT", (e, t) => {
1494
+ I.init(e, t), e._zod.check = (r) => {
1495
+ Ao(r.value, t.alg) || r.issues.push({
1496
1496
  code: "invalid_format",
1497
1497
  format: "jwt",
1498
1498
  input: r.value,
@@ -1500,8 +1500,8 @@ const Co = /* @__PURE__ */ u("$ZodJWT", (e, t) => {
1500
1500
  continue: !t.abort
1501
1501
  });
1502
1502
  };
1503
- }), nr = /* @__PURE__ */ u("$ZodNumber", (e, t) => {
1504
- j.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? Mn, e._zod.parse = (r, n) => {
1503
+ }), or = /* @__PURE__ */ u("$ZodNumber", (e, t) => {
1504
+ j.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? Dn, e._zod.parse = (r, n) => {
1505
1505
  if (t.coerce)
1506
1506
  try {
1507
1507
  r.value = Number(r.value);
@@ -1519,9 +1519,9 @@ const Co = /* @__PURE__ */ u("$ZodJWT", (e, t) => {
1519
1519
  ...s ? { received: s } : {}
1520
1520
  }), r;
1521
1521
  };
1522
- }), So = /* @__PURE__ */ u("$ZodNumber", (e, t) => {
1523
- Bn.init(e, t), nr.init(e, t);
1524
- }), Io = /* @__PURE__ */ u("$ZodBoolean", (e, t) => {
1522
+ }), Io = /* @__PURE__ */ u("$ZodNumber", (e, t) => {
1523
+ Bn.init(e, t), or.init(e, t);
1524
+ }), Co = /* @__PURE__ */ u("$ZodBoolean", (e, t) => {
1525
1525
  j.init(e, t), e._zod.pattern = Fn, e._zod.parse = (r, n) => {
1526
1526
  if (t.coerce)
1527
1527
  try {
@@ -1546,8 +1546,8 @@ const Co = /* @__PURE__ */ u("$ZodJWT", (e, t) => {
1546
1546
  inst: e
1547
1547
  }), r);
1548
1548
  });
1549
- function vt(e, t, r) {
1550
- e.issues.length && t.issues.push(...Bt(r, e.issues)), t.value[r] = e.value;
1549
+ function _t(e, t, r) {
1550
+ e.issues.length && t.issues.push(...Yt(r, e.issues)), t.value[r] = e.value;
1551
1551
  }
1552
1552
  const Po = /* @__PURE__ */ u("$ZodArray", (e, t) => {
1553
1553
  j.init(e, t), e._zod.parse = (r, n) => {
@@ -1566,15 +1566,15 @@ const Po = /* @__PURE__ */ u("$ZodArray", (e, t) => {
1566
1566
  value: a,
1567
1567
  issues: []
1568
1568
  }, n);
1569
- c instanceof Promise ? s.push(c.then((d) => vt(d, r, i))) : vt(c, r, i);
1569
+ c instanceof Promise ? s.push(c.then((d) => _t(d, r, i))) : _t(c, r, i);
1570
1570
  }
1571
1571
  return s.length ? Promise.all(s).then(() => r) : r;
1572
1572
  };
1573
1573
  });
1574
- function Le(e, t, r, n) {
1575
- e.issues.length && t.issues.push(...Bt(r, e.issues)), e.value === void 0 ? r in n && (t.value[r] = void 0) : t.value[r] = e.value;
1574
+ function Me(e, t, r, n) {
1575
+ e.issues.length && t.issues.push(...Yt(r, e.issues)), e.value === void 0 ? r in n && (t.value[r] = void 0) : t.value[r] = e.value;
1576
1576
  }
1577
- function or(e) {
1577
+ function sr(e) {
1578
1578
  const t = Object.keys(e.shape);
1579
1579
  for (const n of t)
1580
1580
  if (!e.shape?.[n]?._zod?.traits?.has("$ZodType"))
@@ -1588,17 +1588,17 @@ function or(e) {
1588
1588
  optionalKeys: new Set(r)
1589
1589
  };
1590
1590
  }
1591
- function sr(e, t, r, n, o, s) {
1591
+ function ir(e, t, r, n, o, s) {
1592
1592
  const i = [], a = o.keySet, c = o.catchall._zod, d = c.def.type;
1593
- for (const m of Object.keys(t)) {
1594
- if (a.has(m))
1593
+ for (const h of Object.keys(t)) {
1594
+ if (a.has(h))
1595
1595
  continue;
1596
1596
  if (d === "never") {
1597
- i.push(m);
1597
+ i.push(h);
1598
1598
  continue;
1599
1599
  }
1600
- const k = c.run({ value: t[m], issues: [] }, n);
1601
- k instanceof Promise ? e.push(k.then((w) => Le(w, r, m, t))) : Le(k, r, m, t);
1600
+ const $ = c.run({ value: t[h], issues: [] }, n);
1601
+ $ instanceof Promise ? e.push($.then((g) => Me(g, r, h, t))) : Me($, r, h, t);
1602
1602
  }
1603
1603
  return i.length && r.issues.push({
1604
1604
  code: "unrecognized_keys",
@@ -1619,20 +1619,20 @@ const Oo = /* @__PURE__ */ u("$ZodObject", (e, t) => {
1619
1619
  }
1620
1620
  });
1621
1621
  }
1622
- const n = nt(() => or(t));
1623
- T(e._zod, "propValues", () => {
1622
+ const n = nt(() => sr(t));
1623
+ S(e._zod, "propValues", () => {
1624
1624
  const a = t.shape, c = {};
1625
1625
  for (const d in a) {
1626
- const m = a[d]._zod;
1627
- if (m.values) {
1626
+ const h = a[d]._zod;
1627
+ if (h.values) {
1628
1628
  c[d] ?? (c[d] = /* @__PURE__ */ new Set());
1629
- for (const k of m.values)
1630
- c[d].add(k);
1629
+ for (const $ of h.values)
1630
+ c[d].add($);
1631
1631
  }
1632
1632
  }
1633
1633
  return c;
1634
1634
  });
1635
- const o = Ne, s = t.catchall;
1635
+ const o = Le, s = t.catchall;
1636
1636
  let i;
1637
1637
  e._zod.parse = (a, c) => {
1638
1638
  i ?? (i = n.value);
@@ -1645,66 +1645,66 @@ const Oo = /* @__PURE__ */ u("$ZodObject", (e, t) => {
1645
1645
  inst: e
1646
1646
  }), a;
1647
1647
  a.value = {};
1648
- const m = [], k = i.shape;
1649
- for (const w of i.keys) {
1650
- const _ = k[w]._zod.run({ value: d[w], issues: [] }, c);
1651
- _ instanceof Promise ? m.push(_.then((C) => Le(C, a, w, d))) : Le(_, a, w, d);
1648
+ const h = [], $ = i.shape;
1649
+ for (const g of i.keys) {
1650
+ const b = $[g]._zod.run({ value: d[g], issues: [] }, c);
1651
+ b instanceof Promise ? h.push(b.then((T) => Me(T, a, g, d))) : Me(b, a, g, d);
1652
1652
  }
1653
- return s ? sr(m, d, a, c, n.value, e) : m.length ? Promise.all(m).then(() => a) : a;
1653
+ return s ? ir(h, d, a, c, n.value, e) : h.length ? Promise.all(h).then(() => a) : a;
1654
1654
  };
1655
1655
  }), No = /* @__PURE__ */ u("$ZodObjectJIT", (e, t) => {
1656
1656
  Oo.init(e, t);
1657
- const r = e._zod.parse, n = nt(() => or(t)), o = (w) => {
1658
- const f = new no(["shape", "payload", "ctx"]), _ = n.value, C = (N) => {
1659
- const R = gt(N);
1657
+ const r = e._zod.parse, n = nt(() => sr(t)), o = (g) => {
1658
+ const m = new no(["shape", "payload", "ctx"]), b = n.value, T = (N) => {
1659
+ const R = bt(N);
1660
1660
  return `shape[${R}]._zod.run({ value: input[${R}], issues: [] }, ctx)`;
1661
1661
  };
1662
- f.write("const input = payload.value;");
1662
+ m.write("const input = payload.value;");
1663
1663
  const P = /* @__PURE__ */ Object.create(null);
1664
1664
  let U = 0;
1665
- for (const N of _.keys)
1665
+ for (const N of b.keys)
1666
1666
  P[N] = `key_${U++}`;
1667
- f.write("const newResult = {};");
1668
- for (const N of _.keys) {
1669
- const R = P[N], M = gt(N);
1670
- f.write(`const ${R} = ${C(N)};`), f.write(`
1667
+ m.write("const newResult = {};");
1668
+ for (const N of b.keys) {
1669
+ const R = P[N], D = bt(N);
1670
+ m.write(`const ${R} = ${T(N)};`), m.write(`
1671
1671
  if (${R}.issues.length) {
1672
1672
  payload.issues = payload.issues.concat(${R}.issues.map(iss => ({
1673
1673
  ...iss,
1674
- path: iss.path ? [${M}, ...iss.path] : [${M}]
1674
+ path: iss.path ? [${D}, ...iss.path] : [${D}]
1675
1675
  })));
1676
1676
  }
1677
1677
 
1678
1678
 
1679
1679
  if (${R}.value === undefined) {
1680
- if (${M} in input) {
1681
- newResult[${M}] = undefined;
1680
+ if (${D} in input) {
1681
+ newResult[${D}] = undefined;
1682
1682
  }
1683
1683
  } else {
1684
- newResult[${M}] = ${R}.value;
1684
+ newResult[${D}] = ${R}.value;
1685
1685
  }
1686
1686
 
1687
1687
  `);
1688
1688
  }
1689
- f.write("payload.value = newResult;"), f.write("return payload;");
1690
- const D = f.compile();
1691
- return (N, R) => D(w, N, R);
1689
+ m.write("payload.value = newResult;"), m.write("return payload;");
1690
+ const M = m.compile();
1691
+ return (N, R) => M(g, N, R);
1692
1692
  };
1693
1693
  let s;
1694
- const i = Ne, a = !Vt.jitless, d = a && qr.value, m = t.catchall;
1695
- let k;
1696
- e._zod.parse = (w, f) => {
1697
- k ?? (k = n.value);
1698
- const _ = w.value;
1699
- return i(_) ? a && d && f?.async === !1 && f.jitless !== !0 ? (s || (s = o(t.shape)), w = s(w, f), m ? sr([], _, w, f, k, e) : w) : r(w, f) : (w.issues.push({
1694
+ const i = Le, a = !Gt.jitless, d = a && qr.value, h = t.catchall;
1695
+ let $;
1696
+ e._zod.parse = (g, m) => {
1697
+ $ ?? ($ = n.value);
1698
+ const b = g.value;
1699
+ return i(b) ? a && d && m?.async === !1 && m.jitless !== !0 ? (s || (s = o(t.shape)), g = s(g, m), h ? ir([], b, g, m, $, e) : g) : r(g, m) : (g.issues.push({
1700
1700
  expected: "object",
1701
1701
  code: "invalid_type",
1702
- input: _,
1702
+ input: b,
1703
1703
  inst: e
1704
- }), w);
1704
+ }), g);
1705
1705
  };
1706
1706
  });
1707
- function _t(e, t, r, n) {
1707
+ function wt(e, t, r, n) {
1708
1708
  for (const s of e)
1709
1709
  if (s.issues.length === 0)
1710
1710
  return t.value = s.value, t;
@@ -1717,10 +1717,10 @@ function _t(e, t, r, n) {
1717
1717
  }), t);
1718
1718
  }
1719
1719
  const Lo = /* @__PURE__ */ u("$ZodUnion", (e, t) => {
1720
- j.init(e, t), T(e._zod, "optin", () => t.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), T(e._zod, "optout", () => t.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), T(e._zod, "values", () => {
1720
+ j.init(e, t), S(e._zod, "optin", () => t.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), S(e._zod, "optout", () => t.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), S(e._zod, "values", () => {
1721
1721
  if (t.options.every((o) => o._zod.values))
1722
1722
  return new Set(t.options.flatMap((o) => Array.from(o._zod.values)));
1723
- }), T(e._zod, "pattern", () => {
1723
+ }), S(e._zod, "pattern", () => {
1724
1724
  if (t.options.every((o) => o._zod.pattern)) {
1725
1725
  const o = t.options.map((s) => s._zod.pattern);
1726
1726
  return new RegExp(`^(${o.map((s) => st(s.source)).join("|")})$`);
@@ -1745,15 +1745,15 @@ const Lo = /* @__PURE__ */ u("$ZodUnion", (e, t) => {
1745
1745
  a.push(d);
1746
1746
  }
1747
1747
  }
1748
- return i ? Promise.all(a).then((c) => _t(c, o, e, s)) : _t(a, o, e, s);
1748
+ return i ? Promise.all(a).then((c) => wt(c, o, e, s)) : wt(a, o, e, s);
1749
1749
  };
1750
- }), Do = /* @__PURE__ */ u("$ZodIntersection", (e, t) => {
1750
+ }), Mo = /* @__PURE__ */ u("$ZodIntersection", (e, t) => {
1751
1751
  j.init(e, t), e._zod.parse = (r, n) => {
1752
1752
  const o = r.value, s = t.left._zod.run({ value: o, issues: [] }, n), i = t.right._zod.run({ value: o, issues: [] }, n);
1753
- return s instanceof Promise || i instanceof Promise ? Promise.all([s, i]).then(([c, d]) => wt(r, c, d)) : wt(r, s, i);
1753
+ return s instanceof Promise || i instanceof Promise ? Promise.all([s, i]).then(([c, d]) => kt(r, c, d)) : kt(r, s, i);
1754
1754
  };
1755
1755
  });
1756
- function He(e, t) {
1756
+ function Xe(e, t) {
1757
1757
  if (e === t)
1758
1758
  return { valid: !0, data: e };
1759
1759
  if (e instanceof Date && t instanceof Date && +e == +t)
@@ -1761,7 +1761,7 @@ function He(e, t) {
1761
1761
  if (xe(e) && xe(t)) {
1762
1762
  const r = Object.keys(t), n = Object.keys(e).filter((s) => r.indexOf(s) !== -1), o = { ...e, ...t };
1763
1763
  for (const s of n) {
1764
- const i = He(e[s], t[s]);
1764
+ const i = Xe(e[s], t[s]);
1765
1765
  if (!i.valid)
1766
1766
  return {
1767
1767
  valid: !1,
@@ -1776,7 +1776,7 @@ function He(e, t) {
1776
1776
  return { valid: !1, mergeErrorPath: [] };
1777
1777
  const r = [];
1778
1778
  for (let n = 0; n < e.length; n++) {
1779
- const o = e[n], s = t[n], i = He(o, s);
1779
+ const o = e[n], s = t[n], i = Xe(o, s);
1780
1780
  if (!i.valid)
1781
1781
  return {
1782
1782
  valid: !1,
@@ -1788,10 +1788,10 @@ function He(e, t) {
1788
1788
  }
1789
1789
  return { valid: !1, mergeErrorPath: [] };
1790
1790
  }
1791
- function wt(e, t, r) {
1791
+ function kt(e, t, r) {
1792
1792
  if (t.issues.length && e.issues.push(...t.issues), r.issues.length && e.issues.push(...r.issues), me(e))
1793
1793
  return e;
1794
- const n = He(t.value, r.value);
1794
+ const n = Xe(t.value, r.value);
1795
1795
  if (!n.valid)
1796
1796
  throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);
1797
1797
  return e.value = n.data, e;
@@ -1799,7 +1799,7 @@ function wt(e, t, r) {
1799
1799
  const Uo = /* @__PURE__ */ u("$ZodEnum", (e, t) => {
1800
1800
  j.init(e, t);
1801
1801
  const r = Br(t.entries), n = new Set(r);
1802
- e._zod.values = n, e._zod.pattern = new RegExp(`^(${r.filter((o) => Jr.has(typeof o)).map((o) => typeof o == "string" ? Ue(o) : o.toString()).join("|")})$`), e._zod.parse = (o, s) => {
1802
+ e._zod.values = n, e._zod.pattern = new RegExp(`^(${r.filter((o) => Jr.has(typeof o)).map((o) => typeof o == "string" ? De(o) : o.toString()).join("|")})$`), e._zod.parse = (o, s) => {
1803
1803
  const i = o.value;
1804
1804
  return n.has(i) || o.issues.push({
1805
1805
  code: "invalid_value",
@@ -1808,10 +1808,10 @@ const Uo = /* @__PURE__ */ u("$ZodEnum", (e, t) => {
1808
1808
  inst: e
1809
1809
  }), o;
1810
1810
  };
1811
- }), Mo = /* @__PURE__ */ u("$ZodTransform", (e, t) => {
1811
+ }), Do = /* @__PURE__ */ u("$ZodTransform", (e, t) => {
1812
1812
  j.init(e, t), e._zod.parse = (r, n) => {
1813
1813
  if (n.direction === "backward")
1814
- throw new Ft(e.constructor.name);
1814
+ throw new Vt(e.constructor.name);
1815
1815
  const o = t.transform(r.value, r);
1816
1816
  if (n.async)
1817
1817
  return (o instanceof Promise ? o : Promise.resolve(o)).then((i) => (r.value = i, r));
@@ -1820,50 +1820,50 @@ const Uo = /* @__PURE__ */ u("$ZodEnum", (e, t) => {
1820
1820
  return r.value = o, r;
1821
1821
  };
1822
1822
  });
1823
- function kt(e, t) {
1823
+ function yt(e, t) {
1824
1824
  return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
1825
1825
  }
1826
1826
  const Fo = /* @__PURE__ */ u("$ZodOptional", (e, t) => {
1827
- j.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", T(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), T(e._zod, "pattern", () => {
1827
+ j.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", S(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), S(e._zod, "pattern", () => {
1828
1828
  const r = t.innerType._zod.pattern;
1829
1829
  return r ? new RegExp(`^(${st(r.source)})?$`) : void 0;
1830
1830
  }), e._zod.parse = (r, n) => {
1831
1831
  if (t.innerType._zod.optin === "optional") {
1832
1832
  const o = t.innerType._zod.run(r, n);
1833
- return o instanceof Promise ? o.then((s) => kt(s, r.value)) : kt(o, r.value);
1833
+ return o instanceof Promise ? o.then((s) => yt(s, r.value)) : yt(o, r.value);
1834
1834
  }
1835
1835
  return r.value === void 0 ? r : t.innerType._zod.run(r, n);
1836
1836
  };
1837
1837
  }), Vo = /* @__PURE__ */ u("$ZodNullable", (e, t) => {
1838
- j.init(e, t), T(e._zod, "optin", () => t.innerType._zod.optin), T(e._zod, "optout", () => t.innerType._zod.optout), T(e._zod, "pattern", () => {
1838
+ j.init(e, t), S(e._zod, "optin", () => t.innerType._zod.optin), S(e._zod, "optout", () => t.innerType._zod.optout), S(e._zod, "pattern", () => {
1839
1839
  const r = t.innerType._zod.pattern;
1840
1840
  return r ? new RegExp(`^(${st(r.source)}|null)$`) : void 0;
1841
- }), T(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (r, n) => r.value === null ? r : t.innerType._zod.run(r, n);
1841
+ }), S(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (r, n) => r.value === null ? r : t.innerType._zod.run(r, n);
1842
1842
  }), Go = /* @__PURE__ */ u("$ZodDefault", (e, t) => {
1843
- j.init(e, t), e._zod.optin = "optional", T(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
1843
+ j.init(e, t), e._zod.optin = "optional", S(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
1844
1844
  if (n.direction === "backward")
1845
1845
  return t.innerType._zod.run(r, n);
1846
1846
  if (r.value === void 0)
1847
1847
  return r.value = t.defaultValue, r;
1848
1848
  const o = t.innerType._zod.run(r, n);
1849
- return o instanceof Promise ? o.then((s) => yt(s, t)) : yt(o, t);
1849
+ return o instanceof Promise ? o.then((s) => xt(s, t)) : xt(o, t);
1850
1850
  };
1851
1851
  });
1852
- function yt(e, t) {
1852
+ function xt(e, t) {
1853
1853
  return e.value === void 0 && (e.value = t.defaultValue), e;
1854
1854
  }
1855
1855
  const Wo = /* @__PURE__ */ u("$ZodPrefault", (e, t) => {
1856
- j.init(e, t), e._zod.optin = "optional", T(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => (n.direction === "backward" || r.value === void 0 && (r.value = t.defaultValue), t.innerType._zod.run(r, n));
1856
+ j.init(e, t), e._zod.optin = "optional", S(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => (n.direction === "backward" || r.value === void 0 && (r.value = t.defaultValue), t.innerType._zod.run(r, n));
1857
1857
  }), Bo = /* @__PURE__ */ u("$ZodNonOptional", (e, t) => {
1858
- j.init(e, t), T(e._zod, "values", () => {
1858
+ j.init(e, t), S(e._zod, "values", () => {
1859
1859
  const r = t.innerType._zod.values;
1860
1860
  return r ? new Set([...r].filter((n) => n !== void 0)) : void 0;
1861
1861
  }), e._zod.parse = (r, n) => {
1862
1862
  const o = t.innerType._zod.run(r, n);
1863
- return o instanceof Promise ? o.then((s) => xt(s, e)) : xt(o, e);
1863
+ return o instanceof Promise ? o.then((s) => zt(s, e)) : zt(o, e);
1864
1864
  };
1865
1865
  });
1866
- function xt(e, t) {
1866
+ function zt(e, t) {
1867
1867
  return !e.issues.length && e.value === void 0 && e.issues.push({
1868
1868
  code: "invalid_type",
1869
1869
  expected: "nonoptional",
@@ -1872,7 +1872,7 @@ function xt(e, t) {
1872
1872
  }), e;
1873
1873
  }
1874
1874
  const Yo = /* @__PURE__ */ u("$ZodCatch", (e, t) => {
1875
- j.init(e, t), T(e._zod, "optin", () => t.innerType._zod.optin), T(e._zod, "optout", () => t.innerType._zod.optout), T(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
1875
+ j.init(e, t), S(e._zod, "optin", () => t.innerType._zod.optin), S(e._zod, "optout", () => t.innerType._zod.optout), S(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
1876
1876
  if (n.direction === "backward")
1877
1877
  return t.innerType._zod.run(r, n);
1878
1878
  const o = t.innerType._zod.run(r, n);
@@ -1891,38 +1891,38 @@ const Yo = /* @__PURE__ */ u("$ZodCatch", (e, t) => {
1891
1891
  }), r.issues = []), r);
1892
1892
  };
1893
1893
  }), qo = /* @__PURE__ */ u("$ZodPipe", (e, t) => {
1894
- j.init(e, t), T(e._zod, "values", () => t.in._zod.values), T(e._zod, "optin", () => t.in._zod.optin), T(e._zod, "optout", () => t.out._zod.optout), T(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (r, n) => {
1894
+ j.init(e, t), S(e._zod, "values", () => t.in._zod.values), S(e._zod, "optin", () => t.in._zod.optin), S(e._zod, "optout", () => t.out._zod.optout), S(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (r, n) => {
1895
1895
  if (n.direction === "backward") {
1896
1896
  const s = t.out._zod.run(r, n);
1897
- return s instanceof Promise ? s.then((i) => Ce(i, t.in, n)) : Ce(s, t.in, n);
1897
+ return s instanceof Promise ? s.then((i) => Se(i, t.in, n)) : Se(s, t.in, n);
1898
1898
  }
1899
1899
  const o = t.in._zod.run(r, n);
1900
- return o instanceof Promise ? o.then((s) => Ce(s, t.out, n)) : Ce(o, t.out, n);
1900
+ return o instanceof Promise ? o.then((s) => Se(s, t.out, n)) : Se(o, t.out, n);
1901
1901
  };
1902
1902
  });
1903
- function Ce(e, t, r) {
1903
+ function Se(e, t, r) {
1904
1904
  return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues }, r);
1905
1905
  }
1906
1906
  const Jo = /* @__PURE__ */ u("$ZodReadonly", (e, t) => {
1907
- j.init(e, t), T(e._zod, "propValues", () => t.innerType._zod.propValues), T(e._zod, "values", () => t.innerType._zod.values), T(e._zod, "optin", () => t.innerType._zod.optin), T(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (r, n) => {
1907
+ j.init(e, t), S(e._zod, "propValues", () => t.innerType._zod.propValues), S(e._zod, "values", () => t.innerType._zod.values), S(e._zod, "optin", () => t.innerType._zod.optin), S(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (r, n) => {
1908
1908
  if (n.direction === "backward")
1909
1909
  return t.innerType._zod.run(r, n);
1910
1910
  const o = t.innerType._zod.run(r, n);
1911
- return o instanceof Promise ? o.then(zt) : zt(o);
1911
+ return o instanceof Promise ? o.then(Et) : Et(o);
1912
1912
  };
1913
1913
  });
1914
- function zt(e) {
1914
+ function Et(e) {
1915
1915
  return e.value = Object.freeze(e.value), e;
1916
1916
  }
1917
1917
  const Ho = /* @__PURE__ */ u("$ZodCustom", (e, t) => {
1918
1918
  V.init(e, t), j.init(e, t), e._zod.parse = (r, n) => r, e._zod.check = (r) => {
1919
1919
  const n = r.value, o = t.fn(n);
1920
1920
  if (o instanceof Promise)
1921
- return o.then((s) => Et(s, r, n, e));
1922
- Et(o, r, n, e);
1921
+ return o.then((s) => $t(s, r, n, e));
1922
+ $t(o, r, n, e);
1923
1923
  };
1924
1924
  });
1925
- function Et(e, t, r, n) {
1925
+ function $t(e, t, r, n) {
1926
1926
  if (!e) {
1927
1927
  const o = {
1928
1928
  code: "custom",
@@ -1974,11 +1974,11 @@ class Xo {
1974
1974
  function Ko() {
1975
1975
  return new Xo();
1976
1976
  }
1977
- const Se = /* @__PURE__ */ Ko();
1977
+ const Ie = /* @__PURE__ */ Ko();
1978
1978
  function Qo(e, t) {
1979
1979
  return new e({
1980
1980
  type: "string",
1981
- ...g(t)
1981
+ ...v(t)
1982
1982
  });
1983
1983
  }
1984
1984
  function es(e, t) {
@@ -1987,16 +1987,16 @@ function es(e, t) {
1987
1987
  format: "email",
1988
1988
  check: "string_format",
1989
1989
  abort: !1,
1990
- ...g(t)
1990
+ ...v(t)
1991
1991
  });
1992
1992
  }
1993
- function $t(e, t) {
1993
+ function Zt(e, t) {
1994
1994
  return new e({
1995
1995
  type: "string",
1996
1996
  format: "guid",
1997
1997
  check: "string_format",
1998
1998
  abort: !1,
1999
- ...g(t)
1999
+ ...v(t)
2000
2000
  });
2001
2001
  }
2002
2002
  function ts(e, t) {
@@ -2005,7 +2005,7 @@ function ts(e, t) {
2005
2005
  format: "uuid",
2006
2006
  check: "string_format",
2007
2007
  abort: !1,
2008
- ...g(t)
2008
+ ...v(t)
2009
2009
  });
2010
2010
  }
2011
2011
  function rs(e, t) {
@@ -2015,7 +2015,7 @@ function rs(e, t) {
2015
2015
  check: "string_format",
2016
2016
  abort: !1,
2017
2017
  version: "v4",
2018
- ...g(t)
2018
+ ...v(t)
2019
2019
  });
2020
2020
  }
2021
2021
  function ns(e, t) {
@@ -2025,7 +2025,7 @@ function ns(e, t) {
2025
2025
  check: "string_format",
2026
2026
  abort: !1,
2027
2027
  version: "v6",
2028
- ...g(t)
2028
+ ...v(t)
2029
2029
  });
2030
2030
  }
2031
2031
  function os(e, t) {
@@ -2035,7 +2035,7 @@ function os(e, t) {
2035
2035
  check: "string_format",
2036
2036
  abort: !1,
2037
2037
  version: "v7",
2038
- ...g(t)
2038
+ ...v(t)
2039
2039
  });
2040
2040
  }
2041
2041
  function ss(e, t) {
@@ -2044,7 +2044,7 @@ function ss(e, t) {
2044
2044
  format: "url",
2045
2045
  check: "string_format",
2046
2046
  abort: !1,
2047
- ...g(t)
2047
+ ...v(t)
2048
2048
  });
2049
2049
  }
2050
2050
  function is(e, t) {
@@ -2053,7 +2053,7 @@ function is(e, t) {
2053
2053
  format: "emoji",
2054
2054
  check: "string_format",
2055
2055
  abort: !1,
2056
- ...g(t)
2056
+ ...v(t)
2057
2057
  });
2058
2058
  }
2059
2059
  function as(e, t) {
@@ -2062,7 +2062,7 @@ function as(e, t) {
2062
2062
  format: "nanoid",
2063
2063
  check: "string_format",
2064
2064
  abort: !1,
2065
- ...g(t)
2065
+ ...v(t)
2066
2066
  });
2067
2067
  }
2068
2068
  function cs(e, t) {
@@ -2071,7 +2071,7 @@ function cs(e, t) {
2071
2071
  format: "cuid",
2072
2072
  check: "string_format",
2073
2073
  abort: !1,
2074
- ...g(t)
2074
+ ...v(t)
2075
2075
  });
2076
2076
  }
2077
2077
  function us(e, t) {
@@ -2080,7 +2080,7 @@ function us(e, t) {
2080
2080
  format: "cuid2",
2081
2081
  check: "string_format",
2082
2082
  abort: !1,
2083
- ...g(t)
2083
+ ...v(t)
2084
2084
  });
2085
2085
  }
2086
2086
  function ls(e, t) {
@@ -2089,7 +2089,7 @@ function ls(e, t) {
2089
2089
  format: "ulid",
2090
2090
  check: "string_format",
2091
2091
  abort: !1,
2092
- ...g(t)
2092
+ ...v(t)
2093
2093
  });
2094
2094
  }
2095
2095
  function ds(e, t) {
@@ -2098,7 +2098,7 @@ function ds(e, t) {
2098
2098
  format: "xid",
2099
2099
  check: "string_format",
2100
2100
  abort: !1,
2101
- ...g(t)
2101
+ ...v(t)
2102
2102
  });
2103
2103
  }
2104
2104
  function ms(e, t) {
@@ -2107,7 +2107,7 @@ function ms(e, t) {
2107
2107
  format: "ksuid",
2108
2108
  check: "string_format",
2109
2109
  abort: !1,
2110
- ...g(t)
2110
+ ...v(t)
2111
2111
  });
2112
2112
  }
2113
2113
  function fs(e, t) {
@@ -2116,7 +2116,7 @@ function fs(e, t) {
2116
2116
  format: "ipv4",
2117
2117
  check: "string_format",
2118
2118
  abort: !1,
2119
- ...g(t)
2119
+ ...v(t)
2120
2120
  });
2121
2121
  }
2122
2122
  function ps(e, t) {
@@ -2125,7 +2125,7 @@ function ps(e, t) {
2125
2125
  format: "ipv6",
2126
2126
  check: "string_format",
2127
2127
  abort: !1,
2128
- ...g(t)
2128
+ ...v(t)
2129
2129
  });
2130
2130
  }
2131
2131
  function hs(e, t) {
@@ -2134,7 +2134,7 @@ function hs(e, t) {
2134
2134
  format: "cidrv4",
2135
2135
  check: "string_format",
2136
2136
  abort: !1,
2137
- ...g(t)
2137
+ ...v(t)
2138
2138
  });
2139
2139
  }
2140
2140
  function gs(e, t) {
@@ -2143,7 +2143,7 @@ function gs(e, t) {
2143
2143
  format: "cidrv6",
2144
2144
  check: "string_format",
2145
2145
  abort: !1,
2146
- ...g(t)
2146
+ ...v(t)
2147
2147
  });
2148
2148
  }
2149
2149
  function bs(e, t) {
@@ -2152,7 +2152,7 @@ function bs(e, t) {
2152
2152
  format: "base64",
2153
2153
  check: "string_format",
2154
2154
  abort: !1,
2155
- ...g(t)
2155
+ ...v(t)
2156
2156
  });
2157
2157
  }
2158
2158
  function vs(e, t) {
@@ -2161,7 +2161,7 @@ function vs(e, t) {
2161
2161
  format: "base64url",
2162
2162
  check: "string_format",
2163
2163
  abort: !1,
2164
- ...g(t)
2164
+ ...v(t)
2165
2165
  });
2166
2166
  }
2167
2167
  function _s(e, t) {
@@ -2170,7 +2170,7 @@ function _s(e, t) {
2170
2170
  format: "e164",
2171
2171
  check: "string_format",
2172
2172
  abort: !1,
2173
- ...g(t)
2173
+ ...v(t)
2174
2174
  });
2175
2175
  }
2176
2176
  function ws(e, t) {
@@ -2179,7 +2179,7 @@ function ws(e, t) {
2179
2179
  format: "jwt",
2180
2180
  check: "string_format",
2181
2181
  abort: !1,
2182
- ...g(t)
2182
+ ...v(t)
2183
2183
  });
2184
2184
  }
2185
2185
  function ks(e, t) {
@@ -2190,7 +2190,7 @@ function ks(e, t) {
2190
2190
  offset: !1,
2191
2191
  local: !1,
2192
2192
  precision: null,
2193
- ...g(t)
2193
+ ...v(t)
2194
2194
  });
2195
2195
  }
2196
2196
  function ys(e, t) {
@@ -2198,7 +2198,7 @@ function ys(e, t) {
2198
2198
  type: "string",
2199
2199
  format: "date",
2200
2200
  check: "string_format",
2201
- ...g(t)
2201
+ ...v(t)
2202
2202
  });
2203
2203
  }
2204
2204
  function xs(e, t) {
@@ -2207,7 +2207,7 @@ function xs(e, t) {
2207
2207
  format: "time",
2208
2208
  check: "string_format",
2209
2209
  precision: null,
2210
- ...g(t)
2210
+ ...v(t)
2211
2211
  });
2212
2212
  }
2213
2213
  function zs(e, t) {
@@ -2215,14 +2215,14 @@ function zs(e, t) {
2215
2215
  type: "string",
2216
2216
  format: "duration",
2217
2217
  check: "string_format",
2218
- ...g(t)
2218
+ ...v(t)
2219
2219
  });
2220
2220
  }
2221
2221
  function Es(e, t) {
2222
2222
  return new e({
2223
2223
  type: "number",
2224
2224
  checks: [],
2225
- ...g(t)
2225
+ ...v(t)
2226
2226
  });
2227
2227
  }
2228
2228
  function $s(e, t) {
@@ -2231,113 +2231,113 @@ function $s(e, t) {
2231
2231
  check: "number_format",
2232
2232
  abort: !1,
2233
2233
  format: "safeint",
2234
- ...g(t)
2234
+ ...v(t)
2235
2235
  });
2236
2236
  }
2237
2237
  function Zs(e, t) {
2238
2238
  return new e({
2239
2239
  type: "boolean",
2240
- ...g(t)
2240
+ ...v(t)
2241
2241
  });
2242
2242
  }
2243
- function As(e) {
2243
+ function Ts(e) {
2244
2244
  return new e({
2245
2245
  type: "unknown"
2246
2246
  });
2247
2247
  }
2248
- function Ts(e, t) {
2248
+ function As(e, t) {
2249
2249
  return new e({
2250
2250
  type: "never",
2251
- ...g(t)
2251
+ ...v(t)
2252
2252
  });
2253
2253
  }
2254
- function Zt(e, t) {
2255
- return new er({
2254
+ function Tt(e, t) {
2255
+ return new tr({
2256
2256
  check: "less_than",
2257
- ...g(t),
2257
+ ...v(t),
2258
2258
  value: e,
2259
2259
  inclusive: !1
2260
2260
  });
2261
2261
  }
2262
- function We(e, t) {
2263
- return new er({
2262
+ function Be(e, t) {
2263
+ return new tr({
2264
2264
  check: "less_than",
2265
- ...g(t),
2265
+ ...v(t),
2266
2266
  value: e,
2267
2267
  inclusive: !0
2268
2268
  });
2269
2269
  }
2270
2270
  function At(e, t) {
2271
- return new tr({
2271
+ return new rr({
2272
2272
  check: "greater_than",
2273
- ...g(t),
2273
+ ...v(t),
2274
2274
  value: e,
2275
2275
  inclusive: !1
2276
2276
  });
2277
2277
  }
2278
- function Be(e, t) {
2279
- return new tr({
2278
+ function Ye(e, t) {
2279
+ return new rr({
2280
2280
  check: "greater_than",
2281
- ...g(t),
2281
+ ...v(t),
2282
2282
  value: e,
2283
2283
  inclusive: !0
2284
2284
  });
2285
2285
  }
2286
- function Tt(e, t) {
2286
+ function St(e, t) {
2287
2287
  return new Wn({
2288
2288
  check: "multiple_of",
2289
- ...g(t),
2289
+ ...v(t),
2290
2290
  value: e
2291
2291
  });
2292
2292
  }
2293
- function ir(e, t) {
2293
+ function ar(e, t) {
2294
2294
  return new Yn({
2295
2295
  check: "max_length",
2296
- ...g(t),
2296
+ ...v(t),
2297
2297
  maximum: e
2298
2298
  });
2299
2299
  }
2300
- function De(e, t) {
2300
+ function Ue(e, t) {
2301
2301
  return new qn({
2302
2302
  check: "min_length",
2303
- ...g(t),
2303
+ ...v(t),
2304
2304
  minimum: e
2305
2305
  });
2306
2306
  }
2307
- function ar(e, t) {
2307
+ function cr(e, t) {
2308
2308
  return new Jn({
2309
2309
  check: "length_equals",
2310
- ...g(t),
2310
+ ...v(t),
2311
2311
  length: e
2312
2312
  });
2313
2313
  }
2314
- function Cs(e, t) {
2314
+ function Ss(e, t) {
2315
2315
  return new Hn({
2316
2316
  check: "string_format",
2317
2317
  format: "regex",
2318
- ...g(t),
2318
+ ...v(t),
2319
2319
  pattern: e
2320
2320
  });
2321
2321
  }
2322
- function Ss(e) {
2322
+ function Is(e) {
2323
2323
  return new Xn({
2324
2324
  check: "string_format",
2325
2325
  format: "lowercase",
2326
- ...g(e)
2326
+ ...v(e)
2327
2327
  });
2328
2328
  }
2329
- function Is(e) {
2329
+ function Cs(e) {
2330
2330
  return new Kn({
2331
2331
  check: "string_format",
2332
2332
  format: "uppercase",
2333
- ...g(e)
2333
+ ...v(e)
2334
2334
  });
2335
2335
  }
2336
2336
  function Rs(e, t) {
2337
2337
  return new Qn({
2338
2338
  check: "string_format",
2339
2339
  format: "includes",
2340
- ...g(t),
2340
+ ...v(t),
2341
2341
  includes: e
2342
2342
  });
2343
2343
  }
@@ -2345,7 +2345,7 @@ function js(e, t) {
2345
2345
  return new eo({
2346
2346
  check: "string_format",
2347
2347
  format: "starts_with",
2348
- ...g(t),
2348
+ ...v(t),
2349
2349
  prefix: e
2350
2350
  });
2351
2351
  }
@@ -2353,7 +2353,7 @@ function Ps(e, t) {
2353
2353
  return new to({
2354
2354
  check: "string_format",
2355
2355
  format: "ends_with",
2356
- ...g(t),
2356
+ ...v(t),
2357
2357
  suffix: e
2358
2358
  });
2359
2359
  }
@@ -2372,7 +2372,7 @@ function Ns() {
2372
2372
  function Ls() {
2373
2373
  return Ee((e) => e.toLowerCase());
2374
2374
  }
2375
- function Ds() {
2375
+ function Ms() {
2376
2376
  return Ee((e) => e.toUpperCase());
2377
2377
  }
2378
2378
  function Us(e, t, r) {
@@ -2382,15 +2382,15 @@ function Us(e, t, r) {
2382
2382
  // get element() {
2383
2383
  // return element;
2384
2384
  // },
2385
- ...g(r)
2385
+ ...v(r)
2386
2386
  });
2387
2387
  }
2388
- function Ms(e, t, r) {
2388
+ function Ds(e, t, r) {
2389
2389
  return new e({
2390
2390
  type: "custom",
2391
2391
  check: "custom",
2392
2392
  fn: t,
2393
- ...g(r)
2393
+ ...v(r)
2394
2394
  });
2395
2395
  }
2396
2396
  function Fs(e) {
@@ -2407,36 +2407,36 @@ function Fs(e) {
2407
2407
  function Vs(e, t) {
2408
2408
  const r = new V({
2409
2409
  check: "custom",
2410
- ...g(t)
2410
+ ...v(t)
2411
2411
  });
2412
2412
  return r._zod.check = e, r;
2413
2413
  }
2414
2414
  const Gs = /* @__PURE__ */ u("ZodISODateTime", (e, t) => {
2415
- bo.init(e, t), I.init(e, t);
2415
+ bo.init(e, t), C.init(e, t);
2416
2416
  });
2417
2417
  function Ws(e) {
2418
2418
  return ks(Gs, e);
2419
2419
  }
2420
2420
  const Bs = /* @__PURE__ */ u("ZodISODate", (e, t) => {
2421
- vo.init(e, t), I.init(e, t);
2421
+ vo.init(e, t), C.init(e, t);
2422
2422
  });
2423
2423
  function Ys(e) {
2424
2424
  return ys(Bs, e);
2425
2425
  }
2426
2426
  const qs = /* @__PURE__ */ u("ZodISOTime", (e, t) => {
2427
- _o.init(e, t), I.init(e, t);
2427
+ _o.init(e, t), C.init(e, t);
2428
2428
  });
2429
2429
  function Js(e) {
2430
2430
  return xs(qs, e);
2431
2431
  }
2432
2432
  const Hs = /* @__PURE__ */ u("ZodISODuration", (e, t) => {
2433
- wo.init(e, t), I.init(e, t);
2433
+ wo.init(e, t), C.init(e, t);
2434
2434
  });
2435
2435
  function Xs(e) {
2436
2436
  return zs(Hs, e);
2437
2437
  }
2438
2438
  const Ks = (e, t) => {
2439
- qt.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
2439
+ Jt.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
2440
2440
  format: {
2441
2441
  value: (r) => an(e, r)
2442
2442
  // enumerable: false,
@@ -2447,13 +2447,13 @@ const Ks = (e, t) => {
2447
2447
  },
2448
2448
  addIssue: {
2449
2449
  value: (r) => {
2450
- e.issues.push(r), e.message = JSON.stringify(e.issues, Je, 2);
2450
+ e.issues.push(r), e.message = JSON.stringify(e.issues, He, 2);
2451
2451
  }
2452
2452
  // enumerable: false,
2453
2453
  },
2454
2454
  addIssues: {
2455
2455
  value: (r) => {
2456
- e.issues.push(...r), e.message = JSON.stringify(e.issues, Je, 2);
2456
+ e.issues.push(...r), e.message = JSON.stringify(e.issues, He, 2);
2457
2457
  }
2458
2458
  // enumerable: false,
2459
2459
  },
@@ -2464,122 +2464,122 @@ const Ks = (e, t) => {
2464
2464
  // enumerable: false,
2465
2465
  }
2466
2466
  });
2467
- }, W = u("ZodError", Ks, {
2467
+ }, B = u("ZodError", Ks, {
2468
2468
  Parent: Error
2469
- }), Qs = /* @__PURE__ */ at(W), ei = /* @__PURE__ */ ct(W), ti = /* @__PURE__ */ Me(W), ri = /* @__PURE__ */ Fe(W), ni = /* @__PURE__ */ ln(W), oi = /* @__PURE__ */ dn(W), si = /* @__PURE__ */ mn(W), ii = /* @__PURE__ */ fn(W), ai = /* @__PURE__ */ pn(W), ci = /* @__PURE__ */ hn(W), ui = /* @__PURE__ */ gn(W), li = /* @__PURE__ */ bn(W), O = /* @__PURE__ */ u("ZodType", (e, t) => (j.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(ce(t, {
2469
+ }), Qs = /* @__PURE__ */ at(B), ei = /* @__PURE__ */ ct(B), ti = /* @__PURE__ */ Fe(B), ri = /* @__PURE__ */ Ve(B), ni = /* @__PURE__ */ ln(B), oi = /* @__PURE__ */ dn(B), si = /* @__PURE__ */ mn(B), ii = /* @__PURE__ */ fn(B), ai = /* @__PURE__ */ pn(B), ci = /* @__PURE__ */ hn(B), ui = /* @__PURE__ */ gn(B), li = /* @__PURE__ */ bn(B), O = /* @__PURE__ */ u("ZodType", (e, t) => (j.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(ce(t, {
2470
2470
  checks: [
2471
2471
  ...t.checks ?? [],
2472
2472
  ...r.map((n) => typeof n == "function" ? { _zod: { check: n, def: { check: "custom" }, onattach: [] } } : n)
2473
2473
  ]
2474
- })), e.clone = (r, n) => ne(e, r, n), e.brand = () => e, e.register = ((r, n) => (r.add(e, n), e)), e.parse = (r, n) => Qs(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => ti(e, r, n), e.parseAsync = async (r, n) => ei(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => ri(e, r, n), e.spa = e.safeParseAsync, e.encode = (r, n) => ni(e, r, n), e.decode = (r, n) => oi(e, r, n), e.encodeAsync = async (r, n) => si(e, r, n), e.decodeAsync = async (r, n) => ii(e, r, n), e.safeEncode = (r, n) => ai(e, r, n), e.safeDecode = (r, n) => ci(e, r, n), e.safeEncodeAsync = async (r, n) => ui(e, r, n), e.safeDecodeAsync = async (r, n) => li(e, r, n), e.refine = (r, n) => e.check(ta(r, n)), e.superRefine = (r) => e.check(ra(r)), e.overwrite = (r) => e.check(Ee(r)), e.optional = () => Pt(e), e.nullable = () => Ot(e), e.nullish = () => Pt(Ot(e)), e.nonoptional = (r) => qi(e, r), e.array = () => Pi(e), e.or = (r) => Li([e, r]), e.and = (r) => Ui(e, r), e.transform = (r) => Nt(e, Fi(r)), e.default = (r) => Wi(e, r), e.prefault = (r) => Yi(e, r), e.catch = (r) => Hi(e, r), e.pipe = (r) => Nt(e, r), e.readonly = () => Qi(e), e.describe = (r) => {
2474
+ })), e.clone = (r, n) => ne(e, r, n), e.brand = () => e, e.register = ((r, n) => (r.add(e, n), e)), e.parse = (r, n) => Qs(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => ti(e, r, n), e.parseAsync = async (r, n) => ei(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => ri(e, r, n), e.spa = e.safeParseAsync, e.encode = (r, n) => ni(e, r, n), e.decode = (r, n) => oi(e, r, n), e.encodeAsync = async (r, n) => si(e, r, n), e.decodeAsync = async (r, n) => ii(e, r, n), e.safeEncode = (r, n) => ai(e, r, n), e.safeDecode = (r, n) => ci(e, r, n), e.safeEncodeAsync = async (r, n) => ui(e, r, n), e.safeDecodeAsync = async (r, n) => li(e, r, n), e.refine = (r, n) => e.check(ta(r, n)), e.superRefine = (r) => e.check(ra(r)), e.overwrite = (r) => e.check(Ee(r)), e.optional = () => Ot(e), e.nullable = () => Nt(e), e.nullish = () => Ot(Nt(e)), e.nonoptional = (r) => qi(e, r), e.array = () => Pi(e), e.or = (r) => Li([e, r]), e.and = (r) => Ui(e, r), e.transform = (r) => Lt(e, Fi(r)), e.default = (r) => Wi(e, r), e.prefault = (r) => Yi(e, r), e.catch = (r) => Hi(e, r), e.pipe = (r) => Lt(e, r), e.readonly = () => Qi(e), e.describe = (r) => {
2475
2475
  const n = e.clone();
2476
- return Se.add(n, { description: r }), n;
2476
+ return Ie.add(n, { description: r }), n;
2477
2477
  }, Object.defineProperty(e, "description", {
2478
2478
  get() {
2479
- return Se.get(e)?.description;
2479
+ return Ie.get(e)?.description;
2480
2480
  },
2481
2481
  configurable: !0
2482
2482
  }), e.meta = (...r) => {
2483
2483
  if (r.length === 0)
2484
- return Se.get(e);
2484
+ return Ie.get(e);
2485
2485
  const n = e.clone();
2486
- return Se.add(n, r[0]), n;
2487
- }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), cr = /* @__PURE__ */ u("_ZodString", (e, t) => {
2486
+ return Ie.add(n, r[0]), n;
2487
+ }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), ur = /* @__PURE__ */ u("_ZodString", (e, t) => {
2488
2488
  ut.init(e, t), O.init(e, t);
2489
2489
  const r = e._zod.bag;
2490
- e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(Cs(...n)), e.includes = (...n) => e.check(Rs(...n)), e.startsWith = (...n) => e.check(js(...n)), e.endsWith = (...n) => e.check(Ps(...n)), e.min = (...n) => e.check(De(...n)), e.max = (...n) => e.check(ir(...n)), e.length = (...n) => e.check(ar(...n)), e.nonempty = (...n) => e.check(De(1, ...n)), e.lowercase = (n) => e.check(Ss(n)), e.uppercase = (n) => e.check(Is(n)), e.trim = () => e.check(Ns()), e.normalize = (...n) => e.check(Os(...n)), e.toLowerCase = () => e.check(Ls()), e.toUpperCase = () => e.check(Ds());
2490
+ e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(Ss(...n)), e.includes = (...n) => e.check(Rs(...n)), e.startsWith = (...n) => e.check(js(...n)), e.endsWith = (...n) => e.check(Ps(...n)), e.min = (...n) => e.check(Ue(...n)), e.max = (...n) => e.check(ar(...n)), e.length = (...n) => e.check(cr(...n)), e.nonempty = (...n) => e.check(Ue(1, ...n)), e.lowercase = (n) => e.check(Is(n)), e.uppercase = (n) => e.check(Cs(n)), e.trim = () => e.check(Ns()), e.normalize = (...n) => e.check(Os(...n)), e.toLowerCase = () => e.check(Ls()), e.toUpperCase = () => e.check(Ms());
2491
2491
  }), di = /* @__PURE__ */ u("ZodString", (e, t) => {
2492
- ut.init(e, t), cr.init(e, t), e.email = (r) => e.check(es(mi, r)), e.url = (r) => e.check(ss(fi, r)), e.jwt = (r) => e.check(ws(Ai, r)), e.emoji = (r) => e.check(is(pi, r)), e.guid = (r) => e.check($t(Ct, r)), e.uuid = (r) => e.check(ts(Re, r)), e.uuidv4 = (r) => e.check(rs(Re, r)), e.uuidv6 = (r) => e.check(ns(Re, r)), e.uuidv7 = (r) => e.check(os(Re, r)), e.nanoid = (r) => e.check(as(hi, r)), e.guid = (r) => e.check($t(Ct, r)), e.cuid = (r) => e.check(cs(gi, r)), e.cuid2 = (r) => e.check(us(bi, r)), e.ulid = (r) => e.check(ls(vi, r)), e.base64 = (r) => e.check(bs(Ei, r)), e.base64url = (r) => e.check(vs($i, r)), e.xid = (r) => e.check(ds(_i, r)), e.ksuid = (r) => e.check(ms(wi, r)), e.ipv4 = (r) => e.check(fs(ki, r)), e.ipv6 = (r) => e.check(ps(yi, r)), e.cidrv4 = (r) => e.check(hs(xi, r)), e.cidrv6 = (r) => e.check(gs(zi, r)), e.e164 = (r) => e.check(_s(Zi, r)), e.datetime = (r) => e.check(Ws(r)), e.date = (r) => e.check(Ys(r)), e.time = (r) => e.check(Js(r)), e.duration = (r) => e.check(Xs(r));
2492
+ ut.init(e, t), ur.init(e, t), e.email = (r) => e.check(es(mi, r)), e.url = (r) => e.check(ss(fi, r)), e.jwt = (r) => e.check(ws(Ti, r)), e.emoji = (r) => e.check(is(pi, r)), e.guid = (r) => e.check(Zt(It, r)), e.uuid = (r) => e.check(ts(Re, r)), e.uuidv4 = (r) => e.check(rs(Re, r)), e.uuidv6 = (r) => e.check(ns(Re, r)), e.uuidv7 = (r) => e.check(os(Re, r)), e.nanoid = (r) => e.check(as(hi, r)), e.guid = (r) => e.check(Zt(It, r)), e.cuid = (r) => e.check(cs(gi, r)), e.cuid2 = (r) => e.check(us(bi, r)), e.ulid = (r) => e.check(ls(vi, r)), e.base64 = (r) => e.check(bs(Ei, r)), e.base64url = (r) => e.check(vs($i, r)), e.xid = (r) => e.check(ds(_i, r)), e.ksuid = (r) => e.check(ms(wi, r)), e.ipv4 = (r) => e.check(fs(ki, r)), e.ipv6 = (r) => e.check(ps(yi, r)), e.cidrv4 = (r) => e.check(hs(xi, r)), e.cidrv6 = (r) => e.check(gs(zi, r)), e.e164 = (r) => e.check(_s(Zi, r)), e.datetime = (r) => e.check(Ws(r)), e.date = (r) => e.check(Ys(r)), e.time = (r) => e.check(Js(r)), e.duration = (r) => e.check(Xs(r));
2493
2493
  });
2494
- function Ie(e) {
2494
+ function Ce(e) {
2495
2495
  return Qo(di, e);
2496
2496
  }
2497
- const I = /* @__PURE__ */ u("ZodStringFormat", (e, t) => {
2498
- S.init(e, t), cr.init(e, t);
2497
+ const C = /* @__PURE__ */ u("ZodStringFormat", (e, t) => {
2498
+ I.init(e, t), ur.init(e, t);
2499
2499
  }), mi = /* @__PURE__ */ u("ZodEmail", (e, t) => {
2500
- ao.init(e, t), I.init(e, t);
2501
- }), Ct = /* @__PURE__ */ u("ZodGUID", (e, t) => {
2502
- so.init(e, t), I.init(e, t);
2500
+ ao.init(e, t), C.init(e, t);
2501
+ }), It = /* @__PURE__ */ u("ZodGUID", (e, t) => {
2502
+ so.init(e, t), C.init(e, t);
2503
2503
  }), Re = /* @__PURE__ */ u("ZodUUID", (e, t) => {
2504
- io.init(e, t), I.init(e, t);
2504
+ io.init(e, t), C.init(e, t);
2505
2505
  }), fi = /* @__PURE__ */ u("ZodURL", (e, t) => {
2506
- co.init(e, t), I.init(e, t);
2506
+ co.init(e, t), C.init(e, t);
2507
2507
  }), pi = /* @__PURE__ */ u("ZodEmoji", (e, t) => {
2508
- uo.init(e, t), I.init(e, t);
2508
+ uo.init(e, t), C.init(e, t);
2509
2509
  }), hi = /* @__PURE__ */ u("ZodNanoID", (e, t) => {
2510
- lo.init(e, t), I.init(e, t);
2510
+ lo.init(e, t), C.init(e, t);
2511
2511
  }), gi = /* @__PURE__ */ u("ZodCUID", (e, t) => {
2512
- mo.init(e, t), I.init(e, t);
2512
+ mo.init(e, t), C.init(e, t);
2513
2513
  }), bi = /* @__PURE__ */ u("ZodCUID2", (e, t) => {
2514
- fo.init(e, t), I.init(e, t);
2514
+ fo.init(e, t), C.init(e, t);
2515
2515
  }), vi = /* @__PURE__ */ u("ZodULID", (e, t) => {
2516
- po.init(e, t), I.init(e, t);
2516
+ po.init(e, t), C.init(e, t);
2517
2517
  }), _i = /* @__PURE__ */ u("ZodXID", (e, t) => {
2518
- ho.init(e, t), I.init(e, t);
2518
+ ho.init(e, t), C.init(e, t);
2519
2519
  }), wi = /* @__PURE__ */ u("ZodKSUID", (e, t) => {
2520
- go.init(e, t), I.init(e, t);
2520
+ go.init(e, t), C.init(e, t);
2521
2521
  }), ki = /* @__PURE__ */ u("ZodIPv4", (e, t) => {
2522
- ko.init(e, t), I.init(e, t);
2522
+ ko.init(e, t), C.init(e, t);
2523
2523
  }), yi = /* @__PURE__ */ u("ZodIPv6", (e, t) => {
2524
- yo.init(e, t), I.init(e, t);
2524
+ yo.init(e, t), C.init(e, t);
2525
2525
  }), xi = /* @__PURE__ */ u("ZodCIDRv4", (e, t) => {
2526
- xo.init(e, t), I.init(e, t);
2526
+ xo.init(e, t), C.init(e, t);
2527
2527
  }), zi = /* @__PURE__ */ u("ZodCIDRv6", (e, t) => {
2528
- zo.init(e, t), I.init(e, t);
2528
+ zo.init(e, t), C.init(e, t);
2529
2529
  }), Ei = /* @__PURE__ */ u("ZodBase64", (e, t) => {
2530
- Eo.init(e, t), I.init(e, t);
2530
+ Eo.init(e, t), C.init(e, t);
2531
2531
  }), $i = /* @__PURE__ */ u("ZodBase64URL", (e, t) => {
2532
- Zo.init(e, t), I.init(e, t);
2532
+ Zo.init(e, t), C.init(e, t);
2533
2533
  }), Zi = /* @__PURE__ */ u("ZodE164", (e, t) => {
2534
- Ao.init(e, t), I.init(e, t);
2535
- }), Ai = /* @__PURE__ */ u("ZodJWT", (e, t) => {
2536
- Co.init(e, t), I.init(e, t);
2537
- }), ur = /* @__PURE__ */ u("ZodNumber", (e, t) => {
2538
- nr.init(e, t), O.init(e, t), e.gt = (n, o) => e.check(At(n, o)), e.gte = (n, o) => e.check(Be(n, o)), e.min = (n, o) => e.check(Be(n, o)), e.lt = (n, o) => e.check(Zt(n, o)), e.lte = (n, o) => e.check(We(n, o)), e.max = (n, o) => e.check(We(n, o)), e.int = (n) => e.check(It(n)), e.safe = (n) => e.check(It(n)), e.positive = (n) => e.check(At(0, n)), e.nonnegative = (n) => e.check(Be(0, n)), e.negative = (n) => e.check(Zt(0, n)), e.nonpositive = (n) => e.check(We(0, n)), e.multipleOf = (n, o) => e.check(Tt(n, o)), e.step = (n, o) => e.check(Tt(n, o)), e.finite = () => e;
2534
+ To.init(e, t), C.init(e, t);
2535
+ }), Ti = /* @__PURE__ */ u("ZodJWT", (e, t) => {
2536
+ So.init(e, t), C.init(e, t);
2537
+ }), lr = /* @__PURE__ */ u("ZodNumber", (e, t) => {
2538
+ or.init(e, t), O.init(e, t), e.gt = (n, o) => e.check(At(n, o)), e.gte = (n, o) => e.check(Ye(n, o)), e.min = (n, o) => e.check(Ye(n, o)), e.lt = (n, o) => e.check(Tt(n, o)), e.lte = (n, o) => e.check(Be(n, o)), e.max = (n, o) => e.check(Be(n, o)), e.int = (n) => e.check(Rt(n)), e.safe = (n) => e.check(Rt(n)), e.positive = (n) => e.check(At(0, n)), e.nonnegative = (n) => e.check(Ye(0, n)), e.negative = (n) => e.check(Tt(0, n)), e.nonpositive = (n) => e.check(Be(0, n)), e.multipleOf = (n, o) => e.check(St(n, o)), e.step = (n, o) => e.check(St(n, o)), e.finite = () => e;
2539
2539
  const r = e._zod.bag;
2540
2540
  e.minValue = Math.max(r.minimum ?? Number.NEGATIVE_INFINITY, r.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, e.maxValue = Math.min(r.maximum ?? Number.POSITIVE_INFINITY, r.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, e.isInt = (r.format ?? "").includes("int") || Number.isSafeInteger(r.multipleOf ?? 0.5), e.isFinite = !0, e.format = r.format ?? null;
2541
2541
  });
2542
- function St(e) {
2543
- return Es(ur, e);
2542
+ function Ct(e) {
2543
+ return Es(lr, e);
2544
2544
  }
2545
- const Ti = /* @__PURE__ */ u("ZodNumberFormat", (e, t) => {
2546
- So.init(e, t), ur.init(e, t);
2545
+ const Ai = /* @__PURE__ */ u("ZodNumberFormat", (e, t) => {
2546
+ Io.init(e, t), lr.init(e, t);
2547
2547
  });
2548
- function It(e) {
2549
- return $s(Ti, e);
2548
+ function Rt(e) {
2549
+ return $s(Ai, e);
2550
2550
  }
2551
- const Ci = /* @__PURE__ */ u("ZodBoolean", (e, t) => {
2552
- Io.init(e, t), O.init(e, t);
2551
+ const Si = /* @__PURE__ */ u("ZodBoolean", (e, t) => {
2552
+ Co.init(e, t), O.init(e, t);
2553
2553
  });
2554
- function Rt(e) {
2555
- return Zs(Ci, e);
2554
+ function jt(e) {
2555
+ return Zs(Si, e);
2556
2556
  }
2557
- const Si = /* @__PURE__ */ u("ZodUnknown", (e, t) => {
2557
+ const Ii = /* @__PURE__ */ u("ZodUnknown", (e, t) => {
2558
2558
  Ro.init(e, t), O.init(e, t);
2559
2559
  });
2560
- function jt() {
2561
- return As(Si);
2560
+ function Pt() {
2561
+ return Ts(Ii);
2562
2562
  }
2563
- const Ii = /* @__PURE__ */ u("ZodNever", (e, t) => {
2563
+ const Ci = /* @__PURE__ */ u("ZodNever", (e, t) => {
2564
2564
  jo.init(e, t), O.init(e, t);
2565
2565
  });
2566
2566
  function Ri(e) {
2567
- return Ts(Ii, e);
2567
+ return As(Ci, e);
2568
2568
  }
2569
2569
  const ji = /* @__PURE__ */ u("ZodArray", (e, t) => {
2570
- Po.init(e, t), O.init(e, t), e.element = t.element, e.min = (r, n) => e.check(De(r, n)), e.nonempty = (r) => e.check(De(1, r)), e.max = (r, n) => e.check(ir(r, n)), e.length = (r, n) => e.check(ar(r, n)), e.unwrap = () => e.element;
2570
+ Po.init(e, t), O.init(e, t), e.element = t.element, e.min = (r, n) => e.check(Ue(r, n)), e.nonempty = (r) => e.check(Ue(1, r)), e.max = (r, n) => e.check(ar(r, n)), e.length = (r, n) => e.check(cr(r, n)), e.unwrap = () => e.element;
2571
2571
  });
2572
2572
  function Pi(e, t) {
2573
2573
  return Us(ji, e, t);
2574
2574
  }
2575
2575
  const Oi = /* @__PURE__ */ u("ZodObject", (e, t) => {
2576
- No.init(e, t), O.init(e, t), T(e, "shape", () => t.shape), e.keyof = () => lt(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: jt() }), e.loose = () => e.clone({ ...e._zod.def, catchall: jt() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Ri() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => en(e, r), e.safeExtend = (r) => tn(e, r), e.merge = (r) => rn(e, r), e.pick = (r) => Kr(e, r), e.omit = (r) => Qr(e, r), e.partial = (...r) => nn(lr, e, r[0]), e.required = (...r) => on(dr, e, r[0]);
2576
+ No.init(e, t), O.init(e, t), S(e, "shape", () => t.shape), e.keyof = () => lt(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Pt() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Pt() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Ri() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => en(e, r), e.safeExtend = (r) => tn(e, r), e.merge = (r) => rn(e, r), e.pick = (r) => Kr(e, r), e.omit = (r) => Qr(e, r), e.partial = (...r) => nn(dr, e, r[0]), e.required = (...r) => on(mr, e, r[0]);
2577
2577
  });
2578
- function Xe(e, t) {
2578
+ function Ke(e, t) {
2579
2579
  const r = {
2580
2580
  type: "object",
2581
2581
  shape: e ?? {},
2582
- ...g(t)
2582
+ ...v(t)
2583
2583
  };
2584
2584
  return new Oi(r);
2585
2585
  }
@@ -2590,20 +2590,20 @@ function Li(e, t) {
2590
2590
  return new Ni({
2591
2591
  type: "union",
2592
2592
  options: e,
2593
- ...g(t)
2593
+ ...v(t)
2594
2594
  });
2595
2595
  }
2596
- const Di = /* @__PURE__ */ u("ZodIntersection", (e, t) => {
2597
- Do.init(e, t), O.init(e, t);
2596
+ const Mi = /* @__PURE__ */ u("ZodIntersection", (e, t) => {
2597
+ Mo.init(e, t), O.init(e, t);
2598
2598
  });
2599
2599
  function Ui(e, t) {
2600
- return new Di({
2600
+ return new Mi({
2601
2601
  type: "intersection",
2602
2602
  left: e,
2603
2603
  right: t
2604
2604
  });
2605
2605
  }
2606
- const Ke = /* @__PURE__ */ u("ZodEnum", (e, t) => {
2606
+ const Qe = /* @__PURE__ */ u("ZodEnum", (e, t) => {
2607
2607
  Uo.init(e, t), O.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
2608
2608
  const r = new Set(Object.keys(t.entries));
2609
2609
  e.extract = (n, o) => {
@@ -2613,10 +2613,10 @@ const Ke = /* @__PURE__ */ u("ZodEnum", (e, t) => {
2613
2613
  s[i] = t.entries[i];
2614
2614
  else
2615
2615
  throw new Error(`Key ${i} not found in enum`);
2616
- return new Ke({
2616
+ return new Qe({
2617
2617
  ...t,
2618
2618
  checks: [],
2619
- ...g(o),
2619
+ ...v(o),
2620
2620
  entries: s
2621
2621
  });
2622
2622
  }, e.exclude = (n, o) => {
@@ -2626,26 +2626,26 @@ const Ke = /* @__PURE__ */ u("ZodEnum", (e, t) => {
2626
2626
  delete s[i];
2627
2627
  else
2628
2628
  throw new Error(`Key ${i} not found in enum`);
2629
- return new Ke({
2629
+ return new Qe({
2630
2630
  ...t,
2631
2631
  checks: [],
2632
- ...g(o),
2632
+ ...v(o),
2633
2633
  entries: s
2634
2634
  });
2635
2635
  };
2636
2636
  });
2637
2637
  function lt(e, t) {
2638
2638
  const r = Array.isArray(e) ? Object.fromEntries(e.map((n) => [n, n])) : e;
2639
- return new Ke({
2639
+ return new Qe({
2640
2640
  type: "enum",
2641
2641
  entries: r,
2642
- ...g(t)
2642
+ ...v(t)
2643
2643
  });
2644
2644
  }
2645
- const Mi = /* @__PURE__ */ u("ZodTransform", (e, t) => {
2646
- Mo.init(e, t), O.init(e, t), e._zod.parse = (r, n) => {
2645
+ const Di = /* @__PURE__ */ u("ZodTransform", (e, t) => {
2646
+ Do.init(e, t), O.init(e, t), e._zod.parse = (r, n) => {
2647
2647
  if (n.direction === "backward")
2648
- throw new Ft(e.constructor.name);
2648
+ throw new Vt(e.constructor.name);
2649
2649
  r.addIssue = (s) => {
2650
2650
  if (typeof s == "string")
2651
2651
  r.issues.push(ze(s, r.value, t));
@@ -2659,16 +2659,16 @@ const Mi = /* @__PURE__ */ u("ZodTransform", (e, t) => {
2659
2659
  };
2660
2660
  });
2661
2661
  function Fi(e) {
2662
- return new Mi({
2662
+ return new Di({
2663
2663
  type: "transform",
2664
2664
  transform: e
2665
2665
  });
2666
2666
  }
2667
- const lr = /* @__PURE__ */ u("ZodOptional", (e, t) => {
2667
+ const dr = /* @__PURE__ */ u("ZodOptional", (e, t) => {
2668
2668
  Fo.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType;
2669
2669
  });
2670
- function Pt(e) {
2671
- return new lr({
2670
+ function Ot(e) {
2671
+ return new dr({
2672
2672
  type: "optional",
2673
2673
  innerType: e
2674
2674
  });
@@ -2676,7 +2676,7 @@ function Pt(e) {
2676
2676
  const Vi = /* @__PURE__ */ u("ZodNullable", (e, t) => {
2677
2677
  Vo.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType;
2678
2678
  });
2679
- function Ot(e) {
2679
+ function Nt(e) {
2680
2680
  return new Vi({
2681
2681
  type: "nullable",
2682
2682
  innerType: e
@@ -2690,7 +2690,7 @@ function Wi(e, t) {
2690
2690
  type: "default",
2691
2691
  innerType: e,
2692
2692
  get defaultValue() {
2693
- return typeof t == "function" ? t() : Wt(t);
2693
+ return typeof t == "function" ? t() : Bt(t);
2694
2694
  }
2695
2695
  });
2696
2696
  }
@@ -2702,18 +2702,18 @@ function Yi(e, t) {
2702
2702
  type: "prefault",
2703
2703
  innerType: e,
2704
2704
  get defaultValue() {
2705
- return typeof t == "function" ? t() : Wt(t);
2705
+ return typeof t == "function" ? t() : Bt(t);
2706
2706
  }
2707
2707
  });
2708
2708
  }
2709
- const dr = /* @__PURE__ */ u("ZodNonOptional", (e, t) => {
2709
+ const mr = /* @__PURE__ */ u("ZodNonOptional", (e, t) => {
2710
2710
  Bo.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType;
2711
2711
  });
2712
2712
  function qi(e, t) {
2713
- return new dr({
2713
+ return new mr({
2714
2714
  type: "nonoptional",
2715
2715
  innerType: e,
2716
- ...g(t)
2716
+ ...v(t)
2717
2717
  });
2718
2718
  }
2719
2719
  const Ji = /* @__PURE__ */ u("ZodCatch", (e, t) => {
@@ -2729,7 +2729,7 @@ function Hi(e, t) {
2729
2729
  const Xi = /* @__PURE__ */ u("ZodPipe", (e, t) => {
2730
2730
  qo.init(e, t), O.init(e, t), e.in = t.in, e.out = t.out;
2731
2731
  });
2732
- function Nt(e, t) {
2732
+ function Lt(e, t) {
2733
2733
  return new Xi({
2734
2734
  type: "pipe",
2735
2735
  in: e,
@@ -2750,25 +2750,25 @@ const ea = /* @__PURE__ */ u("ZodCustom", (e, t) => {
2750
2750
  Ho.init(e, t), O.init(e, t);
2751
2751
  });
2752
2752
  function ta(e, t = {}) {
2753
- return Ms(ea, e, t);
2753
+ return Ds(ea, e, t);
2754
2754
  }
2755
2755
  function ra(e) {
2756
2756
  return Fs(e);
2757
2757
  }
2758
- const na = Xe({
2759
- title: Ie().min(1, "Title is required").max(200, "Title too long"),
2760
- content: Ie().min(1, "Content is required"),
2758
+ const na = Ke({
2759
+ title: Ce().min(1, "Title is required").max(200, "Title too long"),
2760
+ content: Ce().min(1, "Content is required"),
2761
2761
  format: lt(["html", "markdown"]).default("html"),
2762
- metadata: Xe({
2763
- createdAt: Ie().datetime(),
2764
- updatedAt: Ie().datetime(),
2765
- wordCount: St().min(0),
2766
- characterCount: St().min(0)
2762
+ metadata: Ke({
2763
+ createdAt: Ce().datetime(),
2764
+ updatedAt: Ce().datetime(),
2765
+ wordCount: Ct().min(0),
2766
+ characterCount: Ct().min(0)
2767
2767
  }).optional()
2768
2768
  });
2769
- Xe({
2770
- includeStyles: Rt().default(!0),
2771
- includeMeta: Rt().default(!0),
2769
+ Ke({
2770
+ includeStyles: jt().default(!0),
2771
+ includeMeta: jt().default(!0),
2772
2772
  format: lt(["html", "txt"]).default("html")
2773
2773
  });
2774
2774
  const oa = (e = "") => {
@@ -2778,33 +2778,37 @@ const oa = (e = "") => {
2778
2778
  wordCount: e.trim() ? e.trim().split(/\s+/).length : 0,
2779
2779
  characterCount: e.length,
2780
2780
  hasUnsavedChanges: !1
2781
- }), n = zr(null);
2782
- rt(() => {
2783
- n.current && e !== t.content && (n.current.innerHTML = e, r((m) => ({
2784
- ...m,
2781
+ }), n = mt(null), o = mt(e);
2782
+ Ne(() => {
2783
+ e !== o.current && (n.current && (n.current.innerHTML = e), r((g) => ({
2784
+ ...g,
2785
2785
  content: e,
2786
2786
  wordCount: e.trim() ? e.trim().split(/\s+/).length : 0,
2787
- characterCount: e.length
2788
- })));
2789
- }, [e]);
2790
- const o = Y((m) => {
2791
- const k = m.trim() ? m.trim().split(/\s+/).length : 0, w = m.length;
2792
- r((f) => ({
2793
- ...f,
2794
- content: m,
2795
- wordCount: k,
2796
- characterCount: w,
2787
+ characterCount: e.length,
2788
+ hasUnsavedChanges: g.hasUnsavedChanges
2789
+ // Preserve unsaved changes state unless explicitly resetting
2790
+ })), o.current = e);
2791
+ }, [e]), Ne(() => {
2792
+ n.current && !n.current.innerHTML && e && (n.current.innerHTML = e);
2793
+ }, []);
2794
+ const s = W((g) => {
2795
+ const m = g.trim() ? g.trim().split(/\s+/).length : 0, b = g.length;
2796
+ r((T) => ({
2797
+ ...T,
2798
+ content: g,
2799
+ wordCount: m,
2800
+ characterCount: b,
2797
2801
  hasUnsavedChanges: !0
2798
- }));
2799
- }, []), s = Y((m) => {
2800
- r((k) => ({
2801
- ...k,
2802
- title: m,
2802
+ })), o.current = g;
2803
+ }, []), i = W((g) => {
2804
+ r((m) => ({
2805
+ ...m,
2806
+ title: g,
2803
2807
  hasUnsavedChanges: !0
2804
2808
  }));
2805
- }, []), i = Y((m, k) => {
2806
- document.execCommand(m, !1, k), n.current?.focus();
2807
- }, []), a = Y(() => {
2809
+ }, []), a = W((g, m) => {
2810
+ document.execCommand(g, !1, m), n.current && s(n.current.innerHTML), n.current?.focus();
2811
+ }, [s]), c = W(() => {
2808
2812
  try {
2809
2813
  return { success: !0, data: na.parse({
2810
2814
  title: t.title,
@@ -2816,22 +2820,22 @@ const oa = (e = "") => {
2816
2820
  characterCount: t.characterCount
2817
2821
  }
2818
2822
  }) };
2819
- } catch (m) {
2820
- return { success: !1, error: m instanceof Error ? m.message : "Validation failed" };
2823
+ } catch (g) {
2824
+ return { success: !1, error: g instanceof Error ? g.message : "Validation failed" };
2821
2825
  }
2822
- }, [t]), c = Y(
2823
- (m = { includeStyles: !0, includeMeta: !0 }) => {
2824
- const k = a();
2825
- if (!k.success)
2826
- throw new Error(k.error);
2827
- const { data: w } = k;
2828
- let f = `<!DOCTYPE html>
2826
+ }, [t]), d = W(
2827
+ (g = { includeStyles: !0, includeMeta: !0 }) => {
2828
+ const m = c();
2829
+ if (!m.success)
2830
+ throw new Error(m.error);
2831
+ const { data: b } = m;
2832
+ let T = `<!DOCTYPE html>
2829
2833
  <html>
2830
2834
  <head>
2831
2835
  <meta charset="UTF-8">
2832
2836
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
2833
- <title>${w?.title}</title>`;
2834
- return m.includeStyles && (f += `
2837
+ <title>${b?.title}</title>`;
2838
+ return g.includeStyles && (T += `
2835
2839
  <style>
2836
2840
  body {
2837
2841
  font-family: Arial, sans-serif;
@@ -2845,54 +2849,63 @@ const oa = (e = "") => {
2845
2849
  border-radius: 8px;
2846
2850
  background: white;
2847
2851
  }
2848
- </style>`), f += `
2852
+ </style>`), T += `
2849
2853
  </head>
2850
- <body>`, m.includeMeta && (f += `
2854
+ <body>`, g.includeMeta && (T += `
2851
2855
  <div class="document-meta">
2852
- <h1>${w?.title}</h1>
2853
- <p><small>Created: ${new Date(w?.metadata.createdAt ?? "").toLocaleString()} |
2854
- Words: ${w?.metadata.wordCount} |
2855
- Characters: ${w?.metadata.characterCount}</small></p>
2856
+ <h1>${b?.title}</h1>
2857
+ <p><small>Created: ${new Date(b?.metadata.createdAt ?? "").toLocaleString()} |
2858
+ Words: ${b?.metadata.wordCount} |
2859
+ Characters: ${b?.metadata.characterCount}</small></p>
2856
2860
  <hr>
2857
- </div>`), f += `
2861
+ </div>`), T += `
2858
2862
  <div class="editor-content">
2859
- ${w?.content}
2863
+ ${b?.content}
2860
2864
  </div>
2861
2865
  </body>
2862
- </html>`, f;
2866
+ </html>`, T;
2863
2867
  },
2864
- [a]
2865
- ), d = Y(() => {
2868
+ [c]
2869
+ ), h = W(() => {
2866
2870
  r({
2867
2871
  content: "",
2868
2872
  title: "Untitled Document",
2869
2873
  wordCount: 0,
2870
2874
  characterCount: 0,
2871
2875
  hasUnsavedChanges: !1
2872
- }), n.current && (n.current.innerHTML = "");
2873
- }, []);
2876
+ }), n.current && (n.current.innerHTML = ""), o.current = "";
2877
+ }, []), $ = W(() => {
2878
+ n.current && (n.current.innerHTML = e), r((g) => ({
2879
+ ...g,
2880
+ content: e,
2881
+ wordCount: e.trim() ? e.trim().split(/\s+/).length : 0,
2882
+ characterCount: e.length,
2883
+ hasUnsavedChanges: !1
2884
+ })), o.current = e;
2885
+ }, [e]);
2874
2886
  return {
2875
2887
  editorState: t,
2876
2888
  editorRef: n,
2877
- updateContent: o,
2878
- updateTitle: s,
2879
- executeCommand: i,
2880
- getValidationResult: a,
2881
- exportToHTML: c,
2882
- clearEditor: d
2889
+ updateContent: s,
2890
+ updateTitle: i,
2891
+ executeCommand: a,
2892
+ getValidationResult: c,
2893
+ exportToHTML: d,
2894
+ clearEditor: h,
2895
+ resetToInitial: $
2883
2896
  };
2884
2897
  };
2885
- function mr(e) {
2898
+ function fr(e) {
2886
2899
  var t, r, n = "";
2887
2900
  if (typeof e == "string" || typeof e == "number") n += e;
2888
2901
  else if (typeof e == "object") if (Array.isArray(e)) {
2889
2902
  var o = e.length;
2890
- for (t = 0; t < o; t++) e[t] && (r = mr(e[t])) && (n && (n += " "), n += r);
2903
+ for (t = 0; t < o; t++) e[t] && (r = fr(e[t])) && (n && (n += " "), n += r);
2891
2904
  } else for (r in e) e[r] && (n && (n += " "), n += r);
2892
2905
  return n;
2893
2906
  }
2894
2907
  function sa() {
2895
- for (var e, t, r = 0, n = "", o = arguments.length; r < o; r++) (e = arguments[r]) && (t = mr(e)) && (n && (n += " "), n += t);
2908
+ for (var e, t, r = 0, n = "", o = arguments.length; r < o; r++) (e = arguments[r]) && (t = fr(e)) && (n && (n += " "), n += t);
2896
2909
  return n;
2897
2910
  }
2898
2911
  const dt = "-", ia = (e) => {
@@ -2903,17 +2916,17 @@ const dt = "-", ia = (e) => {
2903
2916
  return {
2904
2917
  getClassGroupId: (i) => {
2905
2918
  const a = i.split(dt);
2906
- return a[0] === "" && a.length !== 1 && a.shift(), fr(a, t) || aa(i);
2919
+ return a[0] === "" && a.length !== 1 && a.shift(), pr(a, t) || aa(i);
2907
2920
  },
2908
2921
  getConflictingClassGroupIds: (i, a) => {
2909
2922
  const c = r[i] || [];
2910
2923
  return a && n[i] ? [...c, ...n[i]] : c;
2911
2924
  }
2912
2925
  };
2913
- }, fr = (e, t) => {
2926
+ }, pr = (e, t) => {
2914
2927
  if (e.length === 0)
2915
2928
  return t.classGroupId;
2916
- const r = e[0], n = t.nextPart.get(r), o = n ? fr(e.slice(1), n) : void 0;
2929
+ const r = e[0], n = t.nextPart.get(r), o = n ? pr(e.slice(1), n) : void 0;
2917
2930
  if (o)
2918
2931
  return o;
2919
2932
  if (t.validators.length === 0)
@@ -2922,9 +2935,9 @@ const dt = "-", ia = (e) => {
2922
2935
  return t.validators.find(({
2923
2936
  validator: i
2924
2937
  }) => i(s))?.classGroupId;
2925
- }, Lt = /^\[(.+)\]$/, aa = (e) => {
2926
- if (Lt.test(e)) {
2927
- const t = Lt.exec(e)[1], r = t?.substring(0, t.indexOf(":"));
2938
+ }, Mt = /^\[(.+)\]$/, aa = (e) => {
2939
+ if (Mt.test(e)) {
2940
+ const t = Mt.exec(e)[1], r = t?.substring(0, t.indexOf(":"));
2928
2941
  if (r)
2929
2942
  return "arbitrary.." + r;
2930
2943
  }
@@ -2937,18 +2950,18 @@ const dt = "-", ia = (e) => {
2937
2950
  validators: []
2938
2951
  };
2939
2952
  for (const o in r)
2940
- Qe(r[o], n, o, t);
2953
+ et(r[o], n, o, t);
2941
2954
  return n;
2942
- }, Qe = (e, t, r, n) => {
2955
+ }, et = (e, t, r, n) => {
2943
2956
  e.forEach((o) => {
2944
2957
  if (typeof o == "string") {
2945
- const s = o === "" ? t : Dt(t, o);
2958
+ const s = o === "" ? t : Ut(t, o);
2946
2959
  s.classGroupId = r;
2947
2960
  return;
2948
2961
  }
2949
2962
  if (typeof o == "function") {
2950
2963
  if (ua(o)) {
2951
- Qe(o(n), t, r, n);
2964
+ et(o(n), t, r, n);
2952
2965
  return;
2953
2966
  }
2954
2967
  t.validators.push({
@@ -2958,10 +2971,10 @@ const dt = "-", ia = (e) => {
2958
2971
  return;
2959
2972
  }
2960
2973
  Object.entries(o).forEach(([s, i]) => {
2961
- Qe(i, Dt(t, s), r, n);
2974
+ et(i, Ut(t, s), r, n);
2962
2975
  });
2963
2976
  });
2964
- }, Dt = (e, t) => {
2977
+ }, Ut = (e, t) => {
2965
2978
  let r = e;
2966
2979
  return t.split(dt).forEach((n) => {
2967
2980
  r.nextPart.has(n) || r.nextPart.set(n, {
@@ -2993,7 +3006,7 @@ const dt = "-", ia = (e) => {
2993
3006
  r.has(s) ? r.set(s, i) : o(s, i);
2994
3007
  }
2995
3008
  };
2996
- }, et = "!", tt = ":", da = tt.length, ma = (e) => {
3009
+ }, tt = "!", rt = ":", da = rt.length, ma = (e) => {
2997
3010
  const {
2998
3011
  prefix: t,
2999
3012
  experimentalParseClassName: r
@@ -3001,30 +3014,30 @@ const dt = "-", ia = (e) => {
3001
3014
  let n = (o) => {
3002
3015
  const s = [];
3003
3016
  let i = 0, a = 0, c = 0, d;
3004
- for (let _ = 0; _ < o.length; _++) {
3005
- let C = o[_];
3017
+ for (let b = 0; b < o.length; b++) {
3018
+ let T = o[b];
3006
3019
  if (i === 0 && a === 0) {
3007
- if (C === tt) {
3008
- s.push(o.slice(c, _)), c = _ + da;
3020
+ if (T === rt) {
3021
+ s.push(o.slice(c, b)), c = b + da;
3009
3022
  continue;
3010
3023
  }
3011
- if (C === "/") {
3012
- d = _;
3024
+ if (T === "/") {
3025
+ d = b;
3013
3026
  continue;
3014
3027
  }
3015
3028
  }
3016
- C === "[" ? i++ : C === "]" ? i-- : C === "(" ? a++ : C === ")" && a--;
3029
+ T === "[" ? i++ : T === "]" ? i-- : T === "(" ? a++ : T === ")" && a--;
3017
3030
  }
3018
- const m = s.length === 0 ? o : o.substring(c), k = fa(m), w = k !== m, f = d && d > c ? d - c : void 0;
3031
+ const h = s.length === 0 ? o : o.substring(c), $ = fa(h), g = $ !== h, m = d && d > c ? d - c : void 0;
3019
3032
  return {
3020
3033
  modifiers: s,
3021
- hasImportantModifier: w,
3022
- baseClassName: k,
3023
- maybePostfixModifierPosition: f
3034
+ hasImportantModifier: g,
3035
+ baseClassName: $,
3036
+ maybePostfixModifierPosition: m
3024
3037
  };
3025
3038
  };
3026
3039
  if (t) {
3027
- const o = t + tt, s = n;
3040
+ const o = t + rt, s = n;
3028
3041
  n = (i) => i.startsWith(o) ? s(i.substring(o.length)) : {
3029
3042
  isExternal: !0,
3030
3043
  modifiers: [],
@@ -3041,7 +3054,7 @@ const dt = "-", ia = (e) => {
3041
3054
  });
3042
3055
  }
3043
3056
  return n;
3044
- }, fa = (e) => e.endsWith(et) ? e.substring(0, e.length - 1) : e.startsWith(et) ? e.substring(1) : e, pa = (e) => {
3057
+ }, fa = (e) => e.endsWith(tt) ? e.substring(0, e.length - 1) : e.startsWith(tt) ? e.substring(1) : e, pa = (e) => {
3045
3058
  const t = Object.fromEntries(e.orderSensitiveModifiers.map((n) => [n, !0]));
3046
3059
  return (n) => {
3047
3060
  if (n.length <= 1)
@@ -3066,68 +3079,68 @@ const dt = "-", ia = (e) => {
3066
3079
  } = t, i = [], a = e.trim().split(ga);
3067
3080
  let c = "";
3068
3081
  for (let d = a.length - 1; d >= 0; d -= 1) {
3069
- const m = a[d], {
3070
- isExternal: k,
3071
- modifiers: w,
3072
- hasImportantModifier: f,
3073
- baseClassName: _,
3074
- maybePostfixModifierPosition: C
3075
- } = r(m);
3076
- if (k) {
3077
- c = m + (c.length > 0 ? " " + c : c);
3082
+ const h = a[d], {
3083
+ isExternal: $,
3084
+ modifiers: g,
3085
+ hasImportantModifier: m,
3086
+ baseClassName: b,
3087
+ maybePostfixModifierPosition: T
3088
+ } = r(h);
3089
+ if ($) {
3090
+ c = h + (c.length > 0 ? " " + c : c);
3078
3091
  continue;
3079
3092
  }
3080
- let P = !!C, U = n(P ? _.substring(0, C) : _);
3093
+ let P = !!T, U = n(P ? b.substring(0, T) : b);
3081
3094
  if (!U) {
3082
3095
  if (!P) {
3083
- c = m + (c.length > 0 ? " " + c : c);
3096
+ c = h + (c.length > 0 ? " " + c : c);
3084
3097
  continue;
3085
3098
  }
3086
- if (U = n(_), !U) {
3087
- c = m + (c.length > 0 ? " " + c : c);
3099
+ if (U = n(b), !U) {
3100
+ c = h + (c.length > 0 ? " " + c : c);
3088
3101
  continue;
3089
3102
  }
3090
3103
  P = !1;
3091
3104
  }
3092
- const D = s(w).join(":"), N = f ? D + et : D, R = N + U;
3105
+ const M = s(g).join(":"), N = m ? M + tt : M, R = N + U;
3093
3106
  if (i.includes(R))
3094
3107
  continue;
3095
3108
  i.push(R);
3096
- const M = o(U, P);
3097
- for (let B = 0; B < M.length; ++B) {
3098
- const A = M[B];
3109
+ const D = o(U, P);
3110
+ for (let Y = 0; Y < D.length; ++Y) {
3111
+ const A = D[Y];
3099
3112
  i.push(N + A);
3100
3113
  }
3101
- c = m + (c.length > 0 ? " " + c : c);
3114
+ c = h + (c.length > 0 ? " " + c : c);
3102
3115
  }
3103
3116
  return c;
3104
3117
  };
3105
3118
  function va() {
3106
3119
  let e = 0, t, r, n = "";
3107
3120
  for (; e < arguments.length; )
3108
- (t = arguments[e++]) && (r = pr(t)) && (n && (n += " "), n += r);
3121
+ (t = arguments[e++]) && (r = hr(t)) && (n && (n += " "), n += r);
3109
3122
  return n;
3110
3123
  }
3111
- const pr = (e) => {
3124
+ const hr = (e) => {
3112
3125
  if (typeof e == "string")
3113
3126
  return e;
3114
3127
  let t, r = "";
3115
3128
  for (let n = 0; n < e.length; n++)
3116
- e[n] && (t = pr(e[n])) && (r && (r += " "), r += t);
3129
+ e[n] && (t = hr(e[n])) && (r && (r += " "), r += t);
3117
3130
  return r;
3118
3131
  };
3119
3132
  function _a(e, ...t) {
3120
3133
  let r, n, o, s = i;
3121
3134
  function i(c) {
3122
- const d = t.reduce((m, k) => k(m), e());
3135
+ const d = t.reduce((h, $) => $(h), e());
3123
3136
  return r = ha(d), n = r.cache.get, o = r.cache.set, s = a, a(c);
3124
3137
  }
3125
3138
  function a(c) {
3126
3139
  const d = n(c);
3127
3140
  if (d)
3128
3141
  return d;
3129
- const m = ba(c, r);
3130
- return o(c, m), m;
3142
+ const h = ba(c, r);
3143
+ return o(c, h), h;
3131
3144
  }
3132
3145
  return function() {
3133
3146
  return s(va.apply(null, arguments));
@@ -3136,19 +3149,19 @@ function _a(e, ...t) {
3136
3149
  const L = (e) => {
3137
3150
  const t = (r) => r[e] || [];
3138
3151
  return t.isThemeGetter = !0, t;
3139
- }, hr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, gr = /^\((?:(\w[\w-]*):)?(.+)\)$/i, wa = /^\d+\/\d+$/, ka = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ya = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, xa = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, za = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ea = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, de = (e) => wa.test(e), z = (e) => !!e && !Number.isNaN(Number(e)), re = (e) => !!e && Number.isInteger(Number(e)), Ye = (e) => e.endsWith("%") && z(e.slice(0, -1)), Q = (e) => ka.test(e), $a = () => !0, Za = (e) => (
3152
+ }, gr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, br = /^\((?:(\w[\w-]*):)?(.+)\)$/i, wa = /^\d+\/\d+$/, ka = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ya = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, xa = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, za = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ea = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, de = (e) => wa.test(e), x = (e) => !!e && !Number.isNaN(Number(e)), re = (e) => !!e && Number.isInteger(Number(e)), qe = (e) => e.endsWith("%") && x(e.slice(0, -1)), Q = (e) => ka.test(e), $a = () => !0, Za = (e) => (
3140
3153
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
3141
3154
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
3142
3155
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
3143
3156
  ya.test(e) && !xa.test(e)
3144
- ), br = () => !1, Aa = (e) => za.test(e), Ta = (e) => Ea.test(e), Ca = (e) => !p(e) && !h(e), Sa = (e) => pe(e, wr, br), p = (e) => hr.test(e), oe = (e) => pe(e, kr, Za), qe = (e) => pe(e, Oa, z), Ut = (e) => pe(e, vr, br), Ia = (e) => pe(e, _r, Ta), je = (e) => pe(e, yr, Aa), h = (e) => gr.test(e), ye = (e) => he(e, kr), Ra = (e) => he(e, Na), Mt = (e) => he(e, vr), ja = (e) => he(e, wr), Pa = (e) => he(e, _r), Pe = (e) => he(e, yr, !0), pe = (e, t, r) => {
3145
- const n = hr.exec(e);
3157
+ ), vr = () => !1, Ta = (e) => za.test(e), Aa = (e) => Ea.test(e), Sa = (e) => !f(e) && !p(e), Ia = (e) => pe(e, kr, vr), f = (e) => gr.test(e), oe = (e) => pe(e, yr, Za), Je = (e) => pe(e, Oa, x), Dt = (e) => pe(e, _r, vr), Ca = (e) => pe(e, wr, Aa), je = (e) => pe(e, xr, Ta), p = (e) => br.test(e), ye = (e) => he(e, yr), Ra = (e) => he(e, Na), Ft = (e) => he(e, _r), ja = (e) => he(e, kr), Pa = (e) => he(e, wr), Pe = (e) => he(e, xr, !0), pe = (e, t, r) => {
3158
+ const n = gr.exec(e);
3146
3159
  return n ? n[1] ? t(n[1]) : r(n[2]) : !1;
3147
3160
  }, he = (e, t, r = !1) => {
3148
- const n = gr.exec(e);
3161
+ const n = br.exec(e);
3149
3162
  return n ? n[1] ? t(n[1]) : r : !1;
3150
- }, vr = (e) => e === "position" || e === "percentage", _r = (e) => e === "image" || e === "url", wr = (e) => e === "length" || e === "size" || e === "bg-size", kr = (e) => e === "length", Oa = (e) => e === "number", Na = (e) => e === "family-name", yr = (e) => e === "shadow", La = () => {
3151
- const e = L("color"), t = L("font"), r = L("text"), n = L("font-weight"), o = L("tracking"), s = L("leading"), i = L("breakpoint"), a = L("container"), c = L("spacing"), d = L("radius"), m = L("shadow"), k = L("inset-shadow"), w = L("text-shadow"), f = L("drop-shadow"), _ = L("blur"), C = L("perspective"), P = L("aspect"), U = L("ease"), D = L("animate"), N = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], R = () => [
3163
+ }, _r = (e) => e === "position" || e === "percentage", wr = (e) => e === "image" || e === "url", kr = (e) => e === "length" || e === "size" || e === "bg-size", yr = (e) => e === "length", Oa = (e) => e === "number", Na = (e) => e === "family-name", xr = (e) => e === "shadow", La = () => {
3164
+ const e = L("color"), t = L("font"), r = L("text"), n = L("font-weight"), o = L("tracking"), s = L("leading"), i = L("breakpoint"), a = L("container"), c = L("spacing"), d = L("radius"), h = L("shadow"), $ = L("inset-shadow"), g = L("text-shadow"), m = L("drop-shadow"), b = L("blur"), T = L("perspective"), P = L("aspect"), U = L("ease"), M = L("animate"), N = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], R = () => [
3152
3165
  "center",
3153
3166
  "top",
3154
3167
  "bottom",
@@ -3166,30 +3179,30 @@ const L = (e) => {
3166
3179
  "bottom-left",
3167
3180
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
3168
3181
  "left-bottom"
3169
- ], M = () => [...R(), h, p], B = () => ["auto", "hidden", "clip", "visible", "scroll"], A = () => ["auto", "contain", "none"], b = () => [h, p, c], F = () => [de, "full", "auto", ...b()], q = () => [re, "none", "subgrid", h, p], $e = () => ["auto", {
3170
- span: ["full", re, h, p]
3171
- }, re, h, p], ee = () => [re, "auto", h, p], ge = () => ["auto", "min", "max", "fr", h, p], be = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], J = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], G = () => ["auto", ...b()], H = () => [de, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...b()], v = () => [e, h, p], ve = () => [...R(), Mt, Ut, {
3172
- position: [h, p]
3182
+ ], D = () => [...R(), p, f], Y = () => ["auto", "hidden", "clip", "visible", "scroll"], A = () => ["auto", "contain", "none"], _ = () => [p, f, c], F = () => [de, "full", "auto", ..._()], q = () => [re, "none", "subgrid", p, f], $e = () => ["auto", {
3183
+ span: ["full", re, p, f]
3184
+ }, re, p, f], ee = () => [re, "auto", p, f], ge = () => ["auto", "min", "max", "fr", p, f], be = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], J = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], G = () => ["auto", ..._()], H = () => [de, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ..._()], w = () => [e, p, f], ve = () => [...R(), Ft, Dt, {
3185
+ position: [p, f]
3173
3186
  }], _e = () => ["no-repeat", {
3174
3187
  repeat: ["", "x", "y", "space", "round"]
3175
- }], l = () => ["auto", "cover", "contain", ja, Sa, {
3176
- size: [h, p]
3177
- }], y = () => [Ye, ye, oe], E = () => [
3188
+ }], l = () => ["auto", "cover", "contain", ja, Ia, {
3189
+ size: [p, f]
3190
+ }], k = () => [qe, ye, oe], z = () => [
3178
3191
  // Deprecated since Tailwind CSS v4.0.0
3179
3192
  "",
3180
3193
  "none",
3181
3194
  "full",
3182
3195
  d,
3183
- h,
3184
- p
3185
- ], Z = () => ["", z, ye, oe], X = () => ["solid", "dashed", "dotted", "double"], ue = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], $ = () => [z, Ye, Mt, Ut], K = () => [
3196
+ p,
3197
+ f
3198
+ ], Z = () => ["", x, ye, oe], X = () => ["solid", "dashed", "dotted", "double"], ue = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], E = () => [x, qe, Ft, Dt], K = () => [
3186
3199
  // Deprecated since Tailwind CSS v4.0.0
3187
3200
  "",
3188
3201
  "none",
3189
- _,
3190
- h,
3191
- p
3192
- ], te = () => ["none", z, h, p], le = () => ["none", z, h, p], Ge = () => [z, h, p], Ze = () => [de, "full", ...b()];
3202
+ b,
3203
+ p,
3204
+ f
3205
+ ], te = () => ["none", x, p, f], le = () => ["none", x, p, f], We = () => [x, p, f], Ze = () => [de, "full", ..._()];
3193
3206
  return {
3194
3207
  cacheSize: 500,
3195
3208
  theme: {
@@ -3201,14 +3214,14 @@ const L = (e) => {
3201
3214
  container: [Q],
3202
3215
  "drop-shadow": [Q],
3203
3216
  ease: ["in", "out", "in-out"],
3204
- font: [Ca],
3217
+ font: [Sa],
3205
3218
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
3206
3219
  "inset-shadow": [Q],
3207
3220
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
3208
3221
  perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
3209
3222
  radius: [Q],
3210
3223
  shadow: [Q],
3211
- spacing: ["px", z],
3224
+ spacing: ["px", x],
3212
3225
  text: [Q],
3213
3226
  "text-shadow": [Q],
3214
3227
  tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
@@ -3222,7 +3235,7 @@ const L = (e) => {
3222
3235
  * @see https://tailwindcss.com/docs/aspect-ratio
3223
3236
  */
3224
3237
  aspect: [{
3225
- aspect: ["auto", "square", de, p, h, P]
3238
+ aspect: ["auto", "square", de, f, p, P]
3226
3239
  }],
3227
3240
  /**
3228
3241
  * Container
@@ -3235,7 +3248,7 @@ const L = (e) => {
3235
3248
  * @see https://tailwindcss.com/docs/columns
3236
3249
  */
3237
3250
  columns: [{
3238
- columns: [z, p, h, a]
3251
+ columns: [x, f, p, a]
3239
3252
  }],
3240
3253
  /**
3241
3254
  * Break After
@@ -3313,28 +3326,28 @@ const L = (e) => {
3313
3326
  * @see https://tailwindcss.com/docs/object-position
3314
3327
  */
3315
3328
  "object-position": [{
3316
- object: M()
3329
+ object: D()
3317
3330
  }],
3318
3331
  /**
3319
3332
  * Overflow
3320
3333
  * @see https://tailwindcss.com/docs/overflow
3321
3334
  */
3322
3335
  overflow: [{
3323
- overflow: B()
3336
+ overflow: Y()
3324
3337
  }],
3325
3338
  /**
3326
3339
  * Overflow X
3327
3340
  * @see https://tailwindcss.com/docs/overflow
3328
3341
  */
3329
3342
  "overflow-x": [{
3330
- "overflow-x": B()
3343
+ "overflow-x": Y()
3331
3344
  }],
3332
3345
  /**
3333
3346
  * Overflow Y
3334
3347
  * @see https://tailwindcss.com/docs/overflow
3335
3348
  */
3336
3349
  "overflow-y": [{
3337
- "overflow-y": B()
3350
+ "overflow-y": Y()
3338
3351
  }],
3339
3352
  /**
3340
3353
  * Overscroll Behavior
@@ -3435,7 +3448,7 @@ const L = (e) => {
3435
3448
  * @see https://tailwindcss.com/docs/z-index
3436
3449
  */
3437
3450
  z: [{
3438
- z: [re, "auto", h, p]
3451
+ z: [re, "auto", p, f]
3439
3452
  }],
3440
3453
  // ------------------------
3441
3454
  // --- Flexbox and Grid ---
@@ -3445,7 +3458,7 @@ const L = (e) => {
3445
3458
  * @see https://tailwindcss.com/docs/flex-basis
3446
3459
  */
3447
3460
  basis: [{
3448
- basis: [de, "full", "auto", a, ...b()]
3461
+ basis: [de, "full", "auto", a, ..._()]
3449
3462
  }],
3450
3463
  /**
3451
3464
  * Flex Direction
@@ -3466,28 +3479,28 @@ const L = (e) => {
3466
3479
  * @see https://tailwindcss.com/docs/flex
3467
3480
  */
3468
3481
  flex: [{
3469
- flex: [z, de, "auto", "initial", "none", p]
3482
+ flex: [x, de, "auto", "initial", "none", f]
3470
3483
  }],
3471
3484
  /**
3472
3485
  * Flex Grow
3473
3486
  * @see https://tailwindcss.com/docs/flex-grow
3474
3487
  */
3475
3488
  grow: [{
3476
- grow: ["", z, h, p]
3489
+ grow: ["", x, p, f]
3477
3490
  }],
3478
3491
  /**
3479
3492
  * Flex Shrink
3480
3493
  * @see https://tailwindcss.com/docs/flex-shrink
3481
3494
  */
3482
3495
  shrink: [{
3483
- shrink: ["", z, h, p]
3496
+ shrink: ["", x, p, f]
3484
3497
  }],
3485
3498
  /**
3486
3499
  * Order
3487
3500
  * @see https://tailwindcss.com/docs/order
3488
3501
  */
3489
3502
  order: [{
3490
- order: [re, "first", "last", "none", h, p]
3503
+ order: [re, "first", "last", "none", p, f]
3491
3504
  }],
3492
3505
  /**
3493
3506
  * Grid Template Columns
@@ -3571,21 +3584,21 @@ const L = (e) => {
3571
3584
  * @see https://tailwindcss.com/docs/gap
3572
3585
  */
3573
3586
  gap: [{
3574
- gap: b()
3587
+ gap: _()
3575
3588
  }],
3576
3589
  /**
3577
3590
  * Gap X
3578
3591
  * @see https://tailwindcss.com/docs/gap
3579
3592
  */
3580
3593
  "gap-x": [{
3581
- "gap-x": b()
3594
+ "gap-x": _()
3582
3595
  }],
3583
3596
  /**
3584
3597
  * Gap Y
3585
3598
  * @see https://tailwindcss.com/docs/gap
3586
3599
  */
3587
3600
  "gap-y": [{
3588
- "gap-y": b()
3601
+ "gap-y": _()
3589
3602
  }],
3590
3603
  /**
3591
3604
  * Justify Content
@@ -3660,63 +3673,63 @@ const L = (e) => {
3660
3673
  * @see https://tailwindcss.com/docs/padding
3661
3674
  */
3662
3675
  p: [{
3663
- p: b()
3676
+ p: _()
3664
3677
  }],
3665
3678
  /**
3666
3679
  * Padding X
3667
3680
  * @see https://tailwindcss.com/docs/padding
3668
3681
  */
3669
3682
  px: [{
3670
- px: b()
3683
+ px: _()
3671
3684
  }],
3672
3685
  /**
3673
3686
  * Padding Y
3674
3687
  * @see https://tailwindcss.com/docs/padding
3675
3688
  */
3676
3689
  py: [{
3677
- py: b()
3690
+ py: _()
3678
3691
  }],
3679
3692
  /**
3680
3693
  * Padding Start
3681
3694
  * @see https://tailwindcss.com/docs/padding
3682
3695
  */
3683
3696
  ps: [{
3684
- ps: b()
3697
+ ps: _()
3685
3698
  }],
3686
3699
  /**
3687
3700
  * Padding End
3688
3701
  * @see https://tailwindcss.com/docs/padding
3689
3702
  */
3690
3703
  pe: [{
3691
- pe: b()
3704
+ pe: _()
3692
3705
  }],
3693
3706
  /**
3694
3707
  * Padding Top
3695
3708
  * @see https://tailwindcss.com/docs/padding
3696
3709
  */
3697
3710
  pt: [{
3698
- pt: b()
3711
+ pt: _()
3699
3712
  }],
3700
3713
  /**
3701
3714
  * Padding Right
3702
3715
  * @see https://tailwindcss.com/docs/padding
3703
3716
  */
3704
3717
  pr: [{
3705
- pr: b()
3718
+ pr: _()
3706
3719
  }],
3707
3720
  /**
3708
3721
  * Padding Bottom
3709
3722
  * @see https://tailwindcss.com/docs/padding
3710
3723
  */
3711
3724
  pb: [{
3712
- pb: b()
3725
+ pb: _()
3713
3726
  }],
3714
3727
  /**
3715
3728
  * Padding Left
3716
3729
  * @see https://tailwindcss.com/docs/padding
3717
3730
  */
3718
3731
  pl: [{
3719
- pl: b()
3732
+ pl: _()
3720
3733
  }],
3721
3734
  /**
3722
3735
  * Margin
@@ -3786,7 +3799,7 @@ const L = (e) => {
3786
3799
  * @see https://tailwindcss.com/docs/margin#adding-space-between-children
3787
3800
  */
3788
3801
  "space-x": [{
3789
- "space-x": b()
3802
+ "space-x": _()
3790
3803
  }],
3791
3804
  /**
3792
3805
  * Space Between X Reverse
@@ -3798,7 +3811,7 @@ const L = (e) => {
3798
3811
  * @see https://tailwindcss.com/docs/margin#adding-space-between-children
3799
3812
  */
3800
3813
  "space-y": [{
3801
- "space-y": b()
3814
+ "space-y": _()
3802
3815
  }],
3803
3816
  /**
3804
3817
  * Space Between Y Reverse
@@ -3899,21 +3912,21 @@ const L = (e) => {
3899
3912
  * @see https://tailwindcss.com/docs/font-weight
3900
3913
  */
3901
3914
  "font-weight": [{
3902
- font: [n, h, qe]
3915
+ font: [n, p, Je]
3903
3916
  }],
3904
3917
  /**
3905
3918
  * Font Stretch
3906
3919
  * @see https://tailwindcss.com/docs/font-stretch
3907
3920
  */
3908
3921
  "font-stretch": [{
3909
- "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Ye, p]
3922
+ "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", qe, f]
3910
3923
  }],
3911
3924
  /**
3912
3925
  * Font Family
3913
3926
  * @see https://tailwindcss.com/docs/font-family
3914
3927
  */
3915
3928
  "font-family": [{
3916
- font: [Ra, p, t]
3929
+ font: [Ra, f, t]
3917
3930
  }],
3918
3931
  /**
3919
3932
  * Font Variant Numeric
@@ -3950,14 +3963,14 @@ const L = (e) => {
3950
3963
  * @see https://tailwindcss.com/docs/letter-spacing
3951
3964
  */
3952
3965
  tracking: [{
3953
- tracking: [o, h, p]
3966
+ tracking: [o, p, f]
3954
3967
  }],
3955
3968
  /**
3956
3969
  * Line Clamp
3957
3970
  * @see https://tailwindcss.com/docs/line-clamp
3958
3971
  */
3959
3972
  "line-clamp": [{
3960
- "line-clamp": [z, "none", h, qe]
3973
+ "line-clamp": [x, "none", p, Je]
3961
3974
  }],
3962
3975
  /**
3963
3976
  * Line Height
@@ -3967,7 +3980,7 @@ const L = (e) => {
3967
3980
  leading: [
3968
3981
  /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
3969
3982
  s,
3970
- ...b()
3983
+ ..._()
3971
3984
  ]
3972
3985
  }],
3973
3986
  /**
@@ -3975,7 +3988,7 @@ const L = (e) => {
3975
3988
  * @see https://tailwindcss.com/docs/list-style-image
3976
3989
  */
3977
3990
  "list-image": [{
3978
- "list-image": ["none", h, p]
3991
+ "list-image": ["none", p, f]
3979
3992
  }],
3980
3993
  /**
3981
3994
  * List Style Position
@@ -3989,7 +4002,7 @@ const L = (e) => {
3989
4002
  * @see https://tailwindcss.com/docs/list-style-type
3990
4003
  */
3991
4004
  "list-style-type": [{
3992
- list: ["disc", "decimal", "none", h, p]
4005
+ list: ["disc", "decimal", "none", p, f]
3993
4006
  }],
3994
4007
  /**
3995
4008
  * Text Alignment
@@ -4004,14 +4017,14 @@ const L = (e) => {
4004
4017
  * @see https://v3.tailwindcss.com/docs/placeholder-color
4005
4018
  */
4006
4019
  "placeholder-color": [{
4007
- placeholder: v()
4020
+ placeholder: w()
4008
4021
  }],
4009
4022
  /**
4010
4023
  * Text Color
4011
4024
  * @see https://tailwindcss.com/docs/text-color
4012
4025
  */
4013
4026
  "text-color": [{
4014
- text: v()
4027
+ text: w()
4015
4028
  }],
4016
4029
  /**
4017
4030
  * Text Decoration
@@ -4030,21 +4043,21 @@ const L = (e) => {
4030
4043
  * @see https://tailwindcss.com/docs/text-decoration-thickness
4031
4044
  */
4032
4045
  "text-decoration-thickness": [{
4033
- decoration: [z, "from-font", "auto", h, oe]
4046
+ decoration: [x, "from-font", "auto", p, oe]
4034
4047
  }],
4035
4048
  /**
4036
4049
  * Text Decoration Color
4037
4050
  * @see https://tailwindcss.com/docs/text-decoration-color
4038
4051
  */
4039
4052
  "text-decoration-color": [{
4040
- decoration: v()
4053
+ decoration: w()
4041
4054
  }],
4042
4055
  /**
4043
4056
  * Text Underline Offset
4044
4057
  * @see https://tailwindcss.com/docs/text-underline-offset
4045
4058
  */
4046
4059
  "underline-offset": [{
4047
- "underline-offset": [z, "auto", h, p]
4060
+ "underline-offset": [x, "auto", p, f]
4048
4061
  }],
4049
4062
  /**
4050
4063
  * Text Transform
@@ -4068,14 +4081,14 @@ const L = (e) => {
4068
4081
  * @see https://tailwindcss.com/docs/text-indent
4069
4082
  */
4070
4083
  indent: [{
4071
- indent: b()
4084
+ indent: _()
4072
4085
  }],
4073
4086
  /**
4074
4087
  * Vertical Alignment
4075
4088
  * @see https://tailwindcss.com/docs/vertical-align
4076
4089
  */
4077
4090
  "vertical-align": [{
4078
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", h, p]
4091
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", p, f]
4079
4092
  }],
4080
4093
  /**
4081
4094
  * Whitespace
@@ -4110,7 +4123,7 @@ const L = (e) => {
4110
4123
  * @see https://tailwindcss.com/docs/content
4111
4124
  */
4112
4125
  content: [{
4113
- content: ["none", h, p]
4126
+ content: ["none", p, f]
4114
4127
  }],
4115
4128
  // -------------------
4116
4129
  // --- Backgrounds ---
@@ -4165,59 +4178,59 @@ const L = (e) => {
4165
4178
  bg: ["none", {
4166
4179
  linear: [{
4167
4180
  to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
4168
- }, re, h, p],
4169
- radial: ["", h, p],
4170
- conic: [re, h, p]
4171
- }, Pa, Ia]
4181
+ }, re, p, f],
4182
+ radial: ["", p, f],
4183
+ conic: [re, p, f]
4184
+ }, Pa, Ca]
4172
4185
  }],
4173
4186
  /**
4174
4187
  * Background Color
4175
4188
  * @see https://tailwindcss.com/docs/background-color
4176
4189
  */
4177
4190
  "bg-color": [{
4178
- bg: v()
4191
+ bg: w()
4179
4192
  }],
4180
4193
  /**
4181
4194
  * Gradient Color Stops From Position
4182
4195
  * @see https://tailwindcss.com/docs/gradient-color-stops
4183
4196
  */
4184
4197
  "gradient-from-pos": [{
4185
- from: y()
4198
+ from: k()
4186
4199
  }],
4187
4200
  /**
4188
4201
  * Gradient Color Stops Via Position
4189
4202
  * @see https://tailwindcss.com/docs/gradient-color-stops
4190
4203
  */
4191
4204
  "gradient-via-pos": [{
4192
- via: y()
4205
+ via: k()
4193
4206
  }],
4194
4207
  /**
4195
4208
  * Gradient Color Stops To Position
4196
4209
  * @see https://tailwindcss.com/docs/gradient-color-stops
4197
4210
  */
4198
4211
  "gradient-to-pos": [{
4199
- to: y()
4212
+ to: k()
4200
4213
  }],
4201
4214
  /**
4202
4215
  * Gradient Color Stops From
4203
4216
  * @see https://tailwindcss.com/docs/gradient-color-stops
4204
4217
  */
4205
4218
  "gradient-from": [{
4206
- from: v()
4219
+ from: w()
4207
4220
  }],
4208
4221
  /**
4209
4222
  * Gradient Color Stops Via
4210
4223
  * @see https://tailwindcss.com/docs/gradient-color-stops
4211
4224
  */
4212
4225
  "gradient-via": [{
4213
- via: v()
4226
+ via: w()
4214
4227
  }],
4215
4228
  /**
4216
4229
  * Gradient Color Stops To
4217
4230
  * @see https://tailwindcss.com/docs/gradient-color-stops
4218
4231
  */
4219
4232
  "gradient-to": [{
4220
- to: v()
4233
+ to: w()
4221
4234
  }],
4222
4235
  // ---------------
4223
4236
  // --- Borders ---
@@ -4227,105 +4240,105 @@ const L = (e) => {
4227
4240
  * @see https://tailwindcss.com/docs/border-radius
4228
4241
  */
4229
4242
  rounded: [{
4230
- rounded: E()
4243
+ rounded: z()
4231
4244
  }],
4232
4245
  /**
4233
4246
  * Border Radius Start
4234
4247
  * @see https://tailwindcss.com/docs/border-radius
4235
4248
  */
4236
4249
  "rounded-s": [{
4237
- "rounded-s": E()
4250
+ "rounded-s": z()
4238
4251
  }],
4239
4252
  /**
4240
4253
  * Border Radius End
4241
4254
  * @see https://tailwindcss.com/docs/border-radius
4242
4255
  */
4243
4256
  "rounded-e": [{
4244
- "rounded-e": E()
4257
+ "rounded-e": z()
4245
4258
  }],
4246
4259
  /**
4247
4260
  * Border Radius Top
4248
4261
  * @see https://tailwindcss.com/docs/border-radius
4249
4262
  */
4250
4263
  "rounded-t": [{
4251
- "rounded-t": E()
4264
+ "rounded-t": z()
4252
4265
  }],
4253
4266
  /**
4254
4267
  * Border Radius Right
4255
4268
  * @see https://tailwindcss.com/docs/border-radius
4256
4269
  */
4257
4270
  "rounded-r": [{
4258
- "rounded-r": E()
4271
+ "rounded-r": z()
4259
4272
  }],
4260
4273
  /**
4261
4274
  * Border Radius Bottom
4262
4275
  * @see https://tailwindcss.com/docs/border-radius
4263
4276
  */
4264
4277
  "rounded-b": [{
4265
- "rounded-b": E()
4278
+ "rounded-b": z()
4266
4279
  }],
4267
4280
  /**
4268
4281
  * Border Radius Left
4269
4282
  * @see https://tailwindcss.com/docs/border-radius
4270
4283
  */
4271
4284
  "rounded-l": [{
4272
- "rounded-l": E()
4285
+ "rounded-l": z()
4273
4286
  }],
4274
4287
  /**
4275
4288
  * Border Radius Start Start
4276
4289
  * @see https://tailwindcss.com/docs/border-radius
4277
4290
  */
4278
4291
  "rounded-ss": [{
4279
- "rounded-ss": E()
4292
+ "rounded-ss": z()
4280
4293
  }],
4281
4294
  /**
4282
4295
  * Border Radius Start End
4283
4296
  * @see https://tailwindcss.com/docs/border-radius
4284
4297
  */
4285
4298
  "rounded-se": [{
4286
- "rounded-se": E()
4299
+ "rounded-se": z()
4287
4300
  }],
4288
4301
  /**
4289
4302
  * Border Radius End End
4290
4303
  * @see https://tailwindcss.com/docs/border-radius
4291
4304
  */
4292
4305
  "rounded-ee": [{
4293
- "rounded-ee": E()
4306
+ "rounded-ee": z()
4294
4307
  }],
4295
4308
  /**
4296
4309
  * Border Radius End Start
4297
4310
  * @see https://tailwindcss.com/docs/border-radius
4298
4311
  */
4299
4312
  "rounded-es": [{
4300
- "rounded-es": E()
4313
+ "rounded-es": z()
4301
4314
  }],
4302
4315
  /**
4303
4316
  * Border Radius Top Left
4304
4317
  * @see https://tailwindcss.com/docs/border-radius
4305
4318
  */
4306
4319
  "rounded-tl": [{
4307
- "rounded-tl": E()
4320
+ "rounded-tl": z()
4308
4321
  }],
4309
4322
  /**
4310
4323
  * Border Radius Top Right
4311
4324
  * @see https://tailwindcss.com/docs/border-radius
4312
4325
  */
4313
4326
  "rounded-tr": [{
4314
- "rounded-tr": E()
4327
+ "rounded-tr": z()
4315
4328
  }],
4316
4329
  /**
4317
4330
  * Border Radius Bottom Right
4318
4331
  * @see https://tailwindcss.com/docs/border-radius
4319
4332
  */
4320
4333
  "rounded-br": [{
4321
- "rounded-br": E()
4334
+ "rounded-br": z()
4322
4335
  }],
4323
4336
  /**
4324
4337
  * Border Radius Bottom Left
4325
4338
  * @see https://tailwindcss.com/docs/border-radius
4326
4339
  */
4327
4340
  "rounded-bl": [{
4328
- "rounded-bl": E()
4341
+ "rounded-bl": z()
4329
4342
  }],
4330
4343
  /**
4331
4344
  * Border Width
@@ -4433,70 +4446,70 @@ const L = (e) => {
4433
4446
  * @see https://tailwindcss.com/docs/border-color
4434
4447
  */
4435
4448
  "border-color": [{
4436
- border: v()
4449
+ border: w()
4437
4450
  }],
4438
4451
  /**
4439
4452
  * Border Color X
4440
4453
  * @see https://tailwindcss.com/docs/border-color
4441
4454
  */
4442
4455
  "border-color-x": [{
4443
- "border-x": v()
4456
+ "border-x": w()
4444
4457
  }],
4445
4458
  /**
4446
4459
  * Border Color Y
4447
4460
  * @see https://tailwindcss.com/docs/border-color
4448
4461
  */
4449
4462
  "border-color-y": [{
4450
- "border-y": v()
4463
+ "border-y": w()
4451
4464
  }],
4452
4465
  /**
4453
4466
  * Border Color S
4454
4467
  * @see https://tailwindcss.com/docs/border-color
4455
4468
  */
4456
4469
  "border-color-s": [{
4457
- "border-s": v()
4470
+ "border-s": w()
4458
4471
  }],
4459
4472
  /**
4460
4473
  * Border Color E
4461
4474
  * @see https://tailwindcss.com/docs/border-color
4462
4475
  */
4463
4476
  "border-color-e": [{
4464
- "border-e": v()
4477
+ "border-e": w()
4465
4478
  }],
4466
4479
  /**
4467
4480
  * Border Color Top
4468
4481
  * @see https://tailwindcss.com/docs/border-color
4469
4482
  */
4470
4483
  "border-color-t": [{
4471
- "border-t": v()
4484
+ "border-t": w()
4472
4485
  }],
4473
4486
  /**
4474
4487
  * Border Color Right
4475
4488
  * @see https://tailwindcss.com/docs/border-color
4476
4489
  */
4477
4490
  "border-color-r": [{
4478
- "border-r": v()
4491
+ "border-r": w()
4479
4492
  }],
4480
4493
  /**
4481
4494
  * Border Color Bottom
4482
4495
  * @see https://tailwindcss.com/docs/border-color
4483
4496
  */
4484
4497
  "border-color-b": [{
4485
- "border-b": v()
4498
+ "border-b": w()
4486
4499
  }],
4487
4500
  /**
4488
4501
  * Border Color Left
4489
4502
  * @see https://tailwindcss.com/docs/border-color
4490
4503
  */
4491
4504
  "border-color-l": [{
4492
- "border-l": v()
4505
+ "border-l": w()
4493
4506
  }],
4494
4507
  /**
4495
4508
  * Divide Color
4496
4509
  * @see https://tailwindcss.com/docs/divide-color
4497
4510
  */
4498
4511
  "divide-color": [{
4499
- divide: v()
4512
+ divide: w()
4500
4513
  }],
4501
4514
  /**
4502
4515
  * Outline Style
@@ -4510,21 +4523,21 @@ const L = (e) => {
4510
4523
  * @see https://tailwindcss.com/docs/outline-offset
4511
4524
  */
4512
4525
  "outline-offset": [{
4513
- "outline-offset": [z, h, p]
4526
+ "outline-offset": [x, p, f]
4514
4527
  }],
4515
4528
  /**
4516
4529
  * Outline Width
4517
4530
  * @see https://tailwindcss.com/docs/outline-width
4518
4531
  */
4519
4532
  "outline-w": [{
4520
- outline: ["", z, ye, oe]
4533
+ outline: ["", x, ye, oe]
4521
4534
  }],
4522
4535
  /**
4523
4536
  * Outline Color
4524
4537
  * @see https://tailwindcss.com/docs/outline-color
4525
4538
  */
4526
4539
  "outline-color": [{
4527
- outline: v()
4540
+ outline: w()
4528
4541
  }],
4529
4542
  // ---------------
4530
4543
  // --- Effects ---
@@ -4538,7 +4551,7 @@ const L = (e) => {
4538
4551
  // Deprecated since Tailwind CSS v4.0.0
4539
4552
  "",
4540
4553
  "none",
4541
- m,
4554
+ h,
4542
4555
  Pe,
4543
4556
  je
4544
4557
  ]
@@ -4548,21 +4561,21 @@ const L = (e) => {
4548
4561
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
4549
4562
  */
4550
4563
  "shadow-color": [{
4551
- shadow: v()
4564
+ shadow: w()
4552
4565
  }],
4553
4566
  /**
4554
4567
  * Inset Box Shadow
4555
4568
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
4556
4569
  */
4557
4570
  "inset-shadow": [{
4558
- "inset-shadow": ["none", k, Pe, je]
4571
+ "inset-shadow": ["none", $, Pe, je]
4559
4572
  }],
4560
4573
  /**
4561
4574
  * Inset Box Shadow Color
4562
4575
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
4563
4576
  */
4564
4577
  "inset-shadow-color": [{
4565
- "inset-shadow": v()
4578
+ "inset-shadow": w()
4566
4579
  }],
4567
4580
  /**
4568
4581
  * Ring Width
@@ -4583,7 +4596,7 @@ const L = (e) => {
4583
4596
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
4584
4597
  */
4585
4598
  "ring-color": [{
4586
- ring: v()
4599
+ ring: w()
4587
4600
  }],
4588
4601
  /**
4589
4602
  * Ring Offset Width
@@ -4592,7 +4605,7 @@ const L = (e) => {
4592
4605
  * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
4593
4606
  */
4594
4607
  "ring-offset-w": [{
4595
- "ring-offset": [z, oe]
4608
+ "ring-offset": [x, oe]
4596
4609
  }],
4597
4610
  /**
4598
4611
  * Ring Offset Color
@@ -4601,7 +4614,7 @@ const L = (e) => {
4601
4614
  * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
4602
4615
  */
4603
4616
  "ring-offset-color": [{
4604
- "ring-offset": v()
4617
+ "ring-offset": w()
4605
4618
  }],
4606
4619
  /**
4607
4620
  * Inset Ring Width
@@ -4615,28 +4628,28 @@ const L = (e) => {
4615
4628
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
4616
4629
  */
4617
4630
  "inset-ring-color": [{
4618
- "inset-ring": v()
4631
+ "inset-ring": w()
4619
4632
  }],
4620
4633
  /**
4621
4634
  * Text Shadow
4622
4635
  * @see https://tailwindcss.com/docs/text-shadow
4623
4636
  */
4624
4637
  "text-shadow": [{
4625
- "text-shadow": ["none", w, Pe, je]
4638
+ "text-shadow": ["none", g, Pe, je]
4626
4639
  }],
4627
4640
  /**
4628
4641
  * Text Shadow Color
4629
4642
  * @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
4630
4643
  */
4631
4644
  "text-shadow-color": [{
4632
- "text-shadow": v()
4645
+ "text-shadow": w()
4633
4646
  }],
4634
4647
  /**
4635
4648
  * Opacity
4636
4649
  * @see https://tailwindcss.com/docs/opacity
4637
4650
  */
4638
4651
  opacity: [{
4639
- opacity: [z, h, p]
4652
+ opacity: [x, p, f]
4640
4653
  }],
4641
4654
  /**
4642
4655
  * Mix Blend Mode
@@ -4671,106 +4684,106 @@ const L = (e) => {
4671
4684
  * @see https://tailwindcss.com/docs/mask-image
4672
4685
  */
4673
4686
  "mask-image-linear-pos": [{
4674
- "mask-linear": [z]
4687
+ "mask-linear": [x]
4675
4688
  }],
4676
4689
  "mask-image-linear-from-pos": [{
4677
- "mask-linear-from": $()
4690
+ "mask-linear-from": E()
4678
4691
  }],
4679
4692
  "mask-image-linear-to-pos": [{
4680
- "mask-linear-to": $()
4693
+ "mask-linear-to": E()
4681
4694
  }],
4682
4695
  "mask-image-linear-from-color": [{
4683
- "mask-linear-from": v()
4696
+ "mask-linear-from": w()
4684
4697
  }],
4685
4698
  "mask-image-linear-to-color": [{
4686
- "mask-linear-to": v()
4699
+ "mask-linear-to": w()
4687
4700
  }],
4688
4701
  "mask-image-t-from-pos": [{
4689
- "mask-t-from": $()
4702
+ "mask-t-from": E()
4690
4703
  }],
4691
4704
  "mask-image-t-to-pos": [{
4692
- "mask-t-to": $()
4705
+ "mask-t-to": E()
4693
4706
  }],
4694
4707
  "mask-image-t-from-color": [{
4695
- "mask-t-from": v()
4708
+ "mask-t-from": w()
4696
4709
  }],
4697
4710
  "mask-image-t-to-color": [{
4698
- "mask-t-to": v()
4711
+ "mask-t-to": w()
4699
4712
  }],
4700
4713
  "mask-image-r-from-pos": [{
4701
- "mask-r-from": $()
4714
+ "mask-r-from": E()
4702
4715
  }],
4703
4716
  "mask-image-r-to-pos": [{
4704
- "mask-r-to": $()
4717
+ "mask-r-to": E()
4705
4718
  }],
4706
4719
  "mask-image-r-from-color": [{
4707
- "mask-r-from": v()
4720
+ "mask-r-from": w()
4708
4721
  }],
4709
4722
  "mask-image-r-to-color": [{
4710
- "mask-r-to": v()
4723
+ "mask-r-to": w()
4711
4724
  }],
4712
4725
  "mask-image-b-from-pos": [{
4713
- "mask-b-from": $()
4726
+ "mask-b-from": E()
4714
4727
  }],
4715
4728
  "mask-image-b-to-pos": [{
4716
- "mask-b-to": $()
4729
+ "mask-b-to": E()
4717
4730
  }],
4718
4731
  "mask-image-b-from-color": [{
4719
- "mask-b-from": v()
4732
+ "mask-b-from": w()
4720
4733
  }],
4721
4734
  "mask-image-b-to-color": [{
4722
- "mask-b-to": v()
4735
+ "mask-b-to": w()
4723
4736
  }],
4724
4737
  "mask-image-l-from-pos": [{
4725
- "mask-l-from": $()
4738
+ "mask-l-from": E()
4726
4739
  }],
4727
4740
  "mask-image-l-to-pos": [{
4728
- "mask-l-to": $()
4741
+ "mask-l-to": E()
4729
4742
  }],
4730
4743
  "mask-image-l-from-color": [{
4731
- "mask-l-from": v()
4744
+ "mask-l-from": w()
4732
4745
  }],
4733
4746
  "mask-image-l-to-color": [{
4734
- "mask-l-to": v()
4747
+ "mask-l-to": w()
4735
4748
  }],
4736
4749
  "mask-image-x-from-pos": [{
4737
- "mask-x-from": $()
4750
+ "mask-x-from": E()
4738
4751
  }],
4739
4752
  "mask-image-x-to-pos": [{
4740
- "mask-x-to": $()
4753
+ "mask-x-to": E()
4741
4754
  }],
4742
4755
  "mask-image-x-from-color": [{
4743
- "mask-x-from": v()
4756
+ "mask-x-from": w()
4744
4757
  }],
4745
4758
  "mask-image-x-to-color": [{
4746
- "mask-x-to": v()
4759
+ "mask-x-to": w()
4747
4760
  }],
4748
4761
  "mask-image-y-from-pos": [{
4749
- "mask-y-from": $()
4762
+ "mask-y-from": E()
4750
4763
  }],
4751
4764
  "mask-image-y-to-pos": [{
4752
- "mask-y-to": $()
4765
+ "mask-y-to": E()
4753
4766
  }],
4754
4767
  "mask-image-y-from-color": [{
4755
- "mask-y-from": v()
4768
+ "mask-y-from": w()
4756
4769
  }],
4757
4770
  "mask-image-y-to-color": [{
4758
- "mask-y-to": v()
4771
+ "mask-y-to": w()
4759
4772
  }],
4760
4773
  "mask-image-radial": [{
4761
- "mask-radial": [h, p]
4774
+ "mask-radial": [p, f]
4762
4775
  }],
4763
4776
  "mask-image-radial-from-pos": [{
4764
- "mask-radial-from": $()
4777
+ "mask-radial-from": E()
4765
4778
  }],
4766
4779
  "mask-image-radial-to-pos": [{
4767
- "mask-radial-to": $()
4780
+ "mask-radial-to": E()
4768
4781
  }],
4769
4782
  "mask-image-radial-from-color": [{
4770
- "mask-radial-from": v()
4783
+ "mask-radial-from": w()
4771
4784
  }],
4772
4785
  "mask-image-radial-to-color": [{
4773
- "mask-radial-to": v()
4786
+ "mask-radial-to": w()
4774
4787
  }],
4775
4788
  "mask-image-radial-shape": [{
4776
4789
  "mask-radial": ["circle", "ellipse"]
@@ -4785,19 +4798,19 @@ const L = (e) => {
4785
4798
  "mask-radial-at": R()
4786
4799
  }],
4787
4800
  "mask-image-conic-pos": [{
4788
- "mask-conic": [z]
4801
+ "mask-conic": [x]
4789
4802
  }],
4790
4803
  "mask-image-conic-from-pos": [{
4791
- "mask-conic-from": $()
4804
+ "mask-conic-from": E()
4792
4805
  }],
4793
4806
  "mask-image-conic-to-pos": [{
4794
- "mask-conic-to": $()
4807
+ "mask-conic-to": E()
4795
4808
  }],
4796
4809
  "mask-image-conic-from-color": [{
4797
- "mask-conic-from": v()
4810
+ "mask-conic-from": w()
4798
4811
  }],
4799
4812
  "mask-image-conic-to-color": [{
4800
- "mask-conic-to": v()
4813
+ "mask-conic-to": w()
4801
4814
  }],
4802
4815
  /**
4803
4816
  * Mask Mode
@@ -4846,7 +4859,7 @@ const L = (e) => {
4846
4859
  * @see https://tailwindcss.com/docs/mask-image
4847
4860
  */
4848
4861
  "mask-image": [{
4849
- mask: ["none", h, p]
4862
+ mask: ["none", p, f]
4850
4863
  }],
4851
4864
  // ---------------
4852
4865
  // --- Filters ---
@@ -4860,8 +4873,8 @@ const L = (e) => {
4860
4873
  // Deprecated since Tailwind CSS v3.0.0
4861
4874
  "",
4862
4875
  "none",
4863
- h,
4864
- p
4876
+ p,
4877
+ f
4865
4878
  ]
4866
4879
  }],
4867
4880
  /**
@@ -4876,14 +4889,14 @@ const L = (e) => {
4876
4889
  * @see https://tailwindcss.com/docs/brightness
4877
4890
  */
4878
4891
  brightness: [{
4879
- brightness: [z, h, p]
4892
+ brightness: [x, p, f]
4880
4893
  }],
4881
4894
  /**
4882
4895
  * Contrast
4883
4896
  * @see https://tailwindcss.com/docs/contrast
4884
4897
  */
4885
4898
  contrast: [{
4886
- contrast: [z, h, p]
4899
+ contrast: [x, p, f]
4887
4900
  }],
4888
4901
  /**
4889
4902
  * Drop Shadow
@@ -4894,7 +4907,7 @@ const L = (e) => {
4894
4907
  // Deprecated since Tailwind CSS v4.0.0
4895
4908
  "",
4896
4909
  "none",
4897
- f,
4910
+ m,
4898
4911
  Pe,
4899
4912
  je
4900
4913
  ]
@@ -4904,42 +4917,42 @@ const L = (e) => {
4904
4917
  * @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
4905
4918
  */
4906
4919
  "drop-shadow-color": [{
4907
- "drop-shadow": v()
4920
+ "drop-shadow": w()
4908
4921
  }],
4909
4922
  /**
4910
4923
  * Grayscale
4911
4924
  * @see https://tailwindcss.com/docs/grayscale
4912
4925
  */
4913
4926
  grayscale: [{
4914
- grayscale: ["", z, h, p]
4927
+ grayscale: ["", x, p, f]
4915
4928
  }],
4916
4929
  /**
4917
4930
  * Hue Rotate
4918
4931
  * @see https://tailwindcss.com/docs/hue-rotate
4919
4932
  */
4920
4933
  "hue-rotate": [{
4921
- "hue-rotate": [z, h, p]
4934
+ "hue-rotate": [x, p, f]
4922
4935
  }],
4923
4936
  /**
4924
4937
  * Invert
4925
4938
  * @see https://tailwindcss.com/docs/invert
4926
4939
  */
4927
4940
  invert: [{
4928
- invert: ["", z, h, p]
4941
+ invert: ["", x, p, f]
4929
4942
  }],
4930
4943
  /**
4931
4944
  * Saturate
4932
4945
  * @see https://tailwindcss.com/docs/saturate
4933
4946
  */
4934
4947
  saturate: [{
4935
- saturate: [z, h, p]
4948
+ saturate: [x, p, f]
4936
4949
  }],
4937
4950
  /**
4938
4951
  * Sepia
4939
4952
  * @see https://tailwindcss.com/docs/sepia
4940
4953
  */
4941
4954
  sepia: [{
4942
- sepia: ["", z, h, p]
4955
+ sepia: ["", x, p, f]
4943
4956
  }],
4944
4957
  /**
4945
4958
  * Backdrop Filter
@@ -4950,8 +4963,8 @@ const L = (e) => {
4950
4963
  // Deprecated since Tailwind CSS v3.0.0
4951
4964
  "",
4952
4965
  "none",
4953
- h,
4954
- p
4966
+ p,
4967
+ f
4955
4968
  ]
4956
4969
  }],
4957
4970
  /**
@@ -4966,56 +4979,56 @@ const L = (e) => {
4966
4979
  * @see https://tailwindcss.com/docs/backdrop-brightness
4967
4980
  */
4968
4981
  "backdrop-brightness": [{
4969
- "backdrop-brightness": [z, h, p]
4982
+ "backdrop-brightness": [x, p, f]
4970
4983
  }],
4971
4984
  /**
4972
4985
  * Backdrop Contrast
4973
4986
  * @see https://tailwindcss.com/docs/backdrop-contrast
4974
4987
  */
4975
4988
  "backdrop-contrast": [{
4976
- "backdrop-contrast": [z, h, p]
4989
+ "backdrop-contrast": [x, p, f]
4977
4990
  }],
4978
4991
  /**
4979
4992
  * Backdrop Grayscale
4980
4993
  * @see https://tailwindcss.com/docs/backdrop-grayscale
4981
4994
  */
4982
4995
  "backdrop-grayscale": [{
4983
- "backdrop-grayscale": ["", z, h, p]
4996
+ "backdrop-grayscale": ["", x, p, f]
4984
4997
  }],
4985
4998
  /**
4986
4999
  * Backdrop Hue Rotate
4987
5000
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
4988
5001
  */
4989
5002
  "backdrop-hue-rotate": [{
4990
- "backdrop-hue-rotate": [z, h, p]
5003
+ "backdrop-hue-rotate": [x, p, f]
4991
5004
  }],
4992
5005
  /**
4993
5006
  * Backdrop Invert
4994
5007
  * @see https://tailwindcss.com/docs/backdrop-invert
4995
5008
  */
4996
5009
  "backdrop-invert": [{
4997
- "backdrop-invert": ["", z, h, p]
5010
+ "backdrop-invert": ["", x, p, f]
4998
5011
  }],
4999
5012
  /**
5000
5013
  * Backdrop Opacity
5001
5014
  * @see https://tailwindcss.com/docs/backdrop-opacity
5002
5015
  */
5003
5016
  "backdrop-opacity": [{
5004
- "backdrop-opacity": [z, h, p]
5017
+ "backdrop-opacity": [x, p, f]
5005
5018
  }],
5006
5019
  /**
5007
5020
  * Backdrop Saturate
5008
5021
  * @see https://tailwindcss.com/docs/backdrop-saturate
5009
5022
  */
5010
5023
  "backdrop-saturate": [{
5011
- "backdrop-saturate": [z, h, p]
5024
+ "backdrop-saturate": [x, p, f]
5012
5025
  }],
5013
5026
  /**
5014
5027
  * Backdrop Sepia
5015
5028
  * @see https://tailwindcss.com/docs/backdrop-sepia
5016
5029
  */
5017
5030
  "backdrop-sepia": [{
5018
- "backdrop-sepia": ["", z, h, p]
5031
+ "backdrop-sepia": ["", x, p, f]
5019
5032
  }],
5020
5033
  // --------------
5021
5034
  // --- Tables ---
@@ -5032,21 +5045,21 @@ const L = (e) => {
5032
5045
  * @see https://tailwindcss.com/docs/border-spacing
5033
5046
  */
5034
5047
  "border-spacing": [{
5035
- "border-spacing": b()
5048
+ "border-spacing": _()
5036
5049
  }],
5037
5050
  /**
5038
5051
  * Border Spacing X
5039
5052
  * @see https://tailwindcss.com/docs/border-spacing
5040
5053
  */
5041
5054
  "border-spacing-x": [{
5042
- "border-spacing-x": b()
5055
+ "border-spacing-x": _()
5043
5056
  }],
5044
5057
  /**
5045
5058
  * Border Spacing Y
5046
5059
  * @see https://tailwindcss.com/docs/border-spacing
5047
5060
  */
5048
5061
  "border-spacing-y": [{
5049
- "border-spacing-y": b()
5062
+ "border-spacing-y": _()
5050
5063
  }],
5051
5064
  /**
5052
5065
  * Table Layout
@@ -5070,7 +5083,7 @@ const L = (e) => {
5070
5083
  * @see https://tailwindcss.com/docs/transition-property
5071
5084
  */
5072
5085
  transition: [{
5073
- transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", h, p]
5086
+ transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", p, f]
5074
5087
  }],
5075
5088
  /**
5076
5089
  * Transition Behavior
@@ -5084,28 +5097,28 @@ const L = (e) => {
5084
5097
  * @see https://tailwindcss.com/docs/transition-duration
5085
5098
  */
5086
5099
  duration: [{
5087
- duration: [z, "initial", h, p]
5100
+ duration: [x, "initial", p, f]
5088
5101
  }],
5089
5102
  /**
5090
5103
  * Transition Timing Function
5091
5104
  * @see https://tailwindcss.com/docs/transition-timing-function
5092
5105
  */
5093
5106
  ease: [{
5094
- ease: ["linear", "initial", U, h, p]
5107
+ ease: ["linear", "initial", U, p, f]
5095
5108
  }],
5096
5109
  /**
5097
5110
  * Transition Delay
5098
5111
  * @see https://tailwindcss.com/docs/transition-delay
5099
5112
  */
5100
5113
  delay: [{
5101
- delay: [z, h, p]
5114
+ delay: [x, p, f]
5102
5115
  }],
5103
5116
  /**
5104
5117
  * Animation
5105
5118
  * @see https://tailwindcss.com/docs/animation
5106
5119
  */
5107
5120
  animate: [{
5108
- animate: ["none", D, h, p]
5121
+ animate: ["none", M, p, f]
5109
5122
  }],
5110
5123
  // ------------------
5111
5124
  // --- Transforms ---
@@ -5122,14 +5135,14 @@ const L = (e) => {
5122
5135
  * @see https://tailwindcss.com/docs/perspective
5123
5136
  */
5124
5137
  perspective: [{
5125
- perspective: [C, h, p]
5138
+ perspective: [T, p, f]
5126
5139
  }],
5127
5140
  /**
5128
5141
  * Perspective Origin
5129
5142
  * @see https://tailwindcss.com/docs/perspective-origin
5130
5143
  */
5131
5144
  "perspective-origin": [{
5132
- "perspective-origin": M()
5145
+ "perspective-origin": D()
5133
5146
  }],
5134
5147
  /**
5135
5148
  * Rotate
@@ -5197,35 +5210,35 @@ const L = (e) => {
5197
5210
  * @see https://tailwindcss.com/docs/skew
5198
5211
  */
5199
5212
  skew: [{
5200
- skew: Ge()
5213
+ skew: We()
5201
5214
  }],
5202
5215
  /**
5203
5216
  * Skew X
5204
5217
  * @see https://tailwindcss.com/docs/skew
5205
5218
  */
5206
5219
  "skew-x": [{
5207
- "skew-x": Ge()
5220
+ "skew-x": We()
5208
5221
  }],
5209
5222
  /**
5210
5223
  * Skew Y
5211
5224
  * @see https://tailwindcss.com/docs/skew
5212
5225
  */
5213
5226
  "skew-y": [{
5214
- "skew-y": Ge()
5227
+ "skew-y": We()
5215
5228
  }],
5216
5229
  /**
5217
5230
  * Transform
5218
5231
  * @see https://tailwindcss.com/docs/transform
5219
5232
  */
5220
5233
  transform: [{
5221
- transform: [h, p, "", "none", "gpu", "cpu"]
5234
+ transform: [p, f, "", "none", "gpu", "cpu"]
5222
5235
  }],
5223
5236
  /**
5224
5237
  * Transform Origin
5225
5238
  * @see https://tailwindcss.com/docs/transform-origin
5226
5239
  */
5227
5240
  "transform-origin": [{
5228
- origin: M()
5241
+ origin: D()
5229
5242
  }],
5230
5243
  /**
5231
5244
  * Transform Style
@@ -5275,7 +5288,7 @@ const L = (e) => {
5275
5288
  * @see https://tailwindcss.com/docs/accent-color
5276
5289
  */
5277
5290
  accent: [{
5278
- accent: v()
5291
+ accent: w()
5279
5292
  }],
5280
5293
  /**
5281
5294
  * Appearance
@@ -5289,7 +5302,7 @@ const L = (e) => {
5289
5302
  * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
5290
5303
  */
5291
5304
  "caret-color": [{
5292
- caret: v()
5305
+ caret: w()
5293
5306
  }],
5294
5307
  /**
5295
5308
  * Color Scheme
@@ -5303,7 +5316,7 @@ const L = (e) => {
5303
5316
  * @see https://tailwindcss.com/docs/cursor
5304
5317
  */
5305
5318
  cursor: [{
5306
- cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", h, p]
5319
+ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", p, f]
5307
5320
  }],
5308
5321
  /**
5309
5322
  * Field Sizing
@@ -5338,126 +5351,126 @@ const L = (e) => {
5338
5351
  * @see https://tailwindcss.com/docs/scroll-margin
5339
5352
  */
5340
5353
  "scroll-m": [{
5341
- "scroll-m": b()
5354
+ "scroll-m": _()
5342
5355
  }],
5343
5356
  /**
5344
5357
  * Scroll Margin X
5345
5358
  * @see https://tailwindcss.com/docs/scroll-margin
5346
5359
  */
5347
5360
  "scroll-mx": [{
5348
- "scroll-mx": b()
5361
+ "scroll-mx": _()
5349
5362
  }],
5350
5363
  /**
5351
5364
  * Scroll Margin Y
5352
5365
  * @see https://tailwindcss.com/docs/scroll-margin
5353
5366
  */
5354
5367
  "scroll-my": [{
5355
- "scroll-my": b()
5368
+ "scroll-my": _()
5356
5369
  }],
5357
5370
  /**
5358
5371
  * Scroll Margin Start
5359
5372
  * @see https://tailwindcss.com/docs/scroll-margin
5360
5373
  */
5361
5374
  "scroll-ms": [{
5362
- "scroll-ms": b()
5375
+ "scroll-ms": _()
5363
5376
  }],
5364
5377
  /**
5365
5378
  * Scroll Margin End
5366
5379
  * @see https://tailwindcss.com/docs/scroll-margin
5367
5380
  */
5368
5381
  "scroll-me": [{
5369
- "scroll-me": b()
5382
+ "scroll-me": _()
5370
5383
  }],
5371
5384
  /**
5372
5385
  * Scroll Margin Top
5373
5386
  * @see https://tailwindcss.com/docs/scroll-margin
5374
5387
  */
5375
5388
  "scroll-mt": [{
5376
- "scroll-mt": b()
5389
+ "scroll-mt": _()
5377
5390
  }],
5378
5391
  /**
5379
5392
  * Scroll Margin Right
5380
5393
  * @see https://tailwindcss.com/docs/scroll-margin
5381
5394
  */
5382
5395
  "scroll-mr": [{
5383
- "scroll-mr": b()
5396
+ "scroll-mr": _()
5384
5397
  }],
5385
5398
  /**
5386
5399
  * Scroll Margin Bottom
5387
5400
  * @see https://tailwindcss.com/docs/scroll-margin
5388
5401
  */
5389
5402
  "scroll-mb": [{
5390
- "scroll-mb": b()
5403
+ "scroll-mb": _()
5391
5404
  }],
5392
5405
  /**
5393
5406
  * Scroll Margin Left
5394
5407
  * @see https://tailwindcss.com/docs/scroll-margin
5395
5408
  */
5396
5409
  "scroll-ml": [{
5397
- "scroll-ml": b()
5410
+ "scroll-ml": _()
5398
5411
  }],
5399
5412
  /**
5400
5413
  * Scroll Padding
5401
5414
  * @see https://tailwindcss.com/docs/scroll-padding
5402
5415
  */
5403
5416
  "scroll-p": [{
5404
- "scroll-p": b()
5417
+ "scroll-p": _()
5405
5418
  }],
5406
5419
  /**
5407
5420
  * Scroll Padding X
5408
5421
  * @see https://tailwindcss.com/docs/scroll-padding
5409
5422
  */
5410
5423
  "scroll-px": [{
5411
- "scroll-px": b()
5424
+ "scroll-px": _()
5412
5425
  }],
5413
5426
  /**
5414
5427
  * Scroll Padding Y
5415
5428
  * @see https://tailwindcss.com/docs/scroll-padding
5416
5429
  */
5417
5430
  "scroll-py": [{
5418
- "scroll-py": b()
5431
+ "scroll-py": _()
5419
5432
  }],
5420
5433
  /**
5421
5434
  * Scroll Padding Start
5422
5435
  * @see https://tailwindcss.com/docs/scroll-padding
5423
5436
  */
5424
5437
  "scroll-ps": [{
5425
- "scroll-ps": b()
5438
+ "scroll-ps": _()
5426
5439
  }],
5427
5440
  /**
5428
5441
  * Scroll Padding End
5429
5442
  * @see https://tailwindcss.com/docs/scroll-padding
5430
5443
  */
5431
5444
  "scroll-pe": [{
5432
- "scroll-pe": b()
5445
+ "scroll-pe": _()
5433
5446
  }],
5434
5447
  /**
5435
5448
  * Scroll Padding Top
5436
5449
  * @see https://tailwindcss.com/docs/scroll-padding
5437
5450
  */
5438
5451
  "scroll-pt": [{
5439
- "scroll-pt": b()
5452
+ "scroll-pt": _()
5440
5453
  }],
5441
5454
  /**
5442
5455
  * Scroll Padding Right
5443
5456
  * @see https://tailwindcss.com/docs/scroll-padding
5444
5457
  */
5445
5458
  "scroll-pr": [{
5446
- "scroll-pr": b()
5459
+ "scroll-pr": _()
5447
5460
  }],
5448
5461
  /**
5449
5462
  * Scroll Padding Bottom
5450
5463
  * @see https://tailwindcss.com/docs/scroll-padding
5451
5464
  */
5452
5465
  "scroll-pb": [{
5453
- "scroll-pb": b()
5466
+ "scroll-pb": _()
5454
5467
  }],
5455
5468
  /**
5456
5469
  * Scroll Padding Left
5457
5470
  * @see https://tailwindcss.com/docs/scroll-padding
5458
5471
  */
5459
5472
  "scroll-pl": [{
5460
- "scroll-pl": b()
5473
+ "scroll-pl": _()
5461
5474
  }],
5462
5475
  /**
5463
5476
  * Scroll Snap Align
@@ -5525,7 +5538,7 @@ const L = (e) => {
5525
5538
  * @see https://tailwindcss.com/docs/will-change
5526
5539
  */
5527
5540
  "will-change": [{
5528
- "will-change": ["auto", "scroll", "contents", "transform", h, p]
5541
+ "will-change": ["auto", "scroll", "contents", "transform", p, f]
5529
5542
  }],
5530
5543
  // -----------
5531
5544
  // --- SVG ---
@@ -5535,21 +5548,21 @@ const L = (e) => {
5535
5548
  * @see https://tailwindcss.com/docs/fill
5536
5549
  */
5537
5550
  fill: [{
5538
- fill: ["none", ...v()]
5551
+ fill: ["none", ...w()]
5539
5552
  }],
5540
5553
  /**
5541
5554
  * Stroke Width
5542
5555
  * @see https://tailwindcss.com/docs/stroke-width
5543
5556
  */
5544
5557
  "stroke-w": [{
5545
- stroke: [z, ye, oe, qe]
5558
+ stroke: [x, ye, oe, Je]
5546
5559
  }],
5547
5560
  /**
5548
5561
  * Stroke
5549
5562
  * @see https://tailwindcss.com/docs/stroke
5550
5563
  */
5551
5564
  stroke: [{
5552
- stroke: ["none", ...v()]
5565
+ stroke: ["none", ...w()]
5553
5566
  }],
5554
5567
  // ---------------------
5555
5568
  // --- Accessibility ---
@@ -5617,9 +5630,9 @@ const L = (e) => {
5617
5630
  },
5618
5631
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
5619
5632
  };
5620
- }, Da = /* @__PURE__ */ _a(La);
5633
+ }, Ma = /* @__PURE__ */ _a(La);
5621
5634
  function Ua(...e) {
5622
- return Da(sa(e));
5635
+ return Ma(sa(e));
5623
5636
  }
5624
5637
  const Va = ({
5625
5638
  initialContent: e = "",
@@ -5634,81 +5647,81 @@ const Va = ({
5634
5647
  const {
5635
5648
  editorState: c,
5636
5649
  editorRef: d,
5637
- updateContent: m,
5638
- updateTitle: k,
5639
- executeCommand: w,
5640
- getValidationResult: f,
5641
- exportToHTML: _,
5642
- clearEditor: C
5650
+ updateContent: h,
5651
+ updateTitle: $,
5652
+ executeCommand: g,
5653
+ getValidationResult: m,
5654
+ exportToHTML: b,
5655
+ clearEditor: T
5643
5656
  } = oa(e), [P, U] = Oe(!1);
5644
- rt(() => {
5657
+ Ne(() => {
5645
5658
  if (n)
5646
5659
  try {
5647
- const A = _({ includeStyles: !1, includeMeta: !1 });
5660
+ const A = b({ includeStyles: !1, includeMeta: !1 });
5648
5661
  n(c.content, A, c.title);
5649
5662
  } catch {
5650
- const b = `<!DOCTYPE html><html><body>${c.content}</body></html>`;
5651
- n(c.content, b, c.title);
5663
+ const _ = `<!DOCTYPE html><html><body>${c.content}</body></html>`;
5664
+ n(c.content, _, c.title);
5652
5665
  }
5653
- }, [c.content, c.title, n, _]);
5654
- const D = Y(() => {
5655
- if (f().success) {
5656
- const b = _();
5657
- t?.(c.content, b);
5666
+ }, [c.content, c.title, n, b]);
5667
+ const M = W(() => {
5668
+ if (m().success) {
5669
+ const _ = b();
5670
+ t?.(c.content, _);
5658
5671
  } else
5659
5672
  U(!0), setTimeout(() => U(!1), 3e3);
5660
- }, [c.content, f, _, t]), N = Y(() => {
5673
+ }, [c.content, m, b, t]), N = W(() => {
5661
5674
  try {
5662
- const A = _();
5675
+ const A = b();
5663
5676
  r?.(A);
5664
- const b = new Blob([A], { type: "text/html" }), F = URL.createObjectURL(b), q = document.createElement("a");
5677
+ const _ = new Blob([A], { type: "text/html" }), F = URL.createObjectURL(_), q = document.createElement("a");
5665
5678
  q.href = F, q.download = `${c.title.replace(/\s+/g, "_") || "document"}.html`, document.body.appendChild(q), q.click(), document.body.removeChild(q), URL.revokeObjectURL(F);
5666
5679
  } catch (A) {
5667
5680
  alert(
5668
5681
  "Export failed: " + (A instanceof Error ? A.message : "Unknown error")
5669
5682
  );
5670
5683
  }
5671
- }, [_, c.title, r]), R = Y(() => {
5684
+ }, [b, c.title, r]), R = W(() => {
5672
5685
  confirm(
5673
5686
  "Are you sure you want to clear the editor? All unsaved changes will be lost."
5674
- ) && C();
5675
- }, [C]), M = Y(
5687
+ ) && T();
5688
+ }, [T]), D = W(
5676
5689
  (A) => {
5677
- m(A);
5690
+ h(A);
5678
5691
  },
5679
- [m]
5680
- ), B = Y(
5692
+ [h]
5693
+ ), Y = W(
5681
5694
  (A) => {
5682
- k(A);
5695
+ $(A);
5683
5696
  },
5684
- [k]
5697
+ [$]
5685
5698
  );
5686
- return /* @__PURE__ */ x.jsxs("div", { className: "w-full max-w-6xl mx-auto bg-white rounded-xl shadow-lg overflow-hidden", children: [
5687
- s && /* @__PURE__ */ x.jsxs("div", { className: "p-6 border-b border-gray-200 bg-gray-50", children: [
5688
- /* @__PURE__ */ x.jsx(
5699
+ return /* @__PURE__ */ y.jsxs("div", { className: "w-full max-w-6xl mx-auto bg-white rounded-xl shadow-lg overflow-hidden", children: [
5700
+ s && /* @__PURE__ */ y.jsxs("div", { className: "p-6 border-b border-gray-200 bg-gray-50", children: [
5701
+ /* @__PURE__ */ y.jsx(
5689
5702
  "input",
5690
5703
  {
5691
5704
  type: "text",
5692
5705
  className: "w-full bg-transparent text-2xl font-bold text-gray-800 outline-none placeholder-gray-400",
5693
5706
  value: c.title,
5694
- onChange: (A) => B(A.target.value),
5707
+ onChange: (A) => Y(A.target.value),
5695
5708
  placeholder: "Document Title"
5696
5709
  }
5697
5710
  ),
5698
- P && /* @__PURE__ */ x.jsx("div", { className: "text-red-600 text-sm mt-2 animate-fadeIn", children: "Please add content before saving" })
5711
+ P && /* @__PURE__ */ y.jsx("div", { className: "text-red-600 text-sm mt-2 animate-fadeIn", children: "Please add content before saving" })
5699
5712
  ] }),
5700
- /* @__PURE__ */ x.jsx(
5713
+ /* @__PURE__ */ y.jsx(
5701
5714
  Gr,
5702
5715
  {
5703
- onCommand: w,
5704
- onSave: D,
5716
+ onCommand: g,
5717
+ onSave: M,
5705
5718
  onExport: N,
5706
5719
  showButtons: o,
5707
5720
  onClear: R,
5708
5721
  hasUnsavedChanges: c.hasUnsavedChanges
5709
5722
  }
5710
5723
  ),
5711
- /* @__PURE__ */ x.jsx(
5724
+ /* @__PURE__ */ y.jsx(
5712
5725
  "div",
5713
5726
  {
5714
5727
  ref: d,
@@ -5718,12 +5731,12 @@ const Va = ({
5718
5731
  // Default fallback
5719
5732
  ),
5720
5733
  contentEditable: !0,
5721
- onInput: (A) => M(A.currentTarget.innerHTML),
5722
- onBlur: (A) => M(A.currentTarget.innerHTML),
5734
+ onInput: (A) => D(A.currentTarget.innerHTML),
5735
+ onBlur: (A) => D(A.currentTarget.innerHTML),
5723
5736
  suppressContentEditableWarning: !0
5724
5737
  }
5725
5738
  ),
5726
- i && /* @__PURE__ */ x.jsx(
5739
+ i && /* @__PURE__ */ y.jsx(
5727
5740
  Wr,
5728
5741
  {
5729
5742
  wordCount: c.wordCount,