!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.d3=t.d3||{})}(this,function(t){"use strict";function n(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===Sn&&n.documentElement.namespaceURI===Sn?n.createElement(t):n.createElementNS(e,t)}}function e(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function r(t,n,e){return t=i(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function i(n,e,r){return function(i){var o=t.event;t.event=i;try{n.call(this,this.__data__,e,r)}finally{t.event=o}}}function o(t){return t.trim().split(/^|\s+/).map(function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}})}function u(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;rn?1:t>=n?0:NaN}function d(t){return function(){this.removeAttribute(t)}}function y(t){return function(){this.removeAttributeNS(t.space,t.local)}}function v(t,n){return function(){this.setAttribute(t,n)}}function g(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function _(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function m(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function w(t){return function(){this.style.removeProperty(t)}}function b(t,n,e){return function(){this.style.setProperty(t,n,e)}}function x(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function M(t){return function(){delete this[t]}}function N(t,n){return function(){this[t]=n}}function A(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function k(t){return t.trim().split(/^|\s+/)}function E(t){return t.classList||new S(t)}function S(t){this._node=t,this._names=k(t.getAttribute("class")||"")}function P(t,n){for(var e=E(t),r=-1,i=n.length;++r=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})}function W(t,n){for(var e,r=0,i=t.length;r=0&&n._call.call(null,t),n=n._next;--Ne}function ot(){Pe=(Se=Ce.now())+qe,Ne=Ae=0;try{it()}finally{Ne=0,at(),Pe=0}}function ut(){var t=Ce.now(),n=t-Se;n>Ee&&(qe-=n,Se=t)}function at(){for(var t,n,e=xe,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:xe=n);Me=t,st(r)}function st(t){if(!Ne){Ae&&(Ae=clearTimeout(Ae));var n=t-Pe;n>24?(t<1/0&&(Ae=setTimeout(ot,n)),ke&&(ke=clearInterval(ke))):(ke||(Se=Pe,ke=setInterval(ut,Ee)),Ne=1,Ie(ot))}}function lt(t,n){var e=t.__transition;if(!e||!(e=e[n])||e.state>Ve)throw new Error("too late");return e}function ct(t,n){var e=t.__transition;if(!e||!(e=e[n])||e.state>Re)throw new Error("too late");return e}function ht(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("too late");return e}function ft(t,n,e){function r(t){e.state=Le,e.timer.restart(i,e.delay,e.time),e.delay<=t&&i(t-e.delay)}function i(r){var l,c,h,f;if(e.state!==Le)return u();for(l in s)if(f=s[l],f.name===e.name){if(f.state===je)return Oe(i);f.state===De?(f.state=Ye,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete s[l]):+l>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1)):(n=Qe.exec(t))?vt(parseInt(n[1],16)):(n=We.exec(t))?new wt(n[1],n[2],n[3],1):(n=Ze.exec(t))?new wt(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=tr.exec(t))?gt(n[1],n[2],n[3],n[4]):(n=nr.exec(t))?gt(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=er.exec(t))?bt(n[1],n[2]/100,n[3]/100,1):(n=rr.exec(t))?bt(n[1],n[2]/100,n[3]/100,n[4]):ir.hasOwnProperty(t)?vt(ir[t]):"transparent"===t?new wt(NaN,NaN,NaN,0):null}function vt(t){return new wt(t>>16&255,t>>8&255,255&t,1)}function gt(t,n,e,r){return r<=0&&(t=n=e=NaN),new wt(t,n,e,r)}function _t(t){return t instanceof dt||(t=yt(t)),t?(t=t.rgb(),new wt(t.r,t.g,t.b,t.opacity)):new wt}function mt(t,n,e,r){return 1===arguments.length?_t(t):new wt(t,n,e,null==r?1:r)}function wt(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function bt(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Nt(t,n,e,r)}function xt(t){if(t instanceof Nt)return new Nt(t.h,t.s,t.l,t.opacity);if(t instanceof dt||(t=yt(t)),!t)return new Nt;if(t instanceof Nt)return t;t=t.rgb();var n=t.r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),u=NaN,a=o-i,s=(o+i)/2;return a?(u=n===o?(e-r)/a+6*(e0&&s<1?0:u,new Nt(u,a,s,t.opacity)}function Mt(t,n,e,r){return 1===arguments.length?xt(t):new Nt(t,n,e,null==r?1:r)}function Nt(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function At(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function kt(t){if(t instanceof St)return new St(t.l,t.a,t.b,t.opacity);if(t instanceof Tt){var n=t.h*or;return new St(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof wt||(t=_t(t));var e=It(t.r),r=It(t.g),i=It(t.b),o=Pt((.4124564*e+.3575761*r+.1804375*i)/ar),u=Pt((.2126729*e+.7151522*r+.072175*i)/sr);return new St(116*u-16,500*(o-u),200*(u-Pt((.0193339*e+.119192*r+.9503041*i)/lr)),t.opacity)}function Et(t,n,e,r){return 1===arguments.length?kt(t):new St(t,n,e,null==r?1:r)}function St(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function Pt(t){return t>pr?Math.pow(t,1/3):t/fr+cr}function qt(t){return t>hr?t*t*t:fr*(t-cr)}function Ct(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function It(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Ot(t){if(t instanceof Tt)return new Tt(t.h,t.c,t.l,t.opacity);t instanceof St||(t=kt(t));var n=Math.atan2(t.b,t.a)*ur;return new Tt(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Xt(t,n,e,r){return 1===arguments.length?Ot(t):new Tt(t,n,e,null==r?1:r)}function Tt(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}function Vt(t){if(t instanceof Rt)return new Rt(t.h,t.s,t.l,t.opacity);t instanceof wt||(t=_t(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(br*r+mr*n-wr*e)/(br+mr-wr),o=r-i,u=(_r*(e-i)-vr*o)/gr,a=Math.sqrt(u*u+o*o)/(_r*i*(1-i)),s=a?Math.atan2(u,o)*ur-120:NaN;return new Rt(s<0?s+360:s,a,i,t.opacity)}function Lt(t,n,e,r){return 1===arguments.length?Vt(t):new Rt(t,n,e,null==r?1:r)}function Rt(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function jt(t,n){return function(e){return t+e*n}}function Dt(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}function $t(t,n){var e=n-t;return e?jt(t,e>180||e<-180?e-360*Math.round(e/360):e):kr(isNaN(t)?n:t)}function Yt(t){return 1==(t=+t)?zt:function(n,e){return e-n?Dt(n,e,t):kr(isNaN(n)?e:n)}}function zt(t,n){var e=n-t;return e?jt(t,e):kr(isNaN(t)?n:t)}function Bt(t){return function(){return t}}function Ht(t){return function(n){return t(n)+""}}function Ut(t){return"none"===t?Or:(xr||(xr=document.createElement("DIV"),Mr=document.documentElement,Nr=document.defaultView),xr.style.transform=t,t=Nr.getComputedStyle(Mr.appendChild(xr),null).getPropertyValue("transform"),Mr.removeChild(xr),t=t.slice(7,-1).split(","),Xr(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function Ft(t){return null==t?Or:(Ar||(Ar=document.createElementNS("http://www.w3.org/2000/svg","g")),Ar.setAttribute("transform",t),(t=Ar.transform.baseVal.consolidate())?(t=t.matrix,Xr(t.a,t.b,t.c,t.d,t.e,t.f)):Or)}function Gt(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}function o(t,r,i,o,u,a){if(t!==i||r!==o){var s=u.push("translate(",null,n,null,e);a.push({i:s-4,x:Sr(t,i)},{i:s-2,x:Sr(r,o)})}else(i||o)&&u.push("translate("+i+n+o+e)}function u(t,n,e,o){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:Sr(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}function a(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:Sr(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}function s(t,n,e,r,o,u){if(t!==e||n!==r){var a=o.push(i(o)+"scale(",null,",",null,")");u.push({i:a-4,x:Sr(t,e)},{i:a-2,x:Sr(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}return function(n,e){var r=[],i=[];return n=t(n),e=t(e),o(n.translateX,n.translateY,e.translateX,e.translateY,r,i),u(n.rotate,e.rotate,r,i),a(n.skewX,e.skewX,r,i),s(n.scaleX,n.scaleY,e.scaleX,e.scaleY,r,i),n=e=null,function(t){for(var n,e=-1,o=i.length;++e=0&&(t=t.slice(0,n)),!t||"start"===t})}function dn(t,n,e){var r,i,o=pn(n)?lt:ct;return function(){var u=o(this,t),a=u.on;a!==r&&(i=(r=a).copy()).on(n,e),u.on=i}}function yn(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}function vn(t,n){var e,r,i;return function(){var o=oe(this).getComputedStyle(this,null),u=o.getPropertyValue(t),a=(this.style.removeProperty(t),o.getPropertyValue(t));return u===a?null:u===e&&a===r?i:i=n(e=u,r=a)}}function gn(t){return function(){this.style.removeProperty(t)}}function _n(t,n,e){var r,i;return function(){var o=oe(this).getComputedStyle(this,null).getPropertyValue(t);return o===e?null:o===r?i:i=n(r=o,e)}}function mn(t,n,e){var r,i,o;return function(){var u=oe(this).getComputedStyle(this,null),a=u.getPropertyValue(t),s=e(this);return null==s&&(this.style.removeProperty(t),s=u.getPropertyValue(t)),a===s?null:a===r&&s===i?o:o=n(r=a,i=s)}}function wn(t,n,e){function r(){var r=this,i=n.apply(r,arguments);return i&&function(n){r.style.setProperty(t,i(n),e)}}return r._value=n,r}function bn(t){return function(){this.textContent=t}}function xn(t){return function(){var n=t(this);this.textContent=null==n?"":n}}function Mn(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function Nn(t){return G().transition(t)}function An(){return++ei}function kn(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}function En(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return oi.time=tt(),oi;return e}var Sn="http://www.w3.org/1999/xhtml",Pn={svg:"http://www.w3.org/2000/svg",xhtml:Sn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},qn=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Pn.hasOwnProperty(n)?{space:Pn[n],local:t}:t},Cn=function(t){var r=qn(t);return(r.local?e:n)(r)},In=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var On=document.documentElement;if(!On.matches){var Xn=On.webkitMatchesSelector||On.msMatchesSelector||On.mozMatchesSelector||On.oMatchesSelector;In=function(t){return function(){return Xn.call(this,t)}}}}var Tn=In,Vn={};if(t.event=null,"undefined"!=typeof document){"onmouseenter"in document.documentElement||(Vn={mouseenter:"mouseover",mouseleave:"mouseout"})}var Ln=function(t,n,e){var r,i,s=o(t+""),l=s.length;{if(!(arguments.length<2)){for(c=n?a:u,null==e&&(e=!1),r=0;r=x&&(x=b+1);!(w=_[x])&&++x=0;)(r=i[o])&&(u&&u!==r.nextSibling&&u.parentNode.insertBefore(r,u),u=r);return this},Qn=function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=p);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o1?this.each((null==n?w:"function"==typeof n?x:b)(t,n,null==e?"":e)):oe(r=this.node()).getComputedStyle(r,null).getPropertyValue(t)},ae=function(t,n){return arguments.length>1?this.each((null==n?M:"function"==typeof n?A:N)(t,n)):this.node()[t]};S.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var se=function(t,n){var e=k(t+"");if(arguments.length<2){for(var r=E(this.node()),i=-1,o=e.length;++i0)for(var e,r,i=new Array(e),o=0;oRe&&e.state<$e,e.state=Ye,e.timer.stop(),r&&e.on.call("interrupt",t,t.__data__,e.index,e.group),delete o[i]):u=!1;u&&delete t.__transition}},He=function(t){return this.each(function(){Be(this,t)})},Ue=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t},Fe="\\s*([+-]?\\d+)\\s*",Ge="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Je="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ke=/^#([0-9a-f]{3})$/,Qe=/^#([0-9a-f]{6})$/,We=new RegExp("^rgb\\("+[Fe,Fe,Fe]+"\\)$"),Ze=new RegExp("^rgb\\("+[Je,Je,Je]+"\\)$"),tr=new RegExp("^rgba\\("+[Fe,Fe,Fe,Ge]+"\\)$"),nr=new RegExp("^rgba\\("+[Je,Je,Je,Ge]+"\\)$"),er=new RegExp("^hsl\\("+[Ge,Je,Je]+"\\)$"),rr=new RegExp("^hsla\\("+[Ge,Je,Je,Ge]+"\\)$"),ir={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};Ue(dt,yt,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Ue(wt,mt,pt(dt,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new wt(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new wt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),Ue(Nt,Mt,pt(dt,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Nt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Nt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new wt(At(t>=240?t-240:t+120,i,r),At(t,i,r),At(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var or=Math.PI/180,ur=180/Math.PI,ar=.95047,sr=1,lr=1.08883,cr=4/29,hr=6/29,fr=3*hr*hr,pr=hr*hr*hr;Ue(St,Et,pt(dt,{brighter:function(t){return new St(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new St(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return t=sr*qt(t),n=ar*qt(n),e=lr*qt(e),new wt(Ct(3.2404542*n-1.5371385*t-.4985314*e),Ct(-.969266*n+1.8760108*t+.041556*e),Ct(.0556434*n-.2040259*t+1.0572252*e),this.opacity)}})),Ue(Tt,Xt,pt(dt,{brighter:function(t){return new Tt(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Tt(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return kt(this).rgb()}}));var dr=-.14861,yr=1.78277,vr=-.29227,gr=-.90649,_r=1.97294,mr=_r*gr,wr=_r*yr,br=yr*vr-gr*dr;Ue(Rt,Lt,pt(dt,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Rt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Rt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*or,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new wt(255*(n+e*(dr*r+yr*i)),255*(n+e*(vr*r+gr*i)),255*(n+e*(_r*r)),this.opacity)}}));var xr,Mr,Nr,Ar,kr=function(t){return function(){return t}},Er=function t(n){function e(t,n){var e=r((t=mt(t)).r,(n=mt(n)).r),i=r(t.g,n.g),o=r(t.b,n.b),u=zt(t.opacity,n.opacity);return function(n){return t.r=e(n),t.g=i(n),t.b=o(n),t.opacity=u(n),t+""}}var r=Yt(n);return e.gamma=t,e}(1),Sr=function(t,n){return t=+t,n-=t,function(e){return t+n*e}},Pr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,qr=new RegExp(Pr.source,"g"),Cr=function(t,n){var e,r,i,o=Pr.lastIndex=qr.lastIndex=0,u=-1,a=[],s=[];for(t+="", n+="";(e=Pr.exec(t))&&(r=qr.exec(n));)(i=r.index)>o&&(i=n.slice(o,i),a[u]?a[u]+=i:a[++u]=i),(e=e[0])===(r=r[0])?a[u]?a[u]+=r:a[++u]=r:(a[++u]=null,s.push({i:u,x:Sr(e,r)})),o=qr.lastIndex;return o