tinte
Version:
Beautiful editor themes with the best DX - install themes instantly to VS Code, Cursor, and Zed
4 lines • 63.7 kB
JavaScript
"use strict";var Ci=Object.create;var xt=Object.defineProperty;var Ni=Object.getOwnPropertyDescriptor;var Ii=Object.getOwnPropertyNames;var Oi=Object.getPrototypeOf,qi=Object.prototype.hasOwnProperty;var l=(e,t)=>()=>(e&&(t=e(e=0)),t);var Rr=(e,t)=>{for(var o in t)xt(e,o,{get:t[o],enumerable:!0})},Sr=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Ii(t))!qi.call(e,r)&&r!==o&&xt(e,r,{get:()=>t[r],enumerable:!(n=Ni(t,r))||n.enumerable});return e};var Ai=(e,t,o)=>(o=e!=null?Ci(Oi(e)):{},Sr(t||!e||!e.__esModule?xt(o,"default",{value:e,enumerable:!0}):o,e)),Di=e=>Sr(xt({},"__esModule",{value:!0}),e);var Ei,vt,no=l(()=>{"use strict";Ei=(e,t)=>{if(typeof e=="number"){if(t===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(t===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(t===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(t===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},vt=Ei});var ji,Xr,Hr=l(()=>{"use strict";ji={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Xr=ji});var Ji,Pr,$r=l(()=>{"use strict";no();Hr();Ji=e=>vt(Xr[e.toLowerCase()],6),Pr=Ji});var Fi,Zi,Cr,Nr=l(()=>{"use strict";no();Fi=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,Zi=e=>{let t;return(t=e.match(Fi))?vt(parseInt(t[1],16),t[1].length):void 0},Cr=Zi});var N,R0,be,S0,Ve,Yi,Ir,X0,ne,H0,ao=l(()=>{"use strict";N="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",R0=`(?:${N}|none)`,be=`${N}%`,S0=`(?:${N}%|none)`,Ve=`(?:${N}%|${N})`,Yi=`(?:${N}%|${N}|none)`,Ir=`(?:${N}(deg|grad|rad|turn)|${N})`,X0=`(?:${N}(deg|grad|rad|turn)|${N}|none)`,ne="\\s*,\\s*",H0=new RegExp("^"+Yi+"$")});var Bi,Wi,Gi,Or,qr=l(()=>{"use strict";ao();Bi=new RegExp(`^rgba?\\(\\s*${N}${ne}${N}${ne}${N}\\s*(?:,\\s*${Ve}\\s*)?\\)$`),Wi=new RegExp(`^rgba?\\(\\s*${be}${ne}${be}${ne}${be}\\s*(?:,\\s*${Ve}\\s*)?\\)$`),Gi=e=>{let t={mode:"rgb"},o;if(o=e.match(Bi))o[1]!==void 0&&(t.r=o[1]/255),o[2]!==void 0&&(t.g=o[2]/255),o[3]!==void 0&&(t.b=o[3]/255);else if(o=e.match(Wi))o[1]!==void 0&&(t.r=o[1]/100),o[2]!==void 0&&(t.g=o[2]/100),o[3]!==void 0&&(t.b=o[3]/100);else return;return o[4]!==void 0?t.alpha=Math.max(0,Math.min(1,o[4]/100)):o[5]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+o[5]))),t},Or=Gi});var Vi,Ue,io=l(()=>{"use strict";ee();Vi=(e,t)=>e===void 0?void 0:typeof e!="object"?Ar(e):e.mode!==void 0?e:t?{...e,mode:t}:void 0,Ue=Vi});var Ui,B,Ke=l(()=>{"use strict";Le();io();Ui=(e="rgb")=>t=>(t=Ue(t,e))!==void 0?t.mode===e?t:Y[t.mode][e]?Y[t.mode][e](t):e==="rgb"?Y[t.mode].rgb(t):Y.rgb[e](Y[t.mode].rgb(t)):void 0,B=Ui});var Y,Dr,Qe,fo,Ki,M,ge,Qi,Le=l(()=>{"use strict";Ke();Y={},Dr={},Qe=[],fo={},Ki=e=>e,M=e=>(Y[e.mode]={...Y[e.mode],...e.toMode},Object.keys(e.fromMode||{}).forEach(t=>{Y[t]||(Y[t]={}),Y[t][e.mode]=e.fromMode[t]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(t=>{if(e.ranges[t]===void 0&&(e.ranges[t]=[0,1]),!e.interpolate[t])throw new Error(`Missing interpolator for: ${t}`);typeof e.interpolate[t]=="function"&&(e.interpolate[t]={use:e.interpolate[t]}),e.interpolate[t].fixup||(e.interpolate[t].fixup=Ki)}),Dr[e.mode]=e,(e.parse||[]).forEach(t=>{Qi(t,e.mode)}),B(e.mode)),ge=e=>Dr[e],Qi=(e,t)=>{if(typeof e=="string"){if(!t)throw new Error("'mode' required when 'parser' is a string");fo[e]=t}else typeof e=="function"&&Qe.indexOf(e)<0&&Qe.push(e)}});function yt(e){let t=e[g],o=e[g+1];return t==="-"||t==="+"?/\d/.test(o)||o==="."&&/\d/.test(e[g+2]):t==="."?/\d/.test(o):/\d/.test(t)}function so(e){if(g>=e.length)return!1;let t=e[g];if(lo.test(t))return!0;if(t==="-"){if(e.length-g<2)return!1;let o=e[g+1];return!!(o==="-"||lo.test(o))}return!1}function et(e){let t="";if((e[g]==="-"||e[g]==="+")&&(t+=e[g++]),t+=Mt(e),e[g]==="."&&/\d/.test(e[g+1])&&(t+=e[g++]+Mt(e)),(e[g]==="e"||e[g]==="E")&&((e[g+1]==="-"||e[g+1]==="+")&&/\d/.test(e[g+2])?t+=e[g++]+e[g++]+Mt(e):/\d/.test(e[g+1])&&(t+=e[g++]+Mt(e))),so(e)){let o=Tt(e);return o==="deg"||o==="rad"||o==="turn"||o==="grad"?{type:d.Hue,value:t*tf[o]}:void 0}return e[g]==="%"?(g++,{type:d.Percentage,value:+t}):{type:d.Number,value:+t}}function Mt(e){let t="";for(;/\d/.test(e[g]);)t+=e[g++];return t}function Tt(e){let t="";for(;g<e.length&&ef.test(e[g]);)t+=e[g++];return t}function of(e){let t=Tt(e);return e[g]==="("?(g++,{type:d.Function,value:t}):t==="none"?{type:d.None,value:void 0}:{type:d.Ident,value:t}}function rf(e=""){let t=e.trim(),o=[],n;for(g=0;g<t.length;){if(n=t[g++],n===`
`||n===" "||n===" "){for(;g<t.length&&(t[g]===`
`||t[g]===" "||t[g]===" ");)g++;continue}if(n===",")return;if(n===")"){o.push({type:d.ParenClose});continue}if(n==="+"){if(g--,yt(t)){o.push(et(t));continue}return}if(n==="-"){if(g--,yt(t)){o.push(et(t));continue}if(so(t)){o.push({type:d.Ident,value:Tt(t)});continue}return}if(n==="."){if(g--,yt(t)){o.push(et(t));continue}return}if(n==="/"){for(;g<t.length&&(t[g]===`
`||t[g]===" "||t[g]===" ");)g++;let r;if(yt(t)&&(r=et(t),r.type!==d.Hue)){o.push({type:d.Alpha,value:r});continue}if(so(t)&&Tt(t)==="none"){o.push({type:d.Alpha,value:{type:d.None,value:void 0}});continue}return}if(/\d/.test(n)){g--,o.push(et(t));continue}if(lo.test(n)){g--,o.push(of(t));continue}return}return o}function nf(e){e._i=0;let t=e[e._i++];if(!t||t.type!==d.Function||t.value!=="color"||(t=e[e._i++],t.type!==d.Ident))return;let o=fo[t.value];if(!o)return;let n={mode:o},r=Er(e,!1);if(!r)return;let a=ge(o).channels;for(let i=0,f,u;i<a.length;i++)f=r[i],u=a[i],f.type!==d.None&&(n[u]=f.type===d.Number?f.value:f.value/100,u==="alpha"&&(n[u]=Math.max(0,Math.min(1,n[u]))));return n}function Er(e,t){let o=[],n;for(;e._i<e.length;){if(n=e[e._i++],n.type===d.None||n.type===d.Number||n.type===d.Alpha||n.type===d.Percentage||t&&n.type===d.Hue){o.push(n);continue}if(n.type===d.ParenClose){if(e._i<e.length)return;continue}return}if(!(o.length<3||o.length>4)){if(o.length===4){if(o[3].type!==d.Alpha)return;o[3]=o[3].value}return o.length===3&&o.push({type:d.None,value:void 0}),o.every(r=>r.type!==d.Alpha)?o:void 0}}function af(e,t){e._i=0;let o=e[e._i++];if(!o||o.type!==d.Function)return;let n=Er(e,t);if(n)return n.unshift(o.value),n}var lo,ef,d,g,tf,ff,Ar,ee=l(()=>{"use strict";Le();lo=/[^\x00-\x7F]|[a-zA-Z_]/,ef=/[^\x00-\x7F]|[-\w]/,d={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},g=0;tf={deg:1,rad:180/Math.PI,grad:9/10,turn:360};ff=e=>{if(typeof e!="string")return;let t=rf(e),o=t?af(t,!0):void 0,n,r=0,a=Qe.length;for(;r<a;)if((n=Qe[r++](e,o))!==void 0)return n;return t?nf(t):void 0},Ar=ff});function lf(e,t){if(!t||t[0]!=="rgb"&&t[0]!=="rgba")return;let o={mode:"rgb"},[,n,r,a,i]=t;if(!(n.type===d.Hue||r.type===d.Hue||a.type===d.Hue))return n.type!==d.None&&(o.r=n.type===d.Number?n.value/255:n.value/100),r.type!==d.None&&(o.g=r.type===d.Number?r.value/255:r.value/100),a.type!==d.None&&(o.b=a.type===d.Number?a.value/255:a.value/100),i.type!==d.None&&(o.alpha=Math.min(1,Math.max(0,i.type===d.Number?i.value:i.value/100))),o}var jr,Jr=l(()=>{"use strict";ee();jr=lf});var df,Fr,Zr=l(()=>{"use strict";df=e=>e==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,Fr=df});var Yr,Br=l(()=>{"use strict";Yr=(e,t,o)=>e+o*(t-e)});var sf,Wr,Gr=l(()=>{"use strict";sf=e=>{let t=[];for(let o=0;o<e.length-1;o++){let n=e[o],r=e[o+1];n===void 0&&r===void 0?t.push(void 0):n!==void 0&&r!==void 0?t.push([n,r]):t.push(n!==void 0?[n,n]:[r,r])}return t},Wr=e=>t=>{let o=sf(t);return n=>{let r=n*o.length,a=n>=1?o.length-1:Math.max(Math.floor(r),0),i=o[a];return i===void 0?void 0:e(i[0],i[1],r-a)}}});var s,S=l(()=>{"use strict";Br();Gr();s=Wr(Yr)});var v,X=l(()=>{"use strict";v=e=>{let t=!1,o=e.map(n=>n!==void 0?(t=!0,n):1);return t?o:e}});var uf,E,xe=l(()=>{"use strict";$r();Nr();qr();Jr();Zr();S();X();uf={mode:"rgb",channels:["r","g","b","alpha"],parse:[jr,Cr,Or,Pr,Fr,"srgb"],serialize:"srgb",interpolate:{r:s,g:s,b:s,alpha:{use:s,fixup:v}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},E=uf});var uo,pf,po,Vr=l(()=>{"use strict";uo=(e=0)=>Math.pow(Math.abs(e),2.19921875)*Math.sign(e),pf=e=>{let t=uo(e.r),o=uo(e.g),n=uo(e.b),r={mode:"xyz65",x:.5766690429101305*t+.1855582379065463*o+.1882286462349947*n,y:.297344975250536*t+.6273635662554661*o+.0752914584939979*n,z:.0270313613864123*t+.0706888525358272*o+.9913375368376386*n};return e.alpha!==void 0&&(r.alpha=e.alpha),r},po=pf});var mo,mf,co,Ur=l(()=>{"use strict";mo=e=>Math.pow(Math.abs(e),.4547069271758437)*Math.sign(e),mf=({x:e,y:t,z:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r={mode:"a98",r:mo(e*2.0415879038107465-t*.5650069742788597-.3447313507783297*o),g:mo(e*-.9692436362808798+t*1.8759675015077206+.0415550574071756*o),b:mo(e*.0134442806320312-t*.1183623922310184+1.0151749943912058*o)};return n!==void 0&&(r.alpha=n),r},co=mf});var ho,cf,j,ve=l(()=>{"use strict";ho=(e=0)=>{let t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((t+.055)/1.055,2.4)},cf=({r:e,g:t,b:o,alpha:n})=>{let r={mode:"lrgb",r:ho(e),g:ho(t),b:ho(o)};return n!==void 0&&(r.alpha=n),r},j=cf});var hf,I,ae=l(()=>{"use strict";ve();hf=e=>{let{r:t,g:o,b:n,alpha:r}=j(e),a={mode:"xyz65",x:.4123907992659593*t+.357584339383878*o+.1804807884018343*n,y:.2126390058715102*t+.715168678767756*o+.0721923153607337*n,z:.0193308187155918*t+.119194779794626*o+.9505321522496607*n};return r!==void 0&&(a.alpha=r),a},I=hf});var bo,bf,J,ye=l(()=>{"use strict";bo=(e=0)=>{let t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(t,.4166666666666667)-.055):e*12.92},bf=({r:e,g:t,b:o,alpha:n},r="rgb")=>{let a={mode:r,r:bo(e),g:bo(t),b:bo(o)};return n!==void 0&&(a.alpha=n),a},J=bf});var gf,O,ie=l(()=>{"use strict";ye();gf=({x:e,y:t,z:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=J({r:e*3.2409699419045226-t*1.537383177570094-.4986107602930034*o,g:e*-.9692436362808796+t*1.8759675015077204+.0415550574071756*o,b:e*.0556300796969936-t*.2039769588889765+1.0569715142428784*o});return n!==void 0&&(r.alpha=n),r},O=gf});var xf,Kr,Qr=l(()=>{"use strict";xe();Vr();Ur();ae();ie();xf={...E,mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>co(I(e)),xyz65:co},toMode:{rgb:e=>O(po(e)),xyz65:po}},Kr=xf});var vf,k,F=l(()=>{"use strict";vf=e=>(e=e%360)<0?e+360:e,k=vf});var yf,$,W=l(()=>{"use strict";F();yf=(e,t)=>e.map((o,n,r)=>{if(o===void 0)return o;let a=k(o);return n===0||e[n-1]===void 0?a:t(a-k(r[n-1]))}).reduce((o,n)=>!o.length||n===void 0||o[o.length-1]===void 0?(o.push(n),o):(o.push(n+o[o.length-1]),o),[]),$=e=>yf(e,t=>Math.abs(t)<=180?t:t-360*Math.sign(t))});var H,en,tn,go=l(()=>{"use strict";H=[-.14861,1.78277,-.29227,-.90649,1.97294,0],en=Math.PI/180,tn=180/Math.PI});var on,rn,nn,Mf,an,fn=l(()=>{"use strict";go();on=H[3]*H[4],rn=H[1]*H[4],nn=H[1]*H[2]-H[0]*H[3],Mf=({r:e,g:t,b:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=(nn*o+e*on-t*rn)/(nn+on-rn),a=o-r,i=(H[4]*(t-r)-H[2]*a)/H[3],f={mode:"cubehelix",l:r,s:r===0||r===1?void 0:Math.sqrt(a*a+i*i)/(H[4]*r*(1-r))};return f.s&&(f.h=Math.atan2(i,a)*tn-120),n!==void 0&&(f.alpha=n),f},an=Mf});var Tf,ln,dn=l(()=>{"use strict";go();Tf=({h:e,s:t,l:o,alpha:n})=>{let r={mode:"rgb"};e=(e===void 0?0:e+120)*en,o===void 0&&(o=0);let a=t===void 0?0:t*o*(1-o),i=Math.cos(e),f=Math.sin(e);return r.r=o+a*(H[0]*i+H[1]*f),r.g=o+a*(H[2]*i+H[3]*f),r.b=o+a*(H[4]*i+H[5]*f),n!==void 0&&(r.alpha=n),r},ln=Tf});var fe,sn,le,G=l(()=>{"use strict";F();fe=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.s||!t.s)return 0;let o=k(e.h),n=k(t.h),r=Math.sin((n-o+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*t.s)*r},sn=(e,t)=>{if(e.h===void 0||t.h===void 0)return 0;let o=k(e.h),n=k(t.h);return Math.abs(n-o)>180?o-(n-360*Math.sign(n-o)):n-o},le=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.c||!t.c)return 0;let o=k(e.h),n=k(t.h),r=Math.sin((n-o+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*t.c)*r}});var C,V=l(()=>{"use strict";C=e=>{let t=e.reduce((n,r)=>{if(r!==void 0){let a=r*Math.PI/180;n.sin+=Math.sin(a),n.cos+=Math.cos(a)}return n},{sin:0,cos:0}),o=Math.atan2(t.sin,t.cos)*180/Math.PI;return o<0?360+o:o}});var _f,un,pn=l(()=>{"use strict";W();X();S();fn();dn();G();V();_f={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:an},toMode:{rgb:ln},interpolate:{h:{use:s,fixup:$},s,l:s,alpha:{use:s,fixup:v}},difference:{h:fe},average:{h:C}},un=_f});var kf,q,Re=l(()=>{"use strict";F();kf=({l:e,a:t,b:o,alpha:n},r="lch")=>{t===void 0&&(t=0),o===void 0&&(o=0);let a=Math.sqrt(t*t+o*o),i={mode:r,l:e,c:a};return a&&(i.h=k(Math.atan2(o,t)*180/Math.PI)),n!==void 0&&(i.alpha=n),i},q=kf});var wf,A,Se=l(()=>{"use strict";wf=({l:e,c:t,h:o,alpha:n},r="lab")=>{o===void 0&&(o=0);let a={mode:r,l:e,a:t?t*Math.cos(o/180*Math.PI):0,b:t?t*Math.sin(o/180*Math.PI):0};return n!==void 0&&(a.alpha=n),a},A=wf});var _t,kt,xo=l(()=>{"use strict";_t=Math.pow(29,3)/Math.pow(3,3),kt=Math.pow(6,3)/Math.pow(29,3)});var L,de,Fd,Zd,Me=l(()=>{"use strict";L={X:.9642956764295677,Y:1,Z:.8251046025104602},de={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},Fd=Math.pow(29,3)/Math.pow(3,3),Zd=Math.pow(6,3)/Math.pow(29,3)});var vo,zf,wt,yo=l(()=>{"use strict";xo();Me();vo=e=>Math.pow(e,3)>kt?Math.pow(e,3):(116*e-16)/_t,zf=({l:e,a:t,b:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=(e+16)/116,a=t/500+r,i=r-o/200,f={mode:"xyz65",x:vo(a)*de.X,y:vo(r)*de.Y,z:vo(i)*de.Z};return n!==void 0&&(f.alpha=n),f},wt=zf});var Lf,se,tt=l(()=>{"use strict";yo();ie();Lf=e=>O(wt(e)),se=Lf});var Mo,Rf,zt,To=l(()=>{"use strict";xo();Me();Mo=e=>e>kt?Math.cbrt(e):(_t*e+16)/116,Rf=({x:e,y:t,z:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Mo(e/de.X),a=Mo(t/de.Y),i=Mo(o/de.Z),f={mode:"lab65",l:116*a-16,a:500*(r-a),b:200*(a-i)};return n!==void 0&&(f.alpha=n),f},zt=Rf});var Sf,ue,ot=l(()=>{"use strict";ae();To();Sf=e=>{let t=zt(I(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},ue=Sf});var Te,Xe,He,Lt,_o=l(()=>{"use strict";Te=.14444444444444443*Math.PI,Xe=Math.cos(Te),He=Math.sin(Te),Lt=100/Math.log(139/100)});var Xf,nt,wo=l(()=>{"use strict";_o();Xf=({l:e,c:t,h:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r={mode:"lab65",l:(Math.exp(e*1/Lt)-1)/.0039},a=(Math.exp(.0435*t*1*1)-1)/.075,i=a*Math.cos(o/180*Math.PI-Te),f=a*Math.sin(o/180*Math.PI-Te);return r.a=i*Xe-f/.83*He,r.b=i*He+f/.83*Xe,n!==void 0&&(r.alpha=n),r},nt=Xf});var Hf,at,zo=l(()=>{"use strict";_o();F();Hf=({l:e,a:t,b:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=t*Xe+o*He,a=.83*(o*Xe-t*He),i=Math.sqrt(r*r+a*a),f={mode:"dlch",l:Lt/1*Math.log(1+.0039*e),c:Math.log(1+.075*i)/(.0435*1*1)};return f.c&&(f.h=k((Math.atan2(a,r)+Te)/Math.PI*180)),n!==void 0&&(f.alpha=n),f},at=Hf});var mn,cn,Pf,hn,bn=l(()=>{"use strict";Re();Se();tt();ot();wo();zo();S();X();mn=e=>nt(q(e,"dlch")),cn=e=>A(at(e),"dlab"),Pf={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:mn,rgb:e=>se(mn(e))},fromMode:{lab65:cn,rgb:e=>cn(ue(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:s,a:s,b:s,alpha:{use:s,fixup:v}}},hn=Pf});var $f,gn,xn=l(()=>{"use strict";Re();Se();wo();zo();tt();ot();W();X();S();G();V();$f={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:nt,dlab:e=>A(e,"dlab"),rgb:e=>se(nt(e))},fromMode:{lab65:at,dlab:e=>q(e,"dlch"),rgb:e=>at(ue(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:s,c:s,h:{use:s,fixup:$},alpha:{use:s,fixup:v}},difference:{h:le},average:{h:C}},gn=$f});function Lo({h:e,s:t,i:o,alpha:n}){e=k(e!==void 0?e:0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.abs(e/60%2-1),a;switch(Math.floor(e/60)){case 0:a={r:o*(1+t*(3/(2-r)-1)),g:o*(1+t*(3*(1-r)/(2-r)-1)),b:o*(1-t)};break;case 1:a={r:o*(1+t*(3*(1-r)/(2-r)-1)),g:o*(1+t*(3/(2-r)-1)),b:o*(1-t)};break;case 2:a={r:o*(1-t),g:o*(1+t*(3/(2-r)-1)),b:o*(1+t*(3*(1-r)/(2-r)-1))};break;case 3:a={r:o*(1-t),g:o*(1+t*(3*(1-r)/(2-r)-1)),b:o*(1+t*(3/(2-r)-1))};break;case 4:a={r:o*(1+t*(3*(1-r)/(2-r)-1)),g:o*(1-t),b:o*(1+t*(3/(2-r)-1))};break;case 5:a={r:o*(1+t*(3/(2-r)-1)),g:o*(1-t),b:o*(1+t*(3*(1-r)/(2-r)-1))};break;default:a={r:o*(1-t),g:o*(1-t),b:o*(1-t)}}return a.mode="rgb",n!==void 0&&(a.alpha=n),a}var vn=l(()=>{"use strict";F()});function Ro({r:e,g:t,b:o,alpha:n}){e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.max(e,t,o),a=Math.min(e,t,o),i={mode:"hsi",s:e+t+o===0?0:1-3*a/(e+t+o),i:(e+t+o)/3};return r-a!==0&&(i.h=(r===e?(t-o)/(r-a)+(t<o)*6:r===t?(o-e)/(r-a)+2:(e-t)/(r-a)+4)*60),n!==void 0&&(i.alpha=n),i}var yn=l(()=>{"use strict"});var Cf,Mn,Tn=l(()=>{"use strict";vn();yn();W();X();S();G();V();Cf={mode:"hsi",toMode:{rgb:Lo},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:Ro},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:s,fixup:$},s,i:s,alpha:{use:s,fixup:v}},difference:{h:fe},average:{h:C}},Mn=Cf});function So({h:e,s:t,l:o,alpha:n}){e=k(e!==void 0?e:0),t===void 0&&(t=0),o===void 0&&(o=0);let r=o+t*(o<.5?o:1-o),a=r-(r-o)*2*Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r,g:a,b:2*o-r};break;case 1:i={r:a,g:r,b:2*o-r};break;case 2:i={r:2*o-r,g:r,b:a};break;case 3:i={r:2*o-r,g:a,b:r};break;case 4:i={r:a,g:2*o-r,b:r};break;case 5:i={r,g:2*o-r,b:a};break;default:i={r:2*o-r,g:2*o-r,b:2*o-r}}return i.mode="rgb",n!==void 0&&(i.alpha=n),i}var _n=l(()=>{"use strict";F()});function Xo({r:e,g:t,b:o,alpha:n}){e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.max(e,t,o),a=Math.min(e,t,o),i={mode:"hsl",s:r===a?0:(r-a)/(1-Math.abs(r+a-1)),l:.5*(r+a)};return r-a!==0&&(i.h=(r===e?(t-o)/(r-a)+(t<o)*6:r===t?(o-e)/(r-a)+2:(e-t)/(r-a)+4)*60),n!==void 0&&(i.alpha=n),i}var kn=l(()=>{"use strict"});var Nf,wn,zn=l(()=>{"use strict";Nf=(e,t)=>{switch(t){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},wn=Nf});var If,Of,Ln,Rn=l(()=>{"use strict";zn();ao();If=new RegExp(`^hsla?\\(\\s*${Ir}${ne}${be}${ne}${be}\\s*(?:,\\s*${Ve}\\s*)?\\)$`),Of=e=>{let t=e.match(If);if(!t)return;let o={mode:"hsl"};return t[3]!==void 0?o.h=+t[3]:t[1]!==void 0&&t[2]!==void 0&&(o.h=wn(t[1],t[2])),t[4]!==void 0&&(o.s=Math.min(Math.max(0,t[4]/100),1)),t[5]!==void 0&&(o.l=Math.min(Math.max(0,t[5]/100),1)),t[6]!==void 0?o.alpha=Math.max(0,Math.min(1,t[6]/100)):t[7]!==void 0&&(o.alpha=Math.max(0,Math.min(1,+t[7]))),o},Ln=Of});function qf(e,t){if(!t||t[0]!=="hsl"&&t[0]!=="hsla")return;let o={mode:"hsl"},[,n,r,a,i]=t;if(n.type!==d.None){if(n.type===d.Percentage)return;o.h=n.value}if(r.type!==d.None){if(r.type===d.Hue)return;o.s=r.value/100}if(a.type!==d.None){if(a.type===d.Hue)return;o.l=a.value/100}return i.type!==d.None&&(o.alpha=Math.min(1,Math.max(0,i.type===d.Number?i.value:i.value/100))),o}var Sn,Xn=l(()=>{"use strict";ee();Sn=qf});var Af,Rt,Ho=l(()=>{"use strict";_n();kn();Rn();Xn();W();X();S();G();V();Af={mode:"hsl",toMode:{rgb:So},fromMode:{rgb:Xo},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Sn,Ln],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:s,fixup:$},s,l:s,alpha:{use:s,fixup:v}},difference:{h:fe},average:{h:C}},Rt=Af});function it({h:e,s:t,v:o,alpha:n}){e=k(e!==void 0?e:0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.abs(e/60%2-1),a;switch(Math.floor(e/60)){case 0:a={r:o,g:o*(1-t*r),b:o*(1-t)};break;case 1:a={r:o*(1-t*r),g:o,b:o*(1-t)};break;case 2:a={r:o*(1-t),g:o,b:o*(1-t*r)};break;case 3:a={r:o*(1-t),g:o*(1-t*r),b:o};break;case 4:a={r:o*(1-t*r),g:o*(1-t),b:o};break;case 5:a={r:o,g:o*(1-t),b:o*(1-t*r)};break;default:a={r:o*(1-t),g:o*(1-t),b:o*(1-t)}}return a.mode="rgb",n!==void 0&&(a.alpha=n),a}var Po=l(()=>{"use strict";F()});function ft({r:e,g:t,b:o,alpha:n}){e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.max(e,t,o),a=Math.min(e,t,o),i={mode:"hsv",s:r===0?0:1-a/r,v:r};return r-a!==0&&(i.h=(r===e?(t-o)/(r-a)+(t<o)*6:r===t?(o-e)/(r-a)+2:(e-t)/(r-a)+4)*60),n!==void 0&&(i.alpha=n),i}var $o=l(()=>{"use strict"});var Df,St,Co=l(()=>{"use strict";Po();$o();W();X();S();G();V();Df={mode:"hsv",toMode:{rgb:it},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:ft},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:s,fixup:$},s,v:s,alpha:{use:s,fixup:v}},difference:{h:fe},average:{h:C}},St=Df});function No({h:e,w:t,b:o,alpha:n}){if(t===void 0&&(t=0),o===void 0&&(o=0),t+o>1){let r=t+o;t/=r,o/=r}return it({h:e,s:o===1?1:1-t/(1-o),v:1-o,alpha:n})}var Hn=l(()=>{"use strict";Po()});function Io(e){let t=ft(e);if(t===void 0)return;let o=t.s!==void 0?t.s:0,n=t.v!==void 0?t.v:0,r={mode:"hwb",w:(1-o)*n,b:1-n};return t.h!==void 0&&(r.h=t.h),t.alpha!==void 0&&(r.alpha=t.alpha),r}var Pn=l(()=>{"use strict";$o()});function Ef(e,t){if(!t||t[0]!=="hwb")return;let o={mode:"hwb"},[,n,r,a,i]=t;if(n.type!==d.None){if(n.type===d.Percentage)return;o.h=n.value}if(r.type!==d.None){if(r.type===d.Hue)return;o.w=r.value/100}if(a.type!==d.None){if(a.type===d.Hue)return;o.b=a.value/100}return i.type!==d.None&&(o.alpha=Math.min(1,Math.max(0,i.type===d.Number?i.value:i.value/100))),o}var $n,Cn=l(()=>{"use strict";ee();$n=Ef});var jf,Nn,In=l(()=>{"use strict";Hn();Pn();Cn();W();X();S();G();V();jf={mode:"hwb",toMode:{rgb:No},fromMode:{rgb:Io},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[$n],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:s,fixup:$},w:s,b:s,alpha:{use:s,fixup:v}},difference:{h:sn},average:{h:C}},Nn=jf});function Xt(e){if(e<0)return 0;let t=Math.pow(e,1/On);return 1e4*Math.pow(Math.max(0,t-$e)/(Ce-Ne*t),1/Pe)}function Ht(e){if(e<0)return 0;let t=Math.pow(e/1e4,Pe);return Math.pow(($e+Ce*t)/(1+Ne*t),On)}var Pe,On,$e,Ce,Ne,lt=l(()=>{"use strict";Pe=.1593017578125,On=78.84375,$e=.8359375,Ce=18.8515625,Ne=18.6875});var Oo,Ff,qo,qn=l(()=>{"use strict";lt();Oo=e=>Math.max(e/203,0),Ff=({i:e,t,p:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Xt(e+.008609037037932761*t+.11102962500302593*o),a=Xt(e-.00860903703793275*t-.11102962500302599*o),i=Xt(e+.5600313357106791*t-.32062717498731885*o),f={mode:"xyz65",x:Oo(2.070152218389422*r-1.3263473389671556*a+.2066510476294051*i),y:Oo(.3647385209748074*r+.680566024947227*a-.0453045459220346*i),z:Oo(-.049747207535812*r-.0492609666966138*a+1.1880659249923042*i)};return n!==void 0&&(f.alpha=n),f},qo=Ff});var Ao,Zf,Do,An=l(()=>{"use strict";lt();Ao=(e=0)=>Math.max(e*203,0),Zf=({x:e,y:t,z:o,alpha:n})=>{let r=Ao(e),a=Ao(t),i=Ao(o),f=Ht(.3592832590121217*r+.6976051147779502*a-.0358915932320289*i),u=Ht(-.1920808463704995*r+1.1004767970374323*a+.0753748658519118*i),p=Ht(.0070797844607477*r+.0748396662186366*a+.8433265453898765*i),m=.5*f+.5*u,b=1.61376953125*f-3.323486328125*u+1.709716796875*p,h=4.378173828125*f-4.24560546875*u-.132568359375*p,c={mode:"itp",i:m,t:b,p:h};return n!==void 0&&(c.alpha=n),c},Do=Zf});var Yf,Dn,En=l(()=>{"use strict";S();X();qn();An();ae();ie();Yf={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:qo,rgb:e=>O(qo(e))},fromMode:{xyz65:Do,rgb:e=>Do(I(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:s,t:s,p:s,alpha:{use:s,fixup:v}}},Dn=Yf});var Bf,Wf,Eo,jo,Gf,Pt,Jo=l(()=>{"use strict";lt();Bf=134.03437499999998,Wf=16295499532821565e-27,Eo=e=>{if(e<0)return 0;let t=Math.pow(e/1e4,Pe);return Math.pow(($e+Ce*t)/(1+Ne*t),Bf)},jo=(e=0)=>Math.max(e*203,0),Gf=({x:e,y:t,z:o,alpha:n})=>{e=jo(e),t=jo(t),o=jo(o);let r=1.15*e-.15*o,a=.66*t+.34*e,i=Eo(.41478972*r+.579999*a+.014648*o),f=Eo(-.20151*r+1.120649*a+.0531008*o),u=Eo(-.0166008*r+.2648*a+.6684799*o),p=(i+f)/2,m={mode:"jab",j:.44*p/(1-.56*p)-Wf,a:3.524*i-4.066708*f+.542708*u,b:.199076*i+1.096799*f-1.295875*u};return n!==void 0&&(m.alpha=n),m},Pt=Gf});var Vf,jn,Fo,Zo,Uf,$t,Yo=l(()=>{"use strict";lt();Vf=134.03437499999998,jn=16295499532821565e-27,Fo=e=>{if(e<0)return 0;let t=Math.pow(e,1/Vf);return 1e4*Math.pow(($e-t)/(Ne*t-Ce),1/Pe)},Zo=e=>e/203,Uf=({j:e,a:t,b:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=(e+jn)/(.44+.56*(e+jn)),a=Fo(r+.13860504*t+.058047316*o),i=Fo(r-.13860504*t-.058047316*o),f=Fo(r-.096019242*t-.8118919*o),u={mode:"xyz65",x:Zo(1.661373024652174*a-.914523081304348*i+.23136208173913045*f),y:Zo(-.3250758611844533*a+1.571847026732543*i-.21825383453227928*f),z:Zo(-.090982811*a-.31272829*i+1.5227666*f)};return n!==void 0&&(u.alpha=n),u},$t=Uf});var Kf,Ct,Bo=l(()=>{"use strict";Jo();ae();Kf=e=>{let t=Pt(I(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Ct=Kf});var Qf,Nt,Wo=l(()=>{"use strict";ie();Yo();Qf=e=>O($t(e)),Nt=Qf});var el,Jn,Fn=l(()=>{"use strict";Jo();Yo();Bo();Wo();S();X();el={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:Ct,xyz65:Pt},toMode:{rgb:Nt,xyz65:$t},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:s,a:s,b:s,alpha:{use:s,fixup:v}}},Jn=el});var tl,Go,Zn=l(()=>{"use strict";F();tl=({j:e,a:t,b:o,alpha:n})=>{t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.sqrt(t*t+o*o),a={mode:"jch",j:e,c:r};return r&&(a.h=k(Math.atan2(o,t)*180/Math.PI)),n!==void 0&&(a.alpha=n),a},Go=tl});var ol,Vo,Yn=l(()=>{"use strict";ol=({j:e,c:t,h:o,alpha:n})=>{o===void 0&&(o=0);let r={mode:"jab",j:e,a:t?t*Math.cos(o/180*Math.PI):0,b:t?t*Math.sin(o/180*Math.PI):0};return n!==void 0&&(r.alpha=n),r},Vo=ol});var rl,Bn,Wn=l(()=>{"use strict";Zn();Yn();Wo();Bo();W();X();S();G();V();rl={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:Vo,rgb:e=>Nt(Vo(e))},fromMode:{rgb:e=>Go(Ct(e)),jab:Go},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:s,fixup:$},c:s,j:s,alpha:{use:s,fixup:v}},difference:{h:le},average:{h:C}},Bn=rl});var pe,Ie,dt=l(()=>{"use strict";pe=Math.pow(29,3)/Math.pow(3,3),Ie=Math.pow(6,3)/Math.pow(29,3)});var Uo,nl,Oe,It=l(()=>{"use strict";dt();Me();Uo=e=>Math.pow(e,3)>Ie?Math.pow(e,3):(116*e-16)/pe,nl=({l:e,a:t,b:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=(e+16)/116,a=t/500+r,i=r-o/200,f={mode:"xyz50",x:Uo(a)*L.X,y:Uo(r)*L.Y,z:Uo(i)*L.Z};return n!==void 0&&(f.alpha=n),f},Oe=nl});var al,U,qe=l(()=>{"use strict";ye();al=({x:e,y:t,z:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=J({r:e*3.1341359569958707-t*1.6173863321612538-.4906619460083532*o,g:e*-.978795502912089+t*1.916254567259524+.03344273116131949*o,b:e*.07195537988411677-t*.2289768264158322+1.405386058324125*o});return n!==void 0&&(r.alpha=n),r},U=al});var il,Ot,Ko=l(()=>{"use strict";It();qe();il=e=>U(Oe(e)),Ot=il});var fl,K,Ae=l(()=>{"use strict";ve();fl=e=>{let{r:t,g:o,b:n,alpha:r}=j(e),a={mode:"xyz50",x:.436065742824811*t+.3851514688337912*o+.14307845442264197*n,y:.22249319175623702*t+.7168870538238823*o+.06061979053616537*n,z:.013923904500943465*t+.09708128566574634*o+.7140993584005155*n};return r!==void 0&&(a.alpha=r),a},K=fl});var Qo,ll,De,qt=l(()=>{"use strict";dt();Me();Qo=e=>e>Ie?Math.cbrt(e):(pe*e+16)/116,ll=({x:e,y:t,z:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Qo(e/L.X),a=Qo(t/L.Y),i=Qo(o/L.Z),f={mode:"lab",l:116*a-16,a:500*(r-a),b:200*(a-i)};return n!==void 0&&(f.alpha=n),f},De=ll});var dl,At,er=l(()=>{"use strict";Ae();qt();dl=e=>{let t=De(K(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},At=dl});function sl(e,t){if(!t||t[0]!=="lab")return;let o={mode:"lab"},[,n,r,a,i]=t;if(!(n.type===d.Hue||r.type===d.Hue||a.type===d.Hue))return n.type!==d.None&&(o.l=Math.min(Math.max(0,n.value),100)),r.type!==d.None&&(o.a=r.type===d.Number?r.value:r.value*125/100),a.type!==d.None&&(o.b=a.type===d.Number?a.value:a.value*125/100),i.type!==d.None&&(o.alpha=Math.min(1,Math.max(0,i.type===d.Number?i.value:i.value/100))),o}var Gn,Vn=l(()=>{"use strict";ee();Gn=sl});var ul,Ee,Dt=l(()=>{"use strict";Ko();It();er();qt();Vn();S();X();ul={mode:"lab",toMode:{xyz50:Oe,rgb:Ot},fromMode:{xyz50:De,rgb:At},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[Gn],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:s,a:s,b:s,alpha:{use:s,fixup:v}}},Ee=ul});var pl,Un,Kn=l(()=>{"use strict";tt();yo();ot();To();Dt();pl={...Ee,mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:wt,rgb:se},fromMode:{xyz65:zt,rgb:ue},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}},Un=pl});function ml(e,t){if(!t||t[0]!=="lch")return;let o={mode:"lch"},[,n,r,a,i]=t;if(n.type!==d.None){if(n.type===d.Hue)return;o.l=Math.min(Math.max(0,n.value),100)}if(r.type!==d.None&&(o.c=Math.max(0,r.type===d.Number?r.value:r.value*150/100)),a.type!==d.None){if(a.type===d.Percentage)return;o.h=a.value}return i.type!==d.None&&(o.alpha=Math.min(1,Math.max(0,i.type===d.Number?i.value:i.value/100))),o}var Qn,ea=l(()=>{"use strict";ee();Qn=ml});var cl,je,Et=l(()=>{"use strict";Re();Se();Ko();er();ea();W();X();S();G();V();cl={mode:"lch",toMode:{lab:A,rgb:e=>Ot(A(e))},fromMode:{rgb:e=>q(At(e)),lab:q},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[Qn],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:s,fixup:$},c:s,l:s,alpha:{use:s,fixup:v}},difference:{h:le},average:{h:C}},je=cl});var hl,ta,oa=l(()=>{"use strict";Re();Se();tt();ot();Et();hl={...je,mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>A(e,"lab65"),rgb:e=>se(A(e,"lab65"))},fromMode:{rgb:e=>q(ue(e),"lch65"),lab65:e=>q(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}},ta=hl});var bl,tr,ra=l(()=>{"use strict";F();bl=({l:e,u:t,v:o,alpha:n})=>{t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.sqrt(t*t+o*o),a={mode:"lchuv",l:e,c:r};return r&&(a.h=k(Math.atan2(o,t)*180/Math.PI)),n!==void 0&&(a.alpha=n),a},tr=bl});var gl,or,na=l(()=>{"use strict";gl=({l:e,c:t,h:o,alpha:n})=>{o===void 0&&(o=0);let r={mode:"luv",l:e,u:t?t*Math.cos(o/180*Math.PI):0,v:t?t*Math.sin(o/180*Math.PI):0};return n!==void 0&&(r.alpha=n),r},or=gl});var aa,ia,xl,vl,yl,Ml,st,rr=l(()=>{"use strict";dt();Me();aa=(e,t,o)=>4*e/(e+15*t+3*o),ia=(e,t,o)=>9*t/(e+15*t+3*o),xl=aa(L.X,L.Y,L.Z),vl=ia(L.X,L.Y,L.Z),yl=e=>e<=Ie?pe*e:116*Math.cbrt(e)-16,Ml=({x:e,y:t,z:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=yl(t/L.Y),a=aa(e,t,o),i=ia(e,t,o);!isFinite(a)||!isFinite(i)?r=a=i=0:(a=13*r*(a-xl),i=13*r*(i-vl));let f={mode:"luv",l:r,u:a,v:i};return n!==void 0&&(f.alpha=n),f},st=Ml});var Tl,_l,kl,wl,zl,ut,nr=l(()=>{"use strict";dt();Me();Tl=(e,t,o)=>4*e/(e+15*t+3*o),_l=(e,t,o)=>9*t/(e+15*t+3*o),kl=Tl(L.X,L.Y,L.Z),wl=_l(L.X,L.Y,L.Z),zl=({l:e,u:t,v:o,alpha:n})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};t===void 0&&(t=0),o===void 0&&(o=0);let r=t/(13*e)+kl,a=o/(13*e)+wl,i=L.Y*(e<=8?e/pe:Math.pow((e+16)/116,3)),f=i*(9*r)/(4*a),u=i*(12-3*r-20*a)/(4*a),p={mode:"xyz50",x:f,y:i,z:u};return n!==void 0&&(p.alpha=n),p},ut=zl});var Ll,Rl,Sl,fa,la=l(()=>{"use strict";ra();na();rr();nr();qe();Ae();W();X();S();G();V();Ll=e=>tr(st(K(e))),Rl=e=>U(ut(or(e))),Sl={mode:"lchuv",toMode:{luv:or,rgb:Rl},fromMode:{rgb:Ll,luv:tr},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:s,fixup:$},c:s,l:s,alpha:{use:s,fixup:v}},difference:{h:le},average:{h:C}},fa=Sl});var Xl,da,sa=l(()=>{"use strict";xe();ve();ye();Xl={...E,mode:"lrgb",toMode:{rgb:J},fromMode:{rgb:j},parse:["srgb-linear"],serialize:"srgb-linear"},da=Xl});var Hl,ua,pa=l(()=>{"use strict";rr();nr();qe();Ae();S();X();Hl={mode:"luv",toMode:{xyz50:ut,rgb:e=>U(ut(e))},fromMode:{xyz50:st,rgb:e=>st(K(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:s,u:s,v:s,alpha:{use:s,fixup:v}}},ua=Hl});var Pl,jt,ar=l(()=>{"use strict";Pl=({r:e,g:t,b:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.cbrt(.412221469470763*e+.5363325372617348*t+.0514459932675022*o),a=Math.cbrt(.2119034958178252*e+.6806995506452344*t+.1073969535369406*o),i=Math.cbrt(.0883024591900564*e+.2817188391361215*t+.6299787016738222*o),f={mode:"oklab",l:.210454268309314*r+.7936177747023054*a-.0040720430116193*i,a:1.9779985324311684*r-2.42859224204858*a+.450593709617411*i,b:.0259040424655478*r+.7827717124575296*a-.8086757549230774*i};return n!==void 0&&(f.alpha=n),f},jt=Pl});var $l,me,pt=l(()=>{"use strict";ve();ar();$l=e=>{let t=jt(j(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},me=$l});var Cl,Q,Je=l(()=>{"use strict";Cl=({l:e,a:t,b:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.pow(e+.3963377773761749*t+.2158037573099136*o,3),a=Math.pow(e-.1055613458156586*t-.0638541728258133*o,3),i=Math.pow(e-.0894841775298119*t-1.2914855480194092*o,3),f={mode:"lrgb",r:4.076741636075957*r-3.3077115392580616*a+.2309699031821044*i,g:-1.2684379732850317*r+2.6097573492876887*a-.3413193760026573*i,b:-.0041960761386756*r-.7034186179359362*a+1.7076146940746117*i};return n!==void 0&&(f.alpha=n),f},Q=Cl});var Nl,ce,mt=l(()=>{"use strict";ye();Je();Nl=e=>J(Q(e)),ce=Nl});function ct(e){let n=1.170873786407767;return .5*(n*e-.206+Math.sqrt((n*e-.206)*(n*e-.206)+4*.03*n*e))}function _e(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function Il(e,t){let o,n,r,a,i,f,u,p;-1.88170328*e-.80936493*t>1?(o=1.19086277,n=1.76576728,r=.59662641,a=.75515197,i=.56771245,f=4.0767416621,u=-3.3077115913,p=.2309699292):1.81444104*e-1.19445276*t>1?(o=.73956515,n=-.45954404,r=.08285427,a=.1254107,i=.14503204,f=-1.2684380046,u=2.6097574011,p=-.3413193965):(o=1.35733652,n=-.00915799,r=-1.1513021,a=-.50559606,i=.00692167,f=-.0041960863,u=-.7034186147,p=1.707614701);let m=o+n*e+r*t+a*e*e+i*e*t,b=.3963377774*e+.2158037573*t,h=-.1055613458*e-.0638541728*t,c=-.0894841775*e-1.291485548*t;{let x=1+m*b,T=1+m*h,_=1+m*c,R=x*x*x,P=T*T*T,Z=_*_*_,oe=3*b*x*x,re=3*h*T*T,Ze=3*c*_*_,Ye=6*b*b*x,Be=6*h*h*T,We=6*c*c*_,ze=f*R+u*P+p*Z,he=f*oe+u*re+p*Ze,Ge=f*Ye+u*Be+p*We;m=m-ze*he/(he*he-.5*ze*Ge)}return m}function ir(e,t){let o=Il(e,t),n=Q({l:1,a:o*e,b:o*t}),r=Math.cbrt(1/Math.max(n.r,n.g,n.b)),a=r*o;return[r,a]}function Ol(e,t,o,n,r,a=null){a||(a=ir(e,t));let i;if((o-r)*a[1]-(a[0]-r)*n<=0)i=a[1]*r/(n*a[0]+a[1]*(r-o));else{i=a[1]*(r-1)/(n*(a[0]-1)+a[1]*(r-o));{let f=o-r,u=n,p=.3963377774*e+.2158037573*t,m=-.1055613458*e-.0638541728*t,b=-.0894841775*e-1.291485548*t,h=f+u*p,c=f+u*m,x=f+u*b;{let T=r*(1-i)+i*o,_=i*n,R=T+_*p,P=T+_*m,Z=T+_*b,oe=R*R*R,re=P*P*P,Ze=Z*Z*Z,Ye=3*h*R*R,Be=3*c*P*P,We=3*x*Z*Z,ze=6*h*h*R,he=6*c*c*P,Ge=6*x*x*Z,Tr=4.0767416621*oe-3.3077115913*re+.2309699292*Ze-1,Kt=4.0767416621*Ye-3.3077115913*Be+.2309699292*We,Hi=4.0767416621*ze-3.3077115913*he+.2309699292*Ge,_r=Kt/(Kt*Kt-.5*Tr*Hi),Qt=-Tr*_r,kr=-1.2684380046*oe+2.6097574011*re-.3413193965*Ze-1,eo=-1.2684380046*Ye+2.6097574011*Be-.3413193965*We,Pi=-1.2684380046*ze+2.6097574011*he-.3413193965*Ge,wr=eo/(eo*eo-.5*kr*Pi),to=-kr*wr,zr=-.0041960863*oe-.7034186147*re+1.707614701*Ze-1,oo=-.0041960863*Ye-.7034186147*Be+1.707614701*We,$i=-.0041960863*ze-.7034186147*he+1.707614701*Ge,Lr=oo/(oo*oo-.5*zr*$i),ro=-zr*Lr;Qt=_r>=0?Qt:1e6,to=wr>=0?to:1e6,ro=Lr>=0?ro:1e6,i+=Math.min(Qt,Math.min(to,ro))}}}return i}function ht(e,t,o=null){o||(o=ir(e,t));let n=o[0],r=o[1];return[r/n,r/(1-n)]}function Jt(e,t,o){let n=ir(t,o),r=Ol(t,o,e,1,e,n),a=ht(t,o,n),i=.11516993+1/(7.4477897+4.1590124*o+t*(-2.19557347+1.75198401*o+t*(-2.13704948-10.02301043*o+t*(-4.24894561+5.38770819*o+4.69891013*t)))),f=.11239642+1/(1.6132032-.68124379*o+t*(.40370612+.90148123*o+t*(-.27087943+.6122399*o+t*(.00299215-.45399568*o-.14661872*t)))),u=r/Math.min(e*a[0],(1-e)*a[1]),p=e*i,m=(1-e)*f,b=.9*u*Math.sqrt(Math.sqrt(1/(1/(p*p*p*p)+1/(m*m*m*m))));return p=e*.4,m=(1-e)*.8,[Math.sqrt(1/(1/(p*p)+1/(m*m))),b,r]}var bt=l(()=>{"use strict";Je()});function Ft(e){let t=e.l!==void 0?e.l:0,o=e.a!==void 0?e.a:0,n=e.b!==void 0?e.b:0,r={mode:"okhsl",l:ct(t)};e.alpha!==void 0&&(r.alpha=e.alpha);let a=Math.sqrt(o*o+n*n);if(!a)return r.s=0,r;let[i,f,u]=Jt(t,o/a,n/a),p;if(a<f){let m=0,b=.8*i,h=1-b/f;p=(a-m)/(b+h*(a-m))*.8}else{let m=f,b=.2*f*f*1.25*1.25/i,h=1-b/(u-f);p=.8+.2*((a-m)/(b+h*(a-m)))}return p&&(r.s=p,r.h=k(Math.atan2(n,o)*180/Math.PI)),r}var ma=l(()=>{"use strict";F();bt()});function Zt(e){let t=e.h!==void 0?e.h:0,o=e.s!==void 0?e.s:0,n=e.l!==void 0?e.l:0,r={mode:"oklab",l:_e(n)};if(e.alpha!==void 0&&(r.alpha=e.alpha),!o||n===1)return r.a=r.b=0,r;let a=Math.cos(t/180*Math.PI),i=Math.sin(t/180*Math.PI),[f,u,p]=Jt(r.l,a,i),m,b,h,c;o<.8?(m=1.25*o,b=0,h=.8*f,c=1-h/u):(m=5*(o-.8),b=u,h=.2*u*u*1.25*1.25/f,c=1-h/(p-u));let x=b+m*h/(1-c*m);return r.a=x*a,r.b=x*i,r}var ca=l(()=>{"use strict";bt()});var ql,ha,ba=l(()=>{"use strict";pt();mt();ma();ca();Ho();ql={...Rt,mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:Ft,rgb:e=>Ft(me(e))},toMode:{oklab:Zt,rgb:e=>ce(Zt(e))}},ha=ql});function Yt(e){let t=e.l!==void 0?e.l:0,o=e.a!==void 0?e.a:0,n=e.b!==void 0?e.b:0,r=Math.sqrt(o*o+n*n),a=r?o/r:1,i=r?n/r:1,[f,u]=ht(a,i),p=.5,m=1-p/f,b=u/(r+t*u),h=b*t,c=b*r,x=_e(h),T=c*x/h,_=Q({l:x,a:a*T,b:i*T}),R=Math.cbrt(1/Math.max(_.r,_.g,_.b,0));t=t/R,r=r/R*ct(t)/t,t=ct(t);let P={mode:"okhsv",s:r?(p+u)*c/(u*p+u*m*c):0,v:t?t/h:0};return P.s&&(P.h=k(Math.atan2(n,o)*180/Math.PI)),e.alpha!==void 0&&(P.alpha=e.alpha),P}var ga=l(()=>{"use strict";F();Je();bt()});function Bt(e){let t={mode:"oklab"};e.alpha!==void 0&&(t.alpha=e.alpha);let o=e.h!==void 0?e.h:0,n=e.s!==void 0?e.s:0,r=e.v!==void 0?e.v:0,a=Math.cos(o/180*Math.PI),i=Math.sin(o/180*Math.PI),[f,u]=ht(a,i),p=.5,m=1-p/f,b=1-n*p/(p+u-u*m*n),h=n*u*p/(p+u-u*m*n),c=_e(b),x=h*c/b,T=Q({l:c,a:a*x,b:i*x}),_=Math.cbrt(1/Math.max(T.r,T.g,T.b,0)),R=_e(r*b),P=h*R/b;return t.l=R*_,t.a=P*a*_,t.b=P*i*_,t}var xa=l(()=>{"use strict";Je();bt()});var Al,va,ya=l(()=>{"use strict";pt();mt();ga();xa();Co();Al={...St,mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:Yt,rgb:e=>Yt(me(e))},toMode:{oklab:Bt,rgb:e=>ce(Bt(e))}},va=Al});function Dl(e,t){if(!t||t[0]!=="oklab")return;let o={mode:"oklab"},[,n,r,a,i]=t;if(!(n.type===d.Hue||r.type===d.Hue||a.type===d.Hue))return n.type!==d.None&&(o.l=Math.min(Math.max(0,n.type===d.Number?n.value:n.value/100),1)),r.type!==d.None&&(o.a=r.type===d.Number?r.value:r.value*.4/100),a.type!==d.None&&(o.b=a.type===d.Number?a.value:a.value*.4/100),i.type!==d.None&&(o.alpha=Math.min(1,Math.max(0,i.type===d.Number?i.value:i.value/100))),o}var Ma,Ta=l(()=>{"use strict";ee();Ma=Dl});var El,_a,ka=l(()=>{"use strict";Je();ar();pt();mt();Ta();Dt();El={...Ee,mode:"oklab",toMode:{lrgb:Q,rgb:ce},fromMode:{lrgb:jt,rgb:me},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[Ma],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`},_a=El});function jl(e,t){if(!t||t[0]!=="oklch")return;let o={mode:"oklch"},[,n,r,a,i]=t;if(n.type!==d.None){if(n.type===d.Hue)return;o.l=Math.min(Math.max(0,n.type===d.Number?n.value:n.value/100),1)}if(r.type!==d.None&&(o.c=Math.max(0,r.type===d.Number?r.value:r.value*.4/100)),a.type!==d.None){if(a.type===d.Percentage)return;o.h=a.value}return i.type!==d.None&&(o.alpha=Math.min(1,Math.max(0,i.type===d.Number?i.value:i.value/100))),o}var wa,za=l(()=>{"use strict";ee();wa=jl});var Jl,La,Ra=l(()=>{"use strict";Et();Re();Se();mt();pt();za();Jl={...je,mode:"oklch",toMode:{oklab:e=>A(e,"oklab"),rgb:e=>ce(A(e,"oklab"))},fromMode:{rgb:e=>q(me(e),"oklch"),oklab:e=>q(e,"oklch")},parse:[wa],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}},La=Jl});var Fl,fr,Sa=l(()=>{"use strict";ve();Fl=e=>{let{r:t,g:o,b:n,alpha:r}=j(e),a={mode:"xyz65",x:.486570948648216*t+.265667693169093*o+.1982172852343625*n,y:.2289745640697487*t+.6917385218365062*o+.079286914093745*n,z:0*t+.0451133818589026*o+1.043944368900976*n};return r!==void 0&&(a.alpha=r),a},fr=Fl});var Zl,lr,Xa=l(()=>{"use strict";ye();Zl=({x:e,y:t,z:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=J({r:e*2.4934969119414263-t*.9313836179191242-.402710784450717*o,g:e*-.8294889695615749+t*1.7626640603183465+.0236246858419436*o,b:e*.0358458302437845-t*.0761723892680418+.9568845240076871*o},"p3");return n!==void 0&&(r.alpha=n),r},lr=Zl});var Yl,Ha,Pa=l(()=>{"use strict";xe();Sa();Xa();ae();ie();Yl={...E,mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>lr(I(e)),xyz65:lr},toMode:{rgb:e=>O(fr(e)),xyz65:fr}},Ha=Yl});var dr,Bl,sr,$a=l(()=>{"use strict";dr=e=>{let t=Math.abs(e);return t>=.001953125?Math.sign(e)*Math.pow(t,.5555555555555556):16*e},Bl=({x:e,y:t,z:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r={mode:"prophoto",r:dr(e*1.3457868816471585-t*.2555720873797946-.0511018649755453*o),g:dr(e*-.5446307051249019+t*1.5082477428451466+.0205274474364214*o),b:dr(e*0+t*0+1.2119675456389452*o)};return n!==void 0&&(r.alpha=n),r},sr=Bl});var ur,Wl,pr,Ca=l(()=>{"use strict";ur=(e=0)=>{let t=Math.abs(e);return t>=.03125?Math.sign(e)*Math.pow(t,1.8):e/16},Wl=e=>{let t=ur(e.r),o=ur(e.g),n=ur(e.b),r={mode:"xyz50",x:.7977666449006423*t+.1351812974005331*o+.0313477341283922*n,y:.2880748288194013*t+.7118352342418731*o+899369387256e-16*n,z:0*t+0*o+.8251046025104602*n};return e.alpha!==void 0&&(r.alpha=e.alpha),r},pr=Wl});var Gl,Na,Ia=l(()=>{"use strict";xe();$a();Ca();qe();Ae();Gl={...E,mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:sr,rgb:e=>sr(K(e))},toMode:{xyz50:pr,rgb:e=>U(pr(e))}},Na=Gl});var Oa,Vl,mr,Ul,cr,qa=l(()=>{"use strict";Oa=1.09929682680944,Vl=.018053968510807,mr=e=>{let t=Math.abs(e);return t>Vl?(Math.sign(e)||1)*(Oa*Math.pow(t,.45)-(Oa-1)):4.5*e},Ul=({x:e,y:t,z:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r={mode:"rec2020",r:mr(e*1.7166511879712683-t*.3556707837763925-.2533662813736599*o),g:mr(e*-.6666843518324893+t*1.6164812366349395+.0157685458139111*o),b:mr(e*.0176398574453108-t*.0427706132578085+.9421031212354739*o)};return n!==void 0&&(r.alpha=n),r},cr=Ul});var Aa,Kl,hr,Ql,br,Da=l(()=>{"use strict";Aa=1.09929682680944,Kl=.018053968510807,hr=(e=0)=>{let t=Math.abs(e);return t<Kl*4.5?e/4.5:(Math.sign(e)||1)*Math.pow((t+Aa-1)/Aa,1/.45)},Ql=e=>{let t=hr(e.r),o=hr(e.g),n=hr(e.b),r={mode:"xyz65",x:.6369580483012911*t+.1446169035862083*o+.1688809751641721*n,y:.262700212011267*t+.6779980715188708*o+.059301716469862*n,z:0*t+.0280726930490874*o+1.0609850577107909*n};return e.alpha!==void 0&&(r.alpha=e.alpha),r},br=Ql});var e0,Ea,ja=l(()=>{"use strict";xe();qa();Da();ae();ie();e0={...E,mode:"rec2020",fromMode:{xyz65:cr,rgb:e=>cr(I(e))},toMode:{xyz65:br,rgb:e=>O(br(e))},parse:["rec2020"],serialize:"rec2020"},Ea=e0});var te,Wt,gr=l(()=>{"use strict";te=.0037930732552754493,Wt=Math.cbrt(te)});var xr,t0,Ja,Fa=l(()=>{"use strict";ve();gr();xr=e=>Math.cbrt(e)-Wt,t0=e=>{let{r:t,g:o,b:n,alpha:r}=j(e),a=xr(.3*t+.622*o+.078*n+te),i=xr(.23*t+.692*o+.078*n+te),f=xr(.2434226892454782*t+.2047674442449682*o+.5518098665095535*n+te),u={mode:"xyb",x:(a-i)/2,y:(a+i)/2,b:f-(a+i)/2};return r!==void 0&&(u.alpha=r),u},Ja=t0});var vr,o0,Za,Ya=l(()=>{"use strict";ye();gr();vr=e=>Math.pow(e+Wt,3),o0=({x:e,y:t,b:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=vr(e+t)-te,a=vr(t-e)-te,i=vr(o+t)-te,f=J({r:11.031566904639861*r-9.866943908131562*a-.16462299650829934*i,g:-3.2541473810744237*r+4.418770377582723*a-.16462299650829934*i,b:-3.6588512867136815*r+2.7129230459360922*a+1.9459282407775895*i});return n!==void 0&&(f.alpha=n),f},Za=o0});var r0,Ba,Wa=l(()=>{"use strict";S();X();Fa();Ya();r0={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:Za},fromMode:{rgb:Ja},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:s,y:s,b:s,alpha:{use:s,fixup:v}}},Ba=r0});var n0,Ga,Va=l(()=>{"use strict";qe();qt();Ae();It();S();X();n0={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:U,lab:De},fromMode:{rgb:K,lab:Oe},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:s,y:s,z:s,alpha:{use:s,fixup:v}}},Ga=n0});var a0,Ua,Ka=l(()=>{"use strict";a0=e=>{let{x:t,y:o,z:n,alpha:r}=e;t===void 0&&(t=0),o===void 0&&(o=0),n===void 0&&(n=0);let a={mode:"xyz50",x:1.0479298208405488*t+.0229467933410191*o-.0501922295431356*n,y:.0296278156881593*t+.990434484573249*o-.0170738250293851*n,z:-.0092430581525912*t+.0150551448965779*o+.7518742899580008*n};return r!==void 0&&(a.alpha=r),a},Ua=a0});var i0,Qa,ei=l(()=>{"use strict";i0=e=>{let{x:t,y:o,z:n,alpha:r}=e;t===void 0&&(t=0),o===void 0&&(o=0),n===void 0&&(n=0);let a={mode:"xyz65",x:.9554734527042182*t-.0230985368742614*o+.0632593086610217*n,y:-.0283697069632081*t+1.0099954580058226*o+.021041398966943*n,z:.0123140016883199*t-.0205076964334779*o+1.3303659366080753*n};return r!==void 0&&(a.alpha=r),a},Qa=i0});var f0,ti,oi=l(()=>{"use strict";ie();ae();Ka();ei();S();X();f0={mode:"xyz65",toMode:{rgb:O,xyz50:Ua},fromMode:{rgb:I,xyz50:Qa},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:s,y:s,z:s,alpha:{use:s,fixup:v}}},ti=f0});var l0,ri,ni=l(()=>{"use strict";l0=({r:e,g:t,b:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r={mode:"yiq",y:.29889531*e+.58662247*t+.11448223*o,i:.59597799*e-.2741761*t-.32180189*o,q:.21147017*e-.52261711*t+.31114694*o};return n!==void 0&&(r.alpha=n),r},ri=l0});var d0,ai,ii=l(()=>{"use strict";d0=({y:e,i:t,q:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r={mode:"rgb",r:e+.95608445*t+.6208885*o,g:e-.27137664*t-.6486059*o,b:e-1.10561724*t+1.70250126*o};return n!==void 0&&(r.alpha=n),r},ai=d0});var s0,fi,li=l(()=>{"use strict";ni();ii();S();X();s0={mode:"yiq",toMode:{rgb:ai},fromMode:{rgb:ri},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:s,i:s,q:s,alpha:{use:s,fixup:v}}},fi=s0});var u0,p0,di,si=l(()=>{"use strict";u0=(e,t)=>Math.round(e*(t=Math.pow(10,t)))/t,p0=(e=4)=>t=>typeof t=="number"?u0(t,e):t,di=p0});var ih,m0,yr,c0,fh,ui,Gt,pi=l(()=>{"use strict";Ke();si();ih=di(2),m0=e=>Math.max(0,Math.min(1,e||0)),yr=e=>Math.round(m0(e)*255),c0=B("rgb"),fh=B("hsl"),ui=e=>{if(e===void 0)return;let t=yr(e.r),o=yr(e.g),n=yr(e.b);return"#"+(1<<24|t<<16|o<<8|n).toString(16).slice(1)},Gt=e=>ui(c0(e))});var mi,ci,hi,bi=l(()=>{"use strict";Ke();io();Le();mi=(e,t="rgb",o=!1)=>{let n=t?ge(t).channels:null,r=t?B(t):Ue;return a=>{let i=r(a);if(!i)return;let f=(n||ge(i.mode).channels).reduce((p,m)=>{let b=e(i[m],m,i,t);return b!==void 0&&!isNaN(b)&&(p[m]=b),p},{mode:i.mode});if(!o)return f;let u=Ue(a);return u&&u.mode!==f.mode?B(u.mode)(f):f}},ci=(e,t,o)=>t!=="alpha"?(e||0)*(o.alpha!==void 0?o.alpha:1):e,hi=(e,t,o)=>t!=="alpha"&&o.alpha!==0?(e||0)/(o.alpha!==void 0?o.alpha:1):e});var h0,gi,xi=l(()=>{"use strict";h0=e=>{e[0]===void 0&&(e[0]=0),e[e.