"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[1196],{4212:function(e,t,a){a.d(t,{N:function(){returns}});classs{constructor(e){if(this.ranges={hue:[0,360],sat:[0,100],bri:[0,100],ct:[154,500]},e)for(consttofObject.keys(this.ranges))e[t]&&(this.ranges[t]=e[t])}normalize(e,t,a){returna[0]+(e-t[0])*(a[1]-a[0])/(t[1]-t[0])}hslToRgb(e,t,a){[e,t,a]=[this.normalize(e,this.ranges.hue,[0,360]),this.normalize(t,this.ranges.sat,[0,100]),this.normalize(a,this.ranges.bri,[0,100])],a/=100;consts=t*Math.min(a,1-a)/100,l=t=>{constl=(t+e/30)%12,n=a-s*Math.max(Math.min(l-3,9-l,1),-1);returnMath.round(255*n)};return[l(0),l(8),l(4)]}rgbToHsl(e,t,a){e/=255,t/=255,a/=255;consts=Math.max(e,t,a),l=Math.min(e,t,a);letn,i,r=(s+l)/2;if(s===l)n=i=0;else{consto=s-l;switch(i=r>.5?o/(2-s-l):o/(s+l),s){casee:n=(t-a)/o+(t<a?6:0);break;caset:n=(a-e)/o+2;break;casea:n=(e-t)/o+4;break}n/=6}return[parseInt(this.normalize(n,[0,1],this.ranges.hue)),parseInt(this.normalize(i,[0,1],this.ranges.sat)),parseInt(this.normalize(r,[0,1],this.ranges.bri))]}xyToRgb(e,t,a){null==a&&(a=this.ranges.bri[1]);consts=1-e-t,l=(a/(this.ranges.bri[1]-1)).toFixed(2),n=l/t*e,i=l/t*s;letr=1.656492*n-.354851*l-.255038*i,o=.707196*-n+1.655397*l+.036152*i,u=.051713*n-.121364*l+1.01153*i;returnr>u&&r>o&&r>1?(o/=r,u/=r,r=1):o>u&&o>r&&o>1?(r/=o,u/=o,o=1):u>r&&u>o&&u>1&&(r/=u,o/=u,u=1),r=r<=.0031308?12.92*r:1.055*Math.pow(r,1/2.4)-.055,o=o<=.0031308?12.92*o:1.055*Math.pow(o,1/2.4)-.055,u=u<=.0031308?12.92*u:1.055*Math.pow(u,1/2.4)-.055,r=Math.round(255*r),o=Math.round(255*o),u=Math.round(255*u),isNaN(r)&&(r=0),isNaN(o)&&(o=0),isNaN(u)&&(u=0),[r,o,u].map((e=>Math.min(Math.max(0,e),255)))}rgbToXY(e,t,a){e>1&&(e/=255),t>1&&(t/=255),a>1&&(a/=255),e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92;consts=.664511*e+.154324*t+.162028*a,l=.283881*e+.668433*t+.047685*a,n=88e-6*e+.07231*t+.986039*a;leti=parseFloat((s/(s+l+n)).toFixed(4)),r=parseFloat((l/(s+l+n)).toFixed(4));returnisNaN(i)&&(i=0),isNaN(r)&&(r=0),[i,r]}rgbToBri(e,t,a){returnMath.min(2*this.rgbToHsl(e,t,a)[2],this.ranges.bri[1])}getRGB(e){returnnull!=e.red&&null!=e.green&&null!=e.blue?[e.red,e.green,e.blue]:null!=e.r&&null!=e.g&&null!=e.b?[e.r,e.g,e.b]:e.rgb?e.rgb:void0}getXY(e){returnnull!=e.x&&null!=e.y?[e.x,e.y]:e.xy?e.xy:void0}toRGB(e){constt=this.getRGB(e);if(t)returnt;consta=this.getXY(e);returna&&e.bri?this.xyToRgb(...a,e.bri):e.hue&&e.sat&&e.bri?this.hslToRgb(e.hue,e.sat,e.bri):(console.debug("Could not determine color space"),voidconsole.debug(e))}toXY(e){constt=this.getXY(e);if(t&&e.bri)return[t[0],t[1],e.bri];consta=this.getRGB(e);if(a)returnthis.rgbToXY(...a);if(e.hue&&e.sat&&e.bri){constt=this.hslToRgb(e.hue,e.sat,e.bri);returnthis.rgbToXY(...t)}console.debug("Could not determine color space"),console.debug(e)}toHSL(e){if(e.hue&&e.sat&&e.bri)return[e.hue,e.sat,e.bri];constt=this.getRGB(e);if(t)returnthis.rgbToHsl(...t);consta=this.getXY(e);if(a&&e.bri){constt=this.xyToRgb(...a,e.bri);returnthis.rgbToHsl(...t)}console.debug("Could not determine color space"),console.debug(e)}hexToRgb(e){return[e.slice(1,3),e.slice(3,5),e.slice(5,7)].map((e=>parseInt(e,16)))}rgbToHex(e){return"#"+e.map((e=>{lett=e.toString(16);returnt.length<2&&(t="0"+t),t})).join("")}}},8816:function(e,t,a){a.d(t,{Z:function(){returnf}});vars=a(6252),l=a(3577),n=a(9963);consti={class:"slider-wrapper"},r=["textContent"],o=["textContent"],u={class:"slider-container"},h=["min","max","step","disabled","value"],c={class:"track-inner",ref:"track"},d={class:"thumb",ref:"thumb"},g=["textContent"];functionv(e,t,a,v,p,b){return(0,s.wg)(),(0,s.iD)("label",i,[a.withRange?((0,s.wg)(),(0,s.iD)("span",{key:0,class:(0,l.C_)(["range-labels",{"with-label":a.withLabel}])},[a.withRange?((0,s.wg)(),(0,s.iD)("span",{key:0,class:"label left",textContent:(0,l.zw)(a.range[0])},null,8,r)):(0,s.kq)("",!0),a.withRange?((0,s.wg)(),(0,s.iD)("span",{key:1,class:"label right",textContent:(0,l.zw)(a.range[1])},