/** * ht-drawing runtime v1.2.6-dev4 * Compiled Mon Jul 28 2025 17:44:43 GMT+0800 (中国标准时间) * Copyright (c) 2025 www.hightopo.com */ function _createForOfIteratorHelper(e,t){var i,r,a,n,o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return a=!(r=!0),{s:function(){o=o.call(e)},n:function(){var e=o.next();return r=e.done,e},e:function(e){a=!0,i=e},f:function(){try{r||null==o.return||o.return()}finally{if(a)throw i}}};if(Array.isArray(e)||(o=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length)return o&&(e=o),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _readOnlyError(e){throw new TypeError('"'+e+'" is read-only')}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),_setPrototypeOf(e.prototype.constructor=e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _defineProperties(e,t){for(var i=0;ie.length)&&(t=e.length);for(var i=0,r=Array(t);i{"function"==typeof define&&define.amd?define(e):e()})(function(){for(var ie=null,ee=void 0,r="ht.drawing",ne="top",me="bottom",oe="right",le="left",xe="both",L="align",be="center",se="middle",b="multiple",De="inside",_="previous",N="next",E="forward",k="backward",$="another",S="background",h="backgroundImage",U="borderColor",P="x",T="y",I="xy",Ie="fill",Te="uniform",D="px",Ve="start",H=Math.PI,Be=H/2,Se=2*H,q=H/180,A="expand",c="disabled",F="icon",J="visible",m="width",f="checked",R="labelShadowColor",Ue="labelColor",Pe="renderType",Ce="lineHeight",Ae="fixed",M="editorOption",y="editorTrigger",X="sortOrder",z="sortable",Fe="filter",Ne="filterFunc",Ee="headLabelColor",v="headLabelFont",ke="headLineHeight",Le="headTextOverflow",Je="ignoreColumnLine",l="change",u="desc",w=[ie,"asc",u],Re="textOverflow",Me="clip",Xe="ellipsis",ze="break",Qe="breakWord",Ye="scroll",He="half",V="not-allowed",B=ie,qe="pointer",s="text",Oe="linear",Ke="check",Ge="dragger",We="separator",je="title",Ze="isTreeColumn",d="Escape",g="Enter",a="ArrowUp",o="ArrowDown",_e="accessType",$e="remove",et="clear",tt="lazy",it="lazyLoading",rt="preventDefault",at="国",nt="pingpong",ot="walk-stop",lt="hover",st="focus",dt="click",ct="rgba(255,255,255,0)",ut="labelStyle",gt="iconStyle",pt="borderStyle",n="barStyle",ft="__dvisible__",vt="bar",yt="valueBar",wt="slider",mt="slider2",xt="click",bt="hover",Dt="selected",It="__gvnode__",Tt="ht.propagation.host",Vt="__masterUuid__",Bt=[],St=0;St<24;St++)Bt.push(St<10?"0"+St:St+"");for(var Ut=[],Pt=[],Ct=0;Ct<60;Ct++)Ut.push(Ct<10?"0"+Ct:Ct+""),Pt.push(Ct<10?"0"+Ct:Ct+"");function At(e,t,i,r,a,n,o,l,s){p.drawRoundRect.apply(p,[e,t,i,Mi(0,r),Mi(0,a)].concat(_toConsumableArray([n,o,l,s].filter(function(e){return void 0!==e}).map(function(e){return Mi(0,e)}))))}var Ft=["january","february","march","april","may","june","july","august","september","october","november","december"],Nt=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],Et={year:"年",january:"1 月",february:"2 月",march:"3 月",april:"4 月",may:"5 月",june:"6 月",july:"7 月",august:"8 月",september:"9 月",october:"10 月",november:"11 月",december:"12 月",sunday:"日",monday:"一",tuesday:"二",wednesday:"三",thursday:"四",friday:"五",saturday:"六",hour:"时",minute:"分",seconds:"秒",selectTime:"选择时间",selectDate:"选择日期",back:"返回",ok:"确定",clear:"清空",week:"第 W 周",quarter:"第 W 季度",quarterTexts:["一","二","三","四"],halfYear:"W半年",halfYearTexts:["上","下"]},kt={year:"",january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December",sunday:"Sun",monday:"Mon",tuesday:"Tue",wednesday:"Wed",thursday:"Thu",friday:"Fri",saturday:"Sat",hour:"Hour",minute:"Minute",seconds:"Seconds",selectTime:"select time",selectDate:"selete date",back:"back",ok:"ok",clear:"clear",week:"Week W",quarter:"W Quarter",quarterTexts:["First","Second","Third","Fourth"],halfYear:"W Half",halfYearTexts:["First","Second"]},Lt={date:"Y 年 M 月",today:"今天",sunday:"日",monday:"一",tuesday:"二",wednesday:"三",thursday:"四",friday:"五",saturday:"六"},Jt={date:"M/Y",today:"Today",sunday:"Sun",monday:"Mon",tuesday:"Tue",wednesday:"Wed",thursday:"Thu",friday:"Fri",saturday:"Sat"},p=ht.Default,Rt=ht.Math,Mt=Rt.generateUUID,O=Rt.Vector2,Xt=Rt.Vector3,zt=Rt.Matrix2d,Qt=p.appendToScreen,de=p.containsPoint,Yt=p.containsRect,he=p.clone,Ht=p.createDiv,qt=p.createCanvas,Ot=p.darker,Kt=p.brighter,Gt=p.drawImage,Wt=p.drawPoints,jt=p.getClass,Zt=p.getClientPoint,_t=p.getCompType,$t=p.getDistance,ei=p.getGradientOffset,ti=p.getImage,ii=p.grow,ri=p.getWindowInfo,ai=p.getter,ni=p.setter,oi=p.intersectsRect,li=p.isCtrlDown,si=p.isNumber,di=p.isObject,hi=p.isShiftDown,ci=p.isString,ui=p.isTouchEvent,gi=p.isTouchable,pi=p.isFunction,fi=p.isRightButton,vi=p.layout,yi=p.parse,wi=p.removeHTML,mi=p.startAnim,xi=p.stringify,bi=p.setCanvas,Di=p.toColorData,Ii=p.unionRect,Ti=p.unionPoint,Vi=p.callLater,Bi=p.isEmptyObject,Si=p.cancelLater,Ui=p.toRoundedCorner,Pi=p.findView,Ci=p.compContextTranslate,Ai=p.compContextScale,Fi=p.compContextRotate,Ni=p.compContextTransform,Ei=p.compContextSave,ki=p.compContextRestore,Li=p.xhrLoad,Ji=function(e,t,i,r,a,n,o,l,s){var d,h,c,u,g;return t=ti(t),p.getCachedImage&&t&&!t.tagName&&n instanceof ht.Data&&o&&t.cacheRule&&(c=e.getTransform(),d=o._zoom||1,u=c.a,g=c.b,h=c.c,c=c.d,u=Math.sqrt(u*u+g*g)/d,g=Math.sqrt(h*h+c*c)/d,t=p.getCachedImage(e,t,i,r,u,a,g,n,o,l,s)),t},Ri=function(e,t,i,r,a,n,o,l,s,d,h,c,u){!d&&l instanceof ht.Data&&(d=l.s("body.color")),p.drawStretchImage(e,t,i,r,a,n,o,l,s,d,h,c,u)},Mi=Math.max,re=function(e){return(Array.isArray?Array:ht.Default).isArray(e)},Xi=(()=>{function e(e,t,i,r){var a=this;a.comp=e,a.prefix=i,a.data=t,a.ui={},a.params={},r&&t!==r&&(a.exData=r)}var t=e.prototype;return t.toDrawData=function(e){return e!==this.data&&(e[It]=this.data),e},t.getData=function(){return this.exData||this.data},e})(),zi=Math.PI,Qi=Math.pow,Yi=Math.sin,Hi=Math.cos,qi=Math.asin,Oi={swing:function(e){return-Hi(e*zi)/2+.5},easeNone:function(e){return e},easeIn:function(e){return e*e},easeOut:function(e){return(2-e)*e},easeBoth:function(e){return(e*=2)<1?.5*e*e:.5*(1- --e*(e-2))},easeInStrong:function(e){return e*e*e*e},easeOutStrong:function(e){return 1- --e*e*e*e},easeBothStrong:function(e){return(e*=2)<1?.5*e*e*e*e:.5*(2-(e-=2)*e*e*e)},elasticIn:function(e){return 0===e||1===e?e:-(Qi(2,10*--e)*Yi(2*zi*(e-.075)/.3))},elasticOut:function(e){return 0===e||1===e?e:Qi(2,-10*e)*Yi(2*zi*(e-.075)/.3)+1},elasticBoth:function(e){var t,i=.45/(2*zi)*qi(1);return 0===e||1===e?e:e<.5?(t=2*e,+Qi(2,10*--t)*Yi(2*zi*(t-i)/.45)*-.5):(t=1-2*(e-.5),1-+Qi(2,10*--t)*Yi(2*zi*(t-i)/.45)*-.5)},backIn:function(e){return 1===e?e:e*e*(2.70158*e-1.70158)},backOut:function(e){return--e*e*(2.70158*e+1.70158)+1},backBoth:function(e){var t=1.70158;return(e*=2)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},bounceIn:function(e){return 1-Oi.bounceOut(1-e)},bounceOut:function(e){var t=7.5625,t=e<1/2.75?t*e*e:e<2/2.75?t*(e-=1.5/2.75)*e+.75:e<2.5/2.75?t*(e-=2.25/2.75)*e+.9375:t*(e-=2.625/2.75)*e+.984375;return t},bounceBoth:function(e){return e<.5?.5*Oi.bounceIn(2*e):.5*Oi.bounceOut(2*e-1)+.5},cubicOut:function(e){return--e*e*e+1}},Ki={popupByDOM:!1,popup3dByDOM:!1,popupSizeAbsolute:!1,popupBackground:"rgb(38,40,46)",popupShadow:!0,popupShadowColor:"rgba(0,0,0,0.80)",popupShadowBlur:6,popupShadowOffsetX:0,popupShadowOffsetY:2,popupCornerRadius:0,popupDOMStyle:null,transition:!0,transitionDuration:500,transitionEasing:Oi.easeOut,accessKey:"value",accessType:"a",toolTipBackground:"rgba(0,7,38,0.9)"},Gi=window.htconfig&&htconfig.Drawing;if(Gi)for(var Wi in Gi)Gi.hasOwnProperty(Wi)&&(Ki[Wi]=Gi[Wi]);function ji(e){if(Ki.popupDOMStyle){var t,i=e.style;for(t in Ki.popupDOMStyle)i[t]=Ki.popupDOMStyle[t]}}Math.log10||(Math.log10=function(e){return Math.LOG10E*Math.log(e)});var ce=Math.max,te=Math.min,G=Math.abs,Zi=Math.pow,_i=Math.floor,$i=Math.ceil,K=Math.sin,W=Math.cos,er=Math.tan,tr=Math.asin,ir=Math.acos,rr=Math.sqrt,ar=Math.log10,nr=Math.log,or=Math.round,lr=Math.random,sr=Math.atan,dr=Math.atan2,hr=Math.LN10,j=Math.PI,cr=2*j,ue=Object.assign,ur=Object.values,gr=Object.keys;function pr(e){if(e){for(var t,i;i=e[It];)e=t=i;return t||e}}function fr(e,t,i){var r=pr(t),a=r!==t;if(!Tn(r)||!r.dm())return new Xi;e=vr(e,r);if(!e)return new Xi;var n,o=t.getCurrentPrefix();if(a&&(n=r.getCurrentPrefix()),e.drawingInfos)for(var l=e.drawingInfos,s=0;st[1]&&(t=[t[1],t[0]]),!(2=t[0]&&e<=t[1]:e>t[0]&&ei&&(a=n-1===a?(r.push(e.substring(a,n)),n):(r.push(e.substring(a,n-1)),n-1))}return a!==n-1&&r.push(e.substring(a,n)),r}var $r=function(e,x,b){var D=!(3?@[\\]^_`{|}~]").test(s)?n+="3":n+="2")}["21","12","13","31","23","32"].forEach(function(e){n=n.replace(new RegExp(e,"g"),"".concat(e[0]).concat("|").concat(e[1]))});for(var d=0;db?o?(T.push(o),o="",u--):(a=_r(f,x,b),Array.prototype.push.apply(T,a.slice(0,a.length-1)),o=a[a.length-1]):o=y.width===b?(T.push(p),""):p;else{if("3"===v){if(y.width>b&&o){T.push(o),o="",u--;continue}if(!o&&T.length&&u){var v=h[u-1],w=T.length,m=T[w-1];m===v?"1"===c[u-1][0]||1===m.length?T[w-1]=m+f:(T[w-1]=m.substring(0,m.length-1),o=m.charAt(m.length-1)+f):o="1"===c[u-1][0]?(T[w-1]=T[w-1].substring(0,m.length-v.length),v+f):(T[w-1]=m.substring(0,m.length-1),m.charAt(m.length-1)+f);continue}}o=y.width>b?(a=_r(p,x,b),Array.prototype.push.apply(T,a.slice(0,a.length-1)),a[a.length-1]):p}}ae(o)&&T.push(o)}I&&B.push(T.length-1)},S=0,r=V.length;S=c.length){c=p;break}g++,p=c.substring(0,c.length-g)+"..."}for(var f=0;ft.index?1:-1}),i.getLines&&i.getLines(g),u.map(function(e){return e.rect})};function Pa(e,t,i,r,a){var n=e.x,o=e.y,l=e.width,e=e.height,t=t===be?n+(l-r)/2:t===oe?n+l-r:n,l=i===se?o+(e-a)/2:i===me?o+e-a:o;return{x:t,y:l}}function Ca(e,t,i){for(var r=2=2*Math.PI;)e-=2*Math.PI;return e}function pn(e,t,i,r,a,n,o,l,s,d){if(re(l)){ns.length,d=o?s:l,h=o?l:s,c=h.length,u=!0;h.length>d.length;)u?d.push(h[c-2],h[c-1]):d.unshift(h[0],h[1]),u=!u;var o=l.map(function(e,t){return t%2?Bn(e,s[t],i):e+(s[t]-e)*i}),l=Un(t),g=e.slice(1,l),p=t.slice(1,l),l=g.map(function(e,t){return e+(p[t]-e)*i});return[n].concat(_toConsumableArray(l),_toConsumableArray(o))}}else if(!r&&!a)return Bn(e,t,i);return t}function Cn(e){var t=e.getChildren(),i=t.size();if(i)for(var r=0;r{function e(){this.animationHandler=0,this.state=0}var t=e.prototype;return t.start=function(){var e=0=i.interval&&(i.onEnterFrame(e-r,e-t),r=e),i.isRunning()&&(i.animationHandler=Vi(a)))});a()},t.iv=function(e){this.fromTimeIv=!0,e.iv()},t.updateStatus=function(){this.fromTimeIv&&(this.fromTimeIv=!1),this.isOutScreenState()&&this.resume()},t.onEnterFrame=function(e,t){},t.onStop=function(){},e})(),En=(()=>{function e(){this.lastValueMap={},this.map={}}var t=e.prototype;return t.recordAndGetValue=function(e,t){e=this.recordOne(e,t);return e?this.caluTransionValue(e):null},t.recordOne=function(e,t){var i,r=this,a=r.map,n=r.lastValueMap,o=n[t],l=e[t],s=a[t];if(!Z(l))return Z(o)&&Z(o=r.getDefaultValue(t))&&delete a[t],ae(o)&&!r.isValueEqual(o,l)&&(s?(i=r.caluTransionValue(s),r.config.frames?s.f=0:s.startTimeStamp=Date.now(),s.from=i,s.to=l):(s=a[t]={from:o,to:l},r.config.frames?s.f=0:s.startTimeStamp=Date.now())),s&&(e[t]=r.caluTransionValue(s)),n[t]=l,s;s&&delete a[t],delete n[t],n[t]=l},t.isValueEqual=function(e,t){var i=this;if(i.isPointArray(e)&&i.isPointArray(t)){for(var r=0;r=t.config.frames&&(delete i[e],r[e]=a.to)):t.config.duration&&Date.now()-a.startTimeStamp>=t.config.duration&&(delete i[e],r[e]=a.to)}},t.getFrameValue=function(e){var t=this.config,i=t.frames,r=t.easing,t=t.duration,i=i?e.f/i:(Date.now()-e.startTimeStamp)/t,i=te(i,1);return r?r(i):i},t.caluTransionValue=function(i){var e,t,r,a,n=this,o=n.getFrameValue(i);return 1===o?i.to:si(i.from)?i.from+o*(i.to-i.from):(a=Vn(i.from),e=Vn(i.to),a||e||ci(i.from)?Pn(i.from,i.to,o):n.isPointArray(i.from)?(i.from.length>i.to.length&&i.from.splice(i.to.length),i.from.map(function(e,t){e=new O(e),t=new O(i.to[t]),e=(new O).lerpVectors(e,t,o);return[e.x,e.y]})):n.isPointObjectArray(i.from)?i.from.map(function(e,t){e=new O(e),t=new O(i.to[t]);return(new O).lerpVectors(e,t,o)}):n.isNumberArray(i.from)?i.to.map(function(e,t){t=i.from[t]||0;return si(e)?t+(e-t)*o:e}):Ka(i.from)?(a=i.to.x-i.from.x,e=i.to.y-i.from.y,t=i.to.width-i.from.width,r=i.to.height-i.from.height,{x:i.from.x+a*o,y:i.from.y+e*o,width:i.from.width+t*o,height:i.from.height+r*o}):n.isPoint(i.from)?{x:(a=(new O).lerpVectors(new O(i.from),new O(i.to),o)).x,y:a.y}:void 0)},t.setConfig=function(e){var t=(e=e||{}).easing;ci(t)&&(t=Oi[t]),this.config={frames:e.frames||Ki.transitionFrames,easing:t||Ki.transitionEasing,duration:e.duration||Ki.transitionDuration}},t.isNumberArray=function(e){return re(e)&&si(e[0])},t.isPointArray=function(e){return re(e)&&re(e[0])},t.isPointObjectArray=function(e){return re(e)&&this.isPoint(e[0])},t.isPoint=function(e){return ae(e)&&ae(e.x)&&ae(e.y)},t.getTransitionItem=function(e){return this.map[e]},t.clear=function(){this.map={},this.lastValueMap={}},t.remove=function(e){var t=this;if(1{function e(){this.notifier=new ht.Notifier}var t=e.prototype;return t.load=function(e){var t=this;t.currentStyleName=e.name||"",t.colorDef=e.colorDef||{},t.gradientDef=e.gradientDef||{},t.gradientArrayDef=e.gradientArrayDef||{},t.compStyleDef=t.depthClone(e.compStyleDef||{}),t.notifier.fire({}),console.info("Apply style <".concat(t.currentStyleName,">"))},t.clear=function(){var e=this;e.colorDef={},e.gradientDef={},e.gradientArrayDef={},e.compStyleDef={},delete e.currentStyleName},t.depthClone=function(e){var t=this;if(!di(e))return e;if(re(e))return e.map(function(e){return t.depthClone(e)});var i,r,a,n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&((r=e[i])instanceof ht.DataModel?n[i]=he(r):re(r)?n[i]=r.map(function(e){return t.depthClone(e)}):di(r)?n[i]=t.depthClone(r):ci(r)?((a=r).startsWith(kn)?a=t.colorDef[r.replace(kn,"")]:r.startsWith(Ln)?a=t.gradientDef[r.replace(Ln,"")]:r.startsWith(Jn)&&(a=t.gradientArrayDef[r.replace(Jn,"")]),n[i]=a||r):n[i]=r);return n},t.convertParams=function(e,t,i){var r=this.compStyleDef;if(r){r=r[e];if(!Z(this.currentStyleName)&&"use_self"!==i&&r){var e=i&&r.extendStyles?r.extendStyles[i]:ie,a=ue({},r.style);if(e&&ue(a,e),a)for(var n in a)"seriesModel"===n&&!t.seriesModelUseTheme||"columnModel"===n&&!t.columnModelUseTheme||(t[n]=a[n])}}},t.convertCommonParams=function(e){for(var t in e){var i=e[t];ci(i)&&(i.startsWith(kn)?e[t]=this.colorDef[i.replace(kn,"")]:i.startsWith(Ln)?e[t]=this.gradientDef[i.replace(Ln,"")]:i.startsWith(Jn)&&(e[t]=this.gradientArrayDef[i.replace(Jn,"")]))}},t.getCompStyles=function(e){var t=this.compStyleDef;if(!t)return[];t=t[e];if(Z(t)||!t.extendStyles)return[];var i,r=[];for(i in t.extendStyles)r.push(i);return r},t.getCurrentStyleName=function(){return this.currentStyleName},t.getStyleValue=function(e,t){var i,r,a;if(!Z(this.currentStyleName))return i=this.colorDef,r=this.gradientDef,a=this.gradientArrayDef,"color"===t?i[e]:"gradientDef"===t?r[e]:"gradientArrayDef"!==t&&(r[e]||i[e])||a[e]},t.getStyleDefs=function(){return{color:this.colorDef,gradient:this.gradientDef,gradientArray:this.gradientArrayDef}},e})());function Mn(){Pi("all").forEach(function(e){e.invalidateAll&&e.invalidateAll()})}var Xn={top:"center",right:"left",bottom:"center",left:"right",inside:"center"},zn={top:"bottom",right:"middle",bottom:"top",left:"middle",inside:"middle"};function Qn(e,t,i,r){$n(t);for(var a=t.content,n=t.style,o=n.padding,l=n.height,s=n.vAlign,d=n.position,h=n.vGap,c=n.rotate,u=n.lineHeight,n=_slicedToArray(pe(o),4),o=n[0],g=n[1],p=n[2],n=n[3],i=On(t,i,r),f=i.lines,r=i.richRawText,i=((e,t,i)=>{var r,a,n,o,l,s,d,h,c,u,g,p=t.style,f=void 0===(f=p.offsetX)?0:f,v=void 0===(v=p.offsetY)?0:v,y=p.position,w=p.width,m=p.height,x=p.align,b=p.vAlign,D=p.rotate,p=p.rotateWrap,I=(T=((e,t)=>{var i,r,a=(t=t.style).position,n=void 0===(n=t.distance)?0:n,o=t.align,t=t.vAlign,l=0,s=0,e=(i=e.x,r=e.y,Ka(e)&&(l=e.width,s=e.height),i),d=r;return a===ne&&(e=i+l/2,d=r-n),a===me&&(e=i+l/2,d=r+s+n),a===le&&(e=i-n,d=r+s/2),a===oe&&(e=i+l+n,d=r+s/2),a===De&&(e=i+l/2,d=r+s/2,e=o===le?i:o===oe?i+l:i+l/2,d=t===ne?r:t===me?r+s:r+s/2),{x:e,y:d}})(e,t)).x,T=T.y,i=(t=Kn(t.style,i)).width,V=t.height,B=t.contentHeight,S=t.contentWidth,t=t.rotatedSize;return"inside"===y?(Ka(e)?(y=w||i,w=m||V,u=e.x,g=e.width,d=e.height,h=i,c=V,l={x:u,y:s=e.y,width:y,height:w},n=I,o=T,oe===x?(l.x=u+g-y,n-=.5*h):be===x?l.x=u+(g-y)/2:n+=.5*h,me===b?(l.y=s+d-c,o-=.5*c):se===b?l.y=s+(d-w)/2:(o+=.5*c,l.y=o-.5*w),D&&p&&(g=u=0,oe===x?u=.5*(l.width-t.width):le===x&&(u=.5*(t.width-l.width)),me===b?g=.5*(l.height-t.height):ne===b&&(g=.5*(t.height-l.height)),l.x+=u,l.y+=g,n+=u,o+=g)):(l={x:e.x-i/2,y:e.y-V/2,width:i,height:V},n=I,o=T),l.x+=f,l.y+=v,{textBoxRect:l,textBoxAnchor:{x:n+=f,y:o+=v},contentHeight:B,contentWidth:S,rotatedSize:t}):(x===le?n=r=I+f:x===be?n=(r=I-i/2+f)+i/2:x===oe&&(n=(r=I-i+f)+i),y=Z(m)?B:V,b===ne?o=a=T+v:b===se?o=(a=T-y/2+v)+y/2:b===me&&(o=(a=T-y+v)+y),{textBoxRect:{x:r,y:a,width:i,height:V},textBoxAnchor:{x:n,y:o},contentHeight:B,contentWidth:S,rotatedSize:t})})(e,t,f),t=i.textBoxRect,v=i.textBoxAnchor,y=t.x,w=t.width-n-g,g=t.height-o-p,m=y+n,y=t.y+o,x=(!l&&d!==De||(n=f.reduce(function(e,t,i){return e+(t[0]?t[0].rect.height:u)+(i?h:0)},0),d=0,l?d=n-g:Ka(e)&&e.height&&e.height-o-p{for(var t,i=[],r=Wn.lastIndex=0;null!=(t=Wn.exec(e));){var a=t.index;r{var i=g[v],e=i.rect;if(!Gn(i)){var r=i.text,t=i.textWidth,a=i.richTextWidth,n=i.rect,o=i.styleName,l=_n(o,m),s=l.font,d=l.align,h=l.vAlign,c=l.letterGap,l=oa(s,at),u=function(){var e=eo(O-y,s,Q,c),e=(p&&v===g.length-1&&(e.force=!0),to(r,e)),t=oa(s,e)+(e?(e.length-1)*c:0);i.text=e,i.textWidth=t,i.rect.width=a||t,f=!0};if(0O||p&&v===g.length-1){if(!("ellipsis"===Y&&b&&I+n.heightb)return u(),1;l=oa(s,t[0])+(t[0].length-1)*c,u=(i.text=i.rawText=t[0],i.textWidth=l,i.rect.width=a||l,t.slice(1).join(""));u&&(l=oa(s,u)+(u.length-1)*c,w.splice(D+1,0,[{text:u,rawText:u,textWidth:l,richTextWidth:a,rect:{x:NaN,y:NaN,width:a||l,height:n.height},letterGap:c,styleName:o,align:d,vAlign:h}].concat(_toConsumableArray(g.splice(v+1,ce(g.length-(v+1),0))))))}}y+=e.width})())||1!==e);v++);return vc&&d){h.splice(u+1,0,[{align:S,vAlign:U,imageWidth:P,imageHeight:C,offsetX:F,offsetY:A,image:V.image,rect:V.rect}].concat(_toConsumableArray(g.splice(T+1,ce(g.length-(T+1),0)))));break}}else{S=V.text,U=V.richTextWidth,P=V.styleName;if(d+B.width>c){var C=_n(P,K),F=C.font,A=C.align,W=C.vAlign,N=C.letterGap,E=c-d,k=ce(E,oa(F,at));if(d&&E=t.maxIterations){e+=t.ellipsis;break}var l=0===o?((e,t,i,r)=>{for(var a=0,n=0,o=e.length;na.y+a.height&&(s=a.y+a.height-(o+r))):(l=0,d=.5,(o=e-i/2)+i>a.x+a.width?l=a.x+a.width-(o+i):oa.x+a.width&&(d=1,l=-2),n!==P&&t+s+r>a.y+a.height&&(h=1,s=-2),{offsetX:l,offsetY:s,anchorX:d,anchorY:h}}var Rt=(()=>{function e(){var e=this;e.node=new ht.Node,e.node.s({interactive:!1,pixelPerfect:!1,"select.brightness":1,"2d.movable":!1,"3d.movable":!1,"2d.selectable":!1,"3d.selectable":!1,shape3d:"billboard","shape3d.transparent":!0,autorotate:!0,"light.mask":1,"effect.flow.mask":1,"3d.clipbox.mask":1,"shadow.cast":!1,"shadow.receive":!1,"3d.reflectable":!1,"texture.cache":!1}),e.node.setRenderLayer(ne),e.node.setAnchor3d(0,1,0),(Ki.popupByDOM||Ki.popup3dByDOM)&&e.domView,e._showing=!1}var t=e.prototype;return t.setImage=function(e){this.node.setImage(e),this.node.s("shape3d.image",e)},t.setDefaultImage=function(e){this._defaultImage=e,this.setImage(e)},t.show=function(e,t,i,r){var a,n,o,l=4{function e(){var e=i.call(this)||this,t=Er("labelToolTip");return e.setDefaultImage(t),e}return _inheritsLoose(e,i),e.prototype.getSize=function(){return so(this.node,350,"label")},e})(Rt),x=new go,po=(()=>{function e(){this.gv=new ht.graph.GraphView,en(this.gv),ji(this.gv.getView())}var t=e.prototype;return t.show=function(e,t,i,r,a){var n=this,o=i.width,l=i.height,s=i.image,d=i.placement,d=void 0===d?"top":d,h=i.distance,h=void 0===h?0:h,c=(n.aroundRect=e,n.targetView=t,n.node=new ht.Node);if(c.setImage(s),c.s({interactive:!0,pixelPerfect:!1,"select.brightness":1,"2d.movable":!1,"3d.movable":!1,"select.width":0}),o&&c.setWidth(o),l&&c.setHeight(l),c.a(r),c.s("opacity",0),Ki.popupByDOM){var u=n.gv,s=(u.dm().clear(),c.setAnchor(0,0),ti(s));if(!s)return void(n.showLaterTimer=setTimeout(function(){n.show(e,t,i,r,a)},20));n.showLaterTimer&&(clearTimeout(n.showLaterTimer),delete n.showLaterTimer);var g=Ki.popupSizeAbsolute?1:Jr(t);c.setScale(g,g),u.dm().add(c),n.layoutNodeByNode(e,t,d,h,{width:(o||(s.width.func?s.width.func(c,t):s.width)||100)*g,height:(l||(s.height.func?s.height.func(c,t):s.height)||100)*g})}else t.dm().add(c),n.layoutNode(e,c,d,h);mi({duration:150,action:function(e){c.s("opacity",e)}}),n.showing=!0,a&&(n.windowDownListener=function(e){var t=n.targetView.lp(e);if(!de(n.aroundRect,t)){if(Ki.popupByDOM){if(de(wa(n.gv.getView()),Zt(e)))return}else if(n.targetView.getDataAt(e)===n.node)return;n.hide()}},window.addEventListener("mouseup",n.windowDownListener),window.addEventListener("touchend",n.windowDownListener))},t.hide=function(){var t=this;t.showing=!1,t.windowDownListener&&(window.removeEventListener("mouseup",t.windowDownListener),window.removeEventListener("touchend",t.windowDownListener)),t.showLaterTimer?(clearTimeout(t.showLaterTimer),delete t.showLaterTimer):mi({duration:150,action:function(e){t.node.s("opacity",1-e)},finishFunc:function(){Ki.popupByDOM?wi(t.gv.getView()):t.targetView.dm().contains(t.node)&&t.targetView.dm().remove(t.node)}})},t.hideLater=function(i){var r=this;r.moveListener=function(e){var t=!1;Ki.popupByDOM||r.targetView.getDataAt(e)===r.node&&(t=!0),t?r.hideTimer&&(clearTimeout(r.hideTimer),delete r.hideTimer):r.hideTimer||(r.hideTimer=setTimeout(function(){window.removeEventListener("mousemove",r.moveListener,!0),delete r.moveListener,delete r.hideTimer,r.hide(),i&&i()},200))},window.addEventListener("mousemove",r.moveListener,!0)},t.isWaitingHide=function(){return!!this.hideTimer},t.clearMoveListener=function(){var e=this;e.hideTimer&&(clearTimeout(e.hideTimer),delete e.hideTimer),e.moveListener&&(window.removeEventListener("mousemove",e.moveListener),delete e.moveListener)},t.isShowing=function(){return this.showing},t.layoutNode=function(e,t,i,r){var a=e.x,n=e.y,o=e.width,l=e.height;switch(i){case"topLeft":t.setAnchor(0,1),t.p(a,n-r);break;case"topRight":t.setAnchor(1,1),t.p(a+o,n-r);break;case"right":t.setAnchor(0,.5),t.p(a+o+r,n+.5*l);break;case"rightTop":t.setAnchor(0,0),t.p(a+o+r,n);break;case"rightBottom":t.setAnchor(0,1),t.p(a+o+r,n+l);break;case"bottom":t.setAnchor(.5,0),t.p(a+.5*o,n+l+r);break;case"bottomLeft":t.setAnchor(0,0),t.p(a,n+l+r);break;case"bottomRight":t.setAnchor(1,0),t.p(a+o,n+l+r);break;case"left":t.setAnchor(1,.5),t.p(a-r,n+.5*l);break;case"leftTop":t.setAnchor(1,0),t.p(a-r,n);break;case"leftBottom":t.setAnchor(1,1),t.p(a-r,n+l);break;default:t.setAnchor(.5,1),t.p(a+.5*o,n-r)}},t.layoutNodeByNode=function(e,t,i,r,a){var n,o,l=wa(t.getView()),s=(t instanceof ht.graph.GraphView&&(n=t.tx(),o=t.ty(),t=t.getZoom(),e.x*=t,e.y*=t,e.width*=t,e.height*=t,e.x+=n+l.x,e.y+=o+l.y),e.x),d=e.y,h=e.width,c=e.height,u=this.gv.getView().style,g=a.width,p=a.height;switch(this.gv.setWidth(g),this.gv.setHeight(p),i){case"topLeft":u.left=s+D,u.top=d-p-r+D;break;case"topRight":u.left=s+h-g+D,u.top=d-p-r+D;break;case"right":u.left=s+h+r+D,u.top=d+.5*c-.5*p+D;break;case"rightTop":u.left=s+h+r+D,u.top=d+D;break;case"rightBottom":u.left=s+h+r+D,u.top=d+c-p+D;break;case"bottom":u.left=s+.5*h-.5*g+D,u.top=d+c+r+D;break;case"bottomLeft":u.left=s+D,u.top=d+c+r+D;break;case"bottomRight":u.left=s+h-g+D,u.top=d+c+r+D;break;case"left":u.left=s-r-g+D,u.top=d+.5*c-.5*p+D;break;case"leftTop":u.left=s-r-g+D,u.top=d+D;break;case"leftBottom":u.left=s-r-g+D,u.top=d+c-p+D;break;default:u.left=s+.5*h-.5*g+D,u.top=d-p-r+D}Qt(this.gv)},e})();var fo=(()=>{function e(e,t,i){this.newComp=!0;var r=this;r.comp=e,r.data=t,r.view=i,r._innerPrefix="",r.drawInfo=fr(i,t,e),r.initTransitionFrame(),r.eventNotifier=new ht.Notifier,r.uuid=Mt()}var t=e.prototype;return t.init=function(e,t){var i=this.drawInfo,r=(this.params=t,Object.assign({},this.rect));i.rect=this.rect=he(e),i.params=t,qa(e,r)||this.handleRectChange()},t.updateTransition=function(){var e=this._transitionFrame;this.transition.isEmpty()?e.stop():(e.updateStatus(),e.isRunning()||e.start())},t.initTransitionFrame=function(){var i=this,r=i.data;i._transitionParams=[],i._transitionMap={},i.transition=new En,i.transition.getDefaultValue=function(e){return i.getDefaultValue(e)},i.rawParams={},i._transitionFrame=new Nn,i._transitionFrame.onEnterFrame=function(e,t){r&&(i.transition.isEmpty()?i._transitionFrame.stop():(i.transition.update(),i._transitionFrame.iv(r)))}},t.getInnerAttr=function(e,t){var i;return Tn(this.data)&&(i=this._innerPrefix?this._innerPrefix+".":"",this.data.ca(i+e))||t},t.getBodyColor=function(){if(this.data)return this.data.s("body.color")},t.toBlendedColor=function(e){var t=this.comp;if(!t)return e;if(re(e)){for(var i=e.length,r=e[0]===Oe,a=e.slice(0),n=r?6:ci(e[5])?5:14;n{if(!Z(e)){var t,i={};for(t in e)i[t]=e[t];return i}})(i),a.transition.record(i,n)),a.clip&&(i.borderStyle&&(r=i.borderStyle.cornerRadius),a.clipRect(e,t,r)),a.drawImpl(e,t,i),a.drawLoading(e),a.clip&&e.restore(),o&&a.updateTransition(),a.newComp&&(a.fireEvent({kind:"init"}),a.newComp=!1)},t.drawLoading=function(e){var t,i,r,a,n,o=this.params,l=this.data,s=this.rect,d=o.loading,o=o.loadingStyle;d&&(d=o.image,t=o.width,i=o.height,r=void 0===(r=o.offsetX)?0:r,a=void 0===(a=o.offsetY)?0:a,(o=o.background)&&ua(e,s,o),d)&&(o=s.x,n=s.y,Y(e,d,{x:o+.5*(s.width-t)+r,y:n+.5*(s.height-i)+a,width:t,height:i},l,this.view))},t.getDefaultValue=function(e){return null},t.drawImpl=function(e,t,i){},t.fireEvent=function(e){var t,i=this.params.handleEvent,i=(i&&(t=i(e,this.data,this.view)),this.params.handleInnerEvent);return i&&i(e,this.data,this.view),this.eventNotifier.fire(e),t},t.addEventListener=function(t){var i=this.data,r=this.view;this.eventNotifier.add(function(e){t(e,i,r)})},t.removeEventListener=function(e){this.eventNotifier.remove(e)},t.getTransitionValue=function(e,t){return!this.isTransitionEnabled()||(this._transitionMap[e]=t,Z(e=this.transition.recordAndGetValue(this._transitionMap,e)))?t:e},t.setTransitionToValue=function(e,t){this.transition.updateToValue(e,t)},t.hasTransition=function(e){return this.transition.has(e,1{function n(e,t,i){e=r.call(this,e,t,i)||this;return e._innerPrefix="scrollbar",e}_inheritsLoose(n,r);var e=n.prototype;return e.isHoverPause=function(){var e=this.params.autoScrollStyle;return this.drawInfo.ui.pauseAuto&&!1!==(void 0===e?{}:e).pauseWhenHover},e.checkWalkCache=function(e,t){var i=this.drawInfo.ui;e===i.cacheWalkDistance&&t===i.cachePauseDuration||(i.cachePauseDuration=t,i.cacheWalkDistance=e,delete i.walkStopTime,delete i.walkTarget)},e.clear=function(){var e=this.drawInfo.ui;delete e.vBar,delete e.hBar},e.initTimeFrame=function(){var y=this,w=y.data;y.timeframe=new Nn,y.timeframe.onEnterFrame=function(e,t){if(w){var i=y.drawInfo.ui,r=y.drawInfo.ui,a=r.vBar,r=r.hBar,n=y.params,o=n.translateX,n=n.translateY,l=y.params.autoScrollStyle||{};if(l.direction&&!y.isHoverPause()){var s=l.direction,d=l.step,d=void 0===d?1:d,h=l.animationType,h=void 0===h?"loop":h,c=l.walkDistance,c=void 0===c?20:c,l=l.pauseDuration,l=void 0===l?1e3:l;if("v"===s&&y.drawInfo.ui.vBar){var u=_slicedToArray(a.range,2),g=u[0],u=u[1];if(ot===h){if(y.checkWalkCache(c,l),ae(i.walkStopTime)){if(t-i.walkStopTime=i[1]&&this.fireMasterEvent({kind:n.EVENT_SCROLL_TO_TOP})),r&&ae(e)&&(e<=(i=r.range)[0]?this.fireMasterEvent({kind:n.EVENT_SCROLL_TO_RIGHT}):e>=i[1]&&this.fireMasterEvent({kind:n.EVENT_SCROLL_TO_LEFT}))},n})(fo),vo=(yo.EVENT_SCROLL_TO_TOP=vo+"Top",yo.EVENT_SCROLL_TO_BOTTOM=vo+"Bottom",yo.EVENT_SCROLL_TO_LEFT=vo+"Left",yo.EVENT_SCROLL_TO_RIGHT=vo+"Right",i(yo,["translateX","translateY","scrollable","pannable","scrollbarGap","scrollbarWidth","sliderBorderWidth","scrollbarWidthAbsolute","scrollbarInteractiveSize","autoHideScrollbar","scrollSpeed","scrollWidth","scrollHeight","momentumScroll","padding","stopPropagation","autoScrollStyle","trackStyle","widthOffset","heightOffset"],["scrollbarColor"])),wo=(()=>{function e(){}var t=e.prototype;return t.onClick=function(e,t,i){},t.onDoubleClick=function(e,t,i){},t.onContextMenu=function(e,t,i){},t.onDown=function(e,t,i){},t.onUp=function(e,t,i){},t.onMove=function(e,t,i){},t.onEnter=function(e,t,i){},t.onHover=function(e,t,i){},t.onLeave=function(e,t,i){},t.onBeginDrag=function(e,t,i){},t.onDrag=function(e,t,i){},t.onEndDrag=function(e,t,i){},t.onScroll=function(e,t,i){},e})(),C=new((()=>{function e(){var e=(this.tipElement=Ht()).style;e.whiteSpace="nowrap",e.color="white",e.background="rgba(156,156,156,0.4)",e.font=p.labelFont,e.padding="4px",e.borderRadius="4px",e.position="absolute",e.zIndex="10000"}var t=e.prototype;return t.isDragging=function(){return!!this.dragSource},t.isCompDragging=function(e){return this.dragSource&&this.dragSource===e},t.getDraggingData=function(){return this.dragData},t.endDragging=function(){var e=this;Vi(function(){e.dragSource&&e.fireEvent(e.dragSource,"endDrag"),delete e.dragData,delete e.dragSource,delete e.dropTarget,e.removeDraggingElement(),wi(e.tipElement)})},t.handleEnter=function(e,t,i){var r;return!!this.isDragging()&&(r=this.sourceIsScrollBar(),e===this.dragSource?this.dropTarget=e:r||(this.crossDropTarget=e),r||this.fireEvent(e,"dragEnter",t,i)||e.instance.handleDragEnter(t,i),!0)},t.handleDrag=function(e,t,i){var r,a;return!!this.isDragging()&&(r=this.sourceIsScrollBar(),e===this.dragSource?this.dropTarget=e:r||(this.crossDropTarget=e),this.isCompDragging(e)?a=this.fireEvent(e,"dragMove",t,i):r||(a=this.fireEvent(e,"crossDragMove",t,i)),r||a||(e.instance.handleDrag(t,i),this.updateElement(t)),!0)},t.handleLeave=function(e,t,i){return!!this.isDragging()&&(e===this.dropTarget?delete this.dropTarget:delete this.crossDropTarget,this.fireEvent(e,"dragLeave",t,i)||e.instance.handleDragLeave(t,i),!0)},t.handleDrop=function(e,t,i){var r=3{function e(){this.scrollTargetList=[]}var t=e.prototype;return t.isCompScrollable=function(e){var t=this.scrollTargetList;return t.length&&t[t.length-1]===e||!t.length},t.pushScrollTarget=function(e){var t,i=this.scrollTargetList;i.includes(e)?(t=i.indexOf(e),i.splice(t+1,i.length-t-1)):this.scrollTargetList.push(e)},t.popScrollTarget=function(){this.scrollTargetList.pop()},t.clear=function(){this.scrollTargetList=[]},e})());function bo(e,t){t.hideTimer&&clearTimeout(t.hideTimer),t.hideTimer=setTimeout(function(){t.scrollBarVisible=!1,e.iv(),delete t.hideTimer},1e3)}function Do(){xo.clear()}function Io(e,t,i,r,a,n,o){var l,s,d=i.downPoint,h=i.startY,c=i.startX,i=i.type,u=e.comp,e=e.prefix;return i===T?a&&(s=h+(d.y-n.y)/a.scale,a.range[0],a.range[1],Yr(t,u,"translateY",s=o?xr(s,a.range):s,e)):i===P?r&&(l=c+(d.x-n.x)/r.scale,r.range[0],r.range[1],Yr(t,u,"translateX",l=o?xr(l,r.range):l,e)):i===I&&(r&&(l=c+(n.x-d.x),r.range[0],r.range[1],Yr(t,u,"translateX",l=o?xr(l,r.range):l,e)),a)&&(s=h+(n.y-d.y),a.range[0],a.range[1],Yr(t,u,"translateY",s=o?xr(s,a.range):s,e)),[l,s]}function To(e,t){var i=!(2r[1]&&(r.reverse(),d=!d),o&&(l=e.params.min,s=e.params.max,i=(n=_slicedToArray(r,2))[0],(n=n[1])-i{function t(){return e.call(this)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onEnter=function(e,t,i){xo.pushScrollTarget(t),t.ui.pauseAuto=!0,t.instance&&t.instance.isHoverPause()&&(delete t.ui.walkStopTime,delete t.ui.walkTarget)},i.onLeave=function(e,t,i){xo.popScrollTarget(),C.isCompDragging(t)||(delete t.ui.pauseAuto,t.data.iv())},i.onMove=function(e,t,i){var r,a,n,o,l;if(!C.isDragging())return n=(r=t.ui).hBar,o=(a=t.params).scrollbarGap,o=r.interactiveSize+o,l={x:(t=t.rect).x+t.width-o,y:t.y,width:o,height:t.height+(void 0===(l=a.heightOffset)?0:l)},t={x:t.x,y:t.y+t.height-o,width:t.width+(void 0===(t=a.widthOffset)?0:t),height:o},!(!(r.vBar&&de(l,i)||n&&de(t,i))||!a.scrollable)||void 0},i.onDown=function(e,t,i){var t=t.ui,r=t.momentumAnimX,a=t.momentumAnimY;r&&(r.pause(),delete t.momentumAnimX),a&&(a.pause(),delete t.momentumAnimY)},i.onUp=function(e,t,i){var r=t.ui,a=t.params,t=t.rect,n=r.hBar,o=a.scrollbarGap,l=a.widthOffset,s=a.heightOffset,o=r.interactiveSize+o,s={x:t.x+t.width-o,y:t.y,width:o,height:t.height+(void 0===s?0:s)},t={x:t.x,y:t.y+t.height-o,width:t.width+(void 0===l?0:l),height:o},l=!1;return l=r.vBar&&de(s,i)&&a.scrollable||n&&de(t,i)&&a.scrollable?!0:l},i.onBeginDrag=function(e,t,i){var r,a,n,o,l,s,d,h,c,u;if(!C.isDragging())return r=t.ui,a=t.rect,n=r.hBar,o=r.vBar,c=r.momentumAnimY,d=(t=t.params).scrollbarGap,l=t.pannable,s=void 0===(s=t.widthOffset)?0:s,u=void 0===(u=t.heightOffset)?0:u,d=r.interactiveSize+d,(h=r.momentumAnimX)&&(h.pause(),delete r.momentumAnimX),c&&(c.pause(),delete r.momentumAnimY),h={x:a.x+a.width-d,y:a.y,width:d,height:a.height+u},u=!(c={x:a.x,y:a.y+a.height-d,width:a.width+s,height:d}),o&&de(h,i)&&t.scrollable?(r.dragInfo={type:T},u=!0):n&&de(c,i)&&t.scrollable?(r.dragInfo={type:P},u=!0):(n||o)&&(pi(l)?l():l)&&(r.dragInfo={type:I}),r.dragInfo&&(r.dragInfo.dragV={x:0,y:0},r.dragInfo.downPoint=i,r.dragInfo.downClientPoint={x:t.translateX,y:t.translateY},r.dragInfo.startTime=e.timeStamp,r.dragInfo.startX=t.translateX,r.dragInfo.startY=t.translateY),r.scrollBarVisible=!0,r.hideTimer&&clearTimeout(r.hideTimer),!!u||void 0},i.onDrag=function(e,t,i){var r=t.ui,a=t.params,n=r.hBar,o=r.vBar,r=r.dragInfo,l=t.instance,l=(l.data,l.view);if(r){if(r.type===I){var s=a.pannable;if(!(pi(s)?s():s))return}!C.isDragging()&&$t(i,r.downPoint)>3/Jr(l)&&C.startDragging(t,e),40>31)+1),c=function(t){var e=_slicedToArray(m.range,2),i=e[0],e=e[1];(x.startY!==i&&s>31)+1),p=function(t){var e=_slicedToArray(w.range,2),i=e[0],e=e[1];(x.startX!==i&&l{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.setDataModel=function(e){var t=1{function e(){var e=i.apply(this,arguments)||this;return e._innerPrefix="slider",e}_inheritsLoose(e,i);var t=e.prototype;return t.init=function(e,t){i.prototype.init.call(this,e,t);var a=this,e=a.params,t=e.marks,t=void 0===t?[]:t,n=e.min,o=e.max,l=e.markStyle.font;a.markLabelInfos=t.map(function(e){if(e){var t=e.value,i=e.font,i=void 0===i?l:i,r=e.label,e=e.formatter;if(!(tn/2?1:0)*(o<0?-n:n)),this.judgeMarkValue(this._getPointByValue(i))),t=(ae(e)&&(i=e),this.getPrecision());return parseFloat(i.toFixed(t))},t.drawValueTip=function(e,t){var i=this.params,r=i.vertical,a=i.disabledStyle,a=void 0===a?{}:a,i=i.valueTipStyle,i=void 0===i?{}:i,n=i.labelColor,o=i.font,l=i.otherSide,i=i.gap,s=this.formatToolTip(t+"",{value:t}),t=this._getPointByValue(t),n=this.getColor(n,a.valueTipLabelColor);e.font=o,r?(e.textBaseline=se,e.textAlign=l?oe:le,re(n)&&(a=fe(o,s),(r={x:ie,y:t.y-.5*a.width,width:a.width,height:a.height}).x=l?t.x-i-a.width:t.x+i,n=ge(e,r,n)),e.fillStyle=n,e.fillText(s,t.x+(l?-i:i),t.y)):(e.textBaseline=l?me:ne,e.textAlign=be,re(n)&&(a=fe(o,s),(r={x:t.x-.5*a.width,y:ie,width:a.width,height:a.height}).y=l?t.y-i-a.height:t.y+i,n=ge(e,r,n)),e.fillStyle=n,e.fillText(s,t.x,t.y+(l?-i:i)))},t.getPrecision=function(){var e=this.params,t=e.value,e=e.step,t=(t+"").split("."),e=(e+"").split("."),t=1{function t(){return e.call(this)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onHover=function(e,t,i){var r=t.instance,a=t.params,t=he(t.ui.sliderRect),n=a.toolTipEnabled;return ii(t,2),de(t,i)&&n?(t=Z(t=a.value)?0:t,r.showLabelToolTip(e,t,{value:t})):C.isDragging()||x.hide(),!0},i.onDown=function(e,t,i){var r=t.instance,a=t.params;if(!a.disabled)return r.checkHit(i,e)===vt&&To(t,i),!0},i.onUp=function(e,t,i){return!0},i.onMove=function(e,t,i){x.hide()},i.onEnter=function(e,t,i){var r=t.params,a=r.disabledStyle||{},t=t.instance.view;r.disabled?a.cursor&&Q(t,a.cursor):Q(t,qe)},i.onLeave=function(e,t,i){Q(t.instance.view,B),C.isDragging()||x.hide()},i.onBeginDrag=function(e,t,i){var r;if(!C.isDragging())return r=t.instance,!t.params.disabled&&r.checkHit(i,e)===wt?(C.startDragging(t,e),t.ui.beginValue=t.params.value,!0):void 0},i.onDrag=function(e,t,i){var r;C.isCompDragging(t)&&(r=t.params,To(t,i,r.instant),t.instance.showLabelToolTip(e,i=r.value,{value:i}))},i.onEndDrag=function(e,t,i){var r=t.params,a=r.disabled,n=r.instant,r=r.value;if(!a)return C.isCompDragging(t)&&(n||(a=t.ui.beginValue,r!==t.ui.beginValue&&t.instance.fireEvent({kind:Ao.EVENT_CHANGE,oldValue:a,newValue:r})),delete t.ui.beginValue,C.endDragging()),x.hide(),!0},t})(wo)),Eo=(t=>{function e(){var e=t.apply(this,arguments)||this;return e._innerPrefix="rangeSlider",e}_inheritsLoose(e,t);var i=e.prototype;return i.getValueBarRect=function(){var e=this.params,t=e.min,i=e.max,r=e.vertical,a=e.reverse,n=e.valueBarStyle,n=void 0===n?{}:n,e=_slicedToArray(e.value,2),o=e[0],e=e[1],l=this.drawInfo.ui.barRect,s=he(l),d=this.rect,h=i-t;return r?(s.height=s.height*(e-o)/h,s.y=a?l.y+(o-t)*l.height/h:l.y+(i-e)*l.height/h,n.width&&(s.x=d.x+(d.width-n.width)/2,s.width=n.width)):(s.width=s.width*(e-o)/h,s.x=a?l.x+(i-e)*l.width/h:l.x+(o-t)*l.width/h,n.width&&(s.y=d.y+(d.height-n.width)/2,s.height=n.width)),this.drawInfo.ui.valueBarRect=s},i.isInRange=function(e){return br(e,this.params.value)},i.drawSlider=function(e){var t=this,i=t.params,r=t.drawInfo,a=_slicedToArray(i.value,2),n=a[0],o=a[1],a=(r.ui.sliderRect=t._drawSlider(e,n),r.ui.sliderRect2=t._drawSlider(e,o),i.valueTipStyle),r=void 0===a?{}:a,a=r.draw;r.enabled&&(r=function(){t.drawValueTip(e,n),t.drawValueTip(e,o)},a?a(e,{defaultDraw:r,values:i.value,formattedTexts:[t.formatText(n+"",i.toolTipFormatter,i.getToolTipFormatter),t.formatText(o+"",i.toolTipFormatter,i.getToolTipFormatter)],points:[t._getPointByValue(n),t._getPointByValue(o)],params:i},t.data,t.view):r())},i.getDefaultFomatter=function(e){return ae(e.valueMax)?"{a}, {b}":null},i.toToolTipTemplateList=function(e,t){return ae(t.valueMax)?[e,t.valueMax]:[e]},i.checkHit=function(e,t){var i,r,a,n=this.drawInfo.ui,o=n.barRect,l=n.sliderRect2,s=n.valueBarRect,n=he(n.sliderRect),l=he(l),o=he(o),s=he(s),d=[o,n,l,s];return d.forEach(function(e){return ii(e,2)}),ui(t)&&(i=this.params.vertical,r=Jr(this.view),a=this.rect,d.forEach(function(e){i?e.width*r<50&&(e.width=te(a.width,50/r)):e.height*r<50&&(e.height=te(a.height,50/r))})),de(n,e)?wt:de(l,e)?mt:de(s,e)?yt:de(o,e)?vt:void 0},e})(Ao),ko=i(Eo,[].concat(Co,["trackDraggable","minRange"]),ee,function(e){e.included=!0}),Lo=mo((e=>{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onDown=function(e,t,i){var r=t.instance,a=t.params,n=t.ui;if(!a.disabled)return n=n.valueBarRect,!(a.trackDraggable&&de(n,i)||r.checkHit(i,e)!==vt)?(Bo(t,i),!0):void 0},i.onUp=function(e,t,i){return!0},i.onEnter=function(e,t,i){var r=t.instance,r=r.view,a=t.params.disabledStyle||{};t.params.disabled?a.cursor&&Q(r,a.cursor):Q(r,qe)},i.onLeave=function(e,t,i){Q(t.instance.view,B),C.isDragging()||x.hide()},i.onMove=function(e,t,i){x.hide()},i.onHover=function(e,t,i){var r,a,n=t.params,o=t.ui,t=t.instance,l=o.sliderRect,s=o.sliderRect2,o=o.valueBarRect,d=n.toolTipEnabled,n=n.value;d&&(a=(d=_slicedToArray(n,2))[0],d=d[1],de(l,i)?r=a:de(s,i)?r=d:de(o,i)?r=n:C.isDragging()||x.hide(),ae(r))&&(a={value:l=r},re(r)&&(l=r[0],a.valueMax=r[1]),t.showLabelToolTip(e,l,a))},i.onBeginDrag=function(e,t,i){var r=t.params,a=t.ui,n=t.instance;if(!r.disabled){var o=r.trackDraggable,l=r.value,n=n.checkHit(i,e),l=_slicedToArray(l,2),s=l[0];if(n===wt)a.fixedValue=l[1];else if(n===mt)a.fixedValue=s;else{if(!o||n!==yt)return;a.beginValue=t.instance.judgeValue(i)}a.beginRange=r.value,C.startDragging(t,e)}},i.onDrag=function(e,t,i){var r,a=t.params,n=t.ui,o=t.instance,l=n.fixedValue,s=n.beginValue,d=a.min,h=a.max,c=a.value,a=a.instant;C.isDragging()&&(ae(l)?(l=Bo(t,i,a),o.showLabelToolTip(e,l,{value:l})):ae(s)&&(l=(o=t.instance).judgeValue(i),r=l-s,i=c.map(function(e){return e+r}),s=c[1]-c[0],i[0]h&&(i[0]=h-s,i[1]=h),n.beginValue=l,Vo(t,i,a),o.showLabelToolTip(e,i[0],{value:i,valueMax:i[1]})))},i.onEndDrag=function(e,t,i){var r=t.ui,a=t.params,n=(a.disabled,a.instant),a=a.value;C.isCompDragging(t)&&!n&&r.beginRange.join(",")!==a.join(",")&&t.instance.fireEvent({kind:Ao.EVENT_CHANGE,oldValue:r.beginRange,newValue:a}),delete r.beginValue,delete r.fixedValue,x.hide(),C.endDragging()},t})(wo)),Jo=i((n=>{function e(){var e=n.apply(this,arguments)||this;return e._innerPrefix="multipleSlider",e}_inheritsLoose(e,n);var t=e.prototype;return t.init=function(e,t){n.prototype.init.call(this,e,t),this.dm(t.dataModel)},t.calcPadding=function(){var e=this.params,t=e.sliderStyle,i=void 0===t?{}:t,r=e.vertical,a=n.prototype.calcPadding.call(this)[r?0:1];return this.dm().each(function(e){e=e.getStyleMap()||{},e=ue(he(i),e);a=ce(a,r?(e.height+e.borderWidth)/2:(e.width+e.borderWidth)/2)}),r?[a,0]:[0,a]},t.drawSlider=function(g){var p,f,e,v,y,w=this,m=w.params,x=w.drawInfo,t=w.dm();t&&t.size()&&(e=m.disabledStyle,p=void 0===e?{}:e,e=m.sliderStyle,f=void 0===e?{}:e,e=m.valueTipStyle,v=void 0===e?{}:e,y=m.valueName,x.ui.sliderUIs=[],t.each(function(e){var t,i=e.getStyleMap()||{},r=e.a(y||"value"),i=ue(he(f),i),a=i.borderWidth,n=i.cornerRadius,o=i.width,l=i.height,s=i.offsetX,d=i.offsetY,h=i.image,c=i.borderColor&&w.toBlendedColor(i.borderColor),u=i.background&&w.toBlendedColor(i.background);!Z(r)&&w.isInRange(r)&&(s={x:(t=w._getPointByValue(r)).x-o/2+s,y:t.y-l/2+d,width:o,height:l},g.save(),i.shadowColor&&Ma(g,i),h?Y(g,h,s,e,w.view,w.getBodyColor()):(g.beginPath(),ye(g,s,n),u&&(g.fillStyle=ge(g,s,w.getColor(u,p.sliderBackground)),g.fill()),a&&(g.lineWidth=a,g.strokeStyle=w.getColor(c,p.sliderBorderColor),g.stroke())),x.ui.sliderUIs.push({data:e,rect:s,value:r}),g.restore(),v.enabled)&&(t=function(){w.drawValueTip(g,r)},(d=v.draw)?d(g,{defaultDraw:t,data:e,value:r,formattedText:w.formatText(r+"",m.toolTipFormatter,m.getToolTipFormatter,e),point:w._getPointByValue(r),params:m},w.data,w.view):t())}))},t.drawImpl=function(e,t,i){this.drawBar(e),this.drawMarks(e),this.drawSlider(e)},e})(Ao),[].concat(Co,["dataModel","valueName"])),Ro=mo((e=>{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onHover=function(e,t,i){var r=t.params,a=t.instance;r.toolTipEnabled&&(r=So(t.ui.sliderUIs,i))&&a.showLabelToolTip(e,r.value,{value:r.value,data:r.data})},i.onMove=function(e,t,i){var r=t.params,a=t.ui,t=t.instance.view,n=r.disabled,r=r.disabledStyle,r=void 0===r?{}:r;x.hide(),n?r.cursor&&Q(t,r.cursor):(n=a.sliderUIs,Q(t,So(n,i)?qe:B))},i.onLeave=function(e,t,i){Q(t.instance.view,B),C.isDragging()||x.hide()},i.onBeginDrag=function(e,t,i){var r=t.params,a=t.ui;r.disabled||(r=So(a.sliderUIs,i))&&(a.draggingSliderUI=r,C.startDragging(t,e))},i.onDrag=function(e,t,i){var r,a=t.params,n=t.ui,o=t.instance;C.isCompDragging(t)&&n.draggingSliderUI&&(i=t.instance.judgeValue(i),r=a.toolTipEnabled,a.getToolTipFormatter,a.toolTipFormatter,(a=n.draggingSliderUI.data.a("value"))!==i&&(n.draggingSliderUI.data.a("value",i),t.instance.fireEvent({kind:Ao.EVENT_CHANGE,oldValue:a,newValue:i,data:n.draggingSliderUI.data})),r)&&o.showLabelToolTip(e,i,{value:i,data:n.draggingSliderUI.data})},i.onEndDrag=function(e,t,i){t.params;t=t.ui;t.draggingSliderUI&&(delete t.draggingSliderUI,x.hide(),C.endDragging())},t})(wo));function Mo(e,t,i){return e=gn(e),t=gn(t),i=gn(i),e<=t?e<=i&&i<=t?0:Math.abs(i-e){function e(){var e=a.apply(this,arguments)||this;return e._innerPrefix="arcSlider",e}_inheritsLoose(e,a);var t=e.prototype;return t.init=function(e,t){var i,r=this.params||{},e=(a.prototype.init.call(this,e,t),this.drawInfo.ui);vn(pe(r.padding),pe(t.padding))&&delete e.center,e.center||(t=(r=Wr(this.getCloneRect(),t.padding)).x,i=e.center={x:t+.5*(t=r.width),y:r.y+.5*(r=r.height)},t=e.radius=ce(1,.5*t,.5*r),e.boundRect={x:i.x-t,y:i.y-t,width:2*t,height:2*t})},t.handleRectChange=function(){delete this.drawInfo.ui.center},t.arcPath=function(e,t,i,r){var a=this.ui,n=this.params,n=(i=Z(i)?n.startAngle:i)<(r=Z(r)?n.endAngle:r),o=a.center,a=a.radius,t=.5*t,l=dr(t,a),i=i+l,r=r-l,l=a+t,s=a-t,n=n==in/2?1:0)*(i<0?-n:n));a=this.judgeMarkValue(this._getPointByValue(t));return ae(a)?a:(o=this.getPrecision(),parseFloat(t.toFixed(o)))},t.getSliderRotation=function(e){return this.caluTheta(e)+j/2},e})(Ao),zo=i(Xo,[].concat(Co,["included","startAngle","endAngle","padding"])),Qo=Eo.prototype,Eo=i((t=>{function e(){var e=t.apply(this,arguments)||this;return e._innerPrefix="arcRangeSlider",e}_inheritsLoose(e,t);var i=e.prototype;return i.drawSlider=function(e){Qo.drawSlider.call(this,e)},i.getDefaultFomatter=function(e){return Qo.getDefaultFomatter.call(this,e)},i.toToolTipTemplateList=function(e,t){return Qo.toToolTipTemplateList.call(this,e,t)},i.drawValueBar=function(e){var t,i,r=this,a=r.params,n=r.ui,o=a.barStyle,l=void 0===o?{}:o,o=a.valueBarStyle,s=void 0===o?{}:o,o=a.disabledStyle,o=void 0===o?{}:o,d=a.reverse,h=s.background,c=s.borderColor,u=s.borderWidth,g=_slicedToArray(a.value,2),p=g[0],f=g[1];p!==f&&(g=n.center,i=n.boundRect,t=n.radius,h=r.getColor(h,o.valueBarBackground),c=r.getColor(c,o.valueBarBorderColor),h=h&&ge(e,i,h),o=function(){d?r.arcPath(e,s.width||l.width,r.caluTheta(f),r.caluTheta(p)):r.arcPath(e,s.width||l.width,r.caluTheta(p),r.caluTheta(f)),h&&(e.fillStyle=h,e.fill()),c&&u&&(e.strokeStyle=c,e.lineWidth=u,e.stroke())},(i=s.draw)?i(e,{center:g,radius:t,defaultDraw:o,params:a},r.data,r.view):o(),n.valueColor=h)},i.checkHit=function(e,t){var i,r=this.ui,a=r.center,n=r.radius,o=r.sliderRect2,r=he(r.sliderRect),o=he(o),l=[r,o],t=(l.forEach(function(e){return ii(e,2)}),ui(t)),s=Jr(this.view);if(t&&(i=this.rect,l.forEach(function(e){e.width*s<50&&(e.width=te(i.width,50/s)),e.height*s<50&&(e.height=te(i.height,50/s))})),de(r,e))return wt;if(de(o,e))return mt;t=this.params,l=t.barStyle,r=t.valueBarStyle,o=t.startAngle,t=t.endAngle,r=ce((void 0===r?{}:r).width||0,(void 0===l?{}:l).width||0)+s/4,l=$t(e,a),e=dr(e.y-a.y,e.x-a.x);if(br(l,[n-.5*r,n+.5*r])){a=_slicedToArray(this.params.value,2),l=a[0],n=a[1];if(l!==n){r=this.caluTheta(l),a=this.caluTheta(n);if(br(e,a{function i(e,t,i){return r.call(this,e,t,i)||this}_inheritsLoose(i,r);var e=i.prototype;return e.getRawValue=function(){return this.params.value},e.getValue=function(){var e=0{function r(e,t,i){var r=3{function l(){return e.apply(this,arguments)||this}_inheritsLoose(l,e);var t=l.prototype;return t.init=function(){this.input=this.createElement(),this.input.spellcheck=!1,this.input.addEventListener("mousedown",function(e){e.stopPropagation()}),this.input.addEventListener("touchstart",function(e){e.stopPropagation()})},t.createElement=function(){return ga()},t.layoutDropDown=function(){this.dropdown&&this.dropdown.layout(this.lastGraphRect,this.view)},t.startProtect=function(){var e=this,t=e.data,i=e.view;e.clearProtect(),e.protectInterval=setInterval(function(){t.dm()&&i.getView().parentNode||(e.setKeeping(!1),e.endEdit(),e.clearProtect()),gi&&pa(e.view)&&e.layoutHTML()})},t.clearProtect=function(){this.protectInterval&&(clearInterval(this.protectInterval),delete this.protectInterval)},t.initInputStyle=function(e){var t=this.input,i=t.style,r=e.color,a=e.maxLength,n=e.readonly,o=e.align,l=e.padding,s=e.font,d=e.lineHeight,e=e.textShadow;a&&(t.maxLength=a),n&&(t.readOnly=n,i.visibility="hidden"),r&&(i.color=r),s&&(i.font=s),o&&(i.textAlign=o),e&&(i.textShadow=e),l&&(t=(a=_slicedToArray(pe(l),4))[0],n=a[1],r=a[2],s=a[3],i.paddingTop=t+D,i.paddingRight=n+D,i.paddingBottom=r+D,i.paddingLeft=s+D),d&&(i.lineHeight=d+D),fa(this.view)||(i.opacity="1",i.pointerEvents="auto")},t.beginEditImpl=function(e,t){var i=2{function h(){return i.apply(this,arguments)||this}_inheritsLoose(h,i);var e=h.prototype;return e.init=function(e,t){i.prototype.init.call(this,e,t),this.translateX=this.getInnerAttr("translateX",0),this.translateY=this.getInnerAttr("translateY",0),this.dm(t.dataModel),this.dm().each(function(e){delete e[jo]}),this.triggerEvent=!(null==(e=t.disabledStyle)||!e.triggerEvent),delete this._borderReducedRect},e.getRowStyle=function(e){var t,i,r,a;return e[jo]||(this.dm(),t=(a=this.params).labelStyle,i=void 0===(i=a.hoverStyle)?{}:i,r=void 0===(r=a.selectStyle)?{}:r,a=void 0===(a=a.disabledStyle)?{}:a,e[jo]={labelStyle:ue({},void 0===t?{}:t,e.s(ut)),hoverStyle:ue({},i,e.s("hoverStyle")),selectStyle:ue({},r,e.s("selectStyle")),disabledStyle:ue({},a,e.s("disabledStyle"))}),e[jo]},e.getCheckIcon=function(e){var t=this.sm,i=this.params,r=i.checkMode,i=i.checkIconStyle,i=void 0===i?{}:i,a=i.checkIcon,n=i.uncheckIcon,o=i.halfCheckIcon;if(r!==He)return t.co(e)?a:n;if(t.co(e))return a;if(e.hasChildren())for(var l=t.getSelection().toArray(),s=0,d=l.length;st.width||r+l+o[2]>t.height?(Qr(a,ue({scrollWidth:i,scrollHeight:r},this.getScrollAttr()),this.innerPrefix),a[Vt]=this.uuid,zr(e,{draw:"scrollbar",tag:this._innerPrefix},t,a,n),delete a[Vt]):(l=this.getScrollbarInstance())&&l.clear()},e.drawRowLine=function(r,e,t,a){var n,o,l,s,d,h,c,u=4r.x+.75*r.width?t.type="down":t.type="parent":i.yr.y+.75*r.height?t.type="down":t.type="parent":t.type=l?i.x>r.x+.5*r.width?"down":"up":i.y>r.y+.5*r.height?"down":"up"):e?delete t.type:(delete t.targetRowData,t.type=a?"append":ee),(n=t.type)&&e&&(l=t.rowData,r=(i=s.dm().getSiblings(e).toArray()).indexOf(e),"down"===n&&i[r+1]===l||"up"===n&&i[r-1]===l||e.isDescendantOf(l))&&delete t.type,t.type&&(n=(void 0===(a=s.params.rowDragStyle)?{}:a).isDroppable,pi(n))&&!n({sourceData:t.rowData,targetData:t.targetRowData,type:t.type,source:C.source,target:C.target},s.data,s.view)&&delete t.type,d===t.targetRowData&&o===t.type||s.iv()):(delete s.ui.rowDragInfo,s.iv())},e.handleRowEndDrag=function(){var i,r,a,n,o,l,s,d=this,e=d.drawInfo.ui,t=e.rowDragInfo;t&&t.type&&(delete e.rowDragInfo,i=d.dm(),e=(e=C.getDraggingData().selection||i.sm().getSelection().toArray()).includes(t.rowData)?e:[t.rowData],r=function(e,t){e.eachChild(function(e){t.add(e),r(e,t)})},a={keepStructure:!0},t.targetRowData?(n=t.targetRowData,"parent"===(o=t.type)?e.forEach(function(e){e.dm()!==i&&(e.dm().remove(e,a),i.add(e),r(e,i)),e.setParent(n)}):(l=n.getParent(),s=l?l.getChildren():d.dm().getRoots(),e.forEach(function(e){e.dm()!==i&&(e.dm().remove(e,a),i.add(e),r(e,i)),e.setParent(l);var t=s.indexOf(n);"down"===o&&t++,s.indexOf(e)=t.height))return t.y>e.y?(this.data.a("".concat(this.innerPrefix,".translateY"),this.translateY+(t.y-e.y)),!0):e.y+e.height>t.y+t.height?(this.data.a("".concat(this.innerPrefix,".translateY"),this.translateY-(e.y+e.height-(t.y+t.height))),!0):void 0}},e.getBodyRect=function(){return this.rect},e.isEditable=function(e){var t;return(t=this.params.isEditable)?t({rowData:e},this.data,this.view):!e.s("disabled")&&!1!==e.s("editable")},e.beginEditing=function(e,a){var n,t,o,l=this,i=l.params,r=i.editorClass,s=i.editorOption,s=void 0===s?{}:s,i=i.labelStyle,i=void 0===i?{}:i,r=jt(r),d=l.drawInfo.ui.editingRow;r&&l.isEditable(a)&&d!==a&&(l.editor&&l.endEditing(),l.makeRowVisible(a)?l._editingCache={event:e,row:a}:(d=l.data,e=Ir(t=l.view,d,l.comp,e),r=l.editor=new r(d,t),d=l.getRowUI(a),n=Z(a.getDisplayName())?"name":"displayName",i=(t=ue({font:i.font,color:i.color,align:i.align,padding:l.params.rowPadding,enterEndable:!0,escCancelable:!0,selectTextOnFocus:!0},s)).getValue,o=t.setValue,r.addListener(function(e){var t,i,r;e.kind===Ho.END_EDIT&&(r={kind:h.EVENT_END_EDITING,rowData:l.drawInfo.ui.editingRow,value:e.isCancel?ie:e.value},l.fireEvent(r),r[rt]||e.isCancel||(o?o(a,r.value):(e=a,i=n,r=r.value,"a"===(t="p")?e.a(i,r):"s"===t?e.s(i,r):e[t=ni(i)]&&e[t](r))),delete l.drawInfo.ui.editingRow,delete l.editor,l.iv())}),s={kind:h.EVENT_BEGIN_EDITING,rowData:a,value:i?i(a):Fa(a,"p",n)},l.fireEvent(s),s[rt]?delete l.editor:(l.drawInfo.ui.editingRow=a,r.beginEdit(d.rect,e.matrix,s.value,t))))},e.endEditing=function(){var e=this.editor;e&&(e.endEdit(),this.fireEvent({kind:h.EVENT_END_EDITING,rowData:this.drawInfo.ui.editingRow,value:ie}))},e._drawPainter=function(e,t,i){t(e,i,this.data,this.view)},e._drawSeparator=function(e,t){var i=t.x,r=t.y,a=t.width,t=t.height,n=this.params.separatorStyle,o=_slicedToArray(pe(n.padding),4),l=o[1],o=o[3],s=(e.save(),e.beginPath(),e.moveTo(i+o,r+t/2),e.lineTo(i+a-l,r+t/2),n.width);Ra(e,n,ge(e,{x:i+o,y:r+t/2-s/2,width:a-o-l,height:s},n.color)),e.stroke(),e.restore()},e.handleMM=function(e,t,i){var r,a;e.kind===et?(this._dmMap={},this._transitionMap={},this.drawInfo.ui.rowUIs=[],this.resetTranslate()):(a=e.kind===$e,((r="add"===e.kind)||a)&&(a&&(a=e.data.getId(),this.removeTransition("rowDY".concat(a)),this.removeTransition("".concat(Go).concat(a))),r&&this.transitionAddList.push(e.data),this.translateUpdate=!0))},e.handleMH=function(e,t,i){this.translateUpdate=!0},e.checkHitRow=function(e){var t=this.drawInfo.ui.rowUIs;if(t&&t.length)for(var i=0,r=t.length;i{function e(){var e=t.apply(this,arguments)||this;return e._innerPrefix="list",e}_inheritsLoose(e,t);var i=e.prototype;return i.judgeTextContentRect=function(e){var t,i=this,r=e.textRect,a=i.params,n=a.labelStyle,n=void 0===n?{}:n,o=a.getRowHeight,l=a.rowPadding,s=n.overflow,d=null,a={position:"inside",overflow:Me,align:n.align,vAlign:se,rich:n.rich,font:e.isTitle&&a.titleStyle.font||i.getStateProperty(e),lineHeight:n.lineHeight},n={content:e.rawText,style:a};Ye===s?(t=r.width,d=Qn({x:0,y:0},n,i.data,i.view),e.textRect.width=d.textBoxRect.width,d=Qn(e.textRect,n,i.data,i.view),r.width=ce(t,d.textBoxRect.width)):Me===s||Xe===s?(a.width=r.width,a.overflow=s,o&&(a.height=r.height),d=Qn(e.textRect,n,i.data,i.view)):(a.width=r.width,a.overflow=s,o&&(a.height=r.height),d=Qn(e.textRect,n,i.data,i.view),s=(t=_slicedToArray(pe(l),4))[0],a=t[2],r=d.textBoxRect.height,!o&&r+s+a>e.rect.height&&(e.textRect.height=r,e.rect.height=r+s+a,d=Qn(e.textRect,n,i.data,i.view))),e.textLayoutInfoUI=d},i._buildRows=function(){var c=this,e=(c.drawInfo,c.params),u=c.sm,g=c.translateUpdate,t=e.sortFunc,p=e.checkMode,i=e.labelStyle,i=void 0===i?{}:i,r=e.checkIconStyle,f=void 0===r?{}:r,r=e.iconStyle,v=void 0===r?{}:r,y=e.titleStyle,r=e.rowPadding,w=c.getRowLineWidth(),e=c.borderReducedRect,m=e.x,a=e.y,x=e.width,b=c.translateX,e=c.translateY,r=_slicedToArray(pe(r),4),D=r[0],I=r[1],T=r[2],V=r[3],B=p?f.width+f.rightGap:0,S=v.width+v.rightGap,r=i.overflow||Me,i=c.getVisibleDatas(),U=i.length,P=(t&&i.sort(t),[]),C=c.rowLineYList=[],A=a+e;c.contentWidth=x,c.contentHeight=w*(U-1),c._dmMap={},i.forEach(function(e,t){var i,r,a,n,o,l=c.getRowHeight(e,t),s=e.s(Pe),d="rowDY".concat(e.getId()),h=A,d=(g||c.hasTransition(d)?h=c.getTransitionValue(d,A):c.setTransitionToValue(d,A),{x:m+b,y:h,width:x,height:l});s===We?r={rect:d,selectable:!1,data:e,index:t,rawText:ie,separator:!0,contentWidth:d.width}:(i=(s=e.s(Pe)===je)?y.indent:0,(r={rect:d,data:e,rawText:c.getLabel(e),isHovering:c.drawInfo.ui.hoverData===e,isSelected:p&&c.isFocusData(e)||!p&&u.co(e),disabled:c.isDisabled(e),selectable:!s&&c.isSelectable(e),badgeUIs:[],isTitle:s,index:t}).icon=c.getIcon(r),d=B+(r.icon||v.mask?S:0)+i,r.textRect={x:m+b+V+d,y:h+D,width:ce(0,x-d-V-I),height:ce(0,l-D-T)},c.judgeTextContentRect(r),r.contentWidth=r.textRect.width+d+I+V,p&&!s&&(d=f.width,o=f.height,a=f.offsetX,n=f.offsetY,!r.selectable&&f.hideWhenUnselectable||(r.checkRect={x:b+m+V+(void 0===a?0:a),y:h+l/2-o/2+(void 0===n?0:n),width:d,height:o})),(r.icon||v.mask)&&(a=v.width,n=v.height,d=v.offsetX,o=v.offsetY,r.iconRect={x:V+b+m+(void 0===d?0:d)+(s?i:B),y:h+l/2-a/2+(void 0===o?0:o),width:a,height:n})),r.data._selectable_=r.selectable,P.push(r),c._dmMap[e.getId()]=r,A+=r.rect.height,c.contentHeight+=r.rect.height,w&&t!==U-1&&(C.push(A+w/2),A+=w)}),r===Ye&&(c.contentWidth=Wa([x].concat(_toConsumableArray(P.map(function(e){return e.contentWidth}))),!0),P.forEach(function(e){e.rect.width=c.contentWidth})),c.drawInfo.ui.rowUIs=P},i.toGetFuncParams=function(e){return{rowData:e.data,index:e.index,isHovering:e.isHovering,isSelected:e.isSelected,isDisabled:e.disabled,isSeparator:e.separator}},i.drawDragHelper=function(e){var t,i,r=this.drawInfo.ui.rowDragInfo;r&&(t=r.rowData,i=r.targetRowData,r=r.type,t)&&r&&this.drawRowDragHelper(e,t,i,r,this.borderReducedRect,i&&this.getRowUI(i).rect)},i.caluSize=function(){var i=this.data,r=this.params={},e=i.a("borderStyle"),e=(null==e?void 0:e.width)||0;return this.rect={x:0,y:0,width:0,height:0},_o.forEach(function(e){var t=i.a(e);t instanceof ht.DataModel?r[e]=t:r[e]=he(t)}),r.labelStyle.overflow=Ye,r.iconStyle.mask=!1,this.setDataModel(r.dataModel),this._buildRows(),{width:this.contentWidth+e,height:this.contentHeight+e}},i.getDraggingImageInfo=function(){var e,t,i,r=this.drawInfo.ui.rowDragInfo;return r?(e=qt(),r=this.getRowUI(r.rowData),t=Jr(this.view),i=e.getContext("2d"),bi(e,r.rect.width*t,r.rect.height*t),i.scale(t,t),this.drawRow(i,r,!0),{element:e}):null},i.drawRow=function(i,r){function e(){var e,t;r.separator?a._drawSeparator(i,r.rect):y?Y(i,y,r.rect,a.drawInfo.toDrawData(r.data),a.view):(e=Me===h.overflow,t=a.getStateProperty(r,h.shadowColor,R),e&&cn(i,r.textRect),t&&(e||i.save(),Ma(i,ue({},h,{shadowColor:t}))),Yn(i,{style:{font:r.isTitle&&c.font||a.getStateProperty(r),color:r.isTitle&&c.color||a.getLabelColor(r),rich:h.rich},iconData:r.data},r.textLayoutInfoUI,a),(e||t)&&i.restore())}var a=this,t=1,n=a.params,o=a.data,l=a.view,s=n.rowIcon,d=n.labelStyle,h=void 0===d?{}:d,c=n.titleStyle,d=n.drawRow,u=r.rect,g=u.x,p=u.y,f=u.width,u=u.height,v=(2{function e(){var e=o.apply(this,arguments)||this;return e._innerPrefix="tree",e}_inheritsLoose(e,o);var t=e.prototype;return t.judgeTextContentRect=function(e){var t,i=this,r=e.textRect,a=i.params,n=a.labelStyle,n=void 0===n?{}:n,o=a.getRowHeight,l=a.rowPadding,s=n.overflow,d=null,a={position:"inside",overflow:Me,align:le,vAlign:se,rich:n.rich,font:e.isTitle&&a.titleStyle.font||i.getStateProperty(e),lineHeight:n.lineHeight},n={style:a,content:e.rawText};Ye===s?(t=r.width,d=Qn({x:0,y:0},n,i.data,i.view),e.textRect.width=d.textBoxRect.width,d=Qn(e.textRect,n,i.data,i.view),r.width=ce(t,d.textBoxRect.width)):Me===s||Xe===s?(a.width=r.width,a.overflow=s,o&&(a.height=r.height),d=Qn(e.textRect,n,i.data,i.view)):(a.width=r.width,a.overflow=s,o&&(a.height=r.height),d=Qn(e.textRect,n,i.data,i.view),s=(t=_slicedToArray(pe(l),4))[0],a=t[2],r=d.textBoxRect.height,!o&&r+s+a>e.rect.height&&(e.textRect.height=r,e.rect.height=r+s+a,d=Qn(e.textRect,n,i.data,i.view))),e.textLayoutInfoUI=d},t._buildRows=function(){var t=this,e=t.dm(),e=(e.each(function(e){e[ft]=t.isVisible(e)}),e.each(function(e){e[ft]||(e[ft]=Cn(e))}),t._buildChildren(),t.params.labelStyle);(void 0===e?{}:e).overflow===Ye&&(t.contentWidth=Wa([t.borderReducedRect.width].concat(_toConsumableArray(t.rawRowUIs.map(function(e){return e.contentWidth}))),!0),t.rawRowUIs.forEach(function(e){e.rect.width=t.contentWidth}))},t.getExpandBoundWidth=function(){var e=this.params.expandIconStyle,t=e.rightGap;return e.width+t},t.getExpandIconX=function(e,t){return e+t+pe(this.params.rowPadding)[3]},t.isSelected=function(e){this.drawInfo;var t=this.sm,i=this.params.checkMode;return i&&this.isFocusData(e)||!i&&t.co(e)},t.isExpandable=function(e){return e.hasChildren()||e.s(tt)},t._buildData=function(e,t){var i,r,a,n=this,o=n.rawRowUIs,l=n.dx,s=n.dy,d=n.rect,h=n.drawInfo,c=n.translateUpdate,u=n.params,g=u.checkMode,p=u.expandIconStyle,p=void 0===p?{}:p,f=u.checkIconStyle,f=void 0===f?{}:f,v=u.iconStyle,v=void 0===v?{}:v,y=u.titleStyle,w=u.rowPadding,u=u.indent,m=n.getRowLineWidth(),x=(p.rightGap,p.width),b=p.height,D=p.offsetX,D=void 0===D?0:D,p=p.offsetY,p=void 0===p?0:p,I=f.width,T=f.rightGap,w=_slicedToArray(pe(w),4),V=w[0],B=w[1],S=w[2],w=w[3],I=g?I+T:0,T=n.getExpandBoundWidth(),U=v.width+v.rightGap,P=e[ft],C=e.s(Pe),C={level:n.currentLevel,rawText:n.getLabel(e),data:e,visible:P,parent:t,children:[],index:null,expandable:n.isExpandable(e),separator:We===C,isTitle:je===C,rect:null};return n._dmMap[e.getId()]=C,P&&(r="rowDY".concat(e.getId()),a=n.getRowHeight(e,n.rawIndex),i=s,c||n.hasTransition(r)?i=n.getTransitionValue(r,s):n.setTransitionToValue(r,s),c={x:l,y:i,width:d.width,height:a},C.separator?ue(C,{rect:c,rawText:ie,index:n.rawIndex}):(r=C.isTitle,ue(C,{rect:c,isHovering:h.ui.hoverData===e,isSelected:n.isSelected(e),disabled:n.isDisabled(e),selectable:n.isSelectable(e),badgeUIs:[],children:[],index:n.rawIndex,icon:n.getIcon(C),isTitle:r}),s=C.selectable||!f.hideWhenUnselectable,h=u*C.level+T+(c=s?I:0)+(C.icon||v.mask?U:0)+(r?y.indent:0),C.textRect={x:l+w+h,y:i+V,width:ce(0,d.width-h-w-B),height:ce(0,a-V-S)},n.judgeTextContentRect(C),C.contentWidth=C.textRect.width+h+B+w,I=l+w+u*C.level,a=C.rect.height,C.expandRect={x:n.getExpandIconX(l,u*C.level)+D,y:i+a/2-b/2+p,width:x,height:b},g&&(U=f.width,d=f.height,V=f.offsetX,S=f.offsetY,s)&&(C.checkRect={x:I+T+(void 0===V?0:V),y:i+a/2-d/2+(void 0===S?0:S),width:U,height:d}),(C.icon||v.mask)&&(h=v.width,B=v.height,w=v.offsetX,l=v.offsetY,C.iconRect={x:(r?y.indent:0)+I+c+T+(void 0===w?0:w),y:i+a/2-h/2+(void 0===l?0:l),width:h,height:B})),n.rawIndex++,C.data._selectable_=C.selectable,o.push(C),n.dy+=a+m,t)&&t.children.push(C),P&&n.isExpand(e)&&(n.currentLevel++,n._buildChildren(C),n.currentLevel--),C},t._buildChildren=function(t){var i=this,e=i.params.sortFunc,r=t?t.data:null,r=r?r.getChildren():i.dm().getRoots();(e?r.sort(e):r).toArray().forEach(function(e){i._buildData(e,t)})},t.init=function(e,t){o.prototype.init.call(this,e,t);e=this.borderReducedRect;this.dx=e.x+this.translateX,this.dy=e.y+this.translateY,this.rawRowUIs=[],this._dmMap={},this.currentLevel=0,this.rawIndex=0},t.drawExpandIcon=function(e,t){var i,r=t.data,a=t.expandRect,n=this.params.expandIconStyle,n=void 0===n?{}:n,o=n.expandIcon,l=n.collapseIcon,s=n.loadingIcon,d=n.width,h=n.height,c=n.expandRotation,n=n.collapseRotation;t.expandable?(i=!!r.s(A),r=this.getTransitionValue("iconRotation".concat(r.getId()),i?c:n),ca(e,!i&&l||o,a,d,h,this.data,this.view,null,r)):t.data.s(it)&&s&&ca(e,s,a,d,h,this.data,this.view)},t.isExpand=function(e){return e===this.drawInfo.ui.expandingData||!!e.s(A)},t.hasParentExpand=function(e){var t=this.drawInfo.ui.expandingData;if(!t)return!1;for(var i=e;i=i.getParent();){if(!i)return!1;if(i===t)return!0}},t.getLastChild=function(e){e=this.getRowUI(e);if(e.visible&&e.children.length)for(var t=e.children,i=t.length-1;0<=i;i--)if(t[i].visible)return t[i];return null},t.drawLinkLine=function(e,c){var u,g,p,f,v,y,w=this,t=w.params,m=w.rawRowUIs,x=w.drawInfo,i=w.rect,r=t.linkLineStyle,r=void 0===r?{}:r,b=t.indent,a=t.expandIconStyle,D=t.checkMode,n=r.visible,I=r.simpleMode,o=m.length;n&&r.width&&(u=(void 0===a?{}:a).width,g=pe(t.rowPadding)[3],p=w.translateX,f=i.x,(n=!!r.pattern)&&e.save(),e.beginPath(),Ra(e,ue({},r,{color:w.toBlendedColor(r.color)})),v={},(y=function(e,t,i){for(var r,a=!1,n=t;n<=i;n++){var o=m[n];if(!o)break;var l,s,d,h=w.isExpand(o.data)&&o.data.hasChildren();I||o.isTitle||!o.expandRect||!o.level||!oi(w.borderReducedRect,o.rect)||w.hasParentExpand(o.data)||v[o.data.getId()]||(d=o.expandRect,s=(d=o.expandable||o.data.s(it)?d:(D&&o.selectable?o.checkRect:o.iconRect)||o.textRect).x,l=o.expandRect.y+o.expandRect.height/2,e.beginPath(),e.moveTo(s-(o.expandable?0:2),l),e.lineTo(s-b+u/2-(d.x-o.expandRect.x),l),e.stroke(),v[o.data.getId()]=1),!r&&h?r=o:r&&(o.level<=r.level&&1r.level)&&(s=f+r.level*b+u/2+g+p,(d=w.getLastChild(r.data))&&(c&&r.data===x.ui.expandingData&&(w.clipRect(e,c),a=!0),e.beginPath(),I?(e.moveTo(s,r.rect.y+r.rect.height),e.lineTo(s,d.rect.y+d.rect.height)):(e.moveTo(s,r.expandRect.y+r.expandRect.height),e.lineTo(s,d.rect.y+r.rect.height/2)),e.stroke(),y(e,r.index+1,o.index),a)&&(e.restore(),a=!1),r=h?o:null)}})(e,0,o),n)&&e.restore()},t.getDefaultValue=function(e){return 0<=e.indexOf("expand")?0:o.prototype.getDefaultValue.call(this,e)},t.handleMD=function(e,t,i){"s:expand"===e.property&&(this.drawInfo.ui.expandingData=e.data)},t.isDrawContent=function(){return!0},t.handleListDrag=function(e,t,i,r,a,n){o.prototype.handleListDrag.call(this,e,t,i,r,a,!0,6Wl||G(l.y-e.y)>Wl)&&t.p(e.x,e.y),r&&(o=t.getSize(),a={width:G(d/t.getScaleX()),height:G(h/t.getScaleY())},G(o.width-a.width)>Wl||G(o.height-a.height)>Wl)&&t.setSize(a.width,a.height)}function dl(e){var t,i=e.getAttaches();if(i)return t=new ht.List,e.getDataModel().eachByBreadthFirst(function(e){i.contains(e)&&t.add(e)}),t}var hl,cl=(e=>{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onHover=function(t,e,i){e.ui;var r,a,n,o,l,s=e.instance,d=e.instance.checkHitRow(i);d&&(r=!1,d.rowUI.badgeUIs&&(a=s.data,n=s.view,d.rowUI.badgeUIs.forEach(function(e){de(e.rect,i)&&e.badge.toolTip&&(x.show(t,{attr:{label:e.badge.toolTip}},a,n),r=!0)})),!r)&&(o=d.rowUI.textLayoutInfoUI,ae(l=!(l=d.data.getToolTip())&&o&&ao(o)?o.richRawText:l)||null!=e&&e.params.getToolTipFormatter)&&s.showLabelToolTip(t,l,{rowData:d.data})},i.onEnter=function(e,t,i){!C.handleEnter(t,e,i)&&(e=t.ui,i=t.instance.checkHitRow(i))&&(e.hoverData=i.data,t.data.iv())},i.onMove=function(e,t,i){!C.isCompDragging(t)&&C.handleDrag(t,e,i)||(rl.apply(this,arguments),x.hide())},i.onLeave=function(e,t,i){var r=t.ui;C.handleLeave(t,e,i)||(x.hide(),r.hoverData&&(i=(e=t.instance).data,e=e.view,t.instance.fireEventWithDisabled({kind:Zo.EVENT_LEAVE_DATA,rowData:r.hoverData}),delete r.hoverData,i.iv(),Q(e,B)))},i.onUp=function(i,e,r){var t,a,n,o,l,s=e.instance,d=s.view,h=s.data;(fa(d)&&d.getReality("VR")||!C.handleDrop(e,i,r,!0))&&(s=e.ui,a=(t=e.params).checkMode,n=e.instance)&&(o=n.checkHitRow(r),e=n.sm,il(n,e,o,s,a,h,t.clearWhenHitBlank),o?(l=null,o.rowUI.badgeUIs&&o.rowUI.badgeUIs.forEach(function(e){var t;de(e.rect,r)&&(t={kind:$o.EVENT_CLICK_BADGE,index:o.index,nativeEvent:i,badge:e.badge,rowData:o.rowUI.data},e.badge.onClick&&e.badge.onClick(t,h,d),n.fireEventWithDisabled(t),l=e.badge)}),e={kind:$o.EVENT_CLICK_DATA,rowData:o.data,index:o.index,hitBadge:l,onCheck:o.onCheck,nativeEvent:i},n instanceof tl&&(e.onExpand=o.onExpand),n.fireEventWithDisabled(e)):n.fireEvent({kind:Zo.EVENT_CLICK_BLANK}))},i.onDoubleClick=function(t,e,i){var r,a=e.instance.checkHitRow(i),n=e.instance,o=n.data,l=n.view;a&&(r=null,a.rowUI.badgeUIs&&a.rowUI.badgeUIs.forEach(function(e){de(e.rect,i)&&(e.badge.onDoubleClick&&e.badge.onDoubleClick(t,e.badge,a.rowUI.data,o,l),n.fireEventWithDisabled({kind:$o.EVENT_DOUBLE_CLICK_BADGE,badge:e.badge,rowData:a.data,index:a.index}),r=e.badge)}),n.fireEventWithDisabled({kind:$o.EVENT_DOUBLE_CLICK_DATA,rowData:a.data,index:a.index,hitBadge:r,onCheck:a.onCheck,nativeEvent:t}),n.beginEditing(t,a.data))},i.onScroll=function(){rl.apply(this,arguments),x.hide()},i.onBeginDrag=function(e,t,i){t.ui.rowDragInfo&&(C.startDragging(t,e),t.data.iv())},i.onDrag=function(e,t,i){C.handleDrag(t,e,i)},i.onEndDrag=function(e,t,i){C.handleDrop(t,e,i)},t})(wo),ul=mo(cl),gl=(a=>{function e(){return a.apply(this,arguments)||this}_inheritsLoose(e,a);var t=e.prototype;return t.init=function(){},t.beginEdit=function(e,t,i,r){this.prefix=r.prefix||Mt(),a.prototype.beginEdit.call(this,e,t,i,r)},t.getElement=function(){return null},t.getRawValue=function(){return this.getValue()},t.beginEditImpl=function(e,t,i){for(var r in this.clientRect=ma(Aa(e,t),this.view),this.initListener(),this.addViewListener(),i)this.data.a("".concat(this.prefix,".").concat(r),i[r])},t.endEditImpl=function(e){var i=this;Vi(function(){var e=i.data.getAttrObject();if(e)for(var t in e)t.startsWith(i.prefix)&&delete e[t]})},e})(Ho),pl=(()=>{function e(e){var t=this;t.master=e,t._isTouch=gi,t.element=t.createElement(),t._isTouch&&(t._maskElement=t.createMaskElement()),t._transition=!1,t._opened=!1,t.popupByDOM=t._isTouch||Ki.popupByDOM,t.popupSizeAbsolute=Ki.popupSizeAbsolute}var t=e.prototype;return t.createMaskElement=function(){var e=Ht();e.style.transition="opacity 0.2s",e.style.position="fixed",e.style.top=0+D,e.style.bottom=0+D,e.style.left=0+D,e.style.right=0+D;return e.addEventListener("touchstart",function(e){e.stopPropagation(),e.preventDefault()},!0),e},t.createElement=function(){function e(e){return e.stopPropagation()}var t=Ht();t.style.transition="all 0.2s",ji(t);return t.addEventListener("touchstart",e),t.addEventListener("mousedown",e),t},t.onOpen=function(){},t.onOpened=function(e){},t.onClose=function(e){},t.onClosed=function(){},t.setWidth=function(e){this.element.style.width=e+D},t.setHeight=function(e){this.element.style.height=e+D},t.layout=function(e,t){var i,r,a,n=ri(),o=this.element.style,l=this.getWidth(),s=this.getHeight();this._isTouch?(o.left=0+D,o.top=n.height-s+D,o.width="100%",o.height=s+D):(this.popupSizeAbsolute||(l*=i=Jr(t),s*=i,this.domZoom=i),i=wa(t.getView()),e=he(e),t instanceof ht.graph.GraphView&&(a=t.tx(),r=t.ty(),t=t.getZoom(),e.x*=t,e.y*=t,e.width*=t,e.height*=t,e.x+=a,e.y+=r),t=ce(0,e.x+i.x),a="50% 0",(r=e.y+e.height+i.y)+s>n.height&&r-e.height>s&&(r=r-s-e.height,a="50% 100%"),t+l>n.width&&(t=n.width-l),o.left=t+D,o.top=r+D,o.width=l+D,o.height=s+D,ya(o,"transformOrigin",a))},t.open=function(e,t,i){var r=this,a=(r.setValue(e),r.onOpen(),r.layout(t,i),r._isTouch&&Qt(r._maskElement),Qt(r.element),r.element.style);ya(a,"transform",r._isTouch?"translateY(100%)":"scaleY(0)"),r._isTouch&&ya(r._maskElement.style,"opacity",0),r._transition=!0,r._opened=!0,Vi(function(){ya(a,"transform",r._isTouch?"translateY(0)":"scaleY(1)"),r._isTouch&&ya(r._maskElement.style,"opacity",1),r.onOpened(r.getValue()),setTimeout(function(){r._transition=!1},200)})},t.close=function(){var e,t=0{function e(e){var t,e=E.call(this,e)||this,i=e,r=(i._width=200,i._height=200,i.node=new ht.Node);return r.setAnchor(0,0),r.s({interactive:!0,pixelPerfect:!1,"select.brightness":1,"2d.movable":!1,"3d.movable":!1,"select.width":0,"shadow.cast":!1,"shadow.receive":!1,"3d.reflectable":!1,"texture.cache":!1,drawing:!0}),i.popupByDOM?(t=(i.gv=i.createGraph()).getView(),i.element.appendChild(t)):i.gv=i.master.view,i.init(),i.popupByDOM&&(r.s({fullscreen:"fill","fullscreen.gap":0}),i.gv.dm().add(r)),e}_inheritsLoose(e,E);var t=e.prototype;return t.createGraph=function(){var e=new ht.graph.GraphView,t=e.getView(),i=e.getView().style;return en(e),i.position="absolute",i.left="0px",i.top="0px",i.right="0px",i.bottom="0px",t.addEventListener("mousedown",function(e){e.stopPropagation()}),t.addEventListener("touchstart",function(e){e.stopPropagation()}),e},t.init=function(){},t.layout=function(e,t){var i=this,r=i.gv,a=i.node;if(i.popupByDOM){var n=i.getWidth(),o=i.getHeight();i.popupSizeAbsolute||i._isTouch||(d=Jr(t),a.setScale(d,d)),a.setWidth(n),a.setHeight(o),E.prototype.layout.call(this,e,t)}else if($a(a,r),pa(r)){var l,s,d=r.getViewRect(),n=d.width,o=e,t=i._getHeight(),e=i._getWidth(),h=1,h=(i.popupSizeAbsolute&&(h=1/Jr(r)),a.setScale(h,h),a.setWidth(e),a.setHeight(t),i._align),c=i._getBottomBoxInfo(),u=c.shadow,g=c.shadowBlur,p=0,f=0,v=0;u&&g&&(p=g,f=c.offsetX,v=c.offsetY),oe===h?(l=o.x+o.width+p+f,a.setAnchorX(1)):be===h?(l=o.x+o.width/2+f,a.setAnchorX(.5)):(l=o.x-p+f,a.setAnchorX(0)),o.y+o.height+td.x+d.width&&(a.setAnchorX(1),a.setX(d.x+d.width+p+f)))}else if(fa(r)){var y=i.master.data,w="plane"===y.s("shape3d"),g=i._getHeight(),m=i._getWidth(),x=(a.setWidth(m*y.getScaleX()),w?(a.setHeight(g*y.getScaleTall()),a.setTall(1)):(a.setTall(g*y.getScaleTall()),a.setHeight(1)),a.setAnchor3d(.5,1,.5),r.getData3dUI(y).interactiveInfo);if(x){var b,D,c=i.master.drawInfo,I=c.comp,T=c.prefix;for(D in x){for(var V=x[D].bodyInfo,B=V.compInfos,S=0;S{function e(e){var e=i.call(this,e)||this,t=e;return t.isolating=!1,t.multiple=!1,e}_inheritsLoose(e,i);var t=e.prototype;return t.init=function(){this.setImage(Lr("list"))},t.getHeight=function(){var e=this.node,e=new $o(null,e,null).caluSize().height;return this._minHeight&&(e=ce(this._minHeight,e)),e=this._maxHeight?te(this._maxHeight,e):e},t.getValue=function(){var e=this.node.a("dataModel");if(e)return this.multiple?e.sm().getSelection().toArray().map(function(e){return e.getName()}):(e=e.sm().ld())&&e.getName()},t.setValue=function(t){var i=this,r=i.node.a("dataModel");i.isolating=!0,r.sm().cs(),r.each(function(e){e.s("renderType")||(i.multiple?t&&0<=t.indexOf(e.getName())&&r.sm().as(e):e.getName()===t&&r.sm().as(e))}),i.isolating=!1},t.setOption=function(e){var r=this,a=new ht.DataModel,n=function(e,t){var i;Z(e)||(i=new ht.Data,t&&i.setParent(t),ci(e)?i.setName(e):(e.isSeparator?i.s(Pe,We):e.isTitle&&i.s(Pe,je),i.setName(e.value),i.setDisplayName(e.label),e.icon&&i.s(F,e.icon),i.a(e),e.children&&e.children.forEach(function(e){n(e,i)})),a.add(i))},o=(e.forEach(function(e){n(e)}),r.multiple&&(r.node.a("checkMode",!0),a.sm().ms(function(e){var t;r.isolating||(t=r.getValue(),r.master.setRawValue(t),r.master.notifier.fire({kind:l,newValue:t}))})),r.node.a("handleEvent"));r.node.a("handleEvent",function(e,t,i){o&&o(e,t,i),e.kind!==Zo.EVENT_CLICK_DATA||r.multiple?"init"===e.kind&&(t=r.node.a("dataModel").sm().ld(),e=(i=r.getListInstance()).getVisibleDatas(),t&&e.includes(t)?i.makeRowVisible(t):r.selectNext()):r.master.endEdit()}),r.node.a("dataModel",a),r.gv.redraw()},t.selectNext=function(){var e=this.node.a("dataModel");if(e){var t=this.getListInstance(),i=t.getVisibleDatas();if(!this.multiple){var r=i.length;if(e.sm().each(function(e){i.includes(e)&&r--}),!r)return}var a=t.ui.hoverData||e.sm().ld(),n=i.indexOf(a),o=-1===n?i[0]:i[++n%i.length];if(!this.multiple)for(;e.sm().co(o);)o=i[++n%i.length];t.ui.hoverData=o,t.makeRowVisible(o),t.iv()}},t.selectPrevious=function(){var e=this.node.a("dataModel");if(e){var t=this.getListInstance(),i=t.getVisibleDatas();if(!this.multiple){var r=i.length;if(e.sm().each(function(e){i.includes(e)&&r--}),!r)return}var a=t.ui.hoverData||e.sm().ld(),n=i.indexOf(a),o=i.length,l=-1===n?i[0]:i[(--n+o)%o];if(!this.multiple)for(;e.sm().co(l);)l=i[(--n+o)%o];t.ui.hoverData=l,t.makeRowVisible(l),t.iv()}},t.selectHover=function(){var e,t=this.node.a("dataModel");t&&(t=t.sm(),e=this.getListInstance().ui.hoverData)&&(this.multiple?t.co(e)?t.rs(e):t.as(e):t.ss(e))},t.getListInstance=function(){return ja(this.gv,this.node)[0]},t.setSearchKey=function(t){var e=!(1{function e(e){return t.call(this,e)||this}_inheritsLoose(e,t);var i=e.prototype;return i.init=function(){var i=this,e=i.node;i.setImage("drawing.mbScrollPane"),i.valueDatas=null,e.a("scrollPaneHandleEvent",function(e){var t=e.newValue;"change"===e.kind&&(i.valueDatas=t)}),e.a("cancleButtonHandleEvent",function(e){"click"===e.kind&&i.master.endEdit(!0,!0)}),e.a("okButtonHandleEvent",function(e){"click"===e.kind&&(e=i.getValue(),i.master.setRawValue(e),i.master.setValue(e),i.master.endEdit())})},i.setValue=function(e){for(var t=this.node.a("dataModel"),i=(this.isolating=!0,t.getDatas()),r=re(e),a=0;a{function e(){return n.apply(this,arguments)||this}_inheritsLoose(e,n);var t=e.prototype;return t.init=function(){var t=this;t.globalKeydownHandler=t.handleGlobalKeyDown.bind(this),n.prototype.init.call(this),gi?t.dropdown=new yl(t):(t.dropdown=new vl(t),t.dropdown.onClose=function(e){t.editing&&!e&&t.setValue(t.dropdown.getValue())})},t.beginEditImpl=function(e,t,i){n.prototype.beginEditImpl.call(this,e,t,i),i.multiple&&(this.input.style.display="none");var r,a=this.dropdown;i&&i.enum?(si(r=i["box.width"])&&r?a.setWidth(r):a.setWidth(e.width*t.a),a.multiple=i.multiple,a.multiple&&(i.readonly=!0),this.invalidValueVisible=i.invalidValueVisible,i.image&&a.setImage(ti(i.image)),a.setOption(i.enum),a.open(this.getRawValue(),this.lastGraphRect,this.view),document.addEventListener("keydown",this.globalKeydownHandler,!0)):this.endEdit(!0)},t.close=function(){this.dropdown.close(0{function e(){var e=l.apply(this,arguments)||this;return e._innerPrefix="button",e}_inheritsLoose(e,l);var t=e.prototype;return t.init=function(e,t){var i,r,a,n=t.borderStyle,o=t.disabledStyle,o=void 0===o?{}:o;"circle"===(void 0===n?{}:n).shape&&(i=(n=e).x,r=n.y,e=(a=n.height)<(n=n.width)?{x:i+(n-a)/2,y:r,width:a,height:a}:{x:i,y:r+(a-n)/2,width:n,height:n}),l.prototype.init.call(this,e,t),t.toolTipEnabled=!!t.toolTip,this.drawInfo.ui.triggerEvent=!t.disabled||o.triggerEvent},t.getColor=function(e,t){var i,r=2{function k(e,t,i){e=w.call(this,e,t,i)||this,t=e;return t.headHeight=0,t.contentWidth=0,t.leftFixedTree=[],t.rightFixedTree=[],t.rawColumnList=[],t.rawColumnTree=[],t.sortColumnList=[],t._innerPrefix="table",t._cmDirty=!0,e}_inheritsLoose(k,w);var e=k.prototype;return e.getColumnModel=function(){return this._cm||this.cm(new ht.DataModel),this._cm},e.cm=function(e){if(!e)return this.getColumnModel();this.setDataModel(e,"_cm")},e.init=function(e,t){var i,r,a,n,o,l,s,d,h,c,u,g,p=this,f=p.translateX,v=p.translateY,y=p.params;w.prototype.init.call(this,e,t),p.scrollDirty=p.headOnLeft?f!==p.translateX:v!==p.translateY,y?(f=y.headRowHeight,v=y.headLineHeight,i=y.spanFunc,r=y.rowHeight,a=y.indent,n=y.getRowHeight,o=y.labelStyle&&JSON.stringify(y.labelStyle),l=y.cellPadding,s=y.headVisible,d=y.isVisible,h=t.labelStyle&&JSON.stringify(t.labelStyle),c=y.tagGroupStyle&&JSON.stringify(y.tagGroupStyle),u=t.tagGroupStyle&&JSON.stringify(t.tagGroupStyle),g=al(t,pt,m)||0,l===t.cellPadding&&y.headOrientation===t.headOrientation&&f===t.headRowHeight&&v===t.headLineHeight&&s===t.headVisible&&d===t.isVisible&&a===t.indent&&o===h&&p.borderWidth===g&&c===u&&al(y,Tl,m)===al(t,Tl,m)&&al(y,Tl,Bl)===al(t,Tl,Bl)&&al(y,Vl,m)===al(t,Vl,m)&&n===t.getRowHeight||(p._cmDirty=!0,p.deleteCachedVisible(),c!==u&&p.cm().each(function(e){delete e[Dl]})),i===t.spanFunc&&r===t.rowHeight||(p._dmMap={},p.deleteCachedVisible())):p._cmDirty=!0,p.headOnLeft=t.headOrientation===le,p.headOnLeft?p.contentWidth=e.width:p.contentHeight=e.height,p.drawInfo.ui.rowUIs=[],p.drawInfo.ui.columnUIs=[],p.setDataModel(t.columnModel,"_cm"),p.borderWidth=t.borderStyle&&t.borderStyle.width||0},e.isColumnVisible=function(e){return!1!==e.s(J)},e.getColumnName=function(e){return e.getDisplayName()||e.getName()},e.setScrollTranslate=function(e){var t=1n.y+n.height)return!0}else if(e.xt.level?-1:1}),h=0;h<=n.maxLevel;h++)s.push(t);var c,u,g=r.filter(function(e){return!e.children.length});n.headOnLeft?(r=n.contentHeight=l*(g.length-1),Zr(g.map(function(e){return e.column.s(m)}),a.height-r,function(e,t){g[e].width=t,g[e].column.s(Ae)?n.contentHeight=ce(0,n.contentHeight-l):n.contentHeight+=t}),d.forEach(function(e){Z(e.width)&&n._calculateColumnSize(e),n._calculateColumnHeight(e)}),c=a.y+a.height,n.leftFixedTree.forEach(function(e){c=n._calculateColumnRect(e,c)}),c=a.y,n.rightFixedTree.forEach(function(e){c=n._calculateColumnRect(e,c)}),e.forEach(function(e){c=n._calculateColumnRect(e,c)})):(r=n.contentWidth=l*(g.length-1),Zr(g.map(function(e){return e.column.s(m)}),a.width-r,function(e,t){g[e].width=t,g[e].column.s(Ae)?n.contentWidth=ce(0,n.contentWidth-l):n.contentWidth+=t}),d.forEach(function(e){Z(e.width)&&n._calculateColumnSize(e),n._calculateColumnHeight(e)}),u=a.x,n.leftFixedTree.forEach(function(e){u=n._calculateColumnRect(e,u)}),e.forEach(function(e){u=n._calculateColumnRect(e,u)}),u=a.x+a.width,n.rightFixedTree.forEach(function(e){u=n._calculateColumnRect(e,u)})),n.hasFixed=!(!n.leftFixedTree.length&&!n.rightFixedTree.length),n.filterLeafColumns(),i&&n.rawColumnList.forEach(function(e){var t=e.rect,i=t.x,r=t.y,a=t.width,t=t.height;n.headOnLeft?e.resizeRect={x:i,y:r+t+.5*l-.5*o,width:a,height:o}:e.resizeRect={x:i+a+.5*l-.5*o,y:r,width:o,height:t}}),n._cmDirty=!1,n._resetHeadHeight(),n.adjustHeadSpan()},e.adjustHeadSpan=function(){function l(e){for(var t=e.length,i=0;iw&&(U.push(C),C=[],E=ce(E,P),P=0),C.push({rect:{x:0,y:0,width:N.width+S+V,height:N.height+T+B},text:l[F]}),P+=E,A=ce(A,N.height+T+B)}ce(0,P),C.length&&U.push(C),Z||Y||(s=U.length,ee=ce(ee,s*A+(s-1)*a+T+B))}h?M.cellUIs.unshift(b):M.cellUIs.push(b)}),Y?(e=M.rect.width+G,M.bounding=he(M.rect),R.dx+=e,R.contentWidth+=e):(M.cellUIs.forEach(function(e){var t;e.rect.height!==ee&&(e.rect.height=ee,e.textLayoutUI)&&R._buildCellRichText(e),e.expandIndent&&(e.rowUI.data.hasChildren()||e.rowUI.data.s(tt)||e.rowUI.data.s(it))&&(Wr(t=he(e.rect),e.columnUI.padding),e.expandRect={x:t.x+J*H,y:t.y+t.height/2-h/2,width:O,height:h})}),M.rect.height=ee,M.bounding=he(M.rect),R.dy+=ee+G,R.contentHeight+=ee+G),R._dmMap[k.getId()]=M,R.scrollDirty=!0}else{for(var t=M,d=t.bounding,g=t.cellUIs,v=g.length,p=!1,f=0;f{var e=d[u];if((t=e.column).s(Je)||D.isMovingColumn(t))return;var i,r,a,t=t.s(Ae)?0:D.translateY,n=e.rect,o=e.ignore,l=e.spanRect,s=1===o||l,o={x:1===o||l?n.x+n.width:n.x,y:(h?e.rect.y-I:e.rect.y+e.rect.height)+t,width:e.rect.width,height:I};oi(o,m)&&(c&&(h&&!u||!h&&u!==d.length-1)||!c)&&(i=o.y+.5*I,l=e.ignoreLinePositions,r=o.x,a=e.rect.width,w&&(f.beginPath(),f.strokeStyle=ge(f,o,y)),f.moveTo(r,i+0),s||(f.lineTo(r+a,i+0),f.moveTo(r+a,i)),l.sort(function(e,t){return e-t}),Wo(l,v),l.forEach(function(e,t){e=ce(r+(s?0:a),e),t%2?f.moveTo(e,i):f.lineTo(e,i)}),f.lineTo(p,i),w)&&f.stroke(),e.children.length&&g(e.children,h)})()},V&&(g(s,!0,!1),g(d,!1,!1),m={x:l.x,y:l.y+u+I,width:h,height:l.height-c-u}),g(D.rawColumnTree,!1,!1)):(n={x:l.x+(e&&S?h:0),y:l.y+u+I,width:D.borderReducedRect.width,height:l.height-c-u},i.forEach(function(e,t){var i,r,a;e.column.s(Je)||(a=e.rect,i=e.column.s(Ae),r=a.y+a.height-.5*I+(i?0:D.translateY),D.hasFixed&&!i&&(r{var e=c[p];if((t=e.column).s(Je))return;var i,r,a,t=t.s(Ae)?0:D.translateX,n=e.rect,o=e.ignoreLinePositions,l=e.children,s=e.ignore,d=e.spanRect,h=1===s||d,s={x:(u?n.x+n.width:n.x-I)+t,y:D.isMovingColumn(e.column)?T.y:h?n.y+n.height:n.y,width:I,height:n.height};oi(s,m)&&(g&&(u&&p!==c.length-1||!u&&!p)||!g)&&(i=s.x+I/2,d=o,r=s.y,a=n.height,w&&(f.beginPath(),f.strokeStyle=ge(f,s,y)),f.moveTo(i+0,r),h||(f.lineTo(i+0,r+a),f.moveTo(i,r+a)),d.sort(function(e,t){return e-t}),Wo(d,v),d.forEach(function(e,t){e=ce(r+(h?0:a),e),t%2?f.moveTo(i,e):f.lineTo(i,e)}),f.lineTo(i,x),w)&&f.stroke(),l.length&&b(l,u)})()},V&&(b(s,!0,!1),b(d,!1,!1),m={x:l.x+c+I,y:l.y,width:l.width-c-u,height:h}),b(D.rawColumnTree,!0,!1)):(o={x:l.x+c+I,y:l.y+(e&&S?h:0),width:l.width-c-u,height:D.borderReducedRect.height},i.forEach(function(e,t){var i,r,a,n;e.column.s(Je)||(n=(i=e.column.s(Ae))?0:D.translateX,(r=he(e.rect)).x+=n,a=r.x+r.width+I/2,D.hasFixed&&!i&&(a=D.bodyRect.height-c-u-D.contentHeight+.5:D.translateX<0)&&(a=B?{x:l.x,y:l.y+l.height-c-P,width:l.width,height:P}:{x:l.x+c,y:l.y,width:P,height:l.height},f.fillStyle=ge(f,a,(B?[Oe,0,1,0,0]:[Oe,0,0,1,0]).concat(t)),f.fillRect(a.x,a.y,a.width,a.height)),u)&&(B?D.translateY<0:D.translateX>=D.bodyRect.width-c-u-D.contentWidth+.5)&&(r=B?{x:l.x,y:l.y+u,width:l.width,height:P}:{x:l.x+l.width-u-P,y:l.y,width:P,height:l.height},f.fillStyle=ge(f,r,(B?[Oe,0,0,0,1]:[Oe,1,0,0,0]).concat(t)),f.fillRect(r.x,r.y,r.width,r.height))},e.drawRowLine=function(r,e,t,a){var n,i,o,l,s,d,h,c,u,g,p=5=d.height))return d.y>s.y?(t.data.a("".concat(n,".translateY"),l+(d.y-s.y)),!0):s.y+s.height>d.y+d.height?(t.data.a("".concat(n,".translateY"),l-(s.y+s.height-(d.y+d.height))),!0):void 0}else if(s.x+=o,d.x+=i,d.width-=h,!(e.width>=d.width))return d.x>s.x?(t.data.a("".concat(n,".translateX"),o+(d.x-s.x)),!0):s.x+s.width>d.x+d.width?(t.data.a("".concat(n,".translateX"),o-(s.x+s.width-(d.x+d.width))),!0):void 0}}},e.makeRowVisible=function(e){var t=this;if(t.headOnLeft){var i=t.getRowUI(e);if(i){var r=t.getBodyRect(),i=he(i.rect);if(i.x+=t.translateX,!(i.width>=r.width))return r.x>i.x?(t.data.a("".concat(t.innerPrefix,".translateX"),t.translateX+(r.x-i.x)),!0):i.x+i.width>r.x+r.width?(t.data.a("".concat(t.innerPrefix,".translateX"),t.translateX-(i.x+i.width-(r.x+r.width))),!0):void 0}}else{i=t.getRowUI(e);if(i){r=t.getBodyRect(),e=he(i.rect);if(e.y+=t.translateY,e&&!(e.height>=r.height))return r.y>e.y?(t.data.a("".concat(t.innerPrefix,".translateY"),t.translateY+(r.y-e.y)),!0):e.y+e.height>r.y+r.height?(t.data.a("".concat(t.innerPrefix,".translateY"),t.translateY-(e.y+e.height-(r.y+r.height))),!0):void 0}}},e._isTreeTable=function(){return"treeTable"===this._innerPrefix},e.getDraggingTip=function(){var e,t=this.drawInfo.ui.rowDragInfo;return t?(t=t.rowData,e=this.sm.getSelection().toArray(),{label:"Row (+".concat(e.includes(t)?e.length:1,")")}):null},e.getDraggingData=function(){var e=w.prototype.getDraggingData.call(this);return e?(e.type="row",e):(e=this.drawInfo.ui).resizingColumn?{data:e.resizingColumn,type:"resizeColumn"}:e.columnDragInfo?{data:e.columnDragInfo.source,type:"column"}:void 0},e.handleDragEnter=function(e,t){var i=this.drawInfo,r=this.params.rowDragStyle,r=void 0===r?{}:r;!C.isCompDragging(i)&&r.droppable&&(r=C.getDraggingData())&&(r.type&&"row"!==r.type?r.type:i.ui.rowDragInfo={rowData:r.data})},e.checkHit=function(e){var t=this,i=t.drawInfo.ui.rowUIs;if(i&&de(t.bodyRect,e)){var r=t.getRowLineWidth(),a=t.getColumnLineWidth(),n=t.translateX,o=t.translateY,l=t.headOnLeft;e=t.toTranlatedLp(e);for(var s=0,d=i.length;su&&e.x<=c:e.y>u&&e.y<=c){for(var g=h.cellUIs,p=t.rawRowUIs.indexOf(h),f=0;f=m&&b.y<=m+y+r:b.x>=w&&b.x<=w+x+a){var m=v.ignore?v.ignoreAgent:v,D=m.span,I=[];if(D&&1u.y+u.height&&(r.target=f.column,r.before=!1):t.xu.x+u.width&&(r.target=f.column,r.before=!1)}r.offset=l,i.iv()}},e.handleDrop=function(e,t){var i,r,a,n,o,l=this.drawInfo,l=(this.params,l.ui);l.rowDragInfo&&l.rowDragInfo.type?(this.handleRowEndDrag(),this.checkHover(t,e)):l.resizingColumn?(delete l.resizingColumn,delete l.resizingPoint,this.setCursor(B),this.iv()):l.columnDragInfo&&(e=(t=l.columnDragInfo).source,a=t.before,(t=t.target)&&t!==e&&(i=this.cm(),a=e.getParent()!==t.getParent()?(e.setParent(t.getParent()),r=(n=i.getSiblings(t)).indexOf(e),xr(n.indexOf(t)+(a?0:1),[0,n.length-1])):(o=r=(n=i.getSiblings(t)).indexOf(e),xr((t=n.indexOf(t))+(a?0:1)-(o{function e(e,t,i){e=P.call(this,e,t,i)||this;return e._innerPrefix="treeTable",e}_inheritsLoose(e,P);var t=e.prototype;return t._buildRows=function(){var e=this,t=e.dm();e.rawRowUIs=[],e.contentHeight=0,e.getVisibleDatas(),t&&t.size()&&(e.dy=e.rect.y+e.headHeight,e.checkColumnSort(),e._buildChildren(),e.adjustSpan())},t._buildData=function(e){var t,i=this.rawRowUIs,r=e[ft];r&&((t=this._buildRow(e,this.rawIndex++,this.currentLevel)).level=this.currentLevel,i.push(t)),r&&(e.s(A)||e===this.drawInfo.ui.expandingData)&&(this.currentLevel++,this._buildChildren(e),this.currentLevel--)},t._buildChildren=function(e){var t=this,i=t.params.sortFunc,e=e?e.getChildren():t.dm().getRoots(),i=(i?e.sort(i):e).toArray();t._sortDatas(i),i.forEach(function(e){t._buildData(e)})},t.init=function(e,t){P.prototype.init.call(this,e,t),this.rawRowUIs=[],this.currentLevel=0,this.rawIndex=0,this.drawInfo.ui.expandingData&&(this._dmMap={}),this.expandingInfo=null},t.drawExpandIcon=function(e,t){var i=t.rowUI.data,r=this.params.expandIconStyle,r=void 0===r?{}:r,a=r.expandIcon,n=r.collapseIcon,o=r.expandRotation,l=r.collapseRotation,s=r.width,d=r.height,h=!!i.s(A),c=t.expandRect;i.s(it)&&r.loadingIcon?ca(e,r.loadingIcon,c,s,d,this.data,this.view):(r=this.getTransitionValue("iconRotation".concat(i.getId()),h?o:l),ca(e,(h?a:n)||a,c,s,d,this.data,this.view,null,r)),t.expandRect=c},t.isExpand=function(e){return e===this.drawInfo.ui.expandingData||!!e.s(A)},t.drawTableBody=function(d){var h,c,u,e,t,g,p,f=this,v=this,y=v.bodyRect,w=v.leftFixedWidth,m=v.rightFixedWidth,i=v.params,x=v.drawInfo,b=v.translateY,r=i.bodyBackground,D=i.rowDragStyle,I=i.rowClipRadius,T=v.getRowLineWidth(),V=x.ui.rowUIs,B=y.x,S=(y.y,y.width),a=(y.height,x.ui.expandingData),U=0,i=v.rawRowUIs,n=!1;a&&(e="expand".concat(a.getId()),e=v.getTransitionValue(e,1),t=a.s(A)?e:1-e,i.forEach(function(e,t){e.data.isDescendantOf(a)&&(Z(c)?c=u=e.index:u=e.index,h=h?Ii(e.rect,h):e.rect)}),h&&(h.x=B,h.width=S,U=(1-t)*h.height,h.height+=T,h.height*=t,v.contentHeight-=U),1===e)&&(n=!0),Ei(d),v.clipRect(d,y,ee,ee,!0),r&&(I&&(d.save(),d.beginPath(),ye(d,y,I)),d.fillStyle=ge(d,y,r),d.fill(),I)&&d.restore(),v.setScrollTranslate(d,"body"),v.getVisibleDatas().length?(g=h&&(!h.height||Yt(y,h)),p=!1,v.rawRowUIs.forEach(function(e,t){ae(u)&&u{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.setValue=function(e){},i.init=function(){this.setImage(Lr("list")),this.levelCacheList=[],this.align=be,this.vAlign=se},i.getWidth=function(e){return this._fixedWidth||(e=e||this.node).__cw},i.getHeight=function(e){return(e=e||this.node).__ch},i.openMenuInDOM=function(e,t){var i,r,a=2t.y+t.height?(i.setAnchorY(1),i.p(h,a+o+s)):(i.setAnchorY(0),i.p(h,a+e-o+s))):(p=(c=y.vAlign)===ne?(i.setAnchorY(0),a-o+s):c===me?(i.setAnchorY(1),a+e+o+s):(i.setAnchorY(.5),a+e/2+s),(v?r-f>t.x:r+n+f>t.x+t.width)?(i.setAnchorX(1),i.p(r+o+l,p)):(i.setAnchorX(0),i.p(r+n-o+l,p))),u=i.getRect(),g=za(i.getRect(),t),i.translate(g.x-u.x,g.y-u.y),i.setScale(0,0),y._transition=!0,mi({duration:200,finishFunc:function(){y._transition=!1},action:function(e){i.setScale(e*d,e*d)}}),y.addCloseListener())},i.setNodeItems=function(e,t,i){var r=3d.left+d.width){for(var g=c,p=e-1;0<=p;){var f=r.getLevelCache(p).gv.getView().getBoundingClientRect(),g=te(f.x,g);p--}g-h>d.left&&(c=g-h)}n.left=c+D,n.top=u+D,Qt(t)}else{l=r.gv,d=($a(a,l),l.getViewRect()),h=o.getRect(),c=r._getBottomBoxInfo(),n=c.shadow,u=c.shadowBlur,t=0,o=0,n=(n&&u&&(t=u,o=c.offsetY),a.getWidth()),u=s?h.x-n+2*t-o:h.x+h.width-2*t+o,c=h.y+i;if(s)ud.x+d.width){for(var v=u,y=e-1;0<=y;){var w=r.getLevelCache(y).node.getRect(),v=te(w.x,v);y--}i=v-n+2*t-o;i>d.x&&(u=i)}a.p(u,c),a.dm()!==l.dm()&&l.dm().add(a)}}else for(var m=r.levelCacheList.length-1;e<=m;){var x=r.getLevelCache(m),b=x.gv,x=x.node;r.popupByDOM?wi(b.getView()):x.dm()&&x.dm().remove(x),m--}},i.setItems=function(e){var t;e&&(t=this.caluLevel(e)-1,this.items=e,this.levelCacheList.push({node:this.node,gv:this.popupByDOM?this.createGraph():this.gv}),this.getLevelCache(t))},i.caluLevel=function(e){var t=1{if("drawingInstance"!==t){if(r.popupByDOM&&t.startsWith("box.shadow"))return;"box.align"===t?r.align=i[t]:"box.vAlign"===t?r.vAlign=i[t]:a.forEach(function(e){e.node.a(t,he(i[t]))})}})(e);r.popupByDOM&&a.forEach(function(e){e.gv&&r.setElementShadow(i,e.gv.getView())})},i.setFixedWidth=function(e){this._fixedWidth=e},i.addHideListener=function(l){var s=this,d=s.levelCacheList,h=d.length;s.removeHideListener(),s.hideListener=function(e){var t=!1;if(s.popupByDOM)for(var i=Zt(e),r=0;r{function e(){var e=o.apply(this,arguments)||this;return e._innerPrefix="sidebarMenu",e}_inheritsLoose(e,o);var t=e.prototype;return t.getExpandBoundWidth=function(){return 0},t.getExpandIconX=function(e,t){var i=this.params,i=(i.rowPadding,i.expandIconStyle),r=this.rect;r.x;return e+r.width-i.rightGap-i.width},t.isVisible=function(e){return(!this.params.collapsed||!e.getParent())&&o.prototype.isVisible.call(this,e)},t.drawLinkLine=function(e,t){},t.drawCheckIcon=function(e,t){},t.drawIcon=function(e,t){var i,r;this.params.collapsed?t.icon&&(r=(i=t.iconRect).width,ca(e,t.icon,t.rect,r,i.height,this.data,this.view)):o.prototype.drawIcon.call(this,e,t)},t.isDrawContent=function(){return!this.params.collapsed},t.drawExpandIcon=function(e,t){this.params.collapsed||o.prototype.drawExpandIcon.call(this,e,t)},t.isSelected=function(e){return this.params.collapsed||e.hasChildren()&&!e.s(A)?this.sm.co(e)||this.hasChildrenSelected(e):this.sm.co(e)},t.isExpandable=function(e){return!this.params.collapsed&&o.prototype.isExpandable.call(this,e)},t.hasChildrenSelected=function(e){for(var t=e.getChildren(),i=t.size(),r=0;r{function e(){return l.apply(this,arguments)||this}return _inheritsLoose(e,l),e.prototype.onUp=function(e,t,i){var r=t.instance,a=t.ui,n=t.params,r=r.checkHitRow(i),n=n.expandIconStyle||{};if(r){if(r.rowUI.disabled)return;var o=r.rowUI;o&&o.expandable&&(!n.triggerByIcon&&!r.onCheck||de(el(o.expandRect,o.rect),i))&&(r=(n=o.data).s(A),n.s(tt)?(n.s(tt,void 0),n.s(it,!0),t.instance.fireEvent({kind:tl.EVENT_LAZY_LOAD,rowData:n,index:o.index})):((a.expandingData=n).s(A,!r),t.instance.fireEvent({kind:r?tl.EVENT_COLLAPSE:tl.EVENT_EXPAND,rowData:n,index:o.index})))}return l.prototype.onUp.call(this,e,t,i)},e})(cl),Fl=mo(cl),cl=mo((o=>{function e(){return o.apply(this,arguments)||this}_inheritsLoose(e,o);var t=e.prototype;return t.onEnter=function(e,t,i){var r,a,n;C.isDragging()||(r=t.params,a=t.ui,n=t.instance,o.prototype.onEnter.call(this,e,t,i),r.collapsed&&a.hoverData&&n.showMenu(a.hoverData))},t.onLeave=function(e,t,i){t.instance.hideMenu(!0)||o.prototype.onLeave.call(this,e,t,i)},t.onMove=function(e,t,i){var r,a,n;C.isDragging()||(a=t.params,r=t.ui,a.collapsed&&((n=(a=t.instance).checkHitRow(i))&&n.data&&n.data!==r.hoverData?a.showMenu(n.data):n||a.hideMenu()),o.prototype.onMove.call(this,e,t,i))},e})(cl)),Nl=["value","placeholder","disabled","padding","warning","borderStyle","labelStyle","clearButtonStyle","hoverStyle","selectStyle","warnStyle","disabledStyle","popoverStyle","prefixStyle","maxLength","enterEndable","escCancelable","selectTextOnFocus","instant",h],El=["placeholderLabelColor","background"],kl=(a=>{function e(){var e=a.apply(this,arguments)||this;return e._innerPrefix="input",e.clip=!0,e}_inheritsLoose(e,a);var t=e.prototype;return t.checkKeep=function(){var t=this;t.params.keep?(t.keepEditor||(t.keepEditor=new Ko(t.data,t.view,t.drawInfo),t.keepEditor.setKeeping(!0,t.getEditorOption())),t.inputListener||(t.inputListener=function(e){t.editor||t.setCompAttr("value",e.target.value)},t.keepEditor.input.addEventListener("input",t.inputListener))):t.keepEditor&&(t.keepEditor.setKeeping(!1),delete t.keepEditor)},t.getCurrentEditor=function(){return this.keepEditor||new Ko(this.data,this.view,this.drawInfo)},t.beginEditing=function(e){var t,i=this,r=i.data,r=Ir(i.view,r,i.comp,e);r&&(t=i.editor=i.getCurrentEditor(),i.editorListener=function(e){e.kind===Ho.END_EDIT&&(e.isCancel||i.updateValue(e.value),i.endEditing())},t.addListener(i.editorListener),t.beginEdit(i.rect,r.matrix,i.getRawValue(),i.getEditorOption()),a.prototype.beginEditing.call(this,e))},t.endEditing=function(e){var t=this.editor;t&&!this._ending&&(a.prototype.endEditing.call(this,e),t.removeListener(this.editorListener))},t.drawImpl=function(e,t,i){this.drawMain(e),this.checkKeep()},e})(Yo),Ll=i(kl,[].concat(Nl,["keep"]),El),Jl=(e=>{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onHover=function(e,t,i){var r=t.ui.ellpsisOrigin;r&&!t.instance.editor&&t.instance.showLabelToolTip(e,r,{})},i.onEnter=function(e,t,i){var r,a,n=t.instance,o=n.data,n=n.view;fa(n)&&qo.includes(t)&&delete t._blur,C.handleEnter(t,e,i)||(i=t.params,r=t.ui,a=void 0===(a=i.disabledStyle)?{}:a,i.disabled?a.cursor&&Q(n,a.cursor):(fn(n,i.hoverStyle,s),r.isHovering=!0,t.instance.editor||o.iv()),t.instance&&t.instance.showPopover(e,ie,lt))},i.onMove=function(e,t,i){var r,a,n,o,l;x.hide(),C.handleDrag(t,e,i)||(e=t.params,r=t.ui,a=void 0===(a=e.disabledStyle)?{}:a,(t=t.instance).data,t=t.view,n=!1,e.disabled||(l=qe,r.clearButtonRect&&de(r.clearButtonRect,i)?o=e.clearButtonStyle||{}:r.visibleButtonRect&&de(r.visibleButtonRect,i)?o=e.visibilityToggleStyle||{}:r.dropdownIconRect&&de(r.dropdownIconRect,i)?o=e.dropdownIconStyle||{}:e.readonly&&!e.searchable?o=e.hoverStyle||{}:(o=e.selectStyle||{},l=s),o&&(fn(t,o,l),n=!0)),n)||(e.disabled?a.cursor&&Q(t,a.cursor):fn(t,e.hoverStyle,s))},i.onLeave=function(e,t,i){var r=t.instance,a=t.instance,n=a.data,a=a.view;fa(a)&&qo.includes(t)&&(t._blur=!0),C.handleLeave(t,e,i)||(t.params,e=t.ui,Q(a,B),e.isHovering&&(delete e.isHovering,r.editor||n.iv()),r.hidePopover(lt))},i.onDown=function(e,t,i){var r=t.instance,a=(r.data,r.view);r&&(r.showPopover(e,ie,st),r.editor)&&fa(a)&&t.ui.mockTextInfo&&r.setEditorSelection(i)},i.onUp=function(e,t,i){var r,a,n=t.instance,o=(n.data,n.view);(fa(o)&&o.getReality("VR")||!C.handleDrop(t,e,i))&&(r=t.params,(a=t.ui).clearButtonRect&&de(a.clearButtonRect,i)?(n.editor&&n.endEditing(!0),n.updateValue(ee),t.instance.fireEvent({kind:Yo.EVENT_CLEAR})):a.dropdownIconRect&&de(a.dropdownIconRect,i)&&n.editor?n.endEditing(!0):a.visibleButtonRect&&de(a.visibleButtonRect,i)?n.toggleVisibleLater():r.disabled||(n.editor?(fa(o)&&n.focusEditor(),r.readonly&&!r.searchable&&n.endEditing(!0)):n.beginEditing(e)),n.showPopover(e,ie,dt),n.hidePopover(st))},i.onBeginDrag=function(e,t,i){var r=t.instance;r.editor&&(t.ui.dragStartIndex=r.caluHitIndex(i),C.startDragging(t,e))},i.onDrag=function(e,t,i){var r,a=t.instance,n=a.data,o=t.ui.dragStartIndex;ae(t.ui.dragStartIndex)&&((t=a.caluHitIndex(i)){function e(){return l.apply(this,arguments)||this}_inheritsLoose(e,l);var t=e.prototype;return t.onMove=function(e,t,i){var r,a,n,o;C.handleDrag(t,e,i)||(a=(n=t.ui).addButtonRect,n=n.subButtonRect,(o=t.instance).data,o=o.view,(r=t.params).disabled)||(a&&de(a,i)||n&&de(n,i)?fn(o,r.buttonStyle,qe):l.prototype.onMove.call(this,e,t,i))},t.onDown=function(e,t,i){var r,a=t.ui,n=t.instance,o=n.data,n=n.view,l=a.addButtonRect,s=a.subButtonRect;t.params.disabled||(l&&de(l,i)?(r=a.downButton=1,o.iv()):s&&de(s,i)&&(a.downButton=2,r=1,o.iv()),(l=t.instance)&&(l.showPopover(e,ie,st),!r)&&l.editor&&fa(n)&&t.ui.mockTextInfo&&l.setEditorSelection(i))},t.onUp=function(e,t,i){var r,a,n,o=t.instance,l=(o.data,o.view);(fa(l)&&l.getReality("VR")||!C.handleDrop(t,e,i))&&(l=t.params,r=(t=t.ui).addButtonRect,a=t.subButtonRect,n=t.contentRect,t.downButton&&delete t.downButton,l.disabled||(r&&de(r,i)?o.add():a&&de(a,i)?o.sub():t.clearButtonRect&&de(t.clearButtonRect,i)?(o.editor&&o.endEditing(!0),o.updateValue(ee),o.fireEvent({kind:Yo.EVENT_CLEAR})):de(n,i)&&!o.editor&&o.beginEditing(e),o.showPopover(e,ie,dt),o.hidePopover(st)))},e})(Jl)),Xl=/([0-9]|\.|-)+/,zl=[o,"ArrowLeft","ArrowRight",a,"Delete"],Ql=(r=>{function e(){return r.apply(this,arguments)||this}_inheritsLoose(e,r);var t=e.prototype;return t.handleKeyDown=function(e,t){var i,r,a=this,n=e.key,o=e.target.value;a.fireEvent(t.drawingInstance,{kind:Ko.EVENT_KEYDOWN,nativeEvent:e}),t.escCancelable&&n===d?a.endEdit(!0):(i="Tab"===e.key)||t.enterEndable&&e.key===g?(t=Sr(a.input.value)?ee:Number(a.input.value),r=a.drawInfo,a.setRawValue(t),a.setValue(t),a.endEdit(),i&&a.tabNext(e,r)):("Backspace"===n||li(e)||zl.includes(n)||!(!Xl.test(n)||"."===n&&o&&0<=o.indexOf(n)||"-"===n&&o&&0<=o.indexOf(n))||e.preventDefault(),a.data.iv())},t.setValue=function(e){this.input.value=Z(e)?"":e},t.getValue=function(){var e=this.option,t=parseFloat(this.input.value);if(ae(t=isNaN(t)?void 0:t)){if(ae(e.min)&&te.max)return e.max+""}return t},t.handleCompsositionEnd=function(e,t){r.prototype.handleCompsositionEnd.call(this,e,t);var e=this.input,t=e.value,i=t.replace(/[^\d\-\.]/g,"");i!==t&&(e.value=i)},e})(Ko),Yl=i((n=>{function e(){var e=n.apply(this,arguments)||this;return e._innerPrefix="inputNumber",e}_inheritsLoose(e,n);var t=e.prototype;return t.beginEditing=function(e){var t=this,i=t.data,r=t.view,a=Ir(r,i,t.comp,e);a&&((i=t.editor=new Ql(i,r,t.drawInfo)).addListener(function(e){e.kind===Ho.END_EDIT&&(e.isCancel||(e=ae(e.value)?t.toValue(e.value):ee,t.updateValue(e)),t.endEditing())}),i.beginEdit(t.rect,a.matrix,t.getRawValue(),t.getEditorOption()),n.prototype.beginEditing.call(this,e))},t.toValue=function(e){if(ci(e)&&(e=parseFloat(e)),!isNaN(e))return parseFloat(e.toFixed(this.getPrecision(e)))},t.getValue=function(){var e=this.params,t=e.value,e=e.labelStyle,e=void 0===e?{}:e,t=Z(t=ci(t)?parseFloat(t):t)?"":this.formatText(t.toFixed(this.getPrecision()),e.formatter,e.getFormatter);return t=fa(this.view)&&this.editor?this.editor.getRawValue()||"":t},t.getPrecision=function(e){var t=this.params,i=t.value,r=t.precision,t=t.step;return Z(e)&&(e=i),ae(r)?r:(i=(e+"").split("."),r=(t+"").split("."),e=1{var i,r,a,n;try{i=e.toString().split(".")[1].length}catch(e){i=0}try{r=t.toString().split(".")[1].length}catch(e){r=0}return n=G(i-r),a=Zi(10,ce(i,r)),t=0{var i,r,a;try{i=e.toString().split(".")[1].length}catch(e){i=0}try{r=t.toString().split(".")[1].length}catch(e){r=0}return a=Zi(10,ce(i,r)),parseFloat(((e*a-t*a)/a).toFixed(r<=i?i:r))})(e,r),r=this.toValue(ae(i)&&r{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.init=function(){e.prototype.init.call(this),this.input.type="password",Hl.editor&&this.input.setAttribute("autocomplete","new-password")},i.toggleVisible=function(e){this.input.type=e?"text":"password"},t})(Ko),kl=i((a=>{function e(){var e=a.apply(this,arguments)||this;return e._innerPrefix="inputPassword",e}_inheritsLoose(e,a);var t=e.prototype;return t.checkKeep=function(){var t=this;t.params.keep?(t.keepEditor||(t.keepEditor=new ql(t.data,t.view,t.drawInfo),t.keepEditor.setKeeping(!0,t.getEditorOption())),t.inputListener||(t.inputListener=function(e){t.editor||t.setCompAttr("value",e.target.value)},t.keepEditor.input.addEventListener("input",t.inputListener))):t.keepEditor&&(t.keepEditor.setKeeping(!1),t.inputListener&&t.keepEditor.input.removeEventListener("input",t.inputListener),delete t.keepEditor)},t.getCurrentEditor=function(){return this.keepEditor||new ql(this.data,this.view,this.drawInfo)},t.beginEditing=function(e){var t,i=this,r=i.data,r=Ir(i.view,r,i.comp,e);r&&((t=i.editor=i.getCurrentEditor()).toggleVisible(i.params.passwordVisible),i.editorListener=function(e){e.kind===Ho.END_EDIT&&(e.isCancel||i.updateValue(e.value),i.endEditing())},t.addListener(i.editorListener),t.beginEdit(i.rect,r.matrix,i.getRawValue(),i.getEditorOption()),i.fireEvent({kind:Yo.EVENT_BEGIN_EDITING,nativeEvent:e}),i.drawInfo.ui.editing=!0)},t.getValue=function(){var e=this.params,t=e.visibilityToggleStyle,i=e.value,t=!!(void 0===t?{}:t).togglable&&e.passwordVisible,e=Z(i)?"":t?i:i.replace(/./g,"•");return fa(this.view)&&this.editor&&(e=this.editor.getRawValue()||"",t||(e=e.replace(/./g,"•"))),e},t.drawVisibleButton=function(e){var t=this.params,i=(this.drawInfo,t.value,t.visibilityToggleStyle),i=void 0===i?{}:i,r=i.togglable,a=i.width,n=i.height;return r?(r=t.passwordVisible?i.visibleIcon:i.invisibleIcon)?(ca(e,r,e={x:(t=this.rect).x+t.width-i.rightGap-a,y:t.y+(t.height-n)/2,width:a,height:n},a,n,this.data,this.view,this.getBodyColor()),e):void 0:null},t.getClearButtonBound=function(){var e=this.rect,t=e.x,i=this.params,r=i.clearButtonStyle,r=void 0===r?{}:r,i=i.visibilityToggleStyle,i=void 0===i?{}:i,a=r.rightGap,n=r.width,r=r.height;return{x:t+e.width-(void 0===a?0:a)-n-(i.togglable?i.rightGap+i.width+2:0),y:e.y+(e.height-r)/2,width:n,height:r}},t.caluValuePadding=function(){var e=a.prototype.caluValuePadding.call(this),t=this.params.visibilityToggleStyle,t=void 0===t?{}:t,i=t.togglable,r=t.rightGap,t=t.width;return i&&(e[1]+=(void 0===t?0:t)+(void 0===r?0:r)),e},t.toggleVisibleLater=function(){var e=this;gi?e.toggleLater||(e.toggleLater=!0,setTimeout(function(){delete e.toggleLater,e.toggleVisible()},10)):e.toggleVisible()},t.toggleVisible=function(){var e=!this.params.passwordVisible;this.setCompAttr("passwordVisible",e),this.editor&&this.editor.toggleVisible(e)},t.drawImpl=function(e,t,i){var r=this.drawInfo.ui;this.drawMain(e),r.visibleButtonRect=this.drawVisibleButton(e),this.checkKeep()},e})(kl),[].concat(Nl,["passwordVisible","visibilityToggleStyle","keep"]),El),Ol=(i=>{function e(){return i.apply(this,arguments)||this}_inheritsLoose(e,i);var t=e.prototype;return t.init=function(){i.prototype.init.call(this),this.input.style.resize="none",this.input.style.overflow="hidden",this.ignoreEnter=!0},t.createElement=function(){return ga(!0)},t.handleKeyDown=function(e,t){i.prototype.handleKeyDown.call(this,e,t),t.drawingInstance.keydownDirty=!0,t.drawingInstance.iv()},e})(Ko),Kl=i((h=>{function e(){var e=h.apply(this,arguments)||this;return e._innerPrefix="textarea",e}_inheritsLoose(e,h);var t=e.prototype;return t.init=function(e,t){h.prototype.init.call(this,e,t),delete this._contentsCache},t.beginEditing=function(e){var t=this,i=t.data,r=t.view,a=Ir(r,i,t.comp,e);a&&((i=t.editor=new Ol(i,r,t.drawInfo)).addListener(function(e){e.kind===Ho.END_EDIT&&(e.isCancel||t.updateValue(e.value),t.endEditing())}),i.beginEdit(t.rect,a.matrix,t.getRawValue(),t.getEditorOption()),h.prototype.beginEditing.call(this,e),x.hide())},t.getEditorOption=function(){var e=h.prototype.getEditorOption.call(this),t=this.params.labelStyle||{};return t.lineHeight&&(e.lineHeight=t.lineHeight),this.contentHeight&&this.contentHeight>this.rect.height&&(e.tyRaito=this.getTranslateRatio()),e},t.getTranslateRatio=function(){var e;if(this.contentHeight&&this.contentHeight>this.rect.height)return e=this.getInnerAttr("translateY",0),G(e)/(this.contentHeight-this.rect.height)},t.drawPlaceholder=function(e){var t,i=this.params,r=i.placeholder,a=i.labelStyle,a=void 0===a?{}:a,i=i.padding,n=a.font,o=a.align,l=a.lineHeight,i=Wr(this.getCloneRect(),i);r&&(t=this.getValueRect(),this.clipRect(e,t),ha(e,$r(r,n,i.width,!1),l,i,this.getPlaceholderColor(),n,o,ne,a),e.restore())},t.drawValue=function(e){var t,i,r,a,n,o=this,l=o.params,l=l.labelStyle,l=void 0===l?{}:l,s=l.font,d=l.align,h=l.color,c=l.lineHeight,l=l.textOverflow;pa(o.view)&&o.editor?o.drawScrollBar(e):(t=o.getValueRect(),i=o.getInnerAttr("translateY",0),ae(r=o.getValue())?(o.clipRect(e,t),n=!1,l===Xe?(a=(l=ta(r,s,t.width,t.height,c)).textList,n=l.ellipsis):(a=$r(o.getValue(),s,t.width,!1),t.y+=i),ha(e,a,c,t,o.getColor(h,Ue,!0),s,d,ne),e.restore(),o.drawInfo.ui.ellpsisOrigin=n?r:ie,n||o.drawScrollBar(e)):delete o.drawInfo.ui.ellpsisOrigin)},t.getContents=function(){var e,t,i=0t.rect.height?(n=ue({scrollWidth:i.width,scrollHeight:l},t.params.scrollbarStyle),t.editor&&(n.pannable=!1),Qr(r,n,t.innerPrefix),zr(e,{draw:"scrollbar",tag:t._innerPrefix},i,r,a)):Qr(t.data,{translateY:0},t.innerPrefix)},t.autoScroll=function(e,t,i){var r,a,n=this.getScrollbarInstance(),o=this.params.rowHeight||16;o&&n&&((t=t=t||this.rect).x,r=t.height,a=o/6,e.y-(t=t.y)o.rect.y+o.rect.height)i=o;else for(var l=0;l{function e(e,t,i){e=r.call(this,e,t,i)||this;return e.clip=!0,e}_inheritsLoose(e,r);var t=e.prototype;return t.move=function(e,t){jl(this,e,t)},t.endMove=function(){Zl()},t.clearDetect=function(){this.drawInfo.ui.layoutRects&&(delete this.drawInfo.ui.layoutRects,this.iv())},t.drawImpl=function(e,t,i){i=i.background;i&&(e.save(),e.beginPath(),e.fillStyle=ge(e,t,i),e.fillRect(t.x,t.y,t.width,t.height),e.restore()),_l(e,this.drawInfo.ui.layoutRects),this.data.__layout__||this.data.updateLayoutAttaches()},e})(fo);var es=(r=>{function e(e,t,i){e=r.call(this,e,t,i)||this;return e._innerPrefix="split",e}_inheritsLoose(e,r);var t=e.prototype;return t.detectIntersection=function(e){var t,i=this.drawInfo.ui,r=i.firstRect,i=i.secondRect,a=Ir(this.view,this.data,this.comp);return a?(de(Aa(r,a.matrix),e)&&(t="first"),(t=de(Aa(i,a.matrix),e)?"second":t)!==this.drawInfo.ui.intersectRegion&&(this.drawInfo.ui.intersectRegion=t,this.iv()),{region:t}):{}},t.clearDetect=function(){this.drawInfo.ui.intersectRegion&&(delete this.drawInfo.ui.intersectRegion,this.iv())},t.setCollapseRegion=function(i){var e,r=this,t=r.drawInfo,a=r.data,n=r.params.layoutPosition,o=_slicedToArray(r.getPositionRange(!1),2),l=o[0],o=o[1];r._collapseRegion!==i&&(void 0===i?(a.a("layoutPosition",t.ui.oldPosition),delete t.ui.oldPosition,delete t.ui.splitterResizable,(e=a.getAttaches())&&e.each(function(e){var t=e.a("layoutRegion")||"first";r._collapseRegion===t&&e.s("2d.visible",void 0)})):(t.ui.splitterResizable=!1,void 0===t.ui.oldPosition&&(t.ui.oldPosition=n),a.a("layoutPosition","first"===i?l:o),(e=a.getAttaches())&&e.each(function(e){var t=e.a("layoutRegion")||"first";i===t?e.s("2d.visible",!1):e.s("2d.visible",void 0)})),r._collapseRegion=i)},t.clickToggleIcon=function(i){var e,r=this,t=r.drawInfo,a=r.data,n=r.params.layoutPosition,o=_slicedToArray(r.getPositionRange(!1),2),l=o[0],o=o[1];r._collapseRegion!==i&&(void 0!==t.ui.oldPosition?((e=a.getAttaches())&&e.each(function(e){var t=e.a("layoutRegion")||"first";r._collapseRegion===t&&e.s("2d.visible",void 0)}),ll(n,t.ui.oldPosition,function(e){a.a("layoutPosition",e)}),delete t.ui.splitterResizable,delete r._collapseRegion,delete t.ui.oldPosition):(r._collapseRegion=i,t.ui.oldPosition=n,t.ui.splitterResizable=!1,ll(n,"first"===i?l:o,function(e){a.a("layoutPosition",e)},function(){var e=a.getAttaches();e&&e.each(function(e){var t=e.a("layoutRegion")||"first";i===t?e.s("2d.visible",!1):e.s("2d.visible",void 0)})})))},t.getPositionRange=function(){var e=!(0{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onUp=function(e,t,i){var r,a=t.ui,t=t.instance;a.isDragging||(r=a.secondToggleIconRect,de(a.firstToggleIconRect,i)&&t.clickToggleIcon("first"),de(r,i)&&t.clickToggleIcon("second"))},i.onMove=function(e,t,i){var r=t.instance,a=t.ui,n=t.params,r=r.view,o=a.splitterRect,l=a.secondToggleIconRect,s=n.layoutVertical,n=(void 0!==a.splitterResizable?a:n).splitterResizable;de(a.firstToggleIconRect,i)||de(l,i)?(t.ui.active=!0,Q(r,"pointer")):de(o,i)?(t.ui.active=!0,Q(r,n?s?"ns-resize":"ew-resize":"not-allowed")):t.ui.active&&(delete t.ui.active,Q(r,ie))},i.onBeginDrag=function(e,t,i){var r=t.ui,a=r.splitterRect;(void 0!==r.splitterResizable?r:t.params).splitterResizable&&de(a,i)&&(r.isDragging=!0)},i.onDrag=function(e,t,i){var r,a,n,o=t.ui,l=t.instance,s=l.data,d=l.rect;o.isDragging&&(r=t.params.layoutVertical?i.y/d.height:i.x/d.width,t=_slicedToArray(l.getPositionRange(),2),a=t[0],n=t[1],Vi(function(){var e=r{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.updateRange=function(e,t){return e?(e[0]>t?e[0]=t:e[1]i&&(d[1]=d[0]+i),void 0!==r&&h[1]-h[0]>r&&(h[1]=h[0]+r);var p=!1;if(!a.params.overlay){var f=a.data.getAttaches();if(f)for(var v=0;v{function e(e,t,i){e=r.call(this,e,t,i)||this;return e._innerPrefix="border",e._collapseStatus={},e.drawInfo.ui.splitterRects=[],e.drawInfo.ui.toggleRects=[],e.drawInfo.ui.oldPositions=[],e.drawInfo.ui.splitterResizables=[],e.drawInfo.ui.atMins=[],e}_inheritsLoose(e,r);var t=e.prototype;return t.detectIntersection=function(e){var t,i,r=this.drawInfo.ui.regionRects,a=Ir(this.view,this.data,this.comp);if(!a)return{};for(i in r)de(Aa(r[i],a.matrix),e)&&(t=i);return t!==this.drawInfo.ui.intersectRegion&&(this.drawInfo.ui.intersectRegion=t,this.iv()),{region:t}},t.clearDetect=function(){this.drawInfo.ui.intersectRegion&&(delete this.drawInfo.ui.intersectRegion,this.iv())},t.clickToggleIcon=function(e){var t=this.drawInfo,i=this.params,r=this.data,a=_slicedToArray(this.getRegionRange(e),1)[0],n=ns[e];this._collapseStatus[e]?(ll(a,t.ui.oldPositions[e],function(e){r.a(n,e)}),t.ui.atMins[e]=!1,t.ui.splitterResizables[e]=!0,t.ui.oldPositions[e]=null):(ll(i[n],a,function(e){r.a(n,e)}),t.ui.atMins[e]=!0,t.ui.splitterResizables[e]=!1,t.ui.oldPositions[e]=i[n]),this._collapseStatus[e]=!this._collapseStatus[e]},t.getSplitterRange=function(e){var t,i=this.rect,r=this.params,a=r.layoutLeftWidth,n=rs(r);return 0===e&&(t=[0,i.height-n.top-n.bottom-(r.layoutBottomVisible?r.layoutBottomHeight:0)]),2===e&&(t=[(r.layoutTopVisible?r.layoutTopHeight:0)+n.top,i.height-n.bottom]),1===e&&(t=[(r.layoutLeftVisible?a:0)+n.left,i.width-n.right]),t=3===e?[0,i.width-n.left-n.right-(r.layoutRightVisible?r.layoutRightWidth:0)]:t},t.getRegionRange=function(e){var t=this.rect,i=this.params,r=this.getSplitterRange(e),i=rs(i);return 0===e?[r[0],r[1]]:2===e?[t.height-r[1]-i.bottom,t.height-r[0]-i.bottom]:1===e?[t.width-r[1]-i.right,t.width-r[0]-i.right]:3===e?[r[0],r[1]]:void 0},t.drawImpl=function(e,t,i){var r;this.data&&((r=i.background)&&(e.save(),e.fillStyle=ge(e,t,r),e.beginPath(),At(e,t.x,t.y,t.width,t.height,0),e.fill(),e.restore()),r=this.drawInfo.ui.regionRects=as({width:t.width,height:t.height},i),this.drawSplitter(e),this.drawInfo.ui.intersectRegion&&(t=r[this.drawInfo.ui.intersectRegion],e.save(),e.fillStyle="rgba(157,178,207,0.15)",e.beginPath(),At(e,t.x,t.y,t.width,t.height,0),e.fill(),e.restore()),this.data.__layout__||this.data.updateLayoutAttaches())},t.drawSplitter=function(o){function e(e,t){var i,r,a,n;if(s[e]&&(o.save(),o.fillStyle=s[e],o.beginPath(),At(o,t.x,t.y,t.width,t.height,0),o.fill(),o.restore()),h[e])return n=(t={x:t.x+(t.width-c[e])/2,y:t.y+(t.height-u[e])/2,width:c[e],height:u[e]}).x,i=t.y,r=t.width,a=t.height,o.save(),o.translate(n+r/2,i+a/2),n=e*H/2,0===e&&g[0]&&(n+=H),1===e&&g[1]&&(n+=H),2===e&&g[2]&&(n+=H),3===e&&g[3]&&(n+=H),o.rotate(n),Ba(o,d,Ie,{x:-r/2,y:-a/2,width:r,height:a},l.data,l.view),o.restore(),t}var l=this,t=l.params,i=l.drawInfo,r=l.rect,s=t.splitterColor,d=t.icon,h=t.iconVisible,c=t.iconWidth,u=t.iconHeight,a=i.ui,n=a.regionRects,g=a.atMins,a=rs(t);a.top&&(t=l.drawInfo.ui.splitterRects[0]={x:n.top.x,y:n.top.y+n.top.height,width:r.width,height:a.top},i.ui.toggleRects[0]=e(0,t)),a.right&&(t=l.drawInfo.ui.splitterRects[1]={x:n.right.x-a.right,y:n.right.y,width:a.right,height:n.right.height},i.ui.toggleRects[1]=e(1,t)),a.bottom&&(t=l.drawInfo.ui.splitterRects[2]={x:n.bottom.x,y:n.bottom.y-a.bottom,width:r.width,height:a.bottom},i.ui.toggleRects[2]=e(2,t)),a.left&&(r=l.drawInfo.ui.splitterRects[3]={x:n.left.x+n.left.width,y:n.left.y,width:a.left,height:n.left.height},i.ui.toggleRects[3]=e(3,r))},e})(fo);var ls=mo((e=>{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onUp=function(e,t,i){var r=t.ui;if(void 0===r.dragInfo)for(var a=t.instance,n=r.toggleRects,o=0;o{function x(e,t,i){return r.call(this,e,t,i)||this}_inheritsLoose(x,r);var e=x.prototype;return e.getContentRect=function(){var e,t=this.params,i=this.rect,r=t.padding,a=t.position,t=t.switchPageButtonStyle,r=_slicedToArray(pe(r),4),n=r[0],o=r[3],o={x:i.x+o,y:i.y+n,width:i.width-o-r[1],height:i.height-n-r[2]},i=0,n=0,r=0,l=0;return t&&t.visible&&(e=this._getTabsSize(),"top"===a||"bottom"===a?e.width>o.width&&(l=n=t.width+t.gap):e.height>o.height&&(i=r=t.height+t.gap)),o.x+=l,o.y+=i,o.width-=l+n,o.height-=i+r,o},e.init=function(e,t){r.prototype.init.call(this,e,t),this._translateX=this.getInnerAttr("translateX",0),this._translateY=this.getInnerAttr("translateY",0),this.dm(t.dataModel)},e._isVisible=function(e){var t=this.params;return t.isVisible?t.isVisible({data:e},this.data,this.view):!(!1===e.s("visible"))},e._getVisibleDatas=function(){var t=this;return t.dm().getRoots().toList(function(e){return t._isVisible(e)})},e._getTabsSize=function(){var r=this,e=r.params,a=r._tabsLayout,n=e.position,o=e.gap,l=e.headAndTailOccupyGap,s=0,d=0;return a.forEach(function(e,t){var i=r._getStyle(e.data,"itemStyle");"top"!==n&&"bottom"!==n||(s+=r._getTabWidth(e),d=ce(d,i.height),t!==a.length-1&&(s+=o),!l)||0!=t&&t!==a.length-1||(s+=o),"left"!==n&&"right"!==n||(s=ce(s,r._getTabWidth(e)),d+=i.height,t!==a.length-1&&(d+=o),!l)||0!=t&&t!==a.length-1||(d+=o),"left-vertical"!==n&&"right-vertical"!==n||(s=ce(s,i.height),d+=r._getTabWidth(e),t!==a.length-1&&(d+=o),!l)||0!=t&&t!==a.length-1||(d+=o)}),{width:s,height:d}},e._initTabsRect=function(){var e=this.params.position,t=this.getContentRect(),i=this._getTabsSize(),r=i.width,i=i.height,a={x:NaN,y:NaN,width:r,height:i};"top"===e&&(a.x=t.x,a.y=t.y),"bottom"===e&&(a.x=t.x,a.y=t.y+t.height-i),"left"!==e&&"left-vertical"!==e||(a.x=t.x,a.y=t.y),"right"!==e&&"right-vertical"!==e||(a.x=t.x+t.width-r,a.y=t.y),this._tabsRect=a},e._firstInitEachTabLayout=function(){var l=this,e=l.params,s=e.iconLabelGap,d=e.badgeLabelGap,h=e.selectStyle,c=e.hoverStyle,u=e.disabledStyle,g=e.gap,p=e.position,f=e.widthAutoDivide,v=e.headAndTailOccupyGap,y=e.padding,w=l.drawInfo.ui,m=l._getVisibleDatas();l._tabsLayout=[],m.each(function(e){var t,i=l._getStyle(e,"iconStyle"),r=l._getStyle(e,"badgeStyle"),a=l._getStyle(e,"labelStyle"),n=l._getStyle(e,"itemStyle"),o=x.getLabel(e),o=la(ae(o)?o.split("\n"):[],a.font,ee,a.lineHeight),a=l.sm.ld(),a=(e.s("disabled")?t=u:l.sm.co(e)||a&&(e.isParentOf(a)||a.isDescendantOf(e))?t=h:e===w.hoverData&&(t=c),l.getIcon(e)),e={data:e,stateStyle:t,textSize:o,iconSize:{width:a?i.width:0,height:a?i.height:0},iconLabelGap:a?s:0,badgeSize:{width:r.icon?r.width:0,height:r.icon?r.height:0},badgeLabelGap:r.icon?d:0};n.width&&(e.width=n.width),f&&(o=(t=_slicedToArray(pe(y),4))[0],i=l.rect.width-t[3]-t[1],a=l.rect.height-o-t[2],"top"!==p&&"bottom"!==p||(e.width=Math.max(0,i-g*(m.size()+(v?1:-1)))/m.size()),"left-vertical"!==p&&"right-vertical"!==p||(e.width=Math.max(0,a-g*(m.size()+(v?1:-1)))/m.size())),l._tabsLayout.push(e)})},e._secondInitEachTabLayout=function(){var a=this,e=a.drawInfo,t=a.params,n=a._translateX,o=a._translateY,l=a._tabsLayout,s=a._tabsRect,d=t.position,h=t.gap,c=t.headAndTailOccupyGap,u=e.ui,g=s.x,p=s.y;l.forEach(function(e,t){var i,r=a._getStyle(e.data,"itemStyle");"top"!==d&&"bottom"!==d||(i={x:(c&&0===t?h:0)+g,y:p,width:a._getTabWidth(e),height:r.height},g=i.x+i.width,t!==l.length-1&&(g+=h)),"left"!==d&&"right"!==d||(i={x:g,y:(c&&0===t?h:0)+p,width:a._getTabWidth(e),height:r.height},"left"===d&&(i.x+=s.width-i.width),p=i.y+i.height,t!==l.length-1&&(p+=h)),"left-vertical"!==d&&"right-vertical"!==d||(i={x:g,y:(c&&0===t?h:0)+p,width:r.height,height:a._getTabWidth(e)},p=i.y+i.height,t!==l.length-1&&(p+=h)),i.x+=n,i.y+=o,u.dragUI&&(t=(r=u.dragUI).data,r=r.offset,t===e.data)&&void 0!==r&&("top"===d||"bottom"===d?i.x+=r:i.y+=r),e.rect=i})},e._getStyle=function(e,t){return ue({},this.params[t],e.s(t))},e.getIcon=function(e){var t=this._getStyle(e,"iconStyle").icon;return e.getIcon()||t},e._getTabContentWidth=function(e){var t=e.data,i=e.textSize,r=e.iconSize,a=e.iconLabelGap,n=e.badgeSize,o=e.badgeLabelGap,l=this._getStyle(t,"dropDownIconStyle"),t=this._getStyle(t,"badgeStyle"),s=0;return l.visible&&0{function e(){this._xi=0,this._yi=0,this._x0=0,this._y0=0;this.data=[],this.length=0}var t=e.prototype;return t.addData=function(e,t,i,r,a,n,o,l,s){for(var d=this.data,h=0;h{function s(e,t,i,r){e=n.call(this,e,t,i)||this,t=e;return t.clip=!0,t._innerPrefix=r?"menu":"tab",t.oldLayoutSize=0,e}_inheritsLoose(s,n);var e=s.prototype;return e.getDefaultValue=function(e){var t;if(this._currentDrawData)return e==="dropIconAngle"+(t=this._currentDrawData.getId())?-H:e==="stateLinePercent"+t?0:void 0},e.drawImpl=function(t,e,i){var r,a,n,o,l,s=this;s.data&&(r=(n=s.params).position,a=n.tabBackgrounds,l=n.tabBackgroundCornerRadius,n=n.autoSlide,s._firstInitEachTabLayout(),t.save(),o=s.getContentRect(),t.beginPath(),t.rect(o.x,o.y,o.width,o.height),t.clip(),a&&0=a.params.autoSlideTimeGap&&(i=a.dm().getRoots(),r=(((r=a.sm.ld())?i.indexOf(r):-1)+1)%i.size(),a.sm.ss(i.get(r)),n=t),a._autoSlideTransition.iv(a.data)):a._autoSlideTransition.stop())},a._autoSlideTransition.onStop=function(){n=0}},e._drawSwitchPageButton=function(e){var t,i,r,a,n,o,l,s,d,h,c=this.params,u=this._tabsRect;u&&(t=this.getContentRect(),h=c.position,c=c.switchPageButtonStyle)&&c.visible&&(i=c.prePageIcon,r=c.nextPageIcon,a=c.width,n=c.height,c=c.gap,o=Er("singleArrow"),h="top"===h||"bottom"===h?(l={x:t.x-a-c,y:"top"===h?t.y:t.y+t.height-u.height,width:a,height:u.height},s={x:t.x+t.width+c,y:"top"===h?t.y:t.y+t.height-u.height,width:a,height:u.height},d=-H/2,H/2):(l={x:"left"===h||"left-vertical"===h?t.x:t.x+t.width-u.width,y:t.y-c-n,width:u.width,height:n},s={x:"left"===h||"left-vertical"===h?t.x:t.x+t.width-u.width,y:t.y+t.height+c,width:u.width,height:n},d=0,H),ca(e,i||o,l,a,n,this.data,this.view,null,i?0:d),ca(e,r||o,s,a,n,this.data,this.view,null,r?0:h),this.drawInfo.ui.prePageButtonRect=l,this.drawInfo.ui.nextPageButtonRect=s)},e._drawBackground=function(t){var e=this.params,i=this._tabsRect,r=e.background,a=e.backgroundCornerRadius;r&&this.drawSkew(t,i,function(e){t.beginPath(),ye(t,e,a),t.fillStyle=ge(t,e,r),t.fill()})},e._drawBottomLine=function(e){var t,i=this.params,r=this._tabsRect,a=i.position,n=i.itemStyle,i=i.bottomLineStyle,o=this.getContentRect(),l=i.width,i=i.color,n=n.height;l&&i&&("top"===a&&(t={x:o.x,y:o.y+n,width:o.width,height:l}),"bottom"===a&&(t={x:o.x,y:o.y+o.height-n-l,width:o.width,height:l}),"left-vertical"===a&&(t={x:o.x+n,y:o.y,width:l,height:o.height}),"right-vertical"===a&&(t={x:o.x+o.width-n-l,y:o.y,width:l,height:o.height}),"left"===a&&r&&(t={x:o.x+r.width,y:o.y,width:l,height:o.height}),t="right"===a&&r?{x:r.x-l,y:o.y,width:l,height:o.height}:t)&&(e.save(),e.beginPath(),ye(e,t,0),e.fillStyle=ge(e,t,i),e.fill(),e.restore())},e._drawTab=function(A){function i(g,e){function t(s,d){function e(){var e,t,i,r,a=ss.getLabel(p),n=v&&v.labelColor?v.labelColor:T.color,o=F.getIcon(p),l=v&&v.iconBlendColor?v.iconBlendColor:I.blendColor;"left-vertical"===J||"right-vertical"===J?(t=s.y,i=(t=h?(h[0].y+h[1].y)/2:t)+D.rightGap,g.width&&(r=F._getTabContentWidth(g),i=t+(g.width-r)/2),F._getBadgeIcon(p)&&(A.save(),t=void 0===V.topGap?s.x+s.width/2:s.x+V.topGap+x.height/2,r=(void 0===V.rightGap?i:s.y+V.rightGap)+x.width/2,A.translate(t,r),A.rotate("left-vertical"===J?-Be:Be),Ba(A,F._getBadgeIcon(p),Te,{x:-x.width/2,y:-x.height/2,width:x.width,height:x.height},p,F.view),A.restore(),void 0===V.rightGap)&&(i+=x.width+b),!1!==T.visible&&n&&(A.save(),A.translate(s.x+s.width/2,i+y.width/2),A.rotate("left-vertical"===J?-Be:Be),t=Za(a,{x:0,y:0},"center","middle",T.font,T.lineHeight),ha(A,a.split("\n"),T.lineHeight,t,F.toBlendedColor(n),T.font,be,se),A.restore(),i+=y.width+m),o&&(A.save(),A.translate(s.x+s.width/2,i+w.width/2),A.rotate("left-vertical"===J?-Be:Be),Ba(A,o,Te,{x:-w.width/2,y:-w.height/2,width:w.width,height:w.height},p,F.view,l),A.restore())):(d?e=d:(r=s.x,e=(r=h?(h[0].x+h[3].x)/2:r)+D.leftGap,g.width&&(t=F._getTabContentWidth(g),e=r+(g.width-t)/2)),o&&(Ba(A,o,Te,{x:e,y:s.y+(s.height-w.height)/2,width:w.width,height:w.height},p,F.view,l),e+=w.width+m),!1!==T.visible&&n&&(i=e+y.width/2,r=s.y+s.height/2,A.save(),t=Za(a,{x:i,y:r},"center","middle",T.font,T.lineHeight),ha(A,a.split("\n"),T.lineHeight,t,F.toBlendedColor(n),T.font,be,se),A.restore(),e+=y.width+b),F._getBadgeIcon(p)&&(Ba(A,F._getBadgeIcon(p),Te,{x:void 0===V.rightGap?e:s.x+s.width-V.rightGap-x.width,y:s.y+(void 0!==V.topGap?V.topGap:(s.height-x.height)/2),width:x.width,height:x.height},p,F.view),void 0===V.rightGap)&&(e+=x.width),S.visible&&0a.width)return}else if(l.height>a.height)return;n=this.innerPrefix;Qr(t,ue({scrollWidth:a.width,scrollHeight:a.height,pannable:!o},r),n),zr(e,{draw:"scrollbar",tag:this._innerPrefix},l,t,i)},e.drawSkew=function(e,t,i){var r=this._getSkew(t);r?(e.save(),e.transform(r[0],r[1],r[2],r[3],r[4],r[5]),i({x:t.x-r[4],y:t.y-r[5],width:t.width,height:t.height})):(e.save(),i(t)),e.restore()},e._getSkew=function(e){var t,i=this.params,r=i.hSkewAngle,a=i.vSkewAngle,i=i.position;return-1<["left-vertical","right-vertical"].indexOf(i)&&a?(t=e.x+e.width,[1,-a*q,0,1,t,e.y]):-1<["top","bottom","left","right"].indexOf(i)&&r?(t=e.x,[1,0,-r*q,1,t,e.y+e.height]):void 0},e._getSkewPoints=function(e){var t=this._getSkew(e);if(t){for(var i=(new zt).set(t[0],t[1],t[2],t[3],t[4],t[5]),t={x:e.x-t[4],y:e.y-t[5],width:e.width,height:e.height},r=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],a=0;a=m&&e[g]{var c,u,g,p,f=.005,v=1/0;fs[0]=s,fs[1]=d;for(var y=0;y<1;y+=.05)vs[0]=xs(e,i,a,o,y),vs[1]=xs(t,r,n,l,y),(g=hs(fs,vs)){var d,h=.005,c=1/0;fs[0]=o,fs[1]=l;for(var u=0;u<1;u+=.05){vs[0]=Ds(e,i,a,u),vs[1]=Ds(t,r,n,u);var g=hs(fs,vs);g0!==o&&(o=o,!(i<(e=rr((l-=e)*l+(s-=t)*s))-o||e+o{if(i<(l-=t)||l<-i)return 0;var t=rr(i*i-l*l);if(dd[0]=-t,dd[1]=t,(i=G(r-a))<1e-4)return 0;if(sd-1e-4<=i)return a=sd,o>=dd[r=0]+e&&o<=dd[1]+e?n?1:-1:0;a{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onUp=function(e,t,i){var r,a,n,o,l,s,d,h,c,u,g;C.isDragging()?delete t.ui.isMoveDrag:(d=(r=t.instance).sm,s=r.dm(),a=t.ui,n=t.params,ui(e)&&n.autoSlide&&r._autoSlideTransition&&!r._autoSlideTransition.isRunning()&&r._autoSlideTransition.start(),a.isMoveDrag?delete a.isMoveDrag:(o=(g=yd(t.instance,i)).data,l=g.rect,g=g.closeIconRect,void 0!==o?!n.isMenu&&g&&(c=i,u=l,g=g,(h=r).params.isContentSkew?vd(h,c,u,g,!0):de(g,c))?(!r.isDisabled(o)&&n.autoClose&&(d.co(o)&&d.rs(o),s.remove(o)),r.fireEventWithDisabled({kind:_s.EVENT_CLOSE_DATA,data:o,rect:l,nativeEvent:e})):(r.isDisabled(o)||n.isMenu&&(n.isMenu,o.hasChildren())||d.ss(o),r.fireEventWithDisabled({kind:_s.EVENT_CLICK_DATA,data:o,rect:l,nativeEvent:e})):(de(a.prePageButtonRect,i)&&(h=r.getContentRect(),["top","bottom"].includes(n.position)?(u=r.getInnerAttr("translateX",0),u+=h.width,u=Math.min(u,0),t.data.a("".concat(r.innerPrefix,".translateX"),u)):(g=r.getInnerAttr("translateY",0),g+=h.height,g=Math.min(g,0),t.data.a("".concat(r.innerPrefix,".translateY"),g))),de(a.nextPageButtonRect,i)&&(c=r.getContentRect(),["top","bottom"].includes(n.position)?c.width>r._tabsRect.width||(s=r.getInnerAttr("translateX",0),s-=c.width,s=Math.max(s,-(r._tabsRect.width-c.width)),t.data.a("".concat(r.innerPrefix,".translateX"),s)):c.height>r._tabsRect.height||(d=r.getInnerAttr("translateY",0),d-=c.height,d=Math.max(d,-(r._tabsRect.height-c.height)),t.data.a("".concat(r.innerPrefix,".translateY"),d))))))},i.onMove=function(e,t,i){var r,a,n,o,l,s,d,h;ui(e)||(r=t.instance,n=(a=t.params).hoverStyle,o=a.disabledStyle,l=a.cursorControl,h=(t=t.ui).dragUI,s=r.data,d=r.view,h)||(i=(h=yd(r,i)).data,h=h.rect,void 0!==i?(t.active=!0,t.hoverData!==i&&(a.isMenu||(t.hoverData&&r.fireEventWithDisabled({kind:_s.EVENT_LEAVE_DATA,data:t.hoverData,nativeEvent:e}),r.fireEventWithDisabled({kind:_s.EVENT_ENTER_DATA,data:i,rect:h,nativeEvent:e})),t.hoverData=i,s.iv(),a.isMenu)&&(i.hasChildren()?r._showMenu(i,h,e):r._hideMenu(!1)),l||Q(d,(r.isDisabled(i)?o:n).cursor)):t.active&&(!a.isMenu&&t.hoverData&&r.fireEventWithDisabled({kind:_s.EVENT_LEAVE_DATA,data:t.hoverData,nativeEvent:e}),a.isMenu&&r._hideMenu(!1),delete t.hoverData,delete t.active,s.iv(),l||Q(d,null)))},i.onEnter=function(e,t,i){t=t.instance;t._autoSlideTransition&&t._autoSlideTransition.isRunning()&&t._autoSlideTransition.stop()},i.onLeave=function(e,t,i){var r=t.instance,a=r.data,n=r.view,o=t.ui,t=t.params;t.autoSlide&&r._autoSlideTransition&&!r._autoSlideTransition.isRunning()&&r._autoSlideTransition.start(),t.isMenu&&r._hideMenu(!0)||o.active&&(!t.isMenu&&o.hoverData&&r.fireEventWithDisabled({kind:_s.EVENT_LEAVE_DATA,data:o.hoverData,nativeEvent:e}),delete o.hoverData,delete o.active,a.iv(),t.cursorControl||Q(n,null))},i.onBeginDrag=function(e,t,i){var r,a,n=t.ui;t.params.draggable&&(r=void 0===(r=n.dragUI)?{}:r,(a=yd(t=t.instance,i)).data)&&(r.data=a.data,r.index=t._getVisibleDatas().indexOf(a.data),r.startLp=i,n.dragUI=r)},i.onDrag=function(e,t,i){var r=t.ui,a=t.params,n=t.data,o=r.dragUI;if(a.draggable&&o){var l=a.position,s=a.dragLineWidth,d=t.instance;o.offset="top"===l||"bottom"===l?i.x-o.startLp.x:i.y-o.startLp.y;for(var h=0,c=d._tabsLayout.length;h{function R(e,t,i){e=r.call(this,e,t,i)||this,t=e;return t.clip=!0,t._innerPrefix="collapse",e}_inheritsLoose(R,r);var e=R.prototype;return e.handleMS=function(e,t,i){this._checkTxy=!0},e.handleMM=function(e,t,i){this._checkTxy=!0},e.drawImpl=function(C,e,A){var t,F,N,E,k,L,J=this;J.data&&(t=A.background,F=A.vertical,N=A.gap,0!==J.dm().size())&&(J._recordPanel(),E=J.drawInfo.ui.panels,t&&ua(C,e,ge(C,e,t)),L=k=0,J._getVisibleData().each(function(h,n){h=J.drawInfo.toDrawData(h);function i(e,t){return J.isDisabled(h)&&p[e]?p[e]:v&&g[e]?g[e]:J.drawInfo.ui.hoverData===h&&u[e]?u[e]:"labelColor"===e?s.color:"labelFont"===e?s.font:t[e]}function e(){var e=i("background",l),t=((t=i("backgroundImage",l))?Y(C,t,b,h,J.view):e&&ua(C,b,ge(C,b,J.toBlendedColor(e))),J.getTransitionValue("iconRotation".concat(h.getId()),v?B:S)),e=(v?ca(C,T,D,D.width,D.height,h,J.view,J.toBlendedColor(U),t):ca(C,V||T,D,D.width,D.height,h,J.view,J.toBlendedColor(P),t),i("labelColor",l));!1!==s.visible&&e&&ve(C,f,I,J.toBlendedColor(e),i("labelFont",l),s.align,s.vAlign),(t=i("icons",l))&&(E[n].header.icons=[],t.forEach(function(e){var t,i,r,a;e&&e.icon&&(t=e.icon,i=e.name,a={x:void 0===(a=e.offsetX)?0:a,y:b.y+(b.height-(a=e.height))/2+(void 0===(r=e.offsetY)?0:r),width:r=e.width,height:a},"onLabelLeft"===(e=e.position)&&(a.x+=I.x-r),"onLabelRight"===e&&(a.x+=I.x+I.width),"onFoldIconLeft"===e&&(a.x+=D.x-r),"onFoldIconRight"===e&&(a.x+=D.x+D.width),Y(C,t,a,h,J.view),E[n].header.icons.push({icon:t,name:i,rect:a}))}))}function t(){var e,t,i,r,a,n,o=(d=x.rect).x,l=d.y,s=d.width,d=d.height;c.background&&ua(C,x.rect,ge(C,x.rect,J.toBlendedColor(c.background))),y&&(e=c.iconWidthFull?s:c.iconWidth,t=c.iconHeightFull?d:c.iconHeight,"left"===(i=c.iconAlign)&&(a=o),"center"===i&&(a=o+(s-e)/2),"top"===(r=c.iconVAlign)&&(n=l),"middle"===r&&(n=l+(d-t)/2),Y(C,y,{x:a="right"===i?o+s-e:a,y:n="bottom"===r?l+d-t:n,width:e,height:t},h,J.view))}var r,a,o,l=J._getStyle(h,"headStyle"),s=J._getStyle(h,"labelStyle"),d=J._getStyle(h,"expandIconStyle"),c=J._getStyle(h,"bodyStyle"),u=J._getStyle(h,"hoverStyle"),g=A.expandStyle?J._getStyle(h,"expandStyle"):J._getStyle(h,"selectStyle"),p=J._getStyle(h,"disabledStyle"),f=R.getLabel(h),v=J.sm.co(h),y=c.icon,w=E[n],m=w.header,x=w.content,b=m.rect,D=m.expandRect,I=m.titleRect,T=d.expandIcon,V=d.collapseIcon,w=d.expandRotation,B=void 0===w?Math.PI:w,w=d.collapseRotation,S=void 0===w?Math.PI/2:w,U=i("expandIconBlendColor",d),P=i("collapseIconBlendColor",d),w=(l.draw?l.draw(C,{rect:b,data:h,params:A,defaultDraw:e},J.data,J.view):e(),i("bottomLineColor",l)),d=(w&&(d={x:b.x,y:b.y+b.height,width:b.width,height:l.bottomLineWidth},ua(C,d,ge(C,d,J.toBlendedColor(w)))),h.a("_contentHeight"));void 0===d&&!v||(r=(w=x.rect).x,a=w.y,o=w.width,w=w.height,C.save(),C.beginPath(),void 0!==d?C.rect(r,a,o,d<0?w+d:d):C.rect(r,a,o,w),C.clip(),c.draw?c.draw(C,{rect:x.rect,data:h,params:A,defaultDraw:t},J.data,J.view):t(),C.restore()),F?(k=ce(k,m.rect.width),L+=m.rect.height+l.bottomLineWidth+(v?x.rect.height:0)+(0===n?0:N)):(k+=m.rect.width+(0===n?0:N),L=ce(L,m.rect.height+l.bottomLineWidth+(v?x.rect.height:0)))}),J._drawScrollBar(C,e,k,L))},e.init=function(e,t){r.prototype.init.call(this,e,t),this._translateX=this.getInnerAttr("translateX",0),this._translateY=this.getInnerAttr("translateY",0),this.dm(t.dataModel)},e._recordPanel=function(){var c=this,u=0,g=0,e=c.rect,t=c.params,p=c._translateX,f=c._translateY,v=e.x,y=e.y,w=e.width,m=t.vertical,x=t.gap,b=t.iconLabelGap,D=c.drawInfo.ui.panels=[];c._getVisibleData().each(function(e,t){var i=c._getStyle(e,"headStyle"),r=c._getStyle(e,"labelStyle"),a=c._getStyle(e,"expandIconStyle"),n=c._getStyle(e,"bodyStyle"),o=i.widthFull,l=i.width,s=i.height,n=n.height,d=c.sm.co(e),h=oa(r.font,R.getLabel(e)),t={x:v+p+(m?0:t*x+g),y:y+f+(m?t*x+u:0),width:o?w:l,height:s},o={x:NaN,y:t.y+(s-a.height)/2,width:a.width,height:a.height},l=("left"===a.position&&(o.x=t.x),"center"===a.position&&("center"===r.align?o.x=t.x+(t.width-h-a.width-b)/2+h+b:o.x=t.x+t.width/2-a.width/2),"right"===a.position&&(o.x=t.x+t.width-a.width),o.x+=a.offsetX,o.y+=a.offsetY,{x:NaN,y:t.y,width:h,height:t.height}),s=("left"===r.align&&(l.x="left"===a.position?o.x+o.width+b:t.x),"center"===r.align&&(l.x="center"===a.position?o.x-b-h:t.x+t.width/2-h/2),"right"===r.align&&(l.x="right"===a.position?o.x-b-h:t.x+t.width/h),l.x+=r.offsetX,l.y+=r.offsetY,{x:t.x,y:t.y+t.height+i.bottomLineWidth,width:t.width,height:n}),a=(D.push({data:e,header:{rect:t,expandRect:o,titleRect:l},content:{rect:s}}),m?u+=t.height+i.bottomLineWidth+(d?n:0):g+=t.width,e.a("_contentHeight"));a&&(u+=a)})},e._drawScrollBar=function(e,t,i,r){var a=this,n=a.data,o=a.view;if(i>t.width||r>t.height){var l=a.innerPrefix;if(Qr(n,ue({scrollWidth:i,scrollHeight:r},a.params.scrollbarStyle),l),zr(e,{draw:"scrollbar",tag:a._innerPrefix},t,n,o),a._checkTxy){for(var s=ja(a.view,a.data),d=0;d{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onUp=function(d,h,c){if(!C.isDragging())for(var e,u=h.instance,g=u.data,p=u.view,f=u.dm(),v=u.sm,t=h.params,y=h.ui,w=t.expandByIconOnly,m=t.accordion,x=0;x{var t=(i=y.panels[x]).data,e=i.header,i=i.content;if(v.co(t)&&de(i.rect,c))return u.fireEventWithDisabled({kind:bd.EVENT_CLICK_CONTENT,data:t,nativeEvent:d}),{v:void 0};var i=e.rect,r=e.expandRect,a=e.icons;if(a)for(var n=0;n{function e(e,t,i){e=r.call(this,e,t,i)||this;return e.clip=!0,e}_inheritsLoose(e,r);var t=e.prototype;return t.move=function(e,t){jl(this,e,t)},t.endMove=function(){Zl()},t.clearDetect=function(){this.drawInfo.ui.layoutRects&&(delete this.drawInfo.ui.layoutRects,this.iv())},t.drawImpl=function(e,t,i){i=i.background;i&&(e.save(),e.beginPath(),e.fillStyle=ge(e,t,i),e.fillRect(t.x,t.y,t.width,t.height),e.restore()),_l(e,this.drawInfo.ui.layoutRects),this.data[Vt]=this.uuid,this.data.__layout__||this.data.updateLayoutAttaches()},e})(fo);var Vd=(r=>{function e(e,t,i){e=r.call(this,e,t,i)||this;return e.clip=!0,e}_inheritsLoose(e,r);var t=e.prototype;return t.move=function(e,t){jl(this,e,t)},t.endMove=function(){Zl()},t.clearDetect=function(){this.drawInfo.ui.layoutRects&&(delete this.drawInfo.ui.layoutRects,this.iv())},t.drawImpl=function(e,t,i){i=i.background;i&&(e.save(),e.beginPath(),e.fillStyle=ge(e,t,i),e.fillRect(t.x,t.y,t.width,t.height),e.restore()),_l(e,this.drawInfo.ui.layoutRects),this.data[Vt]=this.uuid,this.data.__layout__||this.data.updateLayoutAttaches()},e})(fo);var Bd=(r=>{function e(e,t,i){e=r.call(this,e,t,i)||this;return e.clip=!0,e}_inheritsLoose(e,r);var t=e.prototype;return t.move=function(e,t){jl(this,e,t)},t.endMove=function(){Zl()},t.clearDetect=function(){this.drawInfo.ui.layoutRects&&(delete this.drawInfo.ui.layoutRects,this.iv())},t.drawImpl=function(e,t,i){var a=this,i=i.background;i&&(e.save(),e.beginPath(),e.fillStyle=ge(e,t,i),e.fillRect(t.x,t.y,t.width,t.height),e.restore()),_l(e,a.drawInfo.ui.layoutRects),a._oldScrollHeight!==a.data.__scrollHeight__&&(Vi(function(){for(var e=ja(a.view,a.data),t=0;to.x+o.width&&(a=-(e.x+(t?0:e.width)-(o.x+(t?0:o.width)))),e.x+e.widtho.y+o.height&&(n=-(e.y+(t?0:e.height)-(o.y+(t?0:o.height)))),e.y+e.height{function e(e,t,i){e=r.call(this,e,t,i)||this;return e.clip=!0,e}_inheritsLoose(e,r);var t=e.prototype;return t.detectIntersection=function(e){var t=this.drawInfo.ui.bodyRect;if(t)return t=this.toWorldRect(ee,t),t=de(t,e),this.drawInfo.ui.intersect!==t&&(this.drawInfo.ui.intersect=t,this.iv()),t},t.clearDetect=function(){this.drawInfo.ui.intersect&&(delete this.drawInfo.ui.intersect,this.iv())},t.drawImpl=function(e,t,i){var r=i.cornerRadius,a=i.background,n=i.borderWidth,o=i.borderColor,l=i.headStyle,s=i.bodyStyle,i=i.bottomStyle,r=((a||o&&n)&&(e.beginPath(),ye(e,t,r),a&&(e.fillStyle=ge(e,t,a),e.fill()),o)&&n&&(e.lineWidth=n,e.strokeStyle=ge(e,t,o),e.stroke()),l.visible?l.height+(l.bottomBorderWidth||0):0),a=i.visible?i.height+(i.topBorderWidth||0):0;l.visible&&(n={x:t.x,y:t.y,width:t.width,height:r},this._drawHead(e,n));var o=_slicedToArray(pe(s.padding),4),l=o[0],n=o[1],s=o[2],o=o[3],r=this.drawInfo.ui.bodyRect={x:t.x,y:t.y+r,width:t.width,height:ce(t.height-r-a,0)};this._drawBody(e,{x:r.x+o,y:r.y+l,width:ce(r.width-o-n,0),height:ce(r.height-l-s,0)}),i.visible&&(o={x:t.x,y:t.y+t.height-a,width:t.width,height:a},this._drawBottom(e,o)),this.data.__layout__||this.data.updateLayoutAttaches()},t._drawHead=function(e,t){var i=this.params.headStyle,r=i.maximizable,a=i.iconGap,n=i.closeIcon,o=i.closeIconWidth,l=i.closeIconHeight,s=i.maxIcon,d=i.minIcon,h=i.maxIconWidth,c=i.maxIconHeight,u=i.title,g=i.bottomBorderWidth,p=i.bottomBorderColor,f=i.leftPadding,v=i.rightPadding;void 0!==i.padding&&(void 0===f&&(f=i.padding),void 0===v)&&(v=i.padding),u&&ve(e,u,{x:t.x+f,y:t.y,width:t.width-f,height:t.height},i.titleColor,i.titleFont,"left","middle"),n&&Y(e,n,this.drawInfo.ui.closeIconRect={x:t.x+t.width-v-o,y:t.y+(t.height-g-l)/2,width:o,height:l},this.data,this.view,"#999"),r&&Y(e,this.isMax?d:s,this.drawInfo.ui.maxIconRect={x:t.x+t.width-v-(n?o:0)-a-h,y:t.y+(t.height-g-c)/2,width:h,height:c}),g&&ua(e,{x:t.x,y:t.y+t.height-g,width:t.width,height:g},p)},t._drawBody=function(e,t){var i=this.params.matchBackground;this.drawInfo.ui.intersect&&i&&ua(e,t,i)},t._drawBottom=function(e,t){var r=this,i=r.params.bottomStyle,a=i.buttonGap,n=i.buttonWidth,o=i.buttonHeight,l=i.topBorderWidth,s=i.topBorderColor,d=i.cancleButtonLabel,h=i.cancleButtonIcon,c=i.cancleButtonBackground,u=i.cancleButtonBackgroundImage,g=i.cancleButtonLabelStyle,p=i.cancleButtonIconStyle,f=i.cancleButtonBorderStyle,v=i.cancleButtonHoverStyle,y=i.cancleButtonActiveStyle,w=i.okButtonLabel,m=i.okButtonIcon,x=i.okButtonBackground,b=i.okButtonBackgroundImage,D=i.okButtonLabelStyle,I=i.okButtonIconStyle,T=i.okButtonBorderStyle,V=i.okButtonHoverStyle,B=i.okButtonActiveStyle,S=i.rightPadding,i=(void 0!==i.padding&&void 0===S&&(S=i.padding),r.drawInfo.ui.okButtonRect={x:t.x+t.width-S-n,y:t.y+l+(t.height-l-o)/2,width:n,height:o}),S=r.drawInfo.ui.cancleButtonRect={x:t.x+t.width-S-n-a-n,y:t.y+l+(t.height-l-o)/2,width:n,height:o};zr(e,{draw:"button",tag:"".concat(r._innerPrefix,".cancleButton")},S,r.data,r.view,{label:d,icon:h||null,background:c||null,backgroundImage:u||null,labelStyle:g,iconStyle:p,borderStyle:f,hoverStyle:v,activeStyle:y,handleEvent:function(e,t,i){"click"===e.kind&&(r.fireEvent({kind:"clickCancleButton",nativeEvent:e.nativeEvent}),Fd.hide(r.drawInfo.data))}}),zr(e,{draw:"button",tag:"".concat(r._innerPrefix,".okButton")},i,r.data,r.view,{label:w,icon:m||null,background:x||null,backgroundImage:b||null,labelStyle:D,iconStyle:I,borderStyle:T,hoverStyle:V,activeStyle:B,handleEvent:function(e,t,i){"click"===e.kind&&r.fireEvent({kind:"clickOkButton",nativeEvent:e.nativeEvent})}}),l&&ua(e,{x:t.x,y:t.y,width:t.width,height:l},s)},e})(fo);function Ud(e,t){for(var i=e.getHost(),r=!1;i&&!r;)i===t?r=!0:i=i.getHost();return r}Pd=0,Cd=[],Ad={};var Pd,Cd,Ad,Fd={show:function(t){var r,e,i,a,n;t.s("2d.visible",!0),!1!==t.a("modal")&&(Cd.push(t.getId()),Pd++,n=(r=t.getDataModel()).getDataByTag("root"))&&((e=new ht.Node).s({shape:"rect","shape.background":"rgba(0,0,0,0.3)","layout.v":"topbottom","layout.h":"leftright","2d.movable":!1,"select.width":0}),e.setAnchor(he(n.getAnchor())),e.p(he(n.p())),e.setTag(t.getTag()+"Mask"),e.setSize(n.getWidth(),n.getHeight()),e.setScale(n.getScale()),e.setHost(n),r.add(e),i=[t],r.eachByBreadthFirst(function(e){e.getHost&&Ud(e,t)&&i.push(e)}),(a=new ht.Block).s({"2d.selectable":!1}),a.setTag(t.getTag()+"TempBlock"),r.add(a),i.forEach(function(e){var t=r.getSiblings(e).indexOf(e),i=e.getParent();e._drawing_dialog_={dataIndex:t,parent:i}}),i.forEach(function(e){-1===i.indexOf(e.getParent())&&e.setParent(a)}),e.setParent(t.getParent()),n=r.getSiblings(t).indexOf(t),r.moveTo(e,n))},hide:function(e){if(e.s("2d.visible",!1),!1!==e.a("modal")){var t=e.getDataModel();if(0==--Pd){for(var i=Cd.length-1;0<=i;i--)((r,e)=>{var t=r.getDataById(e),i=[t];r.eachByBreadthFirst(function(e){e.getHost&&Ud(e,t)&&i.push(e)}),i.forEach(function(e){var t,i;e._drawing_dialog_&&(t=(i=e._drawing_dialog_).dataIndex,i=i.parent,e.getParent()!==i&&e.setParent(i),r.moveTo(e,t),delete e._drawing_dialog_)}),(e=r.getDataByTag(t.getTag()+"TempBlock"))&&r.remove(e),(e=r.getDataByTag(t.getTag()+"Mask"))&&r.remove(e)})(t,Cd[i]);Cd=[]}else{e=t.getDataByTag(e.getTag()+"Mask");e&&t.remove(e)}}},toMax:function(e){var t=e.getDataModel().getDataByTag("root");t&&(Ad[e.getId()]={anchor:he(e.getAnchor()),p:he(e.p()),size:e.getSize(),scale:e.getScale(),host:e.getHost(),"layout.v":e.s("layout.v"),"layout.h":e.s("layout.h")},e.s({"layout.v":"topbottom","layout.h":"leftright"}),e.setAnchor(he(t.getAnchor())),e.p(he(t.p())),e.setSize(t.getWidth(),t.getHeight()),e.setScale(t.getScale()),e.setHost(t))},toMin:function(e){var t;Ad[e.getId()]&&(t=Ad[e.getId()],e.s({"layout.v":t["layout.v"],"layout.h":t["layout.h"]}),e.setAnchor(t.anchor),e.p(t.p),e.setSize(t.size.width,t.size.height),e.setScale(t.scale),e.setHost(t.host),delete Ad[e.getId()])}};var Nd,Ed,kd,Ld,Jd,Rd,we,Md=mo((e=>{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onLeave=function(e,t,i){Q(t.instance.view,B)},i.onMove=function(e,t,i){var r=t.ui,t=t.instance;de(r.closeIconRect,i)||de(r.maxIconRect,i)||de(r.okButtonRect,i)||de(r.cancleButtonRect,i)?Q(t.view,qe):Q(t.view,B)},i.onUp=function(e,t,i){var r=t.ui,a=t.instance;de(r.closeIconRect,i)&&(Fd.hide(t.data),Q(a.view,B)),de(r.maxIconRect,i)&&(a.isMax?(Fd.toMin(t.data),a.isMax=!1):(Fd.toMax(t.data),a.isMax=!0),Q(a.view,B))},t})(wo)),Xd=mo((e=>{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onHover=function(e,t,i){var r,a,n,o,l,s;null!=t&&t.params.toolTipEnabled&&((a=(r=t.instance).checkHit(i))?(l=a.cellUI,n=a.columnUI,l?(l.textLayoutUI&&(ao(l.textLayoutUI)&&(s=l.textLayoutUI.richRawText),qn(r.toTranlatedLp(i),l.textLayoutUI,bt,{columnData:a.columnUI.column,rowData:a.data,cellUI:a.cellUI,nativeEvent:e},t)),o=r.toInfo(a.columnUI,a.rowUI,{kind:Sl.EVENT_HOVER_CELL,cellUI:a.cellUI,nativeEvent:e}),r.fireEventWithDisabled(o)):n&&Xe===n.column.s(Re)&&l.content&&l.rawContent!==l.content[0]?s=l.rawContent:a.data.getToolTip()&&(s=a.data.getToolTip()),(ae(s)||null!=t&&t.params.getToolTipFormatter)&&t.instance.showLabelToolTip(e,s,{rowData:a.data,columnData:n.column})):(l=(o=r.checkHitColumn(i))&&o.columnUI)&&(l.textLayoutUI&&qn(i,l.textLayoutUI,bt,r.toInfo(l),t),ae(s=Z(s=l.column.getToolTip())&&Xe===l.column.s(Le)&&l.rawContent!==l.content[0]?l.textLayoutUI?l.textLayoutUI.richRawText:l.rawContent:s)||null!=t&&t.params.getToolTipFormatter)&&t.instance.showLabelToolTip(e,s,{columnData:l.column}))},i.onEnter=function(e,t,i){C.handleEnter(t,e,i)},i.onMove=function(e,t,i){var r;C.handleDrag(t,e,i)||(r=(t=t.instance).data,x.hide(),t.checkHover(i,e))||r.iv()},i.onLeave=function(e,t,i){x.hide(),C.handleLeave(t,e,i)||((i=t.instance).fireLeave(e),i.fireHeadCellLeave(e),C.isDragging())||Q(i.view,B)},i.onDown=function(e,t,i){t.instance.checkHover(i,e)},i.onUp=function(e,t,i){var r,a,n,o,l,s,d,h,c,u,g,p,f,v;if(!C.handleDrop(t,e,i))return c=t.ui,l=(r=t.params).checkMode,s=(a=t.instance).data,f=a.checkHit(i),n=a.dm().sm(),v=c.headRect,d=c.bodyRect,h=void 0===(h=r.expandIconStyle)?{}:h,o=void 0===(o=r.sortIconStyle)?{}:o,de(d,i)?(d=!1,f&&f.columnUI&&f.onCheck&&!l&&a.isColumnEditable(f.columnUI.column,f.rowUI.data,"check")?(p=(g=f.cellUI).rowUI,g=g.columnUI.column,p=p.data,g=g.getName(),p.a(g,!p.a(g))):((!l||!f&&l||f&&!f.onCheck||f&&f.columnUI&&a.isColumnEditable(f.columnUI.column,f.rowUI.data,"check"))&&((p=null==f?void 0:f.rowUI)&&p.disabled&&(g=f.cellUI)&&(f.rowUI=g.rowUI,f.columnUI=g.columnUI),il(a,n,f,c,l,s,r.clearWhenHitBlank,a.getAllRowUIs())),f?(!(p=a.toInfo(f.columnUI,a.getRowUI(f.data),{kind:Sl.EVENT_CLICK_DATA,nativeEvent:e})).rowData&&f.data&&(p.rowData=f.data),a.fireEventWithDisabled(p),p[rt]&&(d=!0),f.columnUI&&((g=f.cellUI.textLayoutUI)&&(l=a.toInfo(f.columnUI,f.rowUI,{cellUI:f.cellUI,nativeEvent:e}),qn(a.toTranlatedLp(i),g,xt,l,t),l[rt])&&(d=!0),s=a.toInfo(f.columnUI,f.rowUI,{kind:Sl.EVENT_CLICK_CELL,cellUI:f.cellUI,nativeEvent:e}),a.fireEventWithDisabled(s),s[rt])&&(d=!0)):a.fireEvent({kind:Zo.EVENT_CLICK_BLANK}),f&&f.columnUI&&f.columnUI.column.s(y)===xt&&a.beginCellEditing(e,f.rowUI.data,f.columnUI.column)),!d&&f&&"treeTable"===a._innerPrefix&&(!h.triggerByIcon&&!f.onCheck||f.onExpand)?(g=(p=f.rowUI.data).s(A),p.s(tt)?(p.s(tt,void 0),p.s(it,!0),a.fireEvent({kind:tl.EVENT_LAZY_LOAD,rowData:p,index:f.index}),!0):p.hasChildren()?((c.expandingData=p).s(A,!g),a.fireEvent({kind:g?tl.EVENT_COLLAPSE:tl.EVENT_EXPAND,rowData:p,index:f.index}),!0):void 0):void 0):void(v&&de(v,i)&&(l=a.checkHitColumn(i))&&(s=l.columnUI,d=l.onCheck,s.sortRect,h=s.column,a.fireEvent(a.toInfo(null==l?void 0:l.columnUI,ee,{kind:Sl.EVENT_CLICK_HEAD,nativeEvent:e})),d&&a.isColumnEditable(s.column,null,"check")?a.isSelectAll()?(c=a.getVisibleDatas(),u=[],c.forEach(function(e){n.co(e)&&u.push(e)}),n.rs(u)):a.selectAll():s.textLayoutUI&&qn(i,s.textLayoutUI,xt,a.toInfo(s),t)||(h.s(z)&&(l.onSort||!o.triggerByIcon&&!l.onFilter)?(g=h.s("sortOrders")||w,p=h.s(X)||null,f=g.indexOf(p),p!==(v=g[(f+1)%g.length])&&(r.sortUnique&&a.clearSort([h]),h.s(X,v),a.fireEvent({kind:Sl.EVENT_SORT_CHANGE,oldValue:p,newValue:v,columnData:h}))):h.s(Fe)&&(l.onFilter||!o.triggerByIcon&&!l.onSort)&&a.handleColumnFilter(e,s))))},i.onDoubleClick=function(e,t,i){if(!C.isDragging()){var r=t.ui,t=t.instance,a=t.checkHit(i),r=r.bodyRect;if(de(r,i)&&a){if(t.fireEventWithDisabled(t.toInfo(a.columnUI,a.rowUI,{kind:Sl.EVENT_DOUBLE_CLICK_DATA,rowData:a.data,index:a.index,columnData:null==(r=null==a?void 0:a.columnUI)?void 0:r.column,nativeEvent:e})),a&&a.columnUI){i=a.columnUI.column.s(y);if("doubleClick"===i||!i)return void t.beginCellEditing(e,a.rowUI.data,a.columnUI.column)}t.endEditing()}}},i.onScroll=function(e,t,i){t.instance.checkHover(i,e),x.hide()},i.onBeginDrag=function(e,t,i){var r=t.ui,a=t.params,n=r.headRect,o=r.columnUIs,l=t.instance,s=l.data;de(r.bodyRect,i)?r.rowDragInfo&&(C.startDragging(t,e),s.iv()):n&&de(n,i)&&(s=l.checkHitColumn(i))&&(n=!1,s.onResize?(o.forEach(function(e){e.resizeRect&&e.column.s(m,e.width)}),r.resizingPoint=i,r.resizingColumn=s.columnUI.column,n=!0):(l=s.columnUI.column,a.columnMovable&&!s.onSort&&!s.onFilter&&!s.onCheck&&1{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.draw=function(e,t){zr(e,{draw:"slider",tag:this.prefix},t,this.data,this.view,{})},i.setValue=function(e){this.data.a("".concat(this.prefix,".value"),e)},i.getValue=function(){return this.data.a("".concat(this.prefix,".value"))},t})(gl),Qd=(r=>{function e(e){var t=r.call(this,e)||this,i=t;return i.popupByDOM=!0,i.colorPickerTemp=new ht.widget.ColorPickerTemp(e),i.element.appendChild(i.colorPickerTemp.getView()),i.popupSizeAbsolute=!0,t}_inheritsLoose(e,r);var t=e.prototype;return t.setValue=function(e){this.openValue=e,this.colorPickerTemp.onOpened(e)},t.getValue=function(){return this.colorPickerTemp.getValue()||this.openValue},t.getWidth=function(){return this.colorPickerTemp.getWidth()},t.getHeight=function(){return this.colorPickerTemp.getHeight()},t.setBackground=function(){var e=0{function e(){var e=r.apply(this,arguments)||this;return e._instant=!0,e}_inheritsLoose(e,r);var t=e.prototype;return t.init=function(){var t=this;r.prototype.init.call(this),t._clearButtonVisible=!0,t.dropdown=new Qd(t),t.dropdown.onClose=function(e){t.editing&&!e&&(t.setValue(t.dropdown.getValue()),t.endEdit())}},t.beginEditImpl=function(e,t,i){r.prototype.beginEditImpl.call(this,e,t,i);e=this.dropdown;i?(this.setInstant(i.instant),e.setBackground(i["box.background"]||"#fff"),e.open(this.getRawValue(),this.lastGraphRect,this.view)):this.endEdit(!0)},t.close=function(){this.dropdown.close(0{function e(e,t){e=i.call(this,e)||this;return e.setImage(t),e}return _inheritsLoose(e,i),e.prototype.setValue=function(e){},e})(fl),qd=(l=>{function e(e,t,i,r){var e=l.call(this,e,t,i)||this,a=e;return a.dropdown=new Hd(a,r),a.dropdown.getValue=function(){return a.getDropDownValue(a.dropdown)},a.dropdown.onClose=function(e){a.editing&&!e&&a.setValue(a.dropdown.getValue())},e}_inheritsLoose(e,l);var t=e.prototype;return t.getDropDownValue=function(e){return e.node.a("value")||this.getValue()},t.getDropDownWidth=function(e){return null},t.getDropDownHeight=function(e){return null},t.beginEditImpl=function(e,t,i){var r,a,n=this,o=(l.prototype.beginEditImpl.call(this,e,t,i),i.multiple&&(n.input.style.display="none"),n.dropdown);i?(r=n.getDropDownWidth(i),a=n.getDropDownHeight(i),si(r)&&r?o.setWidth(r):o.setWidth(e.width*t.a),si(a)&&o.setHeight(a),i.dropdownData&&(n.setDropdownData(i.dropdownData),n.setValue(n._rawValue)),o.open(n.getRawValue(),n.lastGraphRect,n.view)):n.endEdit(!0)},t.check=function(e){var t=l.prototype.check.call(this,e);return t||(t=this.dropdown.isOpened())&&(!t||this.dropdown.checkHitNode(e))},t.endEdit=function(e){var t=1{function m(e,t,i){e=r.call(this,e,t,i)||this;return e._innerPrefix="datePickerPane",e}_inheritsLoose(m,r);var e=m.prototype;return e.drawImpl=function(e,t,i){var r,a,n,o,l,s,d,h,c,u,g,p,f=this;f.data&&(r=i.pickerType,a=i.pickerWidth,u=i.pickerPadding,n=i.headStyle,o=i.bodyStyle,l=i.bottomStyle,i=i.rangeDateGap,s="dateRange"===r||"datetimeRange"===r||"timeRange"===r,f.drawInfo.ui.prePickerType!==r&&delete f.drawInfo.ui.calendars,h=[],(d=void 0===f.drawInfo.ui.calendars)&&(f.fireEvent({kind:m.EVENT_EXPAND}),f.drawInfo.ui.calendars=h,f.drawInfo.ui.prePickerType=r),cn(e,t),c=(u=_slicedToArray(pe(u),4))[0],u=u[3],f._drawBackground(e),f._drawOption(e),g=f._getPickerPaneStartX(),d&&(p=f._getInitDate(0),h[0]={date:new Date(p.getFullYear(),p.getMonth()),head:{year:p.getFullYear()}},"time"!==r)&&"timeRange"!==r&&("week"===r?f._initWeekDate():"quarter"===r?f._initQuarterDate():"halfYear"===r?f._initHalfYearDate():s?f._initRangeDate():f._initSelectedDates(),f._initSelectYearMonth(0)),f._drawCalendar(e,{x:u+g,y:c+t.y,width:a,height:n.height+n.bottomLineWidth+o.height+l.height},0),s&&(d&&(p=f._getInitDate(1),h[1]={date:p,head:{year:p.getFullYear()}},"time"!==r)&&"timeRange"!==r&&f._initSelectYearMonth(1),f._drawCalendar(e,{x:u+g+a+i,y:c+t.y,width:a,height:n.height+n.bottomLineWidth+o.height+l.height},1)),e.restore())},e._initSelectedDates=function(){var t=this.drawInfo.ui.calendars[0],e=(t.selectedDates={},this._getDatesByValue());0{for(var e,t,i,r,a=[],n=[],o=[],l=0;l<7;l++){var s,d,h,c,u,g=void 0,p=void 0,f=void 0,v=void 0,y=void 0,w=!1,m=we.DATE+"-rowNum:"+j+"-columnNum:"+l,x=((g=z.shift())?(p=L.weekLabelColor,f=L.weekLabelFont,y="week"):(g=H.shift())?(U._isToday(K,g)&&(w=!0),p=L.otherDateLabelColor,f=L.otherDateLabelFont,y="previous",v=new Date(F.getFullYear(),F.getMonth()-1,g)):(g=q.shift())?(U._isToday(F,g)&&(w=!0),p=L.dateLabelColor,f=L.dateLabelFont,y="current",v=new Date(F.getFullYear(),F.getMonth(),g)):(g=O.shift())&&(U._isToday(G,g)&&(w=!0),p=L.otherDateLabelColor,f=L.otherDateLabelFont,y="next",v=new Date(F.getFullYear(),F.getMonth()+1,g)),void 0),x="week"===y?{x:S.x+l*Q,y:S.y,width:Q,height:L.weekHeight}:{x:S.x+l*Q+(Q-(L.cellWidth||Q))/2,y:S.y+L.weekHeight+L.weekBottomLineWidth+L.weekBottomGap+(j-1)*Y+(Y-(L.cellHeight||Y))/2,width:L.cellWidth||Q,height:L.cellHeight||Y},b=void 0,D=void 0,I=void 0;0!==j&&("current"===y&&(N===m&&(t=x,p=J.dateLabelColor,f=J.dateLabelFont,D=!0),"dateRange"===k||"datetimeRange"===k?(s=(h=A.ui).rangeStartDate,d=h.rangeEndDate,h=h.rangeHoverDate,s&&(u=c=s,void 0!==d?(c=d.getTime()<=s.getTime()?d:s,u=d.getTime()<=s.getTime()?s:d):void 0!==h&&(c=h.getTime()<=s.getTime()?h:s,u=h.getTime()<=s.getTime()?s:h),c=new Date(c.getFullYear(),c.getMonth(),c.getDate()),u=new Date(u.getFullYear(),u.getMonth(),u.getDate()),v.getTime()>=c.getTime())&&v.getTime()<=u.getTime()&&(n.push(x),p=R.dateLabelColor,f=R.dateLabelFont,v.getTime()===c.getTime()&&(i=x,p=R.rangeDateLabelColor,f=R.rangeDateLabelFont),v.getTime()===u.getTime()&&(r=x,p=R.rangeDateLabelColor,f=R.rangeDateLabelFont),I=!0)):E[v.getFullYear()+"-"+v.getMonth()+"-"+v.getDate()]&&(n.push(x),p=R.dateLabelColor,f=R.dateLabelFont,I=!0)),X&&!X({date:v,rangeStartDate:A.ui.tempRangeStartDate},P,C)&&(o.push(x),p=M.dateLabelColor,f=M.dateLabelFont,b=!0),w&&(e={rect:{x:x.x+x.width-5,y:x.y,width:5,height:5},background:L.todayMarkColor,borderRadius:2.5}),W.push({cellRect:x,cellName:m,cellType:y,cellDate:v})),a[l]={text:g,rect:x,textColor:p,textFont:f},0!==j&&(L.dateCellBackground&&Dr(B,x,ge(B,x,U.toBlendedColor(L.dateCellBackground)),L.dateCellCornerRadius||0),L.drawDateCellBackground&&L.drawDateCellBackground(B,{date:v,rect:x,type:y,status:b?"disabled":I?"selected":D?"hover":"normal"},P,C),L.dateBorderWidth)&&L.dateBorderColor&&(B.beginPath(),At(B,x.x+L.dateBorderWidth/2,x.y+L.dateBorderWidth/2,x.width-L.dateBorderWidth,x.height-L.dateBorderWidth,L.dateCellCornerRadius||0),B.closePath(),B.lineWidth=L.dateBorderWidth,B.strokeStyle=U.toBlendedColor(L.dateBorderColor),B.stroke())}if(0p)return e.restore(),U>t.height&&(F={scrollWidth:t.width,scrollHeight:U},z&&a<0&&(F.translateY=a),Qr(o,ue(F,s.scrollbarStyle),ne),zr(e,{draw:"scrollbar",tag:"".concat(n._innerPrefix,".template").concat(i).concat(v)},t,o,l)),re}}},e._drawListTimeBody=function(p,f,v){function e(e,i){var r=new ht.DataModel;return e.forEach(function(e){var t=new ht.Data;t.setName(e),t.setTag(+e+""),r.add(t),+e==i&&r.sm().ss(t)}),d&&r.sm().ms(function(e){D.ui.isOptionAction||m.setValue()}),r}function t(e){var t,i,r,a,n,o,l;if(s[e]&&s[e].timeBody)return t=(r=s[e].timeBody).listHourDm,i=r.listMinuteDm,r=r.listSecondDm,a=t&&t.sm().ld(),n=i&&i.sm().ld(),o=r&&r.sm().ld(),l=[],h?D.ui.rangeStartDate&&D.ui.rangeEndDate&&(l=[D.ui.rangeStartDate,D.ui.rangeEndDate]):s[e].selectedDates&&(l=ur(s[e].selectedDates)),{listHourDm:t,listMinuteDm:i,listSecondDm:r,selectDates:l,selectHour:a?+a.getName():null,selectMinute:n?+n.getName():null,selectSecond:o?+o.getName():null}}var i,r,y,a,w,n,m=this,x=m.data,b=m.view,D=m.drawInfo,o=m.params,s=m.drawInfo.ui.calendars,l=o.pickerType,I=o.timeStyle,d=o.autoSetValue,h="dateRange"===l||"datetimeRange"===l||"timeRange"===l,o=s[v].timeBody,c=new Date,l=["time","timeRange"].includes(l),u=l&&I.hourList||Bt,g=m.getDefaultHour(c),T=I.isDefaultNow?c.getMinutes():0,c=I.isDefaultNow?c.getSeconds():0,V=(void 0===o?(o=g,i=T,r=c,(a=m._getDatesByValue()[v])&&(o=l?$d(a):a.getHours(),i=a.getMinutes(),r=a.getSeconds()),I.hourVisible&&(y=e(u,o)),I.minuteVisible&&(w=e(Ut,i)),I.secondVisible&&(n=e(Pt,r))):(I.hourVisible&&(y=s[v].timeBody.listHourDm||e(u,(l=m._getDatesByValue())[v]?l[v].getHours():g)),I.minuteVisible&&(w=s[v].timeBody.listMinuteDm||(a=m._getDatesByValue(),e(Ut,a[v]?a[v].getMinutes():T))),I.secondVisible&&(n=s[v].timeBody.listSecondDm||(o=m._getDatesByValue(),e(Pt,o[v]?o[v].getSeconds():c)))),void 0===s[v].timeBody),B=(s[v].timeBody={listHourDm:y,listMinuteDm:w,listSecondDm:n},[]),S=(y&&B.push(y),w&&B.push(w),n&&B.push(n),t(0)),U=t(1);B.forEach(function(a,e){var n,o,l=a===y?"hour":a===w?"minute":"second",t=((I.selectableFunc||I.visibleFunc)&&(n=!1,a.each(function(e){var t={time:+e.getName(),timeType:l,paneIndex:v},i=(S&&(t.pane0=S),U&&(t.pane1=U),!0),r=!0;I.selectableFunc&&(i=I.selectableFunc(t,x,b),e.s("disabled",!i)),I.visibleFunc&&(r=I.visibleFunc(t,x,b),e.s("visible",r)),!a.sm().co(e)||i&&r||(n=!0),!o&&i&&r&&(o=e)}),n)&&a.sm().ss(o),"".concat(m.innerPrefix,".list").concat(v).concat(e)),i={};if(V||void 0===x.a(t+".list.translateY")||D.ui.isOptionAction){var r=a.toDatas(function(e){return e.s("visible")||void 0===e.s("visible")}),s=r.size();if(0f.height){for(var c=r.indexOf(a.sm().ld())||0,u=0,r=-(d*s+h*(s-1))+f.height,g=1;g<=c;g++)u-=d+h;i["list.translateY"]=ce(te(0,u+=(f.height-d)/2),r)}else i["list.translateY"]=0}}I.listProperties.scrollbarStyle?I.listProperties.scrollbarStyle.resetWhenClear=!1:I.listProperties.scrollbarStyle={resetWhenClear:!1},Qr(x,ue({dataModel:a},i,I.listProperties,{clearWhenHitBlank:!1}),t);s=f.width-(B.length-1)*(I.listGap||0),r={x:f.x+(s/B.length+(I.listGap||0))*e,y:f.y,width:s/B.length,height:f.height};zr(p,{draw:"list",tag:"".concat(m._innerPrefix,".list").concat(v).concat(e)},r,x,b)})},e._drawBottom=function(e,t,i){var r,o,a,n,l=this,s=l.data,d=l.view,h=l.drawInfo,c=l.params,u=l.drawInfo.ui.calendars,g=c.pickerType,p=c.confirm,f=c.multiple,v=c.bottomStyle,y=c.confirmableFunc,w=c.rangeFormatSeparator;-1<["date","dateRange","year","month","week","quarter","halfYear"].indexOf(g)&&!p&&!f||(r=u[i].bodyType,o="dateRange"===g||"datetimeRange"===g||"timeRange"===g,a="month"!==g&&r===we.MONTH||"year"!==g&&r===we.YEAR||"week"!==g&&r===we.WEEK||"quarter"!==g&&r===we.QUARTER||"halfYear"!==g&&r===we.HALFYEAR,"datetime"!==g&&"datetimeRange"!==g&&!a||(c=a?l._getLocalText("back"):r===we.TIME?l._getLocalText("selectDate"):l._getLocalText("selectTime"),p={handleEvent:function(e){"click"===e.kind&&(u[i].bodyType=a?"year"===g?we.YEAR:"month"===g?we.MONTH:"week"===g?we.WEEK:"quarter"===g?we.QUARTER:"halfYear"===g?we.HALFYEAR:we.DATE:r===we.TIME?we.DATE:we.TIME,s.iv()),(v.switchButtonProperties||{}).handleEvent&&(v.switchButtonProperties||{}).handleEvent(e,s,d)}},f="".concat(l.innerPrefix,".switchButton").concat(i),Qr(s,ue({label:c},v.switchButtonProperties||{},p),f),c={x:t.x+10+v.switchButtonOffsetX,y:t.y+(t.height-v.switchButtonHeight)/2,width:v.switchButtonWidth,height:v.switchButtonHeight},zr(e,{draw:"button",tag:"".concat(l._innerPrefix,".switchButton").concat(i)},c,s,d)),o&&1!==i)||(v.clearButtonVisible&&(p={handleEvent:function(e){"click"===e.kind&&(s.a(h.prefix+"value",""),l.fireEvent({kind:m.EVENT_CLICK_CLEAR_BUTTON,paneIndex:i})),(v.clearButtonProperties||{}).handleEvent&&(v.clearButtonProperties||{}).handleEvent(e,s,d)}},f="".concat(l.innerPrefix,".clearButton").concat(i),Qr(s,ue({label:l._getLocalText("clear")},v.clearButtonProperties||{},p),f),c={x:t.x+t.width-2*v.clearButtonWidth+v.clearButtonOffsetX,y:t.y+(t.height-v.clearButtonHeight)/2,width:v.clearButtonWidth,height:v.clearButtonHeight},zr(e,{draw:"button",tag:"".concat(l._innerPrefix,".clearButton").concat(i)},c,s,d)),v.okButtonVisible&&(n=function(){function e(e){var t,i,r={formatDate:o?a.split(w||" ~ ")[e]||void 0:a||void 0,selectHour:n[e]?n[e].getHours():void 0,selectMinute:n[e]?n[e].getMinutes():void 0,selectSecond:n[e]?n[e].getSeconds():void 0};return(e=u[e]).timeBody&&(t=(e=e.timeBody).listHourDm,i=e.listMinuteDm,e=e.listSecondDm,t&&t.sm().ld()&&(r.selectHour=+t.sm().ld().getName()),i&&i.sm().ld()&&(r.selectMinute=+i.sm().ld().getName()),e)&&e.sm().ld()&&(r.selectSecond=+e.sm().ld().getName()),r}var a=l.getValue(),n=l._getDatesByValue(),t={};return t.date0=e(0),o&&(t.date1=e(1)),t},p={disabled:!!y&&!y(n(),s,d),handleEvent:function(e){if("click"===e.kind){if(y&&!y(n(),s,d))return;l.close(),l.fireEvent({kind:m.EVENT_CLICK_OK_BUTTON,paneIndex:i})}(v.okButtonProperties||{}).handleEvent&&(v.okButtonProperties||{}).handleEvent(e,s,d)}},f="".concat(l.innerPrefix,".okButton").concat(i),Qr(s,ue({label:l._getLocalText("ok")},v.okButtonProperties||{},p),f),c={x:t.x+t.width-v.okButtonWidth+v.okButtonOffsetX,y:t.y+(t.height-v.okButtonHeight)/2,width:v.okButtonWidth,height:v.okButtonHeight},zr(e,{draw:"button",tag:"".concat(l._innerPrefix,".okButton").concat(i)},c,s,d)))},e._drawRowLine=function(e,t){var i=this.params,r=this.rect,a=i.pickerType,n=i.pickerWidth,o=i.pickerPadding,l=i.headStyle,s=i.bodyStyle,d=i.bottomStyle,i=i.rangeDateGap,a="dateRange"===a||"datetimeRange"===a||"timeRange"===a,h=this._isShowBottom(),c=this._getPickerPaneStartX(),a=a?n+i+n:n,o=_slicedToArray(pe(o),4),u=o[0],o=o[3],g={x:o+c,y:u+r.y,width:a,height:l.height},o={x:o+c,y:u+r.y+l.height+l.bottomLineWidth+s.height+d.topLineWidth,width:a,height:d.height};l.bottomLineWidth&&l.bottomLineColor&&(0===t?ua(e,c={x:g.x,y:g.y+g.height,width:n,height:l.bottomLineWidth},ge(e,c,this.toBlendedColor(l.bottomLineColor))):ua(e,u={x:g.x+n+i,y:g.y+g.height,width:n,height:l.bottomLineWidth},ge(e,u,this.toBlendedColor(l.bottomLineColor)))),h&&d.topLineWidth&&d.topLineColor&&(0===t?ua(e,r={x:o.x,y:o.y-d.topLineWidth,width:n,height:d.topLineWidth},ge(e,r,this.toBlendedColor(d.topLineColor))):ua(e,s={x:o.x+n+i,y:o.y-d.topLineWidth,width:n,height:d.topLineWidth},ge(e,s,this.toBlendedColor(d.topLineColor))))},e._drawBackground=function(e){var t=this.params,i=this.rect,r=t.pickerType,a=t.pickerWidth,n=t.pickerCornerRadius,o=t.pickerBackground,l=t.pickerPadding,s=t.headStyle,d=t.bodyStyle,h=t.bottomStyle,c=t.optionStyle,u=t.rangeDateGap,g=t.rangeDateSplitLineWidth,t=t.rangeDateSplitLineColor,r="dateRange"===r||"datetimeRange"===r||"timeRange"===r,p=this._isShowBottom(),f=this._getPickerPaneStartX(),v=r?a+u+a:a,l=_slicedToArray(pe(l),4),y=l[0],w=l[3],l={x:i.x,y:i.y,width:w+(c.visible?c.width+c.splitLineLeftGap+c.splitLineWidth+c.splitLineRightGap:0)+v+l[1],height:y+s.height+s.bottomLineWidth+d.height+(p?h.topLineWidth+h.height:0)+l[2]},m={x:w+f,y:y+i.y,width:v,height:s.height},x={x:w+f,y:y+i.y+s.height+s.bottomLineWidth,width:v,height:d.height},v={x:w+f,y:y+i.y+s.height+s.bottomLineWidth+d.height+h.topLineWidth,width:v,height:h.height};o&&(e.fillStyle=ge(e,l,o),e.beginPath(),At(e,l.x,l.y,l.width,l.height,n),e.fill()),s.background&&(e.fillStyle=ge(e,m,this.toBlendedColor(s.background)),e.beginPath(),At(e,m.x,m.y,m.width,m.height,c.visible?0:n,n,0,0),e.fill()),d.background&&(e.fillStyle=ge(e,x,this.toBlendedColor(d.background)),e.beginPath(),At(e,x.x,x.y,x.width,x.height,0,0,p||c.visible?0:n,p?0:n),e.fill()),p&&h.background&&(e.fillStyle=ge(e,v,this.toBlendedColor(h.background)),e.beginPath(),At(e,v.x,v.y,v.width,v.height,0,0,c.visible?0:n,n),e.fill()),r&&g&&t&&ua(e,{x:w+f+a+u/2-g/2,y:y+i.y,width:g,height:s.height+s.bottomLineWidth+d.height},t)},e._isToday=function(e,t){var i=new Date;return e.getFullYear()===i.getFullYear()&&e.getMonth()===i.getMonth()&&t===i.getDate()},e._isShowBottom=function(){var e=this.params,t=e.pickerType;return e.confirm||e.multiple||-1<["datetime","datetimeRange","time","timeRange"].indexOf(t)},e._getFormat=function(){var e=this.params,t=e.pickerType,e=e.format;return e||("date"===t?"YYYY-MM-DD":"datetime"===t?"YYYY-MM-DD HH:mm:ss":"dateRange"===t?"YYYY-MM-DD":"datetimeRange"===t?"YYYY-MM-DD HH:mm:ss":"year"===t?"YYYY 年":"month"===t?"MM 月":"week"===t?"YYYY 年 第 W 周":"quarter"===t?"YYYY 年 W 季度":"halfYear"===t?"YYYY 年W半年":"time"===t||"timeRange"===t?"HH:mm:ss":void 0)},e._getPickerPaneStartX=function(){var e=this.params.optionStyle;return this.rect.x+(e.visible?e.width+e.splitLineLeftGap+e.splitLineWidth+e.splitLineRightGap:0)},e._getLocalText=function(e){var t=this.params.locales,t=void 0===t?{language:"zh"}:t;return"custom"===t.language?t[e]||Et[e]:"zh"===t.language?Et[e]:"en"===t.language?kt[e]:void 0},e.close=function(){var e=this.data,t=this.params,i=this.drawInfo,r=this.getValue();e.a(i.prefix+"value",r),this.fireEvent({kind:m.EVENT_ON_DATE_CHANGE,oldValue:t.value,newValue:r}),this.fireEvent({kind:m.EVENT_COLLAPSE})},e.setDate=function(a){var e,t,n,i,r,o,l,s,d=this;!a||re(a)&&0===a.length||(re(a)||(a=[a]),"dateRange"!==(e=d.params.pickerType)&&"datetimeRange"!==e&&"timeRange"!==e||1!==a.length||(a[1]=a[0]),t=d.drawInfo.ui,n=t.calendars,i=function(e){n[e].date=new Date(a[e].getFullYear(),a[e].getMonth(),a[e].getDate()),n[e].head.year=n[e].date.getFullYear()},r=function(){t.rangeStartDate=a[0],t.rangeEndDate=a[1]},o=function(){n[0].selectedDates={},a.forEach(function(e){n[0].selectedDates[e.getFullYear()+"-"+e.getMonth()+"-"+e.getDate()]=e})},l=function(){n[0].selectedYears={},n[0].selectedMonths={},a.forEach(function(e){n[0].selectedYears[e.getFullYear()]=e,n[0].selectedMonths[e.getFullYear()+"-"+e.getMonth()]=e})},s=function(e){var t,i,r;n[e].timeBody&&(t=(r=n[e].timeBody).listHourDm,i=r.listMinuteDm,r=r.listSecondDm,t&&t.sm().ss([t.getDataByTag(a[e].getHours())]),i&&i.sm().ss([i.getDataByTag(a[e].getMinutes())]),r)&&r.sm().ss([r.getDataByTag(a[e].getSeconds())])},d.drawInfo.ui.isOptionAction=!0,"date"===e&&(i(0),o()),"dateRange"===e&&(i(0),i(1),r()),"datetime"===e&&(i(0),o(),s(0)),"datetimeRange"===e&&(i(0),i(1),r(),s(0),s(1)),"year"===e&&(i(0),l()),"month"===e&&(i(0),l()),"time"===e&&s(0),"timeRange"===e&&(s(0),s(1)),d.setValue(),Vi(function(){delete d.drawInfo.ui.isOptionAction}))},e.getValue=function(){function e(e,t){var i=e.listHourDm,r=e.listMinuteDm,e=e.listSecondDm;i&&(i=i.sm().ld(),t.setHours(i?+i.getName():0)),r&&(i=r.sm().ld(),t.setMinutes(i?+i.getName():0)),e&&(r=e.sm().ld(),t.setSeconds(r?+r.getName():0))}function t(e,t){var i,r,a;c.ui.isOptionAction||(r=new Date,a=d.getDefaultHour(r),i=p.isDefaultNow?r.getMinutes():0,r=p.isDefaultNow?r.getSeconds():0,t.setHours(a),t.setMinutes(i),t.setSeconds(r),0<(a=d._getDatesByValue()).length&&(t.setHours(a[e].getHours()),t.setMinutes(a[e].getMinutes()),t.setSeconds(a[e].getSeconds())))}var i,r,a,n,o,l,s,d=this,h=d.params,c=d.drawInfo,u=c.ui.calendars,g=h.pickerType,p=h.timeStyle,h=h.rangeFormatSeparator,f=d._getFormat(),v="",y=u[0];"dateRange"!==g&&"datetimeRange"!==g&&"timeRange"!==g||(i=u[1]);if("date"===g||"datetime"===g){var w,m=y.selectedDates,x=y.timeBody;for(w in m){var b=m[w];"datetime"===g&&(x?e(x,b):t(0,b)),v+=(""===v?"":",")+Od.formatDate(b,f)}}if("dateRange"!==g&&"datetimeRange"!==g||(s=(u=c.ui).rangeStartDate,u=u.rangeEndDate,s&&u&&("datetimeRange"===g&&(l=y.timeBody,o=i.timeBody,l?e(l,s):t(0,s),o?e(o,u):t(1,u)),v=(v+=Od.formatDate(s,f)+(h||" ~ "))+Od.formatDate(u,f))),"year"===g){var D,I=y.selectedYears;for(D in I)v+=(""===v?"":",")+Od.formatDate(I[D],f)}if("month"===g){var T,V=y.selectedMonths;for(T in V)v+=(""===v?"":",")+Od.formatDate(V[T],f)}if("week"===g)for(r in y.selectedWeeks){var B=_slicedToArray(r.split("-"),2),S=B[0],B=B[1];v+=(""===v?"":",")+f.replace("YYYY",S).replace("W",B)}if("quarter"===g)for(a in y.selectedQuarters){var U=_slicedToArray(a.split("-"),2),P=U[0],U=U[1];v+=(""===v?"":",")+f.replace("YYYY",P).replace("W",U)}if("halfYear"===g)for(n in y.selectedHalfYears){var C=_slicedToArray(n.split("-"),2),A=C[0],C=C[1];v+=(""===v?"":",")+f.replace("YYYY",A).replace("W",d._getLocalText("halfYearTexts")[+C-1])}return"time"!==g&&"timeRange"!==g||(l=new Date((new Date).getFullYear(),0,1),(o=y.timeBody)?e(o,l):t(0,l),v+=_d(l,f),"timeRange"===g&&(l=new Date((new Date).getFullYear(),0,1),(s=i.timeBody)?e(s,l):t(1,l),v+=(h||" ~ ")+_d(l,f))),v},e.setValue=function(){var e=this.drawInfo.prefix,t=this.getValue();this.data.a(e+"value",t),this.fireEvent({kind:m.EVENT_UPDATE_INPUT,value:t})},e.getDefaultHour=function(e){var t=this.params,i=t.timeStyle,t=["time","timeRange"].includes(t.pickerType),r=i.isDefaultNow?e.getHours():0;if(t&&i.hourList){for(var a=!1,n=0;n{function e(e){e=t.call(this,e)||this;return e.init(),e}_inheritsLoose(e,t);var i=e.prototype;return i.init=function(){var t=this;t.setImage(Lr("datePickerPane")),t.node.a("handleEvent",function(e){e.kind!==Zd.EVENT_CLICK_CLEAR_BUTTON&&e.kind!==Zd.EVENT_ON_DATE_CHANGE||t.close(),e.kind===Zd.EVENT_UPDATE_INPUT&&(e=e.value,t.master.setRawValue(e),t.master.setValue(e),t.master.notifier.fire({kind:Ho.SET_VALUE,value:e}))})},i.getWidth=function(){var e=this.node,t={pickerWidth:e.a("pickerWidth"),rangeDateGap:e.a("rangeDateGap"),optionStyle:e.a("optionStyle"),pickerPadding:e.a("pickerPadding")},i=(Rn.convertParams("datePickerPane",t,e.a("themeClass")),t.pickerWidth),e=e.a("pickerType"),r=t.rangeDateGap,a=t.optionStyle,t=_slicedToArray(pe(t.pickerPadding),4);t[0];return t[3]+("dateRange"===e||"datetimeRange"===e||"timeRange"===e?i+r+i:i)+(a.visible?a.width+a.splitLineLeftGap+a.splitLineWidth+a.splitLineRightGap:0)+t[1]},i.getHeight=function(){var e=this.node,t={headStyle:e.a("headStyle"),bodyStyle:e.a("bodyStyle"),bottomStyle:e.a("bottomStyle")},i=(Rn.convertParams("datePickerPane",t,e.a("themeClass")),e.a("pickerType")),r=e.a("confirm"),a=e.a("multiple"),n=t.headStyle,o=t.bodyStyle,t=t.bottomStyle,e=_slicedToArray(pe(e.a("pickerPadding")),4),l=e[0],e=e[2],r=r||a||-1<["datetime","datetimeRange","time","timeRange"].indexOf(i),a=l+n.height+n.bottomLineWidth+o.height+(r?t.height+t.topLineWidth:0)+e;return this._maxHeight?te(this._maxHeight,a):a},i.getValue=function(){return this.node.a("value")},i.setValue=function(e){this.node.a("value",e)},i.setBackground=function(){this.node.a("background",0{function e(e){return t.call(this,e)||this}_inheritsLoose(e,t);var i=e.prototype;return i.init=function(){var r=this,a=r.node,n=(r.setImage("drawing.mbScrollPane"),r.valueDatas=null,new ht.DataModel);a.a("dataModel",n),a.a("scrollPaneHandleEvent",function(e){var t,i=e.newValue;"paneChange"===e.kind&&(t=a.a("pickerType"),"year"===i.a("type")&&["date","yearMonth"].includes(t)&&0===i.getChildren().size()&&rh(n,i),"month"===i.a("type")&&["date"].includes(t)&&0===i.getChildren().size()&&ah(n,i),"hour"===i.a("type")&&["time","hourMinute"].includes(t)&&0===i.getChildren().size()&&nh(n,i),"minute"===i.a("type"))&&["time"].includes(t)&&0===i.getChildren().size()&&oh(n,i),"change"===e.kind&&(r.valueDatas=i)}),a.a("cancleButtonHandleEvent",function(e){"click"===e.kind&&r.master.endEdit(!0,!0)}),a.a("okButtonHandleEvent",function(e){"click"===e.kind&&(e=r._getValue(),r.master.setRawValue(e),r.master.setValue(e),r.master.endEdit())})},i.setValue=function(e){var t=this.node,i=t.a("dataModel"),r=t.a("format"),a=t.a("pickerType"),n=["date","yearMonth","year"].includes(a),o=["time","hourMinute","hour"].includes(a);if(n)for(var l=i,s=t.a("startYear"),d=t.a("endYear"),h=s;h<=d;h++){var c=new ht.Data;c.setName(h+""),c.setDisplayName(h+""),c.setTag("year"+h),c.a("type","year"),l.add(c)}else if(o)for(var u=i,s=t.a("startHour"),g=t.a("endHour"),p=s;p<=g;p++){var f=new ht.Data;f.setName(p+""),f.setDisplayName(p+""),f.setTag("hour"+p),f.a("type","hour"),u.add(f)}e&&(t=Od.parseDate(e,r),n?(e=t.getFullYear(),r=t.getMonth(),n=t.getDate(),(e=i.getDataByTag("year"+e)).s("defaultSelect",!0),["date","yearMonth"].includes(a)&&(rh(i,e),(e=e.getChildren().get(r)).s("defaultSelect",!0),["date"].includes(a))&&(ah(i,e),e.getChildren().get(n-1).s("defaultSelect",!0))):o&&(r=t.getHours(),e=t.getMinutes(),n=t.getSeconds(),(o=i.getDataByTag("hour"+r)).s("defaultSelect",!0),["time","hourMinute"].includes(a))&&(nh(i,o),(t=o.getChildren().get(e)).s("defaultSelect",!0),["time"].includes(a))&&(oh(i,t),t.getChildren().get(n).s("defaultSelect",!0)))},i.getValue=function(){if(void 0!==this.master.getRawValue()&&this.valueDatas)return this._getValue()},i._getValue=function(){var e,t,i,r=this.valueDatas;if(r)return e=(t=this.node).a("format"),"date"===(t=t.a("pickerType"))?i=new Date(+r[0].getName(),+r[1].getName(),+r[2].getName()):"yearMonth"===t?i=new Date(+r[0].getName(),+r[1].getName(),1):"year"===t?i=new Date(+r[0].getName(),0,1):"time"===t?i=new Date(0,0,0,+r[0].getName(),+r[1].getName(),+r[2].getName()):"hourMinute"===t?i=new Date(0,0,0,+r[0].getName(),+r[1].getName(),0):"hour"===t&&(i=new Date(0,0,0,+r[0].getName(),0,0)),Od.formatDate(i,e)},i.getHeight=function(){return this.node.a("box.height")},e})(fl);function rh(e,t){for(var i=1;i<=12;i++){var r=new ht.Data;r.setName(i-1+""),r.setDisplayName((i<10?"0":"")+i),r.setParent(t),r.a("type","month"),e.add(r)}}function ah(e,t){for(var i=t.getParent(),i=Number(i.getName()),r=Number(t.getName()),a=new Date(i,r+1,0).getDate(),n=1;n<=a;n++){var o=new ht.Data;o.setName(n+""),o.setDisplayName((n<10?"0":"")+n),o.setParent(t),o.a("type","day"),e.add(o)}}function nh(e,t){for(var i=0;i<=59;i++){var r=new ht.Data;r.setName(i+""),r.setDisplayName(i+""),r.a("type","minute"),r.setParent(t),e.add(r)}}function oh(e,t){for(var i=0;i<=59;i++){var r=new ht.Data;r.setName(i+""),r.setDisplayName(i+""),r.a("type","seconds"),r.setParent(t),e.add(r)}}var lh=(a=>{function e(){return a.apply(this,arguments)||this}_inheritsLoose(e,a);var t=e.prototype;return t.init=function(){var e=this;a.prototype.init.call(this),gi?e.dropdown=new ih(e):(e.dropdown=new th(e),e.dropdown.onClose=function(){e.editing&&(e.setRawValue(e.dropdown.getValue()),e.setValue(e.dropdown.getValue()),e.endEdit())})},t.beginEditImpl=function(e,t,i){a.prototype.beginEditImpl.call(this,e,t,i);var r=this.dropdown,i=i["box.width"];si(i)&&i?r.setWidth(i):r.setWidth(e.width*t.a),r.open(this.getRawValue(),this.lastGraphRect,this.view)},t.endEditImpl=function(){a.prototype.endEditImpl.call(this),this.dropdown.close()},t.setValue=function(e){ae(e)&&(this.input.value=e)},t.getValue=function(){return this.dropdown.getValue()},t.getRawValue=function(){return this._rawValue},t.check=function(e){var t=a.prototype.check.call(this,e);return t||(t=this.dropdown.isOpened())&&(!t||this.dropdown.checkHitNode(e))},e})(Ko),sh=["readonly","dropdownProperties","mbDropdownProperties","dropdownIconStyle"],dh=i((l=>{function e(){var e=l.apply(this,arguments)||this;return e._innerPrefix="select",e}_inheritsLoose(e,l);var t=e.prototype;return t.init=function(e,t){this.checkDropdownData(t),l.prototype.init.call(this,e,t)},t.beginEditing=function(e){var t=this,i=t.data,r=t.view,a=Ir(r,i,t.comp,e);a&&((i=t.editor=new wl(i,r,t.drawInfo)).addListener(function(e){e.kind===Ho.END_EDIT?(e.isCancel||t.updateValue(e.value),t.endEditing()):"didRemoteSearch"===e.kind&&t.setCompAttr("dropdownData",e.datas||[])}),i.beginEdit(t.rect,a.matrix,t.getRawValue(),t.getEditorOption()),l.prototype.beginEditing.call(this,e))},t.getEditorOption=function(){var e=this.params,t=e.dropdownProperties,t=void 0===t?{}:t,i=e.mbDropdownProperties,i=void 0===i?{}:i,r=e.dropdownData,a=e.invalidValueVisible,n=e.searchable,e=e.remoteSearchFunc,o=l.prototype.getEditorOption.call(this),i=he(gi?i:t);return i.enum=r,i.invalidValueVisible=a,(i.searchable=n)&&(i.readonly=!1,i.enterEndable=!1,i.remoteSearchFunc=e),xa(o,i,!0),o},t.getValue=function(){var e=this.params,t=e.value,i=e.dropdownData,e=e.invalidValueVisible;if(void 0===t||(!i||!i.length)&&e)return t;if(i)for(var r=0;r{function e(){return l.apply(this,arguments)||this}_inheritsLoose(e,l);var t=e.prototype;return t.onEnter=function(e,t,i){var r,a,n=t.instance,o=n.data,n=n.view;fa(n)&&qo.includes(t)&&delete t._blur,C.handleEnter(t,e,i)||(i=t.params,r=t.ui,a=void 0===(a=i.disabledStyle)?{}:a,i.disabled?a.cursor&&Q(n,a.cursor):(fn(n,i.hoverStyle,qe),r.isHovering=!0,t.instance.editor||o.iv()),t.instance.showPopover(e,ie,lt))},t.onMove=function(e,t,i){var r,a,n,o=t.instance,o=(o.data,o.view);x.hide(),C.handleDrag(t,e,i)||(r=t.params,a=t.ui,n=t.instance,r.disabled||!n||a.dropdownIconRect&&de(a.dropdownIconRect,i)||n.editor?l.prototype.onMove.call(this,e,t,i):fn(o,r.hoverStyle,qe))},t.onLeave=function(e,t,i){var r=t.instance,a=r.data,r=r.view;fa(r)&&qo.includes(t)&&(t._blur=!0),C.handleLeave(t,e,i)||(e=t.ui,Q(r,B),e.isHovering&&(delete e.isHovering,t.instance.editor||a.iv()),t.instance.hidePopover(lt))},e})(Jl),ch=mo(hh),uh=i((o=>{function e(){var e=o.apply(this,arguments)||this;return e._innerPrefix="templateSelect",e}_inheritsLoose(e,o);var t=e.prototype;return t.init=function(e,t){this.checkDropdownData(t),o.prototype.init.call(this,e,t)},t.beginEditing=function(e){var t,i,r,a=this,n=a.params.editorClass,n=jt(n);n?(t=a.data,(r=Ir(i=a.view,t,a.comp,e))&&((n=a.editor=new n(t,i,a.drawInfo)).addListener(function(e){e.kind===Ho.END_EDIT&&(e.isCancel||a.updateValue(e.value),a.endEditing())}),n.beginEdit(a.rect,r.matrix,a.getRawValue(),a.getEditorOption()),o.prototype.beginEditing.call(this,e))):console.warn("[Template Select] Cannot find editor class")},t.getValue=function(){var e=this.params,r=e.value,t=e.dropdownData,e=e.invalidValueVisible;if(void 0===r||(!t||!t.length)&&e)return r;if(t){var a=function(e){for(var t=0;t{function e(){var e=n.apply(this,arguments)||this;return e._innerPrefix="multipleSelect",e}_inheritsLoose(e,n);var t=e.prototype;return t.init=function(e,t){this.checkDropdownData(t),n.prototype.init.call(this,e,t),this.translateY=this.getInnerAttr("translateY",0)},t.beginEditing=function(e){var i=this,t=i.data,r=i.view,a=Ir(r,t,i.comp,e);a&&((t=i.editor=new wl(t,r,i.drawInfo)).addListener(function(e){var t;e.kind===Ho.END_EDIT?(e.isCancel||(t=ci(e.value)?e.value.split(","):e.value,i.updateValue(t)),delete i.editor,i.endEditing()):e.kind===l&&i.updateValue(e.newValue)}),t.beginEdit(i.rect,a.matrix,i.getRawValue(),i.getEditorOption()),n.prototype.beginEditing.call(this,e))},t.getEditorOption=function(){var e=this.params,t=e.dropdownProperties,t=void 0===t?{}:t,e=e.dropdownData,i=n.prototype.getEditorOption.call(this);return i.multiple=!0,t.enum=e,xa(i,t,!0),i},t.getValue=function(){var e=this.params,t=e.value,i=e.dropdownData,r=e.invalidValueVisible;if(Z(t)||!i||!i.length)return t;function a(e){e&&e.forEach(function(e){e&&(o.push(e),e.children)&&a(e.children)})}var n=[],o=[];if(i){a(i);for(var l=o.length,s=0;ss.rect.height&&(Qr(i,ue({scrollWidth:s.rect.width,scrollHeight:e},d),s.innerPrefix),zr(l,{draw:"scrollbar",tag:s._innerPrefix},s.rect,i,r));u=s.rect.height-e;(u<0&&s.translateY{function e(){var e=t.apply(this,arguments)||this;return e._innerPrefix="templateMultipleSelect",e}_inheritsLoose(e,t);var i=e.prototype;return i.beginEditing=function(e){var t,i,r,a=this,n=a.params.editorClass,n=jt(n);n?(t=a.data,(r=Ir(i=a.view,t,a.comp,e))&&((n=a.editor=new n(t,i)).addListener(function(e){e.kind===Ho.END_EDIT?(e.isCancel||a.updateValue(e.value),a.endEditing()):e.kind===l&&a.updateValue(e.newValue)}),n.beginEdit(a.rect,r.matrix,a.getRawValue(),a.getEditorOption()),Yo.prototype.beginEditing.call(a,e))):console.warn("[Template Select] Cannot find editor class")},i.getEditorOption=function(){var e=t.prototype.getEditorOption.call(this);return e.readOnly=!0,e.multiple=!0,e.dropdownData=this.params.dropdownData,e},e})(gh),[].concat(Nl,sh,["invalidValueVisible","dropdownData","editorClass","itemStyle","scrollbarStyle"]),El),ph=(e=>{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onMove=function(e,t,i){return x.hide(),t.instance.fireEvent({kind:"move",nativeEvent:e})},i.onHover=function(e,t,i){var r=t.params,t=t.instance;return r.toolTip&&t.showLabelToolTip(e,r.toolTip,{disabled:r.disabled}),!0},i.onEnter=function(e,t,i){var r=t.ui,a=t.instance,n=t.params,o=a.data,l=a.view,t=t.params,s=t.disabledStyle,s=void 0===s?{}:s,t=t.hoverStyle,t=void 0===t?{}:t;return r.isHovering=!0,n.disabled?s.cursor&&Q(l,s.cursor):Q(l,t.cursor===ee?qe:t.cursor),o.iv(),a.showPopover(e,ie,lt),r.triggerEvent&&a.fireEvent({nativeEvent:e,kind:ml.EVENT_ENTER}),!0},i.onLeave=function(e,t,i){x.hide();var r=t.ui,t=t.instance,a=t.data,n=t.view;return r.isHovering=!1,Q(n,B),a.iv(),t.hidePopover(lt),r.triggerEvent&&t.fireEvent({nativeEvent:e,kind:ml.EVENT_LEAVE}),!0},i.onDown=function(e,t,i){var r=t.ui,t=t.instance,a=t.data;r.active=!0,r.downPoint=i,a.iv(),t.showPopover(e,ie,st)},i.onUp=function(e,t,i){var r,a=t.instance,a=a.data,n=t.ui,t=t.instance;return n.downPoint&&(n.active=!1,a.iv(),$t(n.downPoint,i)<5&&n.triggerEvent&&(r=t.fireEvent({kind:ml.EVENT_CLICK,nativeEvent:e})),t.showPopover(e,ie,dt)),t.hidePopover(st),r},i.onBeginDrag=function(e,t,i){return!0},i.onDoubleClick=function(e,t,i){t.ui.triggerEvent&&t.instance.fireEvent({nativeEvent:e,kind:ml.EVENT_DOUBLE_CLICK})},i.onContextMenu=function(e,t,i){t.ui.triggerEvent&&t.instance.fireEvent({nativeEvent:e,kind:ml.EVENT_CONTEXT_MENU})},t})(wo),fh=mo(ph),vh=(d=>{function g(){var e=d.apply(this,arguments)||this;return e._innerPrefix="buttonGroup",e}_inheritsLoose(g,d);var e=g.prototype;return e.init=function(e,t){var i=this;if(d.prototype.init.call(this,e,t),i.translateX=i.getInnerAttr("translateX",0),i.translateY=i.getInnerAttr("translateY",0),delete i.contentWidth,delete i.contentHeight,i.dm(t.dataModel),i.params.valueMode){var e=i.params.datas||[],r=i.params.value||[],a=i.dm();if(a.size()>e.length)for(var n=a.toDatas().toArray(),o=a.size()-e.length;o--;){var l=n.pop();a.remove(l)}var s=a.toDatas().toArray();e.forEach(function(e,t){var t=s[t],e=(t||(t=new ht.Data,a.add(t)),e||{}),i=e.label,e=e.value;t.setName(e),t.setDisplayName(Z(i)?e:i),t.s("checked",!!r.includes(e))})}i.buildItems();e=t.disabledStyle;i.triggerEvent=!!(void 0===e?{}:e).triggerEvent},e.isSelected=function(e){return this.params.checkMode&&!!e.s("checked")},e.isDisabled=function(e){return this.params.disabled||e.s(c)},e.getDefaultValue=function(e){if(e.startsWith("scale"))return 1},e.buildItems=function(){var e,i,t,r,a,n,o,l,s=this,d=s.dm(),h=s.rect,c=s.params,u=s.drawInfo,g=s.translateX,p=s.translateY,f=h.x,v=h.y,y=h.width,w=h.height,m=c.vertical,x=c.groupAlign,b=c.groupVAlign,D=c.gap,I=c.borderStyle,T=c.layoutStyle,T=void 0===T?{}:T,c=c.scrollbarStyle,c=(void 0===c?{}:c).scrollable,I=(void 0===I?{}:I).width,I=void 0===I?0:I,V=s.drawInfo.ui.items=[],B=0;d.eachByHierarchical(function(e){var t,i,r;!1!==e.s(J)&&(t={rect:ie,data:e,index:B,active:u.ui.activeData===e,isHovering:u.ui.hoverData===e,selected:s.isSelected(e),disabled:s.isDisabled(e),label:s.getLabel(e),w:2},i=s.getMergedStyle(e,ut),t.labelColor=s.getColor(t,i.color,Ue),t.labelShadowColor=s.getColor(t,i.shadowColor,R,!0),t.font=s.getStateValue(t,"font",i.font),t.labelDecoration=s.getStateValue(t,"labelDecoration",i.decoration),i=s.getMergedStyle(e,gt),t.iconColor=s.getColor(t,i.color,"iconColor"),t.icon=s.getStateValue(t,F,e.getIcon()||e.s(F)),t.disabled?t.w=1:t.selected?t.w=3:t.active?t.w=5:t.isHovering&&(t.w=4),i=s.caluSize(e),t.rect={x:ie,y:ie,width:i.width,height:i.height},i=1,t.active?(r=s.getMergedStyle(e,t.selected?"selectActiveStyle":"activeStyle").scale)&&1!==r&&(i=r):t.isHovering?(r=s.getMergedStyle(e,t.selected?"selectHoverStyle":"hoverStyle").scale)&&1!==r&&(i=r):t.selected&&(r=s.getMergedStyle(e,"selectStyle").scale)&&1!==r&&(i=r),t.scale=s.getTransitionValue("scale.".concat(e.getId()),i),V.push(t),B++)}),V.length&&(T.boxDirection?(d=T.boxDirection,e=void 0===(e=T.vGap)?0:e,T=void 0===(T=T.hGap)?0:T,i=Ua(h,V.map(function(e){return e.rect}),{boxDirection:d,vGap:e,hGap:T,align:x,vAlign:b,inlineAlign:x,inlineVAlign:b}),V.forEach(function(e,t){e.rect=i[t]})):(r=f,a=v,h=(V.length-1)*D,n=m?(t=ce.apply(void 0,_toConsumableArray(V.map(function(e){return e.rect.width}))),V.reduce(function(e,t){return e+t.rect.height},0)+h):(t=V.reduce(function(e,t){return e+t.rect.width},0)+h,ce.apply(void 0,_toConsumableArray(V.map(function(e){return e.rect.height})))),oe===x?r=f+y-t:be===x&&(r=f+.5*(y-t)),me===b?a=v+w-n:se===b&&(a=v+.5*(w-n)),V.forEach(function(e){e.rect.x=r,e.rect.y=a,m?(e.rect.width=t,a+=D+e.rect.height):(e.rect.height=n,r+=D+e.rect.width)})),c)&&((d=Fn(V.map(function(e){return e.rect}))).height+I>s.rect.height&&(s.contentWidth=s.rect.width,s.contentHeight=d.height+I,o=s.rect.y-d.y+p,V.forEach(function(e){e.rect.y+=o})),d.width+I>s.rect.width)&&(s.contentWidth=d.width+I,s.contentHeight=d.height,l=s.rect.x-d.x+g,V.forEach(function(e){e.rect.x+=l}))},e.getLabel=function(e){return e.getDisplayName()||e.getName()},e.caluSize=function(e){var t,i,r,a,n,o,l,s,d,h,c,u=this.params.layoutStyle,u=void 0===u?{}:u,g=u.getSize;return g?g({data:e},this.data,this.view):(g=u.height,(u=u.width)&&g?{width:u,height:g}:(u=this.params.padding,g=this.getMergedStyle(e,ut),h=this.getMergedStyle(e,gt),t=g.font,i=g.lineHeight,r=h.position,a=h.width,n=h.height,o=void 0===(o=h.gap)?0:o,l=(u=_slicedToArray(pe(u),4))[0],s=u[1],d=u[2],u=u[3],c=this.getLabel(e),e=e.getIcon()||e.s(F)||h.icon,h=c?(c+"").split("\n"):[],c=g.visible?la(h,t,ie,i,g.vGap,g.letterGap):{width:0,height:0},e&&(r===ne||r===me?(c.height+=n+o,c.width=ce(c.width,a)):(c.width+=a+o,c.height=ce(c.height,n))),c.width+=u+s,c.height+=l+d,c))},e.getStateValue=function(e){var t=1t.w?1:-1}),e.forEach(function(e,t){var i=e.borderRect,r=e.data,a=e.borderColor,n=e.scale,o=e.rect,l=B.indexOf(e),s=!l,d=l===B.length-1,h=B[l-1],l=B[l+1],c=1!==n,n=(c&&(v.save(),v.translate(i.x,i.y),v.scale(n,n),i.x=(1-n)*i.width*.5,i.y=(1-n)*i.height*.5),i.x),u=i.y,g=n+i.width,p=u+i.height,f=(v.beginPath(),a),o=(re(a)&&(f=ge(v,o,a)),Ra(v,D.getMergedStyle(r,pt),f),!h||h.w{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onHover=function(e,t,i){var r=t.params,t=t.instance,i=t.checkHit(i);i&&r.toolTipEnabled&&i.data.getToolTip()&&t.showLabelToolTip(e,i.data.getToolTip(),{disabled:i.disabled,selected:i.selected,buttonData:i.data})},i.onMove=function(e,t,i){t.instance.checkHover(i,e),x.hide()},i.onEnter=function(e,t,i){},i.onLeave=function(e,t,i){x.hide();var r,a=t.instance,n=t.instance,o=n.data,n=n.view,t=t.ui;t.hoverData&&(r=t.hoverData,delete t.hoverData,Q(n,B),a.fireEventWithDisabled(a.toEventData(e,ml.EVENT_LEAVE,r)),o.iv())},i.onDown=function(e,t,i){var r=t.instance.checkHit(i);r&&(r.disabled||(t.ui.activeData=r.data,t.data.iv()),t.ui.downPoint=i)},i.onUp=function(e,t,i){var r=t.instance,a=t.ui,n=t.params,t=t.data,o=r.checkHit(i);o&&a.downPoint&&$t(a.downPoint,i)<5&&(n.checkMode&&a.activeData&&r.setSelection(a.activeData),r.fireEventWithDisabled(r.toEventData(e,ml.EVENT_CLICK,o.data))),a.activeData&&(delete a.activeData,t.iv())},i.onDoubleClick=function(e,t,i){t=t.instance,i=t.checkHit(i);t.fireEventWithDisabled(t.toEventData(e,ml.EVENT_DOUBLE_CLICK,i.data))},i.onContextMenu=function(e,t,i){t=t.instance,i=t.checkHit(i);t.fireEventWithDisabled(t.toEventData(e,ml.EVENT_CONTEXT_MENU,i.data))},t})(wo)),wh=i((t=>{function e(){var e=t.apply(this,arguments)||this;return e._innerPrefix="toggleButton",e}_inheritsLoose(e,t);var i=e.prototype;return i.getLabel=function(){var e=this.params;return e.selected&&e.selectedLabel?e.selectedLabel:e.label},i.getColor=function(e,t){var i,r=this.drawInfo,a=this.params,n=a.hoverStyle,o=a.disabledStyle,l=a.activeStyle,s=a.selectStyle,d=a.selectHoverStyle,h=a.selectActiveStyle;return a.disabled?i=o&&o[t]:a.selected?i=r.ui.active?h&&h[t]:r.ui.isHovering?d&&d[t]:s&&s[t]:r.ui.active?i=l&&l[t]:r.ui.isHovering&&(i=n&&n[t]),i?this.toBlendedColor(i):e},i.getStateValue=function(){var e,t=0{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onHover=function(e,t,i){var r=t.params,t=t.instance;r.toolTip&&t.showLabelToolTip(e,r.toolTip,{selected:r.selected,disabled:r.disabled})},i.onUp=function(e,t,i){var r=t.ui,a=t.params,t=t.instance,n=t.data;return r.downPoint&&(r.active=!1,n.iv(),$t(r.downPoint,i)<5&&(a.disabled||(n=a.selected,t.setCompAttr("selected",!n),t.fireEvent({kind:"change",nativeEvent:e,oldValue:n,newValue:!n})),r.triggerEvent)&&t.fireEvent({kind:"click",nativeEvent:e}),t.showPopover(e,ie,dt)),t.hidePopover(st),!0},t})(ph)),mh=i((n=>{function e(){var e=n.apply(this,arguments)||this;return e._innerPrefix="colorPicker",e}_inheritsLoose(e,n);var t=e.prototype;return t.beginEditing=function(e){var t=this,i=t.data,r=t.view,a=Ir(r,i,t.comp,e);a&&((i=t.editor=new Yd(i,r,t.drawInfo)).addListener(function(e){e.kind===Ho.END_EDIT?(e.isCancel||t.updateValue(e.value),t.endEditing()):e.kind===Ho.SET_VALUE&&t.updateValue(e.value)}),i.beginEdit(t.rect,a.matrix,t.getRawValue(),t.getEditorOption()),n.prototype.beginEditing.call(this,e))},t.getEditorOption=function(){var e=this.params,t=e.dropdownProperties,t=void 0===t?{}:t,e=e.instant,i=n.prototype.getEditorOption.call(this);return t.instant=e,xa(i,t),i},t.drawValue=function(e){var t=this.params,i=this.editor,r=t.value,a=t.borderStyle,a=void 0===a?{}:a,n=t.fullMode,o=a.width,o=void 0===o?0:o,a=a.cornerRadius,l=he(this.rect);Wr(l,[o/2]),!r||i&&!t.readonly?r||this.drawPlaceholder(e):n?(o=Kr(r),e.save(),e.beginPath(),ye(e,l,a),o&&255!==o[3]&&(e.clip(),this.drawAlphaGrid(e,l)),e.beginPath(),ye(e,l,a),e.fillStyle=r,e.fill(),e.restore()):this.drawDetail(e),r&&(this.drawInfo.ui.clearButtonRect=this.drawClearButton(e))},t.drawPlaceholder=function(e){var t,i=this.params,r=i.placeholder,a=i.padding,n=i.labelStyle,n=void 0===n?{}:n,i=i.dropdownIconStyle,i=void 0===i?{}:i;r&&(i=i.icon?i.width+i.rightGap+1:0,Wr(t=he(this.rect),a),t.width-=i,this.clipRect(e,t),ve(e,r,t,this.getPlaceholderColor(),n.font,le,ee,ee,n),e.restore())},t.drawDetail=function(e){var t,i,r,a=this.params,n=(this.editor,a.iconLabelGap),o=a.value,l=a.colorIconStyle,l=void 0===l?{}:l,a=a.labelStyle,a=void 0===a?{}:a,s=a.color,d=a.font,a=a.align,h=l.cornerRadius,c=l.height,u=l.width,g=l.offsetX,l=l.offsetY;o&&(i=(t=this.getValueRect()).x+g,l=t.y+(t.height-c)/2+l,r=Kr(o),l={x:i,y:l,width:u,height:c},a!==le&&(c=fe(d,o).width+u+n,l.x=a===oe?i+t.width-c:i+t.width/2-c/2),255!==r[3]&&(cn(e,l,h),this.drawAlphaGrid(e,l),e.restore()),e.beginPath(),ye(e,l,h),e.fillStyle=o,e.fill(),c={x:i+u+n-g,y:t.y,width:ce(1,t.width-u-n),height:t.height},this.clipRect(e,c),ve(e,o,c,this.getColor(s,Ue,!0),d,a),e.restore())},t.drawAlphaGrid=function(e,t){var i=t.x,r=t.y,a=i+t.width,n=r+t.height,o=i,l=r;e.beginPath();for(var s=0;l{function e(e){e=t.call(this,e)||this;return e.isolating=!1,e}_inheritsLoose(e,t);var i=e.prototype;return i.init=function(){var t=this,e=t.node;t.setImage(Lr("list")),e.a({handleEvent:function(e){"clickData"===e.kind&&t.close()}})},i.getHeight=function(){var e=this.node,e=new $o(null,e,null).caluSize().height;return this._minHeight&&(e=ce(this._minHeight,e)),e=this._maxHeight?te(this._maxHeight,e):e},i.getValue=function(){var e=this.node.a("dataModel");if(e)return(e=e.sm().ld())&&e.getName()},i.setValue=function(t){var i=this.node.a("dataModel");this.isolating=!0,i.each(function(e){e.getName()===t&&i.sm().as(e)}),this.isolating=!1},i.setOption=function(e){var r=new ht.DataModel;e.forEach(function(e,t){var i=new ht.Data;ci(e)?i.setName(e):(i.setName(e.value),i.setDisplayName(e.label),e.icon&&i.s(F,e.icon)),r.add(i),t||r.sm().ss(i)}),this.node.a("dataModel",r),this.gv.redraw()},i.selectNext=function(){var e,t,i;this.isLoading()||(e=this.node.a("dataModel"))&&(t=e.toDatas().toArray(),i=e.sm().ld(),i=t.indexOf(i),e.sm().ss(t[++i%t.length]))},i.selectPrevious=function(){var e,t,i,r;this.isLoading()||(e=this.node.a("dataModel"))&&(t=e.toDatas().toArray(),i=e.sm().ld(),i=t.indexOf(i),r=t.length,e.sm().ss(t[(--i+r)%r]))},i.setLoading=function(e){this.node.a("loading",e)},i.isLoading=function(){return this.node.a("loading")},e})(fl),bh=(n=>{function e(){var e=n.apply(this,arguments)||this;return e.handleKey=0,e}_inheritsLoose(e,n);var t=e.prototype;return t.init=function(){var t=this;n.prototype.init.call(this),t.dropdown=new xh(t),t.dropdown.onClose=function(){var e;t.editing&&(e=t.dropdown.getValue())&&(t.setValue(e),t.notifier.fire({kind:"pickValue",value:e}))}},t.beginEditImpl=function(e,t,i){n.prototype.beginEditImpl.call(this,e,t,i);var r=this.dropdown,a=i["box.width"];si(a)&&a?r.setWidth(a):r.setWidth(e.width*t.a),this.updateGetOptions(i)},t.handleKeyDown=function(e,t){this.data.iv();var i=e.key;o===i||a===i?e.preventDefault():t.escCancelable&&i===d&&this.endEdit(!0)},t.handleKeyUp=function(e,t){n.prototype.handleKeyUp.call(this,e,t);var i=this.dropdown,e=e.key;o===e?i.selectNext():a===e?i.selectPrevious():g===e?(i.isOpened()&&!i.isLoading()?this.input.value=i.getValue():this.endEdit(),i.close()):this.handleGetOptions(t)},t.handleGetOptions=function(e){var t=this;e.delay||t.updateGetOptions(e),t._handleGetTimer&&clearTimeout(t._handleGetTimer),setTimeout(function(){t.updateGetOptions(e)},e.delay)},t.updateGetOptions=function(e){var t,i=this,r=i.dropdown,a=i.getValue(),e=e.getOptions&&e.getOptions(a);e instanceof Promise?(r.isOpened()||(r.setOption([]),r.open(null,i.lastGraphRect,i.view)),r.setLoading(!0),t=++i.handleKey,e.then(function(e){t===i.handleKey&&(r.setLoading(!1),i.handleSetOptions(e))})):i.handleSetOptions(e)},t.handleSetOptions=function(e){var t=this.dropdown;e&&e.length?(t.setOption(e),t.isOpened()?t.layout(this.lastGraphRect,this.view):t.open(null,this.lastGraphRect,this.view)):(t.setOption([]),t.close())},t.endEditImpl=function(){n.prototype.endEditImpl.call(this),this.handleKey=0,this.dropdown.close()},t.check=function(e){var t=n.prototype.check.call(this,e);return t||(t=this.dropdown.isOpened())&&(!t||this.dropdown.checkHitNode(e))},e})(Ko),Dh=i((n=>{function e(){var e=n.apply(this,arguments)||this;return e._innerPrefix="autoComplete",e}_inheritsLoose(e,n);var t=e.prototype;return t.beginEditing=function(e){var t=this,i=t.data,r=t.view,a=Ir(r,i,t.comp,e);a&&((i=t.editor=new bh(i,r,t.drawInfo)).addListener(function(e){e.kind===Ho.END_EDIT?(e.isCancel||t.updateValue(e.value),t.endEditing()):"pickValue"===e.kind&&t.updateValue(e.value)}),i.beginEdit(t.rect,a.matrix,t.getRawValue(),t.getEditorOption()),n.prototype.beginEditing.call(this,e))},t.getEditorOption=function(){var e=this.params.dropdownProperties,e=void 0===e?{}:e,t=n.prototype.getEditorOption.call(this);return xa(t,e),t.getOptions=this.params.getOptions,t.delay=this.params.delay,t},t.drawImpl=function(e,t,i){this.drawMain(e)},e})(Yo),[].concat(Nl,["getOptions","dropdownProperties","delay"]),El),Ih=mo((e=>{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onUp=function(L,e,t){var i=e.ui,r=e.params,a=e.instance,n=a.data,o=a.view,l=r.pickerType,s=r.multiple,d=r.autoSetValue,e=r.dateSelectableFunc,J=void 0===e?function(){return!0}:e,e=r.monthSelectableFunc,R=void 0===e?function(){return!0}:e,e=r.yearSelectableFunc,M=void 0===e?function(){return!0}:e,e=r.weekSelectableFunc,X=void 0===e?function(){return!0}:e,e=r.quarterSelectableFunc,z=void 0===e?function(){return!0}:e,e=r.halfYearSelectableFunc,Q=void 0===e?function(){return!0}:e,h=!r.confirm&&!s&&-1<["date","dateRange","year","month","week","quarter","halfYear","time","timeRange"].indexOf(l),c=i.calendars;if(c)for(var u=0,Y=c.length;u=c[1].date.getTime()&&(0===u&&c[1].date.setFullYear(c[0].date.getFullYear(),c[0].date.getMonth()+1),1===u)&&c[0].date.setFullYear(c[1].date.getFullYear(),c[1].date.getMonth()-1),n.iv();break}}},i.onMove=function(e,t,i){if(!ui(e)){var r=t.ui,e=t.params,a=void 0===e?{}:e,e=t.instance,n=e.data,o=e.view,l=a.pickerType,s=a.hoverStyle,d=a.disabledStyle,t=a.dateSelectableFunc,h=void 0===t?function(){return!0}:t,e=a.monthSelectableFunc,c=void 0===e?function(){return!0}:e,t=a.yearSelectableFunc,u=void 0===t?function(){return!0}:t,e=a.weekSelectableFunc,g=void 0===e?function(){return!0}:e,t=a.quarterSelectableFunc,p=void 0===t?function(){return!0}:t,e=a.halfYearSelectableFunc,f=void 0===e?function(){return!0}:e,v=r.calendars;if(v)for(var y=0,w=v.length;y{function e(){var e=n.apply(this,arguments)||this;return e._innerPrefix="datePicker",e}_inheritsLoose(e,n);var t=e.prototype;return t.beginEditing=function(e){var t=this,i=t.data,r=t.view,a=Ir(r,i,t.comp,e);a&&((i=t.editor=new lh(i,r,t.drawInfo)).addListener(function(e){e.kind===Ho.END_EDIT?(e.isCancel||t.updateValue(e.value),t.endEditing()):e.kind===Ho.SET_VALUE&&t.updateValue(e.value)}),i.beginEdit(t.rect,a.matrix,t.getRawValue(),t.getEditorOption()),n.prototype.beginEditing.call(this,e),Do())},t.getEditorOption=function(){var e=this.params,t=e.dropdownProperties,t=void 0===t?{}:t,e=e.mbDropdownProperties,e=void 0===e?{}:e,i=n.prototype.getEditorOption.call(this);return xa(i,gi?e:t,!0),i},t.getValue=function(){return this.params.value},t.drawValue=function(e){var t=this,i=t.params,r=t.editor,a=i.labelStyle,a=void 0===a?{}:a,n=t.drawInfo.ui,o=t.getValueRect(),l=a.color,s=a.font,d=a.align,h=(t.clipRect(e,o),t.getValue());if(Sr(h)){var c=i.placeholder;!c||t.editor&&(t.editor,t.editor.input.value)||ve(e,c,o,t.getPlaceholderColor(),s,d,se,!0,a)}else{if(r&&!i.readonly)return void e.restore();ve(e,h,o,t.getColor(l,Ue,!0),s,d,se,!0),n.clearButtonRect=t.drawClearButton(e)}e.restore()},t.getClearButtonBound=function(){return this.getClearButtonBoundWidthDropdown()},t.drawImpl=function(e,t,i){this.drawBackgroundAndBorder(e),this.drawValue(e);var r=this.drawInfo.ui;r.clearButtonRect=this.drawClearButton(e),r.dropdownIconRect=this.drawDropdownIcon(e)},t._getDatePickerPaneInstance=function(){for(var e=this.editor.dropdown,t=e.gv.getDataUI(e.node).drawingInfos,i=0;i{function t(){return e.apply(this,arguments)||this}return _inheritsLoose(t,e),t})(hh)),Vh=(r=>{function x(e,t,i){e=r.call(this,e,t,i)||this,t=e;return t.clip=!0,t._innerPrefix="scrollPane",e}_inheritsLoose(x,r);var e=x.prototype;return e.getDefaultValue=function(e){var t,i;if(this._currentDrawData)return i=(t=this._currentDrawData)._drawing_,e==="x"+t.getId()?i.x:void 0},e.drawImpl=function(i,r,e){var a=this;if(a.data){a.dm(e.dataModel);for(var t=a.drawInfo.ui.groups,n=(t=void 0===t?a.drawInfo.ui.groups=[]:t).length,o=e.selectOffset,l=e.lineHeight,s=e.backgrounds,d=e.topMaskColor,e=e.bottomMaskColor,h=(s&&0(i=Sh(i,r),(e-i)*t))(o,l,c,a),u.selectIndex=g);var v=u.selectData,y=c.get(u.selectIndex);v!==y&&(a.fireEvent({kind:x.EVENT_PANE_CHANGE,newValue:y}),u.selectData=y),c=c.get(u.selectIndex).getChildren().toList(function(e){return x.isVisible(a,e)}),h++}t.length>h&&t.splice(h,t.length-h);var w=r.width/t.length;t.forEach(function(e,t){e.rect={x:r.x+t*w,y:r.y,width:w,height:r.height},a._drawGroup(i,e)}),d&&(s={x:r.x,y:r.y,width:r.width,height:l*o},ua(i,s,ge(i,s,a.toBlendedColor(d)))),e&&(s={x:r.x,y:r.y+l*(o+1),width:r.width,height:r.height-l*(o+1)},ua(i,s,ge(i,s,a.toBlendedColor(e)))),n===t.length&&!a.drawInfo.ui.needFireChangeEvent||(a.fireEvent({kind:x.EVENT_CHANGE,newValue:t.map(function(e){return e.datas.get(e.selectIndex)})}),delete a.drawInfo.ui.needFireChangeEvent)}},e._drawSelectRow=function(e){var t=this.rect,i=this.params,r=i.selectOffset,a=i.lineHeight,n=i.rowClipRadius,i=i.selectStyle,o=i.borderWidth,l=i.borderColor,i=i.background,r={x:t.x,y:t.y+a*r,width:t.width,height:a};n&&(e.save(),e.beginPath(),ye(e,r,n),e.clip()),i&&(e.fillStyle=ge(e,r,this.toBlendedColor(i)),e.fillRect(r.x,r.y,r.width,r.height)),o&&l&&(e.fillStyle=ge(e,t={x:r.x,y:r.y-o/2,width:r.width,height:o},this.toBlendedColor(l)),e.fillRect(t.x,t.y,t.width,t.height),e.fillStyle=ge(e,a={x:r.x,y:r.y+r.height-o/2,width:r.width,height:o},this.toBlendedColor(l)),e.fillRect(a.x,a.y,a.width,a.height)),n&&e.restore()},e._drawGroup=function(a,e){var n=this,o=this,t=o.params,i=t.selectOffset,l=t.lineHeight,s=t.labelStyle,d=t.selectStyle,h=t.disabledStyle,c=e.rect,t=e.datas,u=e.selectIndex,g=e.translate,p=e.tempTranslate,f=c.y+l*(i+.5),v=d.labelFont||s.font,y=+v.match(/(\d{1,}px)/g)[0].slice(0,-2),w=s.font,m=+w.match(/(\d{1,}px)/g)[0].slice(0,-2);t.each(function(e,t){(o._currentDrawData=e)._drawing_={x:c.x+c.width/2};var i={x:n.getTransitionValue("x"+e.getId(),c.x+c.width/2),y:c.y+t*l+(void 0!==p?p:g),width:0,height:l},r=ce(0,1-G(f-(i.y+i.height/2))/l),r=m+r*(y-m),t=t===u,r=t?v.replace("".concat(y,"px"),"".concat(r,"px")):w.replace("".concat(m,"px"),"".concat(r,"px")),t=t?d.labelColor:x.isDisabled(o,e)?h.labelColor:s.color;ve(a,e.getDisplayName()||e.getName(),i,t,r)})},x.isVisible=function(e,t){var i;return(i=e.params.isVisible)?i({data:t},e.data,e.view):!1!==t.s("visible")},x.isDisabled=function(e,t){var i;return(i=e.params.isDisabled)?i({data:t},e.data,e.view):t.s("disabled")},x})(Po),Bh=(Vh.EVENT_CHANGE="change",Vh.EVENT_PANE_CHANGE="paneChange",i(Vh,["dataModel","selectOffset","lineHeight","rowClipRadius","backgrounds","labelStyle","selectStyle","disabledStyle","isVisible","isDisabled"],["topMaskColor","bottomMaskColor"]));function Sh(e,t){for(var i=Math.floor(e.size()/2),r=0;e.get(i)&&Vh.isDisabled(t,e.get(i));)if(i=++i%e.size(),++r>e.size())throw new Error("No selectable item.");return i}function Uh(e,t,i){return-t*(i-e-1)}function Ph(t,e,i){for(var r=t.params,a=r.lineHeight,r=r.selectOffset,n=e.group,e=e.startTranslate+i,e=Math.round(e/a)*a,o=r*a,l=Uh(r,a,n.datas.size()),s=r-(e=(e=o{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onUp=function(e,t,i){var r=t.ui,a=t.params,n=a.lineHeight,o=a.selectOffset,l=r.groups;if(r.dragInfo)r.dragInfo.isEnd||Ch(t,i),delete r.dragInfo;else if(l)for(var s=0;s{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onEnter=function(e,t,i){var r;C.handleEnter(t,e,i)||(i=t.ui,r=t.instance,t=t.data,i.isHovering=!0,t.iv(),r.showPopover(e,ie,lt))},i.onLeave=function(e,t,i){C.handleLeave(t,e,i)||(e=t.ui,i=t.instance,t=t.data,delete e.isHovering,t.iv(),i.hidePopover(lt))},i.onMove=function(e,t,i){if(!C.handleDrag(t,e,i)){var r=t.ui,a=t.instance.view,e=t.params.itemStyle.closeIconStyle,n=void 0===e?{}:e;if(r.itemInfos){for(var o=r.itemInfos.length,l=0;l{function v(e,t,i,r){e=a.call(this,e,t,i)||this,t=e;return t.clip=!0,t._innerPrefix="carousel",t._innerUUID=Mt(),e}_inheritsLoose(v,a);var e=v.prototype;return e.handleMS=function(e,t,i,r){var a,n=e.kind,e=e.datas;"set"!==n||this.drawInfo.ui.notNeedHandleSmChange||0!==e.size()&&("nm"===this.drawInfo.ui.navigationIconStatus&&(a="next"),"pm"===this.drawInfo.ui.navigationIconStatus&&(a="prev"),this._goTo(1===e.size()?e.get(0):e.get(1),{duration:this.params.slideTime},a)),this.drawInfo.ui.notNeedHandleSmChange=!1},e.drawImpl=function(e,t,i){var r,a,n,o,l,s,d,h,c,u,g=this;g.data&&(c=(l=g.params).loop,h=l.vertical,r=l.gap,a=l.freeMode,n=l.blurColor,o=l.unLoopOverRange,l=l.autoSlide,g.dm(i.dataModel),0===g.dm().size()?delete g.drawInfo.ui.offset:(void 0===g.drawInfo.ui.offset&&((i=g.dm().sm().ld())||(i=g.dm().getRoots().get(0),g.drawInfo.ui.notNeedHandleSmChange=!0,g.dm().sm().ss(i)),i=g._getOffset(i),g.drawInfo.ui.offset=i),g._initItems(),c||(h?(s=0,g.dm().getRoots().each(function(e,t){e=g._getDataHeight(e);s+=(0!==t?r:0)+e}),c=i=0,a||(h=g.dm().getRoots().get(0),h=g._getDataHeight(h),i=(t.height-h)/2,h=g.dm().getRoots().get(g.dm().getRoots().size()-1),h=g._getDataHeight(h),c=(t.height-h)/2),s=l.params.autoSlideTimeGap&&(r=l.params.loop,a=l.dm().getRoots(),n=l.drawInfo.ui.paginationIconNum,o=i.ld()?i.ld():l._getSelectedData(),o=a.indexOf(o),i.ss(a.get(r?(o+1)%n:o===n-1?0:o+1)),s=t),l._autoSlideTransition.iv(l.data))):l._autoSlideTransition.stop())},l._autoSlideTransition.onStop=function(){s=0}},e._getUnFreeSelectedInfo=function(){for(var e,t,i=this.rect,r=this.drawInfo,a=this.params.vertical,n=r.ui.items,o=i.x+i.width/2,l=i.y+i.height/2,s=1/0,d=0;dl&&(t=-s):h.x+h.width/2>o&&(t=-s),e=d)}return{data:n[e].data,gap:t}},e._getFreeSelectedData=function(){function e(){if(a){for(var e=a.length-1;0<=e;e--){var t=a[e],i=t.data,t=t.rect;if(l){if(t.y<=r.y+(0r.y)return h.indexOf(i)>o-1?h.get(o-1):i}else if(t.x<=r.x+(0r.x)return h.indexOf(i)>o-1?h.get(o-1):i}return h.get(0)}}var t=this.drawInfo,i=this.params,r=this.rect,t=t.ui,a=t.items,n=t.offsetRange,o=t.paginationIconNum,t=t.offset,l=i.vertical,s=i.loop,d=i.gap,h=this.dm().getRoots();return s?e():n&&t>=n[1]?h.get(0):n&&t<=n[0]?h.get(o-1):e()},e._getSelectedData=function(){return this.params.freeMode?this._getFreeSelectedData():this._getUnFreeSelectedInfo().data},e._getCurrentOffset=function(e,t){var i=this,r=i.dm().getRoots(),a=i.params,n=a.gap,o=a.loop,a=a.vertical,l=i._getOffset(e);if(o){o=r.indexOf(e),e=i._getSelectedData();if(2===r.length)if("next"===t){if(0===o)return i._getOffset(e)-(a?i._getDataHeight(r.get(0)):i._getDataWidth(r.get(0)))-n;if(o===r.size()-1)return l}else if("prev"===t){if(0===o)return l;if(o===r.size()-1)return i._getOffset(e)+(a?i._getDataHeight(r.get(0)):i._getDataWidth(r.get(0)))+n}return 0===o&&r.indexOf(e)===r.size()-1?i._getOffset(e)-(a?i._getDataHeight(r.get(0)):i._getDataWidth(r.get(0)))-n:o===r.size()-1&&0===r.indexOf(e)?i._getOffset(e)+(a?i._getDataHeight(r.get(0)):i._getDataWidth(r.get(0)))+n:l}return l},e._getOffset=function(e){for(var t=this.rect,i=this.dm().getRoots(),r=this.params,a=r.gap,n=r.freeMode,o=r.vertical,l=i.indexOf(e),r=o?this._getDataHeight(i.get(0)):this._getDataWidth(i.get(0)),e=o?t.height:t.width,s=n?0:(e-r)/2,d=0;d{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onDown=function(e,t,i){var r,a,n=t.instance,o=n.data,t=t.ui;ui(e)&&n._autoSlideTransition&&n._autoSlideTransition.isRunning()&&n._autoSlideTransition.stop(),t.navigationIconInfo&&(n=(e=t.navigationIconInfo).prevIconRect,r=e.nextIconRect,a=e.nextIconDisabled,!e.prevIconDisabled&&de(n,i)&&(t.navigationIconStatus="pd",o.iv()),!a)&&de(r,i)&&(t.navigationIconStatus="nd",o.iv())},i.onUp=function(e,t,i){var r=this,a=t.instance,n=a.data,o=t.ui,l=t.params,s=(ui(e)&&l.autoSlide&&a._autoSlideTransition&&!a._autoSlideTransition.isRunning()&&a._autoSlideTransition.start(),a.dm());if(!o.slideAnim&&l){if(o.navigationIconInfo){var l=o.paginationIconNum,d=o.navigationIconInfo,h=d.prevIconRect,c=d.nextIconRect,u=d.prevIconDisabled,d=d.nextIconDisabled,g=s.getRoots().indexOf(a.sm.ld());if(!u&&de(h,i))return o.navigationIconStatus="pm",n.iv(),a.fireEvent({kind:Nh.EVENT_CLICK_NAVIGATION,direction:"prev",nativeEvent:e}),(u=g-1)<0&&(u=l-1),a.sm.ss(s.getRoots().get(u)),void Vi(function(){r.onMove(e,t,i)});if(!d&&de(c,i))return o.navigationIconStatus="nm",n.iv(),a.fireEvent({kind:Nh.EVENT_CLICK_NAVIGATION,direction:"next",nativeEvent:e}),h=(g+1)%l,a.sm.ss(s.getRoots().get(h)),void Vi(function(){r.onMove(e,t,i)})}if(o.paginationIconInfo)for(var p=o.paginationIconInfo.pageItems,f=s.getRoots().indexOf(a.sm.ld()),v=0;va[1]?void 0===s&&(c.dragInfo.overRangePos=h?i.y:i.x):delete c.dragInfo.overRangePos,c.dragInfo.velocity=(h?i.y-o.y:i.x-o.x)/(e.timeStamp-l),c.dragInfo.lastDragP=i,c.dragInfo.lastTimeStamp=e.timeStamp,g&&(d%=Jh(r)),c.offset=d,u.iv(),Rh(t))},i.onEndDrag=function(e,r,t){var a,n,o,l,i,s,d,h,c=r.ui,u=r.data;c.dragInfo&&(a=r.instance,n=(i=r.params).loop,i.freeMode?(o=c.dragInfo.velocity)?(c.isMomentumAnim=!0,(l=function(){var i=Date.now();Vi(function(){var e=Date.now()-i,t=c.offset+o*e,t=(c.offset=t%Jh(a),u.iv(),Rh(r),c.offsetRange);.1t[1])?o/=10:o/=Zi(1.025,e/5):(o=0,delete c.isMomentumAnim,Lh(r)),0!==o&&r.ui.isMomentumAnim&&l()})})()):Lh(r):0<(i=a.dm().getRoots()).size()&&!Lh(r)&&(h=(s=c.dragInfo).startDragP,d=r.params.vertical,e.timeStamp-s.startDragTimeStamp<200?(e=(d?0t[1])&&(i.params.freeMode?(a=r{function x(e,t,i){e=r.call(this,e,t,i)||this,t=e;return t.clip=!0,t._innerPrefix="breadcrumb",e}_inheritsLoose(x,r);var e=x.prototype;return e.drawImpl=function(c,e,t){var u=this;if(u.data&&(u.dm(t.dataModel),0!==u.dm().size())){var n,i=t.iconLabelGap,g=t.separatorStyle,r=t.vGap,p=t.selectStyle,f=t.hoverStyle,v=t.disabledStyle,y=u._getVisibleData(),o=[],w={},l=fe(g.font,g.character),t=(y.each(function(e,t){var i=u._getStyle(e,"labelStyle"),r=u._getStyle(e,"iconStyle"),a=x.getLabel(e),n=i.maxWidth||1/0;u.getIcon(e)&&(o.push({width:r.width,height:r.height}),w[o.length-1]={type:"icon",rootIndex:t}),a&&(e=fe(i.font,a),o.push({width:e.width>n?n:e.width,height:e.height}),w[o.length-1]={type:"label",rootIndex:t}),t!==y.size()-1&&(g.icon?o.push({width:g.iconWidth,height:g.iconHeight}):o.push({width:l.width,height:l.height}),w[o.length-1]={type:"separator",rootIndex:t})}),Ua(e,o,{boxDirection:"left-top",vAlign:"top",inlineVAlign:"middle",getItemMargin:function(e,t){t=w[t].type;return"icon"===t?[r,i,0,0]:"separator"===t?[r,g.rightGap,0,g.leftGap]:[r,0,0,0]}})),m={};t.forEach(function(e,t){var t=w[t],i=t.type,t=t.rootIndex,r=y.get(t),a=u._getStyle(r,"labelStyle"),n=x.getLabel(r),o=u.isDisabled(r),l=a.maxWidth||1/0,s=fe(a.font,n),d=u.sm.co(r),h=u.drawInfo.ui.hoverData===r;"icon"===i&&(Ba(c,u.getIcon(r),Te,{x:e.x,y:e.y,width:e.width,height:e.height},r,u.view),void 0===m[t]?m[t]=[e]:m[t].push(e)),"label"===i&&((d=u.toBlendedColor(d?p.labelColor||a.color:h?f.labelColor||a.color:o&&v.labelColor||a.color))&&(h=l!==1/0&&s.width>l?ea(n,a.font,l):n,ve(c,h,e,u.toBlendedColor(d),a.font)),void 0===m[t]?m[t]=[e]:m[t].push(e)),"separator"===i&&(g.icon?Ba(c,g.icon,Te,{x:e.x,y:e.y,width:e.width,height:e.height},r,u.view):g.color&&ve(c,g.character,e,u.toBlendedColor(g.color),g.font))}),u.drawInfo.ui.items=[];for(n in m)(()=>{var i,r=y.get(+n),a=m[n];a.forEach(function(e,t){i?G(i.y+i.height/2-(e.y+e.height/2))<.1?i=Ii(e,i):u.drawInfo.ui.items.push({rect:e,data:r}):i=e,t===a.length-1&&u.drawInfo.ui.items.push({rect:i,data:r})})})()}},e.getDefaultFomatter=function(e){return"{a}"},e.toToolTipTemplateList=function(e,t){return[e]},e.getIcon=function(e){var t=this._getStyle(e,"iconStyle").icon;return e.getIcon()||t},e._getStyle=function(e,t){return ue({},this.params[t],e.s(t))},e._getVisibleData=function(){return this.dm().getRoots().toList(function(e){return e.s("visible")||void 0===e.s("visible")})},e.isDisabled=function(e){var t;return(t=this.params.isDisabled)?t({data:e},this.data,this.view):!!e.s(c)},e.fireEventWithDisabled=function(e){var t=this.params.disabledStyle;(!this.isDisabled(e.data)||null!=t&&t.triggerEvent)&&this.fireEvent(e)},x.getLabel=function(e){return e.getDisplayName()||e.getName()||""},x})(Po),Xh=(Mh.EVENT_CLICK_DATA="clickData",i(Mh,["dataModel","vGap","iconLabelGap","labelStyle","iconStyle","separatorStyle","hoverStyle","selectStyle","disabledStyle","toolTipEnabled","toolTipFormatter","getToolTipFormatter","toolTipImage","getToolTipSize","getToolTipAttr"])),zh=mo((e=>{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onUp=function(e,t,i){var r=t.instance,a=r.dm(),n=t.ui;if(n.items)for(var o=0;o{function e(){return i.apply(this,arguments)||this}_inheritsLoose(e,i);var t=e.prototype;return t.init=function(e,t){i.prototype.init.call(this,e,t),this.dm(t.dataModel)},t.buildItems=function(){var e,t,i,r,a,n,o,l,s,d,h,c,u,g,p,f=this,v=f._dm;v&&(e=(s=f.params).padding,t=s.hGap,i=s.vGap,r=s.align,a=s.vAlign,n=s.boxDirection,o=s.gridAlign,l=s.valueOption,s=f.drawInfo.ui,d=[],h=0,v.each(function(e){e=e.__value=_a(e,l,f.data,f.view)||0;h+=e}),f.valueTotal=h,g=[],v.each(function(e){g.push(f.getItemSize(e))}),o&&(c=ce.apply(void 0,_toConsumableArray(g.map(function(e){return e.height}))),u=ce.apply(void 0,_toConsumableArray(g.map(function(e){return e.width}))),g=g.map(function(){return{width:u,height:c}})),p=Ua(Wr(f.getCloneRect(),e),g,{boxDirection:n,inlineAlign:r,inlineVAlign:a,vGap:i,hGap:t,align:r,vAlign:a}),v.each(function(e,t){d.push(f.buildItem(e,p[t],t))}),s.itemUIs=d)},t.buildItem=function(e,t,i){return{data:e,rect:t,index:i}},t.prepareScrollBar=function(e){this.data,this.view;var t,i,r=this.drawInfo,a=this.params,n=a.padding,a=a.scrollbarStyle,r=r.ui;a&&!1===a.scrollable||r.itemUIs&&r.itemUIs.length&&(r=this.contentRect=Fn(r.itemUIs.map(function(e){return e.rect})),t=(n=_slicedToArray(pe(n),4))[0],i=r.width+n[1]+n[3],r=r.height+t+n[2],i>e.width||r>e.height?this._scrollBarInfo={contentWidth:i,contentHeight:r,scrollbarStyle:a}:delete this._scrollBarInfo)},t.drawScrollBar=function(e,t){var i,r,a=this.data,n=this.view,o=this._scrollBarInfo;o&&(i=o.contentWidth,r=o.contentHeight,o=o.scrollbarStyle,Qr(a,ue({scrollWidth:i,scrollHeight:r},o),this.innerPrefix),zr(e,{draw:"scrollbar",tag:this._innerPrefix},t,a,n),delete this._scrollBarInfo)},t.getItemUI=function(e){for(var t=this.drawInfo.ui.itemUIs,i=0;ia.width){var n=t.data.a("".concat(t.innerPrefix,".translateX"));if(a.x>e.x)return t.data.a("".concat(r,".translateX"),n+(a.x-e.x)),!0;if(e.x+e.width>a.x+a.width)return t.data.a("".concat(r,".translateX"),n-(e.x+e.width-(a.x+a.width))),!0}return a.heighte.y?(t.data.a("".concat(r,".translateY"),n+(a.y-e.y)),!0):e.y+e.height>a.y+a.height?(t.data.a("".concat(r,".translateY"),n-(e.y+e.height-(a.y+a.height))),!0):void 0):void 0}},e})(Po),Hh=(Yh.EVENT_CLICK_DATA="clickData",Yh.EVENT_ENTER_DATA="enterData",Yh.EVENT_LEAVE_DATA="leaveData",Yh.EVENT_CHANGE="change",(s=>{function t(){var e=s.apply(this,arguments)||this;return e._innerPrefix="checkGroup",e}_inheritsLoose(t,s);var e=t.prototype;return e.init=function(e,t){if(s.prototype.init.call(this,e,t),this.translateX=this.getInnerAttr("translateX",0),this.translateY=this.getInnerAttr("translateY",0),this.params.valueMode){var e=this.params.datas||[],r=this.params.value||[],a=this.dm();if(a.size()>e.length)for(var i=a.toDatas().toArray(),n=a.size()-e.length;n--;){var o=i.pop();a.remove(o)}var l=a.toDatas().toArray();e.forEach(function(e,t){var t=l[t],e=(t||(t=new ht.Data,a.add(t)),e||{}),i=e.label,e=e.value;t.setName(e),t.setDisplayName(Z(i)?e:i),t.s("checked",!!r.includes(e))})}},e.buildItem=function(e,t,i){return{data:e,rect:t,index:i,disabled:this.isDisabled(e)}},e.isSelected=function(e){return e.s("checked")},e.isDisabled=function(e){var t;return!!this.params.disabled||((t=this.params.isDisabled)?t({data:e},this.data,this.view):!0===e.s(c))},e.getLabelColor=function(e){var t,i=this.params,r=i.hoverStyle,r=void 0===r?{}:r,a=i.disabledStyle,a=void 0===a?{}:a,n=i.selectStyle,n=void 0===n?{}:n,i=i.labelStyle,i=void 0===i?{}:i,o=this.drawInfo.ui.hoverData,l=this.isSelected(e),s=this.isDisabled(e);return(t=i.getColor)?t=t({data:e,isHovering:o===e,isSelected:l,isDisabled:s},this.data,this.view):(t=i.color,s?t=a.labelColor:l?t=n.labelColor:o===e&&(t=r.labelColor)),this.toBlendedColor(t)},e.getLabel=function(e){return e.getDisplayName()||e.getName()},e.getItemSize=function(e){var t=this,i=t.params,r=t.valueTotal,a=i.iconStyle,a=void 0===a?{}:a,n=i.getItemSize,o=i.labelStyle,o=void 0===o?{}:o,l=i.fixedHeight,s=i.fixedWidth,d=a.orientation,h=a.gap,c=e.s("iconWidth")||a.width,a=e.s("iconHeight")||a.height,u=t.getLabel(e),g=e.__value,r=(e.__formatTpl=[u,g,r?g/r:0,r?(g/t.valueTotal*100).toFixed(o.pencentPrecision||0):"0"],Qn({x:0,y:0},{content:u,style:ue({},o,{position:t.labelPosition,color:t.getLabelColor(e)}),formatterTplParams:e.__formatTpl,formatterFuncParams:{text:u,data:e,value:e.__value,percent:e.__formatTpl[2],total:t.valueTotal}},t.data,t.view)),g={width:r.textBoxRect.width,height:r.textBoxRect.height};return ne===d||me===d?(g.width=ce(g.width,c),g.height+=h+a):(g.height=ce(g.height,a),g.width+=h+c),s&&(g.width=s),l&&(g.height=l),g=n?n({size:g,data:e,params:i},t.data,t.view):g},e.getLabelPosition=function(){var e=this.params.iconStyle,e=(void 0===e?{}:e).orientation;return ne===e?me:oe===e?le:me===e?ne:oe},e.drawItems=function(g){var e,t,p=this,i=p.params,f=p.translateX,v=p.translateY,r=p.drawInfo.ui,a=i.iconStyle,a=void 0===a?{}:a,n=i.labelStyle,y=void 0===n?{}:n,n=i.vAlign,i=i.align,w=a.orientation,m=a.width,x=a.height,b=a.gap,o=a.offsetX,D=void 0===o?0:o,o=a.offsetY,I=void 0===o?0:o,T=p.labelPosition,V=0,B=0;p._scrollBarInfo&&(o=(a=p._scrollBarInfo).contentWidth,(t=(e=p.rect).width){function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onHover=function(e,t,i){null!=t&&t.params.toolTipEnabled&&(i=Sa(t.ui.itemUIs,i))&&i.data.getToolTip()&&(i=i.data,t.instance.showLabelToolTip(e,i.getToolTip(),{data:i}))},i.onMove=function(e,t,i){t.params;var r,a,n,o=t.ui,l=Sa(o.itemUIs,i),s=t.instance,d=s.data,s=s.view;l?(r=t.instance,i=de(l.iconRect,i),Q(s,(a=r.isDisabled(l.data))?V:qe),n=l.data!==o.hoverData,a||!n&&i===o.hoverOnIcon||(n&&o.hoverData&&r.fireLeave(o.hoverData),o.hoverData=l.data,o.hoverOnIcon=i,n&&r.fireEvent({kind:Hh.EVENT_ENTER_DATA,data:l.data}),d.iv())):(o.hoverData&&(t.instance.fireLeave(o.hoverData),delete o.hoverData,delete o.hoverOnIcon,x.hide(),d.iv()),Q(s,B)),x.hide()},i.onLeave=function(e,t,i){var r=t.instance,a=r.data,n=t.ui;Q(r.view,B),n.hoverData&&(t.instance.fireLeave(n.hoverData),delete n.hoverData,delete n.hoverOnIcon,x.hide(),a.iv())},i.onUp=function(e,t,i){var r=t.params,a=Sa(t.ui.itemUIs,i),n=r.triggerByIcon,o=r.cancelableWhenSingle,l=r.valueMode;if(a){i=de(a.iconRect,i);if(!n||i){var n=r.multiple,r=a.data,s=t.instance;if(s.isDisabled(r))return;var d=r.dm().toDatas(function(e){return!!e.s(f)}).toArray(),h=r.s(f),c=!0;n?r.s(f,!h):h?o?r.s(f,!1):c=!1:(r.dm().each(function(e){e.s(f,!1)}),r.s(f,!0)),c&&(n=d,h=r.dm().toDatas(function(e){return!!e.s(f)}).toArray(),l&&(n=n.map(function(e){return e.getName()}),h=h.map(function(e){return e.getName()}),s.setCompAttr("value",h)),t.instance.fireEvent({kind:Yh.EVENT_CHANGE,oldValue:n,newValue:h}))}t.instance.fireEvent({kind:Yh.EVENT_CLICK_DATA,data:a.data,onIcon:i,nativeEvent:e})}},t})(wo)),Kh=(r=>{function N(e,t,i){e=r.call(this,e,t,i)||this,t=e;return t.clip=!0,t._innerPrefix="timeline",t._innerUUID=Mt(),e}_inheritsLoose(N,r);var e=N.prototype;return e.getDefaultValue=function(e){var t,i=this;if(i._currentDrawData)return e==="contentLabelFont"+(t=i._currentDrawData.getId())?+i._getStyle(i._currentDrawData,"labelStyle").font.match(/\d+/g)[0]:e==="timeLabelFont"+t?+i._getStyle(i._currentDrawData,"timeLabelStyle").font.match(/\d+/g)[0]:e==="iconWidth"+t?i._getStyle(i._currentDrawData,"iconStyle").width:e==="iconHeight"+t?i._getStyle(i._currentDrawData,"iconStyle").height:"percent"===e?0:void 0},e.handleMS=function(e,t,i,r){i=i.ld();i&&this._handleSelectedDataChange(i)},e.drawImpl=function(m,e,x){var b,D,t,I,T,V,B,S,U,P,C,A,i,r,a,F=this;F.data&&(F.dm(x.dataModel),0!==F.dm().size())&&(b=x.vertical,D=x.gap,i=x.padding,a=x.timeLineStyle,r=x.progressLineStyle,t=x.autoSlide,I=x.selectStyle,T=F.dm().getRoots(),i=_slicedToArray(pe(i),4),V=i[0],B=i[1],S=i[2],U=i[3],T.each(function(e){void 0===e._drawing_&&(e._drawing_={});var t=F._getStyle(e,"labelStyle"),i=F._getStyle(e,"timeLabelStyle"),r=F.sm.co(e)&&I.contentLabelFont?I.contentLabelFont:t.font,a=F.sm.co(e)&&I.timeLabelFont?I.timeLabelFont:i.font,n=t.lineHeight||oa(r,at),o=i.lineHeight||oa(a,at),l=N.getLabel(e),s=_slicedToArray(pe(t.backgroundImagePadding),4),d=s[0],h=s[2],s=(e._drawing_.contentRect={x:NaN,y:NaN,width:t.icon?t.iconWidth:(t.backgroundImage?s[3]+s[1]:0)+oa(r,l),height:t.icon?t.iconHeight:(t.backgroundImage?d+h:0)+n},e.s("time")||""),r=_slicedToArray(pe(i.backgroundImagePadding),4),l=r[0],t=r[2];e._drawing_.timestampSize={width:i.icon?i.iconWidth:(i.backgroundImage?r[3]+r[1]:0)+oa(a,s),height:i.icon?i.iconHeight:(i.backgroundImage?l+t:0)+o}}),P=F._getTimelineRect(),C=P.y,A=P.x,T.each(function(r,e){F._currentDrawData=r;function t(){var e,t,i;d.backgroundImage&&Y(m,d.backgroundImage,{x:w.x+(d.backgroundImageOffsetX||0),y:w.y+(d.backgroundImageOffsetY||0),width:w.width,height:w.height},r,F.view),d.color&&(t=(e=_slicedToArray(pe(d.backgroundImagePadding),4))[0],i={x:w.x+(i=e[3]),y:w.y+t,width:w.width-i-e[1],height:w.height-t-e[2]},ve(m,g,i,F.toBlendedColor(l),o,"center","middle"))}var a,n,o,l,s,i,d=F._getStyle(r,"labelStyle"),h=F._getStyle(r,"timeLabelStyle"),c=F._getStyle(r,"connectLineStyle"),u=F._getStyle(r,"iconStyle"),g=N.getLabel(r),p=r.s("time"),f=F.getTransitionValue("iconWidth"+r.getId(),F.sm.co(r)&&void 0!==I.iconWidth?I.iconWidth:u.width),u=F.getTransitionValue("iconHeight"+r.getId(),F.sm.co(r)&&void 0!==I.iconHeight?I.iconHeight:u.height),v=r._drawing_,y=v.timestampSize,w=v.contentRect;p&&h.color&&(a=F.sm.co(r)&&I.timeLabelFont?I.timeLabelFont:h.font,n=F.sm.co(r)&&I.timeLabelColor?I.timeLabelColor:h.color),d.color&&(o=F.sm.co(r)&&I.contentLabelFont?I.contentLabelFont:d.font,l=F.sm.co(r)&&I.contentLabelColor?I.contentLabelColor:d.color),p&&(v=b?(i={left:P.x+P.width+B,center:P.x+P.width/2-y.width/2,right:P.x-U-y.width},{top:C,bottom:C-y.height,middle:C-y.height/2}):(i={left:A,center:A-y.width/2,right:A-y.width},{top:P.y+P.height+S,bottom:P.y-V-y.height,middle:P.y+P.height/2-y.height/2}),s=r._drawing_.timeLabelRect={x:i[h.align]+h.offsetX,y:v[h.vAlign]+h.offsetY,width:y.width,height:y.height},i=function(){var e,t,i;h.backgroundImage&&Y(m,h.backgroundImage,{x:s.x+(h.backgroundImageOffsetX||0),y:s.y+(h.backgroundImageOffsetY||0),width:s.width,height:s.height},r,F.view),h.color&&(t=(e=_slicedToArray(pe(h.backgroundImagePadding),4))[0],ve(m,p,{x:s.x+(i=e[3]),y:s.y+t,width:s.width-i-e[1],height:s.height-t-e[2]},F.toBlendedColor(n),a,"center","middle"))},h.draw||h.icon?h.draw?h.draw(m,{data:r,rect:s,params:x,defaultDraw:i},F.data,F.view):(v={x:s.x+s.width/2-h.iconWidth/2,y:s.y+s.height/2-h.iconHeight/2,width:h.iconWidth,height:h.iconHeight},Y(m,h.icon,v,r,F.view)):i()),w.x=d.offsetX,w.y=d.offsetY,b?("left"===d.align&&(w.x+=P.x+P.width+B),"center"===d.align&&(w.x+=P.x+P.width/2-w.width/2),"right"===d.align&&(w.x+=P.x-U-w.width),"top"===d.vAlign&&(w.y+=C),"middle"===d.vAlign&&(w.y+=C-w.height/2),"bottom"===d.vAlign&&(w.y+=C-w.height)):("left"===d.align&&(w.x+=A),"center"===d.align&&(w.x+=A-w.width/2),"right"===d.align&&(w.x+=A-w.width),"top"===d.vAlign&&(w.y+=P.y+P.height+S),"middle"===d.vAlign&&(w.y+=P.y+P.height/2-w.height/2),"bottom"===d.vAlign&&(w.y+=P.y-V-w.height));d.draw?d.draw(m,{rect:w,data:r,params:x,defaultDraw:t},F.data,F.view):d.icon?(y=w.x+w.width/2,v=w.y+w.height/2,i={x:y-d.iconWidth/2,y:v-d.iconHeight/2,width:d.iconWidth,height:d.iconHeight},Y(m,d.icon,i,r,F.view)):t(),r._drawing_.iconRect=b?{x:P.x+P.width/2-f/2,y:C-u/2,width:f,height:u}:{x:A-f/2,y:P.y+P.height/2-u/2,width:f,height:u},c.color&&c.width&&(b&&"center"!==d.align&&(y={x:NaN,y:C-c.width/2,width:NaN,height:c.width},v=P.x+P.width/2,m.save(),m.beginPath(),m.moveTo(v,C),"left"===d.align?(m.lineTo(w.x,C),y.x=v,y.width=w.x-v):(m.lineTo(w.x+w.width,C),y.x=w.x+w.width,y.width=v-(w.x+w.width)),Ra(m,{width:c.width,pattern:c.pattern,color:ge(m,y,F.toBlendedColor(c.color))}),m.stroke(),m.restore()),b||"middle"===d.vAlign||(i={x:A-c.width/2,y:NaN,width:c.width,height:NaN},f=P.y+P.height/2,m.save(),m.beginPath(),m.moveTo(A,f),"top"===d.vAlign?(m.lineTo(A,w.y),i.y=f,i.height=w.y-f):(m.lineTo(A,w.y+w.height),i.y=w.y+w.height,i.height=f-(w.y+w.height)),Ra(m,{width:c.width,pattern:c.pattern,color:ge(m,i,F.toBlendedColor(c.color))}),m.stroke(),m.restore())),e!==T.size()-1&&(b?(C+=D,P.height+=D):(A+=D,P.width+=D))}),a.color&&a.width&&(m.save(),m.strokeStyle=ge(m,P,F.toBlendedColor(a.color)),m.lineCap=a.roundLinecap?"round":"butt",a.pattern&&m.setLineDash(a.pattern),m.beginPath(),b?(m.lineWidth=P.width,m.moveTo(P.x+P.width/2,P.y),m.lineTo(P.x+P.width/2,P.y+P.height)):(m.lineWidth=P.height,m.moveTo(P.x,P.y+P.height/2),m.lineTo(P.x+P.width,P.y+P.height/2)),m.stroke(),m.restore()),i=F.sm.ld(),r&&r.width&&r.color&&i&&(a=F.dm().getRoots(),i=F.getTransitionValue("percent",a.indexOf(i)/(a.size()-1)),(a=b?{x:P.x+(P.width-r.width)/2,y:P.y,width:r.width,height:P.height*i}:{x:P.x,y:P.y+(P.height-r.width)/2,width:P.width*i,height:r.width}).width)&&a.height&&(m.save(),m.strokeStyle=ge(m,P,F.toBlendedColor(r.color)),m.lineCap=r.roundLinecap?"round":"butt",r.pattern&&m.setLineDash(r.pattern),m.beginPath(),b?(m.lineWidth=a.width,m.moveTo(a.x+a.width/2,a.y),m.lineTo(a.x+a.width/2,a.y+a.height)):(m.lineWidth=a.height,m.moveTo(a.x,a.y+a.height/2),m.lineTo(a.x+a.width,a.y+a.height/2)),m.stroke(),m.restore()),T.each(function(e,t){var i=F._getStyle(e,"iconStyle"),r=e._drawing_.iconRect;i.draw?i.draw(m,{data:e,rect:r},F.data,F.view):(i=F.sm.co(e)&&I.icon?I.icon:F.getIcon(e))&&Ba(m,i,Te,r,e,F.view)}),r=i=0,b?(r=V+P.height+S)>e.height&&F._drawScrollBar(m,e,1,r):(i=U+P.width+B)>e.width&&F._drawScrollBar(m,e,i,1),!t&&F.autoSlideTransition&&F.autoSlideTransition.isRunning()&&F.autoSlideTransition.stop(),F.drawInfo.ui.haveInteractive||t&&(F.autoSlideTransition||((a=F.sm.ld())&&F._handleSelectedDataChange(a,!1),F._initAutoSlideAni()),F.autoSlideTransition.start()),F.autoSlideTransition)&&F.autoSlideTransition.updateStatus()},e._handleSelectedDataChange=function(e){var r,a,n,t=!(1=a.params.autoSlideTimeGap&&(r=(i=a.dm().getRoots()).indexOf(a.sm.ld()),a.sm.ss(i.get((-1===r?0:r+1)%i.size())),n=t),a.autoSlideTransition.iv(a.data))):a.autoSlideTransition.stop())},a.autoSlideTransition.onStop=function(){n=0}},e._getStyle=function(e,t){return ue({},this.params[t],e.s(t))},e.getIcon=function(e){var t=this._getStyle(e,"iconStyle").icon;return e.getIcon()||t},N.getLabel=function(e){return e.getDisplayName()||e.getName()||""},N})(Po);function Gh(e,t){for(var i=e.instance.dm().getRoots(),r=0;r{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onDown=function(e,t,i){var r=t.instance;ui(e)&&(t.ui.haveInteractive=!0,r.autoSlideTransition)&&r.autoSlideTransition.stop()},i.onUp=function(e,t,i){var r,a=t.instance;!C.isDragging()&&(r=t.params,ui(e)&&r.autoSlide&&a.autoSlideTransition&&!a.autoSlideTransition.isRunning()&&a.autoSlideTransition.start(),r=Gh(t,i))&&t.instance.fireEvent({kind:r.kind,data:r.data,nativeEvent:e})},i.onMove=function(e,t,i){var r=t.instance.view,a=t.ui,n=t.params;Gh(t,i)?(a.active=!0,n.cursorControl||Q(r,qe)):a.active&&(delete a.active,n.cursorControl||Q(r,null))},i.onEnter=function(e,t,i){var r=t.instance;t.ui.haveInteractive=!0,r.autoSlideTransition&&r.autoSlideTransition.isRunning()&&r.autoSlideTransition.stop()},i.onLeave=function(e,t,i){var r=t.instance,a=t.params,n=t.ui;a.autoSlide&&r.autoSlideTransition&&!r.autoSlideTransition.isRunning()&&r.autoSlideTransition.start(),n.active&&(delete n.active,a.cursorControl||Q(t.instance.view,null))},t})(wo)),jh=i((r=>{function e(e,t,i){e=r.call(this,e,t,i)||this,t=e;return t.clip=!0,t._innerPrefix="progress",e}_inheritsLoose(e,r);var t=e.prototype;return t.getDefaultValue=function(e){if("percent"===e)return 0},t.drawImpl=function(e,t,i){this.data&&("line"===i.progressType?this._drawLine(e):this._drawCircle(e))},t._getCurrentPercent=function(){var e=this.params,t=e.valueMode,i=e.maxValue,t=Math.max(0,Math.min(t?i?(e.value||0)/i*100:0:e.percent||0,100)),i=this.getTransitionValue("percent",t);return i!==t&&(t=_i(e=t)===e?0:e.toString().split(".")[1].length,i=i.toFixed(t)),+i},t._drawLine=function(h){function e(){var e,t,i,r,a,n,o,l,s=w.cornerRadius||(x?b?c.width/2:c.height/2:0),s=(h.save(),w.image?(h.save(),h.beginPath(),ye(h,c,s),h.closePath(),h.clip(),Y(h,w.image,c,u.data,u.view),h.restore()):w.color&&(U?Ha(h,c,B,V,S,u.toBlendedColor(w.color),s,b):u._drawRoundLine(h,c,ge(h,c,u.toBlendedColor(w.color)),s)),A(P)),d=y.cornerRadius||(x?b?s.width/2:s.height/2:0);y.image?(cn(h,s,d),Y(h,y.image,s,u.data,u.view),h.restore()):m.color&&(h.save(),T?Ha(h,s,B,V,S,u.toBlendedColor(m.color),d,b):(o=(l=_slicedToArray(pe(d),4))[0],e=l[1],i=l[2],l=l[3],Ma(h,m),h.fillStyle=ge(h,s,u.toBlendedColor(m.color)),a=s.x,n=s.y,t=s.width,r=s.height,b?(h.beginPath(),"shear"===D?(h.moveTo(a,n),h.lineTo(a+t,n+I)):"diamond"===D?(h.moveTo(a,n+I),h.lineTo(a+t/2,n),h.lineTo(a+t,n+I)):(h.moveTo(a+o,n),h.lineTo(a+t-e,n),h.arcTo(a+t,n,a+t,n+e,e)),h.lineTo(a+t,n+r-i),h.arcTo(a+t,n+r,a+t-i,n+r,i)):(h.beginPath(),h.moveTo(a+o,n),"shear"===D?(h.lineTo(a+t,n),h.lineTo(a+t-I,n+r)):"diamond"===D?(h.lineTo(a+t-I,n),h.lineTo(a+t,n+r/2),h.lineTo(a+t-I,n+r)):(h.lineTo(a+t-e,n),h.arcTo(a+t,n,a+t,n+e,e),h.lineTo(a+t,n+r-i),h.arcTo(a+t,n+r,a+t-i,n+r,i))),h.lineTo(a+l,n+r),h.arcTo(a,n+r,a,n+r-l,l),h.lineTo(a,n+o),h.arcTo(a,n,a+o,n,o),h.closePath(),h.fill()),h.restore()),y.pointerImage&&(e=s.x,t=s.y,i=s.width,r=s.height,l=y.pointerImage,a=y.pointerImageWidth,n=y.pointerImageHeight,o=y.pointerImageOffsetX,s=y.pointerImageOffsetY,Y(h,l,{x:(b?e+i:e+i-a/2)+o,y:(b?t-n/2:t+r)+s,width:a,height:n},u.data,u.view)),(g?f:p)&&(l=A(Math.min(g?v?f/v*100:0:p,100)),u._drawRoundLine(h,l,ge(h,l,m.successColor),d)),h.restore()}var c,u=this,t=u.data,i=u.view,r=u.rect,a=u.params,g=a.valueMode,p=a.successPercent,f=a.successValue,v=a.maxValue,n=a.labelStyle,y=a.lineTypeStyle,w=a.backLineStyle,m=a.progressLineStyle,o=a.draw,x=a.roundLinecap,b=y.vertical,D=y.endShape,I=y.endShapeWidth,l=y.gapToBackLine,s=void 0===l?0:l,T=y.stripe,V=y.stripeWidth,B=y.stripeAngle,S=y.stripeGap,U=y.stripeBackLine,P=u._getCurrentPercent(),l=u._getLabelLayoutInfo(),d=l.textBoxRect,C=b?(c={x:r.x+(r.width-w.width)/2,y:r.y+("top"===n.position?d.height:0),width:w.width,height:ce(0,r.height-("top"===n.position||"bottom"===n.position?d.height:0))},{x:r.x+(r.width-m.width)/2,y:c.y,width:m.width,height:c.height}):{x:(c={x:r.x+("left"===n.position?d.width:0),y:r.y+(r.height-w.width)/2,width:ce(0,r.width-("left"===n.position||"right"===n.position?d.width:0)),height:w.width}).x,y:r.y+(r.height-m.width)/2,width:c.width,height:m.width},A=function(e){var t;return b?(t=C.height-2*s,{x:C.x,y:C.y+s+t-(t=t*e/100),width:C.width,height:t}):{x:C.x+s,y:C.y,width:(C.width-2*s)*e/100,height:C.height}};o?o(h,{percent:P,rect:c,percentRect:A(P),label:l.rawText,labelRect:d,params:a,defaultDraw:e},t,i):e(),n.visible&&Yn(h,{style:n},l,u)},t._drawRoundLine=function(e,t,i,r){e.save(),e.fillStyle=i,e.beginPath(),ye(e,t,r),e.closePath(),e.fill(),e.restore()},t._drawCircle=function(o){function e(){var e,t,i,r,a=l+D/100*B,n=(o.save(),d._drawRing(o,I,T,s,l,l+B,w.color,!0),d._drawRing(o,I,T,s,l,a,m.color),(u?p:g)&&(n=Math.max(0,Math.min(u?f?p/f*100:0:g,100)),d._drawRing(o,I,T,s,l,l+n/100*B,m.successColor)),"ring"===c?v:y);n.pointerImage&&(e=n.pointerImage,t=n.pointerImageWidth,i=n.pointerImageHeight,n=n.pointerImageOffset,n=s+m.width/2+n,r=I+n*W(a),n=T+n*K(a),Y(o,e,{x:r-t/2,y:n-i/2,width:t,height:i},d.data,d.view)),h.visible&&Yn(o,{style:h},V,d),o.restore()}var l,s,d=this,t=d.data,i=d.view,r=d.rect,a=d.params,h=a.labelStyle,c=a.progressType,u=a.valueMode,g=a.successPercent,p=a.successValue,f=a.maxValue,v=a.ringTypeStyle,y=a.dashboardTypeStyle,w=a.backLineStyle,m=a.progressLineStyle,n=a.draw,x=y.openAngle,b=y.openDirection,D=d._getCurrentPercent(),I=r.x+r.width/2,T=r.y+r.height/2,V=d._getLabelLayoutInfo(),B="ring"===c?(s=v.radius,l=void 0===v.startAngle?-Be:v.startAngle*q,Se):(s=y.radius,"top"===b&&(l=x%360*q/2-Be),"bottom"===b&&(l=Be+x%360*q/2),"left"===b&&(l=H+x%360*q/2),"right"===b&&(l=x%360*q/2),Se-x%360*q);n?n(o,{percent:D,rect:{x:I-s,y:T-s,width:s,height:s},percentRect:{x:0,y:0,width:0,height:0},label:V.rawText,labelRect:V.textBoxRect,params:a,defaultDraw:e},t,i):e()},t._drawArc=function(e,t,i,r,a,n,o){o&&(e.beginPath(),e.arc(t,i,r,a,n,!1),e.strokeStyle=ge(e,{x:t-r,y:i-r,width:2*r,height:2*r},this.toBlendedColor(o)),e.stroke())},t._drawRingRound=function(i,r,a,e,n,t,o,l){var s,d=l.pathImage,h=l.pathImageSizeDecrementValue;d&&(e=((e,t,i,r,a)=>{if(0===e||0===t||0===r)return[];for(var n=e+t,o=2*Math.asin(t/(2*n))+a,l=Math.ceil(r/o),s=[],d=0;d{function e(){var e=t.apply(this,arguments)||this;return e._innerPrefix="pagination",e}_inheritsLoose(e,t);var i=e.prototype;return i.buildList=function(){var i=this,e=i.params,t=i.drawInfo,r=e.pageSize,a=e.hideOnSinglePage,n=e.ellipsisMode,o=e.itemWidth,l=e.itemHeight,s=e.align,d=e.vAlign,h=e.vertical,c=e.gap,u=e.maxItemCount,u=void 0===u?0:u,g=e.getItemSize,p=t.ui.pageCount=ce(1,e.pageCount||$i(e.itemCount/r)),f=!!e.disabled;if(a&&1===p)return[];var v=te(p,ce(1,e.current)),t=n&&(u||7){function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onMove=function(e,t,i){var r=t.ui,a=t.params,i=Sa(r.itemUIs,i),n=a.disabled,t=t.instance,o=t.data,t=t.view;n?Q(t,V):i?(i.disabled||r.hoverValue===i.value||(r.hoverValue=i.value,o.iv()),n=a.disabledStyle||{},Q(t,i.disabled&&n.cursor?n.cursor:qe)):(r.hoverValue&&(delete r.hoverValue,o.iv()),Q(t,B))},i.onLeave=function(e,t,i){var r=t.ui,t=t.instance,a=t.data;Q(t.view,B),r.hoverValue&&(delete r.hoverValue,a.iv())},i.onUp=function(e,t,i){t.instance;var r,a,n=t.params,o=t.ui;n.disabled||(n=n.current,r=o.itemUIs,o=o.pageCount,(r=Sa(r,i))&&!r.disabled&&(i=r.value)!==n&&(ci(i)?i===_?a=ce(1,n-1):i===N?a=te(o,n+1):i===E?a=ce(1,n-5):i===k&&(a=te(o,n+5)):a=i,t.instance.setCompAttr("current",a),t.instance.fireEvent({kind:l,oldValue:n,newValue:a})))},t})(wo)),ec=(r=>{function e(e,t,i){e=r.call(this,e,t,i)||this,t=e;return t.clip=!0,t._innerPrefix="rate",e}_inheritsLoose(e,r);var t=e.prototype;return t.drawImpl=function(e,t,i){var r=this;if(r.data){for(var a=i.gap,n=i.iconStyle,o=i.labelStyle,l=i.selectStyle,s=i.value,d=i.maxValue,h=i.halfSelectable,c=(r._initIconRect(),r.drawInfo.ui.iconRects),u=r.drawInfo.ui.iconRectsOffset,i=r.drawInfo.ui.hoverValue,g=void 0!==i?i:s,p=+g,f=1;f<=d;f++){var v,y=he(c[f-1]);u&&u[f-1]&&(y.x+=u[f-1].x,y.y+=u[f-1].y,y.width+=u[f-1].width,y.height+=u[f-1].height),h&&f-1{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onUp=function(e,t,i){var r=t.ui,a=t.params,n=t.data,o=t.instance;if(!a.disabled&&r.iconRects)for(var l=0;l{function e(e,t,i){e=r.call(this,e,t,i)||this,t=e;return t.clip=!0,t._innerPrefix="calendar",e}_inheritsLoose(e,r);var t=e.prototype;return t.drawImpl=function(e,t,i){var r;this.data&&(r=this.getFirstSelectDate(),this._drawHead(e,this.drawInfo.ui.currentDate||r),this._drawCalendar(e,this.drawInfo.ui.currentDate||r))},t._drawHead=function(r,i){var e,a,t,n,o,l,s,d,h,c,u,g,p,f,v,y,w,m,x,b,D,I,T,V,B,S,U,P,C,A,F,N,E,k=this;k.params.headStyle.visible&&(A=(e=k.params).headStyle,T=e.bodyStyle,a=e.hoverStyle,t=A.background,n=A.draw,o=A.labelOffsetX,l=A.labelOffsetY,s=A.labelColor,d=A.labelFont,h=A.bottomSplitLineWidth,c=A.bottomSplitLineColor,u=A.buttonHeight,g=A.buttonBorderWidth,p=A.buttonBorderColor,f=A.buttonBackground,v=A.buttonCornerRadius,S=A.buttonOffsetX,P=A.buttonOffsetY,F=A.preMonthButtonWidth,y=A.preMonthIconSize,w=A.preMonthIconColor,N=A.todayButtonWidth,m=A.todayLabelFont,x=A.todayLabelColor,E=A.nextMonthButtonWidth,b=A.nextMonthIconSize,D=A.nextMonthIconColor,B=Ea(A.height,(A=k.rect).height),V=T.columnLineWidth,T=Ea(T.cellWidth,A.width),V={x:(T={x:(I={x:A.x,y:A.y,width:7*T+8*V,height:B}).x+I.width-(A=F+g+N+g+E)-g+(S||0),y:I.y+(I.height-u)/2+(P||0),width:A,height:u}).x,y:T.y,width:F,height:u},B={x:T.x+F+g,y:T.y,width:N,height:u},S={x:T.x+F+g+N+g,y:T.y,width:E,height:u},U=k.drawInfo.ui.hoverHeadBtnName,r.save(),t&&(r.save(),r.beginPath(),At(r,I.x,I.y,I.width,I.height,0),r.fillStyle=ge(r,I,k.toBlendedColor(t)),r.fill(),r.restore()),P=function(){var e,t;s&&(e={x:I.x+o,y:I.y+l,width:I.width,height:I.height},t=k._getLocalText("date").replace(/\bY\b/g,i.getFullYear()).replace(/\bM\b/g,i.getMonth()+1),ve(r,t,e,k.toBlendedColor(s),d,le))},n?n(r,{rect:I,date:i,params:e,defaultDraw:P},k.data,k.view):P(),C=[[v,0,v,0],[0,0,0,0],[0,v,0,v]],[V,B,S].forEach(function(e,t){var i=C[t],t=["preMonthBtnRect","todayBtnRect","nextMonthBtnRect"].indexOf(U)===t;(t&&a.headButtonBackground||f)&&(r.fillStyle=ge(r,e,k.toBlendedColor(t?a.headButtonBackground:f)),r.beginPath(),At(r,e.x,e.y,e.width,e.height,i[0],i[1],i[2],i[3]),r.fill())}),p&&(r.strokeStyle=k.toBlendedColor(p),r.beginPath(),r.moveTo(B.x-g/2,B.y),r.lineTo(B.x-g/2,B.y+B.height),r.lineWidth=g,r.stroke(),r.beginPath(),r.moveTo(S.x-g/2,S.y),r.lineTo(S.x-g/2,S.y+S.height),r.lineWidth=g,r.stroke(),r.beginPath(),At(r,T.x,T.y,T.width,T.height,v),r.stroke()),A=Er("singleArrow"),("preMonthBtnRect"===U&&a.headButtonColor?a.headButtonColor:w)&&ca(r,A,V,y,y,k.data,k.view,k.toBlendedColor(w),-j/2),(F="nextMonthBtnRect"===U&&a.headButtonColor?a.headButtonColor:D)&&ca(r,A,S,b,b,k.data,k.view,k.toBlendedColor(F),j/2),(N="todayBtnRect"===U&&a.headButtonColor?a.headButtonColor:x)&&ve(r,k._getLocalText("today"),B,k.toBlendedColor(N),m),h&&c&&(E={x:I.x,y:I.y+I.height,width:I.width,height:h},r.fillStyle=ge(r,E,k.toBlendedColor(c)),r.beginPath(),At(r,E.x,E.y,E.width,E.height,0),r.fill()),r.restore(),k.drawInfo.ui.calendarHead={headRect:I,preMonthBtnRect:V,todayBtnRect:B,nextMonthBtnRect:S})},t._drawCalendar=function(d,h){for(var c=this,u=c.rect,g=c.params,p=c.data,f=c.view,e=g.headStyle,t=g.bodyStyle,v=g.hoverStyle,y=g.selectStyle,w=g.disabledStyle,m=g.dateSelectableFunc,i=t.background,L=t.weekLabelFont,r=t.weekLabelColor,J=t.weekLabelOffsetX,R=t.weekLabelOffsetY,M=t.dateLabelFont,X=t.dateLabelColor,x=t.otherDateLabelColor,z=t.dateLabelOffsetX,Q=t.dateLabelOffsetY,b=t.cellDraw,D=t.rowLineWidth,a=t.rowLineColor,I=t.columnLineWidth,n=t.columnLineColor,Y=Ea(t.weekHeight,u.height),T=Ea(t.cellWidth,u.width),V=Ea(t.cellHeight,u.height),t=c.drawInfo.ui,o=t.calendarHead,B=t.hoverDate,H=[c._getLocalText("monday"),c._getLocalText("tuesday"),c._getLocalText("wednesday"),c._getLocalText("thursday"),c._getLocalText("friday"),c._getLocalText("saturday"),c._getLocalText("sunday")],l=c.toBlendedColor(r),s=0;s<7;s++){var S,U={x:(U?U.x+U.width:u.x)+I,y:e.visible?o.headRect.y+o.headRect.height+e.bottomSplitLineWidth:u.y,width:T,height:Y};l&&(S={x:U.x+J,y:U.y+R,width:U.width,height:U.height},ve(d,H[s],S,c.toBlendedColor(l),L))}if(i&&(t={x:u.x,y:U.y+U.height,width:7*T+8*I,height:6*V+8*D},d.save(),d.beginPath(),At(d,t.x,t.y,t.width,t.height,0),d.fillStyle=ge(d,t,c.toBlendedColor(i)),d.fill(),d.restore()),n&&I)for(var q=c.toBlendedColor(n),P=0;P<8;P++){var C={x:u.x+P*(I+T),y:U.y+U.height,width:I,height:6*V+7*D};d.save(),d.beginPath(),At(d,C.x,C.y,C.width,C.height,0),d.fillStyle=ge(d,C,q),d.fill(),d.restore()}if(a&&D)for(var A=0;A<7;A++){var F={x:u.x,y:U.y+U.height+A*(D+V),width:7*T+8*I,height:D};d.save(),d.beginPath(),At(d,F.x,F.y,F.width,F.height,0),d.fillStyle=ge(d,F,c.toBlendedColor(a)),d.fill(),d.restore()}for(var r=Va(h,1),O=r.preMonthDays,K=r.monthDays,G=r.nextMonthDays,N=[],E=0;E<6;E++)for(var W=function(){function e(){var e;(o||l||s)&&(s?e=w.dateCellBackground:o?e=y.dateCellBackground:l&&(e=v.dateCellBackground),e)&&(d.save(),d.beginPath(),At(d,a.x,a.y,a.width,a.height,0),d.fillStyle=ge(d,a,c.toBlendedColor(e)),d.fill(),d.restore()),i&&ve(d,t,{x:a.x+z,y:a.y+Q,width:a.width,height:a.height},c.toBlendedColor(i),n)}var t,i,r,a={x:u.x+(k+1)*I+k*T,y:U.y+U.height+(E+1)*D+E*V,width:T,height:V},n=M,o=((t=O.shift())?(i=x,r=new Date(h.getFullYear(),h.getMonth()-1,t)):(t=K.shift())?(i=X,r=new Date(h.getFullYear(),h.getMonth(),t)):(t=G.shift())&&(i=x,r=new Date(h.getFullYear(),h.getMonth()+1,t)),c.isSelectedDate(r)),l=B&&rc(B,r),s=!!m&&!m({date:r},p,f);s?(i=w.dateLabelColor||i,n=w.dateLabelFont||n):o?(i=y.dateLabelColor||i,n=y.dateLabelFont||n):l&&(i=v.dateLabelColor||i,n=v.dateLabelFont||n);b?b(d,{rect:a,date:r,params:g,isSelected:o,isHovering:l,isDisabled:s,labelColor:i,labelFont:n,defaultDraw:e},c.data,c.view):e(),N.push({rect:a,date:r})},k=0;k<7;k++)W();c.drawInfo.ui.cells=N},t._getLocalText=function(e){var t=this.params.locales,t=void 0===t?{language:"zh"}:t;return"custom"===t.language?t[e]||Lt[e]:"zh"===t.language?Lt[e]:"en"===t.language?Jt[e]:void 0},t.isSelectedDate=function(e){var t=this.params.dates;t&&0!==t.length||(t=["".concat((new Date).getFullYear(),"-").concat((new Date).getMonth()+1)]);for(var i=0;i{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onUp=function(e,t,i){if(!C.isDragging()){var r=t.ui,a=t.instance,n=a.data,o=a.view,l=t.params.dateSelectableFunc;if(r.calendarHead)for(var s,d=["preMonthBtnRect","todayBtnRect","nextMonthBtnRect"],h=0;h{function e(e,t,i){e=r.call(this,e,t,i)||this;return e._innerPrefix="gauge",e._transitionParams=["value","min","max"],e}_inheritsLoose(e,r);var t=e.prototype;return t.init=function(e,t){r.prototype.init.call(this,e,t),t.value=xr(t.value,[t.min,t.max])},t.getDefaultValue=function(e){if("value"===e)return this.rawParams.min},t.caluTheta=function(e){var t=this.params,i=t.min,r=t.startAngle,a=t.endAngle,n=t.max-i,o=a-r;return t.clockwise?(e-i)/n*o+r:a-(e-i)/n*o},t.drawTick=function(v){var y=this,e=y.params,w=y.data,m=y.view,x=e.min,b=e.max,e=e.ticks;e&&e.forEach(function(e){if(e){for(var t=e.position,i=void 0===t?"outside":t,r=e.radius,t=e.width,a=e.length,n=e.color,o=e.getColor,l=e.interval||1,s=o?o({value:x},w,m):null,d=!1,h=(r<=1&&(r=y.radius*r),v.beginPath(),v.strokeStyle=y.toBlendedColor(n),v.lineWidth=t,[]),c=x;c<=b;c+=l){var u=y.caluTheta(c),g=r*W(u),p=r*K(u),f=gn(u).toFixed(4);h.includes(f)||(o&&(f=o({value:c},w,m))!==s&&(v.strokeStyle=y.toBlendedColor(s),v.stroke(),d=!0,v.beginPath(),s=f),v.moveTo(g,p),"outside"===i?v.lineTo(g+a*W(u),p+a*K(u)):v.lineTo(g-a*W(u),p-a*K(u)),d=!1)}d||v.stroke()}})},t.drawLabel=function(v){var y=this,e=y.params,w=y.data,m=y.view,x=e.min,b=e.max,e=e.labels;!e||y.hasTransition("min")||y.hasTransition("max")||e.forEach(function(e){if(e){var t=e.font,i=e.radius,r=e.color,a=e.getColor,n=e.formatter,o=e.getFormatter,l=e.interval||1;i<=1&&(i=y.radius*i),v.font=t,v.fillStyle=y.toBlendedColor(r),v.textAlign=be,v.textBaseline=se;for(var s=[],d=x;d<=b;d+=l){var h,c,u=y.caluTheta(d),g=i*W(u),p=i*K(u),f=r,u=gn(u).toFixed(4);s.includes(u)||(s.push(u),a&&(f=a({value:d},w,m)),u=y.formatText(Ga(d,ee,[l])+"",n,o),re(f)?(h=(c=fe(t,u)).width,v.fillStyle=ge(v,{x:g-.5*h,y:p-.5*(c=c.height),width:h,height:c},y.toBlendedColor(f))):v.fillStyle=y.toBlendedColor(f),v.fillText(u,g,p))}}})},t.drawLine=function(f){var v=this,e=v.params,t=e.lines,y=e.startAngle,w=e.endAngle,m=e.min,x=e.max,b=e.clockwise;t&&t.forEach(function(e){if(e){var t=e.radius,i=e.width,r=void 0===i?1:i,a=e.color,n=e.cap,o=e.splitValues,l=e.splitColors,s=e.gradientAlongShape;if(t<=1&&(t=v.radius*t),t=ce(t-r/2,0),f.lineCap=n,f.lineWidth=r,o&&l)for(var d=o.length,h=l.length,c=0,u=m;c<=d;c++){var g=c===d?x:o[c],p=void 0,p=d===h?c?l[(c-1)%h]:a:l[c%h];p=v.toBlendedColor(p),re(p)&&s?pn(f,0,0,t,v.caluTheta(u),v.caluTheta(g),b,p,r,n):(re(p)&&(p=ge(f,{x:-v.rect.width/2,y:-v.rect.height/2,width:v.rect.width,height:v.rect.height},p)),f.strokeStyle=p,f.beginPath(),f.arc(0,0,t,v.caluTheta(u),v.caluTheta(g),!b),f.stroke()),u=g}else{i=v.toBlendedColor(a);re(i)&&s?pn(f,0,0,t,y,w,b,i,r,n):(re(i)&&(i=ge(f,{x:-v.rect.width/2,y:-v.rect.height/2,width:v.rect.width,height:v.rect.height},i)),f.strokeStyle=i,f.beginPath(),f.arc(0,0,t,y,w),f.stroke())}}})},t.getValueColor=function(e){var t=this.params,i=t.lines,r=t.min,a=t.max,n=t.value,o=e;if(i)for(var l=i.length,s=0;s{function e(){var e=i.call(this)||this,t=Er("chartToolTip");return e.setDefaultImage(t),e}_inheritsLoose(e,i);var t=e.prototype;return t.formatText=function(e,t,i){return(t=i?i({value:e},ie,this.view):t)?Ja(t,[e]):e},t.getSize=function(){var n=this,e=this.node,t=e.a("hPadding"),i=e.a("vPadding")||0,o=e.a("vGap"),r=e.a("titleHeight"),l=e.a("itemHeight"),a=e.a("labelStyle"),s=e.a("iconStyle")||{},d=e.a("content"),h=e.a("titleVisible"),e=s.width,s=s.gap,s=void 0===s?0:s,c=a.colonVisible,u=a.font,g=a.labelValueGap,g=void 0===g?0:g,p=a.titleFont,f=void 0===p?u:p,p=a.valueFont,v=void 0===p?u:p,p=a.nameFont,y=void 0===p?u:p,w=a.titleFormatter,m=a.nameFormatter,x=a.getNameFormatter,b=a.valueFormatter,D=a.getValueFormatter,u=_slicedToArray(pe([0,t]),4),p=u[0],a=u[3]+u[1],I=p+u[2],T=c?":":"",V=0,B=0,S=0,U=0;return d&&(d.forEach(function(e){h&&(t=n.formatText(e.title,w),t=fe(f,t),V=ce(V,t.width),I+=r);var t,a=e.items.length;e.items.forEach(function(e,t){var e=_slicedToArray(e,4),i=e[1],r=e[2],e=e[3],i=fe(y,n.formatText(i,m,x)+T),i=(B=ce(B,i.width),n.formatText(r,b,D)),r=fe(v,i);S=ce(S,r.width),ae(e)&&(i=fe(v,e),U=ce(U,i.width)),I+=l,a-1!==t&&(I+=o)}),I+=2*i}),a+=ce(e+s+B+g+S+U,V)),{width:a,height:I}},e})(Rt)),pc=new gc,fc=(n=>{function e(){var e=n.apply(this,arguments)||this;return e._visibleCases=[],e.clip=!0,e.sliderDataMap={},e}_inheritsLoose(e,n);var t=e.prototype;return t.init=function(e,t){var i,r=this,a=this.params||{},e=(n.prototype.init.call(this,e,t),t.seriesModel);r._seriesModel===e&&r._dm===t.dataModel||r.clearTransition(),r.setDataModel(t.seriesModel,"_seriesModel"),r.dm(t.dataModel),a.isVisible!==t.isVisible&&r._clearCaseChartDatas(),!r.valueDirty&&r.visibleDatas||(r.visibleDatas=[],i=[],r.dm().eachByHierarchical(function(e){i.push(e)}),i.forEach(function(e){var t;(t=r.isVisible(e,i))&&r.visibleDatas.push(e),!r.valueDirty&&ae(e[ft])&&t!==e[ft]&&r._clearCaseChartDatas(),e[ft]=t})),r.mainDimension=P},t.setSeriesModel=function(e){this.setDataModel(e,"_seriesModel")},t.getSeriesModel=function(){return this._seriesModel||this.setSeriesModel(new ht.DataModel),this._seriesModel},t.getChartCase=function(e){return this._seriesModelMap[e.getId()]},t.getDefaultValue=function(e){var t;return e.startsWith("case.init")?0:e.startsWith("case.blur")?1:e.startsWith("case")&&0{function e(e){var t=1e)for(var a=e-1;0<=a;a--)if(r[a].option.type===i.type)return r[a]}return null},t._drawAxisLabel=function(e,t,i,r,a,n,o,l){var s,d=this.option.axisLabel,h=d.offsetX,c=d.offsetY,u=this.chartInstance||{},g=u.data,u=u.view,p=this.option.position,f=this.dimension,v=d.angle;n=be,o=se,8t[1]&&(t[0]=t[1]),i}function Tc(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}var Vc=Array.prototype,Bc=Vc.filter,Sc=Vc.slice,Uc=Vc.map;function Pc(e,t,i){if(!e)return[];if(!t)return Cc(e);if(e.filter&&e.filter===Bc)return e.filter(t,i);for(var r=[],a=0,n=e.length;a{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.setMinInterval=function(e){this._minInterval=e},i.parse=function(e){return e},i.contain=function(e){return!this.isBlank()&&this.isInExtentRange(e)},i.normalize=function(e){var t;return e=this.parse(e),(t=this._extent)[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},i.scale=function(e){var t;return e=this.parse(e),t=this._extent,e*(t[1]-t[0])+t[0]},i.niceTicks=function(){var e=0{function e(){this._extent=[1/0,-1/0]}var t=e.prototype;return t.getExtent=function(){return this._extent.slice()},t.setExtent=function(e,t){var i=this._extent;isNaN(e)||(i[0]=e),isNaN(t)||(i[1]=t)},t.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.isBlank=function(){return this._isBlank},t.setBlank=function(e){this._isBlank=e},e})()),qc=(r=>{function e(e,t){var e=r.call(this,e,2s.width&&(l=o[d],s=h)}return[this.formatLabel(l)]},t.getFirstLabelSize=function(){return this.getLabelSize(this.getComputedRange()[0]+"",!0)},t.getLastLabelSize=function(){return this.getLabelSize(this.getComputedRange()[1]+"",!0)},t._genNiceRange=function(){var e=0t.dimPoint?1:-1}),t._cacheAxisUI},t.getTipInfoByData=function(t){for(var e,i=this.valueInfos,r=i.length,a=0;aw?v:f}},t.handleScroll=function(e,t){var i=this.dimension,r=this.option,a=this.chartInstance;if(r.scrollMode){var i=i===P,n=e.wheelDeltaX,e=e.wheelDeltaY,e=n&&e?i?n:e:i?n||e:e||n;if(e){var n=this.checkHitByPoint(t),t=this.getRangeMin(),o=this.getRangeMax(),l=_slicedToArray(this.getComputedRange(),2),s=l[0],l=l[1],d=l-s;if("zoom"===r.scrollMode){var h,c=(o-t)/200,c=(0{function m(e,t,i){e=r.call(this,e,t,i)||this,t=e;return t.clip=!0,t._innerPrefix="rank",t._action="",e}_inheritsLoose(m,r);var e=m.prototype;return e.drawImpl=function(n,o,l){var s,d,h,c,u,g,p,f,e,v,t,y,w=this;w.data&&(w.dm(l.dataModel),0!==w.dm().size())&&(s=l.maxNum,d=l.barHeight,h=l.barLineGap,c=l.ignoreZero,u=l.draw,g=l.rankIconFollow,p=l.rankIcons,t=_slicedToArray(pe(l.padding),4),f=t[0],e=t[2],v=t[3],w._drawAxis(n),n.save(),n.beginPath(),n.rect(o.x,o.y,o.width,o.height-e),n.clip(),w._isRanking?w._rankSource.forEach(function(e,t){function i(){w._drawItem(n,r,e,t)}var r={x:o.x+v,y:o.y+t*d+t*h+(w._offsets[t]||0)+f,width:w._getBarWidth(e.percent||0),height:d};u?u(n,{rect:r,barRect:r,row:e,index:t,params:l,defaultDraw:i},w.data,w.view):i()}):(t=w.dm().getRoots().get(0).s("dataSource"),y=0,t.forEach(function(e,t){var i,r,a=+e.num;c&&!a||(i={key:e.key,icon:e.icon,label:e.label,seriesName:e.seriesName,num:a,percent:a/s},r={x:o.x+v,y:o.y+y*d+y*h+f,width:w._getBarWidth(i.percent||0),height:d},g&&p[t]&&(i.rankIcon=p[t]),e=function(){w._drawItem(n,r,i,t)},u?u(n,{rect:r,barRect:r,row:i,index:t,params:l,defaultDraw:e},w.data,w.view):e(),y++)})),n.restore(),w._action!==l.action)&&("play"===l.action&&(w.fireEvent({kind:m.EVENT_ON_STEP_RANK_CHANGE,newValue:0}),w._startRank()),"pause"===l.action&&w._pauseRank(),"resume"===l.action&&w._resumeRank(),"replay"===l.action&&(w._isRanking&&w._stopRank(),w._startRank()),w._action=l.action)},e._drawAxis=function(e){var t=this,i=t.rect,r=t.params,a=r.maxNum,n=r.ignoreZero,o=r.xAxisStyle,r=_slicedToArray(pe(r.padding),4),l=(r[0],r[1]),r=r[3],o=ue({},o,{min:0,max:a}),s=(t._axis?t._axis.setOption(o):(t._axis=new qc(ee,o,"x"),t._axis.agentComp=t),[]),a=(t._isRanking?t._rankSource.forEach(function(e,t){s.push(e.num)}):t.dm().getRoots().get(0).s("dataSource").forEach(function(e,t){e=+e.num;n&&!e||s.push(e)}),t._axis.appendData(void 0,void 0,s),0),o=0,d=t._axis.getBoundHeight(),d=(t._axis.option.position===ne?a+=d:o+=d,t._axis.getFirstLabelSize()),d=(t._axis.getLastLabelSize(),ce(r,d.width/2)),d=Wr({x:i.x+d,y:i.y,width:i.width-r-l,height:i.height},[a,0,o,0]);t._axis.setRect({x:d.x,y:t._axis.option.position===me?d.y+d.height:i.y,width:d.width,height:a||o}),t._axis.draw(e,d)},e._drawItem=function(c,u,e,t){var i=this,r=i.params,a=r.barStyle,n=r.labelStyle,o=r.iconStyle,l=r.numLabelStyle,s=r.seriesModel,d=r.colors,r=r.rankBackgrounds,h=e.label,g=e.num,p=e.icon,f=e.rankIcon,v=e.seriesName,e=e.visible;if(!1!==e){var y,w=a.background,e=a.bottomBackground,m=a.bottomBackgroundImage,x=a.shadowBlur,b=a.shadowColor,D=a.shadowOffsetX,I=a.shadowOffsetY;if(r&&r[t]&&(w=r[t]),v&&s&&0=s-e)&&(S&&U&&o&&Y(c,S,{x:y.x+(y.width-U)/2,y:y.y+(y.height-o)/2,width:U,height:o},i.data,i.view),a&&(r=y.x+y.width/2,m=y.y+y.height/2,c.save(),c.beginPath(),At(c,r-a/2,m-a/2,a,a,a),c.clip()),Y(c,f||p,y,i.data,i.view),a)&&c.restore();var S,U,t=function(e,t){var i,r,a,n=t.position,o=t.font,l=t.color,s=t.offsetX,t=t.offsetY,d=(e+"").split("\n"),h=la(d,o),t=u.y+u.height/2+t;"barLeft"===n&&(i=u.x+s,r="left",a="right"),"inBar"===n&&(i=u.x+u.width+s,r="left",a="right"),"barRight"===n&&(i=u.x+u.width+s,r="right",a="left"),("inBar"!==n||"inBar"===n&&u.width>=h.width-s)&&(n=Za(e+"",{x:i,y:t},r,"middle",o),ha(c,d,void 0,n,l,o,a,"middle"))};n.visible&&n.color&&t(h,n),l.visible&&l.color&&(s=l.separatorVisible,e=l.separator,S=l.separatorGap,U=l.decimal,t(s?Ca(g.toFixed(U),S,e):g,l))}},e._getBarWidth=function(e){var t=this.params.maxNum,i=this._axis.getValuePoint(0);return this._axis.getValuePoint(e*t)-i},e._startRank=function(){var c,u,p,f=this;f._isRanking||(f._isRanking=!0,c=f.data,u=f.dm().getRoots(),f._rankIndex=0,f._rankSource=[],f._offsets=[],(p=function(){for(var e=u.get(f._rankIndex),t=e.s("dataSource"),i=void 0===e.s("increaseTime")?5e3:e.s("increaseTime"),g=void 0===e.s("sortTime")?500:e.s("sortTime"),r=0;r{function t(){return e.apply(this,arguments)||this}return _inheritsLoose(t,e),t})(wo)),Kc=(r=>{function e(e,t,i){e=r.call(this,e,t,i)||this;return e._innerPrefix="textBox",e}_inheritsLoose(e,r);var t=e.prototype;return t.init=function(e,t){r.prototype.init.call(this,e,t),this.translateX=this.getInnerAttr("translateX",0),this.translateY=this.getInnerAttr("translateY",0),this.clip=!(null==(e=t.borderStyle)||!e.cornerRadius)},t.genKey=function(){var e=this.params,t=e.lineHeight,i=e.font,e=e.padding,e=Wr(this.getCloneRect(),e);return""+e.width+e.height+i+t},t.drawScrollbar=function(e,t,i){var r=this.data,a=this.view,n=this.params.scrollbarStyle;Qr(r,ue({scrollWidth:t,scrollHeight:i},n),this.innerPrefix),zr(e,{draw:"scrollbar",tag:this._innerPrefix},this.rect,r,a)},t.drawImpl=function(e,t,i){var r=this,a=i.content,n=i.overflow,o=i.wordBreak,l=i.font,s=i.align,d=i.vAlign,h=i.lineHeight,c=i.vGap,u=i.padding,g=i.decoration,L=i.strokeColor,J=i.strokeWidth,p=i.color,f=i.fillContent,v=i.background,y=i.backgroundImage,w=i.rich,i=i.letterGap,m=r.data,x=r.view;if(!Z(a)&&(r.drawCompBackground(e,v),r.drawCompBorder(e),y&&Y(e,y,t,m,x),m)){t=Wr(r.getCloneRect(),u);v=_slicedToArray(pe(u),3),y=v[0],u=v[2],v=r.drawInfo.ui;v.ellipsis=!1,v.textLayoutUI=ie;t.x,t.y;var b=t.width,D=t.height;if(jn(a)&&"scale"!==n&&!f)P="hidden"===(T=n),C=(A=n===Ye)||P,F=he(t),n&&!C||(T=o?Qe:ze),C&&(ii(t,.7),r.clipRect(e,t)),A&&(F.y+=r.translateY),F=v.textLayoutUI=Qn(F,{content:a,style:{position:De,align:s,vAlign:A?ne:d,inlineVAlign:se,font:l,rich:w,width:b,height:D,lineHeight:h,overflow:T,vGap:c,letterGap:i}},m,x),Yn(e,{style:{font:l,color:p,rich:w,letterGap:i,inlineVAlign:se}},F,r),!P&&n!==Xe||(v.ellipsis=ao(F)),C&&e.restore(),A&&F.contentHeight>t.height&&r.drawScrollbar(e,r.rect.width,F.contentHeight+y+u);else{var I=$r(a,l,b,o),T=I.length,V=1,m={letterGap:i,vGap:c,decoration:g,strokeColor:L,strokeWidth:J};if(DD)S+=$i(U.length*B);else{if(!(D-U.length*B>2*B)){I=U;break}S-=_i((D-U.length*B)/B)}r.cachedScale=V}}else{if("scroll"===n)return r.clipRect(e,t),(w=he(t)).y+=r.translateY,ha(e,I,h,w,p,l,s,ne,m),e.restore(),void r.drawScrollbar(e,t.width,T*h+c*(T-1)+y+u);if("hidden"===n)return r.clipRect(e,t),ha(e,I,h,t,p,l,s,ne,m),e.restore(),void(v.ellipsis=!0);if(n===Xe){var P=ta(a,l,b,D,h,c,o),C=P.textList,A=P.ellipsis;if(T)return ha(e,C,h,t,p,l,s,ne,m),void(v.ellipsis=A)}}else if(f){var F=r.genKey();if(r.cachedScale&&r.preKey===F&&a===r.preContent)V=r.cachedScale,I=$r(a,l,b/V,o);else for(var N,E=0,k=I;E<4;){if(N=h*(V=D/((k.length+0)*h)),!((k=$r(a,l,b/V,o)).length*N>D||k.length*NN)){I=k;break}k.length,4==++E&&(I=k)}}1!==V?(e.save(),e.translate(t.x,t.y),e.scale(V,V),ha(e,I,h,{x:0,y:0,width:b/V,height:D/V},p,l,s,d,m),e.restore()):ha(e,I,h,t,p,l,s,d,m),r.saveContent()}}},t.saveContent=function(){this.preKey=this.genKey(),this.preContent=this.params.content},e})(fo);var Gc=(r=>{function e(){var e=r.apply(this,arguments)||this;return e._innerPrefix="labelToolTip",e}return _inheritsLoose(e,r),e.prototype.drawImpl=function(e,t,i){this.drawCompBackground(e,i.background),this.drawCompBorder(e),r.prototype.drawImpl.call(this,e,t,i)},e})(Kc);function Wc(e,t,i){var r,e=e.ui;if(!Bi(e))if(de(e.sourceCheckBtnRect,t))i.handleHeadCheckBtn&&i.handleHeadCheckBtn("source");else if(de(e.targetCheckBtnRect,t))i.handleHeadCheckBtn&&i.handleHeadCheckBtn("target");else if(de(e.toTargetBtnRect,t))i.handleToTargetBtn&&i.handleToTargetBtn();else if(de(e.toSourceBtnRect,t))i.handleToSourceBtn&&i.handleToSourceBtn();else{if(e.source&&de(e.source.rect,t)&&(r=e.source.items),r=e.target&&de(e.target.rect,t)?e.target.items:r)for(var a=0,n=r.length;a{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onHover=function(e,t,i){var r=t.params,a=t.ui,t=t.instance,n=t.data;r.showToolTipWhenEllipsis&&a.ellipsis&&x.show(e,{attr:{label:a.textLayoutUI?a.textLayoutUI.richRawText:r.content}},n,t.view)},i.onMove=function(e,t,i){x.hide()},t})(wo)),_c=(r=>{function T(e,t,i){e=r.call(this,e,t,i)||this,t=e;return t.clip=!0,t._innerPrefix="transfer",e}_inheritsLoose(T,r);var e=T.prototype;return e.drawImpl=function(e,t,i){var r,a;this.data&&(r=i.dataModel,a=i.panelWidth,i=i.panelGap,this.dm(r),this._drawTransferPanel(e,{x:t.x,y:t.y,width:a,height:t.height},"source"),this._drawTransferBtn(e,{x:t.x+a,y:t.y,width:i,height:t.height}),this._drawTransferPanel(e,{x:t.x+a+i,y:t.y,width:a,height:t.height},"target"))},e._drawTransferPanel=function(e,t,i){var r=this.params,a=r.headStyle,r=r.inputStyle,n=_slicedToArray(pe(r.padding),4),o=n[0],l=n[1],s=n[3],n=r.visible?r.height+o+n[2]:0;this._drawHead(e,{x:t.x,y:t.y,width:t.width,height:a.height},i),r.visible&&(r.background&&(e.save(),e.beginPath(),At(e,t.x,t.y+a.height,t.width,n,2,2,0,0),e.fillStyle=ge(e,t,this.toBlendedColor(r.background)),e.fill(),e.restore()),this._drawInput(e,{x:t.x+s,y:t.y+a.height+o,width:t.width-s-l,height:r.height},i)),this._drawBody(e,{x:t.x,y:t.y+a.height+n,width:t.width,height:t.height-a.height-n},i)},e._drawHead=function(e,t,i){var r=this,a=r.params,n=a.headStyle,o=a.checkIcon,l=a.uncheckIcon,s=a.halfcheckIcon,d=n.background,h=n.titleFont,c=n.titleColor,u=n.selectedNumFont,g=n.selectedNumColor,p=n.totalNumFont,f=n.totalNumColor,v=n.checkIconWidth,y=n.checkIconHeight,w=n.checkIconLeftGap,n=n.checkIconRightGap,m=r.dm().toDatas(function(e){return(e.s("position")||"source")===i&&!1!==e.s("visible")}),x=r.dm().sm().toSelection(function(e){return(e.s("position")||"source")===i&&!1!==e.s("visible")}),d=(d&&(e.save(),e.beginPath(),At(e,t.x,t.y,t.width,t.height,2,2,0,0),e.fillStyle=ge(e,t,r.toBlendedColor(d)),e.fill(),e.restore()),{x:t.x+w,y:t.y+(t.height-y)/2,width:v,height:y}),v=0===x.size()?l:x.size()===m.size()?o:s,l=(Y(e,v,d,r.data,r.view),c&&(y={x:d.x+d.width+n,y:t.y,width:t.width-w-n-d.width,height:t.height},ve(e,a.headStyle["source"===i?"sourceTitle":"targetTitle"],y,r.toBlendedColor(c),h,le))," / "+m.size()),o=fe(p,l),s={x:t.x,y:t.y,width:t.width-10,height:t.height};f&&ve(e,l,s,r.toBlendedColor(f),p,oe),g&&ve(e,x.size()+"",{x:t.x,y:t.y,width:t.width-10-o.width,height:t.height},r.toBlendedColor(g),u,oe),"source"===i&&(r.drawInfo.ui.sourceCheckBtnRect=d),"target"===i&&(r.drawInfo.ui.targetCheckBtnRect=d)},e._drawBody=function(n,o,t){var l,s,d=this,e=d.params,h=e.bodyStyle,i=e.emptyStyle,c=e.checkIcon,u=e.uncheckIcon,g=h.rowHeight,p=h.rowClipRadius,f=h.rowBackgroundPattern,e=h.background,v=h.disabledMaskColor,y=h.checkIconWidth,w=h.checkIconHeight,m=h.checkIconLeftGap,x=h.checkIconRightGap,b=d.dm().sm(),r=d.dm().getRoots().toList(function(e){return(e.s("position")||"source")===t&&!1!==e.s("visible")}),D=d.getInnerAttr(t+".scroll.translateX",0),I=d.getInnerAttr(t+".scroll.translateY",0);e&&(n.save(),n.beginPath(),At(n,o.x,o.y,o.width,o.height,0,0,2,2),n.fillStyle=ge(n,o,d.toBlendedColor(e)),n.fill(),n.restore()),0===r.size()?((e=void 0!==i.offsetX||void 0!==i.offsetY)&&(n.save(),n.translate(i.offsetX||0,i.offsetY||0)),i.image?ca(n,i.image,o,i.width,i.height,d.data,d.view):i.labelColor&&ve(n,i.label,o,d.toBlendedColor(i.labelColor),i.labelFont),e&&n.restore()):(d.clipRect(n,o),s=[],r.each(function(e,t){var i=e.s("disabled")||!1,r=e.a("_offsetX")||0,a=e.a("_offsetY")||0,r=(l={x:o.x+r+D,y:(l?l.y+l.height:o.y+I)+a,width:o.width,height:g},p&&(n.save(),n.beginPath(),ye(n,l,p),n.clip()),f&&f[t%f.length]&&ua(n,l,ge(n,l,d.toBlendedColor(f[t%f.length]))),e===d.drawInfo.ui.hoverData&&ua(n,l,"rgba(255,255,255,0.1)"),{x:l.x+m,y:l.y+(l.height-w)/2,width:y,height:w});Y(n,b.co(e)?c:u,r,e,d.view),h.color&&(a={x:r.x+r.width+x,y:l.y,width:l.width-m-x-r.width,height:l.height},ve(n,T.getLabel(e),a,d.toBlendedColor(h.color),h.font,le)),i&&v&&(n.save(),n.beginPath(),At(n,l.x,l.y,l.width,l.height,0),n.fillStyle=d.toBlendedColor(v),n.fill(),n.restore()),p&&n.restore(),s.push({rect:l,checkRect:r,data:e})}),n.restore(),"source"===t&&(d.drawInfo.ui.source={rect:o,items:s}),"target"===t&&(d.drawInfo.ui.target={rect:o,items:s}),d._drawScrollBar(n,o,t,o.width,r.size()*g))},e._drawTransferBtn=function(e,t){var i,r,a=this.params,n=a.transferButtonStyle,o=a.disabledStyle,a=a.hoverStyle,l=n.leftTransferButton,s=n.rightTransferButton,d=n.width,h=n.height,c=n.gap,u=n.cornerRadius,g=n.borderWidth,n=n.color,p=this.dm().sm(),f=p.toSelection(function(e){return"source"===(e.s("position")||"source")&&!1!==e.s("visible")}),p=p.toSelection(function(e){return"target"===(e.s("position")||"source")&&!1!==e.s("visible")}),t=this.drawInfo.ui.toTargetBtnRect={x:t.x+(t.width-d)/2,y:t.y+(t.height-2*h-c)/2,width:d,height:h},f=0===f.size()?o.transferButtonColor:"target"===this.drawInfo.ui.hoverBtnType?a.transferButtonColor:n,s=((f||n)&&(s?Y(e,s,t,null,null,f||n):(e.save(),e.strokeStyle=this.toBlendedColor(f||n),g&&(e.lineWidth=g,e.beginPath(),At(e,t.x,t.y,t.width,t.height,u),e.stroke()),i=(r=t.height/3)/2,e.lineWidth=1,e.beginPath(),e.moveTo(t.x+(t.width-i)/2,t.y+(t.height-r)/2),e.lineTo(t.x+(t.width-i)/2+i,t.y+t.height/2),e.lineTo(t.x+(t.width-i)/2,t.y+t.height/2+r/2),e.stroke(),e.restore())),this.drawInfo.ui.toSourceBtnRect={x:t.x,y:t.y+t.height+c,width:d,height:h}),f=0===p.size()?o.transferButtonColor:"source"===this.drawInfo.ui.hoverBtnType?a.transferButtonColor:n;(f||n)&&(l?Y(e,l,s,null,null,f||n):(e.save(),e.strokeStyle=this.toBlendedColor(f||n),g&&(e.lineWidth=g,e.beginPath(),At(e,s.x,s.y,s.width,s.height,u),e.stroke()),i=(r=s.height/3)/2,e.lineWidth=1,e.beginPath(),e.moveTo(s.x+(s.width-i)/2+i,s.y+(s.height-r)/2),e.lineTo(s.x+(s.width-i)/2,s.y+s.height/2),e.lineTo(s.x+(s.width-i)/2+i,s.y+s.height/2+r/2),e.stroke(),e.restore()))},e._drawScrollBar=function(e,t,i,r,a){var n=this.data,o=this.view,l=this.params,s="".concat(this.innerPrefix,".").concat(i,".scroll");Qr(n,ue({scrollWidth:r,scrollHeight:a},l.scrollbarStyle),s),zr(e,{draw:"scrollbar",tag:"".concat(this._innerPrefix,".").concat(i,".scroll")},t,n,o)},e._drawInput=function(e,t,r){var a=this,n=a.data,o=a.view,l=a.params.inputStyle,i={handleEvent:function(e){var i;"keyup"!==e.kind&&"clear"!==e.kind||(i="clear"===e.kind?"":e.nativeEvent.target.value,a.dm().getRoots().each(function(e){var t;(e.s("position")||"source")===r&&(t=T.getLabel(e),e.s("visible",-1!==t.indexOf(i)))})),l.properties&&l.properties.handleEvent&&l.properties.handleEvent(e,n,o)}},s="".concat(a.innerPrefix,".").concat(r,".input");Qr(n,ue({},l.properties,i),s),zr(e,{draw:"input",tag:"".concat(a._innerPrefix,".").concat(r,".input")},t,n,o)},T.getLabel=function(e){return e.getDisplayName()||e.getName()||""},T})(Po),$c=(_c.EVENT_TRANSFER="transfer",_c.EVENT_SELECT_CHANGE="selectChange",i(_c,["dataModel","panelWidth","panelGap","checkIcon","uncheckIcon","halfcheckIcon","headStyle","bodyStyle","transferButtonStyle","inputStyle","emptyStyle","hoverStyle","disabledStyle","scrollbarStyle"])),eu=mo((e=>{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onUp=function(r,a,e){var n,o,t,l;C.isDragging()||(n=a.instance.dm(),o=n.sm(),t=a.instance,l=t.data,Wc(a,e,{handleHeadCheckBtn:function(t){var e,i=o.toSelection(function(e){return(e.s("position")||"source")===t&&!1!==e.s("visible")});0{function e(e,t,i){e=r.call(this,e,t,i)||this,t=e;return t.clip=!0,t._innerPrefix="time",e}_inheritsLoose(e,r);var t=e.prototype;return t.drawImpl=function(e,t,i){var r,a,n,o,l,s,d,h,c=this;c.data&&(r=i.refreshRate,n=i.locales,i=i.labelStyle,a=new Date,c._refreshValue=a[tu[r]](),r=i.formatter,i.getFormatter&&(r=i.getFormatter({date:a},c.data,c.view)),"en"===n.language&&(s=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),r=Da(a,r||"",s="custom"===n.language?[n.sunday||"",n.monday||"",n.tuesday||"",n.wednesday||"",n.thursday||"",n.friday||"",n.saturday||""]:s),a=i.align,n=i.vAlign,"left"===a&&(o=t.x),"center"===a&&(o=t.x+t.width/2),"right"===a&&(o=t.x+t.width),"top"===n&&(l=t.y),"middle"===n&&(l=t.y+t.height/2),"bottom"===n&&(l=t.y+t.height),d=(s=_slicedToArray(pe(i.padding),4))[0],h=s[2],Yn(e,{style:i},Qn({x:o,y:l},{content:r,style:{offsetX:i.offsetX,offsetY:i.offsetY,font:i.font,padding:i.padding,width:ce(0,t.width-s[3]-s[1]),height:ce(0,t.height-d-h),align:a,vAlign:n,lineHeight:i.lineHeight,rich:i.rich}},c.data,c.view),c),c._timeFrame?c._timeFrame.updateStatus():c._initTimeFrame())},t._initTimeFrame=function(){var i=this,r=i.data;i._timeFrame=new Nn,i._timeFrame.onEnterFrame=function(e,t){r&&i._refreshValue!==(new Date)[tu[i.params.refreshRate]]()&&i._timeFrame.iv(r)},i._timeFrame.start()},e})(fo),["refreshRate","locales","labelStyle"]),ru=i((r=>{function e(e,t,i){e=r.call(this,e,t,i)||this;return e._innerPrefix="count",e}_inheritsLoose(e,r);var t=e.prototype;return t.getDefaultValue=function(e){return void 0!==this._numberIndex&&e==="offsetY"+this._numberIndex?0:void 0},t.drawImpl=function(n,e,t){var o=this;if(o.data){for(var i=t.value,r=t.unit,a=t.valueUnitGap,l=t.unitLabelStyle,s=t.labelStyle,t=t.separatorStyle,d=e.x,h=e.y,c=e.width,e=e.height,u=r?fe(l.font||s.font,r):{width:0,height:0},g=fe(s.font,at),p=s.width||g.width,f=["","0","1","2","3","4","5","6","7","8","9","-",".",t.separator],v=o._getTextArr(i),y=o.drawInfo.ui.maxNumberIndex=ce(o.drawInfo.ui.maxNumberIndex||0,v.length),w={x:NaN,y:NaN,width:p*y,height:s.lineHeight||g.height},t=u.width?u.width+a:0,m=("left"===s.align?w.x=d:"center"===s.align?w.x=d+(c-w.width-("center"===l.align?t:0))/2:w.x=d+c-w.width-t,"top"===s.vAlign?w.y=h:"bottom"===s.vAlign?w.y=h+e-w.height:w.y=h+(e-w.height)/2,cn(n,w),Ma(n,s),0),x=0;x{var e=v[i],t=ce(0,f.indexOf(e)),r=(o._numberIndex=i,o.getTransitionValue("offsetY"+o._numberIndex,-t*w.height));if(void 0===e&&0===r)return m++;var a=o.toBlendedColor(s.color);a&&f.forEach(function(e,t){t={x:w.x+w.width-p*(i+1),y:w.y+t*w.height+r,width:p,height:w.height};ve(n,e,t,a,s.font)})})(x);o.drawInfo.ui.maxNumberIndex-=m,n.restore(),r&&(i={x:l.offsetX,y:l.offsetY,width:u.width,height:u.height},"left"===l.align?i.x+=w.x+w.width+a:"center"===l.align?(g=d+c-(w.x+w.width)+a,i.x+=w.x+w.width+("center"===s.align?a:(g-u.width)/2)):i.x+=d+c-u.width,"top"===l.vAlign?i.y+=h:"bottom"===l.vAlign?i.y+=h+e-u.height:i.y+=h+(e-u.height)/2,Ma(n,l),ve(n,r,i,o.toBlendedColor(l.color||s.color),l.font||s.font)),o.drawInfo.ui.maxNumberIndex!==y&&o.iv()}},t._getTextArr=function(e){var t=(e="number"!=typeof e?0:e)<0,i=(t&&(e=Math.abs(e)),this.params),r=i.separatorStyle,a=i.decimal,i=i.minIntBit,r=(r.visible?Ca(e.toFixed(a),r.gap,r.separator):e.toFixed(a)).split(""),a=(t&&r.unshift("-"),_i(e).toString().length);return a{function e(e,t,i){e=r.call(this,e,t,i)||this,t=e;return t._contentQueues=[],t._innerPrefix="flop",e}_inheritsLoose(e,r);var t=e.prototype;return t.getDefaultValue=function(e){return void 0!==this._currentDrawTextIndex&&e==="scaleY"+this._currentDrawTextIndex?1:void 0},t.drawImpl=function(e,t,i){if(this.data){for(var r=i.width,a=i.height,n=i.gap,o=i.placeholderNum,l=i.align,s=i.separatorStyle,i=i.content,o=(i.lengthh&&this._contentQueues.splice(h)}},t._drawFlop=function(t,e,i,r){function a(e){t.save(),t.beginPath(),t.rect(y,w,m,x/2),t.clip(),ve(t,e+"",I,g.toBlendedColor(v.color),v.font,be,se,null,T),t.restore()}function n(){0{function w(e,t,i){e=r.call(this,e,t,i)||this,t=e;return t.clip=!0,t._innerPrefix="iconGroup",e}_inheritsLoose(w,r);var e=w.prototype;return e.init=function(e,t){r.prototype.init.call(this,e,t),this.translateX=this.getInnerAttr("translateX",0),this.translateY=this.getInnerAttr("translateY",0)},e.handleMM=function(e,t,i){this._checkTxy=!0},e.getDefaultValue=function(e){return this._currentDrawData&&e==="rect"+this._currentDrawData.getId()?(e=this.getIconUI(this._currentDrawData).rect,he(e)):void 0},e._buildItems=function(){var o=this,e=o.params,t=e.padding,i=e.vertical,r=e.hGap,a=e.vGap,n=e.nowrap,l=e.align,e=e.vAlign,s=o._getVisibleData(),d=[],h=o.ui.itemUIs=[];o._dmMap={},s.forEach(function(e){var t=o._getStyle(e,"iconStyle"),i=pe(t.margin),i=(d.push({width:i[1]+t.width+i[3],height:i[0]+t.height+i[2]}),{data:e,rect:null,disabled:o.isDisabled(e),selectable:o.isSelectable(e),blendMode:t.blendMode||e.s("blendMode")||"multiply",iconStyle:t});i.icon=o.getStateValue(i,o.getIcon(e),"icon"),i.iconBlend=o.getStateValue(i,t.blendColor||e.s("blendColor"),"iconBlendColor"),i.iconBackground=o.getStateValue(i,t.background||e.s("blendColor"),"iconBackground"),h.push(i),o._dmMap[e.getId()]=i});var t=_slicedToArray(pe(t),4),c=t[0],u=t[1],g=t[2],t=t[3],p=o.rect,f=Ua({x:p.x+t,y:p.y+c,width:p.width-t-u,height:p.height-c-g},d,{boxDirection:i?"top-left":"left-top",hGap:r,vGap:a,nowrap:n,align:l,vAlign:e}),v=o.getInnerAttr("translateX",0),y=o.getInnerAttr("translateY",0),w=[1/0,-1/0],m=[1/0,-1/0];s.forEach(function(e,t){var e=_slicedToArray(pe(o._getStyle(e,"iconStyle").margin),4),i=e[0],r=e[1],a=e[2],e=e[3],n=f[t];w[0]=te(w[0],n.x),w[1]=ce(w[1],n.x+n.width),m[0]=te(m[0],n.y),m[1]=ce(m[1],n.y+n.height),n.x+=v+e,n.width-=r+e,n.y+=y+i,n.height-=i+a,h[t].rect=n}),o.contentWidth=t+w[1]-w[0]+u,o.contentHeight=c+m[1]-m[0]+g},e.getIconUI=function(e){return this._dmMap[e.getId()]},e.getStateValue=function(e,t){var i=2e.y?t.data.a("".concat(t.innerPrefix,".translateY"),t.translateY+(i.y-e.y)):e.y+e.height>i.y+i.height&&t.data.a("".concat(t.innerPrefix,".translateY"),t.translateY-(e.y+e.height-(i.y+i.height))),i.x>e.x?t.data.a("".concat(t.innerPrefix,".translateX"),t.translateX+(i.x-e.x)):e.x+e.width>i.x+i.width&&t.data.a("".concat(t.innerPrefix,".translateX"),t.translateX-(e.x+e.width-(i.x+i.width))),!0},e.getIcon=function(e){var t=this._getStyle(e,"iconStyle").icon;return e.getIcon()||t},e.checkHit=function(e){for(var t=this.ui.itemUIs,i=t.length,r=0;r{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onDown=function(e,t,i){t.ui.downPoint=i},i.onUp=function(e,t,i){var r,a,n,o;C.handleDrop(t,e,i,!0)||(a=(r=t.instance).sm,n=r.checkHit(i),o=t.ui.downPoint&&r.checkHit(t.ui.downPoint),n&&o&&n.data===o.data&&$t(t.ui.downPoint,i)<5&&(r.isSelectable(n.data)&&(a.co(n.data)?(t.params.multiple||t.params.cancelableWhenSingle)&&a.rs(n.data):t.params.multiple?a.as(n.data):a.ss(n.data)),r.fireEventWithDisabled({kind:ou.EVENT_CLICK_DATA,data:n.data,nativeEvent:e})))},i.onMove=function(e,t,i){var r,a,n,o,l,s,d,h;return!(C.isCompDragging(t)||!C.handleDrag(t,e,i))||!(!ui(e)&&!C.isDragging())||(a=(r=t.instance).sm,n=t.ui,o=t.params,l=r.data,s=r.view,(i=r.checkHit(i))?(d=r._getStyle(i.data,"hoverStyle").cursor,r.isDisabled(i.data)?(h=r._getStyle(i.data,"disabledStyle")).cursor&&(d=h.cursor):a.co(i.data)&&(h=r._getStyle(i.data,"selectStyle")).cursor&&(d=h.cursor),n.active=!0,o.cursorControl||Q(s,d),n.hoverData!==i.data&&(n.hoverData&&r.fireEventWithDisabled({kind:ou.EVENT_LEAVE_DATA,data:n.hoverData,nativeEvent:e}),n.hoverData=i.data,r.fireEventWithDisabled({kind:ou.EVENT_ENTER_DATA,data:n.hoverData,nativeEvent:e}),l.iv()),r.showLabelToolTip(e,ou.getLabel(i.data),{data:i.data}),!0):void su(t,e))},i.onEnter=function(e,t,i){C.handleEnter(t,e,i)},i.onLeave=function(e,t,i){C.handleLeave(t,e,i)||su(t,e)},i.onBeginDrag=function(e,t,i){var r,a,n;fi(e)||(r=t.ui,a=t.instance,(n=t.params).draggable&&(i=a.checkHit(i))&&a.isDraggable(e,i.data)&&(su(t,e),n.cursorControl||Q(a.view,"grab"),n=a.sm.getSelection().toArray(),r.dragInfo={data:i.data,dataList:n.includes(i.data)?n:[i.data]},C.startDragging(t,e),t.data.iv()))},i.onDrag=function(e,t,i){fi(e)||C.handleDrag(t,e,i)},i.onEndDrag=function(e,t,i){var r=this;fi(e)||(t.params.cursorControl||Q(t.instance.view,ie),C.handleDrop(t,e,i),Vi(function(){r.onMove(e,t,i)}))},t})(wo)),hu=(r=>{function e(e,t,i){e=r.call(this,e,t,i)||this,t=e;return t.clip=!0,t._innerPrefix="steps",e}_inheritsLoose(e,r);var t=e.prototype;return t.getDefaultValue=function(e){if("clipPercent"===e)return 0},t.drawImpl=function(D,e,I){var t,T,a,n,o,l,V,B,S,U,P,C,i,r,s,d,h,c,A,F,u,N,g,p,f,v,y,w,E=this;E.data&&(E.dm(I.dataModel),0!==E.dm().size())&&(t=E.dm().getRoots(),T=t.size(),a=e.x,n=e.y,o=e.width,l=e.height,g=I.gap,V=I.vertical,B=I.backLineStyle,S=I.passLineStyle,U=I.inProgressStyle,P=I.finishStyle,C=I.getStyle,i=(d=_slicedToArray(pe(I.padding),4))[0],r=d[1],s=d[2],d=d[3],h=V?l-i-s:o-d-r,t.each(function(e,t){e=E._getStyle(e,"iconStyle");h=(h-=V?e.height:e.width)-(0===t||t===T-1?e.gapToLine:2*e.gapToLine)}),h=ce(h,0),c=0{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onUp=function(e,t,i){if(!C.isDragging()){var r=t.ui;if(r.stepItems)for(var a=0;a{function v(e,t,i){e=r.call(this,e,t,i)||this,t=e;return t.drawInfo.ui.layerRoots=[],t.clip=!0,t._innerPrefix="treeMap",e}_inheritsLoose(v,r);var e=v.prototype;return e.handleDataModelChange=function(e){this.drawInfo&&this.drawInfo.ui&&(delete this.drawInfo.ui.layerDatas,delete this.drawInfo.ui.layerItems,this.drawInfo.ui.layerRoots=[])},e.drawImpl=function(e,t,i){this.data&&(this.dm(i.dataModel),0!==this.dm().size())&&(i=i.treeMapType,this._validateDataValue(),"layered"===i&&this._drawLayeredRoute(e),"nested"===i?this._drawNestedTreeMap(e):this._drawLNTreeMap(e))},e.getDefaultFomatter=function(e){return"{a}: {b}"},e.toToolTipTemplateList=function(e,t){return[e,t.data._value]},e._drawLayeredRoute=function(e){var t,i=this.data,r=this.view,a=this.params,n=this.rect,o=this.drawInfo,a=a.layeredStyle,n={x:n.x,y:n.y,width:n.width,height:a.pathHeight},o=(cn(e,n),o.ui.layerRoots.map(function(e){return e.name}));a.pathBackground&&(e.beginPath(),e.fillStyle=this.toBlendedColor(a.pathBackground),e.fillRect(n.x,n.y,n.width,n.height)),a.pathLabelColor&&(t=a.pathLabelFormatter||"{a}",a.getPathLabelFormatter&&(t=a.getPathLabelFormatter({router:o},i,r)),t=Ja(t,[o.join(" / ")]),ve(e,t=0===o.length&&a.pathPlaceholder?a.pathPlaceholder:t,n,this.toBlendedColor(a.pathLabelColor),a.pathLabelFont,le)),e.restore()},e._drawLNTreeMap=function(c){function u(e){c.fillStyle=ge(c,e,T.maskColor),c.beginPath(),c.rect(e.x,e.y,e.width,e.height),c.fill()}function o(e,t,i){function r(){var e=l===S.hoverData&&T.maskColor,t=(e&&(g=d),l.s("backgroundImage")||D.backgroundImage);t?(Y(c,t,d,l,y.view),e&&u(d),y._drawLabel(c,d,n,o)):(t=y.toBlendedColor(l.s("background")||D.background||y._getItemDefaultBackground(l)),t=V?V({data:l},w,m):t,1!==a||h||re(t)?(re(t)?c.fillStyle=ge(c,d,t):(t=Kr(t),c.fillStyle="rgba(".concat(t[0],",").concat(t[1],",").concat(t[2],",").concat(t[3]/255*a,")")),c.beginPath(),c.rect(d.x,d.y,d.width,d.height),c.fill(),e&&u(d),y._drawLabel(c,d,n,o)):(void 0===P[t]&&(P[t]=[]),P[t].push({finalItemRect:d,name:n,value:o})))}var a=3t.y,l=e.x+e.width+.5a&&((i=g.points).push.apply(i,h),g.showRightBorder=!0),s&&e.y+.5>r&&((a=g.points).push.apply(a,c),g.showBottomBorder=!0),t&&e.x-.5a.innerWidth&&(r=a.outerWidth),e.y+=(r||0)/2,e.height-=(r||0)/2),t.showBottomBorder&&(r=a.innerWidth,i&&i.showBottomBorder&&a.outerWidth>a.innerWidth&&(r=a.outerWidth),e.height-=(r||0)/2),t.showLeftBorder&&(r=a.innerWidth,i&&i.showLeftBorder&&a.outerWidth>a.innerWidth&&(r=a.outerWidth),e.x+=(r||0)/2,e.width-=(r||0)/2),t.showRightBorder&&(r=a.innerWidth,i&&i.showRightBorder&&a.outerWidth>a.innerWidth&&(r=a.outerWidth),e.width-=(r||0)/2),e},e._toLayerSquarifyDataSource=function(e){return e.sort(function(e,t){return t._value-e._value}),e.map(function(e){return{name:v.getLabel(e),value:e._value,data:e}})},e._toHierarchySquarifyDataSource=function(){var a=this,e=[],n=function(e,r){e.sort(function(e,t){return t._value-e._value}),e.forEach(function(e){var t={name:v.getLabel(e),value:e._value,data:e},i=a._getVisible(e.getChildren().toArray());0{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onUp=function(e,t,i){var r,a=this,n=t.ui,o=t.params,l=t.rect,s=n.layerItems,n=n.layerRoots,d=o.layeredStyle,o=o.treeMapType,h=t.instance;if(s)for(var c=0;c{function e(e,t,i){e=r.call(this,e,t,i)||this,e._innerPrefix="liquid",t=e;return t._transitionParams=["value"],t.drawInfo.ui.offsets=[],e}_inheritsLoose(e,r);var t=e.prototype;return t.getDefaultValue=function(e){if("value"===e)return this.rawParams.min},t.drawBorder=function(e){var t,i,r,a,n=this.params,o=n.borderStyle,o=void 0===o?{}:o,n=n.clipType,l=o.width,s=o.color;l&&s&&(t=(l=Wr(this.getCloneRect(),l/2)).x,i=l.y,r=l.width,a=l.height,e.save(),e.beginPath(),Ra(e,o),"circle"===n?(o=te(l.width,l.height),e.arc(t+r/2,i+a/2,o/2,0,2*j),a{function e(e,t){var e=o.call(this,e,2r&&(r=(n=e).length)}):e.length>r&&(r=(n=e).length)}),[n]);return o&&o!==n&&e.push(o),e},t.getFirstLabelSize=function(){return this.categoryInfos.length?this.getLabelSize(this.categoryInfos[0].formattedLabel):{width:0,height:0}},t.getLastLabelSize=function(){return this.categoryInfos.length?this.getLabelSize(this.categoryInfos[this.categoryInfos.length-1].formattedLabel):{width:0,height:0}},t.getCategories=function(){var e=this.getComputedRange();return this.categoryInfos.slice(0).slice(e[0],e[1]+1).map(function(e){return e.formattedLabel})},t.getInterval=function(){var e,t;return ae(this.interval)?this.interval:(e=this.getCategories(),t=this.getMaxLabelSize(),t=this.dimension===P?$i(t.width*e.length/this.rect.width):$i(t.height*e.length/this.rect.height),this.interval=t||1,t)},t.genTicks=function(){var e=this;if(!e.isEqualLastRange()||!e.tickInfos){var t=e.categoryInfos,i=null==(r=e.option.groupStyle)?void 0:r.group,r=t.length;if(e.tickInfos=[],e.categoryPointMap={},e.groupInfos=[],r){for(var a=e.getZoomedRange(),n=(a&&(r=a[1]-a[0]+1),e.option.boundaryMode),o={},r=n?r+1:r,l=a?a[0]+r:r,s=0,d=a?a[0]:0;da[o-1].to)r=a[o-1];else for(var l=0,s=o-1;l<=s;){var d=Math.floor((l+s)/2),h=a[d],c=h.from;if(c<=n&&n{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.parse=function(e){return zu(e).getTime()},i.niceTicks=function(e){var t=this._extent,t=t[1]-t[0],t=(this._approxInterval=t/(e=e||10),Ru.length),e=te(((e,t,i,r)=>{for(;i>>1;e[a][1]{switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}})(Tc(this._minLevelUnit))]||Xu.second)},i.toLabel=function(e){return this.getLabel({value:e})},i.getFormattedLabel=function(e,t,i){return function(e,t,i){var r=3{var t=Yu,i=0;function r(e,t,i){var r=[],a=!t.length;if(!((e,t,i,r)=>{function a(e){return Ou(c,e,r)===Ou(u,e,r)}function n(){return a("year")}function o(){return n()&&a("month")}function l(){return o()&&a("day")}function s(){return l()&&a("hour")}function d(){return s()&&a("minute")}function h(){return d()&&a("second")}var c=zu(t),u=zu(i);switch(e){case"year":return n();case"month":return o();case"day":return l();case"hour":return s();case"minute":return d();case"second":return h();case"millisecond":return h()&&a("millisecond")}})(Tc(e),T[0],T[1],V)){a&&(t=[{value:((e,t,i)=>{var r=new Date(e);switch(Tc(t)){case"year":case"month":r[Rc(i)](0);case"day":r[Mc(i)](1);case"hour":r[Xc(i)](0);case"minute":r[zc(i)](0);case"second":r[Qc(i)](0),r[Yc(i)](0)}return r.getTime()})(new Date(T[0]),e,V)},{value:T[1]}]);for(var n,o,l=0;le===Tc(e))(t[s])){r(t[s],a[a.length-1]||[],n);var h=t[s+1]?Tc(t[s+1]):null;if(d!==h){if(n.length){l=o,n.sort(function(e,t){return e.value-t.value});for(var c=[],u=0;u=T[0]&&g<=T[1]&&o++)}d=(T[1]-T[0])/I;if(1.5*d{if(!e)return[];if(!t)return Cc(e);if(e.map&&e.map===Uc)return e.map(t,i);for(var r=[],a=0,n=e.length;a=T[0]&&e.value<=T[1]&&!e.notAdd})}),function(e){return 0{function e(e,t){var e=r.call(this,e,t,2{function e(e,t,i){this.hasIconData=!1;this.chartInstance=i,this.seriesData=e,this.seriesModel=e.dm(),this.setDataModel(t),this.data=i.data,this.view=i.view,this.initOption()}var t=e.prototype;return t.getPointByValue=function(e){var t=this.chartDatas,i=this.chartDataMap,r=this.xAxis,a=this.yAxis;if(t)return i[e.getId()].point||(this.isXMainAxis()?{x:r.getValuePointByData(e),y:a.getCenterY()}:{x:r.getCenterX(),y:a.getValuePointByData(e)})},t.drawTopPainter=function(e,t){var i=this.option.topPainter;i&&i(e,{rect:t,points:this.visibleChartDatas.map(function(e){return e.point}),xAxis:this.xAxis,yAxis:this.yAxis,seriesInstance:this},this.data,this.view)},t.drawBottomPainter=function(e,t){var i=this.option.bottomPainter;i&&i(e,{rect:t,points:this.visibleChartDatas.map(function(e){return e.point}),xAxis:this.xAxis,yAxis:this.yAxis,seriesInstance:this},this.data,this.view)},t.drawMarkArea=function(d){var h=1{function e(){return i.apply(this,arguments)||this}_inheritsLoose(e,i);var t=e.prototype;return t.getDefaultOption=function(){return ju},t.getBarBoundSize=function(){var e=this.xAxis,t=this.yAxis,i=this._stackMgr,r=i.getBarCount(),i=i.getComputedCategoryPadding(),e=(this.isXMainAxis()?e:t).unitWidth;return(e=i?ce(e-2*i,1):e)/r},t.getBarSize=function(){var e=this.option.barWidth,t=this.getBarBoundSize();return e?e<1?t*e:e:te(40,.6*t)},t.buildCase=function(){var n=this;if(n.initPoints(),n.values.length){var e=n._stackMgr,o=n.xAxis,l=n.yAxis,t=(n.values,n.chartDatas,n.option),i=t.waterfallStyle,s=void 0===i?{}:i,i=t.barStyle,t=t.barOffset,d=void 0===t?0:t,h=i.getBackground,c=i.fitColors,r=e.getBarIndex(n),a=e.stackBarSizeList,u=n.getBarBoundSize(),t=e.categoryBoundSize,g=e.getComputedBarGap(),p=n.getBarSize(),f=-t/2,v=n.getInitTransitionValue();if(ae(g))for(var y=0;y{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.getDefaultOption=function(){return _u},i.initPoints=function(){var l=this,s=l.xAxis,d=l.yAxis,h=l.mainAxis,e=l.chartDatas,c=1!==l.getInitTransitionValue(),u=l.visibleChartDatas=[];e.forEach(function(e,t){var i,r,a=e.index,n=e.mainDimValue,o=e.value,n=h instanceof Au?a:n;h.inRange(n)&&(n=isNaN(o)||Z(o)?null:(l.isXMainAxis()?(i=s.getValuePointByIndex(a),r=d.getValuePoint(o)):(r=d.getValuePointByIndex(a),i=s.getValuePoint(o)),{x:i,y:r}),o=l.getValueDataByIndex(a),c?l.chartInstance.setTransitionToValue("case".concat(l.seriesData.getId(),"_data").concat(o.getId()),n):n=l.getUpdateTransitionValue(o,n),e.point=n,u.push(e))})},i.drawSecondImpl=function(e,t){this.drawPoints(e,t)},i.buildCase=function(){this.initPoints()},i.pointToRect=function(e,t){return{x:e.x-t/2,y:e.y-t/2,width:t,height:t}},i.drawPoints=function(o,l){var i=this,s=this,d=s.seriesData,e=s.visibleChartDatas,t=s.option,h=s.values,c=s.data,u=s.view,e=e.map(function(e){return e.point}),t=t.scatterStyle,t=void 0===t?{}:t,r=t.size,a=void 0===r?5:r,n=t.maxSize,g=t.background,p=t.borderWidth,f=t.borderColor,v=t.fitColors,y=t.getSize,w=t.getBackground,m=t.getBorderColor,x=t.draw,r=s.getSeriesColor(),f=f||r,g=g||r,b=s.scatterInfos=[],D=a;e.forEach(function(e,t){var i;e?(i=s.getValueDataByIndex(t),y?D=y({value:h[t],index:t,seriesData:d,valueData:i,valueList:s.values},c,u):n&&(D=s.getSizeByValues(h[t],a,n)),b.push({point:e,size:D,data:i,index:t})):s.scatterInfos.push(null)}),v||re(g)||x||m||w?b.forEach(function(e){var i,r,a,n;e&&(i=e.point,r=e.data,a=e.index,n=e.size*s.getInitTransitionValue(),e=function(){var e,t=s.pointToRect(i,n);o.beginPath(),Qa(o,i,n,n,"circle"),e=w?w({value:h[a],index:a,seriesData:d,valueData:r,valueList:s.values},c,u):v?s._colorPalette[a%s._colorPalette.length]:g,o.fillStyle=ge(o,t,s.toBlendedColor(e)),o.fill(),p&&(o.lineWidth=p,o.strokeStyle=m?m({value:h[a],index:a,seriesData:d,valueData:r,valueList:s.values},c,u):ge(o,l,s.toBlendedColor(f)),o.stroke())},x?x(o,{value:h[a],index:a,seriesData:d,valueData:r,size:n,point:i,valueList:h,isDataHovering:s.chartInstance.isDataHovering(r),isSeriesHovering:s.chartInstance.isCaseHovering(s),defaultDraw:e},s.data,s.view):e())}):(o.beginPath(),b.forEach(function(e){var t;e&&(t=e.size*i.getInitTransitionValue(),Qa(o,e.point,t,t,"circle"))}),g&&(o.fillStyle=s.toBlendedColor(g),o.fill()),p&&(o.lineWidth=p,o.strokeStyle=s.toBlendedColor(f),o.stroke()))},i.getSizeByValues=function(e,t,i){var r,a=_slicedToArray(this.deputyAxis.dataRange||this.deputyAxis.getComputedRange(),2),n=a[0];return i{function K(){return t.apply(this,arguments)||this}_inheritsLoose(K,t);var e=K.prototype;return e.getDefaultOption=function(){return ig},e.buildCase=function(){var e=this,t=e.option,i=e.xAxis,r=e.yAxis,a=t.smooth,n=t.connectNulls,n=void 0===n||n,t=t.step;!e.chartInstance.transition.has("case".concat(e.seriesData.getId(),"_"),!0)&&e.finalPointsSegments&&!e.chartInstance.valueDirty&&i.isEqualLast()&&r.isEqualLast()||(delete e.pathProxy,delete e.cachedPaths,e.initPoints(),e.finalPointsSegments=t?e.toStepPointsAndSegments(e.visibleChartDatas,n,t):e.toPointsAndSegments(e.visibleChartDatas,n,a))},e.initPoints=function(){var e,t,r=this,a=this,i=(a.initChartDatasMainDim(),a.mainAxis),n=a.getRawValues(),o=a.visibleChartDatas=[],l=a.option.sampling,s=a.chartDatas,d=[],h=(s.forEach(function(e){var t=e.index;i instanceof Gu&&Z(e.mainDimValue)||(t=i instanceof Au?t:e.mainDimValue,i.inRange(t)&&d.push(e))}),ae(l)&&((s=a.option.samplingThreshold)||(e=i.dimension===P?i.getRect().width:i.getRect().height,t=Jr(a.view),s=_i(e*t)),d.forEach(function(e,t){var i=e.index,r=e.value,r=!re(r)&&(isNaN(r)||Z(r)||Z(n[i]))?null:a.getPointByChartData(e);e.point=r}),d=d.filter(function(e){return!!e.point}),d="lttb"===l?((e,t)=>{var i=e.slice(0),r=i.length;if(r{for(;++e{function e(){this.list=[],this.valuesMap={},this.casesMap={}}var t=e.prototype;return t.init=function(){this.caluStackBarSizeList(),this.caluCategoryBoundSize()},t.append=function(e,t,i){var r=this.list,a=this.valuesMap,n=this.casesMap,o=!0,l=(a[e]||(r.push(e),a[e]=t?t.map(function(){return 0}):null,o=!(n[e]=[])),a[e]);return t&&(a[e]=t.map(function(e,t){return(l[t]||0)+(si(e)?e:0)})),n[e].push(i),o?l:null},t.getStackValues=function(e){return this.valuesMap[e]},t.getStackIndex=function(e){var t=this.list,i=t.indexOf(e);return i<0?(e=e||Mt(),t.push(e),t.length-1):i},t.hasStack=function(e){return this.valuesMap[e]},t.getChartCaseStackIndex=function(e){var t=e.getOption("stack");return t?this.casesMap[t].indexOf(e):-1},t.getPreOne=function(e){var t=e.getOption("stack");return t&&0<(e=(t=this.casesMap[t]).indexOf(e))?t[e-1]:null},t.size=function(){return this.list.length},t.getBarCount=function(){var e=this.list,a=this.casesMap,n=0;return e&&e.forEach(function(e,t){for(var i=a[e],r=0;r{function e(e,t){var e=r.call(this,e,2{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.getStack=function(){return sg},i.initPoints=function(){var l=this,s=l.xAxis,d=l.yAxis,h=l.mainAxis,c=l.chartDatas,u=l._stackMgr.valuesMap[sg],g=l.visibleChartDatas=[];c.forEach(function(e,t){var i,r,a=e.index,n=e.mainDimValue,o=e.value,n=h instanceof Au?a:n;h.inRange(n)&&(n=isNaN(o)||Z(o)?null:(l.isXMainAxis()?(i=s.getValuePointByIndex(a),r=d.getValuePoint(o/u[a])):(r=d.getValuePointByIndex(a),i=s.getValuePoint(o/u[a])),{x:i,y:r}),e.point=l.getUpdateTransitionValue(c[a].data,n),g.push(e))})},i.buildCase=function(){var a=this;if(a.initPoints(),a.values.length){var e=a._stackMgr,n=a.xAxis,o=a.yAxis,t=(a.values,a.visibleChartDatas),i=a.option,i=(i.waterfallStyle,i.barStyle),l=i.getBackground,s=i.fitColors,r=e.getBarIndex(a),d=e.stackBarSizeList,h=a.getBarBoundSize(),i=e.categoryBoundSize,c=e.getComputedBarGap(),u=a.getBarSize(),g=-i/2,p=a.getInitTransitionValue();if(ae(c))for(var f=0;f{function e(){var e=t.apply(this,arguments)||this;return e._innerPrefix="chartLegend",e}_inheritsLoose(e,t);var i=e.prototype;return i.isVisible=function(e){return!1!==e.s(J)},i.getLabelColor=function(e){var t=this.params,i=t.invisibleStyle,i=void 0===i?{}:i,r=t.hoverStyle,r=void 0===r?{}:r,t=t.labelStyle,a=this.drawInfo.ui.hoverData,t=(void 0===t?{}:t).color;return a===e&&r.labelColor?t=r.labelColor:this.isVisible(e)||(t=i.labelColor),t?this.toBlendedColor(t):this.getDataColor(e)},i.getDataColor=function(e){var t=this.params.colors,i=this.dm(),r=e.s("type");if("bar"===r||"scatter"===r){r="bar"===r?e.s("barStyle"):e.s("scatterStyle");if(r&&r.background)return r.background}else{r=e.s("lineStyle");if(r&&r.color)return r.color;if(e.s("color"))return e.s("color")}var a=[],r=(i.eachByHierarchical(function(e){return a.push(e)}),a.indexOf(e));return this.toBlendedColor(t[r%t.length])},i.drawIcon=function(e,t,i){function r(){u?Y(e,u,i,o.toDrawData(t.data),a.view,g?Gr(c):ie):(e.beginPath(),ye(e,i,h.cornerRadius),e.fillStyle=ge(e,i,c),e.fill())}var a=this,n=a.params,o=a.drawInfo,l=t.data,s=a.isVisible(l),d=n.iconStyle,h=void 0===d?{}:d,d=n.invisibleStyle,n=void 0===d?{}:d,d=h.draw,c=s?a.getDataColor(l):n.iconColor,u=l.getIcon()||l.s(F)||h.icon,g=!1!==h.iconBlend;u||!a.data.a("axisChart")||(s=l.s("type"))&&"line"!==s||(u=Er("lineLegend"),g=!0);d?d(e,ue(a.toCustomDrawParams(t),{defaultDraw:r,color:c,rect:i}),o.toDrawData(t.data),a.view):r()},i.toCustomDrawParams=function(e){var t=e.data;return{visible:this.isVisible(t),isHovering:this.drawInfo.ui.hoverData===t,params:this.params,data:t,index:e.index,hoverOnIcon:this.drawInfo.ui.hoverOnIcon}},i.calcuSize=function(e){var t=this.params,i=_slicedToArray(pe(t.padding),4),r=i[0],a=i[1],n=i[2],i=i[3];this.dm(t.dataModel),this.rect=e,this.buildItems();t=Fn(this.drawInfo.ui.itemUIs.map(function(e){return e.rect}));return{width:i+a+(t?t.width:0),height:r+n+(t?t.height:0)}},e})(Hh),ug=function(e,t){var i;return tg||((i=new ht.Node).setImage(Ur("chartLegend")),tg=new cg(null,i,null)),tg.params=e,tg.calcuSize(t)};function gg(e,t,i,r,a){var n,o,l=a.view,s=a.params.legendStyle,s=void 0===s?{}:s,d=s.visible,h=s.size,h=void 0===h?24:h,c=s.orientation,c=void 0===c?ne:c,u=s.autoSize;return d&&(h||u)?(d=ue({dataModel:i,colors:r,align:be,vAlgin:se,hGap:20,vGap:5,padding:[2],boxDirection:"left-top"},s),u&&(r=ug(d,t),h=ne===c||me===c?r.height:r.width),s=t.x,u=t.y,r=t.width,o=t.height,c=c===oe?(n={x:s,y:u,width:r-(h=te(r,h)),height:o},{x:s+r-h,y:u,width:h,height:o}):c===me?(n={x:s,y:u,width:r,height:o-(h=te(o,h))},{x:s,y:u+o-h,width:r,height:h}):c===le?(n={x:s+(h=te(r,h)),y:u,width:r-h,height:o},{x:s,y:u,width:h,height:o}):(n={x:s,y:u+(h=te(o,h)),width:r,height:o-h},{x:s,y:u,width:r,height:h}),i.size()&&((o=(o=a[hg])||(a[hg]=new ht.Data)).a(d),"chart"===a._innerPrefix&&o.a("axisChart",!0),o.iv=function(){a.iv()},Y(e,Ur("chartLegend"),c,a.drawInfo.toDrawData(o),l)),n):t}var hc=i(cg,["valueOption","colors","invisibleStyle"].concat(Qh)),pg=he(Wu),fg=(xa(pg,{type:"histogram"}),(e=>{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.getDefaultOption=function(){return pg},i.buildCase=function(){var n,o,e,l,s,d,h,c,u=this;u.initPoints(),u.values.length?(n=u.xAxis,o=u.yAxis,e=u.option.histogramStyle,l=(e=void 0===e?{}:e).getBackground,s=e.fitColors,d=u.getSeriesColor(),u.isXMainAxis()?(h=o.getZeroPoint(),u.barInfos=u.visibleChartDatas.map(function(e){var t,i=e.point,r=e.index,a=e.mainDimValue,e={value:e.value,point:i,data:e.data};return re(a)&&(t=(a=_slicedToArray(a,2))[0],a=a[1],t=n.getValuePoint(t),a=n.getValuePoint(a),e.rect=Ti([i,{x:t,y:h},{x:a,y:h}])),s&&(d=u._colorPalette[r%u._colorPalette.length]),e.color=l?l({value:e.value,index:r,seriesData:u.seriesData,valueData:e.data,valueList:u.values,hover:u.chartInstance.isDataHovering(e.data)},u.data,u.view):d,e})):(c=n.getZeroPoint(),u.barInfos=u.visibleChartDatas.map(function(e){var t,i=e.point,r=e.index,a=e.mainDimValue,e={value:e.value,point:i,data:e.data};return re(a)&&(t=(a=_slicedToArray(a,2))[0],a=a[1],t=o.getValuePoint(t),a=o.getValuePoint(a),e.rect=Ti([i,{x:c,y:t},{x:c,y:a}])),s&&(d=u._colorPalette[r%u._colorPalette.length]),e.color=l?l({value:e.value,index:r,seriesData:u.seriesData,valueData:e.data,valueList:u.values,hover:u.chartInstance.isDataHovering(e.data)},u.data,u.view):d,e}))):u.barInfos=[]},i.drawSecondImpl=function(e,t){this.drawBar(e,t)},i.drawBar=function(t,i){var e=this.option,e=(this.xAxis,this.yAxis,e.histogramStyle),e=void 0===e?{}:e,r=e.getBackground,a=e.fitColors,e=e.borderStyle,n=void 0===e?{}:e,e=this.getSeriesColor();t.save(),Ra(t,n),r||a||re(e)?this.barInfos.forEach(function(e){e.rect&&(t.beginPath(),ye(t,e.rect,n.cornerRadius),e.color&&(t.fillStyle=ge(t,i,e.color),t.fill()),n.color)&&n.width&&(t.strokeStyle=ge(t,i,n.color),t.stroke())}):(t.beginPath(),this.barInfos.forEach(function(e){e.rect&&ye(t,e.rect,n.cornerRadius)}),t.fillStyle=e,t.fill(),n.width&&n.color&&t.stroke()),t.restore()},i.getPointByChartData=function(e,t){var i,r,a=this.xAxis,n=this.yAxis,o=e.value,e=e.mainDimValue,t=ae(t)?t:o;return re(e)?(e=(o=_slicedToArray(e,2))[0],o=o[1],this.isXMainAxis()?(i=n.getValuePoint(t),r=(n=a.getValuePoint(e))+(a.getValuePoint(o)-n)/2):(r=a.getValuePoint(t),i=(n=a.getValuePoint(e))+(a.getValuePoint(o)-n)/2),{x:r,y:i}):ie},i.checkHit=function(e){return Zu.prototype.checkHit.call(this,e)},i.drawLabel=function(e,t){Zu.prototype.drawLabel.call(this,e,t)},t})(Ju)),vg=he(Wu),yg=(xa(vg,{type:"candlestick",candlestickStyle:{width:8,lineStyle:{width:2}}}),(e=>{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.getDefaultOption=function(){return vg},i.buildCase=function(){var l=this,s=(l.initPoints(),l.xAxis),d=l.yAxis,e=l.option.candlestickStyle,e=void 0===e?{}:e,h=e.negativeColor,e=e.width,c=void 0===e?8:e,u=l.getSeriesColor();l.candInfos=l.visibleChartDatas.map(function(e){e.point;var t,i,r,a,n=e.index,o=e.value,e={data:e.data};return re(o)&&4<=o.length&&(e.value=o,l.isXMainAxis()?(i=s.getValuePointByIndex(n),e.p1={x:i,y:d.getValuePoint(o[0])},e.p2={x:i,y:d.getValuePoint(o[1])},t={x:i,y:d.getValuePoint(o[2])},i={x:i,y:d.getValuePoint(o[3])},r=he(t),a=he(i),r.x-=c/2,a.x+=c/2,e.rect=Ti([t,i,r,a])):(t=d.getValuePointByIndex(n),e.p1={x:s.getValuePoint(o[0]),y:t},e.p2={x:s.getValuePoint(o[1]),y:t},i={x:s.getValuePoint(o[2]),y:t},r={x:s.getValuePoint(o[3]),y:t},a=he(i),n=he(r),a.y-=c/2,n.y+=c/2,e.rect=Ti([i,r,a,n])),e.color=h&&o[3]{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.getDefaultOption=function(){return wg},i.buildCase=function(){var u=this,g=(u.initPoints(),u.xAxis),p=u.yAxis,e=u.option.boxplotStyle,e=void 0===e?{}:e,t=e.width,f=void 0===t?8:t,v=e.fitColors,y=u.getSeriesColor();u.boxInfos=u.visibleChartDatas.map(function(e){var t,i,r,a,n,o,l,s,d,h=e.index,c=e.value,e={data:e.data};return re(c)&&5<=c.length&&(d=(c=_slicedToArray(e.value=c,6))[0],t=c[1],i=c[2],r=c[3],a=c[4],c=c[5],u.isXMainAxis()?(o=g.getValuePointByIndex(h),e.pmin={x:o,y:p.getValuePoint(d)},e.pmax={x:o,y:p.getValuePoint(a)},n=e.pq1={x:o,y:p.getValuePoint(t)},o=e.pq3={x:o,y:p.getValuePoint(r)},l=he(n),s=he(o),l.x-=f/2,s.x+=f/2,e.rect=Ti([n,o,l,s]),e.bound=Ti([n,o,l,s,e.pmin,e.pmax]),e.median=p.getValuePoint(i),ae(c)&&(e.mean=p.getValuePoint(c))):(n=p.getValuePointByIndex(h),e.pmin={x:g.getValuePoint(d),y:n},e.pmax={x:g.getValuePoint(a),y:n},o=e.pq1={x:g.getValuePoint(t),y:n},l=e.pq3={x:g.getValuePoint(r),y:n},s=he(o),d=he(l),s.y-=f/2,d.y+=f/2,e.rect=Ti([o,l,s,d]),e.bound=Ti([o,l,s,d,e.pmin,e.pmax]),e.median=g.getValuePoint(i),ae(c)&&(e.mean=g.getValuePoint(c))),v&&(y=u._colorPalette[h%u._colorPalette.length]),e.color=y),e})},i.drawSecondImpl=function(p,e){var f,v,y=this,t=y.boxInfos,t=void 0===t?[]:t,i=y.option.boxplotStyle,w=i.upperBackground,m=i.lowerBackground,x=i.borderStyle,r=i.medianLineStyle,a=i.meanLineStyle,n=i.width,b=.5*i.endLineLength,D=y.isXMainAxis(),I=y.deputyAxis.option.reverse,T=ue({},x,r),V=ue({},x,a),B=.5*n,w=w&&y.toBlendedColor(w),m=m&&y.toBlendedColor(m);t.forEach(function(r){var a,e,t,i,n,o,l,s,d,h,c,u,g;r.rect&&(a=r.pmin,e=r.pmax,t=r.pq1,i=r.pq3,n=r.median,o=r.mean,l=(h=r.rect).x,s=h.y,d=h.width,h=h.height,(w||m)&&(u=D?(u={x:l,y:s,width:d,height:n-s},g={x:l,y:n,width:d,height:h-(n-s)},I?(c=u,g):(c=g,u)):(u={x:l,y:s,width:n-l,height:h},g={x:n,y:s,width:d-(n-l),height:h},I?(c=g,u):(c=u,g)),m&&ua(p,c,m),w)&&ua(p,u,w),p.beginPath(),p.rect(l,s,d,h),p.moveTo(a.x,a.y),p.lineTo(t.x,t.y),p.moveTo(i.x,i.y),p.lineTo(e.x,e.y),D?(p.moveTo(a.x-b,a.y),p.lineTo(a.x+b,a.y),p.moveTo(e.x-b,e.y),p.lineTo(e.x+b,e.y)):(p.moveTo(a.x,a.y-b),p.lineTo(a.x,a.y+b),p.moveTo(e.x,e.y-b),p.lineTo(e.x,e.y+b)),(f=!!x.pattern)&&p.save(),v=y.toBlendedColor(x.color||r.color),re(v)&&(v=ge(p,r.bound,v)),Ra(p,x,v),p.stroke(),f&&p.restore(),[[n,T],[o,V]].forEach(function(e){var t,e=_slicedToArray(e,2),i=e[0],e=e[1];ae(i)&&(p.beginPath(),D?(p.moveTo(a.x-B,i),p.lineTo(a.x+B,i)):(p.moveTo(i,a.y-B),p.lineTo(i,a.y+B)),(f=!!e.pattern)&&p.save(),v=y.toBlendedColor(e.color||r.color),re(v)&&(t=.5*e.width,i=D?[{x:a.x-B,y:i-t},{x:a.x+B,y:i+t}]:[{x:i-t,y:a.y-B},{x:i+t,y:a.y+B}],t=Ti(i),v=ge(p,t,v)),Ra(p,e,v),p.stroke(),f)&&p.restore()}))})},i.checkHit=function(e){for(var t=this.boxInfos,i=t.length,r=0;r{function e(){var e=r.apply(this,arguments)||this;return e._xAxisList=[],e._yAxisList=[],e._innerPrefix="chart",e}_inheritsLoose(e,r);var t=e.prototype;return t._createAxis=function(e,r,a,t){var n,o,l,i=this,s=e.type,d=i.dm(),h=null!=(h=e.name)?h:cc.name;return i.valueDirty||!t||xi(t.rawOption)===xi(e)&&t.isEqualLast()||(i.valueDirty=!0),i.valueDirty||!t||e.type!==t.option.type||h!==t.option.name?(n=new(vc===s||!s&&r===P?Au:"time"===s?Gu:"log"===s?lg:qc)(i,e,r,a),o=r===i.mainDimension,l=!1,i._visibleCases.forEach(function(e){var t=e.seriesData,i=r===P?e.getOption("xAxisIndex"):e.getOption("yAxisIndex");a===i&&(o?n.appendData(d,t):n.appendData(d,t,e.values),r===P?e.setXAxis(n):e.setYAxis(n),l=!0)}),!l&&o&&i.getSeriesModel().eachByHierarchical(function(e){var t=(r===P?e.s("xAxisIndex"):e.s("yAxisIndex"))||0;a===t&&n.appendData(d,e)}),t&&e.type!==t.option.type&&(i.valueDirty=!0)):(n=t).setOption(e),n},t._buildXAxis=function(e){var i=this;i._xAxisList=e.map(function(){var e=0{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onLeave=function(e,t,i){xo.isCompScrollable(t)&&xo.popScrollTarget();t.params;var r,a=t.ui,n=t.data,t=t.instance;t.hideToolTip(),(a.hoverAxisUI||a.hoverCase)&&(r=a.hoverAxisUI&&a.hoverAxisUI.data,delete a.hoverAxisUI,delete a.hoverCase,n.iv(),r)&&t.fireEvent({kind:xg.EVENT_LEAVE_DATA,valueData:r,nativeEvent:e}),a.hoverItemInfo&&(t.fireEvent({kind:xg.EVENT_LEAVE_ITEM,seriesData:a.hoverItemInfo.case.seriesData,valueData:a.hoverItemInfo.data,nativeEvent:e}),delete a.hoverItemInfo)},i.onMove=function(e,t,i){Dg(e,t,i),x.hide()},i.onHover=function(e,t,i){t.instance.handleHover(e,i)},i.onUp=function(e,t,i){var r=t.instance,a=r.checkHit(i),n=(a&&(r.fireEvent({kind:xg.EVENT_CLICK_SERIES,seriesData:a.case.seriesData,nativeEvent:e}),a.data)&&r.fireEvent({kind:xg.EVENT_CLICK_ITEM,seriesData:a.case.seriesData,valueData:a.data,nativeEvent:e}),r.checkHitMainAxis(i));n&&(n={kind:xg.EVENT_CLICK_DATA,valueData:n.data,nativeEvent:e,hitAxisLabel:!!n.hitLabel,part:n.hitPart},a&&(n.seriesData=a.case.seriesData),r.fireEvent(n)),ui(e)&&Dg(e,t,i,!1)},i.onDoubleClick=function(e,t,i){t=t.instance;de(t.bodyRect,i)&&t.resetRange()},i.onBeginDrag=function(e,t,i){var r,a=t.instance;a.canZoom()&&de(a.bodyRect,i)&&(delete(r=t.ui).hoverAxisUI,delete r.hoverPoint,a.hideToolTip(),r.rectSelectInfo={fromPoint:i},C.startDragging(t,e))},i.onDrag=function(e,t,i){var r=t.instance;t.ui.rectSelectInfo&&(t.ui.rectSelectInfo.toPoint=Xa(r.bodyRect,i,0),t.data.iv(),C.handleDrag(t,e,i))},i.onEndDrag=function(e,t,i){var r=t.instance,a=t.data,n=t.ui;t.ui.rectSelectInfo&&(C.endDragging(),r.handleRectSelect(),delete n.rectSelectInfo,a.iv(),Dg(e,t,i))},i.onScroll=function(e,t,i){t.instance.handleScroll(e,i)},t})(wo));function Tg(e){return e.getDisplayName()||e.getName()||""}function Vg(b,D,I,L,e){var T,V,B=4{if(i<=180&&0{var u=d.length;if(!(u<2)){d.sort(function(e,t){return e.rect[h]-t.rect[h]});for(var r,a=0,n=!1,o=0,l=0;ls?b:x,(v=G(p.label.y-s))>f.maxY&&(w=p.label.x-l-p.len2*h,y=d+p.len,w=G(w){function V(e,t,i){e=r.call(this,e,t,i)||this,t=e;return t.clip=!0,t._innerPrefix="pie",e}_inheritsLoose(V,r);var e=V.prototype;return e.handleMD=function(e,t,i){"s:visible"!==e.property||e.newValue||this.removeTransition("angle"+e.data.getId())},e.getDefaultValue=function(e){if(this._currentDrawData){var t=this.params,i=this.drawInfo,r=this._currentDrawData,a=r._drawing_,r=r.getId(),t=t.initTransitionType,i=i.ui.convertParams.startAngle;if(e==="r"+r)return a.layout.r;if(e==="angle"+r)return 0;if(e==="startAngle"+r){if("expandFromArcStartAngle"===t)return a.layout.startAngle;if("expandFromPieStartAngle"===t)return-i}return e==="labelLineClip"+r||e==="rOver"+r?0:e==="blurOpacity"+r?1:void 0}},e.drawImpl=function(i,e,t){var r,a,n,o,l,s,d,h,c,u,g=this;e=gg(i,e,t.dataModel,t.colors,g),g.data&&(t.dataModel!==g.dm()&&g.clearTransition(),g.dm(t.dataModel),g._drawBackImage(i,e,0===g.dm().size()),0===g.dm().size()?g.drawEmpty(i,g.rect):(r=t.showZero,a=t.hoverStyle,u=t.showRing,c=t.ringBackground,t=t.draw,g.drawInfo.ui.convertParams=g._getConvertParams(e),n=g.dm().getRoots(),o=[],n.each(function(e){void 0===e._drawing_&&(e._drawing_={}),g._isVisible(e)&&(r||0!==g._getValue(e))?o.push(e):(e._drawing_.value=0,e._drawing_.percent=0,g.removeTransition("angle"+e.getId()))}),l=o.reduce(function(e,t){return e+g._getValue(t)},0),s=0,o.forEach(function(e,t){var i=e._drawing_;i.value=g._getValue(e),i.percent=0===l?0:t===o.length-1?1-s:i.value/l,s+=i.percent}),Lg(g),Vg(g,"innerLabelStyle","innerLabelLayoutUI"),Vg(g,"outerLabelStyle","outerLabelLayoutUI"),u&&c&&(u=(e=g.drawInfo.ui.convertParams).radius,e=e.center,i.save(),i.beginPath(),i.arc(e.x,e.y,u.innerRadius,0,Se,!0),i.arc(e.x,e.y,u.outerRadius,Se,0,!1),i.fillStyle=g.toBlendedColor(c),i.fill(),i.restore()),d=g.drawInfo.ui.hoverNode&&!!a.focusable,h=i.globalAlpha,i.save(),o.forEach(function(e){d&&e===g.drawInfo.ui.hoverNode||(g._currentDrawData=e,i.globalAlpha=h*g.getTransitionValue("blurOpacity"+e.getId(),d?a.blurOpacity:1),g._drawArc(i,e,n.indexOf(e)))}),o.forEach(function(e){var t;d&&e===g.drawInfo.ui.hoverNode||(g._currentDrawData=e,i.globalAlpha=h*g.getTransitionValue("blurOpacity"+e.getId(),d?a.blurOpacity:1),t=n.indexOf(e),g._drawInnerLabel(i,e,t),g._drawOuterLabelAndLine(i,e,t))}),i.restore(),d&&(i.save(),e=g.drawInfo.ui.hoverNode,g._currentDrawData=e,u=g.getTransitionValue("blurOpacity"+e.getId(),1),i.globalAlpha=h*u,c=n.indexOf(e),u=g._getStyle(e,"innerLabelStyle"),g._getStyle(e,"outerLabelStyle").visible&&g._drawOuterLabelAndLine(i,e,c),g._drawArc(i,e,c),u.visible&&g._drawInnerLabel(i,e,c),i.restore()),e=(u=g.drawInfo.ui.convertParams).center,t&&t(i,{center:e,radius:u.radius,startAngle:u.startAngle,totalAngle:u.totalAngle},g.data,g.view)))},e.getDefaultFomatter=function(e){return"{a}: {b}"},e.toToolTipTemplateList=function(e,t){return[e,t.value,t.percent]},e._drawBackImage=function(e,t,i){var r,a,n,o,l,s=this.params,d=this.data,h=this.view,c=s.centerX,u=s.centerY,s=s.backImageStyle;s&&(r=s.icon,a=s.width,n=s.height,o=s.offsetX,l=s.offsetY,s=s.isEmptyVisible,i&&!s||Y(e,r,{x:t.x+Ea(c,t.width)-a/2+o,y:t.y+Ea(u,t.height)-n/2+l,width:a,height:n},d,h))},e._drawSplitBorderImage=function(e,t,i,r,a,n,o){var l=t.cx,s=t.cy,d=t.r,t=t.r0,o=(d-=n/2,o&&(t+=n/2),{x:l+t*Math.cos(i),y:s+t*Math.sin(i)}),n={x:l+d*Math.cos(i),y:s+d*Math.sin(i)},t=new O(n).sub(new O(o)),l=t.angle(),s=t.length();e.save(),e.translate((o.x+n.x)/2,(o.y+n.y)/2),e.rotate(l-Math.PI/2),Y(e,r,{x:-a/2,y:-s/2,width:a,height:s}),e.restore()},e._drawArc=function(e,t,i){var r,a=this,n=a.params,o=n.clockwise,l=n.colors,s=n.borderColors,d=n.hoverStyle,n=n.selectStyle,h=t._drawing_,c=h.layout,u=a._getStyle(t,"itemStyle"),g=u.draw,p=u.gradientFromCenter,f=u.color,v=u.innerCornerRadius,y=u.outerCornerRadius,w=u.innerBorderVisible,m=u.splitBorderImage,x=u.splitBorderImageWidth,b=u.borderWidth,D=u.borderPattern,I=u.borderDashOffset,T=u.borderCap,V=u.borderJoin,B=u.borderColor,S=u.shadowBlur,U=u.shadowColor,P=u.shadowOffsetX,u=u.shadowOffsetY,C=(a._currentDrawData=t,a.getTransitionValue("r"+t.getId(),t._drawing_.layout.r)),A=a.getTransitionValue("startAngle"+t.getId(),t._drawing_.layout.startAngle),F=Math.abs(a.getTransitionValue("angle"+t.getId(),t._drawing_.layout.angle)),n=a.getTransitionValue("rOver"+t.getId(),a.sm.co(t)?n.scaleSize:a.drawInfo.ui.hoverNode===t?d.scaleSize:0),d=ue({innerCornerRadius:v,outerCornerRadius:y},c,{angle:F,startAngle:A,endAngle:A+(o?F:-F),r:C+n}),v=h.arcPathProxy,y=((v=void 0===v?h.arcPathProxy=new Ws:v).setContext(e),e.save(),0=e.x?{x:t.x-i/2,y:t.y-i/2,width:(t.width+i)*r,height:t.height+i}:t.x{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onUp=function(e,t,i){var r,a,n,o=qg(t,i);if(o&&t.instance.fireEvent({kind:Yg.EVENT_CLICK_DATA,data:o.pieData,value:o.pieData._drawing_.value,percent:o.pieData._drawing_.percent}),"single"!==t.params.selectMode&&"multiple"!==t.params.selectMode||(o=i,a=(r=t).instance,n=r.params,a=a.dm().sm(),(r=qg(r,o))&&(o=r.pieData,"single"!==n.selectMode||a.co(o)||a.ss(o),"multiple"===n.selectMode)&&(a.co(o)?a.rs(o):a.as(o))),ui(e))return Og(e,t,i)},i.onMove=function(e,t,i){return!!ui(e)||Og(e,t,i)},i.onLeave=function(e,t,i){var r,a=t.ui,n=t.params;a.active&&((r=a.hoverNode)&&t.instance.fireEvent({kind:Yg.EVENT_LEAVE_DATA,data:r,value:r._drawing_.value,percent:r._drawing_.percent}),delete a.hoverNode,delete a.active,n.cursorControl||Q(t.instance.view,null),x.hide())},t})(wo)),Gg=function(e,t){var i=t.x1,r=t.x2,a=t.y2,n=t.cpx1,o=t.cpy1,l=t.cpx2,s=t.cpy2;e.moveTo(i,t.y1),null==l||null==s?e.quadraticCurveTo(n,o,r,a):e.bezierCurveTo(n,o,l,s,r,a)},Wg=function(e,t){var i=t.childPoints,r=i.length,a=t.parentPoint,n=i[0],o=i[r-1];if(1===r)e.moveTo(n[0],n[1]),e.lineTo(a[0],a[1]);else{var l,s=t.orient,d="TB"===s||"BT"===s?0:1,h=1-d,c=t.forkPosition,u=[],h=(u[d]=a[d],u[h]=a[h]+(o[h]-a[h])*c,u[d]);e.moveTo(u[0],u[1]),e.lineTo(a[0],a[1]),e.moveTo(n[0],n[1]),u[d]=n[d],t.forkCornerRadius?(c=e,a=u,n=s,l=t.forkCornerRadius,"LR"===n&&c.arc(a[0]+l,a[1]+l,l,-.5*H,-H,!0),"RL"===n&&c.arc(a[0]-l,a[1]+l,l,-.5*H,0,!1),"TB"===n&&c.arc(a[0]+l,a[1]+l,l,-H,-.5*H,!1),"BT"===n&&c.arc(a[0]+l,a[1]-l,l,-H,-1.5*H,!0)):e.lineTo(u[0],u[1]),u[d]=h,e.lineTo(u[0],u[1]),e.moveTo(o[0],o[1]),u[d]=o[d],t.forkCornerRadius?(n=e,c=u,a=s,l=t.forkCornerRadius,"LR"===a&&n.arc(c[0]+l,c[1]-l,l,-1.5*H,-H,!1),"RL"===a&&n.arc(c[0]-l,c[1]-l,l,-1.5*H,0,!0),"TB"===a&&n.arc(c[0]-l,c[1]+l,l,0,-.5*H,!0),"BT"===a&&n.arc(c[0]-l,c[1]-l,l,0,-1.5*H,!1)):e.lineTo(u[0],u[1]),u[d]=h,e.lineTo(u[0],u[1]);for(var g=1;g{if(t){for(var a=e,n=e,o=n._treeLayout_.parent._treeLayout_.children[0],l=t,s=a._treeLayout_.hierNode.modifier,d=n._treeLayout_.hierNode.modifier,h=o._treeLayout_.hierNode.modifier,c=l._treeLayout_.hierNode.modifier;l=$g(l),n=ep(n),l&&n;){a=$g(a),o=ep(o),a._treeLayout_.hierNode.ancestor=e;var u=l._treeLayout_.hierNode.prelim+c-n._treeLayout_.hierNode.prelim-d+r(l,n);0{for(var t=0;e=e._treeLayout_.parent;)t++;return t})(e);if(e._treeLayout_.depth=t,void 0===e._treeLayout_.isExpand&&(e._treeLayout_.isExpand=t<=ce(n,0)),e._treeLayout_.isLeaves=!e._treeLayout_.isExpand||0===e._treeLayout_.children.length,e._treeLayout_.dynamicLayout=o,e._treeLayout_.height=-1/0,0===e._treeLayout_.children.length){var i=e,r=1;for(i._treeLayout_.height=1;i=i._treeLayout_.parent;)i._treeLayout_.height=ce(i._treeLayout_.height||-1/0,++r)}else!e._treeLayout_.isExpand&&e._treeLayout_.dynamicLayout||e._treeLayout_.children.forEach(l)}void 0===a._treeLayout_&&(a._treeLayout_={}),a._treeLayout_.children=[e],a._treeLayout_.parent=null,void 0===e._treeLayout_&&(e._treeLayout_={}),e._treeLayout_.children=e.getChildren().toArray(),e._treeLayout_.parent=a,l(a)}var np=["fillStyle","strokeStyle","globalAlpha","font","textAlign","textBaseline","shadowBlur","shadowOffsetX","shadowOffsetY","shadowColor","lineWidth","lineCap","lineJoin","miterLimit","lineDashOffset"],op=new((()=>{function e(){}var t=e.prototype;return t.reset=function(e){var t=this;t._g=e,t._styleCache={},t._preStyleCache={},np.forEach(function(e){t._styleCache[e]=t._preStyleCache[e]=t._g[e]})},t.isChange=function(e){for(var t in e)if(this._styleCache[t]!==e[t])return!0;return!1},t.update=function(e){for(var t in e){var i=e[t];void 0===i&&(i=this._preStyleCache[t]),this._styleCache[t]!==i&&(this._g[t]=this._styleCache[t]=i)}},e})()),lp=(r=>{function b(e,t,i){e=r.call(this,e,t,i)||this,t=e;return t.clip=!0,t._innerPrefix="tidyTree",e}_inheritsLoose(b,r);var e=b.prototype;return e.getDefaultValue=function(e){var t,i,r,a,n,o,l,s=this;if(s._currentDrawData)return t=s.params,n=s.drawInfo,r=(i=s._currentDrawData).getId(),a=s.dm().getRoots().get(0)._treeLayout_.layout,(n=n.ui.clickTidyTreeData)&&(o=(l=n._treeLayout_).isExpand,l=l.layout,o)&&(a={x:s.getTransitionValue("x"+n.getId(),l.x),y:s.getTransitionValue("y"+n.getId(),l.y),rawX:s.getTransitionValue("rawX"+n.getId(),l.rawX),rawY:s.getTransitionValue("rawY"+n.getId(),l.rawY)}),e==="fromX"+r?s._getRealPoint(i,"from",a.x,a.y).x:e==="fromY"+r?s._getRealPoint(i,"from",a.x,a.y).y:e==="toX"+r?s._getRealPoint(i,"to",a.x,a.y).x:e==="toY"+r?s._getRealPoint(i,"to",a.x,a.y).y:e==="x"+r?a.x:e==="y"+r?a.y:"radial"===t.layout?e==="rawX"+r?a.rawX:e==="rawY"+r?a.rawY:void 0:void 0},e.drawImpl=function(e,t,i){var r=this;if(r.data){i.dataModel!==r.dm()&&r.clearTransition(),r.dm(i.dataModel);var a=r.dm().getRoots();if(0!==a.size()){var a=a.get(0),n=(r.dm().each(function(e){void 0===e._drawing_&&(e._drawing_={})}),i.padding),o=i.layout,l=i.orient,s=i.hoverStyle,d=i.width,h=i.height,c=i.initialTreeDepth,u=i.dynamicLayout,g=i.boundarymode,i=i.lineDashAnimateEnable,n=_slicedToArray(pe(n),4),p=1<(p=n[0])?p:p*t.height,f=1<(f=n[1])?f:f*t.width,v=1<(v=n[2])?v:v*t.height,n=1<(n=n[3])?n:n*t.width;void 0===r.drawInfo.ui.virtualRoot&&(r.drawInfo.ui.virtualRoot=new ht.Data);for(var y,w=r.drawInfo.ui.layoutRect={x:t.x+n,y:t.y+p,width:ce(d||t.width-n-f,0),height:ce(h||t.height-p-v,0)},m=!0,x=[a];0I._treeLayout_.layout.x&&(I=e),e._treeLayout_.depth>T._treeLayout_.depth&&(T=e)}),l?D===I?1:n(D,I)/2:0),V=o-D._treeLayout_.layout.x,B=0,S=0,U=0,P=0;"radial"===i?(B=s/(I._treeLayout_.layout.x+o+V),S=d/(T._treeLayout_.depth-1||1),_g(t,function(e){U=(e._treeLayout_.layout.x+V)*B,P=(e._treeLayout_.depth-1)*S;var t=rp(U,P);e._treeLayout_.layout=ue(e._treeLayout_.layout||{},{x:t.x,y:t.y,rawX:U,rawY:P})})):"RL"===r||"LR"===r?(S=d/(I._treeLayout_.layout.x+o+V),B=s/(T._treeLayout_.depth-1||1),_g(t,function(e){P=(e._treeLayout_.layout.x+V)*S,U="LR"===r?(e._treeLayout_.depth-1)*B:s-(e._treeLayout_.depth-1)*B,e._treeLayout_.layout=ue(e._treeLayout_.layout||{},{x:U,y:P})})):"TB"!==r&&"BT"!==r||(B=s/(I._treeLayout_.layout.x+o+V),S=d/(T._treeLayout_.depth-1||1),_g(t,function(e){U=(e._treeLayout_.layout.x+V)*B,P="TB"===r?(e._treeLayout_.depth-1)*S:d-(e._treeLayout_.depth-1)*S,e._treeLayout_.layout=ue(e._treeLayout_.layout||{},{x:U,y:P})}))}(r.drawInfo.ui.virtualRoot,a,o,l,w,-1===c?1/0:c,u,!!m||g),r._eachVisibleData(a,function(e){var t=r._getStyle(e,"itemStyle");e._treeLayout_.layout.x+=t.offsetX,e._treeLayout_.layout.y+=t.offsetY}),r.drawInfo.ui.clickTidyTreeData&&((l=(y=r.drawInfo.ui.clickTidyTreeData).getChildAt(0))?(r._currentDrawData=l,y._treeLayout_.isExpand?(c=r.getTransitionValue("x"+l.getId(),l._treeLayout_.layout.x),u=r.getTransitionValue("y"+l.getId(),l._treeLayout_.layout.y),c===l._treeLayout_.layout.x&&u===l._treeLayout_.layout.y&&(delete y._drawing_.tempExpand,delete r.drawInfo.ui.clickTidyTreeData)):(r._eachVisibleData(y,function(e){e!==y&&(e._treeLayout_.layout.x=y._treeLayout_.layout.x,e._treeLayout_.layout.y=y._treeLayout_.layout.y,e._treeLayout_.layout.rawX=y._treeLayout_.layout.rawX,e._treeLayout_.layout.rawY=y._treeLayout_.layout.rawY)}),g=r.getTransitionValue("x"+l.getId(),l._treeLayout_.layout.x),a=r.getTransitionValue("y"+l.getId(),l._treeLayout_.layout.y),g===y._treeLayout_.layout.x&&a===y._treeLayout_.layout.y&&(r._eachVisibleData(y,function(t){t!==y&&["x","y","fromX","fromY","toX","toY","rawX","rawY"].forEach(function(e){r.removeTransition(e+t.getId())})}),delete y._drawing_.tempExpand,delete r.drawInfo.ui.clickTidyTreeData))):(delete y._drawing_.tempExpand,delete r.drawInfo.ui.clickTidyTreeData));c=("radial"===o?w.x+w.width/2:w.x)+r.getInnerAttr("translateX",0),u=("radial"===o?w.y+w.height/2:w.y)+r.getInnerAttr("translateY",0),l=(Ei?Ei(e):e.save(),Ci?Ci(e,c,u):e.translate(c,u),e.globalAlpha),g=!!(0t.width||h&&p+h+v>t.height)&&r._drawScrollBar(e,t,n+d+f,p+h+v),i?r._refreshTimeFrame?(r._refreshTimeFrame.updateStatus(),r._refreshTimeFrame.isRunning()||r._refreshTimeFrame.resume()):(r._lineOffset=0,(w=r._refreshTimeFrame=new Nn).onEnterFrame=function(e,t){r.data&&(r._lineOffset+=r.params.lineDashAnimateSpeed*(r.params.lineDashDirectionReverse?-1:1),r._refreshTimeFrame.iv(r.data))},w.start()):r._refreshTimeFrame&&r._refreshTimeFrame.pause()}}},e.getDefaultFomatter=function(e){return"{a}: {b}"},e.toToolTipTemplateList=function(e,t){return[e,this._getValue(t.data)||0]},e._drawScrollBar=function(e,t,i,r){var a=this.data,n=this.view,o=this.params,l=this.innerPrefix;Qr(a,ue({scrollWidth:i,scrollHeight:r},o.scrollbarStyle),l),zr(e,{draw:"scrollbar",tag:this._innerPrefix},t,a,n)},e._getRealPoint=function(e,t,i,r){var a=this.params,n=a.layout,a=a.orient;return"radial"===n?{x:i,y:r}:(e=(n=this._getStyle(e,"itemStyle")).width,n=n.height,"LR"===a?{x:i+("from"===t?e/2:-e/2),y:r}:"RL"===a?{x:i+("from"===t?-e/2:e/2),y:r}:"TB"===a?{x:i,y:r+("from"===t?n/2:-n/2)}:"BT"===a?{x:i,y:r+("from"===t?-n/2:n/2)}:void 0)},e._drawLine=function(I,T){var V=this,e=V.params,B=e.layout,d=e.edgeShape,S=e.orient,h=e.edgeForkPosition,c=e.edgeForkCornerRadius,u=e.edgeForkCornerReverse,e=V.dm().getRoots().get(0),U=V.sm;op.reset(I),I.save(),V._eachVisibleData(e,function(y){var w,m,e=y._drawing_.tempExpand,t=y._treeLayout_,i=t.children,t=t.isExpand,x=V._getStyle(y,"lineStyle"),r=(V._currentDrawData=y,V._getRealPoint(y,"from",y._treeLayout_.layout.x,y._treeLayout_.layout.y)),a=r.x,r=r.y,b=V.getTransitionValue("fromX"+y.getId(),a),D=V.getTransitionValue("fromY"+y.getId(),r);if(x.color&&op.update({strokeStyle:V.toBlendedColor(x.color),lineWidth:x.width}),x.pattern&&I.setLineDash(x.pattern),void 0!==V._lineOffset&&(I.lineDashOffset=V._lineOffset),"polyline"===d&&"orthogonal"===B&&0!==i.length&&(t||e)){if(!T(y))return;for(var n=[],o=0;ol.x)||(u-=H)),(p=Qn({x:a,y:n},{content:o,style:ue({},r,{position:void 0,rotate:u/q,align:g=s?"right":"left",vAlign:"middle",offsetX:"right"==g?-r.distance:r.distance,offsetY:0}),formatterTplParams:[o,w._getValue(e)||0]},w.data,w.view)).textBoxAnchor={x:a,y:n},Yn(f,{style:r},p,w)),e._drawing_.labelLayoutInfo=p)}),f.restore()},e._isAddToAfterDraw=function(e){var t,i=this.params.hoverStyle,r=this.sm;if(r.size()){if("none"===i.focus)return!1;if("self"===i.focus)return!!r.co(e);if("ancestor"===i.focus)return t=r.ld(),!(!r.co(e)&&!t.isDescendantOf(e));if("descendant"===i.focus)return t=r.ld(),!(!r.co(e)&&!e.isDescendantOf(t))}return!1},e._eachVisibleData=function(e,t){var i=this,r=(t(e),e._drawing_.tempExpand),e=e._treeLayout_,a=e.children;0{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onUp=function(e,t,i){var r,a=t.params,n=t.ui,o=t.instance,l=t.data,t=dp(t,i);t&&(i=t.tidyTreeData,t=t.type,0<(r=i._treeLayout_).children.length&&a.expandable&&(i._treeLayout_.isExpand=!r.isExpand,i._treeLayout_.isExpand||(i._drawing_.tempExpand=!0),n.clickTidyTreeData&&(delete n.clickTidyTreeData._drawing_.tempExpand,delete n.clickTidyTreeData),n.clickTidyTreeData=i,l.iv()),o.fireEvent({kind:"item"===t?lp.EVENT_CLICK_DATA:lp.EVENT_CLICK_LABEL,data:i,nativeEvent:e}))},i.onMove=function(e,t,i){var r,a,n,o,l,s,d;ui(e)||(r=(d=t.instance).data,a=d.view,o=t.ui,l=(n=t.params).expandable,s=n.hoverStyle,d=d.dm().sm(),(i=dp(t,i))?(o.active=!0,i=i.tidyTreeData,d.co(i)||(d.ss(i),r.iv()),t.instance.showLabelToolTip(e,lp.getLabel(i),{data:i}),l&&!n.cursorControl&&Q(a,s.cursor)):o.active&&(d.cs(),delete o.active,r.iv(),n.cursorControl||Q(a,null),x.hide()))},i.onLeave=function(e,t,i){var r=t.params,a=t.ui,t=t.instance,n=t.data,o=t.view,t=t.dm().sm();a.active&&(t.cs(),delete a.active,n.iv(),r.cursorControl||Q(o,null),x.hide())},t})(wo));function cp(d,h,c){function u(e,t){var i,r,a,n,o,l,s;if(e)return i=ce(0,e.s("maxValue")||d.params.maxValue||c._drawing_.value),a=g/(i||x),r=t,e!==h&&(n=e._drawing_.value,i=te(i=0===i&&T?a:n*a,g),r=t+V*(i=i{function p(e,t,i,r){e=a.call(this,e,t,i)||this,t=e;return t.clip=!0,t._innerPrefix=r?"ring":"sunburst",e}_inheritsLoose(p,a);var e=p.prototype;return e.getDefaultValue=function(e){var t,i;if(this._currentDrawData)return t=(i=this._currentDrawData)._drawing_,e==="r"+(i=i.getId())?t.layout.r0:e==="angle"+i?t.layout.angle:e==="startAngle"+i?t.layout.startAngle:e==="endAngle"+i?t.layout.endAngle:void 0},e.drawImpl=function(e,t,i){var r,a,n,o,l,s,d=this;d.data&&(i.dataModel!==d.dm()&&d.clearTransition(),d.dm(i.dataModel),0!==(r=d.dm().getRoots()).size())&&(s=i.hoverStyle,a=i.isRing,void 0===(n=d.drawInfo.ui.virtualRoot)&&((n=d.drawInfo.ui.virtualRoot=new ht.Data).setName("virtualRoot"),n._drawing_={parent:null}),n._drawing_.children=a?[r.get(0)]:r.toArray(),n._drawing_.children.forEach(function(e){void 0===e._drawing_&&(e._drawing_={}),e._drawing_.children=a?r.get(1)?[r.get(1)]:[]:e.getChildren().toArray(),e._drawing_.parent=n}),d._initSunburstDataDrawingUI(),d._initSunburstDataValue(),cp(d,n,d.drawInfo.ui.currentRoot||n),o=e.globalAlpha,(l=!!(0{for(var t=0;e=e._drawing_.parent;)t++;return t})(e),e._drawing_.dataIndex=s++,e._drawing_.height=-1/0,0===e._drawing_.children.length){var r=e,a=1;for(r._drawing_.height=1;r=r._drawing_.parent;)r._drawing_.height=ce(r._drawing_.height||-1/0,++a)}else e._drawing_.children.forEach(n)}var o=this,l=o.drawInfo.ui.virtualRoot,s=0;n(l)},e._initSunburstDataValue=function(){function i(e){var t=0;return e._drawing_.children.forEach(function(e){void 0===r._getValue(e)?t+=i(e):(t+=r._getValue(e),i(e))}),e._drawing_.value=void 0===r._getValue(e)?t:r._getValue(e),e._drawing_.value}var r=this;i(r.drawInfo.ui.virtualRoot)},e._isAddToAfterDraw=function(e){var t=this.params,i=t.isRing,t=t.hoverStyle.focus;if(0{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onUp=function(e,t,i){var r=t.instance,i=pp(t,i),a=t.ui,t=t.params.clickDrill;i&&((i=i.sunburstData)!==a.virtualRoot&&r.fireEvent({kind:gp.EVENT_CLICK_DATA,data:i}),t)&&i!==a.currentRoot&&r.switchTo(i)},i.onMove=function(e,t,i){var r,a,n,o,l,s,d;ui(e)||(r=t.instance,n=t.ui,o=r.data,l=r.view,s=(a=t.params).hoverStyle,t=pp(t,i),i=r.dm().sm(),t?(n.active=!0,t=t.sunburstData,i.co(t)||(i.ss(t),o.iv()),t={data:t,name:d="virtualRoot"===(d=gp.getLabel(t))?"":d,value:t._drawing_.value},r.showLabelToolTip(e,d,t),a.cursorControl||Q(l,s.cursor)):n.active&&(i.cs(),delete n.active,o.iv(),a.cursorControl||Q(l,null),x.hide()))},i.onLeave=function(e,t,i){var r=t.instance,a=t.ui,t=t.params,n=r.data,o=r.view,r=r.dm().sm();a.active&&(r.cs(),delete a.active,n.iv(),t.cursorControl||Q(o,null),x.hide())},t})(wo)),vp=(r=>{function e(){return r.apply(this,arguments)||this}_inheritsLoose(e,r);var t=e.prototype;return t.getBoundWidth=function(){var e=this.option,t=e.visible,i=e.size,e=e.bodyGap;return t?i||r.prototype.getBoundWidth.call(this)+e:0},t.drawAxisLabel=function(r){var a,n=this,e=n.rect,o=e.x,l=e.width,s=n.option.axisLabel;s.visible&&(a=s.interval||n.getInterval(),n.tickInfos.forEach(function(e,t){var i=e.label;Z(i)||t%a==0&&n._drawAxisLabel(r,o+l/2,e.axisPoint,i.toString(),s.font,be,se,e,!0)}))},t.drawAxisLine=function(e){var t,i,r,a,n,o,l,s=this.rect,d=s.x,h=s.y,c=s.width,s=s.height,u=this.option,g=u.bodyGap,u=u.axisLine;u.visible&&(a=.5*(r=u.width),n=re(t=u.color),l=(o=this.option.position)===be,e.save(),e.beginPath(),Ra(e,u),(l||o===oe)&&(e.moveTo(d+g,h),e.lineTo(d+g,h+s),n)&&(i=ge(e,{x:d+g-a,y:h,width:r,height:s},t),l)&&(Ra(e,u,i),e.stroke(),e.beginPath()),(o===le||l)&&(e.moveTo(d+c-g,h),e.lineTo(d+c-g,h+s),n)&&(i=ge(e,{x:d+c+g-a,y:h,width:r,height:s},t),l)&&(Ra(e,u,i),e.stroke()),l&&n||(Ra(e,u,i),e.stroke()),e.restore())},t.drawAxisTick=function(i){var e,t,r,a,n,o,l=this.rect,s=l.x,d=l.width,l=this.option,h=l.bodyGap,c=l.axisTick,u=l.boundaryMode,l=l.reverse;c.visible&&(this.dimension,e=this.tickInfos,this.targetValueAxis,t=this._unitWidth,r=c.interval||this.getInterval(),i.save(),i.beginPath(),i.strokeStyle=c.color,Ra(i,c),a=c.length,n=u?(l?t:-t)/2:0,e.forEach(function(e,t){e=e.axisPoint+n;t%r==0&&(c.inside?(o=s+h,i.moveTo(o-a,e),i.lineTo(o,e),o=s+d-h,i.moveTo(o,e),i.lineTo(o+a,e)):(o=s+h,i.moveTo(o+a,e),i.lineTo(o,e),o=s+d-h,i.moveTo(o,e),i.lineTo(o-a,e)))}),i.stroke(),i.restore())},t.drawOtherBody=function(e,t){var i=2{function e(){var e=i.apply(this,arguments)||this;return e._innerPrefix="butterflyChart",e}_inheritsLoose(e,i);var t=e.prototype;return t.createChartCase=function(e){var t=e.getId(),i=this._dm,r=this._seriesModelMap[t];return r?(r.initOption(),r.setDataModel(i)):(r=new Zu(e,i,this),this._seriesModelMap[t]=r),r.setColorPalette(this.params.colors),r},t.initSeriesData=function(){var i=this,e=i.getSeriesModel(),r=(i._visibleCases=[],i.leftCases=[],i.rightCases=[],i._leftStackMgr=new ag),a=i._rightStackMgr=new ag,n=0;e.eachByHierarchical(function(e){var t;!1!==e.s(J)&&(t=i.createChartCase(e),(e.s("position")!==le&&n%2?(t.initValue(a),i.rightCases):(t.initValue(r),i.leftCases)).push(t),i._visibleCases.push(t)),n++})},t._buildAxis=function(){var i=this,e=i.params,t=e.xAxis,t=void 0===t?uc:t,e=e.yAxis,e=void 0===e?Cu:e,r=i.dm(),a=he(t),n=he(t);a.reverse=!0,n.reverse=!1,t&&"log"===t.type?(i.leftXAxis=new lg(i,a,P),i.rightXAxis=new lg(i,n,P)):(i.leftXAxis=new qc(i,a,P),i.rightXAxis=new qc(i,n,P)),i.yAxis=new vp(i,e,T),i.getSeriesModel().eachByHierarchical(function(e){i.yAxis.appendData(r,e)}),i._visibleCases.forEach(function(e,t){i.leftXAxis.appendData(r,e.seriesData,e.values),i.rightXAxis.appendData(r,e.seriesData,e.values),e.setYAxis(i.yAxis)}),i.leftXAxis.genTicks(),i.rightXAxis.genTicks(),i.yAxis.genTicks(),i.leftCases.forEach(function(e){e.setXAxis(i.leftXAxis)}),i.rightCases.forEach(function(e){e.setXAxis(i.rightXAxis)})},t._judgeRect=function(e){var t=this,i=t.params,r=t.leftXAxis,a=t.rightXAxis,n=t.yAxis,e=Wr(he(e),i.padding),i=r.option.visible,o=n.option.visible,l=0,s=0,d=0,h=0,c=r.getBoundHeight(),u=i?r.getOtherSideSize():0,o=o?n.getOtherSideSize():0,g=i?r.getFirstLabelSize().width:0,i=i?r.getLastLabelSize().width:0,i=g=ce(g,i,o),l=(r.option.position===ne?(l+=c,h=ce(u,h)):(s+=c,d=ce(u,h)),ce(l,d)),s=ce(s,h),o=n.getBoundWidth(),u=n.option.position,d=Wr(he(e),[l,g,s,i]),h=(d.width-o)/2;t.leftRect={x:d.x,y:d.y,width:h,height:d.height},t.rightRect={x:d.x+h+o,y:d.y,width:h,height:d.height},n.setRect({x:d.x+h,y:d.y,width:o,height:d.height}),r.option.position===ne?(r.setRect({x:d.x,y:d.y-c,width:h,height:c}),a.setRect({x:t.rightRect.x,y:d.y-c,width:h,height:c})):(r.setRect({x:d.x,y:d.y+d.height,width:h,height:c}),a.setRect({x:t.rightRect.x,y:d.y+d.height,width:h,height:c})),le===u?(r.getRect().x=t.leftRect.x=d.x+o,a.getRect().x=t.rightRect.x=d.x+h+o,n.getRect().x=d.x,r.getRect().x):oe===u&&(r.getRect().x=t.leftRect.x=d.x,a.getRect().x=t.rightRect.x=d.x+h,n.getRect().x=d.x+2*h)},t.drawAxis=function(e){var t=this.leftXAxis,i=this.rightXAxis,r=this.yAxis,a=this.leftRect,n=this.rightRect;1{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onLeave=function(e,t,i){var r,a=t.data,n=t.ui,t=t.instance;(n.hoverAxisUI||n.hoverCase)&&(r=n.hoverAxisUI&&n.hoverAxisUI.data,delete n.hoverAxisUI,delete n.hoverCase,t.hideToolTip(),r&&t.fireEvent({kind:xg.EVENT_LEAVE_DATA,valueData:r,nativeEvent:e}),a.iv()),n.hoverItemInfo&&(t.fireEvent({kind:yp.EVENT_LEAVE_ITEM,seriesData:n.hoverItemInfo.case.seriesData,valueData:n.hoverItemInfo.data,nativeEvent:e}),delete n.hoverItemInfo)},i.onMove=function(t,e,i){function r(e){d.fireEvent({kind:xg.EVENT_LEAVE_DATA,valueData:e,nativeEvent:t})}var a,n,o=e.params,l=e.ui,s=e.data,o=o.toolTipTrigger,d=e.instance;de(d.leftRect,i)||de(d.rightRect,i)?(e=d.checkHit(i),"axis"===o?(n=!1,(a=d.checkHitMainAxis(i))&&l.hoverAxisUI&&a.data!==l.hoverAxisUI.data||a&&!l.hoverAxisUI?(l.hoverAxisUI&&r(l.hoverAxisUI.data),l.hoverAxisUI=a,l.hoverPoint=i,d.fireEvent({kind:xg.EVENT_ENTER_DATA,valueData:a.data,nativeEvent:t}),s.iv(),n=!0):a||!l.hoverAxisUI&&!l.hoverPoint||(a=l.hoverAxisUI.data,delete l.hoverAxisUI,delete l.hoverPoint,s.iv(),a&&r(a),d.hideToolTip()),!n&&"cross"===d.pointerOption.type&&l.hoverAxisUI&&(l.hoverPoint=i,s.iv()),l.hoverPoint&&d.showToolTip(t)):"item"===o&&(e&&e.data?d.showToolTip(t,e.case,e.data):d.hideToolTip()),(a=e&&e.case)!==l.hoverCase&&(l.hoverCase=a,s.iv()),n=l.hoverItemInfo,!e||!e.data||n&&bg(n,e)?!n||e&&e.data||(d.fireEvent({kind:yp.EVENT_LEAVE_ITEM,seriesData:n.case.seriesData,valueData:n.data,nativeEvent:t}),delete l.hoverItemInfo):(n&&d.fireEvent({kind:yp.EVENT_LEAVE_ITEM,seriesData:n.case.seriesData,valueData:n.data,nativeEvent:t}),d.fireEvent({kind:yp.EVENT_ENTER_ITEM,seriesData:e.case.seriesData,valueData:e.data,nativeEvent:t}),l.hoverItemInfo=e)):l.hoverAxisUI&&(i=l.hoverAxisUI&&l.hoverAxisUI.data,delete l.hoverAxisUI,delete l.hoverPoint,s.iv(),i&&r(i),d.hideToolTip())},i.onUp=function(e,t,i){var t=t.instance,r=t.checkHit(i),i=(r&&(t.fireEvent({kind:yp.EVENT_CLICK_SERIES,seriesData:r.case.seriesData,nativeEvent:e}),r.data)&&t.fireEvent({kind:yp.EVENT_CLICK_ITEM,seriesData:r.case.seriesData,valueData:r.data,nativeEvent:e}),t.checkHitMainAxis(i));i&&(e={kind:yp.EVENT_CLICK_DATA,valueData:i.data,nativeEvent:e,part:i.hitPart},r&&(e.seriesData=r.case.seriesData),t.fireEvent(e))},i.onScroll=function(e,t,i){t.instance.handleScroll(e,i)},t})(wo)),mp=i((t=>{function e(){var e=t.apply(this,arguments)||this;return e._innerPrefix="chartToolTip",e}_inheritsLoose(e,t);var i=e.prototype;return i.drawBackground=function(e){var t=this.params,i=this.rect,r=t.background,a=t.borderStyle,t=t.backgroundImage,a=(void 0===a?{}:a).cornerRadius;e.beginPath(),ye(e,i,a),r&&(e.fillStyle=ge(e,i,r),e.fill()),t&&Ba(e,t,Ie,i,this.data,this.view)},i.drawContent=function(d){var h,c,u,g,p,f=this,n=f.params,o=f.rect,e=n.labelStyle,t=n.iconStyle,v=n.vGap,l=n.titleBackground,i=n.hPadding,r=n.vPadding,s=void 0===r?0:r,y=n.titleHeight,w=n.titleVisible,m=n.itemHeight,r=[0,void 0===i?0:i],i=e.font,a=e.color,x=e.titleColor,b=void 0===x?a:x,x=e.titleFont,D=void 0===x?i:x,I=e.titleFormatter,T=e.titleAlign,x=e.nameColor,V=void 0===x?a:x,x=e.nameFont,B=void 0===x?i:x,S=e.nameFormatter,U=e.getNameFormatter,L=e.colonVisible,x=e.valueColor,J=void 0===x?a:x,x=e.valueFont,P=void 0===x?i:x,R=e.valueFormatter,M=e.getValueFormatter,X=e.useSeriesColor,z=e.valueUseSeriesColor,C=e.getValueColor,x=e.unitColor,Q=void 0===x?a:x,a=e.unitFont,Y=void 0===a?i:a,x=e.unitAlign,H=void 0===x?oe:x,q=e.unitUseSeriesColor,A=t.width,F=t.height,N=t.gap,i=t.offsetX,O=void 0===i?0:i,a=t.offsetY,K=void 0===a?0:a,G=t.backgroundVisible,E=t.borderWidth,W=t.cornerRadius,j=t.borderColorBrightness,k=t.getIcon,Z=t.icon,_=t.iconBlend,x=n.content;x&&((i=e.shadowColor)&&(d.save(),Ma(d,e,f.toBlendedColor(i))),h=0,x.forEach(function(e){e.items.forEach(function(e){var e=e[3];ae(e)&&(e=fe(P,e),h=ce(h,e.width))})}),a=Wr(he(o),r),c=a.x,u=a.width,g=c,p=a.y,x.forEach(function(e){var t,i,r,a;g=c,w&&(t=f.formatText(e.title,I),i={x:g,y:p,width:u,height:y},l&&(r=void 0===(r=n.borderStyle)?{}:r,a={x:o.x,y:p,width:o.width,height:y},d.beginPath(),ye(d,a,r.cornerRadius),d.fillStyle=ge(d,a,l),d.fill()),ve(d,t,i,f.toBlendedColor(b),D,T),p+=y),p+=s,e.items.forEach(function(e){var t,i,r=_slicedToArray(e,5),a=r[0],n=r[1],o=r[2],l=r[3],r=r[4],n=f.formatText(n,S,U),o=f.formatText(o,R,M),s={x:c+O,y:p+(m-F)/2+K,width:A,height:F},r=r||Z,r=((r=k?k({color:a,name:n,value:o,unit:l},f.data,f.view):r)?Ba(d,r,Te,s,f.data,f.view,f.toBlendedColor(Gr(!1!==_?a:ie))):(a=f.toBlendedColor(a),d.beginPath(),ye(d,s,W),E&&(d.lineWidth=E,d.strokeStyle=ge(d,s,Oa(a,j)),d.stroke()),G&&(d.fillStyle=ge(d,s,a||ct),d.fill())),u-A-N),s=(L&&(n+=":"),X&&(t=a),ve(d,n,{x:g+=A+N,y:p,width:r,height:m},f.toBlendedColor(t||V),B,le),{x:g,y:p,width:r-h,height:m}),n=(!t&&z&&(t=a,i=!0),t||J);C&&(n=C({color:n,name:e[1],value:e[2],unit:l},f.data,f.view)),ve(d,o,s,f.toBlendedColor(n),P,oe),i&&(t=ee),ae(l)&&(!t&&q&&(t=a),ve(d,l,{x:g+r-h,y:p,width:h,height:m},f.toBlendedColor(t||Q),Y,H)),p+=m+v,g=c}),p+=s}),i)&&d.restore()},i.drawImpl=function(e,t){var i=this.params.borderStyle,i=(void 0===i?{}:i).cornerRadius;this.clipRect(e,this.getBorderReducedRect(),i),this.drawBackground(e),this.drawContent(e),e.restore(),this.drawCompBorder(e)},e})(fo),["hPadding","vPadding","titleHeight","titleVisible","itemHeight","vGap","content","labelStyle","iconStyle","borderStyle","backgroundImage"],["background","titleBackground"]),xp=mo((e=>{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onHover=function(e,t,i){var r=t.instance,t=Sa(t.ui.itemUIs,i);t&&(i=t.textLayoutInfoUI&&ao(t.textLayoutInfoUI)?t.textLayoutInfoUI.richRawText:ie,i=t.data.getToolTip()||i)&&r.showLabelToolTip(e,i,{data:t.data})},i.onMove=function(e,t,i){x.isShowing()&&x.hide();t.params;var r=t.ui,i=Sa(r.itemUIs,i),t=t.instance,a=t.view;i?(Q(a,t.isDisabled(i.data)?V:qe),r.hoverData!==i.data&&(r.hoverData&&t.fireLeave(r.hoverData),r.hoverData=i.data,t.fireEvent({kind:Hh.EVENT_ENTER_DATA,data:i.data}),t.dm().sm().ss(i.data))):(Q(a,B),r.hoverData&&(t.fireLeave(r.hoverData),delete r.hoverData,t.dm().sm().cs()))},i.onLeave=function(e,t,i){x.isShowing()&&x.hide();var r=t.instance,a=r.data,t=t.ui;Q(r.view,B),t.hoverData&&(r.fireLeave(t.hoverData),delete t.hoverData,r.dm().sm().cs(),a.iv())},i.onUp=function(e,t,i){t.params;var r,a,i=Sa(t.ui.itemUIs,i);i&&(r=i.data,(t=t.instance).isDisabled(r)||(a=!1!==r.s(J),r.s(J,!a),t.fireEvent({kind:Hh.EVENT_CLICK_DATA,data:i.data})))},t})(wo)),bp=function(e,t){void 0!==t.isStartPath&&!t.isStartPath||e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*j)},Dp=function(e,t){var i=t.height,r=t.x,a=t.y,n=t.width/3*2;void 0!==t.isStartPath&&!t.isStartPath||e.moveTo(r,a),e.lineTo(r+n,a+i),e.lineTo(r,a+i/4*3),e.lineTo(r-n,a+i),e.lineTo(r,a),e.closePath()};function Ip(r){for(var e=r.params,t=r._innerRect,i=r.dm().getRoots(),a=e.indicator,n=e.splitNumber,o=e.isCrossZero,l=e.centerX,s=e.centerY,L=e.innerRadius,J=e.outerRadius,R=e.startAngle,M=e.clockwise,d=a.length,h=[],c=[],u=[],g=[],p=0;p{var i,r=e[1]-e[0];if(isFinite(r))return r<0&&(r=-r,e.reverse()),r=t,t={},i=(e=e)[1]-e[0],i=t.interval=xc(i/r,!0),r=t.intervalPrecision=(e=>mc(e)+2)(i),i=t.niceTickExtent=[Dc($i(e[0]/i)*i,r),Dc(_i(e[1]/i)*i,r)],r=e,isFinite(i[0])||(i[0]=r[0]),isFinite(i[1])||(i[1]=r[1]),Sp(i,0,r),Sp(i,1,r),i[0]>i[1]&&(i[0]=i[1]),t})(x,V.splitNumber)).interval),B=S.intervalPrecision,S=S.niceTickExtent,U=(x[0]=Dc(_i(x[0]/V)*V),x[1]=Dc($i(x[1]/V)*V),b[T]=S,D[T]=V,I[T]=B,c[w]),x=a[w]||{},P=x.min,C=x.max;if(void 0!==(P=void 0!==(C=void 0!==P&&void 0===C&&P<0?0:C)&&void 0===P&&0m[0]&&isFinite(F)&&isFinite(m[0]););else{n<((e,t,i,r)=>{var a=[];if(i){e[0]{i.each(function(e,t){var i=a._getValue(e)||[];void 0!==i[r]?e._drawing_.points[r]=Vp(i[r],n[r]):e._drawing_.points[r]=[s,d]})})(h)}function Vp(e,t){var i=t.r0,r=t.r,a=t.cy,n=t.angle,o=t.scale.extent,e=o[1]===o[0]?.5:(e-o[0])/(o[1]-o[0]),o=0===e?i:1===e?r:i+e*(r-i);return[t.cx+o*W(n),a-o*K(n)]}function Bp(e,t,i){isFinite(t)&&!isNaN(t)&&(e[0]=t),isFinite(i)&&!isNaN(i)&&(e[1]=i)}function Sp(e,t,i){e[t]=ce(te(e[t],i[1]),i[0])}function Up(e){var t=Zi(10,_i(nr(e)/hr)),e=e/t;return 2===e?e=5:e*=2,e*t}var Pp=(r=>{function u(e,t,i){e=r.call(this,e,t,i)||this,t=e;return t.clip=!0,t._innerPrefix="radar",e}_inheritsLoose(u,r);var e=u.prototype;return e.handleMD=function(e,t,i){"s:visible"!==e.property||e.newValue||this.removeTransition("points"+e.data.getId())},e.getDefaultValue=function(e){var t,i,r,a,n,o,l;if(this._currentDrawData)return t=this._innerRect,r=this.params,n=this._currentDrawData,i=r.centerX,r=r.centerY,a=n._drawing_,n=n.getId(),o=t.x+Ea(i,t.width),l=t.y+Ea(r,t.height),e==="points"+n?a.points.map(function(){return[o,l]}):void 0},e.drawImpl=function(e,t,i){var r=this;r._innerRect=gg(e,t,i.dataModel,i.colors,r),r.data&&(i.dataModel!==r.dm()&&r.clearTransition(),r.dm(i.dataModel),0!==(t=r.dm().getRoots()).size())&&(t.each(function(e){r._isVisible(e)||delete e._drawing_,void 0===e._drawing_&&(e._drawing_={}),e._drawing_.points=[],e._drawing_.pointsLabelLayoutInfo=[]}),i=Ip(r))&&1{var e,t,a,n,i,o;g?(e=v+r/h*(y-v),r+1Be&&(o="right",l="middle",s={x:a-d.width,y:n-d.height/2,width:d.width,height:d.height}),v.drawInfo.ui.nameInfos[t]=Qn({x:a,y:n},{style:Object.assign({align:o,vAlign:l},x),content:i},v.data,v.view),Yn(u,{style:r?ue({},x,{color:r}):x},v.drawInfo.ui.nameInfos[t],v),v.drawInfo.ui.nameInfos[t].name=i,v.drawInfo.ui.nameInfos[t].nameRect=s)})),b.visible&&e.forEach(function(e,t){for(var i,r,a=e.angle,n=e.scale,o=n.extent,l=n.interval,s=b.align,d=b.vAlign,h=(G(+a)<1e-14?(s=s||"center",d=d||"bottom"):G(G(a)-H)<1e-14?(s=s||"center",d=d||"top"):a<0?(s=s||"left",d=d||"middle"):0{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onUp=function(e,t,i){var r,a=t.instance,n=a.dm(),o=n.sm(),n=n.getRoots(),l=Ap(t,i,"name");l?a.fireEvent({kind:Pp.EVENT_CLICK_NAME,name:l.name}):(l=Ap(t,i,"label"))?(r="",l.lines.forEach(function(e){e.forEach(function(e){e.image?r+=e.image:r+=e.text})}),a.fireEvent({kind:Pp.EVENT_CLICK_LABEL,data:l.radarData,dataIndex:l.radarIndex,label:r})):(l=Ap(t,i,"symbol"))?a.fireEvent({kind:Pp.EVENT_CLICK_SYMBOL,data:l.radarData,dataIndex:l.radarIndex,symbolIndex:l.pIndex}):(l=o.ld())?a.fireEvent({kind:Pp.EVENT_CLICK_DATA,data:l,dataIndex:n.indexOf(l)}):ui(e)&&Fp(e,t,i)},i.onMove=function(e,t,i){ui(e)||Fp(e,t,i)},i.onLeave=function(e,t,i){var r=t.instance,a=t.ui,t=t.params,n=r.dm().sm();a.active&&(0{function g(e,t,i){e=r.call(this,e,t,i)||this,t=e;return t.clip=!0,t._innerPrefix="category",e}_inheritsLoose(g,r);var e=g.prototype;return e.drawImpl=function(r,e,t){var n=this;if(n.data&&(n.dm(t.dataModel),0!==n.dm().size())){for(var a=n.dm().getRoots(),t=n.params,i=t.hGap,o=t.vGap,l=t.paddingTop,s=t.paddingBottom,d=t.columnStyle,h=(n.drawInfo.ui.cellInfo=[],0),c=0,u=0,g=(a.each(function(e,t){for(var i=[e];0{var i,r,e=v[0]._drawing_.depth,t=h[e]||Ep;t.visible&&(i=Ua({x:y,y:o,width:l[e],height:p},f[e],{boxDirection:"left-top",align:t.align,vAlign:t.vAlign,hGap:t.itemHGap||0,vGap:t.itemVGap||0}),v.forEach(function(e,t){t=i[t];s._drawItem(a,t,e),e._drawing_.rect=t,r=Ii(r,t)}),y+=l[e]+d,s.drawInfo.ui.cellInfo.push({parent:v[0].getParent(),data:v[0],itemUnionRect:r})),0<(v=s._getNextDatas(v)).length&&c&&(h[v[0]._drawing_.depth]||Ep).visible&&(g?ua(a,t={x:y-d/2-c/2,y:o,width:c,height:p},ge(a,t,u)):n===s.dm().getRoots().get(0)&&(e={x:y-d/2-c/2,y:o,width:c,height:s.rect.y+s.rect.height-o},ua(a,e,ge(a,e,u))))})()},e._drawItem=function(e,t,i){var r,a=this,n=a.params.columnStyle,o=i._drawing_.depth,n=n[o]||Ep,l=g.getLabel(i),s=a.isDisabled(i),d=a._getStyle(i,"labelStyle"),h=a._getStyle(i,"iconStyle"),s=s?"disabled":a.sm.co(i)?"select":a.drawInfo.ui.hoverData===i?"hover":void 0,s=(s?(s=a.params[s+"Style"]).column&&((r=s.column[o]||{}).drawItemBackground?r.drawItemBackground(e,{rect:t,data:i},a.data,a.view):r.itemBackground&&(e.save(),e.beginPath(),ye(e,t,n.itemCornerRadius||0),e.fillStyle=ge(e,t,r.itemBackground),e.fill(),e.restore())):n.itemBackground&&(e.save(),e.beginPath(),ye(e,t,n.itemCornerRadius||0),e.fillStyle=ge(e,t,n.itemBackground),e.fill(),e.restore()),n.itemBorderWidth&&n.itemBorderColor&&(e.save(),e.beginPath(),ye(e,t,n.itemCornerRadius||0),e.strokeStyle=ge(e,t,n.itemBorderColor),e.lineWidth=n.itemBorderWidth,e.stroke(),e.restore()),0),o=oa(d.font,l),c=a.getIcon(i),u=h.visible&&c,s=(u&&(s+=h.width),d.visible&&(s+=o),u&&d.visible&&(s+=n.iconLabelGap),t.x+(t.width-s)/2);u&&Ba(e,c,Ie,{x:s,y:t.y+(t.height-h.height)/2,width:h.width,height:h.height},i,a.view),d.visible&&(c=d.color,r&&(c=r.labelColor||c),ve(e,l,{x:s+(u?h.width+n.iconLabelGap:0),y:t.y,width:o,height:t.height},a.toBlendedColor(c),d.font,le))},e._drawScrollBar=function(e,t,i,r){var a,n,o,l;t.width>i&&t.height>r||(a=this.data,n=this.view,o=this.params,l=this.innerPrefix,Qr(a,ue({scrollWidth:i,scrollHeight:r},o.scrollbarStyle),l),zr(e,{draw:"scrollbar",tag:this._innerPrefix},t,a,n))},e._getNextDatas=function(e){for(var t,i=0;i{var o,e,t,i,r=d[0]._drawing_.depth,l=n[r]||Ep;l.visible&&(o=[],d.forEach(function(e){var t=g.getLabel(e),i=s._getStyle(e,"labelStyle"),r=s._getStyle(e,"iconStyle"),t=oa(i.font,t),a=oa(i.font,at),e=s.getIcon(e),n=0;r.visible&&e&&(n+=r.width),i.visible&&(n+=t),r.visible&&e&&i.visible&&(n+=l.iconLabelGap),o.push({width:(l.itemWidth||n)+(l.areaXExtend||0),height:(l.itemHeight||i.lineHeight||a)+(l.areaYExtend||0)})}),i=(i=0)===(t=Ua({x:0,y:0,width:a[r],height:1/0},o,{boxDirection:"left-top",hGap:l.itemHGap||0,vGap:l.itemVGap||0})).length?t[0].height:(e=t[0],(t=t[t.length-1]).y+t.height-e.y),h=ce(h,i),c[r]=o),d=s._getNextDatas(d)})();return{rowMaxHeight:h,itemSizesList:c}},e._getDepth=function(e){for(var t=0;e=e.getParent();)t++;return t},e.getIcon=function(e){var t=this._getStyle(e,"iconStyle").icon;return e.getIcon()||t},e._getStyle=function(e,t){return ue({},this.params[t],e.s(t))},e.isDisabled=function(e){var t;return(t=this.params.isDisabled)?t({data:e},this.data,this.view):!!e.s(c)},e.fireEventWithDisabled=function(e){var t=this.params.disabledStyle;(!this.isDisabled(e.data)||null!=t&&t.triggerEvent)&&this.fireEvent(e)},g.getLabel=function(e){return e.getDisplayName()||e.getName()||"data"},g})(Po),Lp=(kp.EVENT_CLICK_DATA="clickData",i(kp,["dataModel","hGap","vGap","paddingTop","paddingBottom","columnLineWidth","columnLineSplit","scrollbarStyle","columnStyle","labelStyle","iconStyle","hoverStyle","selectStyle","disabledStyle","toolTipEnabled","toolTipFormatter","getToolTipFormatter","toolTipImage","getToolTipSize","getToolTipAttr"],["columnLineColor"],function(e){e.columnStyle||(e.columnStyle=[])}));function Jp(e,t){for(var i=e.ui.cellInfo,r=0;r{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onUp=function(e,t,i){if(!C.isDragging()){var r=t.data,a=t.params.columnStyle,n=t.instance,o=n.sm,t=Jp(t,i);if(t){i=a[t._drawing_.depth]||Ep;if(n.isDisabled(t)||!i.selectable)n.fireEventWithDisabled({kind:kp.EVENT_CLICK_DATA,data:t,selected:o.co(t)});else{var l=0;if(t.getParent())for(var s=t.getParent().getChildren(),d=0;d{function m(e,t,i){e=r.call(this,e,t,i)||this,t=e;return t.clip=!0,t._innerPrefix="marquee",e}_inheritsLoose(m,r);var e=m.prototype;return e.drawImpl=function(e,t,i){var r=this;if(r.data&&r.params.label){var a=i.connect,n=i.connectGap,o=i.connectContent,l=i.direction,s=i.labelStyle,d=i.textOverflowScroll,h=i.label,c=r._getIconWidth(),u=c||oa(s.font,h),i=a&&"alternate"!==l&&"pingpong"!==l,g=(i&&(o?(u+=oa(s.font,o),h+=o):u+=n||0),r._getLabelY());if(void 0===r._labelX&&(r._labelX=t.x),e.textAlign="left",e.textBaseline=s.vAlign,e.font=s.font,e.fillStyle=ge(e,t,r.toBlendedColor(s.color)),c?r._drawIcons(e,r._labelX,g):("overflowOnHoverScroll"!==d||r.drawInfo.ui.isHovering||u>t.width&&(h=ea(h,s.font,t.width,!0)),e.fillText(h,r._labelX,g)),i){for(var p=r._labelX-u;p>t.x-u;)c?r._drawIcons(e,p,g):e.fillText(h,p,g),p-=u;for(var f=r._labelX+u;fc+u)if(n){for(var f=c+u;c=l&&(v._alternateDirection=-1,v._labelX=l),void 0===v._alternateDirection&&(v._alternateDirection=1),v._labelX+=v._alternateDirection*d),v._timeFrame.iv(y)}else g{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onUp=function(e,t,i){C.isDragging()},i.onHover=function(e,t,i){var r=t.params.label;t.instance.showLabelToolTip(e,r,{})},i.onEnter=function(e,t,i){t.ui.isHovering=!0},i.onLeave=function(e,t,i){x.hide(),t.ui.isHovering=!1},t})(wo)),zp=(()=>{function e(e){this.data=e,this.len=e.length,this.pos=0}var t=e.prototype;return t.readByte=function(){if(!(this.pos>=this.data.length))return this.data instanceof Uint8Array?this.data[this.pos++]:255&this.data.charCodeAt(this.pos++)},t.readBytes=function(e){for(var t=[],i=0;i{for(var t=0,i=0;i>3)&1<<(7&a)&&(t|=1<{function e(){this.frameList=[],this.tempCanvas=document.createElement("canvas"),this.tempCanvasCtx=null,this.gifInfo={},this.stream=null,this.lastDisposaMethod=null,this.currentFrameIndex=-1,this.transparency=null,this.loaded=!1,this.delayTimes=[]}var t=e.prototype;return t.load=function(e){var t=this;Li(e,function(e){0{function d(e,t,i){e=r.call(this,e,t,i)||this;return e.clip=!0,e._innerPrefix="frame",e}_inheritsLoose(d,r);var e=d.prototype;return e.drawImpl=function(e,t,i){var r,a,n,o,l,s,d;this.data&&(r=i.loop,n=i.gifImage,l=i.spriteImage,s=i.spriteReverse,a=i.spriteHNum,d=i.spriteVNum,o=i.multiImages,this._preFrameType!==(i=i.frameType)&&(this._frameIndex=0,this._frameDirection=1,this._preFrameType=i),"multi"===i&&0===o.length||(e.save(),e.translate(t.x+t.width/2,t.y+t.height/2),"gif"===i?(this._currentGifImage!==n&&(this._currentGif=new qp,this._currentGif.load(n),this._currentGifImage=n),this._currentGif&&this._currentGif.draw(e,{x:-t.width/2,y:-t.height/2,width:t.width,height:t.height},this._frameIndex)):(n=ti("multi"===i?o[this._frameIndex%o.length]:l))&&("multi"===i?Ba(e,n,Ie,{x:-t.width/2,y:-t.height/2,width:t.width,height:t.height}):(o=this._frameIndex,s&&(o=a*d-1-this._frameIndex),l=n.width/a,i=n.height/d,s=o%a*l,d=Math.floor(o/a)*i,e.drawImage(n,s,d,l,i,-t.width/2,-t.height/2,t.width,t.height))),e.restore(),this._timeFrame||this._initTimeFrame(),this._timeFrame.updateStatus(),r&&!this._timeFrame.isRunning()&&this._timeFrame.resume()))},e._initTimeFrame=function(){var l=this,s=0;l._timeFrame=new Nn,l._timeFrame.onEnterFrame=function(e,t){if(t-s>=l.params.frameInterval){var i,r=l.params,a=r.frameType,n=r.loop,o=r.nextLoopReverse;if("multi"===a&&(i=r.multiImages.length),"sprite"===a&&(i=r.spriteHNum*r.spriteVNum),"gif"===a){if(!l._currentGif||!l._currentGif.isLoaded())return void(s=t);i=l._currentGif.getFrameLength()}l._frameIndex+=l._frameDirection,(1===l._frameDirection&&l._frameIndex>=i||-1===l._frameDirection&&l._frameIndex<=-1)&&(o?(1===l._frameDirection?l._frameIndex=i-2:l._frameIndex=1,l._frameDirection*=-1):(l._frameIndex=0,l._frameDirection=1),l.fireEvent({kind:d.END}),!n)?l._timeFrame.pause():(l._timeFrame.iv(l.data),s=t)}},l._timeFrame.start()},d})(fo),Op=(Op.END="end",i(Op,["frameType","gifImage","frameInterval","loop","nextLoopReverse","multiImages","spriteImage","spriteReverse","spriteHNum","spriteVNum"])),Kp=(r=>{function e(e,t,i){e=r.call(this,e,t,i)||this;return e._innerPrefix="switchButton",e}_inheritsLoose(e,r);var t=e.prototype;return t.getDefaultValue=function(e){var t,i,r=this,a=r.params,n=a.active,o=a.backBlockStyle,a=a.slideBlockStyle;return"percent"===e?n?1:0:"slideX"===e?(t=r.drawInfo.ui.rect,i=a.padding||a.gapToBack||0,n?t.x+t.width-a.width-i:t.x+i):"backBlockShadowColor"===e?n?o.activeShadowColor:o.inActiveShadowColor:"slideBlockShadowColor"===e?n?a.activeShadowColor:a.inActiveShadowColor:e==="backBlockColor"+r._colorId?(t=r._getBlockStyleByStatus("backBlock",n).background,re(t)?t[r._colorId]:t):e==="slideBlockColor"+r._colorId?(i=r._getBlockStyleByStatus("slideBlock",n).background,re(i)?i[r._colorId]:i):e==="backBlockBorderColor"+r._colorId?(o=r._getBlockStyleByStatus("backBlock",n).borderColor,re(o)?o[r._colorId]:o):e==="slideBlockBorderColor"+r._colorId?(a=r._getBlockStyleByStatus("slideBlock",n).borderColor,re(a)?a[r._colorId]:a):void 0},t._getBlockStyleByStatus=function(e,t){var i=this.params,r=i.disabled,a=i.disabledStyle;return r?{background:a[e+"Color"],icon:a[e+"Icon"],borderColor:a[e+"BorderColor"],shadowColor:a[e+"ShadowColor"]}:{background:(r="backBlock"===e?i.backBlockStyle:i.slideBlockStyle)[(a=t?"active":"inActive")+"Color"],icon:r[a+"Icon"],borderColor:r[a+"BorderColor"],shadowColor:r[a+"ShadowColor"]}},t.drawImpl=function(e,t,i){var r,a,n,o,l,s,d,h,c,u,g=this;g.data&&(u=i.label,c=i.labelButtonGap,d=i.align,s=void 0===(s=i.labelStyle)?{}:s,r=i.active,h=i.backBlockStyle,a=i.slideBlockStyle,l=i.disabledStyle,g.drawInfo.ui.triggerEvent=!(i=i.disabled)||l.triggerEvent,n=g.drawInfo.ui.rect={x:NaN,y:t.y+(t.height-h.height)/2,width:h.width,height:h.height},o=0,u&&(o=oa(s.font,u)),n.x="left"===d?t.x:"right"===d?t.x+t.width-(u?o+c:0)-h.width:t.x+(t.width-h.width-(u?o+c:0))/2,u&&(s.onButtonLeft&&(n.x+=o+c),ve(e,u,{x:s.onButtonLeft?n.x-c-o:n.x+n.width+c,y:t.y,width:o,height:t.height},i?l.labelColor:s.color,s.font,"center","middle",!1,s)),d=Math.min(h.cornerRadius,n.width/2,n.height/2),(u=g._getBlockStyleByStatus("backBlock",r)).background&&(e.save(),e.beginPath(),At(e,n.x,n.y,n.width,n.height,d),g._setShadowColor(e,"backBlock"),e.fillStyle=ge(e,n,g.toBlendedColor(g._getAnimateColor("backBlockColor",u.background))),e.fill(),e.restore()),h.borderWidth&&u.borderColor&&(c=he(n),ii(c,h.borderWidth),e.beginPath(),At(e,n.x,n.y,n.width,n.height,d),e.lineWidth=h.borderWidth,e.strokeStyle=ge(e,c,g.toBlendedColor(g._getAnimateColor("backBlockBorderColor",u.borderColor))),e.stroke()),u.icon&&Y(e,u.icon,n,g.data,g.view),o=g.getTransitionValue("percent",r?1:0),i={x:r?n.x+n.width*o:n.x-1e3,y:n.y-1e3,width:r?n.width+1e3:n.width*o+1e3,height:n.height+2e3},(l=g._getBlockStyleByStatus("backBlock",!r)).icon&&i.width&&(e.save(),e.beginPath(),e.rect(i.x,i.y,i.width,i.height),e.clip(),Y(e,l.icon,n,g.data,g.view),e.restore()),s=a.padding||a.gapToBack||0,d={x:g.getTransitionValue("slideX",r?n.x+n.width-a.width-s:n.x+s),y:t.y+(t.height-a.height)/2,width:a.width,height:a.height},h=Math.min(a.cornerRadius,d.width/2,d.height/2),(c=g._getBlockStyleByStatus("slideBlock",r)).background&&(e.save(),e.beginPath(),At(e,d.x,d.y,d.width,d.height,h),g._setShadowColor(e,"slideBlock"),e.fillStyle=ge(e,d,g.toBlendedColor(g._getAnimateColor("slideBlockColor",c.background))),e.fill(),e.restore()),a.borderWidth&&c.borderColor&&(u=he(d),ii(u,a.borderWidth),e.beginPath(),At(e,d.x,d.y,d.width,d.height,h),e.lineWidth=a.borderWidth,e.strokeStyle=ge(e,u,g.toBlendedColor(g._getAnimateColor("slideBlockBorderColor",c.borderColor))),e.stroke()),c.icon)&&Y(e,c.icon,d,g.data,g.view)},t._setShadowColor=function(e,t){var i,r,a,n=this.params,o=n.active,n="backBlock"===t?n.backBlockStyle:n.slideBlockStyle,l=o?n.activeShadowColor:n.inActiveShadowColor;l||(o&&n.inActiveShadowColor&&(i=(a=_slicedToArray(Kr(n.inActiveShadowColor),3))[0],r=a[1],a=a[2],l="rgba(".concat(i,",").concat(r,",").concat(a,",0)")),!o&&n.activeShadowColor&&(r=(i=_slicedToArray(Kr(n.activeShadowColor),3))[0],a=i[1],o=i[2],l="rgba(".concat(r,",").concat(a,",").concat(o,",0)"))),Ma(e,{shadowColor:this.toBlendedColor(this._getAnimateColor(t+"ShadowColor",l)),shadowBlur:n.shadowBlur,shadowOffsetX:n.shadowOffsetX,shadowOffsetY:n.shadowOffsetY})},t._getAnimateColor=function(i,e){var r=this;return re(e)?e.map(function(e,t){return 0!==t&&ci(e)?(r._colorId=t,void 0===r[i+"Id"]&&(r[i+"Id"]=t),r.getTransitionValue(i+r._colorId,e)):e}):(void 0===r[i+"Id"]&&(r[i+"Id"]=0),r._colorId=r[i+"Id"],r.getTransitionValue(i+r._colorId,e))},e})(fo),Gp=(Kp.EVENT_CLICK="click",Kp.EVENT_CHANGE="change",i(Kp,["label","labelButtonGap","active","disabled","align","labelStyle","backBlockStyle","slideBlockStyle","disabledStyle","setCompAttr"])),Wp=mo((e=>{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onUp=function(e,t,i){var r=t.params.disabled;de(t.ui.rect,i)&&(t.ui.triggerEvent&&t.instance.fireEvent({kind:Kp.EVENT_CLICK,nativeEvent:e}),r||(i=t.params.active,(t.params.setCompAttr?t.params:t.instance).setCompAttr("active",!i),t.ui.triggerEvent&&t.instance.fireEvent({kind:Kp.EVENT_CHANGE,oldValue:i,newValue:!i,nativeEvent:e})))},i.onMove=function(e,t,i){var r=t.params,a=r.disabled,r=r.disabledStyle,i=de(t.ui.rect,i);t.ui.active=i,t.params.cursorControl||Q(t.instance.view,i?a?r.cursor:qe:"default")},i.onLeave=function(e,t,i){t.ui.active&&(delete t.ui.active,t.params.cursorControl||Q(t.instance.view,null))},t})(wo)),jp=(r=>{function e(e,t,i){e=r.call(this,e,t,i)||this;return e._innerPrefix="switchButtonGroup",e}_inheritsLoose(e,r);var t=e.prototype;return t.init=function(e,t){r.prototype.init.call(this,e,t),this.dm(t.dataModel)},t.drawImpl=function(i,e,t){var o=this,r=this,a=t.labelButtonGap,l=t.cursorControl,s=t.transition,d=t.labelStyle,h=t.backBlockStyle,c=t.slideBlockStyle,u=t.disabledStyle,n=t.vertical,g=t.hGap,p=t.vGap,f=t.nowrap,v=t.align,t=t.vAlign,y=this.dm().getRoots().toList(function(e){return!1!==e.s("visible")}),w=[];y.each(function(e){var t=e.getDisplayName();w.push({width:h.width+(t?a+oa(d.font,e.getDisplayName()):0),height:h.height})}),Ua(e,w,{boxDirection:n?"top-left":"left-top",hGap:g,vGap:p,nowrap:f,align:v,vAlign:t,inlineAlign:"left"}).forEach(function(e,t){var n=y.get(t);zr(i,{draw:"switchButton",tag:n.getId()+""},e,o.data,o.view,{active:!!n.s("active"),disabled:!!n.s("disabled"),label:n.getDisplayName(),labelButtonGap:a,align:"left",cursorControl:l,transition:s,labelStyle:d,backBlockStyle:h,slideBlockStyle:c,disabledStyle:u,handleEvent:function(e,t,i){var r,a;"init"!==e.kind&&"change"===e.kind&&(r=[],a=[],y.each(function(e){e===n?(e.s("active")?r:a).push(e):e.s("active")&&(r.push(e),a.push(e))}),o.fireEvent({kind:"change",newValue:r,oldValue:a}))},setCompAttr:function(e,t){n.s(e,t),r.iv()}})})},e})(Po);var Zp=(r=>{function x(e,t,i){e=r.call(this,e,t,i)||this,t=e;return t.clip=!0,t._innerPrefix="pie3d",e}_inheritsLoose(x,r);var e=x.prototype;return e.handleMD=function(e,t,i){"s:visible"!==e.property||e.newValue||this.removeTransition("barHeight"+e.data.getId())},e.getDefaultValue=function(e){var t,i,r;if(this._currentDrawData)return e==="offsetY"+(i=(t=this._currentDrawData).getId())||e==="barHeight"+i||e==="cx"+i||e==="cy"+i||e==="labelLineClip"+i?0:e==="innerLabelX"+i?(r=t._drawing_.innerLabelLayoutUI.label,this._o_ts_o(t,{x:r.x,y:r.y}).x):e==="innerLabelY"+i?(r=t._drawing_.innerLabelLayoutUI.label,this._o_ts_o(t,{x:r.x,y:r.y}).y):void 0},e.drawImpl=function(s,e,t){var i,d,h,c,r,a,n,u,o,l,g,p=this;e=gg(s,e,t.dataModel,t.topColors,p),p.data&&(t.dataModel!==p.dm()&&p.clearTransition(),p.dm(t.dataModel),p._drawBackImage(s,e,0===p.dm().size()),0===p.dm().size()?(delete p.drawInfo.ui.sortedFaces,p.drawEmpty(s,p.rect)):(i=t.showZero,o=t.scale,d=t.bottomVisible,h=p.drawInfo.ui.convertParams=p._getConvertParams(e),c=p.dm().getRoots(),r=[],c.each(function(e){void 0===e._drawing_&&(e._drawing_={}),p._isVisible(e)&&(i||0!==p._getValue(e))?r.push(e):(e._drawing_.value=0,e._drawing_.percent=0)}),a=r.reduce(function(e,t){return e+p._getValue(t)},0),n=0,r.forEach(function(e,t){var i=e._drawing_;i.value=p._getValue(e),i.percent=0===a?0:t===r.length-1?1-n:i.value/a,n+=i.percent}),Lg(p,!0,function(e){return p._getBarOffsetX(e)}),Vg(p,"innerLabelStyle","innerLabelLayoutUI"),Vg(p,"outerLabelStyle","outerLabelLayoutUI",function(e,t){return p._o_ts_o(e,t)},!0),u=s.globalAlpha,s.save(),s.translate(h.center.x,h.center.y),s.scale(o,1),r.forEach(function(e,t){var i=e._drawing_.layout,r=i.r0,a=i.r,n=i.cx,o=i.cy,l=i.clockwise,i=i.startAngle,n=((p._currentDrawData=e)._drawing_.layout.cx=p.getTransitionValue("cx"+e.getId(),n-h.center.x),e._drawing_.layout.cy=p.getTransitionValue("cy"+e.getId(),o-h.center.y),e._drawing_.sideFaces=p._getSideFace(e),H),o=(l?$i(i/n)+(i%n==0?1:0):_i(i/n)+(i%n==0?-1:0))*n;e._drawing_.frontFaces=p._getCurvedFace(e,a,n,o),e._drawing_.backFaces=p._getCurvedFace(e,r,n=75*q,l?i+n:i-n),d&&p._drawArc(s,e,c.indexOf(e),u,!0)}),e=(t=p._getFacesInfo()).frontFace1,o=t.frontFace2,l=t.allBackFaces,g=t.allSideFaces,t=t.arcTopFaces,e.forEach(function(e){return p._drawCurvedFace(s,e,u)}),p._drawFaces(s,u,g,l,o,t),s.restore(),r.forEach(function(e,t){p._drawInnerLabel(s,e,c.indexOf(e),u),p._drawOuterLabelAndLine(s,e,c.indexOf(e),u)})))},e.getDefaultFomatter=function(e){return"{a}: {b}"},e.toToolTipTemplateList=function(e,t){return[e,t.value,t.percent]},e._drawBackImage=function(e,t,i){var r,a,n,o,l,s=this.params,d=this.data,h=this.view,c=s.centerX,u=s.centerY,s=s.backImageStyle;s&&(r=s.icon,a=s.width,n=s.height,o=s.offsetX,l=s.offsetY,s=s.isEmptyVisible,i&&!s||Y(e,r,{x:t.x+Ea(c,t.width)-a/2+o,y:t.y+Ea(u,t.height)-n/2+l,width:a,height:n},d,h))},e._drawInnerLabel=function(t,i,e,r){var a,n,o,l,s,d,h,c=this,u=i._drawing_;!Bi(u.innerLabelLayoutUI)&&(l=(d=u.innerLabelLayoutUI).visible,a=d.textAlign,n=d.label,d=d.rect,l||c.drawInfo.ui.hoverNode===i)&&(o=c._getStyle(i,"innerLabelStyle"),l={x:(l=c._o_ts_o(i,{x:n.x,y:n.y})).x+("left"===a?0:"right"===a?-d.width:-d.width/2),y:l.y-d.height/2,width:d.width,height:d.height},c.params.labelLayout&&(s=(d=c.params.labelLayout({center:c._t_s_o({x:u.layout.cx,y:u.layout.cy-c._getBarOffsetY(i)-c._getBarHeight(i)}),sectorRect:c._getOriginRect(u.topArcP.getBoundingRect()),labelRect:l,labelLinePoints:[]},c.data,c.view)).x,d=d.y,void 0!==s&&(l.x=s),void 0!==d)&&(l.y=d),"inside"===o.position&&(c._currentDrawData=i,l.x=c.getTransitionValue("innerLabelX"+i.getId(),l.x),l.y=c.getTransitionValue("innerLabelY"+i.getId(),l.y)),s=o.color||c.params.topColors[e%c.params.topColors.length],d={content:x.getLabel(i),style:ue({},o,{position:void 0,rotate:n.rotation,color:s||"rgba(0,0,0,0)",align:a,vAlign:"middle"}),formatterFuncParams:{name:x.getLabel(i),value:u.value,percent:u.percent,data:i,textDirection:"left"===a?"right":"right"===a?"left":"middle"},formatterTplParams:[x.getLabel(i),u.value,u.percent,(100*u.percent).toFixed(o.percentPrecision)+"%"]},e=Qn({x:l.x+("left"===a?0:"right"===a?l.width:l.width/2),y:l.y+l.height/2},d,c.data,c.view),u.innerLabelLayoutUI.labelLayoutInfo=e,h=1,"inside"===o.position&&(c._currentDrawData=i,h=c.getTransitionValue("labelLineClip"+i.getId(),1)),t.save(),!!c.params.hoverStyle.focusable&&c.drawInfo.ui.hoverNode&&c.drawInfo.ui.hoverNode!==i&&(t.globalAlpha=r*c.params.hoverStyle.blurOpacity),Yn(t,{style:d.style,drawParams:{data:i,name:x.getLabel(i),value:u.value,percent:u.percent}},e,c,function(e){e=Yg._getClipArea(c._t_s_o({x:u.layout.cx,y:u.layout.cy-c._getBarOffsetY(i)-c._getBarHeight(i)}),e,o.borderWidth,h);cn(t,e,ie,!0)}),t.restore())},e._drawOuterLabelAndLine=function(t,r,e,i){var a=this,n=r._drawing_;if(!Bi(n.outerLabelLayoutUI)){var o=n.outerLabelLayoutUI,l=o.visible,s=o.textAlign,d=o.label,o=o.rect;if(l||a.drawInfo.ui.hoverNode===r){var h=a._getStyle(r,"outerLabelStyle"),l=a._getStyle(r,"labelLineStyle"),c=a._getStyle(r,"itemStyle"),u={x:d.x,y:d.y},u=a._o_ts_o(r,u,!("edge"===h.alignTo)),u={x:u.x+("left"===s?0:"right"===s?-o.width:-o.width/2),y:u.y-o.height/2,width:o.width,height:o.height},g=n.outerLabelLayoutUI.linePoints,g=n.outerLabelLayoutUI.linePoints=g.map(function(e,t){var i=!0,t=("edge"===h.alignTo&&2===t&&(i=!1),d.rotation&&(i=!0),a._o_ts_o(r,{x:e[0],y:e[1]},i));return[t.x,t.y]}),o=(a.params.labelLayout&&(p=(o=a.params.labelLayout({center:a._t_s_o({x:n.layout.cx,y:n.layout.cy-a._getBarOffsetY(r)-a._getBarHeight(r)}),sectorRect:a._getOriginRect(n.topArcP.getBoundingRect()),labelRect:u,labelLinePoints:g},a.data,a.view)).x,f=o.y,(o=o.labelLinePoints)&&(g=o),void 0!==p&&(u.x=p),void 0!==f)&&(u.y=f),h.color||a.params.topColors[e%a.params.topColors.length]),p=x.getLabel(r),f=[p,n.value,n.percent,(100*n.percent).toFixed(h.percentPrecision)+"%"],o={content:p,style:ue({},h,{position:void 0,rotate:d.rotation,color:o||"rgba(0,0,0,0)",align:s,vAlign:"middle"}),formatterFuncParams:{name:p,value:n.value,percent:n.percent,data:r,textDirection:"left"===s?"right":"right"===s?"left":"middle"},formatterTplParams:f},s=Qn({x:u.x+("left"===s?0:"right"===s?u.width:u.width/2),y:u.y+u.height/2},o,a.data,a.view),v=(n.outerLabelLayoutUI.labelLayoutInfo=s,a._currentDrawData=r,a.getTransitionValue("labelLineClip"+r.getId(),1)),u=(h.icon&&(w=new ht.Data).a({"{a}":f[0],"{b}":f[1],"{c}":f[2],"{d}":f[3]}),!!a.params.hoverStyle.focusable&&a.drawInfo.ui.hoverNode&&a.drawInfo.ui.hoverNode!==r);if(t.save(),u&&(t.globalAlpha=i*a.params.hoverStyle.blurOpacity),Yn(t,{iconData:w,style:o.style,drawParams:{data:r,name:p,value:n.value,percent:n.percent}},s,a,function(e){e=Yg._getClipArea(a._t_s_o({x:n.layout.cx,y:n.layout.cy-a._getBarOffsetY(r)-a._getBarHeight(r)}),e,h.borderWidth,.5<=v?2*(v-.5):0);cn(t,e,ie,!0)}),t.restore(),g&&l.visible){var f=Ti(g.map(function(e){return{x:e[0],y:e[1]}})),y=(0===f.width&&(f.width=l.width),0===f.height&&(f.height=l.width),(isNaN(f.x)||isNaN(f.y)||isNaN(f.width)||isNaN(f.height))&&(f={x:0,y:0,width:0,height:0}),n.labelLinePathProxy),w=((y=void 0===y?n.labelLinePathProxy=new Ws:y).setContext(t),u&&(t.globalAlpha=i*a.params.hoverStyle.blurOpacity),Yg._getClipArea(a._t_s_o({x:n.layout.cx,y:n.layout.cy-a._getBarOffsetY(r)-a._getBarHeight(r)}),f,l.width,v<.5?2*v:1));if(cn(t,w),y.beginPath(),y.moveTo(g[0][0],g[0][1]),l.smooth&&3<=g.length){o=$t(g[0],g[1]),p=$t(g[1],g[2]);o&&p?(s=.3*te(o,p),u=new O(g[1]).lerp(new O(g[0]),s/o),i=new O(g[1]).lerp(new O(g[2]),s/p),w=u.clone().lerp(i,.5),y.bezierCurveTo(u.x,u.y,u.x,u.y,w.x,w.y),y.bezierCurveTo(i.x,i.y,i.x,i.y,g[2][0],g[2][1])):(y.lineTo(g[1][0],g[1][1]),y.lineTo(g[2][0],g[2][1]))}else for(var m=1;m{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onUp=function(e,t,i){var r,a,n,o=$p(t,i);if(o&&t.instance.fireEvent({kind:Zp.EVENT_CLICK_DATA,data:o.pie3dData}),"single"!==t.params.selectMode&&"multiple"!==t.params.selectMode||(o=i,a=(r=t).params,n=r.instance.dm().sm(),(r=$p(r,o))&&(o=r.pie3dData,"single"!==a.selectMode||n.co(o)||n.ss(o),"multiple"===a.selectMode)&&(n.co(o)?n.rs(o):n.as(o))),ui(e))return ef(e,t,i)},i.onMove=function(e,t,i){if(!ui(e))return ef(e,t,i)},i.onLeave=function(e,t,i){var r,a,n;t.instance&&(a=t.params,(r=t.ui).active)&&((n=r.hoverNode)&&t.instance.fireEvent({kind:Zp.EVENT_LEAVE_DATA,data:n,value:n._drawing_.value,percent:n._drawing_.percent}),delete r.hoverNode,delete r.active,a.cursorControl||Q(t.instance.view,null),x.hide())},t})(wo)),rf=(e=>{function t(){return e.apply(this,arguments)||this}return _inheritsLoose(t,e),t.prototype.drawImpl=function(e,t,i){var r,a=i.labelStyle,a=void 0===a?{}:a,n=i.content,o=i.iwidth,l=i.iheight,s=i.isRect,d=i.debugArea,h=i.debugInfo,c=t.x,u=t.y,g=t.width,t=t.height,o=(s?(r={x:c+g/2-o/2,y:u+t/2-l/2,width:o,height:l},d&&(e.fillStyle="rgba(255,0,0,0.5)",e.fillRect(r.x,r.y,r.width,r.height))):(r={x:c+g/2,y:u+t/2},d&&(e.fillStyle="rgba(255,0,0,0.5)",e.beginPath(),e.arc(r.x,r.y,2/Jr(this.view),0,2*j),e.fill())),a.rotateWrap=i.rotateWrap,Qn(r,{content:n,style:a},this.data,this.view));d&&(c=(l=o.textBoxRect).x,g=l.y,u=l.width,t=l.height,e.lineWidth=1,e.strokeStyle="rgba(0,255,0,0.5)",e.strokeRect(c,g,u,t)),d&&(e.strokeStyle="#000",e.lineWidth=2,e.beginPath(),n=(i=o.textBoxAnchor).x,e.moveTo(n-3,l=i.y),e.lineTo(n+3,l),e.moveTo(n,l-3),e.lineTo(n,l+3),e.stroke()),Yn(e,{style:Object.assign(a,{inlineVAlign:"bottom"})},o,this),h&&(console.log(s?">>> Rect >>>":">>> Point >>>"),console.log(r),console.log(">>> Text Info >>>"),console.log(o))},t})(fo);function af(t,e){var L,i=t.params,r=i.dataWidth,a=i.dataGap,n=i.vertical,i=i.dataAlign,J=e.width,e=e.height,o=t._getHaveNameDatas().toArray(),R=t.drawInfo.ui.edges;L=t,o.forEach(function(e){var t=lf(e._drawing_.outEdges,sf),i=lf(e._drawing_.inEdges,sf),r=L._getValue(e)||0,t=ce(t,i,r);e._drawing_.layout.value=t});for(var l=0!==o.filter(function(e){return 0===t._getValue(e)}).length?0:32,s=(a=a,l=l,o),M=R,d=r,J=r=J,h=e,c=n,u=[],g=[],p=[],f=[],v=0,y=0;ym&&(m=b.s("depth")),b._drawing_.layout.depth=X?b.s("depth"):v,c?b._drawing_.layout.dy=d:b._drawing_.layout.dx=d;for(var D=0;D{var i=[],r=t?"y":"x",a=((e,i)=>{var r={},a=[];return e.forEach(function(e){var t=i(e);(r[t]||(a.push(t),r[t]=[])).push(e)}),{keys:a,buckets:r}})(e,function(e){return e._drawing_.layout[r]});return a.keys.sort(function(e,t){return e-t}),a.keys.forEach(function(e){i.push(a.buckets[e])}),i})(V,A),$=U,ee=P,N=C,te=A,E=1/0,ie=((V=F).forEach(function(e){var t=e.length,i=0,e=(e.forEach(function(e){i+=e._drawing_.layout.value}),te?(ee-(t-1)*N)/i:($-(t-1)*N)/i);e{e.slice().reverse().forEach(function(e){e.forEach(function(e){var t,i;e._drawing_.outEdges.length&&(t=lf(e._drawing_.outEdges,hf,a)/lf(e._drawing_.outEdges,sf),isNaN(t)&&(t=(i=e._drawing_.outEdges.length)?lf(e._drawing_.outEdges,cf,a)/i:0),a?(i=e._drawing_.layout.x+(t-df(e,a))*r,e._drawing_.layout.x=i):(i=e._drawing_.layout.y+(t-df(e,a))*r,e._drawing_.layout.y=i))})})})(F,re*=.99,A),of(F,C,U,P,A),((e,r,a)=>{e.forEach(function(e){e.forEach(function(e){var t,i;e._drawing_.inEdges.length&&(t=lf(e._drawing_.inEdges,uf,a)/lf(e._drawing_.inEdges,sf),isNaN(t)&&(t=(i=e._drawing_.inEdges.length)?lf(e._drawing_.inEdges,gf,a)/i:0),a?(i=e._drawing_.layout.x+(t-df(e,a))*r,e._drawing_.layout.x=i):(i=e._drawing_.layout.y+(t-df(e,a))*r,e._drawing_.layout.y=i))})})})(F,re,A),of(F,C,U,P,A);var h=o,k=n?"x":"y";h.forEach(function(e){e._drawing_.outEdges.sort(function(e,t){return e.node2._drawing_.layout[k]-t.node2._drawing_.layout[k]}),e._drawing_.inEdges.sort(function(e,t){return e.node1._drawing_.layout[k]-t.node1._drawing_.layout[k]})}),h.forEach(function(e){var t=0,i=0;e._drawing_.outEdges.forEach(function(e){e.layout.sy=t,t+=e.layout.dy}),e._drawing_.inEdges.forEach(function(e){e.layout.ty=i,i+=e.layout.dy})})}function nf(e){return null!=e.s("depth")&&0<=e.s("depth")}function of(e,d,h,c,u){var g=u?"x":"y";e.forEach(function(e){e.sort(function(e,t){return e._drawing_.layout[g]-t._drawing_.layout[g]});for(var t,i,r,a=0,n=e.length,o=u?"dx":"dy",l=0;l{function F(e,t,i){e=r.call(this,e,t,i)||this,t=e;return t.clip=!0,t._innerPrefix="sankey",e}_inheritsLoose(F,r);var e=F.prototype;return e.getDefaultValue=function(e){if("clipPercent"===e)return 0;if(this._currentDrawEdge&&e==="flowPercent"+this._currentDrawEdge.dataIndex)return 0},e.drawImpl=function(e,t,i){var r,a,n,o,l,s,d=this;d.data&&(i.dataModel!==d.dm()&&d.clearTransition(),d.dm(i.dataModel),0!==(l=d._getHaveNameDatas()).size())&&(d._needRefresh=!1,s=i.padding,r=i.hoverStyle,i=i.selectStyle,n=1<(n=(s=_slicedToArray(pe(s),4))[0])?n:n*t.height,a=1<(a=s[1])?a:a*t.width,o=1<(o=s[2])?o:o*t.height,s=1<(s=s[3])?s:s*t.width,s=d.drawInfo.ui.layoutRect={x:t.x+s,y:t.y+n,width:ce(t.width-s-a,0),height:ce(t.height-n-o,0)},d._initDrawingUI(),af(d,s),l.each(function(e){e._drawing_.layout.x+=e._drawing_.offset.x,e._drawing_.layout.y+=e._drawing_.offset.y}),e.save(),d.getTransitionValue("clipPercent",1)<1&&(e.beginPath(),e.rect(s.x,s.y,s.width*d.getTransitionValue("clipPercent",1),s.height),e.clip()),e.translate(s.x,s.y),a=e.globalAlpha,n=(t=!(!d.ld||"none"===i.focus)||!(!d.drawInfo.ui.hoverData||"none"===r.focus))?(d.ld?i:r).blurOpacity:1,t&&(e.save(),e.globalAlpha=a*n),l=(o=d.getActiveDatas()).datas,d._drawEdge(e,s=o.edgeIndexs,!1,a,t?n:1),d._drawSankeyDataRect(e,l,!1),d._drawSankeyDataLabel(e,l,!1),t&&e.restore(),t&&(d._drawEdge(e,s,!0,a),d._drawSankeyDataRect(e,l,!0),d._drawSankeyDataLabel(e,l,!0)),e.restore(),d._needRefresh)&&d.iv()},e.getDefaultFomatter=function(e){return"{a}: {b}"},e.toToolTipTemplateList=function(e,t){return[e,t.value]},e._drawEdge=function(w,m,x,b){var D=4{var t=i[r];a.dm().each(function(e){e!==t.node1&&e!==t.node2||o.includes(e)||o.push(e)}),l.includes(t.dataIndex)||l.push(t.dataIndex)})()}var a=this,e=a.params,i=e.hoverStyle,r=e.selectStyle,e=a.sm.toSelection(),n=a.drawInfo.ui.hoverData,o=[],l=[];return n&&(n instanceof ht.Data?t(n,i):(o.push(n.node1,n.node2),l.push(n.dataIndex))),e.size()&&e.each(function(e){t(e,r)}),{datas:o,edgeIndexs:l}},e._getLineStyle=function(e){var t,i,r=this._getLinkInfo(e),a=this._getLevelInfo(e.node1);return this.drawInfo.ui.hoverData&&e.dataIndex===this.drawInfo.ui.hoverData.dataIndex?(e=this.params.hoverStyle||{},t=a.hoverStyle||{},i=r.hoverStyle||{},ue({},this.params.lineStyle,a.lineStyle,r.lineStyle,e.lineStyle,t.lineStyle,i.lineStyle)):ue({},this.params.lineStyle,a.lineStyle,r.lineStyle)},e._getStyle=function(e,t){var i,r,a,n=this._getLevelInfo(e);return e===this.drawInfo.ui.hoverData||this.ld===e?(a=this.ld?"selectStyle":"hoverStyle",i=this.params[a]||{},r=n[a]||{},a=e.s(a)||{},ue({},this.params[t],n[t],e.s(t),i[t],r[t],a[t])):ue({},this.params[t],n[t],e.s(t))},e._getValue=function(e){e=_a(e,this.params.valueOption,this.data,this.view);return void 0===e?void 0:+e},e._getHaveNameDatas=function(){return this.dm().getRoots().toList(function(e){return void 0!==F.getLabel(e)})},F.getLabel=function(e){return e.getDisplayName()||e.getName()||""},_createClass(F,[{key:"ld",get:function(){return this.sm.ld()}}])})(Po),xf=(mf.EVENT_CLICK_DATA="clickData",mf.EVENT_CLICK_LABEL="clickLabel",mf.EVENT_CLICK_EDGE="clickEdge",i(mf,["dataModel","valueOption","selectMode","cancelableWhenSingle","colors","links","draggable","flowAnimateEnable","flowAnimateDuration","itemStyle","labelStyle","lineStyle","flowLabelStyle","hoverStyle","selectStyle","levelsStyle","padding","vertical","dataWidth","dataGap","dataEdgeGap","dataAlign","toolTipEnabled","toolTipFormatter","getToolTipFormatter","toolTipImage","getToolTipSize","getToolTipAttr"]));function bf(e,t){if(e.instance){for(var i=e.ui,r=e.instance._getHaveNameDatas(),a=0;a{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onUp=function(e,t,i){var r,a,n,i=bf(t,i);i&&("sankeyData"===i.type||"sankeyLabel"===i.type?i.data.s("disabled")||(t.instance.fireEvent({kind:"sankeyData"===i.type?mf.EVENT_CLICK_DATA:mf.EVENT_CLICK_LABEL,data:i.data}),i.data instanceof ht.Data&&(r=t.instance.sm,a=t.params.selectMode,n=t.params.cancelableWhenSingle,"single"===a&&(r.each(function(){}),r.co(i.data)?n&&r.cs():r.ss(i.data)),"multiple"===a)&&(r.co(i.data)?r.rs(i.data):r.as(i.data))):t.instance.fireEvent({kind:mf.EVENT_CLICK_EDGE,sourceData:i.data.node1,targetData:i.data.node2,value:i.data.value}))},i.onMove=function(e,t,i){if(!ui(e)){var r,a,n=t.ui,o=t.params,l=t.instance,s=o.hoverStyle,d=o.draggable,h=l.data,c=l.view;if(!vf){var u=!1;if(n.hoverData&&(void 0!==(g=n.hoverData).dataIndex?g.pathProxy&&pd(g.pathProxy,i.x-n.layoutRect.x,i.y-n.layoutRect.y)&&(u=!0):de(g._drawing_.dataRect,{x:i.x-n.layoutRect.x,y:i.y-n.layoutRect.y})&&(u=!0),u||(delete n.hoverData,h.iv())),u)n.active=!0;else{var g=bf(t,i);if(g&&"sankeyLabel"!==g.type){if(g.data instanceof ht.Data&&g.data.s("disabled"))return delete n.active,Q(c,"not-allowed"),void x.hide();n.active=!0,n.hoverData=g.data,h.iv()}}}n.hoverData?(void 0!==n.hoverData.dataIndex?(r=mf.getLabel(n.hoverData.node1)+" -> "+mf.getLabel(n.hoverData.node2),a=n.hoverData.value,o.cursorControl||Q(c,s.cursor)):(r=mf.getLabel(n.hoverData),a=n.hoverData._drawing_.layout.value,o.cursorControl||Q(c,d?"move":s.cursor)),u={data:n.hoverData,name:r,value:a},l.showLabelToolTip(e,r,u)):(delete n.active,o.cursorControl||Q(c,null),x.hide())}},i.onLeave=function(e,t,i){var r=t.ui,a=t.params,t=t.instance,n=t.data,t=t.view;r.active&&(delete r.hoverData,delete r.active,n.iv(),a.cursorControl||Q(t,null),x.hide())},i.onBeginDrag=function(e,t,i){t.params.draggable&&(t=bf(t,i))&&"sankeyData"===t.type&&!t.data.s("disabled")&&(pf=i.x,ff=i.y,vf=t.data,yf={x:vf._drawing_.offset.x,y:vf._drawing_.offset.y})},i.onDrag=function(e,t,i){vf&&(vf._drawing_.offset.x=yf.x+(i.x-pf),vf._drawing_.offset.y=yf.y+(i.y-ff),t.data.iv())},i.onEndDrag=function(e,t,i){vf&&(yf=vf=ff=pf=null)},t})(wo)),Pf=(()=>{function w(e,t,i){this.p0=e,this.p1=t,this.p2=i}var e=w.prototype;return e.drawMeshLineToContext=function(e,t){var i=e[this.p0],r=e[this.p1],e=e[this.p2];t.moveTo(i.x,i.y),t.lineTo(r.x,r.y),t.lineTo(e.x,e.y),t.lineTo(i.x,i.y)},e.drawImageToContext=function(e,t,i,r){var a=e[this.p0],n=e[this.p1],e=e[this.p2];w.drawImageToContextWithPoints(t,i,r,a.x,a.y,n.x,n.y,e.x,e.y,a.u,a.v,n.u,n.v,e.u,e.v)},w.extendVert=function(e,t,i,r,a,n,o){r=2*t-r-n,n=2*i-a-o,a=e.clipExtend/rr(r*r+n*n);return[t+r*a,i+n*a]},w.drawImageToContextWithPoints=function(e,t,i,r,a,n,o,l,s,d,h,c,u,g,p){d*=e.width,c*=e.width,g*=e.width,h*=e.height,u*=e.height,p*=e.height;var f=w.extendVert(i,r,a,n,o,l,s),v=w.extendVert(i,n,o,r,a,l,s),y=w.extendVert(i,l,s,n,o,r,a),f=(t.beginPath(),t.moveTo(f[0],f[1]),t.lineTo(v[0],v[1]),t.lineTo(y[0],y[1]),t.closePath(),n-=r,o-=a,l-=r,s-=a,(c-=d)*(p-=h)-(g-=d)*(u-=h));0!=f&&(r=r-(v=(p*n-u*l)*(f=1/f))*d-(y=(c*l-g*n)*f)*h,a=a-(l=(p*o-u*s)*f)*d-(n=(c*s-g*o)*f)*h,t.save(),t.transform(v,l,y,n,r,a),t.clip(),Gt(t,e,0,0,e.width,e.height,i.data,i.view),t.restore())},w})(),Cf=(()=>{function p(){this.points=[],this.verts=[]}var e=p.prototype;return e.move=function(e,t){for(var i=0;i{function e(e,t,i){e=r.call(this,e,t,i)||this;return e._innerPrefix="perspective",e}_inheritsLoose(e,r);var t=e.prototype;return t.drawImpl=function(t,i,e){var a=this,r=a.params,n=r.image,r=r.editEnable;if(ti(n)){for(var o,l=a._getDiv(),s=l.vDiv,d=l.hDiv,l=a.drawInfo.ui,h=a._mesh2D,c=(void 0===h&&(h=a._initMesh2d(),a._oldSize={width:i.width,height:i.height},a._oldDiv={hDiv:d,vDiv:s}),a._oldSize.width===i.width&&a._oldSize.height===i.height||(u=a.data.a("_points"),l.fromEditChange?delete l.fromEditChange:(((c=a.view.dm().getHistoryManager())&&c.getHistories().length-1===c.getHistoryIndex()||!c)&&u&&(u.forEach(function(e){e.x=e.x/a._oldSize.width*i.width,e.y=e.y/a._oldSize.height*i.height}),a.data.a("_points",he(u))),h=a._initMesh2d()),a._oldSize={width:i.width,height:i.height}),a._oldDiv.hDiv===d&&a._oldDiv.vDiv===s||(h=a._mesh2D=Cf.createMapMesh(i.width,i.height,s,d),o=a._getEditPointIndex(),l.dragPointsInfo.forEach(function(e,t){return e.pointIndex=o[t]}),a._oldDiv={hDiv:d,vDiv:s}),l.dragPointsInfo[0]),u=l.dragPointsInfo[2],g=l.dragPointsInfo[4],p=l.dragPointsInfo[6],f=new O(c.point.x,c.point.y),v=new O(u.point.x,u.point.y),y=new O(g.point.x,g.point.y),w=new O(p.point.x,p.point.y),m=0;m<=d;m++)for(var x=(new O).lerpVectors(f,w,m/d),b=(new O).lerpVectors(v,y,m/d),D=m*(s+1),I=0;I<=s;I++){var T=(new O).lerpVectors(x,b,I/s);h.points[D+I].x=T.x,h.points[D+I].y=T.y}l.dragPointsInfo.forEach(function(e,t){var i=h.points[e.pointIndex],r=i.x,i=i.y;e.point.x=r,e.point.y=i,e.rect=a._getEditPointRect(t,r,i)}),t.save();c=ti(n);h.drawImageToContext(c,t,{data:a.data,view:a.view,clipExtend:0}),r&&(t.save(),t.fillStyle="white",t.strokeStyle="#0000ff",t.lineWidth=1,l.dragPointsInfo.forEach(function(e){e=e.rect;t.beginPath(),t.rect(e.x,e.y,e.width,e.height),t.fill(),t.stroke()}),t.restore()),t.restore()}else a.iv()},t._initMesh2d=function(){var n=this,e=n.rect,t=n._getDiv(),i=t.vDiv,r=n.drawInfo.ui,o=n._mesh2D=Cf.createMapMesh(e.width,e.height,i,t.hDiv),l=n.data.a("_points");return r.dragPointsInfo=n._getEditPointIndex().map(function(e,t){var i,r=o.points[e],a=r.x,r=r.y;return!l||0!==t&&2!==t&&4!==t&&6!==t||(a=l[(i={0:0,2:1,4:2,6:3})[t]].x,r=l[i[t]].y),{rect:n._getEditPointRect(t,a,r),point:{x:a,y:r},pointIndex:e}}),o},t._resizePoint=function(e){var t=this.rect,i=this.drawInfo,r=this._oldSize,i=i.ui.dragPointsInfo;i[e].point={x:i[e].point.x/r.width*t.width,y:i[e].point.y/r.height*t.height}},t._getEditPointRect=function(e,t,i){var r=this.params.editPointSize;return 0===e?{x:t,y:i,width:r,height:r}:1===e?{x:t-r/2,y:i,width:r,height:r}:2===e?{x:t-r,y:i,width:r,height:r}:3===e?{x:t-r,y:i-r/2,width:r,height:r}:4===e?{x:t-r,y:i-r,width:r,height:r}:5===e?{x:t-r/2,y:i-r,width:r,height:r}:6===e?{x:t,y:i-r,width:r,height:r}:7===e?{x:t,y:i-r/2,width:r,height:r}:void 0},t._getEditPointIndex=function(){var e=this._getDiv(),t=e.vDiv,e=e.hDiv;return[0,t/2,t,(e/2+1)*(t+1)-1,(e+1)*(t+1)-1,(e+1)*(t+1)-1-t/2,e*(t+1),e/2*(t+1)]},t._getDiv=function(){var e=te(ce(this.params.vDiv,2),12),t=te(ce(this.params.hDiv,2),12);return{vDiv:e%2==0?e:e+1,hDiv:t%2==0?t:t+1}},e})(fo);var Ff=!1;function Nf(e,t,i,r){var a=new O(Bf[i].x-Bf[t].x,Bf[i].y-Bf[t].y);a.setLength(r),e[t].point.x=Bf[t].x+a.x,e[t].point.y=Bf[t].y+a.y,e[i].point.x=Bf[i].x+a.x,e[i].point.y=Bf[i].y+a.y}function Ef(e,t,i,r){var a=new O(Bf[t].x-Bf[i].x,Bf[t].y-Bf[i].y),a=(a.setLength(a.length()+r).add(Bf[i]),e[t].point.x=a.x,e[t].point.y=a.y,new O(Bf[i].x-Bf[t].x,Bf[i].y-Bf[t].y));a.setLength(a.length()+r).add(Bf[t]),e[i].point.x=a.x,e[i].point.y=a.y}function kf(e,t,i,r){var a=G(dr(e.y-If.y,e.x-If.x)),i=e.x>If.x&&Bf[t].x>Bf[i].x||e.xIf.y&&Bf[t].y>Bf[r].y||e.y3/Jr(a))switch(Tf){case 0:"x"===(Vf=void 0===Vf?kf(n,0,2,6):Vf)&&(t=-(n.x-If.x),Ef(o,0,2,t=Bf[0].x>Bf[2].x?-t:t)),"y"===Vf&&(t=-(n.y-If.y),Ef(o,0,6,t=Bf[0].y>Bf[6].y?-t:t));break;case 1:Nf(o,0,2,n.x-If.x);break;case 2:"x"===(Vf=void 0===Vf?kf(n,2,0,4):Vf)&&(t=n.x-If.x,Ef(o,2,0,t=Bf[2].xBf[4].y?-t:t));break;case 3:Nf(o,2,4,n.y-If.y);break;case 4:"x"===(Vf=void 0===Vf?kf(n,4,6,2):Vf)&&(t=n.x-If.x,Ef(o,4,6,t=Bf[4].xBf[4].x?-t:t)),"y"===Vf&&(t=n.y-If.y,Ef(o,6,0,t=Bf[6].y{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onBeginDrag=function(e,t,i){var r=t.ui;if(t.params.editEnable){for(var a=t.instance,n=a.data,o=a.view,l=r.dragPointsInfo,s=0;s{function e(){var e=r.apply(this,arguments)||this;return e.gridWidth=4,e._innerPrefix="wordCloud",e}_inheritsLoose(e,r);var t=e.prototype;return t.init=function(e,t){var i=this.params||{};r.prototype.init.call(this,e,t),this.dm(t.dataModel),i&&((e,t,i)=>{for(var r=i.length;r--;){var a=i[r];if(e[a]!==t[a])return!1}return!0})(i,t,["colors","font","zoomToFit","minFontSize","maxFontSize","rotateRatio","minRotation","maxRotation","randomSeed","randomSeedEnabled","shapeType","isVisible"])||(this._dmDirty=!0),this.randomSeed=t.randomSeed||0,this.build()},t.getDefaultValue=function(e){return e.startsWith("item.point.")?{x:this.rect.x+this.rect.width/2,y:this.rect.y+this.rect.height/2}:e.startsWith("item.rotate.")?0:e.startsWith("item.scale.")?1:void 0},t.handleDataModelChange=function(e){this._dmDirty=!0},t.handleMD=function(e,t,i){this._dmDirty=!0},t.handleMM=function(e,t,i){this._dmDirty=!0},t.handleRectChange=function(){var e=this;!1===e._dmDirty&&(Xf&&clearTimeout(Xf),Xf=setTimeout(function(){Xf=null,e._dmDirty=!0,e.iv()},200))},t.isVisible=function(e){var t;return(t=this.params.isVisible)?t({data:e},this.data,this.view):!1!==e.s("visible")},t.build=function(){var i=this;if(i._dmDirty){var r=i._dmMap={},a=i.wordItemList=[],e=i.dm();if(e.each(function(e){var t;i.isVisible(e)&&(t=e.getId(),(t=r[t]={data:e,text:e.getDisplayName()||e.getName(),weight:_a(e,i.params.valueOption,i.data,i.view)||0,rotateDeg:i.getRotateDeg()}).color=i.getColor(t),a.push(t))}),!(a.length<2)){a.sort(function(e,t){return e.weight>t.weight?-1:1}),i.updateWeightRange(),a.forEach(function(e,t){i.buildTextInfo(e)});for(var e=i.rect,t=i.gridWidth,n=e.width,e=e.height,o=$i(n/t),l=$i(e/t),s=[],d=0;dt?0:i+this.random()*(e-i)},t.getColor=function(e){var t=this.params,i=t.getLabelColor,t=t.colors,r="#fff",a=e.data.s("color");return a&&(r=a),t&&t.length&&(r=t[_i(this.random()*t.length)]),i?i({data:e.data,text:e.text,weight:e.weight,color:r},this.data,this.view):r},t.buildTextInfo=function(e,t){var i=e.text,r=e.data,a=e.rotateDeg,n=this.params,o=this.weightExtent,l=this.gridWidth,s=n.font,d=n.minFontSize,d=void 0===d?8:d,n=n.maxFontSize,h=o[1]-o[0]||1,t=t||e.weight,t=_i((t-o[0])/h*((void 0===n?50:n)-d)+d);if(t<=2)return!1;var o=e.scale=t/12,h=e.font=(r.s("font")||s).replace(/\d+px/,"12px"),n=fe(h,i),d=(n.width*=o,n.height*=o,(n=a?sa(n,a):n).width),t=n.height,c=$i(d/l),u=$i(t/l),r=c*l,s=u*l,g=Mf(r,s),p=(g.save(),g.translate(r/2,s/2),g.scale(o,o),g.rotate(a),g.font=h,g.fillStyle="#000",g.textBaseline=se,g.textAlign=be,g.fillText(i,0,0),g.restore(),g.getImageData(0,0,r,s).data),f=[];g.fillStyle="rgba(0,255,0,0.5)";for(var v=0;v{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onHover=function(e,t,i){var r=t.instance;t.params.toolTipEnabled&&(t=r.checkHit(i))&&t.data&&t.data.getToolTip()&&r.showLabelToolTip(e,t.data.getToolTip(),{data:t.data,text:t.text})},i.onMove=function(e,t,i){x.hide();var r,a=t.ui,n=t.params,o=t.instance,l=o.data,o=o.view;null!=(r=t.params.hoverStyle)&&r.enabled&&(r=t.instance.checkHit(i),i=null==(t=n.hoverStyle)?void 0:t.cursor,r?(i&&Q(o,i),a.hover&&a.hover===r.data||(a.hover=r.data,l.iv())):(i&&Q(o,B),a.hover&&(delete a.hover,l.iv())))},i.onLeave=function(e,t,i){x.hide();var r=t.instance,a=r.data;Q(r.view,B),t.ui.hover&&(delete t.ui.hover,a.iv())},i.onUp=function(e,t,i){var r;x.hide(),null!=(r=t.params.hoverStyle)&&r.enabled&&(t=(r=t.instance).checkHit(i))&&r.fireEvent({kind:zf.EVENT_CLICK_DATA,data:t.data,nativeEvent:e})},t})(wo)),Hf=function(l,e){var t=e.cx,i=e.cy,r=e.rx,a=e.ry,n=.5522848*r,o=.5522848*a,s=void 0===e.drawClockwise||e.drawClockwise,d=void 0===e.isStartPath||e.isStartPath;if(void 0!==e.startPercent&&void 0!==e.totalPercent){for(var h=e.startPercent||0,c=e.totalPercent||0,u=[[t+r,i,t+r,i+o,t+n,i+a,t,i+a],[t,i+a,t-n,i+a,t-r,i+o,t-r,i],[t-r,i,t-r,i-o,t-n,i-a,t,i-a],[t,i-a,t+n,i-a,t+r,i-o,t+r,i]],g=[],p=h,f=c;p{function e(){var e=i.apply(this,arguments)||this;return e._innerPrefix="funnel",e}_inheritsLoose(e,i);var t=e.prototype;return t.init=function(e,t){i.prototype.init.call(this,e,t),this.dm(t.dataModel)},t.getDefaultValue=function(e){if(e.startsWith("init."))return 0},t.build=function(e){var a=this,n=a.data,o=a.view,t=a.params,i=t.min,l=void 0===i?0:i,i=t.max,s=void 0===i?100:i,i=t.gap,d=void 0===i?5:i,i=t.padding,r=t.labelStyle,h=void 0===r?{}:r,r=t.labelLineStyle,r=void 0===r?{}:r,c=t.colors,u=t.funnelAlign,t=t.funnelStyle,t=void 0===t?{}:t,g=a.dm(),p=a.itemList=[];g.each(function(e,t){var i=xr(e.a("value")||0,[l,s]);p.push({data:e,rect:ie,color:c[t%c.length],value:i,percent:xr(i,[l,s])/s,name:e.getDisplayName()||e.getName(),bodyPathProxy:new Ws,topPathProxy:new Ws,pointList:[]})}),p.sort(function(e,t){return e.percent>t.percent?-1:1});var g=_slicedToArray(pe(i),4),i=g[0],f=g[1],v=g[2],g=g[3],t=(t.type&&(i+=(t.perspectiveRatio||.1)*e.width/2),Wr(he(e),[i,f,v,g])),y=t.x,w=t.width,m=r.length||0,e=p.length,x=(t.height-d*(e-1))/e,b=t.y,D=y+w/2;p.forEach(function(e,t){var i=e.percent,r=e.pointList,t=p[t+1],t=t?t.percent:l/s,t=(i&&(le===u?(r.push([y,b]),r.push([y+w*i,b]),r.push([y+w*t,b+x]),r.push([y,b+x])):oe===u?(r.push([y+(1-i)*w,b]),r.push([y+w,b]),r.push([y+w,b+x]),r.push([y+(1-t)*w,b+x])):(r.push([D-(i=w*i/2),b]),r.push([D+i,b]),r.push([D+(i=w*t/2),b+x]),r.push([D-i,b+x]))),r.length?a.getTransitionValue("pointList.".concat(e.data.getId()),r):r),i=h.visible,r=h.position,t=(h.font,r===le?{x:(t.length?t[3][0]+(t[0][0]-t[3][0])/2:y+w/2)-m,y:b+x/2}:r===De?{x:y+w/2,y:b+x/2}:{x:(t.length?t[2][0]+(t[1][0]-t[2][0])/2:y+w/2)+m,y:b+x/2});e.textAnchorPoint=t,i&&(e.textParams={style:ue({},h,{position:r,rotate:h.rotate,align:h.align,vAlign:h.vAlign}),formatterFuncParams:{name:e.name,value:e.value,percent:e.percent,data:e.data},formatterTplParams:[e.name,e.value+"",e.percent+""],content:e.name},e.textLayoutUI=Qn(t,e.textParams,n,o)),b+=x+d})},t.checkHit=function(e){for(var t=this.itemList,i=t.length-1;0<=i;i--){var r=t[i];if(pd(r.bodyPathProxy,e.x,e.y)||r.topPathProxy&&pd(r.topPathProxy,e.x,e.y))return r}return null},t.toToolTipTemplateList=function(e,t){return[e,t.value,t.percent]},t.getDefaultFomatter=function(e){return"{a}: {b}"},t.drawImpl=function(p,e,t){var f=this,t=(e=gg(p,e,t.dataModel,t.colors,f),f.build(e),f.params),e=(t.colors,t.labelStyle),v=void 0===e?{}:e,e=t.labelLineStyle,y=void 0===e?{}:e,e=t.funnelStyle,w=void 0===e?{}:e,t=f.itemList,m=w.perspectiveRatio||.1;t.reverse().forEach(function(e,t){var i,r,a,n,o,l,s=e.data,d=e.bodyPathProxy,h=e.topPathProxy,c=e.pointList,u=e.textAnchorPoint,g=e.color;c.length&&(c=f.getTransitionValue("pointList.".concat(s.getId()),c),i=!1,1!==(s=f.getTransitionValue("init.".concat(s.getId()),1))&&(p.save(),p.globalAlpha=s,i=!0),d.setContext(p),("cone3d"===w.type?(a=(s=_slicedToArray(c,4))[0],r=s[2],o=s[3],l=((s=s[1])[0]-a[0])*m,n=a[0]+(s[0]-a[0])/2,s=(s[0]-a[0])/2,d.beginPath(),d.moveTo(a[0],a[1]),Hf(d,{cx:n,cy:a[1],rx:s,ry:l/2,startPercent:0,totalPercent:.5,drawClockwise:!1,isStartPath:!1}),d.lineTo(r[0],r[1]),Hf(d,{cx:n,cy:o[1],rx:(r[0]-o[0])/2,ry:(r[0]-o[0])/2*m,startPercent:0,totalPercent:.5,drawClockwise:!0,isStartPath:!1}),d.closePath(),r=Ti(c.map(function(e){return{x:e[0],y:e[1]}})),o=Gr(g),d.fillStyle=ge(p,r,f.toBlendedColor(["linear",0,0,1,0,0,o,.5,Oa(o,w.brightness||30),1,o])),d.fill(),h.setContext(p),h.beginPath(),Hf(h,{cx:n,cy:a[1],rx:s,ry:l/2}),h.fillStyle=f.toBlendedColor(w.topColor),h):(n=(o=_slicedToArray(r=c.map(function(e){return{x:e[0],y:e[1]}}),4))[0],s={x:n.x+((a=o[3]).x-n.x)/2,y:n.y+(a.y-n.y)/2},r.unshift(s),r.push(he(s)),l=null,h=ie,h=w.cornerRadius?(l=(c=Ui(r,w.cornerRadius||0)).points,o=c.segments,d.beginPath(),Wt(d,l,o,!0),l.toArray()):(Wt(d,r),r),a=Ti(h),p.fillStyle=ge(p,a,f.toBlendedColor(g)),p)).fill(),s=void 0===(n=v.position)?be:n,c=y.visible,o=y.length,c&&o&&s!==De&&(l=u.x,d=u.y,Ra(p,y),p.beginPath(),s===oe?(p.moveTo(l,d),p.lineTo(l-o,d)):(p.moveTo(l,d),p.lineTo(l+o,d)),p.strokeStyle=y.color||p.fillStyle,p.stroke()),e.textLayoutUI&&(ue({iconData:e.data},v,ue({drawParams:{data:e.data}},e.textParams)),Yn(p,{iconData:e.data,style:e.textParams.style,drawParams:{data:e.data}},e.textLayoutUI,f)),i)&&p.restore()})},e})(Po),Of=(qf.CLICK_DATA="clickData",i(qf,["dataModel","colors","padding","gap","min","max","funnelAlign","labelStyle","labelLineStyle","toolTipEnabled","toolTipFormatter","getToolTipFormatter","toolTipImage","getToolTipSize","getToolTipAttr","funnelStyle","legendStyle"])),Kf=mo((e=>{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onLeave=function(e,t,i){x.hide()},i.onMove=function(e,t,i){t=t.instance,i=t.checkHit(i);i?t.showLabelToolTip(e,i.name,{data:i.data,name:i.name,value:i.value,percent:i.percent}):x.hide()},i.onUp=function(e,t,i){t=t.instance,i=t.checkHit(i);i&&t.fireEvent({kind:qf.CLICK_DATA,data:i.data,value:i.value,percent:i.percent})},t})(wo));function Gf(e,t,a,i){for(var r=i.overflow,n=i.justify,o=i.font,l=i.textAlign,s=i.cx,d=i.cy,h=i.x,i=i.y,c=t,u=0,g=(void 0!==s&&void 0!==d&&void 0!==h&&void 0!==i&&0{if(!g||p+g=a.length);)p+=g;var t,i=e-p,r=(f>=a.length&&(f=a.length-2),i=i?(t=a[f-2]+(a[f]-a[f-2])*i/g,a[f-1]+(a[f+1]-a[f-1])*i/g):(t=a[f-2],a[f-1]),dr(a[f+1]-a[f-1],a[f]-a[f-2])+u);return[t,i,r]})(D+V/2);e.save(),e.translate(B[0],B[1]),e.rotate(B[2]),e.fillText(T,0,0),e.restore(),D+=V+v*(" "==T?2:1)}e.restore()}function Wf(e){var a,t=e.rect,i=e.params,r=i.centerX,n=i.centerY,o=i.radius,l=i.dataWidth,s=i.startAngle,d=i.gapAngle,i=e.drawInfo.ui.datas,h=(a=e,i.forEach(function(e){var t=jf(e._drawing_.outEdges,Zf),i=jf(e._drawing_.inEdges,_f),r=a._getValue(e)||0;e._drawing_.layout.value=ce(t+i,r)}),t.x+Ea(r,t.width)),c=t.y+Ea(n,t.height),u=Ea(o,te(t.width,t.height)),g=(Se-d*q*i.length)/jf(i,$f),p=-s*q,f=(i.forEach(function(e){e._drawing_.layout.angle=e._drawing_.layout.value*g,e._drawing_.layout.startAngle=p,e._drawing_.layout.endAngle=p+e._drawing_.layout.angle,e._drawing_.layout.cx=h,e._drawing_.layout.cy=c,e._drawing_.layout.r0=u,e._drawing_.layout.r=u+l,p+=e._drawing_.layout.angle+d*q}),new O(h,c));i.forEach(function(a){var e=(a._drawing_.layout.endAngle+a._drawing_.layout.startAngle)/2,i=new O(h+W(e)*u,c+K(e)*u),r=f.clone().sub(i).rotateAround(new O(0,0),Be).normalize(),e=(a._drawing_.edges.sort(function(e,t){e=e.node1===a?e.node2:e.node1,e=(e._drawing_.layout.endAngle+e._drawing_.layout.startAngle)/2,e=new O(h+W(e)*u,c+K(e)*u).clone().sub(i),e=ir(r.dot(e.normalize())),t=t.node1===a?t.node2:t.node1,t=(t._drawing_.layout.endAngle+t._drawing_.layout.startAngle)/2,t=new O(h+W(t)*u,c+K(t)*u).clone().sub(i);return e-ir(r.dot(t.normalize()))}),a._drawing_.edges),n=a._drawing_.layout.startAngle;e.forEach(function(e){var t=e.value,i=e.minValue,r=0;e.node1===a?(r=t*g,e.layout.angles[0]=n,e.layout.angles[1]=n+r):(r=(void 0!==i?i:t)*g,e.layout.angles[2]=n,e.layout.angles[3]=n+r),e.layout.cx=h,e.layout.cy=c,e.layout.r0=u,n+=r})})}function jf(e,t){for(var i=0,r=e.length,a=-1;++a{function v(e,t,i){e=r.call(this,e,t,i)||this,t=e;return t.clip=!0,t._innerPrefix="chord",e}_inheritsLoose(v,r);var e=v.prototype;return e.getDefaultValue=function(e){if("clipPercent"===e)return 0},e.drawImpl=function(e,t,i){var r,a,n,o,l=this;l.data&&(i.dataModel!==l.dm()&&l.clearTransition(),l.dm(i.dataModel),0!==(a=l._getHaveNameDatas()).size())&&(i=i.hoverStyle,l._initDrawingUI(),Wf(l),1!==(n=l.getTransitionValue("clipPercent",1))&&(o=(a=a.get(0)._drawing_.layout).cx,r=a.cy,a=a.startAngle,e.beginPath(),e.moveTo(o,r),e.arc(o,r,te(t.width,t.height)/2,a,a+Se*n),e.lineTo(o,r),e.clip()),t=!(!l.drawInfo.ui.hoverData||!i.focusable),a=e.globalAlpha,t&&(e.save(),e.globalAlpha=a*i.blurOpacity),l._drawEdge(e,n=function(e){return!l._isAddToAfterDraw(e)},a,t?i.blurOpacity:1),l._drawChordDataRect(e,n),l._drawChordDataLabel(e,n),t&&e.restore(),t)&&(l._drawEdge(e,o=function(e){return l._isAddToAfterDraw(e)},a),l._drawChordDataRect(e,o),l._drawChordDataLabel(e,o))},e._drawEdge=function(a,n,o){var l=this,s=3=i?h[e+"-"+t].minValue=i:(h[t+"-"+e]={source:t,target:e,value:i,minValue:n.value},delete h[e+"-"+t]):h[t+"-"+e]={source:t,target:e,value:i},o(r,a))}),0);for(d in h)a(h[d],c),c++}else e.forEach(function(e,t){var i,r;e&&(i=e.source,i=l[i],r=l[e.target],i)&&r&&(a(e,t),o(i,r))})},e._getLineStyle=function(e){var t,i=this._getLinkInfo(e);return this.drawInfo.ui.hoverData&&e.dataIndex===this.drawInfo.ui.hoverData.dataIndex?(e=this.params.hoverStyle||{},t=i.hoverStyle||{},ue({},this.params.lineStyle,i.lineStyle,e.lineStyle,t.lineStyle)):ue({},this.params.lineStyle,i.lineStyle)},e._getLinkInfo=function(e){for(var t=this.params.links,i=void 0===t?[]:t,r=0,a=i.length;r{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onUp=function(e,t,i){i=rv(t,i);i&&("chordData"===i.type?t.instance.fireEvent({kind:tv.EVENT_CLICK_DATA,data:i.data}):t.instance.fireEvent({kind:tv.EVENT_CLICK_EDGE,sourceData:i.data.node1,sourceValue:i.data.value,targetData:i.data.node2,targetValue:void 0!==i.data.minValue?i.data.minValue:i.data.value}))},i.onMove=function(e,t,i){var r,a,n,o,l,s,d,h,c,u,g,p,f,v,y;ui(e)||(r=t.ui,n=(o=t.instance).data,o=o.view,y=(a=t.params).linkMerge,l=a.hoverStyle,s=a.toolTipEnabled,d=a.dataToolTipFormatter,v=a.edgeToolTipFormatter,h=a.getToolTipFormatter,c=a.toolTipImage,u=a.getToolTipAttr,g=a.getToolTipSize,p=!1,r.hoverData&&(void 0!==(f=r.hoverData).dataIndex?f.pathProxy&&pd(f.pathProxy,i.x,i.y)&&(p=!0):pd(f._drawing_.pathProxy,i.x,i.y)&&(p=!0),p||(delete r.hoverData,n.iv())),p?r.active=!0:(f=rv(t,i))&&(r.active=!0,r.hoverData=f.data,n.iv()),r.hoverData?(void 0!==r.hoverData.dataIndex?s&&(p=tv.getLabel(r.hoverData.node1),t=r.hoverData.value,i=tv.getLabel(r.hoverData.node2),f=void 0!==r.hoverData.minValue?r.hoverData.minValue:r.hoverData.value,(v=v)||(v=y&&void 0!==r.hoverData.minValue?"{a} -> {c}: {b}\n{c} -> {a}: {d}":"{a} -> {c}: {b}"),y={type:"edge",isMergeEdge:void 0!==r.hoverData.minValue,sourceData:r.hoverData.node1,sourceValue:t,targetData:r.hoverData.node2,targetValue:f},h&&(v=h(y,n,o)),p={label:v=Ja(v,[p,t,i,f])},c?x.show(e,{getAttr:u,getSize:g,getSizeParams:y,getAttrParams:y,toolTipImage:c,attr:p},n,o):x.show(e,{attr:p},n,o)):s&&(t=tv.getLabel(r.hoverData),i=r.hoverData._drawing_.layout.value,f=d||"{a}: {b}",v={type:"data",data:r.hoverData,name:t,value:i},h&&(f=h(v,n,o)),y={label:f=Ja(f,[t,i+""])},c?x.show(e,{getAttr:u,getSize:g,getSizeParams:v,getAttrParams:v,toolTipImage:c,attr:y},n,o):x.show(e,{attr:y},n,o)),a.cursorControl||Q(o,l.cursor)):(delete r.active,a.cursorControl||Q(o,null),s&&x.hide()))},i.onLeave=function(e,t,i){var r=t.ui,a=t.params,n=a.toolTipEnabled,t=t.instance,o=t.data,t=t.view;r.active&&(delete r.hoverData,delete r.active,o.iv(),a.cursorControl||Q(t,null),n)&&x.hide()},t})(wo)),sv=(s=>{function e(){return s.apply(this,arguments)||this}_inheritsLoose(e,s);var t=e.prototype;return t.init=function(){var e=this;e._maxHeight=240,e.setImage(Lr("list")),e.node.a("level",0),e.initNodePane(e.node),e.cascaderNodes=[e.node],e.cascaderElements=[e.element],e.activeLevel=0,e.boxGap=0},t.getValue=function(){for(var e=this.activeLevel,t=this.cascaderNodes,i=[],r=0;r<=e;r++){var a=t[r].a("dataModel").sm().ld();a&&i.push(a.getName())}return i},t.setValue=function(e){var i,r,a=this;(e=(ci(e)?e.split(","):e)||[])&&e.length&&(a.activeLevel=0,i=a.cascaderNodes,e.forEach(function(e,t){t&&a.appendNext(r.a("children"),r.a("level"));t=i[t].a("dataModel");r=t.getDataByTag(e),t.sm().ss(r)}))},t.getHeight=function(){return this._maxHeight},t.setOption=function(e){var t=this,i=t.caluLevel(e);if(i)for(var r=i-1,a=1;r--;){var n,o,l=new ht.Node;l.s({interactive:!0,pixelPerfect:!1,"select.brightness":1,"2d.movable":!1,"3d.movable":!1,"select.width":0}),t.setImage(Lr("list"),l),l.a("level",a++),t.cascaderNodes.push(l),t.popupByDOM&&(n=t.createElement(),o=t.createGraph(),n.appendChild(o.getView()),t.cascaderElements.push(n),o.dm().add(l)),t.initNodePane(l)}t.setSubPaneData(e),t.setDropdownProperty(t.dropdownProperties)},t.setSubPaneData=function(e){var i=1a.left+a.width&&(d=a.left+a.width-(c+h)),n.left=c+D,ya(n,"transformOrigin",o.transformOrigin),Qt(l),t.setWidth(e.getWidth()),t.setHeight(e.getHeight()),d&&(Z(u.firstRawX)&&(u.firstRawX=+p[0].style.left.replace(D,"")),u.tranlateElementsX(s,d))):(r=u.gv,a=1,c=(h=u._getBottomBoxInfo()).shadow,n=h.shadowBlur,o=h.offsetX,l=e.getRect(),s=p=0,c&&n&&(p=n,s=o),u.popupSizeAbsolute&&(a=1/Jr(r)),t.setScale(a,a),t.setAnchor(e.getAnchorX(),e.getAnchorY()),l.x=l.x+l.width-p+u.boxGap-p+s,t.setRect(l),t.setWidth(e.getWidth()),t.setHeight(e.getHeight()),d=0,!fa(r)&&(h=t.getRect(),c=r.getViewRect(),d=h.x+h.width>c.x+c.width?c.x+c.width-(h.x+h.width):d)&&(Z(u.firstRawX)&&(u.firstRawX=g[0].getRect().x),u.translateNodeX(g.indexOf(t),d)),t.s("clip.direction",e.s("clip.direction")),r.dm().contains(t)||r.dm().add(t),$a(t,r)),u.removeOverPane()},t.removeOverPane=function(){var e,t,i,r,a=this,n=a.cascaderNodes,o=a.cascaderElements,l=a.activeLevel,s=0;if(a.popupByDOM){for(;++l{var t=a[e];r.popupByDOM?ya(o[e].style,"transform","scaleY(0)"):fa(r.gv)?t.setScaleTall(0):t.s("clip.percentage",0),r.appendSubNode(a[e-1],t,e),r.popupByDOM?Vi(function(){ya(o[e].style,"transform","scaleY(1)")}):fa(r.gv)?mi({duration:200,finishFunc:function(){r._transition=!1},action:function(e){t.setScaleTall(e)}}):mi({duration:200,finishFunc:function(){r._transition=!1},action:function(e){t.s("clip.percentage",e)}})})(l)},t.setDropdownProperty=function(r){var e,a=this,n=a.cascaderNodes,o=a.node;for(e in r)(t=>{var i;"drawingInstance"!==t&&("box.maxHeight"===t?a._maxHeight=r[t]:"box.align"===t?a._align=r[t]:"box.gap"===t?a.boxGap=r[t]:"box.triggerByHover"===t?a.triggerByHover=r[t]:"box.isCheckable"===t?a.checkableFunc=r[t]:"box.nextArrowImage"===t?a.nextArrow=r[t]:"badgeStyle"===t?(i=ue({},o.a(t),r[t]),n.forEach(function(e){e.a("badgeStyle",i)})):"handleEvent"!==t&&n.forEach(function(e){e.a(t,r[t])}))})(e);a.cascaderElements.forEach(function(e){a.setElementShadow(r,e)}),a.dropdownProperties=r},t.getDropdownNodeRect=function(){for(var e=this.activeLevel,t=this.cascaderNodes,i=ie,r=0;r<=e;r++)i=Ii(i,t[r].getRect());return i},t.close=function(){var e=0{var e=r[a];ya(e.style,"transform","scaleY(0)"),setTimeout(function(){wi(e)},200)})();t.popupByDOM&&t.cascaderElements.forEach(function(e){delete e.children[0]._ht.__masterGraph__}),s.prototype.close.call(this,e)}else{t._opened=!1,t.onClose(e);var n=t.gv,o=t.activeLevel,l=t.cascaderNodes;fa(t.gv)?mi({duration:200,finishFunc:function(){t._transition=!1},action:function(e){for(var t=0;t<=o;t++)l[t].setScaleTall(1-e)}}):mi({duration:200,finishFunc:function(){t._transition=!1;for(var e=0;e<=o;e++)n.dm().remove(l[e])},action:function(e){for(var t=0;t<=o;t++)l[t].s("clip.percentage",1-e)}})}},t.getGraphs=function(){var r;return this.popupByDOM?(r=this.activeLevel,this.cascaderElements.reduce(function(e,t,i){return i<=r&&e.push(t),e},[])):this.gv},e})(fl),dv=(l=>{function e(){return l.apply(this,arguments)||this}_inheritsLoose(e,l);var t=e.prototype;return t.init=function(){var t=this;l.prototype.init.call(this),gi?t.dropdown=new yl(t):(t.dropdown=new sv(t),t.dropdown.onClose=function(e){t.editing&&!e&&t.setRawValue(t.dropdown.getValue())})},t.beginEditImpl=function(e,t,i){l.prototype.beginEditImpl.call(this,e,t,i);e=this.dropdown;i&&i.enum?(t=i["box.width"],e.setWidth(t),e.setOption(i.enum),e.open(this.getRawValue(),this.lastGraphRect,this.view)):this.endEdit(!0)},t.close=function(){this.dropdown.close(0{function e(){var e=n.apply(this,arguments)||this;return e._innerPrefix="cascader",e}_inheritsLoose(e,n);var t=e.prototype;return t.init=function(e,t){t.readonly=!0,this.checkDropdownData(t),n.prototype.init.call(this,e,t)},t.beginEditing=function(e){var t=this,i=t.data,r=t.view,a=Ir(r,i,t.comp,e);a&&((i=t.editor=new dv(i,r,t.drawInfo)).addListener(function(e){e.kind===Ho.END_EDIT&&(e.isCancel||(e=e.value,ci(e)&&(e=e.split(",")),t.updateValue(e)),t.endEditing())}),i.beginEdit(t.rect,a.matrix,t.getRawValue(),t.getEditorOption()),n.prototype.beginEditing.call(this,e))},t.getEditorOption=function(){var e=this.params,t=e.dropdownProperties,t=void 0===t?{}:t,i=e.mbDropdownProperties,i=void 0===i?{}:i,e=e.dropdownData,r=n.prototype.getEditorOption.call(this),i=gi?i:t;return i.enum=e,xa(r,i),r},t.getValue=function(){var a,e=this.params,t=e.value,i=e.dropdownData,e=e.labelStyle,e=void 0===e?{}:e,n=[];return t&&t.length&&i&&(a=i,t.forEach(function(e){if(a)for(var t=a.length,i=0;i{function e(e,t,i){e=r.call(this,e,t,i)||this,t=e;return t.clip=!0,t._innerPrefix="axis",e}_inheritsLoose(e,r);var t=e.prototype;return t.getDefaultValue=function(e){return this.drawInfo.ui.animateValues&&this.drawInfo.ui.animateValues[e]},t.drawImpl=function(e,t,i){var a,n,o,l,s,d,r,h,c,u,g,p,f,v,y,w=this;w.data&&(v=i.draw,c=i.xAxisStyle,r=i.yAxisStyle,y=i.xVisible,g=i.yVisible,p=i.dataZoomBackground,f=i.dataZoomBorderColor,h=(i=_slicedToArray(pe(i.padding),4))[0],w.drawInfo.ui.contentRect={x:t.x+(u=i[3]),y:t.y+h,width:t.width-u-i[1],height:t.height-h-i[2]},"top"===c.axisLine.vAlign&&(w.drawInfo.ui.contentRect.y+=c.axisLine.width/2,w.drawInfo.ui.contentRect.height-=c.axisLine.width/2),"bottom"===c.axisLine.vAlign&&(w.drawInfo.ui.contentRect.height-=c.axisLine.width/2),"left"===r.axisLine.align&&(w.drawInfo.ui.contentRect.x+=r.axisLine.width/2,w.drawInfo.ui.contentRect.width-=r.axisLine.width/2),"right"===r.axisLine.align&&(w.drawInfo.ui.contentRect.width-=r.axisLine.width/2),u=[],y&&(void 0===w.drawInfo.ui.xAxis&&(w.drawInfo.ui.xAxis={}),h=w._getXAxisRect(),i=c.interactiveArea,w.drawInfo.ui.xAxis.axisRect=h,w.drawInfo.ui.xAxis.interactiveRect={x:h.x,y:h.y+("top"===i.vAlign?-i.height:"middle"===i.vAlign?(h.height-i.height)/2:h.height),width:h.width,height:i.height},w._drawXAxis(e,u)),y=[],g&&(void 0===w.drawInfo.ui.yAxis&&(w.drawInfo.ui.yAxis={}),c=w._getYAxisRect(),h=r.interactiveArea,w.drawInfo.ui.yAxis.axisRect=c,w.drawInfo.ui.yAxis.interactiveRect={x:c.x+("left"===h.align?-h.width:"middle"===h.align?(c.width-h.width)/2:c.width),y:c.y,width:h.width,height:c.height},w._drawYAxis(e,y)),v&&(a=w._getAnimateValue("zx"),n=w._getAnimateValue("tx"),o=w._getXAxisRect(),l=w._getAnimateValue("zy"),s=w._getAnimateValue("ty"),d=w._getYAxisRect(),v(e,{rect:t,contentRect:w.drawInfo.ui.contentRect,xAxis:{zoom:a,visibleOuterIndexs:u,getXByOuterIndex:function(e){var t=o.x+n;if(0<=e)for(var i=0;i=n.x;){h.push(c);var g=i.getOuterGap("x",c)*r;i._drawXAxisTickLabel(e,c,u,g),c--,u-=i.getOuterGap("x",c)*r}t.push.apply(t,_toConsumableArray(h.reverse().concat(o)))},t._drawXAxisTickLabel=function(s,d,e,t){var h=this,c=h.data,u=h.view,i=h.params,g=i.xAxisStyle,r=i.xMinOuterIndex,a=i.xMaxOuterIndex,n=i.getInnerGaps,p=i.getTickWidth,f=i.getTickHeight,v=i.getTickLabel;if(void 0!==r||void 0!==a){if(void 0!==r&&dw.x+w.width||(i={axis:"x",zoom:y,outerIndex:d,innerIndex:t,innerLength:m.length},o=p(i,c,u),a=f(i,c,u),l={x:e.x-o/2,y:r=n=0,width:o,height:a},"top"===g.tickLine.vAlign&&(n+=e.y,l.y=r+=e.y-a),"middle"===g.tickLine.vAlign&&(n+=e.y-a/2,r+=e.y+a/2,l.y=n),"bottom"===g.tickLine.vAlign&&(n+=e.y,r+=e.y+a,l.y=n),0=n.y;){h.push(c);var g=i.getOuterGap("y",c)*r;i._drawYAxisTickLabel(e,c,u,g),c--,u-=i.getOuterGap("y",c)*r}t.push.apply(t,_toConsumableArray(h.reverse().concat(o)))},t._drawYAxisTickLabel=function(s,d,e,t){var h=this,c=h.data,u=h.view,i=h.params,g=i.yAxisStyle,r=i.yMinOuterIndex,a=i.yMaxOuterIndex,n=i.getInnerGaps,p=i.getTickWidth,f=i.getTickHeight,v=i.getTickLabel;if(void 0!==r||void 0!==a){if(void 0!==r&&dw.y+w.height||(i={axis:"y",zoom:y,outerIndex:d,innerIndex:t,innerLength:m.length},a=p(i,c,u),o=f(i,c,u),l={x:r=n=0,y:e.y-o/2,width:a,height:o},"left"===g.tickLine.align&&(n+=e.x,l.x=r+=e.x-a),"center"===g.tickLine.align&&(n+=e.x-a/2,r+=e.x+a/2,l.x=n),"right"===g.tickLine.align&&(n+=e.x,r+=e.x+a,l.x=n),0{var r=t.instance,a="x"===e?t.params.xMinOuterIndex:t.params.yMinOuterIndex,n="x"===e?t.params.xMaxOuterIndex:t.params.yMaxOuterIndex,t=t.rect,o=1/0,l=-1/0;if(void 0!==a||void 0!==n){if(void 0!==a)if(a<(o=0))for(var s=-1;a<=s;s--)o+=r.getOuterGap(e,s)*i;else for(var d=0;d{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onMove=function(e,t,i){var r=t.ui,a=t.params,n=r.xAxis,o=r.yAxis,l=r.contentRect,s=r.interactiveInfos,d=t.instance,h=d.data,d=d.view;if(C.isDragging())"xy"===r.interactiveAxis&&r.dataZoomRect&&(r.active=!0,a.cursorControl||Q(d,"zoom-in")),"x"===r.interactiveAxis&&(r.active=!0,a.cursorControl||Q(d,"ew-resize")),"y"===r.interactiveAxis&&(r.active=!0,a.cursorControl||Q(d,"ns-resize"));else if(n&&de(n.interactiveRect,i))r.active=!0,r.interactiveAxis="x",h.iv(),a.cursorControl||Q(d,"ew-resize");else if(o&&de(o.interactiveRect,i))r.active=!0,r.interactiveAxis="y",h.iv(),a.cursorControl||Q(d,"ns-resize");else if(de(l,i)){if(s){for(var c=0;cs.axisRect.x+s.axisRect.width)&&(o.dataZoomRect.width=s.axisRect.x+s.axisRect.width-nv.x),"y"===o.interactiveAxis&&(o.dataZoomRect.yd.axisRect.y+d.axisRect.height)&&(o.dataZoomRect.height=d.axisRect.y+d.axisRect.height-nv.y),l&&"xy"===o.interactiveAxis&&nv.y>i.y?o.isResizeDataZoom=!0:o.isResizeDataZoom=!1,n.iv()):void 0!==ov&&(!c||"x"!==o.interactiveAxis&&"xy"!==o.interactiveAxis||t.instance.setCompAttr("tx",hv("x",t,ov.tx+r,u)),!g||"y"!==o.interactiveAxis&&"xy"!==o.interactiveAxis||t.instance.setCompAttr("ty",hv("y",t,ov.ty+a,p)),n.iv()))},i.onEndDrag=function(e,t,i){var a,n,r,o=this,l=t.instance,s=t.instance,d=s.data,s=s.view,h=t.ui,c=t.params,u=c.xVisible,g=c.tx,p=c.zx,f=c.yVisible,v=c.ty,y=c.zy,c=c.getResizeRect;h.dataZoomRect&&(r=h.dataZoomRect,delete h.dataZoomRect,delete h.isResizeDataZoom,(r.width<10||r.height<10)&&(h.isValidDataZoom=!1),h.isValidDataZoom)&&(delete h.isValidDataZoom,h.animateValues={},"xy"===h.interactiveAxis&&c&&nv.y>i.y&&(a=h.xAxis.axisRect,n=h.yAxis.axisRect,r=c({xAxis:{getXByOuterIndex:function(e){var t=a.x+g;if(0<=e)for(var i=0;i{function T(e,t,i){e=r.call(this,e,t,i)||this,t=e;return t._selectFrontRotateDirection=1,t._selectFrontRotateAngle=cv,t._aniRotateAngle=cv,t._preIndex=0,t.clip=!0,t._innerPrefix="rotatePanel",t._innerUUID=Mt(),e}_inheritsLoose(T,r);var e=T.prototype;return e.getDefaultValue=function(e){return this._currentDrawData&&e==="panelScale"+this._currentDrawData.getId()?1:void 0},e.drawImpl=function(d,e,t){var i,r,a,n,o,l,s,h,c,u,g,p,f,v,y,w,m,x,b,D,I=this;I.data&&(t.dataModel!==I.dm()&&I.clearTransition(),I.dm(t.dataModel),0!==I.dm().size())&&(i=I.dm().getRoots().toArray(),w=t.centerX,x=t.centerY,r=t.shortAxisRadius,a=t.lsAxisRatio,n=t.rollAngle,o=t.backgroundImage,l=t.backgroundRotateable,s=t.trackLineStyle,h=t.autoRotate,c=t.enableNearFar,u=t.farMinScale,g=e.x+Ea(w,e.width),p=e.y+Ea(x,e.height),f=r*a,v=r,y=Se/i.length,t=I.dm().sm().ld(),void 0===I._divideAngle&&(I._divideAngle=y),t&&(w=i.indexOf(t),I._divideAngle!==y&&(I._selectFrontRotateAngle=cv-y*w,I._preIndex=w,I._divideAngle=y),I._preIndex!==w)&&(x=G(w-I._preIndex),w>I._preIndex?x>i.length/2?(m=1,x=i.length-x):m=-1:x>i.length/2?(m=-1,x=i.length-x):m=1,I._selectFrontRotateAngle+=m*y*x,I._selectFrontRotateDirection=m,I._preIndex=w),b=I._aniRotateAngle,o&&(d.save(),d.translate(g,p),d.rotate(n*q),d.scale(a,1),l&&d.rotate(b),Y(d,o,{x:-r,y:-r,width:2*r,height:2*r},I.data,I.view),d.restore()),s.visible&&s.width&&(d.save(),d.translate(g,p),d.rotate(n*q),d.beginPath(),Hf(d,{cx:0,cy:0,rx:f,ry:v}),Ra(d,s,I.toBlendedColor(s.color)),d.stroke(),d.restore()),D=[],i.forEach(function(e,t){var i=e.s("offsetAngle")||0,t=b+t*y+i,i=g+f*W(t),t=p+v*K(t),i=new O([i,t]).rotateAround(new O([g,p]),n*q);D.push({x:i.x,y:i.y,data:e,p:(i.y-(p-v))/(2*v)})}),D.sort(function(e,t){return e.y-t.y}),D.forEach(function(e){var t=e.x,i=e.y,r=e.data,e=e.p,a=I._getStyle(r,"iconStyle"),n=I._getStyle(r,"selectStyle"),n=(I._getStyle(r,"disabledStyle"),I._currentDrawData=r,I.getTransitionValue("panelScale"+r.getId(),I.sm.co(r)?n.iconScale:1)),o=a.width*n,l=a.height*n,s={x:t-o/2,y:i-l,width:o,height:l};c&&(s.width=o*u+o*(1-u)*e,s.height=l*u+l*(1-u)*e,s.x=t-s.width/2,s.y=i-s.height/2),a.draw?a.draw(d,{data:r,rect:s},r,I.view):(o=I.getIcon(r))?Y(d,o,s,I.drawInfo.toDrawData(r),I.view):(l={x:-a.width/2,y:-a.height,width:a.width,height:a.height},c&&(l.width=a.width*u+a.width*(1-u)*e,l.height=a.height*u+a.height*(1-u)*e,l.x=-l.width/2,l.y=-l.height/2),d.save(),d.translate(t,i),d.scale(n,n),d.beginPath(),ye(d,l,a.cornerRadius),d.fillStyle=ge(d,l,I.toBlendedColor(a.background)),d.fill(),ve(d,T.getLabel(r),l,I.toBlendedColor(a.color),a.font),d.restore()),void 0===r._drawing_&&(r._drawing_={}),r._drawing_.rect=s}),h?I.drawInfo.ui.rotateToFrontAni||(I.autoSlideTransition||I._initAutoSlideAni(),I.drawInfo.ui.active||I.autoSlideTransition.isRunning()||I.autoSlideTransition.start(),I.autoSlideTransition.updateStatus()):I.autoSlideTransition&&I.autoSlideTransition.isRunning()&&I.autoSlideTransition.stop())},e._updateSlideData=function(){var e,t=this.dm().getRoots(),i=this.sm.ld();i?(e=this.params.clockwiseRotate?-1:1,(i=(i=t.indexOf(i)+e)>t.size()-1?0:i)<0&&(i=t.size()-1),this.sm.ss(t.get(i))):this.sm.ss(t.get(0))},e._initAutoSlideAni=function(){var r=this;r.autoSlideTransition=new Nn,r.autoSlideTransition.onEnterFrame=function(e,t){if(r.data)if(r.params.autoRotate){var i=r.sm;if(i.__belongTo__||(i.__belongTo__=r._innerUUID),i.__belongTo__===r._innerUUID){if(r.params.isSelectFront){if(!i.ld())return void i.ss(r.dm().getRoots().get(0));if(r.stayTimeout)return;r._aniRotateAngle+=.02*r.params.rotateSpeed*r._selectFrontRotateDirection,(0=r._selectFrontRotateAngle||r._selectFrontRotateDirection<0&&r._aniRotateAngle<=r._selectFrontRotateAngle)&&(r._aniRotateAngle=r._selectFrontRotateAngle,r.stayTimeout=setTimeout(function(){r._updateSlideData(),Vi(function(){delete r.stayTimeout})},r.params.selectFrontStayTime))}else r._aniRotateAngle+=.02*r.params.rotateSpeed*(r.params.clockwiseRotate?1:-1);r.autoSlideTransition.iv(r.data)}}else r.autoSlideTransition.stop()}},e._getStyle=function(e,t){return ue({},this.params[t],e.s(t))},e.getIcon=function(e){var t=this._getStyle(e,"selectStyle"),i=this._getStyle(e,"disabledStyle"),r=this._getStyle(e,"iconStyle").icon;return this.isDisabled(e)&&i.icon?i.icon:this.sm.co(e)&&t.icon?t.icon:e.getIcon()||r},e.isDisabled=function(e){var t;return(t=this.params.isDisabled)?t({data:e},this.data,this.view):!!e.s(c)},e.fireEventWithDisabled=function(e){var t=this.params.disabledStyle;(!this.isDisabled(e.data)||null!=t&&t.triggerEvent)&&this.fireEvent(e)},T.getLabel=function(e){return e.getDisplayName()||e.getName()||""},T})(Po),El=(uv.EVENT_CLICK_DATA="clickData",i(uv,["dataModel","centerX","centerY","shortAxisRadius","lsAxisRatio","rollAngle","enableNearFar","farMinScale","backgroundImage","backgroundRotateable","clockwiseRotate","autoRotate","rotateSpeed","isSelectFront","selectFrontStayTime","iconStyle","trackLineStyle","hoverStyle","selectStyle","disabledStyle","toolTipEnabled","toolTipFormatter","getToolTipFormatter","toolTipImage","getToolTipSize","getToolTipAttr"]));function gv(e,t){if(!e.instance)return null;for(var i=e.instance.dm().getRoots(),r=0;r{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onUp=function(e,r,t){var i=r.params,a=r.ui,n=r.data,o=r.instance,t=gv(r,t);ui(e)&&i.autoRotate&&!o.autoSlideTransition.isRunning()&&o.autoSlideTransition.start(),t&&!a.rotateToFrontAni&&(o.stayTimeout&&(clearTimeout(o.stayTimeout),delete o.stayTimeout),o.isDisabled(t)||(o.sm.ss(t),i.isSelectFront&&(a.rotateToFrontAni=!0,Vi(function(){var t=o._selectFrontRotateAngle-o._aniRotateAngle,i=o._aniRotateAngle;r.ui.rotateToFrontAni=mi({duration:500,finishFunc:function(){delete r.ui.rotateToFrontAni},action:function(e){o._aniRotateAngle=i+e*t,n.iv()}})}))),o.fireEventWithDisabled({kind:uv.EVENT_CLICK_DATA,data:t}))},i.onMove=function(e,t,i){var r=t.ui,a=t.params,n=t.instance,t=gv(t,i),i=n.data,o=n.view;t?(r.active=!0,a.cursorControl||Q(o,(n.isDisabled(t)?a.disabledStyle:a.hoverStyle).cursor),n.autoSlideTransition&&n.autoSlideTransition.stop(),n.stayTimeout&&(clearTimeout(n.stayTimeout),delete n.stayTimeout),n.showLabelToolTip(e,t.getDisplayName(),{data:t})):r.active&&(delete r.active,a.cursorControl||Q(o,null),i.iv(),x.hide())},i.onLeave=function(e,t,i){var r=t.instance,a=r.data,r=r.view,n=t.ui,t=t.params;n.active&&(delete n.active,t.cursorControl||Q(r,null),a.iv(),x.hide())},t})(wo)),vv=1e4,yv=1e4,wv="Point",mv="LineString",xv="MultiPoint",bv="Polygon",Dv="MultiLineString",Iv="MultiPolygon",Tv=(()=>{function e(e,t,i){this.boundingPoints=[],this.uuid=Mt();var r=this;r.propertyes=t,r.htProperties=i||{},e&&(t=e.type,i=e.coordinates,(r.type=t)===wv?r.point=r.convertToMercator(i[0],i[1]):t===mv?r.line=i.map(function(e){return r.convertToMercator(e[0],e[1])}):t===xv?r.points=i.map(function(e){return r.convertToMercator(e[0],e[1])}):t===bv?r.polygon=i.map(function(e){return e.map(function(e){return r.convertToMercator(e[0],e[1])})}):t===Dv?r.lines=i.map(function(e){return e.map(function(e){return r.convertToMercator(e[0],e[1])})}):t===Iv&&(r.polygons=i.map(function(e){return e.map(function(e){return e.map(function(e){return r.convertToMercator(e[0],e[1])})})})),1{function e(e){this.features=e,this.calculateBounding()}var t=e.prototype;return t.calculateBounding=function(){var t;this.features.forEach(function(e){e.bounding&&(t=t?Ii(e.bounding,t):e.bounding)}),this.bounding=t},t.calculateCenterRect=function(e){var t=he(this.bounding),i=e.width/e.height,r=t.width/t.height;return i<=r?(t.width=e.width,t.height=t.width/r):(t.height=e.height,t.width=t.height*r),t.x=e.x+(e.width-t.width)/2,t.y=e.y+(e.height-t.height)/2,t},t.fitRect=function(e){var t=e=this.calculateCenterRect(e),i=t.x,r=t.y,a=this.bounding,n=a.x,o=a.y,l=t.width/a.width,t=t.height/a.height,s=this.matrix=new zt;return s.translate(-n,-o),s.scale(l,t),s.translate(i,r),this.features.forEach(function(e){e.applyFit(s)}),e},t.toLocalPoint=function(e){return this.matrix.apply(pv.apply(void 0,_toConsumableArray(e)))},t.toCoordinates=function(e,t){e=this.matrix.applyInverse({x:e,y:t}),t=e.x,e=e.y;return e=180*(e=(e=0-e)*3e3+yv)/1e4,t=180*(t=t*3e3+vv)/1e4,e=360*sr(Zi(Math.E,e*(j/180)))/j-90,[+parseFloat(t.toFixed(6)),+parseFloat(e.toFixed(6))]},t.getConvexHull=function(e){},e})();function Bv(e,t){this.point=e,this.l=null,this.r=null,this.a=t}var Sv=(()=>{function e(e,t){this.mapInstance=t,this.seriesData=e,this.data=t.data,this.view=t.view}var t=e.prototype;return t.getValue=function(e){var t=this.seriesData;return Fa(e,t.s(_e)||"a",t.getName()||"value")},t.getCoordinates=function(e){var t=this.seriesData,i=t.s("longitudeName")||"longitude",t=t.s("latitudeName")||"latitude",i=e.a(i),e=e.a(t);return ae(i)&&ae(e)?[i,e]:ie},t.calculateStateBackground=function(e,t){var i,r,a,n,o;return e.data&&!Z(t)&&(e=this.seriesData.s("visualMap"))?(i=e.type,r=e.colors,a=e.categoriesMap,i===Oe?(o=e.min,e=e.max,(o=Z(o)?this.dataRange[0]:o)===(e=Z(e)?this.dataRange[1]:e)&&(e=o+1),r?(o=(r.length-1)*(e=(t-o)/(e-o)),n=_i(o),o=$i(o),Pn(r[n],r[o],e)):ie):"categories"===i&&a?a[t]:ie):ie},t.draw=function(e){this.drawImpl(e)},e})(),Uv=(e=>{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.buildCase=function(){var i=this,e=i.mapInstance.mapItems;i.dataMap||(i.dataMap={},i.dataList=[],e.forEach(function(e){var t;e.data&&(t={mapItem:e,value:i.getValue(e.data)},i.dataMap[e.data.getId()]=t,i.dataList.push(t))}),i.dataList.length?(e=i.dataList.map(function(e){return e.value}),i.dataRange=[Wa(e),Wa(e,!0)],i.dataList.forEach(function(e){e.bg=i.calculateStateBackground(e.mapItem,e.value)})):i.dataRange=[0,1])},i.clearData=function(){delete this.dataMap},i.drawImpl=function(t){this.seriesData.s("ignoreDraw")||this.dataList.forEach(function(e){e.bg&&e.mapItem.feature.draw(t,{fillStyle:e.bg})})},i.getTipInfo=function(e){var t=this.seriesData,i=t.getDisplayName()||t.getName();return e?(e=this.dataMap[e.getId()])?[e.bg,i,e.value,t.s("unit"),t.getIcon()]:void 0:[ct,i,"-"]},t})(Sv),Pv={width:5,height:5,offsetX:0,offsetY:0,borderWidth:1},Cv=(()=>{function e(){this.zoom=1,this.ratio=ht.Default.devicePixelRatio,this.dynamicCanvas=qt()}var t=e.prototype;return t.setDrawOption=function(e){xi(this.drawOption)!==xi(e)&&(this.resetCanvas(),this.drawOption=e)},t.draw=function(e,t,i){var r=i.rect,a=i.zoom,n=i.type,o=i.width,l=i.height,s=r.x,d=r.y,h=r.width,r=r.height,c=this.ratio,u=(this.setDrawOption(i),this.setSize(h,r,a),this.dynamicCanvas.getContext("2d")),g=(u.save(),u.globalCompositeOperation="destination-out",u.fillStyle="rgba(0, 0, 0, 0.02)",u.fillRect(0,0,h*a*c,r*a*c),u.restore(),i.refreshRatio),g=void 0===g?.5:g,p=i.activeRatio,f=void 0===p?.02:p,p=i.scale,v=void 0===p?1:p;lr(){function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.buildCase=function(){var i,r=this,a=r.mapInstance;r.option=ue({},Pv,r.seriesData.s("pointStyle")),!r.dataMap&&r.mapInstance.featureCollection&&(r.dataMap={},r.dataList=[],i=r.option.filter,a.getVisibleDatas().forEach(function(e){var t;i&&!i({data:e},a.data,a.view)||(t=r.getCoordinates(e))&&(t={data:e,value:r.getValue(e),point:a.toLocalPoint.apply(a,_toConsumableArray(t)),coordinates:t},r.dataList.push(t),r.dataMap[e.getId()]=t)}),r.kdNode=r.buildKDTree(r.dataList))},i.buildKDTree=function(e){var i,t,r,a=1Math.abs(i)?this.findNearestNeighbor(e,t,r,n+1):r)},i.checkHit=function(e){return this.findNearestNeighbor(this.kdNode,e)},i.clearData=function(){delete this.dataMap,this.starry&&this.starry.resetCanvas()},i.hasStarry=function(){return!!this.option.starryStyle},i.drawImpl=function(l){var s,d,h,c,u,g,p,i,r,f,v,e,y,w,m;this.dataList&&(s=this.mapInstance,d=s.data,h=s.view,e=this.option,c=e.image,u=e.width,g=e.height,p=e.type,i=e.offsetX,r=e.offsetY,f=e.background,v=e.borderColor,y=e.getBackground,w=e.getBorderColor,m=e.draw,l.lineWidth=e=e.borderWidth,c||!ci(f)||y||w||m?this.dataList.forEach(function(e){var t,i,r=e.point,a=e.data,n=e.value,o=e.coordinates;r&&(e=e.rect=nn(r,u,g),m?m(l,{point:r,data:a,coordinates:o},s.data,s.view):c?Y(l,c,e,s.data,s.view):(t=f,i=v,y&&(t=y({data:a,value:n,coordinates:o},d,h)),w&&(i=w({data:a,value:n,coordinates:o},d,h)),Qa(l,r,u,g,p),t&&(l.fillStyle=ge(l,e,t),l.fill()),i&&(l.strokeStyle=v,l.stroke())))}):(l.beginPath(),this.dataList.forEach(function(e){var t=e.point;t&&((t=he(t)).x+=i,t.y+=r,Qa(l,t,u,g,p),e.rect=nn(t,u,g))}),f&&(l.fillStyle=f,l.fill()),v&&e&&(l.strokeStyle=v,l.stroke())),this.drawStarry(l))},i.drawStarry=function(e){var i,r,a,t,n,o,l,s,d,h,c,u,g,p=this.option,f=this.mapInstance;p.starryStyle&&(i=f.data,(r=f.view).__listDraw__||(l=p.starryStyle,a=l.isActive,t=l.background,n=l.refreshRatio,o=l.activeRatio,l=l.scale,this.starry||(this.starry=new Cv),s=this.starry,d=[],this.dataList.forEach(function(e){var t=e.point;!t||a&&!a({data:e.data,coordinates:e.coordinates,point:t},i,r)||d.push(t)}),h=p.type,c=p.width,u=p.height,g=p.offsetX,p=p.offsetY,s.draw(e,d,{zoom:Jr(r),rect:f.bodyRect,background:t,refreshRatio:n,activeRatio:o,scale:l,type:h,width:c,height:u,offsetX:g,offsetY:p})))},t})(Sv),Fv=window.h337,Nv={gradient:ee,blur:.85,radius:40,minOpacity:0,maxOpacity:1},Ev=(e=>{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.getHeatmap=function(){var e=this.mapInstance.bodyRect,t=e.width,t=ue({width:t,height:e.height},Nv,this.seriesData.s("heatmapStyle"));return xi(this.heatmapConfig)!==xi(t)&&(this.heatmapConfig=t,this._heatmap)&&delete this._heatmap,this._heatmap||(this._heatmap=Fv.create(t)),this._heatmap},i.drawImpl=function(e){var t,i,r,a,n,o,l,s,d,h,c;Fv&&(t=this.getHeatmap(),a=this.heatmapConfig,i=a.radius,r=a.min,a=a.max,n=[],d=this.mapInstance.bodyRect,o=d.x,l=d.y,s=d.width,d=d.height,h=1/0,c=-1/0,this.dataList.forEach(function(e){var t=e.value,e=e.point;e&&ae(t)&&(n.push({x:e.x-o,y:e.y-l,value:t,radius:i}),h=te(h,t),c=ce(c,t))}),t.setData({data:n,min:ae(r)?r:h,max:ae(a)?a:c}),e.drawImage(t._renderer.canvas,o,l,s,d))},t})(Av),kv={widthAbsolute:!0,color:"rgb(255,255,255)",width:1,arrowColor:"rgb(255,255,255)",arrowSide:6,flowSpeed:1,lineCenterDistortion:5},Lv=(e=>{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.getFromToCoordinates=function(e){var t=this.seriesData,i=t.s("fromLngLatName")||"fromLngLat",t=t.s("toLngLatName")||"toLngLat",i=e.a(i),e=e.a(t);return ae(i)&&ae(e)?[i,e]:ie},i.buildCase=function(){var r=this,a=r.mapInstance;r.option=ue({},kv,r.seriesData.s("flowStyle")),r.dataMap||(r.dataMap={},r.dataList=[],a.getVisibleDatas().forEach(function(e){var t,i=r.getFromToCoordinates(e);i&&(t=(i=_slicedToArray(i,2))[0],i=i[1],t={data:e,value:r.getValue(e),fromLngLat:t,toLngLat:i,fromPoint:a.toLocalPoint.apply(a,_toConsumableArray(t)),toPoint:a.toLocalPoint.apply(a,_toConsumableArray(i))},r.dataList.push(t),r.dataMap[e.getId()]=t)}))},i.clearData=function(){delete this.dataMap},i.hasStarry=function(){return this.option.pattern&&this.option.lineDashFlow},i.drawImpl=function(a){var n,o,e,l,s,d=this,t=d._preDrawDate?Date.now()-d._preDrawDate:0;d._preDrawDate=Date.now(),d.dataList&&(e=d.mapInstance,n=d.option,e.data,o=e.view,e=n.arrowSide,l=e*W(H/6),s=e*K(H/6),n.lineDashFlow&&(void 0===d._dashOffset&&(d._dashOffset=0),d._dashOffset-=t/100*n.flowSpeed),d.dataList.forEach(function(e){var t,i,r=e.fromPoint,e=e.toPoint;r&&e&&(a.save(),a.beginPath(),a.moveTo(r.x,r.y),t={x:(r.x+e.x)/2,y:(r.y+e.y)/2-n.lineCenterDistortion},(i=new O(e.x-t.x,e.y-t.y)).setLength(i.length()-l),i=i.add(t),a.quadraticCurveTo(t.x,t.y,i.x,i.y),Ra(a,{width:n.widthAbsolute?n.width/Jr(o):n.width,color:n.color,pattern:n.pattern,dashOffset:d._dashOffset||0}),re(n.color)&&(a.strokeStyle=Hr(a,{linearGradientParams:{xStart:r.x,yStart:r.y,xEnd:e.x,yEnd:e.y}},n.color)),a.stroke(),r=new O(t.x-i.x,t.y-i.y).angle(),i=Ti(t=[{x:0,y:0},{x:l,y:-s},{x:l,y:s}]),a.translate(e.x,e.y),a.rotate(r),n.arrowImage?Ba(a,n.arrowImage,Ie,i):(a.beginPath(),t.forEach(function(e,t){0==t?a.moveTo(e.x,e.y):a.lineTo(e.x,e.y)}),a.fillStyle=ge(a,i,n.arrowColor),a.fill()),a.restore())}))},t})(Sv),Sv=(i=>{function s(){return i.apply(this,arguments)||this}_inheritsLoose(s,i);var e=s.prototype;return e.init=function(e,t){i.prototype.init.call(this,e,t);this.dm(t.dataModel),this.setSeriesModel(t.seriesModel)},e.setSeriesModel=function(e){this.setDataModel(e,"_seriesModel")},e.getSeriesModel=function(){return this._seriesModel||this.setSeriesModel(new ht.DataModel),this._seriesModel},e.onDestroy=function(){i.prototype.onDestroy.call(this),this.setSeriesModel(ie)},e.getChartCase=function(e){return this._seriesModelMap[e.getId()]},e.handleRectChange=function(){delete this.bodyRect,this.resetBodyRect(),this.clearCaseData()},e.resetBodyRect=function(){this.featureCollection&&(this.bodyRect=this.featureCollection.fitRect(this.rect))},e.buildSeries=function(){var e,t=this;t.visibleCases=[],t._seriesModel&&(e=t.getSeriesModel(),t._seriesModelMap||(t._seriesModelMap={}),e.eachByHierarchical(function(e){!1!==e.s(J)&&(e=t.createMapCase(e))&&(e.buildCase(),t.visibleCases.push(e))}))},e.createMapCase=function(e){var t,i,r;if(!1!==e.s(J))return t=e.s(Pe),i=e.getId(),(r=this._seriesModelMap[i])||(r=new("point"===t?Av:"heatmap"===t?Ev:"flow"===t?Lv:Uv)(e,this))&&(this._seriesModelMap[i]=r),r},e.clearCaseData=function(){delete this.visibleDatas;var e=this._seriesModelMap;if(e){for(var t in e)e[t].clearData();delete this.mapItems}},e.checkPending=function(){var e,t,r=this,i=r.params.geoUrls,i=void 0===i?[]:i;i.length?i!==r.geoUrls&&(Vi(function(){r.hideToolTip()}),e=r.geoUrls,r.geoUrls=i,t=r.drawInfo.ui,delete r.featureCollection,delete r.mapItems,delete t.hoverItem,delete t.selectItem,delete t.hoverPoint,r.removeTransition("initOpacity"),t=i.filter(function(e){return!!e}),r._pendding=!0,Li(t,function(e){var i,e=e.map(function(e){return yi(e)});r.buildMapItems((i=[],e.forEach(function(e){var t=e.type;"FeatureCollection"===t?(e=e.features.map(function(e){return new Tv(e.geometry,e.properties,e.htProperties)}),i=i.concat(e)):console.warn("Feature type GeoJSON:",t)}),new Vv(i))),r._seriesModelMap={},r.iv(),delete r._pendding}),r.fireEvent({kind:s.EVENT_GEO_URLS_CHANGE,oldValue:e,newValue:i})):console.warn("[Map] Missing attribute geoUrls")},e.buildMapItems=function(e){var i,r=this;e?(r.featureCollection=e,r.resetBodyRect()):e=r.featureCollection,e&&!r.mapItems&&(i=r.mapItems=[],e.features.forEach(function(e){var t=r.getMatchData(e.propertyes);i.push({data:t,feature:e})}))},e.getMatchData=function(e){for(var t=(t=this.params.areaMatchFunc)||function(e,t,i){var r=e.data,e=e.geoProperties;return r.getName()===e.name},i=this.getVisibleDatas(),r=i.length,a=0;an.height?n.width:n.height)*o;if(n<5&&$t(a.point,e)<5/o)return a;if(de(a.rect,e))return a}}}if(t)for(var l=t.length-1;0<=l;l--)if(t[l].feature.checkHit(e))return t[l]},e.isMapItem=function(e){return e&&!!e.feature},e.checkHover=function(e,t){var i,r,a=this,n=a.drawInfo.ui,o=n.hoverItem,l=n.hoverPoint,t=a.checkHit(t);a.isMapItem(t)?i=t:r=t,r!==l&&(l&&a.fireEvent({kind:s.EVENT_LEAVE_POINT,data:l.data,point:l.point,value:l.value,nativeEvent:e}),r&&a.fireEvent({kind:s.EVENT_ENTER_POINT,data:r.data,point:r.point,value:r.value,nativeEvent:e}),n.hoverPoint=r,a.iv()),i!==o&&(o&&(a.setTransitionToValue("shadowBlur"+o.feature.uuid,0),a.setTransitionToValue("shadowOffsetX"+o.feature.uuid,0),a.setTransitionToValue("shadowOffsetY"+o.feature.uuid,0),a.setTransitionToValue("offsetY"+o.feature.uuid,0),a.setTransitionToValue("offsetY"+o.feature.uuid,0),a.fireEvent({kind:s.EVENT_LEAVE_ITEM,data:o.data,geoProperties:o.feature.propertyes,nativeEvent:e})),i&&a.fireEvent({kind:s.EVENT_ENTER_ITEM,data:t.data,geoProperties:i.feature.propertyes,nativeEvent:e}),n.hoverItem=i,a.iv()),t?a.showToolTip(e,t):a.hideToolTip()},e.hideToolTip=function(){this.getChartToolTip().hide(),x.hide()},e.getChartToolTip=function(){return pc},e.showToolTip=function(e,t){var i,r,a=this,n=a.params,o=n.toolTipEnabled,n=n.toolTipOption;o&&(o=t.data,n=he(void 0===n?{}:n),(a.isMapItem(t)?t.feature.propertyes.name?(i=[{title:t.feature.propertyes.name,items:[]}],a.visibleCases.forEach(function(e){e instanceof Uv&&(e=e.getTipInfo(t.data))&&i[0].items.push(e)}),n.content=i,(r=n.getOption)&&(n=r({option:n,data:o,geoProperties:t.feature.propertyes},a.data,a.view)),a.getChartToolTip().show(e,{attr:n},a.data,a.view),x):a.getChartToolTip():(t.value&&x.show(e,{attr:{label:t.value}},a.data,a.view),a.getChartToolTip())).hide())},e.handleUp=function(e,t){var i=2{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onMove=function(e,t,i){t=t.instance;t&&t.checkHover(e,i)},i.onLeave=function(e,t,i){t.ui.hoverItem&&(delete t.ui.hoverItem,t.data.iv());t=t.instance;t&&t.hideToolTip()},i.onUp=function(e,t,i){t=t.instance;t&&t.handleUp(i,e)},i.onDoubleClick=function(e,t,i){t=t.instance;t&&t.handleDoubleClick(i,e)},t})(wo)),Mv=[["q","w","e","r","t","y","u","i","o","p"],["a","s","d","f","g","h","j","k","l","capital"],["code","z","x","c","v","b","n","m","space","delete"]],Xv=[["1","2","3","4","5","6","7","8","9","0"],["-","/",":",";","(",")","$","&","@","."],["letter",",","?","!","'",'"',"space","delete"]],zv=[["1","2","3","delete"],["4","5","6","ok"],["7","8","9","cancle"],["0","."]],Qv=["ok","cancle","capital","code","letter","space","delete"],Yv=(r=>{function e(e,t,i){e=r.call(this,e,t,i)||this,t=e;return t.clip=!0,t._innerPrefix="keyboard",e}_inheritsLoose(e,r);var t=e.prototype;return t.getDefaultValue=function(e){if("visibleTimeout"===e)return 1},t.drawImpl=function(e,t,i){var r=this;if(r.data){var a=i.isNumber,n=i.background,o=i.padding,l=i.inputStyle,s=i.keyStyle;n&&r._drawRect(e,t,n);var d,h,i=_slicedToArray(pe(o),4),n=i[0],o=i[1],c=i[2],i=i[3],u=Ea(s.width,t.width),g=Ea(s.height,t.height),p=Ea(l.height,t.height),f={x:t.x+i,y:t.y+n,width:t.width-i-o,height:t.height-n-c},i=a?(d={x:f.x,y:f.y,width:4*u+3*s.columnGap,height:p},h={x:f.x+3*u+2*s.columnGap+s.columnGap,y:f.y+p+s.rowGap+ +(g+s.rowGap),width:u,height:2*g+s.rowGap},{x:f.x+3*u+2*s.columnGap+s.columnGap,y:f.y+p+s.rowGap+3*(g+s.rowGap),width:u,height:g}):(d={x:f.x+u+s.columnGap,y:f.y,width:8*u+7*s.columnGap,height:p},h={x:f.x+9*u+8*s.columnGap+s.columnGap,y:f.y,width:u,height:p},{x:f.x,y:f.y,width:u,height:p}),v=(r._drawKey(e,"cancle",i),r._drawKey(e,"ok",h),r._drawInput(e,d),[]);if(a)for(var y=0;y<4;y++)for(var w=0;w<4;w++){var m=void 0;if(3===w){if(0!==y)break;m={x:f.x+w*(u+s.columnGap),y:f.y+p+s.rowGap+y*(g+s.rowGap),width:u,height:g}}else if(3===y){if(1{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onDown=function(e,t,i){for(var r,a=t.ui,t=t.instance,n=t.data,o=a.textRects,l=a.inputRect,s=a.keysInfo,d=0;d{for(var i=0;i{var e=(t=d[p]).rect,t=t.key;if(de(e,n)){if("cancle"===t)return a.instance.fireEvent({kind:Yv.EVENT_CANCLE}),{v:void 0};if("ok"===t)return a.instance.fireEvent({kind:Yv.EVENT_OK}),{v:void 0};if("code"===t)return l.keyType=1,o.iv(),{v:void 0};if("letter"===t)return l.keyType=0,o.iv(),{v:void 0};if("capital"===t)return l.isCapital=!l.isCapital,o.iv(),{v:void 0};"space"===t&&(t=" ");var i,e=g+1,r=g+1,e=(h&&0t)for(var p=r.cursorIndex+1;py+v/2&&h.push(f)}0===(r.selectedIndexs=h).length?(r.cursorState="visible_to_hide",o.setTransitionToValue("visibleTimeout",1)):(r.cursorState="hide_to_visible",o.setTransitionToValue("visibleTimeout",0));i.xs.x+s.width-30&&(d=l[0],t=l[l.length-1],o=-Math.max(0,t.x+t.width-d.x-s.width+a.inputStyle.cursorWidth),r.textOffset=Math.max(o,r.textOffset-12)),n.iv()}},i.onEndDrag=function(e,t,i){var r=t.ui,t=t.data;void 0!==r.beginDragCursorIndex&&(delete r.beginDragCursorIndex,r.selectedIndexs&&(r.selectedIndexs,0!==r.selectedIndexs.length)||(r.cursorBlink=!0),r.selectedIndexs&&0===r.selectedIndexs.length&&delete r.selectedIndexs,t.iv())},t})(wo));function Ov(e,t){var i,r,a=e.a("validationRules");e.a("key");for(r in a){var n=a[r];switch(r){case"required":n&&(i=(e=>{if(""===(e=String(e).trim()))return"This field is required."})(t));break;case"minLength":n&&(i=((e,t)=>{if((e=String(e).trim()).length{if((e=String(e).trim()).length>t)return"Must be no more than "+t+" characters"})(t,n));break;case"type":"Email"===n&&(i=(e=>{if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e))return"Please enter a valid email address."})(t)),"URL"===n&&(i=(e=>{if(!/^(?:(?:https?|ftp):\/\/)?(?:www\.)?(?:[a-zA-Z0-9-]+\.){1,}(?:[a-zA-Z]{2,}){1}(?:\/[^ "]+)?$/.test(e))return"Please enter a valid URL."})("https://"+t))}if(i)break}return e.a("errorMsg",i),void 0!==i}var Kv=i((r=>{function e(e,t,i){e=r.call(this,e,t,i)||this,t=e;return t.clip=!0,t._innerPrefix="formItem",e}return _inheritsLoose(e,r),e.prototype.drawImpl=function(e,t,i){var r,a,n,o,l=this,s=l.params,d=s.dName,h=s.labelPosition,c=s.labelAlign,u=s.labelVAlign,g=s.labelColor,p=s.labelFont,f=s.labelOffsetX,v=s.errorMsgVisible,y=s.errorMsgPosition,w=s.errorMsgFont,m=s.validationRules,x=l.params.itemLabel,b=l.params.labelWidth,s=_slicedToArray(pe(s.itemPadding),4),D=s[0],I=s[3],I={x:t.x+I,y:t.y+D,width:t.width-I-s[1],height:t.height-D-s[2]},t=(b<=1&&(b*=I.width),0),D=0,f=(x&&0!==x.trim().length&&(s=fe(p,x),a={width:0,height:0},m&&m.required&&(a=fe(p,"*")),"left"===c&&(n="left"===h||"top"===h||"bottom"===h?I.x:I.x+I.width-b),"center"===c&&("left"===h&&(n=I.x+(b-s.width-a.width)/2),"right"===h&&(n=I.x+I.width-b+(b-s.width-a.width)/2),"top"!==h&&"bottom"!==h||(n=I.x+(I.width-s.width-a.width)/2)),"right"===c&&("left"===h&&(n=I.x+b-a.width-s.width),"top"!==h&&"bottom"!==h&&"right"!==h||(n=I.x+I.width-a.width-s.width)),n+=f||0,"left"!==h&&"right"!==h||(t=b,o=I.height,r=b),"top"!==h&&"bottom"!==h||(D=o=s.height+10,r=I.width),s.width+a.width>r?x=ea(x=0!==a.width?"right"===c?"*"+x:x+"*":x,p,r):m&&m.required&&(ve(e,"*",{x:n+("right"===c?0:s.width),y:"bottom"===h?I.y+I.height-D:I.y,width:a.width,height:o},"red",p,"left",u),"right"===c)&&(n+=a.width),ve(e,x,{x:n,y:"bottom"===h?I.y+I.height-D:I.y,width:s.width,height:o},g,p,"left",u)),{x:I.x+("right"===h?0:t),y:I.y+("bottom"===h?0:D),width:I.width-t,height:I.height-D}),T=-1<["input","inputNumber","inputPassword","textarea"].indexOf(d),V="list"===d;b=e,r=d,m=f,c=l.data,a=l.view,x={handleInnerEvent:{func:"attr@handleInnerEvent",value:function(e,t,i){var r=e.kind,a=e.newValue;if(!V||"clickData"!==r&&"clickBlank"!==r){if(T)if("input"===r)return void Ov(t,e.nativeEvent.target.value);"change"!==r&&"clear"!==r||Ov(t,a=null!=a&&!1!==a?a:"")}else Ov(t,Wv(t))}}},n="".concat(r,".").concat(c.getId()),(s=Rr[n])||(r=ti(Ur(r)),s={fitSize:!0,scrollable:!0,comps:he(r.comps)},Rr[n]=s),(r=s.comps[0]).rect={x:0,y:0,width:m.width,height:m.height},delete r.getColor,delete r.getValue,Object.assign(r,x),Gt(b,s,m.x,m.y,m.width,m.height,c,a,c instanceof ht.Data&&c.s("body.color")),v&&Ir(l.view,l.data,l.comp)&&((o=l.data.a("errorMsg"))?(g=fe(w,o),l.showPopover(void 0,{trigger:"hover",placement:y,image:"drawing.errorToolTip",distance:6,width:g.width,height:g.height},"hover",f,!1)):l.hidePopover())},e})(Po),["dName","itemPadding","key","itemLabel","labelWidth","labelPosition","labelAlign","labelVAlign","labelFont","labelOffsetX","errorMsgVisible","errorMsgPosition","errorMsgFont","validationRules"],["labelColor","errorMsgColor"]),Gv="ht.drawing.formItem";function Wv(e){var t,i=e.a("dName");if("checkGroup"===i||"buttonGroup"===i){"checkGroup"===i&&(t=void 0===e.a("multiple")||e.a("multiple")),"buttonGroup"===i&&(t=void 0!==e.a("multiple")&&e.a("multiple"));for(var r=e.a("dataModel").getRoots(),a=[],n=0;n{function e(e,t,i){e=r.call(this,e,t,i)||this;return e.clip=!0,e}_inheritsLoose(e,r);var t=e.prototype;return t.updateRange=function(e,t){return e?(e[0]>t?e[0]=t:e[1]t&&(s[1]=s[0]+t),void 0!==i&&d[1]-d[0]>i&&(d[1]=d[0]+i),a&&a.row.join(",")===s.join(",")&&a.col.join(",")===d.join(",")||(r.drawInfo.ui.matchingRanges={col:d,row:s},r.iv()),{rowRange:s,columnRange:d}}},t.clearDetect=function(){this.drawInfo.ui.matchingRanges&&(delete this.drawInfo.ui.matchingRanges,this.iv()),this.drawInfo.ui.autoLayoutRect&&(delete this.drawInfo.ui.autoLayoutRect,this.iv()),this.drawInfo.ui.dragOldRect&&(delete this.drawInfo.ui.dragOldRect,this.iv())},t.getLp=function(e,t){return void 0!==e["_"+(t="layout"+t)]?e["_"+t]:e.a(t)},t.updateAutoLayout=function(r){var e,t,a,n,o,l,s,d,i=1s.y)&&((t=d.slice(0,t)).unshift(r),l(t,e,i))})),o&&a.sort(function(e,t){return h.getLp(e,"StartRow")-h.getLp(t,"StartRow")}),a.forEach(function(e,t){var i=h.getAttachRect(e),t=a.slice(0,t);l(t,e,i)})),i)&&(delete r._layoutStartRow,delete r._layoutRowSpan,delete r._layoutStartColumn,delete r._layoutColumnSpan,delete r._unNeedLayout)},t.getBestRow=function(r,a){var n,e,t,o=this,i=o.drawInfo.ui.matchingRanges;if(i)return t=o.unionGridRect(i.row,i.col),(n=[]).push({rect:o.unionGridRect([0,0],[0,o.params.columnNum-1]),endRow:0}),(e=o.data.getAttaches())&&e.each(function(e){var t,i;e===r||(t=o.getLp(e,"StartRow"),i=o.getLp(e,"RowSpan"),e=o.getAttachRect(e),void 0!==a&&e.y+e.height/2>a)||n.push({rect:e,endRow:t+i-1})}),e=o.judgeBestRow(t,n),i={x:(t=o.unionGridRect([e-1,e],i.col)).x,y:t.y,width:t.width,height:2},!o.drawInfo.ui.dragOldRect&&r&&(o.drawInfo.ui.dragOldRect=o.getAttachRect(r)),o.drawInfo.ui.autoLayoutRect&&o.drawInfo.ui.autoLayoutRect.x===i.x&&o.drawInfo.ui.autoLayoutRect.y===i.y&&o.drawInfo.ui.autoLayoutRect.width===i.width&&o.drawInfo.ui.autoLayoutRect.height===i.height||(o.drawInfo.ui.autoLayoutRect=i,o.iv()),e},t.getAttachRect=function(e){var t=this.getLp(e,"StartRow"),i=this.getLp(e,"RowSpan"),r=this.getLp(e,"StartColumn"),e=this.getLp(e,"ColumnSpan");return this.unionGridRect([t-1,t+i-2],[r-1,r+e-2])},t.unionGridRect=function(e,t){for(var i,r=this.drawInfo.ui.gridRects,a=e[0];a<=e[1];a++)for(var n=t[0];n<=t[1];n++){if(!(s=r[a]))for(var o=r[r.length-1],l=(a-r.length)*(this.params.rowHeight+this.params.vGap),s=[],d=0;d=t.y+t.height&&(v.y-=v.height),e.beginPath(),e.fillStyle="rgb(48,242,120)",ye(e,c.autoLayoutRect,0),e.fill()),c.dragOldRect&&(e.beginPath(),e.fillStyle="rgba(48,242,120,0.1)",ye(e,c.dragOldRect,0),e.fill()),c.matchingRanges){if(a.data.a("layoutAuto")&&!a.drawInfo.ui.isResize)return;r=c.matchingRanges,s=r.row,t=r.col,v=c.gridRects[s[0]][t[0]],r=c.gridRects[s[1]][t[1]],s=Ii(v,r);e.beginPath(),e.fillStyle=ge(e,s,i),ye(e,s,d),e.fill()}a.data.__layout__||a.data.updateLayoutAttaches()}},t.drawLoading=function(e){var t,i,r,a,n=this.data,o=n.getDataModel();o&&!n.__editable__&&(t=(i=this.params).loading,i=i.loadingStyle,t?o.getDataByTag(n.getTag()+"Loading")||((r=new ht.Node)._unNeedLayout=!0,r.a({loading:t,loadingStyle:i}),r.s({"layout.h":"leftright","layout.v":"topbottom"}),r.setImage(Ur("loading")),r.setAnchor(he(n.getAnchor())),r.p(he(n.p())),r.setTag(n.getTag()+"Loading"),r.setSize(n.getWidth(),n.getHeight()),r.setScale(n.getScale()),r.setHost(n),o.add(r)):(a=o.getDataByTag(n.getTag()+"Loading"))&&Vi(function(){o.remove(a)}))},e})(fo);var ty=[],iy=(r=>{function p(e,t,i){e=r.call(this,e,t,i)||this;return e._innerPrefix="file",e}_inheritsLoose(p,r);var e=p.prototype;return e.drawImpl=function(e,t,i){var r=this,a=r.drawInfo.ui,n=r.params,o=n.padding,l=n.outBorderStyle,s=n.descriptionStyle,n=n.fileListStyle;l.width&&(e.save(),e.beginPath(),ye(e,t,l.cornerRadius),Ra(e,l),e.stroke(),e.restore());var d,h,c,l=_slicedToArray(pe(o),4),o=l[0],u=l[3],u={x:t.x+u,y:t.y+o,width:t.width-u-l[1],height:t.height-o-l[2]},t=(r._drawActiveArea(e,u),a.activeRect),o=t.height,g=(s.label&&(l=s.label,d=s.color,h=s.font,c=s.align,s=s.paddingTop,ve(e,l,{x:t.x,y:t.y+t.height+s,width:u.width,height:1},d,h,c,"top"),o+=s+fe(h,l).height),a.filesDm);g&&0=r?(e=e.slice(0,r-i.files.length),i.isDisabled=!0):delete i.isDisabled,0!==e.length&&(a=i.files.slice(0,i.files.length),o?(t=i.files).push.apply(t,_toConsumableArray(e)):(i.files=_toConsumableArray(e),i.filesDm&&i.filesDm.clear()),this.fireEvent({kind:p.EVENT_CHANGE,oldValue:a,newValue:i.files.slice(0,i.files.length)}),"list"===n&&e.forEach(function(e){var t=new ht.Data;t.setDisplayName(e.name),t.s("badges",[{icon:l.deleteIcon||"drawing.delete"}]),i.filesDm.add(t)}),this.drawInfo.data.iv())},e.clear=function(){var e=this.drawInfo,t=e.ui.files.slice(0,e.ui.files.length);e.ui.files=[],e.ui.filesDm&&e.ui.filesDm.clear(),e.ui.isDisabled&&delete e.ui.isDisabled,this.fireEvent({kind:p.EVENT_CHANGE,oldValue:t,newValue:[]}),e.data.iv()},e.getFiles=function(){return this.drawInfo.ui.files},e.getDefaultFomatter=function(e){return"{a}"},e.toToolTipTemplateList=function(e,t){return[e]},p})(fo);iy.EVENT_TYPE_ERROR="typeError",iy.EVENT_CHANGE="change",iy.EVENT_CLICK="click",iy.EVENT_CLICK_PREVIEW="clickPreviewIcon";function ry(e){e.ui.isHovering&&(delete e.ui.isHovering,e.data.iv()),Q(e.instance.view,B),x.hide()}var ay=mo((e=>{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onMove=function(e,i,t){var r,a=i.params,n=a.disabled,a=a.displayType,o=i.ui,l=o.activeRect,s=o.previewIconRect,o=o.clearRect,d=i.instance;if(de(l,t)){if(o&&de(o,t))return i.ui.isHovering&&(delete i.ui.isHovering,i.data.iv()),x.hide(),Q(i.instance.view,qe),!0;if("overview"===a&&i.ui.files&&0{function e(e,t,i){e=r.call(this,e,t,i)||this;return e._innerPrefix="skew",e}_inheritsLoose(e,r);var t=e.prototype;return t.drawImpl=function(e,t,i){var r=this,a=i.skewImage,n=i.skewImageAngle,o=i.skewBackground,l=i.skewBorderWidth,s=i.skewBorderColor,d=r.makeInRange("h",i.hSkewAngle),h=r.makeInRange("v",i.vSkewAngle),c=t.x+t.width/2,u=t.y+t.height/2,t={x:-t.width/2,y:-t.height/2,width:t.width,height:t.height};Ei?Ei(e):e.save(),Ni?Ni(e,1,er(h*q),er(d*q),1,c,u):e.transform(1,er(h*q),er(d*q),1,c,u),o&&ua(e,t,o),l&&s&&(e.lineWidth=l,ua(e,t,void 0,s)),a&&(n&&Fi(e,n),Y(e,a,t,r.data,r.view)),ki?ki(e):e.restore(),r.drawInfo.ui.editEnable&&(c=r.getHEditRect(),Y(e,Er("skew"),c,r.data,r.view),u=r.getVEditRect(),e.save(),e.translate(u.x+u.width/2,u.y+u.height/2),e.rotate(-90*q),Y(e,Er("skew"),{x:-u.width/2,y:-u.height/2,width:u.width,height:u.height},r.data,r.view),e.restore()),r.drawInfo.getData()&&(o=r.getBoundExtend(),l=r.getCompAttr("boundExtend")||0,1e-5e[1]?e[1]:t{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.onLeave=function(e,t,i){Q(t.instance.view,B)},i.onMove=function(e,t,i){if(t.ui.editEnable){for(var r=t.instance,a=0;a<2;a++){var n=0===a?r.getHEditRect():r.getVEditRect();if(de(n,i))return void Q(r.view,0===a?"ew-resize":"ns-resize")}Q(r.view,B)}},i.onBeginDrag=function(e,t,i){var r=t.ui,a=t.params,n=t.instance,o=a.hSkewAngle,l=a.vSkewAngle;if(r.editEnable)for(var s=0;s<2;s++){var d=0===s?n.getHEditRect():n.getVEditRect();if(de(d,i))return r.dragInfo={type:0===s?"h":"v",startLp:i,startHSkewAngle:o,startVSkewAngle:l},void((d=t.instance.view.dm().getHistoryManager())&&d.beginTransaction())}},i.onDrag=function(e,t,i){var r,a,n,o,l,s,d,h=t.ui,c=t.rect,u=t.data,g=t.comp,p=t.prefix,t=t.instance;h.dragInfo&&(r=(h=h.dragInfo).type,a=h.startLp,n=h.startHSkewAngle,h=h.startVSkewAngle,d=c.x+c.width/2,o=c.y+c.height/2,l=c.y,c=c.x+c.width,s=new O(("h"===r?a.x:c)-d,("h"===r?l:a.y)-o),c=new O(("h"===r?i.x:c)-d,("h"===r?l:i.y)-o),d=("h"===r?0{function e(e,t,i){e=r.call(this,e,t,i)||this;return e.clip=!0,e._innerPrefix="loading",e}return _inheritsLoose(e,r),e})(fo),[]),sy=(i=>{function e(){return i.apply(this,arguments)||this}_inheritsLoose(e,i);var t=e.prototype;return t.resetCanvas=function(){var e=0{function e(e){var t=this,i=(t.x=t.sx=e.startAnchor-e.startRange/2+lr()*e.startRange,t.tx=e.straight?t.x:e.endAnchor-e.endRange/2+lr()*e.endRange,t.y=1,t.speedY=ce(.001,e.speed+lr()*e.speedFluctuation),t.alpha=1,t.rotation=0,e.scaleStep),r=e.scaleFluctuation,a=e.opacityRate,n=e.opacityStep,o=e.swingFluctuation,l=e.rotationStep,s=e.rotationRate;s&&(t.rotation=lr()*s),l&&(t.rotationDecay=lr()*l),a&&(t.alpha=1-lr()*a),n&&(t.alphaDecay=lr()*n),t.scale=1,r&&(t.scale=ce(0,1+-r/2+lr()*r)),i&&(t.scaleDecay=lr()*i),o&&(t.phase=lr()*cr,t.frequency=1+lr(),t.amplitude=.001+lr()*o),t.config=e}return e.prototype.update=function(){var e=this,t=e.config,t=(t.speedAbsolute?e.y-=e.speedY/t.length:e.y-=e.speedY,ae(e.phase));if(t&&(e.phase+=.1),e.x=e.sx+(e.tx-e.sx)*(1-e.y)+(t?e.amplitude*K(e.phase*e.frequency):0),e.alphaDecay&&(e.alpha+=te(1,e.alphaDecay)),e.scaleDecay&&(e.scale+=e.scaleDecay),e.rotationDecay&&(e.rotation+=e.rotationDecay),e.alpha<=0||e.y<0||e.scale<=0)return!0},e})(),hy=i((t=>{function e(){var e=t.apply(this,arguments)||this;return e.pitems=[],e.clip=!0,e}_inheritsLoose(e,t);var i=e.prototype;return i.onFrame=function(){for(var e=this.params,t=e.emissionCount,i=e.emissionRate,e=e.iconConfig,r=this.pitems,a=r.length-1;0<=a;a--)r[a].update()&&r.splice(a,1);if(e){var n=e.filter(function(e){return e&&e.weight&&(e.type||e.icon)});if(n.length)for(var o,l=0;l{function e(){var e=t.apply(this,arguments)||this;return e.rotation=0,e.blendProcess=0,e.opacityProcess=0,e.scaleProcess=0,e._transitionParams=["rotateStep","blendStep","opacityStep"],e.rotateStepwiseCache=0,e}_inheritsLoose(e,t);var i=e.prototype;return i.update=function(e,t,i){var r=!(3=i&&(r?a[n]=!0:(a[o]>i&&(a[o]=i),a[e]=1))),a[o]=te(i,ce(0,a[o]))},i.onFrame=function(e){var t=this,i=t.params,r=i.rotateStep,a=i.rotateStepwise,n=i.rotateStepwiseDuration,o=i.rotateValues,l=i.rotatePingpong,s=i.blendStep,d=i.blendEnabled,h=i.blendColors,c=i.blendPingpong,u=i.opacityEnabled,g=i.opacityStep,p=i.opacityValues,f=i.opacityPingpong,v=i.scaleEnabled,y=i.scaleStep,w=i.scaleValues,m=i.scalePingpong,x=i.interval;e!==(x=x||16)&&(r*=x=e/x,s*=x,g*=x,y*=x),i.rotateEnabled&&r&&(Z(t.rotateStepwisePass)&&(a&&n?(t.rotateStepwiseCache+=r,t.rotateStepwiseCache>a&&(r-=t.rotateStepwiseCache-a,t.rotateStepwiseCache=0,t.rotateStepwisePass=0)):(t.rotateStepwiseCache=0,delete t.rotateStepwisePass)),ae(t.rotateStepwisePass)?(t.rotateStepwisePass+=e,t.rotateStepwisePass>=n&&delete t.rotateStepwisePass):o&&1{function e(e,t,i){var r,a=3{function e(e,t,i){e=n.call(this,e,t,i)||this;return e.starCanvas=qt(),bi(e.starCanvas,100,100),e}_inheritsLoose(e,n);var t=e.prototype;return t.init=function(e,t){var i,r,a=this.params||{};Dn(a,t,["speed","starScale","count"])||(this.stars=[]),vn(a.starColor,t.starColor)&&(a=this.starCanvas.getContext("2d"),r=(i=100*devicePixelRatio)/2,a.fillStyle=ge(a,{x:0,y:0,width:i,height:i},t.starColor||uy),a.beginPath(),a.arc(r,r,r,0,cr),a.fill()),n.prototype.init.call(this,e,t)},t.onDidResetCanvas=function(){this.stars=[]},t.onFrame=function(){var e=Jr(this.view),t=this.rect.width*e,i=this.rect.height*e,r=this.params;if(!this.stars||!this.stars.length)for(var a=this.stars=[],n=0;n{function e(e,t,i,r){var a=4t.ymax)&&t.reset(),0<(e=t.x)&&e{function e(){var e=a.apply(this,arguments)||this;return e.confettis=[],e.clip=!0,e}_inheritsLoose(e,a);var t=e.prototype;return t.init=function(e,t){var i=this.params||{},r=JSON.stringify(t.iconConfig||[]);Dn(i,t,["minSize","maxSize","count","speed","xpos"])||(this.dirty=!0),r!==this.lastIconConfigStr&&(this.dirty=!0,this.lastIconConfigStr=r),a.prototype.init.call(this,e,t)},t.handleRectChange=function(){this.dirty=!0},t.onFrame=function(){if(this.confettis)for(var e=0,t=this.confettis.length;e{function e(){var e=r.apply(this,arguments)||this;return e.clip=!0,e}_inheritsLoose(e,r);var t=e.prototype;return t.init=function(e,t){var i=this.params||{};Dn(i,t,["imageWidth","imageHeight","inBoundary","direction"])||delete this.pathRange,r.prototype.init.call(this,e,t)},t.handleRectChange=function(){delete this.pathRange,delete this.current},t.onFrame=function(){var e,t,i,r=this,a=r.rect,n=r.params,o=n.imageWidth,l=n.imageHeight,s=n.image,d=n.stepAbsolute,h=n.inBoundary,c=n.direction,a=(r.pathRange||(e=a.x,u=a.y,t=a.width,a=a.height,r.pathRange=c===le?h?[e+t-o,e]:[e+t,e-o]:c===me?h?[u,u+a-l]:[u-l,u+a]:c===ne?h?[u+a-l,u]:[u+a,u-l]:h?[e,e+t-o]:[e-o,e+t]),n.step),u=!1;s&&a&&([le,ne].includes(c)&&(a=-a,u=!0),l=r.current,h=d?(i=r.pathRange[0],r.pathRange[1]):(i=0,1),Z(l)?r.current=i:(n.pingpong?r.nagetive?(l=(u?te:ce)(i,l-a))===i&&(r.nagetive=!1):(l=(u?ce:te)(h,l+a))===h&&(r.nagetive=!0):(delete r.nagetive,l=l===h?i:(u?ce:te)(h,l+a)),r.current=l))},t.drawFrame=function(e){var t,i,r,a,n,o,l,s,d,h,c,u,g=this;g.pathRange&&(o=(l=g.rect).x,t=(n=g.params).image,i=n.imageWidth,r=n.imageHeight,d=n.easing,a=n.autoRotate,s=n.stepAbsolute,n=n.direction,o=o+l.width/2,l=l.y+l.height/2,c=(h=_slicedToArray(g.pathRange,2))[0],u=(h=h[1])-c,s=s?(g.current-c)/u:g.current,g.nagetive&&(s=1-s),d&&(d=Oi[d])&&(s=d(s)),d=g.nagetive?h-u*s:c+u*s,h=!1,c=[ne,me].includes(n)?(h=!0,{x:o-i/2,y:d,width:i,height:r}):{x:d,y:l-r/2,width:i,height:r},u=!1,g.nagetive&&a&&(e.save(),u=!0,e.translate(c.x+i/2,c.y+r/2),h?e.scale(1,-1):e.scale(-1,1),c.x=-i/2,c.y=-r/2),Y(e,t,c,g.data,g.view),u)&&e.restore()},t.canPlay=function(){var e=this.params;return!!e.image&&e.step},e})(sy),["image","imageWidth","imageHeight","step","stepAbsolute","pingpong","autoRotate","easing","inBoundary","direction"]),wy=(()=>{function e(e,t,i){this.x=e,this.y=t,this.z=i}var t=e.prototype;return t.dot2=function(e,t){return this.x*e+this.y*t},t.dot3=function(e,t,i){return this.x*e+this.y*t+this.z*i},e})(),my=[new wy(1,1,0),new wy(-1,1,0),new wy(1,-1,0),new wy(-1,-1,0),new wy(1,0,1),new wy(-1,0,1),new wy(1,0,-1),new wy(-1,0,-1),new wy(0,1,1),new wy(0,-1,1),new wy(0,1,-1),new wy(0,-1,-1)],xy=[151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132,187,208,89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,223,183,170,213,119,248,152,2,44,154,163,70,221,153,101,155,167,43,172,9,129,22,39,253,19,98,108,110,79,113,224,232,178,185,112,104,218,246,97,228,251,34,242,193,238,210,144,12,191,179,162,241,81,51,145,235,249,14,239,107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180],by=new Array(512),Dy=new Array(512),Iy=(rr(3),rr(3),function(e,t){var i=_i(e),r=_i(t),a=255&i,n=255&r,i=Dy[a+by[n]].dot2(e-=i,t-=r),r=Dy[a+by[1+n]].dot2(e,t-1),o=Dy[1+a+by[n]].dot2(e-1,t),a=Dy[1+a+by[1+n]].dot2(e-1,t-1),n=Ty(e);return Vy(Vy(i,o,n),Vy(r,a,n),Ty(t))});function Ty(e){return e*e*e*(e*(6*e-15)+10)}function Vy(e,t,i){return(1-i)*e+i*t}var By=0;0>8&255;by[Sy]=by[Sy+256]=Uy,Dy[Sy]=Dy[Sy+256]=my[Uy%12]}function Py(e,t){return e instanceof ht.Node&&ti(e.s("shape3d")?e.s("shape3d.image"):e.getImage())}function Cy(e,t,i){if(void 0!==e.a(i))return e.a(i);if(t.dataBindings)for(var r=0;r{function t(){return e.apply(this,arguments)||this}return _inheritsLoose(t,e),t})(Fy),Ey=(()=>{function n(){this.speed=.055,this.amplitude=1,this.lineWidth=5,this.off=0,this.startStep=0,this.endStep=0;this.startPoint=new Ny(0,0),this.endPoint=new Ny(0,0),this.step=45,this.children=[]}var e=n.prototype;return e.length=function(){return this.startPoint.distanceTo(this.endPoint)},e.getChildNum=function(){return this.children.length},e.setChildNum=function(e){var t,i,r=this.children,a=this.children.length;if(ey.parent.step&&y._updateStepsByParent(),f=y.parent.points[y.startStep],v=y.parent.points[y.endStep],w.set(f.x,f.y),m.set(v.x,v.y)),f=y.length(),v=(e=m.clone().sub(w).normalize().multiplyScalar(f/y.step)).angle(),t=K(v),i=W(v),r=y.points=[],a=y.off+=bn(.2*y.speed,y.speed),750<(n=(y.parent?1.5*f:f)*y.amplitude)&&(n=750),g=0,p=y.step+1;g{function e(e,t,i){e=r.call(this,e,t,i)||this;return e.lightning=new Ey,e.lightning.setChildNum(5),e}_inheritsLoose(e,r);var t=e.prototype;return t.init=function(e,t){r.prototype.init.call(this,e,t);e=this.lightning;e.amplitude=t.amplitude,e.color=t.color||"#fff",e.blurColor=t.blurColor||"rgba(255, 255, 255, 0.5)",e.blur=t.blur||0,e.lineWidth=t.lineWidth},t.onDidResetCanvas=function(){var e=this.rect,t=this.lightning,i=Jr(this.view),r=e.width*i,e=e.height*i*devicePixelRatio/2;t.startPoint=new Ny(0,e),t.endPoint=new Ny(r*devicePixelRatio,e)},t.onFrame=function(){var e=this.lightning;e.children.length!==this.params.childCount&&e.setChildNum(this.params.childCount),e.update()},t.drawFrame=function(e){var t,i,r,a,n=this.offCanvas,o=this.rect,l=this.params.background;this.offCanvas.width&&this.offCanvas.height&&(t=n.getContext("2d"),a=o.width,i=o.height,r=this.lightning,ua(t,{x:0,y:0,width:a*(a=this.getPixelRatio()),height:i*a},l),r.step=ce(5,$i(r.length()/10)),r.draw(t),Y(e,n,o))},e})(sy),["play","blur","amplitude","childCount","lineWidth"],["color","blurColor","background"]),ky=i((t=>{function e(){var e=t.apply(this,arguments)||this;return e.cache={},e}_inheritsLoose(e,t);var i=e.prototype;return i.onFrame=function(){},i.drawFrame=function(e){var t,i=this.params;(t=i.drawFrame)&&t(e,{cache:this.cache,rect:this.rect,zoom:Jr(this.view),play:i.play},this.data,this.view)},e})(sy),["play","drawFrame"]),Ly=i((r=>{function e(e,t,i){e=r.call(this,e,t,i)||this;return e._innerPrefix="dynamicPanel",e}return _inheritsLoose(e,r),e.prototype.drawImpl=function(l,e,t){var s,d=this,i=d.params,h=i.columns,r=i.dataSource,c=i.rowHeight,u=i.rowGap,g=i.columnGap,p=i.icon;p&&(s=Ry(d.data,d.view)||[e.y,0,e.x,0],r.forEach(function(e,t){for(var i=t%h.length,r=h[i],r=Jy(r,d.params.columnWidth),a=0,n=0;n{function e(){var e=i.apply(this,arguments)||this;return e.particles=[],e.clip=!0,e}_inheritsLoose(e,i);var t=e.prototype;return t.init=function(e,t){(this.params||{}).baseColor!==t.baseColor&&(this.baseColorData=Kr(t.baseColor)),i.prototype.init.call(this,e,t)},t.onFrame=function(){var e=this.rect,t=e.x,i=e.width,r=e.height,a=this.params,n=a.speed,o=a.count,l=a.marginBottom,a=a.offScreen,s=t+i/2,d=e.y+r-l;a!==this.lastOffScreen&&(this.lastOffScreen=a,this.particles=[]),a&&(s=i/2*(t=this.getPixelRatio()),d=(r-l)*t,n*=t);for(var h=0;h<10;h++)this.particles.push(new Ay(s,d,(2*lr()*n-n)/2,0-2*lr()*n));for(var c=this.particles,u=c.length-1;0<=u;u--){var g=c[u];g.x+=g.xs,g.y+=g.ys,g.life++,o<=g.life&&c.splice(u,1)}},t.drawFrame=function(e){var t=this,i=t.rect,r=t.particles,a=t.baseColorData,n=t.params,o=n.count,l=n.size,s=n.offScreen,d=n.rStep,h=n.gStep,c=n.bStep,u=e;if(s){if(!t.offCanvas.width||!t.offCanvas.height)return;u=t.offCanvas.getContext("2d");t.clearOffCanvas(),l*=t.getPixelRatio()}u.save(),u.globalCompositeOperation="lighter";for(var g=0;g{function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var i=t.prototype;return i.genTicks=function(e){this._extent;var t,i=_slicedToArray(this._extent,2),r=i[0],i=i[1],a=e.formatterFunc,n=e.font,o=e.width,l=e.height,s=e.orientation,e=e.verticalLabel,d=r+"",h=i+"",r=(a&&(d=a(r),h=a(i)),s===le||s===oe),a=d.length>h.length?d:h,i=fe(n,a),s=r?(t=l,e?i.width:i.height):(t=o,e?i.height:i.width),d=(s+=ce(r?80:50,s/2),ce(1,_i(t/s)));return this.niceExtent(d),this.ticks=this.getTicks(),this.ticks},i.getDimensionPoint=function(e,t,i){var r=3{var t=e.a("layoutFlowDirection"),i=e.a("layoutFlowInlineAlign"),r=e.a("layoutFlowInlineVAlign"),a=e.a("layoutFlowAlign"),n=e.a("layoutFlowVAlign"),o=e.a("layoutFlowHGap"),l=e.a("layoutFlowVGap"),e=e.a("layoutPadding");return{boxDirection:t,inlineAlign:i,inlineVAlign:r,align:a,vAlign:n,hGap:o||0,vGap:l||0,padding:e}})(h),p=_slicedToArray(pe(h.padding),4),f=p[0],v=p[1],y=p[2],p=p[3],h.getLines=function(e){u=e},d={rects:Ua({x:0,y:0,width:x-p-v,height:g-f-y},c,h),lines:u},m=w=0,d.rects.forEach(function(e){w=te(w,e.x),m=te(m,e.y)}),w=G(w),m=G(m),(x=i.getDataModel().getHistoryManager())&&x.beginTransaction(),e.each(function(e,t){t=he(d.rects[t]);t.x+=o+n+w,t.y+=l+r+m,e._layoutLocalRect=t,e.s("clip.host")||e.s("clip.host",!0),e._unNeedLayout||sl(i,e,t,!1)}),x&&x.endTransaction(),D=b=-1/0,d.rects.forEach(function(e){b=ce(b,e.x+w+e.width),D=ce(D,e.y+m+e.height)}),b+=n+t,D+=r+a,i.__scrollWidth__=b,i.__scrollHeight__=D,i.__scrollable__=!0)},dialog:function(e,t,i,r,a){var n=fr(a,r,i),o={};wr(i,o,["cornerRadius","borderWidth","headStyle","bodyStyle","bottomStyle"]),mr(i,o,["background","borderColor","matchBackground"]),n.instance||(n.instance=new Sd(i,r,a)),n.instance.draw(e,t,o),r.__editable__||(r.__editable__=!0,r.iv())},dialogInteractor:Md,dialogLayout:function(t){var e,i,r,a,n,o,l,s,d,h;t.__layout__=!0,void 0!==t.getAttaches()&&0!==(e=dl(t).toList(function(e){return e.s("2d.visible")})).size()&&(h=G(t.getWidth()*t.getScaleX()),i=G(t.getHeight()*t.getScaleY()),r=t.a("layoutHeadStyle"),n=t.a("layoutBodyStyle"),a=t.a("layoutBottomStyle"),r=r.visible?r.height+(r.bottomBorderWidth||0):0,a=a.visible?a.height+(a.topBorderWidth||0):0,o=(n=_slicedToArray(pe(n.padding),4))[0],l=n[2],d={x:s=n[3],y:r+o,width:ce(h-s-n[1],0),height:ce(i-r-a-o-l,0)},(h=t.getDataModel().getHistoryManager())&&h.beginTransaction(),e.each(function(e){sl(t,e,d)}),h)&&h.endTransaction()},showDialog:Fd.show,hideDialog:Fd.hide,tabLayout:function(o){var e,l,s,d,h,c,u,g,p,t;void 0!==o.getAttaches()&&0!==(e=dl(o)).size()&&(t=_slicedToArray(pe(o.a("layoutPadding")),4),l=t[0],s=t[1],d=t[2],h=t[3],c=G(o.getWidth()*o.getScaleX()),u=G(o.getHeight()*o.getScaleY()),g=o.a("layoutPosition"),void 0!==(p=o.__tabHeaderSize__))&&((t=o.getDataModel().getHistoryManager())&&t.beginTransaction(),e.each(function(e){var t,i=_slicedToArray(pe(e.a("layoutMargin")),4),r=i[0],a=i[1],n=i[2],i=i[3];"top"===g&&(t={x:h+i,y:l+p+r,width:c-h-i-a-s,height:u-l-p-r-n-d}),"bottom"===g&&(t={x:h+i,y:l+r,width:c-h-i-a-s,height:u-l-r-n-p-d}),"left"!==g&&"left-vertical"!==g||(t={x:h+p+i,y:l+r,width:c-h-p-i-a-s,height:u-l-r-n-d}),sl(o,e,t="right"!==g&&"right-vertical"!==g?t:{x:h+i,y:l+r,width:c-h-p-i-a-s,height:u-l-r-n-d})}),t)&&t.endTransaction()},checkGroup:qh,checkGroupInteractor:Oh,pagination:_h,paginationInteractor:$h,gauge:sc,perspective:function(e,t,i,r,a){var n=fr(a,r,i),o={};wr(i,o,["image","editEnable","editPointSize","hDiv","vDiv"]),mr(i,o,[]),n.instance||(n.instance=new Af(i,r,a)),n.instance.draw(e,t,o),Hl.editor&&(o.editEnable?r.__editable__||(r.__editable__=!0,n.dataUI&&n.dataUI.invalidate(),a.invalidateData&&a.invalidateData(r)):r.__editable__&&delete r.__editable__)},perspectiveInteractor:Rf,labelToolTipPane:function(e,t,i,r,a){var n=fr(a,r,i),o={};wr(i,o,["content","overflow","fillContent","wordBreak","font","align","vAlign","lineHeight","vGap","rich","padding","decoration","strokeWidth","strokeColor","showToolTipWhenEllipsis","scrollbarStyle","borderStyle","rich"]),mr(i,o,["color","background"]),Rn.convertCommonParams(o),n.instance||(n.instance=new Gc(i,r,a)),n.instance.draw(e,t,o)},textBox:function(e,t,i,r,a){var n=fr(a,r,i),o={};wr(i,o,["content","overflow","fillContent","wordBreak","font","align","vAlign","lineHeight","vGap","letterGap","rich","padding","decoration","strokeWidth","strokeColor","showToolTipWhenEllipsis","borderStyle","scrollbarStyle","rich","backgroundImage"]),mr(i,o,["color","background"]),Rn.convertCommonParams(o),n.instance||(n.instance=new Kc(i,r,a)),n.instance.draw(e,t,o)},textBoxInteractor:Zc,liquid:Pu,category:Lp,categoryInteractor:Rp,frame:Op,richTest:function(e,t,i,r,a){var n=fr(a,r,i),o={};wr(i,o,["labelStyle","content","iwidth","iheight","isRect","debugInfo","debugArea","rotateWrap"]),n.instance||(n.instance=new rf(i,r,a)),n.instance.draw(e,t,o)},wordCloud:Qf,wordCloudInteractor:Yf,funnel:Of,funnelInteractor:Kf,chord:iv,chordInteractor:lv,axis:Nl,axisInteractor:sh,rotatePanel:El,rotatePanelInteractor:fv,map:Jv,mapInteractor:Rv,keyboard:Hv,keyboardInteractor:qv,formItem:Kv,setFormItem:function(e,t,i){jv(Zv(e,t),i)},getFormItem:function(e,t){return Wv(Zv(e,t))},setFormJson:function(e,t){_v(e,function(e){jv(e,t[e.a("key")])})},getFormJson:function(e){var t={};return _v(e,function(e){t[e.a("key")]=Wv(e)}),t},validateForm:function(e){var r=!1;return _v(e,function(e){var t=e.a("dName"),i=Wv(e);Ov(e,i="switchButton"===t&&!1===i?"":i)&&(r=!0)}),r},formLayout:function(h){var e,t,c,u,g,p,f,v,y,i,w,m,x,b,r;h.__layout__=!0,void 0===h.getAttaches()?h.__scrollable__&&(h.__scrollable__=!1):(e=dl(h),i=G(h.getWidth()*h.getScaleX()),G(h.getHeight()*h.getScaleY()),t=i,c=-1/0,u=h.a("layoutTranslateX")||0,g=h.a("layoutTranslateY")||0,p=h.a("layoutHGap"),f=h.a("layoutVGap"),v=ce(1,h.a("layoutRowHeight")),r=ce(1,h.a("layoutColumnNum")),y=ce(1,(i-p*(r-1))/r),i=_slicedToArray(pe(h.a("layoutPadding")),4),w=i[0],m=i[1],x=i[2],b=i[3],(r=h.getDataModel().getHistoryManager())&&r.beginTransaction(),e.each(function(e){var t,i,r,a,n,o,l,s,d;e.s("clip.host")||e.s("clip.host",!0),e._unNeedLayout||(t=ce(0,(e.a("layoutStartRow")||1)-1),i=ce(1,e.a("layoutRowSpan")||1),d=ce(0,(e.a("layoutStartColumn")||1)-1),r=ce(1,e.a("layoutColumnSpan")||1),a=e.a("layoutFixedSize"),n=e.a("layoutFixedWidth")||30,o=e.a("layoutFixedHeight")||15,l=e.a("layoutFixedAlign")||"left",s=e.a("layoutFixedVAlign")||"top",d={x:d*y+d*p+b,y:t*v+t*f+w,width:r*y+(r-1)*p-b-m,height:i*v+(i-1)*f-w-x},c=Math.max(c,d.y+d.height),d.x+=u,d.y+=g,a&&("center"===l&&(d.x+=(d.width-n)/2),"right"===l&&(d.x+=d.width-n),"middle"===s&&(d.y+=(d.height-o)/2),"bottom"===s&&(d.y+=d.height-o),d.width=n,d.height=o),sl(h,e,d))}),r&&r.endTransaction(),h.__scrollWidth__=t,h.__scrollHeight__=c,h.__scrollable__=!0)},form:function(e,t,i,r,a){var n=fr(a,r,i),o={};wr(i,o,["rowHeight","columnNum","hGap","vGap","gridVisible","gridCornerRadius"]),mr(i,o,["gridBackground","matchBackground"]),n.instance||(n.instance=new ey(i,r,a)),n.instance.draw(e,t,o),r.__editable__||(r.__editable__=!0,r.iv())},file:function(e,t,i,r,a){var n,o,l,s,d,h,y,c=fr(a,r,i),u={};wr(i,u,["displayType","disabled","append","draggable","multiple","accept","max","padding","outBorderStyle","selectButtonStyle","previewIconStyle","descriptionStyle","fileListStyle","hoverStyle","disabledStyle","dragOverStyle","toolTipEnabled","toolTipFormatter","getToolTipFormatter","toolTipImage","getToolTipSize","getToolTipAttr"]),mr(i,u,[]),c.instance||(c.instance=new iy(i,r,a)),c.instance.draw(e,t,u),!$v&&u.draggable&&(s=function(){0