| 516 | */var uS={},gv={};function aIe(r){delete gv[r]}function nIe(r){if(!r)return!1;if(typeof r=="string")return y0(r,1)<TB;if(r.colorStops){for(var e=r.colorStops,t=0,a=e.length,n=0;n<a;n++)t+=y0(e[n].color,1);return t/=a,t<TB}return!1}var iIe=function(){function r(e,t,a){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,a=a||{},this.dom=t,this.id=e;var i=new pLe,o=a.renderer||"canvas";uS[o]||(o=Ft(uS)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var s=new uS[o](t,i,a,e),l=a.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Vt.node&&!Vt.worker&&!l?new jLe(s.getViewportRoot(),s.root):null,c=a.useCoarsePointer,f=c==null||c==="auto"?Vt.touchEventsSupported:!!c,v=44,h;f&&(h=Ue(a.pointerSize,v)),this.handler=new pse(i,s,u,s.root,h),this.animation=new FLe({stage:{update:l?null:function(){return n._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=nIe(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(e){var t,a=$d();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var n=$d();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-a})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,a){return this._disposed||this.handler.on(e,t,a),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Ze&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,aIe(this.id))},r}();function EB(r,e){var t=new iIe(X3(),r,e);return gv[t.id]=t,t}function oIe(r){r.dispose()}function sIe(){for(var r in gv)gv.hasOwnProperty(r)&&gv[r].dispose();gv={}}function lIe(r){return gv[r]}function Bse(r,e){uS[r]=e}var MB;function zse(r){if(typeof MB=="function")return MB(r)}function Vse(r){MB=r}var uIe="6.0.0";const cIe=Object.freeze(Object.defineProperty({__proto__:null,dispose:oIe,disposeAll:sIe,getElementSSRData:zse,getInstance:lIe,init:EB,registerPainter:Bse,registerSSRDataGetter:Vse,version:uIe},Symbol.toStringTag,{value:"Module"}));var hX=1e-4,Gse=20;function fIe(r){return r.replace(/^\s+|\s+$/g,"")}var Fi=Math.min,pa=Math.max,Ps=Math.abs;function ar(r,e,t,a){var n=e[0],i=e[1],o=t[0],s=t[1],l=i-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}var Oe=vIe;function vIe(r,e,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return nw(r,e,t)}function nw(r,e,t){return Ne(r)?fIe(r).match(/%$/)?parseFloat(r)/100*e+(t||0):parseFloat(r):r==null?NaN:+r}function ga(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),Gse),r=(+r).toFixed(e),t?r:+r}function Bi(r){return r.sort(function(e,t){return e-t}),r}function Ho(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return Fse(r)}function Fse(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),a=t>0?+e.slice(t+1):0,n=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function nV(r,e){var t=Math.log,a=Math.LN10,n=Math.floor(t(r[1]-r[0])/a),i=Math.round(t(Ps(e[1]-e[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function hIe(r,e,t){if(!r[e])return 0;var a=Hse(r,t);return a[e]||0}function Hse(r,e){var t=_o(r,function(h,d){return h+(isNaN(d)?0:d)},0);if(t===0)return[];for(var a=Math.pow(10,e),n=Se(r,function(h){return(isNaN(h)?0:h)/t*a*100}),i=a*100,o=Se(n,function(h){return Math.floor(h)}),s=_o(o,function(h,d){return h+d},0),l=Se(n,function(h,d){return h-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,v=l.length;f<v;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return Se(o,function(h){return h/a})}function dIe(r,e){var t=Math.max(Ho(r),Ho(e)),a=r+e;return t>Gse?a:ga(a,t)}var DB=9007199254740991;function iV(r){var e=Math.PI*2;return(r%e+e)%e}function yp(r){return r>-hX&&r<hX}var pIe=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function el(r){if(r instanceof Date)return r;if(Ne(r)){var e=pIe.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function qse(r){return Math.pow(10,nC(r))}function nC(r){if(r===0)return 0;var e=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,e)>=10&&e++,e}function oV(r,e){var t=nC(r),a=Math.pow(10,t),n=r/a,i;return e?n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10:n<1?i=1:n<2?i=2:n<3?i=3:n<5?i=5:i=10,r=i*a,t>=-20?+r.toFixed(t<0?-t:0):r}function cS(r,e){var t=(r.length-1)*e+1,a=Math.floor(t),n=+r[a-1],i=t-a;return i?n+i*(r[a]-n):n}function RB(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,a=0;a<r.length;){for(var n=r[a].interval,i=r[a].close,o=0;o<2;o++)n[o]<=e&&(n[o]=e,i[o]=o?1:1-t),e=n[o],t=i[o];n[0]===n[1]&&i[0]*i[1]!==1?r.splice(a,1):a++}return r;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function Us(r){var e=parseFloat(r);return e==r&&(e!==0||!Ne(r)||r.indexOf("x")<=0)?e:NaN}function sV(r){return!isNaN(Us(r))}function Use(){return Math.round(Math.random()*9)}function $se(r,e){return e===0?r:$se(e,r%e)}function dX(r,e){return r==null?e:e==null?r:r*e/$se(r,e)}var gIe="[ECharts] ",yIe=typeof console<"u"&&console.warn&&console.log;function mIe(r,e,t){yIe&&console[r](gIe+e)}function Wse(r,e){mIe("error",r)}function nr(r){throw new Error(r)}function pX(r,e,t){return(e-r)*t+r}var Yse="series\0",jse="\0_ec_\0";function Sr(r){return r instanceof Array?r:r==null?[]:[r]}function Bv(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var a=0,n=t.length;a<n;a++){var i=t[a];!r.emphasis[e].hasOwnProperty(i)&&r[e].hasOwnProperty(i)&&(r.emphasis[e][i]=r[e][i])}}}var gX=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Xp(r){return et(r)&&!_e(r)&&!(r instanceof Date)?r.value:r}function bIe(r){return et(r)&&!(r instanceof Array)}function Xse(r,e,t){var a=t==="normalMerge",n=t==="replaceMerge",i=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=He();q(e,function(l,u){if(!et(l)){e[u]=null;return}});var s=_Ie(r,o,t);return(a||n)&&xIe(s,r,o,e),a&&SIe(s,e),a||n?wIe(s,e,n):i&&TIe(s,e),CIe(s),s}function _Ie(r,e,t){var a=[];if(t==="replaceAll")return a;for(var n=0;n<r.length;n++){var i=r[n];i&&i.id!=null&&e.set(i.id,n),a.push({existing:t==="replaceMerge"||b0(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function xIe(r,e,t,a){q(a,function(n,i){if(!(!n||n.id==null)){var o=$m(n.id),s=t.get(o);if(s!=null){var l=r[s];An(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],a[i]=null}}})}function SIe(r,e){q(e,function(t,a){if(!(!t||t.name==null))for(var n=0;n<r.length;n++){var i=r[n].existing;if(!r[n].newOption&&i&&(i.id==null||t.id==null)&&!b0(t)&&!b0(i)&&Zse("name",i,t)){r[n].newOption=t,e[a]=null;return}}})}function wIe(r,e,t){q(e,function(a){if(a){for(var n,i=0;(n=r[i])&&(n.newOption||b0(n.existing)||n.existing&&a.id!=null&&!Zse("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=t):r.push({newOption:a,brandNew:t,existing:null,keyInfo:null}),i++}})}function TIe(r,e){q(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function CIe(r){var e=He();q(r,function(t){var a=t.existing;a&&e.set(a.id,t)}),q(r,function(t){var a=t.newOption;An(!a||a.id==null||!e.get(a.id)||e.get(a.id)===t,"id duplicates: "+(a&&a.id)),a&&a.id!=null&&e.set(a.id,t),!t.keyInfo&&(t.keyInfo={})}),q(r,function(t,a){var n=t.existing,i=t.newOption,o=t.keyInfo;if(et(i)){if(o.name=i.name!=null?$m(i.name):n?n.name:Yse+a,n)o.id=$m(n.id);else if(i.id!=null)o.id=$m(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function Zse(r,e,t){var a=La(e[r],null),n=La(t[r],null);return a!=null&&n!=null&&a===n}function $m(r){return La(r,"")}function La(r,e){return r==null?e:Ne(r)?r:Yt(r)||$S(r)?r+"":e}function lV(r){var e=r.name;return!!(e&&e.indexOf(Yse))}function b0(r){return r&&r.id!=null&&$m(r.id).indexOf(jse)===0}function AIe(r){return jse+r}function EIe(r,e,t){q(r,function(a){var n=a.newOption;et(n)&&(a.keyInfo.mainType=e,a.keyInfo.subType=MIe(e,n,a.existing,t))})}function MIe(r,e,t,a){var n=e.type?e.type:t?t.subType:a.determineSubType(r,e);return n}function DIe(r,e){var t={},a={};return n(r||[],t),n(e||[],a,t),[i(t),i(a)];function n(o,s,l){for(var u=0,c=o.length;u<c;u++){var f=La(o[u].seriesId,null);if(f==null)return;for(var v=Sr(o[u].dataIndex),h=l&&l[f],d=0,g=v.length;d<g;d++){var y=v[d];h&&h[y]?h[y]=null:(s[f]||(s[f]={}))[y]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=i(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function zv(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return _e(e.dataIndex)?Se(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return _e(e.name)?Se(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function kt(){var r="__ec_inner_"+RIe++;return function(e){return e[r]||(e[r]={})}}var RIe=Use();function np(r,e,t){var a=uV(e,t),n=a.mainTypeSpecified,i=a.queryOptionMap,o=a.others,s=o,l=t?t.defaultMainType:null;return!n&&l&&i.set(l,{}),i.each(function(u,c){var f=Zp(r,c,u,{useDefault:l===c,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function uV(r,e){var t;if(Ne(r)){var a={};a[r+"Index"]=0,t=a}else t=r;var n=He(),i={},o=!1;return q(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||e&&e.includeMainTypes&&_t(e.includeMainTypes,c)<0)){o=o||!!c;var v=n.get(c)||n.set(c,{});v[f]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var Kr={useDefault:!0,enableAll:!1,enableNone:!1},LIe={useDefault:!1,enableAll:!0,enableNone:!0};function Zp(r,e,t,a){a=a||Kr;var n=t.index,i=t.id,o=t.name,s={models:null,specified:n!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=a.useDefault&&(l=r.getComponent(e))?[l]:[],s}if(n==="none"||n===!1){if(a.enableNone)return s.models=[],s;n=-1}return n==="all"&&(a.enableAll?n=i=o=null:n=-1),s.models=r.queryComponents({mainType:e,index:n,id:i,name:o}),s}function Kse(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function IIe(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function PIe(r){return r==="auto"?Vt.domSupported?"html":"richText":r||"html"}function LB(r,e){var t=He(),a=[];return q(r,function(n){var i=e(n);(t.get(i)||(a.push(i),t.set(i,[]))).push(n)}),{keys:a,buckets:t}}function Qse(r,e,t,a,n){var i=e==null||e==="auto";if(a==null)return a;if(Yt(a)){var o=pX(t||0,a,n);return ga(o,i?Math.max(Ho(t||0),Ho(a)):e)}else{if(Ne(a))return n<1?t:a;for(var s=[],l=t,u=a,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var v=r.getDimensionInfo(f);if(v&&v.type==="ordinal")s[f]=(n<1&&l?l:u)[f];else{var h=l&&l[f]?l[f]:0,d=u[f],o=pX(h,d,n);s[f]=ga(o,i?Math.max(Ho(h),Ho(d)):e)}}return s}}var Sc=function(){function r(){}return r.prototype.reset=function(e,t,a,n){return this._list=e,this._step=n=n||1,this._idx=t,this._end=a??(n>0?e.length:0),this.item=null,this.key=NaN,this},r.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},r}();function _k(r){r.option=r.parentModel=r.ecModel=null}var kIe=".",Pf="___EC__COMPONENT__CONTAINER___",Jse="___EC__EXTENDED_CLASS___";function ks(r){var e={main:"",sub:""};if(r){var t=r.split(kIe);e.main=t[0]||"",e.sub=t[1]||""}return e}function OIe(r){An(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function NIe(r){return!!(r&&r[Jse])}function cV(r,e){r.$constructor=r,r.extend=function(t){var a=this,n;return BIe(a)?n=function(i){le(o,i);function o(){return i.apply(this,arguments)||this}return o}(a):(n=function(){(t.$constructor||a).apply(this,arguments)},Z3(n,this)),ye(n.prototype,t),n[Jse]=!0,n.extend=this.extend,n.superCall=GIe,n.superApply=FIe,n.superClass=a,n}}function BIe(r){return je(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function ele(r,e){r.extend=e.extend}var zIe=Math.round(Math.random()*10);function VIe(r){var e=["__\0is_clz",zIe++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function GIe(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return this.superClass.prototype[e].apply(r,t)}function FIe(r,e,t){return this.superClass.prototype[e].apply(r,t)}function iC(r){var e={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){OIe(n),a.prototype.type=n;var i=ks(n);if(!i.sub)e[i.main]=a;else if(i.sub!==Pf){var o=t(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=e[a];if(o&&o[Pf]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+a+"."+(n||"")+" is used but not imported.":a+".type should be specified.");return o},r.getClassesByMainType=function(a){var n=ks(a),i=[],o=e[n.main];return o&&o[Pf]?q(o,function(s,l){l!==Pf&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=ks(a);return!!e[n.main]},r.getAllClassMainTypes=function(){var a=[];return q(e,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=ks(a),i=e[n.main];return i&&i[Pf]};function t(a){var n=e[a.main];return(!n||!n[Pf])&&(n=e[a.main]={},n[Pf]=!0),n}}function Vv(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(a,n,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&_t(n,l)>=0||i&&_t(i,l)<0)){var u=a.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var HIe=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],qIe=Vv(HIe),UIe=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return qIe(this,e,t)},r}(),IB=new pp(50);function $Ie(r){if(typeof r=="string"){var e=IB.get(r);return e&&e.image}else return r}function fV(r,e,t,a,n){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var i=IB.get(r),o={hostEl:t,cb:a,cbPayload:n};return i?(e=i.image,!oC(e)&&i.pending.push(o)):(e=bi.loadImage(r,yX,yX),e.__zrImageSrc=r,IB.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function yX(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<r.pending.length;e++){var t=r.pending[e],a=t.cb;a&&a(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function oC(r){return r&&r.width&&r.height}var xk=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function WIe(r,e,t,a,n){var i={};return tle(i,r,e,t,a,n),i.text}function tle(r,e,t,a,n,i){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split(` |
| 519 | `):[];var _=b.length*v;if(y==null&&(y=_),_>y&&h){var x=Math.floor(y/v);d=d||b.length>x,b=b.slice(0,x),_=b.length*v}if(n&&c&&g!=null)for(var w=rle(g,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),T={},C=0;C<b.length;C++)ale(T,b[C],w),b[C]=T.textLine,d=d||T.isTruncated;for(var E=y,D=0,M=Vs(u),C=0;C<b.length;C++)D=Math.max(Gs(M,b[C]),D);g==null&&(g=D);var R=g;return E+=l,R+=s,{lines:b,height:y,outerWidth:R,outerHeight:E,lineHeight:v,calculatedLineHeight:f,contentWidth:D,contentHeight:_,width:g,isTruncated:d}}var XIe=function(){function r(){}return r}(),mX=function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r}(),ZIe=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r}();function KIe(r,e,t,a,n){var i=new ZIe,o=vV(r);if(!o)return i;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,c=e.width;c==null&&t!=null&&(c=t-l);var f=e.height;f==null&&a!=null&&(f=a-u);for(var v=e.overflow,h=(v==="break"||v==="breakAll")&&c!=null?{width:c,accumWidth:0,breakAll:v==="breakAll"}:null,d=xk.lastIndex=0,g;(g=xk.exec(o))!=null;){var y=g.index;y>d&&Sk(i,o.substring(d,y),e,h),Sk(i,g[2],e,h,g[1]),d=xk.lastIndex}d<o.length&&Sk(i,o.substring(d,o.length),e,h);var b=[],_=0,x=0,w=v==="truncate",T=e.lineOverflow==="truncate",C={};function E(ee,se,ne){ee.width=se,ee.lineHeight=ne,_+=ne,x=Math.max(x,se)}e:for(var D=0;D<i.lines.length;D++){for(var M=i.lines[D],R=0,L=0,k=0;k<M.tokens.length;k++){var P=M.tokens[k],B=P.styleName&&e.rich[P.styleName]||{},z=P.textPadding=B.padding,N=z?z[1]+z[3]:0,V=P.font=B.font||e.font;P.contentHeight=A1(V);var G=Ue(B.height,P.contentHeight);if(P.innerHeight=G,z&&(G+=z[0]+z[2]),P.height=G,P.lineHeight=mi(B.lineHeight,e.lineHeight,G),P.align=B&&B.align||n,P.verticalAlign=B&&B.verticalAlign||"middle",T&&f!=null&&_+P.lineHeight>f){var Y=i.lines.length;k>0?(M.tokens=M.tokens.slice(0,k),E(M,L,R),i.lines=i.lines.slice(0,D+1)):i.lines=i.lines.slice(0,D),i.isTruncated=i.isTruncated||i.lines.length<Y;break e}var F=B.width,H=F==null||F==="auto";if(typeof F=="string"&&F.charAt(F.length-1)==="%")P.percentWidth=F,b.push(P),P.contentWidth=Gs(Vs(V),P.text);else{if(H){var $=B.backgroundColor,X=$&&$.image;X&&(X=$Ie(X),oC(X)&&(P.width=Math.max(P.width,X.width*G/X.height)))}var U=w&&c!=null?c-L:null;U!=null&&U<P.width?!H||U<N?(P.text="",P.width=P.contentWidth=0):(tle(C,P.text,U-N,V,e.ellipsis,{minChar:e.truncateMinChar}),P.text=C.text,i.isTruncated=i.isTruncated||C.isTruncated,P.width=P.contentWidth=Gs(Vs(V),P.text)):P.contentWidth=Gs(Vs(V),P.text)}P.width+=N,L+=P.width,B&&(R=Math.max(R,P.lineHeight))}E(M,L,R)}i.outerWidth=i.width=Ue(c,x),i.outerHeight=i.height=Ue(f,_),i.contentHeight=_,i.contentWidth=x,i.outerWidth+=l,i.outerHeight+=u;for(var D=0;D<b.length;D++){var P=b[D],Z=P.percentWidth;P.width=parseInt(Z,10)/100*i.width}return i}function Sk(r,e,t,a,n){var i=e==="",o=n&&t.rich[n]||{},s=r.lines,l=o.font||t.font,u=!1,c,f;if(a){var v=o.padding,h=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Jo(o.width,a.width)+h;s.length>0&&d+a.accumWidth>a.width&&(c=e.split(` |