@questdb/web-console 2.0.2 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/THIRD_PARTY_LICENSES.txt +76 -561
- package/dist/assets/index-C7moHtT_.js +10723 -0
- package/dist/assets/index-D9FdLy0m.css +67 -0
- package/dist/assets/index-Fpe9BwyA.js +915 -0
- package/dist/assets/index-nGv4JxX9.js +26 -0
- package/dist/assets/open-sans-v13-latin-300-B_X3Vt75.woff2 +0 -0
- package/dist/assets/open-sans-v13-latin-600-B28gdpJr.woff2 +0 -0
- package/dist/assets/open-sans-v13-latin-700-Cwq0ONIo.woff2 +0 -0
- package/dist/assets/open-sans-v13-latin-regular-JUuAzidG.woff2 +0 -0
- package/dist/assets/{tiktoken-DEbVmu7c.js → tiktoken-Di-zekKS.js} +1 -1
- package/dist/assets/{vendor-BhHVTKlu.js → vendor-BpMkWAQ4.js} +1 -1
- package/dist/index.html +48 -17
- package/package.json +5 -18
- package/dist/assets/index-BqRJij9Z.css +0 -45
- package/dist/assets/index-BsTZY3jV.js +0 -9892
- package/dist/assets/index-DSYQbzdz.js +0 -1047
- package/dist/assets/upload.svg +0 -18
|
@@ -144,4 +144,4 @@ yyyy`);var i=zn(t),r=e?"getUTC":"get",o=i[r+"FullYear"](),a=i[r+"Month"]()+1,s=i
|
|
|
144
144
|
|
|
145
145
|
`:"<br/>",x=p.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,c)?this._updatePosition(s,d,a[0],a[1],this._tooltipContent,c):this._showTooltipContent(s,x,c,Math.random()+"",a[0],a[1],d,null,g)})},t.prototype._showSeriesItemTooltip=function(e,i,r){var o=this._ecModel,a=Ut(i),s=a.seriesIndex,l=o.getSeriesByIndex(s),c=a.dataModel||l,f=a.dataIndex,p=a.dataType,g=c.getData(p),d=this._renderMode,y=e.positionDefault,_=Qu([g.getItemModel(f),c,l&&(l.coordinateSystem||{}).model],this._tooltipModel,y?{position:y}:null),m=_.get("trigger");if(!(m!=null&&m!=="item")){var x=c.getDataParams(f,p),w=new gm;x.marker=w.makeTooltipMarker("item",Ho(x.color),d);var S=fC(c.formatTooltip(f,!1,p)),C=_.get("order"),M=_.get("valueFormatter"),T=S.frag,D=T?MC(M?st({valueFormatter:M},T):T,w,d,C,o.get("useUTC"),_.get("textStyle")):S.text,P="item_"+c.name+"_"+f;this._showOrMove(_,function(){this._showTooltipContent(_,D,x,P,e.offsetX,e.offsetY,e.position,e.target,w)}),r({type:"showTip",dataIndexInside:f,dataIndex:g.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,i,r){var o=this._renderMode==="html",a=Ut(i),s=a.tooltipConfig,l=s.option||{},c=l.encodeHTMLContent;if(gt(l)){var f=l;l={content:f,formatter:f},c=!0}c&&o&&l.content&&(l=Et(l),l.content=en(l.content));var p=[l],g=this._ecModel.getComponent(a.componentMainType,a.componentIndex);g&&p.push(g),p.push({formatter:l.content});var d=e.positionDefault,y=Qu(p,this._tooltipModel,d?{position:d}:null),_=y.get("content"),m=Math.random()+"",x=new gm;this._showOrMove(y,function(){var w=Et(y.get("formatterParams")||{});this._showTooltipContent(y,_,w,m,e.offsetX,e.offsetY,e.position,i,x)}),r({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,i,r,o,a,s,l,c,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var p=this._tooltipContent;p.setEnterable(e.get("enterable"));var g=e.get("formatter");l=l||e.get("position");var d=i,y=this._getNearestPoint([a,s],r,e.get("trigger"),e.get("borderColor")),_=y.color;if(g)if(gt(g)){var m=e.ecModel.get("useUTC"),x=ct(r)?r[0]:r,w=x&&x.axisType&&x.axisType.indexOf("time")>=0;d=g,w&&(d=yu(x.axisValue,d,m)),d=Qy(d,r,!0)}else if(St(g)){var S=wt(function(C,M){C===this._ticket&&(p.setContent(M,f,e,_,l),this._updatePosition(e,l,a,s,p,r,c))},this);this._ticket=o,d=g(r,o,S)}else d=g;p.setContent(d,f,e,_,l),p.show(e,_),this._updatePosition(e,l,a,s,p,r,c)}},t.prototype._getNearestPoint=function(e,i,r,o){if(r==="axis"||ct(i))return{color:o||(this._renderMode==="html"?"#fff":"none")};if(!ct(i))return{color:o||i.color||i.borderColor}},t.prototype._updatePosition=function(e,i,r,o,a,s,l){var c=this._api.getWidth(),f=this._api.getHeight();i=i||e.get("position");var p=a.getSize(),g=e.get("align"),d=e.get("verticalAlign"),y=l&&l.getBoundingRect().clone();if(l&&y.applyTransform(l.transform),St(i)&&(i=i([r,o],s,a.el,y,{viewSize:[c,f],contentSize:p.slice()})),ct(i))r=Qt(i[0],c),o=Qt(i[1],f);else if(_t(i)){var _=i;_.width=p[0],_.height=p[1];var m=Ei(_,{width:c,height:f});r=m.x,o=m.y,g=null,d=null}else if(gt(i)&&l){var x=w9(i,y,p,e.get("borderWidth"));r=x[0],o=x[1]}else{var x=x9(r,o,a,c,f,g?null:20,d?null:20);r=x[0],o=x[1]}if(g&&(r-=oA(g)?p[0]/2:g==="right"?p[0]:0),d&&(o-=oA(d)?p[1]/2:d==="bottom"?p[1]:0),qD(e)){var x=b9(r,o,a,c,f);r=x[0],o=x[1]}a.moveTo(r,o)},t.prototype._updateContentNotChangedOnAxis=function(e,i){var r=this._lastDataByCoordSys,o=this._cbParamsList,a=!!r&&r.length===e.length;return a&&E(r,function(s,l){var c=s.dataByAxis||[],f=e[l]||{},p=f.dataByAxis||[];a=a&&c.length===p.length,a&&E(c,function(g,d){var y=p[d]||{},_=g.seriesDataIndices||[],m=y.seriesDataIndices||[];a=a&&g.value===y.value&&g.axisType===y.axisType&&g.axisId===y.axisId&&_.length===m.length,a&&E(_,function(x,w){var S=m[w];a=a&&x.seriesIndex===S.seriesIndex&&x.dataIndex===S.dataIndex}),o&&E(g.seriesDataIndices,function(x){var w=x.seriesIndex,S=i[w],C=o[w];S&&C&&C.data!==S.data&&(a=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=i,!!a},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,i){Ct.node||!i.getDom()||(jh(this,"_updatePosition"),this._tooltipContent.dispose(),K0("itemTooltip",i))},t.type="tooltip",t})(ze);function Qu(n,t,e){var i=t.ecModel,r;e?(r=new he(e,i,i),r=new he(t.option,r,i)):r=t;for(var o=n.length-1;o>=0;o--){var a=n[o];a&&(a instanceof he&&(a=a.get("tooltip",!0)),gt(a)&&(a={formatter:a}),a&&(r=new he(a,r,i)))}return r}function rA(n,t){return n.dispatchAction||wt(t.dispatchAction,t)}function x9(n,t,e,i,r,o,a){var s=e.getSize(),l=s[0],c=s[1];return o!=null&&(n+l+o+2>i?n-=l+o:n+=o),a!=null&&(t+c+a>r?t-=c+a:t+=a),[n,t]}function b9(n,t,e,i,r){var o=e.getSize(),a=o[0],s=o[1];return n=Math.min(n+a,i)-a,t=Math.min(t+s,r)-s,n=Math.max(n,0),t=Math.max(t,0),[n,t]}function w9(n,t,e,i){var r=e[0],o=e[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,c=t.width,f=t.height;switch(n){case"inside":s=t.x+c/2-r/2,l=t.y+f/2-o/2;break;case"top":s=t.x+c/2-r/2,l=t.y-o-a;break;case"bottom":s=t.x+c/2-r/2,l=t.y+f+a;break;case"left":s=t.x-r-a,l=t.y+f/2-o/2;break;case"right":s=t.x+c+a,l=t.y+f/2-o/2}return[s,l]}function oA(n){return n==="center"||n==="middle"}function S9(n,t,e){var i=ty(n).queryOptionMap,r=i.keys()[0];if(!(!r||r==="series")){var o=Zl(t,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s=e.getViewOfComponentModel(a),l;if(s.group.traverse(function(c){var f=Ut(c).tooltipConfig;if(f&&f.name===n.name)return l=c,!0}),l)return{componentMainType:r,componentIndex:a.componentIndex,el:l}}}}function k9(n){Yn(DD),n.registerComponentModel(a9),n.registerComponentView(_9),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Ue),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Ue)}var M9=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t})(Yt),C9=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,r){if(this.group.removeAll(),!!e.get("show")){var o=this.group,a=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),c=Nt(e.get("textBaseline"),e.get("textVerticalAlign")),f=new we({style:Li(a,{text:e.get("text"),fill:a.getTextColor()},{disableBox:!0}),z2:10}),p=f.getBoundingRect(),g=e.get("subtext"),d=new we({style:Li(s,{text:g,fill:s.getTextColor(),y:p.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),y=e.get("link"),_=e.get("sublink"),m=e.get("triggerEvent",!0);f.silent=!y&&!m,d.silent=!_&&!m,y&&f.on("click",function(){AM(y,"_"+e.get("target"))}),_&&d.on("click",function(){AM(_,"_"+e.get("subtarget"))}),Ut(f).eventData=Ut(d).eventData=m?{componentType:"title",componentIndex:e.componentIndex}:null,o.add(f),g&&o.add(d);var x=o.getBoundingRect(),w=e.getBoxLayoutParams();w.width=x.width,w.height=x.height;var S=Ei(w,{width:r.getWidth(),height:r.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),c||(c=e.get("top")||e.get("bottom"),c==="center"&&(c="middle"),c==="bottom"?S.y+=S.height:c==="middle"&&(S.y+=S.height/2),c=c||"top"),o.x=S.x,o.y=S.y,o.markRedraw();var C={align:l,verticalAlign:c};f.setStyle(C),d.setStyle(C),x=o.getBoundingRect();var M=S.margin,T=e.getItemStyle(["color","opacity"]);T.fill=e.get("backgroundColor");var D=new se({shape:{x:x.x-M[3],y:x.y-M[0],width:x.width+M[1]+M[3],height:x.height+M[0]+M[2],r:e.get("borderRadius")},style:T,subPixelOptimize:!0,silent:!0});o.add(D)}},t.type="title",t})(ze);function T9(n){n.registerComponentModel(M9),n.registerComponentView(C9)}var I9=function(n,t){if(t==="all")return{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}},u1=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,i,r){this.mergeDefaultAndTheme(e,r),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,i){n.prototype.mergeOption.call(this,e,i),this._updateSelector(e)},t.prototype._updateSelector=function(e){var i=e.selector,r=this.ecModel;i===!0&&(i=e.selector=["all","inverse"]),ct(i)&&E(i,function(o,a){gt(o)&&(o={type:o}),i[a]=zt(o,I9(r,o.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var i=!1,r=0;r<e.length;r++){var o=e[r].get("name");if(this.isSelected(o)){this.select(o),i=!0;break}}!i&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var i=[],r=[];e.eachRawSeries(function(l){var c=l.name;r.push(c);var f;if(l.legendVisualProvider){var p=l.legendVisualProvider,g=p.getAllNames();e.isSeriesFiltered(l)||(r=r.concat(g)),g.length?i=i.concat(g):f=!0}else f=!0;f&&Jv(l)&&i.push(l.name)}),this._availableNames=r;var o=this.get("data")||i,a=Mt(),s=pt(o,function(l){return(gt(l)||oe(l))&&(l={name:l}),a.get(l.name)?null:(a.set(l.name,!0),new he(l,this,this.ecModel))},this);this._data=ve(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var i=this.option.selected,r=this.get("selectedMode");if(r==="single"){var o=this._data;E(o,function(a){i[a.get("name")]=!1})}i[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var i=this.option.selected;i.hasOwnProperty(e)||(i[e]=!0),this[i[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,i=this.option.selected;E(e,function(r){i[r.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,i=this.option.selected;E(e,function(r){var o=r.get("name",!0);i.hasOwnProperty(o)||(i[o]=!0),i[o]=!i[o]})},t.prototype.isSelected=function(e){var i=this.option.selected;return!(i.hasOwnProperty(e)&&!i[e])&&Vt(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t})(Yt),Ts=Gt,c1=E,Ap=ye,aA=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new Ap),this.group.add(this._selectorGroup=new Ap),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,i,r){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var a=e.get("align"),s=e.get("orient");(!a||a==="auto")&&(a=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),c=e.get("selectorPosition",!0);l&&(!c||c==="auto")&&(c=s==="horizontal"?"end":"start"),this.renderInner(a,e,i,r,l,s,c);var f=e.getBoxLayoutParams(),p={width:r.getWidth(),height:r.getHeight()},g=e.get("padding"),d=Ei(f,p,g),y=this.layoutInner(e,a,d,o,l,c),_=Ei(Wt({width:y.width,height:y.height},f),p,g);this.group.x=_.x-y.x,this.group.y=_.y-y.y,this.group.markRedraw(),this.group.add(this._backgroundEl=zD(y,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,i,r,o,a,s,l){var c=this.getContentGroup(),f=Mt(),p=i.get("selectedMode"),g=[];r.eachRawSeries(function(d){!d.get("legendHoverLink")&&g.push(d.id)}),c1(i.getData(),function(d,y){var _=d.get("name");if(!this.newlineDisabled&&(_===""||_===`
|
|
146
146
|
`)){var m=new Ap;m.newline=!0,c.add(m);return}var x=r.getSeriesByName(_)[0];if(!f.get(_))if(x){var w=x.getData(),S=w.getVisual("legendLineStyle")||{},C=w.getVisual("legendIcon"),M=w.getVisual("style"),T=this._createItem(x,_,y,d,i,e,S,M,C,p,o);T.on("click",Ts(sA,_,null,o,g)).on("mouseover",Ts(f1,x.name,null,o,g)).on("mouseout",Ts(h1,x.name,null,o,g)),r.ssr&&T.eachChild(function(D){var P=Ut(D);P.seriesIndex=x.seriesIndex,P.dataIndex=y,P.ssrType="legend"}),f.set(_,!0)}else r.eachRawSeries(function(D){if(!f.get(_)&&D.legendVisualProvider){var P=D.legendVisualProvider;if(!P.containName(_))return;var L=P.indexOfName(_),O=P.getItemVisual(L,"style"),N=P.getItemVisual(L,"legendIcon"),B=Mn(O.fill);B&&B[3]===0&&(B[3]=.2,O=st(st({},O),{fill:Or(B,"rgba")}));var V=this._createItem(D,_,y,d,i,e,{},O,N,p,o);V.on("click",Ts(sA,null,_,o,g)).on("mouseover",Ts(f1,null,_,o,g)).on("mouseout",Ts(h1,null,_,o,g)),r.ssr&&V.eachChild(function(Z){var $=Ut(Z);$.seriesIndex=D.seriesIndex,$.dataIndex=y,$.ssrType="legend"}),f.set(_,!0)}},this)},this),a&&this._createSelector(a,i,o,s,l)},t.prototype._createSelector=function(e,i,r,o,a){var s=this.getSelectorGroup();c1(e,function(l){var c=l.type,f=new we({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){r.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});s.add(f);var p=i.getModel("selectorLabel"),g=i.getModel(["emphasis","selectorLabel"]);hu(f,{normal:p,emphasis:g},{defaultText:l.title}),Jl(f)})},t.prototype._createItem=function(e,i,r,o,a,s,l,c,f,p,g){var d=e.visualDrawType,y=a.get("itemWidth"),_=a.get("itemHeight"),m=a.isSelected(i),x=o.get("symbolRotate"),w=o.get("symbolKeepAspect"),S=o.get("icon");f=S||f||"roundRect";var C=D9(f,o,l,c,d,m,g),M=new Ap,T=o.getModel("textStyle");if(St(e.getLegendIcon)&&(!S||S==="inherit"))M.add(e.getLegendIcon({itemWidth:y,itemHeight:_,icon:f,iconRotate:x,itemStyle:C.itemStyle,lineStyle:C.lineStyle,symbolKeepAspect:w}));else{var D=S==="inherit"&&e.getData().getVisual("symbol")?x==="inherit"?e.getData().getVisual("symbolRotate"):x:0;M.add(A9({itemWidth:y,itemHeight:_,icon:f,iconRotate:D,itemStyle:C.itemStyle,symbolKeepAspect:w}))}var P=s==="left"?y+5:-5,L=s,O=a.get("formatter"),N=i;gt(O)&&O?N=O.replace("{name}",i??""):St(O)&&(N=O(i));var B=m?T.getTextColor():o.get("inactiveColor");M.add(new we({style:Li(T,{text:N,x:P,y:_/2,fill:B,align:L,verticalAlign:"middle"},{inheritColor:B})}));var V=new se({shape:M.getBoundingRect(),style:{fill:"transparent"}}),Z=o.getModel("tooltip");return Z.get("show")&&cu({el:V,componentModel:a,itemName:i,itemTooltipOption:Z.option}),M.add(V),M.eachChild(function($){$.silent=!0}),V.silent=!p,this.getContentGroup().add(M),Jl(M),M.__legendDataIndex=r,M},t.prototype.layoutInner=function(e,i,r,o,a,s){var l=this.getContentGroup(),c=this.getSelectorGroup();fs(e.get("orient"),l,e.get("itemGap"),r.width,r.height);var f=l.getBoundingRect(),p=[-f.x,-f.y];if(c.markRedraw(),l.markRedraw(),a){fs("horizontal",c,e.get("selectorItemGap",!0));var g=c.getBoundingRect(),d=[-g.x,-g.y],y=e.get("selectorButtonGap",!0),_=e.getOrient().index,m=_===0?"width":"height",x=_===0?"height":"width",w=_===0?"y":"x";s==="end"?d[_]+=f[m]+y:p[_]+=g[m]+y,d[1-_]+=f[x]/2-g[x]/2,c.x=d[0],c.y=d[1],l.x=p[0],l.y=p[1];var S={x:0,y:0};return S[m]=f[m]+y+g[m],S[x]=Math.max(f[x],g[x]),S[w]=Math.min(0,g[w]+d[1-_]),S}else return l.x=p[0],l.y=p[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(ze);function D9(n,t,e,i,r,o,a){function s(m,x){m.lineWidth==="auto"&&(m.lineWidth=x.lineWidth>0?2:0),c1(m,function(w,S){m[S]==="inherit"&&(m[S]=x[S])})}var l=t.getModel("itemStyle"),c=l.getItemStyle(),f=n.lastIndexOf("empty",0)===0?"fill":"stroke",p=l.getShallow("decal");c.decal=!p||p==="inherit"?i.decal:wm(p,a),c.fill==="inherit"&&(c.fill=i[r]),c.stroke==="inherit"&&(c.stroke=i[f]),c.opacity==="inherit"&&(c.opacity=(r==="fill"?i:e).opacity),s(c,i);var g=t.getModel("lineStyle"),d=g.getLineStyle();if(s(d,e),c.fill==="auto"&&(c.fill=i.fill),c.stroke==="auto"&&(c.stroke=i.fill),d.stroke==="auto"&&(d.stroke=i.fill),!o){var y=t.get("inactiveBorderWidth"),_=c[f];c.lineWidth=y==="auto"?i.lineWidth>0&&_?2:0:c.lineWidth,c.fill=t.get("inactiveColor"),c.stroke=t.get("inactiveBorderColor"),d.stroke=g.get("inactiveColor"),d.lineWidth=g.get("inactiveWidth")}return{itemStyle:c,lineStyle:d}}function A9(n){var t=n.icon||"roundRect",e=Ni(t,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return e.setStyle(n.itemStyle),e.rotation=(n.iconRotate||0)*Math.PI/180,e.setOrigin([n.itemWidth/2,n.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function sA(n,t,e,i){h1(n,t,e,i),e.dispatchAction({type:"legendToggleSelect",name:n??t}),f1(n,t,e,i)}function lA(n){for(var t=n.getZr().storage.getDisplayList(),e,i=0,r=t.length;i<r&&!(e=t[i].states.emphasis);)i++;return e&&e.hoverLayer}function f1(n,t,e,i){lA(e)||e.dispatchAction({type:"highlight",seriesName:n,name:t,excludeSeriesId:i})}function h1(n,t,e,i){lA(e)||e.dispatchAction({type:"downplay",seriesName:n,name:t,excludeSeriesId:i})}function P9(n){var t=n.findComponents({mainType:"legend"});t&&t.length&&n.filterSeries(function(e){for(var i=0;i<t.length;i++)if(!t[i].isSelected(e.name))return!1;return!0})}function Ku(n,t,e){var i=n==="allSelect"||n==="inverseSelect",r={},o=[];e.eachComponent({mainType:"legend",query:t},function(s){i?s[n]():s[n](t.name),uA(s,r),o.push(s.componentIndex)});var a={};return e.eachComponent("legend",function(s){E(r,function(l,c){s[l?"select":"unSelect"](c)}),uA(s,a)}),i?{selected:a,legendIndex:o}:{name:t.name,selected:a}}function uA(n,t){var e=t||{};return E(n.getData(),function(i){var r=i.get("name");if(!(r===`
|
|
147
|
-
`||r==="")){var o=n.isSelected(r);Cr(e,r)?e[r]=e[r]&&o:e[r]=o}}),e}function L9(n){n.registerAction("legendToggleSelect","legendselectchanged",Gt(Ku,"toggleSelected")),n.registerAction("legendAllSelect","legendselectall",Gt(Ku,"allSelect")),n.registerAction("legendInverseSelect","legendinverseselect",Gt(Ku,"inverseSelect")),n.registerAction("legendSelect","legendselected",Gt(Ku,"select")),n.registerAction("legendUnSelect","legendunselected",Gt(Ku,"unSelect"))}function cA(n){n.registerComponentModel(u1),n.registerComponentView(aA),n.registerProcessor(n.PRIORITY.PROCESSOR.SERIES_FILTER,P9),n.registerSubTypeDefaulter("legend",function(){return"plain"}),L9(n)}var E9=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,i,r){var o=bu(e);n.prototype.init.call(this,e,i,r),fA(this,e,o)},t.prototype.mergeOption=function(e,i){n.prototype.mergeOption.call(this,e,i),fA(this,this.option,e)},t.type="legend.scroll",t.defaultOption=Mh(u1.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t})(u1);function fA(n,t,e){var i=n.getOrient(),r=[1,1];r[i.index]=0,hs(t,e,{type:"box",ignoreSize:!!r})}var hA=ye,p1=["width","height"],d1=["x","y"],O9=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){n.prototype.init.call(this),this.group.add(this._containerGroup=new hA),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new hA)},t.prototype.resetInner=function(){n.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,i,r,o,a,s,l){var c=this;n.prototype.renderInner.call(this,e,i,r,o,a,s,l);var f=this._controllerGroup,p=i.get("pageIconSize",!0),g=ct(p)?p:[p,p];y("pagePrev",0);var d=i.getModel("pageTextStyle");f.add(new we({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),y("pageNext",1);function y(_,m){var x=_+"DataIndex",w=uu(i.get("pageIcons",!0)[i.getOrient().name][m],{onclick:wt(c._pageGo,c,x,i,o)},{x:-g[0]/2,y:-g[1]/2,width:g[0],height:g[1]});w.name=_,f.add(w)}},t.prototype.layoutInner=function(e,i,r,o,a,s){var l=this.getSelectorGroup(),c=e.getOrient().index,f=p1[c],p=d1[c],g=p1[1-c],d=d1[1-c];a&&fs("horizontal",l,e.get("selectorItemGap",!0));var y=e.get("selectorButtonGap",!0),_=l.getBoundingRect(),m=[-_.x,-_.y],x=Et(r);a&&(x[f]=r[f]-_[f]-y);var w=this._layoutContentAndController(e,o,x,c,f,g,d,p);if(a){if(s==="end")m[c]+=w[f]+y;else{var S=_[f]+y;m[c]-=S,w[p]-=S}w[f]+=_[f]+y,m[1-c]+=w[d]+w[g]/2-_[g]/2,w[g]=Math.max(w[g],_[g]),w[d]=Math.min(w[d],_[d]+m[1-c]),l.x=m[0],l.y=m[1],l.markRedraw()}return w},t.prototype._layoutContentAndController=function(e,i,r,o,a,s,l,c){var f=this.getContentGroup(),p=this._containerGroup,g=this._controllerGroup;fs(e.get("orient"),f,e.get("itemGap"),o?r.width:null,o?null:r.height),fs("horizontal",g,e.get("pageButtonItemGap",!0));var d=f.getBoundingRect(),y=g.getBoundingRect(),_=this._showController=d[a]>r[a],m=[-d.x,-d.y];i||(m[o]=f[c]);var x=[0,0],w=[-y.x,-y.y],S=Nt(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(_){var C=e.get("pageButtonPosition",!0);C==="end"?w[o]+=r[a]-y[a]:x[o]+=y[a]+S}w[1-o]+=d[s]/2-y[s]/2,f.setPosition(m),p.setPosition(x),g.setPosition(w);var M={x:0,y:0};if(M[a]=_?r[a]:d[a],M[s]=Math.max(d[s],y[s]),M[l]=Math.min(0,y[l]+w[1-o]),p.__rectSize=r[a],_){var T={x:0,y:0};T[a]=Math.max(r[a]-y[a]-S,0),T[s]=M[s],p.setClipPath(new se({shape:T})),p.__rectSize=T[a]}else g.eachChild(function(P){P.attr({invisible:!0,silent:!0})});var D=this._getPageInfo(e);return D.pageIndex!=null&&Ie(f,{x:D.contentPosition[0],y:D.contentPosition[1]},_?e:null),this._updatePageInfoView(e,D),M},t.prototype._pageGo=function(e,i,r){var o=this._getPageInfo(i)[e];o!=null&&r.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:i.id})},t.prototype._updatePageInfoView=function(e,i){var r=this._controllerGroup;E(["pagePrev","pageNext"],function(f){var p=f+"DataIndex",g=i[p]!=null,d=r.childOfName(f);d&&(d.setStyle("fill",g?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),d.cursor=g?"pointer":"default")});var o=r.childOfName("pageText"),a=e.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,c=i.pageCount;o&&a&&o.setStyle("text",gt(a)?a.replace("{current}",l==null?"":l+"").replace("{total}",c==null?"":c+""):a({current:l,total:c}))},t.prototype._getPageInfo=function(e){var i=e.get("scrollDataIndex",!0),r=this.getContentGroup(),o=this._containerGroup.__rectSize,a=e.getOrient().index,s=p1[a],l=d1[a],c=this._findTargetItemIndex(i),f=r.children(),p=f[c],g=f.length,d=g?1:0,y={contentPosition:[r.x,r.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!p)return y;var _=C(p);y.contentPosition[a]=-_.s;for(var m=c+1,x=_,w=_,S=null;m<=g;++m)S=C(f[m]),(!S&&w.e>x.s+o||S&&!M(S,x.s))&&(w.i>x.i?x=w:x=S,x&&(y.pageNextDataIndex==null&&(y.pageNextDataIndex=x.i),++y.pageCount)),w=S;for(var m=c-1,x=_,w=_,S=null;m>=-1;--m)S=C(f[m]),(!S||!M(w,S.s))&&x.i<w.i&&(w=x,y.pagePrevDataIndex==null&&(y.pagePrevDataIndex=x.i),++y.pageCount,++y.pageIndex),x=S;return y;function C(T){if(T){var D=T.getBoundingRect(),P=D[l]+T[l];return{s:P,e:P+D[s],i:T.__legendDataIndex}}}function M(T,D){return T.e>=D&&T.s<=D+o}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var i,r=this.getContentGroup(),o;return r.eachChild(function(a,s){var l=a.__legendDataIndex;o==null&&l!=null&&(o=s),l===e&&(i=s)}),i??o},t.type="legend.scroll",t})(aA);function R9(n){n.registerAction("legendScroll","legendscroll",function(t,e){var i=t.scrollDataIndex;i!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(r){r.setScrollDataIndex(i)})})}function N9(n){Yn(cA),n.registerComponentModel(E9),n.registerComponentView(O9),R9(n)}function z9(n){Yn(cA),Yn(N9)}var B9=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=Mh($u.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t})($u),g1=fe();function F9(n,t,e){g1(n).coordSysRecordMap.each(function(i){var r=i.dataZoomInfoMap.get(t.uid);r&&(r.getRange=e)})}function V9(n,t){for(var e=g1(n).coordSysRecordMap,i=e.keys(),r=0;r<i.length;r++){var o=i[r],a=e.get(o),s=a.dataZoomInfoMap;if(s){var l=t.uid,c=s.get(l);c&&(s.removeKey(l),s.keys().length||pA(e,a))}}}function pA(n,t){if(t){n.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function H9(n,t){var e={model:t,containsPoint:Gt(U9,t),dispatchAction:Gt(W9,n),dataZoomInfoMap:null,controller:null},i=e.controller=new uW(n.getZr());return E(["pan","zoom","scrollMove"],function(r){i.on(r,function(o){var a=[];e.dataZoomInfoMap.each(function(s){if(o.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[r],c=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,o);!s.model.get("disabled",!0)&&c&&a.push({dataZoomId:s.model.id,start:c[0],end:c[1]})}}),a.length&&e.dispatchAction(a)})}),e}function W9(n,t){n.isDisposed()||n.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function U9(n,t,e,i){return n.coordinateSystem.containPoint([e,i])}function G9(n){var t,e="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return n.each(function(o){var a=o.model,s=a.get("disabled",!0)?!1:a.get("zoomLock",!0)?"move":!0;i[e+s]>i[e+t]&&(t=s),r=r&&a.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}function j9(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(t,e){var i=g1(e),r=i.coordSysRecordMap||(i.coordSysRecordMap=Mt());r.each(function(o){o.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(o){var a=PD(o);E(a.infoList,function(s){var l=s.model.uid,c=r.get(l)||r.set(l,H9(e,s.model)),f=c.dataZoomInfoMap||(c.dataZoomInfoMap=Mt());f.set(o.uid,{dzReferCoordSysInfo:s,model:o,getRange:null})})}),r.each(function(o){var a=o.controller,s,l=o.dataZoomInfoMap;if(l){var c=l.keys()[0];c!=null&&(s=l.get(c))}if(!s){pA(r,o);return}var f=G9(l);a.enable(f.controlType,f.opt),a.setPointerChecker(o.containsPoint),Gh(o,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Z9=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,i,r){if(n.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),F9(r,e,{pan:wt(v1.pan,this),zoom:wt(v1.zoom,this),scrollMove:wt(v1.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){V9(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t})(t1),v1={zoom:function(n,t,e,i){var r=this.range,o=r.slice(),a=n.axisModels[0];if(a){var s=y1[t](null,[i.originX,i.originY],a,e,n),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],c=Math.max(1/i.scale,0);o[0]=(o[0]-l)*c+l,o[1]=(o[1]-l)*c+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Yu(0,o,[0,100],0,f.minSpan,f.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1])return o}},pan:dA(function(n,t,e,i,r,o){var a=y1[i]([o.oldX,o.oldY],[o.newX,o.newY],t,r,e);return a.signal*(n[1]-n[0])*a.pixel/a.pixelLength}),scrollMove:dA(function(n,t,e,i,r,o){var a=y1[i]([0,0],[o.scrollDelta,o.scrollDelta],t,r,e);return a.signal*(n[1]-n[0])*o.scrollDelta})};function dA(n){return function(t,e,i,r){var o=this.range,a=o.slice(),s=t.axisModels[0];if(s){var l=n(a,s,t,e,i,r);if(Yu(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1])return a}}}var y1={grid:function(n,t,e,i,r){var o=e.axis,a={},s=r.model.coordinateSystem.getRect();return n=n||[0,0],o.dim==="x"?(a.pixel=t[0]-n[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=t[1]-n[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(n,t,e,i,r){var o=e.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return n=n?s.pointToCoord(n):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(a.pixel=t[0]-n[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=t[1]-n[1],a.pixelLength=c[1]-c[0],a.pixelStart=c[0],a.signal=o.inverse?-1:1),a},singleAxis:function(n,t,e,i,r){var o=e.axis,a=r.model.coordinateSystem.getRect(),s={};return n=n||[0,0],o.orient==="horizontal"?(s.pixel=t[0]-n[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-n[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};function Y9(n){e1(n),n.registerComponentModel(B9),n.registerComponentView(Z9),j9(n)}var X9=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Mh($u.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t})($u),Ju=se,gA=7,$9=1,m1=30,q9=7,tc="horizontal",vA="vertical",Q9=5,K9=["line","bar","candlestick","scatter"],J9={easing:"cubicOut",duration:100,delay:0},t7=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,i){this.api=i,this._onBrush=wt(this._onBrush,this),this._onBrushEnd=wt(this._onBrushEnd,this)},t.prototype.render=function(e,i,r,o){if(n.prototype.render.apply(this,arguments),Gh(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!o||o.type!=="dataZoom"||o.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){jh(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var i=this._displayables.sliderGroup=new ye;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(i),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,i=this.api,r=e.get("brushSelect"),o=r?q9:0,a=this._findCoordRect(),s={width:i.getWidth(),height:i.getHeight()},l=this._orient===tc?{right:s.width-a.x-a.width,top:s.height-m1-gA-o,width:a.width,height:m1}:{right:gA,top:a.y,width:m1,height:a.height},c=bu(e.option);E(["right","top","width","height"],function(p){c[p]==="ph"&&(c[p]=l[p])});var f=Ei(c,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===vA&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,i=this._location,r=this._orient,o=this.dataZoomModel.getFirstTargetAxisModel(),a=o&&o.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(r===tc&&!a?{scaleY:l?1:-1,scaleX:1}:r===tc&&a?{scaleY:l?1:-1,scaleX:-1}:r===vA&&!a?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var c=e.getBoundingRect([s]);e.x=i.x-c.x,e.y=i.y-c.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,i=this._size,r=this._displayables.sliderGroup,o=e.get("brushSelect");r.add(new Ju({silent:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var a=new Ju({shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:"transparent"},z2:0,onclick:wt(this._onClickPanel,this)}),s=this.api.getZr();o?(a.on("mousedown",this._onBrushStart,this),a.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),r.add(a)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var i=this._size,r=this._shadowSize||[],o=e.series,a=o.getRawData(),s=o.getShadowDim&&o.getShadowDim(),l=s&&a.getDimensionInfo(s)?o.getShadowDim():e.otherDim;if(l==null)return;var c=this._shadowPolygonPts,f=this._shadowPolylinePts;if(a!==this._shadowData||l!==this._shadowDim||i[0]!==r[0]||i[1]!==r[1]){var p=a.getDataExtent(l),g=(p[1]-p[0])*.3;p=[p[0]-g,p[1]+g];var d=[0,i[1]],y=[0,i[0]],_=[[i[0],0],[0,0]],m=[],x=y[1]/(a.count()-1),w=0,S=Math.round(a.count()/i[0]),C;a.each([l],function(L,O){if(S>0&&O%S){w+=x;return}var N=L==null||isNaN(L)||L==="",B=N?0:Le(L,p,d,!0);N&&!C&&O?(_.push([_[_.length-1][0],0]),m.push([m[m.length-1][0],0])):!N&&C&&(_.push([w,0]),m.push([w,0])),_.push([w,B]),m.push([w,B]),w+=x,C=N}),c=this._shadowPolygonPts=_,f=this._shadowPolylinePts=m}this._shadowData=a,this._shadowDim=l,this._shadowSize=[i[0],i[1]];var M=this.dataZoomModel;function T(L){var O=M.getModel(L?"selectedDataBackground":"dataBackground"),N=new ye,B=new os({shape:{points:c},segmentIgnoreThreshold:1,style:O.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),V=new Vr({shape:{points:f},segmentIgnoreThreshold:1,style:O.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return N.add(B),N.add(V),N}for(var D=0;D<3;D++){var P=T(D===1);this._displayables.sliderGroup.add(P),this._displayables.dataShadowSegs.push(P)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,i=e.get("showDataShadow");if(i!==!1){var r,o=this.ecModel;return e.eachTargetAxis(function(a,s){var l=e.getAxisProxy(a,s).getTargetSeriesModels();E(l,function(c){if(!r&&!(i!==!0&&Vt(K9,c.get("type"))<0)){var f=o.getComponent(Qr(a),s).axis,p=e7(a),g,d=c.coordinateSystem;p!=null&&d.getOtherAxis&&(g=d.getOtherAxis(f).inverse),p=c.getData().mapDimension(p),r={thisAxis:f,series:c,thisDim:a,otherDim:p,otherAxisInverse:g}}},this)},this),r}},t.prototype._renderHandle=function(){var e=this.group,i=this._displayables,r=i.handles=[null,null],o=i.handleLabels=[null,null],a=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,c=this.api,f=l.get("borderRadius")||0,p=l.get("brushSelect"),g=i.filler=new Ju({silent:p,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});a.add(g),a.add(new Ju({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:$9,fill:"rgba(0,0,0,0)"}})),E([0,1],function(S){var C=l.get("handleIcon");!$h[C]&&C.indexOf("path://")<0&&C.indexOf("image://")<0&&(C="path://"+C);var M=Ni(C,-1,0,2,2,null,!0);M.attr({cursor:yA(this._orient),draggable:!0,drift:wt(this._onDragMove,this,S),ondragend:wt(this._onDragEnd,this),onmouseover:wt(this._showDataInfo,this,!0),onmouseout:wt(this._showDataInfo,this,!1),z2:5});var T=M.getBoundingRect(),D=l.get("handleSize");this._handleHeight=Qt(D,this._size[1]),this._handleWidth=T.width/T.height*this._handleHeight,M.setStyle(l.getModel("handleStyle").getItemStyle()),M.style.strokeNoScale=!0,M.rectHover=!0,M.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Jl(M);var P=l.get("handleColor");P!=null&&(M.style.fill=P),a.add(r[S]=M);var L=l.getModel("textStyle"),O=l.get("handleLabel")||{},N=O.show||!1;e.add(o[S]=new we({silent:!0,invisible:!N,style:Li(L,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:L.getTextColor(),font:L.getFont()}),z2:10}))},this);var d=g;if(p){var y=Qt(l.get("moveHandleSize"),s[1]),_=i.moveHandle=new se({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:y}}),m=y*.8,x=i.moveHandleIcon=Ni(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);x.silent=!0,x.y=s[1]+y/2-.5,_.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var w=Math.min(s[1]/2,Math.max(y,10));d=i.moveZone=new se({invisible:!0,shape:{y:s[1]-w,height:y+w}}),d.on("mouseover",function(){c.enterEmphasis(_)}).on("mouseout",function(){c.leaveEmphasis(_)}),a.add(_),a.add(x),a.add(d)}d.attr({draggable:!0,cursor:yA(this._orient),drift:wt(this._onDragMove,this,"all"),ondragstart:wt(this._showDataInfo,this,!0),ondragend:wt(this._onDragEnd,this),onmouseover:wt(this._showDataInfo,this,!0),onmouseout:wt(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),i=this._getViewExtent();this._handleEnds=[Le(e[0],[0,100],i,!0),Le(e[1],[0,100],i,!0)]},t.prototype._updateInterval=function(e,i){var r=this.dataZoomModel,o=this._handleEnds,a=this._getViewExtent(),s=r.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Yu(i,o,a,r.get("zoomLock")?"all":e,s.minSpan!=null?Le(s.minSpan,l,a,!0):null,s.maxSpan!=null?Le(s.maxSpan,l,a,!0):null);var c=this._range,f=this._range=qa([Le(o[0],a,l,!0),Le(o[1],a,l,!0)]);return!c||c[0]!==f[0]||c[1]!==f[1]},t.prototype._updateView=function(e){var i=this._displayables,r=this._handleEnds,o=qa(r.slice()),a=this._size;E([0,1],function(d){var y=i.handles[d],_=this._handleHeight;y.attr({scaleX:_/2,scaleY:_/2,x:r[d]+(d?-1:1),y:a[1]/2-_/2})},this),i.filler.setShape({x:o[0],y:0,width:o[1]-o[0],height:a[1]});var s={x:o[0],width:o[1]-o[0]};i.moveHandle&&(i.moveHandle.setShape(s),i.moveZone.setShape(s),i.moveZone.getBoundingRect(),i.moveHandleIcon&&i.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=i.dataShadowSegs,c=[0,o[0],o[1],a[0]],f=0;f<l.length;f++){var p=l[f],g=p.getClipPath();g||(g=new se,p.setClipPath(g)),g.setShape({x:c[f],y:0,width:c[f+1]-c[f],height:a[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var i=this.dataZoomModel,r=this._displayables,o=r.handleLabels,a=this._orient,s=["",""];if(i.get("showDetail")){var l=i.findRepresentativeAxisProxy();if(l){var c=l.getAxisModel().axis,f=this._range,p=e?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(p[0],c),this._formatLabel(p[1],c)]}}var g=qa(this._handleEnds.slice());d.call(this,0),d.call(this,1);function d(y){var _=su(r.handles[y].parent,this.group),m=Oy(y===0?"right":"left",_),x=this._handleWidth/2+Q9,w=lu([g[y]+(y===0?-x:x),this._size[1]/2],_);o[y].setStyle({x:w[0],y:w[1],verticalAlign:a===tc?"middle":m,align:a===tc?m:"center",text:s[y]})}},t.prototype._formatLabel=function(e,i){var r=this.dataZoomModel,o=r.get("labelFormatter"),a=r.get("labelPrecision");(a==null||a==="auto")&&(a=i.getPixelPrecision());var s=e==null||isNaN(e)?"":i.type==="category"||i.type==="time"?i.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(a,20));return St(o)?o(e,s):gt(o)?o.replace("{value}",s):s},t.prototype._showDataInfo=function(e){var i=this.dataZoomModel.get("handleLabel")||{},r=i.show||!1,o=this.dataZoomModel.getModel(["emphasis","handleLabel"]),a=o.get("show")||!1,s=e||this._dragging?a:r,l=this._displayables,c=l.handleLabels;c[0].attr("invisible",!s),c[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},t.prototype._onDragMove=function(e,i,r,o){this._dragging=!0,Ha(o.event);var a=this._displayables.sliderGroup.getLocalTransform(),s=lu([i,r],a,!0),l=this._updateInterval(e,s[0]),c=this.dataZoomModel.get("realtime");this._updateView(!c),l&&c&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var i=this._size,r=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(r[0]<0||r[0]>i[0]||r[1]<0||r[1]>i[1])){var o=this._handleEnds,a=(o[0]+o[1])/2,s=this._updateInterval("all",r[0]-a);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var i=e.offsetX,r=e.offsetY;this._brushStart=new Pt(i,r),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var i=this._displayables.brushRect;if(this._brushing=!1,!!i){i.attr("ignore",!0);var r=i.shape,o=+new Date;if(!(o-this._brushStartTime<200&&Math.abs(r.width)<5)){var a=this._getViewExtent(),s=[0,100];this._range=qa([Le(r.x,a,s,!0),Le(r.x+r.width,a,s,!0)]),this._handleEnds=[r.x,r.x+r.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Ha(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,i){var r=this._displayables,o=this.dataZoomModel,a=r.brushRect;a||(a=r.brushRect=new Ju({silent:!0,style:o.getModel("brushStyle").getItemStyle()}),r.sliderGroup.add(a)),a.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,c=l.transformCoordToLocal(e,i),f=l.transformCoordToLocal(s.x,s.y),p=this._size;c[0]=Math.max(Math.min(p[0],c[0]),0),a.setShape({x:f[0],y:0,width:c[0]-f[0],height:p[1]})},t.prototype._dispatchZoomAction=function(e){var i=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?J9:null,start:i[0],end:i[1]})},t.prototype._findCoordRect=function(){var e,i=PD(this.dataZoomModel).infoList;if(!e&&i.length){var r=i[0].model.coordinateSystem;e=r.getRect&&r.getRect()}if(!e){var o=this.api.getWidth(),a=this.api.getHeight();e={x:o*.2,y:a*.2,width:o*.6,height:a*.6}}return e},t.type="dataZoom.slider",t})(t1);function e7(n){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[n]}function yA(n){return n==="vertical"?"ns-resize":"ew-resize"}function n7(n){n.registerComponentModel(X9),n.registerComponentView(t7),e1(n)}function i7(n){Yn(Y9),Yn(n7)}var r7=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="dataset",e}return t.prototype.init=function(e,i,r){n.prototype.init.call(this,e,i,r),this._sourceManager=new mC(this),_C(this)},t.prototype.mergeOption=function(e,i){n.prototype.mergeOption.call(this,e,i),_C(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Ri},t})(Yt),o7=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t})(ze);function a7(n){n.registerComponentModel(r7),n.registerComponentView(o7)}function mA(n,t,e){var i=Yi.createCanvas(),r=t.getWidth(),o=t.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",n)),i.width=r*e,i.height=o*e,i}var _1=(function(n){ae(t,n);function t(e,i,r){var o=n.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null;var a;r=r||Wf,typeof e=="string"?a=mA(e,i,r):_t(e)&&(a=e,e=a.id),o.id=e,o.dom=a;var s=a.style;return s&&(ev(a),a.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),o.painter=i,o.dpr=r,o}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=mA("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,i,r,o){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var a=[],s=this.maxRepaintRectCount,l=!1,c=new jt(0,0,0,0);function f(w){if(!(!w.isFinite()||w.isZero()))if(a.length===0){var S=new jt(0,0,0,0);S.copy(w),a.push(S)}else{for(var C=!1,M=1/0,T=0,D=0;D<a.length;++D){var P=a[D];if(P.intersect(w)){var L=new jt(0,0,0,0);L.copy(P),L.union(w),a[D]=L,C=!0;break}else if(l){c.copy(w),c.union(P);var O=w.width*w.height,N=P.width*P.height,B=c.width*c.height,V=B-O-N;V<M&&(M=V,T=D)}}if(l&&(a[T].union(w),C=!0),!C){var S=new jt(0,0,0,0);S.copy(w),a.push(S)}l||(l=a.length>=s)}}for(var p=this.__startIndex;p<this.__endIndex;++p){var g=e[p];if(g){var d=g.shouldBePainted(r,o,!0,!0),y=g.__isRendered&&(g.__dirty&kn||!d)?g.getPrevPaintRect():null;y&&f(y);var _=d&&(g.__dirty&kn||!g.__isRendered)?g.getPaintRect():null;_&&f(_)}}for(var p=this.__prevStartIndex;p<this.__prevEndIndex;++p){var g=i[p],d=g&&g.shouldBePainted(r,o,!0,!0);if(g&&(!d||!g.__zr)&&g.__isRendered){var y=g.getPrevPaintRect();y&&f(y)}}var m;do{m=!1;for(var p=0;p<a.length;){if(a[p].isZero()){a.splice(p,1);continue}for(var x=p+1;x<a.length;)a[p].intersect(a[x])?(m=!0,a[p].union(a[x]),a.splice(x,1)):x++;p++}}while(m);return this._paintRects=a,a},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,i){var r=this.dpr,o=this.dom,a=o.style,s=this.domBack;a&&(a.width=e+"px",a.height=i+"px"),o.width=e*r,o.height=i*r,s&&(s.width=e*r,s.height=i*r,r!==1&&this.ctxBack.scale(r,r))},t.prototype.clear=function(e,i,r){var o=this.dom,a=this.ctx,s=o.width,l=o.height;i=i||this.clearColor;var c=this.motionBlur&&!e,f=this.lastFrameAlpha,p=this.dpr,g=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,s/p,l/p));var d=this.domBack;function y(_,m,x,w){if(a.clearRect(_,m,x,w),i&&i!=="transparent"){var S=void 0;if(wl(i)){var C=i.global||i.__width===x&&i.__height===w;S=C&&i.__canvasGradient||mm(a,i,{x:0,y:0,width:x,height:w}),i.__canvasGradient=S,i.__width=x,i.__height=w}else Sw(i)&&(i.scaleX=i.scaleX||p,i.scaleY=i.scaleY||p,S=_m(a,i,{dirty:function(){g.setUnpainted(),g.painter.refresh()}}));a.save(),a.fillStyle=S||i,a.fillRect(_,m,x,w),a.restore()}c&&(a.save(),a.globalAlpha=f,a.drawImage(d,_,m,x,w),a.restore())}!r||c?y(0,0,s,l):r.length&&E(r,function(_){y(_.x*p,_.y*p,_.width*p,_.height*p)})},t})(En),_A=1e5,ea=314159,Pp=.01,s7=.001;function l7(n){return n?n.__builtin__?!0:!(typeof n.resize!="function"||typeof n.refresh!="function"):!1}function u7(n,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+n+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var c7=(function(){function n(t,e,i,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=i=st({},i||{}),this.dpr=i.devicePixelRatio||Wf,this._singleCanvas=o,this.root=t;var a=t.style;a&&(ev(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(o){var c=t,f=c.width,p=c.height;i.width!=null&&(f=i.width),i.height!=null&&(p=i.height),this.dpr=i.devicePixelRatio||1,c.width=f*this.dpr,c.height=p*this.dpr,this._width=f,this._height=p;var g=new _1(c,this,this.dpr);g.__builtin__=!0,g.initContext(),l[ea]=g,g.zlevel=ea,s.push(ea),this._domRoot=t}else{this._width=Qh(t,0,i),this._height=Qh(t,1,i);var d=this._domRoot=u7(this._width,this._height);t.appendChild(d)}}return n.prototype.getType=function(){return"canvas"},n.prototype.isSingleCanvas=function(){return this._singleCanvas},n.prototype.getViewportRoot=function(){return this._domRoot},n.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},n.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),i=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,i,t,this._redrawId);for(var o=0;o<r.length;o++){var a=r[o],s=this._layers[a];if(!s.__builtin__&&s.refresh){var l=o===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},n.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},n.prototype._paintHoverList=function(t){var e=t.length,i=this._hoverlayer;if(i&&i.clear(),!!e){for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o,a=0;a<e;a++){var s=t[a];s.__inHover&&(i||(i=this._hoverlayer=this.getLayer(_A)),o||(o=i.ctx,o.save()),Zo(o,s,r,a===e-1))}o&&o.restore()}},n.prototype.getHoverLayer=function(){return this.getLayer(_A)},n.prototype.paintOne=function(t,e){xm(t,e)},n.prototype._paintList=function(t,e,i,r){if(this._redrawId===r){i=i||!1,this._updateLayerStatus(t);var o=this._doPaintList(t,e,i),a=o.finished,s=o.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),a)this.eachLayer(function(c){c.afterBrush&&c.afterBrush()});else{var l=this;Tf(function(){l._paintList(t,e,i,r)})}}},n.prototype._compositeManually=function(){var t=this.getLayer(ea).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer(function(r){r.virtual&&t.drawImage(r.dom,0,0,e,i)})},n.prototype._doPaintList=function(t,e,i){for(var r=this,o=[],a=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],c=this._layers[l];c.__builtin__&&c!==this._hoverlayer&&(c.__dirty||i)&&o.push(c)}for(var f=!0,p=!1,g=function(_){var m=o[_],x=m.ctx,w=a&&m.createRepaintRects(t,e,d._width,d._height),S=i?m.__startIndex:m.__drawIndex,C=!i&&m.incremental&&Date.now,M=C&&Date.now(),T=m.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(m.__startIndex===m.__endIndex)m.clear(!1,T,w);else if(S===m.__startIndex){var D=t[S];(!D.incremental||!D.notClear||i)&&m.clear(!1,T,w)}S===-1&&(console.error("For some unknown reason. drawIndex is -1"),S=m.__startIndex);var P,L=function(V){var Z={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(P=S;P<m.__endIndex;P++){var $=t[P];if($.__inHover&&(p=!0),r._doPaintEl($,m,a,V,Z,P===m.__endIndex-1),C){var et=Date.now()-M;if(et>15)break}}Z.prevElClipPaths&&x.restore()};if(w)if(w.length===0)P=m.__endIndex;else for(var O=d.dpr,N=0;N<w.length;++N){var B=w[N];x.save(),x.beginPath(),x.rect(B.x*O,B.y*O,B.width*O,B.height*O),x.clip(),L(B),x.restore()}else x.save(),L(),x.restore();m.__drawIndex=P,m.__drawIndex<m.__endIndex&&(f=!1)},d=this,y=0;y<o.length;y++)g(y);return Ct.wxa&&E(this._layers,function(_){_&&_.ctx&&_.ctx.draw&&_.ctx.draw()}),{finished:f,needsRefreshHover:p}},n.prototype._doPaintEl=function(t,e,i,r,o,a){var s=e.ctx;if(i){var l=t.getPaintRect();(!r||l&&l.intersect(r))&&(Zo(s,t,o,a),t.setPrevPaintRect(l))}else Zo(s,t,o,a)},n.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=ea);var i=this._layers[t];return i||(i=new _1("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]?zt(i,this._layerConfig[t],!0):this._layerConfig[t-Pp]&&zt(i,this._layerConfig[t-Pp],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},n.prototype.insertLayer=function(t,e){var i=this._layers,r=this._zlevelList,o=r.length,a=this._domRoot,s=null,l=-1;if(!i[t]&&l7(e)){if(o>0&&t>r[0]){for(l=0;l<o-1&&!(r[l]<t&&r[l+1]>t);l++);s=i[r[l]]}if(r.splice(l+1,0,t),i[t]=e,!e.virtual)if(s){var c=s.dom;c.nextSibling?a.insertBefore(e.dom,c.nextSibling):a.appendChild(e.dom)}else a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom);e.painter||(e.painter=this)}},n.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,r=0;r<i.length;r++){var o=i[r];t.call(e,this._layers[o],o)}},n.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,r=0;r<i.length;r++){var o=i[r],a=this._layers[o];a.__builtin__&&t.call(e,a,o)}},n.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,r=0;r<i.length;r++){var o=i[r],a=this._layers[o];a.__builtin__||t.call(e,a,o)}},n.prototype.getLayers=function(){return this._layers},n.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(p,g){p.__dirty=p.__used=!1});function e(p){o&&(o.__endIndex!==p&&(o.__dirty=!0),o.__endIndex=p)}if(this._singleCanvas)for(var i=1;i<t.length;i++){var r=t[i];if(r.zlevel!==t[i-1].zlevel||r.incremental){this._needsManuallyCompositing=!0;break}}var o=null,a=0,s,l;for(l=0;l<t.length;l++){var r=t[l],c=r.zlevel,f=void 0;s!==c&&(s=c,a=0),r.incremental?(f=this.getLayer(c+s7,this._needsManuallyCompositing),f.incremental=!0,a=1):f=this.getLayer(c+(a>0?Pp:0),this._needsManuallyCompositing),f.__builtin__||gf("ZLevel "+c+" has been used by unkown layer "+f.id),f!==o&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),o=f),r.__dirty&kn&&!r.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(p,g){!p.__used&&p.getElementCount()>0&&(p.__dirty=!0,p.__startIndex=p.__endIndex=p.__drawIndex=0),p.__dirty&&p.__drawIndex<0&&(p.__drawIndex=p.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(t){t.clear()},n.prototype.setBackgroundColor=function(t){this._backgroundColor=t,E(this._layers,function(e){e.setUnpainted()})},n.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?zt(i[t],e,!0):i[t]=e;for(var r=0;r<this._zlevelList.length;r++){var o=this._zlevelList[r];if(o===t||o===t+Pp){var a=this._layers[o];zt(a,i[t],!0)}}}},n.prototype.delLayer=function(t){var e=this._layers,i=this._zlevelList,r=e[t];r&&(r.dom.parentNode.removeChild(r.dom),delete e[t],i.splice(Vt(i,t),1))},n.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var r=this._opts,o=this.root;if(t!=null&&(r.width=t),e!=null&&(r.height=e),t=Qh(o,0,r),e=Qh(o,1,r),i.style.display="",this._width!==t||e!==this._height){i.style.width=t+"px",i.style.height=e+"px";for(var a in this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(ea).resize(t,e)}return this},n.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},n.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},n.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[ea].dom;var e=new _1("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var i=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var r=e.dom.width,o=e.dom.height;this.eachLayer(function(p){p.__builtin__?i.drawImage(p.dom,0,0,r,o):p.renderToCanvas&&(i.save(),p.renderToCanvas(i),i.restore())})}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,c=s.length;l<c;l++){var f=s[l];Zo(i,f,a,l===c-1)}return e.dom},n.prototype.getWidth=function(){return this._width},n.prototype.getHeight=function(){return this._height},n})();function f7(n){n.registerPainter("canvas",c7)}export{CN as $,SO as A,nO as B,ff as C,lO as D,hO as E,CO as F,po as G,Zg as H,Mb as I,Ab as J,PT as K,Be as L,Yt as M,qL as N,Me as O,BE as P,ze as Q,xi as R,Kn as S,Ym as T,uR as U,he as V,lR as W,m2 as X,Ye as Y,cR as Z,mg as _,vg as a,jb as a$,OF as a0,HF as a1,vF as a2,RF as a3,E2 as a4,NF as a5,Ct as a6,v6 as a7,p6 as a8,d6 as a9,Gr as aA,FF as aB,_w as aC,Uh as aD,t6 as aE,Yn as aF,i6 as aG,HR as aH,gF as aI,PR as aJ,r3 as aK,fH as aL,q6 as aM,SH as aN,aW as aO,YW as aP,m8 as aQ,k9 as aR,z9 as aS,i7 as aT,o9 as aU,T9 as aV,f7 as aW,a7 as aX,D6 as aY,bO as aZ,Ub as a_,g6 as aa,n6 as ab,BF as ac,Nm as ad,zF as ae,VF as af,e6 as ag,jV as ah,EF as ai,xm as aj,nN as ak,JV as al,KV as am,li as an,N2 as ao,z2 as ap,Hm as aq,Wy as ar,F2 as as,O2 as at,R2 as au,Bm as av,Fm as aw,zm as ax,V2 as ay,sp as az,ue as b,oO as b0,aR as b1,UE as b2,cL as c,nE as d,GE as e,Eg as f,Ta as g,Ag as h,pL as i,OE as j,fL as k,$b as l,Cg as m,_l as n,wg as o,aE as p,XL as q,gg as r,wE as s,ME as t,vE as u,pE as v,IE as w,cE as x,hb as y,tE as z};
|
|
147
|
+
`||r==="")){var o=n.isSelected(r);Cr(e,r)?e[r]=e[r]&&o:e[r]=o}}),e}function L9(n){n.registerAction("legendToggleSelect","legendselectchanged",Gt(Ku,"toggleSelected")),n.registerAction("legendAllSelect","legendselectall",Gt(Ku,"allSelect")),n.registerAction("legendInverseSelect","legendinverseselect",Gt(Ku,"inverseSelect")),n.registerAction("legendSelect","legendselected",Gt(Ku,"select")),n.registerAction("legendUnSelect","legendunselected",Gt(Ku,"unSelect"))}function cA(n){n.registerComponentModel(u1),n.registerComponentView(aA),n.registerProcessor(n.PRIORITY.PROCESSOR.SERIES_FILTER,P9),n.registerSubTypeDefaulter("legend",function(){return"plain"}),L9(n)}var E9=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,i,r){var o=bu(e);n.prototype.init.call(this,e,i,r),fA(this,e,o)},t.prototype.mergeOption=function(e,i){n.prototype.mergeOption.call(this,e,i),fA(this,this.option,e)},t.type="legend.scroll",t.defaultOption=Mh(u1.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t})(u1);function fA(n,t,e){var i=n.getOrient(),r=[1,1];r[i.index]=0,hs(t,e,{type:"box",ignoreSize:!!r})}var hA=ye,p1=["width","height"],d1=["x","y"],O9=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){n.prototype.init.call(this),this.group.add(this._containerGroup=new hA),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new hA)},t.prototype.resetInner=function(){n.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,i,r,o,a,s,l){var c=this;n.prototype.renderInner.call(this,e,i,r,o,a,s,l);var f=this._controllerGroup,p=i.get("pageIconSize",!0),g=ct(p)?p:[p,p];y("pagePrev",0);var d=i.getModel("pageTextStyle");f.add(new we({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),y("pageNext",1);function y(_,m){var x=_+"DataIndex",w=uu(i.get("pageIcons",!0)[i.getOrient().name][m],{onclick:wt(c._pageGo,c,x,i,o)},{x:-g[0]/2,y:-g[1]/2,width:g[0],height:g[1]});w.name=_,f.add(w)}},t.prototype.layoutInner=function(e,i,r,o,a,s){var l=this.getSelectorGroup(),c=e.getOrient().index,f=p1[c],p=d1[c],g=p1[1-c],d=d1[1-c];a&&fs("horizontal",l,e.get("selectorItemGap",!0));var y=e.get("selectorButtonGap",!0),_=l.getBoundingRect(),m=[-_.x,-_.y],x=Et(r);a&&(x[f]=r[f]-_[f]-y);var w=this._layoutContentAndController(e,o,x,c,f,g,d,p);if(a){if(s==="end")m[c]+=w[f]+y;else{var S=_[f]+y;m[c]-=S,w[p]-=S}w[f]+=_[f]+y,m[1-c]+=w[d]+w[g]/2-_[g]/2,w[g]=Math.max(w[g],_[g]),w[d]=Math.min(w[d],_[d]+m[1-c]),l.x=m[0],l.y=m[1],l.markRedraw()}return w},t.prototype._layoutContentAndController=function(e,i,r,o,a,s,l,c){var f=this.getContentGroup(),p=this._containerGroup,g=this._controllerGroup;fs(e.get("orient"),f,e.get("itemGap"),o?r.width:null,o?null:r.height),fs("horizontal",g,e.get("pageButtonItemGap",!0));var d=f.getBoundingRect(),y=g.getBoundingRect(),_=this._showController=d[a]>r[a],m=[-d.x,-d.y];i||(m[o]=f[c]);var x=[0,0],w=[-y.x,-y.y],S=Nt(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(_){var C=e.get("pageButtonPosition",!0);C==="end"?w[o]+=r[a]-y[a]:x[o]+=y[a]+S}w[1-o]+=d[s]/2-y[s]/2,f.setPosition(m),p.setPosition(x),g.setPosition(w);var M={x:0,y:0};if(M[a]=_?r[a]:d[a],M[s]=Math.max(d[s],y[s]),M[l]=Math.min(0,y[l]+w[1-o]),p.__rectSize=r[a],_){var T={x:0,y:0};T[a]=Math.max(r[a]-y[a]-S,0),T[s]=M[s],p.setClipPath(new se({shape:T})),p.__rectSize=T[a]}else g.eachChild(function(P){P.attr({invisible:!0,silent:!0})});var D=this._getPageInfo(e);return D.pageIndex!=null&&Ie(f,{x:D.contentPosition[0],y:D.contentPosition[1]},_?e:null),this._updatePageInfoView(e,D),M},t.prototype._pageGo=function(e,i,r){var o=this._getPageInfo(i)[e];o!=null&&r.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:i.id})},t.prototype._updatePageInfoView=function(e,i){var r=this._controllerGroup;E(["pagePrev","pageNext"],function(f){var p=f+"DataIndex",g=i[p]!=null,d=r.childOfName(f);d&&(d.setStyle("fill",g?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),d.cursor=g?"pointer":"default")});var o=r.childOfName("pageText"),a=e.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,c=i.pageCount;o&&a&&o.setStyle("text",gt(a)?a.replace("{current}",l==null?"":l+"").replace("{total}",c==null?"":c+""):a({current:l,total:c}))},t.prototype._getPageInfo=function(e){var i=e.get("scrollDataIndex",!0),r=this.getContentGroup(),o=this._containerGroup.__rectSize,a=e.getOrient().index,s=p1[a],l=d1[a],c=this._findTargetItemIndex(i),f=r.children(),p=f[c],g=f.length,d=g?1:0,y={contentPosition:[r.x,r.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!p)return y;var _=C(p);y.contentPosition[a]=-_.s;for(var m=c+1,x=_,w=_,S=null;m<=g;++m)S=C(f[m]),(!S&&w.e>x.s+o||S&&!M(S,x.s))&&(w.i>x.i?x=w:x=S,x&&(y.pageNextDataIndex==null&&(y.pageNextDataIndex=x.i),++y.pageCount)),w=S;for(var m=c-1,x=_,w=_,S=null;m>=-1;--m)S=C(f[m]),(!S||!M(w,S.s))&&x.i<w.i&&(w=x,y.pagePrevDataIndex==null&&(y.pagePrevDataIndex=x.i),++y.pageCount,++y.pageIndex),x=S;return y;function C(T){if(T){var D=T.getBoundingRect(),P=D[l]+T[l];return{s:P,e:P+D[s],i:T.__legendDataIndex}}}function M(T,D){return T.e>=D&&T.s<=D+o}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var i,r=this.getContentGroup(),o;return r.eachChild(function(a,s){var l=a.__legendDataIndex;o==null&&l!=null&&(o=s),l===e&&(i=s)}),i??o},t.type="legend.scroll",t})(aA);function R9(n){n.registerAction("legendScroll","legendscroll",function(t,e){var i=t.scrollDataIndex;i!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(r){r.setScrollDataIndex(i)})})}function N9(n){Yn(cA),n.registerComponentModel(E9),n.registerComponentView(O9),R9(n)}function z9(n){Yn(cA),Yn(N9)}var B9=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=Mh($u.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t})($u),g1=fe();function F9(n,t,e){g1(n).coordSysRecordMap.each(function(i){var r=i.dataZoomInfoMap.get(t.uid);r&&(r.getRange=e)})}function V9(n,t){for(var e=g1(n).coordSysRecordMap,i=e.keys(),r=0;r<i.length;r++){var o=i[r],a=e.get(o),s=a.dataZoomInfoMap;if(s){var l=t.uid,c=s.get(l);c&&(s.removeKey(l),s.keys().length||pA(e,a))}}}function pA(n,t){if(t){n.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function H9(n,t){var e={model:t,containsPoint:Gt(U9,t),dispatchAction:Gt(W9,n),dataZoomInfoMap:null,controller:null},i=e.controller=new uW(n.getZr());return E(["pan","zoom","scrollMove"],function(r){i.on(r,function(o){var a=[];e.dataZoomInfoMap.each(function(s){if(o.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[r],c=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,o);!s.model.get("disabled",!0)&&c&&a.push({dataZoomId:s.model.id,start:c[0],end:c[1]})}}),a.length&&e.dispatchAction(a)})}),e}function W9(n,t){n.isDisposed()||n.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function U9(n,t,e,i){return n.coordinateSystem.containPoint([e,i])}function G9(n){var t,e="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return n.each(function(o){var a=o.model,s=a.get("disabled",!0)?!1:a.get("zoomLock",!0)?"move":!0;i[e+s]>i[e+t]&&(t=s),r=r&&a.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}function j9(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(t,e){var i=g1(e),r=i.coordSysRecordMap||(i.coordSysRecordMap=Mt());r.each(function(o){o.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(o){var a=PD(o);E(a.infoList,function(s){var l=s.model.uid,c=r.get(l)||r.set(l,H9(e,s.model)),f=c.dataZoomInfoMap||(c.dataZoomInfoMap=Mt());f.set(o.uid,{dzReferCoordSysInfo:s,model:o,getRange:null})})}),r.each(function(o){var a=o.controller,s,l=o.dataZoomInfoMap;if(l){var c=l.keys()[0];c!=null&&(s=l.get(c))}if(!s){pA(r,o);return}var f=G9(l);a.enable(f.controlType,f.opt),a.setPointerChecker(o.containsPoint),Gh(o,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Z9=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,i,r){if(n.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),F9(r,e,{pan:wt(v1.pan,this),zoom:wt(v1.zoom,this),scrollMove:wt(v1.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){V9(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t})(t1),v1={zoom:function(n,t,e,i){var r=this.range,o=r.slice(),a=n.axisModels[0];if(a){var s=y1[t](null,[i.originX,i.originY],a,e,n),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],c=Math.max(1/i.scale,0);o[0]=(o[0]-l)*c+l,o[1]=(o[1]-l)*c+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Yu(0,o,[0,100],0,f.minSpan,f.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1])return o}},pan:dA(function(n,t,e,i,r,o){var a=y1[i]([o.oldX,o.oldY],[o.newX,o.newY],t,r,e);return a.signal*(n[1]-n[0])*a.pixel/a.pixelLength}),scrollMove:dA(function(n,t,e,i,r,o){var a=y1[i]([0,0],[o.scrollDelta,o.scrollDelta],t,r,e);return a.signal*(n[1]-n[0])*o.scrollDelta})};function dA(n){return function(t,e,i,r){var o=this.range,a=o.slice(),s=t.axisModels[0];if(s){var l=n(a,s,t,e,i,r);if(Yu(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1])return a}}}var y1={grid:function(n,t,e,i,r){var o=e.axis,a={},s=r.model.coordinateSystem.getRect();return n=n||[0,0],o.dim==="x"?(a.pixel=t[0]-n[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=t[1]-n[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(n,t,e,i,r){var o=e.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return n=n?s.pointToCoord(n):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(a.pixel=t[0]-n[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=t[1]-n[1],a.pixelLength=c[1]-c[0],a.pixelStart=c[0],a.signal=o.inverse?-1:1),a},singleAxis:function(n,t,e,i,r){var o=e.axis,a=r.model.coordinateSystem.getRect(),s={};return n=n||[0,0],o.orient==="horizontal"?(s.pixel=t[0]-n[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-n[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};function Y9(n){e1(n),n.registerComponentModel(B9),n.registerComponentView(Z9),j9(n)}var X9=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Mh($u.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t})($u),Ju=se,gA=7,$9=1,m1=30,q9=7,tc="horizontal",vA="vertical",Q9=5,K9=["line","bar","candlestick","scatter"],J9={easing:"cubicOut",duration:100,delay:0},t7=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,i){this.api=i,this._onBrush=wt(this._onBrush,this),this._onBrushEnd=wt(this._onBrushEnd,this)},t.prototype.render=function(e,i,r,o){if(n.prototype.render.apply(this,arguments),Gh(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!o||o.type!=="dataZoom"||o.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){jh(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var i=this._displayables.sliderGroup=new ye;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(i),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,i=this.api,r=e.get("brushSelect"),o=r?q9:0,a=this._findCoordRect(),s={width:i.getWidth(),height:i.getHeight()},l=this._orient===tc?{right:s.width-a.x-a.width,top:s.height-m1-gA-o,width:a.width,height:m1}:{right:gA,top:a.y,width:m1,height:a.height},c=bu(e.option);E(["right","top","width","height"],function(p){c[p]==="ph"&&(c[p]=l[p])});var f=Ei(c,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===vA&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,i=this._location,r=this._orient,o=this.dataZoomModel.getFirstTargetAxisModel(),a=o&&o.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(r===tc&&!a?{scaleY:l?1:-1,scaleX:1}:r===tc&&a?{scaleY:l?1:-1,scaleX:-1}:r===vA&&!a?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var c=e.getBoundingRect([s]);e.x=i.x-c.x,e.y=i.y-c.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,i=this._size,r=this._displayables.sliderGroup,o=e.get("brushSelect");r.add(new Ju({silent:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var a=new Ju({shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:"transparent"},z2:0,onclick:wt(this._onClickPanel,this)}),s=this.api.getZr();o?(a.on("mousedown",this._onBrushStart,this),a.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),r.add(a)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var i=this._size,r=this._shadowSize||[],o=e.series,a=o.getRawData(),s=o.getShadowDim&&o.getShadowDim(),l=s&&a.getDimensionInfo(s)?o.getShadowDim():e.otherDim;if(l==null)return;var c=this._shadowPolygonPts,f=this._shadowPolylinePts;if(a!==this._shadowData||l!==this._shadowDim||i[0]!==r[0]||i[1]!==r[1]){var p=a.getDataExtent(l),g=(p[1]-p[0])*.3;p=[p[0]-g,p[1]+g];var d=[0,i[1]],y=[0,i[0]],_=[[i[0],0],[0,0]],m=[],x=y[1]/(a.count()-1),w=0,S=Math.round(a.count()/i[0]),C;a.each([l],function(L,O){if(S>0&&O%S){w+=x;return}var N=L==null||isNaN(L)||L==="",B=N?0:Le(L,p,d,!0);N&&!C&&O?(_.push([_[_.length-1][0],0]),m.push([m[m.length-1][0],0])):!N&&C&&(_.push([w,0]),m.push([w,0])),_.push([w,B]),m.push([w,B]),w+=x,C=N}),c=this._shadowPolygonPts=_,f=this._shadowPolylinePts=m}this._shadowData=a,this._shadowDim=l,this._shadowSize=[i[0],i[1]];var M=this.dataZoomModel;function T(L){var O=M.getModel(L?"selectedDataBackground":"dataBackground"),N=new ye,B=new os({shape:{points:c},segmentIgnoreThreshold:1,style:O.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),V=new Vr({shape:{points:f},segmentIgnoreThreshold:1,style:O.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return N.add(B),N.add(V),N}for(var D=0;D<3;D++){var P=T(D===1);this._displayables.sliderGroup.add(P),this._displayables.dataShadowSegs.push(P)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,i=e.get("showDataShadow");if(i!==!1){var r,o=this.ecModel;return e.eachTargetAxis(function(a,s){var l=e.getAxisProxy(a,s).getTargetSeriesModels();E(l,function(c){if(!r&&!(i!==!0&&Vt(K9,c.get("type"))<0)){var f=o.getComponent(Qr(a),s).axis,p=e7(a),g,d=c.coordinateSystem;p!=null&&d.getOtherAxis&&(g=d.getOtherAxis(f).inverse),p=c.getData().mapDimension(p),r={thisAxis:f,series:c,thisDim:a,otherDim:p,otherAxisInverse:g}}},this)},this),r}},t.prototype._renderHandle=function(){var e=this.group,i=this._displayables,r=i.handles=[null,null],o=i.handleLabels=[null,null],a=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,c=this.api,f=l.get("borderRadius")||0,p=l.get("brushSelect"),g=i.filler=new Ju({silent:p,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});a.add(g),a.add(new Ju({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:$9,fill:"rgba(0,0,0,0)"}})),E([0,1],function(S){var C=l.get("handleIcon");!$h[C]&&C.indexOf("path://")<0&&C.indexOf("image://")<0&&(C="path://"+C);var M=Ni(C,-1,0,2,2,null,!0);M.attr({cursor:yA(this._orient),draggable:!0,drift:wt(this._onDragMove,this,S),ondragend:wt(this._onDragEnd,this),onmouseover:wt(this._showDataInfo,this,!0),onmouseout:wt(this._showDataInfo,this,!1),z2:5});var T=M.getBoundingRect(),D=l.get("handleSize");this._handleHeight=Qt(D,this._size[1]),this._handleWidth=T.width/T.height*this._handleHeight,M.setStyle(l.getModel("handleStyle").getItemStyle()),M.style.strokeNoScale=!0,M.rectHover=!0,M.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Jl(M);var P=l.get("handleColor");P!=null&&(M.style.fill=P),a.add(r[S]=M);var L=l.getModel("textStyle"),O=l.get("handleLabel")||{},N=O.show||!1;e.add(o[S]=new we({silent:!0,invisible:!N,style:Li(L,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:L.getTextColor(),font:L.getFont()}),z2:10}))},this);var d=g;if(p){var y=Qt(l.get("moveHandleSize"),s[1]),_=i.moveHandle=new se({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:y}}),m=y*.8,x=i.moveHandleIcon=Ni(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);x.silent=!0,x.y=s[1]+y/2-.5,_.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var w=Math.min(s[1]/2,Math.max(y,10));d=i.moveZone=new se({invisible:!0,shape:{y:s[1]-w,height:y+w}}),d.on("mouseover",function(){c.enterEmphasis(_)}).on("mouseout",function(){c.leaveEmphasis(_)}),a.add(_),a.add(x),a.add(d)}d.attr({draggable:!0,cursor:yA(this._orient),drift:wt(this._onDragMove,this,"all"),ondragstart:wt(this._showDataInfo,this,!0),ondragend:wt(this._onDragEnd,this),onmouseover:wt(this._showDataInfo,this,!0),onmouseout:wt(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),i=this._getViewExtent();this._handleEnds=[Le(e[0],[0,100],i,!0),Le(e[1],[0,100],i,!0)]},t.prototype._updateInterval=function(e,i){var r=this.dataZoomModel,o=this._handleEnds,a=this._getViewExtent(),s=r.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Yu(i,o,a,r.get("zoomLock")?"all":e,s.minSpan!=null?Le(s.minSpan,l,a,!0):null,s.maxSpan!=null?Le(s.maxSpan,l,a,!0):null);var c=this._range,f=this._range=qa([Le(o[0],a,l,!0),Le(o[1],a,l,!0)]);return!c||c[0]!==f[0]||c[1]!==f[1]},t.prototype._updateView=function(e){var i=this._displayables,r=this._handleEnds,o=qa(r.slice()),a=this._size;E([0,1],function(d){var y=i.handles[d],_=this._handleHeight;y.attr({scaleX:_/2,scaleY:_/2,x:r[d]+(d?-1:1),y:a[1]/2-_/2})},this),i.filler.setShape({x:o[0],y:0,width:o[1]-o[0],height:a[1]});var s={x:o[0],width:o[1]-o[0]};i.moveHandle&&(i.moveHandle.setShape(s),i.moveZone.setShape(s),i.moveZone.getBoundingRect(),i.moveHandleIcon&&i.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=i.dataShadowSegs,c=[0,o[0],o[1],a[0]],f=0;f<l.length;f++){var p=l[f],g=p.getClipPath();g||(g=new se,p.setClipPath(g)),g.setShape({x:c[f],y:0,width:c[f+1]-c[f],height:a[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var i=this.dataZoomModel,r=this._displayables,o=r.handleLabels,a=this._orient,s=["",""];if(i.get("showDetail")){var l=i.findRepresentativeAxisProxy();if(l){var c=l.getAxisModel().axis,f=this._range,p=e?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(p[0],c),this._formatLabel(p[1],c)]}}var g=qa(this._handleEnds.slice());d.call(this,0),d.call(this,1);function d(y){var _=su(r.handles[y].parent,this.group),m=Oy(y===0?"right":"left",_),x=this._handleWidth/2+Q9,w=lu([g[y]+(y===0?-x:x),this._size[1]/2],_);o[y].setStyle({x:w[0],y:w[1],verticalAlign:a===tc?"middle":m,align:a===tc?m:"center",text:s[y]})}},t.prototype._formatLabel=function(e,i){var r=this.dataZoomModel,o=r.get("labelFormatter"),a=r.get("labelPrecision");(a==null||a==="auto")&&(a=i.getPixelPrecision());var s=e==null||isNaN(e)?"":i.type==="category"||i.type==="time"?i.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(a,20));return St(o)?o(e,s):gt(o)?o.replace("{value}",s):s},t.prototype._showDataInfo=function(e){var i=this.dataZoomModel.get("handleLabel")||{},r=i.show||!1,o=this.dataZoomModel.getModel(["emphasis","handleLabel"]),a=o.get("show")||!1,s=e||this._dragging?a:r,l=this._displayables,c=l.handleLabels;c[0].attr("invisible",!s),c[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},t.prototype._onDragMove=function(e,i,r,o){this._dragging=!0,Ha(o.event);var a=this._displayables.sliderGroup.getLocalTransform(),s=lu([i,r],a,!0),l=this._updateInterval(e,s[0]),c=this.dataZoomModel.get("realtime");this._updateView(!c),l&&c&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var i=this._size,r=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(r[0]<0||r[0]>i[0]||r[1]<0||r[1]>i[1])){var o=this._handleEnds,a=(o[0]+o[1])/2,s=this._updateInterval("all",r[0]-a);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var i=e.offsetX,r=e.offsetY;this._brushStart=new Pt(i,r),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var i=this._displayables.brushRect;if(this._brushing=!1,!!i){i.attr("ignore",!0);var r=i.shape,o=+new Date;if(!(o-this._brushStartTime<200&&Math.abs(r.width)<5)){var a=this._getViewExtent(),s=[0,100];this._range=qa([Le(r.x,a,s,!0),Le(r.x+r.width,a,s,!0)]),this._handleEnds=[r.x,r.x+r.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Ha(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,i){var r=this._displayables,o=this.dataZoomModel,a=r.brushRect;a||(a=r.brushRect=new Ju({silent:!0,style:o.getModel("brushStyle").getItemStyle()}),r.sliderGroup.add(a)),a.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,c=l.transformCoordToLocal(e,i),f=l.transformCoordToLocal(s.x,s.y),p=this._size;c[0]=Math.max(Math.min(p[0],c[0]),0),a.setShape({x:f[0],y:0,width:c[0]-f[0],height:p[1]})},t.prototype._dispatchZoomAction=function(e){var i=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?J9:null,start:i[0],end:i[1]})},t.prototype._findCoordRect=function(){var e,i=PD(this.dataZoomModel).infoList;if(!e&&i.length){var r=i[0].model.coordinateSystem;e=r.getRect&&r.getRect()}if(!e){var o=this.api.getWidth(),a=this.api.getHeight();e={x:o*.2,y:a*.2,width:o*.6,height:a*.6}}return e},t.type="dataZoom.slider",t})(t1);function e7(n){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[n]}function yA(n){return n==="vertical"?"ns-resize":"ew-resize"}function n7(n){n.registerComponentModel(X9),n.registerComponentView(t7),e1(n)}function i7(n){Yn(Y9),Yn(n7)}var r7=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="dataset",e}return t.prototype.init=function(e,i,r){n.prototype.init.call(this,e,i,r),this._sourceManager=new mC(this),_C(this)},t.prototype.mergeOption=function(e,i){n.prototype.mergeOption.call(this,e,i),_C(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Ri},t})(Yt),o7=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t})(ze);function a7(n){n.registerComponentModel(r7),n.registerComponentView(o7)}function mA(n,t,e){var i=Yi.createCanvas(),r=t.getWidth(),o=t.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",n)),i.width=r*e,i.height=o*e,i}var _1=(function(n){ae(t,n);function t(e,i,r){var o=n.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null;var a;r=r||Wf,typeof e=="string"?a=mA(e,i,r):_t(e)&&(a=e,e=a.id),o.id=e,o.dom=a;var s=a.style;return s&&(ev(a),a.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),o.painter=i,o.dpr=r,o}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=mA("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,i,r,o){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var a=[],s=this.maxRepaintRectCount,l=!1,c=new jt(0,0,0,0);function f(w){if(!(!w.isFinite()||w.isZero()))if(a.length===0){var S=new jt(0,0,0,0);S.copy(w),a.push(S)}else{for(var C=!1,M=1/0,T=0,D=0;D<a.length;++D){var P=a[D];if(P.intersect(w)){var L=new jt(0,0,0,0);L.copy(P),L.union(w),a[D]=L,C=!0;break}else if(l){c.copy(w),c.union(P);var O=w.width*w.height,N=P.width*P.height,B=c.width*c.height,V=B-O-N;V<M&&(M=V,T=D)}}if(l&&(a[T].union(w),C=!0),!C){var S=new jt(0,0,0,0);S.copy(w),a.push(S)}l||(l=a.length>=s)}}for(var p=this.__startIndex;p<this.__endIndex;++p){var g=e[p];if(g){var d=g.shouldBePainted(r,o,!0,!0),y=g.__isRendered&&(g.__dirty&kn||!d)?g.getPrevPaintRect():null;y&&f(y);var _=d&&(g.__dirty&kn||!g.__isRendered)?g.getPaintRect():null;_&&f(_)}}for(var p=this.__prevStartIndex;p<this.__prevEndIndex;++p){var g=i[p],d=g&&g.shouldBePainted(r,o,!0,!0);if(g&&(!d||!g.__zr)&&g.__isRendered){var y=g.getPrevPaintRect();y&&f(y)}}var m;do{m=!1;for(var p=0;p<a.length;){if(a[p].isZero()){a.splice(p,1);continue}for(var x=p+1;x<a.length;)a[p].intersect(a[x])?(m=!0,a[p].union(a[x]),a.splice(x,1)):x++;p++}}while(m);return this._paintRects=a,a},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,i){var r=this.dpr,o=this.dom,a=o.style,s=this.domBack;a&&(a.width=e+"px",a.height=i+"px"),o.width=e*r,o.height=i*r,s&&(s.width=e*r,s.height=i*r,r!==1&&this.ctxBack.scale(r,r))},t.prototype.clear=function(e,i,r){var o=this.dom,a=this.ctx,s=o.width,l=o.height;i=i||this.clearColor;var c=this.motionBlur&&!e,f=this.lastFrameAlpha,p=this.dpr,g=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,s/p,l/p));var d=this.domBack;function y(_,m,x,w){if(a.clearRect(_,m,x,w),i&&i!=="transparent"){var S=void 0;if(wl(i)){var C=i.global||i.__width===x&&i.__height===w;S=C&&i.__canvasGradient||mm(a,i,{x:0,y:0,width:x,height:w}),i.__canvasGradient=S,i.__width=x,i.__height=w}else Sw(i)&&(i.scaleX=i.scaleX||p,i.scaleY=i.scaleY||p,S=_m(a,i,{dirty:function(){g.setUnpainted(),g.painter.refresh()}}));a.save(),a.fillStyle=S||i,a.fillRect(_,m,x,w),a.restore()}c&&(a.save(),a.globalAlpha=f,a.drawImage(d,_,m,x,w),a.restore())}!r||c?y(0,0,s,l):r.length&&E(r,function(_){y(_.x*p,_.y*p,_.width*p,_.height*p)})},t})(En),_A=1e5,ea=314159,Pp=.01,s7=.001;function l7(n){return n?n.__builtin__?!0:!(typeof n.resize!="function"||typeof n.refresh!="function"):!1}function u7(n,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+n+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var c7=(function(){function n(t,e,i,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=i=st({},i||{}),this.dpr=i.devicePixelRatio||Wf,this._singleCanvas=o,this.root=t;var a=t.style;a&&(ev(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(o){var c=t,f=c.width,p=c.height;i.width!=null&&(f=i.width),i.height!=null&&(p=i.height),this.dpr=i.devicePixelRatio||1,c.width=f*this.dpr,c.height=p*this.dpr,this._width=f,this._height=p;var g=new _1(c,this,this.dpr);g.__builtin__=!0,g.initContext(),l[ea]=g,g.zlevel=ea,s.push(ea),this._domRoot=t}else{this._width=Qh(t,0,i),this._height=Qh(t,1,i);var d=this._domRoot=u7(this._width,this._height);t.appendChild(d)}}return n.prototype.getType=function(){return"canvas"},n.prototype.isSingleCanvas=function(){return this._singleCanvas},n.prototype.getViewportRoot=function(){return this._domRoot},n.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},n.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),i=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,i,t,this._redrawId);for(var o=0;o<r.length;o++){var a=r[o],s=this._layers[a];if(!s.__builtin__&&s.refresh){var l=o===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},n.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},n.prototype._paintHoverList=function(t){var e=t.length,i=this._hoverlayer;if(i&&i.clear(),!!e){for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o,a=0;a<e;a++){var s=t[a];s.__inHover&&(i||(i=this._hoverlayer=this.getLayer(_A)),o||(o=i.ctx,o.save()),Zo(o,s,r,a===e-1))}o&&o.restore()}},n.prototype.getHoverLayer=function(){return this.getLayer(_A)},n.prototype.paintOne=function(t,e){xm(t,e)},n.prototype._paintList=function(t,e,i,r){if(this._redrawId===r){i=i||!1,this._updateLayerStatus(t);var o=this._doPaintList(t,e,i),a=o.finished,s=o.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),a)this.eachLayer(function(c){c.afterBrush&&c.afterBrush()});else{var l=this;Tf(function(){l._paintList(t,e,i,r)})}}},n.prototype._compositeManually=function(){var t=this.getLayer(ea).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer(function(r){r.virtual&&t.drawImage(r.dom,0,0,e,i)})},n.prototype._doPaintList=function(t,e,i){for(var r=this,o=[],a=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],c=this._layers[l];c.__builtin__&&c!==this._hoverlayer&&(c.__dirty||i)&&o.push(c)}for(var f=!0,p=!1,g=function(_){var m=o[_],x=m.ctx,w=a&&m.createRepaintRects(t,e,d._width,d._height),S=i?m.__startIndex:m.__drawIndex,C=!i&&m.incremental&&Date.now,M=C&&Date.now(),T=m.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(m.__startIndex===m.__endIndex)m.clear(!1,T,w);else if(S===m.__startIndex){var D=t[S];(!D.incremental||!D.notClear||i)&&m.clear(!1,T,w)}S===-1&&(console.error("For some unknown reason. drawIndex is -1"),S=m.__startIndex);var P,L=function(V){var Z={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(P=S;P<m.__endIndex;P++){var $=t[P];if($.__inHover&&(p=!0),r._doPaintEl($,m,a,V,Z,P===m.__endIndex-1),C){var et=Date.now()-M;if(et>15)break}}Z.prevElClipPaths&&x.restore()};if(w)if(w.length===0)P=m.__endIndex;else for(var O=d.dpr,N=0;N<w.length;++N){var B=w[N];x.save(),x.beginPath(),x.rect(B.x*O,B.y*O,B.width*O,B.height*O),x.clip(),L(B),x.restore()}else x.save(),L(),x.restore();m.__drawIndex=P,m.__drawIndex<m.__endIndex&&(f=!1)},d=this,y=0;y<o.length;y++)g(y);return Ct.wxa&&E(this._layers,function(_){_&&_.ctx&&_.ctx.draw&&_.ctx.draw()}),{finished:f,needsRefreshHover:p}},n.prototype._doPaintEl=function(t,e,i,r,o,a){var s=e.ctx;if(i){var l=t.getPaintRect();(!r||l&&l.intersect(r))&&(Zo(s,t,o,a),t.setPrevPaintRect(l))}else Zo(s,t,o,a)},n.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=ea);var i=this._layers[t];return i||(i=new _1("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]?zt(i,this._layerConfig[t],!0):this._layerConfig[t-Pp]&&zt(i,this._layerConfig[t-Pp],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},n.prototype.insertLayer=function(t,e){var i=this._layers,r=this._zlevelList,o=r.length,a=this._domRoot,s=null,l=-1;if(!i[t]&&l7(e)){if(o>0&&t>r[0]){for(l=0;l<o-1&&!(r[l]<t&&r[l+1]>t);l++);s=i[r[l]]}if(r.splice(l+1,0,t),i[t]=e,!e.virtual)if(s){var c=s.dom;c.nextSibling?a.insertBefore(e.dom,c.nextSibling):a.appendChild(e.dom)}else a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom);e.painter||(e.painter=this)}},n.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,r=0;r<i.length;r++){var o=i[r];t.call(e,this._layers[o],o)}},n.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,r=0;r<i.length;r++){var o=i[r],a=this._layers[o];a.__builtin__&&t.call(e,a,o)}},n.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,r=0;r<i.length;r++){var o=i[r],a=this._layers[o];a.__builtin__||t.call(e,a,o)}},n.prototype.getLayers=function(){return this._layers},n.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(p,g){p.__dirty=p.__used=!1});function e(p){o&&(o.__endIndex!==p&&(o.__dirty=!0),o.__endIndex=p)}if(this._singleCanvas)for(var i=1;i<t.length;i++){var r=t[i];if(r.zlevel!==t[i-1].zlevel||r.incremental){this._needsManuallyCompositing=!0;break}}var o=null,a=0,s,l;for(l=0;l<t.length;l++){var r=t[l],c=r.zlevel,f=void 0;s!==c&&(s=c,a=0),r.incremental?(f=this.getLayer(c+s7,this._needsManuallyCompositing),f.incremental=!0,a=1):f=this.getLayer(c+(a>0?Pp:0),this._needsManuallyCompositing),f.__builtin__||gf("ZLevel "+c+" has been used by unkown layer "+f.id),f!==o&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),o=f),r.__dirty&kn&&!r.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(p,g){!p.__used&&p.getElementCount()>0&&(p.__dirty=!0,p.__startIndex=p.__endIndex=p.__drawIndex=0),p.__dirty&&p.__drawIndex<0&&(p.__drawIndex=p.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(t){t.clear()},n.prototype.setBackgroundColor=function(t){this._backgroundColor=t,E(this._layers,function(e){e.setUnpainted()})},n.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?zt(i[t],e,!0):i[t]=e;for(var r=0;r<this._zlevelList.length;r++){var o=this._zlevelList[r];if(o===t||o===t+Pp){var a=this._layers[o];zt(a,i[t],!0)}}}},n.prototype.delLayer=function(t){var e=this._layers,i=this._zlevelList,r=e[t];r&&(r.dom.parentNode.removeChild(r.dom),delete e[t],i.splice(Vt(i,t),1))},n.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var r=this._opts,o=this.root;if(t!=null&&(r.width=t),e!=null&&(r.height=e),t=Qh(o,0,r),e=Qh(o,1,r),i.style.display="",this._width!==t||e!==this._height){i.style.width=t+"px",i.style.height=e+"px";for(var a in this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(ea).resize(t,e)}return this},n.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},n.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},n.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[ea].dom;var e=new _1("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var i=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var r=e.dom.width,o=e.dom.height;this.eachLayer(function(p){p.__builtin__?i.drawImage(p.dom,0,0,r,o):p.renderToCanvas&&(i.save(),p.renderToCanvas(i),i.restore())})}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,c=s.length;l<c;l++){var f=s[l];Zo(i,f,a,l===c-1)}return e.dom},n.prototype.getWidth=function(){return this._width},n.prototype.getHeight=function(){return this._height},n})();function f7(n){n.registerPainter("canvas",c7)}export{Ye as $,lO as A,hO as B,ff as C,CO as D,GE as E,aR as F,Eg as G,Zg as H,po as I,Mb as J,Ab as K,PT as L,Be as M,qL as N,Me as O,BE as P,Yt as Q,xi as R,Kn as S,ze as T,uR as U,Ym as V,lR as W,he as X,m2 as Y,cR as Z,mg as _,vg as a,Ub as a$,CN as a0,OF as a1,HF as a2,vF as a3,RF as a4,E2 as a5,NF as a6,Ct as a7,v6 as a8,p6 as a9,sp as aA,Gr as aB,FF as aC,_w as aD,Uh as aE,t6 as aF,Yn as aG,i6 as aH,HR as aI,gF as aJ,PR as aK,r3 as aL,fH as aM,q6 as aN,SH as aO,aW as aP,YW as aQ,m8 as aR,k9 as aS,z9 as aT,i7 as aU,o9 as aV,T9 as aW,f7 as aX,a7 as aY,D6 as aZ,bO as a_,d6 as aa,g6 as ab,n6 as ac,BF as ad,Nm as ae,zF as af,VF as ag,e6 as ah,jV as ai,EF as aj,xm as ak,nN as al,JV as am,KV as an,li as ao,N2 as ap,z2 as aq,Hm as ar,Wy as as,F2 as at,O2 as au,R2 as av,Bm as aw,Fm as ax,zm as ay,V2 as az,ue as b,jb as b0,oO as b1,UE as b2,cL as c,nE as d,Ag as e,pL as f,Ta as g,OE as h,fL as i,$b as j,_l as k,aE as l,Cg as m,XL as n,wg as o,vE as p,pE as q,gg as r,wE as s,ME as t,cE as u,hb as v,IE as w,tE as x,SO as y,nO as z};
|
package/dist/index.html
CHANGED
|
@@ -1,22 +1,53 @@
|
|
|
1
|
-
<!
|
|
1
|
+
<!doctype html>
|
|
2
2
|
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="color-scheme" content="light dark" />
|
|
6
|
+
<script>
|
|
7
|
+
;(() => {
|
|
8
|
+
const preferenceKey = "appearance.themePreference"
|
|
9
|
+
let preference = "system"
|
|
3
10
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
<link rel="icon" href="assets/favicon.ico">
|
|
7
|
-
<link rel="icon" href="assets/favicon.svg" type="image/svg+xml">
|
|
8
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
9
|
-
<meta name="description"
|
|
10
|
-
content="QuestDB live demo. Query three large datasets and more than 2 billion rows in milliseconds with SQL" />
|
|
11
|
-
<title>QuestDB · Console</title>
|
|
12
|
-
<script type="module" crossorigin src="./assets/index-BsTZY3jV.js"></script>
|
|
13
|
-
<link rel="modulepreload" crossorigin href="./assets/vendor-BhHVTKlu.js">
|
|
14
|
-
<link rel="stylesheet" crossorigin href="./assets/index-BqRJij9Z.css">
|
|
15
|
-
</head>
|
|
11
|
+
try {
|
|
12
|
+
const storedPreference = localStorage.getItem(preferenceKey)
|
|
16
13
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
if (
|
|
15
|
+
storedPreference === "system" ||
|
|
16
|
+
storedPreference === "light" ||
|
|
17
|
+
storedPreference === "dark"
|
|
18
|
+
) {
|
|
19
|
+
preference = storedPreference
|
|
20
|
+
}
|
|
21
|
+
} catch {
|
|
22
|
+
// Storage can be unavailable in privacy-restricted browser contexts.
|
|
23
|
+
}
|
|
21
24
|
|
|
25
|
+
const mode =
|
|
26
|
+
preference === "system"
|
|
27
|
+
? matchMedia("(prefers-color-scheme: dark)").matches
|
|
28
|
+
? "dark"
|
|
29
|
+
: "light"
|
|
30
|
+
: preference
|
|
31
|
+
|
|
32
|
+
document.documentElement.dataset.theme = mode
|
|
33
|
+
document.documentElement.style.colorScheme = mode
|
|
34
|
+
})()
|
|
35
|
+
</script>
|
|
36
|
+
<link rel="icon" href="assets/favicon.ico" />
|
|
37
|
+
<link rel="icon" href="assets/favicon.svg" type="image/svg+xml" />
|
|
38
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
39
|
+
<meta
|
|
40
|
+
name="description"
|
|
41
|
+
content="QuestDB live demo. Query three large datasets and more than 2 billion rows in milliseconds with SQL"
|
|
42
|
+
/>
|
|
43
|
+
<title>QuestDB · Console</title>
|
|
44
|
+
<script type="module" crossorigin src="./assets/index-C7moHtT_.js"></script>
|
|
45
|
+
<link rel="modulepreload" crossorigin href="./assets/vendor-BpMkWAQ4.js">
|
|
46
|
+
<link rel="stylesheet" crossorigin href="./assets/index-D9FdLy0m.css">
|
|
47
|
+
</head>
|
|
48
|
+
|
|
49
|
+
<body class="mini-navbar pace-done">
|
|
50
|
+
<div id="root"></div>
|
|
51
|
+
<div id="sideMenu"></div>
|
|
52
|
+
</body>
|
|
22
53
|
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@questdb/web-console",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"packageManager": "yarn@4.1.1",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"description": "QuestDB Web Console",
|
|
@@ -26,7 +26,8 @@
|
|
|
26
26
|
"test:e2e:auth": "cypress run --spec 'e2e/tests/auth/*.spec.js'",
|
|
27
27
|
"test:e2e:enterprise": "cypress run --spec 'e2e/tests/enterprise/*.spec.js'",
|
|
28
28
|
"typecheck": "tsc --noEmit",
|
|
29
|
-
"lint": "eslint src/ e2e/tests/",
|
|
29
|
+
"lint": "eslint src/ e2e/tests/ && npm run lint:colors",
|
|
30
|
+
"lint:colors": "node scripts/check-color-literals.mjs",
|
|
30
31
|
"lint:fix": "eslint src/ e2e/tests/ --fix",
|
|
31
32
|
"prepare": "husky"
|
|
32
33
|
},
|
|
@@ -39,7 +40,7 @@
|
|
|
39
40
|
"@monaco-editor/react": "^4.7.0",
|
|
40
41
|
"@phosphor-icons/react": "^2.1.10",
|
|
41
42
|
"@popperjs/core": "2.4.2",
|
|
42
|
-
"@questdb/sql-parser": "0.1.
|
|
43
|
+
"@questdb/sql-parser": "0.1.19",
|
|
43
44
|
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
44
45
|
"@radix-ui/react-context-menu": "^2.2.16",
|
|
45
46
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
@@ -47,19 +48,6 @@
|
|
|
47
48
|
"@radix-ui/react-popover": "^1.1.0",
|
|
48
49
|
"@radix-ui/react-switch": "^1.2.6",
|
|
49
50
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
50
|
-
"@styled-icons/bootstrap": "10.47.0",
|
|
51
|
-
"@styled-icons/boxicons-logos": "10.47.0",
|
|
52
|
-
"@styled-icons/boxicons-regular": "10.47.0",
|
|
53
|
-
"@styled-icons/boxicons-solid": "10.47.0",
|
|
54
|
-
"@styled-icons/entypo": "10.46.0",
|
|
55
|
-
"@styled-icons/evaicons-outline": "10.46.0",
|
|
56
|
-
"@styled-icons/evaicons-solid": "10.46.0",
|
|
57
|
-
"@styled-icons/fa-regular": "10.47.0",
|
|
58
|
-
"@styled-icons/fluentui-system-filled": "10.47.0",
|
|
59
|
-
"@styled-icons/material": "10.47.0",
|
|
60
|
-
"@styled-icons/remix-editor": "^10.46.0",
|
|
61
|
-
"@styled-icons/remix-fill": "10.46.0",
|
|
62
|
-
"@styled-icons/remix-line": "10.46.0",
|
|
63
51
|
"@tanstack/react-table": "^8.21.3",
|
|
64
52
|
"@tanstack/react-virtual": "^3.14.2",
|
|
65
53
|
"allotment": "^1.19.3",
|
|
@@ -89,6 +77,7 @@
|
|
|
89
77
|
"openai": "^5.21.0",
|
|
90
78
|
"posthog-js": "1.298.1",
|
|
91
79
|
"ramda": "0.27.1",
|
|
80
|
+
"re2js": "2.8.6",
|
|
92
81
|
"react": "17.0.2",
|
|
93
82
|
"react-calendar": "^4.0.0",
|
|
94
83
|
"react-dom": "17.0.2",
|
|
@@ -108,7 +97,6 @@
|
|
|
108
97
|
"resize-observer-polyfill": "1.5.1",
|
|
109
98
|
"rxjs": "6.5.5",
|
|
110
99
|
"slim-select": "1.26.0",
|
|
111
|
-
"sql-formatter": "^4.0.2",
|
|
112
100
|
"styled-components": "5.3.5",
|
|
113
101
|
"throttle-debounce": "2.2.1",
|
|
114
102
|
"uplot": "^1.6.31",
|
|
@@ -123,7 +111,6 @@
|
|
|
123
111
|
"@babel/preset-react": "^7.17.12",
|
|
124
112
|
"@babel/preset-typescript": "^7.18.6",
|
|
125
113
|
"@eslint/js": "^9.13.0",
|
|
126
|
-
"@styled-icons/styled-icon": "^10.7.0",
|
|
127
114
|
"@types/babel__core": "^7",
|
|
128
115
|
"@types/draggabilly": "^2.1.6",
|
|
129
116
|
"@types/jquery": "3.5.1",
|