=0;m--)e[T+m]=e[E+m];if(g===0){O=!0;break}}if(e[x--]=a[S--],--_===1){O=!0;break}if(P=_-W1(e[b],a,0,_,_-1,t),P!==0){for(x-=P,S-=P,_-=P,T=x+1,E=S+1,m=0;m=Qf||P>=Qf);if(O)break;M<0&&(M=0),M+=2}if(n=M,n<1&&(n=1),_===1){for(x-=g,b-=g,T=x+1,E=b+1,m=g-1;m>=0;m--)e[T+m]=e[E+m];e[x]=a[S]}else{if(_===0)throw new Error;for(E=x-(_-1),m=0;m<_;m++)e[E+m]=a[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Ug(e,t,n,r){n||(n=0),r||(r=e.length);var i=r-n;if(!(i<2)){var o=0;if(is&&(l=s),wD(e,n,n+l,n+o,t),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(i!==0);a.forceMergeRuns()}}var bD=!1;function j1(){bD||(bD=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function SD(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var wie=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=SD}return e.prototype.traverse=function(t,n){for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(j1(),c.z=0),isNaN(c.z2)&&(j1(),c.z2=0),isNaN(c.zlevel)&&(j1(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,n,r);var p=t.getTextGuideLine();p&&this._updateAndAddDisplayable(p,n,r);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,n,r)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var n=0,r=t.length;n=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),Vm;Vm=vt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function vc(){return new Date().getTime()}var bie=function(e){Ve(t,e);function t(n){var r=e.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return t.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},t.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},t.prototype.removeClip=function(n){if(n.animation){var r=n.prev,i=n.next;r?r.next=i:this._head=i,i?i.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},t.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},t.prototype.update=function(n){for(var r=vc()-this._pausedTime,i=r-this._time,o=this._head;o;){var a=o.next,s=o.step(r,i);s&&(o.ondestroy(),this.removeClip(o)),o=a}this._time=r,n||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&(Vm(r),!n._paused&&n.update())}Vm(r)},t.prototype.start=function(){this._running||(this._time=vc(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=vc(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=vc()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(n,r){r=r||{},this.start();var i=new Vx(n,r.loop);return this.addAnimator(i),i},t}(oa),Sie=300,q1=vt.domSupported,X1=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=ct(e,function(i){var o=i.replace("mouse","pointer");return n.hasOwnProperty(o)?o:i});return{mouse:e,touch:t,pointer:r}}(),xD={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},CD=!1;function nS(e){var t=e.pointerType;return t==="pen"||t==="touch"}function xie(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function K1(e){e&&(e.zrByTouch=!0)}function Cie(e,t){return Vi(e.dom,new Tie(e,t),!0)}function ZF(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var Tie=function(){function e(t,n){this.stopPropagation=Jr,this.stopImmediatePropagation=Jr,this.preventDefault=Jr,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e}(),co={mousedown:function(e){e=Vi(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Vi(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Vi(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Vi(this.dom,e);var t=e.toElement||e.relatedTarget;ZF(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){CD=!0,e=Vi(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){CD||(e=Vi(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Vi(this.dom,e),K1(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),co.mousemove.call(this,e),co.mousedown.call(this,e)},touchmove:function(e){e=Vi(this.dom,e),K1(e),this.handler.processGesture(e,"change"),co.mousemove.call(this,e)},touchend:function(e){e=Vi(this.dom,e),K1(e),this.handler.processGesture(e,"end"),co.mouseup.call(this,e),+new Date-+this.__lastTouchMoment0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,n){if(!this._disposed)return this.handler.findHover(t,n)},e.prototype.on=function(t,n,r){return this._disposed||this.handler.on(t,n,r),this},e.prototype.off=function(t,n){this._disposed||this.handler.off(t,n)},e.prototype.trigger=function(t,n){this._disposed||this.handler.trigger(t,n)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),n=0;n=0;l--)o[l]&&!Rd(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,n[i]=o}}),delete n[MD],n},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(n){this._payload=n},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(n,r){var i=this._componentsMap.get(n);if(i){var o=i[r||0];if(o)return o;if(r==null){for(var a=0;a=t:n==="max"?e<=t:e===t}function Wie(e,t){return e.join(",")===t.join(",")}var ao=G,kd=it,PD=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Q1(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=PD.length;n=0;_--){var m=e[_];if(s||(g=m.data.rawIndexOf(m.stackedByDimension,d)),g>=0){var b=m.data.getByRawIndex(m.stackResultDimension,g);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&p>=0&&b>0||l==="samesign"&&p<=0&&b<0){p=EJ(p,b),y=b;break}}}return r[0]=p,r[1]=y,r})})}var na=function(){function e(){this.group=new Sr,this.uid=j0("viewComponent")}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,i){},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,i){},e.prototype.updateLayout=function(t,n,r,i){},e.prototype.updateVisual=function(t,n,r,i){},e.prototype.toggleBlurSeries=function(t,n,r){},e.prototype.eachRendered=function(t){var n=this.group;n&&n.traverse(t)},e}();Lx(na);L0(na);var FD=Kn(),$D={itemStyle:Ad(YN,!0),lineStyle:Ad(WN,!0)},toe={lineStyle:"stroke",itemStyle:"fill"};function r5(e,t){var n=e.visualStyleMapper||$D[t];return n||(console.warn("Unknown style type '"+t+"'."),$D.itemStyle)}function i5(e,t){var n=e.visualDrawType||toe[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var noe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),o=r5(e,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=i5(e,r),u=a[l],c=wt(u)?u:null,h=a.fill==="auto"||a.stroke==="auto";if(!a[l]||c||h){var p=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[l]||(a[l]=p,n.setVisual("colorFromPalette",!0)),a.fill=a.fill==="auto"||wt(a.fill)?p:a.fill,a.stroke=a.stroke==="auto"||wt(a.stroke)?p:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(d,g){var y=e.getDataParams(g),_=Pe({},a);_[l]=c(y),d.setItemVisual(g,"style",_)}}}},th=new On,roe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=r5(e,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[r]){th.option=l[r];var u=i(th),c=a.ensureUniqueItemVisual(s,"style");Pe(c,u),th.option.decal&&(a.setItemVisual(s,"decal",th.option.decal),th.option.decal.dirty=!0),o in u&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},ioe={performRawSeries:!0,overallReset:function(e){var t=Rt();e.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var i=n.type+"-"+r,o=t.get(i);o||(o={},t.set(i,o)),FD(n).scope=o}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),i={},o=n.getData(),a=FD(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=i5(n,s);o.each(function(u){var c=o.getRawIndex(u);i[c]=u}),r.each(function(u){var c=i[u],h=o.getItemVisual(c,"colorFromPalette");if(h){var p=o.ensureUniqueItemVisual(c,"style"),d=r.getName(u)||u+"",g=r.count();p[l]=n.getColorFromPalette(d,a,g)}})}})}},Uv=Math.PI;function ooe(e,t){t=t||{},nn(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Sr,r=new cr({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new ri({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new cr({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});n.add(o);var a;return t.showSpinner&&(a=new z0({shape:{startAngle:-Uv/2,endAngle:-Uv/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:Uv*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:Uv*3/2}).delay(300).start("circularInOut"),n.add(a)),n.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&a.setShape({cx:u,cy:c}),o.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var o5=function(){function e(t,n,r,i){this._stageTaskMap=Rt(),this.ecInstance=t,this.api=n,r=this._dataProcessorHandlers=r.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=r.concat(i)}return e.prototype.restoreData=function(t,n){t.restoreData(n),this._stageTaskMap.each(function(r){var i=r.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,n){if(t.__pipeline){var r=this._pipelineMap.get(t.__pipeline.id),i=r.context,o=!n&&r.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>r.blockIndex,a=o?r.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/a):null;return{step:a,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,n){var r=this._pipelineMap.get(t.uid),i=t.getData(),o=i.count(),a=r.progressiveEnabled&&n.incrementalPrepareRender&&o>=r.threshold,s=t.get("large")&&o>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?o:null;t.pipelineContext=r.context={progressiveRender:a,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var n=this,r=n._pipelineMap=Rt();t.eachSeries(function(i){var o=i.getProgressive(),a=i.uid;r.set(a,{id:a,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:o&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,n=this.api.getModel(),r=this.api;G(this._allHandlers,function(i){var o=t.get(i.uid)||t.set(i.uid,{}),a="";Ya(!(i.reset&&i.overallReset),a),i.reset&&this._createSeriesStageTask(i,o,n,r),i.overallReset&&this._createOverallStageTask(i,o,n,r)},this)},e.prototype.prepareView=function(t,n,r,i){var o=t.renderTask,a=o.context;a.model=n,a.ecModel=r,a.api=i,o.__block=!t.incrementalPrepareRender,this._pipe(n,o)},e.prototype.performDataProcessorTasks=function(t,n){this._performStageTasks(this._dataProcessorHandlers,t,n,{block:!0})},e.prototype.performVisualTasks=function(t,n,r){this._performStageTasks(this._visualHandlers,t,n,r)},e.prototype._performStageTasks=function(t,n,r,i){i=i||{};var o=!1,a=this;G(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=a._stageTaskMap.get(l.uid),h=c.seriesTaskMap,p=c.overallTask;if(p){var d,g=p.agentStubMap;g.each(function(_){s(i,_)&&(_.dirty(),d=!0)}),d&&p.dirty(),a.updatePayload(p,r);var y=a.getPerformArgs(p,i.block);g.each(function(_){_.perform(y)}),p.perform(y)&&(o=!0)}else h&&h.each(function(_,m){s(i,_)&&_.dirty();var b=a.getPerformArgs(_,i.block);b.skip=!l.performRawSeries&&n.isSeriesFiltered(_.context.model),a.updatePayload(_,r),_.perform(b)&&(o=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=o||this.unfinished},e.prototype.performSeriesTasks=function(t){var n;t.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var n=t.tail;do{if(n.__block){t.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},e.prototype.updatePayload=function(t,n){n!=="remain"&&(t.context.payload=n)},e.prototype._createSeriesStageTask=function(t,n,r,i){var o=this,a=n.seriesTaskMap,s=n.seriesTaskMap=Rt(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,i).each(c);function c(h){var p=h.uid,d=s.set(p,a&&a.get(p)||td({plan:coe,reset:foe,count:doe}));d.context={model:h,ecModel:r,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(h,d)}},e.prototype._createOverallStageTask=function(t,n,r,i){var o=this,a=n.overallTask=n.overallTask||td({reset:aoe});a.context={ecModel:r,api:i,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=Rt(),u=t.seriesType,c=t.getTargetSeries,h=!0,p=!1,d="";Ya(!t.createOnAllSeries,d),u?r.eachRawSeriesByType(u,g):c?c(r,i).each(g):(h=!1,G(r.getSeries(),g));function g(y){var _=y.uid,m=l.set(_,s&&s.get(_)||(p=!0,td({reset:soe,onDirty:uoe})));m.context={model:y,overallProgress:h},m.agent=a,m.__block=h,o._pipe(y,m)}p&&a.dirty()},e.prototype._pipe=function(t,n){var r=t.uid,i=this._pipelineMap.get(r);!i.head&&(i.head=n),i.tail&&i.tail.pipe(n),i.tail=n,n.__idxInPipeline=i.count++,n.__pipeline=i},e.wrapStageHandler=function(t,n){return wt(t)&&(t={overallReset:t,seriesType:poe(t)}),t.uid=j0("stageHandler"),n&&(t.visualType=n),t},e}();function aoe(e){e.overallReset(e.ecModel,e.api,e.payload)}function soe(e){return e.overallProgress&&loe}function loe(){this.agent.dirty(),this.getDownstream().dirty()}function uoe(){this.agent&&this.agent.dirty()}function coe(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function foe(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Nr(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?ct(t,function(n,r){return a5(r)}):hoe}var hoe=a5(0);function a5(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o0&&d===u.length-p.length){var g=u.slice(0,d);g!=="data"&&(n.mainType=g,n[p.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:n,dataQuery:r,otherQuery:i}},e.prototype.filter=function(t,n){var r=this.eventInfo;if(!r)return!0;var i=r.targetEl,o=r.packedEvent,a=r.model,s=r.view;if(!a||!s)return!0;var l=n.cptQuery,u=n.dataQuery;return c(l,a,"mainType")&&c(l,a,"subType")&&c(l,a,"index","componentIndex")&&c(l,a,"name")&&c(l,a,"id")&&c(u,o,"name")&&c(u,o,"dataIndex")&&c(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,n.otherQuery,i,o));function c(h,p,d,g){return h[d]==null||p[g||d]===h[d]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),iS=["symbol","symbolSize","symbolRotate","symbolOffset"],UD=iS.concat(["symbolKeepAspect"]),moe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},o=!1,a=0;a=0&&nu(l)?l:.5;var u=e.createRadialGradient(a,s,0,a,s,l);return u}function oS(e,t,n){for(var r=t.type==="radial"?Toe(e,t,n):Coe(e,t,n),i=t.colorStops,o=0;o0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Tn(e)?[e]:ze(e)?e:null}function c5(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&Aoe(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=ct(n,function(o){return o/i}),r/=i)}return[n,r]}var Moe=new mu(!0);function Um(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function zD(e){return typeof e=="string"&&e!=="none"}function zm(e){var t=e.fill;return t!=null&&t!=="none"}function GD(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function WD(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function aS(e,t,n){var r=Kk(t.image,t.__image,n);if(O0(r)){var i=e.createPattern(r,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*UZ),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}function Roe(e,t,n,r){var i,o=Um(n),a=zm(n),s=n.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||Moe,h=t.__dirty;if(!r){var p=n.fill,d=n.stroke,g=a&&!!p.colorStops,y=o&&!!d.colorStops,_=a&&!!p.image,m=o&&!!d.image,b=void 0,S=void 0,x=void 0,E=void 0,T=void 0;(g||y)&&(T=t.getBoundingRect()),g&&(b=h?oS(e,p,T):t.__canvasFillGradient,t.__canvasFillGradient=b),y&&(S=h?oS(e,d,T):t.__canvasStrokeGradient,t.__canvasStrokeGradient=S),_&&(x=h||!t.__canvasFillPattern?aS(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),m&&(E=h||!t.__canvasStrokePattern?aS(e,d,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),g?e.fillStyle=b:_&&(x?e.fillStyle=x:a=!1),y?e.strokeStyle=S:m&&(E?e.strokeStyle=E:o=!1)}var M=t.getGlobalScale();c.setScale(M[0],M[1],t.segmentIgnoreThreshold);var D,P;e.setLineDash&&n.lineDash&&(i=c5(t),D=i[0],P=i[1]);var O=!0;(u||h&uc)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),O=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),O&&c.rebuildPath(e,l?s:1),D&&(e.setLineDash(D),e.lineDashOffset=P),r||(n.strokeFirst?(o&&WD(e,n),a&&GD(e,n)):(a&&GD(e,n),o&&WD(e,n))),D&&e.setLineDash([])}function Doe(e,t,n){var r=t.__image=Kk(n.image,t.__image,t,t.onload);if(!(!r||!O0(r))){var i=n.x||0,o=n.y||0,a=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(a==null&&s!=null?a=s*l:s==null&&a!=null?s=a/l:a==null&&s==null&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){var u=n.sx,c=n.sy,h=a-u,p=s-c;e.drawImage(r,u,c,h,p,i,o,a,s)}else e.drawImage(r,i,o,a,s)}}function Ioe(e,t,n){var r,i=n.text;if(i!=null&&(i+=""),i){e.font=n.font||vu,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(r=c5(t),o=r[0],a=r[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(Um(n)&&e.strokeText(i,n.x,n.y),zm(n)&&e.fillText(i,n.x,n.y)):(zm(n)&&e.fillText(i,n.x,n.y),Um(n)&&e.strokeText(i,n.x,n.y)),o&&e.setLineDash([])}}var YD=["shadowBlur","shadowOffsetX","shadowOffsetY"],jD=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function f5(e,t,n,r,i){var o=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){Zr(e,i),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?uu.opacity:a}(r||t.blend!==n.blend)&&(o||(Zr(e,i),o=!0),e.globalCompositeOperation=t.blend||uu.blend);for(var s=0;s0&&n.unfinished);n.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(n,r,i){if(!this[gr]){if(this._disposed){this.id;return}var o,a,s;if(it(r)&&(i=r.lazyUpdate,o=r.silent,a=r.replaceMerge,s=r.transition,r=r.notMerge),this[gr]=!0,!this._model||r){var l=new Hie(this._api),u=this._theme,c=this._model=new wC;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:a},uS);var h={seriesTransition:s,optionChanged:!0};if(i)this[Wr]={silent:o,updateParams:h},this[gr]=!1,this.getZr().wakeUp();else{try{tc(this),xs.update.call(this,null,h)}catch(p){throw this[Wr]=null,this[gr]=!1,p}this._ssr||this._zr.flush(),this[Wr]=null,this[gr]=!1,nh.call(this,o),rh.call(this,o)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||vt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},t.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;return r.renderToString({useViewBox:n.useViewBox})},t.prototype.getSvgDataURL=function(){if(vt.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return G(r,function(i){i.stopAnimation(null,!0)}),n.painter.toDataURL()}},t.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var r=n.excludeComponents,i=this._model,o=[],a=this;G(r,function(l){i.eachComponent({mainType:l},function(u){var c=a._componentsMap[u.__viewId];c.group.ignore||(o.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return G(o,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var r=n.type==="svg",i=this.group,o=Math.min,a=Math.max,s=1/0;if(lI[i]){var l=s,u=s,c=-s,h=-s,p=[],d=n&&n.pixelRatio||this.getDevicePixelRatio();G(rd,function(S,x){if(S.group===i){var E=r?S.getZr().painter.getSvgDom().innerHTML:S.renderToCanvas(Nt(n)),T=S.getDom().getBoundingClientRect();l=o(T.left,l),u=o(T.top,u),c=a(T.right,c),h=a(T.bottom,h),p.push({dom:E,left:T.left,top:T.top})}}),l*=d,u*=d,c*=d,h*=d;var g=c-l,y=h-u,_=af.createCanvas(),m=ED(_,{renderer:r?"svg":"canvas"});if(m.resize({width:g,height:y}),r){var b="";return G(p,function(S){var x=S.left-l,E=S.top-u;b+=''+S.dom+""}),m.painter.getSvgRoot().innerHTML=b,n.connectedBackgroundColor&&m.painter.setBackgroundColor(n.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return n.connectedBackgroundColor&&m.add(new cr({shape:{x:0,y:0,width:g,height:y},style:{fill:n.connectedBackgroundColor}})),G(p,function(S){var x=new ol({style:{x:S.left*d-l,y:S.top*d-u,image:S.dom}});m.add(x)}),m.refreshImmediately(),_.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r){return iw(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return iw(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var i=this._model,o,a=x1(i,n);return G(a,function(s,l){l.indexOf("Models")>=0&&G(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)o=o||!!c.containPoint(r);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(o=o||h.containPoint(r,u))}},this)},this),!!o},t.prototype.getVisual=function(n,r){var i=this._model,o=x1(i,n,{defaultMainType:"series"}),a=o.seriesModel,s=a.getData(),l=o.hasOwnProperty("dataIndexInside")?o.dataIndexInside:o.hasOwnProperty("dataIndex")?s.indexOfRawIndex(o.dataIndex):null;return l!=null?_oe(s,l,r):woe(s,r)},t.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},t.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},t.prototype._initEvents=function(){var n=this;G(nae,function(r){var i=function(o){var a=n.getModel(),s=o.target,l,u=r==="globalout";if(u?l={}:s&&Ch(s,function(g){var y=fn(g);if(y&&y.dataIndex!=null){var _=y.dataModel||a.getSeriesByIndex(y.seriesIndex);return l=_&&_.getDataParams(y.dataIndex,y.dataType,s)||{},!0}else if(y.eventData)return l=Pe({},y.eventData),!0},!0),l){var c=l.componentType,h=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",h=l.seriesIndex);var p=c&&h!=null&&a.getComponent(c,h),d=p&&n[p.mainType==="series"?"_chartsMap":"_componentsMap"][p.__viewId];l.event=o,l.type=r,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:p,view:d},n.trigger(r,l)}};i.zrEventfulCallAtLast=!0,n._zr.on(r,i,n)}),G(nd,function(r,i){n._messageCenter.on(i,function(o){this.trigger(i,o)},n)}),G(["selectchanged"],function(r){n._messageCenter.on(r,function(i){this.trigger(r,i)},n)}),tie(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var n=this.getDom();n&&bN(this.getDom(),xC,"");var r=this,i=r._api,o=r._model;G(r._componentsViews,function(a){a.dispose(o,i)}),G(r._chartsViews,function(a){a.dispose(o,i)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete rd[r.id]},t.prototype.resize=function(n){if(!this[gr]){if(this._disposed){this.id;return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var i=r.resetOption("media"),o=n&&n.silent;this[Wr]&&(o==null&&(o=this[Wr].silent),i=!0,this[Wr]=null),this[gr]=!0;try{i&&tc(this),xs.update.call(this,{type:"resize",animation:Pe({duration:0},n&&n.animation)})}catch(a){throw this[gr]=!1,a}this[gr]=!1,nh.call(this,o),rh.call(this,o)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(it(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!cS[n]){var i=cS[n](this._api,r),o=this._zr;this._loadingFX=i,o.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(n){var r=Pe({},n);return r.type=nd[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(it(r)||(r={silent:!!r}),!!Gm[n.type]&&this._model){if(this[gr]){this._pendingActions.push(n);return}var i=r.silent;aw.call(this,n,i);var o=r.flush;o?this._zr.flush():o!==!1&&vt.browser.weChat&&this._throttledZrFlush(),nh.call(this,i),rh.call(this,i)}},t.prototype.updateLabelLayout=function(){fo.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(n){if(this._disposed){this.id;return}var r=n.seriesIndex,i=this.getModel(),o=i.getSeriesByIndex(r);o.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){tc=function(h){var p=h._scheduler;p.restorePipelines(h._model),p.prepareStageTasks(),rw(h,!0),rw(h,!1),p.plan()},rw=function(h,p){for(var d=h._model,g=h._scheduler,y=p?h._componentsViews:h._chartsViews,_=p?h._componentsMap:h._chartsMap,m=h._zr,b=h._api,S=0;Sp.get("hoverLayerThreshold")&&!vt.node&&!vt.worker&&p.eachSeries(function(_){if(!_.preventUsingHoverLayer){var m=h._chartsMap[_.__viewId];m.__alive&&m.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function a(h,p){var d=h.get("blendMode")||null;p.eachRendered(function(g){g.isGroup||(g.style.blend=d)})}function s(h,p){if(!h.preventAutoZ){var d=h.get("z")||0,g=h.get("zlevel")||0;p.eachRendered(function(y){return l(y,d,g,-1/0),!0})}}function l(h,p,d,g){var y=h.getTextContent(),_=h.getTextGuideLine(),m=h.isGroup;if(m)for(var b=h.childrenRef(),S=0;S0?{duration:y,delay:d.get("delay"),easing:d.get("easing")}:null;p.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Qh(m))return;if(m instanceof pn&&fee(m),m.__dirty){var b=m.prevStates;b&&m.useStates(b)}if(g){m.stateTransition=_;var S=m.getTextContent(),x=m.getTextGuideLine();S&&(S.stateTransition=_),x&&(x.stateTransition=_)}m.__dirty&&i(m)}})}aI=function(h){return new(function(p){Ve(d,p);function d(){return p!==null&&p.apply(this,arguments)||this}return d.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},d.prototype.getComponentByElement=function(g){for(;g;){var y=g.__ecComponentInfo;if(y!=null)return h._model.getComponent(y.mainType,y.index);g=g.parent}},d.prototype.enterEmphasis=function(g,y){Im(g,y),Fi(h)},d.prototype.leaveEmphasis=function(g,y){Pm(g,y),Fi(h)},d.prototype.enterBlur=function(g){tee(g),Fi(h)},d.prototype.leaveBlur=function(g){EN(g),Fi(h)},d.prototype.enterSelect=function(g){AN(g),Fi(h)},d.prototype.leaveSelect=function(g){MN(g),Fi(h)},d.prototype.getModel=function(){return h.getModel()},d.prototype.getViewOfComponentModel=function(g){return h.getViewOfComponentModel(g)},d.prototype.getViewOfSeriesModel=function(g){return h.getViewOfSeriesModel(g)},d}(e5))(h)},E5=function(h){function p(d,g){for(var y=0;y=0)){uI.push(n);var o=o5.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function P5(e,t){cS[e]=t}function cae(e,t,n){var r=Hoe("registerMap");r&&r(e,t,n)}var fae=$ne;bu(bC,noe);bu(ty,roe);bu(ty,ioe);bu(bC,moe);bu(ty,yoe);bu(w5,Boe);D5(n5);I5(Goe,Jie);P5("default",ooe);cf({type:cu,event:cu,update:cu},Jr);cf({type:Ng,event:Ng,update:Ng},Jr);cf({type:Xh,event:Xh,update:Xh},Jr);cf({type:Fg,event:Fg,update:Fg},Jr);cf({type:Kh,event:Kh,update:Kh},Jr);R5("light",voe);R5("dark",u5);var cI=[],hae={registerPreprocessor:D5,registerProcessor:I5,registerPostInit:aae,registerPostUpdate:sae,registerUpdateLifecycle:CC,registerAction:cf,registerCoordinateSystem:lae,registerLayout:uae,registerVisual:bu,registerTransform:fae,registerLoading:P5,registerMap:cae,registerImpl:Voe,PRIORITY:Joe,ComponentModel:on,ComponentView:na,SeriesModel:Zs,ChartView:Ko,registerComponentModel:function(e){on.registerClass(e)},registerComponentView:function(e){na.registerClass(e)},registerSeriesModel:function(e){Zs.registerClass(e)},registerChartView:function(e){Ko.registerClass(e)},registerSubTypeDefaulter:function(e,t){on.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Pie(e,t)}};function Qs(e){if(ze(e)){G(e,function(t){Qs(t)});return}an(cI,e)>=0||(cI.push(e),wt(e)&&(e={install:e}),e.install(hae))}var dae=function(e){Ve(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(on),pae=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),fS=function(e){Ve(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",yo).models[0]},t.type="cartesian2dAxis",t}(on);ia(fS,pae);var L5={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},vae=Kt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},L5),EC=Kt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},L5),gae=Kt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},EC),mae=nn({logBase:10},EC);const yae={category:vae,value:EC,time:gae,log:mae};var _ae=0,hS=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++_ae}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&ct(r,wae);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var n,r=this._needCollect;if(!qe(t)&&!r)return t;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=t,n;var i=this._getOrCreateMap();return n=i.get(t),n==null&&(r?(n=this.categories.length,this.categories[n]=t,i.set(t,n)):n=NaN),n},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Rt(this.categories))},e}();function wae(e){return it(e)&&e.value!=null?e.value:e+""}var bae={value:1,category:1,time:1,log:1};function fI(e,t,n,r){G(bae,function(i,o){var a=Kt(Kt({},yae[o],!0),r,!0),s=function(l){Ve(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+o,c}return u.prototype.mergeDefaultAndTheme=function(c,h){var p=Ld(this),d=p?ey(c):{},g=h.getTheme();Kt(c,g.get(o+"Axis")),Kt(c,this.getDefaultOption()),c.type=hI(c),p&&Zc(c,d,p)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=hS.createByAxisModel(this))},u.prototype.getCategories=function(c){var h=this.option;if(h.type==="category")return c?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+o,u.defaultOption=a,u}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",hI)}function hI(e){return e.type||(e.data?"category":"value")}var sa=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var n=this._extent;t[0]n[1]&&(n[1]=t[1])},e.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,n){var r=this._extent;isNaN(t)||(r[0]=t),isNaN(n)||(r[1]=n)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();L0(sa);function dS(e){return e.type==="interval"||e.type==="log"}function Sae(e,t,n,r){var i={},o=e[1]-e[0],a=i.interval=gN(o/t);n!=null&&ar&&(a=i.interval=r);var s=i.intervalPrecision=O5(a),l=i.niceTickExtent=[Wn(Math.ceil(e[0]/a)*a,s),Wn(Math.floor(e[1]/a)*a,s)];return xae(l,e),i}function lw(e){var t=Math.pow(10,Hx(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Wn(n*t)}function O5(e){return ka(e)+2}function dI(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function xae(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),dI(e,0,t),dI(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function ny(e,t){return e>=t[0]&&e<=t[1]}function ry(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function iy(e,t){return e*(t[1]-t[0])+t[0]}var AC=function(e){Ve(t,e);function t(n){var r=e.call(this,n)||this;r.type="ordinal";var i=r.getSetting("ordinalMeta");return i||(i=new hS({})),ze(i)&&(i=new hS({categories:ct(i,function(o){return it(o)?o.value:o})})),r._ordinalMeta=i,r._extent=r.getSetting("extent")||[0,i.categories.length-1],r}return t.prototype.parse=function(n){return n==null?NaN:qe(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),ny(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),ry(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(iy(n,this._extent)),this.getRawOrdinalNumber(n)},t.prototype.getTicks=function(){for(var n=[],r=this._extent,i=r[0];i<=r[1];)n.push({value:i}),i++;return n},t.prototype.getMinorTicks=function(n){},t.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,i=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);a=0&&n=0&&n=n},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(sa);sa.registerClass(AC);var $l=Wn,ff=function(e){Ve(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return ny(n,this._extent)},t.prototype.normalize=function(n){return ry(n,this._extent)},t.prototype.scale=function(n){return iy(n,this._extent)},t.prototype.setExtent=function(n,r){var i=this._extent;isNaN(n)||(i[0]=parseFloat(n)),isNaN(r)||(i[1]=parseFloat(r))},t.prototype.unionExtent=function(n){var r=this._extent;n[0]r[1]&&(r[1]=n[1]),this.setExtent(r[0],r[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=O5(n)},t.prototype.getTicks=function(n){var r=this._interval,i=this._extent,o=this._niceExtent,a=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;i[0]l)return[];var c=s.length?s[s.length-1].value:o[1];return i[1]>c&&(n?s.push({value:$l(c+r,a)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(n){for(var r=this.getTicks(!0),i=[],o=this.getExtent(),a=1;ao[0]&&d>>1;e[i][1]i&&(this._approxInterval=i);var s=qv.length,l=Math.min(Cae(qv,this._approxInterval,0,s),s-1);this._interval=qv[l][1],this._minLevelUnit=qv[Math.max(l-1,0)][0]},t.prototype.parse=function(n){return Tn(n)?n:+ja(n)},t.prototype.contain=function(n){return ny(this.parse(n),this._extent)},t.prototype.normalize=function(n){return ry(this.parse(n),this._extent)},t.prototype.scale=function(n){return iy(n,this._extent)},t.type="time",t}(ff),qv=[["second",hC],["minute",dC],["hour",Jh],["quarter-day",Jh*6],["half-day",Jh*12],["day",qi*1.2],["half-week",qi*3.5],["week",qi*7],["month",qi*31],["quarter",qi*95],["half-year",qR/2],["year",qR]];function Tae(e,t,n,r){var i=ja(t),o=ja(n),a=function(g){return KR(i,g,r)===KR(o,g,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},p=function(){return h()&&a("second")},d=function(){return p()&&a("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return p();case"millisecond":return d()}}function Eae(e,t){return e/=qi,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Aae(e){var t=30*qi;return e/=t,e>6?6:e>3?3:e>2?2:1}function Mae(e){return e/=Jh,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function pI(e,t){return e/=t?dC:hC,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Rae(e){return gN(e)}function Dae(e,t,n){var r=new Date(e);switch(Nc(t)){case"year":case"month":r[mF(n)](0);case"day":r[yF(n)](1);case"hour":r[_F(n)](0);case"minute":r[wF(n)](0);case"second":r[bF(n)](0),r[SF(n)](0)}return r.getTime()}function Iae(e,t,n,r){var i=1e4,o=vF,a=0;function s(O,k,H,te,W,q,j){for(var ie=new Date(k),J=k,ce=ie[te]();J1&&q===0&&H.unshift({value:H[0].value-J})}}for(var q=0;q=r[0]&&b<=r[1]&&h++)}var S=(r[1]-r[0])/t;if(h>S*1.5&&p>S/1.5||(u.push(_),h>S||e===o[d]))break}c=[]}}}for(var x=Or(ct(u,function(O){return Or(O,function(k){return k.value>=r[0]&&k.value<=r[1]&&!k.notAdd})}),function(O){return O.length>0}),E=[],T=x.length-1,d=0;d0;)o*=10;var s=[Wn(Oae(r[0]/o)*o),Wn(Lae(r[1]/o)*o)];this._interval=o,this._niceExtent=s}},t.prototype.calcNiceExtent=function(n){id.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return n=so(n)/so(this.base),ny(n,this._extent)},t.prototype.normalize=function(n){return n=so(n)/so(this.base),ry(n,this._extent)},t.prototype.scale=function(n){return n=iy(n,this._extent),Xv(this.base,n)},t.type="log",t}(sa),N5=MC.prototype;N5.getMinorTicks=id.getMinorTicks;N5.getLabel=id.getLabel;function Kv(e,t){return Pae(e,ka(t))}sa.registerClass(MC);var kae=function(){function e(t,n,r){this._prepareParams(t,n,r)}return e.prototype._prepareParams=function(t,n,r){r[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var p=this._determinedMin,d=this._determinedMax;return p!=null&&(s=p,u=!0),d!=null&&(l=d,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:h}},e.prototype.modifyDataMinMax=function(t,n){this[Fae[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=Nae[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e}(),Nae={min:"_determinedMin",max:"_determinedMax"},Fae={min:"_dataMin",max:"_dataMax"};function $ae(e,t,n){var r=e.rawExtentInfo;return r||(r=new kae(e,t,n),e.rawExtentInfo=r,r)}function Zv(e,t){return t==null?null:bm(t)?NaN:e.parse(t)}function F5(e,t){var n=e.type,r=$ae(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,o=r.max,a=t.ecModel;if(a&&n==="time"){var s=qre("bar",a),l=!1;if(G(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var u=Kre(s),c=Bae(i,o,t,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function Bae(e,t,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=Qre(r,n.axis);if(a===void 0)return{min:e,max:t};var s=1/0;G(a,function(d){s=Math.min(d.offset,s)});var l=-1/0;G(a,function(d){l=Math.max(d.offset+d.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,h=1-(s+l)/o,p=c/h-c;return t+=p*(l/u),e-=p*(s/u),{min:e,max:t}}function gI(e,t){var n=t,r=F5(e,n),i=r.extent,o=n.get("splitNumber");e instanceof MC&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l=a==="interval"||a==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function Vae(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new AC({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new k5({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(sa.getClass(t)||ff)}}function Hae(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function hf(e){var t=e.getLabelModel().get("formatter"),n=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(r){return function(i,o){return e.scale.getFormattedLabel(i,o,r)}}(t):qe(t)?function(r){return function(i){var o=e.scale.getLabel(i),a=r.replace("{value}",o??"");return a}}(t):wt(t)?function(r){return function(i,o){return n!=null&&(o=i.value-n),r(RC(e,i),o,i.level!=null?{level:i.level}:null)}}(t):function(r){return e.scale.getLabel(r)}}function RC(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function Uae(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,i,o=n.getExtent();n instanceof AC?i=n.count():(r=n.getTicks(),i=r.length);var a=e.getLabelModel(),s=hf(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function jae(e){var t=e.getLabelModel().get("customValues");if(t){var n=hf(e);return{labels:B5(e,t).map(function(r){var i={value:r};return{formattedLabel:n(i),rawLabel:e.scale.getLabel(i),tickValue:r}})}}return e.type==="category"?Xae(e):Zae(e)}function qae(e,t){var n=e.getTickModel().get("customValues");return n?{ticks:B5(e,n)}:e.type==="category"?Kae(e,t):{ticks:ct(e.scale.getTicks(),function(r){return r.value})}}function Xae(e){var t=e.getLabelModel(),n=V5(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function V5(e,t){var n=H5(e,"labels"),r=DC(t),i=U5(n,r);if(i)return i;var o,a;return wt(r)?o=W5(e,r):(a=r==="auto"?Qae(e):r,o=G5(e,a)),z5(n,r,{labels:o,labelCategoryInterval:a})}function Kae(e,t){var n=H5(e,"ticks"),r=DC(t),i=U5(n,r);if(i)return i;var o,a;if((!t.get("show")||e.scale.isBlank())&&(o=[]),wt(r))o=W5(e,r,!0);else if(r==="auto"){var s=V5(e,e.getLabelModel());a=s.labelCategoryInterval,o=ct(s.labels,function(l){return l.tickValue})}else a=r,o=G5(e,a,!0);return z5(n,r,{ticks:o,tickCategoryInterval:a})}function Zae(e){var t=e.scale.getTicks(),n=hf(e);return{labels:ct(t,function(r,i){return{level:r.level,formattedLabel:n(r,i),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function H5(e,t){return $d(e)[t]||($d(e)[t]=[])}function U5(e,t){for(var n=0;n40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(r)),h=Math.abs(u*Math.sin(r)),p=0,d=0;l<=o[1];l+=s){var g=0,y=0,_=Fx(n({value:l}),t.font,"center","top");g=_.width*1.3,y=_.height*1.3,p=Math.max(p,g,7),d=Math.max(d,y,7)}var m=p/c,b=d/h;isNaN(m)&&(m=1/0),isNaN(b)&&(b=1/0);var S=Math.max(0,Math.floor(Math.min(m,b))),x=$d(e.model),E=e.getExtent(),T=x.lastAutoInterval,M=x.lastTickCount;return T!=null&&M!=null&&Math.abs(T-S)<=1&&Math.abs(M-a)<=1&&T>S&&x.axisExtent0===E[0]&&x.axisExtent1===E[1]?S=T:(x.lastTickCount=a,x.lastAutoInterval=S,x.axisExtent0=E[0],x.axisExtent1=E[1]),S}function ese(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function G5(e,t,n){var r=hf(e),i=e.scale,o=i.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=o[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=$5(e),p=a.get("showMinLabel")||h,d=a.get("showMaxLabel")||h;p&&u!==o[0]&&y(o[0]);for(var g=u;g<=o[1];g+=l)y(g);d&&g-l!==o[1]&&y(o[1]);function y(_){var m={value:_};s.push(n?_:{formattedLabel:r(m),rawLabel:i.getLabel(m),tickValue:_})}return s}function W5(e,t,n){var r=e.scale,i=hf(e),o=[];return G(r.getTicks(),function(a){var s=r.getLabel(a),l=a.value;t(a.value,s)&&o.push(n?l:{formattedLabel:i(a),rawLabel:s,tickValue:l})}),o}var yI=[0,1],tse=function(){function e(t,n,r){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=n,this._extent=r||[0,0]}return e.prototype.contain=function(t){var n=this._extent,r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return t>=r&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return TJ(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,n){var r=this._extent;r[0]=t,r[1]=n},e.prototype.dataToCoord=function(t,n){var r=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(r=r.slice(),_I(r,i.count())),iR(t,yI,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(r=r.slice(),_I(r,i.count()));var o=iR(t,r,yI,n);return this.scale.scale(o)},e.prototype.pointToData=function(t,n){},e.prototype.getTicksCoords=function(t){t=t||{};var n=t.tickModel||this.getTickModel(),r=qae(this,n),i=r.ticks,o=ct(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),a=n.get("alignWithLabel");return nse(this,o,a,t.clamp),o},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),n=t.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),i=ct(r,function(o){return ct(o,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this);return i},e.prototype.getViewLabels=function(){return jae(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,n=this.scale.getExtent(),r=n[1]-n[0]+(this.onBand?1:0);r===0&&(r=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/r},e.prototype.calculateCategoryInterval=function(){return Jae(this)},e}();function _I(e,t){var n=e[1]-e[0],r=t,i=n/r/2;e[0]+=i,e[1]-=i}function nse(e,t,n,r){var i=t.length;if(!e.onBand||n||!i)return;var o=e.getExtent(),a,s;if(i===1)t[0].coord=o[0],a=t[1]={coord:o[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;G(t,function(d){d.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[i-1].tickValue,a={coord:t[i-1].coord+u*s},t.push(a)}var h=o[0]>o[1];p(t[0].coord,o[0])&&(r?t[0].coord=o[0]:t.shift()),r&&p(o[0],t[0].coord)&&t.unshift({coord:o[0]}),p(o[1],a.coord)&&(r?a.coord=o[1]:t.pop()),r&&p(a.coord,o[1])&&t.push({coord:o[1]});function p(d,g){return d=Wn(d),g=Wn(g),h?d>g:dr[1]&&r.reverse(),r},t.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},t.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},t}(tse);function vS(e,t,n){n=n||{};var r=e.coordinateSystem,i=t.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=r.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],p={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get("offset")||0,g=u==="x"?[h[2]-d,h[3]+d]:[h[0]-d,h[1]+d];if(a){var y=a.toGlobalCoord(a.dataToCoord(0));g[p.onZero]=Math.max(Math.min(y,g[1]),g[0])}o.position=[u==="y"?g[p[l]]:h[0],u==="x"?g[p[l]]:h[3]],o.rotation=Math.PI/2*(u==="x"?0:1);var _={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=_[s],o.labelOffset=a?g[p[s]]-g[p.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),Ed(n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var m=t.get(["axisLabel","rotate"]);return o.labelRotate=l==="top"?-m:m,o.z2=1,o}function wI(e){return e.get("coordinateSystem")==="cartesian2d"}function bI(e){var t={xAxisModel:null,yAxisModel:null};return G(t,function(n,r){var i=r.replace(/Model$/,""),o=e.getReferringComponents(i,yo).models[0];t[r]=o}),t}var uw=Math.log;function ise(e,t,n){var r=ff.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=F5(e,t),u=l.extent,c=l.fixMin,h=l.fixMax;if(e.type==="log"){var p=uw(e.base);u=[uw(u[0])/p,uw(u[1])/p]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var d=r.getExtent.call(e);c&&(u[0]=d[0]),h&&(u[1]=d[1]);var g=r.getInterval.call(e),y=u[0],_=u[1];if(c&&h)g=(_-y)/a;else if(c)for(_=u[0]+g*a;_u[0]&&isFinite(y)&&isFinite(u[0]);)g=lw(g),y=u[1]-g*a;else{var m=e.getTicks().length-1;m>a&&(g=lw(g));var b=g*a;_=Math.ceil(u[1]/g)*g,y=Wn(_-b),y<0&&u[0]>=0?(y=0,_=Wn(b)):_>0&&u[1]<=0&&(_=0,y=-Wn(b))}var S=(i[0].value-o[0].value)/s,x=(i[a].value-o[a].value)/s;r.setExtent.call(e,y+g*S,_+g*x),r.setInterval.call(e,g),(S||x)&&r.setNiceExtent.call(e,y+g,_-g)}var ose=function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=pS,this._initCartesian(t,n,r),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,n){var r=this._axesMap;this._updateScale(t,this.model);function i(a){var s,l=Cn(a),u=l.length;if(u){for(var c=[],h=u-1;h>=0;h--){var p=+l[h],d=a[p],g=d.model,y=d.scale;dS(y)&&g.get("alignTicks")&&g.get("interval")==null?c.push(d):(gI(y,g),dS(y)&&(s=d))}c.length&&(s||(s=c.pop(),gI(s.scale,s.model)),G(c,function(_){ise(_.scale,_.model,s.scale)}))}}i(r.x),i(r.y);var o={};G(r.x,function(a){SI(r,"y",a,o)}),G(r.y,function(a){SI(r,"x",a,o)}),this.resize(this.model,n)},e.prototype.resize=function(t,n,r){var i=t.getBoxLayoutParams(),o=!r&&t.get("containLabel"),a=$m(i,{width:n.getWidth(),height:n.getHeight()});this._rect=a;var s=this._axesList;l(),o&&(G(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=Uae(u);if(c){var h=u.isHorizontal()?"height":"width",p=u.model.get(["axisLabel","margin"]);a[h]-=c[h]+p,u.position==="top"?a.y+=c.height+p:u.position==="left"&&(a.x+=c.width+p)}}}),l()),G(this._coordsList,function(u){u.calcAffineTransform()});function l(){G(s,function(u){var c=u.isHorizontal(),h=c?[0,a.width]:[0,a.height],p=u.inverse?1:0;u.setExtent(h[p],h[1-p]),ase(u,c?a.x:a.y)})}},e.prototype.getAxis=function(t,n){var r=this._axesMap[t];if(r!=null)return r[n||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,n){if(t!=null&&n!=null){var r="x"+t+"y"+n;return this._coordsMap[r]}it(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,o=this._coordsList;i0?"top":"bottom",o="center"):Rm(i-$s)?(a=r>0?"bottom":"top",o="center"):(a="middle",i>0&&i<$s?o=r>0?"right":"left":o=r>0?"left":"right"),{rotation:i,textAlign:o,textVerticalAlign:a}},e.makeAxisEventDataBase=function(t){var n={componentType:t.mainType,componentIndex:t.componentIndex};return n[t.mainType+"Index"]=t.componentIndex,n},e.isLabelSilent=function(t){var n=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||n&&n.show)},e}(),CI={axisLine:function(e,t,n,r){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var o=t.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(Zi(s,s,a),Zi(l,l,a));var c=Pe({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Xs({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Dd(h.shape,h.style.lineWidth),h.anid="line",n.add(h);var p=t.get(["axisLine","symbol"]);if(p!=null){var d=t.get(["axisLine","symbolSize"]);qe(p)&&(p=[p,p]),(qe(d)||Tn(d))&&(d=[d,d]);var g=LF(t.get(["axisLine","symbolOffset"])||0,d),y=d[0],_=d[1];G([{rotate:e.rotation+Math.PI/2,offset:g[0],r:0},{rotate:e.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,b){if(p[b]!=="none"&&p[b]!=null){var S=Qc(p[b],-y/2,-_/2,y,_,c.stroke,!0),x=m.r+m.offset,E=u?l:s;S.attr({rotation:m.rotate,x:E[0]+x*Math.cos(e.rotation),y:E[1]-x*Math.sin(e.rotation),silent:!0,z2:11}),n.add(S)}})}}},axisTickLabel:function(e,t,n,r){var i=use(n,r,t,e),o=fse(n,r,t,e);if(lse(t,o,i),cse(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=nie(ct(o,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));rie(a)}},axisName:function(e,t,n,r){var i=Ed(e.axisName,t.get("name"));if(i){var o=t.get("nameLocation"),a=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,h=[o==="start"?u[0]-c*l:o==="end"?u[1]+c*l:(u[0]+u[1])/2,EI(o)?e.labelOffset+a*l:0],p,d=t.get("nameRotate");d!=null&&(d=d*$s/180);var g;EI(o)?p=Gs.innerTextLayout(e.rotation,d??e.rotation,a):(p=sse(e.rotation,o,d||0,u),g=e.axisNameAvailableWidth,g!=null&&(g=Math.abs(g/Math.sin(p.rotation)),!isFinite(g)&&(g=null)));var y=s.getFont(),_=t.get("nameTruncate",!0)||{},m=_.ellipsis,b=Ed(e.nameTruncateMaxWidth,_.maxWidth,g),S=new ri({x:h[0],y:h[1],rotation:p.rotation,silent:Gs.isLabelSilent(t),style:Xc(s,{text:i,font:y,overflow:"truncate",width:b,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||p.textAlign,verticalAlign:s.get("verticalAlign")||p.textVerticalAlign}),z2:1});if(rC({el:S,componentModel:t,itemName:i}),S.__fullText=i,S.anid="name",t.get("triggerEvent")){var x=Gs.makeAxisEventDataBase(t);x.targetType="axisName",x.name=i,fn(S).eventData=x}r.add(S),S.updateTransform(),n.add(S),S.decomposeTransform()}}};function sse(e,t,n,r){var i=vN(n-e),o,a,s=r[0]>r[1],l=t==="start"&&!s||t!=="start"&&s;return Rm(i-$s/2)?(a=l?"bottom":"top",o="center"):Rm(i-$s*1.5)?(a=l?"top":"bottom",o="center"):(a="middle",i<$s*1.5&&i>$s/2?o=l?"left":"right":o=l?"right":"left"),{rotation:i,textAlign:o,textVerticalAlign:a}}function lse(e,t,n){if(!$5(e.axis)){var r=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var o=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],h=n[n.length-1],p=n[n.length-2];r===!1?($i(o),$i(u)):TI(o,a)&&(r?($i(a),$i(c)):($i(o),$i(u))),i===!1?($i(s),$i(h)):TI(l,s)&&(i?($i(l),$i(p)):($i(s),$i(h)))}}function $i(e){e&&(e.ignore=!0)}function TI(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var i=Ox([]);return kx(i,i,-e.rotation),n.applyTransform(Pc([],i,e.getLocalTransform())),r.applyTransform(Pc([],i,t.getLocalTransform())),n.intersect(r)}}function EI(e){return e==="middle"||e==="center"}function Y5(e,t,n,r,i){for(var o=[],a=[],s=[],l=0;l=0||e===t}function mse(e){var t=IC(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");a!=null&&(a=r.parse(a));var s=gS(n);o==null&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(a==null||a>l[1])&&(a=l[1]),as)return!0;if(a){var l=IC(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},e.prototype.makeElOption=function(t,n,r,i,o){},e.prototype.createPointerEl=function(t,n,r,i){var o=n.pointer;if(o){var a=Xl(t).pointerEl=new ite[o.type](RI(n.pointer));t.add(a)}},e.prototype.createLabelEl=function(t,n,r,i){if(n.label){var o=Xl(t).labelEl=new ri(RI(n.label));t.add(o),II(o,i)}},e.prototype.updatePointerEl=function(t,n,r){var i=Xl(t).pointerEl;i&&n.pointer&&(i.setStyle(n.pointer.style),r(i,{shape:n.pointer.shape}))},e.prototype.updateLabelEl=function(t,n,r,i){var o=Xl(t).labelEl;o&&(o.setStyle(n.label.style),r(o,{x:n.label.x,y:n.label.y}),II(o,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||a==="hide"){i&&r.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=nC(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){YF(u.event)},onmousedown:hw(this._onHandleDragMove,this,0,0),drift:hw(this._onHandleDragMove,this),ondragend:hw(this._onHandleDragEnd,this)}),r.add(i)),PI(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");ze(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,WF(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,n){DI(this._axisPointerModel,!n&&this._moveAnimation,this._handle,dw(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,n){var r=this._handle;if(r){this._dragging=!0;var i=this.updateHandleTransform(dw(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(dw(i)),Xl(r).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var n=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var n=t.getZr(),r=this._group,i=this._handle;n&&r&&(this._lastGraphicKey=null,r&&n.remove(r),i&&n.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),eS(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,n,r){return r=r||0,{x:t[r],y:t[1-r],width:n[r],height:n[1-r]}},e}();function DI(e,t,n,r){K5(Xl(n).lastProp,r)||(Xl(n).lastProp=r,t?Ks(n,r,e):(n.stopAnimation(),n.attr(r)))}function K5(e,t){if(it(e)&&it(t)){var n=!0;return G(t,function(r,i){n=n&&K5(e[i],r)}),!!n}else return e===t}function II(e,t){e[t.get(["label","show"])?"show":"hide"]()}function dw(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function PI(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(o){o.type!=="group"&&(r!=null&&(o.z=r),i!=null&&(o.zlevel=i),o.silent=n)})}function Mse(e){var t=e.get("type"),n=e.getModel(t+"Style"),r;return t==="line"?(r=n.getLineStyle(),r.fill=null):t==="shadow"&&(r=n.getAreaStyle(),r.stroke=null),r}function Rse(e,t,n,r,i){var o=n.get("value"),a=Z5(o,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=J0(s.get("padding")||0),u=s.getFont(),c=Fx(a,u),h=i.position,p=c.width+l[1]+l[3],d=c.height+l[0]+l[2],g=i.align;g==="right"&&(h[0]-=p),g==="center"&&(h[0]-=p/2);var y=i.verticalAlign;y==="bottom"&&(h[1]-=d),y==="middle"&&(h[1]-=d/2),Dse(h,p,d,r);var _=s.get("backgroundColor");(!_||_==="auto")&&(_=t.get(["axisLine","lineStyle","color"])),e.label={x:h[0],y:h[1],style:Xc(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:_}),z2:10}}function Dse(e,t,n,r){var i=r.getWidth(),o=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function Z5(e,t,n,r,i){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:i.precision}),a=i.formatter;if(a){var s={value:RC(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};G(r,function(l){var u=n.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,h=u&&u.getDataParams(c);h&&s.seriesData.push(h)}),qe(a)?o=a.replace("{value}",o):wt(a)&&(o=a(s))}return o}function Q5(e,t,n){var r=Ic();return kx(r,r,n.rotation),Cb(r,r,n.position),tC([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function Ise(e,t,n,r,i,o){var a=Gs.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),Rse(t,r,i,o,{position:Q5(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function Pse(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function Lse(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}var Ose=function(e){Ve(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,i,o,a){var s=i.axis,l=s.grid,u=o.get("type"),c=LI(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var p=Mse(o),d=kse[u](s,h,c);d.style=p,n.graphicKey=d.type,n.pointer=d}var g=vS(l.model,i);Ise(r,n,g,i,o,a)},t.prototype.getHandleTransform=function(n,r,i){var o=vS(r.axis.grid.model,r,{labelInside:!1});o.labelMargin=i.get(["handle","margin"]);var a=Q5(r.axis,n,o);return{x:a[0],y:a[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,r,i,o){var a=i.axis,s=a.grid,l=a.getGlobalExtent(!0),u=LI(s,a).getOtherAxis(a).getGlobalExtent(),c=a.dim==="x"?0:1,h=[n.x,n.y];h[c]+=r[c],h[c]=Math.min(l[1],h[c]),h[c]=Math.max(l[0],h[c]);var p=(u[1]+u[0])/2,d=[p,p];d[c]=h[c];var g=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:n.rotation,cursorPoint:d,tooltipOption:g[c]}},t}(Ase);function LI(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var kse={line:function(e,t,n){var r=Pse([t,n[0]],[t,n[1]],OI(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:Lse([t-r/2,n[0]],[r,i],OI(e))}}};function OI(e){return e.dim==="x"?0:1}var Nse=function(e){Ve(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(on),Na=Kn(),Fse=G;function J5(e,t,n){if(!vt.node){var r=t.getZr();Na(r).records||(Na(r).records={}),$se(r,t);var i=Na(r).records[e]||(Na(r).records[e]={});i.handler=n}}function $se(e,t){if(Na(e).initialized)return;Na(e).initialized=!0,n("click",tr(kI,"click")),n("mousemove",tr(kI,"mousemove")),n("globalout",Vse);function n(r,i){e.on(r,function(o){var a=Hse(t);Fse(Na(e).records,function(s){s&&i(s,o,a.dispatchAction)}),Bse(a.pendings,t)})}}function Bse(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function Vse(e,t,n){e.handler("leave",null,n)}function kI(e,t,n,r){t.handler(e,n,r)}function Hse(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function yS(e,t){if(!vt.node){var n=t.getZr(),r=(Na(n).records||{})[e];r&&(Na(n).records[e]=null)}}var Use=function(e){Ve(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){var o=r.getComponent("tooltip"),a=n.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";J5("axisPointer",i,function(s,l,u){a!=="none"&&(s==="leave"||a.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(n,r){yS("axisPointer",r)},t.prototype.dispose=function(n,r){yS("axisPointer",r)},t.type="axisPointer",t}(na);function e3(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=yu(o,e);if(a==null||a<0||ze(a))return{point:[]};var s=o.getItemGraphicEl(a),l=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),h=c.dim,p=u.dim,d=h==="x"||h==="radius"?1:0,g=o.mapDimension(p),y=[];y[d]=o.get(g,a),y[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),n=l.dataToPoint(y)||[]}else n=l.dataToPoint(o.getValues(ct(l.dimensions,function(m){return o.mapDimension(m)}),a))||[];else if(s){var _=s.getBoundingRect().clone();_.applyTransform(s.transform),n=[_.x+_.width/2,_.y+_.height/2]}return{point:n,el:s}}var NI=Kn();function zse(e,t,n){var r=e.currTrigger,i=[e.x,e.y],o=e,a=e.dispatchAction||Mn(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Wg(i)&&(i=e3({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=Wg(i),u=o.axesInfo,c=s.axesInfo,h=r==="leave"||Wg(i),p={},d={},g={list:[],map:{}},y={showPointer:tr(Wse,d),showTooltip:tr(Yse,g)};G(s.coordSysMap,function(m,b){var S=l||m.containPoint(i);G(s.coordSysAxesInfo[b],function(x,E){var T=x.axis,M=Kse(u,x);if(!h&&S&&(!u||M)){var D=M&&M.value;D==null&&!l&&(D=T.pointToData(i)),D!=null&&FI(x,D,y,!1,p)}})});var _={};return G(c,function(m,b){var S=m.linkGroup;S&&!d[b]&&G(S.axesInfo,function(x,E){var T=d[E];if(x!==m&&T){var M=T.value;S.mapper&&(M=m.axis.scale.parse(S.mapper(M,$I(x),$I(m)))),_[m.key]=M}})}),G(_,function(m,b){FI(c[b],m,y,!0,p)}),jse(d,c,p),qse(g,i,e,a),Xse(c,a,n),p}}function FI(e,t,n,r,i){var o=e.axis;if(!(o.scale.isBlank()||!o.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var a=Gse(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&i.seriesIndex==null&&Pe(i,s[0]),!r&&e.snap&&o.containData(l)&&l!=null&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}}function Gse(e,t){var n=t.axis,r=n.dim,i=e,o=[],a=Number.MAX_VALUE,s=-1;return G(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),h,p;if(l.getAxisTooltipData){var d=l.getAxisTooltipData(c,e,n);p=d.dataIndices,h=d.nestestValue}else{if(p=l.getData().indicesOfNearest(c[0],e,n.type==="category"?.5:null),!p.length)return;h=l.getData().get(c[0],p[0])}if(!(h==null||!isFinite(h))){var g=e-h,y=Math.abs(g);y<=a&&((y=0&&s<0)&&(a=y,s=g,i=h,o.length=0),G(p,function(_){o.push({seriesIndex:l.seriesIndex,dataIndexInside:_,dataIndex:l.getData().getRawIndex(_)})}))}}),{payloadBatch:o,snapToValue:i}}function Wse(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function Yse(e,t,n,r){var i=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=Bd(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function jse(e,t,n){var r=n.axesInfo=[];G(t,function(i,o){var a=i.axisPointerModel.option,s=e[o];s?(!i.useHandle&&(a.status="show"),a.value=s.value,a.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(a.status="hide"),a.status==="show"&&r.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:a.value})})}function qse(e,t,n,r){if(Wg(t)||!e.list.length){r({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function Xse(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",o=NI(r)[i]||{},a=NI(r)[i]={};G(e,function(u,c){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&G(h.seriesDataIndices,function(p){var d=p.seriesIndex+" | "+p.dataIndex;a[d]=p})});var s=[],l=[];G(o,function(u,c){!a[c]&&l.push(u)}),G(a,function(u,c){!o[c]&&s.push(u)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Kse(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function $I(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function Wg(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function t3(e){j5.registerAxisPointerClass("CartesianAxisPointer",Ose),e.registerComponentModel(Nse),e.registerComponentView(Use),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!ze(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=hse(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},zse)}function Zse(e){Qs(Ese),Qs(t3)}function Qse(e,t){var n=J0(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new cr({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1}),e}var Jse=function(e){Ve(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(on);function n3(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function r3(e){if(vt.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=o==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=o==="top"?225:45)+"deg)");var c=u*Math.PI/180,h=a+i,p=h*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),d=Math.round(((p-Math.SQRT2*i)/2+Math.SQRT2*i-(p-h)/2)*100)/100;s+=";"+o+":-"+d+"px";var g=t+" solid "+i+"px;",y=["position:absolute;width:"+a+"px;height:"+a+"px;z-index:-1;",s+";"+l+";","border-bottom:"+g,"border-right:"+g,"background-color:"+r+";"];return''}function ale(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,i="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,i+=vt.transformSupported?","+PC+r:",left"+r+",top"+r),nle+":"+i}function BI(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!vt.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=vt.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+PC+":"+a+";":[["top",0],["left",0],[i3,a]]}function sle(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(n*3/2)+"px");var i=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),G(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function lle(e,t,n){var r=[],i=e.get("transitionDuration"),o=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),h=PF(e,"html"),p=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+p),t&&i&&r.push(ale(i,n)),o&&r.push("background-color:"+o),G(["width","color","radius"],function(d){var g="border-"+d,y=CF(g),_=e.get(y);_!=null&&r.push(g+":"+_+(d==="color"?"":"px"))}),r.push(sle(c)),h!=null&&r.push("padding:"+J0(h).join("px ")+"px"),r.join(";")+";"}function VI(e,t,n,r,i){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&sne(e,a,n,r,i)}else{e[0]=r,e[1]=i;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var ule=function(){function e(t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,vt.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=t.getZr(),o=n.appendTo,a=o&&(qe(o)?document.querySelector(o):Td(o)?o:wt(o)&&o(t.getDom()));VI(this._styleCoord,i,a,t.getWidth()/2,t.getHeight()/2),(a||t.getDom()).appendChild(r),this._api=t,this._container=a;var s=this;r.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},r.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();Vi(c,l,!0),u.dispatch("mousemove",l)}},r.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var n=this._api.getDom(),r=tle(n,"position"),i=n.style;i.position!=="absolute"&&r!=="absolute"&&(i.position="relative")}var o=t.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,this.el.className=t.get("className")||""},e.prototype.show=function(t,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,i=r.style,o=this._styleCoord;r.innerHTML?i.cssText=rle+lle(t,!this._firstShow,this._longHide)+BI(o[0],o[1],!0)+("border-color:"+_u(n)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,n,r,i,o){var a=this.el;if(t==null){a.innerHTML="";return}var s="";if(qe(o)&&r.get("trigger")==="item"&&!n3(r)&&(s=ole(r,i,o)),qe(t))a.innerHTML=t+s;else if(t){a.innerHTML="",ze(t)||(t=[t]);for(var l=0;l=0?this._tryShow(o,a):i==="leave"&&this._hide(a))},this))},t.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,i=this._api,o=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&a.manuallyShowTip(n,r,i,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(n,r,i,o){if(!(o.from===this.uid||vt.node||!i.getDom())){var a=zI(o,i);this._ticket="";var s=o.dataByCoordSys,l=gle(o,r,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:o.position,positionDefault:"bottom"},a)}else if(o.tooltip&&o.x!=null&&o.y!=null){var c=fle;c.x=o.x,c.y=o.y,c.update(),fn(c).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:c},a)}else if(s)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:s,tooltipOption:o.tooltipOption},a);else if(o.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,i,o))return;var h=e3(o,r),p=h.point[0],d=h.point[1];p!=null&&d!=null&&this._tryShow({offsetX:p,offsetY:d,target:h.el,position:o.position,positionDefault:"bottom"},a)}else o.x!=null&&o.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:i.getZr().findHover(o.x,o.y).target},a))}},t.prototype.manuallyHideTip=function(n,r,i,o){var a=this._tooltipContent;this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,o.from!==this.uid&&this._hide(zI(o,i))},t.prototype._manuallyAxisShowTip=function(n,r,i,o){var a=o.seriesIndex,s=o.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(a==null||s==null||l==null)){var u=r.getSeriesByIndex(a);if(u){var c=u.getData(),h=ih([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:s,position:o.position}),!0}}},t.prototype._tryShow=function(n,r){var i=n.target,o=this._tooltipModel;if(o){this._lastX=n.offsetX,this._lastY=n.offsetY;var a=n.dataByCoordSys;if(a&&a.length)this._showAxisTooltip(a,n);else if(i){var s=fn(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Ch(i,function(c){if(fn(c).dataIndex!=null)return l=c,!0;if(fn(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(n,l,r):u?this._showComponentItemTooltip(n,u,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},t.prototype._showOrMove=function(n,r){var i=n.get("showDelay");r=Mn(r,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(r,i):r()},t.prototype._showAxisTooltip=function(n,r){var i=this._ecModel,o=this._tooltipModel,a=[r.offsetX,r.offsetY],s=ih([r.tooltipOption],o),l=this._renderMode,u=[],c=Od("section",{blocks:[],noHeader:!0}),h=[],p=new B1;G(n,function(b){G(b.dataByAxis,function(S){var x=i.getComponent(S.axisDim+"Axis",S.axisIndex),E=S.value;if(!(!x||E==null)){var T=Z5(E,x.axis,i,S.seriesDataIndices,S.valueLabelOpt),M=Od("section",{header:T,noHeader:!Yo(T),sortBlocks:!0,blocks:[]});c.blocks.push(M),G(S.seriesDataIndices,function(D){var P=i.getSeriesByIndex(D.seriesIndex),O=D.dataIndexInside,k=P.getDataParams(O);if(!(k.dataIndex<0)){k.axisDim=S.axisDim,k.axisIndex=S.axisIndex,k.axisType=S.axisType,k.axisId=S.axisId,k.axisValue=RC(x.axis,{value:E}),k.axisValueLabel=T,k.marker=p.makeTooltipMarker("item",_u(k.color),l);var H=JR(P.formatTooltip(O,!0,null)),te=H.frag;if(te){var W=ih([P],o).get("valueFormatter");M.blocks.push(W?Pe({valueFormatter:W},te):te)}H.text&&h.push(H.text),u.push(k)}})}})}),c.blocks.reverse(),h.reverse();var d=r.position,g=s.get("order"),y=nD(c,p,l,g,i.get("useUTC"),s.get("textStyle"));y&&h.unshift(y);var _=l==="richText"?`
+
+`:"
",m=h.join(_);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,u)?this._updatePosition(s,d,a[0],a[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",a[0],a[1],d,null,p)})},t.prototype._showSeriesItemTooltip=function(n,r,i){var o=this._ecModel,a=fn(r),s=a.seriesIndex,l=o.getSeriesByIndex(s),u=a.dataModel||l,c=a.dataIndex,h=a.dataType,p=u.getData(h),d=this._renderMode,g=n.positionDefault,y=ih([p.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),_=y.get("trigger");if(!(_!=null&&_!=="item")){var m=u.getDataParams(c,h),b=new B1;m.marker=b.makeTooltipMarker("item",_u(m.color),d);var S=JR(u.formatTooltip(c,!1,h)),x=y.get("order"),E=y.get("valueFormatter"),T=S.frag,M=T?nD(E?Pe({valueFormatter:E},T):T,b,d,x,o.get("useUTC"),y.get("textStyle")):S.text,D="item_"+u.name+"_"+c;this._showOrMove(y,function(){this._showTooltipContent(y,M,m,D,n.offsetX,n.offsetY,n.position,n.target,b)}),i({type:"showTip",dataIndexInside:c,dataIndex:p.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,i){var o=this._renderMode==="html",a=fn(r),s=a.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(qe(l)){var c=l;l={content:c,formatter:c},u=!0}u&&o&&l.content&&(l=Nt(l),l.content=_i(l.content));var h=[l],p=this._ecModel.getComponent(a.componentMainType,a.componentIndex);p&&h.push(p),h.push({formatter:l.content});var d=n.positionDefault,g=ih(h,this._tooltipModel,d?{position:d}:null),y=g.get("content"),_=Math.random()+"",m=new B1;this._showOrMove(g,function(){var b=Nt(g.get("formatterParams")||{});this._showTooltipContent(g,y,b,_,n.offsetX,n.offsetY,n.position,r,m)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(n,r,i,o,a,s,l,u,c){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var h=this._tooltipContent;h.setEnterable(n.get("enterable"));var p=n.get("formatter");l=l||n.get("position");var d=r,g=this._getNearestPoint([a,s],i,n.get("trigger"),n.get("borderColor")),y=g.color;if(p)if(qe(p)){var _=n.ecModel.get("useUTC"),m=ze(i)?i[0]:i,b=m&&m.axisType&&m.axisType.indexOf("time")>=0;d=p,b&&(d=q0(m.axisValue,d,_)),d=TF(d,i,!0)}else if(wt(p)){var S=Mn(function(x,E){x===this._ticket&&(h.setContent(E,c,n,y,l),this._updatePosition(n,l,a,s,h,i,u))},this);this._ticket=o,d=p(i,o,S)}else d=p;h.setContent(d,c,n,y,l),h.show(n,y),this._updatePosition(n,l,a,s,h,i,u)}},t.prototype._getNearestPoint=function(n,r,i,o){if(i==="axis"||ze(r))return{color:o||(this._renderMode==="html"?"#fff":"none")};if(!ze(r))return{color:o||r.color||r.borderColor}},t.prototype._updatePosition=function(n,r,i,o,a,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||n.get("position");var h=a.getSize(),p=n.get("align"),d=n.get("verticalAlign"),g=l&&l.getBoundingRect().clone();if(l&&g.applyTransform(l.transform),wt(r)&&(r=r([i,o],s,a.el,g,{viewSize:[u,c],contentSize:h.slice()})),ze(r))i=kr(r[0],u),o=kr(r[1],c);else if(it(r)){var y=r;y.width=h[0],y.height=h[1];var _=$m(y,{width:u,height:c});i=_.x,o=_.y,p=null,d=null}else if(qe(r)&&l){var m=vle(r,g,h,n.get("borderWidth"));i=m[0],o=m[1]}else{var m=dle(i,o,a,u,c,p?null:20,d?null:20);i=m[0],o=m[1]}if(p&&(i-=GI(p)?h[0]/2:p==="right"?h[0]:0),d&&(o-=GI(d)?h[1]/2:d==="bottom"?h[1]:0),n3(n)){var m=ple(i,o,a,u,c);i=m[0],o=m[1]}a.moveTo(i,o)},t.prototype._updateContentNotChangedOnAxis=function(n,r){var i=this._lastDataByCoordSys,o=this._cbParamsList,a=!!i&&i.length===n.length;return a&&G(i,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},h=c.dataByAxis||[];a=a&&u.length===h.length,a&&G(u,function(p,d){var g=h[d]||{},y=p.seriesDataIndices||[],_=g.seriesDataIndices||[];a=a&&p.value===g.value&&p.axisType===g.axisType&&p.axisId===g.axisId&&y.length===_.length,a&&G(y,function(m,b){var S=_[b];a=a&&m.seriesIndex===S.seriesIndex&&m.dataIndex===S.dataIndex}),o&&G(p.seriesDataIndices,function(m){var b=m.seriesIndex,S=r[b],x=o[b];S&&x&&x.data!==S.data&&(a=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!a},t.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},t.prototype.dispose=function(n,r){vt.node||!r.getDom()||(eS(this,"_updatePosition"),this._tooltipContent.dispose(),yS("itemTooltip",r))},t.type="tooltip",t}(na);function ih(e,t,n){var r=t.ecModel,i;n?(i=new On(n,r,r),i=new On(t.option,i,r)):i=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof On&&(a=a.get("tooltip",!0)),qe(a)&&(a={formatter:a}),a&&(i=new On(a,i,r)))}return i}function zI(e,t){return e.dispatchAction||Mn(t.dispatchAction,t)}function dle(e,t,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];return o!=null&&(e+l+o+2>r?e-=l+o:e+=o),a!=null&&(t+u+a>i?t-=u+a:t+=a),[e,t]}function ple(e,t,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,r)-a,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function vle(e,t,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-o/2;break;case"top":s=t.x+u/2-i/2,l=t.y-o-a;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+a;break;case"left":s=t.x-i-a,l=t.y+c/2-o/2;break;case"right":s=t.x+u+a,l=t.y+c/2-o/2}return[s,l]}function GI(e){return e==="center"||e==="middle"}function gle(e,t,n){var r=zx(e).queryOptionMap,i=r.keys()[0];if(!(!i||i==="series")){var o=Qd(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s=n.getViewOfComponentModel(a),l;if(s.group.traverse(function(u){var c=fn(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:a.componentIndex,el:l}}}}function mle(e){Qs(t3),e.registerComponentModel(Jse),e.registerComponentView(hle),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Jr),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Jr)}var yle=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},_S=function(e){Ve(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i),n.selected=n.selected||{},this._updateSelector(n)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),this._updateSelector(n)},t.prototype._updateSelector=function(n){var r=n.selector,i=this.ecModel;r===!0&&(r=n.selector=["all","inverse"]),ze(r)&&G(r,function(o,a){qe(o)&&(o={type:o}),r[a]=Kt(o,yle(i,o.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var r=!1,i=0;i=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}(on),nc=tr,wS=G,Qv=Sr,a3=function(e){Ve(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new Qv),this.group.add(this._selectorGroup=new Qv),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(n,r,i){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var a=n.get("align"),s=n.get("orient");(!a||a==="auto")&&(a=n.get("left")==="right"&&s==="vertical"?"right":"left");var l=n.get("selector",!0),u=n.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(a,n,r,i,l,s,u);var c=n.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},p=n.get("padding"),d=$m(c,h,p),g=this.layoutInner(n,a,d,o,l,u),y=$m(nn({width:g.width,height:g.height},c),h,p);this.group.x=y.x-g.x,this.group.y=y.y-g.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Qse(g,n))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(n,r,i,o,a,s,l){var u=this.getContentGroup(),c=Rt(),h=r.get("selectedMode"),p=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&p.push(d.id)}),wS(r.getData(),function(d,g){var y=d.get("name");if(!this.newlineDisabled&&(y===""||y===`
+`)){var _=new Qv;_.newline=!0,u.add(_);return}var m=i.getSeriesByName(y)[0];if(!c.get(y))if(m){var b=m.getData(),S=b.getVisual("legendLineStyle")||{},x=b.getVisual("legendIcon"),E=b.getVisual("style"),T=this._createItem(m,y,g,d,r,n,S,E,x,h,o);T.on("click",nc(WI,y,null,o,p)).on("mouseover",nc(bS,m.name,null,o,p)).on("mouseout",nc(SS,m.name,null,o,p)),i.ssr&&T.eachChild(function(M){var D=fn(M);D.seriesIndex=m.seriesIndex,D.dataIndex=g,D.ssrType="legend"}),c.set(y,!0)}else i.eachRawSeries(function(M){if(!c.get(y)&&M.legendVisualProvider){var D=M.legendVisualProvider;if(!D.containName(y))return;var P=D.indexOfName(y),O=D.getItemVisual(P,"style"),k=D.getItemVisual(P,"legendIcon"),H=Ba(O.fill);H&&H[3]===0&&(H[3]=.2,O=Pe(Pe({},O),{fill:k0(H,"rgba")}));var te=this._createItem(M,y,g,d,r,n,{},O,k,h,o);te.on("click",nc(WI,null,y,o,p)).on("mouseover",nc(bS,null,y,o,p)).on("mouseout",nc(SS,null,y,o,p)),i.ssr&&te.eachChild(function(W){var q=fn(W);q.seriesIndex=M.seriesIndex,q.dataIndex=g,q.ssrType="legend"}),c.set(y,!0)}},this)},this),a&&this._createSelector(a,r,o,s,l)},t.prototype._createSelector=function(n,r,i,o,a){var s=this.getSelectorGroup();wS(n,function(u){var c=u.type,h=new ri({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var p=r.getModel("selectorLabel"),d=r.getModel(["emphasis","selectorLabel"]);oC(h,{normal:p,emphasis:d},{defaultText:u.title}),$b(h)})},t.prototype._createItem=function(n,r,i,o,a,s,l,u,c,h,p){var d=n.visualDrawType,g=a.get("itemWidth"),y=a.get("itemHeight"),_=a.isSelected(r),m=o.get("symbolRotate"),b=o.get("symbolKeepAspect"),S=o.get("icon");c=S||c||"roundRect";var x=_le(c,o,l,u,d,_,p),E=new Qv,T=o.getModel("textStyle");if(wt(n.getLegendIcon)&&(!S||S==="inherit"))E.add(n.getLegendIcon({itemWidth:g,itemHeight:y,icon:c,iconRotate:m,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:b}));else{var M=S==="inherit"&&n.getData().getVisual("symbol")?m==="inherit"?n.getData().getVisual("symbolRotate"):m:0;E.add(wle({itemWidth:g,itemHeight:y,icon:c,iconRotate:M,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:b}))}var D=s==="left"?g+5:-5,P=s,O=a.get("formatter"),k=r;qe(O)&&O?k=O.replace("{name}",r??""):wt(O)&&(k=O(r));var H=_?T.getTextColor():o.get("inactiveColor");E.add(new ri({style:Xc(T,{text:k,x:D,y:y/2,fill:H,align:P,verticalAlign:"middle"},{inheritColor:H})}));var te=new cr({shape:E.getBoundingRect(),style:{fill:"transparent"}}),W=o.getModel("tooltip");return W.get("show")&&rC({el:te,componentModel:a,itemName:r,itemTooltipOption:W.option}),E.add(te),E.eachChild(function(q){q.silent=!0}),te.silent=!h,this.getContentGroup().add(E),$b(E),E.__legendDataIndex=i,E},t.prototype.layoutInner=function(n,r,i,o,a,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ed(n.get("orient"),l,n.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),h=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),a){ed("horizontal",u,n.get("selectorItemGap",!0));var p=u.getBoundingRect(),d=[-p.x,-p.y],g=n.get("selectorButtonGap",!0),y=n.getOrient().index,_=y===0?"width":"height",m=y===0?"height":"width",b=y===0?"y":"x";s==="end"?d[y]+=c[_]+g:h[y]+=p[_]+g,d[1-y]+=c[m]/2-p[m]/2,u.x=d[0],u.y=d[1],l.x=h[0],l.y=h[1];var S={x:0,y:0};return S[_]=c[_]+g+p[_],S[m]=Math.max(c[m],p[m]),S[b]=Math.min(0,p[b]+d[1-y]),S}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(na);function _le(e,t,n,r,i,o,a){function s(_,m){_.lineWidth==="auto"&&(_.lineWidth=m.lineWidth>0?2:0),wS(_,function(b,S){_[S]==="inherit"&&(_[S]=m[S])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?r.decal:sS(h,a),u.fill==="inherit"&&(u.fill=r[i]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?r:n).opacity),s(u,r);var p=t.getModel("lineStyle"),d=p.getLineStyle();if(s(d,n),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),d.stroke==="auto"&&(d.stroke=r.fill),!o){var g=t.get("inactiveBorderWidth"),y=u[c];u.lineWidth=g==="auto"?r.lineWidth>0&&y?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),d.stroke=p.get("inactiveColor"),d.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function wle(e){var t=e.icon||"roundRect",n=Qc(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function WI(e,t,n,r){SS(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),bS(e,t,n,r)}function s3(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,i=t.length;ri[a],_=[-d.x,-d.y];r||(_[o]=c[u]);var m=[0,0],b=[-g.x,-g.y],S=Ot(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(y){var x=n.get("pageButtonPosition",!0);x==="end"?b[o]+=i[a]-g[a]:m[o]+=g[a]+S}b[1-o]+=d[s]/2-g[s]/2,c.setPosition(_),h.setPosition(m),p.setPosition(b);var E={x:0,y:0};if(E[a]=y?i[a]:d[a],E[s]=Math.max(d[s],g[s]),E[l]=Math.min(0,g[l]+b[1-o]),h.__rectSize=i[a],y){var T={x:0,y:0};T[a]=Math.max(i[a]-g[a]-S,0),T[s]=E[s],h.setClipPath(new cr({shape:T})),h.__rectSize=T[a]}else p.eachChild(function(D){D.attr({invisible:!0,silent:!0})});var M=this._getPageInfo(n);return M.pageIndex!=null&&Ks(c,{x:M.contentPosition[0],y:M.contentPosition[1]},y?n:null),this._updatePageInfoView(n,M),E},t.prototype._pageGo=function(n,r,i){var o=this._getPageInfo(r)[n];o!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:r.id})},t.prototype._updatePageInfoView=function(n,r){var i=this._controllerGroup;G(["pagePrev","pageNext"],function(c){var h=c+"DataIndex",p=r[h]!=null,d=i.childOfName(c);d&&(d.setStyle("fill",p?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),d.cursor=p?"pointer":"default")});var o=i.childOfName("pageText"),a=n.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;o&&a&&o.setStyle("text",qe(a)?a.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):a({current:l,total:u}))},t.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),i=this.getContentGroup(),o=this._containerGroup.__rectSize,a=n.getOrient().index,s=pw[a],l=vw[a],u=this._findTargetItemIndex(r),c=i.children(),h=c[u],p=c.length,d=p?1:0,g={contentPosition:[i.x,i.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return g;var y=x(h);g.contentPosition[a]=-y.s;for(var _=u+1,m=y,b=y,S=null;_<=p;++_)S=x(c[_]),(!S&&b.e>m.s+o||S&&!E(S,m.s))&&(b.i>m.i?m=b:m=S,m&&(g.pageNextDataIndex==null&&(g.pageNextDataIndex=m.i),++g.pageCount)),b=S;for(var _=u-1,m=y,b=y,S=null;_>=-1;--_)S=x(c[_]),(!S||!E(b,S.s))&&m.i=M&&T.s<=M+o}},t.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,i=this.getContentGroup(),o;return i.eachChild(function(a,s){var l=a.__legendDataIndex;o==null&&l!=null&&(o=s),l===n&&(r=s)}),r??o},t.type="legend.scroll",t}(a3);function Tle(e){e.registerAction("legendScroll","legendscroll",function(t,n){var r=t.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(r)})})}function Ele(e){Qs(l3),e.registerComponentModel(xle),e.registerComponentView(Cle),Tle(e)}function Ale(e){Qs(l3),Qs(Ele)}function qI(e,t,n){var r=af.createCanvas(),i=t.getWidth(),o=t.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",e)),r.width=i*n,r.height=o*n,r}var gw=function(e){Ve(t,e);function t(n,r,i){var o=e.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;i=i||Am,typeof n=="string"?a=qI(n,r,i):it(n)&&(a=n,n=a.id),o.id=n,o.dom=a;var s=a.style;return s&&(Yk(a),a.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),o.painter=r,o.dpr=i,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 n=this.dpr;this.domBack=qI("back-"+this.id,this.painter,n),this.ctxBack=this.domBack.getContext("2d"),n!==1&&this.ctxBack.scale(n,n)},t.prototype.createRepaintRects=function(n,r,i,o){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var a=[],s=this.maxRepaintRectCount,l=!1,u=new Zt(0,0,0,0);function c(b){if(!(!b.isFinite()||b.isZero()))if(a.length===0){var S=new Zt(0,0,0,0);S.copy(b),a.push(S)}else{for(var x=!1,E=1/0,T=0,M=0;M=s)}}for(var h=this.__startIndex;h15)break}}W.prevElClipPaths&&m.restore()};if(b)if(b.length===0)D=_.__endIndex;else for(var O=d.dpr,k=0;k0&&t>i[0]){for(l=0;lt);l++);s=r[i[l]]}if(i.splice(l+1,0,t),r[t]=n,!n.virtual)if(s){var u=s.dom;u.nextSibling?a.insertBefore(n.dom,u.nextSibling):a.appendChild(n.dom)}else a.firstChild?a.insertBefore(n.dom,a.firstChild):a.appendChild(n.dom);n.painter||(n.painter=this)}},e.prototype.eachLayer=function(t,n){for(var r=this._zlevelList,i=0;i0?Jv:0),this._needsManuallyCompositing),c.__builtin__||Ix("ZLevel "+u+" has been used by unkown layer "+c.id),c!==o&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,n(l),o=c),i.__dirty&wi&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}n(l),this.eachBuiltinLayer(function(h,p){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,G(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?Kt(r[t],n,!0):r[t]=n;for(var i=0;i{const a=getComputedStyle(n.value),s=getComputedStyle(r.value);let l=a.color,u=a.backgroundColor,c=a.borderColor,h=a.fontFamily,p=s.color,d=s.backgroundColor,g=s.borderBottomColor,y=s.borderTopColor;kt(()=>Tc.value,()=>{const x=getComputedStyle(n.value),E=getComputedStyle(r.value);l=x.color,u=x.backgroundColor,c=x.borderColor,p=E.color,d=E.backgroundColor,g=E.borderBottomColor,y=E.borderTopColor}),kt(()=>kh.value,()=>{h=getComputedStyle(n.value).fontFamily});const _=Le(()=>({legend:{bottom:0,data:t.data.map(x=>x.name),textStyle:{color:l,fontFamily:h}},grid:{left:60,top:15,right:10,bottom:25},tooltip:{show:!0,trigger:"axis",backgroundColor:u,borderColor:u,confine:!0,textStyle:{color:l,fontFamily:h},formatter:t.toolTipFormatter},xAxis:{type:"category",axisLine:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},axisTick:{show:!1}},yAxis:{type:"value",splitNumber:4,max:x=>Math.max(x.max,t.min),axisLine:{show:!1},splitLine:{show:!0,lineStyle:{type:"dashed",color:c}},axisLabel:{align:"left",padding:[0,0,0,-45],formatter:t.labelFormatter,color:l,fontFamily:h}},series:t.data.map((x,E)=>{const T=E===t.data.length-1?p:d,M=E===t.data.length-1?g:y;return{name:x.name,symbol:"none",emphasis:{disabled:!0},data:x.data,areaStyle:{color:M},type:"line",color:T,smooth:!0}})})),m=iae(o.value);m.setOption(_.value),kt(_,()=>{i.value||m==null||m.setOption(_.value)});const{width:b}=a9(o),S=To.debounce(()=>{m.resize()},100);kt(()=>b.value,()=>{S()})}),(a,s)=>(X(),oe("div",Lle,[F("div",{ref_key:"chart",ref:o,class:"h-full w-full"},null,512),F("span",{class:"hidden border-base-content/10 bg-base-100/70 text-base-content",ref_key:"baseColorRef",ref:n},null,512),F("span",{class:"hidden border-b-primary/10 border-t-info/10 bg-info text-primary",ref_key:"themeColorRef",ref:r},null,512),F("button",{class:"btn btn-ghost btn-xs absolute bottom-0 right-1",onClick:s[0]||(s[0]=l=>i.value=!i.value)},[(X(),yt(Ua(i.value?V(B6):V($6)),{class:"h-4 w-4"}))])]))}}),u3=st({__name:"SpeedCharts",setup(e){const{t}=Ga(),n=Le(()=>[{name:t("ulSpeed"),data:gh.value},{name:t("dlSpeed"),data:vh.value}]),r=o=>`${mn(o,{maximumFractionDigits:1,binary:!1})}/s`,i=o=>o.map(a=>lk(a,{binary:!1,suffix:"/s"})).join("");return(o,a)=>(X(),yt(LC,{data:n.value,"label-formatter":r,"tool-tip-formatter":i,min:100*1e3},null,8,["data"]))}}),Ole={class:"card mx-1 flex flex-col gap-4 py-2 text-xs"},kle={class:"flex flex-col items-center justify-center"},Nle={class:"flex flex-col items-center justify-center"},Fle={class:"flex flex-col items-center justify-center"},$le={class:"flex flex-col items-center justify-center"},Ble={class:"flex flex-col items-center justify-center"},Vle=st({__name:"VerticalInfos",setup(e){return(t,n)=>(X(),oe("div",Ole,[F("div",kle,[Se(V(KL),{class:"h-4 w-4"}),lt(" "+de(V(mo).length),1)]),F("div",Nle,[Se(V(jL),{class:"h-4 w-4"}),lt(" "+de(V(mn)(V(fm)))+" ",1),F("span",null,de(V(mn)(V(_x)))+"/s ",1)]),F("div",Fle,[Se(V(XL),{class:"h-4 w-4"}),lt(" "+de(V(mn)(V(hm)))+" ",1),F("span",null,de(V(mn)(V(bx)))+"/s ",1)]),F("div",$le,[Se(V(k6),{class:"h-4 w-4"}),lt(" "+de(V(mn)(V(yx),{binary:!0})),1)]),F("div",Ble,[F("button",{class:"btn btn-circle btn-xs",onClick:n[0]||(n[0]=r=>ou.value=!1)},[Se(V(P6),{class:"h-5 w-5"})])])]))}}),Hle={class:"drawer-side z-30"},Ule={class:"menu flex-1 pb-0"},zle=["onClick"],Gle={key:0,class:"card"},Wle={class:"card"},Yle=st({__name:"SideBar",setup(e){const t={[Bt.connections]:Rk,[Bt.logs]:Dk,[Bt.proxies]:kk,[Bt.rules]:Fk},n=Le(()=>r.name?t[r.name]:null),r=YL(),i=Object.values(Bt).filter(o=>o!==Bt.setup);return(o,a)=>(X(),oe("div",Hle,[a[0]||(a[0]=F("label",{for:"sidebar","aria-label":"close sidebar",class:"drawer-overlay"},null,-1)),F("div",{class:ut(V(hn)("scrollbar-hidden flex h-full flex-col gap-2 overflow-x-hidden bg-base-200 p-2 text-base-content !transition-all duration-500",V(ou)?"w-18 px-0":"w-[21rem]"))},[F("ul",Ule,[(X(!0),oe(We,null,Gt(V(i),s=>(X(),oe("li",{key:s},[F("a",{class:ut(s===V(r).name?"active":"inactive"),onClick:()=>V(Eo).push({name:s})},[(X(),yt(Ua(V(iO)[s]),{class:"h-5 w-5"})),V(ou)?_t("",!0):(X(),oe(We,{key:0},[lt(de(o.$t(s)),1)],64))],10,zle)]))),128))]),V(ou)?(X(),yt(Vle,{key:0})):(X(),oe(We,{key:1},[V(r).name!==V(Bt).settings?(X(),oe("div",Gle,[Se(u3)])):_t("",!0),F("div",Wle,[n.value?(X(),yt(Ua(n.value),{key:0})):_t("",!0),Se(CZ)])],64))],2)]))}}),mw=Me(!1),c3=()=>({isUIUpdateAvailable:mw,checkUIUpdate:async()=>{mw.value=await Rq(),mw.value&&dg.value&&ek()}}),jle={class:"w-128 drawer md:drawer-open"},qle={class:"drawer-content fixed bottom-0 flex h-full w-full flex-col overflow-hidden bg-base-200/40 md:relative md:w-auto"},Xle={class:"flex h-12 w-full items-center justify-center gap-1 p-2"},Kle={class:"menu menu-horizontal flex flex-1"},Zle=["href"],Qle={for:"sidebar"},Jle={class:"btn btn-circle drawer-button btn-sm bg-neutral text-neutral-content"},eue=st({__name:"HomePage",setup(e){const t=window.matchMedia("(display-mode: standalone)").matches||navigator.standalone,n={[Bt.connections]:Rk,[Bt.logs]:Dk,[Bt.proxies]:kk,[Bt.rules]:Fk},r=R6(),i=YL(),o=Object.values(Bt).filter(d=>d!==Bt.setup),a=Le(()=>n[i.name]),s=Me(),{direction:l}=s9(s,{threshold:15}),u=()=>{const d=i.name;return d===Bt.setup?Bt.proxies:o[(o.indexOf(d)+1)%o.length]},c=()=>{const d=i.name;return d===Bt.setup?Bt.proxies:o[(o.indexOf(d)-1+o.length)%o.length]};kt(l,()=>{l.value==="right"?r.push({name:c()}):l.value==="left"&&r.push({name:u()})});const{proxiesTabShow:h}=R0(),{checkUIUpdate:p}=c3();return kt(xi,()=>{Gh.value=zc.RULES,h.value=du.PROXIES,Ik(),jc(),wm(),Iq(),_b(),Kq(),p()},{immediate:!0}),(d,g)=>(X(),oe("div",jle,[g[0]||(g[0]=F("input",{id:"sidebar",type:"checkbox",class:"drawer-toggle"},null,-1)),Se(Yle),F("div",qle,[a.value&&V(ou)?(X(),yt(Ua(a.value),{key:0,horizontal:!0})):_t("",!0),Se(V(ZS),{class:"h-0 flex-1"}),F("div",{class:ut(`${V(t)?"pb-24":"pb-12"} md:hidden`)},null,2),F("div",{ref_key:"navBarRef",ref:s,class:ut(`fixed bottom-0 z-30 w-full bg-base-200 md:hidden ${V(t)?"h-24 pb-12":"h-12"}`)},[F("div",Xle,[F("ul",Kle,[(X(!0),oe(We,null,Gt(V(o),y=>(X(),oe("li",{key:y,class:"flex-1"},[F("a",{class:ut(["flex items-center justify-center",y===V(i).name?"active":"inactive"]),href:`#${y}`},[(X(),yt(Ua(V(iO)[y]),{class:"h-5 w-5"}))],10,Zle)]))),128))]),F("label",Qle,[F("div",Jle,[Se(V(L6),{class:"h-4 w-4"})])])])],2)])]))}}),tue={class:"flex flex-col"},nue={key:0,class:"card m-2 flex-row p-2 text-sm"},rue={class:"card mb-1 block p-2 text-sm"},iue={class:"mx-2 text-primary"},oue={class:"ml-2"},aue=st({__name:"LogsPage",setup(e){const t={[Kl.Error]:"text-error",[Kl.Warning]:"text-warning",[Kl.Info]:"text-info",[Kl.Debug]:"text-accent"},n=Le(()=>mm.value.filter(r=>Dc.value?r.payload.includes(Dc.value)||r.type.includes(Dc.value):!0));return(r,i)=>(X(),oe("div",tue,[n.value.length?_t("",!0):(X(),oe("div",nue,de(r.$t("noContent")),1)),Se(vx,{data:n.value},{default:Ws(({item:o})=>[F("div",rue,[F("span",null,de(o.seq),1),F("span",iue,de(V(Qo)(o.time).locale(V(Pa)).format("HH:mm:ss")),1),F("span",{class:ut(t[o.type])},de(o.type),3),F("span",oue,de(o.payload),1)])]),_:1},8,["data"])]))}});var Ym=function(){return Ym=Object.assign||function(e){for(var t,n=1,r=arguments.length;ni.endVal;i.frameVal=s?i.endVal:i.frameVal,i.frameVal=Number(i.frameVal.toFixed(i.options.decimalPlaces)),i.printValue(i.frameVal),a1?i.options.decimal+h[1]:"",i.options.useGrouping){u="";for(var p=3,d=0,g=0,y=s.length;gwindow.scrollY&&t.paused?(t.paused=!1,setTimeout(function(){return t.start()},t.options.scrollSpyDelay),t.options.scrollSpyOnce&&(t.once=!0)):(window.scrollY>o||i>n)&&!t.paused&&t.reset()}},e.prototype.determineDirectionAndSmartEasing=function(){var t=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>t;var n=t-this.startVal;if(Math.abs(n)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=t;var r=this.countDown?1:-1;this.endVal=t+r*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;this.finalEndVal!==null?this.useEasing=!1:this.useEasing=this.options.useEasing},e.prototype.start=function(t){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),t&&(this.options.onCompleteCallback=t),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},e.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},e.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},e.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal==null&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},e.prototype.printValue=function(t){var n;if(this.el){var r=this.formattingFn(t);!((n=this.options.plugin)===null||n===void 0)&&n.render?this.options.plugin.render(this.el,r):this.el.tagName==="INPUT"?this.el.value=r:this.el.tagName==="text"||this.el.tagName==="tspan"?this.el.textContent=r:this.el.innerHTML=r}},e.prototype.ensureNumber=function(t){return typeof t=="number"&&!isNaN(t)},e.prototype.validateValue=function(t){var n=Number(t);return this.ensureNumber(n)?n:(this.error="[CountUp] invalid start or end value: ".concat(t),null)},e.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},e}();const f3=st({__name:"LatencyTag",props:{name:{}},setup(e){const t=e,n=Me(),r=Le(()=>A0(t.name));let i=null;Ka(()=>{kt(r,(a,s)=>{i?i==null||i.update(a):Ao(()=>{i=new sue(n.value,r.value,{duration:1,separator:"",enableScrollSpy:!1,startVal:s}),i==null||i.update(a)})})}),tf(()=>{i=null});const o=Le(()=>r.value===hh?"":r.value(X(),oe("div",{class:ut(V(hn)("flex h-4 w-8 items-center justify-center rounded-lg bg-base-100 text-xs",o.value)),ref_key:"latencyRef",ref:n},[r.value===0?(X(),yt(V(ZL),{key:0,class:"h-3 w-3 text-base-content"})):(X(),oe(We,{key:1},[lt(de(r.value),1)],64))],2))}});/*! @license DOMPurify 3.2.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.2/LICENSE */const{entries:h3,setPrototypeOf:KI,isFrozen:lue,getPrototypeOf:uue,getOwnPropertyDescriptor:cue}=Object;let{freeze:$r,seal:Ji,create:d3}=Object,{apply:xS,construct:CS}=typeof Reflect<"u"&&Reflect;$r||($r=function(t){return t});Ji||(Ji=function(t){return t});xS||(xS=function(t,n,r){return t.apply(n,r)});CS||(CS=function(t,n){return new t(...n)});const eg=Ai(Array.prototype.forEach),ZI=Ai(Array.prototype.pop),ah=Ai(Array.prototype.push),Yg=Ai(String.prototype.toLowerCase),yw=Ai(String.prototype.toString),QI=Ai(String.prototype.match),sh=Ai(String.prototype.replace),fue=Ai(String.prototype.indexOf),hue=Ai(String.prototype.trim),ho=Ai(Object.prototype.hasOwnProperty),Er=Ai(RegExp.prototype.test),lh=due(TypeError);function Ai(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:Yg;KI&&KI(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const o=n(i);o!==i&&(lue(t)||(t[r]=o),i=o)}e[i]=!0}return e}function pue(e){for(let t=0;t/gm),_ue=Ji(/\${[\w\W]*}/gm),wue=Ji(/^data-[\-\w.\u00B7-\uFFFF]/),bue=Ji(/^aria-[\-\w]+$/),p3=Ji(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Sue=Ji(/^(?:\w+script|data):/i),xue=Ji(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),v3=Ji(/^html$/i),Cue=Ji(/^[a-z][.\w]*(-[.\w]+)+$/i);var rP=Object.freeze({__proto__:null,ARIA_ATTR:bue,ATTR_WHITESPACE:xue,CUSTOM_ELEMENT:Cue,DATA_ATTR:wue,DOCTYPE_NAME:v3,ERB_EXPR:yue,IS_ALLOWED_URI:p3,IS_SCRIPT_OR_DATA:Sue,MUSTACHE_EXPR:mue,TMPLIT_EXPR:_ue});const ch={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Tue=function(){return typeof window>"u"?null:window},Eue=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},iP=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function g3(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tue();const t=Xe=>g3(Xe);if(t.version="3.2.2",t.removed=[],!e||!e.document||e.document.nodeType!==ch.document)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:a,Node:s,Element:l,NodeFilter:u,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:h,DOMParser:p,trustedTypes:d}=e,g=l.prototype,y=uh(g,"cloneNode"),_=uh(g,"remove"),m=uh(g,"nextSibling"),b=uh(g,"childNodes"),S=uh(g,"parentNode");if(typeof a=="function"){const Xe=n.createElement("template");Xe.content&&Xe.content.ownerDocument&&(n=Xe.content.ownerDocument)}let x,E="";const{implementation:T,createNodeIterator:M,createDocumentFragment:D,getElementsByTagName:P}=n,{importNode:O}=r;let k=iP();t.isSupported=typeof h3=="function"&&typeof S=="function"&&T&&T.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:H,ERB_EXPR:te,TMPLIT_EXPR:W,DATA_ATTR:q,ARIA_ATTR:j,IS_SCRIPT_OR_DATA:ie,ATTR_WHITESPACE:J,CUSTOM_ELEMENT:ce}=rP;let{IS_ALLOWED_URI:ye}=rP,we=null;const Ne=It({},[...JI,..._w,...ww,...bw,...eP]);let ke=null;const je=It({},[...tP,...Sw,...nP,...tg]);let He=Object.seal(d3(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ye=null,le=null,Te=!0,_e=!0,xe=!1,Ee=!0,Ie=!1,N=!0,$=!1,ne=!1,me=!1,ue=!1,L=!1,B=!1,Z=!0,ae=!1;const pe="user-content-";let Ce=!0,Y=!1,re={},Re=null;const Be=It({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ft=null;const bt=It({},["audio","video","img","source","image","track"]);let rn=null;const yn=It({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),kn="http://www.w3.org/1998/Math/MathML",Rn="http://www.w3.org/2000/svg",Yn="http://www.w3.org/1999/xhtml";let oi=Yn,Nn=!1,Zn=null;const Su=It({},[kn,Rn,Yn],yw);let xu=It({},["mi","mo","mn","ms","mtext"]),Cu=It({},["annotation-xml"]);const np=It({},["title","style","font","a","script"]);let es=null;const ay=["application/xhtml+xml","text/html"],sy="text/html";let Un=null,ts=null;const rp=n.createElement("form"),ip=function(K){return K instanceof RegExp||K instanceof Function},df=function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ts&&ts===K)){if((!K||typeof K!="object")&&(K={}),K=Wl(K),es=ay.indexOf(K.PARSER_MEDIA_TYPE)===-1?sy:K.PARSER_MEDIA_TYPE,Un=es==="application/xhtml+xml"?yw:Yg,we=ho(K,"ALLOWED_TAGS")?It({},K.ALLOWED_TAGS,Un):Ne,ke=ho(K,"ALLOWED_ATTR")?It({},K.ALLOWED_ATTR,Un):je,Zn=ho(K,"ALLOWED_NAMESPACES")?It({},K.ALLOWED_NAMESPACES,yw):Su,rn=ho(K,"ADD_URI_SAFE_ATTR")?It(Wl(yn),K.ADD_URI_SAFE_ATTR,Un):yn,ft=ho(K,"ADD_DATA_URI_TAGS")?It(Wl(bt),K.ADD_DATA_URI_TAGS,Un):bt,Re=ho(K,"FORBID_CONTENTS")?It({},K.FORBID_CONTENTS,Un):Be,Ye=ho(K,"FORBID_TAGS")?It({},K.FORBID_TAGS,Un):{},le=ho(K,"FORBID_ATTR")?It({},K.FORBID_ATTR,Un):{},re=ho(K,"USE_PROFILES")?K.USE_PROFILES:!1,Te=K.ALLOW_ARIA_ATTR!==!1,_e=K.ALLOW_DATA_ATTR!==!1,xe=K.ALLOW_UNKNOWN_PROTOCOLS||!1,Ee=K.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ie=K.SAFE_FOR_TEMPLATES||!1,N=K.SAFE_FOR_XML!==!1,$=K.WHOLE_DOCUMENT||!1,ue=K.RETURN_DOM||!1,L=K.RETURN_DOM_FRAGMENT||!1,B=K.RETURN_TRUSTED_TYPE||!1,me=K.FORCE_BODY||!1,Z=K.SANITIZE_DOM!==!1,ae=K.SANITIZE_NAMED_PROPS||!1,Ce=K.KEEP_CONTENT!==!1,Y=K.IN_PLACE||!1,ye=K.ALLOWED_URI_REGEXP||p3,oi=K.NAMESPACE||Yn,xu=K.MATHML_TEXT_INTEGRATION_POINTS||xu,Cu=K.HTML_INTEGRATION_POINTS||Cu,He=K.CUSTOM_ELEMENT_HANDLING||{},K.CUSTOM_ELEMENT_HANDLING&&ip(K.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(He.tagNameCheck=K.CUSTOM_ELEMENT_HANDLING.tagNameCheck),K.CUSTOM_ELEMENT_HANDLING&&ip(K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(He.attributeNameCheck=K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),K.CUSTOM_ELEMENT_HANDLING&&typeof K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(He.allowCustomizedBuiltInElements=K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ie&&(_e=!1),L&&(ue=!0),re&&(we=It({},eP),ke=[],re.html===!0&&(It(we,JI),It(ke,tP)),re.svg===!0&&(It(we,_w),It(ke,Sw),It(ke,tg)),re.svgFilters===!0&&(It(we,ww),It(ke,Sw),It(ke,tg)),re.mathMl===!0&&(It(we,bw),It(ke,nP),It(ke,tg))),K.ADD_TAGS&&(we===Ne&&(we=Wl(we)),It(we,K.ADD_TAGS,Un)),K.ADD_ATTR&&(ke===je&&(ke=Wl(ke)),It(ke,K.ADD_ATTR,Un)),K.ADD_URI_SAFE_ATTR&&It(rn,K.ADD_URI_SAFE_ATTR,Un),K.FORBID_CONTENTS&&(Re===Be&&(Re=Wl(Re)),It(Re,K.FORBID_CONTENTS,Un)),Ce&&(we["#text"]=!0),$&&It(we,["html","head","body"]),we.table&&(It(we,["tbody"]),delete Ye.tbody),K.TRUSTED_TYPES_POLICY){if(typeof K.TRUSTED_TYPES_POLICY.createHTML!="function")throw lh('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof K.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw lh('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=K.TRUSTED_TYPES_POLICY,E=x.createHTML("")}else x===void 0&&(x=Eue(d,i)),x!==null&&typeof E=="string"&&(E=x.createHTML(""));$r&&$r(K),ts=K}},op=It({},[..._w,...ww,...vue]),Tu=It({},[...bw,...gue]),ly=function(K){let Ae=S(K);(!Ae||!Ae.tagName)&&(Ae={namespaceURI:oi,tagName:"template"});const Ue=Yg(K.tagName),Jt=Yg(Ae.tagName);return Zn[K.namespaceURI]?K.namespaceURI===Rn?Ae.namespaceURI===Yn?Ue==="svg":Ae.namespaceURI===kn?Ue==="svg"&&(Jt==="annotation-xml"||xu[Jt]):!!op[Ue]:K.namespaceURI===kn?Ae.namespaceURI===Yn?Ue==="math":Ae.namespaceURI===Rn?Ue==="math"&&Cu[Jt]:!!Tu[Ue]:K.namespaceURI===Yn?Ae.namespaceURI===Rn&&!Cu[Jt]||Ae.namespaceURI===kn&&!xu[Jt]?!1:!Tu[Ue]&&(np[Ue]||!op[Ue]):!!(es==="application/xhtml+xml"&&Zn[K.namespaceURI]):!1},Br=function(K){ah(t.removed,{element:K});try{S(K).removeChild(K)}catch{_(K)}},Eu=function(K,Ae){try{ah(t.removed,{attribute:Ae.getAttributeNode(K),from:Ae})}catch{ah(t.removed,{attribute:null,from:Ae})}if(Ae.removeAttribute(K),K==="is")if(ue||L)try{Br(Ae)}catch{}else try{Ae.setAttribute(K,"")}catch{}},ap=function(K){let Ae=null,Ue=null;if(me)K=""+K;else{const Dn=QI(K,/^[\r\n\t ]+/);Ue=Dn&&Dn[0]}es==="application/xhtml+xml"&&oi===Yn&&(K=''+K+"");const Jt=x?x.createHTML(K):K;if(oi===Yn)try{Ae=new p().parseFromString(Jt,es)}catch{}if(!Ae||!Ae.documentElement){Ae=T.createDocument(oi,"template",null);try{Ae.documentElement.innerHTML=Nn?E:Jt}catch{}}const Qn=Ae.body||Ae.documentElement;return K&&Ue&&Qn.insertBefore(n.createTextNode(Ue),Qn.childNodes[0]||null),oi===Yn?P.call(Ae,$?"html":"body")[0]:$?Ae.documentElement:Qn},sp=function(K){return M.call(K.ownerDocument||K,K,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},lp=function(K){return K instanceof h&&(typeof K.nodeName!="string"||typeof K.textContent!="string"||typeof K.removeChild!="function"||!(K.attributes instanceof c)||typeof K.removeAttribute!="function"||typeof K.setAttribute!="function"||typeof K.namespaceURI!="string"||typeof K.insertBefore!="function"||typeof K.hasChildNodes!="function")},up=function(K){return typeof s=="function"&&K instanceof s};function to(Xe,K,Ae){eg(Xe,Ue=>{Ue.call(t,K,Ae,ts)})}const cp=function(K){let Ae=null;if(to(k.beforeSanitizeElements,K,null),lp(K))return Br(K),!0;const Ue=Un(K.nodeName);if(to(k.uponSanitizeElement,K,{tagName:Ue,allowedTags:we}),K.hasChildNodes()&&!up(K.firstElementChild)&&Er(/<[/\w]/g,K.innerHTML)&&Er(/<[/\w]/g,K.textContent)||K.nodeType===ch.progressingInstruction||N&&K.nodeType===ch.comment&&Er(/<[/\w]/g,K.data))return Br(K),!0;if(!we[Ue]||Ye[Ue]){if(!Ye[Ue]&&pf(Ue)&&(He.tagNameCheck instanceof RegExp&&Er(He.tagNameCheck,Ue)||He.tagNameCheck instanceof Function&&He.tagNameCheck(Ue)))return!1;if(Ce&&!Re[Ue]){const Jt=S(K)||K.parentNode,Qn=b(K)||K.childNodes;if(Qn&&Jt){const Dn=Qn.length;for(let fr=Dn-1;fr>=0;--fr){const Mi=y(Qn[fr],!0);Mi.__removalCount=(K.__removalCount||0)+1,Jt.insertBefore(Mi,m(K))}}}return Br(K),!0}return K instanceof l&&!ly(K)||(Ue==="noscript"||Ue==="noembed"||Ue==="noframes")&&Er(/<\/no(script|embed|frames)/i,K.innerHTML)?(Br(K),!0):(Ie&&K.nodeType===ch.text&&(Ae=K.textContent,eg([H,te,W],Jt=>{Ae=sh(Ae,Jt," ")}),K.textContent!==Ae&&(ah(t.removed,{element:K.cloneNode()}),K.textContent=Ae)),to(k.afterSanitizeElements,K,null),!1)},fp=function(K,Ae,Ue){if(Z&&(Ae==="id"||Ae==="name")&&(Ue in n||Ue in rp))return!1;if(!(_e&&!le[Ae]&&Er(q,Ae))){if(!(Te&&Er(j,Ae))){if(!ke[Ae]||le[Ae]){if(!(pf(K)&&(He.tagNameCheck instanceof RegExp&&Er(He.tagNameCheck,K)||He.tagNameCheck instanceof Function&&He.tagNameCheck(K))&&(He.attributeNameCheck instanceof RegExp&&Er(He.attributeNameCheck,Ae)||He.attributeNameCheck instanceof Function&&He.attributeNameCheck(Ae))||Ae==="is"&&He.allowCustomizedBuiltInElements&&(He.tagNameCheck instanceof RegExp&&Er(He.tagNameCheck,Ue)||He.tagNameCheck instanceof Function&&He.tagNameCheck(Ue))))return!1}else if(!rn[Ae]){if(!Er(ye,sh(Ue,J,""))){if(!((Ae==="src"||Ae==="xlink:href"||Ae==="href")&&K!=="script"&&fue(Ue,"data:")===0&&ft[K])){if(!(xe&&!Er(ie,sh(Ue,J,"")))){if(Ue)return!1}}}}}}return!0},pf=function(K){return K!=="annotation-xml"&&QI(K,ce)},hp=function(K){to(k.beforeSanitizeAttributes,K,null);const{attributes:Ae}=K;if(!Ae)return;const Ue={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke,forceKeepAttr:void 0};let Jt=Ae.length;for(;Jt--;){const Qn=Ae[Jt],{name:Dn,namespaceURI:fr,value:Mi}=Qn,al=Un(Dn);let Jn=Dn==="value"?Mi:hue(Mi);if(Ue.attrName=al,Ue.attrValue=Jn,Ue.keepAttr=!0,Ue.forceKeepAttr=void 0,to(k.uponSanitizeAttribute,K,Ue),Jn=Ue.attrValue,ae&&(al==="id"||al==="name")&&(Eu(Dn,K),Jn=pe+Jn),N&&Er(/((--!?|])>)|<\/(style|title)/i,Jn)){Eu(Dn,K);continue}if(Ue.forceKeepAttr||(Eu(Dn,K),!Ue.keepAttr))continue;if(!Ee&&Er(/\/>/i,Jn)){Eu(Dn,K);continue}Ie&&eg([H,te,W],gf=>{Jn=sh(Jn,gf," ")});const vf=Un(K.nodeName);if(fp(vf,al,Jn)){if(x&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!fr)switch(d.getAttributeType(vf,al)){case"TrustedHTML":{Jn=x.createHTML(Jn);break}case"TrustedScriptURL":{Jn=x.createScriptURL(Jn);break}}try{fr?K.setAttributeNS(fr,Dn,Jn):K.setAttribute(Dn,Jn),lp(K)?Br(K):ZI(t.removed)}catch{}}}to(k.afterSanitizeAttributes,K,null)},uy=function Xe(K){let Ae=null;const Ue=sp(K);for(to(k.beforeSanitizeShadowDOM,K,null);Ae=Ue.nextNode();)to(k.uponSanitizeShadowNode,Ae,null),!cp(Ae)&&(Ae.content instanceof o&&Xe(Ae.content),hp(Ae));to(k.afterSanitizeShadowDOM,K,null)};return t.sanitize=function(Xe){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ae=null,Ue=null,Jt=null,Qn=null;if(Nn=!Xe,Nn&&(Xe=""),typeof Xe!="string"&&!up(Xe))if(typeof Xe.toString=="function"){if(Xe=Xe.toString(),typeof Xe!="string")throw lh("dirty is not a string, aborting")}else throw lh("toString is not a function");if(!t.isSupported)return Xe;if(ne||df(K),t.removed=[],typeof Xe=="string"&&(Y=!1),Y){if(Xe.nodeName){const Mi=Un(Xe.nodeName);if(!we[Mi]||Ye[Mi])throw lh("root node is forbidden and cannot be sanitized in-place")}}else if(Xe instanceof s)Ae=ap(""),Ue=Ae.ownerDocument.importNode(Xe,!0),Ue.nodeType===ch.element&&Ue.nodeName==="BODY"||Ue.nodeName==="HTML"?Ae=Ue:Ae.appendChild(Ue);else{if(!ue&&!Ie&&!$&&Xe.indexOf("<")===-1)return x&&B?x.createHTML(Xe):Xe;if(Ae=ap(Xe),!Ae)return ue?null:B?E:""}Ae&&me&&Br(Ae.firstChild);const Dn=sp(Y?Xe:Ae);for(;Jt=Dn.nextNode();)cp(Jt)||(Jt.content instanceof o&&uy(Jt.content),hp(Jt));if(Y)return Xe;if(ue){if(L)for(Qn=D.call(Ae.ownerDocument);Ae.firstChild;)Qn.appendChild(Ae.firstChild);else Qn=Ae;return(ke.shadowroot||ke.shadowrootmode)&&(Qn=O.call(r,Qn,!0)),Qn}let fr=$?Ae.outerHTML:Ae.innerHTML;return $&&we["!doctype"]&&Ae.ownerDocument&&Ae.ownerDocument.doctype&&Ae.ownerDocument.doctype.name&&Er(v3,Ae.ownerDocument.doctype.name)&&(fr="
+`+fr),Ie&&eg([H,te,W],Mi=>{fr=sh(fr,Mi," ")}),x&&B?x.createHTML(fr):fr},t.setConfig=function(){let Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};df(Xe),ne=!0},t.clearConfig=function(){ts=null,ne=!1},t.isValidAttribute=function(Xe,K,Ae){ts||df({});const Ue=Un(Xe),Jt=Un(K);return fp(Ue,Jt,Ae)},t.addHook=function(Xe,K){typeof K=="function"&&ah(k[Xe],K)},t.removeHook=function(Xe){return ZI(k[Xe])},t.removeHooks=function(Xe){k[Xe]=[]},t.removeAllHooks=function(){k=iP()},t}var Aue=g3();const Mue=["innerHTML"],Rue=["src"],oP="data:image/svg+xml,",m3=st({__name:"ProxyIcon",props:{icon:{},fill:{}},setup(e){const t=e,n=Le(()=>t.icon.startsWith(oP)),r=Le(()=>{if(n.value)return Aue.sanitize(t.icon.replace(oP,""))});return(i,o)=>n.value?(X(),oe("div",{key:0,class:ut(["h-5 w-5",i.fill||"fill-primary"]),innerHTML:r.value},null,10,Mue)):(X(),oe("img",{key:1,class:"w-5",src:i.icon},null,8,Rue))}}),Due=["data-tip"],Iue=st({__name:"ProxyNodeCard",props:{name:{},active:{type:Boolean}},setup(e){const t=e,n=Me(),r=Me(!1),i=Me(null),o=Me(!1);let a=null,s=null;const l=To.debounce(()=>{if(n.value&&i.value){const{scrollWidth:y,clientWidth:_}=n.value;o.value=y>_}},1e3),u=()=>{n.value&&(s==null||s.observe(n.value),l())};Ka(()=>{i.value&&(Ec.value&&(s=new ResizeObserver(()=>{l()})),a=new IntersectionObserver(y=>{y.forEach(_=>{_.isIntersecting&&(r.value=!0,Ao(()=>{i.value&&(a==null||a.unobserve(i.value)),a==null||a.disconnect(),a=null,u()}))})},{rootMargin:"200px 0px 200px 0px"}),a.observe(i.value))}),tf(()=>{s&&i.value&&s.unobserve(i.value),s==null||s.disconnect(),s=null,a&&i.value&&a.unobserve(i.value),a==null||a.disconnect(),a=null});const c=Le(()=>Wa.value[t.name]),h=Me(!1),p=y=>(y=y.toLowerCase(),y=y.replace("shadowsocks","ss"),y=y.replace("hysteria","hy"),y=y.replace("wireguard","wg"),y),d=Le(()=>{const y=p(c.value.type);return c.value.udp?nX.value&&Bh.value?`${y}:udp`:`${y} | udp`:y}),g=async()=>{if(!h.value){h.value=!0;try{await jq(t.name),h.value=!1}catch{h.value=!1}}};return(y,_)=>(X(),oe("div",{ref_key:"cardRef",ref:i,class:ut(V(hn)("flex min-h-9 cursor-pointer flex-wrap items-center justify-end gap-1 rounded-md bg-base-200 p-2 text-xs sm:gap-2",y.active?"bg-primary text-primary-content":"sm:hover:bg-base-300",o.value&&"tooltip tooltip-bottom")),"data-tip":c.value.name},[r.value?(X(),oe(We,{key:0},[c.value.icon?(X(),yt(m3,{key:0,icon:c.value.icon,fill:y.active?"fill-primary-content":"fill-base-content"},null,8,["icon","fill"])):_t("",!0),F("div",{class:ut(V(hn)("flex-1 whitespace-nowrap text-xs md:text-sm",V(Ec)&&"truncate")),ref_key:"nameRef",ref:n},de(c.value.name),3),F("span",null,de(d.value),1),Se(f3,{class:ut(h.value?"animate-pulse":""),name:c.value.name,onClick:qS(g,["stop"])},null,8,["class","name"])],64)):_t("",!0)],10,Due))}}),y3=Ax(Iue,[["__scopeId","data-v-0d135e8c"]]),Pue=st({__name:"ProxyNodeGrid",setup(e){const{hasTwoColumns:t}=R0();return(n,r)=>(X(),oe("div",{class:ut(V(hn)("grid gap-2",V(Ec)&&"max-h-96 overflow-y-auto",V(Bh)?"grid-cols-2":"grid-cols-1",V(ou)?V(t)?"sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-2 2xl:grid-cols-3":"sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 2xl:grid-cols-6 3xl:grid-cols-7":V(t)?"sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-2 3xl:grid-cols-3":"sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5 3xl:grid-cols-6"))},[cL(n.$slots,"default",{},void 0,!0)],2))}}),_3=Ax(Pue,[["__scopeId","data-v-0e9bb0cd"]]),Lue={key:0,class:"flex flex-wrap gap-1 pt-2"},Oue={key:0,class:"h-2 w-2 rounded-full bg-white"},kue={key:1,class:"flex items-center gap-2 py-2"},Nue={class:"flex flex-1 items-center justify-center overflow-hidden rounded-2xl [&>*]:h-2"},w3=st({__name:"ProxyPreview",props:{nodes:{},now:{}},setup(e){const t=e,n=Le(()=>Vh.value===_d.DOTS||Vh.value===_d.AUTO&&t.nodes.length<20),r=Le(()=>t.nodes.map(u=>({latency:A0(u),name:u}))),i=u=>u===hh?"bg-gray-500":ur.value.filter(u=>u.latencyhh).length),a=Le(()=>r.value.filter(u=>u.latency>=ks.value&&u.latencyr.value.filter(u=>u.latency>=Da.value).length),l=Le(()=>r.value.filter(u=>u.latency===hh).length);return(u,c)=>n.value?(X(),oe("div",Lue,[(X(!0),oe(We,null,Gt(r.value,h=>(X(),oe("div",{key:h.name,class:ut(["flex h-4 w-4 items-center justify-center rounded-full",i(h.latency)])},[u.now===h.name?(X(),oe("div",Oue)):_t("",!0)],2))),128))])):(X(),oe("div",kue,[F("div",Nue,[F("div",{class:ut(i(V(ks)-1)),style:vo({width:`${o.value*100/u.nodes.length}%`})},null,6),F("div",{class:ut(i(V(Da)-1)),style:vo({width:`${a.value*100/u.nodes.length}%`})},null,6),F("div",{class:ut(i(V(Da)+1)),style:vo({width:`${s.value*100/u.nodes.length}%`})},null,6),F("div",{class:ut(i(V(hh))),style:vo({width:`${l.value*100/u.nodes.length}%`})},null,6)])]))}}),Fue={class:"collapse collapse-arrow"},$ue={class:"collapse-title pr-4"},Bue={class:"flex items-center gap-2 pr-6"},Vue={class:"flex flex-1 items-center gap-1"},Hue={class:"text-lg font-medium"},Uue={key:1,class:"text-sm"},zue={class:"flex items-center gap-2 text-xs text-slate-500"},Gue={class:"flex-1"},Wue={class:"shrink-0"},Yue=st({__name:"ProxyGroup",props:{name:{}},setup(e){const t=e,n=Le({get(){return sm.value[t.name]},set(u){sm.value[t.name]=u}}),r=Me(n.value),i=Le(()=>Wa.value[t.name]),o=Le(()=>ak(i.value.all??[])),a=Me(!1),s=async()=>{if(!a.value){a.value=!0;try{await qq(t.name),a.value=!1}catch{a.value=!1}}},l=Le(()=>mo.value.filter(c=>c.chains.includes(t.name)).reduce((c,h)=>c+h.downloadSpeed,0));return(u,c)=>{var h;return X(),oe("div",Fue,[F("div",$ue,[F("div",Bue,[F("div",Vue,[i.value.icon?(X(),yt(m3,{key:0,icon:i.value.icon},null,8,["icon"])):_t("",!0),F("span",Hue,de(i.value.name),1),i.value.now?(X(),oe("span",Uue," -> "+de(i.value.now),1)):_t("",!0)]),Se(f3,{class:ut(V(hn)("z-10 bg-base-200/40",a.value?"animate-pulse":"")),name:i.value.now,onClick:qS(s,["stop"])},null,8,["class","name"])]),F("div",zue,[F("div",Gue,de(i.value.type)+" ("+de((h=i.value.all)==null?void 0:h.length)+")",1),F("div",Wue,de(V(mn)(l.value))+"/s",1)]),n.value?_t("",!0):(X(),yt(w3,{key:0,nodes:o.value,now:i.value.now},null,8,["nodes","now"]))]),Mt(F("input",{type:"checkbox","onUpdate:modelValue":c[0]||(c[0]=p=>n.value=p)},null,512),[[mi,n.value]]),F("div",{class:"collapse-content flex flex-col gap-2 max-sm:px-2",onTransitionend:c[1]||(c[1]=p=>!n.value&&(r.value=n.value)),onTransitionstart:c[2]||(c[2]=p=>n.value&&(r.value=n.value))},[r.value?(X(),yt(_3,{key:0},{default:Ws(()=>[(X(!0),oe(We,null,Gt(o.value,p=>(X(),yt(y3,{key:p,name:p,active:p===i.value.now,onClick:d=>V(Yq)(i.value.name,p)},null,8,["name","active","onClick"]))),128))]),_:1})):_t("",!0)],32)])}}}),jue={class:"collapse collapse-arrow"},que={class:"collapse-title"},Xue={class:"flex items-center gap-2"},Kue={class:"text-lg font-medium sm:text-xl"},Zue={class:"text-sm"},Que={class:"flex gap-2"},Jue=["value"],ece={class:"flex flex-col sm:flex-row sm:gap-4"},tce={class:"text-sm text-slate-500"},nce={class:"text-sm text-slate-500"},rce={class:"text-sm text-slate-500"},ice=st({__name:"ProxyProvider",props:{name:{}},setup(e){const t=e,n=Le({get(){return sm.value[t.name]},set(p){sm.value[t.name]=p}}),r=Me(n.value),i=p=>{const{Download:d=0,Upload:g=0,Total:y=0,Expire:_=0}=p,m=mn(y,{binary:!0}),b=mn(d+g,{binary:!0}),S=To.toFinite(((d+g)/y*100).toFixed(2));return{total:m,used:b,percentage:S,expirePrefix:()=>{const{t:T}=Ga();return T("expire")},expireStr:()=>{const{t:T}=Ga();return _===0?T("noExpire"):Qo(_*1e3).format("YYYY-MM-DD")}}},o=Le(()=>Mc.value.find(p=>p.name===t.name)),a=Le(()=>ak(o.value.proxies.map(p=>p.name))),s=Le(()=>o.value.subscriptionInfo?i(o.value.subscriptionInfo):null),l=Me(!1),u=Me(!1),c=async()=>{if(!u.value){u.value=!0;try{await gq(t.name),await jc(),u.value=!1}catch{u.value=!1}}},h=async()=>{if(!l.value){l.value=!0;try{await QO(t.name),await jc(),l.value=!1}catch{l.value=!1}}};return(p,d)=>(X(),oe("div",jue,[F("div",que,[F("div",Xue,[F("div",Kue,[lt(de(o.value.name)+" ",1),F("span",Zue," ("+de(o.value.proxies.length)+") ",1)]),d[3]||(d[3]=F("div",{class:"flex-1"},null,-1)),F("div",Que,[F("button",{class:ut(V(hn)("btn btn-circle btn-xs z-30",u.value?"animate-pulse":"")),onClick:c},[Se(V(ZL),{class:"h-4 w-4"})],2),F("button",{class:ut(V(hn)("btn btn-circle btn-xs z-30",l.value?"animate-spin":"")),onClick:h},[Se(V(qL),{class:"h-4 w-4"})],2)])]),s.value?(X(),oe("progress",{key:0,class:"progress",value:s.value.percentage,max:"100"},null,8,Jue)):_t("",!0),F("div",ece,[s.value?(X(),oe(We,{key:0},[F("div",tce,de(s.value.used)+" / "+de(s.value.total)+" ( "+de(s.value.percentage)+"% ) ",1),F("div",nce,de(s.value.expirePrefix())+": "+de(s.value.expireStr()),1)],64)):_t("",!0),F("div",rce,de(p.$t("updated"))+" "+de(V(M0)(o.value.updatedAt)),1)]),n.value?_t("",!0):(X(),yt(w3,{key:1,nodes:a.value},null,8,["nodes"]))]),Mt(F("input",{type:"checkbox","onUpdate:modelValue":d[0]||(d[0]=g=>n.value=g)},null,512),[[mi,n.value]]),F("div",{class:"collapse-content flex flex-col gap-2 max-sm:px-2",onTransitionend:d[1]||(d[1]=g=>!n.value&&(r.value=n.value)),onTransitionstart:d[2]||(d[2]=g=>n.value&&(r.value=n.value))},[r.value?(X(),yt(_3,{key:0},{default:Ws(()=>[(X(!0),oe(We,null,Gt(a.value,g=>(X(),yt(y3,{key:g,name:g},null,8,["name"]))),128))]),_:1})):_t("",!0)],32)]))}}),oce={class:"overflow-y-auto p-2"},ace={key:0,class:"grid grid-cols-2 gap-1"},sce={key:1,class:"grid grid-cols-1 gap-1"},lce=st({__name:"ProxiesPage",setup(e){const{proxiesTabShow:t,renderGroups:n}=R0(),r=Le(()=>t.value===du.PROVIDER?ice:Yue),i=(o,a)=>o.filter((s,l)=>l%2===a);return(o,a)=>(X(),oe("div",oce,[V(ok)&&V(Nh)&&V(n).length>1?(X(),oe("div",ace,[(X(),oe(We,null,Gt([0,1],s=>F("div",{key:s,class:"flex flex-1 flex-col gap-1"},[(X(!0),oe(We,null,Gt(i(V(n),s),l=>(X(),yt(Ua(r.value),{key:l,name:l},null,8,["name"]))),128))])),64))])):(X(),oe("div",sce,[(X(!0),oe(We,null,Gt(V(n),s=>(X(),yt(Ua(r.value),{key:s,name:s},null,8,["name"]))),128))]))]))}}),uce={class:"card mb-1 block w-full gap-2 p-2 text-sm"},cce={class:"mx-2"},fce={class:"min-w-32 text-primary"},hce=st({__name:"RuleCard",props:{rule:{}},setup(e){return(t,n)=>(X(),oe("div",uce,[F("span",null,de(t.rule.type),1),F("span",cce,de(t.rule.payload)+" ->",1),F("span",fce,de(t.rule.proxy),1)]))}}),dce={class:"card w-full flex-row items-center gap-2 p-1 px-2 text-sm"},pce={class:"flex flex-1 flex-col sm:flex-row"},vce={class:"w-48 flex-1 text-primary"},gce={class:"flex gap-1"},mce=st({__name:"RuleProvider",props:{ruleProvider:{}},setup(e){const t=Me(!1),n=e,r=async()=>{t.value||(t.value=!0,await JO(n.ruleProvider.name),wm(),t.value=!1)};return(i,o)=>(X(),oe("div",dce,[F("div",pce,[F("div",vce,de(i.ruleProvider.name)+" ("+de(i.ruleProvider.ruleCount)+") ",1),F("div",gce,[F("span",null,de(i.ruleProvider.behavior),1),F("span",null,de(i.ruleProvider.vehicleType),1),F("span",null,de(i.$t("updated"))+" "+de(V(M0)(i.ruleProvider.updatedAt)),1)])]),F("button",{class:ut(V(hn)("btn btn-circle btn-xs",t.value?"animate-spin":"")),onClick:r},[Se(V(qL),{class:"h-4 w-4"})],2)]))}}),yce={key:0,class:"flex flex-col gap-1 overflow-y-auto overflow-x-hidden p-2"},_ce=st({__name:"RulesPage",setup(e){return(t,n)=>V(Gh)===V(zc).PROVIDER?(X(),oe("div",yce,[(X(!0),oe(We,null,Gt(V(_m),r=>(X(),yt(mce,{key:r.name,ruleProvider:r},null,8,["ruleProvider"]))),128))])):(X(),yt(vx,{key:1,data:V(Nk)},{default:Ws(({item:r})=>[(X(),yt(hce,{key:r.payload,rule:r},null,8,["rule"]))]),_:1},8,["data"]))}}),wce={class:"join w-96 max-sm:w-full"},bce={class:"max-h-96 overflow-y-auto"},Sce=st({__name:"DnsQuery",setup(e){const t=xo({name:"",type:"A"}),n=Me([]),r=async()=>{const{data:i}=await Cq(t);n.value=i.Answer};return(i,o)=>(X(),oe(We,null,[F("form",wce,[Se(Ex,{modelValue:t.name,"onUpdate:modelValue":o[0]||(o[0]=a=>t.name=a),type:"text",name:"name",placeholder:"Domain Name"},null,8,["modelValue"]),Mt(F("select",{"onUpdate:modelValue":o[1]||(o[1]=a=>t.type=a),class:"join-item select select-bordered select-sm"},o[2]||(o[2]=[F("option",{value:"A"},"A",-1),F("option",{value:"AAAA"},"AAAA",-1),F("option",{value:"MX"},"MX",-1)]),512),[[wo,t.type]]),F("button",{class:"btn join-item btn-sm",onClick:r},de(i.$t("DNSQuery")),1)]),F("div",bce,[(X(!0),oe(We,null,Gt(n.value,a=>(X(),oe("div",{class:"flex gap-1",key:a.data},[F("div",null,de(a.name),1),o[3]||(o[3]=lt(" : ")),F("div",null,de(a.data),1)]))),128))])],64))}}),xce={class:"flex items-center gap-2"},Cce=["value","label"],b3=st({__name:"LanguageSelect",setup(e){const t={[$a.EN_US]:"English",[$a.ZH_CN]:"简体中文"};return(n,r)=>(X(),oe("div",xce,[lt(de(n.$t("language"))+": ",1),Mt(F("select",{class:"select select-bordered select-sm w-48","onUpdate:modelValue":r[0]||(r[0]=i=>Qe(Pa)?Pa.value=i:null),onChange:r[1]||(r[1]=()=>V(ux).global.locale=V(Pa))},[(X(!0),oe(We,null,Gt(Object.values(V($a)),i=>(X(),oe("option",{key:i,value:i,label:t[i]||i},null,8,Cce))),128))],544),[[wo,V(Pa)]])]))}}),Tce={class:"flex flex-col gap-2 p-2"},Ece=["onUpdate:modelValue"],Ace=["onClick"],Mce={class:"flex w-full items-center gap-2"},Rce=st({__name:"SourceIPLabels",setup(e){const t=Le(()=>Object.keys(yi.value)),n=xo({ip:"",label:""}),r=()=>{yi.value[n.ip]=n.label,n.ip="",n.label=""},i=o=>{Reflect.deleteProperty(yi.value,o),yi.value={...yi.value}};return(o,a)=>(X(),oe(We,null,[F("div",null,de(o.$t("sourceIPLabels"))+":",1),F("div",Tce,[(X(!0),oe(We,null,Gt(t.value,s=>(X(),oe("div",{key:s,class:"flex items-center gap-2"},[lt(de(s)+" -> ",1),Mt(F("input",{type:"text",class:"input input-xs input-bordered w-24","onUpdate:modelValue":l=>V(yi)[s]=l},null,8,Ece),[[Kr,V(yi)[s]]]),F("button",{class:"btn btn-circle btn-xs",onClick:()=>i(s)},[Se(V(JL),{class:"h-4 w-4"})],8,Ace)]))),128)),F("div",Mce,[a[2]||(a[2]=lt(" IP: ")),Mt(F("input",{type:"text",class:"input input-xs input-bordered w-44","onUpdate:modelValue":a[0]||(a[0]=s=>n.ip=s)},null,512),[[Kr,n.ip]]),Mt(F("input",{type:"text",class:"input input-xs input-bordered w-20","onUpdate:modelValue":a[1]||(a[1]=s=>n.label=s)},null,512),[[Kr,n.label]]),F("button",{class:"btn btn-circle btn-xs",onClick:r},[Se(V(nO),{class:"h-4 w-4"})])])])],64))}});var Dce=Object.defineProperty,jm=Object.getOwnPropertySymbols,S3=Object.prototype.hasOwnProperty,x3=Object.prototype.propertyIsEnumerable,aP=(e,t,n)=>t in e?Dce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gc=(e,t)=>{for(var n in t||(t={}))S3.call(t,n)&&aP(e,n,t[n]);if(jm)for(var n of jm(t))x3.call(t,n)&&aP(e,n,t[n]);return e},C3=(e,t)=>{var n={};for(var r in e)S3.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&jm)for(var r of jm(e))t.indexOf(r)<0&&x3.call(e,r)&&(n[r]=e[r]);return n};const T3="[vue-draggable-plus]: ";function Ice(e){console.warn(T3+e)}function Pce(e){console.error(T3+e)}function sP(e,t,n){return n>=0&&nn?n.toUpperCase():"")}function Oce(e){return Object.keys(e).reduce((t,n)=>(typeof e[n]<"u"&&(t[Lce(n)]=e[n]),t),{})}function lP(e,t){return Array.isArray(e)&&e.splice(t,1),e}function uP(e,t,n){return Array.isArray(e)&&e.splice(t,0,n),e}function kce(e){return typeof e>"u"}function Nce(e){return typeof e=="string"}function cP(e,t,n){const r=e.children[n];e.insertBefore(t,r)}function xw(e){e.parentNode&&e.parentNode.removeChild(e)}function Fce(e,t=document){var n;let r=null;return typeof(t==null?void 0:t.querySelector)=="function"?r=(n=t==null?void 0:t.querySelector)==null?void 0:n.call(t,e):r=document.querySelector(e),r||Ice(`Element not found: ${e}`),r}function $ce(e,t,n=null){return function(...r){return e.apply(n,r),t.apply(n,r)}}function Bce(e,t){const n=gc({},e);return Object.keys(t).forEach(r=>{n[r]?n[r]=$ce(e[r],t[r]):n[r]=t[r]}),n}function Vce(e){return e instanceof HTMLElement}function fP(e,t){Object.keys(e).forEach(n=>{t(n,e[n])})}function Hce(e){return e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97)}const Uce=Object.assign;/**!
+ * Sortable 1.15.2
+ * @author RubaXa
+ * @author owenm
+ * @license MIT
+ */function hP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ra(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function Wce(e,t){if(e==null)return{};var n=Gce(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var Yce="1.15.2";function Ha(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Ja=Ha(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ep=Ha(/Edge/i),dP=Ha(/firefox/i),od=Ha(/safari/i)&&!Ha(/chrome/i)&&!Ha(/android/i),E3=Ha(/iP(ad|od|hone)/i),A3=Ha(/chrome/i)&&Ha(/android/i),M3={capture:!1,passive:!1};function Ut(e,t,n){e.addEventListener(t,n,!Ja&&M3)}function Ft(e,t,n){e.removeEventListener(t,n,!Ja&&M3)}function qm(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function jce(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function po(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&qm(e,t):qm(e,t))||r&&e===n)return e;if(e===n)break}while(e=jce(e))}return null}var pP=/\s+/g;function di(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(pP," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(pP," ")}}function ot(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=n+(typeof n=="string"?"":"px")}}function $c(e,t){var n="";if(typeof e=="string")n=e;else do{var r=ot(e,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function R3(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i=o,!a)return r;if(r===Zo())break;r=Bs(r,!1)}return!1}function Jc(e,t,n,r){for(var i=0,o=0,a=e.children;o2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,i=Wce(n,tfe);tp.pluginEvent.bind(at)(e,t,ra({dragEl:De,parentEl:Pn,ghostEl:dt,rootEl:xn,nextEl:Yl,lastDownEl:qg,cloneEl:An,cloneHidden:Ls,dragStarted:Th,putSortable:sr,activeSortable:at.active,originalEvent:r,oldIndex:mc,oldDraggableIndex:sd,newIndex:gi,newDraggableIndex:Rs,hideGhostForTarget:F3,unhideGhostForTarget:$3,cloneNowHidden:function(){Ls=!0},cloneNowShown:function(){Ls=!1},dispatchSortableEvent:function(o){Rr({sortable:t,name:o,originalEvent:r})}},i))};function Rr(e){efe(ra({putSortable:sr,cloneEl:An,targetEl:De,rootEl:xn,oldIndex:mc,oldDraggableIndex:sd,newIndex:gi,newDraggableIndex:Rs},e))}var De,Pn,dt,xn,Yl,qg,An,Ls,mc,gi,sd,Rs,ng,sr,cc=!1,Xm=!1,Km=[],Vl,lo,Ew,Aw,mP,yP,Th,ic,ld,ud=!1,rg=!1,Xg,mr,Mw=[],TS=!1,Zm=[],oy=typeof document<"u",ig=E3,_P=ep||Ja?"cssFloat":"float",nfe=oy&&!A3&&!E3&&"draggable"in document.createElement("div"),O3=function(){if(oy){if(Ja)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),k3=function(e,t){var n=ot(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=Jc(e,0,t),o=Jc(e,1,t),a=i&&ot(i),s=o&&ot(o),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Gn(i).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Gn(o).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a.float&&a.float!=="none"){var c=a.float==="left"?"left":"right";return o&&(s.clear==="both"||s.clear===c)?"vertical":"horizontal"}return i&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||l>=r&&n[_P]==="none"||o&&n[_P]==="none"&&l+u>r)?"vertical":"horizontal"},rfe=function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,o=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return r===a||i===s||r+o/2===a+l/2},ife=function(e,t){var n;return Km.some(function(r){var i=r[bi].options.emptyInsertThreshold;if(!(!i||OC(r))){var o=Gn(r),a=e>=o.left-i&&e<=o.right+i,s=t>=o.top-i&&t<=o.bottom+i;if(a&&s)return n=r}}),n},N3=function(e){function t(i,o){return function(a,s,l,u){var c=a.options.group.name&&s.options.group.name&&a.options.group.name===s.options.group.name;if(i==null&&(o||c))return!0;if(i==null||i===!1)return!1;if(o&&i==="clone")return i;if(typeof i=="function")return t(i(a,s,l,u),o)(a,s,l,u);var h=(o?a:s).options.group.name;return i===!0||typeof i=="string"&&i===h||i.join&&i.indexOf(h)>-1}}var n={},r=e.group;(!r||jg(r)!="object")&&(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},F3=function(){!O3&&dt&&ot(dt,"display","none")},$3=function(){!O3&&dt&&ot(dt,"display","")};oy&&!A3&&document.addEventListener("click",function(e){if(Xm)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Xm=!1,!1},!0);var Hl=function(e){if(De){e=e.touches?e.touches[0]:e;var t=ife(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[bi]._onDragOver(n)}}},ofe=function(e){De&&De.parentNode[bi]._isOutsideThisEl(e.target)};function at(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=qa({},t),e[bi]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return k3(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(o,a){o.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:at.supportPointer!==!1&&"PointerEvent"in window&&!od,emptyInsertThreshold:5};tp.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);N3(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:nfe,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Ut(e,"pointerdown",this._onTapStart):(Ut(e,"mousedown",this._onTapStart),Ut(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Ut(e,"dragover",this),Ut(e,"dragenter",this)),Km.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),qa(this,Zce())}at.prototype={constructor:at,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(ic=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,De):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,o=e.type,a=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,u=r.filter;if(dfe(n),!De&&!(/mousedown|pointerdown/.test(o)&&e.button!==0||r.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&od&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=po(s,r.draggable,n,!1),!(s&&s.animated)&&qg!==s)){if(mc=Ui(s),sd=Ui(s,r.draggable),typeof u=="function"){if(u.call(this,e,s,this)){Rr({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),Yr("filter",t,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(u&&(u=u.split(",").some(function(c){if(c=po(l,c.trim(),n,!1),c)return Rr({sortable:t,rootEl:c,name:"filter",targetEl:s,fromEl:n,toEl:n}),Yr("filter",t,{evt:e}),!0}),u)){i&&e.cancelable&&e.preventDefault();return}r.handle&&!po(l,r.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var r=this,i=r.el,o=r.options,a=i.ownerDocument,s;if(n&&!De&&n.parentNode===i){var l=Gn(n);if(xn=i,De=n,Pn=De.parentNode,Yl=De.nextSibling,qg=n,ng=o.group,at.dragged=De,Vl={target:De,clientX:(t||e).clientX,clientY:(t||e).clientY},mP=Vl.clientX-l.left,yP=Vl.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,De.style["will-change"]="all",s=function(){if(Yr("delayEnded",r,{evt:e}),at.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!dP&&r.nativeDraggable&&(De.draggable=!0),r._triggerDragStart(e,t),Rr({sortable:r,name:"choose",originalEvent:e}),di(De,o.chosenClass,!0)},o.ignore.split(",").forEach(function(u){R3(De,u.trim(),Rw)}),Ut(a,"dragover",Hl),Ut(a,"mousemove",Hl),Ut(a,"touchmove",Hl),Ut(a,"mouseup",r._onDrop),Ut(a,"touchend",r._onDrop),Ut(a,"touchcancel",r._onDrop),dP&&this.nativeDraggable&&(this.options.touchStartThreshold=4,De.draggable=!0),Yr("delayStart",this,{evt:e}),o.delay&&(!o.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(ep||Ja))){if(at.eventCanceled){this._onDrop();return}Ut(a,"mouseup",r._disableDelayedDrag),Ut(a,"touchend",r._disableDelayedDrag),Ut(a,"touchcancel",r._disableDelayedDrag),Ut(a,"mousemove",r._delayedDragTouchMoveHandler),Ut(a,"touchmove",r._delayedDragTouchMoveHandler),o.supportPointer&&Ut(a,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(s,o.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){De&&Rw(De),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Ft(e,"mouseup",this._disableDelayedDrag),Ft(e,"touchend",this._disableDelayedDrag),Ft(e,"touchcancel",this._disableDelayedDrag),Ft(e,"mousemove",this._delayedDragTouchMoveHandler),Ft(e,"touchmove",this._delayedDragTouchMoveHandler),Ft(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?Ut(document,"pointermove",this._onTouchMove):t?Ut(document,"touchmove",this._onTouchMove):Ut(document,"mousemove",this._onTouchMove):(Ut(De,"dragend",this),Ut(xn,"dragstart",this._onDragStart));try{document.selection?Kg(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(cc=!1,xn&&De){Yr("dragStarted",this,{evt:t}),this.nativeDraggable&&Ut(document,"dragover",ofe);var n=this.options;!e&&di(De,n.dragClass,!1),di(De,n.ghostClass,!0),at.active=this,e&&this._appendGhost(),Rr({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(lo){this._lastX=lo.clientX,this._lastY=lo.clientY,F3();for(var e=document.elementFromPoint(lo.clientX,lo.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(lo.clientX,lo.clientY),e!==t);)t=e;if(De.parentNode[bi]._isOutsideThisEl(e),t)do{if(t[bi]){var n=void 0;if(n=t[bi]._onDragOver({clientX:lo.clientX,clientY:lo.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);$3()}},_onTouchMove:function(e){if(Vl){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,o=dt&&$c(dt,!0),a=dt&&o&&o.a,s=dt&&o&&o.d,l=ig&&mr&&gP(mr),u=(i.clientX-Vl.clientX+r.x)/(a||1)+(l?l[0]-Mw[0]:0)/(a||1),c=(i.clientY-Vl.clientY+r.y)/(s||1)+(l?l[1]-Mw[1]:0)/(s||1);if(!at.active&&!cc){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))=0&&(Rr({rootEl:Pn,name:"add",toEl:Pn,fromEl:xn,originalEvent:e}),Rr({sortable:this,name:"remove",toEl:Pn,originalEvent:e}),Rr({rootEl:Pn,name:"sort",toEl:Pn,fromEl:xn,originalEvent:e}),Rr({sortable:this,name:"sort",toEl:Pn,originalEvent:e})),sr&&sr.save()):gi!==mc&&gi>=0&&(Rr({sortable:this,name:"update",toEl:Pn,originalEvent:e}),Rr({sortable:this,name:"sort",toEl:Pn,originalEvent:e})),at.active&&((gi==null||gi===-1)&&(gi=mc,Rs=sd),Rr({sortable:this,name:"end",toEl:Pn,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Yr("nulling",this),xn=De=Pn=dt=Yl=An=qg=Ls=Vl=lo=Th=gi=Rs=mc=sd=ic=ld=sr=ng=at.dragged=at.ghost=at.clone=at.active=null,Zm.forEach(function(e){e.checked=!0}),Zm.length=Ew=Aw=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":De&&(this._onDragOver(e),afe(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,r=0,i=n.length,o=this.options;ri.right+o||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>i.bottom+o||e.clientX>r.right&&e.clientY>r.top}function cfe(e,t,n,r,i,o,a,s){var l=r?e.clientY:e.clientX,u=r?n.height:n.width,c=r?n.top:n.left,h=r?n.bottom:n.right,p=!1;if(!a){if(s&&Xgc+u*o/2:lh-Xg)return-ld}else if(l>c+u*(1-i)/2&&lh-u*o/2)?l>c+u/2?1:-1:0}function ffe(e){return Ui(De){if(q&&(i==null?void 0:i.length)!==H.childNodes.length)return k.insertBefore(q,j.nextSibling),!0;const J=H.childNodes[ie];q=H==null?void 0:H.replaceChild(j,J)})}}catch(q){te=q}finally{i=null}Ao(()=>{if(bP(),te)throw te})}const m={onUpdate:y,onStart:p,onAdd:d,onRemove:g,onEnd:_};function b(D){const P=V(o);return D||(D=Nce(P)?Fce(P,r==null?void 0:r.$el):P),D&&!Vce(D)&&(D=D.$el),D||Pce("Root element not found"),D}function S(){var D;const P=(D=V(s))!=null?D:{},O=C3(P,["immediate","clone"]);return fP(O,(k,H)=>{Hce(k)&&(O[k]=(te,...W)=>{const q=yfe();return Uce(te,q),H(te,...W)})}),Bce(a===null?{}:m,O)}const x=D=>{D=b(D),l&&E.destroy(),l=new at(D,S())};kt(()=>s,()=>{l&&fP(S(),(D,P)=>{l==null||l.option(D,P)})},{deep:!0});const E={option:(D,P)=>l==null?void 0:l.option(D,P),destroy:()=>{l==null||l.destroy(),l=null},save:()=>l==null?void 0:l.save(),toArray:()=>l==null?void 0:l.toArray(),closest:(...D)=>l==null?void 0:l.closest(...D)},T=()=>E==null?void 0:E.option("disabled",!0),M=()=>E==null?void 0:E.option("disabled",!1);return mfe(()=>{u&&x()}),gfe(E.destroy),gc({start:x,pause:T,resume:M},E)}const RS=["update","start","add","remove","choose","unchoose","end","sort","filter","clone","move","change"],wfe=["clone","animation","ghostClass","group","sort","disabled","store","handle","draggable","swapThreshold","invertSwap","invertedSwapThreshold","removeCloneOnHide","direction","chosenClass","dragClass","ignore","filter","preventOnFilter","easing","setData","dropBubble","dragoverBubble","dataIdAttr","delay","delayOnTouchOnly","touchStartThreshold","forceFallback","fallbackClass","fallbackOnBody","fallbackTolerance","fallbackOffset","supportPointer","emptyInsertThreshold","scroll","forceAutoScrollFallback","scrollSensitivity","scrollSpeed","bubbleScroll","modelValue","tag","target","customUpdate",...RS.map(e=>`on${e.replace(/^\S/,t=>t.toUpperCase())}`)],xP=st({name:"VueDraggable",model:{prop:"modelValue",event:"update:modelValue"},props:wfe,emits:["update:modelValue",...RS],setup(e,{slots:t,emit:n,expose:r,attrs:i}){const o=RS.reduce((c,h)=>{const p=`on${h.replace(/^\S/,d=>d.toUpperCase())}`;return c[p]=(...d)=>n(h,...d),c},{}),a=Le(()=>{const c=$8(e),h=C3(c,["modelValue"]),p=Object.entries(h).reduce((d,[g,y])=>{const _=V(y);return _!==void 0&&(d[g]=_),d},{});return gc(gc({},o),Oce(gc(gc({},i),p)))}),s=Le({get:()=>e.modelValue,set:c=>n("update:modelValue",c)}),l=Me(),u=xo(_fe(e.target||l,s,a));return r(u),()=>{var c;return Go(e.tag||"div",{ref:l},(c=t==null?void 0:t.default)==null?void 0:c.call(t,u))}}}),bfe={class:"flex rounded lg:flex-col"},Sfe=st({__name:"TableSettings",setup(e){const t=Me(Object.values($t).filter(n=>!jl.value.includes(n)));return(n,r)=>(X(),oe(We,null,[F("div",null,de(n.$t("customTableColumns"))+":",1),F("div",bfe,[Se(V(xP),{class:"flex flex-1 flex-col gap-2 bg-base-200 p-2 lg:flex-row",modelValue:V(jl),"onUpdate:modelValue":r[0]||(r[0]=i=>Qe(jl)?jl.value=i:null),animation:150,group:"list",ghostClass:"ghost"},{default:Ws(()=>[(X(!0),oe(We,null,Gt(V(jl),i=>(X(),oe("div",{key:i,class:"flex h-8 cursor-move items-center rounded bg-neutral px-2 text-neutral-content"},de(n.$t(i)),1))),128))]),_:1},8,["modelValue"]),Se(V(xP),{class:"flex flex-1 flex-col gap-2 p-2 lg:flex-row",modelValue:t.value,"onUpdate:modelValue":r[1]||(r[1]=i=>t.value=i),animation:150,group:"list",ghostClass:"ghost"},{default:Ws(()=>[(X(!0),oe(We,null,Gt(t.value,i=>(X(),oe("div",{key:i,class:"flex h-8 cursor-move items-center rounded bg-neutral px-2 text-neutral-content"},de(n.$t(i)),1))),128))]),_:1},8,["modelValue"])])],64))}}),xfe=st({__name:"ConnectionsCharts",setup(e){const{t}=Ga(),n=Le(()=>[{name:t("connections"),data:Rg.value}]),r=o=>` ${o}`,i=o=>o.map(a=>{if(!(a.data.name
+
+ ${a.seriesName}
+ (${Qo(a.data.name).format("HH:mm:ss")}): ${a.data.value}
+