(window.charts_bundle_jsonpfunction=window.charts_bundle_jsonpfunction||[]).push([[2],{34:function(n,e,t){"use strict";t.d(e,"b",(function(){return o})),t.d(e,"a",(function(){return r}));const o=n=>Boolean(n&&["below","all"].includes(n)),r=n=>Boolean(n&&["above","all"].includes(n))},35:function(n,e,t){"use strict";t.r(e),t.d(e,"paletteExpressionFn",(function(){return c}));var o=t(2),r=t(34),a=t(13);const c=async(n,e)=>{const{color:t,continuity:c,reverse:s,gradient:u,stop:l,range:i,rangeMin:d,rangeMax:p}=e,b=[].concat(t||a.a),g=[].concat(l||[]);if(g.length>0&&b.length!==g.length)throw Error("When stop is used, each color must have an associated stop value.");const h=(n,e,t)=>{var o;return null!==(o=null!=n?n:e)&&void 0!==o?o:t};return{type:"palette",name:"custom",params:{colors:s?b.reverse():b,stops:g,range:null!=i?i:"percent",gradient:u,continuity:c,rangeMin:Object(r.b)(c)?Number.NEGATIVE_INFINITY:h(d,g[0],0),rangeMax:Object(r.a)(c)?Number.POSITIVE_INFINITY:h(p,Object(o.last)(g),100)}}}}}]);