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