7 lines
83 KiB
JavaScript
7 lines
83 KiB
JavaScript
var h0=Object.defineProperty;var f0=(e,t,n)=>t in e?h0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ot=(e,t,n)=>f0(e,typeof t!="symbol"?t+"":t,n);/*!
|
|
* iro.js v5.5.2
|
|
* 2016-2021 James Daniel
|
|
* Licensed under MPL 2.0
|
|
* github.com/jaames/iro.js
|
|
*/var k,Ye,sn,yt,on,U={},Pt=[],d0=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i;function J(e,t){for(var n in t)e[n]=t[n];return e}function ln(e){var t=e.parentNode;t&&t.removeChild(e)}function C(e,t,n){var r,a,i,s,o=arguments;if(t=J({},t),arguments.length>3)for(n=[n],r=3;r<arguments.length;r++)n.push(o[r]);if(n!=null&&(t.children=n),e!=null&&e.defaultProps!=null)for(a in e.defaultProps)t[a]===void 0&&(t[a]=e.defaultProps[a]);return s=t.key,(i=t.ref)!=null&&delete t.ref,s!=null&&delete t.key,Mt(e,t,s,i)}function Mt(e,t,n,r){var a={type:e,props:t,key:n,ref:r,__k:null,__p:null,__b:0,__e:null,l:null,__c:null,constructor:void 0};return k.vnode&&k.vnode(a),a}function Ve(e){return e.children}function g0(e){if(e==null||typeof e=="boolean")return null;if(typeof e=="string"||typeof e=="number")return Mt(null,e,null,null);if(e.__e!=null||e.__c!=null){var t=Mt(e.type,e.props,e.key,null);return t.__e=e.__e,t}return e}function me(e,t){this.props=e,this.context=t}function qe(e,t){if(t==null)return e.__p?qe(e.__p,e.__p.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?qe(e):null}function cn(e){var t,n;if((e=e.__p)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return cn(e)}}function lt(e){(!e.__d&&(e.__d=!0)&&Ye.push(e)===1||yt!==k.debounceRendering)&&(yt=k.debounceRendering,(k.debounceRendering||sn)(m0))}function m0(){var e,t,n,r,a,i,s,o;for(Ye.sort(function(l,u){return u.__v.__b-l.__v.__b});e=Ye.pop();)e.__d&&(n=void 0,r=void 0,i=(a=(t=e).__v).__e,s=t.__P,o=t.u,t.u=!1,s&&(n=[],r=$t(s,a,J({},a),t.__n,s.ownerSVGElement!==void 0,null,n,o,i??qe(a)),hn(n,a),r!=i&&cn(a)))}function un(e,t,n,r,a,i,s,o,l){var u,h,c,f,d,g,m,p=n&&n.__k||Pt,y=p.length;if(o==U&&(o=i!=null?i[0]:y?qe(n,0):null),u=0,t.__k=At(t.__k,function(v){if(v!=null){if(v.__p=t,v.__b=t.__b+1,(c=p[u])===null||c&&v.key==c.key&&v.type===c.type)p[u]=void 0;else for(h=0;h<y;h++){if((c=p[h])&&v.key==c.key&&v.type===c.type){p[h]=void 0;break}c=null}if(f=$t(e,v,c=c||U,r,a,i,s,null,o,l),(h=v.ref)&&c.ref!=h&&(m||(m=[])).push(h,v.__c||f,v),f!=null){if(g==null&&(g=f),v.l!=null)f=v.l,v.l=null;else if(i==c||f!=o||f.parentNode==null){e:if(o==null||o.parentNode!==e)e.appendChild(f);else{for(d=o,h=0;(d=d.nextSibling)&&h<y;h+=2)if(d==f)break e;e.insertBefore(f,o)}t.type=="option"&&(e.value="")}o=f.nextSibling,typeof t.type=="function"&&(t.l=f)}}return u++,v}),t.__e=g,i!=null&&typeof t.type!="function")for(u=i.length;u--;)i[u]!=null&&ln(i[u]);for(u=y;u--;)p[u]!=null&&dn(p[u],p[u]);if(m)for(u=0;u<m.length;u++)fn(m[u],m[++u],m[++u])}function At(e,t,n){if(n==null&&(n=[]),e==null||typeof e=="boolean")t&&n.push(t(null));else if(Array.isArray(e))for(var r=0;r<e.length;r++)At(e[r],t,n);else n.push(t?t(g0(e)):e);return n}function b0(e,t,n,r,a){var i;for(i in n)i in t||Kt(e,i,null,n[i],r);for(i in t)a&&typeof t[i]!="function"||i==="value"||i==="checked"||n[i]===t[i]||Kt(e,i,t[i],n[i],r)}function Vt(e,t,n){t[0]==="-"?e.setProperty(t,n):e[t]=typeof n=="number"&&d0.test(t)===!1?n+"px":n??""}function Kt(e,t,n,r,a){var i,s,o,l,u;if(!((t=a?t==="className"?"class":t:t==="class"?"className":t)==="key"||t==="children"))if(t==="style")if(i=e.style,typeof n=="string")i.cssText=n;else{if(typeof r=="string"&&(i.cssText="",r=null),r)for(s in r)n&&s in n||Vt(i,s,"");if(n)for(o in n)r&&n[o]===r[o]||Vt(i,o,n[o])}else t[0]==="o"&&t[1]==="n"?(l=t!==(t=t.replace(/Capture$/,"")),u=t.toLowerCase(),t=(u in e?u:t).slice(2),n?(r||e.addEventListener(t,er,l),(e.t||(e.t={}))[t]=n):e.removeEventListener(t,er,l)):t!=="list"&&t!=="tagName"&&t!=="form"&&!a&&t in e?e[t]=n??"":typeof n!="function"&&t!=="dangerouslySetInnerHTML"&&(t!==(t=t.replace(/^xlink:?/,""))?n==null||n===!1?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),n):n==null||n===!1?e.removeAttribute(t):e.setAttribute(t,n))}function er(e){return this.t[e.type](k.event?k.event(e):e)}function $t(e,t,n,r,a,i,s,o,l,u){var h,c,f,d,g,m,p,y,v,w,S=t.type;if(t.constructor!==void 0)return null;(h=k.__b)&&h(t);try{e:if(typeof S=="function"){if(y=t.props,v=(h=S.contextType)&&r[h.__c],w=h?v?v.props.value:h.__p:r,n.__c?p=(c=t.__c=n.__c).__p=c.__E:("prototype"in S&&S.prototype.render?t.__c=c=new S(y,w):(t.__c=c=new me(y,w),c.constructor=S,c.render=v0),v&&v.sub(c),c.props=y,c.state||(c.state={}),c.context=w,c.__n=r,f=c.__d=!0,c.__h=[]),c.__s==null&&(c.__s=c.state),S.getDerivedStateFromProps!=null&&J(c.__s==c.state?c.__s=J({},c.__s):c.__s,S.getDerivedStateFromProps(y,c.__s)),f)S.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&s.push(c);else{if(S.getDerivedStateFromProps==null&&o==null&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(y,w),!o&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(y,c.__s,w)===!1){for(c.props=y,c.state=c.__s,c.__d=!1,c.__v=t,t.__e=l!=null?l!==n.__e?l:n.__e:null,t.__k=n.__k,h=0;h<t.__k.length;h++)t.__k[h]&&(t.__k[h].__p=t);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(y,c.__s,w)}for(d=c.props,g=c.state,c.context=w,c.props=y,c.state=c.__s,(h=k.__r)&&h(t),c.__d=!1,c.__v=t,c.__P=e,h=c.render(c.props,c.state,c.context),t.__k=At(h!=null&&h.type==Ve&&h.key==null?h.props.children:h),c.getChildContext!=null&&(r=J(J({},r),c.getChildContext())),f||c.getSnapshotBeforeUpdate==null||(m=c.getSnapshotBeforeUpdate(d,g)),un(e,t,n,r,a,i,s,l,u),c.base=t.__e;h=c.__h.pop();)c.__s&&(c.state=c.__s),h.call(c);f||d==null||c.componentDidUpdate==null||c.componentDidUpdate(d,g,m),p&&(c.__E=c.__p=null)}else t.__e=p0(n.__e,t,n,r,a,i,s,u);(h=k.diffed)&&h(t)}catch(W){k.__e(W,t,n)}return t.__e}function hn(e,t){for(var n;n=e.pop();)try{n.componentDidMount()}catch(r){k.__e(r,n.__v)}k.__c&&k.__c(t)}function p0(e,t,n,r,a,i,s,o){var l,u,h,c,f=n.props,d=t.props;if(a=t.type==="svg"||a,e==null&&i!=null){for(l=0;l<i.length;l++)if((u=i[l])!=null&&(t.type===null?u.nodeType===3:u.localName===t.type)){e=u,i[l]=null;break}}if(e==null){if(t.type===null)return document.createTextNode(d);e=a?document.createElementNS("http://www.w3.org/2000/svg",t.type):document.createElement(t.type),i=null}return t.type===null?f!==d&&(i!=null&&(i[i.indexOf(e)]=null),e.data=d):t!==n&&(i!=null&&(i=Pt.slice.call(e.childNodes)),h=(f=n.props||U).dangerouslySetInnerHTML,c=d.dangerouslySetInnerHTML,o||(c||h)&&(c&&h&&c.__html==h.__html||(e.innerHTML=c&&c.__html||"")),b0(e,d,f,a,o),t.__k=t.props.children,c||un(e,t,n,r,t.type!=="foreignObject"&&a,i,s,U,o),o||("value"in d&&d.value!==void 0&&d.value!==e.value&&(e.value=d.value==null?"":d.value),"checked"in d&&d.checked!==void 0&&d.checked!==e.checked&&(e.checked=d.checked))),e}function fn(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){k.__e(r,n)}}function dn(e,t,n){var r,a,i;if(k.unmount&&k.unmount(e),(r=e.ref)&&fn(r,null,t),n||typeof e.type=="function"||(n=(a=e.__e)!=null),e.__e=e.l=null,(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){k.__e(s,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&dn(r[i],t,n);a!=null&&ln(a)}function v0(e,t,n){return this.constructor(e,n)}function _0(e,t,n){var r,a,i;k.__p&&k.__p(e,t),a=(r=n===on)?null:t.__k,e=C(Ve,null,[e]),i=[],$t(t,t.__k=e,a||U,U,t.ownerSVGElement!==void 0,a?null:Pt.slice.call(t.childNodes),i,!1,U,r),hn(i,e)}k={},me.prototype.setState=function(e,t){var n=this.__s!==this.state&&this.__s||(this.__s=J({},this.state));(typeof e!="function"||(e=e(n,this.props)))&&J(n,e),e!=null&&this.__v&&(this.u=!1,t&&this.__h.push(t),lt(this))},me.prototype.forceUpdate=function(e){this.__v&&(e&&this.__h.push(e),this.u=!0,lt(this))},me.prototype.render=Ve,Ye=[],sn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,yt=k.debounceRendering,k.__e=function(e,t,n){for(var r;t=t.__p;)if((r=t.__c)&&!r.__p)try{if(r.constructor&&r.constructor.getDerivedStateFromError!=null)r.setState(r.constructor.getDerivedStateFromError(e));else{if(r.componentDidCatch==null)continue;r.componentDidCatch(e)}return lt(r.__E=r)}catch(a){e=a}throw e},on=U;function y0(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function M0(e,t,n){return t&&y0(e.prototype,t),e}function B(){return B=Object.assign||function(e){for(var t=arguments,n=1;n<arguments.length;n++){var r=t[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},B.apply(this,arguments)}var w0="[-\\+]?\\d+%?",x0="[-\\+]?\\d*\\.\\d+%?",ae="(?:"+x0+")|(?:"+w0+")",gn="[\\s|\\(]+("+ae+")[,|\\s]+("+ae+")[,|\\s]+("+ae+")\\s*\\)?",mn="[\\s|\\(]+("+ae+")[,|\\s]+("+ae+")[,|\\s]+("+ae+")[,|\\s]+("+ae+")\\s*\\)?",C0=new RegExp("rgb"+gn),S0=new RegExp("rgba"+mn),E0=new RegExp("hsl"+gn),R0=new RegExp("hsla"+mn),Ke="^(?:#?|0x?)",ie="([0-9a-fA-F]{1})",se="([0-9a-fA-F]{2})",k0=new RegExp(Ke+ie+ie+ie+"$"),I0=new RegExp(Ke+ie+ie+ie+ie+"$"),L0=new RegExp(Ke+se+se+se+"$"),N0=new RegExp(Ke+se+se+se+se+"$"),P0=2e3,A0=4e4,He=Math.log,ce=Math.round,xe=Math.floor;function X(e,t,n){return Math.min(Math.max(e,t),n)}function $(e,t){var n=e.indexOf("%")>-1,r=parseFloat(e);return n?t/100*r:r}function H(e){return parseInt(e,16)}function re(e){return e.toString(16).padStart(2,"0")}var ge=function(){function e(n,r){this.$={h:0,s:0,v:0,a:1},n&&this.set(n),this.onChange=r,this.initialValue=B({},this.$)}var t=e.prototype;return t.set=function(r){if(typeof r=="string")/^(?:#?|0x?)[0-9a-fA-F]{3,8}$/.test(r)?this.hexString=r:/^rgba?/.test(r)?this.rgbString=r:/^hsla?/.test(r)&&(this.hslString=r);else if(typeof r=="object")r instanceof e?this.hsva=r.hsva:"r"in r&&"g"in r&&"b"in r?this.rgb=r:"h"in r&&"s"in r&&"v"in r?this.hsv=r:"h"in r&&"s"in r&&"l"in r?this.hsl=r:"kelvin"in r&&(this.kelvin=r.kelvin);else throw new Error("Invalid color value")},t.setChannel=function(r,a,i){var s;this[r]=B({},this[r],(s={},s[a]=i,s))},t.reset=function(){this.hsva=this.initialValue},t.clone=function(){return new e(this)},t.unbind=function(){this.onChange=void 0},e.hsvToRgb=function(r){var a=r.h/60,i=r.s/100,s=r.v/100,o=xe(a),l=a-o,u=s*(1-i),h=s*(1-l*i),c=s*(1-(1-l)*i),f=o%6,d=[s,h,u,u,c,s][f],g=[c,s,s,h,u,u][f],m=[u,u,c,s,s,h][f];return{r:X(d*255,0,255),g:X(g*255,0,255),b:X(m*255,0,255)}},e.rgbToHsv=function(r){var a=r.r/255,i=r.g/255,s=r.b/255,o=Math.max(a,i,s),l=Math.min(a,i,s),u=o-l,h=0,c=o,f=o===0?0:u/o;switch(o){case l:h=0;break;case a:h=(i-s)/u+(i<s?6:0);break;case i:h=(s-a)/u+2;break;case s:h=(a-i)/u+4;break}return{h:h*60%360,s:X(f*100,0,100),v:X(c*100,0,100)}},e.hsvToHsl=function(r){var a=r.s/100,i=r.v/100,s=(2-a)*i,o=s<=1?s:2-s,l=o<1e-9?0:a*i/o;return{h:r.h,s:X(l*100,0,100),l:X(s*50,0,100)}},e.hslToHsv=function(r){var a=r.l*2,i=r.s*(a<=100?a:200-a)/100,s=a+i<1e-9?0:2*i/(a+i);return{h:r.h,s:X(s*100,0,100),v:X((a+i)/2,0,100)}},e.kelvinToRgb=function(r){var a=r/100,i,s,o;return a<66?(i=255,s=-155.25485562709179-.44596950469579133*(s=a-2)+104.49216199393888*He(s),o=a<20?0:-254.76935184120902+.8274096064007395*(o=a-10)+115.67994401066147*He(o)):(i=351.97690566805693+.114206453784165*(i=a-55)-40.25366309332127*He(i),s=325.4494125711974+.07943456536662342*(s=a-50)-28.0852963507957*He(s),o=255),{r:X(xe(i),0,255),g:X(xe(s),0,255),b:X(xe(o),0,255)}},e.rgbToKelvin=function(r){for(var a=r.r,i=r.b,s=.4,o=P0,l=A0,u;l-o>s;){u=(l+o)*.5;var h=e.kelvinToRgb(u);h.b/h.r>=i/a?l=u:o=u}return u},M0(e,[{key:"hsv",get:function(){var r=this.$;return{h:r.h,s:r.s,v:r.v}},set:function(r){var a=this.$;if(r=B({},a,r),this.onChange){var i={h:!1,v:!1,s:!1,a:!1};for(var s in a)i[s]=r[s]!=a[s];this.$=r,(i.h||i.s||i.v||i.a)&&this.onChange(this,i)}else this.$=r}},{key:"hsva",get:function(){return B({},this.$)},set:function(r){this.hsv=r}},{key:"hue",get:function(){return this.$.h},set:function(r){this.hsv={h:r}}},{key:"saturation",get:function(){return this.$.s},set:function(r){this.hsv={s:r}}},{key:"value",get:function(){return this.$.v},set:function(r){this.hsv={v:r}}},{key:"alpha",get:function(){return this.$.a},set:function(r){this.hsv=B({},this.hsv,{a:r})}},{key:"kelvin",get:function(){return e.rgbToKelvin(this.rgb)},set:function(r){this.rgb=e.kelvinToRgb(r)}},{key:"red",get:function(){var r=this.rgb;return r.r},set:function(r){this.rgb=B({},this.rgb,{r})}},{key:"green",get:function(){var r=this.rgb;return r.g},set:function(r){this.rgb=B({},this.rgb,{g:r})}},{key:"blue",get:function(){var r=this.rgb;return r.b},set:function(r){this.rgb=B({},this.rgb,{b:r})}},{key:"rgb",get:function(){var r=e.hsvToRgb(this.$),a=r.r,i=r.g,s=r.b;return{r:ce(a),g:ce(i),b:ce(s)}},set:function(r){this.hsv=B({},e.rgbToHsv(r),{a:r.a===void 0?1:r.a})}},{key:"rgba",get:function(){return B({},this.rgb,{a:this.alpha})},set:function(r){this.rgb=r}},{key:"hsl",get:function(){var r=e.hsvToHsl(this.$),a=r.h,i=r.s,s=r.l;return{h:ce(a),s:ce(i),l:ce(s)}},set:function(r){this.hsv=B({},e.hslToHsv(r),{a:r.a===void 0?1:r.a})}},{key:"hsla",get:function(){return B({},this.hsl,{a:this.alpha})},set:function(r){this.hsl=r}},{key:"rgbString",get:function(){var r=this.rgb;return"rgb("+r.r+", "+r.g+", "+r.b+")"},set:function(r){var a,i,s,o,l=1;if((a=C0.exec(r))?(i=$(a[1],255),s=$(a[2],255),o=$(a[3],255)):(a=S0.exec(r))&&(i=$(a[1],255),s=$(a[2],255),o=$(a[3],255),l=$(a[4],1)),a)this.rgb={r:i,g:s,b:o,a:l};else throw new Error("Invalid rgb string")}},{key:"rgbaString",get:function(){var r=this.rgba;return"rgba("+r.r+", "+r.g+", "+r.b+", "+r.a+")"},set:function(r){this.rgbString=r}},{key:"hexString",get:function(){var r=this.rgb;return"#"+re(r.r)+re(r.g)+re(r.b)},set:function(r){var a,i,s,o,l=255;if((a=k0.exec(r))?(i=H(a[1])*17,s=H(a[2])*17,o=H(a[3])*17):(a=I0.exec(r))?(i=H(a[1])*17,s=H(a[2])*17,o=H(a[3])*17,l=H(a[4])*17):(a=L0.exec(r))?(i=H(a[1]),s=H(a[2]),o=H(a[3])):(a=N0.exec(r))&&(i=H(a[1]),s=H(a[2]),o=H(a[3]),l=H(a[4])),a)this.rgb={r:i,g:s,b:o,a:l/255};else throw new Error("Invalid hex string")}},{key:"hex8String",get:function(){var r=this.rgba;return"#"+re(r.r)+re(r.g)+re(r.b)+re(xe(r.a*255))},set:function(r){this.hexString=r}},{key:"hslString",get:function(){var r=this.hsl;return"hsl("+r.h+", "+r.s+"%, "+r.l+"%)"},set:function(r){var a,i,s,o,l=1;if((a=E0.exec(r))?(i=$(a[1],360),s=$(a[2],100),o=$(a[3],100)):(a=R0.exec(r))&&(i=$(a[1],360),s=$(a[2],100),o=$(a[3],100),l=$(a[4],1)),a)this.hsl={h:i,s,l:o,a:l};else throw new Error("Invalid hsl string")}},{key:"hslaString",get:function(){var r=this.hsla;return"hsla("+r.h+", "+r.s+"%, "+r.l+"%, "+r.a+")"},set:function(r){this.hslString=r}}]),e}(),$0={sliderShape:"bar",sliderType:"value",minTemperature:2200,maxTemperature:11e3};function Ht(e){var t,n=e.width,r=e.sliderSize,a=e.borderWidth,i=e.handleRadius,s=e.padding,o=e.sliderShape,l=e.layoutDirection==="horizontal";return r=(t=r)!=null?t:s*2+i*2,o==="circle"?{handleStart:e.padding+e.handleRadius,handleRange:n-s*2-i*2,width:n,height:n,cx:n/2,cy:n/2,radius:n/2-a/2}:{handleStart:r/2,handleRange:n-r,radius:r/2,x:0,y:0,width:l?r:n,height:l?n:r}}function H0(e,t){var n=t.hsva,r=t.rgb;switch(e.sliderType){case"red":return r.r/2.55;case"green":return r.g/2.55;case"blue":return r.b/2.55;case"alpha":return n.a*100;case"kelvin":var a=e.minTemperature,i=e.maxTemperature,s=i-a,o=(t.kelvin-a)/s*100;return Math.max(0,Math.min(o,100));case"hue":return n.h/=3.6;case"saturation":return n.s;case"value":default:return n.v}}function B0(e,t,n){var r=Ht(e),a=r.handleRange,i=r.handleStart,s;e.layoutDirection==="horizontal"?s=-1*n+a+i:s=t-i,s=Math.max(Math.min(s,a),0);var o=Math.round(100/a*s);switch(e.sliderType){case"kelvin":var l=e.minTemperature,u=e.maxTemperature,h=u-l;return l+h*(o/100);case"alpha":return o/100;case"hue":return o*3.6;case"red":case"blue":case"green":return o*2.55;default:return o}}function T0(e,t){var n=Ht(e),r=n.width,a=n.height,i=n.handleRange,s=n.handleStart,o=e.layoutDirection==="horizontal",l=H0(e,t),u=o?r/2:a/2,h=s+l/100*i;return o&&(h=-1*h+i+s*2),{x:o?u:h,y:o?h:u}}function z0(e,t){var n=t.hsv,r=t.rgb;switch(e.sliderType){case"red":return[[0,"rgb(0,"+r.g+","+r.b+")"],[100,"rgb(255,"+r.g+","+r.b+")"]];case"green":return[[0,"rgb("+r.r+",0,"+r.b+")"],[100,"rgb("+r.r+",255,"+r.b+")"]];case"blue":return[[0,"rgb("+r.r+","+r.g+",0)"],[100,"rgb("+r.r+","+r.g+",255)"]];case"alpha":return[[0,"rgba("+r.r+","+r.g+","+r.b+",0)"],[100,"rgb("+r.r+","+r.g+","+r.b+")"]];case"kelvin":for(var a=[],i=e.minTemperature,s=e.maxTemperature,o=8,l=s-i,u=i,h=0;u<s;u+=l/o,h+=1){var c=ge.kelvinToRgb(u),f=c.r,d=c.g,g=c.b;a.push([100/o*h,"rgb("+f+","+d+","+g+")"])}return a;case"hue":return[[0,"#f00"],[16.666,"#ff0"],[33.333,"#0f0"],[50,"#0ff"],[66.666,"#00f"],[83.333,"#f0f"],[100,"#f00"]];case"saturation":var m=ge.hsvToHsl({h:n.h,s:0,v:n.v}),p=ge.hsvToHsl({h:n.h,s:100,v:n.v});return[[0,"hsl("+m.h+","+m.s+"%,"+m.l+"%)"],[100,"hsl("+p.h+","+p.s+"%,"+p.l+"%)"]];case"value":default:var y=ge.hsvToHsl({h:n.h,s:n.s,v:100});return[[0,"#000"],[100,"hsl("+y.h+","+y.s+"%,"+y.l+"%)"]]}}var bn=Math.PI*2,O0=function(t,n){return(t%n+n)%n},pn=function(t,n){return Math.sqrt(t*t+n*n)};function vn(e){return e.width/2-e.padding-e.handleRadius-e.borderWidth}function D0(e,t,n){var r=et(e),a=r.cx,i=r.cy,s=e.width/2;return pn(a-t,i-n)<s}function et(e){var t=e.width/2;return{width:e.width,radius:t-e.borderWidth,cx:t,cy:t}}function _n(e,t,n){var r=e.wheelAngle,a=e.wheelDirection;return n&&a==="clockwise"?t=r+t:a==="clockwise"?t=360-r+t:n&&a==="anticlockwise"?t=r+180-t:a==="anticlockwise"&&(t=r-t),O0(t,360)}function j0(e,t){var n=t.hsv,r=et(e),a=r.cx,i=r.cy,s=vn(e),o=(180+_n(e,n.h,!0))*(bn/360),l=n.s/100*s,u=e.wheelDirection==="clockwise"?-1:1;return{x:a+l*Math.cos(o)*u,y:i+l*Math.sin(o)*u}}function tr(e,t,n){var r=et(e),a=r.cx,i=r.cy,s=vn(e);t=a-t,n=i-n;var o=_n(e,Math.atan2(-n,-t)*(360/bn)),l=Math.min(pn(t,n),s);return{h:Math.round(o),s:Math.round(100/s*l)}}function Bt(e){var t=e.width,n=e.boxHeight,r=e.padding,a=e.handleRadius;return{width:t,height:n??t,radius:r+a}}function rr(e,t,n){var r=Bt(e),a=r.width,i=r.height,s=r.radius,o=s,l=a-s*2,u=i-s*2,h=(t-o)/l*100,c=(n-o)/u*100;return{s:Math.max(0,Math.min(h,100)),v:Math.max(0,Math.min(100-c,100))}}function X0(e,t){var n=Bt(e),r=n.width,a=n.height,i=n.radius,s=t.hsv,o=i,l=r-i*2,u=a-i*2;return{x:o+s.s/100*l,y:o+(u-s.v/100*u)}}function W0(e,t){var n=t.hue;return[[[0,"#fff"],[100,"hsl("+n+",100%,50%)"]],[[0,"rgba(0,0,0,0)"],[100,"#000"]]]}var ct;function G0(e){ct||(ct=document.getElementsByTagName("base"));var t=window.navigator.userAgent,n=/^((?!chrome|android).)*safari/i.test(t),r=/iPhone|iPod|iPad/i.test(t),a=window.location;return(n||r)&&ct.length>0?a.protocol+"//"+a.host+a.pathname+a.search+e:e}function yn(e,t,n,r){for(var a=0;a<r.length;a++){var i=r[a].x-t,s=r[a].y-n,o=Math.sqrt(i*i+s*s);if(o<e.handleRadius)return a}return null}function Tt(e){return{boxSizing:"border-box",border:e.borderWidth+"px solid "+e.borderColor}}function wt(e,t,n){return e+"-gradient("+t+", "+n.map(function(r){var a=r[0],i=r[1];return i+" "+a+"%"}).join(",")+")"}function P(e){return typeof e=="string"?e:e+"px"}var Y0={width:300,height:300,color:"#fff",colors:[],padding:6,layoutDirection:"vertical",borderColor:"#fff",borderWidth:0,handleRadius:8,activeHandleRadius:null,handleSvg:null,handleProps:{x:0,y:0},wheelLightness:!0,wheelAngle:0,wheelDirection:"anticlockwise",sliderSize:null,sliderMargin:12,boxHeight:null},nr=["mousemove","touchmove","mouseup","touchend"],tt=function(e){function t(n){e.call(this,n),this.uid=(Math.random()+1).toString(36).substring(5)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.render=function(r){var a=this.handleEvent.bind(this),i={onMouseDown:a,ontouchstart:a},s=r.layoutDirection==="horizontal",o=r.margin===null?r.sliderMargin:r.margin,l={overflow:"visible",display:s?"inline-block":"block"};return r.index>0&&(l[s?"marginLeft":"marginTop"]=o),C(Ve,null,r.children(this.uid,i,l))},t.prototype.handleEvent=function(r){var a=this,i=this.props.onInput,s=this.base.getBoundingClientRect();r.preventDefault();var o=r.touches?r.changedTouches[0]:r,l=o.clientX-s.left,u=o.clientY-s.top;switch(r.type){case"mousedown":case"touchstart":var h=i(l,u,0);h!==!1&&nr.forEach(function(c){document.addEventListener(c,a,{passive:!1})});break;case"mousemove":case"touchmove":i(l,u,1);break;case"mouseup":case"touchend":i(l,u,2),nr.forEach(function(c){document.removeEventListener(c,a,{passive:!1})});break}},t}(me);function le(e){var t=e.r,n=e.url,r=t,a=t;return C("svg",{className:"IroHandle IroHandle--"+e.index+" "+(e.isActive?"IroHandle--isActive":""),style:{"-webkit-tap-highlight-color":"rgba(0, 0, 0, 0);",transform:"translate("+P(e.x)+", "+P(e.y)+")",willChange:"transform",top:P(-t),left:P(-t),width:P(t*2),height:P(t*2),position:"absolute",overflow:"visible"}},n&&C("use",Object.assign({xlinkHref:G0(n)},e.props)),!n&&C("circle",{cx:r,cy:a,r:t,fill:"none","stroke-width":2,stroke:"#000"}),!n&&C("circle",{cx:r,cy:a,r:t-2,fill:e.fill,"stroke-width":2,stroke:"#fff"}))}le.defaultProps={fill:"none",x:0,y:0,r:8,url:null,props:{x:0,y:0}};function Fe(e){var t=e.activeIndex,n=t!==void 0&&t<e.colors.length?e.colors[t]:e.color,r=Ht(e),a=r.width,i=r.height,s=r.radius,o=T0(e,n),l=z0(e,n);function u(h,c,f){var d=B0(e,h,c);e.parent.inputActive=!0,n[e.sliderType]=d,e.onInput(f,e.id)}return C(tt,Object.assign({},e,{onInput:u}),function(h,c,f){return C("div",Object.assign({},c,{className:"IroSlider",style:Object.assign({},{position:"relative",width:P(a),height:P(i),borderRadius:P(s),background:"conic-gradient(#ccc 25%, #fff 0 50%, #ccc 0 75%, #fff 0)",backgroundSize:"8px 8px"},f)}),C("div",{className:"IroSliderGradient",style:Object.assign({},{position:"absolute",top:0,left:0,width:"100%",height:"100%",borderRadius:P(s),background:wt("linear",e.layoutDirection==="horizontal"?"to top":"to right",l)},Tt(e))}),C(le,{isActive:!0,index:n.index,r:e.handleRadius,url:e.handleSvg,props:e.handleProps,x:o.x,y:o.y}))})}Fe.defaultProps=Object.assign({},$0);function q0(e){var t=Bt(e),n=t.width,r=t.height,a=t.radius,i=e.colors,s=e.parent,o=e.activeIndex,l=o!==void 0&&o<e.colors.length?e.colors[o]:e.color,u=W0(e,l),h=i.map(function(f){return X0(e,f)});function c(f,d,g){if(g===0){var m=yn(e,f,d,h);m!==null?s.setActiveColor(m):(s.inputActive=!0,l.hsv=rr(e,f,d),e.onInput(g,e.id))}else g===1&&(s.inputActive=!0,l.hsv=rr(e,f,d));e.onInput(g,e.id)}return C(tt,Object.assign({},e,{onInput:c}),function(f,d,g){return C("div",Object.assign({},d,{className:"IroBox",style:Object.assign({},{width:P(n),height:P(r),position:"relative"},g)}),C("div",{className:"IroBox",style:Object.assign({},{width:"100%",height:"100%",borderRadius:P(a)},Tt(e),{background:wt("linear","to bottom",u[1])+","+wt("linear","to right",u[0])})}),i.filter(function(m){return m!==l}).map(function(m){return C(le,{isActive:!1,index:m.index,fill:m.hslString,r:e.handleRadius,url:e.handleSvg,props:e.handleProps,x:h[m.index].x,y:h[m.index].y})}),C(le,{isActive:!0,index:l.index,fill:l.hslString,r:e.activeHandleRadius||e.handleRadius,url:e.handleSvg,props:e.handleProps,x:h[l.index].x,y:h[l.index].y}))})}var F0="conic-gradient(red, yellow, lime, aqua, blue, magenta, red)",Z0="conic-gradient(red, magenta, blue, aqua, lime, yellow, red)";function Mn(e){var t=et(e),n=t.width,r=e.colors;e.borderWidth;var a=e.parent,i=e.color,s=i.hsv,o=r.map(function(h){return j0(e,h)}),l={position:"absolute",top:0,left:0,width:"100%",height:"100%",borderRadius:"50%",boxSizing:"border-box"};function u(h,c,f){if(f===0){if(!D0(e,h,c))return!1;var d=yn(e,h,c,o);d!==null?a.setActiveColor(d):(a.inputActive=!0,i.hsv=tr(e,h,c),e.onInput(f,e.id))}else f===1&&(a.inputActive=!0,i.hsv=tr(e,h,c));e.onInput(f,e.id)}return C(tt,Object.assign({},e,{onInput:u}),function(h,c,f){return C("div",Object.assign({},c,{className:"IroWheel",style:Object.assign({},{width:P(n),height:P(n),position:"relative"},f)}),C("div",{className:"IroWheelHue",style:Object.assign({},l,{transform:"rotateZ("+(e.wheelAngle+90)+"deg)",background:e.wheelDirection==="clockwise"?F0:Z0})}),C("div",{className:"IroWheelSaturation",style:Object.assign({},l,{background:"radial-gradient(circle closest-side, #fff, transparent)"})}),e.wheelLightness&&C("div",{className:"IroWheelLightness",style:Object.assign({},l,{background:"#000",opacity:1-s.v/100})}),C("div",{className:"IroWheelBorder",style:Object.assign({},l,Tt(e))}),r.filter(function(d){return d!==i}).map(function(d){return C(le,{isActive:!1,index:d.index,fill:d.hslString,r:e.handleRadius,url:e.handleSvg,props:e.handleProps,x:o[d.index].x,y:o[d.index].y})}),C(le,{isActive:!0,index:i.index,fill:i.hslString,r:e.activeHandleRadius||e.handleRadius,url:e.handleSvg,props:e.handleProps,x:o[i.index].x,y:o[i.index].y}))})}function J0(e){var t=function(n,r){var a,i=document.createElement("div");_0(C(e,Object.assign({},{ref:function(o){return a=o}},r)),i);function s(){var o=n instanceof Element?n:document.querySelector(n);o.appendChild(a.base),a.onMount(o)}return document.readyState!=="loading"?s():document.addEventListener("DOMContentLoaded",s),a};return t.prototype=e.prototype,Object.assign(t,e),t.__component=e,t}var wn=function(e){function t(n){var r=this;e.call(this,n),this.colors=[],this.inputActive=!1,this.events={},this.activeEvents={},this.deferredEvents={},this.id=n.id;var a=n.colors.length>0?n.colors:[n.color];a.forEach(function(i){return r.addColor(i)}),this.setActiveColor(0),this.state=Object.assign({},n,{color:this.color,colors:this.colors,layout:n.layout})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.addColor=function(r,a){a===void 0&&(a=this.colors.length);var i=new ge(r,this.onColorChange.bind(this));this.colors.splice(a,0,i),this.colors.forEach(function(s,o){return s.index=o}),this.state&&this.setState({colors:this.colors}),this.deferredEmit("color:init",i)},t.prototype.removeColor=function(r){var a=this.colors.splice(r,1)[0];a.unbind(),this.colors.forEach(function(i,s){return i.index=s}),this.state&&this.setState({colors:this.colors}),a.index===this.color.index&&this.setActiveColor(0),this.emit("color:remove",a)},t.prototype.setActiveColor=function(r){this.color=this.colors[r],this.state&&this.setState({color:this.color}),this.emit("color:setActive",this.color)},t.prototype.setColors=function(r,a){var i=this;a===void 0&&(a=0),this.colors.forEach(function(s){return s.unbind()}),this.colors=[],r.forEach(function(s){return i.addColor(s)}),this.setActiveColor(a),this.emit("color:setAll",this.colors)},t.prototype.on=function(r,a){var i=this,s=this.events;(Array.isArray(r)?r:[r]).forEach(function(o){(s[o]||(s[o]=[])).push(a),i.deferredEvents[o]&&(i.deferredEvents[o].forEach(function(l){a.apply(null,l)}),i.deferredEvents[o]=[])})},t.prototype.off=function(r,a){var i=this;(Array.isArray(r)?r:[r]).forEach(function(s){var o=i.events[s];o&&o.splice(o.indexOf(a),1)})},t.prototype.emit=function(r){for(var a=this,i=[],s=arguments.length-1;s-- >0;)i[s]=arguments[s+1];var o=this.activeEvents,l=o.hasOwnProperty(r)?o[r]:!1;if(!l){o[r]=!0;var u=this.events[r]||[];u.forEach(function(h){return h.apply(a,i)}),o[r]=!1}},t.prototype.deferredEmit=function(r){for(var a,i=[],s=arguments.length-1;s-- >0;)i[s]=arguments[s+1];var o=this.deferredEvents;(a=this).emit.apply(a,[r].concat(i)),(o[r]||(o[r]=[])).push(i)},t.prototype.setOptions=function(r){this.setState(r)},t.prototype.resize=function(r){this.setOptions({width:r})},t.prototype.reset=function(){this.colors.forEach(function(r){return r.reset()}),this.setState({colors:this.colors})},t.prototype.onMount=function(r){this.el=r,this.deferredEmit("mount",this)},t.prototype.onColorChange=function(r,a){this.setState({color:this.color}),this.inputActive&&(this.inputActive=!1,this.emit("input:change",r,a)),this.emit("color:change",r,a)},t.prototype.emitInputEvent=function(r,a){r===0?this.emit("input:start",this.color,a):r===1?this.emit("input:move",this.color,a):r===2&&this.emit("input:end",this.color,a)},t.prototype.render=function(r,a){var i=this,s=a.layout;if(!Array.isArray(s)){switch(s){default:s=[{component:Mn},{component:Fe}]}a.transparency&&s.push({component:Fe,options:{sliderType:"alpha"}})}return C("div",{class:"IroColorPicker",id:a.id,style:{display:a.display}},s.map(function(o,l){var u=o.component,h=o.options;return C(u,Object.assign({},a,h,{ref:void 0,onInput:i.emitInputEvent.bind(i),parent:i,index:l}))}))},t}(me);wn.defaultProps=Object.assign({},Y0,{colors:[],display:"block",id:null,layout:"default",margin:null});var U0=J0(wn),xt;(function(e){e.version="5.5.2",e.Color=ge,e.ColorPicker=U0,function(t){t.h=C,t.ComponentBase=tt,t.Handle=le,t.Slider=Fe,t.Wheel=Mn,t.Box=q0}(e.ui||(e.ui={}))})(xt||(xt={}));var ar=xt;function R(e,t){let n=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(t[0])||(t=t.map(s=>[s]));let r=t[0].length,a=t[0].map((s,o)=>t.map(l=>l[o])),i=e.map(s=>a.map(o=>{let l=0;if(!Array.isArray(s)){for(let u of o)l+=s*u;return l}for(let u=0;u<s.length;u++)l+=s[u]*(o[u]||0);return l}));return n===1&&(i=i[0]),r===1?i.map(s=>s[0]):i}function Ie(e){return Q(e)==="string"}function Q(e){return(Object.prototype.toString.call(e).match(/^\[object\s+(.*?)\]$/)[1]||"").toLowerCase()}function Ze(e,{precision:t,unit:n}){return V(e)?"none":xn(e,t)+(n??"")}function V(e){return Number.isNaN(e)||e instanceof Number&&(e==null?void 0:e.none)}function I(e){return V(e)?0:e}function xn(e,t){if(e===0)return 0;let n=~~e,r=0;n&&t&&(r=~~Math.log10(Math.abs(n))+1);const a=10**(t-r);return Math.floor(e*a+.5)/a}const Q0={deg:1,grad:.9,rad:180/Math.PI,turn:360};function Cn(e){if(!e)return;e=e.trim();const t=/^([a-z]+)\((.+?)\)$/i,n=/^-?[\d.]+$/,r=/%|deg|g?rad|turn$/,a=/\/?\s*(none|[-\w.]+(?:%|deg|g?rad|turn)?)/g;let i=e.match(t);if(i){let s=[];return i[2].replace(a,(o,l)=>{let u=l.match(r),h=l;if(u){let c=u[0],f=h.slice(0,-c.length);c==="%"?(h=new Number(f/100),h.type="<percentage>"):(h=new Number(f*Q0[c]),h.type="<angle>",h.unit=c)}else n.test(h)?(h=new Number(h),h.type="<number>"):h==="none"&&(h=new Number(NaN),h.none=!0);o.startsWith("/")&&(h=h instanceof Number?h:new Number(h),h.alpha=!0),typeof h=="object"&&h instanceof Number&&(h.raw=l),s.push(h)}),{name:i[1].toLowerCase(),rawName:i[1],rawArgs:i[2],args:s}}}function Sn(e){return e[e.length-1]}function Ee(e,t,n){return isNaN(e)?t:isNaN(t)?e:e+(t-e)*n}function En(e,t,n){return(n-e)/(t-e)}function zt(e,t,n){return Ee(t[0],t[1],En(e[0],e[1],n))}function Rn(e){return e.map(t=>t.split("|").map(n=>{n=n.trim();let r=n.match(/^(<[a-z]+>)\[(-?[.\d]+),\s*(-?[.\d]+)\]?$/);if(r){let a=new String(r[1]);return a.range=[+r[2],+r[3]],a}return n}))}function kn(e,t,n){return Math.max(Math.min(n,t),e)}function rt(e,t){return Math.sign(e)===Math.sign(t)?e:-e}function Y(e,t){return rt(Math.abs(e)**t,e)}function Ot(e,t){return t===0?0:e/t}function In(e,t,n=0,r=e.length){for(;n<r;){const a=n+r>>1;e[a]<t?n=a+1:r=a}return n}var V0=Object.freeze({__proto__:null,bisectLeft:In,clamp:kn,copySign:rt,interpolate:Ee,interpolateInv:En,isNone:V,isString:Ie,last:Sn,mapRange:zt,multiplyMatrices:R,parseCoordGrammar:Rn,parseFunction:Cn,serializeNumber:Ze,skipNone:I,spow:Y,toPrecision:xn,type:Q,zdiv:Ot});class K0{add(t,n,r){if(typeof arguments[0]!="string"){for(var t in arguments[0])this.add(t,arguments[0][t],arguments[1]);return}(Array.isArray(t)?t:[t]).forEach(function(a){this[a]=this[a]||[],n&&this[a][r?"unshift":"push"](n)},this)}run(t,n){this[t]=this[t]||[],this[t].forEach(function(r){r.call(n&&n.context?n.context:n,n)})}}const K=new K0;var rn,nn,an,j={gamut_mapping:"css",precision:5,deltaE:"76",verbose:((an=(nn=(rn=globalThis==null?void 0:globalThis.process)==null?void 0:rn.env)==null?void 0:nn.NODE_ENV)==null?void 0:an.toLowerCase())!=="test",warn:function(t){var n,r;this.verbose&&((r=(n=globalThis==null?void 0:globalThis.console)==null?void 0:n.warn)==null||r.call(n,t))}};const A={D50:[.3457/.3585,1,(1-.3457-.3585)/.3585],D65:[.3127/.329,1,(1-.3127-.329)/.329]};function Ct(e){return Array.isArray(e)?e:A[e]}function Je(e,t,n,r={}){if(e=Ct(e),t=Ct(t),!e||!t)throw new TypeError(`Missing white point to convert ${e?"":"from"}${!e&&!t?"/":""}${t?"":"to"}`);if(e===t)return n;let a={W1:e,W2:t,XYZ:n,options:r};if(K.run("chromatic-adaptation-start",a),a.M||(a.W1===A.D65&&a.W2===A.D50?a.M=[[1.0479297925449969,.022946870601609652,-.05019226628920524],[.02962780877005599,.9904344267538799,-.017073799063418826],[-.009243040646204504,.015055191490298152,.7518742814281371]]:a.W1===A.D50&&a.W2===A.D65&&(a.M=[[.955473421488075,-.02309845494876471,.06325924320057072],[-.0283697093338637,1.0099953980813041,.021041441191917323],[.012314014864481998,-.020507649298898964,1.330365926242124]])),K.run("chromatic-adaptation-end",a),a.M)return R(a.M,a.XYZ);throw new TypeError("Only Bradford CAT with white points D50 and D65 supported for now.")}const ea=new Set(["<number>","<percentage>","<angle>"]);function ir(e,t,n,r){return Object.entries(e.coords).map(([i,s],o)=>{let l=t.coordGrammar[o],u=r[o],h=u==null?void 0:u.type,c;if(u.none?c=l.find(g=>ea.has(g)):c=l.find(g=>g==h),!c){let g=s.name||i;throw new TypeError(`${h??u.raw} not allowed for ${g} in ${n}()`)}let f=c.range;h==="<percentage>"&&(f||(f=[0,1]));let d=s.range||s.refRange;return f&&d&&(r[o]=zt(f,d,r[o])),c})}function Ln(e,{meta:t}={}){var r,a,i,s;let n={str:(r=String(e))==null?void 0:r.trim()};if(K.run("parse-start",n),n.color)return n.color;if(n.parsed=Cn(n.str),n.parsed){let o=n.parsed.name;if(o==="color"){let l=n.parsed.args.shift(),u=l.startsWith("--")?l.substring(2):`--${l}`,h=[l,u],c=n.parsed.rawArgs.indexOf("/")>0?n.parsed.args.pop():1;for(let g of b.all){let m=g.getFormat("color");if(m&&(h.includes(m.id)||(a=m.ids)!=null&&a.filter(p=>h.includes(p)).length)){const p=Object.keys(g.coords).map((v,w)=>n.parsed.args[w]||0);let y;return m.coordGrammar&&(y=ir(g,m,"color",p)),t&&Object.assign(t,{formatId:"color",types:y}),m.id.startsWith("--")&&!l.startsWith("--")&&j.warn(`${g.name} is a non-standard space and not currently supported in the CSS spec. Use prefixed color(${m.id}) instead of color(${l}).`),l.startsWith("--")&&!m.id.startsWith("--")&&j.warn(`${g.name} is a standard space and supported in the CSS spec. Use color(${m.id}) instead of prefixed color(${l}).`),{spaceId:g.id,coords:p,alpha:c}}}let f="",d=l in b.registry?l:u;if(d in b.registry){let g=(s=(i=b.registry[d].formats)==null?void 0:i.color)==null?void 0:s.id;g&&(f=`Did you mean color(${g})?`)}throw new TypeError(`Cannot parse color(${l}). `+(f||"Missing a plugin?"))}else for(let l of b.all){let u=l.getFormat(o);if(u&&u.type==="function"){let h=1;(u.lastAlpha||Sn(n.parsed.args).alpha)&&(h=n.parsed.args.pop());let c=n.parsed.args,f;return u.coordGrammar&&(f=ir(l,u,o,c)),t&&Object.assign(t,{formatId:u.name,types:f}),{spaceId:l.id,coords:c,alpha:h}}}}else for(let o of b.all)for(let l in o.formats){let u=o.formats[l];if(u.type!=="custom"||u.test&&!u.test(n.str))continue;let h=u.parse(n.str);if(h)return h.alpha??(h.alpha=1),t&&(t.formatId=l),h}throw new TypeError(`Could not parse ${e} as a color. Missing a plugin?`)}function M(e){if(Array.isArray(e))return e.map(M);if(!e)throw new TypeError("Empty color reference");Ie(e)&&(e=Ln(e));let t=e.space||e.spaceId;return t instanceof b||(e.space=b.get(t)),e.alpha===void 0&&(e.alpha=1),e}const ta=75e-6,T=class T{constructor(t){var a;this.id=t.id,this.name=t.name,this.base=t.base?T.get(t.base):null,this.aliases=t.aliases,this.base&&(this.fromBase=t.fromBase,this.toBase=t.toBase);let n=t.coords??this.base.coords;for(let i in n)"name"in n[i]||(n[i].name=i);this.coords=n;let r=t.white??this.base.white??"D65";this.white=Ct(r),this.formats=t.formats??{};for(let i in this.formats){let s=this.formats[i];s.type||(s.type="function"),s.name||(s.name=i)}(a=this.formats.color)!=null&&a.id||(this.formats.color={...this.formats.color??{},id:t.cssId||this.id}),t.gamutSpace?this.gamutSpace=t.gamutSpace==="self"?this:T.get(t.gamutSpace):this.isPolar?this.gamutSpace=this.base:this.gamutSpace=this,this.gamutSpace.isUnbounded&&(this.inGamut=(i,s)=>!0),this.referred=t.referred,Object.defineProperty(this,"path",{value:ra(this).reverse(),writable:!1,enumerable:!0,configurable:!0}),K.run("colorspace-init-end",this)}inGamut(t,{epsilon:n=ta}={}){if(!this.equals(this.gamutSpace))return t=this.to(this.gamutSpace,t),this.gamutSpace.inGamut(t,{epsilon:n});let r=Object.values(this.coords);return t.every((a,i)=>{let s=r[i];if(s.type!=="angle"&&s.range){if(Number.isNaN(a))return!0;let[o,l]=s.range;return(o===void 0||a>=o-n)&&(l===void 0||a<=l+n)}return!0})}get isUnbounded(){return Object.values(this.coords).every(t=>!("range"in t))}get cssId(){var t,n;return((n=(t=this.formats)==null?void 0:t.color)==null?void 0:n.id)||this.id}get isPolar(){for(let t in this.coords)if(this.coords[t].type==="angle")return!0;return!1}getFormat(t){if(typeof t=="object")return t=sr(t,this),t;let n;return t==="default"?n=Object.values(this.formats)[0]:n=this.formats[t],n?(n=sr(n,this),n):null}equals(t){return t?this===t||this.id===t||this.id===t.id:!1}to(t,n){if(arguments.length===1){const o=M(t);[t,n]=[o.space,o.coords]}if(t=T.get(t),this.equals(t))return n;n=n.map(o=>Number.isNaN(o)?0:o);let r=this.path,a=t.path,i,s;for(let o=0;o<r.length&&r[o].equals(a[o]);o++)i=r[o],s=o;if(!i)throw new Error(`Cannot convert between color spaces ${this} and ${t}: no connection space was found`);for(let o=r.length-1;o>s;o--)n=r[o].toBase(n);for(let o=s+1;o<a.length;o++)n=a[o].fromBase(n);return n}from(t,n){if(arguments.length===1){const r=M(t);[t,n]=[r.space,r.coords]}return t=T.get(t),t.to(this,n)}toString(){return`${this.name} (${this.id})`}getMinCoords(){let t=[];for(let n in this.coords){let r=this.coords[n],a=r.range||r.refRange;t.push((a==null?void 0:a.min)??0)}return t}static get all(){return[...new Set(Object.values(T.registry))]}static register(t,n){if(arguments.length===1&&(n=arguments[0],t=n.id),n=this.get(n),this.registry[t]&&this.registry[t]!==n)throw new Error(`Duplicate color space registration: '${t}'`);if(this.registry[t]=n,arguments.length===1&&n.aliases)for(let r of n.aliases)this.register(r,n);return n}static get(t,...n){if(!t||t instanceof T)return t;if(Q(t)==="string"){let a=T.registry[t.toLowerCase()];if(!a)throw new TypeError(`No color space found with id = "${t}"`);return a}if(n.length)return T.get(...n);throw new TypeError(`${t} is not a valid color space`)}static resolveCoord(t,n){var l;let r=Q(t),a,i;if(r==="string"?t.includes(".")?[a,i]=t.split("."):[a,i]=[,t]:Array.isArray(t)?[a,i]=t:(a=t.space,i=t.coordId),a=T.get(a),a||(a=n),!a)throw new TypeError(`Cannot resolve coordinate reference ${t}: No color space specified and relative references are not allowed here`);if(r=Q(i),r==="number"||r==="string"&&i>=0){let u=Object.entries(a.coords)[i];if(u)return{space:a,id:u[0],index:i,...u[1]}}a=T.get(a);let s=i.toLowerCase(),o=0;for(let u in a.coords){let h=a.coords[u];if(u.toLowerCase()===s||((l=h.name)==null?void 0:l.toLowerCase())===s)return{space:a,id:u,index:o,...h};o++}throw new TypeError(`No "${i}" coordinate found in ${a.name}. Its coordinates are: ${Object.keys(a.coords).join(", ")}`)}};ot(T,"registry",{}),ot(T,"DEFAULT_FORMAT",{type:"functions",name:"color"});let b=T;function ra(e){let t=[e];for(let n=e;n=n.base;)t.push(n);return t}function sr(e,{coords:t}={}){if(e.coords&&!e.coordGrammar){e.type||(e.type="function"),e.name||(e.name="color"),e.coordGrammar=Rn(e.coords);let n=Object.entries(t).map(([r,a],i)=>{let s=e.coordGrammar[i][0],o=a.range||a.refRange,l=s.range,u="";return s=="<percentage>"?(l=[0,100],u="%"):s=="<angle>"&&(u="deg"),{fromRange:o,toRange:l,suffix:u}});e.serializeCoords=(r,a)=>r.map((i,s)=>{let{fromRange:o,toRange:l,suffix:u}=n[s];return o&&l&&(i=zt(o,l,i)),i=Ze(i,{precision:a,unit:u}),i})}return e}var N=new b({id:"xyz-d65",name:"XYZ D65",coords:{x:{name:"X"},y:{name:"Y"},z:{name:"Z"}},white:"D65",formats:{color:{ids:["xyz-d65","xyz"]}},aliases:["xyz"]});class z extends b{constructor(t){t.coords||(t.coords={r:{range:[0,1],name:"Red"},g:{range:[0,1],name:"Green"},b:{range:[0,1],name:"Blue"}}),t.base||(t.base=N),t.toXYZ_M&&t.fromXYZ_M&&(t.toBase??(t.toBase=n=>{let r=R(t.toXYZ_M,n);return this.white!==this.base.white&&(r=Je(this.white,this.base.white,r)),r}),t.fromBase??(t.fromBase=n=>(n=Je(this.base.white,this.white,n),R(t.fromXYZ_M,n)))),t.referred??(t.referred="display"),super(t)}}function Le(e,t){return e=M(e),!t||e.space.equals(t)?e.coords.slice():(t=b.get(t),t.from(e))}function O(e,t){e=M(e);let{space:n,index:r}=b.resolveCoord(t,e.space);return Le(e,n)[r]}function Dt(e,t,n){return e=M(e),t=b.get(t),e.coords=t.to(e.space,n),e}Dt.returns="color";function Z(e,t,n){if(e=M(e),arguments.length===2&&Q(arguments[1])==="object"){let r=arguments[1];for(let a in r)Z(e,a,r[a])}else{typeof n=="function"&&(n=n(O(e,t)));let{space:r,index:a}=b.resolveCoord(t,e.space),i=Le(e,r);i[a]=n,Dt(e,r,i)}return e}Z.returns="color";var jt=new b({id:"xyz-d50",name:"XYZ D50",white:"D50",base:N,fromBase:e=>Je(N.white,"D50",e),toBase:e=>Je("D50",N.white,e)});const na=216/24389,or=24/116,Be=24389/27;let ut=A.D50;var D=new b({id:"lab",name:"Lab",coords:{l:{refRange:[0,100],name:"Lightness"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:ut,base:jt,fromBase(e){let n=e.map((r,a)=>r/ut[a]).map(r=>r>na?Math.cbrt(r):(Be*r+16)/116);return[116*n[1]-16,500*(n[0]-n[1]),200*(n[1]-n[2])]},toBase(e){let t=[];return t[1]=(e[0]+16)/116,t[0]=e[1]/500+t[1],t[2]=t[1]-e[2]/200,[t[0]>or?Math.pow(t[0],3):(116*t[0]-16)/Be,e[0]>8?Math.pow((e[0]+16)/116,3):e[0]/Be,t[2]>or?Math.pow(t[2],3):(116*t[2]-16)/Be].map((r,a)=>r*ut[a])},formats:{lab:{coords:["<number> | <percentage>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});function q(e){return(e%360+360)%360}function aa(e,t){if(e==="raw")return t;let[n,r]=t.map(q),a=r-n;return e==="increasing"?a<0&&(r+=360):e==="decreasing"?a>0&&(n+=360):e==="longer"?-180<a&&a<180&&(a>0?n+=360:r+=360):e==="shorter"&&(a>180?n+=360:a<-180&&(r+=360)),[n,r]}var Re=new b({id:"lch",name:"LCH",coords:{l:{refRange:[0,100],name:"Lightness"},c:{refRange:[0,150],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},base:D,fromBase(e){let[t,n,r]=e,a;const i=.02;return Math.abs(n)<i&&Math.abs(r)<i?a=NaN:a=Math.atan2(r,n)*180/Math.PI,[t,Math.sqrt(n**2+r**2),q(a)]},toBase(e){let[t,n,r]=e;return n<0&&(n=0),isNaN(r)&&(r=0),[t,n*Math.cos(r*Math.PI/180),n*Math.sin(r*Math.PI/180)]},formats:{lch:{coords:["<number> | <percentage>","<number> | <percentage>","<number> | <angle>"]}}});const lr=25**7,Ue=Math.PI,cr=180/Ue,ue=Ue/180;function ur(e){const t=e*e;return t*t*t*e}function Nn(e,t,{kL:n=1,kC:r=1,kH:a=1}={}){[e,t]=M([e,t]);let[i,s,o]=D.from(e),l=Re.from(D,[i,s,o])[1],[u,h,c]=D.from(t),f=Re.from(D,[u,h,c])[1];l<0&&(l=0),f<0&&(f=0);let d=(l+f)/2,g=ur(d),m=.5*(1-Math.sqrt(g/(g+lr))),p=(1+m)*s,y=(1+m)*h,v=Math.sqrt(p**2+o**2),w=Math.sqrt(y**2+c**2),S=p===0&&o===0?0:Math.atan2(o,p),W=y===0&&c===0?0:Math.atan2(c,y);S<0&&(S+=2*Ue),W<0&&(W+=2*Ue),S*=cr,W*=cr;let Pe=u-i,Ae=w-v,G=W-S,ye=S+W,qt=Math.abs(G),Me;v*w===0?Me=0:qt<=180?Me=G:G>180?Me=G-360:G<-180?Me=G+360:j.warn("the unthinkable has happened");let Ft=2*Math.sqrt(w*v)*Math.sin(Me*ue/2),s0=(i+u)/2,st=(v+w)/2,Zt=ur(st),F;v*w===0?F=ye:qt<=180?F=ye/2:ye<360?F=(ye+360)/2:F=(ye-360)/2;let Jt=(s0-50)**2,o0=1+.015*Jt/Math.sqrt(20+Jt),Ut=1+.045*st,we=1;we-=.17*Math.cos((F-30)*ue),we+=.24*Math.cos(2*F*ue),we+=.32*Math.cos((3*F+6)*ue),we-=.2*Math.cos((4*F-63)*ue);let Qt=1+.015*st*we,l0=30*Math.exp(-1*((F-275)/25)**2),c0=2*Math.sqrt(Zt/(Zt+lr)),u0=-1*Math.sin(2*l0*ue)*c0,$e=(Pe/(n*o0))**2;return $e+=(Ae/(r*Ut))**2,$e+=(Ft/(a*Qt))**2,$e+=u0*(Ae/(r*Ut))*(Ft/(a*Qt)),Math.sqrt($e)}const ia=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],sa=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],oa=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],la=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]];var be=new b({id:"oklab",name:"Oklab",coords:{l:{refRange:[0,1],name:"Lightness"},a:{refRange:[-.4,.4]},b:{refRange:[-.4,.4]}},white:"D65",base:N,fromBase(e){let n=R(ia,e).map(r=>Math.cbrt(r));return R(oa,n)},toBase(e){let n=R(la,e).map(r=>r**3);return R(sa,n)},formats:{oklab:{coords:["<percentage> | <number>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});function St(e,t){[e,t]=M([e,t]);let[n,r,a]=be.from(e),[i,s,o]=be.from(t),l=n-i,u=r-s,h=a-o;return Math.sqrt(l**2+u**2+h**2)}const ca=75e-6;function oe(e,t,{epsilon:n=ca}={}){e=M(e),t||(t=e.space),t=b.get(t);let r=e.coords;return t!==e.space&&(r=t.from(e)),t.inGamut(r,{epsilon:n})}function pe(e){return{space:e.space,coords:e.coords.slice(),alpha:e.alpha}}function Pn(e,t,n="lab"){n=b.get(n);let r=n.from(e),a=n.from(t);return Math.sqrt(r.reduce((i,s,o)=>{let l=a[o];return isNaN(s)||isNaN(l)?i:i+(l-s)**2},0))}function ua(e,t){return Pn(e,t,"lab")}const ha=Math.PI,hr=ha/180;function fa(e,t,{l:n=2,c:r=1}={}){[e,t]=M([e,t]);let[a,i,s]=D.from(e),[,o,l]=Re.from(D,[a,i,s]),[u,h,c]=D.from(t),f=Re.from(D,[u,h,c])[1];o<0&&(o=0),f<0&&(f=0);let d=a-u,g=o-f,m=i-h,p=s-c,y=m**2+p**2-g**2,v=.511;a>=16&&(v=.040975*a/(1+.01765*a));let w=.0638*o/(1+.0131*o)+.638,S;Number.isNaN(l)&&(l=0),l>=164&&l<=345?S=.56+Math.abs(.2*Math.cos((l+168)*hr)):S=.36+Math.abs(.4*Math.cos((l+35)*hr));let W=Math.pow(o,4),Pe=Math.sqrt(W/(W+1900)),Ae=w*(Pe*S+1-Pe),G=(d/(n*v))**2;return G+=(g/(r*w))**2,G+=y/Ae**2,Math.sqrt(G)}const fr=203;var Xt=new b({id:"xyz-abs-d65",cssId:"--xyz-abs-d65",name:"Absolute XYZ D65",coords:{x:{refRange:[0,9504.7],name:"Xa"},y:{refRange:[0,1e4],name:"Ya"},z:{refRange:[0,10888.3],name:"Za"}},base:N,fromBase(e){return e.map(t=>Math.max(t*fr,0))},toBase(e){return e.map(t=>Math.max(t/fr,0))}});const Te=1.15,ze=.66,dr=2610/2**14,da=2**14/2610,gr=3424/2**12,mr=2413/2**7,br=2392/2**7,ga=1.7*2523/2**5,pr=2**5/(1.7*2523),Oe=-.56,ht=16295499532821565e-27,ma=[[.41478972,.579999,.014648],[-.20151,1.120649,.0531008],[-.0166008,.2648,.6684799]],ba=[[1.9242264357876067,-1.0047923125953657,.037651404030618],[.35031676209499907,.7264811939316552,-.06538442294808501],[-.09098281098284752,-.3127282905230739,1.5227665613052603]],pa=[[.5,.5,0],[3.524,-4.066708,.542708],[.199076,1.096799,-1.295875]],va=[[1,.1386050432715393,.05804731615611886],[.9999999999999999,-.1386050432715393,-.05804731615611886],[.9999999999999998,-.09601924202631895,-.8118918960560388]];var An=new b({id:"jzazbz",name:"Jzazbz",coords:{jz:{refRange:[0,1],name:"Jz"},az:{refRange:[-.5,.5]},bz:{refRange:[-.5,.5]}},base:Xt,fromBase(e){let[t,n,r]=e,a=Te*t-(Te-1)*r,i=ze*n-(ze-1)*t,o=R(ma,[a,i,r]).map(function(f){let d=gr+mr*(f/1e4)**dr,g=1+br*(f/1e4)**dr;return(d/g)**ga}),[l,u,h]=R(pa,o);return[(1+Oe)*l/(1+Oe*l)-ht,u,h]},toBase(e){let[t,n,r]=e,a=(t+ht)/(1+Oe-Oe*(t+ht)),s=R(va,[a,n,r]).map(function(f){let d=gr-f**pr,g=br*f**pr-mr;return 1e4*(d/g)**da}),[o,l,u]=R(ba,s),h=(o+(Te-1)*u)/Te,c=(l+(ze-1)*h)/ze;return[h,c,u]},formats:{color:{coords:["<number> | <percentage>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}}),Et=new b({id:"jzczhz",name:"JzCzHz",coords:{jz:{refRange:[0,1],name:"Jz"},cz:{refRange:[0,1],name:"Chroma"},hz:{refRange:[0,360],type:"angle",name:"Hue"}},base:An,fromBase(e){let[t,n,r]=e,a;const i=2e-4;return Math.abs(n)<i&&Math.abs(r)<i?a=NaN:a=Math.atan2(r,n)*180/Math.PI,[t,Math.sqrt(n**2+r**2),q(a)]},toBase(e){return[e[0],e[1]*Math.cos(e[2]*Math.PI/180),e[1]*Math.sin(e[2]*Math.PI/180)]}});function _a(e,t){[e,t]=M([e,t]);let[n,r,a]=Et.from(e),[i,s,o]=Et.from(t),l=n-i,u=r-s;Number.isNaN(a)&&Number.isNaN(o)?(a=0,o=0):Number.isNaN(a)?a=o:Number.isNaN(o)&&(o=a);let h=a-o,c=2*Math.sqrt(r*s)*Math.sin(h/2*(Math.PI/180));return Math.sqrt(l**2+u**2+c**2)}const $n=3424/4096,Hn=2413/128,Bn=2392/128,vr=2610/16384,ya=2523/32,Ma=16384/2610,_r=32/2523,wa=[[.3592832590121217,.6976051147779502,-.035891593232029],[-.1920808463704993,1.100476797037432,.0753748658519118],[.0070797844607479,.0748396662186362,.8433265453898765]],xa=[[2048/4096,2048/4096,0],[6610/4096,-13613/4096,7003/4096],[17933/4096,-17390/4096,-543/4096]],Ca=[[.9999999999999998,.0086090370379328,.111029625003026],[.9999999999999998,-.0086090370379328,-.1110296250030259],[.9999999999999998,.5600313357106791,-.3206271749873188]],Sa=[[2.0701522183894223,-1.3263473389671563,.2066510476294053],[.3647385209748072,.6805660249472273,-.0453045459220347],[-.0497472075358123,-.0492609666966131,1.1880659249923042]];var Rt=new b({id:"ictcp",name:"ICTCP",coords:{i:{refRange:[0,1],name:"I"},ct:{refRange:[-.5,.5],name:"CT"},cp:{refRange:[-.5,.5],name:"CP"}},base:Xt,fromBase(e){let t=R(wa,e);return Ea(t)},toBase(e){let t=Ra(e);return R(Sa,t)}});function Ea(e){let t=e.map(function(n){let r=$n+Hn*(n/1e4)**vr,a=1+Bn*(n/1e4)**vr;return(r/a)**ya});return R(xa,t)}function Ra(e){return R(Ca,e).map(function(r){let a=Math.max(r**_r-$n,0),i=Hn-Bn*r**_r;return 1e4*(a/i)**Ma})}function ka(e,t){[e,t]=M([e,t]);let[n,r,a]=Rt.from(e),[i,s,o]=Rt.from(t);return 720*Math.sqrt((n-i)**2+.25*(r-s)**2+(a-o)**2)}const Ia=A.D65,Tn=.42,yr=1/Tn,ft=2*Math.PI,zn=[[.401288,.650173,-.051461],[-.250268,1.204414,.045854],[-.002079,.048952,.953127]],La=[[1.8620678550872327,-1.0112546305316843,.14918677544445175],[.38752654323613717,.6214474419314753,-.008973985167612518],[-.015841498849333856,-.03412293802851557,1.0499644368778496]],Na=[[460,451,288],[460,-891,-261],[460,-220,-6300]],Pa={dark:[.8,.525,.8],dim:[.9,.59,.9],average:[1,.69,1]},ne={h:[20.14,90,164.25,237.53,380.14],e:[.8,.7,1,1.2,.8],H:[0,100,200,300,400]},Aa=180/Math.PI,Mr=Math.PI/180;function On(e,t){return e.map(r=>{const a=Y(t*Math.abs(r)*.01,Tn);return 400*rt(a,r)/(a+27.13)})}function $a(e,t){const n=100/t*27.13**yr;return e.map(r=>{const a=Math.abs(r);return rt(n*Y(a/(400-a),yr),r)})}function Ha(e){let t=q(e);t<=ne.h[0]&&(t+=360);const n=In(ne.h,t)-1,[r,a]=ne.h.slice(n,n+2),[i,s]=ne.e.slice(n,n+2),o=ne.H[n],l=(t-r)/i;return o+100*l/(l+(a-t)/s)}function Ba(e){let t=(e%400+400)%400;const n=Math.floor(.01*t);t=t%100;const[r,a]=ne.h.slice(n,n+2),[i,s]=ne.e.slice(n,n+2);return q((t*(s*r-i*a)-100*r*s)/(t*(s-i)-100*s))}function Dn(e,t,n,r,a){const i={};i.discounting=a,i.refWhite=e,i.surround=r;const s=e.map(m=>m*100);i.la=t,i.yb=n;const o=s[1],l=R(zn,s);r=Pa[i.surround];const u=r[0];i.c=r[1],i.nc=r[2];const c=(1/(5*i.la+1))**4;i.fl=c*i.la+.1*(1-c)*(1-c)*Math.cbrt(5*i.la),i.flRoot=i.fl**.25,i.n=i.yb/o,i.z=1.48+Math.sqrt(i.n),i.nbb=.725*i.n**-.2,i.ncb=i.nbb;const f=Math.max(Math.min(u*(1-1/3.6*Math.exp((-i.la-42)/92)),1),0);i.dRgb=l.map(m=>Ee(1,o/m,f)),i.dRgbInv=i.dRgb.map(m=>1/m);const d=l.map((m,p)=>m*i.dRgb[p]),g=On(d,i.fl);return i.aW=i.nbb*(2*g[0]+g[1]+.05*g[2]),i}const wr=Dn(Ia,64/Math.PI*.2,20,"average",!1);function kt(e,t){if(!(e.J!==void 0^e.Q!==void 0))throw new Error("Conversion requires one and only one: 'J' or 'Q'");if(!(e.C!==void 0^e.M!==void 0^e.s!==void 0))throw new Error("Conversion requires one and only one: 'C', 'M' or 's'");if(!(e.h!==void 0^e.H!==void 0))throw new Error("Conversion requires one and only one: 'h' or 'H'");if(e.J===0||e.Q===0)return[0,0,0];let n=0;e.h!==void 0?n=q(e.h)*Mr:n=Ba(e.H)*Mr;const r=Math.cos(n),a=Math.sin(n);let i=0;e.J!==void 0?i=Y(e.J,1/2)*.1:e.Q!==void 0&&(i=.25*t.c*e.Q/((t.aW+4)*t.flRoot));let s=0;e.C!==void 0?s=e.C/i:e.M!==void 0?s=e.M/t.flRoot/i:e.s!==void 0&&(s=4e-4*e.s**2*(t.aW+4)/t.c);const o=Y(s*Math.pow(1.64-Math.pow(.29,t.n),-.73),10/9),l=.25*(Math.cos(n+2)+3.8),u=t.aW*Y(i,2/t.c/t.z),h=5e4/13*t.nc*t.ncb*l,c=u/t.nbb,f=23*(c+.305)*Ot(o,23*h+o*(11*r+108*a)),d=f*r,g=f*a,m=$a(R(Na,[c,d,g]).map(p=>p*1/1403),t.fl);return R(La,m.map((p,y)=>p*t.dRgbInv[y])).map(p=>p/100)}function jn(e,t){const n=e.map(w=>w*100),r=On(R(zn,n).map((w,S)=>w*t.dRgb[S]),t.fl),a=r[0]+(-12*r[1]+r[2])/11,i=(r[0]+r[1]-2*r[2])/9,s=(Math.atan2(i,a)%ft+ft)%ft,o=.25*(Math.cos(s+2)+3.8),l=5e4/13*t.nc*t.ncb*Ot(o*Math.sqrt(a**2+i**2),r[0]+r[1]+1.05*r[2]+.305),u=Y(l,.9)*Math.pow(1.64-Math.pow(.29,t.n),.73),h=t.nbb*(2*r[0]+r[1]+.05*r[2]),c=Y(h/t.aW,.5*t.c*t.z),f=100*Y(c,2),d=4/t.c*c*(t.aW+4)*t.flRoot,g=u*c,m=g*t.flRoot,p=q(s*Aa),y=Ha(p),v=50*Y(t.c*u/(t.aW+4),1/2);return{J:f,C:g,h:p,s:v,Q:d,M:m,H:y}}var Ta=new b({id:"cam16-jmh",cssId:"--cam16-jmh",name:"CAM16-JMh",coords:{j:{refRange:[0,100],name:"J"},m:{refRange:[0,105],name:"Colorfulness"},h:{refRange:[0,360],type:"angle",name:"Hue"}},base:N,fromBase(e){const t=jn(e,wr);return[t.J,t.M,t.h]},toBase(e){return kt({J:e[0],M:e[1],h:e[2]},wr)}});const za=A.D65,Oa=216/24389,Xn=24389/27;function Da(e){return 116*(e>Oa?Math.cbrt(e):(Xn*e+16)/116)-16}function It(e){return e>8?Math.pow((e+16)/116,3):e/Xn}function ja(e,t){let[n,r,a]=e,i=[],s=0;if(a===0)return[0,0,0];let o=It(a);a>0?s=.00379058511492914*a**2+.608983189401032*a+.9155088574762233:s=9514440756550361e-21*a**2+.08693057439788597*a-21.928975842194614;const l=2e-12,u=15;let h=0,c=1/0;for(;h<=u;){i=kt({J:s,C:r,h:n},t);const f=Math.abs(i[1]-o);if(f<c){if(f<=l)return i;c=f}s=s-(i[1]-o)*s/(2*i[1]),h+=1}return kt({J:s,C:r,h:n},t)}function Xa(e,t){const n=Da(e[1]);if(n===0)return[0,0,0];const r=jn(e,Wt);return[q(r.h),r.C,n]}const Wt=Dn(za,200/Math.PI*It(50),It(50)*100,"average",!1);var ke=new b({id:"hct",name:"HCT",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},c:{refRange:[0,145],name:"Colorfulness"},t:{refRange:[0,100],name:"Tone"}},base:N,fromBase(e){return Xa(e)},toBase(e){return ja(e,Wt)},formats:{color:{id:"--hct",coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"]}}});const Wa=Math.PI/180,xr=[1,.007,.0228];function Cr(e){e[1]<0&&(e=ke.fromBase(ke.toBase(e)));const t=Math.log(Math.max(1+xr[2]*e[1]*Wt.flRoot,1))/xr[2],n=e[0]*Wa,r=t*Math.cos(n),a=t*Math.sin(n);return[e[2],r,a]}function Ga(e,t){[e,t]=M([e,t]);let[n,r,a]=Cr(ke.from(e)),[i,s,o]=Cr(ke.from(t));return Math.sqrt((n-i)**2+(r-s)**2+(a-o)**2)}var ve={deltaE76:ua,deltaECMC:fa,deltaE2000:Nn,deltaEJz:_a,deltaEITP:ka,deltaEOK:St,deltaEHCT:Ga};function Ya(e){const t=e?Math.floor(Math.log10(Math.abs(e))):0;return Math.max(parseFloat(`1e${t-2}`),1e-6)}const Sr={hct:{method:"hct.c",jnd:2,deltaEMethod:"hct",blackWhiteClamp:{}},"hct-tonal":{method:"hct.c",jnd:0,deltaEMethod:"hct",blackWhiteClamp:{channel:"hct.t",min:0,max:100}}};function ee(e,{method:t=j.gamut_mapping,space:n=void 0,deltaEMethod:r="",jnd:a=2,blackWhiteClamp:i={}}={}){if(e=M(e),Ie(arguments[1])?n=arguments[1]:n||(n=e.space),n=b.get(n),oe(e,n,{epsilon:0}))return e;let s;if(t==="css")s=qa(e,{space:n});else{if(t!=="clip"&&!oe(e,n)){Object.prototype.hasOwnProperty.call(Sr,t)&&({method:t,jnd:a,deltaEMethod:r,blackWhiteClamp:i}=Sr[t]);let o=Nn;if(r!==""){for(let u in ve)if("deltae"+r.toLowerCase()===u.toLowerCase()){o=ve[u];break}}let l=ee(E(e,n),{method:"clip",space:n});if(o(e,l)>a){if(Object.keys(i).length===3){let v=b.resolveCoord(i.channel),w=O(E(e,v.space),v.id);if(V(w)&&(w=0),w>=i.max)return E({space:"xyz-d65",coords:A.D65},e.space);if(w<=i.min)return E({space:"xyz-d65",coords:[0,0,0]},e.space)}let u=b.resolveCoord(t),h=u.space,c=u.id,f=E(e,h);f.coords.forEach((v,w)=>{V(v)&&(f.coords[w]=0)});let g=(u.range||u.refRange)[0],m=Ya(a),p=g,y=O(f,c);for(;y-p>m;){let v=pe(f);v=ee(v,{space:n,method:"clip"}),o(f,v)-a<m?p=O(f,c):y=O(f,c),Z(f,c,(p+y)/2)}s=E(f,n)}else s=l}else s=E(e,n);if(t==="clip"||!oe(s,n,{epsilon:0})){let o=Object.values(n.coords).map(l=>l.range||[]);s.coords=s.coords.map((l,u)=>{let[h,c]=o[u];return h!==void 0&&(l=Math.max(h,l)),c!==void 0&&(l=Math.min(l,c)),l})}}return n!==e.space&&(s=E(s,e.space)),e.coords=s.coords,e}ee.returns="color";const Er={WHITE:{space:be,coords:[1,0,0]},BLACK:{space:be,coords:[0,0,0]}};function qa(e,{space:t}={}){e=M(e),t||(t=e.space),t=b.get(t);const a=b.get("oklch");if(t.isUnbounded)return E(e,t);const i=E(e,a);let s=i.coords[0];if(s>=1){const g=E(Er.WHITE,t);return g.alpha=e.alpha,E(g,t)}if(s<=0){const g=E(Er.BLACK,t);return g.alpha=e.alpha,E(g,t)}if(oe(i,t,{epsilon:0}))return E(i,t);function o(g){const m=E(g,t),p=Object.values(t.coords);return m.coords=m.coords.map((y,v)=>{if("range"in p[v]){const[w,S]=p[v].range;return kn(w,y,S)}return y}),m}let l=0,u=i.coords[1],h=!0,c=pe(i),f=o(c),d=St(f,c);if(d<.02)return f;for(;u-l>1e-4;){const g=(l+u)/2;if(c.coords[1]=g,h&&oe(c,t,{epsilon:0}))l=g;else if(f=o(c),d=St(f,c),d<.02){if(.02-d<1e-4)break;h=!1,l=g}else u=g}return f}function E(e,t,{inGamut:n}={}){e=M(e),t=b.get(t);let r=t.from(e),a={space:t,coords:r,alpha:e.alpha};return n&&(a=ee(a,n===!0?void 0:n)),a}E.returns="color";function Se(e,{precision:t=j.precision,format:n="default",inGamut:r=!0,...a}={}){var l;let i;e=M(e);let s=n;n=e.space.getFormat(n)??e.space.getFormat("default")??b.DEFAULT_FORMAT;let o=e.coords.slice();if(r||(r=n.toGamut),r&&!oe(e)&&(o=ee(pe(e),r===!0?void 0:r).coords),n.type==="custom")if(a.precision=t,n.serialize)i=n.serialize(o,e.alpha,a);else throw new TypeError(`format ${s} can only be used to parse colors, not for serialization`);else{let u=n.name||"color";n.serializeCoords?o=n.serializeCoords(o,t):t!==null&&(o=o.map(d=>Ze(d,{precision:t})));let h=[...o];if(u==="color"){let d=n.id||((l=n.ids)==null?void 0:l[0])||e.space.id;h.unshift(d)}let c=e.alpha;t!==null&&(c=Ze(c,{precision:t}));let f=e.alpha>=1||n.noAlpha?"":`${n.commas?",":" /"} ${c}`;i=`${u}(${h.join(n.commas?", ":" ")}${f})`}return i}const Fa=[[.6369580483012914,.14461690358620832,.1688809751641721],[.2627002120112671,.6779980715188708,.05930171646986196],[0,.028072693049087428,1.060985057710791]],Za=[[1.716651187971268,-.355670783776392,-.25336628137366],[-.666684351832489,1.616481236634939,.0157685458139111],[.017639857445311,-.042770613257809,.942103121235474]];var nt=new z({id:"rec2020-linear",cssId:"--rec2020-linear",name:"Linear REC.2020",white:"D65",toXYZ_M:Fa,fromXYZ_M:Za});const De=1.09929682680944,Rr=.018053968510807;var Wn=new z({id:"rec2020",name:"REC.2020",base:nt,toBase(e){return e.map(function(t){return t<Rr*4.5?t/4.5:Math.pow((t+De-1)/De,1/.45)})},fromBase(e){return e.map(function(t){return t>=Rr?De*Math.pow(t,.45)-(De-1):4.5*t})}});const Ja=[[.4865709486482162,.26566769316909306,.1982172852343625],[.2289745640697488,.6917385218365064,.079286914093745],[0,.04511338185890264,1.043944368900976]],Ua=[[2.493496911941425,-.9313836179191239,-.40271078445071684],[-.8294889695615747,1.7626640603183463,.023624685841943577],[.03584583024378447,-.07617238926804182,.9568845240076872]];var Gn=new z({id:"p3-linear",cssId:"--display-p3-linear",name:"Linear P3",white:"D65",toXYZ_M:Ja,fromXYZ_M:Ua});const Qa=[[.41239079926595934,.357584339383878,.1804807884018343],[.21263900587151027,.715168678767756,.07219231536073371],[.01933081871559182,.11919477979462598,.9505321522496607]],L=[[3.2409699419045226,-1.537383177570094,-.4986107602930034],[-.9692436362808796,1.8759675015077202,.04155505740717559],[.05563007969699366,-.20397695888897652,1.0569715142428786]];var Yn=new z({id:"srgb-linear",name:"Linear sRGB",white:"D65",toXYZ_M:Qa,fromXYZ_M:L}),kr={aliceblue:[240/255,248/255,1],antiquewhite:[250/255,235/255,215/255],aqua:[0,1,1],aquamarine:[127/255,1,212/255],azure:[240/255,1,1],beige:[245/255,245/255,220/255],bisque:[1,228/255,196/255],black:[0,0,0],blanchedalmond:[1,235/255,205/255],blue:[0,0,1],blueviolet:[138/255,43/255,226/255],brown:[165/255,42/255,42/255],burlywood:[222/255,184/255,135/255],cadetblue:[95/255,158/255,160/255],chartreuse:[127/255,1,0],chocolate:[210/255,105/255,30/255],coral:[1,127/255,80/255],cornflowerblue:[100/255,149/255,237/255],cornsilk:[1,248/255,220/255],crimson:[220/255,20/255,60/255],cyan:[0,1,1],darkblue:[0,0,139/255],darkcyan:[0,139/255,139/255],darkgoldenrod:[184/255,134/255,11/255],darkgray:[169/255,169/255,169/255],darkgreen:[0,100/255,0],darkgrey:[169/255,169/255,169/255],darkkhaki:[189/255,183/255,107/255],darkmagenta:[139/255,0,139/255],darkolivegreen:[85/255,107/255,47/255],darkorange:[1,140/255,0],darkorchid:[153/255,50/255,204/255],darkred:[139/255,0,0],darksalmon:[233/255,150/255,122/255],darkseagreen:[143/255,188/255,143/255],darkslateblue:[72/255,61/255,139/255],darkslategray:[47/255,79/255,79/255],darkslategrey:[47/255,79/255,79/255],darkturquoise:[0,206/255,209/255],darkviolet:[148/255,0,211/255],deeppink:[1,20/255,147/255],deepskyblue:[0,191/255,1],dimgray:[105/255,105/255,105/255],dimgrey:[105/255,105/255,105/255],dodgerblue:[30/255,144/255,1],firebrick:[178/255,34/255,34/255],floralwhite:[1,250/255,240/255],forestgreen:[34/255,139/255,34/255],fuchsia:[1,0,1],gainsboro:[220/255,220/255,220/255],ghostwhite:[248/255,248/255,1],gold:[1,215/255,0],goldenrod:[218/255,165/255,32/255],gray:[128/255,128/255,128/255],green:[0,128/255,0],greenyellow:[173/255,1,47/255],grey:[128/255,128/255,128/255],honeydew:[240/255,1,240/255],hotpink:[1,105/255,180/255],indianred:[205/255,92/255,92/255],indigo:[75/255,0,130/255],ivory:[1,1,240/255],khaki:[240/255,230/255,140/255],lavender:[230/255,230/255,250/255],lavenderblush:[1,240/255,245/255],lawngreen:[124/255,252/255,0],lemonchiffon:[1,250/255,205/255],lightblue:[173/255,216/255,230/255],lightcoral:[240/255,128/255,128/255],lightcyan:[224/255,1,1],lightgoldenrodyellow:[250/255,250/255,210/255],lightgray:[211/255,211/255,211/255],lightgreen:[144/255,238/255,144/255],lightgrey:[211/255,211/255,211/255],lightpink:[1,182/255,193/255],lightsalmon:[1,160/255,122/255],lightseagreen:[32/255,178/255,170/255],lightskyblue:[135/255,206/255,250/255],lightslategray:[119/255,136/255,153/255],lightslategrey:[119/255,136/255,153/255],lightsteelblue:[176/255,196/255,222/255],lightyellow:[1,1,224/255],lime:[0,1,0],limegreen:[50/255,205/255,50/255],linen:[250/255,240/255,230/255],magenta:[1,0,1],maroon:[128/255,0,0],mediumaquamarine:[102/255,205/255,170/255],mediumblue:[0,0,205/255],mediumorchid:[186/255,85/255,211/255],mediumpurple:[147/255,112/255,219/255],mediumseagreen:[60/255,179/255,113/255],mediumslateblue:[123/255,104/255,238/255],mediumspringgreen:[0,250/255,154/255],mediumturquoise:[72/255,209/255,204/255],mediumvioletred:[199/255,21/255,133/255],midnightblue:[25/255,25/255,112/255],mintcream:[245/255,1,250/255],mistyrose:[1,228/255,225/255],moccasin:[1,228/255,181/255],navajowhite:[1,222/255,173/255],navy:[0,0,128/255],oldlace:[253/255,245/255,230/255],olive:[128/255,128/255,0],olivedrab:[107/255,142/255,35/255],orange:[1,165/255,0],orangered:[1,69/255,0],orchid:[218/255,112/255,214/255],palegoldenrod:[238/255,232/255,170/255],palegreen:[152/255,251/255,152/255],paleturquoise:[175/255,238/255,238/255],palevioletred:[219/255,112/255,147/255],papayawhip:[1,239/255,213/255],peachpuff:[1,218/255,185/255],peru:[205/255,133/255,63/255],pink:[1,192/255,203/255],plum:[221/255,160/255,221/255],powderblue:[176/255,224/255,230/255],purple:[128/255,0,128/255],rebeccapurple:[102/255,51/255,153/255],red:[1,0,0],rosybrown:[188/255,143/255,143/255],royalblue:[65/255,105/255,225/255],saddlebrown:[139/255,69/255,19/255],salmon:[250/255,128/255,114/255],sandybrown:[244/255,164/255,96/255],seagreen:[46/255,139/255,87/255],seashell:[1,245/255,238/255],sienna:[160/255,82/255,45/255],silver:[192/255,192/255,192/255],skyblue:[135/255,206/255,235/255],slateblue:[106/255,90/255,205/255],slategray:[112/255,128/255,144/255],slategrey:[112/255,128/255,144/255],snow:[1,250/255,250/255],springgreen:[0,1,127/255],steelblue:[70/255,130/255,180/255],tan:[210/255,180/255,140/255],teal:[0,128/255,128/255],thistle:[216/255,191/255,216/255],tomato:[1,99/255,71/255],turquoise:[64/255,224/255,208/255],violet:[238/255,130/255,238/255],wheat:[245/255,222/255,179/255],white:[1,1,1],whitesmoke:[245/255,245/255,245/255],yellow:[1,1,0],yellowgreen:[154/255,205/255,50/255]};let Ir=Array(3).fill("<percentage> | <number>[0, 255]"),Lr=Array(3).fill("<number>[0, 255]");var _e=new z({id:"srgb",name:"sRGB",base:Yn,fromBase:e=>e.map(t=>{let n=t<0?-1:1,r=t*n;return r>.0031308?n*(1.055*r**(1/2.4)-.055):12.92*t}),toBase:e=>e.map(t=>{let n=t<0?-1:1,r=t*n;return r<=.04045?t/12.92:n*((r+.055)/1.055)**2.4}),formats:{rgb:{coords:Ir},rgb_number:{name:"rgb",commas:!0,coords:Lr,noAlpha:!0},color:{},rgba:{coords:Ir,commas:!0,lastAlpha:!0},rgba_number:{name:"rgba",commas:!0,coords:Lr},hex:{type:"custom",toGamut:!0,test:e=>/^#([a-f0-9]{3,4}){1,2}$/i.test(e),parse(e){e.length<=5&&(e=e.replace(/[a-f0-9]/gi,"$&$&"));let t=[];return e.replace(/[a-f0-9]{2}/gi,n=>{t.push(parseInt(n,16)/255)}),{spaceId:"srgb",coords:t.slice(0,3),alpha:t.slice(3)[0]}},serialize:(e,t,{collapse:n=!0}={})=>{t<1&&e.push(t),e=e.map(i=>Math.round(i*255));let r=n&&e.every(i=>i%17===0);return"#"+e.map(i=>r?(i/17).toString(16):i.toString(16).padStart(2,"0")).join("")}},keyword:{type:"custom",test:e=>/^[a-z]+$/i.test(e),parse(e){e=e.toLowerCase();let t={spaceId:"srgb",coords:null,alpha:1};if(e==="transparent"?(t.coords=kr.black,t.alpha=0):t.coords=kr[e],t.coords)return t}}}}),qn=new z({id:"p3",cssId:"display-p3",name:"P3",base:Gn,fromBase:_e.fromBase,toBase:_e.toBase});j.display_space=_e;let Va;if(typeof CSS<"u"&&CSS.supports)for(let e of[D,Wn,qn]){let t=e.getMinCoords(),r=Se({space:e,coords:t,alpha:1});if(CSS.supports("color",r)){j.display_space=e;break}}function Ka(e,{space:t=j.display_space,...n}={}){let r=Se(e,n);if(typeof CSS>"u"||CSS.supports("color",r)||!j.display_space)r=new String(r),r.color=e;else{let a=e;if((e.coords.some(V)||V(e.alpha))&&!(Va??(Va=CSS.supports("color","hsl(none 50% 50%)")))&&(a=pe(e),a.coords=a.coords.map(I),a.alpha=I(a.alpha),r=Se(a,n),CSS.supports("color",r)))return r=new String(r),r.color=a,r;a=E(a,t),r=new String(Se(a,n)),r.color=a}return r}function ei(e,t){return e=M(e),t=M(t),e.space===t.space&&e.alpha===t.alpha&&e.coords.every((n,r)=>n===t.coords[r])}function te(e){return O(e,[N,"y"])}function Fn(e,t){Z(e,[N,"y"],t)}function ti(e){Object.defineProperty(e.prototype,"luminance",{get(){return te(this)},set(t){Fn(this,t)}})}var ri=Object.freeze({__proto__:null,getLuminance:te,register:ti,setLuminance:Fn});function ni(e,t){e=M(e),t=M(t);let n=Math.max(te(e),0),r=Math.max(te(t),0);return r>n&&([n,r]=[r,n]),(n+.05)/(r+.05)}const ai=.56,ii=.57,si=.62,oi=.65,Nr=.022,li=1.414,ci=.1,ui=5e-4,hi=1.14,Pr=.027,fi=1.14;function Ar(e){return e>=Nr?e:e+(Nr-e)**li}function he(e){let t=e<0?-1:1,n=Math.abs(e);return t*Math.pow(n,2.4)}function di(e,t){t=M(t),e=M(e);let n,r,a,i,s,o;t=E(t,"srgb"),[i,s,o]=t.coords;let l=he(i)*.2126729+he(s)*.7151522+he(o)*.072175;e=E(e,"srgb"),[i,s,o]=e.coords;let u=he(i)*.2126729+he(s)*.7151522+he(o)*.072175,h=Ar(l),c=Ar(u),f=c>h;return Math.abs(c-h)<ui?r=0:f?(n=c**ai-h**ii,r=n*hi):(n=c**oi-h**si,r=n*fi),Math.abs(r)<ci?a=0:r>0?a=r-Pr:a=r+Pr,a*100}function gi(e,t){e=M(e),t=M(t);let n=Math.max(te(e),0),r=Math.max(te(t),0);r>n&&([n,r]=[r,n]);let a=n+r;return a===0?0:(n-r)/a}const mi=5e4;function bi(e,t){e=M(e),t=M(t);let n=Math.max(te(e),0),r=Math.max(te(t),0);return r>n&&([n,r]=[r,n]),r===0?mi:(n-r)/r}function pi(e,t){e=M(e),t=M(t);let n=O(e,[D,"l"]),r=O(t,[D,"l"]);return Math.abs(n-r)}const vi=216/24389,$r=24/116,je=24389/27;let dt=A.D65;var Lt=new b({id:"lab-d65",name:"Lab D65",coords:{l:{refRange:[0,100],name:"Lightness"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:dt,base:N,fromBase(e){let n=e.map((r,a)=>r/dt[a]).map(r=>r>vi?Math.cbrt(r):(je*r+16)/116);return[116*n[1]-16,500*(n[0]-n[1]),200*(n[1]-n[2])]},toBase(e){let t=[];return t[1]=(e[0]+16)/116,t[0]=e[1]/500+t[1],t[2]=t[1]-e[2]/200,[t[0]>$r?Math.pow(t[0],3):(116*t[0]-16)/je,e[0]>8?Math.pow((e[0]+16)/116,3):e[0]/je,t[2]>$r?Math.pow(t[2],3):(116*t[2]-16)/je].map((r,a)=>r*dt[a])},formats:{"lab-d65":{coords:["<number> | <percentage>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});const gt=Math.pow(5,.5)*.5+.5;function _i(e,t){e=M(e),t=M(t);let n=O(e,[Lt,"l"]),r=O(t,[Lt,"l"]),a=Math.abs(Math.pow(n,gt)-Math.pow(r,gt)),i=Math.pow(a,1/gt)*Math.SQRT2-40;return i<7.5?0:i}var Ge=Object.freeze({__proto__:null,contrastAPCA:di,contrastDeltaPhi:_i,contrastLstar:pi,contrastMichelson:gi,contrastWCAG21:ni,contrastWeber:bi});function yi(e,t,n={}){Ie(n)&&(n={algorithm:n});let{algorithm:r,...a}=n;if(!r){let i=Object.keys(Ge).map(s=>s.replace(/^contrast/,"")).join(", ");throw new TypeError(`contrast() function needs a contrast algorithm. Please specify one of: ${i}`)}e=M(e),t=M(t);for(let i in Ge)if("contrast"+r.toLowerCase()===i.toLowerCase())return Ge[i](e,t,a);throw new TypeError(`Unknown contrast algorithm: ${r}`)}function at(e){let[t,n,r]=Le(e,N),a=t+15*n+3*r;return[4*t/a,9*n/a]}function Zn(e){let[t,n,r]=Le(e,N),a=t+n+r;return[t/a,n/a]}function Mi(e){Object.defineProperty(e.prototype,"uv",{get(){return at(this)}}),Object.defineProperty(e.prototype,"xy",{get(){return Zn(this)}})}var wi=Object.freeze({__proto__:null,register:Mi,uv:at,xy:Zn});function Ce(e,t,n={}){Ie(n)&&(n={method:n});let{method:r=j.deltaE,...a}=n;for(let i in ve)if("deltae"+r.toLowerCase()===i.toLowerCase())return ve[i](e,t,a);throw new TypeError(`Unknown deltaE method: ${r}`)}function xi(e,t=.25){let r=[b.get("oklch","lch"),"l"];return Z(e,r,a=>a*(1+t))}function Ci(e,t=.25){let r=[b.get("oklch","lch"),"l"];return Z(e,r,a=>a*(1-t))}var Si=Object.freeze({__proto__:null,darken:Ci,lighten:xi});function Jn(e,t,n=.5,r={}){return[e,t]=[M(e),M(t)],Q(n)==="object"&&([n,r]=[.5,n]),Ne(e,t,r)(n)}function Un(e,t,n={}){let r;Gt(e)&&([r,n]=[e,t],[e,t]=r.rangeArgs.colors);let{maxDeltaE:a,deltaEMethod:i,steps:s=2,maxSteps:o=1e3,...l}=n;r||([e,t]=[M(e),M(t)],r=Ne(e,t,l));let u=Ce(e,t),h=a>0?Math.max(s,Math.ceil(u/a)+1):s,c=[];if(o!==void 0&&(h=Math.min(h,o)),h===1)c=[{p:.5,color:r(.5)}];else{let f=1/(h-1);c=Array.from({length:h},(d,g)=>{let m=g*f;return{p:m,color:r(m)}})}if(a>0){let f=c.reduce((d,g,m)=>{if(m===0)return 0;let p=Ce(g.color,c[m-1].color,i);return Math.max(d,p)},0);for(;f>a;){f=0;for(let d=1;d<c.length&&c.length<o;d++){let g=c[d-1],m=c[d],p=(m.p+g.p)/2,y=r(p);f=Math.max(f,Ce(y,g.color),Ce(y,m.color)),c.splice(d,0,{p,color:r(p)}),d++}}}return c=c.map(f=>f.color),c}function Ne(e,t,n={}){if(Gt(e)){let[l,u]=[e,t];return Ne(...l.rangeArgs.colors,{...l.rangeArgs.options,...u})}let{space:r,outputSpace:a,progression:i,premultiplied:s}=n;e=M(e),t=M(t),e=pe(e),t=pe(t);let o={colors:[e,t],options:n};if(r?r=b.get(r):r=b.registry[j.interpolationSpace]||e.space,a=a?b.get(a):r,e=E(e,r),t=E(t,r),e=ee(e),t=ee(t),r.coords.h&&r.coords.h.type==="angle"){let l=n.hue=n.hue||"shorter",u=[r,"h"],[h,c]=[O(e,u),O(t,u)];isNaN(h)&&!isNaN(c)?h=c:isNaN(c)&&!isNaN(h)&&(c=h),[h,c]=aa(l,[h,c]),Z(e,u,h),Z(t,u,c)}return s&&(e.coords=e.coords.map(l=>l*e.alpha),t.coords=t.coords.map(l=>l*t.alpha)),Object.assign(l=>{l=i?i(l):l;let u=e.coords.map((f,d)=>{let g=t.coords[d];return Ee(f,g,l)}),h=Ee(e.alpha,t.alpha,l),c={space:r,coords:u,alpha:h};return s&&(c.coords=c.coords.map(f=>f/h)),a!==r&&(c=E(c,a)),c},{rangeArgs:o})}function Gt(e){return Q(e)==="function"&&!!e.rangeArgs}j.interpolationSpace="lab";function Ei(e){e.defineFunction("mix",Jn,{returns:"color"}),e.defineFunction("range",Ne,{returns:"function<color>"}),e.defineFunction("steps",Un,{returns:"array<color>"})}var Ri=Object.freeze({__proto__:null,isRange:Gt,mix:Jn,range:Ne,register:Ei,steps:Un}),Qn=new b({id:"hsl",name:"HSL",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},l:{range:[0,100],name:"Lightness"}},base:_e,fromBase:e=>{let t=Math.max(...e),n=Math.min(...e),[r,a,i]=e,[s,o,l]=[NaN,0,(n+t)/2],u=t-n;if(u!==0){switch(o=l===0||l===1?0:(t-l)/Math.min(l,1-l),t){case r:s=(a-i)/u+(a<i?6:0);break;case a:s=(i-r)/u+2;break;case i:s=(r-a)/u+4}s=s*60}return o<0&&(s+=180,o=Math.abs(o)),s>=360&&(s-=360),[s,o*100,l*100]},toBase:e=>{let[t,n,r]=e;t=t%360,t<0&&(t+=360),n/=100,r/=100;function a(i){let s=(i+t/30)%12,o=n*Math.min(r,1-r);return r-o*Math.max(-1,Math.min(s-3,9-s,1))}return[a(0),a(8),a(4)]},formats:{hsl:{coords:["<number> | <angle>","<percentage>","<percentage>"]},hsla:{coords:["<number> | <angle>","<percentage>","<percentage>"],commas:!0,lastAlpha:!0}}}),Vn=new b({id:"hsv",name:"HSV",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},v:{range:[0,100],name:"Value"}},base:Qn,fromBase(e){let[t,n,r]=e;n/=100,r/=100;let a=r+n*Math.min(r,1-r);return[t,a===0?0:200*(1-r/a),100*a]},toBase(e){let[t,n,r]=e;n/=100,r/=100;let a=r*(1-n/2);return[t,a===0||a===1?0:(r-a)/Math.min(a,1-a)*100,a*100]},formats:{color:{id:"--hsv",coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"]}}}),ki=new b({id:"hwb",name:"HWB",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},w:{range:[0,100],name:"Whiteness"},b:{range:[0,100],name:"Blackness"}},base:Vn,fromBase(e){let[t,n,r]=e;return[t,r*(100-n)/100,100-r]},toBase(e){let[t,n,r]=e;n/=100,r/=100;let a=n+r;if(a>=1){let o=n/a;return[t,0,o*100]}let i=1-r,s=i===0?0:1-n/i;return[t,s*100,i*100]},formats:{hwb:{coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"]}}});const Ii=[[.5766690429101305,.1855582379065463,.1882286462349947],[.29734497525053605,.6273635662554661,.07529145849399788],[.02703136138641234,.07068885253582723,.9913375368376388]],Li=[[2.0415879038107465,-.5650069742788596,-.34473135077832956],[-.9692436362808795,1.8759675015077202,.04155505740717557],[.013444280632031142,-.11836239223101838,1.0151749943912054]];var Kn=new z({id:"a98rgb-linear",cssId:"--a98-rgb-linear",name:"Linear Adobe® 98 RGB compatible",white:"D65",toXYZ_M:Ii,fromXYZ_M:Li}),Ni=new z({id:"a98rgb",cssId:"a98-rgb",name:"Adobe® 98 RGB compatible",base:Kn,toBase:e=>e.map(t=>Math.pow(Math.abs(t),563/256)*Math.sign(t)),fromBase:e=>e.map(t=>Math.pow(Math.abs(t),256/563)*Math.sign(t))});const Pi=[[.7977666449006423,.13518129740053308,.0313477341283922],[.2880748288194013,.711835234241873,8993693872564e-17],[0,0,.8251046025104602]],Ai=[[1.3457868816471583,-.25557208737979464,-.05110186497554526],[-.5446307051249019,1.5082477428451468,.02052744743642139],[0,0,1.2119675456389452]];var e0=new z({id:"prophoto-linear",cssId:"--prophoto-rgb-linear",name:"Linear ProPhoto",white:"D50",base:jt,toXYZ_M:Pi,fromXYZ_M:Ai});const $i=1/512,Hi=16/512;var Bi=new z({id:"prophoto",cssId:"prophoto-rgb",name:"ProPhoto",base:e0,toBase(e){return e.map(t=>t<Hi?t/16:t**1.8)},fromBase(e){return e.map(t=>t>=$i?t**(1/1.8):16*t)}}),Ti=new b({id:"oklch",name:"Oklch",coords:{l:{refRange:[0,1],name:"Lightness"},c:{refRange:[0,.4],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},white:"D65",base:be,fromBase(e){let[t,n,r]=e,a;const i=2e-4;return Math.abs(n)<i&&Math.abs(r)<i?a=NaN:a=Math.atan2(r,n)*180/Math.PI,[t,Math.sqrt(n**2+r**2),q(a)]},toBase(e){let[t,n,r]=e,a,i;return isNaN(r)?(a=0,i=0):(a=n*Math.cos(r*Math.PI/180),i=n*Math.sin(r*Math.PI/180)),[t,a,i]},formats:{oklch:{coords:["<percentage> | <number>","<number> | <percentage>[0,1]","<number> | <angle>"]}}});let t0=A.D65;const zi=216/24389,Hr=24389/27,[Br,Tr]=at({space:N,coords:t0});var r0=new b({id:"luv",name:"Luv",coords:{l:{refRange:[0,100],name:"Lightness"},u:{refRange:[-215,215]},v:{refRange:[-215,215]}},white:t0,base:N,fromBase(e){let t=[I(e[0]),I(e[1]),I(e[2])],n=t[1],[r,a]=at({space:N,coords:t});if(!Number.isFinite(r)||!Number.isFinite(a))return[0,0,0];let i=n<=zi?Hr*n:116*Math.cbrt(n)-16;return[i,13*i*(r-Br),13*i*(a-Tr)]},toBase(e){let[t,n,r]=e;if(t===0||V(t))return[0,0,0];n=I(n),r=I(r);let a=n/(13*t)+Br,i=r/(13*t)+Tr,s=t<=8?t/Hr:Math.pow((t+16)/116,3);return[s*(9*a/(4*i)),s,s*((12-3*a-20*i)/(4*i))]},formats:{color:{id:"--luv",coords:["<number> | <percentage>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}}),Yt=new b({id:"lchuv",name:"LChuv",coords:{l:{refRange:[0,100],name:"Lightness"},c:{refRange:[0,220],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},base:r0,fromBase(e){let[t,n,r]=e,a;const i=.02;return Math.abs(n)<i&&Math.abs(r)<i?a=NaN:a=Math.atan2(r,n)*180/Math.PI,[t,Math.sqrt(n**2+r**2),q(a)]},toBase(e){let[t,n,r]=e;return n<0&&(n=0),isNaN(r)&&(r=0),[t,n*Math.cos(r*Math.PI/180),n*Math.sin(r*Math.PI/180)]},formats:{color:{id:"--lchuv",coords:["<number> | <percentage>","<number> | <percentage>","<number> | <angle>"]}}});const Oi=216/24389,Di=24389/27,zr=L[0][0],Or=L[0][1],mt=L[0][2],Dr=L[1][0],jr=L[1][1],bt=L[1][2],Xr=L[2][0],Wr=L[2][1],pt=L[2][2];function fe(e,t,n){const r=t/(Math.sin(n)-e*Math.cos(n));return r<0?1/0:r}function Qe(e){const t=Math.pow(e+16,3)/1560896,n=t>Oi?t:e/Di,r=n*(284517*zr-94839*mt),a=n*(838422*mt+769860*Or+731718*zr),i=n*(632260*mt-126452*Or),s=n*(284517*Dr-94839*bt),o=n*(838422*bt+769860*jr+731718*Dr),l=n*(632260*bt-126452*jr),u=n*(284517*Xr-94839*pt),h=n*(838422*pt+769860*Wr+731718*Xr),c=n*(632260*pt-126452*Wr);return{r0s:r/i,r0i:a*e/i,r1s:r/(i+126452),r1i:(a-769860)*e/(i+126452),g0s:s/l,g0i:o*e/l,g1s:s/(l+126452),g1i:(o-769860)*e/(l+126452),b0s:u/c,b0i:h*e/c,b1s:u/(c+126452),b1i:(h-769860)*e/(c+126452)}}function Gr(e,t){const n=t/360*Math.PI*2,r=fe(e.r0s,e.r0i,n),a=fe(e.r1s,e.r1i,n),i=fe(e.g0s,e.g0i,n),s=fe(e.g1s,e.g1i,n),o=fe(e.b0s,e.b0i,n),l=fe(e.b1s,e.b1i,n);return Math.min(r,a,i,s,o,l)}var ji=new b({id:"hsluv",name:"HSLuv",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},l:{range:[0,100],name:"Lightness"}},base:Yt,gamutSpace:_e,fromBase(e){let[t,n,r]=[I(e[0]),I(e[1]),I(e[2])],a;if(t>99.9999999)a=0,t=100;else if(t<1e-8)a=0,t=0;else{let i=Qe(t),s=Gr(i,r);a=n/s*100}return[r,a,t]},toBase(e){let[t,n,r]=[I(e[0]),I(e[1]),I(e[2])],a;if(r>99.9999999)r=100,a=0;else if(r<1e-8)r=0,a=0;else{let i=Qe(r);a=Gr(i,t)/100*n}return[r,a,t]},formats:{color:{id:"--hsluv",coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"]}}});L[0][0];L[0][1];L[0][2];L[1][0];L[1][1];L[1][2];L[2][0];L[2][1];L[2][2];function de(e,t){return Math.abs(t)/Math.sqrt(Math.pow(e,2)+1)}function Yr(e){let t=de(e.r0s,e.r0i),n=de(e.r1s,e.r1i),r=de(e.g0s,e.g0i),a=de(e.g1s,e.g1i),i=de(e.b0s,e.b0i),s=de(e.b1s,e.b1i);return Math.min(t,n,r,a,i,s)}var Xi=new b({id:"hpluv",name:"HPLuv",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},l:{range:[0,100],name:"Lightness"}},base:Yt,gamutSpace:"self",fromBase(e){let[t,n,r]=[I(e[0]),I(e[1]),I(e[2])],a;if(t>99.9999999)a=0,t=100;else if(t<1e-8)a=0,t=0;else{let i=Qe(t),s=Yr(i);a=n/s*100}return[r,a,t]},toBase(e){let[t,n,r]=[I(e[0]),I(e[1]),I(e[2])],a;if(r>99.9999999)r=100,a=0;else if(r<1e-8)r=0,a=0;else{let i=Qe(r);a=Yr(i)/100*n}return[r,a,t]},formats:{color:{id:"--hpluv",coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"]}}});const qr=203,Fr=2610/2**14,Wi=2**14/2610,Gi=2523/2**5,Zr=2**5/2523,Jr=3424/2**12,Ur=2413/2**7,Qr=2392/2**7;var Yi=new z({id:"rec2100pq",cssId:"rec2100-pq",name:"REC.2100-PQ",base:nt,toBase(e){return e.map(function(t){return(Math.max(t**Zr-Jr,0)/(Ur-Qr*t**Zr))**Wi*1e4/qr})},fromBase(e){return e.map(function(t){let n=Math.max(t*qr/1e4,0),r=Jr+Ur*n**Fr,a=1+Qr*n**Fr;return(r/a)**Gi})}});const Vr=.17883277,Kr=.28466892,en=.55991073,vt=3.7743;var qi=new z({id:"rec2100hlg",cssId:"rec2100-hlg",name:"REC.2100-HLG",referred:"scene",base:nt,toBase(e){return e.map(function(t){return t<=.5?t**2/3*vt:(Math.exp((t-en)/Vr)+Kr)/12*vt})},fromBase(e){return e.map(function(t){return t/=vt,t<=1/12?Math.sqrt(3*t):Vr*Math.log(12*t-Kr)+en})}});const n0={};K.add("chromatic-adaptation-start",e=>{e.options.method&&(e.M=a0(e.W1,e.W2,e.options.method))});K.add("chromatic-adaptation-end",e=>{e.M||(e.M=a0(e.W1,e.W2,e.options.method))});function it({id:e,toCone_M:t,fromCone_M:n}){n0[e]=arguments[0]}function a0(e,t,n="Bradford"){let r=n0[n],[a,i,s]=R(r.toCone_M,e),[o,l,u]=R(r.toCone_M,t),h=[[o/a,0,0],[0,l/i,0],[0,0,u/s]],c=R(h,r.toCone_M);return R(r.fromCone_M,c)}it({id:"von Kries",toCone_M:[[.40024,.7076,-.08081],[-.2263,1.16532,.0457],[0,0,.91822]],fromCone_M:[[1.8599363874558397,-1.1293816185800916,.21989740959619328],[.3611914362417676,.6388124632850422,-6370596838649899e-21],[0,0,1.0890636230968613]]});it({id:"Bradford",toCone_M:[[.8951,.2664,-.1614],[-.7502,1.7135,.0367],[.0389,-.0685,1.0296]],fromCone_M:[[.9869929054667121,-.14705425642099013,.15996265166373122],[.4323052697233945,.5183602715367774,.049291228212855594],[-.00852866457517732,.04004282165408486,.96848669578755]]});it({id:"CAT02",toCone_M:[[.7328,.4296,-.1624],[-.7036,1.6975,.0061],[.003,.0136,.9834]],fromCone_M:[[1.0961238208355142,-.27886900021828726,.18274517938277307],[.4543690419753592,.4735331543074117,.07209780371722911],[-.009627608738429355,-.00569803121611342,1.0153256399545427]]});it({id:"CAT16",toCone_M:[[.401288,.650173,-.051461],[-.250268,1.204414,.045854],[-.002079,.048952,.953127]],fromCone_M:[[1.862067855087233,-1.0112546305316845,.14918677544445172],[.3875265432361372,.6214474419314753,-.008973985167612521],[-.01584149884933386,-.03412293802851557,1.0499644368778496]]});Object.assign(A,{A:[1.0985,1,.35585],C:[.98074,1,1.18232],D55:[.95682,1,.92149],D75:[.94972,1,1.22638],E:[1,1,1],F2:[.99186,1,.67393],F7:[.95041,1,1.08747],F11:[1.00962,1,.6435]});A.ACES=[.32168/.33767,1,(1-.32168-.33767)/.33767];const Fi=[[.6624541811085053,.13400420645643313,.1561876870049078],[.27222871678091454,.6740817658111484,.05368951740793705],[-.005574649490394108,.004060733528982826,1.0103391003129971]],Zi=[[1.6410233796943257,-.32480329418479,-.23642469523761225],[-.6636628587229829,1.6153315916573379,.016756347685530137],[.011721894328375376,-.008284441996237409,.9883948585390215]];var i0=new z({id:"acescg",cssId:"--acescg",name:"ACEScg",coords:{r:{range:[0,65504],name:"Red"},g:{range:[0,65504],name:"Green"},b:{range:[0,65504],name:"Blue"}},referred:"scene",white:A.ACES,toXYZ_M:Fi,fromXYZ_M:Zi});const Xe=2**-16,_t=-.35828683,We=(Math.log2(65504)+9.72)/17.52;var Ji=new z({id:"acescc",cssId:"--acescc",name:"ACEScc",coords:{r:{range:[_t,We],name:"Red"},g:{range:[_t,We],name:"Green"},b:{range:[_t,We],name:"Blue"}},referred:"scene",base:i0,toBase(e){const t=-.3013698630136986;return e.map(function(n){return n<=t?(2**(n*17.52-9.72)-Xe)*2:n<We?2**(n*17.52-9.72):65504})},fromBase(e){return e.map(function(t){return t<=0?(Math.log2(Xe)+9.72)/17.52:t<Xe?(Math.log2(Xe+t*.5)+9.72)/17.52:(Math.log2(t)+9.72)/17.52})}}),tn=Object.freeze({__proto__:null,A98RGB:Ni,A98RGB_Linear:Kn,ACEScc:Ji,ACEScg:i0,CAM16_JMh:Ta,HCT:ke,HPLuv:Xi,HSL:Qn,HSLuv:ji,HSV:Vn,HWB:ki,ICTCP:Rt,JzCzHz:Et,Jzazbz:An,LCH:Re,LCHuv:Yt,Lab:D,Lab_D65:Lt,Luv:r0,OKLCH:Ti,OKLab:be,P3:qn,P3_Linear:Gn,ProPhoto:Bi,ProPhoto_Linear:e0,REC_2020:Wn,REC_2020_Linear:nt,REC_2100_HLG:qi,REC_2100_PQ:Yi,XYZ_ABS_D65:Xt,XYZ_D50:jt,XYZ_D65:N,sRGB:_e,sRGB_Linear:Yn});class x{constructor(...t){let n;t.length===1&&(n=M(t[0]));let r,a,i;n?(r=n.space||n.spaceId,a=n.coords,i=n.alpha):[r,a,i]=t,Object.defineProperty(this,"space",{value:b.get(r),writable:!1,enumerable:!0,configurable:!0}),this.coords=a?a.slice():[0,0,0],this.alpha=i>1||i===void 0?1:i<0?0:i;for(let s=0;s<this.coords.length;s++)this.coords[s]==="NaN"&&(this.coords[s]=NaN);for(let s in this.space.coords)Object.defineProperty(this,s,{get:()=>this.get(s),set:o=>this.set(s,o)})}get spaceId(){return this.space.id}clone(){return new x(this.space,this.coords,this.alpha)}toJSON(){return{spaceId:this.spaceId,coords:this.coords,alpha:this.alpha}}display(...t){let n=Ka(this,...t);return n.color=new x(n.color),n}static get(t,...n){return t instanceof x?t:new x(t,...n)}static defineFunction(t,n,r=n){let{instance:a=!0,returns:i}=r,s=function(...o){let l=n(...o);if(i==="color")l=x.get(l);else if(i==="function<color>"){let u=l;l=function(...h){let c=u(...h);return x.get(c)},Object.assign(l,u)}else i==="array<color>"&&(l=l.map(u=>x.get(u)));return l};t in x||(x[t]=s),a&&(x.prototype[t]=function(...o){return s(this,...o)})}static defineFunctions(t){for(let n in t)x.defineFunction(n,t[n],t[n])}static extend(t){if(t.register)t.register(x);else for(let n in t)x.defineFunction(n,t[n])}}x.defineFunctions({get:O,getAll:Le,set:Z,setAll:Dt,to:E,equals:ei,inGamut:oe,toGamut:ee,distance:Pn,toString:Se});Object.assign(x,{util:V0,hooks:K,WHITES:A,Space:b,spaces:b.registry,parse:Ln,defaults:j});for(let e of Object.keys(tn))b.register(tn[e]);for(let e in b.registry)Nt(e,b.registry[e]);K.add("colorspace-init-end",e=>{var t;Nt(e.id,e),(t=e.aliases)==null||t.forEach(n=>{Nt(n,e)})});function Nt(e,t){let n=e.replace(/-/g,"_");Object.defineProperty(x.prototype,n,{get(){let r=this.getAll(e);return typeof Proxy>"u"?r:new Proxy(r,{has:(a,i)=>{try{return b.resolveCoord([t,i]),!0}catch{}return Reflect.has(a,i)},get:(a,i,s)=>{if(i&&typeof i!="symbol"&&!(i in a)){let{index:o}=b.resolveCoord([t,i]);if(o>=0)return a[o]}return Reflect.get(a,i,s)},set:(a,i,s,o)=>{if(i&&typeof i!="symbol"&&!(i in a)||i>=0){let{index:l}=b.resolveCoord([t,i]);if(l>=0)return a[l]=s,this.setAll(e,a),!0}return Reflect.set(a,i,s,o)}})},set(r){this.setAll(e,r)},configurable:!0,enumerable:!0})}x.extend(ve);x.extend({deltaE:Ce});Object.assign(x,{deltaEMethods:ve});x.extend(Si);x.extend({contrast:yi});x.extend(wi);x.extend(ri);x.extend(Ri);x.extend(Ge);(function(e,t){window.ips.createModule("ips.utils.iro",function(){return window.dispatchEvent(new CustomEvent("ips:iroLoaded")),{...ar,ColorPicker:ar.ColorPicker,colorPackage:x}})})(_);
|