pixelagent 0.1.26 → 0.1.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { jsxs as u, Fragment as Z, jsx as a } from "react/jsx-runtime";
2
- import { useState as S, useEffect as _, useRef as W, useMemo as se, useLayoutEffect as un, useCallback as T, useId as nt } from "react";
3
- import { getElementDisplayLabel as at, getCssSelector as rt, getRelevantComputedStyles as Ne, getEditableTextInfo as xe, captureTextSnapshot as je, captureInlineStyles as Ye, restoreInlineStyles as Se, restoreTextSnapshot as Ee, getPreviewTargets as Oe, clearTailwindStatePreview as $e, applyTailwindStatePreview as Xe, setEditableTextPreview as ut, readStateRuleDeclarations as fn, readReactSource as ot, detectStylingSystem as Ft, countElementInstances as Bt, getScopeSelector as _t, copyToClipboard as Ht, getWindowSelectionText as Wt, getNearestReactComponentName as gn, getDomPath as hn, resolveElementFromEntry as Vt, getAnnotationSessionDisplay as Ut, loadAnnotationSession as mn, saveAnnotationSession as xn, DEFAULT_PIXEL_AGENT_UI_SETTINGS as bn, readHostThemeFromDocument as ft, resolvePixelAgentChrome as vn, applyHostThemeToDocument as wn, pixelAgentRootAttributes as yn, getElementsInArea as kn, formatAllAnnotations as Nn, formatAnnotation as Cn } from "@pixelagent/shared";
2
+ import { useState as S, useEffect as _, useRef as V, useMemo as se, useLayoutEffect as un, useCallback as T, useId as nt } from "react";
3
+ import { getElementDisplayLabel as at, getCssSelector as rt, getRelevantComputedStyles as Ne, getEditableTextInfo as xe, captureTextSnapshot as je, captureInlineStyles as Ye, restoreInlineStyles as Se, restoreTextSnapshot as Ee, getPreviewTargets as De, clearTailwindStatePreview as $e, applyTailwindStatePreview as Xe, setEditableTextPreview as ut, readStateRuleDeclarations as fn, readReactSource as ot, detectStylingSystem as Ft, countElementInstances as Bt, getScopeSelector as _t, copyToClipboard as Ht, getWindowSelectionText as Vt, getNearestReactComponentName as gn, getDomPath as hn, resolveElementFromEntry as Wt, getAnnotationSessionDisplay as Ut, loadAnnotationSession as mn, saveAnnotationSession as xn, DEFAULT_PIXEL_AGENT_UI_SETTINGS as bn, readHostThemeFromDocument as ft, resolvePixelAgentChrome as vn, applyHostThemeToDocument as wn, pixelAgentRootAttributes as yn, getElementsInArea as kn, formatAllAnnotations as Nn, formatAnnotation as Cn } from "@pixelagent/shared";
4
4
  export * from "@pixelagent/shared";
5
5
  import { createPortal as Le } from "react-dom";
6
6
  function jt({
@@ -82,11 +82,11 @@ function An(e, t, n, r = Yt) {
82
82
  const d = p.createImageData(i, s), g = d.data, m = Math.min(0.5, n / Math.min(e, t)), c = 0.3, f = 0.2, h = Math.max(0.4, m + 0.1);
83
83
  let C = 0;
84
84
  const k = new Float32Array(i * s * 2);
85
- let D = 0;
85
+ let O = 0;
86
86
  for (let w = 0; w < s; w++)
87
87
  for (let A = 0; A < i; A++) {
88
88
  const v = A / i - 0.5, N = w / s - 0.5, P = zn(v, N, c, f, h), y = gt(0.8, 0, P - 0.15), M = gt(0, 1, y), z = (v * M + 0.5) * i - A, E = (N * M + 0.5) * s - w;
89
- Math.abs(z) > C && (C = Math.abs(z)), Math.abs(E) > C && (C = Math.abs(E)), k[D++] = z, k[D++] = E;
89
+ Math.abs(z) > C && (C = Math.abs(z)), Math.abs(E) > C && (C = Math.abs(E)), k[O++] = z, k[O++] = E;
90
90
  }
91
91
  if (C === 0) return null;
92
92
  C *= 0.4 * r;
@@ -128,6 +128,11 @@ function Ln(e, t = "default") {
128
128
  };
129
129
  }
130
130
  let En = 0;
131
+ function $n(e) {
132
+ return e.some(
133
+ (t) => t.attributeName !== null && t.oldValue !== t.target.getAttribute(t.attributeName)
134
+ );
135
+ }
131
136
  function Gt({
132
137
  shape: e = "rect",
133
138
  cornerRadius: t,
@@ -137,10 +142,10 @@ function Gt({
137
142
  style: i,
138
143
  children: s
139
144
  }) {
140
- const l = t ?? (e === "capsule" ? 9999 : 20), p = r === "enhanced" ? Mn : Yt, d = W(null), g = W(null), m = W(!1), c = W(null), f = se(() => `pa-lg-${++En}`, []), [h, C] = S(null), [k, D] = S(null);
145
+ const l = t ?? (e === "capsule" ? 9999 : 20), p = r === "enhanced" ? Mn : Yt, d = V(null), g = V(null), m = V(!1), c = V(null), f = se(() => `pa-lg-${++En}`, []), [h, C] = S(null), [k, O] = S(null);
141
146
  _(() => {
142
147
  const v = !Xt();
143
- D(v), v && (import("./captureBehind-DUL_bR7u.js"), import("./glassDisplacementWebGL-mRLN1KMg.js"));
148
+ O(v), v && (import("./captureBehind-Cz9XErY8.js"), import("./glassDisplacementWebGL-mRLN1KMg.js"));
144
149
  }, []);
145
150
  const [x, w] = S(0);
146
151
  un(() => {
@@ -177,7 +182,7 @@ function Gt({
177
182
  let y = c.current;
178
183
  if (!y) {
179
184
  const [z, E] = await Promise.all([
180
- import("./captureBehind-DUL_bR7u.js"),
185
+ import("./captureBehind-Cz9XErY8.js"),
181
186
  import("./glassDisplacementWebGL-mRLN1KMg.js")
182
187
  ]);
183
188
  if (P) return;
@@ -228,15 +233,18 @@ function Gt({
228
233
  let v = !1;
229
234
  const N = async () => {
230
235
  if (v) return;
231
- const { invalidateCaptureCache: M } = await import("./captureBehind-DUL_bR7u.js");
236
+ const { invalidateCaptureCache: M } = await import("./captureBehind-Cz9XErY8.js");
232
237
  v || (M(), w((z) => z + 1));
233
238
  }, P = () => {
234
239
  N();
235
240
  };
236
241
  window.addEventListener("resize", P);
237
- const y = new MutationObserver(() => void N());
242
+ const y = new MutationObserver((M) => {
243
+ $n(M) && N();
244
+ });
238
245
  return y.observe(document.documentElement, {
239
246
  attributes: !0,
247
+ attributeOldValue: !0,
240
248
  attributeFilter: ["data-theme", "class"]
241
249
  }), () => {
242
250
  v = !0, window.removeEventListener("resize", P), y.disconnect();
@@ -367,7 +375,7 @@ function it({
367
375
  defaultPosition: e = null,
368
376
  computeDefaultPosition: t
369
377
  } = {}) {
370
- const [n, r] = S(e), [o, i] = S(!1), s = W(null), l = W(null), p = T(() => {
378
+ const [n, r] = S(e), [o, i] = S(!1), s = V(null), l = V(null), p = T(() => {
371
379
  if (n !== null) return;
372
380
  const f = l.current;
373
381
  if (!f) return;
@@ -415,7 +423,7 @@ function it({
415
423
  [n]
416
424
  ), g = T((f) => {
417
425
  if (!s.current || s.current.pointerId !== f.pointerId) return;
418
- const h = l.current, C = (h == null ? void 0 : h.offsetWidth) ?? 320, k = (h == null ? void 0 : h.offsetHeight) ?? 48, D = f.clientX - s.current.startX, x = f.clientY - s.current.startY, w = Math.max(8, Math.min(window.innerWidth - C - 8, s.current.originX + D)), A = Math.max(8, Math.min(window.innerHeight - k - 8, s.current.originY + x));
426
+ const h = l.current, C = (h == null ? void 0 : h.offsetWidth) ?? 320, k = (h == null ? void 0 : h.offsetHeight) ?? 48, O = f.clientX - s.current.startX, x = f.clientY - s.current.startY, w = Math.max(8, Math.min(window.innerWidth - C - 8, s.current.originX + O)), A = Math.max(8, Math.min(window.innerHeight - k - 8, s.current.originY + x));
419
427
  r({ x: w, y: A });
420
428
  }, []), m = T((f) => {
421
429
  if (!(!s.current || s.current.pointerId !== f.pointerId)) {
@@ -446,7 +454,7 @@ function it({
446
454
  }
447
455
  };
448
456
  }
449
- function $n({ className: e }) {
457
+ function Pn({ className: e }) {
450
458
  return /* @__PURE__ */ u("svg", { className: e, width: "16", height: "16", viewBox: "0 0 16 16", "aria-hidden": "true", children: [
451
459
  /* @__PURE__ */ a(
452
460
  "path",
@@ -472,7 +480,7 @@ function $n({ className: e }) {
472
480
  )
473
481
  ] });
474
482
  }
475
- function Pn({ className: e }) {
483
+ function Rn({ className: e }) {
476
484
  return /* @__PURE__ */ u("svg", { className: e, width: "16", height: "16", viewBox: "0 0 16 16", "aria-hidden": "true", children: [
477
485
  /* @__PURE__ */ a(
478
486
  "path",
@@ -502,7 +510,7 @@ function de(e) {
502
510
  const t = e.trim().match(/^(-?\d+(?:\.\d+)?)px$/i);
503
511
  return t ? parseFloat(t[1]) : null;
504
512
  }
505
- function Rn(e) {
513
+ function Tn(e) {
506
514
  const t = e.trim();
507
515
  if (!t) return null;
508
516
  if (t.endsWith("%")) {
@@ -535,12 +543,12 @@ function fe(e) {
535
543
  function Jt(e) {
536
544
  return e === "" || e === "em" || e === "rem" ? 0.1 : 1;
537
545
  }
538
- function Tn(e, t) {
546
+ function In(e, t) {
539
547
  var o;
540
548
  const n = ((o = fe(e)) == null ? void 0 : o.unit) ?? "px";
541
549
  return `${Jt(n) < 1 ? Math.round(t * 10) / 10 : Math.round(t)}${n}`;
542
550
  }
543
- const In = {
551
+ const On = {
544
552
  padding: { kind: "uniform-px", min: 0, max: 80, step: 1 },
545
553
  margin: { kind: "uniform-px", min: 0, max: 80, step: 1 },
546
554
  width: { kind: "length", min: 0 },
@@ -558,7 +566,7 @@ function Ge(e, t, n) {
558
566
  var r;
559
567
  switch (n.kind) {
560
568
  case "opacity":
561
- return Rn(t);
569
+ return Tn(t);
562
570
  case "px":
563
571
  return de(t);
564
572
  case "uniform-px":
@@ -580,7 +588,7 @@ function Dn(e, t, n) {
580
588
  return String(t);
581
589
  }
582
590
  }
583
- const On = /* @__PURE__ */ new Set([
591
+ const Fn = /* @__PURE__ */ new Set([
584
592
  "h1",
585
593
  "h2",
586
594
  "h3",
@@ -600,7 +608,7 @@ const On = /* @__PURE__ */ new Set([
600
608
  "blockquote",
601
609
  "cite",
602
610
  "figcaption"
603
- ]), Fn = /* @__PURE__ */ new Set(["button", "input", "select", "textarea"]), Bn = /* @__PURE__ */ new Set(["img", "video", "canvas", "svg", "picture"]), _n = /* @__PURE__ */ new Set([
611
+ ]), Bn = /* @__PURE__ */ new Set(["button", "input", "select", "textarea"]), _n = /* @__PURE__ */ new Set(["img", "video", "canvas", "svg", "picture"]), Hn = /* @__PURE__ */ new Set([
604
612
  "div",
605
613
  "section",
606
614
  "article",
@@ -617,7 +625,7 @@ const On = /* @__PURE__ */ new Set([
617
625
  "summary",
618
626
  "fieldset"
619
627
  ]);
620
- function Hn(e) {
628
+ function Vn(e) {
621
629
  const t = (e ?? "").trim().toLowerCase();
622
630
  return !(!t || t === "transparent" || t === "rgba(0, 0, 0, 0)");
623
631
  }
@@ -625,16 +633,16 @@ function Wn(e) {
625
633
  const t = (e["border-style"] ?? "").trim().toLowerCase();
626
634
  return t && t !== "none" ? !0 : Kt(e["border-width"] ?? "");
627
635
  }
628
- function Vn(e, t, n) {
636
+ function Un(e, t, n) {
629
637
  const r = e.toLowerCase(), o = /* @__PURE__ */ new Set(), i = (s) => {
630
638
  o.size < 2 && o.add(s);
631
639
  };
632
- return t !== "none" ? (i("content"), i("typography"), o) : On.has(r) ? (i("typography"), o) : Fn.has(r) ? (i("layout"), i("typography"), o) : Bn.has(r) ? (i("layout"), o) : _n.has(r) ? (i("layout"), Wn(n) ? i("border") : Hn(n["background-color"]) && i("fill"), o) : r === "hr" ? (i("border"), o) : (i("layout"), o);
640
+ return t !== "none" ? (i("content"), i("typography"), o) : Fn.has(r) ? (i("typography"), o) : Bn.has(r) ? (i("layout"), i("typography"), o) : _n.has(r) ? (i("layout"), o) : Hn.has(r) ? (i("layout"), Wn(n) ? i("border") : Vn(n["background-color"]) && i("fill"), o) : r === "hr" ? (i("border"), o) : (i("layout"), o);
633
641
  }
634
- function Un(e, t, n) {
635
- return Vn(e.tagName, t, n);
642
+ function jn(e, t, n) {
643
+ return Un(e.tagName, t, n);
636
644
  }
637
- function jn(e, t) {
645
+ function Yn(e, t) {
638
646
  return e.has(t);
639
647
  }
640
648
  const Ce = (e, t, n) => Math.min(n, Math.max(t, e));
@@ -668,7 +676,7 @@ function Be(e) {
668
676
  const t = (n) => Ce(Math.round(n), 0, 255).toString(16).padStart(2, "0");
669
677
  return `#${t(e.r)}${t(e.g)}${t(e.b)}`;
670
678
  }
671
- function Yn(e) {
679
+ function Xn(e) {
672
680
  return `rgb(${e.r}, ${e.g}, ${e.b})`;
673
681
  }
674
682
  function Zt({ r: e, g: t, b: n }) {
@@ -692,36 +700,36 @@ function ht(e) {
692
700
  const t = Me(e);
693
701
  return t ? Zt(t) : { h: 0, s: 0, v: 45 };
694
702
  }
695
- function Xn(e) {
703
+ function Gn(e) {
696
704
  return e.replace(/^#/, "").toUpperCase().slice(0, 6);
697
705
  }
698
- function Gn(e, t) {
706
+ function Kn(e, t) {
699
707
  const n = e.replace(/[^0-9a-f]/gi, "").slice(0, 6);
700
708
  return n.length < 6 ? t : Me(`#${n}`) ?? t;
701
709
  }
702
- function Kn(e) {
710
+ function qn(e) {
703
711
  return Be(Qt(e));
704
712
  }
705
- function qn(e, t, n) {
713
+ function Jn(e, t, n) {
706
714
  const r = mt((e - n.left) / n.width), o = mt((t - n.top) / n.height);
707
715
  return { x: r * 100, y: o * 100 };
708
716
  }
709
717
  function mt(e) {
710
718
  return Math.min(1, Math.max(0, e));
711
719
  }
712
- function Jn() {
720
+ function Zn() {
713
721
  if (typeof document > "u") return {};
714
722
  const e = document.querySelector("[data-pixelagent-root]") ?? document.querySelector("[data-pixelagent-toolbar-portal]"), t = e == null ? void 0 : e.getAttribute("data-pa-chrome");
715
723
  return t ? { "data-pa-chrome": t } : {};
716
724
  }
717
725
  function Ke({ label: e, value: t, onChange: n, labelAction: r }) {
718
- const [o, i] = S(!1), [s, l] = S(() => ht(t)), p = W(null), d = W(null), g = W(null), m = nt(), [c, f] = S({ top: 0, left: 0, width: 260 }), h = Qt(s), C = Xn(Be(h)), k = Me(t) ? t : Yn(h), D = e.toLowerCase().includes("color") ? e : `${e} color`;
726
+ const [o, i] = S(!1), [s, l] = S(() => ht(t)), p = V(null), d = V(null), g = V(null), m = nt(), [c, f] = S({ top: 0, left: 0, width: 260 }), h = Qt(s), C = Gn(Be(h)), k = Me(t) ? t : Xn(h), O = e.toLowerCase().includes("color") ? e : `${e} color`;
719
727
  _(() => {
720
728
  l(ht(t));
721
729
  }, [t]);
722
730
  const x = T(
723
731
  (y) => {
724
- l(y), n(Kn(y));
732
+ l(y), n(qn(y));
725
733
  },
726
734
  [n]
727
735
  ), w = T(
@@ -757,7 +765,7 @@ function Ke({ label: e, value: t, onChange: n, labelAction: r }) {
757
765
  var j;
758
766
  const z = (j = g.current) == null ? void 0 : j.getBoundingClientRect();
759
767
  if (!z) return;
760
- const { x: E, y: F } = qn(y, M, z);
768
+ const { x: E, y: F } = Jn(y, M, z);
761
769
  x({ ...s, s: E, v: 100 - F });
762
770
  }, N = (y) => {
763
771
  y.preventDefault(), v(y.clientX, y.clientY);
@@ -771,14 +779,14 @@ function Ke({ label: e, value: t, onChange: n, labelAction: r }) {
771
779
  {
772
780
  className: "pa-root pa-root--toolbar-portal pa-color-picker-portal",
773
781
  "data-pixelagent-picker-portal": !0,
774
- ...Jn(),
782
+ ...Zn(),
775
783
  children: /* @__PURE__ */ u(
776
784
  "div",
777
785
  {
778
786
  ref: d,
779
787
  id: m,
780
788
  role: "dialog",
781
- "aria-label": D,
789
+ "aria-label": O,
782
790
  className: "pa-color-picker",
783
791
  style: { top: c.top, left: c.left, width: c.width },
784
792
  children: [
@@ -791,7 +799,7 @@ function Ke({ label: e, value: t, onChange: n, labelAction: r }) {
791
799
  "aria-hidden": "true"
792
800
  }
793
801
  ),
794
- /* @__PURE__ */ a("span", { className: "pa-color-picker-header-label", children: D })
802
+ /* @__PURE__ */ a("span", { className: "pa-color-picker-header-label", children: O })
795
803
  ] }),
796
804
  /* @__PURE__ */ a(
797
805
  "div",
@@ -841,7 +849,7 @@ function Ke({ label: e, value: t, onChange: n, labelAction: r }) {
841
849
  type: "text",
842
850
  value: C,
843
851
  spellCheck: !1,
844
- onChange: (y) => w(Gn(y.target.value, h))
852
+ onChange: (y) => w(Kn(y.target.value, h))
845
853
  }
846
854
  )
847
855
  ] }),
@@ -856,7 +864,7 @@ function Ke({ label: e, value: t, onChange: n, labelAction: r }) {
856
864
  max: 255,
857
865
  value: h[y],
858
866
  onChange: (M) => {
859
- const z = Zn(parseInt(M.target.value, 10));
867
+ const z = Qn(parseInt(M.target.value, 10));
860
868
  w({ ...h, [y]: z });
861
869
  }
862
870
  }
@@ -905,7 +913,7 @@ function Ke({ label: e, value: t, onChange: n, labelAction: r }) {
905
913
  P
906
914
  ] });
907
915
  }
908
- function Zn(e) {
916
+ function Qn(e) {
909
917
  return Number.isFinite(e) ? Math.min(255, Math.max(0, e)) : 0;
910
918
  }
911
919
  function we({
@@ -980,7 +988,7 @@ function Pe(e) {
980
988
  var n;
981
989
  return (((n = e.split(",")[0]) == null ? void 0 : n.trim()) ?? "").replace(/^["']|["']$/g, "");
982
990
  }
983
- function Qn(e) {
991
+ function ea(e) {
984
992
  const t = e.trim();
985
993
  if (!t)
986
994
  return {
@@ -1004,9 +1012,9 @@ function Qn(e) {
1004
1012
  ]
1005
1013
  };
1006
1014
  }
1007
- function ea({ value: e, onChange: t }) {
1015
+ function ta({ value: e, onChange: t }) {
1008
1016
  const { selectValue: n, options: r } = se(
1009
- () => Qn(e),
1017
+ () => ea(e),
1010
1018
  [e]
1011
1019
  );
1012
1020
  return /* @__PURE__ */ u("label", { className: "pa-edit-stack-field", children: [
@@ -1039,7 +1047,7 @@ function en({
1039
1047
  onChange: o,
1040
1048
  pxPerStep: i = 3
1041
1049
  }) {
1042
- const [s, l] = S(!1), p = W(null), d = (c) => {
1050
+ const [s, l] = S(!1), p = V(null), d = (c) => {
1043
1051
  const f = e();
1044
1052
  f === null || !Number.isFinite(f) || (c.preventDefault(), p.current = { startX: c.clientX, startValue: f }, l(!0), c.currentTarget.setPointerCapture(c.pointerId));
1045
1053
  }, g = (c) => {
@@ -1069,8 +1077,8 @@ function pe({
1069
1077
  onChange: r,
1070
1078
  compact: o = !1
1071
1079
  }) {
1072
- var D;
1073
- const i = In[e] ?? { kind: "text" }, s = Ge(e, n, i), l = i.kind !== "text" && s !== null, p = o ? "pa-prop-row pa-prop-row--compact" : "pa-prop-row", d = o ? "pa-edit-field-label" : "pa-prop-label";
1080
+ var O;
1081
+ const i = On[e] ?? { kind: "text" }, s = Ge(e, n, i), l = i.kind !== "text" && s !== null, p = o ? "pa-prop-row pa-prop-row--compact" : "pa-prop-row", d = o ? "pa-edit-field-label" : "pa-prop-label";
1074
1082
  if (!l)
1075
1083
  return /* @__PURE__ */ u("label", { className: p, children: [
1076
1084
  /* @__PURE__ */ a("span", { className: d, children: t }),
@@ -1084,8 +1092,8 @@ function pe({
1084
1092
  }
1085
1093
  )
1086
1094
  ] });
1087
- const g = i.min ?? -1 / 0, m = i.max ?? 1 / 0, c = i.kind === "length", f = c ? Jt(((D = fe(n)) == null ? void 0 : D.unit) ?? "") : i.step ?? 1, h = (x) => r(
1088
- c ? Tn(n, x) : Dn(e, x, i)
1095
+ const g = i.min ?? -1 / 0, m = i.max ?? 1 / 0, c = i.kind === "length", f = c ? Jt(((O = fe(n)) == null ? void 0 : O.unit) ?? "") : i.step ?? 1, h = (x) => r(
1096
+ c ? In(n, x) : Dn(e, x, i)
1089
1097
  ), C = en({
1090
1098
  getValue: () => Ge(e, n, i),
1091
1099
  min: g,
@@ -1125,7 +1133,7 @@ function pe({
1125
1133
  )
1126
1134
  ] });
1127
1135
  }
1128
- function ta(e) {
1136
+ function na(e) {
1129
1137
  const t = e.trim().split(/\s+/).filter(Boolean), n = t[0] ?? "0px";
1130
1138
  if (t.length <= 1) return { top: n, right: n, bottom: n, left: n };
1131
1139
  const r = t[1];
@@ -1133,7 +1141,7 @@ function ta(e) {
1133
1141
  const o = t[2];
1134
1142
  return t.length === 3 ? { top: n, right: r, bottom: o, left: r } : { top: n, right: r, bottom: o, left: t[3] };
1135
1143
  }
1136
- function na({ top: e, right: t, bottom: n, left: r }) {
1144
+ function aa({ top: e, right: t, bottom: n, left: r }) {
1137
1145
  return e === t && t === n && n === r ? e : e === n && t === r ? `${e} ${t}` : t === r ? `${e} ${t} ${n}` : `${e} ${t} ${n} ${r}`;
1138
1146
  }
1139
1147
  function be(e) {
@@ -1163,14 +1171,14 @@ const vt = 12, lt = {
1163
1171
  fill: "none",
1164
1172
  "aria-hidden": !0
1165
1173
  };
1166
- function aa() {
1174
+ function ra() {
1167
1175
  return /* @__PURE__ */ u("svg", { ...lt, children: [
1168
1176
  /* @__PURE__ */ a("rect", { x: "1.5", y: "1.5", width: "9", height: "9", stroke: "currentColor", strokeOpacity: "0.35" }),
1169
1177
  /* @__PURE__ */ a("line", { x1: "1.5", y1: "1.5", x2: "1.5", y2: "10.5", stroke: "currentColor", strokeWidth: "1.5" }),
1170
1178
  /* @__PURE__ */ a("line", { x1: "10.5", y1: "1.5", x2: "10.5", y2: "10.5", stroke: "currentColor", strokeWidth: "1.5" })
1171
1179
  ] });
1172
1180
  }
1173
- function ra() {
1181
+ function oa() {
1174
1182
  return /* @__PURE__ */ u("svg", { ...lt, children: [
1175
1183
  /* @__PURE__ */ a("rect", { x: "1.5", y: "1.5", width: "9", height: "9", stroke: "currentColor", strokeOpacity: "0.35" }),
1176
1184
  /* @__PURE__ */ a("line", { x1: "1.5", y1: "1.5", x2: "10.5", y2: "1.5", stroke: "currentColor", strokeWidth: "1.5" }),
@@ -1189,7 +1197,7 @@ function Re({ side: e }) {
1189
1197
  /* @__PURE__ */ a("line", { ...t, stroke: "currentColor", strokeWidth: "1.5" })
1190
1198
  ] });
1191
1199
  }
1192
- function oa() {
1200
+ function ia() {
1193
1201
  return /* @__PURE__ */ u("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", "aria-hidden": "true", children: [
1194
1202
  /* @__PURE__ */ a("rect", { x: "2", y: "2", width: "4", height: "4", stroke: "currentColor", strokeWidth: "1.2" }),
1195
1203
  /* @__PURE__ */ a("rect", { x: "8", y: "2", width: "4", height: "4", stroke: "currentColor", strokeWidth: "1.2" }),
@@ -1252,8 +1260,8 @@ function ke({
1252
1260
  ] });
1253
1261
  }
1254
1262
  function wt({ property: e, label: t, value: n, onChange: r }) {
1255
- const o = ta(n), [i, s] = S(!1), l = (c) => {
1256
- r(na({ ...o, ...c }));
1263
+ const o = na(n), [i, s] = S(!1), l = (c) => {
1264
+ r(aa({ ...o, ...c }));
1257
1265
  }, p = o.left !== o.right, d = o.top !== o.bottom, g = e === "margin" ? -1 / 0 : 0, m = (c, f) => c === f ? de(c) : null;
1258
1266
  return /* @__PURE__ */ u("div", { className: "pa-prop-row pa-prop-row--compact pa-spacing-row", children: [
1259
1267
  /* @__PURE__ */ a("span", { className: "pa-edit-field-label", children: t }),
@@ -1320,7 +1328,7 @@ function wt({ property: e, label: t, value: n, onChange: r }) {
1320
1328
  /* @__PURE__ */ a(
1321
1329
  ke,
1322
1330
  {
1323
- icon: /* @__PURE__ */ a(aa, {}),
1331
+ icon: /* @__PURE__ */ a(ra, {}),
1324
1332
  display: xt(o.left, o.right),
1325
1333
  mixed: p,
1326
1334
  ariaLabel: `${t} horizontal`,
@@ -1336,7 +1344,7 @@ function wt({ property: e, label: t, value: n, onChange: r }) {
1336
1344
  /* @__PURE__ */ a(
1337
1345
  ke,
1338
1346
  {
1339
- icon: /* @__PURE__ */ a(ra, {}),
1347
+ icon: /* @__PURE__ */ a(oa, {}),
1340
1348
  display: xt(o.top, o.bottom),
1341
1349
  mixed: d,
1342
1350
  ariaLabel: `${t} vertical`,
@@ -1359,7 +1367,7 @@ function wt({ property: e, label: t, value: n, onChange: r }) {
1359
1367
  "aria-pressed": i,
1360
1368
  "aria-label": i ? "Collapse to pair view" : "Expand to per-side view",
1361
1369
  title: i ? "Collapse to pair view" : "Expand to per-side view",
1362
- children: /* @__PURE__ */ a(oa, {})
1370
+ children: /* @__PURE__ */ a(ia, {})
1363
1371
  }
1364
1372
  )
1365
1373
  ]
@@ -1367,7 +1375,7 @@ function wt({ property: e, label: t, value: n, onChange: r }) {
1367
1375
  )
1368
1376
  ] });
1369
1377
  }
1370
- function ia({ className: e }) {
1378
+ function sa({ className: e }) {
1371
1379
  return /* @__PURE__ */ a("svg", { className: e, width: "16", height: "16", viewBox: "0 0 16 16", "aria-hidden": "true", children: /* @__PURE__ */ a(
1372
1380
  "path",
1373
1381
  {
@@ -1376,7 +1384,7 @@ function ia({ className: e }) {
1376
1384
  }
1377
1385
  ) });
1378
1386
  }
1379
- function sa({ className: e }) {
1387
+ function la({ className: e }) {
1380
1388
  return /* @__PURE__ */ a("svg", { className: e, width: "16", height: "16", viewBox: "0 0 16 16", "aria-hidden": "true", children: /* @__PURE__ */ a(
1381
1389
  "path",
1382
1390
  {
@@ -1385,7 +1393,7 @@ function sa({ className: e }) {
1385
1393
  }
1386
1394
  ) });
1387
1395
  }
1388
- function la({ className: e }) {
1396
+ function ca({ className: e }) {
1389
1397
  return /* @__PURE__ */ a("svg", { className: e, width: "16", height: "16", viewBox: "0 0 16 16", "aria-hidden": "true", children: /* @__PURE__ */ a(
1390
1398
  "path",
1391
1399
  {
@@ -1394,10 +1402,10 @@ function la({ className: e }) {
1394
1402
  }
1395
1403
  ) });
1396
1404
  }
1397
- function ca({ className: e }) {
1405
+ function pa({ className: e }) {
1398
1406
  return /* @__PURE__ */ a("svg", { className: e, width: "16", height: "16", viewBox: "0 0 16 16", "aria-hidden": "true", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M2 3h12v1.5H2V3zm0 3.5h12v1.5H2V6.5zm0 3.5h12v1.5H2V10zm0 3.5h12v1.5H2V13.5z" }) });
1399
1407
  }
1400
- function pa({ className: e }) {
1408
+ function da({ className: e }) {
1401
1409
  return /* @__PURE__ */ u(
1402
1410
  "svg",
1403
1411
  {
@@ -1418,7 +1426,7 @@ function pa({ className: e }) {
1418
1426
  }
1419
1427
  );
1420
1428
  }
1421
- function da({ className: e }) {
1429
+ function ua({ className: e }) {
1422
1430
  return /* @__PURE__ */ a("svg", { className: e, width: "16", height: "16", viewBox: "0 0 16 16", "aria-hidden": "true", children: /* @__PURE__ */ a(
1423
1431
  "path",
1424
1432
  {
@@ -1427,13 +1435,13 @@ function da({ className: e }) {
1427
1435
  }
1428
1436
  ) });
1429
1437
  }
1430
- const ua = /^--(?:text|font-size)-(.+)$/, fa = ["--line-height", "--font-weight", "--letter-spacing"], ga = [
1438
+ const fa = /^--(?:text|font-size)-(.+)$/, ga = ["--line-height", "--font-weight", "--letter-spacing"], ha = [
1431
1439
  "--text-",
1432
1440
  "--font-",
1433
1441
  "--leading-",
1434
1442
  "--line-height-"
1435
1443
  ];
1436
- function ha(e) {
1444
+ function ma(e) {
1437
1445
  const t = fe(e);
1438
1446
  return t !== null && (t.unit === "px" || t.unit === "rem" || t.unit === "em");
1439
1447
  }
@@ -1444,27 +1452,27 @@ function kt(e, t) {
1444
1452
  const n = fe(e);
1445
1453
  return n ? n.unit === "px" ? `${yt(n.num)}px` : n.unit === "rem" ? `${yt(n.num * t)}px` : e : e;
1446
1454
  }
1447
- function ma(e) {
1448
- return e && e[0].toUpperCase() + e.slice(1);
1449
- }
1450
1455
  function xa(e) {
1451
- return /^h[1-6]$/i.test(e) ? e.toUpperCase() : e.split(/[-_]/).filter(Boolean).map((n) => /^\d*x?[sl]?$|^\d*xl$|^xs$|^sm$|^md$|^lg$|^xl$/i.test(n) ? n.toUpperCase() : ma(n)).join(" ");
1456
+ return e && e[0].toUpperCase() + e.slice(1);
1452
1457
  }
1453
1458
  function ba(e) {
1454
- return fa.some((t) => e.endsWith(t));
1459
+ return /^h[1-6]$/i.test(e) ? e.toUpperCase() : e.split(/[-_]/).filter(Boolean).map((n) => /^\d*x?[sl]?$|^\d*xl$|^xs$|^sm$|^md$|^lg$|^xl$/i.test(n) ? n.toUpperCase() : xa(n)).join(" ");
1455
1460
  }
1456
- function va(e, t = 16) {
1461
+ function va(e) {
1462
+ return ga.some((t) => e.endsWith(t));
1463
+ }
1464
+ function wa(e, t = 16) {
1457
1465
  const n = [];
1458
1466
  for (const [r, o] of Object.entries(e)) {
1459
- if (ba(r)) continue;
1460
- const i = r.match(ua);
1467
+ if (va(r)) continue;
1468
+ const i = r.match(fa);
1461
1469
  if (!i) continue;
1462
1470
  const s = o.trim();
1463
- if (!ha(s)) continue;
1471
+ if (!ma(s)) continue;
1464
1472
  const l = i[1], p = e[`${r}--line-height`] ?? e[`--leading-${l}`] ?? e[`--line-height-${l}`] ?? null, d = e[`${r}--font-weight`] ?? e[`--font-weight-${l}`] ?? null;
1465
1473
  n.push({
1466
1474
  id: l,
1467
- label: xa(l),
1475
+ label: ba(l),
1468
1476
  varName: r,
1469
1477
  fontSize: kt(s, t),
1470
1478
  lineHeight: p ? kt(p.trim(), t) : null,
@@ -1476,7 +1484,7 @@ function va(e, t = 16) {
1476
1484
  return (((i = fe(o.fontSize)) == null ? void 0 : i.num) ?? 0) - (((s = fe(r.fontSize)) == null ? void 0 : s.num) ?? 0);
1477
1485
  }), n;
1478
1486
  }
1479
- function wa(e) {
1487
+ function ya(e) {
1480
1488
  const t = e.fontSize.replace(/px$/, "");
1481
1489
  return e.lineHeight ? `${t}/${e.lineHeight.replace(/px$/, "")}` : t;
1482
1490
  }
@@ -1484,7 +1492,7 @@ function Te(e) {
1484
1492
  var t;
1485
1493
  return e ? ((t = fe(e)) == null ? void 0 : t.num) ?? null : null;
1486
1494
  }
1487
- function ya(e, t, n) {
1495
+ function ka(e, t, n) {
1488
1496
  const r = Te(t);
1489
1497
  if (r === null) return null;
1490
1498
  const o = Te(n), i = e.filter((s) => {
@@ -1501,7 +1509,7 @@ function ya(e, t, n) {
1501
1509
  }
1502
1510
  return i[0];
1503
1511
  }
1504
- function ka(e) {
1512
+ function Na(e) {
1505
1513
  const t = /* @__PURE__ */ new Set(), n = (r) => {
1506
1514
  if (r)
1507
1515
  for (const o of Array.from(r)) {
@@ -1509,7 +1517,7 @@ function ka(e) {
1509
1517
  if (i.style)
1510
1518
  for (let l = 0; l < i.style.length; l++) {
1511
1519
  const p = i.style[l];
1512
- p.startsWith("--") && ga.some((d) => p.startsWith(d)) && t.add(p);
1520
+ p.startsWith("--") && ha.some((d) => p.startsWith(d)) && t.add(p);
1513
1521
  }
1514
1522
  const s = o.cssRules;
1515
1523
  s && n(s);
@@ -1522,23 +1530,23 @@ function ka(e) {
1522
1530
  }
1523
1531
  return t;
1524
1532
  }
1525
- function Na() {
1533
+ function Ca() {
1526
1534
  if (typeof document > "u") return [];
1527
- const e = ka(document), t = document.documentElement, n = getComputedStyle(t), r = {};
1535
+ const e = Na(document), t = document.documentElement, n = getComputedStyle(t), r = {};
1528
1536
  for (const i of e) {
1529
1537
  const s = n.getPropertyValue(i).trim();
1530
1538
  s && (r[i] = s);
1531
1539
  }
1532
1540
  const o = parseFloat(n.fontSize) || 16;
1533
- return va(r, o);
1541
+ return wa(r, o);
1534
1542
  }
1535
1543
  const Nt = 264, Ct = 360;
1536
- function Ca() {
1544
+ function Ma() {
1537
1545
  if (typeof document > "u") return {};
1538
1546
  const e = document.querySelector("[data-pixelagent-root]") ?? document.querySelector("[data-pixelagent-toolbar-portal]"), t = e == null ? void 0 : e.getAttribute("data-pa-chrome");
1539
1547
  return t ? { "data-pa-chrome": t } : {};
1540
1548
  }
1541
- function Ma({ className: e }) {
1549
+ function Aa({ className: e }) {
1542
1550
  return /* @__PURE__ */ u(
1543
1551
  "svg",
1544
1552
  {
@@ -1557,14 +1565,14 @@ function Ma({ className: e }) {
1557
1565
  }
1558
1566
  );
1559
1567
  }
1560
- function Aa({
1568
+ function za({
1561
1569
  presets: e,
1562
1570
  fontSize: t,
1563
1571
  lineHeight: n,
1564
1572
  onApply: r
1565
1573
  }) {
1566
- const [o, i] = S(!1), [s, l] = S(""), p = W(null), d = W(null), g = W(null), m = nt(), [c, f] = S({ top: 0, left: 0, width: Nt }), h = se(
1567
- () => ya(e, t, n),
1574
+ const [o, i] = S(!1), [s, l] = S(""), p = V(null), d = V(null), g = V(null), m = nt(), [c, f] = S({ top: 0, left: 0, width: Nt }), h = se(
1575
+ () => ka(e, t, n),
1568
1576
  [e, t, n]
1569
1577
  ), C = se(() => {
1570
1578
  const x = s.trim().toLowerCase();
@@ -1593,13 +1601,13 @@ function Aa({
1593
1601
  window.removeEventListener("mousedown", x, !0), window.removeEventListener("keydown", w), window.removeEventListener("resize", k), window.removeEventListener("scroll", k, !0);
1594
1602
  };
1595
1603
  }, [o, k]), e.length === 0) return null;
1596
- const D = o ? Le(
1604
+ const O = o ? Le(
1597
1605
  /* @__PURE__ */ a(
1598
1606
  "div",
1599
1607
  {
1600
1608
  className: "pa-root pa-root--toolbar-portal pa-text-styles-portal",
1601
1609
  "data-pixelagent-picker-portal": !0,
1602
- ...Ca(),
1610
+ ...Ma(),
1603
1611
  children: /* @__PURE__ */ u(
1604
1612
  "div",
1605
1613
  {
@@ -1624,7 +1632,7 @@ function Aa({
1624
1632
  )
1625
1633
  ] }),
1626
1634
  /* @__PURE__ */ u("div", { className: "pa-text-styles-search", children: [
1627
- /* @__PURE__ */ a(Ma, { className: "pa-text-styles-search-icon" }),
1635
+ /* @__PURE__ */ a(Aa, { className: "pa-text-styles-search-icon" }),
1628
1636
  /* @__PURE__ */ a(
1629
1637
  "input",
1630
1638
  {
@@ -1653,7 +1661,7 @@ function Aa({
1653
1661
  /* @__PURE__ */ a("span", { className: "pa-text-styles-row-label", children: x.label }),
1654
1662
  /* @__PURE__ */ u("span", { className: "pa-text-styles-row-metrics", children: [
1655
1663
  "· ",
1656
- wa(x)
1664
+ ya(x)
1657
1665
  ] })
1658
1666
  ]
1659
1667
  },
@@ -1681,32 +1689,32 @@ function Aa({
1681
1689
  onClick: (x) => {
1682
1690
  x.stopPropagation(), o || k(), i((w) => !w);
1683
1691
  },
1684
- children: /* @__PURE__ */ a(pa, { className: "pa-edit-section-action-icon" })
1692
+ children: /* @__PURE__ */ a(da, { className: "pa-edit-section-action-icon" })
1685
1693
  }
1686
1694
  ),
1687
- D
1695
+ O
1688
1696
  ] });
1689
1697
  }
1690
- function za(e) {
1691
- return e && e[0].toUpperCase() + e.slice(1);
1692
- }
1693
1698
  function Sa(e) {
1694
- return (e.replace(/^--/, "").replace(/^color-/, "") || e.replace(/^--/, "")).split(/[-_]/).filter(Boolean).map(za).join(" ");
1699
+ return e && e[0].toUpperCase() + e.slice(1);
1695
1700
  }
1696
1701
  function La(e) {
1702
+ return (e.replace(/^--/, "").replace(/^color-/, "") || e.replace(/^--/, "")).split(/[-_]/).filter(Boolean).map(Sa).join(" ");
1703
+ }
1704
+ function Ea(e) {
1697
1705
  const t = [];
1698
1706
  for (const [n, r] of Object.entries(e)) {
1699
1707
  const o = r.trim();
1700
1708
  !o || !Me(o) || t.push({
1701
1709
  id: n.replace(/^--/, ""),
1702
- name: Sa(n),
1710
+ name: La(n),
1703
1711
  value: o,
1704
1712
  varName: n
1705
1713
  });
1706
1714
  }
1707
1715
  return t;
1708
1716
  }
1709
- function Ea(e, t) {
1717
+ function $a(e, t) {
1710
1718
  const n = Me(t);
1711
1719
  if (!n) return null;
1712
1720
  const r = Be(n);
@@ -1715,7 +1723,7 @@ function Ea(e, t) {
1715
1723
  return i !== null && Be(i) === r;
1716
1724
  }) ?? null;
1717
1725
  }
1718
- function $a(e) {
1726
+ function Pa(e) {
1719
1727
  const t = /* @__PURE__ */ new Set(), n = (r) => {
1720
1728
  if (r)
1721
1729
  for (const o of Array.from(r)) {
@@ -1736,35 +1744,35 @@ function $a(e) {
1736
1744
  }
1737
1745
  return t;
1738
1746
  }
1739
- function Pa() {
1747
+ function Ra() {
1740
1748
  if (typeof document > "u") return [];
1741
- const e = $a(document), t = getComputedStyle(document.documentElement), n = {};
1749
+ const e = Pa(document), t = getComputedStyle(document.documentElement), n = {};
1742
1750
  for (const r of e) {
1743
1751
  const o = t.getPropertyValue(r).trim();
1744
1752
  o && (n[r] = o);
1745
1753
  }
1746
- return La(n);
1754
+ return Ea(n);
1747
1755
  }
1748
1756
  const Mt = 300, At = 360;
1749
- function Ra() {
1757
+ function Ta() {
1750
1758
  if (typeof document > "u") return {};
1751
1759
  const e = document.querySelector("[data-pixelagent-root]") ?? document.querySelector("[data-pixelagent-toolbar-portal]"), t = e == null ? void 0 : e.getAttribute("data-pa-chrome");
1752
1760
  return t ? { "data-pa-chrome": t } : {};
1753
1761
  }
1754
- function Ta({ className: e }) {
1762
+ function Ia({ className: e }) {
1755
1763
  return /* @__PURE__ */ u("svg", { className: e, width: "14", height: "14", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-hidden": "true", children: [
1756
1764
  /* @__PURE__ */ a("circle", { cx: "7", cy: "7", r: "4.5" }),
1757
1765
  /* @__PURE__ */ a("line", { x1: "10.5", y1: "10.5", x2: "14", y2: "14", strokeLinecap: "round" })
1758
1766
  ] });
1759
1767
  }
1760
- function Ia({ className: e }) {
1768
+ function Oa({ className: e }) {
1761
1769
  return /* @__PURE__ */ u("svg", { className: e, width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.4", "aria-hidden": "true", children: [
1762
1770
  /* @__PURE__ */ a("circle", { cx: "6.4", cy: "6.4", r: "3.4" }),
1763
1771
  /* @__PURE__ */ a("circle", { cx: "9.8", cy: "9.8", r: "3.4" })
1764
1772
  ] });
1765
1773
  }
1766
1774
  function qe({ presets: e, value: t, onApply: n, title: r = "Color" }) {
1767
- const [o, i] = S(!1), [s, l] = S(""), p = W(null), d = W(null), g = W(null), m = nt(), [c, f] = S({ top: 0, left: 0, width: Mt }), h = se(() => Ea(e, t), [e, t]), C = se(() => {
1775
+ const [o, i] = S(!1), [s, l] = S(""), p = V(null), d = V(null), g = V(null), m = nt(), [c, f] = S({ top: 0, left: 0, width: Mt }), h = se(() => $a(e, t), [e, t]), C = se(() => {
1768
1776
  const x = s.trim().toLowerCase();
1769
1777
  return x ? e.filter(
1770
1778
  (w) => w.name.toLowerCase().includes(x) || w.id.toLowerCase().includes(x) || w.value.toLowerCase().includes(x)
@@ -1793,13 +1801,13 @@ function qe({ presets: e, value: t, onApply: n, title: r = "Color" }) {
1793
1801
  window.removeEventListener("mousedown", x, !0), window.removeEventListener("keydown", w), window.removeEventListener("resize", k), window.removeEventListener("scroll", k, !0);
1794
1802
  };
1795
1803
  }, [o, k]), e.length === 0) return null;
1796
- const D = o ? Le(
1804
+ const O = o ? Le(
1797
1805
  /* @__PURE__ */ a(
1798
1806
  "div",
1799
1807
  {
1800
1808
  className: "pa-root pa-root--toolbar-portal pa-text-styles-portal",
1801
1809
  "data-pixelagent-picker-portal": !0,
1802
- ...Ra(),
1810
+ ...Ta(),
1803
1811
  children: /* @__PURE__ */ u(
1804
1812
  "div",
1805
1813
  {
@@ -1824,7 +1832,7 @@ function qe({ presets: e, value: t, onApply: n, title: r = "Color" }) {
1824
1832
  )
1825
1833
  ] }),
1826
1834
  /* @__PURE__ */ u("div", { className: "pa-text-styles-search", children: [
1827
- /* @__PURE__ */ a(Ta, { className: "pa-text-styles-search-icon" }),
1835
+ /* @__PURE__ */ a(Ia, { className: "pa-text-styles-search-icon" }),
1828
1836
  /* @__PURE__ */ a(
1829
1837
  "input",
1830
1838
  {
@@ -1885,10 +1893,10 @@ function qe({ presets: e, value: t, onApply: n, title: r = "Color" }) {
1885
1893
  onClick: (x) => {
1886
1894
  x.stopPropagation(), o || k(), i((w) => !w);
1887
1895
  },
1888
- children: /* @__PURE__ */ a(Ia, { className: "pa-edit-section-action-icon" })
1896
+ children: /* @__PURE__ */ a(Oa, { className: "pa-edit-section-action-icon" })
1889
1897
  }
1890
1898
  ),
1891
- D
1899
+ O
1892
1900
  ] });
1893
1901
  }
1894
1902
  function Da({
@@ -1911,7 +1919,7 @@ function Da({
1911
1919
  o.value
1912
1920
  )) });
1913
1921
  }
1914
- function Oa({
1922
+ function Fa({
1915
1923
  options: e,
1916
1924
  ariaLabel: t,
1917
1925
  onToggle: n
@@ -1934,13 +1942,13 @@ function tn(e) {
1934
1942
  const t = parseInt(e.trim(), 10);
1935
1943
  return Number.isFinite(t) ? t >= 600 : e.trim() === "bold" || e.trim() === "bolder";
1936
1944
  }
1937
- function Fa(e) {
1945
+ function Ba(e) {
1938
1946
  return tn(e) ? "400" : "700";
1939
1947
  }
1940
1948
  function nn(e) {
1941
1949
  return e.trim() === "italic" || e.trim() === "oblique";
1942
1950
  }
1943
- function Ba(e) {
1951
+ function _a(e) {
1944
1952
  return nn(e) ? "normal" : "italic";
1945
1953
  }
1946
1954
  function zt(e, t) {
@@ -1952,7 +1960,7 @@ function St(e, t) {
1952
1960
  );
1953
1961
  return n.has(t) ? n.delete(t) : n.add(t), n.size === 0 ? "none" : Array.from(n).join(" ");
1954
1962
  }
1955
- function _a(e) {
1963
+ function Ha(e) {
1956
1964
  const t = e.trim();
1957
1965
  return t === "center" || t === "right" || t === "justify" ? t : "left";
1958
1966
  }
@@ -1976,7 +1984,7 @@ const Lt = [
1976
1984
  "inline-grid",
1977
1985
  "none",
1978
1986
  "contents"
1979
- ], Ha = /* @__PURE__ */ new Set(["flex", "inline-flex", "grid", "inline-grid"]);
1987
+ ], Va = /* @__PURE__ */ new Set(["flex", "inline-flex", "grid", "inline-grid"]);
1980
1988
  function Wa({
1981
1989
  selectedElement: e,
1982
1990
  values: t,
@@ -1994,21 +2002,21 @@ function Wa({
1994
2002
  stateHint: f
1995
2003
  }) {
1996
2004
  var J, le;
1997
- const [h] = S(() => Na()), [C] = S(() => Pa()), k = (b) => {
2005
+ const [h] = S(() => Ca()), [C] = S(() => Ra()), k = (b) => {
1998
2006
  const Q = { "font-size": b.fontSize };
1999
2007
  b.lineHeight && (Q["line-height"] = b.lineHeight), b.fontWeight && (Q["font-weight"] = b.fontWeight), r(Q);
2000
- }, D = t["font-weight"] ?? "", x = t["font-style"] ?? "normal", w = t["text-decoration"] ?? "none", A = _a(t["text-align"] ?? "left"), v = ((J = t.display) == null ? void 0 : J.trim()) ?? "", N = !!v, P = Ha.has(v), y = [...Et];
2008
+ }, O = t["font-weight"] ?? "", x = t["font-style"] ?? "normal", w = t["text-decoration"] ?? "none", A = Ha(t["text-align"] ?? "left"), v = ((J = t.display) == null ? void 0 : J.trim()) ?? "", N = !!v, P = Va.has(v), y = [...Et];
2001
2009
  v && !Et.includes(v) && y.push(v);
2002
2010
  const M = ((le = t.gap) == null ? void 0 : le.trim()) ?? "", z = M === "normal" || M === "" ? "0px" : M, E = t["border-style"] ?? "none", F = [...Lt];
2003
2011
  E && !Lt.includes(E) && F.push(E);
2004
2012
  const j = rt(e), K = se(
2005
- () => Un(
2013
+ () => jn(
2006
2014
  e,
2007
2015
  xe(e).kind,
2008
2016
  Ne(e)
2009
2017
  ),
2010
2018
  [e]
2011
- ), q = (b) => jn(K, b);
2019
+ ), q = (b) => Yn(K, b);
2012
2020
  return /* @__PURE__ */ u("div", { className: "pa-edit-sections", children: [
2013
2021
  /* @__PURE__ */ u(we, { title: "Targeting", defaultOpen: q("targeting"), children: [
2014
2022
  /* @__PURE__ */ u("div", { className: "pa-edit-field-grid pa-edit-field-grid--2", children: [
@@ -2072,7 +2080,7 @@ function Wa({
2072
2080
  title: "Typography",
2073
2081
  defaultOpen: q("typography"),
2074
2082
  headerAction: /* @__PURE__ */ a(
2075
- Aa,
2083
+ za,
2076
2084
  {
2077
2085
  presets: h,
2078
2086
  fontSize: t["font-size"] ?? "",
@@ -2082,7 +2090,7 @@ function Wa({
2082
2090
  ),
2083
2091
  children: [
2084
2092
  /* @__PURE__ */ a(
2085
- ea,
2093
+ ta,
2086
2094
  {
2087
2095
  value: t["font-family"] ?? "",
2088
2096
  onChange: (b) => n("font-family", b)
@@ -2091,14 +2099,14 @@ function Wa({
2091
2099
  /* @__PURE__ */ u("div", { className: "pa-edit-field-block", children: [
2092
2100
  /* @__PURE__ */ a("span", { className: "pa-edit-field-label", children: "Style" }),
2093
2101
  /* @__PURE__ */ a(
2094
- Oa,
2102
+ Fa,
2095
2103
  {
2096
2104
  ariaLabel: "Text style",
2097
2105
  options: [
2098
2106
  {
2099
2107
  id: "bold",
2100
2108
  title: "Bold",
2101
- pressed: tn(D),
2109
+ pressed: tn(O),
2102
2110
  content: /* @__PURE__ */ a("span", { className: "pa-segmented-type pa-segmented-type--bold", children: "B" })
2103
2111
  },
2104
2112
  {
@@ -2117,11 +2125,11 @@ function Wa({
2117
2125
  id: "strikethrough",
2118
2126
  title: "Strikethrough",
2119
2127
  pressed: zt(w, "line-through"),
2120
- content: /* @__PURE__ */ a(da, { className: "pa-segmented-icon" })
2128
+ content: /* @__PURE__ */ a(ua, { className: "pa-segmented-icon" })
2121
2129
  }
2122
2130
  ],
2123
2131
  onToggle: (b) => {
2124
- b === "bold" ? n("font-weight", Fa(D)) : b === "italic" ? n("font-style", Ba(x)) : b === "underline" ? n(
2132
+ b === "bold" ? n("font-weight", Ba(O)) : b === "italic" ? n("font-style", _a(x)) : b === "underline" ? n(
2125
2133
  "text-decoration",
2126
2134
  St(w, "underline")
2127
2135
  ) : b === "strikethrough" && n(
@@ -2144,22 +2152,22 @@ function Wa({
2144
2152
  {
2145
2153
  value: "left",
2146
2154
  title: "Align left",
2147
- content: /* @__PURE__ */ a(ia, { className: "pa-segmented-icon" })
2155
+ content: /* @__PURE__ */ a(sa, { className: "pa-segmented-icon" })
2148
2156
  },
2149
2157
  {
2150
2158
  value: "center",
2151
2159
  title: "Align center",
2152
- content: /* @__PURE__ */ a(sa, { className: "pa-segmented-icon" })
2160
+ content: /* @__PURE__ */ a(la, { className: "pa-segmented-icon" })
2153
2161
  },
2154
2162
  {
2155
2163
  value: "right",
2156
2164
  title: "Align right",
2157
- content: /* @__PURE__ */ a(la, { className: "pa-segmented-icon" })
2165
+ content: /* @__PURE__ */ a(ca, { className: "pa-segmented-icon" })
2158
2166
  },
2159
2167
  {
2160
2168
  value: "justify",
2161
2169
  title: "Justify",
2162
- content: /* @__PURE__ */ a(ca, { className: "pa-segmented-icon" })
2170
+ content: /* @__PURE__ */ a(pa, { className: "pa-segmented-icon" })
2163
2171
  }
2164
2172
  ]
2165
2173
  }
@@ -2353,7 +2361,7 @@ function Wa({
2353
2361
  ] })
2354
2362
  ] }, j);
2355
2363
  }
2356
- const Va = 50, Je = [
2364
+ const Ua = 50, Je = [
2357
2365
  "font-family",
2358
2366
  "font-size",
2359
2367
  "font-weight",
@@ -2375,18 +2383,18 @@ const Va = 50, Je = [
2375
2383
  "border-radius",
2376
2384
  "opacity"
2377
2385
  ];
2378
- function Ua(e, t, n) {
2386
+ function ja(e, t, n) {
2379
2387
  var ge;
2380
- const r = W([]), o = W(/* @__PURE__ */ new Set()), i = W([]), s = W([]), l = W([]), p = W(
2388
+ const r = V([]), o = V(/* @__PURE__ */ new Set()), i = V([]), s = V([]), l = V([]), p = V(
2381
2389
  null
2382
- ), [d, g] = S({}), [m, c] = S({}), [f, h] = S("none"), [C, k] = S(""), [D, x] = S(""), [w, A] = S(() => /* @__PURE__ */ new Map()), [v, N] = S(!1), P = T(() => {
2390
+ ), [d, g] = S({}), [m, c] = S({}), [f, h] = S("none"), [C, k] = S(""), [O, x] = S(""), [w, A] = S(() => /* @__PURE__ */ new Map()), [v, N] = S(!1), P = T(() => {
2383
2391
  const $ = Array.from(o.current), I = f;
2384
2392
  return {
2385
2393
  inline: Ye($, [...Je]),
2386
2394
  text: I !== "none" ? $.map((B) => je(B, I)) : []
2387
2395
  };
2388
2396
  }, [f]), y = T(() => {
2389
- l.current.push(P()), l.current.length > Va && l.current.shift(), N(l.current.length > 0);
2397
+ l.current.push(P()), l.current.length > Ua && l.current.shift(), N(l.current.length > 0);
2390
2398
  }, [P]), M = T(
2391
2399
  ($) => {
2392
2400
  var ee;
@@ -2395,9 +2403,9 @@ function Ua(e, t, n) {
2395
2403
  Se(i.current.filter((H) => I.includes(H.element)));
2396
2404
  for (const H of s.current)
2397
2405
  I.includes(H.element) && Ee(H);
2398
- const B = Oe(e, t);
2406
+ const B = De(e, t);
2399
2407
  r.current = B, o.current = new Set(B);
2400
- const O = new Set(i.current.map((H) => H.element)), Y = B.filter((H) => !O.has(H));
2408
+ const D = new Set(i.current.map((H) => H.element)), Y = B.filter((H) => !D.has(H));
2401
2409
  if (Y.length > 0 && (i.current = [
2402
2410
  ...i.current,
2403
2411
  ...Ye(Y, [...Je])
@@ -2405,7 +2413,7 @@ function Ua(e, t, n) {
2405
2413
  const H = f;
2406
2414
  s.current = [
2407
2415
  ...s.current,
2408
- ...Y.map((V) => je(V, H))
2416
+ ...Y.map((W) => je(W, H))
2409
2417
  ];
2410
2418
  }
2411
2419
  $e(I), Xe(B, n);
@@ -2413,11 +2421,11 @@ function Ua(e, t, n) {
2413
2421
  if ($ && X.length > 0)
2414
2422
  for (const H of X)
2415
2423
  if (H.property === "textContent" || H.property === "value")
2416
- for (const V of B)
2417
- ut(V, H.property, H.newValue);
2424
+ for (const W of B)
2425
+ ut(W, H.property, H.newValue);
2418
2426
  else
2419
- for (const V of B)
2420
- V.style.setProperty(H.property, H.newValue);
2427
+ for (const W of B)
2428
+ W.style.setProperty(H.property, H.newValue);
2421
2429
  },
2422
2430
  [e, t, n, w, f]
2423
2431
  );
@@ -2426,44 +2434,44 @@ function Ua(e, t, n) {
2426
2434
  r.current = [], o.current = /* @__PURE__ */ new Set(), i.current = [], s.current = [], l.current = [], g({}), c({}), h("none"), k(""), x(""), A(/* @__PURE__ */ new Map()), N(!1);
2427
2435
  return;
2428
2436
  }
2429
- const $ = Oe(e, t);
2437
+ const $ = De(e, t);
2430
2438
  r.current = $, o.current = new Set($), i.current = Ye($, [...Je]), l.current = [], N(!1);
2431
2439
  const I = Ne(e);
2432
2440
  g(I), c(I);
2433
2441
  const B = xe(e);
2434
2442
  h(B.kind), k(B.value), x(B.value);
2435
- const O = B.kind;
2436
- return s.current = O !== "none" ? $.map((Y) => je(Y, O)) : [], Xe($, n), () => $e($);
2443
+ const D = B.kind;
2444
+ return s.current = D !== "none" ? $.map((Y) => je(Y, D)) : [], Xe($, n), () => $e($);
2437
2445
  }, [e]), _(() => {
2438
2446
  e && M(!0);
2439
2447
  }, [t]), _(() => {
2440
2448
  var H;
2441
2449
  if (!e) return;
2442
- const $ = Oe(e, t);
2450
+ const $ = De(e, t);
2443
2451
  r.current = $, Se(
2444
- i.current.filter((V) => $.includes(V.element))
2452
+ i.current.filter((W) => $.includes(W.element))
2445
2453
  );
2446
2454
  const I = Ne(e), B = n === "normal" ? {} : fn(e, n);
2447
- for (const [V, te] of Object.entries(B))
2448
- for (const he of $) he.style.setProperty(V, te);
2449
- const O = ((H = w.get(e)) == null ? void 0 : H.get(n)) ?? [];
2450
- for (const V of O)
2451
- if (!(V.property === "textContent" || V.property === "value"))
2455
+ for (const [W, te] of Object.entries(B))
2456
+ for (const he of $) he.style.setProperty(W, te);
2457
+ const D = ((H = w.get(e)) == null ? void 0 : H.get(n)) ?? [];
2458
+ for (const W of D)
2459
+ if (!(W.property === "textContent" || W.property === "value"))
2452
2460
  for (const te of $)
2453
- te.style.setProperty(V.property, V.newValue);
2461
+ te.style.setProperty(W.property, W.newValue);
2454
2462
  const Y = p.current, X = Y !== null && Y.element === e && Y.state !== n, ee = Y !== null && Y.element !== e && n !== "normal";
2455
2463
  if (X || ee) {
2456
- const V = { ...I, ...B };
2457
- for (const te of O)
2458
- te.property === "textContent" || te.property === "value" || (V[te.property] = te.newValue);
2459
- g(V);
2464
+ const W = { ...I, ...B };
2465
+ for (const te of D)
2466
+ te.property === "textContent" || te.property === "value" || (W[te.property] = te.newValue);
2467
+ g(W);
2460
2468
  }
2461
2469
  p.current = { element: e, state: n }, $e(Array.from(o.current)), Xe($, n), o.current = new Set($);
2462
2470
  }, [n, e, t]);
2463
2471
  const z = T(
2464
2472
  ($, I, B) => {
2465
- e && A((O) => {
2466
- const Y = new Map(O), X = new Map(Y.get(e) ?? /* @__PURE__ */ new Map()), H = (X.get(n) ?? []).filter((V) => V.property !== $);
2473
+ e && A((D) => {
2474
+ const Y = new Map(D), X = new Map(Y.get(e) ?? /* @__PURE__ */ new Map()), H = (X.get(n) ?? []).filter((W) => W.property !== $);
2467
2475
  return B === I ? H.length === 0 ? X.delete(n) : X.set(n, H) : X.set(n, [...H, { property: $, oldValue: I, newValue: B }]), X.size === 0 ? Y.delete(e) : Y.set(e, X), Y;
2468
2476
  });
2469
2477
  },
@@ -2473,11 +2481,11 @@ function Ua(e, t, n) {
2473
2481
  if (!e) return;
2474
2482
  const I = { ...$ };
2475
2483
  I["border-width"] !== void 0 && !("border-style" in I) && (d["border-style"] ?? "none") === "none" && Kt(I["border-width"]) && (I["border-style"] = "solid"), y(), g((B) => ({ ...B, ...I }));
2476
- for (const [B, O] of Object.entries(I)) {
2484
+ for (const [B, D] of Object.entries(I)) {
2477
2485
  const Y = m[B] ?? "";
2478
2486
  for (const X of r.current)
2479
- X.style.setProperty(B, O), o.current.add(X);
2480
- z(B, Y, O);
2487
+ X.style.setProperty(B, D), o.current.add(X);
2488
+ z(B, Y, D);
2481
2489
  }
2482
2490
  },
2483
2491
  [e, m, d, y, z]
@@ -2492,10 +2500,10 @@ function Ua(e, t, n) {
2492
2500
  y(), k($);
2493
2501
  for (const I of r.current)
2494
2502
  ut(I, f, $), o.current.add(I);
2495
- z(f, D, $);
2503
+ z(f, O, $);
2496
2504
  }
2497
2505
  },
2498
- [e, f, D, y, z]
2506
+ [e, f, O, y, z]
2499
2507
  ), K = T(() => {
2500
2508
  const $ = l.current.pop();
2501
2509
  if ($) {
@@ -2549,7 +2557,7 @@ function Ua(e, t, n) {
2549
2557
  revertPreviews: J
2550
2558
  };
2551
2559
  }
2552
- function ja({
2560
+ function Ya({
2553
2561
  selectedElement: e,
2554
2562
  hoveredElement: t,
2555
2563
  onSelectElement: n,
@@ -2569,7 +2577,7 @@ function ja({
2569
2577
  textValue: h,
2570
2578
  pendingChanges: C,
2571
2579
  pendingByElement: k,
2572
- totalPendingCount: D,
2580
+ totalPendingCount: O,
2573
2581
  clearAllPending: x,
2574
2582
  canUndo: w,
2575
2583
  updateProperty: A,
@@ -2579,17 +2587,17 @@ function ja({
2579
2587
  reset: y,
2580
2588
  clearPreviews: M,
2581
2589
  revertPreviews: z
2582
- } = Ua(e, o, s), { elementRef: E, isDragging: F, style: j, dragHandleProps: K } = it({
2583
- computeDefaultPosition: (O) => ({
2584
- x: window.innerWidth - O.width - 16,
2590
+ } = ja(e, o, s), { elementRef: E, isDragging: F, style: j, dragHandleProps: K } = it({
2591
+ computeDefaultPosition: (D) => ({
2592
+ x: window.innerWidth - D.width - 16,
2585
2593
  y: 16
2586
2594
  })
2587
2595
  });
2588
2596
  _(() => (m == null || m({ clearPreviews: M, revertPreviews: z }), () => m == null ? void 0 : m(null)), [m, M, z]);
2589
2597
  const q = T(
2590
- (O) => {
2591
- if (g(O.target)) return;
2592
- const X = document.elementsFromPoint(O.clientX, O.clientY).find(
2598
+ (D) => {
2599
+ if (g(D.target)) return;
2600
+ const X = document.elementsFromPoint(D.clientX, D.clientY).find(
2593
2601
  (ee) => ee instanceof Element && !ee.closest(
2594
2602
  "[data-pixelagent-root],[data-pixelagent-toolbar-portal],[data-pixelagent-picker-portal]"
2595
2603
  )
@@ -2598,10 +2606,10 @@ function ja({
2598
2606
  },
2599
2607
  [g, r]
2600
2608
  ), J = T(
2601
- (O) => {
2602
- if (g(O.target)) return;
2603
- O.preventDefault(), O.stopPropagation();
2604
- const X = document.elementsFromPoint(O.clientX, O.clientY).find(
2609
+ (D) => {
2610
+ if (g(D.target)) return;
2611
+ D.preventDefault(), D.stopPropagation();
2612
+ const X = document.elementsFromPoint(D.clientX, D.clientY).find(
2605
2613
  (ee) => ee instanceof Element && !ee.closest(
2606
2614
  "[data-pixelagent-root],[data-pixelagent-toolbar-portal],[data-pixelagent-picker-portal]"
2607
2615
  )
@@ -2614,10 +2622,10 @@ function ja({
2614
2622
  document.removeEventListener("mousemove", q, !0), document.removeEventListener("click", J, !0);
2615
2623
  }), [q, J]);
2616
2624
  const le = async () => {
2617
- if (D === 0) return;
2618
- const O = await p(k);
2619
- O.applied && (x(), O.skipRevert || z());
2620
- }, b = e ? ot(e) : null, Q = e ? Ft(e) : null, ce = e ? Bt(e) : 0, ge = e ? _t(e, "all-instances") : "", $ = s !== "normal" && Q === "tailwind" ? "Tailwind variant preview: matching hover:/focus:/… classes are applied without the prefix." : s !== "normal" ? "State preview uses focus/disabled simulation where possible." : null, I = ce > 1 ? o === "all-instances" ? `Preview & Apply on ${ce} elements (${ge}).` : `This instance only — ${ce - 1} other on page.` : o === "all-instances" ? "Only one match — scope has no effect." : null, B = se(() => !e || o !== "all-instances" ? [] : Oe(e, "all-instances"), [e, o]);
2625
+ if (O === 0) return;
2626
+ const D = await p(k);
2627
+ D.applied && (x(), D.skipRevert || z());
2628
+ }, b = e ? ot(e) : null, Q = e ? Ft(e) : null, ce = e ? Bt(e) : 0, ge = e ? _t(e, "all-instances") : "", $ = s !== "normal" && Q === "tailwind" ? "Tailwind variant preview: matching hover:/focus:/… classes are applied without the prefix." : s !== "normal" ? "State preview uses focus/disabled simulation where possible." : null, I = ce > 1 ? o === "all-instances" ? `Preview & Apply on ${ce} elements (${ge}).` : `This instance only — ${ce - 1} other on page.` : o === "all-instances" ? "Only one match — scope has no effect." : null, B = se(() => !e || o !== "all-instances" ? [] : De(e, "all-instances"), [e, o]);
2621
2629
  return /* @__PURE__ */ u(Z, { children: [
2622
2630
  /* @__PURE__ */ a(
2623
2631
  jt,
@@ -2698,7 +2706,7 @@ All instances: ${ge}`,
2698
2706
  /* @__PURE__ */ u("div", { className: "pa-edit-panel-sticky", children: [
2699
2707
  /* @__PURE__ */ u("div", { className: "pa-edit-actions", children: [
2700
2708
  /* @__PURE__ */ a(G, { variant: "regular", onClick: P, disabled: !w, children: /* @__PURE__ */ u("span", { className: "pa-glass-btn-inner", children: [
2701
- /* @__PURE__ */ a($n, { className: "pa-glass-btn-icon" }),
2709
+ /* @__PURE__ */ a(Pn, { className: "pa-glass-btn-icon" }),
2702
2710
  /* @__PURE__ */ a("span", { children: "Undo" })
2703
2711
  ] }) }),
2704
2712
  /* @__PURE__ */ a(
@@ -2708,7 +2716,7 @@ All instances: ${ge}`,
2708
2716
  onClick: y,
2709
2717
  disabled: C.length === 0,
2710
2718
  children: /* @__PURE__ */ u("span", { className: "pa-glass-btn-inner", children: [
2711
- /* @__PURE__ */ a(Pn, { className: "pa-glass-btn-icon" }),
2719
+ /* @__PURE__ */ a(Rn, { className: "pa-glass-btn-icon" }),
2712
2720
  /* @__PURE__ */ a("span", { children: "Reset" })
2713
2721
  ] })
2714
2722
  }
@@ -2719,7 +2727,7 @@ All instances: ${ge}`,
2719
2727
  "span",
2720
2728
  {
2721
2729
  className: d ? /fail/i.test(d) ? "pa-change-count pa-change-count--error" : "pa-change-count pa-change-count--success" : "pa-change-count",
2722
- children: d ?? `${D} pending change${D !== 1 ? "s" : ""}`
2730
+ children: d ?? `${O} pending change${O !== 1 ? "s" : ""}`
2723
2731
  }
2724
2732
  ),
2725
2733
  /* @__PURE__ */ a(
@@ -2727,7 +2735,7 @@ All instances: ${ge}`,
2727
2735
  {
2728
2736
  variant: "glass-primary",
2729
2737
  onClick: le,
2730
- disabled: D === 0,
2738
+ disabled: O === 0,
2731
2739
  title: b != null && b.sourceFile ? void 0 : "No source file — Apply copies selector + changes to clipboard",
2732
2740
  children: "Apply"
2733
2741
  }
@@ -2740,7 +2748,7 @@ All instances: ${ge}`,
2740
2748
  )
2741
2749
  ] });
2742
2750
  }
2743
- async function Ya(e, t = {}) {
2751
+ async function Xa(e, t = {}) {
2744
2752
  if (t.onApply)
2745
2753
  try {
2746
2754
  const r = await t.onApply(e);
@@ -2762,7 +2770,7 @@ async function Ya(e, t = {}) {
2762
2770
  }
2763
2771
  return await Ht(JSON.stringify(e, null, 2)), { mode: "clipboard" };
2764
2772
  }
2765
- function Xa(e) {
2773
+ function Ga(e) {
2766
2774
  const [t, n] = S(null);
2767
2775
  return _(() => {
2768
2776
  if (!e) {
@@ -2777,7 +2785,7 @@ function Xa(e) {
2777
2785
  };
2778
2786
  }, [e]), t;
2779
2787
  }
2780
- const ue = 8, re = 8, Ga = 12, Ka = 300, qa = 280;
2788
+ const ue = 8, re = 8, Ka = 12, qa = 300, Ja = 280;
2781
2789
  function Ze(e, t, n, r) {
2782
2790
  return {
2783
2791
  top: e,
@@ -2791,7 +2799,7 @@ function Ze(e, t, n, r) {
2791
2799
  function tt(e, t) {
2792
2800
  return e.left < t.right && e.right > t.left && e.top < t.bottom && e.bottom > t.top;
2793
2801
  }
2794
- function Ja(e, t) {
2802
+ function Za(e, t) {
2795
2803
  return {
2796
2804
  top: e.top - t,
2797
2805
  left: e.left - t,
@@ -2801,12 +2809,12 @@ function Ja(e, t) {
2801
2809
  height: e.height + t * 2
2802
2810
  };
2803
2811
  }
2804
- function Za() {
2812
+ function Qa() {
2805
2813
  if (typeof document > "u") return null;
2806
2814
  const e = document.querySelector(
2807
2815
  "[data-pixelagent-toolbar-portal] .pa-toolbar-float"
2808
2816
  );
2809
- return e ? Ja(e.getBoundingClientRect(), Ga) : null;
2817
+ return e ? Za(e.getBoundingClientRect(), Ka) : null;
2810
2818
  }
2811
2819
  function Qe(e, t) {
2812
2820
  return Math.min(
@@ -2820,14 +2828,14 @@ function Ie(e, t) {
2820
2828
  window.innerHeight - t - ue
2821
2829
  );
2822
2830
  }
2823
- function Qa(e) {
2831
+ function er(e) {
2824
2832
  return e.top >= ue && e.left >= ue && e.right <= window.innerWidth - ue && e.bottom <= window.innerHeight - ue;
2825
2833
  }
2826
- function er(e, t) {
2827
- return t && tt(e, t) ? !1 : Qa(e);
2834
+ function tr(e, t) {
2835
+ return t && tt(e, t) ? !1 : er(e);
2828
2836
  }
2829
- function tr(e, t = Ka, n = qa) {
2830
- const r = Za(), i = e.top > window.innerHeight * 0.45 ? [
2837
+ function nr(e, t = qa, n = Ja) {
2838
+ const r = Qa(), i = e.top > window.innerHeight * 0.45 ? [
2831
2839
  { placement: "above", top: e.top - n - re, left: e.left },
2832
2840
  { placement: "below", top: e.bottom + re, left: e.left },
2833
2841
  { placement: "right", top: e.top, left: e.right + re },
@@ -2845,7 +2853,7 @@ function tr(e, t = Ka, n = qa) {
2845
2853
  t,
2846
2854
  n
2847
2855
  );
2848
- if (er(g, r))
2856
+ if (tr(g, r))
2849
2857
  return { top: g.top, left: g.left };
2850
2858
  }
2851
2859
  let s = Ie(e.top - n - re, n), l = Qe(e.left, t);
@@ -2858,13 +2866,13 @@ function tr(e, t = Ka, n = qa) {
2858
2866
  }
2859
2867
  return { top: s, left: l };
2860
2868
  }
2861
- function nr({
2869
+ function ar({
2862
2870
  elements: e,
2863
2871
  areaBbox: t,
2864
2872
  onSubmit: n,
2865
2873
  onCancel: r
2866
2874
  }) {
2867
- const [o, i] = S(""), s = W(null), l = W(null), p = e[0] ?? null, d = t ? new DOMRect(t.x, t.y, t.width, t.height) : null, g = Xa(p), m = d ?? g, c = Wt(), f = p ? xe(p) : { kind: "none", value: "" }, h = f.kind !== "none" ? f.value : void 0;
2875
+ const [o, i] = S(""), s = V(null), l = V(null), p = e[0] ?? null, d = t ? new DOMRect(t.x, t.y, t.width, t.height) : null, g = Ga(p), m = d ?? g, c = Vt(), f = p ? xe(p) : { kind: "none", value: "" }, h = f.kind !== "none" ? f.value : void 0;
2868
2876
  if (_(() => {
2869
2877
  var x;
2870
2878
  (x = s.current) == null || x.focus();
@@ -2874,7 +2882,7 @@ function nr({
2874
2882
  };
2875
2883
  return document.addEventListener("keydown", x), () => document.removeEventListener("keydown", x);
2876
2884
  }, [r]), !m) return null;
2877
- const C = tr(m), k = e.length > 1 ? `${e.length} selected` : p ? at(p) : "Area selection", D = (x) => {
2885
+ const C = nr(m), k = e.length > 1 ? `${e.length} selected` : p ? at(p) : "Area selection", O = (x) => {
2878
2886
  o.trim() && n(o, x);
2879
2887
  };
2880
2888
  return /* @__PURE__ */ a(
@@ -2914,7 +2922,7 @@ function nr({
2914
2922
  placeholder: "Describe the change...",
2915
2923
  rows: 3,
2916
2924
  onKeyDown: (x) => {
2917
- x.key === "Enter" && (x.metaKey || x.ctrlKey) && (x.preventDefault(), D(x.shiftKey)), x.key === "Escape" && r();
2925
+ x.key === "Enter" && (x.metaKey || x.ctrlKey) && (x.preventDefault(), O(x.shiftKey)), x.key === "Escape" && r();
2918
2926
  }
2919
2927
  }
2920
2928
  )
@@ -2926,7 +2934,7 @@ function nr({
2926
2934
  G,
2927
2935
  {
2928
2936
  variant: "ghost",
2929
- onClick: () => D(!0),
2937
+ onClick: () => O(!0),
2930
2938
  disabled: !o.trim(),
2931
2939
  children: "Add & next"
2932
2940
  }
@@ -2935,7 +2943,7 @@ function nr({
2935
2943
  G,
2936
2944
  {
2937
2945
  variant: "glass-primary",
2938
- onClick: () => D(!1),
2946
+ onClick: () => O(!1),
2939
2947
  disabled: !o.trim(),
2940
2948
  children: "Add"
2941
2949
  }
@@ -2947,7 +2955,7 @@ function nr({
2947
2955
  }
2948
2956
  );
2949
2957
  }
2950
- function ar({ area: e, isDragging: t }) {
2958
+ function rr({ area: e, isDragging: t }) {
2951
2959
  return !e || e.width < 2 || e.height < 2 ? null : /* @__PURE__ */ a(
2952
2960
  "div",
2953
2961
  {
@@ -2962,7 +2970,7 @@ function ar({ area: e, isDragging: t }) {
2962
2970
  }
2963
2971
  );
2964
2972
  }
2965
- function rr(e) {
2973
+ function or(e) {
2966
2974
  const { elements: t, note: n, areaBbox: r } = e, o = t[0];
2967
2975
  if (!o && r)
2968
2976
  return {
@@ -2981,7 +2989,7 @@ function rr(e) {
2981
2989
  };
2982
2990
  if (!o)
2983
2991
  throw new Error("buildAnnotationEntry requires at least one element or areaBbox");
2984
- const i = o.getBoundingClientRect(), s = ot(o), l = Wt(), p = xe(o), d = p.kind !== "none" ? p.value : void 0, g = t.map((m) => rt(m));
2992
+ const i = o.getBoundingClientRect(), s = ot(o), l = Vt(), p = xe(o), d = p.kind !== "none" ? p.value : void 0, g = t.map((m) => rt(m));
2985
2993
  return {
2986
2994
  id: crypto.randomUUID(),
2987
2995
  selector: g[0],
@@ -3004,8 +3012,8 @@ function rr(e) {
3004
3012
  createdAt: Date.now()
3005
3013
  };
3006
3014
  }
3007
- function or(e) {
3008
- const t = Vt(e);
3015
+ function ir(e) {
3016
+ const t = Wt(e);
3009
3017
  if (t) return t.getBoundingClientRect();
3010
3018
  if (e.bbox) {
3011
3019
  const { x: n, y: r, width: o, height: i } = e.bbox;
@@ -3021,11 +3029,11 @@ function or(e) {
3021
3029
  }
3022
3030
  return null;
3023
3031
  }
3024
- function ir(e) {
3032
+ function sr(e) {
3025
3033
  return `${Math.round(e.top)}:${Math.round(e.left)}:${Math.round(e.width)}:${Math.round(e.height)}`;
3026
3034
  }
3027
- const sr = 20, lr = 96;
3028
- function cr({
3035
+ const lr = 20, cr = 96;
3036
+ function pr({
3029
3037
  annotations: e,
3030
3038
  activeId: t,
3031
3039
  onActiveChange: n
@@ -3039,13 +3047,13 @@ function cr({
3039
3047
  const l = () => {
3040
3048
  const g = [], m = /* @__PURE__ */ new Map();
3041
3049
  e.forEach((c, f) => {
3042
- const h = or(c);
3050
+ const h = ir(c);
3043
3051
  if (!h) return;
3044
- const C = ir(h), k = m.get(C) ?? 0;
3052
+ const C = sr(h), k = m.get(C) ?? 0;
3045
3053
  m.set(C, k + 1), g.push({
3046
3054
  id: c.id,
3047
3055
  index: f + 1,
3048
- top: h.top + 6 - k * sr,
3056
+ top: h.top + 6 - k * lr,
3049
3057
  left: h.right - 6,
3050
3058
  note: c.note,
3051
3059
  target: Ut(c).target,
@@ -3061,7 +3069,7 @@ function cr({
3061
3069
  l();
3062
3070
  const p = /* @__PURE__ */ new Set();
3063
3071
  for (const g of e) {
3064
- const m = Vt(g);
3072
+ const m = Wt(g);
3065
3073
  m && p.add(m);
3066
3074
  }
3067
3075
  const d = Array.from(p).map((g) => {
@@ -3073,7 +3081,7 @@ function cr({
3073
3081
  window.removeEventListener("scroll", l, !0), window.removeEventListener("resize", l);
3074
3082
  };
3075
3083
  }, [e]), r.length === 0) return null;
3076
- const i = t ? r.find((l) => l.id === t) ?? null : null, s = i ? i.rect.top < lr : !1;
3084
+ const i = t ? r.find((l) => l.id === t) ?? null : null, s = i ? i.rect.top < cr : !1;
3077
3085
  return /* @__PURE__ */ u(Z, { children: [
3078
3086
  i && /* @__PURE__ */ a(
3079
3087
  "div",
@@ -3120,7 +3128,7 @@ function cr({
3120
3128
  ] });
3121
3129
  }
3122
3130
  const ct = "[data-pixelagent-root],[data-pixelagent-toolbar-portal],[data-pixelagent-picker-portal]";
3123
- function De(e) {
3131
+ function Oe(e) {
3124
3132
  return e instanceof Element ? !!e.closest(ct) : !1;
3125
3133
  }
3126
3134
  function $t(e, t) {
@@ -3146,7 +3154,7 @@ function rn({
3146
3154
  }
3147
3155
  ) : /* @__PURE__ */ a(Z, { children: n });
3148
3156
  }
3149
- function pr() {
3157
+ function dr() {
3150
3158
  return /* @__PURE__ */ u(
3151
3159
  "svg",
3152
3160
  {
@@ -3162,7 +3170,7 @@ function pr() {
3162
3170
  }
3163
3171
  );
3164
3172
  }
3165
- function dr() {
3173
+ function ur() {
3166
3174
  return /* @__PURE__ */ u("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: [
3167
3175
  /* @__PURE__ */ a("circle", { cx: "8", cy: "8", r: "2.75", stroke: "currentColor", strokeWidth: "1.25" }),
3168
3176
  /* @__PURE__ */ a(
@@ -3176,7 +3184,7 @@ function dr() {
3176
3184
  )
3177
3185
  ] });
3178
3186
  }
3179
- function ur() {
3187
+ function fr() {
3180
3188
  return /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ a(
3181
3189
  "path",
3182
3190
  {
@@ -3187,7 +3195,7 @@ function ur() {
3187
3195
  }
3188
3196
  ) });
3189
3197
  }
3190
- function fr() {
3198
+ function gr() {
3191
3199
  return /* @__PURE__ */ u("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: [
3192
3200
  /* @__PURE__ */ a(
3193
3201
  "path",
@@ -3221,7 +3229,7 @@ function fr() {
3221
3229
  )
3222
3230
  ] });
3223
3231
  }
3224
- function gr({
3232
+ function hr({
3225
3233
  annotations: e,
3226
3234
  onClose: t,
3227
3235
  onCopyAll: n,
@@ -3234,7 +3242,7 @@ function gr({
3234
3242
  copiedEntryId: d,
3235
3243
  copyAllFrom: g
3236
3244
  }) {
3237
- const [m, c] = S(null), [f, h] = S(""), { elementRef: C, isDragging: k, style: D, dragHandleProps: x } = it({
3245
+ const [m, c] = S(null), [f, h] = S(""), { elementRef: C, isDragging: k, style: O, dragHandleProps: x } = it({
3238
3246
  computeDefaultPosition: (v) => ({
3239
3247
  x: window.innerWidth - v.width - 16,
3240
3248
  y: 16
@@ -3256,7 +3264,7 @@ function gr({
3256
3264
  {
3257
3265
  ref: C,
3258
3266
  className: `pa-session-panel-float ${k ? "pa-session-panel-float--dragging" : ""}`,
3259
- style: D,
3267
+ style: O,
3260
3268
  children: /* @__PURE__ */ u(_e, { variant: "sheet", side: "right", children: [
3261
3269
  /* @__PURE__ */ u("div", { className: "pa-session-header", children: [
3262
3270
  /* @__PURE__ */ u("div", { className: "pa-session-header-main", children: [
@@ -3383,7 +3391,7 @@ function gr({
3383
3391
  className: "pa-glass-btn--sm pa-session-action-icon",
3384
3392
  onClick: () => o(v.id),
3385
3393
  "aria-label": "Remove annotation",
3386
- children: /* @__PURE__ */ a(fr, {})
3394
+ children: /* @__PURE__ */ a(gr, {})
3387
3395
  }
3388
3396
  )
3389
3397
  ] })
@@ -3397,14 +3405,14 @@ function gr({
3397
3405
  }
3398
3406
  );
3399
3407
  }
3400
- function hr({
3408
+ function mr({
3401
3409
  open: e,
3402
3410
  onClose: t,
3403
3411
  hostTheme: n,
3404
3412
  chrome: r,
3405
3413
  onToggleHostTheme: o
3406
3414
  }) {
3407
- const i = W(null);
3415
+ const i = V(null);
3408
3416
  return _(() => {
3409
3417
  if (!e) return;
3410
3418
  const s = (p) => {
@@ -3433,7 +3441,7 @@ function hr({
3433
3441
  onClick: o,
3434
3442
  "aria-label": n === "dark" ? "Switch host to light theme" : "Switch host to dark theme",
3435
3443
  title: n === "dark" ? "Light theme" : "Dark theme",
3436
- children: n === "dark" ? /* @__PURE__ */ a(dr, {}) : /* @__PURE__ */ a(ur, {})
3444
+ children: n === "dark" ? /* @__PURE__ */ a(ur, {}) : /* @__PURE__ */ a(fr, {})
3437
3445
  }
3438
3446
  )
3439
3447
  ] })
@@ -3449,14 +3457,14 @@ function hr({
3449
3457
  ] }) }) }) : null;
3450
3458
  }
3451
3459
  const Pt = "0 0 24 24";
3452
- function mr() {
3460
+ function xr() {
3453
3461
  return /* @__PURE__ */ u(Z, { children: [
3454
3462
  /* @__PURE__ */ a("rect", { x: "3", y: "14", width: "4", height: "4", fill: "currentColor" }),
3455
3463
  /* @__PURE__ */ a("path", { fill: "currentColor", d: "M7 5h12v12L7 5z" })
3456
3464
  ] });
3457
3465
  }
3458
- const xr = "M4.5 2.5L4.5 17.25L9.1 12.9L11.35 19.15L13.55 17.95L11.05 11.85L16.85 11.85L4.5 2.5Z";
3459
- function br({ size: e = 22, variant: t = "cursor" }) {
3466
+ const br = "M4.5 2.5L4.5 17.25L9.1 12.9L11.35 19.15L13.55 17.95L11.05 11.85L16.85 11.85L4.5 2.5Z";
3467
+ function vr({ size: e = 22, variant: t = "cursor" }) {
3460
3468
  return t === "pointer" ? /* @__PURE__ */ a(
3461
3469
  "svg",
3462
3470
  {
@@ -3470,7 +3478,7 @@ function br({ size: e = 22, variant: t = "cursor" }) {
3470
3478
  "path",
3471
3479
  {
3472
3480
  fill: "currentColor",
3473
- d: xr
3481
+ d: br
3474
3482
  }
3475
3483
  )
3476
3484
  }
@@ -3483,16 +3491,16 @@ function br({ size: e = 22, variant: t = "cursor" }) {
3483
3491
  viewBox: Pt,
3484
3492
  xmlns: "http://www.w3.org/2000/svg",
3485
3493
  "aria-hidden": "true",
3486
- children: /* @__PURE__ */ a(mr, {})
3494
+ children: /* @__PURE__ */ a(xr, {})
3487
3495
  }
3488
3496
  );
3489
3497
  }
3490
- const vr = ["element", "area", "multi"], wr = {
3498
+ const wr = ["element", "area", "multi"], yr = {
3491
3499
  element: "Click",
3492
3500
  area: "Area",
3493
3501
  multi: "Multi"
3494
3502
  };
3495
- function yr({
3503
+ function kr({
3496
3504
  rootAttributes: e,
3497
3505
  hostTheme: t,
3498
3506
  chrome: n,
@@ -3510,7 +3518,7 @@ function yr({
3510
3518
  onActivateAnnotate: h,
3511
3519
  onActivateEdit: C,
3512
3520
  onDeactivate: k,
3513
- onCopyAll: D,
3521
+ onCopyAll: O,
3514
3522
  onCaptureModeChange: x,
3515
3523
  onConfirmMultiSelect: w
3516
3524
  }) {
@@ -3524,7 +3532,7 @@ function yr({
3524
3532
  "aria-label": "PixelAgent",
3525
3533
  children: [
3526
3534
  !l && /* @__PURE__ */ a(
3527
- hr,
3535
+ mr,
3528
3536
  {
3529
3537
  open: r,
3530
3538
  onClose: i,
@@ -3542,7 +3550,7 @@ function yr({
3542
3550
  "aria-label": "Drag PixelAgent toolbar",
3543
3551
  title: "Drag to move",
3544
3552
  ...P,
3545
- children: /* @__PURE__ */ a(br, { size: 22 })
3553
+ children: /* @__PURE__ */ a(vr, { size: 22 })
3546
3554
  }
3547
3555
  ),
3548
3556
  /* @__PURE__ */ a("span", { className: "pa-toolbar-divider", "aria-hidden": "true" }),
@@ -3557,7 +3565,7 @@ function yr({
3557
3565
  value: d,
3558
3566
  onChange: (M) => x(M.target.value),
3559
3567
  "aria-label": "Capture mode",
3560
- children: vr.map((M) => /* @__PURE__ */ a("option", { value: M, children: wr[M] }, M))
3568
+ children: wr.map((M) => /* @__PURE__ */ a("option", { value: M, children: yr[M] }, M))
3561
3569
  }
3562
3570
  ),
3563
3571
  m > 0 && /* @__PURE__ */ a(
@@ -3578,7 +3586,7 @@ function yr({
3578
3586
  G,
3579
3587
  {
3580
3588
  variant: "glass-primary",
3581
- onClick: D,
3589
+ onClick: O,
3582
3590
  disabled: g === 0,
3583
3591
  "aria-label": g > 0 ? `Copy all annotations (${g})` : "Copy all annotations",
3584
3592
  children: g > 0 ? `Copy (${g})` : "Copy"
@@ -3632,7 +3640,7 @@ function yr({
3632
3640
  "aria-label": "PixelAgent settings",
3633
3641
  "aria-expanded": r,
3634
3642
  title: "Settings",
3635
- children: /* @__PURE__ */ a(pr, {})
3643
+ children: /* @__PURE__ */ a(dr, {})
3636
3644
  }
3637
3645
  )
3638
3646
  ] }),
@@ -3654,8 +3662,8 @@ function yr({
3654
3662
  document.body
3655
3663
  );
3656
3664
  }
3657
- function kr() {
3658
- const e = W(mn()), [t, n] = S(
3665
+ function Nr() {
3666
+ const e = V(mn()), [t, n] = S(
3659
3667
  () => {
3660
3668
  var i;
3661
3669
  return ((i = e.current) == null ? void 0 : i.annotations) ?? [];
@@ -3678,7 +3686,7 @@ function kr() {
3678
3686
  removeAnnotation: o
3679
3687
  };
3680
3688
  }
3681
- function Nr({
3689
+ function Cr({
3682
3690
  ui: e,
3683
3691
  hostTheme: t,
3684
3692
  onHostThemeChange: n
@@ -3726,30 +3734,30 @@ function Nr({
3726
3734
  uiSettings: r
3727
3735
  };
3728
3736
  }
3729
- const Cr = `.pa-root{--pa-glass-blur: 4px;--pa-glass-saturate: 130%;--pa-glass-opacity: .78;--pa-glass-tint: rgba(255, 255, 255, .08);--pa-glass-tint-accent: rgba(99, 102, 241, .32);--pa-glass-border: rgba(255, 255, 255, .28);--pa-glass-rim: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 0 0 1px rgba(255, 255, 255, .06), inset 1px 0 0 rgba(255, 255, 255, .18), inset -1px 0 0 rgba(255, 255, 255, .18), inset 0 -1px 1px rgba(0, 0, 0, .18);--pa-glass-shadow: 0 1px 1px rgba(0, 0, 0, .06), 0 4px 12px rgba(0, 0, 0, .14), 0 12px 40px rgba(0, 0, 0, .32);--pa-glass-specular: radial-gradient( ellipse 65% 45% at 22% 14%, rgba(255, 255, 255, .38) 0%, rgba(255, 255, 255, .08) 38%, transparent 72% );--pa-glass-underglow: radial-gradient( ellipse 95% 38% at 50% 100%, rgba(129, 140, 248, .18) 0%, transparent 60% );--pa-glass-radius-bar: 999px;--pa-glass-radius-panel: 20px;--pa-glass-radius-popover: 16px;--pa-glass-radius-control: 10px;--pa-glass-group-gap: 10px;--pa-glass-morph-duration: .32s;--pa-glass-morph-easing: cubic-bezier(.4, 0, .2, 1);--pa-glass-fallback-bg: rgba(28, 28, 30, .94);--pa-glass-fallback-border: rgba(255, 255, 255, .12);--pa-glass-surface-fill: rgba(255, 255, 255, .06);--pa-glass-control-hover: rgba(255, 255, 255, .12);--pa-glass-control-active: rgba(255, 255, 255, .18);--pa-divider: rgba(255, 255, 255, .08);--pa-tooltip-bg: rgba(20, 20, 24, .82);--pa-tooltip-border: rgba(255, 255, 255, .14);--pa-toolbar-segment-bg: rgba(0, 0, 0, .28);--pa-toolbar-segment-border: rgba(255, 255, 255, .06);--pa-toolbar-divider-color: rgba(255, 255, 255, .12);--pa-text: rgba(255, 255, 255, .92);--pa-text-secondary: rgba(255, 255, 255, .62);--pa-accent: #818cf8;--pa-accent-bright: #a5b4fc;--pa-success: #6ee7b7;--pa-font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--pa-font-mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, monospace;--pa-z: 2147483640;--pa-field-bg: rgba(255, 255, 255, .04);--pa-field-bg-hover: rgba(255, 255, 255, .06);--pa-field-border: rgba(255, 255, 255, .12);--pa-field-border-hover: rgba(255, 255, 255, .2);--pa-field-border-focus: rgba(255, 255, 255, .32);--pa-field-radius: 8px}@media(prefers-reduced-transparency:reduce){.pa-root{--pa-glass-blur: 0px;--pa-glass-saturate: 100%;--pa-glass-opacity: 1;--pa-glass-tint: var(--pa-glass-fallback-bg);--pa-glass-tint-accent: rgba(99, 102, 241, .85);--pa-glass-border: var(--pa-glass-fallback-border);--pa-glass-rim: none;--pa-glass-specular: none;--pa-glass-underglow: none}}@media(prefers-reduced-motion:reduce){.pa-root{--pa-glass-morph-duration: 0ms}}.pa-root[data-pa-chrome=dim],.pa-root--toolbar-portal[data-pa-chrome=dim]{--pa-glass-blur: 16px;--pa-glass-saturate: 125%;--pa-glass-opacity: .88;--pa-glass-tint: rgba(92, 92, 96, .68);--pa-glass-tint-accent: rgba(100, 100, 104, .74);--pa-glass-surface-fill: rgba(96, 96, 100, .64);--pa-glass-border: rgba(255, 255, 255, .2);--pa-glass-rim: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 0 1px rgba(255, 255, 255, .05), inset 1px 0 0 rgba(255, 255, 255, .08), inset -1px 0 0 rgba(255, 255, 255, .08), inset 0 -1px 1px rgba(0, 0, 0, .22);--pa-glass-shadow: 0 2px 4px rgba(0, 0, 0, .08), 0 10px 32px rgba(0, 0, 0, .14), 0 24px 48px rgba(0, 0, 0, .1);--pa-glass-specular: radial-gradient( ellipse 68% 48% at 22% 10%, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .1) 40%, transparent 72% );--pa-glass-underglow: none;--pa-glass-fallback-bg: rgba(82, 82, 86, .96);--pa-glass-fallback-border: rgba(255, 255, 255, .12);--pa-glass-control-hover: rgba(255, 255, 255, .1);--pa-glass-control-active: rgba(255, 255, 255, .16);--pa-divider: rgba(255, 255, 255, .1);--pa-tooltip-bg: rgba(82, 82, 86, .96);--pa-tooltip-border: rgba(255, 255, 255, .18);--pa-toolbar-segment-bg: rgba(0, 0, 0, .18);--pa-toolbar-segment-border: rgba(255, 255, 255, .08);--pa-toolbar-divider-color: rgba(255, 255, 255, .14);--pa-text: rgba(255, 255, 255, .94);--pa-text-secondary: rgba(255, 255, 255, .58);--pa-accent: #a5b4fc;--pa-accent-bright: #c7d2fe;--pa-success: #6ee7b7;--pa-field-bg: rgba(255, 255, 255, .06);--pa-field-bg-hover: rgba(255, 255, 255, .09);--pa-field-border: rgba(255, 255, 255, .14);--pa-field-border-hover: rgba(255, 255, 255, .22);--pa-field-border-focus: rgba(255, 255, 255, .32)}.pa-glass-surface{position:relative;overflow:hidden;background:var(--pa-glass-surface-fill);border:1px solid var(--pa-glass-border);box-shadow:var(--pa-glass-shadow),var(--pa-glass-rim);border-radius:inherit;backdrop-filter:blur(4px) saturate(130%);-webkit-backdrop-filter:blur(4px) saturate(130%);will-change:backdrop-filter}.pa-glass-surface.pa-toolbar-glass{backdrop-filter:blur(6px) saturate(138%);-webkit-backdrop-filter:blur(6px) saturate(138%)}.pa-glass-surface-blur{display:none}.pa-glass-surface-refraction{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;z-index:0;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .2s ease-out}.pa-glass-surface-refraction[data-pa-ready="1"]{opacity:1}.pa-glass-surface-bg{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;border-radius:inherit;background:linear-gradient(180deg,#ffffff1a,#fff0 28%),linear-gradient(0deg,#ffffff08,#fff0 22%);pointer-events:none}@media(prefers-reduced-transparency:reduce){.pa-glass-surface{backdrop-filter:none;-webkit-backdrop-filter:none;background:var(--pa-glass-fallback-bg);border-color:var(--pa-glass-fallback-border);box-shadow:none}.pa-glass-surface-bg{filter:none;background:transparent}}.pa-glass-surface--accent{background:var(--pa-glass-tint-accent)}.pa-glass-surface-shine{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;border-radius:inherit;pointer-events:none;background:var(--pa-glass-specular);mix-blend-mode:screen}.pa-glass-surface:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;border-radius:inherit;pointer-events:none;background:var(--pa-glass-underglow);mix-blend-mode:screen}@media(prefers-reduced-transparency:reduce){.pa-glass-surface-shine,.pa-glass-surface:after{display:none}}.pa-glass-surface-content{position:relative;z-index:3}.pa-glass-container{display:flex;align-items:center;gap:var(--pa-glass-group-gap);font-family:var(--pa-font)}.pa-toolbar-float{position:fixed;bottom:24px;left:50%;margin-left:-150px;z-index:var(--pa-z);touch-action:none}.pa-toolbar-float--dragging{-webkit-user-select:none;user-select:none}.pa-toolbar-inner{display:flex;align-items:center;gap:6px;padding:6px 10px 6px 6px}.pa-toolbar-drag{all:unset;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;color:var(--pa-text);cursor:grab;touch-action:none;flex-shrink:0;transition:background .15s ease}.pa-toolbar-drag:hover{background:var(--pa-glass-control-hover)}.pa-brand-cursor{display:block;flex-shrink:0;pointer-events:none}.pa-brand-cursor--pointer{margin-top:-2px;margin-left:-1px}.pa-brand-cursor--minimal{display:block}.pa-toolbar-float--dragging .pa-toolbar-drag{cursor:grabbing;background:#ffffff24}.pa-toolbar-divider{width:1px;height:24px;background:var(--pa-toolbar-divider-color);flex-shrink:0}.pa-toolbar-segment{display:flex;align-items:center;gap:4px;padding:3px 4px;border-radius:999px;background:var(--pa-toolbar-segment-bg);border:1px solid var(--pa-toolbar-segment-border)}.pa-toolbar-capture-select{width:auto;min-width:76px;padding:6px 28px 6px 10px;font-size:12px;font-weight:500;letter-spacing:0;text-transform:none;border-radius:999px;cursor:pointer}.pa-toolbar-close{margin-left:2px;flex-shrink:0}.pa-toolbar-status{font-size:11px;padding:0 8px;white-space:nowrap}.pa-settings-menu{position:absolute;right:8px;bottom:calc(100% + 12px);z-index:2;width:min(280px,calc(100vw - 32px));pointer-events:auto}.pa-settings-menu-panel{width:100%}.pa-settings-menu-inner{padding:14px 16px 16px}.pa-settings-menu-header{margin-bottom:14px}.pa-settings-menu-title{margin:0;font-size:14px;font-weight:600;color:var(--pa-text)}.pa-settings-menu-subtitle{margin:4px 0 0;font-size:11px;color:var(--pa-text-secondary)}.pa-settings-section{padding:12px 0;border-top:1px solid var(--pa-divider)}.pa-settings-section:first-of-type{border-top:none;padding-top:0}.pa-settings-section-label{display:block;font-size:10px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--pa-text-secondary);margin-bottom:8px}.pa-settings-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.pa-settings-row-value{font-size:12px;color:var(--pa-text)}.pa-settings-hint{margin:0;font-size:11px;line-height:1.45;color:var(--pa-text-secondary)}.pa-glass-group{flex-shrink:0}.pa-glass-group-inner{display:flex;align-items:center;gap:2px;padding:4px 6px}.pa-glass-group--brand .pa-glass-group-inner{padding:6px 14px}.pa-glass-btn{all:unset;box-sizing:border-box;cursor:pointer;font-family:var(--pa-font);font-size:12px;font-weight:500;color:var(--pa-text);padding:6px 12px;border-radius:var(--pa-glass-radius-control);white-space:nowrap;transition:background var(--pa-glass-morph-duration) var(--pa-glass-morph-easing),transform .12s ease,color var(--pa-glass-morph-duration) ease}.pa-glass-btn:hover:not(:disabled){background:var(--pa-glass-control-hover)}.pa-glass-btn:active:not(:disabled){transform:scale(.97);background:var(--pa-glass-control-active)}.pa-glass-btn:disabled{opacity:.38;cursor:not-allowed}.pa-glass-btn--glass-primary,.pa-glass-btn--prominent{position:relative;color:#fff;font-weight:600;padding:8px 16px;background:#ffffff1a;backdrop-filter:blur(12px) saturate(140%);-webkit-backdrop-filter:blur(12px) saturate(140%);border:1px solid rgba(255,255,255,.28);box-shadow:inset 0 1px #fff6,0 4px 16px #00000026}.pa-glass-btn--glass-primary:before,.pa-glass-btn--prominent:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:inherit;background:linear-gradient(135deg,rgba(255,255,255,.22) 0%,transparent 45%,transparent 100%);pointer-events:none}.pa-glass-btn--glass-primary:hover:not(:disabled),.pa-glass-btn--prominent:hover:not(:disabled){background:#ffffff29;border-color:#ffffff61;box-shadow:inset 0 1px #ffffff73,0 6px 20px #0003}@media(prefers-reduced-transparency:reduce){.pa-glass-btn--glass-primary,.pa-glass-btn--prominent{backdrop-filter:none;-webkit-backdrop-filter:none;background:#3c3c46e6}}.pa-glass-btn--icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border-radius:50%;color:#ffffffbf;background:#ffffff0f;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.14);box-shadow:inset 0 1px #ffffff1f}.pa-glass-btn--icon:hover:not(:disabled){color:#fff;background:#ffffff1f;border-color:#ffffff38}.pa-glass-btn--ghost{color:var(--pa-text-secondary);padding:6px 10px}.pa-glass-btn--ghost:hover:not(:disabled){color:var(--pa-text);background:#ffffff14}.pa-glass-btn--active{background:#6366f173;color:#fff}.pa-glass-btn--sm{padding:2px 8px;font-size:11px}.pa-glass-panel{font-family:var(--pa-font);color:var(--pa-text)}.pa-glass-panel--sheet.pa-glass-panel--left{position:fixed;top:16px;left:16px;z-index:var(--pa-z);width:288px;max-height:calc(100vh - 100px)}.pa-glass-panel--sheet.pa-glass-panel--right{position:fixed;top:16px;right:16px;z-index:var(--pa-z);width:360px;max-height:60vh}.pa-glass-panel--popover{position:fixed;z-index:calc(var(--pa-z) + 2);width:300px}.pa-glass-panel .pa-glass-surface-content{padding:14px;display:flex;flex-direction:column;gap:10px}.pa-glass-panel--sheet .pa-glass-surface-content{padding:14px;overflow-y:auto;max-height:inherit}.pa-glass-panel--sheet.pa-glass-panel--right:not(.pa-edit-panel-glass) .pa-glass-surface-content{padding:0;gap:0}.pa-toolbar-brand{font-weight:600;font-size:12px;color:var(--pa-accent-bright);letter-spacing:-.01em}.pa-mode-badge{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--pa-text-secondary);padding:4px 10px}.pa-status{font-size:11px;font-weight:500;color:var(--pa-success);padding:4px 10px;animation:pa-status-in .28s var(--pa-glass-morph-easing)}.pa-copy-feedback-slot{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;font-size:12px;font-weight:600;white-space:nowrap;border-radius:999px;flex-shrink:0;animation:pa-status-in .28s var(--pa-glass-morph-easing)}.pa-copy-feedback-slot--toolbar{padding:8px 16px;min-height:34px}.pa-copy-feedback-slot--session{padding:8px 14px;min-height:34px}.pa-copy-feedback-slot--item{padding:6px 10px;min-width:44px;min-height:28px;font-size:11px}@keyframes pa-status-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.pa-status{animation:none}}.pa-glass-divider{width:1px;height:16px;background:#ffffff26;margin:0 2px;flex-shrink:0}.pa-root{all:initial;font-family:var(--pa-font);font-size:13px;line-height:1.4;color:var(--pa-text)}.pa-root--toolbar-portal{all:unset;position:static;font-family:var(--pa-font);font-size:13px;line-height:1.4;color:var(--pa-text);pointer-events:none}.pa-root--toolbar-portal .pa-toolbar-float{pointer-events:auto}.pa-root *,.pa-root *:before,.pa-root *:after{box-sizing:border-box}.pa-highlight{position:fixed;pointer-events:none;z-index:calc(var(--pa-z) - 2);border:2px solid var(--pa-accent);background:#6366f11f;border-radius:4px;box-shadow:0 0 0 1px #6366f140;transition:top .05s,left .05s,width .05s,height .05s,background var(--pa-glass-morph-duration) ease}.pa-highlight-selected{background:#6366f138;border-color:var(--pa-accent-bright);box-shadow:0 0 0 2px #6366f159,0 0 20px #6366f126}.pa-highlight-scope{background:#6366f129;border-style:dashed}.pa-highlight-primary{border-width:2px;background:#6366f147;box-shadow:0 0 0 3px #6366f173,0 0 24px #6366f133}.pa-annotation-badge{position:fixed;pointer-events:auto;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;z-index:calc(var(--pa-z) - 1);min-width:22px;height:22px;padding:0 6px;display:inline-flex;align-items:center;justify-content:center;font-family:var(--pa-font);font-size:12px;font-weight:700;line-height:1;color:#fff;background:#6669f8;border:none;border-radius:999px;box-shadow:0 2px 10px #37348c52;transform:translate(-50%,-50%);transition:top .05s,left .05s,transform .08s ease,background .08s ease,box-shadow .08s ease}.pa-annotation-badge:hover,.pa-annotation-badge--active{background:#7c7ffa;transform:translate(-50%,-50%) scale(1.18);box-shadow:0 0 0 3px #6366f173,0 2px 14px #37348c73}.pa-annotation-preview{position:fixed;pointer-events:none;z-index:calc(var(--pa-z) - 1);transform:translateY(-100%);display:flex;flex-direction:column;gap:3px;max-width:260px;padding:8px 10px;border-radius:8px;font-family:var(--pa-font);background:var(--pa-tooltip-bg);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--pa-tooltip-border);box-shadow:0 6px 24px #00000047}.pa-annotation-preview--below{transform:none}.pa-annotation-preview-target{font-family:var(--pa-font-mono, ui-monospace, monospace);font-size:10px;font-weight:600;letter-spacing:-.01em;color:var(--pa-accent-bright);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pa-annotation-preview-note{font-size:12px;font-weight:500;line-height:1.4;color:var(--pa-text);word-break:break-word;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}@media(prefers-reduced-transparency:reduce){.pa-annotation-preview{-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--pa-glass-fallback-bg);border-color:var(--pa-glass-fallback-border)}}.pa-tooltip{position:fixed;pointer-events:none;z-index:calc(var(--pa-z) - 1);font-family:var(--pa-font);font-size:12px;font-weight:600;letter-spacing:-.01em;color:var(--pa-text);padding:4px 8px;border-radius:6px;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:var(--pa-tooltip-bg);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--pa-tooltip-border)}@media(prefers-reduced-transparency:reduce){.pa-tooltip{-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--pa-glass-fallback-bg);border-color:var(--pa-glass-fallback-border)}}.pa-label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:500;letter-spacing:.04em;text-transform:uppercase;color:var(--pa-text-secondary);font-family:var(--pa-font)}.pa-select,.pa-input,.pa-textarea{font-family:var(--pa-font);font-size:12px;font-weight:400;line-height:1.4;color:var(--pa-text);background-color:var(--pa-field-bg);border:1px solid var(--pa-field-border);border-radius:var(--pa-field-radius);padding:8px 10px;outline:none;width:100%;transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease}.pa-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;padding-right:28px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='rgba(255,255,255,0.45)' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}.pa-select:hover:not(:focus),.pa-input:hover:not(:focus),.pa-textarea:hover:not(:focus){background-color:var(--pa-field-bg-hover);border-color:var(--pa-field-border-hover)}.pa-select:focus,.pa-input:focus,.pa-textarea:focus{background-color:#ffffff0d;border-color:var(--pa-field-border-focus);box-shadow:inset 0 1px #ffffff0f}.pa-textarea{resize:vertical;min-height:64px;line-height:1.5}@media(prefers-reduced-transparency:reduce){.pa-select,.pa-input,.pa-textarea{background-color:var(--pa-glass-fallback-bg);border-color:var(--pa-glass-fallback-border)}.pa-select:focus,.pa-input:focus,.pa-textarea:focus{border-color:var(--pa-accent)}}.pa-popover-header{display:flex;flex-direction:column;gap:3px}.pa-popover-selector{font-size:11px;font-weight:500;color:var(--pa-accent-bright);word-break:break-all}.pa-popover-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:2px}.pa-edit-panel-float{position:fixed;right:16px;top:16px;z-index:calc(var(--pa-z) + 4);width:312px;max-height:calc(100vh - 32px)}.pa-edit-panel-float--dragging{-webkit-user-select:none;user-select:none}.pa-edit-panel-float .pa-glass-panel--sheet{position:relative;top:auto;left:auto;right:auto;width:100%;max-height:calc(100vh - 32px)}.pa-edit-panel-glass .pa-glass-surface-content{display:flex;flex-direction:column;min-height:0;max-height:calc(100vh - 32px);padding:14px 14px 12px}.pa-edit-panel-inner{display:flex;flex-direction:column;min-height:0;flex:1;gap:10px}.pa-edit-panel-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;margin:0 -4px;padding:0 4px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.2) transparent}.pa-edit-panel-sticky{flex-shrink:0;padding-top:4px;border-top:1px solid rgba(255,255,255,.08)}.pa-edit-panel-header{display:flex;align-items:center;gap:8px}.pa-edit-panel-drag{all:unset;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:8px;cursor:grab;touch-action:none;flex-shrink:0;color:#ffffff73;transition:background .15s ease,color .15s ease}.pa-edit-panel-drag:hover{background:#ffffff1a;color:#ffffffd9}.pa-edit-panel-float--dragging .pa-edit-panel-drag{cursor:grabbing}.pa-edit-panel-grip{display:grid;grid-template-columns:repeat(2,4px);gap:3px}.pa-edit-panel-grip span{display:block;width:4px;height:4px;border-radius:50%;background:currentColor}.pa-edit-title{all:unset;display:block;font-size:14px;font-weight:600;letter-spacing:-.02em;flex:1}.pa-edit-hint{font-size:12px;color:var(--pa-text-secondary);margin:0;line-height:1.5}.pa-edit-state-hint{font-size:11px;color:var(--pa-text-secondary);margin:0 0 8px;line-height:1.45}.pa-edit-actions{display:flex;gap:8px;margin-top:8px}.pa-edit-actions .pa-glass-btn{display:inline-flex;align-items:center;justify-content:center}.pa-glass-btn-inner{display:inline-flex;align-items:center;gap:6px}.pa-glass-btn-icon{width:14px;height:14px;flex-shrink:0;opacity:.92}.pa-preview-disabled{opacity:.55;pointer-events:none}.pa-edit-meta{display:flex;flex-direction:column;gap:3px;margin-bottom:4px}.pa-edit-meta code,.pa-edit-meta-label{font-size:12px;font-weight:500;color:var(--pa-accent-bright);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pa-edit-source{font-size:10px;color:var(--pa-text-secondary)}.pa-edit-source--warn{color:var(--pa-warning, #e8a838);line-height:1.4}.pa-edit-text-input{min-height:72px;font-size:13px;line-height:1.55}.pa-edit-sections{display:flex;flex-direction:column}.pa-edit-section{border-bottom:1px solid rgba(255,255,255,.06)}.pa-edit-section:last-child{border-bottom:none}.pa-edit-section-header{box-sizing:border-box;display:flex;align-items:center;gap:6px;width:100%;padding:10px 2px 8px;color:#ffffffb8}.pa-edit-section-header-toggle,.pa-edit-section-chevron-btn{all:unset;box-sizing:border-box;display:flex;align-items:center;cursor:pointer}.pa-edit-section-header-toggle{flex:1;min-width:0;gap:8px}.pa-edit-section-header:hover{color:#ffffffeb}.pa-edit-section-title{font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;text-align:left}.pa-edit-section-action{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;flex-shrink:0;border-radius:6px;cursor:pointer;color:#ffffff8c;transition:color .14s ease,background .14s ease}.pa-edit-section-action:hover,.pa-edit-section-action[aria-expanded=true]{color:#fffffff2;background:#ffffff14}.pa-edit-section-action-icon{width:15px;height:15px}.pa-edit-section-chevron-btn{flex-shrink:0;padding:2px;margin-left:6px}.pa-edit-section-badge{font-size:10px;color:var(--pa-text-secondary)}.pa-edit-section-chevron{width:16px;height:16px;transform:rotate(-180deg);transition:transform .16s ease;opacity:.55}.pa-edit-section:not(.pa-edit-section--open) .pa-edit-section-chevron{transform:rotate(0)}.pa-edit-section-body{display:flex;flex-direction:column;gap:10px;padding:0 2px 12px}.pa-edit-field-label{display:block;font-size:10px;font-weight:500;letter-spacing:.04em;color:var(--pa-text-secondary);margin-bottom:5px}.pa-edit-stack-field{display:flex;flex-direction:column}.pa-edit-field-block{display:flex;flex-direction:column;gap:6px}.pa-edit-field-grid{display:grid;gap:10px}.pa-edit-field-grid--2{grid-template-columns:1fr 1fr}.pa-edit-mini-field{display:flex;flex-direction:column;min-width:0}.pa-edit-mini-field .pa-select{font-size:12px;padding:7px 8px}.pa-edit-inline-hint{font-size:10px;line-height:1.45;color:var(--pa-text-secondary);margin:0}.pa-edit-split-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px}.pa-edit-split-fields .pa-prop-row{grid-template-columns:1fr;gap:4px}.pa-segmented{display:flex;width:100%;border-radius:10px;border:1px solid rgba(255,255,255,.14);background:#00000047;overflow:hidden}.pa-segmented-btn{all:unset;box-sizing:border-box;flex:1;display:inline-flex;align-items:center;justify-content:center;min-width:0;height:34px;color:#ffffff80;border-right:1px solid rgba(255,255,255,.1);cursor:pointer;transition:background .12s ease,color .12s ease}.pa-segmented-btn:last-child{border-right:none}.pa-segmented-btn:hover{background:#ffffff0f;color:#ffffffd1}.pa-segmented-btn--on{background:#ffffff24;color:#fffffff2}.pa-segmented-icon{display:block;width:16px;height:16px;flex-shrink:0}.pa-segmented-type{font-size:13px;font-weight:600;line-height:1;font-family:var(--pa-font, system-ui, sans-serif)}.pa-segmented-type--bold{font-weight:700}.pa-segmented-type--italic{font-style:italic;font-weight:600}.pa-segmented-type--underline{text-decoration:underline;text-underline-offset:2px}.pa-font-family-select{width:100%;font-size:13px;padding:9px 32px 9px 10px;color:#ffffffe0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff99' d='M3 4.5 6 8l3-3.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}.pa-font-family-select:invalid,.pa-font-family-select option[value=""]{color:#ffffff73}.pa-edit-size-row .pa-prop-row{grid-template-columns:1fr;gap:4px}.pa-edit-size-row .pa-prop-scrub-value{width:100%}.pa-color-field{display:flex;flex-direction:column;gap:6px}.pa-color-field-trigger{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:10px;width:100%;padding:6px 8px;border-radius:10px;border:1px solid rgba(255,255,255,.12);background:#00000038;cursor:pointer;transition:border-color .14s ease,background .14s ease}.pa-color-field-trigger:hover{border-color:#ffffff38;background:#ffffff0f}.pa-color-field-trigger[aria-expanded=true]{border-color:#818cf873;background:#6366f11f}.pa-color-field-swatch{width:28px;height:28px;flex-shrink:0;border-radius:8px;border:1px solid rgba(255,255,255,.2);box-shadow:inset 0 0 0 1px #00000026}.pa-color-field-hex{flex:1;min-width:0;pointer-events:none;font-family:var(--pa-font-mono);font-size:12px}.pa-color-picker-portal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:calc(var(--pa-z) + 50);pointer-events:none}.pa-color-picker-portal .pa-color-picker{pointer-events:auto}.pa-color-picker{position:fixed;z-index:calc(var(--pa-z) + 50);box-sizing:border-box;padding:14px;border-radius:14px;border:1px solid rgba(255,255,255,.14);background:#121214f0;backdrop-filter:blur(20px) saturate(140%);-webkit-backdrop-filter:blur(20px) saturate(140%);box-shadow:0 4px 6px #0000001f,0 16px 40px #00000073,inset 0 1px #ffffff14;display:flex;flex-direction:column;gap:12px}.pa-color-picker-header{display:flex;align-items:center;gap:10px}.pa-color-picker-preview{width:22px;height:22px;flex-shrink:0;border-radius:6px;border:1px solid rgba(255,255,255,.18);box-shadow:inset 0 0 0 1px #0000001f}.pa-color-picker-header-label{font-size:13px;font-weight:500;color:#ffffff8c;letter-spacing:-.01em}.pa-color-picker-sb{position:relative;width:100%;height:148px;border-radius:10px;border:1px solid rgba(255,255,255,.1);overflow:hidden;cursor:crosshair;touch-action:none;background:linear-gradient(to bottom,transparent,#000),linear-gradient(to right,#fff,hsl(var(--pa-picker-h, 0) 100% 50%))}.pa-color-picker-sb-thumb{position:absolute;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #00000059,0 2px 6px #00000059;pointer-events:none}.pa-color-picker-hue{position:relative;height:14px;border-radius:999px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(90deg,red,#ff0,#0f0,#0ff,#00f,#f0f,red)}.pa-color-picker-hue-input{position:absolute;top:-4px;right:0;bottom:-4px;left:0;width:100%;height:calc(100% + 8px);margin:0;opacity:0;cursor:pointer}.pa-color-picker-hue-thumb{position:absolute;top:50%;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #0000004d,0 1px 4px #00000059;pointer-events:none}.pa-color-picker-field{display:flex;flex-direction:column;gap:6px}.pa-color-picker-field--rgb{flex:1;min-width:0}.pa-color-picker-field-label{font-size:11px;font-weight:500;color:#ffffff73;letter-spacing:.02em}.pa-color-picker-input{width:100%;font-family:var(--pa-font-mono);font-size:12px;padding:8px 10px!important;border-radius:8px;border:1px solid rgba(255,255,255,.12)!important;background:#00000059!important;color:#ffffffe6!important;transition:border-color .14s ease,box-shadow .14s ease}.pa-color-picker-input:hover{border-color:#fff3!important}.pa-color-picker-input:focus{outline:none;border-color:#818cf88c!important;box-shadow:0 0 0 2px #6366f140}.pa-color-picker-rgb{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.pa-color-picker-field--rgb .pa-color-picker-input{text-align:center;padding-left:6px!important;padding-right:6px!important}.pa-color-picker-input[type=number]::-webkit-inner-spin-button,.pa-color-picker-input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.pa-text-styles-portal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:calc(var(--pa-z) + 50);pointer-events:none}.pa-text-styles{pointer-events:auto;position:fixed;z-index:calc(var(--pa-z) + 50);box-sizing:border-box;display:flex;flex-direction:column;padding:8px;gap:8px;border-radius:14px;border:1px solid rgba(255,255,255,.14);background:#121214f0;backdrop-filter:blur(20px) saturate(140%);-webkit-backdrop-filter:blur(20px) saturate(140%);box-shadow:0 4px 6px #0000001f,0 16px 40px #00000073,inset 0 1px #ffffff14}.pa-text-styles-header{display:flex;align-items:center;justify-content:space-between;padding:2px 4px 0}.pa-text-styles-title{font-size:13px;font-weight:600;color:#ffffffeb;letter-spacing:-.01em}.pa-text-styles-close{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;cursor:pointer;font-size:18px;line-height:1;color:#ffffff8c;transition:color .14s ease,background .14s ease}.pa-text-styles-close:hover{color:#fffffff2;background:#ffffff14}.pa-text-styles-search{position:relative;display:flex;align-items:center}.pa-text-styles-search-icon{position:absolute;left:10px;color:#fff6;pointer-events:none}.pa-text-styles-search-input{width:100%;font-size:13px;padding:8px 10px 8px 30px!important;border-radius:8px;border:1px solid rgba(255,255,255,.12)!important;background:#00000059!important;color:#ffffffe6!important;transition:border-color .14s ease,box-shadow .14s ease}.pa-text-styles-search-input:focus{outline:none;border-color:#818cf88c!important;box-shadow:0 0 0 2px #6366f140}.pa-text-styles-list{display:flex;flex-direction:column;max-height:260px;overflow-y:auto;margin:0 -2px;padding:0 2px}.pa-text-styles-row{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;padding:8px 10px;border-radius:8px;cursor:pointer;color:#ffffffe6;transition:background .12s ease}.pa-text-styles-row:hover{background:#ffffff0f}.pa-text-styles-row--active{background:#ffffff1a}.pa-text-styles-specimen{flex-shrink:0;width:26px;font-size:18px;line-height:1;font-weight:500;text-align:center;color:#ffffffeb}.pa-text-styles-row-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.pa-text-styles-row-metrics{flex-shrink:0;font-size:12px;color:#ffffff73}.pa-text-styles-empty{margin:0;padding:16px 10px;text-align:center;font-size:12px;color:#ffffff73}.pa-color-field-label-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px}.pa-color-field-label-row .pa-edit-field-label{margin-bottom:0}.pa-color-presets-swatch{flex-shrink:0;width:18px;height:18px;border-radius:5px;border:1px solid rgba(255,255,255,.18);box-shadow:inset 0 0 0 1px #0000001f}.pa-prop-row{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:center;gap:10px;padding:2px 0}.pa-prop-row--compact{grid-template-columns:72px minmax(0,1fr)}.pa-prop-label{font-size:10px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--pa-text-secondary)}.pa-scrub-label{cursor:ew-resize;-webkit-user-select:none;user-select:none;touch-action:none}.pa-scrub-label:hover,.pa-scrub-label--active{color:var(--pa-text)}.pa-prop-scrub-value{width:100%;text-align:left}.pa-spacing-control{display:flex;align-items:stretch;gap:6px;min-width:0}.pa-spacing-pair,.pa-spacing-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;flex:1;min-width:0}.pa-spacing-grid{grid-template-rows:1fr 1fr}.pa-spacing-cell{position:relative;display:flex;align-items:center;min-width:0}.pa-spacing-cell-icon{position:absolute;left:7px;top:50%;transform:translateY(-50%);display:inline-flex;color:#ffffff8c;pointer-events:none}.pa-spacing-cell-icon--scrub{pointer-events:auto;cursor:ew-resize;touch-action:none}.pa-spacing-cell-icon--scrub:hover,.pa-spacing-cell-icon--active{color:var(--pa-text)}.pa-spacing-cell-input{width:100%;padding:6px 6px 6px 24px!important;text-align:left;font-family:var(--pa-font-mono);font-size:11px}.pa-spacing-cell--mixed .pa-spacing-cell-input{color:#ffffffb3}.pa-spacing-cell--mixed .pa-spacing-cell-icon{color:#fff6}.pa-spacing-toggle{all:unset;display:inline-flex;align-items:center;justify-content:center;width:26px;min-height:26px;border-radius:6px;border:1px solid rgba(255,255,255,.08);color:#ffffff8c;cursor:pointer;flex-shrink:0;transition:background .12s ease,color .12s ease,border-color .12s ease}.pa-spacing-toggle:hover:not(:disabled){background:#ffffff0f;color:#ffffffe6}.pa-spacing-toggle--on{background:#ffffff1f;color:#fffffff2;border-color:#ffffff2e}.pa-spacing-toggle:disabled{opacity:.4;cursor:not-allowed}.pa-edit-panel-glass .pa-prop-row .pa-input{font-family:var(--pa-font-mono);font-size:11px;padding:6px 8px;border-radius:6px;color:#ffffffe0}.pa-edit-panel-glass .pa-select,.pa-edit-panel-glass .pa-textarea{border-radius:var(--pa-field-radius)}.pa-edit-footer{display:flex;align-items:center;justify-content:space-between;margin-top:8px;padding-top:10px}.pa-change-count{font-size:11px;color:var(--pa-text-secondary)}.pa-change-count--success{color:var(--pa-success)}.pa-change-count--error{color:#fca5a5}.pa-popover-body{display:flex;flex-direction:column;gap:10px}.pa-popover-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px}.pa-popover-context{display:flex;flex-direction:column;gap:4px;padding:8px 10px;border-radius:var(--pa-field-radius);background:#0003;border:1px solid rgba(255,255,255,.08)}.pa-popover-context-line{margin:0;font-size:11px;line-height:1.45;color:var(--pa-text)}.pa-popover-context-label{display:inline-block;min-width:52px;margin-right:6px;font-size:10px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--pa-text-secondary)}.pa-popover-hint{margin:0;font-size:10px;color:var(--pa-text-secondary)}.pa-area-select{position:fixed;pointer-events:none;z-index:calc(var(--pa-z) - 3);border:2px dashed var(--pa-accent-bright);background:#6366f114;border-radius:4px}.pa-area-select--dragging{background:#6366f124}.pa-session-panel-float{position:fixed;top:16px;right:16px;z-index:calc(var(--pa-z) + 3);width:360px}.pa-session-panel-float--dragging{-webkit-user-select:none;user-select:none}.pa-session-panel-float .pa-glass-panel--sheet{position:relative;top:auto;right:auto;left:auto;width:100%}.pa-session-drag{all:unset;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:8px;cursor:grab;touch-action:none;flex-shrink:0;color:#ffffff73;transition:background .15s ease,color .15s ease}.pa-session-drag:hover{background:#ffffff1a;color:#ffffffd9}.pa-session-panel-float--dragging .pa-session-drag{cursor:grabbing}.pa-session-grip{display:grid;grid-template-columns:repeat(2,4px);gap:3px}.pa-session-grip span{display:block;width:4px;height:4px;border-radius:50%;background:currentColor}.pa-session-header{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;gap:4px 8px;align-items:center;padding:14px;border-bottom:1px solid rgba(255,255,255,.1)}.pa-session-header-main{display:flex;align-items:center;gap:4px;grid-column:1;min-width:0}.pa-session-title{all:unset;font-size:14px;font-weight:600;letter-spacing:-.02em}.pa-session-subtitle{grid-column:1;margin:0;font-size:10px;color:var(--pa-text-secondary)}.pa-session-actions{grid-column:2;grid-row:1 / span 2}.pa-session-status{margin:0;padding:8px 14px 0;font-size:11px;color:var(--pa-accent-bright)}.pa-session-content{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.pa-session-target{font-size:11px;font-weight:600;font-family:var(--pa-font-mono, ui-monospace, monospace);color:var(--pa-accent-bright);letter-spacing:-.01em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pa-session-note{margin:0;font-size:13px;font-weight:500;line-height:1.4;color:var(--pa-text);word-break:break-word}.pa-session-meta-line{margin:0;font-size:10px;line-height:1.35;color:var(--pa-text-secondary);overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.pa-session-meta{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}.pa-session-badge{font-size:9px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;padding:1px 6px;border-radius:999px;color:var(--pa-text-secondary);background:#ffffff14}.pa-session-edit{flex:1;display:flex;flex-direction:column;gap:8px}.pa-session-item-actions{display:flex;flex-shrink:0;flex-direction:row;align-items:center;gap:2px}.pa-session-action-icon{display:inline-flex;align-items:center;justify-content:center;width:28px;padding-left:0;padding-right:0}.pa-session-list{list-style:none;margin:0;padding:10px;overflow-y:auto;display:flex;flex-direction:column;gap:6px;max-height:calc(60vh - 60px)}.pa-session-item{display:flex;align-items:flex-start;gap:8px;padding:10px;background:#0000002e;border:1px solid rgba(255,255,255,.08);border-radius:var(--pa-glass-radius-control);transition:background .08s ease,border-color .08s ease,box-shadow .08s ease}.pa-session-item--active{border-color:var(--pa-accent-bright);background:#6366f129;box-shadow:0 0 0 1px #6366f159}.pa-session-empty{font-size:12px;color:var(--pa-text-secondary);padding:16px;text-align:center;line-height:1.5}`, Rt = "pixelagent-base-styles";
3730
- function Mr() {
3737
+ const Mr = `.pa-root{--pa-glass-blur: 4px;--pa-glass-saturate: 130%;--pa-glass-opacity: .78;--pa-glass-tint: rgba(255, 255, 255, .08);--pa-glass-tint-accent: rgba(99, 102, 241, .32);--pa-glass-border: rgba(255, 255, 255, .28);--pa-glass-rim: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 0 0 1px rgba(255, 255, 255, .06), inset 1px 0 0 rgba(255, 255, 255, .18), inset -1px 0 0 rgba(255, 255, 255, .18), inset 0 -1px 1px rgba(0, 0, 0, .18);--pa-glass-shadow: 0 1px 1px rgba(0, 0, 0, .06), 0 4px 12px rgba(0, 0, 0, .14), 0 12px 40px rgba(0, 0, 0, .32);--pa-glass-specular: radial-gradient( ellipse 65% 45% at 22% 14%, rgba(255, 255, 255, .38) 0%, rgba(255, 255, 255, .08) 38%, transparent 72% );--pa-glass-underglow: radial-gradient( ellipse 95% 38% at 50% 100%, rgba(129, 140, 248, .18) 0%, transparent 60% );--pa-glass-radius-bar: 999px;--pa-glass-radius-panel: 20px;--pa-glass-radius-popover: 16px;--pa-glass-radius-control: 10px;--pa-glass-group-gap: 10px;--pa-glass-morph-duration: .32s;--pa-glass-morph-easing: cubic-bezier(.4, 0, .2, 1);--pa-glass-fallback-bg: rgba(28, 28, 30, .94);--pa-glass-fallback-border: rgba(255, 255, 255, .12);--pa-glass-surface-fill: rgba(255, 255, 255, .06);--pa-glass-control-hover: rgba(255, 255, 255, .12);--pa-glass-control-active: rgba(255, 255, 255, .18);--pa-divider: rgba(255, 255, 255, .08);--pa-tooltip-bg: rgba(20, 20, 24, .82);--pa-tooltip-border: rgba(255, 255, 255, .14);--pa-toolbar-segment-bg: rgba(0, 0, 0, .28);--pa-toolbar-segment-border: rgba(255, 255, 255, .06);--pa-toolbar-divider-color: rgba(255, 255, 255, .12);--pa-text: rgba(255, 255, 255, .92);--pa-text-secondary: rgba(255, 255, 255, .62);--pa-accent: #818cf8;--pa-accent-bright: #a5b4fc;--pa-success: #6ee7b7;--pa-font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--pa-font-mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, monospace;--pa-z: 2147483640;--pa-field-bg: rgba(255, 255, 255, .04);--pa-field-bg-hover: rgba(255, 255, 255, .06);--pa-field-border: rgba(255, 255, 255, .12);--pa-field-border-hover: rgba(255, 255, 255, .2);--pa-field-border-focus: rgba(255, 255, 255, .32);--pa-field-radius: 8px}@media(prefers-reduced-transparency:reduce){.pa-root{--pa-glass-blur: 0px;--pa-glass-saturate: 100%;--pa-glass-opacity: 1;--pa-glass-tint: var(--pa-glass-fallback-bg);--pa-glass-tint-accent: rgba(99, 102, 241, .85);--pa-glass-border: var(--pa-glass-fallback-border);--pa-glass-rim: none;--pa-glass-specular: none;--pa-glass-underglow: none}}@media(prefers-reduced-motion:reduce){.pa-root{--pa-glass-morph-duration: 0ms}}.pa-root[data-pa-chrome=dim],.pa-root--toolbar-portal[data-pa-chrome=dim]{--pa-glass-blur: 16px;--pa-glass-saturate: 125%;--pa-glass-opacity: .88;--pa-glass-tint: rgba(92, 92, 96, .68);--pa-glass-tint-accent: rgba(100, 100, 104, .74);--pa-glass-surface-fill: rgba(96, 96, 100, .64);--pa-glass-border: rgba(255, 255, 255, .2);--pa-glass-rim: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 0 1px rgba(255, 255, 255, .05), inset 1px 0 0 rgba(255, 255, 255, .08), inset -1px 0 0 rgba(255, 255, 255, .08), inset 0 -1px 1px rgba(0, 0, 0, .22);--pa-glass-shadow: 0 2px 4px rgba(0, 0, 0, .08), 0 10px 32px rgba(0, 0, 0, .14), 0 24px 48px rgba(0, 0, 0, .1);--pa-glass-specular: radial-gradient( ellipse 68% 48% at 22% 10%, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .1) 40%, transparent 72% );--pa-glass-underglow: none;--pa-glass-fallback-bg: rgba(82, 82, 86, .96);--pa-glass-fallback-border: rgba(255, 255, 255, .12);--pa-glass-control-hover: rgba(255, 255, 255, .1);--pa-glass-control-active: rgba(255, 255, 255, .16);--pa-divider: rgba(255, 255, 255, .1);--pa-tooltip-bg: rgba(82, 82, 86, .96);--pa-tooltip-border: rgba(255, 255, 255, .18);--pa-toolbar-segment-bg: rgba(0, 0, 0, .18);--pa-toolbar-segment-border: rgba(255, 255, 255, .08);--pa-toolbar-divider-color: rgba(255, 255, 255, .14);--pa-text: rgba(255, 255, 255, .94);--pa-text-secondary: rgba(255, 255, 255, .58);--pa-accent: #a5b4fc;--pa-accent-bright: #c7d2fe;--pa-success: #6ee7b7;--pa-field-bg: rgba(255, 255, 255, .06);--pa-field-bg-hover: rgba(255, 255, 255, .09);--pa-field-border: rgba(255, 255, 255, .14);--pa-field-border-hover: rgba(255, 255, 255, .22);--pa-field-border-focus: rgba(255, 255, 255, .32)}.pa-glass-surface{position:relative;overflow:hidden;border:1px solid var(--pa-glass-border);box-shadow:var(--pa-glass-shadow),var(--pa-glass-rim);border-radius:inherit;backdrop-filter:blur(4px) saturate(130%);-webkit-backdrop-filter:blur(4px) saturate(130%);will-change:backdrop-filter}.pa-glass-surface.pa-toolbar-glass{backdrop-filter:blur(6px) saturate(138%);-webkit-backdrop-filter:blur(6px) saturate(138%)}.pa-glass-surface-blur{display:none}.pa-glass-surface-refraction{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;z-index:0;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .2s ease-out}.pa-glass-surface-refraction[data-pa-ready="1"]{opacity:1}.pa-glass-surface-bg{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;border-radius:inherit;background:linear-gradient(180deg,#ffffff1a,#fff0 28%),linear-gradient(0deg,#ffffff08,#fff0 22%),var(--pa-glass-surface-fill);pointer-events:none}@media(prefers-reduced-transparency:reduce){.pa-glass-surface{backdrop-filter:none;-webkit-backdrop-filter:none;background:var(--pa-glass-fallback-bg);border-color:var(--pa-glass-fallback-border);box-shadow:none}.pa-glass-surface-bg{filter:none;background:transparent}}.pa-glass-surface--accent{background:var(--pa-glass-tint-accent)}.pa-glass-surface-shine{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;border-radius:inherit;pointer-events:none;background:var(--pa-glass-specular);mix-blend-mode:screen}.pa-glass-surface:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;border-radius:inherit;pointer-events:none;background:var(--pa-glass-underglow);mix-blend-mode:screen}@media(prefers-reduced-transparency:reduce){.pa-glass-surface-shine,.pa-glass-surface:after{display:none}}.pa-glass-surface-content{position:relative;z-index:3}.pa-glass-container{display:flex;align-items:center;gap:var(--pa-glass-group-gap);font-family:var(--pa-font)}.pa-toolbar-float{position:fixed;bottom:24px;left:50%;margin-left:-150px;z-index:var(--pa-z);touch-action:none}.pa-toolbar-float--dragging{-webkit-user-select:none;user-select:none}.pa-toolbar-inner{display:flex;align-items:center;gap:6px;padding:6px 10px 6px 6px}.pa-toolbar-drag{all:unset;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;color:var(--pa-text);cursor:grab;touch-action:none;flex-shrink:0;transition:background .15s ease}.pa-toolbar-drag:hover{background:var(--pa-glass-control-hover)}.pa-brand-cursor{display:block;flex-shrink:0;pointer-events:none}.pa-brand-cursor--pointer{margin-top:-2px;margin-left:-1px}.pa-brand-cursor--minimal{display:block}.pa-toolbar-float--dragging .pa-toolbar-drag{cursor:grabbing;background:#ffffff24}.pa-toolbar-divider{width:1px;height:24px;background:var(--pa-toolbar-divider-color);flex-shrink:0}.pa-toolbar-segment{display:flex;align-items:center;gap:4px;padding:3px 4px;border-radius:999px;background:var(--pa-toolbar-segment-bg);border:1px solid var(--pa-toolbar-segment-border)}.pa-toolbar-capture-select{width:auto;min-width:76px;padding:6px 28px 6px 10px;font-size:12px;font-weight:500;letter-spacing:0;text-transform:none;border-radius:999px;cursor:pointer}.pa-toolbar-close{margin-left:2px;flex-shrink:0}.pa-toolbar-status{font-size:11px;padding:0 8px;white-space:nowrap}.pa-settings-menu{position:absolute;right:8px;bottom:calc(100% + 12px);z-index:2;width:min(280px,calc(100vw - 32px));pointer-events:auto}.pa-settings-menu-panel{width:100%}.pa-settings-menu-inner{padding:14px 16px 16px}.pa-settings-menu-header{margin-bottom:14px}.pa-settings-menu-title{margin:0;font-size:14px;font-weight:600;color:var(--pa-text)}.pa-settings-menu-subtitle{margin:4px 0 0;font-size:11px;color:var(--pa-text-secondary)}.pa-settings-section{padding:12px 0;border-top:1px solid var(--pa-divider)}.pa-settings-section:first-of-type{border-top:none;padding-top:0}.pa-settings-section-label{display:block;font-size:10px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--pa-text-secondary);margin-bottom:8px}.pa-settings-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.pa-settings-row-value{font-size:12px;color:var(--pa-text)}.pa-settings-hint{margin:0;font-size:11px;line-height:1.45;color:var(--pa-text-secondary)}.pa-glass-group{flex-shrink:0}.pa-glass-group-inner{display:flex;align-items:center;gap:2px;padding:4px 6px}.pa-glass-group--brand .pa-glass-group-inner{padding:6px 14px}.pa-glass-btn{all:unset;box-sizing:border-box;cursor:pointer;font-family:var(--pa-font);font-size:12px;font-weight:500;color:var(--pa-text);padding:6px 12px;border-radius:var(--pa-glass-radius-control);white-space:nowrap;transition:background var(--pa-glass-morph-duration) var(--pa-glass-morph-easing),transform .12s ease,color var(--pa-glass-morph-duration) ease}.pa-glass-btn:hover:not(:disabled){background:var(--pa-glass-control-hover)}.pa-glass-btn:active:not(:disabled){transform:scale(.97);background:var(--pa-glass-control-active)}.pa-glass-btn:disabled{opacity:.38;cursor:not-allowed}.pa-glass-btn--glass-primary,.pa-glass-btn--prominent{position:relative;color:#fff;font-weight:600;padding:8px 16px;background:#ffffff1a;backdrop-filter:blur(12px) saturate(140%);-webkit-backdrop-filter:blur(12px) saturate(140%);border:1px solid rgba(255,255,255,.28);box-shadow:inset 0 1px #fff6,0 4px 16px #00000026}.pa-glass-btn--glass-primary:before,.pa-glass-btn--prominent:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:inherit;background:linear-gradient(135deg,rgba(255,255,255,.22) 0%,transparent 45%,transparent 100%);pointer-events:none}.pa-glass-btn--glass-primary:hover:not(:disabled),.pa-glass-btn--prominent:hover:not(:disabled){background:#ffffff29;border-color:#ffffff61;box-shadow:inset 0 1px #ffffff73,0 6px 20px #0003}@media(prefers-reduced-transparency:reduce){.pa-glass-btn--glass-primary,.pa-glass-btn--prominent{backdrop-filter:none;-webkit-backdrop-filter:none;background:#3c3c46e6}}.pa-glass-btn--icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border-radius:50%;color:#ffffffbf;background:#ffffff0f;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.14);box-shadow:inset 0 1px #ffffff1f}.pa-glass-btn--icon:hover:not(:disabled){color:#fff;background:#ffffff1f;border-color:#ffffff38}.pa-glass-btn--ghost{color:var(--pa-text-secondary);padding:6px 10px}.pa-glass-btn--ghost:hover:not(:disabled){color:var(--pa-text);background:#ffffff14}.pa-glass-btn--active{background:#6366f173;color:#fff}.pa-glass-btn--sm{padding:2px 8px;font-size:11px}.pa-glass-panel{font-family:var(--pa-font);color:var(--pa-text)}.pa-glass-panel--sheet.pa-glass-panel--left{position:fixed;top:16px;left:16px;z-index:var(--pa-z);width:288px;max-height:calc(100vh - 100px)}.pa-glass-panel--sheet.pa-glass-panel--right{position:fixed;top:16px;right:16px;z-index:var(--pa-z);width:360px;max-height:60vh}.pa-glass-panel--popover{position:fixed;z-index:calc(var(--pa-z) + 2);width:300px}.pa-glass-panel .pa-glass-surface-content{padding:14px;display:flex;flex-direction:column;gap:10px}.pa-glass-panel--sheet .pa-glass-surface-content{padding:14px;overflow-y:auto;max-height:inherit}.pa-glass-panel--sheet.pa-glass-panel--right:not(.pa-edit-panel-glass) .pa-glass-surface-content{padding:0;gap:0}.pa-toolbar-brand{font-weight:600;font-size:12px;color:var(--pa-accent-bright);letter-spacing:-.01em}.pa-mode-badge{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--pa-text-secondary);padding:4px 10px}.pa-status{font-size:11px;font-weight:500;color:var(--pa-success);padding:4px 10px;animation:pa-status-in .28s var(--pa-glass-morph-easing)}.pa-copy-feedback-slot{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;font-size:12px;font-weight:600;white-space:nowrap;border-radius:999px;flex-shrink:0;animation:pa-status-in .28s var(--pa-glass-morph-easing)}.pa-copy-feedback-slot--toolbar{padding:8px 16px;min-height:34px}.pa-copy-feedback-slot--session{padding:8px 14px;min-height:34px}.pa-copy-feedback-slot--item{padding:6px 10px;min-width:44px;min-height:28px;font-size:11px}@keyframes pa-status-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.pa-status{animation:none}}.pa-glass-divider{width:1px;height:16px;background:#ffffff26;margin:0 2px;flex-shrink:0}.pa-root{all:initial;font-family:var(--pa-font);font-size:13px;line-height:1.4;color:var(--pa-text)}.pa-root--toolbar-portal{all:unset;position:static;font-family:var(--pa-font);font-size:13px;line-height:1.4;color:var(--pa-text);pointer-events:none}.pa-root--toolbar-portal .pa-toolbar-float{pointer-events:auto}.pa-root *,.pa-root *:before,.pa-root *:after{box-sizing:border-box}.pa-highlight{position:fixed;pointer-events:none;z-index:calc(var(--pa-z) - 2);border:2px solid var(--pa-accent);background:#6366f11f;border-radius:4px;box-shadow:0 0 0 1px #6366f140;transition:top .05s,left .05s,width .05s,height .05s,background var(--pa-glass-morph-duration) ease}.pa-highlight-selected{background:#6366f138;border-color:var(--pa-accent-bright);box-shadow:0 0 0 2px #6366f159,0 0 20px #6366f126}.pa-highlight-scope{background:#6366f129;border-style:dashed}.pa-highlight-primary{border-width:2px;background:#6366f147;box-shadow:0 0 0 3px #6366f173,0 0 24px #6366f133}.pa-annotation-badge{position:fixed;pointer-events:auto;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;z-index:calc(var(--pa-z) - 1);min-width:22px;height:22px;padding:0 6px;display:inline-flex;align-items:center;justify-content:center;font-family:var(--pa-font);font-size:12px;font-weight:700;line-height:1;color:#fff;background:#6669f8;border:none;border-radius:999px;box-shadow:0 2px 10px #37348c52;transform:translate(-50%,-50%);transition:top .05s,left .05s,transform .08s ease,background .08s ease,box-shadow .08s ease}.pa-annotation-badge:hover,.pa-annotation-badge--active{background:#7c7ffa;transform:translate(-50%,-50%) scale(1.18);box-shadow:0 0 0 3px #6366f173,0 2px 14px #37348c73}.pa-annotation-preview{position:fixed;pointer-events:none;z-index:calc(var(--pa-z) - 1);transform:translateY(-100%);display:flex;flex-direction:column;gap:3px;max-width:260px;padding:8px 10px;border-radius:8px;font-family:var(--pa-font);background:var(--pa-tooltip-bg);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--pa-tooltip-border);box-shadow:0 6px 24px #00000047}.pa-annotation-preview--below{transform:none}.pa-annotation-preview-target{font-family:var(--pa-font-mono, ui-monospace, monospace);font-size:10px;font-weight:600;letter-spacing:-.01em;color:var(--pa-accent-bright);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pa-annotation-preview-note{font-size:12px;font-weight:500;line-height:1.4;color:var(--pa-text);word-break:break-word;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}@media(prefers-reduced-transparency:reduce){.pa-annotation-preview{-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--pa-glass-fallback-bg);border-color:var(--pa-glass-fallback-border)}}.pa-tooltip{position:fixed;pointer-events:none;z-index:calc(var(--pa-z) - 1);font-family:var(--pa-font);font-size:12px;font-weight:600;letter-spacing:-.01em;color:var(--pa-text);padding:4px 8px;border-radius:6px;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:var(--pa-tooltip-bg);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--pa-tooltip-border)}@media(prefers-reduced-transparency:reduce){.pa-tooltip{-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--pa-glass-fallback-bg);border-color:var(--pa-glass-fallback-border)}}.pa-label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:500;letter-spacing:.04em;text-transform:uppercase;color:var(--pa-text-secondary);font-family:var(--pa-font)}.pa-select,.pa-input,.pa-textarea{font-family:var(--pa-font);font-size:12px;font-weight:400;line-height:1.4;color:var(--pa-text);background-color:var(--pa-field-bg);border:1px solid var(--pa-field-border);border-radius:var(--pa-field-radius);padding:8px 10px;outline:none;width:100%;transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease}.pa-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;padding-right:28px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='rgba(255,255,255,0.45)' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}.pa-select:hover:not(:focus),.pa-input:hover:not(:focus),.pa-textarea:hover:not(:focus){background-color:var(--pa-field-bg-hover);border-color:var(--pa-field-border-hover)}.pa-select:focus,.pa-input:focus,.pa-textarea:focus{background-color:#ffffff0d;border-color:var(--pa-field-border-focus);box-shadow:inset 0 1px #ffffff0f}.pa-textarea{resize:vertical;min-height:64px;line-height:1.5}@media(prefers-reduced-transparency:reduce){.pa-select,.pa-input,.pa-textarea{background-color:var(--pa-glass-fallback-bg);border-color:var(--pa-glass-fallback-border)}.pa-select:focus,.pa-input:focus,.pa-textarea:focus{border-color:var(--pa-accent)}}.pa-popover-header{display:flex;flex-direction:column;gap:3px}.pa-popover-selector{font-size:11px;font-weight:500;color:var(--pa-accent-bright);word-break:break-all}.pa-popover-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:2px}.pa-edit-panel-float{position:fixed;right:16px;top:16px;z-index:calc(var(--pa-z) + 4);width:312px;max-height:calc(100vh - 32px)}.pa-edit-panel-float--dragging{-webkit-user-select:none;user-select:none}.pa-edit-panel-float .pa-glass-panel--sheet{position:relative;top:auto;left:auto;right:auto;width:100%;max-height:calc(100vh - 32px)}.pa-edit-panel-glass .pa-glass-surface-content{display:flex;flex-direction:column;min-height:0;max-height:calc(100vh - 32px);padding:14px 14px 12px}.pa-edit-panel-inner{display:flex;flex-direction:column;min-height:0;flex:1;gap:10px}.pa-edit-panel-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;margin:0 -4px;padding:0 4px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.2) transparent}.pa-edit-panel-sticky{flex-shrink:0;padding-top:4px;border-top:1px solid rgba(255,255,255,.08)}.pa-edit-panel-header{display:flex;align-items:center;gap:8px}.pa-edit-panel-drag{all:unset;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:8px;cursor:grab;touch-action:none;flex-shrink:0;color:#ffffff73;transition:background .15s ease,color .15s ease}.pa-edit-panel-drag:hover{background:#ffffff1a;color:#ffffffd9}.pa-edit-panel-float--dragging .pa-edit-panel-drag{cursor:grabbing}.pa-edit-panel-grip{display:grid;grid-template-columns:repeat(2,4px);gap:3px}.pa-edit-panel-grip span{display:block;width:4px;height:4px;border-radius:50%;background:currentColor}.pa-edit-title{all:unset;display:block;font-size:14px;font-weight:600;letter-spacing:-.02em;flex:1}.pa-edit-hint{font-size:12px;color:var(--pa-text-secondary);margin:0;line-height:1.5}.pa-edit-state-hint{font-size:11px;color:var(--pa-text-secondary);margin:0 0 8px;line-height:1.45}.pa-edit-actions{display:flex;gap:8px;margin-top:8px}.pa-edit-actions .pa-glass-btn{display:inline-flex;align-items:center;justify-content:center}.pa-glass-btn-inner{display:inline-flex;align-items:center;gap:6px}.pa-glass-btn-icon{width:14px;height:14px;flex-shrink:0;opacity:.92}.pa-preview-disabled{opacity:.55;pointer-events:none}.pa-edit-meta{display:flex;flex-direction:column;gap:3px;margin-bottom:4px}.pa-edit-meta code,.pa-edit-meta-label{font-size:12px;font-weight:500;color:var(--pa-accent-bright);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pa-edit-source{font-size:10px;color:var(--pa-text-secondary)}.pa-edit-source--warn{color:var(--pa-warning, #e8a838);line-height:1.4}.pa-edit-text-input{min-height:72px;font-size:13px;line-height:1.55}.pa-edit-sections{display:flex;flex-direction:column}.pa-edit-section{border-bottom:1px solid rgba(255,255,255,.06)}.pa-edit-section:last-child{border-bottom:none}.pa-edit-section-header{box-sizing:border-box;display:flex;align-items:center;gap:6px;width:100%;padding:10px 2px 8px;color:#ffffffb8}.pa-edit-section-header-toggle,.pa-edit-section-chevron-btn{all:unset;box-sizing:border-box;display:flex;align-items:center;cursor:pointer}.pa-edit-section-header-toggle{flex:1;min-width:0;gap:8px}.pa-edit-section-header:hover{color:#ffffffeb}.pa-edit-section-title{font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;text-align:left}.pa-edit-section-action{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;flex-shrink:0;border-radius:6px;cursor:pointer;color:#ffffff8c;transition:color .14s ease,background .14s ease}.pa-edit-section-action:hover,.pa-edit-section-action[aria-expanded=true]{color:#fffffff2;background:#ffffff14}.pa-edit-section-action-icon{width:15px;height:15px}.pa-edit-section-chevron-btn{flex-shrink:0;padding:2px;margin-left:6px}.pa-edit-section-badge{font-size:10px;color:var(--pa-text-secondary)}.pa-edit-section-chevron{width:16px;height:16px;transform:rotate(-180deg);transition:transform .16s ease;opacity:.55}.pa-edit-section:not(.pa-edit-section--open) .pa-edit-section-chevron{transform:rotate(0)}.pa-edit-section-body{display:flex;flex-direction:column;gap:10px;padding:0 2px 12px}.pa-edit-field-label{display:block;font-size:10px;font-weight:500;letter-spacing:.04em;color:var(--pa-text-secondary);margin-bottom:5px}.pa-edit-stack-field{display:flex;flex-direction:column}.pa-edit-field-block{display:flex;flex-direction:column;gap:6px}.pa-edit-field-grid{display:grid;gap:10px}.pa-edit-field-grid--2{grid-template-columns:1fr 1fr}.pa-edit-mini-field{display:flex;flex-direction:column;min-width:0}.pa-edit-mini-field .pa-select{font-size:12px;padding:7px 8px}.pa-edit-inline-hint{font-size:10px;line-height:1.45;color:var(--pa-text-secondary);margin:0}.pa-edit-split-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px}.pa-edit-split-fields .pa-prop-row{grid-template-columns:1fr;gap:4px}.pa-segmented{display:flex;width:100%;border-radius:10px;border:1px solid rgba(255,255,255,.14);background:#00000047;overflow:hidden}.pa-segmented-btn{all:unset;box-sizing:border-box;flex:1;display:inline-flex;align-items:center;justify-content:center;min-width:0;height:34px;color:#ffffff80;border-right:1px solid rgba(255,255,255,.1);cursor:pointer;transition:background .12s ease,color .12s ease}.pa-segmented-btn:last-child{border-right:none}.pa-segmented-btn:hover{background:#ffffff0f;color:#ffffffd1}.pa-segmented-btn--on{background:#ffffff24;color:#fffffff2}.pa-segmented-icon{display:block;width:16px;height:16px;flex-shrink:0}.pa-segmented-type{font-size:13px;font-weight:600;line-height:1;font-family:var(--pa-font, system-ui, sans-serif)}.pa-segmented-type--bold{font-weight:700}.pa-segmented-type--italic{font-style:italic;font-weight:600}.pa-segmented-type--underline{text-decoration:underline;text-underline-offset:2px}.pa-font-family-select{width:100%;font-size:13px;padding:9px 32px 9px 10px;color:#ffffffe0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff99' d='M3 4.5 6 8l3-3.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}.pa-font-family-select:invalid,.pa-font-family-select option[value=""]{color:#ffffff73}.pa-edit-size-row .pa-prop-row{grid-template-columns:1fr;gap:4px}.pa-edit-size-row .pa-prop-scrub-value{width:100%}.pa-color-field{display:flex;flex-direction:column;gap:6px}.pa-color-field-trigger{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:10px;width:100%;padding:6px 8px;border-radius:10px;border:1px solid rgba(255,255,255,.12);background:#00000038;cursor:pointer;transition:border-color .14s ease,background .14s ease}.pa-color-field-trigger:hover{border-color:#ffffff38;background:#ffffff0f}.pa-color-field-trigger[aria-expanded=true]{border-color:#818cf873;background:#6366f11f}.pa-color-field-swatch{width:28px;height:28px;flex-shrink:0;border-radius:8px;border:1px solid rgba(255,255,255,.2);box-shadow:inset 0 0 0 1px #00000026}.pa-color-field-hex{flex:1;min-width:0;pointer-events:none;font-family:var(--pa-font-mono);font-size:12px}.pa-color-picker-portal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:calc(var(--pa-z) + 50);pointer-events:none}.pa-color-picker-portal .pa-color-picker{pointer-events:auto}.pa-color-picker{position:fixed;z-index:calc(var(--pa-z) + 50);box-sizing:border-box;padding:14px;border-radius:14px;border:1px solid rgba(255,255,255,.14);background:#121214f0;backdrop-filter:blur(20px) saturate(140%);-webkit-backdrop-filter:blur(20px) saturate(140%);box-shadow:0 4px 6px #0000001f,0 16px 40px #00000073,inset 0 1px #ffffff14;display:flex;flex-direction:column;gap:12px}.pa-color-picker-header{display:flex;align-items:center;gap:10px}.pa-color-picker-preview{width:22px;height:22px;flex-shrink:0;border-radius:6px;border:1px solid rgba(255,255,255,.18);box-shadow:inset 0 0 0 1px #0000001f}.pa-color-picker-header-label{font-size:13px;font-weight:500;color:#ffffff8c;letter-spacing:-.01em}.pa-color-picker-sb{position:relative;width:100%;height:148px;border-radius:10px;border:1px solid rgba(255,255,255,.1);overflow:hidden;cursor:crosshair;touch-action:none;background:linear-gradient(to bottom,transparent,#000),linear-gradient(to right,#fff,hsl(var(--pa-picker-h, 0) 100% 50%))}.pa-color-picker-sb-thumb{position:absolute;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #00000059,0 2px 6px #00000059;pointer-events:none}.pa-color-picker-hue{position:relative;height:14px;border-radius:999px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(90deg,red,#ff0,#0f0,#0ff,#00f,#f0f,red)}.pa-color-picker-hue-input{position:absolute;top:-4px;right:0;bottom:-4px;left:0;width:100%;height:calc(100% + 8px);margin:0;opacity:0;cursor:pointer}.pa-color-picker-hue-thumb{position:absolute;top:50%;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #0000004d,0 1px 4px #00000059;pointer-events:none}.pa-color-picker-field{display:flex;flex-direction:column;gap:6px}.pa-color-picker-field--rgb{flex:1;min-width:0}.pa-color-picker-field-label{font-size:11px;font-weight:500;color:#ffffff73;letter-spacing:.02em}.pa-color-picker-input{width:100%;font-family:var(--pa-font-mono);font-size:12px;padding:8px 10px!important;border-radius:8px;border:1px solid rgba(255,255,255,.12)!important;background:#00000059!important;color:#ffffffe6!important;transition:border-color .14s ease,box-shadow .14s ease}.pa-color-picker-input:hover{border-color:#fff3!important}.pa-color-picker-input:focus{outline:none;border-color:#818cf88c!important;box-shadow:0 0 0 2px #6366f140}.pa-color-picker-rgb{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.pa-color-picker-field--rgb .pa-color-picker-input{text-align:center;padding-left:6px!important;padding-right:6px!important}.pa-color-picker-input[type=number]::-webkit-inner-spin-button,.pa-color-picker-input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.pa-text-styles-portal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:calc(var(--pa-z) + 50);pointer-events:none}.pa-text-styles{pointer-events:auto;position:fixed;z-index:calc(var(--pa-z) + 50);box-sizing:border-box;display:flex;flex-direction:column;padding:8px;gap:8px;border-radius:14px;border:1px solid rgba(255,255,255,.14);background:#121214f0;backdrop-filter:blur(20px) saturate(140%);-webkit-backdrop-filter:blur(20px) saturate(140%);box-shadow:0 4px 6px #0000001f,0 16px 40px #00000073,inset 0 1px #ffffff14}.pa-text-styles-header{display:flex;align-items:center;justify-content:space-between;padding:2px 4px 0}.pa-text-styles-title{font-size:13px;font-weight:600;color:#ffffffeb;letter-spacing:-.01em}.pa-text-styles-close{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;cursor:pointer;font-size:18px;line-height:1;color:#ffffff8c;transition:color .14s ease,background .14s ease}.pa-text-styles-close:hover{color:#fffffff2;background:#ffffff14}.pa-text-styles-search{position:relative;display:flex;align-items:center}.pa-text-styles-search-icon{position:absolute;left:10px;color:#fff6;pointer-events:none}.pa-text-styles-search-input{width:100%;font-size:13px;padding:8px 10px 8px 30px!important;border-radius:8px;border:1px solid rgba(255,255,255,.12)!important;background:#00000059!important;color:#ffffffe6!important;transition:border-color .14s ease,box-shadow .14s ease}.pa-text-styles-search-input:focus{outline:none;border-color:#818cf88c!important;box-shadow:0 0 0 2px #6366f140}.pa-text-styles-list{display:flex;flex-direction:column;max-height:260px;overflow-y:auto;margin:0 -2px;padding:0 2px}.pa-text-styles-row{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;padding:8px 10px;border-radius:8px;cursor:pointer;color:#ffffffe6;transition:background .12s ease}.pa-text-styles-row:hover{background:#ffffff0f}.pa-text-styles-row--active{background:#ffffff1a}.pa-text-styles-specimen{flex-shrink:0;width:26px;font-size:18px;line-height:1;font-weight:500;text-align:center;color:#ffffffeb}.pa-text-styles-row-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.pa-text-styles-row-metrics{flex-shrink:0;font-size:12px;color:#ffffff73}.pa-text-styles-empty{margin:0;padding:16px 10px;text-align:center;font-size:12px;color:#ffffff73}.pa-color-field-label-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px}.pa-color-field-label-row .pa-edit-field-label{margin-bottom:0}.pa-color-presets-swatch{flex-shrink:0;width:18px;height:18px;border-radius:5px;border:1px solid rgba(255,255,255,.18);box-shadow:inset 0 0 0 1px #0000001f}.pa-prop-row{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:center;gap:10px;padding:2px 0}.pa-prop-row--compact{grid-template-columns:72px minmax(0,1fr)}.pa-prop-label{font-size:10px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--pa-text-secondary)}.pa-scrub-label{cursor:ew-resize;-webkit-user-select:none;user-select:none;touch-action:none}.pa-scrub-label:hover,.pa-scrub-label--active{color:var(--pa-text)}.pa-prop-scrub-value{width:100%;text-align:left}.pa-spacing-control{display:flex;align-items:stretch;gap:6px;min-width:0}.pa-spacing-pair,.pa-spacing-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;flex:1;min-width:0}.pa-spacing-grid{grid-template-rows:1fr 1fr}.pa-spacing-cell{position:relative;display:flex;align-items:center;min-width:0}.pa-spacing-cell-icon{position:absolute;left:7px;top:50%;transform:translateY(-50%);display:inline-flex;color:#ffffff8c;pointer-events:none}.pa-spacing-cell-icon--scrub{pointer-events:auto;cursor:ew-resize;touch-action:none}.pa-spacing-cell-icon--scrub:hover,.pa-spacing-cell-icon--active{color:var(--pa-text)}.pa-spacing-cell-input{width:100%;padding:6px 6px 6px 24px!important;text-align:left;font-family:var(--pa-font-mono);font-size:11px}.pa-spacing-cell--mixed .pa-spacing-cell-input{color:#ffffffb3}.pa-spacing-cell--mixed .pa-spacing-cell-icon{color:#fff6}.pa-spacing-toggle{all:unset;display:inline-flex;align-items:center;justify-content:center;width:26px;min-height:26px;border-radius:6px;border:1px solid rgba(255,255,255,.08);color:#ffffff8c;cursor:pointer;flex-shrink:0;transition:background .12s ease,color .12s ease,border-color .12s ease}.pa-spacing-toggle:hover:not(:disabled){background:#ffffff0f;color:#ffffffe6}.pa-spacing-toggle--on{background:#ffffff1f;color:#fffffff2;border-color:#ffffff2e}.pa-spacing-toggle:disabled{opacity:.4;cursor:not-allowed}.pa-edit-panel-glass .pa-prop-row .pa-input{font-family:var(--pa-font-mono);font-size:11px;padding:6px 8px;border-radius:6px;color:#ffffffe0}.pa-edit-panel-glass .pa-select,.pa-edit-panel-glass .pa-textarea{border-radius:var(--pa-field-radius)}.pa-edit-footer{display:flex;align-items:center;justify-content:space-between;margin-top:8px;padding-top:10px}.pa-change-count{font-size:11px;color:var(--pa-text-secondary)}.pa-change-count--success{color:var(--pa-success)}.pa-change-count--error{color:#fca5a5}.pa-popover-body{display:flex;flex-direction:column;gap:10px}.pa-popover-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px}.pa-popover-context{display:flex;flex-direction:column;gap:4px;padding:8px 10px;border-radius:var(--pa-field-radius);background:#0003;border:1px solid rgba(255,255,255,.08)}.pa-popover-context-line{margin:0;font-size:11px;line-height:1.45;color:var(--pa-text)}.pa-popover-context-label{display:inline-block;min-width:52px;margin-right:6px;font-size:10px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--pa-text-secondary)}.pa-popover-hint{margin:0;font-size:10px;color:var(--pa-text-secondary)}.pa-area-select{position:fixed;pointer-events:none;z-index:calc(var(--pa-z) - 3);border:2px dashed var(--pa-accent-bright);background:#6366f114;border-radius:4px}.pa-area-select--dragging{background:#6366f124}.pa-session-panel-float{position:fixed;top:16px;right:16px;z-index:calc(var(--pa-z) + 3);width:360px}.pa-session-panel-float--dragging{-webkit-user-select:none;user-select:none}.pa-session-panel-float .pa-glass-panel--sheet{position:relative;top:auto;right:auto;left:auto;width:100%}.pa-session-drag{all:unset;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:8px;cursor:grab;touch-action:none;flex-shrink:0;color:#ffffff73;transition:background .15s ease,color .15s ease}.pa-session-drag:hover{background:#ffffff1a;color:#ffffffd9}.pa-session-panel-float--dragging .pa-session-drag{cursor:grabbing}.pa-session-grip{display:grid;grid-template-columns:repeat(2,4px);gap:3px}.pa-session-grip span{display:block;width:4px;height:4px;border-radius:50%;background:currentColor}.pa-session-header{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;gap:4px 8px;align-items:center;padding:14px;border-bottom:1px solid rgba(255,255,255,.1)}.pa-session-header-main{display:flex;align-items:center;gap:4px;grid-column:1;min-width:0}.pa-session-title{all:unset;font-size:14px;font-weight:600;letter-spacing:-.02em}.pa-session-subtitle{grid-column:1;margin:0;font-size:10px;color:var(--pa-text-secondary)}.pa-session-actions{grid-column:2;grid-row:1 / span 2}.pa-session-status{margin:0;padding:8px 14px 0;font-size:11px;color:var(--pa-accent-bright)}.pa-session-content{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.pa-session-target{font-size:11px;font-weight:600;font-family:var(--pa-font-mono, ui-monospace, monospace);color:var(--pa-accent-bright);letter-spacing:-.01em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pa-session-note{margin:0;font-size:13px;font-weight:500;line-height:1.4;color:var(--pa-text);word-break:break-word}.pa-session-meta-line{margin:0;font-size:10px;line-height:1.35;color:var(--pa-text-secondary);overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.pa-session-meta{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}.pa-session-badge{font-size:9px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;padding:1px 6px;border-radius:999px;color:var(--pa-text-secondary);background:#ffffff14}.pa-session-edit{flex:1;display:flex;flex-direction:column;gap:8px}.pa-session-item-actions{display:flex;flex-shrink:0;flex-direction:row;align-items:center;gap:2px}.pa-session-action-icon{display:inline-flex;align-items:center;justify-content:center;width:28px;padding-left:0;padding-right:0}.pa-session-list{list-style:none;margin:0;padding:10px;overflow-y:auto;display:flex;flex-direction:column;gap:6px;max-height:calc(60vh - 60px)}.pa-session-item{display:flex;align-items:flex-start;gap:8px;padding:10px;background:#0000002e;border:1px solid rgba(255,255,255,.08);border-radius:var(--pa-glass-radius-control);transition:background .08s ease,border-color .08s ease,box-shadow .08s ease}.pa-session-item--active{border-color:var(--pa-accent-bright);background:#6366f129;box-shadow:0 0 0 1px #6366f159}.pa-session-empty{font-size:12px;color:var(--pa-text-secondary);padding:16px;text-align:center;line-height:1.5}`, Rt = "pixelagent-base-styles";
3738
+ function Ar() {
3731
3739
  if (typeof document > "u" || document.getElementById(Rt)) return;
3732
3740
  const e = document.createElement("style");
3733
- e.id = Rt, e.textContent = Cr, document.head.appendChild(e);
3741
+ e.id = Rt, e.textContent = Mr, document.head.appendChild(e);
3734
3742
  }
3735
- Mr();
3743
+ Ar();
3736
3744
  const Tt = "/__pixelagent/apply", It = "pixelagent-runtime-styles";
3737
- let Dt = 0;
3745
+ let Ot = 0;
3738
3746
  const et = /* @__PURE__ */ new WeakMap();
3739
- function Ar(e) {
3747
+ function zr(e) {
3740
3748
  let t = et.get(e);
3741
3749
  if (t) return t;
3742
3750
  for (const n of Array.from(e.classList))
3743
3751
  if (n.startsWith("pa-runtime-"))
3744
3752
  return et.set(e, n), n;
3745
- return Dt += 1, t = `pa-runtime-${Dt}`, et.set(e, t), e.classList.add(t), t;
3753
+ return Ot += 1, t = `pa-runtime-${Ot}`, et.set(e, t), e.classList.add(t), t;
3746
3754
  }
3747
- function zr() {
3755
+ function Sr() {
3748
3756
  let e = document.getElementById(It);
3749
3757
  return e || (e = document.createElement("style"), e.id = It, document.head.appendChild(e)), e;
3750
3758
  }
3751
- function Sr(e, t, n, r) {
3752
- const o = zr(), i = e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), s = new RegExp(
3759
+ function Lr(e, t, n, r) {
3760
+ const o = Sr(), i = e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), s = new RegExp(
3753
3761
  `(\\.${i}:${t}\\s*\\{)([\\s\\S]*?)(\\})`,
3754
3762
  "m"
3755
3763
  ), l = `${n}: ${r} !important`;
@@ -3777,11 +3785,11 @@ function Sr(e, t, n, r) {
3777
3785
  `;
3778
3786
  o.textContent = p;
3779
3787
  }
3780
- function Ot(e) {
3788
+ function Dt(e) {
3781
3789
  const t = Math.min(e.startX, e.currentX), n = Math.min(e.startY, e.currentY), r = Math.abs(e.currentX - e.startX), o = Math.abs(e.currentY - e.startY);
3782
3790
  return { x: t, y: n, width: r, height: o };
3783
3791
  }
3784
- function Lr({
3792
+ function Er({
3785
3793
  ui: e,
3786
3794
  hostTheme: t,
3787
3795
  onHostThemeChange: n,
@@ -3789,7 +3797,7 @@ function Lr({
3789
3797
  onApply: o,
3790
3798
  runtimeStateStyles: i
3791
3799
  } = {}) {
3792
- const s = Nr({ ui: e, hostTheme: t, onHostThemeChange: n }), [l, p] = S(null);
3800
+ const s = Cr({ ui: e, hostTheme: t, onHostThemeChange: n }), [l, p] = S(null);
3793
3801
  _(() => {
3794
3802
  if (r || o) return;
3795
3803
  let L = !1;
@@ -3803,12 +3811,12 @@ function Lr({
3803
3811
  const [d, g] = S(!1), [m, c] = S("idle"), [f, h] = S("element"), {
3804
3812
  annotations: C,
3805
3813
  setAnnotations: k,
3806
- updateAnnotation: D,
3814
+ updateAnnotation: O,
3807
3815
  removeAnnotation: x
3808
- } = kr(), [w, A] = S(null), [v, N] = S(null), [P, y] = S([]), [M, z] = S(null), [E, F] = S(null), [j, K] = S(!1), [q, J] = S(null), le = d && m === "annotate" && C.length > 0 && !j, [b, Q] = S("this-instance"), [ce, ge] = S("normal"), [$, I] = S(null), [B, O] = S(null), [Y, X] = S(null), ee = W(null), H = W(null), V = T(
3816
+ } = Nr(), [w, A] = S(null), [v, N] = S(null), [P, y] = S([]), [M, z] = S(null), [E, F] = S(null), [j, K] = S(!1), [q, J] = S(null), le = d && m === "annotate" && C.length > 0 && !j, [b, Q] = S("this-instance"), [ce, ge] = S("normal"), [$, I] = S(null), [B, D] = S(null), [Y, X] = S(null), ee = V(null), H = V(null), W = T(
3809
3817
  (L, R) => {
3810
- H.current && clearTimeout(H.current), I(L), O((R == null ? void 0 : R.entryId) ?? null), X((R == null ? void 0 : R.copyAllFrom) ?? null), H.current = setTimeout(() => {
3811
- I(null), O(null), X(null);
3818
+ H.current && clearTimeout(H.current), I(L), D((R == null ? void 0 : R.entryId) ?? null), X((R == null ? void 0 : R.copyAllFrom) ?? null), H.current = setTimeout(() => {
3819
+ I(null), D(null), X(null);
3812
3820
  }, 2500);
3813
3821
  },
3814
3822
  []
@@ -3816,12 +3824,12 @@ function Lr({
3816
3824
  async (L, R, ne) => {
3817
3825
  if (L)
3818
3826
  try {
3819
- await Ht(L), V(R, ne);
3827
+ await Ht(L), W(R, ne);
3820
3828
  } catch {
3821
- V("Copy failed — check clipboard permissions", ne);
3829
+ W("Copy failed — check clipboard permissions", ne);
3822
3830
  }
3823
3831
  },
3824
- [V]
3832
+ [W]
3825
3833
  ), he = T(
3826
3834
  (L, R) => {
3827
3835
  L.length === 0 && !R || (z({ elements: L, areaBbox: R }), N(L[0] ?? null));
@@ -3829,7 +3837,7 @@ function Lr({
3829
3837
  []
3830
3838
  ), He = T(
3831
3839
  (L) => {
3832
- if (!(!d || m !== "annotate" || De(L.target))) {
3840
+ if (!(!d || m !== "annotate" || Oe(L.target))) {
3833
3841
  if (E) {
3834
3842
  F(
3835
3843
  (R) => R && { ...R, currentX: L.clientX, currentY: L.clientY }
@@ -3840,9 +3848,9 @@ function Lr({
3840
3848
  }
3841
3849
  },
3842
3850
  [d, m, E, f]
3843
- ), We = T(
3851
+ ), Ve = T(
3844
3852
  (L) => {
3845
- !d || m !== "annotate" || De(L.target) || f !== "area" || L.button !== 0 || (L.preventDefault(), L.stopPropagation(), F({
3853
+ !d || m !== "annotate" || Oe(L.target) || f !== "area" || L.button !== 0 || (L.preventDefault(), L.stopPropagation(), F({
3846
3854
  startX: L.clientX,
3847
3855
  startY: L.clientY,
3848
3856
  currentX: L.clientX,
@@ -3850,15 +3858,15 @@ function Lr({
3850
3858
  }), z(null));
3851
3859
  },
3852
3860
  [d, m, f]
3853
- ), Ve = T(() => {
3861
+ ), We = T(() => {
3854
3862
  if (!E) return;
3855
- const L = Ot(E);
3863
+ const L = Dt(E);
3856
3864
  if (F(null), L.width < 8 || L.height < 8) return;
3857
3865
  const R = kn(L, ct);
3858
3866
  he(R, L);
3859
3867
  }, [E, he]), Ue = T(
3860
3868
  (L) => {
3861
- if (!d || m !== "annotate" || De(L.target) || f === "area") return;
3869
+ if (!d || m !== "annotate" || Oe(L.target) || f === "area") return;
3862
3870
  L.preventDefault(), L.stopPropagation();
3863
3871
  const R = $t(L.clientX, L.clientY);
3864
3872
  if (!R) return;
@@ -3875,16 +3883,16 @@ function Lr({
3875
3883
  !v || b !== "all-instances" || Bt(v) <= 1 && Q("this-instance");
3876
3884
  }, [v, b]), _(() => {
3877
3885
  if (d)
3878
- return document.addEventListener("mousemove", He, !0), document.addEventListener("mousedown", We, !0), document.addEventListener("mouseup", Ve, !0), document.addEventListener("click", Ue, !0), () => {
3879
- document.removeEventListener("mousemove", He, !0), document.removeEventListener("mousedown", We, !0), document.removeEventListener("mouseup", Ve, !0), document.removeEventListener("click", Ue, !0);
3886
+ return document.addEventListener("mousemove", He, !0), document.addEventListener("mousedown", Ve, !0), document.addEventListener("mouseup", We, !0), document.addEventListener("click", Ue, !0), () => {
3887
+ document.removeEventListener("mousemove", He, !0), document.removeEventListener("mousedown", Ve, !0), document.removeEventListener("mouseup", We, !0), document.removeEventListener("click", Ue, !0);
3880
3888
  };
3881
- }, [d, He, We, Ve, Ue]);
3889
+ }, [d, He, Ve, We, Ue]);
3882
3890
  const on = T(
3883
3891
  (L, R) => {
3884
3892
  if (!M || !L.trim()) return;
3885
3893
  const { elements: ne, areaBbox: oe } = M;
3886
3894
  if (ne.length === 0 && !oe) return;
3887
- const Ae = rr({
3895
+ const Ae = or({
3888
3896
  elements: ne,
3889
3897
  note: L,
3890
3898
  areaBbox: oe
@@ -3916,15 +3924,15 @@ function Lr({
3916
3924
  if (i) {
3917
3925
  for (const [U, ae, me] of R) {
3918
3926
  if (ae === "normal") continue;
3919
- const ie = Ar(U);
3927
+ const ie = zr(U);
3920
3928
  for (const ze of me)
3921
- U.style.removeProperty(ze.property), Sr(ie, ae, ze.property, ze.newValue);
3929
+ U.style.removeProperty(ze.property), Lr(ie, ae, ze.property, ze.newValue);
3922
3930
  }
3923
3931
  for (const [U, ae, me] of R)
3924
3932
  if (ae === "normal")
3925
3933
  for (const ie of me)
3926
3934
  U.style.setProperty(ie.property, ie.newValue);
3927
- return V("Change applied"), { applied: !0, skipRevert: !0 };
3935
+ return W("Change applied"), { applied: !0, skipRevert: !0 };
3928
3936
  }
3929
3937
  const ne = r ?? l ?? void 0, oe = [];
3930
3938
  for (const [U, ae, me] of R) {
@@ -3938,21 +3946,21 @@ function Lr({
3938
3946
  stylingSystem: Ft(U),
3939
3947
  changes: me
3940
3948
  };
3941
- oe.push(await Ya(ze, { applyEndpoint: ne, onApply: o }));
3949
+ oe.push(await Xa(ze, { applyEndpoint: ne, onApply: o }));
3942
3950
  }
3943
3951
  const Ae = oe.every(
3944
3952
  (U) => U.mode === "mcp" && U.result.success && U.result.linesChanged.length > 0
3945
3953
  );
3946
- return V(Ae ? "Change applied" : "Apply failed"), oe.forEach((U, ae) => {
3954
+ return W(Ae ? "Change applied" : "Apply failed"), oe.forEach((U, ae) => {
3947
3955
  U.mode === "error" ? console.error(`[pixelagent] Apply #${ae} failed:`, U.message) : U.mode === "clipboard" ? console.warn(`[pixelagent] Apply #${ae} fell back to clipboard`) : U.mode === "mcp" && !U.result.success && console.warn(`[pixelagent] Apply #${ae} reported no changes:`, U.result);
3948
3956
  }), { applied: Ae };
3949
3957
  },
3950
- [b, r, l, o, i, V]
3958
+ [b, r, l, o, i, W]
3951
3959
  ), dt = (L) => {
3952
3960
  s.setSettingsOpen(!1), g(!0), c(L), N(null), A(null), z(null), y([]), F(null), J(null), L === "annotate" && K(!1);
3953
3961
  }, pn = () => {
3954
3962
  g(!1), c("idle"), N(null), A(null), z(null), y([]), F(null), K(!1), J(null);
3955
- }, dn = E ? Ot(E) : null;
3963
+ }, dn = E ? Dt(E) : null;
3956
3964
  return /* @__PURE__ */ u(
3957
3965
  "div",
3958
3966
  {
@@ -3962,7 +3970,7 @@ function Lr({
3962
3970
  ...s.rootAttributes,
3963
3971
  children: [
3964
3972
  /* @__PURE__ */ a(
3965
- yr,
3973
+ kr,
3966
3974
  {
3967
3975
  rootAttributes: s.rootAttributes,
3968
3976
  hostTheme: s.hostTheme,
@@ -3998,17 +4006,17 @@ function Lr({
3998
4006
  }
3999
4007
  ),
4000
4008
  /* @__PURE__ */ a(
4001
- cr,
4009
+ pr,
4002
4010
  {
4003
4011
  annotations: C,
4004
4012
  activeId: q,
4005
4013
  onActiveChange: J
4006
4014
  }
4007
4015
  ),
4008
- /* @__PURE__ */ a(ar, { area: dn, isDragging: !!E })
4016
+ /* @__PURE__ */ a(rr, { area: dn, isDragging: !!E })
4009
4017
  ] }),
4010
4018
  d && m === "annotate" && M && /* @__PURE__ */ a(
4011
- nr,
4019
+ ar,
4012
4020
  {
4013
4021
  elements: M.elements,
4014
4022
  areaBbox: M.areaBbox,
@@ -4017,7 +4025,7 @@ function Lr({
4017
4025
  }
4018
4026
  ),
4019
4027
  d && m === "edit" && /* @__PURE__ */ a(
4020
- ja,
4028
+ Ya,
4021
4029
  {
4022
4030
  selectedElement: v,
4023
4031
  hoveredElement: w,
@@ -4029,18 +4037,18 @@ function Lr({
4029
4037
  onElementStateChange: ge,
4030
4038
  onApply: cn,
4031
4039
  applyStatus: m === "edit" ? $ : null,
4032
- isToolbarTarget: De
4040
+ isToolbarTarget: Oe
4033
4041
  }
4034
4042
  ),
4035
4043
  le && /* @__PURE__ */ a(
4036
- gr,
4044
+ hr,
4037
4045
  {
4038
4046
  annotations: C,
4039
4047
  onClose: () => K(!0),
4040
4048
  onCopyAll: () => pt("session"),
4041
4049
  onCopyOne: ln,
4042
4050
  onRemove: x,
4043
- onUpdate: D,
4051
+ onUpdate: O,
4044
4052
  activeId: q,
4045
4053
  onActiveChange: J,
4046
4054
  copyStatus: $,
@@ -4052,15 +4060,15 @@ function Lr({
4052
4060
  }
4053
4061
  );
4054
4062
  }
4055
- function Er() {
4063
+ function $r() {
4056
4064
  return typeof process < "u" && process.env.NODE_ENV !== "production";
4057
4065
  }
4058
- function Ir() {
4059
- return Er() ? /* @__PURE__ */ a(Lr, {}) : null;
4066
+ function Or() {
4067
+ return $r() ? /* @__PURE__ */ a(Er, {}) : null;
4060
4068
  }
4061
4069
  export {
4062
- Lr as PixelAgent,
4063
- Ir as PixelAgentDev,
4064
- Er as isDevEnvironment
4070
+ Er as PixelAgent,
4071
+ Or as PixelAgentDev,
4072
+ $r as isDevEnvironment
4065
4073
  };
4066
4074
  //# sourceMappingURL=pixelagent.js.map