@udixio/ui-react 2.10.16 → 2.10.18

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.
@@ -168,8 +168,8 @@ function Pe(e) {
168
168
  const F = e.charAt(r);
169
169
  F === "/" && (f((I) => I === `
170
170
  `, !0), r++), F === "*" && (f((I) => {
171
- const S = e.charAt(r + 1);
172
- return I === "*" && S === "/";
171
+ const $ = e.charAt(r + 1);
172
+ return I === "*" && $ === "/";
173
173
  }, !0), r++);
174
174
  break;
175
175
  }
@@ -368,7 +368,7 @@ function sr(e, t) {
368
368
  };
369
369
  t = De(r, t, e[Te]);
370
370
  const o = {
371
- resolve: Se(e),
371
+ resolve: $e(e),
372
372
  ...t
373
373
  };
374
374
  return re(wt(o));
@@ -380,7 +380,7 @@ function dt(e, t) {
380
380
  lifetime: G.TRANSIENT
381
381
  };
382
382
  t = De(r, t, e[Te]);
383
- const o = Se(function(...i) {
383
+ const o = $e(function(...i) {
384
384
  return Reflect.construct(e, i);
385
385
  }, e);
386
386
  return re(wt({
@@ -407,7 +407,7 @@ function wt(e) {
407
407
  injector: o
408
408
  });
409
409
  }
410
- return $e(e, {
410
+ return Se(e, {
411
411
  setLifetime: t,
412
412
  inject: n,
413
413
  transient: Ct(t, G.TRANSIENT),
@@ -425,7 +425,7 @@ function re(e) {
425
425
  dispose: r
426
426
  });
427
427
  }
428
- return $e(e, {
428
+ return Se(e, {
429
429
  disposer: t
430
430
  });
431
431
  }
@@ -437,7 +437,7 @@ function Ct(e, t) {
437
437
  function De(e, ...t) {
438
438
  return Object.assign({}, e, ...t);
439
439
  }
440
- function $e(e, t) {
440
+ function Se(e, t) {
441
441
  return {
442
442
  ...e,
443
443
  ...t
@@ -486,7 +486,7 @@ function ur(e, t) {
486
486
  }
487
487
  });
488
488
  }
489
- function Se(e, t) {
489
+ function $e(e, t) {
490
490
  t || (t = e);
491
491
  const r = Fe(t);
492
492
  return function(o) {
@@ -574,7 +574,7 @@ function Ie(e, t, r) {
574
574
  build: I,
575
575
  resolve: b,
576
576
  hasRegistration: F,
577
- dispose: S,
577
+ dispose: $,
578
578
  getRegistration: m,
579
579
  /* removed in browser build */
580
580
  [fe]: u,
@@ -624,9 +624,9 @@ function Ie(e, t, r) {
624
624
  try {
625
625
  let R = function(j, Q, W) {
626
626
  if (!(!e.strict || W.isLeakSafe)) {
627
- for (let _ = 0; _ < n.length; _++)
628
- if (Je(n[_].lifetime, Q))
629
- throw new Ot(j, n, `Dependency '${j.toString()}' has a shorter lifetime than its ancestor: '${n[_].name.toString()}'`);
627
+ for (let H = 0; H < n.length; H++)
628
+ if (Je(n[H].lifetime, Q))
629
+ throw new Ot(j, n, `Dependency '${j.toString()}' has a shorter lifetime than its ancestor: '${n[H].name.toString()}'`);
630
630
  }
631
631
  };
632
632
  var B = R;
@@ -700,7 +700,7 @@ function Ie(e, t, r) {
700
700
  const B = "build", P = "targetOrResolver";
701
701
  return yt.assert(k, B, P, "a registration, function or class", k), yt.assert(typeof k == "function", B, P, "a function or class", k), (ar(k) ? dt(k, v) : sr(k, v)).resolve(i);
702
702
  }
703
- function S() {
703
+ function $() {
704
704
  const k = Array.from(i.cache.entries());
705
705
  return i.cache.clear(), Promise.all(k.map(([, v]) => {
706
706
  const { resolver: B, value: P } = v, O = B;
@@ -816,7 +816,7 @@ function jt(e) {
816
816
  function ct(e) {
817
817
  return 100 * br((e + 16) / 116);
818
818
  }
819
- function Ht(e) {
819
+ function _t(e) {
820
820
  return Ee(e / 100) * 116 - 16;
821
821
  }
822
822
  function pt(e) {
@@ -886,7 +886,7 @@ class tt {
886
886
  f * (100 / c) + 1 - f,
887
887
  f * (100 / s) + 1 - f,
888
888
  f * (100 / l) + 1 - f
889
- ], m = 1 / (5 * r + 1), b = m * m * m * m, F = 1 - b, I = b * r + 0.1 * F * F * Math.cbrt(5 * r), S = ct(n) / t[1], k = 1.48 + Math.sqrt(S), v = 0.725 / Math.pow(S, 0.2), B = v, P = [
889
+ ], m = 1 / (5 * r + 1), b = m * m * m * m, F = 1 - b, I = b * r + 0.1 * F * F * Math.cbrt(5 * r), $ = ct(n) / t[1], k = 1.48 + Math.sqrt($), v = 0.725 / Math.pow($, 0.2), B = v, P = [
890
890
  Math.pow(I * p[0] * c / 100, 0.42),
891
891
  Math.pow(I * p[1] * s / 100, 0.42),
892
892
  Math.pow(I * p[2] * l / 100, 0.42)
@@ -895,7 +895,7 @@ class tt {
895
895
  400 * P[1] / (P[1] + 27.13),
896
896
  400 * P[2] / (P[2] + 27.13)
897
897
  ], R = (2 * O[0] + O[1] + 0.05 * O[2]) * v;
898
- return new tt(S, R, v, B, h, g, p, I, Math.pow(I, 0.25), k);
898
+ return new tt($, R, v, B, h, g, p, I, Math.pow(I, 0.25), k);
899
899
  }
900
900
  /**
901
901
  * Parameters are intermediate values of the CAM16 conversion process. Their
@@ -973,8 +973,8 @@ class Y {
973
973
  * @return CAM16 color.
974
974
  */
975
975
  static fromIntInViewingConditions(t, r) {
976
- const n = (t & 16711680) >> 16, o = (t & 65280) >> 8, a = t & 255, i = pt(n), c = pt(o), s = pt(a), l = 0.41233895 * i + 0.35762064 * c + 0.18051042 * s, u = 0.2126 * i + 0.7152 * c + 0.0722 * s, h = 0.01932141 * i + 0.11916382 * c + 0.95034478 * s, f = 0.401288 * l + 0.650173 * u - 0.051461 * h, g = -0.250268 * l + 1.204414 * u + 0.045854 * h, p = -2079e-6 * l + 0.048952 * u + 0.953127 * h, m = r.rgbD[0] * f, b = r.rgbD[1] * g, F = r.rgbD[2] * p, I = Math.pow(r.fl * Math.abs(m) / 100, 0.42), S = Math.pow(r.fl * Math.abs(b) / 100, 0.42), k = Math.pow(r.fl * Math.abs(F) / 100, 0.42), v = U(m) * 400 * I / (I + 27.13), B = U(b) * 400 * S / (S + 27.13), P = U(F) * 400 * k / (k + 27.13), O = (11 * v + -12 * B + P) / 11, R = (v + B - 2 * P) / 9, A = (20 * v + 20 * B + 21 * P) / 20, j = (40 * v + 20 * B + P) / 20, W = Math.atan2(R, O) * 180 / Math.PI, _ = W < 0 ? W + 360 : W >= 360 ? W - 360 : W, St = _ * Math.PI / 180, Ft = j * r.nbb, ut = 100 * Math.pow(Ft / r.aw, r.c * r.z), At = 4 / r.c * Math.sqrt(ut / 100) * (r.aw + 4) * r.fLRoot, Yt = _ < 20.14 ? _ + 360 : _, Ut = 0.25 * (Math.cos(Yt * Math.PI / 180 + 2) + 3.8), Wt = 5e4 / 13 * Ut * r.nc * r.ncb * Math.sqrt(O * O + R * R) / (A + 0.305), It = Math.pow(Wt, 0.9) * Math.pow(1.64 - Math.pow(0.29, r.n), 0.73), ce = It * Math.sqrt(ut / 100), ue = ce * r.fLRoot, Ue = 50 * Math.sqrt(It * r.c / (r.aw + 4)), Ge = (1 + 100 * 7e-3) * ut / (1 + 7e-3 * ut), le = 1 / 0.0228 * Math.log(1 + 0.0228 * ue), We = le * Math.cos(St), qe = le * Math.sin(St);
977
- return new Y(_, ce, ut, At, ue, Ue, Ge, We, qe);
976
+ const n = (t & 16711680) >> 16, o = (t & 65280) >> 8, a = t & 255, i = pt(n), c = pt(o), s = pt(a), l = 0.41233895 * i + 0.35762064 * c + 0.18051042 * s, u = 0.2126 * i + 0.7152 * c + 0.0722 * s, h = 0.01932141 * i + 0.11916382 * c + 0.95034478 * s, f = 0.401288 * l + 0.650173 * u - 0.051461 * h, g = -0.250268 * l + 1.204414 * u + 0.045854 * h, p = -2079e-6 * l + 0.048952 * u + 0.953127 * h, m = r.rgbD[0] * f, b = r.rgbD[1] * g, F = r.rgbD[2] * p, I = Math.pow(r.fl * Math.abs(m) / 100, 0.42), $ = Math.pow(r.fl * Math.abs(b) / 100, 0.42), k = Math.pow(r.fl * Math.abs(F) / 100, 0.42), v = U(m) * 400 * I / (I + 27.13), B = U(b) * 400 * $ / ($ + 27.13), P = U(F) * 400 * k / (k + 27.13), O = (11 * v + -12 * B + P) / 11, R = (v + B - 2 * P) / 9, A = (20 * v + 20 * B + 21 * P) / 20, j = (40 * v + 20 * B + P) / 20, W = Math.atan2(R, O) * 180 / Math.PI, H = W < 0 ? W + 360 : W >= 360 ? W - 360 : W, $t = H * Math.PI / 180, Ft = j * r.nbb, ut = 100 * Math.pow(Ft / r.aw, r.c * r.z), At = 4 / r.c * Math.sqrt(ut / 100) * (r.aw + 4) * r.fLRoot, Yt = H < 20.14 ? H + 360 : H, Ut = 0.25 * (Math.cos(Yt * Math.PI / 180 + 2) + 3.8), Wt = 5e4 / 13 * Ut * r.nc * r.ncb * Math.sqrt(O * O + R * R) / (A + 0.305), It = Math.pow(Wt, 0.9) * Math.pow(1.64 - Math.pow(0.29, r.n), 0.73), ce = It * Math.sqrt(ut / 100), ue = ce * r.fLRoot, Ue = 50 * Math.sqrt(It * r.c / (r.aw + 4)), Ge = (1 + 100 * 7e-3) * ut / (1 + 7e-3 * ut), le = 1 / 0.0228 * Math.log(1 + 0.0228 * ue), We = le * Math.cos($t), qe = le * Math.sin($t);
977
+ return new Y(H, ce, ut, At, ue, Ue, Ge, We, qe);
978
978
  }
979
979
  /**
980
980
  * @param j CAM16 lightness
@@ -1035,18 +1035,18 @@ class Y {
1035
1035
  * @return ARGB representation of color
1036
1036
  */
1037
1037
  viewed(t) {
1038
- const r = this.chroma === 0 || this.j === 0 ? 0 : this.chroma / Math.sqrt(this.j / 100), n = Math.pow(r / Math.pow(1.64 - Math.pow(0.29, t.n), 0.73), 1 / 0.9), o = this.hue * Math.PI / 180, a = 0.25 * (Math.cos(o + 2) + 3.8), i = t.aw * Math.pow(this.j / 100, 1 / t.c / t.z), c = a * (5e4 / 13) * t.nc * t.ncb, s = i / t.nbb, l = Math.sin(o), u = Math.cos(o), h = 23 * (s + 0.305) * n / (23 * c + 11 * n * u + 108 * n * l), f = h * u, g = h * l, p = (460 * s + 451 * f + 288 * g) / 1403, m = (460 * s - 891 * f - 261 * g) / 1403, b = (460 * s - 220 * f - 6300 * g) / 1403, F = Math.max(0, 27.13 * Math.abs(p) / (400 - Math.abs(p))), I = U(p) * (100 / t.fl) * Math.pow(F, 1 / 0.42), S = Math.max(0, 27.13 * Math.abs(m) / (400 - Math.abs(m))), k = U(m) * (100 / t.fl) * Math.pow(S, 1 / 0.42), v = Math.max(0, 27.13 * Math.abs(b) / (400 - Math.abs(b))), B = U(b) * (100 / t.fl) * Math.pow(v, 1 / 0.42), P = I / t.rgbD[0], O = k / t.rgbD[1], R = B / t.rgbD[2], A = 1.86206786 * P - 1.01125463 * O + 0.14918677 * R, j = 0.38752654 * P + 0.62144744 * O - 897398e-8 * R, Q = -0.0158415 * P - 0.03412294 * O + 1.04996444 * R;
1038
+ const r = this.chroma === 0 || this.j === 0 ? 0 : this.chroma / Math.sqrt(this.j / 100), n = Math.pow(r / Math.pow(1.64 - Math.pow(0.29, t.n), 0.73), 1 / 0.9), o = this.hue * Math.PI / 180, a = 0.25 * (Math.cos(o + 2) + 3.8), i = t.aw * Math.pow(this.j / 100, 1 / t.c / t.z), c = a * (5e4 / 13) * t.nc * t.ncb, s = i / t.nbb, l = Math.sin(o), u = Math.cos(o), h = 23 * (s + 0.305) * n / (23 * c + 11 * n * u + 108 * n * l), f = h * u, g = h * l, p = (460 * s + 451 * f + 288 * g) / 1403, m = (460 * s - 891 * f - 261 * g) / 1403, b = (460 * s - 220 * f - 6300 * g) / 1403, F = Math.max(0, 27.13 * Math.abs(p) / (400 - Math.abs(p))), I = U(p) * (100 / t.fl) * Math.pow(F, 1 / 0.42), $ = Math.max(0, 27.13 * Math.abs(m) / (400 - Math.abs(m))), k = U(m) * (100 / t.fl) * Math.pow($, 1 / 0.42), v = Math.max(0, 27.13 * Math.abs(b) / (400 - Math.abs(b))), B = U(b) * (100 / t.fl) * Math.pow(v, 1 / 0.42), P = I / t.rgbD[0], O = k / t.rgbD[1], R = B / t.rgbD[2], A = 1.86206786 * P - 1.01125463 * O + 0.14918677 * R, j = 0.38752654 * P + 0.62144744 * O - 897398e-8 * R, Q = -0.0158415 * P - 0.03412294 * O + 1.04996444 * R;
1039
1039
  return mr(A, j, Q);
1040
1040
  }
1041
1041
  /// Given color expressed in XYZ and viewed in [viewingConditions], convert to
1042
1042
  /// CAM16.
1043
1043
  static fromXyzInViewingConditions(t, r, n, o) {
1044
- const a = 0.401288 * t + 0.650173 * r - 0.051461 * n, i = -0.250268 * t + 1.204414 * r + 0.045854 * n, c = -2079e-6 * t + 0.048952 * r + 0.953127 * n, s = o.rgbD[0] * a, l = o.rgbD[1] * i, u = o.rgbD[2] * c, h = Math.pow(o.fl * Math.abs(s) / 100, 0.42), f = Math.pow(o.fl * Math.abs(l) / 100, 0.42), g = Math.pow(o.fl * Math.abs(u) / 100, 0.42), p = U(s) * 400 * h / (h + 27.13), m = U(l) * 400 * f / (f + 27.13), b = U(u) * 400 * g / (g + 27.13), F = (11 * p + -12 * m + b) / 11, I = (p + m - 2 * b) / 9, S = (20 * p + 20 * m + 21 * b) / 20, k = (40 * p + 20 * m + b) / 20, B = Math.atan2(I, F) * 180 / Math.PI, P = B < 0 ? B + 360 : B >= 360 ? B - 360 : B, O = P * Math.PI / 180, R = k * o.nbb, A = 100 * Math.pow(R / o.aw, o.c * o.z), j = 4 / o.c * Math.sqrt(A / 100) * (o.aw + 4) * o.fLRoot, Q = P < 20.14 ? P + 360 : P, W = 1 / 4 * (Math.cos(Q * Math.PI / 180 + 2) + 3.8), St = 5e4 / 13 * W * o.nc * o.ncb * Math.sqrt(F * F + I * I) / (S + 0.305), Ft = Math.pow(St, 0.9) * Math.pow(1.64 - Math.pow(0.29, o.n), 0.73), ut = Ft * Math.sqrt(A / 100), At = ut * o.fLRoot, Yt = 50 * Math.sqrt(Ft * o.c / (o.aw + 4)), Ut = (1 + 100 * 7e-3) * A / (1 + 7e-3 * A), Gt = Math.log(1 + 0.0228 * At) / 0.0228, Wt = Gt * Math.cos(O), It = Gt * Math.sin(O);
1044
+ const a = 0.401288 * t + 0.650173 * r - 0.051461 * n, i = -0.250268 * t + 1.204414 * r + 0.045854 * n, c = -2079e-6 * t + 0.048952 * r + 0.953127 * n, s = o.rgbD[0] * a, l = o.rgbD[1] * i, u = o.rgbD[2] * c, h = Math.pow(o.fl * Math.abs(s) / 100, 0.42), f = Math.pow(o.fl * Math.abs(l) / 100, 0.42), g = Math.pow(o.fl * Math.abs(u) / 100, 0.42), p = U(s) * 400 * h / (h + 27.13), m = U(l) * 400 * f / (f + 27.13), b = U(u) * 400 * g / (g + 27.13), F = (11 * p + -12 * m + b) / 11, I = (p + m - 2 * b) / 9, $ = (20 * p + 20 * m + 21 * b) / 20, k = (40 * p + 20 * m + b) / 20, B = Math.atan2(I, F) * 180 / Math.PI, P = B < 0 ? B + 360 : B >= 360 ? B - 360 : B, O = P * Math.PI / 180, R = k * o.nbb, A = 100 * Math.pow(R / o.aw, o.c * o.z), j = 4 / o.c * Math.sqrt(A / 100) * (o.aw + 4) * o.fLRoot, Q = P < 20.14 ? P + 360 : P, W = 1 / 4 * (Math.cos(Q * Math.PI / 180 + 2) + 3.8), $t = 5e4 / 13 * W * o.nc * o.ncb * Math.sqrt(F * F + I * I) / ($ + 0.305), Ft = Math.pow($t, 0.9) * Math.pow(1.64 - Math.pow(0.29, o.n), 0.73), ut = Ft * Math.sqrt(A / 100), At = ut * o.fLRoot, Yt = 50 * Math.sqrt(Ft * o.c / (o.aw + 4)), Ut = (1 + 100 * 7e-3) * A / (1 + 7e-3 * A), Gt = Math.log(1 + 0.0228 * At) / 0.0228, Wt = Gt * Math.cos(O), It = Gt * Math.sin(O);
1045
1045
  return new Y(P, ut, A, j, At, Yt, Ut, Wt, It);
1046
1046
  }
1047
1047
  /// XYZ representation of CAM16 seen in [viewingConditions].
1048
1048
  xyzInViewingConditions(t) {
1049
- const r = this.chroma === 0 || this.j === 0 ? 0 : this.chroma / Math.sqrt(this.j / 100), n = Math.pow(r / Math.pow(1.64 - Math.pow(0.29, t.n), 0.73), 1 / 0.9), o = this.hue * Math.PI / 180, a = 0.25 * (Math.cos(o + 2) + 3.8), i = t.aw * Math.pow(this.j / 100, 1 / t.c / t.z), c = a * (5e4 / 13) * t.nc * t.ncb, s = i / t.nbb, l = Math.sin(o), u = Math.cos(o), h = 23 * (s + 0.305) * n / (23 * c + 11 * n * u + 108 * n * l), f = h * u, g = h * l, p = (460 * s + 451 * f + 288 * g) / 1403, m = (460 * s - 891 * f - 261 * g) / 1403, b = (460 * s - 220 * f - 6300 * g) / 1403, F = Math.max(0, 27.13 * Math.abs(p) / (400 - Math.abs(p))), I = U(p) * (100 / t.fl) * Math.pow(F, 1 / 0.42), S = Math.max(0, 27.13 * Math.abs(m) / (400 - Math.abs(m))), k = U(m) * (100 / t.fl) * Math.pow(S, 1 / 0.42), v = Math.max(0, 27.13 * Math.abs(b) / (400 - Math.abs(b))), B = U(b) * (100 / t.fl) * Math.pow(v, 1 / 0.42), P = I / t.rgbD[0], O = k / t.rgbD[1], R = B / t.rgbD[2], A = 1.86206786 * P - 1.01125463 * O + 0.14918677 * R, j = 0.38752654 * P + 0.62144744 * O - 897398e-8 * R, Q = -0.0158415 * P - 0.03412294 * O + 1.04996444 * R;
1049
+ const r = this.chroma === 0 || this.j === 0 ? 0 : this.chroma / Math.sqrt(this.j / 100), n = Math.pow(r / Math.pow(1.64 - Math.pow(0.29, t.n), 0.73), 1 / 0.9), o = this.hue * Math.PI / 180, a = 0.25 * (Math.cos(o + 2) + 3.8), i = t.aw * Math.pow(this.j / 100, 1 / t.c / t.z), c = a * (5e4 / 13) * t.nc * t.ncb, s = i / t.nbb, l = Math.sin(o), u = Math.cos(o), h = 23 * (s + 0.305) * n / (23 * c + 11 * n * u + 108 * n * l), f = h * u, g = h * l, p = (460 * s + 451 * f + 288 * g) / 1403, m = (460 * s - 891 * f - 261 * g) / 1403, b = (460 * s - 220 * f - 6300 * g) / 1403, F = Math.max(0, 27.13 * Math.abs(p) / (400 - Math.abs(p))), I = U(p) * (100 / t.fl) * Math.pow(F, 1 / 0.42), $ = Math.max(0, 27.13 * Math.abs(m) / (400 - Math.abs(m))), k = U(m) * (100 / t.fl) * Math.pow($, 1 / 0.42), v = Math.max(0, 27.13 * Math.abs(b) / (400 - Math.abs(b))), B = U(b) * (100 / t.fl) * Math.pow(v, 1 / 0.42), P = I / t.rgbD[0], O = k / t.rgbD[1], R = B / t.rgbD[2], A = 1.86206786 * P - 1.01125463 * O + 0.14918677 * R, j = 0.38752654 * P + 0.62144744 * O - 897398e-8 * R, Q = -0.0158415 * P - 0.03412294 * O + 1.04996444 * R;
1050
1050
  return [A, j, Q];
1051
1051
  }
1052
1052
  }
@@ -1244,15 +1244,15 @@ let lt = class T {
1244
1244
  let o = Math.sqrt(n) * 11;
1245
1245
  const a = tt.DEFAULT, i = 1 / Math.pow(1.64 - Math.pow(0.29, a.n), 0.73), s = 0.25 * (Math.cos(t + 2) + 3.8) * (5e4 / 13) * a.nc * a.ncb, l = Math.sin(t), u = Math.cos(t);
1246
1246
  for (let h = 0; h < 5; h++) {
1247
- const f = o / 100, g = r === 0 || o === 0 ? 0 : r / Math.sqrt(f), p = Math.pow(g * i, 1 / 0.9), b = a.aw * Math.pow(f, 1 / a.c / a.z) / a.nbb, F = 23 * (b + 0.305) * p / (23 * s + 11 * p * u + 108 * p * l), I = F * u, S = F * l, k = (460 * b + 451 * I + 288 * S) / 1403, v = (460 * b - 891 * I - 261 * S) / 1403, B = (460 * b - 220 * I - 6300 * S) / 1403, P = T.inverseChromaticAdaptation(k), O = T.inverseChromaticAdaptation(v), R = T.inverseChromaticAdaptation(B), A = Pt([P, O, R], T.LINRGB_FROM_SCALED_DISCOUNT);
1247
+ const f = o / 100, g = r === 0 || o === 0 ? 0 : r / Math.sqrt(f), p = Math.pow(g * i, 1 / 0.9), b = a.aw * Math.pow(f, 1 / a.c / a.z) / a.nbb, F = 23 * (b + 0.305) * p / (23 * s + 11 * p * u + 108 * p * l), I = F * u, $ = F * l, k = (460 * b + 451 * I + 288 * $) / 1403, v = (460 * b - 891 * I - 261 * $) / 1403, B = (460 * b - 220 * I - 6300 * $) / 1403, P = T.inverseChromaticAdaptation(k), O = T.inverseChromaticAdaptation(v), R = T.inverseChromaticAdaptation(B), A = Pt([P, O, R], T.LINRGB_FROM_SCALED_DISCOUNT);
1248
1248
  if (A[0] < 0 || A[1] < 0 || A[2] < 0)
1249
1249
  return 0;
1250
- const j = T.Y_FROM_LINRGB[0], Q = T.Y_FROM_LINRGB[1], W = T.Y_FROM_LINRGB[2], _ = j * A[0] + Q * A[1] + W * A[2];
1251
- if (_ <= 0)
1250
+ const j = T.Y_FROM_LINRGB[0], Q = T.Y_FROM_LINRGB[1], W = T.Y_FROM_LINRGB[2], H = j * A[0] + Q * A[1] + W * A[2];
1251
+ if (H <= 0)
1252
1252
  return 0;
1253
- if (h === 4 || Math.abs(_ - n) < 2e-3)
1253
+ if (h === 4 || Math.abs(H - n) < 2e-3)
1254
1254
  return A[0] > 100.01 || A[1] > 100.01 || A[2] > 100.01 ? 0 : Rt(A);
1255
- o = o - (_ - n) * o / (2 * _);
1255
+ o = o - (H - n) * o / (2 * H);
1256
1256
  }
1257
1257
  return 0;
1258
1258
  }
@@ -1679,7 +1679,7 @@ let et = class Lt {
1679
1679
  */
1680
1680
  inViewingConditions(t) {
1681
1681
  const n = Y.fromInt(this.toInt()).xyzInViewingConditions(t), o = Y.fromXyzInViewingConditions(n[0], n[1], n[2], tt.make());
1682
- return Lt.from(o.hue, o.chroma, Ht(n[1]));
1682
+ return Lt.from(o.hue, o.chroma, _t(n[1]));
1683
1683
  }
1684
1684
  };
1685
1685
  /**
@@ -1728,7 +1728,7 @@ class x {
1728
1728
  const n = ct(t), o = r * (n + 5) - 5, a = x.ratioOfYs(o, n), i = Math.abs(a - r);
1729
1729
  if (a < r && i > 0.04)
1730
1730
  return -1;
1731
- const c = Ht(o) + 0.4;
1731
+ const c = _t(o) + 0.4;
1732
1732
  return c < 0 || c > 100 ? -1 : c;
1733
1733
  }
1734
1734
  /**
@@ -1747,7 +1747,7 @@ class x {
1747
1747
  const n = ct(t), o = (n + 5) / r - 5, a = x.ratioOfYs(n, o), i = Math.abs(a - r);
1748
1748
  if (a < r && i > 0.04)
1749
1749
  return -1;
1750
- const c = Ht(o) - 0.4;
1750
+ const c = _t(o) - 0.4;
1751
1751
  return c < 0 || c > 100 ? -1 : c;
1752
1752
  }
1753
1753
  /**
@@ -1930,10 +1930,10 @@ let C = class X {
1930
1930
  const r = t.contrastLevel < 0;
1931
1931
  if (this.toneDeltaPair) {
1932
1932
  const n = this.toneDeltaPair(t), o = n.roleA, a = n.roleB, i = n.delta, c = n.polarity, s = n.stayTogether, u = this.background(t).getTone(t), h = c === "nearer" || c === "lighter" && !t.isDark || c === "darker" && t.isDark, f = h ? o : a, g = h ? a : o, p = this.name === f.name, m = t.isDark ? 1 : -1, b = f.contrastCurve.get(t.contrastLevel), F = g.contrastCurve.get(t.contrastLevel), I = f.tone(t);
1933
- let S = x.ratioOfTones(u, I) >= b ? I : X.foregroundTone(u, b);
1933
+ let $ = x.ratioOfTones(u, I) >= b ? I : X.foregroundTone(u, b);
1934
1934
  const k = g.tone(t);
1935
1935
  let v = x.ratioOfTones(u, k) >= F ? k : X.foregroundTone(u, F);
1936
- return r && (S = X.foregroundTone(u, b), v = X.foregroundTone(u, F)), (v - S) * m >= i || (v = N(0, 100, S + i * m), (v - S) * m >= i || (S = N(0, 100, v - i * m))), 50 <= S && S < 60 ? m > 0 ? (S = 60, v = Math.max(v, S + i * m)) : (S = 49, v = Math.min(v, S + i * m)) : 50 <= v && v < 60 && (s ? m > 0 ? (S = 60, v = Math.max(v, S + i * m)) : (S = 49, v = Math.min(v, S + i * m)) : m > 0 ? v = 60 : v = 49), p ? S : v;
1936
+ return r && ($ = X.foregroundTone(u, b), v = X.foregroundTone(u, F)), (v - $) * m >= i || (v = N(0, 100, $ + i * m), (v - $) * m >= i || ($ = N(0, 100, v - i * m))), 50 <= $ && $ < 60 ? m > 0 ? ($ = 60, v = Math.max(v, $ + i * m)) : ($ = 49, v = Math.min(v, $ + i * m)) : 50 <= v && v < 60 && (s ? m > 0 ? ($ = 60, v = Math.max(v, $ + i * m)) : ($ = 49, v = Math.min(v, $ + i * m)) : m > 0 ? v = 60 : v = 49), p ? $ : v;
1937
1937
  } else {
1938
1938
  let n = this.tone(t);
1939
1939
  if (this.background == null)
@@ -2213,7 +2213,7 @@ var Mt;
2213
2213
  function vt(e) {
2214
2214
  return e.variant === Mt.FIDELITY || e.variant === Mt.CONTENT;
2215
2215
  }
2216
- function H(e) {
2216
+ function _(e) {
2217
2217
  return e.variant === Mt.MONOCHROME;
2218
2218
  }
2219
2219
  function kr(e, t, r, n) {
@@ -2388,7 +2388,7 @@ d.surfaceTint = C.fromPalette({
2388
2388
  d.primary = C.fromPalette({
2389
2389
  name: "primary",
2390
2390
  palette: (e) => e.primaryPalette,
2391
- tone: (e) => H(e) ? e.isDark ? 100 : 0 : e.isDark ? 80 : 40,
2391
+ tone: (e) => _(e) ? e.isDark ? 100 : 0 : e.isDark ? 80 : 40,
2392
2392
  isBackground: !0,
2393
2393
  background: (e) => d.highestSurface(e),
2394
2394
  contrastCurve: new M(3, 4.5, 7, 7),
@@ -2397,14 +2397,14 @@ d.primary = C.fromPalette({
2397
2397
  d.onPrimary = C.fromPalette({
2398
2398
  name: "on_primary",
2399
2399
  palette: (e) => e.primaryPalette,
2400
- tone: (e) => H(e) ? e.isDark ? 10 : 90 : e.isDark ? 20 : 100,
2400
+ tone: (e) => _(e) ? e.isDark ? 10 : 90 : e.isDark ? 20 : 100,
2401
2401
  background: (e) => d.primary,
2402
2402
  contrastCurve: new M(4.5, 7, 11, 21)
2403
2403
  });
2404
2404
  d.primaryContainer = C.fromPalette({
2405
2405
  name: "primary_container",
2406
2406
  palette: (e) => e.primaryPalette,
2407
- tone: (e) => vt(e) ? e.sourceColorHct.tone : H(e) ? e.isDark ? 85 : 25 : e.isDark ? 30 : 90,
2407
+ tone: (e) => vt(e) ? e.sourceColorHct.tone : _(e) ? e.isDark ? 85 : 25 : e.isDark ? 30 : 90,
2408
2408
  isBackground: !0,
2409
2409
  background: (e) => d.highestSurface(e),
2410
2410
  contrastCurve: new M(1, 1, 3, 4.5),
@@ -2413,7 +2413,7 @@ d.primaryContainer = C.fromPalette({
2413
2413
  d.onPrimaryContainer = C.fromPalette({
2414
2414
  name: "on_primary_container",
2415
2415
  palette: (e) => e.primaryPalette,
2416
- tone: (e) => vt(e) ? C.foregroundTone(d.primaryContainer.tone(e), 4.5) : H(e) ? e.isDark ? 0 : 100 : e.isDark ? 90 : 30,
2416
+ tone: (e) => vt(e) ? C.foregroundTone(d.primaryContainer.tone(e), 4.5) : _(e) ? e.isDark ? 0 : 100 : e.isDark ? 90 : 30,
2417
2417
  background: (e) => d.primaryContainer,
2418
2418
  contrastCurve: new M(3, 4.5, 7, 11)
2419
2419
  });
@@ -2436,7 +2436,7 @@ d.secondary = C.fromPalette({
2436
2436
  d.onSecondary = C.fromPalette({
2437
2437
  name: "on_secondary",
2438
2438
  palette: (e) => e.secondaryPalette,
2439
- tone: (e) => H(e) ? e.isDark ? 10 : 100 : e.isDark ? 20 : 100,
2439
+ tone: (e) => _(e) ? e.isDark ? 10 : 100 : e.isDark ? 20 : 100,
2440
2440
  background: (e) => d.secondary,
2441
2441
  contrastCurve: new M(4.5, 7, 11, 21)
2442
2442
  });
@@ -2445,7 +2445,7 @@ d.secondaryContainer = C.fromPalette({
2445
2445
  palette: (e) => e.secondaryPalette,
2446
2446
  tone: (e) => {
2447
2447
  const t = e.isDark ? 30 : 90;
2448
- return H(e) ? e.isDark ? 30 : 85 : vt(e) ? kr(e.secondaryPalette.hue, e.secondaryPalette.chroma, t, !e.isDark) : t;
2448
+ return _(e) ? e.isDark ? 30 : 85 : vt(e) ? kr(e.secondaryPalette.hue, e.secondaryPalette.chroma, t, !e.isDark) : t;
2449
2449
  },
2450
2450
  isBackground: !0,
2451
2451
  background: (e) => d.highestSurface(e),
@@ -2455,14 +2455,14 @@ d.secondaryContainer = C.fromPalette({
2455
2455
  d.onSecondaryContainer = C.fromPalette({
2456
2456
  name: "on_secondary_container",
2457
2457
  palette: (e) => e.secondaryPalette,
2458
- tone: (e) => H(e) ? e.isDark ? 90 : 10 : vt(e) ? C.foregroundTone(d.secondaryContainer.tone(e), 4.5) : e.isDark ? 90 : 30,
2458
+ tone: (e) => _(e) ? e.isDark ? 90 : 10 : vt(e) ? C.foregroundTone(d.secondaryContainer.tone(e), 4.5) : e.isDark ? 90 : 30,
2459
2459
  background: (e) => d.secondaryContainer,
2460
2460
  contrastCurve: new M(3, 4.5, 7, 11)
2461
2461
  });
2462
2462
  d.tertiary = C.fromPalette({
2463
2463
  name: "tertiary",
2464
2464
  palette: (e) => e.tertiaryPalette,
2465
- tone: (e) => H(e) ? e.isDark ? 90 : 25 : e.isDark ? 80 : 40,
2465
+ tone: (e) => _(e) ? e.isDark ? 90 : 25 : e.isDark ? 80 : 40,
2466
2466
  isBackground: !0,
2467
2467
  background: (e) => d.highestSurface(e),
2468
2468
  contrastCurve: new M(3, 4.5, 7, 7),
@@ -2471,7 +2471,7 @@ d.tertiary = C.fromPalette({
2471
2471
  d.onTertiary = C.fromPalette({
2472
2472
  name: "on_tertiary",
2473
2473
  palette: (e) => e.tertiaryPalette,
2474
- tone: (e) => H(e) ? e.isDark ? 10 : 90 : e.isDark ? 20 : 100,
2474
+ tone: (e) => _(e) ? e.isDark ? 10 : 90 : e.isDark ? 20 : 100,
2475
2475
  background: (e) => d.tertiary,
2476
2476
  contrastCurve: new M(4.5, 7, 11, 21)
2477
2477
  });
@@ -2479,7 +2479,7 @@ d.tertiaryContainer = C.fromPalette({
2479
2479
  name: "tertiary_container",
2480
2480
  palette: (e) => e.tertiaryPalette,
2481
2481
  tone: (e) => {
2482
- if (H(e))
2482
+ if (_(e))
2483
2483
  return e.isDark ? 60 : 49;
2484
2484
  if (!vt(e))
2485
2485
  return e.isDark ? 30 : 90;
@@ -2494,7 +2494,7 @@ d.tertiaryContainer = C.fromPalette({
2494
2494
  d.onTertiaryContainer = C.fromPalette({
2495
2495
  name: "on_tertiary_container",
2496
2496
  palette: (e) => e.tertiaryPalette,
2497
- tone: (e) => H(e) ? e.isDark ? 0 : 100 : vt(e) ? C.foregroundTone(d.tertiaryContainer.tone(e), 4.5) : e.isDark ? 90 : 30,
2497
+ tone: (e) => _(e) ? e.isDark ? 0 : 100 : vt(e) ? C.foregroundTone(d.tertiaryContainer.tone(e), 4.5) : e.isDark ? 90 : 30,
2498
2498
  background: (e) => d.tertiaryContainer,
2499
2499
  contrastCurve: new M(3, 4.5, 7, 11)
2500
2500
  });
@@ -2526,14 +2526,14 @@ d.errorContainer = C.fromPalette({
2526
2526
  d.onErrorContainer = C.fromPalette({
2527
2527
  name: "on_error_container",
2528
2528
  palette: (e) => e.errorPalette,
2529
- tone: (e) => H(e) ? e.isDark ? 90 : 10 : e.isDark ? 90 : 30,
2529
+ tone: (e) => _(e) ? e.isDark ? 90 : 10 : e.isDark ? 90 : 30,
2530
2530
  background: (e) => d.errorContainer,
2531
2531
  contrastCurve: new M(3, 4.5, 7, 11)
2532
2532
  });
2533
2533
  d.primaryFixed = C.fromPalette({
2534
2534
  name: "primary_fixed",
2535
2535
  palette: (e) => e.primaryPalette,
2536
- tone: (e) => H(e) ? 40 : 90,
2536
+ tone: (e) => _(e) ? 40 : 90,
2537
2537
  isBackground: !0,
2538
2538
  background: (e) => d.highestSurface(e),
2539
2539
  contrastCurve: new M(1, 1, 3, 4.5),
@@ -2542,7 +2542,7 @@ d.primaryFixed = C.fromPalette({
2542
2542
  d.primaryFixedDim = C.fromPalette({
2543
2543
  name: "primary_fixed_dim",
2544
2544
  palette: (e) => e.primaryPalette,
2545
- tone: (e) => H(e) ? 30 : 80,
2545
+ tone: (e) => _(e) ? 30 : 80,
2546
2546
  isBackground: !0,
2547
2547
  background: (e) => d.highestSurface(e),
2548
2548
  contrastCurve: new M(1, 1, 3, 4.5),
@@ -2551,7 +2551,7 @@ d.primaryFixedDim = C.fromPalette({
2551
2551
  d.onPrimaryFixed = C.fromPalette({
2552
2552
  name: "on_primary_fixed",
2553
2553
  palette: (e) => e.primaryPalette,
2554
- tone: (e) => H(e) ? 100 : 10,
2554
+ tone: (e) => _(e) ? 100 : 10,
2555
2555
  background: (e) => d.primaryFixedDim,
2556
2556
  secondBackground: (e) => d.primaryFixed,
2557
2557
  contrastCurve: new M(4.5, 7, 11, 21)
@@ -2559,7 +2559,7 @@ d.onPrimaryFixed = C.fromPalette({
2559
2559
  d.onPrimaryFixedVariant = C.fromPalette({
2560
2560
  name: "on_primary_fixed_variant",
2561
2561
  palette: (e) => e.primaryPalette,
2562
- tone: (e) => H(e) ? 90 : 30,
2562
+ tone: (e) => _(e) ? 90 : 30,
2563
2563
  background: (e) => d.primaryFixedDim,
2564
2564
  secondBackground: (e) => d.primaryFixed,
2565
2565
  contrastCurve: new M(3, 4.5, 7, 11)
@@ -2567,7 +2567,7 @@ d.onPrimaryFixedVariant = C.fromPalette({
2567
2567
  d.secondaryFixed = C.fromPalette({
2568
2568
  name: "secondary_fixed",
2569
2569
  palette: (e) => e.secondaryPalette,
2570
- tone: (e) => H(e) ? 80 : 90,
2570
+ tone: (e) => _(e) ? 80 : 90,
2571
2571
  isBackground: !0,
2572
2572
  background: (e) => d.highestSurface(e),
2573
2573
  contrastCurve: new M(1, 1, 3, 4.5),
@@ -2576,7 +2576,7 @@ d.secondaryFixed = C.fromPalette({
2576
2576
  d.secondaryFixedDim = C.fromPalette({
2577
2577
  name: "secondary_fixed_dim",
2578
2578
  palette: (e) => e.secondaryPalette,
2579
- tone: (e) => H(e) ? 70 : 80,
2579
+ tone: (e) => _(e) ? 70 : 80,
2580
2580
  isBackground: !0,
2581
2581
  background: (e) => d.highestSurface(e),
2582
2582
  contrastCurve: new M(1, 1, 3, 4.5),
@@ -2593,7 +2593,7 @@ d.onSecondaryFixed = C.fromPalette({
2593
2593
  d.onSecondaryFixedVariant = C.fromPalette({
2594
2594
  name: "on_secondary_fixed_variant",
2595
2595
  palette: (e) => e.secondaryPalette,
2596
- tone: (e) => H(e) ? 25 : 30,
2596
+ tone: (e) => _(e) ? 25 : 30,
2597
2597
  background: (e) => d.secondaryFixedDim,
2598
2598
  secondBackground: (e) => d.secondaryFixed,
2599
2599
  contrastCurve: new M(3, 4.5, 7, 11)
@@ -2601,7 +2601,7 @@ d.onSecondaryFixedVariant = C.fromPalette({
2601
2601
  d.tertiaryFixed = C.fromPalette({
2602
2602
  name: "tertiary_fixed",
2603
2603
  palette: (e) => e.tertiaryPalette,
2604
- tone: (e) => H(e) ? 40 : 90,
2604
+ tone: (e) => _(e) ? 40 : 90,
2605
2605
  isBackground: !0,
2606
2606
  background: (e) => d.highestSurface(e),
2607
2607
  contrastCurve: new M(1, 1, 3, 4.5),
@@ -2610,7 +2610,7 @@ d.tertiaryFixed = C.fromPalette({
2610
2610
  d.tertiaryFixedDim = C.fromPalette({
2611
2611
  name: "tertiary_fixed_dim",
2612
2612
  palette: (e) => e.tertiaryPalette,
2613
- tone: (e) => H(e) ? 30 : 80,
2613
+ tone: (e) => _(e) ? 30 : 80,
2614
2614
  isBackground: !0,
2615
2615
  background: (e) => d.highestSurface(e),
2616
2616
  contrastCurve: new M(1, 1, 3, 4.5),
@@ -2619,7 +2619,7 @@ d.tertiaryFixedDim = C.fromPalette({
2619
2619
  d.onTertiaryFixed = C.fromPalette({
2620
2620
  name: "on_tertiary_fixed",
2621
2621
  palette: (e) => e.tertiaryPalette,
2622
- tone: (e) => H(e) ? 100 : 10,
2622
+ tone: (e) => _(e) ? 100 : 10,
2623
2623
  background: (e) => d.tertiaryFixedDim,
2624
2624
  secondBackground: (e) => d.tertiaryFixed,
2625
2625
  contrastCurve: new M(4.5, 7, 11, 21)
@@ -2627,7 +2627,7 @@ d.onTertiaryFixed = C.fromPalette({
2627
2627
  d.onTertiaryFixedVariant = C.fromPalette({
2628
2628
  name: "on_tertiary_fixed_variant",
2629
2629
  palette: (e) => e.tertiaryPalette,
2630
- tone: (e) => H(e) ? 90 : 30,
2630
+ tone: (e) => _(e) ? 90 : 30,
2631
2631
  background: (e) => d.tertiaryFixedDim,
2632
2632
  secondBackground: (e) => d.tertiaryFixed,
2633
2633
  contrastCurve: new M(3, 4.5, 7, 11)
@@ -2922,18 +2922,18 @@ const Tt = class D {
2922
2922
  let o = Math.sqrt(n) * 11;
2923
2923
  const a = tt.DEFAULT, i = 1 / Math.pow(1.64 - Math.pow(0.29, a.n), 0.73), s = 0.25 * (Math.cos(t + 2) + 3.8) * (5e4 / 13) * a.nc * a.ncb, l = Math.sin(t), u = Math.cos(t);
2924
2924
  for (let h = 0; h < 5; h++) {
2925
- const f = o / 100, g = r === 0 || o === 0 ? 0 : r / Math.sqrt(f), p = Math.pow(g * i, 1 / 0.9), b = a.aw * Math.pow(f, 1 / a.c / a.z) / a.nbb, F = 23 * (b + 0.305) * p / (23 * s + 11 * p * u + 108 * p * l), I = F * u, S = F * l, k = (460 * b + 451 * I + 288 * S) / 1403, v = (460 * b - 891 * I - 261 * S) / 1403, B = (460 * b - 220 * I - 6300 * S) / 1403, P = D.inverseChromaticAdaptation(k), O = D.inverseChromaticAdaptation(v), R = D.inverseChromaticAdaptation(B), A = Pt(
2925
+ const f = o / 100, g = r === 0 || o === 0 ? 0 : r / Math.sqrt(f), p = Math.pow(g * i, 1 / 0.9), b = a.aw * Math.pow(f, 1 / a.c / a.z) / a.nbb, F = 23 * (b + 0.305) * p / (23 * s + 11 * p * u + 108 * p * l), I = F * u, $ = F * l, k = (460 * b + 451 * I + 288 * $) / 1403, v = (460 * b - 891 * I - 261 * $) / 1403, B = (460 * b - 220 * I - 6300 * $) / 1403, P = D.inverseChromaticAdaptation(k), O = D.inverseChromaticAdaptation(v), R = D.inverseChromaticAdaptation(B), A = Pt(
2926
2926
  [P, O, R],
2927
2927
  D.LINRGB_FROM_SCALED_DISCOUNT
2928
2928
  );
2929
2929
  if (A[0] < 0 || A[1] < 0 || A[2] < 0)
2930
2930
  return 0;
2931
- const j = D.Y_FROM_LINRGB[0], Q = D.Y_FROM_LINRGB[1], W = D.Y_FROM_LINRGB[2], _ = j * A[0] + Q * A[1] + W * A[2];
2932
- if (_ <= 0)
2931
+ const j = D.Y_FROM_LINRGB[0], Q = D.Y_FROM_LINRGB[1], W = D.Y_FROM_LINRGB[2], H = j * A[0] + Q * A[1] + W * A[2];
2932
+ if (H <= 0)
2933
2933
  return 0;
2934
- if (h === 4 || Math.abs(_ - n) < 2e-3)
2934
+ if (h === 4 || Math.abs(H - n) < 2e-3)
2935
2935
  return A[0] > 100.01 || A[1] > 100.01 || A[2] > 100.01 ? 0 : Rt(A);
2936
- o = o - (_ - n) * o / (2 * _);
2936
+ o = o - (H - n) * o / (2 * H);
2937
2937
  }
2938
2938
  return 0;
2939
2939
  }
@@ -3328,7 +3328,7 @@ class w {
3328
3328
  return w.from(
3329
3329
  o.hue,
3330
3330
  o.chroma,
3331
- Ht(n[1])
3331
+ _t(n[1])
3332
3332
  );
3333
3333
  }
3334
3334
  setInternalState(t) {
@@ -3378,7 +3378,7 @@ class at {
3378
3378
  function y(e) {
3379
3379
  return e === 1.5 ? new at(1.5, 1.5, 3, 4.5) : e === 3 ? new at(3, 3, 4.5, 7) : e === 4.5 ? new at(4.5, 4.5, 7, 11) : e === 6 ? new at(6, 6, 7, 11) : e === 7 ? new at(7, 7, 11, 21) : e === 9 ? new at(9, 9, 11, 21) : e === 11 ? new at(11, 11, 21, 21) : e === 21 ? new at(21, 21, 21, 21) : new at(e, e, 7, 21);
3380
3380
  }
3381
- function $(e, t = 0, r = 100, n = 1) {
3381
+ function S(e, t = 0, r = 100, n = 1) {
3382
3382
  const o = je(
3383
3383
  e.hue,
3384
3384
  e.chroma * n,
@@ -3670,7 +3670,7 @@ class Tr {
3670
3670
  }
3671
3671
  adjustedTone({ context: t, color: r }) {
3672
3672
  const n = this.roleA, o = this.roleB, a = this.polarity, i = this.constraint, c = a === "darker" || a === "relative_lighter" && t.isDark || a === "relative_darker" && !t.isDark ? -this.delta : this.delta, s = r.name === n.name, l = s ? n : o, u = s ? o : n;
3673
- if (!(l instanceof _t))
3673
+ if (!(l instanceof Ht))
3674
3674
  throw new Error("selfRole is not a ColorFromPalette");
3675
3675
  let h = l.options.tone;
3676
3676
  const f = u.getTone(), g = c * (s ? 1 : -1);
@@ -3682,7 +3682,7 @@ class Tr {
3682
3682
  0,
3683
3683
  100,
3684
3684
  N(f + g, f, h)
3685
- ) : i === "farther" && (g > 0 ? h = N(f + g, 100, h) : h = N(0, f + g, h)), r instanceof _t) {
3685
+ ) : i === "farther" && (g > 0 ? h = N(f + g, 100, h) : h = N(0, f + g, h)), r instanceof Ht) {
3686
3686
  if (r.options.background && r.options.contrastCurve) {
3687
3687
  const p = r.options.background, m = r.options.contrastCurve;
3688
3688
  if (p && m) {
@@ -3726,7 +3726,7 @@ class ie {
3726
3726
  return this.getHct().tone;
3727
3727
  }
3728
3728
  }
3729
- class $r extends ie {
3729
+ class Sr extends ie {
3730
3730
  constructor(t, r, n) {
3731
3731
  super(t), this.as = r, this.colorService = n;
3732
3732
  }
@@ -3737,7 +3737,7 @@ class $r extends ie {
3737
3737
  return this.colorService.get(this.as);
3738
3738
  }
3739
3739
  }
3740
- class Sr extends ie {
3740
+ class $r extends ie {
3741
3741
  constructor(t, r) {
3742
3742
  super(t), this._hex = r, this._hex = r;
3743
3743
  }
@@ -3751,7 +3751,7 @@ class Sr extends ie {
3751
3751
  this._hex = t;
3752
3752
  }
3753
3753
  }
3754
- class _t extends ie {
3754
+ class Ht extends ie {
3755
3755
  constructor(t, r, n) {
3756
3756
  super(t), this._options = r, this.context = n, this.validateOption();
3757
3757
  }
@@ -3901,7 +3901,7 @@ const z = (e, t) => (t instanceof se, e.isDark ? t.get("surfaceBright") : t.get(
3901
3901
  },
3902
3902
  onSurface: {
3903
3903
  palette: () => r.get("neutral"),
3904
- tone: () => t.variant.name === "vibrant" ? $(r.get("neutral"), 0, 100, 1.1) : ae(z(t, e)),
3904
+ tone: () => t.variant.name === "vibrant" ? S(r.get("neutral"), 0, 100, 1.1) : ae(z(t, e)),
3905
3905
  chromaMultiplier: () => t.variant.name === "neutral" ? 2.2 : t.variant.name === "tonalSpot" ? 1.7 : t.variant.name === "expressive" ? w.isYellow(r.get("neutral").hue) ? t.isDark ? 3 : 2.3 : 1.6 : 1,
3906
3906
  background: () => z(t, e),
3907
3907
  contrastCurve: () => t.isDark ? y(11) : y(9)
@@ -3940,11 +3940,11 @@ const z = (e, t) => (t instanceof se, e.isDark ? t.get("surfaceBright") : t.get(
3940
3940
  ////////////////////////////////////////////////////////////////
3941
3941
  primary: {
3942
3942
  palette: () => r.get("primary"),
3943
- tone: () => t.variant.name === "neutral" ? t.isDark ? 80 : 40 : t.variant.name === "tonalSpot" ? t.isDark ? 80 : $(r.get("primary")) : t.variant.name === "expressive" ? $(
3943
+ tone: () => t.variant.name === "neutral" ? t.isDark ? 80 : 40 : t.variant.name === "tonalSpot" ? t.isDark ? 80 : S(r.get("primary")) : t.variant.name === "expressive" ? S(
3944
3944
  r.get("primary"),
3945
3945
  0,
3946
3946
  w.isYellow(r.get("primary").hue) ? 25 : w.isCyan(r.get("primary").hue) ? 88 : 98
3947
- ) : $(
3947
+ ) : S(
3948
3948
  r.get("primary"),
3949
3949
  0,
3950
3950
  w.isCyan(r.get("primary").hue) ? 88 : 98
@@ -3963,7 +3963,7 @@ const z = (e, t) => (t instanceof se, e.isDark ? t.get("surfaceBright") : t.get(
3963
3963
  },
3964
3964
  primaryDim: {
3965
3965
  palette: () => r.get("primary"),
3966
- tone: () => t.variant.name === "neutral" ? 85 : t.variant.name === "tonalSpot" ? $(r.get("primary"), 0, 90) : $(r.get("primary")),
3966
+ tone: () => t.variant.name === "neutral" ? 85 : t.variant.name === "tonalSpot" ? S(r.get("primary"), 0, 90) : S(r.get("primary")),
3967
3967
  isBackground: !0,
3968
3968
  background: () => n("surfaceContainerHigh"),
3969
3969
  contrastCurve: () => y(4.5),
@@ -3983,11 +3983,11 @@ const z = (e, t) => (t instanceof se, e.isDark ? t.get("surfaceBright") : t.get(
3983
3983
  },
3984
3984
  primaryContainer: {
3985
3985
  palette: () => r.get("primary"),
3986
- tone: () => t.variant.name === "neutral" ? t.isDark ? 30 : 90 : t.variant.name === "tonalSpot" ? t.isDark ? q(r.get("primary"), 35, 93) : $(r.get("primary"), 0, 90) : t.variant.name === "expressive" ? t.isDark ? $(r.get("primary"), 30, 93) : $(
3986
+ tone: () => t.variant.name === "neutral" ? t.isDark ? 30 : 90 : t.variant.name === "tonalSpot" ? t.isDark ? q(r.get("primary"), 35, 93) : S(r.get("primary"), 0, 90) : t.variant.name === "expressive" ? t.isDark ? S(r.get("primary"), 30, 93) : S(
3987
3987
  r.get("primary"),
3988
3988
  78,
3989
3989
  w.isCyan(r.get("primary").hue) ? 88 : 90
3990
- ) : t.isDark ? q(r.get("primary"), 66, 93) : $(
3990
+ ) : t.isDark ? q(r.get("primary"), 66, 93) : S(
3991
3991
  r.get("primary"),
3992
3992
  66,
3993
3993
  w.isCyan(r.get("primary").hue) ? 88 : 93
@@ -4039,7 +4039,7 @@ const z = (e, t) => (t instanceof se, e.isDark ? t.get("surfaceBright") : t.get(
4039
4039
  },
4040
4040
  inversePrimary: {
4041
4041
  palette: () => r.get("primary"),
4042
- tone: () => $(r.get("primary")),
4042
+ tone: () => S(r.get("primary")),
4043
4043
  background: () => e.get("inverseSurface"),
4044
4044
  contrastCurve: () => y(6)
4045
4045
  },
@@ -4048,7 +4048,7 @@ const z = (e, t) => (t instanceof se, e.isDark ? t.get("surfaceBright") : t.get(
4048
4048
  ////////////////////////////////////////////////////////////////
4049
4049
  secondary: {
4050
4050
  palette: () => r.get("secondary"),
4051
- tone: () => t.variant.name === "neutral" ? t.isDark ? q(r.get("secondary"), 0, 98) : $(r.get("secondary")) : t.variant.name === "vibrant" ? $(r.get("secondary"), 0, t.isDark ? 90 : 98) : t.isDark ? 80 : $(r.get("secondary")),
4051
+ tone: () => t.variant.name === "neutral" ? t.isDark ? q(r.get("secondary"), 0, 98) : S(r.get("secondary")) : t.variant.name === "vibrant" ? S(r.get("secondary"), 0, t.isDark ? 90 : 98) : t.isDark ? 80 : S(r.get("secondary")),
4052
4052
  isBackground: !0,
4053
4053
  background: () => z(t, e),
4054
4054
  contrastCurve: () => y(4.5),
@@ -4063,7 +4063,7 @@ const z = (e, t) => (t instanceof se, e.isDark ? t.get("surfaceBright") : t.get(
4063
4063
  },
4064
4064
  secondaryDim: {
4065
4065
  palette: () => r.get("secondary"),
4066
- tone: () => t.variant.name === "neutral" ? 85 : $(r.get("secondary"), 0, 90),
4066
+ tone: () => t.variant.name === "neutral" ? 85 : S(r.get("secondary"), 0, 90),
4067
4067
  isBackground: !0,
4068
4068
  background: () => n("surfaceContainerHigh"),
4069
4069
  contrastCurve: () => y(4.5),
@@ -4083,7 +4083,7 @@ const z = (e, t) => (t instanceof se, e.isDark ? t.get("surfaceBright") : t.get(
4083
4083
  },
4084
4084
  secondaryContainer: {
4085
4085
  palette: () => r.get("secondary"),
4086
- tone: () => t.variant.name === "vibrant" ? t.isDark ? q(r.get("secondary"), 30, 40) : $(r.get("secondary"), 84, 90) : t.variant.name === "expressive" ? t.isDark ? 15 : $(r.get("secondary"), 90, 95) : t.isDark ? 25 : 90,
4086
+ tone: () => t.variant.name === "vibrant" ? t.isDark ? q(r.get("secondary"), 30, 40) : S(r.get("secondary"), 84, 90) : t.variant.name === "expressive" ? t.isDark ? 15 : S(r.get("secondary"), 90, 95) : t.isDark ? 25 : 90,
4087
4087
  isBackground: !0,
4088
4088
  background: () => z(t, e),
4089
4089
  adjustTone: () => {
@@ -4136,11 +4136,11 @@ const z = (e, t) => (t instanceof se, e.isDark ? t.get("surfaceBright") : t.get(
4136
4136
  ////////////////////////////////////////////////////////////////
4137
4137
  tertiary: {
4138
4138
  palette: () => r.get("tertiary"),
4139
- tone: () => t.variant.name === "expressive" || t.variant.name === "vibrant" ? $(
4139
+ tone: () => t.variant.name === "expressive" || t.variant.name === "vibrant" ? S(
4140
4140
  r.get("tertiary"),
4141
4141
  0,
4142
4142
  w.isCyan(r.get("tertiary").hue) ? 88 : t.isDark ? 98 : 100
4143
- ) : t.isDark ? $(r.get("tertiary"), 0, 98) : $(r.get("tertiary")),
4143
+ ) : t.isDark ? S(r.get("tertiary"), 0, 98) : S(r.get("tertiary")),
4144
4144
  isBackground: !0,
4145
4145
  background: () => z(t, e),
4146
4146
  contrastCurve: () => y(4.5),
@@ -4155,7 +4155,7 @@ const z = (e, t) => (t instanceof se, e.isDark ? t.get("surfaceBright") : t.get(
4155
4155
  },
4156
4156
  tertiaryDim: {
4157
4157
  palette: () => r.get("tertiary"),
4158
- tone: () => t.variant.name === "tonalSpot" ? $(r.get("tertiary"), 0, 90) : $(r.get("tertiary")),
4158
+ tone: () => t.variant.name === "tonalSpot" ? S(r.get("tertiary"), 0, 90) : S(r.get("tertiary")),
4159
4159
  isBackground: !0,
4160
4160
  background: () => n("surfaceContainerHigh"),
4161
4161
  contrastCurve: () => y(4.5),
@@ -4175,11 +4175,11 @@ const z = (e, t) => (t instanceof se, e.isDark ? t.get("surfaceBright") : t.get(
4175
4175
  },
4176
4176
  tertiaryContainer: {
4177
4177
  palette: () => r.get("tertiary"),
4178
- tone: () => t.variant.name === "neutral" ? t.isDark ? $(r.get("tertiary"), 0, 93) : $(r.get("tertiary"), 0, 96) : t.variant.name === "tonalSpot" ? $(r.get("tertiary"), 0, t.isDark ? 93 : 100) : t.variant.name === "expressive" ? $(
4178
+ tone: () => t.variant.name === "neutral" ? t.isDark ? S(r.get("tertiary"), 0, 93) : S(r.get("tertiary"), 0, 96) : t.variant.name === "tonalSpot" ? S(r.get("tertiary"), 0, t.isDark ? 93 : 100) : t.variant.name === "expressive" ? S(
4179
4179
  r.get("tertiary"),
4180
4180
  75,
4181
4181
  w.isCyan(r.get("tertiary").hue) ? 88 : t.isDark ? 93 : 100
4182
- ) : t.isDark ? $(r.get("tertiary"), 0, 93) : $(r.get("tertiary"), 72, 100),
4182
+ ) : t.isDark ? S(r.get("tertiary"), 0, 93) : S(r.get("tertiary"), 72, 100),
4183
4183
  isBackground: !0,
4184
4184
  background: () => z(t, e),
4185
4185
  adjustTone: () => {
@@ -4232,7 +4232,7 @@ const z = (e, t) => (t instanceof se, e.isDark ? t.get("surfaceBright") : t.get(
4232
4232
  ////////////////////////////////////////////////////////////////
4233
4233
  error: {
4234
4234
  palette: () => r.get("error"),
4235
- tone: () => t.isDark ? q(r.get("error"), 0, 98) : $(r.get("error")),
4235
+ tone: () => t.isDark ? q(r.get("error"), 0, 98) : S(r.get("error")),
4236
4236
  isBackground: !0,
4237
4237
  background: () => z(t, e),
4238
4238
  contrastCurve: () => y(4.5),
@@ -4267,7 +4267,7 @@ const z = (e, t) => (t instanceof se, e.isDark ? t.get("surfaceBright") : t.get(
4267
4267
  },
4268
4268
  errorContainer: {
4269
4269
  palette: () => r.get("error"),
4270
- tone: () => t.isDark ? q(r.get("error"), 30, 93) : $(r.get("error"), 0, 90),
4270
+ tone: () => t.isDark ? q(r.get("error"), 30, 93) : S(r.get("error"), 0, 90),
4271
4271
  isBackground: !0,
4272
4272
  background: () => z(t, e),
4273
4273
  adjustTone: () => {
@@ -4296,7 +4296,7 @@ const z = (e, t) => (t instanceof se, e.isDark ? t.get("surfaceBright") : t.get(
4296
4296
  }
4297
4297
  };
4298
4298
  };
4299
- function He(e) {
4299
+ function _e(e) {
4300
4300
  return e.charAt(0).toUpperCase() + e.slice(1);
4301
4301
  }
4302
4302
  class se {
@@ -4335,10 +4335,10 @@ class se {
4335
4335
  addFromCustomPalette(t) {
4336
4336
  if (this.context.variant.colorsFromCustomPalette)
4337
4337
  return this.addColors(this.context.variant.colorsFromCustomPalette(t));
4338
- const r = t, n = r + "Dim", o = He(t), a = "on" + o, i = r + "Container", c = "on" + o + "Container", s = r + "Fixed", l = r + "FixedDim", u = "on" + o + "Fixed", h = "on" + o + "FixedVariant", f = ({ palettes: g, colors: p, context: m }) => ({
4338
+ const r = t, n = r + "Dim", o = _e(t), a = "on" + o, i = r + "Container", c = "on" + o + "Container", s = r + "Fixed", l = r + "FixedDim", u = "on" + o + "Fixed", h = "on" + o + "FixedVariant", f = ({ palettes: g, colors: p, context: m }) => ({
4339
4339
  [r]: {
4340
4340
  palette: () => g.get(r),
4341
- tone: () => m.variant.name === "neutral" ? m.isDark ? q(g.get(r), 0, 98) : $(g.get(r)) : m.variant.name === "vibrant" ? $(g.get(r), 0, m.isDark ? 90 : 98) : m.isDark ? 80 : $(g.get(r)),
4341
+ tone: () => m.variant.name === "neutral" ? m.isDark ? q(g.get(r), 0, 98) : S(g.get(r)) : m.variant.name === "vibrant" ? S(g.get(r), 0, m.isDark ? 90 : 98) : m.isDark ? 80 : S(g.get(r)),
4342
4342
  isBackground: !0,
4343
4343
  background: () => z(m, this),
4344
4344
  contrastCurve: () => y(4.5),
@@ -4353,7 +4353,7 @@ class se {
4353
4353
  },
4354
4354
  [n]: {
4355
4355
  palette: () => g.get(r),
4356
- tone: () => m.variant.name === "neutral" ? 85 : $(g.get(r), 0, 90),
4356
+ tone: () => m.variant.name === "neutral" ? 85 : S(g.get(r), 0, 90),
4357
4357
  isBackground: !0,
4358
4358
  background: () => this.get("surfaceContainerHigh"),
4359
4359
  contrastCurve: () => y(4.5),
@@ -4373,7 +4373,7 @@ class se {
4373
4373
  },
4374
4374
  [i]: {
4375
4375
  palette: () => g.get(r),
4376
- tone: () => m.variant.name === "vibrant" ? m.isDark ? q(g.get(r), 30, 40) : $(g.get(r), 84, 90) : m.variant.name === "expressive" ? m.isDark ? 15 : $(g.get(r), 90, 95) : m.isDark ? 25 : 90,
4376
+ tone: () => m.variant.name === "vibrant" ? m.isDark ? q(g.get(r), 30, 40) : S(g.get(r), 84, 90) : m.variant.name === "expressive" ? m.isDark ? 15 : S(g.get(r), 90, 95) : m.isDark ? 25 : 90,
4377
4377
  isBackground: !0,
4378
4378
  background: () => z(m, this),
4379
4379
  adjustTone: () => {
@@ -4426,12 +4426,12 @@ class Fr {
4426
4426
  createOrUpdate(t, r) {
4427
4427
  let n = this.colorMap.get(t);
4428
4428
  if ("alias" in r)
4429
- n = new $r(t, r.alias, this);
4429
+ n = new Sr(t, r.alias, this);
4430
4430
  else if ("hex" in r)
4431
- n = new Sr(t, r.hex);
4431
+ n = new $r(t, r.hex);
4432
4432
  else
4433
4433
  try {
4434
- n instanceof _t ? n.update(r) : n = new _t(t, r, this.context);
4434
+ n instanceof Ht ? n.update(r) : n = new Ht(t, r, this.context);
4435
4435
  } catch (o) {
4436
4436
  throw console.error(o), new Error(`Invalid color options provided for ${t}`);
4437
4437
  }
@@ -4750,7 +4750,7 @@ const Rr = {
4750
4750
  paletteManager: dt(Er).scoped()
4751
4751
  };
4752
4752
  let qt = null;
4753
- const _e = (e) => {
4753
+ const He = (e) => {
4754
4754
  if (!(e != null && e.fresh) && qt)
4755
4755
  return qt;
4756
4756
  const t = Ae({
@@ -4761,7 +4761,7 @@ const _e = (e) => {
4761
4761
  Object.entries(o).forEach(([a, i]) => {
4762
4762
  t.register(a, i);
4763
4763
  });
4764
- }), _e;
4764
+ }), He;
4765
4765
  }
4766
4766
  return r(
4767
4767
  Ir,
@@ -4772,7 +4772,7 @@ const _e = (e) => {
4772
4772
  ), qt = t, t;
4773
4773
  };
4774
4774
  function jr() {
4775
- return _e().resolve("api");
4775
+ return He().resolve("api");
4776
4776
  }
4777
4777
  const kt = (e, t, r) => {
4778
4778
  const n = Math.min(t.length - 1, r.length), o = e.hue;
@@ -4784,7 +4784,7 @@ const kt = (e, t, r) => {
4784
4784
  let n = kt(e, t, r);
4785
4785
  return Math.min(t.length - 1, r.length) <= 0 && (n = 0), Nt(e.hue + n);
4786
4786
  };
4787
- class Hr {
4787
+ class _r {
4788
4788
  constructor(t) {
4789
4789
  L(this, "_palettes"), L(this, "customPalettes"), L(this, "colorsFromCustomPalette"), L(this, "colors"), L(this, "name"), L(this, "context"), this.options = t, this.customPalettes = t.customPalettes, this.colors = t.colors || {}, this.name = t.name, this.colorsFromCustomPalette = t.colorsFromCustomPalette;
4790
4790
  }
@@ -4803,14 +4803,14 @@ class Hr {
4803
4803
  ));
4804
4804
  }
4805
4805
  }
4806
- const Dt = (e) => new Hr(e), Jt = (e) => rt(
4806
+ const Dt = (e) => new _r(e), Jt = (e) => rt(
4807
4807
  e,
4808
4808
  [0, 71, 124, 253, 278, 300, 360],
4809
4809
  [10, 0, 10, 0, 10, 0]
4810
4810
  ), ge = (e, t) => {
4811
4811
  const r = Jt(e);
4812
4812
  return t ? w.isYellow(r) ? 6 : 14 : 18;
4813
- }, _r = Dt({
4813
+ }, Hr = Dt({
4814
4814
  name: "expressive",
4815
4815
  palettes: {
4816
4816
  primary: ({ sourceColor: e, isDark: t }) => ({
@@ -5038,7 +5038,7 @@ const Dt = (e) => new Hr(e), Jt = (e) => rt(
5038
5038
  chroma: e.chroma
5039
5039
  }),
5040
5040
  colorsFromCustomPalette: (e) => {
5041
- const t = e, r = He(e), n = "on" + r, o = t + "Container", a = "on" + r + "Container";
5041
+ const t = e, r = _e(e), n = "on" + r, o = t + "Container", a = "on" + r + "Container";
5042
5042
  return ({ palettes: c, colors: s, context: l }) => ({
5043
5043
  [t]: {
5044
5044
  palette: () => c.get(t),
@@ -5085,7 +5085,7 @@ const Dt = (e) => new Hr(e), Jt = (e) => rt(
5085
5085
  },
5086
5086
  [o]: {
5087
5087
  palette: () => c.get(t),
5088
- tone: () => l.isDark ? q(c.get(t), 35, 93) : $(c.get(t), 0, 90),
5088
+ tone: () => l.isDark ? q(c.get(t), 35, 93) : S(c.get(t), 0, 90),
5089
5089
  isBackground: !0,
5090
5090
  background: () => J(l, s),
5091
5091
  adjustTone: () => V(
@@ -5274,7 +5274,7 @@ const Dt = (e) => new Hr(e), Jt = (e) => rt(
5274
5274
  },
5275
5275
  primaryContainer: {
5276
5276
  palette: () => r.get("primary"),
5277
- tone: () => t.isDark ? q(r.get("primary"), 35, 93) : $(r.get("primary"), 0, 90),
5277
+ tone: () => t.isDark ? q(r.get("primary"), 35, 93) : S(r.get("primary"), 0, 90),
5278
5278
  isBackground: !0,
5279
5279
  background: () => J(t, e),
5280
5280
  adjustTone: () => V(
@@ -5336,7 +5336,7 @@ const Dt = (e) => new Hr(e), Jt = (e) => rt(
5336
5336
  // },
5337
5337
  inversePrimary: {
5338
5338
  palette: () => r.get("primary"),
5339
- tone: () => $(r.get("primary")),
5339
+ tone: () => S(r.get("primary")),
5340
5340
  background: () => e.get("inverseSurface"),
5341
5341
  contrastCurve: () => y(6)
5342
5342
  },
@@ -5388,7 +5388,7 @@ const Dt = (e) => new Hr(e), Jt = (e) => rt(
5388
5388
  },
5389
5389
  secondaryContainer: {
5390
5390
  palette: () => r.get("secondary"),
5391
- tone: () => t.isDark ? q(r.get("secondary"), 35, 93) : $(r.get("secondary"), 0, 90),
5391
+ tone: () => t.isDark ? q(r.get("secondary"), 35, 93) : S(r.get("secondary"), 0, 90),
5392
5392
  isBackground: !0,
5393
5393
  background: () => J(t, e),
5394
5394
  adjustTone: () => V(
@@ -5499,7 +5499,7 @@ const Dt = (e) => new Hr(e), Jt = (e) => rt(
5499
5499
  },
5500
5500
  tertiaryContainer: {
5501
5501
  palette: () => r.get("tertiary"),
5502
- tone: () => $(r.get("tertiary"), 0, t.isDark ? 93 : 100),
5502
+ tone: () => S(r.get("tertiary"), 0, t.isDark ? 93 : 100),
5503
5503
  isBackground: !0,
5504
5504
  background: () => J(t, e),
5505
5505
  adjustTone: () => V(
@@ -5564,7 +5564,7 @@ const Dt = (e) => new Hr(e), Jt = (e) => rt(
5564
5564
  ////////////////////////////////////////////////////////////////
5565
5565
  error: {
5566
5566
  palette: () => r.get("error"),
5567
- tone: () => t.isDark ? q(r.get("error"), 0, 98) : $(r.get("error")),
5567
+ tone: () => t.isDark ? q(r.get("error"), 0, 98) : S(r.get("error")),
5568
5568
  isBackground: !0,
5569
5569
  background: () => J(t, e),
5570
5570
  contrastCurve: () => y(4.5),
@@ -5600,7 +5600,7 @@ const Dt = (e) => new Hr(e), Jt = (e) => rt(
5600
5600
  },
5601
5601
  errorContainer: {
5602
5602
  palette: () => r.get("error"),
5603
- tone: () => t.isDark ? q(r.get("error"), 30, 93) : $(r.get("error"), 0, 90),
5603
+ tone: () => t.isDark ? q(r.get("error"), 30, 93) : S(r.get("error"), 0, 90),
5604
5604
  isBackground: !0,
5605
5605
  background: () => J(t, e),
5606
5606
  adjustTone: () => {
@@ -5630,7 +5630,7 @@ const Dt = (e) => new Hr(e), Jt = (e) => rt(
5630
5630
  };
5631
5631
  }
5632
5632
  }), Zt = {
5633
- Expressive: _r,
5633
+ Expressive: Hr,
5634
5634
  Neutral: Nr,
5635
5635
  TonalSpot: zr,
5636
5636
  Vibrant: Vr,
@@ -5669,6 +5669,14 @@ class Ne {
5669
5669
  constructor(t) {
5670
5670
  mt(this, "options"), mt(this, "pluginInstance"), this.options = t;
5671
5671
  }
5672
+ toSerializable() {
5673
+ return JSON.parse(
5674
+ JSON.stringify(
5675
+ this.options,
5676
+ (t, r) => typeof r == "function" ? void 0 : r
5677
+ )
5678
+ );
5679
+ }
5672
5680
  init(t) {
5673
5681
  var r, n;
5674
5682
  return this.pluginInstance = new this.pluginClass(t, this.options), (n = (r = this.pluginInstance).onInit) == null || n.call(r), this;
@@ -5860,7 +5868,7 @@ Ve.withOptions = function(e, t = () => ({})) {
5860
5868
  }
5861
5869
  return r.__isOptionsFunction = !0, r;
5862
5870
  };
5863
- var $t = Ve;
5871
+ var St = Ve;
5864
5872
  function Xr(e) {
5865
5873
  return e ? e.toLowerCase() : "";
5866
5874
  }
@@ -5941,7 +5949,7 @@ const nn = ({
5941
5949
  }
5942
5950
  );
5943
5951
  }), s == null || s({ variableName: l, name: a, dependencies: h });
5944
- }, on = $t.withOptions(
5952
+ }, on = St.withOptions(
5945
5953
  ({ prefix: e = "anim" }) => ({ addBase: t, matchUtilities: r, addUtilities: n, theme: o }) => {
5946
5954
  const a = /* @__PURE__ */ new Set(), i = nn({
5947
5955
  addBase: t,
@@ -6279,7 +6287,7 @@ const nn = ({
6279
6287
  }
6280
6288
  });
6281
6289
  }
6282
- ), an = $t.withOptions((e) => ({
6290
+ ), an = St.withOptions((e) => ({
6283
6291
  addUtilities: t,
6284
6292
  theme: r
6285
6293
  }) => {
@@ -6323,7 +6331,7 @@ const nn = ({
6323
6331
  transition: {
6324
6332
  duration: 150
6325
6333
  }
6326
- }, sn = $t.withOptions(({ colorKeys: e }) => {
6334
+ }, sn = St.withOptions(({ colorKeys: e }) => {
6327
6335
  const t = {
6328
6336
  disabledStyles: {
6329
6337
  ...Ce.disabledStyles
@@ -6396,7 +6404,7 @@ const nn = ({
6396
6404
  }
6397
6405
  );
6398
6406
  };
6399
- }), cn = $t(
6407
+ }), cn = St(
6400
6408
  ({ addUtilities: e }) => {
6401
6409
  e({
6402
6410
  ".shadow": {
@@ -6420,7 +6428,7 @@ const nn = ({
6420
6428
  });
6421
6429
  }
6422
6430
  );
6423
- $t.withOptions((e) => {
6431
+ St.withOptions((e) => {
6424
6432
  const t = e, r = {};
6425
6433
  t.fontStyles.forEach((s) => {
6426
6434
  const [l, ...u] = s.split(" "), [h, f] = l.split("-");