/* * Extracted from browser-delivered Turbopack chunk: 080d73f6a8a7055f.15232f16bf.js * Module id: 321137 * For reading/searching only; this factory depends on the original Turbopack runtime. */ const moduleFactory = (t) => { "use strict"; function e(t, e, n) { (t.prototype = e.prototype = n), (n.constructor = t); } function n(t, e) { var n = Object.create(t.prototype); for (var r in e) n[r] = e[r]; return n; } function r() {} t.s(["default", 0, e, "extend", () => n], 189517); var i = "\\s*([+-]?\\d+)\\s*", o = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", a = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", u = /^#([0-9a-f]{3,8})$/, s = RegExp(`^rgb\\(${i},${i},${i}\\)$`), l = RegExp(`^rgb\\(${a},${a},${a}\\)$`), c = RegExp(`^rgba\\(${i},${i},${i},${o}\\)$`), f = RegExp(`^rgba\\(${a},${a},${a},${o}\\)$`), h = RegExp(`^hsl\\(${o},${a},${a}\\)$`), p = RegExp(`^hsla\\(${o},${a},${a},${o}\\)$`), d = { aliceblue: 0xf0f8ff, antiquewhite: 0xfaebd7, aqua: 65535, aquamarine: 8388564, azure: 0xf0ffff, beige: 0xf5f5dc, bisque: 0xffe4c4, black: 0, blanchedalmond: 0xffebcd, blue: 255, blueviolet: 9055202, brown: 0xa52a2a, burlywood: 0xdeb887, cadetblue: 6266528, chartreuse: 8388352, chocolate: 0xd2691e, coral: 0xff7f50, cornflowerblue: 6591981, cornsilk: 0xfff8dc, crimson: 0xdc143c, cyan: 65535, darkblue: 139, darkcyan: 35723, darkgoldenrod: 0xb8860b, darkgray: 0xa9a9a9, darkgreen: 25600, darkgrey: 0xa9a9a9, darkkhaki: 0xbdb76b, darkmagenta: 9109643, darkolivegreen: 5597999, darkorange: 0xff8c00, darkorchid: 0x9932cc, darkred: 9109504, darksalmon: 0xe9967a, darkseagreen: 9419919, darkslateblue: 4734347, darkslategray: 3100495, darkslategrey: 3100495, darkturquoise: 52945, darkviolet: 9699539, deeppink: 0xff1493, deepskyblue: 49151, dimgray: 6908265, dimgrey: 6908265, dodgerblue: 2003199, firebrick: 0xb22222, floralwhite: 0xfffaf0, forestgreen: 2263842, fuchsia: 0xff00ff, gainsboro: 0xdcdcdc, ghostwhite: 0xf8f8ff, gold: 0xffd700, goldenrod: 0xdaa520, gray: 8421504, green: 32768, greenyellow: 0xadff2f, grey: 8421504, honeydew: 0xf0fff0, hotpink: 0xff69b4, indianred: 0xcd5c5c, indigo: 4915330, ivory: 0xfffff0, khaki: 0xf0e68c, lavender: 0xe6e6fa, lavenderblush: 0xfff0f5, lawngreen: 8190976, lemonchiffon: 0xfffacd, lightblue: 0xadd8e6, lightcoral: 0xf08080, lightcyan: 0xe0ffff, lightgoldenrodyellow: 0xfafad2, lightgray: 0xd3d3d3, lightgreen: 9498256, lightgrey: 0xd3d3d3, lightpink: 0xffb6c1, lightsalmon: 0xffa07a, lightseagreen: 2142890, lightskyblue: 8900346, lightslategray: 7833753, lightslategrey: 7833753, lightsteelblue: 0xb0c4de, lightyellow: 0xffffe0, lime: 65280, limegreen: 3329330, linen: 0xfaf0e6, magenta: 0xff00ff, maroon: 8388608, mediumaquamarine: 6737322, mediumblue: 205, mediumorchid: 0xba55d3, mediumpurple: 9662683, mediumseagreen: 3978097, mediumslateblue: 8087790, mediumspringgreen: 64154, mediumturquoise: 4772300, mediumvioletred: 0xc71585, midnightblue: 1644912, mintcream: 0xf5fffa, mistyrose: 0xffe4e1, moccasin: 0xffe4b5, navajowhite: 0xffdead, navy: 128, oldlace: 0xfdf5e6, olive: 8421376, olivedrab: 7048739, orange: 0xffa500, orangered: 0xff4500, orchid: 0xda70d6, palegoldenrod: 0xeee8aa, palegreen: 0x98fb98, paleturquoise: 0xafeeee, palevioletred: 0xdb7093, papayawhip: 0xffefd5, peachpuff: 0xffdab9, peru: 0xcd853f, pink: 0xffc0cb, plum: 0xdda0dd, powderblue: 0xb0e0e6, purple: 8388736, rebeccapurple: 6697881, red: 0xff0000, rosybrown: 0xbc8f8f, royalblue: 4286945, saddlebrown: 9127187, salmon: 0xfa8072, sandybrown: 0xf4a460, seagreen: 3050327, seashell: 0xfff5ee, sienna: 0xa0522d, silver: 0xc0c0c0, skyblue: 8900331, slateblue: 6970061, slategray: 7372944, slategrey: 7372944, snow: 0xfffafa, springgreen: 65407, steelblue: 4620980, tan: 0xd2b48c, teal: 32896, thistle: 0xd8bfd8, tomato: 0xff6347, turquoise: 4251856, violet: 0xee82ee, wheat: 0xf5deb3, white: 0xffffff, whitesmoke: 0xf5f5f5, yellow: 0xffff00, yellowgreen: 0x9acd32, }; function v() { return this.rgb().formatHex(); } function m() { return this.rgb().formatRgb(); } function y(t) { var e, n; return ( (t = (t + "").trim().toLowerCase()), (e = u.exec(t)) ? ((n = e[1].length), (e = parseInt(e[1], 16)), 6 === n ? g(e) : 3 === n ? new b( ((e >> 8) & 15) | ((e >> 4) & 240), ((e >> 4) & 15) | (240 & e), ((15 & e) << 4) | (15 & e), 1, ) : 8 === n ? _( (e >> 24) & 255, (e >> 16) & 255, (e >> 8) & 255, (255 & e) / 255, ) : 4 === n ? _( ((e >> 12) & 15) | ((e >> 8) & 240), ((e >> 8) & 15) | ((e >> 4) & 240), ((e >> 4) & 15) | (240 & e), (((15 & e) << 4) | (15 & e)) / 255, ) : null) : (e = s.exec(t)) ? new b(e[1], e[2], e[3], 1) : (e = l.exec(t)) ? new b( (255 * e[1]) / 100, (255 * e[2]) / 100, (255 * e[3]) / 100, 1, ) : (e = c.exec(t)) ? _(e[1], e[2], e[3], e[4]) : (e = f.exec(t)) ? _( (255 * e[1]) / 100, (255 * e[2]) / 100, (255 * e[3]) / 100, e[4], ) : (e = h.exec(t)) ? z(e[1], e[2] / 100, e[3] / 100, 1) : (e = p.exec(t)) ? z(e[1], e[2] / 100, e[3] / 100, e[4]) : d.hasOwnProperty(t) ? g(d[t]) : "transparent" === t ? new b(NaN, NaN, NaN, 0) : null ); } function g(t) { return new b((t >> 16) & 255, (t >> 8) & 255, 255 & t, 1); } function _(t, e, n, r) { return r <= 0 && (t = e = n = NaN), new b(t, e, n, r); } function w(t) { return (t instanceof r || (t = y(t)), t) ? new b((t = t.rgb()).r, t.g, t.b, t.opacity) : new b(); } function x(t, e, n, r) { return 1 == arguments.length ? w(t) : new b(t, e, n, null == r ? 1 : r); } function b(t, e, n, r) { (this.r = +t), (this.g = +e), (this.b = +n), (this.opacity = +r); } function k() { return `#${E(this.r)}${E(this.g)}${E(this.b)}`; } function A() { let t = M(this.opacity); return `${1 === t ? "rgb(" : "rgba("}${N(this.r)}, ${N(this.g)}, ${N(this.b)}${1 === t ? ")" : `, ${t})`}`; } function M(t) { return isNaN(t) ? 1 : Math.max(0, Math.min(1, t)); } function N(t) { return Math.max(0, Math.min(255, Math.round(t) || 0)); } function E(t) { return ((t = N(t)) < 16 ? "0" : "") + t.toString(16); } function z(t, e, n, r) { return ( r <= 0 ? (t = e = n = NaN) : n <= 0 || n >= 1 ? (t = e = NaN) : e <= 0 && (t = NaN), new T(t, e, n, r) ); } function S(t) { if (t instanceof T) return new T(t.h, t.s, t.l, t.opacity); if ((t instanceof r || (t = y(t)), !t)) return new T(); if (t instanceof T) return t; var e = (t = t.rgb()).r / 255, n = t.g / 255, i = t.b / 255, o = Math.min(e, n, i), a = Math.max(e, n, i), u = NaN, s = a - o, l = (a + o) / 2; return ( s ? ((u = e === a ? (n - i) / s + (n < i) * 6 : n === a ? (i - e) / s + 2 : (e - n) / s + 4), (s /= l < 0.5 ? a + o : 2 - a - o), (u *= 60)) : (s = l > 0 && l < 1 ? 0 : u), new T(u, s, l, t.opacity) ); } function T(t, e, n, r) { (this.h = +t), (this.s = +e), (this.l = +n), (this.opacity = +r); } function $(t) { return (t = (t || 0) % 360) < 0 ? t + 360 : t; } function C(t) { return Math.max(0, Math.min(1, t || 0)); } function P(t, e, n) { return ( (t < 60 ? e + ((n - e) * t) / 60 : t < 180 ? n : t < 240 ? e + ((n - e) * (240 - t)) / 60 : e) * 255 ); } e(r, y, { copy(t) { return Object.assign(new this.constructor(), this, t); }, displayable() { return this.rgb().displayable(); }, hex: v, formatHex: v, formatHex8: function () { return this.rgb().formatHex8(); }, formatHsl: function () { return S(this).formatHsl(); }, formatRgb: m, toString: m, }), e( b, x, n(r, { brighter(t) { return ( (t = null == t ? 1.4285714285714286 : Math.pow(1.4285714285714286, t)), new b(this.r * t, this.g * t, this.b * t, this.opacity) ); }, darker(t) { return ( (t = null == t ? 0.7 : Math.pow(0.7, t)), new b(this.r * t, this.g * t, this.b * t, this.opacity) ); }, rgb() { return this; }, clamp() { return new b(N(this.r), N(this.g), N(this.b), M(this.opacity)); }, displayable() { return ( -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1 ); }, hex: k, formatHex: k, formatHex8: function () { return `#${E(this.r)}${E(this.g)}${E(this.b)}${E((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`; }, formatRgb: A, toString: A, }), ), e( T, function (t, e, n, r) { return 1 == arguments.length ? S(t) : new T(t, e, n, null == r ? 1 : r); }, n(r, { brighter(t) { return ( (t = null == t ? 1.4285714285714286 : Math.pow(1.4285714285714286, t)), new T(this.h, this.s, this.l * t, this.opacity) ); }, darker(t) { return ( (t = null == t ? 0.7 : Math.pow(0.7, t)), new T(this.h, this.s, this.l * t, this.opacity) ); }, rgb() { var t = (this.h % 360) + (this.h < 0) * 360, e = isNaN(t) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < 0.5 ? n : 1 - n) * e, i = 2 * n - r; return new b( P(t >= 240 ? t - 240 : t + 120, i, r), P(t, i, r), P(t < 120 ? t + 240 : t - 120, i, r), this.opacity, ); }, clamp() { return new T($(this.h), C(this.s), C(this.l), M(this.opacity)); }, displayable() { return ( ((0 <= this.s && this.s <= 1) || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1 ); }, formatHsl() { let t = M(this.opacity); return `${1 === t ? "hsl(" : "hsla("}${$(this.h)}, ${100 * C(this.s)}%, ${100 * C(this.l)}%${1 === t ? ")" : `, ${t})`}`; }, }), ), t.s( [ "Color", () => r, "Rgb", () => b, "default", () => y, "rgb", () => x, "rgbConvert", () => w, ], 321137, ), t.s(["color", () => y], 161610); }; export default moduleFactory;