@kingsimba/nc-ui 0.1.26 → 0.1.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  var et = Object.defineProperty;
2
2
  var tt = (e, t, n) => t in e ? et(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var U = (e, t, n) => tt(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { jsx as s, jsxs as x, Fragment as nt } from "react/jsx-runtime";
3
+ var q = (e, t, n) => tt(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { jsx as s, jsxs as k, Fragment as nt } from "react/jsx-runtime";
5
5
  import { d as xe, E as rt, R as ot, T as st, g as it, V as ct, b as at, a as lt, c as dt } from "./GeneratedIcons-HFZmBTBT.js";
6
- import ke, { useState as E, useRef as W, useMemo as me, useEffect as B, createContext as se, useContext as J, Children as ut, isValidElement as pt, forwardRef as ft, useImperativeHandle as ht, useCallback as O, Suspense as mt } from "react";
6
+ import ke, { useState as E, useRef as W, useMemo as me, useEffect as B, createContext as se, useContext as Q, Children as ut, isValidElement as pt, forwardRef as ft, useImperativeHandle as ht, useCallback as O, Suspense as mt } from "react";
7
7
  import { createPortal as ue } from "react-dom";
8
- import { useTranslation as Q } from "react-i18next";
8
+ import { useTranslation as U } from "react-i18next";
9
9
  import { c as gt } from "./YamlTextArea-ee1d1TLc.js";
10
10
  import { Y as fr } from "./YamlTextArea-ee1d1TLc.js";
11
11
  import bt from "i18next";
@@ -39,7 +39,7 @@ function He({
39
39
  return n ? /* @__PURE__ */ s("div", { className: "nc-activity-indicator-overlay", children: o }) : o;
40
40
  }
41
41
  function K({ variant: e = "default", block: t, size: n = "default", appearance: r = "default", className: o, disabled: i, textSelectable: a, loading: c, onClick: l, children: p, ...f }) {
42
- const b = [
42
+ const v = [
43
43
  "nc-button",
44
44
  e !== "default" ? `nc-${e}` : "",
45
45
  t ? "nc-block" : "",
@@ -51,19 +51,19 @@ function K({ variant: e = "default", block: t, size: n = "default", appearance:
51
51
  c ? "nc-loading" : "",
52
52
  o ?? ""
53
53
  ].filter(Boolean).join(" ");
54
- return /* @__PURE__ */ x(
54
+ return /* @__PURE__ */ k(
55
55
  "button",
56
56
  {
57
- className: b,
57
+ className: v,
58
58
  disabled: i || c,
59
- onClick: (u) => {
59
+ onClick: (h) => {
60
60
  if (!c) {
61
61
  if (a) {
62
- const m = window.getSelection();
63
- if (m && m.toString().length > 0)
62
+ const y = window.getSelection();
63
+ if (y && y.toString().length > 0)
64
64
  return;
65
65
  }
66
- l == null || l(u);
66
+ l == null || l(h);
67
67
  }
68
68
  },
69
69
  ...f,
@@ -99,12 +99,12 @@ function Tn({
99
99
  className: c = "",
100
100
  style: l
101
101
  }) {
102
- const p = i ?? /* @__PURE__ */ x(nt, { children: [
102
+ const p = i ?? /* @__PURE__ */ k(nt, { children: [
103
103
  e !== void 0 && /* @__PURE__ */ s("span", { className: "nc-alert-code", children: e }),
104
104
  t
105
105
  ] });
106
- return /* @__PURE__ */ x("div", { className: `nc-alert nc-${n} ${c}`.trim(), style: l, children: [
107
- /* @__PURE__ */ x("div", { className: "nc-alert-main", children: [
106
+ return /* @__PURE__ */ k("div", { className: `nc-alert nc-${n} ${c}`.trim(), style: l, children: [
107
+ /* @__PURE__ */ k("div", { className: "nc-alert-main", children: [
108
108
  /* @__PURE__ */ s("div", { className: `nc-alert-message nc-${n}`, children: p }),
109
109
  a && /* @__PURE__ */ s(
110
110
  "button",
@@ -137,47 +137,47 @@ function zn({
137
137
  const o = Math.max(0, Math.min(1, Number(e) || 0));
138
138
  let i;
139
139
  r ? o < 0.1 ? i = "var(--nc-danger)" : o < 0.2 ? i = "var(--nc-warning)" : i = "var(--nc-success)" : i = n ? "#ffffff" : "#000000";
140
- const a = n ? "rgba(255, 255, 255, 0.5)" : "rgba(0, 0, 0, 0.2)", c = 24, l = 14, p = 2, f = 0, b = 12, d = 0, u = 0, m = 0, h = c, g = l, k = g - d * 2, v = h - d * 2, N = Math.max(1, Math.min(4, g / 4)), w = o === 0 ? 0 : 0.05 + o * 0.95, A = c + p + b, $ = 20, L = 0.65, T = Math.max(l, $ * L), y = c + p + 1, R = (l - $ * L) / 2;
141
- return /* @__PURE__ */ x(
140
+ const a = n ? "rgba(255, 255, 255, 0.5)" : "rgba(0, 0, 0, 0.2)", c = 24, l = 14, p = 2, f = 0, v = 12, d = 0, h = 0, y = 0, g = c, w = l, A = w - d * 2, b = g - d * 2, u = Math.max(1, Math.min(4, w / 4)), m = o === 0 ? 0 : 0.05 + o * 0.95, N = c + p + v, S = 20, z = 0.65, T = Math.max(l, S * z), x = c + p + 1, R = (l - S * z) / 2;
141
+ return /* @__PURE__ */ k(
142
142
  "svg",
143
143
  {
144
144
  className: "nc-battery",
145
- width: A,
145
+ width: N,
146
146
  height: T,
147
- viewBox: `0 0 ${A} ${T}`,
147
+ viewBox: `0 0 ${N} ${T}`,
148
148
  role: "img",
149
149
  "aria-label": `Battery ${o === 0 ? "-" : Math.round(o * 100) + "%"} ${t}`,
150
150
  children: [
151
- /* @__PURE__ */ x("defs", { children: [
152
- /* @__PURE__ */ s("mask", { id: `nc-battery-fill-mask-${o}`, children: /* @__PURE__ */ s("rect", { x: "0", y: "0", width: v * w, height: k, fill: "white" }) }),
153
- /* @__PURE__ */ x("mask", { id: `nc-battery-text-mask-${o}`, children: [
154
- /* @__PURE__ */ s("rect", { x: "0", y: "0", width: A, height: T, fill: "white" }),
155
- /* @__PURE__ */ s("text", { x: u + h / 2, y: l - 3, fontSize: 11, fontWeight: "bold", fill: "black", textAnchor: "middle", children: o === 0 ? "-" : Math.round(o * 100) })
151
+ /* @__PURE__ */ k("defs", { children: [
152
+ /* @__PURE__ */ s("mask", { id: `nc-battery-fill-mask-${o}`, children: /* @__PURE__ */ s("rect", { x: "0", y: "0", width: b * m, height: A, fill: "white" }) }),
153
+ /* @__PURE__ */ k("mask", { id: `nc-battery-text-mask-${o}`, children: [
154
+ /* @__PURE__ */ s("rect", { x: "0", y: "0", width: N, height: T, fill: "white" }),
155
+ /* @__PURE__ */ s("text", { x: h + g / 2, y: l - 3, fontSize: 11, fontWeight: "bold", fill: "black", textAnchor: "middle", children: o === 0 ? "-" : Math.round(o * 100) })
156
156
  ] })
157
157
  ] }),
158
- /* @__PURE__ */ x("g", { mask: `url(#nc-battery-text-mask-${o})`, children: [
158
+ /* @__PURE__ */ k("g", { mask: `url(#nc-battery-text-mask-${o})`, children: [
159
159
  /* @__PURE__ */ s(
160
160
  "rect",
161
161
  {
162
- x: u,
163
- y: m,
164
- rx: N,
165
- ry: N,
166
- width: h,
167
- height: g,
162
+ x: h,
163
+ y,
164
+ rx: u,
165
+ ry: u,
166
+ width: g,
167
+ height: w,
168
168
  fill: a
169
169
  }
170
170
  ),
171
171
  /* @__PURE__ */ s(
172
172
  "rect",
173
173
  {
174
- x: u + d,
175
- y: m + d,
176
- width: v,
177
- height: k,
174
+ x: h + d,
175
+ y: y + d,
176
+ width: b,
177
+ height: A,
178
178
  fill: i,
179
- rx: N,
180
- ry: N,
179
+ rx: u,
180
+ ry: u,
181
181
  mask: `url(#nc-battery-fill-mask-${o})`
182
182
  }
183
183
  ),
@@ -193,7 +193,7 @@ function zn({
193
193
  fill: o === 1 ? i : a
194
194
  }
195
195
  ),
196
- t === "charging" ? /* @__PURE__ */ s("g", { transform: `translate(${y}, ${R}) scale(${L})`, fill: i, children: /* @__PURE__ */ s("path", { d: "M10 0 L2 11 H8 L5 20 L14 8 H8 L10 0 Z" }) }) : null
196
+ t === "charging" ? /* @__PURE__ */ s("g", { transform: `translate(${x}, ${R}) scale(${z})`, fill: i, children: /* @__PURE__ */ s("path", { d: "M10 0 L2 11 H8 L5 20 L14 8 H8 L10 0 Z" }) }) : null
197
197
  ] })
198
198
  ]
199
199
  }
@@ -235,7 +235,7 @@ function wt({ size: e }) {
235
235
  }
236
236
  function Ln({ checked: e, onChange: t, disabled: n, label: r, size: o = "default", labelColor: i, style: a, className: c = "" }) {
237
237
  const l = o === "small";
238
- return /* @__PURE__ */ x(
238
+ return /* @__PURE__ */ k(
239
239
  "label",
240
240
  {
241
241
  className: `nc-checkbox-label ${l ? "nc-small" : ""} ${n ? "nc-disabled" : ""} ${c}`.trim(),
@@ -263,10 +263,10 @@ function Ln({ checked: e, onChange: t, disabled: n, label: r, size: o = "default
263
263
  );
264
264
  }
265
265
  function yt({ option: e, onChange: t, selected: n, highlighted: r, small: o }) {
266
- const i = W(null), { t: a } = Q();
266
+ const i = W(null), { t: a } = U();
267
267
  return B(() => {
268
268
  r && i.current && i.current.scrollIntoView({ block: "nearest" });
269
- }, [r]), /* @__PURE__ */ x(
269
+ }, [r]), /* @__PURE__ */ k(
270
270
  "div",
271
271
  {
272
272
  ref: i,
@@ -280,7 +280,7 @@ function yt({ option: e, onChange: t, selected: n, highlighted: r, small: o }) {
280
280
  },
281
281
  children: [
282
282
  e.label,
283
- e.default && /* @__PURE__ */ x("span", { style: { fontSize: "0.85em", color: "var(--nc-text-weak)", marginLeft: 6 }, children: [
283
+ e.default && /* @__PURE__ */ k("span", { style: { fontSize: "0.85em", color: "var(--nc-text-weak)", marginLeft: 6 }, children: [
284
284
  "(",
285
285
  a("common.default"),
286
286
  ")"
@@ -299,23 +299,23 @@ function xt({
299
299
  small: a,
300
300
  highlightedIndex: c = -1
301
301
  }) {
302
- const [l, p] = E({ top: 0, left: 0, width: 0 }), [f, b] = E(o), { t: d } = Q();
302
+ const [l, p] = E({ top: 0, left: 0, width: 0 }), [f, v] = E(o), { t: d } = U();
303
303
  if (B(() => {
304
304
  if (e && i.current) {
305
- const m = i.current.getBoundingClientRect();
306
- let h = o;
305
+ const y = i.current.getBoundingClientRect();
306
+ let g = o;
307
307
  if (o === "bottom") {
308
- const g = window.innerHeight - m.bottom, k = m.top;
309
- g < 320 && k > g && (h = "top");
308
+ const w = window.innerHeight - y.bottom, A = y.top;
309
+ w < 320 && A > w && (g = "top");
310
310
  }
311
- b(h), p({
312
- top: h === "top" ? m.top - 4 : m.bottom + 4,
313
- left: m.left,
314
- width: m.width
311
+ v(g), p({
312
+ top: g === "top" ? y.top - 4 : y.bottom + 4,
313
+ left: y.left,
314
+ width: y.width
315
315
  });
316
316
  }
317
317
  }, [e, i, o]), !e) return null;
318
- const u = /* @__PURE__ */ s(
318
+ const h = /* @__PURE__ */ s(
319
319
  "div",
320
320
  {
321
321
  className: "nc-combo-dropdown",
@@ -329,10 +329,10 @@ function xt({
329
329
  maxHeight: 300,
330
330
  overflowY: "auto"
331
331
  },
332
- children: t.length === 0 ? /* @__PURE__ */ s("div", { className: `nc-combo-dropdown-option nc-no-results ${a ? "nc-small" : ""}`, children: d("common.noResults") }) : t.map((m, h) => /* @__PURE__ */ s(yt, { option: m, onChange: n, selected: m.value === r, highlighted: h === c, small: a }, m.value))
332
+ children: t.length === 0 ? /* @__PURE__ */ s("div", { className: `nc-combo-dropdown-option nc-no-results ${a ? "nc-small" : ""}`, children: d("common.noResults") }) : t.map((y, g) => /* @__PURE__ */ s(yt, { option: y, onChange: n, selected: y.value === r, highlighted: g === c, small: a }, y.value))
333
333
  }
334
334
  );
335
- return ue(u, document.body);
335
+ return ue(h, document.body);
336
336
  }
337
337
  function kt({ onClick: e, small: t }) {
338
338
  return /* @__PURE__ */ s(
@@ -370,129 +370,129 @@ function Bn({
370
370
  placement: l = "bottom",
371
371
  size: p = "default",
372
372
  appearance: f = "default",
373
- textAlign: b = "left",
373
+ textAlign: v = "left",
374
374
  style: d,
375
- className: u
375
+ className: h
376
376
  }) {
377
- const [m, h] = E(!1), [g, k] = E(""), [v, N] = E(-1), w = W(null), A = W(null), $ = p === "small", { t: L } = Q(), T = me(() => {
378
- const M = g.toLowerCase();
379
- return c ? r.filter((P) => P.label.toLowerCase().includes(M)) : r;
380
- }, [r, g, c]);
377
+ const [y, g] = E(!1), [w, A] = E(""), [b, u] = E(-1), m = W(null), N = W(null), S = p === "small", { t: z } = U(), T = me(() => {
378
+ const M = w.toLowerCase();
379
+ return c ? r.filter((L) => L.label.toLowerCase().includes(M)) : r;
380
+ }, [r, w, c]);
381
381
  B(() => {
382
- m && N(-1);
383
- }, [m, T]), B(() => {
382
+ y && u(-1);
383
+ }, [y, T]), B(() => {
384
384
  if (!a && !e && r.length > 0 && t) {
385
- const M = r.find((P) => P.default) || r[0];
385
+ const M = r.find((L) => L.default) || r[0];
386
386
  t(M.value);
387
387
  }
388
388
  }, [a, e, r, t]), B(() => {
389
- function M(P) {
389
+ function M(L) {
390
390
  var D;
391
- P.target instanceof Node && w.current && ((D = w.current.parentElement) != null && D.contains(P.target) || h(!1));
391
+ L.target instanceof Node && m.current && ((D = m.current.parentElement) != null && D.contains(L.target) || g(!1));
392
392
  }
393
393
  return document.addEventListener("mousedown", M), () => document.removeEventListener("mousedown", M);
394
394
  }, []);
395
- const y = r.find((M) => M.value === e), R = y && a, C = !o && !R, S = `nc-align-${b}`, z = !(m && c) && !!y, F = (M, P = !1) => {
395
+ const x = r.find((M) => M.value === e), R = x && a, C = !o && !R, $ = `nc-align-${v}`, P = !(y && c) && !!x, F = (M, L = !1) => {
396
396
  var D;
397
- t == null || t(M), h(!1), k(""), P && ((D = w.current) == null || D.blur());
397
+ t == null || t(M), g(!1), A(""), L && ((D = m.current) == null || D.blur());
398
398
  }, Z = () => {
399
- t == null || t(void 0), k(""), h(!1);
399
+ t == null || t(void 0), A(""), g(!1);
400
400
  }, Y = (M) => {
401
- if (!m) {
402
- (M.key === "ArrowDown" || M.key === "ArrowUp") && (h(!0), M.preventDefault());
401
+ if (!y) {
402
+ (M.key === "ArrowDown" || M.key === "ArrowUp") && (g(!0), M.preventDefault());
403
403
  return;
404
404
  }
405
405
  switch (M.key) {
406
406
  case "ArrowDown":
407
- M.preventDefault(), N((P) => {
408
- const D = P + 1;
407
+ M.preventDefault(), u((L) => {
408
+ const D = L + 1;
409
409
  return D >= T.length ? 0 : D;
410
410
  });
411
411
  break;
412
412
  case "ArrowUp":
413
- M.preventDefault(), N((P) => {
414
- const D = P - 1;
413
+ M.preventDefault(), u((L) => {
414
+ const D = L - 1;
415
415
  return D < 0 ? T.length - 1 : D;
416
416
  });
417
417
  break;
418
418
  case "Enter":
419
- M.preventDefault(), v >= 0 && v < T.length && F(T[v].value, !0);
419
+ M.preventDefault(), b >= 0 && b < T.length && F(T[b].value, !0);
420
420
  break;
421
421
  case "Escape":
422
- M.preventDefault(), h(!1), k("");
422
+ M.preventDefault(), g(!1), A("");
423
423
  break;
424
424
  }
425
425
  };
426
- return /* @__PURE__ */ x("div", { className: `nc-combo-container ${f === "transparent" ? "nc-transparent" : ""} ${S} ${u || ""}`.trim(), style: { position: "relative", ...d }, children: [
427
- i && /* @__PURE__ */ s("span", { className: `nc-label ${$ ? "nc-small" : ""}`, children: i }),
428
- /* @__PURE__ */ x(
426
+ return /* @__PURE__ */ k("div", { className: `nc-combo-container ${f === "transparent" ? "nc-transparent" : ""} ${$} ${h || ""}`.trim(), style: { position: "relative", ...d }, children: [
427
+ i && /* @__PURE__ */ s("span", { className: `nc-label ${S ? "nc-small" : ""}`, children: i }),
428
+ /* @__PURE__ */ k(
429
429
  "div",
430
430
  {
431
- ref: A,
431
+ ref: N,
432
432
  style: { position: "relative", display: "flex", alignItems: "center" },
433
433
  onMouseDown: (M) => {
434
- o || c && M.target === w.current || (h((P) => (!P && c && y && k(y.label), !P)), c && !m && setTimeout(() => {
435
- var P, D;
436
- (P = w.current) == null || P.focus(), (D = w.current) == null || D.select();
434
+ o || c && M.target === m.current || (g((L) => (!L && c && x && A(x.label), !L)), c && !y && setTimeout(() => {
435
+ var L, D;
436
+ (L = m.current) == null || L.focus(), (D = m.current) == null || D.select();
437
437
  }, 0));
438
438
  },
439
439
  children: [
440
440
  /* @__PURE__ */ s(
441
441
  "input",
442
442
  {
443
- ref: w,
444
- className: `nc-input ${$ ? "nc-small" : ""}`,
443
+ ref: m,
444
+ className: `nc-input ${S ? "nc-small" : ""}`,
445
445
  placeholder: n,
446
446
  onFocus: () => {
447
447
  var M;
448
- !o && c && (h(!0), y && (k(y.label), setTimeout(() => {
449
- var P;
450
- return (P = w.current) == null ? void 0 : P.select();
451
- }, 0))), c || (M = w.current) == null || M.blur();
448
+ !o && c && (g(!0), x && (A(x.label), setTimeout(() => {
449
+ var L;
450
+ return (L = m.current) == null ? void 0 : L.select();
451
+ }, 0))), c || (M = m.current) == null || M.blur();
452
452
  },
453
- onChange: (M) => c && k(M.target.value),
453
+ onChange: (M) => c && A(M.target.value),
454
454
  onKeyDown: Y,
455
- value: m && c ? g : (y == null ? void 0 : y.label) || "",
455
+ value: y && c ? w : (x == null ? void 0 : x.label) || "",
456
456
  readOnly: o || !c,
457
457
  style: {
458
458
  width: "100%",
459
- paddingRight: C || R ? $ ? 32 : 44 : 12,
459
+ paddingRight: C || R ? S ? 32 : 44 : 12,
460
460
  caretColor: c ? void 0 : "transparent",
461
461
  cursor: c ? void 0 : "pointer",
462
462
  userSelect: c ? void 0 : "none",
463
- color: z ? "transparent" : "var(--nc-text)"
463
+ color: P ? "transparent" : "var(--nc-text)"
464
464
  }
465
465
  }
466
466
  ),
467
- z && /* @__PURE__ */ x(
467
+ P && /* @__PURE__ */ k(
468
468
  "div",
469
469
  {
470
470
  "aria-hidden": !0,
471
- className: `nc-combo-overlay ${S}`,
471
+ className: `nc-combo-overlay ${$}`,
472
472
  style: {
473
473
  position: "absolute",
474
- left: $ ? 8 : 12,
475
- right: C || R ? $ ? 12 : 24 : $ ? 8 : 12,
474
+ left: S ? 8 : 12,
475
+ right: C || R ? S ? 12 : 24 : S ? 8 : 12,
476
476
  top: "50%",
477
477
  transform: "translateY(-50%)",
478
478
  pointerEvents: "none"
479
479
  },
480
480
  children: [
481
- /* @__PURE__ */ s("span", { className: `nc-combo-overlay-text ${$ ? "nc-small" : ""}`, children: y == null ? void 0 : y.label }),
482
- (y == null ? void 0 : y.default) && /* @__PURE__ */ x("span", { className: `nc-combo-overlay-default ${$ ? "nc-small" : ""}`, children: [
481
+ /* @__PURE__ */ s("span", { className: `nc-combo-overlay-text ${S ? "nc-small" : ""}`, children: x == null ? void 0 : x.label }),
482
+ (x == null ? void 0 : x.default) && /* @__PURE__ */ k("span", { className: `nc-combo-overlay-default ${S ? "nc-small" : ""}`, children: [
483
483
  "(",
484
- L("common.default"),
484
+ z("common.default"),
485
485
  ")"
486
486
  ] })
487
487
  ]
488
488
  }
489
489
  ),
490
- R && /* @__PURE__ */ s(kt, { onClick: Z, small: $ }),
491
- C && /* @__PURE__ */ s(Nt, { open: m, onClick: () => h((M) => !M), small: $ })
490
+ R && /* @__PURE__ */ s(kt, { onClick: Z, small: S }),
491
+ C && /* @__PURE__ */ s(Nt, { open: y, onClick: () => g((M) => !M), small: S })
492
492
  ]
493
493
  }
494
494
  ),
495
- /* @__PURE__ */ s(xt, { isOpen: m, options: T, onSelect: F, selectedValue: e, placement: l, anchorRef: A, small: $, highlightedIndex: v })
495
+ /* @__PURE__ */ s(xt, { isOpen: y, options: T, onSelect: F, selectedValue: e, placement: l, anchorRef: N, small: S, highlightedIndex: b })
496
496
  ] });
497
497
  }
498
498
  function Dn({ onClick: e, loading: t = !1, disabled: n = !1, size: r = "default", title: o, "aria-label": i }) {
@@ -576,32 +576,32 @@ function Fn({
576
576
  const a = W(null), [c, l] = E({ top: 0, left: 0 }), p = o || (r == null ? void 0 : r.current);
577
577
  if (B(() => {
578
578
  if (!e || !p || !a.current) return;
579
- const d = p.getBoundingClientRect(), u = a.current.getBoundingClientRect(), m = window.innerHeight, h = window.innerWidth, g = d.bottom + 8, k = g + u.height <= m - 8;
580
- let v = i;
581
- (!k && i === "down" || i === "up" && k) && (v = "up");
582
- let N;
583
- v === "down" ? N = g : N = d.top - u.height - 8;
584
- let w = d.left;
585
- w + u.width > h - 8 && (w = d.right - u.width), l({
586
- top: Math.max(8, N),
579
+ const d = p.getBoundingClientRect(), h = a.current.getBoundingClientRect(), y = window.innerHeight, g = window.innerWidth, w = d.bottom + 8, A = w + h.height <= y - 8;
580
+ let b = i;
581
+ (!A && i === "down" || i === "up" && A) && (b = "up");
582
+ let u;
583
+ b === "down" ? u = w : u = d.top - h.height - 8;
584
+ let m = d.left;
585
+ m + h.width > g - 8 && (m = d.right - h.width), l({
586
+ top: Math.max(8, u),
587
587
  // Ensure minimum 8px from top
588
- left: Math.max(8, w)
588
+ left: Math.max(8, m)
589
589
  // Ensure minimum 8px from left
590
590
  });
591
591
  }, [e, p, i]), B(() => {
592
592
  if (!e) return;
593
- const d = (m) => {
594
- a.current && !a.current.contains(m.target) && p && !p.contains(m.target) && t();
595
- }, u = (m) => {
596
- m.key === "Escape" && t();
593
+ const d = (y) => {
594
+ a.current && !a.current.contains(y.target) && p && !p.contains(y.target) && t();
595
+ }, h = (y) => {
596
+ y.key === "Escape" && t();
597
597
  };
598
- return document.addEventListener("mousedown", d), document.addEventListener("keydown", u), () => {
599
- document.removeEventListener("mousedown", d), document.removeEventListener("keydown", u);
598
+ return document.addEventListener("mousedown", d), document.addEventListener("keydown", h), () => {
599
+ document.removeEventListener("mousedown", d), document.removeEventListener("keydown", h);
600
600
  };
601
601
  }, [e, t, p]), !e) return null;
602
602
  const f = (d) => {
603
603
  d.type !== "separator" && !d.disabled && d.onClick && (d.onClick(), t());
604
- }, b = n.some((d) => d.icon);
604
+ }, v = n.some((d) => d.icon);
605
605
  return ue(
606
606
  /* @__PURE__ */ s(
607
607
  "div",
@@ -625,16 +625,16 @@ function Fn({
625
625
  },
626
626
  d.id
627
627
  );
628
- const u = [
628
+ const h = [
629
629
  "nc-context-menu-item",
630
630
  d.variant && d.variant !== "default" ? `nc-${d.variant}` : "",
631
631
  d.disabled ? "nc-disabled" : "",
632
- b && !d.icon ? "nc-indented" : ""
632
+ v && !d.icon ? "nc-indented" : ""
633
633
  ].filter(Boolean).join(" ");
634
- return /* @__PURE__ */ x(
634
+ return /* @__PURE__ */ k(
635
635
  "button",
636
636
  {
637
- className: u,
637
+ className: h,
638
638
  onClick: () => f(d),
639
639
  disabled: d.disabled,
640
640
  role: "menuitem",
@@ -653,13 +653,13 @@ function Fn({
653
653
  }
654
654
  const Oe = se(null);
655
655
  function At() {
656
- const e = J(Oe);
656
+ const e = Q(Oe);
657
657
  if (!e)
658
658
  throw new Error("useDialog must be used inside a Dialog component");
659
659
  return e;
660
660
  }
661
661
  function ne({ children: e, onClick: t, ...n }) {
662
- const { close: r } = At(), { t: o } = Q();
662
+ const { close: r } = At(), { t: o } = U();
663
663
  return /* @__PURE__ */ s(K, { onClick: (a) => {
664
664
  t == null || t(a), r();
665
665
  }, ...n, children: e ?? o("common.close") });
@@ -676,59 +676,59 @@ function Vn({
676
676
  onSave: l,
677
677
  onDelete: p,
678
678
  onCancel: f,
679
- onConnect: b,
679
+ onConnect: v,
680
680
  closeOnOverlay: d = !0,
681
- primaryDisabled: u = !1,
682
- fullScreen: m = !1,
683
- hideTitleBar: h = !1,
684
- className: g = "",
685
- onContentHeightChange: k
681
+ primaryDisabled: h = !1,
682
+ fullScreen: y = !1,
683
+ hideTitleBar: g = !1,
684
+ className: w = "",
685
+ onContentHeightChange: A
686
686
  }) {
687
- const v = W(null), N = W(null), { t: w } = Q(), A = { close: t }, $ = (y) => {
688
- d && y.target === y.currentTarget && t();
687
+ const b = W(null), u = W(null), { t: m } = U(), N = { close: t }, S = (x) => {
688
+ d && x.target === x.currentTarget && t();
689
689
  };
690
690
  if (B(() => {
691
- e && v.current && v.current.focus();
691
+ e && b.current && b.current.focus();
692
692
  }, [e]), B(() => {
693
- if (!k || !N.current) return;
694
- const y = new ResizeObserver((R) => {
693
+ if (!A || !u.current) return;
694
+ const x = new ResizeObserver((R) => {
695
695
  for (const C of R) {
696
- const S = C.contentRect.height;
697
- k(S);
696
+ const $ = C.contentRect.height;
697
+ A($);
698
698
  }
699
699
  });
700
- return y.observe(N.current), () => {
701
- y.disconnect();
700
+ return x.observe(u.current), () => {
701
+ x.disconnect();
702
702
  };
703
- }, [k]), !e) return null;
704
- const L = () => {
703
+ }, [A]), !e) return null;
704
+ const z = () => {
705
705
  switch (i) {
706
706
  case "ok":
707
- return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(K, { variant: "primary", onClick: c ?? t, disabled: u, children: w("common.ok") }) });
707
+ return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(K, { variant: "primary", onClick: c ?? t, disabled: h, children: m("common.ok") }) });
708
708
  case "ok-cancel":
709
- return /* @__PURE__ */ x("div", { className: "nc-dialog-footer", children: [
710
- /* @__PURE__ */ s(K, { variant: "primary", onClick: c ?? t, disabled: u, children: w("common.ok") }),
711
- /* @__PURE__ */ s(ne, { onClick: f, children: w("common.cancel") })
709
+ return /* @__PURE__ */ k("div", { className: "nc-dialog-footer", children: [
710
+ /* @__PURE__ */ s(ne, { onClick: f, children: m("common.cancel") }),
711
+ /* @__PURE__ */ s(K, { variant: "primary", onClick: c ?? t, disabled: h, children: m("common.ok") })
712
712
  ] });
713
713
  case "save-cancel":
714
- return /* @__PURE__ */ x("div", { className: "nc-dialog-footer", children: [
715
- /* @__PURE__ */ s(K, { variant: "primary", onClick: l, disabled: u, children: w("common.save") }),
716
- /* @__PURE__ */ s(ne, { onClick: f, children: w("common.cancel") })
714
+ return /* @__PURE__ */ k("div", { className: "nc-dialog-footer", children: [
715
+ /* @__PURE__ */ s(ne, { onClick: f, children: m("common.cancel") }),
716
+ /* @__PURE__ */ s(K, { variant: "primary", onClick: l, disabled: h, children: m("common.save") })
717
717
  ] });
718
718
  case "delete-cancel":
719
- return /* @__PURE__ */ x("div", { className: "nc-dialog-footer", children: [
720
- /* @__PURE__ */ s(K, { variant: "danger", onClick: p, disabled: u, children: w("common.delete") }),
721
- /* @__PURE__ */ s(ne, { onClick: f, children: w("common.cancel") })
719
+ return /* @__PURE__ */ k("div", { className: "nc-dialog-footer", children: [
720
+ /* @__PURE__ */ s(ne, { onClick: f, children: m("common.cancel") }),
721
+ /* @__PURE__ */ s(K, { variant: "danger", onClick: p, disabled: h, children: m("common.delete") })
722
722
  ] });
723
723
  case "connect":
724
- return /* @__PURE__ */ x("div", { className: "nc-dialog-footer", children: [
725
- /* @__PURE__ */ s(K, { variant: "primary", onClick: b, disabled: u, children: w("common.connect") }),
726
- /* @__PURE__ */ s(ne, { onClick: f, children: w("common.cancel") })
724
+ return /* @__PURE__ */ k("div", { className: "nc-dialog-footer", children: [
725
+ /* @__PURE__ */ s(ne, { onClick: f, children: m("common.cancel") }),
726
+ /* @__PURE__ */ s(K, { variant: "primary", onClick: v, disabled: h, children: m("common.connect") })
727
727
  ] });
728
728
  case "close":
729
729
  return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(ne, { variant: "primary" }) });
730
730
  case "gotit":
731
- return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(ne, { variant: "primary", children: w("common.gotit") }) });
731
+ return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: /* @__PURE__ */ s(ne, { variant: "primary", children: m("common.gotit") }) });
732
732
  case "custom":
733
733
  return /* @__PURE__ */ s("div", { className: "nc-dialog-footer", children: a });
734
734
  case "none":
@@ -736,27 +736,27 @@ function Vn({
736
736
  default:
737
737
  return null;
738
738
  }
739
- }, T = /* @__PURE__ */ s(Oe.Provider, { value: A, children: /* @__PURE__ */ s("div", { className: `nc-dialog-overlay${m ? " nc-fullscreen" : ""}`, onClick: $, children: /* @__PURE__ */ x(
739
+ }, T = /* @__PURE__ */ s(Oe.Provider, { value: N, children: /* @__PURE__ */ s("div", { className: `nc-dialog-overlay${y ? " nc-fullscreen" : ""}`, onClick: S, children: /* @__PURE__ */ k(
740
740
  "div",
741
741
  {
742
- ref: v,
743
- className: `nc-dialog-container ${g}`,
742
+ ref: b,
743
+ className: `nc-dialog-container ${w}`,
744
744
  style: o,
745
745
  tabIndex: -1,
746
746
  role: "dialog",
747
747
  "aria-modal": "true",
748
- "aria-labelledby": h ? void 0 : "nc-dialog-title",
748
+ "aria-labelledby": g ? void 0 : "nc-dialog-title",
749
749
  children: [
750
- !h && /* @__PURE__ */ x("div", { className: "nc-dialog-header", children: [
750
+ !g && /* @__PURE__ */ k("div", { className: "nc-dialog-header", children: [
751
751
  /* @__PURE__ */ s("h3", { id: "nc-dialog-title", className: "nc-dialog-title", children: n }),
752
752
  /* @__PURE__ */ s(We, { onClick: t, "aria-label": "Close dialog" })
753
753
  ] }),
754
- /* @__PURE__ */ s("div", { ref: N, className: "nc-dialog-content", children: r }),
755
- L()
754
+ /* @__PURE__ */ s("div", { ref: u, className: "nc-dialog-content", children: r }),
755
+ z()
756
756
  ]
757
757
  }
758
758
  ) }) });
759
- return m ? ue(T, document.body) : T;
759
+ return y ? ue(T, document.body) : T;
760
760
  }
761
761
  function Ct({ onClick: e, size: t = "default", rightOffset: n = 4 }) {
762
762
  const r = t === "small" ? 28 : 34;
@@ -827,42 +827,42 @@ function Yn({
827
827
  clearable: l = !0,
828
828
  type: p = "text",
829
829
  className: f = "",
830
- size: b = "default",
830
+ size: v = "default",
831
831
  style: d,
832
- leadingIcon: u,
833
- showPasswordToggle: m = !1,
834
- multiline: h = !1,
835
- rows: g = 3,
836
- validator: k,
837
- showErrorMessage: v = !0
832
+ leadingIcon: h,
833
+ showPasswordToggle: y = !1,
834
+ multiline: g = !1,
835
+ rows: w = 3,
836
+ validator: A,
837
+ showErrorMessage: b = !0
838
838
  }) {
839
- const N = W(null), w = W(null), [A, $] = E(!1), [L, T] = E(!1), y = e !== void 0, [R, C] = E(t), S = y ? e : R, z = k ? k(S) : null, F = !!z, Z = p === "password", Y = Z && m && !a && !h, M = l && S && !a && L, P = b === "small" ? 32 : 44;
839
+ const u = W(null), m = W(null), [N, S] = E(!1), [z, T] = E(!1), x = e !== void 0, [R, C] = E(t), $ = x ? e : R, P = A ? A($) : null, F = !!P, Z = p === "password", Y = Z && y && !a && !g, M = l && $ && !a && z, L = v === "small" ? 32 : 44;
840
840
  let D = 12;
841
- M && Y ? D = P * 2 : (M || Y) && (D = P);
842
- const V = u ? b === "small" ? 28 : 34 : void 0, Ze = () => {
841
+ M && Y ? D = L * 2 : (M || Y) && (D = L);
842
+ const V = h ? v === "small" ? 28 : 34 : void 0, Ze = () => {
843
843
  var te, ce;
844
- y || C(""), n == null || n(""), o == null || o(), h ? (te = w.current) == null || te.focus() : (ce = N.current) == null || ce.focus();
844
+ x || C(""), n == null || n(""), o == null || o(), g ? (te = m.current) == null || te.focus() : (ce = u.current) == null || ce.focus();
845
845
  }, Se = (te) => {
846
- te.key === "Enter" && !h && (r == null || r());
846
+ te.key === "Enter" && !g && (r == null || r());
847
847
  }, $e = (te) => {
848
848
  const ce = te.target.value;
849
- y || C(ce), n == null || n(ce);
849
+ x || C(ce), n == null || n(ce);
850
850
  }, Ie = () => {
851
851
  T(!0);
852
852
  }, Me = () => {
853
853
  T(!1);
854
- }, Re = `nc-input ${b === "small" ? "nc-small " : ""} ${F ? "nc-error " : ""}${f}`;
855
- return /* @__PURE__ */ x("div", { className: "nc-col", style: { position: "relative", flex: 1, ...d }, children: [
854
+ }, Re = `nc-input ${v === "small" ? "nc-small " : ""} ${F ? "nc-error " : ""}${f}`;
855
+ return /* @__PURE__ */ k("div", { className: "nc-col", style: { position: "relative", flex: 1, ...d }, children: [
856
856
  c && /* @__PURE__ */ s("span", { className: "nc-label", children: c }),
857
- /* @__PURE__ */ x("div", { style: { position: "relative", display: "flex", alignItems: h ? "flex-start" : "center" }, children: [
858
- u && /* @__PURE__ */ s("span", { className: "nc-input-leading-icon", style: { height: h ? void 0 : "100%", top: h ? 10 : void 0 }, children: u }),
859
- h ? /* @__PURE__ */ s(
857
+ /* @__PURE__ */ k("div", { style: { position: "relative", display: "flex", alignItems: g ? "flex-start" : "center" }, children: [
858
+ h && /* @__PURE__ */ s("span", { className: "nc-input-leading-icon", style: { height: g ? void 0 : "100%", top: g ? 10 : void 0 }, children: h }),
859
+ g ? /* @__PURE__ */ s(
860
860
  "textarea",
861
861
  {
862
- ref: w,
862
+ ref: m,
863
863
  className: Re,
864
864
  placeholder: i,
865
- value: S,
865
+ value: $,
866
866
  onChange: $e,
867
867
  onKeyDown: Se,
868
868
  onFocus: Ie,
@@ -870,7 +870,7 @@ function Yn({
870
870
  readOnly: a,
871
871
  "aria-disabled": a,
872
872
  tabIndex: a ? -1 : void 0,
873
- rows: g,
873
+ rows: w,
874
874
  style: {
875
875
  width: "100%",
876
876
  paddingRight: D,
@@ -880,11 +880,11 @@ function Yn({
880
880
  ) : /* @__PURE__ */ s(
881
881
  "input",
882
882
  {
883
- ref: N,
884
- type: Z && A ? "text" : p,
883
+ ref: u,
884
+ type: Z && N ? "text" : p,
885
885
  className: Re,
886
886
  placeholder: i,
887
- value: S,
887
+ value: $,
888
888
  onChange: $e,
889
889
  onKeyDown: Se,
890
890
  onFocus: Ie,
@@ -899,10 +899,10 @@ function Yn({
899
899
  }
900
900
  }
901
901
  ),
902
- M && /* @__PURE__ */ s(Ct, { onClick: Ze, size: b, rightOffset: Y ? P + 4 : 4 }),
903
- Y && /* @__PURE__ */ s(St, { visible: A, onClick: () => $(!A), size: b })
902
+ M && /* @__PURE__ */ s(Ct, { onClick: Ze, size: v, rightOffset: Y ? L + 4 : 4 }),
903
+ Y && /* @__PURE__ */ s(St, { visible: N, onClick: () => S(!N), size: v })
904
904
  ] }),
905
- F && v && /* @__PURE__ */ s("span", { className: "nc-error-message", children: z })
905
+ F && b && /* @__PURE__ */ s("span", { className: "nc-error-message", children: P })
906
906
  ] });
907
907
  }
908
908
  function Gn({
@@ -941,8 +941,8 @@ function Gn({
941
941
  );
942
942
  }
943
943
  function jn({ title: e, titleTools: t, children: n, style: r }) {
944
- return /* @__PURE__ */ x("div", { className: "nc-list-group", style: r, children: [
945
- (e || t) && /* @__PURE__ */ x("div", { className: "nc-list-group-title", children: [
944
+ return /* @__PURE__ */ k("div", { className: "nc-list-group", style: r, children: [
945
+ (e || t) && /* @__PURE__ */ k("div", { className: "nc-list-group-title", children: [
946
946
  /* @__PURE__ */ s("div", { children: e }),
947
947
  t && /* @__PURE__ */ s("div", { className: "nc-list-group-title-tools", children: t })
948
948
  ] }),
@@ -958,29 +958,29 @@ function jn({ title: e, titleTools: t, children: n, style: r }) {
958
958
  function Kn({ values: e, onChange: t, options: n, placeholder: r = "Select…", label: o }) {
959
959
  const [i, a] = E(!1), [c, l] = E(""), p = W(null), f = me(() => n.filter((d) => d.label.toLowerCase().includes(c.toLowerCase())), [n, c]);
960
960
  B(() => {
961
- function d(u) {
962
- !(u.target instanceof Node) || !p.current || p.current.contains(u.target) || a(!1);
961
+ function d(h) {
962
+ !(h.target instanceof Node) || !p.current || p.current.contains(h.target) || a(!1);
963
963
  }
964
964
  return document.addEventListener("mousedown", d), () => document.removeEventListener("mousedown", d);
965
965
  }, []);
966
- const b = (d) => {
967
- e.includes(d) ? t(e.filter((u) => u !== d)) : t([...e, d]);
966
+ const v = (d) => {
967
+ e.includes(d) ? t(e.filter((h) => h !== d)) : t([...e, d]);
968
968
  };
969
- return /* @__PURE__ */ x("div", { ref: p, className: "nc-col", style: { position: "relative" }, children: [
969
+ return /* @__PURE__ */ k("div", { ref: p, className: "nc-col", style: { position: "relative" }, children: [
970
970
  o && /* @__PURE__ */ s("span", { className: "nc-label", children: o }),
971
- /* @__PURE__ */ x("div", { className: "nc-row", style: { flexWrap: "wrap", gap: 6, minHeight: 42, alignItems: "center", border: "1px solid var(--nc-button-border)", borderRadius: 8, background: "var(--nc-button-bg)", padding: "4px 8px" }, children: [
971
+ /* @__PURE__ */ k("div", { className: "nc-row", style: { flexWrap: "wrap", gap: 6, minHeight: 42, alignItems: "center", border: "1px solid var(--nc-button-border)", borderRadius: 8, background: "var(--nc-button-bg)", padding: "4px 8px" }, children: [
972
972
  e.length === 0 && /* @__PURE__ */ s("span", { className: "nc-label", children: r }),
973
973
  e.map((d) => {
974
- const u = n.find((m) => m.value === d);
975
- return u ? /* @__PURE__ */ x("span", { style: { padding: "4px 8px", borderRadius: 6, display: "inline-flex", alignItems: "center", gap: 4, background: "var(--nc-button-bg)", border: "1px solid var(--nc-button-border)" }, children: [
976
- u.label,
974
+ const h = n.find((y) => y.value === d);
975
+ return h ? /* @__PURE__ */ k("span", { style: { padding: "4px 8px", borderRadius: 6, display: "inline-flex", alignItems: "center", gap: 4, background: "var(--nc-button-bg)", border: "1px solid var(--nc-button-border)" }, children: [
976
+ h.label,
977
977
  /* @__PURE__ */ s(
978
978
  "button",
979
979
  {
980
980
  className: "nc-button nc-ghost",
981
981
  style: { padding: 0, minHeight: 0, height: 20, width: 20, display: "inline-flex", alignItems: "center", justifyContent: "center", border: "none" },
982
- onClick: () => b(d),
983
- "aria-label": `Remove ${u.label}`,
982
+ onClick: () => v(d),
983
+ "aria-label": `Remove ${h.label}`,
984
984
  children: "✕"
985
985
  }
986
986
  )
@@ -997,12 +997,12 @@ function Kn({ values: e, onChange: t, options: n, placeholder: r = "Select…",
997
997
  }
998
998
  )
999
999
  ] }),
1000
- i && /* @__PURE__ */ x("div", { className: "nc-combo-dropdown", style: { position: "absolute", top: "100%", left: 0, right: 0, zIndex: 10, marginTop: 4, boxShadow: "0 4px 12px var(--nc-shadow)" }, children: [
1000
+ i && /* @__PURE__ */ k("div", { className: "nc-combo-dropdown", style: { position: "absolute", top: "100%", left: 0, right: 0, zIndex: 10, marginTop: 4, boxShadow: "0 4px 12px var(--nc-shadow)" }, children: [
1001
1001
  f.map((d) => {
1002
- const u = e.includes(d.value);
1003
- return /* @__PURE__ */ x("div", { className: "nc-section nc-row", style: { justifyContent: "space-between", cursor: "pointer", padding: 12 }, onMouseDown: () => b(d.value), children: [
1002
+ const h = e.includes(d.value);
1003
+ return /* @__PURE__ */ k("div", { className: "nc-section nc-row", style: { justifyContent: "space-between", cursor: "pointer", padding: 12 }, onMouseDown: () => v(d.value), children: [
1004
1004
  /* @__PURE__ */ s("span", { children: d.label }),
1005
- /* @__PURE__ */ s("span", { children: u ? "✔️" : "" })
1005
+ /* @__PURE__ */ s("span", { children: h ? "✔️" : "" })
1006
1006
  ] }, d.value);
1007
1007
  }),
1008
1008
  f.length === 0 && /* @__PURE__ */ s("div", { className: "nc-section nc-label", children: "No results" })
@@ -1049,112 +1049,112 @@ function _n({
1049
1049
  disabled: i = !1,
1050
1050
  size: a = "default"
1051
1051
  }) {
1052
- const [c, l] = E(!1), [p, f] = E(""), [b, d] = E(""), [u, m] = E({ top: 0, left: 0, width: 0, right: void 0 }), h = W(null), g = W(null);
1052
+ const [c, l] = E(!1), [p, f] = E(""), [v, d] = E(""), [h, y] = E({ top: 0, left: 0, width: 0, right: void 0 }), g = W(null), w = W(null);
1053
1053
  B(() => {
1054
- if (c && h.current) {
1055
- const C = h.current.getBoundingClientRect(), z = Math.max(C.width, 400);
1056
- window.innerWidth - C.left < z && C.right >= z ? m({
1054
+ if (c && g.current) {
1055
+ const C = g.current.getBoundingClientRect(), P = Math.max(C.width, 400);
1056
+ window.innerWidth - C.left < P && C.right >= P ? y({
1057
1057
  top: C.bottom + 4,
1058
1058
  left: 0,
1059
1059
  // Not used but type needs it, let's just use 0
1060
1060
  right: window.innerWidth - C.right,
1061
- width: z
1062
- }) : m({
1061
+ width: P
1062
+ }) : y({
1063
1063
  top: C.bottom + 4,
1064
1064
  left: C.left,
1065
1065
  right: void 0,
1066
- width: z
1066
+ width: P
1067
1067
  });
1068
1068
  }
1069
1069
  }, [c]), B(() => {
1070
1070
  if (!c) return;
1071
- const C = (S) => {
1072
- h.current && !h.current.contains(S.target) && g.current && !g.current.contains(S.target) && l(!1);
1071
+ const C = ($) => {
1072
+ g.current && !g.current.contains($.target) && w.current && !w.current.contains($.target) && l(!1);
1073
1073
  };
1074
1074
  return document.addEventListener("mousedown", C), () => document.removeEventListener("mousedown", C);
1075
1075
  }, [c]);
1076
- const k = () => {
1076
+ const A = () => {
1077
1077
  f(e || Te()), d(t || Te()), l(!0);
1078
- }, v = () => {
1078
+ }, b = () => {
1079
1079
  l(!1);
1080
- }, N = () => {
1081
- const C = pe(p), S = pe(b);
1082
- if (C || S)
1080
+ }, u = () => {
1081
+ const C = pe(p), $ = pe(v);
1082
+ if (C || $)
1083
1083
  return;
1084
- const z = de(p), F = de(b);
1085
- z && F && (n == null || n(z, F)), l(!1);
1086
- }, w = e && t ? `${Ee(e)} - ${Ee(t)}` : "Select month range", A = pe(p), $ = pe(b), L = de(p), T = de(b), y = L && T && L > T, R = c ? ue(
1084
+ const P = de(p), F = de(v);
1085
+ P && F && (n == null || n(P, F)), l(!1);
1086
+ }, m = e && t ? `${Ee(e)} - ${Ee(t)}` : "Select month range", N = pe(p), S = pe(v), z = de(p), T = de(v), x = z && T && z > T, R = c ? ue(
1087
1087
  /* @__PURE__ */ s(
1088
1088
  "div",
1089
1089
  {
1090
- ref: g,
1090
+ ref: w,
1091
1091
  className: "nc-month-range-picker-popup",
1092
1092
  style: {
1093
1093
  position: "fixed",
1094
- top: u.top,
1095
- ...u.right !== void 0 ? { right: u.right } : { left: u.left },
1096
- width: u.width,
1094
+ top: h.top,
1095
+ ...h.right !== void 0 ? { right: h.right } : { left: h.left },
1096
+ width: h.width,
1097
1097
  zIndex: 1e3
1098
1098
  },
1099
- children: /* @__PURE__ */ x("div", { className: "nc-month-range-picker-content", children: [
1100
- /* @__PURE__ */ x("div", { className: "nc-month-range-picker-row", children: [
1101
- /* @__PURE__ */ x("div", { className: "nc-month-range-picker-column", children: [
1099
+ children: /* @__PURE__ */ k("div", { className: "nc-month-range-picker-content", children: [
1100
+ /* @__PURE__ */ k("div", { className: "nc-month-range-picker-row", children: [
1101
+ /* @__PURE__ */ k("div", { className: "nc-month-range-picker-column", children: [
1102
1102
  /* @__PURE__ */ s("label", { className: "nc-label", children: "Start Month" }),
1103
1103
  /* @__PURE__ */ s(
1104
1104
  "input",
1105
1105
  {
1106
1106
  type: "text",
1107
- className: `nc-month-input ${A ? "nc-error" : ""}`,
1107
+ className: `nc-month-input ${N ? "nc-error" : ""}`,
1108
1108
  value: p,
1109
1109
  onChange: (C) => f(C.target.value),
1110
1110
  placeholder: "YY-M(M) or YYYY-M(M)"
1111
1111
  }
1112
1112
  ),
1113
- A && /* @__PURE__ */ s("div", { className: "nc-month-error-text", children: A })
1113
+ N && /* @__PURE__ */ s("div", { className: "nc-month-error-text", children: N })
1114
1114
  ] }),
1115
- /* @__PURE__ */ x("div", { className: "nc-month-range-picker-column", children: [
1115
+ /* @__PURE__ */ k("div", { className: "nc-month-range-picker-column", children: [
1116
1116
  /* @__PURE__ */ s("label", { className: "nc-label", children: "End Month" }),
1117
1117
  /* @__PURE__ */ s(
1118
1118
  "input",
1119
1119
  {
1120
1120
  type: "text",
1121
- className: `nc-month-input ${$ ? "nc-error" : ""}`,
1122
- value: b,
1121
+ className: `nc-month-input ${S ? "nc-error" : ""}`,
1122
+ value: v,
1123
1123
  onChange: (C) => d(C.target.value),
1124
1124
  placeholder: "YY-M(M) or YYYY-M(M)"
1125
1125
  }
1126
1126
  ),
1127
- $ && /* @__PURE__ */ s("div", { className: "nc-month-error-text", children: $ })
1127
+ S && /* @__PURE__ */ s("div", { className: "nc-month-error-text", children: S })
1128
1128
  ] })
1129
1129
  ] }),
1130
- y && !A && !$ && /* @__PURE__ */ s("div", { className: "nc-month-range-error", children: "End month must be after or equal to start month" }),
1131
- /* @__PURE__ */ x("div", { className: "nc-month-range-picker-footer", children: [
1130
+ x && !N && !S && /* @__PURE__ */ s("div", { className: "nc-month-range-error", children: "End month must be after or equal to start month" }),
1131
+ /* @__PURE__ */ k("div", { className: "nc-month-range-picker-footer", children: [
1132
1132
  /* @__PURE__ */ s(
1133
1133
  K,
1134
1134
  {
1135
1135
  variant: "primary",
1136
- onClick: N,
1137
- disabled: !p || !b || !!A || !!$ || !!y,
1136
+ onClick: u,
1137
+ disabled: !p || !v || !!N || !!S || !!x,
1138
1138
  children: "Apply"
1139
1139
  }
1140
1140
  ),
1141
- /* @__PURE__ */ s(K, { variant: "ghost", onClick: v, children: "Cancel" })
1141
+ /* @__PURE__ */ s(K, { variant: "ghost", onClick: b, children: "Cancel" })
1142
1142
  ] })
1143
1143
  ] })
1144
1144
  }
1145
1145
  ),
1146
1146
  document.body
1147
1147
  ) : null;
1148
- return /* @__PURE__ */ x("div", { className: `nc-month-range-picker ${a === "small" ? "nc-small " : ""}${o}`, children: [
1148
+ return /* @__PURE__ */ k("div", { className: `nc-month-range-picker ${a === "small" ? "nc-small " : ""}${o}`, children: [
1149
1149
  r && /* @__PURE__ */ s("label", { className: `nc-label${a === "small" ? " nc-small" : ""}`, children: r }),
1150
1150
  /* @__PURE__ */ s(
1151
1151
  "button",
1152
1152
  {
1153
- ref: h,
1153
+ ref: g,
1154
1154
  className: `nc-month-range-picker-input${a === "small" ? " nc-small" : ""}`,
1155
- onClick: k,
1155
+ onClick: A,
1156
1156
  disabled: i,
1157
- children: w
1157
+ children: m
1158
1158
  }
1159
1159
  ),
1160
1160
  R
@@ -1168,9 +1168,9 @@ function Un({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disa
1168
1168
  const d = e + o;
1169
1169
  r !== void 0 && d > r || t(parseFloat(d.toFixed(10)));
1170
1170
  };
1171
- return /* @__PURE__ */ x("div", { className: `nc-col nc-number-input-col ${l ? "nc-small" : ""}`, children: [
1171
+ return /* @__PURE__ */ k("div", { className: `nc-col nc-number-input-col ${l ? "nc-small" : ""}`, children: [
1172
1172
  i && /* @__PURE__ */ s("span", { className: `nc-label ${l ? "nc-small" : ""}`, children: i }),
1173
- /* @__PURE__ */ x("div", { className: `nc-number-input-container ${l ? "nc-small" : ""}`, children: [
1173
+ /* @__PURE__ */ k("div", { className: `nc-number-input-container ${l ? "nc-small" : ""}`, children: [
1174
1174
  /* @__PURE__ */ s(
1175
1175
  "input",
1176
1176
  {
@@ -1178,8 +1178,8 @@ function Un({ value: e, onChange: t, min: n, max: r, step: o = 1, label: i, disa
1178
1178
  type: "number",
1179
1179
  value: e,
1180
1180
  onChange: (d) => {
1181
- const u = parseFloat(d.target.value);
1182
- isNaN(u) || n !== void 0 && u < n || r !== void 0 && u > r || t(u);
1181
+ const h = parseFloat(d.target.value);
1182
+ isNaN(h) || n !== void 0 && h < n || r !== void 0 && h > r || t(h);
1183
1183
  },
1184
1184
  min: n,
1185
1185
  max: r,
@@ -1221,12 +1221,12 @@ function qn({
1221
1221
  width: p = 200
1222
1222
  }) {
1223
1223
  const f = (d) => {
1224
- const u = parseFloat(d.target.value);
1225
- t(u);
1226
- }, b = (e - n) / (r - n) * 100;
1227
- return /* @__PURE__ */ x("div", { className: "nc-col", style: { gap: 6 }, children: [
1224
+ const h = parseFloat(d.target.value);
1225
+ t(h);
1226
+ }, v = (e - n) / (r - n) * 100;
1227
+ return /* @__PURE__ */ k("div", { className: "nc-col", style: { gap: 6 }, children: [
1228
1228
  i && /* @__PURE__ */ s("span", { className: "nc-label", children: i }),
1229
- /* @__PURE__ */ x("div", { style: { display: "flex", gap: 12, alignItems: "center" }, children: [
1229
+ /* @__PURE__ */ k("div", { style: { display: "flex", gap: 12, alignItems: "center" }, children: [
1230
1230
  /* @__PURE__ */ s(
1231
1231
  "input",
1232
1232
  {
@@ -1240,7 +1240,7 @@ function qn({
1240
1240
  disabled: a,
1241
1241
  style: {
1242
1242
  width: p,
1243
- "--nc-slider-percentage": `${b}%`
1243
+ "--nc-slider-percentage": `${v}%`
1244
1244
  }
1245
1245
  }
1246
1246
  ),
@@ -1286,88 +1286,88 @@ function Xn({ active: e, children: t, keepMounted: n = !1, className: r = "", st
1286
1286
  return /* @__PURE__ */ s("div", { className: `nc-tab-panels ${r}`, style: o, children: a });
1287
1287
  }
1288
1288
  function Jn({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, className: i, toolbar: a, multiline: c, orientation: l = "horizontal", style: p }) {
1289
- const f = W(null), [b, d] = E(!1), [u, m] = E(!1), h = l === "verticalLeft" || l === "verticalRight", g = W(!1), k = W(0), v = W(0), N = W(!1);
1289
+ const f = W(null), [v, d] = E(!1), [h, y] = E(!1), g = l === "verticalLeft" || l === "verticalRight", w = W(!1), A = W(0), b = W(0), u = W(!1);
1290
1290
  B(() => {
1291
- const y = () => {
1291
+ const x = () => {
1292
1292
  if (f.current)
1293
- if (h) {
1294
- const { scrollTop: C, scrollHeight: S, clientHeight: z } = f.current;
1295
- d(C > 1), m(C < S - z - 1);
1293
+ if (g) {
1294
+ const { scrollTop: C, scrollHeight: $, clientHeight: P } = f.current;
1295
+ d(C > 1), y(C < $ - P - 1);
1296
1296
  } else {
1297
- const { scrollLeft: C, scrollWidth: S, clientWidth: z } = f.current;
1298
- d(C > 1), m(C < S - z - 1);
1297
+ const { scrollLeft: C, scrollWidth: $, clientWidth: P } = f.current;
1298
+ d(C > 1), y(C < $ - P - 1);
1299
1299
  }
1300
1300
  }, R = f.current;
1301
1301
  if (R)
1302
- return y(), R.addEventListener("scroll", y), window.addEventListener("resize", y), () => {
1303
- R.removeEventListener("scroll", y), window.removeEventListener("resize", y);
1302
+ return x(), R.addEventListener("scroll", x), window.addEventListener("resize", x), () => {
1303
+ R.removeEventListener("scroll", x), window.removeEventListener("resize", x);
1304
1304
  };
1305
- }, [e, h]);
1306
- const w = (y) => {
1307
- f.current && (g.current = !0, N.current = !1, k.current = h ? y.clientY : y.clientX, v.current = h ? f.current.scrollTop : f.current.scrollLeft, f.current.style.cursor = "grabbing", f.current.style.userSelect = "none");
1308
- }, A = (y) => {
1309
- if (!g.current || !f.current) return;
1310
- const R = h ? y.clientY : y.clientX, C = k.current - R;
1311
- Math.abs(C) > 3 && (N.current = !0), h ? f.current.scrollTop = v.current + C : f.current.scrollLeft = v.current + C;
1312
- }, $ = () => {
1313
- f.current && (g.current = !1, f.current.style.cursor = "", f.current.style.userSelect = "");
1314
- }, L = () => {
1315
- $();
1305
+ }, [e, g]);
1306
+ const m = (x) => {
1307
+ f.current && (w.current = !0, u.current = !1, A.current = g ? x.clientY : x.clientX, b.current = g ? f.current.scrollTop : f.current.scrollLeft, f.current.style.cursor = "grabbing", f.current.style.userSelect = "none");
1308
+ }, N = (x) => {
1309
+ if (!w.current || !f.current) return;
1310
+ const R = g ? x.clientY : x.clientX, C = A.current - R;
1311
+ Math.abs(C) > 3 && (u.current = !0), g ? f.current.scrollTop = b.current + C : f.current.scrollLeft = b.current + C;
1312
+ }, S = () => {
1313
+ f.current && (w.current = !1, f.current.style.cursor = "", f.current.style.userSelect = "");
1314
+ }, z = () => {
1315
+ S();
1316
1316
  };
1317
1317
  B(() => {
1318
- const y = f.current;
1319
- if (!y || h) return;
1318
+ const x = f.current;
1319
+ if (!x || g) return;
1320
1320
  const R = (C) => {
1321
- C.deltaY !== 0 && (C.preventDefault(), y.scrollLeft += C.deltaY * 0.3);
1321
+ C.deltaY !== 0 && (C.preventDefault(), x.scrollLeft += C.deltaY * 0.3);
1322
1322
  };
1323
- return y.addEventListener("wheel", R, { passive: !1 }), () => {
1324
- y.removeEventListener("wheel", R);
1323
+ return x.addEventListener("wheel", R, { passive: !1 }), () => {
1324
+ x.removeEventListener("wheel", R);
1325
1325
  };
1326
- }, [h]);
1327
- const T = (y) => {
1328
- N.current || n(y);
1326
+ }, [g]);
1327
+ const T = (x) => {
1328
+ u.current || n(x);
1329
1329
  };
1330
- return /* @__PURE__ */ x("div", { className: `nc-tab-container ${h ? `nc-vertical nc-${l}` : ""} ${i || ""}`, style: p, children: [
1331
- /* @__PURE__ */ x("div", { className: "nc-tab-scroll-wrapper", children: [
1332
- b && /* @__PURE__ */ s("div", { className: `nc-tab-scroll-indicator ${h ? "nc-top" : "nc-left"}`, children: h ? /* @__PURE__ */ s($t, { size: 16 }) : /* @__PURE__ */ s(at, { size: 16 }) }),
1330
+ return /* @__PURE__ */ k("div", { className: `nc-tab-container ${g ? `nc-vertical nc-${l}` : ""} ${i || ""}`, style: p, children: [
1331
+ /* @__PURE__ */ k("div", { className: "nc-tab-scroll-wrapper", children: [
1332
+ v && /* @__PURE__ */ s("div", { className: `nc-tab-scroll-indicator ${g ? "nc-top" : "nc-left"}`, children: g ? /* @__PURE__ */ s($t, { size: 16 }) : /* @__PURE__ */ s(at, { size: 16 }) }),
1333
1333
  /* @__PURE__ */ s(
1334
1334
  "div",
1335
1335
  {
1336
1336
  ref: f,
1337
1337
  className: `nc-tab-scroll ${c ? "nc-multiline" : ""}`,
1338
- onMouseDown: w,
1339
- onMouseMove: A,
1340
- onMouseUp: $,
1341
- onMouseLeave: L,
1338
+ onMouseDown: m,
1339
+ onMouseMove: N,
1340
+ onMouseUp: S,
1341
+ onMouseLeave: z,
1342
1342
  style: { cursor: "grab" },
1343
- children: e.map((y) => {
1344
- const R = typeof y == "string" ? y : y.id, C = typeof y == "string" ? y : y.label, S = r && !(o != null && o.includes(R));
1345
- return /* @__PURE__ */ x(
1343
+ children: e.map((x) => {
1344
+ const R = typeof x == "string" ? x : x.id, C = typeof x == "string" ? x : x.label, $ = r && !(o != null && o.includes(R));
1345
+ return /* @__PURE__ */ k(
1346
1346
  "div",
1347
1347
  {
1348
- className: `nc-tab-item ${t === R ? "nc-active" : ""} ${S ? "nc-closable" : ""}`,
1348
+ className: `nc-tab-item ${t === R ? "nc-active" : ""} ${$ ? "nc-closable" : ""}`,
1349
1349
  onClick: () => T(R),
1350
1350
  role: "button",
1351
1351
  tabIndex: 0,
1352
- onKeyDown: (z) => {
1353
- (z.key === "Enter" || z.key === " ") && n(R);
1352
+ onKeyDown: (P) => {
1353
+ (P.key === "Enter" || P.key === " ") && n(R);
1354
1354
  },
1355
1355
  children: [
1356
- /* @__PURE__ */ s("span", { className: "nc-tab-label", children: h ? C : typeof C == "string" ? C.toUpperCase() : C }),
1357
- S && /* @__PURE__ */ s(
1356
+ /* @__PURE__ */ s("span", { className: "nc-tab-label", children: g ? C : typeof C == "string" ? C.toUpperCase() : C }),
1357
+ $ && /* @__PURE__ */ s(
1358
1358
  "span",
1359
1359
  {
1360
1360
  className: "nc-tab-close",
1361
1361
  role: "button",
1362
1362
  tabIndex: 0,
1363
1363
  "aria-label": `Close ${typeof C == "string" ? C : R}`,
1364
- onClick: (z) => {
1365
- z.stopPropagation(), r(R);
1364
+ onClick: (P) => {
1365
+ P.stopPropagation(), r(R);
1366
1366
  },
1367
- onKeyDown: (z) => {
1368
- (z.key === "Enter" || z.key === " ") && (z.stopPropagation(), r(R));
1367
+ onKeyDown: (P) => {
1368
+ (P.key === "Enter" || P.key === " ") && (P.stopPropagation(), r(R));
1369
1369
  },
1370
- children: /* @__PURE__ */ x("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
1370
+ children: /* @__PURE__ */ k("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
1371
1371
  /* @__PURE__ */ s("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
1372
1372
  /* @__PURE__ */ s("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
1373
1373
  ] })
@@ -1380,13 +1380,13 @@ function Jn({ tabs: e, active: t, onChange: n, onClose: r, permanentTabs: o, cla
1380
1380
  })
1381
1381
  }
1382
1382
  ),
1383
- u && /* @__PURE__ */ s("div", { className: `nc-tab-scroll-indicator ${h ? "nc-bottom" : "nc-right"}`, children: h ? /* @__PURE__ */ s(lt, { size: 16 }) : /* @__PURE__ */ s(dt, { size: 16 }) })
1383
+ h && /* @__PURE__ */ s("div", { className: `nc-tab-scroll-indicator ${g ? "nc-bottom" : "nc-right"}`, children: g ? /* @__PURE__ */ s(lt, { size: 16 }) : /* @__PURE__ */ s(dt, { size: 16 }) })
1384
1384
  ] }),
1385
1385
  a && /* @__PURE__ */ s("div", { className: "nc-tab-toolbar", children: a })
1386
1386
  ] });
1387
1387
  }
1388
1388
  function Qn({ checked: e, onChange: t, disabled: n, label: r }) {
1389
- return /* @__PURE__ */ x(
1389
+ return /* @__PURE__ */ k(
1390
1390
  "label",
1391
1391
  {
1392
1392
  className: "nc-row",
@@ -1458,11 +1458,11 @@ function Rt(e, t, n, r) {
1458
1458
  const o = e.split(`
1459
1459
  `), i = Math.max(1, Math.min(t, o.length));
1460
1460
  let a = 0;
1461
- for (let b = 0; b < i - 1; b++)
1462
- a += o[b].length + 1;
1461
+ for (let v = 0; v < i - 1; v++)
1462
+ a += o[v].length + 1;
1463
1463
  const l = o[i - 1].split(" "), p = Math.max(1, Math.min(n, l.length));
1464
- for (let b = 0; b < p - 1; b++)
1465
- a += l[b].length + 1;
1464
+ for (let v = 0; v < p - 1; v++)
1465
+ a += l[v].length + 1;
1466
1466
  const f = Math.max(1, Math.min(r, l[p - 1].length + 1));
1467
1467
  return a += f - 1, a;
1468
1468
  }
@@ -1476,77 +1476,77 @@ function Et(e, t) {
1476
1476
  }
1477
1477
  const Zn = ft(
1478
1478
  function({ value: t, onChange: n, placeholder: r, className: o, style: i, showLineNumbers: a = !1, onCursorChange: c, highlightLine: l }, p) {
1479
- const f = W(null), b = W(null), d = W(null);
1479
+ const f = W(null), v = W(null), d = W(null);
1480
1480
  ht(p, () => ({
1481
- goToLine(v) {
1481
+ goToLine(b) {
1482
+ const u = f.current;
1483
+ if (!u) return;
1484
+ const m = Et(t, b);
1485
+ u.focus(), u.setSelectionRange(m, m);
1486
+ const N = parseFloat(getComputedStyle(u).lineHeight) || 18;
1487
+ u.scrollTop = (Math.max(1, b) - 1) * N, y(), h();
1488
+ },
1489
+ goToPosition(b, u, m) {
1482
1490
  const N = f.current;
1483
1491
  if (!N) return;
1484
- const w = Et(t, v);
1485
- N.focus(), N.setSelectionRange(w, w);
1486
- const A = parseFloat(getComputedStyle(N).lineHeight) || 18;
1487
- N.scrollTop = (Math.max(1, v) - 1) * A, m(), u();
1488
- },
1489
- goToPosition(v, N, w) {
1490
- const A = f.current;
1491
- if (!A) return;
1492
- const $ = Rt(t, v, N, w);
1493
- A.focus(), A.setSelectionRange($, $);
1494
- const L = parseFloat(getComputedStyle(A).lineHeight) || 18;
1495
- A.scrollTop = (Math.max(1, v) - 1) * L, m(), u();
1492
+ const S = Rt(t, b, u, m);
1493
+ N.focus(), N.setSelectionRange(S, S);
1494
+ const z = parseFloat(getComputedStyle(N).lineHeight) || 18;
1495
+ N.scrollTop = (Math.max(1, b) - 1) * z, y(), h();
1496
1496
  }
1497
1497
  }), [t]);
1498
- const u = O(() => {
1498
+ const h = O(() => {
1499
1499
  if (!c || !f.current) return;
1500
- const v = Mt(t, f.current.selectionStart);
1501
- c(v);
1502
- }, [c, t]), m = O(() => {
1503
- const v = f.current;
1504
- v && (b.current && (b.current.scrollTop = v.scrollTop, b.current.scrollLeft = v.scrollLeft), d.current && (d.current.scrollTop = v.scrollTop));
1500
+ const b = Mt(t, f.current.selectionStart);
1501
+ c(b);
1502
+ }, [c, t]), y = O(() => {
1503
+ const b = f.current;
1504
+ b && (v.current && (v.current.scrollTop = b.scrollTop, v.current.scrollLeft = b.scrollLeft), d.current && (d.current.scrollTop = b.scrollTop));
1505
1505
  }, []);
1506
1506
  B(() => {
1507
1507
  if (l == null || l < 1) return;
1508
- const v = f.current;
1509
- if (!v) return;
1510
- const N = parseFloat(getComputedStyle(v).lineHeight) || 18, w = (l - 1) * N, A = w + N;
1511
- (w < v.scrollTop || A > v.scrollTop + v.clientHeight) && (v.scrollTop = w - v.clientHeight / 2 + N / 2), m();
1508
+ const b = f.current;
1509
+ if (!b) return;
1510
+ const u = parseFloat(getComputedStyle(b).lineHeight) || 18, m = (l - 1) * u, N = m + u;
1511
+ (m < b.scrollTop || N > b.scrollTop + b.clientHeight) && (b.scrollTop = m - b.clientHeight / 2 + u / 2), y();
1512
1512
  }, [l]);
1513
- const h = me(() => t.split(`
1514
- `).length, [t]), g = () => {
1515
- const v = [];
1516
- for (let N = 1; N <= h; N++)
1517
- v.push(
1518
- /* @__PURE__ */ s("div", { className: `nc-csv-line-number ${l === N ? "nc-csv-highlight" : ""}`, children: N }, N)
1513
+ const g = me(() => t.split(`
1514
+ `).length, [t]), w = () => {
1515
+ const b = [];
1516
+ for (let u = 1; u <= g; u++)
1517
+ b.push(
1518
+ /* @__PURE__ */ s("div", { className: `nc-csv-line-number ${l === u ? "nc-csv-highlight" : ""}`, children: u }, u)
1519
1519
  );
1520
- return /* @__PURE__ */ s("div", { className: "nc-csv-gutter", ref: d, children: v });
1521
- }, k = (v) => v ? v.split(`
1522
- `).map((w, A) => {
1523
- const $ = w.split(" ");
1524
- return /* @__PURE__ */ x("div", { className: `nc-csv-line ${l === A + 1 ? "nc-csv-highlight" : ""}`, children: [
1525
- $.map((L, T) => /* @__PURE__ */ x("span", { children: [
1520
+ return /* @__PURE__ */ s("div", { className: "nc-csv-gutter", ref: d, children: b });
1521
+ }, A = (b) => b ? b.split(`
1522
+ `).map((m, N) => {
1523
+ const S = m.split(" ");
1524
+ return /* @__PURE__ */ k("div", { className: `nc-csv-line ${l === N + 1 ? "nc-csv-highlight" : ""}`, children: [
1525
+ S.map((z, T) => /* @__PURE__ */ k("span", { children: [
1526
1526
  T > 0 && /* @__PURE__ */ s("span", { className: "nc-csv-tab-char", children: " " }),
1527
- /* @__PURE__ */ s("span", { style: { color: ze[T % ze.length] }, children: L })
1527
+ /* @__PURE__ */ s("span", { style: { color: ze[T % ze.length] }, children: z })
1528
1528
  ] }, T)),
1529
- w === "" && `
1529
+ m === "" && `
1530
1530
  `
1531
- ] }, A);
1531
+ ] }, N);
1532
1532
  }) : null;
1533
- return /* @__PURE__ */ x("div", { className: `nc-csv-textarea-container ${a ? "nc-csv-with-gutter" : ""} ${o ?? ""}`, style: i, children: [
1534
- a && g(),
1535
- /* @__PURE__ */ x("div", { className: "nc-csv-textarea-editor", children: [
1536
- /* @__PURE__ */ s("div", { className: "nc-csv-textarea-backdrop", ref: b, children: /* @__PURE__ */ s("pre", { className: "nc-csv-textarea-highlights", children: k(t) }) }),
1533
+ return /* @__PURE__ */ k("div", { className: `nc-csv-textarea-container ${a ? "nc-csv-with-gutter" : ""} ${o ?? ""}`, style: i, children: [
1534
+ a && w(),
1535
+ /* @__PURE__ */ k("div", { className: "nc-csv-textarea-editor", children: [
1536
+ /* @__PURE__ */ s("div", { className: "nc-csv-textarea-backdrop", ref: v, children: /* @__PURE__ */ s("pre", { className: "nc-csv-textarea-highlights", children: A(t) }) }),
1537
1537
  /* @__PURE__ */ s(
1538
1538
  "textarea",
1539
1539
  {
1540
1540
  ref: f,
1541
1541
  className: "nc-csv-textarea-input",
1542
1542
  value: t,
1543
- onChange: (v) => {
1544
- n(v.target.value), requestAnimationFrame(u);
1543
+ onChange: (b) => {
1544
+ n(b.target.value), requestAnimationFrame(h);
1545
1545
  },
1546
- onScroll: m,
1547
- onSelect: u,
1548
- onKeyUp: u,
1549
- onClick: u,
1546
+ onScroll: y,
1547
+ onSelect: h,
1548
+ onKeyUp: h,
1549
+ onClick: h,
1550
1550
  placeholder: r,
1551
1551
  spellCheck: !1,
1552
1552
  autoComplete: "off",
@@ -1599,7 +1599,7 @@ function Fe(e) {
1599
1599
  Pe.set(e, n);
1600
1600
  }
1601
1601
  function Pt({ notification: e }) {
1602
- const { t } = Q(), n = () => {
1602
+ const { t } = U(), n = () => {
1603
1603
  if (e.title) return e.title;
1604
1604
  switch (e.type) {
1605
1605
  case "success":
@@ -1618,8 +1618,8 @@ function Pt({ notification: e }) {
1618
1618
  "div",
1619
1619
  {
1620
1620
  className: `nc-notification nc-notification-${e.type || "info"}`,
1621
- children: /* @__PURE__ */ x("div", { className: "nc-notification-content", children: [
1622
- /* @__PURE__ */ x("div", { className: "nc-notification-body", style: { paddingRight: e.dismissible ? "8px" : "0" }, children: [
1621
+ children: /* @__PURE__ */ k("div", { className: "nc-notification-content", children: [
1622
+ /* @__PURE__ */ k("div", { className: "nc-notification-body", style: { paddingRight: e.dismissible ? "8px" : "0" }, children: [
1623
1623
  /* @__PURE__ */ s("div", { className: "nc-notification-title", children: n() }),
1624
1624
  /* @__PURE__ */ s("div", { className: "nc-notification-message", children: e.message })
1625
1625
  ] }),
@@ -1638,8 +1638,8 @@ function Pt({ notification: e }) {
1638
1638
  function er() {
1639
1639
  const [e, t] = E([]), [n, r] = E(/* @__PURE__ */ new Map()), [o, i] = E(/* @__PURE__ */ new Set()), a = W(null), c = W([]);
1640
1640
  return B(() => Tt((p) => {
1641
- const f = new Set(c.current.map((d) => d.id)), b = p.filter((d) => !f.has(d.id)).map((d) => d.id);
1642
- b.length > 0 ? (t(p), i(new Set(b)), requestAnimationFrame(() => {
1641
+ const f = new Set(c.current.map((d) => d.id)), v = p.filter((d) => !f.has(d.id)).map((d) => d.id);
1642
+ v.length > 0 ? (t(p), i(new Set(v)), requestAnimationFrame(() => {
1643
1643
  requestAnimationFrame(() => {
1644
1644
  i(/* @__PURE__ */ new Set());
1645
1645
  });
@@ -1649,10 +1649,10 @@ function er() {
1649
1649
  const l = /* @__PURE__ */ new Map();
1650
1650
  let p = 0;
1651
1651
  const f = a.current.children;
1652
- e.forEach((b, d) => {
1653
- if (l.set(b.id, p), f[d]) {
1654
- const u = f[d].offsetHeight;
1655
- b.isRemoving || (p += u + 12);
1652
+ e.forEach((v, d) => {
1653
+ if (l.set(v.id, p), f[d]) {
1654
+ const h = f[d].offsetHeight;
1655
+ v.isRemoving || (p += h + 12);
1656
1656
  }
1657
1657
  }), r(l);
1658
1658
  }, [e]), /* @__PURE__ */ s(
@@ -1674,7 +1674,7 @@ function er() {
1674
1674
  position: "relative"
1675
1675
  },
1676
1676
  children: e.map((l) => {
1677
- const p = o.has(l.id), f = l.isRemoving, b = n.get(l.id) || 0;
1677
+ const p = o.has(l.id), f = l.isRemoving, v = n.get(l.id) || 0;
1678
1678
  return /* @__PURE__ */ s(
1679
1679
  "div",
1680
1680
  {
@@ -1682,7 +1682,7 @@ function er() {
1682
1682
  position: "absolute",
1683
1683
  top: 0,
1684
1684
  left: 0,
1685
- transform: p ? "translateY(-120px)" : `translateY(${b}px)`,
1685
+ transform: p ? "translateY(-120px)" : `translateY(${v}px)`,
1686
1686
  // Only animate transform when not leaving, animate opacity always
1687
1687
  transition: f ? "opacity 300ms ease-out" : "transform 300ms ease-out, opacity 300ms ease-out",
1688
1688
  opacity: f ? 0 : 1,
@@ -1727,7 +1727,7 @@ function nr(e) {
1727
1727
  }
1728
1728
  class Bt {
1729
1729
  constructor() {
1730
- U(this, "apps", /* @__PURE__ */ new Map());
1730
+ q(this, "apps", /* @__PURE__ */ new Map());
1731
1731
  }
1732
1732
  /**
1733
1733
  * Register an app definition.
@@ -1768,8 +1768,8 @@ class Bt {
1768
1768
  const oe = new Bt(), Le = "nc-ui-app-state";
1769
1769
  class Dt {
1770
1770
  constructor() {
1771
- U(this, "state");
1772
- U(this, "listeners", /* @__PURE__ */ new Map());
1771
+ q(this, "state");
1772
+ q(this, "listeners", /* @__PURE__ */ new Map());
1773
1773
  this.state = this.loadState();
1774
1774
  }
1775
1775
  loadState() {
@@ -1816,10 +1816,10 @@ class Dt {
1816
1816
  const _ = new Dt();
1817
1817
  class Ht {
1818
1818
  constructor() {
1819
- U(this, "apps", []);
1820
- U(this, "activeAppId", null);
1821
- U(this, "listeners", /* @__PURE__ */ new Set());
1822
- U(this, "refReadyResolvers", /* @__PURE__ */ new Map());
1819
+ q(this, "apps", []);
1820
+ q(this, "activeAppId", null);
1821
+ q(this, "listeners", /* @__PURE__ */ new Set());
1822
+ q(this, "refReadyResolvers", /* @__PURE__ */ new Map());
1823
1823
  }
1824
1824
  /**
1825
1825
  * Launch an app and wait for it to be ready (ref populated).
@@ -1935,13 +1935,13 @@ class Ht {
1935
1935
  }
1936
1936
  const G = new Ht(), Ve = se(null);
1937
1937
  function Wt() {
1938
- const e = J(Ve);
1938
+ const e = Q(Ve);
1939
1939
  if (!e)
1940
1940
  throw new Error("useApp must be used inside an App");
1941
1941
  return e;
1942
1942
  }
1943
1943
  function Ot({ size: e = 16 }) {
1944
- return /* @__PURE__ */ x(
1944
+ return /* @__PURE__ */ k(
1945
1945
  "svg",
1946
1946
  {
1947
1947
  width: e,
@@ -1960,8 +1960,8 @@ function Ot({ size: e = 16 }) {
1960
1960
  );
1961
1961
  }
1962
1962
  function Ft({ title: e, onClose: t, onBack: n, toolbar: r, hideBackButton: o }) {
1963
- return /* @__PURE__ */ x("div", { className: "nc-app-title-bar", children: [
1964
- /* @__PURE__ */ x("div", { className: "nc-app-title-bar-left", children: [
1963
+ return /* @__PURE__ */ k("div", { className: "nc-app-title-bar", children: [
1964
+ /* @__PURE__ */ k("div", { className: "nc-app-title-bar-left", children: [
1965
1965
  n && !o && /* @__PURE__ */ s(
1966
1966
  "button",
1967
1967
  {
@@ -1974,7 +1974,7 @@ function Ft({ title: e, onClose: t, onBack: n, toolbar: r, hideBackButton: o })
1974
1974
  ),
1975
1975
  /* @__PURE__ */ s("span", { className: "nc-app-title-bar-title", children: e })
1976
1976
  ] }),
1977
- /* @__PURE__ */ x("div", { className: "nc-app-title-bar-right", children: [
1977
+ /* @__PURE__ */ k("div", { className: "nc-app-title-bar-right", children: [
1978
1978
  r && /* @__PURE__ */ s("div", { className: "nc-app-title-bar-toolbar", children: r }),
1979
1979
  /* @__PURE__ */ s(We, { onClick: t, "aria-label": "Close application" })
1980
1980
  ] })
@@ -1991,7 +1991,7 @@ class Vt extends ke.Component {
1991
1991
  console.error(`Error loading app ${this.props.appId}:`, t, n);
1992
1992
  }
1993
1993
  render() {
1994
- return this.state.hasError ? /* @__PURE__ */ x(
1994
+ return this.state.hasError ? /* @__PURE__ */ k(
1995
1995
  "div",
1996
1996
  {
1997
1997
  style: {
@@ -2014,38 +2014,38 @@ class Vt extends ke.Component {
2014
2014
  }
2015
2015
  }
2016
2016
  function Ye({ appId: e, isActive: t, onClose: n }) {
2017
- const { t: r } = Q(), o = oe.get(e), [i, a] = E(""), [c, l] = E(null), [p, f] = E(null), [b, d] = E(!1), [u, m] = E(!1);
2017
+ const { t: r } = U(), o = oe.get(e), [i, a] = E(""), [c, l] = E(null), [p, f] = E(null), [v, d] = E(!1), [h, y] = E(!1);
2018
2018
  ke.useEffect(() => {
2019
2019
  o != null && o.titleKey && a(r(o.titleKey));
2020
2020
  }, [o, r]);
2021
- const h = O((y) => {
2022
- a(y);
2023
- }, []), g = O((y) => {
2024
- l(() => y);
2025
- }, []), k = O(() => {
2021
+ const g = O((x) => {
2022
+ a(x);
2023
+ }, []), w = O((x) => {
2024
+ l(() => x);
2025
+ }, []), A = O(() => {
2026
2026
  l(null);
2027
- }, []), v = O((y) => {
2028
- f(y);
2029
- }, []), N = O(() => {
2027
+ }, []), b = O((x) => {
2028
+ f(x);
2029
+ }, []), u = O(() => {
2030
2030
  f(null);
2031
- }, []), w = O((y) => {
2032
- d(y);
2033
- }, []), A = O((y) => {
2034
- m(y);
2035
- }, []), $ = me(() => ({
2036
- setTitle: h,
2037
- setBackHandler: g,
2038
- clearBackHandler: k,
2039
- setToolbar: v,
2040
- clearToolbar: N,
2041
- setHideBackButton: w,
2042
- setHideTitleBar: A,
2031
+ }, []), m = O((x) => {
2032
+ d(x);
2033
+ }, []), N = O((x) => {
2034
+ y(x);
2035
+ }, []), S = me(() => ({
2036
+ setTitle: g,
2037
+ setBackHandler: w,
2038
+ clearBackHandler: A,
2039
+ setToolbar: b,
2040
+ clearToolbar: u,
2041
+ setHideBackButton: m,
2042
+ setHideTitleBar: N,
2043
2043
  close: n
2044
- }), [h, g, k, v, N, w, A, n]);
2044
+ }), [g, w, A, b, u, m, N, n]);
2045
2045
  if (!o)
2046
2046
  return null;
2047
- const L = o.component, T = !o.hideTitleBar && !u;
2048
- return /* @__PURE__ */ x(
2047
+ const z = o.component, T = !o.hideTitleBar && !h;
2048
+ return /* @__PURE__ */ k(
2049
2049
  "div",
2050
2050
  {
2051
2051
  style: {
@@ -2062,7 +2062,7 @@ function Ye({ appId: e, isActive: t, onClose: n }) {
2062
2062
  onClose: n,
2063
2063
  onBack: c ?? void 0,
2064
2064
  toolbar: p,
2065
- hideBackButton: b
2065
+ hideBackButton: v
2066
2066
  }
2067
2067
  ),
2068
2068
  /* @__PURE__ */ s(
@@ -2075,10 +2075,10 @@ function Ye({ appId: e, isActive: t, onClose: n }) {
2075
2075
  minHeight: 0,
2076
2076
  display: "flex",
2077
2077
  flexDirection: "column",
2078
- backgroundColor: "var(--nc-bg-secondary)",
2078
+ backgroundColor: "var(--nc-bg-tertiary)",
2079
2079
  position: "relative"
2080
2080
  },
2081
- children: /* @__PURE__ */ s(Ve.Provider, { value: $, children: /* @__PURE__ */ s(Vt, { appId: e, children: /* @__PURE__ */ s(
2081
+ children: /* @__PURE__ */ s(Ve.Provider, { value: S, children: /* @__PURE__ */ s(Vt, { appId: e, children: /* @__PURE__ */ s(
2082
2082
  mt,
2083
2083
  {
2084
2084
  fallback: /* @__PURE__ */ s(
@@ -2093,7 +2093,7 @@ function Ye({ appId: e, isActive: t, onClose: n }) {
2093
2093
  children: /* @__PURE__ */ s(He, {})
2094
2094
  }
2095
2095
  ),
2096
- children: /* @__PURE__ */ s(L, {})
2096
+ children: /* @__PURE__ */ s(z, {})
2097
2097
  }
2098
2098
  ) }) })
2099
2099
  }
@@ -2136,7 +2136,7 @@ function rr({ children: e }) {
2136
2136
  }, []), /* @__PURE__ */ s(je.Provider, { value: t, children: e });
2137
2137
  }
2138
2138
  function Ke() {
2139
- return J(je);
2139
+ return Q(je);
2140
2140
  }
2141
2141
  const Ne = "-", Yt = (e) => {
2142
2142
  const t = jt(e), {
@@ -2246,27 +2246,27 @@ const Ne = "-", Yt = (e) => {
2246
2246
  experimentalParseClassName: n
2247
2247
  } = e, r = t.length === 1, o = t[0], i = t.length, a = (c) => {
2248
2248
  const l = [];
2249
- let p = 0, f = 0, b;
2250
- for (let g = 0; g < c.length; g++) {
2251
- let k = c[g];
2249
+ let p = 0, f = 0, v;
2250
+ for (let w = 0; w < c.length; w++) {
2251
+ let A = c[w];
2252
2252
  if (p === 0) {
2253
- if (k === o && (r || c.slice(g, g + i) === t)) {
2254
- l.push(c.slice(f, g)), f = g + i;
2253
+ if (A === o && (r || c.slice(w, w + i) === t)) {
2254
+ l.push(c.slice(f, w)), f = w + i;
2255
2255
  continue;
2256
2256
  }
2257
- if (k === "/") {
2258
- b = g;
2257
+ if (A === "/") {
2258
+ v = w;
2259
2259
  continue;
2260
2260
  }
2261
2261
  }
2262
- k === "[" ? p++ : k === "]" && p--;
2262
+ A === "[" ? p++ : A === "]" && p--;
2263
2263
  }
2264
- const d = l.length === 0 ? c : c.substring(f), u = d.startsWith(Ue), m = u ? d.substring(1) : d, h = b && b > f ? b - f : void 0;
2264
+ const d = l.length === 0 ? c : c.substring(f), h = d.startsWith(Ue), y = h ? d.substring(1) : d, g = v && v > f ? v - f : void 0;
2265
2265
  return {
2266
2266
  modifiers: l,
2267
- hasImportantModifier: u,
2268
- baseClassName: m,
2269
- maybePostfixModifierPosition: h
2267
+ hasImportantModifier: h,
2268
+ baseClassName: y,
2269
+ maybePostfixModifierPosition: g
2270
2270
  };
2271
2271
  };
2272
2272
  return n ? (c) => n({
@@ -2295,30 +2295,30 @@ const Ne = "-", Yt = (e) => {
2295
2295
  for (let l = a.length - 1; l >= 0; l -= 1) {
2296
2296
  const p = a[l], {
2297
2297
  modifiers: f,
2298
- hasImportantModifier: b,
2298
+ hasImportantModifier: v,
2299
2299
  baseClassName: d,
2300
- maybePostfixModifierPosition: u
2300
+ maybePostfixModifierPosition: h
2301
2301
  } = n(p);
2302
- let m = !!u, h = r(m ? d.substring(0, u) : d);
2303
- if (!h) {
2304
- if (!m) {
2302
+ let y = !!h, g = r(y ? d.substring(0, h) : d);
2303
+ if (!g) {
2304
+ if (!y) {
2305
2305
  c = p + (c.length > 0 ? " " + c : c);
2306
2306
  continue;
2307
2307
  }
2308
- if (h = r(d), !h) {
2308
+ if (g = r(d), !g) {
2309
2309
  c = p + (c.length > 0 ? " " + c : c);
2310
2310
  continue;
2311
2311
  }
2312
- m = !1;
2312
+ y = !1;
2313
2313
  }
2314
- const g = Xt(f).join(":"), k = b ? g + Ue : g, v = k + h;
2315
- if (i.includes(v))
2314
+ const w = Xt(f).join(":"), A = v ? w + Ue : w, b = A + g;
2315
+ if (i.includes(b))
2316
2316
  continue;
2317
- i.push(v);
2318
- const N = o(h, m);
2319
- for (let w = 0; w < N.length; ++w) {
2320
- const A = N[w];
2321
- i.push(k + A);
2317
+ i.push(b);
2318
+ const u = o(g, y);
2319
+ for (let m = 0; m < u.length; ++m) {
2320
+ const N = u[m];
2321
+ i.push(A + N);
2322
2322
  }
2323
2323
  c = p + (c.length > 0 ? " " + c : c);
2324
2324
  }
@@ -2341,7 +2341,7 @@ const qe = (e) => {
2341
2341
  function tn(e, ...t) {
2342
2342
  let n, r, o, i = a;
2343
2343
  function a(l) {
2344
- const p = t.reduce((f, b) => b(f), e());
2344
+ const p = t.reduce((f, v) => v(f), e());
2345
2345
  return n = Jt(p), r = n.cache.get, o = n.cache.set, i = c, c(l);
2346
2346
  }
2347
2347
  function c(l) {
@@ -2358,7 +2358,7 @@ function tn(e, ...t) {
2358
2358
  const H = (e) => {
2359
2359
  const t = (n) => n[e] || [];
2360
2360
  return t.isThemeGetter = !0, t;
2361
- }, Xe = /^\[(?:([a-z-]+):)?(.+)\]$/i, nn = /^\d+\/\d+$/, rn = /* @__PURE__ */ new Set(["px", "full", "screen"]), on = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, sn = /\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$/, cn = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, an = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ln = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, j = (e) => re(e) || rn.has(e) || nn.test(e), q = (e) => ie(e, "length", bn), re = (e) => !!e && !Number.isNaN(Number(e)), be = (e) => ie(e, "number", re), ae = (e) => !!e && Number.isInteger(Number(e)), dn = (e) => e.endsWith("%") && re(e.slice(0, -1)), I = (e) => Xe.test(e), X = (e) => on.test(e), un = /* @__PURE__ */ new Set(["length", "size", "percentage"]), pn = (e) => ie(e, un, Je), fn = (e) => ie(e, "position", Je), hn = /* @__PURE__ */ new Set(["image", "url"]), mn = (e) => ie(e, hn, wn), gn = (e) => ie(e, "", vn), le = () => !0, ie = (e, t, n) => {
2361
+ }, Xe = /^\[(?:([a-z-]+):)?(.+)\]$/i, nn = /^\d+\/\d+$/, rn = /* @__PURE__ */ new Set(["px", "full", "screen"]), on = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, sn = /\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$/, cn = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, an = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ln = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, j = (e) => re(e) || rn.has(e) || nn.test(e), X = (e) => ie(e, "length", bn), re = (e) => !!e && !Number.isNaN(Number(e)), be = (e) => ie(e, "number", re), ae = (e) => !!e && Number.isInteger(Number(e)), dn = (e) => e.endsWith("%") && re(e.slice(0, -1)), I = (e) => Xe.test(e), J = (e) => on.test(e), un = /* @__PURE__ */ new Set(["length", "size", "percentage"]), pn = (e) => ie(e, un, Je), fn = (e) => ie(e, "position", Je), hn = /* @__PURE__ */ new Set(["image", "url"]), mn = (e) => ie(e, hn, wn), gn = (e) => ie(e, "", vn), le = () => !0, ie = (e, t, n) => {
2362
2362
  const r = Xe.exec(e);
2363
2363
  return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
2364
2364
  }, bn = (e) => (
@@ -2367,36 +2367,36 @@ const H = (e) => {
2367
2367
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
2368
2368
  sn.test(e) && !cn.test(e)
2369
2369
  ), Je = () => !1, vn = (e) => an.test(e), wn = (e) => ln.test(e), yn = () => {
2370
- const e = H("colors"), t = H("spacing"), n = H("blur"), r = H("brightness"), o = H("borderColor"), i = H("borderRadius"), a = H("borderSpacing"), c = H("borderWidth"), l = H("contrast"), p = H("grayscale"), f = H("hueRotate"), b = H("invert"), d = H("gap"), u = H("gradientColorStops"), m = H("gradientColorStopPositions"), h = H("inset"), g = H("margin"), k = H("opacity"), v = H("padding"), N = H("saturate"), w = H("scale"), A = H("sepia"), $ = H("skew"), L = H("space"), T = H("translate"), y = () => ["auto", "contain", "none"], R = () => ["auto", "hidden", "clip", "visible", "scroll"], C = () => ["auto", I, t], S = () => [I, t], z = () => ["", j, q], F = () => ["auto", re, I], Z = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Y = () => ["solid", "dashed", "dotted", "double", "none"], M = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], P = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], D = () => ["", "0", I], ge = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], V = () => [re, I];
2370
+ const e = H("colors"), t = H("spacing"), n = H("blur"), r = H("brightness"), o = H("borderColor"), i = H("borderRadius"), a = H("borderSpacing"), c = H("borderWidth"), l = H("contrast"), p = H("grayscale"), f = H("hueRotate"), v = H("invert"), d = H("gap"), h = H("gradientColorStops"), y = H("gradientColorStopPositions"), g = H("inset"), w = H("margin"), A = H("opacity"), b = H("padding"), u = H("saturate"), m = H("scale"), N = H("sepia"), S = H("skew"), z = H("space"), T = H("translate"), x = () => ["auto", "contain", "none"], R = () => ["auto", "hidden", "clip", "visible", "scroll"], C = () => ["auto", I, t], $ = () => [I, t], P = () => ["", j, X], F = () => ["auto", re, I], Z = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Y = () => ["solid", "dashed", "dotted", "double", "none"], M = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], L = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], D = () => ["", "0", I], ge = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], V = () => [re, I];
2371
2371
  return {
2372
2372
  cacheSize: 500,
2373
2373
  separator: ":",
2374
2374
  theme: {
2375
2375
  colors: [le],
2376
- spacing: [j, q],
2377
- blur: ["none", "", X, I],
2376
+ spacing: [j, X],
2377
+ blur: ["none", "", J, I],
2378
2378
  brightness: V(),
2379
2379
  borderColor: [e],
2380
- borderRadius: ["none", "", "full", X, I],
2381
- borderSpacing: S(),
2382
- borderWidth: z(),
2380
+ borderRadius: ["none", "", "full", J, I],
2381
+ borderSpacing: $(),
2382
+ borderWidth: P(),
2383
2383
  contrast: V(),
2384
2384
  grayscale: D(),
2385
2385
  hueRotate: V(),
2386
2386
  invert: D(),
2387
- gap: S(),
2387
+ gap: $(),
2388
2388
  gradientColorStops: [e],
2389
- gradientColorStopPositions: [dn, q],
2389
+ gradientColorStopPositions: [dn, X],
2390
2390
  inset: C(),
2391
2391
  margin: C(),
2392
2392
  opacity: V(),
2393
- padding: S(),
2393
+ padding: $(),
2394
2394
  saturate: V(),
2395
2395
  scale: V(),
2396
2396
  sepia: D(),
2397
2397
  skew: V(),
2398
- space: S(),
2399
- translate: S()
2398
+ space: $(),
2399
+ translate: $()
2400
2400
  },
2401
2401
  classGroups: {
2402
2402
  // Layout
@@ -2417,7 +2417,7 @@ const H = (e) => {
2417
2417
  * @see https://tailwindcss.com/docs/columns
2418
2418
  */
2419
2419
  columns: [{
2420
- columns: [X]
2420
+ columns: [J]
2421
2421
  }],
2422
2422
  /**
2423
2423
  * Break After
@@ -2518,21 +2518,21 @@ const H = (e) => {
2518
2518
  * @see https://tailwindcss.com/docs/overscroll-behavior
2519
2519
  */
2520
2520
  overscroll: [{
2521
- overscroll: y()
2521
+ overscroll: x()
2522
2522
  }],
2523
2523
  /**
2524
2524
  * Overscroll Behavior X
2525
2525
  * @see https://tailwindcss.com/docs/overscroll-behavior
2526
2526
  */
2527
2527
  "overscroll-x": [{
2528
- "overscroll-x": y()
2528
+ "overscroll-x": x()
2529
2529
  }],
2530
2530
  /**
2531
2531
  * Overscroll Behavior Y
2532
2532
  * @see https://tailwindcss.com/docs/overscroll-behavior
2533
2533
  */
2534
2534
  "overscroll-y": [{
2535
- "overscroll-y": y()
2535
+ "overscroll-y": x()
2536
2536
  }],
2537
2537
  /**
2538
2538
  * Position
@@ -2544,63 +2544,63 @@ const H = (e) => {
2544
2544
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2545
2545
  */
2546
2546
  inset: [{
2547
- inset: [h]
2547
+ inset: [g]
2548
2548
  }],
2549
2549
  /**
2550
2550
  * Right / Left
2551
2551
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2552
2552
  */
2553
2553
  "inset-x": [{
2554
- "inset-x": [h]
2554
+ "inset-x": [g]
2555
2555
  }],
2556
2556
  /**
2557
2557
  * Top / Bottom
2558
2558
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2559
2559
  */
2560
2560
  "inset-y": [{
2561
- "inset-y": [h]
2561
+ "inset-y": [g]
2562
2562
  }],
2563
2563
  /**
2564
2564
  * Start
2565
2565
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2566
2566
  */
2567
2567
  start: [{
2568
- start: [h]
2568
+ start: [g]
2569
2569
  }],
2570
2570
  /**
2571
2571
  * End
2572
2572
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2573
2573
  */
2574
2574
  end: [{
2575
- end: [h]
2575
+ end: [g]
2576
2576
  }],
2577
2577
  /**
2578
2578
  * Top
2579
2579
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2580
2580
  */
2581
2581
  top: [{
2582
- top: [h]
2582
+ top: [g]
2583
2583
  }],
2584
2584
  /**
2585
2585
  * Right
2586
2586
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2587
2587
  */
2588
2588
  right: [{
2589
- right: [h]
2589
+ right: [g]
2590
2590
  }],
2591
2591
  /**
2592
2592
  * Bottom
2593
2593
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2594
2594
  */
2595
2595
  bottom: [{
2596
- bottom: [h]
2596
+ bottom: [g]
2597
2597
  }],
2598
2598
  /**
2599
2599
  * Left
2600
2600
  * @see https://tailwindcss.com/docs/top-right-bottom-left
2601
2601
  */
2602
2602
  left: [{
2603
- left: [h]
2603
+ left: [g]
2604
2604
  }],
2605
2605
  /**
2606
2606
  * Visibility
@@ -2771,7 +2771,7 @@ const H = (e) => {
2771
2771
  * @see https://tailwindcss.com/docs/justify-content
2772
2772
  */
2773
2773
  "justify-content": [{
2774
- justify: ["normal", ...P()]
2774
+ justify: ["normal", ...L()]
2775
2775
  }],
2776
2776
  /**
2777
2777
  * Justify Items
@@ -2792,7 +2792,7 @@ const H = (e) => {
2792
2792
  * @see https://tailwindcss.com/docs/align-content
2793
2793
  */
2794
2794
  "align-content": [{
2795
- content: ["normal", ...P(), "baseline"]
2795
+ content: ["normal", ...L(), "baseline"]
2796
2796
  }],
2797
2797
  /**
2798
2798
  * Align Items
@@ -2813,7 +2813,7 @@ const H = (e) => {
2813
2813
  * @see https://tailwindcss.com/docs/place-content
2814
2814
  */
2815
2815
  "place-content": [{
2816
- "place-content": [...P(), "baseline"]
2816
+ "place-content": [...L(), "baseline"]
2817
2817
  }],
2818
2818
  /**
2819
2819
  * Place Items
@@ -2835,133 +2835,133 @@ const H = (e) => {
2835
2835
  * @see https://tailwindcss.com/docs/padding
2836
2836
  */
2837
2837
  p: [{
2838
- p: [v]
2838
+ p: [b]
2839
2839
  }],
2840
2840
  /**
2841
2841
  * Padding X
2842
2842
  * @see https://tailwindcss.com/docs/padding
2843
2843
  */
2844
2844
  px: [{
2845
- px: [v]
2845
+ px: [b]
2846
2846
  }],
2847
2847
  /**
2848
2848
  * Padding Y
2849
2849
  * @see https://tailwindcss.com/docs/padding
2850
2850
  */
2851
2851
  py: [{
2852
- py: [v]
2852
+ py: [b]
2853
2853
  }],
2854
2854
  /**
2855
2855
  * Padding Start
2856
2856
  * @see https://tailwindcss.com/docs/padding
2857
2857
  */
2858
2858
  ps: [{
2859
- ps: [v]
2859
+ ps: [b]
2860
2860
  }],
2861
2861
  /**
2862
2862
  * Padding End
2863
2863
  * @see https://tailwindcss.com/docs/padding
2864
2864
  */
2865
2865
  pe: [{
2866
- pe: [v]
2866
+ pe: [b]
2867
2867
  }],
2868
2868
  /**
2869
2869
  * Padding Top
2870
2870
  * @see https://tailwindcss.com/docs/padding
2871
2871
  */
2872
2872
  pt: [{
2873
- pt: [v]
2873
+ pt: [b]
2874
2874
  }],
2875
2875
  /**
2876
2876
  * Padding Right
2877
2877
  * @see https://tailwindcss.com/docs/padding
2878
2878
  */
2879
2879
  pr: [{
2880
- pr: [v]
2880
+ pr: [b]
2881
2881
  }],
2882
2882
  /**
2883
2883
  * Padding Bottom
2884
2884
  * @see https://tailwindcss.com/docs/padding
2885
2885
  */
2886
2886
  pb: [{
2887
- pb: [v]
2887
+ pb: [b]
2888
2888
  }],
2889
2889
  /**
2890
2890
  * Padding Left
2891
2891
  * @see https://tailwindcss.com/docs/padding
2892
2892
  */
2893
2893
  pl: [{
2894
- pl: [v]
2894
+ pl: [b]
2895
2895
  }],
2896
2896
  /**
2897
2897
  * Margin
2898
2898
  * @see https://tailwindcss.com/docs/margin
2899
2899
  */
2900
2900
  m: [{
2901
- m: [g]
2901
+ m: [w]
2902
2902
  }],
2903
2903
  /**
2904
2904
  * Margin X
2905
2905
  * @see https://tailwindcss.com/docs/margin
2906
2906
  */
2907
2907
  mx: [{
2908
- mx: [g]
2908
+ mx: [w]
2909
2909
  }],
2910
2910
  /**
2911
2911
  * Margin Y
2912
2912
  * @see https://tailwindcss.com/docs/margin
2913
2913
  */
2914
2914
  my: [{
2915
- my: [g]
2915
+ my: [w]
2916
2916
  }],
2917
2917
  /**
2918
2918
  * Margin Start
2919
2919
  * @see https://tailwindcss.com/docs/margin
2920
2920
  */
2921
2921
  ms: [{
2922
- ms: [g]
2922
+ ms: [w]
2923
2923
  }],
2924
2924
  /**
2925
2925
  * Margin End
2926
2926
  * @see https://tailwindcss.com/docs/margin
2927
2927
  */
2928
2928
  me: [{
2929
- me: [g]
2929
+ me: [w]
2930
2930
  }],
2931
2931
  /**
2932
2932
  * Margin Top
2933
2933
  * @see https://tailwindcss.com/docs/margin
2934
2934
  */
2935
2935
  mt: [{
2936
- mt: [g]
2936
+ mt: [w]
2937
2937
  }],
2938
2938
  /**
2939
2939
  * Margin Right
2940
2940
  * @see https://tailwindcss.com/docs/margin
2941
2941
  */
2942
2942
  mr: [{
2943
- mr: [g]
2943
+ mr: [w]
2944
2944
  }],
2945
2945
  /**
2946
2946
  * Margin Bottom
2947
2947
  * @see https://tailwindcss.com/docs/margin
2948
2948
  */
2949
2949
  mb: [{
2950
- mb: [g]
2950
+ mb: [w]
2951
2951
  }],
2952
2952
  /**
2953
2953
  * Margin Left
2954
2954
  * @see https://tailwindcss.com/docs/margin
2955
2955
  */
2956
2956
  ml: [{
2957
- ml: [g]
2957
+ ml: [w]
2958
2958
  }],
2959
2959
  /**
2960
2960
  * Space Between X
2961
2961
  * @see https://tailwindcss.com/docs/space
2962
2962
  */
2963
2963
  "space-x": [{
2964
- "space-x": [L]
2964
+ "space-x": [z]
2965
2965
  }],
2966
2966
  /**
2967
2967
  * Space Between X Reverse
@@ -2973,7 +2973,7 @@ const H = (e) => {
2973
2973
  * @see https://tailwindcss.com/docs/space
2974
2974
  */
2975
2975
  "space-y": [{
2976
- "space-y": [L]
2976
+ "space-y": [z]
2977
2977
  }],
2978
2978
  /**
2979
2979
  * Space Between Y Reverse
@@ -3001,8 +3001,8 @@ const H = (e) => {
3001
3001
  */
3002
3002
  "max-w": [{
3003
3003
  "max-w": [I, t, "none", "full", "min", "max", "fit", "prose", {
3004
- screen: [X]
3005
- }, X]
3004
+ screen: [J]
3005
+ }, J]
3006
3006
  }],
3007
3007
  /**
3008
3008
  * Height
@@ -3038,7 +3038,7 @@ const H = (e) => {
3038
3038
  * @see https://tailwindcss.com/docs/font-size
3039
3039
  */
3040
3040
  "font-size": [{
3041
- text: ["base", X, q]
3041
+ text: ["base", J, X]
3042
3042
  }],
3043
3043
  /**
3044
3044
  * Font Smoothing
@@ -3149,7 +3149,7 @@ const H = (e) => {
3149
3149
  * @see https://tailwindcss.com/docs/placeholder-opacity
3150
3150
  */
3151
3151
  "placeholder-opacity": [{
3152
- "placeholder-opacity": [k]
3152
+ "placeholder-opacity": [A]
3153
3153
  }],
3154
3154
  /**
3155
3155
  * Text Alignment
@@ -3170,7 +3170,7 @@ const H = (e) => {
3170
3170
  * @see https://tailwindcss.com/docs/text-opacity
3171
3171
  */
3172
3172
  "text-opacity": [{
3173
- "text-opacity": [k]
3173
+ "text-opacity": [A]
3174
3174
  }],
3175
3175
  /**
3176
3176
  * Text Decoration
@@ -3189,7 +3189,7 @@ const H = (e) => {
3189
3189
  * @see https://tailwindcss.com/docs/text-decoration-thickness
3190
3190
  */
3191
3191
  "text-decoration-thickness": [{
3192
- decoration: ["auto", "from-font", j, q]
3192
+ decoration: ["auto", "from-font", j, X]
3193
3193
  }],
3194
3194
  /**
3195
3195
  * Text Underline Offset
@@ -3227,7 +3227,7 @@ const H = (e) => {
3227
3227
  * @see https://tailwindcss.com/docs/text-indent
3228
3228
  */
3229
3229
  indent: [{
3230
- indent: S()
3230
+ indent: $()
3231
3231
  }],
3232
3232
  /**
3233
3233
  * Vertical Alignment
@@ -3285,7 +3285,7 @@ const H = (e) => {
3285
3285
  * @see https://tailwindcss.com/docs/background-opacity
3286
3286
  */
3287
3287
  "bg-opacity": [{
3288
- "bg-opacity": [k]
3288
+ "bg-opacity": [A]
3289
3289
  }],
3290
3290
  /**
3291
3291
  * Background Origin
@@ -3338,42 +3338,42 @@ const H = (e) => {
3338
3338
  * @see https://tailwindcss.com/docs/gradient-color-stops
3339
3339
  */
3340
3340
  "gradient-from-pos": [{
3341
- from: [m]
3341
+ from: [y]
3342
3342
  }],
3343
3343
  /**
3344
3344
  * Gradient Color Stops Via Position
3345
3345
  * @see https://tailwindcss.com/docs/gradient-color-stops
3346
3346
  */
3347
3347
  "gradient-via-pos": [{
3348
- via: [m]
3348
+ via: [y]
3349
3349
  }],
3350
3350
  /**
3351
3351
  * Gradient Color Stops To Position
3352
3352
  * @see https://tailwindcss.com/docs/gradient-color-stops
3353
3353
  */
3354
3354
  "gradient-to-pos": [{
3355
- to: [m]
3355
+ to: [y]
3356
3356
  }],
3357
3357
  /**
3358
3358
  * Gradient Color Stops From
3359
3359
  * @see https://tailwindcss.com/docs/gradient-color-stops
3360
3360
  */
3361
3361
  "gradient-from": [{
3362
- from: [u]
3362
+ from: [h]
3363
3363
  }],
3364
3364
  /**
3365
3365
  * Gradient Color Stops Via
3366
3366
  * @see https://tailwindcss.com/docs/gradient-color-stops
3367
3367
  */
3368
3368
  "gradient-via": [{
3369
- via: [u]
3369
+ via: [h]
3370
3370
  }],
3371
3371
  /**
3372
3372
  * Gradient Color Stops To
3373
3373
  * @see https://tailwindcss.com/docs/gradient-color-stops
3374
3374
  */
3375
3375
  "gradient-to": [{
3376
- to: [u]
3376
+ to: [h]
3377
3377
  }],
3378
3378
  // Borders
3379
3379
  /**
@@ -3549,7 +3549,7 @@ const H = (e) => {
3549
3549
  * @see https://tailwindcss.com/docs/border-opacity
3550
3550
  */
3551
3551
  "border-opacity": [{
3552
- "border-opacity": [k]
3552
+ "border-opacity": [A]
3553
3553
  }],
3554
3554
  /**
3555
3555
  * Border Style
@@ -3587,7 +3587,7 @@ const H = (e) => {
3587
3587
  * @see https://tailwindcss.com/docs/divide-opacity
3588
3588
  */
3589
3589
  "divide-opacity": [{
3590
- "divide-opacity": [k]
3590
+ "divide-opacity": [A]
3591
3591
  }],
3592
3592
  /**
3593
3593
  * Divide Style
@@ -3685,7 +3685,7 @@ const H = (e) => {
3685
3685
  * @see https://tailwindcss.com/docs/outline-width
3686
3686
  */
3687
3687
  "outline-w": [{
3688
- outline: [j, q]
3688
+ outline: [j, X]
3689
3689
  }],
3690
3690
  /**
3691
3691
  * Outline Color
@@ -3699,7 +3699,7 @@ const H = (e) => {
3699
3699
  * @see https://tailwindcss.com/docs/ring-width
3700
3700
  */
3701
3701
  "ring-w": [{
3702
- ring: z()
3702
+ ring: P()
3703
3703
  }],
3704
3704
  /**
3705
3705
  * Ring Width Inset
@@ -3718,14 +3718,14 @@ const H = (e) => {
3718
3718
  * @see https://tailwindcss.com/docs/ring-opacity
3719
3719
  */
3720
3720
  "ring-opacity": [{
3721
- "ring-opacity": [k]
3721
+ "ring-opacity": [A]
3722
3722
  }],
3723
3723
  /**
3724
3724
  * Ring Offset Width
3725
3725
  * @see https://tailwindcss.com/docs/ring-offset-width
3726
3726
  */
3727
3727
  "ring-offset-w": [{
3728
- "ring-offset": [j, q]
3728
+ "ring-offset": [j, X]
3729
3729
  }],
3730
3730
  /**
3731
3731
  * Ring Offset Color
@@ -3740,7 +3740,7 @@ const H = (e) => {
3740
3740
  * @see https://tailwindcss.com/docs/box-shadow
3741
3741
  */
3742
3742
  shadow: [{
3743
- shadow: ["", "inner", "none", X, gn]
3743
+ shadow: ["", "inner", "none", J, gn]
3744
3744
  }],
3745
3745
  /**
3746
3746
  * Box Shadow Color
@@ -3754,7 +3754,7 @@ const H = (e) => {
3754
3754
  * @see https://tailwindcss.com/docs/opacity
3755
3755
  */
3756
3756
  opacity: [{
3757
- opacity: [k]
3757
+ opacity: [A]
3758
3758
  }],
3759
3759
  /**
3760
3760
  * Mix Blend Mode
@@ -3805,7 +3805,7 @@ const H = (e) => {
3805
3805
  * @see https://tailwindcss.com/docs/drop-shadow
3806
3806
  */
3807
3807
  "drop-shadow": [{
3808
- "drop-shadow": ["", "none", X, I]
3808
+ "drop-shadow": ["", "none", J, I]
3809
3809
  }],
3810
3810
  /**
3811
3811
  * Grayscale
@@ -3826,21 +3826,21 @@ const H = (e) => {
3826
3826
  * @see https://tailwindcss.com/docs/invert
3827
3827
  */
3828
3828
  invert: [{
3829
- invert: [b]
3829
+ invert: [v]
3830
3830
  }],
3831
3831
  /**
3832
3832
  * Saturate
3833
3833
  * @see https://tailwindcss.com/docs/saturate
3834
3834
  */
3835
3835
  saturate: [{
3836
- saturate: [N]
3836
+ saturate: [u]
3837
3837
  }],
3838
3838
  /**
3839
3839
  * Sepia
3840
3840
  * @see https://tailwindcss.com/docs/sepia
3841
3841
  */
3842
3842
  sepia: [{
3843
- sepia: [A]
3843
+ sepia: [N]
3844
3844
  }],
3845
3845
  /**
3846
3846
  * Backdrop Filter
@@ -3890,28 +3890,28 @@ const H = (e) => {
3890
3890
  * @see https://tailwindcss.com/docs/backdrop-invert
3891
3891
  */
3892
3892
  "backdrop-invert": [{
3893
- "backdrop-invert": [b]
3893
+ "backdrop-invert": [v]
3894
3894
  }],
3895
3895
  /**
3896
3896
  * Backdrop Opacity
3897
3897
  * @see https://tailwindcss.com/docs/backdrop-opacity
3898
3898
  */
3899
3899
  "backdrop-opacity": [{
3900
- "backdrop-opacity": [k]
3900
+ "backdrop-opacity": [A]
3901
3901
  }],
3902
3902
  /**
3903
3903
  * Backdrop Saturate
3904
3904
  * @see https://tailwindcss.com/docs/backdrop-saturate
3905
3905
  */
3906
3906
  "backdrop-saturate": [{
3907
- "backdrop-saturate": [N]
3907
+ "backdrop-saturate": [u]
3908
3908
  }],
3909
3909
  /**
3910
3910
  * Backdrop Sepia
3911
3911
  * @see https://tailwindcss.com/docs/backdrop-sepia
3912
3912
  */
3913
3913
  "backdrop-sepia": [{
3914
- "backdrop-sepia": [A]
3914
+ "backdrop-sepia": [N]
3915
3915
  }],
3916
3916
  // Tables
3917
3917
  /**
@@ -4005,21 +4005,21 @@ const H = (e) => {
4005
4005
  * @see https://tailwindcss.com/docs/scale
4006
4006
  */
4007
4007
  scale: [{
4008
- scale: [w]
4008
+ scale: [m]
4009
4009
  }],
4010
4010
  /**
4011
4011
  * Scale X
4012
4012
  * @see https://tailwindcss.com/docs/scale
4013
4013
  */
4014
4014
  "scale-x": [{
4015
- "scale-x": [w]
4015
+ "scale-x": [m]
4016
4016
  }],
4017
4017
  /**
4018
4018
  * Scale Y
4019
4019
  * @see https://tailwindcss.com/docs/scale
4020
4020
  */
4021
4021
  "scale-y": [{
4022
- "scale-y": [w]
4022
+ "scale-y": [m]
4023
4023
  }],
4024
4024
  /**
4025
4025
  * Rotate
@@ -4047,14 +4047,14 @@ const H = (e) => {
4047
4047
  * @see https://tailwindcss.com/docs/skew
4048
4048
  */
4049
4049
  "skew-x": [{
4050
- "skew-x": [$]
4050
+ "skew-x": [S]
4051
4051
  }],
4052
4052
  /**
4053
4053
  * Skew Y
4054
4054
  * @see https://tailwindcss.com/docs/skew
4055
4055
  */
4056
4056
  "skew-y": [{
4057
- "skew-y": [$]
4057
+ "skew-y": [S]
4058
4058
  }],
4059
4059
  /**
4060
4060
  * Transform Origin
@@ -4118,126 +4118,126 @@ const H = (e) => {
4118
4118
  * @see https://tailwindcss.com/docs/scroll-margin
4119
4119
  */
4120
4120
  "scroll-m": [{
4121
- "scroll-m": S()
4121
+ "scroll-m": $()
4122
4122
  }],
4123
4123
  /**
4124
4124
  * Scroll Margin X
4125
4125
  * @see https://tailwindcss.com/docs/scroll-margin
4126
4126
  */
4127
4127
  "scroll-mx": [{
4128
- "scroll-mx": S()
4128
+ "scroll-mx": $()
4129
4129
  }],
4130
4130
  /**
4131
4131
  * Scroll Margin Y
4132
4132
  * @see https://tailwindcss.com/docs/scroll-margin
4133
4133
  */
4134
4134
  "scroll-my": [{
4135
- "scroll-my": S()
4135
+ "scroll-my": $()
4136
4136
  }],
4137
4137
  /**
4138
4138
  * Scroll Margin Start
4139
4139
  * @see https://tailwindcss.com/docs/scroll-margin
4140
4140
  */
4141
4141
  "scroll-ms": [{
4142
- "scroll-ms": S()
4142
+ "scroll-ms": $()
4143
4143
  }],
4144
4144
  /**
4145
4145
  * Scroll Margin End
4146
4146
  * @see https://tailwindcss.com/docs/scroll-margin
4147
4147
  */
4148
4148
  "scroll-me": [{
4149
- "scroll-me": S()
4149
+ "scroll-me": $()
4150
4150
  }],
4151
4151
  /**
4152
4152
  * Scroll Margin Top
4153
4153
  * @see https://tailwindcss.com/docs/scroll-margin
4154
4154
  */
4155
4155
  "scroll-mt": [{
4156
- "scroll-mt": S()
4156
+ "scroll-mt": $()
4157
4157
  }],
4158
4158
  /**
4159
4159
  * Scroll Margin Right
4160
4160
  * @see https://tailwindcss.com/docs/scroll-margin
4161
4161
  */
4162
4162
  "scroll-mr": [{
4163
- "scroll-mr": S()
4163
+ "scroll-mr": $()
4164
4164
  }],
4165
4165
  /**
4166
4166
  * Scroll Margin Bottom
4167
4167
  * @see https://tailwindcss.com/docs/scroll-margin
4168
4168
  */
4169
4169
  "scroll-mb": [{
4170
- "scroll-mb": S()
4170
+ "scroll-mb": $()
4171
4171
  }],
4172
4172
  /**
4173
4173
  * Scroll Margin Left
4174
4174
  * @see https://tailwindcss.com/docs/scroll-margin
4175
4175
  */
4176
4176
  "scroll-ml": [{
4177
- "scroll-ml": S()
4177
+ "scroll-ml": $()
4178
4178
  }],
4179
4179
  /**
4180
4180
  * Scroll Padding
4181
4181
  * @see https://tailwindcss.com/docs/scroll-padding
4182
4182
  */
4183
4183
  "scroll-p": [{
4184
- "scroll-p": S()
4184
+ "scroll-p": $()
4185
4185
  }],
4186
4186
  /**
4187
4187
  * Scroll Padding X
4188
4188
  * @see https://tailwindcss.com/docs/scroll-padding
4189
4189
  */
4190
4190
  "scroll-px": [{
4191
- "scroll-px": S()
4191
+ "scroll-px": $()
4192
4192
  }],
4193
4193
  /**
4194
4194
  * Scroll Padding Y
4195
4195
  * @see https://tailwindcss.com/docs/scroll-padding
4196
4196
  */
4197
4197
  "scroll-py": [{
4198
- "scroll-py": S()
4198
+ "scroll-py": $()
4199
4199
  }],
4200
4200
  /**
4201
4201
  * Scroll Padding Start
4202
4202
  * @see https://tailwindcss.com/docs/scroll-padding
4203
4203
  */
4204
4204
  "scroll-ps": [{
4205
- "scroll-ps": S()
4205
+ "scroll-ps": $()
4206
4206
  }],
4207
4207
  /**
4208
4208
  * Scroll Padding End
4209
4209
  * @see https://tailwindcss.com/docs/scroll-padding
4210
4210
  */
4211
4211
  "scroll-pe": [{
4212
- "scroll-pe": S()
4212
+ "scroll-pe": $()
4213
4213
  }],
4214
4214
  /**
4215
4215
  * Scroll Padding Top
4216
4216
  * @see https://tailwindcss.com/docs/scroll-padding
4217
4217
  */
4218
4218
  "scroll-pt": [{
4219
- "scroll-pt": S()
4219
+ "scroll-pt": $()
4220
4220
  }],
4221
4221
  /**
4222
4222
  * Scroll Padding Right
4223
4223
  * @see https://tailwindcss.com/docs/scroll-padding
4224
4224
  */
4225
4225
  "scroll-pr": [{
4226
- "scroll-pr": S()
4226
+ "scroll-pr": $()
4227
4227
  }],
4228
4228
  /**
4229
4229
  * Scroll Padding Bottom
4230
4230
  * @see https://tailwindcss.com/docs/scroll-padding
4231
4231
  */
4232
4232
  "scroll-pb": [{
4233
- "scroll-pb": S()
4233
+ "scroll-pb": $()
4234
4234
  }],
4235
4235
  /**
4236
4236
  * Scroll Padding Left
4237
4237
  * @see https://tailwindcss.com/docs/scroll-padding
4238
4238
  */
4239
4239
  "scroll-pl": [{
4240
- "scroll-pl": S()
4240
+ "scroll-pl": $()
4241
4241
  }],
4242
4242
  /**
4243
4243
  * Scroll Snap Align
@@ -4320,7 +4320,7 @@ const H = (e) => {
4320
4320
  * @see https://tailwindcss.com/docs/stroke-width
4321
4321
  */
4322
4322
  "stroke-w": [{
4323
- stroke: [j, q, be]
4323
+ stroke: [j, X, be]
4324
4324
  }],
4325
4325
  /**
4326
4326
  * Stroke
@@ -4402,87 +4402,101 @@ function kn(...e) {
4402
4402
  function or({ autoWidth: e = !0, className: t, style: n }) {
4403
4403
  const [r, o] = E(() => _.getActiveAppId()), [i, a] = E(() => G.getRunningApps()), { isMobile: c } = Ke();
4404
4404
  B(() => {
4405
- const g = _.subscribe("activeAppId", (k) => {
4406
- o(k);
4405
+ const w = _.subscribe("activeAppId", (A) => {
4406
+ o(A);
4407
4407
  });
4408
4408
  return () => {
4409
- g();
4409
+ w();
4410
4410
  };
4411
4411
  }, []), B(() => G.subscribe(() => {
4412
4412
  a(G.getRunningApps());
4413
4413
  }), []), B(() => {
4414
4414
  if (!new URLSearchParams(window.location.search).has("app")) {
4415
- const v = _.getActiveAppId();
4416
- v && !G.isRunning(v) && G.launchApp(v);
4415
+ const b = _.getActiveAppId();
4416
+ b && !G.isRunning(b) && G.launchApp(b);
4417
4417
  }
4418
4418
  }, []);
4419
- const l = (g) => {
4420
- G.closeApp(g);
4421
- }, p = r ? oe.get(r) : null, b = (p == null ? void 0 : p.width) ?? 400, d = r !== null, h = { ...{
4419
+ const l = (w) => {
4420
+ G.closeApp(w);
4421
+ }, p = r ? oe.get(r) : null, v = (p == null ? void 0 : p.width) ?? 400, d = r !== null, g = { ...{
4422
4422
  overflow: "hidden",
4423
4423
  display: d ? "flex" : "none",
4424
4424
  flexDirection: "column",
4425
4425
  flexShrink: 0,
4426
4426
  // Only set width if autoWidth is enabled
4427
- ...e && d ? { width: c ? "100%" : b } : {}
4427
+ ...e && d ? { width: c ? "100%" : v } : {}
4428
4428
  }, ...n };
4429
- return /* @__PURE__ */ s("div", { className: kn("nc-app-panel", t), style: h, children: i.map((g) => /* @__PURE__ */ s(
4429
+ return /* @__PURE__ */ s("div", { className: kn("nc-app-panel", t), style: g, children: i.map((w) => /* @__PURE__ */ s(
4430
4430
  Ye,
4431
4431
  {
4432
- appId: g.appId,
4433
- isActive: r === g.appId,
4434
- onClose: () => l(g.appId)
4432
+ appId: w.appId,
4433
+ isActive: r === w.appId,
4434
+ onClose: () => l(w.appId)
4435
4435
  },
4436
- g.appId
4436
+ w.appId
4437
4437
  )) });
4438
4438
  }
4439
4439
  function sr({
4440
4440
  pinnedAppIds: e,
4441
4441
  className: t = "",
4442
- showIndicators: n = !0
4442
+ showIndicators: n = !0,
4443
+ side: r = "left",
4444
+ getBadge: o
4443
4445
  }) {
4444
- const { isMobile: r } = Ke(), [o, i] = E(() => _.getActiveAppId()), [a, c] = E(() => G.getRunningApps());
4446
+ const { t: i } = U(), { isMobile: a } = Ke(), [c, l] = E(() => _.getActiveAppId()), [p, f] = E(() => G.getRunningApps());
4445
4447
  B(() => {
4446
4448
  const u = _.subscribe("activeAppId", (m) => {
4447
- i(m);
4449
+ l(m);
4448
4450
  });
4449
4451
  return () => {
4450
4452
  u();
4451
4453
  };
4452
4454
  }, []), B(() => G.subscribe(() => {
4453
- c(G.getRunningApps());
4455
+ f(G.getRunningApps());
4454
4456
  }), []);
4455
- const l = (u) => {
4456
- o === u ? G.setActiveApp(null) : G.launchApp(u);
4457
- }, p = e.map((u) => oe.get(u)).filter((u) => !!u), f = a.filter((u) => !e.includes(u.appId)).map((u) => ({ running: u, def: oe.get(u.appId) })).filter((u) => !!u.def), b = (u) => a.some((m) => m.appId === u), d = r ? 24 : 28;
4458
- return /* @__PURE__ */ x("div", { className: `nc-app-taskbar ${r ? "nc-mobile" : "nc-desktop"} ${t}`, children: [
4459
- p.map((u) => {
4460
- const m = u.icon, h = o === u.id, g = b(u.id);
4461
- return /* @__PURE__ */ x(
4457
+ const v = (u) => {
4458
+ c === u ? G.setActiveApp(null) : G.launchApp(u);
4459
+ }, d = e.map((u) => oe.get(u)).filter((u) => !!u), h = p.filter((u) => !e.includes(u.appId)).map((u) => ({ running: u, def: oe.get(u.appId) })).filter((u) => !!u.def), y = (u) => p.some((m) => m.appId === u), g = (u) => u.titleKey ? String(i(u.titleKey)) : u.id, w = (u) => typeof u == "number" && u > 99 ? "99+" : u, A = (u, m) => {
4460
+ const N = o == null ? void 0 : o(u, m);
4461
+ return N ? /* @__PURE__ */ s(
4462
+ "span",
4463
+ {
4464
+ className: `nc-app-taskbar-badge nc-${N.tone ?? "default"}`,
4465
+ "aria-label": N.ariaLabel,
4466
+ children: w(N.content)
4467
+ }
4468
+ ) : null;
4469
+ }, b = a ? 24 : 28;
4470
+ return /* @__PURE__ */ k("div", { className: `nc-app-taskbar ${a ? "nc-mobile" : "nc-desktop"} nc-${r} ${t}`, children: [
4471
+ d.map((u) => {
4472
+ const m = u.icon, N = c === u.id, S = y(u.id), z = { isActive: N, isRunning: S, isPinned: !0 };
4473
+ return /* @__PURE__ */ k(
4462
4474
  "button",
4463
4475
  {
4464
- className: `nc-app-taskbar-button ${h ? "nc-active" : ""} ${g ? "nc-running" : ""}`,
4465
- onClick: () => l(u.id),
4466
- title: u.titleKey || u.id,
4476
+ className: `nc-app-taskbar-button ${N ? "nc-active" : ""} ${S ? "nc-running" : ""}`,
4477
+ onClick: () => v(u.id),
4478
+ title: g(u),
4467
4479
  children: [
4468
- /* @__PURE__ */ s(m, { size: d }),
4469
- n && g && /* @__PURE__ */ s("span", { className: "nc-app-taskbar-indicator" })
4480
+ /* @__PURE__ */ s(m, { size: b }),
4481
+ A(u, z),
4482
+ n && S && /* @__PURE__ */ s("span", { className: "nc-app-taskbar-indicator" })
4470
4483
  ]
4471
4484
  },
4472
4485
  u.id
4473
4486
  );
4474
4487
  }),
4475
- f.length > 0 && /* @__PURE__ */ s("div", { className: "nc-app-taskbar-separator" }),
4476
- f.map(({ running: u, def: m }) => {
4477
- const h = m.icon, g = o === u.appId;
4478
- return /* @__PURE__ */ x(
4488
+ h.length > 0 && /* @__PURE__ */ s("div", { className: "nc-app-taskbar-separator" }),
4489
+ h.map(({ running: u, def: m }) => {
4490
+ const N = m.icon, S = c === u.appId, z = { isActive: S, isRunning: !0, isPinned: !1 };
4491
+ return /* @__PURE__ */ k(
4479
4492
  "button",
4480
4493
  {
4481
- className: `nc-app-taskbar-button ${g ? "nc-active" : ""} nc-running`,
4482
- onClick: () => l(u.appId),
4483
- title: m.titleKey || m.id,
4494
+ className: `nc-app-taskbar-button ${S ? "nc-active" : ""} nc-running`,
4495
+ onClick: () => v(u.appId),
4496
+ title: g(m),
4484
4497
  children: [
4485
- /* @__PURE__ */ s(h, { size: d }),
4498
+ /* @__PURE__ */ s(N, { size: b }),
4499
+ A(m, z),
4486
4500
  n && /* @__PURE__ */ s("span", { className: "nc-app-taskbar-indicator" })
4487
4501
  ]
4488
4502
  },
@@ -4530,62 +4544,62 @@ function ir({
4530
4544
  }
4531
4545
  const Ae = se(null), Qe = se(null);
4532
4546
  function cr() {
4533
- const e = J(Ae);
4547
+ const e = Q(Ae);
4534
4548
  if (!e)
4535
4549
  throw new Error("useNavStack must be used within a NavStackProvider");
4536
4550
  return e;
4537
4551
  }
4538
4552
  function ar() {
4539
- const e = J(Qe);
4553
+ const e = Q(Qe);
4540
4554
  if (!e)
4541
4555
  throw new Error("useNavView must be used within NavStack");
4542
4556
  return e;
4543
4557
  }
4544
4558
  const Ce = se(null);
4545
4559
  function lr({ rootView: e, children: t }) {
4546
- const { t: n } = Q(), r = Wt(), [o, i] = E([e]), [a, c] = E([null]), l = O((w, A) => {
4547
- c(($) => {
4548
- const L = [...$];
4549
- return L[w] = A, L;
4560
+ const { t: n } = U(), r = Wt(), [o, i] = E([e]), [a, c] = E([null]), l = O((m, N) => {
4561
+ c((S) => {
4562
+ const z = [...S];
4563
+ return z[m] = N, z;
4550
4564
  });
4551
- }, []), p = O((w) => {
4552
- c((A) => {
4553
- const $ = [...A];
4554
- return $[w] = null, $;
4565
+ }, []), p = O((m) => {
4566
+ c((N) => {
4567
+ const S = [...N];
4568
+ return S[m] = null, S;
4555
4569
  });
4556
- }, []), f = O((w) => {
4557
- i((A) => [...A, w]), c((A) => [...A, null]);
4558
- }, []), b = O(() => {
4559
- i((w) => w.length <= 1 ? w : w.slice(0, -1)), c((w) => w.slice(0, -1));
4570
+ }, []), f = O((m) => {
4571
+ i((N) => [...N, m]), c((N) => [...N, null]);
4572
+ }, []), v = O(() => {
4573
+ i((m) => m.length <= 1 ? m : m.slice(0, -1)), c((m) => m.slice(0, -1));
4560
4574
  }, []), d = O(() => {
4561
4575
  i([e]), c([null]);
4562
- }, [e]), u = o.length, m = u > 1, h = o.length - 1, g = o[o.length - 1], k = g != null && g.titleKey ? n(g.titleKey) : (g == null ? void 0 : g.title) ?? "";
4576
+ }, [e]), h = o.length, y = h > 1, g = o.length - 1, w = o[o.length - 1], A = w != null && w.titleKey ? n(w.titleKey) : (w == null ? void 0 : w.title) ?? "";
4563
4577
  B(() => {
4564
- r.setTitle(k);
4565
- }, [k, r]), B(() => {
4566
- m ? r.setBackHandler(b) : r.clearBackHandler();
4567
- }, [m, b, r]), B(() => {
4568
- const w = a[a.length - 1];
4569
- w ? r.setToolbar(w) : r.clearToolbar();
4578
+ r.setTitle(A);
4579
+ }, [A, r]), B(() => {
4580
+ y ? r.setBackHandler(v) : r.clearBackHandler();
4581
+ }, [y, v, r]), B(() => {
4582
+ const m = a[a.length - 1];
4583
+ m ? r.setToolbar(m) : r.clearToolbar();
4570
4584
  }, [a, r]);
4571
- const v = {
4585
+ const b = {
4572
4586
  push: f,
4573
- pop: b,
4587
+ pop: v,
4574
4588
  reset: d,
4575
- depth: u,
4576
- canGoBack: m,
4577
- currentTitle: k
4578
- }, N = {
4589
+ depth: h,
4590
+ canGoBack: y,
4591
+ currentTitle: A
4592
+ }, u = {
4579
4593
  stack: o,
4580
4594
  toolbarStack: a,
4581
4595
  updateToolbar: l,
4582
4596
  clearToolbarAt: p,
4583
- topIndex: h
4597
+ topIndex: g
4584
4598
  };
4585
- return /* @__PURE__ */ s(Ae.Provider, { value: v, children: /* @__PURE__ */ s(Ce.Provider, { value: N, children: t }) });
4599
+ return /* @__PURE__ */ s(Ae.Provider, { value: b, children: /* @__PURE__ */ s(Ce.Provider, { value: u, children: t }) });
4586
4600
  }
4587
4601
  function Nn({ index: e, children: t }) {
4588
- const n = J(Ce);
4602
+ const n = Q(Ce);
4589
4603
  if (!n)
4590
4604
  throw new Error("NavViewProvider must be used within NavStackProvider");
4591
4605
  const { updateToolbar: r, clearToolbarAt: o, topIndex: i } = n, a = O((p) => {
@@ -4599,7 +4613,7 @@ function Nn({ index: e, children: t }) {
4599
4613
  return /* @__PURE__ */ s(Qe.Provider, { value: l, children: t });
4600
4614
  }
4601
4615
  function dr() {
4602
- const e = J(Ae), t = J(Ce);
4616
+ const e = Q(Ae), t = Q(Ce);
4603
4617
  if (!e || !t)
4604
4618
  throw new Error("NavStackContainer must be used within a NavStackProvider");
4605
4619
  const { stack: n } = t;