shaders 2.2.12 → 2.2.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/dist/core/{AngularBlur-BTUdXC0g.js → AngularBlur-ClvtyURQ.js} +12 -13
  2. package/dist/core/{Ascii-Bu8ii7oo.js → Ascii-BT0-K_vw.js} +28 -29
  3. package/dist/core/{Blob-C0G0efjG.js → Blob-BlQ_1T_8.js} +12 -13
  4. package/dist/core/{Blur-BzUO9yxF.js → Blur-421AjWLH.js} +8 -9
  5. package/dist/core/{Bulge-BCXYAzig.js → Bulge-CZRVoR6C.js} +6 -7
  6. package/dist/core/{CRTScreen-cJ3XHrI9.js → CRTScreen-C_U9g_IR.js} +8 -9
  7. package/dist/core/{ChannelBlur-BEK1qzGn.js → ChannelBlur-5pzcB6Zv.js} +4 -5
  8. package/dist/core/{Checkerboard-BPkiSF5I.js → Checkerboard-CrQkqXhD.js} +10 -11
  9. package/dist/core/{ChromaFlow-AHO3C4o3.js → ChromaFlow-CNrQdL8f.js} +16 -17
  10. package/dist/core/{ChromaticAberration-nVg3r1FK.js → ChromaticAberration-D9H7O17Y.js} +6 -7
  11. package/dist/core/{Circle-C8ltF4BZ.js → Circle-DnLaDn8V.js} +7 -8
  12. package/dist/core/{CursorTrail-BeJGeovB.js → CursorTrail-NY6n97VG.js} +19 -20
  13. package/dist/core/{DiffuseBlur-Dq_vFrB1.js → DiffuseBlur-C_n01ABk.js} +11 -12
  14. package/dist/core/{Dither-CpN3vGSh.js → Dither-4s-c4zh4.js} +6 -7
  15. package/dist/core/{DotGrid-BFUzeSQw.js → DotGrid-BYl8XdMi.js} +9 -10
  16. package/dist/core/{Duotone-_nR_o3-g.js → Duotone-DbewOoB4.js} +12 -13
  17. package/dist/core/{FilmGrain-BAKXXtLg.js → FilmGrain-zA_-knOw.js} +7 -8
  18. package/dist/core/{FloatingParticles-Fv8JIzKk.js → FloatingParticles-BhVnqMsE.js} +22 -23
  19. package/dist/core/{GlassTiles-5MyBj1ff.js → GlassTiles-CFI57glh.js} +7 -8
  20. package/dist/core/{Glow-DvJj7BB7.js → Glow-CQgl3IoS.js} +10 -11
  21. package/dist/core/{Godrays-D3VnYrAm.js → Godrays-BBCtZxbv.js} +18 -19
  22. package/dist/core/{Grayscale-oWIF3PV5.js → Grayscale-CAEFLteL.js} +9 -10
  23. package/dist/core/{Grid-Bov7AA9m.js → Grid-DlM-rVbZ.js} +5 -6
  24. package/dist/core/{GridDistortion-CWYom5Dw.js → GridDistortion-ZOZphSAT.js} +29 -30
  25. package/dist/core/{Group-CPk-7fiA.js → Group-BQAs3RiH.js} +7 -8
  26. package/dist/core/{Halftone-F7fsdu7W.js → Halftone-ci4ga-_J.js} +8 -9
  27. package/dist/core/{HueShift-CiS4hdtk.js → HueShift-CyxzPcJV.js} +11 -12
  28. package/dist/core/{ImageTexture-B3Q29OHX.js → ImageTexture-CdAGsPuH.js} +18 -20
  29. package/dist/core/{Invert-Cyc4JHWc.js → Invert-iPsiIqNZ.js} +7 -8
  30. package/dist/core/{LinearBlur-BTC54qzk.js → LinearBlur-BEaaoIk-.js} +13 -14
  31. package/dist/core/{LinearGradient-LEMeW0KM.js → LinearGradient-DR_7RxLX.js} +10 -11
  32. package/dist/core/{Liquify-D2nzMDzq.js → Liquify-Bi02_ugh.js} +33 -34
  33. package/dist/core/{Pixelate-irPzmtQm.js → Pixelate-CSsdT1rr.js} +4 -5
  34. package/dist/core/{PolarCoordinates-Ck5ZWrQO.js → PolarCoordinates-D626ml58.js} +10 -11
  35. package/dist/core/{Posterize-DICq_t96.js → Posterize-DhZkMaC7.js} +8 -10
  36. package/dist/core/{ProgressiveBlur-BuORe3VH.js → ProgressiveBlur-CGtCfLF8.js} +16 -17
  37. package/dist/core/{RadialGradient-D0cN67jm.js → RadialGradient-C0_WzmbH.js} +13 -14
  38. package/dist/core/{RectangularCoordinates-1LIDaeHR.js → RectangularCoordinates-DfXw7fhI.js} +6 -7
  39. package/dist/core/{Ripples-DH71sFJc.js → Ripples-DkemN3eh.js} +12 -12
  40. package/dist/core/{Saturation-DbSXtSeK.js → Saturation-Dup81Pnq.js} +7 -8
  41. package/dist/core/{SimplexNoise-DPGC2OPJ.js → SimplexNoise-BYEiCjDj.js} +9 -9
  42. package/dist/core/{SineWave-CkWtnzHF.js → SineWave-C6MRPtsy.js} +9 -10
  43. package/dist/core/{SolidColor-DaB-FHNX.js → SolidColor-BZHRczgb.js} +1 -1
  44. package/dist/core/{Spherize-CqjZj4yV.js → Spherize-DOAnDx2l.js} +13 -14
  45. package/dist/core/{Spiral-BRrismPI.js → Spiral-BMjnWXh1.js} +11 -12
  46. package/dist/core/{Strands-DyrV6zDO.js → Strands-BOVsuJLe.js} +14 -15
  47. package/dist/core/{Stretch-DeBlJ-NH.js → Stretch-D6bHc6yp.js} +13 -14
  48. package/dist/core/{Swirl-PxpHzkdC.js → Swirl-BFoc0ImG.js} +14 -15
  49. package/dist/core/{TiltShift-DiArippe.js → TiltShift-BiNvvhzj.js} +14 -15
  50. package/dist/core/{Tritone-KtJgZviA.js → Tritone-gdx2AA0m.js} +9 -10
  51. package/dist/core/{Twirl-C6xj1p52.js → Twirl-BsV8YbqC.js} +8 -9
  52. package/dist/core/{Vibrance-C6lNgpWH.js → Vibrance-C182fbSw.js} +5 -6
  53. package/dist/core/{WaveDistortion-DcXxPZ2w.js → WaveDistortion-CmaS2zDB.js} +12 -13
  54. package/dist/core/{ZoomBlur-_feIVJs6.js → ZoomBlur-DLf5xQ16.js} +10 -11
  55. package/dist/core/colorMixing--dhzx0ch.js +21 -0
  56. package/dist/core/edges-CDzKsauJ.js +15 -0
  57. package/dist/core/index.js +636 -684
  58. package/dist/core/renderer.d.ts.map +1 -1
  59. package/dist/core/shaders/AngularBlur/index.js +3 -3
  60. package/dist/core/shaders/Ascii/index.js +2 -2
  61. package/dist/core/shaders/Blob/index.js +5 -5
  62. package/dist/core/shaders/Blur/index.js +2 -2
  63. package/dist/core/shaders/Bulge/index.js +4 -4
  64. package/dist/core/shaders/CRTScreen/index.js +2 -2
  65. package/dist/core/shaders/ChannelBlur/index.js +2 -2
  66. package/dist/core/shaders/Checkerboard/index.js +4 -4
  67. package/dist/core/shaders/ChromaFlow/index.js +3 -3
  68. package/dist/core/shaders/ChromaticAberration/index.js +3 -3
  69. package/dist/core/shaders/Circle/index.js +3 -3
  70. package/dist/core/shaders/CursorTrail/index.js +4 -4
  71. package/dist/core/shaders/DiffuseBlur/index.js +4 -4
  72. package/dist/core/shaders/Dither/index.js +3 -3
  73. package/dist/core/shaders/DotGrid/index.js +3 -3
  74. package/dist/core/shaders/Duotone/index.js +4 -4
  75. package/dist/core/shaders/FilmGrain/index.js +2 -2
  76. package/dist/core/shaders/FloatingParticles/index.js +3 -3
  77. package/dist/core/shaders/GlassTiles/index.js +2 -2
  78. package/dist/core/shaders/Glow/index.js +2 -2
  79. package/dist/core/shaders/Godrays/index.js +3 -3
  80. package/dist/core/shaders/Grayscale/index.js +2 -2
  81. package/dist/core/shaders/Grid/index.js +3 -3
  82. package/dist/core/shaders/GridDistortion/index.js +4 -4
  83. package/dist/core/shaders/Group/index.js +2 -2
  84. package/dist/core/shaders/Halftone/index.js +3 -3
  85. package/dist/core/shaders/HueShift/index.js +2 -2
  86. package/dist/core/shaders/ImageTexture/index.js +2 -2
  87. package/dist/core/shaders/Invert/index.js +2 -2
  88. package/dist/core/shaders/LinearBlur/index.js +3 -3
  89. package/dist/core/shaders/LinearGradient/index.js +4 -4
  90. package/dist/core/shaders/Liquify/index.js +4 -4
  91. package/dist/core/shaders/Pixelate/index.js +2 -2
  92. package/dist/core/shaders/PolarCoordinates/index.js +4 -4
  93. package/dist/core/shaders/Posterize/index.js +2 -2
  94. package/dist/core/shaders/ProgressiveBlur/index.js +3 -3
  95. package/dist/core/shaders/RadialGradient/index.js +4 -4
  96. package/dist/core/shaders/RectangularCoordinates/index.js +4 -4
  97. package/dist/core/shaders/Ripples/index.d.ts.map +1 -1
  98. package/dist/core/shaders/Ripples/index.js +7 -6
  99. package/dist/core/shaders/Saturation/index.js +2 -2
  100. package/dist/core/shaders/SimplexNoise/index.d.ts.map +1 -1
  101. package/dist/core/shaders/SimplexNoise/index.js +7 -6
  102. package/dist/core/shaders/SineWave/index.js +3 -3
  103. package/dist/core/shaders/SolidColor/index.js +3 -3
  104. package/dist/core/shaders/Spherize/index.js +3 -3
  105. package/dist/core/shaders/Spiral/index.js +4 -4
  106. package/dist/core/shaders/Strands/index.js +4 -4
  107. package/dist/core/shaders/Stretch/index.js +4 -4
  108. package/dist/core/shaders/Swirl/index.js +5 -5
  109. package/dist/core/shaders/TiltShift/index.js +3 -3
  110. package/dist/core/shaders/Tritone/index.js +4 -4
  111. package/dist/core/shaders/Twirl/index.js +4 -4
  112. package/dist/core/shaders/Vibrance/index.js +2 -2
  113. package/dist/core/shaders/WaveDistortion/index.js +4 -4
  114. package/dist/core/shaders/ZoomBlur/index.js +3 -3
  115. package/dist/core/three.tsl-Btj1hLsf.js +43845 -0
  116. package/dist/core/{time-5uQ65blS.js → time-DbRMw6Jm.js} +4 -5
  117. package/dist/core/{transformations-DBjTkQ5b.js → transformations-CsrIJXh-.js} +176 -177
  118. package/dist/core/utilities/colorMixing.d.ts.map +1 -1
  119. package/dist/react/index.cjs +83 -79
  120. package/dist/react/index.js +51221 -50954
  121. package/dist/svelte/index.js +50809 -50542
  122. package/dist/vue/index.js +50619 -50352
  123. package/package.json +1 -1
  124. package/dist/core/colorMixing-DPZ-Td4U.js +0 -22
  125. package/dist/core/edges-B-tVdqcI.js +0 -16
  126. package/dist/core/three.tsl-BqgDcRt9.js +0 -43424
@@ -1,5 +1,5 @@
1
- import { k as Ur, m as Kr } from "./three.tsl-BqgDcRt9.js";
2
- import { Vector2 as Vr, Vector4 as ea } from "three";
1
+ import { O as Ur } from "./three.tsl-Btj1hLsf.js";
2
+ import { Vector2 as Kr, Vector4 as Vr } from "three";
3
3
  function w(e, t) {
4
4
  let r = e.length;
5
5
  Array.isArray(e[0]) || (e = [e]), Array.isArray(t[0]) || (t = t.map((i) => [i]));
@@ -36,7 +36,7 @@ function ur(e, t) {
36
36
  const n = 10 ** (t - a);
37
37
  return Math.floor(e * n + 0.5) / n;
38
38
  }
39
- var ta = {
39
+ var ea = {
40
40
  deg: 1,
41
41
  grad: 0.9,
42
42
  rad: 180 / Math.PI,
@@ -53,7 +53,7 @@ function fr(e) {
53
53
  let c = l.match(a), u = l;
54
54
  if (c) {
55
55
  let f = c[0], h = u.slice(0, -f.length);
56
- f === "%" ? (u = /* @__PURE__ */ new Number(h / 100), u.type = "<percentage>") : (u = new Number(h * ta[f]), u.type = "<angle>", u.unit = f);
56
+ f === "%" ? (u = /* @__PURE__ */ new Number(h / 100), u.type = "<percentage>") : (u = new Number(h * ea[f]), u.type = "<angle>", u.unit = f);
57
57
  } else r.test(u) ? (u = new Number(u), u.type = "<number>") : u === "none" && (u = /* @__PURE__ */ new Number(NaN), u.none = !0);
58
58
  o.startsWith("/") && (u = u instanceof Number ? u : new Number(u), u.alpha = !0), typeof u == "object" && u instanceof Number && (u.raw = l), i.push(u);
59
59
  }), {
@@ -106,7 +106,7 @@ function gr(e, t, r = 0, a = e.length) {
106
106
  }
107
107
  return r;
108
108
  }
109
- var ra = /* @__PURE__ */ Object.freeze({
109
+ var ta = /* @__PURE__ */ Object.freeze({
110
110
  __proto__: null,
111
111
  bisectLeft: gr,
112
112
  clamp: mr,
@@ -126,7 +126,7 @@ var ra = /* @__PURE__ */ Object.freeze({
126
126
  toPrecision: ur,
127
127
  type: Y,
128
128
  zdiv: Ve
129
- }), aa = class {
129
+ }), ra = class {
130
130
  add(e, t, r) {
131
131
  if (typeof arguments[0] != "string") {
132
132
  for (var e in arguments[0]) this.add(e, arguments[0][e], arguments[1]);
@@ -141,7 +141,7 @@ var ra = /* @__PURE__ */ Object.freeze({
141
141
  r.call(t && t.context ? t.context : t, t);
142
142
  });
143
143
  }
144
- }, G = new aa(), E = {
144
+ }, G = new ra(), E = {
145
145
  gamut_mapping: "css",
146
146
  precision: 5,
147
147
  deltaE: "76",
@@ -208,7 +208,7 @@ function Le(e, t, r, a = {}) {
208
208
  ])), G.run("chromatic-adaptation-end", n), n.M) return w(n.M, n.XYZ);
209
209
  throw new TypeError("Only Bradford CAT with white points D50 and D65 supported for now.");
210
210
  }
211
- var na = /* @__PURE__ */ new Set([
211
+ var aa = /* @__PURE__ */ new Set([
212
212
  "<number>",
213
213
  "<percentage>",
214
214
  "<angle>"
@@ -216,7 +216,7 @@ var na = /* @__PURE__ */ new Set([
216
216
  function ht(e, t, r, a) {
217
217
  return Object.entries(e.coords).map(([n, s], i) => {
218
218
  let o = t.coordGrammar[i], l = a[i], c = l?.type, u;
219
- if (l.none ? u = o.find((m) => na.has(m)) : u = o.find((m) => m == c), !u) {
219
+ if (l.none ? u = o.find((m) => aa.has(m)) : u = o.find((m) => m == c), !u) {
220
220
  let m = s.name || n;
221
221
  throw new TypeError(`${c ?? l.raw} not allowed for ${m} in ${r}()`);
222
222
  }
@@ -286,7 +286,7 @@ function g(e) {
286
286
  let t = e.space || e.spaceId;
287
287
  return t instanceof d || (e.space = d.get(t)), e.alpha === void 0 && (e.alpha = 1), e;
288
288
  }
289
- var sa = 75e-6, d = class A {
289
+ var na = 75e-6, d = class A {
290
290
  constructor(t) {
291
291
  this.id = t.id, this.name = t.name, this.base = t.base ? A.get(t.base) : null, this.aliases = t.aliases, this.base && (this.fromBase = t.fromBase, this.toBase = t.toBase);
292
292
  let r = t.coords ?? this.base.coords;
@@ -300,13 +300,13 @@ var sa = 75e-6, d = class A {
300
300
  ...this.formats.color ?? {},
301
301
  id: t.cssId || this.id
302
302
  }), t.gamutSpace ? this.gamutSpace = t.gamutSpace === "self" ? this : A.get(t.gamutSpace) : this.isPolar ? this.gamutSpace = this.base : this.gamutSpace = this, this.gamutSpace.isUnbounded && (this.inGamut = (a, n) => !0), this.referred = t.referred, Object.defineProperty(this, "path", {
303
- value: ia(this).reverse(),
303
+ value: sa(this).reverse(),
304
304
  writable: !1,
305
305
  enumerable: !0,
306
306
  configurable: !0
307
307
  }), G.run("colorspace-init-end", this);
308
308
  }
309
- inGamut(t, { epsilon: r = sa } = {}) {
309
+ inGamut(t, { epsilon: r = na } = {}) {
310
310
  if (!this.equals(this.gamutSpace))
311
311
  return t = this.to(this.gamutSpace, t), this.gamutSpace.inGamut(t, { epsilon: r });
312
312
  let a = Object.values(this.coords);
@@ -439,7 +439,7 @@ var sa = 75e-6, d = class A {
439
439
  name: "color"
440
440
  };
441
441
  };
442
- function ia(e) {
442
+ function sa(e) {
443
443
  let t = [e];
444
444
  for (let r = e; r = r.base; ) t.push(r);
445
445
  return t;
@@ -537,7 +537,7 @@ var tt = new d({
537
537
  base: S,
538
538
  fromBase: (e) => Le(S.white, "D50", e),
539
539
  toBase: (e) => Le("D50", S.white, e)
540
- }), oa = 216 / 24389, mt = 24 / 116, pe = 24389 / 27, Ae = L.D50, x = new d({
540
+ }), ia = 216 / 24389, mt = 24 / 116, pe = 24389 / 27, Ae = L.D50, x = new d({
541
541
  id: "lab",
542
542
  name: "Lab",
543
543
  coords: {
@@ -551,7 +551,7 @@ var tt = new d({
551
551
  white: Ae,
552
552
  base: tt,
553
553
  fromBase(e) {
554
- let t = e.map((r, a) => r / Ae[a]).map((r) => r > oa ? Math.cbrt(r) : (pe * r + 16) / 116);
554
+ let t = e.map((r, a) => r / Ae[a]).map((r) => r > ia ? Math.cbrt(r) : (pe * r + 16) / 116);
555
555
  return [
556
556
  116 * t[1] - 16,
557
557
  500 * (t[0] - t[1]),
@@ -575,7 +575,7 @@ var tt = new d({
575
575
  function H(e) {
576
576
  return (e % 360 + 360) % 360;
577
577
  }
578
- function la(e, t) {
578
+ function oa(e, t) {
579
579
  if (e === "raw") return t;
580
580
  let [r, a] = t.map(H), n = a - r;
581
581
  return e === "increasing" ? n < 0 && (a += 360) : e === "decreasing" ? n > 0 && (r += 360) : e === "longer" ? -180 < n && n < 180 && (n > 0 ? r += 360 : a += 360) : e === "shorter" && (n > 180 ? r += 360 : n < -180 && (a += 360)), [r, a];
@@ -649,7 +649,7 @@ function br(e, t, { kL: r = 1, kC: a = 1, kH: n = 1 } = {}) {
649
649
  let ct = 1 + 0.015 * ze * se, Jr = 30 * Math.exp(-1 * ((D - 275) / 25) ** 2), Wr = 2 * Math.sqrt(lt / (lt + gt)), Qr = -1 * Math.sin(2 * Jr * W) * Wr, ge = (me / (r * Fr)) ** 2;
650
650
  return ge += (ae / (a * ft)) ** 2, ge += (ot / (n * ct)) ** 2, ge += Qr * (ae / (a * ft)) * (ot / (n * ct)), Math.sqrt(ge);
651
651
  }
652
- var ua = [
652
+ var la = [
653
653
  [
654
654
  0.819022437996703,
655
655
  0.3619062600528904,
@@ -665,7 +665,7 @@ var ua = [
665
665
  0.2642395317527308,
666
666
  0.6335478284694309
667
667
  ]
668
- ], fa = [
668
+ ], ua = [
669
669
  [
670
670
  1.2268798758459243,
671
671
  -0.5578149944602171,
@@ -681,7 +681,7 @@ var ua = [
681
681
  -0.4214933324022432,
682
682
  1.5869240198367816
683
683
  ]
684
- ], ca = [
684
+ ], fa = [
685
685
  [
686
686
  0.210454268309314,
687
687
  0.7936177747023054,
@@ -697,7 +697,7 @@ var ua = [
697
697
  0.7827717124575296,
698
698
  -0.8086757549230774
699
699
  ]
700
- ], ha = [
700
+ ], ca = [
701
701
  [
702
702
  1,
703
703
  0.3963377773761749,
@@ -727,10 +727,10 @@ var ua = [
727
727
  white: "D65",
728
728
  base: S,
729
729
  fromBase(e) {
730
- return w(ca, w(ua, e).map((t) => Math.cbrt(t)));
730
+ return w(fa, w(la, e).map((t) => Math.cbrt(t)));
731
731
  },
732
732
  toBase(e) {
733
- return w(fa, w(ha, e).map((t) => t ** 3));
733
+ return w(ua, w(ca, e).map((t) => t ** 3));
734
734
  },
735
735
  formats: { oklab: { coords: [
736
736
  "<percentage> | <number>",
@@ -743,8 +743,8 @@ function Xe(e, t) {
743
743
  let [r, a, n] = V.from(e), [s, i, o] = V.from(t), l = r - s, c = a - i, u = n - o;
744
744
  return Math.sqrt(l ** 2 + c ** 2 + u ** 2);
745
745
  }
746
- var da = 75e-6;
747
- function J(e, t, { epsilon: r = da } = {}) {
746
+ var ha = 75e-6;
747
+ function J(e, t, { epsilon: r = ha } = {}) {
748
748
  e = g(e), t || (t = e.space), t = d.get(t);
749
749
  let a = e.coords;
750
750
  return t !== e.space && (a = t.from(e)), t.inGamut(a, { epsilon: r });
@@ -764,11 +764,11 @@ function Mr(e, t, r = "lab") {
764
764
  return isNaN(i) || isNaN(l) ? s : s + (l - i) ** 2;
765
765
  }, 0));
766
766
  }
767
- function ma(e, t) {
767
+ function da(e, t) {
768
768
  return Mr(e, t, "lab");
769
769
  }
770
770
  var Mt = Math.PI / 180;
771
- function ga(e, t, { l: r = 2, c: a = 1 } = {}) {
771
+ function ma(e, t, { l: r = 2, c: a = 1 } = {}) {
772
772
  [e, t] = g([e, t]);
773
773
  let [n, s, i] = x.from(e), [, o, l] = ue.from(x, [
774
774
  n,
@@ -812,7 +812,7 @@ var wt = 203, rt = new d({
812
812
  toBase(e) {
813
813
  return e.map((t) => Math.max(t / wt, 0));
814
814
  }
815
- }), be = 1.15, Me = 0.66, vt = 2610 / 2 ** 14, pa = 2 ** 14 / 2610, yt = 3424 / 2 ** 12, Ct = 2413 / 2 ** 7, Rt = 2392 / 2 ** 7, ba = 1.7 * 2523 / 2 ** 5, _t = 2 ** 5 / (1.7 * 2523), we = -0.56, ke = 16295499532821565e-27, Ma = [
815
+ }), be = 1.15, Me = 0.66, vt = 2610 / 2 ** 14, ga = 2 ** 14 / 2610, yt = 3424 / 2 ** 12, Ct = 2413 / 2 ** 7, Rt = 2392 / 2 ** 7, pa = 1.7 * 2523 / 2 ** 5, _t = 2 ** 5 / (1.7 * 2523), we = -0.56, ke = 16295499532821565e-27, ba = [
816
816
  [
817
817
  0.41478972,
818
818
  0.579999,
@@ -828,7 +828,7 @@ var wt = 203, rt = new d({
828
828
  0.2648,
829
829
  0.6684799
830
830
  ]
831
- ], wa = [
831
+ ], Ma = [
832
832
  [
833
833
  1.9242264357876067,
834
834
  -1.0047923125953657,
@@ -844,7 +844,7 @@ var wt = 203, rt = new d({
844
844
  -0.3127282905230739,
845
845
  1.5227665613052603
846
846
  ]
847
- ], va = [
847
+ ], wa = [
848
848
  [
849
849
  0.5,
850
850
  0.5,
@@ -860,7 +860,7 @@ var wt = 203, rt = new d({
860
860
  1.096799,
861
861
  -1.295875
862
862
  ]
863
- ], ya = [
863
+ ], va = [
864
864
  [
865
865
  1,
866
866
  0.1386050432715393,
@@ -889,12 +889,12 @@ var wt = 203, rt = new d({
889
889
  },
890
890
  base: rt,
891
891
  fromBase(e) {
892
- let [t, r, a] = e, [n, s, i] = w(va, w(Ma, [
892
+ let [t, r, a] = e, [n, s, i] = w(wa, w(ba, [
893
893
  be * t - (be - 1) * a,
894
894
  Me * r - (Me - 1) * t,
895
895
  a
896
896
  ]).map(function(o) {
897
- return ((yt + Ct * (o / 1e4) ** vt) / (1 + Rt * (o / 1e4) ** vt)) ** ba;
897
+ return ((yt + Ct * (o / 1e4) ** vt) / (1 + Rt * (o / 1e4) ** vt)) ** pa;
898
898
  }));
899
899
  return [
900
900
  (1 + we) * n / (1 + we * n) - ke,
@@ -903,12 +903,12 @@ var wt = 203, rt = new d({
903
903
  ];
904
904
  },
905
905
  toBase(e) {
906
- let [t, r, a] = e, [n, s, i] = w(wa, w(ya, [
906
+ let [t, r, a] = e, [n, s, i] = w(Ma, w(va, [
907
907
  (t + ke) / (1 + we - we * (t + ke)),
908
908
  r,
909
909
  a
910
910
  ]).map(function(l) {
911
- return 1e4 * ((yt - l ** _t) / (Rt * l ** _t - Ct)) ** pa;
911
+ return 1e4 * ((yt - l ** _t) / (Rt * l ** _t - Ct)) ** ga;
912
912
  })), o = (n + (be - 1) * i) / be;
913
913
  return [
914
914
  o,
@@ -957,14 +957,14 @@ var wt = 203, rt = new d({
957
957
  ];
958
958
  }
959
959
  });
960
- function Ca(e, t) {
960
+ function ya(e, t) {
961
961
  [e, t] = g([e, t]);
962
962
  let [r, a, n] = Ze.from(e), [s, i, o] = Ze.from(t), l = r - s, c = a - i;
963
963
  Number.isNaN(n) && Number.isNaN(o) ? (n = 0, o = 0) : Number.isNaN(n) ? n = o : Number.isNaN(o) && (o = n);
964
964
  let u = n - o, f = 2 * Math.sqrt(a * i) * Math.sin(u / 2 * (Math.PI / 180));
965
965
  return Math.sqrt(l ** 2 + c ** 2 + f ** 2);
966
966
  }
967
- var vr = 3424 / 4096, yr = 2413 / 128, Cr = 2392 / 128, St = 2610 / 16384, Ra = 2523 / 32, _a = 16384 / 2610, Lt = 32 / 2523, Sa = [
967
+ var vr = 3424 / 4096, yr = 2413 / 128, Cr = 2392 / 128, St = 2610 / 16384, Ca = 2523 / 32, Ra = 16384 / 2610, Lt = 32 / 2523, _a = [
968
968
  [
969
969
  0.3592832590121217,
970
970
  0.6976051147779502,
@@ -980,7 +980,7 @@ var vr = 3424 / 4096, yr = 2413 / 128, Cr = 2392 / 128, St = 2610 / 16384, Ra =
980
980
  0.0748396662186362,
981
981
  0.8433265453898765
982
982
  ]
983
- ], La = [
983
+ ], Sa = [
984
984
  [
985
985
  2048 / 4096,
986
986
  2048 / 4096,
@@ -996,7 +996,7 @@ var vr = 3424 / 4096, yr = 2413 / 128, Cr = 2392 / 128, St = 2610 / 16384, Ra =
996
996
  -17390 / 4096,
997
997
  -543 / 4096
998
998
  ]
999
- ], Ba = [
999
+ ], La = [
1000
1000
  [
1001
1001
  0.9999999999999998,
1002
1002
  0.0086090370379328,
@@ -1012,7 +1012,7 @@ var vr = 3424 / 4096, yr = 2413 / 128, Cr = 2392 / 128, St = 2610 / 16384, Ra =
1012
1012
  0.5600313357106791,
1013
1013
  -0.3206271749873188
1014
1014
  ]
1015
- ], Ia = [
1015
+ ], Ba = [
1016
1016
  [
1017
1017
  2.0701522183894223,
1018
1018
  -1.3263473389671563,
@@ -1047,28 +1047,28 @@ var vr = 3424 / 4096, yr = 2413 / 128, Cr = 2392 / 128, St = 2610 / 16384, Ra =
1047
1047
  },
1048
1048
  base: rt,
1049
1049
  fromBase(e) {
1050
- return Na(w(Sa, e));
1050
+ return Ia(w(_a, e));
1051
1051
  },
1052
1052
  toBase(e) {
1053
- return w(Ia, xa(e));
1053
+ return w(Ba, Na(e));
1054
1054
  }
1055
1055
  });
1056
- function Na(e) {
1057
- return w(La, e.map(function(t) {
1058
- return ((vr + yr * (t / 1e4) ** St) / (1 + Cr * (t / 1e4) ** St)) ** Ra;
1056
+ function Ia(e) {
1057
+ return w(Sa, e.map(function(t) {
1058
+ return ((vr + yr * (t / 1e4) ** St) / (1 + Cr * (t / 1e4) ** St)) ** Ca;
1059
1059
  }));
1060
1060
  }
1061
- function xa(e) {
1062
- return w(Ba, e).map(function(t) {
1063
- return 1e4 * (Math.max(t ** Lt - vr, 0) / (yr - Cr * t ** Lt)) ** _a;
1061
+ function Na(e) {
1062
+ return w(La, e).map(function(t) {
1063
+ return 1e4 * (Math.max(t ** Lt - vr, 0) / (yr - Cr * t ** Lt)) ** Ra;
1064
1064
  });
1065
1065
  }
1066
- function Ea(e, t) {
1066
+ function xa(e, t) {
1067
1067
  [e, t] = g([e, t]);
1068
1068
  let [r, a, n] = Fe.from(e), [s, i, o] = Fe.from(t);
1069
1069
  return 720 * Math.sqrt((r - s) ** 2 + 0.25 * (a - i) ** 2 + (n - o) ** 2);
1070
1070
  }
1071
- var Pa = L.D65, Rr = 0.42, Bt = 1 / Rr, $e = 2 * Math.PI, _r = [
1071
+ var Ea = L.D65, Rr = 0.42, Bt = 1 / Rr, $e = 2 * Math.PI, _r = [
1072
1072
  [
1073
1073
  0.401288,
1074
1074
  0.650173,
@@ -1084,7 +1084,7 @@ var Pa = L.D65, Rr = 0.42, Bt = 1 / Rr, $e = 2 * Math.PI, _r = [
1084
1084
  0.048952,
1085
1085
  0.953127
1086
1086
  ]
1087
- ], za = [
1087
+ ], Pa = [
1088
1088
  [
1089
1089
  1.8620678550872327,
1090
1090
  -1.0112546305316843,
@@ -1100,7 +1100,7 @@ var Pa = L.D65, Rr = 0.42, Bt = 1 / Rr, $e = 2 * Math.PI, _r = [
1100
1100
  -0.03412293802851557,
1101
1101
  1.0499644368778496
1102
1102
  ]
1103
- ], Aa = [
1103
+ ], za = [
1104
1104
  [
1105
1105
  460,
1106
1106
  451,
@@ -1116,7 +1116,7 @@ var Pa = L.D65, Rr = 0.42, Bt = 1 / Rr, $e = 2 * Math.PI, _r = [
1116
1116
  -220,
1117
1117
  -6300
1118
1118
  ]
1119
- ], ka = {
1119
+ ], Aa = {
1120
1120
  dark: [
1121
1121
  0.8,
1122
1122
  0.525,
@@ -1154,27 +1154,27 @@ var Pa = L.D65, Rr = 0.42, Bt = 1 / Rr, $e = 2 * Math.PI, _r = [
1154
1154
  300,
1155
1155
  400
1156
1156
  ]
1157
- }, $a = 180 / Math.PI, It = Math.PI / 180;
1157
+ }, ka = 180 / Math.PI, It = Math.PI / 180;
1158
1158
  function Sr(e, t) {
1159
1159
  return e.map((r) => {
1160
1160
  const a = $(t * Math.abs(r) * 0.01, Rr);
1161
1161
  return 400 * Ne(a, r) / (a + 27.13);
1162
1162
  });
1163
1163
  }
1164
- function Ha(e, t) {
1164
+ function $a(e, t) {
1165
1165
  const r = 100 / t * 27.13 ** Bt;
1166
1166
  return e.map((a) => {
1167
1167
  const n = Math.abs(a);
1168
1168
  return Ne(r * $(n / (400 - n), Bt), a);
1169
1169
  });
1170
1170
  }
1171
- function Oa(e) {
1171
+ function Ha(e) {
1172
1172
  let t = H(e);
1173
1173
  t <= F.h[0] && (t += 360);
1174
1174
  const r = gr(F.h, t) - 1, [a, n] = F.h.slice(r, r + 2), [s, i] = F.e.slice(r, r + 2), o = F.H[r], l = (t - a) / s;
1175
1175
  return o + 100 * l / (l + (n - t) / i);
1176
1176
  }
1177
- function Da(e) {
1177
+ function Oa(e) {
1178
1178
  let t = (e % 400 + 400) % 400;
1179
1179
  const r = Math.floor(0.01 * t);
1180
1180
  t = t % 100;
@@ -1187,7 +1187,7 @@ function Lr(e, t, r, a, n) {
1187
1187
  const i = e.map((m) => m * 100);
1188
1188
  s.la = t, s.yb = r;
1189
1189
  const o = i[1], l = w(_r, i);
1190
- a = ka[s.surround];
1190
+ a = Aa[s.surround];
1191
1191
  const c = a[0];
1192
1192
  s.c = a[1], s.nc = a[2];
1193
1193
  const u = (1 / (5 * s.la + 1)) ** 4;
@@ -1197,7 +1197,7 @@ function Lr(e, t, r, a, n) {
1197
1197
  const h = Sr(l.map((m, p) => m * s.dRgb[p]), s.fl);
1198
1198
  return s.aW = s.nbb * (2 * h[0] + h[1] + 0.05 * h[2]), s;
1199
1199
  }
1200
- var Nt = Lr(Pa, 64 / Math.PI * 0.2, 20, "average", !1);
1200
+ var Nt = Lr(Ea, 64 / Math.PI * 0.2, 20, "average", !1);
1201
1201
  function Je(e, t) {
1202
1202
  if (!(e.J !== void 0 ^ e.Q !== void 0)) throw new Error("Conversion requires one and only one: 'J' or 'Q'");
1203
1203
  if (!(e.C !== void 0 ^ e.M !== void 0 ^ e.s !== void 0)) throw new Error("Conversion requires one and only one: 'C', 'M' or 's'");
@@ -1208,21 +1208,21 @@ function Je(e, t) {
1208
1208
  0
1209
1209
  ];
1210
1210
  let r = 0;
1211
- e.h !== void 0 ? r = H(e.h) * It : r = Da(e.H) * It;
1211
+ e.h !== void 0 ? r = H(e.h) * It : r = Oa(e.H) * It;
1212
1212
  const a = Math.cos(r), n = Math.sin(r);
1213
1213
  let s = 0;
1214
1214
  e.J !== void 0 ? s = $(e.J, 1 / 2) * 0.1 : e.Q !== void 0 && (s = 0.25 * t.c * e.Q / ((t.aW + 4) * t.flRoot));
1215
1215
  let i = 0;
1216
1216
  e.C !== void 0 ? i = e.C / s : e.M !== void 0 ? i = e.M / t.flRoot / s : e.s !== void 0 && (i = 4e-4 * e.s ** 2 * (t.aW + 4) / t.c);
1217
1217
  const o = $(i * Math.pow(1.64 - Math.pow(0.29, t.n), -0.73), 10 / 9), l = 0.25 * (Math.cos(r + 2) + 3.8), c = t.aW * $(s, 2 / t.c / t.z), u = 5e4 / 13 * t.nc * t.ncb * l, f = c / t.nbb, h = 23 * (f + 0.305) * Ve(o, 23 * u + o * (11 * a + 108 * n));
1218
- return w(za, Ha(w(Aa, [
1218
+ return w(Pa, $a(w(za, [
1219
1219
  f,
1220
1220
  h * a,
1221
1221
  h * n
1222
1222
  ]).map((m) => m * 1 / 1403), t.fl).map((m, p) => m * t.dRgbInv[p])).map((m) => m / 100);
1223
1223
  }
1224
1224
  function Br(e, t) {
1225
- const r = Sr(w(_r, e.map((b) => b * 100)).map((b, y) => b * t.dRgb[y]), t.fl), a = r[0] + (-12 * r[1] + r[2]) / 11, n = (r[0] + r[1] - 2 * r[2]) / 9, s = (Math.atan2(n, a) % $e + $e) % $e, i = 0.25 * (Math.cos(s + 2) + 3.8), o = $(5e4 / 13 * t.nc * t.ncb * Ve(i * Math.sqrt(a ** 2 + n ** 2), r[0] + r[1] + 1.05 * r[2] + 0.305), 0.9) * Math.pow(1.64 - Math.pow(0.29, t.n), 0.73), l = $(t.nbb * (2 * r[0] + r[1] + 0.05 * r[2]) / t.aW, 0.5 * t.c * t.z), c = 100 * $(l, 2), u = 4 / t.c * l * (t.aW + 4) * t.flRoot, f = o * l, h = f * t.flRoot, m = H(s * $a), p = Oa(m);
1225
+ const r = Sr(w(_r, e.map((b) => b * 100)).map((b, y) => b * t.dRgb[y]), t.fl), a = r[0] + (-12 * r[1] + r[2]) / 11, n = (r[0] + r[1] - 2 * r[2]) / 9, s = (Math.atan2(n, a) % $e + $e) % $e, i = 0.25 * (Math.cos(s + 2) + 3.8), o = $(5e4 / 13 * t.nc * t.ncb * Ve(i * Math.sqrt(a ** 2 + n ** 2), r[0] + r[1] + 1.05 * r[2] + 0.305), 0.9) * Math.pow(1.64 - Math.pow(0.29, t.n), 0.73), l = $(t.nbb * (2 * r[0] + r[1] + 0.05 * r[2]) / t.aW, 0.5 * t.c * t.z), c = 100 * $(l, 2), u = 4 / t.c * l * (t.aW + 4) * t.flRoot, f = o * l, h = f * t.flRoot, m = H(s * ka), p = Ha(m);
1226
1226
  return {
1227
1227
  J: c,
1228
1228
  C: f,
@@ -1233,7 +1233,7 @@ function Br(e, t) {
1233
1233
  H: p
1234
1234
  };
1235
1235
  }
1236
- var Ta = new d({
1236
+ var Da = new d({
1237
1237
  id: "cam16-jmh",
1238
1238
  cssId: "--cam16-jmh",
1239
1239
  name: "CAM16-JMh",
@@ -1268,14 +1268,14 @@ var Ta = new d({
1268
1268
  h: e[2]
1269
1269
  }, Nt);
1270
1270
  }
1271
- }), ja = L.D65, Ya = 216 / 24389, Ir = 24389 / 27;
1272
- function qa(e) {
1273
- return 116 * (e > Ya ? Math.cbrt(e) : (Ir * e + 16) / 116) - 16;
1271
+ }), Ta = L.D65, ja = 216 / 24389, Ir = 24389 / 27;
1272
+ function Ya(e) {
1273
+ return 116 * (e > ja ? Math.cbrt(e) : (Ir * e + 16) / 116) - 16;
1274
1274
  }
1275
1275
  function We(e) {
1276
1276
  return e > 8 ? Math.pow((e + 16) / 116, 3) : e / Ir;
1277
1277
  }
1278
- function Ga(e, t) {
1278
+ function qa(e, t) {
1279
1279
  let [r, a, n] = e, s = [], i = 0;
1280
1280
  if (n === 0) return [
1281
1281
  0,
@@ -1305,8 +1305,8 @@ function Ga(e, t) {
1305
1305
  h: r
1306
1306
  }, t);
1307
1307
  }
1308
- function Xa(e, t) {
1309
- const r = qa(e[1]);
1308
+ function Ga(e, t) {
1309
+ const r = Ya(e[1]);
1310
1310
  if (r === 0) return [
1311
1311
  0,
1312
1312
  0,
@@ -1319,7 +1319,7 @@ function Xa(e, t) {
1319
1319
  r
1320
1320
  ];
1321
1321
  }
1322
- var at = Lr(ja, 200 / Math.PI * We(50), We(50) * 100, "average", !1), fe = new d({
1322
+ var at = Lr(Ta, 200 / Math.PI * We(50), We(50) * 100, "average", !1), fe = new d({
1323
1323
  id: "hct",
1324
1324
  name: "HCT",
1325
1325
  coords: {
@@ -1339,10 +1339,10 @@ var at = Lr(ja, 200 / Math.PI * We(50), We(50) * 100, "average", !1), fe = new d
1339
1339
  },
1340
1340
  base: S,
1341
1341
  fromBase(e) {
1342
- return Xa(e);
1342
+ return Ga(e);
1343
1343
  },
1344
1344
  toBase(e) {
1345
- return Ga(e, at);
1345
+ return qa(e, at);
1346
1346
  },
1347
1347
  formats: { color: {
1348
1348
  id: "--hct",
@@ -1352,35 +1352,35 @@ var at = Lr(ja, 200 / Math.PI * We(50), We(50) * 100, "average", !1), fe = new d
1352
1352
  "<percentage> | <number>"
1353
1353
  ]
1354
1354
  } }
1355
- }), Za = Math.PI / 180, xt = [
1355
+ }), Xa = Math.PI / 180, xt = [
1356
1356
  1,
1357
1357
  7e-3,
1358
1358
  0.0228
1359
1359
  ];
1360
1360
  function Et(e) {
1361
1361
  e[1] < 0 && (e = fe.fromBase(fe.toBase(e)));
1362
- const t = Math.log(Math.max(1 + xt[2] * e[1] * at.flRoot, 1)) / xt[2], r = e[0] * Za, a = t * Math.cos(r), n = t * Math.sin(r);
1362
+ const t = Math.log(Math.max(1 + xt[2] * e[1] * at.flRoot, 1)) / xt[2], r = e[0] * Xa, a = t * Math.cos(r), n = t * Math.sin(r);
1363
1363
  return [
1364
1364
  e[2],
1365
1365
  a,
1366
1366
  n
1367
1367
  ];
1368
1368
  }
1369
- function Fa(e, t) {
1369
+ function Za(e, t) {
1370
1370
  [e, t] = g([e, t]);
1371
1371
  let [r, a, n] = Et(fe.from(e)), [s, i, o] = Et(fe.from(t));
1372
1372
  return Math.sqrt((r - s) ** 2 + (a - i) ** 2 + (n - o) ** 2);
1373
1373
  }
1374
1374
  var te = {
1375
- deltaE76: ma,
1376
- deltaECMC: ga,
1375
+ deltaE76: da,
1376
+ deltaECMC: ma,
1377
1377
  deltaE2000: br,
1378
- deltaEJz: Ca,
1379
- deltaEITP: Ea,
1378
+ deltaEJz: ya,
1379
+ deltaEITP: xa,
1380
1380
  deltaEOK: Xe,
1381
- deltaEHCT: Fa
1381
+ deltaEHCT: Za
1382
1382
  };
1383
- function Ja(e) {
1383
+ function Fa(e) {
1384
1384
  const t = e ? Math.floor(Math.log10(Math.abs(e))) : 0;
1385
1385
  return Math.max(parseFloat(`1e${t - 2}`), 1e-6);
1386
1386
  }
@@ -1405,7 +1405,7 @@ var Pt = {
1405
1405
  function X(e, { method: t = E.gamut_mapping, space: r = void 0, deltaEMethod: a = "", jnd: n = 2, blackWhiteClamp: s = {} } = {}) {
1406
1406
  if (e = g(e), ce(arguments[1]) ? r = arguments[1] : r || (r = e.space), r = d.get(r), J(e, r, { epsilon: 0 })) return e;
1407
1407
  let i;
1408
- if (t === "css") i = Wa(e, { space: r });
1408
+ if (t === "css") i = Ja(e, { space: r });
1409
1409
  else {
1410
1410
  if (t !== "clip" && !J(e, r)) {
1411
1411
  Object.prototype.hasOwnProperty.call(Pt, t) && ({ method: t, jnd: n, deltaEMethod: a, blackWhiteClamp: s } = Pt[t]);
@@ -1440,7 +1440,7 @@ function X(e, { method: t = E.gamut_mapping, space: r = void 0, deltaEMethod: a
1440
1440
  h.coords.forEach((v, _) => {
1441
1441
  q(v) && (h.coords[_] = 0);
1442
1442
  });
1443
- let m = (c.range || c.refRange)[0], p = Ja(n), b = m, y = N(h, f);
1443
+ let m = (c.range || c.refRange)[0], p = Fa(n), b = m, y = N(h, f);
1444
1444
  for (; y - b > p; ) {
1445
1445
  let v = ee(h);
1446
1446
  v = X(v, {
@@ -1480,7 +1480,7 @@ var zt = {
1480
1480
  ]
1481
1481
  }
1482
1482
  };
1483
- function Wa(e, { space: t } = {}) {
1483
+ function Ja(e, { space: t } = {}) {
1484
1484
  e = g(e), t || (t = e.space), t = d.get(t);
1485
1485
  const n = d.get("oklch");
1486
1486
  if (t.isUnbounded) return M(e, t);
@@ -1643,7 +1643,7 @@ var xe = new I({
1643
1643
  0.9568845240076872
1644
1644
  ]
1645
1645
  ]
1646
- }), Qa = [
1646
+ }), Wa = [
1647
1647
  [
1648
1648
  0.41239079926595934,
1649
1649
  0.357584339383878,
@@ -1679,7 +1679,7 @@ var xe = new I({
1679
1679
  id: "srgb-linear",
1680
1680
  name: "Linear sRGB",
1681
1681
  white: "D65",
1682
- toXYZ_M: Qa,
1682
+ toXYZ_M: Wa,
1683
1683
  fromXYZ_M: R
1684
1684
  }), kt = {
1685
1685
  aliceblue: [
@@ -2497,7 +2497,7 @@ var xe = new I({
2497
2497
  toBase: re.toBase
2498
2498
  });
2499
2499
  E.display_space = re;
2500
- var Ua;
2500
+ var Qa;
2501
2501
  if (typeof CSS < "u" && CSS.supports) for (let e of [
2502
2502
  x,
2503
2503
  Nr,
@@ -2513,19 +2513,19 @@ if (typeof CSS < "u" && CSS.supports) for (let e of [
2513
2513
  break;
2514
2514
  }
2515
2515
  }
2516
- function Ka(e, { space: t = E.display_space, ...r } = {}) {
2516
+ function Ua(e, { space: t = E.display_space, ...r } = {}) {
2517
2517
  let a = oe(e, r);
2518
2518
  if (typeof CSS > "u" || CSS.supports("color", a) || !E.display_space)
2519
2519
  a = new String(a), a.color = e;
2520
2520
  else {
2521
2521
  let n = e;
2522
- if ((e.coords.some(q) || q(e.alpha)) && !(Ua ??= CSS.supports("color", "hsl(none 50% 50%)")) && (n = ee(e), n.coords = n.coords.map(C), n.alpha = C(n.alpha), a = oe(n, r), CSS.supports("color", a)))
2522
+ if ((e.coords.some(q) || q(e.alpha)) && !(Qa ??= CSS.supports("color", "hsl(none 50% 50%)")) && (n = ee(e), n.coords = n.coords.map(C), n.alpha = C(n.alpha), a = oe(n, r), CSS.supports("color", a)))
2523
2523
  return a = new String(a), a.color = n, a;
2524
2524
  n = M(n, t), a = new String(oe(n, r)), a.color = n;
2525
2525
  }
2526
2526
  return a;
2527
2527
  }
2528
- function Va(e, t) {
2528
+ function Ka(e, t) {
2529
2529
  return e = g(e), t = g(t), e.space === t.space && e.alpha === t.alpha && e.coords.every((r, a) => r === t.coords[a]);
2530
2530
  }
2531
2531
  function Z(e) {
@@ -2534,7 +2534,7 @@ function Z(e) {
2534
2534
  function zr(e, t) {
2535
2535
  T(e, [S, "y"], t);
2536
2536
  }
2537
- function en(e) {
2537
+ function Va(e) {
2538
2538
  Object.defineProperty(e.prototype, "luminance", {
2539
2539
  get() {
2540
2540
  return Z(this);
@@ -2544,53 +2544,53 @@ function en(e) {
2544
2544
  }
2545
2545
  });
2546
2546
  }
2547
- var tn = /* @__PURE__ */ Object.freeze({
2547
+ var en = /* @__PURE__ */ Object.freeze({
2548
2548
  __proto__: null,
2549
2549
  getLuminance: Z,
2550
- register: en,
2550
+ register: Va,
2551
2551
  setLuminance: zr
2552
2552
  });
2553
- function rn(e, t) {
2553
+ function tn(e, t) {
2554
2554
  e = g(e), t = g(t);
2555
2555
  let r = Math.max(Z(e), 0), a = Math.max(Z(t), 0);
2556
2556
  return a > r && ([r, a] = [a, r]), (r + 0.05) / (a + 0.05);
2557
2557
  }
2558
- var an = 0.56, nn = 0.57, sn = 0.62, on = 0.65, Ot = 0.022, ln = 1.414, un = 0.1, fn = 5e-4, cn = 1.14, Dt = 0.027, hn = 1.14;
2558
+ var rn = 0.56, an = 0.57, nn = 0.62, sn = 0.65, Ot = 0.022, on = 1.414, ln = 0.1, un = 5e-4, fn = 1.14, Dt = 0.027, cn = 1.14;
2559
2559
  function Tt(e) {
2560
- return e >= Ot ? e : e + (Ot - e) ** ln;
2560
+ return e >= Ot ? e : e + (Ot - e) ** on;
2561
2561
  }
2562
2562
  function Q(e) {
2563
2563
  let t = e < 0 ? -1 : 1, r = Math.abs(e);
2564
2564
  return t * Math.pow(r, 2.4);
2565
2565
  }
2566
- function dn(e, t) {
2566
+ function hn(e, t) {
2567
2567
  t = g(t), e = g(e);
2568
2568
  let r, a, n, s, i, o;
2569
2569
  t = M(t, "srgb"), [s, i, o] = t.coords;
2570
2570
  let l = Q(s) * 0.2126729 + Q(i) * 0.7151522 + Q(o) * 0.072175;
2571
2571
  e = M(e, "srgb"), [s, i, o] = e.coords;
2572
2572
  let c = Q(s) * 0.2126729 + Q(i) * 0.7151522 + Q(o) * 0.072175, u = Tt(l), f = Tt(c), h = f > u;
2573
- return Math.abs(f - u) < fn ? a = 0 : h ? (r = f ** an - u ** nn, a = r * cn) : (r = f ** on - u ** sn, a = r * hn), Math.abs(a) < un ? n = 0 : a > 0 ? n = a - Dt : n = a + Dt, n * 100;
2573
+ return Math.abs(f - u) < un ? a = 0 : h ? (r = f ** rn - u ** an, a = r * fn) : (r = f ** sn - u ** nn, a = r * cn), Math.abs(a) < ln ? n = 0 : a > 0 ? n = a - Dt : n = a + Dt, n * 100;
2574
2574
  }
2575
- function mn(e, t) {
2575
+ function dn(e, t) {
2576
2576
  e = g(e), t = g(t);
2577
2577
  let r = Math.max(Z(e), 0), a = Math.max(Z(t), 0);
2578
2578
  a > r && ([r, a] = [a, r]);
2579
2579
  let n = r + a;
2580
2580
  return n === 0 ? 0 : (r - a) / n;
2581
2581
  }
2582
- var gn = 5e4;
2583
- function pn(e, t) {
2582
+ var mn = 5e4;
2583
+ function gn(e, t) {
2584
2584
  e = g(e), t = g(t);
2585
2585
  let r = Math.max(Z(e), 0), a = Math.max(Z(t), 0);
2586
- return a > r && ([r, a] = [a, r]), a === 0 ? gn : (r - a) / a;
2586
+ return a > r && ([r, a] = [a, r]), a === 0 ? mn : (r - a) / a;
2587
2587
  }
2588
- function bn(e, t) {
2588
+ function pn(e, t) {
2589
2589
  e = g(e), t = g(t);
2590
2590
  let r = N(e, [x, "l"]), a = N(t, [x, "l"]);
2591
2591
  return Math.abs(r - a);
2592
2592
  }
2593
- var Mn = 216 / 24389, jt = 24 / 116, ye = 24389 / 27, He = L.D65, Qe = new d({
2593
+ var bn = 216 / 24389, jt = 24 / 116, ye = 24389 / 27, He = L.D65, Qe = new d({
2594
2594
  id: "lab-d65",
2595
2595
  name: "Lab D65",
2596
2596
  coords: {
@@ -2604,7 +2604,7 @@ var Mn = 216 / 24389, jt = 24 / 116, ye = 24389 / 27, He = L.D65, Qe = new d({
2604
2604
  white: He,
2605
2605
  base: S,
2606
2606
  fromBase(e) {
2607
- let t = e.map((r, a) => r / He[a]).map((r) => r > Mn ? Math.cbrt(r) : (ye * r + 16) / 116);
2607
+ let t = e.map((r, a) => r / He[a]).map((r) => r > bn ? Math.cbrt(r) : (ye * r + 16) / 116);
2608
2608
  return [
2609
2609
  116 * t[1] - 16,
2610
2610
  500 * (t[0] - t[1]),
@@ -2625,21 +2625,21 @@ var Mn = 216 / 24389, jt = 24 / 116, ye = 24389 / 27, He = L.D65, Qe = new d({
2625
2625
  "<number> | <percentage>[-1,1]"
2626
2626
  ] } }
2627
2627
  }), Oe = Math.pow(5, 0.5) * 0.5 + 0.5;
2628
- function wn(e, t) {
2628
+ function Mn(e, t) {
2629
2629
  e = g(e), t = g(t);
2630
2630
  let r = N(e, [Qe, "l"]), a = N(t, [Qe, "l"]), n = Math.abs(Math.pow(r, Oe) - Math.pow(a, Oe)), s = Math.pow(n, 1 / Oe) * Math.SQRT2 - 40;
2631
2631
  return s < 7.5 ? 0 : s;
2632
2632
  }
2633
2633
  var _e = /* @__PURE__ */ Object.freeze({
2634
2634
  __proto__: null,
2635
- contrastAPCA: dn,
2636
- contrastDeltaPhi: wn,
2637
- contrastLstar: bn,
2638
- contrastMichelson: mn,
2639
- contrastWCAG21: rn,
2640
- contrastWeber: pn
2635
+ contrastAPCA: hn,
2636
+ contrastDeltaPhi: Mn,
2637
+ contrastLstar: pn,
2638
+ contrastMichelson: dn,
2639
+ contrastWCAG21: tn,
2640
+ contrastWeber: gn
2641
2641
  });
2642
- function vn(e, t, r = {}) {
2642
+ function wn(e, t, r = {}) {
2643
2643
  ce(r) && (r = { algorithm: r });
2644
2644
  let { algorithm: a, ...n } = r;
2645
2645
  if (!a) {
@@ -2658,16 +2658,16 @@ function Ar(e) {
2658
2658
  let [t, r, a] = he(e, S), n = t + r + a;
2659
2659
  return [t / n, r / n];
2660
2660
  }
2661
- function yn(e) {
2661
+ function vn(e) {
2662
2662
  Object.defineProperty(e.prototype, "uv", { get() {
2663
2663
  return Ee(this);
2664
2664
  } }), Object.defineProperty(e.prototype, "xy", { get() {
2665
2665
  return Ar(this);
2666
2666
  } });
2667
2667
  }
2668
- var Cn = /* @__PURE__ */ Object.freeze({
2668
+ var yn = /* @__PURE__ */ Object.freeze({
2669
2669
  __proto__: null,
2670
- register: yn,
2670
+ register: vn,
2671
2671
  uv: Ee,
2672
2672
  xy: Ar
2673
2673
  });
@@ -2677,16 +2677,16 @@ function ie(e, t, r = {}) {
2677
2677
  for (let s in te) if ("deltae" + a.toLowerCase() === s.toLowerCase()) return te[s](e, t, n);
2678
2678
  throw new TypeError(`Unknown deltaE method: ${a}`);
2679
2679
  }
2680
- function Rn(e, t = 0.25) {
2680
+ function Cn(e, t = 0.25) {
2681
2681
  return T(e, [d.get("oklch", "lch"), "l"], (r) => r * (1 + t));
2682
2682
  }
2683
- function _n(e, t = 0.25) {
2683
+ function Rn(e, t = 0.25) {
2684
2684
  return T(e, [d.get("oklch", "lch"), "l"], (r) => r * (1 - t));
2685
2685
  }
2686
- var Sn = /* @__PURE__ */ Object.freeze({
2686
+ var _n = /* @__PURE__ */ Object.freeze({
2687
2687
  __proto__: null,
2688
- darken: _n,
2689
- lighten: Rn
2688
+ darken: Rn,
2689
+ lighten: Cn
2690
2690
  });
2691
2691
  function kr(e, t, r = 0.5, a = {}) {
2692
2692
  return [e, t] = [g(e), g(t)], Y(r) === "object" && ([r, a] = [0.5, r]), de(e, t, a)(r);
@@ -2746,7 +2746,7 @@ function de(e, t, r = {}) {
2746
2746
  };
2747
2747
  if (a ? a = d.get(a) : a = d.registry[E.interpolationSpace] || e.space, n = n ? d.get(n) : a, e = M(e, a), t = M(t, a), e = X(e), t = X(t), a.coords.h && a.coords.h.type === "angle") {
2748
2748
  let l = r.hue = r.hue || "shorter", c = [a, "h"], [u, f] = [N(e, c), N(t, c)];
2749
- isNaN(u) && !isNaN(f) ? u = f : isNaN(f) && !isNaN(u) && (f = u), [u, f] = la(l, [u, f]), T(e, c, u), T(t, c, f);
2749
+ isNaN(u) && !isNaN(f) ? u = f : isNaN(f) && !isNaN(u) && (f = u), [u, f] = oa(l, [u, f]), T(e, c, u), T(t, c, f);
2750
2750
  }
2751
2751
  return i && (e.coords = e.coords.map((l) => l * e.alpha), t.coords = t.coords.map((l) => l * t.alpha)), Object.assign((l) => {
2752
2752
  l = s ? s(l) : l;
@@ -2765,15 +2765,15 @@ function nt(e) {
2765
2765
  return Y(e) === "function" && !!e.rangeArgs;
2766
2766
  }
2767
2767
  E.interpolationSpace = "lab";
2768
- function Ln(e) {
2768
+ function Sn(e) {
2769
2769
  e.defineFunction("mix", kr, { returns: "color" }), e.defineFunction("range", de, { returns: "function<color>" }), e.defineFunction("steps", $r, { returns: "array<color>" });
2770
2770
  }
2771
- var Bn = /* @__PURE__ */ Object.freeze({
2771
+ var Ln = /* @__PURE__ */ Object.freeze({
2772
2772
  __proto__: null,
2773
2773
  isRange: nt,
2774
2774
  mix: kr,
2775
2775
  range: de,
2776
- register: Ln,
2776
+ register: Sn,
2777
2777
  steps: $r
2778
2778
  }), Hr = new d({
2779
2779
  id: "hsl",
@@ -2895,7 +2895,7 @@ var Bn = /* @__PURE__ */ Object.freeze({
2895
2895
  "<percentage> | <number>"
2896
2896
  ]
2897
2897
  } }
2898
- }), In = new d({
2898
+ }), Bn = new d({
2899
2899
  id: "hwb",
2900
2900
  name: "HWB",
2901
2901
  coords: {
@@ -2982,7 +2982,7 @@ var Bn = /* @__PURE__ */ Object.freeze({
2982
2982
  1.0151749943912054
2983
2983
  ]
2984
2984
  ]
2985
- }), Nn = new I({
2985
+ }), In = new I({
2986
2986
  id: "a98rgb",
2987
2987
  cssId: "a98-rgb",
2988
2988
  name: "Adobe® 98 RGB compatible",
@@ -3029,18 +3029,18 @@ var Bn = /* @__PURE__ */ Object.freeze({
3029
3029
  1.2119675456389452
3030
3030
  ]
3031
3031
  ]
3032
- }), xn = 1 / 512, En = 16 / 512, Pn = new I({
3032
+ }), Nn = 1 / 512, xn = 16 / 512, En = new I({
3033
3033
  id: "prophoto",
3034
3034
  cssId: "prophoto-rgb",
3035
3035
  name: "ProPhoto",
3036
3036
  base: Tr,
3037
3037
  toBase(e) {
3038
- return e.map((t) => t < En ? t / 16 : t ** 1.8);
3038
+ return e.map((t) => t < xn ? t / 16 : t ** 1.8);
3039
3039
  },
3040
3040
  fromBase(e) {
3041
- return e.map((t) => t >= xn ? t ** (1 / 1.8) : 16 * t);
3041
+ return e.map((t) => t >= Nn ? t ** (1 / 1.8) : 16 * t);
3042
3042
  }
3043
- }), zn = new d({
3043
+ }), Pn = new d({
3044
3044
  id: "oklch",
3045
3045
  name: "Oklch",
3046
3046
  coords: {
@@ -3082,7 +3082,7 @@ var Bn = /* @__PURE__ */ Object.freeze({
3082
3082
  "<number> | <percentage>[0,1]",
3083
3083
  "<number> | <angle>"
3084
3084
  ] } }
3085
- }), jr = L.D65, An = 216 / 24389, Yt = 24389 / 27, [qt, Gt] = Ee({
3085
+ }), jr = L.D65, zn = 216 / 24389, Yt = 24389 / 27, [qt, Gt] = Ee({
3086
3086
  space: S,
3087
3087
  coords: jr
3088
3088
  }), Yr = new d({
@@ -3112,7 +3112,7 @@ var Bn = /* @__PURE__ */ Object.freeze({
3112
3112
  0,
3113
3113
  0
3114
3114
  ];
3115
- let s = r <= An ? Yt * r : 116 * Math.cbrt(r) - 16;
3115
+ let s = r <= zn ? Yt * r : 116 * Math.cbrt(r) - 16;
3116
3116
  return [
3117
3117
  s,
3118
3118
  13 * s * (a - qt),
@@ -3186,13 +3186,13 @@ var Bn = /* @__PURE__ */ Object.freeze({
3186
3186
  "<number> | <angle>"
3187
3187
  ]
3188
3188
  } }
3189
- }), kn = 216 / 24389, $n = 24389 / 27, Xt = R[0][0], Zt = R[0][1], De = R[0][2], Ft = R[1][0], Jt = R[1][1], Te = R[1][2], Wt = R[2][0], Qt = R[2][1], je = R[2][2];
3189
+ }), An = 216 / 24389, kn = 24389 / 27, Xt = R[0][0], Zt = R[0][1], De = R[0][2], Ft = R[1][0], Jt = R[1][1], Te = R[1][2], Wt = R[2][0], Qt = R[2][1], je = R[2][2];
3190
3190
  function U(e, t, r) {
3191
3191
  const a = t / (Math.sin(r) - e * Math.cos(r));
3192
3192
  return a < 0 ? 1 / 0 : a;
3193
3193
  }
3194
3194
  function Ie(e) {
3195
- const t = Math.pow(e + 16, 3) / 1560896, r = t > kn ? t : e / $n, a = r * (284517 * Xt - 94839 * De), n = r * (838422 * De + 769860 * Zt + 731718 * Xt), s = r * (632260 * De - 126452 * Zt), i = r * (284517 * Ft - 94839 * Te), o = r * (838422 * Te + 769860 * Jt + 731718 * Ft), l = r * (632260 * Te - 126452 * Jt), c = r * (284517 * Wt - 94839 * je), u = r * (838422 * je + 769860 * Qt + 731718 * Wt), f = r * (632260 * je - 126452 * Qt);
3195
+ const t = Math.pow(e + 16, 3) / 1560896, r = t > An ? t : e / kn, a = r * (284517 * Xt - 94839 * De), n = r * (838422 * De + 769860 * Zt + 731718 * Xt), s = r * (632260 * De - 126452 * Zt), i = r * (284517 * Ft - 94839 * Te), o = r * (838422 * Te + 769860 * Jt + 731718 * Ft), l = r * (632260 * Te - 126452 * Jt), c = r * (284517 * Wt - 94839 * je), u = r * (838422 * je + 769860 * Qt + 731718 * Wt), f = r * (632260 * je - 126452 * Qt);
3196
3196
  return {
3197
3197
  r0s: a / s,
3198
3198
  r0i: n * e / s,
@@ -3212,7 +3212,7 @@ function Ut(e, t) {
3212
3212
  const r = t / 360 * Math.PI * 2, a = U(e.r0s, e.r0i, r), n = U(e.r1s, e.r1i, r), s = U(e.g0s, e.g0i, r), i = U(e.g1s, e.g1i, r), o = U(e.b0s, e.b0i, r), l = U(e.b1s, e.b1i, r);
3213
3213
  return Math.min(a, n, s, i, o, l);
3214
3214
  }
3215
- var Hn = new d({
3215
+ var $n = new d({
3216
3216
  id: "hsluv",
3217
3217
  name: "HSLuv",
3218
3218
  coords: {
@@ -3281,7 +3281,7 @@ function Kt(e) {
3281
3281
  let t = K(e.r0s, e.r0i), r = K(e.r1s, e.r1i), a = K(e.g0s, e.g0i), n = K(e.g1s, e.g1i), s = K(e.b0s, e.b0i), i = K(e.b1s, e.b1i);
3282
3282
  return Math.min(t, r, a, n, s, i);
3283
3283
  }
3284
- var On = new d({
3284
+ var Hn = new d({
3285
3285
  id: "hpluv",
3286
3286
  name: "HPLuv",
3287
3287
  coords: {
@@ -3333,23 +3333,23 @@ var On = new d({
3333
3333
  "<percentage> | <number>"
3334
3334
  ]
3335
3335
  } }
3336
- }), Vt = 203, er = 2610 / 2 ** 14, Dn = 2 ** 14 / 2610, Tn = 2523 / 2 ** 5, tr = 2 ** 5 / 2523, rr = 3424 / 2 ** 12, ar = 2413 / 2 ** 7, nr = 2392 / 2 ** 7, jn = new I({
3336
+ }), Vt = 203, er = 2610 / 2 ** 14, On = 2 ** 14 / 2610, Dn = 2523 / 2 ** 5, tr = 2 ** 5 / 2523, rr = 3424 / 2 ** 12, ar = 2413 / 2 ** 7, nr = 2392 / 2 ** 7, Tn = new I({
3337
3337
  id: "rec2100pq",
3338
3338
  cssId: "rec2100-pq",
3339
3339
  name: "REC.2100-PQ",
3340
3340
  base: xe,
3341
3341
  toBase(e) {
3342
3342
  return e.map(function(t) {
3343
- return (Math.max(t ** tr - rr, 0) / (ar - nr * t ** tr)) ** Dn * 1e4 / Vt;
3343
+ return (Math.max(t ** tr - rr, 0) / (ar - nr * t ** tr)) ** On * 1e4 / Vt;
3344
3344
  });
3345
3345
  },
3346
3346
  fromBase(e) {
3347
3347
  return e.map(function(t) {
3348
3348
  let r = Math.max(t * Vt / 1e4, 0);
3349
- return ((rr + ar * r ** er) / (1 + nr * r ** er)) ** Tn;
3349
+ return ((rr + ar * r ** er) / (1 + nr * r ** er)) ** Dn;
3350
3350
  });
3351
3351
  }
3352
- }), sr = 0.17883277, ir = 0.28466892, or = 0.55991073, Ye = 3.7743, Yn = new I({
3352
+ }), sr = 0.17883277, ir = 0.28466892, or = 0.55991073, Ye = 3.7743, jn = new I({
3353
3353
  id: "rec2100hlg",
3354
3354
  cssId: "rec2100-hlg",
3355
3355
  name: "REC.2100-HLG",
@@ -3644,7 +3644,7 @@ var Xr = new I({
3644
3644
  0.9883948585390215
3645
3645
  ]
3646
3646
  ]
3647
- }), Ce = 2 ** -16, qe = -0.35828683, Re = (Math.log2(65504) + 9.72) / 17.52, qn = new I({
3647
+ }), Ce = 2 ** -16, qe = -0.35828683, Re = (Math.log2(65504) + 9.72) / 17.52, Yn = new I({
3648
3648
  id: "acescc",
3649
3649
  cssId: "--acescc",
3650
3650
  name: "ACEScc",
@@ -3677,17 +3677,17 @@ var Xr = new I({
3677
3677
  }
3678
3678
  }), lr = /* @__PURE__ */ Object.freeze({
3679
3679
  __proto__: null,
3680
- A98RGB: Nn,
3680
+ A98RGB: In,
3681
3681
  A98RGB_Linear: Dr,
3682
- ACEScc: qn,
3682
+ ACEScc: Yn,
3683
3683
  ACEScg: Xr,
3684
- CAM16_JMh: Ta,
3684
+ CAM16_JMh: Da,
3685
3685
  HCT: fe,
3686
- HPLuv: On,
3686
+ HPLuv: Hn,
3687
3687
  HSL: Hr,
3688
- HSLuv: Hn,
3688
+ HSLuv: $n,
3689
3689
  HSV: Or,
3690
- HWB: In,
3690
+ HWB: Bn,
3691
3691
  ICTCP: Fe,
3692
3692
  JzCzHz: Ze,
3693
3693
  Jzazbz: wr,
@@ -3696,16 +3696,16 @@ var Xr = new I({
3696
3696
  Lab: x,
3697
3697
  Lab_D65: Qe,
3698
3698
  Luv: Yr,
3699
- OKLCH: zn,
3699
+ OKLCH: Pn,
3700
3700
  OKLab: V,
3701
3701
  P3: Pr,
3702
3702
  P3_Linear: xr,
3703
- ProPhoto: Pn,
3703
+ ProPhoto: En,
3704
3704
  ProPhoto_Linear: Tr,
3705
3705
  REC_2020: Nr,
3706
3706
  REC_2020_Linear: xe,
3707
- REC_2100_HLG: Yn,
3708
- REC_2100_PQ: jn,
3707
+ REC_2100_HLG: jn,
3708
+ REC_2100_PQ: Tn,
3709
3709
  XYZ_ABS_D65: rt,
3710
3710
  XYZ_D50: tt,
3711
3711
  XYZ_D65: S,
@@ -3755,7 +3755,7 @@ var Xr = new I({
3755
3755
  };
3756
3756
  }
3757
3757
  display(...t) {
3758
- let r = Ka(this, ...t);
3758
+ let r = Ua(this, ...t);
3759
3759
  return r.color = new B(r.color), r;
3760
3760
  }
3761
3761
  /**
@@ -3796,14 +3796,14 @@ P.defineFunctions({
3796
3796
  set: T,
3797
3797
  setAll: et,
3798
3798
  to: M,
3799
- equals: Va,
3799
+ equals: Ka,
3800
3800
  inGamut: J,
3801
3801
  toGamut: X,
3802
3802
  distance: Mr,
3803
3803
  toString: oe
3804
3804
  });
3805
3805
  Object.assign(P, {
3806
- util: ra,
3806
+ util: ta,
3807
3807
  hooks: G,
3808
3808
  WHITES: L,
3809
3809
  Space: d,
@@ -3858,21 +3858,20 @@ function Ue(e, t) {
3858
3858
  P.extend(te);
3859
3859
  P.extend({ deltaE: ie });
3860
3860
  Object.assign(P, { deltaEMethods: te });
3861
- P.extend(Sn);
3862
- P.extend({ contrast: vn });
3863
- P.extend(Cn);
3864
- P.extend(tn);
3865
- P.extend(Bn);
3861
+ P.extend(_n);
3862
+ P.extend({ contrast: wn });
3863
+ P.extend(yn);
3864
+ P.extend(en);
3865
+ P.extend(Ln);
3866
3866
  P.extend(_e);
3867
- Kr();
3868
- var { vec2: Gn, vec4: Xn } = Ur;
3869
- const Jn = (e) => {
3867
+ var { vec2: qn, vec4: Gn } = Ur;
3868
+ const Fn = (e) => {
3870
3869
  const t = new P(e), r = t.to("p3-linear").coords, a = r[0], n = r[1], s = r[2], i = t.alpha;
3871
3870
  return {
3872
- node: Xn(a, n, s, i),
3873
- data: new ea(a, n, s, i)
3871
+ node: Gn(a, n, s, i),
3872
+ data: new Vr(a, n, s, i)
3874
3873
  };
3875
- }, Wn = (e) => {
3874
+ }, Jn = (e) => {
3876
3875
  let t = 0.5, r = 0.5;
3877
3876
  const a = (s, i = !1) => {
3878
3877
  if (typeof s == "number") return s;
@@ -3894,10 +3893,10 @@ const Jn = (e) => {
3894
3893
  } else typeof e == "object" && e !== null ? (t = a(e.x, !1), r = a(e.y, !0)) : console.warn(`Invalid position value provided: ${e}. Defaulting to center.`);
3895
3894
  const n = 1 - r;
3896
3895
  return {
3897
- node: Gn(t, n),
3898
- data: new Vr(t, n)
3896
+ node: qn(t, n),
3897
+ data: new Kr(t, n)
3899
3898
  };
3900
- }, Qn = (e) => {
3899
+ }, Wn = (e) => {
3901
3900
  if (typeof e == "number") return (e % 360 + 360) % 360;
3902
3901
  const t = e.toLowerCase().trim();
3903
3902
  switch (t) {
@@ -3954,7 +3953,7 @@ const Jn = (e) => {
3954
3953
  }
3955
3954
  return console.warn(`Invalid angle value: ${e}. Defaulting to 0 degrees.`), 0;
3956
3955
  }
3957
- }, Un = (e) => {
3956
+ }, Qn = (e) => {
3958
3957
  const t = {
3959
3958
  stretch: 0,
3960
3959
  transparent: 1,
@@ -3962,7 +3961,7 @@ const Jn = (e) => {
3962
3961
  wrap: 3
3963
3962
  }[e.toLowerCase()];
3964
3963
  return t === void 0 ? (console.warn(`Invalid edge mode: ${e}. Defaulting to 'stretch'.`), 0) : t;
3965
- }, Kn = [
3964
+ }, Un = [
3966
3965
  {
3967
3966
  label: "Linear RGB",
3968
3967
  value: "linear"
@@ -3975,7 +3974,7 @@ const Jn = (e) => {
3975
3974
  label: "OKLAB",
3976
3975
  value: "oklab"
3977
3976
  }
3978
- ], Vn = (e) => {
3977
+ ], Kn = (e) => {
3979
3978
  const t = {
3980
3979
  linear: 0,
3981
3980
  oklch: 1,
@@ -3984,10 +3983,10 @@ const Jn = (e) => {
3984
3983
  return t === void 0 ? (console.warn(`Invalid color space mode: ${e}. Defaulting to 'linear'.`), 0) : t;
3985
3984
  };
3986
3985
  export {
3987
- Un as a,
3988
- Vn as i,
3989
- Qn as n,
3990
- Wn as o,
3991
- Jn as r,
3992
- Kn as t
3986
+ Qn as a,
3987
+ Kn as i,
3988
+ Wn as n,
3989
+ Jn as o,
3990
+ Fn as r,
3991
+ Un as t
3993
3992
  };