@tachui/modifiers 0.8.24 → 0.8.26

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.
Files changed (40) hide show
  1. package/dist/appearance/index.js +1 -1
  2. package/dist/attributes/css-properties.d.ts.map +1 -1
  3. package/dist/base.d.ts.map +1 -1
  4. package/dist/base.js +1 -1
  5. package/dist/basic/base.d.ts.map +1 -1
  6. package/dist/basic/index.js +1 -1
  7. package/dist/basic/margin.js +1 -1
  8. package/dist/basic/padding.js +1 -1
  9. package/dist/basic/size.js +1 -1
  10. package/dist/effects/backdrop/index.js +1 -1
  11. package/dist/effects/effects/index.d.ts.map +1 -1
  12. package/dist/effects/index.d.ts +1 -1
  13. package/dist/effects/index.d.ts.map +1 -1
  14. package/dist/effects/index.js +116 -109
  15. package/dist/effects/transforms/index.js +5 -5
  16. package/dist/index.js +1 -1
  17. package/dist/interaction/index.js +1 -1
  18. package/dist/layout/fixed-size.d.ts.map +1 -1
  19. package/dist/layout/index.js +1 -1
  20. package/dist/layout/position.d.ts.map +1 -1
  21. package/dist/layout/z-index.d.ts.map +1 -1
  22. package/dist/{modifiers-basic-BEmXc_DS.js → modifiers-basic-CYNrEDIN.js} +1356 -1296
  23. package/dist/preload/backdrop.d.ts.map +1 -1
  24. package/dist/preload/backdrop.js +14 -4
  25. package/dist/preload/basic.d.ts +1 -0
  26. package/dist/preload/basic.d.ts.map +1 -1
  27. package/dist/preload/basic.js +1 -1
  28. package/dist/preload/effects.d.ts +1 -0
  29. package/dist/preload/effects.d.ts.map +1 -1
  30. package/dist/preload/effects.js +23 -21
  31. package/dist/preload/filters.d.ts.map +1 -1
  32. package/dist/preload/filters.js +60 -28
  33. package/dist/preload/shadows.d.ts.map +1 -1
  34. package/dist/preload/shadows.js +49 -22
  35. package/dist/preload/transforms.d.ts.map +1 -1
  36. package/dist/preload/transforms.js +56 -25
  37. package/dist/typography/index.js +1 -1
  38. package/dist/typography/text.js +1 -1
  39. package/dist/utility/index.js +1 -1
  40. package/package.json +9 -4
@@ -1,26 +1,38 @@
1
- var Pe = Object.defineProperty;
2
- var $e = (o, s, e) => s in o ? Pe(o, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[s] = e;
3
- var f = (o, s, e) => $e(o, typeof s != "symbol" ? s + "" : s, e);
4
- import { globalModifierRegistry as Ve } from "@tachui/registry";
5
- import { isSignal as p, isComputed as m, createEffect as b, getThemeSignal as N } from "@tachui/core/reactive";
6
- import { bindReactiveStyle as we } from "@tachui/core/modifiers/base";
7
- import { shouldExpandForInfinity as oe, dimensionToCSS as L, isInfinity as A } from "@tachui/core/constants/layout";
8
- import { AnimationModifier as J, LifecycleModifier as Re, LayoutModifier as re, ResizableModifier as De, AppearanceModifier as H } from "@tachui/core/modifiers";
9
- import { gradientToCSS as He } from "@tachui/core/gradients/css-generator";
10
- const P = {
1
+ var He = Object.defineProperty;
2
+ var Ne = (o, s, e) => s in o ? He(o, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[s] = e;
3
+ var d = (o, s, e) => Ne(o, typeof s != "symbol" ? s + "" : s, e);
4
+ import { globalModifierRegistry as ze } from "@tachui/registry";
5
+ import { isSignal as p, isComputed as m, createEffect as b, getThemeSignal as j } from "@tachui/core/reactive";
6
+ import { bindReactiveStyle as ke } from "@tachui/core/modifiers/base";
7
+ import { shouldExpandForInfinity as ue, dimensionToCSS as L, isInfinity as A } from "@tachui/core/constants/layout";
8
+ import { AnimationModifier as oe, LifecycleModifier as Fe, LayoutModifier as pe, ResizableModifier as We, AppearanceModifier as B } from "@tachui/core/modifiers";
9
+ import { gradientToCSS as je } from "@tachui/core/gradients/css-generator";
10
+ const V = {
11
11
  LAYOUT: 100,
12
12
  APPEARANCE: 200,
13
13
  INTERACTION: 300,
14
14
  ANIMATION: 400,
15
15
  CUSTOM: 500
16
- }, ye = Symbol.for("tachui.modifier.instanceId"), Oe = "package";
17
- let ge = 0;
18
- function _e(o) {
19
- const s = o[ye];
16
+ }, xe = Symbol.for("tachui.modifier.instanceId"), Ue = "package";
17
+ let Me = 0;
18
+ function P(o) {
19
+ return typeof HTMLElement < "u" && o instanceof HTMLElement;
20
+ }
21
+ function z(o) {
22
+ return typeof o == "object" && o !== null && "style" in o && !!o.style;
23
+ }
24
+ function Q() {
25
+ return typeof document < "u";
26
+ }
27
+ function Ge() {
28
+ return typeof window < "u";
29
+ }
30
+ function Ke(o) {
31
+ const s = o[xe];
20
32
  if (typeof s == "number") return s;
21
- ge += 1;
22
- const e = ge;
23
- return Object.defineProperty(o, ye, {
33
+ Me += 1;
34
+ const e = Me;
35
+ return Object.defineProperty(o, xe, {
24
36
  value: e,
25
37
  enumerable: !1,
26
38
  configurable: !1,
@@ -126,13 +138,13 @@ let g = class {
126
138
  if (a !== void 0) {
127
139
  const l = this.toCSSProperty(r);
128
140
  if (p(a) || m(a)) {
129
- const c = a, u = _e(this);
130
- we({
141
+ const c = a, u = Ke(this);
142
+ ke({
131
143
  element: s,
132
144
  accessor: c,
133
- updaterId: `${Oe}:${u}:${l}`,
134
- updater: (d) => {
135
- const h = this.toCSSValueForProperty(l, d);
145
+ updaterId: `${Ue}:${u}:${l}`,
146
+ updater: (f) => {
147
+ const h = this.toCSSValueForProperty(l, f);
136
148
  n(l, h);
137
149
  }
138
150
  });
@@ -147,13 +159,13 @@ let g = class {
147
159
  * Add CSS classes to an element
148
160
  */
149
161
  addClasses(s, e) {
150
- s instanceof HTMLElement && s.classList.add(...e);
162
+ P(s) && s.classList.add(...e);
151
163
  }
152
164
  /**
153
165
  * Remove CSS classes from an element
154
166
  */
155
167
  removeClasses(s, e) {
156
- s instanceof HTMLElement && s.classList.remove(...e);
168
+ P(s) && s.classList.remove(...e);
157
169
  }
158
170
  /**
159
171
  * Create a style computation context
@@ -167,11 +179,11 @@ let g = class {
167
179
  cleanup: []
168
180
  };
169
181
  }
170
- }, Bo = class extends g {
182
+ }, Jo = class extends g {
171
183
  constructor() {
172
184
  super(...arguments);
173
- f(this, "type", "layout");
174
- f(this, "priority", P.LAYOUT);
185
+ d(this, "type", "layout");
186
+ d(this, "priority", V.LAYOUT);
175
187
  }
176
188
  apply(e, t) {
177
189
  if (!e.element || !t.element) return;
@@ -185,7 +197,7 @@ let g = class {
185
197
  );
186
198
  this.applyStyles(t.element, n);
187
199
  const r = this.properties;
188
- r.offset && t.element instanceof HTMLElement && this.applyOffsetTransform(t.element, r.offset), r.aspectRatio && t.element instanceof HTMLElement && this.applyAspectRatio(t.element, r.aspectRatio), r.scaleEffect && t.element instanceof HTMLElement && this.applyScaleTransform(t.element, r.scaleEffect), r.position && t.element instanceof HTMLElement && this.applyAbsolutePosition(t.element, r.position), r.zIndex !== void 0 && t.element instanceof HTMLElement && this.applyZIndex(t.element, r.zIndex);
200
+ r.offset && P(t.element) && this.applyOffsetTransform(t.element, r.offset), r.aspectRatio && P(t.element) && this.applyAspectRatio(t.element, r.aspectRatio), r.scaleEffect && P(t.element) && this.applyScaleTransform(t.element, r.scaleEffect), r.position && P(t.element) && this.applyAbsolutePosition(t.element, r.position), r.zIndex !== void 0 && P(t.element) && this.applyZIndex(t.element, r.zIndex);
189
201
  }
190
202
  applyOffsetTransform(e, t) {
191
203
  const { x: i, y: n } = t;
@@ -211,11 +223,11 @@ let g = class {
211
223
  const { x: i, y: n, anchor: r } = t, a = i ?? 1, l = n ?? a;
212
224
  if (p(a) || m(a) || p(l) || m(l))
213
225
  b(() => {
214
- const c = p(a) || m(a) ? a() : a, u = p(l) || m(l) ? l() : l, d = `scale(${c}, ${u})`;
226
+ const c = p(a) || m(a) ? a() : a, u = p(l) || m(l) ? l() : l, f = `scale(${c}, ${u})`;
215
227
  e.style.transformOrigin = this.getTransformOrigin(
216
228
  r || "center"
217
229
  );
218
- const y = (e.style.transform || "").replace(/\s*scale\([^)]*\)\s*/g, " ").replace(/\s+/g, " ").trim(), v = y ? `${y} ${d}` : d;
230
+ const y = (e.style.transform || "").replace(/\s*scale\([^)]*\)\s*/g, " ").replace(/\s+/g, " ").trim(), v = y ? `${y} ${f}` : f;
219
231
  e.style.transform = v;
220
232
  });
221
233
  else {
@@ -223,7 +235,7 @@ let g = class {
223
235
  e.style.transformOrigin = this.getTransformOrigin(
224
236
  r || "center"
225
237
  );
226
- const d = (e.style.transform || "").replace(/\s*scale\([^)]*\)\s*/g, " ").replace(/\s+/g, " ").trim(), h = d ? `${d} ${c}` : c;
238
+ const f = (e.style.transform || "").replace(/\s*scale\([^)]*\)\s*/g, " ").replace(/\s+/g, " ").trim(), h = f ? `${f} ${c}` : c;
227
239
  e.style.transform = h;
228
240
  }
229
241
  }
@@ -261,7 +273,7 @@ let g = class {
261
273
  computeLayoutStyles(e, t) {
262
274
  const i = {};
263
275
  if (e.frame) {
264
- const n = e.frame, r = oe(n);
276
+ const n = e.frame, r = ue(n);
265
277
  if (Object.assign(i, r.cssProps), n.width !== void 0) {
266
278
  const a = L(n.width);
267
279
  a !== void 0 && !A(n.width) && !r.expandWidth && (i.width = a);
@@ -333,11 +345,11 @@ let g = class {
333
345
  }
334
346
  return i;
335
347
  }
336
- }, zo = class extends g {
348
+ }, er = class extends g {
337
349
  constructor() {
338
350
  super(...arguments);
339
- f(this, "type", "appearance");
340
- f(this, "priority", P.APPEARANCE);
351
+ d(this, "type", "appearance");
352
+ d(this, "priority", V.APPEARANCE);
341
353
  }
342
354
  apply(e, t) {
343
355
  if (!e.element || !t.element)
@@ -358,7 +370,7 @@ let g = class {
358
370
  * Apply Asset-based styles with theme reactivity
359
371
  */
360
372
  applyAssetBasedStyles(e, t) {
361
- const i = N();
373
+ const i = j();
362
374
  t.foregroundColor && this.isAsset(t.foregroundColor) && b(() => {
363
375
  i();
364
376
  const n = t.foregroundColor.resolve();
@@ -419,11 +431,11 @@ let g = class {
419
431
  const i = [];
420
432
  return e.blur !== void 0 && i.push(`blur(${e.blur}px)`), e.brightness !== void 0 && i.push(`brightness(${e.brightness})`), e.contrast !== void 0 && i.push(`contrast(${e.contrast})`), e.saturation !== void 0 && i.push(`saturate(${e.saturation})`), e.hueRotation !== void 0 && i.push(`hue-rotate(${e.hueRotation}deg)`), e.grayscale !== void 0 && i.push(`grayscale(${e.grayscale})`), e.colorInvert !== void 0 && i.push(`invert(${e.colorInvert})`), i.length > 0 && (t.filter = i.join(" ")), t;
421
433
  }
422
- }, Wo = class extends g {
434
+ }, ir = class extends g {
423
435
  constructor() {
424
436
  super(...arguments);
425
- f(this, "type", "interaction");
426
- f(this, "priority", P.INTERACTION);
437
+ d(this, "type", "interaction");
438
+ d(this, "priority", V.INTERACTION);
427
439
  }
428
440
  apply(e, t) {
429
441
  if (!t.element) return;
@@ -435,7 +447,7 @@ let g = class {
435
447
  }), i.onInput && t.element.addEventListener("input", i.onInput), i.onChange && t.element.addEventListener("change", (n) => {
436
448
  const r = n.target, a = r.value || r.textContent || "";
437
449
  i.onChange(a, n);
438
- }), i.onCopy && t.element.addEventListener("copy", i.onCopy), i.onCut && t.element.addEventListener("cut", i.onCut), i.onPaste && t.element.addEventListener("paste", i.onPaste), i.onSelect && t.element.addEventListener("select", i.onSelect), i.disabled !== void 0 && t.element instanceof HTMLElement) {
450
+ }), i.onCopy && t.element.addEventListener("copy", i.onCopy), i.onCut && t.element.addEventListener("cut", i.onCut), i.onPaste && t.element.addEventListener("paste", i.onPaste), i.onSelect && t.element.addEventListener("select", i.onSelect), i.disabled !== void 0 && P(t.element)) {
439
451
  const n = t.element, r = (a) => {
440
452
  a ? (n.setAttribute("disabled", "true"), n.style.pointerEvents = "none", n.style.opacity = "0.6") : (n.removeAttribute("disabled"), n.style.pointerEvents = "", n.style.opacity = "");
441
453
  };
@@ -444,7 +456,7 @@ let g = class {
444
456
  r(a);
445
457
  }) : r(!!i.disabled);
446
458
  }
447
- i.draggable !== void 0 && t.element instanceof HTMLElement && (t.element.draggable = i.draggable), i.accessibilityLabel && t.element.setAttribute("aria-label", i.accessibilityLabel), i.accessibilityHint && t.element.setAttribute("aria-describedby", i.accessibilityHint), i.onLongPressGesture && this.setupLongPressGesture(t.element, i.onLongPressGesture), i.keyboardShortcut && this.setupKeyboardShortcut(t.element, i.keyboardShortcut), i.focused !== void 0 && this.setupFocusManagement(t.element, i.focused), i.focusable && this.setupFocusable(t.element, i.focusable), i.onContinuousHover && this.setupContinuousHover(t.element, i.onContinuousHover), i.allowsHitTesting !== void 0 && this.setupHitTesting(t.element, i.allowsHitTesting);
459
+ i.draggable !== void 0 && P(t.element) && (t.element.draggable = i.draggable), i.accessibilityLabel && t.element.setAttribute("aria-label", i.accessibilityLabel), i.accessibilityHint && t.element.setAttribute("aria-describedby", i.accessibilityHint), i.onLongPressGesture && this.setupLongPressGesture(t.element, i.onLongPressGesture), i.keyboardShortcut && this.setupKeyboardShortcut(t.element, i.keyboardShortcut), i.focused !== void 0 && this.setupFocusManagement(t.element, i.focused), i.focusable && this.setupFocusable(t.element, i.focusable), i.onContinuousHover && this.setupContinuousHover(t.element, i.onContinuousHover), i.allowsHitTesting !== void 0 && this.setupHitTesting(t.element, i.allowsHitTesting);
448
460
  }
449
461
  // Phase 4 Advanced Gesture Methods
450
462
  /**
@@ -457,10 +469,10 @@ let g = class {
457
469
  r && (clearTimeout(r), r = void 0), l && t.onPressingChanged && t.onPressingChanged(!1), l = !1, a = null;
458
470
  }, u = (v) => {
459
471
  const S = v;
460
- a = { x: S.clientX, y: S.clientY }, l = !0, t.onPressingChanged && t.onPressingChanged(!0), r = window.setTimeout(() => {
472
+ a = { x: S.clientX, y: S.clientY }, l = !0, t.onPressingChanged && t.onPressingChanged(!0), r = (Ge() ? window.setTimeout : setTimeout)(() => {
461
473
  l && a && (t.perform(), c());
462
474
  }, i);
463
- }, d = (v) => {
475
+ }, f = (v) => {
464
476
  const S = v;
465
477
  if (!a || !l) return;
466
478
  Math.sqrt(
@@ -471,7 +483,7 @@ let g = class {
471
483
  }, y = () => {
472
484
  c();
473
485
  };
474
- e.addEventListener("pointerdown", u), e.addEventListener("pointermove", d), e.addEventListener("pointerup", h), e.addEventListener(
486
+ e.addEventListener("pointerdown", u), e.addEventListener("pointermove", f), e.addEventListener("pointerup", h), e.addEventListener(
475
487
  "pointercancel",
476
488
  y
477
489
  ), e._longPressCleanup = c;
@@ -493,19 +505,19 @@ let g = class {
493
505
  shift: r.shiftKey,
494
506
  alt: r.altKey
495
507
  }, c = r.key.toLowerCase() === t.key.toLowerCase(), u = Object.entries(a).every(
496
- ([d, h]) => h === l[d]
508
+ ([f, h]) => h === l[f]
497
509
  );
498
510
  c && u && (r.preventDefault(), t.action());
499
511
  };
500
- document.addEventListener("keydown", n), e._keyboardShortcutCleanup = () => {
512
+ Q() && (document.addEventListener("keydown", n), e._keyboardShortcutCleanup = () => {
501
513
  document.removeEventListener("keydown", n);
502
- };
514
+ });
503
515
  }
504
516
  /**
505
517
  * Setup focus management with reactive binding
506
518
  */
507
519
  setupFocusManagement(e, t) {
508
- if (!(e instanceof HTMLElement)) return;
520
+ if (!P(e)) return;
509
521
  const i = e;
510
522
  i.hasAttribute("tabindex") || i.setAttribute("tabindex", "0"), p(t) || m(t) ? b(() => {
511
523
  t() ? i.focus() : i.blur();
@@ -515,7 +527,7 @@ let g = class {
515
527
  * Setup focusable behavior
516
528
  */
517
529
  setupFocusable(e, t) {
518
- if (!(e instanceof HTMLElement)) return;
530
+ if (!P(e)) return;
519
531
  const i = e;
520
532
  t.isFocusable === !1 ? i.setAttribute("tabindex", "-1") : i.hasAttribute("tabindex") || i.setAttribute("tabindex", "0"), t.interactions?.includes("activate") && i.addEventListener("keydown", (n) => {
521
533
  (n.key === "Enter" || n.key === " ") && (n.preventDefault(), i.click());
@@ -529,8 +541,8 @@ let g = class {
529
541
  const l = a;
530
542
  let c, u;
531
543
  if (i === "local") {
532
- const d = e.getBoundingClientRect();
533
- c = l.clientX - d.left, u = l.clientY - d.top;
544
+ const f = e.getBoundingClientRect();
545
+ c = l.clientX - f.left, u = l.clientY - f.top;
534
546
  } else
535
547
  c = l.clientX, u = l.clientY;
536
548
  t.perform({ x: c, y: u });
@@ -548,37 +560,37 @@ let g = class {
548
560
  * Setup hit testing control
549
561
  */
550
562
  setupHitTesting(e, t) {
551
- e instanceof HTMLElement && (e.style.pointerEvents = t ? "" : "none");
563
+ P(e) && (e.style.pointerEvents = t ? "" : "none");
552
564
  }
553
- }, Be = class extends g {
565
+ }, Ye = class extends g {
554
566
  constructor() {
555
567
  super(...arguments);
556
- f(this, "type", "animation");
557
- f(this, "priority", P.ANIMATION);
568
+ d(this, "type", "animation");
569
+ d(this, "priority", V.ANIMATION);
558
570
  }
559
571
  apply(e, t) {
560
572
  if (!t.element) return;
561
573
  const i = this.properties;
562
574
  if (i.transition) {
563
575
  const n = i.transition, r = n.property || "all", a = n.duration || 300, l = n.easing || "ease", c = n.delay || 0;
564
- t.element instanceof HTMLElement && (r === "none" ? t.element.style.transition = "none" : t.element.style.transition = `${r} ${a}ms ${l} ${c}ms`);
576
+ z(t.element) && (r === "none" ? t.element.style.transition = "none" : t.element.style.transition = `${r} ${a}ms ${l} ${c}ms`);
565
577
  }
566
- if (i.animation && t.element instanceof HTMLElement) {
578
+ if (i.animation && z(t.element)) {
567
579
  const n = i.animation;
568
- if (n.keyframes) {
580
+ if (n.keyframes && Q()) {
569
581
  const r = `tachui-animation-${t.componentId}-${Date.now()}`, a = this.createKeyframeRule(
570
582
  r,
571
583
  n.keyframes
572
584
  );
573
585
  this.addKeyframesToStylesheet(a);
574
- const l = n.duration || 1e3, c = n.easing || "ease", u = n.iterations || 1, d = n.direction || "normal";
575
- t.element.style.animation = `${r} ${l}ms ${c} ${u} ${d}`;
586
+ const l = n.duration || 1e3, c = n.easing || "ease", u = n.iterations || 1, f = n.direction || "normal";
587
+ t.element.style.animation = `${r} ${l}ms ${c} ${u} ${f}`;
576
588
  }
577
589
  }
578
- if (i.transform && t.element instanceof HTMLElement && (p(i.transform) || m(i.transform) ? b(() => {
590
+ if (i.transform && z(t.element) && (p(i.transform) || m(i.transform) ? b(() => {
579
591
  const n = i.transform();
580
- t.element instanceof HTMLElement && (t.element.style.transform = n);
581
- }) : t.element.style.transform = i.transform), i.rotationEffect && t.element instanceof HTMLElement) {
592
+ z(t.element) && (t.element.style.transform = n);
593
+ }) : t.element.style.transform = i.transform), i.rotationEffect && z(t.element)) {
582
594
  const { angle: n, anchor: r } = i.rotationEffect, l = {
583
595
  center: "50% 50%",
584
596
  top: "50% 0%",
@@ -592,24 +604,24 @@ let g = class {
592
604
  }[r || "center"] || "50% 50%", c = `rotate(${n}deg)`;
593
605
  if (p(n) || m(n))
594
606
  b(() => {
595
- const d = `rotate(${typeof n == "function" ? n() : n}deg)`;
596
- if (t.element instanceof HTMLElement) {
607
+ const f = `rotate(${typeof n == "function" ? n() : n}deg)`;
608
+ if (z(t.element)) {
597
609
  t.element.style.transformOrigin = l;
598
- const y = (t.element.style.transform || "").split(" ").filter((S) => S && !S.startsWith("rotate(")).join(" "), v = y ? `${y} ${d}` : d;
610
+ const y = (t.element.style.transform || "").split(" ").filter((S) => S && !S.startsWith("rotate(")).join(" "), v = y ? `${y} ${f}` : f;
599
611
  t.element.style.transform = v;
600
612
  }
601
613
  });
602
- else if (t.element instanceof HTMLElement) {
614
+ else if (z(t.element)) {
603
615
  t.element.style.transformOrigin = l;
604
- const d = (t.element.style.transform || "").split(" ").filter((y) => y && !y.startsWith("rotate(")).join(" "), h = d ? `${d} ${c}` : c;
616
+ const f = (t.element.style.transform || "").split(" ").filter((y) => y && !y.startsWith("rotate(")).join(" "), h = f ? `${f} ${c}` : c;
605
617
  t.element.style.transform = h;
606
618
  }
607
619
  }
608
- i.overlay && t.element instanceof HTMLElement && this.applyOverlay(t.element, i.overlay, t);
620
+ i.overlay && P(t.element) && this.applyOverlay(t.element, i.overlay, t);
609
621
  }
610
622
  applyOverlay(e, t, i) {
611
623
  const { content: n, alignment: r = "center" } = t;
612
- (e.style.position === "" || e.style.position === "static") && (e.style.position = "relative");
624
+ if ((e.style.position === "" || e.style.position === "static") && (e.style.position = "relative"), !Q()) return;
613
625
  const a = document.createElement("div");
614
626
  a.style.position = "absolute", a.style.pointerEvents = "none";
615
627
  const l = this.getOverlayAlignment(r);
@@ -622,7 +634,7 @@ let g = class {
622
634
  } else if (n && typeof n.render == "function") {
623
635
  const c = n.render();
624
636
  c.element && a.appendChild(c.element);
625
- } else n instanceof HTMLElement && a.appendChild(n);
637
+ } else P(n) && a.appendChild(n);
626
638
  e.appendChild(a);
627
639
  }
628
640
  getOverlayAlignment(e) {
@@ -688,17 +700,18 @@ let g = class {
688
700
  return i += "}", i;
689
701
  }
690
702
  addKeyframesToStylesheet(e) {
703
+ if (!Q()) return;
691
704
  let t = document.querySelector(
692
705
  "#tachui-animations"
693
706
  );
694
707
  t || (t = document.createElement("style"), t.id = "tachui-animations", document.head.appendChild(t)), t.appendChild(document.createTextNode(e));
695
708
  }
696
- }, Go = class extends g {
709
+ }, rr = class extends g {
697
710
  constructor() {
698
711
  super(...arguments);
699
- f(this, "type", "lifecycle");
700
- f(this, "priority", P.CUSTOM);
701
- f(this, "activeAbortController");
712
+ d(this, "type", "lifecycle");
713
+ d(this, "priority", V.CUSTOM);
714
+ d(this, "activeAbortController");
702
715
  }
703
716
  apply(e, t) {
704
717
  if (!t.element) return;
@@ -743,7 +756,9 @@ let g = class {
743
756
  setupRefreshable(e, t) {
744
757
  if (!t) return;
745
758
  let i = !1, n = 0, r = 0;
746
- const a = 70, l = document.createElement("div");
759
+ const a = 70;
760
+ if (!Q()) return;
761
+ const l = document.createElement("div");
747
762
  if (l.style.cssText = `
748
763
  position: absolute;
749
764
  top: -50px;
@@ -768,10 +783,10 @@ let g = class {
768
783
  `, document.head.appendChild(y);
769
784
  }
770
785
  const c = e.parentElement || e;
771
- c instanceof HTMLElement && (c.style.position = "relative", c.appendChild(l));
786
+ P(c) && (c.style.position = "relative", c.appendChild(l));
772
787
  const u = (y) => {
773
788
  i || (r = y.touches[0].clientY);
774
- }, d = (y) => {
789
+ }, f = (y) => {
775
790
  if (i) return;
776
791
  const v = y.touches[0].clientY;
777
792
  if (n = Math.max(0, v - r), n > 20) {
@@ -795,26 +810,26 @@ let g = class {
795
810
  };
796
811
  e.addEventListener("touchstart", u, {
797
812
  passive: !1
798
- }), e.addEventListener("touchmove", d, {
813
+ }), e.addEventListener("touchmove", f, {
799
814
  passive: !1
800
815
  }), e.addEventListener("touchend", h), this.addCleanup(() => {
801
816
  e.removeEventListener(
802
817
  "touchstart",
803
818
  u
804
- ), e.removeEventListener("touchmove", d), e.removeEventListener("touchend", h), l.parentElement && l.parentElement.removeChild(l);
819
+ ), e.removeEventListener("touchmove", f), e.removeEventListener("touchend", h), l.parentElement && l.parentElement.removeChild(l);
805
820
  });
806
821
  }
807
822
  addCleanup(e) {
808
823
  this.properties._cleanupFunctions || (this.properties._cleanupFunctions = []), this.properties._cleanupFunctions.push(e);
809
824
  }
810
825
  };
811
- const Ne = "@tachui/modifiers", ze = "0.8.24", Yo = Ne, Fe = ze;
812
- class V extends g {
826
+ const Xe = "@tachui/modifiers", Ze = "0.8.26", ar = Xe, qe = Ze;
827
+ class D extends g {
813
828
  // Optimized priority for internal spacing (before margin at 50)
814
829
  constructor(e) {
815
830
  super(e);
816
- f(this, "type", "padding");
817
- f(this, "priority", 45);
831
+ d(this, "type", "padding");
832
+ d(this, "priority", 45);
818
833
  }
819
834
  apply(e, t) {
820
835
  if (!t.element) return;
@@ -839,118 +854,118 @@ class V extends g {
839
854
  return t;
840
855
  }
841
856
  }
842
- function M(o) {
843
- return p(o) || m(o) ? new V({ all: o }) : typeof o == "number" || typeof o == "string" ? new V({ all: o }) : new V(o);
857
+ function x(o) {
858
+ return p(o) || m(o) ? new D({ all: o }) : typeof o == "number" || typeof o == "string" ? new D({ all: o }) : new D(o);
844
859
  }
845
- function We(o) {
846
- return new V({ top: o });
860
+ function Je(o) {
861
+ return new D({ top: o });
847
862
  }
848
- function je(o) {
849
- return new V({ bottom: o });
863
+ function Qe(o) {
864
+ return new D({ bottom: o });
850
865
  }
851
- function Ue(o) {
852
- return new V({ left: o });
866
+ function et(o) {
867
+ return new D({ left: o });
853
868
  }
854
- function Ge(o) {
855
- return new V({ right: o });
869
+ function tt(o) {
870
+ return new D({ right: o });
856
871
  }
857
- function Ke(o) {
858
- return new V({ leading: o });
872
+ function it(o) {
873
+ return new D({ leading: o });
859
874
  }
860
- function Ye(o) {
861
- return new V({ trailing: o });
875
+ function nt(o) {
876
+ return new D({ trailing: o });
862
877
  }
863
- function Xe(o) {
864
- return new V({ horizontal: o });
878
+ function ot(o) {
879
+ return new D({ horizontal: o });
865
880
  }
866
- function Ze(o) {
867
- return new V({ vertical: o });
881
+ function rt(o) {
882
+ return new D({ vertical: o });
868
883
  }
869
- const Xo = {
884
+ const lr = {
870
885
  /**
871
886
  * Extra small padding (4px) - For tight spacing
872
887
  */
873
- xs: () => M(4),
888
+ xs: () => x(4),
874
889
  /**
875
890
  * Small padding (8px) - For compact components
876
891
  */
877
- sm: () => M(8),
892
+ sm: () => x(8),
878
893
  /**
879
894
  * Medium padding (12px) - Default comfortable spacing
880
895
  */
881
- md: () => M(12),
896
+ md: () => x(12),
882
897
  /**
883
898
  * Large padding (16px) - For prominent components
884
899
  */
885
- lg: () => M(16),
900
+ lg: () => x(16),
886
901
  /**
887
902
  * Extra large padding (24px) - For emphasis
888
903
  */
889
- xl: () => M(24),
904
+ xl: () => x(24),
890
905
  /**
891
906
  * Extra extra large padding (32px) - For major sections
892
907
  */
893
- xxl: () => M(32),
908
+ xxl: () => x(32),
894
909
  /**
895
910
  * Huge padding (48px) - For hero sections
896
911
  */
897
- xxxl: () => M(48),
912
+ xxxl: () => x(48),
898
913
  // Semantic presets for common UI patterns
899
914
  /**
900
915
  * Button padding preset (horizontal: 16, vertical: 8)
901
916
  * Optimized for interactive elements
902
917
  */
903
- button: () => M({ horizontal: 16, vertical: 8 }),
918
+ button: () => x({ horizontal: 16, vertical: 8 }),
904
919
  /**
905
920
  * Small button padding (horizontal: 12, vertical: 6)
906
921
  */
907
- buttonSm: () => M({ horizontal: 12, vertical: 6 }),
922
+ buttonSm: () => x({ horizontal: 12, vertical: 6 }),
908
923
  /**
909
924
  * Large button padding (horizontal: 24, vertical: 12)
910
925
  */
911
- buttonLg: () => M({ horizontal: 24, vertical: 12 }),
926
+ buttonLg: () => x({ horizontal: 24, vertical: 12 }),
912
927
  /**
913
928
  * Card padding preset (all: 16)
914
929
  * Standard for card-like containers
915
930
  */
916
- card: () => M(16),
931
+ card: () => x(16),
917
932
  /**
918
933
  * Compact card padding (all: 12)
919
934
  */
920
- cardSm: () => M(12),
935
+ cardSm: () => x(12),
921
936
  /**
922
937
  * Spacious card padding (all: 24)
923
938
  */
924
- cardLg: () => M(24),
939
+ cardLg: () => x(24),
925
940
  /**
926
941
  * Section padding preset (horizontal: 20, vertical: 12)
927
942
  * For content sections and layout blocks
928
943
  */
929
- section: () => M({ horizontal: 20, vertical: 12 }),
944
+ section: () => x({ horizontal: 20, vertical: 12 }),
930
945
  /**
931
946
  * Page padding preset (horizontal: 24, vertical: 16)
932
947
  * For top-level page containers
933
948
  */
934
- page: () => M({ horizontal: 24, vertical: 16 }),
949
+ page: () => x({ horizontal: 24, vertical: 16 }),
935
950
  /**
936
951
  * Form field padding (horizontal: 12, vertical: 8)
937
952
  */
938
- field: () => M({ horizontal: 12, vertical: 8 }),
953
+ field: () => x({ horizontal: 12, vertical: 8 }),
939
954
  /**
940
955
  * Navigation item padding (horizontal: 16, vertical: 8)
941
956
  */
942
- nav: () => M({ horizontal: 16, vertical: 8 }),
957
+ nav: () => x({ horizontal: 16, vertical: 8 }),
943
958
  /**
944
959
  * List item padding (horizontal: 16, vertical: 12)
945
960
  */
946
- listItem: () => M({ horizontal: 16, vertical: 12 })
961
+ listItem: () => x({ horizontal: 16, vertical: 12 })
947
962
  };
948
- class R extends g {
963
+ class O extends g {
949
964
  // Optimized priority for external spacing (after padding at 45)
950
965
  constructor(e) {
951
966
  super(e);
952
- f(this, "type", "margin");
953
- f(this, "priority", 50);
967
+ d(this, "type", "margin");
968
+ d(this, "priority", 50);
954
969
  }
955
970
  apply(e, t) {
956
971
  if (!t.element) return;
@@ -975,123 +990,123 @@ class R extends g {
975
990
  return t;
976
991
  }
977
992
  }
978
- function x(o) {
979
- return typeof o == "number" || typeof o == "string" ? new R({ all: o }) : new R(o);
993
+ function M(o) {
994
+ return typeof o == "number" || typeof o == "string" ? new O({ all: o }) : new O(o);
980
995
  }
981
- function qe(o) {
982
- return new R({ top: o });
996
+ function st(o) {
997
+ return new O({ top: o });
983
998
  }
984
- function Je(o) {
985
- return new R({ bottom: o });
999
+ function at(o) {
1000
+ return new O({ bottom: o });
986
1001
  }
987
- function Qe(o) {
988
- return new R({ left: o });
1002
+ function lt(o) {
1003
+ return new O({ left: o });
989
1004
  }
990
- function et(o) {
991
- return new R({ right: o });
1005
+ function ct(o) {
1006
+ return new O({ right: o });
992
1007
  }
993
- function tt(o) {
994
- return new R({ leading: o });
1008
+ function dt(o) {
1009
+ return new O({ leading: o });
995
1010
  }
996
- function it(o) {
997
- return new R({ trailing: o });
1011
+ function ft(o) {
1012
+ return new O({ trailing: o });
998
1013
  }
999
- function nt(o) {
1000
- return new R({ horizontal: o });
1014
+ function ut(o) {
1015
+ return new O({ horizontal: o });
1001
1016
  }
1002
- function ot(o) {
1003
- return new R({ vertical: o });
1017
+ function pt(o) {
1018
+ return new O({ vertical: o });
1004
1019
  }
1005
- const Zo = {
1020
+ const cr = {
1006
1021
  /**
1007
1022
  * Extra small margin (4px) - For tight spacing
1008
1023
  */
1009
- xs: () => x(4),
1024
+ xs: () => M(4),
1010
1025
  /**
1011
1026
  * Small margin (8px) - For compact components
1012
1027
  */
1013
- sm: () => x(8),
1028
+ sm: () => M(8),
1014
1029
  /**
1015
1030
  * Medium margin (12px) - Default comfortable spacing
1016
1031
  */
1017
- md: () => x(12),
1032
+ md: () => M(12),
1018
1033
  /**
1019
1034
  * Large margin (16px) - For prominent separation
1020
1035
  */
1021
- lg: () => x(16),
1036
+ lg: () => M(16),
1022
1037
  /**
1023
1038
  * Extra large margin (24px) - For emphasis
1024
1039
  */
1025
- xl: () => x(24),
1040
+ xl: () => M(24),
1026
1041
  /**
1027
1042
  * Extra extra large margin (32px) - For major sections
1028
1043
  */
1029
- xxl: () => x(32),
1044
+ xxl: () => M(32),
1030
1045
  /**
1031
1046
  * Huge margin (48px) - For hero sections
1032
1047
  */
1033
- xxxl: () => x(48),
1048
+ xxxl: () => M(48),
1034
1049
  // Semantic presets for common UI patterns
1035
1050
  /**
1036
1051
  * Component separation (vertical: 16, horizontal: 0)
1037
1052
  * For spacing between stacked components
1038
1053
  */
1039
- component: () => x({ vertical: 16, horizontal: 0 }),
1054
+ component: () => M({ vertical: 16, horizontal: 0 }),
1040
1055
  /**
1041
1056
  * Section separation (vertical: 24, horizontal: 0)
1042
1057
  * For major content sections
1043
1058
  */
1044
- section: () => x({ vertical: 24, horizontal: 0 }),
1059
+ section: () => M({ vertical: 24, horizontal: 0 }),
1045
1060
  /**
1046
1061
  * Page margin (horizontal: auto)
1047
1062
  * For centering page content
1048
1063
  */
1049
- page: () => x({ horizontal: "auto" }),
1064
+ page: () => M({ horizontal: "auto" }),
1050
1065
  /**
1051
1066
  * Card margin (all: 16)
1052
1067
  * Standard margin around card components
1053
1068
  */
1054
- card: () => x(16),
1069
+ card: () => M(16),
1055
1070
  /**
1056
1071
  * Compact card margin (all: 8)
1057
1072
  */
1058
- cardSm: () => x(8),
1073
+ cardSm: () => M(8),
1059
1074
  /**
1060
1075
  * Spacious card margin (all: 24)
1061
1076
  */
1062
- cardLg: () => x(24),
1077
+ cardLg: () => M(24),
1063
1078
  /**
1064
1079
  * Button margin (horizontal: 8, vertical: 4)
1065
1080
  * For spacing between inline buttons
1066
1081
  */
1067
- button: () => x({ horizontal: 8, vertical: 4 }),
1082
+ button: () => M({ horizontal: 8, vertical: 4 }),
1068
1083
  /**
1069
1084
  * List item margin (vertical: 8, horizontal: 0)
1070
1085
  * For spacing between list items
1071
1086
  */
1072
- listItem: () => x({ vertical: 8, horizontal: 0 }),
1087
+ listItem: () => M({ vertical: 8, horizontal: 0 }),
1073
1088
  /**
1074
1089
  * Form field margin (vertical: 12, horizontal: 0)
1075
1090
  * For spacing between form fields
1076
1091
  */
1077
- field: () => x({ vertical: 12, horizontal: 0 }),
1092
+ field: () => M({ vertical: 12, horizontal: 0 }),
1078
1093
  /**
1079
1094
  * Zero margin utility
1080
1095
  * For removing default margins
1081
1096
  */
1082
- none: () => x(0),
1097
+ none: () => M(0),
1083
1098
  /**
1084
1099
  * Auto margin utility
1085
1100
  * For centering elements
1086
1101
  */
1087
- auto: () => x("auto")
1102
+ auto: () => M("auto")
1088
1103
  };
1089
- class z extends g {
1104
+ class U extends g {
1090
1105
  // Priority 80 for layout
1091
1106
  constructor(e) {
1092
1107
  super(e);
1093
- f(this, "type", "size");
1094
- f(this, "priority", 80);
1108
+ d(this, "type", "size");
1109
+ d(this, "priority", 80);
1095
1110
  }
1096
1111
  apply(e, t) {
1097
1112
  if (!t.element) return;
@@ -1099,7 +1114,7 @@ class z extends g {
1099
1114
  this.applyStyles(t.element, i);
1100
1115
  }
1101
1116
  computeSizeStyles(e) {
1102
- const t = {}, i = oe(e);
1117
+ const t = {}, i = ue(e);
1103
1118
  if (Object.assign(t, i.cssProps), e.width !== void 0) {
1104
1119
  const n = L(e.width);
1105
1120
  n !== void 0 && !A(e.width) && (t.width = n);
@@ -1127,46 +1142,46 @@ class z extends g {
1127
1142
  return t;
1128
1143
  }
1129
1144
  }
1130
- function rt(o) {
1131
- return new z(o);
1145
+ function mt(o) {
1146
+ return new U(o);
1132
1147
  }
1133
- function st(o) {
1134
- return new z({ width: o });
1148
+ function ht(o) {
1149
+ return new U({ width: o });
1135
1150
  }
1136
- function at(o) {
1137
- return new z({ height: o });
1151
+ function yt(o) {
1152
+ return new U({ height: o });
1138
1153
  }
1139
- function lt(o) {
1140
- return new z({ maxWidth: o });
1154
+ function gt(o) {
1155
+ return new U({ maxWidth: o });
1141
1156
  }
1142
- function ct(o) {
1143
- return new z({ minWidth: o });
1157
+ function vt(o) {
1158
+ return new U({ minWidth: o });
1144
1159
  }
1145
- function ft(o) {
1146
- return new z({ maxHeight: o });
1160
+ function bt(o) {
1161
+ return new U({ maxHeight: o });
1147
1162
  }
1148
- function dt(o) {
1149
- return new z({ minHeight: o });
1163
+ function St(o) {
1164
+ return new U({ minHeight: o });
1150
1165
  }
1151
- class te extends Be {
1166
+ class le extends Ye {
1152
1167
  constructor() {
1153
1168
  super(...arguments);
1154
1169
  // Override type to be 'transition' instead of 'animation'
1155
- f(this, "type", "transition");
1170
+ d(this, "type", "transition");
1156
1171
  }
1157
1172
  }
1158
- function ut(o, s, e, t) {
1173
+ function wt(o, s, e, t) {
1159
1174
  if (typeof o == "object")
1160
- return new te({ transition: o });
1175
+ return new le({ transition: o });
1161
1176
  const i = o;
1162
- return i === "none" ? new te({
1177
+ return i === "none" ? new le({
1163
1178
  transition: {
1164
1179
  property: "none",
1165
1180
  duration: 0,
1166
1181
  easing: "ease",
1167
1182
  delay: 0
1168
1183
  }
1169
- }) : new te({
1184
+ }) : new le({
1170
1185
  transition: {
1171
1186
  property: i,
1172
1187
  duration: s || 300,
@@ -1175,24 +1190,24 @@ function ut(o, s, e, t) {
1175
1190
  }
1176
1191
  });
1177
1192
  }
1178
- function pt(o) {
1179
- return new J({ transform: o });
1193
+ function Ct(o) {
1194
+ return new oe({ transform: o });
1180
1195
  }
1181
- function mt(o) {
1182
- return o ? new J({ animation: o }) : new J({});
1196
+ function Et(o) {
1197
+ return o ? new oe({ animation: o }) : new oe({});
1183
1198
  }
1184
- function ht(o) {
1185
- return new J({ transitions: o });
1199
+ function xt(o) {
1200
+ return new oe({ transitions: o });
1186
1201
  }
1187
- function yt(o) {
1188
- return new Re({ task: o });
1202
+ function Mt(o) {
1203
+ return new Fe({ task: o });
1189
1204
  }
1190
- class $ extends g {
1205
+ class R extends g {
1191
1206
  // Optimized priority for layout modifiers
1192
1207
  constructor(e) {
1193
1208
  super(e);
1194
- f(this, "type", "flexbox");
1195
- f(this, "priority", 60);
1209
+ d(this, "type", "flexbox");
1210
+ d(this, "priority", 60);
1196
1211
  }
1197
1212
  apply(e, t) {
1198
1213
  if (!t.element) return;
@@ -1215,45 +1230,45 @@ class $ extends g {
1215
1230
  }
1216
1231
  }
1217
1232
  function I(o) {
1218
- return new $(o);
1233
+ return new R(o);
1219
1234
  }
1220
- function gt(o) {
1221
- return new $({ flexGrow: o });
1235
+ function Tt(o) {
1236
+ return new R({ flexGrow: o });
1222
1237
  }
1223
- function vt(o) {
1224
- return new $({ flexShrink: o });
1238
+ function Lt(o) {
1239
+ return new R({ flexShrink: o });
1225
1240
  }
1226
- function bt(o) {
1227
- return new $({ flexBasis: o });
1241
+ function At(o) {
1242
+ return new R({ flexBasis: o });
1228
1243
  }
1229
- function qo(o) {
1230
- return new $({ flex: o });
1244
+ function dr(o) {
1245
+ return new R({ flex: o });
1231
1246
  }
1232
- function St(o) {
1233
- return new $({ justifyContent: o });
1247
+ function kt(o) {
1248
+ return new R({ justifyContent: o });
1234
1249
  }
1235
- function wt(o) {
1236
- return new $({ alignItems: o });
1250
+ function It(o) {
1251
+ return new R({ alignItems: o });
1237
1252
  }
1238
- function Ct(o) {
1239
- return new $({ alignSelf: o });
1253
+ function Pt(o) {
1254
+ return new R({ alignSelf: o });
1240
1255
  }
1241
- function Et(o) {
1242
- return new $({ gap: o });
1256
+ function $t(o) {
1257
+ return new R({ gap: o });
1243
1258
  }
1244
- function Jo(o) {
1245
- return new $({ rowGap: o });
1259
+ function fr(o) {
1260
+ return new R({ rowGap: o });
1246
1261
  }
1247
- function Qo(o) {
1248
- return new $({ columnGap: o });
1262
+ function ur(o) {
1263
+ return new R({ columnGap: o });
1249
1264
  }
1250
- function Mt(o) {
1251
- return new $({ flexDirection: o });
1265
+ function Vt(o) {
1266
+ return new R({ flexDirection: o });
1252
1267
  }
1253
- function xt(o) {
1254
- return new $({ flexWrap: o });
1268
+ function Rt(o) {
1269
+ return new R({ flexWrap: o });
1255
1270
  }
1256
- const er = {
1271
+ const pr = {
1257
1272
  /**
1258
1273
  * Standard flex container
1259
1274
  * Sets display: flex for basic flex container
@@ -1391,11 +1406,11 @@ const er = {
1391
1406
  alignItems: "stretch"
1392
1407
  })
1393
1408
  };
1394
- class Tt extends g {
1409
+ class Dt extends g {
1395
1410
  constructor() {
1396
1411
  super(...arguments);
1397
- f(this, "type", "offset");
1398
- f(this, "priority", 35);
1412
+ d(this, "type", "offset");
1413
+ d(this, "priority", 35);
1399
1414
  }
1400
1415
  // High priority for transform operations
1401
1416
  apply(e, t) {
@@ -1432,15 +1447,15 @@ class Tt extends g {
1432
1447
  }
1433
1448
  }
1434
1449
  }
1435
- function Lt(o, s) {
1436
- const e = new Tt({ x: o, y: s ?? 0 });
1450
+ function Ot(o, s) {
1451
+ const e = new Dt({ x: o, y: s ?? 0 });
1437
1452
  return typeof process < "u" && process.env.NODE_ENV === "development" && e.validateOffset(o, s), e;
1438
1453
  }
1439
- class At extends g {
1454
+ class _t extends g {
1440
1455
  constructor() {
1441
1456
  super(...arguments);
1442
- f(this, "type", "scaleEffect");
1443
- f(this, "priority", 35);
1457
+ d(this, "type", "scaleEffect");
1458
+ d(this, "priority", 35);
1444
1459
  }
1445
1460
  // High priority for transform operations
1446
1461
  apply(e, t) {
@@ -1514,14 +1529,14 @@ class At extends g {
1514
1529
  }
1515
1530
  }
1516
1531
  }
1517
- function kt(o, s, e = "center") {
1518
- return new At({ x: o, y: s, anchor: e });
1532
+ function Bt(o, s, e = "center") {
1533
+ return new _t({ x: o, y: s, anchor: e });
1519
1534
  }
1520
- class Ce extends g {
1535
+ class Ie extends g {
1521
1536
  constructor() {
1522
1537
  super(...arguments);
1523
- f(this, "type", "aspectRatio");
1524
- f(this, "priority", 20);
1538
+ d(this, "type", "aspectRatio");
1539
+ d(this, "priority", 20);
1525
1540
  }
1526
1541
  // Medium priority for layout properties
1527
1542
  apply(e, t) {
@@ -1578,7 +1593,7 @@ class Ce extends g {
1578
1593
  /**
1579
1594
  * Get common aspect ratios
1580
1595
  */
1581
- f(Ce, "COMMON_RATIOS", {
1596
+ d(Ie, "COMMON_RATIOS", {
1582
1597
  square: 1,
1583
1598
  portrait: 3 / 4,
1584
1599
  landscape: 4 / 3,
@@ -1587,14 +1602,17 @@ f(Ce, "COMMON_RATIOS", {
1587
1602
  golden: 1.618,
1588
1603
  photo: 3 / 2
1589
1604
  });
1590
- function It(o, s = "fit") {
1591
- return new Ce({ ratio: o, contentMode: s });
1605
+ function Ht(o, s = "fit") {
1606
+ return new Ie({ ratio: o, contentMode: s });
1592
1607
  }
1593
- class Pt extends g {
1608
+ function Nt(o) {
1609
+ return typeof getComputedStyle != "function" ? null : getComputedStyle(o);
1610
+ }
1611
+ class zt extends g {
1594
1612
  constructor() {
1595
1613
  super(...arguments);
1596
- f(this, "type", "fixedSize");
1597
- f(this, "priority", 25);
1614
+ d(this, "type", "fixedSize");
1615
+ d(this, "priority", 25);
1598
1616
  }
1599
1617
  // Medium priority for layout properties
1600
1618
  apply(e, t) {
@@ -1624,8 +1642,10 @@ class Pt extends g {
1624
1642
  isFlexItem(e) {
1625
1643
  const t = e.parentElement;
1626
1644
  if (!t) return !1;
1627
- const i = getComputedStyle(t).display;
1628
- return i === "flex" || i === "inline-flex";
1645
+ const i = Nt(t);
1646
+ if (!i) return !1;
1647
+ const n = i.display;
1648
+ return n === "flex" || n === "inline-flex";
1629
1649
  }
1630
1650
  /**
1631
1651
  * Development mode validation
@@ -1646,31 +1666,37 @@ class Pt extends g {
1646
1666
  ));
1647
1667
  }
1648
1668
  }
1649
- function $t(o = !0, s = !0) {
1650
- return new Pt({ horizontal: o, vertical: s });
1669
+ function Ft(o = !0, s = !0) {
1670
+ return new zt({ horizontal: o, vertical: s });
1651
1671
  }
1652
- function Vt(o) {
1653
- return new re({ frame: o });
1672
+ function Wt(o) {
1673
+ return new pe({ frame: o });
1654
1674
  }
1655
- function Rt(o) {
1656
- return new re({ layoutPriority: o });
1675
+ function jt(o) {
1676
+ return new pe({ layoutPriority: o });
1657
1677
  }
1658
- function Dt(o, s) {
1659
- return new re({
1678
+ function Ut(o, s) {
1679
+ return new pe({
1660
1680
  position: {
1661
1681
  x: o,
1662
1682
  y: s
1663
1683
  }
1664
1684
  });
1665
1685
  }
1666
- function Ht() {
1667
- return new De({});
1686
+ function Gt() {
1687
+ return new We({});
1688
+ }
1689
+ function Kt() {
1690
+ return typeof document < "u";
1668
1691
  }
1669
- class Ot extends g {
1692
+ function ce(o) {
1693
+ return typeof getComputedStyle != "function" ? null : getComputedStyle(o);
1694
+ }
1695
+ class Yt extends g {
1670
1696
  constructor() {
1671
1697
  super(...arguments);
1672
- f(this, "type", "position");
1673
- f(this, "priority", 50);
1698
+ d(this, "type", "position");
1699
+ d(this, "priority", 50);
1674
1700
  }
1675
1701
  // Highest priority to override other positioning
1676
1702
  apply(e, t) {
@@ -1727,9 +1753,12 @@ class Ot extends g {
1727
1753
  (t === "absolute" || t === "fixed") && (e.style.zIndex || (e.style.zIndex = "0"), e.style.transform || (e.style.transform = "translateZ(0)"));
1728
1754
  }
1729
1755
  warnIfMissingPositionedParent(e) {
1756
+ if (!Kt()) return;
1730
1757
  let t = e.parentElement, i = !1;
1731
1758
  for (; t && t !== document.body; ) {
1732
- if (getComputedStyle(t).position !== "static") {
1759
+ const n = ce(t);
1760
+ if (!n) return;
1761
+ if (n.position !== "static") {
1733
1762
  i = !0;
1734
1763
  break;
1735
1764
  }
@@ -1740,13 +1769,15 @@ class Ot extends g {
1740
1769
  );
1741
1770
  }
1742
1771
  warnIfMissingStickyProperties(e) {
1743
- const t = getComputedStyle(e);
1772
+ const t = ce(e);
1773
+ if (!t) return;
1744
1774
  t.top !== "auto" || t.right !== "auto" || t.bottom !== "auto" || t.left !== "auto" || console.warn(
1745
1775
  "PositionModifier: Sticky positioning requires at least one of top, right, bottom, or left to be set"
1746
1776
  );
1747
1777
  }
1748
1778
  warnIfHasPositioningProperties(e) {
1749
- const t = getComputedStyle(e);
1779
+ const t = ce(e);
1780
+ if (!t) return;
1750
1781
  (t.top !== "auto" || t.right !== "auto" || t.bottom !== "auto" || t.left !== "auto") && console.warn(
1751
1782
  "PositionModifier: Static positioning ignores top, right, bottom, and left properties"
1752
1783
  );
@@ -1781,14 +1812,20 @@ class Ot extends g {
1781
1812
  }
1782
1813
  }
1783
1814
  }
1784
- function _t(o) {
1785
- return new Ot({ position: o });
1815
+ function Xt(o) {
1816
+ return new Yt({ position: o });
1817
+ }
1818
+ function Zt() {
1819
+ return typeof getComputedStyle == "function";
1786
1820
  }
1787
- class Ee extends g {
1821
+ function ne(o) {
1822
+ return Zt() ? getComputedStyle(o) : null;
1823
+ }
1824
+ class Pe extends g {
1788
1825
  constructor() {
1789
1826
  super(...arguments);
1790
- f(this, "type", "zIndex");
1791
- f(this, "priority", 45);
1827
+ d(this, "type", "zIndex");
1828
+ d(this, "priority", 45);
1792
1829
  }
1793
1830
  // High priority for layering
1794
1831
  apply(e, t) {
@@ -1803,7 +1840,9 @@ class Ee extends g {
1803
1840
  e.style.zIndex = String(t), this.ensureStackingContext(e, t);
1804
1841
  }
1805
1842
  ensureStackingContext(e, t) {
1806
- const r = getComputedStyle(e).position !== "static", a = this.isFlexItem(e), l = this.isGridItem(e);
1843
+ const i = ne(e);
1844
+ if (!i) return;
1845
+ const r = i.position !== "static", a = this.isFlexItem(e), l = this.isGridItem(e);
1807
1846
  !r && !a && !l && (e.style.position = "relative", typeof process < "u" && process.env.NODE_ENV === "development" && console.info(
1808
1847
  "ZIndexModifier: Set position: relative on element to enable z-index stacking"
1809
1848
  )), typeof process < "u" && process.env.NODE_ENV === "development" && this.provideStackingInsights(e, t);
@@ -1811,14 +1850,18 @@ class Ee extends g {
1811
1850
  isFlexItem(e) {
1812
1851
  const t = e.parentElement;
1813
1852
  if (!t) return !1;
1814
- const i = getComputedStyle(t).display;
1815
- return i === "flex" || i === "inline-flex";
1853
+ const i = ne(t);
1854
+ if (!i) return !1;
1855
+ const n = i.display;
1856
+ return n === "flex" || n === "inline-flex";
1816
1857
  }
1817
1858
  isGridItem(e) {
1818
1859
  const t = e.parentElement;
1819
1860
  if (!t) return !1;
1820
- const i = getComputedStyle(t).display;
1821
- return i === "grid" || i === "inline-grid";
1861
+ const i = ne(t);
1862
+ if (!i) return !1;
1863
+ const n = i.display;
1864
+ return n === "grid" || n === "inline-grid";
1822
1865
  }
1823
1866
  provideStackingInsights(e, t) {
1824
1867
  t < 0 ? console.info(
@@ -1828,7 +1871,9 @@ class Ee extends g {
1828
1871
  ), this.checkStackingContext(e);
1829
1872
  }
1830
1873
  checkStackingContext(e) {
1831
- const t = getComputedStyle(e), n = [
1874
+ const t = ne(e);
1875
+ if (!t) return;
1876
+ const n = [
1832
1877
  { prop: "opacity", value: t.opacity, creates: t.opacity !== "1" },
1833
1878
  {
1834
1879
  prop: "transform",
@@ -1876,7 +1921,7 @@ class Ee extends g {
1876
1921
  /**
1877
1922
  * Common z-index values for semantic layering
1878
1923
  */
1879
- f(Ee, "COMMON_LAYERS", {
1924
+ d(Pe, "COMMON_LAYERS", {
1880
1925
  background: -1,
1881
1926
  base: 0,
1882
1927
  content: 1,
@@ -1888,8 +1933,20 @@ f(Ee, "COMMON_LAYERS", {
1888
1933
  toast: 600,
1889
1934
  debug: 9999
1890
1935
  });
1891
- function Bt(o) {
1892
- return new Ee({ zIndex: o });
1936
+ function qt(o) {
1937
+ return new Pe({ zIndex: o });
1938
+ }
1939
+ function $(o) {
1940
+ return typeof HTMLElement < "u" && o instanceof HTMLElement;
1941
+ }
1942
+ function F(o) {
1943
+ return typeof o == "object" && o !== null && "style" in o && !!o.style;
1944
+ }
1945
+ function re() {
1946
+ return typeof document < "u";
1947
+ }
1948
+ function Jt() {
1949
+ return typeof window < "u";
1893
1950
  }
1894
1951
  class w {
1895
1952
  constructor(s) {
@@ -1982,7 +2039,7 @@ class w {
1982
2039
  "value type:",
1983
2040
  typeof r
1984
2041
  ), b(() => {
1985
- const l = this.isAssetValue(r) ? (N()(), r.resolve()) : r();
2042
+ const l = this.isAssetValue(r) ? (j()(), r.resolve()) : r();
1986
2043
  console.log(
1987
2044
  "BaseModifier reactive effect fired - property:",
1988
2045
  a,
@@ -2004,7 +2061,7 @@ class w {
2004
2061
  });
2005
2062
  else {
2006
2063
  const l = this.toCSSValueForProperty(a, r);
2007
- if (process.env.NODE_ENV === "development" && a === "font-family" && (console.log("[AppearanceModifier.applyStyles] Setting font-family property:", a, "value:", l), console.log("[AppearanceModifier.applyStyles] Element:", s), console.log("[AppearanceModifier.applyStyles] Current computed font-family:", getComputedStyle(s).fontFamily)), i.setProperty)
2064
+ if (process.env.NODE_ENV === "development" && a === "font-family" && (console.log("[AppearanceModifier.applyStyles] Setting font-family property:", a, "value:", l), console.log("[AppearanceModifier.applyStyles] Element:", s), typeof getComputedStyle == "function" && console.log("[AppearanceModifier.applyStyles] Current computed font-family:", getComputedStyle(s).fontFamily)), i.setProperty)
2008
2065
  if (typeof l == "string" && l.includes("!important")) {
2009
2066
  const c = l.replace(/\s*!important\s*$/, "").trim();
2010
2067
  i.setProperty(a, c, "important");
@@ -2020,13 +2077,13 @@ class w {
2020
2077
  * Add CSS classes to an element
2021
2078
  */
2022
2079
  addClasses(s, e) {
2023
- s instanceof HTMLElement && s.classList.add(...e);
2080
+ $(s) && s.classList.add(...e);
2024
2081
  }
2025
2082
  /**
2026
2083
  * Remove CSS classes from an element
2027
2084
  */
2028
2085
  removeClasses(s, e) {
2029
- s instanceof HTMLElement && s.classList.remove(...e);
2086
+ $(s) && s.classList.remove(...e);
2030
2087
  }
2031
2088
  /**
2032
2089
  * Create a style computation context
@@ -2041,11 +2098,11 @@ class w {
2041
2098
  };
2042
2099
  }
2043
2100
  }
2044
- class tr extends w {
2101
+ class mr extends w {
2045
2102
  constructor() {
2046
2103
  super(...arguments);
2047
- f(this, "type", "layout");
2048
- f(this, "priority", P.LAYOUT);
2104
+ d(this, "type", "layout");
2105
+ d(this, "priority", V.LAYOUT);
2049
2106
  }
2050
2107
  apply(e, t) {
2051
2108
  if (!e.element || !t.element) return;
@@ -2059,7 +2116,7 @@ class tr extends w {
2059
2116
  );
2060
2117
  this.applyStyles(t.element, n);
2061
2118
  const r = this.properties;
2062
- r.offset && t.element instanceof HTMLElement && this.applyOffsetTransform(t.element, r.offset), r.aspectRatio && t.element instanceof HTMLElement && this.applyAspectRatio(t.element, r.aspectRatio), r.scaleEffect && t.element instanceof HTMLElement && this.applyScaleTransform(t.element, r.scaleEffect), r.position && t.element instanceof HTMLElement && this.applyAbsolutePosition(t.element, r.position), r.zIndex !== void 0 && t.element instanceof HTMLElement && this.applyZIndex(t.element, r.zIndex);
2119
+ r.offset && $(t.element) && this.applyOffsetTransform(t.element, r.offset), r.aspectRatio && $(t.element) && this.applyAspectRatio(t.element, r.aspectRatio), r.scaleEffect && $(t.element) && this.applyScaleTransform(t.element, r.scaleEffect), r.position && $(t.element) && this.applyAbsolutePosition(t.element, r.position), r.zIndex !== void 0 && $(t.element) && this.applyZIndex(t.element, r.zIndex);
2063
2120
  }
2064
2121
  applyOffsetTransform(e, t) {
2065
2122
  const { x: i, y: n } = t;
@@ -2085,11 +2142,11 @@ class tr extends w {
2085
2142
  const { x: i, y: n, anchor: r } = t, a = i ?? 1, l = n ?? a;
2086
2143
  if (p(a) || m(a) || p(l) || m(l))
2087
2144
  b(() => {
2088
- const c = p(a) || m(a) ? a() : a, u = p(l) || m(l) ? l() : l, d = `scale(${c}, ${u})`;
2145
+ const c = p(a) || m(a) ? a() : a, u = p(l) || m(l) ? l() : l, f = `scale(${c}, ${u})`;
2089
2146
  e.style.transformOrigin = this.getTransformOrigin(
2090
2147
  r || "center"
2091
2148
  );
2092
- const y = (e.style.transform || "").replace(/\s*scale\([^)]*\)\s*/g, " ").replace(/\s+/g, " ").trim(), v = y ? `${y} ${d}` : d;
2149
+ const y = (e.style.transform || "").replace(/\s*scale\([^)]*\)\s*/g, " ").replace(/\s+/g, " ").trim(), v = y ? `${y} ${f}` : f;
2093
2150
  e.style.transform = v;
2094
2151
  });
2095
2152
  else {
@@ -2097,7 +2154,7 @@ class tr extends w {
2097
2154
  e.style.transformOrigin = this.getTransformOrigin(
2098
2155
  r || "center"
2099
2156
  );
2100
- const d = (e.style.transform || "").replace(/\s*scale\([^)]*\)\s*/g, " ").replace(/\s+/g, " ").trim(), h = d ? `${d} ${c}` : c;
2157
+ const f = (e.style.transform || "").replace(/\s*scale\([^)]*\)\s*/g, " ").replace(/\s+/g, " ").trim(), h = f ? `${f} ${c}` : c;
2101
2158
  e.style.transform = h;
2102
2159
  }
2103
2160
  }
@@ -2135,7 +2192,7 @@ class tr extends w {
2135
2192
  computeLayoutStyles(e, t) {
2136
2193
  const i = {};
2137
2194
  if (e.frame) {
2138
- const n = e.frame, r = oe(n);
2195
+ const n = e.frame, r = ue(n);
2139
2196
  if (Object.assign(i, r.cssProps), n.width !== void 0) {
2140
2197
  const a = L(n.width);
2141
2198
  a !== void 0 && !A(n.width) && !r.expandWidth && (i.width = a);
@@ -2208,11 +2265,11 @@ class tr extends w {
2208
2265
  return i;
2209
2266
  }
2210
2267
  }
2211
- class ir extends w {
2268
+ class hr extends w {
2212
2269
  constructor() {
2213
2270
  super(...arguments);
2214
- f(this, "type", "appearance");
2215
- f(this, "priority", P.APPEARANCE);
2271
+ d(this, "type", "appearance");
2272
+ d(this, "priority", V.APPEARANCE);
2216
2273
  }
2217
2274
  apply(e, t) {
2218
2275
  if (process.env.NODE_ENV === "development" && console.log("[AppearanceModifier.apply] Called with properties:", Object.keys(this.properties)), !e.element || !t.element) {
@@ -2239,7 +2296,7 @@ class ir extends w {
2239
2296
  * Apply Asset-based styles with theme reactivity
2240
2297
  */
2241
2298
  applyAssetBasedStyles(e, t) {
2242
- const i = N();
2299
+ const i = j();
2243
2300
  t.foregroundColor && this.isAsset(t.foregroundColor) && b(() => {
2244
2301
  i();
2245
2302
  const n = t.foregroundColor.resolve();
@@ -2334,8 +2391,8 @@ class ir extends w {
2334
2391
  class C extends w {
2335
2392
  constructor() {
2336
2393
  super(...arguments);
2337
- f(this, "type", "interaction");
2338
- f(this, "priority", P.INTERACTION);
2394
+ d(this, "type", "interaction");
2395
+ d(this, "priority", V.INTERACTION);
2339
2396
  }
2340
2397
  apply(e, t) {
2341
2398
  if (!t.element) return;
@@ -2360,8 +2417,8 @@ class C extends w {
2360
2417
  ), t.element.addEventListener(
2361
2418
  "touchend",
2362
2419
  (a) => {
2363
- const c = a.changedTouches[0], u = c.clientX - n, d = c.clientY - r;
2364
- Math.abs(u) > Math.abs(d) && Math.abs(u) > 50 && (u < 0 && i.onSwipeLeft ? i.onSwipeLeft() : u > 0 && i.onSwipeRight && i.onSwipeRight());
2420
+ const c = a.changedTouches[0], u = c.clientX - n, f = c.clientY - r;
2421
+ Math.abs(u) > Math.abs(f) && Math.abs(u) > 50 && (u < 0 && i.onSwipeLeft ? i.onSwipeLeft() : u > 0 && i.onSwipeRight && i.onSwipeRight());
2365
2422
  },
2366
2423
  { passive: !0 }
2367
2424
  );
@@ -2373,7 +2430,7 @@ class C extends w {
2373
2430
  }), i.onInput && t.element.addEventListener("input", i.onInput), i.onChange && t.element.addEventListener("change", (n) => {
2374
2431
  const r = n.target, a = r.value || r.textContent || "";
2375
2432
  i.onChange(a, n);
2376
- }), i.onCopy && t.element.addEventListener("copy", i.onCopy), i.onCut && t.element.addEventListener("cut", i.onCut), i.onPaste && t.element.addEventListener("paste", i.onPaste), i.onSelect && t.element.addEventListener("select", i.onSelect), i.disabled !== void 0 && t.element instanceof HTMLElement) {
2433
+ }), i.onCopy && t.element.addEventListener("copy", i.onCopy), i.onCut && t.element.addEventListener("cut", i.onCut), i.onPaste && t.element.addEventListener("paste", i.onPaste), i.onSelect && t.element.addEventListener("select", i.onSelect), i.disabled !== void 0 && $(t.element)) {
2377
2434
  const n = t.element, r = (a) => {
2378
2435
  a ? (n.setAttribute("disabled", "true"), n.style.pointerEvents = "none", n.style.opacity = "0.6") : (n.removeAttribute("disabled"), n.style.pointerEvents = "", n.style.opacity = "");
2379
2436
  };
@@ -2381,7 +2438,7 @@ class C extends w {
2381
2438
  r(!!i.disabled());
2382
2439
  }) : r(!!i.disabled);
2383
2440
  }
2384
- i.draggable !== void 0 && t.element instanceof HTMLElement && (t.element.draggable = i.draggable), i.accessibilityLabel && t.element.setAttribute("aria-label", i.accessibilityLabel), i.accessibilityHint && t.element.setAttribute("aria-describedby", i.accessibilityHint), i.onLongPressGesture && this.setupLongPressGesture(t.element, i.onLongPressGesture), i.keyboardShortcut && this.setupKeyboardShortcut(t.element, i.keyboardShortcut), i.focused !== void 0 && this.setupFocusManagement(t.element, i.focused), i.focusable && this.setupFocusable(t.element, i.focusable), i.onContinuousHover && this.setupContinuousHover(t.element, i.onContinuousHover), i.allowsHitTesting !== void 0 && this.setupHitTesting(t.element, i.allowsHitTesting);
2441
+ i.draggable !== void 0 && $(t.element) && (t.element.draggable = i.draggable), i.accessibilityLabel && t.element.setAttribute("aria-label", i.accessibilityLabel), i.accessibilityHint && t.element.setAttribute("aria-describedby", i.accessibilityHint), i.onLongPressGesture && this.setupLongPressGesture(t.element, i.onLongPressGesture), i.keyboardShortcut && this.setupKeyboardShortcut(t.element, i.keyboardShortcut), i.focused !== void 0 && this.setupFocusManagement(t.element, i.focused), i.focusable && this.setupFocusable(t.element, i.focusable), i.onContinuousHover && this.setupContinuousHover(t.element, i.onContinuousHover), i.allowsHitTesting !== void 0 && this.setupHitTesting(t.element, i.allowsHitTesting);
2385
2442
  }
2386
2443
  // Phase 4 Advanced Gesture Methods
2387
2444
  /**
@@ -2394,10 +2451,10 @@ class C extends w {
2394
2451
  r && (clearTimeout(r), r = void 0), l && t.onPressingChanged && t.onPressingChanged(!1), l = !1, a = null;
2395
2452
  }, u = (v) => {
2396
2453
  const S = v;
2397
- a = { x: S.clientX, y: S.clientY }, l = !0, t.onPressingChanged && t.onPressingChanged(!0), r = window.setTimeout(() => {
2454
+ a = { x: S.clientX, y: S.clientY }, l = !0, t.onPressingChanged && t.onPressingChanged(!0), r = (Jt() ? window.setTimeout : setTimeout)(() => {
2398
2455
  l && a && (t.perform(), c());
2399
2456
  }, i);
2400
- }, d = (v) => {
2457
+ }, f = (v) => {
2401
2458
  const S = v;
2402
2459
  if (!a || !l) return;
2403
2460
  Math.sqrt(
@@ -2408,7 +2465,7 @@ class C extends w {
2408
2465
  }, y = () => {
2409
2466
  c();
2410
2467
  };
2411
- e.addEventListener("pointerdown", u), e.addEventListener("pointermove", d), e.addEventListener("pointerup", h), e.addEventListener(
2468
+ e.addEventListener("pointerdown", u), e.addEventListener("pointermove", f), e.addEventListener("pointerup", h), e.addEventListener(
2412
2469
  "pointercancel",
2413
2470
  y
2414
2471
  ), e._longPressCleanup = c;
@@ -2430,19 +2487,19 @@ class C extends w {
2430
2487
  shift: r.shiftKey,
2431
2488
  alt: r.altKey
2432
2489
  }, c = r.key.toLowerCase() === t.key.toLowerCase(), u = Object.entries(a).every(
2433
- ([d, h]) => h === l[d]
2490
+ ([f, h]) => h === l[f]
2434
2491
  );
2435
2492
  c && u && (r.preventDefault(), t.action());
2436
2493
  };
2437
- document.addEventListener("keydown", n), e._keyboardShortcutCleanup = () => {
2494
+ re() && (document.addEventListener("keydown", n), e._keyboardShortcutCleanup = () => {
2438
2495
  document.removeEventListener("keydown", n);
2439
- };
2496
+ });
2440
2497
  }
2441
2498
  /**
2442
2499
  * Setup focus management with reactive binding
2443
2500
  */
2444
2501
  setupFocusManagement(e, t) {
2445
- if (!(e instanceof HTMLElement)) return;
2502
+ if (!$(e)) return;
2446
2503
  const i = e;
2447
2504
  i.hasAttribute("tabindex") || i.setAttribute("tabindex", "0"), p(t) || m(t) ? b(() => {
2448
2505
  t() ? i.focus() : i.blur();
@@ -2452,7 +2509,7 @@ class C extends w {
2452
2509
  * Setup focusable behavior
2453
2510
  */
2454
2511
  setupFocusable(e, t) {
2455
- if (!(e instanceof HTMLElement)) return;
2512
+ if (!$(e)) return;
2456
2513
  const i = e;
2457
2514
  t.isFocusable === !1 ? i.setAttribute("tabindex", "-1") : i.hasAttribute("tabindex") || i.setAttribute("tabindex", "0"), t.interactions?.includes("activate") && i.addEventListener("keydown", (n) => {
2458
2515
  (n.key === "Enter" || n.key === " ") && (n.preventDefault(), i.click());
@@ -2466,8 +2523,8 @@ class C extends w {
2466
2523
  const l = a;
2467
2524
  let c, u;
2468
2525
  if (i === "local") {
2469
- const d = e.getBoundingClientRect();
2470
- c = l.clientX - d.left, u = l.clientY - d.top;
2526
+ const f = e.getBoundingClientRect();
2527
+ c = l.clientX - f.left, u = l.clientY - f.top;
2471
2528
  } else
2472
2529
  c = l.clientX, u = l.clientY;
2473
2530
  t.perform({ x: c, y: u });
@@ -2485,38 +2542,38 @@ class C extends w {
2485
2542
  * Setup hit testing control
2486
2543
  */
2487
2544
  setupHitTesting(e, t) {
2488
- e instanceof HTMLElement && (e.style.pointerEvents = t ? "" : "none");
2545
+ $(e) && (e.style.pointerEvents = t ? "" : "none");
2489
2546
  }
2490
2547
  }
2491
- class nr extends w {
2548
+ class yr extends w {
2492
2549
  constructor() {
2493
2550
  super(...arguments);
2494
- f(this, "type", "animation");
2495
- f(this, "priority", P.ANIMATION);
2551
+ d(this, "type", "animation");
2552
+ d(this, "priority", V.ANIMATION);
2496
2553
  }
2497
2554
  apply(e, t) {
2498
2555
  if (!t.element) return;
2499
2556
  const i = this.properties;
2500
2557
  if (i.transition) {
2501
2558
  const n = i.transition, r = n.property || "all", a = n.duration || 300, l = n.easing || "ease", c = n.delay || 0;
2502
- t.element instanceof HTMLElement && (t.element.style.transition = `${r} ${a}ms ${l} ${c}ms`);
2559
+ F(t.element) && (t.element.style.transition = `${r} ${a}ms ${l} ${c}ms`);
2503
2560
  }
2504
- if (i.animation && t.element instanceof HTMLElement) {
2561
+ if (i.animation && F(t.element)) {
2505
2562
  const n = i.animation;
2506
- if (n.keyframes) {
2563
+ if (n.keyframes && typeof document < "u") {
2507
2564
  const r = `tachui-animation-${t.componentId}-${Date.now()}`, a = this.createKeyframeRule(
2508
2565
  r,
2509
2566
  n.keyframes
2510
2567
  );
2511
2568
  this.addKeyframesToStylesheet(a);
2512
- const l = n.duration || 1e3, c = n.easing || "ease", u = n.iterations || 1, d = n.direction || "normal";
2513
- t.element.style.animation = `${r} ${l}ms ${c} ${u} ${d}`;
2569
+ const l = n.duration || 1e3, c = n.easing || "ease", u = n.iterations || 1, f = n.direction || "normal";
2570
+ t.element.style.animation = `${r} ${l}ms ${c} ${u} ${f}`;
2514
2571
  }
2515
2572
  }
2516
- if (i.transform && t.element instanceof HTMLElement && (p(i.transform) || m(i.transform) ? b(() => {
2573
+ if (i.transform && F(t.element) && (p(i.transform) || m(i.transform) ? b(() => {
2517
2574
  const n = i.transform();
2518
- t.element instanceof HTMLElement && (t.element.style.transform = n);
2519
- }) : t.element.style.transform = i.transform), i.rotationEffect && t.element instanceof HTMLElement) {
2575
+ F(t.element) && (t.element.style.transform = n);
2576
+ }) : t.element.style.transform = i.transform), i.rotationEffect && F(t.element)) {
2520
2577
  const { angle: n, anchor: r } = i.rotationEffect, l = {
2521
2578
  center: "50% 50%",
2522
2579
  top: "50% 0%",
@@ -2530,24 +2587,24 @@ class nr extends w {
2530
2587
  }[r || "center"] || "50% 50%", c = `rotate(${n}deg)`;
2531
2588
  if (p(n) || m(n))
2532
2589
  b(() => {
2533
- const d = `rotate(${typeof n == "function" ? n() : n}deg)`;
2534
- if (t.element instanceof HTMLElement) {
2590
+ const f = `rotate(${typeof n == "function" ? n() : n}deg)`;
2591
+ if (F(t.element)) {
2535
2592
  t.element.style.transformOrigin = l;
2536
- const y = (t.element.style.transform || "").split(" ").filter((S) => S && !S.startsWith("rotate(")).join(" "), v = y ? `${y} ${d}` : d;
2593
+ const y = (t.element.style.transform || "").split(" ").filter((S) => S && !S.startsWith("rotate(")).join(" "), v = y ? `${y} ${f}` : f;
2537
2594
  t.element.style.transform = v;
2538
2595
  }
2539
2596
  });
2540
- else if (t.element instanceof HTMLElement) {
2597
+ else if (F(t.element)) {
2541
2598
  t.element.style.transformOrigin = l;
2542
- const d = (t.element.style.transform || "").split(" ").filter((y) => y && !y.startsWith("rotate(")).join(" "), h = d ? `${d} ${c}` : c;
2599
+ const f = (t.element.style.transform || "").split(" ").filter((y) => y && !y.startsWith("rotate(")).join(" "), h = f ? `${f} ${c}` : c;
2543
2600
  t.element.style.transform = h;
2544
2601
  }
2545
2602
  }
2546
- i.overlay && t.element instanceof HTMLElement && this.applyOverlay(t.element, i.overlay, t);
2603
+ i.overlay && $(t.element) && this.applyOverlay(t.element, i.overlay, t);
2547
2604
  }
2548
2605
  applyOverlay(e, t, i) {
2549
2606
  const { content: n, alignment: r = "center" } = t;
2550
- (e.style.position === "" || e.style.position === "static") && (e.style.position = "relative");
2607
+ if ((e.style.position === "" || e.style.position === "static") && (e.style.position = "relative"), !re()) return;
2551
2608
  const a = document.createElement("div");
2552
2609
  a.style.position = "absolute", a.style.pointerEvents = "none";
2553
2610
  const l = this.getOverlayAlignment(r);
@@ -2560,7 +2617,7 @@ class nr extends w {
2560
2617
  } else if (n && typeof n.render == "function") {
2561
2618
  const c = n.render();
2562
2619
  c.element && a.appendChild(c.element);
2563
- } else n instanceof HTMLElement && a.appendChild(n);
2620
+ } else $(n) && a.appendChild(n);
2564
2621
  e.appendChild(a);
2565
2622
  }
2566
2623
  getOverlayAlignment(e) {
@@ -2626,20 +2683,21 @@ class nr extends w {
2626
2683
  return i += "}", i;
2627
2684
  }
2628
2685
  addKeyframesToStylesheet(e) {
2686
+ if (!re()) return;
2629
2687
  let t = document.querySelector(
2630
2688
  "#tachui-animations"
2631
2689
  );
2632
2690
  t || (t = document.createElement("style"), t.id = "tachui-animations", document.head.appendChild(t)), t.appendChild(document.createTextNode(e));
2633
2691
  }
2634
2692
  }
2635
- class or extends w {
2693
+ class gr extends w {
2636
2694
  constructor() {
2637
2695
  super(...arguments);
2638
- f(this, "type", "lifecycle");
2639
- f(this, "priority", P.CUSTOM);
2640
- f(this, "activeAbortController");
2696
+ d(this, "type", "lifecycle");
2697
+ d(this, "priority", V.CUSTOM);
2698
+ d(this, "activeAbortController");
2641
2699
  // Cleanup helpers
2642
- f(this, "cleanupFunctions", []);
2700
+ d(this, "cleanupFunctions", []);
2643
2701
  }
2644
2702
  apply(e, t) {
2645
2703
  if (!t.element) return;
@@ -2684,7 +2742,9 @@ class or extends w {
2684
2742
  setupRefreshable(e, t) {
2685
2743
  if (!t) return;
2686
2744
  let i = !1, n = 0, r = 0;
2687
- const a = 70, l = document.createElement("div");
2745
+ const a = 70;
2746
+ if (!re()) return;
2747
+ const l = document.createElement("div");
2688
2748
  if (l.style.cssText = `
2689
2749
  position: absolute;
2690
2750
  top: -50px;
@@ -2709,10 +2769,10 @@ class or extends w {
2709
2769
  `, document.head.appendChild(y);
2710
2770
  }
2711
2771
  const c = e.parentElement || e;
2712
- c instanceof HTMLElement && (c.style.position = "relative", c.appendChild(l));
2772
+ $(c) && (c.style.position = "relative", c.appendChild(l));
2713
2773
  const u = (y) => {
2714
2774
  i || (r = y.touches[0].clientY);
2715
- }, d = (y) => {
2775
+ }, f = (y) => {
2716
2776
  if (i) return;
2717
2777
  const v = y.touches[0].clientY;
2718
2778
  if (n = Math.max(0, v - r), n > 20) {
@@ -2736,7 +2796,7 @@ class or extends w {
2736
2796
  };
2737
2797
  e.addEventListener("touchstart", u, {
2738
2798
  passive: !0
2739
- }), e.addEventListener("touchmove", d, {
2799
+ }), e.addEventListener("touchmove", f, {
2740
2800
  passive: !1
2741
2801
  }), e.addEventListener("touchend", h, {
2742
2802
  passive: !0
@@ -2744,7 +2804,7 @@ class or extends w {
2744
2804
  e.removeEventListener(
2745
2805
  "touchstart",
2746
2806
  u
2747
- ), e.removeEventListener("touchmove", d), e.removeEventListener("touchend", h), l.parentElement && l.parentElement.removeChild(l);
2807
+ ), e.removeEventListener("touchmove", f), e.removeEventListener("touchend", h), l.parentElement && l.parentElement.removeChild(l);
2748
2808
  });
2749
2809
  }
2750
2810
  addCleanup(e) {
@@ -2754,11 +2814,11 @@ class or extends w {
2754
2814
  this.cleanupFunctions.forEach((e) => e()), this.cleanupFunctions = [];
2755
2815
  }
2756
2816
  }
2757
- class ve extends w {
2817
+ class Te extends w {
2758
2818
  constructor() {
2759
2819
  super(...arguments);
2760
- f(this, "type", "overlay");
2761
- f(this, "priority", 10);
2820
+ d(this, "type", "overlay");
2821
+ d(this, "priority", 10);
2762
2822
  }
2763
2823
  // Apply late so positioning is relative to final layout
2764
2824
  apply(e, t) {
@@ -2780,8 +2840,8 @@ class ve extends w {
2780
2840
  "center"
2781
2841
  ), r = this.resolveReactive(this.properties.side, void 0), a = this.resolveReactive(this.properties.offset, void 0), l = this.resolveReactive(this.properties.enabled, !0);
2782
2842
  this.clearPositionStyles(e);
2783
- const c = r ?? n, u = r !== void 0 ? c : n, d = this.getOverlayAlignment(u);
2784
- Object.assign(e.style, d), this.applyOffset(e, c, a), e.style.display = l ? "" : "none";
2843
+ const c = r ?? n, u = r !== void 0 ? c : n, f = this.getOverlayAlignment(u);
2844
+ Object.assign(e.style, f), this.applyOffset(e, c, a), e.style.display = l ? "" : "none";
2785
2845
  };
2786
2846
  if (this.isReactive(this.properties.alignment) || this.isReactive(this.properties.side) || this.isReactive(this.properties.offset) || this.isReactive(this.properties.enabled)) {
2787
2847
  b(() => {
@@ -2903,20 +2963,20 @@ class ve extends w {
2903
2963
  return t[e] || t.center;
2904
2964
  }
2905
2965
  }
2906
- function Nt(o, s = "center") {
2907
- return typeof s == "object" && s !== null && !p(s) && !m(s) ? new ve({
2966
+ function Qt(o, s = "center") {
2967
+ return typeof s == "object" && s !== null && !p(s) && !m(s) ? new Te({
2908
2968
  content: o,
2909
2969
  ...s
2910
- }) : new ve({
2970
+ }) : new Te({
2911
2971
  content: o,
2912
2972
  alignment: s
2913
2973
  });
2914
2974
  }
2915
- class Me extends g {
2975
+ class $e extends g {
2916
2976
  constructor() {
2917
2977
  super(...arguments);
2918
- f(this, "type", "background");
2919
- f(this, "priority", 95);
2978
+ d(this, "type", "background");
2979
+ d(this, "priority", 95);
2920
2980
  }
2921
2981
  apply(e, t) {
2922
2982
  if (!t.element) return;
@@ -2950,7 +3010,7 @@ class Me extends g {
2950
3010
  * This mirrors the core AppearanceModifier pattern
2951
3011
  */
2952
3012
  applyColorAssetWithThemeReactivity(e, t, i) {
2953
- const n = N();
3013
+ const n = j();
2954
3014
  b(() => {
2955
3015
  n();
2956
3016
  const r = i.resolve();
@@ -2963,7 +3023,7 @@ class Me extends g {
2963
3023
  resolveBackgroundValue(e) {
2964
3024
  if (e != null) {
2965
3025
  if (this.isGradientDefinition(e))
2966
- return He(e);
3026
+ return je(e);
2967
3027
  if (this.isAssetValue(e)) {
2968
3028
  const t = e.resolve();
2969
3029
  return typeof t == "string" ? t : String(t);
@@ -2983,24 +3043,24 @@ class Me extends g {
2983
3043
  disabled: t.disabled ? this.resolveBackgroundValue(
2984
3044
  t.disabled
2985
3045
  ) : void 0
2986
- }, r = (d) => {
2987
- if (!d) return;
2988
- const h = n[d];
3046
+ }, r = (f) => {
3047
+ if (!f) return;
3048
+ const h = n[f];
2989
3049
  h !== void 0 && this.applyStyleChange(e, i, h);
2990
3050
  }, a = () => this.isElementDisabled(e) && n.disabled ? "disabled" : n.focus && this.matchesSelector(e, ":focus") ? "focus" : "default", l = () => {
2991
- const d = t.animation;
2992
- if (!d) return;
2993
- const h = d.duration ?? 200, y = d.easing ?? "ease", v = d.delay ?? 0, _ = `${i === "backgroundColor" ? "background-color" : "background"} ${h}ms ${y} ${v}ms`;
2994
- e.style.transition = _;
2995
- const W = e.style.cssText || "";
2996
- W.includes("transition") || (e.style.cssText = `${W}${W ? ";" : ""}transition: ${_};`);
3051
+ const f = t.animation;
3052
+ if (!f) return;
3053
+ const h = f.duration ?? 200, y = f.easing ?? "ease", v = f.delay ?? 0, N = `${i === "backgroundColor" ? "background-color" : "background"} ${h}ms ${y} ${v}ms`;
3054
+ e.style.transition = N;
3055
+ const K = e.style.cssText || "";
3056
+ K.includes("transition") || (e.style.cssText = `${K}${K ? ";" : ""}transition: ${N};`);
2997
3057
  }, c = () => {
2998
- const d = a();
2999
- if (d === "focus" && this.matchesSelector(e, ":hover") && n.hover) {
3058
+ const f = a();
3059
+ if (f === "focus" && this.matchesSelector(e, ":hover") && n.hover) {
3000
3060
  r("hover");
3001
3061
  return;
3002
3062
  }
3003
- r(d);
3063
+ r(f);
3004
3064
  }, u = () => {
3005
3065
  if (this.isElementDisabled(e) && n.disabled) {
3006
3066
  r("disabled");
@@ -3044,16 +3104,16 @@ class Me extends g {
3044
3104
  return !!(e.hasAttribute && e.hasAttribute("disabled") || e.getAttribute && e.getAttribute("aria-disabled") === "true");
3045
3105
  }
3046
3106
  }
3047
- const zt = {
3107
+ const ei = {
3048
3108
  repeat: "no-repeat",
3049
3109
  size: "cover",
3050
3110
  position: "center"
3051
3111
  };
3052
- class Ft extends g {
3112
+ class ti extends g {
3053
3113
  constructor() {
3054
3114
  super(...arguments);
3055
- f(this, "type", "backgroundImage");
3056
- f(this, "priority", 94);
3115
+ d(this, "type", "backgroundImage");
3116
+ d(this, "priority", 94);
3057
3117
  }
3058
3118
  apply(e, t) {
3059
3119
  if (!t.element) return;
@@ -3075,7 +3135,7 @@ class Ft extends g {
3075
3135
  return e === "tile" ? "repeat" : e;
3076
3136
  }
3077
3137
  applyImageAssetWithThemeReactivity(e, t) {
3078
- const i = N();
3138
+ const i = j();
3079
3139
  b(() => {
3080
3140
  i();
3081
3141
  const r = t.resolve().replace(/["\\]/g, "\\$&");
@@ -3083,11 +3143,11 @@ class Ft extends g {
3083
3143
  });
3084
3144
  }
3085
3145
  }
3086
- class xe extends g {
3146
+ class Ve extends g {
3087
3147
  constructor() {
3088
3148
  super(...arguments);
3089
- f(this, "type", "backgroundClip");
3090
- f(this, "priority", 40);
3149
+ d(this, "type", "backgroundClip");
3150
+ d(this, "priority", 40);
3091
3151
  }
3092
3152
  apply(e, t) {
3093
3153
  if (!t.element) return;
@@ -3099,36 +3159,36 @@ class xe extends g {
3099
3159
  return e.backgroundImage && (t.backgroundImage = e.backgroundImage), e.backgroundClip && (t.backgroundClip = e.backgroundClip, t.webkitBackgroundClip = e.backgroundClip), e.color && (t.color = e.color, e.backgroundClip === "text" && (t.webkitTextFillColor = e.color)), t;
3100
3160
  }
3101
3161
  }
3102
- function Wt(o) {
3103
- return new Me({
3162
+ function ii(o) {
3163
+ return new $e({
3104
3164
  background: o,
3105
3165
  cssProperty: "backgroundColor"
3106
3166
  });
3107
3167
  }
3108
- function jt(o) {
3109
- return new Me({
3168
+ function ni(o) {
3169
+ return new $e({
3110
3170
  background: o,
3111
3171
  cssProperty: "background"
3112
3172
  });
3113
3173
  }
3114
- function Ut(o, s = {}) {
3115
- return new Ft({
3174
+ function oi(o, s = {}) {
3175
+ return new ti({
3116
3176
  source: o,
3117
3177
  options: {
3118
- ...zt,
3178
+ ...ei,
3119
3179
  ...s
3120
3180
  }
3121
3181
  });
3122
3182
  }
3123
- function rr(o, s = "text", e = "transparent") {
3124
- return new xe({
3183
+ function vr(o, s = "text", e = "transparent") {
3184
+ return new Ve({
3125
3185
  backgroundImage: o,
3126
3186
  backgroundClip: s,
3127
3187
  color: e
3128
3188
  });
3129
3189
  }
3130
- function G(o) {
3131
- return new xe({
3190
+ function Z(o) {
3191
+ return new Ve({
3132
3192
  backgroundImage: o,
3133
3193
  backgroundClip: "text",
3134
3194
  webkitBackgroundClip: "text",
@@ -3136,38 +3196,38 @@ function G(o) {
3136
3196
  webkitTextFillColor: "transparent"
3137
3197
  });
3138
3198
  }
3139
- function sr() {
3140
- return G("linear-gradient(45deg, #007AFF, #5856D6)");
3199
+ function br() {
3200
+ return Z("linear-gradient(45deg, #007AFF, #5856D6)");
3141
3201
  }
3142
- function ar() {
3143
- return G(
3202
+ function Sr() {
3203
+ return Z(
3144
3204
  "linear-gradient(90deg, #ff0000, #ff8000, #ffff00, #80ff00, #00ff80, #0080ff, #8000ff)"
3145
3205
  );
3146
3206
  }
3147
- function lr() {
3148
- return G("linear-gradient(45deg, #ff6b6b, #feca57, #ff9ff3)");
3207
+ function wr() {
3208
+ return Z("linear-gradient(45deg, #ff6b6b, #feca57, #ff9ff3)");
3149
3209
  }
3150
- function cr() {
3151
- return G("linear-gradient(45deg, #667eea, #764ba2)");
3210
+ function Cr() {
3211
+ return Z("linear-gradient(45deg, #667eea, #764ba2)");
3152
3212
  }
3153
- function fr() {
3154
- return G("linear-gradient(45deg, #f7971e, #ffd200)");
3213
+ function Er() {
3214
+ return Z("linear-gradient(45deg, #f7971e, #ffd200)");
3155
3215
  }
3156
- class Gt extends g {
3216
+ class ri extends g {
3157
3217
  constructor() {
3158
3218
  super(...arguments);
3159
- f(this, "type", "blendMode");
3160
- f(this, "priority", 92);
3219
+ d(this, "type", "blendMode");
3220
+ d(this, "priority", 92);
3161
3221
  }
3162
3222
  apply(e, t) {
3163
3223
  t.element && this.applyStyleChange(t.element, "mixBlendMode", this.properties.mode);
3164
3224
  }
3165
3225
  }
3166
- class Kt extends g {
3226
+ class si extends g {
3167
3227
  constructor() {
3168
3228
  super(...arguments);
3169
- f(this, "type", "backgroundBlendMode");
3170
- f(this, "priority", 93);
3229
+ d(this, "type", "backgroundBlendMode");
3230
+ d(this, "priority", 93);
3171
3231
  }
3172
3232
  apply(e, t) {
3173
3233
  t.element && this.applyStyleChange(
@@ -3177,30 +3237,30 @@ class Kt extends g {
3177
3237
  );
3178
3238
  }
3179
3239
  }
3180
- function Yt(o) {
3181
- return new Gt({ mode: o });
3240
+ function ai(o) {
3241
+ return new ri({ mode: o });
3182
3242
  }
3183
- function Xt(o) {
3184
- return new Kt({ mode: o });
3243
+ function li(o) {
3244
+ return new si({ mode: o });
3185
3245
  }
3186
- class Zt extends g {
3246
+ class ci extends g {
3187
3247
  constructor() {
3188
3248
  super(...arguments);
3189
- f(this, "type", "compositingGroup");
3190
- f(this, "priority", 91);
3249
+ d(this, "type", "compositingGroup");
3250
+ d(this, "priority", 91);
3191
3251
  }
3192
3252
  apply(e, t) {
3193
3253
  t.element && this.applyStyleChange(t.element, "isolation", "isolate");
3194
3254
  }
3195
3255
  }
3196
- function qt() {
3197
- return new Zt({});
3256
+ function di() {
3257
+ return new ci({});
3198
3258
  }
3199
- class D extends g {
3259
+ class _ extends g {
3200
3260
  constructor() {
3201
3261
  super(...arguments);
3202
- f(this, "type", "border");
3203
- f(this, "priority", 40);
3262
+ d(this, "type", "border");
3263
+ d(this, "priority", 40);
3204
3264
  }
3205
3265
  apply(e, t) {
3206
3266
  if (!t.element) return;
@@ -3211,7 +3271,7 @@ class D extends g {
3211
3271
  const i = this.computeAssetColorStyles(t);
3212
3272
  if (Object.keys(i).length === 0)
3213
3273
  return;
3214
- const n = N();
3274
+ const n = j();
3215
3275
  b(() => {
3216
3276
  n(), Object.entries(i).forEach(([r, a]) => {
3217
3277
  this.applyStyleChange(e, r, a.resolve());
@@ -3244,11 +3304,11 @@ class D extends g {
3244
3304
  return typeof e == "number" ? `${e}px` : e;
3245
3305
  }
3246
3306
  }
3247
- class Jt extends g {
3307
+ class fi extends g {
3248
3308
  constructor() {
3249
3309
  super(...arguments);
3250
- f(this, "type", "cornerRadius");
3251
- f(this, "priority", 35);
3310
+ d(this, "type", "cornerRadius");
3311
+ d(this, "priority", 35);
3252
3312
  }
3253
3313
  apply(e, t) {
3254
3314
  if (!t.element) return;
@@ -3289,45 +3349,45 @@ class Jt extends g {
3289
3349
  return typeof e == "number" ? `${e}px` : e;
3290
3350
  }
3291
3351
  }
3292
- function Qt(o, s, e) {
3293
- return typeof o == "number" || typeof o == "string" ? new D({
3352
+ function ui(o, s, e) {
3353
+ return typeof o == "number" || typeof o == "string" ? new _({
3294
3354
  width: o,
3295
3355
  color: s || "currentColor",
3296
3356
  style: e || "solid"
3297
- }) : new D(o);
3357
+ }) : new _(o);
3298
3358
  }
3299
- function ei(o, s, e) {
3300
- return new D({ top: { width: o, color: s, style: e } });
3359
+ function pi(o, s, e) {
3360
+ return new _({ top: { width: o, color: s, style: e } });
3301
3361
  }
3302
- function ti(o, s, e) {
3303
- return new D({ right: { width: o, color: s, style: e } });
3362
+ function mi(o, s, e) {
3363
+ return new _({ right: { width: o, color: s, style: e } });
3304
3364
  }
3305
- function ii(o, s, e) {
3306
- return new D({ bottom: { width: o, color: s, style: e } });
3365
+ function hi(o, s, e) {
3366
+ return new _({ bottom: { width: o, color: s, style: e } });
3307
3367
  }
3308
- function ni(o, s, e) {
3309
- return new D({ left: { width: o, color: s, style: e } });
3368
+ function yi(o, s, e) {
3369
+ return new _({ left: { width: o, color: s, style: e } });
3310
3370
  }
3311
- function dr(o, s, e) {
3312
- return new D({ leading: { width: o, color: s, style: e } });
3371
+ function xr(o, s, e) {
3372
+ return new _({ leading: { width: o, color: s, style: e } });
3313
3373
  }
3314
- function ur(o, s, e) {
3315
- return new D({ trailing: { width: o, color: s, style: e } });
3374
+ function Mr(o, s, e) {
3375
+ return new _({ trailing: { width: o, color: s, style: e } });
3316
3376
  }
3317
- function pr(o, s, e) {
3318
- return new D({ horizontal: { width: o, color: s, style: e } });
3377
+ function Tr(o, s, e) {
3378
+ return new _({ horizontal: { width: o, color: s, style: e } });
3319
3379
  }
3320
- function mr(o, s, e) {
3321
- return new D({ vertical: { width: o, color: s, style: e } });
3380
+ function Lr(o, s, e) {
3381
+ return new _({ vertical: { width: o, color: s, style: e } });
3322
3382
  }
3323
- function hr(o) {
3324
- return new Jt({ radius: o });
3383
+ function Ar(o) {
3384
+ return new fi({ radius: o });
3325
3385
  }
3326
- class Te extends g {
3386
+ class Re extends g {
3327
3387
  constructor() {
3328
3388
  super(...arguments);
3329
- f(this, "type", "foreground");
3330
- f(this, "priority", 90);
3389
+ d(this, "type", "foreground");
3390
+ d(this, "priority", 90);
3331
3391
  }
3332
3392
  apply(e, t) {
3333
3393
  if (t.element)
@@ -3351,7 +3411,7 @@ class Te extends g {
3351
3411
  * This mirrors the core AppearanceModifier pattern
3352
3412
  */
3353
3413
  applyColorAssetWithThemeReactivity(e, t, i) {
3354
- const n = N();
3414
+ const n = j();
3355
3415
  b(() => {
3356
3416
  n();
3357
3417
  const r = i.resolve();
@@ -3359,17 +3419,17 @@ class Te extends g {
3359
3419
  });
3360
3420
  }
3361
3421
  }
3362
- function oi(o) {
3363
- return new Te({ color: o });
3422
+ function gi(o) {
3423
+ return new Re({ color: o });
3364
3424
  }
3365
- function yr(o) {
3366
- return new Te({ color: o });
3425
+ function kr(o) {
3426
+ return new Re({ color: o });
3367
3427
  }
3368
- class ri extends g {
3428
+ class vi extends g {
3369
3429
  constructor() {
3370
3430
  super(...arguments);
3371
- f(this, "type", "clip-shape");
3372
- f(this, "priority", 90);
3431
+ d(this, "type", "clip-shape");
3432
+ d(this, "priority", 90);
3373
3433
  }
3374
3434
  apply(e, t) {
3375
3435
  if (!t.element) return;
@@ -3397,14 +3457,14 @@ class ri extends g {
3397
3457
  }
3398
3458
  }
3399
3459
  }
3400
- function si(o, s) {
3401
- return new ri({ shape: o, parameters: s || {} });
3460
+ function bi(o, s) {
3461
+ return new vi({ shape: o, parameters: s || {} });
3402
3462
  }
3403
- class ai extends g {
3463
+ class Si extends g {
3404
3464
  constructor() {
3405
3465
  super(...arguments);
3406
- f(this, "type", "clipped");
3407
- f(this, "priority", 89);
3466
+ d(this, "type", "clipped");
3467
+ d(this, "priority", 89);
3408
3468
  }
3409
3469
  apply(e, t) {
3410
3470
  if (!t.element) return;
@@ -3412,38 +3472,38 @@ class ai extends g {
3412
3472
  i.style && (this.properties.clipped ? i.style.overflow = "hidden" : i.style.overflow = "");
3413
3473
  }
3414
3474
  }
3415
- function li(o = !0) {
3416
- return new ai({ clipped: o });
3475
+ function wi(o = !0) {
3476
+ return new Si({ clipped: o });
3417
3477
  }
3418
- function ci(o) {
3419
- return new H({ opacity: o });
3478
+ function Ci(o) {
3479
+ return new B({ opacity: o });
3420
3480
  }
3421
- function fi(o) {
3422
- return new H({ cornerRadius: o });
3481
+ function Ei(o) {
3482
+ return new B({ cornerRadius: o });
3423
3483
  }
3424
- function di(o) {
3425
- return new H({ font: { family: o } });
3484
+ function xi(o) {
3485
+ return new B({ font: { family: o } });
3426
3486
  }
3427
- function ui(o) {
3428
- return new H({ font: { size: o } });
3487
+ function Mi(o) {
3488
+ return new B({ font: { size: o } });
3429
3489
  }
3430
- function pi(o) {
3431
- return new H({ font: { weight: o } });
3490
+ function Ti(o) {
3491
+ return new B({ font: { weight: o } });
3432
3492
  }
3433
- function mi(o) {
3434
- return new H({ font: { style: o } });
3493
+ function Li(o) {
3494
+ return new B({ font: { style: o } });
3435
3495
  }
3436
- function hi(o) {
3437
- return new H({ font: o });
3496
+ function Ai(o) {
3497
+ return new B({ font: o });
3438
3498
  }
3439
- const yi = "typography", be = Symbol.for("tachui.typography.instanceId");
3440
- let Se = 0;
3441
- function gi(o) {
3442
- const s = o[be];
3499
+ const ki = "typography", Le = Symbol.for("tachui.typography.instanceId");
3500
+ let Ae = 0;
3501
+ function Ii(o) {
3502
+ const s = o[Le];
3443
3503
  if (typeof s == "number") return s;
3444
- Se += 1;
3445
- const e = Se;
3446
- return Object.defineProperty(o, be, {
3504
+ Ae += 1;
3505
+ const e = Ae;
3506
+ return Object.defineProperty(o, Le, {
3447
3507
  value: e,
3448
3508
  enumerable: !1,
3449
3509
  configurable: !1,
@@ -3453,8 +3513,8 @@ function gi(o) {
3453
3513
  class k extends g {
3454
3514
  constructor() {
3455
3515
  super(...arguments);
3456
- f(this, "type", "typography");
3457
- f(this, "priority", 30);
3516
+ d(this, "type", "typography");
3517
+ d(this, "priority", 30);
3458
3518
  }
3459
3519
  apply(e, t) {
3460
3520
  if (!t.element) return;
@@ -3481,16 +3541,16 @@ class k extends g {
3481
3541
  }
3482
3542
  const c = t.replace(
3483
3543
  /-([a-z])/g,
3484
- (u, d) => d.toUpperCase()
3544
+ (u, f) => f.toUpperCase()
3485
3545
  );
3486
3546
  n[c] = l;
3487
3547
  };
3488
3548
  if (p(i) || m(i)) {
3489
- const a = i, l = gi(this);
3490
- we({
3549
+ const a = i, l = Ii(this);
3550
+ ke({
3491
3551
  element: e,
3492
3552
  accessor: a,
3493
- updaterId: `${yi}:${l}:${t}`,
3553
+ updaterId: `${ki}:${l}:${t}`,
3494
3554
  updater: (c) => {
3495
3555
  r(c);
3496
3556
  }
@@ -3516,57 +3576,57 @@ class k extends g {
3516
3576
  return e === "leading" ? "start" : e === "trailing" ? "end" : e;
3517
3577
  }
3518
3578
  }
3519
- function vi(o) {
3579
+ function Pi(o) {
3520
3580
  return new k(o);
3521
3581
  }
3522
- function bi(o) {
3582
+ function $i(o) {
3523
3583
  return new k({ align: o });
3524
3584
  }
3525
- function Le(o) {
3585
+ function De(o) {
3526
3586
  return new k({ transform: o });
3527
3587
  }
3528
- function Si(o) {
3588
+ function Vi(o) {
3529
3589
  return new k({ decoration: o });
3530
3590
  }
3531
- function gr(o) {
3591
+ function Ir(o) {
3532
3592
  return new k({ size: o });
3533
3593
  }
3534
- function vr(o) {
3594
+ function Pr(o) {
3535
3595
  return new k({ weight: o });
3536
3596
  }
3537
- function wi(o) {
3597
+ function Ri(o) {
3538
3598
  return new k({ lineHeight: o });
3539
3599
  }
3540
- function Ci(o) {
3600
+ function Di(o) {
3541
3601
  return new k({ letterSpacing: o });
3542
3602
  }
3543
- function br(o) {
3603
+ function $r(o) {
3544
3604
  return new k({ wordSpacing: o });
3545
3605
  }
3546
- function Ei(o) {
3606
+ function Oi(o) {
3547
3607
  return new k({ textOverflow: o });
3548
3608
  }
3549
- function Mi(o) {
3609
+ function _i(o) {
3550
3610
  return new k({ whiteSpace: o });
3551
3611
  }
3552
- function xi(o) {
3612
+ function Bi(o) {
3553
3613
  return new k({ overflow: o });
3554
3614
  }
3555
- function Ti(o) {
3556
- return Le(o);
3615
+ function Hi(o) {
3616
+ return De(o);
3557
3617
  }
3558
- function Sr(o) {
3618
+ function Vr(o) {
3559
3619
  return new k({ family: o });
3560
3620
  }
3561
- function Li(o) {
3562
- return typeof o == "string" ? Ai(o) : new k({
3621
+ function Ni(o) {
3622
+ return typeof o == "string" ? zi(o) : new k({
3563
3623
  family: o.family,
3564
3624
  size: o.size,
3565
3625
  weight: o.weight,
3566
3626
  style: o.style
3567
3627
  });
3568
3628
  }
3569
- function Ai(o) {
3629
+ function zi(o) {
3570
3630
  const s = {
3571
3631
  ".largeTitle": { size: 34, weight: 400 },
3572
3632
  ".title": { size: 28, weight: 400 },
@@ -3582,7 +3642,7 @@ function Ai(o) {
3582
3642
  }, e = s[o];
3583
3643
  return e ? new k(e) : new k(s[".body"]);
3584
3644
  }
3585
- function wr(o) {
3645
+ function Rr(o) {
3586
3646
  let s;
3587
3647
  switch (o.design) {
3588
3648
  case "serif":
@@ -3603,7 +3663,7 @@ function wr(o) {
3603
3663
  weight: o.weight
3604
3664
  });
3605
3665
  }
3606
- function Cr(o, s) {
3666
+ function Dr(o, s) {
3607
3667
  return new k({
3608
3668
  family: o,
3609
3669
  size: s?.size,
@@ -3611,11 +3671,11 @@ function Cr(o, s) {
3611
3671
  style: s?.style
3612
3672
  });
3613
3673
  }
3614
- class ki extends g {
3674
+ class Fi extends g {
3615
3675
  constructor() {
3616
3676
  super(...arguments);
3617
- f(this, "type", "lineClamp");
3618
- f(this, "priority", P.APPEARANCE + 15);
3677
+ d(this, "type", "lineClamp");
3678
+ d(this, "priority", V.APPEARANCE + 15);
3619
3679
  }
3620
3680
  apply(e, t) {
3621
3681
  if (!t.element) return;
@@ -3640,14 +3700,14 @@ class ki extends g {
3640
3700
  );
3641
3701
  }
3642
3702
  }
3643
- function Ii(o) {
3644
- return new ki({ lines: o });
3703
+ function Wi(o) {
3704
+ return new Fi({ lines: o });
3645
3705
  }
3646
- class Pi extends g {
3706
+ class ji extends g {
3647
3707
  constructor() {
3648
3708
  super(...arguments);
3649
- f(this, "type", "wordBreak");
3650
- f(this, "priority", P.APPEARANCE + 8);
3709
+ d(this, "type", "wordBreak");
3710
+ d(this, "priority", V.APPEARANCE + 8);
3651
3711
  }
3652
3712
  apply(e, t) {
3653
3713
  if (!t.element) return;
@@ -3668,14 +3728,14 @@ class Pi extends g {
3668
3728
  );
3669
3729
  }
3670
3730
  }
3671
- function $i(o) {
3672
- return new Pi({ wordBreak: o });
3731
+ function Ui(o) {
3732
+ return new ji({ wordBreak: o });
3673
3733
  }
3674
- class Vi extends g {
3734
+ class Gi extends g {
3675
3735
  constructor() {
3676
3736
  super(...arguments);
3677
- f(this, "type", "overflowWrap");
3678
- f(this, "priority", P.APPEARANCE + 9);
3737
+ d(this, "type", "overflowWrap");
3738
+ d(this, "priority", V.APPEARANCE + 9);
3679
3739
  }
3680
3740
  apply(e, t) {
3681
3741
  if (!t.element) return;
@@ -3693,14 +3753,14 @@ class Vi extends g {
3693
3753
  );
3694
3754
  }
3695
3755
  }
3696
- function Ri(o) {
3697
- return new Vi({ overflowWrap: o });
3756
+ function Ki(o) {
3757
+ return new Gi({ overflowWrap: o });
3698
3758
  }
3699
- class Di extends g {
3759
+ class Yi extends g {
3700
3760
  constructor() {
3701
3761
  super(...arguments);
3702
- f(this, "type", "hyphens");
3703
- f(this, "priority", P.APPEARANCE + 10);
3762
+ d(this, "type", "hyphens");
3763
+ d(this, "priority", V.APPEARANCE + 10);
3704
3764
  }
3705
3765
  apply(e, t) {
3706
3766
  if (!t.element) return;
@@ -3721,17 +3781,17 @@ class Di extends g {
3721
3781
  );
3722
3782
  }
3723
3783
  }
3724
- function Hi(o) {
3725
- return new Di({ hyphens: o });
3784
+ function Xi(o) {
3785
+ return new Yi({ hyphens: o });
3726
3786
  }
3727
- class O extends g {
3787
+ class H extends g {
3728
3788
  constructor(e) {
3729
3789
  const t = {};
3730
3790
  for (const [i, n] of Object.entries(e))
3731
3791
  typeof n == "function" && "peek" in n ? t[i] = n.peek() : t[i] = n;
3732
3792
  super(t);
3733
- f(this, "type", "scroll");
3734
- f(this, "priority", 20);
3793
+ d(this, "type", "scroll");
3794
+ d(this, "priority", 20);
3735
3795
  }
3736
3796
  apply(e, t) {
3737
3797
  if (!t.element) return;
@@ -3766,39 +3826,39 @@ class O extends g {
3766
3826
  return typeof e == "number" ? `${e}px` : e;
3767
3827
  }
3768
3828
  }
3769
- function Oi(o) {
3770
- return new O({ scroll: o });
3829
+ function Zi(o) {
3830
+ return new H({ scroll: o });
3771
3831
  }
3772
- function _i(o) {
3773
- return new O({ scrollBehavior: o });
3832
+ function qi(o) {
3833
+ return new H({ scrollBehavior: o });
3774
3834
  }
3775
- function Bi(o) {
3776
- return new O({ overscrollBehavior: o });
3835
+ function Ji(o) {
3836
+ return new H({ overscrollBehavior: o });
3777
3837
  }
3778
- function Ni(o) {
3779
- return new O({ overscrollBehaviorX: o });
3838
+ function Qi(o) {
3839
+ return new H({ overscrollBehaviorX: o });
3780
3840
  }
3781
- function zi(o) {
3782
- return new O({ overscrollBehaviorY: o });
3841
+ function en(o) {
3842
+ return new H({ overscrollBehaviorY: o });
3783
3843
  }
3784
- function Fi(o) {
3785
- return new O({ scroll: { margin: o } });
3844
+ function tn(o) {
3845
+ return new H({ scroll: { margin: o } });
3786
3846
  }
3787
- function Wi(o) {
3788
- return new O({ scroll: { padding: o } });
3847
+ function nn(o) {
3848
+ return new H({ scroll: { padding: o } });
3789
3849
  }
3790
- function ji(o, s, e) {
3791
- return new O({
3850
+ function on(o, s, e) {
3851
+ return new H({
3792
3852
  scroll: {
3793
3853
  snap: { type: o, align: s, stop: e }
3794
3854
  }
3795
3855
  });
3796
3856
  }
3797
- class Ui extends w {
3857
+ class rn extends w {
3798
3858
  constructor() {
3799
3859
  super(...arguments);
3800
- f(this, "type", "onHover");
3801
- f(this, "priority", 50);
3860
+ d(this, "type", "onHover");
3861
+ d(this, "priority", 50);
3802
3862
  }
3803
3863
  apply(e, t) {
3804
3864
  t.element && this.setupHoverTracking(t.element, this.properties);
@@ -3816,14 +3876,14 @@ class Ui extends w {
3816
3876
  e._hoverCleanup = r;
3817
3877
  }
3818
3878
  }
3819
- function Gi(o) {
3820
- return new Ui({ onHover: o });
3879
+ function sn(o) {
3880
+ return new rn({ onHover: o });
3821
3881
  }
3822
- class Ki extends w {
3882
+ class an extends w {
3823
3883
  constructor() {
3824
3884
  super(...arguments);
3825
- f(this, "type", "onMouseEnter");
3826
- f(this, "priority", 50);
3885
+ d(this, "type", "onMouseEnter");
3886
+ d(this, "priority", 50);
3827
3887
  }
3828
3888
  apply(e, t) {
3829
3889
  if (!t.element) return;
@@ -3835,11 +3895,11 @@ class Ki extends w {
3835
3895
  };
3836
3896
  }
3837
3897
  }
3838
- class Yi extends w {
3898
+ class ln extends w {
3839
3899
  constructor() {
3840
3900
  super(...arguments);
3841
- f(this, "type", "onMouseLeave");
3842
- f(this, "priority", 50);
3901
+ d(this, "type", "onMouseLeave");
3902
+ d(this, "priority", 50);
3843
3903
  }
3844
3904
  apply(e, t) {
3845
3905
  if (!t.element) return;
@@ -3851,11 +3911,11 @@ class Yi extends w {
3851
3911
  };
3852
3912
  }
3853
3913
  }
3854
- class Xi extends w {
3914
+ class cn extends w {
3855
3915
  constructor() {
3856
3916
  super(...arguments);
3857
- f(this, "type", "onMouseDown");
3858
- f(this, "priority", 50);
3917
+ d(this, "type", "onMouseDown");
3918
+ d(this, "priority", 50);
3859
3919
  }
3860
3920
  apply(e, t) {
3861
3921
  if (!t.element) return;
@@ -3867,11 +3927,11 @@ class Xi extends w {
3867
3927
  };
3868
3928
  }
3869
3929
  }
3870
- class Zi extends w {
3930
+ class dn extends w {
3871
3931
  constructor() {
3872
3932
  super(...arguments);
3873
- f(this, "type", "onMouseUp");
3874
- f(this, "priority", 50);
3933
+ d(this, "type", "onMouseUp");
3934
+ d(this, "priority", 50);
3875
3935
  }
3876
3936
  apply(e, t) {
3877
3937
  if (!t.element) return;
@@ -3883,11 +3943,11 @@ class Zi extends w {
3883
3943
  };
3884
3944
  }
3885
3945
  }
3886
- class qi extends w {
3946
+ class fn extends w {
3887
3947
  constructor() {
3888
3948
  super(...arguments);
3889
- f(this, "type", "onDoubleClick");
3890
- f(this, "priority", 50);
3949
+ d(this, "type", "onDoubleClick");
3950
+ d(this, "priority", 50);
3891
3951
  }
3892
3952
  apply(e, t) {
3893
3953
  if (!t.element) return;
@@ -3899,11 +3959,11 @@ class qi extends w {
3899
3959
  };
3900
3960
  }
3901
3961
  }
3902
- class Ji extends w {
3962
+ class un extends w {
3903
3963
  constructor() {
3904
3964
  super(...arguments);
3905
- f(this, "type", "onContextMenu");
3906
- f(this, "priority", 50);
3965
+ d(this, "type", "onContextMenu");
3966
+ d(this, "priority", 50);
3907
3967
  }
3908
3968
  apply(e, t) {
3909
3969
  if (!t.element) return;
@@ -3915,29 +3975,29 @@ class Ji extends w {
3915
3975
  };
3916
3976
  }
3917
3977
  }
3918
- function Qi(o) {
3919
- return new Ki({ onMouseEnter: o });
3978
+ function pn(o) {
3979
+ return new an({ onMouseEnter: o });
3920
3980
  }
3921
- function en(o) {
3922
- return new Yi({ onMouseLeave: o });
3981
+ function mn(o) {
3982
+ return new ln({ onMouseLeave: o });
3923
3983
  }
3924
- function tn(o) {
3925
- return new Xi({ onMouseDown: o });
3984
+ function hn(o) {
3985
+ return new cn({ onMouseDown: o });
3926
3986
  }
3927
- function nn(o) {
3928
- return new Zi({ onMouseUp: o });
3987
+ function yn(o) {
3988
+ return new dn({ onMouseUp: o });
3929
3989
  }
3930
- function on(o) {
3931
- return new qi({ onDoubleClick: o });
3990
+ function gn(o) {
3991
+ return new fn({ onDoubleClick: o });
3932
3992
  }
3933
- function rn(o) {
3934
- return new Ji({ onContextMenu: o });
3993
+ function vn(o) {
3994
+ return new un({ onContextMenu: o });
3935
3995
  }
3936
- class sn extends w {
3996
+ class bn extends w {
3937
3997
  constructor() {
3938
3998
  super(...arguments);
3939
- f(this, "type", "onKeyDown");
3940
- f(this, "priority", 50);
3999
+ d(this, "type", "onKeyDown");
4000
+ d(this, "priority", 50);
3941
4001
  }
3942
4002
  apply(e, t) {
3943
4003
  if (!t.element) return;
@@ -3949,11 +4009,11 @@ class sn extends w {
3949
4009
  };
3950
4010
  }
3951
4011
  }
3952
- class an extends w {
4012
+ class Sn extends w {
3953
4013
  constructor() {
3954
4014
  super(...arguments);
3955
- f(this, "type", "onKeyUp");
3956
- f(this, "priority", 50);
4015
+ d(this, "type", "onKeyUp");
4016
+ d(this, "priority", 50);
3957
4017
  }
3958
4018
  apply(e, t) {
3959
4019
  if (!t.element) return;
@@ -3965,11 +4025,11 @@ class an extends w {
3965
4025
  };
3966
4026
  }
3967
4027
  }
3968
- class ln extends w {
4028
+ class wn extends w {
3969
4029
  constructor() {
3970
4030
  super(...arguments);
3971
- f(this, "type", "onKeyPress");
3972
- f(this, "priority", 50);
4031
+ d(this, "type", "onKeyPress");
4032
+ d(this, "priority", 50);
3973
4033
  }
3974
4034
  apply(e, t) {
3975
4035
  if (!t.element) return;
@@ -3981,20 +4041,20 @@ class ln extends w {
3981
4041
  };
3982
4042
  }
3983
4043
  }
3984
- function cn(o) {
3985
- return new sn({ onKeyDown: o });
4044
+ function Cn(o) {
4045
+ return new bn({ onKeyDown: o });
3986
4046
  }
3987
- function fn(o) {
3988
- return new an({ onKeyUp: o });
4047
+ function En(o) {
4048
+ return new Sn({ onKeyUp: o });
3989
4049
  }
3990
- function dn(o) {
3991
- return new ln({ onKeyPress: o });
4050
+ function xn(o) {
4051
+ return new wn({ onKeyPress: o });
3992
4052
  }
3993
- class un extends w {
4053
+ class Mn extends w {
3994
4054
  constructor() {
3995
4055
  super(...arguments);
3996
- f(this, "type", "onFocus");
3997
- f(this, "priority", 50);
4056
+ d(this, "type", "onFocus");
4057
+ d(this, "priority", 50);
3998
4058
  }
3999
4059
  apply(e, t) {
4000
4060
  if (!t.element) return;
@@ -4008,11 +4068,11 @@ class un extends w {
4008
4068
  };
4009
4069
  }
4010
4070
  }
4011
- class pn extends w {
4071
+ class Tn extends w {
4012
4072
  constructor() {
4013
4073
  super(...arguments);
4014
- f(this, "type", "onBlur");
4015
- f(this, "priority", 50);
4074
+ d(this, "type", "onBlur");
4075
+ d(this, "priority", 50);
4016
4076
  }
4017
4077
  apply(e, t) {
4018
4078
  if (!t.element) return;
@@ -4026,17 +4086,17 @@ class pn extends w {
4026
4086
  };
4027
4087
  }
4028
4088
  }
4029
- function mn(o) {
4030
- return new un({ onFocus: o });
4089
+ function Ln(o) {
4090
+ return new Mn({ onFocus: o });
4031
4091
  }
4032
- function hn(o) {
4033
- return new pn({ onBlur: o });
4092
+ function An(o) {
4093
+ return new Tn({ onBlur: o });
4034
4094
  }
4035
- class yn extends w {
4095
+ class kn extends w {
4036
4096
  constructor() {
4037
4097
  super(...arguments);
4038
- f(this, "type", "onLongPressGesture");
4039
- f(this, "priority", 85);
4098
+ d(this, "type", "onLongPressGesture");
4099
+ d(this, "priority", 85);
4040
4100
  }
4041
4101
  apply(e, t) {
4042
4102
  t.element && this.setupLongPressGesture(t.element, this.properties);
@@ -4048,7 +4108,7 @@ class yn extends w {
4048
4108
  l || (r = { x: T, y: E }, l = !0, c = !1, t.onPressingChanged?.(!0), a = window.setTimeout(() => {
4049
4109
  l && !c && (c = !0, t.perform());
4050
4110
  }, i));
4051
- }, d = (T, E) => r ? Math.sqrt(
4111
+ }, f = (T, E) => r ? Math.sqrt(
4052
4112
  Math.pow(T - r.x, 2) + Math.pow(E - r.y, 2)
4053
4113
  ) <= n : !1, h = () => {
4054
4114
  a && (clearTimeout(a), a = null), l && (l = !1, t.onPressingChanged?.(!1)), r = null, c = !1;
@@ -4058,39 +4118,39 @@ class yn extends w {
4058
4118
  }, v = (T) => {
4059
4119
  if (!l) return;
4060
4120
  const E = T;
4061
- d(E.clientX, E.clientY) || h();
4121
+ f(E.clientX, E.clientY) || h();
4062
4122
  }, S = () => {
4063
4123
  h();
4064
- }, _ = () => {
4124
+ }, N = () => {
4065
4125
  h();
4066
- }, W = (T) => {
4126
+ }, K = (T) => {
4067
4127
  const E = T;
4068
4128
  if (E.touches.length === 1) {
4069
- const j = E.touches[0];
4070
- T.preventDefault(), u(j.clientX, j.clientY);
4129
+ const Y = E.touches[0];
4130
+ T.preventDefault(), u(Y.clientX, Y.clientY);
4071
4131
  }
4072
- }, ce = (T) => {
4132
+ }, ge = (T) => {
4073
4133
  if (!l) return;
4074
4134
  const E = T;
4075
4135
  if (E.touches.length === 1) {
4076
- const j = E.touches[0];
4077
- d(j.clientX, j.clientY) || h();
4136
+ const Y = E.touches[0];
4137
+ f(Y.clientX, Y.clientY) || h();
4078
4138
  } else
4079
4139
  h();
4080
- }, fe = () => {
4140
+ }, ve = () => {
4081
4141
  h();
4082
- }, de = () => {
4142
+ }, be = () => {
4083
4143
  h();
4084
- }, ue = (T) => {
4144
+ }, Se = (T) => {
4085
4145
  const E = T;
4086
4146
  E.button === 0 && (T.preventDefault(), u(E.clientX, E.clientY));
4087
- }, pe = (T) => {
4147
+ }, we = (T) => {
4088
4148
  if (!l) return;
4089
4149
  const E = T;
4090
- d(E.clientX, E.clientY) || h();
4091
- }, me = () => {
4150
+ f(E.clientX, E.clientY) || h();
4151
+ }, Ce = () => {
4092
4152
  h();
4093
- }, he = () => {
4153
+ }, Ee = () => {
4094
4154
  h();
4095
4155
  };
4096
4156
  "onpointerdown" in e ? (e.addEventListener(
@@ -4101,16 +4161,16 @@ class yn extends w {
4101
4161
  v
4102
4162
  ), e.addEventListener("pointerup", S), e.addEventListener(
4103
4163
  "pointercancel",
4104
- _
4164
+ N
4105
4165
  )) : "ontouchstart" in e ? (e.addEventListener(
4106
4166
  "touchstart",
4107
- W,
4167
+ K,
4108
4168
  { passive: !1 }
4109
- ), e.addEventListener("touchmove", ce), e.addEventListener("touchend", fe), e.addEventListener(
4169
+ ), e.addEventListener("touchmove", ge), e.addEventListener("touchend", ve), e.addEventListener(
4110
4170
  "touchcancel",
4111
- de
4112
- )) : (e.addEventListener("mousedown", ue), e.addEventListener("mousemove", pe), e.addEventListener("mouseup", me), e.addEventListener("mouseleave", he));
4113
- const Ie = () => {
4171
+ be
4172
+ )) : (e.addEventListener("mousedown", Se), e.addEventListener("mousemove", we), e.addEventListener("mouseup", Ce), e.addEventListener("mouseleave", Ee));
4173
+ const Be = () => {
4114
4174
  h(), "onpointerdown" in e ? (e.removeEventListener(
4115
4175
  "pointerdown",
4116
4176
  y
@@ -4122,42 +4182,42 @@ class yn extends w {
4122
4182
  S
4123
4183
  ), e.removeEventListener(
4124
4184
  "pointercancel",
4125
- _
4185
+ N
4126
4186
  )) : "ontouchstart" in e ? (e.removeEventListener(
4127
4187
  "touchstart",
4128
- W
4188
+ K
4129
4189
  ), e.removeEventListener(
4130
4190
  "touchmove",
4131
- ce
4132
- ), e.removeEventListener("touchend", fe), e.removeEventListener(
4191
+ ge
4192
+ ), e.removeEventListener("touchend", ve), e.removeEventListener(
4133
4193
  "touchcancel",
4134
- de
4194
+ be
4135
4195
  )) : (e.removeEventListener(
4136
4196
  "mousedown",
4137
- ue
4197
+ Se
4138
4198
  ), e.removeEventListener(
4139
4199
  "mousemove",
4140
- pe
4141
- ), e.removeEventListener("mouseup", me), e.removeEventListener(
4200
+ we
4201
+ ), e.removeEventListener("mouseup", Ce), e.removeEventListener(
4142
4202
  "mouseleave",
4143
- he
4203
+ Ee
4144
4204
  ));
4145
4205
  };
4146
- e._longPressCleanup = Ie;
4206
+ e._longPressCleanup = Be;
4147
4207
  }
4148
4208
  }
4149
- function gn(o) {
4150
- return new yn(o);
4209
+ function In(o) {
4210
+ return new kn(o);
4151
4211
  }
4152
- class vn extends w {
4212
+ class Pn extends w {
4153
4213
  constructor(e) {
4154
4214
  const t = {
4155
4215
  ...e,
4156
4216
  modifiers: e.modifiers || []
4157
4217
  };
4158
4218
  super(t);
4159
- f(this, "type", "keyboardShortcut");
4160
- f(this, "priority", 80);
4219
+ d(this, "type", "keyboardShortcut");
4220
+ d(this, "priority", 80);
4161
4221
  }
4162
4222
  apply(e, t) {
4163
4223
  t.element && this.setupKeyboardShortcut(t.element, this.properties);
@@ -4167,13 +4227,13 @@ class vn extends w {
4167
4227
  const c = l;
4168
4228
  if (c.key.toLowerCase() !== t.key.toLowerCase())
4169
4229
  return;
4170
- const u = new Set(i), d = /* @__PURE__ */ new Set();
4171
- (c.ctrlKey || c.metaKey) && (navigator.platform.includes("Mac") ? (c.metaKey && (d.add("cmd"), d.add("meta")), c.ctrlKey && d.add("ctrl")) : (c.ctrlKey && (d.add("ctrl"), d.add("cmd")), c.metaKey && d.add("meta"))), c.shiftKey && d.add("shift"), c.altKey && d.add("alt");
4230
+ const u = new Set(i), f = /* @__PURE__ */ new Set();
4231
+ (c.ctrlKey || c.metaKey) && (navigator.platform.includes("Mac") ? (c.metaKey && (f.add("cmd"), f.add("meta")), c.ctrlKey && f.add("ctrl")) : (c.ctrlKey && (f.add("ctrl"), f.add("cmd")), c.metaKey && f.add("meta"))), c.shiftKey && f.add("shift"), c.altKey && f.add("alt");
4172
4232
  const h = Array.from(u).every(
4173
- (S) => d.has(S)
4233
+ (S) => f.has(S)
4174
4234
  ), y = /* @__PURE__ */ new Set([...u]);
4175
4235
  u.has("cmd") && (y.add("meta"), y.add("ctrl")), u.has("meta") && y.add("cmd"), u.has("ctrl") && y.add("cmd");
4176
- const v = Array.from(d).some(
4236
+ const v = Array.from(f).some(
4177
4237
  (S) => !y.has(
4178
4238
  S
4179
4239
  )
@@ -4190,17 +4250,17 @@ class vn extends w {
4190
4250
  e._keyboardShortcutCleanup = a;
4191
4251
  }
4192
4252
  }
4193
- function Ae(o) {
4194
- return new vn(o);
4253
+ function Oe(o) {
4254
+ return new Pn(o);
4195
4255
  }
4196
- function Er(o, s, e) {
4197
- return Ae({ key: o, modifiers: s, action: e });
4256
+ function Or(o, s, e) {
4257
+ return Oe({ key: o, modifiers: s, action: e });
4198
4258
  }
4199
- class bn extends w {
4259
+ class $n extends w {
4200
4260
  constructor() {
4201
4261
  super(...arguments);
4202
- f(this, "type", "focused");
4203
- f(this, "priority", 75);
4262
+ d(this, "type", "focused");
4263
+ d(this, "priority", 75);
4204
4264
  }
4205
4265
  apply(e, t) {
4206
4266
  t.element && this.setupFocusManagement(t.element, this.properties.focused);
@@ -4223,14 +4283,14 @@ class bn extends w {
4223
4283
  });
4224
4284
  else if (process.env.NODE_ENV !== "test") {
4225
4285
  let c = l(), u = !0;
4226
- const d = () => {
4286
+ const f = () => {
4227
4287
  if (!u) return;
4228
4288
  const h = l();
4229
- h !== c && (c = h, r(h)), u && requestAnimationFrame(d);
4289
+ h !== c && (c = h, r(h)), u && requestAnimationFrame(f);
4230
4290
  };
4231
4291
  n = () => {
4232
4292
  u = !1;
4233
- }, requestAnimationFrame(d);
4293
+ }, requestAnimationFrame(f);
4234
4294
  } else
4235
4295
  n = () => {
4236
4296
  };
@@ -4242,18 +4302,18 @@ class bn extends w {
4242
4302
  e._focusedCleanup = a;
4243
4303
  }
4244
4304
  }
4245
- function Sn(o) {
4246
- return new bn({ focused: o });
4305
+ function Vn(o) {
4306
+ return new $n({ focused: o });
4247
4307
  }
4248
- class wn extends w {
4308
+ class Rn extends w {
4249
4309
  constructor(e = {}) {
4250
4310
  const t = {
4251
4311
  ...e,
4252
4312
  interactions: e.interactions || []
4253
4313
  };
4254
4314
  super(t);
4255
- f(this, "type", "focusable");
4256
- f(this, "priority", 75);
4315
+ d(this, "type", "focusable");
4316
+ d(this, "priority", 75);
4257
4317
  }
4258
4318
  apply(e, t) {
4259
4319
  t.element && this.setupFocusable(t.element, this.properties);
@@ -4290,23 +4350,23 @@ class wn extends w {
4290
4350
  }
4291
4351
  }
4292
4352
  }
4293
- function se(o, s) {
4294
- return new wn({
4353
+ function me(o, s) {
4354
+ return new Rn({
4295
4355
  isFocusable: o ?? !0,
4296
4356
  interactions: s ?? []
4297
4357
  });
4298
4358
  }
4299
- function Cn() {
4300
- return se(!0, ["activate"]);
4359
+ function Dn() {
4360
+ return me(!0, ["activate"]);
4301
4361
  }
4302
- function En() {
4303
- return se(!0, ["edit"]);
4362
+ function On() {
4363
+ return me(!0, ["edit"]);
4304
4364
  }
4305
- class Mn extends w {
4365
+ class _n extends w {
4306
4366
  constructor() {
4307
4367
  super(...arguments);
4308
- f(this, "type", "onContinuousHover");
4309
- f(this, "priority", 70);
4368
+ d(this, "type", "onContinuousHover");
4369
+ d(this, "priority", 70);
4310
4370
  }
4311
4371
  apply(e, t) {
4312
4372
  t.element && this.setupContinuousHover(t.element, this.properties);
@@ -4314,26 +4374,26 @@ class Mn extends w {
4314
4374
  setupContinuousHover(e, t) {
4315
4375
  const i = t.coordinateSpace ?? "local";
4316
4376
  let n = !1;
4317
- const r = (d) => {
4377
+ const r = (f) => {
4318
4378
  if (i === "global")
4319
4379
  return {
4320
- x: d.clientX,
4321
- y: d.clientY
4380
+ x: f.clientX,
4381
+ y: f.clientY
4322
4382
  };
4323
4383
  {
4324
4384
  const h = e.getBoundingClientRect();
4325
4385
  return {
4326
- x: d.clientX - h.left,
4327
- y: d.clientY - h.top
4386
+ x: f.clientX - h.left,
4387
+ y: f.clientY - h.top
4328
4388
  };
4329
4389
  }
4330
- }, a = (d) => {
4390
+ }, a = (f) => {
4331
4391
  n = !0;
4332
- const y = r(d);
4392
+ const y = r(f);
4333
4393
  t.perform(y);
4334
- }, l = (d) => {
4394
+ }, l = (f) => {
4335
4395
  if (!n) return;
4336
- const y = r(d);
4396
+ const y = r(f);
4337
4397
  t.perform(y);
4338
4398
  }, c = () => {
4339
4399
  n = !1, t.perform(null);
@@ -4351,26 +4411,26 @@ class Mn extends w {
4351
4411
  e._continuousHoverCleanup = u;
4352
4412
  }
4353
4413
  }
4354
- function ae(o) {
4355
- return new Mn(o);
4414
+ function he(o) {
4415
+ return new _n(o);
4356
4416
  }
4357
- function Mr(o) {
4358
- return ae({
4417
+ function _r(o) {
4418
+ return he({
4359
4419
  coordinateSpace: "local",
4360
4420
  perform: o
4361
4421
  });
4362
4422
  }
4363
- function xr(o) {
4364
- return ae({
4423
+ function Br(o) {
4424
+ return he({
4365
4425
  coordinateSpace: "global",
4366
4426
  perform: o
4367
4427
  });
4368
4428
  }
4369
- class xn extends w {
4429
+ class Bn extends w {
4370
4430
  constructor() {
4371
4431
  super(...arguments);
4372
- f(this, "type", "allowsHitTesting");
4373
- f(this, "priority", 95);
4432
+ d(this, "type", "allowsHitTesting");
4433
+ d(this, "priority", 95);
4374
4434
  }
4375
4435
  apply(e, t) {
4376
4436
  t.element && this.setupHitTesting(t.element, this.properties.enabled);
@@ -4381,100 +4441,100 @@ class xn extends w {
4381
4441
  t ? i.style.pointerEvents === "none" && (i.style.pointerEvents = "") : i.style.pointerEvents = "none", e._hitTestingEnabled = t;
4382
4442
  }
4383
4443
  }
4384
- function le(o) {
4385
- return new xn({ enabled: o });
4444
+ function ye(o) {
4445
+ return new Bn({ enabled: o });
4386
4446
  }
4387
- function Tr() {
4388
- return le(!0);
4447
+ function Hr() {
4448
+ return ye(!0);
4389
4449
  }
4390
- function Lr() {
4391
- return le(!1);
4450
+ function Nr() {
4451
+ return ye(!1);
4392
4452
  }
4393
- function Tn(o, s) {
4453
+ function Hn(o, s) {
4394
4454
  return new C({
4395
4455
  highPriorityGesture: { gesture: o, including: s }
4396
4456
  });
4397
4457
  }
4398
- function Ln(o, s) {
4458
+ function Nn(o, s) {
4399
4459
  return new C({
4400
4460
  simultaneousGesture: { gesture: o, including: s }
4401
4461
  });
4402
4462
  }
4403
- function An(o) {
4463
+ function zn(o) {
4404
4464
  return new C({ onTap: o });
4405
4465
  }
4406
- function Ar(o) {
4466
+ function zr(o) {
4407
4467
  return new C({ onFocus: o });
4408
4468
  }
4409
- function kr(o) {
4469
+ function Fr(o) {
4410
4470
  return new C({ onBlur: o });
4411
4471
  }
4412
- function kn(o) {
4472
+ function Fn(o) {
4413
4473
  return new C({ onScroll: o });
4414
4474
  }
4415
- function Ir(o) {
4475
+ function Wr(o) {
4416
4476
  return new C({ onKeyDown: o });
4417
4477
  }
4418
- function Pr(o) {
4478
+ function jr(o) {
4419
4479
  return new C({ onKeyPress: o });
4420
4480
  }
4421
- function $r(o) {
4481
+ function Ur(o) {
4422
4482
  return new C({ onKeyUp: o });
4423
4483
  }
4424
- function Vr(o) {
4484
+ function Gr(o) {
4425
4485
  return new C({ onDoubleClick: o });
4426
4486
  }
4427
- function Rr(o) {
4487
+ function Kr(o) {
4428
4488
  return new C({ onContextMenu: o });
4429
4489
  }
4430
- function In(o) {
4490
+ function Wn(o) {
4431
4491
  return new C({ onWheel: o });
4432
4492
  }
4433
- function Pn(o) {
4493
+ function jn(o) {
4434
4494
  return new C({ onInput: o });
4435
4495
  }
4436
- function $n(o) {
4496
+ function Un(o) {
4437
4497
  return new C({ onChange: o });
4438
4498
  }
4439
- function Vn(o) {
4499
+ function Gn(o) {
4440
4500
  return new C({ onCopy: o });
4441
4501
  }
4442
- function Rn(o) {
4502
+ function Kn(o) {
4443
4503
  return new C({ onCut: o });
4444
4504
  }
4445
- function Dn(o) {
4505
+ function Yn(o) {
4446
4506
  return new C({ onPaste: o });
4447
4507
  }
4448
- function Hn(o) {
4508
+ function Xn(o) {
4449
4509
  return new C({ onSelect: o });
4450
4510
  }
4451
- function On(o) {
4511
+ function Zn(o) {
4452
4512
  return new C({ onTouchStart: o });
4453
4513
  }
4454
- function _n(o) {
4514
+ function qn(o) {
4455
4515
  return new C({ onTouchMove: o });
4456
4516
  }
4457
- function Bn(o) {
4517
+ function Jn(o) {
4458
4518
  return new C({ onTouchEnd: o });
4459
4519
  }
4460
- function Nn(o) {
4520
+ function Qn(o) {
4461
4521
  return new C({ onSwipeLeft: o });
4462
4522
  }
4463
- function zn(o) {
4523
+ function eo(o) {
4464
4524
  return new C({ onSwipeRight: o });
4465
4525
  }
4466
- function Fn(o = !0) {
4526
+ function to(o = !0) {
4467
4527
  return new C({ disabled: o });
4468
4528
  }
4469
- class F extends g {
4529
+ class G extends g {
4470
4530
  // Lower priority for utility properties
4471
4531
  constructor(e) {
4472
4532
  const t = {};
4473
4533
  for (const [i, n] of Object.entries(e))
4474
4534
  typeof n == "function" && "peek" in n ? t[i] = n.peek() : t[i] = n;
4475
4535
  super(t);
4476
- f(this, "type", "utility");
4477
- f(this, "priority", 10);
4536
+ d(this, "type", "utility");
4537
+ d(this, "priority", 10);
4478
4538
  }
4479
4539
  apply(e, t) {
4480
4540
  if (!t.element) return;
@@ -4507,36 +4567,36 @@ class F extends g {
4507
4567
  );
4508
4568
  }
4509
4569
  }
4510
- function Wn(o) {
4511
- return new F(o);
4570
+ function io(o) {
4571
+ return new G(o);
4512
4572
  }
4513
- function jn(o) {
4514
- return new F({ cursor: o });
4573
+ function no(o) {
4574
+ return new G({ cursor: o });
4515
4575
  }
4516
- function Un(o) {
4517
- return new F({ overflowY: o });
4576
+ function oo(o) {
4577
+ return new G({ overflowY: o });
4518
4578
  }
4519
- function Gn(o) {
4520
- return new F({ overflowX: o });
4579
+ function ro(o) {
4580
+ return new G({ overflowX: o });
4521
4581
  }
4522
- function Kn(o) {
4523
- return new F({ display: o });
4582
+ function so(o) {
4583
+ return new G({ display: o });
4524
4584
  }
4525
- function Yn(o) {
4526
- return new F({ outline: o });
4585
+ function ao(o) {
4586
+ return new G({ outline: o });
4527
4587
  }
4528
- function Xn(o) {
4529
- return new F({ outlineOffset: o });
4588
+ function lo(o) {
4589
+ return new G({ outlineOffset: o });
4530
4590
  }
4531
- class ee extends g {
4591
+ class ae extends g {
4532
4592
  // Very low priority so raw CSS doesn't override specific modifiers
4533
4593
  constructor(e) {
4534
4594
  const t = {};
4535
4595
  for (const [i, n] of Object.entries(e))
4536
4596
  typeof n == "function" && "peek" in n ? t[i] = n.peek() : t[i] = n;
4537
4597
  super(t);
4538
- f(this, "type", "css");
4539
- f(this, "priority", 5);
4598
+ d(this, "type", "css");
4599
+ d(this, "priority", 5);
4540
4600
  }
4541
4601
  apply(e, t) {
4542
4602
  if (!t.element) return;
@@ -4553,24 +4613,24 @@ class ee extends g {
4553
4613
  return t;
4554
4614
  }
4555
4615
  }
4556
- function Zn(o) {
4557
- return new ee(o);
4616
+ function co(o) {
4617
+ return new ae(o);
4558
4618
  }
4559
- function qn(o, s) {
4560
- return new ee({ [o]: s });
4619
+ function fo(o, s) {
4620
+ return new ae({ [o]: s });
4561
4621
  }
4562
- function Jn(o, s) {
4622
+ function uo(o, s) {
4563
4623
  const e = o.startsWith("--") ? o : `--${o}`;
4564
- return new ee({ [e]: s });
4624
+ return new ae({ [e]: s });
4565
4625
  }
4566
- function Dr(o, s, e) {
4626
+ function Yr(o, s, e) {
4567
4627
  const t = o.charAt(0).toUpperCase() + o.slice(1), i = `-${o.toLowerCase()}-${s}`, n = t + s.charAt(0).toUpperCase() + s.slice(1);
4568
- return new ee({
4628
+ return new ae({
4569
4629
  [i]: e,
4570
4630
  [n]: e
4571
4631
  });
4572
4632
  }
4573
- class X {
4633
+ class ee {
4574
4634
  /**
4575
4635
  * Apply basic sanitization to HTML content
4576
4636
  * Removes dangerous patterns and restricts to allowed elements/attributes
@@ -4645,7 +4705,7 @@ class X {
4645
4705
  }
4646
4706
  }
4647
4707
  }
4648
- f(X, "DANGEROUS_PATTERNS", [
4708
+ d(ee, "DANGEROUS_PATTERNS", [
4649
4709
  // Script tags (including nested/malformed ones)
4650
4710
  /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
4651
4711
  /<[^>]*<script[^>]*>/gi,
@@ -4673,7 +4733,7 @@ f(X, "DANGEROUS_PATTERNS", [
4673
4733
  // Any javascript: protocol
4674
4734
  /vbscript:/gi
4675
4735
  // VBScript protocol
4676
- ]), f(X, "ALLOWED_TAGS", [
4736
+ ]), d(ee, "ALLOWED_TAGS", [
4677
4737
  "p",
4678
4738
  "br",
4679
4739
  "strong",
@@ -4717,7 +4777,7 @@ f(X, "DANGEROUS_PATTERNS", [
4717
4777
  "header",
4718
4778
  "footer",
4719
4779
  "hr"
4720
- ]), f(X, "ALLOWED_ATTRIBUTES", {
4780
+ ]), d(ee, "ALLOWED_ATTRIBUTES", {
4721
4781
  "*": ["class", "id", "title", "lang", "dir"],
4722
4782
  a: ["href", "target", "rel"],
4723
4783
  img: ["src", "alt", "width", "height"],
@@ -4725,10 +4785,10 @@ f(X, "DANGEROUS_PATTERNS", [
4725
4785
  td: ["colspan", "rowspan"],
4726
4786
  th: ["colspan", "rowspan", "scope"]
4727
4787
  });
4728
- function Hr(o, s) {
4729
- return X.sanitize(o, s);
4788
+ function Xr(o, s) {
4789
+ return ee.sanitize(o, s);
4730
4790
  }
4731
- class ke {
4791
+ class _e {
4732
4792
  /**
4733
4793
  * Validate HTML content in development mode
4734
4794
  */
@@ -4758,7 +4818,7 @@ class ke {
4758
4818
  ].some((t) => t.test(s));
4759
4819
  }
4760
4820
  }
4761
- f(ke, "SUSPICIOUS_PATTERNS", [
4821
+ d(_e, "SUSPICIOUS_PATTERNS", [
4762
4822
  { pattern: /<script/i, message: "Script tags detected" },
4763
4823
  { pattern: /javascript:/i, message: "JavaScript URLs detected" },
4764
4824
  { pattern: /on\w+\s*=/i, message: "Event handlers detected" },
@@ -4770,12 +4830,12 @@ f(ke, "SUSPICIOUS_PATTERNS", [
4770
4830
  { pattern: /@import/i, message: "CSS import statements detected" },
4771
4831
  { pattern: /expression\s*\(/i, message: "CSS expressions detected" }
4772
4832
  ]);
4773
- class Qn extends g {
4833
+ class po extends g {
4774
4834
  // Early priority to apply before other modifiers
4775
4835
  constructor(e = {}) {
4776
4836
  super(e);
4777
- f(this, "type", "asHTML");
4778
- f(this, "priority", 10);
4837
+ d(this, "type", "asHTML");
4838
+ d(this, "priority", 10);
4779
4839
  }
4780
4840
  apply(e, t) {
4781
4841
  if (!t.element || !t.componentInstance) return;
@@ -4830,11 +4890,11 @@ class Qn extends g {
4830
4890
  return typeof e == "string" ? e : "";
4831
4891
  }
4832
4892
  sanitizeHTML(e) {
4833
- return !e || typeof e != "string" ? "" : this.properties.skipSanitizer ? e : this.properties.customSanitizer ? this.properties.customSanitizer(e) : X.sanitize(e, this.properties);
4893
+ return !e || typeof e != "string" ? "" : this.properties.skipSanitizer ? e : this.properties.customSanitizer ? this.properties.customSanitizer(e) : ee.sanitize(e, this.properties);
4834
4894
  }
4835
4895
  validateContent(e) {
4836
4896
  if (this.properties.__suppressWarnings) return;
4837
- const t = ke.validate(e, {
4897
+ const t = _e.validate(e, {
4838
4898
  suppressWarnings: this.properties.__suppressWarnings
4839
4899
  });
4840
4900
  !t.isValid && t.warnings.length > 0 && (console.group("🔒 AsHTML Security Warnings"), console.warn("Potentially dangerous content detected in asHTML:"), t.warnings.forEach((i) => {
@@ -4842,30 +4902,30 @@ class Qn extends g {
4842
4902
  }), console.warn("Consider using a more comprehensive sanitization solution like DOMPurify"), console.warn("To suppress these warnings, use { __suppressWarnings: true }"), console.groupEnd()), this.properties.skipSanitizer && console.warn("🚨 AsHTML: Sanitization is DISABLED. Ensure content is safe!");
4843
4903
  }
4844
4904
  }
4845
- function eo(o = {}) {
4846
- return new Qn(o);
4905
+ function mo(o = {}) {
4906
+ return new po(o);
4847
4907
  }
4848
- function to(o) {
4849
- return new H({
4908
+ function ho(o) {
4909
+ return new B({
4850
4910
  navigationTitle: o,
4851
4911
  role: "heading"
4852
4912
  });
4853
4913
  }
4854
- function io(o = !0) {
4855
- return new H({
4914
+ function yo(o = !0) {
4915
+ return new B({
4856
4916
  navigationBarHidden: o,
4857
4917
  "aria-hidden": o.toString()
4858
4918
  });
4859
4919
  }
4860
- function no(o) {
4861
- return new H({ navigationBarItems: o });
4920
+ function go(o) {
4921
+ return new B({ navigationBarItems: o });
4862
4922
  }
4863
- class oo extends g {
4923
+ class vo extends g {
4864
4924
  // High priority for HTML attributes
4865
4925
  constructor(e) {
4866
4926
  super(e);
4867
- f(this, "type", "id");
4868
- f(this, "priority", 85);
4927
+ d(this, "type", "id");
4928
+ d(this, "priority", 85);
4869
4929
  }
4870
4930
  apply(e, t) {
4871
4931
  if (!t.element) return;
@@ -4884,15 +4944,15 @@ class oo extends g {
4884
4944
  );
4885
4945
  }
4886
4946
  }
4887
- function ie(o) {
4888
- return new oo({ id: o });
4947
+ function de(o) {
4948
+ return new vo({ id: o });
4889
4949
  }
4890
- class ro extends g {
4950
+ class bo extends g {
4891
4951
  // High priority for HTML attributes
4892
4952
  constructor(e) {
4893
4953
  super(e);
4894
- f(this, "type", "data");
4895
- f(this, "priority", 80);
4954
+ d(this, "type", "data");
4955
+ d(this, "priority", 80);
4896
4956
  }
4897
4957
  apply(e, t) {
4898
4958
  if (!t.element) return;
@@ -4926,15 +4986,15 @@ class ro extends g {
4926
4986
  });
4927
4987
  }
4928
4988
  }
4929
- function so(o) {
4930
- return new ro({ data: o });
4989
+ function So(o) {
4990
+ return new bo({ data: o });
4931
4991
  }
4932
- class ao extends g {
4992
+ class wo extends g {
4933
4993
  // High priority for accessibility
4934
4994
  constructor(e) {
4935
4995
  super(e);
4936
- f(this, "type", "tabIndex");
4937
- f(this, "priority", 75);
4996
+ d(this, "type", "tabIndex");
4997
+ d(this, "priority", 75);
4938
4998
  }
4939
4999
  apply(e, t) {
4940
5000
  if (!t.element) return;
@@ -4953,14 +5013,14 @@ class ao extends g {
4953
5013
  );
4954
5014
  }
4955
5015
  }
4956
- function lo(o) {
4957
- return new ao({ tabIndex: o });
5016
+ function Co(o) {
5017
+ return new wo({ tabIndex: o });
4958
5018
  }
4959
- const Q = class Q extends g {
5019
+ const se = class se extends g {
4960
5020
  constructor(e) {
4961
5021
  super(e);
4962
- f(this, "type", "aria");
4963
- f(this, "priority", 90);
5022
+ d(this, "type", "aria");
5023
+ d(this, "priority", 90);
4964
5024
  }
4965
5025
  apply(e, t) {
4966
5026
  if (!t.element) return;
@@ -4991,7 +5051,7 @@ const Q = class Q extends g {
4991
5051
  return;
4992
5052
  }
4993
5053
  const n = t.replace(/^aria-/, "");
4994
- !Q.KNOWN_ATTRIBUTES.has(n) && !t.startsWith("aria-") && console.warn(
5054
+ !se.KNOWN_ATTRIBUTES.has(n) && !t.startsWith("aria-") && console.warn(
4995
5055
  `TachUI ARIA Modifier: Unknown ARIA attribute "${t}". This may not be a valid ARIA attribute. Did you mean "${this.suggestCorrection(n)}"?`
4996
5056
  ), this.validateSpecificAriaAttribute(t, i);
4997
5057
  });
@@ -5084,7 +5144,7 @@ const Q = class Q extends g {
5084
5144
  }
5085
5145
  };
5086
5146
  // Highest priority for accessibility
5087
- f(Q, "KNOWN_ATTRIBUTES", /* @__PURE__ */ new Set([
5147
+ d(se, "KNOWN_ATTRIBUTES", /* @__PURE__ */ new Set([
5088
5148
  "label",
5089
5149
  "labelledby",
5090
5150
  "describedby",
@@ -5119,35 +5179,35 @@ f(Q, "KNOWN_ATTRIBUTES", /* @__PURE__ */ new Set([
5119
5179
  "valuetext",
5120
5180
  "role"
5121
5181
  ]));
5122
- let ne = Q;
5123
- function K(o) {
5124
- return new ne({ aria: o });
5182
+ let fe = se;
5183
+ function q(o) {
5184
+ return new fe({ aria: o });
5125
5185
  }
5126
- function co(o) {
5127
- return K({ role: o });
5186
+ function Eo(o) {
5187
+ return q({ role: o });
5128
5188
  }
5129
- function fo(o) {
5130
- return K({ label: o });
5189
+ function xo(o) {
5190
+ return q({ label: o });
5131
5191
  }
5132
- function uo(o) {
5133
- return K({ live: o });
5192
+ function Mo(o) {
5193
+ return q({ live: o });
5134
5194
  }
5135
- function po(o) {
5136
- return K({ describedby: o });
5195
+ function To(o) {
5196
+ return q({ describedby: o });
5137
5197
  }
5138
- function mo(o) {
5139
- return K({ modal: o });
5198
+ function Lo(o) {
5199
+ return q({ modal: o });
5140
5200
  }
5141
- class Z extends g {
5201
+ class te extends g {
5142
5202
  // Early application for CSS variables
5143
5203
  constructor(e) {
5144
5204
  super(e);
5145
- f(this, "type", "customProperties");
5146
- f(this, "priority", 5);
5205
+ d(this, "type", "customProperties");
5206
+ d(this, "priority", 5);
5147
5207
  }
5148
5208
  apply(e, t) {
5149
5209
  if (!t.element) return;
5150
- const i = this.computeCustomPropertyStyles(this.properties), n = t.element, r = (n instanceof HTMLElement, n.style);
5210
+ const i = this.computeCustomPropertyStyles(this.properties), n = t.element, r = (typeof HTMLElement < "u" && n instanceof HTMLElement, n.style);
5151
5211
  if (r && typeof r.setProperty == "function") {
5152
5212
  for (const [a, l] of Object.entries(i)) {
5153
5213
  const c = a.startsWith("--") ? a.slice(2) : a, u = `--${this.toCSSProperty(c)}`;
@@ -5172,25 +5232,25 @@ class Z extends g {
5172
5232
  return typeof e == "number" ? e.toString() : String(e);
5173
5233
  }
5174
5234
  }
5175
- function ho(o) {
5176
- return new Z({
5235
+ function Ao(o) {
5236
+ return new te({
5177
5237
  properties: o.properties,
5178
5238
  scope: o.scope || "local"
5179
5239
  });
5180
5240
  }
5181
- function yo(o, s, e) {
5182
- return new Z({
5241
+ function ko(o, s, e) {
5242
+ return new te({
5183
5243
  properties: { [o]: s },
5184
5244
  scope: e || "local"
5185
5245
  });
5186
5246
  }
5187
- function go(o) {
5188
- return new Z({
5247
+ function Io(o) {
5248
+ return new te({
5189
5249
  properties: o,
5190
5250
  scope: "local"
5191
5251
  });
5192
5252
  }
5193
- function Or(o) {
5253
+ function Zr(o) {
5194
5254
  const s = {};
5195
5255
  return Object.entries(o).forEach(([e, t]) => {
5196
5256
  if (t !== void 0) {
@@ -5200,29 +5260,29 @@ function Or(o) {
5200
5260
  );
5201
5261
  s[`--theme-color-${i}`] = t;
5202
5262
  }
5203
- }), new Z({
5263
+ }), new te({
5204
5264
  properties: s,
5205
5265
  scope: "local"
5206
5266
  });
5207
5267
  }
5208
- function _r(o) {
5268
+ function qr(o) {
5209
5269
  const s = {};
5210
5270
  return Object.entries(o).forEach(([e, t]) => {
5211
5271
  t !== void 0 && (s[`--token-${e}`] = t);
5212
- }), new Z({
5272
+ }), new te({
5213
5273
  properties: s,
5214
5274
  scope: "local"
5215
5275
  });
5216
5276
  }
5217
- const B = class B extends w {
5277
+ const W = class W extends w {
5218
5278
  constructor() {
5219
5279
  super(...arguments);
5220
- f(this, "type", "pseudoElement");
5221
- f(this, "priority", 50);
5280
+ d(this, "type", "pseudoElement");
5281
+ d(this, "priority", 50);
5222
5282
  }
5223
5283
  apply(e, t) {
5224
5284
  if (!t.element) return;
5225
- const i = `tachui-pseudo-${++B.elementCount}`;
5285
+ const i = `tachui-pseudo-${++W.elementCount}`;
5226
5286
  t.element.classList.add(i), this.properties.before && this.addPseudoElementRule(i, "before", this.properties.before), this.properties.after && this.addPseudoElementRule(i, "after", this.properties.after);
5227
5287
  }
5228
5288
  addPseudoElementRule(e, t, i) {
@@ -5256,12 +5316,12 @@ const B = class B extends w {
5256
5316
  }
5257
5317
  getOrCreateStyleSheet() {
5258
5318
  const e = document.getElementById(
5259
- B.styleSheetId
5319
+ W.styleSheetId
5260
5320
  );
5261
5321
  if (e && e instanceof HTMLStyleElement)
5262
5322
  return e.sheet;
5263
5323
  const t = document.createElement("style");
5264
- t.id = B.styleSheetId;
5324
+ t.id = W.styleSheetId;
5265
5325
  try {
5266
5326
  document.head.appendChild(t);
5267
5327
  } catch (i) {
@@ -5274,33 +5334,33 @@ const B = class B extends w {
5274
5334
  }
5275
5335
  };
5276
5336
  // High priority to ensure pseudo-elements are applied last
5277
- f(B, "styleSheetId", "tachui-pseudo-elements"), f(B, "elementCount", 0);
5278
- let U = B;
5279
- function Y(o) {
5280
- return new U({ before: o });
5337
+ d(W, "styleSheetId", "tachui-pseudo-elements"), d(W, "elementCount", 0);
5338
+ let X = W;
5339
+ function J(o) {
5340
+ return new X({ before: o });
5281
5341
  }
5282
- function q(o) {
5283
- return new U({ after: o });
5342
+ function ie(o) {
5343
+ return new X({ after: o });
5284
5344
  }
5285
- function vo(o) {
5286
- return new U(o);
5345
+ function Po(o) {
5346
+ return new X(o);
5287
5347
  }
5288
- function bo(o, s = {}) {
5289
- return Y({
5348
+ function $o(o, s = {}) {
5349
+ return J({
5290
5350
  content: o,
5291
5351
  display: "inline-block",
5292
5352
  ...s
5293
5353
  });
5294
5354
  }
5295
- function So(o, s = {}) {
5296
- return q({
5355
+ function Vo(o, s = {}) {
5356
+ return ie({
5297
5357
  content: o,
5298
5358
  display: "inline-block",
5299
5359
  ...s
5300
5360
  });
5301
5361
  }
5302
- function wo(o = "#ddd", s = 1, e = 16) {
5303
- return Y({
5362
+ function Ro(o = "#ddd", s = 1, e = 16) {
5363
+ return J({
5304
5364
  content: "",
5305
5365
  display: "inline-block",
5306
5366
  width: e,
@@ -5310,8 +5370,8 @@ function wo(o = "#ddd", s = 1, e = 16) {
5310
5370
  verticalAlign: "middle"
5311
5371
  });
5312
5372
  }
5313
- function Co(o = "#ddd", s = 1, e = 16) {
5314
- return q({
5373
+ function Do(o = "#ddd", s = 1, e = 16) {
5374
+ return ie({
5315
5375
  content: "",
5316
5376
  display: "inline-block",
5317
5377
  width: e,
@@ -5321,8 +5381,8 @@ function Co(o = "#ddd", s = 1, e = 16) {
5321
5381
  verticalAlign: "middle"
5322
5382
  });
5323
5383
  }
5324
- function Eo(o = '"', s = '"') {
5325
- return new U({
5384
+ function Oo(o = '"', s = '"') {
5385
+ return new X({
5326
5386
  before: {
5327
5387
  content: o,
5328
5388
  fontSize: "1.2em",
@@ -5337,8 +5397,8 @@ function Eo(o = '"', s = '"') {
5337
5397
  }
5338
5398
  });
5339
5399
  }
5340
- function Mo(o = "currentColor", s = 1, e = 1) {
5341
- return q({
5400
+ function _o(o = "currentColor", s = 1, e = 1) {
5401
+ return ie({
5342
5402
  content: "",
5343
5403
  position: "absolute",
5344
5404
  bottom: 0,
@@ -5349,8 +5409,8 @@ function Mo(o = "currentColor", s = 1, e = 1) {
5349
5409
  opacity: e
5350
5410
  });
5351
5411
  }
5352
- function xo(o = "#ff3b30", s = 6, e = "") {
5353
- return q({
5412
+ function Bo(o = "#ff3b30", s = 6, e = "") {
5413
+ return ie({
5354
5414
  content: e,
5355
5415
  position: "absolute",
5356
5416
  top: -2,
@@ -5370,8 +5430,8 @@ function xo(o = "#ff3b30", s = 6, e = "") {
5370
5430
  justifyContent: "center"
5371
5431
  });
5372
5432
  }
5373
- function To(o, s = "top", e = "#333", t = "white") {
5374
- return Y({
5433
+ function Ho(o, s = "top", e = "#333", t = "white") {
5434
+ return J({
5375
5435
  content: o,
5376
5436
  position: "absolute",
5377
5437
  backgroundColor: e,
@@ -5412,8 +5472,8 @@ function To(o, s = "top", e = "#333", t = "white") {
5412
5472
  }[s]
5413
5473
  });
5414
5474
  }
5415
- function Lo(o, s = "#ff3b30", e = "white") {
5416
- return Y({
5475
+ function No(o, s = "#ff3b30", e = "white") {
5476
+ return J({
5417
5477
  content: o,
5418
5478
  position: "absolute",
5419
5479
  top: 8,
@@ -5429,7 +5489,7 @@ function Lo(o, s = "#ff3b30", e = "white") {
5429
5489
  zIndex: 10
5430
5490
  });
5431
5491
  }
5432
- function Ao(o = 20, s = "#007AFF", e = 2) {
5492
+ function zo(o = 20, s = "#007AFF", e = 2) {
5433
5493
  if (!document.getElementById("tachui-spinner-animation")) {
5434
5494
  const t = document.createElement("style");
5435
5495
  t.id = "tachui-spinner-animation", t.textContent = `
@@ -5439,7 +5499,7 @@ function Ao(o = 20, s = "#007AFF", e = 2) {
5439
5499
  }
5440
5500
  `, document.head.appendChild(t);
5441
5501
  }
5442
- return Y({
5502
+ return J({
5443
5503
  content: "",
5444
5504
  display: "inline-block",
5445
5505
  width: o,
@@ -5450,483 +5510,483 @@ function Ao(o = 20, s = "#007AFF", e = 2) {
5450
5510
  animation: "spin 1s linear infinite"
5451
5511
  });
5452
5512
  }
5453
- const ko = [
5513
+ const Fo = [
5454
5514
  // Padding
5455
- ["padding", M],
5456
- ["paddingTop", We],
5457
- ["paddingBottom", je],
5458
- ["paddingLeft", Ue],
5459
- ["paddingRight", Ge],
5460
- ["paddingLeading", Ke],
5461
- ["paddingTrailing", Ye],
5462
- ["paddingHorizontal", Xe],
5463
- ["paddingVertical", Ze],
5515
+ ["padding", x],
5516
+ ["paddingTop", Je],
5517
+ ["paddingBottom", Qe],
5518
+ ["paddingLeft", et],
5519
+ ["paddingRight", tt],
5520
+ ["paddingLeading", it],
5521
+ ["paddingTrailing", nt],
5522
+ ["paddingHorizontal", ot],
5523
+ ["paddingVertical", rt],
5464
5524
  // Margin
5465
- ["margin", x],
5466
- ["marginTop", qe],
5467
- ["marginBottom", Je],
5468
- ["marginLeft", Qe],
5469
- ["marginRight", et],
5470
- ["marginLeading", tt],
5471
- ["marginTrailing", it],
5472
- ["marginHorizontal", nt],
5473
- ["marginVertical", ot],
5525
+ ["margin", M],
5526
+ ["marginTop", st],
5527
+ ["marginBottom", at],
5528
+ ["marginLeft", lt],
5529
+ ["marginRight", ct],
5530
+ ["marginLeading", dt],
5531
+ ["marginTrailing", ft],
5532
+ ["marginHorizontal", ut],
5533
+ ["marginVertical", pt],
5474
5534
  // Size helpers
5475
- ["size", rt],
5476
- ["width", st],
5477
- ["height", at],
5478
- ["maxWidth", lt],
5479
- ["maxHeight", ft],
5480
- ["minWidth", ct],
5481
- ["minHeight", dt],
5535
+ ["size", mt],
5536
+ ["width", ht],
5537
+ ["height", yt],
5538
+ ["maxWidth", gt],
5539
+ ["maxHeight", bt],
5540
+ ["minWidth", vt],
5541
+ ["minHeight", St],
5482
5542
  // Layout + flexbox
5483
- ["aspectRatio", It],
5484
- ["fixedSize", $t],
5485
- ["frame", Vt],
5486
- ["resizable", Ht],
5487
- ["layoutPriority", Rt],
5488
- ["offset", Lt],
5489
- ["overlay", Nt],
5490
- ["position", _t],
5491
- ["absolutePosition", Dt],
5492
- ["scaleEffect", kt],
5493
- ["zIndex", Bt],
5543
+ ["aspectRatio", Ht],
5544
+ ["fixedSize", Ft],
5545
+ ["frame", Wt],
5546
+ ["resizable", Gt],
5547
+ ["layoutPriority", jt],
5548
+ ["offset", Ot],
5549
+ ["overlay", Qt],
5550
+ ["position", Xt],
5551
+ ["absolutePosition", Ut],
5552
+ ["scaleEffect", Bt],
5553
+ ["zIndex", qt],
5494
5554
  ["flexbox", I],
5495
- ["flexGrow", gt],
5496
- ["flexShrink", vt],
5497
- ["flexBasis", bt],
5498
- ["justifyContent", St],
5499
- ["alignItems", wt],
5500
- ["alignSelf", Ct],
5501
- ["gap", Et],
5502
- ["flexDirection", Mt],
5503
- ["flexWrap", xt],
5555
+ ["flexGrow", Tt],
5556
+ ["flexShrink", Lt],
5557
+ ["flexBasis", At],
5558
+ ["justifyContent", kt],
5559
+ ["alignItems", It],
5560
+ ["alignSelf", Pt],
5561
+ ["gap", $t],
5562
+ ["flexDirection", Vt],
5563
+ ["flexWrap", Rt],
5504
5564
  // Appearance
5505
- ["backgroundColor", Wt],
5506
- ["background", jt],
5507
- ["backgroundImage", Ut],
5508
- ["blendMode", Yt],
5509
- ["backgroundBlendMode", Xt],
5510
- ["compositingGroup", qt],
5511
- ["border", Qt],
5512
- ["borderTop", ei],
5513
- ["borderBottom", ii],
5514
- ["borderLeft", ni],
5515
- ["borderRight", ti],
5516
- ["clipShape", si],
5517
- ["clipped", li],
5518
- ["cornerRadius", fi],
5519
- ["foregroundColor", oi],
5520
- ["gradientText", G],
5521
- ["opacity", ci],
5522
- ["fontFamily", di],
5523
- ["fontSize", ui],
5524
- ["fontWeight", pi],
5525
- ["fontStyle", mi],
5526
- ["fontPreset", hi],
5565
+ ["backgroundColor", ii],
5566
+ ["background", ni],
5567
+ ["backgroundImage", oi],
5568
+ ["blendMode", ai],
5569
+ ["backgroundBlendMode", li],
5570
+ ["compositingGroup", di],
5571
+ ["border", ui],
5572
+ ["borderTop", pi],
5573
+ ["borderBottom", hi],
5574
+ ["borderLeft", yi],
5575
+ ["borderRight", mi],
5576
+ ["clipShape", bi],
5577
+ ["clipped", wi],
5578
+ ["cornerRadius", Ei],
5579
+ ["foregroundColor", gi],
5580
+ ["gradientText", Z],
5581
+ ["opacity", Ci],
5582
+ ["fontFamily", xi],
5583
+ ["fontSize", Mi],
5584
+ ["fontWeight", Ti],
5585
+ ["fontStyle", Li],
5586
+ ["fontPreset", Ai],
5527
5587
  // Typography
5528
- ["typography", vi],
5529
- ["textAlign", bi],
5530
- ["font", Li],
5531
- ["lineClamp", Ii],
5532
- ["wordBreak", $i],
5533
- ["letterSpacing", Ci],
5534
- ["lineHeight", wi],
5535
- ["textDecoration", Si],
5536
- ["textOverflow", Ei],
5537
- ["textTransform", Le],
5538
- ["textCase", Ti],
5539
- ["whiteSpace", Mi],
5540
- ["overflow", xi],
5541
- ["hyphens", Hi],
5542
- ["overflowWrap", Ri],
5588
+ ["typography", Pi],
5589
+ ["textAlign", $i],
5590
+ ["font", Ni],
5591
+ ["lineClamp", Wi],
5592
+ ["wordBreak", Ui],
5593
+ ["letterSpacing", Di],
5594
+ ["lineHeight", Ri],
5595
+ ["textDecoration", Vi],
5596
+ ["textOverflow", Oi],
5597
+ ["textTransform", De],
5598
+ ["textCase", Hi],
5599
+ ["whiteSpace", _i],
5600
+ ["overflow", Bi],
5601
+ ["hyphens", Xi],
5602
+ ["overflowWrap", Ki],
5543
5603
  // Interaction
5544
- ["allowsHitTesting", le],
5545
- ["focusable", se],
5546
- ["activatable", Cn],
5547
- ["editable", En],
5548
- ["focused", Sn],
5549
- ["keyboardShortcut", Ae],
5550
- ["onHover", Gi],
5551
- ["onMouseEnter", Qi],
5552
- ["onMouseLeave", en],
5553
- ["onMouseDown", tn],
5554
- ["onMouseUp", nn],
5555
- ["onDoubleClick", on],
5556
- ["onContextMenu", rn],
5557
- ["onKeyDown", cn],
5558
- ["onKeyUp", fn],
5559
- ["onKeyPress", dn],
5560
- ["onFocus", mn],
5561
- ["onBlur", hn],
5562
- ["onContinuousHover", ae],
5563
- ["onLongPressGesture", gn],
5564
- ["scroll", Oi],
5565
- ["scrollBehavior", _i],
5566
- ["overscrollBehavior", Bi],
5567
- ["overscrollBehaviorX", Ni],
5568
- ["overscrollBehaviorY", zi],
5569
- ["scrollMargin", Fi],
5570
- ["scrollPadding", Wi],
5571
- ["scrollSnap", ji],
5572
- ["highPriorityGesture", Tn],
5573
- ["simultaneousGesture", Ln],
5574
- ["onTap", An],
5575
- ["onScroll", kn],
5576
- ["onWheel", In],
5577
- ["onInput", Pn],
5578
- ["onChange", $n],
5579
- ["onCopy", Vn],
5580
- ["onCut", Rn],
5581
- ["onPaste", Dn],
5582
- ["onSelect", Hn],
5583
- ["onTouchStart", On],
5584
- ["onTouchMove", _n],
5585
- ["onTouchEnd", Bn],
5586
- ["onSwipeLeft", Nn],
5587
- ["onSwipeRight", zn],
5588
- ["disabled", Fn],
5604
+ ["allowsHitTesting", ye],
5605
+ ["focusable", me],
5606
+ ["activatable", Dn],
5607
+ ["editable", On],
5608
+ ["focused", Vn],
5609
+ ["keyboardShortcut", Oe],
5610
+ ["onHover", sn],
5611
+ ["onMouseEnter", pn],
5612
+ ["onMouseLeave", mn],
5613
+ ["onMouseDown", hn],
5614
+ ["onMouseUp", yn],
5615
+ ["onDoubleClick", gn],
5616
+ ["onContextMenu", vn],
5617
+ ["onKeyDown", Cn],
5618
+ ["onKeyUp", En],
5619
+ ["onKeyPress", xn],
5620
+ ["onFocus", Ln],
5621
+ ["onBlur", An],
5622
+ ["onContinuousHover", he],
5623
+ ["onLongPressGesture", In],
5624
+ ["scroll", Zi],
5625
+ ["scrollBehavior", qi],
5626
+ ["overscrollBehavior", Ji],
5627
+ ["overscrollBehaviorX", Qi],
5628
+ ["overscrollBehaviorY", en],
5629
+ ["scrollMargin", tn],
5630
+ ["scrollPadding", nn],
5631
+ ["scrollSnap", on],
5632
+ ["highPriorityGesture", Hn],
5633
+ ["simultaneousGesture", Nn],
5634
+ ["onTap", zn],
5635
+ ["onScroll", Fn],
5636
+ ["onWheel", Wn],
5637
+ ["onInput", jn],
5638
+ ["onChange", Un],
5639
+ ["onCopy", Gn],
5640
+ ["onCut", Kn],
5641
+ ["onPaste", Yn],
5642
+ ["onSelect", Xn],
5643
+ ["onTouchStart", Zn],
5644
+ ["onTouchMove", qn],
5645
+ ["onTouchEnd", Jn],
5646
+ ["onSwipeLeft", Qn],
5647
+ ["onSwipeRight", eo],
5648
+ ["disabled", to],
5589
5649
  // Utility
5590
- ["css", Zn],
5591
- ["cssProperty", qn],
5592
- ["cssVariable", Jn],
5593
- ["utility", Wn],
5594
- ["cursor", jn],
5595
- ["display", Kn],
5596
- ["overflowX", Gn],
5597
- ["overflowY", Un],
5598
- ["outline", Yn],
5599
- ["outlineOffset", Xn],
5600
- ["asHTML", eo],
5601
- ["navigationTitle", to],
5602
- ["navigationBarHidden", io],
5603
- ["navigationBarItems", no],
5604
- ["animation", mt],
5605
- ["transform", pt],
5606
- ["transitions", ht],
5607
- ["transition", ut],
5650
+ ["css", co],
5651
+ ["cssProperty", fo],
5652
+ ["cssVariable", uo],
5653
+ ["utility", io],
5654
+ ["cursor", no],
5655
+ ["display", so],
5656
+ ["overflowX", ro],
5657
+ ["overflowY", oo],
5658
+ ["outline", ao],
5659
+ ["outlineOffset", lo],
5660
+ ["asHTML", mo],
5661
+ ["navigationTitle", ho],
5662
+ ["navigationBarHidden", yo],
5663
+ ["navigationBarItems", go],
5664
+ ["animation", Et],
5665
+ ["transform", Ct],
5666
+ ["transitions", xt],
5667
+ ["transition", wt],
5608
5668
  // Attributes
5609
- ["aria", K],
5610
- ["ariaLabel", fo],
5611
- ["ariaLive", uo],
5612
- ["ariaDescribedBy", po],
5613
- ["ariaModal", mo],
5614
- ["role", co],
5615
- ["customProperties", ho],
5616
- ["customProperty", yo],
5617
- ["cssVariables", go],
5618
- ["id", ie],
5619
- ["elementId", ie],
5620
- ["viewId", ie],
5621
- ["data", so],
5622
- ["tabIndex", lo],
5669
+ ["aria", q],
5670
+ ["ariaLabel", xo],
5671
+ ["ariaLive", Mo],
5672
+ ["ariaDescribedBy", To],
5673
+ ["ariaModal", Lo],
5674
+ ["role", Eo],
5675
+ ["customProperties", Ao],
5676
+ ["customProperty", ko],
5677
+ ["cssVariables", Io],
5678
+ ["id", de],
5679
+ ["elementId", de],
5680
+ ["viewId", de],
5681
+ ["data", So],
5682
+ ["tabIndex", Co],
5623
5683
  // Elements / pseudo elements
5624
- ["before", Y],
5625
- ["after", q],
5626
- ["pseudoElements", vo],
5627
- ["iconBefore", bo],
5628
- ["iconAfter", So],
5629
- ["lineBefore", wo],
5630
- ["lineAfter", Co],
5631
- ["quotes", Eo],
5632
- ["underline", Mo],
5633
- ["badge", xo],
5634
- ["tooltip", To],
5635
- ["cornerRibbon", Lo],
5636
- ["spinner", Ao],
5684
+ ["before", J],
5685
+ ["after", ie],
5686
+ ["pseudoElements", Po],
5687
+ ["iconBefore", $o],
5688
+ ["iconAfter", Vo],
5689
+ ["lineBefore", Ro],
5690
+ ["lineAfter", Do],
5691
+ ["quotes", Oo],
5692
+ ["underline", _o],
5693
+ ["badge", Bo],
5694
+ ["tooltip", Ho],
5695
+ ["cornerRibbon", No],
5696
+ ["spinner", zo],
5637
5697
  // Lifecycle
5638
- ["task", yt]
5698
+ ["task", Mt]
5639
5699
  ];
5640
- function Io(o) {
5641
- const s = o?.registry ?? Ve;
5700
+ function Wo(o) {
5701
+ const s = o?.registry ?? ze;
5642
5702
  s.registerPlugin?.({
5643
5703
  name: "@tachui/modifiers",
5644
- version: Fe,
5704
+ version: qe,
5645
5705
  author: "tachUI Team",
5646
5706
  verified: !0
5647
- }), ko.forEach(([e, t]) => {
5707
+ }), Fo.forEach(([e, t]) => {
5648
5708
  s.has(e) || s.register(e, t);
5649
5709
  });
5650
5710
  }
5651
- Io();
5711
+ Wo();
5652
5712
  export {
5653
- Cr as $,
5654
- Ce as A,
5655
- Bt as B,
5656
- ve as C,
5657
- Nt as D,
5658
- Li as E,
5659
- $ as F,
5660
- vi as G,
5661
- bi as H,
5662
- Le as I,
5663
- Si as J,
5664
- gr as K,
5665
- vr as L,
5666
- P as M,
5667
- wi as N,
5668
- Tt as O,
5669
- Ot as P,
5670
- Ci as Q,
5671
- br as R,
5672
- At as S,
5713
+ Dr as $,
5714
+ Ie as A,
5715
+ qt as B,
5716
+ Te as C,
5717
+ Qt as D,
5718
+ Ni as E,
5719
+ R as F,
5720
+ Pi as G,
5721
+ $i as H,
5722
+ De as I,
5723
+ Vi as J,
5724
+ Ir as K,
5725
+ Pr as L,
5726
+ V as M,
5727
+ Ri as N,
5728
+ Dt as O,
5729
+ Yt as P,
5730
+ Di as Q,
5731
+ $r as R,
5732
+ _t as S,
5673
5733
  k as T,
5674
- Ei as U,
5675
- Mi as V,
5676
- xi as W,
5677
- Ti as X,
5678
- Sr as Y,
5679
- Ee as Z,
5680
- wr as _,
5681
- gt as a,
5682
- Qi as a$,
5683
- ki as a0,
5684
- Ii as a1,
5685
- Pi as a2,
5686
- $i as a3,
5687
- Vi as a4,
5688
- Ri as a5,
5689
- Di as a6,
5690
- Hi as a7,
5691
- Me as a8,
5692
- Ft as a9,
5693
- pr as aA,
5694
- mr as aB,
5695
- hr as aC,
5696
- Te as aD,
5697
- oi as aE,
5698
- yr as aF,
5699
- ri as aG,
5700
- si as aH,
5701
- ai as aI,
5702
- li as aJ,
5703
- O as aK,
5704
- Oi as aL,
5705
- _i as aM,
5706
- Bi as aN,
5707
- Ni as aO,
5708
- zi as aP,
5709
- Fi as aQ,
5710
- Wi as aR,
5711
- ji as aS,
5712
- Ui as aT,
5713
- Gi as aU,
5714
- Ki as aV,
5715
- Yi as aW,
5716
- Xi as aX,
5717
- Zi as aY,
5718
- qi as aZ,
5719
- Ji as a_,
5720
- xe as aa,
5721
- Wt as ab,
5722
- jt as ac,
5723
- Ut as ad,
5724
- rr as ae,
5725
- G as af,
5726
- sr as ag,
5727
- ar as ah,
5728
- lr as ai,
5729
- cr as aj,
5730
- fr as ak,
5731
- Gt as al,
5732
- Kt as am,
5733
- Yt as an,
5734
- Xt as ao,
5735
- Zt as ap,
5736
- qt as aq,
5737
- D as ar,
5738
- Jt as as,
5739
- Qt as at,
5740
- ei as au,
5741
- ti as av,
5742
- ii as aw,
5743
- ni as ax,
5744
- dr as ay,
5745
- ur as az,
5746
- ko as b,
5747
- Kn as b$,
5748
- en as b0,
5749
- tn as b1,
5750
- nn as b2,
5751
- on as b3,
5752
- rn as b4,
5753
- sn as b5,
5754
- an as b6,
5755
- ln as b7,
5756
- cn as b8,
5757
- fn as b9,
5758
- An as bA,
5759
- Ar as bB,
5760
- kr as bC,
5761
- kn as bD,
5762
- Ir as bE,
5763
- Pr as bF,
5764
- $r as bG,
5765
- Vr as bH,
5766
- Rr as bI,
5767
- In as bJ,
5768
- Pn as bK,
5769
- $n as bL,
5770
- Vn as bM,
5771
- Rn as bN,
5772
- Dn as bO,
5773
- Hn as bP,
5774
- On as bQ,
5775
- _n as bR,
5776
- Bn as bS,
5777
- Nn as bT,
5778
- zn as bU,
5779
- Fn as bV,
5780
- F as bW,
5781
- Wn as bX,
5782
- jn as bY,
5783
- Un as bZ,
5784
- Gn as b_,
5785
- dn as ba,
5786
- un as bb,
5787
- pn as bc,
5788
- mn as bd,
5789
- hn as be,
5790
- yn as bf,
5791
- gn as bg,
5792
- vn as bh,
5793
- Ae as bi,
5794
- Er as bj,
5795
- bn as bk,
5796
- Sn as bl,
5797
- wn as bm,
5798
- se as bn,
5799
- Cn as bo,
5800
- En as bp,
5801
- Mn as bq,
5802
- ae as br,
5803
- Mr as bs,
5804
- xr as bt,
5805
- xn as bu,
5806
- le as bv,
5807
- Tr as bw,
5808
- Lr as bx,
5809
- Tn as by,
5810
- Ln as bz,
5811
- vt as c,
5812
- it as c$,
5813
- Yn as c0,
5814
- Xn as c1,
5815
- ee as c2,
5816
- Zn as c3,
5817
- qn as c4,
5818
- Jn as c5,
5819
- Dr as c6,
5820
- X as c7,
5821
- Hr as c8,
5822
- Qn as c9,
5823
- uo as cA,
5824
- po as cB,
5825
- mo as cC,
5826
- Z as cD,
5827
- ho as cE,
5828
- yo as cF,
5829
- go as cG,
5830
- Or as cH,
5831
- _r as cI,
5832
- V as cJ,
5833
- M as cK,
5834
- We as cL,
5835
- je as cM,
5836
- Ue as cN,
5837
- Ge as cO,
5838
- Ke as cP,
5839
- Ye as cQ,
5840
- Xe as cR,
5841
- Ze as cS,
5842
- Xo as cT,
5843
- R as cU,
5844
- x as cV,
5845
- qe as cW,
5846
- Je as cX,
5847
- Qe as cY,
5848
- et as cZ,
5849
- tt as c_,
5850
- eo as ca,
5851
- ke as cb,
5852
- U as cc,
5853
- Y as cd,
5854
- q as ce,
5855
- vo as cf,
5856
- bo as cg,
5857
- So as ch,
5858
- wo as ci,
5859
- Co as cj,
5860
- Eo as ck,
5861
- Mo as cl,
5862
- xo as cm,
5863
- To as cn,
5864
- Lo as co,
5865
- Ao as cp,
5866
- oo as cq,
5867
- ie as cr,
5868
- ro as cs,
5869
- so as ct,
5870
- ao as cu,
5871
- lo as cv,
5872
- ne as cw,
5873
- K as cx,
5874
- co as cy,
5875
- fo as cz,
5876
- bt as d,
5877
- nt as d0,
5878
- ot as d1,
5879
- Zo as d2,
5880
- z as d3,
5881
- rt as d4,
5882
- st as d5,
5883
- at as d6,
5884
- lt as d7,
5885
- ct as d8,
5886
- ft as d9,
5887
- dt as da,
5888
- te as db,
5889
- ut as dc,
5890
- Yo as dd,
5891
- Fe as de,
5892
- Bo as df,
5893
- zo as dg,
5894
- Wo as dh,
5895
- Be as di,
5896
- Go as dj,
5897
- to as dk,
5898
- io as dl,
5899
- no as dm,
5900
- pt as dn,
5901
- mt as dp,
5902
- ht as dq,
5903
- yt as dr,
5734
+ Oi as U,
5735
+ _i as V,
5736
+ Bi as W,
5737
+ Hi as X,
5738
+ Vr as Y,
5739
+ Pe as Z,
5740
+ Rr as _,
5741
+ Tt as a,
5742
+ pn as a$,
5743
+ Fi as a0,
5744
+ Wi as a1,
5745
+ ji as a2,
5746
+ Ui as a3,
5747
+ Gi as a4,
5748
+ Ki as a5,
5749
+ Yi as a6,
5750
+ Xi as a7,
5751
+ $e as a8,
5752
+ ti as a9,
5753
+ Tr as aA,
5754
+ Lr as aB,
5755
+ Ar as aC,
5756
+ Re as aD,
5757
+ gi as aE,
5758
+ kr as aF,
5759
+ vi as aG,
5760
+ bi as aH,
5761
+ Si as aI,
5762
+ wi as aJ,
5763
+ H as aK,
5764
+ Zi as aL,
5765
+ qi as aM,
5766
+ Ji as aN,
5767
+ Qi as aO,
5768
+ en as aP,
5769
+ tn as aQ,
5770
+ nn as aR,
5771
+ on as aS,
5772
+ rn as aT,
5773
+ sn as aU,
5774
+ an as aV,
5775
+ ln as aW,
5776
+ cn as aX,
5777
+ dn as aY,
5778
+ fn as aZ,
5779
+ un as a_,
5780
+ Ve as aa,
5781
+ ii as ab,
5782
+ ni as ac,
5783
+ oi as ad,
5784
+ vr as ae,
5785
+ Z as af,
5786
+ br as ag,
5787
+ Sr as ah,
5788
+ wr as ai,
5789
+ Cr as aj,
5790
+ Er as ak,
5791
+ ri as al,
5792
+ si as am,
5793
+ ai as an,
5794
+ li as ao,
5795
+ ci as ap,
5796
+ di as aq,
5797
+ _ as ar,
5798
+ fi as as,
5799
+ ui as at,
5800
+ pi as au,
5801
+ mi as av,
5802
+ hi as aw,
5803
+ yi as ax,
5804
+ xr as ay,
5805
+ Mr as az,
5806
+ Fo as b,
5807
+ so as b$,
5808
+ mn as b0,
5809
+ hn as b1,
5810
+ yn as b2,
5811
+ gn as b3,
5812
+ vn as b4,
5813
+ bn as b5,
5814
+ Sn as b6,
5815
+ wn as b7,
5816
+ Cn as b8,
5817
+ En as b9,
5818
+ zn as bA,
5819
+ zr as bB,
5820
+ Fr as bC,
5821
+ Fn as bD,
5822
+ Wr as bE,
5823
+ jr as bF,
5824
+ Ur as bG,
5825
+ Gr as bH,
5826
+ Kr as bI,
5827
+ Wn as bJ,
5828
+ jn as bK,
5829
+ Un as bL,
5830
+ Gn as bM,
5831
+ Kn as bN,
5832
+ Yn as bO,
5833
+ Xn as bP,
5834
+ Zn as bQ,
5835
+ qn as bR,
5836
+ Jn as bS,
5837
+ Qn as bT,
5838
+ eo as bU,
5839
+ to as bV,
5840
+ G as bW,
5841
+ io as bX,
5842
+ no as bY,
5843
+ oo as bZ,
5844
+ ro as b_,
5845
+ xn as ba,
5846
+ Mn as bb,
5847
+ Tn as bc,
5848
+ Ln as bd,
5849
+ An as be,
5850
+ kn as bf,
5851
+ In as bg,
5852
+ Pn as bh,
5853
+ Oe as bi,
5854
+ Or as bj,
5855
+ $n as bk,
5856
+ Vn as bl,
5857
+ Rn as bm,
5858
+ me as bn,
5859
+ Dn as bo,
5860
+ On as bp,
5861
+ _n as bq,
5862
+ he as br,
5863
+ _r as bs,
5864
+ Br as bt,
5865
+ Bn as bu,
5866
+ ye as bv,
5867
+ Hr as bw,
5868
+ Nr as bx,
5869
+ Hn as by,
5870
+ Nn as bz,
5871
+ Lt as c,
5872
+ ft as c$,
5873
+ ao as c0,
5874
+ lo as c1,
5875
+ ae as c2,
5876
+ co as c3,
5877
+ fo as c4,
5878
+ uo as c5,
5879
+ Yr as c6,
5880
+ ee as c7,
5881
+ Xr as c8,
5882
+ po as c9,
5883
+ Mo as cA,
5884
+ To as cB,
5885
+ Lo as cC,
5886
+ te as cD,
5887
+ Ao as cE,
5888
+ ko as cF,
5889
+ Io as cG,
5890
+ Zr as cH,
5891
+ qr as cI,
5892
+ D as cJ,
5893
+ x as cK,
5894
+ Je as cL,
5895
+ Qe as cM,
5896
+ et as cN,
5897
+ tt as cO,
5898
+ it as cP,
5899
+ nt as cQ,
5900
+ ot as cR,
5901
+ rt as cS,
5902
+ lr as cT,
5903
+ O as cU,
5904
+ M as cV,
5905
+ st as cW,
5906
+ at as cX,
5907
+ lt as cY,
5908
+ ct as cZ,
5909
+ dt as c_,
5910
+ mo as ca,
5911
+ _e as cb,
5912
+ X as cc,
5913
+ J as cd,
5914
+ ie as ce,
5915
+ Po as cf,
5916
+ $o as cg,
5917
+ Vo as ch,
5918
+ Ro as ci,
5919
+ Do as cj,
5920
+ Oo as ck,
5921
+ _o as cl,
5922
+ Bo as cm,
5923
+ Ho as cn,
5924
+ No as co,
5925
+ zo as cp,
5926
+ vo as cq,
5927
+ de as cr,
5928
+ bo as cs,
5929
+ So as ct,
5930
+ wo as cu,
5931
+ Co as cv,
5932
+ fe as cw,
5933
+ q as cx,
5934
+ Eo as cy,
5935
+ xo as cz,
5936
+ At as d,
5937
+ ut as d0,
5938
+ pt as d1,
5939
+ cr as d2,
5940
+ U as d3,
5941
+ mt as d4,
5942
+ ht as d5,
5943
+ yt as d6,
5944
+ gt as d7,
5945
+ vt as d8,
5946
+ bt as d9,
5947
+ St as da,
5948
+ le as db,
5949
+ wt as dc,
5950
+ ar as dd,
5951
+ qe as de,
5952
+ Jo as df,
5953
+ er as dg,
5954
+ ir as dh,
5955
+ Ye as di,
5956
+ rr as dj,
5957
+ ho as dk,
5958
+ yo as dl,
5959
+ go as dm,
5960
+ Ct as dn,
5961
+ Et as dp,
5962
+ xt as dq,
5963
+ Mt as dr,
5904
5964
  w as ds,
5905
- tr as dt,
5906
- ir as du,
5965
+ mr as dt,
5966
+ hr as du,
5907
5967
  C as dv,
5908
- nr as dw,
5909
- or as dx,
5910
- qo as e,
5968
+ yr as dw,
5969
+ gr as dx,
5970
+ dr as e,
5911
5971
  I as f,
5912
- wt as g,
5913
- Ct as h,
5914
- Et as i,
5915
- St as j,
5916
- Jo as k,
5917
- Qo as l,
5918
- Mt as m,
5919
- xt as n,
5920
- er as o,
5921
- Lt as p,
5922
- It as q,
5923
- Io as r,
5924
- kt as s,
5925
- Pt as t,
5926
- $t as u,
5927
- Vt as v,
5928
- Rt as w,
5929
- Dt as x,
5930
- Ht as y,
5931
- _t as z
5972
+ It as g,
5973
+ Pt as h,
5974
+ $t as i,
5975
+ kt as j,
5976
+ fr as k,
5977
+ ur as l,
5978
+ Vt as m,
5979
+ Rt as n,
5980
+ pr as o,
5981
+ Ot as p,
5982
+ Ht as q,
5983
+ Wo as r,
5984
+ Bt as s,
5985
+ zt as t,
5986
+ Ft as u,
5987
+ Wt as v,
5988
+ jt as w,
5989
+ Ut as x,
5990
+ Gt as y,
5991
+ Xt as z
5932
5992
  };