@olonjs/core 1.1.10 → 1.1.12

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.
@@ -1,7 +1,7 @@
1
- import Tt, { useContext as Re, createContext as Ae, Component as rt, useMemo as ze, useState as ot, useEffect as oe, forwardRef as nt, createElement as Ne, useRef as Be, useLayoutEffect as Rt } from "react";
2
- import { Link as At, createRoutesFromElements as _t, createBrowserRouter as Ot, RouterProvider as Pt, ScrollRestoration as zt, Outlet as Nt, useLocation as It, Route as ye } from "react-router-dom";
1
+ import At, { useContext as _e, createContext as Oe, Component as ot, useMemo as fe, useState as nt, useEffect as se, forwardRef as st, createElement as Ie, useRef as Ue, useLayoutEffect as _t } from "react";
2
+ import { Link as Ot, createRoutesFromElements as Pt, createBrowserRouter as zt, RouterProvider as Nt, ScrollRestoration as It, Outlet as $t, useLocation as Mt, Route as xe } from "react-router-dom";
3
3
  import { z as I } from "zod";
4
- var xe = { exports: {} }, le = {};
4
+ var we = { exports: {} }, de = {};
5
5
  /**
6
6
  * @license React
7
7
  * react-jsx-runtime.production.js
@@ -11,12 +11,12 @@ var xe = { exports: {} }, le = {};
11
11
  * This source code is licensed under the MIT license found in the
12
12
  * LICENSE file in the root directory of this source tree.
13
13
  */
14
- var Ue;
15
- function $t() {
16
- if (Ue) return le;
17
- Ue = 1;
14
+ var Ge;
15
+ function Lt() {
16
+ if (Ge) return de;
17
+ Ge = 1;
18
18
  var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
19
- function r(o, n, s) {
19
+ function o(r, n, s) {
20
20
  var a = null;
21
21
  if (s !== void 0 && (a = "" + s), n.key !== void 0 && (a = "" + n.key), "key" in n) {
22
22
  s = {};
@@ -25,15 +25,15 @@ function $t() {
25
25
  } else s = n;
26
26
  return n = s.ref, {
27
27
  $$typeof: e,
28
- type: o,
28
+ type: r,
29
29
  key: a,
30
30
  ref: n !== void 0 ? n : null,
31
31
  props: s
32
32
  };
33
33
  }
34
- return le.Fragment = t, le.jsx = r, le.jsxs = r, le;
34
+ return de.Fragment = t, de.jsx = o, de.jsxs = o, de;
35
35
  }
36
- var ce = {};
36
+ var ue = {};
37
37
  /**
38
38
  * @license React
39
39
  * react-jsx-runtime.development.js
@@ -43,24 +43,24 @@ var ce = {};
43
43
  * This source code is licensed under the MIT license found in the
44
44
  * LICENSE file in the root directory of this source tree.
45
45
  */
46
- var Ge;
47
- function Lt() {
48
- return Ge || (Ge = 1, process.env.NODE_ENV !== "production" && (function() {
46
+ var Ve;
47
+ function Dt() {
48
+ return Ve || (Ve = 1, process.env.NODE_ENV !== "production" && (function() {
49
49
  function e(i) {
50
50
  if (i == null) return null;
51
51
  if (typeof i == "function")
52
52
  return i.$$typeof === Y ? null : i.displayName || i.name || null;
53
53
  if (typeof i == "string") return i;
54
54
  switch (i) {
55
- case C:
55
+ case E:
56
56
  return "Fragment";
57
57
  case W:
58
58
  return "Profiler";
59
- case F:
59
+ case R:
60
60
  return "StrictMode";
61
- case T:
61
+ case _:
62
62
  return "Suspense";
63
- case M:
63
+ case $:
64
64
  return "SuspenseList";
65
65
  case J:
66
66
  return "Activity";
@@ -69,18 +69,18 @@ function Lt() {
69
69
  switch (typeof i.tag == "number" && console.error(
70
70
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
71
71
  ), i.$$typeof) {
72
- case j:
72
+ case C:
73
73
  return "Portal";
74
- case O:
74
+ case T:
75
75
  return i.displayName || "Context";
76
- case E:
77
- return (i._context.displayName || "Context") + ".Consumer";
78
76
  case k:
77
+ return (i._context.displayName || "Context") + ".Consumer";
78
+ case j:
79
79
  var x = i.render;
80
80
  return i = i.displayName, i || (i = x.displayName || x.name || "", i = i !== "" ? "ForwardRef(" + i + ")" : "ForwardRef"), i;
81
- case d:
81
+ case m:
82
82
  return x = i.displayName || null, x !== null ? x : e(i.type) || "Memo";
83
- case S:
83
+ case A:
84
84
  x = i._payload, i = i._init;
85
85
  try {
86
86
  return e(i(x));
@@ -92,7 +92,7 @@ function Lt() {
92
92
  function t(i) {
93
93
  return "" + i;
94
94
  }
95
- function r(i) {
95
+ function o(i) {
96
96
  try {
97
97
  t(i);
98
98
  var x = !1;
@@ -101,17 +101,17 @@ function Lt() {
101
101
  }
102
102
  if (x) {
103
103
  x = console;
104
- var R = x.error, P = typeof Symbol == "function" && Symbol.toStringTag && i[Symbol.toStringTag] || i.constructor.name || "Object";
105
- return R.call(
104
+ var O = x.error, z = typeof Symbol == "function" && Symbol.toStringTag && i[Symbol.toStringTag] || i.constructor.name || "Object";
105
+ return O.call(
106
106
  x,
107
107
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
108
- P
108
+ z
109
109
  ), t(i);
110
110
  }
111
111
  }
112
- function o(i) {
113
- if (i === C) return "<>";
114
- if (typeof i == "object" && i !== null && i.$$typeof === S)
112
+ function r(i) {
113
+ if (i === E) return "<>";
114
+ if (typeof i == "object" && i !== null && i.$$typeof === A)
115
115
  return "<...>";
116
116
  try {
117
117
  var x = e(i);
@@ -135,32 +135,32 @@ function Lt() {
135
135
  return i.key !== void 0;
136
136
  }
137
137
  function c(i, x) {
138
- function R() {
138
+ function O() {
139
139
  B || (B = !0, console.error(
140
140
  "%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)",
141
141
  x
142
142
  ));
143
143
  }
144
- R.isReactWarning = !0, Object.defineProperty(i, "key", {
145
- get: R,
144
+ O.isReactWarning = !0, Object.defineProperty(i, "key", {
145
+ get: O,
146
146
  configurable: !0
147
147
  });
148
148
  }
149
149
  function l() {
150
150
  var i = e(this.type);
151
- return G[i] || (G[i] = !0, console.error(
151
+ return F[i] || (F[i] = !0, console.error(
152
152
  "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."
153
153
  )), i = this.props.ref, i !== void 0 ? i : null;
154
154
  }
155
- function m(i, x, R, P, N, $) {
156
- var _ = R.ref;
155
+ function d(i, x, O, z, M, L) {
156
+ var P = O.ref;
157
157
  return i = {
158
- $$typeof: A,
158
+ $$typeof: S,
159
159
  type: i,
160
160
  key: x,
161
- props: R,
162
- _owner: P
163
- }, (_ !== void 0 ? _ : null) !== null ? Object.defineProperty(i, "ref", {
161
+ props: O,
162
+ _owner: z
163
+ }, (P !== void 0 ? P : null) !== null ? Object.defineProperty(i, "ref", {
164
164
  enumerable: !1,
165
165
  get: l
166
166
  }) : Object.defineProperty(i, "ref", { enumerable: !1, value: null }), i._store = {}, Object.defineProperty(i._store, "validated", {
@@ -177,143 +177,143 @@ function Lt() {
177
177
  configurable: !1,
178
178
  enumerable: !1,
179
179
  writable: !0,
180
- value: N
180
+ value: M
181
181
  }), Object.defineProperty(i, "_debugTask", {
182
182
  configurable: !1,
183
183
  enumerable: !1,
184
184
  writable: !0,
185
- value: $
185
+ value: L
186
186
  }), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
187
187
  }
188
- function b(i, x, R, P, N, $) {
189
- var _ = x.children;
190
- if (_ !== void 0)
191
- if (P)
192
- if (Z(_)) {
193
- for (P = 0; P < _.length; P++)
194
- h(_[P]);
195
- Object.freeze && Object.freeze(_);
188
+ function g(i, x, O, z, M, L) {
189
+ var P = x.children;
190
+ if (P !== void 0)
191
+ if (z)
192
+ if (K(P)) {
193
+ for (z = 0; z < P.length; z++)
194
+ h(P[z]);
195
+ Object.freeze && Object.freeze(P);
196
196
  } else
197
197
  console.error(
198
198
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
199
199
  );
200
- else h(_);
200
+ else h(P);
201
201
  if (X.call(x, "key")) {
202
- _ = e(i);
203
- var H = Object.keys(x).filter(function(pe) {
204
- return pe !== "key";
202
+ P = e(i);
203
+ var H = Object.keys(x).filter(function(he) {
204
+ return he !== "key";
205
205
  });
206
- P = 0 < H.length ? "{key: someKey, " + H.join(": ..., ") + ": ...}" : "{key: someKey}", g[_ + P] || (H = 0 < H.length ? "{" + H.join(": ..., ") + ": ...}" : "{}", console.error(
206
+ z = 0 < H.length ? "{key: someKey, " + H.join(": ..., ") + ": ...}" : "{key: someKey}", y[P + z] || (H = 0 < H.length ? "{" + H.join(": ..., ") + ": ...}" : "{}", console.error(
207
207
  `A props object containing a "key" prop is being spread into JSX:
208
208
  let props = %s;
209
209
  <%s {...props} />
210
210
  React keys must be passed directly to JSX without using spread:
211
211
  let props = %s;
212
212
  <%s key={someKey} {...props} />`,
213
+ z,
213
214
  P,
214
- _,
215
215
  H,
216
- _
217
- ), g[_ + P] = !0);
216
+ P
217
+ ), y[P + z] = !0);
218
218
  }
219
- if (_ = null, R !== void 0 && (r(R), _ = "" + R), a(x) && (r(x.key), _ = "" + x.key), "key" in x) {
220
- R = {};
221
- for (var z in x)
222
- z !== "key" && (R[z] = x[z]);
223
- } else R = x;
224
- return _ && c(
225
- R,
219
+ if (P = null, O !== void 0 && (o(O), P = "" + O), a(x) && (o(x.key), P = "" + x.key), "key" in x) {
220
+ O = {};
221
+ for (var N in x)
222
+ N !== "key" && (O[N] = x[N]);
223
+ } else O = x;
224
+ return P && c(
225
+ O,
226
226
  typeof i == "function" ? i.displayName || i.name || "Unknown" : i
227
- ), m(
227
+ ), d(
228
228
  i,
229
- _,
230
- R,
229
+ P,
230
+ O,
231
231
  n(),
232
- N,
233
- $
232
+ M,
233
+ L
234
234
  );
235
235
  }
236
236
  function h(i) {
237
- y(i) ? i._store && (i._store.validated = 1) : typeof i == "object" && i !== null && i.$$typeof === S && (i._payload.status === "fulfilled" ? y(i._payload.value) && i._payload.value._store && (i._payload.value._store.validated = 1) : i._store && (i._store.validated = 1));
237
+ b(i) ? i._store && (i._store.validated = 1) : typeof i == "object" && i !== null && i.$$typeof === A && (i._payload.status === "fulfilled" ? b(i._payload.value) && i._payload.value._store && (i._payload.value._store.validated = 1) : i._store && (i._store.validated = 1));
238
238
  }
239
- function y(i) {
240
- return typeof i == "object" && i !== null && i.$$typeof === A;
239
+ function b(i) {
240
+ return typeof i == "object" && i !== null && i.$$typeof === S;
241
241
  }
242
- var w = Tt, A = Symbol.for("react.transitional.element"), j = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), F = Symbol.for("react.strict_mode"), W = Symbol.for("react.profiler"), E = Symbol.for("react.consumer"), O = Symbol.for("react.context"), k = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), M = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), J = Symbol.for("react.activity"), Y = Symbol.for("react.client.reference"), V = w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, X = Object.prototype.hasOwnProperty, Z = Array.isArray, D = console.createTask ? console.createTask : function() {
242
+ var v = At, S = Symbol.for("react.transitional.element"), C = Symbol.for("react.portal"), E = Symbol.for("react.fragment"), R = Symbol.for("react.strict_mode"), W = Symbol.for("react.profiler"), k = Symbol.for("react.consumer"), T = Symbol.for("react.context"), j = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), $ = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), J = Symbol.for("react.activity"), Y = Symbol.for("react.client.reference"), V = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, X = Object.prototype.hasOwnProperty, K = Array.isArray, G = console.createTask ? console.createTask : function() {
243
243
  return null;
244
244
  };
245
- w = {
245
+ v = {
246
246
  react_stack_bottom_frame: function(i) {
247
247
  return i();
248
248
  }
249
249
  };
250
- var B, G = {}, se = w.react_stack_bottom_frame.bind(
251
- w,
250
+ var B, F = {}, q = v.react_stack_bottom_frame.bind(
251
+ v,
252
252
  s
253
- )(), ae = D(o(s)), g = {};
254
- ce.Fragment = C, ce.jsx = function(i, x, R) {
255
- var P = 1e4 > V.recentlyCreatedOwnerStacks++;
256
- return b(
253
+ )(), Q = G(r(s)), y = {};
254
+ ue.Fragment = E, ue.jsx = function(i, x, O) {
255
+ var z = 1e4 > V.recentlyCreatedOwnerStacks++;
256
+ return g(
257
257
  i,
258
258
  x,
259
- R,
259
+ O,
260
260
  !1,
261
- P ? Error("react-stack-top-frame") : se,
262
- P ? D(o(i)) : ae
261
+ z ? Error("react-stack-top-frame") : q,
262
+ z ? G(r(i)) : Q
263
263
  );
264
- }, ce.jsxs = function(i, x, R) {
265
- var P = 1e4 > V.recentlyCreatedOwnerStacks++;
266
- return b(
264
+ }, ue.jsxs = function(i, x, O) {
265
+ var z = 1e4 > V.recentlyCreatedOwnerStacks++;
266
+ return g(
267
267
  i,
268
268
  x,
269
- R,
269
+ O,
270
270
  !0,
271
- P ? Error("react-stack-top-frame") : se,
272
- P ? D(o(i)) : ae
271
+ z ? Error("react-stack-top-frame") : q,
272
+ z ? G(r(i)) : Q
273
273
  );
274
274
  };
275
- })()), ce;
275
+ })()), ue;
276
276
  }
277
- var Ve;
278
- function Mt() {
279
- return Ve || (Ve = 1, process.env.NODE_ENV === "production" ? xe.exports = $t() : xe.exports = Lt()), xe.exports;
277
+ var Je;
278
+ function Ft() {
279
+ return Je || (Je = 1, process.env.NODE_ENV === "production" ? we.exports = Lt() : we.exports = Dt()), we.exports;
280
280
  }
281
- var u = Mt();
282
- function fe(e) {
281
+ var u = Ft();
282
+ function ae(e) {
283
283
  return typeof e == "object" && e !== null;
284
284
  }
285
- function Ce(e) {
286
- if (!fe(e)) return !1;
285
+ function Re(e) {
286
+ if (!ae(e)) return !1;
287
287
  const t = Object.getPrototypeOf(e);
288
288
  return t === Object.prototype || t === null;
289
289
  }
290
- function Dt(e) {
291
- return fe(e) && typeof e.$ref == "string" && e.$ref.trim().length > 0;
290
+ function Wt(e) {
291
+ return ae(e) && typeof e.$ref == "string" && e.$ref.trim().length > 0;
292
292
  }
293
- function Ft(e) {
293
+ function Bt(e) {
294
294
  return e.replace(/~1/g, "/").replace(/~0/g, "~");
295
295
  }
296
- function Je(e, t) {
296
+ function Ye(e, t) {
297
297
  if (!t || t === "#") return e;
298
- const r = t.startsWith("#") ? t.slice(1) : t;
299
- if (!r || r === "/") return e;
300
- let o = e;
301
- for (const n of r.replace(/^\//, "").split("/")) {
302
- const s = Ft(n);
303
- if (Array.isArray(o)) {
298
+ const o = t.startsWith("#") ? t.slice(1) : t;
299
+ if (!o || o === "/") return e;
300
+ let r = e;
301
+ for (const n of o.replace(/^\//, "").split("/")) {
302
+ const s = Bt(n);
303
+ if (Array.isArray(r)) {
304
304
  const a = Number(s);
305
- if (!Number.isInteger(a) || a < 0 || a >= o.length) return;
306
- o = o[a];
305
+ if (!Number.isInteger(a) || a < 0 || a >= r.length) return;
306
+ r = r[a];
307
307
  continue;
308
308
  }
309
- if (!fe(o) || !(s in o)) return;
310
- o = o[s];
309
+ if (!ae(r) || !(s in r)) return;
310
+ r = r[s];
311
311
  }
312
- return o;
312
+ return r;
313
313
  }
314
- function ie(e) {
315
- const o = e.trim().replace(/\\/g, "/").replace(/^\/+/, "").split("/"), n = [];
316
- for (const s of o)
314
+ function ce(e) {
315
+ const r = e.trim().replace(/\\/g, "/").replace(/^\/+/, "").split("/"), n = [];
316
+ for (const s of r)
317
317
  if (!(!s || s === ".")) {
318
318
  if (s === "..") {
319
319
  n.length > 0 && n.pop();
@@ -323,144 +323,213 @@ function ie(e) {
323
323
  }
324
324
  return n.join("/");
325
325
  }
326
- function Wt(e) {
327
- const t = ie(e), r = t.lastIndexOf("/");
328
- return r === -1 ? "" : t.slice(0, r);
326
+ function Ut(e) {
327
+ const t = ce(e), o = t.lastIndexOf("/");
328
+ return o === -1 ? "" : t.slice(0, o);
329
329
  }
330
- function Bt(e, t) {
331
- const r = /* @__PURE__ */ new Set(), o = ie(e);
332
- o && r.add(o);
333
- const n = Wt(t), s = ie(n ? `${n}/${e}` : e);
334
- return s && r.add(s), Array.from(r);
330
+ function Gt(e, t) {
331
+ const o = /* @__PURE__ */ new Set(), r = ce(e);
332
+ r && o.add(r);
333
+ const n = Ut(t), s = ce(n ? `${n}/${e}` : e);
334
+ return s && o.add(s), Array.from(o);
335
335
  }
336
- function me(e) {
337
- return Array.isArray(e) ? e.map((t) => me(t)) : Ce(e) ? Object.fromEntries(
338
- Object.entries(e).map(([t, r]) => [t, me(r)])
336
+ function pe(e) {
337
+ return Array.isArray(e) ? e.map((t) => pe(t)) : Re(e) ? Object.fromEntries(
338
+ Object.entries(e).map(([t, o]) => [t, pe(o)])
339
339
  ) : e;
340
340
  }
341
- function de(e, t, r) {
342
- for (const o of t) {
343
- const n = ie(o);
344
- n && e.set(n, r);
341
+ function le(e, t, o) {
342
+ for (const r of t) {
343
+ const n = ce(r);
344
+ n && e.set(n, o);
345
345
  }
346
346
  }
347
- function Ut({
347
+ function Vt(e, t) {
348
+ const o = {};
349
+ for (const [r, n] of Object.entries(e ?? {})) {
350
+ const s = t == null ? void 0 : t[r];
351
+ if (!s)
352
+ throw new Error(`[JsonPages] Missing collection schema for "${r}".`);
353
+ try {
354
+ o[r] = s.parse(n);
355
+ } catch (a) {
356
+ const c = a instanceof Error && a.message ? `: ${a.message}` : "";
357
+ throw new Error(`[JsonPages] Invalid collection "${r}"${c}`);
358
+ }
359
+ }
360
+ return o;
361
+ }
362
+ function Jt(e, t) {
363
+ if (!e) return null;
364
+ const o = t[e.source];
365
+ if (!ae(o)) return null;
366
+ const r = o[e.paramValue];
367
+ return r === void 0 ? null : {
368
+ ...e,
369
+ currentItem: r
370
+ };
371
+ }
372
+ function Yt({
348
373
  pages: e,
349
374
  siteConfig: t,
350
- themeConfig: r,
351
- menuConfig: o,
352
- refDocuments: n
375
+ themeConfig: o,
376
+ menuConfig: r,
377
+ collections: n,
378
+ refDocuments: s
353
379
  }) {
354
- const s = /* @__PURE__ */ new Map();
355
- for (const [a, c] of Object.entries(n ?? {}))
356
- de(s, [a], c);
357
- de(s, ["site.json", "config/site.json", "src/data/config/site.json"], t), de(s, ["theme.json", "config/theme.json", "src/data/config/theme.json"], r), de(s, ["menu.json", "config/menu.json", "src/data/config/menu.json"], o);
358
- for (const [a, c] of Object.entries(e)) {
359
- const l = a.replace(/^\/+|\/+$/g, "") || "home";
360
- de(s, [`pages/${l}.json`, `src/data/pages/${l}.json`], c);
380
+ const a = /* @__PURE__ */ new Map();
381
+ for (const [c, l] of Object.entries(s ?? {}))
382
+ le(a, [c], l);
383
+ le(a, ["site.json", "config/site.json", "src/data/config/site.json"], t), le(a, ["theme.json", "config/theme.json", "src/data/config/theme.json"], o), le(a, ["menu.json", "config/menu.json", "src/data/config/menu.json"], r);
384
+ for (const [c, l] of Object.entries(e)) {
385
+ const d = c.replace(/^\/+|\/+$/g, "") || "home";
386
+ le(a, [`pages/${d}.json`, `src/data/pages/${d}.json`], l);
361
387
  }
362
- return s;
388
+ for (const [c, l] of Object.entries(n ?? {})) {
389
+ const d = c.replace(/^\/+|\/+$/g, "");
390
+ d && le(a, [
391
+ `collections/${d}/${d}.json`,
392
+ `src/data/collections/${d}/${d}.json`
393
+ ], l);
394
+ }
395
+ return a;
363
396
  }
364
- function Gt(e, t, r) {
365
- const [o, n = ""] = e.split("#"), s = n ? `/${n.replace(/^\//, "")}` : "";
366
- if (!o) {
367
- const a = ie(t), c = r.documents.get(a);
368
- if (c === void 0) return null;
369
- const l = Je(c, s);
370
- return l === void 0 ? null : { value: l, documentPath: a };
397
+ function qt(e, t, o) {
398
+ var a, c, l;
399
+ if (e.trim() === "collection:current") {
400
+ const d = (a = o.collectionContext) == null ? void 0 : a.currentItem;
401
+ if (d === void 0) return null;
402
+ const g = ((c = o.collectionContext) == null ? void 0 : c.source) ?? "current";
403
+ return (l = o.collectionContext) == null || l.paramValue, {
404
+ value: d,
405
+ documentPath: `collections/${g}/${g}.json`
406
+ };
407
+ }
408
+ const [r, n = ""] = e.split("#"), s = n ? `/${n.replace(/^\//, "")}` : "";
409
+ if (!r) {
410
+ const d = ce(t), g = o.documents.get(d);
411
+ if (g === void 0) return null;
412
+ const h = Ye(g, s);
413
+ return h === void 0 ? null : { value: h, documentPath: d };
371
414
  }
372
- for (const a of Bt(o, t)) {
373
- const c = r.documents.get(a);
374
- if (c === void 0) continue;
375
- const l = Je(c, s);
376
- if (l !== void 0)
377
- return { value: l, documentPath: a };
415
+ for (const d of Gt(r, t)) {
416
+ const g = o.documents.get(d);
417
+ if (g === void 0) continue;
418
+ const h = Ye(g, s);
419
+ if (h !== void 0)
420
+ return { value: h, documentPath: d };
378
421
  }
379
422
  return null;
380
423
  }
381
- function re(e, t, r) {
424
+ function ne(e, t, o) {
382
425
  if (Array.isArray(e))
383
- return e.map((o) => re(o, t, r));
384
- if (!Ce(e))
426
+ return e.map((r) => ne(r, t, o));
427
+ if (!Re(e))
385
428
  return e;
386
- if (Dt(e)) {
387
- const o = `${ie(t)}::${e.$ref}`;
388
- if (r.stack.includes(o))
389
- return console.warn("[JsonPages] Circular $ref skipped", e.$ref), me(e);
390
- if (r.cache.has(o)) {
391
- const l = me(r.cache.get(o)), m = Object.entries(e).filter(([h]) => h !== "$ref");
392
- if (m.length === 0) return l;
393
- const b = Object.fromEntries(
394
- m.map(([h, y]) => [h, re(y, t, r)])
429
+ if (Wt(e)) {
430
+ const r = `${ce(t)}::${e.$ref}`;
431
+ if (o.stack.includes(r))
432
+ return console.warn("[JsonPages] Circular $ref skipped", e.$ref), pe(e);
433
+ if (o.cache.has(r)) {
434
+ const l = pe(o.cache.get(r)), d = Object.entries(e).filter(([h]) => h !== "$ref");
435
+ if (d.length === 0) return l;
436
+ const g = Object.fromEntries(
437
+ d.map(([h, b]) => [h, ne(b, t, o)])
395
438
  );
396
- return Ce(l) ? { ...l, ...b } : l;
439
+ return Re(l) ? { ...l, ...g } : l;
397
440
  }
398
- const n = Gt(e.$ref, t, r);
441
+ const n = qt(e.$ref, t, o);
399
442
  if (!n)
400
443
  return console.warn("[JsonPages] Unresolved $ref", e.$ref), Object.fromEntries(
401
- Object.entries(e).map(([l, m]) => [l, re(m, t, r)])
444
+ Object.entries(e).map(([l, d]) => [l, ne(d, t, o)])
402
445
  );
403
- r.stack.push(o);
404
- const s = re(n.value, n.documentPath, r);
405
- r.stack.pop(), r.cache.set(o, me(s));
446
+ o.stack.push(r);
447
+ const s = ne(n.value, n.documentPath, o);
448
+ o.stack.pop(), o.cache.set(r, pe(s));
406
449
  const a = Object.entries(e).filter(([l]) => l !== "$ref");
407
450
  if (a.length === 0) return s;
408
451
  const c = Object.fromEntries(
409
- a.map(([l, m]) => [l, re(m, t, r)])
452
+ a.map(([l, d]) => [l, ne(d, t, o)])
410
453
  );
411
- return Ce(s) ? { ...s, ...c } : s;
454
+ return Re(s) ? { ...s, ...c } : s;
412
455
  }
413
456
  return Object.fromEntries(
414
- Object.entries(e).map(([o, n]) => [o, re(n, t, r)])
457
+ Object.entries(e).map(([r, n]) => [r, ne(n, t, o)])
415
458
  );
416
459
  }
417
- function ve(e, t, r) {
418
- return re(e, t, {
419
- documents: r,
460
+ function ke(e, t, o, r) {
461
+ return ne(e, t, {
462
+ documents: o,
420
463
  cache: /* @__PURE__ */ new Map(),
421
- stack: []
464
+ stack: [],
465
+ collectionContext: r
422
466
  });
423
467
  }
424
- function Vt(e) {
425
- return fe(e) && typeof e.label == "string" && typeof e.href == "string";
468
+ function at(e, t, o) {
469
+ const r = e.collection;
470
+ if (!r) return null;
471
+ const n = String(r.source), s = r.paramKey, a = t[s];
472
+ if (!a) return null;
473
+ const c = o == null ? void 0 : o[n];
474
+ if (!ae(c)) return null;
475
+ const l = c[a];
476
+ return l === void 0 ? null : {
477
+ source: n,
478
+ paramKey: s,
479
+ paramValue: a,
480
+ currentItem: l
481
+ };
482
+ }
483
+ function Ht(e) {
484
+ return ae(e) && typeof e.label == "string" && typeof e.href == "string";
426
485
  }
427
- function Jt(e) {
428
- if (!fe(e)) return null;
486
+ function Zt(e) {
487
+ if (!ae(e)) return null;
429
488
  const t = e.menu;
430
- return Array.isArray(t) && t.every(Vt) ? t : null;
489
+ return Array.isArray(t) && t.every(Ht) ? t : null;
431
490
  }
432
- function we(e, t) {
433
- const r = Jt(e.data);
434
- if (r) return r;
491
+ function je(e, t) {
492
+ const o = Zt(e.data);
493
+ if (o) return o;
435
494
  if (e.type === "header") return Array.isArray(t) ? t : [];
436
495
  }
437
- function st(e) {
438
- const t = Ut(e);
496
+ function De(e) {
497
+ const t = Vt(e.collections, e.collectionSchemas), o = Jt(e.collectionContext, t), r = Yt({
498
+ ...e,
499
+ collections: t
500
+ });
439
501
  return {
440
502
  pages: Object.fromEntries(
441
- Object.entries(e.pages).map(([r, o]) => [
442
- r,
443
- ve(o, `pages/${r.replace(/^\/+|\/+$/g, "") || "home"}.json`, t)
503
+ Object.entries(e.pages).map(([n, s]) => [
504
+ n,
505
+ ke(
506
+ s,
507
+ `pages/${n.replace(/^\/+|\/+$/g, "") || "home"}.json`,
508
+ r,
509
+ o
510
+ )
444
511
  ])
445
512
  ),
446
- siteConfig: ve(e.siteConfig, "config/site.json", t),
447
- themeConfig: ve(e.themeConfig, "config/theme.json", t),
448
- menuConfig: ve(e.menuConfig, "config/menu.json", t)
513
+ siteConfig: ke(e.siteConfig, "config/site.json", r),
514
+ themeConfig: ke(e.themeConfig, "config/theme.json", r),
515
+ menuConfig: ke(e.menuConfig, "config/menu.json", r),
516
+ collections: t,
517
+ collectionContext: o
449
518
  };
450
519
  }
451
- function Yt() {
520
+ function Xt() {
452
521
  if (typeof window > "u") return null;
453
522
  const e = window;
454
523
  return e.__olonWebMcpTools__ || (e.__olonWebMcpTools__ = /* @__PURE__ */ new Map()), e.__olonWebMcpTools__;
455
524
  }
456
- async function Ye(e) {
525
+ async function qe(e) {
457
526
  const t = window.location.pathname.replace(/\/admin(\/.*)?$/, "").replace(/\/$/, "");
458
527
  if (e === "olon://pages" || e === "olon://pages/") {
459
- const r = await fetch(`${t}/mcp-manifest.json`);
460
- if (!r.ok)
528
+ const o = await fetch(`${t}/mcp-manifest.json`);
529
+ if (!o.ok)
461
530
  throw new Error(`Resource not found: ${e} (at ${t}/mcp-manifest.json)`);
462
531
  return {
463
- pages: ((await r.json()).pages || []).map((n) => {
532
+ pages: ((await o.json()).pages || []).map((n) => {
464
533
  const s = n;
465
534
  return {
466
535
  slug: s.slug,
@@ -471,45 +540,45 @@ async function Ye(e) {
471
540
  };
472
541
  }
473
542
  if (e.startsWith("olon://pages/")) {
474
- const r = e.replace("olon://pages/", ""), o = await fetch(`${t}/pages/${r}.json`);
475
- if (!o.ok)
476
- throw new Error(`Resource not found: ${e} (at ${t}/pages/${r}.json)`);
477
- return await o.json();
543
+ const o = e.replace("olon://pages/", ""), r = await fetch(`${t}/pages/${o}.json`);
544
+ if (!r.ok)
545
+ throw new Error(`Resource not found: ${e} (at ${t}/pages/${o}.json)`);
546
+ return await r.json();
478
547
  }
479
548
  throw new Error(`Unsupported URI scheme: ${e}`);
480
549
  }
481
- function Ht() {
482
- var r;
550
+ function Kt() {
551
+ var o;
483
552
  if (typeof window > "u" || typeof navigator > "u") return;
484
553
  const e = navigator;
485
- if (typeof ((r = e.modelContext) == null ? void 0 : r.registerTool) == "function") return;
486
- const t = Yt();
487
- t && (e.modelContext || (e.modelContext = {}), e.modelContext.registerTool = (o, n) => {
554
+ if (typeof ((o = e.modelContext) == null ? void 0 : o.registerTool) == "function") return;
555
+ const t = Xt();
556
+ t && (e.modelContext || (e.modelContext = {}), e.modelContext.registerTool = (r, n) => {
488
557
  var s;
489
- t.set(o.name, o), (s = n == null ? void 0 : n.signal) == null || s.addEventListener("abort", () => {
490
- t.get(o.name) === o && t.delete(o.name);
558
+ t.set(r.name, r), (s = n == null ? void 0 : n.signal) == null || s.addEventListener("abort", () => {
559
+ t.get(r.name) === r && t.delete(r.name);
491
560
  });
492
- }, e.modelContext.unregisterTool = (o) => {
493
- t.delete(o);
494
- }, e.modelContext.readResource = async (o) => Ye(o), e.modelContextProtocol = {
495
- listTools: () => Array.from(t.values()).map(({ execute: o, ...n }) => n),
496
- executeTool: async (o, n) => {
497
- const s = t.get(o);
561
+ }, e.modelContext.unregisterTool = (r) => {
562
+ t.delete(r);
563
+ }, e.modelContext.readResource = async (r) => qe(r), e.modelContextProtocol = {
564
+ listTools: () => Array.from(t.values()).map(({ execute: r, ...n }) => n),
565
+ executeTool: async (r, n) => {
566
+ const s = t.get(r);
498
567
  if (!s)
499
- throw new Error(`WebMCP tool "${o}" is not registered.`);
568
+ throw new Error(`WebMCP tool "${r}" is not registered.`);
500
569
  const a = n ? JSON.parse(n) : {}, c = await s.execute(a);
501
570
  return JSON.stringify(c);
502
571
  },
503
- readResource: async (o) => JSON.stringify(await Ye(o))
572
+ readResource: async (r) => JSON.stringify(await qe(r))
504
573
  });
505
574
  }
506
- function qt(e) {
575
+ function Qt(e) {
507
576
  return `/schemas/${e}.schema.json`;
508
577
  }
509
- function Xt(e) {
578
+ function er(e) {
510
579
  return `/mcp-manifests/${e}.json`;
511
580
  }
512
- const Zt = () => /* @__PURE__ */ u.jsxs(
581
+ const tr = () => /* @__PURE__ */ u.jsxs(
513
582
  "div",
514
583
  {
515
584
  style: {
@@ -524,7 +593,7 @@ const Zt = () => /* @__PURE__ */ u.jsxs(
524
593
  /* @__PURE__ */ u.jsx("h1", { className: "text-6xl font-bold text-[var(--local-text)] mb-4", children: "404" }),
525
594
  /* @__PURE__ */ u.jsx("p", { className: "text-xl text-[var(--local-text-muted)] mb-8", children: "Page not found" }),
526
595
  /* @__PURE__ */ u.jsx(
527
- At,
596
+ Ot,
528
597
  {
529
598
  to: "/",
530
599
  className: "inline-flex items-center gap-2 px-6 py-3 rounded-[var(--local-radius-md)] bg-[var(--local-primary)] text-[var(--local-bg)] font-semibold text-sm hover:opacity-90 transition-opacity",
@@ -533,8 +602,8 @@ const Zt = () => /* @__PURE__ */ u.jsxs(
533
602
  )
534
603
  ]
535
604
  }
536
- ), at = Ae(void 0), Kt = ({ config: e, children: t }) => /* @__PURE__ */ u.jsx(
537
- at.Provider,
605
+ ), it = Oe(void 0), rr = ({ config: e, children: t }) => /* @__PURE__ */ u.jsx(
606
+ it.Provider,
538
607
  {
539
608
  value: {
540
609
  registry: e.registry,
@@ -547,83 +616,83 @@ const Zt = () => /* @__PURE__ */ u.jsxs(
547
616
  children: t
548
617
  }
549
618
  );
550
- function Qt() {
551
- const e = Re(at);
619
+ function or() {
620
+ const e = _e(it);
552
621
  if (e === void 0)
553
622
  throw new Error("useConfig must be used within ConfigProvider");
554
623
  return e;
555
624
  }
556
- const Oe = /* @__PURE__ */ new Set();
557
- function er(e) {
625
+ const ze = /* @__PURE__ */ new Set();
626
+ function nr(e) {
558
627
  return e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/[_\s]+/g, "-").toLowerCase();
559
628
  }
560
- function it(e, t = [], r = {}) {
561
- return Object.entries(e).forEach(([o, n]) => {
562
- const s = [...t, er(o)];
629
+ function lt(e, t = [], o = {}) {
630
+ return Object.entries(e).forEach(([r, n]) => {
631
+ const s = [...t, nr(r)];
563
632
  if (typeof n == "string" || typeof n == "number") {
564
- r[`--theme-${s.join("-")}`] = String(n);
633
+ o[`--theme-${s.join("-")}`] = String(n);
565
634
  return;
566
635
  }
567
- n && typeof n == "object" && !Array.isArray(n) && it(n, s, r);
568
- }), r;
636
+ n && typeof n == "object" && !Array.isArray(n) && lt(n, s, o);
637
+ }), o;
569
638
  }
570
- function U(e, t, r, o) {
571
- o && (e[t] = `var(${r})`);
639
+ function U(e, t, o, r) {
640
+ r && (e[t] = `var(${o})`);
572
641
  }
573
- function tr(e) {
574
- const t = it(e.tokens), r = { ...t };
575
- return U(r, "--theme-primary", "--theme-colors-primary", t["--theme-colors-primary"]), U(r, "--theme-secondary", "--theme-colors-secondary", t["--theme-colors-secondary"]), U(r, "--theme-accent", "--theme-colors-accent", t["--theme-colors-accent"]), U(r, "--theme-background", "--theme-colors-background", t["--theme-colors-background"]), U(r, "--theme-surface", "--theme-colors-surface", t["--theme-colors-surface"]), U(r, "--theme-surface-alt", "--theme-colors-surface-alt", t["--theme-colors-surface-alt"]), U(r, "--theme-text", "--theme-colors-text", t["--theme-colors-text"]), U(r, "--theme-text-muted", "--theme-colors-text-muted", t["--theme-colors-text-muted"]), U(r, "--theme-border", "--theme-colors-border", t["--theme-colors-border"]), U(
576
- r,
642
+ function sr(e) {
643
+ const t = lt(e.tokens), o = { ...t };
644
+ return U(o, "--theme-primary", "--theme-colors-primary", t["--theme-colors-primary"]), U(o, "--theme-secondary", "--theme-colors-secondary", t["--theme-colors-secondary"]), U(o, "--theme-accent", "--theme-colors-accent", t["--theme-colors-accent"]), U(o, "--theme-background", "--theme-colors-background", t["--theme-colors-background"]), U(o, "--theme-surface", "--theme-colors-surface", t["--theme-colors-surface"]), U(o, "--theme-surface-alt", "--theme-colors-surface-alt", t["--theme-colors-surface-alt"]), U(o, "--theme-text", "--theme-colors-text", t["--theme-colors-text"]), U(o, "--theme-text-muted", "--theme-colors-text-muted", t["--theme-colors-text-muted"]), U(o, "--theme-border", "--theme-colors-border", t["--theme-colors-border"]), U(
645
+ o,
577
646
  "--theme-font-primary",
578
647
  "--theme-typography-font-family-primary",
579
648
  t["--theme-typography-font-family-primary"]
580
649
  ), U(
581
- r,
650
+ o,
582
651
  "--theme-font-mono",
583
652
  "--theme-typography-font-family-mono",
584
653
  t["--theme-typography-font-family-mono"]
585
654
  ), U(
586
- r,
655
+ o,
587
656
  "--theme-font-display",
588
657
  "--theme-typography-font-family-display",
589
658
  t["--theme-typography-font-family-display"]
590
- ), U(r, "--theme-radius-sm", "--theme-border-radius-sm", t["--theme-border-radius-sm"]), U(r, "--theme-radius-md", "--theme-border-radius-md", t["--theme-border-radius-md"]), U(r, "--theme-radius-lg", "--theme-border-radius-lg", t["--theme-border-radius-lg"]), r;
659
+ ), U(o, "--theme-radius-sm", "--theme-border-radius-sm", t["--theme-border-radius-sm"]), U(o, "--theme-radius-md", "--theme-border-radius-md", t["--theme-border-radius-md"]), U(o, "--theme-radius-lg", "--theme-border-radius-lg", t["--theme-border-radius-lg"]), o;
591
660
  }
592
- const lt = {
661
+ const ct = {
593
662
  setTheme: (e) => {
594
- const t = document.documentElement, r = tr(e);
595
- Oe.forEach((o) => {
596
- t.style.removeProperty(o);
597
- }), Oe.clear(), Object.entries(r).forEach(([o, n]) => {
598
- t.style.setProperty(o, n), Oe.add(o);
663
+ const t = document.documentElement, o = sr(e);
664
+ ze.forEach((r) => {
665
+ t.style.removeProperty(r);
666
+ }), ze.clear(), Object.entries(o).forEach(([r, n]) => {
667
+ t.style.setProperty(r, n), ze.add(r);
599
668
  });
600
669
  }
601
- }, rr = /^[a-zA-Z][a-zA-Z\d+\-.]*:/;
602
- function Ie(e) {
670
+ }, ar = /^[a-zA-Z][a-zA-Z\d+\-.]*:/;
671
+ function $e(e) {
603
672
  const t = typeof e == "string" ? e.trim() : "";
604
673
  if (!t || t === "/") return "/";
605
- const o = (t.startsWith("/") ? t : `/${t}`).replace(/\/+$/, "");
606
- return o.length > 0 ? `${o}/` : "/";
674
+ const r = (t.startsWith("/") ? t : `/${t}`).replace(/\/+$/, "");
675
+ return r.length > 0 ? `${r}/` : "/";
607
676
  }
608
- function ke(e, t) {
609
- const r = e.trim();
610
- if (!r) return Ie(t);
611
- if (rr.test(r) || r.startsWith("#")) return r;
612
- const o = Ie(t), n = r.startsWith("/") ? r : `/${r}`;
613
- if (o === "/") return n;
677
+ function Se(e, t) {
678
+ const o = e.trim();
679
+ if (!o) return $e(t);
680
+ if (ar.test(o) || o.startsWith("#")) return o;
681
+ const r = $e(t), n = o.startsWith("/") ? o : `/${o}`;
682
+ if (r === "/") return n;
614
683
  const s = n.replace(/^\/+/, "");
615
- return `${o}${s}`;
684
+ return `${r}${s}`;
616
685
  }
617
- const ct = Ae({}), Ro = () => Re(ct);
618
- class or extends rt {
686
+ const dt = Oe({}), Po = () => _e(dt);
687
+ class ir extends ot {
619
688
  constructor(t) {
620
689
  super(t), this.state = { hasError: !1, error: null };
621
690
  }
622
691
  static getDerivedStateFromError(t) {
623
692
  return { hasError: !0, error: t };
624
693
  }
625
- componentDidCatch(t, r) {
626
- console.error("[JsonPages Engine]", t, r);
694
+ componentDidCatch(t, o) {
695
+ console.error("[JsonPages Engine]", t, o);
627
696
  }
628
697
  render() {
629
698
  return this.state.hasError && this.state.error ? /* @__PURE__ */ u.jsxs(
@@ -662,105 +731,113 @@ class or extends rt {
662
731
  ) : this.props.children;
663
732
  }
664
733
  }
665
- function nr() {
734
+ function lr() {
666
735
  return /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
667
- /* @__PURE__ */ u.jsx(zt, {}),
668
- /* @__PURE__ */ u.jsx(Nt, {})
736
+ /* @__PURE__ */ u.jsx(It, {}),
737
+ /* @__PURE__ */ u.jsx($t, {})
669
738
  ] });
670
739
  }
671
- function sr({ config: e, routesBuilder: t, adminCss: r = "" }) {
672
- var d, S, J, Y, V, X, Z;
740
+ function cr({ config: e, routesBuilder: t, adminCss: o = "" }) {
741
+ var J, Y, V, X, K, G, B;
673
742
  const {
674
- registry: o = {},
743
+ registry: r = {},
675
744
  schemas: n = {},
676
745
  basePath: s = "/",
677
746
  pages: a = {},
678
747
  siteConfig: c,
679
748
  themeConfig: l,
680
- menuConfig: m,
749
+ menuConfig: d,
750
+ collections: g,
751
+ collectionSchemas: h,
681
752
  refDocuments: b,
682
- themeCss: h,
683
- addSection: y,
684
- NotFoundComponent: w = Zt
685
- } = e, A = (y == null ? void 0 : y.addableSectionTypes) ?? Object.keys(n).filter((D) => D !== "header" && D !== "footer"), j = {
686
- saveToFile: (d = e.persistence) == null ? void 0 : d.saveToFile,
687
- hotSave: (S = e.persistence) == null ? void 0 : S.hotSave,
688
- coldSave: (J = e.persistence) == null ? void 0 : J.coldSave,
689
- showLocalSave: ((Y = e.persistence) == null ? void 0 : Y.showLocalSave) ?? !0,
690
- showHotSave: ((V = e.persistence) == null ? void 0 : V.showHotSave) ?? !1,
691
- showColdSave: ((X = e.persistence) == null ? void 0 : X.showColdSave) ?? !1
692
- }, C = typeof (h == null ? void 0 : h.tenant) == "string" ? h.tenant : "", F = typeof (h == null ? void 0 : h.admin) == "string" ? h.admin : r, W = ze(
693
- () => st({
753
+ themeCss: v,
754
+ addSection: S,
755
+ NotFoundComponent: C = tr
756
+ } = e, E = (S == null ? void 0 : S.addableSectionTypes) ?? Object.keys(n).filter((F) => F !== "header" && F !== "footer"), R = {
757
+ saveToFile: (J = e.persistence) == null ? void 0 : J.saveToFile,
758
+ hotSave: (Y = e.persistence) == null ? void 0 : Y.hotSave,
759
+ coldSave: (V = e.persistence) == null ? void 0 : V.coldSave,
760
+ showLocalSave: ((X = e.persistence) == null ? void 0 : X.showLocalSave) ?? !0,
761
+ showHotSave: ((K = e.persistence) == null ? void 0 : K.showHotSave) ?? !1,
762
+ showColdSave: ((G = e.persistence) == null ? void 0 : G.showColdSave) ?? !1
763
+ }, W = typeof (v == null ? void 0 : v.tenant) == "string" ? v.tenant : "", k = typeof (v == null ? void 0 : v.admin) == "string" ? v.admin : o, T = fe(
764
+ () => De({
694
765
  pages: a,
695
766
  siteConfig: c,
696
767
  themeConfig: l,
697
- menuConfig: m,
768
+ menuConfig: d,
769
+ collections: g,
770
+ collectionSchemas: h,
698
771
  refDocuments: b
699
772
  }),
700
- [a, c, l, m, b]
701
- ), [E, O] = ot(!1), k = Ie(s);
702
- oe(() => {
703
- var D, B;
773
+ [a, c, l, d, g, h, b]
774
+ ), [j, _] = nt(!1), $ = $e(s);
775
+ se(() => {
776
+ var F, q;
704
777
  try {
705
- (D = W.themeConfig) != null && D.tokens && lt.setTheme(W.themeConfig);
706
- } catch (G) {
707
- console.warn("[JsonPages] setTheme failed", G);
778
+ (F = T.themeConfig) != null && F.tokens && ct.setTheme(T.themeConfig);
779
+ } catch (Q) {
780
+ console.warn("[JsonPages] setTheme failed", Q);
708
781
  }
709
- (B = e.webmcp) != null && B.enabled && Ht(), O(!0);
710
- }, [W.themeConfig, (Z = e.webmcp) == null ? void 0 : Z.enabled]);
711
- const T = {
712
- registry: o,
782
+ (q = e.webmcp) != null && q.enabled && Kt(), _(!0);
783
+ }, [T.themeConfig, (B = e.webmcp) == null ? void 0 : B.enabled]);
784
+ const m = {
785
+ registry: r,
713
786
  schemas: n,
714
787
  pageRegistry: a,
715
788
  siteConfig: c,
716
- menuConfig: m,
717
- themeConfig: W.themeConfig,
789
+ menuConfig: d,
790
+ themeConfig: T.themeConfig,
791
+ collections: g,
792
+ collectionSchemas: h,
718
793
  refDocuments: b,
719
- addSectionConfig: y,
720
- addableSectionTypes: A,
794
+ addSectionConfig: S,
795
+ addableSectionTypes: E,
721
796
  webmcp: e.webmcp,
722
- persistence: j,
723
- routerBasePath: k,
724
- tenantCss: C,
725
- adminCss: F,
726
- NotFoundComponent: w
727
- }, M = ze(() => {
728
- const D = _t(t(T));
729
- return Ot(D, { basename: k });
797
+ persistence: R,
798
+ routerBasePath: $,
799
+ tenantCss: W,
800
+ adminCss: k,
801
+ NotFoundComponent: C
802
+ }, A = fe(() => {
803
+ const F = Pt(t(m));
804
+ return zt(F, { basename: $ });
730
805
  }, [
731
- w,
732
- y,
733
- A,
734
- F,
735
- W.themeConfig,
736
- m,
806
+ C,
807
+ S,
808
+ E,
809
+ k,
810
+ T.themeConfig,
811
+ d,
812
+ g,
813
+ h,
737
814
  a,
738
- j.coldSave,
739
- j.hotSave,
740
- j.saveToFile,
741
- j.showColdSave,
742
- j.showHotSave,
743
- j.showLocalSave,
815
+ R.coldSave,
816
+ R.hotSave,
817
+ R.saveToFile,
818
+ R.showColdSave,
819
+ R.showHotSave,
820
+ R.showLocalSave,
744
821
  b,
745
- k,
822
+ $,
746
823
  n,
747
824
  c,
748
- C,
825
+ W,
749
826
  e.webmcp,
750
827
  t
751
828
  ]);
752
- return E ? /* @__PURE__ */ u.jsx(or, { children: /* @__PURE__ */ u.jsx(ct.Provider, { value: e.iconRegistry ?? {}, children: /* @__PURE__ */ u.jsx(
753
- Kt,
829
+ return j ? /* @__PURE__ */ u.jsx(ir, { children: /* @__PURE__ */ u.jsx(dt.Provider, { value: e.iconRegistry ?? {}, children: /* @__PURE__ */ u.jsx(
830
+ rr,
754
831
  {
755
832
  config: {
756
- registry: o,
833
+ registry: r,
757
834
  schemas: n,
758
835
  tenantId: e.tenantId ?? "default",
759
- basePath: k,
836
+ basePath: $,
760
837
  assets: e.assets,
761
838
  overlayDisabledSectionTypes: e.overlayDisabledSectionTypes
762
839
  },
763
- children: /* @__PURE__ */ u.jsx(Pt, { router: M })
840
+ children: /* @__PURE__ */ u.jsx(Nt, { router: A })
764
841
  }
765
842
  ) }) }) : /* @__PURE__ */ u.jsx(
766
843
  "div",
@@ -779,23 +856,23 @@ function sr({ config: e, routesBuilder: t, adminCss: r = "" }) {
779
856
  }
780
857
  );
781
858
  }
782
- const dt = Ae(void 0), ar = ({ mode: e, children: t }) => (oe(() => {
859
+ const ut = Oe(void 0), dr = ({ mode: e, children: t }) => (se(() => {
783
860
  if (e !== "studio") return;
784
- const r = new MutationObserver((o) => {
785
- o.forEach((n) => {
861
+ const o = new MutationObserver((r) => {
862
+ r.forEach((n) => {
786
863
  n.addedNodes.forEach((s) => {
787
864
  s instanceof HTMLElement && s.hasAttribute("data-radix-portal") && s.setAttribute("data-jp-studio-portal", "true");
788
865
  });
789
866
  });
790
867
  });
791
- return r.observe(document.body, { childList: !0 }), () => r.disconnect();
792
- }, [e]), /* @__PURE__ */ u.jsx(dt.Provider, { value: { mode: e }, children: t })), ir = () => {
793
- const e = Re(dt);
868
+ return o.observe(document.body, { childList: !0 }), () => o.disconnect();
869
+ }, [e]), /* @__PURE__ */ u.jsx(ut.Provider, { value: { mode: e }, children: t })), ur = () => {
870
+ const e = _e(ut);
794
871
  if (e === void 0)
795
872
  throw new Error("useStudio must be used within a StudioProvider");
796
873
  return e;
797
874
  };
798
- function lr(e, t) {
875
+ function mr(e, t) {
799
876
  return t.header != null && e["global-header"] !== !1;
800
877
  }
801
878
  /**
@@ -804,14 +881,14 @@ function lr(e, t) {
804
881
  * This source code is licensed under the ISC license.
805
882
  * See the LICENSE file in the root directory of this source tree.
806
883
  */
807
- const cr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), ut = (...e) => e.filter((t, r, o) => !!t && t.trim() !== "" && o.indexOf(t) === r).join(" ").trim();
884
+ const fr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), mt = (...e) => e.filter((t, o, r) => !!t && t.trim() !== "" && r.indexOf(t) === o).join(" ").trim();
808
885
  /**
809
886
  * @license lucide-react v0.474.0 - ISC
810
887
  *
811
888
  * This source code is licensed under the ISC license.
812
889
  * See the LICENSE file in the root directory of this source tree.
813
890
  */
814
- var dr = {
891
+ var pr = {
815
892
  xmlns: "http://www.w3.org/2000/svg",
816
893
  width: 24,
817
894
  height: 24,
@@ -828,30 +905,30 @@ var dr = {
828
905
  * This source code is licensed under the ISC license.
829
906
  * See the LICENSE file in the root directory of this source tree.
830
907
  */
831
- const ur = nt(
908
+ const gr = st(
832
909
  ({
833
910
  color: e = "currentColor",
834
911
  size: t = 24,
835
- strokeWidth: r = 2,
836
- absoluteStrokeWidth: o,
912
+ strokeWidth: o = 2,
913
+ absoluteStrokeWidth: r,
837
914
  className: n = "",
838
915
  children: s,
839
916
  iconNode: a,
840
917
  ...c
841
- }, l) => Ne(
918
+ }, l) => Ie(
842
919
  "svg",
843
920
  {
844
921
  ref: l,
845
- ...dr,
922
+ ...pr,
846
923
  width: t,
847
924
  height: t,
848
925
  stroke: e,
849
- strokeWidth: o ? Number(r) * 24 / Number(t) : r,
850
- className: ut("lucide", n),
926
+ strokeWidth: r ? Number(o) * 24 / Number(t) : o,
927
+ className: mt("lucide", n),
851
928
  ...c
852
929
  },
853
930
  [
854
- ...a.map(([m, b]) => Ne(m, b)),
931
+ ...a.map(([d, g]) => Ie(d, g)),
855
932
  ...Array.isArray(s) ? s : [s]
856
933
  ]
857
934
  )
@@ -862,16 +939,16 @@ const ur = nt(
862
939
  * This source code is licensed under the ISC license.
863
940
  * See the LICENSE file in the root directory of this source tree.
864
941
  */
865
- const De = (e, t) => {
866
- const r = nt(
867
- ({ className: o, ...n }, s) => Ne(ur, {
942
+ const Fe = (e, t) => {
943
+ const o = st(
944
+ ({ className: r, ...n }, s) => Ie(gr, {
868
945
  ref: s,
869
946
  iconNode: t,
870
- className: ut(`lucide-${cr(e)}`, o),
947
+ className: mt(`lucide-${fr(e)}`, r),
871
948
  ...n
872
949
  })
873
950
  );
874
- return r.displayName = `${e}`, r;
951
+ return o.displayName = `${e}`, o;
875
952
  };
876
953
  /**
877
954
  * @license lucide-react v0.474.0 - ISC
@@ -879,21 +956,21 @@ const De = (e, t) => {
879
956
  * This source code is licensed under the ISC license.
880
957
  * See the LICENSE file in the root directory of this source tree.
881
958
  */
882
- const mr = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], fr = De("ChevronDown", mr);
959
+ const hr = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], br = Fe("ChevronDown", hr);
883
960
  /**
884
961
  * @license lucide-react v0.474.0 - ISC
885
962
  *
886
963
  * This source code is licensed under the ISC license.
887
964
  * See the LICENSE file in the root directory of this source tree.
888
965
  */
889
- const pr = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], br = De("ChevronUp", pr);
966
+ const yr = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], vr = Fe("ChevronUp", yr);
890
967
  /**
891
968
  * @license lucide-react v0.474.0 - ISC
892
969
  *
893
970
  * This source code is licensed under the ISC license.
894
971
  * See the LICENSE file in the root directory of this source tree.
895
972
  */
896
- const hr = [
973
+ const xr = [
897
974
  [
898
975
  "path",
899
976
  {
@@ -903,128 +980,128 @@ const hr = [
903
980
  ],
904
981
  ["path", { d: "M12 9v4", key: "juzpu7" }],
905
982
  ["path", { d: "M12 17h.01", key: "p32p05" }]
906
- ], gr = De("TriangleAlert", hr);
907
- function mt(e) {
908
- var t, r, o = "";
909
- if (typeof e == "string" || typeof e == "number") o += e;
983
+ ], wr = Fe("TriangleAlert", xr);
984
+ function ft(e) {
985
+ var t, o, r = "";
986
+ if (typeof e == "string" || typeof e == "number") r += e;
910
987
  else if (typeof e == "object") if (Array.isArray(e)) {
911
988
  var n = e.length;
912
- for (t = 0; t < n; t++) e[t] && (r = mt(e[t])) && (o && (o += " "), o += r);
913
- } else for (r in e) e[r] && (o && (o += " "), o += r);
914
- return o;
915
- }
916
- function yr() {
917
- for (var e, t, r = 0, o = "", n = arguments.length; r < n; r++) (e = arguments[r]) && (t = mt(e)) && (o && (o += " "), o += t);
918
- return o;
989
+ for (t = 0; t < n; t++) e[t] && (o = ft(e[t])) && (r && (r += " "), r += o);
990
+ } else for (o in e) e[o] && (r && (r += " "), r += o);
991
+ return r;
919
992
  }
920
- const xr = (e, t) => {
921
- const r = new Array(e.length + t.length);
922
- for (let o = 0; o < e.length; o++)
923
- r[o] = e[o];
924
- for (let o = 0; o < t.length; o++)
925
- r[e.length + o] = t[o];
993
+ function kr() {
994
+ for (var e, t, o = 0, r = "", n = arguments.length; o < n; o++) (e = arguments[o]) && (t = ft(e)) && (r && (r += " "), r += t);
926
995
  return r;
927
- }, vr = (e, t) => ({
996
+ }
997
+ const jr = (e, t) => {
998
+ const o = new Array(e.length + t.length);
999
+ for (let r = 0; r < e.length; r++)
1000
+ o[r] = e[r];
1001
+ for (let r = 0; r < t.length; r++)
1002
+ o[e.length + r] = t[r];
1003
+ return o;
1004
+ }, Sr = (e, t) => ({
928
1005
  classGroupId: e,
929
1006
  validator: t
930
- }), ft = (e = /* @__PURE__ */ new Map(), t = null, r) => ({
1007
+ }), pt = (e = /* @__PURE__ */ new Map(), t = null, o) => ({
931
1008
  nextPart: e,
932
1009
  validators: t,
933
- classGroupId: r
934
- }), Te = "-", He = [], wr = "arbitrary..", kr = (e) => {
935
- const t = Er(e), {
936
- conflictingClassGroups: r,
937
- conflictingClassGroupModifiers: o
1010
+ classGroupId: o
1011
+ }), Ae = "-", He = [], Cr = "arbitrary..", Er = (e) => {
1012
+ const t = Rr(e), {
1013
+ conflictingClassGroups: o,
1014
+ conflictingClassGroupModifiers: r
938
1015
  } = e;
939
1016
  return {
940
1017
  getClassGroupId: (a) => {
941
1018
  if (a.startsWith("[") && a.endsWith("]"))
942
- return jr(a);
943
- const c = a.split(Te), l = c[0] === "" && c.length > 1 ? 1 : 0;
944
- return pt(c, l, t);
1019
+ return Tr(a);
1020
+ const c = a.split(Ae), l = c[0] === "" && c.length > 1 ? 1 : 0;
1021
+ return gt(c, l, t);
945
1022
  },
946
1023
  getConflictingClassGroupIds: (a, c) => {
947
1024
  if (c) {
948
- const l = o[a], m = r[a];
949
- return l ? m ? xr(m, l) : l : m || He;
1025
+ const l = r[a], d = o[a];
1026
+ return l ? d ? jr(d, l) : l : d || He;
950
1027
  }
951
- return r[a] || He;
1028
+ return o[a] || He;
952
1029
  }
953
1030
  };
954
- }, pt = (e, t, r) => {
1031
+ }, gt = (e, t, o) => {
955
1032
  if (e.length - t === 0)
956
- return r.classGroupId;
957
- const n = e[t], s = r.nextPart.get(n);
1033
+ return o.classGroupId;
1034
+ const n = e[t], s = o.nextPart.get(n);
958
1035
  if (s) {
959
- const m = pt(e, t + 1, s);
960
- if (m) return m;
1036
+ const d = gt(e, t + 1, s);
1037
+ if (d) return d;
961
1038
  }
962
- const a = r.validators;
1039
+ const a = o.validators;
963
1040
  if (a === null)
964
1041
  return;
965
- const c = t === 0 ? e.join(Te) : e.slice(t).join(Te), l = a.length;
966
- for (let m = 0; m < l; m++) {
967
- const b = a[m];
968
- if (b.validator(c))
969
- return b.classGroupId;
1042
+ const c = t === 0 ? e.join(Ae) : e.slice(t).join(Ae), l = a.length;
1043
+ for (let d = 0; d < l; d++) {
1044
+ const g = a[d];
1045
+ if (g.validator(c))
1046
+ return g.classGroupId;
970
1047
  }
971
- }, jr = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
972
- const t = e.slice(1, -1), r = t.indexOf(":"), o = t.slice(0, r);
973
- return o ? wr + o : void 0;
974
- })(), Er = (e) => {
1048
+ }, Tr = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
1049
+ const t = e.slice(1, -1), o = t.indexOf(":"), r = t.slice(0, o);
1050
+ return r ? Cr + r : void 0;
1051
+ })(), Rr = (e) => {
975
1052
  const {
976
1053
  theme: t,
977
- classGroups: r
1054
+ classGroups: o
978
1055
  } = e;
979
- return Sr(r, t);
980
- }, Sr = (e, t) => {
981
- const r = ft();
982
- for (const o in e) {
983
- const n = e[o];
984
- Fe(n, r, o, t);
1056
+ return Ar(o, t);
1057
+ }, Ar = (e, t) => {
1058
+ const o = pt();
1059
+ for (const r in e) {
1060
+ const n = e[r];
1061
+ We(n, o, r, t);
985
1062
  }
986
- return r;
987
- }, Fe = (e, t, r, o) => {
1063
+ return o;
1064
+ }, We = (e, t, o, r) => {
988
1065
  const n = e.length;
989
1066
  for (let s = 0; s < n; s++) {
990
1067
  const a = e[s];
991
- Cr(a, t, r, o);
1068
+ _r(a, t, o, r);
992
1069
  }
993
- }, Cr = (e, t, r, o) => {
1070
+ }, _r = (e, t, o, r) => {
994
1071
  if (typeof e == "string") {
995
- Tr(e, t, r);
1072
+ Or(e, t, o);
996
1073
  return;
997
1074
  }
998
1075
  if (typeof e == "function") {
999
- Rr(e, t, r, o);
1076
+ Pr(e, t, o, r);
1000
1077
  return;
1001
1078
  }
1002
- Ar(e, t, r, o);
1003
- }, Tr = (e, t, r) => {
1004
- const o = e === "" ? t : bt(t, e);
1005
- o.classGroupId = r;
1006
- }, Rr = (e, t, r, o) => {
1007
- if (_r(e)) {
1008
- Fe(e(o), t, r, o);
1079
+ zr(e, t, o, r);
1080
+ }, Or = (e, t, o) => {
1081
+ const r = e === "" ? t : ht(t, e);
1082
+ r.classGroupId = o;
1083
+ }, Pr = (e, t, o, r) => {
1084
+ if (Nr(e)) {
1085
+ We(e(r), t, o, r);
1009
1086
  return;
1010
1087
  }
1011
- t.validators === null && (t.validators = []), t.validators.push(vr(r, e));
1012
- }, Ar = (e, t, r, o) => {
1088
+ t.validators === null && (t.validators = []), t.validators.push(Sr(o, e));
1089
+ }, zr = (e, t, o, r) => {
1013
1090
  const n = Object.entries(e), s = n.length;
1014
1091
  for (let a = 0; a < s; a++) {
1015
1092
  const [c, l] = n[a];
1016
- Fe(l, bt(t, c), r, o);
1093
+ We(l, ht(t, c), o, r);
1017
1094
  }
1018
- }, bt = (e, t) => {
1019
- let r = e;
1020
- const o = t.split(Te), n = o.length;
1095
+ }, ht = (e, t) => {
1096
+ let o = e;
1097
+ const r = t.split(Ae), n = r.length;
1021
1098
  for (let s = 0; s < n; s++) {
1022
- const a = o[s];
1023
- let c = r.nextPart.get(a);
1024
- c || (c = ft(), r.nextPart.set(a, c)), r = c;
1099
+ const a = r[s];
1100
+ let c = o.nextPart.get(a);
1101
+ c || (c = pt(), o.nextPart.set(a, c)), o = c;
1025
1102
  }
1026
- return r;
1027
- }, _r = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Or = (e) => {
1103
+ return o;
1104
+ }, Nr = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Ir = (e) => {
1028
1105
  if (e < 1)
1029
1106
  return {
1030
1107
  get: () => {
@@ -1032,178 +1109,178 @@ const xr = (e, t) => {
1032
1109
  set: () => {
1033
1110
  }
1034
1111
  };
1035
- let t = 0, r = /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
1112
+ let t = 0, o = /* @__PURE__ */ Object.create(null), r = /* @__PURE__ */ Object.create(null);
1036
1113
  const n = (s, a) => {
1037
- r[s] = a, t++, t > e && (t = 0, o = r, r = /* @__PURE__ */ Object.create(null));
1114
+ o[s] = a, t++, t > e && (t = 0, r = o, o = /* @__PURE__ */ Object.create(null));
1038
1115
  };
1039
1116
  return {
1040
1117
  get(s) {
1041
- let a = r[s];
1118
+ let a = o[s];
1042
1119
  if (a !== void 0)
1043
1120
  return a;
1044
- if ((a = o[s]) !== void 0)
1121
+ if ((a = r[s]) !== void 0)
1045
1122
  return n(s, a), a;
1046
1123
  },
1047
1124
  set(s, a) {
1048
- s in r ? r[s] = a : n(s, a);
1125
+ s in o ? o[s] = a : n(s, a);
1049
1126
  }
1050
1127
  };
1051
- }, $e = "!", qe = ":", Pr = [], Xe = (e, t, r, o, n) => ({
1128
+ }, Me = "!", Ze = ":", $r = [], Xe = (e, t, o, r, n) => ({
1052
1129
  modifiers: e,
1053
1130
  hasImportantModifier: t,
1054
- baseClassName: r,
1055
- maybePostfixModifierPosition: o,
1131
+ baseClassName: o,
1132
+ maybePostfixModifierPosition: r,
1056
1133
  isExternal: n
1057
- }), zr = (e) => {
1134
+ }), Mr = (e) => {
1058
1135
  const {
1059
1136
  prefix: t,
1060
- experimentalParseClassName: r
1137
+ experimentalParseClassName: o
1061
1138
  } = e;
1062
- let o = (n) => {
1139
+ let r = (n) => {
1063
1140
  const s = [];
1064
- let a = 0, c = 0, l = 0, m;
1065
- const b = n.length;
1066
- for (let j = 0; j < b; j++) {
1067
- const C = n[j];
1141
+ let a = 0, c = 0, l = 0, d;
1142
+ const g = n.length;
1143
+ for (let C = 0; C < g; C++) {
1144
+ const E = n[C];
1068
1145
  if (a === 0 && c === 0) {
1069
- if (C === qe) {
1070
- s.push(n.slice(l, j)), l = j + 1;
1146
+ if (E === Ze) {
1147
+ s.push(n.slice(l, C)), l = C + 1;
1071
1148
  continue;
1072
1149
  }
1073
- if (C === "/") {
1074
- m = j;
1150
+ if (E === "/") {
1151
+ d = C;
1075
1152
  continue;
1076
1153
  }
1077
1154
  }
1078
- C === "[" ? a++ : C === "]" ? a-- : C === "(" ? c++ : C === ")" && c--;
1155
+ E === "[" ? a++ : E === "]" ? a-- : E === "(" ? c++ : E === ")" && c--;
1079
1156
  }
1080
1157
  const h = s.length === 0 ? n : n.slice(l);
1081
- let y = h, w = !1;
1082
- h.endsWith($e) ? (y = h.slice(0, -1), w = !0) : (
1158
+ let b = h, v = !1;
1159
+ h.endsWith(Me) ? (b = h.slice(0, -1), v = !0) : (
1083
1160
  /**
1084
1161
  * In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
1085
1162
  * @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
1086
1163
  */
1087
- h.startsWith($e) && (y = h.slice(1), w = !0)
1164
+ h.startsWith(Me) && (b = h.slice(1), v = !0)
1088
1165
  );
1089
- const A = m && m > l ? m - l : void 0;
1090
- return Xe(s, w, y, A);
1166
+ const S = d && d > l ? d - l : void 0;
1167
+ return Xe(s, v, b, S);
1091
1168
  };
1092
1169
  if (t) {
1093
- const n = t + qe, s = o;
1094
- o = (a) => a.startsWith(n) ? s(a.slice(n.length)) : Xe(Pr, !1, a, void 0, !0);
1170
+ const n = t + Ze, s = r;
1171
+ r = (a) => a.startsWith(n) ? s(a.slice(n.length)) : Xe($r, !1, a, void 0, !0);
1095
1172
  }
1096
- if (r) {
1097
- const n = o;
1098
- o = (s) => r({
1173
+ if (o) {
1174
+ const n = r;
1175
+ r = (s) => o({
1099
1176
  className: s,
1100
1177
  parseClassName: n
1101
1178
  });
1102
1179
  }
1103
- return o;
1104
- }, Nr = (e) => {
1180
+ return r;
1181
+ }, Lr = (e) => {
1105
1182
  const t = /* @__PURE__ */ new Map();
1106
- return e.orderSensitiveModifiers.forEach((r, o) => {
1107
- t.set(r, 1e6 + o);
1108
- }), (r) => {
1109
- const o = [];
1183
+ return e.orderSensitiveModifiers.forEach((o, r) => {
1184
+ t.set(o, 1e6 + r);
1185
+ }), (o) => {
1186
+ const r = [];
1110
1187
  let n = [];
1111
- for (let s = 0; s < r.length; s++) {
1112
- const a = r[s], c = a[0] === "[", l = t.has(a);
1113
- c || l ? (n.length > 0 && (n.sort(), o.push(...n), n = []), o.push(a)) : n.push(a);
1188
+ for (let s = 0; s < o.length; s++) {
1189
+ const a = o[s], c = a[0] === "[", l = t.has(a);
1190
+ c || l ? (n.length > 0 && (n.sort(), r.push(...n), n = []), r.push(a)) : n.push(a);
1114
1191
  }
1115
- return n.length > 0 && (n.sort(), o.push(...n)), o;
1192
+ return n.length > 0 && (n.sort(), r.push(...n)), r;
1116
1193
  };
1117
- }, Ir = (e) => ({
1118
- cache: Or(e.cacheSize),
1119
- parseClassName: zr(e),
1120
- sortModifiers: Nr(e),
1121
- ...kr(e)
1122
- }), $r = /\s+/, Lr = (e, t) => {
1194
+ }, Dr = (e) => ({
1195
+ cache: Ir(e.cacheSize),
1196
+ parseClassName: Mr(e),
1197
+ sortModifiers: Lr(e),
1198
+ ...Er(e)
1199
+ }), Fr = /\s+/, Wr = (e, t) => {
1123
1200
  const {
1124
- parseClassName: r,
1125
- getClassGroupId: o,
1201
+ parseClassName: o,
1202
+ getClassGroupId: r,
1126
1203
  getConflictingClassGroupIds: n,
1127
1204
  sortModifiers: s
1128
- } = t, a = [], c = e.trim().split($r);
1205
+ } = t, a = [], c = e.trim().split(Fr);
1129
1206
  let l = "";
1130
- for (let m = c.length - 1; m >= 0; m -= 1) {
1131
- const b = c[m], {
1207
+ for (let d = c.length - 1; d >= 0; d -= 1) {
1208
+ const g = c[d], {
1132
1209
  isExternal: h,
1133
- modifiers: y,
1134
- hasImportantModifier: w,
1135
- baseClassName: A,
1136
- maybePostfixModifierPosition: j
1137
- } = r(b);
1210
+ modifiers: b,
1211
+ hasImportantModifier: v,
1212
+ baseClassName: S,
1213
+ maybePostfixModifierPosition: C
1214
+ } = o(g);
1138
1215
  if (h) {
1139
- l = b + (l.length > 0 ? " " + l : l);
1216
+ l = g + (l.length > 0 ? " " + l : l);
1140
1217
  continue;
1141
1218
  }
1142
- let C = !!j, F = o(C ? A.substring(0, j) : A);
1143
- if (!F) {
1144
- if (!C) {
1145
- l = b + (l.length > 0 ? " " + l : l);
1219
+ let E = !!C, R = r(E ? S.substring(0, C) : S);
1220
+ if (!R) {
1221
+ if (!E) {
1222
+ l = g + (l.length > 0 ? " " + l : l);
1146
1223
  continue;
1147
1224
  }
1148
- if (F = o(A), !F) {
1149
- l = b + (l.length > 0 ? " " + l : l);
1225
+ if (R = r(S), !R) {
1226
+ l = g + (l.length > 0 ? " " + l : l);
1150
1227
  continue;
1151
1228
  }
1152
- C = !1;
1229
+ E = !1;
1153
1230
  }
1154
- const W = y.length === 0 ? "" : y.length === 1 ? y[0] : s(y).join(":"), E = w ? W + $e : W, O = E + F;
1155
- if (a.indexOf(O) > -1)
1231
+ const W = b.length === 0 ? "" : b.length === 1 ? b[0] : s(b).join(":"), k = v ? W + Me : W, T = k + R;
1232
+ if (a.indexOf(T) > -1)
1156
1233
  continue;
1157
- a.push(O);
1158
- const k = n(F, C);
1159
- for (let T = 0; T < k.length; ++T) {
1160
- const M = k[T];
1161
- a.push(E + M);
1234
+ a.push(T);
1235
+ const j = n(R, E);
1236
+ for (let _ = 0; _ < j.length; ++_) {
1237
+ const $ = j[_];
1238
+ a.push(k + $);
1162
1239
  }
1163
- l = b + (l.length > 0 ? " " + l : l);
1240
+ l = g + (l.length > 0 ? " " + l : l);
1164
1241
  }
1165
1242
  return l;
1166
- }, Mr = (...e) => {
1167
- let t = 0, r, o, n = "";
1243
+ }, Br = (...e) => {
1244
+ let t = 0, o, r, n = "";
1168
1245
  for (; t < e.length; )
1169
- (r = e[t++]) && (o = ht(r)) && (n && (n += " "), n += o);
1246
+ (o = e[t++]) && (r = bt(o)) && (n && (n += " "), n += r);
1170
1247
  return n;
1171
- }, ht = (e) => {
1248
+ }, bt = (e) => {
1172
1249
  if (typeof e == "string")
1173
1250
  return e;
1174
- let t, r = "";
1175
- for (let o = 0; o < e.length; o++)
1176
- e[o] && (t = ht(e[o])) && (r && (r += " "), r += t);
1177
- return r;
1178
- }, Dr = (e, ...t) => {
1179
- let r, o, n, s;
1251
+ let t, o = "";
1252
+ for (let r = 0; r < e.length; r++)
1253
+ e[r] && (t = bt(e[r])) && (o && (o += " "), o += t);
1254
+ return o;
1255
+ }, Ur = (e, ...t) => {
1256
+ let o, r, n, s;
1180
1257
  const a = (l) => {
1181
- const m = t.reduce((b, h) => h(b), e());
1182
- return r = Ir(m), o = r.cache.get, n = r.cache.set, s = c, c(l);
1258
+ const d = t.reduce((g, h) => h(g), e());
1259
+ return o = Dr(d), r = o.cache.get, n = o.cache.set, s = c, c(l);
1183
1260
  }, c = (l) => {
1184
- const m = o(l);
1185
- if (m)
1186
- return m;
1187
- const b = Lr(l, r);
1188
- return n(l, b), b;
1261
+ const d = r(l);
1262
+ if (d)
1263
+ return d;
1264
+ const g = Wr(l, o);
1265
+ return n(l, g), g;
1189
1266
  };
1190
- return s = a, (...l) => s(Mr(...l));
1191
- }, Fr = [], L = (e) => {
1192
- const t = (r) => r[e] || Fr;
1267
+ return s = a, (...l) => s(Br(...l));
1268
+ }, Gr = [], D = (e) => {
1269
+ const t = (o) => o[e] || Gr;
1193
1270
  return t.isThemeGetter = !0, t;
1194
- }, gt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, yt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Wr = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Br = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ur = /\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$/, Gr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Vr = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Jr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, K = (e) => Wr.test(e), v = (e) => !!e && !Number.isNaN(Number(e)), Q = (e) => !!e && Number.isInteger(Number(e)), Pe = (e) => e.endsWith("%") && v(e.slice(0, -1)), q = (e) => Br.test(e), xt = () => !0, Yr = (e) => (
1271
+ }, yt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, vt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Vr = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Jr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Yr = /\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$/, qr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Hr = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Zr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ee = (e) => Vr.test(e), w = (e) => !!e && !Number.isNaN(Number(e)), te = (e) => !!e && Number.isInteger(Number(e)), Ne = (e) => e.endsWith("%") && w(e.slice(0, -1)), Z = (e) => Jr.test(e), xt = () => !0, Xr = (e) => (
1195
1272
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
1196
1273
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
1197
1274
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
1198
- Ur.test(e) && !Gr.test(e)
1199
- ), We = () => !1, Hr = (e) => Vr.test(e), qr = (e) => Jr.test(e), Xr = (e) => !f(e) && !p(e), Zr = (e) => ee(e, kt, We), f = (e) => gt.test(e), te = (e) => ee(e, jt, Yr), Ze = (e) => ee(e, so, v), Kr = (e) => ee(e, St, xt), Qr = (e) => ee(e, Et, We), Ke = (e) => ee(e, vt, We), eo = (e) => ee(e, wt, qr), je = (e) => ee(e, Ct, Hr), p = (e) => yt.test(e), ue = (e) => ne(e, jt), to = (e) => ne(e, Et), Qe = (e) => ne(e, vt), ro = (e) => ne(e, kt), oo = (e) => ne(e, wt), Ee = (e) => ne(e, Ct, !0), no = (e) => ne(e, St, !0), ee = (e, t, r) => {
1200
- const o = gt.exec(e);
1201
- return o ? o[1] ? t(o[1]) : r(o[2]) : !1;
1202
- }, ne = (e, t, r = !1) => {
1203
- const o = yt.exec(e);
1204
- return o ? o[1] ? t(o[1]) : r : !1;
1205
- }, vt = (e) => e === "position" || e === "percentage", wt = (e) => e === "image" || e === "url", kt = (e) => e === "length" || e === "size" || e === "bg-size", jt = (e) => e === "length", so = (e) => e === "number", Et = (e) => e === "family-name", St = (e) => e === "number" || e === "weight", Ct = (e) => e === "shadow", ao = () => {
1206
- const e = L("color"), t = L("font"), r = L("text"), o = L("font-weight"), n = L("tracking"), s = L("leading"), a = L("breakpoint"), c = L("container"), l = L("spacing"), m = L("radius"), b = L("shadow"), h = L("inset-shadow"), y = L("text-shadow"), w = L("drop-shadow"), A = L("blur"), j = L("perspective"), C = L("aspect"), F = L("ease"), W = L("animate"), E = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], O = () => [
1275
+ Yr.test(e) && !qr.test(e)
1276
+ ), Be = () => !1, Kr = (e) => Hr.test(e), Qr = (e) => Zr.test(e), eo = (e) => !f(e) && !p(e), to = (e) => re(e, jt, Be), f = (e) => yt.test(e), oe = (e) => re(e, St, Xr), Ke = (e) => re(e, co, w), ro = (e) => re(e, Et, xt), oo = (e) => re(e, Ct, Be), Qe = (e) => re(e, wt, Be), no = (e) => re(e, kt, Qr), Ce = (e) => re(e, Tt, Kr), p = (e) => vt.test(e), me = (e) => ie(e, St), so = (e) => ie(e, Ct), et = (e) => ie(e, wt), ao = (e) => ie(e, jt), io = (e) => ie(e, kt), Ee = (e) => ie(e, Tt, !0), lo = (e) => ie(e, Et, !0), re = (e, t, o) => {
1277
+ const r = yt.exec(e);
1278
+ return r ? r[1] ? t(r[1]) : o(r[2]) : !1;
1279
+ }, ie = (e, t, o = !1) => {
1280
+ const r = vt.exec(e);
1281
+ return r ? r[1] ? t(r[1]) : o : !1;
1282
+ }, wt = (e) => e === "position" || e === "percentage", kt = (e) => e === "image" || e === "url", jt = (e) => e === "length" || e === "size" || e === "bg-size", St = (e) => e === "length", co = (e) => e === "number", Ct = (e) => e === "family-name", Et = (e) => e === "number" || e === "weight", Tt = (e) => e === "shadow", uo = () => {
1283
+ const e = D("color"), t = D("font"), o = D("text"), r = D("font-weight"), n = D("tracking"), s = D("leading"), a = D("breakpoint"), c = D("container"), l = D("spacing"), d = D("radius"), g = D("shadow"), h = D("inset-shadow"), b = D("text-shadow"), v = D("drop-shadow"), S = D("blur"), C = D("perspective"), E = D("aspect"), R = D("ease"), W = D("animate"), k = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], T = () => [
1207
1284
  "center",
1208
1285
  "top",
1209
1286
  "bottom",
@@ -1221,51 +1298,51 @@ const xr = (e, t) => {
1221
1298
  "bottom-left",
1222
1299
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
1223
1300
  "left-bottom"
1224
- ], k = () => [...O(), p, f], T = () => ["auto", "hidden", "clip", "visible", "scroll"], M = () => ["auto", "contain", "none"], d = () => [p, f, l], S = () => [K, "full", "auto", ...d()], J = () => [Q, "none", "subgrid", p, f], Y = () => ["auto", {
1225
- span: ["full", Q, p, f]
1226
- }, Q, p, f], V = () => [Q, "auto", p, f], X = () => ["auto", "min", "max", "fr", p, f], Z = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], D = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], B = () => ["auto", ...d()], G = () => [K, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...d()], se = () => [K, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...d()], ae = () => [K, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...d()], g = () => [e, p, f], i = () => [...O(), Qe, Ke, {
1301
+ ], j = () => [...T(), p, f], _ = () => ["auto", "hidden", "clip", "visible", "scroll"], $ = () => ["auto", "contain", "none"], m = () => [p, f, l], A = () => [ee, "full", "auto", ...m()], J = () => [te, "none", "subgrid", p, f], Y = () => ["auto", {
1302
+ span: ["full", te, p, f]
1303
+ }, te, p, f], V = () => [te, "auto", p, f], X = () => ["auto", "min", "max", "fr", p, f], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], G = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], B = () => ["auto", ...m()], F = () => [ee, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...m()], q = () => [ee, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...m()], Q = () => [ee, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...m()], y = () => [e, p, f], i = () => [...T(), et, Qe, {
1227
1304
  position: [p, f]
1228
1305
  }], x = () => ["no-repeat", {
1229
1306
  repeat: ["", "x", "y", "space", "round"]
1230
- }], R = () => ["auto", "cover", "contain", ro, Zr, {
1307
+ }], O = () => ["auto", "cover", "contain", ao, to, {
1231
1308
  size: [p, f]
1232
- }], P = () => [Pe, ue, te], N = () => [
1309
+ }], z = () => [Ne, me, oe], M = () => [
1233
1310
  // Deprecated since Tailwind CSS v4.0.0
1234
1311
  "",
1235
1312
  "none",
1236
1313
  "full",
1237
- m,
1314
+ d,
1238
1315
  p,
1239
1316
  f
1240
- ], $ = () => ["", v, ue, te], _ = () => ["solid", "dashed", "dotted", "double"], H = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], z = () => [v, Pe, Qe, Ke], pe = () => [
1317
+ ], L = () => ["", w, me, oe], P = () => ["solid", "dashed", "dotted", "double"], H = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], N = () => [w, Ne, et, Qe], he = () => [
1241
1318
  // Deprecated since Tailwind CSS v4.0.0
1242
1319
  "",
1243
1320
  "none",
1244
- A,
1321
+ S,
1245
1322
  p,
1246
1323
  f
1247
- ], be = () => ["none", v, p, f], he = () => ["none", v, p, f], _e = () => [v, p, f], ge = () => [K, "full", ...d()];
1324
+ ], be = () => ["none", w, p, f], ye = () => ["none", w, p, f], Pe = () => [w, p, f], ve = () => [ee, "full", ...m()];
1248
1325
  return {
1249
1326
  cacheSize: 500,
1250
1327
  theme: {
1251
1328
  animate: ["spin", "ping", "pulse", "bounce"],
1252
1329
  aspect: ["video"],
1253
- blur: [q],
1254
- breakpoint: [q],
1330
+ blur: [Z],
1331
+ breakpoint: [Z],
1255
1332
  color: [xt],
1256
- container: [q],
1257
- "drop-shadow": [q],
1333
+ container: [Z],
1334
+ "drop-shadow": [Z],
1258
1335
  ease: ["in", "out", "in-out"],
1259
- font: [Xr],
1336
+ font: [eo],
1260
1337
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
1261
- "inset-shadow": [q],
1338
+ "inset-shadow": [Z],
1262
1339
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
1263
1340
  perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
1264
- radius: [q],
1265
- shadow: [q],
1266
- spacing: ["px", v],
1267
- text: [q],
1268
- "text-shadow": [q],
1341
+ radius: [Z],
1342
+ shadow: [Z],
1343
+ spacing: ["px", w],
1344
+ text: [Z],
1345
+ "text-shadow": [Z],
1269
1346
  tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
1270
1347
  },
1271
1348
  classGroups: {
@@ -1277,7 +1354,7 @@ const xr = (e, t) => {
1277
1354
  * @see https://tailwindcss.com/docs/aspect-ratio
1278
1355
  */
1279
1356
  aspect: [{
1280
- aspect: ["auto", "square", K, f, p, C]
1357
+ aspect: ["auto", "square", ee, f, p, E]
1281
1358
  }],
1282
1359
  /**
1283
1360
  * Container
@@ -1290,21 +1367,21 @@ const xr = (e, t) => {
1290
1367
  * @see https://tailwindcss.com/docs/columns
1291
1368
  */
1292
1369
  columns: [{
1293
- columns: [v, f, p, c]
1370
+ columns: [w, f, p, c]
1294
1371
  }],
1295
1372
  /**
1296
1373
  * Break After
1297
1374
  * @see https://tailwindcss.com/docs/break-after
1298
1375
  */
1299
1376
  "break-after": [{
1300
- "break-after": E()
1377
+ "break-after": k()
1301
1378
  }],
1302
1379
  /**
1303
1380
  * Break Before
1304
1381
  * @see https://tailwindcss.com/docs/break-before
1305
1382
  */
1306
1383
  "break-before": [{
1307
- "break-before": E()
1384
+ "break-before": k()
1308
1385
  }],
1309
1386
  /**
1310
1387
  * Break Inside
@@ -1368,49 +1445,49 @@ const xr = (e, t) => {
1368
1445
  * @see https://tailwindcss.com/docs/object-position
1369
1446
  */
1370
1447
  "object-position": [{
1371
- object: k()
1448
+ object: j()
1372
1449
  }],
1373
1450
  /**
1374
1451
  * Overflow
1375
1452
  * @see https://tailwindcss.com/docs/overflow
1376
1453
  */
1377
1454
  overflow: [{
1378
- overflow: T()
1455
+ overflow: _()
1379
1456
  }],
1380
1457
  /**
1381
1458
  * Overflow X
1382
1459
  * @see https://tailwindcss.com/docs/overflow
1383
1460
  */
1384
1461
  "overflow-x": [{
1385
- "overflow-x": T()
1462
+ "overflow-x": _()
1386
1463
  }],
1387
1464
  /**
1388
1465
  * Overflow Y
1389
1466
  * @see https://tailwindcss.com/docs/overflow
1390
1467
  */
1391
1468
  "overflow-y": [{
1392
- "overflow-y": T()
1469
+ "overflow-y": _()
1393
1470
  }],
1394
1471
  /**
1395
1472
  * Overscroll Behavior
1396
1473
  * @see https://tailwindcss.com/docs/overscroll-behavior
1397
1474
  */
1398
1475
  overscroll: [{
1399
- overscroll: M()
1476
+ overscroll: $()
1400
1477
  }],
1401
1478
  /**
1402
1479
  * Overscroll Behavior X
1403
1480
  * @see https://tailwindcss.com/docs/overscroll-behavior
1404
1481
  */
1405
1482
  "overscroll-x": [{
1406
- "overscroll-x": M()
1483
+ "overscroll-x": $()
1407
1484
  }],
1408
1485
  /**
1409
1486
  * Overscroll Behavior Y
1410
1487
  * @see https://tailwindcss.com/docs/overscroll-behavior
1411
1488
  */
1412
1489
  "overscroll-y": [{
1413
- "overscroll-y": M()
1490
+ "overscroll-y": $()
1414
1491
  }],
1415
1492
  /**
1416
1493
  * Position
@@ -1422,21 +1499,21 @@ const xr = (e, t) => {
1422
1499
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1423
1500
  */
1424
1501
  inset: [{
1425
- inset: S()
1502
+ inset: A()
1426
1503
  }],
1427
1504
  /**
1428
1505
  * Inset Inline
1429
1506
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1430
1507
  */
1431
1508
  "inset-x": [{
1432
- "inset-x": S()
1509
+ "inset-x": A()
1433
1510
  }],
1434
1511
  /**
1435
1512
  * Inset Block
1436
1513
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1437
1514
  */
1438
1515
  "inset-y": [{
1439
- "inset-y": S()
1516
+ "inset-y": A()
1440
1517
  }],
1441
1518
  /**
1442
1519
  * Inset Inline Start
@@ -1444,12 +1521,12 @@ const xr = (e, t) => {
1444
1521
  * @todo class group will be renamed to `inset-s` in next major release
1445
1522
  */
1446
1523
  start: [{
1447
- "inset-s": S(),
1524
+ "inset-s": A(),
1448
1525
  /**
1449
1526
  * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-s-*` utilities.
1450
1527
  * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
1451
1528
  */
1452
- start: S()
1529
+ start: A()
1453
1530
  }],
1454
1531
  /**
1455
1532
  * Inset Inline End
@@ -1457,54 +1534,54 @@ const xr = (e, t) => {
1457
1534
  * @todo class group will be renamed to `inset-e` in next major release
1458
1535
  */
1459
1536
  end: [{
1460
- "inset-e": S(),
1537
+ "inset-e": A(),
1461
1538
  /**
1462
1539
  * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-e-*` utilities.
1463
1540
  * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
1464
1541
  */
1465
- end: S()
1542
+ end: A()
1466
1543
  }],
1467
1544
  /**
1468
1545
  * Inset Block Start
1469
1546
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1470
1547
  */
1471
1548
  "inset-bs": [{
1472
- "inset-bs": S()
1549
+ "inset-bs": A()
1473
1550
  }],
1474
1551
  /**
1475
1552
  * Inset Block End
1476
1553
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1477
1554
  */
1478
1555
  "inset-be": [{
1479
- "inset-be": S()
1556
+ "inset-be": A()
1480
1557
  }],
1481
1558
  /**
1482
1559
  * Top
1483
1560
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1484
1561
  */
1485
1562
  top: [{
1486
- top: S()
1563
+ top: A()
1487
1564
  }],
1488
1565
  /**
1489
1566
  * Right
1490
1567
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1491
1568
  */
1492
1569
  right: [{
1493
- right: S()
1570
+ right: A()
1494
1571
  }],
1495
1572
  /**
1496
1573
  * Bottom
1497
1574
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1498
1575
  */
1499
1576
  bottom: [{
1500
- bottom: S()
1577
+ bottom: A()
1501
1578
  }],
1502
1579
  /**
1503
1580
  * Left
1504
1581
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1505
1582
  */
1506
1583
  left: [{
1507
- left: S()
1584
+ left: A()
1508
1585
  }],
1509
1586
  /**
1510
1587
  * Visibility
@@ -1516,7 +1593,7 @@ const xr = (e, t) => {
1516
1593
  * @see https://tailwindcss.com/docs/z-index
1517
1594
  */
1518
1595
  z: [{
1519
- z: [Q, "auto", p, f]
1596
+ z: [te, "auto", p, f]
1520
1597
  }],
1521
1598
  // ------------------------
1522
1599
  // --- Flexbox and Grid ---
@@ -1526,7 +1603,7 @@ const xr = (e, t) => {
1526
1603
  * @see https://tailwindcss.com/docs/flex-basis
1527
1604
  */
1528
1605
  basis: [{
1529
- basis: [K, "full", "auto", c, ...d()]
1606
+ basis: [ee, "full", "auto", c, ...m()]
1530
1607
  }],
1531
1608
  /**
1532
1609
  * Flex Direction
@@ -1547,28 +1624,28 @@ const xr = (e, t) => {
1547
1624
  * @see https://tailwindcss.com/docs/flex
1548
1625
  */
1549
1626
  flex: [{
1550
- flex: [v, K, "auto", "initial", "none", f]
1627
+ flex: [w, ee, "auto", "initial", "none", f]
1551
1628
  }],
1552
1629
  /**
1553
1630
  * Flex Grow
1554
1631
  * @see https://tailwindcss.com/docs/flex-grow
1555
1632
  */
1556
1633
  grow: [{
1557
- grow: ["", v, p, f]
1634
+ grow: ["", w, p, f]
1558
1635
  }],
1559
1636
  /**
1560
1637
  * Flex Shrink
1561
1638
  * @see https://tailwindcss.com/docs/flex-shrink
1562
1639
  */
1563
1640
  shrink: [{
1564
- shrink: ["", v, p, f]
1641
+ shrink: ["", w, p, f]
1565
1642
  }],
1566
1643
  /**
1567
1644
  * Order
1568
1645
  * @see https://tailwindcss.com/docs/order
1569
1646
  */
1570
1647
  order: [{
1571
- order: [Q, "first", "last", "none", p, f]
1648
+ order: [te, "first", "last", "none", p, f]
1572
1649
  }],
1573
1650
  /**
1574
1651
  * Grid Template Columns
@@ -1652,56 +1729,56 @@ const xr = (e, t) => {
1652
1729
  * @see https://tailwindcss.com/docs/gap
1653
1730
  */
1654
1731
  gap: [{
1655
- gap: d()
1732
+ gap: m()
1656
1733
  }],
1657
1734
  /**
1658
1735
  * Gap X
1659
1736
  * @see https://tailwindcss.com/docs/gap
1660
1737
  */
1661
1738
  "gap-x": [{
1662
- "gap-x": d()
1739
+ "gap-x": m()
1663
1740
  }],
1664
1741
  /**
1665
1742
  * Gap Y
1666
1743
  * @see https://tailwindcss.com/docs/gap
1667
1744
  */
1668
1745
  "gap-y": [{
1669
- "gap-y": d()
1746
+ "gap-y": m()
1670
1747
  }],
1671
1748
  /**
1672
1749
  * Justify Content
1673
1750
  * @see https://tailwindcss.com/docs/justify-content
1674
1751
  */
1675
1752
  "justify-content": [{
1676
- justify: [...Z(), "normal"]
1753
+ justify: [...K(), "normal"]
1677
1754
  }],
1678
1755
  /**
1679
1756
  * Justify Items
1680
1757
  * @see https://tailwindcss.com/docs/justify-items
1681
1758
  */
1682
1759
  "justify-items": [{
1683
- "justify-items": [...D(), "normal"]
1760
+ "justify-items": [...G(), "normal"]
1684
1761
  }],
1685
1762
  /**
1686
1763
  * Justify Self
1687
1764
  * @see https://tailwindcss.com/docs/justify-self
1688
1765
  */
1689
1766
  "justify-self": [{
1690
- "justify-self": ["auto", ...D()]
1767
+ "justify-self": ["auto", ...G()]
1691
1768
  }],
1692
1769
  /**
1693
1770
  * Align Content
1694
1771
  * @see https://tailwindcss.com/docs/align-content
1695
1772
  */
1696
1773
  "align-content": [{
1697
- content: ["normal", ...Z()]
1774
+ content: ["normal", ...K()]
1698
1775
  }],
1699
1776
  /**
1700
1777
  * Align Items
1701
1778
  * @see https://tailwindcss.com/docs/align-items
1702
1779
  */
1703
1780
  "align-items": [{
1704
- items: [...D(), {
1781
+ items: [...G(), {
1705
1782
  baseline: ["", "last"]
1706
1783
  }]
1707
1784
  }],
@@ -1710,7 +1787,7 @@ const xr = (e, t) => {
1710
1787
  * @see https://tailwindcss.com/docs/align-self
1711
1788
  */
1712
1789
  "align-self": [{
1713
- self: ["auto", ...D(), {
1790
+ self: ["auto", ...G(), {
1714
1791
  baseline: ["", "last"]
1715
1792
  }]
1716
1793
  }],
@@ -1719,21 +1796,21 @@ const xr = (e, t) => {
1719
1796
  * @see https://tailwindcss.com/docs/place-content
1720
1797
  */
1721
1798
  "place-content": [{
1722
- "place-content": Z()
1799
+ "place-content": K()
1723
1800
  }],
1724
1801
  /**
1725
1802
  * Place Items
1726
1803
  * @see https://tailwindcss.com/docs/place-items
1727
1804
  */
1728
1805
  "place-items": [{
1729
- "place-items": [...D(), "baseline"]
1806
+ "place-items": [...G(), "baseline"]
1730
1807
  }],
1731
1808
  /**
1732
1809
  * Place Self
1733
1810
  * @see https://tailwindcss.com/docs/place-self
1734
1811
  */
1735
1812
  "place-self": [{
1736
- "place-self": ["auto", ...D()]
1813
+ "place-self": ["auto", ...G()]
1737
1814
  }],
1738
1815
  // Spacing
1739
1816
  /**
@@ -1741,77 +1818,77 @@ const xr = (e, t) => {
1741
1818
  * @see https://tailwindcss.com/docs/padding
1742
1819
  */
1743
1820
  p: [{
1744
- p: d()
1821
+ p: m()
1745
1822
  }],
1746
1823
  /**
1747
1824
  * Padding Inline
1748
1825
  * @see https://tailwindcss.com/docs/padding
1749
1826
  */
1750
1827
  px: [{
1751
- px: d()
1828
+ px: m()
1752
1829
  }],
1753
1830
  /**
1754
1831
  * Padding Block
1755
1832
  * @see https://tailwindcss.com/docs/padding
1756
1833
  */
1757
1834
  py: [{
1758
- py: d()
1835
+ py: m()
1759
1836
  }],
1760
1837
  /**
1761
1838
  * Padding Inline Start
1762
1839
  * @see https://tailwindcss.com/docs/padding
1763
1840
  */
1764
1841
  ps: [{
1765
- ps: d()
1842
+ ps: m()
1766
1843
  }],
1767
1844
  /**
1768
1845
  * Padding Inline End
1769
1846
  * @see https://tailwindcss.com/docs/padding
1770
1847
  */
1771
1848
  pe: [{
1772
- pe: d()
1849
+ pe: m()
1773
1850
  }],
1774
1851
  /**
1775
1852
  * Padding Block Start
1776
1853
  * @see https://tailwindcss.com/docs/padding
1777
1854
  */
1778
1855
  pbs: [{
1779
- pbs: d()
1856
+ pbs: m()
1780
1857
  }],
1781
1858
  /**
1782
1859
  * Padding Block End
1783
1860
  * @see https://tailwindcss.com/docs/padding
1784
1861
  */
1785
1862
  pbe: [{
1786
- pbe: d()
1863
+ pbe: m()
1787
1864
  }],
1788
1865
  /**
1789
1866
  * Padding Top
1790
1867
  * @see https://tailwindcss.com/docs/padding
1791
1868
  */
1792
1869
  pt: [{
1793
- pt: d()
1870
+ pt: m()
1794
1871
  }],
1795
1872
  /**
1796
1873
  * Padding Right
1797
1874
  * @see https://tailwindcss.com/docs/padding
1798
1875
  */
1799
1876
  pr: [{
1800
- pr: d()
1877
+ pr: m()
1801
1878
  }],
1802
1879
  /**
1803
1880
  * Padding Bottom
1804
1881
  * @see https://tailwindcss.com/docs/padding
1805
1882
  */
1806
1883
  pb: [{
1807
- pb: d()
1884
+ pb: m()
1808
1885
  }],
1809
1886
  /**
1810
1887
  * Padding Left
1811
1888
  * @see https://tailwindcss.com/docs/padding
1812
1889
  */
1813
1890
  pl: [{
1814
- pl: d()
1891
+ pl: m()
1815
1892
  }],
1816
1893
  /**
1817
1894
  * Margin
@@ -1895,7 +1972,7 @@ const xr = (e, t) => {
1895
1972
  * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1896
1973
  */
1897
1974
  "space-x": [{
1898
- "space-x": d()
1975
+ "space-x": m()
1899
1976
  }],
1900
1977
  /**
1901
1978
  * Space Between X Reverse
@@ -1907,7 +1984,7 @@ const xr = (e, t) => {
1907
1984
  * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1908
1985
  */
1909
1986
  "space-y": [{
1910
- "space-y": d()
1987
+ "space-y": m()
1911
1988
  }],
1912
1989
  /**
1913
1990
  * Space Between Y Reverse
@@ -1922,56 +1999,56 @@ const xr = (e, t) => {
1922
1999
  * @see https://tailwindcss.com/docs/width#setting-both-width-and-height
1923
2000
  */
1924
2001
  size: [{
1925
- size: G()
2002
+ size: F()
1926
2003
  }],
1927
2004
  /**
1928
2005
  * Inline Size
1929
2006
  * @see https://tailwindcss.com/docs/width
1930
2007
  */
1931
2008
  "inline-size": [{
1932
- inline: ["auto", ...se()]
2009
+ inline: ["auto", ...q()]
1933
2010
  }],
1934
2011
  /**
1935
2012
  * Min-Inline Size
1936
2013
  * @see https://tailwindcss.com/docs/min-width
1937
2014
  */
1938
2015
  "min-inline-size": [{
1939
- "min-inline": ["auto", ...se()]
2016
+ "min-inline": ["auto", ...q()]
1940
2017
  }],
1941
2018
  /**
1942
2019
  * Max-Inline Size
1943
2020
  * @see https://tailwindcss.com/docs/max-width
1944
2021
  */
1945
2022
  "max-inline-size": [{
1946
- "max-inline": ["none", ...se()]
2023
+ "max-inline": ["none", ...q()]
1947
2024
  }],
1948
2025
  /**
1949
2026
  * Block Size
1950
2027
  * @see https://tailwindcss.com/docs/height
1951
2028
  */
1952
2029
  "block-size": [{
1953
- block: ["auto", ...ae()]
2030
+ block: ["auto", ...Q()]
1954
2031
  }],
1955
2032
  /**
1956
2033
  * Min-Block Size
1957
2034
  * @see https://tailwindcss.com/docs/min-height
1958
2035
  */
1959
2036
  "min-block-size": [{
1960
- "min-block": ["auto", ...ae()]
2037
+ "min-block": ["auto", ...Q()]
1961
2038
  }],
1962
2039
  /**
1963
2040
  * Max-Block Size
1964
2041
  * @see https://tailwindcss.com/docs/max-height
1965
2042
  */
1966
2043
  "max-block-size": [{
1967
- "max-block": ["none", ...ae()]
2044
+ "max-block": ["none", ...Q()]
1968
2045
  }],
1969
2046
  /**
1970
2047
  * Width
1971
2048
  * @see https://tailwindcss.com/docs/width
1972
2049
  */
1973
2050
  w: [{
1974
- w: [c, "screen", ...G()]
2051
+ w: [c, "screen", ...F()]
1975
2052
  }],
1976
2053
  /**
1977
2054
  * Min-Width
@@ -1983,7 +2060,7 @@ const xr = (e, t) => {
1983
2060
  "screen",
1984
2061
  /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1985
2062
  "none",
1986
- ...G()
2063
+ ...F()
1987
2064
  ]
1988
2065
  }],
1989
2066
  /**
@@ -2001,7 +2078,7 @@ const xr = (e, t) => {
2001
2078
  {
2002
2079
  screen: [a]
2003
2080
  },
2004
- ...G()
2081
+ ...F()
2005
2082
  ]
2006
2083
  }],
2007
2084
  /**
@@ -2009,21 +2086,21 @@ const xr = (e, t) => {
2009
2086
  * @see https://tailwindcss.com/docs/height
2010
2087
  */
2011
2088
  h: [{
2012
- h: ["screen", "lh", ...G()]
2089
+ h: ["screen", "lh", ...F()]
2013
2090
  }],
2014
2091
  /**
2015
2092
  * Min-Height
2016
2093
  * @see https://tailwindcss.com/docs/min-height
2017
2094
  */
2018
2095
  "min-h": [{
2019
- "min-h": ["screen", "lh", "none", ...G()]
2096
+ "min-h": ["screen", "lh", "none", ...F()]
2020
2097
  }],
2021
2098
  /**
2022
2099
  * Max-Height
2023
2100
  * @see https://tailwindcss.com/docs/max-height
2024
2101
  */
2025
2102
  "max-h": [{
2026
- "max-h": ["screen", "lh", ...G()]
2103
+ "max-h": ["screen", "lh", ...F()]
2027
2104
  }],
2028
2105
  // ------------------
2029
2106
  // --- Typography ---
@@ -2033,7 +2110,7 @@ const xr = (e, t) => {
2033
2110
  * @see https://tailwindcss.com/docs/font-size
2034
2111
  */
2035
2112
  "font-size": [{
2036
- text: ["base", r, ue, te]
2113
+ text: ["base", o, me, oe]
2037
2114
  }],
2038
2115
  /**
2039
2116
  * Font Smoothing
@@ -2050,21 +2127,21 @@ const xr = (e, t) => {
2050
2127
  * @see https://tailwindcss.com/docs/font-weight
2051
2128
  */
2052
2129
  "font-weight": [{
2053
- font: [o, no, Kr]
2130
+ font: [r, lo, ro]
2054
2131
  }],
2055
2132
  /**
2056
2133
  * Font Stretch
2057
2134
  * @see https://tailwindcss.com/docs/font-stretch
2058
2135
  */
2059
2136
  "font-stretch": [{
2060
- "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Pe, f]
2137
+ "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Ne, f]
2061
2138
  }],
2062
2139
  /**
2063
2140
  * Font Family
2064
2141
  * @see https://tailwindcss.com/docs/font-family
2065
2142
  */
2066
2143
  "font-family": [{
2067
- font: [to, Qr, t]
2144
+ font: [so, oo, t]
2068
2145
  }],
2069
2146
  /**
2070
2147
  * Font Feature Settings
@@ -2115,7 +2192,7 @@ const xr = (e, t) => {
2115
2192
  * @see https://tailwindcss.com/docs/line-clamp
2116
2193
  */
2117
2194
  "line-clamp": [{
2118
- "line-clamp": [v, "none", p, Ze]
2195
+ "line-clamp": [w, "none", p, Ke]
2119
2196
  }],
2120
2197
  /**
2121
2198
  * Line Height
@@ -2125,7 +2202,7 @@ const xr = (e, t) => {
2125
2202
  leading: [
2126
2203
  /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
2127
2204
  s,
2128
- ...d()
2205
+ ...m()
2129
2206
  ]
2130
2207
  }],
2131
2208
  /**
@@ -2162,14 +2239,14 @@ const xr = (e, t) => {
2162
2239
  * @see https://v3.tailwindcss.com/docs/placeholder-color
2163
2240
  */
2164
2241
  "placeholder-color": [{
2165
- placeholder: g()
2242
+ placeholder: y()
2166
2243
  }],
2167
2244
  /**
2168
2245
  * Text Color
2169
2246
  * @see https://tailwindcss.com/docs/text-color
2170
2247
  */
2171
2248
  "text-color": [{
2172
- text: g()
2249
+ text: y()
2173
2250
  }],
2174
2251
  /**
2175
2252
  * Text Decoration
@@ -2181,28 +2258,28 @@ const xr = (e, t) => {
2181
2258
  * @see https://tailwindcss.com/docs/text-decoration-style
2182
2259
  */
2183
2260
  "text-decoration-style": [{
2184
- decoration: [..._(), "wavy"]
2261
+ decoration: [...P(), "wavy"]
2185
2262
  }],
2186
2263
  /**
2187
2264
  * Text Decoration Thickness
2188
2265
  * @see https://tailwindcss.com/docs/text-decoration-thickness
2189
2266
  */
2190
2267
  "text-decoration-thickness": [{
2191
- decoration: [v, "from-font", "auto", p, te]
2268
+ decoration: [w, "from-font", "auto", p, oe]
2192
2269
  }],
2193
2270
  /**
2194
2271
  * Text Decoration Color
2195
2272
  * @see https://tailwindcss.com/docs/text-decoration-color
2196
2273
  */
2197
2274
  "text-decoration-color": [{
2198
- decoration: g()
2275
+ decoration: y()
2199
2276
  }],
2200
2277
  /**
2201
2278
  * Text Underline Offset
2202
2279
  * @see https://tailwindcss.com/docs/text-underline-offset
2203
2280
  */
2204
2281
  "underline-offset": [{
2205
- "underline-offset": [v, "auto", p, f]
2282
+ "underline-offset": [w, "auto", p, f]
2206
2283
  }],
2207
2284
  /**
2208
2285
  * Text Transform
@@ -2226,7 +2303,7 @@ const xr = (e, t) => {
2226
2303
  * @see https://tailwindcss.com/docs/text-indent
2227
2304
  */
2228
2305
  indent: [{
2229
- indent: d()
2306
+ indent: m()
2230
2307
  }],
2231
2308
  /**
2232
2309
  * Vertical Alignment
@@ -2313,7 +2390,7 @@ const xr = (e, t) => {
2313
2390
  * @see https://tailwindcss.com/docs/background-size
2314
2391
  */
2315
2392
  "bg-size": [{
2316
- bg: R()
2393
+ bg: O()
2317
2394
  }],
2318
2395
  /**
2319
2396
  * Background Image
@@ -2323,59 +2400,59 @@ const xr = (e, t) => {
2323
2400
  bg: ["none", {
2324
2401
  linear: [{
2325
2402
  to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
2326
- }, Q, p, f],
2403
+ }, te, p, f],
2327
2404
  radial: ["", p, f],
2328
- conic: [Q, p, f]
2329
- }, oo, eo]
2405
+ conic: [te, p, f]
2406
+ }, io, no]
2330
2407
  }],
2331
2408
  /**
2332
2409
  * Background Color
2333
2410
  * @see https://tailwindcss.com/docs/background-color
2334
2411
  */
2335
2412
  "bg-color": [{
2336
- bg: g()
2413
+ bg: y()
2337
2414
  }],
2338
2415
  /**
2339
2416
  * Gradient Color Stops From Position
2340
2417
  * @see https://tailwindcss.com/docs/gradient-color-stops
2341
2418
  */
2342
2419
  "gradient-from-pos": [{
2343
- from: P()
2420
+ from: z()
2344
2421
  }],
2345
2422
  /**
2346
2423
  * Gradient Color Stops Via Position
2347
2424
  * @see https://tailwindcss.com/docs/gradient-color-stops
2348
2425
  */
2349
2426
  "gradient-via-pos": [{
2350
- via: P()
2427
+ via: z()
2351
2428
  }],
2352
2429
  /**
2353
2430
  * Gradient Color Stops To Position
2354
2431
  * @see https://tailwindcss.com/docs/gradient-color-stops
2355
2432
  */
2356
2433
  "gradient-to-pos": [{
2357
- to: P()
2434
+ to: z()
2358
2435
  }],
2359
2436
  /**
2360
2437
  * Gradient Color Stops From
2361
2438
  * @see https://tailwindcss.com/docs/gradient-color-stops
2362
2439
  */
2363
2440
  "gradient-from": [{
2364
- from: g()
2441
+ from: y()
2365
2442
  }],
2366
2443
  /**
2367
2444
  * Gradient Color Stops Via
2368
2445
  * @see https://tailwindcss.com/docs/gradient-color-stops
2369
2446
  */
2370
2447
  "gradient-via": [{
2371
- via: g()
2448
+ via: y()
2372
2449
  }],
2373
2450
  /**
2374
2451
  * Gradient Color Stops To
2375
2452
  * @see https://tailwindcss.com/docs/gradient-color-stops
2376
2453
  */
2377
2454
  "gradient-to": [{
2378
- to: g()
2455
+ to: y()
2379
2456
  }],
2380
2457
  // ---------------
2381
2458
  // --- Borders ---
@@ -2385,189 +2462,189 @@ const xr = (e, t) => {
2385
2462
  * @see https://tailwindcss.com/docs/border-radius
2386
2463
  */
2387
2464
  rounded: [{
2388
- rounded: N()
2465
+ rounded: M()
2389
2466
  }],
2390
2467
  /**
2391
2468
  * Border Radius Start
2392
2469
  * @see https://tailwindcss.com/docs/border-radius
2393
2470
  */
2394
2471
  "rounded-s": [{
2395
- "rounded-s": N()
2472
+ "rounded-s": M()
2396
2473
  }],
2397
2474
  /**
2398
2475
  * Border Radius End
2399
2476
  * @see https://tailwindcss.com/docs/border-radius
2400
2477
  */
2401
2478
  "rounded-e": [{
2402
- "rounded-e": N()
2479
+ "rounded-e": M()
2403
2480
  }],
2404
2481
  /**
2405
2482
  * Border Radius Top
2406
2483
  * @see https://tailwindcss.com/docs/border-radius
2407
2484
  */
2408
2485
  "rounded-t": [{
2409
- "rounded-t": N()
2486
+ "rounded-t": M()
2410
2487
  }],
2411
2488
  /**
2412
2489
  * Border Radius Right
2413
2490
  * @see https://tailwindcss.com/docs/border-radius
2414
2491
  */
2415
2492
  "rounded-r": [{
2416
- "rounded-r": N()
2493
+ "rounded-r": M()
2417
2494
  }],
2418
2495
  /**
2419
2496
  * Border Radius Bottom
2420
2497
  * @see https://tailwindcss.com/docs/border-radius
2421
2498
  */
2422
2499
  "rounded-b": [{
2423
- "rounded-b": N()
2500
+ "rounded-b": M()
2424
2501
  }],
2425
2502
  /**
2426
2503
  * Border Radius Left
2427
2504
  * @see https://tailwindcss.com/docs/border-radius
2428
2505
  */
2429
2506
  "rounded-l": [{
2430
- "rounded-l": N()
2507
+ "rounded-l": M()
2431
2508
  }],
2432
2509
  /**
2433
2510
  * Border Radius Start Start
2434
2511
  * @see https://tailwindcss.com/docs/border-radius
2435
2512
  */
2436
2513
  "rounded-ss": [{
2437
- "rounded-ss": N()
2514
+ "rounded-ss": M()
2438
2515
  }],
2439
2516
  /**
2440
2517
  * Border Radius Start End
2441
2518
  * @see https://tailwindcss.com/docs/border-radius
2442
2519
  */
2443
2520
  "rounded-se": [{
2444
- "rounded-se": N()
2521
+ "rounded-se": M()
2445
2522
  }],
2446
2523
  /**
2447
2524
  * Border Radius End End
2448
2525
  * @see https://tailwindcss.com/docs/border-radius
2449
2526
  */
2450
2527
  "rounded-ee": [{
2451
- "rounded-ee": N()
2528
+ "rounded-ee": M()
2452
2529
  }],
2453
2530
  /**
2454
2531
  * Border Radius End Start
2455
2532
  * @see https://tailwindcss.com/docs/border-radius
2456
2533
  */
2457
2534
  "rounded-es": [{
2458
- "rounded-es": N()
2535
+ "rounded-es": M()
2459
2536
  }],
2460
2537
  /**
2461
2538
  * Border Radius Top Left
2462
2539
  * @see https://tailwindcss.com/docs/border-radius
2463
2540
  */
2464
2541
  "rounded-tl": [{
2465
- "rounded-tl": N()
2542
+ "rounded-tl": M()
2466
2543
  }],
2467
2544
  /**
2468
2545
  * Border Radius Top Right
2469
2546
  * @see https://tailwindcss.com/docs/border-radius
2470
2547
  */
2471
2548
  "rounded-tr": [{
2472
- "rounded-tr": N()
2549
+ "rounded-tr": M()
2473
2550
  }],
2474
2551
  /**
2475
2552
  * Border Radius Bottom Right
2476
2553
  * @see https://tailwindcss.com/docs/border-radius
2477
2554
  */
2478
2555
  "rounded-br": [{
2479
- "rounded-br": N()
2556
+ "rounded-br": M()
2480
2557
  }],
2481
2558
  /**
2482
2559
  * Border Radius Bottom Left
2483
2560
  * @see https://tailwindcss.com/docs/border-radius
2484
2561
  */
2485
2562
  "rounded-bl": [{
2486
- "rounded-bl": N()
2563
+ "rounded-bl": M()
2487
2564
  }],
2488
2565
  /**
2489
2566
  * Border Width
2490
2567
  * @see https://tailwindcss.com/docs/border-width
2491
2568
  */
2492
2569
  "border-w": [{
2493
- border: $()
2570
+ border: L()
2494
2571
  }],
2495
2572
  /**
2496
2573
  * Border Width Inline
2497
2574
  * @see https://tailwindcss.com/docs/border-width
2498
2575
  */
2499
2576
  "border-w-x": [{
2500
- "border-x": $()
2577
+ "border-x": L()
2501
2578
  }],
2502
2579
  /**
2503
2580
  * Border Width Block
2504
2581
  * @see https://tailwindcss.com/docs/border-width
2505
2582
  */
2506
2583
  "border-w-y": [{
2507
- "border-y": $()
2584
+ "border-y": L()
2508
2585
  }],
2509
2586
  /**
2510
2587
  * Border Width Inline Start
2511
2588
  * @see https://tailwindcss.com/docs/border-width
2512
2589
  */
2513
2590
  "border-w-s": [{
2514
- "border-s": $()
2591
+ "border-s": L()
2515
2592
  }],
2516
2593
  /**
2517
2594
  * Border Width Inline End
2518
2595
  * @see https://tailwindcss.com/docs/border-width
2519
2596
  */
2520
2597
  "border-w-e": [{
2521
- "border-e": $()
2598
+ "border-e": L()
2522
2599
  }],
2523
2600
  /**
2524
2601
  * Border Width Block Start
2525
2602
  * @see https://tailwindcss.com/docs/border-width
2526
2603
  */
2527
2604
  "border-w-bs": [{
2528
- "border-bs": $()
2605
+ "border-bs": L()
2529
2606
  }],
2530
2607
  /**
2531
2608
  * Border Width Block End
2532
2609
  * @see https://tailwindcss.com/docs/border-width
2533
2610
  */
2534
2611
  "border-w-be": [{
2535
- "border-be": $()
2612
+ "border-be": L()
2536
2613
  }],
2537
2614
  /**
2538
2615
  * Border Width Top
2539
2616
  * @see https://tailwindcss.com/docs/border-width
2540
2617
  */
2541
2618
  "border-w-t": [{
2542
- "border-t": $()
2619
+ "border-t": L()
2543
2620
  }],
2544
2621
  /**
2545
2622
  * Border Width Right
2546
2623
  * @see https://tailwindcss.com/docs/border-width
2547
2624
  */
2548
2625
  "border-w-r": [{
2549
- "border-r": $()
2626
+ "border-r": L()
2550
2627
  }],
2551
2628
  /**
2552
2629
  * Border Width Bottom
2553
2630
  * @see https://tailwindcss.com/docs/border-width
2554
2631
  */
2555
2632
  "border-w-b": [{
2556
- "border-b": $()
2633
+ "border-b": L()
2557
2634
  }],
2558
2635
  /**
2559
2636
  * Border Width Left
2560
2637
  * @see https://tailwindcss.com/docs/border-width
2561
2638
  */
2562
2639
  "border-w-l": [{
2563
- "border-l": $()
2640
+ "border-l": L()
2564
2641
  }],
2565
2642
  /**
2566
2643
  * Divide Width X
2567
2644
  * @see https://tailwindcss.com/docs/border-width#between-children
2568
2645
  */
2569
2646
  "divide-x": [{
2570
- "divide-x": $()
2647
+ "divide-x": L()
2571
2648
  }],
2572
2649
  /**
2573
2650
  * Divide Width X Reverse
@@ -2579,7 +2656,7 @@ const xr = (e, t) => {
2579
2656
  * @see https://tailwindcss.com/docs/border-width#between-children
2580
2657
  */
2581
2658
  "divide-y": [{
2582
- "divide-y": $()
2659
+ "divide-y": L()
2583
2660
  }],
2584
2661
  /**
2585
2662
  * Divide Width Y Reverse
@@ -2591,126 +2668,126 @@ const xr = (e, t) => {
2591
2668
  * @see https://tailwindcss.com/docs/border-style
2592
2669
  */
2593
2670
  "border-style": [{
2594
- border: [..._(), "hidden", "none"]
2671
+ border: [...P(), "hidden", "none"]
2595
2672
  }],
2596
2673
  /**
2597
2674
  * Divide Style
2598
2675
  * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
2599
2676
  */
2600
2677
  "divide-style": [{
2601
- divide: [..._(), "hidden", "none"]
2678
+ divide: [...P(), "hidden", "none"]
2602
2679
  }],
2603
2680
  /**
2604
2681
  * Border Color
2605
2682
  * @see https://tailwindcss.com/docs/border-color
2606
2683
  */
2607
2684
  "border-color": [{
2608
- border: g()
2685
+ border: y()
2609
2686
  }],
2610
2687
  /**
2611
2688
  * Border Color Inline
2612
2689
  * @see https://tailwindcss.com/docs/border-color
2613
2690
  */
2614
2691
  "border-color-x": [{
2615
- "border-x": g()
2692
+ "border-x": y()
2616
2693
  }],
2617
2694
  /**
2618
2695
  * Border Color Block
2619
2696
  * @see https://tailwindcss.com/docs/border-color
2620
2697
  */
2621
2698
  "border-color-y": [{
2622
- "border-y": g()
2699
+ "border-y": y()
2623
2700
  }],
2624
2701
  /**
2625
2702
  * Border Color Inline Start
2626
2703
  * @see https://tailwindcss.com/docs/border-color
2627
2704
  */
2628
2705
  "border-color-s": [{
2629
- "border-s": g()
2706
+ "border-s": y()
2630
2707
  }],
2631
2708
  /**
2632
2709
  * Border Color Inline End
2633
2710
  * @see https://tailwindcss.com/docs/border-color
2634
2711
  */
2635
2712
  "border-color-e": [{
2636
- "border-e": g()
2713
+ "border-e": y()
2637
2714
  }],
2638
2715
  /**
2639
2716
  * Border Color Block Start
2640
2717
  * @see https://tailwindcss.com/docs/border-color
2641
2718
  */
2642
2719
  "border-color-bs": [{
2643
- "border-bs": g()
2720
+ "border-bs": y()
2644
2721
  }],
2645
2722
  /**
2646
2723
  * Border Color Block End
2647
2724
  * @see https://tailwindcss.com/docs/border-color
2648
2725
  */
2649
2726
  "border-color-be": [{
2650
- "border-be": g()
2727
+ "border-be": y()
2651
2728
  }],
2652
2729
  /**
2653
2730
  * Border Color Top
2654
2731
  * @see https://tailwindcss.com/docs/border-color
2655
2732
  */
2656
2733
  "border-color-t": [{
2657
- "border-t": g()
2734
+ "border-t": y()
2658
2735
  }],
2659
2736
  /**
2660
2737
  * Border Color Right
2661
2738
  * @see https://tailwindcss.com/docs/border-color
2662
2739
  */
2663
2740
  "border-color-r": [{
2664
- "border-r": g()
2741
+ "border-r": y()
2665
2742
  }],
2666
2743
  /**
2667
2744
  * Border Color Bottom
2668
2745
  * @see https://tailwindcss.com/docs/border-color
2669
2746
  */
2670
2747
  "border-color-b": [{
2671
- "border-b": g()
2748
+ "border-b": y()
2672
2749
  }],
2673
2750
  /**
2674
2751
  * Border Color Left
2675
2752
  * @see https://tailwindcss.com/docs/border-color
2676
2753
  */
2677
2754
  "border-color-l": [{
2678
- "border-l": g()
2755
+ "border-l": y()
2679
2756
  }],
2680
2757
  /**
2681
2758
  * Divide Color
2682
2759
  * @see https://tailwindcss.com/docs/divide-color
2683
2760
  */
2684
2761
  "divide-color": [{
2685
- divide: g()
2762
+ divide: y()
2686
2763
  }],
2687
2764
  /**
2688
2765
  * Outline Style
2689
2766
  * @see https://tailwindcss.com/docs/outline-style
2690
2767
  */
2691
2768
  "outline-style": [{
2692
- outline: [..._(), "none", "hidden"]
2769
+ outline: [...P(), "none", "hidden"]
2693
2770
  }],
2694
2771
  /**
2695
2772
  * Outline Offset
2696
2773
  * @see https://tailwindcss.com/docs/outline-offset
2697
2774
  */
2698
2775
  "outline-offset": [{
2699
- "outline-offset": [v, p, f]
2776
+ "outline-offset": [w, p, f]
2700
2777
  }],
2701
2778
  /**
2702
2779
  * Outline Width
2703
2780
  * @see https://tailwindcss.com/docs/outline-width
2704
2781
  */
2705
2782
  "outline-w": [{
2706
- outline: ["", v, ue, te]
2783
+ outline: ["", w, me, oe]
2707
2784
  }],
2708
2785
  /**
2709
2786
  * Outline Color
2710
2787
  * @see https://tailwindcss.com/docs/outline-color
2711
2788
  */
2712
2789
  "outline-color": [{
2713
- outline: g()
2790
+ outline: y()
2714
2791
  }],
2715
2792
  // ---------------
2716
2793
  // --- Effects ---
@@ -2724,9 +2801,9 @@ const xr = (e, t) => {
2724
2801
  // Deprecated since Tailwind CSS v4.0.0
2725
2802
  "",
2726
2803
  "none",
2727
- b,
2804
+ g,
2728
2805
  Ee,
2729
- je
2806
+ Ce
2730
2807
  ]
2731
2808
  }],
2732
2809
  /**
@@ -2734,28 +2811,28 @@ const xr = (e, t) => {
2734
2811
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
2735
2812
  */
2736
2813
  "shadow-color": [{
2737
- shadow: g()
2814
+ shadow: y()
2738
2815
  }],
2739
2816
  /**
2740
2817
  * Inset Box Shadow
2741
2818
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
2742
2819
  */
2743
2820
  "inset-shadow": [{
2744
- "inset-shadow": ["none", h, Ee, je]
2821
+ "inset-shadow": ["none", h, Ee, Ce]
2745
2822
  }],
2746
2823
  /**
2747
2824
  * Inset Box Shadow Color
2748
2825
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
2749
2826
  */
2750
2827
  "inset-shadow-color": [{
2751
- "inset-shadow": g()
2828
+ "inset-shadow": y()
2752
2829
  }],
2753
2830
  /**
2754
2831
  * Ring Width
2755
2832
  * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
2756
2833
  */
2757
2834
  "ring-w": [{
2758
- ring: $()
2835
+ ring: L()
2759
2836
  }],
2760
2837
  /**
2761
2838
  * Ring Width Inset
@@ -2769,7 +2846,7 @@ const xr = (e, t) => {
2769
2846
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
2770
2847
  */
2771
2848
  "ring-color": [{
2772
- ring: g()
2849
+ ring: y()
2773
2850
  }],
2774
2851
  /**
2775
2852
  * Ring Offset Width
@@ -2778,7 +2855,7 @@ const xr = (e, t) => {
2778
2855
  * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
2779
2856
  */
2780
2857
  "ring-offset-w": [{
2781
- "ring-offset": [v, te]
2858
+ "ring-offset": [w, oe]
2782
2859
  }],
2783
2860
  /**
2784
2861
  * Ring Offset Color
@@ -2787,42 +2864,42 @@ const xr = (e, t) => {
2787
2864
  * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
2788
2865
  */
2789
2866
  "ring-offset-color": [{
2790
- "ring-offset": g()
2867
+ "ring-offset": y()
2791
2868
  }],
2792
2869
  /**
2793
2870
  * Inset Ring Width
2794
2871
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
2795
2872
  */
2796
2873
  "inset-ring-w": [{
2797
- "inset-ring": $()
2874
+ "inset-ring": L()
2798
2875
  }],
2799
2876
  /**
2800
2877
  * Inset Ring Color
2801
2878
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
2802
2879
  */
2803
2880
  "inset-ring-color": [{
2804
- "inset-ring": g()
2881
+ "inset-ring": y()
2805
2882
  }],
2806
2883
  /**
2807
2884
  * Text Shadow
2808
2885
  * @see https://tailwindcss.com/docs/text-shadow
2809
2886
  */
2810
2887
  "text-shadow": [{
2811
- "text-shadow": ["none", y, Ee, je]
2888
+ "text-shadow": ["none", b, Ee, Ce]
2812
2889
  }],
2813
2890
  /**
2814
2891
  * Text Shadow Color
2815
2892
  * @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
2816
2893
  */
2817
2894
  "text-shadow-color": [{
2818
- "text-shadow": g()
2895
+ "text-shadow": y()
2819
2896
  }],
2820
2897
  /**
2821
2898
  * Opacity
2822
2899
  * @see https://tailwindcss.com/docs/opacity
2823
2900
  */
2824
2901
  opacity: [{
2825
- opacity: [v, p, f]
2902
+ opacity: [w, p, f]
2826
2903
  }],
2827
2904
  /**
2828
2905
  * Mix Blend Mode
@@ -2857,106 +2934,106 @@ const xr = (e, t) => {
2857
2934
  * @see https://tailwindcss.com/docs/mask-image
2858
2935
  */
2859
2936
  "mask-image-linear-pos": [{
2860
- "mask-linear": [v]
2937
+ "mask-linear": [w]
2861
2938
  }],
2862
2939
  "mask-image-linear-from-pos": [{
2863
- "mask-linear-from": z()
2940
+ "mask-linear-from": N()
2864
2941
  }],
2865
2942
  "mask-image-linear-to-pos": [{
2866
- "mask-linear-to": z()
2943
+ "mask-linear-to": N()
2867
2944
  }],
2868
2945
  "mask-image-linear-from-color": [{
2869
- "mask-linear-from": g()
2946
+ "mask-linear-from": y()
2870
2947
  }],
2871
2948
  "mask-image-linear-to-color": [{
2872
- "mask-linear-to": g()
2949
+ "mask-linear-to": y()
2873
2950
  }],
2874
2951
  "mask-image-t-from-pos": [{
2875
- "mask-t-from": z()
2952
+ "mask-t-from": N()
2876
2953
  }],
2877
2954
  "mask-image-t-to-pos": [{
2878
- "mask-t-to": z()
2955
+ "mask-t-to": N()
2879
2956
  }],
2880
2957
  "mask-image-t-from-color": [{
2881
- "mask-t-from": g()
2958
+ "mask-t-from": y()
2882
2959
  }],
2883
2960
  "mask-image-t-to-color": [{
2884
- "mask-t-to": g()
2961
+ "mask-t-to": y()
2885
2962
  }],
2886
2963
  "mask-image-r-from-pos": [{
2887
- "mask-r-from": z()
2964
+ "mask-r-from": N()
2888
2965
  }],
2889
2966
  "mask-image-r-to-pos": [{
2890
- "mask-r-to": z()
2967
+ "mask-r-to": N()
2891
2968
  }],
2892
2969
  "mask-image-r-from-color": [{
2893
- "mask-r-from": g()
2970
+ "mask-r-from": y()
2894
2971
  }],
2895
2972
  "mask-image-r-to-color": [{
2896
- "mask-r-to": g()
2973
+ "mask-r-to": y()
2897
2974
  }],
2898
2975
  "mask-image-b-from-pos": [{
2899
- "mask-b-from": z()
2976
+ "mask-b-from": N()
2900
2977
  }],
2901
2978
  "mask-image-b-to-pos": [{
2902
- "mask-b-to": z()
2979
+ "mask-b-to": N()
2903
2980
  }],
2904
2981
  "mask-image-b-from-color": [{
2905
- "mask-b-from": g()
2982
+ "mask-b-from": y()
2906
2983
  }],
2907
2984
  "mask-image-b-to-color": [{
2908
- "mask-b-to": g()
2985
+ "mask-b-to": y()
2909
2986
  }],
2910
2987
  "mask-image-l-from-pos": [{
2911
- "mask-l-from": z()
2988
+ "mask-l-from": N()
2912
2989
  }],
2913
2990
  "mask-image-l-to-pos": [{
2914
- "mask-l-to": z()
2991
+ "mask-l-to": N()
2915
2992
  }],
2916
2993
  "mask-image-l-from-color": [{
2917
- "mask-l-from": g()
2994
+ "mask-l-from": y()
2918
2995
  }],
2919
2996
  "mask-image-l-to-color": [{
2920
- "mask-l-to": g()
2997
+ "mask-l-to": y()
2921
2998
  }],
2922
2999
  "mask-image-x-from-pos": [{
2923
- "mask-x-from": z()
3000
+ "mask-x-from": N()
2924
3001
  }],
2925
3002
  "mask-image-x-to-pos": [{
2926
- "mask-x-to": z()
3003
+ "mask-x-to": N()
2927
3004
  }],
2928
3005
  "mask-image-x-from-color": [{
2929
- "mask-x-from": g()
3006
+ "mask-x-from": y()
2930
3007
  }],
2931
3008
  "mask-image-x-to-color": [{
2932
- "mask-x-to": g()
3009
+ "mask-x-to": y()
2933
3010
  }],
2934
3011
  "mask-image-y-from-pos": [{
2935
- "mask-y-from": z()
3012
+ "mask-y-from": N()
2936
3013
  }],
2937
3014
  "mask-image-y-to-pos": [{
2938
- "mask-y-to": z()
3015
+ "mask-y-to": N()
2939
3016
  }],
2940
3017
  "mask-image-y-from-color": [{
2941
- "mask-y-from": g()
3018
+ "mask-y-from": y()
2942
3019
  }],
2943
3020
  "mask-image-y-to-color": [{
2944
- "mask-y-to": g()
3021
+ "mask-y-to": y()
2945
3022
  }],
2946
3023
  "mask-image-radial": [{
2947
3024
  "mask-radial": [p, f]
2948
3025
  }],
2949
3026
  "mask-image-radial-from-pos": [{
2950
- "mask-radial-from": z()
3027
+ "mask-radial-from": N()
2951
3028
  }],
2952
3029
  "mask-image-radial-to-pos": [{
2953
- "mask-radial-to": z()
3030
+ "mask-radial-to": N()
2954
3031
  }],
2955
3032
  "mask-image-radial-from-color": [{
2956
- "mask-radial-from": g()
3033
+ "mask-radial-from": y()
2957
3034
  }],
2958
3035
  "mask-image-radial-to-color": [{
2959
- "mask-radial-to": g()
3036
+ "mask-radial-to": y()
2960
3037
  }],
2961
3038
  "mask-image-radial-shape": [{
2962
3039
  "mask-radial": ["circle", "ellipse"]
@@ -2968,22 +3045,22 @@ const xr = (e, t) => {
2968
3045
  }]
2969
3046
  }],
2970
3047
  "mask-image-radial-pos": [{
2971
- "mask-radial-at": O()
3048
+ "mask-radial-at": T()
2972
3049
  }],
2973
3050
  "mask-image-conic-pos": [{
2974
- "mask-conic": [v]
3051
+ "mask-conic": [w]
2975
3052
  }],
2976
3053
  "mask-image-conic-from-pos": [{
2977
- "mask-conic-from": z()
3054
+ "mask-conic-from": N()
2978
3055
  }],
2979
3056
  "mask-image-conic-to-pos": [{
2980
- "mask-conic-to": z()
3057
+ "mask-conic-to": N()
2981
3058
  }],
2982
3059
  "mask-image-conic-from-color": [{
2983
- "mask-conic-from": g()
3060
+ "mask-conic-from": y()
2984
3061
  }],
2985
3062
  "mask-image-conic-to-color": [{
2986
- "mask-conic-to": g()
3063
+ "mask-conic-to": y()
2987
3064
  }],
2988
3065
  /**
2989
3066
  * Mask Mode
@@ -3018,7 +3095,7 @@ const xr = (e, t) => {
3018
3095
  * @see https://tailwindcss.com/docs/mask-size
3019
3096
  */
3020
3097
  "mask-size": [{
3021
- mask: R()
3098
+ mask: O()
3022
3099
  }],
3023
3100
  /**
3024
3101
  * Mask Type
@@ -3055,21 +3132,21 @@ const xr = (e, t) => {
3055
3132
  * @see https://tailwindcss.com/docs/blur
3056
3133
  */
3057
3134
  blur: [{
3058
- blur: pe()
3135
+ blur: he()
3059
3136
  }],
3060
3137
  /**
3061
3138
  * Brightness
3062
3139
  * @see https://tailwindcss.com/docs/brightness
3063
3140
  */
3064
3141
  brightness: [{
3065
- brightness: [v, p, f]
3142
+ brightness: [w, p, f]
3066
3143
  }],
3067
3144
  /**
3068
3145
  * Contrast
3069
3146
  * @see https://tailwindcss.com/docs/contrast
3070
3147
  */
3071
3148
  contrast: [{
3072
- contrast: [v, p, f]
3149
+ contrast: [w, p, f]
3073
3150
  }],
3074
3151
  /**
3075
3152
  * Drop Shadow
@@ -3080,9 +3157,9 @@ const xr = (e, t) => {
3080
3157
  // Deprecated since Tailwind CSS v4.0.0
3081
3158
  "",
3082
3159
  "none",
3083
- w,
3160
+ v,
3084
3161
  Ee,
3085
- je
3162
+ Ce
3086
3163
  ]
3087
3164
  }],
3088
3165
  /**
@@ -3090,42 +3167,42 @@ const xr = (e, t) => {
3090
3167
  * @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
3091
3168
  */
3092
3169
  "drop-shadow-color": [{
3093
- "drop-shadow": g()
3170
+ "drop-shadow": y()
3094
3171
  }],
3095
3172
  /**
3096
3173
  * Grayscale
3097
3174
  * @see https://tailwindcss.com/docs/grayscale
3098
3175
  */
3099
3176
  grayscale: [{
3100
- grayscale: ["", v, p, f]
3177
+ grayscale: ["", w, p, f]
3101
3178
  }],
3102
3179
  /**
3103
3180
  * Hue Rotate
3104
3181
  * @see https://tailwindcss.com/docs/hue-rotate
3105
3182
  */
3106
3183
  "hue-rotate": [{
3107
- "hue-rotate": [v, p, f]
3184
+ "hue-rotate": [w, p, f]
3108
3185
  }],
3109
3186
  /**
3110
3187
  * Invert
3111
3188
  * @see https://tailwindcss.com/docs/invert
3112
3189
  */
3113
3190
  invert: [{
3114
- invert: ["", v, p, f]
3191
+ invert: ["", w, p, f]
3115
3192
  }],
3116
3193
  /**
3117
3194
  * Saturate
3118
3195
  * @see https://tailwindcss.com/docs/saturate
3119
3196
  */
3120
3197
  saturate: [{
3121
- saturate: [v, p, f]
3198
+ saturate: [w, p, f]
3122
3199
  }],
3123
3200
  /**
3124
3201
  * Sepia
3125
3202
  * @see https://tailwindcss.com/docs/sepia
3126
3203
  */
3127
3204
  sepia: [{
3128
- sepia: ["", v, p, f]
3205
+ sepia: ["", w, p, f]
3129
3206
  }],
3130
3207
  /**
3131
3208
  * Backdrop Filter
@@ -3145,63 +3222,63 @@ const xr = (e, t) => {
3145
3222
  * @see https://tailwindcss.com/docs/backdrop-blur
3146
3223
  */
3147
3224
  "backdrop-blur": [{
3148
- "backdrop-blur": pe()
3225
+ "backdrop-blur": he()
3149
3226
  }],
3150
3227
  /**
3151
3228
  * Backdrop Brightness
3152
3229
  * @see https://tailwindcss.com/docs/backdrop-brightness
3153
3230
  */
3154
3231
  "backdrop-brightness": [{
3155
- "backdrop-brightness": [v, p, f]
3232
+ "backdrop-brightness": [w, p, f]
3156
3233
  }],
3157
3234
  /**
3158
3235
  * Backdrop Contrast
3159
3236
  * @see https://tailwindcss.com/docs/backdrop-contrast
3160
3237
  */
3161
3238
  "backdrop-contrast": [{
3162
- "backdrop-contrast": [v, p, f]
3239
+ "backdrop-contrast": [w, p, f]
3163
3240
  }],
3164
3241
  /**
3165
3242
  * Backdrop Grayscale
3166
3243
  * @see https://tailwindcss.com/docs/backdrop-grayscale
3167
3244
  */
3168
3245
  "backdrop-grayscale": [{
3169
- "backdrop-grayscale": ["", v, p, f]
3246
+ "backdrop-grayscale": ["", w, p, f]
3170
3247
  }],
3171
3248
  /**
3172
3249
  * Backdrop Hue Rotate
3173
3250
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
3174
3251
  */
3175
3252
  "backdrop-hue-rotate": [{
3176
- "backdrop-hue-rotate": [v, p, f]
3253
+ "backdrop-hue-rotate": [w, p, f]
3177
3254
  }],
3178
3255
  /**
3179
3256
  * Backdrop Invert
3180
3257
  * @see https://tailwindcss.com/docs/backdrop-invert
3181
3258
  */
3182
3259
  "backdrop-invert": [{
3183
- "backdrop-invert": ["", v, p, f]
3260
+ "backdrop-invert": ["", w, p, f]
3184
3261
  }],
3185
3262
  /**
3186
3263
  * Backdrop Opacity
3187
3264
  * @see https://tailwindcss.com/docs/backdrop-opacity
3188
3265
  */
3189
3266
  "backdrop-opacity": [{
3190
- "backdrop-opacity": [v, p, f]
3267
+ "backdrop-opacity": [w, p, f]
3191
3268
  }],
3192
3269
  /**
3193
3270
  * Backdrop Saturate
3194
3271
  * @see https://tailwindcss.com/docs/backdrop-saturate
3195
3272
  */
3196
3273
  "backdrop-saturate": [{
3197
- "backdrop-saturate": [v, p, f]
3274
+ "backdrop-saturate": [w, p, f]
3198
3275
  }],
3199
3276
  /**
3200
3277
  * Backdrop Sepia
3201
3278
  * @see https://tailwindcss.com/docs/backdrop-sepia
3202
3279
  */
3203
3280
  "backdrop-sepia": [{
3204
- "backdrop-sepia": ["", v, p, f]
3281
+ "backdrop-sepia": ["", w, p, f]
3205
3282
  }],
3206
3283
  // --------------
3207
3284
  // --- Tables ---
@@ -3218,21 +3295,21 @@ const xr = (e, t) => {
3218
3295
  * @see https://tailwindcss.com/docs/border-spacing
3219
3296
  */
3220
3297
  "border-spacing": [{
3221
- "border-spacing": d()
3298
+ "border-spacing": m()
3222
3299
  }],
3223
3300
  /**
3224
3301
  * Border Spacing X
3225
3302
  * @see https://tailwindcss.com/docs/border-spacing
3226
3303
  */
3227
3304
  "border-spacing-x": [{
3228
- "border-spacing-x": d()
3305
+ "border-spacing-x": m()
3229
3306
  }],
3230
3307
  /**
3231
3308
  * Border Spacing Y
3232
3309
  * @see https://tailwindcss.com/docs/border-spacing
3233
3310
  */
3234
3311
  "border-spacing-y": [{
3235
- "border-spacing-y": d()
3312
+ "border-spacing-y": m()
3236
3313
  }],
3237
3314
  /**
3238
3315
  * Table Layout
@@ -3270,21 +3347,21 @@ const xr = (e, t) => {
3270
3347
  * @see https://tailwindcss.com/docs/transition-duration
3271
3348
  */
3272
3349
  duration: [{
3273
- duration: [v, "initial", p, f]
3350
+ duration: [w, "initial", p, f]
3274
3351
  }],
3275
3352
  /**
3276
3353
  * Transition Timing Function
3277
3354
  * @see https://tailwindcss.com/docs/transition-timing-function
3278
3355
  */
3279
3356
  ease: [{
3280
- ease: ["linear", "initial", F, p, f]
3357
+ ease: ["linear", "initial", R, p, f]
3281
3358
  }],
3282
3359
  /**
3283
3360
  * Transition Delay
3284
3361
  * @see https://tailwindcss.com/docs/transition-delay
3285
3362
  */
3286
3363
  delay: [{
3287
- delay: [v, p, f]
3364
+ delay: [w, p, f]
3288
3365
  }],
3289
3366
  /**
3290
3367
  * Animation
@@ -3308,14 +3385,14 @@ const xr = (e, t) => {
3308
3385
  * @see https://tailwindcss.com/docs/perspective
3309
3386
  */
3310
3387
  perspective: [{
3311
- perspective: [j, p, f]
3388
+ perspective: [C, p, f]
3312
3389
  }],
3313
3390
  /**
3314
3391
  * Perspective Origin
3315
3392
  * @see https://tailwindcss.com/docs/perspective-origin
3316
3393
  */
3317
3394
  "perspective-origin": [{
3318
- "perspective-origin": k()
3395
+ "perspective-origin": j()
3319
3396
  }],
3320
3397
  /**
3321
3398
  * Rotate
@@ -3350,28 +3427,28 @@ const xr = (e, t) => {
3350
3427
  * @see https://tailwindcss.com/docs/scale
3351
3428
  */
3352
3429
  scale: [{
3353
- scale: he()
3430
+ scale: ye()
3354
3431
  }],
3355
3432
  /**
3356
3433
  * Scale X
3357
3434
  * @see https://tailwindcss.com/docs/scale
3358
3435
  */
3359
3436
  "scale-x": [{
3360
- "scale-x": he()
3437
+ "scale-x": ye()
3361
3438
  }],
3362
3439
  /**
3363
3440
  * Scale Y
3364
3441
  * @see https://tailwindcss.com/docs/scale
3365
3442
  */
3366
3443
  "scale-y": [{
3367
- "scale-y": he()
3444
+ "scale-y": ye()
3368
3445
  }],
3369
3446
  /**
3370
3447
  * Scale Z
3371
3448
  * @see https://tailwindcss.com/docs/scale
3372
3449
  */
3373
3450
  "scale-z": [{
3374
- "scale-z": he()
3451
+ "scale-z": ye()
3375
3452
  }],
3376
3453
  /**
3377
3454
  * Scale 3D
@@ -3383,21 +3460,21 @@ const xr = (e, t) => {
3383
3460
  * @see https://tailwindcss.com/docs/skew
3384
3461
  */
3385
3462
  skew: [{
3386
- skew: _e()
3463
+ skew: Pe()
3387
3464
  }],
3388
3465
  /**
3389
3466
  * Skew X
3390
3467
  * @see https://tailwindcss.com/docs/skew
3391
3468
  */
3392
3469
  "skew-x": [{
3393
- "skew-x": _e()
3470
+ "skew-x": Pe()
3394
3471
  }],
3395
3472
  /**
3396
3473
  * Skew Y
3397
3474
  * @see https://tailwindcss.com/docs/skew
3398
3475
  */
3399
3476
  "skew-y": [{
3400
- "skew-y": _e()
3477
+ "skew-y": Pe()
3401
3478
  }],
3402
3479
  /**
3403
3480
  * Transform
@@ -3411,7 +3488,7 @@ const xr = (e, t) => {
3411
3488
  * @see https://tailwindcss.com/docs/transform-origin
3412
3489
  */
3413
3490
  "transform-origin": [{
3414
- origin: k()
3491
+ origin: j()
3415
3492
  }],
3416
3493
  /**
3417
3494
  * Transform Style
@@ -3425,28 +3502,28 @@ const xr = (e, t) => {
3425
3502
  * @see https://tailwindcss.com/docs/translate
3426
3503
  */
3427
3504
  translate: [{
3428
- translate: ge()
3505
+ translate: ve()
3429
3506
  }],
3430
3507
  /**
3431
3508
  * Translate X
3432
3509
  * @see https://tailwindcss.com/docs/translate
3433
3510
  */
3434
3511
  "translate-x": [{
3435
- "translate-x": ge()
3512
+ "translate-x": ve()
3436
3513
  }],
3437
3514
  /**
3438
3515
  * Translate Y
3439
3516
  * @see https://tailwindcss.com/docs/translate
3440
3517
  */
3441
3518
  "translate-y": [{
3442
- "translate-y": ge()
3519
+ "translate-y": ve()
3443
3520
  }],
3444
3521
  /**
3445
3522
  * Translate Z
3446
3523
  * @see https://tailwindcss.com/docs/translate
3447
3524
  */
3448
3525
  "translate-z": [{
3449
- "translate-z": ge()
3526
+ "translate-z": ve()
3450
3527
  }],
3451
3528
  /**
3452
3529
  * Translate None
@@ -3461,7 +3538,7 @@ const xr = (e, t) => {
3461
3538
  * @see https://tailwindcss.com/docs/accent-color
3462
3539
  */
3463
3540
  accent: [{
3464
- accent: g()
3541
+ accent: y()
3465
3542
  }],
3466
3543
  /**
3467
3544
  * Appearance
@@ -3475,7 +3552,7 @@ const xr = (e, t) => {
3475
3552
  * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
3476
3553
  */
3477
3554
  "caret-color": [{
3478
- caret: g()
3555
+ caret: y()
3479
3556
  }],
3480
3557
  /**
3481
3558
  * Color Scheme
@@ -3524,154 +3601,154 @@ const xr = (e, t) => {
3524
3601
  * @see https://tailwindcss.com/docs/scroll-margin
3525
3602
  */
3526
3603
  "scroll-m": [{
3527
- "scroll-m": d()
3604
+ "scroll-m": m()
3528
3605
  }],
3529
3606
  /**
3530
3607
  * Scroll Margin Inline
3531
3608
  * @see https://tailwindcss.com/docs/scroll-margin
3532
3609
  */
3533
3610
  "scroll-mx": [{
3534
- "scroll-mx": d()
3611
+ "scroll-mx": m()
3535
3612
  }],
3536
3613
  /**
3537
3614
  * Scroll Margin Block
3538
3615
  * @see https://tailwindcss.com/docs/scroll-margin
3539
3616
  */
3540
3617
  "scroll-my": [{
3541
- "scroll-my": d()
3618
+ "scroll-my": m()
3542
3619
  }],
3543
3620
  /**
3544
3621
  * Scroll Margin Inline Start
3545
3622
  * @see https://tailwindcss.com/docs/scroll-margin
3546
3623
  */
3547
3624
  "scroll-ms": [{
3548
- "scroll-ms": d()
3625
+ "scroll-ms": m()
3549
3626
  }],
3550
3627
  /**
3551
3628
  * Scroll Margin Inline End
3552
3629
  * @see https://tailwindcss.com/docs/scroll-margin
3553
3630
  */
3554
3631
  "scroll-me": [{
3555
- "scroll-me": d()
3632
+ "scroll-me": m()
3556
3633
  }],
3557
3634
  /**
3558
3635
  * Scroll Margin Block Start
3559
3636
  * @see https://tailwindcss.com/docs/scroll-margin
3560
3637
  */
3561
3638
  "scroll-mbs": [{
3562
- "scroll-mbs": d()
3639
+ "scroll-mbs": m()
3563
3640
  }],
3564
3641
  /**
3565
3642
  * Scroll Margin Block End
3566
3643
  * @see https://tailwindcss.com/docs/scroll-margin
3567
3644
  */
3568
3645
  "scroll-mbe": [{
3569
- "scroll-mbe": d()
3646
+ "scroll-mbe": m()
3570
3647
  }],
3571
3648
  /**
3572
3649
  * Scroll Margin Top
3573
3650
  * @see https://tailwindcss.com/docs/scroll-margin
3574
3651
  */
3575
3652
  "scroll-mt": [{
3576
- "scroll-mt": d()
3653
+ "scroll-mt": m()
3577
3654
  }],
3578
3655
  /**
3579
3656
  * Scroll Margin Right
3580
3657
  * @see https://tailwindcss.com/docs/scroll-margin
3581
3658
  */
3582
3659
  "scroll-mr": [{
3583
- "scroll-mr": d()
3660
+ "scroll-mr": m()
3584
3661
  }],
3585
3662
  /**
3586
3663
  * Scroll Margin Bottom
3587
3664
  * @see https://tailwindcss.com/docs/scroll-margin
3588
3665
  */
3589
3666
  "scroll-mb": [{
3590
- "scroll-mb": d()
3667
+ "scroll-mb": m()
3591
3668
  }],
3592
3669
  /**
3593
3670
  * Scroll Margin Left
3594
3671
  * @see https://tailwindcss.com/docs/scroll-margin
3595
3672
  */
3596
3673
  "scroll-ml": [{
3597
- "scroll-ml": d()
3674
+ "scroll-ml": m()
3598
3675
  }],
3599
3676
  /**
3600
3677
  * Scroll Padding
3601
3678
  * @see https://tailwindcss.com/docs/scroll-padding
3602
3679
  */
3603
3680
  "scroll-p": [{
3604
- "scroll-p": d()
3681
+ "scroll-p": m()
3605
3682
  }],
3606
3683
  /**
3607
3684
  * Scroll Padding Inline
3608
3685
  * @see https://tailwindcss.com/docs/scroll-padding
3609
3686
  */
3610
3687
  "scroll-px": [{
3611
- "scroll-px": d()
3688
+ "scroll-px": m()
3612
3689
  }],
3613
3690
  /**
3614
3691
  * Scroll Padding Block
3615
3692
  * @see https://tailwindcss.com/docs/scroll-padding
3616
3693
  */
3617
3694
  "scroll-py": [{
3618
- "scroll-py": d()
3695
+ "scroll-py": m()
3619
3696
  }],
3620
3697
  /**
3621
3698
  * Scroll Padding Inline Start
3622
3699
  * @see https://tailwindcss.com/docs/scroll-padding
3623
3700
  */
3624
3701
  "scroll-ps": [{
3625
- "scroll-ps": d()
3702
+ "scroll-ps": m()
3626
3703
  }],
3627
3704
  /**
3628
3705
  * Scroll Padding Inline End
3629
3706
  * @see https://tailwindcss.com/docs/scroll-padding
3630
3707
  */
3631
3708
  "scroll-pe": [{
3632
- "scroll-pe": d()
3709
+ "scroll-pe": m()
3633
3710
  }],
3634
3711
  /**
3635
3712
  * Scroll Padding Block Start
3636
3713
  * @see https://tailwindcss.com/docs/scroll-padding
3637
3714
  */
3638
3715
  "scroll-pbs": [{
3639
- "scroll-pbs": d()
3716
+ "scroll-pbs": m()
3640
3717
  }],
3641
3718
  /**
3642
3719
  * Scroll Padding Block End
3643
3720
  * @see https://tailwindcss.com/docs/scroll-padding
3644
3721
  */
3645
3722
  "scroll-pbe": [{
3646
- "scroll-pbe": d()
3723
+ "scroll-pbe": m()
3647
3724
  }],
3648
3725
  /**
3649
3726
  * Scroll Padding Top
3650
3727
  * @see https://tailwindcss.com/docs/scroll-padding
3651
3728
  */
3652
3729
  "scroll-pt": [{
3653
- "scroll-pt": d()
3730
+ "scroll-pt": m()
3654
3731
  }],
3655
3732
  /**
3656
3733
  * Scroll Padding Right
3657
3734
  * @see https://tailwindcss.com/docs/scroll-padding
3658
3735
  */
3659
3736
  "scroll-pr": [{
3660
- "scroll-pr": d()
3737
+ "scroll-pr": m()
3661
3738
  }],
3662
3739
  /**
3663
3740
  * Scroll Padding Bottom
3664
3741
  * @see https://tailwindcss.com/docs/scroll-padding
3665
3742
  */
3666
3743
  "scroll-pb": [{
3667
- "scroll-pb": d()
3744
+ "scroll-pb": m()
3668
3745
  }],
3669
3746
  /**
3670
3747
  * Scroll Padding Left
3671
3748
  * @see https://tailwindcss.com/docs/scroll-padding
3672
3749
  */
3673
3750
  "scroll-pl": [{
3674
- "scroll-pl": d()
3751
+ "scroll-pl": m()
3675
3752
  }],
3676
3753
  /**
3677
3754
  * Scroll Snap Align
@@ -3749,21 +3826,21 @@ const xr = (e, t) => {
3749
3826
  * @see https://tailwindcss.com/docs/fill
3750
3827
  */
3751
3828
  fill: [{
3752
- fill: ["none", ...g()]
3829
+ fill: ["none", ...y()]
3753
3830
  }],
3754
3831
  /**
3755
3832
  * Stroke Width
3756
3833
  * @see https://tailwindcss.com/docs/stroke-width
3757
3834
  */
3758
3835
  "stroke-w": [{
3759
- stroke: [v, ue, te, Ze]
3836
+ stroke: [w, me, oe, Ke]
3760
3837
  }],
3761
3838
  /**
3762
3839
  * Stroke
3763
3840
  * @see https://tailwindcss.com/docs/stroke
3764
3841
  */
3765
3842
  stroke: [{
3766
- stroke: ["none", ...g()]
3843
+ stroke: ["none", ...y()]
3767
3844
  }],
3768
3845
  // ---------------------
3769
3846
  // --- Accessibility ---
@@ -3831,23 +3908,23 @@ const xr = (e, t) => {
3831
3908
  },
3832
3909
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
3833
3910
  };
3834
- }, io = /* @__PURE__ */ Dr(ao);
3911
+ }, mo = /* @__PURE__ */ Ur(uo);
3835
3912
  function Le(...e) {
3836
- return io(yr(e));
3913
+ return mo(kr(e));
3837
3914
  }
3838
- class lo extends rt {
3915
+ class fo extends ot {
3839
3916
  constructor(t) {
3840
3917
  super(t), this.state = { hasError: !1 };
3841
3918
  }
3842
3919
  static getDerivedStateFromError() {
3843
3920
  return { hasError: !0 };
3844
3921
  }
3845
- componentDidCatch(t, r) {
3846
- console.error(`[JsonPages] Component Crash [${this.props.type}]:`, t, r);
3922
+ componentDidCatch(t, o) {
3923
+ console.error(`[JsonPages] Component Crash [${this.props.type}]:`, t, o);
3847
3924
  }
3848
3925
  render() {
3849
3926
  return this.state.hasError ? /* @__PURE__ */ u.jsxs("div", { className: "p-8 m-4 bg-amber-500/5 border-2 border-dashed border-amber-500/20 rounded-xl flex flex-col items-center text-center gap-3", children: [
3850
- /* @__PURE__ */ u.jsx(gr, { className: "text-amber-500", size: 32 }),
3927
+ /* @__PURE__ */ u.jsx(wr, { className: "text-amber-500", size: 32 }),
3851
3928
  /* @__PURE__ */ u.jsxs("div", { className: "space-y-1", children: [
3852
3929
  /* @__PURE__ */ u.jsx("h4", { className: "text-sm font-bold text-amber-200 uppercase tracking-tight", children: "Component Error" }),
3853
3930
  /* @__PURE__ */ u.jsxs("p", { className: "text-xs text-amber-500/70 font-mono", children: [
@@ -3859,7 +3936,7 @@ class lo extends rt {
3859
3936
  ] }) : this.props.children;
3860
3937
  }
3861
3938
  }
3862
- const co = ({ type: e, scope: t, isSelected: r, sectionId: o, sectionIndex: n = 0, totalSections: s = 0, onReorder: a }) => {
3939
+ const po = ({ type: e, scope: t, isSelected: o, sectionId: r, sectionIndex: n = 0, totalSections: s = 0, onReorder: a }) => {
3863
3940
  const c = typeof n == "number" && n > 0 && a, l = typeof n == "number" && n < s - 1 && a;
3864
3941
  return /* @__PURE__ */ u.jsx(
3865
3942
  "div",
@@ -3869,7 +3946,7 @@ const co = ({ type: e, scope: t, isSelected: r, sectionId: o, sectionIndex: n =
3869
3946
  className: Le(
3870
3947
  "absolute inset-0 pointer-events-none transition-all duration-200 z-[50]",
3871
3948
  "border-2 border-transparent group-hover:border-blue-400/50 group-hover:border-dashed",
3872
- r && "border-2 border-blue-600 border-solid bg-blue-500/5"
3949
+ o && "border-2 border-blue-600 border-solid bg-blue-500/5"
3873
3950
  ),
3874
3951
  children: /* @__PURE__ */ u.jsxs(
3875
3952
  "div",
@@ -3877,36 +3954,36 @@ const co = ({ type: e, scope: t, isSelected: r, sectionId: o, sectionIndex: n =
3877
3954
  className: Le(
3878
3955
  "absolute top-0 right-0 flex flex-nowrap items-center gap-1 pl-1 pr-2 py-1 text-[9px] font-black uppercase tracking-widest transition-opacity pointer-events-auto",
3879
3956
  "bg-blue-600 text-white",
3880
- r || "group-hover:opacity-100 opacity-0"
3957
+ o || "group-hover:opacity-100 opacity-0"
3881
3958
  ),
3882
3959
  children: [
3883
- a && o != null && /* @__PURE__ */ u.jsxs("span", { className: "shrink-0 flex items-center gap-0.5", children: [
3960
+ a && r != null && /* @__PURE__ */ u.jsxs("span", { className: "shrink-0 flex items-center gap-0.5", children: [
3884
3961
  /* @__PURE__ */ u.jsx(
3885
3962
  "button",
3886
3963
  {
3887
3964
  type: "button",
3888
- onClick: (m) => {
3889
- m.stopPropagation(), c && a(o, n - 1);
3965
+ onClick: (d) => {
3966
+ d.stopPropagation(), c && a(r, n - 1);
3890
3967
  },
3891
3968
  disabled: !c,
3892
3969
  className: "inline-flex items-center justify-center min-w-[18px] min-h-[18px] rounded bg-white/20 hover:bg-white/30 disabled:opacity-30 disabled:pointer-events-none",
3893
3970
  title: "Move section up",
3894
3971
  "aria-label": "Move section up",
3895
- children: /* @__PURE__ */ u.jsx(br, { size: 12, strokeWidth: 2.5 })
3972
+ children: /* @__PURE__ */ u.jsx(vr, { size: 12, strokeWidth: 2.5 })
3896
3973
  }
3897
3974
  ),
3898
3975
  /* @__PURE__ */ u.jsx(
3899
3976
  "button",
3900
3977
  {
3901
3978
  type: "button",
3902
- onClick: (m) => {
3903
- m.stopPropagation(), l && a(o, n + 2);
3979
+ onClick: (d) => {
3980
+ d.stopPropagation(), l && a(r, n + 2);
3904
3981
  },
3905
3982
  disabled: !l,
3906
3983
  className: "inline-flex items-center justify-center min-w-[18px] min-h-[18px] rounded bg-white/20 hover:bg-white/30 disabled:opacity-30 disabled:pointer-events-none",
3907
3984
  title: "Move section down",
3908
3985
  "aria-label": "Move section down",
3909
- children: /* @__PURE__ */ u.jsx(fr, { size: 12, strokeWidth: 2.5 })
3986
+ children: /* @__PURE__ */ u.jsx(br, { size: 12, strokeWidth: 2.5 })
3910
3987
  }
3911
3988
  )
3912
3989
  ] }),
@@ -3918,135 +3995,135 @@ const co = ({ type: e, scope: t, isSelected: r, sectionId: o, sectionIndex: n =
3918
3995
  )
3919
3996
  }
3920
3997
  );
3921
- }, Se = ({
3998
+ }, Te = ({
3922
3999
  section: e,
3923
4000
  menu: t,
3924
- selectedId: r,
3925
- reorderable: o,
4001
+ selectedId: o,
4002
+ reorderable: r,
3926
4003
  sectionIndex: n,
3927
4004
  totalSections: s,
3928
4005
  onReorder: a
3929
4006
  }) => {
3930
- const { mode: c } = ir(), { registry: l, overlayDisabledSectionTypes: m } = Qt(), b = c === "studio", h = b && r === e.id, y = l[e.type], w = e.type === "header" || e.type === "footer" ? "global" : "local", A = Array.isArray(m) ? m.includes(e.type) : !1, j = e.type === "header" && typeof e.settings == "object" && e.settings !== null && "sticky" in e.settings && !!e.settings.sticky;
3931
- if (!y)
4007
+ const { mode: c } = ur(), { registry: l, overlayDisabledSectionTypes: d } = or(), g = c === "studio", h = g && o === e.id, b = l[e.type], v = e.type === "header" || e.type === "footer" ? "global" : "local", S = Array.isArray(d) ? d.includes(e.type) : !1, C = e.type === "header" && typeof e.settings == "object" && e.settings !== null && "sticky" in e.settings && !!e.settings.sticky;
4008
+ if (!b)
3932
4009
  return /* @__PURE__ */ u.jsxs("div", { className: "p-6 m-4 bg-red-500/10 text-red-400 border border-red-500/20 rounded-lg text-sm font-mono", children: [
3933
4010
  /* @__PURE__ */ u.jsx("strong", { children: "Missing Component:" }),
3934
4011
  " ",
3935
4012
  e.type
3936
4013
  ] });
3937
- const C = () => {
3938
- const W = y;
4014
+ const E = () => {
4015
+ const W = b;
3939
4016
  return t ? /* @__PURE__ */ u.jsx(W, { data: e.data, settings: e.settings, menu: t }) : /* @__PURE__ */ u.jsx(W, { data: e.data, settings: e.settings });
3940
- }, F = typeof e.data == "object" && e.data !== null && "anchorId" in e.data ? String(e.data.anchorId ?? "") : void 0;
4017
+ }, R = typeof e.data == "object" && e.data !== null && "anchorId" in e.data ? String(e.data.anchorId ?? "") : void 0;
3941
4018
  return /* @__PURE__ */ u.jsxs(
3942
4019
  "div",
3943
4020
  {
3944
- id: F || void 0,
3945
- "data-section-id": b ? e.id : void 0,
3946
- "data-section-type": b ? e.type : void 0,
3947
- "data-section-scope": b ? w : void 0,
3948
- ...b && h ? { "data-jp-selected": !0 } : {},
4021
+ id: R || void 0,
4022
+ "data-section-id": g ? e.id : void 0,
4023
+ "data-section-type": g ? e.type : void 0,
4024
+ "data-section-scope": g ? v : void 0,
4025
+ ...g && h ? { "data-jp-selected": !0 } : {},
3949
4026
  className: Le(
3950
4027
  "relative w-full",
3951
- b && !A && "group cursor-pointer",
3952
- b && j ? "sticky top-0 z-[60]" : e.type === "header" ? "relative" : "relative z-0",
4028
+ g && !S && "group cursor-pointer",
4029
+ g && C ? "sticky top-0 z-[60]" : e.type === "header" ? "relative" : "relative z-0",
3953
4030
  h && "z-[70]"
3954
4031
  ),
3955
4032
  children: [
3956
- /* @__PURE__ */ u.jsx("div", { className: e.type === "header" ? "relative" : "relative z-0", children: /* @__PURE__ */ u.jsx(lo, { type: e.type, children: C() }) }),
3957
- b && !A && /* @__PURE__ */ u.jsx(
3958
- co,
4033
+ /* @__PURE__ */ u.jsx("div", { className: e.type === "header" ? "relative" : "relative z-0", children: /* @__PURE__ */ u.jsx(fo, { type: e.type, children: E() }) }),
4034
+ g && !S && /* @__PURE__ */ u.jsx(
4035
+ po,
3959
4036
  {
3960
4037
  type: e.type,
3961
- scope: w,
4038
+ scope: v,
3962
4039
  isSelected: !!h,
3963
- sectionId: o && w === "local" ? e.id : void 0,
3964
- sectionIndex: o && w === "local" ? n : void 0,
3965
- totalSections: o && w === "local" ? s : void 0,
3966
- onReorder: o && w === "local" ? a : void 0
4040
+ sectionId: r && v === "local" ? e.id : void 0,
4041
+ sectionIndex: r && v === "local" ? n : void 0,
4042
+ totalSections: r && v === "local" ? s : void 0,
4043
+ onReorder: r && v === "local" ? a : void 0
3967
4044
  }
3968
4045
  )
3969
4046
  ]
3970
4047
  }
3971
4048
  );
3972
- }, uo = (e) => {
3973
- oe(() => {
4049
+ }, go = (e) => {
4050
+ se(() => {
3974
4051
  document.title = e.title;
3975
4052
  let t = document.querySelector('meta[name="description"]');
3976
4053
  t || (t = document.createElement("meta"), t.setAttribute("name", "description"), document.head.appendChild(t)), t.setAttribute("content", e.description);
3977
4054
  }, [e.title, e.description]);
3978
- }, mo = "application/json", fo = ({
4055
+ }, ho = "application/json", bo = ({
3979
4056
  pageConfig: e,
3980
4057
  siteConfig: t,
3981
- menuConfig: r,
3982
- selectedId: o,
4058
+ menuConfig: o,
4059
+ selectedId: r,
3983
4060
  onReorder: n,
3984
4061
  scrollToSectionId: s,
3985
4062
  onActiveSectionChange: a
3986
4063
  }) => {
3987
- uo(e.meta);
3988
- const [c, l] = ot(null), m = Be({}), b = Be(a);
3989
- b.current = a;
3990
- const h = lr(e, t), y = h ? t.header ?? null : null, w = t.footer ?? null, A = (E) => {
3991
- var O;
3992
- (O = b.current) == null || O.call(b, E);
4064
+ go(e.meta);
4065
+ const [c, l] = nt(null), d = Ue({}), g = Ue(a);
4066
+ g.current = a;
4067
+ const h = mr(e, t), b = h ? t.header ?? null : null, v = t.footer ?? null, S = (k) => {
4068
+ var T;
4069
+ (T = g.current) == null || T.call(g, k);
3993
4070
  };
3994
- oe(() => {
4071
+ se(() => {
3995
4072
  if (!s) return;
3996
- const E = m.current[s];
3997
- E && E.scrollIntoView({ behavior: "smooth", block: "center" });
3998
- }, [s]), oe(() => {
3999
- if (!b.current) return;
4000
- const O = [
4001
- ...y ? [y.id] : [],
4002
- ...e.sections.map((d) => d.id),
4003
- ...w ? [w.id] : []
4004
- ], k = new IntersectionObserver(
4005
- (d) => {
4006
- d.forEach((S) => {
4073
+ const k = d.current[s];
4074
+ k && k.scrollIntoView({ behavior: "smooth", block: "center" });
4075
+ }, [s]), se(() => {
4076
+ if (!g.current) return;
4077
+ const T = [
4078
+ ...b ? [b.id] : [],
4079
+ ...e.sections.map((m) => m.id),
4080
+ ...v ? [v.id] : []
4081
+ ], j = new IntersectionObserver(
4082
+ (m) => {
4083
+ m.forEach((A) => {
4007
4084
  var J;
4008
- if (S.isIntersecting && S.intersectionRatio > 0.5) {
4009
- const Y = S.target.getAttribute("data-section-id");
4010
- Y && ((J = b.current) == null || J.call(b, Y));
4085
+ if (A.isIntersecting && A.intersectionRatio > 0.5) {
4086
+ const Y = A.target.getAttribute("data-section-id");
4087
+ Y && ((J = g.current) == null || J.call(g, Y));
4011
4088
  }
4012
4089
  });
4013
4090
  },
4014
4091
  { threshold: [0, 0.5, 1], rootMargin: "-20% 0px -20% 0px" }
4015
4092
  );
4016
- let T = !1;
4017
- const M = requestAnimationFrame(() => {
4018
- T || O.forEach((d) => {
4019
- const S = m.current[d];
4020
- S && k.observe(S);
4093
+ let _ = !1;
4094
+ const $ = requestAnimationFrame(() => {
4095
+ _ || T.forEach((m) => {
4096
+ const A = d.current[m];
4097
+ A && j.observe(A);
4021
4098
  });
4022
4099
  });
4023
4100
  return () => {
4024
- T = !0, cancelAnimationFrame(M), k.disconnect();
4101
+ _ = !0, cancelAnimationFrame($), j.disconnect();
4025
4102
  };
4026
- }, [w, y, e.sections, e["global-header"], h]);
4027
- const j = (E, O) => {
4028
- E.preventDefault(), E.dataTransfer.dropEffect = "move", l(O);
4029
- }, C = () => {
4103
+ }, [v, b, e.sections, e["global-header"], h]);
4104
+ const C = (k, T) => {
4105
+ k.preventDefault(), k.dataTransfer.dropEffect = "move", l(T);
4106
+ }, E = () => {
4030
4107
  l(null);
4031
- }, F = (E, O) => {
4032
- if (E.preventDefault(), l(null), !!n)
4108
+ }, R = (k, T) => {
4109
+ if (k.preventDefault(), l(null), !!n)
4033
4110
  try {
4034
- const k = E.dataTransfer.getData(mo), { sectionId: T } = JSON.parse(k);
4035
- typeof T == "string" && n(T, O);
4111
+ const j = k.dataTransfer.getData(ho), { sectionId: _ } = JSON.parse(j);
4112
+ typeof _ == "string" && n(_, T);
4036
4113
  } catch {
4037
4114
  }
4038
4115
  }, W = () => {
4039
- const E = typeof n == "function", O = e.sections.map((k, T) => {
4040
- const M = c === T;
4041
- return E ? /* @__PURE__ */ u.jsxs(
4116
+ const k = typeof n == "function", T = e.sections.map((j, _) => {
4117
+ const $ = c === _;
4118
+ return k ? /* @__PURE__ */ u.jsxs(
4042
4119
  "div",
4043
4120
  {
4044
- ref: (d) => {
4045
- m.current[k.id] = d;
4121
+ ref: (m) => {
4122
+ d.current[j.id] = m;
4046
4123
  },
4047
- "data-section-id": k.id,
4124
+ "data-section-id": j.id,
4048
4125
  style: { position: "relative" },
4049
- onMouseEnter: () => A(k.id),
4126
+ onMouseEnter: () => S(j.id),
4050
4127
  children: [
4051
4128
  /* @__PURE__ */ u.jsx(
4052
4129
  "div",
@@ -4060,52 +4137,52 @@ const co = ({ type: e, scope: t, isSelected: r, sectionId: o, sectionIndex: n =
4060
4137
  height: 12,
4061
4138
  zIndex: 55,
4062
4139
  pointerEvents: "auto",
4063
- backgroundColor: M ? "rgba(59, 130, 246, 0.4)" : "transparent",
4064
- borderTop: M ? "2px solid rgb(96, 165, 250)" : "2px solid transparent"
4140
+ backgroundColor: $ ? "rgba(59, 130, 246, 0.4)" : "transparent",
4141
+ borderTop: $ ? "2px solid rgb(96, 165, 250)" : "2px solid transparent"
4065
4142
  },
4066
- onDragOver: (d) => j(d, T),
4067
- onDragLeave: C,
4068
- onDrop: (d) => F(d, T)
4143
+ onDragOver: (m) => C(m, _),
4144
+ onDragLeave: E,
4145
+ onDrop: (m) => R(m, _)
4069
4146
  }
4070
4147
  ),
4071
4148
  /* @__PURE__ */ u.jsx(
4072
- Se,
4149
+ Te,
4073
4150
  {
4074
- section: k,
4075
- menu: we(k, r.main ?? []),
4076
- selectedId: o,
4151
+ section: j,
4152
+ menu: je(j, o.main ?? []),
4153
+ selectedId: r,
4077
4154
  reorderable: !0,
4078
- sectionIndex: T,
4155
+ sectionIndex: _,
4079
4156
  totalSections: e.sections.length,
4080
4157
  onReorder: n
4081
4158
  }
4082
4159
  )
4083
4160
  ]
4084
4161
  },
4085
- k.id
4162
+ j.id
4086
4163
  ) : /* @__PURE__ */ u.jsx(
4087
4164
  "div",
4088
4165
  {
4089
- ref: (d) => {
4090
- m.current[k.id] = d;
4166
+ ref: (m) => {
4167
+ d.current[j.id] = m;
4091
4168
  },
4092
- "data-section-id": k.id,
4093
- onMouseEnter: () => A(k.id),
4169
+ "data-section-id": j.id,
4170
+ onMouseEnter: () => S(j.id),
4094
4171
  children: /* @__PURE__ */ u.jsx(
4095
- Se,
4172
+ Te,
4096
4173
  {
4097
- section: k,
4098
- menu: we(k, r.main ?? []),
4099
- selectedId: o
4174
+ section: j,
4175
+ menu: je(j, o.main ?? []),
4176
+ selectedId: r
4100
4177
  }
4101
4178
  )
4102
4179
  },
4103
- k.id
4180
+ j.id
4104
4181
  );
4105
4182
  });
4106
- if (E && O.length > 0) {
4107
- const k = e.sections.length, T = c === k;
4108
- O.push(
4183
+ if (k && T.length > 0) {
4184
+ const j = e.sections.length, _ = c === j;
4185
+ T.push(
4109
4186
  /* @__PURE__ */ u.jsx(
4110
4187
  "div",
4111
4188
  {
@@ -4118,60 +4195,60 @@ const co = ({ type: e, scope: t, isSelected: r, sectionId: o, sectionIndex: n =
4118
4195
  minHeight: 24,
4119
4196
  zIndex: 55,
4120
4197
  pointerEvents: "auto",
4121
- backgroundColor: T ? "rgba(59, 130, 246, 0.4)" : "transparent",
4122
- borderTop: T ? "2px solid rgb(96, 165, 250)" : "2px solid transparent"
4198
+ backgroundColor: _ ? "rgba(59, 130, 246, 0.4)" : "transparent",
4199
+ borderTop: _ ? "2px solid rgb(96, 165, 250)" : "2px solid transparent"
4123
4200
  },
4124
- onDragOver: (M) => j(M, k),
4125
- onDragLeave: C,
4126
- onDrop: (M) => F(M, k)
4201
+ onDragOver: ($) => C($, j),
4202
+ onDragLeave: E,
4203
+ onDrop: ($) => R($, j)
4127
4204
  },
4128
4205
  "jp-drop-after-last"
4129
4206
  )
4130
4207
  );
4131
4208
  }
4132
- return O;
4209
+ return T;
4133
4210
  };
4134
4211
  return /* @__PURE__ */ u.jsxs("div", { className: "min-h-screen flex flex-col bg-[var(--color-background)]", children: [
4135
- y != null && /* @__PURE__ */ u.jsx(
4212
+ b != null && /* @__PURE__ */ u.jsx(
4136
4213
  "div",
4137
4214
  {
4138
- ref: (E) => {
4139
- m.current[y.id] = E;
4215
+ ref: (k) => {
4216
+ d.current[b.id] = k;
4140
4217
  },
4141
- "data-section-id": y.id,
4142
- onMouseEnter: () => A(y.id),
4218
+ "data-section-id": b.id,
4219
+ onMouseEnter: () => S(b.id),
4143
4220
  children: /* @__PURE__ */ u.jsx(
4144
- Se,
4221
+ Te,
4145
4222
  {
4146
- section: y,
4147
- menu: we(y, r.main ?? []),
4148
- selectedId: o
4223
+ section: b,
4224
+ menu: je(b, o.main ?? []),
4225
+ selectedId: r
4149
4226
  }
4150
4227
  )
4151
4228
  }
4152
4229
  ),
4153
4230
  /* @__PURE__ */ u.jsx("main", { className: "flex-1", children: W() }),
4154
- w != null && /* @__PURE__ */ u.jsx(
4231
+ v != null && /* @__PURE__ */ u.jsx(
4155
4232
  "div",
4156
4233
  {
4157
- ref: (E) => {
4158
- m.current[w.id] = E;
4234
+ ref: (k) => {
4235
+ d.current[v.id] = k;
4159
4236
  },
4160
- "data-section-id": w.id,
4161
- onMouseEnter: () => A(w.id),
4237
+ "data-section-id": v.id,
4238
+ onMouseEnter: () => S(v.id),
4162
4239
  children: /* @__PURE__ */ u.jsx(
4163
- Se,
4240
+ Te,
4164
4241
  {
4165
- section: w,
4166
- menu: we(w, r.main ?? []),
4167
- selectedId: o
4242
+ section: v,
4243
+ menu: je(v, o.main ?? []),
4244
+ selectedId: r
4168
4245
  }
4169
4246
  )
4170
4247
  }
4171
4248
  )
4172
4249
  ] });
4173
- }, po = ({ mode: e, tenantCss: t, adminCss: r, children: o }) => (Rt(() => {
4174
- const n = `jp-theme-${e}`, s = e === "tenant" ? t : r;
4250
+ }, yo = ({ mode: e, tenantCss: t, adminCss: o, children: r }) => (_t(() => {
4251
+ const n = `jp-theme-${e}`, s = e === "tenant" ? t : o;
4175
4252
  if (!document.getElementById(n) && s) {
4176
4253
  const a = document.createElement("style");
4177
4254
  a.id = n, a.innerHTML = s, document.head.appendChild(a);
@@ -4180,23 +4257,23 @@ const co = ({ type: e, scope: t, isSelected: r, sectionId: o, sectionIndex: n =
4180
4257
  const a = document.getElementById(n);
4181
4258
  a && a.remove();
4182
4259
  };
4183
- }, [e, t, r]), /* @__PURE__ */ u.jsx(u.Fragment, { children: o }));
4184
- function et(e, t) {
4260
+ }, [e, t, o]), /* @__PURE__ */ u.jsx(u.Fragment, { children: r }));
4261
+ function tt(e, t) {
4185
4262
  if (typeof document > "u") return;
4186
- const r = `link[rel="${e}"]`;
4187
- let o = document.head.querySelector(r);
4188
- o || (o = document.createElement("link"), o.rel = e, document.head.appendChild(o)), o.href = t;
4263
+ const o = `link[rel="${e}"]`;
4264
+ let r = document.head.querySelector(o);
4265
+ r || (r = document.createElement("link"), r.rel = e, document.head.appendChild(r)), r.href = t;
4189
4266
  }
4190
- function bo(e, t, r) {
4267
+ function vo(e, t, o) {
4191
4268
  if (typeof document > "u") return;
4192
- const o = "olonjs-webmcp-jsonld";
4193
- let n = document.getElementById(o);
4194
- n || (n = document.createElement("script"), n.type = "application/ld+json", n.id = o, document.head.appendChild(n)), n.textContent = JSON.stringify({
4269
+ const r = "olonjs-webmcp-jsonld";
4270
+ let n = document.getElementById(r);
4271
+ n || (n = document.createElement("script"), n.type = "application/ld+json", n.id = r, document.head.appendChild(n)), n.textContent = JSON.stringify({
4195
4272
  "@context": "https://schema.org",
4196
4273
  "@type": "WebPage",
4197
4274
  name: e,
4198
4275
  description: t,
4199
- url: r,
4276
+ url: o,
4200
4277
  subjectOf: {
4201
4278
  "@type": "CreativeWork",
4202
4279
  additionalType: "mcp-manifest",
@@ -4204,95 +4281,167 @@ function bo(e, t, r) {
4204
4281
  }
4205
4282
  });
4206
4283
  }
4207
- function Me(e) {
4284
+ function ge(e) {
4208
4285
  return e.split("/").map((t) => t.trim()).filter(Boolean).join("/");
4209
4286
  }
4210
- function ho(e, t = "") {
4211
- const r = Me(t);
4287
+ function xo(e, t = "") {
4288
+ const o = ge(t);
4212
4289
  let n = e.replace(/\/+/g, "/");
4213
- if (r) {
4214
- const a = `/${r}`;
4290
+ if (o) {
4291
+ const a = `/${o}`;
4215
4292
  n === a ? n = "/" : n.startsWith(`${a}/`) && (n = n.slice(a.length));
4216
4293
  }
4217
- return Me(n) || "home";
4294
+ return ge(n) || "home";
4218
4295
  }
4219
- function go(e, t) {
4220
- const r = Me(t) || "home";
4221
- return e[r];
4296
+ function wo(e, t) {
4297
+ const o = ge(e).split("/").filter(Boolean), r = ge(t).split("/").filter(Boolean);
4298
+ if (o.length !== r.length) return null;
4299
+ const n = {};
4300
+ for (let s = 0; s < o.length; s += 1) {
4301
+ const a = o[s], c = r[s], l = a.match(/^\[([A-Za-z0-9_-]+)\]$/);
4302
+ if (l) {
4303
+ n[l[1]] = c;
4304
+ continue;
4305
+ }
4306
+ if (a !== c) return null;
4307
+ }
4308
+ return n;
4222
4309
  }
4223
- const tt = ({
4310
+ function Rt(e, t) {
4311
+ const o = ge(t) || "home", r = e[o];
4312
+ if (r)
4313
+ return {
4314
+ page: r,
4315
+ registrySlug: o,
4316
+ requestedSlug: o,
4317
+ params: {}
4318
+ };
4319
+ for (const [n, s] of Object.entries(e)) {
4320
+ const a = wo(s.slug || n, o);
4321
+ if (a)
4322
+ return {
4323
+ page: s,
4324
+ registrySlug: n,
4325
+ requestedSlug: o,
4326
+ params: a
4327
+ };
4328
+ }
4329
+ }
4330
+ const rt = ({
4224
4331
  pageRegistry: e,
4225
4332
  siteConfig: t,
4226
- menuConfig: r,
4227
- themeConfig: o,
4228
- refDocuments: n,
4229
- tenantCss: s,
4230
- adminCss: a,
4231
- NotFoundComponent: c
4333
+ menuConfig: o,
4334
+ themeConfig: r,
4335
+ collections: n,
4336
+ collectionSchemas: s,
4337
+ refDocuments: a,
4338
+ tenantCss: c,
4339
+ adminCss: l,
4340
+ NotFoundComponent: d
4232
4341
  }) => {
4233
- const l = It(), m = ho(l.pathname), b = ze(
4234
- () => st({
4235
- pages: e,
4342
+ const g = Mt(), h = xo(g.pathname), b = fe(
4343
+ () => Rt(e, h),
4344
+ [e, h]
4345
+ ), v = fe(
4346
+ () => b ? at(b.page, b.params, n) : null,
4347
+ [n, b]
4348
+ ), S = fe(
4349
+ () => De({
4350
+ pages: b ? { [b.registrySlug]: b.page } : {},
4236
4351
  siteConfig: t,
4237
- themeConfig: o,
4238
- menuConfig: r,
4239
- refDocuments: n
4352
+ themeConfig: r,
4353
+ menuConfig: o,
4354
+ collections: n,
4355
+ collectionSchemas: s,
4356
+ collectionContext: v,
4357
+ refDocuments: a
4240
4358
  }),
4241
- [e, t, o, r, n]
4242
- ), h = go(b.pages, m);
4243
- return oe(() => {
4244
- var y;
4359
+ [b, t, r, o, n, s, v, a]
4360
+ ), C = b ? S.pages[b.registrySlug] : void 0;
4361
+ return se(() => {
4362
+ var E;
4245
4363
  try {
4246
- (y = b.themeConfig) != null && y.tokens && lt.setTheme(b.themeConfig);
4247
- } catch (w) {
4248
- console.warn("[JsonPages] visitor theme resolution failed", w);
4364
+ (E = S.themeConfig) != null && E.tokens && ct.setTheme(S.themeConfig);
4365
+ } catch (R) {
4366
+ console.warn("[JsonPages] visitor theme resolution failed", R);
4249
4367
  }
4250
- }, [b.themeConfig]), oe(() => {
4251
- var A, j;
4252
- if (!h) return;
4253
- const y = typeof ((A = h.meta) == null ? void 0 : A.title) == "string" ? h.meta.title : m, w = typeof ((j = h.meta) == null ? void 0 : j.description) == "string" ? h.meta.description : "";
4254
- et("mcp-manifest", Xt(m)), et("olon-contract", qt(m)), bo(y, w, m === "home" ? "/" : `/${m}`);
4255
- }, [h, m]), h ? /* @__PURE__ */ u.jsx(po, { mode: "tenant", tenantCss: s, adminCss: a, children: /* @__PURE__ */ u.jsx(ar, { mode: "visitor", children: /* @__PURE__ */ u.jsx(
4256
- fo,
4368
+ }, [S.themeConfig]), se(() => {
4369
+ var W, k;
4370
+ if (!C) return;
4371
+ const E = typeof ((W = C.meta) == null ? void 0 : W.title) == "string" ? C.meta.title : h, R = typeof ((k = C.meta) == null ? void 0 : k.description) == "string" ? C.meta.description : "";
4372
+ tt("mcp-manifest", er(h)), tt("olon-contract", Qt(h)), vo(E, R, h === "home" ? "/" : `/${h}`);
4373
+ }, [C, h]), C ? /* @__PURE__ */ u.jsx(yo, { mode: "tenant", tenantCss: c, adminCss: l, children: /* @__PURE__ */ u.jsx(dr, { mode: "visitor", children: /* @__PURE__ */ u.jsx(
4374
+ bo,
4257
4375
  {
4258
- pageConfig: h,
4259
- siteConfig: b.siteConfig,
4260
- menuConfig: b.menuConfig
4376
+ pageConfig: C,
4377
+ siteConfig: S.siteConfig,
4378
+ menuConfig: S.menuConfig
4261
4379
  }
4262
- ) }) }) : /* @__PURE__ */ u.jsx(c, {});
4380
+ ) }) }) : /* @__PURE__ */ u.jsx(d, {});
4263
4381
  };
4264
- function yo(e) {
4382
+ function ko(e) {
4265
4383
  const t = {
4266
4384
  pageRegistry: e.pageRegistry,
4267
4385
  siteConfig: e.siteConfig,
4268
4386
  menuConfig: e.menuConfig,
4269
4387
  themeConfig: e.themeConfig,
4388
+ collections: e.collections,
4389
+ collectionSchemas: e.collectionSchemas,
4270
4390
  refDocuments: e.refDocuments,
4271
4391
  tenantCss: e.tenantCss,
4272
4392
  adminCss: e.adminCss,
4273
4393
  // empty string at the Core level for runtime; ignored by ThemeLoader in tenant mode
4274
4394
  NotFoundComponent: e.NotFoundComponent
4275
4395
  };
4276
- return /* @__PURE__ */ u.jsxs(ye, { element: /* @__PURE__ */ u.jsx(nr, {}), children: [
4277
- /* @__PURE__ */ u.jsx(ye, { path: "/", element: /* @__PURE__ */ u.jsx(tt, { ...t }) }),
4278
- /* @__PURE__ */ u.jsx(ye, { path: "/*", element: /* @__PURE__ */ u.jsx(tt, { ...t }) }),
4279
- /* @__PURE__ */ u.jsx(ye, { path: "*", element: /* @__PURE__ */ u.jsx(e.NotFoundComponent, {}) })
4396
+ return /* @__PURE__ */ u.jsxs(xe, { element: /* @__PURE__ */ u.jsx(lr, {}), children: [
4397
+ /* @__PURE__ */ u.jsx(xe, { path: "/", element: /* @__PURE__ */ u.jsx(rt, { ...t }) }),
4398
+ /* @__PURE__ */ u.jsx(xe, { path: "/*", element: /* @__PURE__ */ u.jsx(rt, { ...t }) }),
4399
+ /* @__PURE__ */ u.jsx(xe, { path: "*", element: /* @__PURE__ */ u.jsx(e.NotFoundComponent, {}) })
4280
4400
  ] });
4281
4401
  }
4282
- function Ao({ config: e }) {
4283
- return /* @__PURE__ */ u.jsx(sr, { config: e, routesBuilder: yo });
4402
+ function zo({ config: e }) {
4403
+ return /* @__PURE__ */ u.jsx(cr, { config: e, routesBuilder: ko });
4284
4404
  }
4285
- const xo = /\.(jpg|jpeg|png|gif|svg|pdf|webp|mp4|webm|ogg)$/i, vo = /^[a-zA-Z][a-zA-Z\d+\-.]*:/, wo = (e) => vo.test(e), _o = (e, t = "default", r = "/") => {
4286
- const o = e.trim();
4287
- if (!o || wo(o) || o.startsWith("#"))
4288
- return o;
4289
- if (o.startsWith("/assets/") || o.startsWith("/uploaded-assets/")) return ke(o, r);
4290
- if (o.startsWith("assets/")) return ke(`/${o}`, r);
4291
- if (!xo.test(o))
4292
- return ke(o.startsWith("/") ? o : `/${o}`, r);
4293
- const s = o.replace(/^\//, "");
4294
- return ke(`/assets/${t}/${s}`, r);
4295
- }, Oo = {
4405
+ function No(e) {
4406
+ const t = Rt(e.pages, e.slug);
4407
+ if (!t) return null;
4408
+ const o = at(
4409
+ t.page,
4410
+ t.params,
4411
+ e.collections
4412
+ ), r = De({
4413
+ pages: { [t.registrySlug]: t.page },
4414
+ siteConfig: e.siteConfig,
4415
+ themeConfig: e.themeConfig,
4416
+ menuConfig: e.menuConfig,
4417
+ collections: e.collections,
4418
+ collectionSchemas: e.collectionSchemas,
4419
+ collectionContext: o,
4420
+ refDocuments: e.refDocuments
4421
+ });
4422
+ return {
4423
+ page: {
4424
+ ...r.pages[t.registrySlug] ?? t.page,
4425
+ slug: t.requestedSlug
4426
+ },
4427
+ siteConfig: r.siteConfig,
4428
+ themeConfig: r.themeConfig,
4429
+ menuConfig: r.menuConfig,
4430
+ pageMatch: t,
4431
+ collectionContext: r.collectionContext
4432
+ };
4433
+ }
4434
+ const jo = /\.(jpg|jpeg|png|gif|svg|pdf|webp|mp4|webm|ogg)$/i, So = /^[a-zA-Z][a-zA-Z\d+\-.]*:/, Co = (e) => So.test(e), Io = (e, t = "default", o = "/") => {
4435
+ const r = e.trim();
4436
+ if (!r || Co(r) || r.startsWith("#"))
4437
+ return r;
4438
+ if (r.startsWith("/assets/") || r.startsWith("/uploaded-assets/")) return Se(r, o);
4439
+ if (r.startsWith("assets/")) return Se(`/${r}`, o);
4440
+ if (!jo.test(r))
4441
+ return Se(r.startsWith("/") ? r : `/${r}`, o);
4442
+ const s = r.replace(/^\//, "");
4443
+ return Se(`/assets/${t}/${s}`, o);
4444
+ }, $o = {
4296
4445
  UPDATE_DRAFTS: "jsonpages:update-drafts",
4297
4446
  SYNC_SELECTION: "jsonpages:sync-selection",
4298
4447
  SECTION_SELECT: "jsonpages:section-select",
@@ -4304,44 +4453,46 @@ const xo = /\.(jpg|jpeg|png|gif|svg|pdf|webp|mp4|webm|ogg)$/i, vo = /^[a-zA-Z][a
4304
4453
  STAGE_READY: "jsonpages:stage-ready",
4305
4454
  WEBMCP_TOOL_CALL: "olonjs:webmcp:tool-call",
4306
4455
  WEBMCP_TOOL_RESULT: "olonjs:webmcp:tool-result"
4307
- }, Po = I.object({
4456
+ }, Mo = I.object({
4308
4457
  url: I.string(),
4309
4458
  alt: I.string().optional()
4310
- }).describe("ui:image-picker"), zo = I.object({
4459
+ }).describe("ui:image-picker"), Lo = I.object({
4311
4460
  id: I.string().optional(),
4312
4461
  anchorId: I.string().optional().describe("ui:text")
4313
- }), No = I.object({
4462
+ }), Do = I.object({
4314
4463
  id: I.string().optional()
4315
- }), Io = I.object({
4464
+ }), Fo = I.object({
4465
+ id: I.string()
4466
+ }), Wo = I.object({
4316
4467
  paddingTop: I.enum(["none", "sm", "md", "lg", "xl", "2xl"]).default("md").describe("ui:select"),
4317
4468
  paddingBottom: I.enum(["none", "sm", "md", "lg", "xl", "2xl"]).default("md").describe("ui:select"),
4318
4469
  theme: I.enum(["dark", "light", "accent"]).default("dark").describe("ui:select"),
4319
4470
  container: I.enum(["boxed", "fluid"]).default("boxed").describe("ui:select")
4320
- }), $o = I.object({
4471
+ }), Bo = I.object({
4321
4472
  id: I.string().optional(),
4322
4473
  label: I.string().describe("ui:text"),
4323
4474
  href: I.string().describe("ui:text"),
4324
4475
  variant: I.enum(["primary", "secondary", "accent"]).default("primary").describe("ui:select")
4325
- }), Lo = I.object({
4476
+ }), Uo = I.object({
4326
4477
  recipientEmail: I.string().optional().describe("ui:text")
4327
4478
  });
4328
- function ko(e) {
4479
+ function Eo(e) {
4329
4480
  const t = e.split(`
4330
4481
  `).map((n) => n.trimEnd()).filter((n) => n.length > 0);
4331
4482
  if (t.length === 0) return null;
4332
- let r = "message";
4333
- const o = [];
4483
+ let o = "message";
4484
+ const r = [];
4334
4485
  for (const n of t) {
4335
4486
  if (n.startsWith("event:")) {
4336
- r = n.slice(6).trim();
4487
+ o = n.slice(6).trim();
4337
4488
  continue;
4338
4489
  }
4339
- n.startsWith("data:") && o.push(n.slice(5).trim());
4490
+ n.startsWith("data:") && r.push(n.slice(5).trim());
4340
4491
  }
4341
- return { event: r, data: o.join(`
4492
+ return { event: o, data: r.join(`
4342
4493
  `) };
4343
4494
  }
4344
- async function Mo(e) {
4495
+ async function Go(e) {
4345
4496
  var a;
4346
4497
  const t = await fetch(`${e.apiBaseUrl}/save-stream`, {
4347
4498
  method: "POST",
@@ -4360,30 +4511,30 @@ async function Mo(e) {
4360
4511
  const c = await t.json().catch(() => ({}));
4361
4512
  throw new Error(c.message ?? `Cloud save stream failed: ${t.status}`);
4362
4513
  }
4363
- const r = t.body.getReader(), o = new TextDecoder();
4514
+ const o = t.body.getReader(), r = new TextDecoder();
4364
4515
  let n = "", s = !1;
4365
4516
  for (; ; ) {
4366
- const { value: c, done: l } = await r.read();
4367
- l ? n += o.decode() : n += o.decode(c, { stream: !0 });
4368
- const m = n.split(`
4517
+ const { value: c, done: l } = await o.read();
4518
+ l ? n += r.decode() : n += r.decode(c, { stream: !0 });
4519
+ const d = n.split(`
4369
4520
 
4370
4521
  `);
4371
- n = l ? "" : m.pop() ?? "";
4372
- for (const b of m) {
4373
- const h = ko(b);
4522
+ n = l ? "" : d.pop() ?? "";
4523
+ for (const g of d) {
4524
+ const h = Eo(g);
4374
4525
  if (h && h.data) {
4375
4526
  if (h.event === "step") {
4376
- const y = JSON.parse(h.data);
4377
- e.onStep(y);
4527
+ const b = JSON.parse(h.data);
4528
+ e.onStep(b);
4378
4529
  } else if (h.event === "log") {
4379
- const y = JSON.parse(h.data);
4380
- (a = e.onLog) == null || a.call(e, y);
4530
+ const b = JSON.parse(h.data);
4531
+ (a = e.onLog) == null || a.call(e, b);
4381
4532
  } else if (h.event === "error") {
4382
- const y = JSON.parse(h.data);
4383
- throw new Error(y.message ?? "Cloud save failed.");
4533
+ const b = JSON.parse(h.data);
4534
+ throw new Error(b.message ?? "Cloud save failed.");
4384
4535
  } else if (h.event === "done") {
4385
- const y = JSON.parse(h.data);
4386
- e.onDone(y), s = !0;
4536
+ const b = JSON.parse(h.data);
4537
+ e.onDone(b), s = !0;
4387
4538
  }
4388
4539
  }
4389
4540
  }
@@ -4392,7 +4543,7 @@ async function Mo(e) {
4392
4543
  if (!s)
4393
4544
  throw new Error("Cloud save stream ended before completion.");
4394
4545
  }
4395
- const Do = [
4546
+ const Vo = [
4396
4547
  {
4397
4548
  id: "commit",
4398
4549
  label: "Commit",
@@ -4429,38 +4580,40 @@ const Do = [
4429
4580
  glyph: "✦",
4430
4581
  duration: 1600
4431
4582
  }
4432
- ], jo = { status: "idle", message: "" }, Eo = Ae({});
4433
- function Fo(e) {
4434
- return Re(Eo)[e] ?? jo;
4583
+ ], To = { status: "idle", message: "" }, Ro = Oe({});
4584
+ function Jo(e) {
4585
+ return _e(Ro)[e] ?? To;
4435
4586
  }
4436
4587
  export {
4437
- No as BaseArrayItem,
4438
- zo as BaseSectionData,
4439
- Io as BaseSectionSettingsSchema,
4440
- Kt as ConfigProvider,
4441
- $o as CtaSchema,
4442
- Do as DEPLOY_STEPS,
4443
- Zt as DefaultNotFound,
4444
- ct as IconRegistryContext,
4445
- Po as ImageSelectionSchema,
4446
- Eo as OlonFormsContext,
4447
- Ao as OlonJSEngine,
4448
- fo as PageRenderer,
4449
- Oo as STUDIO_EVENTS,
4450
- Se as SectionRenderer,
4451
- ar as StudioProvider,
4452
- po as ThemeLoader,
4453
- Lo as WithFormRecipient,
4454
- tr as buildThemeVariableMap,
4588
+ Do as BaseArrayItem,
4589
+ Fo as BaseCollectionItem,
4590
+ Lo as BaseSectionData,
4591
+ Wo as BaseSectionSettingsSchema,
4592
+ rr as ConfigProvider,
4593
+ Bo as CtaSchema,
4594
+ Vo as DEPLOY_STEPS,
4595
+ tr as DefaultNotFound,
4596
+ dt as IconRegistryContext,
4597
+ Mo as ImageSelectionSchema,
4598
+ Ro as OlonFormsContext,
4599
+ zo as OlonJSEngine,
4600
+ bo as PageRenderer,
4601
+ $o as STUDIO_EVENTS,
4602
+ Te as SectionRenderer,
4603
+ dr as StudioProvider,
4604
+ yo as ThemeLoader,
4605
+ Uo as WithFormRecipient,
4606
+ sr as buildThemeVariableMap,
4455
4607
  Le as cn,
4456
- Ie as normalizeBasePath,
4457
- _o as resolveAssetUrl,
4458
- st as resolveRuntimeConfig,
4459
- Mo as startCloudSaveStream,
4460
- lt as themeManager,
4461
- Qt as useConfig,
4462
- Fo as useFormState,
4463
- Ro as useIconRegistry,
4464
- ir as useStudio,
4465
- ke as withBasePath
4608
+ $e as normalizeBasePath,
4609
+ Io as resolveAssetUrl,
4610
+ No as resolvePublicPageDocument,
4611
+ De as resolveRuntimeConfig,
4612
+ Go as startCloudSaveStream,
4613
+ ct as themeManager,
4614
+ or as useConfig,
4615
+ Jo as useFormState,
4616
+ Po as useIconRegistry,
4617
+ ur as useStudio,
4618
+ Se as withBasePath
4466
4619
  };