@worm-print-platform/echarts 1.5.0 → 1.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/echarts.js CHANGED
@@ -1,20 +1,20 @@
1
- (function(es){typeof define=="function"&&define.amd?define(es):es()})((function(){"use strict";function es(){let t=0;return function(){return t+=1,`cell-${Date.now().toString(36)}-${t}`}}function ET(){let t=0;return function(){return t+=1,`row-${Date.now().toString(36)}-${t}`}}const kT=es(),RT=ET(),ts={width:.75,style:"solid",color:"#333333"};function OT(t){return{id:kT(),borders:{top:{...ts},right:{...ts},bottom:{...ts},left:{...ts}},...t}}function NT(){const t=[50,50,50],e=(n,i)=>({id:RT(),type:n,height:8,...i!==void 0?{repeatOnPage:i}:{},cells:t.map(()=>OT())}),r=e("header",!0);return r.cells.forEach((n,i)=>{n.formatter=`列${i+1}`,n.align="center",n.fontWeight="bold"}),{rows:[r,e("data"),e("subtotal"),e("summary")],colWidths:t}}const ep=Symbol.for("worm-print-platform.element-capabilities.v1"),tp=globalThis;function mi(){const t=tp[ep];if(t)return t;const e={entries:new Map,nextSeq:0,bootstrapped:!1};return tp[ep]=e,BT(e),e}const qu=Object.freeze({text:{zoneAllowed:!0,defaultTextFit:"clip",bindings:[{targetPath:"options.formatter",label:"内容",dataSource:"main"}],defaultOptions:()=>({formatter:"文本",fontSize:12,textAlign:"left",height:5.3}),title:"文本"},longText:{defaultTextFit:"autoHeight",bindings:[{targetPath:"options.formatter",label:"内容",dataSource:"main"},{targetPath:"options.styler",label:"样式",dataSource:"main"}],defaultOptions:()=>({width:141.1,height:28.2,fontSize:12,lineHeight:18}),title:"长文"},barcode:{zoneAllowed:!0,codeRotationDpiGated:!0,bindings:[{targetPath:"options.formatter",label:"内容",dataSource:"main"}],defaultOptions:()=>({width:56.4,height:14.1,title:"条形码",barcodeType:"code128",testData:"12345678"}),title:"条形码"},qrcode:{zoneAllowed:!0,codeRotationDpiGated:!0,bindings:[{targetPath:"options.formatter",label:"内容",dataSource:"main"}],defaultOptions:()=>({width:28.2,height:28.2,title:"二维码",testData:"qrcode"}),title:"二维码"},image:{zoneAllowed:!0,bindings:[{targetPath:"options.src",label:"内容",dataSource:"main",placeholder:"输入图片路径,支持 /docfiles/... 相对路径、绝对 URL 或 {字段} 表达式"}],defaultOptions:()=>({width:28.2,height:28.2,fit:"contain"}),title:"图片"},table:{rotationExcluded:!0,acceptsElementBorder:!1,bindings:[],defaultOptions:()=>{const{rows:t,colWidths:e}=NT(),r=e.reduce((i,a)=>i+a,0),n=t.reduce((i,a)=>i+a.height,0);return{width:r,height:n,tableMode:"dynamic",tableRows:t,tableColWidths:e,tableDefaultFontSize:10,tableDefaultColor:"#333333",tableDefaultPadding:1,fields:[],tablePagination:{enabled:!0}}},title:"表格"},flowList:{rotationExcluded:!0,defaultTextFit:"clip",bindings:[{targetPath:"options.formatter",label:"单元模板",dataSource:"main",placeholder:"{drugs.name} {drugs.spec}"}],defaultOptions:()=>({width:141.1,height:21.2,fontSize:12,formatter:"{name} {spec}",flowColumns:4,flowRowHeight:8,flowGapX:4,flowAutoSpan:!1,flowMaxSpan:2,flowLayoutMode:"fixed",flowPaddingTop:0,flowPaddingRight:0,flowPaddingBottom:0,flowPaddingLeft:0}),title:"流式列表"},hline:{zoneAllowed:!0,acceptsElementBorder:!1,defaultOptions:()=>({width:70.6,height:1.8,borderWidth:.75}),title:"横线"},vline:{zoneAllowed:!0,acceptsElementBorder:!1,defaultOptions:()=>({width:1.8,height:35.3,borderWidth:.75}),title:"竖线"},rect:{zoneAllowed:!0,acceptsElementBorder:!1,defaultOptions:()=>({width:28.2,height:28.2,borderWidth:1,borderColor:"#333"}),title:"矩形"},oval:{zoneAllowed:!0,acceptsElementBorder:!1,defaultOptions:()=>({width:28.2,height:28.2,borderWidth:1,borderColor:"#333"}),title:"椭圆"},html:{blocked:!0,defaultOptions:()=>({width:28.2,height:28.2}),title:"HTML"},pageNumber:{title:"页码"}});function BT(t){if(!t.bootstrapped){t.bootstrapped=!0;for(const[e,r]of Object.entries(qu))t.entries.has(e)||t.entries.set(e,{caps:r,seq:t.nextSeq++})}}function FT(t,e){if(!t||typeof t!="string")throw new Error("registerElementCapabilities: type 必须是非空字符串");if(!e||typeof e!="object")throw new Error("registerElementCapabilities: caps 必须是对象");const r=mi(),n=r.nextSeq++;return r.entries.set(t,{caps:e,seq:n}),()=>{if(mi().entries.get(t)?.caps!==e)return;const a=qu[t];a?mi().entries.set(t,{caps:a,seq:n}):mi().entries.delete(t)}}function rp(t){return t?{...mi().entries.get(t)?.caps??{},type:t}:{type:""}}function np(){return[...mi().entries.entries()].sort((t,e)=>t[1].seq-e[1].seq).map(([t])=>t)}const ip=Symbol.for("worm-print-platform.element-plugin-registry.v1"),ap=globalThis;function rs(){const t=ap[ip];if(t)return t;const e={plugins:new Map,typeIndex:new Map,configs:new Map,legacyAliases:new Map};return ap[ip]=e,e}function op(t){if(!t?.id||typeof t.id!="string")throw new Error("defineElementPlugin: id 必须是非空字符串");if(!t.version||typeof t.version!="string")throw new Error("defineElementPlugin: version 必须是非空字符串");if(!Array.isArray(t.kinds)||t.kinds.length===0)throw new Error("defineElementPlugin: kinds 必须是非空数组");const e=new Set;for(const r of t.kinds){if(!r?.type||typeof r.type!="string")throw new Error("defineElementPlugin: kinds[].type 必须是非空字符串");if(e.has(r.type))throw new Error(`defineElementPlugin: kinds 内 type 重复「${r.type}」`);e.add(r.type)}}function zT(t){return op(t),t}function sp(t){op(t);const e=rs();for(const[n,i]of[...e.typeIndex])i.plugin.id===t.id&&i.plugin!==t&&e.typeIndex.delete(n);e.plugins.set(t.id,t);for(const n of t.kinds)e.typeIndex.set(n.type,{plugin:t,kind:n});const r=[];for(const n of t.kinds){const i={...n.fixedHeight===!0?{fixedHeight:!0}:{},...n.blocked===!0?{blocked:!0}:{},...n.capabilities??{}};Object.keys(i).length!==0&&r.push(FT(n.type,i))}for(const[n,i]of Object.entries(t.legacyAliases??{}))e.legacyAliases.set(n,i);return()=>{if(e.plugins.get(t.id)===t){e.plugins.delete(t.id);for(const[n,i]of[...e.typeIndex])i.plugin===t&&e.typeIndex.delete(n);for(const n of r)n()}}}function GT(t){return rs().plugins.get(t)}function VT(t,e){const r=rs();r.configs.set(t,{...r.configs.get(t)??{},...e})}function HT(t){return{...rs().configs.get(t)??{}}}function UT(){return np().filter(t=>rp(t).blocked===!0)}UT();function WT(){return np().filter(t=>rp(t).zoneAllowed===!0)}WT();const YT=new Set(["constructor","__proto__","prototype","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"]),$T=new Set(["new","function","class","this","delete","typeof","void","in","of","var","let","const","return","if","while","for"]);function Zu(t){const e=[];let r=0;const n=t.length;for(;r<n;){const i=t[r];if(/\s/.test(i)){r++;continue}if(/[0-9]/.test(i)||i==="."&&r+1<n&&/[0-9]/.test(t[r+1])){let s=r;for(;s<n&&/[0-9.]/.test(t[s]);)s++;e.push({type:"num",value:t.slice(r,s),position:r}),r=s;continue}if(i==="'"||i==='"'){let s=r+1,l="";for(;s<n&&t[s]!==i;)t[s]==="\\"&&s+1<n?(l+=t[s+1],s+=2):(l+=t[s],s++);if(s>=n)throw new Error("字符串未闭合");e.push({type:"str",value:l,position:r}),r=s+1;continue}if(/[A-Za-z_$]/.test(i)){let s=r;for(;s<n&&/[A-Za-z0-9_$]/.test(t[s]);)s++;const l=t.slice(r,s);if($T.has(l))throw new Error(`不允许使用关键字: ${l}`);if(YT.has(l))throw new Error(`禁止访问: ${l}`);l==="true"||l==="false"?e.push({type:"bool",value:l,position:r}):e.push({type:"ident",value:l,position:r}),r=s;continue}const a=t.slice(r,r+3);if(a==="==="||a==="!=="){e.push({type:"punc",value:a,position:r}),r+=3;continue}const o=t.slice(r,r+2);if(o==="=>")throw new Error("不允许函数定义");if(["==","!=","<=",">=","&&","||"].includes(o)){e.push({type:"punc",value:o,position:r}),r+=2;continue}if(i==="=")throw new Error("不允许赋值");if(i===";")throw new Error("不允许多条语句");if("+-*/%()[]{},:.?!<>".includes(i)){e.push({type:"punc",value:i,position:r}),r++;continue}throw new Error(`非法字符: ${i}`)}return e}function Ku(t){return new XT(t).parse()}class XT{constructor(e){this.pos=0,this.tokens=e}parse(){const e=this.parseTernary();if(this.pos<this.tokens.length)throw new Error(`表达式存在多余内容: ${this.tokens[this.pos].value}`);return e}peek(){return this.tokens[this.pos]}next(){const e=this.tokens[this.pos++];if(!e)throw new Error("表达式意外结束");return e}eatPunc(e){const r=this.peek();return r&&r.type==="punc"&&r.value===e?(this.pos++,!0):!1}expectPunc(e){if(!this.eatPunc(e)){const r=this.peek()?.position??0;throw new Error(`位置 ${r}: 期望 "${e}"`)}}parseTernary(){const e=this.parseLogicalOr();if(this.eatPunc("?")){const r=this.parseTernary();this.expectPunc(":");const n=this.parseTernary();return{type:"ternary",cond:e,consequent:r,alternate:n}}return e}parseLogicalOr(){let e=this.parseLogicalAnd();for(;this.eatPunc("||");){const r=this.parseLogicalAnd();e={type:"binary",op:"||",left:e,right:r}}return e}parseLogicalAnd(){let e=this.parseEquality();for(;this.eatPunc("&&");){const r=this.parseEquality();e={type:"binary",op:"&&",left:e,right:r}}return e}parseEquality(){let e=this.parseRelational();for(;;){const r=this.peek();if(r?.type==="punc"&&["==","!=","===","!=="].includes(r.value)){this.pos++;const n=this.parseRelational();e={type:"binary",op:r.value,left:e,right:n}}else return e}}parseRelational(){let e=this.parseAdditive();for(;;){const r=this.peek();if(r?.type==="punc"&&["<",">","<=",">="].includes(r.value)){this.pos++;const n=this.parseAdditive();e={type:"binary",op:r.value,left:e,right:n}}else return e}}parseAdditive(){let e=this.parseMultiplicative();for(;;){const r=this.peek();if(r?.type==="punc"&&(r.value==="+"||r.value==="-")){this.pos++;const n=this.parseMultiplicative();e={type:"binary",op:r.value,left:e,right:n}}else return e}}parseMultiplicative(){let e=this.parseUnary();for(;;){const r=this.peek();if(r?.type==="punc"&&["*","/","%"].includes(r.value)){this.pos++;const n=this.parseUnary();e={type:"binary",op:r.value,left:e,right:n}}else return e}}parseUnary(){const e=this.peek();if(e?.type==="punc"&&["!","-","+"].includes(e.value)){this.pos++;const r=this.parseUnary();return{type:"unary",op:e.value,arg:r,prefix:!0}}return this.parsePostfix()}parsePostfix(){let e=this.parsePrimary();for(;;)if(this.eatPunc(".")){const r=this.next();if(r.type!=="ident")throw new Error(`位置 ${r.position}: 成员访问需要属性名`);e={type:"member",object:e,property:r.value,computed:!1}}else if(this.eatPunc("[")){const r=this.parseTernary();this.expectPunc("]"),r.type==="str"?e={type:"member",object:e,property:r.value,computed:!1}:e={type:"member",object:e,property:r.name??String(r.value),computed:!0}}else if(this.peek()?.type==="punc"&&this.peek()?.value==="("&&(e.type==="ident"||e.type==="member")){this.pos++;const r=this.parseArgs();e={type:"call",callee:e,args:r}}else return e}parseArgs(){const e=[];if(this.eatPunc(")"))return e;for(;;){if(e.push(this.parseTernary()),this.eatPunc(")"))return e;this.expectPunc(",")}}parsePrimary(){const e=this.next();if(e.type==="num"){const r=Number(e.value);if(isNaN(r))throw new Error(`非法数字: ${e.value}`);return{type:"num",value:r}}if(e.type==="str")return{type:"str",value:e.value};if(e.type==="bool")return{type:"bool",value:e.value==="true"};if(e.type==="ident")return{type:"ident",name:e.value};if(e.value==="("){const r=this.parseTernary();return this.expectPunc(")"),r}if(e.value==="["){const r=[];if(!this.eatPunc("]"))for(;r.push(this.parseTernary()),!this.eatPunc("]");)this.expectPunc(",");return{type:"array",elements:r}}if(e.value==="{"){const r=[];if(!this.eatPunc("}"))for(;;){const n=this.next();if(n.type!=="ident"&&n.type!=="str")throw new Error(`位置 ${n.position}: 对象键必须是标识符或字符串`);if(this.expectPunc(":"),r.push({key:n.value,value:this.parseTernary()}),this.eatPunc("}"))break;this.expectPunc(",")}return{type:"object",properties:r}}throw new Error(`位置 ${e.position}: 意外的符号: ${e.value}`)}}const lp=20,qT=8;function mt(t,e=0){if(typeof t=="number")return Number.isFinite(t)?t:e;if(typeof t=="string"){const r=t.trim();if(r==="")return e;const n=Number(r);return Number.isFinite(n)?n:e}return t==null?e:typeof t=="boolean"?t?1:0:e}function ZT(t){if(typeof t=="number")return Number.isFinite(t);if(typeof t=="string"){const e=t.trim();return e!==""&&Number.isFinite(Number(e))}return!1}function yi(t){return!Number.isFinite(t)||Number.isInteger(t)||Math.abs(t)>=1e15?t:Number(t.toPrecision(12))}function _i(t){if(!Number.isFinite(t)||Number.isInteger(t))return 0;const e=String(t);if(e.includes("e")||e.includes("E"))return 0;const r=e.indexOf(".");return r===-1?0:e.length-r-1}function ju(t,e){if(!Number.isFinite(t))return 0;const r=Math.min(Math.max(e,0),12);if(r===0)return Math.round(t);const n=10**r,i=t*n;return!Number.isFinite(i)||Math.abs(i)>=1e15?yi(t):Math.round(i)/n}function Qu(t,e){const r=mt(t),n=mt(e),i=r+n;return ju(i,Math.max(_i(r),_i(n)))}function Ju(t,e){const r=mt(t),n=mt(e),i=r-n;return ju(i,Math.max(_i(r),_i(n)))}function up(t,e){const r=mt(t),n=mt(e),i=r*n;return ju(i,_i(r)+_i(n))}function fp(t,e){const r=mt(t),n=mt(e);return n===0?0:yi(r/n)}function KT(t,e){const r=mt(t),n=mt(e);return n===0?0:yi(r%n)}function jT(t){if(t==null)return 2;const e=Math.trunc(mt(t,2));return Number.isFinite(e)?Math.min(Math.max(e,-lp),lp):2}function ns(t,e,r){const n=mt(t,0),i=jT(e);if(n===0)return 0;if(Math.abs(n)>=1e21)return yi(n);const a=Math.max(i,0)+qT,o=n.toFixed(a);if(!/^-?\d+(\.\d+)?$/.test(o))return yi(n);const s=o.startsWith("-"),l=o.replace("-","").replace(".","");let u=BigInt(l||"0");s&&(u=-u);const f=10n**BigInt(a-i),c=u<0n?-1n:1n,v=u<0n?-u:u;let h=v/f;const d=v%f,p=2n*d;r==="up"?d!==0n&&(h+=1n):r!=="down"&&p>=f&&(p>f||r==="half-up"||h%2n===1n)&&(h+=1n);const g=c*h;return yi(i>=0?Number(g)/10**i:Number(g)*10**-i)}const ef={Math,Number,String,Boolean,parseInt,parseFloat,isNaN,true:!0,false:!1,null:null,undefined:void 0},QT=new Set(["constructor","__proto__","prototype","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"]),JT=new Set(["Number","String","Boolean","parseInt","parseFloat","isNaN"]);function et(t,e,r={}){switch(t.type){case"num":return t.value;case"str":return t.value;case"bool":return t.value;case"ident":return ex(t.name,e);case"binary":return tx(t,e,r);case"unary":return rx(t,e,r);case"ternary":return et(t.cond,e,r)?et(t.consequent,e,r):et(t.alternate,e,r);case"member":return ax(t,e,r);case"call":return ox(t,e,r);case"array":return t.elements.map(n=>et(n,e,r));case"object":return Object.fromEntries(t.properties.map(n=>[n.key,et(n.value,e,r)]))}}function ex(t,e,r){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];if(Object.prototype.hasOwnProperty.call(ef,t))return ef[t];throw new Error(`未定义的标识符: ${t}`)}function tx(t,e,r){const n=et(t.left,e,r),i=et(t.right,e,r);switch(t.op){case"+":return ix(n,i)?Qu(n,i):nx(n,i);case"-":return Ju(n,i);case"*":return up(n,i);case"/":return fp(n,i);case"%":return KT(n,i);case"<":return n<i;case">":return n>i;case"<=":return n<=i;case">=":return n>=i;case"==":return n==i;case"!=":return n!=i;case"===":return n===i;case"!==":return n!==i;case"&&":return n&&i;case"||":return n||i;default:throw new Error(`未知运算符: ${t.op}`)}}function rx(t,e,r){const n=et(t.arg,e,r);switch(t.op){case"-":return Ju(0,n);case"+":return mt(n);case"!":return!n;default:throw new Error(`未知一元运算符: ${t.op}`)}}function nx(t,e){return`${t==null?"":String(t)}${e==null?"":String(e)}`}function ix(t,e){const r=cp(t),n=cp(e);return r==="other"||n==="other"?!1:r==="num"||n==="num"}function cp(t){return t==null||t===""?"neutral":ZT(t)?"num":"other"}function ax(t,e,r){const n=et(t.object,e,r);if(n==null)throw new Error("无法访问空值的属性");if(QT.has(t.property))throw new Error(`禁止访问属性: ${t.property}`);return n[t.property]}function ox(t,e,r){if(t.callee.type==="ident"&&JT.has(t.callee.name)){const i=ef[t.callee.name],a=t.args.map(o=>et(o,e,r));return i(...a)}if(t.callee.type==="member"&&t.callee.object.type==="ident"&&t.callee.object.name==="Math"){const i=Math[t.callee.property];if(typeof i!="function")throw new Error(`Math.${t.callee.property} 不是方法`);const a=t.args.map(o=>et(o,e,r));return i(...a)}let n;if(t.callee.type==="ident")n=t.callee.name;else if(t.callee.type==="member")throw new Error("不支持方法调用,请使用顶级函数");if(n&&r[n]){const i=t.args.map(a=>et(a,e,r));return r[n](...i)}throw n&&Object.prototype.hasOwnProperty.call(e,n)?new Error(`${n} 不是函数`):new Error(`不允许调用: ${n??"表达式"}`)}function sx(t){const e=[];let r=0;const n=t.length;for(;r<n;){if(t[r]==="{"){let a=1,o=r+1;for(;o<n&&a>0;)t[o]==="{"?a++:t[o]==="}"&&a--,o++;if(a!==0)throw new Error(`位置 ${r}: 花括号未闭合`);const s=t.slice(r+1,o-1);if(s.trim()==="")throw new Error(`位置 ${r}: 空表达式`);const l=Zu(s),u=Ku(l);e.push({type:"expr",expression:u}),r=o;continue}let i=r;for(;i<n&&t[i]!=="{";)t[i]==="\\"&&i+1<n&&(t[i+1]==="{"||t[i+1]==="}")?i+=2:i++;e.push({type:"text",value:t.slice(r,i).replace(/\\([{}])/g,"$1")}),r=i}return{type:"template",parts:e}}function lx(t,e,r={}){let n="";for(const i of t.parts)if(i.type==="text")n+=i.value;else{const a=et(i.expression,e,r);n+=String(a??"")}return n}function hp(t,e={}){const r=sx(t);return n=>lx(r,n,e)}function tf(t,e){if(t==null||e==null)return;if(typeof t=="object"&&e in t)return t[e];const r=e.split(".");let n=t;for(const i of r){if(n==null)return;n=n[i]}return n}function vp(t){const e=Number(t);if(isNaN(e))return String(t);const r=e<0?"-":"",n=Math.abs(e),[i,a]=n.toFixed(2).split("."),o=i.replace(/\B(?=(\d{3})+(?!\d))/g,",");return`${r}${o}.${a}`}function dp(t,e){let r;if(t instanceof Date)r=t;else if(typeof t=="number")r=new Date(t);else if(typeof t=="string")r=new Date(t);else return String(t);if(isNaN(r.getTime()))return String(t);const n=i=>String(i).padStart(2,"0");return e.replace("YYYY",String(r.getFullYear())).replace("MM",n(r.getMonth()+1)).replace("DD",n(r.getDate())).replace("HH",n(r.getHours())).replace("mm",n(r.getMinutes())).replace("ss",n(r.getSeconds()))}const rf=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],ux=["","拾","佰","仟"],fx=["","万","亿","万亿","亿亿"];function cx(t){let e="",r=!1;for(let n=3;n>=0;n--){const i=Math.floor(t/10**n)%10;if(i===0){e&&(r=!0);continue}r&&(e+="零",r=!1),e+=rf[i]+ux[n]}return e}function pp(t){const e=Number(t);if(isNaN(e))return String(t);if(e===0)return"零元整";const r=e<0?"负":"",[n,i]=Math.abs(e).toFixed(2).split("."),a=Math.ceil(n.length/4);let o="",s=!1;for(let f=a-1;f>=0;f--){const c=n.length-f*4,v=parseInt(n.slice(Math.max(0,c-4),c),10);if(v===0){o&&(s=!0);continue}o&&(s||v<1e3)&&(o+="零"),s=!1,o+=cx(v)+(fx[f]??"")}o=`${o||"零"}元`;const l=parseInt(i[0],10),u=parseInt(i[1],10);return l===0&&u===0?o+="整":(l===0?o+="零":o+=rf[l]+"角",u>0&&(o+=rf[u]+"分")),r+o}function gp(t,e,r){return t?e:r}function mp(t,e){return t.reduce((r,n)=>r+(Number(tf(n,e))||0),0)}function hx(t,e){return t.length===0?0:mp(t,e)/t.length}function vx(t,e){return t.length}function dx(t,e){return t.length===0?0:Math.min(...t.map(r=>Number(tf(r,e))||0))}function px(t,e){return t.length===0?0:Math.max(...t.map(r=>Number(tf(r,e))||0))}function yp(...t){return t.reduce((e,r)=>Qu(e,r),0)}function _p(...t){return t.length===0?0:t.slice(1).reduce((e,r)=>Ju(e,r),Qu(t[0],0))}function Sp(...t){return t.length===0?0:t.reduce((e,r)=>up(e,r),1)}function bp(t,e){return fp(t,e)}function wp(t,e){return ns(t,e,"half-up")}function is(t,e){return ns(t,e,"up")}function as(t,e){return ns(t,e,"down")}function Tp(t,e){return ns(t,e,"half-even")}class gx{constructor(){this.functions={}}registerFunction(e,r){this.functions[e]=r}evaluate(e,r){const n=Zu(e),i=Ku(n);return et(i,r,this.functions)}render(e,r){return hp(e,this.functions)(r)}}const xp=new gx,mx={MONEY:vp,DATE:dp,UPPER:pp,IF:gp,CONCAT:(...t)=>t.filter(e=>e!=null).map(String).join(""),IFEMPTY:(t,e)=>t!=null&&t!==""?String(t):e,LEN:t=>String(t).length,ADD:yp,SUB:_p,MUL:Sp,DIV:bp,ROUND:wp,ROUNDUP:is,CEIL:is,ROUNDDOWN:as,FLOOR:as,ROUNDBANK:Tp};for(const[t,e]of Object.entries(mx))xp.registerFunction(t,e);function yx(t,e,r){switch(t.toUpperCase()){case"SUM":return mp(r,e);case"AVG":return hx(r,e);case"COUNT":return vx(r);case"MIN":return dx(r,e);case"MAX":return px(r,e);default:return 0}}function _x(t,e){if(!t)return"";if(!t.includes("{"))return t;const r=Array.isArray(e.rows)?e.rows:[],n=t.replace(/\{([^}]+)\}/g,(i,a)=>{let o=a.trim();return o=o.replace(/\b(SUM|AVG|COUNT|MIN|MAX)\(([^)]+)\)/g,(s,l,u)=>{const f=u.trim().replace(/^['"]|['"]$/g,"");return String(yx(l,f,r))}),`{${o}}`});try{return xp.render(n,e)}catch{return t}}class Sx{constructor(e){this.functions={},e?.functions&&(this.functions={...e.functions})}registerFunction(e,r){this.functions[e]=r}evaluate(e,r){const n=Zu(e),i=Ku(n);return et(i,r,this.functions)}render(e,r){return hp(e,this.functions)(r)}}const bx=new Sx,Tx={MONEY:vp,CONCAT:(...t)=>t.filter(e=>e!=null).join(""),IF:gp,FORMAT:t=>typeof t!="number"?String(t):t.toLocaleString("zh-CN",{minimumFractionDigits:2,maximumFractionDigits:2}),SUBSTR:(t,e,r)=>String(t).slice(e,r?e+r:void 0),LEN:t=>String(t).length,ADD:yp,SUB:_p,MUL:Sp,DIV:bp,ROUND:wp,ROUNDUP:is,CEIL:is,ROUNDDOWN:as,FLOOR:as,ROUNDBANK:Tp,NOW:()=>new Date().toISOString().split("T")[0],IFEMPTY:(t,e)=>t!=null&&t!==""?String(t):e,PAD:(t,e,r)=>String(t).padStart(e,r),REPLACE:(t,e,r)=>String(t).replace(new RegExp(e,"g"),r),JSON:t=>JSON.stringify(t,null,2),DATE:dp,UPPER:pp};for(const[t,e]of Object.entries(Tx))bx.registerFunction(t,e);Object.fromEntries(Object.entries(qu).filter(([,t])=>t.bindings!==void 0).map(([t,e])=>[t,[...e.bindings??[]]]));const sr=["left","top","width","height","chartOption"],os=["dataSource","categoryField","valueFields","seriesField"],lr=["title","legend","palette"],ss=[{type:"barChart",label:"柱状图",icon:"ChartColumn",seriesType:"bar",orientation:"vertical",fields:[...os,...lr,"stack"],requiredOptionKeys:sr,defaultWidth:100,defaultHeight:60,notes:"柱状图:类目 + 多个数值字段,每字段一个 series;series[].data 写 $data 占位;固定高,禁止 autoHeight"},{type:"barHChart",label:"条形图",icon:"ChartBar",seriesType:"bar",orientation:"horizontal",fields:[...os,...lr,"stack"],requiredOptionKeys:sr,defaultWidth:100,defaultHeight:60,notes:"横向条形图:xAxis 为数值、yAxis 为类目;类目写 yAxis.data 的 $data 占位"},{type:"lineChart",label:"折线图",icon:"ChartLine",seriesType:"line",fields:[...os,...lr,"stack"],requiredOptionKeys:sr,defaultWidth:100,defaultHeight:60,notes:"折线图:类目 + 多个数值字段;不写 areaStyle"},{type:"areaChart",label:"面积图",icon:"ChartArea",seriesType:"line",fields:[...os,...lr,"stack"],requiredOptionKeys:sr,defaultWidth:100,defaultHeight:60,notes:"面积图:折线 + series[].areaStyle;其余同折线图"},{type:"pieChart",label:"饼图",icon:"ChartPie",seriesType:"pie",fields:["dataSource","categoryField","valueFields",...lr],requiredOptionKeys:sr,defaultWidth:60,defaultHeight:60,notes:"饼图:类目 + 首个数值字段生成 { name, value };只需一个数值字段"},{type:"doughnutChart",label:"环形图",icon:"Donut",seriesType:"pie",fields:["dataSource","categoryField","valueFields",...lr,"innerRadius"],requiredOptionKeys:sr,defaultWidth:60,defaultHeight:60,notes:"环形图:饼图 + radius:[内径,外径];内径由面板配置"},{type:"scatterChart",label:"散点图",icon:"ChartScatter",seriesType:"scatter",fields:["dataSource","categoryField","valueFields",...lr,"bubble"],requiredOptionKeys:sr,defaultWidth:80,defaultHeight:60,notes:"散点图:类目字段作 x、首个数值字段作 y;chartBubble 开启时用第二个数值字段作点大小"},{type:"radarChart",label:"雷达图",icon:"Radar",seriesType:"radar",fields:["dataSource","categoryField","valueFields",...lr,"radius"],requiredOptionKeys:sr,defaultWidth:70,defaultHeight:60,notes:"雷达图:每个数值字段是一个维度(radar.indicator),每行数据是一个系列(类目字段作系列名);半径由面板写 radar.radius(%,默认 75)"},{type:"funnelChart",label:"漏斗图",icon:"Funnel",seriesType:"funnel",fields:["dataSource","categoryField","valueFields",...lr,"padding"],requiredOptionKeys:sr,defaultWidth:60,defaultHeight:60,notes:"漏斗图:类目 + 首个数值字段,按数值降序;四边内边距由面板写 series.left/right/top/bottom(%,右侧需留外置标签空间)"},{type:"gaugeChart",label:"仪表盘",icon:"Gauge",seriesType:"gauge",fields:["dataSource","valueFields",...lr,"gaugeRange"],requiredOptionKeys:sr,defaultWidth:60,defaultHeight:60,notes:"仪表盘:取首行数据的首个数值字段作指针值;min/max 由面板写入 series[0].min/max"}],Cp=ss.map(t=>t.type);function ur(t){return ss.find(e=>e.type===t)}function Ap(t){return ur(t)?.fields??[]}function xx(t){const e=typeof t=="number"?t:Number(t);return Number.isFinite(e)?e:0}function nf(t,e){if(typeof t=="string")return t.startsWith("$data")?t:t.includes("{")?_x(t,e):t;if(Array.isArray(t))return t.map(r=>nf(r,e));if(t&&typeof t=="object"){const r={};for(const[n,i]of Object.entries(t))r[n]=nf(i,e);return r}return t}function Si(t){return Array.isArray(t.data)&&t.data.includes("$data")}function Cx(t,e){const r=t.dataSource;if(typeof r=="string"&&Array.isArray(e[r]))return e[r];for(const n of Object.values(e))if(Array.isArray(n))return n;return[]}function Dp(t){return typeof t=="string"&&t.length>0?t:void 0}function Ax(t){return Array.isArray(t)?t.filter(e=>typeof e=="string"&&e.length>0):[]}function ba(t){return Array.isArray(t.series)?t.series:[]}function fr(t,e){return e?xx(t[e]):0}function Mp(t,e){for(const r of["xAxis","yAxis"]){const n=t[r],i=Array.isArray(n)?n:n?[n]:[];for(const a of i)a&&typeof a=="object"&&Array.isArray(a.data)&&a.data.includes("$data")&&(a.data=[...e])}}function Dx(t,e,r,n,i){const a=ba(t);if(!a.some(Si))return;const o=e.map((u,f)=>r?u[r]:f+1),s=u=>n[Math.min(u,n.length-1)];if(i){const u=a[0],f=new Map;for(const v of e){const h=String(v[i]??""),d=f.get(h)??new Map,p=String(v[r??""]);d.set(p,(d.get(p)??0)+fr(v,s(0))),f.set(h,d)}const c=[...new Set(o)];t.series=[...f.entries()].map(([v,h])=>({...u,name:v,data:c.map(d=>h.get(String(d))??null)})),Mp(t,c);return}const l=a[a.length-1];for(;a.length<n.length;)a.push({...l,data:["$data"]});t.series=a.map((u,f)=>Si(u)?{...u,data:e.map(c=>fr(c,s(f)))}:u),Mp(t,o)}function Ip(t,e,r,n,i){const a=ba(t);if(!a.some(Si))return;const o=e.map(s=>({name:r?String(s[r]??""):"",value:fr(s,n)}));i&&o.sort((s,l)=>l.value-s.value),t.series=a.map(s=>({...s,data:o}))}function Mx(t,e,r,n,i){const a=ba(t);if(!a.some(Si))return;const o=n[0],s=i?n[1]:void 0,l=s?e.map(v=>fr(v,s)):[],u=l.length>0?Math.min(...l):0,f=l.length>0?Math.max(...l):0,c=v=>f===u?12:Math.round(6+(v-u)/(f-u)*18);t.series=a.map(v=>({...v,data:e.map(h=>{const d=[fr(h,r),fr(h,o)];return s?{value:d,symbolSize:c(fr(h,s))}:d})}))}function Ix(t){if(t<=0)return 10;const e=10**Math.floor(Math.log10(t)),r=e>=10?e:10;return Math.ceil(t/r)*r}function Lx(t,e,r,n){const i=ba(t);if(!i.some(Si))return;const a=n.map(o=>Math.max(0,...e.map(s=>fr(s,o))));t.radar={...t.radar??{},indicator:n.map((o,s)=>({name:o,max:Ix(a[s])}))},t.series=i.map(o=>({...o,data:e.map(s=>({name:r?String(s[r]??""):"",value:n.map(l=>fr(s,l))}))}))}function Px(t,e,r){const n=ba(t);if(!n.some(Si))return;const i=e[0]??{};t.series=n.map(a=>({...a,data:[{value:fr(i,r),name:r}]}))}function Lp(t,e,r){const n=e.chartOption;if(!n||typeof n!="object"||Array.isArray(n))return{};const i=nf(n,r),a=Ax(e.chartValueFields);if(a.length===0)return{_chartOption:i};const o=Cx({...e,dataSource:e.chartDataSource??e.dataSource},r);if(o.length===0)return{_chartOption:i};const s=Dp(e.chartCategoryField);switch(ur(t)?.seriesType){case"radar":Lx(i,o,s,a);break;case"gauge":Px(i,o,a[0]);break;case"funnel":Ip(i,o,s,a[0],!0);break;case"pie":Ip(i,o,s,a[0],!1);break;case"scatter":Mx(i,o,s,a,e.chartBubble===!0);break;default:Dx(i,o,s,a,Dp(e.chartSeriesField));break}return{_chartOption:i}}const wa="@worm-print-platform/echarts",af=[{key:"default",label:"默认蓝",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de"]},{key:"fresh",label:"清新绿",colors:["#2f9e6e","#5cc9a7","#9ad6c1","#f2c94c","#4a90e2"]},{key:"warm",label:"暖橙红",colors:["#f2704e","#f7a35c","#f7d56d","#c54e3f","#8f5a4a"]},{key:"purple",label:"紫灰",colors:["#7b61ff","#9b8cff","#c3baff","#596275","#8d99ae"]}],Ex=["示例一","示例二","示例三"],Pp={top:6,right:25,bottom:6,left:5},Ep=75,kx=50,ls={top:60,right:80,bottom:65,left:80},kp={left:"8%",right:"8%",bottom:"12%",top:"18%",containLabel:!0};function Rx(t){return{top:`${t.top}%`,right:`${t.right}%`,bottom:`${t.bottom}%`,left:`${t.left}%`}}function us(t){const e=ur(t),r={text:""};switch(e?.seriesType){case"pie":return{title:r,tooltip:{trigger:"item"},series:[{type:"pie",name:"数量",data:["$data"],radius:t==="doughnutChart"?["40%","70%"]:"62%"}]};case"scatter":return{title:r,grid:kp,tooltip:{trigger:"axis"},xAxis:{type:"value"},yAxis:{type:"value"},series:[{type:"scatter",name:"数量",data:["$data"],symbolSize:8}]};case"radar":return{title:r,tooltip:{trigger:"item"},radar:{indicator:[],radius:`${Ep}%`},series:[{type:"radar",name:"数量",data:["$data"]}]};case"funnel":return{title:r,tooltip:{trigger:"item"},legend:{show:!1},series:[{type:"funnel",name:"数量",data:["$data"],sort:"descending",...Rx(Pp)}]};case"gauge":return{title:r,tooltip:{trigger:"item"},series:[{type:"gauge",name:"数量",min:0,max:100,data:[{value:0,name:"数量"}]}]};default:{const n=e?.orientation==="horizontal",i=e?.seriesType==="line"&&t==="areaChart",a=e?.seriesType==="line"?"line":"bar";return{title:r,grid:kp,tooltip:{trigger:"axis"},xAxis:n?{type:"value"}:{type:"category",data:["$data"]},yAxis:n?{type:"category",data:["$data"]}:{type:"value"},series:[{type:a,name:"数量",data:["$data"],...i?{areaStyle:{}}:{}}]}}}}function Ox(t){VT(wa,t)}function Ta(){return HT(wa)}function Rp(){const t=Ta().palettes??{},e=af.map(n=>{const i=t[n.key];return i?{key:n.key,label:i.label??n.label,colors:i.colors}:{key:n.key,label:n.label,colors:n.colors}}),r=Object.entries(t).filter(([n])=>!af.some(i=>i.key===n)).map(([n,i])=>({key:n,label:i.label??n,colors:i.colors}));return[...e,...r]}function Op(){const t=Ta().sampleCategories;return Array.isArray(t)&&t.length>0?t:Ex}function Np(t,e){const r=Ta(),n=ur(t);return{width:typeof r.defaultWidth=="number"?r.defaultWidth:n?.defaultWidth??100,height:typeof r.defaultHeight=="number"?r.defaultHeight:n?.defaultHeight??60,title:n?.label??"图表",chartOption:us(t),chartDataSource:"",chartCategoryField:"name",chartValueFields:["value"],chartSeriesField:"",...e}}var of=function(t,e){return of=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},of(t,e)};function G(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");of(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var sf=12,Bp="sans-serif",Pr=sf+"px "+Bp,Nx=20,Bx=100,Fx="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function zx(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),i=(t.charCodeAt(r)-Nx)/Bx;e[n]=i}return e}var Gx=zx(Fx),cr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,n){if(!t){var i=cr.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==n&&(e=t.font=n||Pr),t.measureText(r);r=r||"",n=n||Pr;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||sf,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=Gx[r[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(t,e,r){var n=new Image;return n.onload=e,n.onerror=r,n.src=t,n},getTime:function(){return Date.now?Date.now():+new Date}},Fp=qr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),zp=qr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),xa=Object.prototype.toString,fs=Array.prototype,Vx=fs.forEach,Hx=fs.filter,lf=fs.slice,Ux=fs.map,Gp=(function(){}).constructor,cs=Gp?Gp.prototype:null,uf="__proto__",ff=2311,Wx=Math.pow(2,53)-1;function Vp(){return ff>=Wx&&(ff=0),ff++}function Hp(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function oe(t){if(t==null||typeof t!="object")return t;var e=t,r=xa.call(t);if(r==="[object Array]"){if(!Da(t)){e=[];for(var n=0,i=t.length;n<i;n++)e[n]=oe(t[n])}}else if(zp[r]){if(!Da(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var n=0,i=t.length;n<i;n++)e[n]=t[n]}}}else if(!Fp[r]&&!Da(t)&&!Ca(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==uf&&(e[o]=oe(t[o]))}return e}function be(t,e,r){if(!j(e)||!j(t))return r?oe(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==uf){var i=t[n],a=e[n];j(a)&&j(i)&&!W(a)&&!W(i)&&!Ca(a)&&!Ca(i)&&!Wp(a)&&!Wp(i)&&!Da(a)&&!Da(i)?be(i,a,r):(r||!(n in t))&&(t[n]=oe(e[n]))}return t}function z(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==uf&&(t[r]=e[r]);return t}function Yx(t,e,r){t=t||{};for(var n=0;n<r.length;n++){var i=r[n];t[i]=e[i]}return t}function le(t,e,r){for(var n=ce(e),i=0,a=n.length;i<a;i++){var o=n[i];t[o]==null&&(t[o]=e[o])}return t}function fe(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r}return-1}function $x(t,e){var r=t.prototype;function n(){}n.prototype=e.prototype,t.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);t.prototype.constructor=t,t.superClass=e}function Ut(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&t[a]==null&&(t[a]=e[a])}else le(t,e)}function ut(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function I(t,e,r){if(t&&e)if(t.forEach&&t.forEach===Vx)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function $(t,e,r){if(!t)return[];if(!e)return vf(t);if(t.map&&t.map===Ux)return t.map(e,r);for(var n=[],i=0,a=t.length;i<a;i++)n.push(e.call(r,t[i],i,t));return n}function qr(t,e,r,n){if(t&&e){for(var i=0,a=t.length;i<a;i++)r=e.call(n,r,t[i],i,t);return r}}function Ue(t,e,r){if(!t)return[];if(!e)return vf(t);if(t.filter&&t.filter===Hx)return t.filter(e,r);for(var n=[],i=0,a=t.length;i<a;i++)e.call(r,t[i],i,t)&&n.push(t[i]);return n}function Up(t,e,r){if(t&&e){for(var n=0,i=t.length;n<i;n++)if(e.call(r,t[n],n,t))return t[n]}}function ce(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function Xx(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(lf.call(arguments)))}}var de=cs&&ee(cs.bind)?cs.call.bind(cs.bind):Xx;function Oe(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(lf.call(arguments)))}}function W(t){return Array.isArray?Array.isArray(t):xa.call(t)==="[object Array]"}function ee(t){return typeof t=="function"}function q(t){return typeof t=="string"}function cf(t){return xa.call(t)==="[object String]"}function me(t){return typeof t=="number"}function j(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function Wp(t){return!!Fp[xa.call(t)]}function ft(t){return!!zp[xa.call(t)]}function Ca(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function hf(t){return t.colorStops!=null}function Aa(t){return t!==t}function hs(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=t.length;r<n;r++)if(t[r]!=null)return t[r]}function Z(t,e){return t??e}function bn(t,e,r){return t??e??r}function vf(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return lf.apply(t,e)}function df(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function Wt(t,e){if(!t)throw new Error(e)}function hr(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Yp="__ec_primitive__";function vs(t){t[Yp]=!0}function Da(t){return t[Yp]}var qx=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return ce(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t})(),$p=typeof Map=="function";function Zx(){return $p?new Map:new qx}var Kx=(function(){function t(e){var r=W(e);this.data=Zx();var n=this;e instanceof t?e.each(i):e&&I(e,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(n,i){e.call(r,n,i)})},t.prototype.keys=function(){var e=this.data.keys();return $p?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function te(t){return new Kx(t)}function jx(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];for(var i=t.length,n=0;n<e.length;n++)r[n+i]=e[n];return r}function ds(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&z(r,e),r}function tt(t,e){return t.hasOwnProperty(e)}function We(){}var ps=180/Math.PI,Qx=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),Jx=(function(){function t(){this.browser=new Qx,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return t})(),ie=new Jx;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(ie.wxa=!0,ie.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?ie.worker=!0:!ie.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(ie.node=!0,ie.svgSupported=!0):eC(navigator.userAgent,ie);function eC(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var tC=".",wn="___EC__COMPONENT__CONTAINER___",Xp="___EC__EXTENDED_CLASS___";function vr(t){var e={main:"",sub:""};if(t){var r=t.split(tC);e.main=r[0]||"",e.sub=r[1]||""}return e}function rC(t){Wt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function nC(t){return!!(t&&t[Xp])}function pf(t,e){t.$constructor=t,t.extend=function(r){var n=this,i;return iC(n)?i=(function(a){G(o,a);function o(){return a.apply(this,arguments)||this}return o})(n):(i=function(){(r.$constructor||n).apply(this,arguments)},$x(i,this)),z(i.prototype,r),i[Xp]=!0,i.extend=this.extend,i.superCall=sC,i.superApply=lC,i.superClass=n,i}}function iC(t){return ee(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function qp(t,e){t.extend=e.extend}var aC=Math.round(Math.random()*10);function oC(t){var e=["__\0is_clz",aC++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function sC(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,r)}function lC(t,e,r){return this.superClass.prototype[e].apply(t,r)}function gs(t){var e={};t.registerClass=function(n){var i=n.type||n.prototype.type;if(i){rC(i),n.prototype.type=i;var a=vr(i);if(!a.sub)e[a.main]=n;else if(a.sub!==wn){var o=r(a);o[a.sub]=n}}return n},t.getClass=function(n,i,a){var o=e[n];if(o&&o[wn]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},t.getClassesByMainType=function(n){var i=vr(n),a=[],o=e[i.main];return o&&o[wn]?I(o,function(s,l){l!==wn&&a.push(s)}):a.push(o),a},t.hasClass=function(n){var i=vr(n);return!!e[i.main]},t.getAllClassMainTypes=function(){var n=[];return I(e,function(i,a){n.push(a)}),n},t.hasSubTypes=function(n){var i=vr(n),a=e[i.main];return a&&a[wn]};function r(n){var i=e[n.main];return(!i||!i[wn])&&(i=e[n.main]={},i[wn]=!0),i}}function Ma(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(n,i,a){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(i&&fe(i,l)>=0||a&&fe(a,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var uC=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],fC=Ma(uC),cC=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return fC(this,e,r)},t})(),Zp=(function(){function t(e){this.value=e}return t})(),hC=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new Zp(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})(),bi=(function(){function t(e){this._list=new hC,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,i=this._map,a=null;if(i[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new Zp(r),s.key=e,n.insertEntry(s),i[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),gf=new bi(50);function vC(t){if(typeof t=="string"){var e=gf.get(t);return e&&e.image}else return t}function mf(t,e,r,n,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=gf.get(t),o={hostEl:r,cb:n,cbPayload:i};return a?(e=a.image,!ms(e)&&a.pending.push(o)):(e=cr.loadImage(t,Kp,Kp),e.__zrImageSrc=t,gf.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function Kp(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function ms(t){return t&&t.width&&t.height}function dr(){return[1,0,0,1,0,0]}function Ia(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function yf(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function La(t,e,r){var n=e[0]*r[0]+e[2]*r[1],i=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function _f(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function Sf(t,e,r,n){n===void 0&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=i*c+s*f,t[1]=-i*f+s*c,t[2]=a*c+l*f,t[3]=-a*f+c*l,t[4]=c*(o-n[0])+f*(u-n[1])+n[0],t[5]=c*(u-n[1])-f*(o-n[0])+n[1],t}function dC(t,e,r){var n=r[0],i=r[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function Pa(t,e){var r=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-o*i)*l,t[5]=(a*i-r*s)*l,t):null}function wi(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function pC(t){return[t[0],t[1]]}function bf(t,e,r){return t[0]=e,t[1]=r,t}function jp(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function gC(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function mC(t){return Math.sqrt(yC(t))}function yC(t){return t[0]*t[0]+t[1]*t[1]}function wf(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function _C(t,e){var r=mC(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function Tf(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var xf=Tf;function SC(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Ti=SC;function Cf(t,e,r,n){return t[0]=e[0]+n*(r[0]-e[0]),t[1]=e[1]+n*(r[1]-e[1]),t}function wt(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5],t}function xi(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function Ci(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var re=(function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,i){e.x=r.x+n.x*i,e.y=r.y+n.y*i},t.lerp=function(e,r,n,i){var a=1-i;e.x=a*r.x+i*n.x,e.y=a*r.y+i*n.y},t})(),Tn=Math.min,Ai=Math.max,Af=Math.abs,Qp=["x","y"],bC=["width","height"],xn=new re,Cn=new re,An=new re,Dn=new re,yt=tg(),Ea=yt.minTv,Df=yt.maxTv,ka=[0,0],ne=(function(){function t(e,r,n,i){Mf(this,e,r,n,i)}return t.set=function(e,r,n,i,a){return i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),e.x=r,e.y=n,e.width=i,e.height=a,e},t.prototype.union=function(e){var r=Tn(e.x,this.x),n=Tn(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ai(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ai(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){return wC(dr(),this,e)},t.prototype.intersect=function(e,r,n){return t.intersect(this,e,r,n)},t.intersect=function(e,r,n,i){n&&re.set(n,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!r)return!1;e instanceof t||(e=Mf(TC,e.x,e.y,e.width,e.height)),r instanceof t||(r=Mf(xC,r.x,r.y,r.width,r.height));var s=!!n;yt.reset(i,s);var l=yt.touchThreshold,u=e.x+l,f=e.x+e.width-l,c=e.y+l,v=e.y+e.height-l,h=r.x+l,d=r.x+r.width-l,p=r.y+l,g=r.y+r.height-l;if(u>f||c>v||h>d||p>g)return!1;var m=!(f<h||d<u||v<p||g<c);return(s||a)&&(ka[0]=1/0,ka[1]=0,eg(u,f,h,d,0,s,a,o),eg(c,v,p,g,1,s,a,o),s&&re.copy(n,m?yt.useDir?yt.dirMinTv:Ea:Df)),m},t.contain=function(e,r,n){return r>=e.x&&r<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){Jp(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,n){if(!n){e!==r&&Jp(e,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];e.x=r.x*i+o,e.y=r.y*a+s,e.width=r.width*i,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}xn.x=An.x=r.x,xn.y=Dn.y=r.y,Cn.x=Dn.x=r.x+r.width,Cn.y=An.y=r.y+r.height,xn.transform(n),Dn.transform(n),Cn.transform(n),An.transform(n),e.x=Tn(xn.x,Cn.x,An.x,Dn.x),e.y=Tn(xn.y,Cn.y,An.y,Dn.y);var l=Ai(xn.x,Cn.x,An.x,Dn.x),u=Ai(xn.y,Cn.y,An.y,Dn.y);e.width=l-e.x,e.height=u-e.y},t.calculateTransform=function(e,r,n){var i=n.width/r.width,a=n.height/r.height;return e=Ia(e||[]),_f(e,e,bf(If,-r.x,-r.y)),dC(e,e,bf(If,i,a)),_f(e,e,bf(If,n.x,n.y)),e},t})();ne.create;var Mf=ne.set,Jp=ne.copy,wC=ne.calculateTransform;ne.applyTransform,ne.contain;var TC=new ne(0,0,0,0),xC=new ne(0,0,0,0),If=[];function eg(t,e,r,n,i,a,o,s){var l=Af(e-r),u=Af(n-t),f=Tn(l,u),c=Qp[i],v=Qp[1-i],h=bC[i];e<r||n<t?l<u?(a&&(Df[c]=-l),s&&(o[c]=e,o[h]=0)):(a&&(Df[c]=u),s&&(o[c]=t,o[h]=0)):(o&&(o[c]=Ai(t,r),o[h]=Tn(e,n)-o[c]),a&&(f<ka[0]||yt.useDir)&&(ka[0]=Tn(f,ka[0]),(l<u||!yt.bidirectional)&&(Ea[c]=l,Ea[v]=0,yt.useDir&&yt.calcDirMTV()),(l>=u||!yt.bidirectional)&&(Ea[c]=-u,Ea[v]=0,yt.useDir&&yt.calcDirMTV())))}function tg(){var t=0,e=new re,r=new re,n={minTv:new re,maxTv:new re,useDir:!1,dirMinTv:new re,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){n.touchThreshold=0,a&&a.touchThreshold!=null&&(n.touchThreshold=Ai(0,a.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,a&&a.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),t=a.direction,n.bidirectional=a.bidirectional==null||!!a.bidirectional,n.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(t),u=Math.cos(t),f=l*a.y+u*a.x;if(i(f)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(r.x=s*u/f,r.y=s*l/f,i(r.x)&&i(r.y)){o.set(0,0);return}(n.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function i(a){return Af(a)<1e-10}return n}function pr(t){ys||(ys=new bi(100)),t=t||Pr;var e=ys.get(t);return e||(e={font:t,strWidthCache:new bi(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:cr.measureText("国",t).width,asciiCharWidth:cr.measureText("a",t).width},ys.put(t,e)),e}var ys;function CC(t){if(!(Lf>=rg)){t=t||Pr;for(var e=[],r=+new Date,n=0;n<=127;n++)e[n]=cr.measureText(String.fromCharCode(n),t).width;var i=+new Date-r;return i>16?Lf=rg:i>2&&Lf++,e}}var Lf=0,rg=5;function ng(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=CC(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function gr(t,e){var r=t.strWidthCache,n=r.get(e);return n==null&&(n=cr.measureText(e,t.font).width,r.put(e,n)),n}function ig(t,e,r,n){var i=gr(pr(e),t),a=Ra(e),o=Di(0,i,r),s=Mn(0,a,n),l=new ne(o,s,i,a);return l}function ag(t,e,r,n){var i=((t||"")+"").split(`
1
+ (function(es){typeof define=="function"&&define.amd?define(es):es()})((function(){"use strict";function es(){let t=0;return function(){return t+=1,`cell-${Date.now().toString(36)}-${t}`}}function ET(){let t=0;return function(){return t+=1,`row-${Date.now().toString(36)}-${t}`}}const kT=es(),RT=ET(),ts={width:.75,style:"solid",color:"#333333"};function OT(t){return{id:kT(),borders:{top:{...ts},right:{...ts},bottom:{...ts},left:{...ts}},...t}}function NT(){const t=[50,50,50],e=(n,i)=>({id:RT(),type:n,height:8,...i!==void 0?{repeatOnPage:i}:{},cells:t.map(()=>OT())}),r=e("header",!0);return r.cells.forEach((n,i)=>{n.formatter=`列${i+1}`,n.align="center",n.fontWeight="bold"}),{rows:[r,e("data"),e("subtotal"),e("summary")],colWidths:t}}const ep=Symbol.for("worm-print-platform.element-capabilities.v1"),tp=globalThis;function mi(){const t=tp[ep];if(t)return t;const e={entries:new Map,nextSeq:0,bootstrapped:!1};return tp[ep]=e,BT(e),e}const qu=Object.freeze({text:{zoneAllowed:!0,defaultTextFit:"clip",bindings:[{targetPath:"options.formatter",label:"内容",dataSource:"main"}],defaultOptions:()=>({formatter:"文本",exampleValue:"示例文本",fontSize:12,textAlign:"left",height:5.3}),title:"文本"},longText:{defaultTextFit:"autoHeight",bindings:[{targetPath:"options.formatter",label:"内容",dataSource:"main"},{targetPath:"options.styler",label:"样式",dataSource:"main"}],defaultOptions:()=>({width:141.1,height:28.2,fontSize:12,lineHeight:18,exampleValue:"示例长文本内容"}),title:"长文"},barcode:{zoneAllowed:!0,codeRotationDpiGated:!0,bindings:[{targetPath:"options.formatter",label:"内容",dataSource:"main"}],defaultOptions:()=>({width:56.4,height:14.1,title:"条形码",barcodeType:"code128",testData:"12345678",exampleValue:"12345678"}),title:"条形码"},qrcode:{zoneAllowed:!0,codeRotationDpiGated:!0,bindings:[{targetPath:"options.formatter",label:"内容",dataSource:"main"}],defaultOptions:()=>({width:28.2,height:28.2,title:"二维码",testData:"qrcode",exampleValue:"qrcode"}),title:"二维码"},image:{zoneAllowed:!0,bindings:[{targetPath:"options.src",label:"内容",dataSource:"main",placeholder:"输入图片路径,支持 /docfiles/... 相对路径、绝对 URL 或 {字段} 表达式"}],defaultOptions:()=>({width:28.2,height:28.2,fit:"contain"}),title:"图片"},table:{rotationExcluded:!0,acceptsElementBorder:!1,bindings:[],defaultOptions:()=>{const{rows:t,colWidths:e}=NT(),r=e.reduce((i,a)=>i+a,0),n=t.reduce((i,a)=>i+a.height,0);return{width:r,height:n,tableMode:"dynamic",tableRows:t,tableColWidths:e,tableDefaultFontSize:10,tableDefaultColor:"#333333",tableDefaultPadding:1,fields:[],tablePagination:{enabled:!0}}},title:"表格"},flowList:{rotationExcluded:!0,defaultTextFit:"clip",bindings:[{targetPath:"options.formatter",label:"单元模板",dataSource:"main",placeholder:"{drugs.name} {drugs.spec}"}],defaultOptions:()=>({width:141.1,height:21.2,fontSize:12,formatter:"{name} {spec}",flowColumns:4,flowRowHeight:8,flowGapX:4,flowAutoSpan:!1,flowMaxSpan:2,flowLayoutMode:"fixed",flowPaddingTop:0,flowPaddingRight:0,flowPaddingBottom:0,flowPaddingLeft:0}),title:"流式列表"},hline:{zoneAllowed:!0,acceptsElementBorder:!1,defaultOptions:()=>({width:70.6,height:1.8,borderWidth:.75}),title:"横线"},vline:{zoneAllowed:!0,acceptsElementBorder:!1,defaultOptions:()=>({width:1.8,height:35.3,borderWidth:.75}),title:"竖线"},rect:{zoneAllowed:!0,acceptsElementBorder:!1,defaultOptions:()=>({width:28.2,height:28.2,borderWidth:1,borderColor:"#333"}),title:"矩形"},oval:{zoneAllowed:!0,acceptsElementBorder:!1,defaultOptions:()=>({width:28.2,height:28.2,borderWidth:1,borderColor:"#333"}),title:"椭圆"},html:{blocked:!0,defaultOptions:()=>({width:28.2,height:28.2}),title:"HTML"},pageNumber:{title:"页码"}});function BT(t){if(!t.bootstrapped){t.bootstrapped=!0;for(const[e,r]of Object.entries(qu))t.entries.has(e)||t.entries.set(e,{caps:r,seq:t.nextSeq++})}}function FT(t,e){if(!t||typeof t!="string")throw new Error("registerElementCapabilities: type 必须是非空字符串");if(!e||typeof e!="object")throw new Error("registerElementCapabilities: caps 必须是对象");const r=mi(),n=r.nextSeq++;return r.entries.set(t,{caps:e,seq:n}),()=>{if(mi().entries.get(t)?.caps!==e)return;const a=qu[t];a?mi().entries.set(t,{caps:a,seq:n}):mi().entries.delete(t)}}function rp(t){return t?{...mi().entries.get(t)?.caps??{},type:t}:{type:""}}function np(){return[...mi().entries.entries()].sort((t,e)=>t[1].seq-e[1].seq).map(([t])=>t)}const ip=Symbol.for("worm-print-platform.element-plugin-registry.v1"),ap=globalThis;function rs(){const t=ap[ip];if(t)return t;const e={plugins:new Map,typeIndex:new Map,configs:new Map,legacyAliases:new Map};return ap[ip]=e,e}function op(t){if(!t?.id||typeof t.id!="string")throw new Error("defineElementPlugin: id 必须是非空字符串");if(!t.version||typeof t.version!="string")throw new Error("defineElementPlugin: version 必须是非空字符串");if(!Array.isArray(t.kinds)||t.kinds.length===0)throw new Error("defineElementPlugin: kinds 必须是非空数组");const e=new Set;for(const r of t.kinds){if(!r?.type||typeof r.type!="string")throw new Error("defineElementPlugin: kinds[].type 必须是非空字符串");if(e.has(r.type))throw new Error(`defineElementPlugin: kinds 内 type 重复「${r.type}」`);e.add(r.type)}}function zT(t){return op(t),t}function sp(t){op(t);const e=rs();for(const[n,i]of[...e.typeIndex])i.plugin.id===t.id&&i.plugin!==t&&e.typeIndex.delete(n);e.plugins.set(t.id,t);for(const n of t.kinds)e.typeIndex.set(n.type,{plugin:t,kind:n});const r=[];for(const n of t.kinds){const i={...n.fixedHeight===!0?{fixedHeight:!0}:{},...n.blocked===!0?{blocked:!0}:{},...n.capabilities??{}};Object.keys(i).length!==0&&r.push(FT(n.type,i))}for(const[n,i]of Object.entries(t.legacyAliases??{}))e.legacyAliases.set(n,i);return()=>{if(e.plugins.get(t.id)===t){e.plugins.delete(t.id);for(const[n,i]of[...e.typeIndex])i.plugin===t&&e.typeIndex.delete(n);for(const n of r)n()}}}function VT(t){return rs().plugins.get(t)}function GT(t,e){const r=rs();r.configs.set(t,{...r.configs.get(t)??{},...e})}function HT(t){return{...rs().configs.get(t)??{}}}function UT(){return np().filter(t=>rp(t).blocked===!0)}UT();function WT(){return np().filter(t=>rp(t).zoneAllowed===!0)}WT();const YT=new Set(["constructor","__proto__","prototype","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"]),$T=new Set(["new","function","class","this","delete","typeof","void","in","of","var","let","const","return","if","while","for"]);function Zu(t){const e=[];let r=0;const n=t.length;for(;r<n;){const i=t[r];if(/\s/.test(i)){r++;continue}if(/[0-9]/.test(i)||i==="."&&r+1<n&&/[0-9]/.test(t[r+1])){let s=r;for(;s<n&&/[0-9.]/.test(t[s]);)s++;e.push({type:"num",value:t.slice(r,s),position:r}),r=s;continue}if(i==="'"||i==='"'){let s=r+1,l="";for(;s<n&&t[s]!==i;)t[s]==="\\"&&s+1<n?(l+=t[s+1],s+=2):(l+=t[s],s++);if(s>=n)throw new Error("字符串未闭合");e.push({type:"str",value:l,position:r}),r=s+1;continue}if(/[A-Za-z_$\u4e00-\u9fff]/.test(i)){let s=r;for(;s<n&&/[A-Za-z0-9_$\u4e00-\u9fff]/.test(t[s]);)s++;const l=t.slice(r,s);if($T.has(l))throw new Error(`不允许使用关键字: ${l}`);if(YT.has(l))throw new Error(`禁止访问: ${l}`);l==="true"||l==="false"?e.push({type:"bool",value:l,position:r}):e.push({type:"ident",value:l,position:r}),r=s;continue}const a=t.slice(r,r+3);if(a==="==="||a==="!=="){e.push({type:"punc",value:a,position:r}),r+=3;continue}const o=t.slice(r,r+2);if(o==="=>")throw new Error("不允许函数定义");if(["==","!=","<=",">=","&&","||"].includes(o)){e.push({type:"punc",value:o,position:r}),r+=2;continue}if(i==="=")throw new Error("不允许赋值");if(i===";")throw new Error("不允许多条语句");if("+-*/%()[]{},:.?!<>".includes(i)){e.push({type:"punc",value:i,position:r}),r++;continue}throw new Error(`非法字符: ${i}`)}return e}function Ku(t){return new XT(t).parse()}class XT{constructor(e){this.pos=0,this.tokens=e}parse(){const e=this.parseTernary();if(this.pos<this.tokens.length)throw new Error(`表达式存在多余内容: ${this.tokens[this.pos].value}`);return e}peek(){return this.tokens[this.pos]}next(){const e=this.tokens[this.pos++];if(!e)throw new Error("表达式意外结束");return e}eatPunc(e){const r=this.peek();return r&&r.type==="punc"&&r.value===e?(this.pos++,!0):!1}expectPunc(e){if(!this.eatPunc(e)){const r=this.peek()?.position??0;throw new Error(`位置 ${r}: 期望 "${e}"`)}}parseTernary(){const e=this.parseLogicalOr();if(this.eatPunc("?")){const r=this.parseTernary();this.expectPunc(":");const n=this.parseTernary();return{type:"ternary",cond:e,consequent:r,alternate:n}}return e}parseLogicalOr(){let e=this.parseLogicalAnd();for(;this.eatPunc("||");){const r=this.parseLogicalAnd();e={type:"binary",op:"||",left:e,right:r}}return e}parseLogicalAnd(){let e=this.parseEquality();for(;this.eatPunc("&&");){const r=this.parseEquality();e={type:"binary",op:"&&",left:e,right:r}}return e}parseEquality(){let e=this.parseRelational();for(;;){const r=this.peek();if(r?.type==="punc"&&["==","!=","===","!=="].includes(r.value)){this.pos++;const n=this.parseRelational();e={type:"binary",op:r.value,left:e,right:n}}else return e}}parseRelational(){let e=this.parseAdditive();for(;;){const r=this.peek();if(r?.type==="punc"&&["<",">","<=",">="].includes(r.value)){this.pos++;const n=this.parseAdditive();e={type:"binary",op:r.value,left:e,right:n}}else return e}}parseAdditive(){let e=this.parseMultiplicative();for(;;){const r=this.peek();if(r?.type==="punc"&&(r.value==="+"||r.value==="-")){this.pos++;const n=this.parseMultiplicative();e={type:"binary",op:r.value,left:e,right:n}}else return e}}parseMultiplicative(){let e=this.parseUnary();for(;;){const r=this.peek();if(r?.type==="punc"&&["*","/","%"].includes(r.value)){this.pos++;const n=this.parseUnary();e={type:"binary",op:r.value,left:e,right:n}}else return e}}parseUnary(){const e=this.peek();if(e?.type==="punc"&&["!","-","+"].includes(e.value)){this.pos++;const r=this.parseUnary();return{type:"unary",op:e.value,arg:r,prefix:!0}}return this.parsePostfix()}parsePostfix(){let e=this.parsePrimary();for(;;)if(this.eatPunc(".")){const r=this.next();if(r.type!=="ident")throw new Error(`位置 ${r.position}: 成员访问需要属性名`);e={type:"member",object:e,property:r.value,computed:!1}}else if(this.eatPunc("[")){const r=this.parseTernary();this.expectPunc("]"),r.type==="str"?e={type:"member",object:e,property:r.value,computed:!1}:e={type:"member",object:e,property:r.name??String(r.value),computed:!0}}else if(this.peek()?.type==="punc"&&this.peek()?.value==="("&&(e.type==="ident"||e.type==="member")){this.pos++;const r=this.parseArgs();e={type:"call",callee:e,args:r}}else return e}parseArgs(){const e=[];if(this.eatPunc(")"))return e;for(;;){if(e.push(this.parseTernary()),this.eatPunc(")"))return e;this.expectPunc(",")}}parsePrimary(){const e=this.next();if(e.type==="num"){const r=Number(e.value);if(isNaN(r))throw new Error(`非法数字: ${e.value}`);return{type:"num",value:r}}if(e.type==="str")return{type:"str",value:e.value};if(e.type==="bool")return{type:"bool",value:e.value==="true"};if(e.type==="ident")return{type:"ident",name:e.value};if(e.value==="("){const r=this.parseTernary();return this.expectPunc(")"),r}if(e.value==="["){const r=[];if(!this.eatPunc("]"))for(;r.push(this.parseTernary()),!this.eatPunc("]");)this.expectPunc(",");return{type:"array",elements:r}}if(e.value==="{"){const r=[];if(!this.eatPunc("}"))for(;;){const n=this.next();if(n.type!=="ident"&&n.type!=="str")throw new Error(`位置 ${n.position}: 对象键必须是标识符或字符串`);if(this.expectPunc(":"),r.push({key:n.value,value:this.parseTernary()}),this.eatPunc("}"))break;this.expectPunc(",")}return{type:"object",properties:r}}throw new Error(`位置 ${e.position}: 意外的符号: ${e.value}`)}}const lp=20,qT=8;function mt(t,e=0){if(typeof t=="number")return Number.isFinite(t)?t:e;if(typeof t=="string"){const r=t.trim();if(r==="")return e;const n=Number(r);return Number.isFinite(n)?n:e}return t==null?e:typeof t=="boolean"?t?1:0:e}function ZT(t){if(typeof t=="number")return Number.isFinite(t);if(typeof t=="string"){const e=t.trim();return e!==""&&Number.isFinite(Number(e))}return!1}function yi(t){return!Number.isFinite(t)||Number.isInteger(t)||Math.abs(t)>=1e15?t:Number(t.toPrecision(12))}function _i(t){if(!Number.isFinite(t)||Number.isInteger(t))return 0;const e=String(t);if(e.includes("e")||e.includes("E"))return 0;const r=e.indexOf(".");return r===-1?0:e.length-r-1}function ju(t,e){if(!Number.isFinite(t))return 0;const r=Math.min(Math.max(e,0),12);if(r===0)return Math.round(t);const n=10**r,i=t*n;return!Number.isFinite(i)||Math.abs(i)>=1e15?yi(t):Math.round(i)/n}function Qu(t,e){const r=mt(t),n=mt(e),i=r+n;return ju(i,Math.max(_i(r),_i(n)))}function Ju(t,e){const r=mt(t),n=mt(e),i=r-n;return ju(i,Math.max(_i(r),_i(n)))}function up(t,e){const r=mt(t),n=mt(e),i=r*n;return ju(i,_i(r)+_i(n))}function fp(t,e){const r=mt(t),n=mt(e);return n===0?0:yi(r/n)}function KT(t,e){const r=mt(t),n=mt(e);return n===0?0:yi(r%n)}function jT(t){if(t==null)return 2;const e=Math.trunc(mt(t,2));return Number.isFinite(e)?Math.min(Math.max(e,-lp),lp):2}function ns(t,e,r){const n=mt(t,0),i=jT(e);if(n===0)return 0;if(Math.abs(n)>=1e21)return yi(n);const a=Math.max(i,0)+qT,o=n.toFixed(a);if(!/^-?\d+(\.\d+)?$/.test(o))return yi(n);const s=o.startsWith("-"),l=o.replace("-","").replace(".","");let u=BigInt(l||"0");s&&(u=-u);const f=10n**BigInt(a-i),c=u<0n?-1n:1n,v=u<0n?-u:u;let h=v/f;const d=v%f,p=2n*d;r==="up"?d!==0n&&(h+=1n):r!=="down"&&p>=f&&(p>f||r==="half-up"||h%2n===1n)&&(h+=1n);const g=c*h;return yi(i>=0?Number(g)/10**i:Number(g)*10**-i)}const ef={Math,Number,String,Boolean,parseInt,parseFloat,isNaN,true:!0,false:!1,null:null,undefined:void 0},QT=new Set(["constructor","__proto__","prototype","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"]),JT=new Set(["Number","String","Boolean","parseInt","parseFloat","isNaN"]);function et(t,e,r={}){switch(t.type){case"num":return t.value;case"str":return t.value;case"bool":return t.value;case"ident":return ex(t.name,e);case"binary":return tx(t,e,r);case"unary":return rx(t,e,r);case"ternary":return et(t.cond,e,r)?et(t.consequent,e,r):et(t.alternate,e,r);case"member":return ax(t,e,r);case"call":return ox(t,e,r);case"array":return t.elements.map(n=>et(n,e,r));case"object":return Object.fromEntries(t.properties.map(n=>[n.key,et(n.value,e,r)]))}}function ex(t,e,r){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];if(Object.prototype.hasOwnProperty.call(ef,t))return ef[t];throw new Error(`未定义的标识符: ${t}`)}function tx(t,e,r){const n=et(t.left,e,r),i=et(t.right,e,r);switch(t.op){case"+":return ix(n,i)?Qu(n,i):nx(n,i);case"-":return Ju(n,i);case"*":return up(n,i);case"/":return fp(n,i);case"%":return KT(n,i);case"<":return n<i;case">":return n>i;case"<=":return n<=i;case">=":return n>=i;case"==":return n==i;case"!=":return n!=i;case"===":return n===i;case"!==":return n!==i;case"&&":return n&&i;case"||":return n||i;default:throw new Error(`未知运算符: ${t.op}`)}}function rx(t,e,r){const n=et(t.arg,e,r);switch(t.op){case"-":return Ju(0,n);case"+":return mt(n);case"!":return!n;default:throw new Error(`未知一元运算符: ${t.op}`)}}function nx(t,e){return`${t==null?"":String(t)}${e==null?"":String(e)}`}function ix(t,e){const r=cp(t),n=cp(e);return r==="other"||n==="other"?!1:r==="num"||n==="num"}function cp(t){return t==null||t===""?"neutral":ZT(t)?"num":"other"}function ax(t,e,r){const n=et(t.object,e,r);if(n==null)throw new Error("无法访问空值的属性");if(QT.has(t.property))throw new Error(`禁止访问属性: ${t.property}`);return n[t.property]}function ox(t,e,r){if(t.callee.type==="ident"&&JT.has(t.callee.name)){const i=ef[t.callee.name],a=t.args.map(o=>et(o,e,r));return i(...a)}if(t.callee.type==="member"&&t.callee.object.type==="ident"&&t.callee.object.name==="Math"){const i=Math[t.callee.property];if(typeof i!="function")throw new Error(`Math.${t.callee.property} 不是方法`);const a=t.args.map(o=>et(o,e,r));return i(...a)}let n;if(t.callee.type==="ident")n=t.callee.name;else if(t.callee.type==="member")throw new Error("不支持方法调用,请使用顶级函数");if(n&&r[n]){const i=t.args.map(a=>et(a,e,r));return r[n](...i)}throw n&&Object.prototype.hasOwnProperty.call(e,n)?new Error(`${n} 不是函数`):new Error(`不允许调用: ${n??"表达式"}`)}function sx(t){const e=[];let r=0;const n=t.length;for(;r<n;){if(t[r]==="{"){let a=1,o=r+1;for(;o<n&&a>0;)t[o]==="{"?a++:t[o]==="}"&&a--,o++;if(a!==0)throw new Error(`位置 ${r}: 花括号未闭合`);const s=t.slice(r+1,o-1);if(s.trim()==="")throw new Error(`位置 ${r}: 空表达式`);const l=Zu(s),u=Ku(l);e.push({type:"expr",expression:u}),r=o;continue}let i=r;for(;i<n&&t[i]!=="{";)t[i]==="\\"&&i+1<n&&(t[i+1]==="{"||t[i+1]==="}")?i+=2:i++;e.push({type:"text",value:t.slice(r,i).replace(/\\([{}])/g,"$1")}),r=i}return{type:"template",parts:e}}function lx(t,e,r={}){let n="";for(const i of t.parts)if(i.type==="text")n+=i.value;else{const a=et(i.expression,e,r);n+=String(a??"")}return n}function hp(t,e={}){const r=sx(t);return n=>lx(r,n,e)}function tf(t,e){if(t==null||e==null)return;if(typeof t=="object"&&e in t)return t[e];const r=e.split(".");let n=t;for(const i of r){if(n==null)return;n=n[i]}return n}function vp(t){const e=Number(t);if(isNaN(e))return String(t);const r=e<0?"-":"",n=Math.abs(e),[i,a]=n.toFixed(2).split("."),o=i.replace(/\B(?=(\d{3})+(?!\d))/g,",");return`${r}${o}.${a}`}function dp(t,e){let r;if(t instanceof Date)r=t;else if(typeof t=="number")r=new Date(t);else if(typeof t=="string")r=new Date(t);else return String(t);if(isNaN(r.getTime()))return String(t);const n=i=>String(i).padStart(2,"0");return e.replace("YYYY",String(r.getFullYear())).replace("MM",n(r.getMonth()+1)).replace("DD",n(r.getDate())).replace("HH",n(r.getHours())).replace("mm",n(r.getMinutes())).replace("ss",n(r.getSeconds()))}const rf=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],ux=["","拾","佰","仟"],fx=["","万","亿","万亿","亿亿"];function cx(t){let e="",r=!1;for(let n=3;n>=0;n--){const i=Math.floor(t/10**n)%10;if(i===0){e&&(r=!0);continue}r&&(e+="零",r=!1),e+=rf[i]+ux[n]}return e}function pp(t){const e=Number(t);if(isNaN(e))return String(t);if(e===0)return"零元整";const r=e<0?"负":"",[n,i]=Math.abs(e).toFixed(2).split("."),a=Math.ceil(n.length/4);let o="",s=!1;for(let f=a-1;f>=0;f--){const c=n.length-f*4,v=parseInt(n.slice(Math.max(0,c-4),c),10);if(v===0){o&&(s=!0);continue}o&&(s||v<1e3)&&(o+="零"),s=!1,o+=cx(v)+(fx[f]??"")}o=`${o||"零"}元`;const l=parseInt(i[0],10),u=parseInt(i[1],10);return l===0&&u===0?o+="整":(l===0?o+="零":o+=rf[l]+"角",u>0&&(o+=rf[u]+"分")),r+o}function gp(t,e,r){return t?e:r}function mp(t,e){return t.reduce((r,n)=>r+(Number(tf(n,e))||0),0)}function hx(t,e){return t.length===0?0:mp(t,e)/t.length}function vx(t,e){return t.length}function dx(t,e){return t.length===0?0:Math.min(...t.map(r=>Number(tf(r,e))||0))}function px(t,e){return t.length===0?0:Math.max(...t.map(r=>Number(tf(r,e))||0))}function yp(...t){return t.reduce((e,r)=>Qu(e,r),0)}function _p(...t){return t.length===0?0:t.slice(1).reduce((e,r)=>Ju(e,r),Qu(t[0],0))}function Sp(...t){return t.length===0?0:t.reduce((e,r)=>up(e,r),1)}function bp(t,e){return fp(t,e)}function wp(t,e){return ns(t,e,"half-up")}function is(t,e){return ns(t,e,"up")}function as(t,e){return ns(t,e,"down")}function Tp(t,e){return ns(t,e,"half-even")}class gx{constructor(){this.functions={}}registerFunction(e,r){this.functions[e]=r}evaluate(e,r){const n=Zu(e),i=Ku(n);return et(i,r,this.functions)}render(e,r){return hp(e,this.functions)(r)}}const xp=new gx,mx={MONEY:vp,DATE:dp,UPPER:pp,IF:gp,CONCAT:(...t)=>t.filter(e=>e!=null).map(String).join(""),IFEMPTY:(t,e)=>t!=null&&t!==""?String(t):e,LEN:t=>String(t).length,ADD:yp,SUB:_p,MUL:Sp,DIV:bp,ROUND:wp,ROUNDUP:is,CEIL:is,ROUNDDOWN:as,FLOOR:as,ROUNDBANK:Tp};for(const[t,e]of Object.entries(mx))xp.registerFunction(t,e);function yx(t,e,r){switch(t.toUpperCase()){case"SUM":return mp(r,e);case"AVG":return hx(r,e);case"COUNT":return vx(r);case"MIN":return dx(r,e);case"MAX":return px(r,e);default:return 0}}function _x(t,e,r){if(!t)return"";if(!t.includes("{"))return t;const n=Array.isArray(e.rows)?e.rows:[],i=t.replace(/\{([^}]+)\}/g,(a,o)=>{let s=o.trim();return s=s.replace(/\b(SUM|AVG|COUNT|MIN|MAX)\(([^)]+)\)/g,(l,u,f)=>{const c=f.trim().replace(/^['"]|['"]$/g,"");return String(yx(u,c,n))}),`{${s}}`});try{return xp.render(i,e)}catch{return r??t}}class Sx{constructor(e){this.functions={},e?.functions&&(this.functions={...e.functions})}registerFunction(e,r){this.functions[e]=r}evaluate(e,r){const n=Zu(e),i=Ku(n);return et(i,r,this.functions)}render(e,r){return hp(e,this.functions)(r)}}const bx=new Sx,Tx={MONEY:vp,CONCAT:(...t)=>t.filter(e=>e!=null).join(""),IF:gp,FORMAT:t=>typeof t!="number"?String(t):t.toLocaleString("zh-CN",{minimumFractionDigits:2,maximumFractionDigits:2}),SUBSTR:(t,e,r)=>String(t).slice(e,r?e+r:void 0),LEN:t=>String(t).length,ADD:yp,SUB:_p,MUL:Sp,DIV:bp,ROUND:wp,ROUNDUP:is,CEIL:is,ROUNDDOWN:as,FLOOR:as,ROUNDBANK:Tp,NOW:()=>new Date().toISOString().split("T")[0],IFEMPTY:(t,e)=>t!=null&&t!==""?String(t):e,PAD:(t,e,r)=>String(t).padStart(e,r),REPLACE:(t,e,r)=>String(t).replace(new RegExp(e,"g"),r),JSON:t=>JSON.stringify(t,null,2),DATE:dp,UPPER:pp};for(const[t,e]of Object.entries(Tx))bx.registerFunction(t,e);Object.fromEntries(Object.entries(qu).filter(([,t])=>t.bindings!==void 0).map(([t,e])=>[t,[...e.bindings??[]]]));const sr=["left","top","width","height","chartOption"],os=["dataSource","categoryField","valueFields","seriesField"],lr=["title","legend","palette"],ss=[{type:"barChart",label:"柱状图",icon:"ChartColumn",seriesType:"bar",orientation:"vertical",fields:[...os,...lr,"stack"],requiredOptionKeys:sr,defaultWidth:100,defaultHeight:60,notes:"柱状图:类目 + 多个数值字段,每字段一个 series;series[].data 写 $data 占位;固定高,禁止 autoHeight"},{type:"barHChart",label:"条形图",icon:"ChartBar",seriesType:"bar",orientation:"horizontal",fields:[...os,...lr,"stack"],requiredOptionKeys:sr,defaultWidth:100,defaultHeight:60,notes:"横向条形图:xAxis 为数值、yAxis 为类目;类目写 yAxis.data 的 $data 占位"},{type:"lineChart",label:"折线图",icon:"ChartLine",seriesType:"line",fields:[...os,...lr,"stack"],requiredOptionKeys:sr,defaultWidth:100,defaultHeight:60,notes:"折线图:类目 + 多个数值字段;不写 areaStyle"},{type:"areaChart",label:"面积图",icon:"ChartArea",seriesType:"line",fields:[...os,...lr,"stack"],requiredOptionKeys:sr,defaultWidth:100,defaultHeight:60,notes:"面积图:折线 + series[].areaStyle;其余同折线图"},{type:"pieChart",label:"饼图",icon:"ChartPie",seriesType:"pie",fields:["dataSource","categoryField","valueFields",...lr],requiredOptionKeys:sr,defaultWidth:60,defaultHeight:60,notes:"饼图:类目 + 首个数值字段生成 { name, value };只需一个数值字段"},{type:"doughnutChart",label:"环形图",icon:"Donut",seriesType:"pie",fields:["dataSource","categoryField","valueFields",...lr,"innerRadius"],requiredOptionKeys:sr,defaultWidth:60,defaultHeight:60,notes:"环形图:饼图 + radius:[内径,外径];内径由面板配置"},{type:"scatterChart",label:"散点图",icon:"ChartScatter",seriesType:"scatter",fields:["dataSource","categoryField","valueFields",...lr,"bubble"],requiredOptionKeys:sr,defaultWidth:80,defaultHeight:60,notes:"散点图:类目字段作 x、首个数值字段作 y;chartBubble 开启时用第二个数值字段作点大小"},{type:"radarChart",label:"雷达图",icon:"Radar",seriesType:"radar",fields:["dataSource","categoryField","valueFields",...lr,"radius"],requiredOptionKeys:sr,defaultWidth:70,defaultHeight:60,notes:"雷达图:每个数值字段是一个维度(radar.indicator),每行数据是一个系列(类目字段作系列名);半径由面板写 radar.radius(%,默认 75)"},{type:"funnelChart",label:"漏斗图",icon:"Funnel",seriesType:"funnel",fields:["dataSource","categoryField","valueFields",...lr,"padding"],requiredOptionKeys:sr,defaultWidth:60,defaultHeight:60,notes:"漏斗图:类目 + 首个数值字段,按数值降序;四边内边距由面板写 series.left/right/top/bottom(%,右侧需留外置标签空间)"},{type:"gaugeChart",label:"仪表盘",icon:"Gauge",seriesType:"gauge",fields:["dataSource","valueFields",...lr,"gaugeRange"],requiredOptionKeys:sr,defaultWidth:60,defaultHeight:60,notes:"仪表盘:取首行数据的首个数值字段作指针值;min/max 由面板写入 series[0].min/max"}],Cp=ss.map(t=>t.type);function ur(t){return ss.find(e=>e.type===t)}function Ap(t){return ur(t)?.fields??[]}function xx(t){const e=typeof t=="number"?t:Number(t);return Number.isFinite(e)?e:0}function nf(t,e){if(typeof t=="string")return t.startsWith("$data")?t:t.includes("{")?_x(t,e):t;if(Array.isArray(t))return t.map(r=>nf(r,e));if(t&&typeof t=="object"){const r={};for(const[n,i]of Object.entries(t))r[n]=nf(i,e);return r}return t}function Si(t){return Array.isArray(t.data)&&t.data.includes("$data")}function Cx(t,e){const r=t.dataSource;if(typeof r=="string"&&Array.isArray(e[r]))return e[r];for(const n of Object.values(e))if(Array.isArray(n))return n;return[]}function Dp(t){return typeof t=="string"&&t.length>0?t:void 0}function Ax(t){return Array.isArray(t)?t.filter(e=>typeof e=="string"&&e.length>0):[]}function ba(t){return Array.isArray(t.series)?t.series:[]}function fr(t,e){return e?xx(t[e]):0}function Mp(t,e){for(const r of["xAxis","yAxis"]){const n=t[r],i=Array.isArray(n)?n:n?[n]:[];for(const a of i)a&&typeof a=="object"&&Array.isArray(a.data)&&a.data.includes("$data")&&(a.data=[...e])}}function Dx(t,e,r,n,i){const a=ba(t);if(!a.some(Si))return;const o=e.map((u,f)=>r?u[r]:f+1),s=u=>n[Math.min(u,n.length-1)];if(i){const u=a[0],f=new Map;for(const v of e){const h=String(v[i]??""),d=f.get(h)??new Map,p=String(v[r??""]);d.set(p,(d.get(p)??0)+fr(v,s(0))),f.set(h,d)}const c=[...new Set(o)];t.series=[...f.entries()].map(([v,h])=>({...u,name:v,data:c.map(d=>h.get(String(d))??null)})),Mp(t,c);return}const l=a[a.length-1];for(;a.length<n.length;)a.push({...l,data:["$data"]});t.series=a.map((u,f)=>Si(u)?{...u,data:e.map(c=>fr(c,s(f)))}:u),Mp(t,o)}function Ip(t,e,r,n,i){const a=ba(t);if(!a.some(Si))return;const o=e.map(s=>({name:r?String(s[r]??""):"",value:fr(s,n)}));i&&o.sort((s,l)=>l.value-s.value),t.series=a.map(s=>({...s,data:o}))}function Mx(t,e,r,n,i){const a=ba(t);if(!a.some(Si))return;const o=n[0],s=i?n[1]:void 0,l=s?e.map(v=>fr(v,s)):[],u=l.length>0?Math.min(...l):0,f=l.length>0?Math.max(...l):0,c=v=>f===u?12:Math.round(6+(v-u)/(f-u)*18);t.series=a.map(v=>({...v,data:e.map(h=>{const d=[fr(h,r),fr(h,o)];return s?{value:d,symbolSize:c(fr(h,s))}:d})}))}function Ix(t){if(t<=0)return 10;const e=10**Math.floor(Math.log10(t)),r=e>=10?e:10;return Math.ceil(t/r)*r}function Lx(t,e,r,n){const i=ba(t);if(!i.some(Si))return;const a=n.map(o=>Math.max(0,...e.map(s=>fr(s,o))));t.radar={...t.radar??{},indicator:n.map((o,s)=>({name:o,max:Ix(a[s])}))},t.series=i.map(o=>({...o,data:e.map(s=>({name:r?String(s[r]??""):"",value:n.map(l=>fr(s,l))}))}))}function Px(t,e,r){const n=ba(t);if(!n.some(Si))return;const i=e[0]??{};t.series=n.map(a=>({...a,data:[{value:fr(i,r),name:r}]}))}function Lp(t,e,r){const n=e.chartOption;if(!n||typeof n!="object"||Array.isArray(n))return{};const i=nf(n,r),a=Ax(e.chartValueFields);if(a.length===0)return{_chartOption:i};const o=Cx({...e,dataSource:e.chartDataSource??e.dataSource},r);if(o.length===0)return{_chartOption:i};const s=Dp(e.chartCategoryField);switch(ur(t)?.seriesType){case"radar":Lx(i,o,s,a);break;case"gauge":Px(i,o,a[0]);break;case"funnel":Ip(i,o,s,a[0],!0);break;case"pie":Ip(i,o,s,a[0],!1);break;case"scatter":Mx(i,o,s,a,e.chartBubble===!0);break;default:Dx(i,o,s,a,Dp(e.chartSeriesField));break}return{_chartOption:i}}const wa="@worm-print-platform/echarts",af=[{key:"default",label:"默认蓝",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de"]},{key:"fresh",label:"清新绿",colors:["#2f9e6e","#5cc9a7","#9ad6c1","#f2c94c","#4a90e2"]},{key:"warm",label:"暖橙红",colors:["#f2704e","#f7a35c","#f7d56d","#c54e3f","#8f5a4a"]},{key:"purple",label:"紫灰",colors:["#7b61ff","#9b8cff","#c3baff","#596275","#8d99ae"]}],Ex=["示例一","示例二","示例三"],Pp={top:6,right:25,bottom:6,left:5},Ep=75,kx=50,ls={top:60,right:80,bottom:65,left:80},kp={left:"8%",right:"8%",bottom:"12%",top:"18%",containLabel:!0};function Rx(t){return{top:`${t.top}%`,right:`${t.right}%`,bottom:`${t.bottom}%`,left:`${t.left}%`}}function us(t){const e=ur(t),r={text:""};switch(e?.seriesType){case"pie":return{title:r,tooltip:{trigger:"item"},series:[{type:"pie",name:"数量",data:["$data"],radius:t==="doughnutChart"?["40%","70%"]:"62%"}]};case"scatter":return{title:r,grid:kp,tooltip:{trigger:"axis"},xAxis:{type:"value"},yAxis:{type:"value"},series:[{type:"scatter",name:"数量",data:["$data"],symbolSize:8}]};case"radar":return{title:r,tooltip:{trigger:"item"},radar:{indicator:[],radius:`${Ep}%`},series:[{type:"radar",name:"数量",data:["$data"]}]};case"funnel":return{title:r,tooltip:{trigger:"item"},legend:{show:!1},series:[{type:"funnel",name:"数量",data:["$data"],sort:"descending",...Rx(Pp)}]};case"gauge":return{title:r,tooltip:{trigger:"item"},series:[{type:"gauge",name:"数量",min:0,max:100,data:[{value:0,name:"数量"}]}]};default:{const n=e?.orientation==="horizontal",i=e?.seriesType==="line"&&t==="areaChart",a=e?.seriesType==="line"?"line":"bar";return{title:r,grid:kp,tooltip:{trigger:"axis"},xAxis:n?{type:"value"}:{type:"category",data:["$data"]},yAxis:n?{type:"category",data:["$data"]}:{type:"value"},series:[{type:a,name:"数量",data:["$data"],...i?{areaStyle:{}}:{}}]}}}}function Ox(t){GT(wa,t)}function Ta(){return HT(wa)}function Rp(){const t=Ta().palettes??{},e=af.map(n=>{const i=t[n.key];return i?{key:n.key,label:i.label??n.label,colors:i.colors}:{key:n.key,label:n.label,colors:n.colors}}),r=Object.entries(t).filter(([n])=>!af.some(i=>i.key===n)).map(([n,i])=>({key:n,label:i.label??n,colors:i.colors}));return[...e,...r]}function Op(){const t=Ta().sampleCategories;return Array.isArray(t)&&t.length>0?t:Ex}function Np(t,e){const r=Ta(),n=ur(t);return{width:typeof r.defaultWidth=="number"?r.defaultWidth:n?.defaultWidth??100,height:typeof r.defaultHeight=="number"?r.defaultHeight:n?.defaultHeight??60,title:n?.label??"图表",chartOption:us(t),chartDataSource:"",chartCategoryField:"name",chartValueFields:["value"],chartSeriesField:"",...e}}var of=function(t,e){return of=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},of(t,e)};function V(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");of(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var sf=12,Bp="sans-serif",Pr=sf+"px "+Bp,Nx=20,Bx=100,Fx="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function zx(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),i=(t.charCodeAt(r)-Nx)/Bx;e[n]=i}return e}var Vx=zx(Fx),cr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,n){if(!t){var i=cr.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==n&&(e=t.font=n||Pr),t.measureText(r);r=r||"",n=n||Pr;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||sf,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=Vx[r[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(t,e,r){var n=new Image;return n.onload=e,n.onerror=r,n.src=t,n},getTime:function(){return Date.now?Date.now():+new Date}},Fp=qr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),zp=qr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),xa=Object.prototype.toString,fs=Array.prototype,Gx=fs.forEach,Hx=fs.filter,lf=fs.slice,Ux=fs.map,Vp=(function(){}).constructor,cs=Vp?Vp.prototype:null,uf="__proto__",ff=2311,Wx=Math.pow(2,53)-1;function Gp(){return ff>=Wx&&(ff=0),ff++}function Hp(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function oe(t){if(t==null||typeof t!="object")return t;var e=t,r=xa.call(t);if(r==="[object Array]"){if(!Da(t)){e=[];for(var n=0,i=t.length;n<i;n++)e[n]=oe(t[n])}}else if(zp[r]){if(!Da(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var n=0,i=t.length;n<i;n++)e[n]=t[n]}}}else if(!Fp[r]&&!Da(t)&&!Ca(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==uf&&(e[o]=oe(t[o]))}return e}function be(t,e,r){if(!j(e)||!j(t))return r?oe(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==uf){var i=t[n],a=e[n];j(a)&&j(i)&&!W(a)&&!W(i)&&!Ca(a)&&!Ca(i)&&!Wp(a)&&!Wp(i)&&!Da(a)&&!Da(i)?be(i,a,r):(r||!(n in t))&&(t[n]=oe(e[n]))}return t}function z(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==uf&&(t[r]=e[r]);return t}function Yx(t,e,r){t=t||{};for(var n=0;n<r.length;n++){var i=r[n];t[i]=e[i]}return t}function le(t,e,r){for(var n=ce(e),i=0,a=n.length;i<a;i++){var o=n[i];t[o]==null&&(t[o]=e[o])}return t}function fe(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r}return-1}function $x(t,e){var r=t.prototype;function n(){}n.prototype=e.prototype,t.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);t.prototype.constructor=t,t.superClass=e}function Ut(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&t[a]==null&&(t[a]=e[a])}else le(t,e)}function ut(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function I(t,e,r){if(t&&e)if(t.forEach&&t.forEach===Gx)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function $(t,e,r){if(!t)return[];if(!e)return vf(t);if(t.map&&t.map===Ux)return t.map(e,r);for(var n=[],i=0,a=t.length;i<a;i++)n.push(e.call(r,t[i],i,t));return n}function qr(t,e,r,n){if(t&&e){for(var i=0,a=t.length;i<a;i++)r=e.call(n,r,t[i],i,t);return r}}function Ue(t,e,r){if(!t)return[];if(!e)return vf(t);if(t.filter&&t.filter===Hx)return t.filter(e,r);for(var n=[],i=0,a=t.length;i<a;i++)e.call(r,t[i],i,t)&&n.push(t[i]);return n}function Up(t,e,r){if(t&&e){for(var n=0,i=t.length;n<i;n++)if(e.call(r,t[n],n,t))return t[n]}}function ce(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function Xx(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(lf.call(arguments)))}}var de=cs&&ee(cs.bind)?cs.call.bind(cs.bind):Xx;function Oe(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(lf.call(arguments)))}}function W(t){return Array.isArray?Array.isArray(t):xa.call(t)==="[object Array]"}function ee(t){return typeof t=="function"}function q(t){return typeof t=="string"}function cf(t){return xa.call(t)==="[object String]"}function me(t){return typeof t=="number"}function j(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function Wp(t){return!!Fp[xa.call(t)]}function ft(t){return!!zp[xa.call(t)]}function Ca(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function hf(t){return t.colorStops!=null}function Aa(t){return t!==t}function hs(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=t.length;r<n;r++)if(t[r]!=null)return t[r]}function Z(t,e){return t??e}function bn(t,e,r){return t??e??r}function vf(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return lf.apply(t,e)}function df(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function Wt(t,e){if(!t)throw new Error(e)}function hr(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Yp="__ec_primitive__";function vs(t){t[Yp]=!0}function Da(t){return t[Yp]}var qx=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return ce(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t})(),$p=typeof Map=="function";function Zx(){return $p?new Map:new qx}var Kx=(function(){function t(e){var r=W(e);this.data=Zx();var n=this;e instanceof t?e.each(i):e&&I(e,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(n,i){e.call(r,n,i)})},t.prototype.keys=function(){var e=this.data.keys();return $p?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function te(t){return new Kx(t)}function jx(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];for(var i=t.length,n=0;n<e.length;n++)r[n+i]=e[n];return r}function ds(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&z(r,e),r}function tt(t,e){return t.hasOwnProperty(e)}function We(){}var ps=180/Math.PI,Qx=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),Jx=(function(){function t(){this.browser=new Qx,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return t})(),ie=new Jx;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(ie.wxa=!0,ie.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?ie.worker=!0:!ie.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(ie.node=!0,ie.svgSupported=!0):eC(navigator.userAgent,ie);function eC(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var tC=".",wn="___EC__COMPONENT__CONTAINER___",Xp="___EC__EXTENDED_CLASS___";function vr(t){var e={main:"",sub:""};if(t){var r=t.split(tC);e.main=r[0]||"",e.sub=r[1]||""}return e}function rC(t){Wt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function nC(t){return!!(t&&t[Xp])}function pf(t,e){t.$constructor=t,t.extend=function(r){var n=this,i;return iC(n)?i=(function(a){V(o,a);function o(){return a.apply(this,arguments)||this}return o})(n):(i=function(){(r.$constructor||n).apply(this,arguments)},$x(i,this)),z(i.prototype,r),i[Xp]=!0,i.extend=this.extend,i.superCall=sC,i.superApply=lC,i.superClass=n,i}}function iC(t){return ee(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function qp(t,e){t.extend=e.extend}var aC=Math.round(Math.random()*10);function oC(t){var e=["__\0is_clz",aC++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function sC(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,r)}function lC(t,e,r){return this.superClass.prototype[e].apply(t,r)}function gs(t){var e={};t.registerClass=function(n){var i=n.type||n.prototype.type;if(i){rC(i),n.prototype.type=i;var a=vr(i);if(!a.sub)e[a.main]=n;else if(a.sub!==wn){var o=r(a);o[a.sub]=n}}return n},t.getClass=function(n,i,a){var o=e[n];if(o&&o[wn]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},t.getClassesByMainType=function(n){var i=vr(n),a=[],o=e[i.main];return o&&o[wn]?I(o,function(s,l){l!==wn&&a.push(s)}):a.push(o),a},t.hasClass=function(n){var i=vr(n);return!!e[i.main]},t.getAllClassMainTypes=function(){var n=[];return I(e,function(i,a){n.push(a)}),n},t.hasSubTypes=function(n){var i=vr(n),a=e[i.main];return a&&a[wn]};function r(n){var i=e[n.main];return(!i||!i[wn])&&(i=e[n.main]={},i[wn]=!0),i}}function Ma(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(n,i,a){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(i&&fe(i,l)>=0||a&&fe(a,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var uC=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],fC=Ma(uC),cC=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return fC(this,e,r)},t})(),Zp=(function(){function t(e){this.value=e}return t})(),hC=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new Zp(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})(),bi=(function(){function t(e){this._list=new hC,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,i=this._map,a=null;if(i[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new Zp(r),s.key=e,n.insertEntry(s),i[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),gf=new bi(50);function vC(t){if(typeof t=="string"){var e=gf.get(t);return e&&e.image}else return t}function mf(t,e,r,n,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=gf.get(t),o={hostEl:r,cb:n,cbPayload:i};return a?(e=a.image,!ms(e)&&a.pending.push(o)):(e=cr.loadImage(t,Kp,Kp),e.__zrImageSrc=t,gf.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function Kp(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function ms(t){return t&&t.width&&t.height}function dr(){return[1,0,0,1,0,0]}function Ia(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function yf(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function La(t,e,r){var n=e[0]*r[0]+e[2]*r[1],i=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function _f(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function Sf(t,e,r,n){n===void 0&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=i*c+s*f,t[1]=-i*f+s*c,t[2]=a*c+l*f,t[3]=-a*f+c*l,t[4]=c*(o-n[0])+f*(u-n[1])+n[0],t[5]=c*(u-n[1])-f*(o-n[0])+n[1],t}function dC(t,e,r){var n=r[0],i=r[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function Pa(t,e){var r=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-o*i)*l,t[5]=(a*i-r*s)*l,t):null}function wi(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function pC(t){return[t[0],t[1]]}function bf(t,e,r){return t[0]=e,t[1]=r,t}function jp(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function gC(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function mC(t){return Math.sqrt(yC(t))}function yC(t){return t[0]*t[0]+t[1]*t[1]}function wf(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function _C(t,e){var r=mC(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function Tf(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var xf=Tf;function SC(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Ti=SC;function Cf(t,e,r,n){return t[0]=e[0]+n*(r[0]-e[0]),t[1]=e[1]+n*(r[1]-e[1]),t}function wt(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5],t}function xi(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function Ci(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var re=(function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,i){e.x=r.x+n.x*i,e.y=r.y+n.y*i},t.lerp=function(e,r,n,i){var a=1-i;e.x=a*r.x+i*n.x,e.y=a*r.y+i*n.y},t})(),Tn=Math.min,Ai=Math.max,Af=Math.abs,Qp=["x","y"],bC=["width","height"],xn=new re,Cn=new re,An=new re,Dn=new re,yt=tg(),Ea=yt.minTv,Df=yt.maxTv,ka=[0,0],ne=(function(){function t(e,r,n,i){Mf(this,e,r,n,i)}return t.set=function(e,r,n,i,a){return i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),e.x=r,e.y=n,e.width=i,e.height=a,e},t.prototype.union=function(e){var r=Tn(e.x,this.x),n=Tn(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ai(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ai(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){return wC(dr(),this,e)},t.prototype.intersect=function(e,r,n){return t.intersect(this,e,r,n)},t.intersect=function(e,r,n,i){n&&re.set(n,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!r)return!1;e instanceof t||(e=Mf(TC,e.x,e.y,e.width,e.height)),r instanceof t||(r=Mf(xC,r.x,r.y,r.width,r.height));var s=!!n;yt.reset(i,s);var l=yt.touchThreshold,u=e.x+l,f=e.x+e.width-l,c=e.y+l,v=e.y+e.height-l,h=r.x+l,d=r.x+r.width-l,p=r.y+l,g=r.y+r.height-l;if(u>f||c>v||h>d||p>g)return!1;var m=!(f<h||d<u||v<p||g<c);return(s||a)&&(ka[0]=1/0,ka[1]=0,eg(u,f,h,d,0,s,a,o),eg(c,v,p,g,1,s,a,o),s&&re.copy(n,m?yt.useDir?yt.dirMinTv:Ea:Df)),m},t.contain=function(e,r,n){return r>=e.x&&r<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){Jp(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,n){if(!n){e!==r&&Jp(e,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];e.x=r.x*i+o,e.y=r.y*a+s,e.width=r.width*i,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}xn.x=An.x=r.x,xn.y=Dn.y=r.y,Cn.x=Dn.x=r.x+r.width,Cn.y=An.y=r.y+r.height,xn.transform(n),Dn.transform(n),Cn.transform(n),An.transform(n),e.x=Tn(xn.x,Cn.x,An.x,Dn.x),e.y=Tn(xn.y,Cn.y,An.y,Dn.y);var l=Ai(xn.x,Cn.x,An.x,Dn.x),u=Ai(xn.y,Cn.y,An.y,Dn.y);e.width=l-e.x,e.height=u-e.y},t.calculateTransform=function(e,r,n){var i=n.width/r.width,a=n.height/r.height;return e=Ia(e||[]),_f(e,e,bf(If,-r.x,-r.y)),dC(e,e,bf(If,i,a)),_f(e,e,bf(If,n.x,n.y)),e},t})();ne.create;var Mf=ne.set,Jp=ne.copy,wC=ne.calculateTransform;ne.applyTransform,ne.contain;var TC=new ne(0,0,0,0),xC=new ne(0,0,0,0),If=[];function eg(t,e,r,n,i,a,o,s){var l=Af(e-r),u=Af(n-t),f=Tn(l,u),c=Qp[i],v=Qp[1-i],h=bC[i];e<r||n<t?l<u?(a&&(Df[c]=-l),s&&(o[c]=e,o[h]=0)):(a&&(Df[c]=u),s&&(o[c]=t,o[h]=0)):(o&&(o[c]=Ai(t,r),o[h]=Tn(e,n)-o[c]),a&&(f<ka[0]||yt.useDir)&&(ka[0]=Tn(f,ka[0]),(l<u||!yt.bidirectional)&&(Ea[c]=l,Ea[v]=0,yt.useDir&&yt.calcDirMTV()),(l>=u||!yt.bidirectional)&&(Ea[c]=-u,Ea[v]=0,yt.useDir&&yt.calcDirMTV())))}function tg(){var t=0,e=new re,r=new re,n={minTv:new re,maxTv:new re,useDir:!1,dirMinTv:new re,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){n.touchThreshold=0,a&&a.touchThreshold!=null&&(n.touchThreshold=Ai(0,a.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,a&&a.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),t=a.direction,n.bidirectional=a.bidirectional==null||!!a.bidirectional,n.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(t),u=Math.cos(t),f=l*a.y+u*a.x;if(i(f)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(r.x=s*u/f,r.y=s*l/f,i(r.x)&&i(r.y)){o.set(0,0);return}(n.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function i(a){return Af(a)<1e-10}return n}function pr(t){ys||(ys=new bi(100)),t=t||Pr;var e=ys.get(t);return e||(e={font:t,strWidthCache:new bi(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:cr.measureText("国",t).width,asciiCharWidth:cr.measureText("a",t).width},ys.put(t,e)),e}var ys;function CC(t){if(!(Lf>=rg)){t=t||Pr;for(var e=[],r=+new Date,n=0;n<=127;n++)e[n]=cr.measureText(String.fromCharCode(n),t).width;var i=+new Date-r;return i>16?Lf=rg:i>2&&Lf++,e}}var Lf=0,rg=5;function ng(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=CC(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function gr(t,e){var r=t.strWidthCache,n=r.get(e);return n==null&&(n=cr.measureText(e,t.font).width,r.put(e,n)),n}function ig(t,e,r,n){var i=gr(pr(e),t),a=Ra(e),o=Di(0,i,r),s=Mn(0,a,n),l=new ne(o,s,i,a);return l}function ag(t,e,r,n){var i=((t||"")+"").split(`
2
2
  `),a=i.length;if(a===1)return ig(i[0],e,r,n);for(var o=new ne(0,0,0,0),s=0;s<i.length;s++){var l=ig(i[s],e,r,n);s===0?o.copy(l):o.union(l)}return o}function Di(t,e,r,n){return r==="right"?n?t+=e:t-=e:r==="center"&&(n?t+=e/2:t-=e/2),t}function Mn(t,e,r,n){return r==="middle"?n?t+=e/2:t-=e/2:r==="bottom"&&(n?t+=e:t-=e),t}function Ra(t){return pr(t).stWideCharWidth}function In(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function _s(t,e,r){var n=e.position||"inside",i=e.distance!=null?e.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",c="top";if(n instanceof Array)l+=In(n[0],r.width),u+=In(n[1],r.height),f=null,c=null;else switch(n){case"left":l-=i,u+=s,f="right",c="middle";break;case"right":l+=i+o,u+=s,c="middle";break;case"top":l+=o/2,u-=i,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=i,u+=s,c="middle";break;case"insideRight":l+=o-i,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",c="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,c="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",c="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=f,t.verticalAlign=c,t}var Pf=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function AC(t,e,r,n,i,a){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
3
3
  `);a=og(r,n,i,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)sg(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join(`
4
4
  `),t.isTruncated=s}function og(t,e,r,n){n=n||{};var i=z({},n);r=Z(r,"..."),i.maxIterations=Z(n.maxIterations,2);var a=i.minChar=Z(n.minChar,0),o=i.fontMeasureInfo=pr(e),s=o.asciiCharWidth;i.placeholder=Z(n.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<a&&l>=s;u++)l-=s;var f=gr(o,r);return f>l&&(r="",f=0),l=t-f,i.ellipsis=r,i.ellipsisWidth=f,i.contentWidth=l,i.containerWidth=t,i}function sg(t,e,r){var n=r.containerWidth,i=r.contentWidth,a=r.fontMeasureInfo;if(!n){t.textLine="",t.isTruncated=!1;return}var o=gr(a,e);if(o<=n){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?DC(e,i,a):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=gr(a,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function DC(t,e,r){for(var n=0,i=0,a=t.length;i<a&&n<e;i++)n+=ng(r,t.charCodeAt(i));return i}function MC(t,e,r,n){var i=kf(t),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=a==="truncate",c=Ra(u),v=Z(e.lineHeight,c),h=e.lineOverflow==="truncate",d=!1,p=e.width;p==null&&r!=null&&(p=r-s);var g=e.height;g==null&&n!=null&&(g=n-l);var m;p!=null&&(a==="break"||a==="breakAll")?m=i?ug(i,e.font,p,a==="breakAll",0).lines:[]:m=i?i.split(`
5
- `):[];var y=m.length*v;if(g==null&&(g=y),y>g&&h){var _=Math.floor(g/v);d=d||m.length>_,m=m.slice(0,_),y=m.length*v}if(i&&f&&p!=null)for(var S=og(p,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},w=0;w<m.length;w++)sg(b,m[w],S),m[w]=b.textLine,d=d||b.isTruncated;for(var T=g,C=0,D=pr(u),w=0;w<m.length;w++)C=Math.max(gr(D,m[w]),C);p==null&&(p=C);var x=p;return T+=l,x+=s,{lines:m,height:g,outerWidth:x,outerHeight:T,lineHeight:v,calculatedLineHeight:c,contentWidth:C,contentHeight:y,width:p,isTruncated:d}}var IC=(function(){function t(){}return t})(),lg=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),LC=(function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t})();function PC(t,e,r,n,i){var a=new LC,o=kf(t);if(!o)return a;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;f==null&&r!=null&&(f=r-l);var c=e.height;c==null&&n!=null&&(c=n-u);for(var v=e.overflow,h=(v==="break"||v==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:v==="breakAll"}:null,d=Pf.lastIndex=0,p;(p=Pf.exec(o))!=null;){var g=p.index;g>d&&Ef(a,o.substring(d,g),e,h),Ef(a,p[2],e,h,p[1]),d=Pf.lastIndex}d<o.length&&Ef(a,o.substring(d,o.length),e,h);var m=[],y=0,_=0,S=v==="truncate",b=e.lineOverflow==="truncate",w={};function T(ae,ke,Ae){ae.width=ke,ae.lineHeight=Ae,y+=Ae,_=Math.max(_,ke)}e:for(var C=0;C<a.lines.length;C++){for(var D=a.lines[C],x=0,A=0,L=0;L<D.tokens.length;L++){var M=D.tokens[L],P=M.styleName&&e.rich[M.styleName]||{},E=M.textPadding=P.padding,k=E?E[1]+E[3]:0,O=M.font=P.font||e.font;M.contentHeight=Ra(O);var R=Z(P.height,M.contentHeight);if(M.innerHeight=R,E&&(R+=E[0]+E[2]),M.height=R,M.lineHeight=bn(P.lineHeight,e.lineHeight,R),M.align=P&&P.align||i,M.verticalAlign=P&&P.verticalAlign||"middle",b&&c!=null&&y+M.lineHeight>c){var N=a.lines.length;L>0?(D.tokens=D.tokens.slice(0,L),T(D,A,x),a.lines=a.lines.slice(0,C+1)):a.lines=a.lines.slice(0,C),a.isTruncated=a.isTruncated||a.lines.length<N;break e}var F=P.width,B=F==null||F==="auto";if(typeof F=="string"&&F.charAt(F.length-1)==="%")M.percentWidth=F,m.push(M),M.contentWidth=gr(pr(O),M.text);else{if(B){var V=P.backgroundColor,X=V&&V.image;X&&(X=vC(X),ms(X)&&(M.width=Math.max(M.width,X.width*R/X.height)))}var H=S&&f!=null?f-A:null;H!=null&&H<M.width?!B||H<k?(M.text="",M.width=M.contentWidth=0):(AC(w,M.text,H-k,O,e.ellipsis,{minChar:e.truncateMinChar}),M.text=w.text,a.isTruncated=a.isTruncated||w.isTruncated,M.width=M.contentWidth=gr(pr(O),M.text)):M.contentWidth=gr(pr(O),M.text)}M.width+=k,A+=M.width,P&&(x=Math.max(x,M.lineHeight))}T(D,A,x)}a.outerWidth=a.width=Z(f,_),a.outerHeight=a.height=Z(c,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=l,a.outerHeight+=u;for(var C=0;C<m.length;C++){var M=m[C],K=M.percentWidth;M.width=parseInt(K,10)/100*a.width}return a}function Ef(t,e,r,n,i){var a=e==="",o=i&&r.rich[i]||{},s=t.lines,l=o.font||r.font,u=!1,f,c;if(n){var v=o.padding,h=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var d=In(o.width,n.width)+h;s.length>0&&d+n.accumWidth>n.width&&(f=e.split(`
5
+ `):[];var y=m.length*v;if(g==null&&(g=y),y>g&&h){var _=Math.floor(g/v);d=d||m.length>_,m=m.slice(0,_),y=m.length*v}if(i&&f&&p!=null)for(var S=og(p,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},w=0;w<m.length;w++)sg(b,m[w],S),m[w]=b.textLine,d=d||b.isTruncated;for(var T=g,C=0,D=pr(u),w=0;w<m.length;w++)C=Math.max(gr(D,m[w]),C);p==null&&(p=C);var x=p;return T+=l,x+=s,{lines:m,height:g,outerWidth:x,outerHeight:T,lineHeight:v,calculatedLineHeight:c,contentWidth:C,contentHeight:y,width:p,isTruncated:d}}var IC=(function(){function t(){}return t})(),lg=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),LC=(function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t})();function PC(t,e,r,n,i){var a=new LC,o=kf(t);if(!o)return a;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;f==null&&r!=null&&(f=r-l);var c=e.height;c==null&&n!=null&&(c=n-u);for(var v=e.overflow,h=(v==="break"||v==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:v==="breakAll"}:null,d=Pf.lastIndex=0,p;(p=Pf.exec(o))!=null;){var g=p.index;g>d&&Ef(a,o.substring(d,g),e,h),Ef(a,p[2],e,h,p[1]),d=Pf.lastIndex}d<o.length&&Ef(a,o.substring(d,o.length),e,h);var m=[],y=0,_=0,S=v==="truncate",b=e.lineOverflow==="truncate",w={};function T(ae,ke,Ae){ae.width=ke,ae.lineHeight=Ae,y+=Ae,_=Math.max(_,ke)}e:for(var C=0;C<a.lines.length;C++){for(var D=a.lines[C],x=0,A=0,L=0;L<D.tokens.length;L++){var M=D.tokens[L],P=M.styleName&&e.rich[M.styleName]||{},E=M.textPadding=P.padding,k=E?E[1]+E[3]:0,O=M.font=P.font||e.font;M.contentHeight=Ra(O);var R=Z(P.height,M.contentHeight);if(M.innerHeight=R,E&&(R+=E[0]+E[2]),M.height=R,M.lineHeight=bn(P.lineHeight,e.lineHeight,R),M.align=P&&P.align||i,M.verticalAlign=P&&P.verticalAlign||"middle",b&&c!=null&&y+M.lineHeight>c){var N=a.lines.length;L>0?(D.tokens=D.tokens.slice(0,L),T(D,A,x),a.lines=a.lines.slice(0,C+1)):a.lines=a.lines.slice(0,C),a.isTruncated=a.isTruncated||a.lines.length<N;break e}var F=P.width,B=F==null||F==="auto";if(typeof F=="string"&&F.charAt(F.length-1)==="%")M.percentWidth=F,m.push(M),M.contentWidth=gr(pr(O),M.text);else{if(B){var G=P.backgroundColor,X=G&&G.image;X&&(X=vC(X),ms(X)&&(M.width=Math.max(M.width,X.width*R/X.height)))}var H=S&&f!=null?f-A:null;H!=null&&H<M.width?!B||H<k?(M.text="",M.width=M.contentWidth=0):(AC(w,M.text,H-k,O,e.ellipsis,{minChar:e.truncateMinChar}),M.text=w.text,a.isTruncated=a.isTruncated||w.isTruncated,M.width=M.contentWidth=gr(pr(O),M.text)):M.contentWidth=gr(pr(O),M.text)}M.width+=k,A+=M.width,P&&(x=Math.max(x,M.lineHeight))}T(D,A,x)}a.outerWidth=a.width=Z(f,_),a.outerHeight=a.height=Z(c,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=l,a.outerHeight+=u;for(var C=0;C<m.length;C++){var M=m[C],K=M.percentWidth;M.width=parseInt(K,10)/100*a.width}return a}function Ef(t,e,r,n,i){var a=e==="",o=i&&r.rich[i]||{},s=t.lines,l=o.font||r.font,u=!1,f,c;if(n){var v=o.padding,h=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var d=In(o.width,n.width)+h;s.length>0&&d+n.accumWidth>n.width&&(f=e.split(`
6
6
  `),u=!0),n.accumWidth=d}else{var p=ug(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+h,c=p.linesWidths,f=p.lines}}f||(f=e.split(`
7
7
  `));for(var g=pr(l),m=0;m<f.length;m++){var y=f[m],_=new IC;if(_.styleName=i,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=c?c[m]:gr(g,y),!m&&!u){var S=(s[s.length-1]||(s[0]=new lg)).tokens,b=S.length;b===1&&S[0].isLineHolder?S[0]=_:(y||!b||a)&&S.push(_)}else s.push(new lg([_]))}}function EC(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var kC=qr(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function RC(t){return EC(t)?!!kC[t]:!0}function ug(t,e,r,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,c=pr(e),v=0;v<t.length;v++){var h=t.charAt(v);if(h===`
8
- `){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=ng(c,h.charCodeAt(0)),p=n?!1:!RC(h);if(a.length?f+d>r:i+f+d>r){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=h,f=d)):p?(a.push(l),o.push(u),l=h,u=d):(a.push(h),o.push(d));continue}f+=d,p?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}function fg(t,e,r,n,i,a){if(t.baseX=r,t.baseY=n,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;ne.set(cg,Di(r,o,i),Mn(n,s,a),o,s),ne.intersect(e,cg,null,hg);var l=hg.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=Di(l.x,l.width,i,!0),t.baseY=Mn(l.y,l.height,a,!0)}}var cg=new ne(0,0,0,0),hg={outIntersectRect:{},clamp:!0};function kf(t){return t!=null?t+="":t=""}function OC(t){var e=kf(t.text),r=t.font,n=gr(pr(r),e),i=Ra(r);return Rf(t,n,i,null)}function Rf(t,e,r,n){var i=new ne(Di(t.x||0,e,t.textAlign),Mn(t.y||0,r,t.textBaseline),e,r),a=n??(vg(t)?t.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function vg(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var dg=Ia,pg=5e-5;function Ln(t){return t>pg||t<-pg}var Pn=[],Mi=[],Of=dr(),Nf=Math.abs,Oa=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return NC(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return Ln(this.rotation)||Ln(this.x)||Ln(this.y)||Ln(this.scaleX-1)||Ln(this.scaleY-1)||Ln(this.skewX)||Ln(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(dg(n),this.invTransform=null);return}n=n||dr(),r?this.getLocalTransform(n):dg(n),e&&(r?La(n,e,n):yf(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||dr(),Pa(this.invTransform,n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Pn);var n=Pn[0]<0?-1:1,i=Pn[1]<0?-1:1,a=((Pn[0]-n)*r+n)/Pn[0]||0,o=((Pn[1]-i)*r+i)/Pn[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||dr(),La(Mi,e.invTransform,r),r=Mi);var n=this.originX,i=this.originY;(n||i)&&(Of[4]=n,Of[5]=i,La(Mi,r,Of),Mi[4]-=n,Mi[5]-=i,r=Mi),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],i=this.invTransform;return i&&wt(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&wt(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&Nf(e[0]-1)>1e-10&&Nf(e[3]-1)>1e-10?Math.sqrt(Nf(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){Na(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,v=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var d=n+s,p=i+l;r[4]=-d*a-v*p*o,r[5]=-p*o-h*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=v*o,u&&Sf(r,r,u),r[4]+=n+f,r[5]+=i+c,r},t.initDefaultProps=(function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),t})(),NC=Oa.getLocalTransform,Ss=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Na(t,e){return Yx(t,e,Ss)}var Ba={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Ba.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?Ba.bounceIn(t*2)*.5:Ba.bounceOut(t*2-1)*.5+.5}},bs=Math.pow,Zr=Math.sqrt,ws=1e-8,gg=1e-4,mg=Zr(3),Ts=1/3,mr=wi(),Tt=wi(),Ii=wi();function Kr(t){return t>-ws&&t<ws}function yg(t){return t>ws||t<-ws}function Ye(t,e,r,n,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*n+3*a*r)}function _g(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function xs(t,e,r,n,i,a){var o=n+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-i,f=s*s-3*o*l,c=s*l-9*o*u,v=l*l-3*s*u,h=0;if(Kr(f)&&Kr(c))if(Kr(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[h++]=d)}else{var p=c*c-4*f*v;if(Kr(p)){var g=c/f,d=-s/o+g,m=-g/2;d>=0&&d<=1&&(a[h++]=d),m>=0&&m<=1&&(a[h++]=m)}else if(p>0){var y=Zr(p),_=f*s+1.5*o*(-c+y),S=f*s+1.5*o*(-c-y);_<0?_=-bs(-_,Ts):_=bs(_,Ts),S<0?S=-bs(-S,Ts):S=bs(S,Ts);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[h++]=d)}else{var b=(2*f*s-3*o*c)/(2*Zr(f*f*f)),w=Math.acos(b)/3,T=Zr(f),C=Math.cos(w),d=(-s-2*T*C)/(3*o),m=(-s+T*(C+mg*Math.sin(w)))/(3*o),D=(-s+T*(C-mg*Math.sin(w)))/(3*o);d>=0&&d<=1&&(a[h++]=d),m>=0&&m<=1&&(a[h++]=m),D>=0&&D<=1&&(a[h++]=D)}}return h}function Sg(t,e,r,n,i){var a=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,l=0;if(Kr(o)){if(yg(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Kr(f))i[0]=-a/(2*o);else if(f>0){var c=Zr(f),u=(-a+c)/(2*o),v=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function Cs(t,e,r,n,i,a){var o=(e-t)*i+t,s=(r-e)*i+e,l=(n-r)*i+r,u=(s-o)*i+o,f=(l-s)*i+s,c=(f-u)*i+u;a[0]=t,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=n}function BC(t,e,r,n,i,a,o,s,l,u,f){var c,v=.005,h=1/0,d,p,g,m;mr[0]=l,mr[1]=u;for(var y=0;y<1;y+=.05)Tt[0]=Ye(t,r,i,o,y),Tt[1]=Ye(e,n,a,s,y),g=Ti(mr,Tt),g<h&&(c=y,h=g);h=1/0;for(var _=0;_<32&&!(v<gg);_++)d=c-v,p=c+v,Tt[0]=Ye(t,r,i,o,d),Tt[1]=Ye(e,n,a,s,d),g=Ti(Tt,mr),d>=0&&g<h?(c=d,h=g):(Ii[0]=Ye(t,r,i,o,p),Ii[1]=Ye(e,n,a,s,p),m=Ti(Ii,mr),p<=1&&m<h?(c=p,h=m):v*=.5);return Zr(h)}function FC(t,e,r,n,i,a,o,s,l){for(var u=t,f=e,c=0,v=1/l,h=1;h<=l;h++){var d=h*v,p=Ye(t,r,i,o,d),g=Ye(e,n,a,s,d),m=p-u,y=g-f;c+=Math.sqrt(m*m+y*y),u=p,f=g}return c}function ct(t,e,r,n){var i=1-n;return i*(i*t+2*n*e)+n*n*r}function bg(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function zC(t,e,r,n,i){var a=t-2*e+r,o=2*(e-t),s=t-n,l=0;if(Kr(a)){if(yg(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Kr(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=Zr(f),u=(-o+c)/(2*a),v=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function wg(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function As(t,e,r,n,i){var a=(e-t)*n+t,o=(r-e)*n+e,s=(o-a)*n+a;i[0]=t,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function GC(t,e,r,n,i,a,o,s,l){var u,f=.005,c=1/0;mr[0]=o,mr[1]=s;for(var v=0;v<1;v+=.05){Tt[0]=ct(t,r,i,v),Tt[1]=ct(e,n,a,v);var h=Ti(mr,Tt);h<c&&(u=v,c=h)}c=1/0;for(var d=0;d<32&&!(f<gg);d++){var p=u-f,g=u+f;Tt[0]=ct(t,r,i,p),Tt[1]=ct(e,n,a,p);var h=Ti(Tt,mr);if(p>=0&&h<c)u=p,c=h;else{Ii[0]=ct(t,r,i,g),Ii[1]=ct(e,n,a,g);var m=Ti(Ii,mr);g<=1&&m<c?(u=g,c=m):f*=.5}}return Zr(c)}function VC(t,e,r,n,i,a,o){for(var s=t,l=e,u=0,f=1/o,c=1;c<=o;c++){var v=c*f,h=ct(t,r,i,v),d=ct(e,n,a,v),p=h-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=h,l=d}return u}var HC=/cubic-bezier\(([0-9,\.e ]+)\)/;function Bf(t){var e=t&&HC.exec(t);if(e){var r=e[1].split(","),n=+hr(r[0]),i=+hr(r[1]),a=+hr(r[2]),o=+hr(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:xs(0,n,a,1,l,s)&&Ye(0,i,o,1,s[0])}}}var UC=(function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||We,this.ondestroy=e.ondestroy||We,this.onrestart=e.onrestart||We,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=e-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ee(e)?e:Ba[e]||Bf(e)},t})(),Tg={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function jr(t){return t=Math.round(t),t<0?0:t>255?255:t}function Ff(t){return t<0?0:t>1?1:t}function zf(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?jr(parseFloat(e)/100*255):jr(parseInt(e,10))}function En(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Ff(parseFloat(e)/100):Ff(parseFloat(e))}function Gf(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function Ds(t,e,r){return t+(e-t)*r}function xt(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function Vf(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var xg=new bi(20),Ms=null;function Li(t,e){Ms&&Vf(Ms,e),Ms=xg.put(t,Ms||e.slice())}function Yt(t,e){if(t){e=e||[];var r=xg.get(t);if(r)return Vf(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in Tg)return Vf(e,Tg[n]),Li(t,e),e;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){xt(e,0,0,0,1);return}return xt(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Li(t,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){xt(e,0,0,0,1);return}return xt(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Li(t,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?xt(e,+u[0],+u[1],+u[2],1):xt(e,0,0,0,1);f=En(u.pop());case"rgb":if(u.length>=3)return xt(e,zf(u[0]),zf(u[1]),zf(u[2]),u.length===3?f:En(u[3])),Li(t,e),e;xt(e,0,0,0,1);return;case"hsla":if(u.length!==4){xt(e,0,0,0,1);return}return u[3]=En(u[3]),Hf(u,e),Li(t,e),e;case"hsl":if(u.length!==3){xt(e,0,0,0,1);return}return Hf(u,e),Li(t,e),e;default:return}}xt(e,0,0,0,1)}}function Hf(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=En(t[1]),i=En(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],xt(e,jr(Gf(o,a,r+1/3)*255),jr(Gf(o,a,r)*255),jr(Gf(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function WC(t){if(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),a=Math.max(e,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-e)/6+o/2)/o,c=((a-r)/6+o/2)/o,v=((a-n)/6+o/2)/o;e===a?l=v-c:r===a?l=1/3+f-v:n===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return t[3]!=null&&h.push(t[3]),h}}function Cg(t,e){var r=Yt(t);if(r){for(var n=0;n<3;n++)r[n]=r[n]*(1-e)|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Fa(r,r.length===4?"rgba":"rgb")}}function YC(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=Yt(e[i]),s=Yt(e[a]),l=n-i,u=Fa([jr(Ds(o[0],s[0],l)),jr(Ds(o[1],s[1],l)),jr(Ds(o[2],s[2],l)),Ff(Ds(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function Uf(t,e,r,n){var i=Yt(t);if(t)return i=WC(i),r!=null&&(i[1]=En(ee(r)?r(i[1]):r)),n!=null&&(i[2]=En(ee(n)?n(i[2]):n)),Fa(Hf(i),"rgba")}function Fa(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function Is(t,e){var r=Yt(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var Ag=new bi(100);function Wf(t){if(q(t)){var e=Ag.get(t);return e||(e=Cg(t,-.1),Ag.put(t,e)),e}else if(hf(t)){var r=z({},t);return r.colorStops=$(t.colorStops,function(n){return{offset:n.offset,color:Cg(n.color,-.1)}}),r}return t}var Ls=Math.round;function za(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var r=Yt(t);r&&(t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3])}return{color:t,opacity:e??1}}var Dg=1e-4;function Qr(t){return t<Dg&&t>-Dg}function Ps(t){return Ls(t*1e3)/1e3}function Yf(t){return Ls(t*1e4)/1e4}function $C(t){return"matrix("+Ps(t[0])+","+Ps(t[1])+","+Ps(t[2])+","+Ps(t[3])+","+Yf(t[4])+","+Yf(t[5])+")"}var XC={left:"start",right:"end",center:"middle",middle:"middle"};function qC(t,e,r){return r==="top"?t+=e/2:r==="bottom"&&(t-=e/2),t}function ZC(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function KC(t){var e=t.style,r=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function Mg(t){return t&&!!t.image}function jC(t){return t&&!!t.svgElement}function $f(t){return Mg(t)||jC(t)}function Ig(t){return t.type==="linear"}function Lg(t){return t.type==="radial"}function Pg(t){return t&&(t.type==="linear"||t.type==="radial")}function Es(t){return"url(#"+t+")"}function Eg(t){var e=t.getGlobalScale(),r=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function kg(t){var e=t.x||0,r=t.y||0,n=(t.rotation||0)*ps,i=Z(t.scaleX,1),a=Z(t.scaleY,1),o=t.skewX||0,s=t.skewY||0,l=[];return(e||r)&&l.push("translate("+e+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+Ls(o*ps)+"deg, "+Ls(s*ps)+"deg)"),l.join(" ")}var QC=(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(t){return Buffer.from(t).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(t){return btoa(unescape(encodeURIComponent(t)))}:function(t){return null}})(),Xf=Array.prototype.slice;function Er(t,e,r){return(e-t)*r+t}function qf(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=Er(e[a],r[a],n);return t}function JC(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=Er(e[o][s],r[o][s],n)}return t}function ks(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=e[a]+r[a]*n;return t}function Rg(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function eA(t,e){for(var r=t.length,n=e.length,i=r>n?e:t,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function tA(t,e,r){var n=t,i=e;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(r===1?i[l]:Xf.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function Rs(t){if(ut(t)){var e=t.length;if(ut(t[0])){for(var r=[],n=0;n<e;n++)r.push(Xf.call(t[n]));return r}return Xf.call(t)}return t}function Os(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function rA(t){return ut(t&&t[0])?2:1}var Ns=0,Bs=1,Og=2,Ga=3,Zf=4,Kf=5,Ng=6;function Bg(t){return t===Zf||t===Kf}function Fs(t){return t===Bs||t===Og}var Va=[0,0,0,0],nA=(function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=Ng,l=r;if(ut(r)){var u=rA(r);s=u,(u===1&&!me(r[0])||u===2&&!me(r[0][0]))&&(o=!0)}else if(me(r)&&!Aa(r))s=Ns;else if(q(r))if(!isNaN(+r))s=Ns;else{var f=Yt(r);f&&(l=f,s=Ga)}else if(hf(r)){var c=z({},l);c.colorStops=$(r.colorStops,function(h){return{offset:h.offset,color:Yt(h.color)}}),Ig(r)?s=Zf:Lg(r)&&(s=Kf),l=c}a===0?this.valType=s:(s!==this.valType||s===Ng)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:r,percent:0};return n&&(v.easing=n,v.easingFunc=ee(n)?n:Ba[n]||Bf(n)),i.push(v),v},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Fs(i),u=Bg(i),f=0;f<a;f++){var c=n[f],v=c.value,h=o.value;c.percent=c.time/e,s||(l&&f!==a-1?tA(v,h,i):u&&eA(v.colorStops,h.colorStops))}if(!s&&i!==Kf&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var d=n[0].value,f=0;f<a;f++)i===Ns?n[f].additiveValue=n[f].value-d:i===Ga?n[f].additiveValue=ks([],n[f].value,d,-1):Fs(i)&&(n[f].additiveValue=i===Bs?ks([],n[f].value,d,-1):Rg([],n[f].value,d,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===Ga,f,c=this._lastFr,v=Math.min,h,d;if(s===1)h=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var p=v(c+1,s-1);for(f=p;f>=0&&!(o[f].percent<=r);f--);f=v(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=v(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=r;var g=d.percent-h.percent,m=g===0?1:v((r-h.percent)/g,1);d.easingFunc&&(m=d.easingFunc(m));var y=n?this._additiveValue:u?Va:e[l];if((Fs(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=m<1?h.rawValue:d.rawValue;else if(Fs(a))a===Bs?qf(y,h[i],d[i],m):JC(y,h[i],d[i],m);else if(Bg(a)){var _=h[i],S=d[i],b=a===Zf;e[l]={type:b?"linear":"radial",x:Er(_.x,S.x,m),y:Er(_.y,S.y,m),colorStops:$(_.colorStops,function(T,C){var D=S.colorStops[C];return{offset:Er(T.offset,D.offset,m),color:Os(qf([],T.color,D.color,m))}}),global:S.global},b?(e[l].x2=Er(_.x2,S.x2,m),e[l].y2=Er(_.y2,S.y2,m)):e[l].r=Er(_.r,S.r,m)}else if(u)qf(y,h[i],d[i],m),n||(e[l]=Os(y));else{var w=Er(h[i],d[i],m);n?this._additiveValue=w:e[l]=w}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;r===Ns?e[n]=e[n]+i:r===Ga?(Yt(e[n],Va),ks(Va,Va,i,1),e[n]=Os(Va)):r===Bs?ks(e[n],e[n],i,1):r===Og&&Rg(e[n],e[n],i,1)},t})(),jf=(function(){function t(e,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&i){Hp("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,ce(r),n)},t.prototype.whenWithKeys=function(e,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new nA(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,v=c[c.length-1];u=v&&v.value,f.valType===Ga&&u&&(u=Os(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Rs(u),i),this._trackKeys.push(s)}l.addKeyframe(e,Rs(r[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var v=new UC({life:i,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var d=r._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,h);var m=r._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),e&&v.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return $(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<e.length;a++){var o=n[e[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,n){if(e){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[a]=Rs(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||ce(e);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t})(),kr=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[e].length-1,f=a[e][u];return f&&f.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(r){if(n[e]){for(var i=[],a=0,o=n[e].length;a<o;a++)n[e][a].h!==r&&i.push(n[e][a]);n[e]=i}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t})(),Fg=1;ie.hasGlobalWindow&&(Fg=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var zg=Fg,Qf=.4,Jf="#333",ec="#ccc",iA="#eee",$t=1,Ha=2,Pi=4,tc="__zr_normal__",rc=Ss.concat(["ignore"]),aA=qr(Ss,function(t,e){return t[e]=!0,t},{ignore:!1}),Ei={},oA=new ne(0,0,0,0),zs=[],Gs=0,Vs=1,Hs=(function(){function t(e){this.id=Vp(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;a.copyTransform(r);var f=n.position!=null,c=n.autoOverflowArea,v=void 0;if((c||f)&&(v=oA,n.layoutRect?v.copy(n.layoutRect):v.copy(this.getBoundingRect()),i||v.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Ei,n,v):_s(Ei,n,v),a.x=Ei.x,a.y=Ei.y,o=Ei.align,s=Ei.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var d=void 0,p=void 0;h==="center"?(d=v.width*.5,p=v.height*.5):(d=In(h[0],v.width),p=In(h[1],v.height)),u=!0,a.originX=-a.x+d+(i?0:v.x),a.originY=-a.y+p+(i?0:v.y)}}n.rotation!=null&&(a.rotation=n.rotation);var g=n.offset;g&&(a.x+=g[0],a.y+=g[1],u||(a.originX=-g[0],a.originY=-g[1]));var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=m.overflowRect=m.overflowRect||new ne(0,0,0,0);a.getLocalTransform(zs),Pa(zs,zs),ne.copy(y,v),y.applyTransform(zs)}else m.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,S=void 0,b=void 0,w=void 0;_&&this.canBeInsideText()?(S=n.insideFill,b=n.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(S),w=!0)):(S=n.outsideFill,b=n.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(S),w=!0)),S=S||"#000",(S!==m.fill||b!==m.stroke||w!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=S,m.stroke=b,m.autoStroke=w,m.align=o,m.verticalAlign=s,r.setDefaultTextStyle(m)),r.__dirty|=$t,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ec:Jf},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Yt(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Fa(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},z(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(j(e))for(var n=e,i=ce(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==tc)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,rc)},t.prototype._savePrimaryToNormal=function(e,r,n){for(var i=0;i<n.length;i++){var a=n[i];e[a]!=null&&!(a in r)&&(r[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(tc,!1,e)},t.prototype.useState=function(e,r,n,i){var a=e===tc,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(fe(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){Hp("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=this._textContent,c=Vg(this,f,u,i);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,u,this._normalState,r,Ug(this,n,l),l);var v=this._textGuide;return f&&f.useState(e,r,n,!!c),v&&v.useState(e,r,n,!!c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=Gs,this.__dirty&=~$t),u}}},t.prototype.useStates=function(e,r,n){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&i.push(f)}var c=i[o-1],v=this._textContent,h=Vg(this,v,c,n);h&&!this.__inHover&&(this.__inHover=h);var d=this._mergeStates(i),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,Ug(this,r,p),p);var g=this._textGuide;v&&v.useStates(e,r,!!h),g&&g.useStates(e,r,!!h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=Gs,this.__dirty&=~$t)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=fe(this.currentStates,e);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var i=this.currentStates.slice(),a=fe(i,e),o=fe(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},n,i=0;i<e.length;i++){var a=e[i];z(r,a),a.textConfig&&(n=n||{},z(n,a.textConfig))}return n&&(r.textConfig=n),r},t.prototype._applyStateObj=function(e,r,n,i,a,o){if(this.__inHover!==Vs){var s=!(r&&i);r&&r.textConfig?(this.textConfig=z({},i?this.textConfig:n.textConfig),z(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<rc.length;f++){var c=rc[f],v=a&&aA[c];r&&r[c]!=null?v?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&n[c]!=null&&(v?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!a)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(r||n)[d]:r||n)}u&&this._transitionState(e,l,o)}},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new Oa,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),z(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=$t;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,n){var i=e?this[e]:this,a=new jf(i,r,n);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,r){var n=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=fe(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!e||e===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,r,n){nc(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){nc(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,i){for(var a=nc(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=(function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=Gs,e.__dirty=$t;function r(n,i,a,o){Object.defineProperty(e,n,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[a]=l[0],this[o]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(f){l[a]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))})(),t})();Ut(Hs,kr),Ut(Hs,Oa);function nc(t,e,r,n,i){r=r||{};var a=[];Gg(t,"",t,e,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(d,p){r.during(p)});for(var v=0;v<a.length;v++){var h=a[v];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function ic(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function sA(t){return ut(t[0])}function lA(t,e,r){if(ut(e[r]))if(ut(t[r])||(t[r]=[]),ft(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),ic(t[r],e[r],n))}else{var i=e[r],a=t[r],o=i.length;if(sA(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?ic(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else ic(a,i,o);a.length=i.length}else t[r]=e[r]}function uA(t,e){return t===e||ut(t)&&ut(e)&&fA(t,e)}function fA(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function Gg(t,e,r,n,i,a,o,s){for(var l=ce(n),u=i.duration,f=i.delay,c=i.additive,v=i.setToFinal,h=!j(a),d=t.animators,p=[],g=0;g<l.length;g++){var m=l[g],y=n[m];if(y!=null&&r[m]!=null&&(h||a[m]))if(j(y)&&!ut(y)&&!hf(y)){if(e){s||(r[m]=y,t.updateDuringAnimation(e));continue}Gg(t,m,r[m],y,i,a&&a[m],o,s)}else p.push(m);else s||(r[m]=y,t.updateDuringAnimation(e),p.push(m))}var _=p.length;if(!c&&_)for(var S=0;S<d.length;S++){var b=d[S];if(b.targetName===e){var w=b.stopTracks(p);if(w){var T=fe(d,b);d.splice(T,1)}}}if(i.force||(p=Ue(p,function(A){return!uA(n[A],r[A])}),_=p.length),_>0||i.force&&!o.length){var C=void 0,D=void 0,x=void 0;if(s){D={},v&&(C={});for(var S=0;S<_;S++){var m=p[S];D[m]=r[m],v?C[m]=n[m]:r[m]=n[m]}}else if(v){x={};for(var S=0;S<_;S++){var m=p[S];x[m]=Rs(r[m]),lA(r,n,m)}}var b=new jf(r,!1,!1,c?Ue(d,function(L){return L.targetName===e}):null);b.targetName=e,i.scope&&(b.scope=i.scope),v&&C&&b.whenWithKeys(0,C,p),x&&b.whenWithKeys(0,x,p),b.whenWithKeys(u??500,s?D:n,p).delay(f||0),t.addAnimator(b,e),o.push(b)}}function Vg(t,e,r,n){return!(r&&r.hoverLayer||n)||Hg(t)||e&&Hg(e)?Gs:Vs}function Hg(t){return t.type==="text"||t.type==="tspan"}function Ug(t,e,r){return!e&&!t.__inHover&&r&&r.duration>0}var ac="__zr_style_"+Math.round(Math.random()*10),kn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Us={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};kn[ac]=!0;var Wg=["z","z2","invisible"],cA=["invisible"],Ua=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=ce(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(r){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&hA(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,n){return this.rectContain(r,n)},e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new ne(0,0,0,0)),n?ne.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new ne(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,n){r!=="style"?t.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:z(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Ha,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Ha)},e.prototype.styleUpdated=function(){this.__dirty&=~Ha},e.prototype.createStyle=function(r){return ds(kn,r)},e.prototype.useStyle=function(r){r[ac]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},e.prototype._useHoverStyle=function(r){this.__hoverStyle=r},e.prototype.isStyleObject=function(r){return r[ac]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,Wg)},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u=this.__inHover===Vs,f;if(n&&n.style?o?a?f=n.style:(f=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(f,n.style)):(f=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(f,n.style)):l&&(f=i.style),f)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var v=ce(c),h=0;h<v.length;h++){var d=v[h];d in f&&(f[d]=f[d],this.style[d]=c[d])}for(var p=ce(f),h=0;h<p.length;h++){var d=p[h];this.style[d]=this.style[d]}this._transitionState(r,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u)for(var g=this.__inHover?cA:Wg,h=0;h<g.length;h++){var d=g[h];n&&n[d]!=null?this[d]=n[d]:l&&i[d]!=null&&(this[d]=i[d])}},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},e.prototype._mergeStyle=function(r,n){return z(r,n),r},e.prototype.getAnimationStyleProps=function(){return Us},e.initDefaultProps=(function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=0,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=$t|Ha})(),e})(Hs),oc=new ne(0,0,0,0),sc=new ne(0,0,0,0);function hA(t,e,r){return oc.copy(t.getBoundingRect()),t.transform&&oc.applyTransform(t.transform),sc.width=e,sc.height=r,!oc.intersect(sc)}var Ct=Math.min,At=Math.max,lc=Math.sin,uc=Math.cos,Rn=Math.PI*2,Ws=wi(),Ys=wi(),$s=wi();function Yg(t,e,r,n,i,a){i[0]=Ct(t,r),i[1]=Ct(e,n),a[0]=At(t,r),a[1]=At(e,n)}var $g=[],Xg=[];function vA(t,e,r,n,i,a,o,s,l,u){var f=Sg,c=Ye,v=f(t,r,i,o,$g);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<v;h++){var d=c(t,r,i,o,$g[h]);l[0]=Ct(d,l[0]),u[0]=At(d,u[0])}v=f(e,n,a,s,Xg);for(var h=0;h<v;h++){var p=c(e,n,a,s,Xg[h]);l[1]=Ct(p,l[1]),u[1]=At(p,u[1])}l[0]=Ct(t,l[0]),u[0]=At(t,u[0]),l[0]=Ct(o,l[0]),u[0]=At(o,u[0]),l[1]=Ct(e,l[1]),u[1]=At(e,u[1]),l[1]=Ct(s,l[1]),u[1]=At(s,u[1])}function dA(t,e,r,n,i,a,o,s){var l=wg,u=ct,f=At(Ct(l(t,r,i),1),0),c=At(Ct(l(e,n,a),1),0),v=u(t,r,i,f),h=u(e,n,a,c);o[0]=Ct(t,i,v),o[1]=Ct(e,a,h),s[0]=At(t,i,v),s[1]=At(e,a,h)}function pA(t,e,r,n,i,a,o,s,l){var u=xi,f=Ci,c=Math.abs(i-a);if(c%Rn<1e-4&&c>1e-4){s[0]=t-r,s[1]=e-n,l[0]=t+r,l[1]=e+n;return}if(Ws[0]=uc(i)*r+t,Ws[1]=lc(i)*n+e,Ys[0]=uc(a)*r+t,Ys[1]=lc(a)*n+e,u(s,Ws,Ys),f(l,Ws,Ys),i=i%Rn,i<0&&(i=i+Rn),a=a%Rn,a<0&&(a=a+Rn),i>a&&!o?a+=Rn:i<a&&o&&(i+=Rn),o){var v=a;a=i,i=v}for(var h=0;h<a;h+=Math.PI/2)h>i&&($s[0]=uc(h)*r+t,$s[1]=lc(h)*n+e,u(s,$s,s),f(l,$s,l))}var _e={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},On=[],Nn=[],yr=[],Jr=[],_r=[],Sr=[],fc=Math.min,cc=Math.max,Bn=Math.cos,Fn=Math.sin,Rr=Math.abs,hc=Math.PI,en=hc*2,vc=typeof Float32Array<"u",Wa=[];function dc(t){var e=Math.round(t/hc*1e8)/1e8;return e%2*hc}function pc(t,e){var r=dc(t[0]);r<0&&(r+=en);var n=r-t[0],i=t[1];i+=n,!e&&i-r>=en?i=r+en:e&&r-i>=en?i=r-en:!e&&r>i?i=r+(en-dc(r-i)):e&&r<i&&(i=r-(en-dc(i-r))),t[0]=r,t[1]=i}var tn=(function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,n){n=n||0,n>0&&(this._ux=Rr(n/zg/e)||0,this._uy=Rr(n/zg/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(_e.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=Rr(e-this._xi),i=Rr(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(_e.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){return this._drawPendingPt(),this.addData(_e.C,e,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,i,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,i){return this._drawPendingPt(),this.addData(_e.Q,e,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(e,r,n,i,a,o){this._drawPendingPt(),Wa[0]=i,Wa[1]=a,pc(Wa,o),i=Wa[0],a=Wa[1];var s=a-i;return this.addData(_e.A,e,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,i,a,o),this._xi=Bn(a)*n+e,this._yi=Fn(a)*n+r,this},t.prototype.arcTo=function(e,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,i,a),this},t.prototype.rect=function(e,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,i),this.addData(_e.R,e,r,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(_e.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;!(this.data&&this.data.length===r)&&vc&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=e[n];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,n=0,i=this._len,a=0;a<r;a++)n+=e[a].len();var o=this.data;if(vc&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var s=0;s<i;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var l=e[a].data,s=0;s<l.length;s++)this.data[i++]=l[s];this._len=i}},t.prototype.addData=function(e,r,n,i,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,vc&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){yr[0]=yr[1]=_r[0]=_r[1]=Number.MAX_VALUE,Jr[0]=Jr[1]=Sr[0]=Sr[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],n=e[o+1],i=r,a=n),s){case _e.M:r=i=e[o++],n=a=e[o++],_r[0]=i,_r[1]=a,Sr[0]=i,Sr[1]=a;break;case _e.L:Yg(r,n,e[o],e[o+1],_r,Sr),r=e[o++],n=e[o++];break;case _e.C:vA(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],_r,Sr),r=e[o++],n=e[o++];break;case _e.Q:dA(r,n,e[o++],e[o++],e[o],e[o+1],_r,Sr),r=e[o++],n=e[o++];break;case _e.A:var u=e[o++],f=e[o++],c=e[o++],v=e[o++],h=e[o++],d=e[o++]+h;o+=1;var p=!e[o++];l&&(i=Bn(h)*c+u,a=Fn(h)*v+f),pA(u,f,c,v,h,d,p,_r,Sr),r=Bn(d)*c+u,n=Fn(d)*v+f;break;case _e.R:i=r=e[o++],a=n=e[o++];var g=e[o++],m=e[o++];Yg(i,a,i+g,a+m,_r,Sr);break;case _e.Z:r=i,n=a;break}xi(yr,yr,_r),Ci(Jr,Jr,Sr)}return o===0&&(yr[0]=yr[1]=Jr[0]=Jr[1]=0),new ne(yr[0],yr[1],Jr[0]-yr[0],Jr[1]-yr[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,v=0;v<r;){var h=e[v++],d=v===1;d&&(a=e[v],o=e[v+1],s=a,l=o);var p=-1;switch(h){case _e.M:a=s=e[v++],o=l=e[v++];break;case _e.L:{var g=e[v++],m=e[v++],y=g-a,_=m-o;(Rr(y)>n||Rr(_)>i||v===r-1)&&(p=Math.sqrt(y*y+_*_),a=g,o=m);break}case _e.C:{var S=e[v++],b=e[v++],g=e[v++],m=e[v++],w=e[v++],T=e[v++];p=FC(a,o,S,b,g,m,w,T,10),a=w,o=T;break}case _e.Q:{var S=e[v++],b=e[v++],g=e[v++],m=e[v++];p=VC(a,o,S,b,g,m,10),a=g,o=m;break}case _e.A:var C=e[v++],D=e[v++],x=e[v++],A=e[v++],L=e[v++],M=e[v++],P=M+L;v+=1,d&&(s=Bn(L)*x+C,l=Fn(L)*A+D),p=cc(x,A)*fc(en,Math.abs(M)),a=Bn(P)*x+C,o=Fn(P)*A+D;break;case _e.R:{s=a=e[v++],l=o=e[v++];var E=e[v++],k=e[v++];p=E*2+k*2;break}case _e.Z:{var y=s-a,_=l-o;p=Math.sqrt(y*y+_*_),a=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,c,v,h=r<1,d,p,g=0,m=0,y,_=0,S,b;if(!(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,y=r*p,!y)))e:for(var w=0;w<o;){var T=n[w++],C=w===1;switch(C&&(u=n[w],f=n[w+1],s=u,l=f),T!==_e.L&&_>0&&(e.lineTo(S,b),_=0),T){case _e.M:s=u=n[w++],l=f=n[w++],e.moveTo(u,f);break;case _e.L:{c=n[w++],v=n[w++];var D=Rr(c-u),x=Rr(v-f);if(D>i||x>a){if(h){var A=d[m++];if(g+A>y){var L=(y-g)/A;e.lineTo(u*(1-L)+c*L,f*(1-L)+v*L);break e}g+=A}e.lineTo(c,v),u=c,f=v,_=0}else{var M=D*D+x*x;M>_&&(S=c,b=v,_=M)}break}case _e.C:{var P=n[w++],E=n[w++],k=n[w++],O=n[w++],R=n[w++],N=n[w++];if(h){var A=d[m++];if(g+A>y){var L=(y-g)/A;Cs(u,P,k,R,L,On),Cs(f,E,O,N,L,Nn),e.bezierCurveTo(On[1],Nn[1],On[2],Nn[2],On[3],Nn[3]);break e}g+=A}e.bezierCurveTo(P,E,k,O,R,N),u=R,f=N;break}case _e.Q:{var P=n[w++],E=n[w++],k=n[w++],O=n[w++];if(h){var A=d[m++];if(g+A>y){var L=(y-g)/A;As(u,P,k,L,On),As(f,E,O,L,Nn),e.quadraticCurveTo(On[1],Nn[1],On[2],Nn[2]);break e}g+=A}e.quadraticCurveTo(P,E,k,O),u=k,f=O;break}case _e.A:var F=n[w++],B=n[w++],V=n[w++],X=n[w++],H=n[w++],K=n[w++],ae=n[w++],ke=!n[w++],Ae=V>X?V:X,he=Rr(V-X)>.001,Te=H+K,J=!1;if(h){var A=d[m++];g+A>y&&(Te=H+K*(y-g)/A,J=!0),g+=A}if(he&&e.ellipse?e.ellipse(F,B,V,X,ae,H,Te,ke):e.arc(F,B,Ae,H,Te,ke),J)break e;C&&(s=Bn(H)*V+F,l=Fn(H)*X+B),u=Bn(Te)*V+F,f=Fn(Te)*X+B;break;case _e.R:s=u=n[w],l=f=n[w+1],c=n[w++],v=n[w++];var se=n[w++],pt=n[w++];if(h){var A=d[m++];if(g+A>y){var Re=y-g;e.moveTo(c,v),e.lineTo(c+fc(Re,se),v),Re-=se,Re>0&&e.lineTo(c+se,v+fc(Re,pt)),Re-=pt,Re>0&&e.lineTo(c+cc(se-Re,0),v+pt),Re-=se,Re>0&&e.lineTo(c,v+cc(pt-Re,0));break e}g+=A}e.rect(c,v,se,pt);break;case _e.Z:if(h){var A=d[m++];if(g+A>y){var L=(y-g)/A;e.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break e}g+=A}e.closePath(),u=s,f=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=_e,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})();function ki(t,e,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=t;if(o>e+s&&o>n+s||o<e-s&&o<n-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t!==r)l=(e-n)/(t-r),u=(t*n-r*e)/(t-r);else return Math.abs(a-t)<=s/2;var f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function gA(t,e,r,n,i,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>e+c&&f>n+c&&f>a+c&&f>s+c||f<e-c&&f<n-c&&f<a-c&&f<s-c||u>t+c&&u>r+c&&u>i+c&&u>o+c||u<t-c&&u<r-c&&u<i-c&&u<o-c)return!1;var v=BC(t,e,r,n,i,a,o,s,u,f);return v<=c/2}function mA(t,e,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>n+u&&l>a+u||l<e-u&&l<n-u&&l<a-u||s>t+u&&s>r+u&&s>i+u||s<t-u&&s<r-u&&s<i-u)return!1;var f=GC(t,e,r,n,i,a,s,l);return f<=u/2}var qg=Math.PI*2;function Xs(t){return t%=qg,t<0&&(t+=qg),t}var Ya=Math.PI*2;function yA(t,e,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(n-i)%Ya<1e-4)return!0;if(a){var c=n;n=Xs(i),i=Xs(c)}else n=Xs(n),i=Xs(i);n>i&&(i+=Ya);var v=Math.atan2(l,s);return v<0&&(v+=Ya),v>=n&&v<=i||v+Ya>=n&&v+Ya<=i}function zn(t,e,r,n,i,a){if(a>e&&a>n||a<e&&a<n||n===e)return 0;var o=(a-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var l=o*(r-t)+t;return l===i?1/0:l>i?s:0}var rn=tn.CMD,Gn=Math.PI*2,_A=1e-4;function SA(t,e){return Math.abs(t-e)<_A}var rt=[-1,-1,-1],Dt=[-1,-1];function bA(){var t=Dt[0];Dt[0]=Dt[1],Dt[1]=t}function wA(t,e,r,n,i,a,o,s,l,u){if(u>e&&u>n&&u>a&&u>s||u<e&&u<n&&u<a&&u<s)return 0;var f=xs(e,n,a,s,u,rt);if(f===0)return 0;for(var c=0,v=-1,h=void 0,d=void 0,p=0;p<f;p++){var g=rt[p],m=g===0||g===1?.5:1,y=Ye(t,r,i,o,g);y<l||(v<0&&(v=Sg(e,n,a,s,Dt),Dt[1]<Dt[0]&&v>1&&bA(),h=Ye(e,n,a,s,Dt[0]),v>1&&(d=Ye(e,n,a,s,Dt[1]))),v===2?g<Dt[0]?c+=h<e?m:-m:g<Dt[1]?c+=d<h?m:-m:c+=s<d?m:-m:g<Dt[0]?c+=h<e?m:-m:c+=s<h?m:-m)}return c}function TA(t,e,r,n,i,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return 0;var l=zC(e,n,a,s,rt);if(l===0)return 0;var u=wg(e,n,a);if(u>=0&&u<=1){for(var f=0,c=ct(e,n,a,u),v=0;v<l;v++){var h=rt[v]===0||rt[v]===1?.5:1,d=ct(t,r,i,rt[v]);d<o||(rt[v]<u?f+=c<e?h:-h:f+=a<c?h:-h)}return f}else{var h=rt[0]===0||rt[0]===1?.5:1,d=ct(t,r,i,rt[0]);return d<o?0:a<e?h:-h}}function xA(t,e,r,n,i,a,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);rt[0]=-l,rt[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Gn-1e-4){n=0,i=Gn;var f=a?1:-1;return o>=rt[0]+t&&o<=rt[1]+t?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=Gn,i+=Gn);for(var v=0,h=0;h<2;h++){var d=rt[h];if(d+t>o){var p=Math.atan2(s,d),f=a?1:-1;p<0&&(p=Gn+p),(p>=n&&p<=i||p+Gn>=n&&p+Gn<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),v+=f)}}return v}function Zg(t,e,r,n,i){for(var a=t.data,o=t.len(),s=0,l=0,u=0,f=0,c=0,v,h,d=0;d<o;){var p=a[d++],g=d===1;switch(p===rn.M&&d>1&&(r||(s+=zn(l,u,f,c,n,i))),g&&(l=a[d],u=a[d+1],f=l,c=u),p){case rn.M:f=a[d++],c=a[d++],l=f,u=c;break;case rn.L:if(r){if(ki(l,u,a[d],a[d+1],e,n,i))return!0}else s+=zn(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case rn.C:if(r){if(gA(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=wA(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case rn.Q:if(r){if(mA(l,u,a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=TA(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case rn.A:var m=a[d++],y=a[d++],_=a[d++],S=a[d++],b=a[d++],w=a[d++];d+=1;var T=!!(1-a[d++]);v=Math.cos(b)*_+m,h=Math.sin(b)*S+y,g?(f=v,c=h):s+=zn(l,u,v,h,n,i);var C=(n-m)*S/_+m;if(r){if(yA(m,y,S,b,b+w,T,e,C,i))return!0}else s+=xA(m,y,S,b,b+w,T,C,i);l=Math.cos(b+w)*_+m,u=Math.sin(b+w)*S+y;break;case rn.R:f=l=a[d++],c=u=a[d++];var D=a[d++],x=a[d++];if(v=f+D,h=c+x,r){if(ki(f,c,v,c,e,n,i)||ki(v,c,v,h,e,n,i)||ki(v,h,f,h,e,n,i)||ki(f,h,f,c,e,n,i))return!0}else s+=zn(v,c,v,h,n,i),s+=zn(f,h,f,c,n,i);break;case rn.Z:if(r){if(ki(l,u,f,c,e,n,i))return!0}else s+=zn(l,u,f,c,n,i);l=f,u=c;break}}return!r&&!SA(u,c)&&(s+=zn(l,u,f,c,n,i)||0),s!==0}function CA(t,e,r){return Zg(t,0,!1,e,r)}function AA(t,e,r,n){return Zg(t,e,!0,r,n)}var qs=le({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},kn),DA={style:le({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Us.style)},gc=Ss.concat(["invisible","culling","z","z2","zlevel","parent"]),pe=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<gc.length;++s)i[gc[s]]=this[gc[s]];i.__dirty|=$t}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=ce(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?z(this.style,s):this.useStyle(s):o==="shape"?z(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(q(r)){var n=Is(r,0);return n>.5?Jf:n>.2?iA:ec}else if(r)return ec}return Jf},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(q(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Is(r,0)<Qf;if(a===o)return n}},e.prototype.buildPath=function(r,n,i){},e.prototype.pathUpdated=function(){this.__dirty&=~Pi},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new tn(!1)},e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Pi)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),AA(s,l/u,r,n)))return!0}if(this.hasFill())return CA(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Pi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:z(i,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Pi)},e.prototype.createStyle=function(r){return ds(qs,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=z({},this.shape))},e.prototype._applyStateObj=function(r,n,i,a,o,s){if(t.prototype._applyStateObj.call(this,r,n,i,a,o,s),this.__inHover!==Vs){var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=z({},i.shape),z(u,n.shape)):(u=z({},a?this.shape:i.shape),z(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=z({},this.shape);for(var f={},c=ce(u),v=0;v<c.length;v++){var h=c[v];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()}},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},e.prototype.getAnimationStyleProps=function(){return DA},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=(function(a){G(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return oe(r.style)},o.prototype.getDefaultShape=function(){return oe(r.shape)},o})(e);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},e.initDefaultProps=(function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=$t|Ha|Pi})(),e})(Ua),MA=le({strokeFirst:!0,font:Pr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},qs),$a=(function(t){G(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return vg(this.style)},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return ds(MA,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=OC(this.style)),this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(Ua);$a.prototype.type="tspan";var IA=le({x:0,y:0},kn),LA={style:le({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Us.style)};function PA(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var Mt=(function(t){G(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return ds(IA,r)},e.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=PA(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return LA},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new ne(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e})(Ua);Mt.prototype.type="image";function EA(t,e){var r=e.x,n=e.y,i=e.width,a=e.height,o=e.r,s,l,u,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>i&&(c=s+l,s*=i/c,l*=i/c),u+f>i&&(c=u+f,u*=i/c,f*=i/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),t.moveTo(r+s,n),t.lineTo(r+i-l,n),l!==0&&t.arc(r+i-l,n+l,l,-Math.PI/2,0),t.lineTo(r+i,n+a-u),u!==0&&t.arc(r+i-u,n+a-u,u,0,Math.PI/2),t.lineTo(r+f,n+a),f!==0&&t.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),t.lineTo(r,n+s),s!==0&&t.arc(r+s,n+s,s,Math.PI,Math.PI*1.5),t.closePath()}var Ri=Math.round;function Kg(t,e,r){if(e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;t.x1=n,t.x2=i,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(Ri(n*2)===Ri(i*2)&&(t.x1=t.x2=Vn(n,s,!0)),Ri(a*2)===Ri(o*2)&&(t.y1=t.y2=Vn(a,s,!0))),t}}function jg(t,e,r){if(e){var n=e.x,i=e.y,a=e.width,o=e.height;t.x=n,t.y=i,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=Vn(n,s,!0),t.y=Vn(i,s,!0),t.width=Math.max(Vn(n+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(Vn(i+o,s,!1)-t.y,o===0?0:1)),t}}function Vn(t,e,r){if(!e)return t;var n=Ri(t*2);return(n+Ri(e))%2===0?n/2:(n+(r?1:-1))/2}var kA=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})(),RA={},De=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new kA},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=jg(RA,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?EA(r,n):r.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(pe);De.prototype.type="rect";var Qg={fill:"#000"},Jg=2,br={},OA={style:le({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Us.style)},Me=(function(t){G(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Qg,n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,FA(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new ne(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||Qg},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return z(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,n){for(var i=ce(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},z(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return OA},e.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||Pr,i=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||a.align||"left",u=r.verticalAlign||a.verticalAlign||"top";fg(br,a.overflowRect,o,s,l,u),o=br.baseX,s=br.baseY;var f=lm(r),c=MC(f,r,br.outerWidth,br.outerHeight),v=mc(r),h=!!r.backgroundColor,d=c.outerHeight,p=c.outerWidth,g=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,_=Mn(s,c.contentHeight,u);if(v||i){var S=Di(o,p,l),b=Mn(s,d,u);v&&this._renderBackground(r,r,S,b,p,d)}_+=m/2,i&&(y=sm(o,l,i),u==="top"?_+=i[0]:u==="bottom"&&(_-=i[2]));for(var w=0,T=!1,C=!1,D=om("fill"in r?r.fill:(C=!0,a.fill)),x=am("stroke"in r?r.stroke:!h&&(!a.autoStroke||C)?(w=Jg,T=!0,a.stroke):null),A=r.textShadowBlur>0,L=0;L<g.length;L++){var M=this._getOrCreateChild($a),P=M.createStyle();M.useStyle(P),P.text=g[L],P.x=y,P.y=_,P.textAlign=l,P.textBaseline="middle",P.opacity=r.opacity,P.strokeFirst=!0,A&&(P.shadowBlur=r.textShadowBlur||0,P.shadowColor=r.textShadowColor||"transparent",P.shadowOffsetX=r.textShadowOffsetX||0,P.shadowOffsetY=r.textShadowOffsetY||0),P.stroke=x,P.fill=D,x&&(P.lineWidth=r.lineWidth||w,P.lineDash=r.lineDash,P.lineDashOffset=r.lineDashOffset||0),P.font=n,rm(P,r),_+=m,M.setBoundingRect(Rf(P,c.contentWidth,c.calculatedLineHeight,T?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,i=r.align||n.align,a=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;fg(br,n.overflowRect,o,s,i,a),o=br.baseX,s=br.baseY;var l=lm(r),u=PC(l,r,br.outerWidth,br.outerHeight,i),f=u.width,c=u.outerWidth,v=u.outerHeight,h=r.padding;this.isTruncated=!!u.isTruncated;var d=Di(o,c,i),p=Mn(s,v,a),g=d,m=p;h&&(g+=h[3],m+=h[0]);var y=g+f;mc(r)&&this._renderBackground(r,r,d,p,c,v);for(var _=!!r.backgroundColor,S=0;S<u.lines.length;S++){for(var b=u.lines[S],w=b.tokens,T=w.length,C=b.lineHeight,D=b.width,x=0,A=g,L=y,M=T-1,P=void 0;x<T&&(P=w[x],!P.align||P.align==="left");)this._placeToken(P,r,C,m,A,"left",_),D-=P.width,A+=P.width,x++;for(;M>=0&&(P=w[M],P.align==="right");)this._placeToken(P,r,C,m,L,"right",_),D-=P.width,L-=P.width,M--;for(A+=(f-(A-g)-(y-L)-D)/2;x<=M;)P=w[x],this._placeToken(P,r,C,m,A+P.width/2,"center",_),A+=P.width,x++;m+=C}},e.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+i/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+i-r.height/2);var v=!r.isLineHolder&&mc(u);v&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var h=!!u.backgroundColor,d=r.textPadding;d&&(o=sm(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var p=this._getOrCreateChild($a),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,_=0,S=!1,b=om("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),w=am("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(_=Jg,S=!0,m.stroke):null),T=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=c,T&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||Pr,g.opacity=bn(u.opacity,n.opacity,1),rm(g,u),w&&(g.lineWidth=bn(u.lineWidth,n.lineWidth,_),g.lineDash=Z(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=w),b&&(g.fill=b),p.setBoundingRect(Rf(g,r.contentWidth,r.contentHeight,S?0:null))},e.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,v=l&&!c,h=r.borderRadius,d=this,p,g;if(v||r.lineHeight||u&&f){p=this._getOrCreateChild(De),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=h,p.dirtyShape()}if(v){var y=p.style;y.fill=l||null,y.fillOpacity=Z(r.fillOpacity,1)}else if(c){g=this._getOrCreateChild(Mt),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var y=p.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=Z(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=bn(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return nm(r)&&(n=[r.fontStyle,r.fontWeight,tm(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&hr(n)||r.textFont||r.font},e})(Ua),NA={left:!0,right:1,center:1},BA={top:1,bottom:1,middle:1},em=["fontStyle","fontWeight","fontSize","fontFamily"];function tm(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?sf+"px":t+"px"}function rm(t,e){for(var r=0;r<em.length;r++){var n=em[r],i=e[n];i!=null&&(t[n]=i)}}function nm(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function FA(t){return im(t),I(t.rich,im),t}function im(t){if(t){t.font=Me.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||NA[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||BA[r]?r:"top";var n=t.padding;n&&(t.padding=df(t.padding))}}function am(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function om(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function sm(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function lm(t){var e=t.text;return e!=null&&(e+=""),e}function mc(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var um=1e-4,fm=20,zA=14;function GA(t){return t.replace(/^\s+|\s+$/g,"")}var qe=Math.min,ge=Math.max,Be=Math.abs,Or=Math.round,Hn=Math.floor,Xa=Math.ceil,Un=Math.pow,qa=Math.log,yc=Math.LN10,VA=Math.PI,HA=Math.random;function It(t,e,r,n){var i=e[0],a=e[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(t<=i)return o;if(t>=a)return s}else{if(t>=i)return o;if(t<=a)return s}else{if(t===i)return o;if(t===a)return s}return(t-i)/l*u+o}var Q=UA;function UA(t,e,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return _c(t,e,r)}function _c(t,e,r){return q(t)?WA(t)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function WA(t){return!!GA(t).match(/%$/)}function ve(t,e,r){return isNaN(e)?r?""+t:+t:(e=qe(ge(0,e),fm),t=(+t).toFixed(e),r?t:+t)}function Sc(t){return t.sort(function(e,r){return e-r}),t}function nn(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Or(t*e)/e===t)return r}return YA(t)}function YA(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,i=r>0?r:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return ge(0,o-n)}function $A(t,e,r){var n=Be(t[1]-t[0]);if(!isFinite(n)||n===0)return NaN;var i=qa(2*Be(r||1)*Be(n))/yc,a=qa(Be(e))/yc,o=ge(0,Xa(-i+a));return isFinite(o)||(o=NaN),o}function XA(t,e){var r=qr(t,function(h,d){return h+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Un(10,e),i=$(t,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=$(i,function(h){return Hn(h)}),s=qr(o,function(h,d){return h+d},0),l=$(i,function(h,d){return h-o[d]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,v=l.length;c<v;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return $(o,function(h){return h/n})}function qA(t,e){var r=ge(nn(t),nn(e)),n=t+e;return r>fm?n:ve(n,r)}var cm=Un(2,53)-1;function hm(t){var e=VA*2;return(t%e+e)%e}function Zs(t){return t>-um&&t<um}var ZA=/^(?:(\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 Oi(t){if(t instanceof Date)return t;if(q(t)){var e=ZA.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(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(t==null)return new Date(NaN);return new Date(Or(t))}function vm(t){return Un(10,bc(t))}function bc(t){if(t===0)return 0;var e=Hn(qa(t)/yc);return t/Un(10,e)>=10&&e++,e}var dm=2;function wc(t,e){var r=bc(t),n=Un(10,r),i=t/n,a;return e===dm?a=1:e?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,t=a*n,ve(t,-r)}function Ks(t){var e=parseFloat(t);return e==t&&(e!==0||!q(t)||t.indexOf("x")<=0)?e:NaN}function KA(t){return!isNaN(Ks(t))}function Tc(){return Or(HA()*9)}function pm(t,e){return e===0?t:pm(e,t%e)}function gm(t,e){return t==null?e:e==null?t:t*e/pm(t,e)}function Lt(t){return t!=null&&isFinite(t)}var jA="[ECharts] ",QA=typeof console<"u"&&console.warn&&console.log;function JA(t,e,r){QA&&console[t](jA+e)}function mm(t,e){JA("error",t)}function ht(t){throw new Error(t)}function ym(t,e,r){return(e-t)*r+t}var _m="series\0",eD="\0_ec_\0";function nt(t){return t instanceof Array?t:t==null?[]:[t]}function js(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var Sm=["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 Za(t){return j(t)&&!W(t)&&!(t instanceof Date)?t.value:t}function tD(t){return j(t)&&!(t instanceof Array)}function rD(t,e,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=te();I(e,function(l,u){if(!j(l)){e[u]=null;return}});var s=nD(t,o,r);return(n||i)&&iD(s,t,o,e),n&&aD(s,e),n||i?oD(s,e,i):a&&sD(s,e),lD(s),s}function nD(t,e,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<t.length;i++){var a=t[i];a&&a.id!=null&&e.set(a.id,i),n.push({existing:r==="replaceMerge"||ja(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function iD(t,e,r,n){I(n,function(i,a){if(!(!i||i.id==null)){var o=Ka(i.id),s=r.get(o);if(s!=null){var l=t[s];Wt(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=e[s],n[a]=null}}})}function aD(t,e){I(e,function(r,n){if(!(!r||r.name==null))for(var i=0;i<t.length;i++){var a=t[i].existing;if(!t[i].newOption&&a&&(a.id==null||r.id==null)&&!ja(r)&&!ja(a)&&bm("name",a,r)){t[i].newOption=r,e[n]=null;return}}})}function oD(t,e,r){I(e,function(n){if(n){for(var i,a=0;(i=t[a])&&(i.newOption||ja(i.existing)||i.existing&&n.id!=null&&!bm("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function sD(t,e){I(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function lD(t){var e=te();I(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),I(t,function(r){var n=r.newOption;Wt(!n||n.id==null||!e.get(n.id)||e.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),I(t,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(j(a)){if(o.name=a.name!=null?Ka(a.name):i?i.name:_m+n,i)o.id=Ka(i.id);else if(a.id!=null)o.id=Ka(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function bm(t,e,r){var n=wr(e[t],null),i=wr(r[t],null);return n!=null&&i!=null&&n===i}function Ka(t){return wr(t,"")}function wr(t,e){return t==null?e:q(t)?t:me(t)||cf(t)?t+"":e}function xc(t){var e=t.name;return!!(e&&e.indexOf(_m))}function ja(t){return t&&t.id!=null&&Ka(t.id).indexOf(eD)===0}function uD(t,e,r){I(t,function(n){var i=n.newOption;j(i)&&(n.keyInfo.mainType=e,n.keyInfo.subType=fD(e,i,n.existing,r))})}function fD(t,e,r,n){var i=e.type?e.type:r?r.subType:n.determineSubType(t,e);return i}function Wn(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return W(e.dataIndex)?$(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return W(e.name)?$(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function Se(){var t="__ec_inner_"+cD++;return function(e){return e[t]||(e[t]={})}}var cD=Tc();function Cc(t,e,r){var n=Ac(e,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,f){var c=Qa(t,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function Ac(t,e){var r;if(q(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var i=te(),a={},o=!1;return I(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&fe(e.includeMainTypes,f)<0)){o=o||!!f;var v=i.get(f)||i.set(f,{});v[c]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Pt={useDefault:!0,enableAll:!1,enableNone:!1};function Qa(t,e,r,n){n=n||Pt;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=t.getComponent(e))?[l]:[],s}if(i==="none"||i===!1){if(n.enableNone)return s.models=[],s;i=-1}return i==="all"&&(n.enableAll?i=a=o=null:i=-1),s.models=t.queryComponents({mainType:e,index:i,id:a,name:o}),s}function hD(t,e,r){var n={};n[e+"Id"]=t[e+"Id"],n[e+"Index"]=t[e+"Index"],n[e+"Name"]=t[e+"Name"];var i={mainType:e,query:n};return r&&(i.subType=r),i}function wm(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function vD(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function dD(t){return t==="auto"?ie.domSupported?"html":"richText":t||"html"}function Tm(t,e,r,n,i){var a=e==null||e==="auto";if(n==null)return n;if(me(n)){var o=ym(r||0,n,i);return ve(o,a?Math.max(nn(r||0),nn(n)):e)}else{if(q(n))return i<1?r:n;for(var s=[],l=r,u=n,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var v=t.getDimensionInfo(c);if(v&&v.type==="ordinal")s[c]=(i<1&&l?l:u)[c];else{var h=l&&l[c]?l[c]:0,d=u[c],o=ym(h,d,i);s[c]=ve(o,a?Math.max(nn(h),nn(d)):e)}}return s}}function Et(){return[1/0,-1/0]}function Dc(t,e){Nr(e)&&(e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e))}function xm(t,e){Nr(e)&&e<t[0]&&(t[0]=e)}function Cm(t,e){Nr(e)&&e>t[1]&&(t[1]=e)}function pD(t,e){Ni(e[0],e[1])&&(e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]))}function Nr(t){return t!=null&&isFinite(t)}function Ni(t,e){return Nr(t)&&Nr(e)&&t<=e}function gD(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}function mD(t){Ni(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function Am(){var t="__ec_once_"+yD++;return function(e,r){tt(e,t)||(e[t]=1,r())}}var yD=Tc();function Mc(t,e,r){var n=te(),i=0;I(t,function(a){var o=e(a),s=n.get(o)||0;r&&r(a,s),!s&&!r&&(t[i++]=a),n.set(o,s+1)}),r||(t.length=i)}function _D(t){return t.value+""}function SD(t){return t+""}function Dm(t,e){return Z(e,!0)?t.seriesIndex+2:0}function Mm(t,e,r){var n=t.getData().count();return{progressiveRender:r.progressiveEnabled&&e.incrementalPrepareRender&&n>=r.threshold,large:t.get("large")&&n>=t.get("largeThreshold"),modDataCount:t.get("progressiveChunkMode")==="mod"?t.getData().count():null}}function Ic(t,e){return{seriesType:t,overallReset:e}}function Lc(t){return{overallReset:t}}var ue=Se(),Pc=function(t,e,r,n){if(n){var i=ue(n);i.dataIndex=r,i.dataType=e,i.seriesIndex=t,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=ue(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}},Bi="undefined",Im="series",Lm=te(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),_t="original",Ze="arrayRows",kt="objectRows",Xt="keyedColumns",an="typedArray",Pm="unknown",qt="column",Yn="row",bD=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Em=(function(){function t(e){I(bD,function(r){this[r]=de(e[r],e)},this)}return t})();function wD(t,e){return e.mainType===Im?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}var km=1,Rm={},Om=Se(),Ec=Se(),kc=0,Qs=1,Js=2,Rt=["emphasis","blur","select"],el=["normal","emphasis","blur","select"],TD=10,xD=9,$n="highlight",tl="downplay",rl="select",Rc="unselect",nl="toggleSelect",Oc="selectchanged";function Fi(t){return t!=null&&t!=="none"}function il(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function Nm(t){il(t,"emphasis",Js)}function Bm(t){t.hoverState===Js&&il(t,"normal",kc)}function Nc(t){il(t,"blur",Qs)}function Fm(t){t.hoverState===Qs&&il(t,"normal",kc)}function CD(t){t.selected=!0}function AD(t){t.selected=!1}function zm(t,e,r){e(t,r)}function Br(t,e,r){zm(t,e,r),t.isGroup&&t.traverse(function(n){zm(n,e,r)})}function Gm(t,e){switch(e){case"emphasis":t.hoverState=Js;break;case"normal":t.hoverState=kc;break;case"blur":t.hoverState=Qs;break;case"select":t.selected=!0}}function DD(t,e,r,n){for(var i=t.style,a={},o=0;o<e.length;o++){var s=e[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function MD(t,e,r,n){var i=r&&fe(r,"select")>=0,a=!1;if(t instanceof pe){var o=Om(t),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Fi(s)||Fi(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=z({},n),u=z({},u),u.fill=s):!Fi(u.fill)&&Fi(s)?(a=!0,n=z({},n),u=z({},u),u.fill=Wf(s)):!Fi(u.stroke)&&Fi(l)&&(a||(n=z({},n),u=z({},u)),u.stroke=Wf(l)),n.style=u}}if(n&&n.z2==null){a||(n=z({},n));var f=t.z2EmphasisLift;n.z2=t.z2+(f??TD)}return n}function ID(t,e,r){if(r&&r.z2==null){r=z({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??xD)}return r}function LD(t,e,r){var n=fe(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:DD(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=z({},r),o=z({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Bc(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return MD(this,t,e,r);if(t==="blur")return LD(this,t,r);if(t==="select")return ID(this,t,r)}return r}function PD(t){t.stateProxy=Bc;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=Bc),r&&(r.stateProxy=Bc)}function Vm(t,e){!$m(t,e)&&!t.__highByOuter&&Br(t,Nm)}function Hm(t,e){!$m(t,e)&&!t.__highByOuter&&Br(t,Bm)}function al(t,e){t.__highByOuter|=1<<(e||0),Br(t,Nm)}function ol(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Br(t,Bm)}function ED(t){Br(t,Nc)}function Um(t){Br(t,Fm)}function Wm(t){Br(t,CD)}function Ym(t){Br(t,AD)}function $m(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Xm(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(i,a){var o=Ec(a),s=wD(t,a),l=i==="series";!l&&n.push(s),o.isBlured&&(s.group.traverse(function(u){Fm(u)}),l&&r.push(a)),o.isBlured=!1}),I(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,e)})}function Fc(t,e,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var v=u.getItemGraphicEl(f[c]);v&&Um(v)}}if(t!=null&&!(!e||e==="none")){var o=i.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var v=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!v||e==="series"&&f)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(g){g.__highByOuter&&f&&e==="self"||Nc(g)}),ut(e))a(u.getData(),e);else if(j(e))for(var d=ce(e),p=0;p<d.length;p++)a(u.getData(d[p]),e[d[p]]);l.push(u),Ec(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,i)}})}}function zc(t,e,r){if(!(t==null||e==null)){var n=r.getModel().getComponent(t,e);if(n){Ec(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){Nc(a)})}}}function kD(t,e,r){var n=t.seriesIndex,i=t.getData(e.dataType);if(i){var a=Wn(i,e);a=(W(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=ue(o);Fc(n,u.focus,u.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);f!=null&&Fc(n,f,c,r)}}}function Gc(t,e,r,n){var i={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return i;var a=n.getModel().getComponent(t,e);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(ue(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function RD(t,e,r){var n=ue(t),i=Gc(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&zc(n.componentMainType,n.componentIndex,r),I(a,function(s){return Vm(s,e)})):(Fc(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&zc(n.componentMainType,n.componentIndex,r),Vm(t,e))}function OD(t,e,r){Xm(r);var n=ue(t),i=Gc(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?I(i,function(a){return Hm(a,e)}):Hm(t,e)}function ND(t,e,r){if(Uc(e)){var n=e.dataType,i=t.getData(n),a=Wn(i,e);W(a)||(a=[a]),t[e.type===nl?"toggleSelect":e.type===rl?"select":"unselect"](a,n)}}function qm(t){var e=t.getAllData();I(e,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){t.isSelected(o,i)?Wm(a):Ym(a)})})}function BD(t){var e=[];return t.eachSeries(function(r){var n=r.getAllData();I(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function Vc(t,e,r){Km(t,!0),Br(t,PD),zD(t,e,r)}function FD(t){Km(t,!1)}function Fr(t,e,r,n){n?FD(t):Vc(t,e,r)}function zD(t,e,r){var n=ue(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var Zm=["emphasis","blur","select"],GD={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function zr(t,e,r,n){r=r||"itemStyle";for(var i=0;i<Zm.length;i++){var a=Zm[i],o=e.getModel([a,r]),s=t.ensureState(a);s.style=o[GD[r]]()}}function Km(t,e){var r=e===!1,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Hc(t){return!!(t&&t.__highDownDispatcher)}function VD(t){var e=Rm[t];return e==null&&km<=32&&(e=Rm[t]=km++),e}function Uc(t){var e=t.type;return e===rl||e===Rc||e===nl}function jm(t){var e=t.type;return e===$n||e===tl}function HD(t){var e=Om(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var zi=tn.CMD,UD=[[],[],[]],Qm=Math.sqrt,WD=Math.atan2;function YD(t,e){if(e){var r=t.data,n=t.len(),i,a,o,s,l,u,f=zi.M,c=zi.C,v=zi.L,h=zi.R,d=zi.A,p=zi.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case v:a=1;break;case c:a=3;break;case p:a=2;break;case d:var g=e[4],m=e[5],y=Qm(e[0]*e[0]+e[1]*e[1]),_=Qm(e[2]*e[2]+e[3]*e[3]),S=WD(-e[1]/_,e[0]/y);r[o]*=y,r[o++]+=g,r[o]*=_,r[o++]+=m,r[o++]*=y,r[o++]*=_,r[o++]+=S,r[o++]+=S,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],wt(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],wt(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var b=UD[l];b[0]=r[o++],b[1]=r[o++],wt(b,b,e),r[s++]=b[0],r[s++]=b[1]}}t.increaseVersion()}}var Wc=Math.sqrt,sl=Math.sin,ll=Math.cos,Ja=Math.PI;function Jm(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Yc(t,e){return(t[0]*e[0]+t[1]*e[1])/(Jm(t)*Jm(e))}function ey(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Yc(t,e))}function ty(t,e,r,n,i,a,o,s,l,u,f){var c=l*(Ja/180),v=ll(c)*(t-r)/2+sl(c)*(e-n)/2,h=-1*sl(c)*(t-r)/2+ll(c)*(e-n)/2,d=v*v/(o*o)+h*h/(s*s);d>1&&(o*=Wc(d),s*=Wc(d));var p=(i===a?-1:1)*Wc((o*o*(s*s)-o*o*(h*h)-s*s*(v*v))/(o*o*(h*h)+s*s*(v*v)))||0,g=p*o*h/s,m=p*-s*v/o,y=(t+r)/2+ll(c)*g-sl(c)*m,_=(e+n)/2+sl(c)*g+ll(c)*m,S=ey([1,0],[(v-g)/o,(h-m)/s]),b=[(v-g)/o,(h-m)/s],w=[(-1*v-g)/o,(-1*h-m)/s],T=ey(b,w);if(Yc(b,w)<=-1&&(T=Ja),Yc(b,w)>=1&&(T=0),T<0){var C=Math.round(T/Ja*1e6)/1e6;T=Ja*2+C%2*Ja}f.addData(u,y,_,o,s,S,T,c,a)}var $D=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,XD=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function qD(t){var e=new tn;if(!t)return e;var r=0,n=0,i=r,a=n,o,s=tn.CMD,l=t.match($D);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),v=void 0,h=f.match(XD)||[],d=h.length,p=0;p<d;p++)h[p]=parseFloat(h[p]);for(var g=0;g<d;){var m=void 0,y=void 0,_=void 0,S=void 0,b=void 0,w=void 0,T=void 0,C=r,D=n,x=void 0,A=void 0;switch(c){case"l":r+=h[g++],n+=h[g++],v=s.L,e.addData(v,r,n);break;case"L":r=h[g++],n=h[g++],v=s.L,e.addData(v,r,n);break;case"m":r+=h[g++],n+=h[g++],v=s.M,e.addData(v,r,n),i=r,a=n,c="l";break;case"M":r=h[g++],n=h[g++],v=s.M,e.addData(v,r,n),i=r,a=n,c="L";break;case"h":r+=h[g++],v=s.L,e.addData(v,r,n);break;case"H":r=h[g++],v=s.L,e.addData(v,r,n);break;case"v":n+=h[g++],v=s.L,e.addData(v,r,n);break;case"V":n=h[g++],v=s.L,e.addData(v,r,n);break;case"C":v=s.C,e.addData(v,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),r=h[g-2],n=h[g-1];break;case"c":v=s.C,e.addData(v,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n),r+=h[g-2],n+=h[g-1];break;case"S":m=r,y=n,x=e.len(),A=e.data,o===s.C&&(m+=r-A[x-4],y+=n-A[x-3]),v=s.C,C=h[g++],D=h[g++],r=h[g++],n=h[g++],e.addData(v,m,y,C,D,r,n);break;case"s":m=r,y=n,x=e.len(),A=e.data,o===s.C&&(m+=r-A[x-4],y+=n-A[x-3]),v=s.C,C=r+h[g++],D=n+h[g++],r+=h[g++],n+=h[g++],e.addData(v,m,y,C,D,r,n);break;case"Q":C=h[g++],D=h[g++],r=h[g++],n=h[g++],v=s.Q,e.addData(v,C,D,r,n);break;case"q":C=h[g++]+r,D=h[g++]+n,r+=h[g++],n+=h[g++],v=s.Q,e.addData(v,C,D,r,n);break;case"T":m=r,y=n,x=e.len(),A=e.data,o===s.Q&&(m+=r-A[x-4],y+=n-A[x-3]),r=h[g++],n=h[g++],v=s.Q,e.addData(v,m,y,r,n);break;case"t":m=r,y=n,x=e.len(),A=e.data,o===s.Q&&(m+=r-A[x-4],y+=n-A[x-3]),r+=h[g++],n+=h[g++],v=s.Q,e.addData(v,m,y,r,n);break;case"A":_=h[g++],S=h[g++],b=h[g++],w=h[g++],T=h[g++],C=r,D=n,r=h[g++],n=h[g++],v=s.A,ty(C,D,r,n,w,T,_,S,b,v,e);break;case"a":_=h[g++],S=h[g++],b=h[g++],w=h[g++],T=h[g++],C=r,D=n,r+=h[g++],n+=h[g++],v=s.A,ty(C,D,r,n,w,T,_,S,b,v,e);break}}(c==="z"||c==="Z")&&(v=s.Z,e.addData(v),r=i,n=a),o=v}return e.toStatic(),e}var ry=(function(t){G(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(pe);function ny(t){return t.setData!=null}function iy(t,e){var r=qD(t),n=z({},e);return n.buildPath=function(i){var a=ny(i);if(a&&i.canSave()){i.appendPath(r);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=a?i.getContext():i;o&&r.rebuildPath(o,1)}},n.applyTransform=function(i){YD(r,i),this.dirtyShape()},n}function ZD(t,e){return new ry(iy(t,e))}function KD(t,e){var r=iy(t,e),n=(function(i){G(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(ry);return n}function jD(t,e){for(var r=[],n=t.length,i=0;i<n;i++){var a=t[i];r.push(a.getUpdatedPathProxy(!0))}var o=new pe(e);return o.createPathProxy(),o.buildPath=function(s){if(ny(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var Ce=(function(t){G(e,t);function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var i=fe(this._children,r);return i>=0&&this.replaceAt(n,i),this},e.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(r){var n=this.__zr,i=this._children,a=fe(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},e.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var n=new ne(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(ne.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e})(Hs);Ce.prototype.type="group";var QD=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})(),eo=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new QD},e.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e})(pe);eo.prototype.type="circle";var JD=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})(),$c=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new JD},e.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},e})(pe);$c.prototype.type="ellipse";var ay=Math.PI,Xc=ay*2,Xn=Math.sin,Gi=Math.cos,eM=Math.acos,Ke=Math.atan2,oy=Math.abs,to=Math.sqrt,ro=Math.max,Tr=Math.min,Zt=1e-4;function tM(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,c=s-a,v=c*l-f*u;if(!(v*v<Zt))return v=(f*(e-a)-c*(t-i))/v,[t+v*l,e+v*u]}function ul(t,e,r,n,i,a,o){var s=t-r,l=e-n,u=(o?a:-a)/to(s*s+l*l),f=u*l,c=-u*s,v=t+f,h=e+c,d=r+f,p=n+c,g=(v+d)/2,m=(h+p)/2,y=d-v,_=p-h,S=y*y+_*_,b=i-a,w=v*p-d*h,T=(_<0?-1:1)*to(ro(0,b*b*S-w*w)),C=(w*_-y*T)/S,D=(-w*y-_*T)/S,x=(w*_+y*T)/S,A=(-w*y+_*T)/S,L=C-g,M=D-m,P=x-g,E=A-m;return L*L+M*M>P*P+E*E&&(C=x,D=A),{cx:C,cy:D,x0:-f,y0:-c,x1:C*(i/b-1),y1:D*(i/b-1)}}function rM(t){var e;if(W(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function nM(t,e){var r,n=ro(e.r,0),i=ro(e.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,c=e.cy,v=!!e.clockwise,h=oy(u-l),d=h>Xc&&h%Xc;if(d>Zt&&(h=d),!(n>Zt))t.moveTo(f,c);else if(h>Xc-Zt)t.moveTo(f+n*Gi(l),c+n*Xn(l)),t.arc(f,c,n,l,u,!v),i>Zt&&(t.moveTo(f+i*Gi(u),c+i*Xn(u)),t.arc(f,c,i,u,l,v));else{var p=void 0,g=void 0,m=void 0,y=void 0,_=void 0,S=void 0,b=void 0,w=void 0,T=void 0,C=void 0,D=void 0,x=void 0,A=void 0,L=void 0,M=void 0,P=void 0,E=n*Gi(l),k=n*Xn(l),O=i*Gi(u),R=i*Xn(u),N=h>Zt;if(N){var F=e.cornerRadius;F&&(r=rM(F),p=r[0],g=r[1],m=r[2],y=r[3]);var B=oy(n-i)/2;if(_=Tr(B,m),S=Tr(B,y),b=Tr(B,p),w=Tr(B,g),D=T=ro(_,S),x=C=ro(b,w),(T>Zt||C>Zt)&&(A=n*Gi(u),L=n*Xn(u),M=i*Gi(l),P=i*Xn(l),h<ay)){var V=tM(E,k,M,P,A,L,O,R);if(V){var X=E-V[0],H=k-V[1],K=A-V[0],ae=L-V[1],ke=1/Xn(eM((X*K+H*ae)/(to(X*X+H*H)*to(K*K+ae*ae)))/2),Ae=to(V[0]*V[0]+V[1]*V[1]);D=Tr(T,(n-Ae)/(ke+1)),x=Tr(C,(i-Ae)/(ke-1))}}}if(!N)t.moveTo(f+E,c+k);else if(D>Zt){var he=Tr(m,D),Te=Tr(y,D),J=ul(M,P,E,k,n,he,v),se=ul(A,L,O,R,n,Te,v);t.moveTo(f+J.cx+J.x0,c+J.cy+J.y0),D<T&&he===Te?t.arc(f+J.cx,c+J.cy,D,Ke(J.y0,J.x0),Ke(se.y0,se.x0),!v):(he>0&&t.arc(f+J.cx,c+J.cy,he,Ke(J.y0,J.x0),Ke(J.y1,J.x1),!v),t.arc(f,c,n,Ke(J.cy+J.y1,J.cx+J.x1),Ke(se.cy+se.y1,se.cx+se.x1),!v),Te>0&&t.arc(f+se.cx,c+se.cy,Te,Ke(se.y1,se.x1),Ke(se.y0,se.x0),!v))}else t.moveTo(f+E,c+k),t.arc(f,c,n,l,u,!v);if(!(i>Zt)||!N)t.lineTo(f+O,c+R);else if(x>Zt){var he=Tr(p,x),Te=Tr(g,x),J=ul(O,R,A,L,i,-Te,v),se=ul(E,k,M,P,i,-he,v);t.lineTo(f+J.cx+J.x0,c+J.cy+J.y0),x<C&&he===Te?t.arc(f+J.cx,c+J.cy,x,Ke(J.y0,J.x0),Ke(se.y0,se.x0),!v):(Te>0&&t.arc(f+J.cx,c+J.cy,Te,Ke(J.y0,J.x0),Ke(J.y1,J.x1),!v),t.arc(f,c,i,Ke(J.cy+J.y1,J.cx+J.x1),Ke(se.cy+se.y1,se.cx+se.x1),v),he>0&&t.arc(f+se.cx,c+se.cy,he,Ke(se.y1,se.x1),Ke(se.y0,se.x0),!v))}else t.lineTo(f+O,c+R),t.arc(f,c,i,u,l,v)}t.closePath()}}}var iM=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t})(),xr=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new iM},e.prototype.buildPath=function(r,n){nM(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(pe);xr.prototype.type="sector";var aM=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})(),fl=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new aM},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},e})(pe);fl.prototype.type="ring";function oM(t,e,r,n){var i=[],a=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var v=0,h=t.length;v<h;v++)xi(f,f,t[v]),Ci(c,c,t[v]);xi(f,f,n[0]),Ci(c,c,n[1])}for(var v=0,h=t.length;v<h;v++){var d=t[v];if(r)l=t[v?v-1:h-1],u=t[(v+1)%h];else if(v===0||v===h-1){i.push(pC(t[v]));continue}else l=t[v-1],u=t[v+1];gC(a,u,l),wf(a,a,e);var p=Tf(d,l),g=Tf(d,u),m=p+g;m!==0&&(p/=m,g/=m),wf(o,a,-p),wf(s,a,g);var y=jp([],d,o),_=jp([],d,s);n&&(Ci(y,y,f),xi(y,y,c),Ci(_,_,f),xi(_,_,c)),i.push(y),i.push(_)}return r&&i.push(i.shift()),i}function sy(t,e,r){var n=e.smooth,i=e.points;if(i&&i.length>=2){if(n){var a=oM(i,n,r,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{t.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;s<c;s++)t.lineTo(i[s][0],i[s][1])}r&&t.closePath()}}var sM=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})(),Vi=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new sM},e.prototype.buildPath=function(r,n){sy(r,n,!0)},e})(pe);Vi.prototype.type="polygon";var lM=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})(),on=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new lM},e.prototype.buildPath=function(r,n){sy(r,n,!1)},e})(pe);on.prototype.type="polyline";var uM={},fM=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})(),Cr=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new fM},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=Kg(uM,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},e})(pe);Cr.prototype.type="line";var vt=[],cM=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t})();function ly(t,e,r){var n=t.cpx2,i=t.cpy2;return n!=null||i!=null?[(r?_g:Ye)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?_g:Ye)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?bg:ct)(t.x1,t.cpx1,t.x2,e),(r?bg:ct)(t.y1,t.cpy1,t.y2,e)]}var qc=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new cM},e.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,c=n.cpy2,v=n.percent;v!==0&&(r.moveTo(i,a),f==null||c==null?(v<1&&(As(i,l,o,v,vt),l=vt[1],o=vt[2],As(a,u,s,v,vt),u=vt[1],s=vt[2]),r.quadraticCurveTo(l,u,o,s)):(v<1&&(Cs(i,l,f,o,v,vt),l=vt[1],f=vt[2],o=vt[3],Cs(a,u,c,s,v,vt),u=vt[1],c=vt[2],s=vt[3]),r.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(r){return ly(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=ly(this.shape,r,!0);return _C(n,n)},e})(pe);qc.prototype.type="bezier-curve";var hM=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),cl=(function(t){G(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new hM},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+i,c*o+a),r.arc(i,a,o,s,l,!u)},e})(pe);cl.prototype.type="arc";var uy=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),pe.prototype.getBoundingRect.call(this)},e})(pe),fy=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})(),cy=(function(t){G(e,t);function e(r,n,i,a,o,s){var l=t.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return e})(fy),vM=(function(t){G(e,t);function e(r,n,i,a,o){var s=t.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return e})(fy),Zc=Math.min,dM=Math.max,hl=Math.abs,qn=[0,0],Zn=[0,0],Ge=tg(),vl=Ge.minTv,dl=Ge.maxTv,hy=(function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new re;for(var n=0;n<2;n++)this._axes[n]=new re;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var n=this._corners,i=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);re.sub(i[0],n[1],n[0]),re.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},t.prototype.intersect=function(e,r,n){var i=!0,a=!r;return r&&re.set(r,0,0),Ge.reset(n,!a),!this._intersectCheckOneSide(this,e,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(i=!1,a)||!a&&!Ge.negativeSize&&re.copy(r,i?Ge.useDir?Ge.dirMinTv:vl:dl),i},t.prototype._intersectCheckOneSide=function(e,r,n,i){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,qn),e._getProjMinMaxOnAxis(o,r._corners,Zn),Ge.negativeSize||qn[1]<Zn[0]||qn[0]>Zn[1]){if(a=!1,Ge.negativeSize||n)return a;var l=hl(Zn[0]-qn[1]),u=hl(qn[0]-Zn[1]);Zc(l,u)>dl.len()&&(l<u?re.scale(dl,s,-l*i):re.scale(dl,s,u*i))}else if(!n){var l=hl(Zn[0]-qn[1]),u=hl(qn[0]-Zn[1]);(Ge.useDir||Zc(l,u)<vl.len())&&((l<u||!Ge.bidirectional)&&(re.scale(vl,s,l*i),Ge.useDir&&Ge.calcDirMTV()),(l>=u||!Ge.bidirectional)&&(re.scale(vl,s,-u*i),Ge.useDir&&Ge.calcDirMTV()))}}return a},t.prototype._getProjMinMaxOnAxis=function(e,r,n){for(var i=this._axes[e],a=this._origin,o=r[0].dot(i)+a[e],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(i)+a[e];s=Zc(f,s),l=dM(f,l)}n[0]=s+Ge.touchThreshold,n[1]=l-Ge.touchThreshold,Ge.negativeSize=n[1]<n[0]},t})(),pM=1,gM=[],mM=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=pM,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new ne(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(gM)),r.union(a)}this._rect=r}return this._rect},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},e})(Ua),yM=Se();function _M(t,e,r,n,i){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,f=void 0,c=void 0;n?(u=Z(n.duration,200),f=Z(n.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),ee(c)&&(c=c(r,i)),ee(u)&&(u=u(r));var v={duration:u||0,delay:c,easing:f};return v}else return null}function Kc(t,e,r,n,i,a,o){var s=!1,l;ee(i)?(o=a,a=i,i=null):j(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var f=_M(t,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):null);if(f&&f.duration>0){var c=f.duration,v=f.delay,h=f.easing,d={duration:c,delay:v||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,d):e.animateTo(r,d)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function Ie(t,e,r,n,i,a){Kc("update",t,e,r,n,i,a)}function Ve(t,e,r,n,i,a){Kc("enter",t,e,r,n,i,a)}function no(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function pl(t,e,r,n,i,a){no(t)||Kc("leave",t,e,r,n,i,a)}function vy(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),pl(t,{style:{opacity:0}},e,r,n)}function Hi(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(i){i.isGroup||vy(i,e,r,n)}):vy(t,e,r,n)}function Ui(t){yM(t).oldStyle=t.style}var jc={},sn=["x","y"],Wi=["width","height"],dy=0,py=1,Qc=2;function SM(t){return pe.extend(t)}var bM=KD;function wM(t,e){return bM(t,e)}function Kt(t,e){jc[t]=e}function TM(t){if(jc.hasOwnProperty(t))return jc[t]}function Jc(t,e,r,n){var i=ZD(t,e);return r&&(n==="center"&&(r=my(r,i.getBoundingRect())),yy(i,r)),i}function gy(t,e,r){var n=new Mt({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(my(e,a))}}});return n}function my(t,e){var r=e.width/e.height,n=t.height*r,i;n<=t.width?i=t.height:(n=t.width,i=n/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var eh=jD;function yy(t,e){if(t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function io(t,e){return Kg(t,t,{lineWidth:e}),t}function xM(t,e){return jg(t,t,e),t}var CM=Vn;function AM(t,e){for(var r=Ia([]);t&&t!==e;)La(r,t.getLocalTransform(),r),t=t.parent;return r}function th(t,e,r){return e&&!ut(e)&&(e=Oa.getLocalTransform(e)),r&&(e=Pa([],e)),wt([],t,e)}function DM(t,e,r){var n=e[4]===0||e[5]===0||e[0]===0?1:Be(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:Be(2*e[4]/e[2]),a=[t==="left"?-n:t==="right"?n:0,t==="top"?-i:t==="bottom"?i:0];return a=th(a,e,r),Be(a[0])>Be(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function _y(t){return!t.isGroup}function MM(t){return t.shape!=null}function Sy(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(l){_y(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return MM(o)&&(s.shape=oe(o.shape)),s}var a=n(t);e.traverse(function(o){if(_y(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Ie(o,l,r,ue(o).dataIndex)}}})}function IM(t,e){return $(t,function(r){var n=r[0];n=ge(n,e.x),n=qe(n,e.x+e.width);var i=r[1];return i=ge(i,e.y),i=qe(i,e.y+e.height),[n,i]})}function LM(t,e){var r=ge(t.x,e.x),n=qe(t.x+t.width,e.x+e.width),i=ge(t.y,e.y),a=qe(t.y+t.height,e.y+e.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function rh(t,e,r){var n=z({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(i.image=t.slice(8),le(i,r),new Mt(n)):Jc(t.replace("path://",""),n,r,"center")}function PM(t,e,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(by(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function by(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,c=s-a,v=nh(f,c,l,u);if(EM(v))return!1;var h=t-i,d=e-a,p=nh(h,d,l,u)/v;if(p<0||p>1)return!1;var g=nh(h,d,f,c)/v;return!(g<0||g>1)}function nh(t,e,r,n){return t*n-r*e}function EM(t){return t<=1e-6&&t>=-1e-6}function gl(t,e,r,n,i){return e==null||(me(e)?we[0]=we[1]=we[2]=we[3]=e:(we[0]=e[0],we[1]=e[1],we[2]=e[2],we[3]=e[3]),n&&(we[0]=ge(0,we[0]),we[1]=ge(0,we[1]),we[2]=ge(0,we[2]),we[3]=ge(0,we[3])),r&&(we[0]=-we[0],we[1]=-we[1],we[2]=-we[2],we[3]=-we[3]),wy(t,we,"x","width",3,1,i&&i[0]||0),wy(t,we,"y","height",0,2,i&&i[1]||0)),t}var we=[0,0,0,0];function wy(t,e,r,n,i,a,o){var s=e[a]+e[i],l=t[n];t[n]+=s,o=ge(0,qe(o,l)),t[n]<o?(t[n]=o,t[r]+=e[i]>=0?-e[i]:e[a]>=0?l+e[a]:Be(s)>1e-8?(l-o)*e[i]/s:0):t[r]-=e[i]}function ml(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,i=q(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&I(ce(l),function(f){tt(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ue(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:le({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function ih(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function yl(t,e){if(t)if(W(t))for(var r=0;r<t.length;r++)ih(t[r],e);else ih(t,e)}function ah(t){return!t||Be(t[1])<_l&&Be(t[2])<_l||Be(t[0])<_l&&Be(t[3])<_l}var _l=1e-5;function ao(t,e){return t?ne.copy(t,e):e.clone()}function oh(t,e){return e?yf(t||dr(),e):void 0}function Ty(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function kM(t){var e=-1/0,r=1/0;ih(t,function(a){n(a),n(a.getTextContent()),n(a.getTextGuideLine())});function n(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)i(a.states[o[s]]);i(a)}}function i(a){if(a){var o=a.z2;o>e&&(e=o),o<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function xy(t,e,r){Cy(t,e,r,-1/0)}function Cy(t,e,r,n){if(t.ignoreModelZ)return n;var i=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),l=0;l<s.length;l++)n=ge(Cy(s[l],e,r,n),n);else t.z=e,t.zlevel=r,n=ge(t.z2||0,n);if(i&&(i.z=e,i.zlevel=r,isFinite(n)&&(i.z2=n+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=r,isFinite(n)&&(a.z2=n+(u&&u.showAbove?1:-1))}return n}function RM(t){return t.animation={duration:0},t}function OM(t,e){return e?yf(oo.transform,e):Ia(oo.transform),oo.decomposeTransform(),Na(t,oo),t}var oo=new Oa;oo.transform=dr();function NM(t){var e=t.getZr().painter;return e.getType()==="canvas"?e:null}Kt("circle",eo),Kt("ellipse",$c),Kt("sector",xr),Kt("ring",fl),Kt("polygon",Vi),Kt("polyline",on),Kt("rect",De),Kt("line",Cr),Kt("bezierCurve",qc),Kt("arc",cl);const Ay=Object.freeze(Object.defineProperty({__proto__:null,Arc:cl,BezierCurve:qc,BoundingRect:ne,Circle:eo,CompoundPath:uy,Ellipse:$c,Group:Ce,HOVER_LAYER_FOR_INCREMENTAL:Qc,HOVER_LAYER_FROM_THRESHOLD:py,HOVER_LAYER_NO:dy,Image:Mt,IncrementalDisplayable:mM,Line:Cr,LinearGradient:cy,OrientedBoundingRect:hy,Path:pe,Point:re,Polygon:Vi,Polyline:on,RadialGradient:vM,Rect:De,Ring:fl,Sector:xr,Text:Me,WH:Wi,XY:sn,applyTransform:th,calcZ2Range:kM,clipPointsByRect:IM,clipRectByRect:LM,createIcon:rh,decomposeTransform:OM,ensureCopyRect:ao,ensureCopyTransform:oh,expandOrShrinkRect:gl,extendPath:wM,extendShape:SM,getCurrentCanvasPainter:NM,getShapeClass:TM,getTransform:AM,groupTransition:Sy,initProps:Ve,isBoundingRectAxisAligned:ah,isElementRemoved:no,lineLineIntersect:by,linePolygonIntersect:PM,makeImage:gy,makePath:Jc,mergePath:eh,payloadDisableAnimation:RM,registerShape:Kt,removeElement:pl,removeElementWithFadeOut:Hi,resizePath:yy,retrieveZInfo:Ty,setTooltipConfig:ml,subPixelOptimize:CM,subPixelOptimizeLine:io,subPixelOptimizeRect:xM,transformDirection:DM,traverseElements:yl,traverseUpdateZ:xy,updateProps:Ie},Symbol.toStringTag,{value:"Module"}));var Sl={};function Dy(t,e){for(var r=0;r<Rt.length;r++){var n=Rt[r],i=e[n],a=t.ensureState(n);a.style=a.style||{},a.style.text=i}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function sh(t,e,r){var n=t.labelFetcher,i=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=ee(t.defaultText)?t.defaultText(i,t,r):t.defaultText);for(var l={normal:s},u=0;u<Rt.length;u++){var f=Rt[u],c=e[f];l[f]=Z(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return l}function Kn(t,e,r,n){r=r||Sl;for(var i=t instanceof Me,a=!1,o=0;o<el.length;o++){var s=e[el[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?t:t.getTextContent();if(a){i||(l||(l=new Me,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=sh(r,e),f=e.normal,c=!!f.getShallow("show"),v=Ot(f,n&&n.normal,r,!1,!i);v.text=u.normal,i||t.setTextConfig(My(f,r,!1));for(var o=0;o<Rt.length;o++){var h=Rt[o],s=e[h];if(s){var d=l.ensureState(h),p=!!Z(s.getShallow("show"),c);if(p!==c&&(d.ignore=!p),d.style=Ot(s,n&&n[h],r,!0,!i),d.style.text=u[h],!i){var g=t.ensureState(h);g.textConfig=My(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(v.x=l.style.x),l.style.y!=null&&(v.y=l.style.y),l.ignore=!c,l.useStyle(v),l.dirty(),r.enableTextSetter&&(so(l).setLabelText=function(m){var y=sh(r,e,m);Dy(l,y)})}else l&&(l.ignore=!0);t.dirty()}function jn(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<Rt.length;n++){var i=Rt[n];r[i]=t.getModel([i,e])}return r}function Ot(t,e,r,n,i){var a={};return BM(a,t,r,n,i),e&&z(a,e),a}function My(t,e,r){e=e||{};var n={},i,a=t.getShallow("rotate"),o=Z(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return i=t.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=e.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(n.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(n.layoutRect=e.layoutRect),n}function BM(t,e,r,n,i){r=r||Sl;var a=e.ecModel,o=a&&a.option.textStyle,s=FM(e),l;if(s){l={};var u="richInheritPlainLabel",f=Z(e.get(u),a?a.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var v=e.getModel(["rich",c]);Ey(l[c]={},v,o,e,f,r,n,i,!1,!0)}}l&&(t.rich=l);var h=e.get("overflow");h&&(t.overflow=h);var d=e.get("lineOverflow");d&&(t.lineOverflow=d);var p=t,g=e.get("minMargin");if(g!=null)g=me(g)?g/2:0,p.margin=[g,g,g,g],p.__marginType=Yi.minMargin;else{var m=e.get("textMargin");m!=null&&(p.margin=df(m),p.__marginType=Yi.textMargin)}Ey(t,e,o,null,null,r,n,i,!0,!1)}function FM(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||Sl).rich;if(r){e=e||{};for(var n=ce(r),i=0;i<n.length;i++){var a=n[i];e[a]=1}}t=t.parentModel}return e}var Iy=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Ly=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Py=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Ey(t,e,r,n,i,a,o,s,l,u){r=!o&&r||Sl;var f=a&&a.inheritColor,c=e.getShallow("color"),v=e.getShallow("textBorderColor"),h=Z(e.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(v==="inherit"||v==="auto")&&(f?v=f:v=null),s||(c=c||r.color,v=v||r.textBorderColor),c!=null&&(t.fill=c),v!=null&&(t.stroke=v);var d=Z(e.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(t.lineWidth=d);var p=Z(e.getShallow("textBorderType"),r.textBorderType);p!=null&&(t.lineDash=p);var g=Z(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);g!=null&&(t.lineDashOffset=g),!o&&h==null&&!u&&(h=a&&a.defaultOpacity),h!=null&&(t.opacity=h),!o&&!s&&t.fill==null&&a.inheritColor&&(t.fill=a.inheritColor);for(var m=0;m<Iy.length;m++){var y=Iy[m],_=i!==!1&&n?bn(e.getShallow(y),n.getShallow(y),r[y]):Z(e.getShallow(y),r[y]);_!=null&&(t[y]=_)}for(var m=0;m<Ly.length;m++){var y=Ly[m],_=e.getShallow(y);_!=null&&(t[y]=_)}if(t.verticalAlign==null){var S=e.getShallow("baseline");S!=null&&(t.verticalAlign=S)}if(!l||!a.disableBox){for(var m=0;m<Py.length;m++){var y=Py[m],_=e.getShallow(y);_!=null&&(t[y]=_)}var b=e.getShallow("borderType");b!=null&&(t.borderDash=b),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&f&&(t.backgroundColor=f),(t.borderColor==="auto"||t.borderColor==="inherit")&&f&&(t.borderColor=f)}}function zM(t,e){var r=e&&e.getModel("textStyle");return hr([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var so=Se();function ky(t,e,r,n){if(t){var i=so(t);i.prevValue=i.value,i.value=r;var a=e.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=e)}}function GM(t,e,r,n,i){var a=so(t);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=Z(a.interpolatedValue,a.prevValue),l=a.value;function u(f){var c=Tm(r,a.precision,s,l,f);a.interpolatedValue=f===1?null:c;var v=sh({labelDataIndex:e,labelFetcher:i,defaultText:o?o(c):c+""},a.statesModels,c);Dy(t,v)}t.percent=0,(a.prevValue==null?Ve:Ie)(t,{percent:1},n,e,null,u)}var Yi={minMargin:1,textMargin:2},VM=["textStyle","color"],lh=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],uh=new Me,HM=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(VM):null)},t.prototype.getFont=function(){return zM({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<lh.length;n++)r[lh[n]]=this.getShallow(lh[n]);return uh.useStyle(r),uh.update(),uh.getBoundingRect()},t})(),Ry=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],UM=Ma(Ry),WM=(function(){function t(){}return t.prototype.getLineStyle=function(e){return UM(this,e)},t})(),Oy=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],YM=Ma(Oy),$M=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return YM(this,e,r)},t})(),xe=(function(){function t(e,r,n){this.parentModel=r,this.ecModel=n,this.option=e}return t.prototype.init=function(e,r,n){},t.prototype.mergeOption=function(e,r){be(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var n=this.option,i=n==null?n:n[e];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(e))}return i},t.prototype.getModel=function(e,r){var n=e!=null,i=n?this.parsePath(e):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(a,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(oe(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!ie.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var n=this.option;if(!e)return n;for(var i=0;i<e.length&&!(e[i]&&(n=n&&typeof n=="object"?n[e[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t})();pf(xe),oC(xe),Ut(xe,WM),Ut(xe,$M),Ut(xe,cC),Ut(xe,HM);function lo(t){return t==null?0:t.length||1}function Ny(t){return t}var XM=(function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||Ny,this._newKeyGetter=i||Ny,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},i=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],l=n[s],u=lo(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],c=lo(u),v=lo(f);if(c>1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(c===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(c===1&&v===1)this._update&&this._update(f,u),i[l]=null;else if(c>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var i=e[n],a=r[i],o=lo(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},t.prototype._initIndexMap=function(e,r,n,i){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[i](e[o],o);if(a||(n[o]=s),!!r){var l=r[s],u=lo(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t})(),$e={Must:1,Might:2,Not:3},By=Se();function qM(t){By(t).datasetMap=te()}function ZM(t,e,r){var n={},i=fh(e);if(!i||!t)return n;var a=[],o=[],s=e.ecModel,l=By(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),I(t,function(p,g){var m=j(p)?p:t[g]={name:p};m.type==="ordinal"&&f==null&&(f=g,c=d(m)),n[m.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});I(t,function(p,g){var m=p.name,y=d(p);if(f==null){var _=v.valueWayDim;h(n[m],_,y),h(o,_,y),v.valueWayDim+=y}else if(f===g)h(n[m],0,y),h(a,0,y);else{var _=v.categoryWayDim;h(n[m],_,y),h(o,_,y),v.categoryWayDim+=y}});function h(p,g,m){for(var y=0;y<m;y++)p.push(g+y)}function d(p){var g=p.dimsDef;return g?g.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function Fy(t,e,r){var n={},i=fh(t);if(!i)return n;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===kt||a===Xt)&&I(o,function(f,c){(j(f)?f.name:f)==="name"&&(s=c)});var l=(function(){for(var f={},c={},v=[],h=0,d=Math.min(5,r);h<d;h++){var p=Gy(e.data,a,e.seriesLayoutBy,o,e.startIndex,h);v.push(p);var g=p===$e.Not;if(g&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v||!g&&v[f.n]===$e.Not)&&(f.n=h),m(f)&&v[f.n]!==$e.Not)return f;g||(p===$e.Might&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v)&&(c.n=h))}function m(y){return y.v!=null&&y.n!=null}return m(f)?f:m(c)?c:null})();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function fh(t){var e=t.get("data",!0);if(!e)return Qa(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Pt).models[0]}function KM(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:Qa(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Pt).models}function zy(t,e){return Gy(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Gy(t,e,r,n,i,a){var o,s=5;if(ft(t))return $e.Not;var l,u;if(n){var f=n[a];j(f)?(l=f.name,u=f.type):q(f)&&(l=f)}if(u!=null)return u==="ordinal"?$e.Must:$e.Not;if(e===Ze){var c=t;if(r===Yn){for(var v=c[a],h=0;h<(v||[]).length&&h<s;h++)if((o=S(v[i+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var d=c[i+h];if(d&&(o=S(d[a]))!=null)return o}}else if(e===kt){var p=t;if(!l)return $e.Not;for(var h=0;h<p.length&&h<s;h++){var g=p[h];if(g&&(o=S(g[l]))!=null)return o}}else if(e===Xt){var m=t;if(!l)return $e.Not;var v=m[l];if(!v||ft(v))return $e.Not;for(var h=0;h<v.length&&h<s;h++)if((o=S(v[h]))!=null)return o}else if(e===_t)for(var y=t,h=0;h<y.length&&h<s;h++){var g=y[h],_=Za(g);if(!W(_))return $e.Not;if((o=S(_[a]))!=null)return o}function S(b){var w=q(b);if(b!=null&&isFinite(Number(b))&&b!=="")return w?$e.Might:$e.Not;if(w&&b!=="-")return $e.Must}return $e.Not}var bl=(function(){function t(e){this.data=e.data||(e.sourceFormat===Xt?{}:[]),this.sourceFormat=e.sourceFormat||Pm,this.seriesLayoutBy=e.seriesLayoutBy||qt,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&zy(this,n)===$e.Must&&(i.type="ordinal")}}return t})();function ch(t){return t instanceof bl}function hh(t,e,r){r=r||Hy(t);var n=e.seriesLayoutBy,i=QM(t,r,n,e.sourceHeader,e.dimensions),a=new bl({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:oe(e)});return a}function Vy(t){return new bl({data:t,sourceFormat:ft(t)?an:_t})}function jM(t){return new bl({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:oe(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Hy(t){var e=Pm;if(ft(t))e=an;else if(W(t)){t.length===0&&(e=Ze);for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i!=null){if(W(i)||ft(i)){e=Ze;break}else if(j(i)){e=kt;break}}}}else if(j(t)){for(var a in t)if(tt(t,a)&&ut(t[a])){e=Xt;break}}return e}function QM(t,e,r,n,i){var a,o;if(!t)return{dimensionsDefine:Uy(i),startIndex:o,dimensionsDetectedCount:a};if(e===Ze){var s=t;n==="auto"||n==null?Wy(function(u){u!=null&&u!=="-"&&(q(u)?o==null&&(o=1):o=0)},r,s,10):o=me(n)?n:n?1:0,!i&&o===1&&(i=[],Wy(function(u,f){i[f]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===Yn?s.length:s[0]?s[0].length:null}else if(e===kt)i||(i=JM(t));else if(e===Xt)i||(i=[],I(t,function(u,f){i.push(f)}));else if(e===_t){var l=Za(t[0]);a=W(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Uy(i),dimensionsDetectedCount:a}}function JM(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return ce(r)}function Uy(t){if(t){var e=te();return $(t,function(r,n){r=j(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=e.get(i.name);return a?i.name+="-"+a.count++:e.set(i.name,{count:1}),i})}}function Wy(t,e,r,n){if(e===Yn)for(var i=0;i<r.length&&i<n;i++)t(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)t(a[i],i)}function Yy(t){var e=t.sourceFormat;return e===kt||e===Xt}var Qn,Jn,ei,ti,$y,Xy,qy=(function(){function t(e,r){var n=ch(e)?e:Vy(e);this._source=n;var i=this._data=n.data,a=n.sourceFormat;n.seriesLayoutBy,a===an&&(this._offset=0,this._dimSize=r,this._data=i),Xy(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=(function(){var e=t.prototype;e.pure=!1,e.persistent=!0})(),t.internalField=(function(){var e;Xy=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,v=l.dimensionsDefine,h=$y[dh(u,f)];if(z(o,h),u===an)o.getItem=r,o.count=i,o.fillStorage=n;else{var d=Ky(u,f);o.getItem=de(d,null,s,c,v);var p=Qy(u,f);o.count=de(p,null,s,c,v)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},n=function(o,s,l,u){for(var f=this._data,c=this._dimSize,v=0;v<c;v++){for(var h=u[v],d=h[0]==null?1/0:h[0],p=h[1]==null?-1/0:h[1],g=s-o,m=l[v],y=0;y<g;y++){var _=f[y*c+v];m[o+y]=_,_<d&&(d=_),_>p&&(p=_)}h[0]=d,h[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};$y=(e={},e[Ze+"_"+qt]={pure:!0,appendData:a},e[Ze+"_"+Yn]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[kt]={pure:!0,appendData:a},e[Xt]={pure:!0,appendData:function(o){var s=this._data;I(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[_t]={appendData:a},e[an]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),t})(),wl=function(t){W(t)||mm("series.data or dataset.source must be an array.")};Qn={},Qn[Ze+"_"+qt]=wl,Qn[Ze+"_"+Yn]=wl,Qn[kt]=wl,Qn[Xt]=function(t,e){for(var r=0;r<e.length;r++){var n=e[r].name;n==null&&mm("dimension name must not be null/undefined.")}},Qn[_t]=wl;var Zy=function(t,e,r,n){return t[n]},eI=(Jn={},Jn[Ze+"_"+qt]=function(t,e,r,n){return t[n+e]},Jn[Ze+"_"+Yn]=function(t,e,r,n,i){n+=e;for(var a=i||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},Jn[kt]=Zy,Jn[Xt]=function(t,e,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?t[s]:null;a[o]=l?l[n]:null}return a},Jn[_t]=Zy,Jn);function Ky(t,e){var r=eI[dh(t,e)];return r}var jy=function(t,e,r){return t.length},tI=(ei={},ei[Ze+"_"+qt]=function(t,e,r){return Math.max(0,t.length-e)},ei[Ze+"_"+Yn]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},ei[kt]=jy,ei[Xt]=function(t,e,r){var n=r[0].name,i=n!=null?t[n]:null;return i?i.length:0},ei[_t]=jy,ei);function Qy(t,e){var r=tI[dh(t,e)];return r}var vh=function(t,e,r){return t[e]},rI=(ti={},ti[Ze]=vh,ti[kt]=function(t,e,r){return t[r]},ti[Xt]=vh,ti[_t]=function(t,e,r){var n=Za(t);return n instanceof Array?n[e]:n},ti[an]=vh,ti);function Jy(t){var e=rI[t];return e}function dh(t,e){return t===Ze?t+"_"+e:t}function $i(t,e,r){if(t){var n=t.getRawDataItem(e);if(n!=null){var i=t.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=i.getDimensionProperty(o);return Jy(a)(n,o,s)}else{var l=n;return a===_t&&(l=Za(n)),l}}}}var nI=(function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t})();function iI(t,e){var r={},n=r.encode={},i=te(),a=[],o=[],s={};I(t.dimensions,function(v){var h=t.getDimensionInfo(v),d=h.coordDim;if(d){var p=h.coordDimIndex;ph(n,d)[p]=v,h.isExtraCoord||(i.set(d,1),oI(h.type)&&(a[0]=v),ph(s,d)[p]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(v)}Lm.each(function(g,m){var y=ph(n,m),_=h.otherDims[m];_!=null&&_!==!1&&(y[_]=h.name)})});var l=[],u={};i.each(function(v,h){var d=n[h];u[h]=d[0],l=l.concat(d)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=$(l,function(v){return t.getDimensionInfo(v).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new nI(s,e),r}function ph(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function aI(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function oI(t){return!(t==="ordinal"||t==="time")}var Tl=(function(){function t(e){this.otherDims={},e!=null&&z(this,e)}return t})();function xl(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!me(t)&&t!=null&&t!=="-"&&(t=+Oi(t)),t==null||t===""?NaN:Number(t))}te({number:function(t){return parseFloat(t)},time:function(t){return+Oi(t)},trim:function(t){return q(t)?hr(t):t}});var sI=(function(){function t(e,r){var n=e==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var n=me(e)?e:Ks(e),i=me(r)?r:Ks(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=q(e),l=q(r);s&&(n=l?e:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t})();function e0(t){var e="",r=-1/0,n=-1/0,i=1/0,a=1/0;return t&&(t.g!=null&&(e+="G"+t.g,r=t.g),t.ge!=null&&(e+="GE"+t.ge,n=t.ge),t.l!=null&&(e+="L"+t.l,i=t.l),t.le!=null&&(e+="LE"+t.le,a=t.le)),{key:e,g:r,ge:n,l:i,le:a}}function t0(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var lI=typeof Uint32Array===Bi?Array:Uint32Array,uI=typeof Uint16Array===Bi?Array:Uint16Array,r0=typeof Int32Array===Bi?Array:Int32Array,n0=typeof Float64Array===Bi?Array:Float64Array,i0={float:n0,int:r0,ordinal:Array,number:Array,time:n0},gh;function Xi(t){return t>65535?lI:uI}function fI(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function a0(t,e,r,n,i){var a=i0[r||"float"];if(i){var o=t[e],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(n)}var mh=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=te()}return t.prototype.initData=function(e,r,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),a=this.defaultDimValueGetter=gh[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],Yy(i),this._dimensions=$(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(e);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(e,a),this._chunks[a]=new i0[r||"float"](this._rawCount),this._rawExtent[a]=Et(),a},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],i=this._dimensions[e],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[e]=Et());for(var l=a[e],u=o;u<s;u++){var f=n[u]=r.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],n=r.ordinalMeta;return n},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,n=this.count();r.appendData(e);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<a;u++){var f=i[u];a0(n,u,f.type,l,!0)}for(var c=[],v=s;v<l;v++)for(var h=v-s,d=0;d<a;d++){var f=i[d],p=gh.arrayRows.call(this,e[h]||c,f.property,h,d);n[d][v]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=$(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=Et()),a0(a,f,c.type,r,n)}if(i.fillStorage)i.fillStorage(e,r,a,l);else for(var v=[],h=e;h<r;h++){v=i.getItem(h,v);for(var d=0;d<s;d++){var p=a[d],g=this._dimValueGetter(v,u[d],h,d);p[h]=g;var m=l[d];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],i=[];if(r==null){r=e,e=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=e;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(i){isNaN(i)||r.push(i)}),Sc(r);var n=this.count();return n===0?0:n%2===1?r[(n-1)/2]:(r[n/2]+r[n/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&n<this._count&&n===e)return e;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<e)i=o+1;else if(r[o]>e)a=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){e=new n(i);for(var a=0;a<i;a++)e[a]=r[a]}else e=new n(r.buffer,0,i)}else{var n=Xi(this._rawCount);e=new n(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=Xi(n._rawCount),o=new a(i),s=[],l=e.length,u=0,f=e[0],c=n._chunks,v=0;v<i;v++){var h=void 0,d=n.getRawIndex(v);if(l===0)h=r(v);else if(l===1){var p=c[f][d];h=r(p,v)}else{for(var g=0;g<l;g++)s[g]=c[e[g]][d];s[g]=v,h=r.apply(null,s)}h&&(o[u++]=d)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var i=ce(e),a=i.length;if(!a)return this;var o=r.count(),s=Xi(r._rawCount),l=new s(o),u=0,f=i[0],c=e[f][0],v=e[f][1],h=r._chunks,d=!1;if(!r._indices){var p=0;if(a===1){for(var g=h[i[0]],m=0;m<n;m++){var y=g[m];(y>=c&&y<=v||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(a===2){for(var g=h[i[0]],_=h[i[1]],S=e[i[1]][0],b=e[i[1]][1],m=0;m<n;m++){var y=g[m],w=_[m];(y>=c&&y<=v||isNaN(y))&&(w>=S&&w<=b||isNaN(w))&&(l[u++]=p),p++}d=!0}}if(!d)if(a===1)for(var m=0;m<o;m++){var T=r.getRawIndex(m),y=h[i[0]][T];(y>=c&&y<=v||isNaN(y))&&(l[u++]=T)}else for(var m=0;m<o;m++){for(var C=!0,T=r.getRawIndex(m),D=0;D<a;D++){var x=i[D],y=h[x][T];(y<e[x][0]||y>e[x][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(m))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var n=this.clone(e);return this._updateDims(n,e,r),n},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,n){for(var i=e._chunks,a=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<r.length;f++)u[r[f]]=Et();for(var c=0;c<s;c++){for(var v=e.getRawIndex(c),h=0;h<o;h++)l[h]=i[r[h]][v];l[o]=c;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var p=r[f],g=d[f],m=u[p],y=i[p];y&&(y[v]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),i=n._chunks,a=i[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,v,h=new(Xi(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),m=(g+p)/2,y=0,_=p;_<g;_++){var S=this.getRawIndex(_),b=a[S];isNaN(b)||(y+=b)}y/=g-p;var w=d,T=Math.min(d+l,o),C=d-1,D=a[u];f=-1,v=w;for(var x=-1,A=0,_=w;_<T;_++){var S=this.getRawIndex(_),b=a[S];if(isNaN(b)){A++,x<0&&(x=S);continue}c=Math.abs((C-m)*(b-D)-(C-_)*(y-D)),c>f&&(f=c,v=S)}A>0&&A<T-w&&(h[s++]=Math.min(x,v),v=Math.max(x,v)),h[s++]=v,u=v}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},t.prototype.minmaxDownSample=function(e,r){for(var n=this.clone([e],!0),i=n._chunks,a=Math.floor(1/r),o=i[e],s=this.count(),l=new(Xi(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var c=f,v=o[this.getRawIndex(c)],h=f,d=o[this.getRawIndex(h)],p=a;f+a>s&&(p=s-f);for(var g=0;g<p;g++){var m=this.getRawIndex(f+g),y=o[m];y<v&&(v=y,c=f+g),y>d&&(d=y,h=f+g)}var _=this.getRawIndex(c),S=this.getRawIndex(h);c<h?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},t.prototype.downSample=function(e,r,n,i){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[e],f=this.count(),c=a._rawExtent[e]=Et(),v=new(Xi(this._rawCount))(Math.ceil(f/l)),h=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var m=n(s),y=this.getRawIndex(Math.min(d+i(s,m)||0,f-1));u[y]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),v[h++]=y}return a._count=h,a._indices=v,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[e[0]][s],a);break;case 2:r(i[e[0]][s],i[e[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[e[l]][s];u[l]=a,r.apply(null,u)}}},t.prototype.getDataExtent=function(e,r){var n=this._chunks[e],i=Et();if(!n)return i;var a=this.count(),o=!this._indices&&!r;if(o)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=e0(r),f=u.key,c=l[f];if(c)return c.slice();for(var v=i[0],h=i[1],d=0;d<a;d++){var p=this.getRawIndex(d),g=n[p];(!r||t0(u,g))&&(g<v&&(v=g),g>h&&(h=g))}return l[f]=[v,h]},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},t.prototype.clone=function(e,r){var n=new t,i=this._chunks,a=e&&qr(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?fI(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=oe(this._extent),e._rawExtent=oe(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var n=this._indices.length;r=new e(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=(function(){function e(r,n,i,a){return xl(r[a],this._dimensions[a])}gh={arrayRows:e,objectRows:function(r,n,i,a){return xl(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return xl(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}})(),t})(),cI=Se(),hI={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},o0=(function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=l0(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return Z(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=Yy(this.source),n=!u0(e),i="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(l=r?v.name:null,u=v.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=hI[u]||"f",f&&(i+=f.uid),i+="$"}var h=this.source,d=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:a,hash:d}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}e.push(i)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function s0(t){return t instanceof o0}function yh(t){for(var e=te(),r=0;r<(t||[]).length;r++){var n=t[r],i=j(n)?n.name:n;i!=null&&e.get(i)==null&&e.set(i,r)}return e}function l0(t){var e=cI(t);return e.dimNameMap||(e.dimNameMap=yh(t.dimensionsDefine))}function u0(t){return t>30}var uo=j,ln=$,vI=typeof Int32Array>"u"?Array:Int32Array,dI="e\0\0",f0=-1,pI=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],gI=["_approximateExtent"],c0,Cl,fo,co,_h,ho,Sh,h0=(function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;s0(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],v=q(c)?new Tl({name:c}):c instanceof Tl?c:new Tl(c),h=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=h,v.coordDimIndex=0);var d=v.otherDims=v.otherDims||{};o.push(h),a[h]=v,u[h]!=null&&(l=!0),v.createInvertedIndices&&(s[h]=[]),i&&(v.storeDimIndex=f),d.itemName===0&&(this._nameDimIdx=v.storeDimIndex),d.itemId===0&&(this._idDimIdx=v.storeDimIndex)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=te();I(o,function(g){p.set(a[g].storeDimIndex,g)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(me(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,n=r.encode[e];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,n){var i=this,a;if(e instanceof mh&&(a=e),!a){var o=this.dimensions,s=ch(e)||ut(e)?new qy(e,o.length):e;a=new mh;var l=ln(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=iI(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var n=this._store.appendValues(e,r&&r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&Sh(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==an&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===_t;if(l&&!i.pure)for(var u=[],f=e;f<r;f++){var c=i.getItem(f,u);if(!this.hasItemOption&&tD(c)&&(this.hasItemOption=!0),c){var v=c.name;a[f]==null&&v!=null&&(a[f]=wr(v,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=wr(h,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)Sh(this,f);c0(this)}},t.prototype.getApproximateExtent=function(e,r){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),r)},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){uo(e)?z(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=fo(this,this._nameDimIdx,r)),n==null&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},t.prototype.getId=function(e){return Cl(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var n=this,i=this._store;return W(e)?i.getValues(ln(e,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var n=e&&this._invertedIndicesMap[e],i=n&&n[r];return i==null||isNaN(i)?f0:i},t.prototype.each=function(e,r,n){ee(e)&&(n=r,r=e,e=[]);var i=n||this,a=ln(co(e),this._getStoreDimIndex,this);this._store.each(a,i?de(r,i):r)},t.prototype.filterSelf=function(e,r,n){ee(e)&&(n=r,r=e,e=[]);var i=n||this,a=ln(co(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?de(r,i):r),this},t.prototype.selectRange=function(e){var r=this,n={},i=ce(e);return I(i,function(a){var o=r._getStoreDimIndex(a);n[o]=e[a]}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){ee(e)&&(n=r,r=e,e=[]),n=n||this;var i=[];return this.each(e,function(){i.push(r&&r.apply(this,arguments))},n),i},t.prototype.map=function(e,r,n,i){var a=n||i||this,o=ln(co(e),this._getStoreDimIndex,this),s=ho(this);return s._store=this._store.map(o,a?de(r,a):r),s},t.prototype.modify=function(e,r,n,i){var a=n||i||this,o=ln(co(e),this._getStoreDimIndex,this);this._store.modify(o,a?de(r,a):r)},t.prototype.downSample=function(e,r,n,i){var a=ho(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,n,i),a},t.prototype.minmaxDownSample=function(e,r){var n=ho(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),n},t.prototype.lttbDownSample=function(e,r){var n=ho(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),n},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,n=this.getRawDataItem(e);return new xe(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new XM(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Cl(e,n)},function(n){return Cl(r,n)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},uo(e)?z(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var n=this._itemVisuals[e],i=n&&n[r];return i??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[r];return a==null&&(a=this.getVisual(r),W(a)?a=a.slice():uo(a)&&(a=z({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,uo(r)?z(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){uo(e)?z(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?z(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var n=this.hostModel&&this.hostModel.seriesIndex;Pc(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){I(this._graphicEls,function(n,i){n&&e&&e.call(r,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:ln(this.dimensions,this._getDimInfo,this),this.hostModel)),_h(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];ee(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(vf(arguments)))})},t.internalField=(function(){c0=function(e){var r=e._invertedIndicesMap;I(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new vI(o.categories.length);for(var l=0;l<n.length;l++)n[l]=f0;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},fo=function(e,r,n){return wr(e._getCategory(r,n),null)},Cl=function(e,r){var n=e._idList[r];return n==null&&e._idDimIdx!=null&&(n=fo(e,e._idDimIdx,r)),n==null&&(n=dI+r),n},co=function(e){return W(e)||(e=e!=null?[e]:[]),e},ho=function(e){var r=new t(e._schema?e._schema:ln(e.dimensions,e._getDimInfo,e),e.hostModel);return _h(r,e),r},_h=function(e,r){I(pI.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,I(gI,function(n){e[n]=oe(r[n])}),e._calculationInfo=z({},r._calculationInfo)},Sh=function(e,r){var n=e._nameList,i=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=fo(e,a,r)),l==null&&o!=null&&(i[r]=l=fo(e,o,r)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[r]=l}}})(),t})();function v0(t,e){ch(t)||(t=Vy(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=te(),a=[],o=mI(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&u0(o),l=n===t.dimensionsDefine,u=l?l0(t):yh(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=te(f),v=new r0(o),h=0;h<v.length;h++)v[h]=-1;function d(D){var x=v[D];if(x<0){var A=n[D],L=j(A)?A:{name:A},M=new Tl,P=L.name;P!=null&&u.get(P)!=null&&(M.name=M.displayName=P),L.type!=null&&(M.type=L.type),L.displayName!=null&&(M.displayName=L.displayName);var E=a.length;return v[D]=E,M.storeDimIndex=D,a.push(M),M}return a[x]}if(!s)for(var h=0;h<o;h++)d(h);c.each(function(D,x){var A=nt(D).slice();if(A.length===1&&!q(A[0])&&A[0]<0){c.set(x,!1);return}var L=c.set(x,[]);I(A,function(M,P){var E=q(M)?u.get(M):M;E!=null&&E<o&&(L[P]=E,g(d(E),x,P))})});var p=0;I(r,function(D){var x,A,L,M;if(q(D))x=D,M={};else{M=D,x=M.name;var P=M.ordinalMeta;M.ordinalMeta=null,M=z({},M),M.ordinalMeta=P,A=M.dimsDef,L=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var E=c.get(x);if(E!==!1){if(E=nt(E),!E.length)for(var k=0;k<(A&&A.length||1);k++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&E.push(p++)}I(E,function(O,R){var N=d(O);if(l&&M.type!=null&&(N.type=M.type),g(le(N,M),x,R),N.name==null&&A){var F=A[R];!j(F)&&(F={name:F}),N.name=N.displayName=F.name,N.defaultTooltip=F.defaultTooltip}L&&le(N.otherDims,L)})}});function g(D,x,A){Lm.get(x)!=null?D.otherDims[x]=A:(D.coordDim=x,D.coordDimIndex=A,i.set(x,!0))}var m=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=m?y||1:0;var S=m||"value";function b(D){D.name==null&&(D.name=D.coordDim)}if(s)I(a,function(D){b(D)}),a.sort(function(D,x){return D.storeDimIndex-x.storeDimIndex});else for(var w=0;w<o;w++){var T=d(w),C=T.coordDim;C==null&&(T.coordDim=yI(S,i,_),T.coordDimIndex=0,(!m||y<=0)&&(T.isExtraCoord=!0),y--),b(T),T.type==null&&(zy(t,w)===$e.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return Mc(a,function(D){return D.name},function(D,x){x>0&&(D.name=D.name+(x-1))}),new o0({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function mI(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return I(e,function(a){var o;j(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function yI(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var Al={},bh={},wh=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=n(Al),this._normalMasterList=n(bh);function n(i,a){var o=[];return I(i,function(s,l){var u=s.create(e,r);o=o.concat(u||[])}),o}},t.prototype.update=function(e,r){I(this._normalMasterList,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e==="matrix"||e==="calendar"){Al[e]=r;return}bh[e]=r},t.get=function(e){return bh[e]||Al[e]},t})();function _I(t){return!!Al[t]}var SI=1,d0=2;function bI(t){p0.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}var p0=te();function g0(t){var e=t.getShallow("coord",!0),r=SI;if(e==null){var n=p0.get(t.type);n&&n.getCoord2&&(r=d0,e=n.getCoord2(t))}return{coord:e,from:r}}var qi=0,Dl=1,wI=2;function TI(t,e){var r=t.getShallow("coordinateSystem"),n=t.getShallow("coordinateSystemUsage",!0),i=qi;if(r){var a=t.mainType==="series";n==null&&(n=a?"data":"box"),n==="data"?(i=Dl,a||(i=qi)):n==="box"&&(i=wI,!a&&!_I(r)&&(i=qi))}return{coordSysType:r,kind:i}}function xI(t){var e=t.targetModel,r=t.coordSysType,n=t.coordSysProvider,i=t.isDefaultDataCoordSys,a=TI(e),o=a.kind,s=a.coordSysType;if(i&&o!==Dl&&(o=Dl,s=r),o===qi||s!==r)return qi;var l=n(r,e);return l?(o===Dl?e.coordinateSystem=l:e.boxCoordinateSystem=l,o):qi}var CI=(function(){function t(e){this.coordSysDims=[],this.axisMap=te(),this.categoryAxisMap=te(),this.coordSysName=e}return t})();function AI(t){var e=t.get("coordinateSystem"),r=new CI(e),n=DI[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var DI={cartesian2d:function(t,e,r,n){var i=t.getReferringComponents("xAxis",Pt).models[0],a=t.getReferringComponents("yAxis",Pt).models[0];e.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),Zi(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),Zi(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var i=t.getReferringComponents("singleAxis",Pt).models[0];e.coordSysDims=["single"],r.set("single",i),Zi(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var i=t.getReferringComponents("polar",Pt).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Zi(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),Zi(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var i=t.ecModel,a=i.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();I(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),Zi(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(t,e,r,n){var i=t.getReferringComponents("matrix",Pt).models[0];e.coordSysDims=["x","y"];var a=i.getDimensionModel("x"),o=i.getDimensionModel("y");r.set("x",a),r.set("y",o),n.set("x",a),n.set("y",o)}};function Zi(t){return t.get("type")==="category"}function MI(t,e,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;II(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,c,v,h=!0;function d(S){return S.type!=="ordinal"&&S.type!=="time"}if(I(a,function(S,b){q(S)&&(a[b]=S={name:S}),d(S)||(h=!1)}),I(a,function(S,b){l&&!S.isExtraCoord&&(!n&&!u&&S.ordinalMeta&&(u=S),!f&&d(S)&&(!h||S.coordDim!=="x"&&S.coordDim!=="angle")&&(!i||i===S.coordDim)&&(f=S))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+t.id,v="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var p=f.coordDim,g=f.type,m=0;I(a,function(S){S.coordDim===p&&m++});var y={name:c,coordDim:p,coordDimIndex:m,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:v,coordDim:v,coordDimIndex:m+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(v,g),_.storeDimIndex=s.ensureCalculationDimension(c,g)),o.appendCalculationDimension(y),o.appendCalculationDimension(_)):(a.push(y),a.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:c}}function II(t){return!s0(t.schema)}function Ki(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function LI(t,e){return Ki(t,e)?t.getCalculationInfo("stackResultDimension"):e}function PI(t,e){var r=t.get("coordinateSystem"),n=wh.get(r),i;return e&&e.coordSysDims&&(i=$(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=aI(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function EI(t,e,r){var n,i;return r&&I(t,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(t[n].otherDims.itemName=0),n}function Ml(t,e,r){r=r||{};var n=e.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===_t;var o=AI(e),s=PI(e,o),l=r.useEncodeDefaulter,u=ee(l)?l:l?Oe(ZM,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=v0(i,f),v=EI(c.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(c),d=MI(e,{schema:c,store:h}),p=new h0(c,e);p.setCalculationInfo(d);var g=v!=null&&kI(i)?function(m,y,_,S){return S===v?_:this.defaultDimValueGetter(m,y,_,S)}:null;return p.hasItemOption=!1,p.initData(a?i:h,null,g),p}function kI(t){if(t.sourceFormat===_t){var e=RI(t.data||[]);return!W(Za(e))}}function RI(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var OI=Math.round(Math.random()*10);function vo(t){return[t||"",OI++].join("_")}function NI(t){var e={};t.registerSubTypeDefaulter=function(r,n){var i=vr(r);e[i.main]=n},t.determineSubType=function(r,n){var i=n.type;if(!i){var a=vr(r).main;t.hasSubTypes(r)&&e[a]&&(i=e[a](n))}return i}}function BI(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,c=u.noEntryList,v={};for(I(a,function(y){v[y]=!0});c.length;){var h=c.pop(),d=f[h],p=!!v[h];p&&(s.call(l,h,d.originalDeps.slice()),delete v[h]),I(d.successor,p?m:g)}I(v,function(){var y="";throw new Error(y)});function g(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function m(y){v[y]=!0,g(y)}};function r(a){var o={},s=[];return I(a,function(l){var u=n(o,l),f=u.originalDeps=e(l),c=i(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),I(c,function(v){fe(u.predecessor,v)<0&&u.predecessor.push(v);var h=n(o,v);fe(h.successor,v)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return I(a,function(l){fe(o,l)>=0&&s.push(l)}),s}}function m0(t,e){return be(be({},t,!0),e,!0)}var FI=Math.log(2);function Th(t,e,r,n,i,a){var o=n+"-"+i,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~i)/FI);return t[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,v=0,h=0;v<s;v++){var d=1<<v;d&i||(c+=(h%2?-1:1)*t[r][v]*Th(t,e-1,f,u,i|d,a),h++)}return a[o]=c,c}function y0(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},i=Th(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Th(r,7,o===0?1:0,1<<o,1<<s,n)/i*e[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var Il="___zrEVENTSAVED",xh=[];function zI(t,e,r,n,i){return Ch(xh,e,n,i,!0)&&Ch(t,r,xh[0],xh[1])}function GI(t,e){t&&r(t),e&&r(e);function r(n){var i=n[Il];i&&(i.clearMarkers&&i.clearMarkers(),delete n[Il])}}function Ch(t,e,r,n,i){if(e.getBoundingClientRect&&ie.domSupported&&!_0(e)){var a=e[Il]||(e[Il]={}),o=VI(e,a),s=HI(o,a,i);if(s)return s(t,r,n),!0}return!1}function VI(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){I(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function HI(t,e,r){for(var n=r?"invTrans":"trans",i=e[n],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=t[u].getBoundingClientRect(),c=2*u,v=f.left,h=f.top;o.push(v,h),l=l&&a&&v===a[c]&&h===a[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=r?y0(s,o):y0(o,s))}function _0(t){return t.nodeName.toUpperCase()==="CANVAS"}var UI=/([&<>"'])/g,WI={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function it(t){return t==null?"":(t+"").replace(UI,function(e,r){return WI[r]})}const YI={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},$I={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Ll="ZH",Ah="EN",ji=Ah,Pl={},Dh={},S0=ie.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ji).toUpperCase();return t.indexOf(Ll)>-1?Ll:ji})():ji;function b0(t,e){t=t.toUpperCase(),Dh[t]=new xe(e),Pl[t]=e}function XI(t){if(q(t)){var e=Pl[t.toUpperCase()]||{};return t===Ll||t===Ah?oe(e):be(oe(e),oe(Pl[ji]),!1)}else return be(oe(t),oe(Pl[ji]),!1)}function qI(t){return Dh[t]}function ZI(){return Dh[ji]}b0(Ah,YI),b0(Ll,$I);var KI=null;function at(){return KI}function w0(t,e){var r=at(),n=e.breakOption,i=e.breakParsed;return!i&&r&&(i=r.parseAxisBreakOption(n,t)),i}function El(t){var e=t.brk;return e?e.breaks:[]}function kl(t){var e=t.brk;return e?e.hasBreaks():!1}var Mh=1e3,Ih=Mh*60,po=Ih*60,Nt=po*24,T0=Nt*365,jI={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Rl={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},QI="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Ol="{yyyy}-{MM}-{dd}",x0={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ol,hour:Ol+" "+Rl.hour,minute:Ol+" "+Rl.minute,second:Ol+" "+Rl.second,millisecond:QI},St=["year","month","day","hour","minute","second","millisecond"],JI=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function eL(t){return!q(t)&&!ee(t)?tL(t):t}function tL(t){t=t||{};var e={},r=!0;return I(St,function(n){r&&(r=t[n]==null)}),I(St,function(n,i){var a=t[n];e[n]={};for(var o=null,s=i;s>=0;s--){var l=St[s],u=j(a)&&!W(a)?a[l]:a,f=void 0;W(u)?(f=u.slice(),o=f[0]||""):q(u)?(o=u,f=[o]):(o==null?o=Rl[n]:jI[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),e[n][l]=f}}),e}function un(t,e){return t+="","0000".substr(0,e-t.length)+t}function go(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function rL(t){return t===go(t)}function nL(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Nl(t,e,r,n){var i=Oi(t),a=i[C0(r)](),o=i[Ph(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[Eh(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[kh(r)](),c=(f-1)%12+1,v=i[Rh(r)](),h=i[Oh(r)](),d=i[Nh(r)](),p=f>=12?"pm":"am",g=p.toUpperCase(),m=n instanceof xe?n:qI(n||S0)||ZI(),y=m.getModel("time"),_=y.get("month"),S=y.get("monthAbbr"),b=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,un(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,un(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,un(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,un(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,un(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,un(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,un(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,un(d,3)).replace(/{S}/g,d+"")}function iL(t,e,r,n,i){var a=null;if(q(r))a=r;else if(ee(r)){var o={time:t.time,level:t.time?t.time.level:0},s=at();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),a=r(t.value,e,o)}else{var l=t.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var f=Qi(t.value,i);a=r[f][f][0]}}return Nl(new Date(t.value),a,i,n)}function Qi(t,e){var r=Oi(t),n=r[Ph(e)]()+1,i=r[Eh(e)](),a=r[kh(e)](),o=r[Rh(e)](),s=r[Oh(e)](),l=r[Nh(e)](),u=l===0,f=u&&s===0,c=f&&o===0,v=c&&a===0,h=v&&i===1,d=h&&n===1;return d?"year":h?"month":v?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Lh(t,e,r){switch(e){case"year":t[A0(r)](0);case"month":t[D0(r)](1);case"day":t[M0(r)](0);case"hour":t[I0(r)](0);case"minute":t[L0(r)](0);case"second":t[P0(r)](0)}return t}function C0(t){return t?"getUTCFullYear":"getFullYear"}function Ph(t){return t?"getUTCMonth":"getMonth"}function Eh(t){return t?"getUTCDate":"getDate"}function kh(t){return t?"getUTCHours":"getHours"}function Rh(t){return t?"getUTCMinutes":"getMinutes"}function Oh(t){return t?"getUTCSeconds":"getSeconds"}function Nh(t){return t?"getUTCMilliseconds":"getMilliseconds"}function aL(t){return t?"setUTCFullYear":"setFullYear"}function A0(t){return t?"setUTCMonth":"setMonth"}function D0(t){return t?"setUTCDate":"setDate"}function M0(t){return t?"setUTCHours":"setHours"}function I0(t){return t?"setUTCMinutes":"setMinutes"}function L0(t){return t?"setUTCSeconds":"setSeconds"}function P0(t){return t?"setUTCMilliseconds":"setMilliseconds"}function E0(t){if(!KA(t))return q(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function k0(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Bl=df;function Bh(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&hr(f)?f:"-"}function a(f){return Lt(f)}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?Oi(t):t;if(isNaN(+l)){if(s)return"-"}else return Nl(l,n,r)}if(e==="ordinal")return cf(t)?i(t):me(t)&&a(t)?t+"":"-";var u=Ks(t);return a(u)?E0(u):cf(t)?i(t):typeof t=="boolean"?t+"":"-"}var R0=["a","b","c","d","e","f","g"],Fh=function(t,e){return"{"+t+(e??"")+"}"};function O0(t,e,r){W(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=R0[a];t=t.replace(Fh(o),Fh(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(Fh(R0[l],s),r?it(u):u)}return t}function oL(t,e){var r=q(t)?{color:t,extraCssText:e}:t||{},n=r.color,i=r.type;e=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+it(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+it(n)+";"+(e||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function ri(t,e){return e=e||"transparent",q(t)?t:j(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function N0(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var Fl=I,sL=["left","right","top","bottom","width","height"],zl=[["width","left","right"],["height","top","bottom"]];function zh(t,e,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.childAt(u+1),v=c&&c.getBoundingRect(),h,d;if(t==="horizontal"){var p=f.width+(v?-v.x+f.x:0);h=a+p,h>n||l.newline?(a=0,h=p,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);d=o+g,d>i||l.newline?(a+=s+r,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=h+r:o=d+r)})}var mo=zh;Oe(zh,"vertical"),Oe(zh,"horizontal");function lL(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function uL(t,e){var r=Ji(t,e,{enableLayoutOnlyByCenter:!0}),n=t.getBoxLayoutParams(),i,a;if(r.type===yo.point)a=r.refPoint,i=Gr(n,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=W(o)?o:[o,o];i=Gr(n,r.refContainer),a=r.boxCoordFrom===d0?r.refPoint:[Q(s[0],i.width)+i.x,Q(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function fL(t,e){var r=uL(t,e),n=r.viewRect,i=r.center,a=t.get("radius");W(a)||(a=[0,a]);var o=Q(n.width,e.getWidth()),s=Q(n.height,e.getHeight()),l=Math.min(o,s),u=Q(a[0],l/2),f=Q(a[1],l/2);return{cx:i[0],cy:i[1],r0:u,r:f,viewRect:n}}function Gr(t,e,r){r=Bl(r||0);var n=e.width,i=e.height,a=Q(t.left,n),o=Q(t.top,i),s=Q(t.right,n),l=Q(t.bottom,i),u=Q(t.width,n),f=Q(t.height,i),c=r[2]+r[0],v=r[1]+r[3],h=t.aspect;switch(isNaN(u)&&(u=n-s-v-a),isNaN(f)&&(f=i-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(a)&&(a=n-s-u-v),isNaN(o)&&(o=i-l-f-c),t.left||t.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-v;break}switch(t.top||t.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=n-v-a-(s||0)),isNaN(f)&&(f=i-c-o-(l||0));var d=new ne((e.x||0)+a+r[3],(e.y||0)+o+r[0],u,f);return d.margin=r,d}var yo={rect:1,point:2};function Ji(t,e,r){var n,i,a,o=t.boxCoordinateSystem,s;if(o){var l=g0(t),u=l.coord,f=l.from;if(o.dataToLayout){a=yo.rect,s=f;var c=o.dataToLayout(u);n=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=yo.point,s=f,i=o.dataToPoint(u))}return a==null&&(a=yo.rect),a===yo.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),i=[n.x+n.width/2,n.y+n.height/2]),{type:a,refContainer:n,refPoint:i,boxCoordFrom:s}}function _o(t){var e=t.layoutMode||t.constructor.layoutMode;return j(e)?e:e?{type:e}:null}function fn(t,e,r){var n=r&&r.ignoreSize;!W(n)&&(n=[n,n]);var i=o(zl[0],0),a=o(zl[1],1);l(zl[0],t,i),l(zl[1],t,a);function o(u,f){var c={},v=0,h={},d=0,p=2;if(Fl(u,function(y){h[y]=t[y]}),Fl(u,function(y){tt(e,y)&&(c[y]=h[y]=e[y]),s(c,y)&&v++,s(h,y)&&d++}),n[f])return s(e,u[1])?h[u[2]]=null:s(e,u[2])&&(h[u[1]]=null),h;if(d===p||!v)return h;if(v>=p)return c;for(var g=0;g<u.length;g++){var m=u[g];if(!tt(c,m)&&tt(t,m)){c[m]=t[m];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){Fl(u,function(v){f[v]=c[v]})}}function So(t){return cL({},t)}function cL(t,e){return e&&t&&Fl(sL,function(r){tt(e,r)&&(t[r]=e[r])}),t}var hL=Se(),ye=(function(t){G(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.uid=vo("ec_cpt_model"),a}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=_o(this),a=i?So(r):{},o=n.getTheme();be(r,o.get(this.mainType)),be(r,this.getDefaultOption()),i&&fn(r,a,i)},e.prototype.mergeOption=function(r,n){be(this.option,r,!0);var i=_o(this);i&&fn(this.option,r,i)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!nC(r))return r.defaultOption;var n=hL(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=be(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return Qa(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){return lL(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=(function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),e})(xe);qp(ye,xe),gs(ye),NI(ye),BI(ye,vL);function vL(t){var e=[];return I(ye.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=$(e,function(r){return vr(r).main}),t!=="dataset"&&fe(e,"dataset")<=0&&e.unshift("dataset"),e}var B0=Se();Se();var Gh=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var i=nt(this.get("color",!0)),a=this.get("colorLayer",!0);return pL(this,B0,i,a,e,r,n)},t.prototype.clearColorPalette=function(){gL(this,B0)},t})();function dL(t,e){for(var r=t.length,n=0;n<r;n++)if(t[n].length>e)return t[n];return t[r-1]}function pL(t,e,r,n,i,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?r:dL(n,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%f.length,c}}function gL(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var mL=/\{@(.+?)\}/g,yL=(function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),i=this.getRawValue(e,r),a=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,v=c==="series",h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),i!=null&&W(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(e);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(ee(a))return l.status=r,l.dimensionIndex=i,a(l);if(q(a)){var f=O0(a,l);return f.replace(mL,function(c,v){var h=v.length,d=v;d.charAt(0)==="["&&d.charAt(h-1)==="]"&&(d=+d.slice(1,h-1));var p=$i(s,e,d);if(o&&W(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},t.prototype.getRawValue=function(e,r){return $i(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t})();function F0(t){var e,r;return j(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function bo(t){return new _L(t)}var _L=(function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var v=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!n&&(c||h<d)){var p=this._progress;if(W(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],h,d,l,u);else this._doProgress(p,h,d,l,u)}this._dueIndex=d;var m=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,n,i,a){z0.reset(r,n,i,a),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:z0.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),W(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t})(),z0=(function(){var t,e,r,n,i,a={reset:function(l,u,f,c){e=l,t=u,r=f,n=c,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var l=e%i*r+Math.ceil(e/i),u=e>=t?null:l<n?l:e;return e++,u}})(),SL=(function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return xl(e,r)},t})();function bL(t,e){var r=new SL,n=t.data,i=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==qt&&ht(o);var s=[],l={},u=t.dimensionsDefine;if(u)I(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";tt(l,m)&&ht(_),l[m]=y}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=Ky(i,qt);e.__isBuiltIn&&(r.getRawDataItem=function(p){return c(n,a,s,p)},r.getRawData=de(wL,null,t)),r.cloneRawData=de(TL,null,t);var v=Qy(i,qt);r.count=de(v,null,n,a,s);var h=Jy(i);r.retrieveValue=function(p,g){var m=c(n,a,s,p);return d(m,g)};var d=r.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return h(p,g,m.name)}};return r.getDimensionInfo=de(xL,null,s,l),r.cloneAllDimensionInfo=de(CL,null,s),r}function wL(t){var e=t.sourceFormat;if(!Vh(e)){var r="";ht(r)}return t.data}function TL(t){var e=t.sourceFormat,r=t.data;if(!Vh(e)){var n="";ht(n)}if(e===Ze){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(e===kt){for(var i=[],a=0,o=r.length;a<o;a++)i.push(z({},r[a]));return i}}function xL(t,e,r){if(r!=null){if(me(r)||!isNaN(r)&&!tt(e,r))return t[r];if(tt(e,r))return e[r]}}function CL(t){return oe(t)}var G0=te();function AL(t){t=oe(t);var e=t.type,r="";e||ht(r);var n=e.split(":");n.length!==2&&ht(r);var i=!1;n[0]==="echarts"&&(e=n[1],i=!0),t.__isBuiltIn=i,G0.set(e,t)}function DL(t,e,r){var n=nt(t),i=n.length,a="";i||ht(a);for(var o=0,s=i;o<s;o++){var l=n[o];e=ML(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function ML(t,e,r,n){var i="";e.length||ht(i),j(t)||ht(i);var a=t.type,o=G0.get(a);o||ht(i);var s=$(e,function(u){return bL(u,o)}),l=nt(o.transform({upstream:s[0],upstreamList:s,config:oe(t.config)}));return $(l,function(u,f){var c="";j(u)||ht(c),u.data||ht(c);var v=Hy(u.data);Vh(v)||ht(c);var h,d=e[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),h={seriesLayoutBy:qt,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else h={seriesLayoutBy:qt,sourceHeader:0,dimensions:u.dimensions};return hh(u.data,h,null)})}function Vh(t){return t===Ze||t===kt}var V0=(function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(Gl(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=ft(s)?an:_t,a=[];var c=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},h=Z(c.seriesLayoutBy,v.seriesLayoutBy)||null,d=Z(c.sourceHeader,v.sourceHeader),p=Z(c.dimensions,v.dimensions),g=h!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;i=g?[hh(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:p},l)]:[]}else{var m=e;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var _=m.get("source",!0);i=[hh(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";e.length!==1&&U0(a)}var o,s=[],l=[];return I(e,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&U0(c),s.push(f),l.push(u._getVersionSign())}),n?o=DL(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[jM(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var n=e[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Gl(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,n):(s=new mh,s.initData(new qy(r,e.length),e)),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Gl(e)){var r=fh(e);return r?[r.getSourceManager()]:[]}else return $(KM(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,i;if(Gl(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},t})();function H0(t){var e=t.option.transform;e&&vs(t.option.transform)}function Gl(t){return t.mainType==="series"}function U0(t){throw new Error(t)}var Y={color:{},darkColor:{},size:{}},Le=Y.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};z(Le,{primary:Le.neutral80,secondary:Le.neutral70,tertiary:Le.neutral60,quaternary:Le.neutral50,disabled:Le.neutral20,border:Le.neutral30,borderTint:Le.neutral20,borderShade:Le.neutral40,background:Le.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Le.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Le.neutral70,axisLineTint:Le.neutral40,axisTick:Le.neutral70,axisTickMinor:Le.neutral60,axisLabel:Le.neutral70,axisSplitLine:Le.neutral15,axisMinorSplitLine:Le.neutral05});for(var ni in Le)if(Le.hasOwnProperty(ni)){var W0=Le[ni];ni==="theme"?Y.darkColor.theme=Le.theme.slice():ni==="highlight"?Y.darkColor.highlight="rgba(255,231,130,0.4)":ni.indexOf("accent")===0?Y.darkColor[ni]=Uf(W0,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):Y.darkColor[ni]=Uf(W0,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)})}Y.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var IL="line-height:1";function Y0(t){var e=t.lineHeight;return e==null?IL:"line-height:"+it(e+"")+"px"}function $0(t,e){var r=t.color||Y.color.tertiary,n=t.fontSize||12,i=t.fontWeight||"400",a=t.color||Y.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+it(n+"")+"px;color:"+it(r)+";font-weight:"+it(i+""),valueStyle:"font-size:"+it(o+"")+"px;color:"+it(a)+";font-weight:"+it(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var LL=[0,10,20,30],PL=["",`
8
+ `){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=ng(c,h.charCodeAt(0)),p=n?!1:!RC(h);if(a.length?f+d>r:i+f+d>r){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=h,f=d)):p?(a.push(l),o.push(u),l=h,u=d):(a.push(h),o.push(d));continue}f+=d,p?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}function fg(t,e,r,n,i,a){if(t.baseX=r,t.baseY=n,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;ne.set(cg,Di(r,o,i),Mn(n,s,a),o,s),ne.intersect(e,cg,null,hg);var l=hg.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=Di(l.x,l.width,i,!0),t.baseY=Mn(l.y,l.height,a,!0)}}var cg=new ne(0,0,0,0),hg={outIntersectRect:{},clamp:!0};function kf(t){return t!=null?t+="":t=""}function OC(t){var e=kf(t.text),r=t.font,n=gr(pr(r),e),i=Ra(r);return Rf(t,n,i,null)}function Rf(t,e,r,n){var i=new ne(Di(t.x||0,e,t.textAlign),Mn(t.y||0,r,t.textBaseline),e,r),a=n??(vg(t)?t.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function vg(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var dg=Ia,pg=5e-5;function Ln(t){return t>pg||t<-pg}var Pn=[],Mi=[],Of=dr(),Nf=Math.abs,Oa=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return NC(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return Ln(this.rotation)||Ln(this.x)||Ln(this.y)||Ln(this.scaleX-1)||Ln(this.scaleY-1)||Ln(this.skewX)||Ln(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(dg(n),this.invTransform=null);return}n=n||dr(),r?this.getLocalTransform(n):dg(n),e&&(r?La(n,e,n):yf(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||dr(),Pa(this.invTransform,n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Pn);var n=Pn[0]<0?-1:1,i=Pn[1]<0?-1:1,a=((Pn[0]-n)*r+n)/Pn[0]||0,o=((Pn[1]-i)*r+i)/Pn[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||dr(),La(Mi,e.invTransform,r),r=Mi);var n=this.originX,i=this.originY;(n||i)&&(Of[4]=n,Of[5]=i,La(Mi,r,Of),Mi[4]-=n,Mi[5]-=i,r=Mi),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],i=this.invTransform;return i&&wt(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&wt(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&Nf(e[0]-1)>1e-10&&Nf(e[3]-1)>1e-10?Math.sqrt(Nf(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){Na(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,v=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var d=n+s,p=i+l;r[4]=-d*a-v*p*o,r[5]=-p*o-h*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=v*o,u&&Sf(r,r,u),r[4]+=n+f,r[5]+=i+c,r},t.initDefaultProps=(function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),t})(),NC=Oa.getLocalTransform,Ss=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Na(t,e){return Yx(t,e,Ss)}var Ba={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Ba.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?Ba.bounceIn(t*2)*.5:Ba.bounceOut(t*2-1)*.5+.5}},bs=Math.pow,Zr=Math.sqrt,ws=1e-8,gg=1e-4,mg=Zr(3),Ts=1/3,mr=wi(),Tt=wi(),Ii=wi();function Kr(t){return t>-ws&&t<ws}function yg(t){return t>ws||t<-ws}function Ye(t,e,r,n,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*n+3*a*r)}function _g(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function xs(t,e,r,n,i,a){var o=n+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-i,f=s*s-3*o*l,c=s*l-9*o*u,v=l*l-3*s*u,h=0;if(Kr(f)&&Kr(c))if(Kr(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[h++]=d)}else{var p=c*c-4*f*v;if(Kr(p)){var g=c/f,d=-s/o+g,m=-g/2;d>=0&&d<=1&&(a[h++]=d),m>=0&&m<=1&&(a[h++]=m)}else if(p>0){var y=Zr(p),_=f*s+1.5*o*(-c+y),S=f*s+1.5*o*(-c-y);_<0?_=-bs(-_,Ts):_=bs(_,Ts),S<0?S=-bs(-S,Ts):S=bs(S,Ts);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[h++]=d)}else{var b=(2*f*s-3*o*c)/(2*Zr(f*f*f)),w=Math.acos(b)/3,T=Zr(f),C=Math.cos(w),d=(-s-2*T*C)/(3*o),m=(-s+T*(C+mg*Math.sin(w)))/(3*o),D=(-s+T*(C-mg*Math.sin(w)))/(3*o);d>=0&&d<=1&&(a[h++]=d),m>=0&&m<=1&&(a[h++]=m),D>=0&&D<=1&&(a[h++]=D)}}return h}function Sg(t,e,r,n,i){var a=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,l=0;if(Kr(o)){if(yg(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Kr(f))i[0]=-a/(2*o);else if(f>0){var c=Zr(f),u=(-a+c)/(2*o),v=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function Cs(t,e,r,n,i,a){var o=(e-t)*i+t,s=(r-e)*i+e,l=(n-r)*i+r,u=(s-o)*i+o,f=(l-s)*i+s,c=(f-u)*i+u;a[0]=t,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=n}function BC(t,e,r,n,i,a,o,s,l,u,f){var c,v=.005,h=1/0,d,p,g,m;mr[0]=l,mr[1]=u;for(var y=0;y<1;y+=.05)Tt[0]=Ye(t,r,i,o,y),Tt[1]=Ye(e,n,a,s,y),g=Ti(mr,Tt),g<h&&(c=y,h=g);h=1/0;for(var _=0;_<32&&!(v<gg);_++)d=c-v,p=c+v,Tt[0]=Ye(t,r,i,o,d),Tt[1]=Ye(e,n,a,s,d),g=Ti(Tt,mr),d>=0&&g<h?(c=d,h=g):(Ii[0]=Ye(t,r,i,o,p),Ii[1]=Ye(e,n,a,s,p),m=Ti(Ii,mr),p<=1&&m<h?(c=p,h=m):v*=.5);return Zr(h)}function FC(t,e,r,n,i,a,o,s,l){for(var u=t,f=e,c=0,v=1/l,h=1;h<=l;h++){var d=h*v,p=Ye(t,r,i,o,d),g=Ye(e,n,a,s,d),m=p-u,y=g-f;c+=Math.sqrt(m*m+y*y),u=p,f=g}return c}function ct(t,e,r,n){var i=1-n;return i*(i*t+2*n*e)+n*n*r}function bg(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function zC(t,e,r,n,i){var a=t-2*e+r,o=2*(e-t),s=t-n,l=0;if(Kr(a)){if(yg(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Kr(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=Zr(f),u=(-o+c)/(2*a),v=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function wg(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function As(t,e,r,n,i){var a=(e-t)*n+t,o=(r-e)*n+e,s=(o-a)*n+a;i[0]=t,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function VC(t,e,r,n,i,a,o,s,l){var u,f=.005,c=1/0;mr[0]=o,mr[1]=s;for(var v=0;v<1;v+=.05){Tt[0]=ct(t,r,i,v),Tt[1]=ct(e,n,a,v);var h=Ti(mr,Tt);h<c&&(u=v,c=h)}c=1/0;for(var d=0;d<32&&!(f<gg);d++){var p=u-f,g=u+f;Tt[0]=ct(t,r,i,p),Tt[1]=ct(e,n,a,p);var h=Ti(Tt,mr);if(p>=0&&h<c)u=p,c=h;else{Ii[0]=ct(t,r,i,g),Ii[1]=ct(e,n,a,g);var m=Ti(Ii,mr);g<=1&&m<c?(u=g,c=m):f*=.5}}return Zr(c)}function GC(t,e,r,n,i,a,o){for(var s=t,l=e,u=0,f=1/o,c=1;c<=o;c++){var v=c*f,h=ct(t,r,i,v),d=ct(e,n,a,v),p=h-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=h,l=d}return u}var HC=/cubic-bezier\(([0-9,\.e ]+)\)/;function Bf(t){var e=t&&HC.exec(t);if(e){var r=e[1].split(","),n=+hr(r[0]),i=+hr(r[1]),a=+hr(r[2]),o=+hr(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:xs(0,n,a,1,l,s)&&Ye(0,i,o,1,s[0])}}}var UC=(function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||We,this.ondestroy=e.ondestroy||We,this.onrestart=e.onrestart||We,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=e-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ee(e)?e:Ba[e]||Bf(e)},t})(),Tg={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function jr(t){return t=Math.round(t),t<0?0:t>255?255:t}function Ff(t){return t<0?0:t>1?1:t}function zf(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?jr(parseFloat(e)/100*255):jr(parseInt(e,10))}function En(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Ff(parseFloat(e)/100):Ff(parseFloat(e))}function Vf(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function Ds(t,e,r){return t+(e-t)*r}function xt(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function Gf(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var xg=new bi(20),Ms=null;function Li(t,e){Ms&&Gf(Ms,e),Ms=xg.put(t,Ms||e.slice())}function Yt(t,e){if(t){e=e||[];var r=xg.get(t);if(r)return Gf(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in Tg)return Gf(e,Tg[n]),Li(t,e),e;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){xt(e,0,0,0,1);return}return xt(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Li(t,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){xt(e,0,0,0,1);return}return xt(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Li(t,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?xt(e,+u[0],+u[1],+u[2],1):xt(e,0,0,0,1);f=En(u.pop());case"rgb":if(u.length>=3)return xt(e,zf(u[0]),zf(u[1]),zf(u[2]),u.length===3?f:En(u[3])),Li(t,e),e;xt(e,0,0,0,1);return;case"hsla":if(u.length!==4){xt(e,0,0,0,1);return}return u[3]=En(u[3]),Hf(u,e),Li(t,e),e;case"hsl":if(u.length!==3){xt(e,0,0,0,1);return}return Hf(u,e),Li(t,e),e;default:return}}xt(e,0,0,0,1)}}function Hf(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=En(t[1]),i=En(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],xt(e,jr(Vf(o,a,r+1/3)*255),jr(Vf(o,a,r)*255),jr(Vf(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function WC(t){if(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),a=Math.max(e,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-e)/6+o/2)/o,c=((a-r)/6+o/2)/o,v=((a-n)/6+o/2)/o;e===a?l=v-c:r===a?l=1/3+f-v:n===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return t[3]!=null&&h.push(t[3]),h}}function Cg(t,e){var r=Yt(t);if(r){for(var n=0;n<3;n++)r[n]=r[n]*(1-e)|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Fa(r,r.length===4?"rgba":"rgb")}}function YC(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=Yt(e[i]),s=Yt(e[a]),l=n-i,u=Fa([jr(Ds(o[0],s[0],l)),jr(Ds(o[1],s[1],l)),jr(Ds(o[2],s[2],l)),Ff(Ds(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function Uf(t,e,r,n){var i=Yt(t);if(t)return i=WC(i),r!=null&&(i[1]=En(ee(r)?r(i[1]):r)),n!=null&&(i[2]=En(ee(n)?n(i[2]):n)),Fa(Hf(i),"rgba")}function Fa(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function Is(t,e){var r=Yt(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var Ag=new bi(100);function Wf(t){if(q(t)){var e=Ag.get(t);return e||(e=Cg(t,-.1),Ag.put(t,e)),e}else if(hf(t)){var r=z({},t);return r.colorStops=$(t.colorStops,function(n){return{offset:n.offset,color:Cg(n.color,-.1)}}),r}return t}var Ls=Math.round;function za(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var r=Yt(t);r&&(t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3])}return{color:t,opacity:e??1}}var Dg=1e-4;function Qr(t){return t<Dg&&t>-Dg}function Ps(t){return Ls(t*1e3)/1e3}function Yf(t){return Ls(t*1e4)/1e4}function $C(t){return"matrix("+Ps(t[0])+","+Ps(t[1])+","+Ps(t[2])+","+Ps(t[3])+","+Yf(t[4])+","+Yf(t[5])+")"}var XC={left:"start",right:"end",center:"middle",middle:"middle"};function qC(t,e,r){return r==="top"?t+=e/2:r==="bottom"&&(t-=e/2),t}function ZC(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function KC(t){var e=t.style,r=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function Mg(t){return t&&!!t.image}function jC(t){return t&&!!t.svgElement}function $f(t){return Mg(t)||jC(t)}function Ig(t){return t.type==="linear"}function Lg(t){return t.type==="radial"}function Pg(t){return t&&(t.type==="linear"||t.type==="radial")}function Es(t){return"url(#"+t+")"}function Eg(t){var e=t.getGlobalScale(),r=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function kg(t){var e=t.x||0,r=t.y||0,n=(t.rotation||0)*ps,i=Z(t.scaleX,1),a=Z(t.scaleY,1),o=t.skewX||0,s=t.skewY||0,l=[];return(e||r)&&l.push("translate("+e+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+Ls(o*ps)+"deg, "+Ls(s*ps)+"deg)"),l.join(" ")}var QC=(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(t){return Buffer.from(t).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(t){return btoa(unescape(encodeURIComponent(t)))}:function(t){return null}})(),Xf=Array.prototype.slice;function Er(t,e,r){return(e-t)*r+t}function qf(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=Er(e[a],r[a],n);return t}function JC(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=Er(e[o][s],r[o][s],n)}return t}function ks(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=e[a]+r[a]*n;return t}function Rg(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function eA(t,e){for(var r=t.length,n=e.length,i=r>n?e:t,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function tA(t,e,r){var n=t,i=e;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(r===1?i[l]:Xf.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function Rs(t){if(ut(t)){var e=t.length;if(ut(t[0])){for(var r=[],n=0;n<e;n++)r.push(Xf.call(t[n]));return r}return Xf.call(t)}return t}function Os(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function rA(t){return ut(t&&t[0])?2:1}var Ns=0,Bs=1,Og=2,Va=3,Zf=4,Kf=5,Ng=6;function Bg(t){return t===Zf||t===Kf}function Fs(t){return t===Bs||t===Og}var Ga=[0,0,0,0],nA=(function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=Ng,l=r;if(ut(r)){var u=rA(r);s=u,(u===1&&!me(r[0])||u===2&&!me(r[0][0]))&&(o=!0)}else if(me(r)&&!Aa(r))s=Ns;else if(q(r))if(!isNaN(+r))s=Ns;else{var f=Yt(r);f&&(l=f,s=Va)}else if(hf(r)){var c=z({},l);c.colorStops=$(r.colorStops,function(h){return{offset:h.offset,color:Yt(h.color)}}),Ig(r)?s=Zf:Lg(r)&&(s=Kf),l=c}a===0?this.valType=s:(s!==this.valType||s===Ng)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:r,percent:0};return n&&(v.easing=n,v.easingFunc=ee(n)?n:Ba[n]||Bf(n)),i.push(v),v},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Fs(i),u=Bg(i),f=0;f<a;f++){var c=n[f],v=c.value,h=o.value;c.percent=c.time/e,s||(l&&f!==a-1?tA(v,h,i):u&&eA(v.colorStops,h.colorStops))}if(!s&&i!==Kf&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var d=n[0].value,f=0;f<a;f++)i===Ns?n[f].additiveValue=n[f].value-d:i===Va?n[f].additiveValue=ks([],n[f].value,d,-1):Fs(i)&&(n[f].additiveValue=i===Bs?ks([],n[f].value,d,-1):Rg([],n[f].value,d,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===Va,f,c=this._lastFr,v=Math.min,h,d;if(s===1)h=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var p=v(c+1,s-1);for(f=p;f>=0&&!(o[f].percent<=r);f--);f=v(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=v(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=r;var g=d.percent-h.percent,m=g===0?1:v((r-h.percent)/g,1);d.easingFunc&&(m=d.easingFunc(m));var y=n?this._additiveValue:u?Ga:e[l];if((Fs(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=m<1?h.rawValue:d.rawValue;else if(Fs(a))a===Bs?qf(y,h[i],d[i],m):JC(y,h[i],d[i],m);else if(Bg(a)){var _=h[i],S=d[i],b=a===Zf;e[l]={type:b?"linear":"radial",x:Er(_.x,S.x,m),y:Er(_.y,S.y,m),colorStops:$(_.colorStops,function(T,C){var D=S.colorStops[C];return{offset:Er(T.offset,D.offset,m),color:Os(qf([],T.color,D.color,m))}}),global:S.global},b?(e[l].x2=Er(_.x2,S.x2,m),e[l].y2=Er(_.y2,S.y2,m)):e[l].r=Er(_.r,S.r,m)}else if(u)qf(y,h[i],d[i],m),n||(e[l]=Os(y));else{var w=Er(h[i],d[i],m);n?this._additiveValue=w:e[l]=w}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;r===Ns?e[n]=e[n]+i:r===Va?(Yt(e[n],Ga),ks(Ga,Ga,i,1),e[n]=Os(Ga)):r===Bs?ks(e[n],e[n],i,1):r===Og&&Rg(e[n],e[n],i,1)},t})(),jf=(function(){function t(e,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&i){Hp("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,ce(r),n)},t.prototype.whenWithKeys=function(e,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new nA(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,v=c[c.length-1];u=v&&v.value,f.valType===Va&&u&&(u=Os(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Rs(u),i),this._trackKeys.push(s)}l.addKeyframe(e,Rs(r[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var v=new UC({life:i,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var d=r._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,h);var m=r._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),e&&v.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return $(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<e.length;a++){var o=n[e[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,n){if(e){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[a]=Rs(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||ce(e);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t})(),kr=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[e].length-1,f=a[e][u];return f&&f.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(r){if(n[e]){for(var i=[],a=0,o=n[e].length;a<o;a++)n[e][a].h!==r&&i.push(n[e][a]);n[e]=i}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t})(),Fg=1;ie.hasGlobalWindow&&(Fg=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var zg=Fg,Qf=.4,Jf="#333",ec="#ccc",iA="#eee",$t=1,Ha=2,Pi=4,tc="__zr_normal__",rc=Ss.concat(["ignore"]),aA=qr(Ss,function(t,e){return t[e]=!0,t},{ignore:!1}),Ei={},oA=new ne(0,0,0,0),zs=[],Vs=0,Gs=1,Hs=(function(){function t(e){this.id=Gp(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;a.copyTransform(r);var f=n.position!=null,c=n.autoOverflowArea,v=void 0;if((c||f)&&(v=oA,n.layoutRect?v.copy(n.layoutRect):v.copy(this.getBoundingRect()),i||v.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Ei,n,v):_s(Ei,n,v),a.x=Ei.x,a.y=Ei.y,o=Ei.align,s=Ei.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var d=void 0,p=void 0;h==="center"?(d=v.width*.5,p=v.height*.5):(d=In(h[0],v.width),p=In(h[1],v.height)),u=!0,a.originX=-a.x+d+(i?0:v.x),a.originY=-a.y+p+(i?0:v.y)}}n.rotation!=null&&(a.rotation=n.rotation);var g=n.offset;g&&(a.x+=g[0],a.y+=g[1],u||(a.originX=-g[0],a.originY=-g[1]));var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=m.overflowRect=m.overflowRect||new ne(0,0,0,0);a.getLocalTransform(zs),Pa(zs,zs),ne.copy(y,v),y.applyTransform(zs)}else m.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,S=void 0,b=void 0,w=void 0;_&&this.canBeInsideText()?(S=n.insideFill,b=n.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(S),w=!0)):(S=n.outsideFill,b=n.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(S),w=!0)),S=S||"#000",(S!==m.fill||b!==m.stroke||w!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=S,m.stroke=b,m.autoStroke=w,m.align=o,m.verticalAlign=s,r.setDefaultTextStyle(m)),r.__dirty|=$t,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ec:Jf},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Yt(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Fa(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},z(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(j(e))for(var n=e,i=ce(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==tc)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,rc)},t.prototype._savePrimaryToNormal=function(e,r,n){for(var i=0;i<n.length;i++){var a=n[i];e[a]!=null&&!(a in r)&&(r[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(tc,!1,e)},t.prototype.useState=function(e,r,n,i){var a=e===tc,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(fe(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){Hp("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=this._textContent,c=Gg(this,f,u,i);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,u,this._normalState,r,Ug(this,n,l),l);var v=this._textGuide;return f&&f.useState(e,r,n,!!c),v&&v.useState(e,r,n,!!c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=Vs,this.__dirty&=~$t),u}}},t.prototype.useStates=function(e,r,n){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&i.push(f)}var c=i[o-1],v=this._textContent,h=Gg(this,v,c,n);h&&!this.__inHover&&(this.__inHover=h);var d=this._mergeStates(i),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,Ug(this,r,p),p);var g=this._textGuide;v&&v.useStates(e,r,!!h),g&&g.useStates(e,r,!!h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=Vs,this.__dirty&=~$t)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=fe(this.currentStates,e);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var i=this.currentStates.slice(),a=fe(i,e),o=fe(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},n,i=0;i<e.length;i++){var a=e[i];z(r,a),a.textConfig&&(n=n||{},z(n,a.textConfig))}return n&&(r.textConfig=n),r},t.prototype._applyStateObj=function(e,r,n,i,a,o){if(this.__inHover!==Gs){var s=!(r&&i);r&&r.textConfig?(this.textConfig=z({},i?this.textConfig:n.textConfig),z(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<rc.length;f++){var c=rc[f],v=a&&aA[c];r&&r[c]!=null?v?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&n[c]!=null&&(v?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!a)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(r||n)[d]:r||n)}u&&this._transitionState(e,l,o)}},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new Oa,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),z(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=$t;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,n){var i=e?this[e]:this,a=new jf(i,r,n);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,r){var n=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=fe(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!e||e===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,r,n){nc(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){nc(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,i){for(var a=nc(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=(function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=Vs,e.__dirty=$t;function r(n,i,a,o){Object.defineProperty(e,n,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[a]=l[0],this[o]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(f){l[a]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))})(),t})();Ut(Hs,kr),Ut(Hs,Oa);function nc(t,e,r,n,i){r=r||{};var a=[];Vg(t,"",t,e,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(d,p){r.during(p)});for(var v=0;v<a.length;v++){var h=a[v];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function ic(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function sA(t){return ut(t[0])}function lA(t,e,r){if(ut(e[r]))if(ut(t[r])||(t[r]=[]),ft(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),ic(t[r],e[r],n))}else{var i=e[r],a=t[r],o=i.length;if(sA(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?ic(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else ic(a,i,o);a.length=i.length}else t[r]=e[r]}function uA(t,e){return t===e||ut(t)&&ut(e)&&fA(t,e)}function fA(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function Vg(t,e,r,n,i,a,o,s){for(var l=ce(n),u=i.duration,f=i.delay,c=i.additive,v=i.setToFinal,h=!j(a),d=t.animators,p=[],g=0;g<l.length;g++){var m=l[g],y=n[m];if(y!=null&&r[m]!=null&&(h||a[m]))if(j(y)&&!ut(y)&&!hf(y)){if(e){s||(r[m]=y,t.updateDuringAnimation(e));continue}Vg(t,m,r[m],y,i,a&&a[m],o,s)}else p.push(m);else s||(r[m]=y,t.updateDuringAnimation(e),p.push(m))}var _=p.length;if(!c&&_)for(var S=0;S<d.length;S++){var b=d[S];if(b.targetName===e){var w=b.stopTracks(p);if(w){var T=fe(d,b);d.splice(T,1)}}}if(i.force||(p=Ue(p,function(A){return!uA(n[A],r[A])}),_=p.length),_>0||i.force&&!o.length){var C=void 0,D=void 0,x=void 0;if(s){D={},v&&(C={});for(var S=0;S<_;S++){var m=p[S];D[m]=r[m],v?C[m]=n[m]:r[m]=n[m]}}else if(v){x={};for(var S=0;S<_;S++){var m=p[S];x[m]=Rs(r[m]),lA(r,n,m)}}var b=new jf(r,!1,!1,c?Ue(d,function(L){return L.targetName===e}):null);b.targetName=e,i.scope&&(b.scope=i.scope),v&&C&&b.whenWithKeys(0,C,p),x&&b.whenWithKeys(0,x,p),b.whenWithKeys(u??500,s?D:n,p).delay(f||0),t.addAnimator(b,e),o.push(b)}}function Gg(t,e,r,n){return!(r&&r.hoverLayer||n)||Hg(t)||e&&Hg(e)?Vs:Gs}function Hg(t){return t.type==="text"||t.type==="tspan"}function Ug(t,e,r){return!e&&!t.__inHover&&r&&r.duration>0}var ac="__zr_style_"+Math.round(Math.random()*10),kn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Us={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};kn[ac]=!0;var Wg=["z","z2","invisible"],cA=["invisible"],Ua=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=ce(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(r){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&hA(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,n){return this.rectContain(r,n)},e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new ne(0,0,0,0)),n?ne.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new ne(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,n){r!=="style"?t.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:z(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Ha,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Ha)},e.prototype.styleUpdated=function(){this.__dirty&=~Ha},e.prototype.createStyle=function(r){return ds(kn,r)},e.prototype.useStyle=function(r){r[ac]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},e.prototype._useHoverStyle=function(r){this.__hoverStyle=r},e.prototype.isStyleObject=function(r){return r[ac]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,Wg)},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u=this.__inHover===Gs,f;if(n&&n.style?o?a?f=n.style:(f=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(f,n.style)):(f=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(f,n.style)):l&&(f=i.style),f)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var v=ce(c),h=0;h<v.length;h++){var d=v[h];d in f&&(f[d]=f[d],this.style[d]=c[d])}for(var p=ce(f),h=0;h<p.length;h++){var d=p[h];this.style[d]=this.style[d]}this._transitionState(r,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u)for(var g=this.__inHover?cA:Wg,h=0;h<g.length;h++){var d=g[h];n&&n[d]!=null?this[d]=n[d]:l&&i[d]!=null&&(this[d]=i[d])}},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},e.prototype._mergeStyle=function(r,n){return z(r,n),r},e.prototype.getAnimationStyleProps=function(){return Us},e.initDefaultProps=(function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=0,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=$t|Ha})(),e})(Hs),oc=new ne(0,0,0,0),sc=new ne(0,0,0,0);function hA(t,e,r){return oc.copy(t.getBoundingRect()),t.transform&&oc.applyTransform(t.transform),sc.width=e,sc.height=r,!oc.intersect(sc)}var Ct=Math.min,At=Math.max,lc=Math.sin,uc=Math.cos,Rn=Math.PI*2,Ws=wi(),Ys=wi(),$s=wi();function Yg(t,e,r,n,i,a){i[0]=Ct(t,r),i[1]=Ct(e,n),a[0]=At(t,r),a[1]=At(e,n)}var $g=[],Xg=[];function vA(t,e,r,n,i,a,o,s,l,u){var f=Sg,c=Ye,v=f(t,r,i,o,$g);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<v;h++){var d=c(t,r,i,o,$g[h]);l[0]=Ct(d,l[0]),u[0]=At(d,u[0])}v=f(e,n,a,s,Xg);for(var h=0;h<v;h++){var p=c(e,n,a,s,Xg[h]);l[1]=Ct(p,l[1]),u[1]=At(p,u[1])}l[0]=Ct(t,l[0]),u[0]=At(t,u[0]),l[0]=Ct(o,l[0]),u[0]=At(o,u[0]),l[1]=Ct(e,l[1]),u[1]=At(e,u[1]),l[1]=Ct(s,l[1]),u[1]=At(s,u[1])}function dA(t,e,r,n,i,a,o,s){var l=wg,u=ct,f=At(Ct(l(t,r,i),1),0),c=At(Ct(l(e,n,a),1),0),v=u(t,r,i,f),h=u(e,n,a,c);o[0]=Ct(t,i,v),o[1]=Ct(e,a,h),s[0]=At(t,i,v),s[1]=At(e,a,h)}function pA(t,e,r,n,i,a,o,s,l){var u=xi,f=Ci,c=Math.abs(i-a);if(c%Rn<1e-4&&c>1e-4){s[0]=t-r,s[1]=e-n,l[0]=t+r,l[1]=e+n;return}if(Ws[0]=uc(i)*r+t,Ws[1]=lc(i)*n+e,Ys[0]=uc(a)*r+t,Ys[1]=lc(a)*n+e,u(s,Ws,Ys),f(l,Ws,Ys),i=i%Rn,i<0&&(i=i+Rn),a=a%Rn,a<0&&(a=a+Rn),i>a&&!o?a+=Rn:i<a&&o&&(i+=Rn),o){var v=a;a=i,i=v}for(var h=0;h<a;h+=Math.PI/2)h>i&&($s[0]=uc(h)*r+t,$s[1]=lc(h)*n+e,u(s,$s,s),f(l,$s,l))}var _e={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},On=[],Nn=[],yr=[],Jr=[],_r=[],Sr=[],fc=Math.min,cc=Math.max,Bn=Math.cos,Fn=Math.sin,Rr=Math.abs,hc=Math.PI,en=hc*2,vc=typeof Float32Array<"u",Wa=[];function dc(t){var e=Math.round(t/hc*1e8)/1e8;return e%2*hc}function pc(t,e){var r=dc(t[0]);r<0&&(r+=en);var n=r-t[0],i=t[1];i+=n,!e&&i-r>=en?i=r+en:e&&r-i>=en?i=r-en:!e&&r>i?i=r+(en-dc(r-i)):e&&r<i&&(i=r-(en-dc(i-r))),t[0]=r,t[1]=i}var tn=(function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,n){n=n||0,n>0&&(this._ux=Rr(n/zg/e)||0,this._uy=Rr(n/zg/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(_e.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=Rr(e-this._xi),i=Rr(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(_e.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){return this._drawPendingPt(),this.addData(_e.C,e,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,i,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,i){return this._drawPendingPt(),this.addData(_e.Q,e,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(e,r,n,i,a,o){this._drawPendingPt(),Wa[0]=i,Wa[1]=a,pc(Wa,o),i=Wa[0],a=Wa[1];var s=a-i;return this.addData(_e.A,e,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,i,a,o),this._xi=Bn(a)*n+e,this._yi=Fn(a)*n+r,this},t.prototype.arcTo=function(e,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,i,a),this},t.prototype.rect=function(e,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,i),this.addData(_e.R,e,r,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(_e.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;!(this.data&&this.data.length===r)&&vc&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=e[n];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,n=0,i=this._len,a=0;a<r;a++)n+=e[a].len();var o=this.data;if(vc&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var s=0;s<i;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var l=e[a].data,s=0;s<l.length;s++)this.data[i++]=l[s];this._len=i}},t.prototype.addData=function(e,r,n,i,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,vc&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){yr[0]=yr[1]=_r[0]=_r[1]=Number.MAX_VALUE,Jr[0]=Jr[1]=Sr[0]=Sr[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],n=e[o+1],i=r,a=n),s){case _e.M:r=i=e[o++],n=a=e[o++],_r[0]=i,_r[1]=a,Sr[0]=i,Sr[1]=a;break;case _e.L:Yg(r,n,e[o],e[o+1],_r,Sr),r=e[o++],n=e[o++];break;case _e.C:vA(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],_r,Sr),r=e[o++],n=e[o++];break;case _e.Q:dA(r,n,e[o++],e[o++],e[o],e[o+1],_r,Sr),r=e[o++],n=e[o++];break;case _e.A:var u=e[o++],f=e[o++],c=e[o++],v=e[o++],h=e[o++],d=e[o++]+h;o+=1;var p=!e[o++];l&&(i=Bn(h)*c+u,a=Fn(h)*v+f),pA(u,f,c,v,h,d,p,_r,Sr),r=Bn(d)*c+u,n=Fn(d)*v+f;break;case _e.R:i=r=e[o++],a=n=e[o++];var g=e[o++],m=e[o++];Yg(i,a,i+g,a+m,_r,Sr);break;case _e.Z:r=i,n=a;break}xi(yr,yr,_r),Ci(Jr,Jr,Sr)}return o===0&&(yr[0]=yr[1]=Jr[0]=Jr[1]=0),new ne(yr[0],yr[1],Jr[0]-yr[0],Jr[1]-yr[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,v=0;v<r;){var h=e[v++],d=v===1;d&&(a=e[v],o=e[v+1],s=a,l=o);var p=-1;switch(h){case _e.M:a=s=e[v++],o=l=e[v++];break;case _e.L:{var g=e[v++],m=e[v++],y=g-a,_=m-o;(Rr(y)>n||Rr(_)>i||v===r-1)&&(p=Math.sqrt(y*y+_*_),a=g,o=m);break}case _e.C:{var S=e[v++],b=e[v++],g=e[v++],m=e[v++],w=e[v++],T=e[v++];p=FC(a,o,S,b,g,m,w,T,10),a=w,o=T;break}case _e.Q:{var S=e[v++],b=e[v++],g=e[v++],m=e[v++];p=GC(a,o,S,b,g,m,10),a=g,o=m;break}case _e.A:var C=e[v++],D=e[v++],x=e[v++],A=e[v++],L=e[v++],M=e[v++],P=M+L;v+=1,d&&(s=Bn(L)*x+C,l=Fn(L)*A+D),p=cc(x,A)*fc(en,Math.abs(M)),a=Bn(P)*x+C,o=Fn(P)*A+D;break;case _e.R:{s=a=e[v++],l=o=e[v++];var E=e[v++],k=e[v++];p=E*2+k*2;break}case _e.Z:{var y=s-a,_=l-o;p=Math.sqrt(y*y+_*_),a=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,c,v,h=r<1,d,p,g=0,m=0,y,_=0,S,b;if(!(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,y=r*p,!y)))e:for(var w=0;w<o;){var T=n[w++],C=w===1;switch(C&&(u=n[w],f=n[w+1],s=u,l=f),T!==_e.L&&_>0&&(e.lineTo(S,b),_=0),T){case _e.M:s=u=n[w++],l=f=n[w++],e.moveTo(u,f);break;case _e.L:{c=n[w++],v=n[w++];var D=Rr(c-u),x=Rr(v-f);if(D>i||x>a){if(h){var A=d[m++];if(g+A>y){var L=(y-g)/A;e.lineTo(u*(1-L)+c*L,f*(1-L)+v*L);break e}g+=A}e.lineTo(c,v),u=c,f=v,_=0}else{var M=D*D+x*x;M>_&&(S=c,b=v,_=M)}break}case _e.C:{var P=n[w++],E=n[w++],k=n[w++],O=n[w++],R=n[w++],N=n[w++];if(h){var A=d[m++];if(g+A>y){var L=(y-g)/A;Cs(u,P,k,R,L,On),Cs(f,E,O,N,L,Nn),e.bezierCurveTo(On[1],Nn[1],On[2],Nn[2],On[3],Nn[3]);break e}g+=A}e.bezierCurveTo(P,E,k,O,R,N),u=R,f=N;break}case _e.Q:{var P=n[w++],E=n[w++],k=n[w++],O=n[w++];if(h){var A=d[m++];if(g+A>y){var L=(y-g)/A;As(u,P,k,L,On),As(f,E,O,L,Nn),e.quadraticCurveTo(On[1],Nn[1],On[2],Nn[2]);break e}g+=A}e.quadraticCurveTo(P,E,k,O),u=k,f=O;break}case _e.A:var F=n[w++],B=n[w++],G=n[w++],X=n[w++],H=n[w++],K=n[w++],ae=n[w++],ke=!n[w++],Ae=G>X?G:X,he=Rr(G-X)>.001,Te=H+K,J=!1;if(h){var A=d[m++];g+A>y&&(Te=H+K*(y-g)/A,J=!0),g+=A}if(he&&e.ellipse?e.ellipse(F,B,G,X,ae,H,Te,ke):e.arc(F,B,Ae,H,Te,ke),J)break e;C&&(s=Bn(H)*G+F,l=Fn(H)*X+B),u=Bn(Te)*G+F,f=Fn(Te)*X+B;break;case _e.R:s=u=n[w],l=f=n[w+1],c=n[w++],v=n[w++];var se=n[w++],pt=n[w++];if(h){var A=d[m++];if(g+A>y){var Re=y-g;e.moveTo(c,v),e.lineTo(c+fc(Re,se),v),Re-=se,Re>0&&e.lineTo(c+se,v+fc(Re,pt)),Re-=pt,Re>0&&e.lineTo(c+cc(se-Re,0),v+pt),Re-=se,Re>0&&e.lineTo(c,v+cc(pt-Re,0));break e}g+=A}e.rect(c,v,se,pt);break;case _e.Z:if(h){var A=d[m++];if(g+A>y){var L=(y-g)/A;e.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break e}g+=A}e.closePath(),u=s,f=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=_e,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})();function ki(t,e,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=t;if(o>e+s&&o>n+s||o<e-s&&o<n-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t!==r)l=(e-n)/(t-r),u=(t*n-r*e)/(t-r);else return Math.abs(a-t)<=s/2;var f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function gA(t,e,r,n,i,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>e+c&&f>n+c&&f>a+c&&f>s+c||f<e-c&&f<n-c&&f<a-c&&f<s-c||u>t+c&&u>r+c&&u>i+c&&u>o+c||u<t-c&&u<r-c&&u<i-c&&u<o-c)return!1;var v=BC(t,e,r,n,i,a,o,s,u,f);return v<=c/2}function mA(t,e,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>n+u&&l>a+u||l<e-u&&l<n-u&&l<a-u||s>t+u&&s>r+u&&s>i+u||s<t-u&&s<r-u&&s<i-u)return!1;var f=VC(t,e,r,n,i,a,s,l);return f<=u/2}var qg=Math.PI*2;function Xs(t){return t%=qg,t<0&&(t+=qg),t}var Ya=Math.PI*2;function yA(t,e,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(n-i)%Ya<1e-4)return!0;if(a){var c=n;n=Xs(i),i=Xs(c)}else n=Xs(n),i=Xs(i);n>i&&(i+=Ya);var v=Math.atan2(l,s);return v<0&&(v+=Ya),v>=n&&v<=i||v+Ya>=n&&v+Ya<=i}function zn(t,e,r,n,i,a){if(a>e&&a>n||a<e&&a<n||n===e)return 0;var o=(a-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var l=o*(r-t)+t;return l===i?1/0:l>i?s:0}var rn=tn.CMD,Vn=Math.PI*2,_A=1e-4;function SA(t,e){return Math.abs(t-e)<_A}var rt=[-1,-1,-1],Dt=[-1,-1];function bA(){var t=Dt[0];Dt[0]=Dt[1],Dt[1]=t}function wA(t,e,r,n,i,a,o,s,l,u){if(u>e&&u>n&&u>a&&u>s||u<e&&u<n&&u<a&&u<s)return 0;var f=xs(e,n,a,s,u,rt);if(f===0)return 0;for(var c=0,v=-1,h=void 0,d=void 0,p=0;p<f;p++){var g=rt[p],m=g===0||g===1?.5:1,y=Ye(t,r,i,o,g);y<l||(v<0&&(v=Sg(e,n,a,s,Dt),Dt[1]<Dt[0]&&v>1&&bA(),h=Ye(e,n,a,s,Dt[0]),v>1&&(d=Ye(e,n,a,s,Dt[1]))),v===2?g<Dt[0]?c+=h<e?m:-m:g<Dt[1]?c+=d<h?m:-m:c+=s<d?m:-m:g<Dt[0]?c+=h<e?m:-m:c+=s<h?m:-m)}return c}function TA(t,e,r,n,i,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return 0;var l=zC(e,n,a,s,rt);if(l===0)return 0;var u=wg(e,n,a);if(u>=0&&u<=1){for(var f=0,c=ct(e,n,a,u),v=0;v<l;v++){var h=rt[v]===0||rt[v]===1?.5:1,d=ct(t,r,i,rt[v]);d<o||(rt[v]<u?f+=c<e?h:-h:f+=a<c?h:-h)}return f}else{var h=rt[0]===0||rt[0]===1?.5:1,d=ct(t,r,i,rt[0]);return d<o?0:a<e?h:-h}}function xA(t,e,r,n,i,a,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);rt[0]=-l,rt[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Vn-1e-4){n=0,i=Vn;var f=a?1:-1;return o>=rt[0]+t&&o<=rt[1]+t?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=Vn,i+=Vn);for(var v=0,h=0;h<2;h++){var d=rt[h];if(d+t>o){var p=Math.atan2(s,d),f=a?1:-1;p<0&&(p=Vn+p),(p>=n&&p<=i||p+Vn>=n&&p+Vn<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),v+=f)}}return v}function Zg(t,e,r,n,i){for(var a=t.data,o=t.len(),s=0,l=0,u=0,f=0,c=0,v,h,d=0;d<o;){var p=a[d++],g=d===1;switch(p===rn.M&&d>1&&(r||(s+=zn(l,u,f,c,n,i))),g&&(l=a[d],u=a[d+1],f=l,c=u),p){case rn.M:f=a[d++],c=a[d++],l=f,u=c;break;case rn.L:if(r){if(ki(l,u,a[d],a[d+1],e,n,i))return!0}else s+=zn(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case rn.C:if(r){if(gA(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=wA(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case rn.Q:if(r){if(mA(l,u,a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=TA(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case rn.A:var m=a[d++],y=a[d++],_=a[d++],S=a[d++],b=a[d++],w=a[d++];d+=1;var T=!!(1-a[d++]);v=Math.cos(b)*_+m,h=Math.sin(b)*S+y,g?(f=v,c=h):s+=zn(l,u,v,h,n,i);var C=(n-m)*S/_+m;if(r){if(yA(m,y,S,b,b+w,T,e,C,i))return!0}else s+=xA(m,y,S,b,b+w,T,C,i);l=Math.cos(b+w)*_+m,u=Math.sin(b+w)*S+y;break;case rn.R:f=l=a[d++],c=u=a[d++];var D=a[d++],x=a[d++];if(v=f+D,h=c+x,r){if(ki(f,c,v,c,e,n,i)||ki(v,c,v,h,e,n,i)||ki(v,h,f,h,e,n,i)||ki(f,h,f,c,e,n,i))return!0}else s+=zn(v,c,v,h,n,i),s+=zn(f,h,f,c,n,i);break;case rn.Z:if(r){if(ki(l,u,f,c,e,n,i))return!0}else s+=zn(l,u,f,c,n,i);l=f,u=c;break}}return!r&&!SA(u,c)&&(s+=zn(l,u,f,c,n,i)||0),s!==0}function CA(t,e,r){return Zg(t,0,!1,e,r)}function AA(t,e,r,n){return Zg(t,e,!0,r,n)}var qs=le({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},kn),DA={style:le({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Us.style)},gc=Ss.concat(["invisible","culling","z","z2","zlevel","parent"]),pe=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<gc.length;++s)i[gc[s]]=this[gc[s]];i.__dirty|=$t}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=ce(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?z(this.style,s):this.useStyle(s):o==="shape"?z(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(q(r)){var n=Is(r,0);return n>.5?Jf:n>.2?iA:ec}else if(r)return ec}return Jf},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(q(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Is(r,0)<Qf;if(a===o)return n}},e.prototype.buildPath=function(r,n,i){},e.prototype.pathUpdated=function(){this.__dirty&=~Pi},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new tn(!1)},e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Pi)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),AA(s,l/u,r,n)))return!0}if(this.hasFill())return CA(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Pi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:z(i,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Pi)},e.prototype.createStyle=function(r){return ds(qs,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=z({},this.shape))},e.prototype._applyStateObj=function(r,n,i,a,o,s){if(t.prototype._applyStateObj.call(this,r,n,i,a,o,s),this.__inHover!==Gs){var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=z({},i.shape),z(u,n.shape)):(u=z({},a?this.shape:i.shape),z(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=z({},this.shape);for(var f={},c=ce(u),v=0;v<c.length;v++){var h=c[v];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()}},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},e.prototype.getAnimationStyleProps=function(){return DA},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=(function(a){V(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return oe(r.style)},o.prototype.getDefaultShape=function(){return oe(r.shape)},o})(e);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},e.initDefaultProps=(function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=$t|Ha|Pi})(),e})(Ua),MA=le({strokeFirst:!0,font:Pr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},qs),$a=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return vg(this.style)},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return ds(MA,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=OC(this.style)),this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(Ua);$a.prototype.type="tspan";var IA=le({x:0,y:0},kn),LA={style:le({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Us.style)};function PA(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var Mt=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return ds(IA,r)},e.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=PA(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return LA},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new ne(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e})(Ua);Mt.prototype.type="image";function EA(t,e){var r=e.x,n=e.y,i=e.width,a=e.height,o=e.r,s,l,u,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>i&&(c=s+l,s*=i/c,l*=i/c),u+f>i&&(c=u+f,u*=i/c,f*=i/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),t.moveTo(r+s,n),t.lineTo(r+i-l,n),l!==0&&t.arc(r+i-l,n+l,l,-Math.PI/2,0),t.lineTo(r+i,n+a-u),u!==0&&t.arc(r+i-u,n+a-u,u,0,Math.PI/2),t.lineTo(r+f,n+a),f!==0&&t.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),t.lineTo(r,n+s),s!==0&&t.arc(r+s,n+s,s,Math.PI,Math.PI*1.5),t.closePath()}var Ri=Math.round;function Kg(t,e,r){if(e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;t.x1=n,t.x2=i,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(Ri(n*2)===Ri(i*2)&&(t.x1=t.x2=Gn(n,s,!0)),Ri(a*2)===Ri(o*2)&&(t.y1=t.y2=Gn(a,s,!0))),t}}function jg(t,e,r){if(e){var n=e.x,i=e.y,a=e.width,o=e.height;t.x=n,t.y=i,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=Gn(n,s,!0),t.y=Gn(i,s,!0),t.width=Math.max(Gn(n+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(Gn(i+o,s,!1)-t.y,o===0?0:1)),t}}function Gn(t,e,r){if(!e)return t;var n=Ri(t*2);return(n+Ri(e))%2===0?n/2:(n+(r?1:-1))/2}var kA=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})(),RA={},De=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new kA},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=jg(RA,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?EA(r,n):r.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(pe);De.prototype.type="rect";var Qg={fill:"#000"},Jg=2,br={},OA={style:le({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Us.style)},Me=(function(t){V(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Qg,n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,FA(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new ne(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||Qg},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return z(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,n){for(var i=ce(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},z(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return OA},e.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||Pr,i=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||a.align||"left",u=r.verticalAlign||a.verticalAlign||"top";fg(br,a.overflowRect,o,s,l,u),o=br.baseX,s=br.baseY;var f=lm(r),c=MC(f,r,br.outerWidth,br.outerHeight),v=mc(r),h=!!r.backgroundColor,d=c.outerHeight,p=c.outerWidth,g=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,_=Mn(s,c.contentHeight,u);if(v||i){var S=Di(o,p,l),b=Mn(s,d,u);v&&this._renderBackground(r,r,S,b,p,d)}_+=m/2,i&&(y=sm(o,l,i),u==="top"?_+=i[0]:u==="bottom"&&(_-=i[2]));for(var w=0,T=!1,C=!1,D=om("fill"in r?r.fill:(C=!0,a.fill)),x=am("stroke"in r?r.stroke:!h&&(!a.autoStroke||C)?(w=Jg,T=!0,a.stroke):null),A=r.textShadowBlur>0,L=0;L<g.length;L++){var M=this._getOrCreateChild($a),P=M.createStyle();M.useStyle(P),P.text=g[L],P.x=y,P.y=_,P.textAlign=l,P.textBaseline="middle",P.opacity=r.opacity,P.strokeFirst=!0,A&&(P.shadowBlur=r.textShadowBlur||0,P.shadowColor=r.textShadowColor||"transparent",P.shadowOffsetX=r.textShadowOffsetX||0,P.shadowOffsetY=r.textShadowOffsetY||0),P.stroke=x,P.fill=D,x&&(P.lineWidth=r.lineWidth||w,P.lineDash=r.lineDash,P.lineDashOffset=r.lineDashOffset||0),P.font=n,rm(P,r),_+=m,M.setBoundingRect(Rf(P,c.contentWidth,c.calculatedLineHeight,T?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,i=r.align||n.align,a=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;fg(br,n.overflowRect,o,s,i,a),o=br.baseX,s=br.baseY;var l=lm(r),u=PC(l,r,br.outerWidth,br.outerHeight,i),f=u.width,c=u.outerWidth,v=u.outerHeight,h=r.padding;this.isTruncated=!!u.isTruncated;var d=Di(o,c,i),p=Mn(s,v,a),g=d,m=p;h&&(g+=h[3],m+=h[0]);var y=g+f;mc(r)&&this._renderBackground(r,r,d,p,c,v);for(var _=!!r.backgroundColor,S=0;S<u.lines.length;S++){for(var b=u.lines[S],w=b.tokens,T=w.length,C=b.lineHeight,D=b.width,x=0,A=g,L=y,M=T-1,P=void 0;x<T&&(P=w[x],!P.align||P.align==="left");)this._placeToken(P,r,C,m,A,"left",_),D-=P.width,A+=P.width,x++;for(;M>=0&&(P=w[M],P.align==="right");)this._placeToken(P,r,C,m,L,"right",_),D-=P.width,L-=P.width,M--;for(A+=(f-(A-g)-(y-L)-D)/2;x<=M;)P=w[x],this._placeToken(P,r,C,m,A+P.width/2,"center",_),A+=P.width,x++;m+=C}},e.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+i/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+i-r.height/2);var v=!r.isLineHolder&&mc(u);v&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var h=!!u.backgroundColor,d=r.textPadding;d&&(o=sm(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var p=this._getOrCreateChild($a),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,_=0,S=!1,b=om("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),w=am("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(_=Jg,S=!0,m.stroke):null),T=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=c,T&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||Pr,g.opacity=bn(u.opacity,n.opacity,1),rm(g,u),w&&(g.lineWidth=bn(u.lineWidth,n.lineWidth,_),g.lineDash=Z(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=w),b&&(g.fill=b),p.setBoundingRect(Rf(g,r.contentWidth,r.contentHeight,S?0:null))},e.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,v=l&&!c,h=r.borderRadius,d=this,p,g;if(v||r.lineHeight||u&&f){p=this._getOrCreateChild(De),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=h,p.dirtyShape()}if(v){var y=p.style;y.fill=l||null,y.fillOpacity=Z(r.fillOpacity,1)}else if(c){g=this._getOrCreateChild(Mt),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var y=p.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=Z(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=bn(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return nm(r)&&(n=[r.fontStyle,r.fontWeight,tm(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&hr(n)||r.textFont||r.font},e})(Ua),NA={left:!0,right:1,center:1},BA={top:1,bottom:1,middle:1},em=["fontStyle","fontWeight","fontSize","fontFamily"];function tm(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?sf+"px":t+"px"}function rm(t,e){for(var r=0;r<em.length;r++){var n=em[r],i=e[n];i!=null&&(t[n]=i)}}function nm(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function FA(t){return im(t),I(t.rich,im),t}function im(t){if(t){t.font=Me.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||NA[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||BA[r]?r:"top";var n=t.padding;n&&(t.padding=df(t.padding))}}function am(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function om(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function sm(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function lm(t){var e=t.text;return e!=null&&(e+=""),e}function mc(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var um=1e-4,fm=20,zA=14;function VA(t){return t.replace(/^\s+|\s+$/g,"")}var qe=Math.min,ge=Math.max,Be=Math.abs,Or=Math.round,Hn=Math.floor,Xa=Math.ceil,Un=Math.pow,qa=Math.log,yc=Math.LN10,GA=Math.PI,HA=Math.random;function It(t,e,r,n){var i=e[0],a=e[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(t<=i)return o;if(t>=a)return s}else{if(t>=i)return o;if(t<=a)return s}else{if(t===i)return o;if(t===a)return s}return(t-i)/l*u+o}var Q=UA;function UA(t,e,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return _c(t,e,r)}function _c(t,e,r){return q(t)?WA(t)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function WA(t){return!!VA(t).match(/%$/)}function ve(t,e,r){return isNaN(e)?r?""+t:+t:(e=qe(ge(0,e),fm),t=(+t).toFixed(e),r?t:+t)}function Sc(t){return t.sort(function(e,r){return e-r}),t}function nn(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Or(t*e)/e===t)return r}return YA(t)}function YA(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,i=r>0?r:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return ge(0,o-n)}function $A(t,e,r){var n=Be(t[1]-t[0]);if(!isFinite(n)||n===0)return NaN;var i=qa(2*Be(r||1)*Be(n))/yc,a=qa(Be(e))/yc,o=ge(0,Xa(-i+a));return isFinite(o)||(o=NaN),o}function XA(t,e){var r=qr(t,function(h,d){return h+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Un(10,e),i=$(t,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=$(i,function(h){return Hn(h)}),s=qr(o,function(h,d){return h+d},0),l=$(i,function(h,d){return h-o[d]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,v=l.length;c<v;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return $(o,function(h){return h/n})}function qA(t,e){var r=ge(nn(t),nn(e)),n=t+e;return r>fm?n:ve(n,r)}var cm=Un(2,53)-1;function hm(t){var e=GA*2;return(t%e+e)%e}function Zs(t){return t>-um&&t<um}var ZA=/^(?:(\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 Oi(t){if(t instanceof Date)return t;if(q(t)){var e=ZA.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(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(t==null)return new Date(NaN);return new Date(Or(t))}function vm(t){return Un(10,bc(t))}function bc(t){if(t===0)return 0;var e=Hn(qa(t)/yc);return t/Un(10,e)>=10&&e++,e}var dm=2;function wc(t,e){var r=bc(t),n=Un(10,r),i=t/n,a;return e===dm?a=1:e?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,t=a*n,ve(t,-r)}function Ks(t){var e=parseFloat(t);return e==t&&(e!==0||!q(t)||t.indexOf("x")<=0)?e:NaN}function KA(t){return!isNaN(Ks(t))}function Tc(){return Or(HA()*9)}function pm(t,e){return e===0?t:pm(e,t%e)}function gm(t,e){return t==null?e:e==null?t:t*e/pm(t,e)}function Lt(t){return t!=null&&isFinite(t)}var jA="[ECharts] ",QA=typeof console<"u"&&console.warn&&console.log;function JA(t,e,r){QA&&console[t](jA+e)}function mm(t,e){JA("error",t)}function ht(t){throw new Error(t)}function ym(t,e,r){return(e-t)*r+t}var _m="series\0",eD="\0_ec_\0";function nt(t){return t instanceof Array?t:t==null?[]:[t]}function js(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var Sm=["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 Za(t){return j(t)&&!W(t)&&!(t instanceof Date)?t.value:t}function tD(t){return j(t)&&!(t instanceof Array)}function rD(t,e,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=te();I(e,function(l,u){if(!j(l)){e[u]=null;return}});var s=nD(t,o,r);return(n||i)&&iD(s,t,o,e),n&&aD(s,e),n||i?oD(s,e,i):a&&sD(s,e),lD(s),s}function nD(t,e,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<t.length;i++){var a=t[i];a&&a.id!=null&&e.set(a.id,i),n.push({existing:r==="replaceMerge"||ja(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function iD(t,e,r,n){I(n,function(i,a){if(!(!i||i.id==null)){var o=Ka(i.id),s=r.get(o);if(s!=null){var l=t[s];Wt(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=e[s],n[a]=null}}})}function aD(t,e){I(e,function(r,n){if(!(!r||r.name==null))for(var i=0;i<t.length;i++){var a=t[i].existing;if(!t[i].newOption&&a&&(a.id==null||r.id==null)&&!ja(r)&&!ja(a)&&bm("name",a,r)){t[i].newOption=r,e[n]=null;return}}})}function oD(t,e,r){I(e,function(n){if(n){for(var i,a=0;(i=t[a])&&(i.newOption||ja(i.existing)||i.existing&&n.id!=null&&!bm("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function sD(t,e){I(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function lD(t){var e=te();I(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),I(t,function(r){var n=r.newOption;Wt(!n||n.id==null||!e.get(n.id)||e.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),I(t,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(j(a)){if(o.name=a.name!=null?Ka(a.name):i?i.name:_m+n,i)o.id=Ka(i.id);else if(a.id!=null)o.id=Ka(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function bm(t,e,r){var n=wr(e[t],null),i=wr(r[t],null);return n!=null&&i!=null&&n===i}function Ka(t){return wr(t,"")}function wr(t,e){return t==null?e:q(t)?t:me(t)||cf(t)?t+"":e}function xc(t){var e=t.name;return!!(e&&e.indexOf(_m))}function ja(t){return t&&t.id!=null&&Ka(t.id).indexOf(eD)===0}function uD(t,e,r){I(t,function(n){var i=n.newOption;j(i)&&(n.keyInfo.mainType=e,n.keyInfo.subType=fD(e,i,n.existing,r))})}function fD(t,e,r,n){var i=e.type?e.type:r?r.subType:n.determineSubType(t,e);return i}function Wn(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return W(e.dataIndex)?$(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return W(e.name)?$(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function Se(){var t="__ec_inner_"+cD++;return function(e){return e[t]||(e[t]={})}}var cD=Tc();function Cc(t,e,r){var n=Ac(e,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,f){var c=Qa(t,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function Ac(t,e){var r;if(q(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var i=te(),a={},o=!1;return I(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&fe(e.includeMainTypes,f)<0)){o=o||!!f;var v=i.get(f)||i.set(f,{});v[c]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Pt={useDefault:!0,enableAll:!1,enableNone:!1};function Qa(t,e,r,n){n=n||Pt;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=t.getComponent(e))?[l]:[],s}if(i==="none"||i===!1){if(n.enableNone)return s.models=[],s;i=-1}return i==="all"&&(n.enableAll?i=a=o=null:i=-1),s.models=t.queryComponents({mainType:e,index:i,id:a,name:o}),s}function hD(t,e,r){var n={};n[e+"Id"]=t[e+"Id"],n[e+"Index"]=t[e+"Index"],n[e+"Name"]=t[e+"Name"];var i={mainType:e,query:n};return r&&(i.subType=r),i}function wm(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function vD(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function dD(t){return t==="auto"?ie.domSupported?"html":"richText":t||"html"}function Tm(t,e,r,n,i){var a=e==null||e==="auto";if(n==null)return n;if(me(n)){var o=ym(r||0,n,i);return ve(o,a?Math.max(nn(r||0),nn(n)):e)}else{if(q(n))return i<1?r:n;for(var s=[],l=r,u=n,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var v=t.getDimensionInfo(c);if(v&&v.type==="ordinal")s[c]=(i<1&&l?l:u)[c];else{var h=l&&l[c]?l[c]:0,d=u[c],o=ym(h,d,i);s[c]=ve(o,a?Math.max(nn(h),nn(d)):e)}}return s}}function Et(){return[1/0,-1/0]}function Dc(t,e){Nr(e)&&(e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e))}function xm(t,e){Nr(e)&&e<t[0]&&(t[0]=e)}function Cm(t,e){Nr(e)&&e>t[1]&&(t[1]=e)}function pD(t,e){Ni(e[0],e[1])&&(e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]))}function Nr(t){return t!=null&&isFinite(t)}function Ni(t,e){return Nr(t)&&Nr(e)&&t<=e}function gD(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}function mD(t){Ni(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function Am(){var t="__ec_once_"+yD++;return function(e,r){tt(e,t)||(e[t]=1,r())}}var yD=Tc();function Mc(t,e,r){var n=te(),i=0;I(t,function(a){var o=e(a),s=n.get(o)||0;r&&r(a,s),!s&&!r&&(t[i++]=a),n.set(o,s+1)}),r||(t.length=i)}function _D(t){return t.value+""}function SD(t){return t+""}function Dm(t,e){return Z(e,!0)?t.seriesIndex+2:0}function Mm(t,e,r){var n=t.getData().count();return{progressiveRender:r.progressiveEnabled&&e.incrementalPrepareRender&&n>=r.threshold,large:t.get("large")&&n>=t.get("largeThreshold"),modDataCount:t.get("progressiveChunkMode")==="mod"?t.getData().count():null}}function Ic(t,e){return{seriesType:t,overallReset:e}}function Lc(t){return{overallReset:t}}var ue=Se(),Pc=function(t,e,r,n){if(n){var i=ue(n);i.dataIndex=r,i.dataType=e,i.seriesIndex=t,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=ue(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}},Bi="undefined",Im="series",Lm=te(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),_t="original",Ze="arrayRows",kt="objectRows",Xt="keyedColumns",an="typedArray",Pm="unknown",qt="column",Yn="row",bD=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Em=(function(){function t(e){I(bD,function(r){this[r]=de(e[r],e)},this)}return t})();function wD(t,e){return e.mainType===Im?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}var km=1,Rm={},Om=Se(),Ec=Se(),kc=0,Qs=1,Js=2,Rt=["emphasis","blur","select"],el=["normal","emphasis","blur","select"],TD=10,xD=9,$n="highlight",tl="downplay",rl="select",Rc="unselect",nl="toggleSelect",Oc="selectchanged";function Fi(t){return t!=null&&t!=="none"}function il(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function Nm(t){il(t,"emphasis",Js)}function Bm(t){t.hoverState===Js&&il(t,"normal",kc)}function Nc(t){il(t,"blur",Qs)}function Fm(t){t.hoverState===Qs&&il(t,"normal",kc)}function CD(t){t.selected=!0}function AD(t){t.selected=!1}function zm(t,e,r){e(t,r)}function Br(t,e,r){zm(t,e,r),t.isGroup&&t.traverse(function(n){zm(n,e,r)})}function Vm(t,e){switch(e){case"emphasis":t.hoverState=Js;break;case"normal":t.hoverState=kc;break;case"blur":t.hoverState=Qs;break;case"select":t.selected=!0}}function DD(t,e,r,n){for(var i=t.style,a={},o=0;o<e.length;o++){var s=e[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function MD(t,e,r,n){var i=r&&fe(r,"select")>=0,a=!1;if(t instanceof pe){var o=Om(t),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Fi(s)||Fi(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=z({},n),u=z({},u),u.fill=s):!Fi(u.fill)&&Fi(s)?(a=!0,n=z({},n),u=z({},u),u.fill=Wf(s)):!Fi(u.stroke)&&Fi(l)&&(a||(n=z({},n),u=z({},u)),u.stroke=Wf(l)),n.style=u}}if(n&&n.z2==null){a||(n=z({},n));var f=t.z2EmphasisLift;n.z2=t.z2+(f??TD)}return n}function ID(t,e,r){if(r&&r.z2==null){r=z({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??xD)}return r}function LD(t,e,r){var n=fe(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:DD(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=z({},r),o=z({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Bc(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return MD(this,t,e,r);if(t==="blur")return LD(this,t,r);if(t==="select")return ID(this,t,r)}return r}function PD(t){t.stateProxy=Bc;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=Bc),r&&(r.stateProxy=Bc)}function Gm(t,e){!$m(t,e)&&!t.__highByOuter&&Br(t,Nm)}function Hm(t,e){!$m(t,e)&&!t.__highByOuter&&Br(t,Bm)}function al(t,e){t.__highByOuter|=1<<(e||0),Br(t,Nm)}function ol(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Br(t,Bm)}function ED(t){Br(t,Nc)}function Um(t){Br(t,Fm)}function Wm(t){Br(t,CD)}function Ym(t){Br(t,AD)}function $m(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Xm(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(i,a){var o=Ec(a),s=wD(t,a),l=i==="series";!l&&n.push(s),o.isBlured&&(s.group.traverse(function(u){Fm(u)}),l&&r.push(a)),o.isBlured=!1}),I(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,e)})}function Fc(t,e,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var v=u.getItemGraphicEl(f[c]);v&&Um(v)}}if(t!=null&&!(!e||e==="none")){var o=i.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var v=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!v||e==="series"&&f)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(g){g.__highByOuter&&f&&e==="self"||Nc(g)}),ut(e))a(u.getData(),e);else if(j(e))for(var d=ce(e),p=0;p<d.length;p++)a(u.getData(d[p]),e[d[p]]);l.push(u),Ec(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,i)}})}}function zc(t,e,r){if(!(t==null||e==null)){var n=r.getModel().getComponent(t,e);if(n){Ec(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){Nc(a)})}}}function kD(t,e,r){var n=t.seriesIndex,i=t.getData(e.dataType);if(i){var a=Wn(i,e);a=(W(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=ue(o);Fc(n,u.focus,u.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);f!=null&&Fc(n,f,c,r)}}}function Vc(t,e,r,n){var i={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return i;var a=n.getModel().getComponent(t,e);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(ue(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function RD(t,e,r){var n=ue(t),i=Vc(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&zc(n.componentMainType,n.componentIndex,r),I(a,function(s){return Gm(s,e)})):(Fc(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&zc(n.componentMainType,n.componentIndex,r),Gm(t,e))}function OD(t,e,r){Xm(r);var n=ue(t),i=Vc(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?I(i,function(a){return Hm(a,e)}):Hm(t,e)}function ND(t,e,r){if(Uc(e)){var n=e.dataType,i=t.getData(n),a=Wn(i,e);W(a)||(a=[a]),t[e.type===nl?"toggleSelect":e.type===rl?"select":"unselect"](a,n)}}function qm(t){var e=t.getAllData();I(e,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){t.isSelected(o,i)?Wm(a):Ym(a)})})}function BD(t){var e=[];return t.eachSeries(function(r){var n=r.getAllData();I(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function Gc(t,e,r){Km(t,!0),Br(t,PD),zD(t,e,r)}function FD(t){Km(t,!1)}function Fr(t,e,r,n){n?FD(t):Gc(t,e,r)}function zD(t,e,r){var n=ue(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var Zm=["emphasis","blur","select"],VD={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function zr(t,e,r,n){r=r||"itemStyle";for(var i=0;i<Zm.length;i++){var a=Zm[i],o=e.getModel([a,r]),s=t.ensureState(a);s.style=o[VD[r]]()}}function Km(t,e){var r=e===!1,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Hc(t){return!!(t&&t.__highDownDispatcher)}function GD(t){var e=Rm[t];return e==null&&km<=32&&(e=Rm[t]=km++),e}function Uc(t){var e=t.type;return e===rl||e===Rc||e===nl}function jm(t){var e=t.type;return e===$n||e===tl}function HD(t){var e=Om(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var zi=tn.CMD,UD=[[],[],[]],Qm=Math.sqrt,WD=Math.atan2;function YD(t,e){if(e){var r=t.data,n=t.len(),i,a,o,s,l,u,f=zi.M,c=zi.C,v=zi.L,h=zi.R,d=zi.A,p=zi.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case v:a=1;break;case c:a=3;break;case p:a=2;break;case d:var g=e[4],m=e[5],y=Qm(e[0]*e[0]+e[1]*e[1]),_=Qm(e[2]*e[2]+e[3]*e[3]),S=WD(-e[1]/_,e[0]/y);r[o]*=y,r[o++]+=g,r[o]*=_,r[o++]+=m,r[o++]*=y,r[o++]*=_,r[o++]+=S,r[o++]+=S,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],wt(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],wt(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var b=UD[l];b[0]=r[o++],b[1]=r[o++],wt(b,b,e),r[s++]=b[0],r[s++]=b[1]}}t.increaseVersion()}}var Wc=Math.sqrt,sl=Math.sin,ll=Math.cos,Ja=Math.PI;function Jm(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Yc(t,e){return(t[0]*e[0]+t[1]*e[1])/(Jm(t)*Jm(e))}function ey(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Yc(t,e))}function ty(t,e,r,n,i,a,o,s,l,u,f){var c=l*(Ja/180),v=ll(c)*(t-r)/2+sl(c)*(e-n)/2,h=-1*sl(c)*(t-r)/2+ll(c)*(e-n)/2,d=v*v/(o*o)+h*h/(s*s);d>1&&(o*=Wc(d),s*=Wc(d));var p=(i===a?-1:1)*Wc((o*o*(s*s)-o*o*(h*h)-s*s*(v*v))/(o*o*(h*h)+s*s*(v*v)))||0,g=p*o*h/s,m=p*-s*v/o,y=(t+r)/2+ll(c)*g-sl(c)*m,_=(e+n)/2+sl(c)*g+ll(c)*m,S=ey([1,0],[(v-g)/o,(h-m)/s]),b=[(v-g)/o,(h-m)/s],w=[(-1*v-g)/o,(-1*h-m)/s],T=ey(b,w);if(Yc(b,w)<=-1&&(T=Ja),Yc(b,w)>=1&&(T=0),T<0){var C=Math.round(T/Ja*1e6)/1e6;T=Ja*2+C%2*Ja}f.addData(u,y,_,o,s,S,T,c,a)}var $D=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,XD=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function qD(t){var e=new tn;if(!t)return e;var r=0,n=0,i=r,a=n,o,s=tn.CMD,l=t.match($D);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),v=void 0,h=f.match(XD)||[],d=h.length,p=0;p<d;p++)h[p]=parseFloat(h[p]);for(var g=0;g<d;){var m=void 0,y=void 0,_=void 0,S=void 0,b=void 0,w=void 0,T=void 0,C=r,D=n,x=void 0,A=void 0;switch(c){case"l":r+=h[g++],n+=h[g++],v=s.L,e.addData(v,r,n);break;case"L":r=h[g++],n=h[g++],v=s.L,e.addData(v,r,n);break;case"m":r+=h[g++],n+=h[g++],v=s.M,e.addData(v,r,n),i=r,a=n,c="l";break;case"M":r=h[g++],n=h[g++],v=s.M,e.addData(v,r,n),i=r,a=n,c="L";break;case"h":r+=h[g++],v=s.L,e.addData(v,r,n);break;case"H":r=h[g++],v=s.L,e.addData(v,r,n);break;case"v":n+=h[g++],v=s.L,e.addData(v,r,n);break;case"V":n=h[g++],v=s.L,e.addData(v,r,n);break;case"C":v=s.C,e.addData(v,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),r=h[g-2],n=h[g-1];break;case"c":v=s.C,e.addData(v,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n),r+=h[g-2],n+=h[g-1];break;case"S":m=r,y=n,x=e.len(),A=e.data,o===s.C&&(m+=r-A[x-4],y+=n-A[x-3]),v=s.C,C=h[g++],D=h[g++],r=h[g++],n=h[g++],e.addData(v,m,y,C,D,r,n);break;case"s":m=r,y=n,x=e.len(),A=e.data,o===s.C&&(m+=r-A[x-4],y+=n-A[x-3]),v=s.C,C=r+h[g++],D=n+h[g++],r+=h[g++],n+=h[g++],e.addData(v,m,y,C,D,r,n);break;case"Q":C=h[g++],D=h[g++],r=h[g++],n=h[g++],v=s.Q,e.addData(v,C,D,r,n);break;case"q":C=h[g++]+r,D=h[g++]+n,r+=h[g++],n+=h[g++],v=s.Q,e.addData(v,C,D,r,n);break;case"T":m=r,y=n,x=e.len(),A=e.data,o===s.Q&&(m+=r-A[x-4],y+=n-A[x-3]),r=h[g++],n=h[g++],v=s.Q,e.addData(v,m,y,r,n);break;case"t":m=r,y=n,x=e.len(),A=e.data,o===s.Q&&(m+=r-A[x-4],y+=n-A[x-3]),r+=h[g++],n+=h[g++],v=s.Q,e.addData(v,m,y,r,n);break;case"A":_=h[g++],S=h[g++],b=h[g++],w=h[g++],T=h[g++],C=r,D=n,r=h[g++],n=h[g++],v=s.A,ty(C,D,r,n,w,T,_,S,b,v,e);break;case"a":_=h[g++],S=h[g++],b=h[g++],w=h[g++],T=h[g++],C=r,D=n,r+=h[g++],n+=h[g++],v=s.A,ty(C,D,r,n,w,T,_,S,b,v,e);break}}(c==="z"||c==="Z")&&(v=s.Z,e.addData(v),r=i,n=a),o=v}return e.toStatic(),e}var ry=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(pe);function ny(t){return t.setData!=null}function iy(t,e){var r=qD(t),n=z({},e);return n.buildPath=function(i){var a=ny(i);if(a&&i.canSave()){i.appendPath(r);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=a?i.getContext():i;o&&r.rebuildPath(o,1)}},n.applyTransform=function(i){YD(r,i),this.dirtyShape()},n}function ZD(t,e){return new ry(iy(t,e))}function KD(t,e){var r=iy(t,e),n=(function(i){V(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(ry);return n}function jD(t,e){for(var r=[],n=t.length,i=0;i<n;i++){var a=t[i];r.push(a.getUpdatedPathProxy(!0))}var o=new pe(e);return o.createPathProxy(),o.buildPath=function(s){if(ny(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var Ce=(function(t){V(e,t);function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var i=fe(this._children,r);return i>=0&&this.replaceAt(n,i),this},e.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(r){var n=this.__zr,i=this._children,a=fe(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},e.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var n=new ne(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(ne.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e})(Hs);Ce.prototype.type="group";var QD=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})(),eo=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new QD},e.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e})(pe);eo.prototype.type="circle";var JD=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})(),$c=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new JD},e.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},e})(pe);$c.prototype.type="ellipse";var ay=Math.PI,Xc=ay*2,Xn=Math.sin,Vi=Math.cos,eM=Math.acos,Ke=Math.atan2,oy=Math.abs,to=Math.sqrt,ro=Math.max,Tr=Math.min,Zt=1e-4;function tM(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,c=s-a,v=c*l-f*u;if(!(v*v<Zt))return v=(f*(e-a)-c*(t-i))/v,[t+v*l,e+v*u]}function ul(t,e,r,n,i,a,o){var s=t-r,l=e-n,u=(o?a:-a)/to(s*s+l*l),f=u*l,c=-u*s,v=t+f,h=e+c,d=r+f,p=n+c,g=(v+d)/2,m=(h+p)/2,y=d-v,_=p-h,S=y*y+_*_,b=i-a,w=v*p-d*h,T=(_<0?-1:1)*to(ro(0,b*b*S-w*w)),C=(w*_-y*T)/S,D=(-w*y-_*T)/S,x=(w*_+y*T)/S,A=(-w*y+_*T)/S,L=C-g,M=D-m,P=x-g,E=A-m;return L*L+M*M>P*P+E*E&&(C=x,D=A),{cx:C,cy:D,x0:-f,y0:-c,x1:C*(i/b-1),y1:D*(i/b-1)}}function rM(t){var e;if(W(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function nM(t,e){var r,n=ro(e.r,0),i=ro(e.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,c=e.cy,v=!!e.clockwise,h=oy(u-l),d=h>Xc&&h%Xc;if(d>Zt&&(h=d),!(n>Zt))t.moveTo(f,c);else if(h>Xc-Zt)t.moveTo(f+n*Vi(l),c+n*Xn(l)),t.arc(f,c,n,l,u,!v),i>Zt&&(t.moveTo(f+i*Vi(u),c+i*Xn(u)),t.arc(f,c,i,u,l,v));else{var p=void 0,g=void 0,m=void 0,y=void 0,_=void 0,S=void 0,b=void 0,w=void 0,T=void 0,C=void 0,D=void 0,x=void 0,A=void 0,L=void 0,M=void 0,P=void 0,E=n*Vi(l),k=n*Xn(l),O=i*Vi(u),R=i*Xn(u),N=h>Zt;if(N){var F=e.cornerRadius;F&&(r=rM(F),p=r[0],g=r[1],m=r[2],y=r[3]);var B=oy(n-i)/2;if(_=Tr(B,m),S=Tr(B,y),b=Tr(B,p),w=Tr(B,g),D=T=ro(_,S),x=C=ro(b,w),(T>Zt||C>Zt)&&(A=n*Vi(u),L=n*Xn(u),M=i*Vi(l),P=i*Xn(l),h<ay)){var G=tM(E,k,M,P,A,L,O,R);if(G){var X=E-G[0],H=k-G[1],K=A-G[0],ae=L-G[1],ke=1/Xn(eM((X*K+H*ae)/(to(X*X+H*H)*to(K*K+ae*ae)))/2),Ae=to(G[0]*G[0]+G[1]*G[1]);D=Tr(T,(n-Ae)/(ke+1)),x=Tr(C,(i-Ae)/(ke-1))}}}if(!N)t.moveTo(f+E,c+k);else if(D>Zt){var he=Tr(m,D),Te=Tr(y,D),J=ul(M,P,E,k,n,he,v),se=ul(A,L,O,R,n,Te,v);t.moveTo(f+J.cx+J.x0,c+J.cy+J.y0),D<T&&he===Te?t.arc(f+J.cx,c+J.cy,D,Ke(J.y0,J.x0),Ke(se.y0,se.x0),!v):(he>0&&t.arc(f+J.cx,c+J.cy,he,Ke(J.y0,J.x0),Ke(J.y1,J.x1),!v),t.arc(f,c,n,Ke(J.cy+J.y1,J.cx+J.x1),Ke(se.cy+se.y1,se.cx+se.x1),!v),Te>0&&t.arc(f+se.cx,c+se.cy,Te,Ke(se.y1,se.x1),Ke(se.y0,se.x0),!v))}else t.moveTo(f+E,c+k),t.arc(f,c,n,l,u,!v);if(!(i>Zt)||!N)t.lineTo(f+O,c+R);else if(x>Zt){var he=Tr(p,x),Te=Tr(g,x),J=ul(O,R,A,L,i,-Te,v),se=ul(E,k,M,P,i,-he,v);t.lineTo(f+J.cx+J.x0,c+J.cy+J.y0),x<C&&he===Te?t.arc(f+J.cx,c+J.cy,x,Ke(J.y0,J.x0),Ke(se.y0,se.x0),!v):(Te>0&&t.arc(f+J.cx,c+J.cy,Te,Ke(J.y0,J.x0),Ke(J.y1,J.x1),!v),t.arc(f,c,i,Ke(J.cy+J.y1,J.cx+J.x1),Ke(se.cy+se.y1,se.cx+se.x1),v),he>0&&t.arc(f+se.cx,c+se.cy,he,Ke(se.y1,se.x1),Ke(se.y0,se.x0),!v))}else t.lineTo(f+O,c+R),t.arc(f,c,i,u,l,v)}t.closePath()}}}var iM=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t})(),xr=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new iM},e.prototype.buildPath=function(r,n){nM(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(pe);xr.prototype.type="sector";var aM=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})(),fl=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new aM},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},e})(pe);fl.prototype.type="ring";function oM(t,e,r,n){var i=[],a=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var v=0,h=t.length;v<h;v++)xi(f,f,t[v]),Ci(c,c,t[v]);xi(f,f,n[0]),Ci(c,c,n[1])}for(var v=0,h=t.length;v<h;v++){var d=t[v];if(r)l=t[v?v-1:h-1],u=t[(v+1)%h];else if(v===0||v===h-1){i.push(pC(t[v]));continue}else l=t[v-1],u=t[v+1];gC(a,u,l),wf(a,a,e);var p=Tf(d,l),g=Tf(d,u),m=p+g;m!==0&&(p/=m,g/=m),wf(o,a,-p),wf(s,a,g);var y=jp([],d,o),_=jp([],d,s);n&&(Ci(y,y,f),xi(y,y,c),Ci(_,_,f),xi(_,_,c)),i.push(y),i.push(_)}return r&&i.push(i.shift()),i}function sy(t,e,r){var n=e.smooth,i=e.points;if(i&&i.length>=2){if(n){var a=oM(i,n,r,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{t.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;s<c;s++)t.lineTo(i[s][0],i[s][1])}r&&t.closePath()}}var sM=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})(),Gi=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new sM},e.prototype.buildPath=function(r,n){sy(r,n,!0)},e})(pe);Gi.prototype.type="polygon";var lM=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})(),on=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new lM},e.prototype.buildPath=function(r,n){sy(r,n,!1)},e})(pe);on.prototype.type="polyline";var uM={},fM=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})(),Cr=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new fM},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=Kg(uM,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},e})(pe);Cr.prototype.type="line";var vt=[],cM=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t})();function ly(t,e,r){var n=t.cpx2,i=t.cpy2;return n!=null||i!=null?[(r?_g:Ye)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?_g:Ye)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?bg:ct)(t.x1,t.cpx1,t.x2,e),(r?bg:ct)(t.y1,t.cpy1,t.y2,e)]}var qc=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new cM},e.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,c=n.cpy2,v=n.percent;v!==0&&(r.moveTo(i,a),f==null||c==null?(v<1&&(As(i,l,o,v,vt),l=vt[1],o=vt[2],As(a,u,s,v,vt),u=vt[1],s=vt[2]),r.quadraticCurveTo(l,u,o,s)):(v<1&&(Cs(i,l,f,o,v,vt),l=vt[1],f=vt[2],o=vt[3],Cs(a,u,c,s,v,vt),u=vt[1],c=vt[2],s=vt[3]),r.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(r){return ly(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=ly(this.shape,r,!0);return _C(n,n)},e})(pe);qc.prototype.type="bezier-curve";var hM=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),cl=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new hM},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+i,c*o+a),r.arc(i,a,o,s,l,!u)},e})(pe);cl.prototype.type="arc";var uy=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),pe.prototype.getBoundingRect.call(this)},e})(pe),fy=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})(),cy=(function(t){V(e,t);function e(r,n,i,a,o,s){var l=t.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return e})(fy),vM=(function(t){V(e,t);function e(r,n,i,a,o){var s=t.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return e})(fy),Zc=Math.min,dM=Math.max,hl=Math.abs,qn=[0,0],Zn=[0,0],Ve=tg(),vl=Ve.minTv,dl=Ve.maxTv,hy=(function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new re;for(var n=0;n<2;n++)this._axes[n]=new re;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var n=this._corners,i=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);re.sub(i[0],n[1],n[0]),re.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},t.prototype.intersect=function(e,r,n){var i=!0,a=!r;return r&&re.set(r,0,0),Ve.reset(n,!a),!this._intersectCheckOneSide(this,e,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(i=!1,a)||!a&&!Ve.negativeSize&&re.copy(r,i?Ve.useDir?Ve.dirMinTv:vl:dl),i},t.prototype._intersectCheckOneSide=function(e,r,n,i){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,qn),e._getProjMinMaxOnAxis(o,r._corners,Zn),Ve.negativeSize||qn[1]<Zn[0]||qn[0]>Zn[1]){if(a=!1,Ve.negativeSize||n)return a;var l=hl(Zn[0]-qn[1]),u=hl(qn[0]-Zn[1]);Zc(l,u)>dl.len()&&(l<u?re.scale(dl,s,-l*i):re.scale(dl,s,u*i))}else if(!n){var l=hl(Zn[0]-qn[1]),u=hl(qn[0]-Zn[1]);(Ve.useDir||Zc(l,u)<vl.len())&&((l<u||!Ve.bidirectional)&&(re.scale(vl,s,l*i),Ve.useDir&&Ve.calcDirMTV()),(l>=u||!Ve.bidirectional)&&(re.scale(vl,s,-u*i),Ve.useDir&&Ve.calcDirMTV()))}}return a},t.prototype._getProjMinMaxOnAxis=function(e,r,n){for(var i=this._axes[e],a=this._origin,o=r[0].dot(i)+a[e],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(i)+a[e];s=Zc(f,s),l=dM(f,l)}n[0]=s+Ve.touchThreshold,n[1]=l-Ve.touchThreshold,Ve.negativeSize=n[1]<n[0]},t})(),pM=1,gM=[],mM=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=pM,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new ne(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(gM)),r.union(a)}this._rect=r}return this._rect},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},e})(Ua),yM=Se();function _M(t,e,r,n,i){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,f=void 0,c=void 0;n?(u=Z(n.duration,200),f=Z(n.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),ee(c)&&(c=c(r,i)),ee(u)&&(u=u(r));var v={duration:u||0,delay:c,easing:f};return v}else return null}function Kc(t,e,r,n,i,a,o){var s=!1,l;ee(i)?(o=a,a=i,i=null):j(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var f=_M(t,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):null);if(f&&f.duration>0){var c=f.duration,v=f.delay,h=f.easing,d={duration:c,delay:v||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,d):e.animateTo(r,d)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function Ie(t,e,r,n,i,a){Kc("update",t,e,r,n,i,a)}function Ge(t,e,r,n,i,a){Kc("enter",t,e,r,n,i,a)}function no(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function pl(t,e,r,n,i,a){no(t)||Kc("leave",t,e,r,n,i,a)}function vy(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),pl(t,{style:{opacity:0}},e,r,n)}function Hi(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(i){i.isGroup||vy(i,e,r,n)}):vy(t,e,r,n)}function Ui(t){yM(t).oldStyle=t.style}var jc={},sn=["x","y"],Wi=["width","height"],dy=0,py=1,Qc=2;function SM(t){return pe.extend(t)}var bM=KD;function wM(t,e){return bM(t,e)}function Kt(t,e){jc[t]=e}function TM(t){if(jc.hasOwnProperty(t))return jc[t]}function Jc(t,e,r,n){var i=ZD(t,e);return r&&(n==="center"&&(r=my(r,i.getBoundingRect())),yy(i,r)),i}function gy(t,e,r){var n=new Mt({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(my(e,a))}}});return n}function my(t,e){var r=e.width/e.height,n=t.height*r,i;n<=t.width?i=t.height:(n=t.width,i=n/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var eh=jD;function yy(t,e){if(t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function io(t,e){return Kg(t,t,{lineWidth:e}),t}function xM(t,e){return jg(t,t,e),t}var CM=Gn;function AM(t,e){for(var r=Ia([]);t&&t!==e;)La(r,t.getLocalTransform(),r),t=t.parent;return r}function th(t,e,r){return e&&!ut(e)&&(e=Oa.getLocalTransform(e)),r&&(e=Pa([],e)),wt([],t,e)}function DM(t,e,r){var n=e[4]===0||e[5]===0||e[0]===0?1:Be(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:Be(2*e[4]/e[2]),a=[t==="left"?-n:t==="right"?n:0,t==="top"?-i:t==="bottom"?i:0];return a=th(a,e,r),Be(a[0])>Be(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function _y(t){return!t.isGroup}function MM(t){return t.shape!=null}function Sy(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(l){_y(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return MM(o)&&(s.shape=oe(o.shape)),s}var a=n(t);e.traverse(function(o){if(_y(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Ie(o,l,r,ue(o).dataIndex)}}})}function IM(t,e){return $(t,function(r){var n=r[0];n=ge(n,e.x),n=qe(n,e.x+e.width);var i=r[1];return i=ge(i,e.y),i=qe(i,e.y+e.height),[n,i]})}function LM(t,e){var r=ge(t.x,e.x),n=qe(t.x+t.width,e.x+e.width),i=ge(t.y,e.y),a=qe(t.y+t.height,e.y+e.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function rh(t,e,r){var n=z({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(i.image=t.slice(8),le(i,r),new Mt(n)):Jc(t.replace("path://",""),n,r,"center")}function PM(t,e,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(by(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function by(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,c=s-a,v=nh(f,c,l,u);if(EM(v))return!1;var h=t-i,d=e-a,p=nh(h,d,l,u)/v;if(p<0||p>1)return!1;var g=nh(h,d,f,c)/v;return!(g<0||g>1)}function nh(t,e,r,n){return t*n-r*e}function EM(t){return t<=1e-6&&t>=-1e-6}function gl(t,e,r,n,i){return e==null||(me(e)?we[0]=we[1]=we[2]=we[3]=e:(we[0]=e[0],we[1]=e[1],we[2]=e[2],we[3]=e[3]),n&&(we[0]=ge(0,we[0]),we[1]=ge(0,we[1]),we[2]=ge(0,we[2]),we[3]=ge(0,we[3])),r&&(we[0]=-we[0],we[1]=-we[1],we[2]=-we[2],we[3]=-we[3]),wy(t,we,"x","width",3,1,i&&i[0]||0),wy(t,we,"y","height",0,2,i&&i[1]||0)),t}var we=[0,0,0,0];function wy(t,e,r,n,i,a,o){var s=e[a]+e[i],l=t[n];t[n]+=s,o=ge(0,qe(o,l)),t[n]<o?(t[n]=o,t[r]+=e[i]>=0?-e[i]:e[a]>=0?l+e[a]:Be(s)>1e-8?(l-o)*e[i]/s:0):t[r]-=e[i]}function ml(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,i=q(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&I(ce(l),function(f){tt(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ue(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:le({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function ih(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function yl(t,e){if(t)if(W(t))for(var r=0;r<t.length;r++)ih(t[r],e);else ih(t,e)}function ah(t){return!t||Be(t[1])<_l&&Be(t[2])<_l||Be(t[0])<_l&&Be(t[3])<_l}var _l=1e-5;function ao(t,e){return t?ne.copy(t,e):e.clone()}function oh(t,e){return e?yf(t||dr(),e):void 0}function Ty(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function kM(t){var e=-1/0,r=1/0;ih(t,function(a){n(a),n(a.getTextContent()),n(a.getTextGuideLine())});function n(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)i(a.states[o[s]]);i(a)}}function i(a){if(a){var o=a.z2;o>e&&(e=o),o<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function xy(t,e,r){Cy(t,e,r,-1/0)}function Cy(t,e,r,n){if(t.ignoreModelZ)return n;var i=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),l=0;l<s.length;l++)n=ge(Cy(s[l],e,r,n),n);else t.z=e,t.zlevel=r,n=ge(t.z2||0,n);if(i&&(i.z=e,i.zlevel=r,isFinite(n)&&(i.z2=n+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=r,isFinite(n)&&(a.z2=n+(u&&u.showAbove?1:-1))}return n}function RM(t){return t.animation={duration:0},t}function OM(t,e){return e?yf(oo.transform,e):Ia(oo.transform),oo.decomposeTransform(),Na(t,oo),t}var oo=new Oa;oo.transform=dr();function NM(t){var e=t.getZr().painter;return e.getType()==="canvas"?e:null}Kt("circle",eo),Kt("ellipse",$c),Kt("sector",xr),Kt("ring",fl),Kt("polygon",Gi),Kt("polyline",on),Kt("rect",De),Kt("line",Cr),Kt("bezierCurve",qc),Kt("arc",cl);const Ay=Object.freeze(Object.defineProperty({__proto__:null,Arc:cl,BezierCurve:qc,BoundingRect:ne,Circle:eo,CompoundPath:uy,Ellipse:$c,Group:Ce,HOVER_LAYER_FOR_INCREMENTAL:Qc,HOVER_LAYER_FROM_THRESHOLD:py,HOVER_LAYER_NO:dy,Image:Mt,IncrementalDisplayable:mM,Line:Cr,LinearGradient:cy,OrientedBoundingRect:hy,Path:pe,Point:re,Polygon:Gi,Polyline:on,RadialGradient:vM,Rect:De,Ring:fl,Sector:xr,Text:Me,WH:Wi,XY:sn,applyTransform:th,calcZ2Range:kM,clipPointsByRect:IM,clipRectByRect:LM,createIcon:rh,decomposeTransform:OM,ensureCopyRect:ao,ensureCopyTransform:oh,expandOrShrinkRect:gl,extendPath:wM,extendShape:SM,getCurrentCanvasPainter:NM,getShapeClass:TM,getTransform:AM,groupTransition:Sy,initProps:Ge,isBoundingRectAxisAligned:ah,isElementRemoved:no,lineLineIntersect:by,linePolygonIntersect:PM,makeImage:gy,makePath:Jc,mergePath:eh,payloadDisableAnimation:RM,registerShape:Kt,removeElement:pl,removeElementWithFadeOut:Hi,resizePath:yy,retrieveZInfo:Ty,setTooltipConfig:ml,subPixelOptimize:CM,subPixelOptimizeLine:io,subPixelOptimizeRect:xM,transformDirection:DM,traverseElements:yl,traverseUpdateZ:xy,updateProps:Ie},Symbol.toStringTag,{value:"Module"}));var Sl={};function Dy(t,e){for(var r=0;r<Rt.length;r++){var n=Rt[r],i=e[n],a=t.ensureState(n);a.style=a.style||{},a.style.text=i}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function sh(t,e,r){var n=t.labelFetcher,i=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=ee(t.defaultText)?t.defaultText(i,t,r):t.defaultText);for(var l={normal:s},u=0;u<Rt.length;u++){var f=Rt[u],c=e[f];l[f]=Z(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return l}function Kn(t,e,r,n){r=r||Sl;for(var i=t instanceof Me,a=!1,o=0;o<el.length;o++){var s=e[el[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?t:t.getTextContent();if(a){i||(l||(l=new Me,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=sh(r,e),f=e.normal,c=!!f.getShallow("show"),v=Ot(f,n&&n.normal,r,!1,!i);v.text=u.normal,i||t.setTextConfig(My(f,r,!1));for(var o=0;o<Rt.length;o++){var h=Rt[o],s=e[h];if(s){var d=l.ensureState(h),p=!!Z(s.getShallow("show"),c);if(p!==c&&(d.ignore=!p),d.style=Ot(s,n&&n[h],r,!0,!i),d.style.text=u[h],!i){var g=t.ensureState(h);g.textConfig=My(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(v.x=l.style.x),l.style.y!=null&&(v.y=l.style.y),l.ignore=!c,l.useStyle(v),l.dirty(),r.enableTextSetter&&(so(l).setLabelText=function(m){var y=sh(r,e,m);Dy(l,y)})}else l&&(l.ignore=!0);t.dirty()}function jn(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<Rt.length;n++){var i=Rt[n];r[i]=t.getModel([i,e])}return r}function Ot(t,e,r,n,i){var a={};return BM(a,t,r,n,i),e&&z(a,e),a}function My(t,e,r){e=e||{};var n={},i,a=t.getShallow("rotate"),o=Z(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return i=t.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=e.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(n.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(n.layoutRect=e.layoutRect),n}function BM(t,e,r,n,i){r=r||Sl;var a=e.ecModel,o=a&&a.option.textStyle,s=FM(e),l;if(s){l={};var u="richInheritPlainLabel",f=Z(e.get(u),a?a.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var v=e.getModel(["rich",c]);Ey(l[c]={},v,o,e,f,r,n,i,!1,!0)}}l&&(t.rich=l);var h=e.get("overflow");h&&(t.overflow=h);var d=e.get("lineOverflow");d&&(t.lineOverflow=d);var p=t,g=e.get("minMargin");if(g!=null)g=me(g)?g/2:0,p.margin=[g,g,g,g],p.__marginType=Yi.minMargin;else{var m=e.get("textMargin");m!=null&&(p.margin=df(m),p.__marginType=Yi.textMargin)}Ey(t,e,o,null,null,r,n,i,!0,!1)}function FM(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||Sl).rich;if(r){e=e||{};for(var n=ce(r),i=0;i<n.length;i++){var a=n[i];e[a]=1}}t=t.parentModel}return e}var Iy=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Ly=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Py=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Ey(t,e,r,n,i,a,o,s,l,u){r=!o&&r||Sl;var f=a&&a.inheritColor,c=e.getShallow("color"),v=e.getShallow("textBorderColor"),h=Z(e.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(v==="inherit"||v==="auto")&&(f?v=f:v=null),s||(c=c||r.color,v=v||r.textBorderColor),c!=null&&(t.fill=c),v!=null&&(t.stroke=v);var d=Z(e.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(t.lineWidth=d);var p=Z(e.getShallow("textBorderType"),r.textBorderType);p!=null&&(t.lineDash=p);var g=Z(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);g!=null&&(t.lineDashOffset=g),!o&&h==null&&!u&&(h=a&&a.defaultOpacity),h!=null&&(t.opacity=h),!o&&!s&&t.fill==null&&a.inheritColor&&(t.fill=a.inheritColor);for(var m=0;m<Iy.length;m++){var y=Iy[m],_=i!==!1&&n?bn(e.getShallow(y),n.getShallow(y),r[y]):Z(e.getShallow(y),r[y]);_!=null&&(t[y]=_)}for(var m=0;m<Ly.length;m++){var y=Ly[m],_=e.getShallow(y);_!=null&&(t[y]=_)}if(t.verticalAlign==null){var S=e.getShallow("baseline");S!=null&&(t.verticalAlign=S)}if(!l||!a.disableBox){for(var m=0;m<Py.length;m++){var y=Py[m],_=e.getShallow(y);_!=null&&(t[y]=_)}var b=e.getShallow("borderType");b!=null&&(t.borderDash=b),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&f&&(t.backgroundColor=f),(t.borderColor==="auto"||t.borderColor==="inherit")&&f&&(t.borderColor=f)}}function zM(t,e){var r=e&&e.getModel("textStyle");return hr([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var so=Se();function ky(t,e,r,n){if(t){var i=so(t);i.prevValue=i.value,i.value=r;var a=e.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=e)}}function VM(t,e,r,n,i){var a=so(t);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=Z(a.interpolatedValue,a.prevValue),l=a.value;function u(f){var c=Tm(r,a.precision,s,l,f);a.interpolatedValue=f===1?null:c;var v=sh({labelDataIndex:e,labelFetcher:i,defaultText:o?o(c):c+""},a.statesModels,c);Dy(t,v)}t.percent=0,(a.prevValue==null?Ge:Ie)(t,{percent:1},n,e,null,u)}var Yi={minMargin:1,textMargin:2},GM=["textStyle","color"],lh=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],uh=new Me,HM=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(GM):null)},t.prototype.getFont=function(){return zM({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<lh.length;n++)r[lh[n]]=this.getShallow(lh[n]);return uh.useStyle(r),uh.update(),uh.getBoundingRect()},t})(),Ry=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],UM=Ma(Ry),WM=(function(){function t(){}return t.prototype.getLineStyle=function(e){return UM(this,e)},t})(),Oy=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],YM=Ma(Oy),$M=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return YM(this,e,r)},t})(),xe=(function(){function t(e,r,n){this.parentModel=r,this.ecModel=n,this.option=e}return t.prototype.init=function(e,r,n){},t.prototype.mergeOption=function(e,r){be(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var n=this.option,i=n==null?n:n[e];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(e))}return i},t.prototype.getModel=function(e,r){var n=e!=null,i=n?this.parsePath(e):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(a,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(oe(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!ie.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var n=this.option;if(!e)return n;for(var i=0;i<e.length&&!(e[i]&&(n=n&&typeof n=="object"?n[e[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t})();pf(xe),oC(xe),Ut(xe,WM),Ut(xe,$M),Ut(xe,cC),Ut(xe,HM);function lo(t){return t==null?0:t.length||1}function Ny(t){return t}var XM=(function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||Ny,this._newKeyGetter=i||Ny,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},i=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],l=n[s],u=lo(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],c=lo(u),v=lo(f);if(c>1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(c===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(c===1&&v===1)this._update&&this._update(f,u),i[l]=null;else if(c>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var i=e[n],a=r[i],o=lo(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},t.prototype._initIndexMap=function(e,r,n,i){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[i](e[o],o);if(a||(n[o]=s),!!r){var l=r[s],u=lo(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t})(),$e={Must:1,Might:2,Not:3},By=Se();function qM(t){By(t).datasetMap=te()}function ZM(t,e,r){var n={},i=fh(e);if(!i||!t)return n;var a=[],o=[],s=e.ecModel,l=By(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),I(t,function(p,g){var m=j(p)?p:t[g]={name:p};m.type==="ordinal"&&f==null&&(f=g,c=d(m)),n[m.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});I(t,function(p,g){var m=p.name,y=d(p);if(f==null){var _=v.valueWayDim;h(n[m],_,y),h(o,_,y),v.valueWayDim+=y}else if(f===g)h(n[m],0,y),h(a,0,y);else{var _=v.categoryWayDim;h(n[m],_,y),h(o,_,y),v.categoryWayDim+=y}});function h(p,g,m){for(var y=0;y<m;y++)p.push(g+y)}function d(p){var g=p.dimsDef;return g?g.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function Fy(t,e,r){var n={},i=fh(t);if(!i)return n;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===kt||a===Xt)&&I(o,function(f,c){(j(f)?f.name:f)==="name"&&(s=c)});var l=(function(){for(var f={},c={},v=[],h=0,d=Math.min(5,r);h<d;h++){var p=Vy(e.data,a,e.seriesLayoutBy,o,e.startIndex,h);v.push(p);var g=p===$e.Not;if(g&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v||!g&&v[f.n]===$e.Not)&&(f.n=h),m(f)&&v[f.n]!==$e.Not)return f;g||(p===$e.Might&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v)&&(c.n=h))}function m(y){return y.v!=null&&y.n!=null}return m(f)?f:m(c)?c:null})();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function fh(t){var e=t.get("data",!0);if(!e)return Qa(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Pt).models[0]}function KM(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:Qa(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Pt).models}function zy(t,e){return Vy(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Vy(t,e,r,n,i,a){var o,s=5;if(ft(t))return $e.Not;var l,u;if(n){var f=n[a];j(f)?(l=f.name,u=f.type):q(f)&&(l=f)}if(u!=null)return u==="ordinal"?$e.Must:$e.Not;if(e===Ze){var c=t;if(r===Yn){for(var v=c[a],h=0;h<(v||[]).length&&h<s;h++)if((o=S(v[i+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var d=c[i+h];if(d&&(o=S(d[a]))!=null)return o}}else if(e===kt){var p=t;if(!l)return $e.Not;for(var h=0;h<p.length&&h<s;h++){var g=p[h];if(g&&(o=S(g[l]))!=null)return o}}else if(e===Xt){var m=t;if(!l)return $e.Not;var v=m[l];if(!v||ft(v))return $e.Not;for(var h=0;h<v.length&&h<s;h++)if((o=S(v[h]))!=null)return o}else if(e===_t)for(var y=t,h=0;h<y.length&&h<s;h++){var g=y[h],_=Za(g);if(!W(_))return $e.Not;if((o=S(_[a]))!=null)return o}function S(b){var w=q(b);if(b!=null&&isFinite(Number(b))&&b!=="")return w?$e.Might:$e.Not;if(w&&b!=="-")return $e.Must}return $e.Not}var bl=(function(){function t(e){this.data=e.data||(e.sourceFormat===Xt?{}:[]),this.sourceFormat=e.sourceFormat||Pm,this.seriesLayoutBy=e.seriesLayoutBy||qt,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&zy(this,n)===$e.Must&&(i.type="ordinal")}}return t})();function ch(t){return t instanceof bl}function hh(t,e,r){r=r||Hy(t);var n=e.seriesLayoutBy,i=QM(t,r,n,e.sourceHeader,e.dimensions),a=new bl({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:oe(e)});return a}function Gy(t){return new bl({data:t,sourceFormat:ft(t)?an:_t})}function jM(t){return new bl({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:oe(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Hy(t){var e=Pm;if(ft(t))e=an;else if(W(t)){t.length===0&&(e=Ze);for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i!=null){if(W(i)||ft(i)){e=Ze;break}else if(j(i)){e=kt;break}}}}else if(j(t)){for(var a in t)if(tt(t,a)&&ut(t[a])){e=Xt;break}}return e}function QM(t,e,r,n,i){var a,o;if(!t)return{dimensionsDefine:Uy(i),startIndex:o,dimensionsDetectedCount:a};if(e===Ze){var s=t;n==="auto"||n==null?Wy(function(u){u!=null&&u!=="-"&&(q(u)?o==null&&(o=1):o=0)},r,s,10):o=me(n)?n:n?1:0,!i&&o===1&&(i=[],Wy(function(u,f){i[f]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===Yn?s.length:s[0]?s[0].length:null}else if(e===kt)i||(i=JM(t));else if(e===Xt)i||(i=[],I(t,function(u,f){i.push(f)}));else if(e===_t){var l=Za(t[0]);a=W(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Uy(i),dimensionsDetectedCount:a}}function JM(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return ce(r)}function Uy(t){if(t){var e=te();return $(t,function(r,n){r=j(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=e.get(i.name);return a?i.name+="-"+a.count++:e.set(i.name,{count:1}),i})}}function Wy(t,e,r,n){if(e===Yn)for(var i=0;i<r.length&&i<n;i++)t(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)t(a[i],i)}function Yy(t){var e=t.sourceFormat;return e===kt||e===Xt}var Qn,Jn,ei,ti,$y,Xy,qy=(function(){function t(e,r){var n=ch(e)?e:Gy(e);this._source=n;var i=this._data=n.data,a=n.sourceFormat;n.seriesLayoutBy,a===an&&(this._offset=0,this._dimSize=r,this._data=i),Xy(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=(function(){var e=t.prototype;e.pure=!1,e.persistent=!0})(),t.internalField=(function(){var e;Xy=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,v=l.dimensionsDefine,h=$y[dh(u,f)];if(z(o,h),u===an)o.getItem=r,o.count=i,o.fillStorage=n;else{var d=Ky(u,f);o.getItem=de(d,null,s,c,v);var p=Qy(u,f);o.count=de(p,null,s,c,v)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},n=function(o,s,l,u){for(var f=this._data,c=this._dimSize,v=0;v<c;v++){for(var h=u[v],d=h[0]==null?1/0:h[0],p=h[1]==null?-1/0:h[1],g=s-o,m=l[v],y=0;y<g;y++){var _=f[y*c+v];m[o+y]=_,_<d&&(d=_),_>p&&(p=_)}h[0]=d,h[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};$y=(e={},e[Ze+"_"+qt]={pure:!0,appendData:a},e[Ze+"_"+Yn]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[kt]={pure:!0,appendData:a},e[Xt]={pure:!0,appendData:function(o){var s=this._data;I(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[_t]={appendData:a},e[an]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),t})(),wl=function(t){W(t)||mm("series.data or dataset.source must be an array.")};Qn={},Qn[Ze+"_"+qt]=wl,Qn[Ze+"_"+Yn]=wl,Qn[kt]=wl,Qn[Xt]=function(t,e){for(var r=0;r<e.length;r++){var n=e[r].name;n==null&&mm("dimension name must not be null/undefined.")}},Qn[_t]=wl;var Zy=function(t,e,r,n){return t[n]},eI=(Jn={},Jn[Ze+"_"+qt]=function(t,e,r,n){return t[n+e]},Jn[Ze+"_"+Yn]=function(t,e,r,n,i){n+=e;for(var a=i||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},Jn[kt]=Zy,Jn[Xt]=function(t,e,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?t[s]:null;a[o]=l?l[n]:null}return a},Jn[_t]=Zy,Jn);function Ky(t,e){var r=eI[dh(t,e)];return r}var jy=function(t,e,r){return t.length},tI=(ei={},ei[Ze+"_"+qt]=function(t,e,r){return Math.max(0,t.length-e)},ei[Ze+"_"+Yn]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},ei[kt]=jy,ei[Xt]=function(t,e,r){var n=r[0].name,i=n!=null?t[n]:null;return i?i.length:0},ei[_t]=jy,ei);function Qy(t,e){var r=tI[dh(t,e)];return r}var vh=function(t,e,r){return t[e]},rI=(ti={},ti[Ze]=vh,ti[kt]=function(t,e,r){return t[r]},ti[Xt]=vh,ti[_t]=function(t,e,r){var n=Za(t);return n instanceof Array?n[e]:n},ti[an]=vh,ti);function Jy(t){var e=rI[t];return e}function dh(t,e){return t===Ze?t+"_"+e:t}function $i(t,e,r){if(t){var n=t.getRawDataItem(e);if(n!=null){var i=t.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=i.getDimensionProperty(o);return Jy(a)(n,o,s)}else{var l=n;return a===_t&&(l=Za(n)),l}}}}var nI=(function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t})();function iI(t,e){var r={},n=r.encode={},i=te(),a=[],o=[],s={};I(t.dimensions,function(v){var h=t.getDimensionInfo(v),d=h.coordDim;if(d){var p=h.coordDimIndex;ph(n,d)[p]=v,h.isExtraCoord||(i.set(d,1),oI(h.type)&&(a[0]=v),ph(s,d)[p]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(v)}Lm.each(function(g,m){var y=ph(n,m),_=h.otherDims[m];_!=null&&_!==!1&&(y[_]=h.name)})});var l=[],u={};i.each(function(v,h){var d=n[h];u[h]=d[0],l=l.concat(d)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=$(l,function(v){return t.getDimensionInfo(v).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new nI(s,e),r}function ph(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function aI(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function oI(t){return!(t==="ordinal"||t==="time")}var Tl=(function(){function t(e){this.otherDims={},e!=null&&z(this,e)}return t})();function xl(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!me(t)&&t!=null&&t!=="-"&&(t=+Oi(t)),t==null||t===""?NaN:Number(t))}te({number:function(t){return parseFloat(t)},time:function(t){return+Oi(t)},trim:function(t){return q(t)?hr(t):t}});var sI=(function(){function t(e,r){var n=e==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var n=me(e)?e:Ks(e),i=me(r)?r:Ks(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=q(e),l=q(r);s&&(n=l?e:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t})();function e0(t){var e="",r=-1/0,n=-1/0,i=1/0,a=1/0;return t&&(t.g!=null&&(e+="G"+t.g,r=t.g),t.ge!=null&&(e+="GE"+t.ge,n=t.ge),t.l!=null&&(e+="L"+t.l,i=t.l),t.le!=null&&(e+="LE"+t.le,a=t.le)),{key:e,g:r,ge:n,l:i,le:a}}function t0(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var lI=typeof Uint32Array===Bi?Array:Uint32Array,uI=typeof Uint16Array===Bi?Array:Uint16Array,r0=typeof Int32Array===Bi?Array:Int32Array,n0=typeof Float64Array===Bi?Array:Float64Array,i0={float:n0,int:r0,ordinal:Array,number:Array,time:n0},gh;function Xi(t){return t>65535?lI:uI}function fI(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function a0(t,e,r,n,i){var a=i0[r||"float"];if(i){var o=t[e],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(n)}var mh=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=te()}return t.prototype.initData=function(e,r,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),a=this.defaultDimValueGetter=gh[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],Yy(i),this._dimensions=$(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(e);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(e,a),this._chunks[a]=new i0[r||"float"](this._rawCount),this._rawExtent[a]=Et(),a},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],i=this._dimensions[e],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[e]=Et());for(var l=a[e],u=o;u<s;u++){var f=n[u]=r.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],n=r.ordinalMeta;return n},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,n=this.count();r.appendData(e);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<a;u++){var f=i[u];a0(n,u,f.type,l,!0)}for(var c=[],v=s;v<l;v++)for(var h=v-s,d=0;d<a;d++){var f=i[d],p=gh.arrayRows.call(this,e[h]||c,f.property,h,d);n[d][v]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=$(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=Et()),a0(a,f,c.type,r,n)}if(i.fillStorage)i.fillStorage(e,r,a,l);else for(var v=[],h=e;h<r;h++){v=i.getItem(h,v);for(var d=0;d<s;d++){var p=a[d],g=this._dimValueGetter(v,u[d],h,d);p[h]=g;var m=l[d];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],i=[];if(r==null){r=e,e=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=e;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(i){isNaN(i)||r.push(i)}),Sc(r);var n=this.count();return n===0?0:n%2===1?r[(n-1)/2]:(r[n/2]+r[n/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&n<this._count&&n===e)return e;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<e)i=o+1;else if(r[o]>e)a=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){e=new n(i);for(var a=0;a<i;a++)e[a]=r[a]}else e=new n(r.buffer,0,i)}else{var n=Xi(this._rawCount);e=new n(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=Xi(n._rawCount),o=new a(i),s=[],l=e.length,u=0,f=e[0],c=n._chunks,v=0;v<i;v++){var h=void 0,d=n.getRawIndex(v);if(l===0)h=r(v);else if(l===1){var p=c[f][d];h=r(p,v)}else{for(var g=0;g<l;g++)s[g]=c[e[g]][d];s[g]=v,h=r.apply(null,s)}h&&(o[u++]=d)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var i=ce(e),a=i.length;if(!a)return this;var o=r.count(),s=Xi(r._rawCount),l=new s(o),u=0,f=i[0],c=e[f][0],v=e[f][1],h=r._chunks,d=!1;if(!r._indices){var p=0;if(a===1){for(var g=h[i[0]],m=0;m<n;m++){var y=g[m];(y>=c&&y<=v||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(a===2){for(var g=h[i[0]],_=h[i[1]],S=e[i[1]][0],b=e[i[1]][1],m=0;m<n;m++){var y=g[m],w=_[m];(y>=c&&y<=v||isNaN(y))&&(w>=S&&w<=b||isNaN(w))&&(l[u++]=p),p++}d=!0}}if(!d)if(a===1)for(var m=0;m<o;m++){var T=r.getRawIndex(m),y=h[i[0]][T];(y>=c&&y<=v||isNaN(y))&&(l[u++]=T)}else for(var m=0;m<o;m++){for(var C=!0,T=r.getRawIndex(m),D=0;D<a;D++){var x=i[D],y=h[x][T];(y<e[x][0]||y>e[x][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(m))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var n=this.clone(e);return this._updateDims(n,e,r),n},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,n){for(var i=e._chunks,a=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<r.length;f++)u[r[f]]=Et();for(var c=0;c<s;c++){for(var v=e.getRawIndex(c),h=0;h<o;h++)l[h]=i[r[h]][v];l[o]=c;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var p=r[f],g=d[f],m=u[p],y=i[p];y&&(y[v]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),i=n._chunks,a=i[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,v,h=new(Xi(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),m=(g+p)/2,y=0,_=p;_<g;_++){var S=this.getRawIndex(_),b=a[S];isNaN(b)||(y+=b)}y/=g-p;var w=d,T=Math.min(d+l,o),C=d-1,D=a[u];f=-1,v=w;for(var x=-1,A=0,_=w;_<T;_++){var S=this.getRawIndex(_),b=a[S];if(isNaN(b)){A++,x<0&&(x=S);continue}c=Math.abs((C-m)*(b-D)-(C-_)*(y-D)),c>f&&(f=c,v=S)}A>0&&A<T-w&&(h[s++]=Math.min(x,v),v=Math.max(x,v)),h[s++]=v,u=v}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},t.prototype.minmaxDownSample=function(e,r){for(var n=this.clone([e],!0),i=n._chunks,a=Math.floor(1/r),o=i[e],s=this.count(),l=new(Xi(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var c=f,v=o[this.getRawIndex(c)],h=f,d=o[this.getRawIndex(h)],p=a;f+a>s&&(p=s-f);for(var g=0;g<p;g++){var m=this.getRawIndex(f+g),y=o[m];y<v&&(v=y,c=f+g),y>d&&(d=y,h=f+g)}var _=this.getRawIndex(c),S=this.getRawIndex(h);c<h?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},t.prototype.downSample=function(e,r,n,i){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[e],f=this.count(),c=a._rawExtent[e]=Et(),v=new(Xi(this._rawCount))(Math.ceil(f/l)),h=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var m=n(s),y=this.getRawIndex(Math.min(d+i(s,m)||0,f-1));u[y]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),v[h++]=y}return a._count=h,a._indices=v,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[e[0]][s],a);break;case 2:r(i[e[0]][s],i[e[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[e[l]][s];u[l]=a,r.apply(null,u)}}},t.prototype.getDataExtent=function(e,r){var n=this._chunks[e],i=Et();if(!n)return i;var a=this.count(),o=!this._indices&&!r;if(o)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=e0(r),f=u.key,c=l[f];if(c)return c.slice();for(var v=i[0],h=i[1],d=0;d<a;d++){var p=this.getRawIndex(d),g=n[p];(!r||t0(u,g))&&(g<v&&(v=g),g>h&&(h=g))}return l[f]=[v,h]},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},t.prototype.clone=function(e,r){var n=new t,i=this._chunks,a=e&&qr(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?fI(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=oe(this._extent),e._rawExtent=oe(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var n=this._indices.length;r=new e(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=(function(){function e(r,n,i,a){return xl(r[a],this._dimensions[a])}gh={arrayRows:e,objectRows:function(r,n,i,a){return xl(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return xl(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}})(),t})(),cI=Se(),hI={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},o0=(function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=l0(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return Z(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=Yy(this.source),n=!u0(e),i="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(l=r?v.name:null,u=v.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=hI[u]||"f",f&&(i+=f.uid),i+="$"}var h=this.source,d=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:a,hash:d}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}e.push(i)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function s0(t){return t instanceof o0}function yh(t){for(var e=te(),r=0;r<(t||[]).length;r++){var n=t[r],i=j(n)?n.name:n;i!=null&&e.get(i)==null&&e.set(i,r)}return e}function l0(t){var e=cI(t);return e.dimNameMap||(e.dimNameMap=yh(t.dimensionsDefine))}function u0(t){return t>30}var uo=j,ln=$,vI=typeof Int32Array>"u"?Array:Int32Array,dI="e\0\0",f0=-1,pI=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],gI=["_approximateExtent"],c0,Cl,fo,co,_h,ho,Sh,h0=(function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;s0(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],v=q(c)?new Tl({name:c}):c instanceof Tl?c:new Tl(c),h=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=h,v.coordDimIndex=0);var d=v.otherDims=v.otherDims||{};o.push(h),a[h]=v,u[h]!=null&&(l=!0),v.createInvertedIndices&&(s[h]=[]),i&&(v.storeDimIndex=f),d.itemName===0&&(this._nameDimIdx=v.storeDimIndex),d.itemId===0&&(this._idDimIdx=v.storeDimIndex)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=te();I(o,function(g){p.set(a[g].storeDimIndex,g)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(me(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,n=r.encode[e];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,n){var i=this,a;if(e instanceof mh&&(a=e),!a){var o=this.dimensions,s=ch(e)||ut(e)?new qy(e,o.length):e;a=new mh;var l=ln(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=iI(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var n=this._store.appendValues(e,r&&r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&Sh(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==an&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===_t;if(l&&!i.pure)for(var u=[],f=e;f<r;f++){var c=i.getItem(f,u);if(!this.hasItemOption&&tD(c)&&(this.hasItemOption=!0),c){var v=c.name;a[f]==null&&v!=null&&(a[f]=wr(v,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=wr(h,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)Sh(this,f);c0(this)}},t.prototype.getApproximateExtent=function(e,r){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),r)},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){uo(e)?z(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=fo(this,this._nameDimIdx,r)),n==null&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},t.prototype.getId=function(e){return Cl(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var n=this,i=this._store;return W(e)?i.getValues(ln(e,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var n=e&&this._invertedIndicesMap[e],i=n&&n[r];return i==null||isNaN(i)?f0:i},t.prototype.each=function(e,r,n){ee(e)&&(n=r,r=e,e=[]);var i=n||this,a=ln(co(e),this._getStoreDimIndex,this);this._store.each(a,i?de(r,i):r)},t.prototype.filterSelf=function(e,r,n){ee(e)&&(n=r,r=e,e=[]);var i=n||this,a=ln(co(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?de(r,i):r),this},t.prototype.selectRange=function(e){var r=this,n={},i=ce(e);return I(i,function(a){var o=r._getStoreDimIndex(a);n[o]=e[a]}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){ee(e)&&(n=r,r=e,e=[]),n=n||this;var i=[];return this.each(e,function(){i.push(r&&r.apply(this,arguments))},n),i},t.prototype.map=function(e,r,n,i){var a=n||i||this,o=ln(co(e),this._getStoreDimIndex,this),s=ho(this);return s._store=this._store.map(o,a?de(r,a):r),s},t.prototype.modify=function(e,r,n,i){var a=n||i||this,o=ln(co(e),this._getStoreDimIndex,this);this._store.modify(o,a?de(r,a):r)},t.prototype.downSample=function(e,r,n,i){var a=ho(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,n,i),a},t.prototype.minmaxDownSample=function(e,r){var n=ho(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),n},t.prototype.lttbDownSample=function(e,r){var n=ho(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),n},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,n=this.getRawDataItem(e);return new xe(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new XM(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Cl(e,n)},function(n){return Cl(r,n)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},uo(e)?z(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var n=this._itemVisuals[e],i=n&&n[r];return i??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[r];return a==null&&(a=this.getVisual(r),W(a)?a=a.slice():uo(a)&&(a=z({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,uo(r)?z(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){uo(e)?z(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?z(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var n=this.hostModel&&this.hostModel.seriesIndex;Pc(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){I(this._graphicEls,function(n,i){n&&e&&e.call(r,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:ln(this.dimensions,this._getDimInfo,this),this.hostModel)),_h(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];ee(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(vf(arguments)))})},t.internalField=(function(){c0=function(e){var r=e._invertedIndicesMap;I(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new vI(o.categories.length);for(var l=0;l<n.length;l++)n[l]=f0;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},fo=function(e,r,n){return wr(e._getCategory(r,n),null)},Cl=function(e,r){var n=e._idList[r];return n==null&&e._idDimIdx!=null&&(n=fo(e,e._idDimIdx,r)),n==null&&(n=dI+r),n},co=function(e){return W(e)||(e=e!=null?[e]:[]),e},ho=function(e){var r=new t(e._schema?e._schema:ln(e.dimensions,e._getDimInfo,e),e.hostModel);return _h(r,e),r},_h=function(e,r){I(pI.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,I(gI,function(n){e[n]=oe(r[n])}),e._calculationInfo=z({},r._calculationInfo)},Sh=function(e,r){var n=e._nameList,i=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=fo(e,a,r)),l==null&&o!=null&&(i[r]=l=fo(e,o,r)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[r]=l}}})(),t})();function v0(t,e){ch(t)||(t=Gy(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=te(),a=[],o=mI(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&u0(o),l=n===t.dimensionsDefine,u=l?l0(t):yh(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=te(f),v=new r0(o),h=0;h<v.length;h++)v[h]=-1;function d(D){var x=v[D];if(x<0){var A=n[D],L=j(A)?A:{name:A},M=new Tl,P=L.name;P!=null&&u.get(P)!=null&&(M.name=M.displayName=P),L.type!=null&&(M.type=L.type),L.displayName!=null&&(M.displayName=L.displayName);var E=a.length;return v[D]=E,M.storeDimIndex=D,a.push(M),M}return a[x]}if(!s)for(var h=0;h<o;h++)d(h);c.each(function(D,x){var A=nt(D).slice();if(A.length===1&&!q(A[0])&&A[0]<0){c.set(x,!1);return}var L=c.set(x,[]);I(A,function(M,P){var E=q(M)?u.get(M):M;E!=null&&E<o&&(L[P]=E,g(d(E),x,P))})});var p=0;I(r,function(D){var x,A,L,M;if(q(D))x=D,M={};else{M=D,x=M.name;var P=M.ordinalMeta;M.ordinalMeta=null,M=z({},M),M.ordinalMeta=P,A=M.dimsDef,L=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var E=c.get(x);if(E!==!1){if(E=nt(E),!E.length)for(var k=0;k<(A&&A.length||1);k++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&E.push(p++)}I(E,function(O,R){var N=d(O);if(l&&M.type!=null&&(N.type=M.type),g(le(N,M),x,R),N.name==null&&A){var F=A[R];!j(F)&&(F={name:F}),N.name=N.displayName=F.name,N.defaultTooltip=F.defaultTooltip}L&&le(N.otherDims,L)})}});function g(D,x,A){Lm.get(x)!=null?D.otherDims[x]=A:(D.coordDim=x,D.coordDimIndex=A,i.set(x,!0))}var m=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=m?y||1:0;var S=m||"value";function b(D){D.name==null&&(D.name=D.coordDim)}if(s)I(a,function(D){b(D)}),a.sort(function(D,x){return D.storeDimIndex-x.storeDimIndex});else for(var w=0;w<o;w++){var T=d(w),C=T.coordDim;C==null&&(T.coordDim=yI(S,i,_),T.coordDimIndex=0,(!m||y<=0)&&(T.isExtraCoord=!0),y--),b(T),T.type==null&&(zy(t,w)===$e.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return Mc(a,function(D){return D.name},function(D,x){x>0&&(D.name=D.name+(x-1))}),new o0({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function mI(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return I(e,function(a){var o;j(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function yI(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var Al={},bh={},wh=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=n(Al),this._normalMasterList=n(bh);function n(i,a){var o=[];return I(i,function(s,l){var u=s.create(e,r);o=o.concat(u||[])}),o}},t.prototype.update=function(e,r){I(this._normalMasterList,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e==="matrix"||e==="calendar"){Al[e]=r;return}bh[e]=r},t.get=function(e){return bh[e]||Al[e]},t})();function _I(t){return!!Al[t]}var SI=1,d0=2;function bI(t){p0.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}var p0=te();function g0(t){var e=t.getShallow("coord",!0),r=SI;if(e==null){var n=p0.get(t.type);n&&n.getCoord2&&(r=d0,e=n.getCoord2(t))}return{coord:e,from:r}}var qi=0,Dl=1,wI=2;function TI(t,e){var r=t.getShallow("coordinateSystem"),n=t.getShallow("coordinateSystemUsage",!0),i=qi;if(r){var a=t.mainType==="series";n==null&&(n=a?"data":"box"),n==="data"?(i=Dl,a||(i=qi)):n==="box"&&(i=wI,!a&&!_I(r)&&(i=qi))}return{coordSysType:r,kind:i}}function xI(t){var e=t.targetModel,r=t.coordSysType,n=t.coordSysProvider,i=t.isDefaultDataCoordSys,a=TI(e),o=a.kind,s=a.coordSysType;if(i&&o!==Dl&&(o=Dl,s=r),o===qi||s!==r)return qi;var l=n(r,e);return l?(o===Dl?e.coordinateSystem=l:e.boxCoordinateSystem=l,o):qi}var CI=(function(){function t(e){this.coordSysDims=[],this.axisMap=te(),this.categoryAxisMap=te(),this.coordSysName=e}return t})();function AI(t){var e=t.get("coordinateSystem"),r=new CI(e),n=DI[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var DI={cartesian2d:function(t,e,r,n){var i=t.getReferringComponents("xAxis",Pt).models[0],a=t.getReferringComponents("yAxis",Pt).models[0];e.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),Zi(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),Zi(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var i=t.getReferringComponents("singleAxis",Pt).models[0];e.coordSysDims=["single"],r.set("single",i),Zi(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var i=t.getReferringComponents("polar",Pt).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Zi(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),Zi(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var i=t.ecModel,a=i.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();I(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),Zi(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(t,e,r,n){var i=t.getReferringComponents("matrix",Pt).models[0];e.coordSysDims=["x","y"];var a=i.getDimensionModel("x"),o=i.getDimensionModel("y");r.set("x",a),r.set("y",o),n.set("x",a),n.set("y",o)}};function Zi(t){return t.get("type")==="category"}function MI(t,e,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;II(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,c,v,h=!0;function d(S){return S.type!=="ordinal"&&S.type!=="time"}if(I(a,function(S,b){q(S)&&(a[b]=S={name:S}),d(S)||(h=!1)}),I(a,function(S,b){l&&!S.isExtraCoord&&(!n&&!u&&S.ordinalMeta&&(u=S),!f&&d(S)&&(!h||S.coordDim!=="x"&&S.coordDim!=="angle")&&(!i||i===S.coordDim)&&(f=S))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+t.id,v="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var p=f.coordDim,g=f.type,m=0;I(a,function(S){S.coordDim===p&&m++});var y={name:c,coordDim:p,coordDimIndex:m,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:v,coordDim:v,coordDimIndex:m+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(v,g),_.storeDimIndex=s.ensureCalculationDimension(c,g)),o.appendCalculationDimension(y),o.appendCalculationDimension(_)):(a.push(y),a.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:c}}function II(t){return!s0(t.schema)}function Ki(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function LI(t,e){return Ki(t,e)?t.getCalculationInfo("stackResultDimension"):e}function PI(t,e){var r=t.get("coordinateSystem"),n=wh.get(r),i;return e&&e.coordSysDims&&(i=$(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=aI(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function EI(t,e,r){var n,i;return r&&I(t,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(t[n].otherDims.itemName=0),n}function Ml(t,e,r){r=r||{};var n=e.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===_t;var o=AI(e),s=PI(e,o),l=r.useEncodeDefaulter,u=ee(l)?l:l?Oe(ZM,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=v0(i,f),v=EI(c.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(c),d=MI(e,{schema:c,store:h}),p=new h0(c,e);p.setCalculationInfo(d);var g=v!=null&&kI(i)?function(m,y,_,S){return S===v?_:this.defaultDimValueGetter(m,y,_,S)}:null;return p.hasItemOption=!1,p.initData(a?i:h,null,g),p}function kI(t){if(t.sourceFormat===_t){var e=RI(t.data||[]);return!W(Za(e))}}function RI(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var OI=Math.round(Math.random()*10);function vo(t){return[t||"",OI++].join("_")}function NI(t){var e={};t.registerSubTypeDefaulter=function(r,n){var i=vr(r);e[i.main]=n},t.determineSubType=function(r,n){var i=n.type;if(!i){var a=vr(r).main;t.hasSubTypes(r)&&e[a]&&(i=e[a](n))}return i}}function BI(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,c=u.noEntryList,v={};for(I(a,function(y){v[y]=!0});c.length;){var h=c.pop(),d=f[h],p=!!v[h];p&&(s.call(l,h,d.originalDeps.slice()),delete v[h]),I(d.successor,p?m:g)}I(v,function(){var y="";throw new Error(y)});function g(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function m(y){v[y]=!0,g(y)}};function r(a){var o={},s=[];return I(a,function(l){var u=n(o,l),f=u.originalDeps=e(l),c=i(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),I(c,function(v){fe(u.predecessor,v)<0&&u.predecessor.push(v);var h=n(o,v);fe(h.successor,v)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return I(a,function(l){fe(o,l)>=0&&s.push(l)}),s}}function m0(t,e){return be(be({},t,!0),e,!0)}var FI=Math.log(2);function Th(t,e,r,n,i,a){var o=n+"-"+i,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~i)/FI);return t[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,v=0,h=0;v<s;v++){var d=1<<v;d&i||(c+=(h%2?-1:1)*t[r][v]*Th(t,e-1,f,u,i|d,a),h++)}return a[o]=c,c}function y0(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},i=Th(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Th(r,7,o===0?1:0,1<<o,1<<s,n)/i*e[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var Il="___zrEVENTSAVED",xh=[];function zI(t,e,r,n,i){return Ch(xh,e,n,i,!0)&&Ch(t,r,xh[0],xh[1])}function VI(t,e){t&&r(t),e&&r(e);function r(n){var i=n[Il];i&&(i.clearMarkers&&i.clearMarkers(),delete n[Il])}}function Ch(t,e,r,n,i){if(e.getBoundingClientRect&&ie.domSupported&&!_0(e)){var a=e[Il]||(e[Il]={}),o=GI(e,a),s=HI(o,a,i);if(s)return s(t,r,n),!0}return!1}function GI(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){I(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function HI(t,e,r){for(var n=r?"invTrans":"trans",i=e[n],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=t[u].getBoundingClientRect(),c=2*u,v=f.left,h=f.top;o.push(v,h),l=l&&a&&v===a[c]&&h===a[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=r?y0(s,o):y0(o,s))}function _0(t){return t.nodeName.toUpperCase()==="CANVAS"}var UI=/([&<>"'])/g,WI={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function it(t){return t==null?"":(t+"").replace(UI,function(e,r){return WI[r]})}const YI={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},$I={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Ll="ZH",Ah="EN",ji=Ah,Pl={},Dh={},S0=ie.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ji).toUpperCase();return t.indexOf(Ll)>-1?Ll:ji})():ji;function b0(t,e){t=t.toUpperCase(),Dh[t]=new xe(e),Pl[t]=e}function XI(t){if(q(t)){var e=Pl[t.toUpperCase()]||{};return t===Ll||t===Ah?oe(e):be(oe(e),oe(Pl[ji]),!1)}else return be(oe(t),oe(Pl[ji]),!1)}function qI(t){return Dh[t]}function ZI(){return Dh[ji]}b0(Ah,YI),b0(Ll,$I);var KI=null;function at(){return KI}function w0(t,e){var r=at(),n=e.breakOption,i=e.breakParsed;return!i&&r&&(i=r.parseAxisBreakOption(n,t)),i}function El(t){var e=t.brk;return e?e.breaks:[]}function kl(t){var e=t.brk;return e?e.hasBreaks():!1}var Mh=1e3,Ih=Mh*60,po=Ih*60,Nt=po*24,T0=Nt*365,jI={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Rl={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},QI="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Ol="{yyyy}-{MM}-{dd}",x0={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ol,hour:Ol+" "+Rl.hour,minute:Ol+" "+Rl.minute,second:Ol+" "+Rl.second,millisecond:QI},St=["year","month","day","hour","minute","second","millisecond"],JI=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function eL(t){return!q(t)&&!ee(t)?tL(t):t}function tL(t){t=t||{};var e={},r=!0;return I(St,function(n){r&&(r=t[n]==null)}),I(St,function(n,i){var a=t[n];e[n]={};for(var o=null,s=i;s>=0;s--){var l=St[s],u=j(a)&&!W(a)?a[l]:a,f=void 0;W(u)?(f=u.slice(),o=f[0]||""):q(u)?(o=u,f=[o]):(o==null?o=Rl[n]:jI[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),e[n][l]=f}}),e}function un(t,e){return t+="","0000".substr(0,e-t.length)+t}function go(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function rL(t){return t===go(t)}function nL(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Nl(t,e,r,n){var i=Oi(t),a=i[C0(r)](),o=i[Ph(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[Eh(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[kh(r)](),c=(f-1)%12+1,v=i[Rh(r)](),h=i[Oh(r)](),d=i[Nh(r)](),p=f>=12?"pm":"am",g=p.toUpperCase(),m=n instanceof xe?n:qI(n||S0)||ZI(),y=m.getModel("time"),_=y.get("month"),S=y.get("monthAbbr"),b=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,un(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,un(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,un(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,un(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,un(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,un(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,un(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,un(d,3)).replace(/{S}/g,d+"")}function iL(t,e,r,n,i){var a=null;if(q(r))a=r;else if(ee(r)){var o={time:t.time,level:t.time?t.time.level:0},s=at();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),a=r(t.value,e,o)}else{var l=t.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var f=Qi(t.value,i);a=r[f][f][0]}}return Nl(new Date(t.value),a,i,n)}function Qi(t,e){var r=Oi(t),n=r[Ph(e)]()+1,i=r[Eh(e)](),a=r[kh(e)](),o=r[Rh(e)](),s=r[Oh(e)](),l=r[Nh(e)](),u=l===0,f=u&&s===0,c=f&&o===0,v=c&&a===0,h=v&&i===1,d=h&&n===1;return d?"year":h?"month":v?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Lh(t,e,r){switch(e){case"year":t[A0(r)](0);case"month":t[D0(r)](1);case"day":t[M0(r)](0);case"hour":t[I0(r)](0);case"minute":t[L0(r)](0);case"second":t[P0(r)](0)}return t}function C0(t){return t?"getUTCFullYear":"getFullYear"}function Ph(t){return t?"getUTCMonth":"getMonth"}function Eh(t){return t?"getUTCDate":"getDate"}function kh(t){return t?"getUTCHours":"getHours"}function Rh(t){return t?"getUTCMinutes":"getMinutes"}function Oh(t){return t?"getUTCSeconds":"getSeconds"}function Nh(t){return t?"getUTCMilliseconds":"getMilliseconds"}function aL(t){return t?"setUTCFullYear":"setFullYear"}function A0(t){return t?"setUTCMonth":"setMonth"}function D0(t){return t?"setUTCDate":"setDate"}function M0(t){return t?"setUTCHours":"setHours"}function I0(t){return t?"setUTCMinutes":"setMinutes"}function L0(t){return t?"setUTCSeconds":"setSeconds"}function P0(t){return t?"setUTCMilliseconds":"setMilliseconds"}function E0(t){if(!KA(t))return q(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function k0(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Bl=df;function Bh(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&hr(f)?f:"-"}function a(f){return Lt(f)}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?Oi(t):t;if(isNaN(+l)){if(s)return"-"}else return Nl(l,n,r)}if(e==="ordinal")return cf(t)?i(t):me(t)&&a(t)?t+"":"-";var u=Ks(t);return a(u)?E0(u):cf(t)?i(t):typeof t=="boolean"?t+"":"-"}var R0=["a","b","c","d","e","f","g"],Fh=function(t,e){return"{"+t+(e??"")+"}"};function O0(t,e,r){W(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=R0[a];t=t.replace(Fh(o),Fh(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(Fh(R0[l],s),r?it(u):u)}return t}function oL(t,e){var r=q(t)?{color:t,extraCssText:e}:t||{},n=r.color,i=r.type;e=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+it(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+it(n)+";"+(e||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function ri(t,e){return e=e||"transparent",q(t)?t:j(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function N0(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var Fl=I,sL=["left","right","top","bottom","width","height"],zl=[["width","left","right"],["height","top","bottom"]];function zh(t,e,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.childAt(u+1),v=c&&c.getBoundingRect(),h,d;if(t==="horizontal"){var p=f.width+(v?-v.x+f.x:0);h=a+p,h>n||l.newline?(a=0,h=p,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);d=o+g,d>i||l.newline?(a+=s+r,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=h+r:o=d+r)})}var mo=zh;Oe(zh,"vertical"),Oe(zh,"horizontal");function lL(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function uL(t,e){var r=Ji(t,e,{enableLayoutOnlyByCenter:!0}),n=t.getBoxLayoutParams(),i,a;if(r.type===yo.point)a=r.refPoint,i=Vr(n,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=W(o)?o:[o,o];i=Vr(n,r.refContainer),a=r.boxCoordFrom===d0?r.refPoint:[Q(s[0],i.width)+i.x,Q(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function fL(t,e){var r=uL(t,e),n=r.viewRect,i=r.center,a=t.get("radius");W(a)||(a=[0,a]);var o=Q(n.width,e.getWidth()),s=Q(n.height,e.getHeight()),l=Math.min(o,s),u=Q(a[0],l/2),f=Q(a[1],l/2);return{cx:i[0],cy:i[1],r0:u,r:f,viewRect:n}}function Vr(t,e,r){r=Bl(r||0);var n=e.width,i=e.height,a=Q(t.left,n),o=Q(t.top,i),s=Q(t.right,n),l=Q(t.bottom,i),u=Q(t.width,n),f=Q(t.height,i),c=r[2]+r[0],v=r[1]+r[3],h=t.aspect;switch(isNaN(u)&&(u=n-s-v-a),isNaN(f)&&(f=i-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(a)&&(a=n-s-u-v),isNaN(o)&&(o=i-l-f-c),t.left||t.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-v;break}switch(t.top||t.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=n-v-a-(s||0)),isNaN(f)&&(f=i-c-o-(l||0));var d=new ne((e.x||0)+a+r[3],(e.y||0)+o+r[0],u,f);return d.margin=r,d}var yo={rect:1,point:2};function Ji(t,e,r){var n,i,a,o=t.boxCoordinateSystem,s;if(o){var l=g0(t),u=l.coord,f=l.from;if(o.dataToLayout){a=yo.rect,s=f;var c=o.dataToLayout(u);n=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=yo.point,s=f,i=o.dataToPoint(u))}return a==null&&(a=yo.rect),a===yo.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),i=[n.x+n.width/2,n.y+n.height/2]),{type:a,refContainer:n,refPoint:i,boxCoordFrom:s}}function _o(t){var e=t.layoutMode||t.constructor.layoutMode;return j(e)?e:e?{type:e}:null}function fn(t,e,r){var n=r&&r.ignoreSize;!W(n)&&(n=[n,n]);var i=o(zl[0],0),a=o(zl[1],1);l(zl[0],t,i),l(zl[1],t,a);function o(u,f){var c={},v=0,h={},d=0,p=2;if(Fl(u,function(y){h[y]=t[y]}),Fl(u,function(y){tt(e,y)&&(c[y]=h[y]=e[y]),s(c,y)&&v++,s(h,y)&&d++}),n[f])return s(e,u[1])?h[u[2]]=null:s(e,u[2])&&(h[u[1]]=null),h;if(d===p||!v)return h;if(v>=p)return c;for(var g=0;g<u.length;g++){var m=u[g];if(!tt(c,m)&&tt(t,m)){c[m]=t[m];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){Fl(u,function(v){f[v]=c[v]})}}function So(t){return cL({},t)}function cL(t,e){return e&&t&&Fl(sL,function(r){tt(e,r)&&(t[r]=e[r])}),t}var hL=Se(),ye=(function(t){V(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.uid=vo("ec_cpt_model"),a}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=_o(this),a=i?So(r):{},o=n.getTheme();be(r,o.get(this.mainType)),be(r,this.getDefaultOption()),i&&fn(r,a,i)},e.prototype.mergeOption=function(r,n){be(this.option,r,!0);var i=_o(this);i&&fn(this.option,r,i)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!nC(r))return r.defaultOption;var n=hL(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=be(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return Qa(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){return lL(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=(function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),e})(xe);qp(ye,xe),gs(ye),NI(ye),BI(ye,vL);function vL(t){var e=[];return I(ye.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=$(e,function(r){return vr(r).main}),t!=="dataset"&&fe(e,"dataset")<=0&&e.unshift("dataset"),e}var B0=Se();Se();var Vh=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var i=nt(this.get("color",!0)),a=this.get("colorLayer",!0);return pL(this,B0,i,a,e,r,n)},t.prototype.clearColorPalette=function(){gL(this,B0)},t})();function dL(t,e){for(var r=t.length,n=0;n<r;n++)if(t[n].length>e)return t[n];return t[r-1]}function pL(t,e,r,n,i,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?r:dL(n,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%f.length,c}}function gL(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var mL=/\{@(.+?)\}/g,yL=(function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),i=this.getRawValue(e,r),a=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,v=c==="series",h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),i!=null&&W(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(e);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(ee(a))return l.status=r,l.dimensionIndex=i,a(l);if(q(a)){var f=O0(a,l);return f.replace(mL,function(c,v){var h=v.length,d=v;d.charAt(0)==="["&&d.charAt(h-1)==="]"&&(d=+d.slice(1,h-1));var p=$i(s,e,d);if(o&&W(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},t.prototype.getRawValue=function(e,r){return $i(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t})();function F0(t){var e,r;return j(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function bo(t){return new _L(t)}var _L=(function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var v=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!n&&(c||h<d)){var p=this._progress;if(W(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],h,d,l,u);else this._doProgress(p,h,d,l,u)}this._dueIndex=d;var m=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,n,i,a){z0.reset(r,n,i,a),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:z0.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),W(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t})(),z0=(function(){var t,e,r,n,i,a={reset:function(l,u,f,c){e=l,t=u,r=f,n=c,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var l=e%i*r+Math.ceil(e/i),u=e>=t?null:l<n?l:e;return e++,u}})(),SL=(function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return xl(e,r)},t})();function bL(t,e){var r=new SL,n=t.data,i=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==qt&&ht(o);var s=[],l={},u=t.dimensionsDefine;if(u)I(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";tt(l,m)&&ht(_),l[m]=y}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=Ky(i,qt);e.__isBuiltIn&&(r.getRawDataItem=function(p){return c(n,a,s,p)},r.getRawData=de(wL,null,t)),r.cloneRawData=de(TL,null,t);var v=Qy(i,qt);r.count=de(v,null,n,a,s);var h=Jy(i);r.retrieveValue=function(p,g){var m=c(n,a,s,p);return d(m,g)};var d=r.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return h(p,g,m.name)}};return r.getDimensionInfo=de(xL,null,s,l),r.cloneAllDimensionInfo=de(CL,null,s),r}function wL(t){var e=t.sourceFormat;if(!Gh(e)){var r="";ht(r)}return t.data}function TL(t){var e=t.sourceFormat,r=t.data;if(!Gh(e)){var n="";ht(n)}if(e===Ze){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(e===kt){for(var i=[],a=0,o=r.length;a<o;a++)i.push(z({},r[a]));return i}}function xL(t,e,r){if(r!=null){if(me(r)||!isNaN(r)&&!tt(e,r))return t[r];if(tt(e,r))return e[r]}}function CL(t){return oe(t)}var V0=te();function AL(t){t=oe(t);var e=t.type,r="";e||ht(r);var n=e.split(":");n.length!==2&&ht(r);var i=!1;n[0]==="echarts"&&(e=n[1],i=!0),t.__isBuiltIn=i,V0.set(e,t)}function DL(t,e,r){var n=nt(t),i=n.length,a="";i||ht(a);for(var o=0,s=i;o<s;o++){var l=n[o];e=ML(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function ML(t,e,r,n){var i="";e.length||ht(i),j(t)||ht(i);var a=t.type,o=V0.get(a);o||ht(i);var s=$(e,function(u){return bL(u,o)}),l=nt(o.transform({upstream:s[0],upstreamList:s,config:oe(t.config)}));return $(l,function(u,f){var c="";j(u)||ht(c),u.data||ht(c);var v=Hy(u.data);Gh(v)||ht(c);var h,d=e[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),h={seriesLayoutBy:qt,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else h={seriesLayoutBy:qt,sourceHeader:0,dimensions:u.dimensions};return hh(u.data,h,null)})}function Gh(t){return t===Ze||t===kt}var G0=(function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(Vl(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=ft(s)?an:_t,a=[];var c=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},h=Z(c.seriesLayoutBy,v.seriesLayoutBy)||null,d=Z(c.sourceHeader,v.sourceHeader),p=Z(c.dimensions,v.dimensions),g=h!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;i=g?[hh(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:p},l)]:[]}else{var m=e;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var _=m.get("source",!0);i=[hh(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";e.length!==1&&U0(a)}var o,s=[],l=[];return I(e,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&U0(c),s.push(f),l.push(u._getVersionSign())}),n?o=DL(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[jM(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var n=e[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Vl(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,n):(s=new mh,s.initData(new qy(r,e.length),e)),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Vl(e)){var r=fh(e);return r?[r.getSourceManager()]:[]}else return $(KM(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,i;if(Vl(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},t})();function H0(t){var e=t.option.transform;e&&vs(t.option.transform)}function Vl(t){return t.mainType==="series"}function U0(t){throw new Error(t)}var Y={color:{},darkColor:{},size:{}},Le=Y.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};z(Le,{primary:Le.neutral80,secondary:Le.neutral70,tertiary:Le.neutral60,quaternary:Le.neutral50,disabled:Le.neutral20,border:Le.neutral30,borderTint:Le.neutral20,borderShade:Le.neutral40,background:Le.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Le.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Le.neutral70,axisLineTint:Le.neutral40,axisTick:Le.neutral70,axisTickMinor:Le.neutral60,axisLabel:Le.neutral70,axisSplitLine:Le.neutral15,axisMinorSplitLine:Le.neutral05});for(var ni in Le)if(Le.hasOwnProperty(ni)){var W0=Le[ni];ni==="theme"?Y.darkColor.theme=Le.theme.slice():ni==="highlight"?Y.darkColor.highlight="rgba(255,231,130,0.4)":ni.indexOf("accent")===0?Y.darkColor[ni]=Uf(W0,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):Y.darkColor[ni]=Uf(W0,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)})}Y.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var IL="line-height:1";function Y0(t){var e=t.lineHeight;return e==null?IL:"line-height:"+it(e+"")+"px"}function $0(t,e){var r=t.color||Y.color.tertiary,n=t.fontSize||12,i=t.fontWeight||"400",a=t.color||Y.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+it(n+"")+"px;color:"+it(r)+";font-weight:"+it(i+""),valueStyle:"font-size:"+it(o+"")+"px;color:"+it(a)+";font-weight:"+it(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var LL=[0,10,20,30],PL=["",`
9
9
  `,`
10
10
 
11
11
  `,`
12
12
 
13
13
 
14
- `];function ii(t,e){return e.type=t,e}function Hh(t){return t.type==="section"}function X0(t){return Hh(t)?EL:kL}function q0(t){if(Hh(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return I(t.blocks,function(i){var a=q0(i);a>=e&&(e=a+ +(n&&(!a||Hh(i)&&!i.noHeader)))}),e}return 0}function EL(t,e,r,n){var i=e.noHeader,a=RL(q0(e)),o=[],s=e.blocks||[];Wt(!s||W(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(tt(u,l)){var f=new sI(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}I(s,function(p,g){var m=e.valueFormatter,y=X0(p)(m?z(z({},t),{valueFormatter:m}):t,p,g>0?a.html:0,n);y!=null&&o.push(y)});var c=t.renderMode==="richText"?o.join(a.richText):Uh(n,o.join(""),i?r:a.html);if(i)return c;var v=Bh(e.header,"ordinal",t.useUTC),h=$0(n,t.renderMode).nameStyle,d=Y0(n);return t.renderMode==="richText"?K0(t,v,h)+a.richText+c:Uh(n,'<div style="'+h+";"+d+';">'+it(v)+"</div>"+c,r)}function kL(t,e,r,n){var i=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(S){return S=W(S)?S:[S],$(S,function(b,w){return Bh(b,W(h)?h[w]:h,u)})};if(!(a&&o)){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||Y.color.secondary,i),v=a?"":Bh(l,"ordinal",u),h=e.valueType,d=o?[]:f(e.value,e.rawDataIndex),p=!s||!a,g=!s&&a,m=$0(n,i),y=m.nameStyle,_=m.valueStyle;return i==="richText"?(s?"":c)+(a?"":K0(t,v,y))+(o?"":BL(t,d,p,g,_)):Uh(n,(s?"":c)+(a?"":OL(v,!s,y))+(o?"":NL(d,p,g,_)),r)}}function Z0(t,e,r,n,i,a){if(t){var o=X0(t),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function RL(t){return{html:LL[t],richText:PL[t]}}function Uh(t,e,r){var n='<div style="clear:both"></div>',i="margin: "+r+"px 0 0",a=Y0(t);return'<div style="'+i+";"+a+';">'+e+n+"</div>"}function OL(t,e,r){var n=e?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+it(t)+"</span>"}function NL(t,e,r,n){var i=r?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return t=W(t)?t:[t],'<span style="'+a+";"+n+'">'+$(t,function(o){return it(o)}).join("&nbsp;&nbsp;")+"</span>"}function K0(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function BL(t,e,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(W(e)?e.join(" "):e,a)}function j0(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return ri(n)}function Q0(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var Wh=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=Tc()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var i=n==="richText"?this._generateStyleName():null,a=oL({color:r,type:e,renderMode:n,markerId:i});return q(a)?a:(this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};W(r)?I(r,function(a){return z(n,a)}):z(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},t})();function FL(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),l=W(s),u=j0(e,r),f,c,v,h;if(o>1||l&&!o){var d=zL(s,e,r,a,u);f=d.inlineValues,c=d.inlineValueTypes,v=d.blocks,h=d.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);h=f=$i(i,r,a[0]),c=p.type}else h=f=l?s[0]:s;var g=xc(e),m=g&&e.name||"",y=i.getName(r),_=n?m:y;return ii("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[ii("nameValue",{markerType:"item",markerColor:u,name:_,noName:!hr(_),value:f,valueType:c,rawDataIndex:i.getRawIndex(r)})].concat(v||[])})}function zL(t,e,r,n,i){var a=e.getData(),o=qr(t,function(c,v,h){var d=a.getDimensionInfo(h);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?I(n,function(c){f($i(a,r,c),c)}):I(t,f);function f(c,v){var h=a.getDimensionInfo(v);!h||h.otherDims.tooltip===!1||(o?u.push(ii("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var cn=Se();function Vl(t,e){return t.getName(e)||t.getId(e)}var GL="__universalTransitionEnabled",ot=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=bo({count:HL,reset:UL}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=cn(this).sourceManager=new V0(this);a.prepareSource();var o=this.getInitialData(r,i);e_(o,this),this.dataTask.context.data=o,cn(this).dataBeforeProcessed=o,J0(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=_o(this),a=i?So(r):{},o=this.subType;ye.hasClass(o)&&(o+="Series"),be(r,n.getTheme().get(this.subType)),be(r,this.getDefaultOption()),js(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&fn(r,a,i)},e.prototype.mergeOption=function(r,n){r=be(this.option,r,!0),this.fillDataTextStyle(r.data);var i=_o(this);i&&fn(this.option,r,i);var a=cn(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);e_(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,cn(this).dataBeforeProcessed=o,J0(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!ft(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&js(r[i],"label",n)},e.prototype.getInitialData=function(r,n){},e.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},e.prototype.getData=function(r){var n=Yh(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return cn(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var n=Yh(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}cn(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return te(r)},e.prototype.getSourceManager=function(){return cn(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return cn(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,n,i,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(i);a==null&&(a=1/0);for(var f=[],c=1/0,v=-1,h=0,d=o.getDimensionIndex(n),p=o.getStore(),g=0,m=p.count();g<m;g++){var y=p.get(d,g),_=l.dataToCoord(y),S=u-_,b=Math.abs(S);b<=a&&((b<c||b===c&&S>=0&&v<0)&&(c=b,v=S,h=0),S===v&&(f[h++]=g))}return f.length=h,f},e.prototype.formatTooltip=function(r,n,i){return FL({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(ie.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=Gh.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=Vl(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=ce(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},e.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Vl(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[GL])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){j(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],v=Vl(r,c);u[v]=!0,this._selectedDataIndicesMap[v]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var h=n[l-1],v=Vl(r,h);o.selectedMap=(i={},i[v]=!0,i),this._selectedDataIndicesMap=(a={},a[v]=r.getRawIndex(h),a)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},e.registerClass=function(r){return ye.registerClass(r)},e.protoInitialize=(function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),e})(ye);Ut(ot,yL),Ut(ot,Gh),qp(ot,ye);function J0(t){var e=t.name;xc(t)||(t.name=VL(t)||e)}function VL(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return I(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function HL(t){return t.model.getRawData().count()}function UL(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),WL}function WL(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function e_(t,e){I(jx(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Oe(YL,e))})}function YL(t,e){var r=Yh(t);return r&&r.setOutputEnd((e||this).count()),e}function Yh(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(t.uid))}return n}}var $L=pe.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n+a),t.lineTo(r-i,n+a),t.closePath()}}),XL=pe.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n),t.lineTo(r,n+a),t.lineTo(r-i,n),t.closePath()}}),qL=pe.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,i=e.width/5*3,a=Math.max(i,e.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),v=Math.cos(u),h=o*.6,d=o*.7;t.moveTo(r-f,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+f-c*h,l+s+v*h,r,n-d,r,n),t.bezierCurveTo(r,n-d,r-f+c*h,l+s+v*h,r-f,l+s),t.closePath()}}),ZL=pe.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,n=e.width,i=e.x,a=e.y,o=n/3*2;t.moveTo(i,a),t.lineTo(i+o,a+r),t.lineTo(i,a+r/4*3),t.lineTo(i-o,a+r),t.lineTo(i,a),t.closePath()}}),KL={line:Cr,rect:De,roundRect:De,square:De,circle:eo,diamond:XL,pin:qL,arrow:ZL,triangle:$L},jL={line:function(t,e,r,n,i){i.x1=t,i.y1=e+n/2,i.x2=t+r,i.y2=e+n/2},rect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n},roundRect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(t,e,r,n,i){var a=Math.min(r,n);i.x=t,i.y=e,i.width=a,i.height=a},circle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.r=Math.min(r,n)/2},diamond:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n},pin:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},arrow:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},triangle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n}},$h={};I(KL,function(t,e){$h[e]=new t});var QL=pe.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=_s(t,e,r),i=this.shape;return i&&i.symbolType==="pin"&&e.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(t,e,r){var n=e.symbolType;if(n!=="none"){var i=$h[n];i||(n="rect",i=$h[n]),jL[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,r)}}});function JL(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||Y.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function Ar(t,e,r,n,i,a,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=gy(t.slice(8),new ne(e,r,n,i),o?"center":"cover"):t.indexOf("path://")===0?l=Jc(t.slice(7),{},new ne(e,r,n,i),o?"center":"cover"):l=new QL({shape:{symbolType:t,x:e,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=JL,a&&l.setColor(a),l}function t_(t){return W(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function r_(t,e){if(t!=null)return W(t)||(t=[t,t]),[Q(t[0],e[0])||0,Q(Z(t[1],t[0]),e[1])||0]}var eP=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){return Ml(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var n=new Ce,i=Ar("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=Ar(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=Y.color.neutral00,u.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e})(ot);function Xh(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=$i(t,e,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push($i(t,e,r[o]));return a.join(" ")}}function n_(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!W(e))return e+"";for(var n=[],i=0;i<r.length;i++){var a=t.getDimensionIndex(r[i]);a>=0&&n.push(e[a])}return n.join(" ")}var qh=(function(t){G(e,t);function e(r,n,i,a){var o=t.call(this)||this;return o.updateData(r,n,i,a),o}return e.prototype._createSymbol=function(r,n,i,a,o,s){this.removeAll();var l=Ar(r,-1,-1,2,2,null,s);l.attr({z2:Z(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=tP,this._symbolType=r,this.add(l)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){al(this.childAt(0))},e.prototype.downplay=function(){ol(this.childAt(0))},e.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},e.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},e.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,n),u=e.getSymbolZ2(r,n),f=o!==this._symbolType,c=a&&a.disableAnimation;if(f){var v=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,u,v)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(d):Ie(h,d,s,n),Ui(h)}if(this._updateCommon(r,n,l,i,a),f){var h=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Ve(h,d,s,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,f,c,v,h,d,p,g,m;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,v=a.focus,h=a.blurScope,p=a.labelStatesModels,g=a.hoverScale,m=a.cursorStyle,d=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),h=_.get("blurScope"),d=_.get("disabled"),p=jn(y),g=_.getShallow("scale"),m=y.getShallow("cursor")}var S=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=r_(r.getItemVisual(n,"symbolOffset"),i);b&&(s.x=b[0],s.y=b[1]),m&&s.attr("cursor",m);var w=r.getItemVisual(n,"style"),T=w.fill;if(s instanceof Mt){var C=s.style;s.useStyle(z({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},w))}else s.__isEmptyBrush?s.useStyle(z({},w)):s.useStyle(w),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=r.getItemVisual(n,"liftZ"),x=this._z2;D!=null?x==null&&(this._z2=s.z2,s.z2+=D):x!=null&&(s.z2=x,this._z2=null);var A=o&&o.useNameLabel;Kn(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:L,inheritColor:T,defaultOpacity:w.opacity});function L(E){return A?r.getName(E):Xh(r,E)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var M=s.ensureState("emphasis");M.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;M.scaleX=this._sizeX*P,M.scaleY=this._sizeY*P,this.setSymbolScale(1),Fr(this,v,h,d)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=ue(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&pl(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();pl(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return t_(r.getItemVisual(n,"symbolSize"))},e.getSymbolZ2=function(r,n){return r.getItemVisual(n,"z2")},e})(Ce);function tP(t,e){this.parent.drift(t,e)}function Hl(t,e,r,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n&&n.isIgnore&&n.isIgnore(r))&&!(n&&n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function i_(t){return t!=null&&!j(t)&&(t={isIgnore:t}),t||{}}function a_(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:jn(e),cursorStyle:e.get("cursor")}}function o_(t,e,r,n,i,a,o){var s=new t(e,r,n,i);return s.setPosition(a),e.setItemGraphicEl(r,s),o.add(s),s}var s_=(function(){function t(e){this.group=new Ce,this._SymbolCtor=e||qh}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=i_(r);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=this._seriesScope=a_(e),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return e.getItemLayout(c)};a||n.removeAll(),e.diff(a).add(function(c){var v=f(c);Hl(e,v,c,r)&&o_(o,e,c,l,u,v,n)}).update(function(c,v){var h=a.getItemGraphicEl(v),d=f(c);if(!Hl(e,d,c,r)){n.remove(h);return}var p=e.getItemVisual(c,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==p)n.remove(h),h=new o(e,c,l,u),h.setPosition(d);else{h.updateData(e,c,l,u);var m={x:d[0],y:d[1]};s?h.attr(m):Ie(h,m,i)}n.add(h),e.setItemGraphicEl(c,h)}).remove(function(c){var v=a.getItemGraphicEl(c);v&&v.fadeOut(function(){n.remove(v)},i)}).execute(),this._getSymbolPoint=f,this._data=e},t.prototype.updateLayout=function(e){var r=this._data;if(r)for(var n=this,i=r.getStore(),a=0,o=i.count();a<o;a++){var s=r.getItemGraphicEl(a),l=n._getSymbolPoint(a);Hl(r,l,a,e)?(s=s||o_(n._SymbolCtor,r,a,n._seriesScope,{disableAnimation:!0},l,n.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(n.group.remove(s),r.setItemGraphicEl(a,null))}},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=a_(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n,i){this._progressiveEls=[],i=i_(i);function a(u){u.isGroup||(u.incremental=n,u.ensureState("emphasis").hoverLayer=Qc)}for(var o=e.start;o<e.end;o++){var s=r.getItemLayout(o);if(Hl(r,s,o,i)){var l=new this._SymbolCtor(r,o,this._seriesScope);l.traverse(a),l.setPosition(s),this.group.add(l),r.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},t.prototype.eachRendered=function(e){yl(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(i){i.fadeOut(function(){r.remove(i)},n.hostModel)}):r.removeAll()},t})();function l_(t,e,r){var n=t.getBaseAxis(),i=t.getOtherAxis(n),a=rP(i,r),o=n.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=$(t.dimensions,function(d){return e.mapDimension(d)}),v=!1,h=e.getCalculationInfo("stackResultDimension");return Ki(e,c[0])&&(v=!0,c[0]=h),Ki(e,c[1])&&(v=!0,c[1]=h),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function rP(t,e){var r=0,n=t.scale.getExtent();return e==="start"?r=n[0]:e==="end"?r=n[1]:me(e)&&!isNaN(e)?r=e:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function u_(t,e,r,n){var i=NaN;t.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=r.get(t.baseDim,n),o[1-a]=i,e.dataToPoint(o)}function Bt(t,e){return!isFinite(t)||!isFinite(e)}var nP=typeof Float32Array!==Bi?Float32Array:void 0,iP=typeof Float64Array!==Bi?Float64Array:void 0;function Vr(t){return Zh({ctor:nP},t).arr}function Zh(t,e){var r=t.arr,n=t.ctor;if(e>cm&&(e=cm),!r||t.typed&&r.length<e){var i=void 0;if(n)try{i=new n(e),t.typed=!0,r&&i.set(r)}catch{}if(!i&&(i=[],t.typed=!1,r))for(var a=0,o=r.length;a<o;a++)i[a]=r[a];t.arr=i}return t}function aP(t,e){var r=[];return e.diff(t).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function oP(t,e,r,n,i,a,o,s){for(var l=aP(t,e),u=[],f=[],c=[],v=[],h=[],d=[],p=[],g=l_(i,e,o),m=t.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],b=!0,w=void 0,T=void 0;switch(S.cmd){case"=":w=S.idx*2,T=S.idx1*2;var C=m[w],D=m[w+1],x=y[T],A=y[T+1];(isNaN(C)||isNaN(D))&&(C=x,D=A),u.push(C,D),f.push(x,A),c.push(r[w],r[w+1]),v.push(n[T],n[T+1]),p.push(e.getRawIndex(S.idx1));break;case"+":var L=S.idx,M=g.dataDimsForPoint,P=i.dataToPoint([e.get(M[0],L),e.get(M[1],L)]);T=L*2,u.push(P[0],P[1]),f.push(y[T],y[T+1]);var E=u_(g,i,e,L);c.push(E[0],E[1]),v.push(n[T],n[T+1]),p.push(e.getRawIndex(L));break;case"-":b=!1}b&&(h.push(S),d.push(d.length))}d.sort(function(K,ae){return p[K]-p[ae]});for(var k=u.length,O=Vr(k),R=Vr(k),N=Vr(k),F=Vr(k),B=[],_=0;_<d.length;_++){var V=d[_],X=_*2,H=V*2;O[X]=u[H],O[X+1]=u[H+1],R[X]=f[H],R[X+1]=f[H+1],N[X]=c[H],N[X+1]=c[H+1],F[X]=v[H],F[X+1]=v[H+1],B[_]=h[V]}return{current:O,next:R,stackedOnCurrent:N,stackedOnNext:F,status:B}}var hn=Math.min,vn=Math.max;function Kh(t,e,r,n,i,a,o,s,l){for(var u,f,c,v,h,d,p=r,g=0;g<n;g++){var m=e[p*2],y=e[p*2+1];if(p>=i||p<0)break;if(Bt(m,y)){if(l){p+=a;continue}break}if(p===r)t[a>0?"moveTo":"lineTo"](m,y),c=m,v=y;else{var _=m-u,S=y-f;if(_*_+S*S<.5){p+=a;continue}if(o>0){for(var b=p+a,w=e[b*2],T=e[b*2+1];w===m&&T===y&&g<n;)g++,b+=a,p+=a,w=e[b*2],T=e[b*2+1],m=e[p*2],y=e[p*2+1],_=m-u,S=y-f;var C=g+1;if(l)for(;Bt(w,T)&&C<n;)C++,b+=a,w=e[b*2],T=e[b*2+1];var D=.5,x=0,A=0,L=void 0,M=void 0;if(C>=n||Bt(w,T))h=m,d=y;else{x=w-u,A=T-f;var P=m-u,E=w-m,k=y-f,O=T-y,R=void 0,N=void 0;if(s==="x"){R=Math.abs(P),N=Math.abs(E);var F=x>0?1:-1;h=m-F*R*o,d=y,L=m+F*N*o,M=y}else if(s==="y"){R=Math.abs(k),N=Math.abs(O);var B=A>0?1:-1;h=m,d=y-B*R*o,L=m,M=y+B*N*o}else R=Math.sqrt(P*P+k*k),N=Math.sqrt(E*E+O*O),D=N/(N+R),h=m-x*o*(1-D),d=y-A*o*(1-D),L=m+x*o*D,M=y+A*o*D,L=hn(L,vn(w,m)),M=hn(M,vn(T,y)),L=vn(L,hn(w,m)),M=vn(M,hn(T,y)),x=L-m,A=M-y,h=m-x*R/N,d=y-A*R/N,h=hn(h,vn(u,m)),d=hn(d,vn(f,y)),h=vn(h,hn(u,m)),d=vn(d,hn(f,y)),x=m-h,A=y-d,L=m+x*N/R,M=y+A*N/R}t.bezierCurveTo(c,v,h,d,m,y),c=L,v=M}else t.lineTo(m,y)}u=m,f=y,p+=a}return g}var f_=(function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t})(),sP=(function(t){G(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:Y.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new f_},e.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&Bt(i[o*2-2],i[o*2-1]);o--);for(;a<o&&Bt(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=Kh(r,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=tn.CMD,s,l,u=n==="x",f=[],c=0;c<a.length;){var v=a[c++],h=void 0,d=void 0,p=void 0,g=void 0,m=void 0,y=void 0,_=void 0;switch(v){case o.M:s=a[c++],l=a[c++];break;case o.L:if(h=a[c++],d=a[c++],_=u?(r-s)/(h-s):(r-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(h-s)*_+s;return u?[r,S]:[S,r]}s=h,l=d;break;case o.C:h=a[c++],d=a[c++],p=a[c++],g=a[c++],m=a[c++],y=a[c++];var b=u?xs(s,h,p,m,r,f):xs(l,d,g,y,r,f);if(b>0)for(var w=0;w<b;w++){var T=f[w];if(T<=1&&T>=0){var S=u?Ye(l,d,g,y,T):Ye(s,h,p,m,T);return u?[r,S]:[S,r]}}s=m,l=y;break}}},e})(pe),lP=(function(t){G(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(f_),uP=(function(t){G(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new lP},e.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Bt(i[s*2-2],i[s*2-1]);s--);for(;o<s&&Bt(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=Kh(r,i,o,s,s,1,n.smooth,l,n.connectNulls);Kh(r,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},e})(pe);function jh(){var t=Se();return function(e){var r=t(e),n=e.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var c_=Se(),fP=jh(),je=(function(){function t(){this.group=new Ce,this.uid=vo("viewChart"),this.renderTask=bo({plan:cP,reset:hP}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.highlight=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&v_(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&v_(a,i,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateVisual=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.eachRendered=function(e){yl(this.group,e)},t.markUpdateMethod=function(e,r){c_(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function h_(t,e,r){t&&Hc(t)&&(e==="emphasis"?al:ol)(t,r)}function v_(t,e,r){var n=Wn(t,e),i=e&&e.highlightKey!=null?VD(e.highlightKey):null;n!=null?I(nt(n),function(a){h_(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){h_(a,r,i)})}pf(je),gs(je);function cP(t){return fP(t.model)}function hP(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&c_(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,n,i),vP[l]}var vP={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};function d_(t,e,r,n,i){var a=t.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new De({shape:{x:o,y:s,width:l,height:u}});if(e){var v=t.getBaseAxis(),h=v.isHorizontal(),d=v.inverse;h?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var p=ee(i)?function(g){i(g,c)}:null;Ve(c,{shape:{width:l,height:u,x:o,y:s}},r,null,n,p)}return c}function p_(t,e,r){var n=t.getArea(),i=ve(n.r0,1),a=ve(n.r,1),o=new xr({shape:{cx:ve(t.cx,1),cy:ve(t.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,Ve(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function dP(t,e,r,n,i){if(t){if(t.type==="polar")return p_(t,e,r);if(t.type==="cartesian2d")return d_(t,e,r,n,i)}else return null;return null}function pP(t){var e=t.coordinateSystem;if(t.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}function g_(t,e){return t.type===e}var jt=(function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();gs(jt);var gP=0,Qh=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++gP,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,n=r.data,i=n&&$(n,mP);return new t({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!q(e)&&!n)return e;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var i=this._getOrCreateMap();return r=i.get(e),r==null&&(n?(r=this.categories.length,this.categories[r]=e,i.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=te(this.categories))},t})();function mP(t){return j(t)&&t.value!=null?t.value:t+""}var Ft=0,wo=1,yP={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},m_=ce(yP),Ul=2,y_=3;function Jh(t,e,r){var n;t=t||{};var i=at();if(i){var a=i.createBreakScaleMapper(e,r);a.hasBreaks()&&(I(m_,function(o){a[o]&&(t[o]=de(a[o],a))}),n=a)}return n==null&&SP(t,r),{brk:n,mapper:t}}function __(t,e){I(m_,function(r){t[r]=e[r]})}function S_(t,e){t.freeze=We}function To(t){return t.getExtentUnsafe(Ft,Ul)}function Wl(t,e){return t.getExtentUnsafe(wo,e)||t.getExtentUnsafe(Ft,e)}function _P(t){var e=Wl(t,y_);return e[1]-e[0]}function Yl(t){var e=t.getExtentUnsafe(Ft,y_);return e[1]-e[0]}function SP(t,e){var r=t||{},n=[];return r._extents=n,n[Ft]=e?e.slice():Et(),z(r,bP),r}var bP={needTransform:function(){return!1},normalize:function(t){var e=this._extents[wo]||this._extents[Ft];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[wo]||this._extents[Ft];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=Wl(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[Ft].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){b_(this._extents,Ft,t,e)},setExtent2:function(t,e,r){var n=this._extents;n[t]||(n[t]=n[Ft].slice()),b_(n,t,e,r)},freeze:function(){}};function b_(t,e,r,n){Ni(r,n)&&(t[e][0]=r,t[e][1]=n)}function w_(t){return $l(t)||ea(t)}function $l(t){return t.type==="interval"}function ev(t){return t.type==="time"}function ea(t){return t.type==="log"}function Qt(t){return t.type==="ordinal"}function wP(t){var e=bc(t),r=Un(10,e),n=Or(t/r);return n?n===2?n=3:n===3?n=5:n*=2:n=1,ve(n*r,-e)}function ai(t){return nn(t)+2}function Xl(t,e){return qa(t)/qa(e)}function tv(t,e,r){var n=r&&r.lookup;if(n){for(var i=0;i<n.from.length;i++)if(t===n.from[i])return n.to[i]}return Un(e,t)}function T_(t,e,r){var n=t.slice();if(n[0]===n[1]){var i=r&&r.ctnShp;if(n[0]!==0){var a=Be(n[0]);e[1]||(n[1]+=a/2),n[0]-=a/2}else i&&(n[0]=-1),n[1]=1}return(!Nr(n[0])||!Nr(n[1]))&&(n[0]=0,n[1]=1),n[1]<n[0]&&n.reverse(),n}function TP(t,e){return[t[0]!==e[0],t[1]!==e[1]]}function ql(t,e){return t=t||e,Or(ge(t,1))}function x_(t,e,r){var n=To(t),i=n[0],a=t.count(),o=Math.max((e||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==n[0]&&l(n[0],!0,!0);for(var s=i;s<=n[1];s+=o)l(s,!1,s===n[0]||s===n[1]);s-o!==n[1]&&l(n[1],!0,!0);function l(u,f,c){r({value:u,offInterval:f},c)}}var C_=(function(t){G(e,t);function e(r){var n=t.call(this)||this;n.type="ordinal",n.parse=e.parse,__(n,e.decoratedMethods);var i=r.ordinalMeta;i||(i=new Qh({})),W(i)&&(i=new Qh({categories:$(i,function(o){return j(o)?o.value:o})})),n._ordinalMeta=i;var a=Jh(null,null,r.extent||[0,i.categories.length-1]);return n._mapper=a.mapper,S_(n),n}return e.parse=function(r){return r==null?r=NaN:q(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=Or(r),r},e.prototype.getTicks=function(){var r=[];return x_(this,0,function(n){r.push(n)}),r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=qe(s,n.length);o<l;++o){var u=i[o]=n[o];a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i[o]=f,a[f]=o}},e.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},e.prototype.count=function(){var r=To(this._mapper);return r[1]-r[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(r){return this._mapper.contain(this._getTickNumber(r))&&r>=0&&r<this._ordinalMeta.categories.length},normalize:function(r){return this._mapper.normalize(this._getTickNumber(r))},scale:function(r){return this.getRawOrdinalNumber(Or(this._mapper.scale(r)))},transformIn:function(r,n){return this._mapper.transformIn(this._getTickNumber(r),n)},transformOut:function(r,n){return this.getRawOrdinalNumber(this._mapper.transformOut(r,n))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,n){return this._mapper.getExtentUnsafe(r,n)},setExtent:function(r,n){return this._mapper.setExtent(r,n)},setExtent2:function(r,n,i){return this._mapper.setExtent2(r,n,i)}},e})(jt);jt.registerClass(C_);function rv(t,e,r,n){for(var i=t.getTicks({expandToNicedExtent:!0}),a=[],o=t.getExtent(),s=1;s<i.length;s++){var l=i[s],u=i[s-1];if(!(u.break||l.break)){for(var f=0,c=[],v=l.value-u.value,h=v/e,d=ai(h);f<e-1;){var p=ve(u.value+(f+1)*h,d);p>o[0]&&p<o[1]&&c.push(p),f++}var g=at();g&&g.pruneTicksByBreak("auto",c,r,function(m){return m},n,o),a.push(c)}}return a}var dn=(function(t){G(e,t);function e(r){var n=t.call(this)||this;n.type="interval",n.parse=e.parse,r=r||{};var i=w0(n,r),a=Jh(n,i,null);return n.brk=a.brk,n._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},n}return e.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.getConfig=function(){return oe(this._cfg)},e.prototype.setConfig=function(r){var n=To(this);this._cfg=r=oe(r),r.niceExtent==null&&(r.niceExtent=n.slice()),r.intervalPrecision==null&&(r.intervalPrecision=ai(r.interval))},e.prototype.getTicks=function(r){r=r||{};var n=this._cfg,i=n.interval,a=To(this),o=n.niceExtent,s=n.intervalPrecision,l=at(),u=this.brk,f=l&&u,c=[];if(!i)return c;if(r.breakTicks==="only_break"&&f)return l.addBreaksToTicks(c,u.breaks,a),c;var v=3e3;a[0]<o[0]&&c.push({value:r.expandToNicedExtent?ve(o[0]-i,s):a[0]});for(var h=function(_,S){return Or((S-_)/i)},d=n.intervalCount,p=o[0],g=0;;g++){if(d==null){if(p>o[1]||!isFinite(p)||!isFinite(o[1]))break}else{if(g>d)break;p=qe(p,o[1]),g===d&&(p=o[1])}if(c.push({value:p}),p=ve(p+i,s),u){var m=u.calcNiceTickMultiple(p,h);m>=0&&(p=ve(p+m*i,s))}if(c.length>0&&p===c[c.length-1].value)break;if(c.length>v)return[]}var y=c.length?c[c.length-1].value:o[1];return a[1]>y&&c.push({value:r.expandToNicedExtent?ve(y+i,s):a[1]}),f&&l.pruneTicksByBreak(r.pruneByBreak,c,u.breaks,function(_){return _.value},n.interval,a),f&&r.breakTicks!=="none"&&l.addBreaksToTicks(c,u.breaks,a),c},e.prototype.getMinorTicks=function(r){return rv(this,r,El(this),this._cfg.interval)},e.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=nn(r.value)||0:i==="auto"&&(i=this._cfg.intervalPrecision);var a=ve(r.value,i,!0);return E0(a)},e.type="interval",e})(jt);jt.registerClass(dn);var xP=function(t,e,r,n){for(;r<n;){var i=r+n>>>1;t[i][1]<e?r=i+1:n=i}return r},A_=(function(t){G(e,t);function e(r){var n=t.call(this)||this;n.type="time",n.parse=e.parse,n._locale=r.locale,n._useUTC=r.useUTC,n._interval=0;var i=w0(n,r),a=Jh(n,i,null);return n.brk=a.brk,n}return e.prototype.getLabel=function(r){return Nl(r.value,x0[nL(go(this._minLevelUnit))]||x0.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(r,n,i){return iL(r,n,i,this._locale,this._useUTC)},e.prototype.getTicks=function(r){r=r||{};var n=this._interval,i=To(this),a=at(),o=this.brk,s=a&&o,l=[];if(!n)return l;var u=this._useUTC;if(s&&r.breakTicks==="only_break")return at().addBreaksToTicks(l,o.breaks,i),l;l=PP(this._minLevelUnit,this._approxInterval,u,i,Yl(this),o);var f=St.length-1,c=0;return I(l,function(v){v.time&&(f=Math.min(f,fe(St,v.time.upperTimeUnit)),c=Math.max(c,v.time.level))}),s&&at().pruneTicksByBreak(r.pruneByBreak,l,o.breaks,function(v){return v.value},this._approxInterval,i),s&&r.breakTicks!=="none"&&at().addBreaksToTicks(l,o.breaks,i,function(v){for(var h=Math.max(fe(St,Qi(v.vmin,u)),fe(St,Qi(v.vmax,u))),d=0,p=0;p<St.length;p++)if(!D_(St[p],v.vmin,v.vmax,u)){d=p;break}var g=Math.min(d,f),m=Math.max(g,h);return{level:c,lowerTimeUnit:St[m],upperTimeUnit:St[g]}}),l},e.prototype.getMinorTicks=function(r){return rv(this,r,El(this),this._interval)},e.prototype.setTimeInterval=function(r){this._interval=r.interval,this._approxInterval=r.approxInterval,this._minLevelUnit=r.minLevelUnit},e.parse=function(r){return me(r)?Math.round(r):+Oi(r)},e.type="time",e})(jt),Zl=[["second",Mh],["minute",Ih],["hour",po],["quarter-day",po*6],["half-day",po*12],["day",Nt*1.2],["half-week",Nt*3.5],["week",Nt*7],["month",Nt*31],["quarter",Nt*95],["half-year",T0/2],["year",T0]];function D_(t,e,r,n){return Lh(new Date(e),t,n).getTime()===Lh(new Date(r),t,n).getTime()}function CP(t,e){return t/=Nt,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function AP(t){var e=30*Nt;return t/=e,t>6?6:t>3?3:t>2?2:1}function DP(t){return t/=po,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function M_(t,e){return t/=e?Ih:Mh,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function MP(t){return ge(wc(t,!0),1)}function IP(t,e,r){var n=Math.max(0,fe(St,e)-1);return Lh(new Date(t),St[n],r).getTime()}function LP(t,e){var r=new Date(0);r[t](1);var n=r.getTime();r[t](1+e);var i=r.getTime()-n;return function(a,o){return Math.max(0,Math.round((o-a)/i))}}function PP(t,e,r,n,i,a){var o=3e3,s=JI,l=0;function u(k,O,R,N,F,B,V){for(var X=LP(F,k),H=O,K=new Date(H);H<R&&H<=n[1]&&(V.push({value:H}),!(l++>o));)if(K[F](K[N]()+k),H=K.getTime(),a){var ae=a.calcNiceTickMultiple(H,X);ae>0&&(K[F](K[N]()+ae*k),H=K.getTime())}V.push({value:H,notAdd:H>n[1]})}function f(k,O,R){var N=[],F=!O.length;if(!D_(go(k),n[0],n[1],r)){F&&(O=[{value:IP(n[0],k,r)},{value:n[1]}]);for(var B=0;B<O.length-1;B++){var V=O[B].value,X=O[B+1].value;if(V!==X){var H=void 0,K=void 0,ae=void 0,ke=!1;switch(k){case"year":H=Math.max(1,Math.round(e/Nt/365)),K=C0(r),ae=aL(r);break;case"half-year":case"quarter":case"month":H=AP(e),K=Ph(r),ae=A0(r);break;case"week":case"half-week":case"day":H=CP(e),K=Eh(r),ae=D0(r),ke=!0;break;case"half-day":case"quarter-day":case"hour":H=DP(e),K=kh(r),ae=M0(r);break;case"minute":H=M_(e,!0),K=Rh(r),ae=I0(r);break;case"second":H=M_(e,!1),K=Oh(r),ae=L0(r);break;case"millisecond":H=MP(e),K=Nh(r),ae=P0(r);break}X>=n[0]&&V<=n[1]&&u(H,V,X,K,ae,ke,N),k==="year"&&R.length>1&&B===0&&R.unshift({value:R[0].value-H})}}for(var B=0;B<N.length;B++)R.push(N[B])}}for(var c=[],v=[],h=0,d=0,p=0;p<s.length;++p){var g=go(s[p]);if(rL(s[p])){f(s[p],c[c.length-1]||[],v);var m=s[p+1]?go(s[p+1]):null;if(g!==m){if(v.length){d=h,v.sort(function(k,O){return k.value-O.value});for(var y=[],_=0;_<v.length;++_){var S=v[_].value;(_===0||v[_-1].value!==S)&&(y.push(v[_]),S>=n[0]&&S<=n[1]&&h++)}var b=i/e;if(h>b*1.5&&d>b/1.5||(c.push(y),h>b||t===s[p]))break}v=[]}}}for(var w=Ue($(c,function(k){return Ue(k,function(O){return O.value>=n[0]&&O.value<=n[1]&&!O.notAdd})}),function(k){return k.length>0}),T=w.length-1,C=[],p=0;p<w.length;++p)for(var D=w[p],x=0;x<D.length;++x){var A=Qi(D[x].value,r);C.push({value:D[x].value,time:{level:T-p,upperTimeUnit:A,lowerTimeUnit:A}})}Mc(C,_D,null),C.sort(function(k,O){return k.value-O.value});var L=C[0],M=C[C.length-1],P=Qi(n[0],r),E=Qi(n[1],r);return(!L||L.value>n[0])&&C.unshift({value:n[0],time:{level:0,upperTimeUnit:P,lowerTimeUnit:P},notNice:!0}),(!M||M.value<n[1])&&C.push({value:n[1],time:{level:0,upperTimeUnit:E,lowerTimeUnit:E},notNice:!0}),C}var EP=function(t,e){var r=t.getExtent();if(r[0]===r[1]&&(r[0]-=Nt,r[1]+=Nt),r[1]===-1/0&&r[0]===1/0){var n=new Date;r[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),r[0]=r[1]-Nt}t.setExtent(r[0],r[1]);var i=ql(e.splitNumber,10),a=Yl(t)/i,o=e.minInterval,s=e.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var l=Zl.length,u=Math.min(xP(Zl,a,0,l),l-1),f=Zl[u][1],c=Zl[Math.max(u-1,0)][0];t.setTimeInterval({approxInterval:a,interval:f,minLevelUnit:c})};jt.registerClass(A_);var Kl=0,jl=1,kP=2,I_=(function(t){G(e,t);function e(r){var n=t.call(this)||this;n.type="log",n.parse=dn.parse,n.base=r.logBase||10;var i=[],a=[],o=n._lookup={from:i,to:a};i[Kl]=i[jl]=a[Kl]=a[jl]=NaN,__(n,e.mapperMethods);var s=at(),l=r.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,n,{noNegative:!0},kP,u),n.powStub=new dn({breakParsed:u.original}),n.intervalStub=new dn({breakParsed:u.transformed}),S_(n,n.intervalStub),n}return e.prototype.getTicks=function(r){var n=this.base,i=this.powStub,a=at(),o=this.intervalStub,s=o.getExtent(),l=i.getExtent(),u={lookup:{from:s,to:l}};return $(o.getTicks(r||{}),function(f){var c=f.value,v=tv(c,n,u),h;if(a){var d=a.getTicksBreakOutwardTransform(this,f,El(i),this._lookup);d&&(h=d.vBreak,v=d.tickVal)}return{value:v,break:h}},this)},e.prototype.getMinorTicks=function(r){return rv(this,r,El(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(r,n){return this.intervalStub.getLabel(r,n)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(Xl(r,this.base))},scale:function(r){return tv(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,n){return r=Xl(r,this.base),n&&n.depth===Ul?r:this.intervalStub.transformIn(r,n)},transformOut:function(r,n){var i=n?n.depth:null;return L_.depth=i,P_.lookup=this._lookup,tv(i===Ul?r:this.intervalStub.transformOut(r,L_),this.base,P_)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,n){this.setExtent2(Ft,r,n)},setExtent2:function(r,n,i){if(!(!Ni(n,i)||n<=0||i<=0)){var a=E_,o=E_;if(r===Ft){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(r,a[Kl]=n,a[jl]=i);var l=this.base;this.intervalStub.setExtent2(r,o[Kl]=Xl(n,l),o[jl]=Xl(i,l))}},getFilter:function(){return{g:0}},sanitize:function(r,n){return Ni(n[0],n[1])&&Lt(r)&&r<=0&&(r=n[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,n){return n===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,n)}},e})(jt);jt.registerClass(I_);var L_={},P_={},E_=[],k_={value:1,category:1,time:1,log:1},R_=Se();function RP(t){var e=t.get("type");return(e==null||!tt(k_,e)&&!jt.getClass(e))&&(e="value"),e}function OP(t,e,r){var n=at(),i;switch(n&&(i=O_(t,e)),e){case"category":return new C_({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:Et()});case"time":return new A_({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:i});case"log":return new I_({logBase:t.get("logBase"),breakOption:i});case"value":return new dn({breakOption:i});default:return new(jt.getClass(e)||dn)({})}}function NP(t,e,r){var n=t.getExtentUnsafe(Ft,null),i=n[0],a=n[1];return Ni(i,a)?i===e||a===e?FP:i<e&&a>e?BP:nv:nv}var BP=1,FP=2,nv=3;function zP(t){R_(t).noOnMyZero=!0}function GP(t){return R_(t).noOnMyZero}function Ql(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=eL(e);return function(i,a){return t.scale.getFormattedLabel(i,a,r)}}else{if(q(e))return function(i){var a=t.scale.getLabel(i),o=e.replace("{value}",a??"");return o};if(ee(e)){if(t.type==="category")return function(i,a){return e(Jl(t,i),i.value-t.scale.getExtent()[0],null)};var n=at();return function(i,a){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,i.break)),e(Jl(t,i),a,o)}}else return function(i){return t.scale.getLabel(i)}}}function Jl(t,e){var r=t.scale;return Qt(r)?r.getLabel(e):e.value}function iv(t){var e=t.get("interval");return e??"auto"}function VP(t){return t.type==="category"&&iv(t.getLabelModel())===0}function HP(t,e){var r={};return I(t.mapDimensionsAll(e),function(n){r[LI(t,n)]=!0}),ce(r)}function ta(t){return t==="middle"||t==="center"}function xo(t){return t.getShallow("show")}function O_(t,e,r){var n=t.get("breaks",!0);if(n!=null)return!at()||!UP(e)?void 0:n}function UP(t){return t!=="category"}function N_(t,e,r,n,i,a){var o=ea(t),s=o?t.intervalStub:t;if(s.setExtent(n[0],n[1]),o){var l=t.powStub,u={depth:Ul},f=t.transformOut(n[0],u),c=t.transformOut(n[1],u),v=TP(r,n);e[0]&&!v[0]&&(f=i[0]),e[1]&&!v[1]&&(c=i[1]),l.setExtent(f,c)}s.setConfig(a)}function Co(t,e){return Qt(t)?t.getRawOrdinalNumber(e.value):e.value}function B_(t,e){return Qt(t)&&!!e.get("boundaryGap")}function F_(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function z_(t){for(var e=Et(),r=Et(),n=0;n<t.length;){var i=t[n++],a=t[n++];Bt(i,a)||(Dc(e,i),Dc(r,a))}return[e,r]}function G_(t,e){var r=z_(t),n=r[0],i=r[1],a=z_(e),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(i[0]-s[0]),Math.abs(n[1]-o[1]),Math.abs(i[1]-s[1]))}function V_(t){return me(t)?t:t?.5:0}function WP(t,e,r){if(r.valueDim==null)return[];for(var n=e.count(),i=Vr(n*2),a=0;a<n;a++){var o=u_(r,t,e,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function pn(t,e,r,n,i){var a=r.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],v=[];if(i){for(l=0;l<t.length;l+=2){var h=e||t;Bt(h[l],h[l+1])||v.push(t[l],t[l+1])}t=v}for(l=0;l<t.length-2;l+=2)switch(c[0]=t[l+2],c[1]=t[l+3],f[0]=t[l],f[1]=t[l+1],s.push(f[0],f[1]),n){case"end":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+c[o])/2,p=[];u[o]=p[o]=d,u[1-o]=f[1-o],p[1-o]=c[1-o],s.push(u[0],u[1]),s.push(p[0],p[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function YP(t,e){var r=[],n=t.length,i,a;function o(f,c,v){var h=f.coord,d=(v-h)/(c.coord-h),p=YC(d,[f.color,c.color]);return{coord:v,color:p}}for(var s=0;s<n;s++){var l=t[s],u=l.coord;if(u<0)i=l;else if(u>e){a?r.push(o(a,l,e)):i&&r.push(o(i,l,0),o(i,l,e));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function $P(t,e,r){var n=t.getVisual("visualMeta");if(!(!n||!n.length||!t.count())&&e.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=t.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=e.getAxis(i),u=$(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var v=YP(u,i==="x"?r.getWidth():r.getHeight()),h=v.length;if(!h&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=v[0].coord-d,g=v[h-1].coord+d,m=g-p;if(m<.001)return"transparent";I(v,function(_){_.offset=(_.coord-p)/m}),v.push({offset:h?v[h-1].offset:.5,color:c[1]||"transparent"}),v.unshift({offset:h?v[0].offset:.5,color:c[0]||"transparent"});var y=new cy(0,0,0,0,v,!0);return y[i]=p,y[i+"2"]=g,y}}}function XP(t,e,r){var n=t.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&qP(a,e))){var o=e.mapDimension(a.dim),s={};return I(a.getViewLabels(),function(l){l.tick.offInterval||(s[Co(a.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function qP(t,e){var r=t.getExtent(),n=Math.abs(r[1]-r[0])/t.scale.count();isNaN(n)&&(n=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(qh.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>n)return!1;return!0}function ZP(t){for(var e=t.length/2;e>0&&Bt(t[e*2-2],t[e*2-1]);e--);return e-1}function H_(t,e){return[t[e*2],t[e*2+1]]}function KP(t,e,r){for(var n=t.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=t[u*2+i],!Bt(o,t[u*2+1-i])){if(u===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function U_(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Rt.length;e++)if(t.get([Rt[e],"endLabel","show"]))return!0;return!1}function av(t,e,r,n){if(g_(e,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=U_(n)?function(h,d){t._endLabelOnDuring(h,d,o,s,a,i,e)}:null,u=e.getBaseAxis().isHorizontal(),f=d_(e,r,n,function(){var h=t._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=f.shape,v=Math.max(c.width,c.height);u?(c.y-=v,c.height+=v*2):(c.x-=v,c.width+=v*2)}return l&&l(1,f),f}else return p_(e,r,n)}function jP(t,e){var r=e.getBaseAxis(),n=r.isHorizontal(),i=r.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:t.get("align")||a,verticalAlign:t.get("verticalAlign")||o}}}var QP=(function(t){G(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new Ce,n=new s_;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r,this._changePolyState=de(this._changePolyState,this)},e.prototype.render=function(r,n,i){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),f=s.getLayout("points")||[],c=a.type==="polar",v=this._coordSys,h=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,m=!n.ssr&&r.get("animation"),y=!u.isEmpty(),_=u.get("origin"),S=l_(a,s,_),b=y&&WP(a,s,S),w=r.get("showSymbol"),T=r.get("connectNulls"),C=w&&!c&&XP(r,s,a),D=this._data;D&&D.eachItemGraphicEl(function(he,Te){he.__temp&&(o.remove(he),D.setItemGraphicEl(Te,null))}),w||h.remove(),o.add(g);var x=c?!1:r.get("step"),A;a&&a.getArea&&r.get("clip",!0)&&(A=a.getArea(),A.width!=null?(A.x-=.1,A.y-=.1,A.width+=.2,A.height+=.2):A.r0&&(A.r0-=.5,A.r+=.5)),this._clipShapeForSymbol=A;var L=$P(s,a,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&v.type===a.type&&x===this._step))w&&h.updateData(s,{isIgnore:C,clipShape:A,disableAnimation:!0,getSymbolPoint:function(he){return[f[he*2],f[he*2+1]]}}),m&&this._initSymbolLabelAnimation(s,a,A),x&&(b&&(b=pn(b,f,a,x,T)),f=pn(f,null,a,x,T)),d=this._newPolyline(f),y?p=this._newPolygon(f,b):p&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,ri(L)),g.setClipPath(av(this,a,!0,r));else{y&&!p?p=this._newPolygon(f,b):p&&!y&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,ri(L));var M=g.getClipPath();if(M){var P=av(this,a,!1,r);Ve(M,{shape:P.shape},r)}else g.setClipPath(av(this,a,!0,r));w&&h.updateData(s,{isIgnore:C,clipShape:A,disableAnimation:!0,getSymbolPoint:function(he){return[f[he*2],f[he*2+1]]}}),(!F_(this._stackedOnPoints,b)||!F_(this._points,f))&&(m?this._doUpdateAnimation(s,b,a,i,x,_,T):(x&&(b&&(b=pn(b,f,a,x,T)),f=pn(f,null,a,x,T)),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:b})))}var E=r.getModel("emphasis"),k=E.get("focus"),O=E.get("blurScope"),R=E.get("disabled");if(d.useStyle(le(l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),zr(d,r,"lineStyle"),d.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var N=d.getState("emphasis").style;N.lineWidth=+d.style.lineWidth+1}ue(d).seriesIndex=r.seriesIndex,Fr(d,k,O,R);var F=V_(r.get("smooth")),B=r.get("smoothMonotone");if(d.setShape({smooth:F,smoothMonotone:B,connectNulls:T}),p){var V=s.getCalculationInfo("stackedOnSeries"),X=0;p.useStyle(le(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),V&&(X=V_(V.get("smooth"))),p.setShape({smooth:F,stackedOnSmooth:X,smoothMonotone:B,connectNulls:T}),zr(p,r,"areaStyle"),ue(p).seriesIndex=r.seriesIndex,Fr(p,k,O,R)}var H=this._changePolyState;s.eachItemGraphicEl(function(he){he&&(he.onHoverStateChange=H)}),this._polyline.onHoverStateChange=H,this._data=s,this._coordSys=a,this._stackedOnPoints=b,this._points=f,this._step=x,this._valueOrigin=_;var K=r.get("triggerEvent"),ae=r.get("triggerLineEvent"),ke=ae===!0||K===!0||K==="line",Ae=ae===!0||K===!0||K==="area";this.packEventData(r,d,ke),p&&this.packEventData(r,p,Ae)},e.prototype.packEventData=function(r,n,i){ue(n).eventData=i?{componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line",selfType:n===this._polygon?"area":"line"}:null},e.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=Wn(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(Bt(f,c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var v=r.get("zlevel")||0,h=r.get("z")||0;u=new qh(o,s),u.x=f,u.y=c,u.setZ(v,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=h,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else je.prototype.highlight.call(this,r,n,i,a)},e.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Wn(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else je.prototype.downplay.call(this,r,n,i,a)},e.prototype._changePolyState=function(r){var n=this._polygon;Gm(this._polyline,r),n&&Gm(n,r)},e.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new sP({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new uP({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");ee(f)&&(f=f(null));var c=u.get("animationDelay")||0,v=ee(c)?c(null):c;r.eachItemGraphicEl(function(h,d){var p=h;if(p){var g=[h.x,h.y],m=void 0,y=void 0,_=void 0;if(i)if(o){var S=i,b=n.pointToCoord(g);a?(m=S.startAngle,y=S.endAngle,_=-b[1]/180*Math.PI):(m=S.r0,y=S.r,_=b[0])}else{var w=i;a?(m=w.x,y=w.x+w.width,_=h.x):(m=w.y+w.height,y=w.y,_=h.y)}var T=y===m?0:(_-m)/(y-m);l&&(T=1-T);var C=ee(c)?c(d):f*T+v,D=p.getSymbolPath(),x=D.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:C}),D.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(U_(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Me({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=ZP(l);f>=0&&(Kn(s,jn(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:f,defaultText:function(c,v,h){return h!=null?n_(o,h):Xh(o,c)},enableTextSetter:!0},jP(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=i.getLayout("points"),v=i.hostModel,h=v.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,_=n.shape,S=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,b=(m?p:0)*(y?-1:1),w=(m?0:-p)*(y?-1:1),T=m?"x":"y",C=KP(c,S,T),D=C.range,x=D[1]-D[0],A=void 0;if(x>=1){if(x>1&&!h){var L=H_(c,D[0]);u.attr({x:L[0]+b,y:L[1]+w}),o&&(A=v.getRawValue(D[0]))}else{var L=f.getPointOn(S,T);L&&u.attr({x:L[0]+b,y:L[1]+w});var M=v.getRawValue(D[0]),P=v.getRawValue(D[1]);o&&(A=Tm(i,d,M,P,C.t))}a.lastFrameIndex=D[0]}else{var E=r===1||a.lastFrameIndex>0?D[0]:0,L=H_(c,E);o&&(A=v.getRawValue(E)),u.attr({x:L[0]+b,y:L[1]+w})}if(o){var k=so(u);typeof k.setLabelText=="function"&&k.setLabelText(A)}}},e.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,v=oP(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),h=v.current,d=v.stackedOnCurrent,p=v.next,g=v.stackedOnNext;if(o&&(d=pn(v.stackedOnCurrent,v.current,i,o,l),h=pn(v.current,null,i,o,l),g=pn(v.stackedOnNext,v.next,i,o,l),p=pn(v.next,null,i,o,l)),G_(h,p)>3e3||f&&G_(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=v.current,u.shape.points=h;var m={shape:{points:p}};v.current!==h&&(m.shape.__points=v.next),u.stopAnimation(),Ie(u,m,c),f&&(f.setShape({points:h,stackedOnPoints:d}),f.stopAnimation(),Ie(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=v.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var w=r.getItemGraphicEl(_[S].idx1);w&&y.push({el:w,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var T=u.shape.__points,C=0;C<y.length;C++){var D=y[C].el,x=y[C].ptIdx*2;D.x=T[x],D.y=T[x+1],D.markRedraw()}})},e.prototype.remove=function(r){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(je);function ov(t,e){return{seriesType:t,plan:jh(),reset:function(r){var n=r.getData(),i=r.coordinateSystem,a=r.pipelineContext,o=e||a.large;if(i){var s=$(i.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");Ki(n,s[0])&&(s[0]=u),Ki(n,s[1])&&(s[1]=u);var f=n.getStore(),c=n.getDimensionIndex(s[0]),v=n.getDimensionIndex(s[1]);return l&&{progress:function(h,d){for(var p=h.end-h.start,g=o&&Vr(p*l),m=[],y=[],_=h.start,S=0;_<h.end;_++){var b=void 0;if(l===1){var w=f.get(c,_);b=i.dataToPoint(w,null,y)}else m[0]=f.get(c,_),m[1]=f.get(v,_),b=i.dataToPoint(m,null,y);o?(g[S++]=b[0],g[S++]=b[1]):d.setItemLayout(_,b.slice())}o&&(d.setLayout("points",g),d.setLayout("pointsRange",{start:h.start,end:h.end}))}}}}}}var JP={average:function(t){for(var e=0,r=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},e2=function(t){return Math.round(t.length/2)};function W_(t){return{seriesType:t,reset:function(e,r,n){var i=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/v);if(isFinite(h)&&h>1){a==="lttb"?e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h)):a==="minmax"&&e.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/h));var d=void 0;q(a)?d=JP[a]:ee(a)&&(d=a),d&&e.setData(i.downSample(i.mapDimension(u.dim),1/h,d,e2))}}}}}function t2(t){t.registerChartView(QP),t.registerSeriesModel(eP),t.registerLayout(ov("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,W_("line"))}var r2=Se(),Ao=Se(),Jt={estimate:1,determine:2};function eu(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function n2(t,e){var r=t.getLabelModel().get("customValues");if(r){var n=t.scale;return{labels:$(Y_(r,n),function(i,a){return{formattedLabel:Ql(t)(i,a),rawLabel:n.getLabel(i),tick:i}})}}return t.type==="category"?a2(t,e):s2(t)}function i2(t,e,r){var n=t.scale,i=t.getTickModel().get("customValues");return i?{ticks:Y_(i,n)}:t.type==="category"?o2(t,e):{ticks:n.getTicks(r)}}function Y_(t,e){var r=e.getExtent(),n=[];return I(t,function(i){i=e.parse(i),i>=r[0]&&i<=r[1]&&n.push(i)}),Mc(n,SD,null),Sc(n),$(n,function(i){return{value:i}})}function a2(t,e){var r=t.getLabelModel(),n=$_(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:n}function $_(t,e,r){var n=u2(t),i=iv(e),a=r.kind===Jt.estimate;if(!a){var o=q_(n,i);if(o)return o}var s,l;ee(i)?s=tu(t,i,!1):(l=i==="auto"?f2(t,r):i,s=tu(t,l,!1));var u={labels:s,labelCategoryInterval:l};return a?r.out.noPxChangeTryDetermine.push(function(){return sv(n,i,u),!0}):sv(n,i,u),u}function o2(t,e){var r=l2(t),n=iv(e),i=q_(r,n);if(i)return i;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),ee(n))a=tu(t,n,!0);else if(n==="auto"){var s=$_(t,t.getLabelModel(),eu(Jt.determine));o=s.labelCategoryInterval,a=$(s.labels,function(l){return l.tick})}else o=n,a=tu(t,o,!0);return sv(r,n,{ticks:a,tickCategoryInterval:o})}function s2(t){var e=t.scale.getTicks(),r=Ql(t);return{labels:$(e,function(n,i){return{formattedLabel:r(n,i),rawLabel:t.scale.getLabel(n),tick:n}})}}var l2=X_("axisTick"),u2=X_("axisLabel");function X_(t){return function(r){return Ao(r)[t]||(Ao(r)[t]={list:[]})}}function q_(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function sv(t,e,r){return t.list.push({key:e,value:r}),r}function f2(t,e){if(e.kind===Jt.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Ao(t).autoInterval=r,!0}),r}var n=Ao(t).autoInterval;return n??(Ao(t).autoInterval=t.calculateCategoryInterval(e))}function c2(t,e){var r=e.kind,n=v2(t),i=Ql(t),a=(n.axisRotate-n.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],v=t.dataToCoord(c+1)-t.dataToCoord(c),h=Math.abs(v*Math.cos(a)),d=Math.abs(v*Math.sin(a)),p=0,g=0;c<=s[1];c+=u){var m=0,y=0,_=ag(i({value:c}),n.font,"center","top");m=_.width*1.3,y=_.height*1.3,p=Math.max(p,m,7),g=Math.max(g,y,7)}var S=p/h,b=g/d;isNaN(S)&&(S=1/0),isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(Math.min(S,b)));if(r===Jt.estimate)return e.out.noPxChangeTryDetermine.push(de(h2,null,t,w,l)),w;var T=Z_(t,w,l);return T??w}function h2(t,e,r){return Z_(t,e,r)==null}function Z_(t,e,r){var n=r2(t.model),i=t.getExtent(),a=n.lastAutoInterval,o=n.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-r)<=1&&a>e&&n.axisExtent0===i[0]&&n.axisExtent1===i[1])return a;n.lastTickCount=r,n.lastAutoInterval=e,n.axisExtent0=i[0],n.axisExtent1=i[1]}function v2(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function tu(t,e,r){var n=Ql(t),i=t.scale,a=[],o=ee(e);return x_(i,o?0:e,function(s,l){var u=i.getLabel(s);if(o){var f=!!e(s.value,u);if(s.offInterval=!f,!f&&!l)return}a.push(r?s:{formattedLabel:n(s),rawLabel:u,tick:s})}),a}var ru=Se();function d2(t){ru(t).prepare={}}function p2(t){ru(t).fullUpdate={}}function g2(t){return ru(t).prepare}function ra(t){return ru(t).fullUpdate}var m2=Am(),lv="|&",na=Se(),K_=-2,y2=-1,_2=Se();function j_(t,e){var r=t.model,n=na(ra(r.ecModel)).keyed,i=n&&n.get(e);return i&&i.get(r.uid)}function S2(t,e){return J_(j_(t,e))}function b2(t,e){var r=[];return Q_(t.model.ecModel,function(n){for(var i=0;i<e.length;i++)e[i]&&n.serByIdx[e[i].seriesIndex]&&r.push(J_(n))}),r}function Q_(t,e){var r=na(ra(t)).keyed;r&&r.each(function(n,i){n.each(function(a,o){e(a,i,o)})})}function J_(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function w2(t,e){var r=t.model.ecModel,n=na(ra(r)).axSer;n&&uv(r,n.get(t.model.uid),e)}function eS(t,e,r){var n=j_(t,e);n&&uv(t.model.ecModel,n.sers,r)}function uv(t,e,r){if(e)for(var n=0;n<e.length;n++){var i=e[n];t.isSeriesFiltered(i)||r(i)}}function T2(t,e,r){var n=na(ra(t)).keyed,i=n&&n.get(e);i&&i.each(function(a){r(a.axis)})}function tS(t,e){var r=t.model,n=na(ra(r.ecModel)).keys;n&&I(n.get(r.uid),function(i){e(i)})}function x2(t){var e=_2(g2(t)),r=e.keyed||(e.keyed=te());Q_(t,function(n,i,a){var o=r.get(i)||r.set(i,te()),s=o.get(a)||o.set(a,{});n.metrics.liPosMinGap&&rS.liPosMinGap(t,n,s)})}function C2(t,e){rS[t]=e}var rS={};function fv(t,e,r){if(t){var n=e.ecModel,i=na(ra(n)),a=t.model.uid,o=i.axSer||(i.axSer=te()),s=o.get(a)||o.set(a,[]);s.push(e);var l=e.subType,u=e.getBaseAxis()===t,f=hv.get(cv(l,u,r))||hv.get(cv(l,u,null));if(f){var c=i.keyed||(i.keyed=te()),v=i.keys||(i.keys=te()),h=f.key,d=c.get(h)||c.set(h,te()),p=d.get(a);p||(p=d.set(a,{axis:t,sers:[],serByIdx:[]}),p.metrics=f.getMetrics(t),(v.get(a)||v.set(a,[])).push(h)),p.sers.push(e),p.serByIdx[e.seriesIndex]=e}}}function cv(t,e,r){return t+lv+Z(e,!0)+lv+(r||"")}function A2(t,e){var r=cv(e.seriesType,e.baseAxis,e.coordSysType);hv.set(r,e),m2(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:x2})})}var hv=te(),D2=.8;function ia(t,e){e=e||{};var r={w:NaN,w2:NaN},n=t.scale,i=e.fromStat,a=e.min,o=_P(n);Lt(o)||(o=NaN);var s=t.getExtent(),l=Be(s[1]-s[0]);return Qt(n)?M2(r,t,o,l):i&&I2(r,t,o,l,i),a!=null&&(r.w=Lt(r.w)?ge(a,r.w):a),r}function M2(t,e,r,n){var i=e.onBand,a=r+(i?1:0);a===0&&(a=1),t.w=n/a,!i&&r&&n&&(t.w2=t.w*r/n)}function I2(t,e,r,n,i){var a=!1,o=-1/0;I(i.key?[S2(e,i.key)]:b2(e,i.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),a=!1):l===K_&&(a=!0))}),Lt(r)&&r>0&&Lt(o)?(t.w=n/r*o,t.w2=o):a&&(t.w=n*D2,t.w2=t.w*r/n)}var nS=[0,1],iS=(function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return e>=n&&e<=i},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this.scale;return e=n.normalize(n.parse(e)),It(e,nS,aS(this),r)},t.prototype.coordToData=function(e,r){var n=It(e,aS(this),nS,r);return this.scale.scale(n)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),n=i2(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),i=$(n.ticks,function(s){return{coord:this.dataToCoord(Co(this.scale,s)),tick:s}},this),a=r.get("alignWithLabel"),o=L2(this,i,a);return $(i,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},t.prototype.getMinorTicksCoords=function(){if(Qt(this.scale))return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=$(n,function(a){return $(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},t.prototype.getViewLabels=function(e){return e=e||eu(Jt.determine),n2(this,e).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){return ia(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(e){return e=e||eu(Jt.determine),c2(this,e)},t})();function aS(t){var e=t.getExtent();if(t.onBand){var r=e[1]-e[0],n=r/t.scale.count()/2;e[0]+=n,e[1]-=n}return e}function L2(t,e,r){var n=e.length;if(!t.onBand||r||!n)return!1;var i=ia(t).w;if(!i)return!1;I(e,function(s){s.coord-=i/2});var a=t.scale.getExtent(),o=e[n-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var P2=(function(t){G(e,t);function e(r,n,i,a,o){var s=t.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e})(iS),oS=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],E2=1,nu=2,sS=E2|nu;function iu(t,e,r){r=r||sS,e?t.dirty|=r:t.dirty&=~r}function lS(t,e){return e=e||sS,t.dirty==null||!!(t.dirty&e)}function Dr(t){if(t)return lS(t)&&uS(t,t.label,t),t}function uS(t,e,r){var n=e.getComputedTransform();t.transform=oh(t.transform,n);var i=t.localRect=ao(t.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,f=a.__marginType;f==null&&u&&(o=u,f=Yi.textMargin);for(var c=0;c<4;c++)vv[c]=f===Yi.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===Yi.textMargin&&gl(i,vv,!1,!1);var v=t.rect=ao(t.rect,i);return n&&v.applyTransform(n),f===Yi.minMargin&&gl(v,vv,!1,!1),t.axisAligned=ah(n),(t.label=t.label||{}).ignore=e.ignore,iu(t,!1),iu(t,!0,nu),t}var vv=[0,0,0,0];function k2(t,e,r){return t.transform=oh(t.transform,r),t.localRect=ao(t.localRect,e),t.rect=ao(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=ah(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function R2(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var n=t.rect;n&&(n.x+=e.x,n.y+=e.y);var i=t.obb;i&&i.fromBoundingRect(t.localRect,r)}}function fS(t,e){for(var r=0;r<oS.length;r++){var n=oS[r];t[n]==null&&(t[n]=e[n])}return Dr(t)}function cS(t){var e=t.obb;return(!e||lS(t,nu))&&(t.obb=e=e||new hy,e.fromBoundingRect(t.localRect,t.transform),iu(t,!1,nu)),e}function O2(t,e,r,n,i){var a=t.length,o=sn[e],s=Wi[e];if(a<2)return!1;t.sort(function(T,C){return T.rect[o]-C.rect[o]});for(var l=0,u,f=!1,c=0;c<a;c++){var v=t[c],h=v.rect;u=h[o]-l,u<0&&(h[o]-=u,v.label[o]-=u,f=!0),l=h[o]+h[s]}var d=t[0],p=t[a-1],g,m;y(),g<0&&b(-g,.8),m<0&&b(m,.8),y(),_(g,m,1),_(m,g,-1),y(),g<0&&w(-g),m<0&&w(m);function y(){g=d.rect[o]-r,m=n-p.rect[o]-p.rect[s]}function _(T,C,D){if(T<0){var x=Math.min(C,-T);if(x>0){S(x*D,0,a);var A=x+T;A<0&&b(-A*D,1)}else b(-T*D,1)}}function S(T,C,D){T!==0&&(f=!0);for(var x=C;x<D;x++){var A=t[x],L=A.rect;L[o]+=T,A.label[o]+=T}}function b(T,C){for(var D=[],x=0,A=1;A<a;A++){var L=t[A-1].rect,M=Math.max(t[A].rect[o]-L[o]-L[s],0);D.push(M),x+=M}if(x){var P=Math.min(Math.abs(T)/x,C);if(T>0)for(var A=0;A<a-1;A++){var E=D[A]*P;S(E,0,A+1)}else for(var A=a-1;A>0;A--){var E=D[A-1]*P;S(-E,A,a)}}}function w(T){var C=T<0?-1:1;T=Math.abs(T);for(var D=Math.ceil(T/(a-1)),x=0;x<a-1;x++)if(C>0?S(D,0,x+1):S(-D,a-x-1,a),T-=D,T<=0)return}return f}function N2(t){var e=[];t.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function r(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var n=0;n<t.length;n++){var i=Dr(t[n]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,l=0;l<e.length;l++)if(dv(i,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):e.push(i)}}}function dv(t,e,r,n){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,n)?!1:t.axisAligned&&e.axisAligned?!0:cS(t).intersect(cS(e),r,n)}var B2=null;function au(){return B2}var F2="expandAxisBreak",gn=Math.PI,z2=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],G2=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],oi=Se(),hS=Se(),vS=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,n=e.componentIndex,i=this.recordMap,a=i[r]||(i[r]=[]);return a[n]||(a[n]={ready:{}})},t})();function V2(t,e,r,n){var i=r.axis,a=e.ensureRecord(r),o=[],s,l=gv(t.axisName)&&ta(t.nameLocation);I(n,function(d){var p=Dr(d);if(!(!p||p.label.ignore)){o.push(p);var g=a.transGroup;l&&(g.transform?Pa(Do,g.transform):Ia(Do),p.transform&&La(Do,Do,p.transform),ne.copy(ou,p.localRect),ou.applyTransform(Do),s?s.union(ou):ne.copy(s=new ne(0,0,0,0),ou))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-f)-Math.abs(p.label[u]-f)}),l&&s){var c=i.getExtent(),v=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-v;s.union(new ne(v,0,h,1))}a.stOccupiedRect=s,a.labelInfoList=o}var Do=dr(),ou=new ne(0,0,0,0),dS=function(t,e,r,n,i,a){if(ta(t.nameLocation)){var o=a.stOccupiedRect;o&&pS(k2({},o,a.transGroup.transform),n,i)}else gS(a.labelInfoList,a.dirVec,n,i)};function pS(t,e,r){var n=new re;dv(t,e,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&R2(e,n)}function gS(t,e,r,n){for(var i=re.dot(n,e)>=0,a=0,o=t.length;a<o;a++){var s=t[i?a:o-1-a];s.label.ignore||pS(s,r,n)}}var Hr=(function(){function t(e,r,n,i){this.group=new Ce,this._axisModel=e,this._api=r,this._local={},this._shared=i||new vS(dS),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(e){var r=this._cfg.raw;r.position=e.position,r.labelOffset=e.labelOffset,this._resetCfgDetermined(r)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,n=r.getDefaultOption?r.getDefaultOption():{},i=Z(e.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=Z(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:Z(e.nameDirection,1),tickDirection:Z(e.tickDirection,1),labelDirection:Z(e.labelDirection,1),labelOffset:Z(e.labelOffset,0),silent:Z(e.silent,!0),axisName:i,nameLocation:bn(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:gv(i)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new Ce({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new re(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),I(H2,function(i){e[i]&&U2[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},t.innerTextLayout=function(e,r,n){var i=hm(r-e),a,o;return Zs(i)?(o=n>0?"top":"bottom",a="center"):Zs(i-gn)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<gn?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t})(),H2=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],U2={axisLine:function(t,e,r,n,i,a,o){var s=n.get(["axisLine","show"]);if(s==="auto"&&(s=!0,t.raw.axisLineAutoShow!=null&&(s=!!t.raw.axisLineAutoShow)),!!s){var l=n.axis.getExtent(),u=a.transform,f=[l[0],0],c=[l[1],0],v=f[0]>c[0];u&&(wt(f,f,u),wt(c,c,u));var h=z({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(n.get(["axisLine","breakLine"])&&kl(n.axis.scale))au().buildAxisBreakLine(n,i,a,d);else{var p=new Cr(z({shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]}},d));io(p.shape,p.style.lineWidth),p.anid="line",i.add(p)}var g=n.get(["axisLine","symbol"]);if(g!=null){var m=n.get(["axisLine","symbolSize"]);q(g)&&(g=[g,g]),(q(m)||me(m))&&(m=[m,m]);var y=r_(n.get(["axisLine","symbolOffset"])||0,m),_=m[0],S=m[1];I([{rotate:t.rotation+Math.PI/2,offset:y[0],r:0},{rotate:t.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((f[0]-c[0])*(f[0]-c[0])+(f[1]-c[1])*(f[1]-c[1]))}],function(b,w){if(g[w]!=="none"&&g[w]!=null){var T=Ar(g[w],-_/2,-S/2,_,S,h.stroke,!0),C=b.r+b.offset,D=v?c:f;T.attr({rotation:b.rotate,x:D[0]+C*Math.cos(t.rotation),y:D[1]-C*Math.sin(t.rotation),silent:!0,z2:11}),i.add(T)}})}}},axisTickLabelEstimate:function(t,e,r,n,i,a,o,s){var l=_S(e,i,s);l&&mS(t,e,r,n,i,a,o,Jt.estimate)},axisTickLabelDetermine:function(t,e,r,n,i,a,o,s){var l=_S(e,i,s);l&&mS(t,e,r,n,i,a,o,Jt.determine);var u=X2(t,i,a,n);$2(t,e.labelLayoutList,u),q2(t,i,a,n,t.tickDirection)},axisName:function(t,e,r,n,i,a,o,s){var l=r.ensureRecord(n);e.nameEl&&(i.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=t.axisName;if(gv(u)){var f=t.nameLocation,c=t.nameDirection,v=n.getModel("nameTextStyle"),h=n.get("nameGap")||0,d=n.axis.getExtent(),p=n.axis.inverse?-1:1,g=new re(0,0),m=new re(0,0);f==="start"?(g.x=d[0]-p*h,m.x=-p):f==="end"?(g.x=d[1]+p*h,m.x=p):(g.x=(d[0]+d[1])/2,g.y=t.labelOffset+c*h,m.y=c);var y=dr();m.transform(Sf(y,y,t.rotation));var _=n.get("nameRotate");_!=null&&(_=_*gn/180);var S,b;ta(f)?S=Hr.innerTextLayout(t.rotation,_??t.rotation,c):(S=W2(t.rotation,f,_||0,d),b=t.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var w=v.getFont(),T=n.get("nameTruncate",!0)||{},C=T.ellipsis,D=hs(t.raw.nameTruncateMaxWidth,T.maxWidth,b),x=s.nameMarginLevel||0,A=new Me({x:g.x,y:g.y,rotation:S.rotation,silent:Hr.isLabelSilent(n),style:Ot(v,{text:u,font:w,overflow:"truncate",width:D,ellipsis:C,fill:v.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:v.get("align")||S.textAlign,verticalAlign:v.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(ml({el:A,componentModel:n,itemName:u}),A.__fullText=u,A.anid="name",n.get("triggerEvent")){var L=Hr.makeAxisEventDataBase(n);L.targetType="axisName",L.name=u,ue(A).eventData=L}a.add(A),A.updateTransform(),e.nameEl=A;var M=l.nameLayout=Dr({label:A,priority:A.z2,defaultAttr:{ignore:A.ignore},marginDefault:ta(f)?z2[x]:G2[x]});if(l.nameLocation=f,i.add(A),A.decomposeTransform(),t.shouldNameMoveOverlap&&M){var P=r.ensureRecord(n);r.resolveAxisNameOverlap(t,r,n,M,m,P)}}}};function mS(t,e,r,n,i,a,o,s){SS(e)||Z2(t,e,i,s,n,o);var l=e.labelLayoutList;K2(t,n,l,a),J2(n,t.rotation,l);var u=t.optionHideOverlap;Y2(n,l,u),u&&N2(Ue(l,function(f){return f&&!f.label.ignore})),V2(t,r,n,l)}function W2(t,e,r,n){var i=hm(r-t),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return Zs(i-gn/2)?(o=l?"bottom":"top",a="center"):Zs(i-gn*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<gn*1.5&&i>gn/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function Y2(t,e,r){var n=t.axis,i=t.get(["axisLabel","customValues"]);if(VP(n))return;function a(u,f,c){var v=Dr(e[f]),h=Dr(e[c]),d=n.scale;if(!(!v||!h)){if(u==null){if(!r&&i)return;var p=oi(v.label).labelInfo.tick;if(ev(d)&&p.notNice||Qt(d)&&p.offInterval){aa(v.label);return}}if(u===!1||v.suggestIgnore){aa(v.label);return}if(h.suggestIgnore){aa(h.label);return}var g=.1;if(!r){var m=[0,0,0,0];v=fS({marginForce:m},v),h=fS({marginForce:m},h)}dv(v,h,null,{touchThreshold:g})&&aa(u?h.label:v.label)}}var o=t.get(["axisLabel","showMinLabel"]),s=t.get(["axisLabel","showMaxLabel"]),l=e.length;a(o,0,1),a(s,l-1,l-2)}function $2(t,e,r){t.showMinorTicks||I(e,function(n){if(n&&n.label.ignore)for(var i=0;i<r.length;i++){var a=r[i],o=hS(a),s=oi(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){aa(a);return}}})}function aa(t){t&&(t.ignore=!0)}function yS(t,e,r,n,i){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(wt(o,o,e),wt(s,s,e));var f=new Cr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});io(f.shape,f.style.lineWidth),f.anid=i+"_"+t[l].tickValue,a.push(f);var c=hS(f);c.onBand=!!t[l].onBand,c.tickValue=t[l].tickValue}return a}function X2(t,e,r,n){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=t.tickDirection*a.get("length"),u=i.getTicksCoords(),f=yS(u,r.transform,l,le(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}function q2(t,e,r,n,i){var a=n.axis,o=n.getModel("minorTick");if(!(!t.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=i*o.get("length"),f=le(l.getLineStyle(),le(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var v=yS(s[c],r.transform,u,f,"minorticks_"+c),h=0;h<v.length;h++)e.add(v[h])}}function _S(t,e,r){if(SS(t)){var n=t.axisLabelsCreationContext,i=n.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<i.length;o++)a=a&&i[o]();if(a)return!1}i.length&&(e.remove(t.labelGroup),pv(t,null,null,null))}return!0}function Z2(t,e,r,n,i,a){var o=i.axis,s=hs(t.raw.axisLabelShow,i.get(["axisLabel","show"])),l=new Ce;r.add(l);var u=eu(n);if(!s||o.scale.isBlank()){pv(e,[],l,u);return}var f=i.getModel("axisLabel"),c=o.getViewLabels(u),v=(hs(t.raw.labelRotate,f.get("rotate"))||0)*gn/180,h=Hr.innerTextLayout(t.rotation,v,t.labelDirection),d=i.getCategories&&i.getCategories(!0),p=[],g=i.get("triggerEvent"),m=1/0,y=-1/0;I(c,function(S,b){var w,T=S.tick,C=S.formattedLabel,D=S.rawLabel,x=f,A=Co(o.scale,T);if(d&&d[A]){var L=d[A];j(L)&&L.textStyle&&(x=new xe(L.textStyle,f,i.ecModel))}var M=x.getTextColor()||i.get(["axisLine","lineStyle","color"]),P=x.getShallow("align",!0)||h.textAlign,E=Z(x.getShallow("alignMinLabel",!0),P),k=Z(x.getShallow("alignMaxLabel",!0),P),O=x.getShallow("verticalAlign",!0)||x.getShallow("baseline",!0)||h.textVerticalAlign,R=Z(x.getShallow("verticalAlignMinLabel",!0),O),N=Z(x.getShallow("verticalAlignMaxLabel",!0),O),F=10+(((w=T.time)===null||w===void 0?void 0:w.level)||0);m=Math.min(m,F),y=Math.max(y,F);var B=new Me({x:0,y:0,rotation:0,silent:Hr.isLabelSilent(i),z2:F,style:Ot(x,{text:C,align:b===0?E:b===c.length-1?k:P,verticalAlign:b===0?R:b===c.length-1?N:O,fill:ee(M)?M(o.type==="category"?D:o.type==="value"?A+"":A,b):M})});B.anid="label_"+A;var V=oi(B);if(V.labelInfo=S,V.layoutRotation=h.rotation,ml({el:B,componentModel:i,itemName:C,formatterParamsExtra:{isTruncated:function(){return B.isTruncated},value:D,tickIndex:b}}),g){var X=Hr.makeAxisEventDataBase(i);X.targetType="axisLabel",X.value=D,X.tickIndex=b;var H=S.tick.break;if(H){var K=H.parsedBreak;X.break={start:K.vmin,end:K.vmax}}o.type==="category"&&(X.dataIndex=A),ue(B).eventData=X,H&&Q2(i,a,B,H)}p.push(B),l.add(B)});var _=$(p,function(S){return{label:S,priority:oi(S).labelInfo.tick.break?S.z2+(y-m+1):S.z2,defaultAttr:{ignore:S.ignore}}});pv(e,_,l,u)}function SS(t){return!!t.labelLayoutList}function pv(t,e,r,n){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=n}function K2(t,e,r,n){var i=e.get(["axisLabel","margin"]);I(r,function(a,o){var s=Dr(a);if(s){var l=s.label,u=oi(l);s.suggestIgnore=l.ignore,l.ignore=!1,Na(Ur,j2);var f=e.axis;Ur.x=f.dataToCoord(Co(f.scale,u.labelInfo.tick)),Ur.y=t.labelOffset+t.labelDirection*i,Ur.rotation=u.layoutRotation,n.add(Ur),Ur.updateTransform(),n.remove(Ur),Ur.decomposeTransform(),Na(l,Ur),l.markRedraw(),iu(s,!0),Dr(s)}})}var Ur=new De,j2=new De;function gv(t){return!!t}function Q2(t,e,r,n){r.on("click",function(i){var a={type:F2,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};a[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(a)})}function J2(t,e,r){var n=at();if(n){var i=n.retrieveAxisBreakPairs(r,function(o){return o&&oi(o.label).labelInfo.tick.break},!0),a=t.get(["breakLabelLayout","moveOverlap"],!0);(a===!0||a==="auto")&&I(i,function(o){au().adjustBreakLabelPair(t.axis.inverse,e,[Dr(r[o[0]]),Dr(r[o[1]])])})}}function su(t,e,r){r=r||{};var n=e.axis,i={},a=n.getAxesOnZeroOf()[0],o=n.position,s=a?"onZero":o,l=n.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,v=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(a){var h=a.toGlobalCoord(a.dataToCoord(0));v[f.onZero]=Math.max(Math.min(h,v[1]),v[0])}i.position=[l==="y"?v[f[s]]:u[0],l==="x"?v[f[s]]:u[3]],i.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=d[o],i.labelOffset=a?v[f[o]]-v[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),hs(r.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var p=e.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-p:p,i.z2=1,i}function eE(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function tE(t){var e={xAxisModel:null,yAxisModel:null};return I(e,function(r,n){var i=n.replace(/Model$/,""),a=t.getReferringComponents(i,Pt).models[0];e[n]=a}),e}function rE(t,e,r,n,i,a){for(var o=su(t,r),s=!1,l=!1,u=0;u<e.length;u++)w_(e[u].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type==="category"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new Hr(r,n,o,i)}function nE(t,e,r){var n=su(e,r);t.updateCfg(n)}var iE=Se(),bS=1,aE=3,wS=(function(){function t(e,r,n,i,a){var o=Qt(e),s=o?r.getCategories().length:null,l;if(o){var u=r.getCategories(!0);l=u&&!u.length}var f=n.slice();($l(e)||ea(e)||ev(e))&&(xm(f,Mo(e,r.get("dataMin",!0))),Cm(f,Mo(e,r.get("dataMax",!0)))),gD(f)||(f[0]=f[1]=NaN);var c=[],v=[!1,!1],h=r.get("min",!0);h==="dataMin"?(c[0]=f[0],v[0]=!0):(c[0]=Mo(e,ee(h)?h({min:f[0],max:f[1]}):h),v[0]=c[0]!=null);var d=r.get("max",!0);d==="dataMax"?(c[1]=f[1],v[1]=!0):(c[1]=Mo(e,ee(d)?d({min:f[0],max:f[1]}):d),v[1]=c[1]!=null);var p=oE(e,r),g=o?null:f[1]-f[0]||Math.abs(f[0]);c[0]==null&&(c[0]=o?l?f[0]:s?0:NaN:f[0]-p[0]*g),c[1]==null&&(c[1]=o?l?f[1]:s?s-1:NaN:f[1]+p[1]*g),!Nr(c[0])&&(c[0]=NaN),!Nr(c[1])&&(c[1]=NaN);var m=l||Aa(c[0])||Aa(c[1])||o&&!s,y=$l(e),_=y&&r.needIncludeZero&&r.needIncludeZero();_&&(c[0]>0&&c[1]>0&&!v[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!v[1]&&(c[1]=0));var S=!1;c[0]>c[1]&&(c.reverse(),S=!0);var b=Mo(e,r.get("startValue",!0)),w=b!=null;!Lt(b)&&i&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),Lt(b)&&(w||!y||_)&&(b<c[0]&&!v[0]?(c[0]=b,v[0]=!0):b>c[1]&&!v[1]&&(c[1]=b,v[1]=!0));var T=this._i={scale:e,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:v,zoomFixMM:[!1,!1],startValue:b,isBlank:m,incl0:_,tggAxInv:S,ctnShp:a};TS(T,c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var e=this._i,r=e.zoomMM,n=e.noZoomEffMM,i=e.zoomFixMM,a=e.fixMM,o={fixMM:a,zoomFixMM:i,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],a[0]=i[0]=!0),r[1]!=null&&(s[1]=r[1],a[1]=i[1]=!0),TS(e,s),o},t.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},t.prototype.setZoomMM=function(e,r){this._i.zoomMM[e]=r},t})();function TS(t,e){var r=t.scale,n=t.dataMM;r.sanitize&&(e[0]=r.sanitize(e[0],n),e[1]=r.sanitize(e[1],n),mD(e))}function Mo(t,e){return e==null?null:Aa(e)?NaN:t.parse(e)}function oE(t,e){var r;if(Qt(t))r=[0,0];else{var n=e.get("boundaryGap");typeof n=="boolean"&&(n=null),r=W(n)?n:[n,n]}return[xS(r[0]),xS(r[1])]}function xS(t){return In(typeof t=="boolean"?0:t,1)||0}function CS(t){var e=iE(t.scale);return e.extent||(e.extent=Et()),e}function sE(t,e){CS(t).dimIdxInCoord=e.get(t.dim)}function AS(t,e){var r=t.scale,n=t.model,i=t.dim;r.rawExtentInfo||lE(r,t,i,n,e)}function lE(t,e,r,n,i){var a=CS(e),o=a.extent,s=!1;w2(e,function(f){if(f.boxCoordinateSystem){var c=g0(f).coord,v=a.dimIdxInCoord;if(v>=0){if(W(c)){var h=c[v];h!=null&&!W(h)&&Dc(o,t.parse(h))}}}else if(f.coordinateSystem){var d=f.getData();if(d){var p=t.getFilter?t.getFilter():null;I(HP(d,r),function(g){pD(o,d.getApproximateExtent(g,p))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var l=cE(t,e,n),u=new wS(t,n,o,s,l);DS(t,u,i),a.extent=null}function uE(t,e){var r=t.scale;DS(r,new wS(r,t.model,e,!1,!1),aE)}function DS(t,e,r){t.rawExtentInfo=e,e.from=r}function fE(t,e){mv.set(t,e)}var mv=te();function MS(t,e,r,n,i){t.rawExtentInfo||uE({scale:t,model:e},Et());var a=t.rawExtentInfo.makeFinal(),o=a.effMM;return t.setExtent(o[0],o[1]),t.setBlank(a.isBlank),n&&a.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis")&&(n.inverse=!n.inverse),a}function cE(t,e,r){var n=B_(t,r),i=r.get("containShape",!0);if(i==null&&!n&&(i=!0),!i)return!1;var a=!1;return tS(e,function(o){a=!!mv.get(o)||a}),a}function hE(t,e,r,n){if(r.ctnShp){var i;if(tS(t,function(s){var l=mv.get(s);if(l){var u=l(t,n);u&&(i=i||[0,0],xm(i,u[0]),Cm(i,u[1]),zP(t))}}),!!i){var a=e.getExtent();if(Qt(e))t.onBand||e.setExtent2(wo,qe(a[0],a[0]+i[0]),ge(a[1],a[1]+i[1]));else{var o=a.slice();r.zoomFixMM[0]||(o[0]=qe(o[0],e.transformOut(e.transformIn(o[0],null)+i[0],null))),r.zoomFixMM[1]||(o[1]=ge(o[1],e.transformOut(e.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&e.setExtent2(wo,o[0],o[1])}}}}function vE(){C2("liPosMinGap",dE)}function dE(t,e,r){var n=te(),i=r.serUids,a=r.liPosMinGap,o,s=e.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,c=e0(f);function v(_){uv(t,e.sers,function(S){var b=S.getRawData(),w=b.getDimensionIndex(b.mapDimension(s.dim));w>=0&&_(w,S,b.getStore())})}var h=0;if(v(function(_,S,b){n.set(S.uid,1),(!i||!i.hasKey(S.uid))&&(o=!0),h+=b.count()}),(!i||i.keys().length!==n.keys().length)&&(o=!0),!o&&a!=null){e.liPosMinGap=a;return}Zh(si,h);var d=0;v(function(_,S,b){for(var w=0,T=b.count();w<T;++w){var C=b.get(_,w);isFinite(C)&&(!f||t0(c,C))&&(u&&(C=l.transformIn(C,null)),si.arr[d++]=C)}});var p=si.typed?si.arr.subarray(0,d):(si.arr.length=d,si.arr);si.typed?p.sort():Sc(p);for(var g=1/0,m=1;m<d;++m){var y=p[m]-p[m-1];y>0&&y<g&&(g=y)}r.liPosMinGap=e.liPosMinGap=Lt(g)?g:d>0?K_:y2,r.serUids=n}var si=Zh({ctor:iP},50);function pE(t){return function(e,r){var n=ia(e,{fromStat:{key:t}});if(Lt(n.w2))return[-n.w2/2,n.w2/2]}}function lu(t,e){return t+lv+e}function gE(t){return vE(),{liPosMinGap:!Qt(t.scale)}}var oa="bar";function mE(t,e,r,n){A2(t,{key:e,seriesType:r,coordSysType:n,getMetrics:gE})}function yE(t){var e=t.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var IS={left:0,right:0,top:0,bottom:0},uu=["25%","25%"],Wr="cartesian2d",_E=(function(t){G(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,n){var i=So(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&r.outerBounds&&fn(r.outerBounds,i)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&fn(this.option.outerBounds,r.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:IS,outerBoundsContain:"all",outerBoundsClampWidth:uu[0],outerBoundsClampHeight:uu[1],backgroundColor:Y.color.transparent,borderWidth:1,borderColor:Y.color.neutral30},e})(ye),SE=Am(),bE="__ec_stack_";function LS(t){return t.get("stack")||bE+t.seriesIndex}function wE(t,e){var r=TE(t,e);return r.columnMap=xE(r),r}function TE(t,e){var r=lu(e,Wr),n=[],i=ia(t,{fromStat:{key:r},min:1});return eS(t,r,function(a){n.push({barWidth:Q(a.get("barWidth"),i.w),barMaxWidth:Q(a.get("barMaxWidth"),i.w),barMinWidth:Q(a.get("barMinWidth")||(PS(a)?.5:1),i.w),barGap:a.get("barGap"),barCategoryGap:a.get("barCategoryGap"),defaultBarGap:a.get("defaultBarGap"),stackId:LS(a)})}),{bandWidthResult:i,seriesInfo:n}}function xE(t){var e=t.bandWidthResult.w,r=e,n=0,i,a,o=[],s={};I(t.seriesInfo,function(p,g){g||(a=p.defaultBarGap||0);var m=p.stackId;tt(s,m)||n++;var y=s[m];y||(y=s[m]={width:0,maxWidth:0},o.push(m));var _=p.barWidth;_&&!y.width&&(y.width=_,_=qe(r,_),r-=_);var S=p.barMaxWidth;S&&(y.maxWidth=S);var b=p.barMinWidth;b&&(y.minWidth=b);var w=p.barGap;w!=null&&(a=w);var T=p.barCategoryGap;T!=null&&(i=T)}),i==null&&(i=ge(35-o.length*4,15)+"%");var l=Q(i,e),u=Q(a,1),f=(r-l)/(n+(n-1)*u);f=ge(f,0),I(o,function(p){var g=s[p],m=g.maxWidth,y=g.minWidth;if(g.width){var _=g.width;m&&(_=qe(_,m)),y&&(_=ge(_,y)),g.width=_,r-=_+u*_,n--}else{var _=f;m&&m<_&&(_=qe(m,r)),y&&y>_&&(_=y),_!==f&&(g.width=_,r-=_+u*_,n--)}}),f=(r-l)/(n+(n-1)*u),f=ge(f,0);var c=0,v;I(o,function(p){var g=s[p];g.width||(g.width=f),v=g,c+=g.width*(1+u)}),v&&(c-=v.width*u);var h={},d=-c/2;return I(o,function(p){var g=s[p];h[p]=h[p]||{bandWidth:e,offset:d,width:g.width},d+=g.width*(1+u)}),h}function CE(t){return{seriesType:t,overallReset:function(e){var r=lu(t,Wr);T2(e,r,function(n){var i=wE(n,t);eS(n,r,function(a){var o=i.columnMap[LS(a)];a.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function AE(t){return{seriesType:t,plan:jh(),reset:function(e){if(eE(e)){var r=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=e.get("showBackground",!0),u=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),c=Ki(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),v=a.isHorizontal(),h=a.toGlobalCoord(a.dataToCoord(yE(a))),d=PS(e),p=e.get("barMinHeight")||0,g=f&&r.getDimensionIndex(f),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,S){for(var b=_.count,w=d&&Vr(b*3),T=d&&l&&Vr(b*3),C=d&&Vr(b),D=n.master.getRect(),x=v?D.width:D.height,A,L=S.getStore(),M=0;(A=_.next())!=null;){var P=L.get(c?g:o,A),E=L.get(s,A),k=h,O=void 0;c&&(O=+P-L.get(o,A));var R=void 0,N=void 0,F=void 0,B=void 0;if(v){var V=n.dataToPoint([P,E]);c&&(k=n.dataToPoint([O,E])[0]),R=k,N=V[1]+y,F=V[0]-k,B=m,Be(F)<p&&(F=(F<0?-1:1)*p)}else{var V=n.dataToPoint([E,P]);c&&(k=n.dataToPoint([E,O])[1]),R=V[0]+y,N=k,F=m,B=V[1]-k,Be(B)<p&&(B=(B<=0?-1:1)*p)}d?(w[M]=R,w[M+1]=N,w[M+2]=v?F:B,T&&(T[M]=v?D.x:R,T[M+1]=v?N:D.y,T[M+2]=x),C[A]=A):S.setItemLayout(A,{x:R,y:N,width:F,height:B}),M+=3}d&&S.setLayout({largePoints:w,largeDataIndices:C,largeBackgroundPoints:T,valueAxisHorizontal:v})}}}}}}function PS(t){return t.pipelineContext&&t.pipelineContext.large}function DE(t){return pE(lu(t,Wr))}function ME(t){SE(t,function(){function e(r){var n=lu(r,Wr);mE(t,n,r,Wr),fE(n,DE(r))}e("bar"),e("pictorialBar")})}var yv=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){return Ml(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)I(a.getAxes(),function(v,h){if(v.type==="category"&&n!=null){var d=v.getTicksCoords(),p=v.getTickModel().get("alignWithLabel"),g=o[h],m=n[h]==="x1"||n[h]==="y1";if(m&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[h]=v.toGlobalCoord(v.getExtent()[m?1:0]);return}for(var y=void 0,_=void 0,S=1,b=0;b<d.length;b++){var w=d[b].coord,T=b===d.length-1?d[b-1].tickValue+S:d[b].tickValue;if(T===g){_=w;break}else if(T<g)y=w;else if(y!=null&&T>g){_=(w+y)/2;break}b===1&&(S=T-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[h]=v.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},e.prototype.__requireStartValue=function(r){return this.getBaseAxis()!==r},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e})(ot);ot.registerClass(yv);var IE=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return Ml(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.__preparePipelineContext=function(r,n){var i=Mm(this,r,n);return i.progressiveRender&&(i.large=!0),i},e.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},e.type="series."+oa,e.dependencies=["grid","polar"],e.defaultOption=m0(yv.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:Y.color.primary,borderWidth:2}},realtimeSort:!1}),e})(yv),fu="\0__throttleOriginMethod",ES="\0__throttleRate",kS="\0__throttleType";function _v(t,e,r){var n,i=0,a=0,o=null,s,l,u,f;e=e||0;function c(){a=new Date().getTime(),o=null,t.apply(l,u||[])}var v=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];n=new Date().getTime(),l=this,u=h;var p=f||e,g=f||r;f=null,s=n-(g?i:a)-p,clearTimeout(o),g?o=setTimeout(c,p):s>=0?c():o=setTimeout(c,-s),i=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(h){f=h},v}function RS(t,e,r,n){var i=t[e];if(i){var a=i[fu]||i,o=i[kS],s=i[ES];if(s!==r||o!==n){if(r==null||!n)return t[e]=a;i=t[e]=_v(a,r,n==="debounce"),i[fu]=a,i[kS]=n,i[ES]=r}return i}}function Sv(t,e){var r=t[e];r&&r[fu]&&(r.clear&&r.clear(),t[e]=r[fu])}var LE=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),cu=(function(t){G(e,t);function e(r){var n=t.call(this,r)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new LE},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,v=n.clockwise,h=Math.PI*2,d=v?c-f<h:f-c<h;d||(f=c-(v?h:-h));var p=Math.cos(f),g=Math.sin(f),m=Math.cos(c),y=Math.sin(c);d?(r.moveTo(p*o+i,g*o+a),r.arc(p*u+i,g*u+a,l,-Math.PI+f,f,!v)):r.moveTo(p*s+i,g*s+a),r.arc(i,a,s,f,c,!v),r.arc(m*u+i,y*u+a,l,c-Math.PI*2,c-Math.PI,!v),o!==0&&r.arc(i,a,o,c,f,v)},e})(pe);function PE(t,e){e=e||{};var r=e.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return _s(n,i,a);var s=t(o),l=i.distance!=null?i.distance:5,u=this.shape,f=u.cx,c=u.cy,v=u.r,h=u.r0,d=(v+h)/2,p=u.startAngle,g=u.endAngle,m=(p+g)/2,y=r?Math.abs(v-h)/2:0,_=Math.cos,S=Math.sin,b=f+v*_(p),w=c+v*S(p),T="left",C="top";switch(s){case"startArc":b=f+(h-l)*_(m),w=c+(h-l)*S(m),T="center",C="top";break;case"insideStartArc":b=f+(h+l)*_(m),w=c+(h+l)*S(m),T="center",C="bottom";break;case"startAngle":b=f+d*_(p)+hu(p,l+y,!1),w=c+d*S(p)+vu(p,l+y,!1),T="right",C="middle";break;case"insideStartAngle":b=f+d*_(p)+hu(p,-l+y,!1),w=c+d*S(p)+vu(p,-l+y,!1),T="left",C="middle";break;case"middle":b=f+d*_(m),w=c+d*S(m),T="center",C="middle";break;case"endArc":b=f+(v+l)*_(m),w=c+(v+l)*S(m),T="center",C="bottom";break;case"insideEndArc":b=f+(v-l)*_(m),w=c+(v-l)*S(m),T="center",C="top";break;case"endAngle":b=f+d*_(g)+hu(g,l+y,!0),w=c+d*S(g)+vu(g,l+y,!0),T="left",C="middle";break;case"insideEndAngle":b=f+d*_(g)+hu(g,-l+y,!0),w=c+d*S(g)+vu(g,-l+y,!0),T="right",C="middle";break;default:return _s(n,i,a)}return n=n||{},n.x=b,n.y=w,n.align=T,n.verticalAlign=C,n}}function EE(t,e,r,n){if(me(n)){t.setTextConfig({rotation:n});return}else if(W(e)){t.setTextConfig({rotation:0});return}var i=t.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=r(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:t.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),t.setTextConfig({rotation:f})}function hu(t,e,r){return e*Math.sin(t)*(r?-1:1)}function vu(t,e,r){return e*Math.cos(t)*(r?1:-1)}function Io(t,e,r){var n=t.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;W(n)||(n=[n,n,n,n]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:$(n,function(a){return In(a,i)})}}var bv=Math.max,wv=Math.min,kE=(function(t){G(e,t);function e(){var r=t.call(this)||this;return r.type=oa,r._isFirstFrame=!0,r}return e.prototype.render=function(r,n,i,a){this._model=r,this._removeOnRenderedListener(i),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,i):this._renderNormal(r,n,i,a))},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},e.prototype.eachRendered=function(r){yl(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var v=r.isAnimationEnabled()?r:null,h=RE(r,u);h&&this._enableRealtimeSort(h,s,i);var d=r.get("clip",!0)||h,p=u.getArea();o.removeClipPath();var g=r.get("roundCap",!0),m=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),_=y.get("borderRadius")||0,S=[],b=this._backgroundEls,w=a&&a.isInitSort,T=a&&a.type==="changeAxisOrder";function C(A){var L=du[u.type](s,A);if(!L)return null;var M=VE(u,c,L);return M.useStyle(y.getItemStyle()),u.type==="cartesian2d"?M.setShape("r",_):M.setShape("cornerRadius",_),S[A]=M,M}s.diff(l).add(function(A){var L=s.getItemModel(A),M=du[u.type](s,A,L);if(M&&(m&&C(A),!(!s.hasValue(A)||!zS[u.type](M)))){var P=!1;d&&(P=OS[u.type](p,M));var E=NS[u.type](r,s,A,M,c,v,f.model,!1,g);h&&(E.forceLabelAnimation=!0),VS(E,s,A,L,M,r,c,u.type==="polar"),w?E.attr({shape:M}):h?BS(h,v,E,M,A,c,!1,!1):Ve(E,{shape:M},r,A),s.setItemGraphicEl(A,E),o.add(E),E.ignore=P}}).update(function(A,L){var M=s.getItemModel(A),P=du[u.type](s,A,M);if(P){if(m){var E=void 0;b.length===0?E=C(L):(E=b[L],E.useStyle(y.getItemStyle()),u.type==="cartesian2d"?E.setShape("r",_):E.setShape("cornerRadius",_),S[A]=E);var k=du[u.type](s,A),O=YS(c,k,u);Ie(E,{shape:O},v,A)}var R=l.getItemGraphicEl(L);if(!s.hasValue(A)||!zS[u.type](P)){o.remove(R);return}var N=!1;d&&(N=OS[u.type](p,P),N&&o.remove(R));var F=R&&(R.type==="sector"&&g||R.type==="sausage"&&!g);if(F&&(R&&Hi(R,r,L),R=null),R?Ui(R):R=NS[u.type](r,s,A,P,c,v,f.model,!0,g),h&&(R.forceLabelAnimation=!0),T){var B=R.getTextContent();if(B){var V=so(B);V.prevValue!=null&&(V.prevValue=V.value)}}else VS(R,s,A,M,P,r,c,u.type==="polar");w?R.attr({shape:P}):h?BS(h,v,R,P,A,c,!0,T):Ie(R,{shape:P},r,A,null),s.setItemGraphicEl(A,R),R.ignore=N,o.add(R)}}).remove(function(A){var L=l.getItemGraphicEl(A);L&&Hi(L,r,A)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new Ce);D.removeAll();for(var x=0;x<S.length;++x)D.add(S[x]);o.add(D),this._backgroundEls=S,this._data=s},e.prototype._renderLarge=function(r,n,i){this._clear(),US(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),US(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&dP(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},e.prototype._enableRealtimeSort=function(r,n,i){var a=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(r,n,i){var a=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:$(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(r,n,i){for(var a=i.scale,o=r.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:n(r.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Hi(a,r,ue(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=oa,e})(je),OS={cartesian2d:function(t,e){var r=e.width<0?-1:1,n=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,a=t.y+t.height,o=bv(e.x,t.x),s=wv(e.x+e.width,i),l=bv(e.y,t.y),u=wv(e.y+e.height,a),f=s<o,c=u<l;return e.x=f&&o>i?s:o,e.y=c&&l>a?u:l,e.width=f?0:s-o,e.height=c?0:u-l,r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),f||c},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}var i=wv(e.r,t.r),a=bv(e.r0,t.r0);e.r=i,e.r0=a;var o=i-a<0;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},NS={cartesian2d:function(t,e,r,n,i,a,o,s,l){var u=new De({shape:z({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var f=u.shape,c=i?"height":"width";f[c]=0}return u},polar:function(t,e,r,n,i,a,o,s,l){var u=!i&&l?cu:xr,f=new u({shape:n,z2:1});f.name="item";var c=GS(i);if(f.calculateTextPosition=PE(c,{isRoundCap:u===cu}),a){var v=f.shape,h=i?"r":"endAngle",d={};v[h]=i?n.r0:n.startAngle,d[h]=n[h],(s?Ie:Ve)(f,{shape:d},a)}return f}};function RE(t,e){var r=t.get("realtimeSort",!0),n=e.getBaseAxis();if(r&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function BS(t,e,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Ie:Ve)(r,{shape:l},e,i,null);var f=e?t.baseAxis.model:null;(o?Ie:Ve)(r,{shape:u},f,i)}function FS(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var OE=["x","y","width","height"],NE=["cx","cy","r","startAngle","endAngle"],zS={cartesian2d:function(t){return!FS(t,OE)},polar:function(t){return!FS(t,NE)}},du={cartesian2d:function(t,e,r){var n=t.getItemLayout(e);if(!n)return null;var i=r?FE(r,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(t,e,r){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function BE(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function GS(t){return(function(e){var r=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}})(t)}function VS(t,e,r,n,i,a,o,s){var l=e.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var f=t.shape,c=Io(n.getModel("itemStyle"),f,!0);z(f,c),t.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var v=n.getShallow("cursor");v&&t.attr("cursor",v);var h=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?HE(i,a.coordinateSystem):UE(i,a.coordinateSystem),d=jn(n);Kn(t,d,{labelFetcher:a,labelDataIndex:r,defaultText:Xh(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var p=t.getTextContent();if(s&&p){var g=n.get(["label","position"]);t.textConfig.inside=g==="middle"?!0:null,EE(t,g==="outside"?h:g,GS(o),n.get(["label","rotate"]))}ky(p,d,a.getRawValue(r),function(y){return n_(e,y)});var m=n.getModel(["emphasis"]);Fr(t,m.get("focus"),m.get("blurScope"),m.get("disabled")),zr(t,n),BE(i)&&(t.style.fill="none",t.style.stroke="none",I(t.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function FE(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,a)}var zE=(function(){function t(){}return t})(),HS=(function(t){G(e,t);function e(r){var n=t.call(this,r)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new zE},e.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<i.length;f+=3)l[a]=u,l[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],r.rect(s[0],s[1],l[0],l[1])},e})(pe);function US(t,e,r,n){var i=t.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=t.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints"),f=n?Dm(t):0;if(u){var c=new HS({shape:{points:u},incremental:f,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),r&&r.push(c)}var v=new HS({shape:{points:i.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});v.baseDimIdx=a,v.largeDataIndices=o,v.barWidth=s,e.add(v),v.useStyle(i.getVisual("style")),v.style.stroke=null,ue(v).seriesIndex=t.seriesIndex,t.get("silent")||(v.on("mousedown",WS),v.on("mousemove",WS)),r&&r.push(v)}var WS=_v(function(t){var e=this,r=GE(e,t.offsetX,t.offsetY);ue(e).dataIndex=r>=0?r:null},30,!1);function GE(t,e,r){for(var n=t.baseDimIdx,i=1-n,a=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,f=0,c=a.length/3;f<c;f++){var v=f*3;if(l[n]=u,l[i]=a[v+2],s[n]=a[v+n],s[i]=a[v+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function YS(t,e,r){if(g_(r,"cartesian2d")){var n=e,i=r.getArea();return{x:t?n.x:i.x,y:t?i.y:n.y,width:t?n.width:i.width,height:t?i.height:n.height}}else{var i=r.getArea(),a=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:a.r0,r:t?i.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:Math.PI*2}}}function VE(t,e,r){var n=t.type==="polar"?xr:De;return new n({shape:YS(e,r,t),silent:!0,z2:0})}function HE(t,e){if(t.height===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"bottom":"top"}return t.height>0?"bottom":"top"}function UE(t,e){if(t.width===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"left":"right"}return t.width>=0?"right":"left"}function WE(t){t.registerChartView(kE),t.registerSeriesModel(IE),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,CE(oa)),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,AE(oa)),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,W_(oa)),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var n=e.componentType||"series";r.eachComponent({mainType:n,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})}),ME(t)}function YE(t,e){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:t,query:i},function(o){a.push(o.seriesIndex)}),a}I([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(i,a,o){i=z({},i),o.dispatchAction(z(i,{type:n[1],seriesIndex:r(a,i)}))})})}function sa(t,e,r,n,i){var a=t+e;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),v=Wn(c,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:W(v)?c.getName(v[0]):c.getName(v),selected:q(l)?l:z({},l)})}})}function $E(t,e,r){t.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(sa("map","selectchanged",e,i,n),sa("pie","selectchanged",e,i,n)):n.fromAction==="select"?(sa("map","selected",e,i,n),sa("pie","selected",e,i,n)):n.fromAction==="unselect"&&(sa("map","unselected",e,i,n),sa("pie","unselected",e,i,n))})}function Tv(t){return{seriesType:t,reset:function(e,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=e.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}function pu(t,e,r){e=W(e)&&{coordDimensions:e}||z({encodeDefine:t.getEncode()},e);var n=t.getSource(),i=v0(n,e).dimensions,a=new h0(i,t);return a.initData(n,r),a}var xv=(function(){function t(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var r=this._getRawData();return r.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,r)},t})(),mn="pie",XE=Se(),$S=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new xv(de(this.getData,this),de(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return pu(this,{coordDimensions:["value"],encodeDefaulter:Oe(Fy,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),i=XE(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=XA(o,n.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){js(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},e.type="series."+mn,e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e})(ot);bI({fullType:$S.type,getCoord2:function(t){return t.getShallow("center")}});function XS(t,e,r,n,i,a,o,s){var l=i-t,u=a-e,f=r-t,c=n-e,v=Math.sqrt(f*f+c*c);f/=v,c/=v;var h=l*f+u*c,d=h/v;d*=v;var p=o[0]=t+d*f,g=o[1]=e+d*c;return Math.sqrt((p-i)*(p-i)+(g-a)*(g-a))}var yn=new re,Pe=new re,Xe=new re,_n=new re,Mr=new re,gu=[],st=new re;function qE(t,e){if(e<=180&&e>0){e=e/180*Math.PI,yn.fromArray(t[0]),Pe.fromArray(t[1]),Xe.fromArray(t[2]),re.sub(_n,yn,Pe),re.sub(Mr,Xe,Pe);var r=_n.len(),n=Mr.len();if(!(r<.001||n<.001)){_n.scale(1/r),Mr.scale(1/n);var i=_n.dot(Mr),a=Math.cos(e);if(a<i){var o=XS(Pe.x,Pe.y,Xe.x,Xe.y,yn.x,yn.y,gu);st.fromArray(gu),st.scaleAndAdd(Mr,o/Math.tan(Math.PI-e));var s=Xe.x!==Pe.x?(st.x-Pe.x)/(Xe.x-Pe.x):(st.y-Pe.y)/(Xe.y-Pe.y);if(isNaN(s))return;s<0?re.copy(st,Pe):s>1&&re.copy(st,Xe),st.toArray(t[1])}}}}function ZE(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,yn.fromArray(t[0]),Pe.fromArray(t[1]),Xe.fromArray(t[2]),re.sub(_n,Pe,yn),re.sub(Mr,Xe,Pe);var n=_n.len(),i=Mr.len();if(!(n<.001||i<.001)){_n.scale(1/n),Mr.scale(1/i);var a=_n.dot(e),o=Math.cos(r);if(a<o){var s=XS(Pe.x,Pe.y,Xe.x,Xe.y,yn.x,yn.y,gu);st.fromArray(gu);var l=Math.PI/2,u=Math.acos(Mr.dot(e)),f=l+u-r;if(f>=l)re.copy(st,Xe);else{st.scaleAndAdd(Mr,s/Math.tan(Math.PI/2-f));var c=Xe.x!==Pe.x?(st.x-Pe.x)/(Xe.x-Pe.x):(st.y-Pe.y)/(Xe.y-Pe.y);if(isNaN(c))return;c<0?re.copy(st,Pe):c>1&&re.copy(st,Xe)}st.toArray(t[1])}}}}function Cv(t,e,r,n){var i=r==="normal",a=i?t:t.ensureState(r);a.ignore=e;var o=n.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=n.getModel("lineStyle").getLineStyle();i?t.useStyle(s):a.style=s}function KE(t,e){var r=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=xf(n[0],n[1]),a=xf(n[1],n[2]);if(!i||!a){t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=Cf([],n[1],n[0],o/i),l=Cf([],n[1],n[2],o/a),u=Cf([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)t.lineTo(n[f][0],n[f][1])}function qS(t,e,r){var n=t.getTextGuideLine(),i=t.getTextContent();if(!i){n&&t.removeTextGuideLine();return}for(var a=e.normal,o=a.get("show"),s=i.ignore,l=0;l<el.length;l++){var u=el[l],f=e[u],c=u==="normal";if(f){var v=f.get("show"),h=c?s:Z(i.states[u]&&i.states[u].ignore,s);if(h||!Z(v,o)){var d=c?n:n&&n.states[u];d&&(d.ignore=!0),n&&Cv(n,!0,u,f);continue}n||(n=new on,t.setTextGuideLine(n),!c&&(s||!o)&&Cv(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),Cv(n,!1,u,f)}}if(n){le(n.style,r),n.style.fill=null;var p=a.get("showAbove"),g=t.textGuideLineConfig=t.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=KE}}function ZS(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},n=0;n<Rt.length;n++){var i=Rt[n];r[i]=t.getModel([i,e])}return r}var jE=Math.PI/180;function KS(t,e,r,n,i,a,o,s,l,u){if(t.length<2)return;function f(p){for(var g=p.rB,m=g*g,y=0;y<p.list.length;y++){var _=p.list[y],S=Math.abs(_.label.y-r),b=n+_.len,w=b*b,T=Math.sqrt(Math.abs((1-S*S/m)*w)),C=e+(T+_.len2)*i,D=C-_.label.x,x=_.targetTextWidth-D*i;jS(_,x,!0),_.label.x=C}}function c(p){for(var g={list:[],maxY:0},m={list:[],maxY:0},y=0;y<p.length;y++)if(p[y].labelAlignTo==="none"){var _=p[y],S=_.label.y>r?m:g,b=Math.abs(_.label.y-r);if(b>=S.maxY){var w=_.label.x-e-_.len2*i,T=n+_.len,C=Math.abs(w)<T?Math.sqrt(b*b/(1-w*w/T/T)):T;S.rB=C,S.maxY=b}S.list.push(_)}f(g),f(m)}for(var v=t.length,h=0;h<v;h++)if(t[h].position==="outer"&&t[h].labelAlignTo==="labelLine"){var d=t[h].label.x-u;t[h].linePoints[1][0]+=d,t[h].label.x=u}O2(t,1,l,l+o)&&c(t)}function QE(t,e,r,n,i,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,v=0;v<t.length;v++){var h=t[v].label;Av(t[v])||(h.x<e?(f=Math.min(f,h.x),l.push(t[v])):(c=Math.max(c,h.x),u.push(t[v])))}for(var v=0;v<t.length;v++){var d=t[v];if(!Av(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var h=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?h.x<e?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+i-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?h.x<e?g=f-o-d.bleedMargin:g=o+i-c-d.bleedMargin:h.x<e?g=h.x-o-d.bleedMargin:g=o+i-h.x-d.bleedMargin,d.targetTextWidth=g,jS(d,g,!1)}}KS(u,e,r,n,1,i,a,o,s,c),KS(l,e,r,n,-1,i,a,o,s,f);for(var v=0;v<t.length;v++){var d=t[v];if(!Av(d)&&d.linePoints){var h=d.label,p=d.linePoints,m=d.labelAlignTo==="edge",y=h.style.padding,_=y?y[1]+y[3]:0,S=h.style.backgroundColor?0:_,b=d.rect.width+S,w=p[1][0]-p[2][0];m?h.x<e?p[2][0]=o+d.edgeDistance+b+d.labelDistance:p[2][0]=o+i-d.edgeDistance-b-d.labelDistance:(h.x<e?p[2][0]=h.x+d.labelDistance:p[2][0]=h.x-d.labelDistance,p[1][0]=p[2][0]+w),p[1][1]=p[2][1]=h.y}}}function jS(t,e,r){if(t.labelStyleWidth==null){var n=t.label,i=n.style,a=t.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,f=a.width+(o?0:l);if(e<f||r){if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var c=n.getBoundingRect();n.setStyle("width",Math.ceil(c.width)),n.setStyle("backgroundColor",o)}else{var v=e-l,h=e<f?v:r?v>t.unconstrainedWidth?null:v:null;n.setStyle("width",h)}QS(a,n)}}}function QS(t,e){JS.rect=t,uS(JS,e,JE)}var JE={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},JS={};function Av(t){return t.position==="center"}function ek(t){var e=t.getData(),r=[],n,i,a=!1,o=(t.get("minShowLabelAngle")||0)*jE,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,c=s.y,v=s.height;function h(w){w.ignore=!0}function d(w){if(!w.ignore)return!0;for(var T in w.states)if(w.states[T].ignore===!1)return!0;return!1}e.each(function(w){var T=e.getItemGraphicEl(w),C=T.shape,D=T.getTextContent(),x=T.getTextGuideLine(),A=e.getItemModel(w),L=A.getModel("label"),M=L.get("position")||A.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),E=L.get("alignTo"),k=Q(L.get("edgeDistance"),u),O=L.get("bleedMargin");O==null&&(O=Math.min(u,v)>200?10:2);var R=A.getModel("labelLine"),N=R.get("length");N=Q(N,u);var F=R.get("length2");if(F=Q(F,u),Math.abs(C.endAngle-C.startAngle)<o){I(D.states,h),D.ignore=!0,x&&(I(x.states,h),x.ignore=!0);return}if(d(D)){var B=(C.startAngle+C.endAngle)/2,V=Math.cos(B),X=Math.sin(B),H,K,ae,ke;n=C.cx,i=C.cy;var Ae=M==="inside"||M==="inner";if(M==="center")H=C.cx,K=C.cy,ke="center";else{var he=(Ae?(C.r+C.r0)/2*V:C.r*V)+n,Te=(Ae?(C.r+C.r0)/2*X:C.r*X)+i;if(H=he+V*3,K=Te+X*3,!Ae){var J=he+V*(N+l-C.r),se=Te+X*(N+l-C.r),pt=J+(V<0?-1:1)*F,Re=se;E==="edge"?H=V<0?f+k:f+u-k:H=pt+(V<0?-P:P),K=Re,ae=[[he,Te],[J,se],[pt,Re]]}ke=Ae?"center":E==="edge"?V>0?"right":"left":V>0?"left":"right"}var ir=Math.PI,gt=0,ar=L.get("rotate");if(me(ar))gt=ar*(ir/180);else if(M==="center")gt=0;else if(ar==="radial"||ar===!0){var _a=V<0?-B+ir:-B;gt=_a}else if(ar==="tangential"||ar==="tangential-noflip"&&M!=="outside"&&M!=="outer"){var or=Math.atan2(V,X);or<0&&(or=ir*2+or);var Xu=X>0;Xu&&ar!=="tangential-noflip"&&(or=ir+or),gt=or-ir}if(a=!!gt,D.x=H,D.y=K,D.rotation=gt,D.setStyle({verticalAlign:"middle"}),Ae){D.setStyle({align:ke});var Jd=D.states.select;Jd&&(Jd.x+=D.x,Jd.y+=D.y)}else{var Sa=new ne(0,0,0,0);QS(Sa,D),r.push({label:D,labelLine:x,position:M,len:N,len2:F,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new re(V,X),linePoints:ae,textAlign:ke,labelDistance:P,labelAlignTo:E,edgeDistance:k,bleedMargin:O,rect:Sa,unconstrainedWidth:Sa.width,labelStyleWidth:D.style.width})}T.setTextConfig({inside:Ae})}}),!a&&t.get("avoidLabelOverlap")&&QE(r,n,i,l,u,v,f,c);for(var p=0;p<r.length;p++){var g=r[p],m=g.label,y=g.labelLine,_=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),_&&(I(m.states,h),m.ignore=!0);var S=m.states.select;S&&(S.x+=m.x,S.y+=m.y)}if(y){var b=g.linePoints;_||!b?(I(y.states,h),y.ignore=!0):(qE(b,g.minTurnAngle),ZE(b,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:b}),m.__hostTarget.textGuideLineConfig={anchor:new re(b[0][0],b[0][1])})}}}var e1=Math.PI*2,mu=Math.PI/180,tk=Ic(mn,rk);function rk(t,e){t.eachSeriesByType(mn,function(r){var n=r.getData(),i=n.mapDimension("value"),a=fL(r,e),o=a.cx,s=a.cy,l=a.r,u=a.r0,f=a.viewRect,c=-r.get("startAngle")*mu,v=r.get("endAngle"),h=r.get("padAngle")*mu;v=v==="auto"?c-e1:-v*mu;var d=r.get("minAngle")*mu,p=d+h,g=0;n.each(i,function(k){!isNaN(k)&&g++});var m=n.getSum(i),y=Math.PI/(m||g)*2,_=r.get("clockwise"),S=r.get("roseType"),b=r.get("stillShowZeroSum"),w=n.getDataExtent(i);w[0]=0;var T=_?1:-1,C=[c,v],D=T*h/2;pc(C,!_),c=C[0],v=C[1];var x=t1(r);x.startAngle=c,x.endAngle=v,x.clockwise=_,x.cx=o,x.cy=s,x.r=l,x.r0=u;var A=Math.abs(v-c),L=A,M=0,P=c;if(n.setLayout({viewRect:f,r:l}),n.each(i,function(k,O){var R;if(isNaN(k)){n.setItemLayout(O,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:o,cy:s,r0:u,r:S?NaN:l});return}S!=="area"?R=m===0&&b?y:k*y:R=A/g,R<p?(R=p,L-=p):M+=k;var N=P+T*R,F=0,B=0;h>R?(F=P+T*R/2,B=F):(F=P+D,B=N-D),n.setItemLayout(O,{angle:R,startAngle:F,endAngle:B,clockwise:_,cx:o,cy:s,r0:u,r:S?It(k,w,[u,l]):l}),P=N}),L<e1&&g)if(L<=.001){var E=A/g;n.each(i,function(k,O){if(!isNaN(k)){var R=n.getItemLayout(O);R.angle=E;var N=0,F=0;E<h?(N=c+T*(O+1/2)*E,F=N):(N=c+T*O*E+D,F=c+T*(O+1)*E-D),R.startAngle=N,R.endAngle=F}})}else y=L/M,P=c,n.each(i,function(k,O){if(!isNaN(k)){var R=n.getItemLayout(O),N=R.angle===p?p:k*y,F=0,B=0;N<h?(F=P+T*N/2,B=F):(F=P+D,B=P+T*N-D),R.startAngle=F,R.endAngle=B,P+=T*N}})})}var t1=Se(),nk=(function(t){G(e,t);function e(r,n,i){var a=t.call(this)||this;a.z2=2;var o=new Me;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return e.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),f=r.getItemLayout(n),c=z(Io(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(a){o.setShape(c);var v=s.getShallow("animationType");s.ecModel.ssr?(Ve(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):v==="scale"?(o.shape.r=f.r0,Ve(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),Ve(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Ie(o,{shape:{endAngle:f.endAngle}},s,n))}else Ui(o),Ie(o,{shape:c},s,n);o.useStyle(r.getItemVisual(n,"style")),zr(o,l);var h=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(h)*d,g=Math.sin(h)*d,m=l.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=z({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Io(u.getModel("itemStyle"),f)),z(o.ensureState("select"),{x:p,y:g,shape:Io(l.getModel(["select","itemStyle"]),f)}),z(o.ensureState("blur"),{shape:Io(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&z(y.ensureState("select"),{x:p,y:g}),z(_.ensureState("select"),{x:p,y:g}),Fr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,f=l&&l.opacity;Kn(a,jn(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:f,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var c=a.getTextContent();a.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var v=o.get(["label","position"]);if(v!=="outside"&&v!=="outer")a.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new on,this.setTextGuideLine(h)),qS(this,ZS(o),{stroke:u,opacity:bn(s.get(["lineStyle","opacity"]),f,1)})}},e})(xr),ik=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=mn,r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,n,i,a){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var v=t1(r),h=new xr({shape:oe(v)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(d){var p=new nk(o,d,u);o.setItemGraphicEl(d,p),l.add(p)}).update(function(d,p){var g=s.getItemGraphicEl(p);g.updateData(o,d,u),g.off("click"),l.add(g),o.setItemGraphicEl(d,g)}).remove(function(d){var p=s.getItemGraphicEl(d);Hi(p,r,d)}).execute(),ek(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type=mn,e})(je);function ak(t){return{seriesType:t,reset:function(e,r){var n=e.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(me(o)&&!isNaN(o)&&o<0)})}}}function ok(t){t.registerChartView(ik),t.registerSeriesModel($S),YE(mn,t.registerAction),t.registerLayout(tk),t.registerProcessor(Tv(mn)),t.registerProcessor(ak(mn))}var la=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),sk=(function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new la(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,i=e.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,e),this.handler.dispatchToElement(new la(r,e),"drag",e.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new la(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new la(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new la(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new la(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),lk=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Dv=[],uk=ie.browser.firefox&&+ie.browser.version.split(".")[0]<39;function Mv(t,e,r,n){return r=r||{},n?r1(t,e,r):uk&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):r1(t,e,r),r}function r1(t,e,r){if(ie.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(_0(t)){var a=t.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Ch(Dv,t,n,i)){r.zrX=Dv[0],r.zrY=Dv[1];return}}r.zrX=r.zrY=0}function Iv(t){return t||window.event}function zt(t,e,r){if(e=Iv(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Mv(t,o,e,r)}else{Mv(t,e,e,r);var a=fk(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&lk.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function fk(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function ck(t,e,r,n){t.addEventListener(e,r,n)}function hk(t,e,r,n){t.removeEventListener(e,r,n)}var n1=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},vk=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:r,event:e},o=0,s=i.length;o<s;o++){var l=i[o],u=Mv(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in Lv)if(Lv.hasOwnProperty(r)){var n=Lv[r](this._track,e);if(n)return n}},t})();function i1(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function dk(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var Lv={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,i=(t[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=i1(n)/i1(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=dk(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}},a1="silent";function pk(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:gk}}function gk(){n1(this.event)}var mk=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(kr),Lo=(function(){function t(e,r){this.x=e,this.y=r}return t})(),yk=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Pv=new ne(0,0,0,0),o1=(function(t){G(e,t);function e(r,n,i,a,o){var s=t.call(this)||this;return s._hovered=new Lo(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new mk,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new sk(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(I(yk,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=l1(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Lo(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new Lo(0,0)},e.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=pk(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new Lo(r,n);if(s1(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ne(r-u,n-u,l,l),c=a.length-1;c>=0;c--){var v=a[c];v!==i&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(Pv.copy(v.getBoundingRect()),v.transform&&Pv.applyTransform(v.transform),Pv.intersect(f)&&s.push(v))}if(s.length)for(var h=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=h)for(var m=0;m<p;m+=d){var y=r+g*Math.cos(m),_=n+g*Math.sin(m);if(s1(s,o,y,_,i),o.target)return o}}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new vk);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new Lo;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(kr);I(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){o1.prototype[t]=function(e){var r=e.zrX,n=e.zrY,i=l1(this,r,n),a,o;if((t!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||xf(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function _k(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return i?a1:!0}return!1}function s1(t,e,r,n,i){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==i&&!o.ignore&&(s=_k(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==a1)){e.target=o;break}}}function l1(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var u1=32,Po=7;function Sk(t){for(var e=0;t>=u1;)e|=t&1,t>>=1;return t+e}function f1(t,e,r,n){var i=e+1;if(i===r)return 1;if(n(t[i++],t[e])<0){for(;i<r&&n(t[i],t[i-1])<0;)i++;bk(t,e,i)}else for(;i<r&&n(t[i],t[i-1])>=0;)i++;return i-e}function bk(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}function c1(t,e,r,n,i){for(n===e&&n++;n<r;n++){for(var a=t[n],o=e,s=n,l;o<s;)l=o+s>>>1,i(a,t[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=a}}function Ev(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])>0){for(s=n-i;l<s&&a(t,e[r+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(t,e[r+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])>0?o=f+1:l=f}return l}function kv(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])<0){for(s=i+1;l<s&&a(t,e[r+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(t,e[r+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])<0?l=f:o=f+1}return l}function wk(t,e){var r=Po,n,i,a=0,o=[];n=[],i=[];function s(h,d){n[a]=h,i[a]=d,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]<i[h+1]&&h--;else if(i[h]>i[h+1])break;f(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]<i[h+1]&&h--,f(h)}}function f(h){var d=n[h],p=i[h],g=n[h+1],m=i[h+1];i[h]=p+m,h===a-3&&(n[h+1]=n[h+2],i[h+1]=i[h+2]),a--;var y=kv(t[g],t,d,p,0,e);d+=y,p-=y,p!==0&&(m=Ev(t[d+p-1],t,g,m,m-1,e),m!==0&&(p<=m?c(d,p,g,m):v(d,p,g,m)))}function c(h,d,p,g){var m=0;for(m=0;m<d;m++)o[m]=t[h+m];var y=0,_=p,S=h;if(t[S++]=t[_++],--g===0){for(m=0;m<d;m++)t[S+m]=o[y+m];return}if(d===1){for(m=0;m<g;m++)t[S+m]=t[_+m];t[S+g]=o[y];return}for(var b=r,w,T,C;;){w=0,T=0,C=!1;do if(e(t[_],o[y])<0){if(t[S++]=t[_++],T++,w=0,--g===0){C=!0;break}}else if(t[S++]=o[y++],w++,T=0,--d===1){C=!0;break}while((w|T)<b);if(C)break;do{if(w=kv(t[_],o,y,d,0,e),w!==0){for(m=0;m<w;m++)t[S+m]=o[y+m];if(S+=w,y+=w,d-=w,d<=1){C=!0;break}}if(t[S++]=t[_++],--g===0){C=!0;break}if(T=Ev(o[y],t,_,g,0,e),T!==0){for(m=0;m<T;m++)t[S+m]=t[_+m];if(S+=T,_+=T,g-=T,g===0){C=!0;break}}if(t[S++]=o[y++],--d===1){C=!0;break}b--}while(w>=Po||T>=Po);if(C)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),d===1){for(m=0;m<g;m++)t[S+m]=t[_+m];t[S+g]=o[y]}else{if(d===0)throw new Error;for(m=0;m<d;m++)t[S+m]=o[y+m]}}function v(h,d,p,g){var m=0;for(m=0;m<g;m++)o[m]=t[p+m];var y=h+d-1,_=g-1,S=p+g-1,b=0,w=0;if(t[S--]=t[y--],--d===0){for(b=S-(g-1),m=0;m<g;m++)t[b+m]=o[m];return}if(g===1){for(S-=d,y-=d,w=S+1,b=y+1,m=d-1;m>=0;m--)t[w+m]=t[b+m];t[S]=o[_];return}for(var T=r;;){var C=0,D=0,x=!1;do if(e(o[_],t[y])<0){if(t[S--]=t[y--],C++,D=0,--d===0){x=!0;break}}else if(t[S--]=o[_--],D++,C=0,--g===1){x=!0;break}while((C|D)<T);if(x)break;do{if(C=d-kv(o[_],t,h,d,d-1,e),C!==0){for(S-=C,y-=C,d-=C,w=S+1,b=y+1,m=C-1;m>=0;m--)t[w+m]=t[b+m];if(d===0){x=!0;break}}if(t[S--]=o[_--],--g===1){x=!0;break}if(D=g-Ev(t[y],o,0,g,g-1,e),D!==0){for(S-=D,_-=D,g-=D,w=S+1,b=_+1,m=0;m<D;m++)t[w+m]=o[b+m];if(g<=1){x=!0;break}}if(t[S--]=t[y--],--d===0){x=!0;break}T--}while(C>=Po||D>=Po);if(x)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),g===1){for(S-=d,y-=d,w=S+1,b=y+1,m=d-1;m>=0;m--)t[w+m]=t[b+m];t[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),m=0;m<g;m++)t[b+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function yu(t,e,r,n){r||(r=0),n||(n=t.length);var i=n-r;if(!(i<2)){var a=0;if(i<u1){a=f1(t,r,n,e),c1(t,r,n,r+a,e);return}var o=wk(t,e),s=Sk(i);do{if(a=f1(t,r,n,e),a<s){var l=i;l>s&&(l=s),c1(t,r,r+l,r+a,e),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var h1=!1;function Rv(){h1||(h1=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function v1(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Tk=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=v1}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,e);n.length=this._displayListLen,yu(n,v1)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath(),a=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||i)){if(s||(s=e.__clipPaths=[]),a)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=i,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var c=e.childrenRef(),v=0;v<c.length;v++){var h=c[v];e.__dirty&&(h.__dirty|=$t),this._updateAndAddDisplayable(h,s,n)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(Rv(),d.z=0),isNaN(d.z2)&&(Rv(),d.z2=0),isNaN(d.zlevel)&&(Rv(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var p=e.getDecalElement&&e.getDecalElement();p&&this._updateAndAddDisplayable(p,s,n);var g=e.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,n);var m=e.getTextContent();m&&this._updateAndAddDisplayable(m,s,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r<n;r++)this.delRoot(e[r]);return}var i=fe(this._roots,e);i>=0&&this._roots.splice(i,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})(),Ov;Ov=ie.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};function ua(){return new Date().getTime()}var xk=(function(t){G(e,t);function e(r){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=ua()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Ov(n),!r._paused&&r.update())}Ov(n)},e.prototype.start=function(){this._running||(this._time=ua(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=ua(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=ua()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var i=new jf(r,n.loop);return this.addAnimator(i),i},e})(kr),Ck=300,Nv=ie.domSupported,Bv=(function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=$(t,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:t,touch:e,pointer:n}})(),d1={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},p1=!1;function Fv(t){var e=t.pointerType;return e==="pen"||e==="touch"}function Ak(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function zv(t){t&&(t.zrByTouch=!0)}function Dk(t,e){return zt(t.dom,new Mk(t,e),!0)}function g1(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var Mk=(function(){function t(e,r){this.stopPropagation=We,this.stopImmediatePropagation=We,this.preventDefault=We,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),er={mousedown:function(t){t=zt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=zt(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=zt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=zt(this.dom,t);var e=t.toElement||t.relatedTarget;g1(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){p1=!0,t=zt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){p1||(t=zt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=zt(this.dom,t),zv(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),er.mousemove.call(this,t),er.mousedown.call(this,t)},touchmove:function(t){t=zt(this.dom,t),zv(t),this.handler.processGesture(t,"change"),er.mousemove.call(this,t)},touchend:function(t){t=zt(this.dom,t),zv(t),this.handler.processGesture(t,"end"),er.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<Ck&&er.click.call(this,t)},pointerdown:function(t){er.mousedown.call(this,t)},pointermove:function(t){Fv(t)||er.mousemove.call(this,t)},pointerup:function(t){er.mouseup.call(this,t)},pointerout:function(t){Fv(t)||er.mouseout.call(this,t)}};I(["click","dblclick","contextmenu"],function(t){er[t]=function(e){e=zt(this.dom,e),this.trigger(t,e)}});var Gv={pointermove:function(t){Fv(t)||Gv.mousemove.call(this,t)},pointerup:function(t){Gv.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function Ik(t,e){var r=e.domHandlers;ie.pointerEventsSupported?I(Bv.pointer,function(n){_u(e,n,function(i){r[n].call(t,i)})}):(ie.touchEventsSupported&&I(Bv.touch,function(n){_u(e,n,function(i){r[n].call(t,i),Ak(e)})}),I(Bv.mouse,function(n){_u(e,n,function(i){i=Iv(i),e.touching||r[n].call(t,i)})}))}function Lk(t,e){ie.pointerEventsSupported?I(d1.pointer,r):ie.touchEventsSupported||I(d1.mouse,r);function r(n){function i(a){a=Iv(a),g1(t,a.target)||(a=Dk(t,a),e.domHandlers[n].call(t,a))}_u(e,n,i,{capture:!0})}}function _u(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,ck(t.domTarget,e,r,n)}function Vv(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&hk(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var m1=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),Pk=(function(t){G(e,t);function e(r,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new m1(r,er),Nv&&(i._globalHandlerScope=new m1(document,Gv)),Ik(i,i._localHandlerScope),i}return e.prototype.dispose=function(){Vv(this._localHandlerScope),Nv&&Vv(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Nv&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?Lk(this,n):Vv(n)}},e})(kr);var Su={},y1={};function Ek(t){delete y1[t]}function kk(t){if(!t)return!1;if(typeof t=="string")return Is(t,1)<Qf;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,i=0;i<n;i++)r+=Is(e[i].color,1);return r/=n,r<Qf}return!1}var Rk=(function(){function t(e,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n=n||{},this.dom=r,this.id=e;var a=new Tk,o=n.renderer||"canvas";Su[o]||(o=ce(Su)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Su[o](r,a,n,e),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!ie.node&&!ie.worker&&!l?new Pk(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?ie.touchEventsSupported:!!f,v=44,h;c&&(h=Z(n.pointerSize,v)),this.handler=new o1(a,s,u,s.root,h),this.animation=new xk({stage:{update:l?null:function(){return i._flush(!1)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=kk(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(e){var r,n=ua(),i=this._needsRefresh,a=this._needsRefreshHover;(i||a)&&(r=!0,this._refresh({animUpdate:e,refresh:i,refreshHover:a}));var o=ua();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,n){return this._disposed||this.handler.on(e,r,n),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof Ce&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.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,Ek(this.id))},t})();function _1(t,e){var r=new Rk(Vp(),t,e);return y1[r.id]=r,r}function Ok(t,e){Su[t]=e}var Hv;function Nk(t){if(typeof Hv=="function")return Hv(t)}function Bk(t){Hv=t}var S1="";typeof navigator<"u"&&(S1=navigator.platform||"");var fa="rgba(0, 0, 0, 0.2)",b1=Y.color.theme[0],Fk=Uf(b1,null,null,.9);const w1={darkMode:"auto",colorBy:"series",color:Y.color.theme,gradientColor:[Fk,b1],aria:{decal:{decals:[{color:fa,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:fa,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:fa,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:fa,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:fa,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:fa,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:S1.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var zk=te();function Gk(t,e,r){var n=zk.get(e);if(!n)return r;var i=n(t);return i?r.concat(i):r}var bu,Eo,T1,x1="\0_ec_inner",Vk=1,Uv=(function(t){G(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new xe(a),this._locale=new xe(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){var a=D1(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,D1(n))},e.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?T1(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&I(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=te(),u=n&&n.replaceMergeMainTypeMap;qM(this),I(r,function(c,v){c!=null&&(ye.hasClass(v)?v&&(s.push(v),l.set(v,!0)):i[v]=i[v]==null?oe(c):be(i[v],c,!0))}),u&&u.each(function(c,v){ye.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),ye.topologicalTravel(s,ye.getAllClassMainTypes(),f,this);function f(c){var v=Gk(this,c,nt(r[c])),h=a.get(c),d=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=rD(h,v,d);uD(p,c,ye),i[c]=null,a.set(c,null),o.set(c,0);var g=[],m=[],y=0,_;I(p,function(S,b){var w=S.existing,T=S.newOption;if(!T)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var C=c==="series",D=ye.getClass(c,S.keyInfo.subType,!C);if(!D)return;if(c==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===D)w.name=S.keyInfo.name,w.mergeOption(T,this),w.optionUpdated(T,!1);else{var x=z({componentIndex:b},S.keyInfo);w=new D(T,this,this,x),z(w,x),S.brandNew&&(w.__requireNewView=!0),w.init(T,this,this),w.optionUpdated(null,!0)}}w?(g.push(w.option),m.push(w),y++):(g.push(void 0),m.push(void 0))},this),i[c]=g,a.set(c,m),o.set(c,y),c==="series"&&bu(this)}this._seriesIndices||bu(this)},e.prototype.getOption=function(){var r=oe(this.option);return I(r,function(n,i){if(ye.hasClass(i)){for(var a=nt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!ja(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[x1],r},e.prototype.setTheme=function(r){this._theme=new xe(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},e.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],I(nt(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=C1("id",a,s):o!=null?l=C1("name",o,s):l=Ue(s,function(u){return!!u}),A1(l,r)},e.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):Ue(this._componentsMap.get(i),function(u){return!!u});return l(A1(o,r));function s(u){var f=i+"Index",c=i+"Id",v=i+"Name";return u&&(u[f]!=null||u[c]!=null||u[v]!=null)?{mainType:i,index:u[f],id:u[c],name:u[v]}:null}function l(u){return r.filter?Ue(u,r.filter):u}},e.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(ee(r)){var o=n,s=r;a.each(function(c,v){for(var h=0;c&&h<c.length;h++){var d=c[h];d&&s.call(o,v,d,d.componentIndex)}})}else for(var l=q(r)?a.get(r):j(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=wr(r,null);return Ue(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return Ue(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return Ue(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){Eo(this),I(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},e.prototype.eachRawSeries=function(r,n){I(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,i){Eo(this),I(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,n,i){return I(this.getSeriesByType(r),n,i)},e.prototype.isSeriesFiltered=function(r){return Eo(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){Eo(this);var i=[];I(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=te(i)},e.prototype.restoreData=function(r){bu(this);var n=this._componentsMap,i=[];n.each(function(a,o){ye.hasClass(o)&&i.push(o)}),ye.topologicalTravel(i,ye.getAllClassMainTypes(),function(a){I(n.get(a),function(o){o&&(a!=="series"||!Hk(o,r))&&o.restoreData()})})},e.internalField=(function(){bu=function(r){var n=r._seriesIndices=[];I(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=te(n)},Eo=function(r){},T1=function(r,n){r.option={},r.option[x1]=Vk,r._componentsMap=te({series:[]}),r._componentsCount=te();var i=n.aria;j(i)&&i.enabled==null&&(i.enabled=!0),Uk(n,r._theme.option),be(n,w1,!1),r._mergeOption(n,null)}})(),e})(xe);function Hk(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,i=e.seriesName;return r!=null&&t.componentIndex!==r||n!=null&&t.id!==n||i!=null&&t.name!==i}}function Uk(t,e){var r=t.color&&!t.colorLayer;I(e,function(n,i){i==="colorLayer"&&r||i==="color"&&t.color||ye.hasClass(i)||(typeof n=="object"?t[i]=t[i]?be(t[i],n,!1):oe(n):t[i]==null&&(t[i]=n))})}function C1(t,e,r){if(W(e)){var n=te();return I(e,function(a){if(a!=null){var o=wr(a,null);o!=null&&n.set(a,!0)}}),Ue(r,function(a){return a&&n.get(a[t])})}else{var i=wr(e,null);return Ue(r,function(a){return a&&i!=null&&a[t]===i})}}function A1(t,e){return e.hasOwnProperty("subType")?Ue(t,function(r){return r&&r.subType===e.subType}):t}function D1(t){var e=te();return t&&I(nt(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}Ut(Uv,Gh);var Wk=/^(min|max)?(.+)$/,Yk=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(I(nt(e.series),function(o){o&&o.data&&ft(o.data)&&vs(o.data)}),I(nt(e.dataset),function(o){o&&o.source&&ft(o.source)&&vs(o.source)})),e=oe(e);var i=this._optionBackup,a=$k(e,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],oe(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(r=oe(n[i.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)Xk(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!Zk(o,this._currentMediaIndices)&&(s=$(o,function(f){return oe(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},t})();function $k(t,e,r){var n=[],i,a,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,f=!!t.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(t.options=t.media=null),a=t),f&&W(u)&&I(u,function(h){h&&h.option&&(h.query?n.push(h):i||(i=h))}),v(a),I(l,function(h){return v(h)}),I(n,function(h){return v(h.option)});function v(h){I(e,function(d){d(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function Xk(t,e,r){var n={width:e,height:r,aspectratio:e/r},i=!0;return I(t,function(a,o){var s=o.match(Wk);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();qk(n[u],a,l)||(i=!1)}}),i}function qk(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function Zk(t,e){return t.join(",")===e.join(",")}var tr=I,ko=j,M1=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Wv(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=M1.length;r<n;r++){var i=M1[r],a=e.normal,o=e.emphasis;a&&a[i]&&(t[i]=t[i]||{},t[i].normal?be(t[i].normal,a[i]):t[i].normal=a[i],a[i]=null),o&&o[i]&&(t[i]=t[i]||{},t[i].emphasis?be(t[i].emphasis,o[i]):t[i].emphasis=o[i],o[i]=null)}}function Qe(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,i=t[e].emphasis;n&&(r?(t[e].normal=t[e].emphasis=null,le(t[e],n)):t[e]=n),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function Ro(t){Qe(t,"itemStyle"),Qe(t,"lineStyle"),Qe(t,"areaStyle"),Qe(t,"label"),Qe(t,"labelLine"),Qe(t,"upperLabel"),Qe(t,"edgeLabel")}function Ne(t,e){var r=ko(t)&&t[e],n=ko(r)&&r.textStyle;if(n)for(var i=0,a=Sm.length;i<a;i++){var o=Sm[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Gt(t){t&&(Ro(t),Ne(t,"label"),t.emphasis&&Ne(t.emphasis,"label"))}function Kk(t){if(ko(t)){Wv(t),Ro(t),Ne(t,"label"),Ne(t,"upperLabel"),Ne(t,"edgeLabel"),t.emphasis&&(Ne(t.emphasis,"label"),Ne(t.emphasis,"upperLabel"),Ne(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Wv(e),Gt(e));var r=t.markLine;r&&(Wv(r),Gt(r));var n=t.markArea;n&&Gt(n);var i=t.data;if(t.type==="graph"){i=i||t.nodes;var a=t.links||t.edges;if(a&&!ft(a))for(var o=0;o<a.length;o++)Gt(a[o]);I(t.categories,function(u){Ro(u)})}if(i&&!ft(i))for(var o=0;o<i.length;o++)Gt(i[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Gt(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)W(l[o])?(Gt(l[o][0]),Gt(l[o][1])):Gt(l[o]);t.type==="gauge"?(Ne(t,"axisLabel"),Ne(t,"title"),Ne(t,"detail")):t.type==="treemap"?(Qe(t.breadcrumb,"itemStyle"),I(t.levels,function(u){Ro(u)})):t.type==="tree"&&Ro(t.leaves)}}function Yr(t){return W(t)?t:t?[t]:[]}function I1(t){return(W(t)?t[0]:t)||{}}function jk(t,e){tr(Yr(t.series),function(n){ko(n)&&Kk(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),tr(r,function(n){tr(Yr(t[n]),function(i){i&&(Ne(i,"axisLabel"),Ne(i.axisPointer,"label"))})}),tr(Yr(t.parallel),function(n){var i=n&&n.parallelAxisDefault;Ne(i,"axisLabel"),Ne(i&&i.axisPointer,"label")}),tr(Yr(t.calendar),function(n){Qe(n,"itemStyle"),Ne(n,"dayLabel"),Ne(n,"monthLabel"),Ne(n,"yearLabel")}),tr(Yr(t.radar),function(n){Ne(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),tr(Yr(t.geo),function(n){ko(n)&&(Gt(n),tr(Yr(n.regions),function(i){Gt(i)}))}),tr(Yr(t.timeline),function(n){Gt(n),Qe(n,"label"),Qe(n,"itemStyle"),Qe(n,"controlStyle",!0);var i=n.data;W(i)&&I(i,function(a){j(a)&&(Qe(a,"label"),Qe(a,"itemStyle"))})}),tr(Yr(t.toolbox),function(n){Qe(n,"iconStyle"),tr(n.feature,function(i){Qe(i,"iconStyle")})}),Ne(I1(t.axisPointer),"label"),Ne(I1(t.tooltip).axisPointer,"label")}function Qk(t,e){for(var r=e.split(","),n=t,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function Jk(t,e,r,n){for(var i=e.split(","),a=t,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=r)}function L1(t){t&&I(eR,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var eR=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],tR=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Yv=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Oo(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<Yv.length;r++){var n=Yv[r][1],i=Yv[r][0];e[n]!=null&&(e[i]=e[n])}}function P1(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function E1(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function rR(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function k1(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&k1(t[r].children,e)}function R1(t,e){jk(t,e),t.series=nt(t.series),I(t.series,function(r){if(j(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),P1(r.label);var i=r.data;if(i&&!ft(i))for(var a=0;a<i.length;a++)P1(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=Qk(r,"pointer.color");o!=null&&Jk(r,"itemStyle.color",o)}else if(n==="bar"){Oo(r),Oo(r.backgroundStyle),Oo(r.emphasis);var i=r.data;if(i&&!ft(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(Oo(i[a]),Oo(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),E1(r),k1(r.data,E1)}else n==="graph"||n==="sankey"?rR(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&le(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),L1(r)}}),t.dataRange&&(t.visualMap=t.dataRange),I(tR,function(r){var n=t[r];n&&(W(n)||(n=[n]),I(n,function(i){L1(i)}))})}var nR=Lc(iR);function iR(t){var e=te();t.eachSeries(function(r){var n=r.get("stack");if(n){var i=e.get(n)||e.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.push(o)}}),e.each(function(r){if(r.length!==0){var n=r[0].seriesModel,i=n.get("stackOrder")||"seriesAsc";i==="seriesDesc"&&r.reverse(),I(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),aR(r)}})}function aR(t){I(t,function(e,r){var n=[],i=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,c){var v=o.get(e.stackedDimension,c);if(isNaN(v))return i;var h,d;s?d=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var p=NaN,g=r-1;g>=0;g--){var m=t[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,h)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&v>=0&&y>0||l==="samesign"&&v<=0&&y<0){v=qA(v,y),p=y;break}}}return n[0]=v,n[1]=p,n})})}var bt=(function(){function t(){this.group=new Ce,this.uid=vo("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){},t.prototype.updateLayout=function(e,r,n,i){},t.prototype.updateVisual=function(e,r,n,i){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();pf(bt),gs(bt);var O1=Se(),N1={itemStyle:Ma(Oy,!0),lineStyle:Ma(Ry,!0)},oR={lineStyle:"stroke",itemStyle:"fill"};function B1(t,e){var r=t.visualStyleMapper||N1[e];return r||(console.warn("Unknown style type '"+e+"'."),N1.itemStyle)}function F1(t,e){var r=t.visualDrawType||oR[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var sR={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),a=B1(t,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=F1(t,n),u=o[l],f=ee(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var v=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=v,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ee(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||ee(o.stroke)?v:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var p=t.getDataParams(d),g=z({},o);g[l]=f(p),h.setItemVisual(d,"style",g)}}}},No=new xe,lR={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=B1(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){No.option=l[n];var u=i(No),f=o.ensureUniqueItemVisual(s,"style");z(f,u),No.option.decal&&(o.setItemVisual(s,"decal",No.option.decal),No.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},uR={performRawSeries:!0,overallReset:function(t){var e=te();t.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.type+"-"+r.getColorBy();O1(r).scope=e.get(n)||e.set(n,{})}}),t.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.getRawData(),i={},a=r.getData(),o=O1(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=F1(r,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var v=a.ensureUniqueItemVisual(f,"style"),h=n.getName(u)||u+"",d=n.count();v[l]=r.getColorFromPalette(h,o,d)}})}})}},wu=Math.PI;function fR(t,e){e=e||{},le(e,{text:"loading",textColor:Y.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:Y.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Ce,n=new De({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var i=new Me({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new De({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new cl({shape:{startAngle:-wu/2,endAngle:-wu/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:wu*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:wu*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var z1=(function(){function t(e,r,n,i){this._stageTaskMap=te(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),i=e.__preparePipelineContext?e.__preparePipelineContext(r,n):Mm(e,r,n);e.pipelineContext=n.context=i},t.prototype.restorePipelines=function(e,r){var n=this,i=n._pipelineMap=te();r.eachSeries(function(a){var o=e.painter.type==="canvas"&&a.getProgressive(),s=a.uid;i.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;I(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";Wt(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},t.prototype.prepareView=function(e,r,n,i){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,i){i=i||{};var a=!1,o=this;I(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,v=f.overallTask;if(v){var h,d=v.agentStubMap;d.each(function(g){s(i,g)&&(g.dirty(),h=!0)}),h&&v.dirty(),o.updatePayload(v,n);var p=o.getPerformArgs(v,i.block);d.each(function(g){g.perform(p)}),v.perform(p)&&(a=!0)}else c&&c.each(function(g,m){s(i,g)&&g.dirty();var y=o.getPerformArgs(g,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=te(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(c){var v=c.uid,h=s.set(v,o&&o.get(v)||bo({plan:pR,reset:gR,count:yR}));h.context={model:c,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,h)}},t.prototype._createOverallStageTask=function(e,r,n,i){var a=this,o=r.overallTask=r.overallTask||bo({reset:cR});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=te(),u=e.seriesType,f=e.getTargetSeries,c=e.dirtyOnOverallProgress,v=!1,h="";Wt(!e.createOnAllSeries,h),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):I(n.getSeries(),d);function d(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(v=!0,bo({reset:hR,onDirty:dR})));m.context={model:p,dirtyOnOverallProgress:c},m.agent=o,m.__block=c,a._pipe(p,m)}v&&o.dirty()},t.prototype._pipe=function(e,r){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},t.wrapStageHandler=function(e,r){return ee(e)&&(e={overallReset:e,seriesType:_R(e)}),e.uid=vo("stageHandler"),r&&(e.visualType=r),e},t})();function cR(t){t.overallReset(t.ecModel,t.api,t.payload)}function hR(t){return t.dirtyOnOverallProgress&&vR}function vR(){this.agent.dirty(),this.getDownstream().dirty()}function dR(){this.agent&&this.agent.dirty()}function pR(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function gR(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=nt(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?$(e,function(r,n){return G1(n)}):mR}var mR=G1(0);function G1(t){return function(e,r){var n=r.data,i=r.resetDefines[t];if(i&&i.dataEach)for(var a=e.start;a<e.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(e,n)}}function yR(t){return t.data.count()}function _R(t){Tu=null;try{t(Bo,V1)}catch{}return Tu}var Bo={},V1={},Tu;H1(Bo,Uv),H1(V1,Em),Bo.eachSeriesByType=Bo.eachRawSeriesByType=function(t){Tu=t},Bo.eachComponent=function(t){t.mainType==="series"&&t.subType&&(Tu=t.subType)};function H1(t,e){for(var r in e.prototype)t[r]=We}var U=Y.darkColor,U1=U.background,Fo=function(){return{axisLine:{lineStyle:{color:U.axisLine}},splitLine:{lineStyle:{color:U.axisSplitLine}},splitArea:{areaStyle:{color:[U.backgroundTint,U.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:U.axisMinorSplitLine}},axisLabel:{color:U.axisLabel},axisName:{}}},W1={label:{color:U.secondary},itemStyle:{borderColor:U.borderTint},dividerLineStyle:{color:U.border}},Y1={darkMode:!0,color:U.theme,backgroundColor:U1,axisPointer:{lineStyle:{color:U.border},crossStyle:{color:U.borderShade},label:{color:U.tertiary}},legend:{textStyle:{color:U.secondary},pageTextStyle:{color:U.tertiary}},textStyle:{color:U.secondary},title:{textStyle:{color:U.primary},subtextStyle:{color:U.quaternary}},toolbox:{iconStyle:{borderColor:U.accent50},feature:{dataView:{backgroundColor:U1,textColor:U.primary,textareaColor:U.background,textareaBorderColor:U.border,buttonColor:U.accent50,buttonTextColor:U.neutral00}}},tooltip:{backgroundColor:U.neutral20,defaultBorderColor:U.border,textStyle:{color:U.tertiary}},dataZoom:{borderColor:U.accent10,textStyle:{color:U.tertiary},brushStyle:{color:U.backgroundTint},handleStyle:{color:U.neutral00,borderColor:U.accent20},moveHandleStyle:{color:U.accent40},emphasis:{handleStyle:{borderColor:U.accent50}},dataBackground:{lineStyle:{color:U.accent30},areaStyle:{color:U.accent20}},selectedDataBackground:{lineStyle:{color:U.accent50},areaStyle:{color:U.accent30}}},visualMap:{textStyle:{color:U.secondary},handleStyle:{borderColor:U.neutral30}},timeline:{lineStyle:{color:U.accent10},label:{color:U.tertiary},controlStyle:{color:U.accent30,borderColor:U.accent30}},calendar:{itemStyle:{color:U.neutral00,borderColor:U.neutral20},dayLabel:{color:U.tertiary},monthLabel:{color:U.secondary},yearLabel:{color:U.secondary}},matrix:{x:W1,y:W1,backgroundColor:{borderColor:U.axisLine},body:{itemStyle:{borderColor:U.borderTint}}},timeAxis:Fo(),logAxis:Fo(),valueAxis:Fo(),categoryAxis:Fo(),line:{symbol:"circle"},graph:{color:U.theme},gauge:{title:{color:U.secondary},axisLine:{lineStyle:{color:[[1,U.neutral05]]}},axisLabel:{color:U.axisLabel},detail:{color:U.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:U.background}},radar:(function(){var t=Fo();return t.axisName={color:U.axisLabel},t.axisLine.lineStyle.color=U.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:U.neutral20,textStyle:{color:U.secondary}},emphasis:{itemStyle:{color:U.neutral30}}}},sunburst:{itemStyle:{borderColor:U.background}},map:{itemStyle:{borderColor:U.border,areaColor:U.neutral10},label:{color:U.tertiary},emphasis:{label:{color:U.primary},itemStyle:{areaColor:U.highlight}},select:{label:{color:U.primary},itemStyle:{areaColor:U.highlight}}},geo:{itemStyle:{borderColor:U.border,areaColor:U.neutral10},emphasis:{label:{color:U.primary},itemStyle:{areaColor:U.highlight}},select:{label:{color:U.primary},itemStyle:{color:U.highlight}}}};Y1.categoryAxis.splitLine.show=!1;var SR=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},i={};if(q(e)){var a=vr(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};I(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var v=o[c],h=u.lastIndexOf(v);if(h>0&&h===u.length-v.length){var d=u.slice(0,h);d!=="data"&&(r.mainType=d,r[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},t.prototype.filter=function(e,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,i,a));function f(c,v,h,d){return c[h]==null||v[d||h]===c[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})(),$v=["symbol","symbolSize","symbolRotate","symbolOffset"],$1=$v.concat(["symbolKeepAspect"]),bR={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<$v.length;o++){var s=$v[o],l=t.get(s);ee(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(z({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),e.isSeriesFiltered(t))return;var u=ce(i);function f(c,v){for(var h=t.getRawValue(v),d=t.getDataParams(v),p=0;p<u.length;p++){var g=u[p];c.setItemVisual(v,g,i[g](h,d))}}return{dataEach:a?f:null}}},wR={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<$1.length;s++){var l=$1[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function TR(t,e,r){switch(r){case"color":var n=t.getItemVisual(e,"style");return n[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r)}}function xR(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function zo(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var Vt=new kr,X1={};function CR(t,e){X1[t]=e}function AR(t){return X1[t]}var DR=Math.round(Math.random()*9),MR=typeof Object.defineProperty=="function",IR=(function(){function t(){this._id="__ec_inner_"+DR++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return MR?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t})();function li(t){return isFinite(t)}function LR(t,e,r){var n=e.x==null?0:e.x,i=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=li(n)?n:0,i=li(i)?i:1,a=li(a)?a:0,o=li(o)?o:0;var s=t.createLinearGradient(n,a,i,o);return s}function PR(t,e,r){var n=r.width,i=r.height,a=Math.min(n,i),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*n+r.x,s=s*i+r.y,l=l*a),o=li(o)?o:.5,s=li(s)?s:.5,l=l>=0&&li(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function q1(t,e,r){for(var n=e.type==="radial"?PR(t,e,r):LR(t,e,r),i=e.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function ER(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function xu(t){return parseInt(t,10)}function Z1(t,e,r){var n=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(t);return(t[i]||xu(s[n])||xu(t.style[n]))-(xu(s[a])||0)-(xu(s[o])||0)||0}function kR(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:me(t)?[t]:W(t)?t:null}function Xv(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&kR(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(r=$(r,function(a){return a/i}),n/=i)}return[r,n]}var RR=new tn(!0);function Cu(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function K1(t){return typeof t=="string"&&t!=="none"}function Au(t){var e=t.fill;return e!=null&&e!=="none"}function j1(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function Q1(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function J1(t,e,r){var n=mf(e.image,e.__image,r);if(ms(n)){var i=t.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*ps),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function OR(t,e,r,n,i){var a,o=Cu(r),s=Au(r),l=r.strokePercent,u=l<1,f=!e.path;(!e.silent||u)&&f&&e.createPathProxy();var c=e.path||RR,v=e.__dirty;if(!n){var h=r.fill,d=r.stroke,p=s&&!!h.colorStops,g=o&&!!d.colorStops,m=s&&!!h.image,y=o&&!!d.image,_=void 0,S=void 0,b=void 0,w=void 0,T=void 0;(p||g)&&(T=e.getBoundingRect()),p&&(_=v?q1(t,h,T):e.__canvasFillGradient,e.__canvasFillGradient=_),g&&(S=v?q1(t,d,T):e.__canvasStrokeGradient,e.__canvasStrokeGradient=S),m&&(b=v||!e.__canvasFillPattern?J1(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=b),y&&(w=v||!e.__canvasStrokePattern?J1(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=w),p?t.fillStyle=_:m&&(b?t.fillStyle=b:s=!1),g?t.strokeStyle=S:y&&(w?t.strokeStyle=w:o=!1)}var C=e.getGlobalScale();c.setScale(C[0],C[1],e.segmentIgnoreThreshold);var D,x;t.setLineDash&&r.lineDash&&(a=Xv(e),D=a[0],x=a[1]);var A=!0;(f||v&Pi)&&(c.setDPR(t.dpr),u?c.setContext(null):(c.setContext(t),A=!1),c.reset(),e.buildPath(c,e.shape,n),c.toStatic(),e.pathUpdated()),A&&c.rebuildPath(t,u?l:1),D&&(t.setLineDash(D),t.lineDashOffset=x),n?(i.batchFill=s,i.batchStroke=o):r.strokeFirst?(o&&Q1(t,r),s&&j1(t,r)):(s&&j1(t,r),o&&Q1(t,r)),D&&t.setLineDash([])}function NR(t,e,r){var n=e.__image=mf(r.image,e.__image,e,e.onload);if(!(!n||!ms(n))){var i=r.x||0,a=r.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;t.drawImage(n,u,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,v=s-f;t.drawImage(n,u,f,c,v,i,a,o,s)}else t.drawImage(n,i,a,o,s)}}function BR(t,e,r){var n,i=r.text;if(i!=null&&(i+=""),i){t.font=r.font||Pr,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=Xv(e),a=n[0],o=n[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(Cu(r)&&t.strokeText(i,r.x,r.y),Au(r)&&t.fillText(i,r.x,r.y)):(Au(r)&&t.fillText(i,r.x,r.y),Cu(r)&&t.strokeText(i,r.x,r.y)),a&&t.setLineDash([])}}var eb=["shadowBlur","shadowOffsetX","shadowOffsetY"],tb=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function rb(t,e,r,n,i){var a=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){lt(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?kn.opacity:o}(n||e.blend!==r.blend)&&(a||(lt(t,i),a=!0),t.globalCompositeOperation=e.blend||kn.blend);for(var s=0;s<eb.length;s++){var l=eb[s];(n||e[l]!==r[l])&&(a||(lt(t,i),a=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==r.shadowColor)&&(a||(lt(t,i),a=!0),t.shadowColor=e.shadowColor||kn.shadowColor),a}function nb(t,e,r,n,i){var a=e.style,o=n?null:r&&r.style||{};if(a===o)return!1;var s=rb(t,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(lt(t,i),s=!0),K1(a.fill)&&(t.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(lt(t,i),s=!0),K1(a.stroke)&&(t.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(lt(t,i),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(lt(t,i),s=!0),t.lineWidth=u)}for(var f=0;f<tb.length;f++){var c=tb[f],v=c[0];(n||a[v]!==o[v])&&(s||(lt(t,i),s=!0),t[v]=a[v]||c[1])}return s}function FR(t,e,r,n,i){return rb(t,e.style,r&&r.style,n,i)}function ib(t,e){var r=e.transform,n=t.dpr||1;r?t.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):t.setTransform(n,0,0,n,0,0)}function zR(t,e,r){for(var n=!1,i=0;i<t.length;i++){var a=t[i];n=n||a.isZeroArea(),ib(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=n}function GR(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var ab=1,ob=2,sb=3,lb=4;function VR(t){var e=Au(t),r=Cu(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function lt(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function HR(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};qv(t,e,r),Zv(t,r)}function qv(t,e,r){var n=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~$t,e.__isRendered=!1;return}var i=e.__clipPaths,a=r.prevElClipPaths,o=e.style,s=!1,l=!1;if((!a||ER(i,a))&&(a&&(lt(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(lt(t,r),t.save(),zR(i,t,r),s=!0,r.prevElClipPaths=i)),r.allClipped){e.__dirty&=~$t,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=e instanceof pe&&e.autoBatch&&VR(o);s||GR(n,u.transform)?(lt(t,r),ib(t,e)):f||lt(t,r),e instanceof pe?(r.lastDrawType!==ab&&(l=!0,r.lastDrawType=ab),nb(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),OR(t,e,o,f,r)):e instanceof $a?(r.lastDrawType!==sb&&(l=!0,r.lastDrawType=sb),nb(t,e,u,l,r),BR(t,e,o)):e instanceof Mt?(r.lastDrawType!==ob&&(l=!0,r.lastDrawType=ob),FR(t,e,u,l,r),NR(t,e,o)):e.getTemporalDisplayables&&(r.lastDrawType!==lb&&(l=!0,r.lastDrawType=lb),UR(t,e,r)),e.innerAfterBrush(),e.afterBrush&&(f&&lt(t,r),e.afterBrush()),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Zv(t,e){lt(t,e),e.prevElClipPaths&&t.restore()}function UR(t,e,r){var n=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),qv(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}Zv(t,a);for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),qv(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}Zv(t,a),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var Kv=new IR,ub=new bi(100),fb=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function jv(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),i=n.painter.type==="svg";t.dirty&&Kv.delete(t);var a=Kv.get(t);if(a)return a;var o=le(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,Kv.set(t,s),t.dirty=!1,s;function l(u){for(var f=[r],c=!0,v=0;v<fb.length;++v){var h=o[fb[v]];if(h!=null&&!W(h)&&!q(h)&&!me(h)&&typeof h!="boolean"){c=!1;break}f.push(h)}var d;if(c){d=f.join(",")+(i?"-svg":"");var p=ub.get(d);p&&(i?u.svgElement=p:u.image=p)}var g=hb(o.dashArrayX),m=WR(o.dashArrayY),y=cb(o.symbol),_=YR(g),S=vb(m),b=!i&&cr.createCanvas(),w=i&&{tag:"g",attrs:{},key:"dcl",children:[]},T=D(),C;b&&(b.width=T.width*r,b.height=T.height*r,C=b.getContext("2d")),x(),c&&ub.put(d,b||w),u.image=b,u.svgElement=w,u.svgWidth=T.width,u.svgHeight=T.height;function D(){for(var A=1,L=0,M=_.length;L<M;++L)A=gm(A,_[L]);for(var P=1,L=0,M=y.length;L<M;++L)P=gm(P,y[L].length);A*=P;var E=S*_.length*y.length;return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(E,o.maxTileHeight))}}function x(){C&&(C.clearRect(0,0,b.width,b.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,b.width,b.height)));for(var A=0,L=0;L<m.length;++L)A+=m[L];if(A<=0)return;for(var M=-S,P=0,E=0,k=0;M<T.height;){if(P%2===0){for(var O=E/2%y.length,R=0,N=0,F=0;R<T.width*2;){for(var B=0,L=0;L<g[k].length;++L)B+=g[k][L];if(B<=0)break;if(N%2===0){var V=(1-o.symbolSize)*.5,X=R+g[k][N]*V,H=M+m[P]*V,K=g[k][N]*o.symbolSize,ae=m[P]*o.symbolSize,ke=F/2%y[O].length;Ae(X,H,K,ae,y[O][ke])}R+=g[k][N],++F,++N,N===g[k].length&&(N=0)}++k,k===g.length&&(k=0)}M+=m[P],++E,++P,P===m.length&&(P=0)}function Ae(he,Te,J,se,pt){var Re=i?1:r,ir=Ar(pt,he*Re,Te*Re,J*Re,se*Re,o.color,o.symbolKeepAspect);if(i){var gt=n.painter.renderOneToVNode(ir);gt&&w.children.push(gt)}else HR(C,ir)}}}}function cb(t){if(!t||t.length===0)return[["rect"]];if(q(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!q(t[r])){e=!1;break}if(e)return cb([t]);for(var n=[],r=0;r<t.length;++r)q(t[r])?n.push([t[r]]):n.push(t[r]);return n}function hb(t){if(!t||t.length===0)return[[0,0]];if(me(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,n=0;n<t.length;++n)if(!me(t[n])){r=!1;break}if(r)return hb([t]);for(var i=[],n=0;n<t.length;++n)if(me(t[n])){var e=Math.ceil(t[n]);i.push([e,e])}else{var e=$(t[n],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function WR(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(me(t)){var e=Math.ceil(t);return[e,e]}var r=$(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}function YR(t){return $(t,function(e){return vb(e)})}function vb(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}var $R=Lc(XR);function XR(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=jv(s,e)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=jv(i,e)}}})}var qR=1,ZR=800,KR=900,jR=920,QR=1e3,JR=2e3,db=5e3,pb=1e3,eO=1100,Qv=2e3,gb=3e3,tO=4e3,Du=4500,rO=4600,nO=5e3,iO=6e3,mb=7e3,aO={PROCESSOR:{SERIES_FILTER:ZR,AXIS_STATISTICS:jR,FILTER:QR,STATISTIC:db,STATISTICS:db},VISUAL:{LAYOUT:pb,PROGRESSIVE_LAYOUT:eO,GLOBAL:Qv,CHART:gb,POST_CHART_LAYOUT:rO,COMPONENT:tO,BRUSH:nO,CHART_ITEM:Du,ARIA:iO,DECAL:mb}},Fe="__flagInMainProcess",Mu="__mainProcessVersion",He="__pendingUpdate",Jv="__needsUpdateStatus",yb=/^[a-zA-Z0-9_]+$/,ed="__connectUpdateStatus",_b=0,oO=1,sO=2;function Sb(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return wb(this,t,e)}}function bb(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return wb(this,t,e)}}function wb(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),kr.prototype[e].apply(t,r)}var Tb=(function(t){G(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(kr),xb=Tb.prototype;xb.on=bb("on"),xb.off=bb("off");var ui,td,Iu,$r,Lu,rd,nd,ca,ha,Cb,Ab,id,Db,Pu,Mb,Ib,Ht,Lb,va,Pb=(function(t){G(e,t);function e(r,n,i){var a=t.call(this,new SR)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},a.__v_skip=!0,a._dom=r;var o="canvas",s="auto",l=!1;a[Mu]=1,i.ssr&&Bk(function(v){var h=ue(v),d=h.dataIndex;if(d!=null){var p=te();return p.set("series_index",h.seriesIndex),p.set("data_index",d),h.ssrType&&p.set("ssr_type",h.ssrType),p}});var u=a._zr=_1(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Z(i.useDirtyRect,l),useCoarsePointer:Z(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=_v(de(u.flush,u),17),a._updateTheme(n),a._locale=XI(i.locale||S0),a._coordSysMgr=new wh;var f=a._api=Mb(a);function c(v,h){return v.__prio-h.__prio}return yu(ku,c),yu(ld,c),a._scheduler=new z1(a,f,ld,ku),a._messageCenter=new Tb,a._initEvents(),a.resize=de(a.resize,a),u.animation.on("frame",a._onframe,a),Cb(u,a),Ab(u,a),vs(a),a}return e.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,n=this._model,i=this._api;if(Lb(this),this[He]){var a=this[He].silent;this[Fe]=!0,va(this);try{ui(this),$r.update.call(this,null,this[He].updateParams)}catch(l){throw this[Fe]=!1,this[He]=null,l}this._zr.flush(),this[Fe]=!1,this[He]=null,ca.call(this,a),ha.call(this,a)}else if(r.unfinished){var o=qR;do{r.unfinished=!1;var s=cr.getTime();r.performSeriesTasks(n),r.performDataProcessorTasks(n),rd(this,n),r.performVisualTasks(n),Pu(this,this._model,i,"remain",{}),o-=cr.getTime()-s}while(o>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,i){if(!this[Fe]){if(this._disposed){this.id;return}var a,o,s;if(j(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Fe]=!0,va(this),!this._model||n){var l=new Yk(this._api),u=this._theme,f=this._model=new Uv;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},ud);var c={seriesTransition:s,optionChanged:!0};if(i)this[He]={silent:a,updateParams:c},this[Fe]=!1,this.getZr().wakeUp();else{try{ui(this),$r.update.call(this,null,c)}catch(v){throw this[He]=null,this[Fe]=!1,v}this._ssr||this._zr.flush(),this[He]=null,this[Fe]=!1,ca.call(this,a),ha.call(this,a)}}},e.prototype.setTheme=function(r,n){if(!this[Fe]){if(this._disposed){this.id;return}var i=this._model;if(i){var a=n&&n.silent,o=null;this[He]&&(a==null&&(a=this[He].silent),o=this[He].updateParams,this[He]=null),this[Fe]=!0,va(this);try{this._updateTheme(r),i.setTheme(this._theme),ui(this),$r.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Fe]=!1,s}this[Fe]=!1,ca.call(this,a),ha.call(this,a)}}},e.prototype._updateTheme=function(r){q(r)&&(r=Eb[r]),r&&(r=oe(r),r&&R1(r,!0),this._theme=r)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ie.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,n=r.storage.getDisplayList();return I(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;I(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return I(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(kb[i]){var l=s,u=s,f=-s,c=-s,v=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();I(Go,function(_,S){if(_.group===i){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(oe(r)),w=_.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),f=o(w.right,f),c=o(w.bottom,c),v.push({dom:b,left:w.left,top:w.top})}}),l*=h,u*=h,f*=h,c*=h;var d=f-l,p=c-u,g=cr.createCanvas(),m=_1(g,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:p}),n){var y="";return I(v,function(_){var S=_.left-l,b=_.top-u;y+='<g transform="translate('+S+","+b+')">'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new De({shape:{x:0,y:0,width:d,height:p},style:{fill:r.connectedBackgroundColor}})),I(v,function(_){var S=new Mt({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});m.add(S)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n,i){return Lu(this,"convertToPixel",r,n,i)},e.prototype.convertToLayout=function(r,n,i){return Lu(this,"convertToLayout",r,n,i)},e.prototype.convertFromPixel=function(r,n,i){return Lu(this,"convertFromPixel",r,n,i)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Cc(i,r);return I(o,function(s,l){l.indexOf("Models")>=0&&I(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(n,u))}},this)},this),!!a},e.prototype.getVisual=function(r,n){var i=this._model,a=Cc(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?TR(s,l,n):xR(s,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;I(lO,function(i){var a=function(o){var s=r.getModel(),l=o.target,u,f=i==="globalout";if(f?u={}:l&&zo(l,function(p){var g=ue(p);if(g&&g.dataIndex!=null){var m=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=m&&m.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return u=z({},g.eventData),!0},!0),u){var c=u.componentType,v=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",v=u.seriesIndex);var h=c&&v!=null&&s.getComponent(c,v),d=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=i,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:d},r.trigger(i,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(i,a,r)});var n=this._messageCenter;I(sd,function(i,a){n.on(a,function(o){r.trigger(a,o)})}),$E(n,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&wm(this.getDom(),cd,"");var n=this,i=n._api,a=n._model;I(n._componentsViews,function(o){o.dispose(a,i)}),I(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Go[n.id]},e.prototype.resize=function(r){if(!this[Fe]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[He]&&(a==null&&(a=this[He].silent),i=!0,this[He]=null),this[Fe]=!0,va(this);try{i&&ui(this),$r.update.call(this,{type:"resize",animation:z({duration:0},r&&r.animation)})}catch(o){throw this[Fe]=!1,o}this[Fe]=!1,ca.call(this,a),ha.call(this,a)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(j(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!fd[r]){var i=fd[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=z({},r);return n.type=od[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(j(n)||(n={silent:!!n}),!!Eu[r.type]&&this._model){if(this[Fe]){this._pendingActions.push(r);return}var i=n.silent;nd.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&ie.browser.weChat&&this._throttledZrFlush(),ca.call(this,i),ha.call(this,i)}},e.prototype.updateLabelLayout=function(){Vt.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){ui=function(c){d2(c._model);var v=c._scheduler;v.restorePipelines(c._zr,c._model),v.prepareStageTasks(),td(c,!0),td(c,!1),v.plan()},td=function(c,v){for(var h=c._model,d=c._scheduler,p=v?c._componentsViews:c._chartsViews,g=v?c._componentsMap:c._chartsMap,m=c._zr,y=c._api,_=0;_<p.length;_++)p[_].__alive=!1;v?h.eachComponent(function(w,T){w!=="series"&&S(T)}):h.eachSeries(S);function S(w){var T=w.__requireNewView;w.__requireNewView=!1;var C="_ec_"+w.id+"_"+w.type,D=!T&&g[C];if(!D){var x=vr(w.type),A=v?bt.getClass(x.main,x.sub):je.getClass(x.sub);D=new A,D.init(h,y),g[C]=D,p.push(D),m.add(D.group)}w.__viewId=D.__id=C,D.__alive=!0,D.__model=w,D.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!v&&d.prepareView(D,w,h,y)}for(var _=0;_<p.length;){var b=p[_];b.__alive?_++:(!v&&b.renderTask.dispose(),m.remove(b.group),b.dispose(h,y),p.splice(_,1),g[b.__id]===b&&delete g[b.__id],b.__id=b.group.__ecComponentInfo=null)}},Iu=function(c,v,h,d,p){var g=c._model;if(g.setUpdatePayload(h),!d){I([].concat(c._componentsViews).concat(c._chartsViews),S);return}var m=hD(h,d,p),y=h.excludeSeriesId,_;y!=null&&(_=te(),I(nt(y),function(b){var w=wr(b,null);w!=null&&_.set(w,!0)})),g&&g.eachComponent(m,function(b){var w=_&&_.get(b.id)!=null;if(!w)if(jm(h))if(b instanceof ot)h.type===$n&&!h.notBlur&&!b.get(["emphasis","disabled"])&&kD(b,h,c._api);else{var T=Gc(b.mainType,b.componentIndex,h.name,c._api),C=T.focusSelf,D=T.dispatchers;h.type===$n&&C&&!h.notBlur&&zc(b.mainType,b.componentIndex,c._api),D&&I(D,function(x){h.type===$n?al(x):ol(x)})}else Uc(h)&&b instanceof ot&&(ND(b,h,c._api),qm(b),Ht(c))},c),g&&g.eachComponent(m,function(b){var w=_&&_.get(b.id)!=null;w||S(c[d==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},c);function S(b){b&&b.__alive&&b[v]&&b[v](b.__model,g,c._api,h)}},$r={prepareAndUpdate:function(c){ui(this),$r.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,v){var h=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(h){p2(h),h.setUpdatePayload(c),m.restoreData(h,c),m.performSeriesTasks(h),g.create(h,d),Vt.trigger("coordsys:aftercreate",h,d),m.performDataProcessorTasks(h,c),rd(this,h),g.update(h,d),n(h),m.performVisualTasks(h,c);var y=h.get("backgroundColor")||"transparent";p.setBackgroundColor(y);var _=h.get("darkMode");_!=null&&_!=="auto"&&p.setDarkMode(_),id(this,h,d,c,v),Vt.trigger("afterupdate",h,d)}},updateTransform:function(c){var v=this,h=v._model,d=v._api;if(h){h.setUpdatePayload(c);var p=[];h.eachComponent(function(m,y){if(m!==Im){var _=v.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(y,h,d,c);S&&S.update&&p.push(_)}else p.push(_)}});var g=te();h.eachSeries(function(m){var y=v._chartsMap[m.__viewId],_=m.pipelineContext;if(y.updateTransform&&!_.progressiveRender){var S=y.updateTransform(m,h,d,c);S&&S.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),v._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:g}),Pu(v,h,d,c,{},g),Vt.trigger("afterupdate",h,d)}},updateView:function(c){var v=this._model;v&&(v.setUpdatePayload(c),je.markUpdateMethod(c,"updateView"),n(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0}),id(this,v,this._api,c,{}),Vt.trigger("afterupdate",v,this._api))},updateVisual:function(c){var v=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(d){d.getData().clearAllVisual()}),je.markUpdateMethod(c,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,p){if(d!=="series"){var g=v.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,h,v._api,c)}}),h.eachSeries(function(d){var p=v._chartsMap[d.__viewId];p.updateVisual(d,h,v._api,c)}),Vt.trigger("afterupdate",h,this._api))},updateLayout:function(c){$r.update.call(this,c)}};function r(c,v,h,d,p){if(c._disposed){c.id;return}for(var g=c._model,m=c._coordSysMgr.getCoordinateSystems(),y,_=Cc(g,h),S=0;S<m.length;S++){var b=m[S];if(b[v]&&(y=b[v](g,_,d,p))!=null)return y}}Lu=r,rd=function(c,v){var h=c._chartsMap,d=c._scheduler;v.eachSeries(function(p){d.updateStreamModes(p,h[p.__viewId])})},nd=function(c,v){var h=this,d=this.getModel(),p=c.type,g=c.escapeConnect,m=Eu[p],y=(m.update||"update").split(":"),_=y.pop(),S=y[0]!=null&&vr(y[0]);this[Fe]=!0,va(this);var b=[c],w=!1;c.batch&&(w=!0,b=$(c.batch,function(k){return k=le(z({},k),c),k.batch=null,k}));var T=[],C,D=[],x=m.nonRefinedEventType,A=Uc(c),L=jm(c);if(L&&Xm(this._api),I(b,function(k){var O=m.action(k,d,h._api);if(m.refineEvent?D.push(O):C=O,C=C||z({},k),C.type=x,T.push(C),L){var R=Ac(c),N=R.queryOptionMap,F=R.mainTypeSpecified,B=F?N.keys()[0]:"series";Iu(h,_,k,B),Ht(h)}else A?(Iu(h,_,k,"series"),Ht(h)):S&&Iu(h,_,k,S.main,S.sub)}),_!=="none"&&!L&&!A&&!S)try{this[He]?(ui(this),$r.update.call(this,c),this[He]=null):$r[_].call(this,c)}catch(k){throw this[Fe]=!1,k}if(w?C={type:x,escapeConnect:g,batch:T}:C=T[0],this[Fe]=!1,!v){var M=void 0;if(m.refineEvent){var P=m.refineEvent(D,c,d,this._api).eventContent;Wt(j(P)),M=le({type:m.refinedEventType},P),M.fromAction=c.type,M.fromActionPayload=c,M.escapeConnect=!0}var E=this._messageCenter;E.trigger(C.type,C),M&&E.trigger(M.type,M)}},ca=function(c){for(var v=this._pendingActions;v.length;){var h=v.shift();nd.call(this,h,c)}},ha=function(c){!c&&this.trigger("updated")},Cb=function(c,v){c.on("rendered",function(h){v.trigger("rendered",h),c.animation.isFinished()&&!v[He]&&!v._scheduler.unfinished&&!v._pendingActions.length?v.trigger("finished"):c.refresh()})},Ab=function(c,v){c.on("mouseover",function(h){var d=h.target,p=zo(d,Hc);p&&(RD(p,h,v._api),Ht(v))}).on("mouseout",function(h){var d=h.target,p=zo(d,Hc);p&&(OD(p,h,v._api),Ht(v))}).on("click",function(h){var d=h.target,p=zo(d,function(y){return ue(y).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=ue(p);v._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function n(c){c.clearColorPalette(),c.eachSeries(function(v){v.clearColorPalette()})}function i(c){var v=[],h=[],d=!1;if(c.eachComponent(function(y,_){var S=_.get("zlevel")||0,b=_.get("z")||0,w=_.getZLevelKey();d=d||!!w,(y==="series"?h:v).push({zlevel:S,z:b,idx:_.componentIndex,type:y,key:w})}),d){var p=v.concat(h),g,m;yu(p,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),I(p,function(y){var _=c.getComponent(y.type,y.idx),S=y.zlevel,b=y.key;g!=null&&(S=Math.max(g,S)),b?(S===g&&b!==m&&S++,m=b):m&&(S===g&&S++,m=""),g=S,_.setZLevel(S)})}}id=function(c,v,h,d,p){i(v),Db(c,v,h,d,p),I(c._chartsViews,function(g){g.__alive=!1}),Pu(c,v,h,d,p),I(c._chartsViews,function(g){g.__alive||g.remove(v,h)})},Db=function(c,v,h,d,p,g){I(g||c._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,v,h,d),l(y,m),f(y,m)})},Pu=function(c,v,h,d,p,g){var m=c._scheduler;p=z(p||{},{updatedSeries:v.getSeries()}),Vt.trigger("series:beforeupdate",v,h,p);var y=!1;v.eachSeries(function(_){var S=c._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;m.updatePayload(b,d),u(_,S),g&&g.get(_.uid)&&b.dirty(),b.perform(m.getPerformArgs(b))&&(y=!0),S.group.silent=!!_.get("silent"),s(_,S),qm(_)}),m.unfinished=y||m.unfinished,Vt.trigger("series:layoutlabels",v,h,p),Vt.trigger("series:transition",v,h,p),v.eachSeries(function(_){var S=c._chartsMap[_.__viewId];l(_,S),f(_,S)}),o(c,v),Vt.trigger("series:afterupdate",v,h,p)},Ht=function(c){c[Jv]=!0,c.getZr().wakeUp()},va=function(c){c[Mu]=(c[Mu]+1)%1e6},Lb=function(c){c[Jv]&&(c.getZr().storage.traverse(function(v){no(v)||a(v)}),c[Jv]=!1)};function a(c){for(var v=[],h=c.currentStates,d=0;d<h.length;d++){var p=h[d];p==="emphasis"||p==="blur"||p==="select"||v.push(p)}c.selected&&c.states.select&&v.push("select"),c.hoverState===Js&&c.states.emphasis?v.push("emphasis"):c.hoverState===Qs&&c.states.blur&&v.push("blur"),c.useStates(v)}function o(c,v){var h=c._zr;if(h.painter.type==="canvas"){var d=h.storage,p=0;d.traverse(function(m){m.isGroup||p++});var g=p>Z(v.get("hoverLayerThreshold"),w1.hoverLayerThreshold)&&!ie.node&&!ie.worker;(c._usingTHL||g)&&(v.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=c._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(_){var S=_.states.emphasis;S&&S.hoverLayer!==Qc&&(S.hoverLayer=g?py:dy)})}}),c._usingTHL=g)}}function s(c,v){var h=c.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function l(c,v){if(!c.preventAutoZ){var h=Ty(c);v.eachRendered(function(d){return xy(d,h.z,h.zlevel),!0})}}function u(c,v){v.eachRendered(function(h){if(!no(h)){var d=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,v){var h=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),p=h.get("duration"),g=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;v.eachRendered(function(m){if(m.states&&m.states.emphasis){if(no(m))return;if(m instanceof pe&&HD(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=g;var _=m.getTextContent(),S=m.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}m.__dirty&&a(m)}})}Mb=function(c){return new((function(v){G(h,v);function h(){return v!==null&&v.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},h.prototype.enterEmphasis=function(d,p){al(d,p),Ht(c)},h.prototype.leaveEmphasis=function(d,p){ol(d,p),Ht(c)},h.prototype.enterBlur=function(d){ED(d),Ht(c)},h.prototype.leaveBlur=function(d){Um(d),Ht(c)},h.prototype.enterSelect=function(d){Wm(d),Ht(c)},h.prototype.leaveSelect=function(d){Ym(d),Ht(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},h.prototype.getECUpdateCycleVersion=function(){return c[Mu]},h.prototype.usingTHL=function(){return c._usingTHL},h})(Em))(c)},Ib=function(c){function v(h,d){for(var p=0;p<h.length;p++){var g=h[p];g[ed]=d}}I(od,function(h,d){c._messageCenter.on(d,function(p){if(kb[c.group]&&c[ed]!==_b){if(p&&p.escapeConnect)return;var g=c.makeActionFromEvent(p),m=[];I(Go,function(y){y!==c&&y.group===c.group&&m.push(y)}),v(m,_b),I(m,function(y){y[ed]!==oO&&y.dispatchAction(g)}),v(m,sO)}})})}})(),e})(kr),ad=Pb.prototype;ad.on=Sb("on"),ad.off=Sb("off"),ad.one=function(t,e,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),n.off(t,i)}this.on.call(this,t,i,r)};var lO=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function r5(t){}var Eu={},od={},sd={},ld=[],ud=[],ku=[],Eb={},fd={},Go={},kb={},uO=+new Date-0,cd="_echarts_instance_";function fO(t,e,r){var n=!(r&&r.ssr);if(n){var i=cO(t);if(i)return i}var a=new Pb(t,e,r);return a.id="ec_"+uO++,Go[a.id]=a,n&&wm(t,cd,a.id),Ib(a),Vt.trigger("afterinit",a),a}function cO(t){return Go[vD(t,cd)]}function Rb(t,e){Eb[t]=e}function Ob(t){fe(ud,t)<0&&ud.push(t)}function Nb(t,e){vd(ld,t,e,JR)}function hO(t){hd("afterinit",t)}function vO(t){hd("afterupdate",t)}function hd(t,e){Vt.on(t,e)}function da(t,e,r){var n,i,a,o,s;ee(e)&&(r=e,e=""),j(t)?(n=t.type,i=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),a=t.refineEvent):(n=t,i=e);function l(f){return f.toLowerCase()}i=l(i||n);var u=a?l(n):i;Eu[n]||(Wt(yb.test(n)&&yb.test(i)),a&&Wt(i!==n),Eu[n]={actionType:n,refinedEventType:i,nonRefinedEventType:u,update:o,action:r,refineEvent:a},sd[i]=1,a&&s&&(sd[u]=1),od[u]=n)}function dO(t,e){wh.register(t,e)}function pO(t,e){vd(ku,t,e,pb,"layout")}function fi(t,e){vd(ku,t,e,gb,"visual")}var Bb=[];function vd(t,e,r,n,i,a){if((ee(e)||j(e))&&(r=e,e=n),!(fe(Bb,r)>=0)){Bb.push(r);var o=z1.wrapStageHandler(r,i);o.__prio=e,o.__raw=r,t.push(o)}}function Fb(t,e){fd[t]=e}function gO(t,e,r){var n=AR("registerMap");n&&n(t,e,r)}var mO=AL;fi(Qv,sR),fi(Du,lR),fi(Du,uR),fi(Qv,bR),fi(Du,wR),fi(mb,$R),Ob(R1),Nb(KR,nR),Fb("default",fR),da({type:$n,event:$n,update:$n},We),da({type:tl,event:tl,update:tl},We),da({type:rl,event:Oc,update:rl,action:We,refineEvent:dd,publishNonRefinedEvent:!0}),da({type:Rc,event:Oc,update:Rc,action:We,refineEvent:dd,publishNonRefinedEvent:!0}),da({type:nl,event:Oc,update:nl,action:We,refineEvent:dd,publishNonRefinedEvent:!0});function dd(t,e,r,n){return{eventContent:{selected:BD(r),isFromClick:e.isFromClick||!1}}}Rb("default",{}),Rb("dark",Y1);var zb=[],yO={registerPreprocessor:Ob,registerProcessor:Nb,registerPostInit:hO,registerPostUpdate:vO,registerUpdateLifecycle:hd,registerAction:da,registerCoordinateSystem:dO,registerLayout:pO,registerVisual:fi,registerTransform:mO,registerLoading:Fb,registerMap:gO,registerImpl:CR,PRIORITY:aO,ComponentModel:ye,ComponentView:bt,SeriesModel:ot,ChartView:je,registerComponentModel:function(t){ye.registerClass(t)},registerComponentView:function(t){bt.registerClass(t)},registerSeriesModel:function(t){ot.registerClass(t)},registerChartView:function(t){je.registerClass(t)},registerCustomSeries:function(t,e){},registerSubTypeDefaulter:function(t,e){ye.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Ok(t,e)}};function rr(t){if(W(t)){I(t,function(e){rr(e)});return}fe(zb,t)>=0||(zb.push(t),ee(t)&&(t={install:t}),t.install(yO))}var _O=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r,n){return Ml(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:Y.color.primary}},universalTransition:{divideShape:"clone"}},e})(ot),Gb=4,SO=(function(){function t(){}return t})(),bO=(function(t){G(e,t);function e(r){var n=t.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new SO},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(r){r&&!r.contentRetained&&this.reset()},e.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]<Gb,f=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<i.length;){var v=i[c++],h=i[c++];isNaN(v)||isNaN(h)||f&&!f.contain(v,h)||(s.x=v-a[0]/2,s.y=h-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},e.prototype.afterBrush=function(){var r=this.shape,n=r.points,i=r.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.fillRect(l-i[0]/2,u-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(r,n){for(var i=this.shape,a=i.points,o=i.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var f=u*2,c=a[f]-s/2,v=a[f+1]-l/2;if(r>=c&&n>=v&&r<=c+s&&n<=v+l)return u}return-1},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,f=-1/0,c=-1/0,v=0;v<i.length;){var h=i[v++],d=i[v++];l=Math.min(h,l),f=Math.max(h,f),u=Math.min(d,u),c=Math.max(d,c)}r=this._rect=new ne(l-o/2,u-s/2,f-l+o,c-u+s)}return r},e})(pe),wO=(function(){function t(){this.group=new Ce}return t.prototype.updateData=function(e,r){this._clear(),this._data=e;var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,r)},t.prototype.updateLayout=function(e){var r=this._data;if(r){var n=r.getLayout("points");this.group.eachChild(function(i){if(i.startIndex!=null){var a=(i.endIndex-i.startIndex)*2,o=i.startIndex*4*2;n=new Float32Array(n.buffer,o,a)}i.setShape("points",n),i.reset(),i.stopAnimation()})}},t.prototype.incrementalPrepareUpdate=function(e){this._clear()},t.prototype.incrementalUpdate=function(e,r,n,i){var a=this._newAdded[0],o=r.getLayout("points"),s=a&&a.shape.points;if(s&&s.length<2e4){var l=s.length,u=new Float32Array(l+o.length);u.set(s),u.set(o,l),a.endIndex=e.end,a.setShape({points:u})}else{this._newAdded=[];var f=this._create();f.startIndex=e.start,f.endIndex=e.end,f.incremental=n,f.setShape({points:o}),this._setCommon(f,r,i)}},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new bO({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},t.prototype._setCommon=function(e,r,n){var i=r.hostModel;n=n||{};var a=r.getVisual("symbolSize");e.setShape("size",a instanceof Array?a:[a,a]),e.softClipShape=n.clipShape||null,e.symbolProxy=Ar(r.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<Gb;e.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=ue(e);u.seriesIndex=i.seriesIndex,e.on("mousemove",function(f){u.dataIndex=null;var c=e.hoverDataIdx;c>=0&&(u.dataIndex=c+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t})(),TO=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,pd(r)),this._finished=!0},e.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},e.prototype.incrementalRender=function(r,n,i){this._symbolDraw.incrementalUpdate(r,n.getData(),Dm(n),pd(n)),this._finished=r.end===n.getData().count()},e.prototype.updateTransform=function(r,n,i){var a=r.getData();if(this.group.dirty(),this._finished){var o=ov("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(pd(r))}else return{update:!0}},e.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},e.prototype._updateSymbolDraw=function(r,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new wO:new s_,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e})(je);function pd(t){return{clipShape:pP(t)}}var Vb=(function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t})(),gd=(function(t){G(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Pt).models[0]},e.type="cartesian2dAxis",e})(ye);Ut(gd,Vb);var Hb={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:"auto",onZeroAxisIndex:null,lineStyle:{color:Y.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:Y.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Y.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[Y.color.backgroundTint,Y.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Y.color.neutral00,borderColor:Y.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},xO=be({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},Hb),md=be({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Y.color.axisMinorSplitLine,width:1}}},Hb),CO=be({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},md),AO=le({logBase:10},md);const Ub={category:xO,value:md,time:CO,log:AO};function Wb(t,e,r,n){I(k_,function(i,a){var o=be(be({},Ub[a],!0),n,!0),s=(function(l){G(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var v=_o(this),h=v?So(f):{},d=c.getTheme();be(f,d.get(a+"Axis")),be(f,this.getDefaultOption()),f.type=Yb(f),v&&fn(f,h,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Qh.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var c=au();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=e+"Axis."+a,u.defaultOption=o,u})(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",Yb)}function Yb(t){return t.type||(t.data?"category":"value")}var DO=(function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return $(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Ue(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t})(),Ru=["x","y"];function $b(t){return(t.type==="interval"||t.type==="time")&&!kl(t)}var MO=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Wr,r.dimensions=Ru,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!$b(r)||!$b(n))){var i=Wl(r,null),a=Wl(n,null),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,v=o[0]-i[0]*f,h=o[1]-a[0]*c,d=this._transform=[f,0,0,c,v,h];this._invTransform=Pa([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new ne(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return wt(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},e.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(r,n,i){if(i=i||[],this._invTransform)return wt(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,l=Math.max(i[0],i[1])-o+r;return new ne(a,o,s,l)},e})(DO);function Xb(t,e){var r=t.scale,n=t.model,i=MS(r,n,n.ecModel,t),a=ea(r),o=ea(e)?e.intervalStub:e,s=a?r.intervalStub:r,l=r.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=u.length-1,v,h,d;if(c===1)v=h=0,d=1;else if(c===2){var p=Be(u[0].value-u[1].value),g=Be(u[1].value-u[2].value);v=h=0,p===g?d=2:(d=1,p<g?v=p/g:h=g/p)}else{var m=o.getConfig().interval;v=(1-(u[0].value-f[0].value)/m)%1,h=(1-(f[c].value-u[c].value)/m)%1,d=c-(v?1:0)-(h?1:0)}var y=i.zoomFixMM,_=y[0]||y[1],S=[i.fixMM[0]||_,i.fixMM[1]||_],b=r.getExtent(),w=s.getExtent(),T=T_(w,S),C,D,x,A,L,M;function P(V){for(var X=50,H=0;H<X&&!V();H++)x=a?x*ge(l,2):wP(x),A=ai(x)}function E(){C=ve(M-x*v,A)}function k(){D=ve(L+x*h,A)}function O(){M=v?ve(C+x*v,A):C}function R(){L=h?ve(D-x*h,A):D}if(S[0]&&S[1]){C=T[0],D=T[1],x=(D-C)/(d+v+h);var N=t.getExtent(),F=Be(N[1]-N[0]);A=$A([D,C],F,.5/d),O(),R(),Lt(A)&&(x=ve(x,A))}else{var B=T[1]-T[0];x=a?ge(vm(B),1):wc(B/d,dm),A=ai(x),S[0]?(C=T[0],P(function(){if(O(),L=ve(M+x*d,A),k(),D>=T[1])return!0})):S[1]?(D=T[1],P(function(){if(R(),M=ve(L-x*d,A),E(),C<=T[0])return!0})):P(function(){M=ve(Xa(T[0]/x)*x,A),L=ve(Hn(T[1]/x)*x,A);var V=Or((L-M)/x);if(V<=d){var X=d-V,H=void 0,K=i.incl0||a;if(K&&T[0]===0)H=[0,X];else if(K&&T[1]===0)H=[X,0];else{var ae=Hn(X/2);H=X%2===0?[ae,ae]:C+D<T[0]+T[1]?[ae,ae+1]:[ae+1,ae]}if(M=ve(M-x*H[0],A),L=ve(L+x*H[1],A),E(),k(),C<=T[0]&&D>=T[1])return!0}})}N_(r,S,w,[C,D],b,{interval:x,intervalCount:d,intervalPrecision:A,niceExtent:[M,L]})}function qb(t,e){var r=ea(t),n=r?t.intervalStub:t,i=e.fixMinMax||[],a=r?t.getExtent():null,o=n.getExtent(),s=T_(o,i,e.rawExtentResult);n.setExtent(s[0],s[1]),s=n.getExtent();var l=r?LO(n,e):IO(n,e),u=l.intervalPrecision,f=l.interval,c=e.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=ai(c)),i[0]||(s[0]=ve(Hn(s[0]/f)*f,u)),i[1]||(s[1]=ve(Xa(s[1]/f)*f,u)),c!=null&&(l.niceExtent=s.slice()),N_(t,i,o,s,a,l)}function IO(t,e){var r=ql(e.splitNumber,5),n=Yl(t),i=e.minInterval,a=e.maxInterval,o=wc(n/r,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=ai(o),l=t.getExtent(),u=[ve(Xa(l[0]/o)*o,s),ve(Hn(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function LO(t,e){var r=ql(e.splitNumber,10),n=t.getExtent(),i=Yl(t),a=ge(vm(i),1),o=r/i*a;o<=.5&&(a*=10);var s=ai(a),l=[ve(Xa(n[0]/a)*a,s),ve(Hn(n[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:l}}function Zb(t){var e=t.scale,r=t.model,n=r.axis,i=r.ecModel;PO(e,r,n,i)}function PO(t,e,r,n,i){var a=MS(t,e,n,r),o=$l(t)||ev(t);EO(t,{splitNumber:e.get("splitNumber"),fixMinMax:a.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:a}),r&&n&&hE(r,t,a,n)}function EO(t,e){kO[t.type](t,e)}var kO={interval:qb,log:qb,time:EP,ordinal:We},Kb=[[3,1],[0,2]],RO=(function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Ru,this._initCartesian(e,r,n),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var n=this._axesMap;I(this._axesList,function(o){AS(o,bS);var s=o.scale;Qt(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function i(o){for(var s=ce(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):Zb(f)}I(l,function(c){NO(c,c.__alignTo)?Zb(c):Xb(c,c.__alignTo.scale)})}i(n.x),i(n.y);var a={};I(n.x,function(o){jb(n,"y",o,a)}),I(n.y,function(o){jb(n,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,n){var i=Ji(e,r),a=this._rect=Gr(e.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(ew(o,a),!n){var u=FO(a,s,o,l,r),f=void 0;if(l)f=rw(a.clone(),"axisLabel",null,a,o,u,i);else{var c=zO(e,a,i),v=c.outerBoundsRect,h=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;v&&(f=rw(v,h,d,a,o,u,i))}nw(a,o,Jt.determine,null,f,i),I(this._coordsList,function(p){p.calcAffineTransform()})}},t.prototype.getAxis=function(e,r){var n=this._axesMap[e];if(n!=null)return n[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var n="x"+e+"y"+r;return this._coordsMap[n]}j(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===e||a[i].getAxis("y").index===r)return a[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,n=e.xAxisModel||r&&r.getReferringComponents("xAxis",Pt).models[0],i=e.yAxisModel||r&&r.getReferringComponents("yAxis",Pt).models[0],a=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,fe(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,I(s.x,function(f,c){I(s.y,function(v,h){var d="x"+c+"y"+h,p=new MO(d);p.master=i,p.model=e,i._coordsMap[d]=p,i._coordsList.push(p),p.addAxis(f),p.addAxis(v)})}),Jb(s.x),Jb(s.y);function u(f){return function(c,v){if(OO(c,e)){var h=c.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var d=RP(c),p=new P2(f,OP(c,d),[0,0],d,h);p.onBand=B_(p.scale,c),p.inverse=c.get("inverse"),c.axis=p,p.model=c,p.grid=a,p.index=v,a._axesList.push(p),s[f][v]=p,l[f]++}}}},t.prototype.getTooltipAxes=function(e){var r=[],n=[];return I(this.getCartesians(),function(i){var a=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(a);fe(r,a)<0&&r.push(a),fe(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},t.create=function(e,r){var n=[];return e.eachComponent("grid",function(i,a){var o=new t(i,e,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o),I(o._axesList,function(s){sE(s,t.dimIdxMap)})}),e.eachSeries(function(i){var a,o;xI({targetModel:i,coordSysType:Wr,coordSysProvider:s});function s(){var l=tE(i),u=l.xAxisModel,f=l.yAxisModel;a=u.axis,o=f.axis;var c=u.getCoordSysModel(),v=c.coordinateSystem;return v.getCartesian(u.componentIndex,f.componentIndex)}a&&o&&(fv(a,i,Wr),fv(o,i,Wr))},this),n},t.dimensions=Ru,t.dimIdxMap=yh(Ru),t})();function OO(t,e){return t.getCoordSysModel()===e}function jb(t,e,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=t[e],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)Qb(s,i[l])&&(a=i[l]);else for(var u in i)if(tt(i,u)&&Qb(s,i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function Qb(t,e){if(!e)return!1;var r=e.scale,n=NP(r,0),i=e&&e.type!=="category"&&e.type!=="time"&&n!==nv;return i&&t==="auto"&&GP(e)&&(i=!1),i}function Jb(t){for(var e=ce(t),r,n=[],i=e.length-1;i>=0;i--){var a=t[+e[i]];w_(a.scale)&&O_(a.model,a.type)==null&&(a.model.get("alignTicks")&&a.model.get("interval")==null?n.push(a):r=a)}r||(r=n.pop()),r&&I(n,function(o){o.__alignTo=r})}function NO(t,e){return kl(t.scale)||kl(e.scale)||e.scale.getTicks().length<2}function BO(t,e){var r=t.getExtent(),n=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(i){return i+e}:function(i){return n-i+e},t.toLocalCoord=t.dim==="x"?function(i){return i-e}:function(i){return n-i+e}}function ew(t,e){I(t.x,function(r){return tw(r,e.x,e.width)}),I(t.y,function(r){return tw(r,e.y,e.height)})}function tw(t,e,r){var n=[0,r],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),BO(t,e)}function rw(t,e,r,n,i,a,o){nw(n,i,Jt.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(n,0,NaN),f(n,1,NaN);var l=Up(s,function(v){return v>0})==null;return gl(n,s,!0,!0,r),ew(i,n),l;function u(v){I(i[sn[v]],function(h){if(xo(h.model)){var d=a.ensureRecord(h.model),p=d.labelInfoList;if(p)for(var g=0;g<p.length;g++){var m=p[g],y=h.scale.normalize(Co(h.scale,oi(m.label).labelInfo.tick));y=v===1?1-y:y,f(m.rect,v,y),f(m.rect,1-v,NaN)}var _=d.nameLayout;if(_){var y=ta(d.nameLocation)?.5:NaN;f(_.rect,v,y),f(_.rect,1-v,NaN)}}})}function f(v,h,d){var p=t[sn[h]]-v[sn[h]],g=v[Wi[h]]+v[sn[h]]-(t[Wi[h]]+t[sn[h]]);p=c(p,1-d),g=c(g,d);var m=Kb[h][0],y=Kb[h][1];s[m]=ge(s[m],p),s[y]=ge(s[y],g)}function c(v,h){return v>0&&!Aa(h)&&h>1e-4&&(v/=h),v}}function FO(t,e,r,n,i){var a=new vS(GO);return I(r,function(o){return I(o,function(s){if(xo(s.model)){var l=!n;s.axisBuilder=rE(t,e,s.model,i,a,l)}})}),a}function nw(t,e,r,n,i,a){var o=r===Jt.determine;I(e,function(u){return I(u,function(f){xo(f.model)&&(nE(f.axisBuilder,t,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[sn[1-u]]=t[Wi[u]]<=a.refContainer[Wi[u]]*.5?0:1-u===1?2:1}I(e,function(u,f){return I(u,function(c){xo(c.model)&&((n==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function zO(t,e,r){var n,i=t.get("outerBoundsMode",!0);i==="same"?n=e.clone():(i==null||i==="auto")&&(n=Gr(t.get("outerBounds",!0)||IS,r.refContainer));var a=t.get("outerBoundsContain",!0),o;a==null||a==="auto"||fe(["all","axisLabel"],a)<0?o="all":o=a;var s=[_c(Z(t.get("outerBoundsClampWidth",!0),uu[0]),e.width),_c(Z(t.get("outerBoundsClampHeight",!0),uu[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var GO=function(t,e,r,n,i,a){var o=r.axis.dim==="x"?"y":"x";dS(t,e,r,n,i,a),ta(t.nameLocation)||I(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&gS(s.labelInfoList,s.dirVec,n,i)})};function VO(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return HO(r,t,e),r.seriesInvolved&&WO(r,t),r}function HO(t,e,r){var n=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];I(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Vo(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(I(s.getAxes(),Oe(p,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var v=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(v||h)&&I(d.baseAxes,Oe(p,h?"cross":!0,v)),h&&I(d.otherAxes,Oe(p,"cross",!1))}function p(g,m,y){var _=y.model.getModel("axisPointer",i),S=_.get("show");if(!(!S||S==="auto"&&!g&&!Sd(_))){m==null&&(m=_.get("triggerTooltip")),_=g?UO(y,c,i,e,g,m):_;var b=_.get("snap"),w=_.get("triggerEmphasis"),T=Vo(y.model),C=m||b||y.type==="category",D=t.axesInfo[T]={key:T,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:w,involveSeries:C,snap:b,useHandle:Sd(_),seriesModels:[],linkGroup:null};u[T]=D,t.seriesInvolved=t.seriesInvolved||C;var x=YO(a,y);if(x!=null){var A=o[x]||(o[x]={axesInfo:{}});A.axesInfo[T]=D,A.mapper=a[x].mapper,D.linkGroup=A}}}})}function UO(t,e,r,n,i,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};I(s,function(v){l[v]=oe(o.get(v))}),l.snap=t.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&le(u,c.textStyle)}}return t.model.getModel("axisPointer",new xe(l,r,n))}function WO(t,e){e.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||!n.model||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||I(t.coordSysAxesInfo[Vo(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function YO(t,e){for(var r=e.model,n=e.dim,i=0;i<t.length;i++){var a=t[i]||{};if(yd(a[n+"AxisId"],r.id)||yd(a[n+"AxisIndex"],r.componentIndex)||yd(a[n+"AxisName"],r.name))return i}}function yd(t,e){return t==="all"||W(t)&&fe(t,e)>=0||t===e}function $O(t){var e=_d(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=Sd(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function _d(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Vo(t)]}function XO(t){var e=_d(t);return e&&e.axisPointerModel}function Sd(t){return!!t.get(["handle","show"])}function Vo(t){return t.type+"||"+t.id}var iw={},aw=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i,a){this.axisPointerClass&&$O(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},e.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},e.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=XO(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){iw[r]=n},e.getAxisPointerClass=function(r){return r&&iw[r]},e.type="axis",e})(bt),bd=Se();function qO(t,e,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=bd(t).splitAreaColors,v=te(),h=0;if(c)for(var d=0;d<u.length;d++){var p=c.get(u[d].tickValue);if(p!=null){h=(p+(f-1)*d)%f;break}}var g=i.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=W(s)?s:[s];for(var d=1;d<u.length;d++){var y=i.toGlobalCoord(u[d].coord),_=void 0,S=void 0,b=void 0,w=void 0;i.isHorizontal()?(_=g,S=l.y,b=y-_,w=l.height,g=_+b):(_=l.x,S=g,b=l.width,w=y-S,g=S+w);var T=u[d-1].tickValue;T!=null&&v.set(T,h),e.add(new De({anid:T!=null?"area_"+T:null,shape:{x:_,y:S,width:b,height:w},style:le({fill:s[h]},m),autoBatch:!0,silent:!0})),h=(h+1)%f}bd(t).splitAreaColors=v}}}function ZO(t){bd(t).splitAreaColors=null}var KO=["splitArea","splitLine","minorSplitLine","breakArea"],ow=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ce,this.group.add(this._axisGroup),!!xo(r)){this._axisGroup.add(r.axis.axisBuilder.group),I(KO,function(l){r.get([l,"show"])&&jO[l](this,this._axisGroup,r,r.getCoordSysModel(),i)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||Sy(o,this._axisGroup,r),t.prototype.render.call(this,r,n,i,a)}},e.prototype.remove=function(){ZO(this)},e.type="cartesianAxis",e})(aw),jO={splitLine:function(t,e,r,n,i){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=W(l)?l:[l];for(var c=n.coordinateSystem.getRect(),v=a.isHorizontal(),h=0,d=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],m=s.getLineStyle(),y=0;y<d.length;y++){var _=a.toGlobalCoord(d[y].coord);if(!(y===0&&!u||y===d.length-1&&!f)){var S=d[y].tickValue;v?(p[0]=_,p[1]=c.y,g[0]=_,g[1]=c.y+c.height):(p[0]=c.x,p[1]=_,g[0]=c.x+c.width,g[1]=_);var b=h++%l.length,w=new Cr({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},style:le({stroke:l[b]},m),silent:!0});io(w.shape,m.lineWidth),e.add(w)}}}},minorSplitLine:function(t,e,r,n,i){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=n.coordinateSystem.getRect(),u=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var c=[],v=[],h=s.getLineStyle(),d=0;d<f.length;d++)for(var p=0;p<f[d].length;p++){var g=a.toGlobalCoord(f[d][p].coord);u?(c[0]=g,c[1]=l.y,v[0]=g,v[1]=l.y+l.height):(c[0]=l.x,c[1]=g,v[0]=l.x+l.width,v[1]=g);var m=new Cr({anid:"minor_line_"+f[d][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:v[0],y2:v[1]},style:h,silent:!0});io(m.shape,h.lineWidth),e.add(m)}},splitArea:function(t,e,r,n,i){qO(t,e,r,n)},breakArea:function(t,e,r,n,i){var a=au(),o=r.axis.scale;a&&o.type!=="ordinal"&&a.rectCoordBuildBreakAxis(e,t,r,n.coordinateSystem.getRect(),i)}},sw=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e})(ow),QO=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=sw.type,r}return e.type="yAxis",e})(ow),JO=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new De({shape:r.coordinateSystem.getRect(),style:le({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(bt),lw={offset:0};function uw(t){t.registerComponentView(JO),t.registerComponentModel(_E),t.registerCoordinateSystem("cartesian2d",RO),Wb(t,"x",gd,lw),Wb(t,"y",gd,lw),t.registerComponentView(sw),t.registerComponentView(QO),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function eN(t){rr(uw),t.registerSeriesModel(_O),t.registerChartView(TO),t.registerLayout(ov("scatter"))}function tN(t){var e=t.polar;if(e){W(e)||(e=[e]);var r=[];I(e,function(n,i){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),t.radar=t.radar||[],W(t.radar)||(t.radar=[t.radar]),t.radar.push(n)):r.push(n)}),t.polar=r}I(t.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var Ho="radar",rN=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new xv(de(this.getData,this),de(this.getRawData,this))},e.prototype.getInitialData=function(r,n){return pu(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(r),u=l===""?this.name:l,f=j0(this,r);return ii("section",{header:u,sortBlocks:!0,blocks:$(s,function(c){var v=a.get(a.mapDimension(c.dim),r);return ii("nameValue",{markerType:"subItem",markerColor:f,name:c.name,value:v,sortParam:v})})})},e.prototype.getTooltipPosition=function(r){if(r!=null){for(var n=this.getData(),i=this.coordinateSystem,a=n.getValues($(i.dimensions,function(u){return n.mapDimension(u)}),r),o=0,s=a.length;o<s;o++)if(!isNaN(a[o])){var l=i.getIndicatorAxes();return i.coordToPoint(l[o].dataToCoord(a[o]),o)}}},e.type="series."+Ho,e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e})(ot),nN=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Ho,r}return e.prototype.render=function(r,n,i){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=this._data;function u(v,h){var d=v.getItemVisual(h,"symbol")||"circle";if(d!=="none"){var p=t_(v.getItemVisual(h,"symbolSize")),g=Ar(d,-1,-1,2,2),m=v.getItemVisual(h,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:m*Math.PI/180||0}),g}}function f(v,h,d,p,g,m){d.removeAll();for(var y=0;y<h.length-1;y++){var _=u(p,g);_&&(_.__dimIdx=y,v[y]?(_.setPosition(v[y]),Ay[m?"initProps":"updateProps"](_,{x:h[y][0],y:h[y][1]},r,g)):_.setPosition(h[y]),d.add(_))}}function c(v){return $(v,function(h){return[a.cx,a.cy]})}s.diff(l).add(function(v){var h=s.getItemLayout(v);if(h){var d=new Vi,p=new on,g={shape:{points:h}};d.shape.points=c(h),p.shape.points=c(h),Ve(d,g,r,v),Ve(p,g,r,v);var m=new Ce,y=new Ce;m.add(p),m.add(d),m.add(y),f(p.shape.points,h,y,s,v,!0),s.setItemGraphicEl(v,m)}}).update(function(v,h){var d=l.getItemGraphicEl(h),p=d.childAt(0),g=d.childAt(1),m=d.childAt(2),y={shape:{points:s.getItemLayout(v)}};y.shape.points&&(f(p.shape.points,y.shape.points,m,s,v,!1),Ui(g),Ui(p),Ie(p,y,r),Ie(g,y,r),s.setItemGraphicEl(v,d))}).remove(function(v){o.remove(l.getItemGraphicEl(v))}).execute(),s.eachItemGraphicEl(function(v,h){var d=s.getItemModel(h),p=v.childAt(0),g=v.childAt(1),m=v.childAt(2),y=s.getItemVisual(h,"style"),_=y.fill;o.add(v),p.useStyle(le(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),zr(p,d,"lineStyle"),zr(g,d,"areaStyle");var S=d.getModel("areaStyle"),b=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=b,I(["emphasis","select","blur"],function(T){var C=d.getModel([T,"areaStyle"]),D=C.isEmpty()&&C.parentModel.isEmpty();g.ensureState(T).ignore=D&&b;var x=d.getModel([T,"lineStyle"]).getLineStyle();p.ensureState(T).style=x;var A=C.getAreaStyle();g.ensureState(T).style=A;var L=d.getModel([T,"itemStyle"]).getItemStyle();m.eachChild(function(M){M.ensureState(T).style=oe(L)})}),g.useStyle(le(d.getModel("areaStyle").getAreaStyle(),{fill:_,opacity:.7,decal:y.decal}));var w=d.getModel("emphasis");m.eachChild(function(T){if(T instanceof Mt){var C=T.style;T.useStyle(z({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},y))}else T.useStyle(y),T.setColor(_),T.style.strokeNoScale=!0;var D=s.getStore().get(s.getDimensionIndex(T.__dimIdx),h);(D==null||isNaN(D))&&(D=""),Kn(T,jn(d),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:T.__dimIdx,defaultText:D,inheritColor:_,defaultOpacity:y.opacity})}),Fr(v,w.get("focus"),w.get("blurScope"),w.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type=Ho,e})(je),Uo=Ub.value,Wo="radar",fw=Wo,iN=Wo,cw=5;function Ou(t,e){return le({show:e},t)}var aN=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(){var r=this.get("boundaryGap"),n=this.get("splitNumber"),i=this.get("clockwise"),a=this.get("scale"),o=this.get("axisLine"),s=this.get("axisTick"),l=this.get("axisLabel"),u=this.get("axisName"),f=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),v=this.get("axisNameGap"),h=this.get("triggerEvent"),d=$(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var g=u;p.color!=null&&(g=le({color:p.color},u));var m=be(oe(p),{boundaryGap:r,splitNumber:n,clockwise:i,scale:a,axisLine:o,axisTick:s,axisLabel:l,name:p.text,showName:f,nameLocation:"end",nameGap:v,nameTextStyle:g,triggerEvent:h},!1);if(q(c)){var y=m.name;m.name=c.replace("{value}",y??"")}else ee(c)&&(m.name=c(m.name,m));var _=new xe(m,null,this.ecModel);return Ut(_,Vb.prototype),_.mainType="radar",_.componentIndex=this.componentIndex,_.uid=vo("ec_radar"),_},this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type=fw,e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:Y.color.axisLabel},boundaryGap:[0,0],splitNumber:cw,axisNameGap:15,scale:!1,shape:"polygon",axisLine:be({lineStyle:{color:Y.color.neutral20}},Uo.axisLine),axisLabel:Ou(Uo.axisLabel,!1),axisTick:Ou(Uo.axisTick,!1),splitLine:Ou(Uo.splitLine,!0),splitArea:Ou(Uo.splitArea,!0),indicator:[]},e})(ye),oN=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=this.group;a.removeAll(),this._buildAxes(r,i),this._buildSplitLineAndArea(r)},e.prototype._buildAxes=function(r,n){var i=r.coordinateSystem,a=i.getIndicatorAxes(),o=$(a,function(s){var l=s.model.get("showName")?s.name:"",u=new Hr(s.model,n,{axisName:l,position:[i.cx,i.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});I(o,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),c=s.get("show"),v=l.get("color"),h=u.get("color"),d=W(v)?v:[v],p=W(h)?h:[h],g=[],m=[];function y(E,k,O){var R=O%k.length;return E[R]=E[R]||[],R}if(a==="circle")for(var _=i[0].getTicksCoords(),S=n.cx,b=n.cy,w=0;w<_.length;w++){if(f){var T=y(g,d,w);g[T].push(new eo({shape:{cx:S,cy:b,r:_[w].coord}}))}if(c&&w<_.length-1){var T=y(m,p,w);m[T].push(new fl({shape:{cx:S,cy:b,r0:_[w].coord,r:_[w+1].coord}}))}}else for(var C,D=$(i,function(E,k){var O=E.getTicksCoords();return C=C==null?O.length-1:Math.min(O.length-1,C),$(O,function(R){return n.coordToPoint(R.coord,k)})}),x=[],w=0;w<=C;w++){for(var A=[],L=0;L<i.length;L++)A.push(D[L][w]);if(A[0]&&A.push(A[0].slice()),f){var T=y(g,d,w);g[T].push(new on({shape:{points:A}}))}if(c&&x){var T=y(m,p,w-1);m[T].push(new Vi({shape:{points:A.concat(x)}}))}x=A.slice().reverse()}var M=l.getLineStyle(),P=u.getAreaStyle();I(m,function(E,k){this.group.add(eh(E,{style:le({stroke:"none",fill:p[k%p.length]},P),silent:!0}))},this),I(g,function(E,k){this.group.add(eh(E,{style:le({fill:"none",stroke:d[k%d.length]},M),silent:!0}))},this)},e.type="radar",e})(bt),sN=(function(t){G(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.type="value",a.angle=0,a.name="",a}return e})(iS),lN=(function(){function t(e,r,n){this.type=Wo,this.dimensions=[],this._model=e,this._indicatorAxes=$(e.getIndicatorModels(),function(i,a){var o="indicator_"+a,s=new sN(o,new dn);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(o),s},this),this.resize(e,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(e,r){var n=this._indicatorAxes[r];return this.coordToPoint(n.dataToCoord(e),r)},t.prototype.coordToPoint=function(e,r){var n=this._indicatorAxes[r],i=n.angle,a=this.cx+e*Math.cos(i),o=this.cy-e*Math.sin(i);return[a,o]},t.prototype.pointToData=function(e){var r=e[0]-this.cx,n=e[1]-this.cy,i=Math.sqrt(r*r+n*n);r/=i,n/=i;for(var a=Math.atan2(-n,r),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],c=Math.abs(a-f.angle);c<o&&(s=f,l=u,o=c)}return[l,+(s&&s.coordToData(i))]},t.prototype.resize=function(e,r){var n=Ji(e,r).refContainer,i=e.get("center"),a=e.get("clockwise")||!1,o=Math.min(n.width,n.height)/2;this.cx=Q(i[0],n.width)+n.x,this.cy=Q(i[1],n.height)+n.y,this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(q(s)||me(s))&&(s=[0,s]),this.r0=Q(s[0],o),this.r=Q(s[1],o);var l=a?-1:1;I(this._indicatorAxes,function(u,f){u.setExtent(this.r0,this.r);var c=this.startAngle+l*f*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),u.angle=c},this)},t.prototype.update=function(e,r){var n=this._indicatorAxes,i=this._model,a=ql(i.get("splitNumber"),cw),o=new dn;o.setExtent(0,a),o.setConfig({interval:1}),I(n,function(s){AS(s,bS),Xb(s,o)})},t.prototype.convertToPixel=function(e,r,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(e,r,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},t.create=function(e,r){var n=[];return e.eachComponent(fw,function(i){var a=new t(i,e,r);n.push(a),i.coordinateSystem=a}),e.eachSeriesByType(iN,function(i){if(i.get("coordinateSystem")===Wo){var a=i.coordinateSystem=n[i.get("radarIndex")||0];a&&I(a.getIndicatorAxes(),function(o){fv(o,i,Wo)})}}),n},t.dimensions=[],t})();function uN(t){t.registerCoordinateSystem("radar",lN),t.registerComponentModel(aN),t.registerComponentView(oN),t.registerVisual({seriesType:"radar",reset:function(e){var r=e.getData();r.each(function(n){r.setItemVisual(n,"legendIcon","roundRect")}),r.setVisual("legendIcon","roundRect")}})}var fN=Ic(Ho,cN);function cN(t){t.eachSeriesByType(Ho,function(e){var r=e.getData(),n=[],i=e.coordinateSystem;if(i){var a=i.getIndicatorAxes();I(a,function(o,s){r.each(r.mapDimension(a[s].dim),function(l,u){n[u]=n[u]||[];var f=i.dataToPoint(l,s);n[u][s]=hw(f)?f:vw(i)})}),r.each(function(o){var s=Up(n[o],function(l){return hw(l)})||vw(i);n[o].push(s.slice()),r.setItemLayout(o,n[o])})}})}function hw(t){return!isNaN(t[0])&&!isNaN(t[1])}function vw(t){return[t.cx,t.cy]}function hN(t){rr(uN),t.registerChartView(nN),t.registerSeriesModel(rN),t.registerLayout(fN),t.registerProcessor(Tv("radar")),t.registerPreprocessor(tN)}var vN=(function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t})(),dN=(function(t){G(e,t);function e(r){var n=t.call(this,r)||this;return n.type="pointer",n}return e.prototype.getDefaultShape=function(){return new vN},e.prototype.buildPath=function(r,n){var i=Math.cos,a=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-i(l)*s*(s>=o/3?1:2),f=n.y-a(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,r.moveTo(u,f),r.lineTo(n.x+i(l)*s,n.y+a(l)*s),r.lineTo(n.x+i(n.angle)*o,n.y+a(n.angle)*o),r.lineTo(n.x-i(l)*s,n.y-a(l)*s),r.lineTo(u,f)},e})(pe);function pN(t,e){var r=t.get("center"),n=e.getWidth(),i=e.getHeight(),a=Math.min(n,i),o=Q(r[0],e.getWidth()),s=Q(r[1],e.getHeight()),l=Q(t.get("radius"),a/2);return{cx:o,cy:s,r:l}}function Nu(t,e){var r=t==null?"":t+"";return e&&(q(e)?r=e.replace("{value}",r):ee(e)&&(r=e(t))),r}var gN=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){this.group.removeAll();var a=r.get(["axisLine","lineStyle","color"]),o=pN(r,i);this._renderMain(r,n,i,a,o),this._data=r.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(r,n,i,a,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,f=-r.get("endAngle")/180*Math.PI,c=r.getModel("axisLine"),v=c.get("roundCap"),h=v?cu:xr,d=c.get("show"),p=c.getModel("lineStyle"),g=p.get("width"),m=[u,f];pc(m,!l),u=m[0],f=m[1];for(var y=f-u,_=u,S=[],b=0;d&&b<a.length;b++){var w=Math.min(Math.max(a[b][0],0),1);f=u+y*w;var T=new h({shape:{startAngle:_,endAngle:f,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});T.setStyle({fill:a[b][1]}),T.setStyle(p.getLineStyle(["color","width"])),S.push(T),_=f}S.reverse(),I(S,function(D){return s.add(D)});var C=function(D){if(D<=0)return a[0][1];var x;for(x=0;x<a.length;x++)if(a[x][0]>=D&&(x===0?0:a[x-1][0])<D)return a[x][1];return a[x-1][1]};this._renderTicks(r,n,i,C,o,u,f,l,g),this._renderTitleAndDetail(r,n,i,C,o),this._renderAnchor(r,o),this._renderPointer(r,n,i,C,o,u,f,l,g)},e.prototype._renderTicks=function(r,n,i,a,o,s,l,u,f){for(var c=this.group,v=o.cx,h=o.cy,d=o.r,p=+r.get("min"),g=+r.get("max"),m=r.getModel("splitLine"),y=r.getModel("axisTick"),_=r.getModel("axisLabel"),S=r.get("splitNumber"),b=y.get("splitNumber"),w=Q(m.get("length"),d),T=Q(y.get("length"),d),C=s,D=(l-s)/S,x=D/b,A=m.getModel("lineStyle").getLineStyle(),L=y.getModel("lineStyle").getLineStyle(),M=m.get("distance"),P,E,k=0;k<=S;k++){if(P=Math.cos(C),E=Math.sin(C),m.get("show")){var O=M?M+f:f,R=new Cr({shape:{x1:P*(d-O)+v,y1:E*(d-O)+h,x2:P*(d-w-O)+v,y2:E*(d-w-O)+h},style:A,silent:!0});A.stroke==="auto"&&R.setStyle({stroke:a(k/S)}),c.add(R)}if(_.get("show")){var O=_.get("distance")+M,N=Nu(ve(k*(g-p)/S+p,zA),_.get("formatter")),F=a(k/S),B=P*(d-w-O)+v,V=E*(d-w-O)+h,X=_.get("rotate"),H=0;X==="radial"?(H=-C+2*Math.PI,H>Math.PI/2&&(H+=Math.PI)):X==="tangential"?H=-C-Math.PI/2:me(X)&&(H=X*Math.PI/180),H===0?c.add(new Me({style:Ot(_,{text:N,x:B,y:V,verticalAlign:E<-.8?"top":E>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:F}),silent:!0})):c.add(new Me({style:Ot(_,{text:N,x:B,y:V,verticalAlign:"middle",align:"center"},{inheritColor:F}),silent:!0,originX:B,originY:V,rotation:H}))}if(y.get("show")&&k!==S){var O=y.get("distance");O=O?O+f:f;for(var K=0;K<=b;K++){P=Math.cos(C),E=Math.sin(C);var ae=new Cr({shape:{x1:P*(d-O)+v,y1:E*(d-O)+h,x2:P*(d-T-O)+v,y2:E*(d-T-O)+h},silent:!0,style:L});L.stroke==="auto"&&ae.setStyle({stroke:a((k+K/b)/S)}),c.add(ae),C+=x}C-=x}else C+=D}},e.prototype._renderPointer=function(r,n,i,a,o,s,l,u,f){var c=this.group,v=this._data,h=this._progressEls,d=[],p=r.get(["pointer","show"]),g=r.getModel("progress"),m=g.get("show"),y=r.getData(),_=y.mapDimension("value"),S=+r.get("min"),b=+r.get("max"),w=[S,b],T=[s,l];function C(x,A){var L=y.getItemModel(x),M=L.getModel("pointer"),P=Q(M.get("width"),o.r),E=Q(M.get("length"),o.r),k=r.get(["pointer","icon"]),O=M.get("offsetCenter"),R=Q(O[0],o.r),N=Q(O[1],o.r),F=M.get("keepAspect"),B;return k?B=Ar(k,R-P/2,N-E,P,E,null,F):B=new dN({shape:{angle:-Math.PI/2,width:P,r:E,x:R,y:N}}),B.rotation=-(A+Math.PI/2),B.x=o.cx,B.y=o.cy,B}function D(x,A){var L=g.get("roundCap"),M=L?cu:xr,P=g.get("overlap"),E=P?g.get("width"):f/y.count(),k=P?o.r-E:o.r-(x+1)*E,O=P?o.r:o.r-x*E,R=new M({shape:{startAngle:s,endAngle:A,cx:o.cx,cy:o.cy,clockwise:u,r0:k,r:O}});return P&&(R.z2=It(y.get(_,x),[S,b],[100,0],!0)),R}(m||p)&&(y.diff(v).add(function(x){var A=y.get(_,x);if(p){var L=C(x,s);Ve(L,{rotation:-((isNaN(+A)?T[0]:It(A,w,T,!0))+Math.PI/2)},r),c.add(L),y.setItemGraphicEl(x,L)}if(m){var M=D(x,s),P=g.get("clip");Ve(M,{shape:{endAngle:It(A,w,T,P)}},r),c.add(M),Pc(r.seriesIndex,y.dataType,x,M),d[x]=M}}).update(function(x,A){var L=y.get(_,x);if(p){var M=v.getItemGraphicEl(A),P=M?M.rotation:s,E=C(x,P);E.rotation=P,Ie(E,{rotation:-((isNaN(+L)?T[0]:It(L,w,T,!0))+Math.PI/2)},r),c.add(E),y.setItemGraphicEl(x,E)}if(m){var k=h[A],O=k?k.shape.endAngle:s,R=D(x,O),N=g.get("clip");Ie(R,{shape:{endAngle:It(L,w,T,N)}},r),c.add(R),Pc(r.seriesIndex,y.dataType,x,R),d[x]=R}}).execute(),y.each(function(x){var A=y.getItemModel(x),L=A.getModel("emphasis"),M=L.get("focus"),P=L.get("blurScope"),E=L.get("disabled"),k=a(It(y.get(_,x),w,[0,1],!0));if(p){var O=y.getItemGraphicEl(x),R=y.getItemVisual(x,"style"),N=R.fill;if(O instanceof Mt){var F=O.style;O.useStyle(z({image:F.image,x:F.x,y:F.y,width:F.width,height:F.height},R))}else O.useStyle(R),O.type!=="pointer"&&O.setColor(N);O.setStyle(A.getModel(["pointer","itemStyle"]).getItemStyle()),O.style.fill==="auto"&&O.setStyle("fill",k),O.z2EmphasisLift=0,zr(O,A),Fr(O,M,P,E)}if(m){var B=d[x];B.useStyle(y.getItemVisual(x,"style")),B.setStyle(A.getModel(["progress","itemStyle"]).getItemStyle()),B.style.fill==="auto"&&B.setStyle("fill",k),B.z2EmphasisLift=0,zr(B,A),Fr(B,M,P,E)}}),this._progressEls=d)},e.prototype._renderAnchor=function(r,n){var i=r.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),f=Ar(s,n.cx-o/2+Q(l[0],n.r),n.cy-o/2+Q(l[1],n.r),o,o,null,u);f.z2=i.get("showAbove")?1:0,f.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(r,n,i,a,o){var s=this,l=r.getData(),u=l.mapDimension("value"),f=+r.get("min"),c=+r.get("max"),v=new Ce,h=[],d=[],p=r.isAnimationEnabled(),g=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){h[m]=new Me({silent:!0}),d[m]=new Me({silent:!0})}).update(function(m,y){h[m]=s._titleEls[y],d[m]=s._detailEls[y]}).execute(),l.each(function(m){var y=l.getItemModel(m),_=l.get(u,m),S=new Ce,b=a(It(_,[f,c],[0,1],!0)),w=y.getModel("title");if(w.get("show")){var T=w.get("offsetCenter"),C=o.cx+Q(T[0],o.r),D=o.cy+Q(T[1],o.r),x=h[m];x.attr({z2:g?0:2,style:Ot(w,{x:C,y:D,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:b})}),S.add(x)}var A=y.getModel("detail");if(A.get("show")){var L=A.get("offsetCenter"),M=o.cx+Q(L[0],o.r),P=o.cy+Q(L[1],o.r),E=Q(A.get("width"),o.r),k=Q(A.get("height"),o.r),O=r.get(["progress","show"])?l.getItemVisual(m,"style").fill:b,x=d[m],R=A.get("formatter");x.attr({z2:g?0:2,style:Ot(A,{x:M,y:P,text:Nu(_,R),width:isNaN(E)?null:E,height:isNaN(k)?null:k,align:"center",verticalAlign:"middle"},{inheritColor:O})}),ky(x,{normal:A},_,function(F){return Nu(F,R)}),p&&GM(x,m,l,r,{getFormattedLabel:function(F,B,V,X,H,K){return Nu(K?K.interpolatedValue:_,R)}}),S.add(x)}v.add(S)}),this.group.add(v),this._titleEls=h,this._detailEls=d},e.type="gauge",e})(je),mN=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.visualStyleAccessPath="itemStyle",r}return e.prototype.getInitialData=function(r,n){return pu(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,Y.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:Y.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:Y.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:Y.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:Y.color.neutral00,borderWidth:0,borderColor:Y.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:Y.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:Y.color.transparent,borderWidth:0,borderColor:Y.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:Y.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e})(ot);function yN(t){t.registerChartView(gN),t.registerSeriesModel(mN)}var pa="funnel",_N=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new xv(de(this.getData,this),de(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.getInitialData=function(r,n){return pu(this,{coordDimensions:["value"],encodeDefaulter:Oe(Fy,this)})},e.prototype._defaultLabelLine=function(r){js(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},e.prototype.getDataParams=function(r){var n=this.getData(),i=t.prototype.getDataParams.call(this,r),a=n.mapDimension("value"),o=n.getSum(a);return i.percent=o?+(n.get(a,r)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series."+pa,e.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:Y.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:Y.color.primary}}},e})(ot),SN=["itemStyle","opacity"],bN=(function(t){G(e,t);function e(r,n){var i=t.call(this)||this,a=i,o=new on,s=new Me;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(r,n,!0),i}return e.prototype.updateData=function(r,n,i){var a=this,o=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),f=s.get(SN);f=f??1,i||Ui(a),a.useStyle(r.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,Ve(a,{style:{opacity:f}},o,n)):Ie(a,{style:{opacity:f},shape:{points:l.points}},o,n),zr(a,s),this._updateLabel(r,n),Fr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r,n){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=r.hostModel,l=r.getItemModel(n),u=r.getItemLayout(n),f=u.label,c=r.getItemVisual(n,"style"),v=c.fill;Kn(o,jn(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:c.opacity,defaultText:r.getName(n)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}});var h=l.getModel("label"),d=h.get("color"),p=d==="inherit"?v:null;i.setTextConfig({local:!0,inside:!!f.inside,insideStroke:p,outsideFill:p});var g=f.linePoints;a.setShape({points:g}),i.textGuideLineConfig={anchor:g?new re(g[0][0],g[0][1]):null},Ie(o,{style:{x:f.x,y:f.y}},s,n),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),qS(i,ZS(l),{stroke:v})},e})(Vi),wN=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=pa,r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,n,i){var a=r.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new bN(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(a,l),s.add(f),a.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);Hi(u,r,l)}).execute(),this._data=a},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type=pa,e})(je);function TN(t,e){for(var r=t.mapDimension("value"),n=t.mapArray(r,function(l){return l}),i=[],a=e==="ascending",o=0,s=t.count();o<s;o++)i[o]=o;return ee(e)?i.sort(e):e!=="none"&&i.sort(function(l,u){return a?n[l]-n[u]:n[u]-n[l]}),i}function xN(t){var e=t.hostModel,r=dw(e);t.each(function(n){var i=t.getItemModel(n),a=i.getModel("label"),o=a.get("position"),s=i.getModel("labelLine"),l=t.getItemLayout(n),u=l.points,f=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",c,v,h,d;if(f)o==="insideLeft"?(v=(u[0][0]+u[3][0])/2+5,h=(u[0][1]+u[3][1])/2,c="left"):o==="insideRight"?(v=(u[1][0]+u[2][0])/2-5,h=(u[1][1]+u[2][1])/2,c="right"):(v=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,h=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,c="center"),d=[[v,h],[v,h]];else{var p=void 0,g=void 0,m=void 0,y=void 0,_=s.get("length");q(o)&&(!r&&fe(["top","bottom"],o)>-1&&(o="left"),r&&fe(["left","right"],o)>-1&&(o="bottom")),o==="left"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=p-_,v=m-5,c="right"):o==="right"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=p+_,v=m+5,c="left"):o==="top"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=g-_,h=y-5,c="center"):o==="bottom"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=g+_,h=y+5,c="center"):o==="rightTop"?(p=r?u[3][0]:u[1][0],g=r?u[3][1]:u[1][1],r?(y=g-_,h=y-5,c="center"):(m=p+_,v=m+5,c="top")):o==="rightBottom"?(p=u[2][0],g=u[2][1],r?(y=g+_,h=y+5,c="center"):(m=p+_,v=m+5,c="bottom")):o==="leftTop"?(p=u[0][0],g=r?u[0][1]:u[1][1],r?(y=g-_,h=y-5,c="center"):(m=p-_,v=m-5,c="right")):o==="leftBottom"?(p=r?u[1][0]:u[3][0],g=r?u[1][1]:u[2][1],r?(y=g+_,h=y+5,c="center"):(m=p-_,v=m-5,c="right")):(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,r?(y=g+_,h=y+5,c="center"):(m=p+_,v=m+5,c="left")),r?(m=p,v=m):(y=g,h=y),d=[[p,g],[m,y]]}l.label={linePoints:d,x:v,y:h,verticalAlign:"middle",textAlign:c,inside:f}})}var CN=Ic(pa,AN);function AN(t,e){t.eachSeriesByType(pa,function(r){var n=r.getData(),i=n.mapDimension("value"),a=r.get("sort"),o=Ji(r,e),s=Gr(r.getBoxLayoutParams(),o.refContainer),l=dw(r),u=s.width,f=s.height,c=TN(n,a),v=s.x,h=s.y,d=l?[Q(r.get("minSize"),f),Q(r.get("maxSize"),f)]:[Q(r.get("minSize"),u),Q(r.get("maxSize"),u)],p=n.getDataExtent(i),g=r.get("min"),m=r.get("max");g==null&&(g=Math.min(p[0],0)),m==null&&(m=p[1]);var y=r.get("funnelAlign"),_=r.get("gap"),S=l?u:f,b=(S-_*(n.count()-1))/n.count(),w=function(E,k){if(l){var O=n.get(i,E)||0,R=It(O,[g,m],d,!0),N=void 0;switch(y){case"top":N=h;break;case"center":N=h+(f-R)/2;break;case"bottom":N=h+(f-R);break}return[[k,N],[k,N+R]]}var F=n.get(i,E)||0,B=It(F,[g,m],d,!0),V;switch(y){case"left":V=v;break;case"center":V=v+(u-B)/2;break;case"right":V=v+u-B;break}return[[V,k],[V+B,k]]};a==="ascending"&&(b=-b,_=-_,l?v+=u:h+=f,c=c.reverse());for(var T=0;T<c.length;T++){var C=c[T],D=c[T+1],x=n.getItemModel(C);if(l){var A=x.get(["itemStyle","width"]);A==null?A=b:(A=Q(A,u),a==="ascending"&&(A=-A));var L=w(C,v),M=w(D,v+A);v+=A+_,n.setItemLayout(C,{points:L.concat(M.slice().reverse())})}else{var P=x.get(["itemStyle","height"]);P==null?P=b:(P=Q(P,f),a==="ascending"&&(P=-P));var L=w(C,h),M=w(D,h+P);h+=P+_,n.setItemLayout(C,{points:L.concat(M.slice().reverse())})}}xN(n)})}function dw(t){return t.get("orient")==="horizontal"}function DN(t){t.registerChartView(wN),t.registerSeriesModel(_N),t.registerLayout(CN),t.registerProcessor(Tv(pa))}var ci=Se(),pw=oe,wd=de,MN=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,e,r,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new Ce,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),n.getZr().add(s);else{var v=Oe(gw,r,c);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,r)}_w(s,r,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var n=r.get("animation"),i=e.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&ia(i).w>s)return!0;if(o){var l=_d(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},t.prototype.makeElOption=function(e,r,n,i,a){},t.prototype.createPointerEl=function(e,r,n,i){var a=r.pointer;if(a){var o=ci(e).pointerEl=new Ay[a.type](pw(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,i){if(r.label){var a=ci(e).labelEl=new Me(pw(r.label));e.add(a),yw(a,i)}},t.prototype.updatePointerEl=function(e,r,n){var i=ci(e).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,i){var a=ci(e).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),yw(a,i))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=rh(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){n1(u.event)},onmousedown:wd(this._onHandleDragMove,this,0,0),drift:wd(this._onHandleDragMove,this),ondragend:wd(this._onHandleDragEnd,this)}),n.add(i)),_w(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");W(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,RS(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){gw(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Td(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Td(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Td(i)),ci(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Sv(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,n){return n=n||0,{x:e[n],y:e[1-n],width:r[n],height:r[1-n]}},t})();function gw(t,e,r,n){mw(ci(r).lastProp,n)||(ci(r).lastProp=n,e?Ie(r,n,t):(r.stopAnimation(),r.attr(n)))}function mw(t,e){if(j(t)&&j(e)){var r=!0;return I(e,function(n,i){r=r&&mw(t[i],n)}),!!r}else return t===e}function yw(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Td(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function _w(t,e,r){var n=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function IN(t){var e=t.get("type"),r=t.getModel(e+"Style"),n;return e==="line"?(n=r.getLineStyle(),n.fill=null):e==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function LN(t,e,r,n,i){var a=r.get("value"),o=Sw(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Bl(s.get("padding")||0),u=s.getFont(),f=ag(o,u),c=i.position,v=f.width+l[1]+l[3],h=f.height+l[0]+l[2],d=i.align;d==="right"&&(c[0]-=v),d==="center"&&(c[0]-=v/2);var p=i.verticalAlign;p==="bottom"&&(c[1]-=h),p==="middle"&&(c[1]-=h/2),PN(c,v,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Ot(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function PN(t,e,r,n){var i=n.getWidth(),a=n.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function Sw(t,e,r,n,i){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:i.precision}),o=i.formatter;if(o){var s={value:Jl(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};I(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),q(o)?a=o.replace("{value}",a):ee(o)&&(a=o(s))}return a}function bw(t,e,r){var n=dr();return Sf(n,n,r.rotation),_f(n,n,r.position),th([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function EN(t,e,r,n,i,a){var o=Hr.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),LN(e,n,i,a,{position:bw(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function kN(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function RN(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function ON(t,e,r){return ia(t,{fromStat:{sers:$(e,function(n){return r.getSeriesByIndex(n.seriesIndex)})},min:1}).w}function NN(t,e,r){return[ge(qe(e[0],e[1]),t-r/2),qe(t+r/2,ge(e[0],e[1]))]}var BN=(function(t){G(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=s.getGlobalExtent(),c=ww(l,s).getOtherAxis(s).getGlobalExtent(),v=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=IN(a),d=FN[u](s,v,f,c,a.get("seriesDataIndices"),a.ecModel);d.style=h,r.graphicKey=d.type,r.pointer=d}var p=su(l.getRect(),i);EN(n,r,p,i,a,o)},e.prototype.getHandleTransform=function(r,n,i){var a=su(n.axis.grid.getRect(),n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=bw(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=ww(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=qe(l[1],c[f]),c[f]=ge(l[0],c[f]);var v=(u[1]+u[0])/2,h=[v,v];h[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:d[f]}},e})(MN);function ww(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var FN={line:function(t,e,r,n){var i=kN([e,n[0]],[e,n[1]],Tw(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,r,n,i,a){var o=ON(t,i,a),s=n[1]-n[0],l=NN(e,r,o),u=l[0],f=l[1];return{type:"Rect",shape:RN([u,n[0]],[f-u,s],Tw(t))}}};function Tw(t){return t.dim==="x"?0:1}var zN=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:Y.color.border,width:1,type:"dashed"},shadowStyle:{color:Y.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:Y.color.neutral00,padding:[5,7,5,7],backgroundColor:Y.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:Y.color.accent40,throttle:40}},e})(ye),Xr=Se(),GN=I;function xw(t,e,r){if(!ie.node){var n=e.getZr();Xr(n).records||(Xr(n).records={}),VN(n,e);var i=Xr(n).records[t]||(Xr(n).records[t]={});i.handler=r}}function VN(t,e){if(Xr(t).initialized)return;Xr(t).initialized=!0,r("click",Oe(xd,"click")),r("mousemove",Oe(xd,"mousemove")),r("mousewheel",Oe(xd,"mousewheel")),r("globalout",UN);function r(n,i){t.on(n,function(a){var o=WN(e);GN(Xr(t).records,function(s){s&&i(s,a,o.dispatchAction)}),HN(o.pendings,e)})}}function HN(t,e){var r=t.showTip.length,n=t.hideTip.length,i;r?i=t.showTip[r-1]:n&&(i=t.hideTip[n-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function UN(t,e,r){t.handler("leave",null,r)}function xd(t,e,r,n){e.handler(t,r,n)}function WN(t){var e={showTip:[],hideTip:[]},r=function(n){var i=e[n.type];i?i.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}function Cd(t,e){if(!ie.node){var r=e.getZr(),n=(Xr(r).records||{})[t];n&&(Xr(r).records[t]=null)}}var YN=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click|mousewheel";xw("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,n){Cd("axisPointer",n)},e.prototype.dispose=function(r,n){Cd("axisPointer",n)},e.type="axisPointer",e})(bt);function Cw(t,e){var r=[],n=t.seriesIndex,i;if(n==null||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Wn(a,t);if(o==null||o<0||W(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,v=u.dim,h=c==="x"||c==="radius"?1:0,d=a.mapDimension(v),p=[];p[h]=a.get(d,o),p[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(a.getValues($(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var Aw=Se();function $N(t,e,r){var n=t.currTrigger,i=[t.x,t.y],a=t,o=t.dispatchAction||de(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Bu(i)&&(i=Cw({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=Bu(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||Bu(i),v={},h={},d={list:[],map:{}},p={showPointer:Oe(qN,h),showTooltip:Oe(ZN,d)};I(s.coordSysMap,function(m,y){var _=l||m.containPoint(i);I(s.coordSysAxesInfo[y],function(S,b){var w=S.axis,T=JN(u,S);if(!c&&_&&(!u||T)){var C=T&&T.value;C==null&&!l&&(C=w.pointToData(i)),C!=null&&Dw(S,C,p,!1,v)}})});var g={};return I(f,function(m,y){var _=m.linkGroup;_&&!h[y]&&I(_.axesInfo,function(S,b){var w=h[b];if(S!==m&&w){var T=w.value;_.mapper&&(T=m.axis.scale.parse(_.mapper(T,Mw(S),Mw(m)))),g[m.key]=T}})}),I(g,function(m,y){Dw(f[y],m,p,!0,v)}),KN(h,f,v),jN(d,i,t,o),QN(f,o,r),v}}function Dw(t,e,r,n,i){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=XN(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&z(i,s[0]),!n&&t.snap&&a.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function XN(t,e){var r=e.axis,n=r.dim,i=t,a=[],o=Number.MAX_VALUE,s=-1;return I(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,v;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,t,r);v=h.dataIndices,c=h.nestestValue}else{if(v=l.indicesOfNearest(n,f[0],t,r.type==="category"?.5:null),!v.length)return;c=l.getData().get(f[0],v[0])}if(Lt(c)){var d=t-c,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,i=c,a.length=0),I(v,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function qN(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function ZN(t,e,r,n){var i=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=Vo(l),f=t.map[u];f||(f=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function KN(t,e,r){var n=r.axesInfo=[];I(e,function(i,a){var o=i.axisPointerModel.option,s=t[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function jN(t,e,r,n){if(Bu(e)||!t.list.length){n({type:"hideTip"});return}var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}function QN(t,e,r){var n=r.getZr(),i="axisPointerLastHighlights",a=Aw(n)[i]||{},o=Aw(n)[i]={};I(t,function(f,c){var v=f.axisPointerModel.option;v.status==="show"&&f.triggerEmphasis&&I(v.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}I(a,function(f,c){!o[c]&&l.push(u(f))}),I(o,function(f,c){!a[c]&&s.push(u(f))}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function JN(t,e){for(var r=0;r<(t||[]).length;r++){var n=t[r];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function Mw(t){var e=t.axis.model,r={},n=r.axisDim=t.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=e.componentIndex,r.axisName=r[n+"AxisName"]=e.name,r.axisId=r[n+"AxisId"]=e.id,r}function Bu(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function Iw(t){aw.registerAxisPointerClass("CartesianAxisPointer",BN),t.registerComponentModel(zN),t.registerComponentView(YN),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!W(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=VO(e,r)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},$N)}function eB(t){rr(uw),rr(Iw)}function tB(t,e){var r=Bl(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var i=new De({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1});return i}var rB=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Y.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Y.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:Y.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:Y.color.tertiary,fontSize:14}},e})(ye);function Lw(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function Pw(t){if(ie.domSupported){for(var e=document.documentElement.style,r=0,n=t.length;r<n;r++)if(t[r]in e)return t[r]}}var Ew=Pw(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),nB=Pw(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function kw(t,e){if(!t)return e;e=k0(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function iB(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?r[e]:null}var aB=kw(nB,"transition"),Ad=kw(Ew,"transform"),oB="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ie.transform3dSupported?"will-change:transform;":"");function sB(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function lB(t,e,r){if(!q(r)||r==="inside")return"";var n=t.get("backgroundColor"),i=t.get("borderWidth");e=ri(e);var a=sB(r),o=Math.max(Math.round(i)*1.5,6),s="",l=Ad+":",u;fe(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+i,v=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((v-Math.SQRT2*i)/2+Math.SQRT2*i-(v-c)/2)*100)/100;s+=";"+a+":-"+h+"px";var d=e+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function uB(t,e,r){var n="cubic-bezier(0.23,1,0.32,1)",i="",a="";return r&&(i=" "+t/2+"s "+n,a="opacity"+i+",visibility"+i),e||(i=" "+t+"s "+n,a+=(a.length?",":"")+(ie.transformSupported?""+Ad+i:",left"+i+",top"+i)),aB+":"+a}function Rw(t,e,r){var n=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!ie.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=ie.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+Ad+":"+o+";":[["top",0],["left",0],[Ew,o]]}function fB(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var i=Z(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+i+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),I(["decoration","align"],function(u){var f=t.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function cB(t,e,r,n){var i=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),f=t.get("shadowOffsetY"),c=t.getModel("textStyle"),v=Q0(t,"html"),h=u+"px "+f+"px "+s+"px "+l;return i.push("box-shadow:"+h),e&&a>0&&i.push(uB(a,r,n)),o&&i.push("background-color:"+o),I(["width","color","radius"],function(d){var p="border-"+d,g=k0(p),m=t.get(g);m!=null&&i.push(p+":"+m+(d==="color"?"":"px"))}),i.push(fB(c)),v!=null&&i.push("padding:"+Bl(v).join("px ")+"px"),i.join(";")+";"}function Ow(t,e,r,n,i){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&zI(t,o,r,n,i)}else{t[0]=n,t[1]=i;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var hB=(function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ie.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),a=r.appendTo,o=a&&(q(a)?document.querySelector(a):Ca(a)?a:ee(a)&&a(e.getDom()));Ow(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,f=i.painter.getViewportRoot();zt(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),n=iB(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=oB+cB(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+Rw(a[0],a[1],!0)+("border-color:"+ri(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,i,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(q(a)&&n.get("trigger")==="item"&&!Lw(n)&&(s=lB(n,i,a)),q(e))o.innerHTML=e+s;else if(e){o.innerHTML="",W(e)||(e=[e]);for(var l=0;l<e.length;l++)Ca(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var n=this._styleCoord;if(Ow(n,this._zr,this._container,e,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=Rw(n[0],n[1]);I(a,function(o){i[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",ie.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(de(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;GI(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var n=r.parentNode;n&&n.removeChild(r)}this.el=this._container=null},t})(),vB=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),Bw(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,n,i,a){var o=this;j(e)&&ht(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Me({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Q0(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),I(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),I(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),n=Nw(e.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},t.prototype.moveTo=function(e,r){var n=this.el;if(n){var i=this._styleCoord;Bw(i,this._zr,e,r),e=i[0],r=i[1];var a=n.style,o=Sn(a.borderWidth||0),s=Nw(a);n.x=e+o+s.left,n.y=r+o+s.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(de(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function Sn(t){return Math.max(0,t)}function Nw(t){var e=Sn(t.shadowBlur||0),r=Sn(t.shadowOffsetX||0),n=Sn(t.shadowOffsetY||0);return{left:Sn(e-r),right:Sn(e+r),top:Sn(e-n),bottom:Sn(e+n)}}function Bw(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var dB=new De({shape:{x:-1,y:-1,width:2,height:2}}),pB=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){if(!(ie.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=dD(i.get("renderMode"));this._tooltipContent=a==="richText"?new vB(n):new hB(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(r,n,i){if(!(ie.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?RS(this,"_updatePosition",50,"fixRate"):Sv(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");xw("itemTooltip",this._api,de(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(r.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||ie.node||!i.getDom())){var o=Fw(a,i);this._ticket="";var s=a.dataByCoordSys,l=_B(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=dB;f.x=a.x,f.y=a.y,f.update(),ue(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var c=Cw(a,n),v=c.point[0],h=c.point[1];v!=null&&h!=null&&this._tryShow({offsetX:v,offsetY:h,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,a.from!==this.uid&&this._hide(Fw(a,i))},e.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),c=Yo([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=ue(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;zo(i,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(ue(f).dataIndex!=null?l=f:ue(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=de(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},e.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Yo([n.tooltipOption],a),l=this._renderMode,u=[],f=ii("section",{blocks:[],noHeader:!0}),c=[],v=new Wh;I(r,function(y){I(y.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value,w=S.axis,T=w.scale.parse(b);if(!(!S||b==null)){var C=Sw(b,w,i,_.seriesDataIndices,_.valueLabelOpt),D=ii("section",{header:C,noHeader:!hr(C),sortBlocks:!0,blocks:[]});f.blocks.push(D),I(_.seriesDataIndices,function(x){var A=i.getSeriesByIndex(x.seriesIndex),L=x.dataIndexInside,M=A.getDataParams(L);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=Jl(S.axis,{value:T}),M.axisValueLabel=C,M.marker=v.makeTooltipMarker("item",ri(M.color),l);var P=F0(A.formatTooltip(L,!0,null)),E=P.frag;if(E){var k=Yo([A],a).get("valueFormatter");D.blocks.push(k?z({valueFormatter:k},E):E)}P.text&&c.push(P.text),u.push(M)}})}})}),f.blocks.reverse(),c.reverse();var h=n.position,d=s.get("order"),p=Z0(f,v,l,d,i.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?`
14
+ `];function ii(t,e){return e.type=t,e}function Hh(t){return t.type==="section"}function X0(t){return Hh(t)?EL:kL}function q0(t){if(Hh(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return I(t.blocks,function(i){var a=q0(i);a>=e&&(e=a+ +(n&&(!a||Hh(i)&&!i.noHeader)))}),e}return 0}function EL(t,e,r,n){var i=e.noHeader,a=RL(q0(e)),o=[],s=e.blocks||[];Wt(!s||W(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(tt(u,l)){var f=new sI(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}I(s,function(p,g){var m=e.valueFormatter,y=X0(p)(m?z(z({},t),{valueFormatter:m}):t,p,g>0?a.html:0,n);y!=null&&o.push(y)});var c=t.renderMode==="richText"?o.join(a.richText):Uh(n,o.join(""),i?r:a.html);if(i)return c;var v=Bh(e.header,"ordinal",t.useUTC),h=$0(n,t.renderMode).nameStyle,d=Y0(n);return t.renderMode==="richText"?K0(t,v,h)+a.richText+c:Uh(n,'<div style="'+h+";"+d+';">'+it(v)+"</div>"+c,r)}function kL(t,e,r,n){var i=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(S){return S=W(S)?S:[S],$(S,function(b,w){return Bh(b,W(h)?h[w]:h,u)})};if(!(a&&o)){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||Y.color.secondary,i),v=a?"":Bh(l,"ordinal",u),h=e.valueType,d=o?[]:f(e.value,e.rawDataIndex),p=!s||!a,g=!s&&a,m=$0(n,i),y=m.nameStyle,_=m.valueStyle;return i==="richText"?(s?"":c)+(a?"":K0(t,v,y))+(o?"":BL(t,d,p,g,_)):Uh(n,(s?"":c)+(a?"":OL(v,!s,y))+(o?"":NL(d,p,g,_)),r)}}function Z0(t,e,r,n,i,a){if(t){var o=X0(t),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function RL(t){return{html:LL[t],richText:PL[t]}}function Uh(t,e,r){var n='<div style="clear:both"></div>',i="margin: "+r+"px 0 0",a=Y0(t);return'<div style="'+i+";"+a+';">'+e+n+"</div>"}function OL(t,e,r){var n=e?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+it(t)+"</span>"}function NL(t,e,r,n){var i=r?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return t=W(t)?t:[t],'<span style="'+a+";"+n+'">'+$(t,function(o){return it(o)}).join("&nbsp;&nbsp;")+"</span>"}function K0(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function BL(t,e,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(W(e)?e.join(" "):e,a)}function j0(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return ri(n)}function Q0(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var Wh=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=Tc()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var i=n==="richText"?this._generateStyleName():null,a=oL({color:r,type:e,renderMode:n,markerId:i});return q(a)?a:(this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};W(r)?I(r,function(a){return z(n,a)}):z(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},t})();function FL(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),l=W(s),u=j0(e,r),f,c,v,h;if(o>1||l&&!o){var d=zL(s,e,r,a,u);f=d.inlineValues,c=d.inlineValueTypes,v=d.blocks,h=d.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);h=f=$i(i,r,a[0]),c=p.type}else h=f=l?s[0]:s;var g=xc(e),m=g&&e.name||"",y=i.getName(r),_=n?m:y;return ii("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[ii("nameValue",{markerType:"item",markerColor:u,name:_,noName:!hr(_),value:f,valueType:c,rawDataIndex:i.getRawIndex(r)})].concat(v||[])})}function zL(t,e,r,n,i){var a=e.getData(),o=qr(t,function(c,v,h){var d=a.getDimensionInfo(h);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?I(n,function(c){f($i(a,r,c),c)}):I(t,f);function f(c,v){var h=a.getDimensionInfo(v);!h||h.otherDims.tooltip===!1||(o?u.push(ii("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var cn=Se();function Gl(t,e){return t.getName(e)||t.getId(e)}var VL="__universalTransitionEnabled",ot=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=bo({count:HL,reset:UL}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=cn(this).sourceManager=new G0(this);a.prepareSource();var o=this.getInitialData(r,i);e_(o,this),this.dataTask.context.data=o,cn(this).dataBeforeProcessed=o,J0(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=_o(this),a=i?So(r):{},o=this.subType;ye.hasClass(o)&&(o+="Series"),be(r,n.getTheme().get(this.subType)),be(r,this.getDefaultOption()),js(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&fn(r,a,i)},e.prototype.mergeOption=function(r,n){r=be(this.option,r,!0),this.fillDataTextStyle(r.data);var i=_o(this);i&&fn(this.option,r,i);var a=cn(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);e_(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,cn(this).dataBeforeProcessed=o,J0(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!ft(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&js(r[i],"label",n)},e.prototype.getInitialData=function(r,n){},e.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},e.prototype.getData=function(r){var n=Yh(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return cn(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var n=Yh(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}cn(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return te(r)},e.prototype.getSourceManager=function(){return cn(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return cn(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,n,i,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(i);a==null&&(a=1/0);for(var f=[],c=1/0,v=-1,h=0,d=o.getDimensionIndex(n),p=o.getStore(),g=0,m=p.count();g<m;g++){var y=p.get(d,g),_=l.dataToCoord(y),S=u-_,b=Math.abs(S);b<=a&&((b<c||b===c&&S>=0&&v<0)&&(c=b,v=S,h=0),S===v&&(f[h++]=g))}return f.length=h,f},e.prototype.formatTooltip=function(r,n,i){return FL({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(ie.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=Vh.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=Gl(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=ce(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},e.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Gl(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[VL])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){j(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],v=Gl(r,c);u[v]=!0,this._selectedDataIndicesMap[v]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var h=n[l-1],v=Gl(r,h);o.selectedMap=(i={},i[v]=!0,i),this._selectedDataIndicesMap=(a={},a[v]=r.getRawIndex(h),a)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},e.registerClass=function(r){return ye.registerClass(r)},e.protoInitialize=(function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),e})(ye);Ut(ot,yL),Ut(ot,Vh),qp(ot,ye);function J0(t){var e=t.name;xc(t)||(t.name=GL(t)||e)}function GL(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return I(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function HL(t){return t.model.getRawData().count()}function UL(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),WL}function WL(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function e_(t,e){I(jx(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Oe(YL,e))})}function YL(t,e){var r=Yh(t);return r&&r.setOutputEnd((e||this).count()),e}function Yh(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(t.uid))}return n}}var $L=pe.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n+a),t.lineTo(r-i,n+a),t.closePath()}}),XL=pe.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n),t.lineTo(r,n+a),t.lineTo(r-i,n),t.closePath()}}),qL=pe.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,i=e.width/5*3,a=Math.max(i,e.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),v=Math.cos(u),h=o*.6,d=o*.7;t.moveTo(r-f,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+f-c*h,l+s+v*h,r,n-d,r,n),t.bezierCurveTo(r,n-d,r-f+c*h,l+s+v*h,r-f,l+s),t.closePath()}}),ZL=pe.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,n=e.width,i=e.x,a=e.y,o=n/3*2;t.moveTo(i,a),t.lineTo(i+o,a+r),t.lineTo(i,a+r/4*3),t.lineTo(i-o,a+r),t.lineTo(i,a),t.closePath()}}),KL={line:Cr,rect:De,roundRect:De,square:De,circle:eo,diamond:XL,pin:qL,arrow:ZL,triangle:$L},jL={line:function(t,e,r,n,i){i.x1=t,i.y1=e+n/2,i.x2=t+r,i.y2=e+n/2},rect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n},roundRect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(t,e,r,n,i){var a=Math.min(r,n);i.x=t,i.y=e,i.width=a,i.height=a},circle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.r=Math.min(r,n)/2},diamond:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n},pin:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},arrow:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},triangle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n}},$h={};I(KL,function(t,e){$h[e]=new t});var QL=pe.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=_s(t,e,r),i=this.shape;return i&&i.symbolType==="pin"&&e.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(t,e,r){var n=e.symbolType;if(n!=="none"){var i=$h[n];i||(n="rect",i=$h[n]),jL[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,r)}}});function JL(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||Y.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function Ar(t,e,r,n,i,a,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=gy(t.slice(8),new ne(e,r,n,i),o?"center":"cover"):t.indexOf("path://")===0?l=Jc(t.slice(7),{},new ne(e,r,n,i),o?"center":"cover"):l=new QL({shape:{symbolType:t,x:e,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=JL,a&&l.setColor(a),l}function t_(t){return W(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function r_(t,e){if(t!=null)return W(t)||(t=[t,t]),[Q(t[0],e[0])||0,Q(Z(t[1],t[0]),e[1])||0]}var eP=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){return Ml(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var n=new Ce,i=Ar("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=Ar(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=Y.color.neutral00,u.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e})(ot);function Xh(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=$i(t,e,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push($i(t,e,r[o]));return a.join(" ")}}function n_(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!W(e))return e+"";for(var n=[],i=0;i<r.length;i++){var a=t.getDimensionIndex(r[i]);a>=0&&n.push(e[a])}return n.join(" ")}var qh=(function(t){V(e,t);function e(r,n,i,a){var o=t.call(this)||this;return o.updateData(r,n,i,a),o}return e.prototype._createSymbol=function(r,n,i,a,o,s){this.removeAll();var l=Ar(r,-1,-1,2,2,null,s);l.attr({z2:Z(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=tP,this._symbolType=r,this.add(l)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){al(this.childAt(0))},e.prototype.downplay=function(){ol(this.childAt(0))},e.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},e.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},e.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,n),u=e.getSymbolZ2(r,n),f=o!==this._symbolType,c=a&&a.disableAnimation;if(f){var v=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,u,v)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(d):Ie(h,d,s,n),Ui(h)}if(this._updateCommon(r,n,l,i,a),f){var h=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Ge(h,d,s,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,f,c,v,h,d,p,g,m;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,v=a.focus,h=a.blurScope,p=a.labelStatesModels,g=a.hoverScale,m=a.cursorStyle,d=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),h=_.get("blurScope"),d=_.get("disabled"),p=jn(y),g=_.getShallow("scale"),m=y.getShallow("cursor")}var S=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=r_(r.getItemVisual(n,"symbolOffset"),i);b&&(s.x=b[0],s.y=b[1]),m&&s.attr("cursor",m);var w=r.getItemVisual(n,"style"),T=w.fill;if(s instanceof Mt){var C=s.style;s.useStyle(z({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},w))}else s.__isEmptyBrush?s.useStyle(z({},w)):s.useStyle(w),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=r.getItemVisual(n,"liftZ"),x=this._z2;D!=null?x==null&&(this._z2=s.z2,s.z2+=D):x!=null&&(s.z2=x,this._z2=null);var A=o&&o.useNameLabel;Kn(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:L,inheritColor:T,defaultOpacity:w.opacity});function L(E){return A?r.getName(E):Xh(r,E)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var M=s.ensureState("emphasis");M.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;M.scaleX=this._sizeX*P,M.scaleY=this._sizeY*P,this.setSymbolScale(1),Fr(this,v,h,d)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=ue(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&pl(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();pl(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return t_(r.getItemVisual(n,"symbolSize"))},e.getSymbolZ2=function(r,n){return r.getItemVisual(n,"z2")},e})(Ce);function tP(t,e){this.parent.drift(t,e)}function Hl(t,e,r,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n&&n.isIgnore&&n.isIgnore(r))&&!(n&&n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function i_(t){return t!=null&&!j(t)&&(t={isIgnore:t}),t||{}}function a_(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:jn(e),cursorStyle:e.get("cursor")}}function o_(t,e,r,n,i,a,o){var s=new t(e,r,n,i);return s.setPosition(a),e.setItemGraphicEl(r,s),o.add(s),s}var s_=(function(){function t(e){this.group=new Ce,this._SymbolCtor=e||qh}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=i_(r);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=this._seriesScope=a_(e),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return e.getItemLayout(c)};a||n.removeAll(),e.diff(a).add(function(c){var v=f(c);Hl(e,v,c,r)&&o_(o,e,c,l,u,v,n)}).update(function(c,v){var h=a.getItemGraphicEl(v),d=f(c);if(!Hl(e,d,c,r)){n.remove(h);return}var p=e.getItemVisual(c,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==p)n.remove(h),h=new o(e,c,l,u),h.setPosition(d);else{h.updateData(e,c,l,u);var m={x:d[0],y:d[1]};s?h.attr(m):Ie(h,m,i)}n.add(h),e.setItemGraphicEl(c,h)}).remove(function(c){var v=a.getItemGraphicEl(c);v&&v.fadeOut(function(){n.remove(v)},i)}).execute(),this._getSymbolPoint=f,this._data=e},t.prototype.updateLayout=function(e){var r=this._data;if(r)for(var n=this,i=r.getStore(),a=0,o=i.count();a<o;a++){var s=r.getItemGraphicEl(a),l=n._getSymbolPoint(a);Hl(r,l,a,e)?(s=s||o_(n._SymbolCtor,r,a,n._seriesScope,{disableAnimation:!0},l,n.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(n.group.remove(s),r.setItemGraphicEl(a,null))}},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=a_(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n,i){this._progressiveEls=[],i=i_(i);function a(u){u.isGroup||(u.incremental=n,u.ensureState("emphasis").hoverLayer=Qc)}for(var o=e.start;o<e.end;o++){var s=r.getItemLayout(o);if(Hl(r,s,o,i)){var l=new this._SymbolCtor(r,o,this._seriesScope);l.traverse(a),l.setPosition(s),this.group.add(l),r.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},t.prototype.eachRendered=function(e){yl(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(i){i.fadeOut(function(){r.remove(i)},n.hostModel)}):r.removeAll()},t})();function l_(t,e,r){var n=t.getBaseAxis(),i=t.getOtherAxis(n),a=rP(i,r),o=n.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=$(t.dimensions,function(d){return e.mapDimension(d)}),v=!1,h=e.getCalculationInfo("stackResultDimension");return Ki(e,c[0])&&(v=!0,c[0]=h),Ki(e,c[1])&&(v=!0,c[1]=h),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function rP(t,e){var r=0,n=t.scale.getExtent();return e==="start"?r=n[0]:e==="end"?r=n[1]:me(e)&&!isNaN(e)?r=e:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function u_(t,e,r,n){var i=NaN;t.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=r.get(t.baseDim,n),o[1-a]=i,e.dataToPoint(o)}function Bt(t,e){return!isFinite(t)||!isFinite(e)}var nP=typeof Float32Array!==Bi?Float32Array:void 0,iP=typeof Float64Array!==Bi?Float64Array:void 0;function Gr(t){return Zh({ctor:nP},t).arr}function Zh(t,e){var r=t.arr,n=t.ctor;if(e>cm&&(e=cm),!r||t.typed&&r.length<e){var i=void 0;if(n)try{i=new n(e),t.typed=!0,r&&i.set(r)}catch{}if(!i&&(i=[],t.typed=!1,r))for(var a=0,o=r.length;a<o;a++)i[a]=r[a];t.arr=i}return t}function aP(t,e){var r=[];return e.diff(t).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function oP(t,e,r,n,i,a,o,s){for(var l=aP(t,e),u=[],f=[],c=[],v=[],h=[],d=[],p=[],g=l_(i,e,o),m=t.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],b=!0,w=void 0,T=void 0;switch(S.cmd){case"=":w=S.idx*2,T=S.idx1*2;var C=m[w],D=m[w+1],x=y[T],A=y[T+1];(isNaN(C)||isNaN(D))&&(C=x,D=A),u.push(C,D),f.push(x,A),c.push(r[w],r[w+1]),v.push(n[T],n[T+1]),p.push(e.getRawIndex(S.idx1));break;case"+":var L=S.idx,M=g.dataDimsForPoint,P=i.dataToPoint([e.get(M[0],L),e.get(M[1],L)]);T=L*2,u.push(P[0],P[1]),f.push(y[T],y[T+1]);var E=u_(g,i,e,L);c.push(E[0],E[1]),v.push(n[T],n[T+1]),p.push(e.getRawIndex(L));break;case"-":b=!1}b&&(h.push(S),d.push(d.length))}d.sort(function(K,ae){return p[K]-p[ae]});for(var k=u.length,O=Gr(k),R=Gr(k),N=Gr(k),F=Gr(k),B=[],_=0;_<d.length;_++){var G=d[_],X=_*2,H=G*2;O[X]=u[H],O[X+1]=u[H+1],R[X]=f[H],R[X+1]=f[H+1],N[X]=c[H],N[X+1]=c[H+1],F[X]=v[H],F[X+1]=v[H+1],B[_]=h[G]}return{current:O,next:R,stackedOnCurrent:N,stackedOnNext:F,status:B}}var hn=Math.min,vn=Math.max;function Kh(t,e,r,n,i,a,o,s,l){for(var u,f,c,v,h,d,p=r,g=0;g<n;g++){var m=e[p*2],y=e[p*2+1];if(p>=i||p<0)break;if(Bt(m,y)){if(l){p+=a;continue}break}if(p===r)t[a>0?"moveTo":"lineTo"](m,y),c=m,v=y;else{var _=m-u,S=y-f;if(_*_+S*S<.5){p+=a;continue}if(o>0){for(var b=p+a,w=e[b*2],T=e[b*2+1];w===m&&T===y&&g<n;)g++,b+=a,p+=a,w=e[b*2],T=e[b*2+1],m=e[p*2],y=e[p*2+1],_=m-u,S=y-f;var C=g+1;if(l)for(;Bt(w,T)&&C<n;)C++,b+=a,w=e[b*2],T=e[b*2+1];var D=.5,x=0,A=0,L=void 0,M=void 0;if(C>=n||Bt(w,T))h=m,d=y;else{x=w-u,A=T-f;var P=m-u,E=w-m,k=y-f,O=T-y,R=void 0,N=void 0;if(s==="x"){R=Math.abs(P),N=Math.abs(E);var F=x>0?1:-1;h=m-F*R*o,d=y,L=m+F*N*o,M=y}else if(s==="y"){R=Math.abs(k),N=Math.abs(O);var B=A>0?1:-1;h=m,d=y-B*R*o,L=m,M=y+B*N*o}else R=Math.sqrt(P*P+k*k),N=Math.sqrt(E*E+O*O),D=N/(N+R),h=m-x*o*(1-D),d=y-A*o*(1-D),L=m+x*o*D,M=y+A*o*D,L=hn(L,vn(w,m)),M=hn(M,vn(T,y)),L=vn(L,hn(w,m)),M=vn(M,hn(T,y)),x=L-m,A=M-y,h=m-x*R/N,d=y-A*R/N,h=hn(h,vn(u,m)),d=hn(d,vn(f,y)),h=vn(h,hn(u,m)),d=vn(d,hn(f,y)),x=m-h,A=y-d,L=m+x*N/R,M=y+A*N/R}t.bezierCurveTo(c,v,h,d,m,y),c=L,v=M}else t.lineTo(m,y)}u=m,f=y,p+=a}return g}var f_=(function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t})(),sP=(function(t){V(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:Y.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new f_},e.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&Bt(i[o*2-2],i[o*2-1]);o--);for(;a<o&&Bt(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=Kh(r,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=tn.CMD,s,l,u=n==="x",f=[],c=0;c<a.length;){var v=a[c++],h=void 0,d=void 0,p=void 0,g=void 0,m=void 0,y=void 0,_=void 0;switch(v){case o.M:s=a[c++],l=a[c++];break;case o.L:if(h=a[c++],d=a[c++],_=u?(r-s)/(h-s):(r-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(h-s)*_+s;return u?[r,S]:[S,r]}s=h,l=d;break;case o.C:h=a[c++],d=a[c++],p=a[c++],g=a[c++],m=a[c++],y=a[c++];var b=u?xs(s,h,p,m,r,f):xs(l,d,g,y,r,f);if(b>0)for(var w=0;w<b;w++){var T=f[w];if(T<=1&&T>=0){var S=u?Ye(l,d,g,y,T):Ye(s,h,p,m,T);return u?[r,S]:[S,r]}}s=m,l=y;break}}},e})(pe),lP=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(f_),uP=(function(t){V(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new lP},e.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Bt(i[s*2-2],i[s*2-1]);s--);for(;o<s&&Bt(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=Kh(r,i,o,s,s,1,n.smooth,l,n.connectNulls);Kh(r,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},e})(pe);function jh(){var t=Se();return function(e){var r=t(e),n=e.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var c_=Se(),fP=jh(),je=(function(){function t(){this.group=new Ce,this.uid=vo("viewChart"),this.renderTask=bo({plan:cP,reset:hP}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.highlight=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&v_(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&v_(a,i,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateVisual=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.eachRendered=function(e){yl(this.group,e)},t.markUpdateMethod=function(e,r){c_(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function h_(t,e,r){t&&Hc(t)&&(e==="emphasis"?al:ol)(t,r)}function v_(t,e,r){var n=Wn(t,e),i=e&&e.highlightKey!=null?GD(e.highlightKey):null;n!=null?I(nt(n),function(a){h_(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){h_(a,r,i)})}pf(je),gs(je);function cP(t){return fP(t.model)}function hP(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&c_(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,n,i),vP[l]}var vP={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};function d_(t,e,r,n,i){var a=t.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new De({shape:{x:o,y:s,width:l,height:u}});if(e){var v=t.getBaseAxis(),h=v.isHorizontal(),d=v.inverse;h?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var p=ee(i)?function(g){i(g,c)}:null;Ge(c,{shape:{width:l,height:u,x:o,y:s}},r,null,n,p)}return c}function p_(t,e,r){var n=t.getArea(),i=ve(n.r0,1),a=ve(n.r,1),o=new xr({shape:{cx:ve(t.cx,1),cy:ve(t.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,Ge(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function dP(t,e,r,n,i){if(t){if(t.type==="polar")return p_(t,e,r);if(t.type==="cartesian2d")return d_(t,e,r,n,i)}else return null;return null}function pP(t){var e=t.coordinateSystem;if(t.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}function g_(t,e){return t.type===e}var jt=(function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();gs(jt);var gP=0,Qh=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++gP,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,n=r.data,i=n&&$(n,mP);return new t({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!q(e)&&!n)return e;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var i=this._getOrCreateMap();return r=i.get(e),r==null&&(n?(r=this.categories.length,this.categories[r]=e,i.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=te(this.categories))},t})();function mP(t){return j(t)&&t.value!=null?t.value:t+""}var Ft=0,wo=1,yP={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},m_=ce(yP),Ul=2,y_=3;function Jh(t,e,r){var n;t=t||{};var i=at();if(i){var a=i.createBreakScaleMapper(e,r);a.hasBreaks()&&(I(m_,function(o){a[o]&&(t[o]=de(a[o],a))}),n=a)}return n==null&&SP(t,r),{brk:n,mapper:t}}function __(t,e){I(m_,function(r){t[r]=e[r]})}function S_(t,e){t.freeze=We}function To(t){return t.getExtentUnsafe(Ft,Ul)}function Wl(t,e){return t.getExtentUnsafe(wo,e)||t.getExtentUnsafe(Ft,e)}function _P(t){var e=Wl(t,y_);return e[1]-e[0]}function Yl(t){var e=t.getExtentUnsafe(Ft,y_);return e[1]-e[0]}function SP(t,e){var r=t||{},n=[];return r._extents=n,n[Ft]=e?e.slice():Et(),z(r,bP),r}var bP={needTransform:function(){return!1},normalize:function(t){var e=this._extents[wo]||this._extents[Ft];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[wo]||this._extents[Ft];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=Wl(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[Ft].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){b_(this._extents,Ft,t,e)},setExtent2:function(t,e,r){var n=this._extents;n[t]||(n[t]=n[Ft].slice()),b_(n,t,e,r)},freeze:function(){}};function b_(t,e,r,n){Ni(r,n)&&(t[e][0]=r,t[e][1]=n)}function w_(t){return $l(t)||ea(t)}function $l(t){return t.type==="interval"}function ev(t){return t.type==="time"}function ea(t){return t.type==="log"}function Qt(t){return t.type==="ordinal"}function wP(t){var e=bc(t),r=Un(10,e),n=Or(t/r);return n?n===2?n=3:n===3?n=5:n*=2:n=1,ve(n*r,-e)}function ai(t){return nn(t)+2}function Xl(t,e){return qa(t)/qa(e)}function tv(t,e,r){var n=r&&r.lookup;if(n){for(var i=0;i<n.from.length;i++)if(t===n.from[i])return n.to[i]}return Un(e,t)}function T_(t,e,r){var n=t.slice();if(n[0]===n[1]){var i=r&&r.ctnShp;if(n[0]!==0){var a=Be(n[0]);e[1]||(n[1]+=a/2),n[0]-=a/2}else i&&(n[0]=-1),n[1]=1}return(!Nr(n[0])||!Nr(n[1]))&&(n[0]=0,n[1]=1),n[1]<n[0]&&n.reverse(),n}function TP(t,e){return[t[0]!==e[0],t[1]!==e[1]]}function ql(t,e){return t=t||e,Or(ge(t,1))}function x_(t,e,r){var n=To(t),i=n[0],a=t.count(),o=Math.max((e||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==n[0]&&l(n[0],!0,!0);for(var s=i;s<=n[1];s+=o)l(s,!1,s===n[0]||s===n[1]);s-o!==n[1]&&l(n[1],!0,!0);function l(u,f,c){r({value:u,offInterval:f},c)}}var C_=(function(t){V(e,t);function e(r){var n=t.call(this)||this;n.type="ordinal",n.parse=e.parse,__(n,e.decoratedMethods);var i=r.ordinalMeta;i||(i=new Qh({})),W(i)&&(i=new Qh({categories:$(i,function(o){return j(o)?o.value:o})})),n._ordinalMeta=i;var a=Jh(null,null,r.extent||[0,i.categories.length-1]);return n._mapper=a.mapper,S_(n),n}return e.parse=function(r){return r==null?r=NaN:q(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=Or(r),r},e.prototype.getTicks=function(){var r=[];return x_(this,0,function(n){r.push(n)}),r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=qe(s,n.length);o<l;++o){var u=i[o]=n[o];a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i[o]=f,a[f]=o}},e.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},e.prototype.count=function(){var r=To(this._mapper);return r[1]-r[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(r){return this._mapper.contain(this._getTickNumber(r))&&r>=0&&r<this._ordinalMeta.categories.length},normalize:function(r){return this._mapper.normalize(this._getTickNumber(r))},scale:function(r){return this.getRawOrdinalNumber(Or(this._mapper.scale(r)))},transformIn:function(r,n){return this._mapper.transformIn(this._getTickNumber(r),n)},transformOut:function(r,n){return this.getRawOrdinalNumber(this._mapper.transformOut(r,n))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,n){return this._mapper.getExtentUnsafe(r,n)},setExtent:function(r,n){return this._mapper.setExtent(r,n)},setExtent2:function(r,n,i){return this._mapper.setExtent2(r,n,i)}},e})(jt);jt.registerClass(C_);function rv(t,e,r,n){for(var i=t.getTicks({expandToNicedExtent:!0}),a=[],o=t.getExtent(),s=1;s<i.length;s++){var l=i[s],u=i[s-1];if(!(u.break||l.break)){for(var f=0,c=[],v=l.value-u.value,h=v/e,d=ai(h);f<e-1;){var p=ve(u.value+(f+1)*h,d);p>o[0]&&p<o[1]&&c.push(p),f++}var g=at();g&&g.pruneTicksByBreak("auto",c,r,function(m){return m},n,o),a.push(c)}}return a}var dn=(function(t){V(e,t);function e(r){var n=t.call(this)||this;n.type="interval",n.parse=e.parse,r=r||{};var i=w0(n,r),a=Jh(n,i,null);return n.brk=a.brk,n._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},n}return e.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.getConfig=function(){return oe(this._cfg)},e.prototype.setConfig=function(r){var n=To(this);this._cfg=r=oe(r),r.niceExtent==null&&(r.niceExtent=n.slice()),r.intervalPrecision==null&&(r.intervalPrecision=ai(r.interval))},e.prototype.getTicks=function(r){r=r||{};var n=this._cfg,i=n.interval,a=To(this),o=n.niceExtent,s=n.intervalPrecision,l=at(),u=this.brk,f=l&&u,c=[];if(!i)return c;if(r.breakTicks==="only_break"&&f)return l.addBreaksToTicks(c,u.breaks,a),c;var v=3e3;a[0]<o[0]&&c.push({value:r.expandToNicedExtent?ve(o[0]-i,s):a[0]});for(var h=function(_,S){return Or((S-_)/i)},d=n.intervalCount,p=o[0],g=0;;g++){if(d==null){if(p>o[1]||!isFinite(p)||!isFinite(o[1]))break}else{if(g>d)break;p=qe(p,o[1]),g===d&&(p=o[1])}if(c.push({value:p}),p=ve(p+i,s),u){var m=u.calcNiceTickMultiple(p,h);m>=0&&(p=ve(p+m*i,s))}if(c.length>0&&p===c[c.length-1].value)break;if(c.length>v)return[]}var y=c.length?c[c.length-1].value:o[1];return a[1]>y&&c.push({value:r.expandToNicedExtent?ve(y+i,s):a[1]}),f&&l.pruneTicksByBreak(r.pruneByBreak,c,u.breaks,function(_){return _.value},n.interval,a),f&&r.breakTicks!=="none"&&l.addBreaksToTicks(c,u.breaks,a),c},e.prototype.getMinorTicks=function(r){return rv(this,r,El(this),this._cfg.interval)},e.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=nn(r.value)||0:i==="auto"&&(i=this._cfg.intervalPrecision);var a=ve(r.value,i,!0);return E0(a)},e.type="interval",e})(jt);jt.registerClass(dn);var xP=function(t,e,r,n){for(;r<n;){var i=r+n>>>1;t[i][1]<e?r=i+1:n=i}return r},A_=(function(t){V(e,t);function e(r){var n=t.call(this)||this;n.type="time",n.parse=e.parse,n._locale=r.locale,n._useUTC=r.useUTC,n._interval=0;var i=w0(n,r),a=Jh(n,i,null);return n.brk=a.brk,n}return e.prototype.getLabel=function(r){return Nl(r.value,x0[nL(go(this._minLevelUnit))]||x0.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(r,n,i){return iL(r,n,i,this._locale,this._useUTC)},e.prototype.getTicks=function(r){r=r||{};var n=this._interval,i=To(this),a=at(),o=this.brk,s=a&&o,l=[];if(!n)return l;var u=this._useUTC;if(s&&r.breakTicks==="only_break")return at().addBreaksToTicks(l,o.breaks,i),l;l=PP(this._minLevelUnit,this._approxInterval,u,i,Yl(this),o);var f=St.length-1,c=0;return I(l,function(v){v.time&&(f=Math.min(f,fe(St,v.time.upperTimeUnit)),c=Math.max(c,v.time.level))}),s&&at().pruneTicksByBreak(r.pruneByBreak,l,o.breaks,function(v){return v.value},this._approxInterval,i),s&&r.breakTicks!=="none"&&at().addBreaksToTicks(l,o.breaks,i,function(v){for(var h=Math.max(fe(St,Qi(v.vmin,u)),fe(St,Qi(v.vmax,u))),d=0,p=0;p<St.length;p++)if(!D_(St[p],v.vmin,v.vmax,u)){d=p;break}var g=Math.min(d,f),m=Math.max(g,h);return{level:c,lowerTimeUnit:St[m],upperTimeUnit:St[g]}}),l},e.prototype.getMinorTicks=function(r){return rv(this,r,El(this),this._interval)},e.prototype.setTimeInterval=function(r){this._interval=r.interval,this._approxInterval=r.approxInterval,this._minLevelUnit=r.minLevelUnit},e.parse=function(r){return me(r)?Math.round(r):+Oi(r)},e.type="time",e})(jt),Zl=[["second",Mh],["minute",Ih],["hour",po],["quarter-day",po*6],["half-day",po*12],["day",Nt*1.2],["half-week",Nt*3.5],["week",Nt*7],["month",Nt*31],["quarter",Nt*95],["half-year",T0/2],["year",T0]];function D_(t,e,r,n){return Lh(new Date(e),t,n).getTime()===Lh(new Date(r),t,n).getTime()}function CP(t,e){return t/=Nt,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function AP(t){var e=30*Nt;return t/=e,t>6?6:t>3?3:t>2?2:1}function DP(t){return t/=po,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function M_(t,e){return t/=e?Ih:Mh,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function MP(t){return ge(wc(t,!0),1)}function IP(t,e,r){var n=Math.max(0,fe(St,e)-1);return Lh(new Date(t),St[n],r).getTime()}function LP(t,e){var r=new Date(0);r[t](1);var n=r.getTime();r[t](1+e);var i=r.getTime()-n;return function(a,o){return Math.max(0,Math.round((o-a)/i))}}function PP(t,e,r,n,i,a){var o=3e3,s=JI,l=0;function u(k,O,R,N,F,B,G){for(var X=LP(F,k),H=O,K=new Date(H);H<R&&H<=n[1]&&(G.push({value:H}),!(l++>o));)if(K[F](K[N]()+k),H=K.getTime(),a){var ae=a.calcNiceTickMultiple(H,X);ae>0&&(K[F](K[N]()+ae*k),H=K.getTime())}G.push({value:H,notAdd:H>n[1]})}function f(k,O,R){var N=[],F=!O.length;if(!D_(go(k),n[0],n[1],r)){F&&(O=[{value:IP(n[0],k,r)},{value:n[1]}]);for(var B=0;B<O.length-1;B++){var G=O[B].value,X=O[B+1].value;if(G!==X){var H=void 0,K=void 0,ae=void 0,ke=!1;switch(k){case"year":H=Math.max(1,Math.round(e/Nt/365)),K=C0(r),ae=aL(r);break;case"half-year":case"quarter":case"month":H=AP(e),K=Ph(r),ae=A0(r);break;case"week":case"half-week":case"day":H=CP(e),K=Eh(r),ae=D0(r),ke=!0;break;case"half-day":case"quarter-day":case"hour":H=DP(e),K=kh(r),ae=M0(r);break;case"minute":H=M_(e,!0),K=Rh(r),ae=I0(r);break;case"second":H=M_(e,!1),K=Oh(r),ae=L0(r);break;case"millisecond":H=MP(e),K=Nh(r),ae=P0(r);break}X>=n[0]&&G<=n[1]&&u(H,G,X,K,ae,ke,N),k==="year"&&R.length>1&&B===0&&R.unshift({value:R[0].value-H})}}for(var B=0;B<N.length;B++)R.push(N[B])}}for(var c=[],v=[],h=0,d=0,p=0;p<s.length;++p){var g=go(s[p]);if(rL(s[p])){f(s[p],c[c.length-1]||[],v);var m=s[p+1]?go(s[p+1]):null;if(g!==m){if(v.length){d=h,v.sort(function(k,O){return k.value-O.value});for(var y=[],_=0;_<v.length;++_){var S=v[_].value;(_===0||v[_-1].value!==S)&&(y.push(v[_]),S>=n[0]&&S<=n[1]&&h++)}var b=i/e;if(h>b*1.5&&d>b/1.5||(c.push(y),h>b||t===s[p]))break}v=[]}}}for(var w=Ue($(c,function(k){return Ue(k,function(O){return O.value>=n[0]&&O.value<=n[1]&&!O.notAdd})}),function(k){return k.length>0}),T=w.length-1,C=[],p=0;p<w.length;++p)for(var D=w[p],x=0;x<D.length;++x){var A=Qi(D[x].value,r);C.push({value:D[x].value,time:{level:T-p,upperTimeUnit:A,lowerTimeUnit:A}})}Mc(C,_D,null),C.sort(function(k,O){return k.value-O.value});var L=C[0],M=C[C.length-1],P=Qi(n[0],r),E=Qi(n[1],r);return(!L||L.value>n[0])&&C.unshift({value:n[0],time:{level:0,upperTimeUnit:P,lowerTimeUnit:P},notNice:!0}),(!M||M.value<n[1])&&C.push({value:n[1],time:{level:0,upperTimeUnit:E,lowerTimeUnit:E},notNice:!0}),C}var EP=function(t,e){var r=t.getExtent();if(r[0]===r[1]&&(r[0]-=Nt,r[1]+=Nt),r[1]===-1/0&&r[0]===1/0){var n=new Date;r[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),r[0]=r[1]-Nt}t.setExtent(r[0],r[1]);var i=ql(e.splitNumber,10),a=Yl(t)/i,o=e.minInterval,s=e.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var l=Zl.length,u=Math.min(xP(Zl,a,0,l),l-1),f=Zl[u][1],c=Zl[Math.max(u-1,0)][0];t.setTimeInterval({approxInterval:a,interval:f,minLevelUnit:c})};jt.registerClass(A_);var Kl=0,jl=1,kP=2,I_=(function(t){V(e,t);function e(r){var n=t.call(this)||this;n.type="log",n.parse=dn.parse,n.base=r.logBase||10;var i=[],a=[],o=n._lookup={from:i,to:a};i[Kl]=i[jl]=a[Kl]=a[jl]=NaN,__(n,e.mapperMethods);var s=at(),l=r.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,n,{noNegative:!0},kP,u),n.powStub=new dn({breakParsed:u.original}),n.intervalStub=new dn({breakParsed:u.transformed}),S_(n,n.intervalStub),n}return e.prototype.getTicks=function(r){var n=this.base,i=this.powStub,a=at(),o=this.intervalStub,s=o.getExtent(),l=i.getExtent(),u={lookup:{from:s,to:l}};return $(o.getTicks(r||{}),function(f){var c=f.value,v=tv(c,n,u),h;if(a){var d=a.getTicksBreakOutwardTransform(this,f,El(i),this._lookup);d&&(h=d.vBreak,v=d.tickVal)}return{value:v,break:h}},this)},e.prototype.getMinorTicks=function(r){return rv(this,r,El(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(r,n){return this.intervalStub.getLabel(r,n)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(Xl(r,this.base))},scale:function(r){return tv(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,n){return r=Xl(r,this.base),n&&n.depth===Ul?r:this.intervalStub.transformIn(r,n)},transformOut:function(r,n){var i=n?n.depth:null;return L_.depth=i,P_.lookup=this._lookup,tv(i===Ul?r:this.intervalStub.transformOut(r,L_),this.base,P_)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,n){this.setExtent2(Ft,r,n)},setExtent2:function(r,n,i){if(!(!Ni(n,i)||n<=0||i<=0)){var a=E_,o=E_;if(r===Ft){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(r,a[Kl]=n,a[jl]=i);var l=this.base;this.intervalStub.setExtent2(r,o[Kl]=Xl(n,l),o[jl]=Xl(i,l))}},getFilter:function(){return{g:0}},sanitize:function(r,n){return Ni(n[0],n[1])&&Lt(r)&&r<=0&&(r=n[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,n){return n===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,n)}},e})(jt);jt.registerClass(I_);var L_={},P_={},E_=[],k_={value:1,category:1,time:1,log:1},R_=Se();function RP(t){var e=t.get("type");return(e==null||!tt(k_,e)&&!jt.getClass(e))&&(e="value"),e}function OP(t,e,r){var n=at(),i;switch(n&&(i=O_(t,e)),e){case"category":return new C_({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:Et()});case"time":return new A_({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:i});case"log":return new I_({logBase:t.get("logBase"),breakOption:i});case"value":return new dn({breakOption:i});default:return new(jt.getClass(e)||dn)({})}}function NP(t,e,r){var n=t.getExtentUnsafe(Ft,null),i=n[0],a=n[1];return Ni(i,a)?i===e||a===e?FP:i<e&&a>e?BP:nv:nv}var BP=1,FP=2,nv=3;function zP(t){R_(t).noOnMyZero=!0}function VP(t){return R_(t).noOnMyZero}function Ql(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=eL(e);return function(i,a){return t.scale.getFormattedLabel(i,a,r)}}else{if(q(e))return function(i){var a=t.scale.getLabel(i),o=e.replace("{value}",a??"");return o};if(ee(e)){if(t.type==="category")return function(i,a){return e(Jl(t,i),i.value-t.scale.getExtent()[0],null)};var n=at();return function(i,a){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,i.break)),e(Jl(t,i),a,o)}}else return function(i){return t.scale.getLabel(i)}}}function Jl(t,e){var r=t.scale;return Qt(r)?r.getLabel(e):e.value}function iv(t){var e=t.get("interval");return e??"auto"}function GP(t){return t.type==="category"&&iv(t.getLabelModel())===0}function HP(t,e){var r={};return I(t.mapDimensionsAll(e),function(n){r[LI(t,n)]=!0}),ce(r)}function ta(t){return t==="middle"||t==="center"}function xo(t){return t.getShallow("show")}function O_(t,e,r){var n=t.get("breaks",!0);if(n!=null)return!at()||!UP(e)?void 0:n}function UP(t){return t!=="category"}function N_(t,e,r,n,i,a){var o=ea(t),s=o?t.intervalStub:t;if(s.setExtent(n[0],n[1]),o){var l=t.powStub,u={depth:Ul},f=t.transformOut(n[0],u),c=t.transformOut(n[1],u),v=TP(r,n);e[0]&&!v[0]&&(f=i[0]),e[1]&&!v[1]&&(c=i[1]),l.setExtent(f,c)}s.setConfig(a)}function Co(t,e){return Qt(t)?t.getRawOrdinalNumber(e.value):e.value}function B_(t,e){return Qt(t)&&!!e.get("boundaryGap")}function F_(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function z_(t){for(var e=Et(),r=Et(),n=0;n<t.length;){var i=t[n++],a=t[n++];Bt(i,a)||(Dc(e,i),Dc(r,a))}return[e,r]}function V_(t,e){var r=z_(t),n=r[0],i=r[1],a=z_(e),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(i[0]-s[0]),Math.abs(n[1]-o[1]),Math.abs(i[1]-s[1]))}function G_(t){return me(t)?t:t?.5:0}function WP(t,e,r){if(r.valueDim==null)return[];for(var n=e.count(),i=Gr(n*2),a=0;a<n;a++){var o=u_(r,t,e,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function pn(t,e,r,n,i){var a=r.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],v=[];if(i){for(l=0;l<t.length;l+=2){var h=e||t;Bt(h[l],h[l+1])||v.push(t[l],t[l+1])}t=v}for(l=0;l<t.length-2;l+=2)switch(c[0]=t[l+2],c[1]=t[l+3],f[0]=t[l],f[1]=t[l+1],s.push(f[0],f[1]),n){case"end":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+c[o])/2,p=[];u[o]=p[o]=d,u[1-o]=f[1-o],p[1-o]=c[1-o],s.push(u[0],u[1]),s.push(p[0],p[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function YP(t,e){var r=[],n=t.length,i,a;function o(f,c,v){var h=f.coord,d=(v-h)/(c.coord-h),p=YC(d,[f.color,c.color]);return{coord:v,color:p}}for(var s=0;s<n;s++){var l=t[s],u=l.coord;if(u<0)i=l;else if(u>e){a?r.push(o(a,l,e)):i&&r.push(o(i,l,0),o(i,l,e));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function $P(t,e,r){var n=t.getVisual("visualMeta");if(!(!n||!n.length||!t.count())&&e.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=t.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=e.getAxis(i),u=$(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var v=YP(u,i==="x"?r.getWidth():r.getHeight()),h=v.length;if(!h&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=v[0].coord-d,g=v[h-1].coord+d,m=g-p;if(m<.001)return"transparent";I(v,function(_){_.offset=(_.coord-p)/m}),v.push({offset:h?v[h-1].offset:.5,color:c[1]||"transparent"}),v.unshift({offset:h?v[0].offset:.5,color:c[0]||"transparent"});var y=new cy(0,0,0,0,v,!0);return y[i]=p,y[i+"2"]=g,y}}}function XP(t,e,r){var n=t.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&qP(a,e))){var o=e.mapDimension(a.dim),s={};return I(a.getViewLabels(),function(l){l.tick.offInterval||(s[Co(a.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function qP(t,e){var r=t.getExtent(),n=Math.abs(r[1]-r[0])/t.scale.count();isNaN(n)&&(n=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(qh.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>n)return!1;return!0}function ZP(t){for(var e=t.length/2;e>0&&Bt(t[e*2-2],t[e*2-1]);e--);return e-1}function H_(t,e){return[t[e*2],t[e*2+1]]}function KP(t,e,r){for(var n=t.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=t[u*2+i],!Bt(o,t[u*2+1-i])){if(u===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function U_(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Rt.length;e++)if(t.get([Rt[e],"endLabel","show"]))return!0;return!1}function av(t,e,r,n){if(g_(e,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=U_(n)?function(h,d){t._endLabelOnDuring(h,d,o,s,a,i,e)}:null,u=e.getBaseAxis().isHorizontal(),f=d_(e,r,n,function(){var h=t._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=f.shape,v=Math.max(c.width,c.height);u?(c.y-=v,c.height+=v*2):(c.x-=v,c.width+=v*2)}return l&&l(1,f),f}else return p_(e,r,n)}function jP(t,e){var r=e.getBaseAxis(),n=r.isHorizontal(),i=r.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:t.get("align")||a,verticalAlign:t.get("verticalAlign")||o}}}var QP=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new Ce,n=new s_;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r,this._changePolyState=de(this._changePolyState,this)},e.prototype.render=function(r,n,i){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),f=s.getLayout("points")||[],c=a.type==="polar",v=this._coordSys,h=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,m=!n.ssr&&r.get("animation"),y=!u.isEmpty(),_=u.get("origin"),S=l_(a,s,_),b=y&&WP(a,s,S),w=r.get("showSymbol"),T=r.get("connectNulls"),C=w&&!c&&XP(r,s,a),D=this._data;D&&D.eachItemGraphicEl(function(he,Te){he.__temp&&(o.remove(he),D.setItemGraphicEl(Te,null))}),w||h.remove(),o.add(g);var x=c?!1:r.get("step"),A;a&&a.getArea&&r.get("clip",!0)&&(A=a.getArea(),A.width!=null?(A.x-=.1,A.y-=.1,A.width+=.2,A.height+=.2):A.r0&&(A.r0-=.5,A.r+=.5)),this._clipShapeForSymbol=A;var L=$P(s,a,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&v.type===a.type&&x===this._step))w&&h.updateData(s,{isIgnore:C,clipShape:A,disableAnimation:!0,getSymbolPoint:function(he){return[f[he*2],f[he*2+1]]}}),m&&this._initSymbolLabelAnimation(s,a,A),x&&(b&&(b=pn(b,f,a,x,T)),f=pn(f,null,a,x,T)),d=this._newPolyline(f),y?p=this._newPolygon(f,b):p&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,ri(L)),g.setClipPath(av(this,a,!0,r));else{y&&!p?p=this._newPolygon(f,b):p&&!y&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,ri(L));var M=g.getClipPath();if(M){var P=av(this,a,!1,r);Ge(M,{shape:P.shape},r)}else g.setClipPath(av(this,a,!0,r));w&&h.updateData(s,{isIgnore:C,clipShape:A,disableAnimation:!0,getSymbolPoint:function(he){return[f[he*2],f[he*2+1]]}}),(!F_(this._stackedOnPoints,b)||!F_(this._points,f))&&(m?this._doUpdateAnimation(s,b,a,i,x,_,T):(x&&(b&&(b=pn(b,f,a,x,T)),f=pn(f,null,a,x,T)),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:b})))}var E=r.getModel("emphasis"),k=E.get("focus"),O=E.get("blurScope"),R=E.get("disabled");if(d.useStyle(le(l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),zr(d,r,"lineStyle"),d.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var N=d.getState("emphasis").style;N.lineWidth=+d.style.lineWidth+1}ue(d).seriesIndex=r.seriesIndex,Fr(d,k,O,R);var F=G_(r.get("smooth")),B=r.get("smoothMonotone");if(d.setShape({smooth:F,smoothMonotone:B,connectNulls:T}),p){var G=s.getCalculationInfo("stackedOnSeries"),X=0;p.useStyle(le(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),G&&(X=G_(G.get("smooth"))),p.setShape({smooth:F,stackedOnSmooth:X,smoothMonotone:B,connectNulls:T}),zr(p,r,"areaStyle"),ue(p).seriesIndex=r.seriesIndex,Fr(p,k,O,R)}var H=this._changePolyState;s.eachItemGraphicEl(function(he){he&&(he.onHoverStateChange=H)}),this._polyline.onHoverStateChange=H,this._data=s,this._coordSys=a,this._stackedOnPoints=b,this._points=f,this._step=x,this._valueOrigin=_;var K=r.get("triggerEvent"),ae=r.get("triggerLineEvent"),ke=ae===!0||K===!0||K==="line",Ae=ae===!0||K===!0||K==="area";this.packEventData(r,d,ke),p&&this.packEventData(r,p,Ae)},e.prototype.packEventData=function(r,n,i){ue(n).eventData=i?{componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line",selfType:n===this._polygon?"area":"line"}:null},e.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=Wn(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(Bt(f,c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var v=r.get("zlevel")||0,h=r.get("z")||0;u=new qh(o,s),u.x=f,u.y=c,u.setZ(v,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=h,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else je.prototype.highlight.call(this,r,n,i,a)},e.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Wn(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else je.prototype.downplay.call(this,r,n,i,a)},e.prototype._changePolyState=function(r){var n=this._polygon;Vm(this._polyline,r),n&&Vm(n,r)},e.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new sP({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new uP({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");ee(f)&&(f=f(null));var c=u.get("animationDelay")||0,v=ee(c)?c(null):c;r.eachItemGraphicEl(function(h,d){var p=h;if(p){var g=[h.x,h.y],m=void 0,y=void 0,_=void 0;if(i)if(o){var S=i,b=n.pointToCoord(g);a?(m=S.startAngle,y=S.endAngle,_=-b[1]/180*Math.PI):(m=S.r0,y=S.r,_=b[0])}else{var w=i;a?(m=w.x,y=w.x+w.width,_=h.x):(m=w.y+w.height,y=w.y,_=h.y)}var T=y===m?0:(_-m)/(y-m);l&&(T=1-T);var C=ee(c)?c(d):f*T+v,D=p.getSymbolPath(),x=D.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:C}),D.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(U_(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Me({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=ZP(l);f>=0&&(Kn(s,jn(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:f,defaultText:function(c,v,h){return h!=null?n_(o,h):Xh(o,c)},enableTextSetter:!0},jP(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=i.getLayout("points"),v=i.hostModel,h=v.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,_=n.shape,S=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,b=(m?p:0)*(y?-1:1),w=(m?0:-p)*(y?-1:1),T=m?"x":"y",C=KP(c,S,T),D=C.range,x=D[1]-D[0],A=void 0;if(x>=1){if(x>1&&!h){var L=H_(c,D[0]);u.attr({x:L[0]+b,y:L[1]+w}),o&&(A=v.getRawValue(D[0]))}else{var L=f.getPointOn(S,T);L&&u.attr({x:L[0]+b,y:L[1]+w});var M=v.getRawValue(D[0]),P=v.getRawValue(D[1]);o&&(A=Tm(i,d,M,P,C.t))}a.lastFrameIndex=D[0]}else{var E=r===1||a.lastFrameIndex>0?D[0]:0,L=H_(c,E);o&&(A=v.getRawValue(E)),u.attr({x:L[0]+b,y:L[1]+w})}if(o){var k=so(u);typeof k.setLabelText=="function"&&k.setLabelText(A)}}},e.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,v=oP(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),h=v.current,d=v.stackedOnCurrent,p=v.next,g=v.stackedOnNext;if(o&&(d=pn(v.stackedOnCurrent,v.current,i,o,l),h=pn(v.current,null,i,o,l),g=pn(v.stackedOnNext,v.next,i,o,l),p=pn(v.next,null,i,o,l)),V_(h,p)>3e3||f&&V_(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=v.current,u.shape.points=h;var m={shape:{points:p}};v.current!==h&&(m.shape.__points=v.next),u.stopAnimation(),Ie(u,m,c),f&&(f.setShape({points:h,stackedOnPoints:d}),f.stopAnimation(),Ie(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=v.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var w=r.getItemGraphicEl(_[S].idx1);w&&y.push({el:w,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var T=u.shape.__points,C=0;C<y.length;C++){var D=y[C].el,x=y[C].ptIdx*2;D.x=T[x],D.y=T[x+1],D.markRedraw()}})},e.prototype.remove=function(r){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(je);function ov(t,e){return{seriesType:t,plan:jh(),reset:function(r){var n=r.getData(),i=r.coordinateSystem,a=r.pipelineContext,o=e||a.large;if(i){var s=$(i.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");Ki(n,s[0])&&(s[0]=u),Ki(n,s[1])&&(s[1]=u);var f=n.getStore(),c=n.getDimensionIndex(s[0]),v=n.getDimensionIndex(s[1]);return l&&{progress:function(h,d){for(var p=h.end-h.start,g=o&&Gr(p*l),m=[],y=[],_=h.start,S=0;_<h.end;_++){var b=void 0;if(l===1){var w=f.get(c,_);b=i.dataToPoint(w,null,y)}else m[0]=f.get(c,_),m[1]=f.get(v,_),b=i.dataToPoint(m,null,y);o?(g[S++]=b[0],g[S++]=b[1]):d.setItemLayout(_,b.slice())}o&&(d.setLayout("points",g),d.setLayout("pointsRange",{start:h.start,end:h.end}))}}}}}}var JP={average:function(t){for(var e=0,r=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},e2=function(t){return Math.round(t.length/2)};function W_(t){return{seriesType:t,reset:function(e,r,n){var i=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/v);if(isFinite(h)&&h>1){a==="lttb"?e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h)):a==="minmax"&&e.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/h));var d=void 0;q(a)?d=JP[a]:ee(a)&&(d=a),d&&e.setData(i.downSample(i.mapDimension(u.dim),1/h,d,e2))}}}}}function t2(t){t.registerChartView(QP),t.registerSeriesModel(eP),t.registerLayout(ov("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,W_("line"))}var r2=Se(),Ao=Se(),Jt={estimate:1,determine:2};function eu(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function n2(t,e){var r=t.getLabelModel().get("customValues");if(r){var n=t.scale;return{labels:$(Y_(r,n),function(i,a){return{formattedLabel:Ql(t)(i,a),rawLabel:n.getLabel(i),tick:i}})}}return t.type==="category"?a2(t,e):s2(t)}function i2(t,e,r){var n=t.scale,i=t.getTickModel().get("customValues");return i?{ticks:Y_(i,n)}:t.type==="category"?o2(t,e):{ticks:n.getTicks(r)}}function Y_(t,e){var r=e.getExtent(),n=[];return I(t,function(i){i=e.parse(i),i>=r[0]&&i<=r[1]&&n.push(i)}),Mc(n,SD,null),Sc(n),$(n,function(i){return{value:i}})}function a2(t,e){var r=t.getLabelModel(),n=$_(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:n}function $_(t,e,r){var n=u2(t),i=iv(e),a=r.kind===Jt.estimate;if(!a){var o=q_(n,i);if(o)return o}var s,l;ee(i)?s=tu(t,i,!1):(l=i==="auto"?f2(t,r):i,s=tu(t,l,!1));var u={labels:s,labelCategoryInterval:l};return a?r.out.noPxChangeTryDetermine.push(function(){return sv(n,i,u),!0}):sv(n,i,u),u}function o2(t,e){var r=l2(t),n=iv(e),i=q_(r,n);if(i)return i;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),ee(n))a=tu(t,n,!0);else if(n==="auto"){var s=$_(t,t.getLabelModel(),eu(Jt.determine));o=s.labelCategoryInterval,a=$(s.labels,function(l){return l.tick})}else o=n,a=tu(t,o,!0);return sv(r,n,{ticks:a,tickCategoryInterval:o})}function s2(t){var e=t.scale.getTicks(),r=Ql(t);return{labels:$(e,function(n,i){return{formattedLabel:r(n,i),rawLabel:t.scale.getLabel(n),tick:n}})}}var l2=X_("axisTick"),u2=X_("axisLabel");function X_(t){return function(r){return Ao(r)[t]||(Ao(r)[t]={list:[]})}}function q_(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function sv(t,e,r){return t.list.push({key:e,value:r}),r}function f2(t,e){if(e.kind===Jt.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Ao(t).autoInterval=r,!0}),r}var n=Ao(t).autoInterval;return n??(Ao(t).autoInterval=t.calculateCategoryInterval(e))}function c2(t,e){var r=e.kind,n=v2(t),i=Ql(t),a=(n.axisRotate-n.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],v=t.dataToCoord(c+1)-t.dataToCoord(c),h=Math.abs(v*Math.cos(a)),d=Math.abs(v*Math.sin(a)),p=0,g=0;c<=s[1];c+=u){var m=0,y=0,_=ag(i({value:c}),n.font,"center","top");m=_.width*1.3,y=_.height*1.3,p=Math.max(p,m,7),g=Math.max(g,y,7)}var S=p/h,b=g/d;isNaN(S)&&(S=1/0),isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(Math.min(S,b)));if(r===Jt.estimate)return e.out.noPxChangeTryDetermine.push(de(h2,null,t,w,l)),w;var T=Z_(t,w,l);return T??w}function h2(t,e,r){return Z_(t,e,r)==null}function Z_(t,e,r){var n=r2(t.model),i=t.getExtent(),a=n.lastAutoInterval,o=n.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-r)<=1&&a>e&&n.axisExtent0===i[0]&&n.axisExtent1===i[1])return a;n.lastTickCount=r,n.lastAutoInterval=e,n.axisExtent0=i[0],n.axisExtent1=i[1]}function v2(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function tu(t,e,r){var n=Ql(t),i=t.scale,a=[],o=ee(e);return x_(i,o?0:e,function(s,l){var u=i.getLabel(s);if(o){var f=!!e(s.value,u);if(s.offInterval=!f,!f&&!l)return}a.push(r?s:{formattedLabel:n(s),rawLabel:u,tick:s})}),a}var ru=Se();function d2(t){ru(t).prepare={}}function p2(t){ru(t).fullUpdate={}}function g2(t){return ru(t).prepare}function ra(t){return ru(t).fullUpdate}var m2=Am(),lv="|&",na=Se(),K_=-2,y2=-1,_2=Se();function j_(t,e){var r=t.model,n=na(ra(r.ecModel)).keyed,i=n&&n.get(e);return i&&i.get(r.uid)}function S2(t,e){return J_(j_(t,e))}function b2(t,e){var r=[];return Q_(t.model.ecModel,function(n){for(var i=0;i<e.length;i++)e[i]&&n.serByIdx[e[i].seriesIndex]&&r.push(J_(n))}),r}function Q_(t,e){var r=na(ra(t)).keyed;r&&r.each(function(n,i){n.each(function(a,o){e(a,i,o)})})}function J_(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function w2(t,e){var r=t.model.ecModel,n=na(ra(r)).axSer;n&&uv(r,n.get(t.model.uid),e)}function eS(t,e,r){var n=j_(t,e);n&&uv(t.model.ecModel,n.sers,r)}function uv(t,e,r){if(e)for(var n=0;n<e.length;n++){var i=e[n];t.isSeriesFiltered(i)||r(i)}}function T2(t,e,r){var n=na(ra(t)).keyed,i=n&&n.get(e);i&&i.each(function(a){r(a.axis)})}function tS(t,e){var r=t.model,n=na(ra(r.ecModel)).keys;n&&I(n.get(r.uid),function(i){e(i)})}function x2(t){var e=_2(g2(t)),r=e.keyed||(e.keyed=te());Q_(t,function(n,i,a){var o=r.get(i)||r.set(i,te()),s=o.get(a)||o.set(a,{});n.metrics.liPosMinGap&&rS.liPosMinGap(t,n,s)})}function C2(t,e){rS[t]=e}var rS={};function fv(t,e,r){if(t){var n=e.ecModel,i=na(ra(n)),a=t.model.uid,o=i.axSer||(i.axSer=te()),s=o.get(a)||o.set(a,[]);s.push(e);var l=e.subType,u=e.getBaseAxis()===t,f=hv.get(cv(l,u,r))||hv.get(cv(l,u,null));if(f){var c=i.keyed||(i.keyed=te()),v=i.keys||(i.keys=te()),h=f.key,d=c.get(h)||c.set(h,te()),p=d.get(a);p||(p=d.set(a,{axis:t,sers:[],serByIdx:[]}),p.metrics=f.getMetrics(t),(v.get(a)||v.set(a,[])).push(h)),p.sers.push(e),p.serByIdx[e.seriesIndex]=e}}}function cv(t,e,r){return t+lv+Z(e,!0)+lv+(r||"")}function A2(t,e){var r=cv(e.seriesType,e.baseAxis,e.coordSysType);hv.set(r,e),m2(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:x2})})}var hv=te(),D2=.8;function ia(t,e){e=e||{};var r={w:NaN,w2:NaN},n=t.scale,i=e.fromStat,a=e.min,o=_P(n);Lt(o)||(o=NaN);var s=t.getExtent(),l=Be(s[1]-s[0]);return Qt(n)?M2(r,t,o,l):i&&I2(r,t,o,l,i),a!=null&&(r.w=Lt(r.w)?ge(a,r.w):a),r}function M2(t,e,r,n){var i=e.onBand,a=r+(i?1:0);a===0&&(a=1),t.w=n/a,!i&&r&&n&&(t.w2=t.w*r/n)}function I2(t,e,r,n,i){var a=!1,o=-1/0;I(i.key?[S2(e,i.key)]:b2(e,i.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),a=!1):l===K_&&(a=!0))}),Lt(r)&&r>0&&Lt(o)?(t.w=n/r*o,t.w2=o):a&&(t.w=n*D2,t.w2=t.w*r/n)}var nS=[0,1],iS=(function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return e>=n&&e<=i},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this.scale;return e=n.normalize(n.parse(e)),It(e,nS,aS(this),r)},t.prototype.coordToData=function(e,r){var n=It(e,aS(this),nS,r);return this.scale.scale(n)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),n=i2(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),i=$(n.ticks,function(s){return{coord:this.dataToCoord(Co(this.scale,s)),tick:s}},this),a=r.get("alignWithLabel"),o=L2(this,i,a);return $(i,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},t.prototype.getMinorTicksCoords=function(){if(Qt(this.scale))return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=$(n,function(a){return $(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},t.prototype.getViewLabels=function(e){return e=e||eu(Jt.determine),n2(this,e).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){return ia(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(e){return e=e||eu(Jt.determine),c2(this,e)},t})();function aS(t){var e=t.getExtent();if(t.onBand){var r=e[1]-e[0],n=r/t.scale.count()/2;e[0]+=n,e[1]-=n}return e}function L2(t,e,r){var n=e.length;if(!t.onBand||r||!n)return!1;var i=ia(t).w;if(!i)return!1;I(e,function(s){s.coord-=i/2});var a=t.scale.getExtent(),o=e[n-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var P2=(function(t){V(e,t);function e(r,n,i,a,o){var s=t.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e})(iS),oS=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],E2=1,nu=2,sS=E2|nu;function iu(t,e,r){r=r||sS,e?t.dirty|=r:t.dirty&=~r}function lS(t,e){return e=e||sS,t.dirty==null||!!(t.dirty&e)}function Dr(t){if(t)return lS(t)&&uS(t,t.label,t),t}function uS(t,e,r){var n=e.getComputedTransform();t.transform=oh(t.transform,n);var i=t.localRect=ao(t.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,f=a.__marginType;f==null&&u&&(o=u,f=Yi.textMargin);for(var c=0;c<4;c++)vv[c]=f===Yi.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===Yi.textMargin&&gl(i,vv,!1,!1);var v=t.rect=ao(t.rect,i);return n&&v.applyTransform(n),f===Yi.minMargin&&gl(v,vv,!1,!1),t.axisAligned=ah(n),(t.label=t.label||{}).ignore=e.ignore,iu(t,!1),iu(t,!0,nu),t}var vv=[0,0,0,0];function k2(t,e,r){return t.transform=oh(t.transform,r),t.localRect=ao(t.localRect,e),t.rect=ao(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=ah(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function R2(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var n=t.rect;n&&(n.x+=e.x,n.y+=e.y);var i=t.obb;i&&i.fromBoundingRect(t.localRect,r)}}function fS(t,e){for(var r=0;r<oS.length;r++){var n=oS[r];t[n]==null&&(t[n]=e[n])}return Dr(t)}function cS(t){var e=t.obb;return(!e||lS(t,nu))&&(t.obb=e=e||new hy,e.fromBoundingRect(t.localRect,t.transform),iu(t,!1,nu)),e}function O2(t,e,r,n,i){var a=t.length,o=sn[e],s=Wi[e];if(a<2)return!1;t.sort(function(T,C){return T.rect[o]-C.rect[o]});for(var l=0,u,f=!1,c=0;c<a;c++){var v=t[c],h=v.rect;u=h[o]-l,u<0&&(h[o]-=u,v.label[o]-=u,f=!0),l=h[o]+h[s]}var d=t[0],p=t[a-1],g,m;y(),g<0&&b(-g,.8),m<0&&b(m,.8),y(),_(g,m,1),_(m,g,-1),y(),g<0&&w(-g),m<0&&w(m);function y(){g=d.rect[o]-r,m=n-p.rect[o]-p.rect[s]}function _(T,C,D){if(T<0){var x=Math.min(C,-T);if(x>0){S(x*D,0,a);var A=x+T;A<0&&b(-A*D,1)}else b(-T*D,1)}}function S(T,C,D){T!==0&&(f=!0);for(var x=C;x<D;x++){var A=t[x],L=A.rect;L[o]+=T,A.label[o]+=T}}function b(T,C){for(var D=[],x=0,A=1;A<a;A++){var L=t[A-1].rect,M=Math.max(t[A].rect[o]-L[o]-L[s],0);D.push(M),x+=M}if(x){var P=Math.min(Math.abs(T)/x,C);if(T>0)for(var A=0;A<a-1;A++){var E=D[A]*P;S(E,0,A+1)}else for(var A=a-1;A>0;A--){var E=D[A-1]*P;S(-E,A,a)}}}function w(T){var C=T<0?-1:1;T=Math.abs(T);for(var D=Math.ceil(T/(a-1)),x=0;x<a-1;x++)if(C>0?S(D,0,x+1):S(-D,a-x-1,a),T-=D,T<=0)return}return f}function N2(t){var e=[];t.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function r(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var n=0;n<t.length;n++){var i=Dr(t[n]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,l=0;l<e.length;l++)if(dv(i,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):e.push(i)}}}function dv(t,e,r,n){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,n)?!1:t.axisAligned&&e.axisAligned?!0:cS(t).intersect(cS(e),r,n)}var B2=null;function au(){return B2}var F2="expandAxisBreak",gn=Math.PI,z2=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],V2=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],oi=Se(),hS=Se(),vS=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,n=e.componentIndex,i=this.recordMap,a=i[r]||(i[r]=[]);return a[n]||(a[n]={ready:{}})},t})();function G2(t,e,r,n){var i=r.axis,a=e.ensureRecord(r),o=[],s,l=gv(t.axisName)&&ta(t.nameLocation);I(n,function(d){var p=Dr(d);if(!(!p||p.label.ignore)){o.push(p);var g=a.transGroup;l&&(g.transform?Pa(Do,g.transform):Ia(Do),p.transform&&La(Do,Do,p.transform),ne.copy(ou,p.localRect),ou.applyTransform(Do),s?s.union(ou):ne.copy(s=new ne(0,0,0,0),ou))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-f)-Math.abs(p.label[u]-f)}),l&&s){var c=i.getExtent(),v=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-v;s.union(new ne(v,0,h,1))}a.stOccupiedRect=s,a.labelInfoList=o}var Do=dr(),ou=new ne(0,0,0,0),dS=function(t,e,r,n,i,a){if(ta(t.nameLocation)){var o=a.stOccupiedRect;o&&pS(k2({},o,a.transGroup.transform),n,i)}else gS(a.labelInfoList,a.dirVec,n,i)};function pS(t,e,r){var n=new re;dv(t,e,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&R2(e,n)}function gS(t,e,r,n){for(var i=re.dot(n,e)>=0,a=0,o=t.length;a<o;a++){var s=t[i?a:o-1-a];s.label.ignore||pS(s,r,n)}}var Hr=(function(){function t(e,r,n,i){this.group=new Ce,this._axisModel=e,this._api=r,this._local={},this._shared=i||new vS(dS),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(e){var r=this._cfg.raw;r.position=e.position,r.labelOffset=e.labelOffset,this._resetCfgDetermined(r)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,n=r.getDefaultOption?r.getDefaultOption():{},i=Z(e.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=Z(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:Z(e.nameDirection,1),tickDirection:Z(e.tickDirection,1),labelDirection:Z(e.labelDirection,1),labelOffset:Z(e.labelOffset,0),silent:Z(e.silent,!0),axisName:i,nameLocation:bn(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:gv(i)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new Ce({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new re(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),I(H2,function(i){e[i]&&U2[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},t.innerTextLayout=function(e,r,n){var i=hm(r-e),a,o;return Zs(i)?(o=n>0?"top":"bottom",a="center"):Zs(i-gn)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<gn?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t})(),H2=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],U2={axisLine:function(t,e,r,n,i,a,o){var s=n.get(["axisLine","show"]);if(s==="auto"&&(s=!0,t.raw.axisLineAutoShow!=null&&(s=!!t.raw.axisLineAutoShow)),!!s){var l=n.axis.getExtent(),u=a.transform,f=[l[0],0],c=[l[1],0],v=f[0]>c[0];u&&(wt(f,f,u),wt(c,c,u));var h=z({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(n.get(["axisLine","breakLine"])&&kl(n.axis.scale))au().buildAxisBreakLine(n,i,a,d);else{var p=new Cr(z({shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]}},d));io(p.shape,p.style.lineWidth),p.anid="line",i.add(p)}var g=n.get(["axisLine","symbol"]);if(g!=null){var m=n.get(["axisLine","symbolSize"]);q(g)&&(g=[g,g]),(q(m)||me(m))&&(m=[m,m]);var y=r_(n.get(["axisLine","symbolOffset"])||0,m),_=m[0],S=m[1];I([{rotate:t.rotation+Math.PI/2,offset:y[0],r:0},{rotate:t.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((f[0]-c[0])*(f[0]-c[0])+(f[1]-c[1])*(f[1]-c[1]))}],function(b,w){if(g[w]!=="none"&&g[w]!=null){var T=Ar(g[w],-_/2,-S/2,_,S,h.stroke,!0),C=b.r+b.offset,D=v?c:f;T.attr({rotation:b.rotate,x:D[0]+C*Math.cos(t.rotation),y:D[1]-C*Math.sin(t.rotation),silent:!0,z2:11}),i.add(T)}})}}},axisTickLabelEstimate:function(t,e,r,n,i,a,o,s){var l=_S(e,i,s);l&&mS(t,e,r,n,i,a,o,Jt.estimate)},axisTickLabelDetermine:function(t,e,r,n,i,a,o,s){var l=_S(e,i,s);l&&mS(t,e,r,n,i,a,o,Jt.determine);var u=X2(t,i,a,n);$2(t,e.labelLayoutList,u),q2(t,i,a,n,t.tickDirection)},axisName:function(t,e,r,n,i,a,o,s){var l=r.ensureRecord(n);e.nameEl&&(i.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=t.axisName;if(gv(u)){var f=t.nameLocation,c=t.nameDirection,v=n.getModel("nameTextStyle"),h=n.get("nameGap")||0,d=n.axis.getExtent(),p=n.axis.inverse?-1:1,g=new re(0,0),m=new re(0,0);f==="start"?(g.x=d[0]-p*h,m.x=-p):f==="end"?(g.x=d[1]+p*h,m.x=p):(g.x=(d[0]+d[1])/2,g.y=t.labelOffset+c*h,m.y=c);var y=dr();m.transform(Sf(y,y,t.rotation));var _=n.get("nameRotate");_!=null&&(_=_*gn/180);var S,b;ta(f)?S=Hr.innerTextLayout(t.rotation,_??t.rotation,c):(S=W2(t.rotation,f,_||0,d),b=t.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var w=v.getFont(),T=n.get("nameTruncate",!0)||{},C=T.ellipsis,D=hs(t.raw.nameTruncateMaxWidth,T.maxWidth,b),x=s.nameMarginLevel||0,A=new Me({x:g.x,y:g.y,rotation:S.rotation,silent:Hr.isLabelSilent(n),style:Ot(v,{text:u,font:w,overflow:"truncate",width:D,ellipsis:C,fill:v.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:v.get("align")||S.textAlign,verticalAlign:v.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(ml({el:A,componentModel:n,itemName:u}),A.__fullText=u,A.anid="name",n.get("triggerEvent")){var L=Hr.makeAxisEventDataBase(n);L.targetType="axisName",L.name=u,ue(A).eventData=L}a.add(A),A.updateTransform(),e.nameEl=A;var M=l.nameLayout=Dr({label:A,priority:A.z2,defaultAttr:{ignore:A.ignore},marginDefault:ta(f)?z2[x]:V2[x]});if(l.nameLocation=f,i.add(A),A.decomposeTransform(),t.shouldNameMoveOverlap&&M){var P=r.ensureRecord(n);r.resolveAxisNameOverlap(t,r,n,M,m,P)}}}};function mS(t,e,r,n,i,a,o,s){SS(e)||Z2(t,e,i,s,n,o);var l=e.labelLayoutList;K2(t,n,l,a),J2(n,t.rotation,l);var u=t.optionHideOverlap;Y2(n,l,u),u&&N2(Ue(l,function(f){return f&&!f.label.ignore})),G2(t,r,n,l)}function W2(t,e,r,n){var i=hm(r-t),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return Zs(i-gn/2)?(o=l?"bottom":"top",a="center"):Zs(i-gn*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<gn*1.5&&i>gn/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function Y2(t,e,r){var n=t.axis,i=t.get(["axisLabel","customValues"]);if(GP(n))return;function a(u,f,c){var v=Dr(e[f]),h=Dr(e[c]),d=n.scale;if(!(!v||!h)){if(u==null){if(!r&&i)return;var p=oi(v.label).labelInfo.tick;if(ev(d)&&p.notNice||Qt(d)&&p.offInterval){aa(v.label);return}}if(u===!1||v.suggestIgnore){aa(v.label);return}if(h.suggestIgnore){aa(h.label);return}var g=.1;if(!r){var m=[0,0,0,0];v=fS({marginForce:m},v),h=fS({marginForce:m},h)}dv(v,h,null,{touchThreshold:g})&&aa(u?h.label:v.label)}}var o=t.get(["axisLabel","showMinLabel"]),s=t.get(["axisLabel","showMaxLabel"]),l=e.length;a(o,0,1),a(s,l-1,l-2)}function $2(t,e,r){t.showMinorTicks||I(e,function(n){if(n&&n.label.ignore)for(var i=0;i<r.length;i++){var a=r[i],o=hS(a),s=oi(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){aa(a);return}}})}function aa(t){t&&(t.ignore=!0)}function yS(t,e,r,n,i){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(wt(o,o,e),wt(s,s,e));var f=new Cr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});io(f.shape,f.style.lineWidth),f.anid=i+"_"+t[l].tickValue,a.push(f);var c=hS(f);c.onBand=!!t[l].onBand,c.tickValue=t[l].tickValue}return a}function X2(t,e,r,n){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=t.tickDirection*a.get("length"),u=i.getTicksCoords(),f=yS(u,r.transform,l,le(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}function q2(t,e,r,n,i){var a=n.axis,o=n.getModel("minorTick");if(!(!t.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=i*o.get("length"),f=le(l.getLineStyle(),le(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var v=yS(s[c],r.transform,u,f,"minorticks_"+c),h=0;h<v.length;h++)e.add(v[h])}}function _S(t,e,r){if(SS(t)){var n=t.axisLabelsCreationContext,i=n.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<i.length;o++)a=a&&i[o]();if(a)return!1}i.length&&(e.remove(t.labelGroup),pv(t,null,null,null))}return!0}function Z2(t,e,r,n,i,a){var o=i.axis,s=hs(t.raw.axisLabelShow,i.get(["axisLabel","show"])),l=new Ce;r.add(l);var u=eu(n);if(!s||o.scale.isBlank()){pv(e,[],l,u);return}var f=i.getModel("axisLabel"),c=o.getViewLabels(u),v=(hs(t.raw.labelRotate,f.get("rotate"))||0)*gn/180,h=Hr.innerTextLayout(t.rotation,v,t.labelDirection),d=i.getCategories&&i.getCategories(!0),p=[],g=i.get("triggerEvent"),m=1/0,y=-1/0;I(c,function(S,b){var w,T=S.tick,C=S.formattedLabel,D=S.rawLabel,x=f,A=Co(o.scale,T);if(d&&d[A]){var L=d[A];j(L)&&L.textStyle&&(x=new xe(L.textStyle,f,i.ecModel))}var M=x.getTextColor()||i.get(["axisLine","lineStyle","color"]),P=x.getShallow("align",!0)||h.textAlign,E=Z(x.getShallow("alignMinLabel",!0),P),k=Z(x.getShallow("alignMaxLabel",!0),P),O=x.getShallow("verticalAlign",!0)||x.getShallow("baseline",!0)||h.textVerticalAlign,R=Z(x.getShallow("verticalAlignMinLabel",!0),O),N=Z(x.getShallow("verticalAlignMaxLabel",!0),O),F=10+(((w=T.time)===null||w===void 0?void 0:w.level)||0);m=Math.min(m,F),y=Math.max(y,F);var B=new Me({x:0,y:0,rotation:0,silent:Hr.isLabelSilent(i),z2:F,style:Ot(x,{text:C,align:b===0?E:b===c.length-1?k:P,verticalAlign:b===0?R:b===c.length-1?N:O,fill:ee(M)?M(o.type==="category"?D:o.type==="value"?A+"":A,b):M})});B.anid="label_"+A;var G=oi(B);if(G.labelInfo=S,G.layoutRotation=h.rotation,ml({el:B,componentModel:i,itemName:C,formatterParamsExtra:{isTruncated:function(){return B.isTruncated},value:D,tickIndex:b}}),g){var X=Hr.makeAxisEventDataBase(i);X.targetType="axisLabel",X.value=D,X.tickIndex=b;var H=S.tick.break;if(H){var K=H.parsedBreak;X.break={start:K.vmin,end:K.vmax}}o.type==="category"&&(X.dataIndex=A),ue(B).eventData=X,H&&Q2(i,a,B,H)}p.push(B),l.add(B)});var _=$(p,function(S){return{label:S,priority:oi(S).labelInfo.tick.break?S.z2+(y-m+1):S.z2,defaultAttr:{ignore:S.ignore}}});pv(e,_,l,u)}function SS(t){return!!t.labelLayoutList}function pv(t,e,r,n){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=n}function K2(t,e,r,n){var i=e.get(["axisLabel","margin"]);I(r,function(a,o){var s=Dr(a);if(s){var l=s.label,u=oi(l);s.suggestIgnore=l.ignore,l.ignore=!1,Na(Ur,j2);var f=e.axis;Ur.x=f.dataToCoord(Co(f.scale,u.labelInfo.tick)),Ur.y=t.labelOffset+t.labelDirection*i,Ur.rotation=u.layoutRotation,n.add(Ur),Ur.updateTransform(),n.remove(Ur),Ur.decomposeTransform(),Na(l,Ur),l.markRedraw(),iu(s,!0),Dr(s)}})}var Ur=new De,j2=new De;function gv(t){return!!t}function Q2(t,e,r,n){r.on("click",function(i){var a={type:F2,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};a[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(a)})}function J2(t,e,r){var n=at();if(n){var i=n.retrieveAxisBreakPairs(r,function(o){return o&&oi(o.label).labelInfo.tick.break},!0),a=t.get(["breakLabelLayout","moveOverlap"],!0);(a===!0||a==="auto")&&I(i,function(o){au().adjustBreakLabelPair(t.axis.inverse,e,[Dr(r[o[0]]),Dr(r[o[1]])])})}}function su(t,e,r){r=r||{};var n=e.axis,i={},a=n.getAxesOnZeroOf()[0],o=n.position,s=a?"onZero":o,l=n.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,v=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(a){var h=a.toGlobalCoord(a.dataToCoord(0));v[f.onZero]=Math.max(Math.min(h,v[1]),v[0])}i.position=[l==="y"?v[f[s]]:u[0],l==="x"?v[f[s]]:u[3]],i.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=d[o],i.labelOffset=a?v[f[o]]-v[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),hs(r.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var p=e.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-p:p,i.z2=1,i}function eE(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function tE(t){var e={xAxisModel:null,yAxisModel:null};return I(e,function(r,n){var i=n.replace(/Model$/,""),a=t.getReferringComponents(i,Pt).models[0];e[n]=a}),e}function rE(t,e,r,n,i,a){for(var o=su(t,r),s=!1,l=!1,u=0;u<e.length;u++)w_(e[u].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type==="category"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new Hr(r,n,o,i)}function nE(t,e,r){var n=su(e,r);t.updateCfg(n)}var iE=Se(),bS=1,aE=3,wS=(function(){function t(e,r,n,i,a){var o=Qt(e),s=o?r.getCategories().length:null,l;if(o){var u=r.getCategories(!0);l=u&&!u.length}var f=n.slice();($l(e)||ea(e)||ev(e))&&(xm(f,Mo(e,r.get("dataMin",!0))),Cm(f,Mo(e,r.get("dataMax",!0)))),gD(f)||(f[0]=f[1]=NaN);var c=[],v=[!1,!1],h=r.get("min",!0);h==="dataMin"?(c[0]=f[0],v[0]=!0):(c[0]=Mo(e,ee(h)?h({min:f[0],max:f[1]}):h),v[0]=c[0]!=null);var d=r.get("max",!0);d==="dataMax"?(c[1]=f[1],v[1]=!0):(c[1]=Mo(e,ee(d)?d({min:f[0],max:f[1]}):d),v[1]=c[1]!=null);var p=oE(e,r),g=o?null:f[1]-f[0]||Math.abs(f[0]);c[0]==null&&(c[0]=o?l?f[0]:s?0:NaN:f[0]-p[0]*g),c[1]==null&&(c[1]=o?l?f[1]:s?s-1:NaN:f[1]+p[1]*g),!Nr(c[0])&&(c[0]=NaN),!Nr(c[1])&&(c[1]=NaN);var m=l||Aa(c[0])||Aa(c[1])||o&&!s,y=$l(e),_=y&&r.needIncludeZero&&r.needIncludeZero();_&&(c[0]>0&&c[1]>0&&!v[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!v[1]&&(c[1]=0));var S=!1;c[0]>c[1]&&(c.reverse(),S=!0);var b=Mo(e,r.get("startValue",!0)),w=b!=null;!Lt(b)&&i&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),Lt(b)&&(w||!y||_)&&(b<c[0]&&!v[0]?(c[0]=b,v[0]=!0):b>c[1]&&!v[1]&&(c[1]=b,v[1]=!0));var T=this._i={scale:e,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:v,zoomFixMM:[!1,!1],startValue:b,isBlank:m,incl0:_,tggAxInv:S,ctnShp:a};TS(T,c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var e=this._i,r=e.zoomMM,n=e.noZoomEffMM,i=e.zoomFixMM,a=e.fixMM,o={fixMM:a,zoomFixMM:i,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],a[0]=i[0]=!0),r[1]!=null&&(s[1]=r[1],a[1]=i[1]=!0),TS(e,s),o},t.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},t.prototype.setZoomMM=function(e,r){this._i.zoomMM[e]=r},t})();function TS(t,e){var r=t.scale,n=t.dataMM;r.sanitize&&(e[0]=r.sanitize(e[0],n),e[1]=r.sanitize(e[1],n),mD(e))}function Mo(t,e){return e==null?null:Aa(e)?NaN:t.parse(e)}function oE(t,e){var r;if(Qt(t))r=[0,0];else{var n=e.get("boundaryGap");typeof n=="boolean"&&(n=null),r=W(n)?n:[n,n]}return[xS(r[0]),xS(r[1])]}function xS(t){return In(typeof t=="boolean"?0:t,1)||0}function CS(t){var e=iE(t.scale);return e.extent||(e.extent=Et()),e}function sE(t,e){CS(t).dimIdxInCoord=e.get(t.dim)}function AS(t,e){var r=t.scale,n=t.model,i=t.dim;r.rawExtentInfo||lE(r,t,i,n,e)}function lE(t,e,r,n,i){var a=CS(e),o=a.extent,s=!1;w2(e,function(f){if(f.boxCoordinateSystem){var c=g0(f).coord,v=a.dimIdxInCoord;if(v>=0){if(W(c)){var h=c[v];h!=null&&!W(h)&&Dc(o,t.parse(h))}}}else if(f.coordinateSystem){var d=f.getData();if(d){var p=t.getFilter?t.getFilter():null;I(HP(d,r),function(g){pD(o,d.getApproximateExtent(g,p))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var l=cE(t,e,n),u=new wS(t,n,o,s,l);DS(t,u,i),a.extent=null}function uE(t,e){var r=t.scale;DS(r,new wS(r,t.model,e,!1,!1),aE)}function DS(t,e,r){t.rawExtentInfo=e,e.from=r}function fE(t,e){mv.set(t,e)}var mv=te();function MS(t,e,r,n,i){t.rawExtentInfo||uE({scale:t,model:e},Et());var a=t.rawExtentInfo.makeFinal(),o=a.effMM;return t.setExtent(o[0],o[1]),t.setBlank(a.isBlank),n&&a.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis")&&(n.inverse=!n.inverse),a}function cE(t,e,r){var n=B_(t,r),i=r.get("containShape",!0);if(i==null&&!n&&(i=!0),!i)return!1;var a=!1;return tS(e,function(o){a=!!mv.get(o)||a}),a}function hE(t,e,r,n){if(r.ctnShp){var i;if(tS(t,function(s){var l=mv.get(s);if(l){var u=l(t,n);u&&(i=i||[0,0],xm(i,u[0]),Cm(i,u[1]),zP(t))}}),!!i){var a=e.getExtent();if(Qt(e))t.onBand||e.setExtent2(wo,qe(a[0],a[0]+i[0]),ge(a[1],a[1]+i[1]));else{var o=a.slice();r.zoomFixMM[0]||(o[0]=qe(o[0],e.transformOut(e.transformIn(o[0],null)+i[0],null))),r.zoomFixMM[1]||(o[1]=ge(o[1],e.transformOut(e.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&e.setExtent2(wo,o[0],o[1])}}}}function vE(){C2("liPosMinGap",dE)}function dE(t,e,r){var n=te(),i=r.serUids,a=r.liPosMinGap,o,s=e.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,c=e0(f);function v(_){uv(t,e.sers,function(S){var b=S.getRawData(),w=b.getDimensionIndex(b.mapDimension(s.dim));w>=0&&_(w,S,b.getStore())})}var h=0;if(v(function(_,S,b){n.set(S.uid,1),(!i||!i.hasKey(S.uid))&&(o=!0),h+=b.count()}),(!i||i.keys().length!==n.keys().length)&&(o=!0),!o&&a!=null){e.liPosMinGap=a;return}Zh(si,h);var d=0;v(function(_,S,b){for(var w=0,T=b.count();w<T;++w){var C=b.get(_,w);isFinite(C)&&(!f||t0(c,C))&&(u&&(C=l.transformIn(C,null)),si.arr[d++]=C)}});var p=si.typed?si.arr.subarray(0,d):(si.arr.length=d,si.arr);si.typed?p.sort():Sc(p);for(var g=1/0,m=1;m<d;++m){var y=p[m]-p[m-1];y>0&&y<g&&(g=y)}r.liPosMinGap=e.liPosMinGap=Lt(g)?g:d>0?K_:y2,r.serUids=n}var si=Zh({ctor:iP},50);function pE(t){return function(e,r){var n=ia(e,{fromStat:{key:t}});if(Lt(n.w2))return[-n.w2/2,n.w2/2]}}function lu(t,e){return t+lv+e}function gE(t){return vE(),{liPosMinGap:!Qt(t.scale)}}var oa="bar";function mE(t,e,r,n){A2(t,{key:e,seriesType:r,coordSysType:n,getMetrics:gE})}function yE(t){var e=t.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var IS={left:0,right:0,top:0,bottom:0},uu=["25%","25%"],Wr="cartesian2d",_E=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,n){var i=So(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&r.outerBounds&&fn(r.outerBounds,i)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&fn(this.option.outerBounds,r.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:IS,outerBoundsContain:"all",outerBoundsClampWidth:uu[0],outerBoundsClampHeight:uu[1],backgroundColor:Y.color.transparent,borderWidth:1,borderColor:Y.color.neutral30},e})(ye),SE=Am(),bE="__ec_stack_";function LS(t){return t.get("stack")||bE+t.seriesIndex}function wE(t,e){var r=TE(t,e);return r.columnMap=xE(r),r}function TE(t,e){var r=lu(e,Wr),n=[],i=ia(t,{fromStat:{key:r},min:1});return eS(t,r,function(a){n.push({barWidth:Q(a.get("barWidth"),i.w),barMaxWidth:Q(a.get("barMaxWidth"),i.w),barMinWidth:Q(a.get("barMinWidth")||(PS(a)?.5:1),i.w),barGap:a.get("barGap"),barCategoryGap:a.get("barCategoryGap"),defaultBarGap:a.get("defaultBarGap"),stackId:LS(a)})}),{bandWidthResult:i,seriesInfo:n}}function xE(t){var e=t.bandWidthResult.w,r=e,n=0,i,a,o=[],s={};I(t.seriesInfo,function(p,g){g||(a=p.defaultBarGap||0);var m=p.stackId;tt(s,m)||n++;var y=s[m];y||(y=s[m]={width:0,maxWidth:0},o.push(m));var _=p.barWidth;_&&!y.width&&(y.width=_,_=qe(r,_),r-=_);var S=p.barMaxWidth;S&&(y.maxWidth=S);var b=p.barMinWidth;b&&(y.minWidth=b);var w=p.barGap;w!=null&&(a=w);var T=p.barCategoryGap;T!=null&&(i=T)}),i==null&&(i=ge(35-o.length*4,15)+"%");var l=Q(i,e),u=Q(a,1),f=(r-l)/(n+(n-1)*u);f=ge(f,0),I(o,function(p){var g=s[p],m=g.maxWidth,y=g.minWidth;if(g.width){var _=g.width;m&&(_=qe(_,m)),y&&(_=ge(_,y)),g.width=_,r-=_+u*_,n--}else{var _=f;m&&m<_&&(_=qe(m,r)),y&&y>_&&(_=y),_!==f&&(g.width=_,r-=_+u*_,n--)}}),f=(r-l)/(n+(n-1)*u),f=ge(f,0);var c=0,v;I(o,function(p){var g=s[p];g.width||(g.width=f),v=g,c+=g.width*(1+u)}),v&&(c-=v.width*u);var h={},d=-c/2;return I(o,function(p){var g=s[p];h[p]=h[p]||{bandWidth:e,offset:d,width:g.width},d+=g.width*(1+u)}),h}function CE(t){return{seriesType:t,overallReset:function(e){var r=lu(t,Wr);T2(e,r,function(n){var i=wE(n,t);eS(n,r,function(a){var o=i.columnMap[LS(a)];a.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function AE(t){return{seriesType:t,plan:jh(),reset:function(e){if(eE(e)){var r=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=e.get("showBackground",!0),u=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),c=Ki(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),v=a.isHorizontal(),h=a.toGlobalCoord(a.dataToCoord(yE(a))),d=PS(e),p=e.get("barMinHeight")||0,g=f&&r.getDimensionIndex(f),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,S){for(var b=_.count,w=d&&Gr(b*3),T=d&&l&&Gr(b*3),C=d&&Gr(b),D=n.master.getRect(),x=v?D.width:D.height,A,L=S.getStore(),M=0;(A=_.next())!=null;){var P=L.get(c?g:o,A),E=L.get(s,A),k=h,O=void 0;c&&(O=+P-L.get(o,A));var R=void 0,N=void 0,F=void 0,B=void 0;if(v){var G=n.dataToPoint([P,E]);c&&(k=n.dataToPoint([O,E])[0]),R=k,N=G[1]+y,F=G[0]-k,B=m,Be(F)<p&&(F=(F<0?-1:1)*p)}else{var G=n.dataToPoint([E,P]);c&&(k=n.dataToPoint([E,O])[1]),R=G[0]+y,N=k,F=m,B=G[1]-k,Be(B)<p&&(B=(B<=0?-1:1)*p)}d?(w[M]=R,w[M+1]=N,w[M+2]=v?F:B,T&&(T[M]=v?D.x:R,T[M+1]=v?N:D.y,T[M+2]=x),C[A]=A):S.setItemLayout(A,{x:R,y:N,width:F,height:B}),M+=3}d&&S.setLayout({largePoints:w,largeDataIndices:C,largeBackgroundPoints:T,valueAxisHorizontal:v})}}}}}}function PS(t){return t.pipelineContext&&t.pipelineContext.large}function DE(t){return pE(lu(t,Wr))}function ME(t){SE(t,function(){function e(r){var n=lu(r,Wr);mE(t,n,r,Wr),fE(n,DE(r))}e("bar"),e("pictorialBar")})}var yv=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){return Ml(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)I(a.getAxes(),function(v,h){if(v.type==="category"&&n!=null){var d=v.getTicksCoords(),p=v.getTickModel().get("alignWithLabel"),g=o[h],m=n[h]==="x1"||n[h]==="y1";if(m&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[h]=v.toGlobalCoord(v.getExtent()[m?1:0]);return}for(var y=void 0,_=void 0,S=1,b=0;b<d.length;b++){var w=d[b].coord,T=b===d.length-1?d[b-1].tickValue+S:d[b].tickValue;if(T===g){_=w;break}else if(T<g)y=w;else if(y!=null&&T>g){_=(w+y)/2;break}b===1&&(S=T-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[h]=v.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},e.prototype.__requireStartValue=function(r){return this.getBaseAxis()!==r},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e})(ot);ot.registerClass(yv);var IE=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return Ml(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.__preparePipelineContext=function(r,n){var i=Mm(this,r,n);return i.progressiveRender&&(i.large=!0),i},e.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},e.type="series."+oa,e.dependencies=["grid","polar"],e.defaultOption=m0(yv.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:Y.color.primary,borderWidth:2}},realtimeSort:!1}),e})(yv),fu="\0__throttleOriginMethod",ES="\0__throttleRate",kS="\0__throttleType";function _v(t,e,r){var n,i=0,a=0,o=null,s,l,u,f;e=e||0;function c(){a=new Date().getTime(),o=null,t.apply(l,u||[])}var v=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];n=new Date().getTime(),l=this,u=h;var p=f||e,g=f||r;f=null,s=n-(g?i:a)-p,clearTimeout(o),g?o=setTimeout(c,p):s>=0?c():o=setTimeout(c,-s),i=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(h){f=h},v}function RS(t,e,r,n){var i=t[e];if(i){var a=i[fu]||i,o=i[kS],s=i[ES];if(s!==r||o!==n){if(r==null||!n)return t[e]=a;i=t[e]=_v(a,r,n==="debounce"),i[fu]=a,i[kS]=n,i[ES]=r}return i}}function Sv(t,e){var r=t[e];r&&r[fu]&&(r.clear&&r.clear(),t[e]=r[fu])}var LE=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),cu=(function(t){V(e,t);function e(r){var n=t.call(this,r)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new LE},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,v=n.clockwise,h=Math.PI*2,d=v?c-f<h:f-c<h;d||(f=c-(v?h:-h));var p=Math.cos(f),g=Math.sin(f),m=Math.cos(c),y=Math.sin(c);d?(r.moveTo(p*o+i,g*o+a),r.arc(p*u+i,g*u+a,l,-Math.PI+f,f,!v)):r.moveTo(p*s+i,g*s+a),r.arc(i,a,s,f,c,!v),r.arc(m*u+i,y*u+a,l,c-Math.PI*2,c-Math.PI,!v),o!==0&&r.arc(i,a,o,c,f,v)},e})(pe);function PE(t,e){e=e||{};var r=e.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return _s(n,i,a);var s=t(o),l=i.distance!=null?i.distance:5,u=this.shape,f=u.cx,c=u.cy,v=u.r,h=u.r0,d=(v+h)/2,p=u.startAngle,g=u.endAngle,m=(p+g)/2,y=r?Math.abs(v-h)/2:0,_=Math.cos,S=Math.sin,b=f+v*_(p),w=c+v*S(p),T="left",C="top";switch(s){case"startArc":b=f+(h-l)*_(m),w=c+(h-l)*S(m),T="center",C="top";break;case"insideStartArc":b=f+(h+l)*_(m),w=c+(h+l)*S(m),T="center",C="bottom";break;case"startAngle":b=f+d*_(p)+hu(p,l+y,!1),w=c+d*S(p)+vu(p,l+y,!1),T="right",C="middle";break;case"insideStartAngle":b=f+d*_(p)+hu(p,-l+y,!1),w=c+d*S(p)+vu(p,-l+y,!1),T="left",C="middle";break;case"middle":b=f+d*_(m),w=c+d*S(m),T="center",C="middle";break;case"endArc":b=f+(v+l)*_(m),w=c+(v+l)*S(m),T="center",C="bottom";break;case"insideEndArc":b=f+(v-l)*_(m),w=c+(v-l)*S(m),T="center",C="top";break;case"endAngle":b=f+d*_(g)+hu(g,l+y,!0),w=c+d*S(g)+vu(g,l+y,!0),T="left",C="middle";break;case"insideEndAngle":b=f+d*_(g)+hu(g,-l+y,!0),w=c+d*S(g)+vu(g,-l+y,!0),T="right",C="middle";break;default:return _s(n,i,a)}return n=n||{},n.x=b,n.y=w,n.align=T,n.verticalAlign=C,n}}function EE(t,e,r,n){if(me(n)){t.setTextConfig({rotation:n});return}else if(W(e)){t.setTextConfig({rotation:0});return}var i=t.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=r(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:t.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),t.setTextConfig({rotation:f})}function hu(t,e,r){return e*Math.sin(t)*(r?-1:1)}function vu(t,e,r){return e*Math.cos(t)*(r?1:-1)}function Io(t,e,r){var n=t.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;W(n)||(n=[n,n,n,n]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:$(n,function(a){return In(a,i)})}}var bv=Math.max,wv=Math.min,kE=(function(t){V(e,t);function e(){var r=t.call(this)||this;return r.type=oa,r._isFirstFrame=!0,r}return e.prototype.render=function(r,n,i,a){this._model=r,this._removeOnRenderedListener(i),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,i):this._renderNormal(r,n,i,a))},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},e.prototype.eachRendered=function(r){yl(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var v=r.isAnimationEnabled()?r:null,h=RE(r,u);h&&this._enableRealtimeSort(h,s,i);var d=r.get("clip",!0)||h,p=u.getArea();o.removeClipPath();var g=r.get("roundCap",!0),m=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),_=y.get("borderRadius")||0,S=[],b=this._backgroundEls,w=a&&a.isInitSort,T=a&&a.type==="changeAxisOrder";function C(A){var L=du[u.type](s,A);if(!L)return null;var M=GE(u,c,L);return M.useStyle(y.getItemStyle()),u.type==="cartesian2d"?M.setShape("r",_):M.setShape("cornerRadius",_),S[A]=M,M}s.diff(l).add(function(A){var L=s.getItemModel(A),M=du[u.type](s,A,L);if(M&&(m&&C(A),!(!s.hasValue(A)||!zS[u.type](M)))){var P=!1;d&&(P=OS[u.type](p,M));var E=NS[u.type](r,s,A,M,c,v,f.model,!1,g);h&&(E.forceLabelAnimation=!0),GS(E,s,A,L,M,r,c,u.type==="polar"),w?E.attr({shape:M}):h?BS(h,v,E,M,A,c,!1,!1):Ge(E,{shape:M},r,A),s.setItemGraphicEl(A,E),o.add(E),E.ignore=P}}).update(function(A,L){var M=s.getItemModel(A),P=du[u.type](s,A,M);if(P){if(m){var E=void 0;b.length===0?E=C(L):(E=b[L],E.useStyle(y.getItemStyle()),u.type==="cartesian2d"?E.setShape("r",_):E.setShape("cornerRadius",_),S[A]=E);var k=du[u.type](s,A),O=YS(c,k,u);Ie(E,{shape:O},v,A)}var R=l.getItemGraphicEl(L);if(!s.hasValue(A)||!zS[u.type](P)){o.remove(R);return}var N=!1;d&&(N=OS[u.type](p,P),N&&o.remove(R));var F=R&&(R.type==="sector"&&g||R.type==="sausage"&&!g);if(F&&(R&&Hi(R,r,L),R=null),R?Ui(R):R=NS[u.type](r,s,A,P,c,v,f.model,!0,g),h&&(R.forceLabelAnimation=!0),T){var B=R.getTextContent();if(B){var G=so(B);G.prevValue!=null&&(G.prevValue=G.value)}}else GS(R,s,A,M,P,r,c,u.type==="polar");w?R.attr({shape:P}):h?BS(h,v,R,P,A,c,!0,T):Ie(R,{shape:P},r,A,null),s.setItemGraphicEl(A,R),R.ignore=N,o.add(R)}}).remove(function(A){var L=l.getItemGraphicEl(A);L&&Hi(L,r,A)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new Ce);D.removeAll();for(var x=0;x<S.length;++x)D.add(S[x]);o.add(D),this._backgroundEls=S,this._data=s},e.prototype._renderLarge=function(r,n,i){this._clear(),US(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),US(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&dP(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},e.prototype._enableRealtimeSort=function(r,n,i){var a=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(r,n,i){var a=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:$(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(r,n,i){for(var a=i.scale,o=r.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:n(r.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Hi(a,r,ue(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=oa,e})(je),OS={cartesian2d:function(t,e){var r=e.width<0?-1:1,n=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,a=t.y+t.height,o=bv(e.x,t.x),s=wv(e.x+e.width,i),l=bv(e.y,t.y),u=wv(e.y+e.height,a),f=s<o,c=u<l;return e.x=f&&o>i?s:o,e.y=c&&l>a?u:l,e.width=f?0:s-o,e.height=c?0:u-l,r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),f||c},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}var i=wv(e.r,t.r),a=bv(e.r0,t.r0);e.r=i,e.r0=a;var o=i-a<0;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},NS={cartesian2d:function(t,e,r,n,i,a,o,s,l){var u=new De({shape:z({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var f=u.shape,c=i?"height":"width";f[c]=0}return u},polar:function(t,e,r,n,i,a,o,s,l){var u=!i&&l?cu:xr,f=new u({shape:n,z2:1});f.name="item";var c=VS(i);if(f.calculateTextPosition=PE(c,{isRoundCap:u===cu}),a){var v=f.shape,h=i?"r":"endAngle",d={};v[h]=i?n.r0:n.startAngle,d[h]=n[h],(s?Ie:Ge)(f,{shape:d},a)}return f}};function RE(t,e){var r=t.get("realtimeSort",!0),n=e.getBaseAxis();if(r&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function BS(t,e,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Ie:Ge)(r,{shape:l},e,i,null);var f=e?t.baseAxis.model:null;(o?Ie:Ge)(r,{shape:u},f,i)}function FS(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var OE=["x","y","width","height"],NE=["cx","cy","r","startAngle","endAngle"],zS={cartesian2d:function(t){return!FS(t,OE)},polar:function(t){return!FS(t,NE)}},du={cartesian2d:function(t,e,r){var n=t.getItemLayout(e);if(!n)return null;var i=r?FE(r,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(t,e,r){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function BE(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function VS(t){return(function(e){var r=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}})(t)}function GS(t,e,r,n,i,a,o,s){var l=e.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var f=t.shape,c=Io(n.getModel("itemStyle"),f,!0);z(f,c),t.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var v=n.getShallow("cursor");v&&t.attr("cursor",v);var h=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?HE(i,a.coordinateSystem):UE(i,a.coordinateSystem),d=jn(n);Kn(t,d,{labelFetcher:a,labelDataIndex:r,defaultText:Xh(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var p=t.getTextContent();if(s&&p){var g=n.get(["label","position"]);t.textConfig.inside=g==="middle"?!0:null,EE(t,g==="outside"?h:g,VS(o),n.get(["label","rotate"]))}ky(p,d,a.getRawValue(r),function(y){return n_(e,y)});var m=n.getModel(["emphasis"]);Fr(t,m.get("focus"),m.get("blurScope"),m.get("disabled")),zr(t,n),BE(i)&&(t.style.fill="none",t.style.stroke="none",I(t.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function FE(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,a)}var zE=(function(){function t(){}return t})(),HS=(function(t){V(e,t);function e(r){var n=t.call(this,r)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new zE},e.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<i.length;f+=3)l[a]=u,l[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],r.rect(s[0],s[1],l[0],l[1])},e})(pe);function US(t,e,r,n){var i=t.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=t.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints"),f=n?Dm(t):0;if(u){var c=new HS({shape:{points:u},incremental:f,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),r&&r.push(c)}var v=new HS({shape:{points:i.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});v.baseDimIdx=a,v.largeDataIndices=o,v.barWidth=s,e.add(v),v.useStyle(i.getVisual("style")),v.style.stroke=null,ue(v).seriesIndex=t.seriesIndex,t.get("silent")||(v.on("mousedown",WS),v.on("mousemove",WS)),r&&r.push(v)}var WS=_v(function(t){var e=this,r=VE(e,t.offsetX,t.offsetY);ue(e).dataIndex=r>=0?r:null},30,!1);function VE(t,e,r){for(var n=t.baseDimIdx,i=1-n,a=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,f=0,c=a.length/3;f<c;f++){var v=f*3;if(l[n]=u,l[i]=a[v+2],s[n]=a[v+n],s[i]=a[v+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function YS(t,e,r){if(g_(r,"cartesian2d")){var n=e,i=r.getArea();return{x:t?n.x:i.x,y:t?i.y:n.y,width:t?n.width:i.width,height:t?i.height:n.height}}else{var i=r.getArea(),a=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:a.r0,r:t?i.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:Math.PI*2}}}function GE(t,e,r){var n=t.type==="polar"?xr:De;return new n({shape:YS(e,r,t),silent:!0,z2:0})}function HE(t,e){if(t.height===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"bottom":"top"}return t.height>0?"bottom":"top"}function UE(t,e){if(t.width===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"left":"right"}return t.width>=0?"right":"left"}function WE(t){t.registerChartView(kE),t.registerSeriesModel(IE),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,CE(oa)),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,AE(oa)),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,W_(oa)),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var n=e.componentType||"series";r.eachComponent({mainType:n,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})}),ME(t)}function YE(t,e){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:t,query:i},function(o){a.push(o.seriesIndex)}),a}I([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(i,a,o){i=z({},i),o.dispatchAction(z(i,{type:n[1],seriesIndex:r(a,i)}))})})}function sa(t,e,r,n,i){var a=t+e;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),v=Wn(c,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:W(v)?c.getName(v[0]):c.getName(v),selected:q(l)?l:z({},l)})}})}function $E(t,e,r){t.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(sa("map","selectchanged",e,i,n),sa("pie","selectchanged",e,i,n)):n.fromAction==="select"?(sa("map","selected",e,i,n),sa("pie","selected",e,i,n)):n.fromAction==="unselect"&&(sa("map","unselected",e,i,n),sa("pie","unselected",e,i,n))})}function Tv(t){return{seriesType:t,reset:function(e,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=e.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}function pu(t,e,r){e=W(e)&&{coordDimensions:e}||z({encodeDefine:t.getEncode()},e);var n=t.getSource(),i=v0(n,e).dimensions,a=new h0(i,t);return a.initData(n,r),a}var xv=(function(){function t(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var r=this._getRawData();return r.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,r)},t})(),mn="pie",XE=Se(),$S=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new xv(de(this.getData,this),de(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return pu(this,{coordDimensions:["value"],encodeDefaulter:Oe(Fy,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),i=XE(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=XA(o,n.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){js(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},e.type="series."+mn,e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e})(ot);bI({fullType:$S.type,getCoord2:function(t){return t.getShallow("center")}});function XS(t,e,r,n,i,a,o,s){var l=i-t,u=a-e,f=r-t,c=n-e,v=Math.sqrt(f*f+c*c);f/=v,c/=v;var h=l*f+u*c,d=h/v;d*=v;var p=o[0]=t+d*f,g=o[1]=e+d*c;return Math.sqrt((p-i)*(p-i)+(g-a)*(g-a))}var yn=new re,Pe=new re,Xe=new re,_n=new re,Mr=new re,gu=[],st=new re;function qE(t,e){if(e<=180&&e>0){e=e/180*Math.PI,yn.fromArray(t[0]),Pe.fromArray(t[1]),Xe.fromArray(t[2]),re.sub(_n,yn,Pe),re.sub(Mr,Xe,Pe);var r=_n.len(),n=Mr.len();if(!(r<.001||n<.001)){_n.scale(1/r),Mr.scale(1/n);var i=_n.dot(Mr),a=Math.cos(e);if(a<i){var o=XS(Pe.x,Pe.y,Xe.x,Xe.y,yn.x,yn.y,gu);st.fromArray(gu),st.scaleAndAdd(Mr,o/Math.tan(Math.PI-e));var s=Xe.x!==Pe.x?(st.x-Pe.x)/(Xe.x-Pe.x):(st.y-Pe.y)/(Xe.y-Pe.y);if(isNaN(s))return;s<0?re.copy(st,Pe):s>1&&re.copy(st,Xe),st.toArray(t[1])}}}}function ZE(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,yn.fromArray(t[0]),Pe.fromArray(t[1]),Xe.fromArray(t[2]),re.sub(_n,Pe,yn),re.sub(Mr,Xe,Pe);var n=_n.len(),i=Mr.len();if(!(n<.001||i<.001)){_n.scale(1/n),Mr.scale(1/i);var a=_n.dot(e),o=Math.cos(r);if(a<o){var s=XS(Pe.x,Pe.y,Xe.x,Xe.y,yn.x,yn.y,gu);st.fromArray(gu);var l=Math.PI/2,u=Math.acos(Mr.dot(e)),f=l+u-r;if(f>=l)re.copy(st,Xe);else{st.scaleAndAdd(Mr,s/Math.tan(Math.PI/2-f));var c=Xe.x!==Pe.x?(st.x-Pe.x)/(Xe.x-Pe.x):(st.y-Pe.y)/(Xe.y-Pe.y);if(isNaN(c))return;c<0?re.copy(st,Pe):c>1&&re.copy(st,Xe)}st.toArray(t[1])}}}}function Cv(t,e,r,n){var i=r==="normal",a=i?t:t.ensureState(r);a.ignore=e;var o=n.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=n.getModel("lineStyle").getLineStyle();i?t.useStyle(s):a.style=s}function KE(t,e){var r=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=xf(n[0],n[1]),a=xf(n[1],n[2]);if(!i||!a){t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=Cf([],n[1],n[0],o/i),l=Cf([],n[1],n[2],o/a),u=Cf([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)t.lineTo(n[f][0],n[f][1])}function qS(t,e,r){var n=t.getTextGuideLine(),i=t.getTextContent();if(!i){n&&t.removeTextGuideLine();return}for(var a=e.normal,o=a.get("show"),s=i.ignore,l=0;l<el.length;l++){var u=el[l],f=e[u],c=u==="normal";if(f){var v=f.get("show"),h=c?s:Z(i.states[u]&&i.states[u].ignore,s);if(h||!Z(v,o)){var d=c?n:n&&n.states[u];d&&(d.ignore=!0),n&&Cv(n,!0,u,f);continue}n||(n=new on,t.setTextGuideLine(n),!c&&(s||!o)&&Cv(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),Cv(n,!1,u,f)}}if(n){le(n.style,r),n.style.fill=null;var p=a.get("showAbove"),g=t.textGuideLineConfig=t.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=KE}}function ZS(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},n=0;n<Rt.length;n++){var i=Rt[n];r[i]=t.getModel([i,e])}return r}var jE=Math.PI/180;function KS(t,e,r,n,i,a,o,s,l,u){if(t.length<2)return;function f(p){for(var g=p.rB,m=g*g,y=0;y<p.list.length;y++){var _=p.list[y],S=Math.abs(_.label.y-r),b=n+_.len,w=b*b,T=Math.sqrt(Math.abs((1-S*S/m)*w)),C=e+(T+_.len2)*i,D=C-_.label.x,x=_.targetTextWidth-D*i;jS(_,x,!0),_.label.x=C}}function c(p){for(var g={list:[],maxY:0},m={list:[],maxY:0},y=0;y<p.length;y++)if(p[y].labelAlignTo==="none"){var _=p[y],S=_.label.y>r?m:g,b=Math.abs(_.label.y-r);if(b>=S.maxY){var w=_.label.x-e-_.len2*i,T=n+_.len,C=Math.abs(w)<T?Math.sqrt(b*b/(1-w*w/T/T)):T;S.rB=C,S.maxY=b}S.list.push(_)}f(g),f(m)}for(var v=t.length,h=0;h<v;h++)if(t[h].position==="outer"&&t[h].labelAlignTo==="labelLine"){var d=t[h].label.x-u;t[h].linePoints[1][0]+=d,t[h].label.x=u}O2(t,1,l,l+o)&&c(t)}function QE(t,e,r,n,i,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,v=0;v<t.length;v++){var h=t[v].label;Av(t[v])||(h.x<e?(f=Math.min(f,h.x),l.push(t[v])):(c=Math.max(c,h.x),u.push(t[v])))}for(var v=0;v<t.length;v++){var d=t[v];if(!Av(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var h=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?h.x<e?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+i-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?h.x<e?g=f-o-d.bleedMargin:g=o+i-c-d.bleedMargin:h.x<e?g=h.x-o-d.bleedMargin:g=o+i-h.x-d.bleedMargin,d.targetTextWidth=g,jS(d,g,!1)}}KS(u,e,r,n,1,i,a,o,s,c),KS(l,e,r,n,-1,i,a,o,s,f);for(var v=0;v<t.length;v++){var d=t[v];if(!Av(d)&&d.linePoints){var h=d.label,p=d.linePoints,m=d.labelAlignTo==="edge",y=h.style.padding,_=y?y[1]+y[3]:0,S=h.style.backgroundColor?0:_,b=d.rect.width+S,w=p[1][0]-p[2][0];m?h.x<e?p[2][0]=o+d.edgeDistance+b+d.labelDistance:p[2][0]=o+i-d.edgeDistance-b-d.labelDistance:(h.x<e?p[2][0]=h.x+d.labelDistance:p[2][0]=h.x-d.labelDistance,p[1][0]=p[2][0]+w),p[1][1]=p[2][1]=h.y}}}function jS(t,e,r){if(t.labelStyleWidth==null){var n=t.label,i=n.style,a=t.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,f=a.width+(o?0:l);if(e<f||r){if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var c=n.getBoundingRect();n.setStyle("width",Math.ceil(c.width)),n.setStyle("backgroundColor",o)}else{var v=e-l,h=e<f?v:r?v>t.unconstrainedWidth?null:v:null;n.setStyle("width",h)}QS(a,n)}}}function QS(t,e){JS.rect=t,uS(JS,e,JE)}var JE={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},JS={};function Av(t){return t.position==="center"}function ek(t){var e=t.getData(),r=[],n,i,a=!1,o=(t.get("minShowLabelAngle")||0)*jE,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,c=s.y,v=s.height;function h(w){w.ignore=!0}function d(w){if(!w.ignore)return!0;for(var T in w.states)if(w.states[T].ignore===!1)return!0;return!1}e.each(function(w){var T=e.getItemGraphicEl(w),C=T.shape,D=T.getTextContent(),x=T.getTextGuideLine(),A=e.getItemModel(w),L=A.getModel("label"),M=L.get("position")||A.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),E=L.get("alignTo"),k=Q(L.get("edgeDistance"),u),O=L.get("bleedMargin");O==null&&(O=Math.min(u,v)>200?10:2);var R=A.getModel("labelLine"),N=R.get("length");N=Q(N,u);var F=R.get("length2");if(F=Q(F,u),Math.abs(C.endAngle-C.startAngle)<o){I(D.states,h),D.ignore=!0,x&&(I(x.states,h),x.ignore=!0);return}if(d(D)){var B=(C.startAngle+C.endAngle)/2,G=Math.cos(B),X=Math.sin(B),H,K,ae,ke;n=C.cx,i=C.cy;var Ae=M==="inside"||M==="inner";if(M==="center")H=C.cx,K=C.cy,ke="center";else{var he=(Ae?(C.r+C.r0)/2*G:C.r*G)+n,Te=(Ae?(C.r+C.r0)/2*X:C.r*X)+i;if(H=he+G*3,K=Te+X*3,!Ae){var J=he+G*(N+l-C.r),se=Te+X*(N+l-C.r),pt=J+(G<0?-1:1)*F,Re=se;E==="edge"?H=G<0?f+k:f+u-k:H=pt+(G<0?-P:P),K=Re,ae=[[he,Te],[J,se],[pt,Re]]}ke=Ae?"center":E==="edge"?G>0?"right":"left":G>0?"left":"right"}var ir=Math.PI,gt=0,ar=L.get("rotate");if(me(ar))gt=ar*(ir/180);else if(M==="center")gt=0;else if(ar==="radial"||ar===!0){var _a=G<0?-B+ir:-B;gt=_a}else if(ar==="tangential"||ar==="tangential-noflip"&&M!=="outside"&&M!=="outer"){var or=Math.atan2(G,X);or<0&&(or=ir*2+or);var Xu=X>0;Xu&&ar!=="tangential-noflip"&&(or=ir+or),gt=or-ir}if(a=!!gt,D.x=H,D.y=K,D.rotation=gt,D.setStyle({verticalAlign:"middle"}),Ae){D.setStyle({align:ke});var Jd=D.states.select;Jd&&(Jd.x+=D.x,Jd.y+=D.y)}else{var Sa=new ne(0,0,0,0);QS(Sa,D),r.push({label:D,labelLine:x,position:M,len:N,len2:F,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new re(G,X),linePoints:ae,textAlign:ke,labelDistance:P,labelAlignTo:E,edgeDistance:k,bleedMargin:O,rect:Sa,unconstrainedWidth:Sa.width,labelStyleWidth:D.style.width})}T.setTextConfig({inside:Ae})}}),!a&&t.get("avoidLabelOverlap")&&QE(r,n,i,l,u,v,f,c);for(var p=0;p<r.length;p++){var g=r[p],m=g.label,y=g.labelLine,_=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),_&&(I(m.states,h),m.ignore=!0);var S=m.states.select;S&&(S.x+=m.x,S.y+=m.y)}if(y){var b=g.linePoints;_||!b?(I(y.states,h),y.ignore=!0):(qE(b,g.minTurnAngle),ZE(b,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:b}),m.__hostTarget.textGuideLineConfig={anchor:new re(b[0][0],b[0][1])})}}}var e1=Math.PI*2,mu=Math.PI/180,tk=Ic(mn,rk);function rk(t,e){t.eachSeriesByType(mn,function(r){var n=r.getData(),i=n.mapDimension("value"),a=fL(r,e),o=a.cx,s=a.cy,l=a.r,u=a.r0,f=a.viewRect,c=-r.get("startAngle")*mu,v=r.get("endAngle"),h=r.get("padAngle")*mu;v=v==="auto"?c-e1:-v*mu;var d=r.get("minAngle")*mu,p=d+h,g=0;n.each(i,function(k){!isNaN(k)&&g++});var m=n.getSum(i),y=Math.PI/(m||g)*2,_=r.get("clockwise"),S=r.get("roseType"),b=r.get("stillShowZeroSum"),w=n.getDataExtent(i);w[0]=0;var T=_?1:-1,C=[c,v],D=T*h/2;pc(C,!_),c=C[0],v=C[1];var x=t1(r);x.startAngle=c,x.endAngle=v,x.clockwise=_,x.cx=o,x.cy=s,x.r=l,x.r0=u;var A=Math.abs(v-c),L=A,M=0,P=c;if(n.setLayout({viewRect:f,r:l}),n.each(i,function(k,O){var R;if(isNaN(k)){n.setItemLayout(O,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:o,cy:s,r0:u,r:S?NaN:l});return}S!=="area"?R=m===0&&b?y:k*y:R=A/g,R<p?(R=p,L-=p):M+=k;var N=P+T*R,F=0,B=0;h>R?(F=P+T*R/2,B=F):(F=P+D,B=N-D),n.setItemLayout(O,{angle:R,startAngle:F,endAngle:B,clockwise:_,cx:o,cy:s,r0:u,r:S?It(k,w,[u,l]):l}),P=N}),L<e1&&g)if(L<=.001){var E=A/g;n.each(i,function(k,O){if(!isNaN(k)){var R=n.getItemLayout(O);R.angle=E;var N=0,F=0;E<h?(N=c+T*(O+1/2)*E,F=N):(N=c+T*O*E+D,F=c+T*(O+1)*E-D),R.startAngle=N,R.endAngle=F}})}else y=L/M,P=c,n.each(i,function(k,O){if(!isNaN(k)){var R=n.getItemLayout(O),N=R.angle===p?p:k*y,F=0,B=0;N<h?(F=P+T*N/2,B=F):(F=P+D,B=P+T*N-D),R.startAngle=F,R.endAngle=B,P+=T*N}})})}var t1=Se(),nk=(function(t){V(e,t);function e(r,n,i){var a=t.call(this)||this;a.z2=2;var o=new Me;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return e.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),f=r.getItemLayout(n),c=z(Io(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(a){o.setShape(c);var v=s.getShallow("animationType");s.ecModel.ssr?(Ge(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):v==="scale"?(o.shape.r=f.r0,Ge(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),Ge(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Ie(o,{shape:{endAngle:f.endAngle}},s,n))}else Ui(o),Ie(o,{shape:c},s,n);o.useStyle(r.getItemVisual(n,"style")),zr(o,l);var h=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(h)*d,g=Math.sin(h)*d,m=l.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=z({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Io(u.getModel("itemStyle"),f)),z(o.ensureState("select"),{x:p,y:g,shape:Io(l.getModel(["select","itemStyle"]),f)}),z(o.ensureState("blur"),{shape:Io(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&z(y.ensureState("select"),{x:p,y:g}),z(_.ensureState("select"),{x:p,y:g}),Fr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,f=l&&l.opacity;Kn(a,jn(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:f,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var c=a.getTextContent();a.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var v=o.get(["label","position"]);if(v!=="outside"&&v!=="outer")a.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new on,this.setTextGuideLine(h)),qS(this,ZS(o),{stroke:u,opacity:bn(s.get(["lineStyle","opacity"]),f,1)})}},e})(xr),ik=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=mn,r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,n,i,a){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var v=t1(r),h=new xr({shape:oe(v)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(d){var p=new nk(o,d,u);o.setItemGraphicEl(d,p),l.add(p)}).update(function(d,p){var g=s.getItemGraphicEl(p);g.updateData(o,d,u),g.off("click"),l.add(g),o.setItemGraphicEl(d,g)}).remove(function(d){var p=s.getItemGraphicEl(d);Hi(p,r,d)}).execute(),ek(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type=mn,e})(je);function ak(t){return{seriesType:t,reset:function(e,r){var n=e.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(me(o)&&!isNaN(o)&&o<0)})}}}function ok(t){t.registerChartView(ik),t.registerSeriesModel($S),YE(mn,t.registerAction),t.registerLayout(tk),t.registerProcessor(Tv(mn)),t.registerProcessor(ak(mn))}var la=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),sk=(function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new la(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,i=e.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,e),this.handler.dispatchToElement(new la(r,e),"drag",e.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new la(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new la(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new la(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new la(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),lk=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Dv=[],uk=ie.browser.firefox&&+ie.browser.version.split(".")[0]<39;function Mv(t,e,r,n){return r=r||{},n?r1(t,e,r):uk&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):r1(t,e,r),r}function r1(t,e,r){if(ie.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(_0(t)){var a=t.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Ch(Dv,t,n,i)){r.zrX=Dv[0],r.zrY=Dv[1];return}}r.zrX=r.zrY=0}function Iv(t){return t||window.event}function zt(t,e,r){if(e=Iv(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Mv(t,o,e,r)}else{Mv(t,e,e,r);var a=fk(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&lk.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function fk(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function ck(t,e,r,n){t.addEventListener(e,r,n)}function hk(t,e,r,n){t.removeEventListener(e,r,n)}var n1=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},vk=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:r,event:e},o=0,s=i.length;o<s;o++){var l=i[o],u=Mv(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in Lv)if(Lv.hasOwnProperty(r)){var n=Lv[r](this._track,e);if(n)return n}},t})();function i1(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function dk(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var Lv={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,i=(t[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=i1(n)/i1(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=dk(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}},a1="silent";function pk(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:gk}}function gk(){n1(this.event)}var mk=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(kr),Lo=(function(){function t(e,r){this.x=e,this.y=r}return t})(),yk=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Pv=new ne(0,0,0,0),o1=(function(t){V(e,t);function e(r,n,i,a,o){var s=t.call(this)||this;return s._hovered=new Lo(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new mk,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new sk(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(I(yk,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=l1(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Lo(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new Lo(0,0)},e.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=pk(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new Lo(r,n);if(s1(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ne(r-u,n-u,l,l),c=a.length-1;c>=0;c--){var v=a[c];v!==i&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(Pv.copy(v.getBoundingRect()),v.transform&&Pv.applyTransform(v.transform),Pv.intersect(f)&&s.push(v))}if(s.length)for(var h=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=h)for(var m=0;m<p;m+=d){var y=r+g*Math.cos(m),_=n+g*Math.sin(m);if(s1(s,o,y,_,i),o.target)return o}}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new vk);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new Lo;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(kr);I(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){o1.prototype[t]=function(e){var r=e.zrX,n=e.zrY,i=l1(this,r,n),a,o;if((t!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||xf(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function _k(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return i?a1:!0}return!1}function s1(t,e,r,n,i){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==i&&!o.ignore&&(s=_k(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==a1)){e.target=o;break}}}function l1(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var u1=32,Po=7;function Sk(t){for(var e=0;t>=u1;)e|=t&1,t>>=1;return t+e}function f1(t,e,r,n){var i=e+1;if(i===r)return 1;if(n(t[i++],t[e])<0){for(;i<r&&n(t[i],t[i-1])<0;)i++;bk(t,e,i)}else for(;i<r&&n(t[i],t[i-1])>=0;)i++;return i-e}function bk(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}function c1(t,e,r,n,i){for(n===e&&n++;n<r;n++){for(var a=t[n],o=e,s=n,l;o<s;)l=o+s>>>1,i(a,t[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=a}}function Ev(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])>0){for(s=n-i;l<s&&a(t,e[r+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(t,e[r+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])>0?o=f+1:l=f}return l}function kv(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])<0){for(s=i+1;l<s&&a(t,e[r+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(t,e[r+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])<0?l=f:o=f+1}return l}function wk(t,e){var r=Po,n,i,a=0,o=[];n=[],i=[];function s(h,d){n[a]=h,i[a]=d,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]<i[h+1]&&h--;else if(i[h]>i[h+1])break;f(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]<i[h+1]&&h--,f(h)}}function f(h){var d=n[h],p=i[h],g=n[h+1],m=i[h+1];i[h]=p+m,h===a-3&&(n[h+1]=n[h+2],i[h+1]=i[h+2]),a--;var y=kv(t[g],t,d,p,0,e);d+=y,p-=y,p!==0&&(m=Ev(t[d+p-1],t,g,m,m-1,e),m!==0&&(p<=m?c(d,p,g,m):v(d,p,g,m)))}function c(h,d,p,g){var m=0;for(m=0;m<d;m++)o[m]=t[h+m];var y=0,_=p,S=h;if(t[S++]=t[_++],--g===0){for(m=0;m<d;m++)t[S+m]=o[y+m];return}if(d===1){for(m=0;m<g;m++)t[S+m]=t[_+m];t[S+g]=o[y];return}for(var b=r,w,T,C;;){w=0,T=0,C=!1;do if(e(t[_],o[y])<0){if(t[S++]=t[_++],T++,w=0,--g===0){C=!0;break}}else if(t[S++]=o[y++],w++,T=0,--d===1){C=!0;break}while((w|T)<b);if(C)break;do{if(w=kv(t[_],o,y,d,0,e),w!==0){for(m=0;m<w;m++)t[S+m]=o[y+m];if(S+=w,y+=w,d-=w,d<=1){C=!0;break}}if(t[S++]=t[_++],--g===0){C=!0;break}if(T=Ev(o[y],t,_,g,0,e),T!==0){for(m=0;m<T;m++)t[S+m]=t[_+m];if(S+=T,_+=T,g-=T,g===0){C=!0;break}}if(t[S++]=o[y++],--d===1){C=!0;break}b--}while(w>=Po||T>=Po);if(C)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),d===1){for(m=0;m<g;m++)t[S+m]=t[_+m];t[S+g]=o[y]}else{if(d===0)throw new Error;for(m=0;m<d;m++)t[S+m]=o[y+m]}}function v(h,d,p,g){var m=0;for(m=0;m<g;m++)o[m]=t[p+m];var y=h+d-1,_=g-1,S=p+g-1,b=0,w=0;if(t[S--]=t[y--],--d===0){for(b=S-(g-1),m=0;m<g;m++)t[b+m]=o[m];return}if(g===1){for(S-=d,y-=d,w=S+1,b=y+1,m=d-1;m>=0;m--)t[w+m]=t[b+m];t[S]=o[_];return}for(var T=r;;){var C=0,D=0,x=!1;do if(e(o[_],t[y])<0){if(t[S--]=t[y--],C++,D=0,--d===0){x=!0;break}}else if(t[S--]=o[_--],D++,C=0,--g===1){x=!0;break}while((C|D)<T);if(x)break;do{if(C=d-kv(o[_],t,h,d,d-1,e),C!==0){for(S-=C,y-=C,d-=C,w=S+1,b=y+1,m=C-1;m>=0;m--)t[w+m]=t[b+m];if(d===0){x=!0;break}}if(t[S--]=o[_--],--g===1){x=!0;break}if(D=g-Ev(t[y],o,0,g,g-1,e),D!==0){for(S-=D,_-=D,g-=D,w=S+1,b=_+1,m=0;m<D;m++)t[w+m]=o[b+m];if(g<=1){x=!0;break}}if(t[S--]=t[y--],--d===0){x=!0;break}T--}while(C>=Po||D>=Po);if(x)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),g===1){for(S-=d,y-=d,w=S+1,b=y+1,m=d-1;m>=0;m--)t[w+m]=t[b+m];t[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),m=0;m<g;m++)t[b+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function yu(t,e,r,n){r||(r=0),n||(n=t.length);var i=n-r;if(!(i<2)){var a=0;if(i<u1){a=f1(t,r,n,e),c1(t,r,n,r+a,e);return}var o=wk(t,e),s=Sk(i);do{if(a=f1(t,r,n,e),a<s){var l=i;l>s&&(l=s),c1(t,r,r+l,r+a,e),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var h1=!1;function Rv(){h1||(h1=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function v1(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Tk=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=v1}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,e);n.length=this._displayListLen,yu(n,v1)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath(),a=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||i)){if(s||(s=e.__clipPaths=[]),a)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=i,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var c=e.childrenRef(),v=0;v<c.length;v++){var h=c[v];e.__dirty&&(h.__dirty|=$t),this._updateAndAddDisplayable(h,s,n)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(Rv(),d.z=0),isNaN(d.z2)&&(Rv(),d.z2=0),isNaN(d.zlevel)&&(Rv(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var p=e.getDecalElement&&e.getDecalElement();p&&this._updateAndAddDisplayable(p,s,n);var g=e.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,n);var m=e.getTextContent();m&&this._updateAndAddDisplayable(m,s,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r<n;r++)this.delRoot(e[r]);return}var i=fe(this._roots,e);i>=0&&this._roots.splice(i,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})(),Ov;Ov=ie.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};function ua(){return new Date().getTime()}var xk=(function(t){V(e,t);function e(r){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=ua()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Ov(n),!r._paused&&r.update())}Ov(n)},e.prototype.start=function(){this._running||(this._time=ua(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=ua(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=ua()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var i=new jf(r,n.loop);return this.addAnimator(i),i},e})(kr),Ck=300,Nv=ie.domSupported,Bv=(function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=$(t,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:t,touch:e,pointer:n}})(),d1={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},p1=!1;function Fv(t){var e=t.pointerType;return e==="pen"||e==="touch"}function Ak(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function zv(t){t&&(t.zrByTouch=!0)}function Dk(t,e){return zt(t.dom,new Mk(t,e),!0)}function g1(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var Mk=(function(){function t(e,r){this.stopPropagation=We,this.stopImmediatePropagation=We,this.preventDefault=We,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),er={mousedown:function(t){t=zt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=zt(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=zt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=zt(this.dom,t);var e=t.toElement||t.relatedTarget;g1(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){p1=!0,t=zt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){p1||(t=zt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=zt(this.dom,t),zv(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),er.mousemove.call(this,t),er.mousedown.call(this,t)},touchmove:function(t){t=zt(this.dom,t),zv(t),this.handler.processGesture(t,"change"),er.mousemove.call(this,t)},touchend:function(t){t=zt(this.dom,t),zv(t),this.handler.processGesture(t,"end"),er.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<Ck&&er.click.call(this,t)},pointerdown:function(t){er.mousedown.call(this,t)},pointermove:function(t){Fv(t)||er.mousemove.call(this,t)},pointerup:function(t){er.mouseup.call(this,t)},pointerout:function(t){Fv(t)||er.mouseout.call(this,t)}};I(["click","dblclick","contextmenu"],function(t){er[t]=function(e){e=zt(this.dom,e),this.trigger(t,e)}});var Vv={pointermove:function(t){Fv(t)||Vv.mousemove.call(this,t)},pointerup:function(t){Vv.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function Ik(t,e){var r=e.domHandlers;ie.pointerEventsSupported?I(Bv.pointer,function(n){_u(e,n,function(i){r[n].call(t,i)})}):(ie.touchEventsSupported&&I(Bv.touch,function(n){_u(e,n,function(i){r[n].call(t,i),Ak(e)})}),I(Bv.mouse,function(n){_u(e,n,function(i){i=Iv(i),e.touching||r[n].call(t,i)})}))}function Lk(t,e){ie.pointerEventsSupported?I(d1.pointer,r):ie.touchEventsSupported||I(d1.mouse,r);function r(n){function i(a){a=Iv(a),g1(t,a.target)||(a=Dk(t,a),e.domHandlers[n].call(t,a))}_u(e,n,i,{capture:!0})}}function _u(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,ck(t.domTarget,e,r,n)}function Gv(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&hk(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var m1=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),Pk=(function(t){V(e,t);function e(r,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new m1(r,er),Nv&&(i._globalHandlerScope=new m1(document,Vv)),Ik(i,i._localHandlerScope),i}return e.prototype.dispose=function(){Gv(this._localHandlerScope),Nv&&Gv(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Nv&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?Lk(this,n):Gv(n)}},e})(kr);var Su={},y1={};function Ek(t){delete y1[t]}function kk(t){if(!t)return!1;if(typeof t=="string")return Is(t,1)<Qf;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,i=0;i<n;i++)r+=Is(e[i].color,1);return r/=n,r<Qf}return!1}var Rk=(function(){function t(e,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n=n||{},this.dom=r,this.id=e;var a=new Tk,o=n.renderer||"canvas";Su[o]||(o=ce(Su)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Su[o](r,a,n,e),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!ie.node&&!ie.worker&&!l?new Pk(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?ie.touchEventsSupported:!!f,v=44,h;c&&(h=Z(n.pointerSize,v)),this.handler=new o1(a,s,u,s.root,h),this.animation=new xk({stage:{update:l?null:function(){return i._flush(!1)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=kk(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(e){var r,n=ua(),i=this._needsRefresh,a=this._needsRefreshHover;(i||a)&&(r=!0,this._refresh({animUpdate:e,refresh:i,refreshHover:a}));var o=ua();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,n){return this._disposed||this.handler.on(e,r,n),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof Ce&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.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,Ek(this.id))},t})();function _1(t,e){var r=new Rk(Gp(),t,e);return y1[r.id]=r,r}function Ok(t,e){Su[t]=e}var Hv;function Nk(t){if(typeof Hv=="function")return Hv(t)}function Bk(t){Hv=t}var S1="";typeof navigator<"u"&&(S1=navigator.platform||"");var fa="rgba(0, 0, 0, 0.2)",b1=Y.color.theme[0],Fk=Uf(b1,null,null,.9);const w1={darkMode:"auto",colorBy:"series",color:Y.color.theme,gradientColor:[Fk,b1],aria:{decal:{decals:[{color:fa,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:fa,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:fa,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:fa,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:fa,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:fa,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:S1.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var zk=te();function Vk(t,e,r){var n=zk.get(e);if(!n)return r;var i=n(t);return i?r.concat(i):r}var bu,Eo,T1,x1="\0_ec_inner",Gk=1,Uv=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new xe(a),this._locale=new xe(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){var a=D1(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,D1(n))},e.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?T1(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&I(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=te(),u=n&&n.replaceMergeMainTypeMap;qM(this),I(r,function(c,v){c!=null&&(ye.hasClass(v)?v&&(s.push(v),l.set(v,!0)):i[v]=i[v]==null?oe(c):be(i[v],c,!0))}),u&&u.each(function(c,v){ye.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),ye.topologicalTravel(s,ye.getAllClassMainTypes(),f,this);function f(c){var v=Vk(this,c,nt(r[c])),h=a.get(c),d=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=rD(h,v,d);uD(p,c,ye),i[c]=null,a.set(c,null),o.set(c,0);var g=[],m=[],y=0,_;I(p,function(S,b){var w=S.existing,T=S.newOption;if(!T)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var C=c==="series",D=ye.getClass(c,S.keyInfo.subType,!C);if(!D)return;if(c==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===D)w.name=S.keyInfo.name,w.mergeOption(T,this),w.optionUpdated(T,!1);else{var x=z({componentIndex:b},S.keyInfo);w=new D(T,this,this,x),z(w,x),S.brandNew&&(w.__requireNewView=!0),w.init(T,this,this),w.optionUpdated(null,!0)}}w?(g.push(w.option),m.push(w),y++):(g.push(void 0),m.push(void 0))},this),i[c]=g,a.set(c,m),o.set(c,y),c==="series"&&bu(this)}this._seriesIndices||bu(this)},e.prototype.getOption=function(){var r=oe(this.option);return I(r,function(n,i){if(ye.hasClass(i)){for(var a=nt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!ja(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[x1],r},e.prototype.setTheme=function(r){this._theme=new xe(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},e.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],I(nt(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=C1("id",a,s):o!=null?l=C1("name",o,s):l=Ue(s,function(u){return!!u}),A1(l,r)},e.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):Ue(this._componentsMap.get(i),function(u){return!!u});return l(A1(o,r));function s(u){var f=i+"Index",c=i+"Id",v=i+"Name";return u&&(u[f]!=null||u[c]!=null||u[v]!=null)?{mainType:i,index:u[f],id:u[c],name:u[v]}:null}function l(u){return r.filter?Ue(u,r.filter):u}},e.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(ee(r)){var o=n,s=r;a.each(function(c,v){for(var h=0;c&&h<c.length;h++){var d=c[h];d&&s.call(o,v,d,d.componentIndex)}})}else for(var l=q(r)?a.get(r):j(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=wr(r,null);return Ue(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return Ue(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return Ue(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){Eo(this),I(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},e.prototype.eachRawSeries=function(r,n){I(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,i){Eo(this),I(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,n,i){return I(this.getSeriesByType(r),n,i)},e.prototype.isSeriesFiltered=function(r){return Eo(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){Eo(this);var i=[];I(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=te(i)},e.prototype.restoreData=function(r){bu(this);var n=this._componentsMap,i=[];n.each(function(a,o){ye.hasClass(o)&&i.push(o)}),ye.topologicalTravel(i,ye.getAllClassMainTypes(),function(a){I(n.get(a),function(o){o&&(a!=="series"||!Hk(o,r))&&o.restoreData()})})},e.internalField=(function(){bu=function(r){var n=r._seriesIndices=[];I(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=te(n)},Eo=function(r){},T1=function(r,n){r.option={},r.option[x1]=Gk,r._componentsMap=te({series:[]}),r._componentsCount=te();var i=n.aria;j(i)&&i.enabled==null&&(i.enabled=!0),Uk(n,r._theme.option),be(n,w1,!1),r._mergeOption(n,null)}})(),e})(xe);function Hk(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,i=e.seriesName;return r!=null&&t.componentIndex!==r||n!=null&&t.id!==n||i!=null&&t.name!==i}}function Uk(t,e){var r=t.color&&!t.colorLayer;I(e,function(n,i){i==="colorLayer"&&r||i==="color"&&t.color||ye.hasClass(i)||(typeof n=="object"?t[i]=t[i]?be(t[i],n,!1):oe(n):t[i]==null&&(t[i]=n))})}function C1(t,e,r){if(W(e)){var n=te();return I(e,function(a){if(a!=null){var o=wr(a,null);o!=null&&n.set(a,!0)}}),Ue(r,function(a){return a&&n.get(a[t])})}else{var i=wr(e,null);return Ue(r,function(a){return a&&i!=null&&a[t]===i})}}function A1(t,e){return e.hasOwnProperty("subType")?Ue(t,function(r){return r&&r.subType===e.subType}):t}function D1(t){var e=te();return t&&I(nt(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}Ut(Uv,Vh);var Wk=/^(min|max)?(.+)$/,Yk=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(I(nt(e.series),function(o){o&&o.data&&ft(o.data)&&vs(o.data)}),I(nt(e.dataset),function(o){o&&o.source&&ft(o.source)&&vs(o.source)})),e=oe(e);var i=this._optionBackup,a=$k(e,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],oe(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(r=oe(n[i.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)Xk(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!Zk(o,this._currentMediaIndices)&&(s=$(o,function(f){return oe(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},t})();function $k(t,e,r){var n=[],i,a,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,f=!!t.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(t.options=t.media=null),a=t),f&&W(u)&&I(u,function(h){h&&h.option&&(h.query?n.push(h):i||(i=h))}),v(a),I(l,function(h){return v(h)}),I(n,function(h){return v(h.option)});function v(h){I(e,function(d){d(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function Xk(t,e,r){var n={width:e,height:r,aspectratio:e/r},i=!0;return I(t,function(a,o){var s=o.match(Wk);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();qk(n[u],a,l)||(i=!1)}}),i}function qk(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function Zk(t,e){return t.join(",")===e.join(",")}var tr=I,ko=j,M1=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Wv(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=M1.length;r<n;r++){var i=M1[r],a=e.normal,o=e.emphasis;a&&a[i]&&(t[i]=t[i]||{},t[i].normal?be(t[i].normal,a[i]):t[i].normal=a[i],a[i]=null),o&&o[i]&&(t[i]=t[i]||{},t[i].emphasis?be(t[i].emphasis,o[i]):t[i].emphasis=o[i],o[i]=null)}}function Qe(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,i=t[e].emphasis;n&&(r?(t[e].normal=t[e].emphasis=null,le(t[e],n)):t[e]=n),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function Ro(t){Qe(t,"itemStyle"),Qe(t,"lineStyle"),Qe(t,"areaStyle"),Qe(t,"label"),Qe(t,"labelLine"),Qe(t,"upperLabel"),Qe(t,"edgeLabel")}function Ne(t,e){var r=ko(t)&&t[e],n=ko(r)&&r.textStyle;if(n)for(var i=0,a=Sm.length;i<a;i++){var o=Sm[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Vt(t){t&&(Ro(t),Ne(t,"label"),t.emphasis&&Ne(t.emphasis,"label"))}function Kk(t){if(ko(t)){Wv(t),Ro(t),Ne(t,"label"),Ne(t,"upperLabel"),Ne(t,"edgeLabel"),t.emphasis&&(Ne(t.emphasis,"label"),Ne(t.emphasis,"upperLabel"),Ne(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Wv(e),Vt(e));var r=t.markLine;r&&(Wv(r),Vt(r));var n=t.markArea;n&&Vt(n);var i=t.data;if(t.type==="graph"){i=i||t.nodes;var a=t.links||t.edges;if(a&&!ft(a))for(var o=0;o<a.length;o++)Vt(a[o]);I(t.categories,function(u){Ro(u)})}if(i&&!ft(i))for(var o=0;o<i.length;o++)Vt(i[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Vt(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)W(l[o])?(Vt(l[o][0]),Vt(l[o][1])):Vt(l[o]);t.type==="gauge"?(Ne(t,"axisLabel"),Ne(t,"title"),Ne(t,"detail")):t.type==="treemap"?(Qe(t.breadcrumb,"itemStyle"),I(t.levels,function(u){Ro(u)})):t.type==="tree"&&Ro(t.leaves)}}function Yr(t){return W(t)?t:t?[t]:[]}function I1(t){return(W(t)?t[0]:t)||{}}function jk(t,e){tr(Yr(t.series),function(n){ko(n)&&Kk(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),tr(r,function(n){tr(Yr(t[n]),function(i){i&&(Ne(i,"axisLabel"),Ne(i.axisPointer,"label"))})}),tr(Yr(t.parallel),function(n){var i=n&&n.parallelAxisDefault;Ne(i,"axisLabel"),Ne(i&&i.axisPointer,"label")}),tr(Yr(t.calendar),function(n){Qe(n,"itemStyle"),Ne(n,"dayLabel"),Ne(n,"monthLabel"),Ne(n,"yearLabel")}),tr(Yr(t.radar),function(n){Ne(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),tr(Yr(t.geo),function(n){ko(n)&&(Vt(n),tr(Yr(n.regions),function(i){Vt(i)}))}),tr(Yr(t.timeline),function(n){Vt(n),Qe(n,"label"),Qe(n,"itemStyle"),Qe(n,"controlStyle",!0);var i=n.data;W(i)&&I(i,function(a){j(a)&&(Qe(a,"label"),Qe(a,"itemStyle"))})}),tr(Yr(t.toolbox),function(n){Qe(n,"iconStyle"),tr(n.feature,function(i){Qe(i,"iconStyle")})}),Ne(I1(t.axisPointer),"label"),Ne(I1(t.tooltip).axisPointer,"label")}function Qk(t,e){for(var r=e.split(","),n=t,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function Jk(t,e,r,n){for(var i=e.split(","),a=t,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=r)}function L1(t){t&&I(eR,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var eR=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],tR=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Yv=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Oo(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<Yv.length;r++){var n=Yv[r][1],i=Yv[r][0];e[n]!=null&&(e[i]=e[n])}}function P1(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function E1(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function rR(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function k1(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&k1(t[r].children,e)}function R1(t,e){jk(t,e),t.series=nt(t.series),I(t.series,function(r){if(j(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),P1(r.label);var i=r.data;if(i&&!ft(i))for(var a=0;a<i.length;a++)P1(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=Qk(r,"pointer.color");o!=null&&Jk(r,"itemStyle.color",o)}else if(n==="bar"){Oo(r),Oo(r.backgroundStyle),Oo(r.emphasis);var i=r.data;if(i&&!ft(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(Oo(i[a]),Oo(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),E1(r),k1(r.data,E1)}else n==="graph"||n==="sankey"?rR(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&le(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),L1(r)}}),t.dataRange&&(t.visualMap=t.dataRange),I(tR,function(r){var n=t[r];n&&(W(n)||(n=[n]),I(n,function(i){L1(i)}))})}var nR=Lc(iR);function iR(t){var e=te();t.eachSeries(function(r){var n=r.get("stack");if(n){var i=e.get(n)||e.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.push(o)}}),e.each(function(r){if(r.length!==0){var n=r[0].seriesModel,i=n.get("stackOrder")||"seriesAsc";i==="seriesDesc"&&r.reverse(),I(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),aR(r)}})}function aR(t){I(t,function(e,r){var n=[],i=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,c){var v=o.get(e.stackedDimension,c);if(isNaN(v))return i;var h,d;s?d=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var p=NaN,g=r-1;g>=0;g--){var m=t[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,h)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&v>=0&&y>0||l==="samesign"&&v<=0&&y<0){v=qA(v,y),p=y;break}}}return n[0]=v,n[1]=p,n})})}var bt=(function(){function t(){this.group=new Ce,this.uid=vo("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){},t.prototype.updateLayout=function(e,r,n,i){},t.prototype.updateVisual=function(e,r,n,i){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();pf(bt),gs(bt);var O1=Se(),N1={itemStyle:Ma(Oy,!0),lineStyle:Ma(Ry,!0)},oR={lineStyle:"stroke",itemStyle:"fill"};function B1(t,e){var r=t.visualStyleMapper||N1[e];return r||(console.warn("Unknown style type '"+e+"'."),N1.itemStyle)}function F1(t,e){var r=t.visualDrawType||oR[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var sR={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),a=B1(t,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=F1(t,n),u=o[l],f=ee(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var v=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=v,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ee(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||ee(o.stroke)?v:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var p=t.getDataParams(d),g=z({},o);g[l]=f(p),h.setItemVisual(d,"style",g)}}}},No=new xe,lR={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=B1(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){No.option=l[n];var u=i(No),f=o.ensureUniqueItemVisual(s,"style");z(f,u),No.option.decal&&(o.setItemVisual(s,"decal",No.option.decal),No.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},uR={performRawSeries:!0,overallReset:function(t){var e=te();t.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.type+"-"+r.getColorBy();O1(r).scope=e.get(n)||e.set(n,{})}}),t.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.getRawData(),i={},a=r.getData(),o=O1(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=F1(r,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var v=a.ensureUniqueItemVisual(f,"style"),h=n.getName(u)||u+"",d=n.count();v[l]=r.getColorFromPalette(h,o,d)}})}})}},wu=Math.PI;function fR(t,e){e=e||{},le(e,{text:"loading",textColor:Y.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:Y.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Ce,n=new De({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var i=new Me({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new De({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new cl({shape:{startAngle:-wu/2,endAngle:-wu/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:wu*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:wu*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var z1=(function(){function t(e,r,n,i){this._stageTaskMap=te(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),i=e.__preparePipelineContext?e.__preparePipelineContext(r,n):Mm(e,r,n);e.pipelineContext=n.context=i},t.prototype.restorePipelines=function(e,r){var n=this,i=n._pipelineMap=te();r.eachSeries(function(a){var o=e.painter.type==="canvas"&&a.getProgressive(),s=a.uid;i.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;I(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";Wt(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},t.prototype.prepareView=function(e,r,n,i){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,i){i=i||{};var a=!1,o=this;I(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,v=f.overallTask;if(v){var h,d=v.agentStubMap;d.each(function(g){s(i,g)&&(g.dirty(),h=!0)}),h&&v.dirty(),o.updatePayload(v,n);var p=o.getPerformArgs(v,i.block);d.each(function(g){g.perform(p)}),v.perform(p)&&(a=!0)}else c&&c.each(function(g,m){s(i,g)&&g.dirty();var y=o.getPerformArgs(g,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=te(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(c){var v=c.uid,h=s.set(v,o&&o.get(v)||bo({plan:pR,reset:gR,count:yR}));h.context={model:c,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,h)}},t.prototype._createOverallStageTask=function(e,r,n,i){var a=this,o=r.overallTask=r.overallTask||bo({reset:cR});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=te(),u=e.seriesType,f=e.getTargetSeries,c=e.dirtyOnOverallProgress,v=!1,h="";Wt(!e.createOnAllSeries,h),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):I(n.getSeries(),d);function d(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(v=!0,bo({reset:hR,onDirty:dR})));m.context={model:p,dirtyOnOverallProgress:c},m.agent=o,m.__block=c,a._pipe(p,m)}v&&o.dirty()},t.prototype._pipe=function(e,r){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},t.wrapStageHandler=function(e,r){return ee(e)&&(e={overallReset:e,seriesType:_R(e)}),e.uid=vo("stageHandler"),r&&(e.visualType=r),e},t})();function cR(t){t.overallReset(t.ecModel,t.api,t.payload)}function hR(t){return t.dirtyOnOverallProgress&&vR}function vR(){this.agent.dirty(),this.getDownstream().dirty()}function dR(){this.agent&&this.agent.dirty()}function pR(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function gR(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=nt(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?$(e,function(r,n){return V1(n)}):mR}var mR=V1(0);function V1(t){return function(e,r){var n=r.data,i=r.resetDefines[t];if(i&&i.dataEach)for(var a=e.start;a<e.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(e,n)}}function yR(t){return t.data.count()}function _R(t){Tu=null;try{t(Bo,G1)}catch{}return Tu}var Bo={},G1={},Tu;H1(Bo,Uv),H1(G1,Em),Bo.eachSeriesByType=Bo.eachRawSeriesByType=function(t){Tu=t},Bo.eachComponent=function(t){t.mainType==="series"&&t.subType&&(Tu=t.subType)};function H1(t,e){for(var r in e.prototype)t[r]=We}var U=Y.darkColor,U1=U.background,Fo=function(){return{axisLine:{lineStyle:{color:U.axisLine}},splitLine:{lineStyle:{color:U.axisSplitLine}},splitArea:{areaStyle:{color:[U.backgroundTint,U.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:U.axisMinorSplitLine}},axisLabel:{color:U.axisLabel},axisName:{}}},W1={label:{color:U.secondary},itemStyle:{borderColor:U.borderTint},dividerLineStyle:{color:U.border}},Y1={darkMode:!0,color:U.theme,backgroundColor:U1,axisPointer:{lineStyle:{color:U.border},crossStyle:{color:U.borderShade},label:{color:U.tertiary}},legend:{textStyle:{color:U.secondary},pageTextStyle:{color:U.tertiary}},textStyle:{color:U.secondary},title:{textStyle:{color:U.primary},subtextStyle:{color:U.quaternary}},toolbox:{iconStyle:{borderColor:U.accent50},feature:{dataView:{backgroundColor:U1,textColor:U.primary,textareaColor:U.background,textareaBorderColor:U.border,buttonColor:U.accent50,buttonTextColor:U.neutral00}}},tooltip:{backgroundColor:U.neutral20,defaultBorderColor:U.border,textStyle:{color:U.tertiary}},dataZoom:{borderColor:U.accent10,textStyle:{color:U.tertiary},brushStyle:{color:U.backgroundTint},handleStyle:{color:U.neutral00,borderColor:U.accent20},moveHandleStyle:{color:U.accent40},emphasis:{handleStyle:{borderColor:U.accent50}},dataBackground:{lineStyle:{color:U.accent30},areaStyle:{color:U.accent20}},selectedDataBackground:{lineStyle:{color:U.accent50},areaStyle:{color:U.accent30}}},visualMap:{textStyle:{color:U.secondary},handleStyle:{borderColor:U.neutral30}},timeline:{lineStyle:{color:U.accent10},label:{color:U.tertiary},controlStyle:{color:U.accent30,borderColor:U.accent30}},calendar:{itemStyle:{color:U.neutral00,borderColor:U.neutral20},dayLabel:{color:U.tertiary},monthLabel:{color:U.secondary},yearLabel:{color:U.secondary}},matrix:{x:W1,y:W1,backgroundColor:{borderColor:U.axisLine},body:{itemStyle:{borderColor:U.borderTint}}},timeAxis:Fo(),logAxis:Fo(),valueAxis:Fo(),categoryAxis:Fo(),line:{symbol:"circle"},graph:{color:U.theme},gauge:{title:{color:U.secondary},axisLine:{lineStyle:{color:[[1,U.neutral05]]}},axisLabel:{color:U.axisLabel},detail:{color:U.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:U.background}},radar:(function(){var t=Fo();return t.axisName={color:U.axisLabel},t.axisLine.lineStyle.color=U.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:U.neutral20,textStyle:{color:U.secondary}},emphasis:{itemStyle:{color:U.neutral30}}}},sunburst:{itemStyle:{borderColor:U.background}},map:{itemStyle:{borderColor:U.border,areaColor:U.neutral10},label:{color:U.tertiary},emphasis:{label:{color:U.primary},itemStyle:{areaColor:U.highlight}},select:{label:{color:U.primary},itemStyle:{areaColor:U.highlight}}},geo:{itemStyle:{borderColor:U.border,areaColor:U.neutral10},emphasis:{label:{color:U.primary},itemStyle:{areaColor:U.highlight}},select:{label:{color:U.primary},itemStyle:{color:U.highlight}}}};Y1.categoryAxis.splitLine.show=!1;var SR=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},i={};if(q(e)){var a=vr(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};I(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var v=o[c],h=u.lastIndexOf(v);if(h>0&&h===u.length-v.length){var d=u.slice(0,h);d!=="data"&&(r.mainType=d,r[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},t.prototype.filter=function(e,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,i,a));function f(c,v,h,d){return c[h]==null||v[d||h]===c[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})(),$v=["symbol","symbolSize","symbolRotate","symbolOffset"],$1=$v.concat(["symbolKeepAspect"]),bR={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<$v.length;o++){var s=$v[o],l=t.get(s);ee(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(z({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),e.isSeriesFiltered(t))return;var u=ce(i);function f(c,v){for(var h=t.getRawValue(v),d=t.getDataParams(v),p=0;p<u.length;p++){var g=u[p];c.setItemVisual(v,g,i[g](h,d))}}return{dataEach:a?f:null}}},wR={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<$1.length;s++){var l=$1[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function TR(t,e,r){switch(r){case"color":var n=t.getItemVisual(e,"style");return n[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r)}}function xR(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function zo(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var Gt=new kr,X1={};function CR(t,e){X1[t]=e}function AR(t){return X1[t]}var DR=Math.round(Math.random()*9),MR=typeof Object.defineProperty=="function",IR=(function(){function t(){this._id="__ec_inner_"+DR++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return MR?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t})();function li(t){return isFinite(t)}function LR(t,e,r){var n=e.x==null?0:e.x,i=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=li(n)?n:0,i=li(i)?i:1,a=li(a)?a:0,o=li(o)?o:0;var s=t.createLinearGradient(n,a,i,o);return s}function PR(t,e,r){var n=r.width,i=r.height,a=Math.min(n,i),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*n+r.x,s=s*i+r.y,l=l*a),o=li(o)?o:.5,s=li(s)?s:.5,l=l>=0&&li(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function q1(t,e,r){for(var n=e.type==="radial"?PR(t,e,r):LR(t,e,r),i=e.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function ER(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function xu(t){return parseInt(t,10)}function Z1(t,e,r){var n=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(t);return(t[i]||xu(s[n])||xu(t.style[n]))-(xu(s[a])||0)-(xu(s[o])||0)||0}function kR(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:me(t)?[t]:W(t)?t:null}function Xv(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&kR(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(r=$(r,function(a){return a/i}),n/=i)}return[r,n]}var RR=new tn(!0);function Cu(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function K1(t){return typeof t=="string"&&t!=="none"}function Au(t){var e=t.fill;return e!=null&&e!=="none"}function j1(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function Q1(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function J1(t,e,r){var n=mf(e.image,e.__image,r);if(ms(n)){var i=t.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*ps),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function OR(t,e,r,n,i){var a,o=Cu(r),s=Au(r),l=r.strokePercent,u=l<1,f=!e.path;(!e.silent||u)&&f&&e.createPathProxy();var c=e.path||RR,v=e.__dirty;if(!n){var h=r.fill,d=r.stroke,p=s&&!!h.colorStops,g=o&&!!d.colorStops,m=s&&!!h.image,y=o&&!!d.image,_=void 0,S=void 0,b=void 0,w=void 0,T=void 0;(p||g)&&(T=e.getBoundingRect()),p&&(_=v?q1(t,h,T):e.__canvasFillGradient,e.__canvasFillGradient=_),g&&(S=v?q1(t,d,T):e.__canvasStrokeGradient,e.__canvasStrokeGradient=S),m&&(b=v||!e.__canvasFillPattern?J1(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=b),y&&(w=v||!e.__canvasStrokePattern?J1(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=w),p?t.fillStyle=_:m&&(b?t.fillStyle=b:s=!1),g?t.strokeStyle=S:y&&(w?t.strokeStyle=w:o=!1)}var C=e.getGlobalScale();c.setScale(C[0],C[1],e.segmentIgnoreThreshold);var D,x;t.setLineDash&&r.lineDash&&(a=Xv(e),D=a[0],x=a[1]);var A=!0;(f||v&Pi)&&(c.setDPR(t.dpr),u?c.setContext(null):(c.setContext(t),A=!1),c.reset(),e.buildPath(c,e.shape,n),c.toStatic(),e.pathUpdated()),A&&c.rebuildPath(t,u?l:1),D&&(t.setLineDash(D),t.lineDashOffset=x),n?(i.batchFill=s,i.batchStroke=o):r.strokeFirst?(o&&Q1(t,r),s&&j1(t,r)):(s&&j1(t,r),o&&Q1(t,r)),D&&t.setLineDash([])}function NR(t,e,r){var n=e.__image=mf(r.image,e.__image,e,e.onload);if(!(!n||!ms(n))){var i=r.x||0,a=r.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;t.drawImage(n,u,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,v=s-f;t.drawImage(n,u,f,c,v,i,a,o,s)}else t.drawImage(n,i,a,o,s)}}function BR(t,e,r){var n,i=r.text;if(i!=null&&(i+=""),i){t.font=r.font||Pr,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=Xv(e),a=n[0],o=n[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(Cu(r)&&t.strokeText(i,r.x,r.y),Au(r)&&t.fillText(i,r.x,r.y)):(Au(r)&&t.fillText(i,r.x,r.y),Cu(r)&&t.strokeText(i,r.x,r.y)),a&&t.setLineDash([])}}var eb=["shadowBlur","shadowOffsetX","shadowOffsetY"],tb=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function rb(t,e,r,n,i){var a=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){lt(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?kn.opacity:o}(n||e.blend!==r.blend)&&(a||(lt(t,i),a=!0),t.globalCompositeOperation=e.blend||kn.blend);for(var s=0;s<eb.length;s++){var l=eb[s];(n||e[l]!==r[l])&&(a||(lt(t,i),a=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==r.shadowColor)&&(a||(lt(t,i),a=!0),t.shadowColor=e.shadowColor||kn.shadowColor),a}function nb(t,e,r,n,i){var a=e.style,o=n?null:r&&r.style||{};if(a===o)return!1;var s=rb(t,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(lt(t,i),s=!0),K1(a.fill)&&(t.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(lt(t,i),s=!0),K1(a.stroke)&&(t.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(lt(t,i),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(lt(t,i),s=!0),t.lineWidth=u)}for(var f=0;f<tb.length;f++){var c=tb[f],v=c[0];(n||a[v]!==o[v])&&(s||(lt(t,i),s=!0),t[v]=a[v]||c[1])}return s}function FR(t,e,r,n,i){return rb(t,e.style,r&&r.style,n,i)}function ib(t,e){var r=e.transform,n=t.dpr||1;r?t.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):t.setTransform(n,0,0,n,0,0)}function zR(t,e,r){for(var n=!1,i=0;i<t.length;i++){var a=t[i];n=n||a.isZeroArea(),ib(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=n}function VR(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var ab=1,ob=2,sb=3,lb=4;function GR(t){var e=Au(t),r=Cu(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function lt(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function HR(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};qv(t,e,r),Zv(t,r)}function qv(t,e,r){var n=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~$t,e.__isRendered=!1;return}var i=e.__clipPaths,a=r.prevElClipPaths,o=e.style,s=!1,l=!1;if((!a||ER(i,a))&&(a&&(lt(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(lt(t,r),t.save(),zR(i,t,r),s=!0,r.prevElClipPaths=i)),r.allClipped){e.__dirty&=~$t,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=e instanceof pe&&e.autoBatch&&GR(o);s||VR(n,u.transform)?(lt(t,r),ib(t,e)):f||lt(t,r),e instanceof pe?(r.lastDrawType!==ab&&(l=!0,r.lastDrawType=ab),nb(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),OR(t,e,o,f,r)):e instanceof $a?(r.lastDrawType!==sb&&(l=!0,r.lastDrawType=sb),nb(t,e,u,l,r),BR(t,e,o)):e instanceof Mt?(r.lastDrawType!==ob&&(l=!0,r.lastDrawType=ob),FR(t,e,u,l,r),NR(t,e,o)):e.getTemporalDisplayables&&(r.lastDrawType!==lb&&(l=!0,r.lastDrawType=lb),UR(t,e,r)),e.innerAfterBrush(),e.afterBrush&&(f&&lt(t,r),e.afterBrush()),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Zv(t,e){lt(t,e),e.prevElClipPaths&&t.restore()}function UR(t,e,r){var n=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),qv(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}Zv(t,a);for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),qv(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}Zv(t,a),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var Kv=new IR,ub=new bi(100),fb=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function jv(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),i=n.painter.type==="svg";t.dirty&&Kv.delete(t);var a=Kv.get(t);if(a)return a;var o=le(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,Kv.set(t,s),t.dirty=!1,s;function l(u){for(var f=[r],c=!0,v=0;v<fb.length;++v){var h=o[fb[v]];if(h!=null&&!W(h)&&!q(h)&&!me(h)&&typeof h!="boolean"){c=!1;break}f.push(h)}var d;if(c){d=f.join(",")+(i?"-svg":"");var p=ub.get(d);p&&(i?u.svgElement=p:u.image=p)}var g=hb(o.dashArrayX),m=WR(o.dashArrayY),y=cb(o.symbol),_=YR(g),S=vb(m),b=!i&&cr.createCanvas(),w=i&&{tag:"g",attrs:{},key:"dcl",children:[]},T=D(),C;b&&(b.width=T.width*r,b.height=T.height*r,C=b.getContext("2d")),x(),c&&ub.put(d,b||w),u.image=b,u.svgElement=w,u.svgWidth=T.width,u.svgHeight=T.height;function D(){for(var A=1,L=0,M=_.length;L<M;++L)A=gm(A,_[L]);for(var P=1,L=0,M=y.length;L<M;++L)P=gm(P,y[L].length);A*=P;var E=S*_.length*y.length;return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(E,o.maxTileHeight))}}function x(){C&&(C.clearRect(0,0,b.width,b.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,b.width,b.height)));for(var A=0,L=0;L<m.length;++L)A+=m[L];if(A<=0)return;for(var M=-S,P=0,E=0,k=0;M<T.height;){if(P%2===0){for(var O=E/2%y.length,R=0,N=0,F=0;R<T.width*2;){for(var B=0,L=0;L<g[k].length;++L)B+=g[k][L];if(B<=0)break;if(N%2===0){var G=(1-o.symbolSize)*.5,X=R+g[k][N]*G,H=M+m[P]*G,K=g[k][N]*o.symbolSize,ae=m[P]*o.symbolSize,ke=F/2%y[O].length;Ae(X,H,K,ae,y[O][ke])}R+=g[k][N],++F,++N,N===g[k].length&&(N=0)}++k,k===g.length&&(k=0)}M+=m[P],++E,++P,P===m.length&&(P=0)}function Ae(he,Te,J,se,pt){var Re=i?1:r,ir=Ar(pt,he*Re,Te*Re,J*Re,se*Re,o.color,o.symbolKeepAspect);if(i){var gt=n.painter.renderOneToVNode(ir);gt&&w.children.push(gt)}else HR(C,ir)}}}}function cb(t){if(!t||t.length===0)return[["rect"]];if(q(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!q(t[r])){e=!1;break}if(e)return cb([t]);for(var n=[],r=0;r<t.length;++r)q(t[r])?n.push([t[r]]):n.push(t[r]);return n}function hb(t){if(!t||t.length===0)return[[0,0]];if(me(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,n=0;n<t.length;++n)if(!me(t[n])){r=!1;break}if(r)return hb([t]);for(var i=[],n=0;n<t.length;++n)if(me(t[n])){var e=Math.ceil(t[n]);i.push([e,e])}else{var e=$(t[n],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function WR(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(me(t)){var e=Math.ceil(t);return[e,e]}var r=$(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}function YR(t){return $(t,function(e){return vb(e)})}function vb(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}var $R=Lc(XR);function XR(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=jv(s,e)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=jv(i,e)}}})}var qR=1,ZR=800,KR=900,jR=920,QR=1e3,JR=2e3,db=5e3,pb=1e3,eO=1100,Qv=2e3,gb=3e3,tO=4e3,Du=4500,rO=4600,nO=5e3,iO=6e3,mb=7e3,aO={PROCESSOR:{SERIES_FILTER:ZR,AXIS_STATISTICS:jR,FILTER:QR,STATISTIC:db,STATISTICS:db},VISUAL:{LAYOUT:pb,PROGRESSIVE_LAYOUT:eO,GLOBAL:Qv,CHART:gb,POST_CHART_LAYOUT:rO,COMPONENT:tO,BRUSH:nO,CHART_ITEM:Du,ARIA:iO,DECAL:mb}},Fe="__flagInMainProcess",Mu="__mainProcessVersion",He="__pendingUpdate",Jv="__needsUpdateStatus",yb=/^[a-zA-Z0-9_]+$/,ed="__connectUpdateStatus",_b=0,oO=1,sO=2;function Sb(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return wb(this,t,e)}}function bb(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return wb(this,t,e)}}function wb(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),kr.prototype[e].apply(t,r)}var Tb=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(kr),xb=Tb.prototype;xb.on=bb("on"),xb.off=bb("off");var ui,td,Iu,$r,Lu,rd,nd,ca,ha,Cb,Ab,id,Db,Pu,Mb,Ib,Ht,Lb,va,Pb=(function(t){V(e,t);function e(r,n,i){var a=t.call(this,new SR)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},a.__v_skip=!0,a._dom=r;var o="canvas",s="auto",l=!1;a[Mu]=1,i.ssr&&Bk(function(v){var h=ue(v),d=h.dataIndex;if(d!=null){var p=te();return p.set("series_index",h.seriesIndex),p.set("data_index",d),h.ssrType&&p.set("ssr_type",h.ssrType),p}});var u=a._zr=_1(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Z(i.useDirtyRect,l),useCoarsePointer:Z(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=_v(de(u.flush,u),17),a._updateTheme(n),a._locale=XI(i.locale||S0),a._coordSysMgr=new wh;var f=a._api=Mb(a);function c(v,h){return v.__prio-h.__prio}return yu(ku,c),yu(ld,c),a._scheduler=new z1(a,f,ld,ku),a._messageCenter=new Tb,a._initEvents(),a.resize=de(a.resize,a),u.animation.on("frame",a._onframe,a),Cb(u,a),Ab(u,a),vs(a),a}return e.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,n=this._model,i=this._api;if(Lb(this),this[He]){var a=this[He].silent;this[Fe]=!0,va(this);try{ui(this),$r.update.call(this,null,this[He].updateParams)}catch(l){throw this[Fe]=!1,this[He]=null,l}this._zr.flush(),this[Fe]=!1,this[He]=null,ca.call(this,a),ha.call(this,a)}else if(r.unfinished){var o=qR;do{r.unfinished=!1;var s=cr.getTime();r.performSeriesTasks(n),r.performDataProcessorTasks(n),rd(this,n),r.performVisualTasks(n),Pu(this,this._model,i,"remain",{}),o-=cr.getTime()-s}while(o>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,i){if(!this[Fe]){if(this._disposed){this.id;return}var a,o,s;if(j(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Fe]=!0,va(this),!this._model||n){var l=new Yk(this._api),u=this._theme,f=this._model=new Uv;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},ud);var c={seriesTransition:s,optionChanged:!0};if(i)this[He]={silent:a,updateParams:c},this[Fe]=!1,this.getZr().wakeUp();else{try{ui(this),$r.update.call(this,null,c)}catch(v){throw this[He]=null,this[Fe]=!1,v}this._ssr||this._zr.flush(),this[He]=null,this[Fe]=!1,ca.call(this,a),ha.call(this,a)}}},e.prototype.setTheme=function(r,n){if(!this[Fe]){if(this._disposed){this.id;return}var i=this._model;if(i){var a=n&&n.silent,o=null;this[He]&&(a==null&&(a=this[He].silent),o=this[He].updateParams,this[He]=null),this[Fe]=!0,va(this);try{this._updateTheme(r),i.setTheme(this._theme),ui(this),$r.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Fe]=!1,s}this[Fe]=!1,ca.call(this,a),ha.call(this,a)}}},e.prototype._updateTheme=function(r){q(r)&&(r=Eb[r]),r&&(r=oe(r),r&&R1(r,!0),this._theme=r)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ie.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,n=r.storage.getDisplayList();return I(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;I(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return I(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(kb[i]){var l=s,u=s,f=-s,c=-s,v=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();I(Vo,function(_,S){if(_.group===i){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(oe(r)),w=_.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),f=o(w.right,f),c=o(w.bottom,c),v.push({dom:b,left:w.left,top:w.top})}}),l*=h,u*=h,f*=h,c*=h;var d=f-l,p=c-u,g=cr.createCanvas(),m=_1(g,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:p}),n){var y="";return I(v,function(_){var S=_.left-l,b=_.top-u;y+='<g transform="translate('+S+","+b+')">'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new De({shape:{x:0,y:0,width:d,height:p},style:{fill:r.connectedBackgroundColor}})),I(v,function(_){var S=new Mt({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});m.add(S)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n,i){return Lu(this,"convertToPixel",r,n,i)},e.prototype.convertToLayout=function(r,n,i){return Lu(this,"convertToLayout",r,n,i)},e.prototype.convertFromPixel=function(r,n,i){return Lu(this,"convertFromPixel",r,n,i)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Cc(i,r);return I(o,function(s,l){l.indexOf("Models")>=0&&I(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(n,u))}},this)},this),!!a},e.prototype.getVisual=function(r,n){var i=this._model,a=Cc(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?TR(s,l,n):xR(s,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;I(lO,function(i){var a=function(o){var s=r.getModel(),l=o.target,u,f=i==="globalout";if(f?u={}:l&&zo(l,function(p){var g=ue(p);if(g&&g.dataIndex!=null){var m=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=m&&m.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return u=z({},g.eventData),!0},!0),u){var c=u.componentType,v=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",v=u.seriesIndex);var h=c&&v!=null&&s.getComponent(c,v),d=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=i,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:d},r.trigger(i,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(i,a,r)});var n=this._messageCenter;I(sd,function(i,a){n.on(a,function(o){r.trigger(a,o)})}),$E(n,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&wm(this.getDom(),cd,"");var n=this,i=n._api,a=n._model;I(n._componentsViews,function(o){o.dispose(a,i)}),I(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Vo[n.id]},e.prototype.resize=function(r){if(!this[Fe]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[He]&&(a==null&&(a=this[He].silent),i=!0,this[He]=null),this[Fe]=!0,va(this);try{i&&ui(this),$r.update.call(this,{type:"resize",animation:z({duration:0},r&&r.animation)})}catch(o){throw this[Fe]=!1,o}this[Fe]=!1,ca.call(this,a),ha.call(this,a)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(j(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!fd[r]){var i=fd[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=z({},r);return n.type=od[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(j(n)||(n={silent:!!n}),!!Eu[r.type]&&this._model){if(this[Fe]){this._pendingActions.push(r);return}var i=n.silent;nd.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&ie.browser.weChat&&this._throttledZrFlush(),ca.call(this,i),ha.call(this,i)}},e.prototype.updateLabelLayout=function(){Gt.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){ui=function(c){d2(c._model);var v=c._scheduler;v.restorePipelines(c._zr,c._model),v.prepareStageTasks(),td(c,!0),td(c,!1),v.plan()},td=function(c,v){for(var h=c._model,d=c._scheduler,p=v?c._componentsViews:c._chartsViews,g=v?c._componentsMap:c._chartsMap,m=c._zr,y=c._api,_=0;_<p.length;_++)p[_].__alive=!1;v?h.eachComponent(function(w,T){w!=="series"&&S(T)}):h.eachSeries(S);function S(w){var T=w.__requireNewView;w.__requireNewView=!1;var C="_ec_"+w.id+"_"+w.type,D=!T&&g[C];if(!D){var x=vr(w.type),A=v?bt.getClass(x.main,x.sub):je.getClass(x.sub);D=new A,D.init(h,y),g[C]=D,p.push(D),m.add(D.group)}w.__viewId=D.__id=C,D.__alive=!0,D.__model=w,D.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!v&&d.prepareView(D,w,h,y)}for(var _=0;_<p.length;){var b=p[_];b.__alive?_++:(!v&&b.renderTask.dispose(),m.remove(b.group),b.dispose(h,y),p.splice(_,1),g[b.__id]===b&&delete g[b.__id],b.__id=b.group.__ecComponentInfo=null)}},Iu=function(c,v,h,d,p){var g=c._model;if(g.setUpdatePayload(h),!d){I([].concat(c._componentsViews).concat(c._chartsViews),S);return}var m=hD(h,d,p),y=h.excludeSeriesId,_;y!=null&&(_=te(),I(nt(y),function(b){var w=wr(b,null);w!=null&&_.set(w,!0)})),g&&g.eachComponent(m,function(b){var w=_&&_.get(b.id)!=null;if(!w)if(jm(h))if(b instanceof ot)h.type===$n&&!h.notBlur&&!b.get(["emphasis","disabled"])&&kD(b,h,c._api);else{var T=Vc(b.mainType,b.componentIndex,h.name,c._api),C=T.focusSelf,D=T.dispatchers;h.type===$n&&C&&!h.notBlur&&zc(b.mainType,b.componentIndex,c._api),D&&I(D,function(x){h.type===$n?al(x):ol(x)})}else Uc(h)&&b instanceof ot&&(ND(b,h,c._api),qm(b),Ht(c))},c),g&&g.eachComponent(m,function(b){var w=_&&_.get(b.id)!=null;w||S(c[d==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},c);function S(b){b&&b.__alive&&b[v]&&b[v](b.__model,g,c._api,h)}},$r={prepareAndUpdate:function(c){ui(this),$r.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,v){var h=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(h){p2(h),h.setUpdatePayload(c),m.restoreData(h,c),m.performSeriesTasks(h),g.create(h,d),Gt.trigger("coordsys:aftercreate",h,d),m.performDataProcessorTasks(h,c),rd(this,h),g.update(h,d),n(h),m.performVisualTasks(h,c);var y=h.get("backgroundColor")||"transparent";p.setBackgroundColor(y);var _=h.get("darkMode");_!=null&&_!=="auto"&&p.setDarkMode(_),id(this,h,d,c,v),Gt.trigger("afterupdate",h,d)}},updateTransform:function(c){var v=this,h=v._model,d=v._api;if(h){h.setUpdatePayload(c);var p=[];h.eachComponent(function(m,y){if(m!==Im){var _=v.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(y,h,d,c);S&&S.update&&p.push(_)}else p.push(_)}});var g=te();h.eachSeries(function(m){var y=v._chartsMap[m.__viewId],_=m.pipelineContext;if(y.updateTransform&&!_.progressiveRender){var S=y.updateTransform(m,h,d,c);S&&S.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),v._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:g}),Pu(v,h,d,c,{},g),Gt.trigger("afterupdate",h,d)}},updateView:function(c){var v=this._model;v&&(v.setUpdatePayload(c),je.markUpdateMethod(c,"updateView"),n(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0}),id(this,v,this._api,c,{}),Gt.trigger("afterupdate",v,this._api))},updateVisual:function(c){var v=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(d){d.getData().clearAllVisual()}),je.markUpdateMethod(c,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,p){if(d!=="series"){var g=v.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,h,v._api,c)}}),h.eachSeries(function(d){var p=v._chartsMap[d.__viewId];p.updateVisual(d,h,v._api,c)}),Gt.trigger("afterupdate",h,this._api))},updateLayout:function(c){$r.update.call(this,c)}};function r(c,v,h,d,p){if(c._disposed){c.id;return}for(var g=c._model,m=c._coordSysMgr.getCoordinateSystems(),y,_=Cc(g,h),S=0;S<m.length;S++){var b=m[S];if(b[v]&&(y=b[v](g,_,d,p))!=null)return y}}Lu=r,rd=function(c,v){var h=c._chartsMap,d=c._scheduler;v.eachSeries(function(p){d.updateStreamModes(p,h[p.__viewId])})},nd=function(c,v){var h=this,d=this.getModel(),p=c.type,g=c.escapeConnect,m=Eu[p],y=(m.update||"update").split(":"),_=y.pop(),S=y[0]!=null&&vr(y[0]);this[Fe]=!0,va(this);var b=[c],w=!1;c.batch&&(w=!0,b=$(c.batch,function(k){return k=le(z({},k),c),k.batch=null,k}));var T=[],C,D=[],x=m.nonRefinedEventType,A=Uc(c),L=jm(c);if(L&&Xm(this._api),I(b,function(k){var O=m.action(k,d,h._api);if(m.refineEvent?D.push(O):C=O,C=C||z({},k),C.type=x,T.push(C),L){var R=Ac(c),N=R.queryOptionMap,F=R.mainTypeSpecified,B=F?N.keys()[0]:"series";Iu(h,_,k,B),Ht(h)}else A?(Iu(h,_,k,"series"),Ht(h)):S&&Iu(h,_,k,S.main,S.sub)}),_!=="none"&&!L&&!A&&!S)try{this[He]?(ui(this),$r.update.call(this,c),this[He]=null):$r[_].call(this,c)}catch(k){throw this[Fe]=!1,k}if(w?C={type:x,escapeConnect:g,batch:T}:C=T[0],this[Fe]=!1,!v){var M=void 0;if(m.refineEvent){var P=m.refineEvent(D,c,d,this._api).eventContent;Wt(j(P)),M=le({type:m.refinedEventType},P),M.fromAction=c.type,M.fromActionPayload=c,M.escapeConnect=!0}var E=this._messageCenter;E.trigger(C.type,C),M&&E.trigger(M.type,M)}},ca=function(c){for(var v=this._pendingActions;v.length;){var h=v.shift();nd.call(this,h,c)}},ha=function(c){!c&&this.trigger("updated")},Cb=function(c,v){c.on("rendered",function(h){v.trigger("rendered",h),c.animation.isFinished()&&!v[He]&&!v._scheduler.unfinished&&!v._pendingActions.length?v.trigger("finished"):c.refresh()})},Ab=function(c,v){c.on("mouseover",function(h){var d=h.target,p=zo(d,Hc);p&&(RD(p,h,v._api),Ht(v))}).on("mouseout",function(h){var d=h.target,p=zo(d,Hc);p&&(OD(p,h,v._api),Ht(v))}).on("click",function(h){var d=h.target,p=zo(d,function(y){return ue(y).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=ue(p);v._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function n(c){c.clearColorPalette(),c.eachSeries(function(v){v.clearColorPalette()})}function i(c){var v=[],h=[],d=!1;if(c.eachComponent(function(y,_){var S=_.get("zlevel")||0,b=_.get("z")||0,w=_.getZLevelKey();d=d||!!w,(y==="series"?h:v).push({zlevel:S,z:b,idx:_.componentIndex,type:y,key:w})}),d){var p=v.concat(h),g,m;yu(p,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),I(p,function(y){var _=c.getComponent(y.type,y.idx),S=y.zlevel,b=y.key;g!=null&&(S=Math.max(g,S)),b?(S===g&&b!==m&&S++,m=b):m&&(S===g&&S++,m=""),g=S,_.setZLevel(S)})}}id=function(c,v,h,d,p){i(v),Db(c,v,h,d,p),I(c._chartsViews,function(g){g.__alive=!1}),Pu(c,v,h,d,p),I(c._chartsViews,function(g){g.__alive||g.remove(v,h)})},Db=function(c,v,h,d,p,g){I(g||c._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,v,h,d),l(y,m),f(y,m)})},Pu=function(c,v,h,d,p,g){var m=c._scheduler;p=z(p||{},{updatedSeries:v.getSeries()}),Gt.trigger("series:beforeupdate",v,h,p);var y=!1;v.eachSeries(function(_){var S=c._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;m.updatePayload(b,d),u(_,S),g&&g.get(_.uid)&&b.dirty(),b.perform(m.getPerformArgs(b))&&(y=!0),S.group.silent=!!_.get("silent"),s(_,S),qm(_)}),m.unfinished=y||m.unfinished,Gt.trigger("series:layoutlabels",v,h,p),Gt.trigger("series:transition",v,h,p),v.eachSeries(function(_){var S=c._chartsMap[_.__viewId];l(_,S),f(_,S)}),o(c,v),Gt.trigger("series:afterupdate",v,h,p)},Ht=function(c){c[Jv]=!0,c.getZr().wakeUp()},va=function(c){c[Mu]=(c[Mu]+1)%1e6},Lb=function(c){c[Jv]&&(c.getZr().storage.traverse(function(v){no(v)||a(v)}),c[Jv]=!1)};function a(c){for(var v=[],h=c.currentStates,d=0;d<h.length;d++){var p=h[d];p==="emphasis"||p==="blur"||p==="select"||v.push(p)}c.selected&&c.states.select&&v.push("select"),c.hoverState===Js&&c.states.emphasis?v.push("emphasis"):c.hoverState===Qs&&c.states.blur&&v.push("blur"),c.useStates(v)}function o(c,v){var h=c._zr;if(h.painter.type==="canvas"){var d=h.storage,p=0;d.traverse(function(m){m.isGroup||p++});var g=p>Z(v.get("hoverLayerThreshold"),w1.hoverLayerThreshold)&&!ie.node&&!ie.worker;(c._usingTHL||g)&&(v.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=c._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(_){var S=_.states.emphasis;S&&S.hoverLayer!==Qc&&(S.hoverLayer=g?py:dy)})}}),c._usingTHL=g)}}function s(c,v){var h=c.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function l(c,v){if(!c.preventAutoZ){var h=Ty(c);v.eachRendered(function(d){return xy(d,h.z,h.zlevel),!0})}}function u(c,v){v.eachRendered(function(h){if(!no(h)){var d=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,v){var h=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),p=h.get("duration"),g=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;v.eachRendered(function(m){if(m.states&&m.states.emphasis){if(no(m))return;if(m instanceof pe&&HD(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=g;var _=m.getTextContent(),S=m.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}m.__dirty&&a(m)}})}Mb=function(c){return new((function(v){V(h,v);function h(){return v!==null&&v.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},h.prototype.enterEmphasis=function(d,p){al(d,p),Ht(c)},h.prototype.leaveEmphasis=function(d,p){ol(d,p),Ht(c)},h.prototype.enterBlur=function(d){ED(d),Ht(c)},h.prototype.leaveBlur=function(d){Um(d),Ht(c)},h.prototype.enterSelect=function(d){Wm(d),Ht(c)},h.prototype.leaveSelect=function(d){Ym(d),Ht(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},h.prototype.getECUpdateCycleVersion=function(){return c[Mu]},h.prototype.usingTHL=function(){return c._usingTHL},h})(Em))(c)},Ib=function(c){function v(h,d){for(var p=0;p<h.length;p++){var g=h[p];g[ed]=d}}I(od,function(h,d){c._messageCenter.on(d,function(p){if(kb[c.group]&&c[ed]!==_b){if(p&&p.escapeConnect)return;var g=c.makeActionFromEvent(p),m=[];I(Vo,function(y){y!==c&&y.group===c.group&&m.push(y)}),v(m,_b),I(m,function(y){y[ed]!==oO&&y.dispatchAction(g)}),v(m,sO)}})})}})(),e})(kr),ad=Pb.prototype;ad.on=Sb("on"),ad.off=Sb("off"),ad.one=function(t,e,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),n.off(t,i)}this.on.call(this,t,i,r)};var lO=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function r5(t){}var Eu={},od={},sd={},ld=[],ud=[],ku=[],Eb={},fd={},Vo={},kb={},uO=+new Date-0,cd="_echarts_instance_";function fO(t,e,r){var n=!(r&&r.ssr);if(n){var i=cO(t);if(i)return i}var a=new Pb(t,e,r);return a.id="ec_"+uO++,Vo[a.id]=a,n&&wm(t,cd,a.id),Ib(a),Gt.trigger("afterinit",a),a}function cO(t){return Vo[vD(t,cd)]}function Rb(t,e){Eb[t]=e}function Ob(t){fe(ud,t)<0&&ud.push(t)}function Nb(t,e){vd(ld,t,e,JR)}function hO(t){hd("afterinit",t)}function vO(t){hd("afterupdate",t)}function hd(t,e){Gt.on(t,e)}function da(t,e,r){var n,i,a,o,s;ee(e)&&(r=e,e=""),j(t)?(n=t.type,i=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),a=t.refineEvent):(n=t,i=e);function l(f){return f.toLowerCase()}i=l(i||n);var u=a?l(n):i;Eu[n]||(Wt(yb.test(n)&&yb.test(i)),a&&Wt(i!==n),Eu[n]={actionType:n,refinedEventType:i,nonRefinedEventType:u,update:o,action:r,refineEvent:a},sd[i]=1,a&&s&&(sd[u]=1),od[u]=n)}function dO(t,e){wh.register(t,e)}function pO(t,e){vd(ku,t,e,pb,"layout")}function fi(t,e){vd(ku,t,e,gb,"visual")}var Bb=[];function vd(t,e,r,n,i,a){if((ee(e)||j(e))&&(r=e,e=n),!(fe(Bb,r)>=0)){Bb.push(r);var o=z1.wrapStageHandler(r,i);o.__prio=e,o.__raw=r,t.push(o)}}function Fb(t,e){fd[t]=e}function gO(t,e,r){var n=AR("registerMap");n&&n(t,e,r)}var mO=AL;fi(Qv,sR),fi(Du,lR),fi(Du,uR),fi(Qv,bR),fi(Du,wR),fi(mb,$R),Ob(R1),Nb(KR,nR),Fb("default",fR),da({type:$n,event:$n,update:$n},We),da({type:tl,event:tl,update:tl},We),da({type:rl,event:Oc,update:rl,action:We,refineEvent:dd,publishNonRefinedEvent:!0}),da({type:Rc,event:Oc,update:Rc,action:We,refineEvent:dd,publishNonRefinedEvent:!0}),da({type:nl,event:Oc,update:nl,action:We,refineEvent:dd,publishNonRefinedEvent:!0});function dd(t,e,r,n){return{eventContent:{selected:BD(r),isFromClick:e.isFromClick||!1}}}Rb("default",{}),Rb("dark",Y1);var zb=[],yO={registerPreprocessor:Ob,registerProcessor:Nb,registerPostInit:hO,registerPostUpdate:vO,registerUpdateLifecycle:hd,registerAction:da,registerCoordinateSystem:dO,registerLayout:pO,registerVisual:fi,registerTransform:mO,registerLoading:Fb,registerMap:gO,registerImpl:CR,PRIORITY:aO,ComponentModel:ye,ComponentView:bt,SeriesModel:ot,ChartView:je,registerComponentModel:function(t){ye.registerClass(t)},registerComponentView:function(t){bt.registerClass(t)},registerSeriesModel:function(t){ot.registerClass(t)},registerChartView:function(t){je.registerClass(t)},registerCustomSeries:function(t,e){},registerSubTypeDefaulter:function(t,e){ye.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Ok(t,e)}};function rr(t){if(W(t)){I(t,function(e){rr(e)});return}fe(zb,t)>=0||(zb.push(t),ee(t)&&(t={install:t}),t.install(yO))}var _O=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r,n){return Ml(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:Y.color.primary}},universalTransition:{divideShape:"clone"}},e})(ot),Vb=4,SO=(function(){function t(){}return t})(),bO=(function(t){V(e,t);function e(r){var n=t.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new SO},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(r){r&&!r.contentRetained&&this.reset()},e.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]<Vb,f=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<i.length;){var v=i[c++],h=i[c++];isNaN(v)||isNaN(h)||f&&!f.contain(v,h)||(s.x=v-a[0]/2,s.y=h-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},e.prototype.afterBrush=function(){var r=this.shape,n=r.points,i=r.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.fillRect(l-i[0]/2,u-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(r,n){for(var i=this.shape,a=i.points,o=i.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var f=u*2,c=a[f]-s/2,v=a[f+1]-l/2;if(r>=c&&n>=v&&r<=c+s&&n<=v+l)return u}return-1},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,f=-1/0,c=-1/0,v=0;v<i.length;){var h=i[v++],d=i[v++];l=Math.min(h,l),f=Math.max(h,f),u=Math.min(d,u),c=Math.max(d,c)}r=this._rect=new ne(l-o/2,u-s/2,f-l+o,c-u+s)}return r},e})(pe),wO=(function(){function t(){this.group=new Ce}return t.prototype.updateData=function(e,r){this._clear(),this._data=e;var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,r)},t.prototype.updateLayout=function(e){var r=this._data;if(r){var n=r.getLayout("points");this.group.eachChild(function(i){if(i.startIndex!=null){var a=(i.endIndex-i.startIndex)*2,o=i.startIndex*4*2;n=new Float32Array(n.buffer,o,a)}i.setShape("points",n),i.reset(),i.stopAnimation()})}},t.prototype.incrementalPrepareUpdate=function(e){this._clear()},t.prototype.incrementalUpdate=function(e,r,n,i){var a=this._newAdded[0],o=r.getLayout("points"),s=a&&a.shape.points;if(s&&s.length<2e4){var l=s.length,u=new Float32Array(l+o.length);u.set(s),u.set(o,l),a.endIndex=e.end,a.setShape({points:u})}else{this._newAdded=[];var f=this._create();f.startIndex=e.start,f.endIndex=e.end,f.incremental=n,f.setShape({points:o}),this._setCommon(f,r,i)}},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new bO({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},t.prototype._setCommon=function(e,r,n){var i=r.hostModel;n=n||{};var a=r.getVisual("symbolSize");e.setShape("size",a instanceof Array?a:[a,a]),e.softClipShape=n.clipShape||null,e.symbolProxy=Ar(r.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<Vb;e.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=ue(e);u.seriesIndex=i.seriesIndex,e.on("mousemove",function(f){u.dataIndex=null;var c=e.hoverDataIdx;c>=0&&(u.dataIndex=c+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t})(),TO=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,pd(r)),this._finished=!0},e.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},e.prototype.incrementalRender=function(r,n,i){this._symbolDraw.incrementalUpdate(r,n.getData(),Dm(n),pd(n)),this._finished=r.end===n.getData().count()},e.prototype.updateTransform=function(r,n,i){var a=r.getData();if(this.group.dirty(),this._finished){var o=ov("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(pd(r))}else return{update:!0}},e.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},e.prototype._updateSymbolDraw=function(r,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new wO:new s_,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e})(je);function pd(t){return{clipShape:pP(t)}}var Gb=(function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t})(),gd=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Pt).models[0]},e.type="cartesian2dAxis",e})(ye);Ut(gd,Gb);var Hb={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:"auto",onZeroAxisIndex:null,lineStyle:{color:Y.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:Y.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Y.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[Y.color.backgroundTint,Y.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Y.color.neutral00,borderColor:Y.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},xO=be({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},Hb),md=be({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Y.color.axisMinorSplitLine,width:1}}},Hb),CO=be({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},md),AO=le({logBase:10},md);const Ub={category:xO,value:md,time:CO,log:AO};function Wb(t,e,r,n){I(k_,function(i,a){var o=be(be({},Ub[a],!0),n,!0),s=(function(l){V(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var v=_o(this),h=v?So(f):{},d=c.getTheme();be(f,d.get(a+"Axis")),be(f,this.getDefaultOption()),f.type=Yb(f),v&&fn(f,h,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Qh.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var c=au();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=e+"Axis."+a,u.defaultOption=o,u})(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",Yb)}function Yb(t){return t.type||(t.data?"category":"value")}var DO=(function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return $(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Ue(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t})(),Ru=["x","y"];function $b(t){return(t.type==="interval"||t.type==="time")&&!kl(t)}var MO=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Wr,r.dimensions=Ru,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!$b(r)||!$b(n))){var i=Wl(r,null),a=Wl(n,null),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,v=o[0]-i[0]*f,h=o[1]-a[0]*c,d=this._transform=[f,0,0,c,v,h];this._invTransform=Pa([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new ne(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return wt(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},e.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(r,n,i){if(i=i||[],this._invTransform)return wt(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,l=Math.max(i[0],i[1])-o+r;return new ne(a,o,s,l)},e})(DO);function Xb(t,e){var r=t.scale,n=t.model,i=MS(r,n,n.ecModel,t),a=ea(r),o=ea(e)?e.intervalStub:e,s=a?r.intervalStub:r,l=r.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=u.length-1,v,h,d;if(c===1)v=h=0,d=1;else if(c===2){var p=Be(u[0].value-u[1].value),g=Be(u[1].value-u[2].value);v=h=0,p===g?d=2:(d=1,p<g?v=p/g:h=g/p)}else{var m=o.getConfig().interval;v=(1-(u[0].value-f[0].value)/m)%1,h=(1-(f[c].value-u[c].value)/m)%1,d=c-(v?1:0)-(h?1:0)}var y=i.zoomFixMM,_=y[0]||y[1],S=[i.fixMM[0]||_,i.fixMM[1]||_],b=r.getExtent(),w=s.getExtent(),T=T_(w,S),C,D,x,A,L,M;function P(G){for(var X=50,H=0;H<X&&!G();H++)x=a?x*ge(l,2):wP(x),A=ai(x)}function E(){C=ve(M-x*v,A)}function k(){D=ve(L+x*h,A)}function O(){M=v?ve(C+x*v,A):C}function R(){L=h?ve(D-x*h,A):D}if(S[0]&&S[1]){C=T[0],D=T[1],x=(D-C)/(d+v+h);var N=t.getExtent(),F=Be(N[1]-N[0]);A=$A([D,C],F,.5/d),O(),R(),Lt(A)&&(x=ve(x,A))}else{var B=T[1]-T[0];x=a?ge(vm(B),1):wc(B/d,dm),A=ai(x),S[0]?(C=T[0],P(function(){if(O(),L=ve(M+x*d,A),k(),D>=T[1])return!0})):S[1]?(D=T[1],P(function(){if(R(),M=ve(L-x*d,A),E(),C<=T[0])return!0})):P(function(){M=ve(Xa(T[0]/x)*x,A),L=ve(Hn(T[1]/x)*x,A);var G=Or((L-M)/x);if(G<=d){var X=d-G,H=void 0,K=i.incl0||a;if(K&&T[0]===0)H=[0,X];else if(K&&T[1]===0)H=[X,0];else{var ae=Hn(X/2);H=X%2===0?[ae,ae]:C+D<T[0]+T[1]?[ae,ae+1]:[ae+1,ae]}if(M=ve(M-x*H[0],A),L=ve(L+x*H[1],A),E(),k(),C<=T[0]&&D>=T[1])return!0}})}N_(r,S,w,[C,D],b,{interval:x,intervalCount:d,intervalPrecision:A,niceExtent:[M,L]})}function qb(t,e){var r=ea(t),n=r?t.intervalStub:t,i=e.fixMinMax||[],a=r?t.getExtent():null,o=n.getExtent(),s=T_(o,i,e.rawExtentResult);n.setExtent(s[0],s[1]),s=n.getExtent();var l=r?LO(n,e):IO(n,e),u=l.intervalPrecision,f=l.interval,c=e.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=ai(c)),i[0]||(s[0]=ve(Hn(s[0]/f)*f,u)),i[1]||(s[1]=ve(Xa(s[1]/f)*f,u)),c!=null&&(l.niceExtent=s.slice()),N_(t,i,o,s,a,l)}function IO(t,e){var r=ql(e.splitNumber,5),n=Yl(t),i=e.minInterval,a=e.maxInterval,o=wc(n/r,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=ai(o),l=t.getExtent(),u=[ve(Xa(l[0]/o)*o,s),ve(Hn(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function LO(t,e){var r=ql(e.splitNumber,10),n=t.getExtent(),i=Yl(t),a=ge(vm(i),1),o=r/i*a;o<=.5&&(a*=10);var s=ai(a),l=[ve(Xa(n[0]/a)*a,s),ve(Hn(n[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:l}}function Zb(t){var e=t.scale,r=t.model,n=r.axis,i=r.ecModel;PO(e,r,n,i)}function PO(t,e,r,n,i){var a=MS(t,e,n,r),o=$l(t)||ev(t);EO(t,{splitNumber:e.get("splitNumber"),fixMinMax:a.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:a}),r&&n&&hE(r,t,a,n)}function EO(t,e){kO[t.type](t,e)}var kO={interval:qb,log:qb,time:EP,ordinal:We},Kb=[[3,1],[0,2]],RO=(function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Ru,this._initCartesian(e,r,n),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var n=this._axesMap;I(this._axesList,function(o){AS(o,bS);var s=o.scale;Qt(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function i(o){for(var s=ce(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):Zb(f)}I(l,function(c){NO(c,c.__alignTo)?Zb(c):Xb(c,c.__alignTo.scale)})}i(n.x),i(n.y);var a={};I(n.x,function(o){jb(n,"y",o,a)}),I(n.y,function(o){jb(n,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,n){var i=Ji(e,r),a=this._rect=Vr(e.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(ew(o,a),!n){var u=FO(a,s,o,l,r),f=void 0;if(l)f=rw(a.clone(),"axisLabel",null,a,o,u,i);else{var c=zO(e,a,i),v=c.outerBoundsRect,h=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;v&&(f=rw(v,h,d,a,o,u,i))}nw(a,o,Jt.determine,null,f,i),I(this._coordsList,function(p){p.calcAffineTransform()})}},t.prototype.getAxis=function(e,r){var n=this._axesMap[e];if(n!=null)return n[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var n="x"+e+"y"+r;return this._coordsMap[n]}j(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===e||a[i].getAxis("y").index===r)return a[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,n=e.xAxisModel||r&&r.getReferringComponents("xAxis",Pt).models[0],i=e.yAxisModel||r&&r.getReferringComponents("yAxis",Pt).models[0],a=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,fe(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,I(s.x,function(f,c){I(s.y,function(v,h){var d="x"+c+"y"+h,p=new MO(d);p.master=i,p.model=e,i._coordsMap[d]=p,i._coordsList.push(p),p.addAxis(f),p.addAxis(v)})}),Jb(s.x),Jb(s.y);function u(f){return function(c,v){if(OO(c,e)){var h=c.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var d=RP(c),p=new P2(f,OP(c,d),[0,0],d,h);p.onBand=B_(p.scale,c),p.inverse=c.get("inverse"),c.axis=p,p.model=c,p.grid=a,p.index=v,a._axesList.push(p),s[f][v]=p,l[f]++}}}},t.prototype.getTooltipAxes=function(e){var r=[],n=[];return I(this.getCartesians(),function(i){var a=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(a);fe(r,a)<0&&r.push(a),fe(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},t.create=function(e,r){var n=[];return e.eachComponent("grid",function(i,a){var o=new t(i,e,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o),I(o._axesList,function(s){sE(s,t.dimIdxMap)})}),e.eachSeries(function(i){var a,o;xI({targetModel:i,coordSysType:Wr,coordSysProvider:s});function s(){var l=tE(i),u=l.xAxisModel,f=l.yAxisModel;a=u.axis,o=f.axis;var c=u.getCoordSysModel(),v=c.coordinateSystem;return v.getCartesian(u.componentIndex,f.componentIndex)}a&&o&&(fv(a,i,Wr),fv(o,i,Wr))},this),n},t.dimensions=Ru,t.dimIdxMap=yh(Ru),t})();function OO(t,e){return t.getCoordSysModel()===e}function jb(t,e,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=t[e],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)Qb(s,i[l])&&(a=i[l]);else for(var u in i)if(tt(i,u)&&Qb(s,i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function Qb(t,e){if(!e)return!1;var r=e.scale,n=NP(r,0),i=e&&e.type!=="category"&&e.type!=="time"&&n!==nv;return i&&t==="auto"&&VP(e)&&(i=!1),i}function Jb(t){for(var e=ce(t),r,n=[],i=e.length-1;i>=0;i--){var a=t[+e[i]];w_(a.scale)&&O_(a.model,a.type)==null&&(a.model.get("alignTicks")&&a.model.get("interval")==null?n.push(a):r=a)}r||(r=n.pop()),r&&I(n,function(o){o.__alignTo=r})}function NO(t,e){return kl(t.scale)||kl(e.scale)||e.scale.getTicks().length<2}function BO(t,e){var r=t.getExtent(),n=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(i){return i+e}:function(i){return n-i+e},t.toLocalCoord=t.dim==="x"?function(i){return i-e}:function(i){return n-i+e}}function ew(t,e){I(t.x,function(r){return tw(r,e.x,e.width)}),I(t.y,function(r){return tw(r,e.y,e.height)})}function tw(t,e,r){var n=[0,r],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),BO(t,e)}function rw(t,e,r,n,i,a,o){nw(n,i,Jt.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(n,0,NaN),f(n,1,NaN);var l=Up(s,function(v){return v>0})==null;return gl(n,s,!0,!0,r),ew(i,n),l;function u(v){I(i[sn[v]],function(h){if(xo(h.model)){var d=a.ensureRecord(h.model),p=d.labelInfoList;if(p)for(var g=0;g<p.length;g++){var m=p[g],y=h.scale.normalize(Co(h.scale,oi(m.label).labelInfo.tick));y=v===1?1-y:y,f(m.rect,v,y),f(m.rect,1-v,NaN)}var _=d.nameLayout;if(_){var y=ta(d.nameLocation)?.5:NaN;f(_.rect,v,y),f(_.rect,1-v,NaN)}}})}function f(v,h,d){var p=t[sn[h]]-v[sn[h]],g=v[Wi[h]]+v[sn[h]]-(t[Wi[h]]+t[sn[h]]);p=c(p,1-d),g=c(g,d);var m=Kb[h][0],y=Kb[h][1];s[m]=ge(s[m],p),s[y]=ge(s[y],g)}function c(v,h){return v>0&&!Aa(h)&&h>1e-4&&(v/=h),v}}function FO(t,e,r,n,i){var a=new vS(VO);return I(r,function(o){return I(o,function(s){if(xo(s.model)){var l=!n;s.axisBuilder=rE(t,e,s.model,i,a,l)}})}),a}function nw(t,e,r,n,i,a){var o=r===Jt.determine;I(e,function(u){return I(u,function(f){xo(f.model)&&(nE(f.axisBuilder,t,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[sn[1-u]]=t[Wi[u]]<=a.refContainer[Wi[u]]*.5?0:1-u===1?2:1}I(e,function(u,f){return I(u,function(c){xo(c.model)&&((n==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function zO(t,e,r){var n,i=t.get("outerBoundsMode",!0);i==="same"?n=e.clone():(i==null||i==="auto")&&(n=Vr(t.get("outerBounds",!0)||IS,r.refContainer));var a=t.get("outerBoundsContain",!0),o;a==null||a==="auto"||fe(["all","axisLabel"],a)<0?o="all":o=a;var s=[_c(Z(t.get("outerBoundsClampWidth",!0),uu[0]),e.width),_c(Z(t.get("outerBoundsClampHeight",!0),uu[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var VO=function(t,e,r,n,i,a){var o=r.axis.dim==="x"?"y":"x";dS(t,e,r,n,i,a),ta(t.nameLocation)||I(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&gS(s.labelInfoList,s.dirVec,n,i)})};function GO(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return HO(r,t,e),r.seriesInvolved&&WO(r,t),r}function HO(t,e,r){var n=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];I(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Go(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(I(s.getAxes(),Oe(p,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var v=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(v||h)&&I(d.baseAxes,Oe(p,h?"cross":!0,v)),h&&I(d.otherAxes,Oe(p,"cross",!1))}function p(g,m,y){var _=y.model.getModel("axisPointer",i),S=_.get("show");if(!(!S||S==="auto"&&!g&&!Sd(_))){m==null&&(m=_.get("triggerTooltip")),_=g?UO(y,c,i,e,g,m):_;var b=_.get("snap"),w=_.get("triggerEmphasis"),T=Go(y.model),C=m||b||y.type==="category",D=t.axesInfo[T]={key:T,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:w,involveSeries:C,snap:b,useHandle:Sd(_),seriesModels:[],linkGroup:null};u[T]=D,t.seriesInvolved=t.seriesInvolved||C;var x=YO(a,y);if(x!=null){var A=o[x]||(o[x]={axesInfo:{}});A.axesInfo[T]=D,A.mapper=a[x].mapper,D.linkGroup=A}}}})}function UO(t,e,r,n,i,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};I(s,function(v){l[v]=oe(o.get(v))}),l.snap=t.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&le(u,c.textStyle)}}return t.model.getModel("axisPointer",new xe(l,r,n))}function WO(t,e){e.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||!n.model||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||I(t.coordSysAxesInfo[Go(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function YO(t,e){for(var r=e.model,n=e.dim,i=0;i<t.length;i++){var a=t[i]||{};if(yd(a[n+"AxisId"],r.id)||yd(a[n+"AxisIndex"],r.componentIndex)||yd(a[n+"AxisName"],r.name))return i}}function yd(t,e){return t==="all"||W(t)&&fe(t,e)>=0||t===e}function $O(t){var e=_d(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=Sd(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function _d(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Go(t)]}function XO(t){var e=_d(t);return e&&e.axisPointerModel}function Sd(t){return!!t.get(["handle","show"])}function Go(t){return t.type+"||"+t.id}var iw={},aw=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i,a){this.axisPointerClass&&$O(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},e.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},e.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=XO(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){iw[r]=n},e.getAxisPointerClass=function(r){return r&&iw[r]},e.type="axis",e})(bt),bd=Se();function qO(t,e,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=bd(t).splitAreaColors,v=te(),h=0;if(c)for(var d=0;d<u.length;d++){var p=c.get(u[d].tickValue);if(p!=null){h=(p+(f-1)*d)%f;break}}var g=i.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=W(s)?s:[s];for(var d=1;d<u.length;d++){var y=i.toGlobalCoord(u[d].coord),_=void 0,S=void 0,b=void 0,w=void 0;i.isHorizontal()?(_=g,S=l.y,b=y-_,w=l.height,g=_+b):(_=l.x,S=g,b=l.width,w=y-S,g=S+w);var T=u[d-1].tickValue;T!=null&&v.set(T,h),e.add(new De({anid:T!=null?"area_"+T:null,shape:{x:_,y:S,width:b,height:w},style:le({fill:s[h]},m),autoBatch:!0,silent:!0})),h=(h+1)%f}bd(t).splitAreaColors=v}}}function ZO(t){bd(t).splitAreaColors=null}var KO=["splitArea","splitLine","minorSplitLine","breakArea"],ow=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ce,this.group.add(this._axisGroup),!!xo(r)){this._axisGroup.add(r.axis.axisBuilder.group),I(KO,function(l){r.get([l,"show"])&&jO[l](this,this._axisGroup,r,r.getCoordSysModel(),i)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||Sy(o,this._axisGroup,r),t.prototype.render.call(this,r,n,i,a)}},e.prototype.remove=function(){ZO(this)},e.type="cartesianAxis",e})(aw),jO={splitLine:function(t,e,r,n,i){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=W(l)?l:[l];for(var c=n.coordinateSystem.getRect(),v=a.isHorizontal(),h=0,d=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],m=s.getLineStyle(),y=0;y<d.length;y++){var _=a.toGlobalCoord(d[y].coord);if(!(y===0&&!u||y===d.length-1&&!f)){var S=d[y].tickValue;v?(p[0]=_,p[1]=c.y,g[0]=_,g[1]=c.y+c.height):(p[0]=c.x,p[1]=_,g[0]=c.x+c.width,g[1]=_);var b=h++%l.length,w=new Cr({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},style:le({stroke:l[b]},m),silent:!0});io(w.shape,m.lineWidth),e.add(w)}}}},minorSplitLine:function(t,e,r,n,i){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=n.coordinateSystem.getRect(),u=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var c=[],v=[],h=s.getLineStyle(),d=0;d<f.length;d++)for(var p=0;p<f[d].length;p++){var g=a.toGlobalCoord(f[d][p].coord);u?(c[0]=g,c[1]=l.y,v[0]=g,v[1]=l.y+l.height):(c[0]=l.x,c[1]=g,v[0]=l.x+l.width,v[1]=g);var m=new Cr({anid:"minor_line_"+f[d][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:v[0],y2:v[1]},style:h,silent:!0});io(m.shape,h.lineWidth),e.add(m)}},splitArea:function(t,e,r,n,i){qO(t,e,r,n)},breakArea:function(t,e,r,n,i){var a=au(),o=r.axis.scale;a&&o.type!=="ordinal"&&a.rectCoordBuildBreakAxis(e,t,r,n.coordinateSystem.getRect(),i)}},sw=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e})(ow),QO=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=sw.type,r}return e.type="yAxis",e})(ow),JO=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new De({shape:r.coordinateSystem.getRect(),style:le({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(bt),lw={offset:0};function uw(t){t.registerComponentView(JO),t.registerComponentModel(_E),t.registerCoordinateSystem("cartesian2d",RO),Wb(t,"x",gd,lw),Wb(t,"y",gd,lw),t.registerComponentView(sw),t.registerComponentView(QO),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function eN(t){rr(uw),t.registerSeriesModel(_O),t.registerChartView(TO),t.registerLayout(ov("scatter"))}function tN(t){var e=t.polar;if(e){W(e)||(e=[e]);var r=[];I(e,function(n,i){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),t.radar=t.radar||[],W(t.radar)||(t.radar=[t.radar]),t.radar.push(n)):r.push(n)}),t.polar=r}I(t.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var Ho="radar",rN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new xv(de(this.getData,this),de(this.getRawData,this))},e.prototype.getInitialData=function(r,n){return pu(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(r),u=l===""?this.name:l,f=j0(this,r);return ii("section",{header:u,sortBlocks:!0,blocks:$(s,function(c){var v=a.get(a.mapDimension(c.dim),r);return ii("nameValue",{markerType:"subItem",markerColor:f,name:c.name,value:v,sortParam:v})})})},e.prototype.getTooltipPosition=function(r){if(r!=null){for(var n=this.getData(),i=this.coordinateSystem,a=n.getValues($(i.dimensions,function(u){return n.mapDimension(u)}),r),o=0,s=a.length;o<s;o++)if(!isNaN(a[o])){var l=i.getIndicatorAxes();return i.coordToPoint(l[o].dataToCoord(a[o]),o)}}},e.type="series."+Ho,e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e})(ot),nN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Ho,r}return e.prototype.render=function(r,n,i){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=this._data;function u(v,h){var d=v.getItemVisual(h,"symbol")||"circle";if(d!=="none"){var p=t_(v.getItemVisual(h,"symbolSize")),g=Ar(d,-1,-1,2,2),m=v.getItemVisual(h,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:m*Math.PI/180||0}),g}}function f(v,h,d,p,g,m){d.removeAll();for(var y=0;y<h.length-1;y++){var _=u(p,g);_&&(_.__dimIdx=y,v[y]?(_.setPosition(v[y]),Ay[m?"initProps":"updateProps"](_,{x:h[y][0],y:h[y][1]},r,g)):_.setPosition(h[y]),d.add(_))}}function c(v){return $(v,function(h){return[a.cx,a.cy]})}s.diff(l).add(function(v){var h=s.getItemLayout(v);if(h){var d=new Gi,p=new on,g={shape:{points:h}};d.shape.points=c(h),p.shape.points=c(h),Ge(d,g,r,v),Ge(p,g,r,v);var m=new Ce,y=new Ce;m.add(p),m.add(d),m.add(y),f(p.shape.points,h,y,s,v,!0),s.setItemGraphicEl(v,m)}}).update(function(v,h){var d=l.getItemGraphicEl(h),p=d.childAt(0),g=d.childAt(1),m=d.childAt(2),y={shape:{points:s.getItemLayout(v)}};y.shape.points&&(f(p.shape.points,y.shape.points,m,s,v,!1),Ui(g),Ui(p),Ie(p,y,r),Ie(g,y,r),s.setItemGraphicEl(v,d))}).remove(function(v){o.remove(l.getItemGraphicEl(v))}).execute(),s.eachItemGraphicEl(function(v,h){var d=s.getItemModel(h),p=v.childAt(0),g=v.childAt(1),m=v.childAt(2),y=s.getItemVisual(h,"style"),_=y.fill;o.add(v),p.useStyle(le(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),zr(p,d,"lineStyle"),zr(g,d,"areaStyle");var S=d.getModel("areaStyle"),b=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=b,I(["emphasis","select","blur"],function(T){var C=d.getModel([T,"areaStyle"]),D=C.isEmpty()&&C.parentModel.isEmpty();g.ensureState(T).ignore=D&&b;var x=d.getModel([T,"lineStyle"]).getLineStyle();p.ensureState(T).style=x;var A=C.getAreaStyle();g.ensureState(T).style=A;var L=d.getModel([T,"itemStyle"]).getItemStyle();m.eachChild(function(M){M.ensureState(T).style=oe(L)})}),g.useStyle(le(d.getModel("areaStyle").getAreaStyle(),{fill:_,opacity:.7,decal:y.decal}));var w=d.getModel("emphasis");m.eachChild(function(T){if(T instanceof Mt){var C=T.style;T.useStyle(z({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},y))}else T.useStyle(y),T.setColor(_),T.style.strokeNoScale=!0;var D=s.getStore().get(s.getDimensionIndex(T.__dimIdx),h);(D==null||isNaN(D))&&(D=""),Kn(T,jn(d),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:T.__dimIdx,defaultText:D,inheritColor:_,defaultOpacity:y.opacity})}),Fr(v,w.get("focus"),w.get("blurScope"),w.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type=Ho,e})(je),Uo=Ub.value,Wo="radar",fw=Wo,iN=Wo,cw=5;function Ou(t,e){return le({show:e},t)}var aN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(){var r=this.get("boundaryGap"),n=this.get("splitNumber"),i=this.get("clockwise"),a=this.get("scale"),o=this.get("axisLine"),s=this.get("axisTick"),l=this.get("axisLabel"),u=this.get("axisName"),f=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),v=this.get("axisNameGap"),h=this.get("triggerEvent"),d=$(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var g=u;p.color!=null&&(g=le({color:p.color},u));var m=be(oe(p),{boundaryGap:r,splitNumber:n,clockwise:i,scale:a,axisLine:o,axisTick:s,axisLabel:l,name:p.text,showName:f,nameLocation:"end",nameGap:v,nameTextStyle:g,triggerEvent:h},!1);if(q(c)){var y=m.name;m.name=c.replace("{value}",y??"")}else ee(c)&&(m.name=c(m.name,m));var _=new xe(m,null,this.ecModel);return Ut(_,Gb.prototype),_.mainType="radar",_.componentIndex=this.componentIndex,_.uid=vo("ec_radar"),_},this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type=fw,e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:Y.color.axisLabel},boundaryGap:[0,0],splitNumber:cw,axisNameGap:15,scale:!1,shape:"polygon",axisLine:be({lineStyle:{color:Y.color.neutral20}},Uo.axisLine),axisLabel:Ou(Uo.axisLabel,!1),axisTick:Ou(Uo.axisTick,!1),splitLine:Ou(Uo.splitLine,!0),splitArea:Ou(Uo.splitArea,!0),indicator:[]},e})(ye),oN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=this.group;a.removeAll(),this._buildAxes(r,i),this._buildSplitLineAndArea(r)},e.prototype._buildAxes=function(r,n){var i=r.coordinateSystem,a=i.getIndicatorAxes(),o=$(a,function(s){var l=s.model.get("showName")?s.name:"",u=new Hr(s.model,n,{axisName:l,position:[i.cx,i.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});I(o,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),c=s.get("show"),v=l.get("color"),h=u.get("color"),d=W(v)?v:[v],p=W(h)?h:[h],g=[],m=[];function y(E,k,O){var R=O%k.length;return E[R]=E[R]||[],R}if(a==="circle")for(var _=i[0].getTicksCoords(),S=n.cx,b=n.cy,w=0;w<_.length;w++){if(f){var T=y(g,d,w);g[T].push(new eo({shape:{cx:S,cy:b,r:_[w].coord}}))}if(c&&w<_.length-1){var T=y(m,p,w);m[T].push(new fl({shape:{cx:S,cy:b,r0:_[w].coord,r:_[w+1].coord}}))}}else for(var C,D=$(i,function(E,k){var O=E.getTicksCoords();return C=C==null?O.length-1:Math.min(O.length-1,C),$(O,function(R){return n.coordToPoint(R.coord,k)})}),x=[],w=0;w<=C;w++){for(var A=[],L=0;L<i.length;L++)A.push(D[L][w]);if(A[0]&&A.push(A[0].slice()),f){var T=y(g,d,w);g[T].push(new on({shape:{points:A}}))}if(c&&x){var T=y(m,p,w-1);m[T].push(new Gi({shape:{points:A.concat(x)}}))}x=A.slice().reverse()}var M=l.getLineStyle(),P=u.getAreaStyle();I(m,function(E,k){this.group.add(eh(E,{style:le({stroke:"none",fill:p[k%p.length]},P),silent:!0}))},this),I(g,function(E,k){this.group.add(eh(E,{style:le({fill:"none",stroke:d[k%d.length]},M),silent:!0}))},this)},e.type="radar",e})(bt),sN=(function(t){V(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.type="value",a.angle=0,a.name="",a}return e})(iS),lN=(function(){function t(e,r,n){this.type=Wo,this.dimensions=[],this._model=e,this._indicatorAxes=$(e.getIndicatorModels(),function(i,a){var o="indicator_"+a,s=new sN(o,new dn);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(o),s},this),this.resize(e,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(e,r){var n=this._indicatorAxes[r];return this.coordToPoint(n.dataToCoord(e),r)},t.prototype.coordToPoint=function(e,r){var n=this._indicatorAxes[r],i=n.angle,a=this.cx+e*Math.cos(i),o=this.cy-e*Math.sin(i);return[a,o]},t.prototype.pointToData=function(e){var r=e[0]-this.cx,n=e[1]-this.cy,i=Math.sqrt(r*r+n*n);r/=i,n/=i;for(var a=Math.atan2(-n,r),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],c=Math.abs(a-f.angle);c<o&&(s=f,l=u,o=c)}return[l,+(s&&s.coordToData(i))]},t.prototype.resize=function(e,r){var n=Ji(e,r).refContainer,i=e.get("center"),a=e.get("clockwise")||!1,o=Math.min(n.width,n.height)/2;this.cx=Q(i[0],n.width)+n.x,this.cy=Q(i[1],n.height)+n.y,this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(q(s)||me(s))&&(s=[0,s]),this.r0=Q(s[0],o),this.r=Q(s[1],o);var l=a?-1:1;I(this._indicatorAxes,function(u,f){u.setExtent(this.r0,this.r);var c=this.startAngle+l*f*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),u.angle=c},this)},t.prototype.update=function(e,r){var n=this._indicatorAxes,i=this._model,a=ql(i.get("splitNumber"),cw),o=new dn;o.setExtent(0,a),o.setConfig({interval:1}),I(n,function(s){AS(s,bS),Xb(s,o)})},t.prototype.convertToPixel=function(e,r,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(e,r,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},t.create=function(e,r){var n=[];return e.eachComponent(fw,function(i){var a=new t(i,e,r);n.push(a),i.coordinateSystem=a}),e.eachSeriesByType(iN,function(i){if(i.get("coordinateSystem")===Wo){var a=i.coordinateSystem=n[i.get("radarIndex")||0];a&&I(a.getIndicatorAxes(),function(o){fv(o,i,Wo)})}}),n},t.dimensions=[],t})();function uN(t){t.registerCoordinateSystem("radar",lN),t.registerComponentModel(aN),t.registerComponentView(oN),t.registerVisual({seriesType:"radar",reset:function(e){var r=e.getData();r.each(function(n){r.setItemVisual(n,"legendIcon","roundRect")}),r.setVisual("legendIcon","roundRect")}})}var fN=Ic(Ho,cN);function cN(t){t.eachSeriesByType(Ho,function(e){var r=e.getData(),n=[],i=e.coordinateSystem;if(i){var a=i.getIndicatorAxes();I(a,function(o,s){r.each(r.mapDimension(a[s].dim),function(l,u){n[u]=n[u]||[];var f=i.dataToPoint(l,s);n[u][s]=hw(f)?f:vw(i)})}),r.each(function(o){var s=Up(n[o],function(l){return hw(l)})||vw(i);n[o].push(s.slice()),r.setItemLayout(o,n[o])})}})}function hw(t){return!isNaN(t[0])&&!isNaN(t[1])}function vw(t){return[t.cx,t.cy]}function hN(t){rr(uN),t.registerChartView(nN),t.registerSeriesModel(rN),t.registerLayout(fN),t.registerProcessor(Tv("radar")),t.registerPreprocessor(tN)}var vN=(function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t})(),dN=(function(t){V(e,t);function e(r){var n=t.call(this,r)||this;return n.type="pointer",n}return e.prototype.getDefaultShape=function(){return new vN},e.prototype.buildPath=function(r,n){var i=Math.cos,a=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-i(l)*s*(s>=o/3?1:2),f=n.y-a(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,r.moveTo(u,f),r.lineTo(n.x+i(l)*s,n.y+a(l)*s),r.lineTo(n.x+i(n.angle)*o,n.y+a(n.angle)*o),r.lineTo(n.x-i(l)*s,n.y-a(l)*s),r.lineTo(u,f)},e})(pe);function pN(t,e){var r=t.get("center"),n=e.getWidth(),i=e.getHeight(),a=Math.min(n,i),o=Q(r[0],e.getWidth()),s=Q(r[1],e.getHeight()),l=Q(t.get("radius"),a/2);return{cx:o,cy:s,r:l}}function Nu(t,e){var r=t==null?"":t+"";return e&&(q(e)?r=e.replace("{value}",r):ee(e)&&(r=e(t))),r}var gN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){this.group.removeAll();var a=r.get(["axisLine","lineStyle","color"]),o=pN(r,i);this._renderMain(r,n,i,a,o),this._data=r.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(r,n,i,a,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,f=-r.get("endAngle")/180*Math.PI,c=r.getModel("axisLine"),v=c.get("roundCap"),h=v?cu:xr,d=c.get("show"),p=c.getModel("lineStyle"),g=p.get("width"),m=[u,f];pc(m,!l),u=m[0],f=m[1];for(var y=f-u,_=u,S=[],b=0;d&&b<a.length;b++){var w=Math.min(Math.max(a[b][0],0),1);f=u+y*w;var T=new h({shape:{startAngle:_,endAngle:f,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});T.setStyle({fill:a[b][1]}),T.setStyle(p.getLineStyle(["color","width"])),S.push(T),_=f}S.reverse(),I(S,function(D){return s.add(D)});var C=function(D){if(D<=0)return a[0][1];var x;for(x=0;x<a.length;x++)if(a[x][0]>=D&&(x===0?0:a[x-1][0])<D)return a[x][1];return a[x-1][1]};this._renderTicks(r,n,i,C,o,u,f,l,g),this._renderTitleAndDetail(r,n,i,C,o),this._renderAnchor(r,o),this._renderPointer(r,n,i,C,o,u,f,l,g)},e.prototype._renderTicks=function(r,n,i,a,o,s,l,u,f){for(var c=this.group,v=o.cx,h=o.cy,d=o.r,p=+r.get("min"),g=+r.get("max"),m=r.getModel("splitLine"),y=r.getModel("axisTick"),_=r.getModel("axisLabel"),S=r.get("splitNumber"),b=y.get("splitNumber"),w=Q(m.get("length"),d),T=Q(y.get("length"),d),C=s,D=(l-s)/S,x=D/b,A=m.getModel("lineStyle").getLineStyle(),L=y.getModel("lineStyle").getLineStyle(),M=m.get("distance"),P,E,k=0;k<=S;k++){if(P=Math.cos(C),E=Math.sin(C),m.get("show")){var O=M?M+f:f,R=new Cr({shape:{x1:P*(d-O)+v,y1:E*(d-O)+h,x2:P*(d-w-O)+v,y2:E*(d-w-O)+h},style:A,silent:!0});A.stroke==="auto"&&R.setStyle({stroke:a(k/S)}),c.add(R)}if(_.get("show")){var O=_.get("distance")+M,N=Nu(ve(k*(g-p)/S+p,zA),_.get("formatter")),F=a(k/S),B=P*(d-w-O)+v,G=E*(d-w-O)+h,X=_.get("rotate"),H=0;X==="radial"?(H=-C+2*Math.PI,H>Math.PI/2&&(H+=Math.PI)):X==="tangential"?H=-C-Math.PI/2:me(X)&&(H=X*Math.PI/180),H===0?c.add(new Me({style:Ot(_,{text:N,x:B,y:G,verticalAlign:E<-.8?"top":E>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:F}),silent:!0})):c.add(new Me({style:Ot(_,{text:N,x:B,y:G,verticalAlign:"middle",align:"center"},{inheritColor:F}),silent:!0,originX:B,originY:G,rotation:H}))}if(y.get("show")&&k!==S){var O=y.get("distance");O=O?O+f:f;for(var K=0;K<=b;K++){P=Math.cos(C),E=Math.sin(C);var ae=new Cr({shape:{x1:P*(d-O)+v,y1:E*(d-O)+h,x2:P*(d-T-O)+v,y2:E*(d-T-O)+h},silent:!0,style:L});L.stroke==="auto"&&ae.setStyle({stroke:a((k+K/b)/S)}),c.add(ae),C+=x}C-=x}else C+=D}},e.prototype._renderPointer=function(r,n,i,a,o,s,l,u,f){var c=this.group,v=this._data,h=this._progressEls,d=[],p=r.get(["pointer","show"]),g=r.getModel("progress"),m=g.get("show"),y=r.getData(),_=y.mapDimension("value"),S=+r.get("min"),b=+r.get("max"),w=[S,b],T=[s,l];function C(x,A){var L=y.getItemModel(x),M=L.getModel("pointer"),P=Q(M.get("width"),o.r),E=Q(M.get("length"),o.r),k=r.get(["pointer","icon"]),O=M.get("offsetCenter"),R=Q(O[0],o.r),N=Q(O[1],o.r),F=M.get("keepAspect"),B;return k?B=Ar(k,R-P/2,N-E,P,E,null,F):B=new dN({shape:{angle:-Math.PI/2,width:P,r:E,x:R,y:N}}),B.rotation=-(A+Math.PI/2),B.x=o.cx,B.y=o.cy,B}function D(x,A){var L=g.get("roundCap"),M=L?cu:xr,P=g.get("overlap"),E=P?g.get("width"):f/y.count(),k=P?o.r-E:o.r-(x+1)*E,O=P?o.r:o.r-x*E,R=new M({shape:{startAngle:s,endAngle:A,cx:o.cx,cy:o.cy,clockwise:u,r0:k,r:O}});return P&&(R.z2=It(y.get(_,x),[S,b],[100,0],!0)),R}(m||p)&&(y.diff(v).add(function(x){var A=y.get(_,x);if(p){var L=C(x,s);Ge(L,{rotation:-((isNaN(+A)?T[0]:It(A,w,T,!0))+Math.PI/2)},r),c.add(L),y.setItemGraphicEl(x,L)}if(m){var M=D(x,s),P=g.get("clip");Ge(M,{shape:{endAngle:It(A,w,T,P)}},r),c.add(M),Pc(r.seriesIndex,y.dataType,x,M),d[x]=M}}).update(function(x,A){var L=y.get(_,x);if(p){var M=v.getItemGraphicEl(A),P=M?M.rotation:s,E=C(x,P);E.rotation=P,Ie(E,{rotation:-((isNaN(+L)?T[0]:It(L,w,T,!0))+Math.PI/2)},r),c.add(E),y.setItemGraphicEl(x,E)}if(m){var k=h[A],O=k?k.shape.endAngle:s,R=D(x,O),N=g.get("clip");Ie(R,{shape:{endAngle:It(L,w,T,N)}},r),c.add(R),Pc(r.seriesIndex,y.dataType,x,R),d[x]=R}}).execute(),y.each(function(x){var A=y.getItemModel(x),L=A.getModel("emphasis"),M=L.get("focus"),P=L.get("blurScope"),E=L.get("disabled"),k=a(It(y.get(_,x),w,[0,1],!0));if(p){var O=y.getItemGraphicEl(x),R=y.getItemVisual(x,"style"),N=R.fill;if(O instanceof Mt){var F=O.style;O.useStyle(z({image:F.image,x:F.x,y:F.y,width:F.width,height:F.height},R))}else O.useStyle(R),O.type!=="pointer"&&O.setColor(N);O.setStyle(A.getModel(["pointer","itemStyle"]).getItemStyle()),O.style.fill==="auto"&&O.setStyle("fill",k),O.z2EmphasisLift=0,zr(O,A),Fr(O,M,P,E)}if(m){var B=d[x];B.useStyle(y.getItemVisual(x,"style")),B.setStyle(A.getModel(["progress","itemStyle"]).getItemStyle()),B.style.fill==="auto"&&B.setStyle("fill",k),B.z2EmphasisLift=0,zr(B,A),Fr(B,M,P,E)}}),this._progressEls=d)},e.prototype._renderAnchor=function(r,n){var i=r.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),f=Ar(s,n.cx-o/2+Q(l[0],n.r),n.cy-o/2+Q(l[1],n.r),o,o,null,u);f.z2=i.get("showAbove")?1:0,f.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(r,n,i,a,o){var s=this,l=r.getData(),u=l.mapDimension("value"),f=+r.get("min"),c=+r.get("max"),v=new Ce,h=[],d=[],p=r.isAnimationEnabled(),g=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){h[m]=new Me({silent:!0}),d[m]=new Me({silent:!0})}).update(function(m,y){h[m]=s._titleEls[y],d[m]=s._detailEls[y]}).execute(),l.each(function(m){var y=l.getItemModel(m),_=l.get(u,m),S=new Ce,b=a(It(_,[f,c],[0,1],!0)),w=y.getModel("title");if(w.get("show")){var T=w.get("offsetCenter"),C=o.cx+Q(T[0],o.r),D=o.cy+Q(T[1],o.r),x=h[m];x.attr({z2:g?0:2,style:Ot(w,{x:C,y:D,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:b})}),S.add(x)}var A=y.getModel("detail");if(A.get("show")){var L=A.get("offsetCenter"),M=o.cx+Q(L[0],o.r),P=o.cy+Q(L[1],o.r),E=Q(A.get("width"),o.r),k=Q(A.get("height"),o.r),O=r.get(["progress","show"])?l.getItemVisual(m,"style").fill:b,x=d[m],R=A.get("formatter");x.attr({z2:g?0:2,style:Ot(A,{x:M,y:P,text:Nu(_,R),width:isNaN(E)?null:E,height:isNaN(k)?null:k,align:"center",verticalAlign:"middle"},{inheritColor:O})}),ky(x,{normal:A},_,function(F){return Nu(F,R)}),p&&VM(x,m,l,r,{getFormattedLabel:function(F,B,G,X,H,K){return Nu(K?K.interpolatedValue:_,R)}}),S.add(x)}v.add(S)}),this.group.add(v),this._titleEls=h,this._detailEls=d},e.type="gauge",e})(je),mN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.visualStyleAccessPath="itemStyle",r}return e.prototype.getInitialData=function(r,n){return pu(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,Y.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:Y.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:Y.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:Y.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:Y.color.neutral00,borderWidth:0,borderColor:Y.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:Y.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:Y.color.transparent,borderWidth:0,borderColor:Y.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:Y.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e})(ot);function yN(t){t.registerChartView(gN),t.registerSeriesModel(mN)}var pa="funnel",_N=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new xv(de(this.getData,this),de(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.getInitialData=function(r,n){return pu(this,{coordDimensions:["value"],encodeDefaulter:Oe(Fy,this)})},e.prototype._defaultLabelLine=function(r){js(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},e.prototype.getDataParams=function(r){var n=this.getData(),i=t.prototype.getDataParams.call(this,r),a=n.mapDimension("value"),o=n.getSum(a);return i.percent=o?+(n.get(a,r)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series."+pa,e.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:Y.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:Y.color.primary}}},e})(ot),SN=["itemStyle","opacity"],bN=(function(t){V(e,t);function e(r,n){var i=t.call(this)||this,a=i,o=new on,s=new Me;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(r,n,!0),i}return e.prototype.updateData=function(r,n,i){var a=this,o=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),f=s.get(SN);f=f??1,i||Ui(a),a.useStyle(r.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,Ge(a,{style:{opacity:f}},o,n)):Ie(a,{style:{opacity:f},shape:{points:l.points}},o,n),zr(a,s),this._updateLabel(r,n),Fr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r,n){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=r.hostModel,l=r.getItemModel(n),u=r.getItemLayout(n),f=u.label,c=r.getItemVisual(n,"style"),v=c.fill;Kn(o,jn(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:c.opacity,defaultText:r.getName(n)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}});var h=l.getModel("label"),d=h.get("color"),p=d==="inherit"?v:null;i.setTextConfig({local:!0,inside:!!f.inside,insideStroke:p,outsideFill:p});var g=f.linePoints;a.setShape({points:g}),i.textGuideLineConfig={anchor:g?new re(g[0][0],g[0][1]):null},Ie(o,{style:{x:f.x,y:f.y}},s,n),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),qS(i,ZS(l),{stroke:v})},e})(Gi),wN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=pa,r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,n,i){var a=r.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new bN(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(a,l),s.add(f),a.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);Hi(u,r,l)}).execute(),this._data=a},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type=pa,e})(je);function TN(t,e){for(var r=t.mapDimension("value"),n=t.mapArray(r,function(l){return l}),i=[],a=e==="ascending",o=0,s=t.count();o<s;o++)i[o]=o;return ee(e)?i.sort(e):e!=="none"&&i.sort(function(l,u){return a?n[l]-n[u]:n[u]-n[l]}),i}function xN(t){var e=t.hostModel,r=dw(e);t.each(function(n){var i=t.getItemModel(n),a=i.getModel("label"),o=a.get("position"),s=i.getModel("labelLine"),l=t.getItemLayout(n),u=l.points,f=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",c,v,h,d;if(f)o==="insideLeft"?(v=(u[0][0]+u[3][0])/2+5,h=(u[0][1]+u[3][1])/2,c="left"):o==="insideRight"?(v=(u[1][0]+u[2][0])/2-5,h=(u[1][1]+u[2][1])/2,c="right"):(v=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,h=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,c="center"),d=[[v,h],[v,h]];else{var p=void 0,g=void 0,m=void 0,y=void 0,_=s.get("length");q(o)&&(!r&&fe(["top","bottom"],o)>-1&&(o="left"),r&&fe(["left","right"],o)>-1&&(o="bottom")),o==="left"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=p-_,v=m-5,c="right"):o==="right"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=p+_,v=m+5,c="left"):o==="top"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=g-_,h=y-5,c="center"):o==="bottom"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=g+_,h=y+5,c="center"):o==="rightTop"?(p=r?u[3][0]:u[1][0],g=r?u[3][1]:u[1][1],r?(y=g-_,h=y-5,c="center"):(m=p+_,v=m+5,c="top")):o==="rightBottom"?(p=u[2][0],g=u[2][1],r?(y=g+_,h=y+5,c="center"):(m=p+_,v=m+5,c="bottom")):o==="leftTop"?(p=u[0][0],g=r?u[0][1]:u[1][1],r?(y=g-_,h=y-5,c="center"):(m=p-_,v=m-5,c="right")):o==="leftBottom"?(p=r?u[1][0]:u[3][0],g=r?u[1][1]:u[2][1],r?(y=g+_,h=y+5,c="center"):(m=p-_,v=m-5,c="right")):(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,r?(y=g+_,h=y+5,c="center"):(m=p+_,v=m+5,c="left")),r?(m=p,v=m):(y=g,h=y),d=[[p,g],[m,y]]}l.label={linePoints:d,x:v,y:h,verticalAlign:"middle",textAlign:c,inside:f}})}var CN=Ic(pa,AN);function AN(t,e){t.eachSeriesByType(pa,function(r){var n=r.getData(),i=n.mapDimension("value"),a=r.get("sort"),o=Ji(r,e),s=Vr(r.getBoxLayoutParams(),o.refContainer),l=dw(r),u=s.width,f=s.height,c=TN(n,a),v=s.x,h=s.y,d=l?[Q(r.get("minSize"),f),Q(r.get("maxSize"),f)]:[Q(r.get("minSize"),u),Q(r.get("maxSize"),u)],p=n.getDataExtent(i),g=r.get("min"),m=r.get("max");g==null&&(g=Math.min(p[0],0)),m==null&&(m=p[1]);var y=r.get("funnelAlign"),_=r.get("gap"),S=l?u:f,b=(S-_*(n.count()-1))/n.count(),w=function(E,k){if(l){var O=n.get(i,E)||0,R=It(O,[g,m],d,!0),N=void 0;switch(y){case"top":N=h;break;case"center":N=h+(f-R)/2;break;case"bottom":N=h+(f-R);break}return[[k,N],[k,N+R]]}var F=n.get(i,E)||0,B=It(F,[g,m],d,!0),G;switch(y){case"left":G=v;break;case"center":G=v+(u-B)/2;break;case"right":G=v+u-B;break}return[[G,k],[G+B,k]]};a==="ascending"&&(b=-b,_=-_,l?v+=u:h+=f,c=c.reverse());for(var T=0;T<c.length;T++){var C=c[T],D=c[T+1],x=n.getItemModel(C);if(l){var A=x.get(["itemStyle","width"]);A==null?A=b:(A=Q(A,u),a==="ascending"&&(A=-A));var L=w(C,v),M=w(D,v+A);v+=A+_,n.setItemLayout(C,{points:L.concat(M.slice().reverse())})}else{var P=x.get(["itemStyle","height"]);P==null?P=b:(P=Q(P,f),a==="ascending"&&(P=-P));var L=w(C,h),M=w(D,h+P);h+=P+_,n.setItemLayout(C,{points:L.concat(M.slice().reverse())})}}xN(n)})}function dw(t){return t.get("orient")==="horizontal"}function DN(t){t.registerChartView(wN),t.registerSeriesModel(_N),t.registerLayout(CN),t.registerProcessor(Tv(pa))}var ci=Se(),pw=oe,wd=de,MN=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,e,r,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new Ce,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),n.getZr().add(s);else{var v=Oe(gw,r,c);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,r)}_w(s,r,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var n=r.get("animation"),i=e.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&ia(i).w>s)return!0;if(o){var l=_d(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},t.prototype.makeElOption=function(e,r,n,i,a){},t.prototype.createPointerEl=function(e,r,n,i){var a=r.pointer;if(a){var o=ci(e).pointerEl=new Ay[a.type](pw(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,i){if(r.label){var a=ci(e).labelEl=new Me(pw(r.label));e.add(a),yw(a,i)}},t.prototype.updatePointerEl=function(e,r,n){var i=ci(e).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,i){var a=ci(e).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),yw(a,i))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=rh(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){n1(u.event)},onmousedown:wd(this._onHandleDragMove,this,0,0),drift:wd(this._onHandleDragMove,this),ondragend:wd(this._onHandleDragEnd,this)}),n.add(i)),_w(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");W(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,RS(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){gw(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Td(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Td(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Td(i)),ci(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Sv(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,n){return n=n||0,{x:e[n],y:e[1-n],width:r[n],height:r[1-n]}},t})();function gw(t,e,r,n){mw(ci(r).lastProp,n)||(ci(r).lastProp=n,e?Ie(r,n,t):(r.stopAnimation(),r.attr(n)))}function mw(t,e){if(j(t)&&j(e)){var r=!0;return I(e,function(n,i){r=r&&mw(t[i],n)}),!!r}else return t===e}function yw(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Td(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function _w(t,e,r){var n=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function IN(t){var e=t.get("type"),r=t.getModel(e+"Style"),n;return e==="line"?(n=r.getLineStyle(),n.fill=null):e==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function LN(t,e,r,n,i){var a=r.get("value"),o=Sw(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Bl(s.get("padding")||0),u=s.getFont(),f=ag(o,u),c=i.position,v=f.width+l[1]+l[3],h=f.height+l[0]+l[2],d=i.align;d==="right"&&(c[0]-=v),d==="center"&&(c[0]-=v/2);var p=i.verticalAlign;p==="bottom"&&(c[1]-=h),p==="middle"&&(c[1]-=h/2),PN(c,v,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Ot(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function PN(t,e,r,n){var i=n.getWidth(),a=n.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function Sw(t,e,r,n,i){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:i.precision}),o=i.formatter;if(o){var s={value:Jl(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};I(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),q(o)?a=o.replace("{value}",a):ee(o)&&(a=o(s))}return a}function bw(t,e,r){var n=dr();return Sf(n,n,r.rotation),_f(n,n,r.position),th([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function EN(t,e,r,n,i,a){var o=Hr.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),LN(e,n,i,a,{position:bw(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function kN(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function RN(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function ON(t,e,r){return ia(t,{fromStat:{sers:$(e,function(n){return r.getSeriesByIndex(n.seriesIndex)})},min:1}).w}function NN(t,e,r){return[ge(qe(e[0],e[1]),t-r/2),qe(t+r/2,ge(e[0],e[1]))]}var BN=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=s.getGlobalExtent(),c=ww(l,s).getOtherAxis(s).getGlobalExtent(),v=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=IN(a),d=FN[u](s,v,f,c,a.get("seriesDataIndices"),a.ecModel);d.style=h,r.graphicKey=d.type,r.pointer=d}var p=su(l.getRect(),i);EN(n,r,p,i,a,o)},e.prototype.getHandleTransform=function(r,n,i){var a=su(n.axis.grid.getRect(),n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=bw(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=ww(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=qe(l[1],c[f]),c[f]=ge(l[0],c[f]);var v=(u[1]+u[0])/2,h=[v,v];h[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:d[f]}},e})(MN);function ww(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var FN={line:function(t,e,r,n){var i=kN([e,n[0]],[e,n[1]],Tw(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,r,n,i,a){var o=ON(t,i,a),s=n[1]-n[0],l=NN(e,r,o),u=l[0],f=l[1];return{type:"Rect",shape:RN([u,n[0]],[f-u,s],Tw(t))}}};function Tw(t){return t.dim==="x"?0:1}var zN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:Y.color.border,width:1,type:"dashed"},shadowStyle:{color:Y.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:Y.color.neutral00,padding:[5,7,5,7],backgroundColor:Y.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:Y.color.accent40,throttle:40}},e})(ye),Xr=Se(),VN=I;function xw(t,e,r){if(!ie.node){var n=e.getZr();Xr(n).records||(Xr(n).records={}),GN(n,e);var i=Xr(n).records[t]||(Xr(n).records[t]={});i.handler=r}}function GN(t,e){if(Xr(t).initialized)return;Xr(t).initialized=!0,r("click",Oe(xd,"click")),r("mousemove",Oe(xd,"mousemove")),r("mousewheel",Oe(xd,"mousewheel")),r("globalout",UN);function r(n,i){t.on(n,function(a){var o=WN(e);VN(Xr(t).records,function(s){s&&i(s,a,o.dispatchAction)}),HN(o.pendings,e)})}}function HN(t,e){var r=t.showTip.length,n=t.hideTip.length,i;r?i=t.showTip[r-1]:n&&(i=t.hideTip[n-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function UN(t,e,r){t.handler("leave",null,r)}function xd(t,e,r,n){e.handler(t,r,n)}function WN(t){var e={showTip:[],hideTip:[]},r=function(n){var i=e[n.type];i?i.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}function Cd(t,e){if(!ie.node){var r=e.getZr(),n=(Xr(r).records||{})[t];n&&(Xr(r).records[t]=null)}}var YN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click|mousewheel";xw("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,n){Cd("axisPointer",n)},e.prototype.dispose=function(r,n){Cd("axisPointer",n)},e.type="axisPointer",e})(bt);function Cw(t,e){var r=[],n=t.seriesIndex,i;if(n==null||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Wn(a,t);if(o==null||o<0||W(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,v=u.dim,h=c==="x"||c==="radius"?1:0,d=a.mapDimension(v),p=[];p[h]=a.get(d,o),p[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(a.getValues($(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var Aw=Se();function $N(t,e,r){var n=t.currTrigger,i=[t.x,t.y],a=t,o=t.dispatchAction||de(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Bu(i)&&(i=Cw({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=Bu(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||Bu(i),v={},h={},d={list:[],map:{}},p={showPointer:Oe(qN,h),showTooltip:Oe(ZN,d)};I(s.coordSysMap,function(m,y){var _=l||m.containPoint(i);I(s.coordSysAxesInfo[y],function(S,b){var w=S.axis,T=JN(u,S);if(!c&&_&&(!u||T)){var C=T&&T.value;C==null&&!l&&(C=w.pointToData(i)),C!=null&&Dw(S,C,p,!1,v)}})});var g={};return I(f,function(m,y){var _=m.linkGroup;_&&!h[y]&&I(_.axesInfo,function(S,b){var w=h[b];if(S!==m&&w){var T=w.value;_.mapper&&(T=m.axis.scale.parse(_.mapper(T,Mw(S),Mw(m)))),g[m.key]=T}})}),I(g,function(m,y){Dw(f[y],m,p,!0,v)}),KN(h,f,v),jN(d,i,t,o),QN(f,o,r),v}}function Dw(t,e,r,n,i){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=XN(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&z(i,s[0]),!n&&t.snap&&a.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function XN(t,e){var r=e.axis,n=r.dim,i=t,a=[],o=Number.MAX_VALUE,s=-1;return I(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,v;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,t,r);v=h.dataIndices,c=h.nestestValue}else{if(v=l.indicesOfNearest(n,f[0],t,r.type==="category"?.5:null),!v.length)return;c=l.getData().get(f[0],v[0])}if(Lt(c)){var d=t-c,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,i=c,a.length=0),I(v,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function qN(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function ZN(t,e,r,n){var i=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=Go(l),f=t.map[u];f||(f=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function KN(t,e,r){var n=r.axesInfo=[];I(e,function(i,a){var o=i.axisPointerModel.option,s=t[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function jN(t,e,r,n){if(Bu(e)||!t.list.length){n({type:"hideTip"});return}var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}function QN(t,e,r){var n=r.getZr(),i="axisPointerLastHighlights",a=Aw(n)[i]||{},o=Aw(n)[i]={};I(t,function(f,c){var v=f.axisPointerModel.option;v.status==="show"&&f.triggerEmphasis&&I(v.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}I(a,function(f,c){!o[c]&&l.push(u(f))}),I(o,function(f,c){!a[c]&&s.push(u(f))}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function JN(t,e){for(var r=0;r<(t||[]).length;r++){var n=t[r];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function Mw(t){var e=t.axis.model,r={},n=r.axisDim=t.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=e.componentIndex,r.axisName=r[n+"AxisName"]=e.name,r.axisId=r[n+"AxisId"]=e.id,r}function Bu(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function Iw(t){aw.registerAxisPointerClass("CartesianAxisPointer",BN),t.registerComponentModel(zN),t.registerComponentView(YN),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!W(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=GO(e,r)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},$N)}function eB(t){rr(uw),rr(Iw)}function tB(t,e){var r=Bl(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var i=new De({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1});return i}var rB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Y.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Y.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:Y.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:Y.color.tertiary,fontSize:14}},e})(ye);function Lw(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function Pw(t){if(ie.domSupported){for(var e=document.documentElement.style,r=0,n=t.length;r<n;r++)if(t[r]in e)return t[r]}}var Ew=Pw(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),nB=Pw(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function kw(t,e){if(!t)return e;e=k0(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function iB(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?r[e]:null}var aB=kw(nB,"transition"),Ad=kw(Ew,"transform"),oB="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ie.transform3dSupported?"will-change:transform;":"");function sB(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function lB(t,e,r){if(!q(r)||r==="inside")return"";var n=t.get("backgroundColor"),i=t.get("borderWidth");e=ri(e);var a=sB(r),o=Math.max(Math.round(i)*1.5,6),s="",l=Ad+":",u;fe(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+i,v=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((v-Math.SQRT2*i)/2+Math.SQRT2*i-(v-c)/2)*100)/100;s+=";"+a+":-"+h+"px";var d=e+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function uB(t,e,r){var n="cubic-bezier(0.23,1,0.32,1)",i="",a="";return r&&(i=" "+t/2+"s "+n,a="opacity"+i+",visibility"+i),e||(i=" "+t+"s "+n,a+=(a.length?",":"")+(ie.transformSupported?""+Ad+i:",left"+i+",top"+i)),aB+":"+a}function Rw(t,e,r){var n=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!ie.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=ie.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+Ad+":"+o+";":[["top",0],["left",0],[Ew,o]]}function fB(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var i=Z(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+i+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),I(["decoration","align"],function(u){var f=t.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function cB(t,e,r,n){var i=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),f=t.get("shadowOffsetY"),c=t.getModel("textStyle"),v=Q0(t,"html"),h=u+"px "+f+"px "+s+"px "+l;return i.push("box-shadow:"+h),e&&a>0&&i.push(uB(a,r,n)),o&&i.push("background-color:"+o),I(["width","color","radius"],function(d){var p="border-"+d,g=k0(p),m=t.get(g);m!=null&&i.push(p+":"+m+(d==="color"?"":"px"))}),i.push(fB(c)),v!=null&&i.push("padding:"+Bl(v).join("px ")+"px"),i.join(";")+";"}function Ow(t,e,r,n,i){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&zI(t,o,r,n,i)}else{t[0]=n,t[1]=i;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var hB=(function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ie.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),a=r.appendTo,o=a&&(q(a)?document.querySelector(a):Ca(a)?a:ee(a)&&a(e.getDom()));Ow(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,f=i.painter.getViewportRoot();zt(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),n=iB(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=oB+cB(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+Rw(a[0],a[1],!0)+("border-color:"+ri(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,i,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(q(a)&&n.get("trigger")==="item"&&!Lw(n)&&(s=lB(n,i,a)),q(e))o.innerHTML=e+s;else if(e){o.innerHTML="",W(e)||(e=[e]);for(var l=0;l<e.length;l++)Ca(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var n=this._styleCoord;if(Ow(n,this._zr,this._container,e,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=Rw(n[0],n[1]);I(a,function(o){i[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",ie.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(de(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;VI(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var n=r.parentNode;n&&n.removeChild(r)}this.el=this._container=null},t})(),vB=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),Bw(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,n,i,a){var o=this;j(e)&&ht(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Me({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Q0(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),I(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),I(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),n=Nw(e.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},t.prototype.moveTo=function(e,r){var n=this.el;if(n){var i=this._styleCoord;Bw(i,this._zr,e,r),e=i[0],r=i[1];var a=n.style,o=Sn(a.borderWidth||0),s=Nw(a);n.x=e+o+s.left,n.y=r+o+s.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(de(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function Sn(t){return Math.max(0,t)}function Nw(t){var e=Sn(t.shadowBlur||0),r=Sn(t.shadowOffsetX||0),n=Sn(t.shadowOffsetY||0);return{left:Sn(e-r),right:Sn(e+r),top:Sn(e-n),bottom:Sn(e+n)}}function Bw(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var dB=new De({shape:{x:-1,y:-1,width:2,height:2}}),pB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){if(!(ie.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=dD(i.get("renderMode"));this._tooltipContent=a==="richText"?new vB(n):new hB(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(r,n,i){if(!(ie.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?RS(this,"_updatePosition",50,"fixRate"):Sv(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");xw("itemTooltip",this._api,de(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(r.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||ie.node||!i.getDom())){var o=Fw(a,i);this._ticket="";var s=a.dataByCoordSys,l=_B(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=dB;f.x=a.x,f.y=a.y,f.update(),ue(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var c=Cw(a,n),v=c.point[0],h=c.point[1];v!=null&&h!=null&&this._tryShow({offsetX:v,offsetY:h,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,a.from!==this.uid&&this._hide(Fw(a,i))},e.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),c=Yo([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=ue(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;zo(i,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(ue(f).dataIndex!=null?l=f:ue(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=de(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},e.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Yo([n.tooltipOption],a),l=this._renderMode,u=[],f=ii("section",{blocks:[],noHeader:!0}),c=[],v=new Wh;I(r,function(y){I(y.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value,w=S.axis,T=w.scale.parse(b);if(!(!S||b==null)){var C=Sw(b,w,i,_.seriesDataIndices,_.valueLabelOpt),D=ii("section",{header:C,noHeader:!hr(C),sortBlocks:!0,blocks:[]});f.blocks.push(D),I(_.seriesDataIndices,function(x){var A=i.getSeriesByIndex(x.seriesIndex),L=x.dataIndexInside,M=A.getDataParams(L);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=Jl(S.axis,{value:T}),M.axisValueLabel=C,M.marker=v.makeTooltipMarker("item",ri(M.color),l);var P=F0(A.formatTooltip(L,!0,null)),E=P.frag;if(E){var k=Yo([A],a).get("valueFormatter");D.blocks.push(k?z({valueFormatter:k},E):E)}P.text&&c.push(P.text),u.push(M)}})}})}),f.blocks.reverse(),c.reverse();var h=n.position,d=s.get("order"),p=Z0(f,v,l,d,i.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?`
15
15
 
16
- `:"<br/>",m=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],h,null,v)})},e.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=ue(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,v=u.getData(c),h=this._renderMode,d=r.positionDefault,p=Yo([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(f,c),y=new Wh;m.marker=y.makeTooltipMarker("item",ri(m.color),h);var _=F0(u.formatTooltip(f,!1,c)),S=p.get("order"),b=p.get("valueFormatter"),w=_.frag,T=w?Z0(b?z({valueFormatter:b},w):w,y,h,S,a.get("useUTC"),p.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,T,m,C,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=ue(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(q(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=oe(l),l.content=it(l.content));var c=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&c.push(v),c.push({formatter:l.content});var h=r.positionDefault,d=Yo(c,this._tooltipModel,h?{position:h}:null),p=d.get("content"),g=Math.random()+"",m=new Wh;this._showOrMove(d,function(){var y=oe(d.get("formatterParams")||{});this._showTooltipContent(d,p,y,g,r.offsetX,r.offsetY,r.position,n,m)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var v=r.get("formatter");l=l||r.get("position");var h=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),p=d.color;if(v)if(q(v)){var g=r.ecModel.get("useUTC"),m=W(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=v,y&&(h=Nl(m.axisValue,h,g)),h=O0(h,i,!0)}else if(ee(v)){var _=de(function(S,b){S===this._ticket&&(c.setContent(b,f,r,p,l),this._updatePosition(r,l,o,s,c,i,u))},this);this._ticket=a,h=v(i,a,_)}else h=v;c.setContent(h,f,r,p,l),c.show(r,p),this._updatePosition(r,l,o,s,c,i,u)}},e.prototype._getNearestPoint=function(r,n,i,a,o){if(i==="axis"||W(n))return{color:a||o};if(!W(n))return{color:a||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),v=r.get("align"),h=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),ee(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),W(n))i=Q(n[0],u),a=Q(n[1],f);else if(j(n)){var p=n;p.width=c[0],p.height=c[1];var g=Gr(p,{width:u,height:f});i=g.x,a=g.y,v=null,h=null}else if(q(n)&&l){var m=yB(n,d,c,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=gB(i,a,o,u,f,v?null:20,h?null:20);i=m[0],a=m[1]}if(v&&(i-=zw(v)?c[0]/2:v==="right"?c[0]:0),h&&(a-=zw(h)?c[1]/2:h==="bottom"?c[1]:0),Lw(r)){var m=mB(i,a,o,u,f);i=m[0],a=m[1]}o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&I(i,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&I(u,function(v,h){var d=c[h]||{},p=v.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===g.length,o&&I(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&I(v.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],S=a[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){ie.node||!n.getDom()||(Sv(this,"_updatePosition"),this._tooltipContent.dispose(),Cd("itemTooltip",n),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(bt);function Yo(t,e,r){var n=e.ecModel,i;r?(i=new xe(r,n,n),i=new xe(e.option,i,n)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof xe&&(o=o.get("tooltip",!0)),q(o)&&(o={formatter:o}),o&&(i=new xe(o,i,n)))}return i}function Fw(t,e){return t.dispatchAction||de(e.dispatchAction,e)}function gB(t,e,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(t+l+a+2>n?t-=l+a:t+=a),o!=null&&(e+u+o>i?e-=u+o:e+=o),[t,e]}function mB(t,e,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function yB(t,e,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,f=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+f/2-a/2;break;case"top":s=e.x+u/2-i/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+f+o;break;case"left":s=e.x-i-o,l=e.y+f/2-a/2;break;case"right":s=e.x+u+o,l=e.y+f/2-a/2}return[s,l]}function zw(t){return t==="center"||t==="middle"}function _B(t,e,r){var n=Ac(t).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Qa(e,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ue(u).tooltipConfig;if(f&&f.name===t.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function SB(t){rr(Iw),t.registerComponentModel(rB),t.registerComponentView(pB),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},We),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},We)}var bB=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:Y.size.m,backgroundColor:Y.color.transparent,borderColor:Y.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:Y.color.primary},subtextStyle:{fontSize:12,color:Y.color.quaternary}},e})(ye),wB=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=Z(r.get("textBaseline"),r.get("textVerticalAlign")),f=new Me({style:Ot(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),v=r.get("subtext"),h=new Me({style:Ot(s,{text:v,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),p=r.get("sublink"),g=r.get("triggerEvent",!0);f.silent=!d&&!g,h.silent=!p&&!g,d&&f.on("click",function(){N0(d,"_"+r.get("target"))}),p&&h.on("click",function(){N0(p,"_"+r.get("subtarget"))}),ue(f).eventData=ue(h).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),v&&a.add(h);var m=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=Ji(r,i),S=Gr(y,_.refContainer,r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),a.x=S.x,a.y=S.y,a.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),h.setStyle(b),m=a.getBoundingRect();var w=S.margin,T=r.getItemStyle(["color","opacity"]);T.fill=r.get("backgroundColor");var C=new De({shape:{x:m.x-w[3],y:m.y-w[0],width:m.width+w[1]+w[3],height:m.height+w[0]+w[2],r:r.get("borderRadius")},style:T,subPixelOptimize:!0,silent:!0});a.add(C)}},e.type="title",e})(bt);function TB(t){t.registerComponentModel(bB),t.registerComponentView(wB)}var xB=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},Dd=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},e.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),W(n)&&I(n,function(a,o){q(a)&&(a={type:a}),n[o]=be(a,xB(i,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,v=c.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(v)),v.length?n=n.concat(v):f=!0}else f=!0;f&&xc(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=te(),s=$(a,function(l){return(q(l)||me(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new xe(l,this,this.ecModel))},this);this._data=Ue(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;I(a,function(o){n[o.get("name")]=!1})}n[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,n=this.option.selected;I(r,function(i){n[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;I(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},e.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&fe(this._availableNames,r)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:Y.size.m,align:"auto",backgroundColor:Y.color.transparent,borderColor:Y.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:Y.color.disabled,inactiveBorderColor:Y.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:Y.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:Y.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:Y.color.tertiary,borderWidth:1,borderColor:Y.color.border},emphasis:{selectorLabel:{show:!0,color:Y.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(ye),ga=Oe,Md=I,Fu=Ce,Gw=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new Fu),this.group.add(this._selectorGroup=new Fu),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var f=Ji(r,i).refContainer,c=r.getBoxLayoutParams(),v=r.get("padding"),h=Gr(c,f,v),d=this.layoutInner(r,o,h,a,l,u),p=Gr(le({width:d.width,height:d.height},c),f,v);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=tB(d,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),f=te(),c=n.get("selectedMode"),v=n.get("triggerEvent"),h=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),Md(n.getData(),function(d,p){var g=this,m=d.get("name");if(!this.newlineDisabled&&(m===""||m===`
17
- `)){var y=new Fu;y.newline=!0,u.add(y);return}var _=i.getSeriesByName(m)[0];if(!f.get(m))if(_){var S=_.getData(),b=S.getVisual("legendLineStyle")||{},w=S.getVisual("legendIcon"),T=S.getVisual("style"),C=this._createItem(_,m,p,d,n,r,b,T,w,c,a);C.on("click",ga(Vw,m,null,a,h)).on("mouseover",ga(Id,_.name,null,a,h)).on("mouseout",ga(Ld,_.name,null,a,h)),i.ssr&&C.eachChild(function(D){var x=ue(D);x.seriesIndex=_.seriesIndex,x.dataIndex=p,x.ssrType="legend"}),v&&C.eachChild(function(D){g.packEventData(D,n,_,p,m)}),f.set(m,!0)}else i.eachRawSeries(function(D){var x=this;if(!f.get(m)&&D.legendVisualProvider){var A=D.legendVisualProvider;if(!A.containName(m))return;var L=A.indexOfName(m),M=A.getItemVisual(L,"style"),P=A.getItemVisual(L,"legendIcon"),E=Yt(M.fill);E&&E[3]===0&&(E[3]=.2,M=z(z({},M),{fill:Fa(E,"rgba")}));var k=this._createItem(D,m,p,d,n,r,{},M,P,c,a);k.on("click",ga(Vw,null,m,a,h)).on("mouseover",ga(Id,null,m,a,h)).on("mouseout",ga(Ld,null,m,a,h)),i.ssr&&k.eachChild(function(O){var R=ue(O);R.seriesIndex=D.seriesIndex,R.dataIndex=p,R.ssrType="legend"}),v&&k.eachChild(function(O){x.packEventData(O,n,D,p,m)}),f.set(m,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},e.prototype.packEventData=function(r,n,i,a,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:a,value:o,seriesIndex:i.seriesIndex};ue(r).eventData=s},e.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();Md(r,function(u){var f=u.type,c=new Me({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(c);var v=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);Kn(c,{normal:v,emphasis:h},{defaultText:u.title}),Vc(c)})},e.prototype._createItem=function(r,n,i,a,o,s,l,u,f,c,v){var h=r.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=CB(f,a,l,u,h,g,v),b=new Fu,w=a.getModel("textStyle");if(ee(r.getLegendIcon)&&(!_||_==="inherit"))b.add(r.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var T=_==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;b.add(AB({itemWidth:d,itemHeight:p,icon:f,iconRotate:T,itemStyle:S.itemStyle,symbolKeepAspect:y}))}var C=s==="left"?d+5:-5,D=s,x=o.get("formatter"),A=n;q(x)&&x?A=x.replace("{name}",n??""):ee(x)&&(A=x(n));var L=g?w.getTextColor():a.get("inactiveColor");b.add(new Me({style:Ot(w,{text:A,x:C,y:p/2,fill:L,align:D,verticalAlign:"middle"},{inheritColor:L})}));var M=new De({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=a.getModel("tooltip");return P.get("show")&&ml({el:M,componentModel:o,itemName:n,itemTooltipOption:P.option}),b.add(M),b.eachChild(function(E){E.silent=!0}),M.silent=!c,this.getContentGroup().add(b),Vc(b),b.__legendDataIndex=i,b},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();mo(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){mo("horizontal",u,r.get("selectorItemGap",!0));var v=u.getBoundingRect(),h=[-v.x,-v.y],d=r.get("selectorButtonGap",!0),p=r.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?h[p]+=f[g]+d:c[p]+=v[g]+d,h[1-p]+=f[m]/2-v[m]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=f[g]+d+v[g],_[m]=Math.max(f[m],v[m]),_[y]=Math.min(0,v[y]+h[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(bt);function CB(t,e,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),Md(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=t.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:jv(c,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var v=e.getModel("lineStyle"),h=v.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!a){var d=e.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=v.get("inactiveColor"),h.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function AB(t){var e=t.icon||"roundRect",r=Ar(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=Y.color.neutral00,r.style.lineWidth=2),r}function Vw(t,e,r,n){Ld(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),Id(t,e,r,n)}function Id(t,e,r,n){r.usingTHL()||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function Ld(t,e,r,n){r.usingTHL()||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function $o(t,e,r){var n=t==="allSelect"||t==="inverseSelect",i={},a=[];r.eachComponent({mainType:"legend",query:e},function(s){n?s[t]():s[t](e.name),Hw(s,i),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){I(i,function(l,u){s[l?"select":"unSelect"](u)}),Hw(s,o)}),n?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function Hw(t,e){var r=e||{};return I(t.getData(),function(n){var i=n.get("name");if(!(i===`
18
- `||i==="")){var a=t.isSelected(i);tt(r,i)?r[i]=r[i]&&a:r[i]=a}}),r}function DB(t){t.registerAction("legendToggleSelect","legendselectchanged",Oe($o,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Oe($o,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Oe($o,"inverseSelect")),t.registerAction("legendSelect","legendselected",Oe($o,"select")),t.registerAction("legendUnSelect","legendunselected",Oe($o,"unSelect"))}var MB=Lc(IB);function IB(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var n=0;n<e.length;n++)if(!e[n].isSelected(r.name))return!1;return!0})}function Uw(t){t.registerComponentModel(Dd),t.registerComponentView(Gw),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,MB),t.registerSubTypeDefaulter("legend",function(){return"plain"}),DB(t)}var LB=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,n,i){var a=So(r);t.prototype.init.call(this,r,n,i),Ww(this,r,a)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),Ww(this,this.option,r)},e.type="legend.scroll",e.defaultOption=m0(Dd.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:Y.color.accent50,pageIconInactiveColor:Y.color.accent10,pageIconSize:15,pageTextStyle:{color:Y.color.tertiary},animationDurationUpdate:800}),e})(Dd);function Ww(t,e,r){var n=t.getOrient(),i=[1,1];i[n.index]=0,fn(e,r,{type:"box",ignoreSize:!!i})}var Yw=Ce,Pd=["width","height"],Ed=["x","y"],PB=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new Yw),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Yw)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;t.prototype.renderInner.call(this,r,n,i,a,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),v=W(c)?c:[c,c];d("pagePrev",0);var h=n.getModel("pageTextStyle");f.add(new Me({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var m=p+"DataIndex",y=rh(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:de(u._pageGo,u,m,n,a)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});y.name=p,f.add(y)}},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=Pd[u],c=Ed[u],v=Pd[1-u],h=Ed[1-u];o&&mo("horizontal",l,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=oe(i);o&&(m[f]=i[f]-p[f]-d);var y=this._layoutContentAndController(r,a,m,u,f,v,h,c);if(o){if(s==="end")g[u]+=y[f]+d;else{var _=p[f]+d;g[u]-=_,y[c]-=_}y[f]+=p[f]+d,g[1-u]+=y[h]+y[v]/2-p[v]/2,y[v]=Math.max(y[v],p[v]),y[h]=Math.min(y[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,v=this._controllerGroup;mo(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),mo("horizontal",v,r.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),d=v.getBoundingRect(),p=this._showController=h[o]>i[o],g=[-h.x,-h.y];n||(g[a]=f[u]);var m=[0,0],y=[-d.x,-d.y],_=Z(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var S=r.get("pageButtonPosition",!0);S==="end"?y[a]+=i[o]-d[o]:m[a]+=d[o]+_}y[1-a]+=h[s]/2-d[s]/2,f.setPosition(g),c.setPosition(m),v.setPosition(y);var b={x:0,y:0};if(b[o]=p?i[o]:h[o],b[s]=Math.max(h[s],d[s]),b[l]=Math.min(0,d[l]+y[1-a]),c.__rectSize=i[o],p){var w={x:0,y:0};w[o]=Math.max(i[o]-d[o]-_,0),w[s]=b[s],c.setClipPath(new De({shape:w})),c.__rectSize=w[o]}else v.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(r);return T.pageIndex!=null&&Ie(f,{x:T.contentPosition[0],y:T.contentPosition[1]},p?r:null),this._updatePageInfoView(r,T),b},e.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;I(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",v=n[c]!=null,h=i.childOfName(f);h&&(h.setStyle("fill",v?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=v?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",q(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=Pd[o],l=Ed[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],v=f.length,h=v?1:0,d={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=S(c);d.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,_=null;g<=v;++g)_=S(f[g]),(!_&&y.e>m.s+a||_&&!b(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=_;for(var g=u-1,m=p,y=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(y,_.s))&&m.i<y.i&&(y=m,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=m.i),++d.pageCount,++d.pageIndex),m=_;return d;function S(w){if(w){var T=w.getBoundingRect(),C=T[l]+w[l];return{s:C,e:C+T[s],i:w.__legendDataIndex}}}function b(w,T){return w.e>=T&&w.s<=T+a}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},e.type="legend.scroll",e})(Gw);function EB(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})})}function kB(t){rr(Uw),t.registerComponentModel(LB),t.registerComponentView(PB),EB(t)}function RB(t){rr(Uw),rr(kB)}var OB=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.prototype.init=function(r,n,i){t.prototype.init.call(this,r,n,i),this._sourceManager=new V0(this),H0(this)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),H0(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:qt},e})(ye),NB=(function(t){G(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.type="dataset",e})(bt);function BB(t){t.registerComponentModel(OB),t.registerComponentView(NB)}var kd=Math.sin,Rd=Math.cos,$w=Math.PI,hi=Math.PI*2,FB=180/$w,Xw=(function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,r){this._add("M",e,r)},t.prototype.lineTo=function(e,r){this._add("L",e,r)},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){this._add("C",e,r,n,i,a,o)},t.prototype.quadraticCurveTo=function(e,r,n,i){this._add("Q",e,r,n,i)},t.prototype.arc=function(e,r,n,i,a,o){this.ellipse(e,r,n,n,0,i,a,o)},t.prototype.ellipse=function(e,r,n,i,a,o,s,l){var u=s-o,f=!l,c=Math.abs(u),v=Qr(c-hi)||(f?u>=hi:-u>=hi),h=u>0?u%hi:u%hi+hi,d=!1;v?d=!0:Qr(c)?d=!1:d=h>=$w==!!f;var p=e+n*Rd(o),g=r+i*kd(o);this._start&&this._add("M",p,g);var m=Math.round(a*FB);if(v){var y=1/this._p,_=(f?1:-1)*(hi-y);this._add("A",n,i,m,1,+f,e+n*Rd(o+_),r+i*kd(o+_)),y>.01&&this._add("A",n,i,m,0,+f,p,g)}else{var S=e+n*Rd(s),b=r+i*kd(s);this._add("A",n,i,m,+d,+f,S,b)}},t.prototype.rect=function(e,r,n,i){this._add("M",e,r),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,r,n,i,a,o,s,l,u){for(var f=[],c=this._p,v=1;v<arguments.length;v++){var h=arguments[v];if(isNaN(h)){this._invalid=!0;return}f.push(Math.round(h*c)/c)}this._d.push(e+f.join(" ")),this._start=e==="Z"},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t})(),Od="none",zB=Math.round;function GB(t){var e=t.fill;return e!=null&&e!==Od}function VB(t){var e=t.stroke;return e!=null&&e!==Od}var Nd=["lineCap","miterLimit","lineJoin"],HB=$(Nd,function(t){return"stroke-"+t.toLowerCase()});function UB(t,e,r,n){var i=e.opacity==null?1:e.opacity;if(r instanceof Mt){t("opacity",i);return}if(GB(e)){var a=za(e.fill);t("fill",a.color);var o=e.fillOpacity!=null?e.fillOpacity*a.opacity*i:a.opacity*i;o<1&&t("fill-opacity",o)}else t("fill",Od);if(VB(e)){var s=za(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?r.getLineScale():1,u=l?(e.lineWidth||0)/l:0,f=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*i:s.opacity*i,c=e.strokeFirst;if(u!==1&&t("stroke-width",u),c&&t("paint-order",c?"stroke":"fill"),f<1&&t("stroke-opacity",f),e.lineDash){var v=Xv(r),h=v[0],d=v[1];h&&(d=zB(d||0),t("stroke-dasharray",h.join(",")),(d||n)&&t("stroke-dashoffset",d))}for(var p=0;p<Nd.length;p++){var g=Nd[p];if(e[g]!==qs[g]){var m=e[g]||qs[g];m&&t(HB[p],m)}}}}var qw="http://www.w3.org/2000/svg",Zw="http://www.w3.org/1999/xlink",WB="http://www.w3.org/2000/xmlns/",YB="http://www.w3.org/XML/1998/namespace",Kw="ecmeta_";function jw(t){return document.createElementNS(qw,t)}function ze(t,e,r,n,i){return{tag:t,attrs:r||{},children:n,text:i,key:e}}function $B(t,e){var r=[];if(e)for(var n in e){var i=e[n],a=n;i!==!1&&(i!==!0&&i!=null&&(a+='="'+i+'"'),r.push(a))}return"<"+t+" "+r.join(" ")+">"}function XB(t){return"</"+t+">"}function Bd(t,e){e=e||{};var r=e.newline?`
16
+ `:"<br/>",m=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],h,null,v)})},e.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=ue(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,v=u.getData(c),h=this._renderMode,d=r.positionDefault,p=Yo([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(f,c),y=new Wh;m.marker=y.makeTooltipMarker("item",ri(m.color),h);var _=F0(u.formatTooltip(f,!1,c)),S=p.get("order"),b=p.get("valueFormatter"),w=_.frag,T=w?Z0(b?z({valueFormatter:b},w):w,y,h,S,a.get("useUTC"),p.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,T,m,C,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=ue(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(q(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=oe(l),l.content=it(l.content));var c=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&c.push(v),c.push({formatter:l.content});var h=r.positionDefault,d=Yo(c,this._tooltipModel,h?{position:h}:null),p=d.get("content"),g=Math.random()+"",m=new Wh;this._showOrMove(d,function(){var y=oe(d.get("formatterParams")||{});this._showTooltipContent(d,p,y,g,r.offsetX,r.offsetY,r.position,n,m)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var v=r.get("formatter");l=l||r.get("position");var h=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),p=d.color;if(v)if(q(v)){var g=r.ecModel.get("useUTC"),m=W(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=v,y&&(h=Nl(m.axisValue,h,g)),h=O0(h,i,!0)}else if(ee(v)){var _=de(function(S,b){S===this._ticket&&(c.setContent(b,f,r,p,l),this._updatePosition(r,l,o,s,c,i,u))},this);this._ticket=a,h=v(i,a,_)}else h=v;c.setContent(h,f,r,p,l),c.show(r,p),this._updatePosition(r,l,o,s,c,i,u)}},e.prototype._getNearestPoint=function(r,n,i,a,o){if(i==="axis"||W(n))return{color:a||o};if(!W(n))return{color:a||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),v=r.get("align"),h=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),ee(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),W(n))i=Q(n[0],u),a=Q(n[1],f);else if(j(n)){var p=n;p.width=c[0],p.height=c[1];var g=Vr(p,{width:u,height:f});i=g.x,a=g.y,v=null,h=null}else if(q(n)&&l){var m=yB(n,d,c,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=gB(i,a,o,u,f,v?null:20,h?null:20);i=m[0],a=m[1]}if(v&&(i-=zw(v)?c[0]/2:v==="right"?c[0]:0),h&&(a-=zw(h)?c[1]/2:h==="bottom"?c[1]:0),Lw(r)){var m=mB(i,a,o,u,f);i=m[0],a=m[1]}o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&I(i,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&I(u,function(v,h){var d=c[h]||{},p=v.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===g.length,o&&I(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&I(v.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],S=a[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){ie.node||!n.getDom()||(Sv(this,"_updatePosition"),this._tooltipContent.dispose(),Cd("itemTooltip",n),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(bt);function Yo(t,e,r){var n=e.ecModel,i;r?(i=new xe(r,n,n),i=new xe(e.option,i,n)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof xe&&(o=o.get("tooltip",!0)),q(o)&&(o={formatter:o}),o&&(i=new xe(o,i,n)))}return i}function Fw(t,e){return t.dispatchAction||de(e.dispatchAction,e)}function gB(t,e,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(t+l+a+2>n?t-=l+a:t+=a),o!=null&&(e+u+o>i?e-=u+o:e+=o),[t,e]}function mB(t,e,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function yB(t,e,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,f=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+f/2-a/2;break;case"top":s=e.x+u/2-i/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+f+o;break;case"left":s=e.x-i-o,l=e.y+f/2-a/2;break;case"right":s=e.x+u+o,l=e.y+f/2-a/2}return[s,l]}function zw(t){return t==="center"||t==="middle"}function _B(t,e,r){var n=Ac(t).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Qa(e,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ue(u).tooltipConfig;if(f&&f.name===t.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function SB(t){rr(Iw),t.registerComponentModel(rB),t.registerComponentView(pB),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},We),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},We)}var bB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:Y.size.m,backgroundColor:Y.color.transparent,borderColor:Y.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:Y.color.primary},subtextStyle:{fontSize:12,color:Y.color.quaternary}},e})(ye),wB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=Z(r.get("textBaseline"),r.get("textVerticalAlign")),f=new Me({style:Ot(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),v=r.get("subtext"),h=new Me({style:Ot(s,{text:v,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),p=r.get("sublink"),g=r.get("triggerEvent",!0);f.silent=!d&&!g,h.silent=!p&&!g,d&&f.on("click",function(){N0(d,"_"+r.get("target"))}),p&&h.on("click",function(){N0(p,"_"+r.get("subtarget"))}),ue(f).eventData=ue(h).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),v&&a.add(h);var m=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=Ji(r,i),S=Vr(y,_.refContainer,r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),a.x=S.x,a.y=S.y,a.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),h.setStyle(b),m=a.getBoundingRect();var w=S.margin,T=r.getItemStyle(["color","opacity"]);T.fill=r.get("backgroundColor");var C=new De({shape:{x:m.x-w[3],y:m.y-w[0],width:m.width+w[1]+w[3],height:m.height+w[0]+w[2],r:r.get("borderRadius")},style:T,subPixelOptimize:!0,silent:!0});a.add(C)}},e.type="title",e})(bt);function TB(t){t.registerComponentModel(bB),t.registerComponentView(wB)}var xB=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},Dd=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},e.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),W(n)&&I(n,function(a,o){q(a)&&(a={type:a}),n[o]=be(a,xB(i,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,v=c.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(v)),v.length?n=n.concat(v):f=!0}else f=!0;f&&xc(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=te(),s=$(a,function(l){return(q(l)||me(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new xe(l,this,this.ecModel))},this);this._data=Ue(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;I(a,function(o){n[o.get("name")]=!1})}n[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,n=this.option.selected;I(r,function(i){n[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;I(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},e.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&fe(this._availableNames,r)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:Y.size.m,align:"auto",backgroundColor:Y.color.transparent,borderColor:Y.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:Y.color.disabled,inactiveBorderColor:Y.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:Y.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:Y.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:Y.color.tertiary,borderWidth:1,borderColor:Y.color.border},emphasis:{selectorLabel:{show:!0,color:Y.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(ye),ga=Oe,Md=I,Fu=Ce,Vw=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new Fu),this.group.add(this._selectorGroup=new Fu),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var f=Ji(r,i).refContainer,c=r.getBoxLayoutParams(),v=r.get("padding"),h=Vr(c,f,v),d=this.layoutInner(r,o,h,a,l,u),p=Vr(le({width:d.width,height:d.height},c),f,v);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=tB(d,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),f=te(),c=n.get("selectedMode"),v=n.get("triggerEvent"),h=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),Md(n.getData(),function(d,p){var g=this,m=d.get("name");if(!this.newlineDisabled&&(m===""||m===`
17
+ `)){var y=new Fu;y.newline=!0,u.add(y);return}var _=i.getSeriesByName(m)[0];if(!f.get(m))if(_){var S=_.getData(),b=S.getVisual("legendLineStyle")||{},w=S.getVisual("legendIcon"),T=S.getVisual("style"),C=this._createItem(_,m,p,d,n,r,b,T,w,c,a);C.on("click",ga(Gw,m,null,a,h)).on("mouseover",ga(Id,_.name,null,a,h)).on("mouseout",ga(Ld,_.name,null,a,h)),i.ssr&&C.eachChild(function(D){var x=ue(D);x.seriesIndex=_.seriesIndex,x.dataIndex=p,x.ssrType="legend"}),v&&C.eachChild(function(D){g.packEventData(D,n,_,p,m)}),f.set(m,!0)}else i.eachRawSeries(function(D){var x=this;if(!f.get(m)&&D.legendVisualProvider){var A=D.legendVisualProvider;if(!A.containName(m))return;var L=A.indexOfName(m),M=A.getItemVisual(L,"style"),P=A.getItemVisual(L,"legendIcon"),E=Yt(M.fill);E&&E[3]===0&&(E[3]=.2,M=z(z({},M),{fill:Fa(E,"rgba")}));var k=this._createItem(D,m,p,d,n,r,{},M,P,c,a);k.on("click",ga(Gw,null,m,a,h)).on("mouseover",ga(Id,null,m,a,h)).on("mouseout",ga(Ld,null,m,a,h)),i.ssr&&k.eachChild(function(O){var R=ue(O);R.seriesIndex=D.seriesIndex,R.dataIndex=p,R.ssrType="legend"}),v&&k.eachChild(function(O){x.packEventData(O,n,D,p,m)}),f.set(m,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},e.prototype.packEventData=function(r,n,i,a,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:a,value:o,seriesIndex:i.seriesIndex};ue(r).eventData=s},e.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();Md(r,function(u){var f=u.type,c=new Me({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(c);var v=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);Kn(c,{normal:v,emphasis:h},{defaultText:u.title}),Gc(c)})},e.prototype._createItem=function(r,n,i,a,o,s,l,u,f,c,v){var h=r.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=CB(f,a,l,u,h,g,v),b=new Fu,w=a.getModel("textStyle");if(ee(r.getLegendIcon)&&(!_||_==="inherit"))b.add(r.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var T=_==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;b.add(AB({itemWidth:d,itemHeight:p,icon:f,iconRotate:T,itemStyle:S.itemStyle,symbolKeepAspect:y}))}var C=s==="left"?d+5:-5,D=s,x=o.get("formatter"),A=n;q(x)&&x?A=x.replace("{name}",n??""):ee(x)&&(A=x(n));var L=g?w.getTextColor():a.get("inactiveColor");b.add(new Me({style:Ot(w,{text:A,x:C,y:p/2,fill:L,align:D,verticalAlign:"middle"},{inheritColor:L})}));var M=new De({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=a.getModel("tooltip");return P.get("show")&&ml({el:M,componentModel:o,itemName:n,itemTooltipOption:P.option}),b.add(M),b.eachChild(function(E){E.silent=!0}),M.silent=!c,this.getContentGroup().add(b),Gc(b),b.__legendDataIndex=i,b},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();mo(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){mo("horizontal",u,r.get("selectorItemGap",!0));var v=u.getBoundingRect(),h=[-v.x,-v.y],d=r.get("selectorButtonGap",!0),p=r.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?h[p]+=f[g]+d:c[p]+=v[g]+d,h[1-p]+=f[m]/2-v[m]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=f[g]+d+v[g],_[m]=Math.max(f[m],v[m]),_[y]=Math.min(0,v[y]+h[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(bt);function CB(t,e,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),Md(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=t.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:jv(c,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var v=e.getModel("lineStyle"),h=v.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!a){var d=e.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=v.get("inactiveColor"),h.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function AB(t){var e=t.icon||"roundRect",r=Ar(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=Y.color.neutral00,r.style.lineWidth=2),r}function Gw(t,e,r,n){Ld(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),Id(t,e,r,n)}function Id(t,e,r,n){r.usingTHL()||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function Ld(t,e,r,n){r.usingTHL()||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function $o(t,e,r){var n=t==="allSelect"||t==="inverseSelect",i={},a=[];r.eachComponent({mainType:"legend",query:e},function(s){n?s[t]():s[t](e.name),Hw(s,i),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){I(i,function(l,u){s[l?"select":"unSelect"](u)}),Hw(s,o)}),n?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function Hw(t,e){var r=e||{};return I(t.getData(),function(n){var i=n.get("name");if(!(i===`
18
+ `||i==="")){var a=t.isSelected(i);tt(r,i)?r[i]=r[i]&&a:r[i]=a}}),r}function DB(t){t.registerAction("legendToggleSelect","legendselectchanged",Oe($o,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Oe($o,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Oe($o,"inverseSelect")),t.registerAction("legendSelect","legendselected",Oe($o,"select")),t.registerAction("legendUnSelect","legendunselected",Oe($o,"unSelect"))}var MB=Lc(IB);function IB(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var n=0;n<e.length;n++)if(!e[n].isSelected(r.name))return!1;return!0})}function Uw(t){t.registerComponentModel(Dd),t.registerComponentView(Vw),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,MB),t.registerSubTypeDefaulter("legend",function(){return"plain"}),DB(t)}var LB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,n,i){var a=So(r);t.prototype.init.call(this,r,n,i),Ww(this,r,a)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),Ww(this,this.option,r)},e.type="legend.scroll",e.defaultOption=m0(Dd.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:Y.color.accent50,pageIconInactiveColor:Y.color.accent10,pageIconSize:15,pageTextStyle:{color:Y.color.tertiary},animationDurationUpdate:800}),e})(Dd);function Ww(t,e,r){var n=t.getOrient(),i=[1,1];i[n.index]=0,fn(e,r,{type:"box",ignoreSize:!!i})}var Yw=Ce,Pd=["width","height"],Ed=["x","y"],PB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new Yw),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Yw)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;t.prototype.renderInner.call(this,r,n,i,a,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),v=W(c)?c:[c,c];d("pagePrev",0);var h=n.getModel("pageTextStyle");f.add(new Me({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var m=p+"DataIndex",y=rh(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:de(u._pageGo,u,m,n,a)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});y.name=p,f.add(y)}},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=Pd[u],c=Ed[u],v=Pd[1-u],h=Ed[1-u];o&&mo("horizontal",l,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=oe(i);o&&(m[f]=i[f]-p[f]-d);var y=this._layoutContentAndController(r,a,m,u,f,v,h,c);if(o){if(s==="end")g[u]+=y[f]+d;else{var _=p[f]+d;g[u]-=_,y[c]-=_}y[f]+=p[f]+d,g[1-u]+=y[h]+y[v]/2-p[v]/2,y[v]=Math.max(y[v],p[v]),y[h]=Math.min(y[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,v=this._controllerGroup;mo(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),mo("horizontal",v,r.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),d=v.getBoundingRect(),p=this._showController=h[o]>i[o],g=[-h.x,-h.y];n||(g[a]=f[u]);var m=[0,0],y=[-d.x,-d.y],_=Z(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var S=r.get("pageButtonPosition",!0);S==="end"?y[a]+=i[o]-d[o]:m[a]+=d[o]+_}y[1-a]+=h[s]/2-d[s]/2,f.setPosition(g),c.setPosition(m),v.setPosition(y);var b={x:0,y:0};if(b[o]=p?i[o]:h[o],b[s]=Math.max(h[s],d[s]),b[l]=Math.min(0,d[l]+y[1-a]),c.__rectSize=i[o],p){var w={x:0,y:0};w[o]=Math.max(i[o]-d[o]-_,0),w[s]=b[s],c.setClipPath(new De({shape:w})),c.__rectSize=w[o]}else v.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(r);return T.pageIndex!=null&&Ie(f,{x:T.contentPosition[0],y:T.contentPosition[1]},p?r:null),this._updatePageInfoView(r,T),b},e.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;I(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",v=n[c]!=null,h=i.childOfName(f);h&&(h.setStyle("fill",v?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=v?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",q(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=Pd[o],l=Ed[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],v=f.length,h=v?1:0,d={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=S(c);d.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,_=null;g<=v;++g)_=S(f[g]),(!_&&y.e>m.s+a||_&&!b(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=_;for(var g=u-1,m=p,y=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(y,_.s))&&m.i<y.i&&(y=m,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=m.i),++d.pageCount,++d.pageIndex),m=_;return d;function S(w){if(w){var T=w.getBoundingRect(),C=T[l]+w[l];return{s:C,e:C+T[s],i:w.__legendDataIndex}}}function b(w,T){return w.e>=T&&w.s<=T+a}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},e.type="legend.scroll",e})(Vw);function EB(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})})}function kB(t){rr(Uw),t.registerComponentModel(LB),t.registerComponentView(PB),EB(t)}function RB(t){rr(Uw),rr(kB)}var OB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.prototype.init=function(r,n,i){t.prototype.init.call(this,r,n,i),this._sourceManager=new G0(this),H0(this)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),H0(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:qt},e})(ye),NB=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.type="dataset",e})(bt);function BB(t){t.registerComponentModel(OB),t.registerComponentView(NB)}var kd=Math.sin,Rd=Math.cos,$w=Math.PI,hi=Math.PI*2,FB=180/$w,Xw=(function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,r){this._add("M",e,r)},t.prototype.lineTo=function(e,r){this._add("L",e,r)},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){this._add("C",e,r,n,i,a,o)},t.prototype.quadraticCurveTo=function(e,r,n,i){this._add("Q",e,r,n,i)},t.prototype.arc=function(e,r,n,i,a,o){this.ellipse(e,r,n,n,0,i,a,o)},t.prototype.ellipse=function(e,r,n,i,a,o,s,l){var u=s-o,f=!l,c=Math.abs(u),v=Qr(c-hi)||(f?u>=hi:-u>=hi),h=u>0?u%hi:u%hi+hi,d=!1;v?d=!0:Qr(c)?d=!1:d=h>=$w==!!f;var p=e+n*Rd(o),g=r+i*kd(o);this._start&&this._add("M",p,g);var m=Math.round(a*FB);if(v){var y=1/this._p,_=(f?1:-1)*(hi-y);this._add("A",n,i,m,1,+f,e+n*Rd(o+_),r+i*kd(o+_)),y>.01&&this._add("A",n,i,m,0,+f,p,g)}else{var S=e+n*Rd(s),b=r+i*kd(s);this._add("A",n,i,m,+d,+f,S,b)}},t.prototype.rect=function(e,r,n,i){this._add("M",e,r),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,r,n,i,a,o,s,l,u){for(var f=[],c=this._p,v=1;v<arguments.length;v++){var h=arguments[v];if(isNaN(h)){this._invalid=!0;return}f.push(Math.round(h*c)/c)}this._d.push(e+f.join(" ")),this._start=e==="Z"},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t})(),Od="none",zB=Math.round;function VB(t){var e=t.fill;return e!=null&&e!==Od}function GB(t){var e=t.stroke;return e!=null&&e!==Od}var Nd=["lineCap","miterLimit","lineJoin"],HB=$(Nd,function(t){return"stroke-"+t.toLowerCase()});function UB(t,e,r,n){var i=e.opacity==null?1:e.opacity;if(r instanceof Mt){t("opacity",i);return}if(VB(e)){var a=za(e.fill);t("fill",a.color);var o=e.fillOpacity!=null?e.fillOpacity*a.opacity*i:a.opacity*i;o<1&&t("fill-opacity",o)}else t("fill",Od);if(GB(e)){var s=za(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?r.getLineScale():1,u=l?(e.lineWidth||0)/l:0,f=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*i:s.opacity*i,c=e.strokeFirst;if(u!==1&&t("stroke-width",u),c&&t("paint-order",c?"stroke":"fill"),f<1&&t("stroke-opacity",f),e.lineDash){var v=Xv(r),h=v[0],d=v[1];h&&(d=zB(d||0),t("stroke-dasharray",h.join(",")),(d||n)&&t("stroke-dashoffset",d))}for(var p=0;p<Nd.length;p++){var g=Nd[p];if(e[g]!==qs[g]){var m=e[g]||qs[g];m&&t(HB[p],m)}}}}var qw="http://www.w3.org/2000/svg",Zw="http://www.w3.org/1999/xlink",WB="http://www.w3.org/2000/xmlns/",YB="http://www.w3.org/XML/1998/namespace",Kw="ecmeta_";function jw(t){return document.createElementNS(qw,t)}function ze(t,e,r,n,i){return{tag:t,attrs:r||{},children:n,text:i,key:e}}function $B(t,e){var r=[];if(e)for(var n in e){var i=e[n],a=n;i!==!1&&(i!==!0&&i!=null&&(a+='="'+i+'"'),r.push(a))}return"<"+t+" "+r.join(" ")+">"}function XB(t){return"</"+t+">"}function Bd(t,e){e=e||{};var r=e.newline?`
19
19
  `:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return $B(o,s)+(o!=="style"?it(l):l||"")+(a?""+r+$(a,function(u){return n(u)}).join(r)+r:"")+XB(o)}return n(t)}function qB(t,e,r){r=r||{};var n=r.newline?`
20
- `:"",i=" {"+n,a=n+"}",o=$(ce(t),function(l){return l+i+$(ce(t[l]),function(u){return u+":"+t[l][u]+";"}).join(n)+a}).join(n),s=$(ce(e),function(l){return"@keyframes "+l+i+$(ce(e[l]),function(u){return u+i+$(ce(e[l][u]),function(f){var c=e[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function Fd(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Qw(t,e,r,n){return ze("svg","root",{width:t,height:e,xmlns:qw,"xmlns:xlink":Zw,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+t+" "+e:!1},r)}var ZB=0;function Jw(){return ZB++}var eT={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},vi="transform-origin";function KB(t,e,r){var n=z({},t.shape);z(n,e),t.buildPath(r,n);var i=new Xw;return i.reset(Eg(t)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function jB(t,e){var r=e.originX,n=e.originY;(r||n)&&(t[vi]=r+"px "+n+"px")}var QB={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function tT(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function JB(t,e,r){var n=t.shape.paths,i={},a,o;if(I(n,function(l){var u=Fd(r.zrId);u.animation=!0,zu(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,v=ce(f),h=v.length;if(h){o=v[h-1];var d=f[o];for(var p in d){var g=d[p];i[p]=i[p]||{d:""},i[p].d+=g.d||""}for(var m in c){var y=c[m].animation;y.indexOf(o)>=0&&(a=y)}}}),!!a){e.d=!1;var s=tT(i,r);return a.replace(o,s)}}function rT(t){return q(t)?eT[t]?"cubic-bezier("+eT[t]+")":Bf(t)?t:"":""}function zu(t,e,r,n){var i=t.animators,a=i.length,o=[];if(t instanceof uy){var s=JB(t,e,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var f=i[u],c=[f.getMaxTime()/1e3+"s"],v=rT(f.getClip().easing),h=f.getDelay();v?c.push(v):c.push("linear"),h&&c.push(h/1e3+"s"),f.getLoop()&&c.push("infinite");var d=c.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(f)}function p(y){var _=y[1],S=_.length,b={},w={},T={},C="animation-timing-function";function D(Ae,he,Te){for(var J=Ae.getTracks(),se=Ae.getMaxTime(),pt=0;pt<J.length;pt++){var Re=J[pt];if(Re.needsAnimate()){var ir=Re.keyframes,gt=Re.propName;if(Te&&(gt=Te(gt)),gt)for(var ar=0;ar<ir.length;ar++){var _a=ir[ar],or=Math.round(_a.time/se*100)+"%",Xu=rT(_a.easing),Sa=_a.rawValue;(q(Sa)||me(Sa))&&(he[or]=he[or]||{},he[or][gt]=_a.rawValue,Xu&&(he[or][C]=Xu))}}}}for(var x=0;x<S;x++){var A=_[x],L=A.targetName;L?L==="shape"&&D(A,w):!n&&D(A,b)}for(var M in b){var P={};Na(P,t),z(P,b[M]);var E=kg(P),k=b[M][C];T[M]=E?{transform:E}:{},jB(T[M],P),k&&(T[M][C]=k)}var O,R=!0;for(var M in w){T[M]=T[M]||{};var N=!O,k=w[M][C];N&&(O=new tn);var F=O.len();O.reset(),T[M].d=KB(t,w[M],O);var B=O.len();if(!N&&F!==B){R=!1;break}k&&(T[M][C]=k)}if(!R)for(var M in T)delete T[M].d;if(!n)for(var x=0;x<S;x++){var A=_[x],L=A.targetName;L==="style"&&D(A,T,function(J){return QB[J]})}for(var V=ce(T),X=!0,H,x=1;x<V.length;x++){var K=V[x-1],ae=V[x];if(T[K][vi]!==T[ae][vi]){X=!1;break}H=T[K][vi]}if(X&&H){for(var M in T)T[M][vi]&&delete T[M][vi];e[vi]=H}if(Ue(V,function(Ae){return ce(T[Ae]).length>0}).length){var ke=tT(T,r);return ke+" "+y[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var m=r.zrId+"-cls-"+Jw();r.cssNodes["."+m]={animation:o.join(",")},e.class=m}}function eF(t,e,r){if(!t.ignore)if(t.isSilent()){var n={"pointer-events":"none"};nT(n,e,r)}else{var i=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},a=i.fill;if(!a){var o=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0&&s||o;l&&(a=Wf(l))}var u=i.lineWidth;if(u){var f=!i.strokeNoScale&&t.transform?t.transform[0]:1;u=u/f}var n={cursor:"pointer"};a&&(n.fill=a),i.stroke&&(n.stroke=i.stroke),u&&(n["stroke-width"]=u),nT(n,e,r)}}function nT(t,e,r,n){var i=JSON.stringify(t),a=r.cssStyleCache[i];a||(a=r.zrId+"-cls-"+Jw(),r.cssStyleCache[i]=a,r.cssNodes["."+a+":hover"]=t),e.class=e.class?e.class+" "+a:a}var Xo=Math.round;function iT(t){return t&&q(t.src)}function aT(t){return t&&ee(t.toDataURL)}function zd(t,e,r,n){UB(function(i,a){var o=i==="fill"||i==="stroke";o&&Pg(a)?cT(e,t,i,n):o&&$f(a)?hT(r,t,i,n):t[i]=a,o&&n.ssr&&a==="none"&&(t["pointer-events"]="visible")},e,r,!1),sF(r,t,n)}function Gd(t,e){var r=Nk(e);r&&(r.each(function(n,i){n!=null&&(t[(Kw+i).toLowerCase()]=n+"")}),e.isSilent()&&(t[Kw+"silent"]="true"))}function oT(t){return Qr(t[0]-1)&&Qr(t[1])&&Qr(t[2])&&Qr(t[3]-1)}function tF(t){return Qr(t[4])&&Qr(t[5])}function Vd(t,e,r){if(e&&!(tF(e)&&oT(e))){var n=1e4;t.transform=oT(e)?"translate("+Xo(e[4]*n)/n+" "+Xo(e[5]*n)/n+")":$C(e)}}function sT(t,e,r){for(var n=t.points,i=[],a=0;a<n.length;a++)i.push(Xo(n[a][0]*r)/r),i.push(Xo(n[a][1]*r)/r);e.points=i.join(" ")}function lT(t){return!t.smooth}function rF(t){var e=$(t,function(r){return typeof r=="string"?[r,r]:r});return function(r,n,i){for(var a=0;a<e.length;a++){var o=e[a],s=r[o[0]];s!=null&&(n[o[1]]=Xo(s*i)/i)}}}var nF={circle:[rF(["cx","cy","r"])],polyline:[sT,lT],polygon:[sT,lT]};function iF(t){for(var e=t.animators,r=0;r<e.length;r++)if(e[r].targetName==="shape")return!0;return!1}function uT(t,e){var r=t.style,n=t.shape,i=nF[t.type],a={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&Eg(t)||4;if(i&&!e.willUpdate&&!(i[1]&&!i[1](n))&&!(o&&iF(t))&&!(l<1)){s=t.type;var f=Math.pow(10,u);i[0](n,a,f)}else{var c=!t.path||t.shapeChanged();t.path||t.createPathProxy();var v=t.path;c&&(v.beginPath(),t.buildPath(v,t.shape),t.pathUpdated());var h=v.getVersion(),d=t,p=d.__svgPathBuilder;(d.__svgPathVersion!==h||!p||l!==d.__svgPathStrokePercent)&&(p||(p=d.__svgPathBuilder=new Xw),p.reset(u),v.rebuildPath(p,l),p.generateStr(),d.__svgPathVersion=h,d.__svgPathStrokePercent=l),a.d=p.getStr()}return Vd(a,t.transform),zd(a,r,t,e),Gd(a,t),e.animation&&zu(t,a,e),e.emphasis&&eF(t,a,e),ze(s,t.id+"",a)}function aF(t,e){var r=t.style,n=r.image;if(n&&!q(n)&&(iT(n)?n=n.src:aT(n)&&(n=n.toDataURL())),!!n){var i=r.x||0,a=r.y||0,o=r.width,s=r.height,l={href:n,width:o,height:s};return i&&(l.x=i),a&&(l.y=a),Vd(l,t.transform),zd(l,r,t,e),Gd(l,t),e.animation&&zu(t,l,e),ze("image",t.id+"",l)}}function oF(t,e){var r=t.style,n=r.text;if(n!=null&&(n+=""),!(!n||isNaN(r.x)||isNaN(r.y))){var i=r.font||Pr,a=r.x||0,o=qC(r.y||0,Ra(i),r.textBaseline),s=XC[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(nm(r)){var u="",f=r.fontStyle,c=tm(r.fontSize);if(!parseFloat(c))return;var v=r.fontFamily||Bp,h=r.fontWeight;u+="font-size:"+c+";font-family:"+v+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+i;return n.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),Vd(l,t.transform),zd(l,r,t,e),Gd(l,t),e.animation&&zu(t,l,e),ze("text",t.id+"",l,void 0,n)}}function fT(t,e){if(t instanceof pe)return uT(t,e);if(t instanceof Mt)return aF(t,e);if(t instanceof $a)return oF(t,e)}function sF(t,e,r){var n=t.style;if(ZC(n)){var i=KC(t),a=r.shadowCache,o=a[i];if(!o){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=n.shadowOffsetX||0,c=n.shadowOffsetY||0,v=n.shadowBlur,h=za(n.shadowColor),d=h.opacity,p=h.color,g=v/2/l,m=v/2/u,y=g+" "+m;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=ze("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[ze("feDropShadow","",{dx:f/l,dy:c/u,stdDeviation:y,"flood-color":p,"flood-opacity":d})]),a[i]=o}e.filter=Es(o)}}function cT(t,e,r,n){var i=t[r],a,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(Ig(i))a="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(Lg(i))a="radialGradient",o.cx=Z(i.x,.5),o.cy=Z(i.y,.5),o.r=Z(i.r,.5);else return;for(var s=i.colorStops,l=[],u=0,f=s.length;u<f;++u){var c=Yf(s[u].offset)*100+"%",v=s[u].color,h=za(v),d=h.color,p=h.opacity,g={offset:c};g["stop-color"]=d,p<1&&(g["stop-opacity"]=p),l.push(ze("stop",u+"",g))}var m=ze(a,"",o,l),y=Bd(m),_=n.gradientCache,S=_[y];S||(S=n.zrId+"-g"+n.gradientIdx++,_[y]=S,o.id=S,n.defs[S]=ze(a,S,o,l)),e[r]=Es(S)}function hT(t,e,r,n){var i=t.style[r],a=t.getBoundingRect(),o={},s=i.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",c;if(Mg(i)){var v=i.imageWidth,h=i.imageHeight,d=void 0,p=i.image;if(q(p)?d=p:iT(p)?d=p.src:aT(p)&&(d=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Wt(v,g),Wt(h,g)}else if(v==null||h==null){var m=function(x,A){if(x){var L=x.elm,M=v||A.width,P=h||A.height;x.tag==="pattern"&&(u?(P=1,M/=a.width):f&&(M=1,P/=a.height)),x.attrs.width=M,x.attrs.height=P,L&&(L.setAttribute("width",M),L.setAttribute("height",P))}},y=mf(d,null,t,function(x){l||m(w,x),m(c,x)});y&&y.width&&y.height&&(v=v||y.width,h=h||y.height)}c=ze("image","img",{href:d,width:v,height:h}),o.width=v,o.height=h}else i.svgElement&&(c=oe(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(c){var _,S;l?_=S=1:u?(S=1,_=o.width/a.width):f?(_=1,S=o.height/a.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var b=kg(i);b&&(o.patternTransform=b);var w=ze("pattern","",o,[c]),T=Bd(w),C=n.patternCache,D=C[T];D||(D=n.zrId+"-p"+n.patternIdx++,C[T]=D,o.id=D,w=n.defs[D]=ze("pattern",D,o,[c])),e[r]=Es(D)}}function lF(t,e,r){var n=r.clipPathCache,i=r.defs,a=n[t.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};n[t.id]=a,i[a]=ze("clipPath",a,o,[uT(t,r)])}e["clip-path"]=Es(a)}function vT(t){return document.createTextNode(t)}function di(t,e,r){t.insertBefore(e,r)}function dT(t,e){t.removeChild(e)}function pT(t,e){t.appendChild(e)}function gT(t){return t.parentNode}function mT(t){return t.nextSibling}function Hd(t,e){t.textContent=e}var yT=58,uF=120,fF=ze("","");function Ud(t){return t===void 0}function Ir(t){return t!==void 0}function cF(t,e,r){for(var n={},i=e;i<=r;++i){var a=t[i].key;a!==void 0&&(n[a]=i)}return n}function qo(t,e){var r=t.key===e.key,n=t.tag===e.tag;return n&&r}function Zo(t){var e,r=t.children,n=t.tag;if(Ir(n)){var i=t.elm=jw(n);if(Wd(fF,t),W(r))for(e=0;e<r.length;++e){var a=r[e];a!=null&&pT(i,Zo(a))}else Ir(t.text)&&!j(t.text)&&pT(i,vT(t.text))}else t.elm=vT(t.text);return t.elm}function _T(t,e,r,n,i){for(;n<=i;++n){var a=r[n];a!=null&&di(t,Zo(a),e)}}function Gu(t,e,r,n){for(;r<=n;++r){var i=e[r];if(i!=null)if(Ir(i.tag)){var a=gT(i.elm);dT(a,i.elm)}else dT(t,i.elm)}}function Wd(t,e){var r,n=e.elm,i=t&&t.attrs||{},a=e.attrs||{};if(i!==a){for(r in a){var o=a[r],s=i[r];s!==o&&(o===!0?n.setAttribute(r,""):o===!1?n.removeAttribute(r):r==="style"?n.style.cssText=o:r.charCodeAt(0)!==uF?n.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?n.setAttributeNS(WB,r,o):r.charCodeAt(3)===yT?n.setAttributeNS(YB,r,o):r.charCodeAt(5)===yT?n.setAttributeNS(Zw,r,o):n.setAttribute(r,o))}for(r in i)r in a||n.removeAttribute(r)}}function hF(t,e,r){for(var n=0,i=0,a=e.length-1,o=e[0],s=e[a],l=r.length-1,u=r[0],f=r[l],c,v,h,d;n<=a&&i<=l;)o==null?o=e[++n]:s==null?s=e[--a]:u==null?u=r[++i]:f==null?f=r[--l]:qo(o,u)?(ma(o,u),o=e[++n],u=r[++i]):qo(s,f)?(ma(s,f),s=e[--a],f=r[--l]):qo(o,f)?(ma(o,f),di(t,o.elm,mT(s.elm)),o=e[++n],f=r[--l]):qo(s,u)?(ma(s,u),di(t,s.elm,o.elm),s=e[--a],u=r[++i]):(Ud(c)&&(c=cF(e,n,a)),v=c[u.key],Ud(v)?di(t,Zo(u),o.elm):(h=e[v],h.tag!==u.tag?di(t,Zo(u),o.elm):(ma(h,u),e[v]=void 0,di(t,h.elm,o.elm))),u=r[++i]);(n<=a||i<=l)&&(n>a?(d=r[l+1]==null?null:r[l+1].elm,_T(t,d,r,i,l)):Gu(t,e,n,a))}function ma(t,e){var r=e.elm=t.elm,n=t.children,i=e.children;t!==e&&(Wd(t,e),Ud(e.text)?Ir(n)&&Ir(i)?n!==i&&hF(r,n,i):Ir(i)?(Ir(t.text)&&Hd(r,""),_T(r,null,i,0,i.length-1)):Ir(n)?Gu(r,n,0,n.length-1):Ir(t.text)&&Hd(r,""):t.text!==e.text&&(Ir(n)&&Gu(r,n,0,n.length-1),Hd(r,e.text)))}function vF(t,e){if(qo(t,e))ma(t,e);else{var r=t.elm,n=gT(r);Zo(e),n!==null&&(di(n,e.elm,mT(r)),Gu(n,[t],0,0))}return e}var dF=0,pF=(function(){function t(e,r,n){if(this.type="svg",this.configLayer=gF(),this.storage=r,this._opts=n=z({},n),this.root=e,this._id="zr"+dF++,this._oldVNode=Qw(n.width,n.height),e&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=jw("svg");Wd(null,this._oldVNode),i.appendChild(a),e.appendChild(i)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",vF(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return fT(e,Fd(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=Fd(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress,a.emphasis=e.emphasis,a.ssr=this._opts.ssr;var o=[],s=this._bgVNode=mF(n,i,this._backgroundColor,a);s&&o.push(s);var l=e.compress?null:this._mainVNode=ze("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=$(ce(a.defs),function(v){return a.defs[v]});if(u.length&&o.push(ze("defs","defs",{},u)),e.animation){var f=qB(a.cssNodes,a.cssAnims,{newline:!0});if(f){var c=ze("style","stl",{},[],f);o.push(c)}}return Qw(n,i,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},Bd(this.renderToVNode({animation:Z(e.cssAnimation,!0),emphasis:Z(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Z(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,r,n){for(var i=e.length,a=[],o=0,s,l,u=0,f=0;f<i;f++){var c=e[f];if(!c.invisible){var v=c.__clipPaths,h=v&&v.length||0,d=l&&l.length||0,p=void 0;for(p=Math.max(h-1,d-1);p>=0&&!(v&&l&&v[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=a[o-1];for(var m=p+1;m<h;m++){var y={};lF(v[m],y,r);var _=ze("g","clip-g-"+u++,y,[]);(s?s.children:n).push(_),a[o++]=_,s=_}l=v;var S=fT(c,r);S&&(s?s.children:n).push(S)}}},t.prototype.resize=function(e,r){var n=this._opts,i=this.root,a=this._viewport;if(e!=null&&(n.width=e),r!=null&&(n.height=r),i&&a&&(a.style.display="none",e=Z1(i,0,n),r=Z1(i,1,n),a.style.display=""),this._width!==e||this._height!==r){if(this._width=e,this._height=r,a){var o=a.style;o.width=e+"px",o.height=r+"px"}if($f(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",r));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",r))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(e){var r=this.renderToString(),n="data:image/svg+xml;";return e?(r=QC(r),r&&n+"base64,"+r):n+"charset=UTF-8,"+encodeURIComponent(r)},t})();function gF(t){return function(){}}function mF(t,e,r,n){var i;if(r&&r!=="none")if(i=ze("rect","bg",{width:t,height:e,x:"0",y:"0"}),Pg(r))cT({fill:r},i.attrs,"fill",n);else if($f(r))hT({style:{fill:r},dirty:We,getBoundingRect:function(){return{width:t,height:e}}},i.attrs,"fill",n);else{var a=za(r),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}function yF(t){t.registerPainter("svg",pF)}rr([WE,t2,ok,eN,hN,DN,yN,eB,SB,RB,TB,BB,yF]);const ST=new Set;function _F(){const e=(Ta().components??[]).filter(r=>r!=null&&!ST.has(r));if(e.length!==0){rr(e);for(const r of e)ST.add(r)}}function SF(t){return Array.isArray(t)?t.map(e=>({...e})):[]}function bF(t,e){const r={...t,type:e?"value":"category"};return e?delete r.data:Array.isArray(r.data)||(r.data=["$data"]),r}function wF(t,e){const r={...t,type:e?"category":"value"};return e&&!Array.isArray(r.data)&&(r.data=["$data"]),e||delete r.data,r}function Vu(t,e){return Array.isArray(t)?t.map(r=>e({...r})):e(t&&typeof t=="object"?{...t}:{})}function Hu(t,e){const r=ur(t);if(!r)return e;const n=structuredClone(e),i=SF(n.series);if(i.length===0)return n;if(r.seriesType==="pie")return n.series=i.map(s=>({...s,type:"pie",...t==="doughnutChart"?{radius:s.radius??["40%","70%"]}:{}})),delete n.xAxis,delete n.yAxis,n;if(r.seriesType==="scatter")return n.series=i.map(s=>({...s,type:"scatter"})),n.xAxis=Vu(n.xAxis,s=>({...s,type:"value",data:void 0})),n.yAxis=Vu(n.yAxis,s=>({...s,type:"value",data:void 0})),n;if(r.seriesType==="radar")return n.series=i.map(s=>({...s,type:"radar"})),n;if(r.seriesType==="funnel")return n.series=i.map(s=>({...s,type:"funnel",sort:"descending"})),n;if(r.seriesType==="gauge")return n.series=i.map(s=>({...s,type:"gauge"})),n;const a=r.orientation==="horizontal",o=r.seriesType==="line"?"line":"bar";return n.xAxis=Vu(n.xAxis,s=>bF(s,a)),n.yAxis=Vu(n.yAxis,s=>wF(s,a)),n.series=i.map(s=>{const l={...s,type:o};return t==="areaChart"?l.areaStyle=s.areaStyle??{}:delete l.areaStyle,l}),n}const TF=96/25.4;function pi(t){const e=Number.isFinite(t)?t:0;return Math.max(1,Math.round(e*TF))}function bT(t,e,r){const n=/<svg\b[^>]*>/i.exec(t);if(!n)return t;const i=n[0],a=i.slice(4,-1),s=(/\sstyle\s*=\s*"([^"]*)"/i.exec(a)?.[1]??"").split(";").map(c=>c.trim()).filter(c=>c&&!/^(width|height|display)\s*:/i.test(c)).join(";"),l=a.replace(/\s(width|height|style|viewBox)\s*=\s*"[^"]*"/gi,"").trimEnd(),u=["display:block","width:100%","height:100%",s].filter(Boolean).join(";"),f=`<svg${l} width="100%" height="100%" viewBox="0 0 ${e} ${r}" style="${u}">`;return t.slice(0,n.index)+f+t.slice(n.index+i.length)}function Yd(t){_F();const e=Hu(t.type,t.option);if(!e||typeof e!="object"||Array.isArray(e))throw new Error("图表 option 非法:需要对象");const r=pi(t.widthMm),n=pi(t.heightMm),i=fO(null,null,{renderer:"svg",ssr:!0,width:r,height:n});try{const a=e.textStyle&&typeof e.textStyle=="object"&&!Array.isArray(e.textStyle)?e.textStyle:void 0,o={...t.fontFamily?{fontFamily:t.fontFamily}:{},...a??{}};return i.setOption({animation:!1,...e,...Object.keys(o).length>0?{textStyle:o}:{}}),bT(i.renderToSVGString(),r,n)}finally{i.dispose()}}function xF(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function $d(t){const e=t._chartOption??t.chartOption,r=`<span>${xF(String(t.title??"图表"))}</span>`;if(!e||typeof e!="object"||Array.isArray(e))return r;try{return Yd({key:String(t.key??""),type:String(t.type??""),option:e,widthMm:Number(t.widthMm??0),heightMm:Number(t.heightMm??0),fontFamily:typeof t.fontFamily=="string"?t.fontFamily:void 0})}catch{return r}}const CF="2",wT={chartOption:{kind:"object",label:"图表 option"},chartDataSource:{kind:"text",label:"数据源"},chartCategoryField:{kind:"text",label:"类目字段"},chartValueFields:{kind:"object",label:"数值字段"},chartSeriesField:{kind:"text",label:"系列拆分字段"}},AF={...wT,chartBubble:{kind:"bool",label:"气泡大小"}},Ko=zT({id:wa,version:CF,kinds:ss.map(t=>({type:t.type,label:t.label,icon:t.icon,fixedHeight:!0,requiredOptionKeys:t.requiredOptionKeys,notes:t.notes,optionMeta:t.type==="scatterChart"?AF:wT,defaultOptions:e=>Np(t.type,e),binding:{bind:(e,r)=>Lp(t.type,e,r)}})),render:{html:$d,createRenderer:()=>({render:$d})}});let Uu;function jo(t,e){const r=GT(wa);if(!t&&!e){const a=sp(Ko);return Uu=a,a}const n={...Ko,designer:t??r?.designer??Ko.designer,render:{...Ko.render,...r?.render,...e}},i=sp(n);return Uu=i,i}function DF(t){return jo(t)}function MF(t){return jo(void 0,{executorBundle:t})}function IF(){Uu?.(),Uu=void 0}jo(),jo();const LF=Object.freeze(Object.defineProperty({__proto__:null,CHART_KINDS:Cp,CHART_KIND_DEFINITIONS:ss,CHART_PALETTES:af,CHART_PLUGIN:Ko,CHART_PLUGIN_ID:wa,bindChartData:Lp,chartFactoryDefaults:Np,configureChartPlugin:Ox,createDefaultChartOption:us,fitSvgRoot:bT,getChartKindDefinition:ur,getChartPalettes:Rp,getChartPluginConfig:Ta,getSampleCategories:Op,mmToChartPx:pi,normalizeChartOption:Hu,registerChartDesigner:DF,registerChartExecutorBundle:MF,registerChartPlugin:jo,renderChartElement:$d,renderChartToSvg:Yd,resolveChartPanelFields:Ap,uninstallChartPlugin:IF},Symbol.toStringTag,{value:"Module"})),TT=Symbol.for("worm-print-platform.element-ui-registry.v1"),xT=globalThis;function CT(){const t=xT[TT];if(t)return t;const e={entries:new Map,listeners:new Set,nextSeq:0};return xT[TT]=e,e}function AT(){for(const t of[...CT().listeners])try{t()}catch{}}function DT(t){if(!t||typeof t!="object")throw new Error("registerElementUI: 需要 ElementUI 对象");if(!Array.isArray(t.types)||t.types.length===0)throw new Error("registerElementUI: types 必须是非空数组");for(const e of t.types)if(!e||typeof e!="string")throw new Error("registerElementUI: types 内每项必须是非空字符串");if(typeof t.renderCanvas!="function")throw new Error(`registerElementUI: ${t.types.join(",")} 缺少 renderCanvas`);if(t.renderProperty!==void 0&&typeof t.renderProperty!="function")throw new Error(`registerElementUI: ${t.types.join(",")} 的 renderProperty 必须是函数`)}function PF(t){return DT(t),t}function EF(t){DT(t);const e=CT(),r=e.nextSeq++;for(const n of t.types)e.entries.set(n,{ui:t,seq:r});return AT(),()=>{let n=!1;for(const i of t.types)e.entries.get(i)?.ui===t&&(e.entries.delete(i),n=!0);n&&AT()}}const kF=[12,20,15];function Qo(t){try{return JSON.parse(JSON.stringify(t))}catch{return t}}function RF(t,e){if(!e||typeof e!="object"||Array.isArray(e))return{};const r=Qo(e),n=ur(t),i=[...Op()],a=[...kF],o=Array.isArray(r.series)?r.series:[],s=u=>{for(const f of o)Array.isArray(f.data)&&f.data.includes("$data")&&(f.data=u(f))},l=()=>{for(const u of["xAxis","yAxis"]){const f=Array.isArray(r[u])?r[u]:r[u]?[r[u]]:[];for(const c of f)c&&Array.isArray(c.data)&&c.data.includes("$data")&&(c.data=[...i])}};switch(n?.seriesType){case"pie":s(()=>i.map((u,f)=>({name:u,value:a[f]??10})));break;case"funnel":s(()=>i.map((u,f)=>({name:u,value:a[f]??10})));break;case"scatter":s(()=>a.map(u=>[u,u+6]));break;case"radar":r.radar={...r.radar??{},indicator:i.map(u=>({name:u,max:30}))},s(()=>[{name:"示例",value:a}]);break;case"gauge":s(()=>[{value:a[0]??40,name:"数量"}]);break;default:s(()=>[...a]),l();break}return r}function OF(t,e){const r=Array.isArray(t?.color)?(t?.color).map(String):[];return e.find(i=>i.colors.every((a,o)=>a===r[o])&&r.length===i.colors.length)?.key??"default"}function ya(t){return Array.isArray(t)?t[0]&&typeof t[0]=="object"?{...t[0]}:{}:t&&typeof t=="object"?{...t}:{}}function NF(t,e,r){const n=Qo(t),i=Array.isArray(n.series)?n.series:[],a=ur(r),o=i[0]??{type:a?.seriesType==="line"?"line":"bar",data:["$data"]};return n.series=Array.from({length:Math.max(e,1)},(s,l)=>({...o,...i[l]??{},data:["$data"]})),n}const Wu=t=>Math.round(t*10)/10;function Xd(t,e){return e>0?Wu(t/e*100):0}function Yu(t,e,r){if(typeof t=="string"&&t.trim().endsWith("%")){const n=Number.parseFloat(t);if(Number.isFinite(n))return Wu(n)}return typeof t=="number"&&Number.isFinite(t)?Xd(t,e):Xd(r,e)}function MT(t,e,r){return Math.min(r,Math.max(e,t))}function Jo(t){return`${MT(Wu(t),0,100)}%`}function BF(t){const r=(Array.isArray(t.series)?t.series:[])[0];return r&&typeof r=="object"?r:{}}function IT(t,e,r){const i=BF(t&&typeof t=="object"?t:{}),a=pi(e),o=pi(r);return{top:Yu(i.top,o,ls.top),right:Yu(i.right,a,ls.right),bottom:Yu(i.bottom,o,ls.bottom),left:Yu(i.left,a,ls.left)}}function FF(t,e){const r=Qo(t),n=Array.isArray(r.series)?r.series:[];n.length===0&&n.push({type:"funnel",data:["$data"]});const i=n[0];return i.top=Jo(e.top),i.right=Jo(e.right),i.bottom=Jo(e.bottom),i.left=Jo(e.left),r.series=n,r}function zF(t,e,r){const i=ya((t&&typeof t=="object"?t:{}).radar).radius,a=Array.isArray(i)?i[i.length-1]:i,o=pi(e),s=pi(r),l=Math.min(o,s)/2;if(typeof a=="string"&&a.trim().endsWith("%")){const u=Number.parseFloat(a);if(Number.isFinite(u))return Wu(u)}return typeof a=="number"&&Number.isFinite(a)?Xd(a,l):kx}function GF(t,e){const r=Qo(t);return r.radar={...ya(r.radar),radius:Jo(MT(e,20,100))},r}const LT="width:100%;height:100%;min-width:0;min-height:0;pointer-events:none",VF=[".echarts-canvas-element{overflow:hidden}",".echarts-field-row{display:flex;gap:6px;align-items:center}",".echarts-field-row>.pd-input{flex:1;min-width:0}",".echarts-field-row>.pd-button{flex:none}"].join(""),HF=["chartOption","chartDataSource","chartCategoryField","chartValueFields","chartSeriesField","chartBubble"],UF=["图表","echarts","option","配置","数据源","类目","数值","系列","柱状","条形","折线","面积","饼","环形","散点","雷达","漏斗","仪表"],WF="数据由模板绑定阶段注入:series/xAxis 的 data 保留 `$data` 占位即可;复杂样式可在模板 JSON 中手写 chartOption。";let YF=0;function $F(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function qd(t){return t.printElementType?.type??""}function PT(t){const e=t.options.chartOption;return e&&typeof e=="object"&&!Array.isArray(e)?e:void 0}function Ee(t){const e=PT(t);return Qo(e??us(qd(t)))}function XF(t){const e=t?.options;if(!e||typeof e!="object")return!1;const r=e;return HF.some(n=>r[n]!==void 0)}function dt(t,e,r,n={}){t.update({chartOption:Hu(e,r),...n})}function $u(t){const e=t.options.chartValueFields;return Array.isArray(e)?e.map(String):[]}function qF(t){switch(t?.seriesType){case"pie":case"funnel":case"gauge":return 1;case"scatter":return 2;default:return 8}}function ZF(t,e){return t?.seriesType==="radar"?"维度字段(每个字段一个维度)":e===1?"数值字段":"数值字段(多值多系列)"}function KF(t){const e=t?.[0];return e?Object.keys(e).filter(r=>Array.isArray(e[r])):[]}function gi(t){return Array.isArray(t.series)?t.series:[]}function Zd(t,e,r){return Math.min(r,Math.max(e,t))}function Kd(t,e,r){const n=NF(Ee(t.element),r.length,e);(Array.isArray(n.series)?n.series:[]).forEach((a,o)=>{const s=r[o]?.trim();s&&(a.name=s)}),dt(t,e,n,{chartValueFields:r})}function jF(t){const e=t.element,r=qd(e),n=e.options,i=Number(n.width)||0,a=Number(n.height)||0;try{const o=RF(r,PT(e)??us(r)),s=Hu(r,o);if(!s||typeof s!="object"||Array.isArray(s))throw new Error("图表 option 非法:需要对象");const l=typeof n.fontFamily=="string"&&n.fontFamily?n.fontFamily:void 0,u=Yd({key:e.id,type:r,option:s,widthMm:i,heightMm:a,fontFamily:l});return`<div class="echarts-canvas-element" style="${LT}">${u}</div>`}catch{const o=typeof n.title=="string"&&n.title.trim()?n.title:ur(r)?.label??"图表";return`<div class="echarts-canvas-element" style="${LT}">${$F(o)}</div>`}}function Je(t,e,r){const n=document.createElement(t);return e&&(n.className=e),r!==void 0&&(n.textContent=r),n}function nr(t){const e=Je("div","pd-field");return e.appendChild(Je("span","pd-label",t)),e}function Lr(t,e){const r=Je("input","pd-input");return t.type&&(r.type=t.type),t.placeholder&&(r.placeholder=t.placeholder),t.min!==void 0&&(r.min=String(t.min)),t.max!==void 0&&(r.max=String(t.max)),t.title&&(r.title=t.title),t.list&&r.setAttribute("list",t.list),r.value=t.value,r.addEventListener("change",()=>e(r.value)),r}function jd(t,e,r){const n=nr(t);n.style.cssText="flex-direction:row;align-items:center;justify-content:space-between";const i=Je("input","pd-switch");return i.type="checkbox",i.checked=e,i.addEventListener("change",()=>r(i.checked)),n.appendChild(i),n}function QF(t){const e=t.element,r=qd(e),n=ur(r),i=Ap(r),a=h=>i.includes(h),o=e.options,s=Number(o.width)||0,l=Number(o.height)||0,u=qF(n),f=Rp(),c=Je("div","echarts-property"),v=Je("form","pd-form");if(v.addEventListener("submit",h=>h.preventDefault()),c.appendChild(v),a("dataSource")){const h=nr("数据源"),d=KF(t.data);let p;if(d.length>0){p=Je("datalist"),p.id=`echarts-ds-${++YF}`;for(const g of d){const m=Je("option");m.value=g,p.appendChild(m)}}h.appendChild(Lr({value:String(o.chartDataSource??""),placeholder:"数据集路径(留空取顶层第一个数组)",list:p?.id},g=>dt(t,r,Ee(e),{chartDataSource:g}))),p&&h.appendChild(p),v.appendChild(h)}if(a("categoryField")){const h=nr("类目字段");h.appendChild(Lr({value:String(o.chartCategoryField??""),placeholder:"如 name"},d=>dt(t,r,Ee(e),{chartCategoryField:d}))),v.appendChild(h)}if(a("valueFields")){const h=nr(ZF(n,u)),d=$u(e);if(d.forEach((p,g)=>{const m=Je("div","echarts-field-row");if(m.appendChild(Lr({value:p,placeholder:"如 value"},y=>{const _=$u(e);_[g]=y,Kd(t,r,_)})),d.length>1){const y=Je("button","pd-button small","−");y.type="button",y.title="删除该字段",y.addEventListener("click",()=>Kd(t,r,$u(e).filter((_,S)=>S!==g))),m.appendChild(y)}h.appendChild(m)}),d.length<u){const p=Je("button","pd-button small","+ 添加字段");p.type="button",p.addEventListener("click",()=>Kd(t,r,[...$u(e),""])),h.appendChild(p)}v.appendChild(h)}if(a("seriesField")){const h=nr("系列拆分字段");h.appendChild(Lr({value:String(o.chartSeriesField??""),placeholder:"可选,如 region(按值拆成多系列)"},d=>dt(t,r,Ee(e),{chartSeriesField:d}))),v.appendChild(h)}if(a("bubble")&&v.appendChild(jd("气泡大小",o.chartBubble===!0,h=>{dt(t,r,Ee(e),{chartBubble:h})})),a("title")){const h=nr("图表标题");h.appendChild(Lr({value:String(ya(Ee(e).title).text??""),placeholder:"留空不显示标题"},d=>{const p=Ee(e);p.title={...ya(p.title),text:d},dt(t,r,p)})),v.appendChild(h)}if(a("legend")){const h=ya(Ee(e).legend).show!==!1;v.appendChild(jd("显示图例",h,d=>{const p=Ee(e);p.legend={...ya(p.legend),show:d},dt(t,r,p)}))}if(a("palette")){const h=nr("配色"),d=Je("select","pd-select");for(const p of f){const g=Je("option");g.value=p.key,g.textContent=p.label,d.appendChild(g)}d.value=OF(Ee(e),f),d.addEventListener("change",()=>{const p=f.find(m=>m.key===d.value)??f[0],g=Ee(e);g.color=[...p.colors],dt(t,r,g)}),h.appendChild(d),v.appendChild(h)}if(a("stack")){const d=gi(Ee(e)).some(p=>p.stack!==void 0&&p.stack!==null&&p.stack!=="");v.appendChild(jd("堆叠显示",d,p=>{const g=Ee(e);for(const m of gi(g))p?m.stack="total":delete m.stack;dt(t,r,g)}))}if(a("innerRadius")){const h=nr("内径(%)"),d=gi(Ee(e))[0]?.radius,p=Array.isArray(d)&&Number(String(d[0]??"40%").replace("%",""))||40;h.appendChild(Lr({value:String(p),type:"number",min:0,max:90},g=>{const m=Ee(e),y=gi(m);y[0]&&(y[0].radius=[`${Zd(Number(g)||0,0,90)}%`,"70%"]),dt(t,r,m)})),v.appendChild(h)}if(a("padding")){const h=nr("内边距 上/右/下/左 (%)"),d=IT(Ee(e),s,l),p=Je("div","echarts-field-row"),g=[{side:"top",title:"上边距"},{side:"right",title:"右边距(留外置标签)"},{side:"bottom",title:"下边距"},{side:"left",title:"左边距"}];for(const{side:m,title:y}of g)p.appendChild(Lr({value:String(d[m]),type:"number",min:0,max:60,title:y},_=>{const S=Number(_),b=Number.isFinite(S)?Zd(S,0,60):Pp[m],w=Ee(e),T=IT(w,s,l);dt(t,r,FF(w,{...T,[m]:b}))}));h.appendChild(p),v.appendChild(h)}if(a("radius")){const h=nr("半径(%)");h.appendChild(Lr({value:String(zF(Ee(e),s,l)),type:"number",min:20,max:100},d=>{const p=Number(d),g=Number.isFinite(p)?Zd(p,20,100):Ep;dt(t,r,GF(Ee(e),g))})),v.appendChild(h)}if(a("gaugeRange")){const h=nr("最小 / 最大值"),d=gi(Ee(e)),p=Je("div","echarts-field-row");p.appendChild(Lr({value:String(Number(d[0]?.min??0)),type:"number"},g=>{const m=Ee(e),y=gi(m);y[0]&&(y[0].min=Number(g)||0),dt(t,r,m)})),p.appendChild(Lr({value:String(Number(d[0]?.max??100)),type:"number"},g=>{const m=Ee(e),y=gi(m);y[0]&&(y[0].max=Number(g)||100),dt(t,r,m)})),h.appendChild(p),v.appendChild(h)}return v.appendChild(Je("p","pd-hint",WF)),c}const JF=PF({types:Cp,renderCanvas:jF,renderProperty:QF,hasProperties:XF,group:"图表",searchKeywords:UF,styles:VF});let Qd;function e5(){return Qd?.(),Qd=EF(JF),Qd}e5();const t5={...LF};globalThis.WormPrintEcharts??=t5}));
20
+ `:"",i=" {"+n,a=n+"}",o=$(ce(t),function(l){return l+i+$(ce(t[l]),function(u){return u+":"+t[l][u]+";"}).join(n)+a}).join(n),s=$(ce(e),function(l){return"@keyframes "+l+i+$(ce(e[l]),function(u){return u+i+$(ce(e[l][u]),function(f){var c=e[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function Fd(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Qw(t,e,r,n){return ze("svg","root",{width:t,height:e,xmlns:qw,"xmlns:xlink":Zw,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+t+" "+e:!1},r)}var ZB=0;function Jw(){return ZB++}var eT={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},vi="transform-origin";function KB(t,e,r){var n=z({},t.shape);z(n,e),t.buildPath(r,n);var i=new Xw;return i.reset(Eg(t)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function jB(t,e){var r=e.originX,n=e.originY;(r||n)&&(t[vi]=r+"px "+n+"px")}var QB={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function tT(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function JB(t,e,r){var n=t.shape.paths,i={},a,o;if(I(n,function(l){var u=Fd(r.zrId);u.animation=!0,zu(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,v=ce(f),h=v.length;if(h){o=v[h-1];var d=f[o];for(var p in d){var g=d[p];i[p]=i[p]||{d:""},i[p].d+=g.d||""}for(var m in c){var y=c[m].animation;y.indexOf(o)>=0&&(a=y)}}}),!!a){e.d=!1;var s=tT(i,r);return a.replace(o,s)}}function rT(t){return q(t)?eT[t]?"cubic-bezier("+eT[t]+")":Bf(t)?t:"":""}function zu(t,e,r,n){var i=t.animators,a=i.length,o=[];if(t instanceof uy){var s=JB(t,e,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var f=i[u],c=[f.getMaxTime()/1e3+"s"],v=rT(f.getClip().easing),h=f.getDelay();v?c.push(v):c.push("linear"),h&&c.push(h/1e3+"s"),f.getLoop()&&c.push("infinite");var d=c.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(f)}function p(y){var _=y[1],S=_.length,b={},w={},T={},C="animation-timing-function";function D(Ae,he,Te){for(var J=Ae.getTracks(),se=Ae.getMaxTime(),pt=0;pt<J.length;pt++){var Re=J[pt];if(Re.needsAnimate()){var ir=Re.keyframes,gt=Re.propName;if(Te&&(gt=Te(gt)),gt)for(var ar=0;ar<ir.length;ar++){var _a=ir[ar],or=Math.round(_a.time/se*100)+"%",Xu=rT(_a.easing),Sa=_a.rawValue;(q(Sa)||me(Sa))&&(he[or]=he[or]||{},he[or][gt]=_a.rawValue,Xu&&(he[or][C]=Xu))}}}}for(var x=0;x<S;x++){var A=_[x],L=A.targetName;L?L==="shape"&&D(A,w):!n&&D(A,b)}for(var M in b){var P={};Na(P,t),z(P,b[M]);var E=kg(P),k=b[M][C];T[M]=E?{transform:E}:{},jB(T[M],P),k&&(T[M][C]=k)}var O,R=!0;for(var M in w){T[M]=T[M]||{};var N=!O,k=w[M][C];N&&(O=new tn);var F=O.len();O.reset(),T[M].d=KB(t,w[M],O);var B=O.len();if(!N&&F!==B){R=!1;break}k&&(T[M][C]=k)}if(!R)for(var M in T)delete T[M].d;if(!n)for(var x=0;x<S;x++){var A=_[x],L=A.targetName;L==="style"&&D(A,T,function(J){return QB[J]})}for(var G=ce(T),X=!0,H,x=1;x<G.length;x++){var K=G[x-1],ae=G[x];if(T[K][vi]!==T[ae][vi]){X=!1;break}H=T[K][vi]}if(X&&H){for(var M in T)T[M][vi]&&delete T[M][vi];e[vi]=H}if(Ue(G,function(Ae){return ce(T[Ae]).length>0}).length){var ke=tT(T,r);return ke+" "+y[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var m=r.zrId+"-cls-"+Jw();r.cssNodes["."+m]={animation:o.join(",")},e.class=m}}function eF(t,e,r){if(!t.ignore)if(t.isSilent()){var n={"pointer-events":"none"};nT(n,e,r)}else{var i=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},a=i.fill;if(!a){var o=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0&&s||o;l&&(a=Wf(l))}var u=i.lineWidth;if(u){var f=!i.strokeNoScale&&t.transform?t.transform[0]:1;u=u/f}var n={cursor:"pointer"};a&&(n.fill=a),i.stroke&&(n.stroke=i.stroke),u&&(n["stroke-width"]=u),nT(n,e,r)}}function nT(t,e,r,n){var i=JSON.stringify(t),a=r.cssStyleCache[i];a||(a=r.zrId+"-cls-"+Jw(),r.cssStyleCache[i]=a,r.cssNodes["."+a+":hover"]=t),e.class=e.class?e.class+" "+a:a}var Xo=Math.round;function iT(t){return t&&q(t.src)}function aT(t){return t&&ee(t.toDataURL)}function zd(t,e,r,n){UB(function(i,a){var o=i==="fill"||i==="stroke";o&&Pg(a)?cT(e,t,i,n):o&&$f(a)?hT(r,t,i,n):t[i]=a,o&&n.ssr&&a==="none"&&(t["pointer-events"]="visible")},e,r,!1),sF(r,t,n)}function Vd(t,e){var r=Nk(e);r&&(r.each(function(n,i){n!=null&&(t[(Kw+i).toLowerCase()]=n+"")}),e.isSilent()&&(t[Kw+"silent"]="true"))}function oT(t){return Qr(t[0]-1)&&Qr(t[1])&&Qr(t[2])&&Qr(t[3]-1)}function tF(t){return Qr(t[4])&&Qr(t[5])}function Gd(t,e,r){if(e&&!(tF(e)&&oT(e))){var n=1e4;t.transform=oT(e)?"translate("+Xo(e[4]*n)/n+" "+Xo(e[5]*n)/n+")":$C(e)}}function sT(t,e,r){for(var n=t.points,i=[],a=0;a<n.length;a++)i.push(Xo(n[a][0]*r)/r),i.push(Xo(n[a][1]*r)/r);e.points=i.join(" ")}function lT(t){return!t.smooth}function rF(t){var e=$(t,function(r){return typeof r=="string"?[r,r]:r});return function(r,n,i){for(var a=0;a<e.length;a++){var o=e[a],s=r[o[0]];s!=null&&(n[o[1]]=Xo(s*i)/i)}}}var nF={circle:[rF(["cx","cy","r"])],polyline:[sT,lT],polygon:[sT,lT]};function iF(t){for(var e=t.animators,r=0;r<e.length;r++)if(e[r].targetName==="shape")return!0;return!1}function uT(t,e){var r=t.style,n=t.shape,i=nF[t.type],a={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&Eg(t)||4;if(i&&!e.willUpdate&&!(i[1]&&!i[1](n))&&!(o&&iF(t))&&!(l<1)){s=t.type;var f=Math.pow(10,u);i[0](n,a,f)}else{var c=!t.path||t.shapeChanged();t.path||t.createPathProxy();var v=t.path;c&&(v.beginPath(),t.buildPath(v,t.shape),t.pathUpdated());var h=v.getVersion(),d=t,p=d.__svgPathBuilder;(d.__svgPathVersion!==h||!p||l!==d.__svgPathStrokePercent)&&(p||(p=d.__svgPathBuilder=new Xw),p.reset(u),v.rebuildPath(p,l),p.generateStr(),d.__svgPathVersion=h,d.__svgPathStrokePercent=l),a.d=p.getStr()}return Gd(a,t.transform),zd(a,r,t,e),Vd(a,t),e.animation&&zu(t,a,e),e.emphasis&&eF(t,a,e),ze(s,t.id+"",a)}function aF(t,e){var r=t.style,n=r.image;if(n&&!q(n)&&(iT(n)?n=n.src:aT(n)&&(n=n.toDataURL())),!!n){var i=r.x||0,a=r.y||0,o=r.width,s=r.height,l={href:n,width:o,height:s};return i&&(l.x=i),a&&(l.y=a),Gd(l,t.transform),zd(l,r,t,e),Vd(l,t),e.animation&&zu(t,l,e),ze("image",t.id+"",l)}}function oF(t,e){var r=t.style,n=r.text;if(n!=null&&(n+=""),!(!n||isNaN(r.x)||isNaN(r.y))){var i=r.font||Pr,a=r.x||0,o=qC(r.y||0,Ra(i),r.textBaseline),s=XC[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(nm(r)){var u="",f=r.fontStyle,c=tm(r.fontSize);if(!parseFloat(c))return;var v=r.fontFamily||Bp,h=r.fontWeight;u+="font-size:"+c+";font-family:"+v+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+i;return n.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),Gd(l,t.transform),zd(l,r,t,e),Vd(l,t),e.animation&&zu(t,l,e),ze("text",t.id+"",l,void 0,n)}}function fT(t,e){if(t instanceof pe)return uT(t,e);if(t instanceof Mt)return aF(t,e);if(t instanceof $a)return oF(t,e)}function sF(t,e,r){var n=t.style;if(ZC(n)){var i=KC(t),a=r.shadowCache,o=a[i];if(!o){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=n.shadowOffsetX||0,c=n.shadowOffsetY||0,v=n.shadowBlur,h=za(n.shadowColor),d=h.opacity,p=h.color,g=v/2/l,m=v/2/u,y=g+" "+m;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=ze("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[ze("feDropShadow","",{dx:f/l,dy:c/u,stdDeviation:y,"flood-color":p,"flood-opacity":d})]),a[i]=o}e.filter=Es(o)}}function cT(t,e,r,n){var i=t[r],a,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(Ig(i))a="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(Lg(i))a="radialGradient",o.cx=Z(i.x,.5),o.cy=Z(i.y,.5),o.r=Z(i.r,.5);else return;for(var s=i.colorStops,l=[],u=0,f=s.length;u<f;++u){var c=Yf(s[u].offset)*100+"%",v=s[u].color,h=za(v),d=h.color,p=h.opacity,g={offset:c};g["stop-color"]=d,p<1&&(g["stop-opacity"]=p),l.push(ze("stop",u+"",g))}var m=ze(a,"",o,l),y=Bd(m),_=n.gradientCache,S=_[y];S||(S=n.zrId+"-g"+n.gradientIdx++,_[y]=S,o.id=S,n.defs[S]=ze(a,S,o,l)),e[r]=Es(S)}function hT(t,e,r,n){var i=t.style[r],a=t.getBoundingRect(),o={},s=i.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",c;if(Mg(i)){var v=i.imageWidth,h=i.imageHeight,d=void 0,p=i.image;if(q(p)?d=p:iT(p)?d=p.src:aT(p)&&(d=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Wt(v,g),Wt(h,g)}else if(v==null||h==null){var m=function(x,A){if(x){var L=x.elm,M=v||A.width,P=h||A.height;x.tag==="pattern"&&(u?(P=1,M/=a.width):f&&(M=1,P/=a.height)),x.attrs.width=M,x.attrs.height=P,L&&(L.setAttribute("width",M),L.setAttribute("height",P))}},y=mf(d,null,t,function(x){l||m(w,x),m(c,x)});y&&y.width&&y.height&&(v=v||y.width,h=h||y.height)}c=ze("image","img",{href:d,width:v,height:h}),o.width=v,o.height=h}else i.svgElement&&(c=oe(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(c){var _,S;l?_=S=1:u?(S=1,_=o.width/a.width):f?(_=1,S=o.height/a.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var b=kg(i);b&&(o.patternTransform=b);var w=ze("pattern","",o,[c]),T=Bd(w),C=n.patternCache,D=C[T];D||(D=n.zrId+"-p"+n.patternIdx++,C[T]=D,o.id=D,w=n.defs[D]=ze("pattern",D,o,[c])),e[r]=Es(D)}}function lF(t,e,r){var n=r.clipPathCache,i=r.defs,a=n[t.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};n[t.id]=a,i[a]=ze("clipPath",a,o,[uT(t,r)])}e["clip-path"]=Es(a)}function vT(t){return document.createTextNode(t)}function di(t,e,r){t.insertBefore(e,r)}function dT(t,e){t.removeChild(e)}function pT(t,e){t.appendChild(e)}function gT(t){return t.parentNode}function mT(t){return t.nextSibling}function Hd(t,e){t.textContent=e}var yT=58,uF=120,fF=ze("","");function Ud(t){return t===void 0}function Ir(t){return t!==void 0}function cF(t,e,r){for(var n={},i=e;i<=r;++i){var a=t[i].key;a!==void 0&&(n[a]=i)}return n}function qo(t,e){var r=t.key===e.key,n=t.tag===e.tag;return n&&r}function Zo(t){var e,r=t.children,n=t.tag;if(Ir(n)){var i=t.elm=jw(n);if(Wd(fF,t),W(r))for(e=0;e<r.length;++e){var a=r[e];a!=null&&pT(i,Zo(a))}else Ir(t.text)&&!j(t.text)&&pT(i,vT(t.text))}else t.elm=vT(t.text);return t.elm}function _T(t,e,r,n,i){for(;n<=i;++n){var a=r[n];a!=null&&di(t,Zo(a),e)}}function Vu(t,e,r,n){for(;r<=n;++r){var i=e[r];if(i!=null)if(Ir(i.tag)){var a=gT(i.elm);dT(a,i.elm)}else dT(t,i.elm)}}function Wd(t,e){var r,n=e.elm,i=t&&t.attrs||{},a=e.attrs||{};if(i!==a){for(r in a){var o=a[r],s=i[r];s!==o&&(o===!0?n.setAttribute(r,""):o===!1?n.removeAttribute(r):r==="style"?n.style.cssText=o:r.charCodeAt(0)!==uF?n.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?n.setAttributeNS(WB,r,o):r.charCodeAt(3)===yT?n.setAttributeNS(YB,r,o):r.charCodeAt(5)===yT?n.setAttributeNS(Zw,r,o):n.setAttribute(r,o))}for(r in i)r in a||n.removeAttribute(r)}}function hF(t,e,r){for(var n=0,i=0,a=e.length-1,o=e[0],s=e[a],l=r.length-1,u=r[0],f=r[l],c,v,h,d;n<=a&&i<=l;)o==null?o=e[++n]:s==null?s=e[--a]:u==null?u=r[++i]:f==null?f=r[--l]:qo(o,u)?(ma(o,u),o=e[++n],u=r[++i]):qo(s,f)?(ma(s,f),s=e[--a],f=r[--l]):qo(o,f)?(ma(o,f),di(t,o.elm,mT(s.elm)),o=e[++n],f=r[--l]):qo(s,u)?(ma(s,u),di(t,s.elm,o.elm),s=e[--a],u=r[++i]):(Ud(c)&&(c=cF(e,n,a)),v=c[u.key],Ud(v)?di(t,Zo(u),o.elm):(h=e[v],h.tag!==u.tag?di(t,Zo(u),o.elm):(ma(h,u),e[v]=void 0,di(t,h.elm,o.elm))),u=r[++i]);(n<=a||i<=l)&&(n>a?(d=r[l+1]==null?null:r[l+1].elm,_T(t,d,r,i,l)):Vu(t,e,n,a))}function ma(t,e){var r=e.elm=t.elm,n=t.children,i=e.children;t!==e&&(Wd(t,e),Ud(e.text)?Ir(n)&&Ir(i)?n!==i&&hF(r,n,i):Ir(i)?(Ir(t.text)&&Hd(r,""),_T(r,null,i,0,i.length-1)):Ir(n)?Vu(r,n,0,n.length-1):Ir(t.text)&&Hd(r,""):t.text!==e.text&&(Ir(n)&&Vu(r,n,0,n.length-1),Hd(r,e.text)))}function vF(t,e){if(qo(t,e))ma(t,e);else{var r=t.elm,n=gT(r);Zo(e),n!==null&&(di(n,e.elm,mT(r)),Vu(n,[t],0,0))}return e}var dF=0,pF=(function(){function t(e,r,n){if(this.type="svg",this.configLayer=gF(),this.storage=r,this._opts=n=z({},n),this.root=e,this._id="zr"+dF++,this._oldVNode=Qw(n.width,n.height),e&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=jw("svg");Wd(null,this._oldVNode),i.appendChild(a),e.appendChild(i)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",vF(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return fT(e,Fd(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=Fd(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress,a.emphasis=e.emphasis,a.ssr=this._opts.ssr;var o=[],s=this._bgVNode=mF(n,i,this._backgroundColor,a);s&&o.push(s);var l=e.compress?null:this._mainVNode=ze("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=$(ce(a.defs),function(v){return a.defs[v]});if(u.length&&o.push(ze("defs","defs",{},u)),e.animation){var f=qB(a.cssNodes,a.cssAnims,{newline:!0});if(f){var c=ze("style","stl",{},[],f);o.push(c)}}return Qw(n,i,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},Bd(this.renderToVNode({animation:Z(e.cssAnimation,!0),emphasis:Z(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Z(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,r,n){for(var i=e.length,a=[],o=0,s,l,u=0,f=0;f<i;f++){var c=e[f];if(!c.invisible){var v=c.__clipPaths,h=v&&v.length||0,d=l&&l.length||0,p=void 0;for(p=Math.max(h-1,d-1);p>=0&&!(v&&l&&v[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=a[o-1];for(var m=p+1;m<h;m++){var y={};lF(v[m],y,r);var _=ze("g","clip-g-"+u++,y,[]);(s?s.children:n).push(_),a[o++]=_,s=_}l=v;var S=fT(c,r);S&&(s?s.children:n).push(S)}}},t.prototype.resize=function(e,r){var n=this._opts,i=this.root,a=this._viewport;if(e!=null&&(n.width=e),r!=null&&(n.height=r),i&&a&&(a.style.display="none",e=Z1(i,0,n),r=Z1(i,1,n),a.style.display=""),this._width!==e||this._height!==r){if(this._width=e,this._height=r,a){var o=a.style;o.width=e+"px",o.height=r+"px"}if($f(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",r));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",r))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(e){var r=this.renderToString(),n="data:image/svg+xml;";return e?(r=QC(r),r&&n+"base64,"+r):n+"charset=UTF-8,"+encodeURIComponent(r)},t})();function gF(t){return function(){}}function mF(t,e,r,n){var i;if(r&&r!=="none")if(i=ze("rect","bg",{width:t,height:e,x:"0",y:"0"}),Pg(r))cT({fill:r},i.attrs,"fill",n);else if($f(r))hT({style:{fill:r},dirty:We,getBoundingRect:function(){return{width:t,height:e}}},i.attrs,"fill",n);else{var a=za(r),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}function yF(t){t.registerPainter("svg",pF)}rr([WE,t2,ok,eN,hN,DN,yN,eB,SB,RB,TB,BB,yF]);const ST=new Set;function _F(){const e=(Ta().components??[]).filter(r=>r!=null&&!ST.has(r));if(e.length!==0){rr(e);for(const r of e)ST.add(r)}}function SF(t){return Array.isArray(t)?t.map(e=>({...e})):[]}function bF(t,e){const r={...t,type:e?"value":"category"};return e?delete r.data:Array.isArray(r.data)||(r.data=["$data"]),r}function wF(t,e){const r={...t,type:e?"category":"value"};return e&&!Array.isArray(r.data)&&(r.data=["$data"]),e||delete r.data,r}function Gu(t,e){return Array.isArray(t)?t.map(r=>e({...r})):e(t&&typeof t=="object"?{...t}:{})}function Hu(t,e){const r=ur(t);if(!r)return e;const n=structuredClone(e),i=SF(n.series);if(i.length===0)return n;if(r.seriesType==="pie")return n.series=i.map(s=>({...s,type:"pie",...t==="doughnutChart"?{radius:s.radius??["40%","70%"]}:{}})),delete n.xAxis,delete n.yAxis,n;if(r.seriesType==="scatter")return n.series=i.map(s=>({...s,type:"scatter"})),n.xAxis=Gu(n.xAxis,s=>({...s,type:"value",data:void 0})),n.yAxis=Gu(n.yAxis,s=>({...s,type:"value",data:void 0})),n;if(r.seriesType==="radar")return n.series=i.map(s=>({...s,type:"radar"})),n;if(r.seriesType==="funnel")return n.series=i.map(s=>({...s,type:"funnel",sort:"descending"})),n;if(r.seriesType==="gauge")return n.series=i.map(s=>({...s,type:"gauge"})),n;const a=r.orientation==="horizontal",o=r.seriesType==="line"?"line":"bar";return n.xAxis=Gu(n.xAxis,s=>bF(s,a)),n.yAxis=Gu(n.yAxis,s=>wF(s,a)),n.series=i.map(s=>{const l={...s,type:o};return t==="areaChart"?l.areaStyle=s.areaStyle??{}:delete l.areaStyle,l}),n}const TF=96/25.4;function pi(t){const e=Number.isFinite(t)?t:0;return Math.max(1,Math.round(e*TF))}function bT(t,e,r){const n=/<svg\b[^>]*>/i.exec(t);if(!n)return t;const i=n[0],a=i.slice(4,-1),s=(/\sstyle\s*=\s*"([^"]*)"/i.exec(a)?.[1]??"").split(";").map(c=>c.trim()).filter(c=>c&&!/^(width|height|display)\s*:/i.test(c)).join(";"),l=a.replace(/\s(width|height|style|viewBox)\s*=\s*"[^"]*"/gi,"").trimEnd(),u=["display:block","width:100%","height:100%",s].filter(Boolean).join(";"),f=`<svg${l} width="100%" height="100%" viewBox="0 0 ${e} ${r}" style="${u}">`;return t.slice(0,n.index)+f+t.slice(n.index+i.length)}function Yd(t){_F();const e=Hu(t.type,t.option);if(!e||typeof e!="object"||Array.isArray(e))throw new Error("图表 option 非法:需要对象");const r=pi(t.widthMm),n=pi(t.heightMm),i=fO(null,null,{renderer:"svg",ssr:!0,width:r,height:n});try{const a=e.textStyle&&typeof e.textStyle=="object"&&!Array.isArray(e.textStyle)?e.textStyle:void 0,o={...t.fontFamily?{fontFamily:t.fontFamily}:{},...a??{}};return i.setOption({animation:!1,...e,...Object.keys(o).length>0?{textStyle:o}:{}}),bT(i.renderToSVGString(),r,n)}finally{i.dispose()}}function xF(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function $d(t){const e=t._chartOption??t.chartOption,r=`<span>${xF(String(t.title??"图表"))}</span>`;if(!e||typeof e!="object"||Array.isArray(e))return r;try{return Yd({key:String(t.key??""),type:String(t.type??""),option:e,widthMm:Number(t.widthMm??0),heightMm:Number(t.heightMm??0),fontFamily:typeof t.fontFamily=="string"?t.fontFamily:void 0})}catch{return r}}const CF="2",wT={chartOption:{kind:"object",label:"图表 option"},chartDataSource:{kind:"text",label:"数据源"},chartCategoryField:{kind:"text",label:"类目字段"},chartValueFields:{kind:"object",label:"数值字段"},chartSeriesField:{kind:"text",label:"系列拆分字段"}},AF={...wT,chartBubble:{kind:"bool",label:"气泡大小"}},Ko=zT({id:wa,version:CF,kinds:ss.map(t=>({type:t.type,label:t.label,icon:t.icon,fixedHeight:!0,requiredOptionKeys:t.requiredOptionKeys,notes:t.notes,optionMeta:t.type==="scatterChart"?AF:wT,defaultOptions:e=>Np(t.type,e),binding:{bind:(e,r)=>Lp(t.type,e,r)}})),render:{html:$d,createRenderer:()=>({render:$d})}});let Uu;function jo(t,e){const r=VT(wa);if(!t&&!e){const a=sp(Ko);return Uu=a,a}const n={...Ko,designer:t??r?.designer??Ko.designer,render:{...Ko.render,...r?.render,...e}},i=sp(n);return Uu=i,i}function DF(t){return jo(t)}function MF(t){return jo(void 0,{executorBundle:t})}function IF(){Uu?.(),Uu=void 0}jo(),jo();const LF=Object.freeze(Object.defineProperty({__proto__:null,CHART_KINDS:Cp,CHART_KIND_DEFINITIONS:ss,CHART_PALETTES:af,CHART_PLUGIN:Ko,CHART_PLUGIN_ID:wa,bindChartData:Lp,chartFactoryDefaults:Np,configureChartPlugin:Ox,createDefaultChartOption:us,fitSvgRoot:bT,getChartKindDefinition:ur,getChartPalettes:Rp,getChartPluginConfig:Ta,getSampleCategories:Op,mmToChartPx:pi,normalizeChartOption:Hu,registerChartDesigner:DF,registerChartExecutorBundle:MF,registerChartPlugin:jo,renderChartElement:$d,renderChartToSvg:Yd,resolveChartPanelFields:Ap,uninstallChartPlugin:IF},Symbol.toStringTag,{value:"Module"})),TT=Symbol.for("worm-print-platform.element-ui-registry.v1"),xT=globalThis;function CT(){const t=xT[TT];if(t)return t;const e={entries:new Map,listeners:new Set,nextSeq:0};return xT[TT]=e,e}function AT(){for(const t of[...CT().listeners])try{t()}catch{}}function DT(t){if(!t||typeof t!="object")throw new Error("registerElementUI: 需要 ElementUI 对象");if(!Array.isArray(t.types)||t.types.length===0)throw new Error("registerElementUI: types 必须是非空数组");for(const e of t.types)if(!e||typeof e!="string")throw new Error("registerElementUI: types 内每项必须是非空字符串");if(typeof t.renderCanvas!="function")throw new Error(`registerElementUI: ${t.types.join(",")} 缺少 renderCanvas`);if(t.renderProperty!==void 0&&typeof t.renderProperty!="function")throw new Error(`registerElementUI: ${t.types.join(",")} 的 renderProperty 必须是函数`)}function PF(t){return DT(t),t}function EF(t){DT(t);const e=CT(),r=e.nextSeq++;for(const n of t.types)e.entries.set(n,{ui:t,seq:r});return AT(),()=>{let n=!1;for(const i of t.types)e.entries.get(i)?.ui===t&&(e.entries.delete(i),n=!0);n&&AT()}}const kF=[12,20,15];function Qo(t){try{return JSON.parse(JSON.stringify(t))}catch{return t}}function RF(t,e){if(!e||typeof e!="object"||Array.isArray(e))return{};const r=Qo(e),n=ur(t),i=[...Op()],a=[...kF],o=Array.isArray(r.series)?r.series:[],s=u=>{for(const f of o)Array.isArray(f.data)&&f.data.includes("$data")&&(f.data=u(f))},l=()=>{for(const u of["xAxis","yAxis"]){const f=Array.isArray(r[u])?r[u]:r[u]?[r[u]]:[];for(const c of f)c&&Array.isArray(c.data)&&c.data.includes("$data")&&(c.data=[...i])}};switch(n?.seriesType){case"pie":s(()=>i.map((u,f)=>({name:u,value:a[f]??10})));break;case"funnel":s(()=>i.map((u,f)=>({name:u,value:a[f]??10})));break;case"scatter":s(()=>a.map(u=>[u,u+6]));break;case"radar":r.radar={...r.radar??{},indicator:i.map(u=>({name:u,max:30}))},s(()=>[{name:"示例",value:a}]);break;case"gauge":s(()=>[{value:a[0]??40,name:"数量"}]);break;default:s(()=>[...a]),l();break}return r}function OF(t,e){const r=Array.isArray(t?.color)?(t?.color).map(String):[];return e.find(i=>i.colors.every((a,o)=>a===r[o])&&r.length===i.colors.length)?.key??"default"}function ya(t){return Array.isArray(t)?t[0]&&typeof t[0]=="object"?{...t[0]}:{}:t&&typeof t=="object"?{...t}:{}}function NF(t,e,r){const n=Qo(t),i=Array.isArray(n.series)?n.series:[],a=ur(r),o=i[0]??{type:a?.seriesType==="line"?"line":"bar",data:["$data"]};return n.series=Array.from({length:Math.max(e,1)},(s,l)=>({...o,...i[l]??{},data:["$data"]})),n}const Wu=t=>Math.round(t*10)/10;function Xd(t,e){return e>0?Wu(t/e*100):0}function Yu(t,e,r){if(typeof t=="string"&&t.trim().endsWith("%")){const n=Number.parseFloat(t);if(Number.isFinite(n))return Wu(n)}return typeof t=="number"&&Number.isFinite(t)?Xd(t,e):Xd(r,e)}function MT(t,e,r){return Math.min(r,Math.max(e,t))}function Jo(t){return`${MT(Wu(t),0,100)}%`}function BF(t){const r=(Array.isArray(t.series)?t.series:[])[0];return r&&typeof r=="object"?r:{}}function IT(t,e,r){const i=BF(t&&typeof t=="object"?t:{}),a=pi(e),o=pi(r);return{top:Yu(i.top,o,ls.top),right:Yu(i.right,a,ls.right),bottom:Yu(i.bottom,o,ls.bottom),left:Yu(i.left,a,ls.left)}}function FF(t,e){const r=Qo(t),n=Array.isArray(r.series)?r.series:[];n.length===0&&n.push({type:"funnel",data:["$data"]});const i=n[0];return i.top=Jo(e.top),i.right=Jo(e.right),i.bottom=Jo(e.bottom),i.left=Jo(e.left),r.series=n,r}function zF(t,e,r){const i=ya((t&&typeof t=="object"?t:{}).radar).radius,a=Array.isArray(i)?i[i.length-1]:i,o=pi(e),s=pi(r),l=Math.min(o,s)/2;if(typeof a=="string"&&a.trim().endsWith("%")){const u=Number.parseFloat(a);if(Number.isFinite(u))return Wu(u)}return typeof a=="number"&&Number.isFinite(a)?Xd(a,l):kx}function VF(t,e){const r=Qo(t);return r.radar={...ya(r.radar),radius:Jo(MT(e,20,100))},r}const LT="width:100%;height:100%;min-width:0;min-height:0;pointer-events:none",GF=[".echarts-canvas-element{overflow:hidden}",".echarts-field-row{display:flex;gap:6px;align-items:center}",".echarts-field-row>.pd-input{flex:1;min-width:0}",".echarts-field-row>.pd-button{flex:none}"].join(""),HF=["chartOption","chartDataSource","chartCategoryField","chartValueFields","chartSeriesField","chartBubble"],UF=["图表","echarts","option","配置","数据源","类目","数值","系列","柱状","条形","折线","面积","饼","环形","散点","雷达","漏斗","仪表"],WF="数据由模板绑定阶段注入:series/xAxis 的 data 保留 `$data` 占位即可;复杂样式可在模板 JSON 中手写 chartOption。";let YF=0;function $F(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function qd(t){return t.printElementType?.type??""}function PT(t){const e=t.options.chartOption;return e&&typeof e=="object"&&!Array.isArray(e)?e:void 0}function Ee(t){const e=PT(t);return Qo(e??us(qd(t)))}function XF(t){const e=t?.options;if(!e||typeof e!="object")return!1;const r=e;return HF.some(n=>r[n]!==void 0)}function dt(t,e,r,n={}){t.update({chartOption:Hu(e,r),...n})}function $u(t){const e=t.options.chartValueFields;return Array.isArray(e)?e.map(String):[]}function qF(t){switch(t?.seriesType){case"pie":case"funnel":case"gauge":return 1;case"scatter":return 2;default:return 8}}function ZF(t,e){return t?.seriesType==="radar"?"维度字段(每个字段一个维度)":e===1?"数值字段":"数值字段(多值多系列)"}function KF(t){const e=t?.[0];return e?Object.keys(e).filter(r=>Array.isArray(e[r])):[]}function gi(t){return Array.isArray(t.series)?t.series:[]}function Zd(t,e,r){return Math.min(r,Math.max(e,t))}function Kd(t,e,r){const n=NF(Ee(t.element),r.length,e);(Array.isArray(n.series)?n.series:[]).forEach((a,o)=>{const s=r[o]?.trim();s&&(a.name=s)}),dt(t,e,n,{chartValueFields:r})}function jF(t){const e=t.element,r=qd(e),n=e.options,i=Number(n.width)||0,a=Number(n.height)||0;try{const o=RF(r,PT(e)??us(r)),s=Hu(r,o);if(!s||typeof s!="object"||Array.isArray(s))throw new Error("图表 option 非法:需要对象");const l=typeof n.fontFamily=="string"&&n.fontFamily?n.fontFamily:void 0,u=Yd({key:e.id,type:r,option:s,widthMm:i,heightMm:a,fontFamily:l});return`<div class="echarts-canvas-element" style="${LT}">${u}</div>`}catch{const o=typeof n.title=="string"&&n.title.trim()?n.title:ur(r)?.label??"图表";return`<div class="echarts-canvas-element" style="${LT}">${$F(o)}</div>`}}function Je(t,e,r){const n=document.createElement(t);return e&&(n.className=e),r!==void 0&&(n.textContent=r),n}function nr(t){const e=Je("div","pd-field");return e.appendChild(Je("span","pd-label",t)),e}function Lr(t,e){const r=Je("input","pd-input");return t.type&&(r.type=t.type),t.placeholder&&(r.placeholder=t.placeholder),t.min!==void 0&&(r.min=String(t.min)),t.max!==void 0&&(r.max=String(t.max)),t.title&&(r.title=t.title),t.list&&r.setAttribute("list",t.list),r.value=t.value,r.addEventListener("change",()=>e(r.value)),r}function jd(t,e,r){const n=nr(t);n.style.cssText="flex-direction:row;align-items:center;justify-content:space-between";const i=Je("input","pd-switch");return i.type="checkbox",i.checked=e,i.addEventListener("change",()=>r(i.checked)),n.appendChild(i),n}function QF(t){const e=t.element,r=qd(e),n=ur(r),i=Ap(r),a=h=>i.includes(h),o=e.options,s=Number(o.width)||0,l=Number(o.height)||0,u=qF(n),f=Rp(),c=Je("div","echarts-property"),v=Je("form","pd-form");if(v.addEventListener("submit",h=>h.preventDefault()),c.appendChild(v),a("dataSource")){const h=nr("数据源"),d=KF(t.data);let p;if(d.length>0){p=Je("datalist"),p.id=`echarts-ds-${++YF}`;for(const g of d){const m=Je("option");m.value=g,p.appendChild(m)}}h.appendChild(Lr({value:String(o.chartDataSource??""),placeholder:"数据集路径(留空取顶层第一个数组)",list:p?.id},g=>dt(t,r,Ee(e),{chartDataSource:g}))),p&&h.appendChild(p),v.appendChild(h)}if(a("categoryField")){const h=nr("类目字段");h.appendChild(Lr({value:String(o.chartCategoryField??""),placeholder:"如 name"},d=>dt(t,r,Ee(e),{chartCategoryField:d}))),v.appendChild(h)}if(a("valueFields")){const h=nr(ZF(n,u)),d=$u(e);if(d.forEach((p,g)=>{const m=Je("div","echarts-field-row");if(m.appendChild(Lr({value:p,placeholder:"如 value"},y=>{const _=$u(e);_[g]=y,Kd(t,r,_)})),d.length>1){const y=Je("button","pd-button small","−");y.type="button",y.title="删除该字段",y.addEventListener("click",()=>Kd(t,r,$u(e).filter((_,S)=>S!==g))),m.appendChild(y)}h.appendChild(m)}),d.length<u){const p=Je("button","pd-button small","+ 添加字段");p.type="button",p.addEventListener("click",()=>Kd(t,r,[...$u(e),""])),h.appendChild(p)}v.appendChild(h)}if(a("seriesField")){const h=nr("系列拆分字段");h.appendChild(Lr({value:String(o.chartSeriesField??""),placeholder:"可选,如 region(按值拆成多系列)"},d=>dt(t,r,Ee(e),{chartSeriesField:d}))),v.appendChild(h)}if(a("bubble")&&v.appendChild(jd("气泡大小",o.chartBubble===!0,h=>{dt(t,r,Ee(e),{chartBubble:h})})),a("title")){const h=nr("图表标题");h.appendChild(Lr({value:String(ya(Ee(e).title).text??""),placeholder:"留空不显示标题"},d=>{const p=Ee(e);p.title={...ya(p.title),text:d},dt(t,r,p)})),v.appendChild(h)}if(a("legend")){const h=ya(Ee(e).legend).show!==!1;v.appendChild(jd("显示图例",h,d=>{const p=Ee(e);p.legend={...ya(p.legend),show:d},dt(t,r,p)}))}if(a("palette")){const h=nr("配色"),d=Je("select","pd-select");for(const p of f){const g=Je("option");g.value=p.key,g.textContent=p.label,d.appendChild(g)}d.value=OF(Ee(e),f),d.addEventListener("change",()=>{const p=f.find(m=>m.key===d.value)??f[0],g=Ee(e);g.color=[...p.colors],dt(t,r,g)}),h.appendChild(d),v.appendChild(h)}if(a("stack")){const d=gi(Ee(e)).some(p=>p.stack!==void 0&&p.stack!==null&&p.stack!=="");v.appendChild(jd("堆叠显示",d,p=>{const g=Ee(e);for(const m of gi(g))p?m.stack="total":delete m.stack;dt(t,r,g)}))}if(a("innerRadius")){const h=nr("内径(%)"),d=gi(Ee(e))[0]?.radius,p=Array.isArray(d)&&Number(String(d[0]??"40%").replace("%",""))||40;h.appendChild(Lr({value:String(p),type:"number",min:0,max:90},g=>{const m=Ee(e),y=gi(m);y[0]&&(y[0].radius=[`${Zd(Number(g)||0,0,90)}%`,"70%"]),dt(t,r,m)})),v.appendChild(h)}if(a("padding")){const h=nr("内边距 上/右/下/左 (%)"),d=IT(Ee(e),s,l),p=Je("div","echarts-field-row"),g=[{side:"top",title:"上边距"},{side:"right",title:"右边距(留外置标签)"},{side:"bottom",title:"下边距"},{side:"left",title:"左边距"}];for(const{side:m,title:y}of g)p.appendChild(Lr({value:String(d[m]),type:"number",min:0,max:60,title:y},_=>{const S=Number(_),b=Number.isFinite(S)?Zd(S,0,60):Pp[m],w=Ee(e),T=IT(w,s,l);dt(t,r,FF(w,{...T,[m]:b}))}));h.appendChild(p),v.appendChild(h)}if(a("radius")){const h=nr("半径(%)");h.appendChild(Lr({value:String(zF(Ee(e),s,l)),type:"number",min:20,max:100},d=>{const p=Number(d),g=Number.isFinite(p)?Zd(p,20,100):Ep;dt(t,r,VF(Ee(e),g))})),v.appendChild(h)}if(a("gaugeRange")){const h=nr("最小 / 最大值"),d=gi(Ee(e)),p=Je("div","echarts-field-row");p.appendChild(Lr({value:String(Number(d[0]?.min??0)),type:"number"},g=>{const m=Ee(e),y=gi(m);y[0]&&(y[0].min=Number(g)||0),dt(t,r,m)})),p.appendChild(Lr({value:String(Number(d[0]?.max??100)),type:"number"},g=>{const m=Ee(e),y=gi(m);y[0]&&(y[0].max=Number(g)||100),dt(t,r,m)})),h.appendChild(p),v.appendChild(h)}return v.appendChild(Je("p","pd-hint",WF)),c}const JF=PF({types:Cp,renderCanvas:jF,renderProperty:QF,hasProperties:XF,group:"图表",searchKeywords:UF,styles:GF});let Qd;function e5(){return Qd?.(),Qd=EF(JF),Qd}e5();const t5={...LF};globalThis.WormPrintEcharts??=t5}));