|
|
|
var uPlot=function(){"use strict";function n(n,e,r,t){var l;r=r||0;for(var a=2147483647>=(t=t||e.length-1);t-r>1;)n>e[l=a?r+t>>1:m((r+t)/2)]?r=l:t=l;return n-e[r]>e[t]-n?t:r}function e(n,e,r,t){for(var l=1==t?e:r;l>=e&&r>=l;l+=t)if(null!=n[l])return l;return-1}var r=[0,0];function t(n,e,t,l){return r[0]=0>t?R(n,-t):n,r[1]=0>l?R(e,-l):e,r}function l(n,e,r,l){var a,i,o,s=k(n),u=10==r?y:M;return n==e&&(-1==s?(n*=r,e/=r):(n/=r,e*=r)),l?(a=m(u(n)),i=x(u(e)),n=(o=t(b(r,a),b(r,i),a,i))[0],e=o[1]):(a=m(u(p(n))),i=m(u(p(e))),n=H(n,(o=t(b(r,a),b(r,i),a,i))[0]),e=F(e,o[1])),[n,e]}function a(n,e,r,t){var a=l(n,e,r,t);return 0==n&&(a[0]=0),0==e&&(a[1]=0),a}var i={mode:3,pad:.1},o={pad:0,soft:null,mode:0},s={min:o,max:o};function u(n,e,r,t){return V(r)?c(n,e,r):(o.pad=r,o.soft=t?0:null,o.mode=t?3:0,c(n,e,s))}function f(n,e){return null==n?e:n}function c(n,e,r){var t=r.min,l=r.max,a=f(t.pad,0),i=f(l.pad,0),o=f(t.hard,-z),s=f(l.hard,z),u=f(t.soft,z),c=f(l.soft,-z),v=f(t.mode,0),h=f(l.mode,0),d=e-n;1e-9>d&&(d=0,0!=n&&0!=e||(d=1e-9,2==v&&u!=z&&(a=0),2==h&&c!=-z&&(i=0)));var g=d||p(e)||1e3,x=y(g),k=b(10,m(x)),M=R(H(n-g*(0==d?0==n?.1:1:a),k/10),9),S=u>n||1!=v&&(3!=v||M>u)&&(2!=v||u>M)?z:u,D=_(o,S>M&&n>=S?S:w(S,M)),E=R(F(e+g*(0==d?0==e?.1:1:i),k/10),9),T=e>c||1!=h&&(3!=h||c>E)&&(2!=h||E>c)?-z:c,A=w(s,E>T&&T>=e?T:_(T,E));return D==A&&0==D&&(A=100),[D,A]}var v=new Intl.NumberFormat(navigator.language).format,h=Math,d=h.PI,p=h.abs,m=h.floor,g=h.round,x=h.ceil,w=h.min,_=h.max,b=h.pow,k=h.sign,y=h.log10,M=h.log2,S=(n,e)=>(void 0===e&&(e=1),h.asinh(n/e)),z=1/0;function D(n,e){return g(n/e)*e}function E(n,e,r){return w(_(n,e),r)}function T(n){return"function"==typeof n?n:()=>n}var A=n=>n,P=(n,e)=>e,W=()=>null,Y=()=>!0,C=(n,e)=>n==e;function F(n,e){return x(n/e)*e}function H(n,e){return m(n/e)*e}function R(n,e){return g(n*(e=Math.pow(10,e)))/e}var L=new Map;function I(n){return((""+n).split(".")[1]||"").length}function G(n,e,r,t){for(var l=[],a=t.map(I),i=e;r>i;i++)for(var o=p(i),s=R(b(n,i),o),u=0;t.length>u;u++){var f=t[u]*s,c=(0>f||0>i?o:0)+(a[u]>i?a[u]:0),v=R(f,c);l.push(v),L.set(v,c)}return l}var B={},N=[null,null],O=Array.isArray;function j(n){return"string"==typeof n}function V(n){var e=!1;if(null!=n){var r=n.constructor;e=null==r||r==Object}return e}function U(n){return null!=n&&"object"==typeof n}function J(n,e){var r;if(e=e||V,O(n))r=n.map((n=>J(n,e)));else if(e(n))for(var t in r={},n)r[t]=J(n[t],e);else r=n;return r}function q(n){for(var e=arguments,r=1;e.length>r;r++){var t=e[r];for(var l in t)V(n[l])?q(n[l],J(t[l])):n[l]=J(t[l])}return n}function Z(n,e,r){for(var t=0,l=void 0,a=-1;e.length>t;t++){var i=e[t];if(i>a){for(l=i-1;l>=0&&null==n[l];)n[l--]=null;for(l=i+1;r>l&&null==n[l];)n[a=l++]=null}}}var K,X,Q="undefined"==typeof queueMicrotask?n=>Promise.resolve().then(n):queueMicrotask,$="width",nn="height",en="top",rn="bottom",tn="left",ln="right",an="#000",on="#0000",sn="mousemove",un="mousedown",fn="mouseup",cn="mouseenter",vn="mouseleave",hn="dblclick",dn="change",pn="dppxchange",mn="u-off",gn="u-label",xn=document,wn=window;function _n(n,e){if(null!=e){var r=n.classList;!r.contains(e)&&r.add(e)}}function bn(n,e){var r=n.classList;r.contains(e)&&r.remove(e)}function kn(n,e,r){n.style[e]=r+"px"}function yn(n,e,r,t){var l=xn.createElement(n);return null!=e&&_n(l,e),null!=r&&r.insertBefore(l,t),l}function Mn(n,e){return yn("div",n,e)}var Sn=new WeakMap;function zn(n,e,r,t,l){var a="translate("+e+"px,"+r+"px)";a!=Sn.get(n)&&(n.style.transform=a,Sn.set(n,a),0>e||0>r||e>t||r>l?_n(n,mn):bn(n,mn))}var Dn=new WeakMap;function En(n,e,r){var t=e+r;t!=Dn.get(n)&&(Dn.set(n,t),n.style.background=e,n.style.borderColor=r)}var Tn={passive:!0},An=q({capture:!0},Tn);function Pn(n,e,r,t){e.addEventListener(n,r,t?An:Tn)}function Wn(n,e,r,t){e.removeEventListener(n,r,t?An:Tn)}!function n(){K=devicePixelRatio,X&&Wn(dn,X,n),X=matchMedia("screen and (min-resolution: "+(K-.001)+"dppx) and (max-resolution: "+(K+.001)+"dppx)"),Pn(dn,X,n),wn.dispatchEvent(new CustomEvent(pn))}();var Yn=["January","February","March","April","May","June","July","August","September"
|