You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

culori

Package Overview
Dependencies
Maintainers
3
Versions
256
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.19.0 to 0.19.1

2

build/culori.umd.js

@@ -1,1 +0,1 @@

!function(r,a){"object"==typeof exports&&"undefined"!=typeof module?a(exports):"function"==typeof define&&define.amd?define(["exports"],a):a((r="undefined"!=typeof globalThis?globalThis:r||self).culori={})}(this,(function(r){"use strict";var a=function(r,a){if("number"==typeof r)return 3===a?{mode:"rgb",r:(r>>8&15|r>>4&240)/255,g:(r>>4&15|240&r)/255,b:(15&r|r<<4&240)/255}:4===a?{mode:"rgb",r:(r>>12&15|r>>8&240)/255,g:(r>>8&15|r>>4&240)/255,b:(r>>4&15|240&r)/255,alpha:(15&r|r<<4&240)/255}:6===a?{mode:"rgb",r:(r>>16&255)/255,g:(r>>8&255)/255,b:(255&r)/255}:8===a?{mode:"rgb",r:(r>>24&255)/255,g:(r>>16&255)/255,b:(r>>8&255)/255,alpha:(255&r)/255}:void 0},n={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},t=(/([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)/+"").replace(/^\/|\/$/g,""),e=t+"%",o=t+"%?",i="(?:"+t+"%|"+t+")",u="(?:"+t+"(deg|grad|rad|turn)|"+t+")",h="\\s*,\\s*",l="\\s+",c=new RegExp("^rgba?\\(\\s*"+t+h+t+h+t+"\\s*(?:,\\s*"+i+"\\s*)?\\)$"),f=new RegExp("^rgba?\\(\\s*"+e+h+e+h+e+"\\s*(?:,\\s*"+i+"\\s*)?\\)$"),p=new RegExp("^rgba?\\(\\s*"+t+l+t+l+t+"\\s*(?:\\/\\s*"+i+"\\s*)?\\)$"),s=new RegExp("^rgba?\\(\\s*"+e+l+e+l+e+"\\s*(?:\\/\\s*"+i+"\\s*)?\\)$"),d=new RegExp("^hsla?\\(\\s*"+u+h+e+h+e+"\\s*(?:,\\s*"+i+"\\s*)?\\)$"),v=new RegExp("^hsla?\\(\\s*"+u+l+e+l+e+"\\s*(?:\\/\\s*"+i+"\\s*)?\\)$"),b=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,g=new RegExp("^hwb\\(\\s*"+u+l+e+l+e+"\\s*(?:\\/\\s*"+i+"\\s*)?\\)$"),M=new RegExp("^lab\\(\\s*"+o+l+t+l+t+"\\s*(?:\\/\\s*"+i+"\\s*)?\\)$"),m=new RegExp("^lch\\(\\s*"+o+l+t+l+u+"\\s*(?:\\/\\s*"+i+"\\s*)?\\)$"),y=function(r,a,n){return r+n*(a-r)},x=function(r){return void 0===r&&(r=1),1===r?function(r){return r}:function(a){return Math.pow(a,r)}},w=function(r){return function(a){var n=function(r){for(var a=[],n=0;n<r.length-1;n++){var t=r[n],e=r[n+1];void 0===t&&void 0===e?a.push(void 0):void 0!==t&&void 0!==e?a.push([t,e]):a.push(void 0!==t?[t,t]:[e,e])}return a}(a);return function(a){var t=a*n.length,e=1===a?n.length-1:Math.floor(t),o=n[e];return void 0===o?void 0:r(o[0],o[1],t-e)}}},k=w(y),z=function(r){var a=!1,n=r.map((function(r){return void 0!==r?(a=!0,r):1}));return a?n:r},P={mode:"rgb",channels:["r","g","b","alpha"],alias:["srgb"],parsers:[function(r){var n;return(n=r.match(b))?a(parseInt(n[1],16),n[1].length):void 0},function(r){var a,n;if(a=r.match(c)||r.match(p))n={mode:"rgb",r:a[1]/255,g:a[2]/255,b:a[3]/255};else{if(!(a=r.match(f)||r.match(s)))return;n={mode:"rgb",r:a[1]/100,g:a[2]/100,b:a[3]/100}}return void 0!==a[4]?n.alpha=a[4]/100:void 0!==a[5]&&(n.alpha=+a[5]),n},function(r){return a(n[r.toLowerCase()],6)},function(r){return"transparent"===r?a(0,8):void 0}],interpolate:{r:k,g:k,b:k,alpha:{use:k,fixup:z}}},I=function(r){var a=Math.abs(r);return a<.04045?r/12.92:(Math.sign(r)||1)*Math.pow((a+.055)/1.055,2.4)},q=function(r){var a=r.r,n=r.g,t=r.b,e=r.alpha,o={mode:"lrgb",r:I(a),g:I(n),b:I(t)};return void 0!==e&&(o.alpha=e),o},j=function(r){var a=Math.abs(r);return a>.0031308?(Math.sign(r)||1)*(1.055*Math.pow(a,1/2.4)-.055):12.92*r},S=function(r,a){var n=r.r,t=r.g,e=r.b,o=r.alpha;void 0===a&&(a="rgb");var i={mode:a,r:j(n),g:j(t),b:j(e)};return void 0!==o&&(i.alpha=o),i},E=Object.assign({},P,{mode:"lrgb",output:{rgb:S},input:{rgb:q},parsers:[]}),O=function(r){return Math.pow(Math.abs(r),563/256)*Math.sign(r)},A=function(r){var a=O(r.r),n=O(r.g),t=O(r.b),e={mode:"xyz65",x:.5766690429101305*a+.1855582379065463*n+.1882286462349947*t,y:.29734497525053605*a+.6273635662554661*n+.07529145849399788*t,z:.02703136138641234*a+.07068885253582723*n+.9913375368376388*t};return void 0!==r.alpha&&(e.alpha=r.alpha),e},C=function(r){return Math.pow(Math.abs(r),256/563)*Math.sign(r)},H=function(r){var a=r.x,n=r.y,t=r.z,e=r.alpha,o={mode:"a98",r:C(2.0415879038107465*a-.5650069742788596*n-.34473135077832956*t),g:C(-.9692436362808795*a+1.8759675015077202*n+.04155505740717557*t),b:C(.013444280632031142*a-.11836239223101838*n+1.0151749943912054*t)};return void 0!==e&&(o.alpha=e),o},R=function(r){var a=q(r),n=a.r,t=a.g,e=a.b,o=a.alpha,i={mode:"xyz65",x:.4124564*n+.3575761*t+.1804375*e,y:.2126729*n+.7151522*t+.072175*e,z:.0193339*n+.119192*t+.9503041*e};return void 0!==o&&(i.alpha=o),i},N=function(r){var a=r.x,n=r.y,t=r.z,e=r.alpha,o=S({r:3.2404542*a-1.5371385*n-.4985314*t,g:-.969266*a+1.8760108*n+.041556*t,b:.0556434*a-.2040259*n+1.0572252*t});return void 0!==e&&(o.alpha=e),o},$=Object.assign({},P,{mode:"a98",alias:["a98-rgb"],parsers:[],input:{rgb:function(r){return H(R(r))},xyz65:H},output:{rgb:function(r){return N(A(r))},xyz65:A}}),D=function(r){var a=q(r),n=a.r,t=a.g,e=a.b,o=a.alpha,i={mode:"xyz65",x:.4865709*n+.2656676*t+.1982172*e,y:.2289745*n+.6917385*t+.0792869*e,z:0*n+.0451133*t+1.0439443*e};return void 0!==o&&(i.alpha=o),i},L=function(r){var a=r.x,n=r.y,t=r.z,e=r.alpha,o=S({r:2.4934969*a-.9313836*n-.4027107*t,g:-.8294889*a+1.762664*n+.0236246*t,b:.0358458*a-.0761723*n+.9568845*t},"p3");return void 0!==e&&(o.alpha=e),o},T=Object.assign({},P,{mode:"p3",alias:["display-p3"],input:{rgb:function(r){return L(R(r))},xyz65:L},output:{rgb:function(r){return N(D(r))},xyz65:D},parsers:[]}),B=function(r){var a=Math.abs(r);return a>=1/512?Math.sign(r)*Math.pow(a,1/1.8):16*r},F=function(r){var a=r.x,n=r.y,t=r.z,e=r.alpha,o={mode:"prophoto",r:B(1.3457989731028281*a-.25558010007997534*n-.05110628506753401*t),g:B(-.5446224939028347*a+1.5082327413132781*n+.02053603239147973*t),b:B(0*a+0*n+1.2119675456389454*t)};return void 0!==e&&(o.alpha=e),o},G=function(r){var a=Math.abs(r);return a>=16/512?Math.sign(r)*Math.pow(a,1.8):r/16},W=function(r){var a=G(r.r),n=G(r.g),t=G(r.b),e={mode:"xyz65",x:.7977604896723027*a+.13518583717574031*n+.0313493495815248*t,y:.2880711282292934*a+.7118432178101014*n+8565396060525902e-20*t,z:0*a+0*n+.8251046025104601*t};return void 0!==r.alpha&&(e.alpha=r.alpha),e},_=function(r){var a=r.x,n=r.y,t=r.z,e=r.alpha,o=S({r:3.1338561*a-1.6168667*n-.4906146*t,g:-.9787684*a+1.9161415*n+.033454*t,b:.0719453*a-.2289914*n+1.4052427*t});return void 0!==e&&(o.alpha=e),o},K=function(r){var a=q(r),n=a.r,t=a.g,e=a.b,o=a.alpha,i={mode:"xyz",x:.4360747*n+.3850649*t+.1430804*e,y:.2225045*n+.7168786*t+.0606169*e,z:.0139322*n+.0971045*t+.7141733*e};return void 0!==o&&(i.alpha=o),i},J=Object.assign({},P,{mode:"prophoto",alias:["prophoto-rgb"],parsers:[],input:{xyz:F,rgb:function(r){return F(K(r))}},output:{xyz:W,rgb:function(r){return _(W(r))}}}),Q=1.09929682680944,U=function(r){var a=Math.abs(r);return a>.018053968510807?(Math.sign(r)||1)*(Q*Math.pow(a,.45)-(Q-1)):4.5*r},V=function(r){var a=r.x,n=r.y,t=r.z,e=r.alpha,o={mode:"rec2020",r:U(1.7166511879712674*a-.35567078377639233*n-.25336628137365974*t),g:U(-.6666843518324892*a+1.6164812366349395*n+.01576854581391113*t),b:U(.017639857445310783*a-.042770613257808524*n+.9421031212354738*t)};return void 0!==e&&(o.alpha=e),o},X=1.09929682680944,Y=function(r){var a=Math.abs(r);return a<.08124285829863151?r/4.5:(Math.sign(r)||1)*Math.pow((a+X-1)/X,1/.45)},Z=function(r){var a=Y(r.r),n=Y(r.g),t=Y(r.b),e={mode:"xyz65",x:.6369580483012914*a+.14461690358620832*n+.1688809751641721*t,y:.2627002120112671*a+.6779980715188708*n+.05930171646986196*t,z:0*a+.028072693049087428*n+1.060985057710791*t};return void 0!==r.alpha&&(e.alpha=r.alpha),e},rr=Object.assign({},P,{mode:"rec2020",input:{xyz:V,rgb:function(r){return V(R(r))}},output:{xyz:Z,rgb:function(r){return N(Z(r))}},parsers:[]}),ar=function(r){return(r%=360)<0?r+360:r};var nr=function(r,a){switch(a){case"deg":return+r;case"rad":return r/Math.PI*180;case"grad":return r/10*9;case"turn":return 360*r}},tr=function(r,a){return r.map((function(n,t,e){if(void 0===n)return n;var o=ar(n);return 0===t||void 0===r[t-1]?o:a(o-ar(e[t-1]))})).reduce((function(r,a){return r.length&&void 0!==a&&void 0!==r[r.length-1]?(r.push(a+r[r.length-1]),r):(r.push(a),r)}),[])},er=function(r){return tr(r,(function(r){return Math.abs(r)<=180?r:r-360*Math.sign(r)}))},or={},ir={},ur=[],hr=function(r){return r},lr=function(r){or[r.mode]=Object.assign(or[r.mode]||{},r.output),Object.keys(r.input||{}).forEach((function(a){or[a]||(or[a]={}),or[a][r.mode]=r.input[a]})),r.ranges||(r.ranges={}),r.difference||(r.difference={}),r.channels.forEach((function(a){if(void 0===r.ranges[a]&&(r.ranges[a]=[0,1]),!r.interpolate[a])throw new Error("Missing interpolator for: "+a);"function"==typeof r.interpolate[a]&&(r.interpolate[a]={use:r.interpolate[a]}),r.interpolate[a].fixup||(r.interpolate[a].fixup=hr)})),ir[r.mode]=r,(r.parsers||[]).forEach((function(r){return ur.push(r)}))},cr=function(r){return ir[r]},fr=function(r){if("string"==typeof r){for(var a,n=0,t=ur.length;n<t&&void 0===(a=ur[n++](r)););return a}},pr=function(r,a){return void 0===r?void 0:"object"!=typeof r?fr(r):void 0!==r.mode?r:a?Object.assign({},r,{mode:a}):void 0},sr=function(r){return void 0===r&&(r="rgb"),function(a){return void 0!==(a=pr(a,r))?a.mode===r?a:or[a.mode][r]?or[a.mode][r](a):"rgb"===r?or[a.mode].rgb(a):or.rgb[r](or[a.mode].rgb(a)):void 0}},dr=function(r,a){if(void 0===r.h||void 0===a.h||!r.s||!a.s)return 0;var n=ar(r.h),t=ar(a.h),e=Math.sin((t-n+360)/2*Math.PI/180);return 2*Math.sqrt(r.s*a.s)*e},vr=function(r,a){if(void 0===r.h||void 0===a.h)return 0;var n=ar(r.h),t=ar(a.h);return Math.abs(t-n)>180?n-(t-360*Math.sign(t-n)):t-n},br=function(r,a){if(void 0===r.h||void 0===a.h||!r.c||!a.c)return 0;var n=ar(r.h),t=ar(a.h),e=Math.sin((t-n+360)/2*Math.PI/180);return 2*Math.sqrt(r.c*a.c)*e},gr=function(r,a){void 0===r&&(r="rgb"),void 0===a&&(a=[1,1,1,0]);var n=cr(r),t=n.channels,e=n.difference,o=sr(r);return function(r,n){var i=o(r),u=o(n);return Math.sqrt(t.reduce((function(r,n,t){var o=e[n]?e[n](i,u):i[n]-u[n];return r+(a[t]||0)*Math.pow(isNaN(o)?0:o,2)}),0))}},Mr=function(r){var a=r.reduce((function(r,a){if(void 0!==a){var n=a*Math.PI/180;r.sin+=Math.sin(n),r.cos+=Math.cos(n)}return r}),{sin:0,cos:0});return 180*Math.atan2(a.sin,a.cos)/Math.PI},mr=function(r){var a=r.filter((function(r){return void 0!==r}));return a.length?a.reduce((function(r,a){return r+a}),0)/a.length:void 0},yr=function(r){return"function"==typeof r};var xr={mode:"hsl",output:{rgb:function(r){var a=r.h,n=r.s,t=r.l,e=r.alpha;a=ar(a);var o,i=t+n*(t<.5?t:1-t),u=i-2*(i-t)*Math.abs(a/60%2-1);switch(Math.floor(a/60)){case 0:o={r:i,g:u,b:2*t-i};break;case 1:o={r:u,g:i,b:2*t-i};break;case 2:o={r:2*t-i,g:i,b:u};break;case 3:o={r:2*t-i,g:u,b:i};break;case 4:o={r:u,g:2*t-i,b:i};break;case 5:o={r:i,g:2*t-i,b:u};break;default:o={r:2*t-i,g:2*t-i,b:2*t-i}}return o.mode="rgb",void 0!==e&&(o.alpha=e),o}},input:{rgb:function(r){var a=r.r,n=r.g,t=r.b,e=r.alpha,o=Math.max(a,n,t),i=Math.min(a,n,t),u={mode:"hsl",s:o===i?0:(o-i)/(1-Math.abs(o+i-1)),l:.5*(o+i)};return o-i!=0&&(u.h=60*(o===a?(n-t)/(o-i)+6*(n<t):o===n?(t-a)/(o-i)+2:(a-n)/(o-i)+4)),void 0!==e&&(u.alpha=e),u}},channels:["h","s","l","alpha"],ranges:{h:[0,360]},parsers:[function(r){var a=r.match(d)||r.match(v);if(a){var n={mode:"hsl",h:void 0===a[3]?nr(a[1],a[2]):+a[3],s:Math.min(Math.max(0,a[4]/100),1),l:Math.min(Math.max(0,a[5]/100),1)};return void 0!==a[6]?n.alpha=a[6]/100:void 0!==a[7]&&(n.alpha=+a[7]),n}}],interpolate:{h:{use:k,fixup:er},s:k,l:k,alpha:{use:k,fixup:z}},difference:{h:dr},average:{h:Mr}};function wr(r){var a=r.h,n=r.s,t=r.v,e=r.alpha;a=ar(a);var o,i=Math.abs(a/60%2-1);switch(Math.floor(a/60)){case 0:o={r:t,g:t*(1-n*i),b:t*(1-n)};break;case 1:o={r:t*(1-n*i),g:t,b:t*(1-n)};break;case 2:o={r:t*(1-n),g:t,b:t*(1-n*i)};break;case 3:o={r:t*(1-n),g:t*(1-n*i),b:t};break;case 4:o={r:t*(1-n*i),g:t*(1-n),b:t};break;case 5:o={r:t,g:t*(1-n),b:t*(1-n*i)};break;default:o={r:t*(1-n),g:t*(1-n),b:t*(1-n)}}return o.mode="rgb",void 0!==e&&(o.alpha=e),o}function kr(r){var a=r.r,n=r.g,t=r.b,e=r.alpha,o=Math.max(a,n,t),i=Math.min(a,n,t),u={mode:"hsv",s:0===o?0:1-i/o,v:o};return o-i!=0&&(u.h=60*(o===a?(n-t)/(o-i)+6*(n<t):o===n?(t-a)/(o-i)+2:(a-n)/(o-i)+4)),void 0!==e&&(u.alpha=e),u}var zr={mode:"hsv",output:{rgb:wr},input:{rgb:kr},channels:["h","s","v","alpha"],ranges:{h:[0,360]},interpolate:{h:{use:k,fixup:er},s:k,v:k,alpha:{use:k,fixup:z}},difference:{h:dr},average:{h:Mr}};var Pr={mode:"hsi",output:{rgb:function(r){var a=r.h,n=r.s,t=r.i,e=r.alpha;a=ar(a);var o,i=Math.abs(a/60%2-1);switch(Math.floor(a/60)){case 0:o={r:t*(1+n*(3/(2-i)-1)),g:t*(1+n*(3*(1-i)/(2-i)-1)),b:t*(1-n)};break;case 1:o={r:t*(1+n*(3*(1-i)/(2-i)-1)),g:t*(1+n*(3/(2-i)-1)),b:t*(1-n)};break;case 2:o={r:t*(1-n),g:t*(1+n*(3/(2-i)-1)),b:t*(1+n*(3*(1-i)/(2-i)-1))};break;case 3:o={r:t*(1-n),g:t*(1+n*(3*(1-i)/(2-i)-1)),b:t*(1+n*(3/(2-i)-1))};break;case 4:o={r:t*(1+n*(3*(1-i)/(2-i)-1)),g:t*(1-n),b:t*(1+n*(3/(2-i)-1))};break;case 5:o={r:t*(1+n*(3/(2-i)-1)),g:t*(1-n),b:t*(1+n*(3*(1-i)/(2-i)-1))};break;default:o={r:t*(1-n),g:t*(1-n),b:t*(1-n)}}return o.mode="rgb",void 0!==e&&(o.alpha=e),o}},input:{rgb:function(r){var a=r.r,n=r.g,t=r.b,e=r.alpha,o=Math.max(a,n,t),i=Math.min(a,n,t),u={mode:"hsi",s:a+n+t===0?0:1-3*i/(a+n+t),i:(a+n+t)/3};return o-i!=0&&(u.h=60*(o===a?(n-t)/(o-i)+6*(n<t):o===n?(t-a)/(o-i)+2:(a-n)/(o-i)+4)),void 0!==e&&(u.alpha=e),u}},channels:["h","s","i","alpha"],ranges:{h:[0,360]},interpolate:{h:{use:k,fixup:er},s:k,i:k,alpha:{use:k,fixup:z}},difference:{h:dr},average:{h:Mr}};var Ir,qr={mode:"hwb",output:{rgb:function(r){var a=r.h,n=r.w,t=r.b;if(n+t>1){var e=n+t;n/=e,t/=e}return wr({h:a,s:1===t?1:1-n/(1-t),v:1-t,alpha:r.alpha})}},input:{rgb:function(r){var a=kr(r);if(void 0!==a){var n={mode:"hwb",w:(1-a.s)*a.v,b:1-a.v};return void 0!==a.h&&(n.h=a.h),void 0!==a.alpha&&(n.alpha=a.alpha),n}}},channels:["h","w","b","alpha"],ranges:{h:[0,360]},parsers:[function(r){var a=r.match(g);if(a){var n={mode:"hwb",h:void 0===a[3]?nr(a[1],a[2]):+a[3],w:a[4]/100,b:a[5]/100};if(n.w+n.b>1){var t=n.w+n.b;n.w/=t,n.b/=t}return void 0!==a[6]?n.alpha=a[6]/100:void 0!==a[7]&&(n.alpha=+a[7]),n}}],interpolate:{h:{use:k,fixup:er},w:k,b:k,alpha:{use:k,fixup:z}},difference:{h:vr},average:{h:Mr}},jr=function(r){var a=Math.pow(r/1e4,.1593017578125);return Math.pow((.8359375+18.8515625*a)/(1+18.6875*a),134.03437499999998)},Sr=function(r){return Math.max(203*r,0)},Er=function(r){var a=r.x,n=r.y,t=r.z,e=r.alpha;a=Sr(a),n=Sr(n);var o=1.15*a-.15*(t=Sr(t)),i=.66*n+.34*a,u=jr(.41478972*o+.579999*i+.014648*t),h=jr(-.20151*o+1.120649*i+.0531008*t),l=jr(-.0166008*o+.2648*i+.6684799*t),c=(u+h)/2,f={mode:"jab",j:.44*c/(1-.56*c)-16295499532821565e-27,a:3.524*u-4.066708*h+.542708*l,b:.199076*u+1.096799*h-1.295875*l};return void 0!==e&&(f.alpha=e),f},Or=16295499532821565e-27,Ar=function(r){var a=Math.pow(r,.007460772656268216);return 1e4*Math.pow((.8359375-a)/(18.6875*a-18.8515625),6.277394636015326)},Cr=function(r){return r/203},Hr=function(r){var a=r.j,n=r.a,t=r.b,e=r.alpha,o=(a+Or)/(.44+.56*(a+Or)),i=Ar(o+.13860504*n+.058047316*t),u=Ar(o-.13860504*n-.058047316*t),h=Ar(o-.096019242*n-.8118919*t),l={mode:"xyz65",x:Cr(1.661373024652174*i-.914523081304348*u+.23136208173913045*h),y:Cr(-.3250758611844533*i+1.571847026732543*u-.21825383453227928*h),z:Cr(-.090982811*i-.31272829*u+1.5227666*h)};return void 0!==e&&(l.alpha=e),l},Rr=function(r){var a=Er(R(r));return r.r===r.b&&r.b===r.g&&(a.a=a.b=0),a},Nr=function(r){return N(Hr(r))},$r={mode:"jab",channels:["j","a","b","alpha"],input:{rgb:Rr,xyz65:Er},output:{rgb:Nr,xyz65:Hr},ranges:{j:[0,.221],a:[-.108,.129],b:[-.185,.134]},interpolate:{j:k,a:k,b:k,alpha:{use:k,fixup:z}}},Dr=function(r){var a=r.j,n=r.a,t=r.b,e=r.alpha,o=Math.sqrt(n*n+t*t),i={mode:"jch",j:a,c:o};return o&&(i.h=ar(180*Math.atan2(t,n)/Math.PI)),void 0!==e&&(i.alpha=e),i},Lr=function(r){var a=r.j,n=r.c,t=r.h,e=r.alpha,o={mode:"jab",j:a,a:n?n*Math.cos(t/180*Math.PI):0,b:n?n*Math.sin(t/180*Math.PI):0};return void 0!==e&&(o.alpha=e),o},Tr={mode:"jch",output:{lab:Lr,rgb:function(r){return Nr(Lr(r))}},input:{rgb:function(r){return Dr(Rr(r))},lab:Dr},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:k,fixup:er},c:k,j:k,alpha:{use:k,fixup:z}},difference:{h:br},average:{h:Mr}},Br=.96422,Fr=.82521,Gr=Math.pow(29,3)/Math.pow(3,3),Wr=Math.pow(6,3)/Math.pow(29,3),_r=function(r){return Math.pow(r,3)>Wr?Math.pow(r,3):(116*r-16)/Gr},Kr=function(r){var a=r.l,n=r.a,t=r.b,e=r.alpha,o=(a+16)/116,i=o-t/200,u={mode:"xyz",x:_r(n/500+o)*Br,y:1*_r(o),z:_r(i)*Fr};return void 0!==e&&(u.alpha=e),u},Jr=function(r){return _(Kr(r))},Qr=function(r){return r>Wr?Math.cbrt(r):(Gr*r+16)/116},Ur=function(r){var a=r.x,n=r.y,t=r.z,e=r.alpha,o=Qr(a/Br),i=Qr(n/1),u={mode:"lab",l:116*i-16,a:500*(o-i),b:200*(i-Qr(t/Fr))};return void 0!==e&&(u.alpha=e),u},Vr=function(r){var a=Ur(K(r));return r.r===r.b&&r.b===r.g&&(a.a=a.b=0),a},Xr={mode:"lab",alias:["lab-d50"],output:{xyz:Kr,rgb:Jr},input:{xyz:Ur,rgb:Vr},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-79.167,93.408],b:[-111.859,93.246]},parsers:[function(r){var a=r.match(M);if(a){var n={mode:"lab",l:+a[1],a:+a[2],b:+a[3]};return void 0!==a[4]?n.alpha=a[4]/100:void 0!==a[5]&&(n.alpha=+a[5]),n}}],interpolate:{l:k,a:k,b:k,alpha:{use:k,fixup:z}}},Yr=.95047,Zr=1.08883,ra=Math.pow(29,3)/Math.pow(3,3),aa=Math.pow(6,3)/Math.pow(29,3),na=function(r){return Math.pow(r,3)>aa?Math.pow(r,3):(116*r-16)/ra},ta=function(r){var a=r.l,n=r.a,t=r.b,e=r.alpha,o=(a+16)/116,i=o-t/200,u={mode:"xyz65",x:na(n/500+o)*Yr,y:1*na(o),z:na(i)*Zr};return void 0!==e&&(u.alpha=e),u},ea=function(r){return N(ta(r))},oa=function(r){return r>aa?Math.cbrt(r):(ra*r+16)/116},ia=function(r){var a=r.x,n=r.y,t=r.z,e=r.alpha,o=oa(a/Yr),i=oa(n/1),u={mode:"lab65",l:116*i-16,a:500*(o-i),b:200*(i-oa(t/Zr))};return void 0!==e&&(u.alpha=e),u},ua=function(r){var a=ia(R(r));return r.r===r.b&&r.b===r.g&&(a.a=a.b=0),a},ha=Object.assign({},Xr,{mode:"lab65",alias:["lab-d65"],output:{xyz65:ta,rgb:ea},input:{xyz65:ia,rgb:ua},ranges:{l:[0,100],a:[-86.183,98.234],b:[-107.86,94.478]},parsers:[]}),la=function(r,a){var n=r.l,t=r.a,e=r.b,o=r.alpha;void 0===a&&(a="lch");var i=Math.sqrt(t*t+e*e),u={mode:a,l:n,c:i};return i&&(u.h=ar(180*Math.atan2(e,t)/Math.PI)),void 0!==o&&(u.alpha=o),u},ca=function(r,a){var n=r.l,t=r.c,e=r.h,o=r.alpha;void 0===a&&(a="lab");var i={mode:a,l:n,a:t?t*Math.cos(e/180*Math.PI):0,b:t?t*Math.sin(e/180*Math.PI):0};return void 0!==o&&(i.alpha=o),i},fa={mode:"lch",alias:["lch-d50"],output:{lab:ca,rgb:function(r){return Jr(ca(r))}},input:{rgb:function(r){return la(Vr(r))},lab:la},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,131.008],h:[0,360]},parsers:[function(r){var a=r.match(m);if(a){var n={mode:"lch",l:+a[1],c:Math.max(0,+a[2]),h:void 0===a[5]?nr(a[3],a[4]):+a[5]};return void 0!==a[6]?n.alpha=a[6]/100:void 0!==a[7]&&(n.alpha=+a[7]),n}}],interpolate:{h:{use:k,fixup:er},c:k,l:k,alpha:{use:k,fixup:z}},difference:{h:br},average:{h:Mr}},pa=Object.assign({},fa,{mode:"lch65",alias:["lch-d65"],output:{lab65:function(r){return ca(r,"lab65")},rgb:function(r){return ea(ca(r,"lab65"))}},input:{rgb:function(r){return la(ua(r),"lch65")},lab65:function(r){return la(r,"lch65")}},parsers:[],ranges:{l:[0,100],c:[0,133.807],h:[0,360]}}),sa=function(r,a,n){return 4*r/(r+15*a+3*n)},da=function(r,a,n){return 9*a/(r+15*a+3*n)},va=sa(Br,1,Fr),ba=da(Br,1,Fr),ga=function(r){var a,n=r.x,t=r.y,e=r.z,o=r.alpha,i=(a=t/1)<=Wr?Gr*a:116*Math.cbrt(a)-16,u=sa(n,t,e),h=da(n,t,e);isFinite(u)&&isFinite(h)?(u=13*i*(u-va),h=13*i*(h-ba)):i=u=h=0;var l={mode:"luv",l:i,u:u,v:h};return void 0!==o&&(l.alpha=o),l},Ma=function(r){return ga(K(r))},ma=4*(Ir=Br)/(Ir+15*1+3*Fr),ya=function(r,a,n){return 9*a/(r+15*a+3*n)}(Br,1,Fr),xa=function(r){var a=r.l,n=r.u,t=r.v,e=r.alpha,o=n/(13*a)+ma,i=t/(13*a)+ya,u=1*(a<=8?a/Gr:Math.pow((a+16)/116,3)),h={mode:"xyz",x:u*(9*o)/(4*i),y:u,z:u*(12-3*o-20*i)/(4*i)};return void 0!==e&&(h.alpha=e),h},wa=function(r){return _(xa(r))},ka={mode:"luv",output:{xyz:xa,rgb:wa},input:{xyz:ga,rgb:Ma},channels:["l","u","v","alpha"],ranges:{l:[0,100],u:[-84.86,174.87],v:[-125.744,87.165]},interpolate:{l:k,u:k,v:k,alpha:{use:k,fixup:z}}},za=function(r){var a=r.l,n=r.u,t=r.v,e=r.alpha,o=Math.sqrt(n*n+t*t),i={mode:"lchuv",l:a,c:o};return o&&(i.h=ar(180*Math.atan2(t,n)/Math.PI)),void 0!==e&&(i.alpha=e),i},Pa=function(r){var a=r.l,n=r.c,t=r.h,e=r.alpha,o={mode:"luv",l:a,u:n?n*Math.cos(t/180*Math.PI):0,v:n?n*Math.sin(t/180*Math.PI):0};return void 0!==e&&(o.alpha=e),o},Ia={mode:"lchuv",output:{luv:Pa,rgb:function(r){return wa(Pa(r))}},input:{rgb:function(r){return za(Ma(r))},luv:za},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,131.008],h:[0,360]},interpolate:{h:{use:k,fixup:er},c:k,l:k,alpha:{use:k,fixup:z}},difference:{h:br},average:{h:Mr}},qa=[-.14861,1.78277,-.29227,-.90649,1.97294,0],ja=Math.PI/180,Sa=180/Math.PI,Ea=qa[3]*qa[4],Oa=qa[1]*qa[4],Aa=qa[1]*qa[2]-qa[0]*qa[3],Ca={mode:"cubehelix",channels:["h","s","l","alpha"],ranges:{h:[0,360],s:[0,4.6143]},input:{rgb:function(r){var a=r.r,n=r.g,t=r.b,e=r.alpha,o=(Aa*t+a*Ea-n*Oa)/(Aa+Ea-Oa),i=t-o,u=(qa[4]*(n-o)-qa[2]*i)/qa[3],h={mode:"cubehelix",l:o,s:0===o||1===o?void 0:Math.sqrt(i*i+u*u)/(qa[4]*o*(1-o))};return h.s&&(h.h=Math.atan2(u,i)*Sa-120),void 0!==e&&(h.alpha=e),h}},output:{rgb:function(r){var a=r.h,n=r.s,t=r.l,e=r.alpha,o={mode:"rgb"};a=(void 0===a?0:a+120)*ja;var i=void 0===n?0:n*t*(1-t),u=Math.cos(a),h=Math.sin(a);return o.r=t+i*(qa[0]*u+qa[1]*h),o.g=t+i*(qa[2]*u+qa[3]*h),o.b=t+i*(qa[4]*u+qa[5]*h),void 0!==e&&(o.alpha=e),o}},interpolate:{h:{use:k,fixup:er},s:k,l:k,alpha:{use:k,fixup:z}},difference:{h:dr},average:{h:Mr}},Ha=function(r){var a=r.l,n=r.a,t=r.b,e=r.alpha,o=Math.sqrt(n*n+t*t),i={mode:"dlch",l:a,c:o};return o&&(i.h=ar(180*Math.atan2(t,n)/Math.PI)),void 0!==e&&(i.alpha=e),i},Ra=26/180*Math.PI,Na=Math.cos(Ra),$a=Math.sin(Ra),Da=100/Math.log(1.39),La=function(r){var a=r.l,n=r.c,t=r.h,e=r.alpha,o={mode:"lab65",l:(Math.exp(1*a/Da)-1)/.0039};if(void 0===t)o.a=o.b=0;else{var i=(Math.exp(.0435*n*1*1)-1)/.075,u=i*Math.cos(t/180*Math.PI-Ra),h=i*Math.sin(t/180*Math.PI-Ra);o.a=u*Na-h/.83*$a,o.b=u*$a+h/.83*Na}return void 0!==e&&(o.alpha=e),o},Ta=function(r){return La(Ha(r))},Ba=function(r){var a=r.l,n=r.a,t=r.b,e=r.alpha,o=n*Na+t*$a,i=.83*(t*Na-n*$a),u=Math.sqrt(o*o+i*i),h={mode:"dlch",l:Da/1*Math.log(1+.0039*a),c:Math.log(1+.075*u)/.0435};return h.c&&(h.h=ar((Math.atan2(i,o)+Ra)/Math.PI*180)),void 0!==e&&(h.alpha=e),h},Fa=function(r){var a=r.l,n=r.c,t=r.h,e=r.alpha,o={mode:"dlab",l:a,a:0===n?0:n*Math.cos(t/180*Math.PI),b:0===n?0:n*Math.sin(t/180*Math.PI)};return void 0!==e&&(o.alpha=e),o},Ga=function(r){return Fa(Ba(r))},Wa={mode:"dlab",output:{lab65:Ta,rgb:function(r){return ea(Ta(r))}},input:{lab65:Ga,rgb:function(r){return Ga(ua(r))}},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.5],b:[-40.47,44.344]},interpolate:{l:k,a:k,b:k,alpha:{use:k,fixup:z}}},_a={mode:"dlch",output:{lab65:La,dlab:Fa,rgb:function(r){return ea(La(r))}},input:{lab65:Ba,dlab:Ha,rgb:function(r){return Ba(ua(r))}},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:k,c:k,h:{use:k,fixup:er},alpha:{use:k,fixup:z}},difference:{h:br},average:{h:Mr}},Ka={mode:"xyz",alias:["xyz-d50"],output:{rgb:_,lab:Ur},input:{rgb:K,lab:Kr},channels:["x","y","z","alpha"],ranges:{x:[0,.962],y:[0,.997],z:[0,.823]},interpolate:{x:k,y:k,z:k,alpha:{use:k,fixup:z}}},Ja={mode:"xyz65",alias:["xyz-d65"],output:{rgb:N,xyz:function(r){var a=r.x,n=r.y,t=r.z,e=r.alpha,o={mode:"xyz",x:1.0478112*a+.0228866*n-.050127*t,y:.0295424*a+.9904844*n-.0170491*t,z:-.0092345*a+.0150436*n+.7521316*t};return void 0!==e&&(o.alpha=e),o}},input:{rgb:R,xyz:function(r){var a=r.x,n=r.y,t=r.z,e=r.alpha,o={mode:"xyz65",x:.9555766*a-.0230393*n+.0631636*t,y:-.0282895*a+1.0099416*n+.0210077*t,z:.0122982*a-.020483*n+1.3299098*t};return void 0!==e&&(o.alpha=e),o}},ranges:{x:[0,.946],y:[0,.995],z:[0,1.083]},channels:["x","y","z","alpha"],interpolate:{x:k,y:k,z:k,alpha:{use:k,fixup:z}}},Qa={mode:"yiq",output:{rgb:function(r){var a=r.y,n=r.i,t=r.q,e=r.alpha;return S({r:a+.95608445*n+.6208885*t,g:a-.27137664*n-.6486059*t,b:a-1.10561724*n+1.70250126*t,alpha:e})}},input:{rgb:function(r){var a=q(r),n=a.r,t=a.g,e=a.b,o=a.alpha,i={mode:"yiq",y:.29889531*n+.58662247*t+.11448223*e,i:.59597799*n-.2741761*t-.32180189*e,q:.21147017*n-.52261711*t+.31114694*e};return void 0!==o&&(i.alpha=o),i}},channels:["y","i","q","alpha"],ranges:{i:[-.593,.593],q:[-.52,.52]},interpolate:{y:k,i:k,q:k,alpha:{use:k,fixup:z}}},Ua=function(r){var a=r.l,n=r.a,t=r.b,e=r.alpha,o=Math.pow(a+.3963377774*n+.2158037573*t,3),i=Math.pow(a-.1055613458*n-.0638541728*t,3),u=Math.pow(a-.0894841775*n-1.291485548*t,3),h={mode:"lrgb",r:4.0767416621*o-3.3077115913*i+.2309699292*u,g:-1.2684380046*o+2.6097574011*i-.3413193965*u,b:-.0041960863*o-.7034186147*i+1.707614701*u};return void 0!==e&&(h.alpha=e),h},Va=function(r){var a=r.r,n=r.g,t=r.b,e=r.alpha,o=Math.cbrt(.4122214708*a+.5363325363*n+.0514459929*t),i=Math.cbrt(.2119034982*a+.6806995451*n+.1073969566*t),u=Math.cbrt(.0883024619*a+.2817188376*n+.6299787005*t),h={mode:"oklab",l:.2104542553*o+.793617785*i-.0040720468*u,a:1.9779984951*o-2.428592205*i+.4505937099*u,b:.0259040371*o+.7827717662*i-.808675766*u};return void 0!==e&&(h.alpha=e),h},Xa=function(r){var a=Va(q(r));return r.r===r.b&&r.b===r.g&&(a.a=a.b=0),a},Ya=function(r){return S(Ua(r))},Za=Object.assign({},Xr,{mode:"oklab",alias:[],output:{lrgb:Ua,rgb:Ya},input:{lrgb:Va,rgb:Xa},ranges:{l:[0,1],a:[-.233,.276],b:[-.311,.198]},parsers:[]}),rn=Object.assign({},fa,{mode:"oklch",alias:[],output:{oklab:function(r){return ca(r,"oklab")},rgb:function(r){return Ya(ca(r,"oklab"))}},input:{rgb:function(r){return la(Xa(r),"oklch")},oklab:function(r){return la(r,"oklch")}},parsers:[],ranges:{l:[0,1],c:[0,.322],h:[0,360]}}),an=function(r){return void 0===r&&(r=4),function(a){return"number"==typeof a?function(r,a){return Math.round(r*(a=Math.pow(10,a)))/a}(a,r):a}},nn=sr("rgb"),tn=sr("hsl"),en=an(2),on=function(r){return Math.max(0,Math.min(1,r))},un=function(r){return Math.round(255*on(r))},hn=function(r){var a=nn(r);if(void 0!==a)return"#"+(1<<24|un(a.r)<<16|un(a.g)<<8|un(a.b)).toString(16).slice(1)},ln=function(r){var a=nn(r);if(void 0!==a){var n=un(a.r),t=un(a.g),e=un(a.b);return void 0===a.alpha||1===a.alpha?"rgb("+n+", "+t+", "+e+")":"rgba("+n+", "+t+", "+e+", "+en(on(a.alpha))+")"}},cn=function(r){return void 0===r&&(r=.5),function(a){return r<=0?1:r>=1?0:Math.pow(a,Math.log(.5)/Math.log(r))}},fn=function(r,a,n){void 0===a&&(a="rgb"),void 0===n&&(n=!1);var t=a?cr(a).channels:null,e=a?sr(a):pr;return function(o){var i=e(o),u=(t||cr(o.mode).channels).reduce((function(n,t){var e=r(i[t],t,i,a);return void 0===e||isNaN(e)||(n[t]=e),n}),{mode:a});if(!n)return u;var h=pr(o);return h&&h.mode!==u.mode?sr(h.mode)(u):u}},pn=function(r,a,n){return"alpha"!==a?(r||0)*(void 0!==n.alpha?n.alpha:1):r},sn=function(r,a,n){return"alpha"!==a&&0!==n.alpha?(r||0)/(void 0!==n.alpha?n.alpha:1):r},dn=function(r,a){return void 0===r&&(r=1),void 0===a&&(a=0),function(n,t){return"alpha"!==t?n*r+a:n}},vn=function(r){return"function"==typeof r},bn=function(r){return r&&"object"==typeof r},gn=function(r){return"number"==typeof r},Mn=function(r,a,n,t){void 0===a&&(a="rgb");var e=cr(a),o=sr(a),i=[],u=[],h={};r.forEach((function(r){Array.isArray(r)?(i.push(o(r[0])),u.push(r[1])):gn(r)||vn(r)?h[u.length]=r:(i.push(o(r)),u.push(void 0))})),function(r){void 0===r[0]&&(r[0]=0),void 0===r[r.length-1]&&(r[r.length-1]=1);for(var a,n,t,e,o=1;o<r.length;){if(void 0===r[o]){for(n=o,t=r[o-1],a=o;void 0===r[a];)a++;for(e=(r[a]-t)/(a-o+1);o<a;)r[o]=t+(o+1-n)*e,o++}else r[o]<r[o-1]&&(r[o]=r[o-1]);o++}}(u);var l=e.channels.reduce((function(r,a){var t;return t=bn(n)&&bn(n[a])&&n[a].fixup?n[a].fixup:bn(e.interpolate[a])&&e.interpolate[a].fixup?e.interpolate[a].fixup:function(r){return r},r[a]=t(i.map((function(r){return r[a]}))),r}),{});if(t){var c=i.map((function(r,n){return e.channels.reduce((function(r,a){return r[a]=l[a][n],r}),{mode:a})}));l=e.channels.reduce((function(r,n){return r[n]=c.map((function(r){var e=t(r[n],n,r,a);return isNaN(e)?void 0:e})),r}),{})}var f=e.channels.reduce((function(r,a){var t;return vn(n)?t=n:bn(n)&&vn(n[a])?t=n[a]:bn(n)&&bn(n[a])&&n[a].use?t=n[a].use:vn(e.interpolate[a])?t=e.interpolate[a]:bn(e.interpolate[a])&&(t=e.interpolate[a].use),r[a]=t(l[a]),r}),{}),p=i.length-1;return function(r){if((r=Math.min(Math.max(0,r),1))<=u[0])return i[0];if(r>u[p])return i[p];for(var n=0;u[n]<r;)n++;var t=u[n-1],o=u[n]-t,l=(r-t)/o,c=h[n]||h[0];void 0!==c&&(gn(c)&&(c=cn((c-t)/o)),l=c(l));var s=(n-1+l)/p;return e.channels.reduce((function(r,a){var n=f[a](s);return void 0!==n&&(r[a]=n),r}),{mode:a})}},mn=function(r,a){return function(n,t,e){void 0===t&&(t="rgb");var o=a?fn(a,t):void 0,i=Mn(n,t,e,r);return o?function(r){return o(i(r))}:i}},yn=mn(pn,sn),xn=function(r){return(1-Math.cos(r*Math.PI))/2},wn=function(r,a,n,t,e){var o=e*e,i=o*e;return((1-3*e+3*o-i)*r+(4-6*o+3*i)*a+(1+3*e+3*o-3*i)*n+i*t)/6},kn=function(r){return function(a){var n=r.length-1,t=1===a?n-1:Math.floor(a*n);return wn(t>0?r[t-1]:2*r[t]-r[t+1],r[t],r[t+1],t<n-1?r[t+2]:2*r[t+1]-r[t],(a-t/n)*n)}},zn=function(r){return function(a){var n=r.length-1,t=1===a?n-1:Math.floor(a*n);return wn(r[(t-1+r.length)%r.length],r[t],r[(t+1)%r.length],r[(t+2)%r.length],(a-t/n)*n)}},Pn=function(r){var a,n=r.length-1,t=new Array(n),e=new Array(n),o=new Array(n);for(t[1]=1/4,e[1]=(6*r[1]-r[0])/4,a=2;a<n;++a)t[a]=1/(4-t[a-1]),e[a]=(6*r[a]-(a==n-1?r[n]:0)-e[a-1])*t[a];for(o[0]=r[0],o[n]=r[n],n-1>0&&(o[n-1]=e[n-1]),a=n-2;a>0;--a)o[a]=e[a]-t[a]*o[a+1];return o},In=function(r){return kn(Pn(r))},qn=function(r){return zn(Pn(r))},jn=Math.sign,Sn=Math.min,En=Math.abs,On=function(r){for(var a=r.length-1,n=[],t=[],e=[],o=0;o<a;o++)n.push((r[o+1]-r[o])*a),t.push(o>0?.5*(r[o+1]-r[o-1])*a:void 0),e.push(o>0?(jn(n[o-1])+jn(n[o]))*Sn(En(n[o-1]),En(n[o]),.5*En(t[o])):void 0);return[n,t,e]},An=function(r,a,n){var t=r.length-1,e=t*t;return function(o){var i;1===o?(i=t-1,o=1):i=Math.floor(o*t);var u=o-i/t,h=u*u,l=h*u;return(a[i]+a[i+1]-2*n[i])*e*l+(3*n[i]-2*a[i]-a[i+1])*t*h+a[i]*u+r[i]}},Cn=function(r){if(r.length<3)return k(r);var a=r.length-1,n=On(r),t=n[0],e=n[2];return e[0]=t[0],e[a]=t[a-1],An(r,e,t)},Hn=function(r){var a=r.length-1,n=On(r),t=n[0],e=n[1],o=n[2];e[0]=.5*(r[1]-r[a])*a,e[a]=.5*(r[0]-r[a-1])*a;var i=(r[0]-r[a])*a,u=i;return o[0]=(jn(i)+jn(t[0]))*Sn(En(i),En(t[0]),.5*En(e[0])),o[a]=(jn(t[a-1])+jn(u))*Sn(En(t[a-1]),En(u),.5*En(e[a])),An(r,o,t)},Rn=sr("rgb"),Nn=function(r){var a=Rn(r);return void 0!==a&&a.r>=0&&a.r<=1&&a.g>=0&&a.g<=1&&a.b>=0&&a.b<=1};sr("lch");var $n=sr("rgb"),Dn=function(r){var a=$n(r);return a.r=Math.max(0,Math.min(a.r,1)),a.g=Math.max(0,Math.min(a.g,1)),a.b=Math.max(0,Math.min(a.b,1)),a},Ln=function(r){return void 0===(r=pr(r))||Nn(r)?r:sr(r.mode)(Dn(r))},Tn=function(r,a){if(void 0===a&&(a="lch"),void 0===(r=pr(r))||Nn(r))return r;var n=sr(r.mode);r=sr(a)(r);var t=Object.assign({},r,{c:0});if(!Nn(t))return n(Dn(r));for(var e,o=0,i=r.c;i-o>.01;)t.c=o+.5*(i-o),Nn(t)?(e=t.c,o=t.c):i=t.c;return n(Nn(t)?t:Object.assign({},t,{c:e}))},Bn={normal:function(r,a){return a},multiply:function(r,a){return r*a},screen:function(r,a){return r+a-r*a},"hard-light":function(r,a){return a<.5?2*r*a:2*a*(1-r)-1},overlay:function(r,a){return r<.5?2*a*r:2*r*(1-a)-1},darken:function(r,a){return Math.min(r,a)},lighten:function(r,a){return Math.max(r,a)},"color-dodge":function(r,a){return 0===r?0:1===a?1:Math.min(1,r/(1-a))},"color-burn":function(r,a){return 1===r?1:0===a?0:1-Math.min(1,(1-r)/a)},"soft-light":function(r,a){return a<.5?r-(1-2*a)*r*(1-r):r+(2*a-1)*((r<.25?((16*r-12)*r+4)*r:Math.sqrt(r))-r)},difference:function(r,a){return Math.abs(r-a)},exclusion:function(r,a){return r+a-2*r*a}};function Fn(r){var a=sr("lrgb")(r);return.2126*a.r+.7152*a.g+.0722*a.b}var Gn=sr("rgb"),Wn=[[1,0,-0,0,1,0,-0,-0,1],[.856167,.182038,-.038205,.029342,.955115,.015544,-.00288,-.001563,1.004443],[.734766,.334872,-.069637,.05184,.919198,.028963,-.004928,-.004209,1.009137],[.630323,.465641,-.095964,.069181,.890046,.040773,-.006308,-.007724,1.014032],[.539009,.579343,-.118352,.082546,.866121,.051332,-.007136,-.011959,1.019095],[.458064,.679578,-.137642,.092785,.846313,.060902,-.007494,-.016807,1.024301],[.38545,.769005,-.154455,.100526,.829802,.069673,-.007442,-.02219,1.029632],[.319627,.849633,-.169261,.106241,.815969,.07779,-.007025,-.028051,1.035076],[.259411,.923008,-.18242,.110296,.80434,.085364,-.006276,-.034346,1.040622],[.203876,.990338,-.194214,.112975,.794542,.092483,-.005222,-.041043,1.046265],[.152286,1.052583,-.204868,.114503,.786281,.099216,-.003882,-.048116,1.051998]],_n=[[1,0,-0,0,1,0,-0,-0,1],[.866435,.177704,-.044139,.049567,.939063,.01137,-.003453,.007233,.99622],[.760729,.319078,-.079807,.090568,.889315,.020117,-.006027,.013325,.992702],[.675425,.43385,-.109275,.125303,.847755,.026942,-.00795,.018572,.989378],[.605511,.52856,-.134071,.155318,.812366,.032316,-.009376,.023176,.9862],[.547494,.607765,-.155259,.181692,.781742,.036566,-.01041,.027275,.983136],[.498864,.674741,-.173604,.205199,.754872,.039929,-.011131,.030969,.980162],[.457771,.731899,-.18967,.226409,.731012,.042579,-.011595,.034333,.977261],[.422823,.781057,-.203881,.245752,.709602,.044646,-.011843,.037423,.974421],[.392952,.82361,-.216562,.263559,.69021,.046232,-.01191,.040281,.97163],[.367322,.860646,-.227968,.280085,.672501,.047413,-.01182,.04294,.968881]],Kn=[[1,0,-0,0,1,0,-0,-0,1],[.92667,.092514,-.019184,.021191,.964503,.014306,.008437,.054813,.93675],[.89572,.13333,-.02905,.029997,.9454,.024603,.013027,.104707,.882266],[.905871,.127791,-.033662,.026856,.941251,.031893,.01341,.148296,.838294],[.948035,.08949,-.037526,.014364,.946792,.038844,.010853,.193991,.795156],[1.017277,.027029,-.044306,-.006113,.958479,.047634,.006379,.248708,.744913],[1.104996,-.046633,-.058363,-.032137,.971635,.060503,.001336,.317922,.680742],[1.193214,-.109812,-.083402,-.058496,.97941,.079086,-.002346,.403492,.598854],[1.257728,-.139648,-.118081,-.078003,.975409,.102594,-.003316,.501214,.502102],[1.278864,-.125333,-.153531,-.084748,.957674,.127074,-989e-6,.601151,.399838],[1.255528,-.076749,-.178779,-.078411,.930809,.147602,.004733,.691367,.3039]],Jn=function(r,a){var n=Math.max(0,Math.min(1,a)),t=Math.round(n/.1),e=Math.round(n%.1),o=r[t];if(e>0&&t<r.length-1){var i=r[t+1];o=o.map((function(r,a){return y(o[a],i[a],e)}))}return function(r){var a=pr(r);if(void 0!==a){var n=Gn(a),t=n.r,e=n.g,i=n.b,u={mode:"rgb",r:o[0]*t+o[1]*e+o[2]*i,g:o[3]*t+o[4]*e+o[5]*i,b:o[6]*t+o[7]*e+o[8]*i};return void 0!==a.alpha&&(u.alpha=a.alpha),sr(a.mode)(u)}}},Qn=function(r){return void 0===r&&(r=1),Jn(Wn,r)},Un=function(r){return void 0===r&&(r=1),Jn(_n,r)},Vn=function(r){return void 0===r&&(r=1),Jn(Kn,r)},Xn=function(r){return Math.max(r,0)},Yn=function(r){return Math.max(Math.min(r,1),0)},Zn=function(r,a,n){void 0===n&&(n=!1);var t=sr(a),e=cr(a).channels;return function(o){var i=t(o);if(i){for(var u,h={mode:a},l=e.length,c=0;c<r.length;c++)void 0!==i[u=e[Math.floor(c/l)]]&&(h[u]=(h[u]||0)+r[c]*(i[e[c%l]]||0));if(!n)return h;var f=pr(o);return f&&h.mode!==f.mode?sr(f.mode)(h):h}}};lr($),lr(Ca),lr(Wa),lr(_a),lr(Pr),lr(xr),lr(zr),lr(qr),lr($r),lr(Tr),lr(Xr),lr(ha),lr(fa),lr(pa),lr(Ia),lr(E),lr(ka),lr(T),lr(J),lr(rr),lr(P),lr(Ja),lr(Ka),lr(Qa),lr(Za),lr(rn);var rt=sr("a98"),at=sr("cubehelix"),nt=sr("dlab"),tt=sr("dlch"),et=sr("hsi"),ot=sr("hsl"),it=sr("hsv"),ut=sr("hwb"),ht=sr("jab"),lt=sr("jch"),ct=sr("lab"),ft=sr("lab65"),pt=sr("lch"),st=sr("lch65"),dt=sr("lchuv"),vt=sr("lrgb"),bt=sr("luv"),gt=sr("p3"),Mt=sr("prophoto"),mt=sr("rec2020"),yt=sr("rgb"),xt=sr("xyz"),wt=sr("xyz65"),kt=sr("yiq"),zt=sr("oklab"),Pt=sr("oklch");r.a98=rt,r.average=function(r,a,n){void 0===a&&(a="rgb");var t=cr(a),e=r.map(sr(a));return t.channels.reduce((function(r,a){var o,i=e.map((function(r){return r[a]})).filter((function(r){return void 0!==r}));i.length&&(o=yr(n)?n:n&&yr(n[a])?n[a]:t.average&&yr(t.average[a])?t.average[a]:mr,r[a]=o(i,a));return r}),{mode:a})},r.averageAngle=Mr,r.averageNumber=mr,r.blend=function(r,a,n){void 0===a&&(a="normal"),void 0===n&&(n="rgb");var t="function"==typeof a?a:Bn[a],e=sr(n),o=cr(n).channels;return r.map((function(r){var a=e(r);return void 0===a.alpha&&(a.alpha=1),a})).reduce((function(r,a){if(void 0===r)return a;var e=a.alpha+r.alpha*(1-a.alpha);return o.reduce((function(n,o){return"alpha"!==o&&(0===e?n[o]=0:(n[o]=a.alpha*(1-r.alpha)*a[o]+a.alpha*r.alpha*t(r[o],a[o])+(1-a.alpha)*r.alpha*r[o],n[o]=Math.max(0,Math.min(1,n[o]/e)))),n}),{mode:n,alpha:e})}))},r.clamp=function(r){switch(void 0===r&&(r="rgb"),r){case"rgb":return Ln;case"lch":return Tn}},r.clampChroma=Tn,r.clampRgb=Ln,r.colorsNamed=n,r.converter=sr,r.cubehelix=at,r.deficiencyDeuter=Un,r.deficiencyProt=Qn,r.deficiencyTrit=Vn,r.defineMode=lr,r.differenceCie76=function(){return gr("lab65")},r.differenceCie94=function(r,a,n){void 0===r&&(r=1),void 0===a&&(a=.045),void 0===n&&(n=.015);var t=sr("lab65");return function(e,o){var i=t(e),u=t(o),h=i.l,l=i.a,c=i.b,f=Math.sqrt(l*l+c*c),p=u.l,s=u.a,d=u.b,v=Math.sqrt(s*s+d*d),b=Math.pow(h-p,2),g=Math.pow(f-v,2),M=Math.pow(l-s,2)+Math.pow(c-d,2)-g;return Math.sqrt(b/Math.pow(r,2)+g/Math.pow(1+a*f,2)+M/Math.pow(1+n*f,2))}},r.differenceCiede2000=function(r,a,n){void 0===r&&(r=1),void 0===a&&(a=1),void 0===n&&(n=1);var t=sr("lab65");return function(e,o){var i=t(e),u=t(o),h=i.l,l=i.a,c=i.b,f=Math.sqrt(l*l+c*c),p=u.l,s=u.a,d=u.b,v=(f+Math.sqrt(s*s+d*d))/2,b=.5*(1-Math.sqrt(Math.pow(v,7)/(Math.pow(v,7)+Math.pow(25,7)))),g=l*(1+b),M=s*(1+b),m=Math.sqrt(g*g+c*c),y=Math.sqrt(M*M+d*d),x=Math.abs(g)+Math.abs(c)===0?0:Math.atan2(c,g);x+=2*(x<0)*Math.PI;var w=Math.abs(M)+Math.abs(d)===0?0:Math.atan2(d,M);w+=2*(w<0)*Math.PI;var k=p-h,z=y-m,P=m*y==0?0:w-x;P-=2*(P>Math.PI)*Math.PI,P+=2*(P<-Math.PI)*Math.PI;var I,q=2*Math.sqrt(m*y)*Math.sin(P/2),j=(h+p)/2,S=(m+y)/2;m*y==0?I=x+w:(I=(x+w)/2,I-=(Math.abs(x-w)>Math.PI)*Math.PI,I+=2*(I<0)*Math.PI);var E=Math.pow(j-50,2),O=1-.17*Math.cos(I-Math.PI/6)+.24*Math.cos(2*I)+.32*Math.cos(3*I+Math.PI/30)-.2*Math.cos(4*I-63*Math.PI/180),A=1+.015*E/Math.sqrt(20+E),C=1+.045*S,H=1+.015*S*O,R=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*I-275)/25,2)),N=2*Math.sqrt(Math.pow(S,7)/(Math.pow(S,7)+Math.pow(25,7))),$=-1*Math.sin(2*R)*N;return Math.sqrt(Math.pow(k/(r*A),2)+Math.pow(z/(a*C),2)+Math.pow(q/(n*H),2)+$*z/(a*C)*q/(n*H))}},r.differenceCmc=function(r,a){void 0===r&&(r=1),void 0===a&&(a=1);var n=sr("lab65");return function(t,e){var o=n(t),i=o.l,u=o.a,h=o.b,l=Math.sqrt(u*u+h*h),c=Math.atan2(h,u);c+=2*Math.PI*(c<0);var f=n(e),p=f.l,s=f.a,d=f.b,v=Math.sqrt(s*s+d*d),b=Math.pow(i-p,2),g=Math.pow(l-v,2),M=Math.pow(u-s,2)+Math.pow(h-d,2)-g,m=Math.sqrt(Math.pow(l,4)/(Math.pow(l,4)+1900)),y=i<16?.511:.040975*i/(1+.01765*i),x=.0638*l/(1+.0131*l)+.638,w=x*(m*(c>=164/180*Math.PI&&c<=345/180*Math.PI?.56+Math.abs(.2*Math.cos(c+168/180*Math.PI)):.36+Math.abs(.4*Math.cos(c+35/180*Math.PI)))+1-m);return Math.sqrt(b/Math.pow(r*y,2)+g/Math.pow(a*x,2)+M/Math.pow(w,2))}},r.differenceDin99o=function(){return gr("dlab")},r.differenceEuclidean=gr,r.differenceHueChroma=br,r.differenceHueNaive=vr,r.differenceHueSaturation=dr,r.differenceHyab=function(){var r=sr("lab65");return function(a,n){var t=r(a),e=r(n),o=t.l-e.l,i=t.a-e.a,u=t.b-e.b;return Math.abs(o)+Math.sqrt(i*i+u*u)}},r.differenceKotsarenkoRamos=function(){return gr("yiq",[.5053,.299,.1957])},r.displayable=Nn,r.dlab=nt,r.dlch=tt,r.easingGamma=x,r.easingInOutSine=xn,r.easingMidpoint=cn,r.easingSmootherstep=function(r){return r*r*r*(r*(6*r-15)+10)},r.easingSmoothstep=function(r){return r*r*(3-2*r)},r.filterBrightness=function(r,a){void 0===r&&(r=1),void 0===a&&(a="rgb");var n=Xn(r);return fn(dn(n),a,!0)},r.filterContrast=function(r,a){void 0===r&&(r=1),void 0===a&&(a="rgb");var n=Xn(r);return fn(dn(n,(1-n)/2),a,!0)},r.filterDeficiencyDeuter=Un,r.filterDeficiencyProt=Qn,r.filterDeficiencyTrit=Vn,r.filterGrayscale=function(r,a){return void 0===r&&(r=1),void 0===a&&(a="rgb"),Zn([.2126+.7874*(n=1-Yn(r)),.7152-.7152*n,.0722-.0722*n,0,.2126-.2126*n,.7152+.2848*n,.0722-.0722*n,0,.2126-.2126*n,.7152-.7152*n,.0722+.9278*n,0,0,0,0,1],a,!0);var n},r.filterHueRotate=function(r,a){return void 0===r&&(r=0),void 0===a&&(a="rgb"),Zn(function(r){var a=Math.PI*r/180,n=Math.cos(a),t=Math.sin(a);return[.213+.787*n-.213*t,.715-.715*n-.715*t,.072-.072*n+.928*t,0,.213-.213*n+.143*t,.715+.285*n+.14*t,.072-.072*n-.283*t,0,.213-.213*n-.787*t,.715-.715*n+.715*t,.072+.928*n+.072*t,0,0,0,0,1]}(r),a,!0)},r.filterInvert=function(r,a){void 0===r&&(r=1),void 0===a&&(a="rgb");var n=Yn(r);return fn((function(r,a){return"alpha"===a?r:function(r,a,n){return void 0===r||void 0===a?void 0:r+n*(a-r)}(n,1-n,r)}),a,!0)},r.filterSaturate=function(r,a){return void 0===r&&(r=1),void 0===a&&(a="rgb"),Zn(function(r){var a=Xn(r);return[.213+.787*a,.715-.715*a,.072-.072*a,0,.213-.213*a,.715+.285*a,.072-.072*a,0,.213-.213*a,.715-.715*a,.072+.928*a,0,0,0,0,1]}(r),a,!0)},r.filterSepia=function(r,a){return void 0===r&&(r=1),void 0===a&&(a="rgb"),Zn([.393+.607*(n=1-Yn(r)),.769-.769*n,.189-.189*n,0,.349-.349*n,.686+.314*n,.168-.168*n,0,.272-.272*n,.534-.534*n,.131+.869*n,0,0,0,0,1],a,!0);var n},r.fixupAlpha=z,r.fixupHueDecreasing=function(r){return tr(r,(function(r){return r<=0?r:r-360}))},r.fixupHueIncreasing=function(r){return tr(r,(function(r){return r>=0?r:r+360}))},r.fixupHueLonger=function(r){return tr(r,(function(r){return Math.abs(r)>=180||0===r?r:r-360*Math.sign(r)}))},r.fixupHueShorter=er,r.formatHex=hn,r.formatHex8=function(r){var a=nn(r);if(void 0!==a){var n=un(void 0!==a.alpha?a.alpha:1);return hn(a)+(256|n).toString(16).slice(1)}},r.formatHsl=function(r){var a=tn(r);if(void 0!==a){var n=en(a.h||0),t=en(100*on(a.s)),e=en(100*on(a.l));return void 0===a.alpha||1===a.alpha?"hsl("+n+", "+t+"%, "+e+"%)":"hsla("+n+", "+t+"%, "+e+"%, "+en(on(a.alpha))+")"}},r.formatRgb=ln,r.formatter=function(r){switch(void 0===r&&(r="rgb"),r){case"rgb":return ln;case"hex":return hn}},r.getModeDefinition=cr,r.hsi=et,r.hsl=ot,r.hsv=it,r.hwb=ut,r.interpolate=function(r,a,n){return void 0===a&&(a="rgb"),Mn(r,a,n)},r.interpolateAlpha=z,r.interpolateCosine=function(r,a){return void 0===a&&(a=1),function(n){var t=x(a),e=w((function(r,a,n){return y(r,a,xn(n))}))((r||function(r){return r})(n));return function(r){return e(t(r))}}},r.interpolateHue=er,r.interpolateLinear=function(r,a){return void 0===a&&(a=1),function(n){var t=x(a);return function(a){return k((r||function(r){return r})(n))(t(a))}}},r.interpolateSplineBasis=function(r,a,n){return void 0===a&&(a="default"),void 0===n&&(n=1),function(t){var e=x(n);return"default"===a?function(a){return kn((r||function(r){return r})(t))(e(a))}:"closed"===a?function(a){return zn((r||function(r){return r})(t))(e(a))}:void 0}},r.interpolateSplineMonotone=function(r,a,n){return void 0===a&&(a="default"),void 0===n&&(n=1),function(t){var e=x(n);return"closed"===a?function(a){return Hn((r||function(r){return r})(t))(e(a))}:"default"===a?function(a){return Cn((r||function(r){return r})(t))(e(a))}:void 0}},r.interpolateSplineNatural=function(r,a,n){return void 0===a&&(a="default"),void 0===n&&(n=1),function(t){var e=x(n);return"default"===a?function(a){return In((r||function(r){return r})(t))(e(a))}:"closed"===a?function(a){return qn((r||function(r){return r})(t))(e(a))}:void 0}},r.interpolateWith=mn,r.interpolateWithPremultipliedAlpha=yn,r.interpolatorLinear=k,r.interpolatorPiecewise=w,r.interpolatorSplineBasis=kn,r.interpolatorSplineBasisClosed=zn,r.interpolatorSplineMonotone=Cn,r.interpolatorSplineMonotone2=function(r){if(r.length<3)return k(r);var a=r.length-1,n=On(r),t=n[0],e=n[1],o=n[2];return e[0]=(2*r[1]-1.5*r[0]-.5*r[2])*a,e[a]=(1.5*r[a]-2*r[a-1]+.5*r[a-2])*a,o[0]=e[0]*t[0]<=0?0:En(e[0])>2*En(t[0])?2*t[0]:e[0],o[a]=e[a]*t[a-1]<=0?0:En(e[a])>2*En(t[a-1])?2*t[a-1]:e[a],An(r,o,t)},r.interpolatorSplineMonotoneClosed=Hn,r.interpolatorSplineNatural=In,r.interpolatorSplineNaturalClosed=qn,r.jab=ht,r.jch=lt,r.lab=ct,r.lab65=ft,r.lch=pt,r.lch65=st,r.lchuv=dt,r.lerp=y,r.lrgb=vt,r.luv=bt,r.mapAlphaDivide=sn,r.mapAlphaMultiply=pn,r.mapTransferGamma=function(r,a,n){return void 0===r&&(r=1),void 0===a&&(a=1),void 0===n&&(n=0),function(t,e){return"alpha"!==e?r*Math.pow(t,a)+n:t}},r.mapTransferLinear=dn,r.mapper=fn,r.nearest=function(r,a,n){void 0===a&&(a=gr()),void 0===n&&(n=function(r){return r});var t=r.map((function(r,a){return{color:n(r),i:a}}));return function(n,e,o){return void 0===e&&(e=1),void 0===o&&(o=1/0),isFinite(e)&&(e=Math.max(1,Math.min(e,t.length-1))),t.forEach((function(r){r.d=a(n,r.color)})),t.sort((function(r,a){return r.d-a.d})).slice(0,e).filter((function(r){return r.d<o})).map((function(a){return r[a.i]}))}},r.oklab=zt,r.oklch=Pt,r.p3=gt,r.parse=fr,r.prophoto=Mt,r.random=function(r,a){void 0===r&&(r="rgb"),void 0===a&&(a={});var n=cr(r),t=function(r){return Object.keys(r).reduce((function(a,n){var t=r[n];return a[n]=Array.isArray(t)?t:[t,t],a}),{})}(a);return n.channels.reduce((function(r,a){return(t.alpha||"alpha"!==a)&&(r[a]=function(r){var a=r[0],n=r[1];return a+Math.random()*(n-a)}(t[a]||n.ranges[a])),r}),{mode:r})},r.rec2020=mt,r.rgb=yt,r.round=an,r.samples=function(r,a){void 0===r&&(r=2),void 0===a&&(a=1);var n=x(a);if(r<2)return r<1?[]:[n(.5)];for(var t=[],e=0;e<r;e++)t.push(n(e/(r-1)));return t},r.wcagContrast=function(r,a){var n=Fn(r),t=Fn(a);return(Math.max(n,t)+.05)/(Math.min(n,t)+.05)},r.wcagLuminance=Fn,r.xyz=xt,r.xyz65=wt,r.yiq=kt,Object.defineProperty(r,"__esModule",{value:!0})}));
!function(r,a){"object"==typeof exports&&"undefined"!=typeof module?a(exports):"function"==typeof define&&define.amd?define(["exports"],a):a((r="undefined"!=typeof globalThis?globalThis:r||self).culori={})}(this,(function(r){"use strict";var a=function(r,a){if("number"==typeof r)return 3===a?{mode:"rgb",r:(r>>8&15|r>>4&240)/255,g:(r>>4&15|240&r)/255,b:(15&r|r<<4&240)/255}:4===a?{mode:"rgb",r:(r>>12&15|r>>8&240)/255,g:(r>>8&15|r>>4&240)/255,b:(r>>4&15|240&r)/255,alpha:(15&r|r<<4&240)/255}:6===a?{mode:"rgb",r:(r>>16&255)/255,g:(r>>8&255)/255,b:(255&r)/255}:8===a?{mode:"rgb",r:(r>>24&255)/255,g:(r>>16&255)/255,b:(r>>8&255)/255,alpha:(255&r)/255}:void 0},n={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},t=(/([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)/+"").replace(/^\/|\/$/g,""),e=t+"%",o=t+"%?",i="(?:"+t+"%|"+t+")",u="(?:"+t+"(deg|grad|rad|turn)|"+t+")",h="\\s*,\\s*",l="\\s+",c=new RegExp("^rgba?\\(\\s*"+t+h+t+h+t+"\\s*(?:,\\s*"+i+"\\s*)?\\)$"),f=new RegExp("^rgba?\\(\\s*"+e+h+e+h+e+"\\s*(?:,\\s*"+i+"\\s*)?\\)$"),p=new RegExp("^rgba?\\(\\s*"+t+l+t+l+t+"\\s*(?:\\/\\s*"+i+"\\s*)?\\)$"),s=new RegExp("^rgba?\\(\\s*"+e+l+e+l+e+"\\s*(?:\\/\\s*"+i+"\\s*)?\\)$"),d=new RegExp("^hsla?\\(\\s*"+u+h+e+h+e+"\\s*(?:,\\s*"+i+"\\s*)?\\)$"),v=new RegExp("^hsla?\\(\\s*"+u+l+e+l+e+"\\s*(?:\\/\\s*"+i+"\\s*)?\\)$"),b=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,g=new RegExp("^hwb\\(\\s*"+u+l+e+l+e+"\\s*(?:\\/\\s*"+i+"\\s*)?\\)$"),M=new RegExp("^lab\\(\\s*"+o+l+t+l+t+"\\s*(?:\\/\\s*"+i+"\\s*)?\\)$"),m=new RegExp("^lch\\(\\s*"+o+l+t+l+u+"\\s*(?:\\/\\s*"+i+"\\s*)?\\)$"),y=function(r,a,n){return r+n*(a-r)},x=function(r){return void 0===r&&(r=1),1===r?function(r){return r}:function(a){return Math.pow(a,r)}},w=function(r){return function(a){var n=function(r){for(var a=[],n=0;n<r.length-1;n++){var t=r[n],e=r[n+1];void 0===t&&void 0===e?a.push(void 0):void 0!==t&&void 0!==e?a.push([t,e]):a.push(void 0!==t?[t,t]:[e,e])}return a}(a);return function(a){var t=a*n.length,e=1===a?n.length-1:Math.floor(t),o=n[e];return void 0===o?void 0:r(o[0],o[1],t-e)}}},k=w(y),z=function(r){var a=!1,n=r.map((function(r){return void 0!==r?(a=!0,r):1}));return a?n:r},P={mode:"rgb",channels:["r","g","b","alpha"],alias:["srgb"],parsers:[function(r){var n;return(n=r.match(b))?a(parseInt(n[1],16),n[1].length):void 0},function(r){var a,n;if(a=r.match(c)||r.match(p))n={mode:"rgb",r:a[1]/255,g:a[2]/255,b:a[3]/255};else{if(!(a=r.match(f)||r.match(s)))return;n={mode:"rgb",r:a[1]/100,g:a[2]/100,b:a[3]/100}}return void 0!==a[4]?n.alpha=a[4]/100:void 0!==a[5]&&(n.alpha=+a[5]),n},function(r){return a(n[r.toLowerCase()],6)},function(r){return"transparent"===r?a(0,8):void 0}],interpolate:{r:k,g:k,b:k,alpha:{use:k,fixup:z}}},I=function(r){var a=Math.abs(r);return a<.04045?r/12.92:(Math.sign(r)||1)*Math.pow((a+.055)/1.055,2.4)},q=function(r){var a=r.r,n=r.g,t=r.b,e=r.alpha,o={mode:"lrgb",r:I(a),g:I(n),b:I(t)};return void 0!==e&&(o.alpha=e),o},j=function(r){var a=Math.abs(r);return a>.0031308?(Math.sign(r)||1)*(1.055*Math.pow(a,1/2.4)-.055):12.92*r},S=function(r,a){var n=r.r,t=r.g,e=r.b,o=r.alpha;void 0===a&&(a="rgb");var i={mode:a,r:j(n),g:j(t),b:j(e)};return void 0!==o&&(i.alpha=o),i},E=Object.assign({},P,{mode:"lrgb",output:{rgb:S},input:{rgb:q},parsers:[]}),O=function(r){return Math.pow(Math.abs(r),563/256)*Math.sign(r)},A=function(r){var a=O(r.r),n=O(r.g),t=O(r.b),e={mode:"xyz65",x:.5766690429101305*a+.1855582379065463*n+.1882286462349947*t,y:.29734497525053605*a+.6273635662554661*n+.07529145849399788*t,z:.02703136138641234*a+.07068885253582723*n+.9913375368376388*t};return void 0!==r.alpha&&(e.alpha=r.alpha),e},C=function(r){return Math.pow(Math.abs(r),256/563)*Math.sign(r)},H=function(r){var a=r.x,n=r.y,t=r.z,e=r.alpha,o={mode:"a98",r:C(2.0415879038107465*a-.5650069742788596*n-.34473135077832956*t),g:C(-.9692436362808795*a+1.8759675015077202*n+.04155505740717557*t),b:C(.013444280632031142*a-.11836239223101838*n+1.0151749943912054*t)};return void 0!==e&&(o.alpha=e),o},R=function(r){var a=q(r),n=a.r,t=a.g,e=a.b,o=a.alpha,i={mode:"xyz65",x:.4124564*n+.3575761*t+.1804375*e,y:.2126729*n+.7151522*t+.072175*e,z:.0193339*n+.119192*t+.9503041*e};return void 0!==o&&(i.alpha=o),i},N=function(r){var a=r.x,n=r.y,t=r.z,e=r.alpha,o=S({r:3.2404542*a-1.5371385*n-.4985314*t,g:-.969266*a+1.8760108*n+.041556*t,b:.0556434*a-.2040259*n+1.0572252*t});return void 0!==e&&(o.alpha=e),o},$=Object.assign({},P,{mode:"a98",alias:["a98-rgb"],parsers:[],input:{rgb:function(r){return H(R(r))},xyz65:H},output:{rgb:function(r){return N(A(r))},xyz65:A}}),D=function(r){var a=q(r),n=a.r,t=a.g,e=a.b,o=a.alpha,i={mode:"xyz65",x:.4865709*n+.2656676*t+.1982172*e,y:.2289745*n+.6917385*t+.0792869*e,z:0*n+.0451133*t+1.0439443*e};return void 0!==o&&(i.alpha=o),i},L=function(r){var a=r.x,n=r.y,t=r.z,e=r.alpha,o=S({r:2.4934969*a-.9313836*n-.4027107*t,g:-.8294889*a+1.762664*n+.0236246*t,b:.0358458*a-.0761723*n+.9568845*t},"p3");return void 0!==e&&(o.alpha=e),o},T=Object.assign({},P,{mode:"p3",alias:["display-p3"],input:{rgb:function(r){return L(R(r))},xyz65:L},output:{rgb:function(r){return N(D(r))},xyz65:D},parsers:[]}),B=function(r){var a=Math.abs(r);return a>=1/512?Math.sign(r)*Math.pow(a,1/1.8):16*r},F=function(r){var a=r.x,n=r.y,t=r.z,e=r.alpha,o={mode:"prophoto",r:B(1.3457989731028281*a-.25558010007997534*n-.05110628506753401*t),g:B(-.5446224939028347*a+1.5082327413132781*n+.02053603239147973*t),b:B(0*a+0*n+1.2119675456389454*t)};return void 0!==e&&(o.alpha=e),o},G=function(r){var a=Math.abs(r);return a>=16/512?Math.sign(r)*Math.pow(a,1.8):r/16},W=function(r){var a=G(r.r),n=G(r.g),t=G(r.b),e={mode:"xyz65",x:.7977604896723027*a+.13518583717574031*n+.0313493495815248*t,y:.2880711282292934*a+.7118432178101014*n+8565396060525902e-20*t,z:0*a+0*n+.8251046025104601*t};return void 0!==r.alpha&&(e.alpha=r.alpha),e},_=function(r){var a=r.x,n=r.y,t=r.z,e=r.alpha,o=S({r:3.1338561*a-1.6168667*n-.4906146*t,g:-.9787684*a+1.9161415*n+.033454*t,b:.0719453*a-.2289914*n+1.4052427*t});return void 0!==e&&(o.alpha=e),o},K=function(r){var a=q(r),n=a.r,t=a.g,e=a.b,o=a.alpha,i={mode:"xyz",x:.4360747*n+.3850649*t+.1430804*e,y:.2225045*n+.7168786*t+.0606169*e,z:.0139322*n+.0971045*t+.7141733*e};return void 0!==o&&(i.alpha=o),i},J=Object.assign({},P,{mode:"prophoto",alias:["prophoto-rgb"],parsers:[],input:{xyz:F,rgb:function(r){return F(K(r))}},output:{xyz:W,rgb:function(r){return _(W(r))}}}),Q=1.09929682680944,U=function(r){var a=Math.abs(r);return a>.018053968510807?(Math.sign(r)||1)*(Q*Math.pow(a,.45)-(Q-1)):4.5*r},V=function(r){var a=r.x,n=r.y,t=r.z,e=r.alpha,o={mode:"rec2020",r:U(1.7166511879712674*a-.35567078377639233*n-.25336628137365974*t),g:U(-.6666843518324892*a+1.6164812366349395*n+.01576854581391113*t),b:U(.017639857445310783*a-.042770613257808524*n+.9421031212354738*t)};return void 0!==e&&(o.alpha=e),o},X=1.09929682680944,Y=function(r){var a=Math.abs(r);return a<.08124285829863151?r/4.5:(Math.sign(r)||1)*Math.pow((a+X-1)/X,1/.45)},Z=function(r){var a=Y(r.r),n=Y(r.g),t=Y(r.b),e={mode:"xyz65",x:.6369580483012914*a+.14461690358620832*n+.1688809751641721*t,y:.2627002120112671*a+.6779980715188708*n+.05930171646986196*t,z:0*a+.028072693049087428*n+1.060985057710791*t};return void 0!==r.alpha&&(e.alpha=r.alpha),e},rr=Object.assign({},P,{mode:"rec2020",input:{xyz:V,rgb:function(r){return V(R(r))}},output:{xyz:Z,rgb:function(r){return N(Z(r))}},parsers:[]}),ar=function(r){return(r%=360)<0?r+360:r};var nr=function(r,a){switch(a){case"deg":return+r;case"rad":return r/Math.PI*180;case"grad":return r/10*9;case"turn":return 360*r}},tr=function(r,a){return r.map((function(n,t,e){if(void 0===n)return n;var o=ar(n);return 0===t||void 0===r[t-1]?o:a(o-ar(e[t-1]))})).reduce((function(r,a){return r.length&&void 0!==a&&void 0!==r[r.length-1]?(r.push(a+r[r.length-1]),r):(r.push(a),r)}),[])},er=function(r){return tr(r,(function(r){return Math.abs(r)<=180?r:r-360*Math.sign(r)}))},or={},ir={},ur=[],hr=function(r){return r},lr=function(r){or[r.mode]=Object.assign(or[r.mode]||{},r.output),Object.keys(r.input||{}).forEach((function(a){or[a]||(or[a]={}),or[a][r.mode]=r.input[a]})),r.ranges||(r.ranges={}),r.difference||(r.difference={}),r.channels.forEach((function(a){if(void 0===r.ranges[a]&&(r.ranges[a]=[0,1]),!r.interpolate[a])throw new Error("Missing interpolator for: "+a);"function"==typeof r.interpolate[a]&&(r.interpolate[a]={use:r.interpolate[a]}),r.interpolate[a].fixup||(r.interpolate[a].fixup=hr)})),ir[r.mode]=r,(r.parsers||[]).forEach((function(r){return ur.push(r)}))},cr=function(r){return ir[r]},fr=function(r){if("string"==typeof r){for(var a,n=0,t=ur.length;n<t&&void 0===(a=ur[n++](r)););return a}},pr=function(r,a){return void 0===r?void 0:"object"!=typeof r?fr(r):void 0!==r.mode?r:a?Object.assign({},r,{mode:a}):void 0},sr=function(r){return void 0===r&&(r="rgb"),function(a){return void 0!==(a=pr(a,r))?a.mode===r?a:or[a.mode][r]?or[a.mode][r](a):"rgb"===r?or[a.mode].rgb(a):or.rgb[r](or[a.mode].rgb(a)):void 0}},dr=function(r,a){if(void 0===r.h||void 0===a.h||!r.s||!a.s)return 0;var n=ar(r.h),t=ar(a.h),e=Math.sin((t-n+360)/2*Math.PI/180);return 2*Math.sqrt(r.s*a.s)*e},vr=function(r,a){if(void 0===r.h||void 0===a.h)return 0;var n=ar(r.h),t=ar(a.h);return Math.abs(t-n)>180?n-(t-360*Math.sign(t-n)):t-n},br=function(r,a){if(void 0===r.h||void 0===a.h||!r.c||!a.c)return 0;var n=ar(r.h),t=ar(a.h),e=Math.sin((t-n+360)/2*Math.PI/180);return 2*Math.sqrt(r.c*a.c)*e},gr=function(r,a){void 0===r&&(r="rgb"),void 0===a&&(a=[1,1,1,0]);var n=cr(r),t=n.channels,e=n.difference,o=sr(r);return function(r,n){var i=o(r),u=o(n);return Math.sqrt(t.reduce((function(r,n,t){var o=e[n]?e[n](i,u):i[n]-u[n];return r+(a[t]||0)*Math.pow(isNaN(o)?0:o,2)}),0))}},Mr=function(r){var a=r.reduce((function(r,a){if(void 0!==a){var n=a*Math.PI/180;r.sin+=Math.sin(n),r.cos+=Math.cos(n)}return r}),{sin:0,cos:0});return 180*Math.atan2(a.sin,a.cos)/Math.PI},mr=function(r){var a=r.filter((function(r){return void 0!==r}));return a.length?a.reduce((function(r,a){return r+a}),0)/a.length:void 0},yr=function(r){return"function"==typeof r};var xr={mode:"hsl",output:{rgb:function(r){var a=r.h,n=r.s,t=r.l,e=r.alpha;a=ar(a);var o,i=t+n*(t<.5?t:1-t),u=i-2*(i-t)*Math.abs(a/60%2-1);switch(Math.floor(a/60)){case 0:o={r:i,g:u,b:2*t-i};break;case 1:o={r:u,g:i,b:2*t-i};break;case 2:o={r:2*t-i,g:i,b:u};break;case 3:o={r:2*t-i,g:u,b:i};break;case 4:o={r:u,g:2*t-i,b:i};break;case 5:o={r:i,g:2*t-i,b:u};break;default:o={r:2*t-i,g:2*t-i,b:2*t-i}}return o.mode="rgb",void 0!==e&&(o.alpha=e),o}},input:{rgb:function(r){var a=r.r,n=r.g,t=r.b,e=r.alpha,o=Math.max(a,n,t),i=Math.min(a,n,t),u={mode:"hsl",s:o===i?0:(o-i)/(1-Math.abs(o+i-1)),l:.5*(o+i)};return o-i!=0&&(u.h=60*(o===a?(n-t)/(o-i)+6*(n<t):o===n?(t-a)/(o-i)+2:(a-n)/(o-i)+4)),void 0!==e&&(u.alpha=e),u}},channels:["h","s","l","alpha"],ranges:{h:[0,360]},parsers:[function(r){var a=r.match(d)||r.match(v);if(a){var n={mode:"hsl",h:void 0===a[3]?nr(a[1],a[2]):+a[3],s:Math.min(Math.max(0,a[4]/100),1),l:Math.min(Math.max(0,a[5]/100),1)};return void 0!==a[6]?n.alpha=a[6]/100:void 0!==a[7]&&(n.alpha=+a[7]),n}}],interpolate:{h:{use:k,fixup:er},s:k,l:k,alpha:{use:k,fixup:z}},difference:{h:dr},average:{h:Mr}};function wr(r){var a=r.h,n=r.s,t=r.v,e=r.alpha;a=ar(a);var o,i=Math.abs(a/60%2-1);switch(Math.floor(a/60)){case 0:o={r:t,g:t*(1-n*i),b:t*(1-n)};break;case 1:o={r:t*(1-n*i),g:t,b:t*(1-n)};break;case 2:o={r:t*(1-n),g:t,b:t*(1-n*i)};break;case 3:o={r:t*(1-n),g:t*(1-n*i),b:t};break;case 4:o={r:t*(1-n*i),g:t*(1-n),b:t};break;case 5:o={r:t,g:t*(1-n),b:t*(1-n*i)};break;default:o={r:t*(1-n),g:t*(1-n),b:t*(1-n)}}return o.mode="rgb",void 0!==e&&(o.alpha=e),o}function kr(r){var a=r.r,n=r.g,t=r.b,e=r.alpha,o=Math.max(a,n,t),i=Math.min(a,n,t),u={mode:"hsv",s:0===o?0:1-i/o,v:o};return o-i!=0&&(u.h=60*(o===a?(n-t)/(o-i)+6*(n<t):o===n?(t-a)/(o-i)+2:(a-n)/(o-i)+4)),void 0!==e&&(u.alpha=e),u}var zr={mode:"hsv",output:{rgb:wr},input:{rgb:kr},channels:["h","s","v","alpha"],ranges:{h:[0,360]},interpolate:{h:{use:k,fixup:er},s:k,v:k,alpha:{use:k,fixup:z}},difference:{h:dr},average:{h:Mr}};var Pr={mode:"hsi",output:{rgb:function(r){var a=r.h,n=r.s,t=r.i,e=r.alpha;a=ar(a);var o,i=Math.abs(a/60%2-1);switch(Math.floor(a/60)){case 0:o={r:t*(1+n*(3/(2-i)-1)),g:t*(1+n*(3*(1-i)/(2-i)-1)),b:t*(1-n)};break;case 1:o={r:t*(1+n*(3*(1-i)/(2-i)-1)),g:t*(1+n*(3/(2-i)-1)),b:t*(1-n)};break;case 2:o={r:t*(1-n),g:t*(1+n*(3/(2-i)-1)),b:t*(1+n*(3*(1-i)/(2-i)-1))};break;case 3:o={r:t*(1-n),g:t*(1+n*(3*(1-i)/(2-i)-1)),b:t*(1+n*(3/(2-i)-1))};break;case 4:o={r:t*(1+n*(3*(1-i)/(2-i)-1)),g:t*(1-n),b:t*(1+n*(3/(2-i)-1))};break;case 5:o={r:t*(1+n*(3/(2-i)-1)),g:t*(1-n),b:t*(1+n*(3*(1-i)/(2-i)-1))};break;default:o={r:t*(1-n),g:t*(1-n),b:t*(1-n)}}return o.mode="rgb",void 0!==e&&(o.alpha=e),o}},input:{rgb:function(r){var a=r.r,n=r.g,t=r.b,e=r.alpha,o=Math.max(a,n,t),i=Math.min(a,n,t),u={mode:"hsi",s:a+n+t===0?0:1-3*i/(a+n+t),i:(a+n+t)/3};return o-i!=0&&(u.h=60*(o===a?(n-t)/(o-i)+6*(n<t):o===n?(t-a)/(o-i)+2:(a-n)/(o-i)+4)),void 0!==e&&(u.alpha=e),u}},channels:["h","s","i","alpha"],ranges:{h:[0,360]},interpolate:{h:{use:k,fixup:er},s:k,i:k,alpha:{use:k,fixup:z}},difference:{h:dr},average:{h:Mr}};var Ir,qr={mode:"hwb",output:{rgb:function(r){var a=r.h,n=r.w,t=r.b;if(n+t>1){var e=n+t;n/=e,t/=e}return wr({h:a,s:1===t?1:1-n/(1-t),v:1-t,alpha:r.alpha})}},input:{rgb:function(r){var a=kr(r);if(void 0!==a){var n={mode:"hwb",w:(1-a.s)*a.v,b:1-a.v};return void 0!==a.h&&(n.h=a.h),void 0!==a.alpha&&(n.alpha=a.alpha),n}}},channels:["h","w","b","alpha"],ranges:{h:[0,360]},parsers:[function(r){var a=r.match(g);if(a){var n={mode:"hwb",h:void 0===a[3]?nr(a[1],a[2]):+a[3],w:a[4]/100,b:a[5]/100};if(n.w+n.b>1){var t=n.w+n.b;n.w/=t,n.b/=t}return void 0!==a[6]?n.alpha=a[6]/100:void 0!==a[7]&&(n.alpha=+a[7]),n}}],interpolate:{h:{use:k,fixup:er},w:k,b:k,alpha:{use:k,fixup:z}},difference:{h:vr},average:{h:Mr}},jr=function(r){var a=Math.pow(r/1e4,.1593017578125);return Math.pow((.8359375+18.8515625*a)/(1+18.6875*a),134.03437499999998)||0},Sr=function(r){return Math.max(203*r,0)},Er=function(r){var a=r.x,n=r.y,t=r.z,e=r.alpha;a=Sr(a),n=Sr(n);var o=1.15*a-.15*(t=Sr(t)),i=.66*n+.34*a,u=jr(.41478972*o+.579999*i+.014648*t),h=jr(-.20151*o+1.120649*i+.0531008*t),l=jr(-.0166008*o+.2648*i+.6684799*t),c=(u+h)/2,f={mode:"jab",j:.44*c/(1-.56*c)-16295499532821565e-27,a:3.524*u-4.066708*h+.542708*l,b:.199076*u+1.096799*h-1.295875*l};return void 0!==e&&(f.alpha=e),f},Or=16295499532821565e-27,Ar=function(r){var a=Math.pow(r,.007460772656268216);return 1e4*Math.pow((.8359375-a)/(18.6875*a-18.8515625),6.277394636015326)||0},Cr=function(r){return r/203},Hr=function(r){var a=r.j,n=r.a,t=r.b,e=r.alpha,o=(a+Or)/(.44+.56*(a+Or)),i=Ar(o+.13860504*n+.058047316*t),u=Ar(o-.13860504*n-.058047316*t),h=Ar(o-.096019242*n-.8118919*t),l={mode:"xyz65",x:Cr(1.661373024652174*i-.914523081304348*u+.23136208173913045*h),y:Cr(-.3250758611844533*i+1.571847026732543*u-.21825383453227928*h),z:Cr(-.090982811*i-.31272829*u+1.5227666*h)};return void 0!==e&&(l.alpha=e),l},Rr=function(r){var a=Er(R(r));return r.r===r.b&&r.b===r.g&&(a.a=a.b=0),a},Nr=function(r){return N(Hr(r))},$r={mode:"jab",channels:["j","a","b","alpha"],input:{rgb:Rr,xyz65:Er},output:{rgb:Nr,xyz65:Hr},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:k,a:k,b:k,alpha:{use:k,fixup:z}}},Dr=function(r){var a=r.j,n=r.a,t=r.b,e=r.alpha,o=Math.sqrt(n*n+t*t),i={mode:"jch",j:a,c:o};return o&&(i.h=ar(180*Math.atan2(t,n)/Math.PI)),void 0!==e&&(i.alpha=e),i},Lr=function(r){var a=r.j,n=r.c,t=r.h,e=r.alpha,o={mode:"jab",j:a,a:n?n*Math.cos(t/180*Math.PI):0,b:n?n*Math.sin(t/180*Math.PI):0};return void 0!==e&&(o.alpha=e),o},Tr={mode:"jch",output:{jab:Lr,rgb:function(r){return Nr(Lr(r))}},input:{rgb:function(r){return Dr(Rr(r))},jab:Dr},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:k,fixup:er},c:k,j:k,alpha:{use:k,fixup:z}},difference:{h:br},average:{h:Mr}},Br=.96422,Fr=.82521,Gr=Math.pow(29,3)/Math.pow(3,3),Wr=Math.pow(6,3)/Math.pow(29,3),_r=function(r){return Math.pow(r,3)>Wr?Math.pow(r,3):(116*r-16)/Gr},Kr=function(r){var a=r.l,n=r.a,t=r.b,e=r.alpha,o=(a+16)/116,i=o-t/200,u={mode:"xyz",x:_r(n/500+o)*Br,y:1*_r(o),z:_r(i)*Fr};return void 0!==e&&(u.alpha=e),u},Jr=function(r){return _(Kr(r))},Qr=function(r){return r>Wr?Math.cbrt(r):(Gr*r+16)/116},Ur=function(r){var a=r.x,n=r.y,t=r.z,e=r.alpha,o=Qr(a/Br),i=Qr(n/1),u={mode:"lab",l:116*i-16,a:500*(o-i),b:200*(i-Qr(t/Fr))};return void 0!==e&&(u.alpha=e),u},Vr=function(r){var a=Ur(K(r));return r.r===r.b&&r.b===r.g&&(a.a=a.b=0),a},Xr={mode:"lab",alias:["lab-d50"],output:{xyz:Kr,rgb:Jr},input:{xyz:Ur,rgb:Vr},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-79.287,93.55],b:[-112.029,93.388]},parsers:[function(r){var a=r.match(M);if(a){var n={mode:"lab",l:+a[1],a:+a[2],b:+a[3]};return void 0!==a[4]?n.alpha=a[4]/100:void 0!==a[5]&&(n.alpha=+a[5]),n}}],interpolate:{l:k,a:k,b:k,alpha:{use:k,fixup:z}}},Yr=.95047,Zr=1.08883,ra=Math.pow(29,3)/Math.pow(3,3),aa=Math.pow(6,3)/Math.pow(29,3),na=function(r){return Math.pow(r,3)>aa?Math.pow(r,3):(116*r-16)/ra},ta=function(r){var a=r.l,n=r.a,t=r.b,e=r.alpha,o=(a+16)/116,i=o-t/200,u={mode:"xyz65",x:na(n/500+o)*Yr,y:1*na(o),z:na(i)*Zr};return void 0!==e&&(u.alpha=e),u},ea=function(r){return N(ta(r))},oa=function(r){return r>aa?Math.cbrt(r):(ra*r+16)/116},ia=function(r){var a=r.x,n=r.y,t=r.z,e=r.alpha,o=oa(a/Yr),i=oa(n/1),u={mode:"lab65",l:116*i-16,a:500*(o-i),b:200*(i-oa(t/Zr))};return void 0!==e&&(u.alpha=e),u},ua=function(r){var a=ia(R(r));return r.r===r.b&&r.b===r.g&&(a.a=a.b=0),a},ha=Object.assign({},Xr,{mode:"lab65",alias:["lab-d65"],output:{xyz65:ta,rgb:ea},input:{xyz65:ia,rgb:ua},ranges:{l:[0,100],a:[-86.182,98.234],b:[-107.86,94.477]},parsers:[]}),la=function(r,a){var n=r.l,t=r.a,e=r.b,o=r.alpha;void 0===a&&(a="lch");var i=Math.sqrt(t*t+e*e),u={mode:a,l:n,c:i};return i&&(u.h=ar(180*Math.atan2(e,t)/Math.PI)),void 0!==o&&(u.alpha=o),u},ca=function(r,a){var n=r.l,t=r.c,e=r.h,o=r.alpha;void 0===a&&(a="lab");var i={mode:a,l:n,a:t?t*Math.cos(e/180*Math.PI):0,b:t?t*Math.sin(e/180*Math.PI):0};return void 0!==o&&(i.alpha=o),i},fa={mode:"lch",alias:["lch-d50"],output:{lab:ca,rgb:function(r){return Jr(ca(r))}},input:{rgb:function(r){return la(Vr(r))},lab:la},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,131.207],h:[0,360]},parsers:[function(r){var a=r.match(m);if(a){var n={mode:"lch",l:+a[1],c:Math.max(0,+a[2]),h:void 0===a[5]?nr(a[3],a[4]):+a[5]};return void 0!==a[6]?n.alpha=a[6]/100:void 0!==a[7]&&(n.alpha=+a[7]),n}}],interpolate:{h:{use:k,fixup:er},c:k,l:k,alpha:{use:k,fixup:z}},difference:{h:br},average:{h:Mr}},pa=Object.assign({},fa,{mode:"lch65",alias:["lch-d65"],output:{lab65:function(r){return ca(r,"lab65")},rgb:function(r){return ea(ca(r,"lab65"))}},input:{rgb:function(r){return la(ua(r),"lch65")},lab65:function(r){return la(r,"lch65")}},parsers:[],ranges:{l:[0,100],c:[0,133.807],h:[0,360]}}),sa=function(r,a,n){return 4*r/(r+15*a+3*n)},da=function(r,a,n){return 9*a/(r+15*a+3*n)},va=sa(Br,1,Fr),ba=da(Br,1,Fr),ga=function(r){var a,n=r.x,t=r.y,e=r.z,o=r.alpha,i=(a=t/1)<=Wr?Gr*a:116*Math.cbrt(a)-16,u=sa(n,t,e),h=da(n,t,e);isFinite(u)&&isFinite(h)?(u=13*i*(u-va),h=13*i*(h-ba)):i=u=h=0;var l={mode:"luv",l:i,u:u,v:h};return void 0!==o&&(l.alpha=o),l},Ma=function(r){return ga(K(r))},ma=4*(Ir=Br)/(Ir+15*1+3*Fr),ya=function(r,a,n){return 9*a/(r+15*a+3*n)}(Br,1,Fr),xa=function(r){var a=r.l,n=r.u,t=r.v,e=r.alpha,o=n/(13*a)+ma,i=t/(13*a)+ya,u=1*(a<=8?a/Gr:Math.pow((a+16)/116,3)),h={mode:"xyz",x:u*(9*o)/(4*i),y:u,z:u*(12-3*o-20*i)/(4*i)};return void 0!==e&&(h.alpha=e),h},wa=function(r){return _(xa(r))},ka={mode:"luv",output:{xyz:xa,rgb:wa},input:{xyz:ga,rgb:Ma},channels:["l","u","v","alpha"],ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:k,u:k,v:k,alpha:{use:k,fixup:z}}},za=function(r){var a=r.l,n=r.u,t=r.v,e=r.alpha,o=Math.sqrt(n*n+t*t),i={mode:"lchuv",l:a,c:o};return o&&(i.h=ar(180*Math.atan2(t,n)/Math.PI)),void 0!==e&&(i.alpha=e),i},Pa=function(r){var a=r.l,n=r.c,t=r.h,e=r.alpha,o={mode:"luv",l:a,u:n?n*Math.cos(t/180*Math.PI):0,v:n?n*Math.sin(t/180*Math.PI):0};return void 0!==e&&(o.alpha=e),o},Ia={mode:"lchuv",output:{luv:Pa,rgb:function(r){return wa(Pa(r))}},input:{rgb:function(r){return za(Ma(r))},luv:za},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:k,fixup:er},c:k,l:k,alpha:{use:k,fixup:z}},difference:{h:br},average:{h:Mr}},qa=[-.14861,1.78277,-.29227,-.90649,1.97294,0],ja=Math.PI/180,Sa=180/Math.PI,Ea=qa[3]*qa[4],Oa=qa[1]*qa[4],Aa=qa[1]*qa[2]-qa[0]*qa[3],Ca={mode:"cubehelix",channels:["h","s","l","alpha"],ranges:{h:[0,360],s:[0,4.614],l:[0,1]},input:{rgb:function(r){var a=r.r,n=r.g,t=r.b,e=r.alpha,o=(Aa*t+a*Ea-n*Oa)/(Aa+Ea-Oa),i=t-o,u=(qa[4]*(n-o)-qa[2]*i)/qa[3],h={mode:"cubehelix",l:o,s:0===o||1===o?void 0:Math.sqrt(i*i+u*u)/(qa[4]*o*(1-o))};return h.s&&(h.h=Math.atan2(u,i)*Sa-120),void 0!==e&&(h.alpha=e),h}},output:{rgb:function(r){var a=r.h,n=r.s,t=r.l,e=r.alpha,o={mode:"rgb"};a=(void 0===a?0:a+120)*ja;var i=void 0===n?0:n*t*(1-t),u=Math.cos(a),h=Math.sin(a);return o.r=t+i*(qa[0]*u+qa[1]*h),o.g=t+i*(qa[2]*u+qa[3]*h),o.b=t+i*(qa[4]*u+qa[5]*h),void 0!==e&&(o.alpha=e),o}},interpolate:{h:{use:k,fixup:er},s:k,l:k,alpha:{use:k,fixup:z}},difference:{h:dr},average:{h:Mr}},Ha=function(r){var a=r.l,n=r.a,t=r.b,e=r.alpha,o=Math.sqrt(n*n+t*t),i={mode:"dlch",l:a,c:o};return o&&(i.h=ar(180*Math.atan2(t,n)/Math.PI)),void 0!==e&&(i.alpha=e),i},Ra=26/180*Math.PI,Na=Math.cos(Ra),$a=Math.sin(Ra),Da=100/Math.log(1.39),La=function(r){var a=r.l,n=r.c,t=r.h,e=r.alpha,o={mode:"lab65",l:(Math.exp(1*a/Da)-1)/.0039};if(void 0===t)o.a=o.b=0;else{var i=(Math.exp(.0435*n*1*1)-1)/.075,u=i*Math.cos(t/180*Math.PI-Ra),h=i*Math.sin(t/180*Math.PI-Ra);o.a=u*Na-h/.83*$a,o.b=u*$a+h/.83*Na}return void 0!==e&&(o.alpha=e),o},Ta=function(r){return La(Ha(r))},Ba=function(r){var a=r.l,n=r.a,t=r.b,e=r.alpha,o=n*Na+t*$a,i=.83*(t*Na-n*$a),u=Math.sqrt(o*o+i*i),h={mode:"dlch",l:Da/1*Math.log(1+.0039*a),c:Math.log(1+.075*u)/.0435};return h.c&&(h.h=ar((Math.atan2(i,o)+Ra)/Math.PI*180)),void 0!==e&&(h.alpha=e),h},Fa=function(r){var a=r.l,n=r.c,t=r.h,e=r.alpha,o={mode:"dlab",l:a,a:0===n?0:n*Math.cos(t/180*Math.PI),b:0===n?0:n*Math.sin(t/180*Math.PI)};return void 0!==e&&(o.alpha=e),o},Ga=function(r){return Fa(Ba(r))},Wa={mode:"dlab",output:{lab65:Ta,rgb:function(r){return ea(Ta(r))}},input:{lab65:Ga,rgb:function(r){return Ga(ua(r))}},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:k,a:k,b:k,alpha:{use:k,fixup:z}}},_a={mode:"dlch",output:{lab65:La,dlab:Fa,rgb:function(r){return ea(La(r))}},input:{lab65:Ba,dlab:Ha,rgb:function(r){return Ba(ua(r))}},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:k,c:k,h:{use:k,fixup:er},alpha:{use:k,fixup:z}},difference:{h:br},average:{h:Mr}},Ka={mode:"xyz",alias:["xyz-d50"],output:{rgb:_,lab:Ur},input:{rgb:K,lab:Kr},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:k,y:k,z:k,alpha:{use:k,fixup:z}}},Ja={mode:"xyz65",alias:["xyz-d65"],output:{rgb:N,xyz:function(r){var a=r.x,n=r.y,t=r.z,e=r.alpha,o={mode:"xyz",x:1.0478112*a+.0228866*n-.050127*t,y:.0295424*a+.9904844*n-.0170491*t,z:-.0092345*a+.0150436*n+.7521316*t};return void 0!==e&&(o.alpha=e),o}},input:{rgb:R,xyz:function(r){var a=r.x,n=r.y,t=r.z,e=r.alpha,o={mode:"xyz65",x:.9555766*a-.0230393*n+.0631636*t,y:-.0282895*a+1.0099416*n+.0210077*t,z:.0122982*a-.020483*n+1.3299098*t};return void 0!==e&&(o.alpha=e),o}},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],interpolate:{x:k,y:k,z:k,alpha:{use:k,fixup:z}}},Qa={mode:"yiq",output:{rgb:function(r){var a=r.y,n=r.i,t=r.q,e=r.alpha;return S({r:a+.95608445*n+.6208885*t,g:a-.27137664*n-.6486059*t,b:a-1.10561724*n+1.70250126*t,alpha:e})}},input:{rgb:function(r){var a=q(r),n=a.r,t=a.g,e=a.b,o=a.alpha,i={mode:"yiq",y:.29889531*n+.58662247*t+.11448223*e,i:.59597799*n-.2741761*t-.32180189*e,q:.21147017*n-.52261711*t+.31114694*e};return void 0!==o&&(i.alpha=o),i}},channels:["y","i","q","alpha"],ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:k,i:k,q:k,alpha:{use:k,fixup:z}}},Ua=function(r){var a=r.l,n=r.a,t=r.b,e=r.alpha,o=Math.pow(a+.3963377774*n+.2158037573*t,3),i=Math.pow(a-.1055613458*n-.0638541728*t,3),u=Math.pow(a-.0894841775*n-1.291485548*t,3),h={mode:"lrgb",r:4.0767416621*o-3.3077115913*i+.2309699292*u,g:-1.2684380046*o+2.6097574011*i-.3413193965*u,b:-.0041960863*o-.7034186147*i+1.707614701*u};return void 0!==e&&(h.alpha=e),h},Va=function(r){var a=r.r,n=r.g,t=r.b,e=r.alpha,o=Math.cbrt(.4122214708*a+.5363325363*n+.0514459929*t),i=Math.cbrt(.2119034982*a+.6806995451*n+.1073969566*t),u=Math.cbrt(.0883024619*a+.2817188376*n+.6299787005*t),h={mode:"oklab",l:.2104542553*o+.793617785*i-.0040720468*u,a:1.9779984951*o-2.428592205*i+.4505937099*u,b:.0259040371*o+.7827717662*i-.808675766*u};return void 0!==e&&(h.alpha=e),h},Xa=function(r){var a=Va(q(r));return r.r===r.b&&r.b===r.g&&(a.a=a.b=0),a},Ya=function(r){return S(Ua(r))},Za=Object.assign({},Xr,{mode:"oklab",alias:[],output:{lrgb:Ua,rgb:Ya},input:{lrgb:Va,rgb:Xa},ranges:{l:[0,.999],a:[-.233,.276],b:[-.311,.198]},parsers:[]}),rn=Object.assign({},fa,{mode:"oklch",alias:[],output:{oklab:function(r){return ca(r,"oklab")},rgb:function(r){return Ya(ca(r,"oklab"))}},input:{rgb:function(r){return la(Xa(r),"oklch")},oklab:function(r){return la(r,"oklch")}},parsers:[],ranges:{l:[0,.999],c:[0,.322],h:[0,360]}}),an=function(r){return void 0===r&&(r=4),function(a){return"number"==typeof a?function(r,a){return Math.round(r*(a=Math.pow(10,a)))/a}(a,r):a}},nn=sr("rgb"),tn=sr("hsl"),en=an(2),on=function(r){return Math.max(0,Math.min(1,r))},un=function(r){return Math.round(255*on(r))},hn=function(r){var a=nn(r);if(void 0!==a)return"#"+(1<<24|un(a.r)<<16|un(a.g)<<8|un(a.b)).toString(16).slice(1)},ln=function(r){var a=nn(r);if(void 0!==a){var n=un(a.r),t=un(a.g),e=un(a.b);return void 0===a.alpha||1===a.alpha?"rgb("+n+", "+t+", "+e+")":"rgba("+n+", "+t+", "+e+", "+en(on(a.alpha))+")"}},cn=function(r){return void 0===r&&(r=.5),function(a){return r<=0?1:r>=1?0:Math.pow(a,Math.log(.5)/Math.log(r))}},fn=function(r,a,n){void 0===a&&(a="rgb"),void 0===n&&(n=!1);var t=a?cr(a).channels:null,e=a?sr(a):pr;return function(o){var i=e(o),u=(t||cr(o.mode).channels).reduce((function(n,t){var e=r(i[t],t,i,a);return void 0===e||isNaN(e)||(n[t]=e),n}),{mode:a});if(!n)return u;var h=pr(o);return h&&h.mode!==u.mode?sr(h.mode)(u):u}},pn=function(r,a,n){return"alpha"!==a?(r||0)*(void 0!==n.alpha?n.alpha:1):r},sn=function(r,a,n){return"alpha"!==a&&0!==n.alpha?(r||0)/(void 0!==n.alpha?n.alpha:1):r},dn=function(r,a){return void 0===r&&(r=1),void 0===a&&(a=0),function(n,t){return"alpha"!==t?n*r+a:n}},vn=function(r){return"function"==typeof r},bn=function(r){return r&&"object"==typeof r},gn=function(r){return"number"==typeof r},Mn=function(r,a,n,t){void 0===a&&(a="rgb");var e=cr(a),o=sr(a),i=[],u=[],h={};r.forEach((function(r){Array.isArray(r)?(i.push(o(r[0])),u.push(r[1])):gn(r)||vn(r)?h[u.length]=r:(i.push(o(r)),u.push(void 0))})),function(r){void 0===r[0]&&(r[0]=0),void 0===r[r.length-1]&&(r[r.length-1]=1);for(var a,n,t,e,o=1;o<r.length;){if(void 0===r[o]){for(n=o,t=r[o-1],a=o;void 0===r[a];)a++;for(e=(r[a]-t)/(a-o+1);o<a;)r[o]=t+(o+1-n)*e,o++}else r[o]<r[o-1]&&(r[o]=r[o-1]);o++}}(u);var l=e.channels.reduce((function(r,a){var t;return t=bn(n)&&bn(n[a])&&n[a].fixup?n[a].fixup:bn(e.interpolate[a])&&e.interpolate[a].fixup?e.interpolate[a].fixup:function(r){return r},r[a]=t(i.map((function(r){return r[a]}))),r}),{});if(t){var c=i.map((function(r,n){return e.channels.reduce((function(r,a){return r[a]=l[a][n],r}),{mode:a})}));l=e.channels.reduce((function(r,n){return r[n]=c.map((function(r){var e=t(r[n],n,r,a);return isNaN(e)?void 0:e})),r}),{})}var f=e.channels.reduce((function(r,a){var t;return vn(n)?t=n:bn(n)&&vn(n[a])?t=n[a]:bn(n)&&bn(n[a])&&n[a].use?t=n[a].use:vn(e.interpolate[a])?t=e.interpolate[a]:bn(e.interpolate[a])&&(t=e.interpolate[a].use),r[a]=t(l[a]),r}),{}),p=i.length-1;return function(r){if((r=Math.min(Math.max(0,r),1))<=u[0])return i[0];if(r>u[p])return i[p];for(var n=0;u[n]<r;)n++;var t=u[n-1],o=u[n]-t,l=(r-t)/o,c=h[n]||h[0];void 0!==c&&(gn(c)&&(c=cn((c-t)/o)),l=c(l));var s=(n-1+l)/p;return e.channels.reduce((function(r,a){var n=f[a](s);return void 0!==n&&(r[a]=n),r}),{mode:a})}},mn=function(r,a){return function(n,t,e){void 0===t&&(t="rgb");var o=a?fn(a,t):void 0,i=Mn(n,t,e,r);return o?function(r){return o(i(r))}:i}},yn=mn(pn,sn),xn=function(r){return(1-Math.cos(r*Math.PI))/2},wn=function(r,a,n,t,e){var o=e*e,i=o*e;return((1-3*e+3*o-i)*r+(4-6*o+3*i)*a+(1+3*e+3*o-3*i)*n+i*t)/6},kn=function(r){return function(a){var n=r.length-1,t=1===a?n-1:Math.floor(a*n);return wn(t>0?r[t-1]:2*r[t]-r[t+1],r[t],r[t+1],t<n-1?r[t+2]:2*r[t+1]-r[t],(a-t/n)*n)}},zn=function(r){return function(a){var n=r.length-1,t=1===a?n-1:Math.floor(a*n);return wn(r[(t-1+r.length)%r.length],r[t],r[(t+1)%r.length],r[(t+2)%r.length],(a-t/n)*n)}},Pn=function(r){var a,n=r.length-1,t=new Array(n),e=new Array(n),o=new Array(n);for(t[1]=1/4,e[1]=(6*r[1]-r[0])/4,a=2;a<n;++a)t[a]=1/(4-t[a-1]),e[a]=(6*r[a]-(a==n-1?r[n]:0)-e[a-1])*t[a];for(o[0]=r[0],o[n]=r[n],n-1>0&&(o[n-1]=e[n-1]),a=n-2;a>0;--a)o[a]=e[a]-t[a]*o[a+1];return o},In=function(r){return kn(Pn(r))},qn=function(r){return zn(Pn(r))},jn=Math.sign,Sn=Math.min,En=Math.abs,On=function(r){for(var a=r.length-1,n=[],t=[],e=[],o=0;o<a;o++)n.push((r[o+1]-r[o])*a),t.push(o>0?.5*(r[o+1]-r[o-1])*a:void 0),e.push(o>0?(jn(n[o-1])+jn(n[o]))*Sn(En(n[o-1]),En(n[o]),.5*En(t[o])):void 0);return[n,t,e]},An=function(r,a,n){var t=r.length-1,e=t*t;return function(o){var i;1===o?(i=t-1,o=1):i=Math.floor(o*t);var u=o-i/t,h=u*u,l=h*u;return(a[i]+a[i+1]-2*n[i])*e*l+(3*n[i]-2*a[i]-a[i+1])*t*h+a[i]*u+r[i]}},Cn=function(r){if(r.length<3)return k(r);var a=r.length-1,n=On(r),t=n[0],e=n[2];return e[0]=t[0],e[a]=t[a-1],An(r,e,t)},Hn=function(r){var a=r.length-1,n=On(r),t=n[0],e=n[1],o=n[2];e[0]=.5*(r[1]-r[a])*a,e[a]=.5*(r[0]-r[a-1])*a;var i=(r[0]-r[a])*a,u=i;return o[0]=(jn(i)+jn(t[0]))*Sn(En(i),En(t[0]),.5*En(e[0])),o[a]=(jn(t[a-1])+jn(u))*Sn(En(t[a-1]),En(u),.5*En(e[a])),An(r,o,t)},Rn=sr("rgb"),Nn=function(r){var a=Rn(r);return void 0!==a&&a.r>=0&&a.r<=1&&a.g>=0&&a.g<=1&&a.b>=0&&a.b<=1},$n=sr("rgb"),Dn=function(r){var a=$n(r);return a.r=Math.max(0,Math.min(a.r,1)),a.g=Math.max(0,Math.min(a.g,1)),a.b=Math.max(0,Math.min(a.b,1)),a},Ln=function(r){return void 0===(r=pr(r))||Nn(r)?r:sr(r.mode)(Dn(r))},Tn=function(r,a){if(void 0===a&&(a="lch"),void 0===(r=pr(r))||Nn(r))return r;var n=sr(r.mode);r=sr(a)(r);var t=Object.assign({},r,{c:0});if(!Nn(t))return n(Dn(t));for(var e,o=0,i=r.c,u=cr(a).ranges.c,h=(u[1]-u[0])/Math.pow(2,13);i-o>h;)t.c=o+.5*(i-o),Nn(t)?(e=t.c,o=t.c):i=t.c;return n(Nn(t)?t:Object.assign({},t,{c:e}))},Bn={normal:function(r,a){return a},multiply:function(r,a){return r*a},screen:function(r,a){return r+a-r*a},"hard-light":function(r,a){return a<.5?2*r*a:2*a*(1-r)-1},overlay:function(r,a){return r<.5?2*a*r:2*r*(1-a)-1},darken:function(r,a){return Math.min(r,a)},lighten:function(r,a){return Math.max(r,a)},"color-dodge":function(r,a){return 0===r?0:1===a?1:Math.min(1,r/(1-a))},"color-burn":function(r,a){return 1===r?1:0===a?0:1-Math.min(1,(1-r)/a)},"soft-light":function(r,a){return a<.5?r-(1-2*a)*r*(1-r):r+(2*a-1)*((r<.25?((16*r-12)*r+4)*r:Math.sqrt(r))-r)},difference:function(r,a){return Math.abs(r-a)},exclusion:function(r,a){return r+a-2*r*a}};function Fn(r){var a=sr("lrgb")(r);return.2126*a.r+.7152*a.g+.0722*a.b}var Gn=sr("rgb"),Wn=[[1,0,-0,0,1,0,-0,-0,1],[.856167,.182038,-.038205,.029342,.955115,.015544,-.00288,-.001563,1.004443],[.734766,.334872,-.069637,.05184,.919198,.028963,-.004928,-.004209,1.009137],[.630323,.465641,-.095964,.069181,.890046,.040773,-.006308,-.007724,1.014032],[.539009,.579343,-.118352,.082546,.866121,.051332,-.007136,-.011959,1.019095],[.458064,.679578,-.137642,.092785,.846313,.060902,-.007494,-.016807,1.024301],[.38545,.769005,-.154455,.100526,.829802,.069673,-.007442,-.02219,1.029632],[.319627,.849633,-.169261,.106241,.815969,.07779,-.007025,-.028051,1.035076],[.259411,.923008,-.18242,.110296,.80434,.085364,-.006276,-.034346,1.040622],[.203876,.990338,-.194214,.112975,.794542,.092483,-.005222,-.041043,1.046265],[.152286,1.052583,-.204868,.114503,.786281,.099216,-.003882,-.048116,1.051998]],_n=[[1,0,-0,0,1,0,-0,-0,1],[.866435,.177704,-.044139,.049567,.939063,.01137,-.003453,.007233,.99622],[.760729,.319078,-.079807,.090568,.889315,.020117,-.006027,.013325,.992702],[.675425,.43385,-.109275,.125303,.847755,.026942,-.00795,.018572,.989378],[.605511,.52856,-.134071,.155318,.812366,.032316,-.009376,.023176,.9862],[.547494,.607765,-.155259,.181692,.781742,.036566,-.01041,.027275,.983136],[.498864,.674741,-.173604,.205199,.754872,.039929,-.011131,.030969,.980162],[.457771,.731899,-.18967,.226409,.731012,.042579,-.011595,.034333,.977261],[.422823,.781057,-.203881,.245752,.709602,.044646,-.011843,.037423,.974421],[.392952,.82361,-.216562,.263559,.69021,.046232,-.01191,.040281,.97163],[.367322,.860646,-.227968,.280085,.672501,.047413,-.01182,.04294,.968881]],Kn=[[1,0,-0,0,1,0,-0,-0,1],[.92667,.092514,-.019184,.021191,.964503,.014306,.008437,.054813,.93675],[.89572,.13333,-.02905,.029997,.9454,.024603,.013027,.104707,.882266],[.905871,.127791,-.033662,.026856,.941251,.031893,.01341,.148296,.838294],[.948035,.08949,-.037526,.014364,.946792,.038844,.010853,.193991,.795156],[1.017277,.027029,-.044306,-.006113,.958479,.047634,.006379,.248708,.744913],[1.104996,-.046633,-.058363,-.032137,.971635,.060503,.001336,.317922,.680742],[1.193214,-.109812,-.083402,-.058496,.97941,.079086,-.002346,.403492,.598854],[1.257728,-.139648,-.118081,-.078003,.975409,.102594,-.003316,.501214,.502102],[1.278864,-.125333,-.153531,-.084748,.957674,.127074,-989e-6,.601151,.399838],[1.255528,-.076749,-.178779,-.078411,.930809,.147602,.004733,.691367,.3039]],Jn=function(r,a){var n=Math.max(0,Math.min(1,a)),t=Math.round(n/.1),e=Math.round(n%.1),o=r[t];if(e>0&&t<r.length-1){var i=r[t+1];o=o.map((function(r,a){return y(o[a],i[a],e)}))}return function(r){var a=pr(r);if(void 0!==a){var n=Gn(a),t=n.r,e=n.g,i=n.b,u={mode:"rgb",r:o[0]*t+o[1]*e+o[2]*i,g:o[3]*t+o[4]*e+o[5]*i,b:o[6]*t+o[7]*e+o[8]*i};return void 0!==a.alpha&&(u.alpha=a.alpha),sr(a.mode)(u)}}},Qn=function(r){return void 0===r&&(r=1),Jn(Wn,r)},Un=function(r){return void 0===r&&(r=1),Jn(_n,r)},Vn=function(r){return void 0===r&&(r=1),Jn(Kn,r)},Xn=function(r){return Math.max(r,0)},Yn=function(r){return Math.max(Math.min(r,1),0)},Zn=function(r,a,n){void 0===n&&(n=!1);var t=sr(a),e=cr(a).channels;return function(o){var i=t(o);if(i){for(var u,h={mode:a},l=e.length,c=0;c<r.length;c++)void 0!==i[u=e[Math.floor(c/l)]]&&(h[u]=(h[u]||0)+r[c]*(i[e[c%l]]||0));if(!n)return h;var f=pr(o);return f&&h.mode!==f.mode?sr(f.mode)(h):h}}};lr($),lr(Ca),lr(Wa),lr(_a),lr(Pr),lr(xr),lr(zr),lr(qr),lr($r),lr(Tr),lr(Xr),lr(ha),lr(fa),lr(pa),lr(Ia),lr(E),lr(ka),lr(T),lr(J),lr(rr),lr(P),lr(Ja),lr(Ka),lr(Qa),lr(Za),lr(rn);var rt=sr("a98"),at=sr("cubehelix"),nt=sr("dlab"),tt=sr("dlch"),et=sr("hsi"),ot=sr("hsl"),it=sr("hsv"),ut=sr("hwb"),ht=sr("jab"),lt=sr("jch"),ct=sr("lab"),ft=sr("lab65"),pt=sr("lch"),st=sr("lch65"),dt=sr("lchuv"),vt=sr("lrgb"),bt=sr("luv"),gt=sr("p3"),Mt=sr("prophoto"),mt=sr("rec2020"),yt=sr("rgb"),xt=sr("xyz"),wt=sr("xyz65"),kt=sr("yiq"),zt=sr("oklab"),Pt=sr("oklch");r.a98=rt,r.average=function(r,a,n){void 0===a&&(a="rgb");var t=cr(a),e=r.map(sr(a));return t.channels.reduce((function(r,a){var o,i=e.map((function(r){return r[a]})).filter((function(r){return void 0!==r}));i.length&&(o=yr(n)?n:n&&yr(n[a])?n[a]:t.average&&yr(t.average[a])?t.average[a]:mr,r[a]=o(i,a));return r}),{mode:a})},r.averageAngle=Mr,r.averageNumber=mr,r.blend=function(r,a,n){void 0===a&&(a="normal"),void 0===n&&(n="rgb");var t="function"==typeof a?a:Bn[a],e=sr(n),o=cr(n).channels;return r.map((function(r){var a=e(r);return void 0===a.alpha&&(a.alpha=1),a})).reduce((function(r,a){if(void 0===r)return a;var e=a.alpha+r.alpha*(1-a.alpha);return o.reduce((function(n,o){return"alpha"!==o&&(0===e?n[o]=0:(n[o]=a.alpha*(1-r.alpha)*a[o]+a.alpha*r.alpha*t(r[o],a[o])+(1-a.alpha)*r.alpha*r[o],n[o]=Math.max(0,Math.min(1,n[o]/e)))),n}),{mode:n,alpha:e})}))},r.clamp=function(r){switch(void 0===r&&(r="rgb"),r){case"rgb":return Ln;case"lch":return Tn}},r.clampChroma=Tn,r.clampRgb=Ln,r.colorsNamed=n,r.converter=sr,r.cubehelix=at,r.deficiencyDeuter=Un,r.deficiencyProt=Qn,r.deficiencyTrit=Vn,r.defineMode=lr,r.differenceCie76=function(){return gr("lab65")},r.differenceCie94=function(r,a,n){void 0===r&&(r=1),void 0===a&&(a=.045),void 0===n&&(n=.015);var t=sr("lab65");return function(e,o){var i=t(e),u=t(o),h=i.l,l=i.a,c=i.b,f=Math.sqrt(l*l+c*c),p=u.l,s=u.a,d=u.b,v=Math.sqrt(s*s+d*d),b=Math.pow(h-p,2),g=Math.pow(f-v,2),M=Math.pow(l-s,2)+Math.pow(c-d,2)-g;return Math.sqrt(b/Math.pow(r,2)+g/Math.pow(1+a*f,2)+M/Math.pow(1+n*f,2))}},r.differenceCiede2000=function(r,a,n){void 0===r&&(r=1),void 0===a&&(a=1),void 0===n&&(n=1);var t=sr("lab65");return function(e,o){var i=t(e),u=t(o),h=i.l,l=i.a,c=i.b,f=Math.sqrt(l*l+c*c),p=u.l,s=u.a,d=u.b,v=(f+Math.sqrt(s*s+d*d))/2,b=.5*(1-Math.sqrt(Math.pow(v,7)/(Math.pow(v,7)+Math.pow(25,7)))),g=l*(1+b),M=s*(1+b),m=Math.sqrt(g*g+c*c),y=Math.sqrt(M*M+d*d),x=Math.abs(g)+Math.abs(c)===0?0:Math.atan2(c,g);x+=2*(x<0)*Math.PI;var w=Math.abs(M)+Math.abs(d)===0?0:Math.atan2(d,M);w+=2*(w<0)*Math.PI;var k=p-h,z=y-m,P=m*y==0?0:w-x;P-=2*(P>Math.PI)*Math.PI,P+=2*(P<-Math.PI)*Math.PI;var I,q=2*Math.sqrt(m*y)*Math.sin(P/2),j=(h+p)/2,S=(m+y)/2;m*y==0?I=x+w:(I=(x+w)/2,I-=(Math.abs(x-w)>Math.PI)*Math.PI,I+=2*(I<0)*Math.PI);var E=Math.pow(j-50,2),O=1-.17*Math.cos(I-Math.PI/6)+.24*Math.cos(2*I)+.32*Math.cos(3*I+Math.PI/30)-.2*Math.cos(4*I-63*Math.PI/180),A=1+.015*E/Math.sqrt(20+E),C=1+.045*S,H=1+.015*S*O,R=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*I-275)/25,2)),N=2*Math.sqrt(Math.pow(S,7)/(Math.pow(S,7)+Math.pow(25,7))),$=-1*Math.sin(2*R)*N;return Math.sqrt(Math.pow(k/(r*A),2)+Math.pow(z/(a*C),2)+Math.pow(q/(n*H),2)+$*z/(a*C)*q/(n*H))}},r.differenceCmc=function(r,a){void 0===r&&(r=1),void 0===a&&(a=1);var n=sr("lab65");return function(t,e){var o=n(t),i=o.l,u=o.a,h=o.b,l=Math.sqrt(u*u+h*h),c=Math.atan2(h,u);c+=2*Math.PI*(c<0);var f=n(e),p=f.l,s=f.a,d=f.b,v=Math.sqrt(s*s+d*d),b=Math.pow(i-p,2),g=Math.pow(l-v,2),M=Math.pow(u-s,2)+Math.pow(h-d,2)-g,m=Math.sqrt(Math.pow(l,4)/(Math.pow(l,4)+1900)),y=i<16?.511:.040975*i/(1+.01765*i),x=.0638*l/(1+.0131*l)+.638,w=x*(m*(c>=164/180*Math.PI&&c<=345/180*Math.PI?.56+Math.abs(.2*Math.cos(c+168/180*Math.PI)):.36+Math.abs(.4*Math.cos(c+35/180*Math.PI)))+1-m);return Math.sqrt(b/Math.pow(r*y,2)+g/Math.pow(a*x,2)+M/Math.pow(w,2))}},r.differenceDin99o=function(){return gr("dlab")},r.differenceEuclidean=gr,r.differenceHueChroma=br,r.differenceHueNaive=vr,r.differenceHueSaturation=dr,r.differenceHyab=function(){var r=sr("lab65");return function(a,n){var t=r(a),e=r(n),o=t.l-e.l,i=t.a-e.a,u=t.b-e.b;return Math.abs(o)+Math.sqrt(i*i+u*u)}},r.differenceKotsarenkoRamos=function(){return gr("yiq",[.5053,.299,.1957])},r.displayable=Nn,r.dlab=nt,r.dlch=tt,r.easingGamma=x,r.easingInOutSine=xn,r.easingMidpoint=cn,r.easingSmootherstep=function(r){return r*r*r*(r*(6*r-15)+10)},r.easingSmoothstep=function(r){return r*r*(3-2*r)},r.filterBrightness=function(r,a){void 0===r&&(r=1),void 0===a&&(a="rgb");var n=Xn(r);return fn(dn(n),a,!0)},r.filterContrast=function(r,a){void 0===r&&(r=1),void 0===a&&(a="rgb");var n=Xn(r);return fn(dn(n,(1-n)/2),a,!0)},r.filterDeficiencyDeuter=Un,r.filterDeficiencyProt=Qn,r.filterDeficiencyTrit=Vn,r.filterGrayscale=function(r,a){return void 0===r&&(r=1),void 0===a&&(a="rgb"),Zn([.2126+.7874*(n=1-Yn(r)),.7152-.7152*n,.0722-.0722*n,0,.2126-.2126*n,.7152+.2848*n,.0722-.0722*n,0,.2126-.2126*n,.7152-.7152*n,.0722+.9278*n,0,0,0,0,1],a,!0);var n},r.filterHueRotate=function(r,a){return void 0===r&&(r=0),void 0===a&&(a="rgb"),Zn(function(r){var a=Math.PI*r/180,n=Math.cos(a),t=Math.sin(a);return[.213+.787*n-.213*t,.715-.715*n-.715*t,.072-.072*n+.928*t,0,.213-.213*n+.143*t,.715+.285*n+.14*t,.072-.072*n-.283*t,0,.213-.213*n-.787*t,.715-.715*n+.715*t,.072+.928*n+.072*t,0,0,0,0,1]}(r),a,!0)},r.filterInvert=function(r,a){void 0===r&&(r=1),void 0===a&&(a="rgb");var n=Yn(r);return fn((function(r,a){return"alpha"===a?r:function(r,a,n){return void 0===r||void 0===a?void 0:r+n*(a-r)}(n,1-n,r)}),a,!0)},r.filterSaturate=function(r,a){return void 0===r&&(r=1),void 0===a&&(a="rgb"),Zn(function(r){var a=Xn(r);return[.213+.787*a,.715-.715*a,.072-.072*a,0,.213-.213*a,.715+.285*a,.072-.072*a,0,.213-.213*a,.715-.715*a,.072+.928*a,0,0,0,0,1]}(r),a,!0)},r.filterSepia=function(r,a){return void 0===r&&(r=1),void 0===a&&(a="rgb"),Zn([.393+.607*(n=1-Yn(r)),.769-.769*n,.189-.189*n,0,.349-.349*n,.686+.314*n,.168-.168*n,0,.272-.272*n,.534-.534*n,.131+.869*n,0,0,0,0,1],a,!0);var n},r.fixupAlpha=z,r.fixupHueDecreasing=function(r){return tr(r,(function(r){return r<=0?r:r-360}))},r.fixupHueIncreasing=function(r){return tr(r,(function(r){return r>=0?r:r+360}))},r.fixupHueLonger=function(r){return tr(r,(function(r){return Math.abs(r)>=180||0===r?r:r-360*Math.sign(r)}))},r.fixupHueShorter=er,r.formatHex=hn,r.formatHex8=function(r){var a=nn(r);if(void 0!==a){var n=un(void 0!==a.alpha?a.alpha:1);return hn(a)+(256|n).toString(16).slice(1)}},r.formatHsl=function(r){var a=tn(r);if(void 0!==a){var n=en(a.h||0),t=en(100*on(a.s)),e=en(100*on(a.l));return void 0===a.alpha||1===a.alpha?"hsl("+n+", "+t+"%, "+e+"%)":"hsla("+n+", "+t+"%, "+e+"%, "+en(on(a.alpha))+")"}},r.formatRgb=ln,r.formatter=function(r){switch(void 0===r&&(r="rgb"),r){case"rgb":return ln;case"hex":return hn}},r.getModeDefinition=cr,r.hsi=et,r.hsl=ot,r.hsv=it,r.hwb=ut,r.interpolate=function(r,a,n){return void 0===a&&(a="rgb"),Mn(r,a,n)},r.interpolateAlpha=z,r.interpolateCosine=function(r,a){return void 0===a&&(a=1),function(n){var t=x(a),e=w((function(r,a,n){return y(r,a,xn(n))}))((r||function(r){return r})(n));return function(r){return e(t(r))}}},r.interpolateHue=er,r.interpolateLinear=function(r,a){return void 0===a&&(a=1),function(n){var t=x(a);return function(a){return k((r||function(r){return r})(n))(t(a))}}},r.interpolateSplineBasis=function(r,a,n){return void 0===a&&(a="default"),void 0===n&&(n=1),function(t){var e=x(n);return"default"===a?function(a){return kn((r||function(r){return r})(t))(e(a))}:"closed"===a?function(a){return zn((r||function(r){return r})(t))(e(a))}:void 0}},r.interpolateSplineMonotone=function(r,a,n){return void 0===a&&(a="default"),void 0===n&&(n=1),function(t){var e=x(n);return"closed"===a?function(a){return Hn((r||function(r){return r})(t))(e(a))}:"default"===a?function(a){return Cn((r||function(r){return r})(t))(e(a))}:void 0}},r.interpolateSplineNatural=function(r,a,n){return void 0===a&&(a="default"),void 0===n&&(n=1),function(t){var e=x(n);return"default"===a?function(a){return In((r||function(r){return r})(t))(e(a))}:"closed"===a?function(a){return qn((r||function(r){return r})(t))(e(a))}:void 0}},r.interpolateWith=mn,r.interpolateWithPremultipliedAlpha=yn,r.interpolatorLinear=k,r.interpolatorPiecewise=w,r.interpolatorSplineBasis=kn,r.interpolatorSplineBasisClosed=zn,r.interpolatorSplineMonotone=Cn,r.interpolatorSplineMonotone2=function(r){if(r.length<3)return k(r);var a=r.length-1,n=On(r),t=n[0],e=n[1],o=n[2];return e[0]=(2*r[1]-1.5*r[0]-.5*r[2])*a,e[a]=(1.5*r[a]-2*r[a-1]+.5*r[a-2])*a,o[0]=e[0]*t[0]<=0?0:En(e[0])>2*En(t[0])?2*t[0]:e[0],o[a]=e[a]*t[a-1]<=0?0:En(e[a])>2*En(t[a-1])?2*t[a-1]:e[a],An(r,o,t)},r.interpolatorSplineMonotoneClosed=Hn,r.interpolatorSplineNatural=In,r.interpolatorSplineNaturalClosed=qn,r.jab=ht,r.jch=lt,r.lab=ct,r.lab65=ft,r.lch=pt,r.lch65=st,r.lchuv=dt,r.lerp=y,r.lrgb=vt,r.luv=bt,r.mapAlphaDivide=sn,r.mapAlphaMultiply=pn,r.mapTransferGamma=function(r,a,n){return void 0===r&&(r=1),void 0===a&&(a=1),void 0===n&&(n=0),function(t,e){return"alpha"!==e?r*Math.pow(t,a)+n:t}},r.mapTransferLinear=dn,r.mapper=fn,r.nearest=function(r,a,n){void 0===a&&(a=gr()),void 0===n&&(n=function(r){return r});var t=r.map((function(r,a){return{color:n(r),i:a}}));return function(n,e,o){return void 0===e&&(e=1),void 0===o&&(o=1/0),isFinite(e)&&(e=Math.max(1,Math.min(e,t.length-1))),t.forEach((function(r){r.d=a(n,r.color)})),t.sort((function(r,a){return r.d-a.d})).slice(0,e).filter((function(r){return r.d<o})).map((function(a){return r[a.i]}))}},r.oklab=zt,r.oklch=Pt,r.p3=gt,r.parse=fr,r.prophoto=Mt,r.random=function(r,a){void 0===r&&(r="rgb"),void 0===a&&(a={});var n=cr(r),t=function(r){return Object.keys(r).reduce((function(a,n){var t=r[n];return a[n]=Array.isArray(t)?t:[t,t],a}),{})}(a);return n.channels.reduce((function(r,a){return(t.alpha||"alpha"!==a)&&(r[a]=function(r){var a=r[0],n=r[1];return a+Math.random()*(n-a)}(t[a]||n.ranges[a])),r}),{mode:r})},r.rec2020=mt,r.rgb=yt,r.round=an,r.samples=function(r,a){void 0===r&&(r=2),void 0===a&&(a=1);var n=x(a);if(r<2)return r<1?[]:[n(.5)];for(var t=[],e=0;e<r;e++)t.push(n(e/(r-1)));return t},r.wcagContrast=function(r,a){var n=Fn(r),t=Fn(a);return(Math.max(n,t)+.05)/(Math.min(n,t)+.05)},r.wcagLuminance=Fn,r.xyz=xt,r.xyz65=wt,r.yiq=kt,Object.defineProperty(r,"__esModule",{value:!0})}));
{
"name": "culori",
"version": "0.19.0",
"version": "0.19.1",
"main": "build/culori.umd.js",

@@ -5,0 +5,0 @@ "browser": "build/culori.umd.js",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc