Spaces:
Running
Running
var t={value:()=>{}};function i(){for(var t,i=0,s=arguments.length,e={};i<s;++i){if(!(t=arguments[i]+"")||t in e||/[\s.]/.test(t))throw new Error("illegal type: "+t);e[t]=[]}return new n(e)}function n(t){this._=t}function s(t,i){for(var n,s=0,e=t.length;s<e;++s)if((n=t[s]).name===i)return n.value}function e(i,n,s){for(var e=0,h=i.length;e<h;++e)if(i[e].name===n){i[e]=t,i=i.slice(0,e).concat(i.slice(e+1));break}return null!=s&&i.push({name:n,value:s}),i}function h(t,i,n){t.prototype=i.prototype=n,n.constructor=t}function o(t,i){var n=Object.create(t.prototype);for(var s in i)n[s]=i[s];return n}function a(){}n.prototype=i.prototype={constructor:n,on:function(t,i){var n,h,o=this._,a=(h=o,(t+"").trim().split(/^|\s+/).map((function(t){var i="",n=t.indexOf(".");if(n>=0&&(i=t.slice(n+1),t=t.slice(0,n)),t&&!h.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:i}}))),_=-1,r=a.length;if(!(arguments.length<2)){if(null!=i&&"function"!=typeof i)throw new Error("invalid callback: "+i);for(;++_<r;)if(n=(t=a[_]).type)o[n]=e(o[n],t.name,i);else if(null==i)for(n in o)o[n]=e(o[n],t.name,null);return this}for(;++_<r;)if((n=(t=a[_]).type)&&(n=s(o[n],t.name)))return n},copy:function(){var t={},i=this._;for(var s in i)t[s]=i[s].slice();return new n(t)},call:function(t,i){if((n=arguments.length-2)>0)for(var n,s,e=new Array(n),h=0;h<n;++h)e[h]=arguments[h+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(h=0,n=(s=this._[t]).length;h<n;++h)s[h].value.apply(i,e)},apply:function(t,i,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var s=this._[t],e=0,h=s.length;e<h;++e)s[e].value.apply(i,n)}};var _=.7,r=1/_,l="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",f=/^#([0-9a-f]{3,8})$/,p=new RegExp(`^rgb\\(${l},${l},${l}\\)$`),x=new RegExp(`^rgb\\(${u},${u},${u}\\)$`),y=new RegExp(`^rgba\\(${l},${l},${l},${c}\\)$`),d=new RegExp(`^rgba\\(${u},${u},${u},${c}\\)$`),w=new RegExp(`^hsl\\(${c},${u},${u}\\)$`),g=new RegExp(`^hsla\\(${c},${u},${u},${c}\\)$`),b={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};function v(){return this.rgb().formatHex()}function m(){return this.rgb().formatRgb()}function $(t){var i,n;return t=(t+"").trim().toLowerCase(),(i=f.exec(t))?(n=i[1].length,i=parseInt(i[1],16),6===n?k(i):3===n?new E(i>>8&15|i>>4&240,i>>4&15|240&i,(15&i)<<4|15&i,1):8===n?N(i>>24&255,i>>16&255,i>>8&255,(255&i)/255):4===n?N(i>>12&15|i>>8&240,i>>8&15|i>>4&240,i>>4&15|240&i,((15&i)<<4|15&i)/255):null):(i=p.exec(t))?new E(i[1],i[2],i[3],1):(i=x.exec(t))?new E(255*i[1]/100,255*i[2]/100,255*i[3]/100,1):(i=y.exec(t))?N(i[1],i[2],i[3],i[4]):(i=d.exec(t))?N(255*i[1]/100,255*i[2]/100,255*i[3]/100,i[4]):(i=w.exec(t))?C(i[1],i[2]/100,i[3]/100,1):(i=g.exec(t))?C(i[1],i[2]/100,i[3]/100,i[4]):b.hasOwnProperty(t)?k(b[t]):"transparent"===t?new E(NaN,NaN,NaN,0):null}function k(t){return new E(t>>16&255,t>>8&255,255&t,1)}function N(t,i,n,s){return s<=0&&(t=i=n=NaN),new E(t,i,n,s)}function M(t){return t instanceof a||(t=$(t)),t?new E((t=t.rgb()).r,t.g,t.b,t.opacity):new E}function T(t,i,n,s){return 1===arguments.length?M(t):new E(t,i,n,null==s?1:s)}function E(t,i,n,s){this.r=+t,this.g=+i,this.b=+n,this.opacity=+s}function S(){return`#${X(this.r)}${X(this.g)}${X(this.b)}`}function P(){const t=q(this.opacity);return`${1===t?"rgb(":"rgba("}${A(this.r)}, ${A(this.g)}, ${A(this.b)}${1===t?")":`, ${t})`}`}function q(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function A(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function X(t){return((t=A(t))<16?"0":"")+t.toString(16)}function C(t,i,n,s){return s<=0?t=i=n=NaN:n<=0||n>=1?t=i=NaN:i<=0&&(t=NaN),new O(t,i,n,s)}function R(t){if(t instanceof O)return new O(t.h,t.s,t.l,t.opacity);if(t instanceof a||(t=$(t)),!t)return new O;if(t instanceof O)return t;var i=(t=t.rgb()).r/255,n=t.g/255,s=t.b/255,e=Math.min(i,n,s),h=Math.max(i,n,s),o=NaN,_=h-e,r=(h+e)/2;return _?(o=i===h?(n-s)/_+6*(n<s):n===h?(s-i)/_+2:(i-n)/_+4,_/=r<.5?h+e:2-h-e,o*=60):_=r>0&&r<1?0:o,new O(o,_,r,t.opacity)}function I(t,i,n,s){return 1===arguments.length?R(t):new O(t,i,n,null==s?1:s)}function O(t,i,n,s){this.h=+t,this.s=+i,this.l=+n,this.opacity=+s}function j(t){return(t=(t||0)%360)<0?t+360:t}function z(t){return Math.max(0,Math.min(1,t||0))}function H(t,i,n){return 255*(t<60?i+(n-i)*t/60:t<180?n:t<240?i+(n-i)*(240-t)/60:i)}function Y(t,i,n,s,e){var h=t*t,o=h*t;return((1-3*t+3*h-o)*i+(4-6*h+3*o)*n+(1+3*t+3*h-3*o)*s+o*e)/6}function L(t){var i=t.length-1;return function(n){var s=n<=0?n=0:n>=1?(n=1,i-1):Math.floor(n*i),e=t[s],h=t[s+1],o=s>0?t[s-1]:2*e-h,a=s<i-1?t[s+2]:2*h-e;return Y((n-s/i)*i,o,e,h,a)}}function D(t){var i=t.length;return function(n){var s=Math.floor(((n%=1)<0?++n:n)*i),e=t[(s+i-1)%i],h=t[s%i],o=t[(s+1)%i],a=t[(s+2)%i];return Y((n-s/i)*i,e,h,o,a)}}h(a,$,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:v,formatHex:v,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return R(this).formatHsl()},formatRgb:m,toString:m}),h(E,T,o(a,{brighter(t){return t=null==t?r:Math.pow(r,t),new E(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?_:Math.pow(_,t),new E(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new E(A(this.r),A(this.g),A(this.b),q(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:S,formatHex:S,formatHex8:function(){return`#${X(this.r)}${X(this.g)}${X(this.b)}${X(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:P,toString:P})),h(O,I,o(a,{brighter(t){return t=null==t?r:Math.pow(r,t),new O(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?_:Math.pow(_,t),new O(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),i=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,s=n+(n<.5?n:1-n)*i,e=2*n-s;return new E(H(t>=240?t-240:t+120,e,s),H(t,e,s),H(t<120?t+240:t-120,e,s),this.opacity)},clamp(){return new O(j(this.h),z(this.s),z(this.l),q(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=q(this.opacity);return`${1===t?"hsl(":"hsla("}${j(this.h)}, ${100*z(this.s)}%, ${100*z(this.l)}%${1===t?")":`, ${t})`}`}}));const F=t=>()=>t;function Z(t,i){return function(n){return t+n*i}}function K(t,i){var n=i-t;return n?Z(t,n>180||n<-180?n-360*Math.round(n/360):n):F(isNaN(t)?i:t)}function Q(t){return 1==(t=+t)?V:function(i,n){return n-i?function(t,i,n){return t=Math.pow(t,n),i=Math.pow(i,n)-t,n=1/n,function(s){return Math.pow(t+s*i,n)}}(i,n,t):F(isNaN(i)?n:i)}}function V(t,i){var n=i-t;return n?Z(t,n):F(isNaN(t)?i:t)}const W=function t(i){var n=Q(i);function s(t,i){var s=n((t=T(t)).r,(i=T(i)).r),e=n(t.g,i.g),h=n(t.b,i.b),o=V(t.opacity,i.opacity);return function(i){return t.r=s(i),t.g=e(i),t.b=h(i),t.opacity=o(i),t+""}}return s.gamma=t,s}(1);function B(t){return function(i){var n,s,e=i.length,h=new Array(e),o=new Array(e),a=new Array(e);for(n=0;n<e;++n)s=T(i[n]),h[n]=s.r||0,o[n]=s.g||0,a[n]=s.b||0;return h=t(h),o=t(o),a=t(a),s.opacity=1,function(t){return s.r=h(t),s.g=o(t),s.b=a(t),s+""}}}var G=B(L),J=B(D);function U(t,i){return t=+t,i=+i,function(n){return t*(1-n)+i*n}}var tt=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,it=new RegExp(tt.source,"g");function nt(t,i){var n,s,e,h=tt.lastIndex=it.lastIndex=0,o=-1,a=[],_=[];for(t+="",i+="";(n=tt.exec(t))&&(s=it.exec(i));)(e=s.index)>h&&(e=i.slice(h,e),a[o]?a[o]+=e:a[++o]=e),(n=n[0])===(s=s[0])?a[o]?a[o]+=s:a[++o]=s:(a[++o]=null,_.push({i:o,x:U(n,s)})),h=it.lastIndex;return h<i.length&&(e=i.slice(h),a[o]?a[o]+=e:a[++o]=e),a.length<2?_[0]?function(t){return function(i){return t(i)+""}}(_[0].x):function(t){return function(){return t}}(i):(i=_.length,function(t){for(var n,s=0;s<i;++s)a[(n=_[s]).i]=n.x(t);return a.join("")})}var st,et=180/Math.PI,ht={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ot(t,i,n,s,e,h){var o,a,_;return(o=Math.sqrt(t*t+i*i))&&(t/=o,i/=o),(_=t*n+i*s)&&(n-=t*_,s-=i*_),(a=Math.sqrt(n*n+s*s))&&(n/=a,s/=a,_/=a),t*s<i*n&&(t=-t,i=-i,_=-_,o=-o),{translateX:e,translateY:h,rotate:Math.atan2(i,t)*et,skewX:Math.atan(_)*et,scaleX:o,scaleY:a}}function at(t,i,n,s){function e(t){return t.length?t.pop()+" ":""}return function(h,o){var a=[],_=[];return h=t(h),o=t(o),function(t,s,e,h,o,a){if(t!==e||s!==h){var _=o.push("translate(",null,i,null,n);a.push({i:_-4,x:U(t,e)},{i:_-2,x:U(s,h)})}else(e||h)&&o.push("translate("+e+i+h+n)}(h.translateX,h.translateY,o.translateX,o.translateY,a,_),function(t,i,n,h){t!==i?(t-i>180?i+=360:i-t>180&&(t+=360),h.push({i:n.push(e(n)+"rotate(",null,s)-2,x:U(t,i)})):i&&n.push(e(n)+"rotate("+i+s)}(h.rotate,o.rotate,a,_),function(t,i,n,h){t!==i?h.push({i:n.push(e(n)+"skewX(",null,s)-2,x:U(t,i)}):i&&n.push(e(n)+"skewX("+i+s)}(h.skewX,o.skewX,a,_),function(t,i,n,s,h,o){if(t!==n||i!==s){var a=h.push(e(h)+"scale(",null,",",null,")");o.push({i:a-4,x:U(t,n)},{i:a-2,x:U(i,s)})}else 1===n&&1===s||h.push(e(h)+"scale("+n+","+s+")")}(h.scaleX,h.scaleY,o.scaleX,o.scaleY,a,_),h=o=null,function(t){for(var i,n=-1,s=_.length;++n<s;)a[(i=_[n]).i]=i.x(t);return a.join("")}}}var _t,rt,lt=at((function(t){const i=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return i.isIdentity?ht:ot(i.a,i.b,i.c,i.d,i.e,i.f)}),"px, ","px)","deg)"),ct=at((function(t){return null==t?ht:(st||(st=document.createElementNS("http://www.w3.org/2000/svg","g")),st.setAttribute("transform",t),(t=st.transform.baseVal.consolidate())?ot((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):ht)}),", ",")",")"),ut=0,ft=0,pt=0,xt=0,yt=0,dt=0,wt="object"==typeof performance&&performance.now?performance:Date,gt="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function bt(){return yt||(gt(vt),yt=wt.now()+dt)}function vt(){yt=0}function mt(){this._call=this._time=this._next=null}function $t(t,i,n){var s=new mt;return s.restart(t,i,n),s}function kt(){yt=(xt=wt.now())+dt,ut=ft=0;try{!function(){bt(),++ut;for(var t,i=_t;i;)(t=yt-i._time)>=0&&i._call.call(void 0,t),i=i._next;--ut}()}finally{ut=0,function(){var t,i,n=_t,s=1/0;for(;n;)n._call?(s>n._time&&(s=n._time),t=n,n=n._next):(i=n._next,n._next=null,n=t?t._next=i:_t=i);rt=t,Mt(s)}(),yt=0}}function Nt(){var t=wt.now(),i=t-xt;i>1e3&&(dt-=i,xt=t)}function Mt(t){ut||(ft&&(ft=clearTimeout(ft)),t-yt>24?(t<1/0&&(ft=setTimeout(kt,t-wt.now()-dt)),pt&&(pt=clearInterval(pt))):(pt||(xt=wt.now(),pt=setInterval(Nt,1e3)),ut=1,gt(kt)))}function Tt(t){return function(){return t}}mt.prototype=$t.prototype={constructor:mt,restart:function(t,i,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?bt():+n)+(null==i?0:+i),this._next||rt===this||(rt?rt._next=this:_t=this,rt=this),this._call=t,this._time=n,Mt()},stop:function(){this._call&&(this._call=null,this._time=1/0,Mt())}};const Et=Math.abs,St=Math.atan2,Pt=Math.cos,qt=Math.max,At=Math.min,Xt=Math.sin,Ct=Math.sqrt,Rt=1e-12,It=Math.PI,Ot=It/2,jt=2*It;function zt(t){return t>1?0:t<-1?It:Math.acos(t)}function Ht(t){return t>=1?Ot:t<=-1?-Ot:Math.asin(t)}const Yt=Math.PI,Lt=2*Yt,Dt=1e-6,Ft=Lt-Dt;function Zt(t){this._+=t[0];for(let i=1,n=t.length;i<n;++i)this._+=arguments[i]+t[i]}class Kt{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Zt:function(t){let i=Math.floor(t);if(!(i>=0))throw new Error(`invalid digits: ${t}`);if(i>15)return Zt;const n=10**i;return function(t){this._+=t[0];for(let i=1,s=t.length;i<s;++i)this._+=Math.round(arguments[i]*n)/n+t[i]}}(t)}moveTo(t,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+i}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,i){this._append`L${this._x1=+t},${this._y1=+i}`}quadraticCurveTo(t,i,n,s){this._append`Q${+t},${+i},${this._x1=+n},${this._y1=+s}`}bezierCurveTo(t,i,n,s,e,h){this._append`C${+t},${+i},${+n},${+s},${this._x1=+e},${this._y1=+h}`}arcTo(t,i,n,s,e){if(t=+t,i=+i,n=+n,s=+s,(e=+e)<0)throw new Error(`negative radius: ${e}`);let h=this._x1,o=this._y1,a=n-t,_=s-i,r=h-t,l=o-i,c=r*r+l*l;if(null===this._x1)this._append`M${this._x1=t},${this._y1=i}`;else if(c>Dt)if(Math.abs(l*a-_*r)>Dt&&e){let u=n-h,f=s-o,p=a*a+_*_,x=u*u+f*f,y=Math.sqrt(p),d=Math.sqrt(c),w=e*Math.tan((Yt-Math.acos((p+c-x)/(2*y*d)))/2),g=w/d,b=w/y;Math.abs(g-1)>Dt&&this._append`L${t+g*r},${i+g*l}`,this._append`A${e},${e},0,0,${+(l*u>r*f)},${this._x1=t+b*a},${this._y1=i+b*_}`}else this._append`L${this._x1=t},${this._y1=i}`;else;}arc(t,i,n,s,e,h){if(t=+t,i=+i,h=!!h,(n=+n)<0)throw new Error(`negative radius: ${n}`);let o=n*Math.cos(s),a=n*Math.sin(s),_=t+o,r=i+a,l=1^h,c=h?s-e:e-s;null===this._x1?this._append`M${_},${r}`:(Math.abs(this._x1-_)>Dt||Math.abs(this._y1-r)>Dt)&&this._append`L${_},${r}`,n&&(c<0&&(c=c%Lt+Lt),c>Ft?this._append`A${n},${n},0,1,${l},${t-o},${i-a}A${n},${n},0,1,${l},${this._x1=_},${this._y1=r}`:c>Dt&&this._append`A${n},${n},0,${+(c>=Yt)},${l},${this._x1=t+n*Math.cos(e)},${this._y1=i+n*Math.sin(e)}`)}rect(t,i,n,s){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+i}h${n=+n}v${+s}h${-n}Z`}toString(){return this._}}function Qt(){return new Kt}function Vt(t){let i=3;return t.digits=function(n){if(!arguments.length)return i;if(null==n)i=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);i=t}return t},()=>new Kt(i)}function Wt(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Bt(t){this._context=t}function Gt(t){return new Bt(t)}function Jt(t){return t[0]}function Ut(t){return t[1]}function ti(t,i){var n=Tt(!0),s=null,e=Gt,h=null,o=Vt(a);function a(a){var _,r,l,c=(a=Wt(a)).length,u=!1;for(null==s&&(h=e(l=o())),_=0;_<=c;++_)!(_<c&&n(r=a[_],_,a))===u&&((u=!u)?h.lineStart():h.lineEnd()),u&&h.point(+t(r,_,a),+i(r,_,a));if(l)return h=null,l+""||null}return t="function"==typeof t?t:void 0===t?Jt:Tt(t),i="function"==typeof i?i:void 0===i?Ut:Tt(i),a.x=function(i){return arguments.length?(t="function"==typeof i?i:Tt(+i),a):t},a.y=function(t){return arguments.length?(i="function"==typeof t?t:Tt(+t),a):i},a.defined=function(t){return arguments.length?(n="function"==typeof t?t:Tt(!!t),a):n},a.curve=function(t){return arguments.length?(e=t,null!=s&&(h=e(s)),a):e},a.context=function(t){return arguments.length?(null==t?s=h=null:h=e(s=t),a):s},a}function ii(){}function ni(t,i,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+i)/6,(t._y0+4*t._y1+n)/6)}function si(t){this._context=t}function ei(t){return new si(t)}function hi(t){this._context=t}function oi(t){return new hi(t)}function ai(t){this._context=t}function _i(t){return new ai(t)}function ri(t,i){this._basis=new si(t),this._beta=i}Qt.prototype=Kt.prototype,Bt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;default:this._context.lineTo(t,i)}}},si.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ni(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ni(this,t,i)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}},hi.prototype={areaStart:ii,areaEnd:ii,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._x2=t,this._y2=i;break;case 1:this._point=2,this._x3=t,this._y3=i;break;case 2:this._point=3,this._x4=t,this._y4=i,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+i)/6);break;default:ni(this,t,i)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}},ai.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,s=(this._y0+4*this._y1+i)/6;this._line?this._context.lineTo(n,s):this._context.moveTo(n,s);break;case 3:this._point=4;default:ni(this,t,i)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}},ri.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,i=this._y,n=t.length-1;if(n>0)for(var s,e=t[0],h=i[0],o=t[n]-e,a=i[n]-h,_=-1;++_<=n;)s=_/n,this._basis.point(this._beta*t[_]+(1-this._beta)*(e+s*o),this._beta*i[_]+(1-this._beta)*(h+s*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,i){this._x.push(+t),this._y.push(+i)}};const li=function t(i){function n(t){return 1===i?new si(t):new ri(t,i)}return n.beta=function(i){return t(+i)},n}(.85);function ci(t,i,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-i),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function ui(t,i){this._context=t,this._k=(1-i)/6}ui.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ci(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2,this._x1=t,this._y1=i;break;case 2:this._point=3;default:ci(this,t,i)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const fi=function t(i){function n(t){return new ui(t,i)}return n.tension=function(i){return t(+i)},n}(0);function pi(t,i){this._context=t,this._k=(1-i)/6}pi.prototype={areaStart:ii,areaEnd:ii,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._x3=t,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=i);break;case 2:this._point=3,this._x5=t,this._y5=i;break;default:ci(this,t,i)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const xi=function t(i){function n(t){return new pi(t,i)}return n.tension=function(i){return t(+i)},n}(0);function yi(t,i){this._context=t,this._k=(1-i)/6}yi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ci(this,t,i)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const di=function t(i){function n(t){return new yi(t,i)}return n.tension=function(i){return t(+i)},n}(0);function wi(t,i,n){var s=t._x1,e=t._y1,h=t._x2,o=t._y2;if(t._l01_a>Rt){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,_=3*t._l01_a*(t._l01_a+t._l12_a);s=(s*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/_,e=(e*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/_}if(t._l23_a>Rt){var r=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);h=(h*r+t._x1*t._l23_2a-i*t._l12_2a)/l,o=(o*r+t._y1*t._l23_2a-n*t._l12_2a)/l}t._context.bezierCurveTo(s,e,h,o,t._x2,t._y2)}function gi(t,i){this._context=t,this._alpha=i}gi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){if(t=+t,i=+i,this._point){var n=this._x2-t,s=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+s*s,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;break;case 2:this._point=3;default:wi(this,t,i)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const bi=function t(i){function n(t){return i?new gi(t,i):new ui(t,0)}return n.alpha=function(i){return t(+i)},n}(.5);function vi(t,i){this._context=t,this._alpha=i}vi.prototype={areaStart:ii,areaEnd:ii,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,i){if(t=+t,i=+i,this._point){var n=this._x2-t,s=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+s*s,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=i);break;case 2:this._point=3,this._x5=t,this._y5=i;break;default:wi(this,t,i)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const mi=function t(i){function n(t){return i?new vi(t,i):new pi(t,0)}return n.alpha=function(i){return t(+i)},n}(.5);function $i(t,i){this._context=t,this._alpha=i}$i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){if(t=+t,i=+i,this._point){var n=this._x2-t,s=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+s*s,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:wi(this,t,i)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const ki=function t(i){function n(t){return i?new $i(t,i):new yi(t,0)}return n.alpha=function(i){return t(+i)},n}(.5);function Ni(t){this._context=t}function Mi(t){return new Ni(t)}function Ti(t){return t<0?-1:1}function Ei(t,i,n){var s=t._x1-t._x0,e=i-t._x1,h=(t._y1-t._y0)/(s||e<0&&-0),o=(n-t._y1)/(e||s<0&&-0),a=(h*e+o*s)/(s+e);return(Ti(h)+Ti(o))*Math.min(Math.abs(h),Math.abs(o),.5*Math.abs(a))||0}function Si(t,i){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-i)/2:i}function Pi(t,i,n){var s=t._x0,e=t._y0,h=t._x1,o=t._y1,a=(h-s)/3;t._context.bezierCurveTo(s+a,e+a*i,h-a,o-a*n,h,o)}function qi(t){this._context=t}function Ai(t){this._context=new Xi(t)}function Xi(t){this._context=t}function Ci(t){return new qi(t)}function Ri(t){return new Ai(t)}function Ii(t){this._context=t}function Oi(t){var i,n,s=t.length-1,e=new Array(s),h=new Array(s),o=new Array(s);for(e[0]=0,h[0]=2,o[0]=t[0]+2*t[1],i=1;i<s-1;++i)e[i]=1,h[i]=4,o[i]=4*t[i]+2*t[i+1];for(e[s-1]=2,h[s-1]=7,o[s-1]=8*t[s-1]+t[s],i=1;i<s;++i)n=e[i]/h[i-1],h[i]-=n,o[i]-=n*o[i-1];for(e[s-1]=o[s-1]/h[s-1],i=s-2;i>=0;--i)e[i]=(o[i]-e[i+1])/h[i];for(h[s-1]=(t[s]+e[s-1])/2,i=0;i<s-1;++i)h[i]=2*t[i+1]-e[i+1];return[e,h]}function ji(t){return new Ii(t)}function zi(t,i){this._context=t,this._t=i}function Hi(t){return new zi(t,.5)}function Yi(t){return new zi(t,0)}function Li(t){return new zi(t,1)}Ni.prototype={areaStart:ii,areaEnd:ii,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,i){t=+t,i=+i,this._point?this._context.lineTo(t,i):(this._point=1,this._context.moveTo(t,i))}},qi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Pi(this,this._t0,Si(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){var n=NaN;if(i=+i,(t=+t)!==this._x1||i!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;break;case 2:this._point=3,Pi(this,Si(this,n=Ei(this,t,i)),n);break;default:Pi(this,this._t0,n=Ei(this,t,i))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i,this._t0=n}}},(Ai.prototype=Object.create(qi.prototype)).point=function(t,i){qi.prototype.point.call(this,i,t)},Xi.prototype={moveTo:function(t,i){this._context.moveTo(i,t)},closePath:function(){this._context.closePath()},lineTo:function(t,i){this._context.lineTo(i,t)},bezierCurveTo:function(t,i,n,s,e,h){this._context.bezierCurveTo(i,t,s,n,h,e)}},Ii.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,i=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],i[0]):this._context.moveTo(t[0],i[0]),2===n)this._context.lineTo(t[1],i[1]);else for(var s=Oi(t),e=Oi(i),h=0,o=1;o<n;++h,++o)this._context.bezierCurveTo(s[0][h],e[0][h],s[1][h],e[1][h],t[o],i[o]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,i){this._x.push(+t),this._y.push(+i)}},zi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,i),this._context.lineTo(t,i);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,i)}}this._x=t,this._y=i}};export{_ as $,nt as A,$ as B,a as C,Yi as D,Li as E,Hi as F,ji as G,Ri as H,Ci as I,Mi as J,Gt as K,bi as L,ki as M,mi as N,fi as O,di as P,xi as Q,E as R,li as S,_i as T,oi as U,mt as V,$t as W,i as X,ct as Y,lt as Z,bt as _,Et as a,r as a0,I as a1,L as a2,D as a3,G as a4,J as a5,Jt as a6,Ut as a7,Qt as a8,T as a9,Tt as b,Pt as c,Ct as d,Rt as e,St as f,Ht as g,Ot as h,zt as i,qt as j,ei as k,ti as l,At as m,Wt as n,h as o,It as p,o as q,M as r,Xt as s,jt as t,V as u,K as v,Vt as w,F as x,U as y,W as z}; | |