PageSourceSearch

https://seriesaddict.fr/assets/data-JXOL836a.js

js seriesaddict.fr collected 2026-10-02 06:31:56 UTC 282,671 bytes, 11 lines download raw bytes

vendor: 5,194 bytes, line 1
1import{a7 as t,$ as e}from"./index-CBidmUkf.js";const n=new Date,i=new Date;function r(t,e,a,o){function s(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return s.floor=e=>(t(e=new Date(+e)),e),s.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),s.round=t=>{const e=s(t),n=s.ceil(t);return t-e<n-t?e:n},s.offset=(t,n)=>(e(t=new Date(+t),null==n?1:Math.floor(n)),t),s.range=(n,i,r)=>{const a=[];if(n=s.ceil(n),r=null==r?1:Math.floor(r),!(n<i&&r>0))return a;let o;do{a.push(o=new Date(+n)),e(n,r),t(n)}while(o<n&&n<i);return a},s.filter=n=>r(e=>{if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},(t,i)=>{if(t>=t)if(i<0)for(;++i<=0;)for(;e(t,-1),!n(t););else for(;--i>=0;)for(;e(t,1),!n(t););}),a&&(s.count=(e,r)=>(n.setTime(+e),i.setTime(+r),t(n),t(i),Math.floor(a(n,i))),s.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?s.filter(o?e=>o(e)%t===0:e=>s.count(0,e)%t===0):s:null)),s}const a=r(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);a.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?r(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):a:null),a.range;const o=1e3,s=6e4,c=36e5,l=864e5,u=6048e5,h=2592e6,d=31536e6,f=r(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*o)},(t,e)=>(e-t)/o,t=>t.getUTCSeconds());f.range;const g=r(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*o)},(t,e)=>{t.setTime(+t+e*s)},(t,e)=>(e-t)/s,t=>t.getMinutes());g.range;const p=r(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*s)},(t,e)=>(e-t)/s,t=>t.getUTCMinutes());p.range;const _=r(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*o-t.getMinutes()*s)},(t,e)=>{t.setTime(+t+e*c)},(t,e)=>(e-t)/c,t=>t.getHours());_.range;const v=r(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*c)},(t,e)=>(e-t)/c,t=>t.getUTCHours());v.range;const x=r(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*s)/l,t=>t.getDate()-1);x.range;const y=r(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/l,t=>t.getUTCDate()-1);y.range;const m=r(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/l,t=>Math.floor(t/l));function b(t){return r(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*s)/u)}m.range;const T=b(0),w=b(1),k=b(2),A=b(3),S=b(4),C=b(5),E=b(6);function M(t){return r(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/u)}T.range,w.range,k.range,A.range,S.range,C.range,E.range;const L=M(0),R=M(1),D=M(2),I=M(3),$=M(4),P=M(5),O=M(6);L.range,R.range,D.range,I.range,$.range,P.range,O.range;const X=r(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear()),t=>t.getMonth());X.range;const N=r(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear()),t=>t.getUTCMonth());N.range;const F=r(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());F.every=t=>isFinite(t=Math.floor(t))&&t>0?r(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)}):null,F.range;const z=r(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());function B(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Y(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function U(t){let e,n,i;function r(t,i,r=0,a=t.length){if(r<a){if(0!==e(i,i))return a;do{const e=r+a>>>1;n(t[e],i)<0?r=e+1:a=e}while(r<a)}return r}return 2!==t.length?(e=B,n=(e,n)=>B(t(e),n),i=(e,n)=>t(e)-n):(e=t===B||t===Y?t:V,n=t,i=t),{left:r,center:function(t,e,n=0,a=t.length){const o=r(t,e,n,a-1);return o>n&&i(t[o-1],e)>-i(t[o],e)?o-1:o},right:function(t,i,r=0,a=t.length){if(r<a){if(0!==e(i,i))return a;do{const e=r+a>>>1;n(t[e],i)<=0?r=e+1:a=e}while(r<a)}return r}}}function V(){return 0}z.every=t=>isFinite(t=Math.floor(t))&&t>0?r(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null,z.range;const H=U(B).right;U(function(t){return null===t?NaN:+t}).center;class j extends Map{constructor(t,e=W){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(G(this,t))}has(t){return super.has(G(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):(t.set(i,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){const i=e(n);t.has(i)&&(n=t.get(i),t.delete(i));return n}(this,t))}}function G({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):n}function W(t){return null!==t&&"object"==typeof t?t.valueOf():t}const q=Math.sqrt(50),Z=Math.sqrt(10),K=Math.sqrt(2);
vendor: 11,368 bytes, line 1
1function J(t,e,n){const i=(e-t)/Math.max(0,n),r=Math.floor(Math.log10(i)),a=i/Math.pow(10,r),o=a>=q?10:a>=Z?5:a>=K?2:1;let s,c,l;return r<0?(l=Math.pow(10,-r)/o,s=Math.round(t*l),c=Math.round(e*l),s/l<t&&++s,c/l>e&&--c,l=-l):(l=Math.pow(10,r)*o,s=Math.round(t/l),c=Math.round(e/l),s*l<t&&++s,c*l>e&&--c),c<s&&.5<=n&&n<2?J(t,e,2*n):[s,c,l]}function Q(t,e,n){if(!((n=+n)>0))return[];if((t=+t)===(e=+e))return[t];const i=e<t,[r,a,o]=i?J(e,t,n):J(t,e,n);if(!(a>=r))return[];const s=a-r+1,c=new Array(s);if(i)if(o<0)for(let l=0;l<s;++l)c[l]=(a-l)/-o;else for(let l=0;l<s;++l)c[l]=(a-l)*o;else if(o<0)for(let l=0;l<s;++l)c[l]=(r+l)/-o;else for(let l=0;l<s;++l)c[l]=(r+l)*o;return c}function tt(t,e,n){return J(t=+t,e=+e,n=+n)[2]}function et(t,e,n){n=+n;const i=(e=+e)<(t=+t),r=i?tt(e,t,n):tt(t,e,n);return(i?-1:1)*(r<0?1/-r:r)}function nt(t,e,n,i,r,g){const p=[[f,1,o],[f,5,5e3],[f,15,15e3],[f,30,3e4],[g,1,s],[g,5,3e5],[g,15,9e5],[g,30,18e5],[r,1,c],[r,3,108e5],[r,6,216e5],[r,12,432e5],[i,1,l],[i,2,1728e5],[n,1,u],[e,1,h],[e,3,7776e6],[t,1,d]];function _(e,n,i){const r=Math.abs(n-e)/i,o=U(([,,t])=>t).right(p,r);if(o===p.length)return t.every(et(e/d,n/d,i));if(0===o)return a.every(Math.max(et(e,n,i),1));const[s,c]=p[r/p[o-1][2]<p[o][2]/r?o-1:o];return s.every(c)}return[function(t,e,n){const i=e<t;i&&([t,e]=[e,t]);const r=n&&"function"==typeof n.range?n:_(t,e,n),a=r?r.range(t,+e+1):[];return i?a.reverse():a},_]}const[it,rt]=nt(z,N,L,m,v,p),[at,ot]=nt(F,X,T,x,_,g);function st(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function ct(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function lt(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var ut,ht,dt,ft,gt,pt={"-":"",_:" ",0:"0"},_t=/^\s*\d+/,vt=/^%/,xt=/[\\^$*+?|[\]().{}]/g;function yt(t,e,n){var i=t<0?"-":"",r=(i?-t:t)+"",a=r.length;return i+(a<n?new Array(n-a+1).join(e)+r:r)}function mt(t){return t.replace(xt,"\\$&")}function bt(t){return new RegExp("^(?:"+t.map(mt).join("|")+")","i")}function Tt(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function wt(t,e,n){var i=_t.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function kt(t,e,n){var i=_t.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function At(t,e,n){var i=_t.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function St(t,e,n){var i=_t.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function Ct(t,e,n){var i=_t.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function Et(t,e,n){var i=_t.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function Mt(t,e,n){var i=_t.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function Lt(t,e,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function Rt(t,e,n){var i=_t.exec(e.slice(n,n+1));return i?(t.q=3*i[0]-3,n+i[0].length):-1}function Dt(t,e,n){var i=_t.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function It(t,e,n){var i=_t.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function $t(t,e,n){var i=_t.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function Pt(t,e,n){var i=_t.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function Ot(t,e,n){var i=_t.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function Xt(t,e,n){var i=_t.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function Nt(t,e,n){var i=_t.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function Ft(t,e,n){var i=_t.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function zt(t,e,n){var i=vt.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function Bt(t,e,n){var i=_t.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function Yt(t,e,n){var i=_t.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function Ut(t,e){return yt(t.getDate(),e,2)}function Vt(t,e){return yt(t.getHours(),e,2)}function Ht(t,e){return yt(t.getHours()%12||12,e,2)}function jt(t,e){return yt(1+x.count(F(t),t),e,3)}function Gt(t,e){return yt(t.getMilliseconds(),e,3)}function Wt(t,e){return Gt(t,e)+"000"}function qt(t,e){return yt(t.getMonth()+1,e,2)}function Zt(t,e){return yt(t.getMinutes(),e,2)}function Kt(t,e){return yt(t.getSeconds(),e,2)}function Jt(t){var e=t.getDay();return 0===e?7:e}function Qt(t,e){return yt(T.count(F(t)-1,t),e,2)}function te(t){var e=t.getDay();return e>=4||0===e?S(t):S.ceil(t)}function ee(t,e){return t=te(t),yt(S.count(F(t),t)+(4===F(t).getDay()),e,2)}function ne(t){return t.getDay()}function ie(t,e){return yt(w.count(F(t)-1,t),e,2)}function re(t,e){return yt(t.getFullYear()%100,e,2)}function ae(t,e){return yt((t=te(t)).getFullYear()%100,e,2)}function oe(t,e){return yt(t.getFullYear()%1e4,e,4)}function se(t,e){var n=t.getDay();return yt((t=n>=4||0===n?S(t):S.ceil(t)).getFullYear()%1e4,e,4)}function ce(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+yt(e/60|0,"0",2)+yt(e%60,"0",2)}function le(t,e){return yt(t.getUTCDate(),e,2)}function ue(t,e){return yt(t.getUTCHours(),e,2)}function he(t,e){return yt(t.getUTCHours()%12||12,e,2)}function de(t,e){return yt(1+y.count(z(t),t),e,3)}function fe(t,e){return yt(t.getUTCMilliseconds(),e,3)}function ge(t,e){return fe(t,e)+"000"}function pe(t,e){return yt(t.getUTCMonth()+1,e,2)}function _e(t,e){return yt(t.getUTCMinutes(),e,2)}function ve(t,e){return yt(t.getUTCSeconds(),e,2)}function xe(t){var e=t.getUTCDay();return 0===e?7:e}function ye(t,e){return yt(L.count(z(t)-1,t),e,2)}function me(t){var e=t.getUTCDay();return e>=4||0===e?$(t):$.ceil(t)}function be(t,e){return t=me(t),yt($.count(z(t),t)+(4===z(t).getUTCDay()),e,2)}function Te(t){return t.getUTCDay()}function we(t,e){return yt(R.count(z(t)-1,t),e,2)}function ke(t,e){return yt(t.getUTCFullYear()%100,e,2)}function Ae(t,e){return yt((t=me(t)).getUTCFullYear()%100,e,2)}function Se(t,e){return yt(t.getUTCFullYear()%1e4,e,4)}function Ce(t,e){var n=t.getUTCDay();return yt((t=n>=4||0===n?$(t):$.ceil(t)).getUTCFullYear()%1e4,e,4)}function Ee(){return"+0000"}function Me(){return"%"}function Le(t){return+t}function Re(t){return Math.floor(+t/1e3)}ut=function(t){var e=t.dateTime,n=t.date,i=t.time,r=t.periods,a=t.days,o=t.shortDays,s=t.months,c=t.shortMonths,l=bt(r),u=Tt(r),h=bt(a),d=Tt(a),f=bt(o),g=Tt(o),p=bt(s),_=Tt(s),v=bt(c),m=Tt(c),b={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:Ut,e:Ut,f:Wt,g:ae,G:se,H:Vt,I:Ht,j:jt,L:Gt,m:qt,M:Zt,p:function(t){return r[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Le,s:Re,S:Kt,u:Jt,U:Qt,V:ee,w:ne,W:ie,x:null,X:null,y:re,Y:oe,Z:ce,"%":Me},T={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:le,e:le,f:ge,g:Ae,G:Ce,H:ue,I:he,j:de,L:fe,m:pe,M:_e,p:function(t){return r[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Le,s:Re,S:ve,u:xe,U:ye,V:be,w:Te,W:we,x:null,X:null,y:ke,Y:Se,Z:Ee,"%":Me},k={a:function(t,e,n){var i=f.exec(e.slice(n));return i?(t.w=g.get(i[0].toLowerCase()),n+i[0].length):-1},A:function(t,e,n){var i=h.exec(e.slice(n));return i?(t.w=d.get(i[0].toLowerCase()),n+i[0].length):-1},b:function(t,e,n){var i=v.exec(e.slice(n));return i?(t.m=m.get(i[0].toLowerCase()),n+i[0].length):-1},B:function(t,e,n){var i=p.exec(e.slice(n));return i?(t.m=_.get(i[0].toLowerCase()),n+i[0].length):-1},c:function(t,n,i){return C(t,e,n,i)},d:It,e:It,f:Ft,g:Mt,G:Et,H:Pt,I:Pt,j:$t,L:Nt,m:Dt,M:Ot,p:function(t,e,n){var i=l.exec(e.slice(n));return i?(t.p=u.get(i[0].toLowerCase()),n+i[0].length):-1},q:Rt,Q:Bt,s:Yt,S:Xt,u:kt,U:At,V:St,w:wt,W:Ct,x:function(t,e,i){return C(t,n,e,i)},X:function(t,e,n){return C(t,i,e,n)},y:Mt,Y:Et,Z:Lt,"%":zt};function A(t,e){return function(n){var i,r,a,o=[],s=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++s<l;)37===t.charCodeAt(s)&&(o.push(t.slice(c,s)),null!=(r=pt[i=t.charAt(++s)])?i=t.charAt(++s):r="e"===i?" ":"0",(a=e[i])&&(i=a(n,r)),o.push(i),c=s+1);return o.push(t.slice(c,s)),o.join("")}}function S(t,e){return function(n){var i,r,a=lt(1900,void 0,1);if(C(a,t,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(e&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(r=(i=ct(lt(a.y,0,1))).getUTCDay(),i=r>4||0===r?R.ceil(i):R(i),i=y.offset(i,7*(a.V-1)),a.y=i.getUTCFullYear(),a.m=i.getUTCMonth(),a.d=i.getUTCDate()+(a.w+6)%7):(r=(i=st(lt(a.y,0,1))).getDay(),i=r>4||0===r?w.ceil(i):w(i),i=x.offset(i,7*(a.V-1)),a.y=i.getFullYear(),a.m=i.getMonth(),a.d=i.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),r="Z"in a?ct(lt(a.y,0,1)).getUTCDay():st(lt(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(r+5)%7:a.w+7*a.U-(r+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,ct(a)):st(a)}}function C(t,e,n,i){for(var r,a,o=0,s=e.length,c=n.length;o<s;){if(i>=c)return-1;if(37===(r=e.charCodeAt(o++))){if(r=e.charAt(o++),!(a=k[r in pt?e.charAt(o++):r])||(i=a(t,n,i))<0)return-1}else if(r!=n.charCodeAt(i++))return-1}return i}return b.x=A(n,b),b.X=A(i,b),b.c=A(e,b),T.x=A(n,T),T.X=A(i,T),T.c=A(e,T),{format:function(t){var e=A(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=S(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=A(t+="",T);return e.toString=function(){return t},e},utcParse:function(t){var e=S(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),ht=ut.format,dt=ut.parse,ft=ut.utcFormat,gt=ut.utcParse;var De="http://www.w3.org/1999/xhtml";const Ie={svg:"http://www.w3.org/2000/svg",xhtml:De,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function $e(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Ie.hasOwnProperty(e)?{space:Ie[e],local:t}:t}function Pe(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===De&&e.documentElement.namespaceURI===De?e.createElement(t):e.createElementNS(n,t)}}function Oe(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Xe(t){var e=$e(t);return(e.local?Oe:Pe)(e)}function Ne(){}function Fe(t){return null==t?Ne:function(){return this.querySelector(t)}}function ze(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function Be(){return[]}function Ye(t){return null==t?Be:function(){return this.querySelectorAll(t)}}function Ue(t){return function(){return this.matches(t)}}function Ve(t){return function(e){return e.matches(t)}}
vendor: 9,852 bytes, line 1
1var He=Array.prototype.find;function je(){return this.firstElementChild}var Ge=Array.prototype.filter;function We(){return Array.from(this.children)}function qe(t){return new Array(t.length)}function Ze(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Ke(t,e,n,i,r,a){for(var o,s=0,c=e.length,l=a.length;s<l;++s)(o=e[s])?(o.__data__=a[s],i[s]=o):n[s]=new Ze(t,a[s]);for(;s<c;++s)(o=e[s])&&(r[s]=o)}function Je(t,e,n,i,r,a,o){var s,c,l,u=new Map,h=e.length,d=a.length,f=new Array(h);for(s=0;s<h;++s)(c=e[s])&&(f[s]=l=o.call(c,c.__data__,s,e)+"",u.has(l)?r[s]=c:u.set(l,c));for(s=0;s<d;++s)l=o.call(t,a[s],s,a)+"",(c=u.get(l))?(i[s]=c,c.__data__=a[s],u.delete(l)):n[s]=new Ze(t,a[s]);for(s=0;s<h;++s)(c=e[s])&&u.get(f[s])===c&&(r[s]=c)}function Qe(t){return t.__data__}function tn(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function en(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function nn(t){return function(){this.removeAttribute(t)}}function rn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function an(t,e){return function(){this.setAttribute(t,e)}}function on(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function sn(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function cn(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function ln(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function un(t){return function(){this.style.removeProperty(t)}}function hn(t,e,n){return function(){this.style.setProperty(t,e,n)}}function dn(t,e,n){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function fn(t,e){return t.style.getPropertyValue(e)||ln(t).getComputedStyle(t,null).getPropertyValue(e)}function gn(t){return function(){delete this[t]}}function pn(t,e){return function(){this[t]=e}}function _n(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function vn(t){return t.trim().split(/^|\s+/)}function xn(t){return t.classList||new yn(t)}function yn(t){this._node=t,this._names=vn(t.getAttribute("class")||"")}function mn(t,e){for(var n=xn(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function bn(t,e){for(var n=xn(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function Tn(t){return function(){mn(this,t)}}function wn(t){return function(){bn(this,t)}}function kn(t,e){return function(){(e.apply(this,arguments)?mn:bn)(this,t)}}function An(){this.textContent=""}function Sn(t){return function(){this.textContent=t}}function Cn(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function En(){this.innerHTML=""}function Mn(t){return function(){this.innerHTML=t}}function Ln(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function Rn(){this.nextSibling&&this.parentNode.appendChild(this)}function Dn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function In(){return null}function $n(){var t=this.parentNode;t&&t.removeChild(this)}function Pn(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function On(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Xn(t){return function(){var e=this.__on;if(e){for(var n,i=0,r=-1,a=e.length;i<a;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++r]=n:this.removeEventListener(n.type,n.listener,n.options);++r?e.length=r:delete this.__on}}}function Nn(t,e,n){return function(){var i,r=this.__on,a=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(r)for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===t.type&&i.name===t.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),void(i.value=e);this.addEventListener(t.type,a,n),i={type:t.type,name:t.name,value:e,listener:a,options:n},r?r.push(i):this.__on=[i]}}function Fn(t,e,n){var i=ln(t),r=i.CustomEvent;"function"==typeof r?r=new r(e,n):(r=i.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function zn(t,e){return function(){return Fn(this,t,e)}}function Bn(t,e){return function(){return Fn(this,t,e.apply(this,arguments))}}Ze.prototype={constructor:Ze,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},yn.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Yn=[null];function Un(t,e){this._groups=t,this._parents=e}function Vn(){return new Un([[document.documentElement]],Yn)}function Hn(t){return"string"==typeof t?new Un([[document.querySelector(t)]],[document.documentElement]):new Un([[t]],Yn)}function jn(t,e){if(t=function(t){let e;for(;e=t.sourceEvent;)t=e;return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=t.clientX,i.y=t.clientY,[(i=i.matrixTransform(e.getScreenCTM().inverse())).x,i.y]}if(e.getBoundingClientRect){var r=e.getBoundingClientRect();return[t.clientX-r.left-e.clientLeft,t.clientY-r.top-e.clientTop]}}return[t.pageX,t.pageY]}function Gn(t){return"string"==typeof t?new Un([document.querySelectorAll(t)],[document.documentElement]):new Un([ze(t)],Yn)}Un.prototype=Vn.prototype={constructor:Un,select:function(t){"function"!=typeof t&&(t=Fe(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var a,o,s=e[r],c=s.length,l=i[r]=new Array(c),u=0;u<c;++u)(a=s[u])&&(o=t.call(a,a.__data__,u,s))&&("__data__"in a&&(o.__data__=a.__data__),l[u]=o);return new Un(i,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return ze(t.apply(this,arguments))}}(t):Ye(t);for(var e=this._groups,n=e.length,i=[],r=[],a=0;a<n;++a)for(var o,s=e[a],c=s.length,l=0;l<c;++l)(o=s[l])&&(i.push(t.call(o,o.__data__,l,s)),r.push(o));return new Un(i,r)},selectChild:function(t){return this.select(null==t?je:function(t){return function(){return He.call(this.children,t)}}("function"==typeof t?t:Ve(t)))},selectChildren:function(t){return this.selectAll(null==t?We:function(t){return function(){return Ge.call(this.children,t)}}("function"==typeof t?t:Ve(t)))},filter:function(t){"function"!=typeof t&&(t=Ue(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var a,o=e[r],s=o.length,c=i[r]=[],l=0;l<s;++l)(a=o[l])&&t.call(a,a.__data__,l,o)&&c.push(a);return new Un(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,Qe);var n,i=e?Je:Ke,r=this._parents,a=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var o=a.length,s=new Array(o),c=new Array(o),l=new Array(o),u=0;u<o;++u){var h=r[u],d=a[u],f=d.length,g=tn(t.call(h,h&&h.__data__,u,r)),p=g.length,_=c[u]=new Array(p),v=s[u]=new Array(p);i(h,d,_,v,l[u]=new Array(f),g,e);for(var x,y,m=0,b=0;m<p;++m)if(x=_[m]){for(m>=b&&(b=m+1);!(y=v[b])&&++b<p;);x._next=y||null}}return(s=new Un(s,r))._enter=c,s._exit=l,s},enter:function(){return new Un(this._enter||this._groups.map(qe),this._parents)},exit:function(){return new Un(this._exit||this._groups.map(qe),this._parents)},join:function(t,e,n){var i=this.enter(),r=this,a=this.exit();return"function"==typeof t?(i=t(i))&&(i=i.selection()):i=i.append(t+""),null!=e&&(r=e(r))&&(r=r.selection()),null==n?a.remove():n(a),i&&r?i.merge(r).order():r},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,r=n.length,a=i.length,o=Math.min(r,a),s=new Array(r),c=0;c<o;++c)for(var l,u=n[c],h=i[c],d=u.length,f=s[c]=new Array(d),g=0;g<d;++g)(l=u[g]||h[g])&&(f[g]=l);for(;c<r;++c)s[c]=n[c];return new Un(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,r=t[e],a=r.length-1,o=r[a];--a>=0;)(i=r[a])&&(o&&4^i.compareDocumentPosition(o)&&o.parentNode.insertBefore(i,o),o=i);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=en);for(var n=this._groups,i=n.length,r=new Array(i),a=0;a<i;++a){for(var o,s=n[a],c=s.length,l=r[a]=new Array(c),u=0;u<c;++u)(o=s[u])&&(l[u]=o);l.sort(e)}return new Un(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,a=i.length;r<a;++r){var o=i[r];if(o)return o}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var r,a=e[n],o=0,s=a.length;o<s;++o)(r=a[o])&&t.call(r,r.__data__,o,a);return this},attr:function(t,e){var n=$e(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?rn:nn:"function"==typeof e?n.local?cn:sn:n.local?on:an)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?un:"function"==typeof e?dn:hn)(t,e,null==n?"":n)):fn(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?gn:"function"==typeof e?_n:pn)(t,e)):this.node()[t]},classed:function(t,e){var n=vn(t+"");
vendor: 4,912 bytes, line 1
1if(arguments.length<2){for(var i=xn(this.node()),r=-1,a=n.length;++r<a;)if(!i.contains(n[r]))return!1;return!0}return this.each(("function"==typeof e?kn:e?Tn:wn)(n,e))},text:function(t){return arguments.length?this.each(null==t?An:("function"==typeof t?Cn:Sn)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?En:("function"==typeof t?Ln:Mn)(t)):this.node().innerHTML},raise:function(){return this.each(Rn)},lower:function(){return this.each(Dn)},append:function(t){var e="function"==typeof t?t:Xe(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:Xe(t),i=null==e?In:"function"==typeof e?e:Fe(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each($n)},clone:function(t){return this.select(t?On:Pn)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,r,a=function(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}(t+""),o=a.length;if(!(arguments.length<2)){for(s=e?Nn:Xn,i=0;i<o;++i)this.each(s(a[i],e,n));return this}var s=this.node().__on;if(s)for(var c,l=0,u=s.length;l<u;++l)for(i=0,c=s[l];i<o;++i)if((r=a[i]).type===c.type&&r.name===c.name)return c.value},dispatch:function(t,e){return this.each(("function"==typeof e?Bn:zn)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i,r=t[e],a=0,o=r.length;a<o;++a)(i=r[a])&&(yield i)}};var Wn={value:()=>{}};function qn(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t);i[t]=[]}return new Zn(i)}function Zn(t){this._=t}function Kn(t,e){for(var n,i=0,r=t.length;i<r;++i)if((n=t[i]).name===e)return n.value}function Jn(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=Wn,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}Zn.prototype=qn.prototype={constructor:Zn,on:function(t,e){var n,i,r=this._,a=(i=r,(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!i.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})),o=-1,s=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o<s;)if(n=(t=a[o]).type)r[n]=Jn(r[n],t.name,e);else if(null==e)for(n in r)r[n]=Jn(r[n],t.name,null);return this}for(;++o<s;)if((n=(t=a[o]).type)&&(n=Kn(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Zn(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,r=new Array(n),a=0;a<n;++a)r[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=0,n=(i=this._[t]).length;a<n;++a)i[a].value.apply(e,r)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],r=0,a=i.length;r<a;++r)i[r].value.apply(e,n)}};const Qn={passive:!1},ti={capture:!0,passive:!1};function ei(t){t.stopImmediatePropagation()}function ni(t){t.preventDefault(),t.stopImmediatePropagation()}const ii=t=>()=>t;function ri(t,{sourceEvent:e,subject:n,target:i,identifier:r,active:a,x:o,y:s,dx:c,dy:l,dispatch:u}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:r,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:u}})}function ai(t){return!t.ctrlKey&&!t.button}function oi(){return this.parentNode}function si(t,e){return null==e?{x:t.x,y:t.y}:e}function ci(){return navigator.maxTouchPoints||"ontouchstart"in this}function li(){var t,e,n,i,r=ai,a=oi,o=si,s=ci,c={},l=qn("start","drag","end"),u=0,h=0;function d(t){t.on("mousedown.drag",f).filter(s).on("touchstart.drag",_).on("touchmove.drag",v,Qn).on("touchend.drag touchcancel.drag",x).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(o,s){if(!i&&r.call(this,o,s)){var c,l,u,h=y(this,a.call(this,o,s),o,s,"mouse");if(h)Hn(o.view).on("mousemove.drag",g,ti).on("mouseup.drag",p,ti),c=o.view,l=c.document.documentElement,u=Hn(c).on("dragstart.drag",ni,ti),"onselectstart"in l?u.on("selectstart.drag",ni,ti):(l.__noselect=l.style.MozUserSelect,l.style.MozUserSelect="none"),ei(o),n=!1,t=o.clientX,e=o.clientY,h("start",o)}}function g(i){if(ni(i),!n){var r=i.clientX-t,a=i.clientY-e;n=r*r+a*a>h}
vendor: 11,897 bytes, line 1
1c.mouse("drag",i)}function p(t){var e,i,r,a;Hn(t.view).on("mousemove.drag mouseup.drag",null),e=t.view,i=n,r=e.document.documentElement,a=Hn(e).on("dragstart.drag",null),i&&(a.on("click.drag",ni,ti),setTimeout(function(){a.on("click.drag",null)},0)),"onselectstart"in r?a.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect),ni(t),c.mouse("end",t)}function _(t,e){if(r.call(this,t,e)){var n,i,o=t.changedTouches,s=a.call(this,t,e),c=o.length;for(n=0;n<c;++n)(i=y(this,s,t,e,o[n].identifier,o[n]))&&(ei(t),i("start",t,o[n]))}}function v(t){var e,n,i=t.changedTouches,r=i.length;for(e=0;e<r;++e)(n=c[i[e].identifier])&&(ni(t),n("drag",t,i[e]))}function x(t){var e,n,r=t.changedTouches,a=r.length;for(i&&clearTimeout(i),i=setTimeout(function(){i=null},500),e=0;e<a;++e)(n=c[r[e].identifier])&&(ei(t),n("end",t,r[e]))}function y(t,e,n,i,r,a){var s,h,f,g=l.copy(),p=jn(a||n,e);if(null!=(f=o.call(t,new ri("beforestart",{sourceEvent:n,target:d,identifier:r,active:u,x:p[0],y:p[1],dx:0,dy:0,dispatch:g}),i)))return s=f.x-p[0]||0,h=f.y-p[1]||0,function n(a,o,l){var _,v=p;switch(a){case"start":c[r]=n,_=u++;break;case"end":delete c[r],--u;case"drag":p=jn(l||o,e),_=u}g.call(a,t,new ri(a,{sourceEvent:o,subject:f,target:d,identifier:r,active:_,x:p[0]+s,y:p[1]+h,dx:p[0]-v[0],dy:p[1]-v[1],dispatch:g}),i)}}return d.filter=function(t){return arguments.length?(r="function"==typeof t?t:ii(!!t),d):r},d.container=function(t){return arguments.length?(a="function"==typeof t?t:ii(t),d):a},d.subject=function(t){return arguments.length?(o="function"==typeof t?t:ii(t),d):o},d.touchable=function(t){return arguments.length?(s="function"==typeof t?t:ii(!!t),d):s},d.on=function(){var t=l.on.apply(l,arguments);return t===l?d:t},d.clickDistance=function(t){return arguments.length?(h=(t=+t)*t,d):Math.sqrt(h)},d}function ui(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function hi(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function di(){}ri.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var fi=.7,gi=1/fi,pi="\\s*([+-]?\\d+)\\s*",_i="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",vi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xi=/^#([0-9a-f]{3,8})$/,yi=new RegExp(`^rgb\\(${pi},${pi},${pi}\\)$`),mi=new RegExp(`^rgb\\(${vi},${vi},${vi}\\)$`),bi=new RegExp(`^rgba\\(${pi},${pi},${pi},${_i}\\)$`),Ti=new RegExp(`^rgba\\(${vi},${vi},${vi},${_i}\\)$`),wi=new RegExp(`^hsl\\(${_i},${vi},${vi}\\)$`),ki=new RegExp(`^hsla\\(${_i},${vi},${vi},${_i}\\)$`),Ai={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 Si(){return this.rgb().formatHex()}function Ci(){return this.rgb().formatRgb()}function Ei(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=xi.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Mi(e):3===n?new Di(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Li(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Li(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=yi.exec(t))?new Di(e[1],e[2],e[3],1):(e=mi.exec(t))?new Di(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=bi.exec(t))?Li(e[1],e[2],e[3],e[4]):(e=Ti.exec(t))?Li(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=wi.exec(t))?Ni(e[1],e[2]/100,e[3]/100,1):(e=ki.exec(t))?Ni(e[1],e[2]/100,e[3]/100,e[4]):Ai.hasOwnProperty(t)?Mi(Ai[t]):"transparent"===t?new Di(NaN,NaN,NaN,0):null}function Mi(t){return new Di(t>>16&255,t>>8&255,255&t,1)}function Li(t,e,n,i){return i<=0&&(t=e=n=NaN),new Di(t,e,n,i)}function Ri(t,e,n,i){return 1===arguments.length?((r=t)instanceof di||(r=Ei(r)),r?new Di((r=r.rgb()).r,r.g,r.b,r.opacity):new Di):new Di(t,e,n,null==i?1:i);var r}function Di(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function Ii(){return`#${Xi(this.r)}${Xi(this.g)}${Xi(this.b)}`}function $i(){const t=Pi(this.opacity);return`${1===t?"rgb(":"rgba("}${Oi(this.r)}, ${Oi(this.g)}, ${Oi(this.b)}${1===t?")":`, ${t})`}`}function Pi(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Oi(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Xi(t){return((t=Oi(t))<16?"0":"")+t.toString(16)}function Ni(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new zi(t,e,n,i)}function Fi(t){if(t instanceof zi)return new zi(t.h,t.s,t.l,t.opacity);if(t instanceof di||(t=Ei(t)),!t)return new zi;if(t instanceof zi)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),a=Math.max(e,n,i),o=NaN,s=a-r,c=(a+r)/2;return s?(o=e===a?(n-i)/s+6*(n<i):n===a?(i-e)/s+2:(e-n)/s+4,s/=c<.5?a+r:2-a-r,o*=60):s=c>0&&c<1?0:o,new zi(o,s,c,t.opacity)}function zi(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function Bi(t){return(t=(t||0)%360)<0?t+360:t}function Yi(t){return Math.max(0,Math.min(1,t||0))}function Ui(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}ui(di,Ei,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Si,formatHex:Si,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Fi(this).formatHsl()},formatRgb:Ci,toString:Ci}),ui(Di,Ri,hi(di,{brighter(t){return t=null==t?gi:Math.pow(gi,t),new Di(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?fi:Math.pow(fi,t),new Di(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Di(Oi(this.r),Oi(this.g),Oi(this.b),Pi(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:Ii,formatHex:Ii,formatHex8:function(){return`#${Xi(this.r)}${Xi(this.g)}${Xi(this.b)}${Xi(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:$i,toString:$i})),ui(zi,function(t,e,n,i){return 1===arguments.length?Fi(t):new zi(t,e,n,null==i?1:i)},hi(di,{brighter(t){return t=null==t?gi:Math.pow(gi,t),new zi(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?fi:Math.pow(fi,t),new zi(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new Di(Ui(t>=240?t-240:t+120,r,i),Ui(t,r,i),Ui(t<120?t+240:t-120,r,i),this.opacity)},clamp(){return new zi(Bi(this.h),Yi(this.s),Yi(this.l),Pi(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=Pi(this.opacity);return`${1===t?"hsl(":"hsla("}${Bi(this.h)}, ${100*Yi(this.s)}%, ${100*Yi(this.l)}%${1===t?")":`, ${t})`}`}}));const Vi=t=>()=>t;function Hi(t){return 1===(t=+t)?ji:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):Vi(isNaN(e)?n:e)}}function ji(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Vi(isNaN(t)?e:t)}const Gi=function t(e){var n=Hi(e);function i(t,e){var i=n((t=Ri(t)).r,(e=Ri(e)).r),r=n(t.g,e.g),a=n(t.b,e.b),o=ji(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=a(e),t.opacity=o(e),t+""}}return i.gamma=t,i}(1);function Wi(t,e){e||(e=[]);var n,i=t?Math.min(e.length,t.length):0,r=e.slice();return function(a){for(n=0;n<i;++n)r[n]=t[n]*(1-a)+e[n]*a;return r}}function qi(t,e){var n,i=e?e.length:0,r=t?Math.min(i,t.length):0,a=new Array(r),o=new Array(i);for(n=0;n<r;++n)a[n]=nr(t[n],e[n]);for(;n<i;++n)o[n]=e[n];return function(t){for(n=0;n<r;++n)o[n]=a[n](t);return o}}function Zi(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function Ki(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Ji(t,e){var n,i={},r={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?i[n]=nr(t[n],e[n]):r[n]=e[n];return function(t){for(n in i)r[n]=i[n](t);return r}}var Qi=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,tr=new RegExp(Qi.source,"g");function er(t,e){var n,i,r,a=Qi.lastIndex=tr.lastIndex=0,o=-1,s=[],c=[];for(t+="",e+="";(n=Qi.exec(t))&&(i=tr.exec(e));)(r=i.index)>a&&(r=e.slice(a,r),s[o]?s[o]+=r:s[++o]=r),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:Ki(n,i)})),a=tr.lastIndex;return a<e.length&&(r=e.slice(a),s[o]?s[o]+=r:s[++o]=r),s.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var n,i=0;i<e;++i)s[(n=c[i]).i]=n.x(t);return s.join("")})}function nr(t,e){var n,i,r=typeof e;return null==e||"boolean"===r?Vi(e):("number"===r?Ki:"string"===r?(n=Ei(e))?(e=n,Gi):er:e instanceof Ei?Gi:e instanceof Date?Zi:(i=e,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(e)?qi:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Ji:Ki:Wi))(t,e)}function ir(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var rr,ar=180/Math.PI,or={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function sr(t,e,n,i,r,a){var o,s,c;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(c=t*n+e*i)&&(n-=t*c,i-=e*c),(s=Math.sqrt(n*n+i*i))&&(n/=s,i/=s,c/=s),t*i<e*n&&(t=-t,e=-e,c=-c,o=-o),{translateX:r,translateY:a,rotate:Math.atan2(e,t)*ar,skewX:Math.atan(c)*ar,scaleX:o,scaleY:s}}function cr(t,e,n,i){function r(t){return t.length?t.pop()+" ":""}return function(a,o){var s=[],c=[];
vendor: 7,120 bytes, line 1
1return a=t(a),o=t(o),function(t,i,r,a,o,s){if(t!==r||i!==a){var c=o.push("translate(",null,e,null,n);s.push({i:c-4,x:Ki(t,r)},{i:c-2,x:Ki(i,a)})}else(r||a)&&o.push("translate("+r+e+a+n)}(a.translateX,a.translateY,o.translateX,o.translateY,s,c),function(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(r(n)+"rotate(",null,i)-2,x:Ki(t,e)})):e&&n.push(r(n)+"rotate("+e+i)}(a.rotate,o.rotate,s,c),function(t,e,n,a){t!==e?a.push({i:n.push(r(n)+"skewX(",null,i)-2,x:Ki(t,e)}):e&&n.push(r(n)+"skewX("+e+i)}(a.skewX,o.skewX,s,c),function(t,e,n,i,a,o){if(t!==n||e!==i){var s=a.push(r(a)+"scale(",null,",",null,")");o.push({i:s-4,x:Ki(t,n)},{i:s-2,x:Ki(e,i)})}else 1===n&&1===i||a.push(r(a)+"scale("+n+","+i+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,c),a=o=null,function(t){for(var e,n=-1,i=c.length;++n<i;)s[(e=c[n]).i]=e.x(t);return s.join("")}}}var lr,ur,hr=cr(function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?or:sr(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),dr=cr(function(t){return null==t?or:(rr||(rr=document.createElementNS("http://www.w3.org/2000/svg","g")),rr.setAttribute("transform",t),(t=rr.transform.baseVal.consolidate())?sr((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):or)},", ",")",")"),fr=0,gr=0,pr=0,_r=0,vr=0,xr=0,yr="object"==typeof performance&&performance.now?performance:Date,mr="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function br(){return vr||(mr(Tr),vr=yr.now()+xr)}function Tr(){vr=0}function wr(){this._call=this._time=this._next=null}function kr(t,e,n){var i=new wr;return i.restart(t,e,n),i}function Ar(){vr=(_r=yr.now())+xr,fr=gr=0;try{!function(){br(),++fr;for(var t,e=lr;e;)(t=vr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--fr}()}finally{fr=0,function(){var t,e,n=lr,i=1/0;for(;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:lr=e);ur=t,Cr(i)}(),vr=0}}function Sr(){var t=yr.now(),e=t-_r;e>1e3&&(xr-=e,_r=t)}function Cr(t){fr||(gr&&(gr=clearTimeout(gr)),t-vr>24?(t<1/0&&(gr=setTimeout(Ar,t-yr.now()-xr)),pr&&(pr=clearInterval(pr))):(pr||(_r=yr.now(),pr=setInterval(Sr,1e3)),fr=1,mr(Ar)))}function Er(t,e,n){var i=new wr;return e=null==e?0:+e,i.restart(n=>{i.stop(),t(n+e)},e,n),i}wr.prototype=kr.prototype={constructor:wr,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?br():+n)+(null==e?0:+e),this._next||ur===this||(ur?ur._next=this:lr=this,ur=this),this._call=t,this._time=n,Cr()},stop:function(){this._call&&(this._call=null,this._time=1/0,Cr())}};var Mr=qn("start","end","cancel","interrupt"),Lr=[];function Rr(t,e,n,i,r,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var i,r=t.__transition;function a(t){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)}function o(a){var l,u,h,d;if(1!==n.state)return c();for(l in r)if((d=r[l]).name===n.name){if(3===d.state)return Er(o);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[l]):+l<e&&(d.state=6,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete r[l])}if(Er(function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,i=new Array(h=n.tween.length),l=0,u=-1;l<h;++l)(d=n.tween[l].value.call(t,t.__data__,n.index,n.group))&&(i[++u]=d);i.length=u+1}}function s(e){for(var r=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(t,r);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[e],r)return;delete t.__transition}r[e]=n,n.timer=kr(a,0,n.time)}(t,n,{name:e,index:i,group:r,on:Mr,tween:Lr,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function Dr(t,e){var n=$r(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function Ir(t,e){var n=$r(t,e);if(n.state>3)throw new Error("too late; already running");return n}function $r(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Pr(t,e){var n,i;return function(){var r=Ir(this,t),a=r.tween;if(a!==n)for(var o=0,s=(i=n=a).length;o<s;++o)if(i[o].name===e){(i=i.slice()).splice(o,1);break}r.tween=i}}function Or(t,e,n){var i,r;if("function"!=typeof n)throw new Error;return function(){var a=Ir(this,t),o=a.tween;if(o!==i){r=(i=o).slice();for(var s={name:e,value:n},c=0,l=r.length;c<l;++c)if(r[c].name===e){r[c]=s;break}c===l&&r.push(s)}a.tween=r}}function Xr(t,e,n){var i=t._id;return t.each(function(){var t=Ir(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return $r(t,i).value[e]}}function Nr(t,e){var n;return("number"==typeof e?Ki:e instanceof Ei?Gi:(n=Ei(e))?(e=n,Gi):er)(t,e)}function Fr(t){return function(){this.removeAttribute(t)}}function zr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Br(t,e,n){var i,r,a=n+"";return function(){var o=this.getAttribute(t);return o===a?null:o===i?r:r=e(i=o,n)}}function Yr(t,e,n){var i,r,a=n+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===a?null:o===i?r:r=e(i=o,n)}}function Ur(t,e,n){var i,r,a;return function(){var o,s,c=n(this);if(null!=c)return(o=this.getAttribute(t))===(s=c+"")?null:o===i&&s===r?a:(r=s,a=e(i=o,c));this.removeAttribute(t)}}function Vr(t,e,n){var i,r,a;return function(){var o,s,c=n(this);if(null!=c)return(o=this.getAttributeNS(t.space,t.local))===(s=c+"")?null:o===i&&s===r?a:(r=s,a=e(i=o,c));this.removeAttributeNS(t.space,t.local)}}function Hr(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,r)),n}return r._value=e,r}function jr(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,r)),n}return r._value=e,r}function Gr(t,e){return function(){Dr(this,t).delay=+e.apply(this,arguments)}}function Wr(t,e){return e=+e,function(){Dr(this,t).delay=e}}function qr(t,e){return function(){Ir(this,t).duration=+e.apply(this,arguments)}}function Zr(t,e){return e=+e,function(){Ir(this,t).duration=e}}var Kr=Vn.prototype.constructor;function Jr(t){return function(){this.style.removeProperty(t)}}var Qr=0;function ta(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function ea(t){return Vn().transition(t)}function na(){return++Qr}var ia=Vn.prototype;ta.prototype=ea.prototype={constructor:ta,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Fe(t));for(var i=this._groups,r=i.length,a=new Array(r),o=0;o<r;++o)for(var s,c,l=i[o],u=l.length,h=a[o]=new Array(u),d=0;d<u;++d)(s=l[d])&&(c=t.call(s,s.__data__,d,l))&&("__data__"in s&&(c.__data__=s.__data__),h[d]=c,Rr(h[d],e,n,d,h,$r(s,n)));return new ta(a,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;
vendor: 5,084 bytes, line 1
1"function"!=typeof t&&(t=Ye(t));for(var i=this._groups,r=i.length,a=[],o=[],s=0;s<r;++s)for(var c,l=i[s],u=l.length,h=0;h<u;++h)if(c=l[h]){for(var d,f=t.call(c,c.__data__,h,l),g=$r(c,n),p=0,_=f.length;p<_;++p)(d=f[p])&&Rr(d,e,n,p,f,g);a.push(f),o.push(c)}return new ta(a,o,e,n)},selectChild:ia.selectChild,selectChildren:ia.selectChildren,filter:function(t){"function"!=typeof t&&(t=Ue(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var a,o=e[r],s=o.length,c=i[r]=[],l=0;l<s;++l)(a=o[l])&&t.call(a,a.__data__,l,o)&&c.push(a);return new ta(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,r=n.length,a=Math.min(i,r),o=new Array(i),s=0;s<a;++s)for(var c,l=e[s],u=n[s],h=l.length,d=o[s]=new Array(h),f=0;f<h;++f)(c=l[f]||u[f])&&(d[f]=c);for(;s<i;++s)o[s]=e[s];return new ta(o,this._parents,this._name,this._id)},selection:function(){return new Kr(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=na(),i=this._groups,r=i.length,a=0;a<r;++a)for(var o,s=i[a],c=s.length,l=0;l<c;++l)if(o=s[l]){var u=$r(o,e);Rr(o,t,n,l,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new ta(i,this._parents,t,n)},call:ia.call,nodes:ia.nodes,node:ia.node,size:ia.size,empty:ia.empty,each:ia.each,on:function(t,e){var n=this._id;return arguments.length<2?$r(this.node(),n).on.on(t):this.each(function(t,e,n){var i,r,a=function(t){return(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?Dr:Ir;return function(){var o=a(this,t),s=o.on;s!==i&&(r=(i=s).copy()).on(e,n),o.on=r}}(n,t,e))},attr:function(t,e){var n=$e(t),i="transform"===n?dr:Nr;return this.attrTween(t,"function"==typeof e?(n.local?Vr:Ur)(n,i,Xr(this,"attr."+t,e)):null==e?(n.local?zr:Fr)(n):(n.local?Yr:Br)(n,i,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var i=$e(t);return this.tween(n,(i.local?Hr:jr)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?hr:Nr;return null==e?this.styleTween(t,function(t,e){var n,i,r;return function(){var a=fn(this,t),o=(this.style.removeProperty(t),fn(this,t));return a===o?null:a===n&&o===i?r:r=e(n=a,i=o)}}(t,i)).on("end.style."+t,Jr(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,r,a;return function(){var o=fn(this,t),s=n(this),c=s+"";return null==s&&(this.style.removeProperty(t),c=s=fn(this,t)),o===c?null:o===i&&c===r?a:(r=c,a=e(i=o,s))}}(t,i,Xr(this,"style."+t,e))).each(function(t,e){var n,i,r,a,o="style."+e,s="end."+o;return function(){var c=Ir(this,t),l=c.on,u=null==c.value[o]?a||(a=Jr(e)):void 0;l===n&&r===u||(i=(n=l).copy()).on(s,r=u),c.on=i}}(this._id,t)):this.styleTween(t,function(t,e,n){var i,r,a=n+"";return function(){var o=fn(this,t);return o===a?null:o===i?r:r=e(i=o,n)}}(t,i,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;return this.tween(i,function(t,e,n){var i,r;function a(){var a=e.apply(this,arguments);return a!==r&&(i=(r=a)&&function(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}(t,a,n)),i}return a._value=e,a}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Xr(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,n;function i(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&function(t){return function(e){this.textContent=t.call(this,e)}}(i)),e}return i._value=t,i}(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}));var t},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i,r=$r(this.node(),n).tween,a=0,o=r.length;a<o;++a)if((i=r[a]).name===t)return i.value;return null}return this.each((null==e?Pr:Or)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Gr:Wr)(e,t)):$r(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?qr:Zr)(e,t)):$r(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){Ir(this,t).ease=e}}(e,t)):$r(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;Ir(this,t).ease=n}}(this._id,t))}
1,end:function(){var t,e,n=this,i=n._id,r=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){0===--r&&a()}};n.each(function(){var n=Ir(this,i),r=n.on;r!==t&&((e=(t=r).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(c)),n.on=e}),0===r&&a()})},[Symbol.iterator]:ia[Symbol.iterator]};const ra=t=>+t;var aa={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function oa(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}Vn.prototype.interrupt=function(t){return this.each(function(){!function(t,e){var n,i,r,a=t.__transition,o=!0;if(a){for(r in e=null==e?null:e+"",a)(n=a[r]).name===e?(i=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete a[r]):o=!1;o&&delete t.__transition}}(this,t)})},Vn.prototype.transition=function(t){var e,n;t instanceof ta?(e=t._id,t=t._name):(e=na(),(n=aa).time=br(),t=null==t?null:t+"");for(var i=this._groups,r=i.length,a=0;a<r;++a)for(var o,s=i[a],c=s.length,l=0;l<c;++l)(o=s[l])&&Rr(o,t,e,l,s,n||oa(o,e));return new ta(i,this._parents,t,e)};var sa={},ca={};function la(t){return new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'}).join(",")+"}")}function ua(t){var e=Object.create(null),n=[];return t.forEach(function(t){for(var i in t)i in e||n.push(e[i]=i)}),n}function ha(t,e){var n=t+"",i=n.length;return i<e?new Array(e-i+1).join(0)+n:n}function da(t){var e,n=t.getUTCHours(),i=t.getUTCMinutes(),r=t.getUTCSeconds(),a=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":((e=t.getUTCFullYear())<0?"-"+ha(-e,6):e>9999?"+"+ha(e,6):ha(e,4))+"-"+ha(t.getUTCMonth()+1,2)+"-"+ha(t.getUTCDate(),2)+(a?"T"+ha(n,2)+":"+ha(i,2)+":"+ha(r,2)+"."+ha(a,3)+"Z":r?"T"+ha(n,2)+":"+ha(i,2)+":"+ha(r,2)+"Z":i||n?"T"+ha(n,2)+":"+ha(i,2)+"Z":"")}function fa(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function i(t,e){var i,r=[],a=t.length,o=0,s=0,c=a<=0,l=!1;function u(){if(c)return ca;if(l)return l=!1,sa;var e,i,r=o;if(34===t.charCodeAt(r)){for(;o++<a&&34!==t.charCodeAt(o)||34===t.charCodeAt(++o););return(e=o)>=a?c=!0:10===(i=t.charCodeAt(o++))?l=!0:13===i&&(l=!0,10===t.charCodeAt(o)&&++o),t.slice(r+1,e-1).replace(/""/g,'"')}for(;o<a;){if(10===(i=t.charCodeAt(e=o++)))l=!0;else if(13===i)l=!0,10===t.charCodeAt(o)&&++o;else if(i!==n)continue;return t.slice(r,e)}return c=!0,t.slice(r,a)}for(10===t.charCodeAt(a-1)&&--a,13===t.charCodeAt(a-1)&&--a;(i=u())!==ca;){for(var h=[];i!==sa&&i!==ca;)h.push(i),i=u();e&&null==(h=e(h,s++))||r.push(h)}return r}function r(e,n){return e.map(function(e){return n.map(function(t){return o(e[t])}).join(t)})}function a(e){return e.map(o).join(t)}function o(t){return null==t?"":t instanceof Date?da(t):e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,e){var n,r,a=i(t,function(t,i){if(n)return n(t,i-1);r=t,n=e?function(t,e){var n=la(t);return function(i,r){return e(n(i),r,t)}}(t,e):la(t)});return a.columns=r||[],a},parseRows:i,format:function(e,n){return null==n&&(n=ua(e)),[n.map(o).join(t)].concat(r(e,n)).join("\n")},formatBody:function(t,e){return null==e&&(e=ua(t)),r(t,e).join("\n")},formatRows:function(t){return t.map(a).join("\n")},formatRow:a,formatValue:o}}var ga=fa(","),pa=ga.parse,_a=ga.parseRows,va=fa("\t"),xa=va.parse,ya=va.parseRows;function ma(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}const ba=Symbol("implicit");function Ta(){var t=new j,e=[],n=[],i=ba;function r(r){let a=t.get(r);if(void 0===a){if(i!==ba)return i;t.set(r,a=e.push(r)-1)}return n[a%n.length]}return r.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new j;for(const i of n)t.has(i)||t.set(i,e.push(i)-1);return r},r.range=function(t){return arguments.length?(n=Array.from(t),r):n.slice()},r.unknown=function(t){return arguments.length?(i=t,r):i},r.copy=function(){return Ta(e,n).unknown(i)},ma.apply(r,arguments),r}function wa(t){return+t}var ka=[0,1];function Aa(t){return t}function Sa(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function Ca(t,e,n){var i=t[0],r=t[1],a=e[0],o=e[1];
vendor: 11,767 bytes, line 1
1return r<i?(i=Sa(r,i),a=n(o,a)):(i=Sa(i,r),a=n(a,o)),function(t){return a(i(t))}}function Ea(t,e,n){var i=Math.min(t.length,e.length)-1,r=new Array(i),a=new Array(i),o=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<i;)r[o]=Sa(t[o],t[o+1]),a[o]=n(e[o],e[o+1]);return function(e){var n=H(t,e,1,i)-1;return a[n](r[n](e))}}function Ma(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function La(){var t,e,n,i,r,a,o=ka,s=ka,c=nr,l=Aa;function u(){var t,e,n,c=Math.min(o.length,s.length);return l!==Aa&&(t=o[0],e=o[c-1],t>e&&(n=t,t=e,e=n),l=function(n){return Math.max(t,Math.min(e,n))}),i=c>2?Ea:Ca,r=a=null,h}function h(e){return null==e||isNaN(e=+e)?n:(r||(r=i(o.map(t),s,c)))(t(l(e)))}return h.invert=function(n){return l(e((a||(a=i(s,o.map(t),Ki)))(n)))},h.domain=function(t){return arguments.length?(o=Array.from(t,wa),u()):o.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),u()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),c=ir,u()},h.clamp=function(t){return arguments.length?(l=!!t||Aa,u()):l!==Aa},h.interpolate=function(t){return arguments.length?(c=t,u()):c},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,i){return t=n,e=i,u()}}function Ra(){return La()(Aa,Aa)}function Da(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function Ia(t){return(t=Da(Math.abs(t)))?t[1]:NaN}var $a,Pa=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Oa(t){if(!(e=Pa.exec(t)))throw new Error("invalid format: "+t);var e;return new Xa({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Xa(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Na(t,e){var n=Da(t,e);if(!n)return t+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}Oa.prototype=Xa.prototype,Xa.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Fa={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Na(100*t,e),r:Na,s:function(t,e){var n=Da(t,e);if(!n)return t+"";var i=n[0],r=n[1],a=r-($a=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,o=i.length;return a===o?i:a>o?i+new Array(a-o+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+Da(t,Math.max(0,e+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function za(t){return t}var Ba,Ya,Ua,Va=Array.prototype.map,Ha=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ja(t){var e,n,i=void 0===t.grouping||void 0===t.thousands?za:(e=Va.call(t.grouping,Number),n=t.thousands+"",function(t,i){for(var r=t.length,a=[],o=0,s=e[0],c=0;r>0&&s>0&&(c+s+1>i&&(s=Math.max(1,i-c)),a.push(t.substring(r-=s,r+s)),!((c+=s+1)>i));)s=e[o=(o+1)%e.length];return a.reverse().join(n)}),r=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?za:function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(Va.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function h(t){var e=(t=Oa(t)).fill,n=t.align,h=t.sign,d=t.symbol,f=t.zero,g=t.width,p=t.comma,_=t.precision,v=t.trim,x=t.type;"n"===x?(p=!0,x="g"):Fa[x]||(void 0===_&&(_=12),v=!0,x="g"),(f||"0"===e&&"="===n)&&(f=!0,e="0",n="=");var y="$"===d?r:"#"===d&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",m="$"===d?a:/[%p]/.test(x)?c:"",b=Fa[x],T=/[defgprs%]/.test(x);function w(t){var r,a,c,d=y,w=m;if("c"===x)w=b(t)+w,t="";else{var k=(t=+t)<0||1/t<0;if(t=isNaN(t)?u:b(Math.abs(t),_),v&&(t=function(t){t:for(var e,n=t.length,i=1,r=-1;i<n;++i)switch(t[i]){case".":r=e=i;break;case"0":0===r&&(r=i),e=i;break;default:if(!+t[i])break t;r>0&&(r=0)}return r>0?t.slice(0,r)+t.slice(e+1):t}(t)),k&&0===+t&&"+"!==h&&(k=!1),d=(k?"("===h?h:l:"-"===h||"("===h?"":h)+d,w=("s"===x?Ha[8+$a/3]:"")+w+(k&&"("===h?")":""),T)for(r=-1,a=t.length;++r<a;)if(48>(c=t.charCodeAt(r))||c>57){w=(46===c?o+t.slice(r+1):t.slice(r))+w,t=t.slice(0,r);break}}p&&!f&&(t=i(t,1/0));var A=d.length+t.length+w.length,S=A<g?new Array(g-A+1).join(e):"";switch(p&&f&&(t=i(S+t,S.length?g-w.length:1/0),S=""),n){case"<":t=d+t+w+S;break;case"=":t=d+S+t+w;break;case"^":t=S.slice(0,A=S.length>>1)+d+t+w+S.slice(A);break;default:t=S+d+t+w}return s(t)}return _=void 0===_?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_)),w.toString=function(){return t+""},w}return{format:h,formatPrefix:function(t,e){var n=h(((t=Oa(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(Ia(e)/3))),r=Math.pow(10,-i),a=Ha[8+i/3];return function(t){return n(r*t)+a}}}}function Ga(t,e,n,i){var r,a=et(t,e,n);switch((i=Oa(null==i?",f":i)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=i.precision||isNaN(r=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ia(e)/3)))-Ia(Math.abs(t)))}(a,o))||(i.precision=r),Ua(i,o);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(r=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Ia(e)-Ia(t))+1}(a,Math.max(Math.abs(t),Math.abs(e))))||(i.precision=r-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(r=function(t){return Math.max(0,-Ia(Math.abs(t)))}(a))||(i.precision=r-2*("%"===i.type))}return Ya(i)}function Wa(t){var e=t.domain;return t.ticks=function(t){var n=e();return Q(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var i=e();return Ga(i[0],i[i.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var i,r,a=e(),o=0,s=a.length-1,c=a[o],l=a[s],u=10;for(l<c&&(r=c,c=l,l=r,r=o,o=s,s=r);u-- >0;){if((r=tt(c,l,n))===i)return a[o]=c,a[s]=l,e(a);if(r>0)c=Math.floor(c/r)*r,l=Math.ceil(l/r)*r;else{if(!(r<0))break;c=Math.ceil(c*r)/r,l=Math.floor(l*r)/r}i=r}return t},t}function qa(){var t=Ra();return t.copy=function(){return Ma(t,qa())},ma.apply(t,arguments),Wa(t)}function Za(t,e){var n,i=0,r=(t=t.slice()).length-1,a=t[i],o=t[r];return o<a&&(n=i,i=r,r=n,n=a,a=o,o=n),t[i]=e.floor(a),t[r]=e.ceil(o),t}function Ka(t){return Math.log(t)}function Ja(t){return Math.exp(t)}function Qa(t){return-Math.log(-t)}function to(t){return-Math.exp(-t)}function eo(t){return isFinite(t)?+("1e"+t):t<0?0:t}function no(t){return(e,n)=>-t(-e,n)}function io(t){const e=t(Ka,Ja),n=e.domain;let i,r,a=10;function o(){return i=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}(a),r=function(t){return 10===t?eo:t===Math.E?Math.exp:e=>Math.pow(t,e)}(a),n()[0]<0?(i=no(i),r=no(r),t(Qa,to)):t(Ka,Ja),e}return e.base=function(t){return arguments.length?(a=+t,o()):a},e.domain=function(t){return arguments.length?(n(t),o()):n()},e.ticks=t=>{const e=n();let o=e[0],s=e[e.length-1];const c=s<o;c&&([o,s]=[s,o]);let l,u,h=i(o),d=i(s);const f=null==t?10:+t;let g=[];if(!(a%1)&&d-h<f){if(h=Math.floor(h),d=Math.ceil(d),o>0){for(;h<=d;++h)for(l=1;l<a;++l)if(u=h<0?l/r(-h):l*r(h),!(u<o)){if(u>s)break;g.push(u)}}else for(;h<=d;++h)for(l=a-1;l>=1;--l)if(u=h>0?l/r(-h):l*r(h),!(u<o)){if(u>s)break;g.push(u)}2*g.length<f&&(g=Q(o,s,f))}else g=Q(h,d,Math.min(d-h,f)).map(r);return c?g.reverse():g},e.tickFormat=(t,n)=>{if(null==t&&(t=10),null==n&&(n=10===a?"s":","),"function"!=typeof n&&(a%1||null!=(n=Oa(n)).precision||(n.trim=!0),n=Ya(n)),t===1/0)return n;const o=Math.max(1,a*t/e.ticks().length);return t=>{let e=t/r(Math.round(i(t)));return e*a<a-.5&&(e*=a),e<=o?n(t):""}},e.nice=()=>n(Za(n(),{floor:t=>r(Math.floor(i(t))),ceil:t=>r(Math.ceil(i(t)))})),e}function ro(){const t=io(La()).domain([1,10]);return t.copy=()=>Ma(t,ro()).base(t.base()),ma.apply(t,arguments),t}function ao(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function oo(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function so(){var t=function(t){var e=1,n=t(ao(e),oo(e));return n.constant=function(n){return arguments.length?t(ao(e=+n),oo(e)):e},Wa(n)}(La());return t.copy=function(){return Ma(t,so()).constant(t.constant())},ma.apply(t,arguments)}function co(t){return new Date(t)}function lo(t){return t instanceof Date?+t:+new Date(+t)}function uo(t,e,n,i,r,a,o,s,c,l){var u=Ra(),h=u.invert,d=u.domain,f=l(".%L"),g=l(":%S"),p=l("%I:%M"),_=l("%I %p"),v=l("%a %d"),x=l("%b %d"),y=l("%B"),m=l("%Y");function b(t){return(c(t)<t?f:s(t)<t?g:o(t)<t?p:a(t)<t?_:i(t)<t?r(t)<t?v:x:n(t)<t?y:m)(t)}return u.invert=function(t){return new Date(h(t))},u.domain=function(t){return arguments.length?d(Array.from(t,lo)):d().map(co)},u.ticks=function(e){var n=d();return t(n[0],n[n.length-1],null==e?10:e)},u.tickFormat=function(t,e){return null==e?b:l(e)},u.nice=function(t){var n=d();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?d(Za(n,t)):u},u.copy=function(){return Ma(u,uo(t,e,n,i,r,a,o,s,c,l))},u}function ho(){return ma.apply(uo(at,ot,F,X,T,x,_,g,f,ht).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function fo(){return ma.apply(uo(it,rt,z,N,L,y,v,p,f,ft).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function go(t){return function(){return t}}!function(t){Ba=ja(t),Ya=Ba.format,Ua=Ba.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});const po=Math.PI,_o=2*po,vo=1e-6,xo=_o-vo;function yo(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}class mo{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?yo:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return yo;const n=10**e;return function(t){this._+=t[0];for(let e=1,i=t.length;e<i;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,n,i){this._append`Q${+t},${+e},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,e,n,i,r,a){this._append`C${+t},${+e},${+n},${+i},${this._x1=+r},${this._y1=+a}`}arcTo(t,e,n,i,r){if(t=+t,e=+e,n=+n,i=+i,(r=+r)<0)throw new Error(`negative radius: ${r}`);let a=this._x1,o=this._y1,s=n-t,c=i-e,l=a-t,u=o-e,h=l*l+u*u;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(h>vo)if(Math.abs(u*s-c*l)>vo&&r){let d=n-a,f=i-o,g=s*s+c*c,p=d*d+f*f,_=Math.sqrt(g),v=Math.sqrt(h),x=r*Math.tan((po-Math.acos((g+h-p)/(2*_*v)))/2),y=x/v,m=x/_;Math.abs(y-1)>vo&&this._append`L${t+y*l},${e+y*u}`,this._append`A${r},${r},0,0,${+(u*d>l*f)},${this._x1=t+m*s},${this._y1=e+m*c}`}else this._append`L${this._x1=t},${this._y1=e}`;else;}arc(t,e,n,i,r,a){if(t=+t,e=+e,a=!!a,(n=+n)<0)throw new Error(`negative radius: ${n}`);let o=n*Math.cos(i),s=n*Math.sin(i),c=t+o,l=e+s,u=1^a,h=a?i-r:r-i;
vendor: 15,128 bytes, line 1
1null===this._x1?this._append`M${c},${l}`:(Math.abs(this._x1-c)>vo||Math.abs(this._y1-l)>vo)&&this._append`L${c},${l}`,n&&(h<0&&(h=h%_o+_o),h>xo?this._append`A${n},${n},0,1,${u},${t-o},${e-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:h>vo&&this._append`A${n},${n},0,${+(h>=po)},${u},${this._x1=t+n*Math.cos(r)},${this._y1=e+n*Math.sin(r)}`)}rect(t,e,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function bo(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);e=t}return t},()=>new mo(e)}function To(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function wo(t){this._context=t}function ko(t){return new wo(t)}function Ao(t){return t[0]}function So(t){return t[1]}function Co(t,e){var n=go(!0),i=null,r=ko,a=null,o=bo(s);function s(s){var c,l,u,h=(s=To(s)).length,d=!1;for(null==i&&(a=r(u=o())),c=0;c<=h;++c)!(c<h&&n(l=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+t(l,c,s),+e(l,c,s));if(u)return a=null,u+""||null}return t="function"==typeof t?t:void 0===t?Ao:go(t),e="function"==typeof e?e:void 0===e?So:go(e),s.x=function(e){return arguments.length?(t="function"==typeof e?e:go(+e),s):t},s.y=function(t){return arguments.length?(e="function"==typeof t?t:go(+t),s):e},s.defined=function(t){return arguments.length?(n="function"==typeof t?t:go(!!t),s):n},s.curve=function(t){return arguments.length?(r=t,null!=i&&(a=r(i)),s):r},s.context=function(t){return arguments.length?(null==t?i=a=null:a=r(i=t),s):i},s}function Eo(){}function Mo(t,e,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+e)/6,(t._y0+4*t._y1+n)/6)}function Lo(t){this._context=t}function Ro(t){return new Lo(t)}function Do(t){this._context=t}function Io(t){return new Do(t)}function $o(t){this._context=t}function Po(t){return new $o(t)}function Oo(t,e){this._basis=new Lo(t),this._beta=e}wo.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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},Lo.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:Mo(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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:Mo(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Do.prototype={areaStart:Eo,areaEnd:Eo,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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Mo(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},$o.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,e){switch(t=+t,e=+e,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,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:Mo(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Oo.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var i,r=t[0],a=e[0],o=t[n]-r,s=e[n]-a,c=-1;++c<=n;)i=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(r+i*o),this._beta*e[c]+(1-this._beta)*(a+i*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const Xo=function t(e){function n(t){return 1===e?new Lo(t):new Oo(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function No(t,e,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-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Fo(t,e){this._context=t,this._k=(1-e)/6}Fo.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:No(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:No(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const zo=function t(e){function n(t){return new Fo(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Bo(t,e){this._context=t,this._k=(1-e)/6}Bo.prototype={areaStart:Eo,areaEnd:Eo,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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:No(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Yo=function t(e){function n(t){return new Bo(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Uo(t,e){this._context=t,this._k=(1-e)/6}Uo.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,e){switch(t=+t,e=+e,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:No(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Vo=function t(e){function n(t){return new Uo(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Ho(t,e,n){var i=t._x1,r=t._y1,a=t._x2,o=t._y2;if(t._l01_a>1e-12){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,r=(r*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>1e-12){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*l+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*l+t._y1*t._l23_2a-n*t._l12_2a)/u}t._context.bezierCurveTo(i,r,a,o,t._x2,t._y2)}function jo(t,e){this._context=t,this._alpha=e}jo.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,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Ho(this,t,e)}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=e}};const Go=function t(e){function n(t){return e?new jo(t,e):new Fo(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Wo(t,e){this._context=t,this._alpha=e}Wo.prototype={areaStart:Eo,areaEnd:Eo,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,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Ho(this,t,e)}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=e}};const qo=function t(e){function n(t){return e?new Wo(t,e):new Bo(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Zo(t,e){this._context=t,this._alpha=e}Zo.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,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,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:Ho(this,t,e)}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=e}};const Ko=function t(e){function n(t){return e?new Zo(t,e):new Uo(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Jo(t){this._context=t}function Qo(t){return new Jo(t)}function ts(t){return t<0?-1:1}function es(t,e,n){var i=t._x1-t._x0,r=e-t._x1,a=(t._y1-t._y0)/(i||r<0&&-0),o=(n-t._y1)/(r||i<0&&-0),s=(a*r+o*i)/(i+r);return(ts(a)+ts(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function ns(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function is(t,e,n){var i=t._x0,r=t._y0,a=t._x1,o=t._y1,s=(a-i)/3;t._context.bezierCurveTo(i+s,r+s*e,a-s,o-s*n,a,o)}function rs(t){this._context=t}function as(t){this._context=new os(t)}function os(t){this._context=t}function ss(t){return new rs(t)}function cs(t){return new as(t)}function ls(t){this._context=t}function us(t){var e,n,i=t.length-1,r=new Array(i),a=new Array(i),o=new Array(i);for(r[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e<i-1;++e)r[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(r[i-1]=2,a[i-1]=7,o[i-1]=8*t[i-1]+t[i],e=1;e<i;++e)n=r[e]/a[e-1],a[e]-=n,o[e]-=n*o[e-1];for(r[i-1]=o[i-1]/a[i-1],e=i-2;e>=0;--e)r[e]=(o[e]-r[e+1])/a[e];for(a[i-1]=(t[i]+r[i-1])/2,e=0;e<i-1;++e)a[e]=2*t[e+1]-r[e+1];return[r,a]}function hs(t){return new ls(t)}function ds(t,e){this._context=t,this._t=e}function fs(t){return new ds(t,.5)}function gs(t){return new ds(t,0)}function ps(t){return new ds(t,1)}function _s(t){return t}Jo.prototype={areaStart:Eo,areaEnd:Eo,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},rs.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:is(this,this._t0,ns(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,is(this,ns(this,n=es(this,t,e)),n);break;default:is(this,this._t0,n=es(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(as.prototype=Object.create(rs.prototype)).point=function(t,e){rs.prototype.point.call(this,e,t)},os.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,i,r,a){this._context.bezierCurveTo(e,t,i,n,a,r)}},ls.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var i=us(t),r=us(e),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(i[0][a],r[0][a],i[1][a],r[1][a],t[o],e[o
vendor: 4,427 bytes, line 1
1]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},ds.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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var vs=1e-6;function xs(t){return"translate("+t+",0)"}function ys(t){return"translate(0,"+t+")"}function ms(t){return e=>+t(e)}function bs(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Ts(){return!this.__axis}function ws(t,e){var n=[],i=null,r=null,a=6,o=6,s=3,c="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,l=1===t||4===t?-1:1,u=4===t||2===t?"x":"y",h=1===t||3===t?xs:ys;function d(d){var f=null==i?e.ticks?e.ticks.apply(e,n):e.domain():i,g=null==r?e.tickFormat?e.tickFormat.apply(e,n):_s:r,p=Math.max(a,0)+s,_=e.range(),v=+_[0]+c,x=+_[_.length-1]+c,y=(e.bandwidth?bs:ms)(e.copy(),c),m=d.selection?d.selection():d,b=m.selectAll(".domain").data([null]),T=m.selectAll(".tick").data(f,e).order(),w=T.exit(),k=T.enter().append("g").attr("class","tick"),A=T.select("line"),S=T.select("text");b=b.merge(b.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),T=T.merge(k),A=A.merge(k.append("line").attr("stroke","currentColor").attr(u+"2",l*a)),S=S.merge(k.append("text").attr("fill","currentColor").attr(u,l*p).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),d!==m&&(b=b.transition(d),T=T.transition(d),A=A.transition(d),S=S.transition(d),w=w.transition(d).attr("opacity",vs).attr("transform",function(t){return isFinite(t=y(t))?h(t+c):this.getAttribute("transform")}),k.attr("opacity",vs).attr("transform",function(t){var e=this.parentNode.__axis;return h((e&&isFinite(e=e(t))?e:y(t))+c)})),w.remove(),b.attr("d",4===t||2===t?o?"M"+l*o+","+v+"H"+c+"V"+x+"H"+l*o:"M"+c+","+v+"V"+x:o?"M"+v+","+l*o+"V"+c+"H"+x+"V"+l*o:"M"+v+","+c+"H"+x),T.attr("opacity",1).attr("transform",function(t){return h(y(t)+c)}),A.attr(u+"2",l*a),S.attr(u,l*p).text(g),m.filter(Ts).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),m.each(function(){this.__axis=y})}return d.scale=function(t){return arguments.length?(e=t,d):e},d.ticks=function(){return n=Array.from(arguments),d},d.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),d):n.slice()},d.tickValues=function(t){return arguments.length?(i=null==t?null:Array.from(t),d):i&&i.slice()},d.tickFormat=function(t){return arguments.length?(r=t,d):r},d.tickSize=function(t){return arguments.length?(a=o=+t,d):a},d.tickSizeInner=function(t){return arguments.length?(a=+t,d):a},d.tickSizeOuter=function(t){return arguments.length?(o=+t,d):o},d.tickPadding=function(t){return arguments.length?(s=+t,d):s},d.offset=function(t){return arguments.length?(c=+t,d):c},d}function ks(t){return ws(1,t)}function As(t){return ws(2,t)}function Ss(t){return ws(3,t)}function Cs(t){return ws(4,t)}function Es(t,e,n){this.k=t,this.x=e,this.y=n}Es.prototype={constructor:Es,scale:function(t){return 1===t?this:new Es(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new Es(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
1var Ms=new Es(1,0,0);Es.prototype;
2/*!
3* Copyright (c) 2017 ~ present NAVER Corp.
4 * billboard.js project is licensed under the MIT license
5 * 
6 * billboard.js, JavaScript chart library
7 * https://naver.github.io/billboard.js/
8 * 
9 * @version 3.5.1
10*/
11var Ls="object"==typeof globalThis&&null!==globalThis&&globalThis.Object===Object&&globalThis||"object"==typeof global&&null!==global&&global.Object===Object&&global||"object"==typeof self&&null!==self&&self.Object===Object&&self||Function("return this")();Ls.requestIdleCallback=Ls.requestIdleCallback||function(t){return setTimeout(t,1)},Ls.requestAnimationFrame=Ls.requestAnimationFrame||function(t){return setTimeout(t,1)};var Rs=null==Ls?void 0:Ls.document,Ds={AREA:"area",AREA_LINE_RANGE:"area-line-range",AREA_SPLINE:"area-spline",AREA_SPLINE_RANGE:"area-spline-range",AREA_STEP:"area-step",BAR:"bar",BUBBLE:"bubble",CANDLESTICK:"candlestick",DONUT:"donut",GAUGE:"gauge",LINE:"line",PIE:"pie",POLAR:"polar",RADAR:"radar",SCATTER:"scatter",SPLINE:"spline",STEP:"step"},Is={AREA:"initArea",AREA_LINE_RANGE:"initArea",AREA_SPLINE:"initArea",AREA_SPLINE_RANGE:"initArea",AREA_STEP:"initArea",BAR:"initBar",BUBBLE:"initCircle",CANDLESTICK:"initCandlestick",DONUT:"initArc",GAUGE:"initArc",LINE:"initLine",PIE:"initArc",POLAR:"initPolar",RADAR:"initCircle",SCATTER:"initCircle",SPLINE:"initLine",STEP:"initLine"},$s={Area:[Ds.AREA,Ds.AREA_SPLINE,Ds.AREA_SPLINE_RANGE,Ds.AREA_LINE_RANGE,Ds.AREA_STEP],AreaRange:[Ds.AREA_SPLINE_RANGE,Ds.AREA_LINE_RANGE],Arc:[Ds.PIE,Ds.DONUT,Ds.GAUGE,Ds.POLAR,Ds.RADAR],Line:[Ds.LINE,Ds.SPLINE,Ds.AREA,Ds.AREA_SPLINE,Ds.AREA_SPLINE_RANGE,Ds.AREA_LINE_RANGE,Ds.STEP,Ds.AREA_STEP],Step:[Ds.STEP,Ds.AREA_STEP],Spline:[Ds.SPLINE,Ds.AREA_SPLINE,Ds.AREA_SPLINE_RANGE]},Ps=function(){return Ps=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Ps.apply(this,arguments)};function Os(t,e,n){if(n||2===arguments.length)for(var i,r=0,a=e.length;r<a;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}var Xs=function(t){return t||0===t},Ns=function(t){return"function"==typeof t},Fs=function(t){return"string"==typeof t},zs=function(t){return"number"==typeof t},Bs=function(t){return void 0===t},Ys=function(t){return void 0!==t},Us=function(t){return"boolean"==typeof t},Vs=function(t){return 10*Math.ceil(t/10)},Hs=function(t){return Math.ceil(t)+.5},js=function(t){return t[1]-t[0]},Gs=function(t){return"object"==typeof t},Ws=function(t){return Bs(t)||null===t||Fs(t)&&0===t.length||Gs(t)&&!(t instanceof Date)&&0===Object.keys(t).length||zs(t)&&isNaN(t)},qs=function(t){return!Ws(t)},Zs=function(t){return Array.isArray(t)},Ks=function(t){return t&&!(null==t?void 0:t.nodeType)&&Gs(t)&&!Zs(t)};function Js(t,e,n){return Ys(t[e])?t[e]:n}function Qs(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var r=Ns(t);return r&&t.call.apply(t,Os([e],n,!1)),r}function tc(t,e){var n=0,i=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];! --n&&e.apply.apply(e,Os([this],t,!1))};"duration"in t?t.each(function(){return++n}).on("end",i):(++n,t.call(i))}function ec(t){return Fs(t)?t.replace(/</g,"&lt;").replace(/>/g,"&gt;"):t}function nc(t,e,n,i){if(void 0===n&&(n=[-1,1]),void 0===i&&(i=!1),t&&Fs(e))if(-1===e.indexOf("\n"))t.text(e);else{var r=[t.text(),e].map(function(t){return t.replace(/[\s\n]/g,"")});if(r[0]!==r[1]){var a=e.split("\n"),o=i?a.length-1:1;t.html(""),a.forEach(function(e,i){t.append("tspan").attr("x",0).attr("dy","".concat(0===i?n[0]*o:n[1],"em")).text(e)})}}}function ic(t){var e=t.getBBox(),n=e.x,i=e.y,r=e.width,a=e.height;return[{x:n,y:i+a},{x:n,y:i},{x:n+r,y:i},{x:n+r,y:i+a}]}function rc(t,e){var n;return jn(t&&(null===(n=t.touches||t.sourceEvent&&t.sourceEvent.touches)||void 0===n?void 0:n[0])||t,e).map(function(t){return isNaN(t)?0:t})}function ac(t){var e,n,i=t.event,r=t.$el,a=r.subchart.main||r.main;return i&&"brush"===i.type?e=i.selection:a&&(e=a.select(".bb-brush").node())&&(e=(n=e.__brush)?n.dim.output(n.selection):null),e}function oc(t){return!("rect"in t)||"rect"in t&&t.hasAttribute("width")&&t.rect.width!==+t.getAttribute("width")?t.rect=t.getBoundingClientRect():t.rect}function sc(t,e,n){void 0===t&&(t=!0),void 0===e&&(e=0),void 0===n&&(n=1e4);var i=Math.floor(Math.random()*(n-e)+e);return t?String(i):i}function cc(t,e,n,i,r){if(n>i)return-1;var a=Math.floor((n+i)/2),o=t[a],s=o.x,c=o.w,l=void 0===c?0:c;return r&&(s=t[a].y,l=t[a].h),e>=s&&e<=s+l?a:e<s?cc(t,e,n,a-1,r):cc(t,e,a+1,i,r)}function lc(t,e){for(var n in void 0===t&&(t={}),Zs(e)&&e.forEach(function(e){return lc(t,e)}),e)/^\d+$/.test(n)||n in t||(t[n]=e[n]);return t}var uc=function(t){return t.charAt(0).toUpperCase()+t.slice(1)};var hc=function(t){return[].slice.call(t)};function dc(t){var e=t?t.transform:null,n=e&&e.baseVal;return n&&n.numberOfItems?n.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function fc(t){var e=t[0]instanceof Date,n=(e?t.map(Number):t).filter(function(t,e,n){return n.indexOf(t)===e});return e?n.map(function(t){return new Date(t)}):n}function gc(t){return t&&t.length?t.reduce(function(t,e){return t.concat(e)}):[]}function pc(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!e.length||1===e.length&&!e[0])return t;var i=e.shift();
11return Ks(t)&&Ks(i)&&Object.keys(i).forEach(function(e){var n=i[e];Ks(n)?(!t[e]&&(t[e]={}),t[e]=pc(t[e],n)):t[e]=Zs(n)?n.concat():n}),pc.apply(void 0,Os([t],e,!1))}function _c(t,e){var n;return void 0===e&&(e=!0),t[0]instanceof Date?n=e?function(t,e){return t-e}:function(t,e){return e-t}:e&&!t.every(isNaN)?n=function(t,e){return t-e}:e||(n=function(t,e){return(t>e?-1:t<e&&1)||t===e&&0}),t.concat().sort(n)}function vc(t,e){var n=e.filter(function(t){return qs(t)});return n.length?zs(n[0])?n=Math[t].apply(Math,n):n[0]instanceof Date&&(n=_c(n,"min"===t)[0]):n=void 0,n}var xc={mouse:function(){try{return new MouseEvent("t"),function(t,e,n){void 0===n&&(n={bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0}),t.dispatchEvent(new MouseEvent(e,n))}}catch(t){return function(t,e,n){void 0===n&&(n={bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});var i=Rs.createEvent("MouseEvent");i.initMouseEvent(e,n.bubbles,n.cancelable,Ls,0,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}}(),touch:function(t,e,n){var i=new Touch(pc({identifier:Date.now(),target:t,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},n));t.dispatchEvent(new TouchEvent(e,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[i],targetTouches:[],changedTouches:[i]}))}};function yc(t,e){var n=t;for(var i in e)n=n.replace(new RegExp("{=".concat(i,"}"),"g"),e[i]);return n}function mc(t){var e,n;if(t instanceof Date)n=t;else if(Fs(t)){var i=this.config;n=null!==(e=this.format.dataTime(i.data_xFormat)(t))&&void 0!==e?e:new Date(t)}else zs(t)&&!isNaN(t)&&(n=new Date(+t));return n&&!isNaN(+n)||console&&console.error&&console.error("Failed to parse x '".concat(t,"' to Date object")),n}function bc(){return!1===(null==Rs?void 0:Rs.hidden)||"visible"===(null==Rs?void 0:Rs.visibilityState)}function Tc(t,e){!1===e()?Ls.requestAnimationFrame(function(){return Tc(t,e)}):t()}function wc(t){var e,n=t,i=n.config,r="";if(Ws(i.data_type||i.data_types)&&!n[Is.LINE])r="line";else for(var a in Is){var o=Ds[a];if(n.hasType(o)&&!n[Is[a]]){r=o;break}}r&&function(t,e){var n,i="[billboard.js]",r="https://github.com/naver/billboard.js/wiki/CHANGELOG-v2#modularization-by-its-functionality";(null===(n=Ls.console)||void 0===n?void 0:n.error)&&(console.error("❌ ".concat(i," ").concat(t),"background:red;color:white;display:block;font-size:15px",e),console.info("%cℹ️","font-size:15px",r));throw Error("".concat(i," ").concat(t.replace(/\%c([a-z-]+)/i,"'$1' ")," ").concat(e))}("Please, make sure if %c".concat((void 0===e&&(e="-"),r.split(e).map(function(t,e){return e?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()}).join(""))),"module has been imported and specified correctly.")}var kc={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_"},Ac={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcs:"bb-arcs",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsTitle:"bb-chart-arcs-title"},Sc={area:"bb-area",areas:"bb-areas"},Cc={axis:"bb-axis",axisX:"bb-axis-x",axisXLabel:"bb-axis-x-label",axisY:"bb-axis-y",axisY2:"bb-axis-y2",axisY2Label:"bb-axis-y2-label",axisYLabel:"bb-axis-y-label"},Ec={bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars"},Mc={candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"},Lc={chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"},Rc={colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"},Dc={dragarea:"bb-dragarea",INCLUDED:"_included_"},Ic={chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",gaugeValue:"bb-gauge-value"},$c={legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile"},Pc={chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"},Oc={eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"},Xc={focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"},Nc={grid:"bb-grid",gridLines:"bb-grid-lines",xgrid:"bb-xgrid",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids"},Fc={region:"bb-region",regions:"bb-regions"},zc={selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"},Bc={shape:"bb-shape",shapes:"bb-shapes"},Yc={brush:"bb-brush",subchart:"bb-subchart"},Uc={chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",TextOverlapping:"text-overlapping"},Vc={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},Hc=Ps(Ps(Ps(Ps(Ps(Ps(Ps(Ps(Ps(Ps(Ps(Ps(Ps(Ps(Ps(Ps(Ps(Ps(Ps(Ps(Ps(Ps(Ps({},kc),Ac),Sc),Cc),Ec),Mc),Lc),Rc),Dc),Ic),$c),Pc),Oc),Xc),Nc),{chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"}),Fc),zc),Bc),Yc),Uc),Vc),{buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"}),jc={element:function(){return function(){return{chart:null,main:null,svg:null,axis:{x:null,y:null,y2:null,subX:null},defs:null,tooltip:null,legend:null,title:null,subchart:{main:null,bar:null,line:null,area:null},arcs:null,bar:null,candlestick:null,line:null,area:null,circle:null,radar:null,text:null,grid:{main:null,x:null,y:null},gridLines:{main:null,x:null,y:null},region:{main:null,list:null},eventRect:null,zoomResetBtn:null}}}(),state:function(){return function(){return{width:0,width2:0,height:0,height2:0,margin:{top:0,bottom:0,left:0,right:0},margin2:{top:0,bottom:0,left:0,right:0},margin3:{top:0,bottom:0,left:0,right:0},arcWidth:0,arcHeight:0,xAxisHeight:0,hasAxis:!1,hasRadar:!1,cssRule:{},current:{width:0,height:0,dataMax:0,maxTickWidths:{x:{size:0,ticks:[],clipPath:0,domain:""},y:{size:0,domain:""},y2:{size:0,domain:""}},types:[]},isLegendRight:!1,isLegendInset:!1,isLegendTop:!1,isLegendLeft:!1,legendStep:0,legendItemWidth:0,legendItemHeight:0,legendHasRendered:!1,eventReceiver:{currentIdx:-1,rect:{},data:[],coords:[]},axis:{x:{padding:{left:0,right:0},tickCount:0}},rotatedPadding:{left:30,right:0,top:5},withoutFadeIn:{},inputType:"",datetimeId:"",clip:{id:"",idXAxis:"",idYAxis:"",idXAxisTickTexts:"",idGrid:"",idSubchart:"",path:"",pathXAxis:"",pathYAxis:"",pathXAxisTickTexts:"",pathGrid:""}
11,event:null,dragStart:null,dragging:!1,flowing:!1,cancelClick:!1,mouseover:!1,rendered:!1,transiting:!1,redrawing:!1,resizing:!1,toggling:!1,zooming:!1,hasNegativeValue:!1,hasPositiveValue:!0,orgAreaOpacity:"0.2",hiddenTargetIds:[],hiddenLegendIds:[],focusedTargetIds:[],defocusedTargetIds:[],radius:0,innerRadius:0,outerRadius:void 0,innerRadiusRatio:0,gaugeArcWidth:0,radiusExpanded:0,xgridAttr:{x1:null,x2:null,y1:null,y2:null}}}}()},Gc=function(){function t(){var t=this;Object.keys(jc).forEach(function(e){t[e]=new jc[e]})}return t.prototype.getStore=function(t){return this[t]},t}(),Wc={bindto:"#chart",background:{},clipPath:!0,svg_classname:void 0,size_width:void 0,size_height:void 0,padding:!0,padding_left:void 0,padding_right:void 0,padding_top:void 0,padding_bottom:void 0,resize_auto:!0,resize_timer:!0,onclick:void 0,onover:void 0,onout:void 0,onresize:void 0,onresized:void 0,onbeforeinit:void 0,oninit:void 0,onafterinit:void 0,onrendered:void 0,transition_duration:250,plugins:[],render:{},regions:[]},qc={boost_useCssRule:!1,boost_useWorker:!1},Zc={data_x:void 0,data_idConverter:function(t){return t},data_names:{},data_classes:{},data_type:void 0,data_types:{},data_order:"desc",data_groups:[],data_color:void 0,data_colors:{},data_labels:{},data_labels_backgroundColors:void 0,data_labels_colors:void 0,data_labels_position:{},data_hide:!1,data_filter:void 0,data_onclick:function(){},data_onover:function(){},data_onout:function(){},data_onshown:void 0,data_onhidden:void 0,data_onmin:void 0,data_onmax:void 0,data_url:void 0,data_headers:void 0,data_json:void 0,data_rows:void 0,data_columns:void 0,data_mimeType:"csv",data_keys:void 0,data_empty_label_text:""},Kc={color_pattern:[],color_tiles:void 0,color_threshold:{},color_onover:void 0},Jc={interaction_enabled:!0,interaction_brighten:!0,interaction_inputType_mouse:!0,interaction_inputType_touch:{}},Qc={legend_show:!0,legend_hide:!1,legend_contents_bindto:void 0,legend_contents_template:void 0,legend_position:"bottom",legend_inset_anchor:"top-left",legend_inset_x:10,legend_inset_y:0,legend_inset_step:void 0,legend_item_onclick:void 0,legend_item_onover:void 0,legend_item_onout:void 0,legend_equally:!1,legend_padding:0,legend_item_tile_width:10,legend_item_tile_height:10,legend_usePoint:!1},tl={title_text:void 0,title_padding:{top:0,right:0,bottom:0,left:0},title_position:"center"},el={tooltip_show:!0,tooltip_doNotHide:!1,tooltip_grouped:!0,tooltip_format_title:void 0,tooltip_format_name:void 0,tooltip_format_value:void 0,tooltip_position:void 0,tooltip_contents:{},tooltip_init_show:!1,tooltip_init_x:0,tooltip_init_position:{top:"0px",left:"50px"},tooltip_linked:!1,tooltip_linked_name:"",tooltip_onshow:function(){},tooltip_onhide:function(){},tooltip_onshown:function(){},tooltip_onhidden:function(){},tooltip_order:null},nl=function(){function t(){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=function(t){if(Ks(t)&&t.constructor){var e=new t.constructor;for(var i in t)e[i]=n(t[i]);return e}return t};return t.map(function(t){return n(t)}).reduce(function(t,e){return Ps(Ps({},t),e)})}(Wc,qc,Zc,Kc,Jc,Qc,tl,el,t.data)}return t.setOptions=function(t){this.data=t.reduce(function(t,e){return Ps(Ps({},t),e)},this.data)},t.data={},t}(),il="__colorPattern__",rl="$dataMinMax",al="$dataTotalSum",ol="$totalPerIndex",sl="legendItemTextBox",cl="setOverOut",ll="callOverOutForTouch",ul="textRect",hl=function(){function t(){this.cache={}}return t.prototype.add=function(t,e,n){return void 0===n&&(n=!1),this.cache[t]=n?this.cloneTarget(e):e,this.cache[t]},t.prototype.remove=function(t){var e=this;hc(t).forEach(function(t){return delete e.cache[t]})},t.prototype.get=function(t,e){if(void 0===e&&(e=!1),e){for(var n=[],i=0,r=void 0;r=t[i];i++)r in this.cache&&n.push(this.cloneTarget(this.cache[r]));return n}var a=this.cache[t];return Xs(a)?a:null},t.prototype.reset=function(t){for(var e in this.cache)(t||/^\$/.test(e))&&(this.cache[e]=null)},t.prototype.cloneTarget=function(t){return{id:t.id,id_org:t.id_org,values:t.values.map(function(t){return{x:t.x,value:t.value,id:t.id}})}},t}(),dl=Ls.setTimeout,fl=Ls.clearTimeout;function gl(){var t=[],e=function(e,n){Tc(function(){null==n||n()},function(){for(var e,n=0,i=0,r=void 0;r=t[i];i++)if(!0===r||(null===(e=r.empty)||void 0===e?void 0:e.call(r)))n++;else{if(!1===bc()){n=t.length;break}try{r.transition()}catch(a){n++}}return n===t.length})};return e.add=function(e){Zs(e)?t=t.concat(e):t.push(e)},e}var pl={};function _l(t,e,n,i){var r;if(void 0===t&&(t=!0),Ls.Worker&&t){var a=function(t,e){var n,i=t.toString(),r=i.replace(/(function|[\s\W\n])/g,"").substring(0,15);return r in pl||(pl[r]=new Ls.Blob(["".concat(null!==(n=null==e?void 0:e.map(String).join(";"))&&void 0!==n?n:"","\n\n\t\t\tself.onmessage=function({data}) {\n\t\t\t\tconst result = (").concat(i,").apply(null, data);\n\t\t\t\tself.postMessage(result);\n\t\t\t};")],{type:"text/javascript"})),Ls.URL.createObjectURL(pl[r])}(e,i),o=new Ls.Worker(a);r=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];o.postMessage(t),o.onmessage=function(t){return Ls.URL.revokeObjectURL(a),n(t.data)},o.onerror=function(t){console.error(t)}}}else r=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var r=e.apply(void 0,t);n(r)};return r}function vl(t){var e=[];return t.forEach(function(t,n){var i=t[0];t.forEach(function(t,r){if(r>0){if(void 0===e[r-1]&&(e[r-1]={}),void 0===t)throw new Error("Source data is missing a component at (".concat(n,", ").concat(r,")!"));e[r-1][i]=t}})}),e}function xl(t){var e=t[0],n=[];return t.forEach(function(t,i){if(i>0){var r={};t.forEach(function(t,n){if(void 0===t)throw new Error("Source data is missing a component at (".concat(i,", ").concat(n,")!"));r[e[n]]=t}),n.push(r)}}),n}function yl(t,e){var n,i,r=[];return Array.isArray(t)?(n=e.x?e.value.concat(e.x):e.value,r.push(n),t.forEach(function(t){var e=n.map(function(e){var n=function(t,e){if(void 0!==t[e])return t[e];var n=e.replace(/\[(\w+)\]/g,".$1").replace(/^\./,"").split("."),i=t;return n.some(function(t){return!(i=i&&t in i?i[t]:void 0)}),i}(t,e);return void 0===n&&(n=null),n});r.push(e)}),i=xl(r)):(Object.keys(t).forEach(function(e){var n=t[e].concat();n.unshift(e),r.push(n)}),i=vl(r)),i}function ml(t,e){var n,i=t.rows(e);return 1===i.length?(n=[{}
11],i[0].forEach(function(t){n[0][t]=null})):n=t.parse(e),n}function bl(t){return ml({rows:_a,parse:pa},t)}function Tl(t){return ml({rows:ya,parse:xa},t)}function wl(t,e){var n=t||(null==e?void 0:e.data_keys);return(null==n?void 0:n.x)&&(e.data_x=n.x),n}var kl={convertData:function(t,e){var n=this.config,i=n.boost_useWorker,r=t;if(t.bindto&&(r={},["url","mimeType","headers","keys","json","keys","rows","columns"].forEach(function(e){var n="data_".concat(e);n in t&&(r[e]=t[n])})),r.url&&e)!function(t,e,n,i,r){void 0===e&&(e="csv");var a=new XMLHttpRequest,o={csv:bl,tsv:Tl,json:yl};a.open("GET",t),n&&Object.keys(n).forEach(function(t){a.setRequestHeader(t,n[t])}),a.onreadystatechange=function(){if(4===a.readyState){if(200!==a.status)throw new Error("".concat(t,": Something went wrong loading!"));var n=a.responseText;n&&r.call(this,o[e]("json"===e?JSON.parse(n):n,i))}},a.send()}(r.url,r.mimeType,r.headers,wl(r.keys,n),e);else if(r.json)_l(i,yl,e,[vl,xl])(r.json,wl(r.keys,n));else if(r.rows)_l(i,xl,e)(r.rows);else if(r.columns)_l(i,vl,e)(r.columns);else if(t.bindto)throw Error("url or json or rows or columns is required.")},convertDataToTargets:function(t,e){var n=this,i=this,r=i.axis,a=i.config,o=i.state,s=!1,c=!1,l=!1;r&&(s=r.isCategorized(),c=r.isTimeSeries(),l=r.isCustomX());var u,h=Object.keys(t[0]||{}),d=h.length?h.filter(i.isNotX,i):[],f=h.length?h.filter(i.isX,i):[];d.forEach(function(r){var o=n.getXKey(r);l||c?f.indexOf(o)>=0?u=(e&&i.data.xs[r]||[]).concat(t.map(function(t){return t[o]}).filter(Xs).map(function(t,e){return i.generateTargetX(t,r,e)})):a.data_x?u=n.getOtherTargetXs():qs(a.data_xs)&&(u=i.getXValuesOfXKey(o,i.data.targets)):u=t.map(function(t,e){return e}),u&&(n.data.xs[r]=u)}),d.forEach(function(t){if(!n.data.xs[t])throw new Error('x is not defined for id = "'.concat(t,'".'))});var g=d.map(function(e,n){var r=a.data_idConverter.bind(i.api)(e),c=i.getXKey(e),u=l&&s,h=u&&t.map(function(t){return t.x}).every(function(t){return a.axis_x_categories.indexOf(t)>-1}),d=t.__append__,f=null===c&&d?i.api.data.values(e).length:0;return{id:r,id_org:e,values:t.map(function(t,s){var l,g=t[c],p=t[e];return p=null===p||isNaN(p)||Ks(p)?Zs(p)||Ks(p)?p:null:+p,!u&&!o.hasRadar||0!==n||Bs(g)?l=i.generateTargetX(g,e,f+s):(h||0!==n||0!==s||d||(a.axis_x_categories=[]),-1===(l=a.axis_x_categories.indexOf(g))&&(l=a.axis_x_categories.length,a.axis_x_categories.push(g))),(Bs(p)||i.data.xs[e].length<=s)&&(l=void 0),{x:l,value:p,id:r,index:-1}}).filter(function(t){return Ys(t.x)})}});return g.forEach(function(t){a.data_xSort&&(t.values=t.values.sort(function(t,e){return(t.x||0===t.x?t.x:1/0)-(e.x||0===e.x?e.x:1/0)})),t.values.forEach(function(t,e){return t.index=e}),i.data.xs[t.id].sort(function(t,e){return t-e})}),o.hasNegativeValue=i.hasNegativeValueInTargets(g),o.hasPositiveValue=i.hasPositiveValueInTargets(g),a.data_type&&i.setTargetType(i.mapToIds(g).filter(function(t){return!(t in a.data_types)}),a.data_type),g.forEach(function(t){return i.cache.add(t.id_org,t,!0)}),g}},Al={isX:function(t){var e,n,i,r=this.config,a=r.data_x&&t===r.data_x,o=qs(r.data_xs)&&(e=r.data_xs,n=t,i=!1,Object.keys(e).forEach(function(t){return e[t]===n&&(i=!0)}),i);return a||o},isNotX:function(t){return!this.isX(t)},isStackNormalized:function(){var t=this.config;return!(!t.data_stack_normalize||!t.data_groups.length)},isGrouped:function(t){var e=this.config.data_groups;return t?e.some(function(e){return e.indexOf(t)>=0&&e.length>1}):e.length>0},getXKey:function(t){var e=this.config;return e.data_x?e.data_x:qs(e.data_xs)?e.data_xs[t]:null},getXValuesOfXKey:function(t,e){var n,i=this;return(e&&qs(e)?i.mapToIds(e):[]).forEach(function(e){i.getXKey(e)===t&&(n=i.data.xs[e])}),n},getIndexByX:function(t,e){return e?e.indexOf(Fs(t)?t:+t):(this.filterByX(this.data.targets,t)[0]||{index:null}).index},getXValue:function(t,e){var n=this;return t in n.data.xs&&n.data.xs[t]&&Xs(n.data.xs[t][e])?n.data.xs[t][e]:e},getOtherTargetXs:function(){var t=Object.keys(this.data.xs);return t.length?this.data.xs[t[0]]:null},getOtherTargetX:function(t){var e=this.getOtherTargetXs();return e&&t<e.length?e[t]:null},addXs:function(t){var e=this.config;Object.keys(t).forEach(function(n){e.data_xs[n]=t[n]})},isMultipleX:function(){return qs(this.config.data_xs)||!this.config.data_xSort||this.hasType("bubble")||this.hasType("scatter")},addName:function(t){var e,n=this.config;return t&&(e=n.data_names[t.id],t.name=void 0!==e?e:t.id),t},getAllValuesOnIndex:function(t,e){void 0===e&&(e=!1);var n=this,i=n.filterTargetsToShow(n.data.targets).map(function(e){return n.addName(n.getValueOnIndex(e.values,t))});return e&&(i=i.filter(function(t){return t&&"value"in t&&Xs(t.value)})),i},getValueOnIndex:function(t,e){var n=t.filter(function(t){return t.index===e});return n.length?n[0]:null},updateTargetX:function(t,e){var n=this;
11t.forEach(function(t){t.values.forEach(function(i,r){i.x=n.generateTargetX(e[r],t.id,r)}),n.data.xs[t.id]=e})},updateTargetXs:function(t,e){var n=this;t.forEach(function(t){e[t.id]&&n.updateTargetX([t],e[t.id])})},generateTargetX:function(t,e,n){var i=this,r=i.axis,a=(null==r?void 0:r.isCategorized())?n:t||n;if(null==r?void 0:r.isTimeSeries()){var o=mc.bind(i);a=o(t||i.getXValue(e,n))}else(null==r?void 0:r.isCustomX())&&!(null==r?void 0:r.isCategorized())&&(a=Xs(t)?+t:i.getXValue(e,n));return a},updateXs:function(t){t.length&&(this.axis.xs=t.map(function(t){return t.x}))},getPrevX:function(t){var e=this.axis.xs[t-1];return Ys(e)?e:null},getNextX:function(t){var e=this.axis.xs[t+1];return Ys(e)?e:null},getBaseValue:function(t){var e=this,n=e.state.hasAxis,i=t.value;return i&&n&&(e.isAreaRangeType(t)?i=e.getRangedData(t,"mid"):e.isBubbleZType(t)&&(i=e.getBubbleZData(i,"y"))),i},getMinMaxValue:function(t){var e,n,i=this.getBaseValue.bind(this);return(t||this.data.targets.map(function(t){return t.values})).forEach(function(t,r){var a=t.map(i).filter(zs);e=Math.min.apply(Math,Os([r?e:1/0],a,!1)),n=Math.max.apply(Math,Os([r?n:-1/0],a,!1))}),{min:e,max:n}},getMinMaxData:function(){var t=this,e=rl,n=t.cache.get(e);if(!n){var i=t.data.targets.map(function(t){return t.values}),r=t.getMinMaxValue(i),a=[],o=[];i.forEach(function(e){var n=t.getFilteredDataByValue(e,r.min),i=t.getFilteredDataByValue(e,r.max);n.length&&(a=a.concat(n)),i.length&&(o=o.concat(i))}),t.cache.add(e,n={min:a,max:o})}return n},getTotalPerIndex:function(){var t=this,e=ol,n=t.cache.get(e);return t.isStackNormalized()&&!n&&(n=[],t.data.targets.forEach(function(t){t.values.forEach(function(t,e){n[e]||(n[e]=0),n[e]+=zs(t.value)?t.value:0})})),n},getTotalDataSum:function(t){var e=this,n=al,i=e.cache.get(n);if(!zs(i)){var r=gc(e.data.targets.map(function(t){return t.values})).map(function(t){return t.value}).reduce(function(t,e){return t+e});e.cache.add(n,i=r)}return t&&(i-=e.getHiddenTotalDataSum()),i},getHiddenTotalDataSum:function(){var t=this.api,e=this.state.hiddenTargetIds,n=0;return e.length&&(n=t.data.values.bind(t)(e).reduce(function(t,e){return t+e})),n},getFilteredDataByValue:function(t,e){var n=this;return t.filter(function(t){return n.getBaseValue(t)===e})},getMaxDataCount:function(){return Math.max.apply(Math,this.data.targets.map(function(t){return t.values.length}))},getMaxDataCountTarget:function(){var t=this.filterTargetsToShow()||[],e=t.length;return e>1?t=_c(fc(t=t.map(function(t){return t.values}).reduce(function(t,e){return t.concat(e)}).map(function(t){return t.x}))).map(function(t,e){return{x:t,index:e}}):e&&(t=t[0].values),t},mapToIds:function(t){return t.map(function(t){return t.id})},mapToTargetIds:function(t){return t?Zs(t)?t.concat():[t]:this.mapToIds(this.data.targets)},hasTarget:function(t,e){for(var n=this.mapToIds(t),i=0,r=void 0;r=n[i];i++)if(r===e)return!0;return!1},isTargetToShow:function(t){return this.state.hiddenTargetIds.indexOf(t)<0},isLegendToShow:function(t){return this.state.hiddenLegendIds.indexOf(t)<0},filterTargetsToShow:function(t){var e=this;return(t||e.data.targets).filter(function(t){return e.isTargetToShow(t.id)})},mapTargetsToUniqueXs:function(t){var e=this.axis,n=[];return(null==t?void 0:t.length)&&(n=fc(gc(t.map(function(t){return t.values.map(function(t){return+t.x})}))),n=(null==e?void 0:e.isTimeSeries())?n.map(function(t){return new Date(+t)}):n.map(Number)),_c(n)},addTargetIds:function(t,e){var n=this.state;(Zs(e)?e:[e]).forEach(function(e){n[t].indexOf(e)<0&&n[t].push(e)})},removeTargetIds:function(t,e){var n=this.state;(Zs(e)?e:[e]).forEach(function(e){var i=n[t].indexOf(e);i>=0&&n[t].splice(i,1)})},addHiddenTargetIds:function(t){this.addTargetIds("hiddenTargetIds",t)},removeHiddenTargetIds:function(t){this.removeTargetIds("hiddenTargetIds",t)},addHiddenLegendIds:function(t){this.addTargetIds("hiddenLegendIds",t)},removeHiddenLegendIds:function(t){this.removeTargetIds("hiddenLegendIds",t)},getValuesAsIdKeyed:function(t){var e=this,n=e.state.hasAxis,i={},r=e.isMultipleX(),a=r?e.mapTargetsToUniqueXs(t).map(function(t){return Fs(t)?t:+t}):null;return t.forEach(function(t){var o=[];t.values.filter(function(t){var e=t.value;return Xs(e)||null===e}
11).forEach(function(t){var i=t.value;null!==i&&e.isCandlestickType(t)&&(i=Zs(i)?i.slice(0,4):[i.open,i.high,i.low,i.close]),Zs(i)?o.push.apply(o,i):Ks(i)&&"high"in i?o.push.apply(o,Object.values(i)):e.isBubbleZType(t)?o.push(n&&e.getBubbleZData(i,"y")):r?o[e.getIndexByX(t.x,a)]=i:o.push(i)}),i[t.id]=o}),i},checkValueInTargets:function(t,e){for(var n,i=Object.keys(t),r=0;r<i.length;r++){n=t[i[r]].values;for(var a=0;a<n.length;a++)if(e(n[a].value))return!0}return!1},hasMultiTargets:function(){return this.filterTargetsToShow().length>1},hasNegativeValueInTargets:function(t){return this.checkValueInTargets(t,function(t){return t<0})},hasPositiveValueInTargets:function(t){return this.checkValueInTargets(t,function(t){return t>0})},orderTargets:function(t){var e=Os([],t,!0),n=this.getSortCompareFn();return n&&e.sort(n),e},getSortCompareFn:function(t){void 0===t&&(t=!1);var e,n=this.config.data_order,i=/asc/i.test(n),r=/desc/i.test(n);if(i||r){var a=function(t,e){return t+Math.abs(e.value)};e=function(e,n){var r="values"in e?e.values.reduce(a,0):e.value,o="values"in n?n.values.reduce(a,0):n.value;return t?i?r-o:o-r:i?o-r:r-o}}else Ns(n)&&(e=n.bind(this.api));return e||null},filterByX:function(t,e){return gc(t.map(function(t){return t.values})).filter(function(t){return t.x-e===0})},filterRemoveNull:function(t){var e=this;return t.filter(function(t){return Xs(e.getBaseValue(t))})},filterByXDomain:function(t,e){return t.map(function(t){return{id:t.id,id_org:t.id_org,values:t.values.filter(function(t){return e[0]<=t.x&&t.x<=e[1]})}})},hasDataLabel:function(){var t=this.config.data_labels;return Us(t)&&t||Gs(t)&&qs(t)},getDataIndexFromEvent:function(t){var e=this.config,n=this.state,i=n.inputType,r=n.eventReceiver,a=r.coords,o=r.rect,s=e.axis_rotated,c="touch"===i&&t.changedTouches?t.changedTouches[0]:t;return cc(a,s?c.clientY-o.top:c.clientX-o.left,0,a.length-1,s)},getDataLabelLength:function(t,e,n){var i=this,r=[0,0];return i.$el.chart.select("svg").selectAll(".dummy").data([t,e]).enter().append("text").text(function(t){return i.dataLabelFormat(t.id)(t)}).each(function(t,e){r[e]=1.3*this.getBoundingClientRect()[n]}).remove(),r},isNoneArc:function(t){return this.hasTarget(this.data.targets,t.id)},isArc:function(t){return"data"in t&&this.hasTarget(this.data.targets,t.data.id)},findSameXOfValues:function(t,e){var n,i=t[e].x,r=[];for(n=e-1;n>=0&&i===t[n].x;n--)r.push(t[n]);for(n=e;n<t.length&&i===t[n].x;n++)r.push(t[n]);return r},findClosestFromTargets:function(t,e){var n=this,i=t.map(function(t){return n.findClosest(t.values,e)});return n.findClosest(i,e)},findClosest:function(t,e){var n,i=this,r=i.config,a=i.$el.main,o=t.filter(function(t){return t&&Xs(t.value)}),s=r.point_sensitivity;return o.filter(function(t){return i.isBarType(t.id)||i.isCandlestickType(t.id)}).forEach(function(t){var e=i.isBarType(t.id)?".".concat(Ec.chartBar,".").concat(kc.target).concat(i.getTargetSelectorSuffix(t.id)," .").concat(Ec.bar,"-").concat(t.index):".".concat(Mc.chartCandlestick,".").concat(kc.target).concat(i.getTargetSelectorSuffix(t.id)," .").concat(Mc.candlestick,"-").concat(t.index," path");!n&&i.isWithinBar(a.select(e).node())&&(n=t)}),o.filter(function(t){return!i.isBarType(t.id)&&!i.isCandlestickType(t.id)}).forEach(function(t){var r=i.dist(t,e);r<s&&(s=r,n=t)}),n},dist:function(t,e){var n=this,i=n.config.axis_rotated,r=n.scale,a=i?1:0,o=i?0:1,s=n.circleY(t,t.index),c=(r.zoom||r.x)(t.x);return Math.sqrt(Math.pow(c-e[a],2)+Math.pow(s-e[o],2))},convertValuesToStep:function(t){var e=this.axis,n=this.config.line_step_type,i=!!e&&e.isCategorized(),r=Zs(t)?t.concat():[t];if(!i&&!/step\-(after|before)/.test(n))return t;var a=r[0],o=r[r.length-1],s=a.id,c=a.x;return r.unshift({x:--c,value:a.value,id:s}),i&&"step-after"===n&&r.unshift({x:--c,value:a.value,id:s}),c=o.x,r.push({x:++c,value:o.value,id:s}),i&&"step-before"===n&&r.push({x:++c,value:o.value,id:s}),r},convertValuesToRange:function(t){var e=Zs(t)?t.concat():[t],n=[];return e.forEach(function(t){var e=t.x,i=t.id;n.push({x:e,id:i,value:t.value[0]}),n.push({x:e,id:i,value:t.value[2]})}),n},updateDataAttributes:function(t,e){var n=this.config["data_".concat(t)];return Bs(e)||(Object.keys(e).forEach(function(t){n[t]=e[t]}),this.redraw({withLegend:!0})),n},getRangedData:function(t,e,n){void 0===e&&(e=""),void 0===n&&(n="areaRange");var i=null==t?void 0:t.value;if(Zs(i)){var r={areaRange:["high","mid","low"],candlestick:["open","high","low","close","volume"]}[n].indexOf(e);return r>=0&&i?i[r]:void 0}return i?i[e]:i},getRatio:function(t,e,n){void 0===n&&(n=!1);var i=this,r=i.config,a=i.state,o=i.api,s=0;if(e&&o.data.shown().length)if(s=e.ratio||e.value,"arc"===t)if(i.pie.padAngle()())s=e.value/i.getTotalDataSum(!0);else{var c=r.gauge_fullCircle?i.getArcLength():-2*i.getStartAngle(),l=i.hasType("gauge")?c:2*Math.PI;s=(e.endAngle-e.startAngle)/l}else if("index"===t){var u=o.data.values.bind(o),h=this.getTotalPerIndex();if(a.hiddenTargetIds.length){var d=u(a.hiddenTargetIds,!1);d.length&&(d=d.reduce(function(t,e){return t.map(function(t,n){return(zs(t)?t:0)+e[n]})}),h=h.map(function(t,e){return t-d[e]}))}e.ratio=zs(e.value)&&h&&h[e.index]>0?e.value/h[e.index]:0,s=e.ratio}else if("radar"===t)s=parseFloat(String(Math.max(e.value,0)))/a.current.dataMax*r.radar_size_ratio;else if("bar"===t){var f=i.getYScaleById.bind(i)(e.id).domain().reduce(function(t,e){return e-t});s=0===f?0:Math.abs(e.value)/f}return n&&s?100*s:s},updateDataIndexByX:function(t){var e=t.reduce(function(t,e,n){return t[Number(e.x)]=n,t},{});
11this.data.targets.forEach(function(t){t.values.forEach(function(t,n){var i=e[Number(t.x)];void 0===i&&(i=n),t.index=i})})},isBubbleZType:function(t){return this.isBubbleType(t)&&(Ks(t.value)&&("z"in t.value||"y"in t.value)||Zs(t.value)&&2===t.value.length)},isBarRangeType:function(t){var e=t.value;return this.isBarType(t)&&Zs(e)&&2===e.length&&e.every(function(t){return zs(t)})},getDataById:function(t){var e,n=this.cache.get(t)||this.api.data(t);return null!==(e=null==n?void 0:n[0])&&void 0!==e?e:n}},Sl={load:function(t,e){var n,i=this,r=e.append,a=t;a&&(e.filter&&(a=a.filter(e.filter)),(e.type||e.types)&&a.forEach(function(t){var n,r=(null===(n=e.types)||void 0===n?void 0:n[t.id])||e.type;i.setTargetType(t.id,r)}),i.data.targets.forEach(function(t){for(var e=0;e<a.length;e++)if(t.id===a[e].id){t.values=r?t.values.concat(a[e].values):a[e].values,a.splice(e,1);break}}),i.data.targets=i.data.targets.concat(a)),i.updateTargets(i.data.targets),i.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),i.updateTypesElements(),null===(n=e.done)||void 0===n||n.call(i.api)},loadFromArgs:function(t){var e=this;e.config&&(e.cache.reset(),e.convertData(t,function(n){var i=t.data||n;t.append&&(i.__append__=!0),i&&e.load(e.convertDataToTargets(i),t)}))},unload:function(t,e){var n=this,i=n.state,r=n.$el,a=n.$T,o=e,s=t;(n.cache.reset(),o||(o=function(){}),(s=s.filter(function(t){return n.hasTarget(n.data.targets,t)}))&&0!==s.length)?(a(r.svg.selectAll(s.map(function(t){return n.selectorTarget(t)}))).style("opacity","0").remove().call(tc,o),s.forEach(function(t){i.withoutFadeIn[t]=!1,r.legend&&r.legend.selectAll(".".concat($c.legendItem).concat(n.getTargetSelectorSuffix(t))).remove(),n.data.targets=n.data.targets.filter(function(e){return e.id!==t})}),n.updateTypesElements()):o()}},Cl={selectRectForSingle:function(t,e,n){var i,r=this,a=r.config,o=r.$el.main,s=a.data_selection_enabled,c=a.data_selection_grouped,l=a.data_selection_isselectable,u=a.tooltip_grouped,h=r.getAllValuesOnIndex(n);u&&(r.showTooltip(h,t),null===(i=r.showGridFocus)||void 0===i||i.call(r,h),!s||c)||o.selectAll(".".concat(Bc.shape,"-").concat(n)).each(function(){var t;Hn(this).classed(kc.EXPANDED,!0),s&&e.style("cursor",c?"pointer":null),u||(null===(t=r.hideGridFocus)||void 0===t||t.call(r),r.hideTooltip(),!c&&r.setExpand(n))}).filter(function(t){return r.isWithinShape(this,t)}).call(function(i){var a,o,h=i.data();s&&(c||(null==l?void 0:l.bind(r.api)(h)))&&e.style("cursor","pointer"),u||(r.showTooltip(h,t),null===(a=r.showGridFocus)||void 0===a||a.call(r,h),null===(o=r.unexpandCircles)||void 0===o||o.call(r),i.each(function(t){return r.setExpand(n,t.id)}))})},setExpand:function(t,e,n){var i=this,r=i.config;i.$el.circle&&r.point_focus_expand_enabled&&i.expandCircles(t,e,n),i.expandBarTypeShapes(!0,t,e,n)},expandBarTypeShapes:function(t,e,n,i){void 0===t&&(t=!0);var r=this;["bar","candlestick"].filter(function(t){return r.$el[t]}).forEach(function(a){i&&r.$el[a].classed(kc.EXPANDED,!1),r.getShapeByIndex(a,e,n).classed(kc.EXPANDED,t)})},setOverOut:function(t,e){var n=this,i=n.config,r=n.state.hasRadar,a=n.$el.main,o=Ks(e);if(o||-1!==e){var s=i[t?"data_onover":"data_onout"].bind(n.api);if(i.color_onover&&n.setOverColor(t,e,o),o)s(e,a.select(".".concat(Ac.arc).concat(n.getTargetSelectorSuffix(e.id))).node());else if(i.tooltip_grouped)t&&(i.point_focus_only&&r?n.showCircleFocus(n.getAllValuesOnIndex(e,!0)):n.setExpand(e,null,!0)),!n.isMultipleX()&&a.selectAll(".".concat(Bc.shape,"-").concat(e)).each(function(t){s(t,this)});else{var c=n.cache.get(cl)||[],l=a.selectAll(".".concat(Bc.shape,"-").concat(e)).filter(function(t){return n.isWithinShape(this,t)});l.each(function(t){var e=this;(0===c.length||c.every(function(t){return t!==e}))&&(s(t,this),c.push(this))}),c.length>0&&l.empty()&&(s=i.data_onout.bind(n.api),c.forEach(function(t){return s(Hn(t).datum(),t)}),c=[]),n.cache.add(cl,c)}}},callOverOutForTouch:function(t){var e=this,n=e.cache.get(ll);(Ks(t)&&n?t.id!==n.id:t!==n)&&((n||zs(n))&&e.setOverOut(!1,n),(t||zs(t))&&e.setOverOut(!0,t),e.cache.add(ll,t))},getDraggableSelection:function(){var t=this,e=t.config,n=t.state;return e.interaction_enabled&&e.data_selection_draggable&&t.drag?li().on("drag",function(e){n.event=e,t.drag(rc(e,this))}).on("start",function(e){n.event=e,t.dragstart(rc(e,this))}).on("end",function(e){n.event=e,t.dragend()}):function(){}},dispatchEvent:function(t,e,n){var i=this,r=i.config,a=i.state,o=a.eventReceiver,s=a.hasAxis,c=a.hasRadar,l=i.$el,u=l.eventRect,h=l.arcs,d=l.radar,f=i.isMultipleX(),g=(c?d.axes.select(".".concat(Cc.axis,"-").concat(e," text")):u||h.selectAll(".".concat(kc.target," path")).filter(function(t,n){return n===e})).node(),p=g.getBoundingClientRect(),_=p.width,v=p.left,x=p.top;if(s&&!c&&!f){var y=o.coords[e];_=y.w,v+=y.x,x+=y.y}var m=v+(n?n[0]:0)+(f||r.axis_rotated?0:_/2),b=x+(n?n[1]:0),T={screenX:m,screenY:b,clientX:m,clientY:b};xc[/^(mouse|click)/.test(t)?"mouse":"touch"](g,t,T)},setDragStatus:function(t){this.state.dragging=t},unbindZoomEvent:function(){var t=this.$el,e=t.eventRect,n=t.zoomResetBtn;null==e||e.on(".zoom wheel.zoom .drag",null),null==n||n.on("click",null).style("display","none")},unbindAllEvents:function(){var t,e=this,n=e.$el,i=n.arcs,r=n.eventRect,a=n.legend,o=n.region,s=n.svg,c=e.brush,l=["wheel","click","mouseover","mousemove","mouseout","touchstart","touchmove","touchend","touchstart.eventRect","touchmove.eventRect","touchend.eventRect",".brush",".drag",".zoom","wheel.zoom","dblclick.zoom"].join(" ");[s,r,null==o?void 0:o.list,null==c?void 0:c.getSelection(),null==i?void 0:i.selectAll("path"),null==a?void 0:a.selectAll("g")].forEac
11h(function(t){return null==t?void 0:t.on(l,null)}),null===(t=e.unbindZoomEvent)||void 0===t||t.call(e)}},El={generateClass:function(t,e){return" ".concat(t," ").concat(t+this.getTargetSelectorSuffix(e))},getClass:function(t,e){var n=this,i=/s$/.test(t),r=/^(area|arc|line)s?$/.test(t),a=i?"id":"index";return function(o){var s=o.data||o;return((e?n.generateClass(Hc[i?"shapes":"shape"],s[a]):"")+n.generateClass(Hc[t],s[r?"id":a])).trim()}},getChartClass:function(t){var e=this;return function(n){return Hc["chart".concat(t)]+e.classTarget((n.data?n.data:n).id)}},generateExtraLineClass:function(){var t=this.config.line_classes||[],e=[];return function(n){var i,r=n.id||(null===(i=n.data)||void 0===i?void 0:i.id)||n;return e.indexOf(r)<0&&e.push(r),t[e.indexOf(r)%t.length]}},classRegion:function(t,e){return"".concat(this.generateClass(Hc.region,e)," ").concat("class"in t?t.class:"")},classTarget:function(t){var e=this.config.data_classes[t],n="";return e&&(n=" ".concat(Hc.target,"-").concat(e)),this.generateClass(Hc.target,t)+n},classFocus:function(t){return this.classFocused(t)+this.classDefocused(t)},classFocused:function(t){return" ".concat(this.state.focusedTargetIds.indexOf(t.id)>=0?Hc.focused:"")},classDefocused:function(t){return" ".concat(this.state.defocusedTargetIds.indexOf(t.id)>=0?Hc.defocused:"")},getTargetSelectorSuffix:function(t){return(t||0===t?"-".concat(t):"").replace(/([\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\])/g,"-")},selectorTarget:function(t,e){var n=e||"",i=this.getTargetSelectorSuffix(t);return"".concat(n,".").concat(Hc.target+i,", ").concat(n,".").concat(Hc.circles+i)},selectorTargets:function(t,e){var n=this,i=t||[];return i.length?i.map(function(t){return n.selectorTarget(t,e)}):null},selectorLegend:function(t){return".".concat(Hc.legendItem+this.getTargetSelectorSuffix(t))},selectorLegends:function(t){var e=this;return(null==t?void 0:t.length)?t.map(function(t){return e.selectorLegend(t)}):null}};var Ml=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],Ll={generateColor:function(){var t=this,e=t.$el,n=t.config,i=n.data_colors,r=n.data_color,a=[],o=qs(n.color_pattern)?n.color_pattern:Ta(function(t){var e=il,n=Rs.body,i=n[e];if(!i){var r=t.classed(Rc.colorPattern,!0).style("background-image");t.classed(Rc.colorPattern,!1),r.indexOf(";")>-1&&(i=r.replace(/url[^#]*|["'()]|(\s|%20)/g,"").split(";").map(function(t){return t.trim().replace(/[\"'\s]/g,"")}).filter(Boolean),n[e]=i)}return i}(e.chart)||Ml).range(),s=o;if(Ns(n.color_tiles)){var c=n.color_tiles.bind(t.api)(),l=o.map(function(e,n){var i=e.replace(/[#\(\)\s,]/g,""),r="".concat(t.state.datetimeId,"-pattern-").concat(i,"-").concat(n);return function(t,e,n){var i=Hn(t.cloneNode(!0));return i.attr("id",n).insert("rect",":first-child").attr("width",i.attr("width")).attr("height",i.attr("height")).style("fill",e),{id:n,node:i.node()}}(c[n%c.length],e,r)});o=l.map(function(t){return"url(#".concat(t.id,")")}),t.patterns=l}return function(e){var c,l,u=e.id||(null===(c=e.data)||void 0===c?void 0:c.id)||e,h=t.isTypeOf(u,["line","spline","step"])||!n.data_types[u];return Ns(i[u])?l=i[u].bind(t.api)(e):i[u]?l=i[u]:(a.indexOf(u)<0&&a.push(u),l=h?s[a.indexOf(u)%s.length]:o[a.indexOf(u)%o.length],i[u]=l),Ns(r)?r.bind(t.api)(l,e):l}},generateLevelColor:function(){var t=this.config,e=t.color_pattern,n=t.color_threshold,i="value"===n.unit,r=n.max||100,a=n.values&&n.values.length?n.values:[];return qs(n)?function(t){for(var n=i?t:100*t/r,o=e[e.length-1],s=0,c=a.length;s<c;s++)if(n<=a[s]){o=e[s];break}return o}:null},generateDataLabelBackgroundColorFilter:function(t){var e=this,n=e.$el,i=e.config,r=e.state,a=t||i.data_labels_backgroundColors;if(a){var o=[];Fs(a)?o.push(""):Ks(a)&&(o=Object.keys(a)),o.forEach(function(i){var o="".concat(r.datetimeId,"-labels-bg").concat(e.getTargetSelectorSuffix(i)).concat(t?e.getTargetSelectorSuffix(t):"");n.defs.append("filter").attr("x","0").attr("y","0").attr("width","1").attr("height","1").attr("id",o).html('<feFlood flood-color="'.concat(""===i?a:a[i],'" /><feComposite in="SourceGraphic"/>'))})}},setOverColor:function(t,e){var n=this,i=n.config,r=n.$el.main,a=i.color_onover,o=t?a:n.color;
11Ks(o)?o=function(t){var e=t.id;return e in a?a[e]:n.color(e)}:Fs(o)?o=function(){return a}:Ns(a)&&(o=o.bind(n.api)),r.selectAll(Ks(e)?".".concat(Ac.arc).concat(n.getTargetSelectorSuffix(e.id)):".".concat(Bc.shape,"-").concat(e)).style("fill",o)}},Rl={getYDomainMinMax:function(t,e){var n=this,i=n.axis,r=n.config,a="min"===e,o=r.data_groups,s=n.mapToIds(t),c=n.getValuesAsIdKeyed(t);if(o.length>0){var l=n["has".concat(a?"Negative":"Positive","ValueInTargets")](t);o.forEach(function(t){var e=t.filter(function(t){return s.indexOf(t)>=0});if(e.length){var n=e[0],r=i.getId(n);l&&c[n]&&(c[n]=c[n].map(function(t){return(a?t<0:t>0)?t:0})),e.filter(function(t,e){return e>0}).forEach(function(t){if(c[t]){var e=i.getId(t);c[t].forEach(function(t,i){var o=+t;e!==r||l&&(a?o>0:o<0)||(c[n][i]+=o)})}})}})}return vc(e,Object.keys(c).map(function(t){return vc(e,c[t])}))},isHiddenTargetWithYDomain:function(t){var e=this;return e.state.hiddenTargetIds.some(function(n){return e.axis.getId(n)===t})},getYDomain:function(t,e,n){var i=this,r=i.axis,a=i.config,o=i.scale,s="axis_".concat(e);if(i.isStackNormalized())return[0,100];var c=(null==o?void 0:o[e])&&"log"===o[e].type,l=t.filter(function(t){return r.getId(t.id)===e}),u=n?i.filterByXDomain(l,n):l;if(0===u.length)return i.isHiddenTargetWithYDomain(e)?o[e].domain():"y2"===e?o.y.domain():i.getYDomain(t,"y2",n);var h=a["".concat(s,"_min")],d=a["".concat(s,"_max")],f=a["".concat(s,"_center")],g=a["".concat(s,"_inverted")],p=i.hasDataLabel()&&a.axis_rotated,_=i.hasDataLabel()&&!a.axis_rotated,v=i.getYDomainMinMax(u,"min"),x=i.getYDomainMinMax(u,"max"),y=Os([Ds.BAR,Ds.BUBBLE,Ds.SCATTER],$s.Line,!0).some(function(t){var e=t.indexOf("area")>-1?"area":t;return i.hasType(t,u,!0)&&a["".concat(e,"_zerobased")]});v=Xs(h)?h:Xs(d)?v<d?v:d-10:v,x=Xs(d)?d:Xs(h)?h<x?x:h+10:x,isNaN(v)&&(v=0),isNaN(x)&&(x=v),v===x&&(v<0?x=0:v=0);var m=v>=0&&x>=0,b=v<=0&&x<=0;(Xs(h)&&m||Xs(d)&&b)&&(y=!1),y&&(m&&(v=0),b&&(x=0));var T=Math.abs(x-v),w={top:.1*T,bottom:.1*T};if(Ys(f)){var k=Math.max(Math.abs(v),Math.abs(x));x=f+k,v=f-k}if(p){var A=js(o.y.range()),S=i.getDataLabelLength(v,x,"width").map(function(t){return t/A});["bottom","top"].forEach(function(t,e){w[t]+=T*(S[e]/(1-S[0]-S[1]))})}else if(_){var C=i.getDataLabelLength(v,x,"height");["bottom","top"].forEach(function(t,e){w[t]+=i.convertPixelToScale("y",C[e],T)})}w=i.getResettedPadding(w);var E=a["".concat(s,"_padding")];qs(E)&&["bottom","top"].forEach(function(t){w[t]=r.getPadding(E,t,w[t],T)}),y&&(m&&(w.bottom=v),b&&(w.top=-x));var M=c?[v,x].map(function(t){return t<0?0:t}):[v-w.bottom,x+w.top];return g?M.reverse():M},getXDomainMinMax:function(t,e){var n,i=this.config["axis_x_".concat(e)],r=vc(e,t.map(function(t){return vc(e,t.values.map(function(t){return t.x}))})),a=Ks(i)?i.value:i;return a=Ys(a)&&(null===(n=this.axis)||void 0===n?void 0:n.isTimeSeries())?mc.bind(this)(a):a,Ks(i)&&i.fit&&("min"===e&&a<r||"max"===e&&a>r)&&(a=void 0),Ys(a)?a:r},getXDomainPadding:function(t,e){var n,i=this,r=i.axis,a=i.config.axis_x_padding,o=r.isTimeSeries()&&e,s=js(t);if(r.isCategorized()||o)n=0;else if(i.hasType("bar")){var c=i.getMaxDataCount();n=c>1?s/(c-1)/2:.5}else n=i.getResettedPadding(.01*s);var l=zs(a)?{left:a,right:a}:a,u=l.left,h=void 0===u?n:u,d=l.right,f=void 0===d?n:d;if("px"===a.unit){var g=Math.abs(s+.2*s);h=r.getPadding(a,"left",n,g),f=r.getPadding(a,"right",n,g)}else{var p=s+h+f;if(o&&p){var _=s/e/p;h=h/p/_,f=f/p/_}}return{left:h,right:f}},getXDomain:function(t){var e=this,n=e.axis,i=e.scale.x,r=[e.getXDomainMinMax(t,"min"),e.getXDomainMinMax(t,"max")],a=r[0],o=void 0===a?0:a,s=r[1],c=void 0===s?0:s;if("log"!==i.type){var l=n.isCategorized(),u=n.isTimeSeries(),h=e.getXDomainPadding(r),d=r[0],f=r[1];d-f!==0||l||(u?(d=new Date(.5*d.getTime()),f=new Date(1.5*f.getTime())):(d=0===d?1:.5*d,f=0===f?-1:1.5*f)),(d||0===d)&&(o=u?new Date(d.getTime()-h.left):d-h.left),(f||0===f)&&(c=u?new Date(f.getTime()+h.right):f+h.right)}return[o,c]},updateXDomain:function(t,e,n,i,r){var a,o,s=this,c=s.config,l=s.org,u=s.scale,h=u.x,d=u.subX,f=c.zoom_enabled;if(n&&(h.domain(r||_c(s.getXDomain(t))),l.xDomain=h.domain(),f&&s.zoom.updateScaleExtent(),d.domain(h.domain()),null===(a=s.brush)||void 0===a||a.scale(d)),e){var g=!r&&s.brush&&((o=ac(s))&&o[0]!==o[1])?ac(s).map(d.invert):l.xDomain;h.domain(g),f&&s.zoom.updateScaleExtent()}return i&&h.domain(s.trimXDomain(h.orgDomain())),h.domain()},trimXDomain:function(t){var e=this.getZoomDomain(),n=e[0],i=e[1];return t[0]<=n&&(t[1]=+t[1]+(n-t[0]),t[0]=n),i<=t[1]&&(t[0]=+t[0]-(t[1]-i),t[1]=i),t},getZoomDomain:function(){var t=this.config,e=this.org.xDomain,n=e[0],i=e[1];return Ys(t.zoom_x_min)&&(n=vc("min",[n,t.zoom_x_min])),Ys(t.zoom_x_max)&&(i=vc("max",[i,t.zoom_x_max])),[n,i]},convertPixelToScale:function(t,e,n){var i=this.config,r=this.state,a=i.axis_rotated;return n*(e/r["x"===t?a?"height":"width":a?"width":"height"])}};function Dl(t,e,n){var i=t.config,r="axis_".concat(e,"_tick_format");return(i[r]?i[r]:t.defaultValueFormat)(n)}var Il={yFormat:function(t){return Dl(this,"y",t)},y2Format:function(t){return Dl(this,"y2",t)},getDefaultValueFormat:function(){var t=this,e=t.defaultArcValueFormat,n=t.yFormat,i=t.y2Format,r=t.hasArcType(null,["gauge","polar","radar"]);return function(a,o,s){return(r?e:t.axis&&"y2"===t.axis.getId(s)?i:n).call(t,a,o)}},defaultValueFormat:function(t){return Xs(t)?+t:""},defaultArcValueFormat:function(t,e){return"".concat((100*e).toFixed(1),"%")},defaultPolarValueFormat:function(t){return"".concat(t)},dataLabelFormat:function(t){var e=this.config.data_labels,n=function(t){return Xs(t)?+t:""},i=n;return Ns(e.format)?i=e.format:Gs(e.format)&&(i=e.format[t]?!0===e.format[t]?n:e.format[t]:function(){return""}),i.bind(this.api)}},$l={initLegend:function(){var t=this,e=t.config,n=t.$el;t.legendItemTextBox={},t.state.legendHasRendered=!1,e.legend_show?(e.legend_contents_b
11indto||(n.legend=t.$el.svg.append("g").classed($c.legend,!0).attr("transform",t.getTranslate("legend"))),t.updateLegend()):t.state.hiddenLegendIds=t.mapToIds(t.data.targets)},updateLegend:function(t,e,n){var i=this,r=i.config,a=i.state,o=i.scale,s=i.$el,c=e||{withTransform:!1,withTransitionForTransform:!1,withTransition:!1};c.withTransition=Js(c,"withTransition",!0),c.withTransitionForTransform=Js(c,"withTransitionForTransform",!0),r.legend_contents_bindto&&r.legend_contents_template?i.updateLegendTemplate():i.updateLegendElement(t||i.mapToIds(i.data.targets),c,n),s.legend.selectAll(".".concat($c.legendItem)).classed($c.legendItemHidden,function(t){var e=!i.isTargetToShow(t);return e&&(this.style.opacity=null),e}),i.updateScales(!1,!o.zoom),i.updateSvgSize(),i.transformAll(c.withTransitionForTransform,n),a.legendHasRendered=!0},updateLegendTemplate:function(){var t=this,e=t.config,n=t.$el,i=Hn(e.legend_contents_bindto),r=e.legend_contents_template;if(!i.empty()){var a=t.mapToIds(t.data.targets),o=[],s="";a.forEach(function(e){var n=Ns(r)?r.bind(t.api)(e,t.color(e),t.api.data(e)[0].values):yc(r,{COLOR:t.color(e),TITLE:e});n&&(o.push(e),s+=n)});var c=i.html(s).selectAll(function(){return this.childNodes}).data(o);t.setLegendItem(c),n.legend=i}},updateSizeForLegend:function(t){var e=this,n=e.config,i=e.state,r=i.isLegendTop,a=i.isLegendLeft,o=i.isLegendRight,s=i.isLegendInset,c=i.current,l=t.width,u=t.height,h={top:r?e.getCurrentPaddingTop()+n.legend_inset_y+5.5:c.height-u-e.getCurrentPaddingBottom()-n.legend_inset_y,left:a?e.getCurrentPaddingLeft()+n.legend_inset_x+.5:c.width-l-e.getCurrentPaddingRight()-n.legend_inset_x+.5};e.state.margin3={top:o?0:s?h.top:c.height-u,right:NaN,bottom:0,left:o?c.width-l:s?h.left:0}},transformLegend:function(t){var e=this,n=e.$el.legend;(0,e.$T)(n,t).attr("transform",e.getTranslate("legend"))},updateLegendStep:function(t){this.state.legendStep=t},updateLegendItemWidth:function(t){this.state.legendItemWidth=t},updateLegendItemHeight:function(t){this.state.legendItemHeight=t},updateLegendItemColor:function(t,e){var n=this.$el.legend;n&&n.select(".".concat($c.legendItem,"-").concat(t," line")).style("stroke",e)},getLegendWidth:function(){var t=this.state,e=t.current.width,n=t.isLegendRight,i=t.isLegendInset,r=t.legendItemWidth,a=t.legendStep;return this.config.legend_show?n||i?r*(a+1):e:0},getLegendHeight:function(){var t=this.state,e=t.current,n=t.isLegendRight,i=t.legendItemHeight,r=t.legendStep;return this.config.legend_show?n?e.height:Math.max(20,i)*(r+1):0},opacityForUnfocusedLegend:function(t){return t.classed($c.legendItemHidden)?null:"0.3"},toggleFocusLegend:function(t,e){var n=this,i=n.$el.legend,r=n.$T,a=n.mapToTargetIds(t);i&&r(i.selectAll(".".concat($c.legendItem)).filter(function(t){return a.indexOf(t)>=0}).classed(Xc.legendItemFocused,e)).style("opacity",function(){return e?null:n.opacityForUnfocusedLegend.call(n,Hn(this))})},revertLegend:function(){var t=this.$el.legend,e=this.$T;t&&e(t.selectAll(".".concat($c.legendItem)).classed(Xc.legendItemFocused,!1)).style("opacity",null)},showLegend:function(t){var e=this,n=e.config,i=e.$el,r=e.$T;n.legend_show||(n.legend_show=!0,i.legend?i.legend.style("visibility",null):e.initLegend(),!e.state.legendHasRendered&&e.updateLegend()),e.removeHiddenLegendIds(t),r(i.legend.selectAll(e.selectorLegends(t)).style("visibility",null)).style("opacity",null)},hideLegend:function(t){var e=this,n=e.config,i=e.$el.legend;n.legend_show&&Ws(t)&&(n.legend_show=!1,i.style("visibility","hidden")),e.addHiddenLegendIds(t),i.selectAll(e.selectorLegends(t)).style("opacity","0").style("visibility","hidden")},getLegendItemTextBox:function(t,e){var n,i=this,r=i.cache,a=i.state,o=sl;return t&&((n=!a.redrawing&&r.get(o)||{}
11)[t]||(n[t]=i.getTextRect(e,$c.legendItem),r.add(o,n)),n=n[t]),n},setLegendItem:function(t){var e=this,n=e.$el,i=e.api,r=e.config,a=e.state,o="touch"===a.inputType,s=e.hasType("gauge"),c=r.boost_useCssRule;t.attr("class",function(t){var n=Hn(this);return(!n.empty()&&n.attr("class")||"")+e.generateClass($c.legendItem,t)}).style("visibility",function(t){return e.isLegendToShow(t)?null:"hidden"}),r.interaction_enabled&&(c&&[[".".concat($c.legendItem),"cursor:pointer"],[".".concat($c.legendItem," text"),"pointer-events:none"],[".".concat($c.legendItemPoint," text"),"pointer-events:none"],[".".concat($c.legendItemTile),"pointer-events:none"],[".".concat($c.legendItemEvent),"fill-opacity:0"]].forEach(function(t){var i=t[0],r=t[1];e.setCssRule(!1,i,[r])(n.legend)}),t.style("cursor",e.getStylePropValue("pointer")).on("click",function(t,n){Qs(r.legend_item_onclick,i,n)||(t.altKey?(i.hide(),i.show(n)):(i.toggle(n),Hn(this).classed(Xc.legendItemFocused,!1))),o&&e.hideTooltip()}),!o&&t.on("mouseout",function(t,n){Qs(r.legend_item_onout,i,n)||(Hn(this).classed(Xc.legendItemFocused,!1),s&&e.undoMarkOverlapped(e,".".concat(Ic.gaugeValue)),e.api.revert())}).on("mouseover",function(t,n){Qs(r.legend_item_onover,i,n)||(Hn(this).classed(Xc.legendItemFocused,!0),s&&e.markOverlapped(n,e,".".concat(Ic.gaugeValue)),!a.transiting&&e.isTargetToShow(n)&&i.focus(n))}))},updateLegendElement:function(t,e){var n,i,r,a=this,o=a.config,s=a.state,c=a.$el.legend,l=a.$T,u=o.legend_item_tile_width+5,h=0,d=0,f=0,g={},p={},_={},v=[0],x={},y=0,m=s.isLegendRight||s.isLegendInset,b=t.filter(function(t){return!Ys(o.data_names[t])||null!==o.data_names[t]}),T=e.withTransition,w=function(t,e,n){var i,r=0===n,c=n===b.length-1,l=a.getLegendItemTextBox(e,t),T=l.width+u+(c&&!m?0:10)+o.legend_padding,w=l.height+4,k=m?w:T,A=m?a.getLegendHeight():a.getLegendWidth(),S=function(t,e){e||(i=(A-f-k)/2)<10&&(i=(A-k)/2,f=0,y++),x[t]=y,v[y]=s.isLegendInset?10:i,g[t]=f,f+=k};if(r&&(f=0,y=0,h=0,d=0),o.legend_show&&!a.isLegendToShow(e))return p[e]=0,_[e]=0,x[e]=0,void(g[e]=0);p[e]=T,_[e]=w,(!h||T>=h)&&(h=T),(!d||w>=d)&&(d=w);var C=m?d:h;o.legend_equally?(Object.keys(p).forEach(function(t){return p[t]=h}),Object.keys(_).forEach(function(t){return _[t]=d}),(i=(A-C*b.length)/2)<10?(f=0,y=0,b.forEach(function(t){return S(t)})):S(e,!0)):S(e)};s.isLegendInset&&(y=o.legend_inset_step?o.legend_inset_step:b.length,a.updateLegendStep(y)),s.isLegendRight?(n=function(t){return h*x[t]},i=function(t){return v[x[t]]+g[t]}):s.isLegendInset?(n=function(t){return h*x[t]+10},i=function(t){return v[x[t]]+g[t]}):(n=function(t){return v[x[t]]+g[t]},i=function(t){return d*x[t]});var k=function(t,e){return n(t,e)+4+o.legend_item_tile_width},A=function(t,e){return n(t,e)},S=function(t,e){return n(t,e)-2},C=function(t,e){return n(t,e)-2+o.legend_item_tile_width},E=function(t,e){return i(t,e)+9},M=function(t,e){return i(t,e)-5},L=function(t,e){return i(t,e)+4},R=-200,D=c.selectAll(".".concat($c.legendItem)).data(b).enter().append("g");a.setLegendItem(D),D.append("text").text(function(t){return Ys(o.data_names[t])?o.data_names[t]:t}).each(function(t,e){w(this,t,e)}).style("pointer-events",a.getStylePropValue("none")).attr("x",m?k:R).attr("y",m?R:E),D.append("rect").attr("class",$c.legendItemEvent).style("fill-opacity",a.getStylePropValue("0")).attr("x",m?A:R).attr("y",m?R:M);var I=function(t){var e=a.getDataById(t);return a.levelColor?a.levelColor(e.values[0].value):a.color(e)},$=o.legend_usePoint;if($){var P=[];D.append(function(t){var e=qs(o.point_pattern)?o.point_pattern:[o.point_type];-1===P.indexOf(t)&&P.push(t);var n=e[P.indexOf(t)%e.length];return"rectangle"===n&&(n="rect"),Rs.createElementNS(Ie.svg,"hasValidPointType"in a&&a.hasValidPointType(n)?n:"use")}).attr("class",$c.legendItemPoint).style("fill",I).style("pointer-events",a.getStylePropValue("none")).attr("href",function(t,e,n){var i=n[e].nodeName.toLowerCase(),r=a.getTargetSelectorSuffix(t);return"use"===i?"#".concat(s.datetimeId,"-point").concat(r):void 0})}else D.append("line").attr("class",$c.legendItemTile).style("stroke",I).style("pointer-events",a.getStylePropValue("none")).attr("x1",m?S:R).attr("y1",m?R:L).attr("x2",m?C:R).attr("y2",m?R:L).attr("stroke-width",o.legend_item_tile_height);
11(r=c.select(".".concat($c.legendBackground," rect")),s.isLegendInset&&h>0&&0===r.size()&&(r=c.insert("g",".".concat($c.legendItem)).attr("class",$c.legendBackground).append("rect")),l(c.selectAll("text").data(b).text(function(t){return Ys(o.data_names[t])?o.data_names[t]:t}).each(function(t,e){w(this,t,e)}),T).attr("x",k).attr("y",E),l(c.selectAll("rect.".concat($c.legendItemEvent)).data(b),T).attr("width",function(t){return p[t]}).attr("height",function(t){return _[t]}).attr("x",A).attr("y",M),$)?l(c.selectAll(".".concat($c.legendItemPoint)).data(b),T).each(function(){var t,e,n,i=this.nodeName.toLowerCase(),r=o.point_r,a="x",s="y",c=2,l=2.5;if("circle"===i)a="cx",s="cy",t=r+(u=.2*r),c=2*r,l=-u;else if("rect"===i){var u;e=u=2.5*r,n=u,l=3}Hn(this).attr(a,function(t){return S(t)+c}).attr(s,function(t){return L(t)-l}).attr("r",t).attr("width",e).attr("height",n)}):l(c.selectAll("line.".concat($c.legendItemTile)).data(b),T).style("stroke",I).attr("x1",S).attr("y1",L).attr("x2",C).attr("y2",L);r&&l(r,T).attr("height",a.getLegendHeight()-12).attr("width",h*(y+1)+10),a.updateLegendItemWidth(h),a.updateLegendItemHeight(d),a.updateLegendStep(y)}},Pl={redraw:function(t){var e,n,i;void 0===t&&(t={});var r=this,a=r.config,o=r.state,s=r.$el,c=s.main;o.redrawing=!0;var l=r.filterTargetsToShow(r.data.targets),u=t.flow,h=t.initializing,d=r.getWithOption(t),f=d.Transition?a.transition_duration:0,g=d.TransitionForExit?f:0,p=d.TransitionForAxis?f:0,_=null===(e=r.axis)||void 0===e?void 0:e.generateTransitions(p);r.updateSizes(h),d.Legend&&a.legend_show?(t.withTransition=!!f,r.updateLegend(r.mapToIds(r.data.targets),t,_)):d.Dimension&&r.updateDimension(!0),r.hasArcType()&&!o.hasRadar||r.updateCircleY&&(r.circleY=r.updateCircleY()),o.hasAxis?(r.axis.redrawAxis(l,d,_,u,h),a.data_empty_label_text&&c.select("text.".concat(Uc.text,".").concat(kc.empty)).attr("x",o.width/2).attr("y",o.height/2).text(a.data_empty_label_text).style("display",l.length?"none":null),r.hasGrid()&&r.updateGrid(),a.regions.length&&r.updateRegion(),["bar","candlestick","line","area"].forEach(function(t){var e=uc(t);(/^(line|area)$/.test(t)&&r.hasTypeOf(e)||r.hasType(t))&&r["update".concat(e)](d.TransitionForExit)}
11),s.text&&c.selectAll(".".concat(zc.selectedCircles)).filter(r.isBarType.bind(r)).selectAll("circle").remove(),a.interaction_enabled&&!u&&d.EventRect&&(r.redrawEventRect(),null===(n=r.bindZoomEvent)||void 0===n||n.call(r))):(s.arcs&&r.redrawArc(f,g,d.Transform),s.radar&&r.redrawRadar(),s.polar&&r.redrawPolar()),o.resizing||!r.hasPointType()&&!o.hasRadar||r.updateCircle(),r.hasDataLabel()&&!r.hasArcType(null,["radar"])&&r.updateText(),null===(i=r.redrawTitle)||void 0===i||i.call(r),h&&r.updateTypesElements(),r.generateRedrawList(l,u,f,d.Subchart),r.callPluginHook("$redraw",t,f)},generateRedrawList:function(t,e,n,i){var r=this,a=r.config,o=r.state,s=r.getDrawShape();o.hasAxis&&a.subchart_show&&r.redrawSubchart(i,n,s);var c=e&&r.generateFlow({targets:t,flow:e,duration:e.duration,shape:s,xv:r.xv.bind(r)}),l=(n||c)&&bc(),u=r.getRedrawList(s,e,c,l),h=function(){c&&c(),o.redrawing=!1,Qs(a.onrendered,r.api)};if(h)if(l&&u.length){var d=gl();ea().duration(n).each(function(){u.reduce(function(t,e){return t.concat(e)},[]).forEach(function(t){return d.add(t)})}).call(d,h)}else o.transiting||h();r.mapToIds(r.data.targets).forEach(function(t){o.withoutFadeIn[t]=!0})},getRedrawList:function(t,e,n,i){var r=this,a=r.config,o=r.state,s=o.hasAxis,c=o.hasRadar,l=r.$el.grid,u=t.pos,h=u.cx,d=u.cy,f=u.xForText,g=u.yForText,p=[];return s&&((a.grid_x_lines.length||a.grid_y_lines.length)&&p.push(r.redrawGrid(i)),a.regions.length&&p.push(r.redrawRegion(i)),Object.keys(t.type).forEach(function(e){var n=uc(e),a=t.type[e];(/^(area|line)$/.test(e)&&r.hasTypeOf(n)||r.hasType(e))&&p.push(r["redraw".concat(n)](a,i))}),!e&&l.main&&p.push(r.updateGridFocus())),r.hasArcType()&&!c||qs(a.data_labels)&&!1!==a.data_labels&&p.push(r.redrawText(f,g,e,i)),!r.hasPointType()&&!c||a.point_focus_only||r.redrawCircle&&p.push(r.redrawCircle(h,d,i,n)),p},updateAndRedraw:function(t){void 0===t&&(t={});var e,n=this,i=n.config,r=n.state;t.withTransition=Js(t,"withTransition",!0),t.withTransform=Js(t,"withTransform",!1),t.withLegend=Js(t,"withLegend",!1),t.withUpdateXDomain=!0,t.withUpdateOrgXDomain=!0,t.withTransitionForExit=!1,t.withTransitionForTransform=Js(t,"withTransitionForTransform",t.withTransition),t.withLegend&&i.legend_show||(r.hasAxis&&(e=n.axis.generateTransitions(t.withTransitionForAxis?i.transition_duration:0)),n.updateScales(),n.updateSvgSize(),n.transformAll(t.withTransitionForTransform,e)),n.redraw(t,e)},redrawWithoutRescale:function(){this.redraw({withY:!1,withDimension:!1,withLegend:!1,withSubchart:!1,withEventRect:!1,withTransitionForAxis:!1})}};function Ol(t,e,n){void 0===t&&(t="linear"),void 0===e&&(e=0),void 0===n&&(n=1);var i={linear:qa,log:so,_log:ro,time:ho,utc:fo}[t]();return i.type=t,/_?log/.test(t)&&i.clamp(!0),i.range([e,n])}var Xl={getXScale:function(t,e,n,i){var r=this,a=r.scale.zoom||Ol(r.axis.getAxisType("x"),t,e);return r.getCustomizedScale(n?a.domain(n):a,i)},getYScale:function(t,e,n,i){var r=Ol(this.axis.getAxisType(t),e,n);return i&&r.domain(i),r},getYScaleById:function(t,e){void 0===e&&(e=!1);var n="y2"===this.axis.getId(t),i=e?n?"subY2":"subY":n?"y2":"y";return this.scale[i]},getCustomizedScale:function(t,e){var n=this,i=e||function(){return n.axis.x.tickOffset()},r=function(e,n){var r=t(e)+i();return n?r:Math.ceil(r)};for(var a in t)r[a]=t[a];return r.orgDomain=function(){return t.domain()},r.orgScale=function(){return t},n.axis.isCategorized()&&(r.domain=function(e){var n=e;return arguments.length?(t.domain(n),r):[(n=this.orgDomain())[0],n[1]+1]}),r},updateScales:function(t,e){var n,i;void 0===e&&(e=!0);var r=this,a=r.axis,o=r.config,s=r.format,c=r.org,l=r.scale,u=r.state,h=u.width,d=u.height,f=u.width2,g=u.height2;if(u.hasAxis){var p=o.axis_rotated,_=r.getResettedPadding(1),v={x:p?_:0,y:p?0:d,subX:p?1:0,subY:p?0:g},x={x:p?d:h,y:p?h:_,subX:p?d:h,subY:p?f:1},y=e&&(null===(n=l.x)||void 0===n?void 0:n.orgDomain()),m=e&&c.xDomain;l.x=r.getXScale(v.x,x.x,y,function(){return a.x.tickOffset()}),l.subX=r.getXScale(v.x,x.x,m,function(t){var e;return t%1?0:(null!==(e=a.subX)&&void 0!==e?e:a.x).tickOffset()}),s.xAxisTick=a.getXAxisTickFormat(),s.subXAxisTick=a.getXAxisTickFormat(!0),a.setAxis("x",l.x,o.axis_x_tick_outer,t),o.subchart_show&&a.setAxis("subX",l.subX,o.axis_x_tick_outer,t),l.y=r.getYScale("y",v.y,x.y,l.y?l.y.domain():o.axis_y_default),l.subY=r.getYScale("y",v.subY,x.subY,l.subY?l.subY.domain():o.axis_y_default),a.setAxis("y",l.y,o.axis_y_tick_outer,t),o.axis_y2_show&&(l.y2=r.getYScale("y2",v.y,x.y,l.y2?l.y2.domain():o.axis_y2_default),l.subY2=r.getYScale("y2",v.subY,x.subY,l.subY2?l.subY2.domain():o.axis_y2_default),a.setAxis("y2",l.y2,o.axis_y2_tick_outer,t))}else null===(i=r.updateArc)||void 0===i||i.call(r)},xx:function(t){var e=this.config,n=this.scale,i=n.x,r=n.zoom,a=e.zoom_enabled&&r?r:i;return t?a(Xs(t.x)?t.x:t):null},xv:function(t){var e=this,n=e.axis,i=e.config,r=e.scale,a=r.x,o=r.zoom,s=i.zoom_enabled&&o?o:a,c=e.getBaseValue(t);return n.isTimeSeries()?c=mc.call(e,c):n.isCategorized()&&Fs(c)&&(c=i.axis_x_categories.indexOf(c)),Math.ceil(s(c))},yv:function(t){var e=this.scale,n=e.y,i=e.y2,r=t.axis&&"y2"===t.axis?i:n;return Math.ceil(r(this.getBaseValue(t)))},subxx:function(t){return t?this.scale.subX(t.x):null}},Nl={getDrawShape:function(){var t=this,e=t.config.axis_rotated,n=t.state.hasRadar,i={type:{},indices:{},pos:{}};if(["bar","candlestick","line","area"].forEach(function(e){var n=uc(/^(bubble|scatter)$/.test(e)?"line":e);
11if(t.hasType(e)||t.hasTypeOf(n)||"line"===e&&(t.hasType("bubble")||t.hasType("scatter"))){var r=t.getShapeIndices(t["is".concat(n,"Type")]),a=t["generateDraw".concat(n)];i.indices[e]=r,i.type[e]=a?a.bind(t)(r,!1):void 0}}),!t.hasArcType()||n){var r=n?t.radarCircleX:e?t.circleY:t.circleX,a=n?t.radarCircleY:e?t.circleX:t.circleY;i.pos={xForText:t.generateXYForText(i.indices,!0),yForText:t.generateXYForText(i.indices,!1),cx:(r||function(){}).bind(t),cy:(a||function(){}).bind(t)}}return i},getShapeIndices:function(t){var e=this,n=e.config,i=n.data_xs,r=qs(i),a={},o=r?{}:0;return r&&fc(Object.keys(i).map(function(t){return i[t]})).forEach(function(t){o[t]=0,a[t]={}}),e.filterTargetsToShow(e.data.targets.filter(t,e)).forEach(function(t){for(var e=(t.id in i?i[t.id]:""),r=e?a[e]:a,s=0,c=void 0;c=n.data_groups[s];s++)if(!(c.indexOf(t.id)<0))for(var l=0,u=void 0;u=c[l];l++)if(u in r){r[t.id]=r[u];break}Bs(r[t.id])&&(r[t.id]=e?o[e]++:o++,r.__max__=(e?o[e]:o)-1)}),a},getIndices:function(t,e,n){var i=this,r=i.config,a=r.data_xs,o=r.bar_indices_removeNull,s=e.id,c=e.index;if(i.isBarType(s)&&o){var l={};return i.getAllValuesOnIndex(c,!0).forEach(function(t,e){l[t.id]=e,l.__max__=e}),l}return qs(a)?t[a[s]]:t},getIndicesMax:function(t){return qs(this.config.data_xs)?Object.keys(t).map(function(e){return t[e].__max__||0}).reduce(function(t,e){return t+e}):t.__max__},getShapeX:function(t,e,n){var i=this,r=i.config,a=i.scale,o=n?a.subX:a.zoom||a.x,s=r.bar_padding,c=function(t,e){return t+e},l=Gs(t)&&(t._$total.length?t._$total.reduce(c)/2:0);return function(n){var r=i.getIndices(e,n,"getShapeX"),a=n.id in r?r[n.id]:0,u=(r.__max__||0)+1,h=0;if(qs(n.x)){var d=o(n.x,!0);h=l?d-(t[n.id]||t._$width)+t._$total.slice(0,a+1).reduce(c)-l:d-(zs(t)?t:t._$width)*(u/2-a)}return t&&h&&u>1&&s&&(a&&(h+=s*a),u>2?h-=(u-1)*s/2:2===u&&(h-=s/2)),h}},getShapeY:function(t){var e=this,n=e.isStackNormalized();return function(i){var r=i.value;return zs(i)?r=i:n?r=e.getRatio("index",i,!0):e.isBubbleZType(i)?r=e.getBubbleZData(i.value,"y"):e.isBarRangeType(i)&&(r=r[1]),e.getYScaleById(i.id,t)(r)}},getShapeYMin:function(t){var e=this,n=e.axis.getId(t),i=e.scale[n].domain()[0],r=e.config["axis_".concat(n,"_inverted")];return!e.isGrouped(t)&&!r&&i>0?i:0},getShapeOffsetData:function(t){var e=this,n=e.orderTargets(e.filterTargetsToShow(e.data.targets.filter(t,e))),i=e.isStackNormalized(),r=n.map(function(t){var n=t.values,r={};e.isStepType(t)&&(n=e.convertValuesToStep(n));var a=n.reduce(function(t,n){var a=Number(n.x);return t[a]=n,r[a]=i?e.getRatio("index",n,!0):n.value,t},{});return{id:t.id,rowValues:n,rowValueMapByXValue:a,values:r}});return{indexMapByTargetId:n.reduce(function(t,e,n){return t[e.id]=n,t},{}),shapeOffsetTargets:r}},getShapeOffset:function(t,e,n){var i=this,r=i.getShapeOffsetData(t),a=r.shapeOffsetTargets,o=r.indexMapByTargetId;return function(t,r){var s=t.id,c=t.value,l=t.x,u=i.getIndices(e,t),h=i.getYScaleById(s,n);if(i.isBarRangeType(t))return h(c[0]);var d=h(i.getShapeYMin(s)),f=Number(l),g=d;return a.filter(function(t){return t.id!==s}).forEach(function(t){var e=t.id,n=t.rowValueMapByXValue,i=t.rowValues,a=t.values;if(u[e]===u[s]&&o[e]<o[s]){var l=i[r];l&&Number(l.x)===f||(l=n[f]),(null==l?void 0:l.value)*c>=0&&zs(a[f])&&(g+=h(a[f])-d)}}),g}},getBarW:function(t,e,n){var i=this,r=i.config,a=i.org,o=i.scale,s=i.getMaxDataCount(),c="bar"===t&&r.data_groups.length,l="".concat(t,"_width"),u=o.zoom&&!i.axis.isCategorized()?a.xDomain.map(function(t){return o.zoom(t)}).reduce(function(t,e){return Math.abs(t)+e})/s:e.tickInterval(s),h=function(t){var e=t?r[l][t]:r[l],i=t?e.ratio:r["".concat(l,"_ratio")],a=t?e.max:r["".concat(l,"_max")],o=zs(e)?e:n?u*i/n:0;return a&&o>a?a:o},d=h();return!c&&Gs(r[l])&&(d={_$width:d,_$total:[]},i.filterTargetsToShow(i.data.targets).forEach(function(t){r[l][t.id]&&(d[t.id]=h(t.id),d._$total.push(d[t.id]||d._$width))})),d},getShapeByIndex:function(t,e,n){var i=this.$el,r=Xs(e)?"-".concat(e):"",a=i[t];return a=a&&!a.empty()?a.filter(function(t){return!n||t.id===n}).filter(function(t){return!Xs(e)||t.index===e}):(n?i.main.selectAll(".".concat(Hc["".concat(t,"s")]).concat(this.getTargetSelectorSuffix(n))):i.main).selectAll(".".concat(Hc[t]).concat(r))},isWithinShape:function(t,e){var n,i,r=this,a=Hn(t);return r.isTargetToShow(e.id)?(null===(n=r.hasValidPointType)||void 0===n?void 0:n.call(r,t.nodeName))?i=r.isStepType(e)?r.isWithinStep(t,r.getYScaleById(e.id)(e.value)):r.isWithinCircle(t,r.isBubbleType(e)?1.5*r.pointSelectR(e):0):"path"===t.nodeName&&(i=!a.classed(Hc.bar)||r.isWithinBar(t)):i=!1,i},getInterpolate:function(t){var e=this.getInterpolateType(t);return{basis:Ro,"basis-closed":Io,"basis-open":Po,bundle:Xo,cardinal:zo,"cardinal-closed":Yo,"cardinal-open":Vo,"catmull-rom":Go,"catmull-rom-closed":qo,"catmull-rom-open":Ko,"monotone-x":ss,"monotone-y":cs,natural:hs,"linear-closed":Qo,linear:ko,step:fs,"step-after":ps,"step-before":gs}[e]},getInterpolateType:function(t){var e=this,n=e.config,i=n.spline_interpolation_type,r=e.isInterpolationType(i)?i:"cardinal";return e.isSplineType(t)?r:e.isStepType(t)?n.line_step_type:"linear"},isWithinBar:function(t){var e=rc(this.state.event,t),n=ic(t),i=n[0],r=n[1],a=Math.min(i.x,r.x),o=Math.min(i.y,r.y),s=this.config.bar_sensitivity,c=t.getBBox(),l=a+c.width+s,u=o+c.height+s,h=o-s;return a-s<e[0]&&e[0]<l&&h<e[1]&&e[1]<u}},Fl={setContainerSize:function(){var t=this,e=t.state;e.current.width=t.getCurrentWidth(),e.current.height=t.getCurrentHeight()},getCurrentWidth:function(){return this.config.size_width||this.getParentWidth()},getCurrentHeight:function(){var t=this,e=t.config,n=e.size_height||t.getParentHeight();return n>0?n:320/(t.hasType("gauge")&&!e.gauge_fullCircle?2:1)},getCurrentPaddingTop:function(){var t=this,e=t.config,n=t.state.hasAxis,i=t.$el,r=n?e.axis_y2_axes.length:0,a=Xs(e.padding_top)?e.padding_top:0;return i.title&&i.title.node()&&(a+=t.getTitlePadding()),r&&e.axis_rotated&&(a+=t.getHorizontalAxisHeight("y2")*r),a},getCurrentPaddingBottom:function(){var t=this,e=t.config,n=t.state.hasAxis,i=e.axis_rotated?"y":"x",r=n?e["axis_".concat(i,"_axes")].length:0;return(Xs(e.padding_bottom)?e.padding_bottom:0)+(r?t.getHorizontalAxisHeight(i)
11*r:0)},getCurrentPaddingLeft:function(t){var e=this,n=e.config,i=e.state.hasAxis,r=n.axis_rotated,a=r?"x":"y",o=i?n["axis_".concat(a,"_axes")].length:0,s=i?e.getAxisWidthByAxisId(a,t):0;return(Xs(n.padding_left)?n.padding_left:i&&r?n.axis_x_show?Math.max(Vs(s),40):1:!i||n.axis_y_show&&!n.axis_y_inner?Vs(s):e.axis.getAxisLabelPosition("y").isOuter?30:1)+s*o},getCurrentPaddingRight:function(t){void 0===t&&(t=!1);var e=this,n=e.config,i=e.state.hasAxis,r=e.state.isLegendRight?e.getLegendWidth()+20:0,a=i?n.axis_y2_axes.length:0,o=i?e.getAxisWidthByAxisId("y2"):0,s=t?e.axis.getXAxisTickTextY2Overflow(10):0;return(Xs(n.padding_right)?n.padding_right+1:e.axis&&n.axis_rotated?10+r:!e.axis||n.axis_y2_show&&!n.axis_y2_inner?Math.max(Vs(o)+r,s):Math.max(2+r+(e.axis.getAxisLabelPosition("y2").isOuter?20:0),s))+o*a},getParentRectValue:function(t){for(var e="offset".concat(uc(t)),n=this.$el.chart.node(),i=0;i<30&&n&&"BODY"!==n.tagName;){try{i=n.getBoundingClientRect()[t]}catch(a){e in n&&(i=n[e])}n=n.parentNode}var r=Rs.body[e];return i>r&&(i=r),i},getParentWidth:function(){return this.getParentRectValue("width")},getParentHeight:function(){var t=this.$el.chart.style("height"),e=0;return t&&(e=/px$/.test(t)?parseInt(t,10):this.getParentRectValue("height")),e},getSvgLeft:function(t){var e=this,n=e.config,i=e.$el,r=n.axis_rotated||!n.axis_rotated&&!n.axis_y_inner,a=n.axis_rotated?Cc.axisX:Cc.axisY,o=i.main.select(".".concat(a)).node(),s=o&&r?o.getBoundingClientRect():{right:0},c=i.chart.node().getBoundingClientRect(),l=e.hasArcType(),u=s.right-c.left-(l?0:e.getCurrentPaddingLeft(t));return u>0?u:0},updateDimension:function(t){var e,n=this,i=n.config,r=n.state.hasAxis,a=n.$el;r&&!t&&n.axis.x&&i.axis_rotated&&(null===(e=n.axis.subX)||void 0===e||e.create(a.axis.subX)),n.updateScales(t),n.updateSvgSize(),n.transformAll(!1)},updateSvgSize:function(){var t=this,e=t.state,n=e.clip,i=e.current,r=e.hasAxis,a=e.width,o=e.height,s=t.$el.svg;if(s.attr("width",i.width).attr("height",i.height),r){var c=s.select(".".concat(Yc.brush," .overlay")),l={width:0,height:0};c.size()&&(l.width=+c.attr("width"),l.height=+c.attr("height")),s.selectAll(["#".concat(n.id),"#".concat(n.idGrid)]).select("rect").attr("width",a).attr("height",o),s.select("#".concat(n.idXAxis)).select("rect").call(t.setXAxisClipPath.bind(t)),s.select("#".concat(n.idYAxis)).select("rect").call(t.setYAxisClipPath.bind(t)),n.idSubchart&&s.select("#".concat(n.idSubchart)).select("rect").attr("width",a).attr("height",l.height)}},getResettedPadding:function(t){var e=this.config,n=zs(t),i=n?0:{};return!1===e.padding?!n&&Object.keys(t).forEach(function(n){i[n]=Ws(e.data_labels)||!1===e.data_labels||"top"!==n?0:t[n]}):i=t,i},updateSizes:function(t){var e,n,i=this,r=i.config,a=i.state,o=i.$el.legend,s=r.axis_rotated,c=i.hasArcType();!t&&i.setContainerSize();var l={width:o?i.getLegendWidth():0,height:o?i.getLegendHeight():0};!c&&r.axis_x_show&&r.axis_x_tick_autorotate&&i.updateXAxisTickClip();var u=a.isLegendRight||a.isLegendInset?0:l.height,h=s||c?0:i.getHorizontalAxisHeight("x"),d=r.subchart_axis_x_show&&r.subchart_axis_x_tick_text_show?h:30,f=r.subchart_show&&!c?r.subchart_size_height+d:0;a.margin=!c&&s?{top:i.getHorizontalAxisHeight("y2")+i.getCurrentPaddingTop(),right:c?0:i.getCurrentPaddingRight(!0),bottom:i.getHorizontalAxisHeight("y")+u+i.getCurrentPaddingBottom(),left:f+(c?0:i.getCurrentPaddingLeft())}:{top:4+i.getCurrentPaddingTop(),right:c?0:i.getCurrentPaddingRight(!0),bottom:h+f+u+i.getCurrentPaddingBottom(),left:c?0:i.getCurrentPaddingLeft()},a.margin=i.getResettedPadding(a.margin),a.margin2=s?{top:a.margin.top,right:NaN,bottom:20+u,left:i.state.rotatedPadding.left}:{top:a.current.height-f-u,right:NaN,bottom:d+u,left:a.margin.left},a.margin3={top:0,right:NaN,bottom:0,left:0},null===(e=i.updateSizeForLegend)||void 0===e||e.call(i,l),a.width=a.current.width-a.margin.left-a.margin.right,a.height=a.current.height-a.margin.top-a.margin.bottom,a.width<0&&(a.width=0),a.height<0&&(a.height=0),a.width2=s?a.margin.left-a.rotatedPadding.left-a.rotatedPadding.right:a.width,a.height2=s?a.height:a.current.height-a.margin2.top-a.margin2.bottom,a.width2<0&&(a.width2=0),a.height2<0&&(a.height2=0);var g=i.hasType("gauge"),p=r.legend_show&&a.isLegendRight;a.arcWidth=a.width-(p?l.width+10:0),a.arcHeight=a.height-(p&&!g?0:10),g&&!r.gauge_fullCircle&&(a.arcHeight+=a.height-i.getPaddingBottomForGauge()),null===(n=i.updateRadius)||void 0===n||n.call(i),a.isLegendRight&&c&&(a.margin3.left=a.arcWidth/2+1.1*a.radiusExpanded)}},zl={setCssRule:function(t,e,n,i){var r=this,a=r.config,o=r.state,s=o.cssRule,c=o.style;return a.boost_useCssRule?function(a){a.each(function(a){var o=i&&(null==i?void 0:i.call(r,a)),l="".concat(t?".".concat(Bc.shapes+r.getTargetSelectorSuffix(a.id)):"").concat(e);e in s&&c.sheet.deleteRule(s[l]),r.state.cssRule[l]=function(t,e,n){var i,r=t.rootSelctor,a=t.sheet,o="".concat(r," ").concat((i=e,i.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))," {").concat(n.join(";"),"}");return a[a.insertRule?"insertRule":"addRule"](o,a.cssRules.length)}
11(c,l,n.filter(Boolean).map(function(t){return Fs(o)&&-1===t.indexOf(":")?"".concat(t,": ").concat(o):t||""}))})}:function(){}},getStylePropValue:function(t){return this.config.boost_useCssRule?null:Ns(t)?t.bind(this):t}};function Bl(t,e,n,i,r){var a,o=t.value,s=this.isCandlestickType(t),c=zs(o)&&o<0||s&&!(null===(a=this.getCandlestickData(t))||void 0===a?void 0:a._isUp),l=e.x,u=e.y;return i?"start"===n?(l+=c?0:8,u+=4):"middle"===n?(l+=8,u-=8):"end"===n&&(c&&(l-=8),u+=4):("start"===n?(l+=4,c&&(u+=16)):"middle"===n?u-=8:"end"===n&&(l-=4,c&&(u+=16)),r&&(u+=c?-17:s?13:7)),{x:l,y:u}}var Yl={opacityForText:function(t){var e=this;return e.isBarType(t)&&!e.meetsLabelThreshold(Math.abs(e.getRatio("bar",t)),"bar")?"0":e.hasDataLabel?null:"0"},initText:function(){this.$el.main.select(".".concat(kc.chart)).append("g").attr("class",Uc.chartTexts)},updateTargetsForText:function(t){var e=this,n=e.getChartClass("Text"),i=e.getClass("texts","id"),r=e.classFocus.bind(e);e.$el.main.select(".".concat(Uc.chartTexts)).selectAll(".".concat(Uc.chartText)).data(t).attr("class",function(t){return n(t)+r(t)}).enter().append("g").style("opacity","0").attr("class",n).call(e.setCssRule(!0," .".concat(Uc.text),["fill","pointer-events:none"],e.updateTextColor)).append("g").attr("class",i)},updateText:function(){var t=this,e=t.$el,n=t.$T,i=t.config,r=t.getClass("text","index"),a=e.main.selectAll(".".concat(Uc.texts)).selectAll(".".concat(Uc.text)).data(t.labelishData.bind(t));n(a.exit()).style("fill-opacity","0").remove(),e.text=a.enter().append("text").merge(a).attr("class",r).attr("text-anchor",function(e){var n=e.value<0;if(t.isCandlestickType(e)){var r=t.getCandlestickData(e);n=!(null==r?void 0:r._isUp)}return i.axis_rotated?n?"end":"start":"middle"}).style("fill",t.getStylePropValue(t.updateTextColor)).style("fill-opacity","0").each(function(e,n,i){var r=Hn(this),a=e.value;if(t.isBubbleZType(e))a=t.getBubbleZData(a,"z");else if(t.isCandlestickType(e)){var o=t.getCandlestickData(e);o&&(a=o.close)}a=t.dataLabelFormat(e.id)(a,e.id,n,i),zs(a)?this.textContent=a:nc(r,a)})},updateTextColor:function(t){var e,n=this,i=n.config,r=i.data_labels_colors,a=n.isArcType(t)&&!n.isRadarType(t)?null:n.color(t);if(Fs(r))e=r;else if(Ks(r)){e=r[(t.data||t).id]}else Ns(r)&&(e=r.bind(n.api)(a,t));if(n.isCandlestickType(t)&&!Ns(r)){var o=n.getCandlestickData(t);if(!(null==o?void 0:o._isUp)){var s=i.candlestick_color_down;e=Ks(s)?s[t.id]:s}}return e||a},updateTextBacgroundColor:function(t){var e=this,n=e.$el,i=e.config.data_labels_backgroundColors,r="";if(Fs(i)||Ks(i)){var a=Fs(i)?"":e.getTargetSelectorSuffix("id"in t?t.id:t.data.id),o=n.defs.select(["filter[id*='labels-bg","']"].join(a));o.size()&&(r="url(#".concat(o.attr("id"),")"))}return r||null},redrawText:function(t,e,n,i){var r=this,a=r.$T,o=r.axis,s=r.config,c=sc(!0),l=s.axis_rotated,u=s.data_labels.rotate,h=function(t){var e="middle";return t>0&&t<=170?e="end":t>190&&t<=360&&(e="start"),e}(u),d=u?"rotate(".concat(u,")"):"";return r.$el.text.style("fill",r.getStylePropValue(r.updateTextColor)).attr("filter",r.updateTextBacgroundColor.bind(r)).style("fill-opacity",n?0:r.opacityForText.bind(r)).each(function(n,f){var g=a(this,!(!i||!this.getAttribute("x")),c),p=s["axis_".concat(null==o?void 0:o.getId(n.id),"_inverted")],_={x:t.bind(this)(n,f),y:e.bind(this)(n,f)};u&&(_=Bl.bind(r)(n,_,h,l,p),g.attr("text-anchor",h)),this.childElementCount||u?g.attr("transform","translate(".concat(_.x," ").concat(_.y,") ").concat(d)):g.attr("x",_.x).attr("y",_.y)}),!0},getTextRect:function(t,e){var n=this,i=t.node?t.node():t;/text/i.test(i.tagName)||(i=i.querySelector("text"));var r=i.textContent,a="".concat(ul,"-").concat(r.replace(/\W/g,"_")),o=n.cache.get(a);return o||(n.$el.svg.append("text").style("visibility","hidden").style("font",Hn(i).style("font")).classed(e,!0).text(r).call(function(t){o=oc(t.node())}).remove(),n.cache.add(a,o)),o},generateXYForText:function(t,e){var n=this,i=Object.keys(t),r={},a=e?n.getXForText:n.getYForText;return n.hasType("radar")&&i.push("radar"),i.forEach(function(e){r[e]=n["generateGet".concat(uc(e),"Points")](t[e],!1)}),function(t,e){var i=(n.isAreaType(t)?"area":n.isBarType(t)&&"bar")||n.isCandlestickType(t)&&"candlestick"||n.isRadarType(t)&&"radar"||"line";return a.call(n,r[i](t,e),t,this)}},getCenteredTextPos:function(t,e,n){var i=this.config,r=i.axis_rotated;if(i.data_labels.centered&&this.isBarType(t)){var a=oc(n),o=t.value>=0;if(r){var s=(o?e[1][1]-e[0][1]:e[0][1]-e[1][1])/2+a.width/2;return o?-s-3:s+2}var c=(o?e[0][1]-e[1][1]:e[1][1]-e[0][1])/2+a.height/2;return o?c:-c-2}return 0},getTextPos:function(t,e){var n=this.config.data_labels_position;return(t in n?n[t]:n)[e]||0},getXForText:function(t,e,n){var i,r=this,a=r.config,o=r.state,s=a.axis_rotated,c=t[0][0];if(r.isCandlestickType(e))s?c=(null===(i=r.getCandlestickData(e))||void 0===i?void 0:i._isUp)?t[2][2]+4:t[2][1]-4:c+=(t[1][0]-c)/2;else if(s){var l=r.isBarType(e)?4:6;c=t[2][1]+l*(e.value<0?-1:1)}else c=r.hasType("bar")?(t[2][0]+t[0][0])/2:c;if(null===e.value)if(c>o.width){var u=oc(n).width;c=o.width-u}else c<0&&(c=4);return s&&(c+=r.getCenteredTextPos(e,t,n)),c+r.getTextPos(e.id,"x")},getYForText:function(t,e,n){var i,r=this,a=r.axis,o=r.config,s=r.state,c=o.axis_rotated,l=o["axis_".concat(null==a?void 0:a.getId(e.id),"_inverted")],u=r.
11isBarType(e),h=o.point_r,d=oc(n),f=e.value,g=3;if(r.isCandlestickType(e))f=r.getCandlestickData(e),c?(i=t[0][0],i+=(t[1][0]-i)/2+g):(i=f&&f._isUp?t[2][2]-g:t[2][1]+4*g,l&&(i+=15*(f._isUp?1:-1)));else if(c)i=(t[0][0]+t[2][0]+.6*d.height)/2;else if(i=t[2][1],zs(h)&&h>5&&(r.isLineType(e)||r.isScatterType(e))&&(g+=o.point_r/2.3),f<0||0===f&&!s.hasPositiveValue&&s.hasNegativeValue)i+=l?u?-3:-5:d.height+(u?-g:g);else{var p=2*-g;u?p=-g:r.isBubbleType(e)&&(p=g),l&&(p=u?10:15),i+=p}if(null===e.value&&!c){var _=d.height;i<_?i=_:i>s.height&&(i=s.height-4)}return c||(i+=r.getCenteredTextPos(e,t,n)),i+r.getTextPos(e.id,"y")},markOverlapped:function(t,e,n){var i=e.$el.arcs.selectAll(n),r=i.filter(function(e){return e.data.id!==t}),a=i.filter(function(e){return e.data.id===t}),o=dc(a.node()),s=function(t,e){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2))};a.node()&&r.each(function(){var t=dc(this),e=Hn(this),n=s(o.e,o.f)>s(t.e,t.f)?a:e,i=Math.ceil(Math.abs(o.e-t.e))<Math.ceil(n.node().getComputedTextLength()),r=Math.ceil(Math.abs(o.f-t.f))<parseInt(a.style("font-size"),10);e.classed(Uc.TextOverlapping,i&&r)})},undoMarkOverlapped:function(t,e){t.$el.arcs.selectAll(e).each(function(){Gn([this,this.previousSibling]).classed(Uc.TextOverlapping,!1)})},meetsLabelThreshold:function(t,e){void 0===t&&(t=0);return t>=(this.config["".concat(e,"_label_threshold")]||0)}};function Ul(t,e){void 0===t&&(t="left");var n=zs(e);return t.indexOf("center")>-1?n?e/2:"middle":t.indexOf("right")>-1?n?e:"end":n?0:"start"}var Vl={initTitle:function(){var t=this.config,e=this.$el;t.title_text&&(e.title=e.svg.append("g"),nc(e.title.append("text").style("text-anchor",Ul(t.title_position)).attr("class",Uc.title),t.title_text,[.3,1.5]))},redrawTitle:function(){var t=this,e=t.config,n=t.state.current,i=t.$el.title;if(i){var r=t.yForTitle.call(t);/g/i.test(i.node().tagName)?i.attr("transform","translate(".concat(Ul(e.title_position,n.width),", ").concat(r,")")):i.attr("x",t.xForTitle.call(t)).attr("y",r)}},xForTitle:function(){var t,e=this,n=e.config,i=e.state.current,r=n.title_position||"left",a=e.getTextRect(e.$el.title,Uc.title).width;return/(right|center)/.test(r)?(t=i.width-a,r.indexOf("right")>=0?t=i.width-a-n.title_padding.right:r.indexOf("center")>=0&&(t=(i.width-a)/2)):t=n.title_padding.left||0,t},yForTitle:function(){var t=this;return(t.config.title_padding.top||0)+t.getTextRect(t.$el.title,Uc.title).height},getTitlePadding:function(){return this.yForTitle()+(this.config.title_padding.bottom||0)}},Hl={initTooltip:function(){var t=this,e=t.config,n=t.$el;n.tooltip=Hn(e.tooltip_contents.bindto),n.tooltip.empty()&&(n.tooltip=n.chart.append("div").attr("class",Vc.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none")),t.bindTooltipResizePos()},initShowTooltip:function(){var t,e,n=this,i=n.config,r=n.$el,a=n.state,o=a.hasAxis,s=a.hasRadar;if(i.tooltip_init_show){var c=!(o&&s);if((null===(t=n.axis)||void 0===t?void 0:t.isTimeSeries())&&Fs(i.tooltip_init_x)){var l=n.data.targets[0],u=void 0,h=void 0;for(i.tooltip_init_x=mc.call(n,i.tooltip_init_x),u=0;(h=l.values[u])&&h.x-i.tooltip_init_x!==0;u++);i.tooltip_init_x=u}var d=n.data.targets.map(function(t){var e=c?0:i.tooltip_init_x;return n.addName(t.values[e])});c&&(d=[d[i.tooltip_init_x]]),r.tooltip.html(n.getTooltipHTML(d,null===(e=n.axis)||void 0===e?void 0:e.getXAxisTickFormat(),n.getDefaultValueFormat(),n.color)),i.tooltip_contents.bindto||r.tooltip.style("top",i.tooltip_init_position.top).style("left",i.tooltip_init_position.left).style("display",null)}},getTooltipHTML:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this,i=n.api,r=n.config;return Ns(r.tooltip_contents)?r.tooltip_contents.bind(i).apply(void 0,t):n.getTooltipContent.apply(n,t)},getTooltipContent:function(t,e,n,i){var r=this,a=r.api,o=r.config,s=r.state,c=["title","name","value"].map(function(t){var e=o["tooltip_format_".concat(t)];return Ns(e)?e.bind(a):e}),l=c[0],u=c[1],h=c[2];l=l||e,u=u||function(t){return t},h=h||(r.isStackNormalized()?function(t,e){return"".concat((100*e).toFixed(2),"%")}:n);var d=o.tooltip_order,f=function(t){return r.axis&&r.isBubbleZType(t)?r.getBubbleZData(t.value,"z"):r.getBaseValue(t)},g=r.levelColor?function(t){return r.levelColor(t.value)}:function(t){return i(t)},p=o.tooltip_contents,_=p.template,v=r.mapToTargetIds();if(null===d&&o.data_groups.length){var x=r.orderTargets(r.data.targets).map(function(t){return t.id}).reverse();t.sort(function(t,e){var n=t?t.value:null,i=e?e.value:null;return n>0&&i>0&&(n=t.id?x.indexOf(t.id):null,i=e.id?x.indexOf(e.id):null),n-i}
11)}else if(/^(asc|desc)$/.test(d)){var y="asc"===d;t.sort(function(t,e){var n=t?f(t):null,i=e?f(e):null;return y?n-i:i-n})}else Ns(d)&&t.sort(d.bind(a));var m,b,T,w,k,A=r.getTooltipContentTemplate(_),S=t.length,C=function(){if(!(b=t[k])||!f(b)&&0!==f(b))return"continue";if(Bs(m)){var e=(s.hasAxis||s.hasRadar)&&ec(l?l(b.x):b.x);m=yc(A[0],{CLASS_TOOLTIP:Vc.tooltip,TITLE:Xs(e)?_?e:'<tr><th colspan="2">'.concat(e,"</th></tr>"):""})}if(!b.ratio&&r.$el.arcs&&(b.ratio=r.getRatio("arc",r.$el.arcs.select("path.".concat(Ac.arc,"-").concat(b.id)).data()[0])),T=[b.ratio,b.id,b.index,t],w=ec(h.apply(void 0,Os([f(b)],T,!1))),r.isAreaRangeType(b)){var n=["high","low"].map(function(t){return ec(h.apply(void 0,Os([r.getRangedData(b,t)],T,!1)))}),i=n[0],a=n[1];w="<b>Mid:</b> ".concat(w," <b>High:</b> ").concat(i," <b>Low:</b> ").concat(a)}else if(r.isCandlestickType(b)){var o=["open","high","low","close","volume"].map(function(t){return ec(h.apply(void 0,Os([r.getRangedData(b,t,"candlestick")],T,!1)))}),c=o[0],d=(i=o[1],a=o[2],o[3]),x=o[4];w="<b>Open:</b> ".concat(c," <b>High:</b> ").concat(i," <b>Low:</b> ").concat(a," <b>Close:</b> ").concat(d).concat(x?" <b>Volume:</b> ".concat(x):"")}else if(r.isBarRangeType(b)){var y=b.value,S=y[0],C=y[1];w="".concat(h(S)," ~ ").concat(h(C))}if(void 0!==w){if(null===b.name)return"continue";var E=ec(u.apply(void 0,Os([b.name],T,!1))),M=g(b),L={CLASS_TOOLTIP_NAME:Vc.tooltipName+r.getTargetSelectorSuffix(b.id),COLOR:_||!r.patterns?M:'<svg><rect style="fill:'.concat(M,'" width="10" height="10"></rect></svg>'),NAME:E,VALUE:w};if(_&&Ks(p.text)){var R=v.indexOf(b.id);Object.keys(p.text).forEach(function(t){L[t]=p.text[t][R]})}m+=yc(A[1],L)}};for(k=0;k<S;k++)C();return"".concat(m,"</table>")},getTooltipContentTemplate:function(t){return(t||'<table class="{=CLASS_TOOLTIP}"><tbody>\n\t\t\t\t{=TITLE}\n\t\t\t\t{{<tr class="{=CLASS_TOOLTIP_NAME}">\n\t\t\t\t\t<td class="name">'.concat(this.patterns?"{=COLOR}":'<span style="background-color:{=COLOR}"></span>','{=NAME}</td>\n\t\t\t\t\t<td class="value">{=VALUE}</td>\n\t\t\t\t</tr>}}\n\t\t\t</tbody></table>')).replace(/(\r?\n|\t)/g,"").split(/{{(.*)}}/)},tooltipPosition:function(t,e,n,i){var r=this,a=r.config,o=r.scale,s=r.state,c=s.width,l=s.height,u=s.current,h=s.isLegendRight,d=s.inputType,f=s.event,g=r.hasType("gauge")&&!a.gauge_fullCircle,p=r.getSvgLeft(!0),_=p+u.width-r.getCurrentPaddingRight(),v=r.getCurrentPaddingLeft(!0),x=rc(f,i),y=x[0],m=x[1];if(r.hasArcType()){"touch"===d||r.hasType("radar")||(m+=g?l:l/2,y+=(c-(h?r.getLegendWidth():0))/2)}else{var b=o.x(t[0].x);a.axis_rotated?(m=b+20,y+=p+100,_-=p):(m-=5,y=p+v+20+(r.scale.zoom?y:b))}y+e+15>_&&(y-=e+v),m+n>u.height&&(m-=g?3*n:n+30);var T={top:m,left:y};return Object.keys(T).forEach(function(t){T[t]<0&&(T[t]=0)}),T},showTooltip:function(t,e){var n,i,r=this,a=r.config,o=r.scale,s=r.state,c=r.$el.tooltip,l=a.tooltip_contents.bindto,u=t.filter(function(t){return t&&Xs(r.getBaseValue(t))});if(c&&0!==u.length&&a.tooltip_show){var h=c.datum(),d=h||{},f=d.width,g=void 0===f?0:f,p=d.height,_=void 0===p?0:p,v=JSON.stringify(t);if(!h||h.current!==v){var x=t.concat().sort()[0].index;Qs(a.tooltip_onshow,r.api,t),c.html(r.getTooltipHTML(t,r.axis?r.axis.getXAxisTickFormat():r.categoryName.bind(r),r.getDefaultValueFormat(),r.color)).style("display",null).style("visibility",null).datum(h={index:x,current:v,width:g=c.property("offsetWidth"),height:_=c.property("offsetHeight")}),Qs(a.tooltip_onshown,r.api,t),r._handleLinkedCharts(!0,x)}if(!l){var y=(null===(n=a.tooltip_position)||void 0===n?void 0:n.bind(r.api))||r.tooltipPosition.bind(r),m=rc(s.event,e),b={x:m[0],y:m[1]},T=null===(i=t.filter(Boolean))||void 0===i?void 0:i.shift();o.x&&T&&"x"in T&&(b.xAxis=o.x(T.x));var w=y(u,g,_,e,b);["top","left"].forEach(function(t){var e=w[t];c.style(t,"".concat(e,"px")),"left"!==t||h.xPosInPercent||(h.xPosInPercent=e/s.current.width*100)})}}},bindTooltipResizePos:function(){var t=this,e=t.resizeFunction,n=t.state,i=t.$el.tooltip;e.add(function(){if("block"===i.style("display")){var t=n.current,e=i.datum(),r=e.width,a=e.xPosInPercent,o=t.width/100*a,s=t.width-(o+r);s<0&&(o+=s),i.style("left","".concat(o,"px"))}})},hideTooltip:function(t){var e=this,n=e.api,i=e.config,r=e.$el.tooltip;if(r&&"none"!==r.style("display")&&(!i.tooltip_doNotHide||t)){var a=JSON.parse(r.datum().current);Qs(i.tooltip_onhide,n,a),r.style("display","none").style("visibility","hidden").datum(null),Qs(i.tooltip_onhidden,n,a)}},_handleLinkedCharts:function(t,e){var n=this,i=n.charts,r=n.config,a=n.state.event;if((null==a?void 0:a.isTrusted)&&r.tooltip_linked&&i.length>1){var o=r.tooltip_linked_name;i.filter(function(t){return t!==n.api}
11).forEach(function(n){var i=n.internal,r=i.config,a=i.$el,s=r.tooltip_linked,c=r.tooltip_linked_name,l=Rs.body.contains(a.chart.node());if(s&&o===c&&l){var u=a.tooltip.data()[0],h=e!==(null==u?void 0:u.index);try{n.tooltip[t&&h?"show":"hide"]({index:e})}catch(d){}}})}}},jl={getTranslate:function(t,e){void 0===e&&(e=0);var n,i,r=this,a=r.config,o=r.state,s=a.axis_rotated,c=0;if(e&&/^(x|y2?)$/.test(t)&&(c=r.getAxisSize(t)*e),"main"===t)n=Hs(o.margin.left),i=Hs(o.margin.top);else if("context"===t)n=Hs(o.margin2.left),i=Hs(o.margin2.top);else if("legend"===t)n=o.margin3.left,i=o.margin3.top;else if("x"===t)n=s?-c:0,i=s?0:o.height+c;else if("y"===t)n=s?0:-c,i=s?o.height+c:0;else if("y2"===t)n=s?0:o.width+c,i=s?1-c:0;else if("subX"===t)n=0,i=s?0:o.height2;else if("arc"===t)n=o.arcWidth/2,i=o.arcHeight/2;else if("polar"===t)n=o.arcWidth/2,i=o.arcHeight/2;else if("radar"===t){var l=r.getRadarSize()[0];n=o.width/2-l,i=Hs(o.margin.top)}return"translate(".concat(n,", ").concat(i,")")},transformMain:function(t,e){var n=this,i=n.$el.main,r=n.$T,a=(null==e?void 0:e.axisX)?e.axisX:r(i.select(".".concat(Cc.axisX)),t),o=(null==e?void 0:e.axisY)?e.axisY:r(i.select(".".concat(Cc.axisY)),t),s=(null==e?void 0:e.axisY2)?e.axisY2:r(i.select(".".concat(Cc.axisY2)),t);r(i,t).attr("transform",n.getTranslate("main")),a.attr("transform",n.getTranslate("x")),o.attr("transform",n.getTranslate("y")),s.attr("transform",n.getTranslate("y2")),i.select(".".concat(Ac.chartArcs)).attr("transform",n.getTranslate("arc"))},transformAll:function(t,e){var n=this,i=n.config,r=n.state.hasAxis,a=n.$el;n.transformMain(t,e),r&&i.subchart_show&&n.transformContext(t,e),a.legend&&n.transformLegend(t)}},Gl={setTargetType:function(t,e){var n=this,i=n.config,r=n.state.withoutFadeIn;n.mapToTargetIds(t).forEach(function(t){r[t]=e===i.data_types[t],i.data_types[t]=e}),t||(i.data_type=e)},updateTypesElements:function(){var t=this,e=t.state.current;Object.keys(Ds).forEach(function(n){var i=Ds[n],r=t.hasType(i,null,!0),a=e.types.indexOf(i);-1===a&&r?e.types.push(i):a>-1&&!r&&e.types.splice(a,1)}),t.setChartElements()},hasType:function(t,e,n){var i;void 0===n&&(n=!1);var r=this,a=r.config,o=r.state.current,s=a.data_types,c=e||r.data.targets,l=!1;return!n&&(null===(i=o.types)||void 0===i?void 0:i.indexOf(t))>-1?l=!0:(null==c?void 0:c.length)?c.forEach(function(e){var n=s[e.id];(n===t||!n&&"line"===t)&&(l=!0)}):Object.keys(s).length?Object.keys(s).forEach(function(e){s[e]===t&&(l=!0)}):l=a.data_type===t,l},hasTypeOf:function(t,e,n){var i=this;return void 0===n&&(n=[]),t in $s&&!$s[t].filter(function(t){return-1===n.indexOf(t)}).every(function(t){return!i.hasType(t,e)})},isTypeOf:function(t,e){var n=Fs(t)?t:t.id,i=this.config.data_types[n]||this.config.data_type;return Zs(e)?e.indexOf(i)>=0:i===e},hasPointType:function(){var t=this;return t.hasTypeOf("Line")||t.hasType("bubble")||t.hasType("scatter")},hasArcType:function(t,e){return this.hasTypeOf("Arc",t,e)},hasMultiArcGauge:function(){return this.hasType("gauge")&&"multi"===this.config.gauge_type},isLineType:function(t){var e=Fs(t)?t:t.id;return!this.config.data_types[e]||this.isTypeOf(e,$s.Line)},isStepType:function(t){return this.isTypeOf(t,$s.Step)},isSplineType:function(t){return this.isTypeOf(t,$s.Spline)},isAreaType:function(t){return this.isTypeOf(t,$s.Area)},isAreaRangeType:function(t){return this.isTypeOf(t,$s.AreaRange)},isBarType:function(t){return this.isTypeOf(t,"bar")},isBubbleType:function(t){return this.isTypeOf(t,"bubble")},isCandlestickType:function(t){return this.isTypeOf(t,"candlestick")},isScatterType:function(t){return this.isTypeOf(t,"scatter")},isPieType:function(t){return this.isTypeOf(t,"pie")},isGaugeType:function(t){return this.isTypeOf(t,"gauge")},isDonutType:function(t){return this.isTypeOf(t,"donut")},isPolarType:function(t){return this.isTypeOf(t,"polar")},isRadarType:function(t){return this.isTypeOf(t,"radar")},isArcType:function(t){return this.isPieType(t)||this.isDonutType(t)||this.isGaugeType(t)||this.isPolarType(t)||this.isRadarType(t)},isCirclePoint:function(t){var e=this.config,n=e.point_pattern;return"circle"===(null==t?void 0:t.tagName)||"circle"===e.point_type&&(!n||Zs(n)&&0===n.length)},lineData:function(t){return this.isLineType(t)?[t]:[]},arcData:function(t){return this.isArcType(t.data)?[t]:[]},labelishData:function(t){return this.isBarType(t)||this.isLineType(t)||this.isScatterType(t)||this.isBubbleType(t)||this.isCandlestickType(t)||this.isRadarType(t)?t.values.filter(function(t){return zs(t.value)||Boolean(t.value)}):[]},barLineBubbleData:function(t){return this.isBarType(t)||this.isLineType(t)||this.isBubbleType(t)?t.values:[]},isInterpolationType:function(t){return["basis","basis-closed","basis-open","bundle","cardinal","cardinal-closed","cardinal-open","catmull-rom","catmull-rom-closed","catmull-rom-open","linear","linear-closed","monotone-x","monotone-y","natural"].indexOf(t)>=0}},Wl=function(){function t(t){this.data={xs:{},targets:[]},this.scale={x:null,y:null,y2:null,subX:null,subY:null,subY2:null,zoom:null},this.org={xScale:null,xDomain:null},this.format={extraLineClasses:null,xAxisTick:null,dataTime:null,defaultAxisTime:null,axisTime:null};var e=this;e.api=t,e.config=new nl,e.cache=new hl;var n=new Gc;e.$el=n.getStore("element"),e.state=n.getStore("state"),e.$T=e.$T.bind(e)}return t.prototype.$T=function(t,e,n){var i=this.config,r=this.state,a=i.transition_duration,o=i.subchart_show,s=t;s&&("tagName"in s&&(s=Hn(s)),s=(!1!==e&&a||e)&&(!r.zooming||r.dragging)&&!r.resizing&&r.rendered&&!o?s.transition(n).duration(a):s);return s},t.prototype.beforeInit=function(){var t=this;t.callPluginHook("$beforeInit"),Qs(t.config.onbeforeinit,t.api)},t.prototype.afterInit=function(){var t=this;t.callPluginHook("$afterInit"),Qs(t.config.onafterinit,t.api)},t.prototype.init=function(){var t=this,e=t.config,n=t.state,i=t.$el,r=e.boost_useCssRule;if(wc(t),n.hasAxis=!t.hasArcType(),n.hasRadar=!n.hasAxis&&t.hasType("radar"),n.datetimeId="bb-".concat(+new Date*sc()),r){var a=Rs.createElement("style");a.type="text/css",Rs.head.appendChild(a),n.style={rootSelctor:".".concat(n.datetimeId),sheet:a.sheet},i.style=a}var o={element:e.bindto,classname:"bb"};Ks(e.bindto)&&(o.element=e.bindto.element||"#chart",o.classname=e.bindto.classname||o.classname),i.chart=Ns(o.element.node)?e.bindto.element:Hn(o.element||[]),i.chart.empty()&&(i.chart=Hn(Rs.body.appendChild(Rs.createElement("div")))),i.chart.html("").classed(o.classname,!0).classed(n.datetimeId,r).style("position","relative"),t.initParams(),t.initToRender()},t.prototype.initToRender=function(t){var e=this,n=e.config,i=e.state,r=e.$el.chart,a=function(){return"none"===r.style("display")||"hidden"===r.style("visibility")},o=n.render.lazy||a(),s=Ls.MutationObserver;o&&s&&!1!==n.render.observe&&!t&&new s(function(t,n){a()||(n.disconnect(),!i.rendered&&e.initToRender(!0))}).observe(r.node(),{attributes:!0,attributeFilter:["class","style"]}),o&&!t||e.convertData(n,function(t){e.initWithData(t),e.afterInit()})},t.prototype.initParams=function(){var t=this,e=t.config,n=t.format,i=t.state,r=e.axis_rotated;if(t.color=t.generateColor(),t.levelColor=t.generateLevelColor(),!1===e.padding&&(e.axis_x_show=!1,e.axis_y_show=!1,e.axis_y2_show=!1,e.subchart_show=!1),t.hasPointType()&&(t.point=t.generatePoint()),i.hasAxis){t.initClip(),n.extraLineClasses=t.generateExtraLineClass(),n.dataTime=e.data_xLocaltime?dt:gt,n.axisTime=e.axis_x_localtime?ht:ft;var a=t.config.zoom_enabled&&"drag"===t.config.zoom_type;n.defaultAxisTime=function(e){var i=t.scale,r=i.x,o=i.zoom,s=a?o:o&&r.orgDomain().toString()!==o.domain().toString(),c=(e.getMilliseconds()?".%L":e.getSeconds()&&".:%S")||e.getMinutes()&&"%I:%M"||e.getHours()&&"%I %p"||1!==e.getDate()&&"%b %d"||s&&1===e.getDate()&&"%b'%y"||e.getMonth()&&"%-m/%-d"||"%Y";return n.axisTime(c)(e)}}i.isLegendRight="right"===e.legend_position,i.isLegendInset="inset"===e.legend_position,i.isLegendTop="top-left"===e.legend_inset_anch
11or||"top-right"===e.legend_inset_anchor,i.isLegendLeft="top-left"===e.legend_inset_anchor||"bottom-left"===e.legend_inset_anchor,i.rotatedPadding.top=t.getResettedPadding(i.rotatedPadding.top),i.rotatedPadding.right=r&&!e.axis_x_show?0:30,i.inputType=function(t,e){var n=Ls.DocumentTouch,i=Ls.matchMedia,r=Ls.navigator,a=!1;if(e)if(r&&"maxTouchPoints"in r)a=r.maxTouchPoints>0;else if("ontouchmove"in Ls||n&&Rs instanceof n)a=!0;else if(null==i?void 0:i("(pointer:coarse)").matches)a=!0;else{var o=r.userAgent;a=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(o)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(o)}return(t&&["any-hover:hover","any-pointer:fine"].some(function(t){return null==i?void 0:i("(".concat(t,")")).matches})?"mouse":a&&"touch")||"mouse"}(e.interaction_inputType_mouse,e.interaction_inputType_touch)},t.prototype.initWithData=function(t){var e,n,i=this,r=i.config,a=i.scale,o=i.state,s=i.$el,c=i.org,l=o.hasAxis,u=r.interaction_enabled,h=i.hasType("polar");l&&(i.axis=i.getAxisInstance(),r.zoom_enabled&&i.initZoom()),i.data.xs={},i.data.targets=i.convertDataToTargets(t),r.data_filter&&(i.data.targets=i.data.targets.filter(r.data_filter.bind(i.api))),r.data_hide&&i.addHiddenTargetIds(!0===r.data_hide?i.mapToIds(i.data.targets):r.data_hide),r.legend_hide&&i.addHiddenLegendIds(!0===r.legend_hide?i.mapToIds(i.data.targets):r.legend_hide),i.updateSizes(),i.updateScales(!0);var d=a.x,f=a.y,g=a.y2,p=a.subX,_=a.subY,v=a.subY2;if(d&&(d.domain(_c(i.getXDomain(i.data.targets))),p.domain(d.domain()),c.xDomain=d.domain()),f&&(f.domain(i.getYDomain(i.data.targets,"y")),_.domain(f.domain())),g&&(g.domain(i.getYDomain(i.data.targets,"y2")),v&&v.domain(g.domain())),s.svg=s.chart.append("svg").style("overflow","hidden").style("display","block"),u&&o.inputType){var x="touch"===o.inputType,y=r.onclick,m=r.onover,b=r.onout;s.svg.on("click",(null==y?void 0:y.bind(i.api))||null).on(x?"touchstart":"mouseenter",(null==m?void 0:m.bind(i.api))||null).on(x?"touchend":"mouseleave",(null==b?void 0:b.bind(i.api))||null)}r.svg_classname&&s.svg.attr("class",r.svg_classname);var T=Ns(r.color_tiles)&&i.patterns;(l||T||r.data_labels_backgroundColors||h)&&(s.defs=s.svg.append("defs"),l&&["id","idXAxis","idYAxis","idGrid"].forEach(function(t){i.appendClip(s.defs,o.clip[t])}),i.generateDataLabelBackgroundColorFilter(),T&&i.patterns.forEach(function(t){return s.defs.append(function(){return t.node})})),i.updateSvgSize(),i.bindResize();var w=s.svg.append("g").classed(kc.main,!0).attr("transform",i.getTranslate("main"));if(s.main=w,r.subchart_show&&i.initSubchart(),r.tooltip_show&&i.initTooltip(),r.title_text&&i.initTitle(),r.legend_show&&i.initLegend(),r.data_empty_label_text&&w.append("text").attr("class","".concat(Uc.text," ").concat(kc.empty)).attr("text-anchor","middle").attr("dominant-baseline","middle"),l&&(r.regions.length&&i.initRegion(),!r.clipPath&&i.axis.init()),w.append("g").attr("class",kc.chart).attr("clip-path",o.clip.path),i.callPluginHook("$init"),l&&(u&&(null===(e=i.initEventRect)||void 0===e||e.call(i)),i.initGrid(),r.clipPath&&(null===(n=i.axis)||void 0===n||n.init())),i.initChartElements(),i.updateTargets(i.data.targets),i.updateDimension(),Qs(r.oninit,i.api),i.setBackground(),i.redraw({withTransition:!1,withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransitionForAxis:!1,initializing:!0}),r.data_onmin||r.data_onmax){var k=i.getMinMaxData();Qs(r.data_onmin,i.api,k.min),Qs(r.data_onmax,i.api,k.max)}r.tooltip_show&&i.initShowTooltip(),o.rendered=!0},t.prototype.initChartElements=function(){var t=this,e=t.state,n=e.hasAxis,i=e.hasRadar,r=[];if(n)["bar","bubble","candlestick","line"].forEach(function(e){var n=uc(e);("line"===e&&t.hasTypeOf(n)||t.hasType(e))&&r.push(n)});else{var a=t.hasType("polar");i||r.push("Arc","Pie"),t.hasType("gauge")?r.push("Gauge"):i?r.push("Radar"):a&&r.push("Polar")}r.forEach(function(e){t["init".concat(e)]()}),qs(t.config.data_labels)&&!t.hasArcType(null,["radar"])&&t.initText()},t.prototype.setChartElements=function(){var t=this.$el,e=t.chart,n=t.svg,i=t.defs,r=t.main,a=t.tooltip,o=t.legend,s=t.title,c=t.grid,l=t.arcs,u=t.circle,h=t.bar,d=t.candlestick,f=t.line,g=t.area,p=t.text;this.api.$={chart:e,svg:n,defs:i,main:r,tooltip:a,legend:o,title:s,grid:c,arc:l,cir
11cles:u,bar:{bars:h},candlestick:d,line:{lines:f,areas:g},text:{texts:p}}},t.prototype.setBackground=function(){var t=this,e=t.config.background,n=t.state,i=t.$el.svg;if(qs(e)){var r=i.select("g").insert(e.imgUrl?"image":"rect",":first-child");e.imgUrl?r.attr("href",e.imgUrl):e.color&&r.style("fill",e.color).attr("clip-path",n.clip.path),r.attr("class",e.class||null).attr("width","100%").attr("height","100%")}},t.prototype.updateTargets=function(t){var e,n=this,i=n.state,r=i.hasAxis,a=i.hasRadar,o=function(e){return n["updateTargetsFor".concat(e)](t.filter(n["is".concat(e,"Type")].bind(n)))};if(n.updateTargetsForText(t),r)["bar","candlestick","line"].forEach(function(t){var e=uc(t);("line"===t&&n.hasTypeOf(e)||n.hasType(t))&&o(e)}),n.updateTargetsForSubchart&&n.updateTargetsForSubchart(t);else if(n.hasArcType(t)){var s="Arc";a?s="Radar":n.hasType("polar")&&(s="Polar"),o(s)}var c=n.hasType("bubble")||n.hasType("scatter");c&&(null===(e=n.updateTargetForCircle)||void 0===e||e.call(n)),n.filterTargetsToShowAtInit(c)},t.prototype.filterTargetsToShowAtInit=function(t){void 0===t&&(t=!1);var e=this,n=e.$el.svg,i=e.$T,r=".".concat(kc.target);t&&(r+=", .".concat(Lc.chartCircles," > .").concat(Lc.circles)),i(n.selectAll(r).filter(function(t){return e.isTargetToShow(t.id)})).style("opacity",null)},t.prototype.getWithOption=function(t){var e={Dimension:!0,EventRect:!0,Legend:!1,Subchart:!0,Transform:!1,Transition:!0,TrimXDomain:!0,UpdateXAxis:"UpdateXDomain",UpdateXDomain:!1,UpdateOrgXDomain:!1,TransitionForExit:"Transition",TransitionForAxis:"Transition",Y:!0};return Object.keys(e).forEach(function(n){var i=e[n];Fs(i)&&(i=e[i]),e[n]=Js(t,"with".concat(n),i)}),e},t.prototype.initialOpacity=function(t){var e=this.state.withoutFadeIn;return null!==this.getBaseValue(t)&&e[t.id]?null:"0"},t.prototype.bindResize=function(){var t,e,n,i,r=this,a=r.config,o=r.state,s=(t=a.resize_timer,n=[],(i=function(){i.clear(),!1===t&&Ls.requestIdleCallback?requestIdleCallback(function(){n.forEach(function(t){return t()})},{timeout:200}):e=dl(function(){n.forEach(function(t){return t()})},zs(t)?t:200)}).clear=function(){e&&(fl(e),e=null)},i.add=function(t){return n.push(t)},i.remove=function(t){return n.splice(n.indexOf(t),1)},i),c=[];c.push(function(){return Qs(a.onresize,r.api)}),a.resize_auto&&c.push(function(){o.resizing=!0,a.legend_show&&(r.updateSizes(),r.updateLegend()),r.api.flush(!1)}),c.push(function(){Qs(a.onresized,r.api),o.resizing=!1}),c.forEach(function(t){return s.add(t)}),r.resizeFunction=s,Ls.addEventListener("resize",r.resizeFunction=s)},t.prototype.callPluginHook=function(t){for(var e=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];this.config.plugins.forEach(function(i){"$beforeInit"===t&&(i.$$=e,e.api.plugins.push(i)),i[t].apply(i,n)})},t}();function ql(t){var e,n,i,r=this.config,a=function(){var t=n.shift();return t&&e&&Gs(e)&&t in e?(e=e[t],a()):t?void 0:e};Object.keys(r).forEach(function(o){e=t,n=o.split("_"),i=a(),Ys(i)&&(r[o]=i)})}lc(Wl.prototype,[kl,Al,Sl,{categoryName:function(t){var e=this.config.axis_x_categories;return t<(null==e?void 0:e.length)?e[t]:t}},El,Ll,Rl,Cl,Il,$l,Pl,Xl,Nl,Fl,zl,Yl,Vl,Hl,jl,Gl]);var Zl={resize:function(t){var e=this.internal,n=e.config,i=e.state;i.rendered&&(n.size_width=t?t.width:null,n.size_height=t?t.height:null,i.resizing=!0,this.flush(!1),e.resizeFunction())},flush:function(t){var e,n,i=this.internal,r=i.state,a=i.$el.zoomResetBtn;r.rendered?(r.resizing?null===(e=i.brush)||void 0===e||e.updateResize():null===(n=i.axis)||void 0===n||n.setOrient(),null==a||a.style("display","none"),i.scale.zoom=null,t?i.redraw({withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withLegend:!0}):i.updateAndRedraw({withLegend:!0,withTransition:!1,withTransitionForTransform:!1}),!r.resizing&&i.brush&&(i.brush.getSelection().call(i.brush.move),i.unselectRect())):i.initToRender(!0)},destroy:function(){var t=this,e=this.internal,n=e.$el,i=n.chart,r=n.style,a=n.svg;if(qs(e))for(var o in e.callPluginHook("$willDestroy"),e.charts.splice(e.charts.indexOf(this),1),e.unbindAllEvents(),a.select("*").interrupt(),e.resizeFunction.clear(),Ls.removeEventListener("resize",e.resizeFunction),i.classed("bb",!1).style("position",null).selectChildren().remove(),r&&r.parentNode.removeChild(r),Object.keys(this).forEac
11h(function(n){"internal"===n&&Object.keys(e).forEach(function(t){e[t]=null}),t[n]=null,delete t[n]}),this)this[o]=function(){};return null},config:function(t,e,n){var i,r=this.internal.config,a=null==t?void 0:t.replace(/\./g,"_");return a in r&&(Ys(e)?(r[a]=e,i=e,n&&this.flush()):i=r[a]),i}};function Kl(t){var e=this.internal.data.targets;if(!Bs(t)){var n=Zs(t)?t:[t];return e.filter(function(t){return n.some(function(e){return e===t.id})})}return e}lc(Kl,{shown:function(t){return this.internal.filterTargetsToShow(this.data(t))},values:function(t,e){void 0===e&&(e=!0);var n=null;if(t){var i=this.data(t);Zs(i)&&(n=[],i.forEach(function(t){var i=t.values.map(function(t){return t.value});e?n=n.concat(i):n.push(i)}))}return n},names:function(t){return this.internal.updateDataAttributes("names",t)},colors:function(t){return this.internal.updateDataAttributes("colors",t)},axes:function(t){return this.internal.updateDataAttributes("axes",t)},min:function(){return this.internal.getMinMaxData().min},max:function(){return this.internal.getMinMaxData().max}});var Jl={data:Kl};function Ql(t,e,n){var i,r,a=e||n,o=a.width,s=a.height,c=new XMLSerializer,l=t.cloneNode(!0),u=(i=hc(Rs.styleSheets),r=[],i.forEach(function(t){try{t.cssRules&&t.cssRules.length&&(r=r.concat(hc(t.cssRules)))}catch(e){console.error("Error while reading rules from ".concat(t.href,": ").concat(e.toString()))}}),r).filter(function(t){return t.cssText}).map(function(t){return t.cssText});l.setAttribute("xmlns",Ie.xhtml);var h=c.serializeToString(l),d=Rs.createElement("style");d.appendChild(Rs.createTextNode(u.join("\n")));var f=c.serializeToString(d),g='<svg xmlns="'.concat(Ie.svg,'" width="').concat(o,'" height="').concat(s,'" \n\t\tviewBox="0 0 ').concat(n.width," ").concat(n.height,'" \n\t\tpreserveAspectRatio="').concat(!1===(null==e?void 0:e.preserveAspectRatio)?"none":"xMinYMid meet",'">\n\t\t\t<foreignObject width="100%" height="100%">\n\t\t\t\t').concat(f,"\n\t\t\t\t").concat(h.replace(/(url\()[^#]+/g,"$1"),"\n\t\t\t</foreignObject></svg>").replace("/\n/g","%0A");return"data:image/svg+xml;base64,".concat(btoa(encodeURIComponent(g).replace(/%([0-9A-F]{2})/g,function(t,e){return String.fromCharCode(Number("0x".concat(e)))})))}var tu={export:function(t,e){var n=this,i=this.internal,r=i.state,a=i.$el.chart,o=r.current,s=o.width,c=o.height,l=pc({width:s,height:c,preserveAspectRatio:!0,mimeType:"image/png"},t),u=Ql(a.node(),l,{width:s,height:c});if(e&&Ns(e)){var h=new Image;h.crossOrigin="Anonymous",h.onload=function(){var t=Rs.createElement("canvas"),i=t.getContext("2d");t.width=l.width||s,t.height=l.height||c,i.drawImage(h,0,0),e.bind(n)(t.toDataURL(l.mimeType))},h.src=u}return u}},eu={focus:function(t){var e=this.internal,n=e.state,i=e.mapToTargetIds(t),r=e.$el.svg.selectAll(e.selectorTargets(i.filter(e.isTargetToShow,e)));this.revert(),this.defocus(),r.classed(Xc.focused,!0).classed(Xc.defocused,!1),e.hasArcType()&&!n.hasRadar&&(e.expandArc(i),e.hasType("gauge")&&e.markOverlapped(t,e,".".concat(Ic.gaugeValue))),e.toggleFocusLegend(i,!0),n.focusedTargetIds=i,n.defocusedTargetIds=n.defocusedTargetIds.filter(function(t){return i.indexOf(t)<0})},defocus:function(t){var e=this.internal,n=e.state,i=e.mapToTargetIds(t);e.$el.svg.selectAll(e.selectorTargets(i.filter(e.isTargetToShow,e))).classed(Xc.focused,!1).classed(Xc.defocused,!0),e.hasArcType(null,["polar"])&&(e.unexpandArc(i),e.hasType("gauge")&&e.undoMarkOverlapped(e,".".concat(Ic.gaugeValue))),e.toggleFocusLegend(i,!1),n.focusedTargetIds=n.focusedTargetIds.filter(function(t){return i.indexOf(t)<0}),n.defocusedTargetIds=i},revert:function(t){var e=this.internal,n=e.config,i=e.state,r=e.$el,a=e.mapToTargetIds(t);r.svg.selectAll(e.selectorTargets(a)).classed(Xc.focused,!1).classed(Xc.defocused,!1),e.hasArcType(null,["polar"])&&e.unexpandArc(a),n.legend_show&&(e.showLegend(a.filter(e.isLegendToShow.bind(e))),r.legend.selectAll(e.selectorLegends(a)).filter(function(){return Hn(this).classed(Xc.legendItemFocused)}).classed(Xc.legendItemFocused,!1)),i.focusedTargetIds=[],i.defocusedTargetIds=[]}},nu={legend:{show:function(t){var e=this.internal;e.showLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})},hide:function(t){var e=this.internal;e.hideLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})}}},iu={load:function(t){var e=this.internal,n=e.config;t.xs&&e.addXs(t.xs),"names"in t&&this.data.names(t.names),"classes"in t&&Object.keys(t.classes).forEac
11h(function(e){n.data_classes[e]=t.classes[e]}),"categories"in t&&e.axis.isCategorized()&&(n.axis_x_categories=t.categories),"axes"in t&&Object.keys(t.axes).forEach(function(e){n.data_axes[e]=t.axes[e]}),"colors"in t&&Object.keys(t.colors).forEach(function(e){n.data_colors[e]=t.colors[e]}),"unload"in t&&!1!==t.unload?e.unload(e.mapToTargetIds(!0===t.unload?null:t.unload),function(){Ls.requestIdleCallback(function(){return e.loadFromArgs(t)})}):e.loadFromArgs(t)},unload:function(t){var e=this,n=this.internal,i=t||{};Zs(i)?i={ids:i}:Fs(i)&&(i={ids:[i]});var r=n.mapToTargetIds(i.ids);n.unload(r,function(){n.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),n.cache.remove(r),i.done&&i.done.call(e)})}};function ru(t,e,n){var i=this,r=this.internal,a=r.mapToTargetIds(e),o=r.state.hiddenTargetIds.map(function(t){return a.indexOf(t)>-1&&t}).filter(Boolean);r.state.toggling=!0,r["".concat(t?"remove":"add","HiddenTargetIds")](a);var s=r.$el.svg.selectAll(r.selectorTargets(a)),c=t?null:"0";t&&o.length&&(s.style("display",null),Qs(r.config.data_onshown,this,o)),r.$T(s).style("opacity",c,"important").call(tc,function(){t||0!==o.length||(s.style("display","none"),Qs(r.config.data_onhidden,i,a)),s.style("opacity",c)}),n.withLegend&&r["".concat(t?"show":"hide","Legend")](a),r.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),r.state.toggling=!1}var au={show:function(t,e){void 0===e&&(e={}),ru.call(this,!0,t,e)},hide:function(t,e){void 0===e&&(e={}),ru.call(this,!1,t,e)},toggle:function(t,e){var n=this;void 0===e&&(e={});var i=this.internal,r={show:[],hide:[]};i.mapToTargetIds(t).forEach(function(t){return r[i.isTargetToShow(t)?"hide":"show"].push(t)}),r.show.length&&this.show(r.show,e),r.hide.length&&setTimeout(function(){return n.hide(r.hide,e)},0)}},ou={tooltip:{show:function(t){var e,n,i=this.internal,r=i.config,a=i.state.inputType;if(t.mouse&&(n=t.mouse),t.data){var o=t.data,s=i.getYScaleById(o.id)(o.value);i.isMultipleX()?n=[i.scale.x(o.x),s]:(r.tooltip_grouped||(n=[0,s]),e=Xs(o.index)?o.index:i.getIndexByX(o.x))}else Ys(t.x)?e=i.getIndexByX(t.x):Ys(t.index)&&(e=t.index);("mouse"===a?["mouseover","mousemove"]:["touchstart"]).forEach(function(t){i.dispatchEvent(t,e,n)})},hide:function(){var t,e=this.internal,n=e.state.inputType,i=e.$el.tooltip,r=null==i?void 0:i.datum();if(r){var a=JSON.parse(r.current)[0].index;
11("mouse"===n?["mouseout"]:["touchend"]).forEach(function(t){e.dispatchEvent(t,a)})}"touch"===n&&e.callOverOutForTouch(),e.hideTooltip(!0),e.hideGridFocus(),null===(t=e.unexpandCircles)||void 0===t||t.call(e),e.expandBarTypeShapes(!1)}}},su=function(){return function t(e){this.plugins=[];var n=new Wl(this);this.internal=n,function t(e,n,i){Object.keys(e).forEach(function(r){var a=Ns(e[r]),o=n!==i,s=qs(e[r]),c=s&&Object.keys(e[r]).length>0;n[r]=a&&(!o&&c||o)?e[r].bind(i):s&&!a?{}:e[r],c&&t(e[r],n[r],i)})}(t.prototype,this,this),ql.call(n,e),n.beforeInit(),n.init()}}();function cu(t,e,n){var i=t.config,r=function(t,n){var r=zs(n)?n:!1===n?void 0:null;null!==r&&(i["axis_".concat(t,"_").concat(e)]=r)};Ys(n)&&(Gs(n)?Object.keys(n).forEach(function(t){r(t,n[t])}):(zs(n)||!1===n)&&["y","y2"].forEach(function(t){r(t,n)}),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))}function lu(t,e){var n=t.config;return{x:n["axis_x_".concat(e)],y:n["axis_y_".concat(e)],y2:n["axis_y2_".concat(e)]}}lc(su.prototype,[Zl,{color:function(t){return this.internal.color(t)}},Jl,tu,eu,nu,iu,au,ou]);var uu={axis:{labels:function(t){var e,n=this.internal;return t&&(Object.keys(t).forEach(function(e){n.axis.setLabelText(e,t[e])}),n.axis.updateLabels()),["x","y","y2"].forEach(function(t){var i=n.axis.getLabelText(t);i&&(!e&&(e={}),e[t]=i)}),e},min:function(t){var e=this.internal;return Xs(t)||!1===t?cu(e,"min",t):lu(e,"min")},max:function(t){var e=this.internal;return Xs(t)||!1===t?cu(e,"max",t):lu(e,"max")},range:function(t){var e=this.axis;if(!arguments.length)return{max:e.max(),min:e.min()};var n=t.min,i=t.max;Ys(i)&&e.max(i),Ys(n)&&e.min(n)}}};function hu(t){var e=this.internal,n=e.config;return t?(n.grid_x_lines=t,e.redrawWithoutRescale(),n.grid_x_lines):n.grid_x_lines}
11lc(hu,{add:function(t){return this.xgrids(this.internal.config.grid_x_lines.concat(t||[]))},remove:function(t){this.internal.removeGridLines(t,!0)}});var du={xgrids:hu};function fu(t){var e=this.internal,n=e.config;return t?(n.grid_y_lines=t,e.redrawWithoutRescale(),n.grid_y_lines):n.grid_y_lines}lc(fu,{add:function(t){return this.ygrids(this.internal.config.grid_y_lines.concat(t||[]))},remove:function(t){this.internal.removeGridLines(t,!1)}});var gu={ygrids:fu},pu={groups:function(t){var e=this.internal,n=e.config;return Bs(t)||(n.data_groups=t,e.redraw()),n.data_groups}};function _u(t){var e=this.internal,n=e.config;return t?(n.regions=t,e.redrawWithoutRescale(),t):n.regions}lc(_u,{add:function(t){var e=this.internal,n=e.config;return t?(n.regions=n.regions.concat(t),e.redrawWithoutRescale(),n.regions):n.regions},remove:function(t){var e=this.internal,n=e.config,i=e.$T,r=t||{},a=Js(r,"classes",[Fc.region]),o=e.$el.main.select(".".concat(Fc.regions)).selectAll(a.map(function(t){return".".concat(t)}));return i(o).style("opacity","0").remove(),o=n.regions,Object.keys(r).length?(o=o.filter(function(t){var e=!1;return!t.class||(t.class.split(" ").forEach(function(t){a.indexOf(t)>=0&&(e=!0)}),!e)}),n.regions=o):n.regions=[],o}});var vu={regions:_u},xu={x:function(t){var e=this.internal,n=e.axis,i=e.data,r=n.isCustomX()&&n.isCategorized();return Zs(t)&&(r?this.categories(t):(e.updateTargetX(i.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))),r?this.categories():i.xs},xs:function(t){var e=this.internal;return Ks(t)&&(e.updateTargetXs(e.data.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),e.data.xs}},yu={flow:function(t){var e,n=this.internal;(t.json||t.rows||t.columns)&&n.convertData(t,function(i){e=i,function(){var i,r,a,o=0,s=0;if(n.state.redrawing||!e||!bc())return;var c=[],l=n.getMaxDataCount(),u=n.convertDataToTargets(e,!0),h=n.axis.isTimeSeries();n.data.targets.forEach(function(t){for(var e=!1,n=0;n<u.length;n++)if(t.id===u[n].id){e=!0,t.values[t.values.length-1]&&(s=t.values[t.values.length-1].index+1),o=u[n].values.length;for(var i=0;i<o;i++)u[n].values[i].index=s+i,h||(u[n].values[i].x=s+i);t.values=t.values.concat(u[n].values),u.splice(n,1);break}!e&&c.push(t.id)}),n.data.targets.forEach(function(t){for(var e=0;e<c.length;e++)if(t.id===c[e]){s=t.values[t.values.length-1].index+1;for(var i=0;i<o;i++)t.values.push({id:t.id,index:s+i,x:h?n.getOtherTargetX(s+i):s+i,value:null})}}),n.data.targets.length&&u.forEach(function(t){for(var e=[],i=n.data.targets[0].values[0].index;i<s;i++)e.push({id:t.id,index:i,x:h?n.getOtherTargetX(i):i,value:null});t.values.forEach(function(t){t.index+=s,h||(t.x+=s)}),t.values=e.concat(t.values)});n.data.targets=n.data.targets.concat(u);var d=n.data.targets[0],f=d.values[0];Ys(t.to)?(o=0,a=h?mc.call(n,t.to):t.to,d.values.forEach(function(t){t.x<a&&o++})):Ys(t.length)&&(o=t.length);l?1===l&&h&&(r=(d.values[d.values.length-1].x-f.x)/2,i=[new Date(+f.x-r),new Date(+f.x+r)]):(r=h?d.values.length>1?d.values[d.values.length-1].x-f.x:f.x-n.getXDomain(n.data.targets)[0]:1,i=[f.x-r,f.x]);i&&n.updateXDomain(null,!0,!0,!1,i),n.updateTargets(n.data.targets),n.redraw({flow:{index:f.index,length:o,duration:Xs(t.duration)?t.duration:n.config.transition_duration,done:t.done,orgDataCount:l},withLegend:!0,withTransition:l>1,withTrimXDomain:!1,withUpdateXAxis:!0})}()})}},mu=function(){function t(t){var e=Ol(),n=t.config,i=t.params;this.owner=t,this.config=n,this.scale=e,!n.noTransition&&i.config.transition_duration||(n.withoutTransition=!0),n.range=this.scaleExtent((i.orgXScale||e).range())}return t.getSizeFor1Char=function(t){var e={w:5.5,h:11.5};return!t.empty()&&t.select("text").text("0").call(function(t){try{var n=t.node().getBBox(),i=n.width,r=n.height;i&&r&&(e.w=i,e.h=r)}catch(a){}finally{t.text("")}}),this.getSizeFor1Char=function(){return e},e},t.prototype.getTickTransformSetter=function(t){var e=this.config,n="x"===t?function(t){return"translate(".concat(t+e.tickOffset,",0)")}:function(t){return"translate(0,".concat(t,")")};return function(t,e){t.attr("transform",function(t){return n(Math.ceil(e(t)))})}},t.prototype.scaleExtent=function(t){var e=t[0],n=t[t.length-1];return e<n?[e,n]:[n,e]},t.prototype.generateTicks=function(t,e){var n=this.owner.params.tickStepSize,i=t.domain(),r=i[0],a=i[1],o=[];if(e&&n)for(var s=Math.round(r);s<=a;)o.push(s),s+=n;else if(t.ticks){var c=this.config.tickArguments;if("log"!==t.type||c)o=t.ticks.apply(t,this.config.tickArguments||[]);else{var l=Ol("_log").domain([r>0?r:1,a]).range(t.range());o=l.ticks();for(var u=a.toFixed().length;o.length>15;u--)o=l.ticks(u);o.splice(0,1,r),o.splice(o.length-1,1,a)}o=o.map(function(t){return Fs(t)&&zs(t)&&!isNaN(t)&&Math.round(10*t)/10||t})}else{for(var h=Math.ceil(r);h<a;h++)o.push(h);o.length>0&&o[0]>0&&o.unshift(o[0]-(o[1]-o[0]))}return o},t.prototype.copyScale=function(){var t=this.scale.copy();return t.domain().length||t.domain(this.scale.domain()),t.type=this.scale.type,t},t.prototype.textFormatted=function(t){var e=this.config.tickFormat,n=/\d+\.\d+0{5,}\d$/.test(t)?+String(t).replace(/0+\d$/,""):t,i=e?e(n):n;return Ys(i)?i:""},t.prototype.transitionise=function(t){var e=this.config,n=t;if(e.withoutTransition)n=t.interrupt();else if(e.transition||!this.owner.params.noTransition)try{n=t.transition(e.transition)}catch(i){}return n},t}(),bu=function(){function t(t){void 0===t&&(t={});var e={innerTickSize:6,outerTickSize:t.outerTick?6:0,orient:"bottom",range:[],tickArguments:null,tickCentered:null,tickCulling:!0,tickFormat:null,tickLength:9,tickOffset:0,tickPadding:3,tickValues:null,transition:null,noTransition:t.noTransition};e.tickLength=Math.max(e.innerTickSize,0)+e.tickPadding,this.config=e,this.params=t,this.helper=new mu(this)}return t.prototype.create=function(t){var e=this,n=e.config,i=e.helper,r=e.params,a=i.scale,o=n.orient,s=this.splitTickText.bind(e),c=/^(left|right)$/.test(o),l=/^(top|bottom)$/.test(o),u=i.getTickTransformSetter(l?"x":"y"),h=u===i.axisX?"y":"x",d=/^(top|left)$/.test(o)?-1:1,f=r.tickTextRotate;this.config.range=a.rangeExtent?a.rangeExtent():i.scaleExtent((r.orgXScale||a).range());var g,p=n.innerTickSize,_=n.tickLength,v=n.range,x=r.id,y=x&&/^(x|y|y2)$/.test(x)?r.config["axis_".concat(x,"_tick_text_position")]:{x:0,y:0},m="subX"===x?"subchart_axis_x":"axis_".concat(x),b=r.config["".concat(m,"_show")],T=!!b&&r.config["".concat(m,"_tick_show")],w=!!b&&r.config["".concat(m,"_tick_text_show")];t.each(function(){var t=Hn(this),x=this.__chart__||a,m=i.copyScale();
11g=t,this.__chart__=m,n.tickOffset=r.isCategory?Math.ceil((m(1)-m(0))/2):0;var b,k=t.selectAll(".domain").data([0]);if(k.enter().append("path").attr("class","domain").merge(k).attr("d",function(){var t=n.outerTickSize*d;return l?"M".concat(v[0],",").concat(t,"V0H").concat(v[1],"V").concat(t):"M".concat(t,",").concat(v[0],"H0V").concat(v[1],"H").concat(t)}),T||w){var A=n.tickValues||i.generateTicks(m,c);e.generatedTicks=A;var S=t.selectAll(".tick").data(A,m),C=S.enter().insert("g",".domain").attr("class","tick"),E=S.exit().remove();S=C.merge(S),T&&C.append("line"),w&&C.append("text");var M=mu.getSizeFor1Char(S),L=[],R=S.select("text").selectAll("tspan").data(function(t,e){var n=r.tickMultiline?s(t,m,A,c,M.w):Zs(i.textFormatted(t))?i.textFormatted(t).concat():[i.textFormatted(t)];return L[e]=n.length,n.map(function(t){return{index:e,splitted:t}})});R.exit().remove(),(R=R.enter().append("tspan").merge(R).text(function(t){return t.splitted})).attr("x",l?0:_*d).attr("dx",(b=0,/(top|bottom)/.test(o)&&f&&(b=8*Math.sin(Math.PI*(f/180))*("top"===o?-1:1)),b+(y.x||0))).attr("dy",function(t,e){var n=".71em",i=0;return"top"!==o&&(i=M.h,0===e&&(i=c?-((L[t.index]-1)*(M.h/2)-3):0===y.y?n:0)),zs(i)&&y.y?i+y.y:i||n});var D=S.select("line"),I=S.select("text");if(C.select("line").attr("".concat(h,"2"),p*d),C.select("text").attr(h,_*d),e.setTickLineTextPosition(D,I),r.tickTitle){var $=I.select("title");($.empty()?I.append("title"):$).text(function(t){return r.tickTitle[t]})}if(m.bandwidth){var P=m,O=P.bandwidth()/2;m=x=function(t){return P(t)+O}}else x.bandwidth?x=m:u(E,m);S=r.owner.state.flowing?i.transitionise(S):r.owner.$T(S),u(C,x),u(S.style("opacity",null),m)}}),this.g=g},t.prototype.getGeneratedTicks=function(t){var e=this.generatedTicks.length-1,n=this.generatedTicks;if(e>t){var i=Math.round(e/t-.1);n=this.generatedTicks.map(function(t,e){return e%i===0?t:null}).filter(function(t){return null!==t}).splice(0,t)}return n},t.prototype.getTickXY=function(){var t=this.config,e={x:0,y:0};return this.params.isCategory&&(e.x=t.tickCentered?0:t.tickOffset,e.y=t.tickCentered?t.tickOffset:0),e},t.prototype.getTickSize=function(t){var e=this.helper.scale,n=this.config,i=n.innerTickSize,r=n.range,a=e(t)+(n.tickCentered?0:n.tickOffset);return r[0]<a&&a<r[1]?i:0},t.prototype.setTickLineTextPosition=function(t,e){var n=this.getTickXY(),i=this.config,r=i.innerTickSize,a=i.orient,o=i.tickLength,s=i.tickOffset,c=this.params.tickTextRotate,l=function(t){var e=["start","end"];return"top"===a&&e.reverse(),t?e[t>0?0:1]:"middle"},u=function(t){return t?"rotate(".concat(t,")"):null},h=function(t){return t?11.5-2.5*(t/("bottom"===a?15:23))*(t>0?1:-1):o};switch(a){case"bottom":t.attr("x1",n.x).attr("x2",n.x).attr("y2",this.getTickSize.bind(this)),e.attr("x",0).attr("y",h(c)).style("text-anchor",l(c)).attr("transform",u(c));break;case"top":t.attr("x2",0).attr("y2",-r),e.attr("x",0).attr("y",2*-h(c)).style("text-anchor",l(c)).attr("transform",u(c));break;case"left":t.attr("x2",-r).attr("y1",n.y).attr("y2",n.y),e.attr("x",-o).attr("y",s).style("text-anchor","end");break;case"right":t.attr("x2",r).attr("y2",0),e.attr("x",o).attr("y",0).style("text-anchor","start")}},t.prototype.splitTickText=function(t,e,n,i,r){var a=this.params,o=this.helper.textFormatted(t),s=Fs(o)&&o.indexOf("\n")>-1?o.split("\n"):[];if(s.length)return s;if(Zs(o))return o;var c=a.tickWidth;return(!c||c<=0)&&(c=i?95:a.isCategory?Math.ceil(e(n[1])-e(n[0]))-12:110),function t(e,n){for(var i,a,o,s=1;s<n.length;s++)if(" "===n.charAt(s)&&(a=s),i=n.substr(0,s+1),o=r*i.length,c<o)return t(e.concat(n.substr(0,a||s)),n.slice(a?a+1:s));return e.concat(n)}(s,String(o))},t.prototype.scale=function(t){return arguments.length?(this.helper.scale=t,this):this.helper.scale},t.prototype.orient=function(t){return arguments.length?(this.config.orient=t in{top:1,right:1,bottom:1,left:1}?String(t):"bottom",this):this.config.orient},t.prototype.tickFormat=function(t){var e=this.config;return arguments.length?(e.tickFormat=t,this):e.tickFormat},t.prototype.tickCentered=function(t){var e=this.config;return arguments.length?(e.tickCentered=t,this):e.tickCentered},t.prototype.tickOffset=function(){return this.config.tickOffset},t.prototype.tickInterval=function(t){var e,n=this,i=this.config,r=i.outerTickSize,a=i.tickOffset,o=i.tickValues;if(this.params.isCategory)e=2*a;else{e=(this.g.select("path.domain").node().getTotalLength()-2*r)/(t||this.g.selectAll("line").size());
11var s=o?o.map(function(t,e,i){var r=e+1;return r<i.length?n.helper.scale(i[r])-n.helper.scale(t):null}).filter(Boolean):[];e=Math.min.apply(Math,Os(Os([],s,!1),[e],!1))}return e===1/0?0:e},t.prototype.ticks=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.config;return t.length?(n.tickArguments=hc(t),this):n.tickArguments},t.prototype.tickCulling=function(t){var e=this.config;return arguments.length?(e.tickCulling=t,this):e.tickCulling},t.prototype.tickValues=function(t){var e=this,n=this.config;if(Ns(t))n.tickValues=function(){return t(e.helper.scale.domain())};else{if(!arguments.length)return n.tickValues;n.tickValues=t}return this},t.prototype.setTransition=function(t){return this.config.transition=t,this},t}(),Tu={getAxisInstance:function(){return this.axis||new wu(this)}},wu=function(){function t(t){this.axesList={},this.tick={x:null,y:null,y2:null},this.xs=[],this.orient={x:"bottom",y:"left",y2:"right",subX:"bottom"},this.owner=t,this.setOrient()}return t.prototype.getAxisClassName=function(t){return"".concat(Cc.axis," ").concat(Cc["axis".concat(uc(t))])},t.prototype.isHorizontal=function(t,e){var n=t.config.axis_rotated;return e?n:!n},t.prototype.isCategorized=function(){var t=this.owner,e=t.config,n=t.state;return e.axis_x_type.indexOf("category")>=0||n.hasRadar},t.prototype.isCustomX=function(){var t=this.owner.config;return!this.isTimeSeries()&&(t.data_x||qs(t.data_xs))},t.prototype.isTimeSeries=function(t){return void 0===t&&(t="x"),"timeseries"===this.owner.config["axis_".concat(t,"_type")]},t.prototype.isLog=function(t){return void 0===t&&(t="x"),"log"===this.owner.config["axis_".concat(t,"_type")]},t.prototype.isTimeSeriesY=function(){return this.isTimeSeries("y")},t.prototype.getAxisType=function(t){void 0===t&&(t="x");var e="linear";return this.isTimeSeries(t)?e=this.owner.config.axis_x_localtime?"time":"utc":this.isLog(t)&&(e="log"),e},t.prototype.init=function(){var t=this,e=this.owner,n=e.config,i=e.$el,r=i.main,a=i.axis,o=e.state.clip,s=n.axis_rotated,c=["x","y"];n.axis_y2_show&&c.push("y2"),c.forEach(function(i){var c=t.getAxisClassName(i),l=Cc["axis".concat(i.toUpperCase(),"Label")];a[i]=r.append("g").attr("class",c).attr("clip-path",function(){var t=null;return"x"===i?t=o.pathXAxis:"y"===i&&(t=o.pathYAxis),t}).attr("transform",e.getTranslate(i)).style("visibility",n["axis_".concat(i,"_show")]?null:"hidden"),a[i].append("text").attr("class",l).attr("transform",["rotate(-90)",null]["x"===i?+!s:+s]).style("text-anchor",function(){return t.textAnchorForAxisLabel(i)}),t.generateAxes(i)})},t.prototype.setOrient=function(){var t=this.owner.config,e=t.axis_rotated,n=t.axis_y_inner,i=t.axis_y2_inner;
11this.orient={x:e?"left":"bottom",y:e?n?"top":"bottom":n?"right":"left",y2:e?i?"bottom":"top":i?"left":"right",subX:e?"left":"bottom"}},t.prototype.generateAxes=function(t){var e,n=this.owner,i=n.config,r=[],a=i["axis_".concat(t,"_axes")],o=i.axis_rotated;"x"===t?e=o?Cs:Ss:"y"===t?e=o?Ss:Cs:"y2"===t&&(e=o?ks:As),a.length&&a.forEach(function(i){var a=i.tick||{},o=n.scale[t].copy();i.domain&&o.domain(i.domain),r.push(e(o).ticks(a.count).tickFormat(Ns(a.format)?a.format.bind(n.api):function(t){return t}).tickValues(a.values).tickSizeOuter(!1===a.outer?0:6))}),this.axesList[t]=r},t.prototype.updateAxes=function(){var t=this,e=this.owner,n=e.config,i=e.$el.main,r=e.$T;Object.keys(this.axesList).forEach(function(a){var o=n["axis_".concat(a,"_axes")],s=e.scale[a].copy(),c=s.range();t.axesList[a].forEach(function(l,u){var h=l.scale().range();c.every(function(t,e){return t===h[e]})||l.scale().range(c);var d="".concat(t.getAxisClassName(a),"-").concat(u+1),f=i.select(".".concat(d.replace(/\s/,".")));f.empty()?f=i.append("g").attr("class",d).style("visibility",n["axis_".concat(a,"_show")]?null:"hidden").call(l):(o[u].domain&&s.domain(o[u].domain),r(f).call(l.scale(s))),f.attr("transform",e.getTranslate(a,u+1))})})},t.prototype.setAxis=function(t,e,n,i){var r=this.owner;"subX"!==t&&(this.tick[t]=this.getTickValues(t)),this[t]=this.getAxis(t,e,n,!("x"!==t||!(r.scale.zoom||r.config.subchart_show||r.state.resizing))||i)},t.prototype.getAxis=function(t,e,n,i,r){var a,o=this.owner,s=o.config,c=/^(x|subX)$/.test(t),l=c?"x":t,u=c&&this.isCategorized(),h=this.orient[t],d=r?0:o.getAxisTickRotate(l);if(c)a="subX"===t?o.format.subXAxisTick:o.format.xAxisTick;else{var f=s["axis_".concat(t,"_tick_format")];Ns(f)&&(a=f.bind(o.api))}var g=this.tick[l],p=pc({outerTick:n,noTransition:i,config:s,id:t,tickTextRotate:d,owner:o},c&&{isCategory:u,tickMultiline:s.axis_x_tick_multiline,tickWidth:s.axis_x_tick_width,tickTitle:u&&s.axis_x_tick_tooltip&&o.api.categories(),orgXScale:o.scale.x});c||(p.tickStepSize=s["axis_".concat(l,"_tick_stepSize")]);var _=new bu(p).scale(c&&o.scale.zoom||e).orient(h);if(c&&this.isTimeSeries()&&g&&!Ns(g)){var v=mc.bind(o);g=g.map(function(t){return v(t)})}else!c&&this.isTimeSeriesY()&&(_.ticks(s.axis_y_tick_time_value),g=null);g&&_.tickValues(g),_.tickFormat(a||!c&&o.isStackNormalized()&&function(t){return"".concat(t,"%")}),u&&(_.tickCentered(s.axis_x_tick_centered),Ws(s.axis_x_tick_culling)&&(s.axis_x_tick_culling=!1));var x=s["axis_".concat(l,"_tick_count")];return x&&_.ticks(x),_},t.prototype.updateXAxisTickValues=function(t,e){var n,i,r=this.owner,a=r.config,o=a.axis_x_tick_fit,s=a.axis_x_tick_count;return(o||s&&o)&&(i=r.mapTargetsToUniqueXs(t),this.isCategorized()&&s>i.length&&(s=i.length),i=this.generateTickValues(i,s,this.isTimeSeries())),e?e.tickValues(i):this.x&&(this.x.tickValues(i),null===(n=this.subX)||void 0===n||n.tickValues(i)),i},t.prototype.getId=function(t){var e=this.owner,n=e.config,i=e.scale,r=n.data_axes[t];return r&&i[r]||(r="y"),r},t.prototype.getXAxisTickFormat=function(t){var e,n=this.owner,i=n.config,r=n.format,a=t&&i.subchart_axis_x_tick_format||i.axis_x_tick_format,o=this.isTimeSeries(),s=this.isCategorized();return a?Ns(a)?e=a.bind(n.api):o&&(e=function(t){return t?r.axisTime(a)(t):""}):e=o?r.defaultAxisTime:s?n.categoryName:function(t){return t<0?t.toFixed(0):t},Ns(e)?function(t){return e.apply(n,s?[t,n.categoryName(t)]:[t])}:e},t.prototype.getTickValues=function(t){var e=this.owner,n=e.config["axis_".concat(t,"_tick_values")],i=e["".concat(t,"Axis")];return(Ns(n)?n.call(e.api):n)||(i?i.tickValues():void 0)},t.prototype.getLabelOptionByAxisId=function(t){return this.owner.config["axis_".concat(t,"_label")]},t.prototype.getLabelText=function(t){var e=this.getLabelOptionByAxisId(t);return Fs(e)?e:e?e.text:null},t.prototype.setLabelText=function(t,e){var n=this.owner.config,i=this.getLabelOptionByAxisId(t);Fs(i)?n["axis_".concat(t,"_label")]=e:i&&(i.text=e)},t.prototype.getLabelPosition=function(t,e){var n=this.owner.config.axis_rotated,i=this.getLabelOptionByAxisId(t),r=Gs(i)&&i.position?i.position:e[+!n],a=function(t){return!!~r.indexOf(t)};return{isInner:a("inner"),isOuter:a("outer"),isLeft:a("left"),isCenter:a("center"),isRight:a("right"),isTop:a("top"),isMiddle:a("middle"),isBottom:a("bottom")}},t.prototype.getAxisLabelPosition=function(t){return this.getLabelPosition(t,"x"===t?["inner-top","inner-right"]:["inner-right","inner-top"])},t.prototype.getLabelPositionById=function(t){return this.getAxisLabelPosition(t)},t.prototype.xForAxisLabel=function(t){var e=this.owner,n=e.state,i=n.width,r=n.height,a=this.getAxisLabelPosition(t),o=a.isMiddle?-r/2:0;return this.isHorizontal(e,"x"!==t)?o=a.isLeft?0:a.isCenter?i/2:i:a.isBottom&&(o=-r),o},t.prototype.dxForAxisLabel=function(t){var e=this.owner,n=this.getAxisLabelPosition(t),i=n.isBottom?"0.5em":"0";return this.isHorizontal(e,"x"!==t)?i=n.isLeft?"0.5em":n.isRight?"-0.5em":"0":n.isTop&&(i="-0.5em"),i},t.prototype.textAnchorForAxisLabel=function(t){var e=this.owner,n=this.getAxisLabelPosition(t),i=n.isMiddle?"middle":"end";return this.isHorizontal(e,"x"!==t)?i=n.isLeft?"start":n.isCenter?"middle":"end":n.isBottom&&(i="start"),i},t.prototype.dyForAxisLabel=function(t){var e,n=this.owner,i=n.config,r=i.axis_rotated,a=this.getAxisLabelPosition(t).isInner,o=i["axis_".concat(t,"_tick_rotate")]?n.getHorizontalAxisHeight(t):0,s=this.getMaxTickWidth(t);if("x"===t){var c=i.axis_x_height;e=r?a?"1.2em":-25-s:a?"-0.5em":c?c-10:o?o-10:"3em"}else e={y:["-0.5em",10,"3em","1.2em",10],y2:["1.2em",-20,"-2.2em","-0.5em",15]}[t],e=r?a?e[0]:o?o*("y2"===t?-1:1)-e[1]:e[2]:a?e[3]:(e[4]+(i["axis_".concat(t,"_inner")]?0:s+e[4]))*("y"===t?-1:1);return e},t.prototype.getMaxTickWidth=function(t,e){var n=this.owner,i=n.config,r=n.state.current,a=n.$el,o=a.svg,s=a.chart,c=r.maxTickWidths[t],l=0;if(e||!i["axis_".concat(t,"_show")]||0===n.filterTargetsToShow().length)return c.size;if(o){var u=/^y2?$/.test(t),h=n.filterTargetsToShow(n.data.targets),d=n.scale[t].copy().domain(n["get".concat(u?"Y":"X","Domain")](h,t)),f=d.domain(),g=f[0]===f[1]&&f.every(function(t){return t>0}
11),p=Zs(c.domain)&&c.domain[0]===c.domain[1]&&c.domain.every(function(t){return t>0});if(g||p)return c.size;c.domain=f,u||c.ticks.splice(0);var _=this.getAxis(t,d,!1,!1,!0),v=i["axis_".concat(t,"_tick_count")];!i["axis_".concat(t,"_tick_values")]&&v&&_.tickValues(this.generateTickValues(f,v,u?this.isTimeSeriesY():this.isTimeSeries())),!u&&this.updateXAxisTickValues(h,_);var x=s.append("svg").style("visibility","hidden").style("position","fixed").style("top","0").style("left","0");_.create(x),x.selectAll("text").each(function(t,e){var n=this.getBoundingClientRect().width;l=Math.max(l,n),u||(c.ticks[e]=n)}),x.remove()}return l>0&&(c.size=l),c.size},t.prototype.getXAxisTickTextY2Overflow=function(t){var e=this.owner,n=e.axis,i=e.config,r=e.state,a=e.getAxisTickRotate("x"),o=a>0&&a<90;if((n.isCategorized()||n.isTimeSeries())&&i.axis_x_tick_fit&&!i.axis_x_tick_culling&&!i.axis_x_tick_multiline&&o){var s=r.current.width-e.getCurrentPaddingLeft(),c=this.getXAxisTickMaxOverflow(a,s-t),l=Math.max(0,c)+t;return Math.min(l,s/2)}return 0},t.prototype.getXAxisTickMaxOverflow=function(t,e){for(var n=this.owner,i=n.axis,r=n.config,a=n.state,o=i.isTimeSeries(),s=a.current.maxTickWidths.x.ticks,c=s.length,l=a.axis.x.padding,u=l.left,h=l.right,d=0,f=c-(o&&r.axis_x_tick_fit?.5:0),g=0;g<c;g++){var p=g+1,_=Math.cos(Math.PI*t/180)*s[g],v=p-(o?1:.5)+u;if(!(v<=0)){var x=(e-_)/v,y=_-x/2-((f-p)*x+h*x);d=Math.max(d,y)}}var m=n.filterTargetsToShow(n.data.targets),b=0;if(!o&&r.axis_x_tick_count<=m.length&&m[0].values.length){var T=Ol(n.axis.getAxisType("x"),0,e-d).domain([-1*u,n.getXDomainMax(n.data.targets)+1+h]);b=Math.ceil((T(1)-T(0))/2)}return d+b},t.prototype.updateLabels=function(t){var e=this,n=this.owner,i=n.$el.main,r=n.$T,a={x:i.select(".".concat(Cc.axisX," .").concat(Cc.axisXLabel)),y:i.select(".".concat(Cc.axisY," .").concat(Cc.axisYLabel)),y2:i.select(".".concat(Cc.axisY2," .").concat(Cc.axisY2Label))};Object.keys(a).filter(function(t){return!a[t].empty()}).forEach(function(n){var i=a[n];r(i,t).attr("x",function(){return e.xForAxisLabel(n)}).attr("dx",function(){return e.dxForAxisLabel(n)}).attr("dy",function(){return e.dyForAxisLabel(n)}).text(function(){return e.getLabelText(n)})})},t.prototype.getPadding=function(t,e,n,i){var r=zs(t)?t:t[e];return Xs(r)?this.owner.convertPixelToScale(/(bottom|top)/.test(e)?"y":"x",r,i):n},t.prototype.generateTickValues=function(t,e,n){var i=t;if(e){var r=Ns(e)?e():e;if(1===r)i=[t[0]];else if(2===r)i=[t[0],t[t.length-1]];else if(r>2){var a=this.isCategorized(),o=r-2,s=t[0],c=t[t.length-1],l=(c-s)/(o+1),u=void 0;i=[s];for(var h=0;h<o;h++)u=+s+l*(h+1),i.push(n?new Date(u):a?Math.round(u):u);i.push(c)}}return n||(i=i.sort(function(t,e){return t-e})),i},t.prototype.generateTransitions=function(t){var e=this.owner,n=e.$el.axis,i=e.$T,r=["x","y","y2","subX"].map(function(e){return i(n[e],t)});return{axisX:r[0],axisY:r[1],axisY2:r[2],axisSubX:r[3]}},t.prototype.redraw=function(t,e,n){var i=this,r=this.owner,a=r.config,o=r.$el,s=e?"0":null;["x","y","y2","subX"].forEach(function(e){var r=i[e],c=o.axis[e];r&&c&&(n||a.transition_duration||(r.config.withoutTransition=!0),c.style("opacity",s),r.create(t["axis".concat(uc(e))]))}),this.updateAxes()},t.prototype.redrawAxis=function(t,e,n,i,r){var a,o,s,c,l=this,u=this.owner,h=u.config,d=u.scale,f=u.$el,g=!!d.zoom;!g&&this.isCategorized()&&0===t.length&&d.x.domain([0,f.axis.x.selectAll(".tick").size()]),d.x&&t.length?(!g&&u.updateXDomain(t,e.UpdateXDomain,e.UpdateOrgXDomain,e.TrimXDomain),h.axis_x_tick_values||this.updateXAxisTickValues(t)):this.x&&(this.x.tickValues([]),null===(a=this.subX)||void 0===a||a.tickValues([])),h.zoom_rescale&&!i&&(c=d.x.orgDomain()),["y","y2"].forEach(function(e){var n="axis_".concat(e,"_"),i=d[e];if(i){var r=h["".concat(n,"tick_values")],a=h["".concat(n,"tick_count")];if(i.domain(u.getYDomain(t,e,c)),!r&&a){var o=u.axis[e],s=i.domain();o.tickValues(l.generateTickValues(s,s.every(function(t){return 0===t})?1:a,l.isTimeSeriesY()))}}}),this.redraw(n,u.hasArcType(),r),this.updateLabels(e.Transition),(e.UpdateXDomain||e.UpdateXAxis||e.Y)&&t.length&&this.setCulling(
11),e.Y&&(null===(o=d.subY)||void 0===o||o.domain(u.getYDomain(t,"y")),null===(s=d.subY2)||void 0===s||s.domain(u.getYDomain(t,"y2")))},t.prototype.setCulling=function(){var t=this.owner,e=t.config,n=t.state,i=n.clip,r=n.current,a=t.$el;["subX","x","y","y2"].forEach(function(t){var n=a.axis[t],o="axis_".concat("subX"===t?"x":t,"_tick_culling"),s=e[o];if(n&&s){var c,l=n.selectAll(".tick"),u=_c(l.data()),h=u.length,d=e["".concat(o,"_max")],f=e["".concat(o,"_lines")];if(h){for(var g=1;g<h;g++)if(h/g<d){c=g;break}l.each(function(t){var e=f?this.querySelector("text"):this;e&&(e.style.display=u.indexOf(t)%c?"none":null)})}else l.style("display",null);if("x"===t){var p=r.maxTickWidths.x.clipPath?i.pathXAxisTickTexts:null;a.svg.selectAll(".".concat(Cc.axisX," .tick text")).attr("clip-path",p)}}})},t}(),ku={initEventRect:function(){this.$el.main.select(".".concat(kc.chart)).append("g").attr("class",Oc.eventRects).style("fill-opacity","0")},redrawEventRect:function(){var t,e=this,n=e.config,i=e.state,r=e.$el,a=e.isMultipleX();if(r.eventRect)e.updateEventRect(r.eventRect,!0);else{var o=e.$el.main.select(".".concat(Oc.eventRects)).style("cursor",n.zoom_enabled&&"drag"!==n.zoom_type?n.axis_rotated?"ns-resize":"ew-resize":null).classed(Oc.eventRectsMultiple,a).classed(Oc.eventRectsSingle,!a).selectAll(".".concat(Oc.eventRect)).data([0]).enter().append("rect");e.updateEventRect(o),a?e.generateEventRectsForMultipleXs(o):e.generateEventRectsForSingleX(o),o.call(e.getDraggableSelection()),r.eventRect=o,"touch"!==e.state.inputType||r.svg.on("touchstart.eventRect")||e.hasArcType()||e.bindTouchOnEventRect(a)}if(!a){var s=e.getMaxDataCountTarget();e.updateDataIndexByX(s),e.updateXs(s),null===(t=e.updatePointClass)||void 0===t||t.call(e,!0),i.eventReceiver.data=s}e.updateEventRectData()},bindTouchOnEventRect:function(t){var e,n=this,i=n.config,r=n.state,a=n.$el,o=a.eventRect,s=a.svg,c=function(){n.unselectRect(),n.callOverOutForTouch()},l=i.interaction_inputType_touch.preventDefault,u=Us(l)&&l||!1,h=!isNaN(l)&&l||null;o.on("touchstart",function(t){r.event=t,n.updateEventRect()}).on("touchstart.eventRect touchmove.eventRect",function(a){if(r.event=a,!o.empty()&&o.classed(Oc.eventRect)){if(r.dragging||r.flowing||n.hasArcType()||a.touches.length>1)return;!function(t){var n=t.type,r=t.changedTouches[0]["client".concat(i.axis_rotated?"Y":"X")];"touchstart"===n?u?t.preventDefault():null!==h&&(e=r):"touchmove"===n&&(u||!0===e||null!==h&&Math.abs(e-r)>=h)&&(e=!0,t.preventDefault())}(a),function(e){if(t)n.selectRectForMultipleXs(e);else{var i=n.getDataIndexFromEvent(r.event);n.callOverOutForTouch(i),-1===i?n.unselectRect():n.selectRectForSingle(e,o,i)}}(o.node())}else c()},!0).on("touchend.eventRect",function(t){r.event=t,!o.empty()&&o.classed(Oc.eventRect)&&(n.hasArcType()||!n.toggleShape||r.cancelClick)&&r.cancelClick&&(r.cancelClick=!1)},!0),s.on("touchstart",function(t){r.event=t;var e=t.target;e&&e!==o.node()&&c()})},updateEventRect:function(t,e){void 0===e&&(e=!1);var n=this.state,i=this.$el,r=n.eventReceiver,a=n.width,o=n.height,s=n.rendered,c=n.resizing,l=t||i.eventRect;(!s||c||e)&&(l.attr("x",0).attr("y",0).attr("width",a).attr("height",o),s||l.attr("class",Oc.eventRect)),r&&(r.rect=l.node().getBoundingClientRect())},updateEventRectData:function(){var t,e,n,i,r=this,a=r.config,o=r.scale,s=r.state,c=o.zoom||o.x,l=a.axis_rotated;if(r.isMultipleX())t=0,e=0,n=s.width,i=s.height;else{var u,h=void 0;if(r.axis.isCategorized())u=r.getEventRectWidth(),h=function(t){return c(t.x)-u/2};else{var d=function(t){var e=t.index;return{prev:r.getPrevX(e),next:r.getNextX(e)}};u=function(t){var e=d(t),n=c.domain();return null===e.prev&&null===e.next?l?s.height:s.width:(Object.keys(e).forEach(function(t,i){var r;e[t]=null!==(r=e[t])&&void 0!==r?r:n[i]}),Math.max(0,(c(e.next)-c(e.prev))/2))},h=function(t){var e=d(t),n=t.x;return null===e.prev&&null===e.next?0:(null===e.prev&&(e.prev=c.domain()[0]),(c(n)+c(e.prev))/2)}}t=l?0:h,e=l?h:0,n=l?s.width:u,i=l?u:s.height}var f=s.eventReceiver,g=function(t,e){return Ns(t)?t(e):t};f.coords.splice(f.data.length),f.data.forEach(function(r,a){f.coords[a]={x:g(t,r),y:g(e,r),w:g(n,r),h:g(i,r)}})},selectRectForMultipleXs:function(t){var e=this,n=e.config,i=e.state,r=e.filterTargetsToShow(e.data.targets);if(!i.dragging&&!e.hasArcType(r)){var a=rc(i.event,t),o=e.findClosestFromTargets(r,a);if(!i.mouseover||o&&o.id===i.mouseover.id||(n.data_onout.call(e.api,i.mouseover),i.mouseover=void 0),o){var s=(e.isBubbleType(o)||e.isScatterType(o)||!n.tooltip_grouped?[o]:e.filterByX(r,o.x)).map(function(t){return e.addName(t)});e.showTooltip(s,t),e.setExpand(o.index,o.id,!0),e.showGridFocus(s),(e.isBarType(o.id)||e.dist(o,a)<n.point_sensitivity)&&(e.$el.svg.select(".".concat(Oc.eventRect)).style("cursor","pointer"),i.mouseover||(n.data_onover.call(e.api,o),i.mouseover=o))}else e.unselectRect()}},unselectRect:function(){var t=this,e=t.config,n=t.$el,i=n.circle,r=n.tooltip;t.$el.svg.select(".".concat(Oc.eventRect)).style("cursor",null),t.hideGridFocus(),r&&(t.hideTooltip(),t._handleLinkedCharts(!1)),i&&!e.point_focus_only&&t.unexpandCircles(),t.expandBarTypeShapes(!1)},generateEventRectsForSingleX:function(t){var e=this,n=e.config,i=e.state,r=i.eventReceiver,a=t.style("cursor",n.data_selection_enabled&&n.data_selection_grouped?"pointer":null).on("click",function(t){i.event=t;var n=r.currentIdx,a=r.data[-1===n?e.getDataIndexFromEvent(t):n];e.clickHandlerForSingleX.bind(this)(a,e)});if("mouse"===i.inputType){a.on("mouseover",function(t){i.event=t,e.updateEventRect()}).on("mousemove",function(t){var o=function(t){var n=t?e.getDataIndexFromEvent(t):r.currentIdx;return n>-1?r.data[n]:null}(t);if(i.event=t,o){var s=o.index,c=n.line_step_type;if(n.line_step_tooltipMatch&&e.hasType("step")&&/^step\-(before|after)$/.test(c)){var l=e.scale.zoom||e.scale.x,u=e.axis.xs[s],h=l.invert(rc(t,this)[0]);"step-after"===c&&h<u?s-=1:"step-before"===c&&h>u&&(s+=1)}i.dragging||i.flowing||e.hasArcType()||n.tooltip_grouped&&s===r.currentIdx||(s!==r.currentIdx&&(e.setOverOut(!1,r.currentIdx),r.currentIdx=s),-1===s?e.unselectRect():e.selectRectForSingle(this,a,s),e.setOverOut(-1!==s,s))}}).on("mouseout",function(t){i.event=t,n&&!e.hasArcType()&&-1!==r.currentIdx&&(e.unselectRect(),e.setOverOut(!1,r.currentIdx),r.currentIdx=-1)})}return a},clickHandlerForSingleX:function(t,e){var n=e,i=n.config,r=n.state,a=n.$el.main;if(!t||n.hasArcType()||r.cancelClick)r.cancelClick&&(r.cancelClick=!1);else{var o=t.index;a.selectAll(".".concat(Bc.shape,"-").concat(o)).each(function(t){var e;(i.data_selection_grouped||n.isWithinShape(this,t))&&(null===(e=n.toggleShape)||void 0===e||e.call(n,this,t,o),i.data_onclick.bind(n.api)(t,this))})}},generateEventRectsForMultipleXs:function(t){var e=this,n=e.state;t.on("click",function(t){n.event=t,e.clickHandlerForMultipleXS.bind(this)(e)}),"mouse"===n.inputType&&t.on("mouseover mousemove",function(t){n.event=t,e.selectRectForMultipleXs(this)}).on("mouseout",function(t){n.event=t,e.config&&!e.hasArcType()&&e.unselectRect()})},clickHandlerForMultipleXS:function(t){var e=t,n=e.config,i=e.state,r=e.filterTargetsToShow(e.data.targets);if(!e.hasArcType(r)){var a=rc(i.event,this),o=e.findClosestFromTargets(r,a);o&&(e.isBarType(o.id)||e.dist(o,a)<n.point_sensitivity)&&e.$el.main.selectAll(".".concat(Bc.shapes).concat(e.getTargetSelectorSuffix(o.id))).selectAll(".".concat(Bc.shape,"-").concat(o.index)).each(function(){var t;(n.data_selection_grouped||e.isWithinShape(this,o))&&(null===(t=e.toggleShape)||void 0===t||t.call(e,this,o,o.index),n.data_onclick.bind(e.api)(o,this))})}}},Au={generateFlow:function(t){var e=this,n=e.data,i=e.state,r=e.$el;return function(){var a=t.flow.length;
11i.flowing=!0,n.targets.forEach(function(t){t.values.splice(0,a)}),e.updateXGrid&&e.updateXGrid(!0);var o={};["axis.x","grid.x","gridLines.x","region.list","text","bar","line","area","circle"].forEach(function(t){var e=t.split("."),n=r[e[0]];n&&e.length>1&&(n=n[e[1]]),(null==n?void 0:n.size())&&(o[t]=n)}),e.hideGridFocus(),e.setFlowList(o,t)}},setFlowList:function(t,e){var n,i=this,r=e.flow,a=e.targets,o=r.duration,s=void 0===o?e.duration:o,c=r.index,l=r.length,u=r.orgDataCount,h=i.getFlowTransform(a,u,c,l),d=gl();d.add(Object.keys(t).map(function(e){return n=t[e].transition().ease(ra).duration(s),n="axis.x"===e?n.call(function(t){i.axis.x.setTransition(t).create(t)}):"region.list"===e?n.filter(i.isRegionOnX).attr("transform",h):n.attr("transform",h)})),n.call(d,function(){i.cleanUpFlow(t,e)})},cleanUpFlow:function(t,e){var n=this,i=n.config,r=n.state,a=n.$el.svg,o=i.axis_rotated,s=e.flow,c=e.shape,l=e.xv,u=c.pos,h=u.cx,d=u.cy,f=u.xForText,g=u.yForText,p=s.done,_=void 0===p?function(){}:p,v=s.length;v&&(["circle","text","shape","eventRect"].forEach(function(t){for(var e=[],n=0;n<v;n++)e.push(".".concat(Hc[t],"-").concat(n));a.selectAll(".".concat(Hc["".concat(t,"s")])).selectAll(e).remove()}),a.select(".".concat(Hc.xgrid)).remove()),Object.keys(t).forEach(function(e){var a=t[e];if("axis.x"!==e&&a.attr("transform",null),"grid.x"===e)a.attr(r.xgridAttr);else if("gridLines.x"===e)a.attr("x1",o?0:l).attr("x2",o?r.width:l);else if("gridLines.x"===e)a.select("line").attr("x1",o?0:l).attr("x2",o?r.width:l),a.select("text").attr("x",o?r.width:0).attr("y",l);else if(/^(area|bar|line)$/.test(e))a.attr("d",c.type[e]);else if("text"===e)a.attr("x",f).attr("y",g).style("fill-opacity",n.opacityForText.bind(n));else if("circle"===e)if(n.isCirclePoint())a.attr("cx",h).attr("cy",d);else{a.attr("x",function(t){return h(t)-i.point_r}).attr("y",function(t){return d(t)-i.point_r}).attr("cx",h).attr("cy",d)}else"region.list"===e&&a.select("rect").filter(n.isRegionOnX).attr("x",n.regionX.bind(n)).attr("width",n.regionWidth.bind(n))}),i.interaction_enabled&&n.redrawEventRect(),_.call(n.api),r.flowing=!1},getFlowTransform:function(t,e,n,i){var r,a=this,o=a.data,s=a.scale.x,c=o.targets[0].values,l=a.getValueOnIndex(c,n),u=a.getValueOnIndex(c,n+i),h=s.domain(),d=a.updateXDomain(t,!0,!0);e?r=1===e||(null==l?void 0:l.x)===(null==u?void 0:u.x)||a.axis.isTimeSeries()?s(h[0])-s(d[0]):s((null==l?void 0:l.x)||0)-s(u.x):1!==c.length?r=s(h[0])-s(d[0]):a.axis.isTimeSeries()?(l=a.getValueOnIndex(c,0),u=a.getValueOnIndex(c,c.length-1),r=s(l.x)-s(u.x)):r=js(d)/2;var f=js(h)/js(d);return"translate(".concat(r,",0) scale(").concat(f,",1)")}},Su={initClip:function(){var t=this,e=t.state.clip;e.id="".concat(t.state.datetimeId,"-clip"),e.idXAxis="".concat(e.id,"-xaxis"),e.idYAxis="".concat(e.id,"-yaxis"),e.idGrid="".concat(e.id,"-grid"),e.path=t.getClipPath(e.id),e.pathXAxis=t.getClipPath(e.idXAxis),e.pathYAxis=t.getClipPath(e.idYAxis),e.pathGrid=t.getClipPath(e.idGrid)},getClipPath:function(t){var e=this.config;if(!e.clipPath&&/-clip$/.test(t)||!e.axis_x_clipPath&&/-clip-xaxis$/.test(t)||!e.axis_y_clipPath&&/-clip-yaxis$/.test(t))return null;var n=!!Ls.navigator&&Ls.navigator.appVersion.toLowerCase().indexOf("msie 9.")>=0;return"url(".concat(n?"":Rs.URL.split("#")[0],"#").concat(t,")")},appendClip:function(t,e){e&&t.append("clipPath").attr("id",e).append("rect")},setXAxisClipPath:function(t){var e=this.config,n=this.state,i=n.margin,r=n.width,a=n.height,o=e.axis_rotated,s=Math.max(30,i.left)-(o?0:20),c=o?-(1+s):-(s-1),l=-Math.max(15,i.top),u=o?i.left+20:r+10+s,h=(o?i.top+a+10:i.bottom)+20;t.attr("x",c).attr("y",l).attr("width",u).attr("height",h)},setYAxisClipPath:function(t){var e=this.config,n=this.state,i=n.margin,r=n.width,a=n.height,o=e.axis_rotated,s=Math.max(30,i.left)-(o?20:0),c=e.axis_y_inner,l=c?-1:o?-(1+s):-(s-1),u=-(o?20:i.top),h=(o?r+15+s:i.left+20)+(c?20:0),d=(o?i.bottom:i.top+a)+10;t.attr("x",l).attr("y",u).attr("width",h).attr("height",d)},updateXAxisTickClip:function(){var t=this,e=t.config,n=t.state,i=n.clip,r=n.xAxisHeight,a=t.$el.defs,o=t.getHorizontalAxisHeight("x");if(a&&!i.idXAxisTickTexts){var s="".concat(i.id,"-xaxisticktexts");t.appendClip(a,s),i.pathXAxisTickTexts=t.getClipPath(i.idXAxisTickTexts),i.idXAxisTickTexts=s}!e.axis_x_tick_multiline&&t.getAxisTickRotate("x")&&o!==r&&(t.setXAxisTickClipWidth(),t.setXAxisTickTextClipPathWidth()),t.state.xAxisHeight=o},setXAxisTickClipWidth:function(){var t=this,e=t.config,n=t.state.current.maxTickWidths,i=t.getAxisTickRotate("x");if(!e.axis_x_tick_multiline&&i){var r=Math.sin(Math.PI/180*Math.abs(i));n.x.clipPath=(t.getHorizontalAxisHeight("x")-20)/r}else n.x.clipPath=null},setXAxisTickTextClipPathWidth:function(){var t=this.state,e=t.clip,n=t.current,i=this.$el.svg;i&&i.select("#".concat(e.idXAxisTickTexts," rect")).attr("width",n.maxTickWidths.x.clipPath).attr("height",30)}},Cu=function(t){return Xs(t.position)||"end"},Eu=function(t){return"start"===t.position?4:"middle"===t.position?0:-4};function Mu(t,e,n){return function(i){var r=t?0:e;return"start"===i.position?r=t?-n:0:"middle"===i.position&&(r=(t?-n:e)/2),r}}function Lu(t,e){t.each(function(){var t=Hn(this);
11["x1","x2","y1","y2"].forEach(function(e){return t.attr(e,Math.ceil(+t.attr(e)))})})}var Ru={hasGrid:function(){var t=this.config;return["x","y"].some(function(e){return t["grid_".concat(e,"_show")]||t["grid_".concat(e,"_lines")].length})},initGrid:function(){var t=this;t.hasGrid()&&t.initGridLines(),t.initFocusGrid()},initGridLines:function(){var t=this,e=t.config,n=t.state.clip,i=t.$el;(e.grid_x_lines.length||e.grid_y_lines.length)&&(i.gridLines.main=i.main.insert("g",".".concat(kc.chart).concat(e.grid_lines_front?" + *":"")).attr("clip-path",n.pathGrid).attr("class","".concat(Nc.grid," ").concat(Nc.gridLines)),i.gridLines.main.append("g").attr("class",Nc.xgridLines),i.gridLines.main.append("g").attr("class",Nc.ygridLines),i.gridLines.x=Gn([]))},updateXGrid:function(t){var e=this,n=e.config,i=e.scale,r=e.state,a=e.$el,o=a.main,s=a.grid,c=n.axis_rotated,l=e.generateGridData(n.grid_x_type,i.x),u=e.axis.isCategorized()?e.axis.x.tickOffset():0,h=function(t){return(i.zoom||i.x)(t)+u*(c?-1:1)};r.xgridAttr=c?{x1:0,x2:r.width,y1:h,y2:h}:{x1:h,x2:h,y1:0,y2:r.height},s.x=o.select(".".concat(Nc.xgrids)).selectAll(".".concat(Nc.xgrid)).data(l),s.x.exit().remove(),s.x=s.x.enter().append("line").attr("class",Nc.xgrid).merge(s.x),t||s.x.each(function(){var t=Hn(this);Object.keys(r.xgridAttr).forEach(function(e){t.attr(e,r.xgridAttr[e]).style("opacity",function(){return t.attr(c?"y1":"x1")===(c?r.height:0)?"0":null})})})},updateYGrid:function(){var t=this,e=t.axis,n=t.config,i=t.scale,r=t.state,a=t.$el,o=a.grid,s=a.main,c=n.axis_rotated,l=function(t){return Math.ceil(i.y(t))},u=e.y.getGeneratedTicks(n.grid_y_ticks)||t.scale.y.ticks(n.grid_y_ticks);o.y=s.select(".".concat(Nc.ygrids)).selectAll(".".concat(Nc.ygrid)).data(u),o.y.exit().remove(),o.y=o.y.enter().append("line").attr("class",Nc.ygrid).merge(o.y),o.y.attr("x1",c?l:0).attr("x2",c?l:r.width).attr("y1",c?0:l).attr("y2",c?r.height:l),Lu(o.y)},updateGrid:function(){var t=this,e=t.$el,n=e.grid;!e.gridLines.main&&t.initGridLines(),n.main.style("visibility",t.hasArcType()?"hidden":null),t.hideGridFocus(),t.updateXGridLines(),t.updateYGridLines()},updateXGridLines:function(){var t=this,e=t.config,n=t.$el,i=n.gridLines,r=n.main,a=t.$T,o=e.axis_rotated;e.grid_x_show&&t.updateXGrid();var s=r.select(".".concat(Nc.xgridLines)).selectAll(".".concat(Nc.xgridLine)).data(e.grid_x_lines);a(s.exit()).style("opacity","0").remove();var c=s.enter().append("g");c.append("line").style("opacity","0"),c.append("text").attr("transform",o?"":"rotate(-90)").attr("dy",-5).style("opacity","0"),a((s=c.merge(s)).attr("class",function(t){return"".concat(Nc.xgridLine," ").concat(t.class||"").trim()}).select("text").attr("text-anchor",Cu).attr("dx",Eu)).text(function(t){return t.text}).style("opacity",null),i.x=s},updateYGridLines:function(){var t=this,e=t.config,n=t.state,i=n.width,r=n.height,a=t.$el,o=t.$T,s=e.axis_rotated;e.grid_y_show&&t.updateYGrid();var c=a.main.select(".".concat(Nc.ygridLines)).selectAll(".".concat(Nc.ygridLine)).data(e.grid_y_lines);o(c.exit()).style("opacity","0").remove();var l=c.enter().append("g");l.append("line").style("opacity","0"),l.append("text").attr("transform",s?"rotate(-90)":"").style("opacity","0"),c=l.merge(c);var u=t.yv.bind(t);o(c.attr("class",function(t){return"".concat(Nc.ygridLine," ").concat(t.class||"").trim()}).select("line")).attr("x1",s?u:0).attr("x2",s?u:i).attr("y1",s?0:u).attr("y2",s?r:u).style("opacity",null),o(c.select("text").attr("text-anchor",Cu).attr("dx",Eu)).attr("dy",-5).attr("x",Mu(s,i,r)).attr("y",u).text(function(t){return t.text}).style("opacity",null),a.gridLines.y=c}
11,redrawGrid:function(t){var e=this,n=e.config.axis_rotated,i=e.state,r=i.width,a=i.height,o=e.$el.gridLines,s=e.$T,c=e.xv.bind(e),l=o.x.select("line"),u=o.x.select("text");return l=s(l,t).attr("x1",n?0:c).attr("x2",n?r:c).attr("y1",n?c:0).attr("y2",n?c:a),u=s(u,t).attr("x",Mu(!n,r,a)).attr("y",c).text(function(t){return t.text}),[l.style("opacity",null),u.style("opacity",null)]},initFocusGrid:function(){var t=this,e=t.config,n=t.state.clip,i=t.$el,r=e.grid_front,a=".".concat(r&&i.gridLines.main?Nc.gridLines:kc.chart).concat(r?" + *":""),o=i.main.insert("g",a).attr("clip-path",n.pathGrid).attr("class",Nc.grid);i.grid.main=o,e.grid_x_show&&o.append("g").attr("class",Nc.xgrids),e.grid_y_show&&o.append("g").attr("class",Nc.ygrids),e.interaction_enabled&&e.grid_focus_show&&(o.append("g").attr("class",Xc.xgridFocus).append("line").attr("class",Xc.xgridFocus),e.grid_focus_y&&!e.tooltip_grouped&&o.append("g").attr("class",Xc.ygridFocus).append("line").attr("class",Xc.ygridFocus))},showGridFocus:function(t){var e,n=this,i=n.config,r=n.state,a=r.width,o=r.height,s=i.axis_rotated,c=n.$el.main.selectAll("line.".concat(Xc.xgridFocus,", line.").concat(Xc.ygridFocus)),l=(t||[c.datum()]).filter(function(t){return t&&Xs(n.getBaseValue(t))});if(i.tooltip_show&&0!==l.length&&!n.hasType("bubble")&&!n.hasArcType()){var u=i.grid_focus_edge&&!i.tooltip_grouped,h=n.xx.bind(n);c.style("visibility",null).data(l.concat(l)).each(function(t){var e,i=Hn(this),r={x:h(t),y:n.getYScaleById(t.id)(t.value)};if(i.classed(Xc.xgridFocus))e=s?[null,r.x,u?r.y:a,r.x]:[r.x,u?r.y:null,r.x,o];else{var c="y2"===n.axis.getId(t.id);e=s?[r.y,u&&!c?r.x:null,r.y,u&&c?r.x:o]:[u&&c?r.x:null,r.y,u&&!c?r.x:a,r.y]}["x1","y1","x2","y2"].forEach(function(t,n){return i.attr(t,e[n])})}),Lu(c),null===(e=n.showCircleFocus)||void 0===e||e.call(n,t)}},hideGridFocus:function(){var t,e=this,n=e.state,i=n.inputType,r=n.resizing,a=e.$el.main;"mouse"!==i&&r||(a.selectAll("line.".concat(Xc.xgridFocus,", line.").concat(Xc.ygridFocus)).style("visibility","hidden"),null===(t=e.hideCircleFocus)||void 0===t||t.call(e))},updateGridFocus:function(){var t,e=this,n=e.state,i=n.inputType,r=n.width,a=n.height,o=n.resizing,s=e.$el.grid.main.select("line.".concat(Xc.xgridFocus));if("touch"===i)s.empty()?o&&(null===(t=e.showCircleFocus)||void 0===t||t.call(e)):e.showGridFocus();else{var c=e.config.axis_rotated;s.attr("x1",c?0:-10).attr("x2",c?r:-10).attr("y1",c?-10:0).attr("y2",c?-10:a)}return!0},generateGridData:function(t,e){var n=this.$el.main.select(".".concat(Cc.axisX)).selectAll(".tick").size(),i=[];if("year"===t)for(var r=this.getXDomain().map(function(t){return t.getFullYear()}),a=r[0],o=r[1],s=a;s<=o;s++)i.push(new Date("".concat(s,"-01-01 00:00:00")));else(i=e.ticks(10)).length>n&&(i=i.filter(function(t){return String(t).indexOf(".")<0}));return i},getGridFilterToRemove:function(t){return t?function(e){var n=!1;return(Zs(t)?t.concat():[t]).forEach(function(t){("value"in t&&e.value===t.value||"class"in t&&e.class===t.class)&&(n=!0)}),n}:function(){return!0}},removeGridLines:function(t,e){var n=this,i=n.config,r=n.$T,a=n.getGridFilterToRemove(t),o=e?Nc.xgridLines:Nc.ygridLines,s=e?Nc.xgridLine:Nc.ygridLine;r(n.$el.main.select(".".concat(o)).selectAll(".".concat(s)).filter(a)).style("opacity","0").remove();var c="grid_".concat(e?"x":"y","_lines");i[c]=i[c].filter(function(t){return!a(t)})}},Du={initRegion:function(){var t=this.$el;t.region.main=t.main.insert("g",":first-child").attr("clip-path",this.state.clip.path).attr("class",Fc.regions)},updateRegion:function(){var t=this,e=t.config,n=t.$el.region,i=t.$T;n.main||t.initRegion(),n.main.style("visibility",t.hasArcType()?"hidden":null);var r=n.main.selectAll(".".concat(Fc.region)).data(e.regions);i(r.exit()).style("opacity","0").remove(),(r=r.enter().append("g").merge(r).attr("class",t.classRegion.bind(t))).append("rect").style("fill-opacity","0"),n.list=r},redrawRegion:function(t){var e=this,n=e.$el.region,i=e.$T,r=n.list.select("rect");return[(r=i(r,t).attr("x",e.regionX.bind(e)).attr("y",e.regionY.bind(e)).attr("width",e.regionWidth.bind(e)).attr("height",e.regionHeight.bind(e))).style("fill-opacity",function(t){return Xs(t.opacity)?t.opacity:null}).on("end",function(){Hn(this.parentNode).selectAll("rect:not([x])").remove()})]},getRegionXY:function(t,e){var n=this,i=n.config,r=n.scale,a=i.axis_rotated,o="x"===t,s="start",c=0;return"y"===e.axis||"y2"===e.axis?(o||(s="end"),(o?a:!a)&&s in e&&(c=(0,r[e.axis])(e[s]))):(o?!a:a)&&s in e&&(c=(r.zoom||r.x)(n.axis.isTimeSeries()?mc.call(n,e[s]):e[s])),c},regionX:function(t){return this.getRegionXY("x",t)},regionY:function(t){return this.getRegionXY("y",t)},getRegionSize:function(t,e){var n=this,i=n.config,r=n.scale,a=n.state,o=i.axis_rotated,s="width"===t,c=n[s?"regi
11onX":"regionY"](e),l="end",u=a[t];return"y"===e.axis||"y2"===e.axis?(s||(l="start"),(s?o:!o)&&l in e&&(u=(0,r[e.axis])(e[l]))):(s?!o:o)&&l in e&&(u=(r.zoom||r.x)(n.axis.isTimeSeries()?mc.call(n,e[l]):e[l])),u<c?0:u-c},regionWidth:function(t){return this.getRegionSize("width",t)},regionHeight:function(t){return this.getRegionSize("height",t)},isRegionOnX:function(t){return!t.axis||"x"===t.axis}},Iu={getAxisSize:function(t){var e=this,n=e.config.axis_rotated;return n&&"x"===t||!n&&/y2?/.test(t)?e.getAxisWidthByAxisId(t,!0):e.getHorizontalAxisHeight(t)},getAxisWidthByAxisId:function(t,e){var n,i=this;if(i.axis){var r=null===(n=i.axis)||void 0===n?void 0:n.getLabelPositionById(t),a=i.axis.getMaxTickWidth(t,e),o=0===a?.5:0;return a+(r.isInner?20+o:40)}return 40},getHorizontalAxisHeight:function(t){var e=this,n=e.config,i=e.state,r=i.current,a=i.rotatedPadding,o=i.isLegendRight,s=i.isLegendInset,c=n.axis_rotated,l=30;if("x"===t&&!n.axis_x_show)return 8;if("x"===t&&n.axis_x_height)return n.axis_x_height;if("y"===t&&!n.axis_y_show)return!n.legend_show||o||s?1:10;if("y2"===t&&!n.axis_y2_show)return a.top;var u=e.getAxisTickRotate(t);return("x"===t&&!c||/y2?/.test(t)&&c)&&u&&(l=30+e.axis.getMaxTickWidth(t)*Math.cos(Math.PI*(90-Math.abs(u))/180),!n.axis_x_tick_multiline&&r.height&&l>r.height/2&&(l=r.height/2)),l+(e.axis.getLabelPositionById(t).isInner?0:10)+("y2"!==t||c?0:-10)},getEventRectWidth:function(){return Math.max(0,this.axis.x.tickInterval())},getAxisTickRotate:function(t){var e=this,n=e.axis,i=e.config,r=e.state,a=e.$el,o=i["axis_".concat(t,"_tick_rotate")];if("x"===t){var s=n.isCategorized()||n.isTimeSeries();if(i.axis_x_tick_fit&&s){var c=i.axis_x_tick_count,l=r.current.maxTickWidths.x.ticks.length,u=0;if(c?u=c>l?l:c:l&&(u=l),u!==r.axis.x.tickCount){var h=e.data.targets;r.axis.x.padding=e.getXDomainPadding([e.getXDomainMinMax(h,"min"),e.getXDomainMinMax(h,"max")],u)}r.axis.x.tickCount=u}a.svg&&i.axis_x_tick_fit&&!i.axis_x_tick_multiline&&!i.axis_x_tick_culling&&i.axis_x_tick_autorotate&&s&&(o=e.needToRotateXAxisTickTexts()?i.axis_x_tick_rotate:0)}return o},needToRotateXAxisTickTexts:function(){var t=this,e=t.state,n=e.axis,i=e.current.width-t.getCurrentPaddingLeft(!1)-t.getCurrentPaddingRight(),r=n.x.tickCount+n.x.padding.left+n.x.padding.right;return t.axis.getMaxTickWidth("x")>(r?i/r:0)}},$u=Ps(Ps(Ps({axis_rotated:!1},{axis_x_clipPath:!0,axis_x_show:!0,axis_x_type:"indexed",axis_x_localtime:!0,axis_x_categories:[],axis_x_tick_centered:!1,axis_x_tick_format:void 0,axis_x_tick_culling:{},axis_x_tick_culling_max:10,axis_x_tick_culling_lines:!0,axis_x_tick_count:void 0,axis_x_tick_show:!0,axis_x_tick_text_show:!0,axis_x_tick_text_position:{x:0,y:0},axis_x_tick_fit:!0,axis_x_tick_values:null,axis_x_tick_autorotate:!1,axis_x_tick_rotate:0,axis_x_tick_outer:!0,axis_x_tick_multiline:!0,axis_x_tick_width:null,axis_x_tick_tooltip:!1,axis_x_max:void 0,axis_x_min:void 0,axis_x_padding:{},axis_x_height:void 0,axis_x_extent:void 0,axis_x_label:{},axis_x_axes:[]}),{axis_y_clipPath:!0,axis_y_show:!0,axis_y_type:"indexed",axis_y_max:void 0,axis_y_min:void 0,axis_y_inverted:!1,axis_y_center:void 0,axis_y_inner:!1,axis_y_label:{},axis_y_tick_format:void 0,axis_y_tick_culling:!1,axis_y_tick_culling_max:
115,axis_y_tick_culling_lines:!0,axis_y_tick_outer:!0,axis_y_tick_values:null,axis_y_tick_rotate:0,axis_y_tick_count:void 0,axis_y_tick_show:!0,axis_y_tick_stepSize:null,axis_y_tick_text_show:!0,axis_y_tick_text_position:{x:0,y:0},axis_y_tick_time_value:void 0,axis_y_padding:{},axis_y_default:void 0,axis_y_axes:[]}),{axis_y2_show:!1,axis_y2_type:"indexed",axis_y2_max:void 0,axis_y2_min:void 0,axis_y2_inverted:!1,axis_y2_center:void 0,axis_y2_inner:!1,axis_y2_label:{},axis_y2_tick_format:void 0,axis_y2_tick_culling:!1,axis_y2_tick_culling_max:5,axis_y2_tick_culling_lines:!0,axis_y2_tick_outer:!0,axis_y2_tick_values:null,axis_y2_tick_rotate:0,axis_y2_tick_count:void 0,axis_y2_tick_show:!0,axis_y2_tick_stepSize:null,axis_y2_tick_text_show:!0,axis_y2_tick_text_position:{x:0,y:0},axis_y2_padding:{},axis_y2_default:void 0,axis_y2_axes:[]}),Pu=[uu,{category:function(t,e){var n=this.internal,i=n.config;return arguments.length>1&&(i.axis_x_categories[t]=e,n.redraw()),i.axis_x_categories[t]},categories:function(t){var e=this.internal,n=e.config;return arguments.length?(n.axis_x_categories=t,e.redraw(),n.axis_x_categories):n.axis_x_categories}},du,gu,yu,pu,vu,xu],Ou=[Tu,Su,ku,Au,Ru,Du,Iu],Xu=[{data_xs:{},data_xFormat:"%Y-%m-%d",data_xLocaltime:!0,data_xSort:!0,data_axes:{},data_regions:{},data_stack_normalize:!1},$u,{grid_x_show:!1,grid_x_type:"tick",grid_x_lines:[],grid_y_show:!1,grid_y_lines:[],grid_y_ticks:10,grid_focus_edge:!1,grid_focus_show:!0,grid_focus_y:!1,grid_front:!1,grid_lines_front:!0}],Nu={initArea:function(t){var e=this.config;t.insert("g",".".concat(e.area_front?Lc.circles:Pc.lines)).attr("class",this.getClass("areas",!0))},updateAreaGradient:function(){var t=this,e=t.config,n=t.state.datetimeId,i=t.$el.defs;t.data.targets.forEach(function(r){var a="".concat(n,"-areaGradient").concat(t.getTargetSelectorSuffix(r.id));if(t.isAreaType(r)&&i.select("#".concat(a)).empty()){var o=t.color(r),s=e.area_linearGradient,c=s.x,l=void 0===c?[0,0]:c,u=s.y,h=void 0===u?[0,1]:u,d=s.stops,f=void 0===d?[[0,o,1],[1,o,0]]:d,g=i.append("linearGradient").attr("id","".concat(a)).attr("x1",l[0]).attr("x2",l[1]).attr("y1",h[0]).attr("y2",h[1]);f.forEach(function(e){var n=Ns(e[1])?e[1].bind(t.api)(r.id):e[1];g.append("stop").attr("offset",e[0]).attr("stop-color",n||o).attr("stop-opacity",e[2])})}})},updateAreaColor:function(t){var e=this;return e.config.area_linearGradient?"url(#".concat(e.state.datetimeId,"-areaGradient").concat(e.getTargetSelectorSuffix(t.id),")"):e.color(t)},updateArea:function(t,e){void 0===e&&(e=!1);var n=this,i=n.config,r=n.state,a=n.$el,o=n.$T,s=e?a.subchart:a;i.area_linearGradient&&n.updateAreaGradient();var c=s.main.selectAll(".".concat(Sc.areas)).selectAll(".".concat(Sc.area)).data(n.lineData.bind(n));o(c.exit(),t).style("opacity","0").remove(),s.area=c.enter().append("path").attr("class",n.getClass("area",!0)).style("fill",n.updateAreaColor.bind(n)).style("opacity",function(){return r.orgAreaOpacity=Hn(this).style("opacity"),"0"}).merge(c),c.style("opacity",r.orgAreaOpacity)},redrawArea:function(t,e,n){void 0===n&&(n=!1);var i=this,r=(n?this.$el.subchart:this.$el).area,a=i.state.orgAreaOpacity;return[i.$T(r,e,sc()).attr("d",t).style("fill",i.updateAreaColor.bind(i)).style("opacity",function(t){return String(i.isAreaRangeType(t)?a/1.75:a)})]},generateDrawArea:function(t,e){var n=this,i=n.config,r=i.line_connectNull,a=i.axis_rotated,o=n.generateGetAreaPoints(t,e),s=n.getYScaleById.bind(n),c=function(t){return(e?n.subxx:n.xx).call(n,t)},l=function(t,i){return n.isGrouped(t.id)?o(t,i)[0][1]:s(t.id,e)(n.isAreaRangeType(t)?n.getRangedData(t,"high"):n.getShapeYMin(t.id))},u=function(t,i){return n.isGrouped(t.id)?o(t,i)[1][1]:s(t.id,e)(n.isAreaRangeType(t)?n.getRangedData(t,"low"):t.value)};return function(t){var e,o=r?n.filterRemoveNull(t.values):t.values,s=0,h=0;if(n.isAreaType(t)){var d=function(t,e,n){var i=null,r=go(!0),a=null,o=ko,s=null,c=bo(l);function l(l){var u,h,d,f,g,p=(l=To(l)).length,_=!1,v=new Array(p),x=new Array(p);for(null==a&&(s=o(g=c())),u=0;u<=p;++u){if(!(u<p&&r(f=l[u],u,l))===_)if(_=!_)h=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=u-1;d>=h;--d)s.point(v[d],x[d]);s.lineEnd(),s.areaEnd()}_&&(v[u]=+t(f,u,l),x[u]=+e(f,u,l),s.point(i?+i(f,u,l):v[u],n?+n(f,u,l):x[u]))}if(g)return s=null,g+""||null}function u(){return Co().defined(r).curve(o).context(a)}return t="function"==typeof t?t:void 0===t?Ao:go(+t),e="function"==typeof e?e:go(void 0===e?0:+e),n="function"==typeof n?n:void 0===n?So:go(+n),l.x=function(e){return arguments.length?(t="function"==typeof e?e:go(+e),i=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:go(+e),l):t},l.x1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:go(+t),l):i},l.y=function(t){return arguments.length?(e="function"==typeof t?t:go(+t),n=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:go(+t),l):e},l.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:go(+t),l):n},l.lineX0=l.lineY0=function(){return u().x(t).y(e)},l.lineY1=function(){return u().x(t).y(n)},l.lineX1=function(){return u().x(i).y(e)},l.defined=function(t){return arguments.length?(r="function"==typeof t?t:go(!!t),l):r},l.curve=function(t){return arguments.length?(o=t,null!=a&&(s=o(a)),l):o},l.context=function(t){return arguments.length?(null==t?a=s=null:s=o(a=t),l):a},l}();d=a?d.y(c).x0(l).x1(u):d.x(c).y0(i.area_above?0:i.area_below?n.state.height:l).y1(u),r||(d=d.defined(function(t){return null!==n.getBaseValue(t)}
11)),n.isStepType(t)&&(o=n.convertValuesToStep(o)),e=d.curve(n.getCurve(t))(o)}else o[0]&&(s=n.scale.x(o[0].x),h=n.getYScaleById(t.id)(o[0].value)),e=a?"M ".concat(h," ").concat(s):"M ".concat(s," ").concat(h);return e||"M 0 0"}},generateGetAreaPoints:function(t,e){var n=this,i=n.config,r=n.getShapeX(0,t,e),a=n.getShapeY(!!e),o=n.getShapeOffset(n.isAreaType,t,e),s=n.getYScaleById.bind(n);return function(t,c){var l=s.call(n,t.id,e)(n.getShapeYMin(t.id)),u=o(t,c)||l,h=r(t),d=t.value,f=a(t);return i.axis_rotated&&(d>0&&f<l||d<0&&l<f)&&(f=l),[[h,u],[h,f-(l-u)],[h,f-(l-u)],[h,u]]}}},Fu={initLine:function(){var t=this.$el;t.line=t.main.select(".".concat(kc.chart)).append("g").attr("class",Pc.chartLines).call(this.setCssRule(!1,".".concat(Pc.chartLines),["pointer-events:none"]))},updateTargetsForLine:function(t){var e=this,n=e.$el,i=n.area,r=n.line,a=n.main,o=e.getChartClass("Line"),s=e.getClass("lines",!0),c=e.classFocus.bind(e);r||e.initLine();var l=t.filter(function(t){return!(e.isScatterType(t)||e.isBubbleType(t))}),u=a.select(".".concat(Pc.chartLines)).selectAll(".".concat(Pc.chartLine)).data(l).attr("class",function(t){return o(t)+c(t)}),h=u.enter().append("g").attr("class",o).style("opacity","0").style("pointer-events",e.getStylePropValue("none"));h.append("g").attr("class",s),e.hasTypeOf("Area")&&e.initArea(!i&&h.empty()?u:h),e.updateTargetForCircle(l,h)},updateLine:function(t,e){void 0===e&&(e=!1);var n=this,i=n.format.extraLineClasses,r=n.$el,a=n.$T,o=e?r.subchart:r,s=o.main.selectAll(".".concat(Pc.lines)).selectAll(".".concat(Pc.line)).data(n.lineData.bind(n));a(s.exit(),t).style("opacity","0").remove(),o.line=s.enter().append("path").attr("class",function(t){return"".concat(n.getClass("line",!0)(t)," ").concat(i(t)||"")}).style("stroke",n.color).merge(s).style("opacity",n.initialOpacity.bind(n)).style("shape-rendering",function(t){return n.isStepType(t)?"crispEdges":""}).attr("transform",null)},redrawLine:function(t,e,n){void 0===n&&(n=!1);var i=this.$el;return[(0,this.$T)((n?i.subchart:i).line,e,sc()).attr("d",t).style("stroke",this.color).style("opacity",null)]},getCurve:function(t){var e=this;return e.config.axis_rotated&&e.isStepType(t)?function(n){var i=e.getInterpolate(t)(n);return i.orgPoint=i.point,i.pointRotated=function(t,e){1===this._point&&(this._point=2);var n=this._y*(1-this._t)+e*this._t;this._context.lineTo(this._x,n),this._context.lineTo(t,n),this._x=t,this._y=e},i.point=function(t,e){0===this._point?this.orgPoint(t,e):this.pointRotated(t,e)},i}:e.getInterpolate(t)},generateDrawLine:function(t,e){var n=this,i=n.config,r=n.scale,a=i.line_connectNull,o=i.axis_rotated,s=n.generateGetLinePoints(t,e),c=n.getYScaleById.bind(n),l=function(t){return(e?n.subxx:n.xx).call(n,t)},u=function(t,i){return n.isGrouped(t.id)?s(t,i)[0][1]:c(t.id,e)(n.getBaseValue(t))},h=Co();h=o?h.x(u).y(l):h.x(l).y(u),a||(h=h.defined(function(t){return null!==n.getBaseValue(t)}));var d=e?r.subX:r.x;return function(t){var s,l=c(t.id,e),u=a?n.filterRemoveNull(t.values):t.values,f=0,g=0;if(n.isLineType(t)){var p=i.data_regions[t.id];p?s=n.lineWithRegions(u,r.zoom||d,l,p):(n.isStepType(t)&&(u=n.convertValuesToStep(u)),s=h.curve(n.getCurve(t))(u))}else u[0]&&(f=d(u[0].x),g=l(u[0].value)),s=o?"M ".concat(g," ").concat(f):"M ".concat(f," ").concat(g);return s||"M 0 0"}},lineWithRegions:function(t,e,n,i){var r,a,o,s,c=this,l=c.config.axis_rotated,u=c.axis.isTimeSeries(),h=c.axis.isCategorized()?.5:0,d=[],f=function(t,e){for(var n=0,i=void 0;i=e[n];n++)if(i.start<t&&t<=i.end)return i.style;return!1};if(Ys(i))for(var g=function(t,e){return Bs(t)?e:u?mc.call(c,t):t},p=0,_=void 0;_=i[p];p++){var v=g(_.start,t[0].x),x=g(_.end,t[t.length-1].x),y=_.style||{dasharray:"2 2"};d[p]={start:v,end:x,style:y}}for(var m=l?function(t){return n(t.value)}:function(t){return e(t.x)},b=l?function(t){return e(t.x)}:function(t){return n(t.value)},T=function(t){return"M".concat(t[0][0],",").concat(t[0][1],"L").concat(t[1][0],",").concat(t[1][1])},w=u?function(t,i,r,s){var c=t.x.getTime(),u=i.x-t.x,h=new Date(c+u*r),d=new Date(c+u*(r+s)),f=l?[[n(a(r)),e(h)],[n(a(r+o)),e(d)]]:[[e(h),n(a(r))],[e(d),n(a(r+o))]];return T(f)}:function(t,i,o,s){var c=l?[[n(a(o),!0),e(r(o))],[n(a(o+s),!0),e(r(o+s))]]:[[e(r(o),!0),n(a(o))],[e(r(o+s),!0),n(a(o+s))]];return T(c)},k={x:c.axis.getAxisType("x"),y:c.axis.getAxisType("y")}
11,A="",S=(p=0,void 0);S=t[p];p++){var C=t[p-1],E=C&&Xs(C.value);y=f(S.x,d);if(Xs(S.value))if(!Bs(d)&&y&&E){if(E){try{y=y.dasharray.split(" ")}catch(I){y="2 2".split(" ")}r=Ol(k.x,C.x+h,S.x+h),a=Ol(k.y,C.value,S.value);var M=e(S.x)-e(C.x),L=n(S.value)-n(C.value),R=Math.sqrt(Math.pow(M,2)+Math.pow(L,2));s=(o=y[0]/R)*y[1];for(var D=o;D<=1;D+=s)A+=w(C,S,D,o),D+s>=1&&(A+=w(C,S,1,0))}}else A+="".concat(p&&E?"L":"M").concat(m(S),",").concat(b(S))}return A},isWithinStep:function(t,e){return Math.abs(e-rc(this.state.event,t)[1])<30},shouldDrawPointsForLine:function(t){var e=this.config.line_point;return!0===e||Zs(e)&&-1!==e.indexOf(t.id)}},zu=function(){return sc()},Bu={hasValidPointType:function(t){return/^(circle|rect(angle)?|polygon|ellipse|use)$/i.test(t||this.config.point_type)},hasValidPointDrawMethods:function(t){var e=t||this.config.point_type;return Gs(e)&&Ns(e.create)&&Ns(e.update)},initialOpacityForCircle:function(t){var e=this.config,n=this.state.withoutFadeIn,i=e.point_opacity;return Bs(i)&&(i=null!==this.getBaseValue(t)&&n[t.id]?this.opacityForCircle(t):"0"),i},opacityForCircle:function(t){var e=this.config,n=e.point_opacity;return Bs(n)&&(n=e.point_show&&!e.point_focus_only?null:"0",n=Xs(this.getBaseValue(t))?this.isBubbleType(t)||this.isScatterType(t)?"0.5":n:"0"),n},initCircle:function(){var t=this,e=t.$el.main;t.point=t.generatePoint(),(t.hasType("bubble")||t.hasType("scatter"))&&e.select(".".concat(Lc.chartCircles)).empty()&&e.select(".".concat(kc.chart)).append("g").attr("class",Lc.chartCircles)},updateTargetForCircle:function(t,e){var n=this,i=this,r=i.config,a=i.data,o=i.$el,s=r.interaction_enabled&&r.data_selection_enabled,c=s&&r.data_selection_isselectable,l=i.getClass("circles",!0);if(r.point_show){!o.circle&&i.initCircle();var u=t,h=e;if(!u){u=a.targets.filter(function(t){return n.isScatterType(t)||n.isBubbleType(t)});var d=o.main.select(".".concat(Lc.chartCircles)).style("pointer-events","none").selectAll(".".concat(Lc.circles)).data(u);d.exit().remove(),h=d.enter()}s&&h.append("g").attr("class",function(t){return i.generateClass(zc.selectedCircles,t.id)}),h.append("g").attr("class",l).call(function(t){i.setCssRule(!0,".".concat(Lc.circles),["cursor:pointer"],c)(t),i.setCssRule(!0," .".concat(Lc.circle),["fill","stroke"],i.color)(t)}).style("opacity",function(){return Hn(this.parentNode).attr("class").indexOf(Lc.chartCircles)>-1?"0":null}),s&&u.forEach(function(t){o.main.selectAll(".".concat(zc.selectedCircles).concat(i.getTargetSelectorSuffix(t.id))).selectAll("".concat(zc.selectedCircle)).each(function(e){e.value=t.values[e.index].value})})}},updateCircle:function(t){void 0===t&&(t=!1);var e=this,n=e.config,i=e.state,r=e.$el,a=n.point_focus_only,o=t?r.subchart:r;if(n.point_show&&!i.toggling){var s=o.main.selectAll(".".concat(Lc.circles)).selectAll(".".concat(Lc.circle)).data(function(t){return e.isLineType(t)&&e.shouldDrawPointsForLine(t)||e.isBubbleType(t)||e.isRadarType(t)||e.isScatterType(t)?a?[t.values[0]]:t.values:[]});s.exit().remove(),s.enter().filter(Boolean).append(e.point("create",this,e.pointR.bind(e),e.getStylePropValue(e.color))),o.circle=o.main.selectAll(".".concat(Lc.circles," .").concat(Lc.circle)).style("stroke",e.getStylePropValue(e.color)).style("opacity",e.initialOpacityForCircle.bind(e))}},redrawCircle:function(t,e,n,i,r){void 0===r&&(r=!1);var a=this,o=a.state.rendered,s=a.$el,c=a.$T,l=r?s.subchart:s,u=l.main.selectAll(".".concat(zc.selectedCircle));if(!a.config.point_show)return[];var h=a.point("update",a,t,e,a.getStylePropValue(a.color),n,i,u),d=a.isCirclePoint()?"c":"",f=sc(),g=a.opacityForCircle.bind(a),p=[];return l.circle.each(function(t){var e=h.bind(this)(t);e=c(e,n||!o,f).style("opacity",g),p.push(e)}),[p,c(u,n).attr("".concat(d,"x"),t).attr("".concat(d,"y"),e)]},showCircleFocus:function(t){var e=this,n=e.config,i=e.state,r=i.hasRadar,a=i.resizing,o=i.toggling,s=i.transiting,c=e.$el.circle;if(!1===s&&n.point_focus_only&&c){var l=(r?e.radarCircleX:e.circleX).bind(e),u=(r?e.radarCircleY:e.circleY).bind(e),h=o||Bs(t),d=e.point("update",e,l,u,e.getStylePropValue(e.color),!a&&h);t&&(c=c.filter(function(e){var n=t.filter(function(t){return t.id===e.id});return!!n.length&&Hn(this).datum(n[0])})),c.attr("class",this.updatePointClass.bind(this)).style("opacity",null).each(function(t){var n=t.id,i=t.index,r=t.value,a="hidden";Xs(r)&&(d.bind(this)(t),e.expandCircles(i,n),a=""),this.style.visibility=a})}},hideCircleFocus:function(){var t=this,e=t.config,n=t.$el.circle;e.point_focus_only&&n&&(t.unexpandCircles(),n.style("visibility","hidden"))},circleX:function(t){return this.xx(t)},updateCircleY:function(t){void 0===t&&(t=!1);var e=this,n=e.generateGetLinePoints(e.getShapeIndices(e.isLineType),t);return function(i,r){var a=i.id;return e.isGrouped(a)?n(i,r)[0][1]:e.getYScaleById(a,t)(e.getBaseValue(i))}},expandCircles:function(t,e,n){var i=this,r=i.pointExpandedR.bind(i);n&&i.unexpandCircles();var a=i.getShapeByIndex("circle",t,e).classed(kc.EXPANDED,!0),o=r(a)/i.config.point_r,s=1-o;i.isCirclePoint()?a.attr("r",r):a.each(function(){var t=Hn(this);if("circle"===this.tagName)t.attr("r",r);
11else{var e=this.getBBox(),n=e.width,i=e.height,a=s*(+t.attr("x")+n/2),c=s*(+t.attr("y")+i/2);t.attr("transform","translate(".concat(a," ").concat(c,") scale(").concat(o,")"))}})},unexpandCircles:function(t){var e=this,n=e.pointR.bind(e),i=e.getShapeByIndex("circle",t).filter(function(){return Hn(this).classed(kc.EXPANDED)}).classed(kc.EXPANDED,!1);if(i.attr("r",n),!e.isCirclePoint()){var r=n(i)/e.config.point_r;i.attr("transform",1!==r?"scale(".concat(r,")"):null)}},pointR:function(t){var e=this,n=e.config.point_r,i=n;return e.isBubbleType(t)?i=e.getBubbleR(t):Ns(n)&&(i=n.bind(e.api)(t)),i},pointExpandedR:function(t){var e=this,n=e.config,i=e.isBubbleType(t)?1.15:1.75;return n.point_focus_expand_enabled?n.point_focus_expand_r||e.pointR(t)*i:e.pointR(t)},pointSelectR:function(t){var e=this.config.point_select_r;return Ns(e)?e(t):e||4*this.pointR(t)},isWithinCircle:function(t,e){var n=rc(this.state.event,t),i=Hn(t),r=this.isCirclePoint(t)?"c":"",a=+i.attr("".concat(r,"x")),o=+i.attr("".concat(r,"y"));if(!a&&!o&&1===t.nodeType){var s=oc(t);a=s.x,o=s.y}return Math.sqrt(Math.pow(a-n[0],2)+Math.pow(o-n[1],2))<(e||this.config.point_sensitivity)},insertPointInfoDefs:function(t,e){var n,i=function(t,e){for(var n,i=t.attributes,r=0;n=i[r];r++)n=n.name,e.setAttribute(n,t.getAttribute(n))},r=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement,a=Rs.createElementNS(Ie.svg,r.nodeName.toLowerCase());if(a.id=e,a.style.fill="inherit",a.style.stroke="inherit",i(r,a),null===(n=r.childNodes)||void 0===n?void 0:n.length){var o=Hn(a);"innerHTML"in a?o.html(r.innerHTML):hc(r.childNodes).forEach(function(t){i(t,o.append(t.tagName).node())})}this.$el.defs.node().appendChild(a)},pointFromDefs:function(t){return this.$el.defs.select("#".concat(t))},updatePointClass:function(t){var e=this,n=e.$el.circle,i=!1;return(Ks(t)||n)&&(i=!0===t?n.each(function(t){var n=e.getClass("circle",!0)(t);this.getAttribute("class").indexOf(kc.EXPANDED)>-1&&(n+=" ".concat(kc.EXPANDED)),this.setAttribute("class",n)}):e.getClass("circle",!0)(t)),i},generateGetLinePoints:function(t,e){var n=this,i=n.config,r=n.getShapeX(0,t,e),a=n.getShapeY(e),o=n.getShapeOffset(n.isLineType,t,e),s=n.getYScaleById.bind(n);return function(t,c){var l=s.call(n,t.id,e)(n.getShapeYMin(t.id)),u=o(t,c)||l,h=r(t),d=a(t);i.axis_rotated&&(t.value>0&&d<l||t.value<0&&l<d)&&(d=l);var f=[h,d-(l-u)];return[f,f,f,f]}},generatePoint:function(){var t=this,e=t.config,n=t.state.datetimeId,i=[],r=qs(e.point_pattern)?e.point_pattern:[e.point_type];return function(e,a){for(var o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];return function(s){var c,l=t.getTargetSelectorSuffix(s.id||(null===(c=s.data)||void 0===c?void 0:c.id)||s),u=Hn(this);i.indexOf(l)<0&&i.push(l);var h=r[i.indexOf(l)%r.length];if(t.hasValidPointType(h))h=t[h];else if(!t.hasValidPointDrawMethods(h)){var d="".concat(n,"-point").concat(l);if(t.pointFromDefs(d).size()<1&&t.insertPointInfoDefs(h,d),"create"===e)return t.custom.create.bind(a).apply(void 0,Os([u,d],o,!1));if("update"===e)return t.custom.update.bind(a).apply(void 0,Os([u],o,!1))}return h[e].bind(a).apply(void 0,Os([u],o,!1))}}},custom:{create:function(t,e,n){return t.append("use").attr("xlink:href","#".concat(e)).attr("class",this.updatePointClass.bind(this)).style("fill",n).node()},update:function(t,e,n,i,r,a,o){var s=t.node().getBBox(),c=s.width,l=s.height,u=function(t){return Xs(t.value)?e(t)-c/2:0},h=t;return r&&(a&&h.attr("x",u),h=this.$T(h,r,zu()),o&&this.$T(o,r,zu())),h.attr("x",u).attr("y",function(t){return Xs(t.value)?n(t)-l/2:0}).style("fill",i)}},circle:{create:function(t,e,n){return t.append("circle").attr("class",this.updatePointClass.bind(this)).attr("r",e).style("fill",n).node()},update:function(t,e,n,i,r,a,o){var s=this,c=t;return s.hasType("bubble")&&c.attr("r",s.pointR.bind(s)),r&&(a&&c.attr("cx",e),c.attr("cx")&&(c=s.$T(c,r,zu())),o&&s.$T(c,r,zu())),c.attr("cx",e).attr("cy",n).style("fill",i)}},rectangle:{create:function(t,e,n){var i=function(t){return 2*e(t)};return t.append("rect").attr("class",this.updatePointClass.bind(this)).attr("width",i).attr("height",i).style("fill",n).node()},update:function(t,e,n,i,r,a,o){var s=this,c=s.config.point_r,l=function(t){return e(t)-c},u=t;return r&&(a&&u.attr("x",l),u=s.$T(u,r,zu()),o&&s.$T(o,r,zu())),u.attr("x",l).attr("y",function(t){return n(t)-c}).style("fill",i)}}},Yu={point_show:!0,point_r:2.5,point_sensitivity:10,point_focus_expand_enabled:!0,point_focus_expand_r:void 0,point_focus_only:!1,point_opacity:void 0,point_pattern:[],point_select_r:void 0,point_type:"circle"},Uu={area_above:!1,area_below:!1,area_front:!0,area_linearGradient:!1,area_zerobased:!0},Vu={line_connectNull:!1,line_step_type:"step",line_step_tooltipMatch:!1,line_zerobased:!1,line_classes:void 0,line_point:!0},Hu={spline_interpolation_type:"cardinal"};function ju(t,e){!function(t){lc(Wl.prototype,Ou.concat(t)),lc(su.prototype,Pu),nl.setOptions(Xu.concat([]))}([Bu,Fu].concat(t||[])),nl.setOptions([Yu,Vu].concat(e||[]))}var Gu=function(){return ju(Nu,[Uu,Hu]),(Gu=function(){return Ds.AREA_SPLINE})()};lc(function(t){var e,n=this.internal,i=n.$el,r=n.axis,a=n.config,o=n.org,s=n.scale,c=a.axis_rotated,l=r.
11isCategorized(),u=t;if(a.zoom_enabled&&u){if(r.isTimeSeries()&&(u=u.map(function(t){return mc.bind(n)(t)})),function(t,e,n){var i=n[0],r=n[1];return t.every(function(n,a){return(0===a?n>=i:n<=r)&&!t.every(function(t,n){return t===e[n]})})}(u,n.getZoomDomain(!0),n.getZoomDomain())){if(l&&(u=u.map(function(t,e){return Number(t)+(0===e?0:1)})),n.api.tooltip.hide(),a.subchart_show){var h=s.zoom||s.x;n.brush.getSelection().call(n.brush.move,u.map(h))}else{var d=[-(h=l?s.x.orgScale():o.xScale||s.x)(u[0]),0],f=(e=Ms.scale(h.range()[1]/(h(u[1])-h(u[0])))).translate.apply(e,c?d.reverse():d);i.eventRect.call(n.zoom.transform,f)}n.setZoomResetButton()}}else u=s.zoom?s.zoom.domain():s.x.orgDomain();return u},{enable:function(t){var e=this.internal,n=e.config;/^(drag|wheel)$/.test(t)&&(n.zoom_type=t),n.zoom_enabled=!!t,e.zoom?!1===t&&e.bindZoomEvent(!1):(e.initZoom(),e.bindZoomEvent()),e.updateAndRedraw()},max:function(t){var e=this.internal,n=e.config,i=e.org.xDomain;return(0===t||t)&&(n.zoom_x_max=vc("max",[i[1],t])),n.zoom_x_max},min:function(t){var e=this.internal,n=e.config,i=e.org.xDomain;return(0===t||t)&&(n.zoom_x_min=vc("min",[i[0],t])),n.zoom_x_min},range:function(t){var e=this.zoom;if(Ks(t)){var n=t.min,i=t.max;Ys(n)&&e.min(n),Ys(i)&&e.max(i)}return{min:e.min(),max:e.max()}}}),Ps(Ps({},{drag:function(t){var e=this,n=e.config,i=e.state,r=e.$el.main,a=n.data_selection_grouped,o=n.interaction_enabled&&n.data_selection_isselectable;if(!e.hasArcType()&&n.data_selection_enabled&&(!n.zoom_enabled||e.zoom.altDomain)&&n.data_selection_multiple){var s=i.dragStart||[0,0],c=s[0],l=s[1],u=t[0],h=t[1],d=Math.min(c,u),f=Math.max(c,u),g=a?i.margin.top:Math.min(l,h),p=a?i.height:Math.max(l,h);r.select(".".concat(Dc.dragarea)).attr("x",d).attr("y",g).attr("width",f-d).attr("height",p-g),r.selectAll(".".concat(Bc.shapes)).selectAll(".".concat(Bc.shape)).filter(function(t){return null==o?void 0:o.bind(e.api)(t)}).each(function(t,n){var i,r=Hn(this),a=r.classed(zc.SELECTED),o=r.classed(Dc.INCLUDED),s=!1;if(r.classed(Lc.circle)){var c=1*+r.attr("cx"),l=1*+r.attr("cy");i=e.togglePoint,s=d<c&&c<f&&g<l&&l<p}else{if(!r.classed(Ec.bar))return;var u=function(t){var e=t.getBoundingClientRect(),n=e.width,i=e.height,r=ic(t);return{x:r[0].x,y:Math.min(r[0].y,r[1].y),width:n,height:i}}(this),h=(c=u.x,l=u.y,u.width),_=u.height;i=e.togglePath,s=!(f<c||c+h<d||p<l||l+_<g)}s^o&&(r.classed(Dc.INCLUDED,!o),r.classed(zc.SELECTED,!a),i.call(e,!a,r,t,n))})}},dragstart:function(t){var e=this,n=e.config,i=e.state,r=e.$el.main;!e.hasArcType()&&n.data_selection_enabled&&(i.dragStart=t,r.select(".".concat(kc.chart)).append("rect").attr("class",Dc.dragarea).style("opacity","0.1"),e.setDragStatus(!0))},dragend:function(){var t=this,e=t.config,n=t.$el.main,i=t.$T;!t.hasArcType()&&e.data_selection_enabled&&(i(n.select(".".concat(Dc.dragarea))).style("opacity","0").remove(),n.selectAll(".".concat(Bc.shape)).classed(Dc.INCLUDED,!1),t.setDragStatus(!1))}}),{selectPoint:function(t,e,n){var i=this,r=i.config,a=i.$el.main,o=i.$T,s=r.axis_rotated,c=(s?i.circleY:i.circleX).bind(i),l=(s?i.circleX:i.circleY).bind(i),u=i.pointSelectR.bind(i);Qs(r.data_onselected,i.api,e,t.node()),o(a.select(".".concat(zc.selectedCircles).concat(i.getTargetSelectorSuffix(e.id))).selectAll(".".concat(zc.selectedCircle,"-").concat(n)).data([e]).enter().append("circle").attr("class",function(){return i.generateClass(zc.selectedCircle,n)}).attr("cx",c).attr("cy",l).attr("stroke",i.color).attr("r",function(t){return 1.4*i.pointSelectR(t)})).attr("r",u)},unselectPoint:function(t,e,n){var i=this,r=i.config,a=i.$el.main,o=i.$T;Qs(r.data_onunselected,i.api,e,t.node()),o(a.select(".".concat(zc.selectedCircles).concat(i.getTargetSelectorSuffix(e.id))).selectAll(".".concat(zc.selectedCircle,"-").concat(n))).attr("r",0).remove()},togglePoint:function(t,e,n,i){this["".concat(t?"":"un","selectPoint")](e,n,i)},selectPath:function(t,e){var n=this.config;Qs(n.data_onselected,this.api,e,t.node()),n.interaction_brighten&&t.style("filter","brightness(1.25)")},unselectPath:function(t,e){var n=this.config;Qs(n.data_onunselected,this.api,e,t.node()),n.interaction_brighten&&t.style("filter",null)},togglePath:function(t,e,n,i){this["".concat(t?"":"un","selectPath")](e,n,i)},getToggle:function(t,e){var n=this;return"path"===t.nodeName?n.togglePath:n.isStepType(e)?function(){}:n.togglePoint},toggleShape:function(t,e,n){var i=this,r=i.config,a=i.$el.main;if(r.data_selection_enabled&&r.data_selection_isselectable.bind(i.api)(e)){var o,s=Hn(t),c=s.
11classed(zc.SELECTED),l=i.getToggle(t,e).bind(i);if(!r.data_selection_multiple){var u=".".concat(Bc.shapes);r.data_selection_grouped&&(u+=i.getTargetSelectorSuffix(e.id)),a.selectAll(u).selectAll(".".concat(Bc.shape)).each(function(t,e){var n=Hn(this);n.classed(zc.SELECTED)&&(o=n,l(!1,n.classed(zc.SELECTED,!1),t,e))})}o&&o.node()===s.node()||(s.classed(zc.SELECTED,!c),l(!c,s,e,n))}}});const Wu=t(),qu={credential:"",password:""},Zu={...qu,fullName:""},Ku=[{label:"Calendrier",uri:"/programmations",icon:"solar:calendar-outline"},{label:"News",uri:"/news",icon:"ion:newspaper-outline"},{label:"Séries",uri:"/series",icon:"solar:tv-outline"},{label:"Trailers",uri:"/videos",icon:"solar:video-frame-play-horizontal-outline"},{label:"Membres",uri:"/membres",icon:"solar:users-group-rounded-outline"},{label:"Shop",uri:"/boutique",icon:"solar:cart-large-4-outline"}],Ju=[{label:"Nouvelles séries",uri:"/nouvelles-series"},{label:"Presse",uri:"/presses"},{label:"SA Daily",uri:"/sa-daily"}],Qu=[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{hid:"description",name:"description",content:"Series Addict, spécialiste des séries américaines et anglaises. Toute l’actualité des séries télé, fiches séries et épisodes, critiques, musiques, photos et vidéos."},{hid:"og:type",name:"og:type",content:"website"},{hid:"og:url",name:"og:url",content:"https://seriesaddict.fr/"},{hid:"og:image",name:"og:image",content:"https://seriesaddict.fr/logo.png"},{hid:"og:site_name",name:"og:site_name",content:"Series Addict"},{hid:"og:locale",name:"og:locale",content:"fr_fr"},{hid:"og:locale:alternate",name:"og:locale:alternate",content:"en"},{hid:"og:description",name:"og:description",content:"Series Addict, spécialiste des séries américaines et anglaises. Toute l’actualité des séries télé, fiches séries et épisodes, critiques, musiques, photos et vidéos."},{name:"robots",content:"all"},{name:"rating",content:"general"},{name:"copyright",content:"Series Addict - Tous Droits Réservés"},{name:"verify-v1",content:"1iHL5Om4L1T38kOR4GwKmU0KWcT28yqBGYgjE90VWv0"},{name:"author",content:"Series Addict"},{name:"reply-to",content:"[email protected]"},{name:"twitter:card",content:"summary"},{name:"twitter:site",content:"@seriesaddict"},{name:"twitter:creator",content:"@seriesaddict"},{hid:"google-site-verification",name:"google-site-verification",content:"RwRSzWRB8PqxpcJQK9SqiYDsUOxr95bqCKDUh6CRKn0"},{name:"msapplication-TileColor",content:"##c45f6c"},{name:"theme-color",content:"##c45f6c"},{name:"format-detection",content:"telephone=no,date=no,address=no,email=no,url=no"}];e().subtract(11,"days"),e().subtract(7,"days"),e().subtract(4,"days"),e(),e(),e().subtract(1,"days"),e().add(2,"days"),e().add(2,"days"),e().add(3,"days"),e().add(5,"days"),e().add(6,"days"),e().add(9,"days"),e().subtract(10,"days"),e().subtract(13,"days"),Wu.accent,Wu.primary,Gu();export{Ju as _,Ku as a,qu as b,Zu as c,Qu as s};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.