@ptlm-azulejo/segmented-control 0.0.1 → 0.1.0-alpha.66

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -90,8 +90,8 @@ function fs(t, e) {
90
90
  n = !0, i = !0, s.isProcessing || t(m);
91
91
  };
92
92
  return { schedule: zt.reduce((T, S) => {
93
- const b = o[S];
94
- return T[S] = (A, V = !1, P = !1) => (n || y(), b.schedule(A, V, P)), T;
93
+ const x = o[S];
94
+ return T[S] = (A, V = !1, P = !1) => (n || y(), x.schedule(A, V, P)), T;
95
95
  }, {}), cancel: (T) => {
96
96
  for (let S = 0; S < zt.length; S++)
97
97
  o[zt[S]].cancel(T);
@@ -99,16 +99,16 @@ function fs(t, e) {
99
99
  }
100
100
  const _ = /* @__NO_SIDE_EFFECTS__ */ (t) => t, { schedule: C, cancel: Q, state: F, steps: ye } = /* @__PURE__ */ fs(typeof requestAnimationFrame != "undefined" ? requestAnimationFrame : _, !0);
101
101
  let Zt;
102
- function xr() {
102
+ function br() {
103
103
  Zt = void 0;
104
104
  }
105
105
  const j = {
106
106
  now: () => (Zt === void 0 && j.set(F.isProcessing || J.useManualTiming ? F.timestamp : performance.now()), Zt),
107
107
  set: (t) => {
108
- Zt = t, queueMicrotask(xr);
108
+ Zt = t, queueMicrotask(br);
109
109
  }
110
110
  }, G = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, N = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3;
111
- function br(t, e) {
111
+ function xr(t, e) {
112
112
  const n = j.now(), i = ({ timestamp: s }) => {
113
113
  const r = s - n;
114
114
  r >= e && (Q(i), t(r - e));
@@ -119,7 +119,7 @@ const Ot = /* @__NO_SIDE_EFFECTS__ */ (t) => ({
119
119
  test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
120
120
  parse: parseFloat,
121
121
  transform: (e) => `${e}${t}`
122
- }), nt = /* @__PURE__ */ Ot("deg"), Y = /* @__PURE__ */ Ot("%"), x = /* @__PURE__ */ Ot("px"), Tr = /* @__PURE__ */ Ot("vh"), Sr = /* @__PURE__ */ Ot("vw"), Ln = E(g({}, Y), {
122
+ }), nt = /* @__PURE__ */ Ot("deg"), Y = /* @__PURE__ */ Ot("%"), b = /* @__PURE__ */ Ot("px"), Tr = /* @__PURE__ */ Ot("vh"), Sr = /* @__PURE__ */ Ot("vw"), Ln = E(g({}, Y), {
123
123
  parse: (t) => Y.parse(t) / 100,
124
124
  transform: (t) => Y.transform(t * 100)
125
125
  });
@@ -131,7 +131,7 @@ const H = {
131
131
  if (!e.target)
132
132
  return t;
133
133
  if (typeof t == "string")
134
- if (x.test(t))
134
+ if (b.test(t))
135
135
  t = parseFloat(t);
136
136
  else
137
137
  return t;
@@ -243,7 +243,7 @@ const st = {
243
243
  const c = M(a, l, 0.5);
244
244
  return typeof s[2 + o] == "number" && (s[2 + o] /= c), typeof s[3 + o] == "number" && (s[3 + o] /= c), r(s);
245
245
  }
246
- }, xs = (t) => (e) => typeof e == "string" && e.startsWith(t), Je = /* @__PURE__ */ xs("--"), kr = /* @__PURE__ */ xs("var(--"), Qe = (t) => kr(t) ? Fr.test(t.split("/*")[0].trim()) : !1, Fr = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
246
+ }, bs = (t) => (e) => typeof e == "string" && e.startsWith(t), Je = /* @__PURE__ */ bs("--"), kr = /* @__PURE__ */ bs("var(--"), Qe = (t) => kr(t) ? Fr.test(t.split("/*")[0].trim()) : !1, Fr = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
247
247
  function Fn(t) {
248
248
  return typeof t != "string" ? !1 : t.split("/*")[0].includes("var(--");
249
249
  }
@@ -262,7 +262,7 @@ const kt = {
262
262
  borderBottomRightRadius: H,
263
263
  boxShadow: vs
264
264
  };
265
- function bs(t) {
265
+ function xs(t) {
266
266
  for (const e in t)
267
267
  kt[e] = t[e], Je(e) && (kt[e].isCSSVariable = !0);
268
268
  }
@@ -671,8 +671,8 @@ function ra(t) {
671
671
  return t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
672
672
  }
673
673
  function aa(t, e, n = 1, i = 0) {
674
- t.pathLength = 1, delete t["path-length"], t["stroke-dashoffset"] = x.transform(-i);
675
- const s = x.transform(e), r = x.transform(n);
674
+ t.pathLength = 1, delete t["path-length"], t["stroke-dashoffset"] = b.transform(-i);
675
+ const s = b.transform(e), r = b.transform(n);
676
676
  t["stroke-dasharray"] = `${s} ${r}`;
677
677
  }
678
678
  function la(t) {
@@ -819,8 +819,8 @@ class nn {
819
819
  function Es(t, e) {
820
820
  return e ? t * (1e3 / e) : 0;
821
821
  }
822
- const zn = 30, xa = (t) => !isNaN(parseFloat(t));
823
- class ba {
822
+ const zn = 30, ba = (t) => !isNaN(parseFloat(t));
823
+ class xa {
824
824
  /**
825
825
  * @param init - The initiating value
826
826
  * @param config - Optional configuration options
@@ -837,7 +837,7 @@ class ba {
837
837
  }, this.hasAnimated = !1, this.setCurrent(e), this.owner = n.owner;
838
838
  }
839
839
  setCurrent(e) {
840
- this.current = e, this.updatedAt = j.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = xa(this.current));
840
+ this.current = e, this.updatedAt = j.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = ba(this.current));
841
841
  }
842
842
  setPrevFrameValue(e = this.current) {
843
843
  this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
@@ -1023,7 +1023,7 @@ class ba {
1023
1023
  }
1024
1024
  }
1025
1025
  function gt(t, e) {
1026
- return new ba(t, e);
1026
+ return new xa(t, e);
1027
1027
  }
1028
1028
  function Ta(t, e, n) {
1029
1029
  for (const i in e) {
@@ -1127,7 +1127,7 @@ const Pa = (t, e) => {
1127
1127
  function Ea(t) {
1128
1128
  return parseFloat(t.trim());
1129
1129
  }
1130
- const xt = [
1130
+ const bt = [
1131
1131
  "transformPerspective",
1132
1132
  "x",
1133
1133
  "y",
@@ -1145,7 +1145,7 @@ const xt = [
1145
1145
  "skew",
1146
1146
  "skewX",
1147
1147
  "skewY"
1148
- ], bt = new Set(xt), Zn = (t) => t === vt || t === x, Va = /* @__PURE__ */ new Set(["x", "y", "z"]), Ca = xt.filter((t) => !Va.has(t));
1148
+ ], xt = new Set(bt), Zn = (t) => t === vt || t === b, Va = /* @__PURE__ */ new Set(["x", "y", "z"]), Ca = bt.filter((t) => !Va.has(t));
1149
1149
  function Ma(t) {
1150
1150
  const e = [];
1151
1151
  return Ca.forEach((n) => {
@@ -1238,7 +1238,7 @@ class sn {
1238
1238
  const Ds = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t), Rs = (t) => /^0[^.\s]+$/u.test(t), Ra = {
1239
1239
  test: (t) => t === "auto",
1240
1240
  parse: (t) => t
1241
- }, Ls = (t) => (e) => e.test(t), Bs = [vt, x, Y, nt, Sr, Tr, Ra], Jn = (t) => Bs.find(Ls(t)), La = [...Bs, R, st], Ba = (t) => La.find(Ls(t)), ka = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
1241
+ }, Ls = (t) => (e) => e.test(t), Bs = [vt, b, Y, nt, Sr, Tr, Ra], Jn = (t) => Bs.find(Ls(t)), La = [...Bs, R, st], Ba = (t) => La.find(Ls(t)), ka = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
1242
1242
  function Fa(t) {
1243
1243
  const [e, n] = t.slice(0, -1).split("(");
1244
1244
  if (e === "drop-shadow")
@@ -1269,74 +1269,74 @@ const Oa = /\b([a-z-]*)\(.*?\)/gu, Ne = E(g({}, st), {
1269
1269
  skew: nt,
1270
1270
  skewX: nt,
1271
1271
  skewY: nt,
1272
- distance: x,
1273
- translateX: x,
1274
- translateY: x,
1275
- translateZ: x,
1276
- x,
1277
- y: x,
1278
- z: x,
1279
- perspective: x,
1280
- transformPerspective: x,
1272
+ distance: b,
1273
+ translateX: b,
1274
+ translateY: b,
1275
+ translateZ: b,
1276
+ x: b,
1277
+ y: b,
1278
+ z: b,
1279
+ perspective: b,
1280
+ transformPerspective: b,
1281
1281
  opacity: Lt,
1282
1282
  originX: Ln,
1283
1283
  originY: Ln,
1284
- originZ: x
1284
+ originZ: b
1285
1285
  }, on = E(g({
1286
1286
  // Border props
1287
- borderWidth: x,
1288
- borderTopWidth: x,
1289
- borderRightWidth: x,
1290
- borderBottomWidth: x,
1291
- borderLeftWidth: x,
1292
- borderRadius: x,
1293
- radius: x,
1294
- borderTopLeftRadius: x,
1295
- borderTopRightRadius: x,
1296
- borderBottomRightRadius: x,
1297
- borderBottomLeftRadius: x,
1287
+ borderWidth: b,
1288
+ borderTopWidth: b,
1289
+ borderRightWidth: b,
1290
+ borderBottomWidth: b,
1291
+ borderLeftWidth: b,
1292
+ borderRadius: b,
1293
+ radius: b,
1294
+ borderTopLeftRadius: b,
1295
+ borderTopRightRadius: b,
1296
+ borderBottomRightRadius: b,
1297
+ borderBottomLeftRadius: b,
1298
1298
  // Positioning props
1299
- width: x,
1300
- maxWidth: x,
1301
- height: x,
1302
- maxHeight: x,
1303
- top: x,
1304
- right: x,
1305
- bottom: x,
1306
- left: x,
1307
- inset: x,
1308
- insetBlock: x,
1309
- insetBlockStart: x,
1310
- insetBlockEnd: x,
1311
- insetInline: x,
1312
- insetInlineStart: x,
1313
- insetInlineEnd: x,
1299
+ width: b,
1300
+ maxWidth: b,
1301
+ height: b,
1302
+ maxHeight: b,
1303
+ top: b,
1304
+ right: b,
1305
+ bottom: b,
1306
+ left: b,
1307
+ inset: b,
1308
+ insetBlock: b,
1309
+ insetBlockStart: b,
1310
+ insetBlockEnd: b,
1311
+ insetInline: b,
1312
+ insetInlineStart: b,
1313
+ insetInlineEnd: b,
1314
1314
  // Spacing props
1315
- padding: x,
1316
- paddingTop: x,
1317
- paddingRight: x,
1318
- paddingBottom: x,
1319
- paddingLeft: x,
1320
- paddingBlock: x,
1321
- paddingBlockStart: x,
1322
- paddingBlockEnd: x,
1323
- paddingInline: x,
1324
- paddingInlineStart: x,
1325
- paddingInlineEnd: x,
1326
- margin: x,
1327
- marginTop: x,
1328
- marginRight: x,
1329
- marginBottom: x,
1330
- marginLeft: x,
1331
- marginBlock: x,
1332
- marginBlockStart: x,
1333
- marginBlockEnd: x,
1334
- marginInline: x,
1335
- marginInlineStart: x,
1336
- marginInlineEnd: x,
1315
+ padding: b,
1316
+ paddingTop: b,
1317
+ paddingRight: b,
1318
+ paddingBottom: b,
1319
+ paddingLeft: b,
1320
+ paddingBlock: b,
1321
+ paddingBlockStart: b,
1322
+ paddingBlockEnd: b,
1323
+ paddingInline: b,
1324
+ paddingInlineStart: b,
1325
+ paddingInlineEnd: b,
1326
+ margin: b,
1327
+ marginTop: b,
1328
+ marginRight: b,
1329
+ marginBottom: b,
1330
+ marginLeft: b,
1331
+ marginBlock: b,
1332
+ marginBlockStart: b,
1333
+ marginBlockEnd: b,
1334
+ marginInline: b,
1335
+ marginInlineStart: b,
1336
+ marginInlineEnd: b,
1337
1337
  // Misc
1338
- backgroundPositionX: x,
1339
- backgroundPositionY: x
1338
+ backgroundPositionX: b,
1339
+ backgroundPositionY: b
1340
1340
  }, Ia), {
1341
1341
  zIndex: Qn,
1342
1342
  // SVG
@@ -1422,7 +1422,7 @@ class Is {
1422
1422
  }
1423
1423
  bindToMotionValue(e, n) {
1424
1424
  this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)();
1425
- const i = bt.has(e);
1425
+ const i = xt.has(e);
1426
1426
  i && this.onBindTransform && this.onBindTransform();
1427
1427
  const s = n.on("change", (o) => {
1428
1428
  this.latestValues[e] = o, this.props.onUpdate && C.preRender(this.notifyUpdate), i && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
@@ -1586,7 +1586,7 @@ const js = /* @__PURE__ */ new Set([
1586
1586
  "left",
1587
1587
  "right",
1588
1588
  "bottom",
1589
- ...xt
1589
+ ...bt
1590
1590
  ]);
1591
1591
  var ei;
1592
1592
  let jt = () => {
@@ -1720,11 +1720,11 @@ const Ns = (t, e) => e && typeof t == "number" ? e.transform(t) : t, za = {
1720
1720
  y: "translateY",
1721
1721
  z: "translateZ",
1722
1722
  transformPerspective: "perspective"
1723
- }, Ha = xt.length;
1723
+ }, Ha = bt.length;
1724
1724
  function Ya(t, e, n) {
1725
1725
  let i = "", s = !0;
1726
1726
  for (let r = 0; r < Ha; r++) {
1727
- const o = xt[r], a = t[o];
1727
+ const o = bt[r], a = t[o];
1728
1728
  if (a === void 0)
1729
1729
  continue;
1730
1730
  let l = !0;
@@ -1745,7 +1745,7 @@ function $s(t, e, n) {
1745
1745
  let o = !1, a = !1;
1746
1746
  for (const l in e) {
1747
1747
  const c = e[l];
1748
- if (bt.has(l)) {
1748
+ if (xt.has(l)) {
1749
1749
  o = !0;
1750
1750
  continue;
1751
1751
  } else if (Je(l)) {
@@ -1771,7 +1771,7 @@ function Ks(t, { style: e, vars: n }, i, s) {
1771
1771
  r.setProperty(o, n[o]);
1772
1772
  }
1773
1773
  function Xa(t, { layout: e, layoutId: n }) {
1774
- return bt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!kt[t] || t === "opacity");
1774
+ return xt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!kt[t] || t === "opacity");
1775
1775
  }
1776
1776
  function Ws(t, e, n) {
1777
1777
  var i;
@@ -1789,7 +1789,7 @@ class Gs extends Us {
1789
1789
  }
1790
1790
  readValueFromInstance(e, n) {
1791
1791
  var i;
1792
- if (bt.has(n))
1792
+ if (xt.has(n))
1793
1793
  return (i = this.projection) != null && i.isProjecting ? Oe(n) : Pa(e, n);
1794
1794
  {
1795
1795
  const s = qa(e), r = (Je(n) ? s.getPropertyValue(n) : s[n]) || 0;
@@ -1816,8 +1816,8 @@ const rn = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Za = {
1816
1816
  function Qa(t, e, n = 1, i = 0, s = !0) {
1817
1817
  t.pathLength = 1;
1818
1818
  const r = s ? Za : Ja;
1819
- t[r.offset] = x.transform(-i);
1820
- const o = x.transform(e), a = x.transform(n);
1819
+ t[r.offset] = b.transform(-i);
1820
+ const o = b.transform(e), a = b.transform(n);
1821
1821
  t[r.array] = `${o} ${a}`;
1822
1822
  }
1823
1823
  const tl = [
@@ -1888,7 +1888,7 @@ function sl(t, e, n) {
1888
1888
  const i = Ws(t, e, n);
1889
1889
  for (const s in t)
1890
1890
  if (L(t[s]) || L(e[s])) {
1891
- const r = xt.indexOf(s) !== -1 ? "attr" + s.charAt(0).toUpperCase() + s.substring(1) : s;
1891
+ const r = bt.indexOf(s) !== -1 ? "attr" + s.charAt(0).toUpperCase() + s.substring(1) : s;
1892
1892
  i[r] = t[s];
1893
1893
  }
1894
1894
  return i;
@@ -1901,7 +1901,7 @@ class Hs extends Us {
1901
1901
  return e[n];
1902
1902
  }
1903
1903
  readValueFromInstance(e, n) {
1904
- if (bt.has(n)) {
1904
+ if (xt.has(n)) {
1905
1905
  const i = ks(n);
1906
1906
  return i && i.default || 0;
1907
1907
  }
@@ -2032,13 +2032,13 @@ function ml(t, r = {}, i, s) {
2032
2032
  let [v, w, T = {}] = y;
2033
2033
  T.at !== void 0 && (f = ni(f, T.at, d, h));
2034
2034
  let S = 0;
2035
- const b = (A, V, P, k = 0, I = 0) => {
2035
+ const x = (A, V, P, k = 0, I = 0) => {
2036
2036
  const O = gl(A), Cn = V, { delay: he = 0, times: Z = Js(O), type: fe = "keyframes", repeat: Tt, repeatType: Ih, repeatDelay: jh = 0 } = Cn, Ho = U(Cn, ["delay", "times", "type", "repeat", "repeatType", "repeatDelay"]);
2037
2037
  let { ease: et = e.ease || "easeOut", duration: K } = V;
2038
2038
  const Sn = typeof he == "function" ? he(k, I) : he, wn = O.length, An = cn(fe) ? fe : s == null ? void 0 : s[fe || "keyframes"];
2039
2039
  if (wn <= 2 && An) {
2040
2040
  let St = 100;
2041
- if (wn === 2 && xl(O)) {
2041
+ if (wn === 2 && bl(O)) {
2042
2042
  const wt = O[1] - O[0];
2043
2043
  St = Math.abs(wt);
2044
2044
  }
@@ -2068,14 +2068,14 @@ function ml(t, r = {}, i, s) {
2068
2068
  };
2069
2069
  if (L(v)) {
2070
2070
  const A = ii(v, c);
2071
- b(w, T, si("default", A));
2071
+ x(w, T, si("default", A));
2072
2072
  } else {
2073
2073
  const A = Ys(v, w, i, u), V = A.length;
2074
2074
  for (let P = 0; P < V; P++) {
2075
2075
  w = w, T = T;
2076
2076
  const k = A[P], I = ii(k, c);
2077
2077
  for (const O in w)
2078
- b(w[O], yl(T, O), si(O, I), P, V);
2078
+ x(w[O], yl(T, O), si(O, I), P, V);
2079
2079
  }
2080
2080
  }
2081
2081
  d = f, f += S;
@@ -2084,19 +2084,19 @@ function ml(t, r = {}, i, s) {
2084
2084
  for (const v in m) {
2085
2085
  const w = m[v];
2086
2086
  w.sort(fl);
2087
- const T = [], S = [], b = [];
2087
+ const T = [], S = [], x = [];
2088
2088
  for (let V = 0; V < w.length; V++) {
2089
2089
  const { at: P, value: k, easing: I } = w[V];
2090
- T.push(k), S.push(/* @__PURE__ */ yt(0, p, P)), b.push(I || "easeOut");
2090
+ T.push(k), S.push(/* @__PURE__ */ yt(0, p, P)), x.push(I || "easeOut");
2091
2091
  }
2092
- S[0] !== 0 && (S.unshift(0), T.unshift(T[0]), b.unshift(dl)), S[S.length - 1] !== 1 && (S.push(1), T.push(null)), l.has(y) || l.set(y, {
2092
+ S[0] !== 0 && (S.unshift(0), T.unshift(T[0]), x.unshift(dl)), S[S.length - 1] !== 1 && (S.push(1), T.push(null)), l.has(y) || l.set(y, {
2093
2093
  keyframes: {},
2094
2094
  transition: {}
2095
2095
  });
2096
2096
  const A = l.get(y);
2097
2097
  A.keyframes[v] = T, A.transition[v] = g(E(g({}, e), {
2098
2098
  duration: p,
2099
- ease: b,
2099
+ ease: x,
2100
2100
  times: S
2101
2101
  }), n);
2102
2102
  }
@@ -2114,7 +2114,7 @@ function gl(t) {
2114
2114
  function yl(t, e) {
2115
2115
  return t && t[e] ? g(g({}, t), t[e]) : g({}, t);
2116
2116
  }
2117
- const vl = (t) => typeof t == "number", xl = (t) => t.every(vl), bl = (t) => Array.isArray(t);
2117
+ const vl = (t) => typeof t == "number", bl = (t) => t.every(vl), xl = (t) => Array.isArray(t);
2118
2118
  function Tl(t, e, n) {
2119
2119
  const i = t.getProps();
2120
2120
  return Vs(i, e, i.custom, t);
@@ -2123,7 +2123,7 @@ function Sl(t, e, n) {
2123
2123
  t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, gt(n));
2124
2124
  }
2125
2125
  function wl(t) {
2126
- return bl(t) ? t[t.length - 1] || 0 : t;
2126
+ return xl(t) ? t[t.length - 1] || 0 : t;
2127
2127
  }
2128
2128
  function Al(t, e) {
2129
2129
  let o = Tl(t, e) || {}, { transitionEnd: i = {}, transition: s = {} } = o, r = U(o, ["transitionEnd", "transition"]);
@@ -2171,7 +2171,7 @@ const Rl = {
2171
2171
  type: "keyframes",
2172
2172
  ease: [0.25, 0.1, 0.35, 1],
2173
2173
  duration: 0.3
2174
- }, Fl = (t, { keyframes: e }) => e.length > 2 ? Bl : bt.has(t) ? t.startsWith("scale") ? Ll(e[1]) : Rl : kl;
2174
+ }, Fl = (t, { keyframes: e }) => e.length > 2 ? Bl : xt.has(t) ? t.startsWith("scale") ? Ll(e[1]) : Rl : kl;
2175
2175
  function Ol(h) {
2176
2176
  var d = h, { when: t, delay: e, delayChildren: n, staggerChildren: i, staggerDirection: s, repeat: r, repeatType: o, repeatDelay: a, from: l, elapsed: c } = d, u = U(d, ["when", "delay", "delayChildren", "staggerChildren", "staggerDirection", "repeat", "repeatType", "repeatDelay", "from", "elapsed"]);
2177
2177
  return !!Object.keys(u).length;
@@ -2183,7 +2183,7 @@ function hn(t, e) {
2183
2183
  function $e(t) {
2184
2184
  t.duration = 0, t.type = "keyframes";
2185
2185
  }
2186
- function xe(t, e, n) {
2186
+ function be(t, e, n) {
2187
2187
  return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? t + (e - t) * 6 * n : n < 1 / 2 ? e : n < 2 / 3 ? t + (e - t) * (2 / 3 - n) * 6 : t;
2188
2188
  }
2189
2189
  function Il({ hue: t, saturation: e, lightness: n, alpha: i }) {
@@ -2193,7 +2193,7 @@ function Il({ hue: t, saturation: e, lightness: n, alpha: i }) {
2193
2193
  s = r = o = n;
2194
2194
  else {
2195
2195
  const a = n < 0.5 ? n * (1 + e) : n + e - n * e, l = 2 * n - a;
2196
- s = xe(l, a, t + 1 / 3), r = xe(l, a, t), o = xe(l, a, t - 1 / 3);
2196
+ s = be(l, a, t + 1 / 3), r = be(l, a, t), o = be(l, a, t - 1 / 3);
2197
2197
  }
2198
2198
  return {
2199
2199
  red: Math.round(s * 255),
@@ -2205,7 +2205,7 @@ function Il({ hue: t, saturation: e, lightness: n, alpha: i }) {
2205
2205
  function se(t, e) {
2206
2206
  return (n) => n > 0 ? e : t;
2207
2207
  }
2208
- const be = (t, e, n) => {
2208
+ const xe = (t, e, n) => {
2209
2209
  const i = t * t, s = n * (e * e - i) + i;
2210
2210
  return s < 0 ? 0 : Math.sqrt(s);
2211
2211
  }, jl = [Re, rt, ht], _l = (t) => jl.find((e) => e.test(t));
@@ -2221,7 +2221,7 @@ const ri = (t, e) => {
2221
2221
  if (!n || !i)
2222
2222
  return se(t, e);
2223
2223
  const s = g({}, n);
2224
- return (r) => (s.red = be(n.red, i.red, r), s.green = be(n.green, i.green, r), s.blue = be(n.blue, i.blue, r), s.alpha = M(n.alpha, i.alpha, r), rt.transform(s));
2224
+ return (r) => (s.red = xe(n.red, i.red, r), s.green = xe(n.green, i.green, r), s.blue = xe(n.blue, i.blue, r), s.alpha = M(n.alpha, i.alpha, r), rt.transform(s));
2225
2225
  }, Ke = /* @__PURE__ */ new Set(["none", "hidden"]);
2226
2226
  function Ul(t, e) {
2227
2227
  return Ke.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
@@ -2402,37 +2402,37 @@ function Ft(t = D.visualDuration, e = D.bounce) {
2402
2402
  i || (i = w ? D.restSpeed.granular : D.restSpeed.default), s || (s = w ? D.restDelta.granular : D.restDelta.default);
2403
2403
  let T;
2404
2404
  if (m < 1) {
2405
- const b = We(v, m);
2405
+ const x = We(v, m);
2406
2406
  T = (A) => {
2407
2407
  const V = Math.exp(-m * v * A);
2408
- return o - V * ((p + m * v * y) / b * Math.sin(b * A) + y * Math.cos(b * A));
2408
+ return o - V * ((p + m * v * y) / x * Math.sin(x * A) + y * Math.cos(x * A));
2409
2409
  };
2410
2410
  } else if (m === 1)
2411
- T = (b) => o - Math.exp(-v * b) * (y + (p + v * y) * b);
2411
+ T = (x) => o - Math.exp(-v * x) * (y + (p + v * y) * x);
2412
2412
  else {
2413
- const b = v * Math.sqrt(m * m - 1);
2413
+ const x = v * Math.sqrt(m * m - 1);
2414
2414
  T = (A) => {
2415
- const V = Math.exp(-m * v * A), P = Math.min(b * A, 300);
2416
- return o - V * ((p + m * v * y) * Math.sinh(P) + b * y * Math.cosh(P)) / b;
2415
+ const V = Math.exp(-m * v * A), P = Math.min(x * A, 300);
2416
+ return o - V * ((p + m * v * y) * Math.sinh(P) + x * y * Math.cosh(P)) / x;
2417
2417
  };
2418
2418
  }
2419
2419
  const S = {
2420
2420
  calculatedDuration: f && h || null,
2421
- next: (b) => {
2422
- const A = T(b);
2421
+ next: (x) => {
2422
+ const A = T(x);
2423
2423
  if (f)
2424
- a.done = b >= h;
2424
+ a.done = x >= h;
2425
2425
  else {
2426
- let V = b === 0 ? p : 0;
2427
- m < 1 && (V = b === 0 ? /* @__PURE__ */ G(p) : so(T, b, A));
2426
+ let V = x === 0 ? p : 0;
2427
+ m < 1 && (V = x === 0 ? /* @__PURE__ */ G(p) : so(T, x, A));
2428
2428
  const P = Math.abs(V) <= i, k = Math.abs(o - A) <= s;
2429
2429
  a.done = P && k;
2430
2430
  }
2431
2431
  return a.value = a.done ? o : A, a;
2432
2432
  },
2433
2433
  toString: () => {
2434
- const b = Math.min(un(S), ie), A = io((V) => S.next(b * V).value, b, 30);
2435
- return b + "ms " + A;
2434
+ const x = Math.min(un(S), ie), A = io((V) => S.next(x * V).value, x, 30);
2435
+ return x + "ms " + A;
2436
2436
  },
2437
2437
  toTransition: () => {
2438
2438
  }
@@ -2455,9 +2455,9 @@ function Ge({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
2455
2455
  const k = w(P), I = T(P);
2456
2456
  d.done = Math.abs(k) <= c, d.value = d.done ? v : I;
2457
2457
  };
2458
- let b, A;
2458
+ let x, A;
2459
2459
  const V = (P) => {
2460
- f(d.value) && (b = P, A = Ft({
2460
+ f(d.value) && (x = P, A = Ft({
2461
2461
  keyframes: [d.value, p(d.value)],
2462
2462
  velocity: so(T, P, d.value),
2463
2463
  // TODO: This should be passing * 1000
@@ -2471,7 +2471,7 @@ function Ge({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
2471
2471
  calculatedDuration: null,
2472
2472
  next: (P) => {
2473
2473
  let k = !1;
2474
- return !A && b === void 0 && (k = !0, S(P), V(P)), b !== void 0 && P >= b ? A.next(P - b) : (!k && S(P), d);
2474
+ return !A && x === void 0 && (k = !0, S(P), V(P)), x !== void 0 && P >= x ? A.next(P - x) : (!k && S(P), d);
2475
2475
  }
2476
2476
  };
2477
2477
  }
@@ -2646,12 +2646,12 @@ class yn extends gn {
2646
2646
  let k = Math.floor(P), I = P % 1;
2647
2647
  !I && P >= 1 && (I = 1), I === 1 && k--, k = Math.min(k, h + 1), !!(k % 2) && (d === "reverse" ? (I = 1 - I, f && (I -= f / a)) : d === "mirror" && (S = o)), T = X(0, 1, I) * a;
2648
2648
  }
2649
- const b = w ? { done: !1, value: u[0] } : S.next(T);
2650
- r && (b.value = r(b.value));
2651
- let { done: A } = b;
2649
+ const x = w ? { done: !1, value: u[0] } : S.next(T);
2650
+ r && (x.value = r(x.value));
2651
+ let { done: A } = x;
2652
2652
  !w && l !== null && (A = this.playbackSpeed >= 0 ? this.currentTime >= s : this.currentTime <= 0);
2653
2653
  const V = this.holdTime === null && (this.state === "finished" || this.state === "running" && A);
2654
- return V && p !== Ge && (b.value = mn(u, this.options, y, this.speed)), m && m(b.value), V && this.finish(), b;
2654
+ return V && p !== Ge && (x.value = mn(u, this.options, y, this.speed)), m && m(x.value), V && this.finish(), x;
2655
2655
  }
2656
2656
  /**
2657
2657
  * Allows the returned animation to be awaited or promise-chained. Currently
@@ -2776,18 +2776,18 @@ function vu(t, e, n, { delay: i = 0, duration: s = 300, repeat: r = 0, repeatTyp
2776
2776
  };
2777
2777
  return c && (d.pseudoElement = c), t.animate(u, d);
2778
2778
  }
2779
- function xu(n) {
2779
+ function bu(n) {
2780
2780
  var i = n, { type: t } = i, e = U(i, ["type"]);
2781
2781
  var s, r;
2782
2782
  return cn(t) && yo() ? t.applyToOptions(e) : ((s = e.duration) != null || (e.duration = 300), (r = e.ease) != null || (e.ease = "easeOut"), e);
2783
2783
  }
2784
- class bu extends gn {
2784
+ class xu extends gn {
2785
2785
  constructor(e) {
2786
2786
  if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !e)
2787
2787
  return;
2788
2788
  const { element: n, name: i, keyframes: s, pseudoElement: r, allowFlatten: o = !1, finalKeyframe: a, onComplete: l } = e;
2789
2789
  this.isPseudoElement = !!r, this.allowFlatten = o, this.options = e, q(typeof e.type != "string", `Mini animate() doesn't support "type" as a string.`, "mini-spring");
2790
- const c = xu(e);
2790
+ const c = bu(e);
2791
2791
  this.animation = vu(n, i, s, c, r), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
2792
2792
  if (this.finishedTime = this.time, !r) {
2793
2793
  const u = mn(s, this.options, a, this.speed);
@@ -2878,19 +2878,19 @@ class bu extends gn {
2878
2878
  return this.allowFlatten && ((i = this.animation.effect) == null || i.updateTiming({ easing: "linear" })), this.animation.onfinish = null, e && mu() ? (this.animation.timeline = e, _) : n(this);
2879
2879
  }
2880
2880
  }
2881
- const xo = {
2881
+ const bo = {
2882
2882
  anticipate: ho,
2883
2883
  backInOut: co,
2884
2884
  circInOut: po
2885
2885
  };
2886
2886
  function Tu(t) {
2887
- return t in xo;
2887
+ return t in bo;
2888
2888
  }
2889
2889
  function Su(t) {
2890
- typeof t.ease == "string" && Tu(t.ease) && (t.ease = xo[t.ease]);
2890
+ typeof t.ease == "string" && Tu(t.ease) && (t.ease = bo[t.ease]);
2891
2891
  }
2892
2892
  const Se = 10;
2893
- class wu extends bu {
2893
+ class wu extends xu {
2894
2894
  constructor(e) {
2895
2895
  Su(e), go(e), super(e), e.startTime !== void 0 && (this.startTime = e.startTime), this.options = e;
2896
2896
  }
@@ -3044,7 +3044,7 @@ class Du extends gn {
3044
3044
  this._animation && this.animation.cancel(), (e = this.keyframeResolver) == null || e.cancel();
3045
3045
  }
3046
3046
  }
3047
- const xn = (t, e, n, i = {}, s, r) => (o) => {
3047
+ const bn = (t, e, n, i = {}, s, r) => (o) => {
3048
3048
  const a = hn(i, t) || {}, l = a.delay || i.delay || 0;
3049
3049
  let { elapsed: c = 0 } = i;
3050
3050
  c = c - /* @__PURE__ */ G(l);
@@ -3103,7 +3103,7 @@ function Lu(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
3103
3103
  S !== null && (m.startTime = S, v = !0);
3104
3104
  }
3105
3105
  }
3106
- El(t, d), f.start(xn(d, f, p, t.shouldReduceMotion && js.has(d) ? { type: !1 } : m, t, v));
3106
+ El(t, d), f.start(bn(d, f, p, t.shouldReduceMotion && js.has(d) ? { type: !1 } : m, t, v));
3107
3107
  const w = f.animation;
3108
3108
  w && l.push(w);
3109
3109
  }
@@ -3145,14 +3145,14 @@ class ku extends Is {
3145
3145
  return 0;
3146
3146
  }
3147
3147
  }
3148
- function bo(t) {
3148
+ function xo(t) {
3149
3149
  return typeof t == "object" && t !== null;
3150
3150
  }
3151
- function bn(t) {
3152
- return bo(t) && "ownerSVGElement" in t;
3151
+ function xn(t) {
3152
+ return xo(t) && "ownerSVGElement" in t;
3153
3153
  }
3154
3154
  function To(t) {
3155
- return bn(t) && t.tagName === "svg";
3155
+ return xn(t) && t.tagName === "svg";
3156
3156
  }
3157
3157
  function Fu(t) {
3158
3158
  const e = {
@@ -3168,7 +3168,7 @@ function Fu(t) {
3168
3168
  },
3169
3169
  latestValues: {}
3170
3170
  }
3171
- }, n = bn(t) && !To(t) ? new Hs(e) : new Gs(e);
3171
+ }, n = xn(t) && !To(t) ? new Hs(e) : new Gs(e);
3172
3172
  n.mount(t), ut.set(t, n);
3173
3173
  }
3174
3174
  function Ou(t) {
@@ -3186,7 +3186,7 @@ function Ou(t) {
3186
3186
  }
3187
3187
  function So(t, e, n) {
3188
3188
  const i = L(t) ? t : gt(t);
3189
- return i.start(xn("", i, e, n)), i.animation;
3189
+ return i.start(bn("", i, e, n)), i.animation;
3190
3190
  }
3191
3191
  function Iu(t, e) {
3192
3192
  return L(t) || typeof t == "number" || typeof t == "string" && !an(e);
@@ -3474,7 +3474,7 @@ class Gu extends tt {
3474
3474
  }
3475
3475
  }
3476
3476
  function zu(t) {
3477
- return bo(t) && "offsetHeight" in t;
3477
+ return xo(t) && "offsetHeight" in t;
3478
3478
  }
3479
3479
  const Hu = {
3480
3480
  y: !1
@@ -3748,7 +3748,7 @@ class uc {
3748
3748
  function Ae(t) {
3749
3749
  return L(t) ? t.get() : t;
3750
3750
  }
3751
- const Vo = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], cc = Vo.length, xi = (t) => typeof t == "string" ? parseFloat(t) : t, bi = (t) => typeof t == "number" || x.test(t);
3751
+ const Vo = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], cc = Vo.length, bi = (t) => typeof t == "string" ? parseFloat(t) : t, xi = (t) => typeof t == "number" || b.test(t);
3752
3752
  function hc(t, e, n, i, s, r) {
3753
3753
  var o, a, l, c;
3754
3754
  s ? (t.opacity = M(0, (o = n.opacity) != null ? o : 1, fc(i)), t.opacityExit = M((a = e.opacity) != null ? a : 1, 0, dc(i))) : r && (t.opacity = M((l = e.opacity) != null ? l : 1, (c = n.opacity) != null ? c : 1, i));
@@ -3757,7 +3757,7 @@ function hc(t, e, n, i, s, r) {
3757
3757
  let d = Ti(e, h), f = Ti(n, h);
3758
3758
  if (d === void 0 && f === void 0)
3759
3759
  continue;
3760
- d || (d = 0), f || (f = 0), d === 0 || f === 0 || bi(d) === bi(f) ? (t[h] = Math.max(M(xi(d), xi(f), i), 0), (Y.test(f) || Y.test(d)) && (t[h] += "%")) : t[h] = f;
3760
+ d || (d = 0), f || (f = 0), d === 0 || f === 0 || xi(d) === xi(f) ? (t[h] = Math.max(M(bi(d), bi(f), i), 0), (Y.test(f) || Y.test(d)) && (t[h] += "%")) : t[h] = f;
3761
3761
  }
3762
3762
  (e.rotate || n.rotate) && (t.rotate = M(e.rotate || 0, n.rotate || 0, i));
3763
3763
  }
@@ -3836,7 +3836,7 @@ const Ro = 1e-4, mc = 1 - Ro, gc = 1 + Ro, Lo = 0.01, yc = 0 - Lo, vc = 0 + Lo;
3836
3836
  function $(t) {
3837
3837
  return t.max - t.min;
3838
3838
  }
3839
- function xc(t, e, n) {
3839
+ function bc(t, e, n) {
3840
3840
  return Math.abs(t - e) <= n;
3841
3841
  }
3842
3842
  function Mi(t, e, n, i = 0.5) {
@@ -3848,7 +3848,7 @@ function Dt(t, e, n, i) {
3848
3848
  function Di(t, e, n) {
3849
3849
  t.min = n.min + e.min, t.max = t.min + $(e);
3850
3850
  }
3851
- function bc(t, e, n) {
3851
+ function xc(t, e, n) {
3852
3852
  Di(t.x, e.x, n.x), Di(t.y, e.y, n.y);
3853
3853
  }
3854
3854
  function Ri(t, e, n) {
@@ -4023,7 +4023,7 @@ function Oo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4023
4023
  mount(o) {
4024
4024
  if (this.instance)
4025
4025
  return;
4026
- this.isSVG = bn(o) && !To(o), this.instance = o;
4026
+ this.isSVG = xn(o) && !To(o), this.instance = o;
4027
4027
  const { layoutId: a, layout: l, visualElement: c } = this.options;
4028
4028
  if (c && !c.current && c.mount(o), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (l || a) && (this.isLayoutDirty = !0), t) {
4029
4029
  let u, h = 0;
@@ -4032,7 +4032,7 @@ function Oo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4032
4032
  h = window.innerWidth;
4033
4033
  }), t(o, () => {
4034
4034
  const f = window.innerWidth;
4035
- f !== h && (h = f, this.root.updateBlockedByResize = !0, u && u(), u = br(d, 250), Qt.hasAnimatedSinceResize && (Qt.hasAnimatedSinceResize = !1, this.nodes.forEach(Ki)));
4035
+ f !== h && (h = f, this.root.updateBlockedByResize = !0, u && u(), u = xr(d, 250), Qt.hasAnimatedSinceResize && (Qt.hasAnimatedSinceResize = !1, this.nodes.forEach(Ki)));
4036
4036
  });
4037
4037
  }
4038
4038
  a && this.root.registerSharedNode(a, this), this.options.animate !== !1 && c && (a || l) && this.addEventListener("didUpdate", ({ delta: u, hasLayoutChanged: h, hasRelativeLayoutChanged: d, layout: f }) => {
@@ -4245,7 +4245,7 @@ function Oo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4245
4245
  return;
4246
4246
  this.resolvedRelativeTargetAt = F.timestamp;
4247
4247
  const f = this.getClosestProjectingParent();
4248
- f && this.linkedParentVersion !== f.layoutVersion && !f.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (f && f.layout ? this.createRelativeTarget(f, this.layout.layoutBox, f.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = B(), this.targetWithTransforms = B()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), bc(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : W(this.target, this.layout.layoutBox), Do(this.target, this.targetDelta)) : W(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, f && !!f.resumingFrom == !!this.resumingFrom && !f.options.layoutScroll && f.target && this.animationProgress !== 1 ? this.createRelativeTarget(f, this.target, f.target) : this.relativeParent = this.relativeTarget = void 0));
4248
+ f && this.linkedParentVersion !== f.layoutVersion && !f.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (f && f.layout ? this.createRelativeTarget(f, this.layout.layoutBox, f.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = B(), this.targetWithTransforms = B()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), xc(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : W(this.target, this.layout.layoutBox), Do(this.target, this.targetDelta)) : W(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, f && !!f.resumingFrom == !!this.resumingFrom && !f.options.layoutScroll && f.target && this.animationProgress !== 1 ? this.createRelativeTarget(f, this.target, f.target) : this.relativeParent = this.relativeTarget = void 0));
4249
4249
  }
4250
4250
  getClosestProjectingParent() {
4251
4251
  if (!(!this.parent || ze(this.parent.latestValues) || Mo(this.parent.latestValues)))
@@ -4303,8 +4303,8 @@ function Oo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4303
4303
  this.animationProgress = 0;
4304
4304
  let T;
4305
4305
  this.mixTargetDelta = (S) => {
4306
- const b = S / 1e3;
4307
- Wi(h.x, o.x, b), Wi(h.y, o.y, b), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ae(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), _c(this.relativeTarget, this.relativeTargetOrigin, d, b), T && Ac(this.relativeTarget, T) && (this.isProjectionDirty = !1), T || (T = B()), W(T, this.relativeTarget)), m && (this.animationValues = u, hc(u, c, this.latestValues, b, w, v)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = b;
4306
+ const x = S / 1e3;
4307
+ Wi(h.x, o.x, x), Wi(h.y, o.y, x), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ae(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), _c(this.relativeTarget, this.relativeTargetOrigin, d, x), T && Ac(this.relativeTarget, T) && (this.isProjectionDirty = !1), T || (T = B()), W(T, this.relativeTarget)), m && (this.animationValues = u, hc(u, c, this.latestValues, x, w, v)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = x;
4308
4308
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
4309
4309
  }
4310
4310
  startAnimation(o) {
@@ -4428,8 +4428,8 @@ function Oo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4428
4428
  continue;
4429
4429
  const { correct: v, applyTo: w, isCSSVariable: T } = kt[y], S = h === "none" ? u[y] : v(u[y], c);
4430
4430
  if (w) {
4431
- const b = w.length;
4432
- for (let A = 0; A < b; A++)
4431
+ const x = w.length;
4432
+ for (let A = 0; A < x; A++)
4433
4433
  o[w[A]] = S;
4434
4434
  } else
4435
4435
  T ? this.options.visualElement.renderState.vars[y] = S : o[y] = S;
@@ -4552,7 +4552,7 @@ function $c(t) {
4552
4552
  Yi(t.x), Yi(t.y);
4553
4553
  }
4554
4554
  function Io(t, e, n) {
4555
- return t === "position" || t === "preserve-aspect" && !xc(ji(e), ji(n), 0.2);
4555
+ return t === "position" || t === "preserve-aspect" && !bc(ji(e), ji(n), 0.2);
4556
4556
  }
4557
4557
  function Kc(t) {
4558
4558
  var e;
@@ -4611,7 +4611,7 @@ function Vt(t) {
4611
4611
  }
4612
4612
  class Hc extends tt {
4613
4613
  constructor(e) {
4614
- super(e), bs(_o);
4614
+ super(e), xs(_o);
4615
4615
  }
4616
4616
  initProjection() {
4617
4617
  const e = this.state.options;
@@ -5124,7 +5124,7 @@ class dh {
5124
5124
  startAxisValueAnimation(e, n) {
5125
5125
  const i = this.getAxisMotionValue(e);
5126
5126
  return os(this.visualElement, e), i.start(
5127
- xn(
5127
+ bn(
5128
5128
  e,
5129
5129
  i,
5130
5130
  0,
@@ -5278,7 +5278,7 @@ class mh extends tt {
5278
5278
  let Pt = !1;
5279
5279
  class gh extends tt {
5280
5280
  constructor(e) {
5281
- super(e), bs(_o), e.getSnapshot = this.getSnapshot.bind(this), e.didUpdate = this.didUpdate.bind(this);
5281
+ super(e), xs(_o), e.getSnapshot = this.getSnapshot.bind(this), e.didUpdate = this.didUpdate.bind(this);
5282
5282
  }
5283
5283
  beforeUpdate(e) {
5284
5284
  this.getSnapshot(e, void 0);
@@ -5382,13 +5382,13 @@ const vh = [
5382
5382
  yh,
5383
5383
  mh,
5384
5384
  gh
5385
- ], xh = {
5385
+ ], bh = {
5386
5386
  reducedMotion: "never",
5387
5387
  transition: void 0,
5388
5388
  nonce: void 0
5389
- }, [bh] = It("MotionConfig");
5389
+ }, [xh] = It("MotionConfig");
5390
5390
  function Th() {
5391
- return bh(qt(() => xh));
5391
+ return xh(qt(() => bh));
5392
5392
  }
5393
5393
  const Sh = "data-ap-child", [wh] = It("AnimatePresenceContext");
5394
5394
  function le(t) {
@@ -5435,13 +5435,13 @@ function Ph(t) {
5435
5435
  var T, S;
5436
5436
  var p;
5437
5437
  const m = h.type === "svg", y = g({}, a);
5438
- Object.keys(a).forEach((b) => {
5439
- L(a[b]) && (y[b] = a[b].get());
5438
+ Object.keys(a).forEach((x) => {
5439
+ L(a[x]) && (y[x] = a[x].get());
5440
5440
  });
5441
5441
  let v = g(g({}, t.style), m ? {} : ((p = h.visualElement) == null ? void 0 : p.latestValues) || h.baseTarget);
5442
5442
  if (m) {
5443
- const { attrs: b, style: A } = la(g(g({}, h.isMounted() ? h.target : h.baseTarget), v));
5444
- (A.transform || b.transformOrigin) && (A.transformOrigin = (T = b.transformOrigin) != null ? T : "50% 50%", delete b.transformOrigin), A.transform && (A.transformBox = (S = A.transformBox) != null ? S : "fill-box", delete b.transformBox), Object.assign(y, b), v = A;
5443
+ const { attrs: x, style: A } = la(g(g({}, h.isMounted() ? h.target : h.baseTarget), v));
5444
+ (A.transform || x.transformOrigin) && (A.transformOrigin = (T = x.transformOrigin) != null ? T : "50% 50%", delete x.transformOrigin), A.transform && (A.transformBox = (S = A.transformBox) != null ? S : "fill-box", delete x.transformBox), Object.assign(y, x), v = A;
5445
5445
  }
5446
5446
  t.drag && t.dragListener !== !1 && Object.assign(v, {
5447
5447
  userSelect: "none",
@@ -5702,8 +5702,8 @@ const Fh = ["aria-label", "aria-disabled"], Oh = ["aria-checked", "aria-label",
5702
5702
  emits: ["update:modelValue"],
5703
5703
  setup(t, { emit: e }) {
5704
5704
  const n = t, i = e, s = pe(n, "items"), r = pe(n, "modelValue"), o = pe(n, "disabled"), a = us([]);
5705
- function l(S, b) {
5706
- a.value[b] = S;
5705
+ function l(S, x) {
5706
+ a.value[x] = S;
5707
5707
  }
5708
5708
  const { isSelected: c, isSegmentDisabled: u, select: h, getTabIndex: d, onKeydown: f } = kh({
5709
5709
  items: s,
@@ -5711,11 +5711,11 @@ const Fh = ["aria-label", "aria-disabled"], Oh = ["aria-checked", "aria-label",
5711
5711
  disabled: o,
5712
5712
  onSelect: (S) => i("update:modelValue", S),
5713
5713
  focusIndex: (S) => {
5714
- var b;
5715
- return (b = a.value[S]) == null ? void 0 : b.focus();
5714
+ var x;
5715
+ return (x = a.value[S]) == null ? void 0 : x.focus();
5716
5716
  }
5717
5717
  }), p = qt(() => {
5718
- const S = n.items.findIndex((b) => b.value === n.modelValue);
5718
+ const S = n.items.findIndex((x) => x.value === n.modelValue);
5719
5719
  return S >= 0 ? S : 0;
5720
5720
  }), m = qt(() => {
5721
5721
  const S = n.items.length;
@@ -5746,7 +5746,8 @@ const Fh = ["aria-label", "aria-disabled"], Oh = ["aria-checked", "aria-label",
5746
5746
  visualDuration: 0.2,
5747
5747
  bounce: 0.2
5748
5748
  };
5749
- return (S, b) => (Wt(), me("div", {
5749
+ return (S, x) => (Wt(), me("div", {
5750
+ "data-testid": "segmented-control",
5750
5751
  role: "radiogroup",
5751
5752
  class: Gt(y.value),
5752
5753
  style: ge(m.value ? { gridTemplateColumns: m.value } : void 0),
@@ -5756,6 +5757,7 @@ const Fh = ["aria-label", "aria-disabled"], Oh = ["aria-checked", "aria-label",
5756
5757
  t.items.length > 0 ? (Wt(), hr(ct(zo).div, {
5757
5758
  key: 0,
5758
5759
  layout: "",
5760
+ "data-testid": "segmented-control-indicator",
5759
5761
  "data-state": t.modelValue,
5760
5762
  class: Gt(["segmented-control__indicator", t.ui.indicator]),
5761
5763
  style: ge({ gridColumn: p.value + 1, gridRow: 1 }),
@@ -5768,6 +5770,7 @@ const Fh = ["aria-label", "aria-disabled"], Oh = ["aria-checked", "aria-label",
5768
5770
  ref: (P) => l(P, V),
5769
5771
  type: "button",
5770
5772
  role: "radio",
5773
+ "data-testid": "segmented-control-segment",
5771
5774
  class: Gt(v(A)),
5772
5775
  style: ge({ gridColumn: V + 1, gridRow: 1 }),
5773
5776
  "aria-checked": ct(c)(A),
@@ -5778,6 +5781,7 @@ const Fh = ["aria-label", "aria-disabled"], Oh = ["aria-checked", "aria-label",
5778
5781
  onKeydown: (P) => ct(f)(P, V)
5779
5782
  }, [
5780
5783
  mr("span", {
5784
+ "data-testid": "segmented-control-label",
5781
5785
  class: Gt(w(A))
5782
5786
  }, gr(A.label), 3)
5783
5787
  ], 46, Oh))), 128))