@worm-print-platform/echarts 1.5.3 → 1.6.0
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/README.md +40 -0
- package/dist/bind.d.ts +1 -1
- package/dist/browser/executor.iife.d.ts +1 -1
- package/dist/browser-bundle.d.ts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/defaults.d.ts +1 -1
- package/dist/echarts.d.ts +1 -1
- package/dist/echarts.js +14 -14
- package/dist/executor.iife.global.d.ts +1 -1
- package/dist/executor.iife.global.js +14 -14
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +12 -12
- package/dist/kinds.d.ts +2 -2
- package/dist/kit.cjs +2 -2
- package/dist/kit.d.ts +3 -1
- package/dist/kit.js +45 -148
- package/dist/label.d.ts +63 -0
- package/dist/marketplace.d.ts +1 -1
- package/dist/marketplace.js +801 -80
- package/dist/node.cjs +48 -21
- package/dist/node.d.ts +1 -1
- package/dist/node.js +48 -21
- package/dist/normalize.d.ts +1 -1
- package/dist/option-utils.d.ts +1 -1
- package/dist/plugin-BWmSrZ3m.cjs +6 -0
- package/dist/plugin-Dvcrcg_Z.js +933 -0
- package/dist/plugin.d.ts +1 -1
- package/dist/renderer.d.ts +1 -1
- package/dist/type-augmentation.d.ts +1 -1
- package/dist/ui.cjs +1432 -60
- package/dist/ui.d.ts +1 -1
- package/dist/ui.js +1410 -57
- package/dist/units.d.ts +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +3 -3
- package/dist/plugin-Bf6QDbHO.cjs +0 -6
- package/dist/plugin-CUoE2jMs.js +0 -573
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:"文本",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
|
-
`),a=i.length;if(a===1)return
|
|
3
|
-
`);a=
|
|
4
|
-
`),t.isTruncated=s}function
|
|
5
|
-
`):[];var y=m.length*
|
|
6
|
-
`),u=!0),n.accumWidth=d}else{var
|
|
7
|
-
`));for(var
|
|
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={"&":"&","<":"<",">":">",'"':""","'":"'"};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=["",`
|
|
1
|
+
(function(os){typeof define=="function"&&define.amd?define(os):os()})((function(){"use strict";function os(){let t=0;return function(){return t+=1,`cell-${Date.now().toString(36)}-${t}`}}function sT(){let t=0;return function(){return t+=1,`row-${Date.now().toString(36)}-${t}`}}const lT=os(),uT=sT(),ss={width:.75,style:"solid",color:"#333333"};function fT(t){return{id:lT(),borders:{top:{...ss},right:{...ss},bottom:{...ss},left:{...ss}},...t}}function cT(){const t=[50,50,50],e=(n,i)=>({id:uT(),type:n,height:8,...i!==void 0?{repeatOnPage:i}:{},cells:t.map(()=>fT())}),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 Sp=Symbol.for("worm-print-platform.element-capabilities.v1"),wp=globalThis;function _i(){const t=wp[Sp];if(t)return t;const e={entries:new Map,nextSeq:0,bootstrapped:!1};return wp[Sp]=e,hT(e),e}const of=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}=cT(),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 hT(t){if(!t.bootstrapped){t.bootstrapped=!0;for(const[e,r]of Object.entries(of))t.entries.has(e)||t.entries.set(e,{caps:r,seq:t.nextSeq++})}}function vT(t,e){if(!t||typeof t!="string")throw new Error("registerElementCapabilities: type 必须是非空字符串");if(!e||typeof e!="object")throw new Error("registerElementCapabilities: caps 必须是对象");const r=_i(),n=r.nextSeq++;return r.entries.set(t,{caps:e,seq:n}),()=>{if(_i().entries.get(t)?.caps!==e)return;const a=of[t];a?_i().entries.set(t,{caps:a,seq:n}):_i().entries.delete(t)}}function xp(t){return t?{..._i().entries.get(t)?.caps??{},type:t}:{type:""}}function Tp(){return[..._i().entries.entries()].sort((t,e)=>t[1].seq-e[1].seq).map(([t])=>t)}const Cp=Symbol.for("worm-print-platform.element-plugin-registry.v1"),Ap=globalThis;function ls(){const t=Ap[Cp];if(t)return t;const e={plugins:new Map,typeIndex:new Map,configs:new Map,legacyAliases:new Map};return Ap[Cp]=e,e}function Dp(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 dT(t){return Dp(t),t}function Mp(t){Dp(t);const e=ls();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(vT(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 pT(t){return ls().plugins.get(t)}function gT(t,e){const r=ls();r.configs.set(t,{...r.configs.get(t)??{},...e})}function mT(t){return{...ls().configs.get(t)??{}}}function yT(){return Tp().filter(t=>xp(t).blocked===!0)}yT();function _T(){return Tp().filter(t=>xp(t).zoneAllowed===!0)}_T();const Lp=["#000000","#333333","#666666","#999999","#cccccc","#ffffff","#e53935","#fb8c00","#1e88e5","#43a047","#8d6e63","#00acc1"],bT=new Set(["constructor","__proto__","prototype","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"]),ST=new Set(["new","function","class","this","delete","typeof","void","in","of","var","let","const","return","if","while","for"]);function sf(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(ST.has(l))throw new Error(`不允许使用关键字: ${l}`);if(bT.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 lf(t){return new wT(t).parse()}class wT{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 Ip=20,xT=8;function bt(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 TT(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 bi(t){return!Number.isFinite(t)||Number.isInteger(t)||Math.abs(t)>=1e15?t:Number(t.toPrecision(12))}function Si(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 uf(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?bi(t):Math.round(i)/n}function ff(t,e){const r=bt(t),n=bt(e),i=r+n;return uf(i,Math.max(Si(r),Si(n)))}function cf(t,e){const r=bt(t),n=bt(e),i=r-n;return uf(i,Math.max(Si(r),Si(n)))}function Pp(t,e){const r=bt(t),n=bt(e),i=r*n;return uf(i,Si(r)+Si(n))}function Ep(t,e){const r=bt(t),n=bt(e);return n===0?0:bi(r/n)}function CT(t,e){const r=bt(t),n=bt(e);return n===0?0:bi(r%n)}function AT(t){if(t==null)return 2;const e=Math.trunc(bt(t,2));return Number.isFinite(e)?Math.min(Math.max(e,-Ip),Ip):2}function us(t,e,r){const n=bt(t,0),i=AT(e);if(n===0)return 0;if(Math.abs(n)>=1e21)return bi(n);const a=Math.max(i,0)+xT,o=n.toFixed(a);if(!/^-?\d+(\.\d+)?$/.test(o))return bi(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,h=u<0n?-u:u;let v=h/f;const d=h%f,g=2n*d;r==="up"?d!==0n&&(v+=1n):r!=="down"&&g>=f&&(g>f||r==="half-up"||v%2n===1n)&&(v+=1n);const p=c*v;return bi(i>=0?Number(p)/10**i:Number(p)*10**-i)}const hf={Math,Number,String,Boolean,parseInt,parseFloat,isNaN,true:!0,false:!1,null:null,undefined:void 0},DT=new Set(["constructor","__proto__","prototype","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"]),MT=new Set(["Number","String","Boolean","parseInt","parseFloat","isNaN"]);function nt(t,e,r={}){switch(t.type){case"num":return t.value;case"str":return t.value;case"bool":return t.value;case"ident":return LT(t.name,e);case"binary":return IT(t,e,r);case"unary":return PT(t,e,r);case"ternary":return nt(t.cond,e,r)?nt(t.consequent,e,r):nt(t.alternate,e,r);case"member":return RT(t,e,r);case"call":return OT(t,e,r);case"array":return t.elements.map(n=>nt(n,e,r));case"object":return Object.fromEntries(t.properties.map(n=>[n.key,nt(n.value,e,r)]))}}function LT(t,e,r){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];if(Object.prototype.hasOwnProperty.call(hf,t))return hf[t];throw new Error(`未定义的标识符: ${t}`)}function IT(t,e,r){const n=nt(t.left,e,r),i=nt(t.right,e,r);switch(t.op){case"+":return kT(n,i)?ff(n,i):ET(n,i);case"-":return cf(n,i);case"*":return Pp(n,i);case"/":return Ep(n,i);case"%":return CT(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 PT(t,e,r){const n=nt(t.arg,e,r);switch(t.op){case"-":return cf(0,n);case"+":return bt(n);case"!":return!n;default:throw new Error(`未知一元运算符: ${t.op}`)}}function ET(t,e){return`${t==null?"":String(t)}${e==null?"":String(e)}`}function kT(t,e){const r=kp(t),n=kp(e);return r==="other"||n==="other"?!1:r==="num"||n==="num"}function kp(t){return t==null||t===""?"neutral":TT(t)?"num":"other"}function RT(t,e,r){const n=nt(t.object,e,r);if(n==null)throw new Error("无法访问空值的属性");if(DT.has(t.property))throw new Error(`禁止访问属性: ${t.property}`);return n[t.property]}function OT(t,e,r){if(t.callee.type==="ident"&&MT.has(t.callee.name)){const i=hf[t.callee.name],a=t.args.map(o=>nt(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=>nt(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=>nt(a,e,r));return r[n](...i)}throw n&&Object.prototype.hasOwnProperty.call(e,n)?new Error(`${n} 不是函数`):new Error(`不允许调用: ${n??"表达式"}`)}function NT(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=sf(s),u=lf(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 BT(t,e,r={}){let n="";for(const i of t.parts)if(i.type==="text")n+=i.value;else{const a=nt(i.expression,e,r);n+=String(a??"")}return n}function Rp(t,e={}){const r=NT(t);return n=>BT(r,n,e)}function vf(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 Op(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 Np(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 df=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],FT=["","拾","佰","仟"],zT=["","万","亿","万亿","亿亿"];function VT(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+=df[i]+FT[n]}return e}function Bp(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,h=parseInt(n.slice(Math.max(0,c-4),c),10);if(h===0){o&&(s=!0);continue}o&&(s||h<1e3)&&(o+="零"),s=!1,o+=VT(h)+(zT[f]??"")}o=`${o||"零"}元`;const l=parseInt(i[0],10),u=parseInt(i[1],10);return l===0&&u===0?o+="整":(l===0?o+="零":o+=df[l]+"角",u>0&&(o+=df[u]+"分")),r+o}function Fp(t,e,r){return t?e:r}function zp(t,e){return t.reduce((r,n)=>r+(Number(vf(n,e))||0),0)}function GT(t,e){return t.length===0?0:zp(t,e)/t.length}function HT(t,e){return t.length}function UT(t,e){return t.length===0?0:Math.min(...t.map(r=>Number(vf(r,e))||0))}function WT(t,e){return t.length===0?0:Math.max(...t.map(r=>Number(vf(r,e))||0))}function Vp(...t){return t.reduce((e,r)=>ff(e,r),0)}function Gp(...t){return t.length===0?0:t.slice(1).reduce((e,r)=>cf(e,r),ff(t[0],0))}function Hp(...t){return t.length===0?0:t.reduce((e,r)=>Pp(e,r),1)}function Up(t,e){return Ep(t,e)}function Wp(t,e){return us(t,e,"half-up")}function fs(t,e){return us(t,e,"up")}function cs(t,e){return us(t,e,"down")}function Yp(t,e){return us(t,e,"half-even")}class YT{constructor(){this.functions={}}registerFunction(e,r){this.functions[e]=r}evaluate(e,r){const n=sf(e),i=lf(n);return nt(i,r,this.functions)}render(e,r){return Rp(e,this.functions)(r)}}const $p=new YT,$T={MONEY:Op,DATE:Np,UPPER:Bp,IF:Fp,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:Vp,SUB:Gp,MUL:Hp,DIV:Up,ROUND:Wp,ROUNDUP:fs,CEIL:fs,ROUNDDOWN:cs,FLOOR:cs,ROUNDBANK:Yp};for(const[t,e]of Object.entries($T))$p.registerFunction(t,e);function XT(t,e,r){switch(t.toUpperCase()){case"SUM":return zp(r,e);case"AVG":return GT(r,e);case"COUNT":return HT(r);case"MIN":return UT(r,e);case"MAX":return WT(r,e);default:return 0}}function qT(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(XT(u,c,n))}),`{${s}}`});try{return $p.render(i,e)}catch{return r??t}}class KT{constructor(e){this.functions={},e?.functions&&(this.functions={...e.functions})}registerFunction(e,r){this.functions[e]=r}evaluate(e,r){const n=sf(e),i=lf(n);return nt(i,r,this.functions)}render(e,r){return Rp(e,this.functions)(r)}}const ZT=new KT,jT={MONEY:Op,CONCAT:(...t)=>t.filter(e=>e!=null).join(""),IF:Fp,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:Vp,SUB:Gp,MUL:Hp,DIV:Up,ROUND:Wp,ROUNDUP:fs,CEIL:fs,ROUNDDOWN:cs,FLOOR:cs,ROUNDBANK:Yp,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:Np,UPPER:Bp};for(const[t,e]of Object.entries(jT))ZT.registerFunction(t,e);Object.fromEntries(Object.entries(of).filter(([,t])=>t.bindings!==void 0).map(([t,e])=>[t,[...e.bindings??[]]]));const fr=["left","top","width","height","chartOption"],hs=["dataSource","categoryField","valueFields","seriesField"],cr=["title","legend","palette"],vs=[{type:"barChart",label:"柱状图",icon:"ChartColumn",seriesType:"bar",orientation:"vertical",fields:[...hs,...cr,"stack","label"],requiredOptionKeys:fr,defaultWidth:100,defaultHeight:60,notes:"柱状图:类目 + 多个数值字段,每字段一个 series;series[].data 写 $data 占位;固定高,禁止 autoHeight"},{type:"barHChart",label:"条形图",icon:"ChartBar",seriesType:"bar",orientation:"horizontal",fields:[...hs,...cr,"stack","label"],requiredOptionKeys:fr,defaultWidth:100,defaultHeight:60,notes:"横向条形图:xAxis 为数值、yAxis 为类目;类目写 yAxis.data 的 $data 占位"},{type:"lineChart",label:"折线图",icon:"ChartLine",seriesType:"line",fields:[...hs,...cr,"stack","label"],requiredOptionKeys:fr,defaultWidth:100,defaultHeight:60,notes:"折线图:类目 + 多个数值字段;不写 areaStyle"},{type:"areaChart",label:"面积图",icon:"ChartArea",seriesType:"line",fields:[...hs,...cr,"stack","label"],requiredOptionKeys:fr,defaultWidth:100,defaultHeight:60,notes:"面积图:折线 + series[].areaStyle;其余同折线图"},{type:"pieChart",label:"饼图",icon:"ChartPie",seriesType:"pie",fields:["dataSource","categoryField","valueFields",...cr,"label"],requiredOptionKeys:fr,defaultWidth:60,defaultHeight:60,notes:"饼图:类目 + 首个数值字段生成 { name, value };只需一个数值字段"},{type:"doughnutChart",label:"环形图",icon:"Donut",seriesType:"pie",fields:["dataSource","categoryField","valueFields",...cr,"innerRadius","label"],requiredOptionKeys:fr,defaultWidth:60,defaultHeight:60,notes:"环形图:饼图 + radius:[内径,外径];内径由面板配置"},{type:"scatterChart",label:"散点图",icon:"ChartScatter",seriesType:"scatter",fields:["dataSource","categoryField","valueFields",...cr,"bubble","label"],requiredOptionKeys:fr,defaultWidth:80,defaultHeight:60,notes:"散点图:类目字段作 x、首个数值字段作 y;chartBubble 开启时用第二个数值字段作点大小"},{type:"radarChart",label:"雷达图",icon:"Radar",seriesType:"radar",fields:["dataSource","categoryField","valueFields",...cr,"radius","label"],requiredOptionKeys:fr,defaultWidth:70,defaultHeight:60,notes:"雷达图:每个数值字段是一个维度(radar.indicator),每行数据是一个系列(类目字段作系列名);半径由面板写 radar.radius(%,默认 75)"},{type:"funnelChart",label:"漏斗图",icon:"Funnel",seriesType:"funnel",fields:["dataSource","categoryField","valueFields",...cr,"padding","label"],requiredOptionKeys:fr,defaultWidth:60,defaultHeight:60,notes:"漏斗图:类目 + 首个数值字段,按数值降序;四边内边距由面板写 series.left/right/top/bottom(%,右侧需留外置标签空间)"},{type:"gaugeChart",label:"仪表盘",icon:"Gauge",seriesType:"gauge",fields:["dataSource","valueFields",...cr,"gaugeRange","label"],requiredOptionKeys:fr,defaultWidth:60,defaultHeight:60,notes:"仪表盘:取首行数据的首个数值字段作指针值;min/max 由面板写入 series[0].min/max"}],Xp=vs.map(t=>t.type);function Ze(t){return vs.find(e=>e.type===t)}function qp(t){return Ze(t)?.fields??[]}function QT(t){const e=typeof t=="number"?t:Number(t);return Number.isFinite(e)?e:0}function pf(t,e,r=!1){if(typeof t=="string")return t.startsWith("$data")||r?t:t.includes("{")?qT(t,e):t;if(Array.isArray(t))return t.map(n=>pf(n,e,r));if(t&&typeof t=="object"){const n={};for(const[i,a]of Object.entries(t)){const o=r||i==="label"||i==="detail";n[i]=pf(a,e,o)}return n}return t}function wi(t){return Array.isArray(t.data)&&t.data.includes("$data")}function JT(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 Kp(t){return typeof t=="string"&&t.length>0?t:void 0}function eC(t){return Array.isArray(t)?t.filter(e=>typeof e=="string"&&e.length>0):[]}function Aa(t){return Array.isArray(t.series)?t.series:[]}function hr(t,e){return e?QT(t[e]):0}function Zp(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 tC(t,e,r,n,i){const a=Aa(t);if(!a.some(wi))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 h of e){const v=String(h[i]??""),d=f.get(v)??new Map,g=String(h[r??""]);d.set(g,(d.get(g)??0)+hr(h,s(0))),f.set(v,d)}const c=[...new Set(o)];t.series=[...f.entries()].map(([h,v])=>({...u,name:h,data:c.map(d=>v.get(String(d))??null)})),Zp(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)=>wi(u)?{...u,data:e.map(c=>hr(c,s(f)))}:u),Zp(t,o)}function jp(t,e,r,n,i){const a=Aa(t);if(!a.some(wi))return;const o=e.map(s=>({name:r?String(s[r]??""):"",value:hr(s,n)}));i&&o.sort((s,l)=>l.value-s.value),t.series=a.map(s=>({...s,data:o}))}function rC(t,e,r,n,i){const a=Aa(t);if(!a.some(wi))return;const o=n[0],s=i?n[1]:void 0,l=s?e.map(h=>hr(h,s)):[],u=l.length>0?Math.min(...l):0,f=l.length>0?Math.max(...l):0,c=h=>f===u?12:Math.round(6+(h-u)/(f-u)*18);t.series=a.map(h=>({...h,data:e.map(v=>{const d=[hr(v,r),hr(v,o)];return s?{value:d,symbolSize:c(hr(v,s))}:d})}))}function nC(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 iC(t,e,r,n){const i=Aa(t);if(!i.some(wi))return;const a=n.map(o=>Math.max(0,...e.map(s=>hr(s,o))));t.radar={...t.radar??{},indicator:n.map((o,s)=>({name:o,max:nC(a[s])}))},t.series=i.map(o=>({...o,data:e.map(s=>({name:r?String(s[r]??""):"",value:n.map(l=>hr(s,l))}))}))}function aC(t,e,r){const n=Aa(t);if(!n.some(wi))return;const i=e[0]??{};t.series=n.map(a=>({...a,data:[{value:hr(i,r),name:r}]}))}function Qp(t,e,r){const n=e.chartOption;if(!n||typeof n!="object"||Array.isArray(n))return{};const i=pf(n,r),a=eC(e.chartValueFields);if(a.length===0)return{_chartOption:i};const o=JT({...e,dataSource:e.chartDataSource??e.dataSource},r);if(o.length===0)return{_chartOption:i};const s=Kp(e.chartCategoryField);switch(Ze(t)?.seriesType){case"radar":iC(i,o,s,a);break;case"gauge":aC(i,o,a[0]);break;case"funnel":jp(i,o,s,a[0],!0);break;case"pie":jp(i,o,s,a[0],!1);break;case"scatter":rC(i,o,s,a,e.chartBubble===!0);break;default:tC(i,o,s,a,Kp(e.chartSeriesField));break}return{_chartOption:i}}const Da="@worm-print-platform/echarts",gf=[{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"]}],oC=["示例一","示例二","示例三"],Jp={top:6,right:25,bottom:6,left:5},eg=75,sC=50,ds={top:60,right:80,bottom:65,left:80},tg={left:"8%",right:"8%",bottom:"12%",top:"18%",containLabel:!0};function lC(t){return{top:`${t.top}%`,right:`${t.right}%`,bottom:`${t.bottom}%`,left:`${t.left}%`}}function ps(t){const e=Ze(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:tg,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:`${eg}%`},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",...lC(Jp)}]};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:tg,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 uC(t){gT(Da,t)}function Ma(){return mT(Da)}function rg(){const t=Ma().palettes??{},e=gf.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])=>!gf.some(i=>i.key===n)).map(([n,i])=>({key:n,label:i.label??n,colors:i.colors}));return[...e,...r]}function ng(){const t=Ma().sampleCategories;return Array.isArray(t)&&t.length>0?t:oC}function ig(t,e){const r=Ma(),n=Ze(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:ps(t),chartDataSource:"",chartCategoryField:"name",chartValueFields:["value"],chartSeriesField:"",...e}}var mf=function(t,e){return mf=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])},mf(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");mf(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var yf=12,ag="sans-serif",Er=yf+"px "+ag,fC=20,cC=100,hC="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function vC(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)-fC)/cC;e[n]=i}return e}var dC=vC(hC),vr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,n){if(!t){var i=vr.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==n&&(e=t.font=n||Er),t.measureText(r);r=r||"",n=n||Er;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||yf,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=dC[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}},og=Kr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),sg=Kr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),La=Object.prototype.toString,gs=Array.prototype,pC=gs.forEach,gC=gs.filter,_f=gs.slice,mC=gs.map,lg=(function(){}).constructor,ms=lg?lg.prototype:null,bf="__proto__",Sf=2311,yC=Math.pow(2,53)-1;function ug(){return Sf>=yC&&(Sf=0),Sf++}function fg(){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=La.call(t);if(r==="[object Array]"){if(!Ea(t)){e=[];for(var n=0,i=t.length;n<i;n++)e[n]=oe(t[n])}}else if(sg[r]){if(!Ea(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(!og[r]&&!Ea(t)&&!Ia(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==bf&&(e[o]=oe(t[o]))}return e}function we(t,e,r){if(!j(e)||!j(t))return r?oe(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==bf){var i=t[n],a=e[n];j(a)&&j(i)&&!W(a)&&!W(i)&&!Ia(a)&&!Ia(i)&&!hg(a)&&!hg(i)&&!Ea(a)&&!Ea(i)?we(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!==bf&&(t[r]=e[r]);return t}function _C(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 bC(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 Xt(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 vt(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function L(t,e,r){if(t&&e)if(t.forEach&&t.forEach===pC)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 Tf(t);if(t.map&&t.map===mC)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 Kr(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 Ye(t,e,r){if(!t)return[];if(!e)return Tf(t);if(t.filter&&t.filter===gC)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 cg(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 SC(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(_f.call(arguments)))}}var de=ms&&ee(ms.bind)?ms.call.bind(ms.bind):SC;function Ne(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(_f.call(arguments)))}}function W(t){return Array.isArray?Array.isArray(t):La.call(t)==="[object Array]"}function ee(t){return typeof t=="function"}function q(t){return typeof t=="string"}function wf(t){return La.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 hg(t){return!!og[La.call(t)]}function dt(t){return!!sg[La.call(t)]}function Ia(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function xf(t){return t.colorStops!=null}function Pa(t){return t!==t}function ys(){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 K(t,e){return t??e}function wn(t,e,r){return t??e??r}function Tf(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return _f.apply(t,e)}function Cf(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 qt(t,e){if(!t)throw new Error(e)}function dr(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var vg="__ec_primitive__";function _s(t){t[vg]=!0}function Ea(t){return t[vg]}var wC=(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})(),dg=typeof Map=="function";function xC(){return dg?new Map:new wC}var TC=(function(){function t(e){var r=W(e);this.data=xC();var n=this;e instanceof t?e.each(i):e&&L(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 dg?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function te(t){return new TC(t)}function CC(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 bs(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 it(t,e){return t.hasOwnProperty(e)}function $e(){}var Ss=180/Math.PI,AC=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),DC=(function(){function t(){this.browser=new AC,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 DC;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):MC(navigator.userAgent,ie);function MC(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 LC=".",xn="___EC__COMPONENT__CONTAINER___",pg="___EC__EXTENDED_CLASS___";function pr(t){var e={main:"",sub:""};if(t){var r=t.split(LC);e.main=r[0]||"",e.sub=r[1]||""}return e}function IC(t){qt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function PC(t){return!!(t&&t[pg])}function Af(t,e){t.$constructor=t,t.extend=function(r){var n=this,i;return EC(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)},bC(i,this)),z(i.prototype,r),i[pg]=!0,i.extend=this.extend,i.superCall=OC,i.superApply=NC,i.superClass=n,i}}function EC(t){return ee(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function gg(t,e){t.extend=e.extend}var kC=Math.round(Math.random()*10);function RC(t){var e=["__\0is_clz",kC++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function OC(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 NC(t,e,r){return this.superClass.prototype[e].apply(t,r)}function ws(t){var e={};t.registerClass=function(n){var i=n.type||n.prototype.type;if(i){IC(i),n.prototype.type=i;var a=pr(i);if(!a.sub)e[a.main]=n;else if(a.sub!==xn){var o=r(a);o[a.sub]=n}}return n},t.getClass=function(n,i,a){var o=e[n];if(o&&o[xn]&&(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=pr(n),a=[],o=e[i.main];return o&&o[xn]?L(o,function(s,l){l!==xn&&a.push(s)}):a.push(o),a},t.hasClass=function(n){var i=pr(n);return!!e[i.main]},t.getAllClassMainTypes=function(){var n=[];return L(e,function(i,a){n.push(a)}),n},t.hasSubTypes=function(n){var i=pr(n),a=e[i.main];return a&&a[xn]};function r(n){var i=e[n.main];return(!i||!i[xn])&&(i=e[n.main]={},i[xn]=!0),i}}function ka(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 BC=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],FC=ka(BC),zC=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return FC(this,e,r)},t})(),mg=(function(){function t(e){this.value=e}return t})(),VC=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new mg(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})(),xi=(function(){function t(e){this._list=new VC,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 mg(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})(),Df=new xi(50);function GC(t){if(typeof t=="string"){var e=Df.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=Df.get(t),o={hostEl:r,cb:n,cbPayload:i};return a?(e=a.image,!xs(e)&&a.pending.push(o)):(e=vr.loadImage(t,yg,yg),e.__zrImageSrc=t,Df.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function yg(){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 xs(t){return t&&t.width&&t.height}function gr(){return[1,0,0,1,0,0]}function Ra(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Lf(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 Oa(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 If(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 Pf(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 HC(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 Na(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 Ti(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function UC(t){return[t[0],t[1]]}function Ef(t,e,r){return t[0]=e,t[1]=r,t}function _g(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function WC(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function YC(t){return Math.sqrt($C(t))}function $C(t){return t[0]*t[0]+t[1]*t[1]}function kf(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function XC(t,e){var r=YC(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function Rf(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Of=Rf;function qC(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Ci=qC;function Nf(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 At(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 Ai(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function Di(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,Mi=Math.max,Bf=Math.abs,bg=["x","y"],KC=["width","height"],Cn=new re,An=new re,Dn=new re,Mn=new re,St=xg(),Ba=St.minTv,Ff=St.maxTv,Fa=[0,0],ne=(function(){function t(e,r,n,i){zf(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=Mi(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Mi(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 ZC(gr(),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=zf(jC,e.x,e.y,e.width,e.height)),r instanceof t||(r=zf(QC,r.x,r.y,r.width,r.height));var s=!!n;St.reset(i,s);var l=St.touchThreshold,u=e.x+l,f=e.x+e.width-l,c=e.y+l,h=e.y+e.height-l,v=r.x+l,d=r.x+r.width-l,g=r.y+l,p=r.y+r.height-l;if(u>f||c>h||v>d||g>p)return!1;var m=!(f<v||d<u||h<g||p<c);return(s||a)&&(Fa[0]=1/0,Fa[1]=0,wg(u,f,v,d,0,s,a,o),wg(c,h,g,p,1,s,a,o),s&&re.copy(n,m?St.useDir?St.dirMinTv:Ba:Ff)),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){Sg(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&&Sg(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}Cn.x=Dn.x=r.x,Cn.y=Mn.y=r.y,An.x=Mn.x=r.x+r.width,An.y=Dn.y=r.y+r.height,Cn.transform(n),Mn.transform(n),An.transform(n),Dn.transform(n),e.x=Tn(Cn.x,An.x,Dn.x,Mn.x),e.y=Tn(Cn.y,An.y,Dn.y,Mn.y);var l=Mi(Cn.x,An.x,Dn.x,Mn.x),u=Mi(Cn.y,An.y,Dn.y,Mn.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=Ra(e||[]),If(e,e,Ef(Vf,-r.x,-r.y)),HC(e,e,Ef(Vf,i,a)),If(e,e,Ef(Vf,n.x,n.y)),e},t})();ne.create;var zf=ne.set,Sg=ne.copy,ZC=ne.calculateTransform;ne.applyTransform,ne.contain;var jC=new ne(0,0,0,0),QC=new ne(0,0,0,0),Vf=[];function wg(t,e,r,n,i,a,o,s){var l=Bf(e-r),u=Bf(n-t),f=Tn(l,u),c=bg[i],h=bg[1-i],v=KC[i];e<r||n<t?l<u?(a&&(Ff[c]=-l),s&&(o[c]=e,o[v]=0)):(a&&(Ff[c]=u),s&&(o[c]=t,o[v]=0)):(o&&(o[c]=Mi(t,r),o[v]=Tn(e,n)-o[c]),a&&(f<Fa[0]||St.useDir)&&(Fa[0]=Tn(f,Fa[0]),(l<u||!St.bidirectional)&&(Ba[c]=l,Ba[h]=0,St.useDir&&St.calcDirMTV()),(l>=u||!St.bidirectional)&&(Ba[c]=-u,Ba[h]=0,St.useDir&&St.calcDirMTV())))}function xg(){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=Mi(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 Bf(a)<1e-10}return n}function mr(t){Ts||(Ts=new xi(100)),t=t||Er;var e=Ts.get(t);return e||(e={font:t,strWidthCache:new xi(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:vr.measureText("国",t).width,asciiCharWidth:vr.measureText("a",t).width},Ts.put(t,e)),e}var Ts;function JC(t){if(!(Gf>=Tg)){t=t||Er;for(var e=[],r=+new Date,n=0;n<=127;n++)e[n]=vr.measureText(String.fromCharCode(n),t).width;var i=+new Date-r;return i>16?Gf=Tg:i>2&&Gf++,e}}var Gf=0,Tg=5;function Cg(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=JC(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function yr(t,e){var r=t.strWidthCache,n=r.get(e);return n==null&&(n=vr.measureText(e,t.font).width,r.put(e,n)),n}function Ag(t,e,r,n){var i=yr(mr(e),t),a=za(e),o=Li(0,i,r),s=Ln(0,a,n),l=new ne(o,s,i,a);return l}function Dg(t,e,r,n){var i=((t||"")+"").split(`
|
|
2
|
+
`),a=i.length;if(a===1)return Ag(i[0],e,r,n);for(var o=new ne(0,0,0,0),s=0;s<i.length;s++){var l=Ag(i[s],e,r,n);s===0?o.copy(l):o.union(l)}return o}function Li(t,e,r,n){return r==="right"?n?t+=e:t-=e:r==="center"&&(n?t+=e/2:t-=e/2),t}function Ln(t,e,r,n){return r==="middle"?n?t+=e/2:t-=e/2:r==="bottom"&&(n?t+=e:t-=e),t}function za(t){return mr(t).stWideCharWidth}function In(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Cs(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 Hf=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function eA(t,e,r,n,i,a){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
|
|
3
|
+
`);a=Mg(r,n,i,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)Lg(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join(`
|
|
4
|
+
`),t.isTruncated=s}function Mg(t,e,r,n){n=n||{};var i=z({},n);r=K(r,"..."),i.maxIterations=K(n.maxIterations,2);var a=i.minChar=K(n.minChar,0),o=i.fontMeasureInfo=mr(e),s=o.asciiCharWidth;i.placeholder=K(n.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<a&&l>=s;u++)l-=s;var f=yr(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 Lg(t,e,r){var n=r.containerWidth,i=r.contentWidth,a=r.fontMeasureInfo;if(!n){t.textLine="",t.isTruncated=!1;return}var o=yr(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?tA(e,i,a):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=yr(a,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function tA(t,e,r){for(var n=0,i=0,a=t.length;i<a&&n<e;i++)n+=Cg(r,t.charCodeAt(i));return i}function rA(t,e,r,n){var i=Wf(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=za(u),h=K(e.lineHeight,c),v=e.lineOverflow==="truncate",d=!1,g=e.width;g==null&&r!=null&&(g=r-s);var p=e.height;p==null&&n!=null&&(p=n-l);var m;g!=null&&(a==="break"||a==="breakAll")?m=i?Pg(i,e.font,g,a==="breakAll",0).lines:[]:m=i?i.split(`
|
|
5
|
+
`):[];var y=m.length*h;if(p==null&&(p=y),y>p&&v){var _=Math.floor(p/h);d=d||m.length>_,m=m.slice(0,_),y=m.length*h}if(i&&f&&g!=null)for(var b=Mg(g,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),S={},w=0;w<m.length;w++)Lg(S,m[w],b),m[w]=S.textLine,d=d||S.isTruncated;for(var x=p,C=0,D=mr(u),w=0;w<m.length;w++)C=Math.max(yr(D,m[w]),C);g==null&&(g=C);var T=g;return x+=l,T+=s,{lines:m,height:p,outerWidth:T,outerHeight:x,lineHeight:h,calculatedLineHeight:c,contentWidth:C,contentHeight:y,width:g,isTruncated:d}}var nA=(function(){function t(){}return t})(),Ig=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),iA=(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 aA(t,e,r,n,i){var a=new iA,o=Wf(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 h=e.overflow,v=(h==="break"||h==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:h==="breakAll"}:null,d=Hf.lastIndex=0,g;(g=Hf.exec(o))!=null;){var p=g.index;p>d&&Uf(a,o.substring(d,p),e,v),Uf(a,g[2],e,v,g[1]),d=Hf.lastIndex}d<o.length&&Uf(a,o.substring(d,o.length),e,v);var m=[],y=0,_=0,b=h==="truncate",S=e.lineOverflow==="truncate",w={};function x(ae,Re,Me){ae.width=Re,ae.lineHeight=Me,y+=Me,_=Math.max(_,Re)}e:for(var C=0;C<a.lines.length;C++){for(var D=a.lines[C],T=0,A=0,I=0;I<D.tokens.length;I++){var M=D.tokens[I],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=za(O);var R=K(P.height,M.contentHeight);if(M.innerHeight=R,E&&(R+=E[0]+E[2]),M.height=R,M.lineHeight=wn(P.lineHeight,e.lineHeight,R),M.align=P&&P.align||i,M.verticalAlign=P&&P.verticalAlign||"middle",S&&c!=null&&y+M.lineHeight>c){var N=a.lines.length;I>0?(D.tokens=D.tokens.slice(0,I),x(D,A,T),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=yr(mr(O),M.text);else{if(B){var G=P.backgroundColor,X=G&&G.image;X&&(X=GC(X),xs(X)&&(M.width=Math.max(M.width,X.width*R/X.height)))}var H=b&&f!=null?f-A:null;H!=null&&H<M.width?!B||H<k?(M.text="",M.width=M.contentWidth=0):(eA(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=yr(mr(O),M.text)):M.contentWidth=yr(mr(O),M.text)}M.width+=k,A+=M.width,P&&(T=Math.max(T,M.lineHeight))}x(D,A,T)}a.outerWidth=a.width=K(f,_),a.outerHeight=a.height=K(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],Z=M.percentWidth;M.width=parseInt(Z,10)/100*a.width}return a}function Uf(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 h=o.padding,v=h?h[1]+h[3]:0;if(o.width!=null&&o.width!=="auto"){var d=In(o.width,n.width)+v;s.length>0&&d+n.accumWidth>n.width&&(f=e.split(`
|
|
6
|
+
`),u=!0),n.accumWidth=d}else{var g=Pg(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+v,c=g.linesWidths,f=g.lines}}f||(f=e.split(`
|
|
7
|
+
`));for(var p=mr(l),m=0;m<f.length;m++){var y=f[m],_=new nA;if(_.styleName=i,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=c?c[m]:yr(p,y),!m&&!u){var b=(s[s.length-1]||(s[0]=new Ig)).tokens,S=b.length;S===1&&b[0].isLineHolder?b[0]=_:(y||!S||a)&&b.push(_)}else s.push(new Ig([_]))}}function oA(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var sA=Kr(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function lA(t){return oA(t)?!!sA[t]:!0}function Pg(t,e,r,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,c=mr(e),h=0;h<t.length;h++){var v=t.charAt(h);if(v===`
|
|
8
|
+
`){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=Cg(c,v.charCodeAt(0)),g=n?!1:!lA(v);if(a.length?f+d>r:i+f+d>r){f?(s||l)&&(g?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=v,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=v,f=d)):g?(a.push(l),o.push(u),l=v,u=d):(a.push(v),o.push(d));continue}f+=d,g?(l+=v,u+=d):(l&&(s+=l,l="",u=0),s+=v)}return l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}function Eg(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(kg,Li(r,o,i),Ln(n,s,a),o,s),ne.intersect(e,kg,null,Rg);var l=Rg.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=Li(l.x,l.width,i,!0),t.baseY=Ln(l.y,l.height,a,!0)}}var kg=new ne(0,0,0,0),Rg={outIntersectRect:{},clamp:!0};function Wf(t){return t!=null?t+="":t=""}function uA(t){var e=Wf(t.text),r=t.font,n=yr(mr(r),e),i=za(r);return Yf(t,n,i,null)}function Yf(t,e,r,n){var i=new ne(Li(t.x||0,e,t.textAlign),Ln(t.y||0,r,t.textBaseline),e,r),a=n??(Og(t)?t.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function Og(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var Ng=Ra,Bg=5e-5;function Pn(t){return t>Bg||t<-Bg}var En=[],Ii=[],$f=gr(),Xf=Math.abs,Va=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return fA(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 Pn(this.rotation)||Pn(this.x)||Pn(this.y)||Pn(this.scaleX-1)||Pn(this.scaleY-1)||Pn(this.skewX)||Pn(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(Ng(n),this.invTransform=null);return}n=n||gr(),r?this.getLocalTransform(n):Ng(n),e&&(r?Oa(n,e,n):Lf(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||gr(),Na(this.invTransform,n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(En);var n=En[0]<0?-1:1,i=En[1]<0?-1:1,a=((En[0]-n)*r+n)/En[0]||0,o=((En[1]-i)*r+i)/En[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||gr(),Oa(Ii,e.invTransform,r),r=Ii);var n=this.originX,i=this.originY;(n||i)&&($f[4]=n,$f[5]=i,Oa(Ii,r,$f),Ii[4]-=n,Ii[5]-=i,r=Ii),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&&At(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&At(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&Xf(e[0]-1)>1e-10&&Xf(e[3]-1)>1e-10?Math.sqrt(Xf(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){Ga(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,h=e.skewX?Math.tan(e.skewX):0,v=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var d=n+s,g=i+l;r[4]=-d*a-h*g*o,r[5]=-g*o-v*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=v*a,r[2]=h*o,u&&Pf(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})(),fA=Va.getLocalTransform,As=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Ga(t,e){return _C(t,e,As)}var Ha={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-Ha.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?Ha.bounceIn(t*2)*.5:Ha.bounceOut(t*2-1)*.5+.5}},Ds=Math.pow,Zr=Math.sqrt,Ms=1e-8,Fg=1e-4,zg=Zr(3),Ls=1/3,_r=Ti(),Dt=Ti(),Pi=Ti();function jr(t){return t>-Ms&&t<Ms}function Vg(t){return t>Ms||t<-Ms}function Xe(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 Gg(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function Is(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,h=l*l-3*s*u,v=0;if(jr(f)&&jr(c))if(jr(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[v++]=d)}else{var g=c*c-4*f*h;if(jr(g)){var p=c/f,d=-s/o+p,m=-p/2;d>=0&&d<=1&&(a[v++]=d),m>=0&&m<=1&&(a[v++]=m)}else if(g>0){var y=Zr(g),_=f*s+1.5*o*(-c+y),b=f*s+1.5*o*(-c-y);_<0?_=-Ds(-_,Ls):_=Ds(_,Ls),b<0?b=-Ds(-b,Ls):b=Ds(b,Ls);var d=(-s-(_+b))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var S=(2*f*s-3*o*c)/(2*Zr(f*f*f)),w=Math.acos(S)/3,x=Zr(f),C=Math.cos(w),d=(-s-2*x*C)/(3*o),m=(-s+x*(C+zg*Math.sin(w)))/(3*o),D=(-s+x*(C-zg*Math.sin(w)))/(3*o);d>=0&&d<=1&&(a[v++]=d),m>=0&&m<=1&&(a[v++]=m),D>=0&&D<=1&&(a[v++]=D)}}return v}function Hg(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(jr(o)){if(Vg(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(jr(f))i[0]=-a/(2*o);else if(f>0){var c=Zr(f),u=(-a+c)/(2*o),h=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function Ps(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 cA(t,e,r,n,i,a,o,s,l,u,f){var c,h=.005,v=1/0,d,g,p,m;_r[0]=l,_r[1]=u;for(var y=0;y<1;y+=.05)Dt[0]=Xe(t,r,i,o,y),Dt[1]=Xe(e,n,a,s,y),p=Ci(_r,Dt),p<v&&(c=y,v=p);v=1/0;for(var _=0;_<32&&!(h<Fg);_++)d=c-h,g=c+h,Dt[0]=Xe(t,r,i,o,d),Dt[1]=Xe(e,n,a,s,d),p=Ci(Dt,_r),d>=0&&p<v?(c=d,v=p):(Pi[0]=Xe(t,r,i,o,g),Pi[1]=Xe(e,n,a,s,g),m=Ci(Pi,_r),g<=1&&m<v?(c=g,v=m):h*=.5);return Zr(v)}function hA(t,e,r,n,i,a,o,s,l){for(var u=t,f=e,c=0,h=1/l,v=1;v<=l;v++){var d=v*h,g=Xe(t,r,i,o,d),p=Xe(e,n,a,s,d),m=g-u,y=p-f;c+=Math.sqrt(m*m+y*y),u=g,f=p}return c}function pt(t,e,r,n){var i=1-n;return i*(i*t+2*n*e)+n*n*r}function Ug(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function vA(t,e,r,n,i){var a=t-2*e+r,o=2*(e-t),s=t-n,l=0;if(jr(a)){if(Vg(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(jr(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),h=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function Wg(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function Es(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 dA(t,e,r,n,i,a,o,s,l){var u,f=.005,c=1/0;_r[0]=o,_r[1]=s;for(var h=0;h<1;h+=.05){Dt[0]=pt(t,r,i,h),Dt[1]=pt(e,n,a,h);var v=Ci(_r,Dt);v<c&&(u=h,c=v)}c=1/0;for(var d=0;d<32&&!(f<Fg);d++){var g=u-f,p=u+f;Dt[0]=pt(t,r,i,g),Dt[1]=pt(e,n,a,g);var v=Ci(Dt,_r);if(g>=0&&v<c)u=g,c=v;else{Pi[0]=pt(t,r,i,p),Pi[1]=pt(e,n,a,p);var m=Ci(Pi,_r);p<=1&&m<c?(u=p,c=m):f*=.5}}return Zr(c)}function pA(t,e,r,n,i,a,o){for(var s=t,l=e,u=0,f=1/o,c=1;c<=o;c++){var h=c*f,v=pt(t,r,i,h),d=pt(e,n,a,h),g=v-s,p=d-l;u+=Math.sqrt(g*g+p*p),s=v,l=d}return u}var gA=/cubic-bezier\(([0-9,\.e ]+)\)/;function qf(t){var e=t&&gA.exec(t);if(e){var r=e[1].split(","),n=+dr(r[0]),i=+dr(r[1]),a=+dr(r[2]),o=+dr(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Is(0,n,a,1,l,s)&&Xe(0,i,o,1,s[0])}}}var mA=(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||$e,this.ondestroy=e.ondestroy||$e,this.onrestart=e.onrestart||$e,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:Ha[e]||qf(e)},t})(),Yg={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 Qr(t){return t=Math.round(t),t<0?0:t>255?255:t}function Kf(t){return t<0?0:t>1?1:t}function Zf(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Qr(parseFloat(e)/100*255):Qr(parseInt(e,10))}function kn(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Kf(parseFloat(e)/100):Kf(parseFloat(e))}function jf(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 ks(t,e,r){return t+(e-t)*r}function Mt(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function Qf(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var $g=new xi(20),Rs=null;function Ei(t,e){Rs&&Qf(Rs,e),Rs=$g.put(t,Rs||e.slice())}function Kt(t,e){if(t){e=e||[];var r=$g.get(t);if(r)return Qf(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in Yg)return Qf(e,Yg[n]),Ei(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)){Mt(e,0,0,0,1);return}return Mt(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),Ei(t,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Mt(e,0,0,0,1);return}return Mt(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Ei(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?Mt(e,+u[0],+u[1],+u[2],1):Mt(e,0,0,0,1);f=kn(u.pop());case"rgb":if(u.length>=3)return Mt(e,Zf(u[0]),Zf(u[1]),Zf(u[2]),u.length===3?f:kn(u[3])),Ei(t,e),e;Mt(e,0,0,0,1);return;case"hsla":if(u.length!==4){Mt(e,0,0,0,1);return}return u[3]=kn(u[3]),Jf(u,e),Ei(t,e),e;case"hsl":if(u.length!==3){Mt(e,0,0,0,1);return}return Jf(u,e),Ei(t,e),e;default:return}}Mt(e,0,0,0,1)}}function Jf(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=kn(t[1]),i=kn(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],Mt(e,Qr(jf(o,a,r+1/3)*255),Qr(jf(o,a,r)*255),Qr(jf(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function yA(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,h=((a-n)/6+o/2)/o;e===a?l=h-c:r===a?l=1/3+f-h:n===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return t[3]!=null&&v.push(t[3]),v}}function Xg(t,e){var r=Kt(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 Ua(r,r.length===4?"rgba":"rgb")}}function _A(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=Kt(e[i]),s=Kt(e[a]),l=n-i,u=Ua([Qr(ks(o[0],s[0],l)),Qr(ks(o[1],s[1],l)),Qr(ks(o[2],s[2],l)),Kf(ks(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function ec(t,e,r,n){var i=Kt(t);if(t)return i=yA(i),r!=null&&(i[1]=kn(ee(r)?r(i[1]):r)),n!=null&&(i[2]=kn(ee(n)?n(i[2]):n)),Ua(Jf(i),"rgba")}function Ua(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 Os(t,e){var r=Kt(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var qg=new xi(100);function tc(t){if(q(t)){var e=qg.get(t);return e||(e=Xg(t,-.1),qg.put(t,e)),e}else if(xf(t)){var r=z({},t);return r.colorStops=$(t.colorStops,function(n){return{offset:n.offset,color:Xg(n.color,-.1)}}),r}return t}var Ns=Math.round;function Wa(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var r=Kt(t);r&&(t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3])}return{color:t,opacity:e??1}}var Kg=1e-4;function Jr(t){return t<Kg&&t>-Kg}function Bs(t){return Ns(t*1e3)/1e3}function rc(t){return Ns(t*1e4)/1e4}function bA(t){return"matrix("+Bs(t[0])+","+Bs(t[1])+","+Bs(t[2])+","+Bs(t[3])+","+rc(t[4])+","+rc(t[5])+")"}var SA={left:"start",right:"end",center:"middle",middle:"middle"};function wA(t,e,r){return r==="top"?t+=e/2:r==="bottom"&&(t-=e/2),t}function xA(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function TA(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 Zg(t){return t&&!!t.image}function CA(t){return t&&!!t.svgElement}function nc(t){return Zg(t)||CA(t)}function jg(t){return t.type==="linear"}function Qg(t){return t.type==="radial"}function Jg(t){return t&&(t.type==="linear"||t.type==="radial")}function Fs(t){return"url(#"+t+")"}function em(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 tm(t){var e=t.x||0,r=t.y||0,n=(t.rotation||0)*Ss,i=K(t.scaleX,1),a=K(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("+Ns(o*Ss)+"deg, "+Ns(s*Ss)+"deg)"),l.join(" ")}var AA=(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}})(),ic=Array.prototype.slice;function kr(t,e,r){return(e-t)*r+t}function ac(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=kr(e[a],r[a],n);return t}function DA(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]=kr(e[o][s],r[o][s],n)}return t}function zs(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=e[a]+r[a]*n;return t}function rm(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 MA(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 LA(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]:ic.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 Vs(t){if(vt(t)){var e=t.length;if(vt(t[0])){for(var r=[],n=0;n<e;n++)r.push(ic.call(t[n]));return r}return ic.call(t)}return t}function Gs(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 IA(t){return vt(t&&t[0])?2:1}var Hs=0,Us=1,nm=2,Ya=3,oc=4,sc=5,im=6;function am(t){return t===oc||t===sc}function Ws(t){return t===Us||t===nm}var $a=[0,0,0,0],PA=(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=im,l=r;if(vt(r)){var u=IA(r);s=u,(u===1&&!me(r[0])||u===2&&!me(r[0][0]))&&(o=!0)}else if(me(r)&&!Pa(r))s=Hs;else if(q(r))if(!isNaN(+r))s=Hs;else{var f=Kt(r);f&&(l=f,s=Ya)}else if(xf(r)){var c=z({},l);c.colorStops=$(r.colorStops,function(v){return{offset:v.offset,color:Kt(v.color)}}),jg(r)?s=oc:Qg(r)&&(s=sc),l=c}a===0?this.valType=s:(s!==this.valType||s===im)&&(o=!0),this.discrete=this.discrete||o;var h={time:e,value:l,rawValue:r,percent:0};return n&&(h.easing=n,h.easingFunc=ee(n)?n:Ha[n]||qf(n)),i.push(h),h},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(g,p){return g.time-p.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Ws(i),u=am(i),f=0;f<a;f++){var c=n[f],h=c.value,v=o.value;c.percent=c.time/e,s||(l&&f!==a-1?LA(h,v,i):u&&MA(h.colorStops,v.colorStops))}if(!s&&i!==sc&&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===Hs?n[f].additiveValue=n[f].value-d:i===Ya?n[f].additiveValue=zs([],n[f].value,d,-1):Ws(i)&&(n[f].additiveValue=i===Us?zs([],n[f].value,d,-1):rm([],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===Ya,f,c=this._lastFr,h=Math.min,v,d;if(s===1)v=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var g=h(c+1,s-1);for(f=g;f>=0&&!(o[f].percent<=r);f--);f=h(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=h(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=r;var p=d.percent-v.percent,m=p===0?1:h((r-v.percent)/p,1);d.easingFunc&&(m=d.easingFunc(m));var y=n?this._additiveValue:u?$a:e[l];if((Ws(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=m<1?v.rawValue:d.rawValue;else if(Ws(a))a===Us?ac(y,v[i],d[i],m):DA(y,v[i],d[i],m);else if(am(a)){var _=v[i],b=d[i],S=a===oc;e[l]={type:S?"linear":"radial",x:kr(_.x,b.x,m),y:kr(_.y,b.y,m),colorStops:$(_.colorStops,function(x,C){var D=b.colorStops[C];return{offset:kr(x.offset,D.offset,m),color:Gs(ac([],x.color,D.color,m))}}),global:b.global},S?(e[l].x2=kr(_.x2,b.x2,m),e[l].y2=kr(_.y2,b.y2,m)):e[l].r=kr(_.r,b.r,m)}else if(u)ac(y,v[i],d[i],m),n||(e[l]=Gs(y));else{var w=kr(v[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===Hs?e[n]=e[n]+i:r===Ya?(Kt(e[n],$a),zs($a,$a,i,1),e[n]=Gs($a)):r===Us?zs(e[n],e[n],i,1):r===nm&&rm(e[n],e[n],i,1)},t})(),lc=(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){fg("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 PA(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,h=c[c.length-1];u=h&&h.value,f.valType===Ya&&u&&(u=Gs(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Vs(u),i),this._trackKeys.push(s)}l.addKeyframe(e,Vs(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 h=new mA({life:i,loop:this._loop,delay:this._delay||0,onframe:function(v){r._started=2;var d=r._additiveAnimators;if(d){for(var g=!1,p=0;p<d.length;p++)if(d[p]._clip){g=!0;break}g||(r._additiveAnimators=null)}for(var p=0;p<n.length;p++)n[p].step(r._target,v);var m=r._onframeCbs;if(m)for(var p=0;p<m.length;p++)m[p](r._target,v)},ondestroy:function(){r._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),e&&h.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]=Vs(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})(),Rr=(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})(),om=1;ie.hasGlobalWindow&&(om=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var sm=om,uc=.4,fc="#333",cc="#ccc",EA="#eee",Zt=1,Xa=2,ki=4,hc="__zr_normal__",vc=As.concat(["ignore"]),kA=Kr(As,function(t,e){return t[e]=!0,t},{ignore:!1}),Ri={},RA=new ne(0,0,0,0),Ys=[],$s=0,Xs=1,qs=(function(){function t(e){this.id=ug(),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,h=void 0;if((c||f)&&(h=RA,n.layoutRect?h.copy(n.layoutRect):h.copy(this.getBoundingRect()),i||h.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Ri,n,h):Cs(Ri,n,h),a.x=Ri.x,a.y=Ri.y,o=Ri.align,s=Ri.verticalAlign;var v=n.origin;if(v&&n.rotation!=null){var d=void 0,g=void 0;v==="center"?(d=h.width*.5,g=h.height*.5):(d=In(v[0],h.width),g=In(v[1],h.height)),u=!0,a.originX=-a.x+d+(i?0:h.x),a.originY=-a.y+g+(i?0:h.y)}}n.rotation!=null&&(a.rotation=n.rotation);var p=n.offset;p&&(a.x+=p[0],a.y+=p[1],u||(a.originX=-p[0],a.originY=-p[1]));var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=m.overflowRect=m.overflowRect||new ne(0,0,0,0);a.getLocalTransform(Ys),Na(Ys,Ys),ne.copy(y,h),y.applyTransform(Ys)}else m.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,b=void 0,S=void 0,w=void 0;_&&this.canBeInsideText()?(b=n.insideFill,S=n.insideStroke,(b==null||b==="auto")&&(b=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(b),w=!0)):(b=n.outsideFill,S=n.outsideStroke,(b==null||b==="auto")&&(b=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(b),w=!0)),b=b||"#000",(b!==m.fill||S!==m.stroke||w!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=b,m.stroke=S,m.autoStroke=w,m.align=o,m.verticalAlign=s,r.setDefaultTextStyle(m)),r.__dirty|=Zt,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()?cc:fc},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Kt(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,Ua(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!==hc)){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,vc)},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(hc,!1,e)},t.prototype.useState=function(e,r,n,i){var a=e===hc,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){fg("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=this._textContent,c=um(this,f,u,i);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,u,this._normalState,r,cm(this,n,l),l);var h=this._textGuide;return f&&f.useState(e,r,n,!!c),h&&h.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=$s,this.__dirty&=~Zt),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],h=this._textContent,v=um(this,h,c,n);v&&!this.__inHover&&(this.__inHover=v);var d=this._mergeStates(i),g=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,cm(this,r,g),g);var p=this._textGuide;h&&h.useStates(e,r,!!v),p&&p.useStates(e,r,!!v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this.__inHover=$s,this.__dirty&=~Zt)}},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!==Xs){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<vc.length;f++){var c=vc[f],h=a&&kA[c];r&&r[c]!=null?h?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&n[c]!=null&&(h?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!a)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],d=v.targetName;v.getLoop()||v.__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 Va,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|=Zt;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 lc(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){dc(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){dc(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,i){for(var a=dc(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=$s,e.__dirty=Zt;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})();Xt(qs,Rr),Xt(qs,Va);function dc(t,e,r,n,i){r=r||{};var a=[];lm(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,g){r.during(g)});for(var h=0;h<a.length;h++){var v=a[h];f&&v.done(f),c&&v.aborted(c),r.force&&v.duration(r.duration),v.start(r.easing)}return a}function pc(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function OA(t){return vt(t[0])}function NA(t,e,r){if(vt(e[r]))if(vt(t[r])||(t[r]=[]),dt(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),pc(t[r],e[r],n))}else{var i=e[r],a=t[r],o=i.length;if(OA(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?pc(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else pc(a,i,o);a.length=i.length}else t[r]=e[r]}function BA(t,e){return t===e||vt(t)&&vt(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 lm(t,e,r,n,i,a,o,s){for(var l=ce(n),u=i.duration,f=i.delay,c=i.additive,h=i.setToFinal,v=!j(a),d=t.animators,g=[],p=0;p<l.length;p++){var m=l[p],y=n[m];if(y!=null&&r[m]!=null&&(v||a[m]))if(j(y)&&!vt(y)&&!xf(y)){if(e){s||(r[m]=y,t.updateDuringAnimation(e));continue}lm(t,m,r[m],y,i,a&&a[m],o,s)}else g.push(m);else s||(r[m]=y,t.updateDuringAnimation(e),g.push(m))}var _=g.length;if(!c&&_)for(var b=0;b<d.length;b++){var S=d[b];if(S.targetName===e){var w=S.stopTracks(g);if(w){var x=fe(d,S);d.splice(x,1)}}}if(i.force||(g=Ye(g,function(A){return!BA(n[A],r[A])}),_=g.length),_>0||i.force&&!o.length){var C=void 0,D=void 0,T=void 0;if(s){D={},h&&(C={});for(var b=0;b<_;b++){var m=g[b];D[m]=r[m],h?C[m]=n[m]:r[m]=n[m]}}else if(h){T={};for(var b=0;b<_;b++){var m=g[b];T[m]=Vs(r[m]),NA(r,n,m)}}var S=new lc(r,!1,!1,c?Ye(d,function(I){return I.targetName===e}):null);S.targetName=e,i.scope&&(S.scope=i.scope),h&&C&&S.whenWithKeys(0,C,g),T&&S.whenWithKeys(0,T,g),S.whenWithKeys(u??500,s?D:n,g).delay(f||0),t.addAnimator(S,e),o.push(S)}}function um(t,e,r,n){return!(r&&r.hoverLayer||n)||fm(t)||e&&fm(e)?$s:Xs}function fm(t){return t.type==="text"||t.type==="tspan"}function cm(t,e,r){return!e&&!t.__inHover&&r&&r.duration>0}var gc="__zr_style_"+Math.round(Math.random()*10),Rn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ks={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Rn[gc]=!0;var hm=["z","z2","invisible"],zA=["invisible"],qa=(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&&VA(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|=Xa,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Xa)},e.prototype.styleUpdated=function(){this.__dirty&=~Xa},e.prototype.createStyle=function(r){return bs(Rn,r)},e.prototype.useStyle=function(r){r[gc]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},e.prototype._useHoverStyle=function(r){this.__hoverStyle=r},e.prototype.isStyleObject=function(r){return r[gc]},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,hm)},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===Xs,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 h=ce(c),v=0;v<h.length;v++){var d=h[v];d in f&&(f[d]=f[d],this.style[d]=c[d])}for(var g=ce(f),v=0;v<g.length;v++){var d=g[v];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 p=this.__inHover?zA:hm,v=0;v<p.length;v++){var d=p[v];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 Ks},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=Zt|Xa})(),e})(qs),mc=new ne(0,0,0,0),yc=new ne(0,0,0,0);function VA(t,e,r){return mc.copy(t.getBoundingRect()),t.transform&&mc.applyTransform(t.transform),yc.width=e,yc.height=r,!mc.intersect(yc)}var Lt=Math.min,It=Math.max,_c=Math.sin,bc=Math.cos,On=Math.PI*2,Zs=Ti(),js=Ti(),Qs=Ti();function vm(t,e,r,n,i,a){i[0]=Lt(t,r),i[1]=Lt(e,n),a[0]=It(t,r),a[1]=It(e,n)}var dm=[],pm=[];function GA(t,e,r,n,i,a,o,s,l,u){var f=Hg,c=Xe,h=f(t,r,i,o,dm);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<h;v++){var d=c(t,r,i,o,dm[v]);l[0]=Lt(d,l[0]),u[0]=It(d,u[0])}h=f(e,n,a,s,pm);for(var v=0;v<h;v++){var g=c(e,n,a,s,pm[v]);l[1]=Lt(g,l[1]),u[1]=It(g,u[1])}l[0]=Lt(t,l[0]),u[0]=It(t,u[0]),l[0]=Lt(o,l[0]),u[0]=It(o,u[0]),l[1]=Lt(e,l[1]),u[1]=It(e,u[1]),l[1]=Lt(s,l[1]),u[1]=It(s,u[1])}function HA(t,e,r,n,i,a,o,s){var l=Wg,u=pt,f=It(Lt(l(t,r,i),1),0),c=It(Lt(l(e,n,a),1),0),h=u(t,r,i,f),v=u(e,n,a,c);o[0]=Lt(t,i,h),o[1]=Lt(e,a,v),s[0]=It(t,i,h),s[1]=It(e,a,v)}function UA(t,e,r,n,i,a,o,s,l){var u=Ai,f=Di,c=Math.abs(i-a);if(c%On<1e-4&&c>1e-4){s[0]=t-r,s[1]=e-n,l[0]=t+r,l[1]=e+n;return}if(Zs[0]=bc(i)*r+t,Zs[1]=_c(i)*n+e,js[0]=bc(a)*r+t,js[1]=_c(a)*n+e,u(s,Zs,js),f(l,Zs,js),i=i%On,i<0&&(i=i+On),a=a%On,a<0&&(a=a+On),i>a&&!o?a+=On:i<a&&o&&(i+=On),o){var h=a;a=i,i=h}for(var v=0;v<a;v+=Math.PI/2)v>i&&(Qs[0]=bc(v)*r+t,Qs[1]=_c(v)*n+e,u(s,Qs,s),f(l,Qs,l))}var _e={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Nn=[],Bn=[],br=[],en=[],Sr=[],wr=[],Sc=Math.min,wc=Math.max,Fn=Math.cos,zn=Math.sin,Or=Math.abs,xc=Math.PI,tn=xc*2,Tc=typeof Float32Array<"u",Ka=[];function Cc(t){var e=Math.round(t/xc*1e8)/1e8;return e%2*xc}function Ac(t,e){var r=Cc(t[0]);r<0&&(r+=tn);var n=r-t[0],i=t[1];i+=n,!e&&i-r>=tn?i=r+tn:e&&r-i>=tn?i=r-tn:!e&&r>i?i=r+(tn-Cc(r-i)):e&&r<i&&(i=r-(tn-Cc(i-r))),t[0]=r,t[1]=i}var rn=(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=Or(n/sm/e)||0,this._uy=Or(n/sm/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=Or(e-this._xi),i=Or(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(),Ka[0]=i,Ka[1]=a,Ac(Ka,o),i=Ka[0],a=Ka[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=Fn(a)*n+e,this._yi=zn(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)&&Tc&&(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(Tc&&(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,Tc&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){br[0]=br[1]=Sr[0]=Sr[1]=Number.MAX_VALUE,en[0]=en[1]=wr[0]=wr[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++],Sr[0]=i,Sr[1]=a,wr[0]=i,wr[1]=a;break;case _e.L:vm(r,n,e[o],e[o+1],Sr,wr),r=e[o++],n=e[o++];break;case _e.C:GA(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Sr,wr),r=e[o++],n=e[o++];break;case _e.Q:HA(r,n,e[o++],e[o++],e[o],e[o+1],Sr,wr),r=e[o++],n=e[o++];break;case _e.A:var u=e[o++],f=e[o++],c=e[o++],h=e[o++],v=e[o++],d=e[o++]+v;o+=1;var g=!e[o++];l&&(i=Fn(v)*c+u,a=zn(v)*h+f),UA(u,f,c,h,v,d,g,Sr,wr),r=Fn(d)*c+u,n=zn(d)*h+f;break;case _e.R:i=r=e[o++],a=n=e[o++];var p=e[o++],m=e[o++];vm(i,a,i+p,a+m,Sr,wr);break;case _e.Z:r=i,n=a;break}Ai(br,br,Sr),Di(en,en,wr)}return o===0&&(br[0]=br[1]=en[0]=en[1]=0),new ne(br[0],br[1],en[0]-br[0],en[1]-br[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,h=0;h<r;){var v=e[h++],d=h===1;d&&(a=e[h],o=e[h+1],s=a,l=o);var g=-1;switch(v){case _e.M:a=s=e[h++],o=l=e[h++];break;case _e.L:{var p=e[h++],m=e[h++],y=p-a,_=m-o;(Or(y)>n||Or(_)>i||h===r-1)&&(g=Math.sqrt(y*y+_*_),a=p,o=m);break}case _e.C:{var b=e[h++],S=e[h++],p=e[h++],m=e[h++],w=e[h++],x=e[h++];g=hA(a,o,b,S,p,m,w,x,10),a=w,o=x;break}case _e.Q:{var b=e[h++],S=e[h++],p=e[h++],m=e[h++];g=pA(a,o,b,S,p,m,10),a=p,o=m;break}case _e.A:var C=e[h++],D=e[h++],T=e[h++],A=e[h++],I=e[h++],M=e[h++],P=M+I;h+=1,d&&(s=Fn(I)*T+C,l=zn(I)*A+D),g=wc(T,A)*Sc(tn,Math.abs(M)),a=Fn(P)*T+C,o=zn(P)*A+D;break;case _e.R:{s=a=e[h++],l=o=e[h++];var E=e[h++],k=e[h++];g=E*2+k*2;break}case _e.Z:{var y=s-a,_=l-o;g=Math.sqrt(y*y+_*_),a=s,o=l;break}}g>=0&&(u[c++]=g,f+=g)}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,h,v=r<1,d,g,p=0,m=0,y,_=0,b,S;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,g=this._pathLen,y=r*g,!y)))e:for(var w=0;w<o;){var x=n[w++],C=w===1;switch(C&&(u=n[w],f=n[w+1],s=u,l=f),x!==_e.L&&_>0&&(e.lineTo(b,S),_=0),x){case _e.M:s=u=n[w++],l=f=n[w++],e.moveTo(u,f);break;case _e.L:{c=n[w++],h=n[w++];var D=Or(c-u),T=Or(h-f);if(D>i||T>a){if(v){var A=d[m++];if(p+A>y){var I=(y-p)/A;e.lineTo(u*(1-I)+c*I,f*(1-I)+h*I);break e}p+=A}e.lineTo(c,h),u=c,f=h,_=0}else{var M=D*D+T*T;M>_&&(b=c,S=h,_=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(v){var A=d[m++];if(p+A>y){var I=(y-p)/A;Ps(u,P,k,R,I,Nn),Ps(f,E,O,N,I,Bn),e.bezierCurveTo(Nn[1],Bn[1],Nn[2],Bn[2],Nn[3],Bn[3]);break e}p+=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(v){var A=d[m++];if(p+A>y){var I=(y-p)/A;Es(u,P,k,I,Nn),Es(f,E,O,I,Bn),e.quadraticCurveTo(Nn[1],Bn[1],Nn[2],Bn[2]);break e}p+=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++],Z=n[w++],ae=n[w++],Re=!n[w++],Me=G>X?G:X,he=Or(G-X)>.001,Te=H+Z,J=!1;if(v){var A=d[m++];p+A>y&&(Te=H+Z*(y-p)/A,J=!0),p+=A}if(he&&e.ellipse?e.ellipse(F,B,G,X,ae,H,Te,Re):e.arc(F,B,Me,H,Te,Re),J)break e;C&&(s=Fn(H)*G+F,l=zn(H)*X+B),u=Fn(Te)*G+F,f=zn(Te)*X+B;break;case _e.R:s=u=n[w],l=f=n[w+1],c=n[w++],h=n[w++];var se=n[w++],yt=n[w++];if(v){var A=d[m++];if(p+A>y){var Oe=y-p;e.moveTo(c,h),e.lineTo(c+Sc(Oe,se),h),Oe-=se,Oe>0&&e.lineTo(c+se,h+Sc(Oe,yt)),Oe-=yt,Oe>0&&e.lineTo(c+wc(se-Oe,0),h+yt),Oe-=se,Oe>0&&e.lineTo(c,h+wc(yt-Oe,0));break e}p+=A}e.rect(c,h,se,yt);break;case _e.Z:if(v){var A=d[m++];if(p+A>y){var I=(y-p)/A;e.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break e}p+=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 Oi(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 WA(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 h=cA(t,e,r,n,i,a,o,s,u,f);return h<=c/2}function YA(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=dA(t,e,r,n,i,a,s,l);return f<=u/2}var gm=Math.PI*2;function Js(t){return t%=gm,t<0&&(t+=gm),t}var Za=Math.PI*2;function $A(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)%Za<1e-4)return!0;if(a){var c=n;n=Js(i),i=Js(c)}else n=Js(n),i=Js(i);n>i&&(i+=Za);var h=Math.atan2(l,s);return h<0&&(h+=Za),h>=n&&h<=i||h+Za>=n&&h+Za<=i}function Vn(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 nn=rn.CMD,Gn=Math.PI*2,XA=1e-4;function qA(t,e){return Math.abs(t-e)<XA}var at=[-1,-1,-1],Pt=[-1,-1];function KA(){var t=Pt[0];Pt[0]=Pt[1],Pt[1]=t}function ZA(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=Is(e,n,a,s,u,at);if(f===0)return 0;for(var c=0,h=-1,v=void 0,d=void 0,g=0;g<f;g++){var p=at[g],m=p===0||p===1?.5:1,y=Xe(t,r,i,o,p);y<l||(h<0&&(h=Hg(e,n,a,s,Pt),Pt[1]<Pt[0]&&h>1&&KA(),v=Xe(e,n,a,s,Pt[0]),h>1&&(d=Xe(e,n,a,s,Pt[1]))),h===2?p<Pt[0]?c+=v<e?m:-m:p<Pt[1]?c+=d<v?m:-m:c+=s<d?m:-m:p<Pt[0]?c+=v<e?m:-m:c+=s<v?m:-m)}return c}function jA(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=vA(e,n,a,s,at);if(l===0)return 0;var u=Wg(e,n,a);if(u>=0&&u<=1){for(var f=0,c=pt(e,n,a,u),h=0;h<l;h++){var v=at[h]===0||at[h]===1?.5:1,d=pt(t,r,i,at[h]);d<o||(at[h]<u?f+=c<e?v:-v:f+=a<c?v:-v)}return f}else{var v=at[0]===0||at[0]===1?.5:1,d=pt(t,r,i,at[0]);return d<o?0:a<e?v:-v}}function QA(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);at[0]=-l,at[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>=at[0]+t&&o<=at[1]+t?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=Gn,i+=Gn);for(var h=0,v=0;v<2;v++){var d=at[v];if(d+t>o){var g=Math.atan2(s,d),f=a?1:-1;g<0&&(g=Gn+g),(g>=n&&g<=i||g+Gn>=n&&g+Gn<=i)&&(g>Math.PI/2&&g<Math.PI*1.5&&(f=-f),h+=f)}}return h}function mm(t,e,r,n,i){for(var a=t.data,o=t.len(),s=0,l=0,u=0,f=0,c=0,h,v,d=0;d<o;){var g=a[d++],p=d===1;switch(g===nn.M&&d>1&&(r||(s+=Vn(l,u,f,c,n,i))),p&&(l=a[d],u=a[d+1],f=l,c=u),g){case nn.M:f=a[d++],c=a[d++],l=f,u=c;break;case nn.L:if(r){if(Oi(l,u,a[d],a[d+1],e,n,i))return!0}else s+=Vn(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case nn.C:if(r){if(WA(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=ZA(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 nn.Q:if(r){if(YA(l,u,a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=jA(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case nn.A:var m=a[d++],y=a[d++],_=a[d++],b=a[d++],S=a[d++],w=a[d++];d+=1;var x=!!(1-a[d++]);h=Math.cos(S)*_+m,v=Math.sin(S)*b+y,p?(f=h,c=v):s+=Vn(l,u,h,v,n,i);var C=(n-m)*b/_+m;if(r){if($A(m,y,b,S,S+w,x,e,C,i))return!0}else s+=QA(m,y,b,S,S+w,x,C,i);l=Math.cos(S+w)*_+m,u=Math.sin(S+w)*b+y;break;case nn.R:f=l=a[d++],c=u=a[d++];var D=a[d++],T=a[d++];if(h=f+D,v=c+T,r){if(Oi(f,c,h,c,e,n,i)||Oi(h,c,h,v,e,n,i)||Oi(h,v,f,v,e,n,i)||Oi(f,v,f,c,e,n,i))return!0}else s+=Vn(h,c,h,v,n,i),s+=Vn(f,v,f,c,n,i);break;case nn.Z:if(r){if(Oi(l,u,f,c,e,n,i))return!0}else s+=Vn(l,u,f,c,n,i);l=f,u=c;break}}return!r&&!qA(u,c)&&(s+=Vn(l,u,f,c,n,i)||0),s!==0}function JA(t,e,r){return mm(t,0,!1,e,r)}function eD(t,e,r,n){return mm(t,e,!0,r,n)}var el=le({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Rn),tD={style:le({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ks.style)},Dc=As.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<Dc.length;++s)i[Dc[s]]=this[Dc[s]];i.__dirty|=Zt}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=Os(r,0);return n>.5?fc:n>.2?EA:cc}else if(r)return cc}return fc},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(q(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Os(r,0)<uc;if(a===o)return n}},e.prototype.buildPath=function(r,n,i){},e.prototype.pathUpdated=function(){this.__dirty&=~ki},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 rn(!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&ki)&&(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)),eD(s,l/u,r,n)))return!0}if(this.hasFill())return JA(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=ki,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&ki)},e.prototype.createStyle=function(r){return bs(el,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!==Xs){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),h=0;h<c.length;h++){var v=c[h];typeof u[v]=="object"?this.shape[v]=u[v]:f[v]=u[v]}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 tD},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=Zt|Xa|ki})(),e})(qa),rD=le({strokeFirst:!0,font:Er,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},el),ja=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return Og(this.style)},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return bs(rD,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=uA(this.style)),this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(qa);ja.prototype.type="tspan";var nD=le({x:0,y:0},Rn),iD={style:le({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ks.style)};function aD(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var Et=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return bs(nD,r)},e.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=aD(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 iD},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})(qa);Et.prototype.type="image";function oD(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 Ni=Math.round;function ym(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&&(Ni(n*2)===Ni(i*2)&&(t.x1=t.x2=Hn(n,s,!0)),Ni(a*2)===Ni(o*2)&&(t.y1=t.y2=Hn(a,s,!0))),t}}function _m(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=Hn(n,s,!0),t.y=Hn(i,s,!0),t.width=Math.max(Hn(n+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(Hn(i+o,s,!1)-t.y,o===0?0:1)),t}}function Hn(t,e,r){if(!e)return t;var n=Ni(t*2);return(n+Ni(e))%2===0?n/2:(n+(r?1:-1))/2}var sD=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})(),lD={},Le=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new sD},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=_m(lD,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?oD(r,n):r.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(pe);Le.prototype.type="rect";var bm={fill:"#000"},Sm=2,xr={},uD={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},Ks.style)},Ie=(function(t){V(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=bm,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,hD(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||bm},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 uD},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||Er,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";Eg(xr,a.overflowRect,o,s,l,u),o=xr.baseX,s=xr.baseY;var f=Im(r),c=rA(f,r,xr.outerWidth,xr.outerHeight),h=Mc(r),v=!!r.backgroundColor,d=c.outerHeight,g=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,_=Ln(s,c.contentHeight,u);if(h||i){var b=Li(o,g,l),S=Ln(s,d,u);h&&this._renderBackground(r,r,b,S,g,d)}_+=m/2,i&&(y=Lm(o,l,i),u==="top"?_+=i[0]:u==="bottom"&&(_-=i[2]));for(var w=0,x=!1,C=!1,D=Mm("fill"in r?r.fill:(C=!0,a.fill)),T=Dm("stroke"in r?r.stroke:!v&&(!a.autoStroke||C)?(w=Sm,x=!0,a.stroke):null),A=r.textShadowBlur>0,I=0;I<p.length;I++){var M=this._getOrCreateChild(ja),P=M.createStyle();M.useStyle(P),P.text=p[I],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=T,P.fill=D,T&&(P.lineWidth=r.lineWidth||w,P.lineDash=r.lineDash,P.lineDashOffset=r.lineDashOffset||0),P.font=n,Tm(P,r),_+=m,M.setBoundingRect(Yf(P,c.contentWidth,c.calculatedLineHeight,x?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;Eg(xr,n.overflowRect,o,s,i,a),o=xr.baseX,s=xr.baseY;var l=Im(r),u=aA(l,r,xr.outerWidth,xr.outerHeight,i),f=u.width,c=u.outerWidth,h=u.outerHeight,v=r.padding;this.isTruncated=!!u.isTruncated;var d=Li(o,c,i),g=Ln(s,h,a),p=d,m=g;v&&(p+=v[3],m+=v[0]);var y=p+f;Mc(r)&&this._renderBackground(r,r,d,g,c,h);for(var _=!!r.backgroundColor,b=0;b<u.lines.length;b++){for(var S=u.lines[b],w=S.tokens,x=w.length,C=S.lineHeight,D=S.width,T=0,A=p,I=y,M=x-1,P=void 0;T<x&&(P=w[T],!P.align||P.align==="left");)this._placeToken(P,r,C,m,A,"left",_),D-=P.width,A+=P.width,T++;for(;M>=0&&(P=w[M],P.align==="right");)this._placeToken(P,r,C,m,I,"right",_),D-=P.width,I-=P.width,M--;for(A+=(f-(A-p)-(y-I)-D)/2;T<=M;)P=w[T],this._placeToken(P,r,C,m,A+P.width/2,"center",_),A+=P.width,T++;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 h=!r.isLineHolder&&Mc(u);h&&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 v=!!u.backgroundColor,d=r.textPadding;d&&(o=Lm(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var g=this._getOrCreateChild(ja),p=g.createStyle();g.useStyle(p);var m=this._defaultStyle,y=!1,_=0,b=!1,S=Mm("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),w=Dm("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!m.autoStroke||y)?(_=Sm,b=!0,m.stroke):null),x=u.textShadowBlur>0||n.textShadowBlur>0;p.text=r.text,p.x=o,p.y=c,x&&(p.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,p.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=r.font||Er,p.opacity=wn(u.opacity,n.opacity,1),Tm(p,u),w&&(p.lineWidth=wn(u.lineWidth,n.lineWidth,_),p.lineDash=K(u.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=w),S&&(p.fill=S),g.setBoundingRect(Yf(p,r.contentWidth,r.contentHeight,b?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,h=l&&!c,v=r.borderRadius,d=this,g,p;if(h||r.lineHeight||u&&f){g=this._getOrCreateChild(Le),g.useStyle(g.createStyle()),g.style.fill=null;var m=g.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=v,g.dirtyShape()}if(h){var y=g.style;y.fill=l||null,y.fillOpacity=K(r.fillOpacity,1)}else if(c){p=this._getOrCreateChild(Et),p.onload=function(){d.dirtyStyle()};var _=p.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var y=g.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=K(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var b=(g||p).style;b.shadowBlur=r.shadowBlur||0,b.shadowColor=r.shadowColor||"transparent",b.shadowOffsetX=r.shadowOffsetX||0,b.shadowOffsetY=r.shadowOffsetY||0,b.opacity=wn(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return Cm(r)&&(n=[r.fontStyle,r.fontWeight,xm(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&dr(n)||r.textFont||r.font},e})(qa),fD={left:!0,right:1,center:1},cD={top:1,bottom:1,middle:1},wm=["fontStyle","fontWeight","fontSize","fontFamily"];function xm(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?yf+"px":t+"px"}function Tm(t,e){for(var r=0;r<wm.length;r++){var n=wm[r],i=e[n];i!=null&&(t[n]=i)}}function Cm(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function hD(t){return Am(t),L(t.rich,Am),t}function Am(t){if(t){t.font=Ie.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||fD[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||cD[r]?r:"top";var n=t.padding;n&&(t.padding=Cf(t.padding))}}function Dm(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function Mm(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function Lm(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function Im(t){var e=t.text;return e!=null&&(e+=""),e}function Mc(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var Pm=1e-4,Em=20,vD=14;function dD(t){return t.replace(/^\s+|\s+$/g,"")}var je=Math.min,ge=Math.max,Fe=Math.abs,Nr=Math.round,Un=Math.floor,Qa=Math.ceil,Wn=Math.pow,Ja=Math.log,Lc=Math.LN10,pD=Math.PI,gD=Math.random;function kt(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=mD;function mD(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 Ic(t,e,r)}function Ic(t,e,r){return q(t)?yD(t)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function yD(t){return!!dD(t).match(/%$/)}function ve(t,e,r){return isNaN(e)?r?""+t:+t:(e=je(ge(0,e),Em),t=(+t).toFixed(e),r?t:+t)}function Pc(t){return t.sort(function(e,r){return e-r}),t}function an(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Nr(t*e)/e===t)return r}return _D(t)}function _D(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 bD(t,e,r){var n=Fe(t[1]-t[0]);if(!isFinite(n)||n===0)return NaN;var i=Ja(2*Fe(r||1)*Fe(n))/Lc,a=Ja(Fe(e))/Lc,o=ge(0,Qa(-i+a));return isFinite(o)||(o=NaN),o}function SD(t,e){var r=Kr(t,function(v,d){return v+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Wn(10,e),i=$(t,function(v){return(isNaN(v)?0:v)/r*n*100}),a=n*100,o=$(i,function(v){return Un(v)}),s=Kr(o,function(v,d){return v+d},0),l=$(i,function(v,d){return v-o[d]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,h=l.length;c<h;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return $(o,function(v){return v/n})}function wD(t,e){var r=ge(an(t),an(e)),n=t+e;return r>Em?n:ve(n,r)}var km=Wn(2,53)-1;function Rm(t){var e=pD*2;return(t%e+e)%e}function tl(t){return t>-Pm&&t<Pm}var xD=/^(?:(\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 Bi(t){if(t instanceof Date)return t;if(q(t)){var e=xD.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(Nr(t))}function Om(t){return Wn(10,Ec(t))}function Ec(t){if(t===0)return 0;var e=Un(Ja(t)/Lc);return t/Wn(10,e)>=10&&e++,e}var Nm=2;function kc(t,e){var r=Ec(t),n=Wn(10,r),i=t/n,a;return e===Nm?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 rl(t){var e=parseFloat(t);return e==t&&(e!==0||!q(t)||t.indexOf("x")<=0)?e:NaN}function TD(t){return!isNaN(rl(t))}function Rc(){return Nr(gD()*9)}function Bm(t,e){return e===0?t:Bm(e,t%e)}function Fm(t,e){return t==null?e:e==null?t:t*e/Bm(t,e)}function Rt(t){return t!=null&&isFinite(t)}var CD="[ECharts] ",AD=typeof console<"u"&&console.warn&&console.log;function DD(t,e,r){AD&&console[t](CD+e)}function zm(t,e){DD("error",t)}function gt(t){throw new Error(t)}function Vm(t,e,r){return(e-t)*r+t}var Gm="series\0",MD="\0_ec_\0";function ot(t){return t instanceof Array?t:t==null?[]:[t]}function nl(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 Hm=["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 eo(t){return j(t)&&!W(t)&&!(t instanceof Date)?t.value:t}function LD(t){return j(t)&&!(t instanceof Array)}function ID(t,e,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=te();L(e,function(l,u){if(!j(l)){e[u]=null;return}});var s=PD(t,o,r);return(n||i)&&ED(s,t,o,e),n&&kD(s,e),n||i?RD(s,e,i):a&&OD(s,e),ND(s),s}function PD(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"||ro(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function ED(t,e,r,n){L(n,function(i,a){if(!(!i||i.id==null)){var o=to(i.id),s=r.get(o);if(s!=null){var l=t[s];qt(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=e[s],n[a]=null}}})}function kD(t,e){L(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)&&!ro(r)&&!ro(a)&&Um("name",a,r)){t[i].newOption=r,e[n]=null;return}}})}function RD(t,e,r){L(e,function(n){if(n){for(var i,a=0;(i=t[a])&&(i.newOption||ro(i.existing)||i.existing&&n.id!=null&&!Um("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function OD(t,e){L(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function ND(t){var e=te();L(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),L(t,function(r){var n=r.newOption;qt(!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={})}),L(t,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(j(a)){if(o.name=a.name!=null?to(a.name):i?i.name:Gm+n,i)o.id=to(i.id);else if(a.id!=null)o.id=to(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 Um(t,e,r){var n=Tr(e[t],null),i=Tr(r[t],null);return n!=null&&i!=null&&n===i}function to(t){return Tr(t,"")}function Tr(t,e){return t==null?e:q(t)?t:me(t)||wf(t)?t+"":e}function Oc(t){var e=t.name;return!!(e&&e.indexOf(Gm))}function ro(t){return t&&t.id!=null&&to(t.id).indexOf(MD)===0}function BD(t,e,r){L(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 Yn(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 be(){var t="__ec_inner_"+zD++;return function(e){return e[t]||(e[t]={})}}var zD=Rc();function Nc(t,e,r){var n=Bc(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=no(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 Bc(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 L(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 h=i.get(f)||i.set(f,{});h[c]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Ot={useDefault:!0,enableAll:!1,enableNone:!1};function no(t,e,r,n){n=n||Ot;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 VD(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 GD(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function HD(t){return t==="auto"?ie.domSupported?"html":"richText":t||"html"}function Ym(t,e,r,n,i){var a=e==null||e==="auto";if(n==null)return n;if(me(n)){var o=Vm(r||0,n,i);return ve(o,a?Math.max(an(r||0),an(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 h=t.getDimensionInfo(c);if(h&&h.type==="ordinal")s[c]=(i<1&&l?l:u)[c];else{var v=l&&l[c]?l[c]:0,d=u[c],o=Vm(v,d,i);s[c]=ve(o,a?Math.max(an(v),an(d)):e)}}return s}}function Nt(){return[1/0,-1/0]}function Fc(t,e){Br(e)&&(e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e))}function $m(t,e){Br(e)&&e<t[0]&&(t[0]=e)}function Xm(t,e){Br(e)&&e>t[1]&&(t[1]=e)}function UD(t,e){Fi(e[0],e[1])&&(e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]))}function Br(t){return t!=null&&isFinite(t)}function Fi(t,e){return Br(t)&&Br(e)&&t<=e}function WD(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}function YD(t){Fi(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function qm(){var t="__ec_once_"+$D++;return function(e,r){it(e,t)||(e[t]=1,r())}}var $D=Rc();function zc(t,e,r){var n=te(),i=0;L(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 XD(t){return t.value+""}function qD(t){return t+""}function Km(t,e){return K(e,!0)?t.seriesIndex+2:0}function Zm(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 Vc(t,e){return{seriesType:t,overallReset:e}}function Gc(t){return{overallReset:t}}var ue=be(),Hc=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"})}},zi="undefined",jm="series",Qm=te(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),wt="original",Qe="arrayRows",Bt="objectRows",jt="keyedColumns",on="typedArray",Jm="unknown",Qt="column",$n="row",KD=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ey=(function(){function t(e){L(KD,function(r){this[r]=de(e[r],e)},this)}return t})();function ZD(t,e){return e.mainType===jm?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}var ty=1,ry={},ny=be(),Uc=be(),Wc=0,il=1,al=2,Ft=["emphasis","blur","select"],ol=["normal","emphasis","blur","select"],jD=10,QD=9,Xn="highlight",sl="downplay",ll="select",Yc="unselect",ul="toggleSelect",$c="selectchanged";function Vi(t){return t!=null&&t!=="none"}function fl(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function iy(t){fl(t,"emphasis",al)}function ay(t){t.hoverState===al&&fl(t,"normal",Wc)}function Xc(t){fl(t,"blur",il)}function oy(t){t.hoverState===il&&fl(t,"normal",Wc)}function JD(t){t.selected=!0}function eM(t){t.selected=!1}function sy(t,e,r){e(t,r)}function Fr(t,e,r){sy(t,e,r),t.isGroup&&t.traverse(function(n){sy(n,e,r)})}function ly(t,e){switch(e){case"emphasis":t.hoverState=al;break;case"normal":t.hoverState=Wc;break;case"blur":t.hoverState=il;break;case"select":t.selected=!0}}function tM(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 rM(t,e,r,n){var i=r&&fe(r,"select")>=0,a=!1;if(t instanceof pe){var o=ny(t),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Vi(s)||Vi(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=z({},n),u=z({},u),u.fill=s):!Vi(u.fill)&&Vi(s)?(a=!0,n=z({},n),u=z({},u),u.fill=tc(s)):!Vi(u.stroke)&&Vi(l)&&(a||(n=z({},n),u=z({},u)),u.stroke=tc(l)),n.style=u}}if(n&&n.z2==null){a||(n=z({},n));var f=t.z2EmphasisLift;n.z2=t.z2+(f??jD)}return n}function nM(t,e,r){if(r&&r.z2==null){r=z({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??QD)}return r}function iM(t,e,r){var n=fe(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:tM(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 qc(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return rM(this,t,e,r);if(t==="blur")return iM(this,t,r);if(t==="select")return nM(this,t,r)}return r}function aM(t){t.stateProxy=qc;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=qc),r&&(r.stateProxy=qc)}function uy(t,e){!dy(t,e)&&!t.__highByOuter&&Fr(t,iy)}function fy(t,e){!dy(t,e)&&!t.__highByOuter&&Fr(t,ay)}function cl(t,e){t.__highByOuter|=1<<(e||0),Fr(t,iy)}function hl(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Fr(t,ay)}function oM(t){Fr(t,Xc)}function cy(t){Fr(t,oy)}function hy(t){Fr(t,JD)}function vy(t){Fr(t,eM)}function dy(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function py(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(i,a){var o=Uc(a),s=ZD(t,a),l=i==="series";!l&&n.push(s),o.isBlured&&(s.group.traverse(function(u){oy(u)}),l&&r.push(a)),o.isBlured=!1}),L(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,e)})}function Kc(t,e,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var h=u.getItemGraphicEl(f[c]);h&&cy(h)}}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 h=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!h||e==="series"&&f)){var v=n.getViewOfSeriesModel(u);if(v.group.traverse(function(p){p.__highByOuter&&f&&e==="self"||Xc(p)}),vt(e))a(u.getData(),e);else if(j(e))for(var d=ce(e),g=0;g<d.length;g++)a(u.getData(d[g]),e[d[g]]);l.push(u),Uc(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){Uc(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){Xc(a)})}}}function sM(t,e,r){var n=t.seriesIndex,i=t.getData(e.dataType);if(i){var a=Yn(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);Kc(n,u.focus,u.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);f!=null&&Kc(n,f,c,r)}}}function jc(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 lM(t,e,r){var n=ue(t),i=jc(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&Zc(n.componentMainType,n.componentIndex,r),L(a,function(s){return uy(s,e)})):(Kc(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&Zc(n.componentMainType,n.componentIndex,r),uy(t,e))}function uM(t,e,r){py(r);var n=ue(t),i=jc(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?L(i,function(a){return fy(a,e)}):fy(t,e)}function fM(t,e,r){if(eh(e)){var n=e.dataType,i=t.getData(n),a=Yn(i,e);W(a)||(a=[a]),t[e.type===ul?"toggleSelect":e.type===ll?"select":"unselect"](a,n)}}function gy(t){var e=t.getAllData();L(e,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){t.isSelected(o,i)?hy(a):vy(a)})})}function cM(t){var e=[];return t.eachSeries(function(r){var n=r.getAllData();L(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 Qc(t,e,r){yy(t,!0),Fr(t,aM),vM(t,e,r)}function hM(t){yy(t,!1)}function zr(t,e,r,n){n?hM(t):Qc(t,e,r)}function vM(t,e,r){var n=ue(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var my=["emphasis","blur","select"],dM={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Vr(t,e,r,n){r=r||"itemStyle";for(var i=0;i<my.length;i++){var a=my[i],o=e.getModel([a,r]),s=t.ensureState(a);s.style=o[dM[r]]()}}function yy(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 Jc(t){return!!(t&&t.__highDownDispatcher)}function pM(t){var e=ry[t];return e==null&&ty<=32&&(e=ry[t]=ty++),e}function eh(t){var e=t.type;return e===ll||e===Yc||e===ul}function _y(t){var e=t.type;return e===Xn||e===sl}function gM(t){var e=ny(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 Gi=rn.CMD,mM=[[],[],[]],by=Math.sqrt,yM=Math.atan2;function _M(t,e){if(e){var r=t.data,n=t.len(),i,a,o,s,l,u,f=Gi.M,c=Gi.C,h=Gi.L,v=Gi.R,d=Gi.A,g=Gi.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case h:a=1;break;case c:a=3;break;case g:a=2;break;case d:var p=e[4],m=e[5],y=by(e[0]*e[0]+e[1]*e[1]),_=by(e[2]*e[2]+e[3]*e[3]),b=yM(-e[1]/_,e[0]/y);r[o]*=y,r[o++]+=p,r[o]*=_,r[o++]+=m,r[o++]*=y,r[o++]*=_,r[o++]+=b,r[o++]+=b,o+=2,s=o;break;case v:u[0]=r[o++],u[1]=r[o++],At(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],At(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var S=mM[l];S[0]=r[o++],S[1]=r[o++],At(S,S,e),r[s++]=S[0],r[s++]=S[1]}}t.increaseVersion()}}var th=Math.sqrt,vl=Math.sin,dl=Math.cos,io=Math.PI;function Sy(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function rh(t,e){return(t[0]*e[0]+t[1]*e[1])/(Sy(t)*Sy(e))}function wy(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(rh(t,e))}function xy(t,e,r,n,i,a,o,s,l,u,f){var c=l*(io/180),h=dl(c)*(t-r)/2+vl(c)*(e-n)/2,v=-1*vl(c)*(t-r)/2+dl(c)*(e-n)/2,d=h*h/(o*o)+v*v/(s*s);d>1&&(o*=th(d),s*=th(d));var g=(i===a?-1:1)*th((o*o*(s*s)-o*o*(v*v)-s*s*(h*h))/(o*o*(v*v)+s*s*(h*h)))||0,p=g*o*v/s,m=g*-s*h/o,y=(t+r)/2+dl(c)*p-vl(c)*m,_=(e+n)/2+vl(c)*p+dl(c)*m,b=wy([1,0],[(h-p)/o,(v-m)/s]),S=[(h-p)/o,(v-m)/s],w=[(-1*h-p)/o,(-1*v-m)/s],x=wy(S,w);if(rh(S,w)<=-1&&(x=io),rh(S,w)>=1&&(x=0),x<0){var C=Math.round(x/io*1e6)/1e6;x=io*2+C%2*io}f.addData(u,y,_,o,s,b,x,c,a)}var bM=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,SM=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function wM(t){var e=new rn;if(!t)return e;var r=0,n=0,i=r,a=n,o,s=rn.CMD,l=t.match(bM);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),h=void 0,v=f.match(SM)||[],d=v.length,g=0;g<d;g++)v[g]=parseFloat(v[g]);for(var p=0;p<d;){var m=void 0,y=void 0,_=void 0,b=void 0,S=void 0,w=void 0,x=void 0,C=r,D=n,T=void 0,A=void 0;switch(c){case"l":r+=v[p++],n+=v[p++],h=s.L,e.addData(h,r,n);break;case"L":r=v[p++],n=v[p++],h=s.L,e.addData(h,r,n);break;case"m":r+=v[p++],n+=v[p++],h=s.M,e.addData(h,r,n),i=r,a=n,c="l";break;case"M":r=v[p++],n=v[p++],h=s.M,e.addData(h,r,n),i=r,a=n,c="L";break;case"h":r+=v[p++],h=s.L,e.addData(h,r,n);break;case"H":r=v[p++],h=s.L,e.addData(h,r,n);break;case"v":n+=v[p++],h=s.L,e.addData(h,r,n);break;case"V":n=v[p++],h=s.L,e.addData(h,r,n);break;case"C":h=s.C,e.addData(h,v[p++],v[p++],v[p++],v[p++],v[p++],v[p++]),r=v[p-2],n=v[p-1];break;case"c":h=s.C,e.addData(h,v[p++]+r,v[p++]+n,v[p++]+r,v[p++]+n,v[p++]+r,v[p++]+n),r+=v[p-2],n+=v[p-1];break;case"S":m=r,y=n,T=e.len(),A=e.data,o===s.C&&(m+=r-A[T-4],y+=n-A[T-3]),h=s.C,C=v[p++],D=v[p++],r=v[p++],n=v[p++],e.addData(h,m,y,C,D,r,n);break;case"s":m=r,y=n,T=e.len(),A=e.data,o===s.C&&(m+=r-A[T-4],y+=n-A[T-3]),h=s.C,C=r+v[p++],D=n+v[p++],r+=v[p++],n+=v[p++],e.addData(h,m,y,C,D,r,n);break;case"Q":C=v[p++],D=v[p++],r=v[p++],n=v[p++],h=s.Q,e.addData(h,C,D,r,n);break;case"q":C=v[p++]+r,D=v[p++]+n,r+=v[p++],n+=v[p++],h=s.Q,e.addData(h,C,D,r,n);break;case"T":m=r,y=n,T=e.len(),A=e.data,o===s.Q&&(m+=r-A[T-4],y+=n-A[T-3]),r=v[p++],n=v[p++],h=s.Q,e.addData(h,m,y,r,n);break;case"t":m=r,y=n,T=e.len(),A=e.data,o===s.Q&&(m+=r-A[T-4],y+=n-A[T-3]),r+=v[p++],n+=v[p++],h=s.Q,e.addData(h,m,y,r,n);break;case"A":_=v[p++],b=v[p++],S=v[p++],w=v[p++],x=v[p++],C=r,D=n,r=v[p++],n=v[p++],h=s.A,xy(C,D,r,n,w,x,_,b,S,h,e);break;case"a":_=v[p++],b=v[p++],S=v[p++],w=v[p++],x=v[p++],C=r,D=n,r+=v[p++],n+=v[p++],h=s.A,xy(C,D,r,n,w,x,_,b,S,h,e);break}}(c==="z"||c==="Z")&&(h=s.Z,e.addData(h),r=i,n=a),o=h}return e.toStatic(),e}var Ty=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(pe);function Cy(t){return t.setData!=null}function Ay(t,e){var r=wM(t),n=z({},e);return n.buildPath=function(i){var a=Cy(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){_M(r,i),this.dirtyShape()},n}function xM(t,e){return new Ty(Ay(t,e))}function TM(t,e){var r=Ay(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})(Ty);return n}function CM(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(Cy(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var De=(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})(qs);De.prototype.type="group";var AM=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})(),ao=(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){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e})(pe);ao.prototype.type="circle";var DM=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})(),nh=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new DM},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);nh.prototype.type="ellipse";var Dy=Math.PI,ih=Dy*2,qn=Math.sin,Hi=Math.cos,MM=Math.acos,Je=Math.atan2,My=Math.abs,oo=Math.sqrt,so=Math.max,Cr=Math.min,Jt=1e-4;function LM(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,c=s-a,h=c*l-f*u;if(!(h*h<Jt))return h=(f*(e-a)-c*(t-i))/h,[t+h*l,e+h*u]}function pl(t,e,r,n,i,a,o){var s=t-r,l=e-n,u=(o?a:-a)/oo(s*s+l*l),f=u*l,c=-u*s,h=t+f,v=e+c,d=r+f,g=n+c,p=(h+d)/2,m=(v+g)/2,y=d-h,_=g-v,b=y*y+_*_,S=i-a,w=h*g-d*v,x=(_<0?-1:1)*oo(so(0,S*S*b-w*w)),C=(w*_-y*x)/b,D=(-w*y-_*x)/b,T=(w*_+y*x)/b,A=(-w*y+_*x)/b,I=C-p,M=D-m,P=T-p,E=A-m;return I*I+M*M>P*P+E*E&&(C=T,D=A),{cx:C,cy:D,x0:-f,y0:-c,x1:C*(i/S-1),y1:D*(i/S-1)}}function IM(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 PM(t,e){var r,n=so(e.r,0),i=so(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,h=!!e.clockwise,v=My(u-l),d=v>ih&&v%ih;if(d>Jt&&(v=d),!(n>Jt))t.moveTo(f,c);else if(v>ih-Jt)t.moveTo(f+n*Hi(l),c+n*qn(l)),t.arc(f,c,n,l,u,!h),i>Jt&&(t.moveTo(f+i*Hi(u),c+i*qn(u)),t.arc(f,c,i,u,l,h));else{var g=void 0,p=void 0,m=void 0,y=void 0,_=void 0,b=void 0,S=void 0,w=void 0,x=void 0,C=void 0,D=void 0,T=void 0,A=void 0,I=void 0,M=void 0,P=void 0,E=n*Hi(l),k=n*qn(l),O=i*Hi(u),R=i*qn(u),N=v>Jt;if(N){var F=e.cornerRadius;F&&(r=IM(F),g=r[0],p=r[1],m=r[2],y=r[3]);var B=My(n-i)/2;if(_=Cr(B,m),b=Cr(B,y),S=Cr(B,g),w=Cr(B,p),D=x=so(_,b),T=C=so(S,w),(x>Jt||C>Jt)&&(A=n*Hi(u),I=n*qn(u),M=i*Hi(l),P=i*qn(l),v<Dy)){var G=LM(E,k,M,P,A,I,O,R);if(G){var X=E-G[0],H=k-G[1],Z=A-G[0],ae=I-G[1],Re=1/qn(MM((X*Z+H*ae)/(oo(X*X+H*H)*oo(Z*Z+ae*ae)))/2),Me=oo(G[0]*G[0]+G[1]*G[1]);D=Cr(x,(n-Me)/(Re+1)),T=Cr(C,(i-Me)/(Re-1))}}}if(!N)t.moveTo(f+E,c+k);else if(D>Jt){var he=Cr(m,D),Te=Cr(y,D),J=pl(M,P,E,k,n,he,h),se=pl(A,I,O,R,n,Te,h);t.moveTo(f+J.cx+J.x0,c+J.cy+J.y0),D<x&&he===Te?t.arc(f+J.cx,c+J.cy,D,Je(J.y0,J.x0),Je(se.y0,se.x0),!h):(he>0&&t.arc(f+J.cx,c+J.cy,he,Je(J.y0,J.x0),Je(J.y1,J.x1),!h),t.arc(f,c,n,Je(J.cy+J.y1,J.cx+J.x1),Je(se.cy+se.y1,se.cx+se.x1),!h),Te>0&&t.arc(f+se.cx,c+se.cy,Te,Je(se.y1,se.x1),Je(se.y0,se.x0),!h))}else t.moveTo(f+E,c+k),t.arc(f,c,n,l,u,!h);if(!(i>Jt)||!N)t.lineTo(f+O,c+R);else if(T>Jt){var he=Cr(g,T),Te=Cr(p,T),J=pl(O,R,A,I,i,-Te,h),se=pl(E,k,M,P,i,-he,h);t.lineTo(f+J.cx+J.x0,c+J.cy+J.y0),T<C&&he===Te?t.arc(f+J.cx,c+J.cy,T,Je(J.y0,J.x0),Je(se.y0,se.x0),!h):(Te>0&&t.arc(f+J.cx,c+J.cy,Te,Je(J.y0,J.x0),Je(J.y1,J.x1),!h),t.arc(f,c,i,Je(J.cy+J.y1,J.cx+J.x1),Je(se.cy+se.y1,se.cx+se.x1),h),he>0&&t.arc(f+se.cx,c+se.cy,he,Je(se.y1,se.x1),Je(se.y0,se.x0),!h))}else t.lineTo(f+O,c+R),t.arc(f,c,i,u,l,h)}t.closePath()}}}var EM=(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})(),Ar=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new EM},e.prototype.buildPath=function(r,n){PM(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(pe);Ar.prototype.type="sector";var kM=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})(),gl=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new kM},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);gl.prototype.type="ring";function RM(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 h=0,v=t.length;h<v;h++)Ai(f,f,t[h]),Di(c,c,t[h]);Ai(f,f,n[0]),Di(c,c,n[1])}for(var h=0,v=t.length;h<v;h++){var d=t[h];if(r)l=t[h?h-1:v-1],u=t[(h+1)%v];else if(h===0||h===v-1){i.push(UC(t[h]));continue}else l=t[h-1],u=t[h+1];WC(a,u,l),kf(a,a,e);var g=Rf(d,l),p=Rf(d,u),m=g+p;m!==0&&(g/=m,p/=m),kf(o,a,-g),kf(s,a,p);var y=_g([],d,o),_=_g([],d,s);n&&(Di(y,y,f),Ai(y,y,c),Di(_,_,f),Ai(_,_,c)),i.push(y),i.push(_)}return r&&i.push(i.shift()),i}function Ly(t,e,r){var n=e.smooth,i=e.points;if(i&&i.length>=2){if(n){var a=RM(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 OM=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})(),Ui=(function(t){V(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new OM},e.prototype.buildPath=function(r,n){Ly(r,n,!0)},e})(pe);Ui.prototype.type="polygon";var NM=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})(),sn=(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 NM},e.prototype.buildPath=function(r,n){Ly(r,n,!1)},e})(pe);sn.prototype.type="polyline";var BM={},FM=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})(),Dr=(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=ym(BM,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);Dr.prototype.type="line";var mt=[],zM=(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 Iy(t,e,r){var n=t.cpx2,i=t.cpy2;return n!=null||i!=null?[(r?Gg:Xe)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?Gg:Xe)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?Ug:pt)(t.x1,t.cpx1,t.x2,e),(r?Ug:pt)(t.y1,t.cpy1,t.y2,e)]}var ah=(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 zM},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,h=n.percent;h!==0&&(r.moveTo(i,a),f==null||c==null?(h<1&&(Es(i,l,o,h,mt),l=mt[1],o=mt[2],Es(a,u,s,h,mt),u=mt[1],s=mt[2]),r.quadraticCurveTo(l,u,o,s)):(h<1&&(Ps(i,l,f,o,h,mt),l=mt[1],f=mt[2],o=mt[3],Ps(a,u,c,s,h,mt),u=mt[1],c=mt[2],s=mt[3]),r.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(r){return Iy(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=Iy(this.shape,r,!0);return XC(n,n)},e})(pe);ah.prototype.type="bezier-curve";var VM=(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})(),ml=(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 VM},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);ml.prototype.type="arc";var Py=(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),Ey=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})(),ky=(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})(Ey),GM=(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})(Ey),oh=Math.min,HM=Math.max,yl=Math.abs,Kn=[0,0],Zn=[0,0],He=xg(),_l=He.minTv,bl=He.maxTv,Ry=(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),He.reset(n,!a),!this._intersectCheckOneSide(this,e,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(i=!1,a)||!a&&!He.negativeSize&&re.copy(r,i?He.useDir?He.dirMinTv:_l:bl),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,Kn),e._getProjMinMaxOnAxis(o,r._corners,Zn),He.negativeSize||Kn[1]<Zn[0]||Kn[0]>Zn[1]){if(a=!1,He.negativeSize||n)return a;var l=yl(Zn[0]-Kn[1]),u=yl(Kn[0]-Zn[1]);oh(l,u)>bl.len()&&(l<u?re.scale(bl,s,-l*i):re.scale(bl,s,u*i))}else if(!n){var l=yl(Zn[0]-Kn[1]),u=yl(Kn[0]-Zn[1]);(He.useDir||oh(l,u)<_l.len())&&((l<u||!He.bidirectional)&&(re.scale(_l,s,l*i),He.useDir&&He.calcDirMTV()),(l>=u||!He.bidirectional)&&(re.scale(_l,s,-u*i),He.useDir&&He.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=oh(f,s),l=HM(f,l)}n[0]=s+He.touchThreshold,n[1]=l-He.touchThreshold,He.negativeSize=n[1]<n[0]},t})(),UM=1,WM=[],YM=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=UM,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(WM)),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})(qa),$M=be();function XM(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=K(n.duration,200),f=K(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 h={duration:u||0,delay:c,easing:f};return h}else return null}function sh(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=XM(t,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):null);if(f&&f.duration>0){var c=f.duration,h=f.delay,v=f.easing,d={duration:c,delay:h||0,easing:v,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 Pe(t,e,r,n,i,a){sh("update",t,e,r,n,i,a)}function Ue(t,e,r,n,i,a){sh("enter",t,e,r,n,i,a)}function lo(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 Sl(t,e,r,n,i,a){lo(t)||sh("leave",t,e,r,n,i,a)}function Oy(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),Sl(t,{style:{opacity:0}},e,r,n)}function Wi(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(i){i.isGroup||Oy(i,e,r,n)}):Oy(t,e,r,n)}function Yi(t){$M(t).oldStyle=t.style}var lh={},ln=["x","y"],$i=["width","height"],Ny=0,By=1,uh=2;function qM(t){return pe.extend(t)}var KM=TM;function ZM(t,e){return KM(t,e)}function er(t,e){lh[t]=e}function jM(t){if(lh.hasOwnProperty(t))return lh[t]}function fh(t,e,r,n){var i=xM(t,e);return r&&(n==="center"&&(r=zy(r,i.getBoundingRect())),Vy(i,r)),i}function Fy(t,e,r){var n=new Et({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(zy(e,a))}}});return n}function zy(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 ch=CM;function Vy(t,e){if(t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function uo(t,e){return ym(t,t,{lineWidth:e}),t}function QM(t,e){return _m(t,t,e),t}var JM=Hn;function eL(t,e){for(var r=Ra([]);t&&t!==e;)Oa(r,t.getLocalTransform(),r),t=t.parent;return r}function hh(t,e,r){return e&&!vt(e)&&(e=Va.getLocalTransform(e)),r&&(e=Na([],e)),At([],t,e)}function tL(t,e,r){var n=e[4]===0||e[5]===0||e[0]===0?1:Fe(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:Fe(2*e[4]/e[2]),a=[t==="left"?-n:t==="right"?n:0,t==="top"?-i:t==="bottom"?i:0];return a=hh(a,e,r),Fe(a[0])>Fe(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Gy(t){return!t.isGroup}function rL(t){return t.shape!=null}function Hy(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(l){Gy(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return rL(o)&&(s.shape=oe(o.shape)),s}var a=n(t);e.traverse(function(o){if(Gy(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Pe(o,l,r,ue(o).dataIndex)}}})}function nL(t,e){return $(t,function(r){var n=r[0];n=ge(n,e.x),n=je(n,e.x+e.width);var i=r[1];return i=ge(i,e.y),i=je(i,e.y+e.height),[n,i]})}function iL(t,e){var r=ge(t.x,e.x),n=je(t.x+t.width,e.x+e.width),i=ge(t.y,e.y),a=je(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 vh(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 Et(n)):fh(t.replace("path://",""),n,r,"center")}function aL(t,e,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(Uy(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function Uy(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,c=s-a,h=dh(f,c,l,u);if(oL(h))return!1;var v=t-i,d=e-a,g=dh(v,d,l,u)/h;if(g<0||g>1)return!1;var p=dh(v,d,f,c)/h;return!(p<0||p>1)}function dh(t,e,r,n){return t*n-r*e}function oL(t){return t<=1e-6&&t>=-1e-6}function wl(t,e,r,n,i){return e==null||(me(e)?xe[0]=xe[1]=xe[2]=xe[3]=e:(xe[0]=e[0],xe[1]=e[1],xe[2]=e[2],xe[3]=e[3]),n&&(xe[0]=ge(0,xe[0]),xe[1]=ge(0,xe[1]),xe[2]=ge(0,xe[2]),xe[3]=ge(0,xe[3])),r&&(xe[0]=-xe[0],xe[1]=-xe[1],xe[2]=-xe[2],xe[3]=-xe[3]),Wy(t,xe,"x","width",3,1,i&&i[0]||0),Wy(t,xe,"y","height",0,2,i&&i[1]||0)),t}var xe=[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,je(o,l)),t[n]<o?(t[n]=o,t[r]+=e[i]>=0?-e[i]:e[a]>=0?l+e[a]:Fe(s)>1e-8?(l-o)*e[i]/s:0):t[r]-=e[i]}function xl(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&&L(ce(l),function(f){it(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 ph(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Tl(t,e){if(t)if(W(t))for(var r=0;r<t.length;r++)ph(t[r],e);else ph(t,e)}function gh(t){return!t||Fe(t[1])<Cl&&Fe(t[2])<Cl||Fe(t[0])<Cl&&Fe(t[3])<Cl}var Cl=1e-5;function fo(t,e){return t?ne.copy(t,e):e.clone()}function mh(t,e){return e?Lf(t||gr(),e):void 0}function Yy(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function sL(t){var e=-1/0,r=1/0;ph(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 $y(t,e,r){Xy(t,e,r,-1/0)}function Xy(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(Xy(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 lL(t){return t.animation={duration:0},t}function uL(t,e){return e?Lf(co.transform,e):Ra(co.transform),co.decomposeTransform(),Ga(t,co),t}var co=new Va;co.transform=gr();function fL(t){var e=t.getZr().painter;return e.getType()==="canvas"?e:null}er("circle",ao),er("ellipse",nh),er("sector",Ar),er("ring",gl),er("polygon",Ui),er("polyline",sn),er("rect",Le),er("line",Dr),er("bezierCurve",ah),er("arc",ml);const qy=Object.freeze(Object.defineProperty({__proto__:null,Arc:ml,BezierCurve:ah,BoundingRect:ne,Circle:ao,CompoundPath:Py,Ellipse:nh,Group:De,HOVER_LAYER_FOR_INCREMENTAL:uh,HOVER_LAYER_FROM_THRESHOLD:By,HOVER_LAYER_NO:Ny,Image:Et,IncrementalDisplayable:YM,Line:Dr,LinearGradient:ky,OrientedBoundingRect:Ry,Path:pe,Point:re,Polygon:Ui,Polyline:sn,RadialGradient:GM,Rect:Le,Ring:gl,Sector:Ar,Text:Ie,WH:$i,XY:ln,applyTransform:hh,calcZ2Range:sL,clipPointsByRect:nL,clipRectByRect:iL,createIcon:vh,decomposeTransform:uL,ensureCopyRect:fo,ensureCopyTransform:mh,expandOrShrinkRect:wl,extendPath:ZM,extendShape:qM,getCurrentCanvasPainter:fL,getShapeClass:jM,getTransform:eL,groupTransition:Hy,initProps:Ue,isBoundingRectAxisAligned:gh,isElementRemoved:lo,lineLineIntersect:Uy,linePolygonIntersect:aL,makeImage:Fy,makePath:fh,mergePath:ch,payloadDisableAnimation:lL,registerShape:er,removeElement:Sl,removeElementWithFadeOut:Wi,resizePath:Vy,retrieveZInfo:Yy,setTooltipConfig:xl,subPixelOptimize:JM,subPixelOptimizeLine:uo,subPixelOptimizeRect:QM,transformDirection:tL,traverseElements:Tl,traverseUpdateZ:$y,updateProps:Pe},Symbol.toStringTag,{value:"Module"}));var Al={};function Ky(t,e){for(var r=0;r<Ft.length;r++){var n=Ft[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 yh(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<Ft.length;u++){var f=Ft[u],c=e[f];l[f]=K(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return l}function jn(t,e,r,n){r=r||Al;for(var i=t instanceof Ie,a=!1,o=0;o<ol.length;o++){var s=e[ol[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?t:t.getTextContent();if(a){i||(l||(l=new Ie,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=yh(r,e),f=e.normal,c=!!f.getShallow("show"),h=zt(f,n&&n.normal,r,!1,!i);h.text=u.normal,i||t.setTextConfig(Zy(f,r,!1));for(var o=0;o<Ft.length;o++){var v=Ft[o],s=e[v];if(s){var d=l.ensureState(v),g=!!K(s.getShallow("show"),c);if(g!==c&&(d.ignore=!g),d.style=zt(s,n&&n[v],r,!0,!i),d.style.text=u[v],!i){var p=t.ensureState(v);p.textConfig=Zy(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!c,l.useStyle(h),l.dirty(),r.enableTextSetter&&(ho(l).setLabelText=function(m){var y=yh(r,e,m);Ky(l,y)})}else l&&(l.ignore=!0);t.dirty()}function Qn(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<Ft.length;n++){var i=Ft[n];r[i]=t.getModel([i,e])}return r}function zt(t,e,r,n,i){var a={};return cL(a,t,r,n,i),e&&z(a,e),a}function Zy(t,e,r){e=e||{};var n={},i,a=t.getShallow("rotate"),o=K(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 cL(t,e,r,n,i){r=r||Al;var a=e.ecModel,o=a&&a.option.textStyle,s=hL(e),l;if(s){l={};var u="richInheritPlainLabel",f=K(e.get(u),a?a.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var h=e.getModel(["rich",c]);e0(l[c]={},h,o,e,f,r,n,i,!1,!0)}}l&&(t.rich=l);var v=e.get("overflow");v&&(t.overflow=v);var d=e.get("lineOverflow");d&&(t.lineOverflow=d);var g=t,p=e.get("minMargin");if(p!=null)p=me(p)?p/2:0,g.margin=[p,p,p,p],g.__marginType=Xi.minMargin;else{var m=e.get("textMargin");m!=null&&(g.margin=Cf(m),g.__marginType=Xi.textMargin)}e0(t,e,o,null,null,r,n,i,!0,!1)}function hL(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||Al).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 jy=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Qy=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Jy=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function e0(t,e,r,n,i,a,o,s,l,u){r=!o&&r||Al;var f=a&&a.inheritColor,c=e.getShallow("color"),h=e.getShallow("textBorderColor"),v=K(e.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(h==="inherit"||h==="auto")&&(f?h=f:h=null),s||(c=c||r.color,h=h||r.textBorderColor),c!=null&&(t.fill=c),h!=null&&(t.stroke=h);var d=K(e.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(t.lineWidth=d);var g=K(e.getShallow("textBorderType"),r.textBorderType);g!=null&&(t.lineDash=g);var p=K(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);p!=null&&(t.lineDashOffset=p),!o&&v==null&&!u&&(v=a&&a.defaultOpacity),v!=null&&(t.opacity=v),!o&&!s&&t.fill==null&&a.inheritColor&&(t.fill=a.inheritColor);for(var m=0;m<jy.length;m++){var y=jy[m],_=i!==!1&&n?wn(e.getShallow(y),n.getShallow(y),r[y]):K(e.getShallow(y),r[y]);_!=null&&(t[y]=_)}for(var m=0;m<Qy.length;m++){var y=Qy[m],_=e.getShallow(y);_!=null&&(t[y]=_)}if(t.verticalAlign==null){var b=e.getShallow("baseline");b!=null&&(t.verticalAlign=b)}if(!l||!a.disableBox){for(var m=0;m<Jy.length;m++){var y=Jy[m],_=e.getShallow(y);_!=null&&(t[y]=_)}var S=e.getShallow("borderType");S!=null&&(t.borderDash=S),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&f&&(t.backgroundColor=f),(t.borderColor==="auto"||t.borderColor==="inherit")&&f&&(t.borderColor=f)}}function vL(t,e){var r=e&&e.getModel("textStyle");return dr([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 ho=be();function t0(t,e,r,n){if(t){var i=ho(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 dL(t,e,r,n,i){var a=ho(t);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=K(a.interpolatedValue,a.prevValue),l=a.value;function u(f){var c=Ym(r,a.precision,s,l,f);a.interpolatedValue=f===1?null:c;var h=yh({labelDataIndex:e,labelFetcher:i,defaultText:o?o(c):c+""},a.statesModels,c);Ky(t,h)}t.percent=0,(a.prevValue==null?Ue:Pe)(t,{percent:1},n,e,null,u)}var Xi={minMargin:1,textMargin:2},pL=["textStyle","color"],_h=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],bh=new Ie,gL=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(pL):null)},t.prototype.getFont=function(){return vL({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<_h.length;n++)r[_h[n]]=this.getShallow(_h[n]);return bh.useStyle(r),bh.update(),bh.getBoundingRect()},t})(),r0=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],mL=ka(r0),yL=(function(){function t(){}return t.prototype.getLineStyle=function(e){return mL(this,e)},t})(),n0=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],_L=ka(n0),bL=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return _L(this,e,r)},t})(),Ce=(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){we(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})();Af(Ce),RC(Ce),Xt(Ce,yL),Xt(Ce,bL),Xt(Ce,zC),Xt(Ce,gL);function vo(t){return t==null?0:t.length||1}function i0(t){return t}var SL=(function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||i0,this._newKeyGetter=i||i0,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=vo(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=vo(u),h=vo(f);if(c>1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),i[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(c>1)for(var v=0;v<c;v++)this._remove&&this._remove(u[v]);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=vo(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=vo(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t})(),qe={Must:1,Might:2,Not:3},a0=be();function wL(t){a0(t).datasetMap=te()}function xL(t,e,r){var n={},i=Sh(e);if(!i||!t)return n;var a=[],o=[],s=e.ecModel,l=a0(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),L(t,function(g,p){var m=j(g)?g:t[p]={name:g};m.type==="ordinal"&&f==null&&(f=p,c=d(m)),n[m.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});L(t,function(g,p){var m=g.name,y=d(g);if(f==null){var _=h.valueWayDim;v(n[m],_,y),v(o,_,y),h.valueWayDim+=y}else if(f===p)v(n[m],0,y),v(a,0,y);else{var _=h.categoryWayDim;v(n[m],_,y),v(o,_,y),h.categoryWayDim+=y}});function v(g,p,m){for(var y=0;y<m;y++)g.push(p+y)}function d(g){var p=g.dimsDef;return p?p.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function o0(t,e,r){var n={},i=Sh(t);if(!i)return n;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===Bt||a===jt)&&L(o,function(f,c){(j(f)?f.name:f)==="name"&&(s=c)});var l=(function(){for(var f={},c={},h=[],v=0,d=Math.min(5,r);v<d;v++){var g=l0(e.data,a,e.seriesLayoutBy,o,e.startIndex,v);h.push(g);var p=g===qe.Not;if(p&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!p&&h[f.n]===qe.Not)&&(f.n=v),m(f)&&h[f.n]!==qe.Not)return f;p||(g===qe.Might&&c.v==null&&v!==s&&(c.v=v),(c.n==null||c.n===c.v)&&(c.n=v))}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 Sh(t){var e=t.get("data",!0);if(!e)return no(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Ot).models[0]}function TL(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:no(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Ot).models}function s0(t,e){return l0(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function l0(t,e,r,n,i,a){var o,s=5;if(dt(t))return qe.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"?qe.Must:qe.Not;if(e===Qe){var c=t;if(r===$n){for(var h=c[a],v=0;v<(h||[]).length&&v<s;v++)if((o=b(h[i+v]))!=null)return o}else for(var v=0;v<c.length&&v<s;v++){var d=c[i+v];if(d&&(o=b(d[a]))!=null)return o}}else if(e===Bt){var g=t;if(!l)return qe.Not;for(var v=0;v<g.length&&v<s;v++){var p=g[v];if(p&&(o=b(p[l]))!=null)return o}}else if(e===jt){var m=t;if(!l)return qe.Not;var h=m[l];if(!h||dt(h))return qe.Not;for(var v=0;v<h.length&&v<s;v++)if((o=b(h[v]))!=null)return o}else if(e===wt)for(var y=t,v=0;v<y.length&&v<s;v++){var p=y[v],_=eo(p);if(!W(_))return qe.Not;if((o=b(_[a]))!=null)return o}function b(S){var w=q(S);if(S!=null&&isFinite(Number(S))&&S!=="")return w?qe.Might:qe.Not;if(w&&S!=="-")return qe.Must}return qe.Not}var Dl=(function(){function t(e){this.data=e.data||(e.sourceFormat===jt?{}:[]),this.sourceFormat=e.sourceFormat||Jm,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&&s0(this,n)===qe.Must&&(i.type="ordinal")}}return t})();function wh(t){return t instanceof Dl}function xh(t,e,r){r=r||f0(t);var n=e.seriesLayoutBy,i=AL(t,r,n,e.sourceHeader,e.dimensions),a=new Dl({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:oe(e)});return a}function u0(t){return new Dl({data:t,sourceFormat:dt(t)?on:wt})}function CL(t){return new Dl({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:oe(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function f0(t){var e=Jm;if(dt(t))e=on;else if(W(t)){t.length===0&&(e=Qe);for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i!=null){if(W(i)||dt(i)){e=Qe;break}else if(j(i)){e=Bt;break}}}}else if(j(t)){for(var a in t)if(it(t,a)&&vt(t[a])){e=jt;break}}return e}function AL(t,e,r,n,i){var a,o;if(!t)return{dimensionsDefine:c0(i),startIndex:o,dimensionsDetectedCount:a};if(e===Qe){var s=t;n==="auto"||n==null?h0(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=[],h0(function(u,f){i[f]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===$n?s.length:s[0]?s[0].length:null}else if(e===Bt)i||(i=DL(t));else if(e===jt)i||(i=[],L(t,function(u,f){i.push(f)}));else if(e===wt){var l=eo(t[0]);a=W(l)&&l.length||1}return{startIndex:o,dimensionsDefine:c0(i),dimensionsDetectedCount:a}}function DL(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return ce(r)}function c0(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 h0(t,e,r,n){if(e===$n)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 v0(t){var e=t.sourceFormat;return e===Bt||e===jt}var Jn,ei,ti,ri,d0,p0,g0=(function(){function t(e,r){var n=wh(e)?e:u0(e);this._source=n;var i=this._data=n.data,a=n.sourceFormat;n.seriesLayoutBy,a===on&&(this._offset=0,this._dimSize=r,this._data=i),p0(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;p0=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,h=l.dimensionsDefine,v=d0[Ch(u,f)];if(z(o,v),u===on)o.getItem=r,o.count=i,o.fillStorage=n;else{var d=y0(u,f);o.getItem=de(d,null,s,c,h);var g=b0(u,f);o.count=de(g,null,s,c,h)}};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,h=0;h<c;h++){for(var v=u[h],d=v[0]==null?1/0:v[0],g=v[1]==null?-1/0:v[1],p=s-o,m=l[h],y=0;y<p;y++){var _=f[y*c+h];m[o+y]=_,_<d&&(d=_),_>g&&(g=_)}v[0]=d,v[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};d0=(e={},e[Qe+"_"+Qt]={pure:!0,appendData:a},e[Qe+"_"+$n]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Bt]={pure:!0,appendData:a},e[jt]={pure:!0,appendData:function(o){var s=this._data;L(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[wt]={appendData:a},e[on]={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})(),Ml=function(t){W(t)||zm("series.data or dataset.source must be an array.")};Jn={},Jn[Qe+"_"+Qt]=Ml,Jn[Qe+"_"+$n]=Ml,Jn[Bt]=Ml,Jn[jt]=function(t,e){for(var r=0;r<e.length;r++){var n=e[r].name;n==null&&zm("dimension name must not be null/undefined.")}},Jn[wt]=Ml;var m0=function(t,e,r,n){return t[n]},ML=(ei={},ei[Qe+"_"+Qt]=function(t,e,r,n){return t[n+e]},ei[Qe+"_"+$n]=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},ei[Bt]=m0,ei[jt]=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},ei[wt]=m0,ei);function y0(t,e){var r=ML[Ch(t,e)];return r}var _0=function(t,e,r){return t.length},LL=(ti={},ti[Qe+"_"+Qt]=function(t,e,r){return Math.max(0,t.length-e)},ti[Qe+"_"+$n]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},ti[Bt]=_0,ti[jt]=function(t,e,r){var n=r[0].name,i=n!=null?t[n]:null;return i?i.length:0},ti[wt]=_0,ti);function b0(t,e){var r=LL[Ch(t,e)];return r}var Th=function(t,e,r){return t[e]},IL=(ri={},ri[Qe]=Th,ri[Bt]=function(t,e,r){return t[r]},ri[jt]=Th,ri[wt]=function(t,e,r){var n=eo(t);return n instanceof Array?n[e]:n},ri[on]=Th,ri);function S0(t){var e=IL[t];return e}function Ch(t,e){return t===Qe?t+"_"+e:t}function qi(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 S0(a)(n,o,s)}else{var l=n;return a===wt&&(l=eo(n)),l}}}}var PL=(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 EL(t,e){var r={},n=r.encode={},i=te(),a=[],o=[],s={};L(t.dimensions,function(h){var v=t.getDimensionInfo(h),d=v.coordDim;if(d){var g=v.coordDimIndex;Ah(n,d)[g]=h,v.isExtraCoord||(i.set(d,1),RL(v.type)&&(a[0]=h),Ah(s,d)[g]=t.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(h)}Qm.each(function(p,m){var y=Ah(n,m),_=v.otherDims[m];_!=null&&_!==!1&&(y[_]=v.name)})});var l=[],u={};i.each(function(h,v){var d=n[v];u[v]=d[0],l=l.concat(d)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=$(l,function(h){return t.getDimensionInfo(h).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 PL(s,e),r}function Ah(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function kL(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function RL(t){return!(t==="ordinal"||t==="time")}var Ll=(function(){function t(e){this.otherDims={},e!=null&&z(this,e)}return t})();function Il(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!me(t)&&t!=null&&t!=="-"&&(t=+Bi(t)),t==null||t===""?NaN:Number(t))}te({number:function(t){return parseFloat(t)},time:function(t){return+Bi(t)},trim:function(t){return q(t)?dr(t):t}});var OL=(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:rl(e),i=me(r)?r:rl(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 w0(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 x0(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var NL=typeof Uint32Array===zi?Array:Uint32Array,BL=typeof Uint16Array===zi?Array:Uint16Array,T0=typeof Int32Array===zi?Array:Int32Array,C0=typeof Float64Array===zi?Array:Float64Array,A0={float:C0,int:T0,ordinal:Array,number:Array,time:C0},Dh;function Ki(t){return t>65535?NL:BL}function FL(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function D0(t,e,r,n,i){var a=A0[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=Dh[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],v0(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 A0[r||"float"](this._rawCount),this._rawExtent[a]=Nt(),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]=Nt());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];D0(n,u,f.type,l,!0)}for(var c=[],h=s;h<l;h++)for(var v=h-s,d=0;d<a;d++){var f=i[d],g=Dh.arrayRows.call(this,e[v]||c,f.property,v,d);n[d][h]=g;var p=o[d];g<p[0]&&(p[0]=g),g>p[1]&&(p[1]=g)}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]=Nt()),D0(a,f,c.type,r,n)}if(i.fillStorage)i.fillStorage(e,r,a,l);else for(var h=[],v=e;v<r;v++){h=i.getItem(v,h);for(var d=0;d<s;d++){var g=a[d],p=this._dimValueGetter(h,u[d],v,d);g[v]=p;var m=l[d];p<m[0]&&(m[0]=p),p>m[1]&&(m[1]=p)}}!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)}),Pc(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=Ki(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=Ki(n._rawCount),o=new a(i),s=[],l=e.length,u=0,f=e[0],c=n._chunks,h=0;h<i;h++){var v=void 0,d=n.getRawIndex(h);if(l===0)v=r(h);else if(l===1){var g=c[f][d];v=r(g,h)}else{for(var p=0;p<l;p++)s[p]=c[e[p]][d];s[p]=h,v=r.apply(null,s)}v&&(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=Ki(r._rawCount),l=new s(o),u=0,f=i[0],c=e[f][0],h=e[f][1],v=r._chunks,d=!1;if(!r._indices){var g=0;if(a===1){for(var p=v[i[0]],m=0;m<n;m++){var y=p[m];(y>=c&&y<=h||isNaN(y))&&(l[u++]=g),g++}d=!0}else if(a===2){for(var p=v[i[0]],_=v[i[1]],b=e[i[1]][0],S=e[i[1]][1],m=0;m<n;m++){var y=p[m],w=_[m];(y>=c&&y<=h||isNaN(y))&&(w>=b&&w<=S||isNaN(w))&&(l[u++]=g),g++}d=!0}}if(!d)if(a===1)for(var m=0;m<o;m++){var x=r.getRawIndex(m),y=v[i[0]][x];(y>=c&&y<=h||isNaN(y))&&(l[u++]=x)}else for(var m=0;m<o;m++){for(var C=!0,x=r.getRawIndex(m),D=0;D<a;D++){var T=i[D],y=v[T][x];(y<e[T][0]||y>e[T][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]]=Nt();for(var c=0;c<s;c++){for(var h=e.getRawIndex(c),v=0;v<o;v++)l[v]=i[r[v]][h];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 g=r[f],p=d[f],m=u[g],y=i[g];y&&(y[h]=p),p<m[0]&&(m[0]=p),p>m[1]&&(m[1]=p)}}}},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,h,v=new(Ki(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;d<o-1;d+=l){for(var g=Math.min(d+l,o-1),p=Math.min(d+l*2,o),m=(p+g)/2,y=0,_=g;_<p;_++){var b=this.getRawIndex(_),S=a[b];isNaN(S)||(y+=S)}y/=p-g;var w=d,x=Math.min(d+l,o),C=d-1,D=a[u];f=-1,h=w;for(var T=-1,A=0,_=w;_<x;_++){var b=this.getRawIndex(_),S=a[b];if(isNaN(S)){A++,T<0&&(T=b);continue}c=Math.abs((C-m)*(S-D)-(C-_)*(y-D)),c>f&&(f=c,h=b)}A>0&&A<x-w&&(v[s++]=Math.min(T,h),h=Math.max(T,h)),v[s++]=h,u=h}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,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(Ki(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var c=f,h=o[this.getRawIndex(c)],v=f,d=o[this.getRawIndex(v)],g=a;f+a>s&&(g=s-f);for(var p=0;p<g;p++){var m=this.getRawIndex(f+p),y=o[m];y<h&&(h=y,c=f+p),y>d&&(d=y,v=f+p)}var _=this.getRawIndex(c),b=this.getRawIndex(v);c<v?(l[u++]=_,l[u++]=b):(l[u++]=b,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]=Nt(),h=new(Ki(this._rawCount))(Math.ceil(f/l)),v=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var g=0;g<l;g++){var p=this.getRawIndex(d+g);s[g]=u[p]}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),h[v++]=y}return a._count=v,a._indices=h,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=Nt();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=w0(r),f=u.key,c=l[f];if(c)return c.slice();for(var h=i[0],v=i[1],d=0;d<a;d++){var g=this.getRawIndex(d),p=n[g];(!r||x0(u,p))&&(p<h&&(h=p),p>v&&(v=p))}return l[f]=[h,v]},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&&Kr(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?FL(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 Il(r[a],this._dimensions[a])}Dh={arrayRows:e,objectRows:function(r,n,i,a){return Il(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Il(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}})(),t})(),zL=be(),VL={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},M0=(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=I0(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return K(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=v0(this.source),n=!P0(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 h=this.getSourceDimension(o);h&&(l=r?h.name:null,u=h.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+=VL[u]||"f",f&&(i+=f.uid),i+="$"}var v=this.source,d=[v.seriesLayoutBy,v.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 L0(t){return t instanceof M0}function Lh(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 I0(t){var e=zL(t);return e.dimNameMap||(e.dimNameMap=Lh(t.dimensionsDefine))}function P0(t){return t>30}var po=j,un=$,GL=typeof Int32Array>"u"?Array:Int32Array,HL="e\0\0",E0=-1,UL=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],WL=["_approximateExtent"],k0,Pl,go,mo,Ih,yo,Ph,R0=(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;L0(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],h=q(c)?new Ll({name:c}):c instanceof Ll?c:new Ll(c),v=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=v,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(v),a[v]=h,u[v]!=null&&(l=!0),h.createInvertedIndices&&(s[v]=[]),i&&(h.storeDimIndex=f),d.itemName===0&&(this._nameDimIdx=h.storeDimIndex),d.itemId===0&&(this._idDimIdx=h.storeDimIndex)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=te();L(o,function(p){g.set(a[p].storeDimIndex,p)})}}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=wh(e)||vt(e)?new g0(e,o.length):e;a=new Mh;var l=un(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=EL(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&&Ph(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!==on&&!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===wt;if(l&&!i.pure)for(var u=[],f=e;f<r;f++){var c=i.getItem(f,u);if(!this.hasItemOption&&LD(c)&&(this.hasItemOption=!0),c){var h=c.name;a[f]==null&&h!=null&&(a[f]=Tr(h,null));var v=c.id;o[f]==null&&v!=null&&(o[f]=Tr(v,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)Ph(this,f);k0(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){po(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=go(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 Pl(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(un(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)?E0:i},t.prototype.each=function(e,r,n){ee(e)&&(n=r,r=e,e=[]);var i=n||this,a=un(mo(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=un(mo(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 L(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=un(mo(e),this._getStoreDimIndex,this),s=yo(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=un(mo(e),this._getStoreDimIndex,this);this._store.modify(o,a?de(r,a):r)},t.prototype.downSample=function(e,r,n,i){var a=yo(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,n,i),a},t.prototype.minmaxDownSample=function(e,r){var n=yo(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),n},t.prototype.lttbDownSample=function(e,r){var n=yo(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 Ce(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new SL(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Pl(e,n)},function(n){return Pl(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||{},po(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():po(a)&&(a=z({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,po(r)?z(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){po(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;Hc(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){L(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:un(this.dimensions,this._getDimInfo,this),this.hostModel)),Ih(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(Tf(arguments)))})},t.internalField=(function(){k0=function(e){var r=e._invertedIndicesMap;L(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new GL(o.categories.length);for(var l=0;l<n.length;l++)n[l]=E0;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},go=function(e,r,n){return Tr(e._getCategory(r,n),null)},Pl=function(e,r){var n=e._idList[r];return n==null&&e._idDimIdx!=null&&(n=go(e,e._idDimIdx,r)),n==null&&(n=HL+r),n},mo=function(e){return W(e)||(e=e!=null?[e]:[]),e},yo=function(e){var r=new t(e._schema?e._schema:un(e.dimensions,e._getDimInfo,e),e.hostModel);return Ih(r,e),r},Ih=function(e,r){L(UL.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,L(WL,function(n){e[n]=oe(r[n])}),e._calculationInfo=z({},r._calculationInfo)},Ph=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=go(e,a,r)),l==null&&o!=null&&(i[r]=l=go(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 O0(t,e){wh(t)||(t=u0(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=te(),a=[],o=YL(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&P0(o),l=n===t.dimensionsDefine,u=l?I0(t):Lh(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=te(f),h=new T0(o),v=0;v<h.length;v++)h[v]=-1;function d(D){var T=h[D];if(T<0){var A=n[D],I=j(A)?A:{name:A},M=new Ll,P=I.name;P!=null&&u.get(P)!=null&&(M.name=M.displayName=P),I.type!=null&&(M.type=I.type),I.displayName!=null&&(M.displayName=I.displayName);var E=a.length;return h[D]=E,M.storeDimIndex=D,a.push(M),M}return a[T]}if(!s)for(var v=0;v<o;v++)d(v);c.each(function(D,T){var A=ot(D).slice();if(A.length===1&&!q(A[0])&&A[0]<0){c.set(T,!1);return}var I=c.set(T,[]);L(A,function(M,P){var E=q(M)?u.get(M):M;E!=null&&E<o&&(I[P]=E,p(d(E),T,P))})});var g=0;L(r,function(D){var T,A,I,M;if(q(D))T=D,M={};else{M=D,T=M.name;var P=M.ordinalMeta;M.ordinalMeta=null,M=z({},M),M.ordinalMeta=P,A=M.dimsDef,I=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var E=c.get(T);if(E!==!1){if(E=ot(E),!E.length)for(var k=0;k<(A&&A.length||1);k++){for(;g<o&&d(g).coordDim!=null;)g++;g<o&&E.push(g++)}L(E,function(O,R){var N=d(O);if(l&&M.type!=null&&(N.type=M.type),p(le(N,M),T,R),N.name==null&&A){var F=A[R];!j(F)&&(F={name:F}),N.name=N.displayName=F.name,N.defaultTooltip=F.defaultTooltip}I&&le(N.otherDims,I)})}});function p(D,T,A){Qm.get(T)!=null?D.otherDims[T]=A:(D.coordDim=T,D.coordDimIndex=A,i.set(T,!0))}var m=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=m?y||1:0;var b=m||"value";function S(D){D.name==null&&(D.name=D.coordDim)}if(s)L(a,function(D){S(D)}),a.sort(function(D,T){return D.storeDimIndex-T.storeDimIndex});else for(var w=0;w<o;w++){var x=d(w),C=x.coordDim;C==null&&(x.coordDim=$L(b,i,_),x.coordDimIndex=0,(!m||y<=0)&&(x.isExtraCoord=!0),y--),S(x),x.type==null&&(s0(t,w)===qe.Must||x.isExtraCoord&&(x.otherDims.itemName!=null||x.otherDims.seriesName!=null))&&(x.type="ordinal")}return zc(a,function(D){return D.name},function(D,T){T>0&&(D.name=D.name+(T-1))}),new M0({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function YL(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return L(e,function(a){var o;j(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function $L(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 El={},Eh={},kh=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=n(El),this._normalMasterList=n(Eh);function n(i,a){var o=[];return L(i,function(s,l){var u=s.create(e,r);o=o.concat(u||[])}),o}},t.prototype.update=function(e,r){L(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"){El[e]=r;return}Eh[e]=r},t.get=function(e){return Eh[e]||El[e]},t})();function XL(t){return!!El[t]}var qL=1,N0=2;function KL(t){B0.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}var B0=te();function F0(t){var e=t.getShallow("coord",!0),r=qL;if(e==null){var n=B0.get(t.type);n&&n.getCoord2&&(r=N0,e=n.getCoord2(t))}return{coord:e,from:r}}var Zi=0,kl=1,ZL=2;function jL(t,e){var r=t.getShallow("coordinateSystem"),n=t.getShallow("coordinateSystemUsage",!0),i=Zi;if(r){var a=t.mainType==="series";n==null&&(n=a?"data":"box"),n==="data"?(i=kl,a||(i=Zi)):n==="box"&&(i=ZL,!a&&!XL(r)&&(i=Zi))}return{coordSysType:r,kind:i}}function QL(t){var e=t.targetModel,r=t.coordSysType,n=t.coordSysProvider,i=t.isDefaultDataCoordSys,a=jL(e),o=a.kind,s=a.coordSysType;if(i&&o!==kl&&(o=kl,s=r),o===Zi||s!==r)return Zi;var l=n(r,e);return l?(o===kl?e.coordinateSystem=l:e.boxCoordinateSystem=l,o):Zi}var JL=(function(){function t(e){this.coordSysDims=[],this.axisMap=te(),this.categoryAxisMap=te(),this.coordSysName=e}return t})();function eI(t){var e=t.get("coordinateSystem"),r=new JL(e),n=tI[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var tI={cartesian2d:function(t,e,r,n){var i=t.getReferringComponents("xAxis",Ot).models[0],a=t.getReferringComponents("yAxis",Ot).models[0];e.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),ji(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),ji(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var i=t.getReferringComponents("singleAxis",Ot).models[0];e.coordSysDims=["single"],r.set("single",i),ji(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var i=t.getReferringComponents("polar",Ot).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),ji(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),ji(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();L(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),ji(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(t,e,r,n){var i=t.getReferringComponents("matrix",Ot).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 ji(t){return t.get("type")==="category"}function rI(t,e,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;nI(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,c,h,v=!0;function d(b){return b.type!=="ordinal"&&b.type!=="time"}if(L(a,function(b,S){q(b)&&(a[S]=b={name:b}),d(b)||(v=!1)}),L(a,function(b,S){l&&!b.isExtraCoord&&(!n&&!u&&b.ordinalMeta&&(u=b),!f&&d(b)&&(!v||b.coordDim!=="x"&&b.coordDim!=="angle")&&(!i||i===b.coordDim)&&(f=b))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var g=f.coordDim,p=f.type,m=0;L(a,function(b){b.coordDim===g&&m++});var y={name:c,coordDim:g,coordDimIndex:m,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:h,coordDim:h,coordDimIndex:m+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(h,p),_.storeDimIndex=s.ensureCalculationDimension(c,p)),o.appendCalculationDimension(y),o.appendCalculationDimension(_)):(a.push(y),a.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function nI(t){return!L0(t.schema)}function Qi(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function iI(t,e){return Qi(t,e)?t.getCalculationInfo("stackResultDimension"):e}function aI(t,e){var r=t.get("coordinateSystem"),n=kh.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=kL(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function oI(t,e,r){var n,i;return r&&L(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 Rl(t,e,r){r=r||{};var n=e.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===wt;var o=eI(e),s=aI(e,o),l=r.useEncodeDefaulter,u=ee(l)?l:l?Ne(xL,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=O0(i,f),h=oI(c.dimensions,r.createInvertedIndices,o),v=a?null:n.getSharedDataStore(c),d=rI(e,{schema:c,store:v}),g=new R0(c,e);g.setCalculationInfo(d);var p=h!=null&&sI(i)?function(m,y,_,b){return b===h?_:this.defaultDimValueGetter(m,y,_,b)}:null;return g.hasItemOption=!1,g.initData(a?i:v,null,p),g}function sI(t){if(t.sourceFormat===wt){var e=lI(t.data||[]);return!W(eo(e))}}function lI(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var uI=Math.round(Math.random()*10);function _o(t){return[t||"",uI++].join("_")}function fI(t){var e={};t.registerSubTypeDefaulter=function(r,n){var i=pr(r);e[i.main]=n},t.determineSubType=function(r,n){var i=n.type;if(!i){var a=pr(r).main;t.hasSubTypes(r)&&e[a]&&(i=e[a](n))}return i}}function cI(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,c=u.noEntryList,h={};for(L(a,function(y){h[y]=!0});c.length;){var v=c.pop(),d=f[v],g=!!h[v];g&&(s.call(l,v,d.originalDeps.slice()),delete h[v]),L(d.successor,g?m:p)}L(h,function(){var y="";throw new Error(y)});function p(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function m(y){h[y]=!0,p(y)}};function r(a){var o={},s=[];return L(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),L(c,function(h){fe(u.predecessor,h)<0&&u.predecessor.push(h);var v=n(o,h);fe(v.successor,h)<0&&v.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 L(a,function(l){fe(o,l)>=0&&s.push(l)}),s}}function z0(t,e){return we(we({},t,!0),e,!0)}var hI=Math.log(2);function Rh(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)/hI);return t[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,h=0,v=0;h<s;h++){var d=1<<h;d&i||(c+=(v%2?-1:1)*t[r][h]*Rh(t,e-1,f,u,i|d,a),v++)}return a[o]=c,c}function V0(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=Rh(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)*Rh(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 Ol="___zrEVENTSAVED",Oh=[];function vI(t,e,r,n,i){return Nh(Oh,e,n,i,!0)&&Nh(t,r,Oh[0],Oh[1])}function dI(t,e){t&&r(t),e&&r(e);function r(n){var i=n[Ol];i&&(i.clearMarkers&&i.clearMarkers(),delete n[Ol])}}function Nh(t,e,r,n,i){if(e.getBoundingClientRect&&ie.domSupported&&!G0(e)){var a=e[Ol]||(e[Ol]={}),o=pI(e,a),s=gI(o,a,i);if(s)return s(t,r,n),!0}return!1}function pI(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(){L(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function gI(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,h=f.left,v=f.top;o.push(h,v),l=l&&a&&h===a[c]&&v===a[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=r?V0(s,o):V0(o,s))}function G0(t){return t.nodeName.toUpperCase()==="CANVAS"}var mI=/([&<>"'])/g,yI={"&":"&","<":"<",">":">",'"':""","'":"'"};function st(t){return t==null?"":(t+"").replace(mI,function(e,r){return yI[r]})}const _I={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:". "}}}},bI={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 Nl="ZH",Bh="EN",Ji=Bh,Bl={},Fh={},H0=ie.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ji).toUpperCase();return t.indexOf(Nl)>-1?Nl:Ji})():Ji;function U0(t,e){t=t.toUpperCase(),Fh[t]=new Ce(e),Bl[t]=e}function SI(t){if(q(t)){var e=Bl[t.toUpperCase()]||{};return t===Nl||t===Bh?oe(e):we(oe(e),oe(Bl[Ji]),!1)}else return we(oe(t),oe(Bl[Ji]),!1)}function wI(t){return Fh[t]}function xI(){return Fh[Ji]}U0(Bh,_I),U0(Nl,bI);var TI=null;function lt(){return TI}function W0(t,e){var r=lt(),n=e.breakOption,i=e.breakParsed;return!i&&r&&(i=r.parseAxisBreakOption(n,t)),i}function Fl(t){var e=t.brk;return e?e.breaks:[]}function zl(t){var e=t.brk;return e?e.hasBreaks():!1}var zh=1e3,Vh=zh*60,bo=Vh*60,Vt=bo*24,Y0=Vt*365,CI={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})/},Vl={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},AI="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Gl="{yyyy}-{MM}-{dd}",$0={year:"{yyyy}",month:"{yyyy}-{MM}",day:Gl,hour:Gl+" "+Vl.hour,minute:Gl+" "+Vl.minute,second:Gl+" "+Vl.second,millisecond:AI},xt=["year","month","day","hour","minute","second","millisecond"],DI=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function MI(t){return!q(t)&&!ee(t)?LI(t):t}function LI(t){t=t||{};var e={},r=!0;return L(xt,function(n){r&&(r=t[n]==null)}),L(xt,function(n,i){var a=t[n];e[n]={};for(var o=null,s=i;s>=0;s--){var l=xt[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=Vl[n]:CI[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),e[n][l]=f}}),e}function fn(t,e){return t+="","0000".substr(0,e-t.length)+t}function So(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 II(t){return t===So(t)}function PI(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Hl(t,e,r,n){var i=Bi(t),a=i[X0(r)](),o=i[Hh(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[Uh(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[Wh(r)](),c=(f-1)%12+1,h=i[Yh(r)](),v=i[$h(r)](),d=i[Xh(r)](),g=f>=12?"pm":"am",p=g.toUpperCase(),m=n instanceof Ce?n:wI(n||H0)||xI(),y=m.getModel("time"),_=y.get("month"),b=y.get("monthAbbr"),S=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,fn(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,fn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,fn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,fn(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,fn(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,fn(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,fn(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,fn(d,3)).replace(/{S}/g,d+"")}function EI(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=lt();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=ea(t.value,i);a=r[f][f][0]}}return Hl(new Date(t.value),a,i,n)}function ea(t,e){var r=Bi(t),n=r[Hh(e)]()+1,i=r[Uh(e)](),a=r[Wh(e)](),o=r[Yh(e)](),s=r[$h(e)](),l=r[Xh(e)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&a===0,v=h&&i===1,d=v&&n===1;return d?"year":v?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Gh(t,e,r){switch(e){case"year":t[q0(r)](0);case"month":t[K0(r)](1);case"day":t[Z0(r)](0);case"hour":t[j0(r)](0);case"minute":t[Q0(r)](0);case"second":t[J0(r)](0)}return t}function X0(t){return t?"getUTCFullYear":"getFullYear"}function Hh(t){return t?"getUTCMonth":"getMonth"}function Uh(t){return t?"getUTCDate":"getDate"}function Wh(t){return t?"getUTCHours":"getHours"}function Yh(t){return t?"getUTCMinutes":"getMinutes"}function $h(t){return t?"getUTCSeconds":"getSeconds"}function Xh(t){return t?"getUTCMilliseconds":"getMilliseconds"}function kI(t){return t?"setUTCFullYear":"setFullYear"}function q0(t){return t?"setUTCMonth":"setMonth"}function K0(t){return t?"setUTCDate":"setDate"}function Z0(t){return t?"setUTCHours":"setHours"}function j0(t){return t?"setUTCMinutes":"setMinutes"}function Q0(t){return t?"setUTCSeconds":"setSeconds"}function J0(t){return t?"setUTCMilliseconds":"setMilliseconds"}function e_(t){if(!TD(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 t_(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 Ul=Cf;function qh(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&dr(f)?f:"-"}function a(f){return Rt(f)}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?Bi(t):t;if(isNaN(+l)){if(s)return"-"}else return Hl(l,n,r)}if(e==="ordinal")return wf(t)?i(t):me(t)&&a(t)?t+"":"-";var u=rl(t);return a(u)?e_(u):wf(t)?i(t):typeof t=="boolean"?t+"":"-"}var r_=["a","b","c","d","e","f","g"],Kh=function(t,e){return"{"+t+(e??"")+"}"};function n_(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=r_[a];t=t.replace(Kh(o),Kh(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(Kh(r_[l],s),r?st(u):u)}return t}function RI(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:'+st(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+st(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 ni(t,e){return e=e||"transparent",q(t)?t:j(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function i_(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var Wl=L,OI=["left","right","top","bottom","width","height"],Yl=[["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),h=c&&c.getBoundingRect(),v,d;if(t==="horizontal"){var g=f.width+(h?-h.x+f.x:0);v=a+g,v>n||l.newline?(a=0,v=g,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(h?-h.y+f.y:0);d=o+p,d>i||l.newline?(a+=s+r,o=0,d=p,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=v+r:o=d+r)})}var wo=Zh;Ne(Zh,"vertical"),Ne(Zh,"horizontal");function NI(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 BI(t,e){var r=ta(t,e,{enableLayoutOnlyByCenter:!0}),n=t.getBoxLayoutParams(),i,a;if(r.type===xo.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===N0?r.refPoint:[Q(s[0],i.width)+i.x,Q(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function FI(t,e){var r=BI(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=Ul(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],h=r[1]+r[3],v=t.aspect;switch(isNaN(u)&&(u=n-s-h-a),isNaN(f)&&(f=i-l-c-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(a)&&(a=n-s-u-h),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-h;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-h-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 xo={rect:1,point:2};function ta(t,e,r){var n,i,a,o=t.boxCoordinateSystem,s;if(o){var l=F0(t),u=l.coord,f=l.from;if(o.dataToLayout){a=xo.rect,s=f;var c=o.dataToLayout(u);n=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=xo.point,s=f,i=o.dataToPoint(u))}return a==null&&(a=xo.rect),a===xo.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 To(t){var e=t.layoutMode||t.constructor.layoutMode;return j(e)?e:e?{type:e}:null}function cn(t,e,r){var n=r&&r.ignoreSize;!W(n)&&(n=[n,n]);var i=o(Yl[0],0),a=o(Yl[1],1);l(Yl[0],t,i),l(Yl[1],t,a);function o(u,f){var c={},h=0,v={},d=0,g=2;if(Wl(u,function(y){v[y]=t[y]}),Wl(u,function(y){it(e,y)&&(c[y]=v[y]=e[y]),s(c,y)&&h++,s(v,y)&&d++}),n[f])return s(e,u[1])?v[u[2]]=null:s(e,u[2])&&(v[u[1]]=null),v;if(d===g||!h)return v;if(h>=g)return c;for(var p=0;p<u.length;p++){var m=u[p];if(!it(c,m)&&it(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){Wl(u,function(h){f[h]=c[h]})}}function Co(t){return zI({},t)}function zI(t,e){return e&&t&&Wl(OI,function(r){it(e,r)&&(t[r]=e[r])}),t}var VI=be(),ye=(function(t){V(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.uid=_o("ec_cpt_model"),a}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=To(this),a=i?Co(r):{},o=n.getTheme();we(r,o.get(this.mainType)),we(r,this.getDefaultOption()),i&&cn(r,a,i)},e.prototype.mergeOption=function(r,n){we(this.option,r,!0);var i=To(this);i&&cn(this.option,r,i)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!PC(r))return r.defaultOption;var n=VI(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=we(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return no(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){return NI(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})(Ce);gg(ye,Ce),ws(ye),fI(ye),cI(ye,GI);function GI(t){var e=[];return L(ye.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=$(e,function(r){return pr(r).main}),t!=="dataset"&&fe(e,"dataset")<=0&&e.unshift("dataset"),e}var a_=be();be();var jh=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var i=ot(this.get("color",!0)),a=this.get("colorLayer",!0);return UI(this,a_,i,a,e,r,n)},t.prototype.clearColorPalette=function(){WI(this,a_)},t})();function HI(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 UI(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:HI(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 WI(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var YI=/\{@(.+?)\}/g,$I=(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,h=c==="series",v=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.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=n_(a,l);return f.replace(YI,function(c,h){var v=h.length,d=h;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var g=qi(s,e,d);if(o&&W(o.interpolatedValue)){var p=s.getDimensionIndex(d);p>=0&&(g=o.interpolatedValue[p])}return g!=null?g+"":""})}},t.prototype.getRawValue=function(e,r){return qi(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t})();function o_(t){var e,r;return j(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function Ao(t){return new XI(t)}var XI=(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 h=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||v<d)){var g=this._progress;if(W(g))for(var p=0;p<g.length;p++)this._doProgress(g[p],v,d,l,u);else this._doProgress(g,v,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){s_.reset(r,n,i,a),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:s_.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})(),s_=(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}})(),qI=(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 Il(e,r)},t})();function KI(t,e){var r=new qI,n=t.data,i=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==Qt&>(o);var s=[],l={},u=t.dimensionsDefine;if(u)L(u,function(g,p){var m=g.name,y={index:p,name:m,displayName:g.displayName};if(s.push(y),m!=null){var _="";it(l,m)&>(_),l[m]=y}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=y0(i,Qt);e.__isBuiltIn&&(r.getRawDataItem=function(g){return c(n,a,s,g)},r.getRawData=de(ZI,null,t)),r.cloneRawData=de(jI,null,t);var h=b0(i,Qt);r.count=de(h,null,n,a,s);var v=S0(i);r.retrieveValue=function(g,p){var m=c(n,a,s,g);return d(m,p)};var d=r.retrieveValueFromItem=function(g,p){if(g!=null){var m=s[p];if(m)return v(g,p,m.name)}};return r.getDimensionInfo=de(QI,null,s,l),r.cloneAllDimensionInfo=de(JI,null,s),r}function ZI(t){var e=t.sourceFormat;if(!Qh(e)){var r="";gt(r)}return t.data}function jI(t){var e=t.sourceFormat,r=t.data;if(!Qh(e)){var n="";gt(n)}if(e===Qe){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(e===Bt){for(var i=[],a=0,o=r.length;a<o;a++)i.push(z({},r[a]));return i}}function QI(t,e,r){if(r!=null){if(me(r)||!isNaN(r)&&!it(e,r))return t[r];if(it(e,r))return e[r]}}function JI(t){return oe(t)}var l_=te();function e2(t){t=oe(t);var e=t.type,r="";e||gt(r);var n=e.split(":");n.length!==2&>(r);var i=!1;n[0]==="echarts"&&(e=n[1],i=!0),t.__isBuiltIn=i,l_.set(e,t)}function t2(t,e,r){var n=ot(t),i=n.length,a="";i||gt(a);for(var o=0,s=i;o<s;o++){var l=n[o];e=r2(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function r2(t,e,r,n){var i="";e.length||gt(i),j(t)||gt(i);var a=t.type,o=l_.get(a);o||gt(i);var s=$(e,function(u){return KI(u,o)}),l=ot(o.transform({upstream:s[0],upstreamList:s,config:oe(t.config)}));return $(l,function(u,f){var c="";j(u)||gt(c),u.data||gt(c);var h=f0(u.data);Qh(h)||gt(c);var v,d=e[0];if(d&&f===0&&!u.dimensions){var g=d.startIndex;g&&(u.data=d.data.slice(0,g).concat(u.data)),v={seriesLayoutBy:Qt,sourceHeader:g,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:Qt,sourceHeader:0,dimensions:u.dimensions};return xh(u.data,v,null)})}function Qh(t){return t===Qe||t===Bt}var u_=(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($l(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=dt(s)?on:wt,a=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=K(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=K(c.sourceHeader,h.sourceHeader),g=K(c.dimensions,h.dimensions),p=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||g;i=p?[xh(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:g},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=[xh(_,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&&c_(a)}var o,s=[],l=[];return L(e,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&c_(c),s.push(f),l.push(u._getVersionSign())}),n?o=t2(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[CL(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];$l(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,n):(s=new Mh,s.initData(new g0(r,e.length),e)),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if($l(e)){var r=Sh(e);return r?[r.getSourceManager()]:[]}else return $(TL(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,i;if($l(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 f_(t){var e=t.option.transform;e&&_s(t.option.transform)}function $l(t){return t.mainType==="series"}function c_(t){throw new Error(t)}var Y={color:{},darkColor:{},size:{}},Ee=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(Ee,{primary:Ee.neutral80,secondary:Ee.neutral70,tertiary:Ee.neutral60,quaternary:Ee.neutral50,disabled:Ee.neutral20,border:Ee.neutral30,borderTint:Ee.neutral20,borderShade:Ee.neutral40,background:Ee.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Ee.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Ee.neutral70,axisLineTint:Ee.neutral40,axisTick:Ee.neutral70,axisTickMinor:Ee.neutral60,axisLabel:Ee.neutral70,axisSplitLine:Ee.neutral15,axisMinorSplitLine:Ee.neutral05});for(var ii in Ee)if(Ee.hasOwnProperty(ii)){var h_=Ee[ii];ii==="theme"?Y.darkColor.theme=Ee.theme.slice():ii==="highlight"?Y.darkColor.highlight="rgba(255,231,130,0.4)":ii.indexOf("accent")===0?Y.darkColor[ii]=ec(h_,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):Y.darkColor[ii]=ec(h_,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 n2="line-height:1";function v_(t){var e=t.lineHeight;return e==null?n2:"line-height:"+st(e+"")+"px"}function d_(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:"+st(n+"")+"px;color:"+st(r)+";font-weight:"+st(i+""),valueStyle:"font-size:"+st(o+"")+"px;color:"+st(a)+";font-weight:"+st(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var i2=[0,10,20,30],a2=["",`
|
|
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(" ")+"</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&<(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"?`
|
|
14
|
+
`];function ai(t,e){return e.type=t,e}function Jh(t){return t.type==="section"}function p_(t){return Jh(t)?o2:s2}function g_(t){if(Jh(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return L(t.blocks,function(i){var a=g_(i);a>=e&&(e=a+ +(n&&(!a||Jh(i)&&!i.noHeader)))}),e}return 0}function o2(t,e,r,n){var i=e.noHeader,a=l2(g_(e)),o=[],s=e.blocks||[];qt(!s||W(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(it(u,l)){var f=new OL(u[l],null);s.sort(function(g,p){return f.evaluate(g.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}L(s,function(g,p){var m=e.valueFormatter,y=p_(g)(m?z(z({},t),{valueFormatter:m}):t,g,p>0?a.html:0,n);y!=null&&o.push(y)});var c=t.renderMode==="richText"?o.join(a.richText):ev(n,o.join(""),i?r:a.html);if(i)return c;var h=qh(e.header,"ordinal",t.useUTC),v=d_(n,t.renderMode).nameStyle,d=v_(n);return t.renderMode==="richText"?y_(t,h,v)+a.richText+c:ev(n,'<div style="'+v+";"+d+';">'+st(h)+"</div>"+c,r)}function s2(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(b){return b=W(b)?b:[b],$(b,function(S,w){return qh(S,W(v)?v[w]:v,u)})};if(!(a&&o)){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||Y.color.secondary,i),h=a?"":qh(l,"ordinal",u),v=e.valueType,d=o?[]:f(e.value,e.rawDataIndex),g=!s||!a,p=!s&&a,m=d_(n,i),y=m.nameStyle,_=m.valueStyle;return i==="richText"?(s?"":c)+(a?"":y_(t,h,y))+(o?"":c2(t,d,g,p,_)):ev(n,(s?"":c)+(a?"":u2(h,!s,y))+(o?"":f2(d,g,p,_)),r)}}function m_(t,e,r,n,i,a){if(t){var o=p_(t),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function l2(t){return{html:i2[t],richText:a2[t]}}function ev(t,e,r){var n='<div style="clear:both"></div>',i="margin: "+r+"px 0 0",a=v_(t);return'<div style="'+i+";"+a+';">'+e+n+"</div>"}function u2(t,e,r){var n=e?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+st(t)+"</span>"}function f2(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 st(o)}).join(" ")+"</span>"}function y_(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function c2(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 __(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return ni(n)}function b_(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var tv=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=Rc()}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=RI({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)?L(r,function(a){return z(n,a)}):z(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},t})();function h2(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=__(e,r),f,c,h,v;if(o>1||l&&!o){var d=v2(s,e,r,a,u);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var g=i.getDimensionInfo(a[0]);v=f=qi(i,r,a[0]),c=g.type}else v=f=l?s[0]:s;var p=Oc(e),m=p&&e.name||"",y=i.getName(r),_=n?m:y;return ai("section",{header:m,noHeader:n||!p,sortParam:v,blocks:[ai("nameValue",{markerType:"item",markerColor:u,name:_,noName:!dr(_),value:f,valueType:c,rawDataIndex:i.getRawIndex(r)})].concat(h||[])})}function v2(t,e,r,n,i){var a=e.getData(),o=Kr(t,function(c,h,v){var d=a.getDimensionInfo(v);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?L(n,function(c){f(qi(a,r,c),c)}):L(t,f);function f(c,h){var v=a.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(ai("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:c,valueType:v.type})):(s.push(c),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var hn=be();function Xl(t,e){return t.getName(e)||t.getId(e)}var d2="__universalTransitionEnabled",ut=(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=Ao({count:g2,reset:m2}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=hn(this).sourceManager=new u_(this);a.prepareSource();var o=this.getInitialData(r,i);w_(o,this),this.dataTask.context.data=o,hn(this).dataBeforeProcessed=o,S_(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=To(this),a=i?Co(r):{},o=this.subType;ye.hasClass(o)&&(o+="Series"),we(r,n.getTheme().get(this.subType)),we(r,this.getDefaultOption()),nl(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&cn(r,a,i)},e.prototype.mergeOption=function(r,n){r=we(this.option,r,!0),this.fillDataTextStyle(r.data);var i=To(this);i&&cn(this.option,r,i);var a=hn(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);w_(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,hn(this).dataBeforeProcessed=o,S_(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!dt(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&nl(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=rv(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return hn(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=rv(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}hn(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return te(r)},e.prototype.getSourceManager=function(){return hn(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return hn(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,h=-1,v=0,d=o.getDimensionIndex(n),g=o.getStore(),p=0,m=g.count();p<m;p++){var y=g.get(d,p),_=l.dataToCoord(y),b=u-_,S=Math.abs(b);S<=a&&((S<c||S===c&&b>=0&&h<0)&&(c=S,h=b,v=0),b===h&&(f[v++]=p))}return f.length=v,f},e.prototype.formatTooltip=function(r,n,i){return h2({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=jh.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=Xl(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[Xl(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[d2])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],h=Xl(r,c);u[h]=!0,this._selectedDataIndicesMap[h]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var v=n[l-1],h=Xl(r,v);o.selectedMap=(i={},i[h]=!0,i),this._selectedDataIndicesMap=(a={},a[h]=r.getRawIndex(v),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);Xt(ut,$I),Xt(ut,jh),gg(ut,ye);function S_(t){var e=t.name;Oc(t)||(t.name=p2(t)||e)}function p2(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return L(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function g2(t){return t.model.getRawData().count()}function m2(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),y2}function y2(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function w_(t,e){L(CC(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Ne(_2,e))})}function _2(t,e){var r=rv(t);return r&&r.setOutputEnd((e||this).count()),e}function rv(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 b2=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()}}),S2=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()}}),w2=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),h=Math.cos(u),v=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*v,l+s+h*v,r,n-d,r,n),t.bezierCurveTo(r,n-d,r-f+c*v,l+s+h*v,r-f,l+s),t.closePath()}}),x2=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()}}),T2={line:Dr,rect:Le,roundRect:Le,square:Le,circle:ao,diamond:S2,pin:w2,arrow:x2,triangle:b2},C2={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}},nv={};L(T2,function(t,e){nv[e]=new t});var A2=pe.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=Cs(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=nv[n];i||(n="rect",i=nv[n]),C2[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,r)}}});function D2(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 Mr(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=Fy(t.slice(8),new ne(e,r,n,i),o?"center":"cover"):t.indexOf("path://")===0?l=fh(t.slice(7),{},new ne(e,r,n,i),o?"center":"cover"):l=new A2({shape:{symbolType:t,x:e,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=D2,a&&l.setColor(a),l}function x_(t){return W(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function T_(t,e){if(t!=null)return W(t)||(t=[t,t]),[Q(t[0],e[0])||0,Q(K(t[1],t[0]),e[1])||0]}var M2=(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 Rl(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var n=new De,i=Mr("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=Mr(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})(ut);function iv(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=qi(t,e,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(qi(t,e,r[o]));return a.join(" ")}}function C_(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 av=(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=Mr(r,-1,-1,2,2,null,s);l.attr({z2:K(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=L2,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(){cl(this.childAt(0))},e.prototype.downplay=function(){hl(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 h=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,u,h)}else{var v=this.childAt(0);v.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?v.attr(d):Pe(v,d,s,n),Yi(v)}if(this._updateCommon(r,n,l,i,a),f){var v=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Ue(v,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,h,v,d,g,p,m;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,h=a.focus,v=a.blurScope,g=a.labelStatesModels,p=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(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),g=Qn(y),p=_.getShallow("scale"),m=y.getShallow("cursor")}var b=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(b||0)*Math.PI/180||0);var S=T_(r.getItemVisual(n,"symbolOffset"),i);S&&(s.x=S[0],s.y=S[1]),m&&s.attr("cursor",m);var w=r.getItemVisual(n,"style"),x=w.fill;if(s instanceof Et){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(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=r.getItemVisual(n,"liftZ"),T=this._z2;D!=null?T==null&&(this._z2=s.z2,s.z2+=D):T!=null&&(s.z2=T,this._z2=null);var A=o&&o.useNameLabel;jn(s,g,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:x,defaultOpacity:w.opacity});function I(E){return A?r.getName(E):iv(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=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;M.scaleX=this._sizeX*P,M.scaleY=this._sizeY*P,this.setSymbolScale(1),zr(this,h,v,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&&Sl(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Sl(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return x_(r.getItemVisual(n,"symbolSize"))},e.getSymbolZ2=function(r,n){return r.getItemVisual(n,"z2")},e})(De);function L2(t,e){this.parent.drift(t,e)}function ql(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 A_(t){return t!=null&&!j(t)&&(t={isIgnore:t}),t||{}}function D_(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:Qn(e),cursorStyle:e.get("cursor")}}function M_(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 L_=(function(){function t(e){this.group=new De,this._SymbolCtor=e||av}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=A_(r);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=this._seriesScope=D_(e),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return e.getItemLayout(c)};a||n.removeAll(),e.diff(a).add(function(c){var h=f(c);ql(e,h,c,r)&&M_(o,e,c,l,u,h,n)}).update(function(c,h){var v=a.getItemGraphicEl(h),d=f(c);if(!ql(e,d,c,r)){n.remove(v);return}var g=e.getItemVisual(c,"symbol")||"circle",p=v&&v.getSymbolType&&v.getSymbolType();if(!v||p&&p!==g)n.remove(v),v=new o(e,c,l,u),v.setPosition(d);else{v.updateData(e,c,l,u);var m={x:d[0],y:d[1]};s?v.attr(m):Pe(v,m,i)}n.add(v),e.setItemGraphicEl(c,v)}).remove(function(c){var h=a.getItemGraphicEl(c);h&&h.fadeOut(function(){n.remove(h)},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);ql(r,l,a,e)?(s=s||M_(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=D_(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n,i){this._progressiveEls=[],i=A_(i);function a(u){u.isGroup||(u.incremental=n,u.ensureState("emphasis").hoverLayer=uh)}for(var o=e.start;o<e.end;o++){var s=r.getItemLayout(o);if(ql(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){Tl(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 I_(t,e,r){var n=t.getBaseAxis(),i=t.getOtherAxis(n),a=I2(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)}),h=!1,v=e.getCalculationInfo("stackResultDimension");return Qi(e,c[0])&&(h=!0,c[0]=v),Qi(e,c[1])&&(h=!0,c[1]=v),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function I2(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 P_(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 Gt(t,e){return!isFinite(t)||!isFinite(e)}var P2=typeof Float32Array!==zi?Float32Array:void 0,E2=typeof Float64Array!==zi?Float64Array:void 0;function Hr(t){return ov({ctor:P2},t).arr}function ov(t,e){var r=t.arr,n=t.ctor;if(e>km&&(e=km),!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 k2(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 R2(t,e,r,n,i,a,o,s){for(var l=k2(t,e),u=[],f=[],c=[],h=[],v=[],d=[],g=[],p=I_(i,e,o),m=t.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_<l.length;_++){var b=l[_],S=!0,w=void 0,x=void 0;switch(b.cmd){case"=":w=b.idx*2,x=b.idx1*2;var C=m[w],D=m[w+1],T=y[x],A=y[x+1];(isNaN(C)||isNaN(D))&&(C=T,D=A),u.push(C,D),f.push(T,A),c.push(r[w],r[w+1]),h.push(n[x],n[x+1]),g.push(e.getRawIndex(b.idx1));break;case"+":var I=b.idx,M=p.dataDimsForPoint,P=i.dataToPoint([e.get(M[0],I),e.get(M[1],I)]);x=I*2,u.push(P[0],P[1]),f.push(y[x],y[x+1]);var E=P_(p,i,e,I);c.push(E[0],E[1]),h.push(n[x],n[x+1]),g.push(e.getRawIndex(I));break;case"-":S=!1}S&&(v.push(b),d.push(d.length))}d.sort(function(Z,ae){return g[Z]-g[ae]});for(var k=u.length,O=Hr(k),R=Hr(k),N=Hr(k),F=Hr(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]=h[H],F[X+1]=h[H+1],B[_]=v[G]}return{current:O,next:R,stackedOnCurrent:N,stackedOnNext:F,status:B}}var vn=Math.min,dn=Math.max;function sv(t,e,r,n,i,a,o,s,l){for(var u,f,c,h,v,d,g=r,p=0;p<n;p++){var m=e[g*2],y=e[g*2+1];if(g>=i||g<0)break;if(Gt(m,y)){if(l){g+=a;continue}break}if(g===r)t[a>0?"moveTo":"lineTo"](m,y),c=m,h=y;else{var _=m-u,b=y-f;if(_*_+b*b<.5){g+=a;continue}if(o>0){for(var S=g+a,w=e[S*2],x=e[S*2+1];w===m&&x===y&&p<n;)p++,S+=a,g+=a,w=e[S*2],x=e[S*2+1],m=e[g*2],y=e[g*2+1],_=m-u,b=y-f;var C=p+1;if(l)for(;Gt(w,x)&&C<n;)C++,S+=a,w=e[S*2],x=e[S*2+1];var D=.5,T=0,A=0,I=void 0,M=void 0;if(C>=n||Gt(w,x))v=m,d=y;else{T=w-u,A=x-f;var P=m-u,E=w-m,k=y-f,O=x-y,R=void 0,N=void 0;if(s==="x"){R=Math.abs(P),N=Math.abs(E);var F=T>0?1:-1;v=m-F*R*o,d=y,I=m+F*N*o,M=y}else if(s==="y"){R=Math.abs(k),N=Math.abs(O);var B=A>0?1:-1;v=m,d=y-B*R*o,I=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),v=m-T*o*(1-D),d=y-A*o*(1-D),I=m+T*o*D,M=y+A*o*D,I=vn(I,dn(w,m)),M=vn(M,dn(x,y)),I=dn(I,vn(w,m)),M=dn(M,vn(x,y)),T=I-m,A=M-y,v=m-T*R/N,d=y-A*R/N,v=vn(v,dn(u,m)),d=vn(d,dn(f,y)),v=dn(v,vn(u,m)),d=dn(d,vn(f,y)),T=m-v,A=y-d,I=m+T*N/R,M=y+A*N/R}t.bezierCurveTo(c,h,v,d,m,y),c=I,h=M}else t.lineTo(m,y)}u=m,f=y,g+=a}return p}var E_=(function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t})(),O2=(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 E_},e.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&Gt(i[o*2-2],i[o*2-1]);o--);for(;a<o&&Gt(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=sv(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=rn.CMD,s,l,u=n==="x",f=[],c=0;c<a.length;){var h=a[c++],v=void 0,d=void 0,g=void 0,p=void 0,m=void 0,y=void 0,_=void 0;switch(h){case o.M:s=a[c++],l=a[c++];break;case o.L:if(v=a[c++],d=a[c++],_=u?(r-s)/(v-s):(r-l)/(d-l),_<=1&&_>=0){var b=u?(d-l)*_+l:(v-s)*_+s;return u?[r,b]:[b,r]}s=v,l=d;break;case o.C:v=a[c++],d=a[c++],g=a[c++],p=a[c++],m=a[c++],y=a[c++];var S=u?Is(s,v,g,m,r,f):Is(l,d,p,y,r,f);if(S>0)for(var w=0;w<S;w++){var x=f[w];if(x<=1&&x>=0){var b=u?Xe(l,d,p,y,x):Xe(s,v,g,m,x);return u?[r,b]:[b,r]}}s=m,l=y;break}}},e})(pe),N2=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(E_),B2=(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 N2},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&&Gt(i[s*2-2],i[s*2-1]);s--);for(;o<s&&Gt(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=sv(r,i,o,s,s,1,n.smooth,l,n.connectNulls);sv(r,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},e})(pe);function lv(){var t=be();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 k_=be(),F2=lv(),et=(function(){function t(){this.group=new De,this.uid=_o("viewChart"),this.renderTask=Ao({plan:z2,reset:V2}),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&&O_(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&O_(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){Tl(this.group,e)},t.markUpdateMethod=function(e,r){k_(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function R_(t,e,r){t&&Jc(t)&&(e==="emphasis"?cl:hl)(t,r)}function O_(t,e,r){var n=Yn(t,e),i=e&&e.highlightKey!=null?pM(e.highlightKey):null;n!=null?L(ot(n),function(a){R_(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){R_(a,r,i)})}Af(et),ws(et);function z2(t){return F2(t.model)}function V2(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&k_(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,n,i),G2[l]}var G2={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 N_(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 Le({shape:{x:o,y:s,width:l,height:u}});if(e){var h=t.getBaseAxis(),v=h.isHorizontal(),d=h.inverse;v?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var g=ee(i)?function(p){i(p,c)}:null;Ue(c,{shape:{width:l,height:u,x:o,y:s}},r,null,n,g)}return c}function B_(t,e,r){var n=t.getArea(),i=ve(n.r0,1),a=ve(n.r,1),o=new Ar({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,Ue(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function H2(t,e,r,n,i){if(t){if(t.type==="polar")return B_(t,e,r);if(t.type==="cartesian2d")return N_(t,e,r,n,i)}else return null;return null}function U2(t){var e=t.coordinateSystem;if(t.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}function F_(t,e){return t.type===e}var tr=(function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();ws(tr);var W2=0,uv=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++W2,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,n=r.data,i=n&&$(n,Y2);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 Y2(t){return j(t)&&t.value!=null?t.value:t+""}var Ht=0,Do=1,$2={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},z_=ce($2),Kl=2,V_=3;function fv(t,e,r){var n;t=t||{};var i=lt();if(i){var a=i.createBreakScaleMapper(e,r);a.hasBreaks()&&(L(z_,function(o){a[o]&&(t[o]=de(a[o],a))}),n=a)}return n==null&&q2(t,r),{brk:n,mapper:t}}function G_(t,e){L(z_,function(r){t[r]=e[r]})}function H_(t,e){t.freeze=$e}function Mo(t){return t.getExtentUnsafe(Ht,Kl)}function Zl(t,e){return t.getExtentUnsafe(Do,e)||t.getExtentUnsafe(Ht,e)}function X2(t){var e=Zl(t,V_);return e[1]-e[0]}function jl(t){var e=t.getExtentUnsafe(Ht,V_);return e[1]-e[0]}function q2(t,e){var r=t||{},n=[];return r._extents=n,n[Ht]=e?e.slice():Nt(),z(r,K2),r}var K2={needTransform:function(){return!1},normalize:function(t){var e=this._extents[Do]||this._extents[Ht];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[Do]||this._extents[Ht];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=Zl(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[Ht].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){U_(this._extents,Ht,t,e)},setExtent2:function(t,e,r){var n=this._extents;n[t]||(n[t]=n[Ht].slice()),U_(n,t,e,r)},freeze:function(){}};function U_(t,e,r,n){Fi(r,n)&&(t[e][0]=r,t[e][1]=n)}function W_(t){return Ql(t)||ra(t)}function Ql(t){return t.type==="interval"}function cv(t){return t.type==="time"}function ra(t){return t.type==="log"}function rr(t){return t.type==="ordinal"}function Z2(t){var e=Ec(t),r=Wn(10,e),n=Nr(t/r);return n?n===2?n=3:n===3?n=5:n*=2:n=1,ve(n*r,-e)}function oi(t){return an(t)+2}function Jl(t,e){return Ja(t)/Ja(e)}function hv(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 Wn(e,t)}function Y_(t,e,r){var n=t.slice();if(n[0]===n[1]){var i=r&&r.ctnShp;if(n[0]!==0){var a=Fe(n[0]);e[1]||(n[1]+=a/2),n[0]-=a/2}else i&&(n[0]=-1),n[1]=1}return(!Br(n[0])||!Br(n[1]))&&(n[0]=0,n[1]=1),n[1]<n[0]&&n.reverse(),n}function j2(t,e){return[t[0]!==e[0],t[1]!==e[1]]}function eu(t,e){return t=t||e,Nr(ge(t,1))}function $_(t,e,r){var n=Mo(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 X_=(function(t){V(e,t);function e(r){var n=t.call(this)||this;n.type="ordinal",n.parse=e.parse,G_(n,e.decoratedMethods);var i=r.ordinalMeta;i||(i=new uv({})),W(i)&&(i=new uv({categories:$(i,function(o){return j(o)?o.value:o})})),n._ordinalMeta=i;var a=fv(null,null,r.extent||[0,i.categories.length-1]);return n._mapper=a.mapper,H_(n),n}return e.parse=function(r){return r==null?r=NaN:q(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=Nr(r),r},e.prototype.getTicks=function(){var r=[];return $_(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=je(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=Mo(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(Nr(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})(tr);tr.registerClass(X_);function vv(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=[],h=l.value-u.value,v=h/e,d=oi(v);f<e-1;){var g=ve(u.value+(f+1)*v,d);g>o[0]&&g<o[1]&&c.push(g),f++}var p=lt();p&&p.pruneTicksByBreak("auto",c,r,function(m){return m},n,o),a.push(c)}}return a}var pn=(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=fv(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=Mo(this);this._cfg=r=oe(r),r.niceExtent==null&&(r.niceExtent=n.slice()),r.intervalPrecision==null&&(r.intervalPrecision=oi(r.interval))},e.prototype.getTicks=function(r){r=r||{};var n=this._cfg,i=n.interval,a=Mo(this),o=n.niceExtent,s=n.intervalPrecision,l=lt(),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 h=3e3;a[0]<o[0]&&c.push({value:r.expandToNicedExtent?ve(o[0]-i,s):a[0]});for(var v=function(_,b){return Nr((b-_)/i)},d=n.intervalCount,g=o[0],p=0;;p++){if(d==null){if(g>o[1]||!isFinite(g)||!isFinite(o[1]))break}else{if(p>d)break;g=je(g,o[1]),p===d&&(g=o[1])}if(c.push({value:g}),g=ve(g+i,s),u){var m=u.calcNiceTickMultiple(g,v);m>=0&&(g=ve(g+m*i,s))}if(c.length>0&&g===c[c.length-1].value)break;if(c.length>h)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 vv(this,r,Fl(this),this._cfg.interval)},e.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=an(r.value)||0:i==="auto"&&(i=this._cfg.intervalPrecision);var a=ve(r.value,i,!0);return e_(a)},e.type="interval",e})(tr);tr.registerClass(pn);var Q2=function(t,e,r,n){for(;r<n;){var i=r+n>>>1;t[i][1]<e?r=i+1:n=i}return r},q_=(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=fv(n,i,null);return n.brk=a.brk,n}return e.prototype.getLabel=function(r){return Hl(r.value,$0[PI(So(this._minLevelUnit))]||$0.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(r,n,i){return EI(r,n,i,this._locale,this._useUTC)},e.prototype.getTicks=function(r){r=r||{};var n=this._interval,i=Mo(this),a=lt(),o=this.brk,s=a&&o,l=[];if(!n)return l;var u=this._useUTC;if(s&&r.breakTicks==="only_break")return lt().addBreaksToTicks(l,o.breaks,i),l;l=aP(this._minLevelUnit,this._approxInterval,u,i,jl(this),o);var f=xt.length-1,c=0;return L(l,function(h){h.time&&(f=Math.min(f,fe(xt,h.time.upperTimeUnit)),c=Math.max(c,h.time.level))}),s&<().pruneTicksByBreak(r.pruneByBreak,l,o.breaks,function(h){return h.value},this._approxInterval,i),s&&r.breakTicks!=="none"&<().addBreaksToTicks(l,o.breaks,i,function(h){for(var v=Math.max(fe(xt,ea(h.vmin,u)),fe(xt,ea(h.vmax,u))),d=0,g=0;g<xt.length;g++)if(!K_(xt[g],h.vmin,h.vmax,u)){d=g;break}var p=Math.min(d,f),m=Math.max(p,v);return{level:c,lowerTimeUnit:xt[m],upperTimeUnit:xt[p]}}),l},e.prototype.getMinorTicks=function(r){return vv(this,r,Fl(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):+Bi(r)},e.type="time",e})(tr),tu=[["second",zh],["minute",Vh],["hour",bo],["quarter-day",bo*6],["half-day",bo*12],["day",Vt*1.2],["half-week",Vt*3.5],["week",Vt*7],["month",Vt*31],["quarter",Vt*95],["half-year",Y0/2],["year",Y0]];function K_(t,e,r,n){return Gh(new Date(e),t,n).getTime()===Gh(new Date(r),t,n).getTime()}function J2(t,e){return t/=Vt,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function eP(t){var e=30*Vt;return t/=e,t>6?6:t>3?3:t>2?2:1}function tP(t){return t/=bo,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function Z_(t,e){return t/=e?Vh:zh,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function rP(t){return ge(kc(t,!0),1)}function nP(t,e,r){var n=Math.max(0,fe(xt,e)-1);return Gh(new Date(t),xt[n],r).getTime()}function iP(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 aP(t,e,r,n,i,a){var o=3e3,s=DI,l=0;function u(k,O,R,N,F,B,G){for(var X=iP(F,k),H=O,Z=new Date(H);H<R&&H<=n[1]&&(G.push({value:H}),!(l++>o));)if(Z[F](Z[N]()+k),H=Z.getTime(),a){var ae=a.calcNiceTickMultiple(H,X);ae>0&&(Z[F](Z[N]()+ae*k),H=Z.getTime())}G.push({value:H,notAdd:H>n[1]})}function f(k,O,R){var N=[],F=!O.length;if(!K_(So(k),n[0],n[1],r)){F&&(O=[{value:nP(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,Z=void 0,ae=void 0,Re=!1;switch(k){case"year":H=Math.max(1,Math.round(e/Vt/365)),Z=X0(r),ae=kI(r);break;case"half-year":case"quarter":case"month":H=eP(e),Z=Hh(r),ae=q0(r);break;case"week":case"half-week":case"day":H=J2(e),Z=Uh(r),ae=K0(r),Re=!0;break;case"half-day":case"quarter-day":case"hour":H=tP(e),Z=Wh(r),ae=Z0(r);break;case"minute":H=Z_(e,!0),Z=Yh(r),ae=j0(r);break;case"second":H=Z_(e,!1),Z=$h(r),ae=Q0(r);break;case"millisecond":H=rP(e),Z=Xh(r),ae=J0(r);break}X>=n[0]&&G<=n[1]&&u(H,G,X,Z,ae,Re,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=[],h=[],v=0,d=0,g=0;g<s.length;++g){var p=So(s[g]);if(II(s[g])){f(s[g],c[c.length-1]||[],h);var m=s[g+1]?So(s[g+1]):null;if(p!==m){if(h.length){d=v,h.sort(function(k,O){return k.value-O.value});for(var y=[],_=0;_<h.length;++_){var b=h[_].value;(_===0||h[_-1].value!==b)&&(y.push(h[_]),b>=n[0]&&b<=n[1]&&v++)}var S=i/e;if(v>S*1.5&&d>S/1.5||(c.push(y),v>S||t===s[g]))break}h=[]}}}for(var w=Ye($(c,function(k){return Ye(k,function(O){return O.value>=n[0]&&O.value<=n[1]&&!O.notAdd})}),function(k){return k.length>0}),x=w.length-1,C=[],g=0;g<w.length;++g)for(var D=w[g],T=0;T<D.length;++T){var A=ea(D[T].value,r);C.push({value:D[T].value,time:{level:x-g,upperTimeUnit:A,lowerTimeUnit:A}})}zc(C,XD,null),C.sort(function(k,O){return k.value-O.value});var I=C[0],M=C[C.length-1],P=ea(n[0],r),E=ea(n[1],r);return(!I||I.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 oP=function(t,e){var r=t.getExtent();if(r[0]===r[1]&&(r[0]-=Vt,r[1]+=Vt),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]-Vt}t.setExtent(r[0],r[1]);var i=eu(e.splitNumber,10),a=jl(t)/i,o=e.minInterval,s=e.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var l=tu.length,u=Math.min(Q2(tu,a,0,l),l-1),f=tu[u][1],c=tu[Math.max(u-1,0)][0];t.setTimeInterval({approxInterval:a,interval:f,minLevelUnit:c})};tr.registerClass(q_);var ru=0,nu=1,sP=2,j_=(function(t){V(e,t);function e(r){var n=t.call(this)||this;n.type="log",n.parse=pn.parse,n.base=r.logBase||10;var i=[],a=[],o=n._lookup={from:i,to:a};i[ru]=i[nu]=a[ru]=a[nu]=NaN,G_(n,e.mapperMethods);var s=lt(),l=r.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,n,{noNegative:!0},sP,u),n.powStub=new pn({breakParsed:u.original}),n.intervalStub=new pn({breakParsed:u.transformed}),H_(n,n.intervalStub),n}return e.prototype.getTicks=function(r){var n=this.base,i=this.powStub,a=lt(),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,h=hv(c,n,u),v;if(a){var d=a.getTicksBreakOutwardTransform(this,f,Fl(i),this._lookup);d&&(v=d.vBreak,h=d.tickVal)}return{value:h,break:v}},this)},e.prototype.getMinorTicks=function(r){return vv(this,r,Fl(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(Jl(r,this.base))},scale:function(r){return hv(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,n){return r=Jl(r,this.base),n&&n.depth===Kl?r:this.intervalStub.transformIn(r,n)},transformOut:function(r,n){var i=n?n.depth:null;return Q_.depth=i,J_.lookup=this._lookup,hv(i===Kl?r:this.intervalStub.transformOut(r,Q_),this.base,J_)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,n){this.setExtent2(Ht,r,n)},setExtent2:function(r,n,i){if(!(!Fi(n,i)||n<=0||i<=0)){var a=eb,o=eb;if(r===Ht){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(r,a[ru]=n,a[nu]=i);var l=this.base;this.intervalStub.setExtent2(r,o[ru]=Jl(n,l),o[nu]=Jl(i,l))}},getFilter:function(){return{g:0}},sanitize:function(r,n){return Fi(n[0],n[1])&&Rt(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})(tr);tr.registerClass(j_);var Q_={},J_={},eb=[],tb={value:1,category:1,time:1,log:1},rb=be();function lP(t){var e=t.get("type");return(e==null||!it(tb,e)&&!tr.getClass(e))&&(e="value"),e}function uP(t,e,r){var n=lt(),i;switch(n&&(i=nb(t,e)),e){case"category":return new X_({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:Nt()});case"time":return new q_({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:i});case"log":return new j_({logBase:t.get("logBase"),breakOption:i});case"value":return new pn({breakOption:i});default:return new(tr.getClass(e)||pn)({})}}function fP(t,e,r){var n=t.getExtentUnsafe(Ht,null),i=n[0],a=n[1];return Fi(i,a)?i===e||a===e?hP:i<e&&a>e?cP:dv:dv}var cP=1,hP=2,dv=3;function vP(t){rb(t).noOnMyZero=!0}function dP(t){return rb(t).noOnMyZero}function iu(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=MI(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(au(t,i),i.value-t.scale.getExtent()[0],null)};var n=lt();return function(i,a){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,i.break)),e(au(t,i),a,o)}}else return function(i){return t.scale.getLabel(i)}}}function au(t,e){var r=t.scale;return rr(r)?r.getLabel(e):e.value}function pv(t){var e=t.get("interval");return e??"auto"}function pP(t){return t.type==="category"&&pv(t.getLabelModel())===0}function gP(t,e){var r={};return L(t.mapDimensionsAll(e),function(n){r[iI(t,n)]=!0}),ce(r)}function na(t){return t==="middle"||t==="center"}function Lo(t){return t.getShallow("show")}function nb(t,e,r){var n=t.get("breaks",!0);if(n!=null)return!lt()||!mP(e)?void 0:n}function mP(t){return t!=="category"}function ib(t,e,r,n,i,a){var o=ra(t),s=o?t.intervalStub:t;if(s.setExtent(n[0],n[1]),o){var l=t.powStub,u={depth:Kl},f=t.transformOut(n[0],u),c=t.transformOut(n[1],u),h=j2(r,n);e[0]&&!h[0]&&(f=i[0]),e[1]&&!h[1]&&(c=i[1]),l.setExtent(f,c)}s.setConfig(a)}function Io(t,e){return rr(t)?t.getRawOrdinalNumber(e.value):e.value}function ab(t,e){return rr(t)&&!!e.get("boundaryGap")}function ob(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function sb(t){for(var e=Nt(),r=Nt(),n=0;n<t.length;){var i=t[n++],a=t[n++];Gt(i,a)||(Fc(e,i),Fc(r,a))}return[e,r]}function lb(t,e){var r=sb(t),n=r[0],i=r[1],a=sb(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 ub(t){return me(t)?t:t?.5:0}function yP(t,e,r){if(r.valueDim==null)return[];for(var n=e.count(),i=Hr(n*2),a=0;a<n;a++){var o=P_(r,t,e,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function gn(t,e,r,n,i){var a=r.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],h=[];if(i){for(l=0;l<t.length;l+=2){var v=e||t;Gt(v[l],v[l+1])||h.push(t[l],t[l+1])}t=h}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,g=[];u[o]=g[o]=d,u[1-o]=f[1-o],g[1-o]=c[1-o],s.push(u[0],u[1]),s.push(g[0],g[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 _P(t,e){var r=[],n=t.length,i,a;function o(f,c,h){var v=f.coord,d=(h-v)/(c.coord-v),g=_A(d,[f.color,c.color]);return{coord:h,color:g}}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 bP(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 h=_P(u,i==="x"?r.getWidth():r.getHeight()),v=h.length;if(!v&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,g=h[0].coord-d,p=h[v-1].coord+d,m=p-g;if(m<.001)return"transparent";L(h,function(_){_.offset=(_.coord-g)/m}),h.push({offset:v?h[v-1].offset:.5,color:c[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:c[0]||"transparent"});var y=new ky(0,0,0,0,h,!0);return y[i]=g,y[i+"2"]=p,y}}}function SP(t,e,r){var n=t.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&wP(a,e))){var o=e.mapDimension(a.dim),s={};return L(a.getViewLabels(),function(l){l.tick.offInterval||(s[Io(a.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function wP(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(av.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>n)return!1;return!0}function xP(t){for(var e=t.length/2;e>0&&Gt(t[e*2-2],t[e*2-1]);e--);return e-1}function fb(t,e){return[t[e*2],t[e*2+1]]}function TP(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],!Gt(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 cb(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Ft.length;e++)if(t.get([Ft[e],"endLabel","show"]))return!0;return!1}function gv(t,e,r,n){if(F_(e,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=cb(n)?function(v,d){t._endLabelOnDuring(v,d,o,s,a,i,e)}:null,u=e.getBaseAxis().isHorizontal(),f=N_(e,r,n,function(){var v=t._endLabel;v&&r&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=f.shape,h=Math.max(c.width,c.height);u?(c.y-=h,c.height+=h*2):(c.x-=h,c.width+=h*2)}return l&&l(1,f),f}else return B_(e,r,n)}function CP(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 AP=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new De,n=new L_;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",h=this._coordSys,v=this._symbolDraw,d=this._polyline,g=this._polygon,p=this._lineGroup,m=!n.ssr&&r.get("animation"),y=!u.isEmpty(),_=u.get("origin"),b=I_(a,s,_),S=y&&yP(a,s,b),w=r.get("showSymbol"),x=r.get("connectNulls"),C=w&&!c&&SP(r,s,a),D=this._data;D&&D.eachItemGraphicEl(function(he,Te){he.__temp&&(o.remove(he),D.setItemGraphicEl(Te,null))}),w||v.remove(),o.add(p);var T=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 I=bP(s,a,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&h.type===a.type&&T===this._step))w&&v.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),T&&(S&&(S=gn(S,f,a,T,x)),f=gn(f,null,a,T,x)),d=this._newPolyline(f),y?g=this._newPolygon(f,S):g&&(p.remove(g),g=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,ni(I)),p.setClipPath(gv(this,a,!0,r));else{y&&!g?g=this._newPolygon(f,S):g&&!y&&(p.remove(g),g=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,ni(I));var M=p.getClipPath();if(M){var P=gv(this,a,!1,r);Ue(M,{shape:P.shape},r)}else p.setClipPath(gv(this,a,!0,r));w&&v.updateData(s,{isIgnore:C,clipShape:A,disableAnimation:!0,getSymbolPoint:function(he){return[f[he*2],f[he*2+1]]}}),(!ob(this._stackedOnPoints,S)||!ob(this._points,f))&&(m?this._doUpdateAnimation(s,S,a,i,T,_,x):(T&&(S&&(S=gn(S,f,a,T,x)),f=gn(f,null,a,T,x)),d.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:S})))}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:I,lineJoin:"bevel"})),Vr(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,zr(d,k,O,R);var F=ub(r.get("smooth")),B=r.get("smoothMonotone");if(d.setShape({smooth:F,smoothMonotone:B,connectNulls:x}),g){var G=s.getCalculationInfo("stackedOnSeries"),X=0;g.useStyle(le(u.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),G&&(X=ub(G.get("smooth"))),g.setShape({smooth:F,stackedOnSmooth:X,smoothMonotone:B,connectNulls:x}),Vr(g,r,"areaStyle"),ue(g).seriesIndex=r.seriesIndex,zr(g,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=S,this._points=f,this._step=T,this._valueOrigin=_;var Z=r.get("triggerEvent"),ae=r.get("triggerLineEvent"),Re=ae===!0||Z===!0||Z==="line",Me=ae===!0||Z===!0||Z==="area";this.packEventData(r,d,Re),g&&this.packEventData(r,g,Me)},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=Yn(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(Gt(f,c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var h=r.get("zlevel")||0,v=r.get("z")||0;u=new av(o,s),u.x=f,u.y=c,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else et.prototype.highlight.call(this,r,n,i,a)},e.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Yn(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 et.prototype.downplay.call(this,r,n,i,a)},e.prototype._changePolyState=function(r){var n=this._polygon;ly(this._polyline,r),n&&ly(n,r)},e.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new O2({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 B2({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,h=ee(c)?c(null):c;r.eachItemGraphicEl(function(v,d){var g=v;if(g){var p=[v.x,v.y],m=void 0,y=void 0,_=void 0;if(i)if(o){var b=i,S=n.pointToCoord(p);a?(m=b.startAngle,y=b.endAngle,_=-S[1]/180*Math.PI):(m=b.r0,y=b.r,_=S[0])}else{var w=i;a?(m=w.x,y=w.x+w.width,_=v.x):(m=w.y+w.height,y=w.y,_=v.y)}var x=y===m?0:(_-m)/(y-m);l&&(x=1-x);var C=ee(c)?c(d):f*x+h,D=g.getSymbolPath(),T=D.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),T&&T.animateFrom({style:{opacity:0}},{duration:300,delay:C}),D.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(cb(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 Ie({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=xP(l);f>=0&&(jn(s,Qn(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:f,defaultText:function(c,h,v){return v!=null?C_(o,v):iv(o,c)},enableTextSetter:!0},CP(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"),h=i.hostModel,v=h.get("connectNulls"),d=s.get("precision"),g=s.get("distance")||0,p=l.getBaseAxis(),m=p.isHorizontal(),y=p.inverse,_=n.shape,b=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,S=(m?g:0)*(y?-1:1),w=(m?0:-g)*(y?-1:1),x=m?"x":"y",C=TP(c,b,x),D=C.range,T=D[1]-D[0],A=void 0;if(T>=1){if(T>1&&!v){var I=fb(c,D[0]);u.attr({x:I[0]+S,y:I[1]+w}),o&&(A=h.getRawValue(D[0]))}else{var I=f.getPointOn(b,x);I&&u.attr({x:I[0]+S,y:I[1]+w});var M=h.getRawValue(D[0]),P=h.getRawValue(D[1]);o&&(A=Ym(i,d,M,P,C.t))}a.lastFrameIndex=D[0]}else{var E=r===1||a.lastFrameIndex>0?D[0]:0,I=fb(c,E);o&&(A=h.getRawValue(E)),u.attr({x:I[0]+S,y:I[1]+w})}if(o){var k=ho(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,h=R2(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,g=h.next,p=h.stackedOnNext;if(o&&(d=gn(h.stackedOnCurrent,h.current,i,o,l),v=gn(h.current,null,i,o,l),p=gn(h.stackedOnNext,h.next,i,o,l),g=gn(h.next,null,i,o,l)),lb(v,g)>3e3||f&&lb(d,p)>3e3){u.stopAnimation(),u.setShape({points:g}),f&&(f.stopAnimation(),f.setShape({points:g,stackedOnPoints:p}));return}u.shape.__points=h.current,u.shape.points=v;var m={shape:{points:g}};h.current!==v&&(m.shape.__points=h.next),u.stopAnimation(),Pe(u,m,c),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),Pe(f,{shape:{stackedOnPoints:p}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=h.status,b=0;b<_.length;b++){var S=_[b].cmd;if(S==="="){var w=r.getItemGraphicEl(_[b].idx1);w&&y.push({el:w,ptIdx:b})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var x=u.shape.__points,C=0;C<y.length;C++){var D=y[C].el,T=y[C].ptIdx*2;D.x=x[T],D.y=x[T+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})(et);function mv(t,e){return{seriesType:t,plan:lv(),reset:function(r){var n=r.getData(),i=r.coordinateSystem,a=r.pipelineContext,o=e||a.large;if(i){var s=$(i.dimensions,function(v){return n.mapDimension(v)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");Qi(n,s[0])&&(s[0]=u),Qi(n,s[1])&&(s[1]=u);var f=n.getStore(),c=n.getDimensionIndex(s[0]),h=n.getDimensionIndex(s[1]);return l&&{progress:function(v,d){for(var g=v.end-v.start,p=o&&Hr(g*l),m=[],y=[],_=v.start,b=0;_<v.end;_++){var S=void 0;if(l===1){var w=f.get(c,_);S=i.dataToPoint(w,null,y)}else m[0]=f.get(c,_),m[1]=f.get(h,_),S=i.dataToPoint(m,null,y);o?(p[b++]=S[0],p[b++]=S[1]):d.setItemLayout(_,S.slice())}o&&(d.setLayout("points",p),d.setLayout("pointsRange",{start:v.start,end:v.end}))}}}}}}var DP={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]}},MP=function(t){return Math.round(t.length/2)};function hb(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(),h=Math.abs(f[1]-f[0])*(c||1),v=Math.round(s/h);if(isFinite(v)&&v>1){a==="lttb"?e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/v)):a==="minmax"&&e.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/v));var d=void 0;q(a)?d=DP[a]:ee(a)&&(d=a),d&&e.setData(i.downSample(i.mapDimension(u.dim),1/v,d,MP))}}}}}function LP(t){t.registerChartView(AP),t.registerSeriesModel(M2),t.registerLayout(mv("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,hb("line"))}var IP=be(),Po=be(),nr={estimate:1,determine:2};function ou(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function PP(t,e){var r=t.getLabelModel().get("customValues");if(r){var n=t.scale;return{labels:$(vb(r,n),function(i,a){return{formattedLabel:iu(t)(i,a),rawLabel:n.getLabel(i),tick:i}})}}return t.type==="category"?kP(t,e):OP(t)}function EP(t,e,r){var n=t.scale,i=t.getTickModel().get("customValues");return i?{ticks:vb(i,n)}:t.type==="category"?RP(t,e):{ticks:n.getTicks(r)}}function vb(t,e){var r=e.getExtent(),n=[];return L(t,function(i){i=e.parse(i),i>=r[0]&&i<=r[1]&&n.push(i)}),zc(n,qD,null),Pc(n),$(n,function(i){return{value:i}})}function kP(t,e){var r=t.getLabelModel(),n=db(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:n}function db(t,e,r){var n=BP(t),i=pv(e),a=r.kind===nr.estimate;if(!a){var o=gb(n,i);if(o)return o}var s,l;ee(i)?s=su(t,i,!1):(l=i==="auto"?FP(t,r):i,s=su(t,l,!1));var u={labels:s,labelCategoryInterval:l};return a?r.out.noPxChangeTryDetermine.push(function(){return yv(n,i,u),!0}):yv(n,i,u),u}function RP(t,e){var r=NP(t),n=pv(e),i=gb(r,n);if(i)return i;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),ee(n))a=su(t,n,!0);else if(n==="auto"){var s=db(t,t.getLabelModel(),ou(nr.determine));o=s.labelCategoryInterval,a=$(s.labels,function(l){return l.tick})}else o=n,a=su(t,o,!0);return yv(r,n,{ticks:a,tickCategoryInterval:o})}function OP(t){var e=t.scale.getTicks(),r=iu(t);return{labels:$(e,function(n,i){return{formattedLabel:r(n,i),rawLabel:t.scale.getLabel(n),tick:n}})}}var NP=pb("axisTick"),BP=pb("axisLabel");function pb(t){return function(r){return Po(r)[t]||(Po(r)[t]={list:[]})}}function gb(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function yv(t,e,r){return t.list.push({key:e,value:r}),r}function FP(t,e){if(e.kind===nr.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Po(t).autoInterval=r,!0}),r}var n=Po(t).autoInterval;return n??(Po(t).autoInterval=t.calculateCategoryInterval(e))}function zP(t,e){var r=e.kind,n=GP(t),i=iu(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],h=t.dataToCoord(c+1)-t.dataToCoord(c),v=Math.abs(h*Math.cos(a)),d=Math.abs(h*Math.sin(a)),g=0,p=0;c<=s[1];c+=u){var m=0,y=0,_=Dg(i({value:c}),n.font,"center","top");m=_.width*1.3,y=_.height*1.3,g=Math.max(g,m,7),p=Math.max(p,y,7)}var b=g/v,S=p/d;isNaN(b)&&(b=1/0),isNaN(S)&&(S=1/0);var w=Math.max(0,Math.floor(Math.min(b,S)));if(r===nr.estimate)return e.out.noPxChangeTryDetermine.push(de(VP,null,t,w,l)),w;var x=mb(t,w,l);return x??w}function VP(t,e,r){return mb(t,e,r)==null}function mb(t,e,r){var n=IP(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 GP(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 su(t,e,r){var n=iu(t),i=t.scale,a=[],o=ee(e);return $_(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 lu=be();function HP(t){lu(t).prepare={}}function UP(t){lu(t).fullUpdate={}}function WP(t){return lu(t).prepare}function ia(t){return lu(t).fullUpdate}var YP=qm(),_v="|&",aa=be(),yb=-2,$P=-1,XP=be();function _b(t,e){var r=t.model,n=aa(ia(r.ecModel)).keyed,i=n&&n.get(e);return i&&i.get(r.uid)}function qP(t,e){return Sb(_b(t,e))}function KP(t,e){var r=[];return bb(t.model.ecModel,function(n){for(var i=0;i<e.length;i++)e[i]&&n.serByIdx[e[i].seriesIndex]&&r.push(Sb(n))}),r}function bb(t,e){var r=aa(ia(t)).keyed;r&&r.each(function(n,i){n.each(function(a,o){e(a,i,o)})})}function Sb(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function ZP(t,e){var r=t.model.ecModel,n=aa(ia(r)).axSer;n&&bv(r,n.get(t.model.uid),e)}function wb(t,e,r){var n=_b(t,e);n&&bv(t.model.ecModel,n.sers,r)}function bv(t,e,r){if(e)for(var n=0;n<e.length;n++){var i=e[n];t.isSeriesFiltered(i)||r(i)}}function jP(t,e,r){var n=aa(ia(t)).keyed,i=n&&n.get(e);i&&i.each(function(a){r(a.axis)})}function xb(t,e){var r=t.model,n=aa(ia(r.ecModel)).keys;n&&L(n.get(r.uid),function(i){e(i)})}function QP(t){var e=XP(WP(t)),r=e.keyed||(e.keyed=te());bb(t,function(n,i,a){var o=r.get(i)||r.set(i,te()),s=o.get(a)||o.set(a,{});n.metrics.liPosMinGap&&Tb.liPosMinGap(t,n,s)})}function JP(t,e){Tb[t]=e}var Tb={};function Sv(t,e,r){if(t){var n=e.ecModel,i=aa(ia(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=xv.get(wv(l,u,r))||xv.get(wv(l,u,null));if(f){var c=i.keyed||(i.keyed=te()),h=i.keys||(i.keys=te()),v=f.key,d=c.get(v)||c.set(v,te()),g=d.get(a);g||(g=d.set(a,{axis:t,sers:[],serByIdx:[]}),g.metrics=f.getMetrics(t),(h.get(a)||h.set(a,[])).push(v)),g.sers.push(e),g.serByIdx[e.seriesIndex]=e}}}function wv(t,e,r){return t+_v+K(e,!0)+_v+(r||"")}function eE(t,e){var r=wv(e.seriesType,e.baseAxis,e.coordSysType);xv.set(r,e),YP(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:QP})})}var xv=te(),tE=.8;function oa(t,e){e=e||{};var r={w:NaN,w2:NaN},n=t.scale,i=e.fromStat,a=e.min,o=X2(n);Rt(o)||(o=NaN);var s=t.getExtent(),l=Fe(s[1]-s[0]);return rr(n)?rE(r,t,o,l):i&&nE(r,t,o,l,i),a!=null&&(r.w=Rt(r.w)?ge(a,r.w):a),r}function rE(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 nE(t,e,r,n,i){var a=!1,o=-1/0;L(i.key?[qP(e,i.key)]:KP(e,i.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),a=!1):l===yb&&(a=!0))}),Rt(r)&&r>0&&Rt(o)?(t.w=n/r*o,t.w2=o):a&&(t.w=n*tE,t.w2=t.w*r/n)}var Cb=[0,1],Ab=(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)),kt(e,Cb,Db(this),r)},t.prototype.coordToData=function(e,r){var n=kt(e,Db(this),Cb,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=EP(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),i=$(n.ticks,function(s){return{coord:this.dataToCoord(Io(this.scale,s)),tick:s}},this),a=r.get("alignWithLabel"),o=iE(this,i,a);return $(i,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},t.prototype.getMinorTicksCoords=function(){if(rr(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||ou(nr.determine),PP(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 oa(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(e){return e=e||ou(nr.determine),zP(this,e)},t})();function Db(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 iE(t,e,r){var n=e.length;if(!t.onBand||r||!n)return!1;var i=oa(t).w;if(!i)return!1;L(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 aE=(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})(Ab),Mb=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],oE=1,uu=2,Lb=oE|uu;function fu(t,e,r){r=r||Lb,e?t.dirty|=r:t.dirty&=~r}function Ib(t,e){return e=e||Lb,t.dirty==null||!!(t.dirty&e)}function Lr(t){if(t)return Ib(t)&&Pb(t,t.label,t),t}function Pb(t,e,r){var n=e.getComputedTransform();t.transform=mh(t.transform,n);var i=t.localRect=fo(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=Xi.textMargin);for(var c=0;c<4;c++)Tv[c]=f===Xi.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===Xi.textMargin&&wl(i,Tv,!1,!1);var h=t.rect=fo(t.rect,i);return n&&h.applyTransform(n),f===Xi.minMargin&&wl(h,Tv,!1,!1),t.axisAligned=gh(n),(t.label=t.label||{}).ignore=e.ignore,fu(t,!1),fu(t,!0,uu),t}var Tv=[0,0,0,0];function sE(t,e,r){return t.transform=mh(t.transform,r),t.localRect=fo(t.localRect,e),t.rect=fo(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=gh(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function lE(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 Eb(t,e){for(var r=0;r<Mb.length;r++){var n=Mb[r];t[n]==null&&(t[n]=e[n])}return Lr(t)}function kb(t){var e=t.obb;return(!e||Ib(t,uu))&&(t.obb=e=e||new Ry,e.fromBoundingRect(t.localRect,t.transform),fu(t,!1,uu)),e}function uE(t,e,r,n,i){var a=t.length,o=ln[e],s=$i[e];if(a<2)return!1;t.sort(function(x,C){return x.rect[o]-C.rect[o]});for(var l=0,u,f=!1,c=0;c<a;c++){var h=t[c],v=h.rect;u=v[o]-l,u<0&&(v[o]-=u,h.label[o]-=u,f=!0),l=v[o]+v[s]}var d=t[0],g=t[a-1],p,m;y(),p<0&&S(-p,.8),m<0&&S(m,.8),y(),_(p,m,1),_(m,p,-1),y(),p<0&&w(-p),m<0&&w(m);function y(){p=d.rect[o]-r,m=n-g.rect[o]-g.rect[s]}function _(x,C,D){if(x<0){var T=Math.min(C,-x);if(T>0){b(T*D,0,a);var A=T+x;A<0&&S(-A*D,1)}else S(-x*D,1)}}function b(x,C,D){x!==0&&(f=!0);for(var T=C;T<D;T++){var A=t[T],I=A.rect;I[o]+=x,A.label[o]+=x}}function S(x,C){for(var D=[],T=0,A=1;A<a;A++){var I=t[A-1].rect,M=Math.max(t[A].rect[o]-I[o]-I[s],0);D.push(M),T+=M}if(T){var P=Math.min(Math.abs(x)/T,C);if(x>0)for(var A=0;A<a-1;A++){var E=D[A]*P;b(E,0,A+1)}else for(var A=a-1;A>0;A--){var E=D[A-1]*P;b(-E,A,a)}}}function w(x){var C=x<0?-1:1;x=Math.abs(x);for(var D=Math.ceil(x/(a-1)),T=0;T<a-1;T++)if(C>0?b(D,0,T+1):b(-D,a-T-1,a),x-=D,x<=0)return}return f}function fE(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=Lr(t[n]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,l=0;l<e.length;l++)if(Cv(i,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):e.push(i)}}}function Cv(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:kb(t).intersect(kb(e),r,n)}var cE=null;function cu(){return cE}var hE="expandAxisBreak",mn=Math.PI,vE=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],dE=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],si=be(),Rb=be(),Ob=(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 pE(t,e,r,n){var i=r.axis,a=e.ensureRecord(r),o=[],s,l=Dv(t.axisName)&&na(t.nameLocation);L(n,function(d){var g=Lr(d);if(!(!g||g.label.ignore)){o.push(g);var p=a.transGroup;l&&(p.transform?Na(Eo,p.transform):Ra(Eo),g.transform&&Oa(Eo,Eo,g.transform),ne.copy(hu,g.localRect),hu.applyTransform(Eo),s?s.union(hu):ne.copy(s=new ne(0,0,0,0),hu))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[u];if(o.sort(function(d,g){return Math.abs(d.label[u]-f)-Math.abs(g.label[u]-f)}),l&&s){var c=i.getExtent(),h=Math.min(c[0],c[1]),v=Math.max(c[0],c[1])-h;s.union(new ne(h,0,v,1))}a.stOccupiedRect=s,a.labelInfoList=o}var Eo=gr(),hu=new ne(0,0,0,0),Nb=function(t,e,r,n,i,a){if(na(t.nameLocation)){var o=a.stOccupiedRect;o&&Bb(sE({},o,a.transGroup.transform),n,i)}else Fb(a.labelInfoList,a.dirVec,n,i)};function Bb(t,e,r){var n=new re;Cv(t,e,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&lE(e,n)}function Fb(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||Bb(s,r,n)}}var Ur=(function(){function t(e,r,n,i){this.group=new De,this._axisModel=e,this._api=r,this._local={},this._shared=i||new Ob(Nb),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=K(e.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=K(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:K(e.nameDirection,1),tickDirection:K(e.tickDirection,1),labelDirection:K(e.labelDirection,1),labelOffset:K(e.labelOffset,0),silent:K(e.silent,!0),axisName:i,nameLocation:wn(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:Dv(i)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new De({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}),L(gE,function(i){e[i]&&mE[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=Rm(r-e),a,o;return tl(i)?(o=n>0?"top":"bottom",a="center"):tl(i-mn)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<mn?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})(),gE=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],mE={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],h=f[0]>c[0];u&&(At(f,f,u),At(c,c,u));var v=z({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(n.get(["axisLine","breakLine"])&&zl(n.axis.scale))cu().buildAxisBreakLine(n,i,a,d);else{var g=new Dr(z({shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]}},d));uo(g.shape,g.style.lineWidth),g.anid="line",i.add(g)}var p=n.get(["axisLine","symbol"]);if(p!=null){var m=n.get(["axisLine","symbolSize"]);q(p)&&(p=[p,p]),(q(m)||me(m))&&(m=[m,m]);var y=T_(n.get(["axisLine","symbolOffset"])||0,m),_=m[0],b=m[1];L([{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(S,w){if(p[w]!=="none"&&p[w]!=null){var x=Mr(p[w],-_/2,-b/2,_,b,v.stroke,!0),C=S.r+S.offset,D=h?c:f;x.attr({rotation:S.rotate,x:D[0]+C*Math.cos(t.rotation),y:D[1]-C*Math.sin(t.rotation),silent:!0,z2:11}),i.add(x)}})}}},axisTickLabelEstimate:function(t,e,r,n,i,a,o,s){var l=Gb(e,i,s);l&&zb(t,e,r,n,i,a,o,nr.estimate)},axisTickLabelDetermine:function(t,e,r,n,i,a,o,s){var l=Gb(e,i,s);l&&zb(t,e,r,n,i,a,o,nr.determine);var u=SE(t,i,a,n);bE(t,e.labelLayoutList,u),wE(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(Dv(u)){var f=t.nameLocation,c=t.nameDirection,h=n.getModel("nameTextStyle"),v=n.get("nameGap")||0,d=n.axis.getExtent(),g=n.axis.inverse?-1:1,p=new re(0,0),m=new re(0,0);f==="start"?(p.x=d[0]-g*v,m.x=-g):f==="end"?(p.x=d[1]+g*v,m.x=g):(p.x=(d[0]+d[1])/2,p.y=t.labelOffset+c*v,m.y=c);var y=gr();m.transform(Pf(y,y,t.rotation));var _=n.get("nameRotate");_!=null&&(_=_*mn/180);var b,S;na(f)?b=Ur.innerTextLayout(t.rotation,_??t.rotation,c):(b=yE(t.rotation,f,_||0,d),S=t.raw.axisNameAvailableWidth,S!=null&&(S=Math.abs(S/Math.sin(b.rotation)),!isFinite(S)&&(S=null)));var w=h.getFont(),x=n.get("nameTruncate",!0)||{},C=x.ellipsis,D=ys(t.raw.nameTruncateMaxWidth,x.maxWidth,S),T=s.nameMarginLevel||0,A=new Ie({x:p.x,y:p.y,rotation:b.rotation,silent:Ur.isLabelSilent(n),style:zt(h,{text:u,font:w,overflow:"truncate",width:D,ellipsis:C,fill:h.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:h.get("align")||b.textAlign,verticalAlign:h.get("verticalAlign")||b.textVerticalAlign}),z2:1});if(xl({el:A,componentModel:n,itemName:u}),A.__fullText=u,A.anid="name",n.get("triggerEvent")){var I=Ur.makeAxisEventDataBase(n);I.targetType="axisName",I.name=u,ue(A).eventData=I}a.add(A),A.updateTransform(),e.nameEl=A;var M=l.nameLayout=Lr({label:A,priority:A.z2,defaultAttr:{ignore:A.ignore},marginDefault:na(f)?vE[T]:dE[T]});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 zb(t,e,r,n,i,a,o,s){Hb(e)||xE(t,e,i,s,n,o);var l=e.labelLayoutList;TE(t,n,l,a),DE(n,t.rotation,l);var u=t.optionHideOverlap;_E(n,l,u),u&&fE(Ye(l,function(f){return f&&!f.label.ignore})),pE(t,r,n,l)}function yE(t,e,r,n){var i=Rm(r-t),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return tl(i-mn/2)?(o=l?"bottom":"top",a="center"):tl(i-mn*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<mn*1.5&&i>mn/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function _E(t,e,r){var n=t.axis,i=t.get(["axisLabel","customValues"]);if(pP(n))return;function a(u,f,c){var h=Lr(e[f]),v=Lr(e[c]),d=n.scale;if(!(!h||!v)){if(u==null){if(!r&&i)return;var g=si(h.label).labelInfo.tick;if(cv(d)&&g.notNice||rr(d)&&g.offInterval){sa(h.label);return}}if(u===!1||h.suggestIgnore){sa(h.label);return}if(v.suggestIgnore){sa(v.label);return}var p=.1;if(!r){var m=[0,0,0,0];h=Eb({marginForce:m},h),v=Eb({marginForce:m},v)}Cv(h,v,null,{touchThreshold:p})&&sa(u?v.label:h.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 bE(t,e,r){t.showMinorTicks||L(e,function(n){if(n&&n.label.ignore)for(var i=0;i<r.length;i++){var a=r[i],o=Rb(a),s=si(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){sa(a);return}}})}function sa(t){t&&(t.ignore=!0)}function Vb(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&&(At(o,o,e),At(s,s,e));var f=new Dr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});uo(f.shape,f.style.lineWidth),f.anid=i+"_"+t[l].tickValue,a.push(f);var c=Rb(f);c.onBand=!!t[l].onBand,c.tickValue=t[l].tickValue}return a}function SE(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=Vb(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 wE(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 h=Vb(s[c],r.transform,u,f,"minorticks_"+c),v=0;v<h.length;v++)e.add(h[v])}}function Gb(t,e,r){if(Hb(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),Av(t,null,null,null))}return!0}function xE(t,e,r,n,i,a){var o=i.axis,s=ys(t.raw.axisLabelShow,i.get(["axisLabel","show"])),l=new De;r.add(l);var u=ou(n);if(!s||o.scale.isBlank()){Av(e,[],l,u);return}var f=i.getModel("axisLabel"),c=o.getViewLabels(u),h=(ys(t.raw.labelRotate,f.get("rotate"))||0)*mn/180,v=Ur.innerTextLayout(t.rotation,h,t.labelDirection),d=i.getCategories&&i.getCategories(!0),g=[],p=i.get("triggerEvent"),m=1/0,y=-1/0;L(c,function(b,S){var w,x=b.tick,C=b.formattedLabel,D=b.rawLabel,T=f,A=Io(o.scale,x);if(d&&d[A]){var I=d[A];j(I)&&I.textStyle&&(T=new Ce(I.textStyle,f,i.ecModel))}var M=T.getTextColor()||i.get(["axisLine","lineStyle","color"]),P=T.getShallow("align",!0)||v.textAlign,E=K(T.getShallow("alignMinLabel",!0),P),k=K(T.getShallow("alignMaxLabel",!0),P),O=T.getShallow("verticalAlign",!0)||T.getShallow("baseline",!0)||v.textVerticalAlign,R=K(T.getShallow("verticalAlignMinLabel",!0),O),N=K(T.getShallow("verticalAlignMaxLabel",!0),O),F=10+(((w=x.time)===null||w===void 0?void 0:w.level)||0);m=Math.min(m,F),y=Math.max(y,F);var B=new Ie({x:0,y:0,rotation:0,silent:Ur.isLabelSilent(i),z2:F,style:zt(T,{text:C,align:S===0?E:S===c.length-1?k:P,verticalAlign:S===0?R:S===c.length-1?N:O,fill:ee(M)?M(o.type==="category"?D:o.type==="value"?A+"":A,S):M})});B.anid="label_"+A;var G=si(B);if(G.labelInfo=b,G.layoutRotation=v.rotation,xl({el:B,componentModel:i,itemName:C,formatterParamsExtra:{isTruncated:function(){return B.isTruncated},value:D,tickIndex:S}}),p){var X=Ur.makeAxisEventDataBase(i);X.targetType="axisLabel",X.value=D,X.tickIndex=S;var H=b.tick.break;if(H){var Z=H.parsedBreak;X.break={start:Z.vmin,end:Z.vmax}}o.type==="category"&&(X.dataIndex=A),ue(B).eventData=X,H&&AE(i,a,B,H)}g.push(B),l.add(B)});var _=$(g,function(b){return{label:b,priority:si(b).labelInfo.tick.break?b.z2+(y-m+1):b.z2,defaultAttr:{ignore:b.ignore}}});Av(e,_,l,u)}function Hb(t){return!!t.labelLayoutList}function Av(t,e,r,n){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=n}function TE(t,e,r,n){var i=e.get(["axisLabel","margin"]);L(r,function(a,o){var s=Lr(a);if(s){var l=s.label,u=si(l);s.suggestIgnore=l.ignore,l.ignore=!1,Ga(Wr,CE);var f=e.axis;Wr.x=f.dataToCoord(Io(f.scale,u.labelInfo.tick)),Wr.y=t.labelOffset+t.labelDirection*i,Wr.rotation=u.layoutRotation,n.add(Wr),Wr.updateTransform(),n.remove(Wr),Wr.decomposeTransform(),Ga(l,Wr),l.markRedraw(),fu(s,!0),Lr(s)}})}var Wr=new Le,CE=new Le;function Dv(t){return!!t}function AE(t,e,r,n){r.on("click",function(i){var a={type:hE,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};a[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(a)})}function DE(t,e,r){var n=lt();if(n){var i=n.retrieveAxisBreakPairs(r,function(o){return o&&si(o.label).labelInfo.tick.break},!0),a=t.get(["breakLabelLayout","moveOverlap"],!0);(a===!0||a==="auto")&&L(i,function(o){cu().adjustBreakLabelPair(t.axis.inverse,e,[Lr(r[o[0]]),Lr(r[o[1]])])})}}function vu(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,h=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(a){var v=a.toGlobalCoord(a.dataToCoord(0));h[f.onZero]=Math.max(Math.min(v,h[1]),h[0])}i.position=[l==="y"?h[f[s]]:u[0],l==="x"?h[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?h[f[o]]-h[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),ys(r.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var g=e.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-g:g,i.z2=1,i}function ME(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function LE(t){var e={xAxisModel:null,yAxisModel:null};return L(e,function(r,n){var i=n.replace(/Model$/,""),a=t.getReferringComponents(i,Ot).models[0];e[n]=a}),e}function IE(t,e,r,n,i,a){for(var o=vu(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 Ur(r,n,o,i)}function PE(t,e,r){var n=vu(e,r);t.updateCfg(n)}var EE=be(),Ub=1,kE=3,Wb=(function(){function t(e,r,n,i,a){var o=rr(e),s=o?r.getCategories().length:null,l;if(o){var u=r.getCategories(!0);l=u&&!u.length}var f=n.slice();(Ql(e)||ra(e)||cv(e))&&($m(f,ko(e,r.get("dataMin",!0))),Xm(f,ko(e,r.get("dataMax",!0)))),WD(f)||(f[0]=f[1]=NaN);var c=[],h=[!1,!1],v=r.get("min",!0);v==="dataMin"?(c[0]=f[0],h[0]=!0):(c[0]=ko(e,ee(v)?v({min:f[0],max:f[1]}):v),h[0]=c[0]!=null);var d=r.get("max",!0);d==="dataMax"?(c[1]=f[1],h[1]=!0):(c[1]=ko(e,ee(d)?d({min:f[0],max:f[1]}):d),h[1]=c[1]!=null);var g=RE(e,r),p=o?null:f[1]-f[0]||Math.abs(f[0]);c[0]==null&&(c[0]=o?l?f[0]:s?0:NaN:f[0]-g[0]*p),c[1]==null&&(c[1]=o?l?f[1]:s?s-1:NaN:f[1]+g[1]*p),!Br(c[0])&&(c[0]=NaN),!Br(c[1])&&(c[1]=NaN);var m=l||Pa(c[0])||Pa(c[1])||o&&!s,y=Ql(e),_=y&&r.needIncludeZero&&r.needIncludeZero();_&&(c[0]>0&&c[1]>0&&!h[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!h[1]&&(c[1]=0));var b=!1;c[0]>c[1]&&(c.reverse(),b=!0);var S=ko(e,r.get("startValue",!0)),w=S!=null;!Rt(S)&&i&&(S=e.getDefaultStartValue?e.getDefaultStartValue():0),Rt(S)&&(w||!y||_)&&(S<c[0]&&!h[0]?(c[0]=S,h[0]=!0):S>c[1]&&!h[1]&&(c[1]=S,h[1]=!0));var x=this._i={scale:e,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:h,zoomFixMM:[!1,!1],startValue:S,isBlank:m,incl0:_,tggAxInv:b,ctnShp:a};Yb(x,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),Yb(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 Yb(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),YD(e))}function ko(t,e){return e==null?null:Pa(e)?NaN:t.parse(e)}function RE(t,e){var r;if(rr(t))r=[0,0];else{var n=e.get("boundaryGap");typeof n=="boolean"&&(n=null),r=W(n)?n:[n,n]}return[$b(r[0]),$b(r[1])]}function $b(t){return In(typeof t=="boolean"?0:t,1)||0}function Xb(t){var e=EE(t.scale);return e.extent||(e.extent=Nt()),e}function OE(t,e){Xb(t).dimIdxInCoord=e.get(t.dim)}function qb(t,e){var r=t.scale,n=t.model,i=t.dim;r.rawExtentInfo||NE(r,t,i,n,e)}function NE(t,e,r,n,i){var a=Xb(e),o=a.extent,s=!1;ZP(e,function(f){if(f.boxCoordinateSystem){var c=F0(f).coord,h=a.dimIdxInCoord;if(h>=0){if(W(c)){var v=c[h];v!=null&&!W(v)&&Fc(o,t.parse(v))}}}else if(f.coordinateSystem){var d=f.getData();if(d){var g=t.getFilter?t.getFilter():null;L(gP(d,r),function(p){UD(o,d.getApproximateExtent(p,g))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var l=zE(t,e,n),u=new Wb(t,n,o,s,l);Kb(t,u,i),a.extent=null}function BE(t,e){var r=t.scale;Kb(r,new Wb(r,t.model,e,!1,!1),kE)}function Kb(t,e,r){t.rawExtentInfo=e,e.from=r}function FE(t,e){Mv.set(t,e)}var Mv=te();function Zb(t,e,r,n,i){t.rawExtentInfo||BE({scale:t,model:e},Nt());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 zE(t,e,r){var n=ab(t,r),i=r.get("containShape",!0);if(i==null&&!n&&(i=!0),!i)return!1;var a=!1;return xb(e,function(o){a=!!Mv.get(o)||a}),a}function VE(t,e,r,n){if(r.ctnShp){var i;if(xb(t,function(s){var l=Mv.get(s);if(l){var u=l(t,n);u&&(i=i||[0,0],$m(i,u[0]),Xm(i,u[1]),vP(t))}}),!!i){var a=e.getExtent();if(rr(e))t.onBand||e.setExtent2(Do,je(a[0],a[0]+i[0]),ge(a[1],a[1]+i[1]));else{var o=a.slice();r.zoomFixMM[0]||(o[0]=je(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(Do,o[0],o[1])}}}}function GE(){JP("liPosMinGap",HE)}function HE(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=w0(f);function h(_){bv(t,e.sers,function(b){var S=b.getRawData(),w=S.getDimensionIndex(S.mapDimension(s.dim));w>=0&&_(w,b,S.getStore())})}var v=0;if(h(function(_,b,S){n.set(b.uid,1),(!i||!i.hasKey(b.uid))&&(o=!0),v+=S.count()}),(!i||i.keys().length!==n.keys().length)&&(o=!0),!o&&a!=null){e.liPosMinGap=a;return}ov(li,v);var d=0;h(function(_,b,S){for(var w=0,x=S.count();w<x;++w){var C=S.get(_,w);isFinite(C)&&(!f||x0(c,C))&&(u&&(C=l.transformIn(C,null)),li.arr[d++]=C)}});var g=li.typed?li.arr.subarray(0,d):(li.arr.length=d,li.arr);li.typed?g.sort():Pc(g);for(var p=1/0,m=1;m<d;++m){var y=g[m]-g[m-1];y>0&&y<p&&(p=y)}r.liPosMinGap=e.liPosMinGap=Rt(p)?p:d>0?yb:$P,r.serUids=n}var li=ov({ctor:E2},50);function UE(t){return function(e,r){var n=oa(e,{fromStat:{key:t}});if(Rt(n.w2))return[-n.w2/2,n.w2/2]}}function du(t,e){return t+_v+e}function WE(t){return GE(),{liPosMinGap:!rr(t.scale)}}var la="bar";function YE(t,e,r,n){eE(t,{key:e,seriesType:r,coordSysType:n,getMetrics:WE})}function $E(t){var e=t.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var jb={left:0,right:0,top:0,bottom:0},pu=["25%","25%"],Yr="cartesian2d",XE=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,n){var i=Co(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&r.outerBounds&&cn(r.outerBounds,i)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&cn(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:jb,outerBoundsContain:"all",outerBoundsClampWidth:pu[0],outerBoundsClampHeight:pu[1],backgroundColor:Y.color.transparent,borderWidth:1,borderColor:Y.color.neutral30},e})(ye),qE=qm(),KE="__ec_stack_";function Qb(t){return t.get("stack")||KE+t.seriesIndex}function ZE(t,e){var r=jE(t,e);return r.columnMap=QE(r),r}function jE(t,e){var r=du(e,Yr),n=[],i=oa(t,{fromStat:{key:r},min:1});return wb(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")||(Jb(a)?.5:1),i.w),barGap:a.get("barGap"),barCategoryGap:a.get("barCategoryGap"),defaultBarGap:a.get("defaultBarGap"),stackId:Qb(a)})}),{bandWidthResult:i,seriesInfo:n}}function QE(t){var e=t.bandWidthResult.w,r=e,n=0,i,a,o=[],s={};L(t.seriesInfo,function(g,p){p||(a=g.defaultBarGap||0);var m=g.stackId;it(s,m)||n++;var y=s[m];y||(y=s[m]={width:0,maxWidth:0},o.push(m));var _=g.barWidth;_&&!y.width&&(y.width=_,_=je(r,_),r-=_);var b=g.barMaxWidth;b&&(y.maxWidth=b);var S=g.barMinWidth;S&&(y.minWidth=S);var w=g.barGap;w!=null&&(a=w);var x=g.barCategoryGap;x!=null&&(i=x)}),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),L(o,function(g){var p=s[g],m=p.maxWidth,y=p.minWidth;if(p.width){var _=p.width;m&&(_=je(_,m)),y&&(_=ge(_,y)),p.width=_,r-=_+u*_,n--}else{var _=f;m&&m<_&&(_=je(m,r)),y&&y>_&&(_=y),_!==f&&(p.width=_,r-=_+u*_,n--)}}),f=(r-l)/(n+(n-1)*u),f=ge(f,0);var c=0,h;L(o,function(g){var p=s[g];p.width||(p.width=f),h=p,c+=p.width*(1+u)}),h&&(c-=h.width*u);var v={},d=-c/2;return L(o,function(g){var p=s[g];v[g]=v[g]||{bandWidth:e,offset:d,width:p.width},d+=p.width*(1+u)}),v}function JE(t){return{seriesType:t,overallReset:function(e){var r=du(t,Yr);jP(e,r,function(n){var i=ZE(n,t);wb(n,r,function(a){var o=i.columnMap[Qb(a)];a.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function ek(t){return{seriesType:t,plan:lv(),reset:function(e){if(ME(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=Qi(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),h=a.isHorizontal(),v=a.toGlobalCoord(a.dataToCoord($E(a))),d=Jb(e),g=e.get("barMinHeight")||0,p=f&&r.getDimensionIndex(f),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,b){for(var S=_.count,w=d&&Hr(S*3),x=d&&l&&Hr(S*3),C=d&&Hr(S),D=n.master.getRect(),T=h?D.width:D.height,A,I=b.getStore(),M=0;(A=_.next())!=null;){var P=I.get(c?p:o,A),E=I.get(s,A),k=v,O=void 0;c&&(O=+P-I.get(o,A));var R=void 0,N=void 0,F=void 0,B=void 0;if(h){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,Fe(F)<g&&(F=(F<0?-1:1)*g)}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,Fe(B)<g&&(B=(B<=0?-1:1)*g)}d?(w[M]=R,w[M+1]=N,w[M+2]=h?F:B,x&&(x[M]=h?D.x:R,x[M+1]=h?N:D.y,x[M+2]=T),C[A]=A):b.setItemLayout(A,{x:R,y:N,width:F,height:B}),M+=3}d&&b.setLayout({largePoints:w,largeDataIndices:C,largeBackgroundPoints:x,valueAxisHorizontal:h})}}}}}}function Jb(t){return t.pipelineContext&&t.pipelineContext.large}function tk(t){return UE(du(t,Yr))}function rk(t){qE(t,function(){function e(r){var n=du(r,Yr);YE(t,n,r,Yr),FE(n,tk(r))}e("bar"),e("pictorialBar")})}var Lv=(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 Rl(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)L(a.getAxes(),function(h,v){if(h.type==="category"&&n!=null){var d=h.getTicksCoords(),g=h.getTickModel().get("alignWithLabel"),p=o[v],m=n[v]==="x1"||n[v]==="y1";if(m&&!g&&(p+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[m?1:0]);return}for(var y=void 0,_=void 0,b=1,S=0;S<d.length;S++){var w=d[S].coord,x=S===d.length-1?d[S-1].tickValue+b:d[S].tickValue;if(x===p){_=w;break}else if(x<p)y=w;else if(y!=null&&x>p){_=(w+y)/2;break}S===1&&(b=x-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=h.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})(ut);ut.registerClass(Lv);var nk=(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 Rl(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=Zm(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."+la,e.dependencies=["grid","polar"],e.defaultOption=z0(Lv.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})(Lv),gu="\0__throttleOriginMethod",eS="\0__throttleRate",tS="\0__throttleType";function Iv(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 h=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];n=new Date().getTime(),l=this,u=v;var g=f||e,p=f||r;f=null,s=n-(p?i:a)-g,clearTimeout(o),p?o=setTimeout(c,g):s>=0?c():o=setTimeout(c,-s),i=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}function rS(t,e,r,n){var i=t[e];if(i){var a=i[gu]||i,o=i[tS],s=i[eS];if(s!==r||o!==n){if(r==null||!n)return t[e]=a;i=t[e]=Iv(a,r,n==="debounce"),i[gu]=a,i[tS]=n,i[eS]=r}return i}}function Pv(t,e){var r=t[e];r&&r[gu]&&(r.clear&&r.clear(),t[e]=r[gu])}var ik=(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})(),mu=(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 ik},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,h=n.clockwise,v=Math.PI*2,d=h?c-f<v:f-c<v;d||(f=c-(h?v:-v));var g=Math.cos(f),p=Math.sin(f),m=Math.cos(c),y=Math.sin(c);d?(r.moveTo(g*o+i,p*o+a),r.arc(g*u+i,p*u+a,l,-Math.PI+f,f,!h)):r.moveTo(g*s+i,p*s+a),r.arc(i,a,s,f,c,!h),r.arc(m*u+i,y*u+a,l,c-Math.PI*2,c-Math.PI,!h),o!==0&&r.arc(i,a,o,c,f,h)},e})(pe);function ak(t,e){e=e||{};var r=e.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return Cs(n,i,a);var s=t(o),l=i.distance!=null?i.distance:5,u=this.shape,f=u.cx,c=u.cy,h=u.r,v=u.r0,d=(h+v)/2,g=u.startAngle,p=u.endAngle,m=(g+p)/2,y=r?Math.abs(h-v)/2:0,_=Math.cos,b=Math.sin,S=f+h*_(g),w=c+h*b(g),x="left",C="top";switch(s){case"startArc":S=f+(v-l)*_(m),w=c+(v-l)*b(m),x="center",C="top";break;case"insideStartArc":S=f+(v+l)*_(m),w=c+(v+l)*b(m),x="center",C="bottom";break;case"startAngle":S=f+d*_(g)+yu(g,l+y,!1),w=c+d*b(g)+_u(g,l+y,!1),x="right",C="middle";break;case"insideStartAngle":S=f+d*_(g)+yu(g,-l+y,!1),w=c+d*b(g)+_u(g,-l+y,!1),x="left",C="middle";break;case"middle":S=f+d*_(m),w=c+d*b(m),x="center",C="middle";break;case"endArc":S=f+(h+l)*_(m),w=c+(h+l)*b(m),x="center",C="bottom";break;case"insideEndArc":S=f+(h-l)*_(m),w=c+(h-l)*b(m),x="center",C="top";break;case"endAngle":S=f+d*_(p)+yu(p,l+y,!0),w=c+d*b(p)+_u(p,l+y,!0),x="left",C="middle";break;case"insideEndAngle":S=f+d*_(p)+yu(p,-l+y,!0),w=c+d*b(p)+_u(p,-l+y,!0),x="right",C="middle";break;default:return Cs(n,i,a)}return n=n||{},n.x=S,n.y=w,n.align=x,n.verticalAlign=C,n}}function ok(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 yu(t,e,r){return e*Math.sin(t)*(r?-1:1)}function _u(t,e,r){return e*Math.cos(t)*(r?1:-1)}function Ro(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 Ev=Math.max,kv=Math.min,sk=(function(t){V(e,t);function e(){var r=t.call(this)||this;return r.type=la,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){Tl(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 h=r.isAnimationEnabled()?r:null,v=lk(r,u);v&&this._enableRealtimeSort(v,s,i);var d=r.get("clip",!0)||v,g=u.getArea();o.removeClipPath();var p=r.get("roundCap",!0),m=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),_=y.get("borderRadius")||0,b=[],S=this._backgroundEls,w=a&&a.isInitSort,x=a&&a.type==="changeAxisOrder";function C(A){var I=bu[u.type](s,A);if(!I)return null;var M=pk(u,c,I);return M.useStyle(y.getItemStyle()),u.type==="cartesian2d"?M.setShape("r",_):M.setShape("cornerRadius",_),b[A]=M,M}s.diff(l).add(function(A){var I=s.getItemModel(A),M=bu[u.type](s,A,I);if(M&&(m&&C(A),!(!s.hasValue(A)||!sS[u.type](M)))){var P=!1;d&&(P=nS[u.type](g,M));var E=iS[u.type](r,s,A,M,c,h,f.model,!1,p);v&&(E.forceLabelAnimation=!0),uS(E,s,A,I,M,r,c,u.type==="polar"),w?E.attr({shape:M}):v?aS(v,h,E,M,A,c,!1,!1):Ue(E,{shape:M},r,A),s.setItemGraphicEl(A,E),o.add(E),E.ignore=P}}).update(function(A,I){var M=s.getItemModel(A),P=bu[u.type](s,A,M);if(P){if(m){var E=void 0;S.length===0?E=C(I):(E=S[I],E.useStyle(y.getItemStyle()),u.type==="cartesian2d"?E.setShape("r",_):E.setShape("cornerRadius",_),b[A]=E);var k=bu[u.type](s,A),O=vS(c,k,u);Pe(E,{shape:O},h,A)}var R=l.getItemGraphicEl(I);if(!s.hasValue(A)||!sS[u.type](P)){o.remove(R);return}var N=!1;d&&(N=nS[u.type](g,P),N&&o.remove(R));var F=R&&(R.type==="sector"&&p||R.type==="sausage"&&!p);if(F&&(R&&Wi(R,r,I),R=null),R?Yi(R):R=iS[u.type](r,s,A,P,c,h,f.model,!0,p),v&&(R.forceLabelAnimation=!0),x){var B=R.getTextContent();if(B){var G=ho(B);G.prevValue!=null&&(G.prevValue=G.value)}}else uS(R,s,A,M,P,r,c,u.type==="polar");w?R.attr({shape:P}):v?aS(v,h,R,P,A,c,!0,x):Pe(R,{shape:P},r,A,null),s.setItemGraphicEl(A,R),R.ignore=N,o.add(R)}}).remove(function(A){var I=l.getItemGraphicEl(A);I&&Wi(I,r,A)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new De);D.removeAll();for(var T=0;T<b.length;++T)D.add(b[T]);o.add(D),this._backgroundEls=b,this._data=s},e.prototype._renderLarge=function(r,n,i){this._clear(),cS(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),cS(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&H2(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){Wi(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=la,e})(et),nS={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=Ev(e.x,t.x),s=kv(e.x+e.width,i),l=Ev(e.y,t.y),u=kv(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=kv(e.r,t.r),a=Ev(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}},iS={cartesian2d:function(t,e,r,n,i,a,o,s,l){var u=new Le({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?mu:Ar,f=new u({shape:n,z2:1});f.name="item";var c=lS(i);if(f.calculateTextPosition=ak(c,{isRoundCap:u===mu}),a){var h=f.shape,v=i?"r":"endAngle",d={};h[v]=i?n.r0:n.startAngle,d[v]=n[v],(s?Pe:Ue)(f,{shape:d},a)}return f}};function lk(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 aS(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?Pe:Ue)(r,{shape:l},e,i,null);var f=e?t.baseAxis.model:null;(o?Pe:Ue)(r,{shape:u},f,i)}function oS(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var uk=["x","y","width","height"],fk=["cx","cy","r","startAngle","endAngle"],sS={cartesian2d:function(t){return!oS(t,uk)},polar:function(t){return!oS(t,fk)}},bu={cartesian2d:function(t,e,r){var n=t.getItemLayout(e);if(!n)return null;var i=r?hk(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 ck(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function lS(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 uS(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=Ro(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 h=n.getShallow("cursor");h&&t.attr("cursor",h);var v=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?gk(i,a.coordinateSystem):mk(i,a.coordinateSystem),d=Qn(n);jn(t,d,{labelFetcher:a,labelDataIndex:r,defaultText:iv(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var g=t.getTextContent();if(s&&g){var p=n.get(["label","position"]);t.textConfig.inside=p==="middle"?!0:null,ok(t,p==="outside"?v:p,lS(o),n.get(["label","rotate"]))}t0(g,d,a.getRawValue(r),function(y){return C_(e,y)});var m=n.getModel(["emphasis"]);zr(t,m.get("focus"),m.get("blurScope"),m.get("disabled")),Vr(t,n),ck(i)&&(t.style.fill="none",t.style.stroke="none",L(t.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function hk(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 vk=(function(){function t(){}return t})(),fS=(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 vk},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 cS(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?Km(t):0;if(u){var c=new fS({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 h=new fS({shape:{points:i.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,e.add(h),h.useStyle(i.getVisual("style")),h.style.stroke=null,ue(h).seriesIndex=t.seriesIndex,t.get("silent")||(h.on("mousedown",hS),h.on("mousemove",hS)),r&&r.push(h)}var hS=Iv(function(t){var e=this,r=dk(e,t.offsetX,t.offsetY);ue(e).dataIndex=r>=0?r:null},30,!1);function dk(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 h=f*3;if(l[n]=u,l[i]=a[h+2],s[n]=a[h+n],s[i]=a[h+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 vS(t,e,r){if(F_(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 pk(t,e,r){var n=t.type==="polar"?Ar:Le;return new n({shape:vS(e,r,t),silent:!0,z2:0})}function gk(t,e){if(t.height===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"bottom":"top"}return t.height>0?"bottom":"top"}function mk(t,e){if(t.width===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"left":"right"}return t.width>=0?"right":"left"}function yk(t){t.registerChartView(sk),t.registerSeriesModel(nk),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,JE(la)),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ek(la)),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,hb(la)),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)})}),rk(t)}function _k(t,e){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:t,query:i},function(o){a.push(o.seriesIndex)}),a}L([[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 ua(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(),h=Yn(c,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:W(h)?c.getName(h[0]):c.getName(h),selected:q(l)?l:z({},l)})}})}function bk(t,e,r){t.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(ua("map","selectchanged",e,i,n),ua("pie","selectchanged",e,i,n)):n.fromAction==="select"?(ua("map","selected",e,i,n),ua("pie","selected",e,i,n)):n.fromAction==="unselect"&&(ua("map","unselected",e,i,n),ua("pie","unselected",e,i,n))})}function Rv(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 Su(t,e,r){e=W(e)&&{coordDimensions:e}||z({encodeDefine:t.getEncode()},e);var n=t.getSource(),i=O0(n,e).dimensions,a=new R0(i,t);return a.initData(n,r),a}var Ov=(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})(),yn="pie",Sk=be(),dS=(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 Ov(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 Su(this,{coordDimensions:["value"],encodeDefaulter:Ne(o0,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),i=Sk(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=SD(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){nl(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."+yn,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})(ut);KL({fullType:dS.type,getCoord2:function(t){return t.getShallow("center")}});function pS(t,e,r,n,i,a,o,s){var l=i-t,u=a-e,f=r-t,c=n-e,h=Math.sqrt(f*f+c*c);f/=h,c/=h;var v=l*f+u*c,d=v/h;d*=h;var g=o[0]=t+d*f,p=o[1]=e+d*c;return Math.sqrt((g-i)*(g-i)+(p-a)*(p-a))}var _n=new re,ke=new re,Ke=new re,bn=new re,Ir=new re,wu=[],ft=new re;function wk(t,e){if(e<=180&&e>0){e=e/180*Math.PI,_n.fromArray(t[0]),ke.fromArray(t[1]),Ke.fromArray(t[2]),re.sub(bn,_n,ke),re.sub(Ir,Ke,ke);var r=bn.len(),n=Ir.len();if(!(r<.001||n<.001)){bn.scale(1/r),Ir.scale(1/n);var i=bn.dot(Ir),a=Math.cos(e);if(a<i){var o=pS(ke.x,ke.y,Ke.x,Ke.y,_n.x,_n.y,wu);ft.fromArray(wu),ft.scaleAndAdd(Ir,o/Math.tan(Math.PI-e));var s=Ke.x!==ke.x?(ft.x-ke.x)/(Ke.x-ke.x):(ft.y-ke.y)/(Ke.y-ke.y);if(isNaN(s))return;s<0?re.copy(ft,ke):s>1&&re.copy(ft,Ke),ft.toArray(t[1])}}}}function xk(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,_n.fromArray(t[0]),ke.fromArray(t[1]),Ke.fromArray(t[2]),re.sub(bn,ke,_n),re.sub(Ir,Ke,ke);var n=bn.len(),i=Ir.len();if(!(n<.001||i<.001)){bn.scale(1/n),Ir.scale(1/i);var a=bn.dot(e),o=Math.cos(r);if(a<o){var s=pS(ke.x,ke.y,Ke.x,Ke.y,_n.x,_n.y,wu);ft.fromArray(wu);var l=Math.PI/2,u=Math.acos(Ir.dot(e)),f=l+u-r;if(f>=l)re.copy(ft,Ke);else{ft.scaleAndAdd(Ir,s/Math.tan(Math.PI/2-f));var c=Ke.x!==ke.x?(ft.x-ke.x)/(Ke.x-ke.x):(ft.y-ke.y)/(Ke.y-ke.y);if(isNaN(c))return;c<0?re.copy(ft,ke):c>1&&re.copy(ft,Ke)}ft.toArray(t[1])}}}}function Nv(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 Tk(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=Of(n[0],n[1]),a=Of(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=Nf([],n[1],n[0],o/i),l=Nf([],n[1],n[2],o/a),u=Nf([],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 gS(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<ol.length;l++){var u=ol[l],f=e[u],c=u==="normal";if(f){var h=f.get("show"),v=c?s:K(i.states[u]&&i.states[u].ignore,s);if(v||!K(h,o)){var d=c?n:n&&n.states[u];d&&(d.ignore=!0),n&&Nv(n,!0,u,f);continue}n||(n=new sn,t.setTextGuideLine(n),!c&&(s||!o)&&Nv(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),Nv(n,!1,u,f)}}if(n){le(n.style,r),n.style.fill=null;var g=a.get("showAbove"),p=t.textGuideLineConfig=t.textGuideLineConfig||{};p.showAbove=g||!1,n.buildPath=Tk}}function mS(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},n=0;n<Ft.length;n++){var i=Ft[n];r[i]=t.getModel([i,e])}return r}var Ck=Math.PI/180;function yS(t,e,r,n,i,a,o,s,l,u){if(t.length<2)return;function f(g){for(var p=g.rB,m=p*p,y=0;y<g.list.length;y++){var _=g.list[y],b=Math.abs(_.label.y-r),S=n+_.len,w=S*S,x=Math.sqrt(Math.abs((1-b*b/m)*w)),C=e+(x+_.len2)*i,D=C-_.label.x,T=_.targetTextWidth-D*i;_S(_,T,!0),_.label.x=C}}function c(g){for(var p={list:[],maxY:0},m={list:[],maxY:0},y=0;y<g.length;y++)if(g[y].labelAlignTo==="none"){var _=g[y],b=_.label.y>r?m:p,S=Math.abs(_.label.y-r);if(S>=b.maxY){var w=_.label.x-e-_.len2*i,x=n+_.len,C=Math.abs(w)<x?Math.sqrt(S*S/(1-w*w/x/x)):x;b.rB=C,b.maxY=S}b.list.push(_)}f(p),f(m)}for(var h=t.length,v=0;v<h;v++)if(t[v].position==="outer"&&t[v].labelAlignTo==="labelLine"){var d=t[v].label.x-u;t[v].linePoints[1][0]+=d,t[v].label.x=u}uE(t,1,l,l+o)&&c(t)}function Ak(t,e,r,n,i,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,h=0;h<t.length;h++){var v=t[h].label;Bv(t[h])||(v.x<e?(f=Math.min(f,v.x),l.push(t[h])):(c=Math.max(c,v.x),u.push(t[h])))}for(var h=0;h<t.length;h++){var d=t[h];if(!Bv(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,g=d.linePoints,p=void 0;d.labelAlignTo==="edge"?v.x<e?p=g[2][0]-d.labelDistance-o-d.edgeDistance:p=o+i-d.edgeDistance-g[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<e?p=f-o-d.bleedMargin:p=o+i-c-d.bleedMargin:v.x<e?p=v.x-o-d.bleedMargin:p=o+i-v.x-d.bleedMargin,d.targetTextWidth=p,_S(d,p,!1)}}yS(u,e,r,n,1,i,a,o,s,c),yS(l,e,r,n,-1,i,a,o,s,f);for(var h=0;h<t.length;h++){var d=t[h];if(!Bv(d)&&d.linePoints){var v=d.label,g=d.linePoints,m=d.labelAlignTo==="edge",y=v.style.padding,_=y?y[1]+y[3]:0,b=v.style.backgroundColor?0:_,S=d.rect.width+b,w=g[1][0]-g[2][0];m?v.x<e?g[2][0]=o+d.edgeDistance+S+d.labelDistance:g[2][0]=o+i-d.edgeDistance-S-d.labelDistance:(v.x<e?g[2][0]=v.x+d.labelDistance:g[2][0]=v.x-d.labelDistance,g[1][0]=g[2][0]+w),g[1][1]=g[2][1]=v.y}}}function _S(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 h=e-l,v=e<f?h:r?h>t.unconstrainedWidth?null:h:null;n.setStyle("width",v)}bS(a,n)}}}function bS(t,e){SS.rect=t,Pb(SS,e,Dk)}var Dk={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},SS={};function Bv(t){return t.position==="center"}function Mk(t){var e=t.getData(),r=[],n,i,a=!1,o=(t.get("minShowLabelAngle")||0)*Ck,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,c=s.y,h=s.height;function v(w){w.ignore=!0}function d(w){if(!w.ignore)return!0;for(var x in w.states)if(w.states[x].ignore===!1)return!0;return!1}e.each(function(w){var x=e.getItemGraphicEl(w),C=x.shape,D=x.getTextContent(),T=x.getTextGuideLine(),A=e.getItemModel(w),I=A.getModel("label"),M=I.get("position")||A.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),E=I.get("alignTo"),k=Q(I.get("edgeDistance"),u),O=I.get("bleedMargin");O==null&&(O=Math.min(u,h)>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){L(D.states,v),D.ignore=!0,T&&(L(T.states,v),T.ignore=!0);return}if(d(D)){var B=(C.startAngle+C.endAngle)/2,G=Math.cos(B),X=Math.sin(B),H,Z,ae,Re;n=C.cx,i=C.cy;var Me=M==="inside"||M==="inner";if(M==="center")H=C.cx,Z=C.cy,Re="center";else{var he=(Me?(C.r+C.r0)/2*G:C.r*G)+n,Te=(Me?(C.r+C.r0)/2*X:C.r*X)+i;if(H=he+G*3,Z=Te+X*3,!Me){var J=he+G*(N+l-C.r),se=Te+X*(N+l-C.r),yt=J+(G<0?-1:1)*F,Oe=se;E==="edge"?H=G<0?f+k:f+u-k:H=yt+(G<0?-P:P),Z=Oe,ae=[[he,Te],[J,se],[yt,Oe]]}Re=Me?"center":E==="edge"?G>0?"right":"left":G>0?"left":"right"}var sr=Math.PI,_t=0,lr=I.get("rotate");if(me(lr))_t=lr*(sr/180);else if(M==="center")_t=0;else if(lr==="radial"||lr===!0){var Ta=G<0?-B+sr:-B;_t=Ta}else if(lr==="tangential"||lr==="tangential-noflip"&&M!=="outside"&&M!=="outer"){var ur=Math.atan2(G,X);ur<0&&(ur=sr*2+ur);var af=X>0;af&&lr!=="tangential-noflip"&&(ur=sr+ur),_t=ur-sr}if(a=!!_t,D.x=H,D.y=Z,D.rotation=_t,D.setStyle({verticalAlign:"middle"}),Me){D.setStyle({align:Re});var bp=D.states.select;bp&&(bp.x+=D.x,bp.y+=D.y)}else{var Ca=new ne(0,0,0,0);bS(Ca,D),r.push({label:D,labelLine:T,position:M,len:N,len2:F,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new re(G,X),linePoints:ae,textAlign:Re,labelDistance:P,labelAlignTo:E,edgeDistance:k,bleedMargin:O,rect:Ca,unconstrainedWidth:Ca.width,labelStyleWidth:D.style.width})}x.setTextConfig({inside:Me})}}),!a&&t.get("avoidLabelOverlap")&&Ak(r,n,i,l,u,h,f,c);for(var g=0;g<r.length;g++){var p=r[g],m=p.label,y=p.labelLine,_=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:p.textAlign}),_&&(L(m.states,v),m.ignore=!0);var b=m.states.select;b&&(b.x+=m.x,b.y+=m.y)}if(y){var S=p.linePoints;_||!S?(L(y.states,v),y.ignore=!0):(wk(S,p.minTurnAngle),xk(S,p.surfaceNormal,p.maxSurfaceAngle),y.setShape({points:S}),m.__hostTarget.textGuideLineConfig={anchor:new re(S[0][0],S[0][1])})}}}var wS=Math.PI*2,xu=Math.PI/180,Lk=Vc(yn,Ik);function Ik(t,e){t.eachSeriesByType(yn,function(r){var n=r.getData(),i=n.mapDimension("value"),a=FI(r,e),o=a.cx,s=a.cy,l=a.r,u=a.r0,f=a.viewRect,c=-r.get("startAngle")*xu,h=r.get("endAngle"),v=r.get("padAngle")*xu;h=h==="auto"?c-wS:-h*xu;var d=r.get("minAngle")*xu,g=d+v,p=0;n.each(i,function(k){!isNaN(k)&&p++});var m=n.getSum(i),y=Math.PI/(m||p)*2,_=r.get("clockwise"),b=r.get("roseType"),S=r.get("stillShowZeroSum"),w=n.getDataExtent(i);w[0]=0;var x=_?1:-1,C=[c,h],D=x*v/2;Ac(C,!_),c=C[0],h=C[1];var T=xS(r);T.startAngle=c,T.endAngle=h,T.clockwise=_,T.cx=o,T.cy=s,T.r=l,T.r0=u;var A=Math.abs(h-c),I=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:b?NaN:l});return}b!=="area"?R=m===0&&S?y:k*y:R=A/p,R<g?(R=g,I-=g):M+=k;var N=P+x*R,F=0,B=0;v>R?(F=P+x*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:b?kt(k,w,[u,l]):l}),P=N}),I<wS&&p)if(I<=.001){var E=A/p;n.each(i,function(k,O){if(!isNaN(k)){var R=n.getItemLayout(O);R.angle=E;var N=0,F=0;E<v?(N=c+x*(O+1/2)*E,F=N):(N=c+x*O*E+D,F=c+x*(O+1)*E-D),R.startAngle=N,R.endAngle=F}})}else y=I/M,P=c,n.each(i,function(k,O){if(!isNaN(k)){var R=n.getItemLayout(O),N=R.angle===g?g:k*y,F=0,B=0;N<v?(F=P+x*N/2,B=F):(F=P+D,B=P+x*N-D),R.startAngle=F,R.endAngle=B,P+=x*N}})})}var xS=be(),Pk=(function(t){V(e,t);function e(r,n,i){var a=t.call(this)||this;a.z2=2;var o=new Ie;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(Ro(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(a){o.setShape(c);var h=s.getShallow("animationType");s.ecModel.ssr?(Ue(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):h==="scale"?(o.shape.r=f.r0,Ue(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),Ue(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Pe(o,{shape:{endAngle:f.endAngle}},s,n))}else Yi(o),Pe(o,{shape:c},s,n);o.useStyle(r.getItemVisual(n,"style")),Vr(o,l);var v=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),g=Math.cos(v)*d,p=Math.sin(v)*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)},Ro(u.getModel("itemStyle"),f)),z(o.ensureState("select"),{x:g,y:p,shape:Ro(l.getModel(["select","itemStyle"]),f)}),z(o.ensureState("blur"),{shape:Ro(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&z(y.ensureState("select"),{x:g,y:p}),z(_.ensureState("select"),{x:g,y:p}),zr(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;jn(a,Qn(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 h=o.get(["label","position"]);if(h!=="outside"&&h!=="outer")a.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new sn,this.setTextGuideLine(v)),gS(this,mS(o),{stroke:u,opacity:wn(s.get(["lineStyle","opacity"]),f,1)})}},e})(Ar),Ek=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=yn,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 h=xS(r),v=new Ar({shape:oe(h)});v.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(d){var g=new Pk(o,d,u);o.setItemGraphicEl(d,g),l.add(g)}).update(function(d,g){var p=s.getItemGraphicEl(g);p.updateData(o,d,u),p.off("click"),l.add(p),o.setItemGraphicEl(d,p)}).remove(function(d){var g=s.getItemGraphicEl(d);Wi(g,r,d)}).execute(),Mk(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=yn,e})(et);function kk(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 Rk(t){t.registerChartView(Ek),t.registerSeriesModel(dS),_k(yn,t.registerAction),t.registerLayout(Lk),t.registerProcessor(Rv(yn)),t.registerProcessor(kk(yn))}var fa=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),Ok=(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 fa(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 fa(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 fa(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new fa(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new fa(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new fa(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),Nk=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Fv=[],Bk=ie.browser.firefox&&+ie.browser.version.split(".")[0]<39;function zv(t,e,r,n){return r=r||{},n?TS(t,e,r):Bk&&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):TS(t,e,r),r}function TS(t,e,r){if(ie.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(G0(t)){var a=t.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Nh(Fv,t,n,i)){r.zrX=Fv[0],r.zrY=Fv[1];return}}r.zrX=r.zrY=0}function Vv(t){return t||window.event}function Ut(t,e,r){if(e=Vv(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&&zv(t,o,e,r)}else{zv(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&&Nk.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 zk(t,e,r,n){t.addEventListener(e,r,n)}function Vk(t,e,r,n){t.removeEventListener(e,r,n)}var CS=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},Gk=(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=zv(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 Gv)if(Gv.hasOwnProperty(r)){var n=Gv[r](this._track,e);if(n)return n}},t})();function AS(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function Hk(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var Gv={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=AS(n)/AS(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=Hk(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}},DS="silent";function Uk(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:Wk}}function Wk(){CS(this.event)}var Yk=(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})(Rr),Oo=(function(){function t(e,r){this.x=e,this.y=r}return t})(),$k=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Hv=new ne(0,0,0,0),MS=(function(t){V(e,t);function e(r,n,i,a,o){var s=t.call(this)||this;return s._hovered=new Oo(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new Yk,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Ok(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(L($k,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=IS(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 Oo(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 Oo(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=Uk(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 Oo(r,n);if(LS(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 h=a[c];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(Hv.copy(h.getBoundingRect()),h.transform&&Hv.applyTransform(h.transform),Hv.intersect(f)&&s.push(h))}if(s.length)for(var v=4,d=Math.PI/12,g=Math.PI*2,p=0;p<u;p+=v)for(var m=0;m<g;m+=d){var y=r+p*Math.cos(m),_=n+p*Math.sin(m);if(LS(s,o,y,_,i),o.target)return o}}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new Gk);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 Oo;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(Rr);L(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){MS.prototype[t]=function(e){var r=e.zrX,n=e.zrY,i=IS(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||Of(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function Xk(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?DS:!0}return!1}function LS(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=Xk(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==DS)){e.target=o;break}}}function IS(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var PS=32,No=7;function qk(t){for(var e=0;t>=PS;)e|=t&1,t>>=1;return t+e}function ES(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++;Kk(t,e,i)}else for(;i<r&&n(t[i],t[i-1])>=0;)i++;return i-e}function Kk(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}function kS(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 Uv(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 Wv(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 Zk(t,e){var r=No,n,i,a=0,o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function l(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]<i[v+1]&&v--;else if(i[v]>i[v+1])break;f(v)}}function u(){for(;a>1;){var v=a-2;v>0&&i[v-1]<i[v+1]&&v--,f(v)}}function f(v){var d=n[v],g=i[v],p=n[v+1],m=i[v+1];i[v]=g+m,v===a-3&&(n[v+1]=n[v+2],i[v+1]=i[v+2]),a--;var y=Wv(t[p],t,d,g,0,e);d+=y,g-=y,g!==0&&(m=Uv(t[d+g-1],t,p,m,m-1,e),m!==0&&(g<=m?c(d,g,p,m):h(d,g,p,m)))}function c(v,d,g,p){var m=0;for(m=0;m<d;m++)o[m]=t[v+m];var y=0,_=g,b=v;if(t[b++]=t[_++],--p===0){for(m=0;m<d;m++)t[b+m]=o[y+m];return}if(d===1){for(m=0;m<p;m++)t[b+m]=t[_+m];t[b+p]=o[y];return}for(var S=r,w,x,C;;){w=0,x=0,C=!1;do if(e(t[_],o[y])<0){if(t[b++]=t[_++],x++,w=0,--p===0){C=!0;break}}else if(t[b++]=o[y++],w++,x=0,--d===1){C=!0;break}while((w|x)<S);if(C)break;do{if(w=Wv(t[_],o,y,d,0,e),w!==0){for(m=0;m<w;m++)t[b+m]=o[y+m];if(b+=w,y+=w,d-=w,d<=1){C=!0;break}}if(t[b++]=t[_++],--p===0){C=!0;break}if(x=Uv(o[y],t,_,p,0,e),x!==0){for(m=0;m<x;m++)t[b+m]=t[_+m];if(b+=x,_+=x,p-=x,p===0){C=!0;break}}if(t[b++]=o[y++],--d===1){C=!0;break}S--}while(w>=No||x>=No);if(C)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),d===1){for(m=0;m<p;m++)t[b+m]=t[_+m];t[b+p]=o[y]}else{if(d===0)throw new Error;for(m=0;m<d;m++)t[b+m]=o[y+m]}}function h(v,d,g,p){var m=0;for(m=0;m<p;m++)o[m]=t[g+m];var y=v+d-1,_=p-1,b=g+p-1,S=0,w=0;if(t[b--]=t[y--],--d===0){for(S=b-(p-1),m=0;m<p;m++)t[S+m]=o[m];return}if(p===1){for(b-=d,y-=d,w=b+1,S=y+1,m=d-1;m>=0;m--)t[w+m]=t[S+m];t[b]=o[_];return}for(var x=r;;){var C=0,D=0,T=!1;do if(e(o[_],t[y])<0){if(t[b--]=t[y--],C++,D=0,--d===0){T=!0;break}}else if(t[b--]=o[_--],D++,C=0,--p===1){T=!0;break}while((C|D)<x);if(T)break;do{if(C=d-Wv(o[_],t,v,d,d-1,e),C!==0){for(b-=C,y-=C,d-=C,w=b+1,S=y+1,m=C-1;m>=0;m--)t[w+m]=t[S+m];if(d===0){T=!0;break}}if(t[b--]=o[_--],--p===1){T=!0;break}if(D=p-Uv(t[y],o,0,p,p-1,e),D!==0){for(b-=D,_-=D,p-=D,w=b+1,S=_+1,m=0;m<D;m++)t[w+m]=o[S+m];if(p<=1){T=!0;break}}if(t[b--]=t[y--],--d===0){T=!0;break}x--}while(C>=No||D>=No);if(T)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),p===1){for(b-=d,y-=d,w=b+1,S=y+1,m=d-1;m>=0;m--)t[w+m]=t[S+m];t[b]=o[_]}else{if(p===0)throw new Error;for(S=b-(p-1),m=0;m<p;m++)t[S+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Tu(t,e,r,n){r||(r=0),n||(n=t.length);var i=n-r;if(!(i<2)){var a=0;if(i<PS){a=ES(t,r,n,e),kS(t,r,n,r+a,e);return}var o=Zk(t,e),s=qk(i);do{if(a=ES(t,r,n,e),a<s){var l=i;l>s&&(l=s),kS(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 RS=!1;function Yv(){RS||(RS=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function OS(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var jk=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=OS}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,Tu(n,OS)},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(),h=0;h<c.length;h++){var v=c[h];e.__dirty&&(v.__dirty|=Zt),this._updateAndAddDisplayable(v,s,n)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(Yv(),d.z=0),isNaN(d.z2)&&(Yv(),d.z2=0),isNaN(d.zlevel)&&(Yv(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var g=e.getDecalElement&&e.getDecalElement();g&&this._updateAndAddDisplayable(g,s,n);var p=e.getTextGuideLine();p&&this._updateAndAddDisplayable(p,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})(),$v;$v=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 ca(){return new Date().getTime()}var Qk=(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=ca()-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&&($v(n),!r._paused&&r.update())}$v(n)},e.prototype.start=function(){this._running||(this._time=ca(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=ca(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=ca()-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 lc(r,n.loop);return this.addAnimator(i),i},e})(Rr),Jk=300,Xv=ie.domSupported,qv=(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}})(),NS={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},BS=!1;function Kv(t){var e=t.pointerType;return e==="pen"||e==="touch"}function eR(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 tR(t,e){return Ut(t.dom,new rR(t,e),!0)}function FS(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 rR=(function(){function t(e,r){this.stopPropagation=$e,this.stopImmediatePropagation=$e,this.preventDefault=$e,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),ir={mousedown:function(t){t=Ut(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Ut(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=Ut(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Ut(this.dom,t);var e=t.toElement||t.relatedTarget;FS(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){BS=!0,t=Ut(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){BS||(t=Ut(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Ut(this.dom,t),Zv(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),ir.mousemove.call(this,t),ir.mousedown.call(this,t)},touchmove:function(t){t=Ut(this.dom,t),Zv(t),this.handler.processGesture(t,"change"),ir.mousemove.call(this,t)},touchend:function(t){t=Ut(this.dom,t),Zv(t),this.handler.processGesture(t,"end"),ir.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<Jk&&ir.click.call(this,t)},pointerdown:function(t){ir.mousedown.call(this,t)},pointermove:function(t){Kv(t)||ir.mousemove.call(this,t)},pointerup:function(t){ir.mouseup.call(this,t)},pointerout:function(t){Kv(t)||ir.mouseout.call(this,t)}};L(["click","dblclick","contextmenu"],function(t){ir[t]=function(e){e=Ut(this.dom,e),this.trigger(t,e)}});var jv={pointermove:function(t){Kv(t)||jv.mousemove.call(this,t)},pointerup:function(t){jv.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 nR(t,e){var r=e.domHandlers;ie.pointerEventsSupported?L(qv.pointer,function(n){Cu(e,n,function(i){r[n].call(t,i)})}):(ie.touchEventsSupported&&L(qv.touch,function(n){Cu(e,n,function(i){r[n].call(t,i),eR(e)})}),L(qv.mouse,function(n){Cu(e,n,function(i){i=Vv(i),e.touching||r[n].call(t,i)})}))}function iR(t,e){ie.pointerEventsSupported?L(NS.pointer,r):ie.touchEventsSupported||L(NS.mouse,r);function r(n){function i(a){a=Vv(a),FS(t,a.target)||(a=tR(t,a),e.domHandlers[n].call(t,a))}Cu(e,n,i,{capture:!0})}}function Cu(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,zk(t.domTarget,e,r,n)}function Qv(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&Vk(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var zS=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),aR=(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 zS(r,ir),Xv&&(i._globalHandlerScope=new zS(document,jv)),nR(i,i._localHandlerScope),i}return e.prototype.dispose=function(){Qv(this._localHandlerScope),Xv&&Qv(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,Xv&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?iR(this,n):Qv(n)}},e})(Rr);var Au={},VS={};function oR(t){delete VS[t]}function sR(t){if(!t)return!1;if(typeof t=="string")return Os(t,1)<uc;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,i=0;i<n;i++)r+=Os(e[i].color,1);return r/=n,r<uc}return!1}var lR=(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 jk,o=n.renderer||"canvas";Au[o]||(o=ce(Au)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Au[o](r,a,n,e),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!ie.node&&!ie.worker&&!l?new aR(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?ie.touchEventsSupported:!!f,h=44,v;c&&(v=K(n.pointerSize,h)),this.handler=new MS(a,s,u,s.root,v),this.animation=new Qk({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=sR(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=ca(),i=this._needsRefresh,a=this._needsRefreshHover;(i||a)&&(r=!0,this._refresh({animUpdate:e,refresh:i,refreshHover:a}));var o=ca();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 De&&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,oR(this.id))},t})();function GS(t,e){var r=new lR(ug(),t,e);return VS[r.id]=r,r}function uR(t,e){Au[t]=e}var Jv;function fR(t){if(typeof Jv=="function")return Jv(t)}function cR(t){Jv=t}var HS="";typeof navigator<"u"&&(HS=navigator.platform||"");var ha="rgba(0, 0, 0, 0.2)",US=Y.color.theme[0],hR=ec(US,null,null,.9);const WS={darkMode:"auto",colorBy:"series",color:Y.color.theme,gradientColor:[hR,US],aria:{decal:{decals:[{color:ha,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ha,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ha,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ha,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ha,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ha,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:HS.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 vR=te();function dR(t,e,r){var n=vR.get(e);if(!n)return r;var i=n(t);return i?r.concat(i):r}var Du,Bo,YS,$S="\0_ec_inner",pR=1,ed=(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 Ce(a),this._locale=new Ce(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){var a=KS(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,KS(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"?YS(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&&L(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;wL(this),L(r,function(c,h){c!=null&&(ye.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?oe(c):we(i[h],c,!0))}),u&&u.each(function(c,h){ye.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),ye.topologicalTravel(s,ye.getAllClassMainTypes(),f,this);function f(c){var h=dR(this,c,ot(r[c])),v=a.get(c),d=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",g=ID(v,h,d);BD(g,c,ye),i[c]=null,a.set(c,null),o.set(c,0);var p=[],m=[],y=0,_;L(g,function(b,S){var w=b.existing,x=b.newOption;if(!x)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var C=c==="series",D=ye.getClass(c,b.keyInfo.subType,!C);if(!D)return;if(c==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===D)w.name=b.keyInfo.name,w.mergeOption(x,this),w.optionUpdated(x,!1);else{var T=z({componentIndex:S},b.keyInfo);w=new D(x,this,this,T),z(w,T),b.brandNew&&(w.__requireNewView=!0),w.init(x,this,this),w.optionUpdated(null,!0)}}w?(p.push(w.option),m.push(w),y++):(p.push(void 0),m.push(void 0))},this),i[c]=p,a.set(c,m),o.set(c,y),c==="series"&&Du(this)}this._seriesIndices||Du(this)},e.prototype.getOption=function(){var r=oe(this.option);return L(r,function(n,i){if(ye.hasClass(i)){for(var a=ot(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!ro(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[$S],r},e.prototype.setTheme=function(r){this._theme=new Ce(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=[],L(ot(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=XS("id",a,s):o!=null?l=XS("name",o,s):l=Ye(s,function(u){return!!u}),qS(l,r)},e.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):Ye(this._componentsMap.get(i),function(u){return!!u});return l(qS(o,r));function s(u){var f=i+"Index",c=i+"Id",h=i+"Name";return u&&(u[f]!=null||u[c]!=null||u[h]!=null)?{mainType:i,index:u[f],id:u[c],name:u[h]}:null}function l(u){return r.filter?Ye(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,h){for(var v=0;c&&v<c.length;v++){var d=c[v];d&&s.call(o,h,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=Tr(r,null);return Ye(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 Ye(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return Ye(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){Bo(this),L(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},e.prototype.eachRawSeries=function(r,n){L(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,i){Bo(this),L(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 L(this.getSeriesByType(r),n,i)},e.prototype.isSeriesFiltered=function(r){return Bo(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){Bo(this);var i=[];L(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){Du(this);var n=this._componentsMap,i=[];n.each(function(a,o){ye.hasClass(o)&&i.push(o)}),ye.topologicalTravel(i,ye.getAllClassMainTypes(),function(a){L(n.get(a),function(o){o&&(a!=="series"||!gR(o,r))&&o.restoreData()})})},e.internalField=(function(){Du=function(r){var n=r._seriesIndices=[];L(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=te(n)},Bo=function(r){},YS=function(r,n){r.option={},r.option[$S]=pR,r._componentsMap=te({series:[]}),r._componentsCount=te();var i=n.aria;j(i)&&i.enabled==null&&(i.enabled=!0),mR(n,r._theme.option),we(n,WS,!1),r._mergeOption(n,null)}})(),e})(Ce);function gR(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 mR(t,e){var r=t.color&&!t.colorLayer;L(e,function(n,i){i==="colorLayer"&&r||i==="color"&&t.color||ye.hasClass(i)||(typeof n=="object"?t[i]=t[i]?we(t[i],n,!1):oe(n):t[i]==null&&(t[i]=n))})}function XS(t,e,r){if(W(e)){var n=te();return L(e,function(a){if(a!=null){var o=Tr(a,null);o!=null&&n.set(a,!0)}}),Ye(r,function(a){return a&&n.get(a[t])})}else{var i=Tr(e,null);return Ye(r,function(a){return a&&i!=null&&a[t]===i})}}function qS(t,e){return e.hasOwnProperty("subType")?Ye(t,function(r){return r&&r.subType===e.subType}):t}function KS(t){var e=te();return t&&L(ot(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}Xt(ed,jh);var yR=/^(min|max)?(.+)$/,_R=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(L(ot(e.series),function(o){o&&o.data&&dt(o.data)&&_s(o.data)}),L(ot(e.dataset),function(o){o&&o.source&&dt(o.source)&&_s(o.source)})),e=oe(e);var i=this._optionBackup,a=bR(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++)SR(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!xR(o,this._currentMediaIndices)&&(s=$(o,function(f){return oe(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},t})();function bR(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)&&L(u,function(v){v&&v.option&&(v.query?n.push(v):i||(i=v))}),h(a),L(l,function(v){return h(v)}),L(n,function(v){return h(v.option)});function h(v){L(e,function(d){d(v,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function SR(t,e,r){var n={width:e,height:r,aspectratio:e/r},i=!0;return L(t,function(a,o){var s=o.match(yR);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();wR(n[u],a,l)||(i=!1)}}),i}function wR(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function xR(t,e){return t.join(",")===e.join(",")}var ar=L,Fo=j,ZS=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function td(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=ZS.length;r<n;r++){var i=ZS[r],a=e.normal,o=e.emphasis;a&&a[i]&&(t[i]=t[i]||{},t[i].normal?we(t[i].normal,a[i]):t[i].normal=a[i],a[i]=null),o&&o[i]&&(t[i]=t[i]||{},t[i].emphasis?we(t[i].emphasis,o[i]):t[i].emphasis=o[i],o[i]=null)}}function tt(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 zo(t){tt(t,"itemStyle"),tt(t,"lineStyle"),tt(t,"areaStyle"),tt(t,"label"),tt(t,"labelLine"),tt(t,"upperLabel"),tt(t,"edgeLabel")}function Be(t,e){var r=Fo(t)&&t[e],n=Fo(r)&&r.textStyle;if(n)for(var i=0,a=Hm.length;i<a;i++){var o=Hm[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Wt(t){t&&(zo(t),Be(t,"label"),t.emphasis&&Be(t.emphasis,"label"))}function TR(t){if(Fo(t)){td(t),zo(t),Be(t,"label"),Be(t,"upperLabel"),Be(t,"edgeLabel"),t.emphasis&&(Be(t.emphasis,"label"),Be(t.emphasis,"upperLabel"),Be(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(td(e),Wt(e));var r=t.markLine;r&&(td(r),Wt(r));var n=t.markArea;n&&Wt(n);var i=t.data;if(t.type==="graph"){i=i||t.nodes;var a=t.links||t.edges;if(a&&!dt(a))for(var o=0;o<a.length;o++)Wt(a[o]);L(t.categories,function(u){zo(u)})}if(i&&!dt(i))for(var o=0;o<i.length;o++)Wt(i[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Wt(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)W(l[o])?(Wt(l[o][0]),Wt(l[o][1])):Wt(l[o]);t.type==="gauge"?(Be(t,"axisLabel"),Be(t,"title"),Be(t,"detail")):t.type==="treemap"?(tt(t.breadcrumb,"itemStyle"),L(t.levels,function(u){zo(u)})):t.type==="tree"&&zo(t.leaves)}}function $r(t){return W(t)?t:t?[t]:[]}function jS(t){return(W(t)?t[0]:t)||{}}function CR(t,e){ar($r(t.series),function(n){Fo(n)&&TR(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),ar(r,function(n){ar($r(t[n]),function(i){i&&(Be(i,"axisLabel"),Be(i.axisPointer,"label"))})}),ar($r(t.parallel),function(n){var i=n&&n.parallelAxisDefault;Be(i,"axisLabel"),Be(i&&i.axisPointer,"label")}),ar($r(t.calendar),function(n){tt(n,"itemStyle"),Be(n,"dayLabel"),Be(n,"monthLabel"),Be(n,"yearLabel")}),ar($r(t.radar),function(n){Be(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)}),ar($r(t.geo),function(n){Fo(n)&&(Wt(n),ar($r(n.regions),function(i){Wt(i)}))}),ar($r(t.timeline),function(n){Wt(n),tt(n,"label"),tt(n,"itemStyle"),tt(n,"controlStyle",!0);var i=n.data;W(i)&&L(i,function(a){j(a)&&(tt(a,"label"),tt(a,"itemStyle"))})}),ar($r(t.toolbox),function(n){tt(n,"iconStyle"),ar(n.feature,function(i){tt(i,"iconStyle")})}),Be(jS(t.axisPointer),"label"),Be(jS(t.tooltip).axisPointer,"label")}function AR(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 DR(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 QS(t){t&&L(MR,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var MR=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],LR=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],rd=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Vo(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<rd.length;r++){var n=rd[r][1],i=rd[r][0];e[n]!=null&&(e[i]=e[n])}}function JS(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 IR(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function t1(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&t1(t[r].children,e)}function r1(t,e){CR(t,e),t.series=ot(t.series),L(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),JS(r.label);var i=r.data;if(i&&!dt(i))for(var a=0;a<i.length;a++)JS(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=AR(r,"pointer.color");o!=null&&DR(r,"itemStyle.color",o)}else if(n==="bar"){Vo(r),Vo(r.backgroundStyle),Vo(r.emphasis);var i=r.data;if(i&&!dt(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(Vo(i[a]),Vo(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),t1(r.data,e1)}else n==="graph"||n==="sankey"?IR(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)),QS(r)}}),t.dataRange&&(t.visualMap=t.dataRange),L(LR,function(r){var n=t[r];n&&(W(n)||(n=[n]),L(n,function(i){QS(i)}))})}var PR=Gc(ER);function ER(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(),L(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),kR(r)}})}function kR(t){L(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 h=o.get(e.stackedDimension,c);if(isNaN(h))return i;var v,d;s?d=o.getRawIndex(c):v=o.get(e.stackedByDimension,c);for(var g=NaN,p=r-1;p>=0;p--){var m=t[p];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,v)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&h>=0&&y>0||l==="samesign"&&h<=0&&y<0){h=wD(h,y),g=y;break}}}return n[0]=h,n[1]=g,n})})}var Tt=(function(){function t(){this.group=new De,this.uid=_o("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})();Af(Tt),ws(Tt);var n1=be(),i1={itemStyle:ka(n0,!0),lineStyle:ka(r0,!0)},RR={lineStyle:"stroke",itemStyle:"fill"};function a1(t,e){var r=t.visualStyleMapper||i1[e];return r||(console.warn("Unknown style type '"+e+"'."),i1.itemStyle)}function o1(t,e){var r=t.visualDrawType||RR[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var OR={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),a=a1(t,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=o1(t,n),u=o[l],f=ee(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=h,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ee(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||ee(o.stroke)?h:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var g=t.getDataParams(d),p=z({},o);p[l]=f(g),v.setItemVisual(d,"style",p)}}}},Go=new Ce,NR={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=a1(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Go.option=l[n];var u=i(Go),f=o.ensureUniqueItemVisual(s,"style");z(f,u),Go.option.decal&&(o.setItemVisual(s,"decal",Go.option.decal),Go.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},BR={performRawSeries:!0,overallReset:function(t){var e=te();t.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.type+"-"+r.getColorBy();n1(r).scope=e.get(n)||e.set(n,{})}}),t.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.getRawData(),i={},a=r.getData(),o=n1(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=o1(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 h=a.ensureUniqueItemVisual(f,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=r.getColorFromPalette(v,o,d)}})}})}},Mu=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 De,n=new Le({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var i=new Ie({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 Le({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 ml({shape:{startAngle:-Mu/2,endAngle:-Mu/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:Mu*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Mu*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 s1=(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):Zm(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;L(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";qt(!(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;L(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(p){s(i,p)&&(p.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var g=o.getPerformArgs(h,i.block);d.each(function(p){p.perform(g)}),h.perform(g)&&(a=!0)}else c&&c.each(function(p,m){s(i,p)&&p.dirty();var y=o.getPerformArgs(p,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.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 h=c.uid,v=s.set(h,o&&o.get(h)||Ao({plan:UR,reset:WR,count:$R}));v.context={model:c,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,v)}},t.prototype._createOverallStageTask=function(e,r,n,i){var a=this,o=r.overallTask=r.overallTask||Ao({reset:zR});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,h=!1,v="";qt(!e.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):L(n.getSeries(),d);function d(g){var p=g.uid,m=l.set(p,s&&s.get(p)||(h=!0,Ao({reset:VR,onDirty:HR})));m.context={model:g,dirtyOnOverallProgress:c},m.agent=o,m.__block=c,a._pipe(g,m)}h&&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:XR(e)}),e.uid=_o("stageHandler"),r&&(e.visualType=r),e},t})();function zR(t){t.overallReset(t.ecModel,t.api,t.payload)}function VR(t){return t.dirtyOnOverallProgress&&GR}function GR(){this.agent.dirty(),this.getDownstream().dirty()}function HR(){this.agent&&this.agent.dirty()}function UR(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function WR(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=ot(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?$(e,function(r,n){return l1(n)}):YR}var YR=l1(0);function l1(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 $R(t){return t.data.count()}function XR(t){Lu=null;try{t(Ho,u1)}catch{}return Lu}var Ho={},u1={},Lu;f1(Ho,ed),f1(u1,ey),Ho.eachSeriesByType=Ho.eachRawSeriesByType=function(t){Lu=t},Ho.eachComponent=function(t){t.mainType==="series"&&t.subType&&(Lu=t.subType)};function f1(t,e){for(var r in e.prototype)t[r]=$e}var U=Y.darkColor,c1=U.background,Uo=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:{}}},h1={label:{color:U.secondary},itemStyle:{borderColor:U.borderTint},dividerLineStyle:{color:U.border}},v1={darkMode:!0,color:U.theme,backgroundColor:c1,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:c1,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:h1,y:h1,backgroundColor:{borderColor:U.axisLine},body:{itemStyle:{borderColor:U.borderTint}}},timeAxis:Uo(),logAxis:Uo(),valueAxis:Uo(),categoryAxis:Uo(),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=Uo();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}}}};v1.categoryAxis.splitLine.show=!1;var qR=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},i={};if(q(e)){var a=pr(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};L(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var h=o[c],v=u.lastIndexOf(h);if(v>0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(r.mainType=d,r[h.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,h,v,d){return c[v]==null||h[d||v]===c[v]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})(),nd=["symbol","symbolSize","symbolRotate","symbolOffset"],d1=nd.concat(["symbolKeepAspect"]),KR={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<nd.length;o++){var s=nd[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,h){for(var v=t.getRawValue(h),d=t.getDataParams(h),g=0;g<u.length;g++){var p=u[g];c.setItemVisual(h,p,i[p](v,d))}}return{dataEach:a?f:null}}},ZR={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<d1.length;s++){var l=d1[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function jR(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 QR(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 Wo(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var Yt=new Rr,p1={};function JR(t,e){p1[t]=e}function eO(t){return p1[t]}var tO=Math.round(Math.random()*9),rO=typeof Object.defineProperty=="function",nO=(function(){function t(){this._id="__ec_inner_"+tO++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return rO?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 ui(t){return isFinite(t)}function iO(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=ui(n)?n:0,i=ui(i)?i:1,a=ui(a)?a:0,o=ui(o)?o:0;var s=t.createLinearGradient(n,a,i,o);return s}function aO(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=ui(o)?o:.5,s=ui(s)?s:.5,l=l>=0&&ui(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function g1(t,e,r){for(var n=e.type==="radial"?aO(t,e,r):iO(t,e,r),i=e.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function oO(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 Iu(t){return parseInt(t,10)}function m1(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]||Iu(s[n])||Iu(t.style[n]))-(Iu(s[a])||0)-(Iu(s[o])||0)||0}function sO(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 id(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&sO(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 lO=new rn(!0);function Pu(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function y1(t){return typeof t=="string"&&t!=="none"}function Eu(t){var e=t.fill;return e!=null&&e!=="none"}function _1(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 b1(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 S1(t,e,r){var n=Mf(e.image,e.__image,r);if(xs(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)*Ss),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function uO(t,e,r,n,i){var a,o=Pu(r),s=Eu(r),l=r.strokePercent,u=l<1,f=!e.path;(!e.silent||u)&&f&&e.createPathProxy();var c=e.path||lO,h=e.__dirty;if(!n){var v=r.fill,d=r.stroke,g=s&&!!v.colorStops,p=o&&!!d.colorStops,m=s&&!!v.image,y=o&&!!d.image,_=void 0,b=void 0,S=void 0,w=void 0,x=void 0;(g||p)&&(x=e.getBoundingRect()),g&&(_=h?g1(t,v,x):e.__canvasFillGradient,e.__canvasFillGradient=_),p&&(b=h?g1(t,d,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=b),m&&(S=h||!e.__canvasFillPattern?S1(t,v,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(w=h||!e.__canvasStrokePattern?S1(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=w),g?t.fillStyle=_:m&&(S?t.fillStyle=S:s=!1),p?t.strokeStyle=b:y&&(w?t.strokeStyle=w:o=!1)}var C=e.getGlobalScale();c.setScale(C[0],C[1],e.segmentIgnoreThreshold);var D,T;t.setLineDash&&r.lineDash&&(a=id(e),D=a[0],T=a[1]);var A=!0;(f||h&ki)&&(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=T),n?(i.batchFill=s,i.batchStroke=o):r.strokeFirst?(o&&b1(t,r),s&&_1(t,r)):(s&&_1(t,r),o&&b1(t,r)),D&&t.setLineDash([])}function fO(t,e,r){var n=e.__image=Mf(r.image,e.__image,e,e.onload);if(!(!n||!xs(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,h=s-f;t.drawImage(n,u,f,c,h,i,a,o,s)}else t.drawImage(n,i,a,o,s)}}function cO(t,e,r){var n,i=r.text;if(i!=null&&(i+=""),i){t.font=r.font||Er,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=id(e),a=n[0],o=n[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(Pu(r)&&t.strokeText(i,r.x,r.y),Eu(r)&&t.fillText(i,r.x,r.y)):(Eu(r)&&t.fillText(i,r.x,r.y),Pu(r)&&t.strokeText(i,r.x,r.y)),a&&t.setLineDash([])}}var w1=["shadowBlur","shadowOffsetX","shadowOffsetY"],x1=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function T1(t,e,r,n,i){var a=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){ct(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Rn.opacity:o}(n||e.blend!==r.blend)&&(a||(ct(t,i),a=!0),t.globalCompositeOperation=e.blend||Rn.blend);for(var s=0;s<w1.length;s++){var l=w1[s];(n||e[l]!==r[l])&&(a||(ct(t,i),a=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==r.shadowColor)&&(a||(ct(t,i),a=!0),t.shadowColor=e.shadowColor||Rn.shadowColor),a}function C1(t,e,r,n,i){var a=e.style,o=n?null:r&&r.style||{};if(a===o)return!1;var s=T1(t,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(ct(t,i),s=!0),y1(a.fill)&&(t.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(ct(t,i),s=!0),y1(a.stroke)&&(t.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(ct(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||(ct(t,i),s=!0),t.lineWidth=u)}for(var f=0;f<x1.length;f++){var c=x1[f],h=c[0];(n||a[h]!==o[h])&&(s||(ct(t,i),s=!0),t[h]=a[h]||c[1])}return s}function hO(t,e,r,n,i){return T1(t,e.style,r&&r.style,n,i)}function A1(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 vO(t,e,r){for(var n=!1,i=0;i<t.length;i++){var a=t[i];n=n||a.isZeroArea(),A1(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=n}function dO(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 D1=1,M1=2,L1=3,I1=4;function pO(t){var e=Eu(t),r=Pu(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 ct(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function gO(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};ad(t,e,r),od(t,r)}function ad(t,e,r){var n=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~Zt,e.__isRendered=!1;return}var i=e.__clipPaths,a=r.prevElClipPaths,o=e.style,s=!1,l=!1;if((!a||oO(i,a))&&(a&&(ct(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(ct(t,r),t.save(),vO(i,t,r),s=!0,r.prevElClipPaths=i)),r.allClipped){e.__dirty&=~Zt,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&&pO(o);s||dO(n,u.transform)?(ct(t,r),A1(t,e)):f||ct(t,r),e instanceof pe?(r.lastDrawType!==D1&&(l=!0,r.lastDrawType=D1),C1(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),uO(t,e,o,f,r)):e instanceof ja?(r.lastDrawType!==L1&&(l=!0,r.lastDrawType=L1),C1(t,e,u,l,r),cO(t,e,o)):e instanceof Et?(r.lastDrawType!==M1&&(l=!0,r.lastDrawType=M1),hO(t,e,u,l,r),fO(t,e,o)):e.getTemporalDisplayables&&(r.lastDrawType!==I1&&(l=!0,r.lastDrawType=I1),mO(t,e,r)),e.innerAfterBrush(),e.afterBrush&&(f&&ct(t,r),e.afterBrush()),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function od(t,e){ct(t,e),e.prevElClipPaths&&t.restore()}function mO(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(),ad(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}od(t,a);for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),ad(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}od(t,a),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var sd=new nO,P1=new xi(100),E1=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function ld(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),i=n.painter.type==="svg";t.dirty&&sd.delete(t);var a=sd.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,sd.set(t,s),t.dirty=!1,s;function l(u){for(var f=[r],c=!0,h=0;h<E1.length;++h){var v=o[E1[h]];if(v!=null&&!W(v)&&!q(v)&&!me(v)&&typeof v!="boolean"){c=!1;break}f.push(v)}var d;if(c){d=f.join(",")+(i?"-svg":"");var g=P1.get(d);g&&(i?u.svgElement=g:u.image=g)}var p=R1(o.dashArrayX),m=yO(o.dashArrayY),y=k1(o.symbol),_=_O(p),b=O1(m),S=!i&&vr.createCanvas(),w=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=D(),C;S&&(S.width=x.width*r,S.height=x.height*r,C=S.getContext("2d")),T(),c&&P1.put(d,S||w),u.image=S,u.svgElement=w,u.svgWidth=x.width,u.svgHeight=x.height;function D(){for(var A=1,I=0,M=_.length;I<M;++I)A=Fm(A,_[I]);for(var P=1,I=0,M=y.length;I<M;++I)P=Fm(P,y[I].length);A*=P;var E=b*_.length*y.length;return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(E,o.maxTileHeight))}}function T(){C&&(C.clearRect(0,0,S.width,S.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,S.width,S.height)));for(var A=0,I=0;I<m.length;++I)A+=m[I];if(A<=0)return;for(var M=-b,P=0,E=0,k=0;M<x.height;){if(P%2===0){for(var O=E/2%y.length,R=0,N=0,F=0;R<x.width*2;){for(var B=0,I=0;I<p[k].length;++I)B+=p[k][I];if(B<=0)break;if(N%2===0){var G=(1-o.symbolSize)*.5,X=R+p[k][N]*G,H=M+m[P]*G,Z=p[k][N]*o.symbolSize,ae=m[P]*o.symbolSize,Re=F/2%y[O].length;Me(X,H,Z,ae,y[O][Re])}R+=p[k][N],++F,++N,N===p[k].length&&(N=0)}++k,k===p.length&&(k=0)}M+=m[P],++E,++P,P===m.length&&(P=0)}function Me(he,Te,J,se,yt){var Oe=i?1:r,sr=Mr(yt,he*Oe,Te*Oe,J*Oe,se*Oe,o.color,o.symbolKeepAspect);if(i){var _t=n.painter.renderOneToVNode(sr);_t&&w.children.push(_t)}else gO(C,sr)}}}}function k1(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 k1([t]);for(var n=[],r=0;r<t.length;++r)q(t[r])?n.push([t[r]]):n.push(t[r]);return n}function R1(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 R1([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 yO(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 _O(t){return $(t,function(e){return O1(e)})}function O1(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}var bO=Gc(SO);function SO(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=ld(s,e)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=ld(i,e)}}})}var wO=1,xO=800,TO=900,CO=920,AO=1e3,DO=2e3,N1=5e3,B1=1e3,MO=1100,ud=2e3,F1=3e3,LO=4e3,ku=4500,IO=4600,PO=5e3,EO=6e3,z1=7e3,kO={PROCESSOR:{SERIES_FILTER:xO,AXIS_STATISTICS:CO,FILTER:AO,STATISTIC:N1,STATISTICS:N1},VISUAL:{LAYOUT:B1,PROGRESSIVE_LAYOUT:MO,GLOBAL:ud,CHART:F1,POST_CHART_LAYOUT:IO,COMPONENT:LO,BRUSH:PO,CHART_ITEM:ku,ARIA:EO,DECAL:z1}},ze="__flagInMainProcess",Ru="__mainProcessVersion",We="__pendingUpdate",fd="__needsUpdateStatus",V1=/^[a-zA-Z0-9_]+$/,cd="__connectUpdateStatus",G1=0,RO=1,OO=2;function H1(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return W1(this,t,e)}}function U1(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return W1(this,t,e)}}function W1(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),Rr.prototype[e].apply(t,r)}var Y1=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(Rr),$1=Y1.prototype;$1.on=U1("on"),$1.off=U1("off");var fi,hd,Ou,Xr,Nu,vd,dd,va,da,X1,q1,pd,K1,Bu,Z1,j1,$t,Q1,pa,J1=(function(t){V(e,t);function e(r,n,i){var a=t.call(this,new qR)||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[Ru]=1,i.ssr&&cR(function(h){var v=ue(h),d=v.dataIndex;if(d!=null){var g=te();return g.set("series_index",v.seriesIndex),g.set("data_index",d),v.ssrType&&g.set("ssr_type",v.ssrType),g}});var u=a._zr=GS(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:K(i.useDirtyRect,l),useCoarsePointer:K(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Iv(de(u.flush,u),17),a._updateTheme(n),a._locale=SI(i.locale||H0),a._coordSysMgr=new kh;var f=a._api=Z1(a);function c(h,v){return h.__prio-v.__prio}return Tu(zu,c),Tu(_d,c),a._scheduler=new s1(a,f,_d,zu),a._messageCenter=new Y1,a._initEvents(),a.resize=de(a.resize,a),u.animation.on("frame",a._onframe,a),X1(u,a),q1(u,a),_s(a),a}return e.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,n=this._model,i=this._api;if(Q1(this),this[We]){var a=this[We].silent;this[ze]=!0,pa(this);try{fi(this),Xr.update.call(this,null,this[We].updateParams)}catch(l){throw this[ze]=!1,this[We]=null,l}this._zr.flush(),this[ze]=!1,this[We]=null,va.call(this,a),da.call(this,a)}else if(r.unfinished){var o=wO;do{r.unfinished=!1;var s=vr.getTime();r.performSeriesTasks(n),r.performDataProcessorTasks(n),vd(this,n),r.performVisualTasks(n),Bu(this,this._model,i,"remain",{}),o-=vr.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[ze]){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[ze]=!0,pa(this),!this._model||n){var l=new _R(this._api),u=this._theme,f=this._model=new ed;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},bd);var c={seriesTransition:s,optionChanged:!0};if(i)this[We]={silent:a,updateParams:c},this[ze]=!1,this.getZr().wakeUp();else{try{fi(this),Xr.update.call(this,null,c)}catch(h){throw this[We]=null,this[ze]=!1,h}this._ssr||this._zr.flush(),this[We]=null,this[ze]=!1,va.call(this,a),da.call(this,a)}}},e.prototype.setTheme=function(r,n){if(!this[ze]){if(this._disposed){this.id;return}var i=this._model;if(i){var a=n&&n.silent,o=null;this[We]&&(a==null&&(a=this[We].silent),o=this[We].updateParams,this[We]=null),this[ze]=!0,pa(this);try{this._updateTheme(r),i.setTheme(this._theme),fi(this),Xr.update.call(this,{type:"setTheme"},o)}catch(s){throw this[ze]=!1,s}this[ze]=!1,va.call(this,a),da.call(this,a)}}},e.prototype._updateTheme=function(r){q(r)&&(r=ew[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 L(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;L(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 L(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(tw[i]){var l=s,u=s,f=-s,c=-s,h=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();L(Yo,function(_,b){if(_.group===i){var S=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),h.push({dom:S,left:w.left,top:w.top})}}),l*=v,u*=v,f*=v,c*=v;var d=f-l,g=c-u,p=vr.createCanvas(),m=GS(p,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:g}),n){var y="";return L(h,function(_){var b=_.left-l,S=_.top-u;y+='<g transform="translate('+b+","+S+')">'+_.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 Le({shape:{x:0,y:0,width:d,height:g},style:{fill:r.connectedBackgroundColor}})),L(h,function(_){var b=new Et({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});m.add(b)}),m.refreshImmediately(),p.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n,i){return Nu(this,"convertToPixel",r,n,i)},e.prototype.convertToLayout=function(r,n,i){return Nu(this,"convertToLayout",r,n,i)},e.prototype.convertFromPixel=function(r,n,i){return Nu(this,"convertFromPixel",r,n,i)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Nc(i,r);return L(o,function(s,l){l.indexOf("Models")>=0&&L(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=Nc(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?jR(s,l,n):QR(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;L(NO,function(i){var a=function(o){var s=r.getModel(),l=o.target,u,f=i==="globalout";if(f?u={}:l&&Wo(l,function(g){var p=ue(g);if(p&&p.dataIndex!=null){var m=p.dataModel||s.getSeriesByIndex(p.seriesIndex);return u=m&&m.getDataParams(p.dataIndex,p.dataType,l)||{},!0}else if(p.eventData)return u=z({},p.eventData),!0},!0),u){var c=u.componentType,h=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",h=u.seriesIndex);var v=c&&h!=null&&s.getComponent(c,h),d=v&&r[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];u.event=o,u.type=i,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:v,view:d},r.trigger(i,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(i,a,r)});var n=this._messageCenter;L(yd,function(i,a){n.on(a,function(o){r.trigger(a,o)})}),bk(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(),wd,"");var n=this,i=n._api,a=n._model;L(n._componentsViews,function(o){o.dispose(a,i)}),L(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 Yo[n.id]},e.prototype.resize=function(r){if(!this[ze]){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[We]&&(a==null&&(a=this[We].silent),i=!0,this[We]=null),this[ze]=!0,pa(this);try{i&&fi(this),Xr.update.call(this,{type:"resize",animation:z({duration:0},r&&r.animation)})}catch(o){throw this[ze]=!1,o}this[ze]=!1,va.call(this,a),da.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(),!!Sd[r]){var i=Sd[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=md[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(j(n)||(n={silent:!!n}),!!Fu[r.type]&&this._model){if(this[ze]){this._pendingActions.push(r);return}var i=n.silent;dd.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&ie.browser.weChat&&this._throttledZrFlush(),va.call(this,i),da.call(this,i)}},e.prototype.updateLabelLayout=function(){Yt.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(){fi=function(c){HP(c._model);var h=c._scheduler;h.restorePipelines(c._zr,c._model),h.prepareStageTasks(),hd(c,!0),hd(c,!1),h.plan()},hd=function(c,h){for(var v=c._model,d=c._scheduler,g=h?c._componentsViews:c._chartsViews,p=h?c._componentsMap:c._chartsMap,m=c._zr,y=c._api,_=0;_<g.length;_++)g[_].__alive=!1;h?v.eachComponent(function(w,x){w!=="series"&&b(x)}):v.eachSeries(b);function b(w){var x=w.__requireNewView;w.__requireNewView=!1;var C="_ec_"+w.id+"_"+w.type,D=!x&&p[C];if(!D){var T=pr(w.type),A=h?Tt.getClass(T.main,T.sub):et.getClass(T.sub);D=new A,D.init(v,y),p[C]=D,g.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},!h&&d.prepareView(D,w,v,y)}for(var _=0;_<g.length;){var S=g[_];S.__alive?_++:(!h&&S.renderTask.dispose(),m.remove(S.group),S.dispose(v,y),g.splice(_,1),p[S.__id]===S&&delete p[S.__id],S.__id=S.group.__ecComponentInfo=null)}},Ou=function(c,h,v,d,g){var p=c._model;if(p.setUpdatePayload(v),!d){L([].concat(c._componentsViews).concat(c._chartsViews),b);return}var m=VD(v,d,g),y=v.excludeSeriesId,_;y!=null&&(_=te(),L(ot(y),function(S){var w=Tr(S,null);w!=null&&_.set(w,!0)})),p&&p.eachComponent(m,function(S){var w=_&&_.get(S.id)!=null;if(!w)if(_y(v))if(S instanceof ut)v.type===Xn&&!v.notBlur&&!S.get(["emphasis","disabled"])&&sM(S,v,c._api);else{var x=jc(S.mainType,S.componentIndex,v.name,c._api),C=x.focusSelf,D=x.dispatchers;v.type===Xn&&C&&!v.notBlur&&Zc(S.mainType,S.componentIndex,c._api),D&&L(D,function(T){v.type===Xn?cl(T):hl(T)})}else eh(v)&&S instanceof ut&&(fM(S,v,c._api),gy(S),$t(c))},c),p&&p.eachComponent(m,function(S){var w=_&&_.get(S.id)!=null;w||b(c[d==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},c);function b(S){S&&S.__alive&&S[h]&&S[h](S.__model,p,c._api,v)}},Xr={prepareAndUpdate:function(c){fi(this),Xr.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,h){var v=this._model,d=this._api,g=this._zr,p=this._coordSysMgr,m=this._scheduler;if(v){UP(v),v.setUpdatePayload(c),m.restoreData(v,c),m.performSeriesTasks(v),p.create(v,d),Yt.trigger("coordsys:aftercreate",v,d),m.performDataProcessorTasks(v,c),vd(this,v),p.update(v,d),n(v),m.performVisualTasks(v,c);var y=v.get("backgroundColor")||"transparent";g.setBackgroundColor(y);var _=v.get("darkMode");_!=null&&_!=="auto"&&g.setDarkMode(_),pd(this,v,d,c,h),Yt.trigger("afterupdate",v,d)}},updateTransform:function(c){var h=this,v=h._model,d=h._api;if(v){v.setUpdatePayload(c);var g=[];v.eachComponent(function(m,y){if(m!==jm){var _=h.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var b=_.updateTransform(y,v,d,c);b&&b.update&&g.push(_)}else g.push(_)}});var p=te();v.eachSeries(function(m){var y=h._chartsMap[m.__viewId],_=m.pipelineContext;if(y.updateTransform&&!_.progressiveRender){var b=y.updateTransform(m,v,d,c);b&&b.update&&p.set(m.uid,1)}else p.set(m.uid,1)}),h._scheduler.performVisualTasks(v,c,{setDirty:!0,dirtyMap:p}),Bu(h,v,d,c,{},p),Yt.trigger("afterupdate",v,d)}},updateView:function(c){var h=this._model;h&&(h.setUpdatePayload(c),et.markUpdateMethod(c,"updateView"),n(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0}),pd(this,h,this._api,c,{}),Yt.trigger("afterupdate",h,this._api))},updateVisual:function(c){var h=this,v=this._model;v&&(v.setUpdatePayload(c),v.eachSeries(function(d){d.getData().clearAllVisual()}),et.markUpdateMethod(c,"updateVisual"),n(v),this._scheduler.performVisualTasks(v,c,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,g){if(d!=="series"){var p=h.getViewOfComponentModel(g);p&&p.__alive&&p.updateVisual(g,v,h._api,c)}}),v.eachSeries(function(d){var g=h._chartsMap[d.__viewId];g.updateVisual(d,v,h._api,c)}),Yt.trigger("afterupdate",v,this._api))},updateLayout:function(c){Xr.update.call(this,c)}};function r(c,h,v,d,g){if(c._disposed){c.id;return}for(var p=c._model,m=c._coordSysMgr.getCoordinateSystems(),y,_=Nc(p,v),b=0;b<m.length;b++){var S=m[b];if(S[h]&&(y=S[h](p,_,d,g))!=null)return y}}Nu=r,vd=function(c,h){var v=c._chartsMap,d=c._scheduler;h.eachSeries(function(g){d.updateStreamModes(g,v[g.__viewId])})},dd=function(c,h){var v=this,d=this.getModel(),g=c.type,p=c.escapeConnect,m=Fu[g],y=(m.update||"update").split(":"),_=y.pop(),b=y[0]!=null&&pr(y[0]);this[ze]=!0,pa(this);var S=[c],w=!1;c.batch&&(w=!0,S=$(c.batch,function(k){return k=le(z({},k),c),k.batch=null,k}));var x=[],C,D=[],T=m.nonRefinedEventType,A=eh(c),I=_y(c);if(I&&py(this._api),L(S,function(k){var O=m.action(k,d,v._api);if(m.refineEvent?D.push(O):C=O,C=C||z({},k),C.type=T,x.push(C),I){var R=Bc(c),N=R.queryOptionMap,F=R.mainTypeSpecified,B=F?N.keys()[0]:"series";Ou(v,_,k,B),$t(v)}else A?(Ou(v,_,k,"series"),$t(v)):b&&Ou(v,_,k,b.main,b.sub)}),_!=="none"&&!I&&!A&&!b)try{this[We]?(fi(this),Xr.update.call(this,c),this[We]=null):Xr[_].call(this,c)}catch(k){throw this[ze]=!1,k}if(w?C={type:T,escapeConnect:p,batch:x}:C=x[0],this[ze]=!1,!h){var M=void 0;if(m.refineEvent){var P=m.refineEvent(D,c,d,this._api).eventContent;qt(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)}},va=function(c){for(var h=this._pendingActions;h.length;){var v=h.shift();dd.call(this,v,c)}},da=function(c){!c&&this.trigger("updated")},X1=function(c,h){c.on("rendered",function(v){h.trigger("rendered",v),c.animation.isFinished()&&!h[We]&&!h._scheduler.unfinished&&!h._pendingActions.length?h.trigger("finished"):c.refresh()})},q1=function(c,h){c.on("mouseover",function(v){var d=v.target,g=Wo(d,Jc);g&&(lM(g,v,h._api),$t(h))}).on("mouseout",function(v){var d=v.target,g=Wo(d,Jc);g&&(uM(g,v,h._api),$t(h))}).on("click",function(v){var d=v.target,g=Wo(d,function(y){return ue(y).dataIndex!=null},!0);if(g){var p=g.selected?"unselect":"select",m=ue(g);h._api.dispatchAction({type:p,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function n(c){c.clearColorPalette(),c.eachSeries(function(h){h.clearColorPalette()})}function i(c){var h=[],v=[],d=!1;if(c.eachComponent(function(y,_){var b=_.get("zlevel")||0,S=_.get("z")||0,w=_.getZLevelKey();d=d||!!w,(y==="series"?v:h).push({zlevel:b,z:S,idx:_.componentIndex,type:y,key:w})}),d){var g=h.concat(v),p,m;Tu(g,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),L(g,function(y){var _=c.getComponent(y.type,y.idx),b=y.zlevel,S=y.key;p!=null&&(b=Math.max(p,b)),S?(b===p&&S!==m&&b++,m=S):m&&(b===p&&b++,m=""),p=b,_.setZLevel(b)})}}pd=function(c,h,v,d,g){i(h),K1(c,h,v,d,g),L(c._chartsViews,function(p){p.__alive=!1}),Bu(c,h,v,d,g),L(c._chartsViews,function(p){p.__alive||p.remove(h,v)})},K1=function(c,h,v,d,g,p){L(p||c._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,h,v,d),l(y,m),f(y,m)})},Bu=function(c,h,v,d,g,p){var m=c._scheduler;g=z(g||{},{updatedSeries:h.getSeries()}),Yt.trigger("series:beforeupdate",h,v,g);var y=!1;h.eachSeries(function(_){var b=c._chartsMap[_.__viewId];b.__alive=!0;var S=b.renderTask;m.updatePayload(S,d),u(_,b),p&&p.get(_.uid)&&S.dirty(),S.perform(m.getPerformArgs(S))&&(y=!0),b.group.silent=!!_.get("silent"),s(_,b),gy(_)}),m.unfinished=y||m.unfinished,Yt.trigger("series:layoutlabels",h,v,g),Yt.trigger("series:transition",h,v,g),h.eachSeries(function(_){var b=c._chartsMap[_.__viewId];l(_,b),f(_,b)}),o(c,h),Yt.trigger("series:afterupdate",h,v,g)},$t=function(c){c[fd]=!0,c.getZr().wakeUp()},pa=function(c){c[Ru]=(c[Ru]+1)%1e6},Q1=function(c){c[fd]&&(c.getZr().storage.traverse(function(h){lo(h)||a(h)}),c[fd]=!1)};function a(c){for(var h=[],v=c.currentStates,d=0;d<v.length;d++){var g=v[d];g==="emphasis"||g==="blur"||g==="select"||h.push(g)}c.selected&&c.states.select&&h.push("select"),c.hoverState===al&&c.states.emphasis?h.push("emphasis"):c.hoverState===il&&c.states.blur&&h.push("blur"),c.useStates(h)}function o(c,h){var v=c._zr;if(v.painter.type==="canvas"){var d=v.storage,g=0;d.traverse(function(m){m.isGroup||g++});var p=g>K(h.get("hoverLayerThreshold"),WS.hoverLayerThreshold)&&!ie.node&&!ie.worker;(c._usingTHL||p)&&(h.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=c._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(_){var b=_.states.emphasis;b&&b.hoverLayer!==uh&&(b.hoverLayer=p?By:Ny)})}}),c._usingTHL=p)}}function s(c,h){var v=c.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function l(c,h){if(!c.preventAutoZ){var v=Yy(c);h.eachRendered(function(d){return $y(d,v.z,v.zlevel),!0})}}function u(c,h){h.eachRendered(function(v){if(!lo(v)){var d=v.getTextContent(),g=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(c,h){var v=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),g=v.get("duration"),p=g>0?{duration:g,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(m){if(m.states&&m.states.emphasis){if(lo(m))return;if(m instanceof pe&&gM(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=p;var _=m.getTextContent(),b=m.getTextGuideLine();_&&(_.stateTransition=p),b&&(b.stateTransition=p)}m.__dirty&&a(m)}})}Z1=function(c){return new((function(h){V(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var g=d.__ecComponentInfo;if(g!=null)return c._model.getComponent(g.mainType,g.index);d=d.parent}},v.prototype.enterEmphasis=function(d,g){cl(d,g),$t(c)},v.prototype.leaveEmphasis=function(d,g){hl(d,g),$t(c)},v.prototype.enterBlur=function(d){oM(d),$t(c)},v.prototype.leaveBlur=function(d){cy(d),$t(c)},v.prototype.enterSelect=function(d){hy(d),$t(c)},v.prototype.leaveSelect=function(d){vy(d),$t(c)},v.prototype.getModel=function(){return c.getModel()},v.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},v.prototype.getECUpdateCycleVersion=function(){return c[Ru]},v.prototype.usingTHL=function(){return c._usingTHL},v})(ey))(c)},j1=function(c){function h(v,d){for(var g=0;g<v.length;g++){var p=v[g];p[cd]=d}}L(md,function(v,d){c._messageCenter.on(d,function(g){if(tw[c.group]&&c[cd]!==G1){if(g&&g.escapeConnect)return;var p=c.makeActionFromEvent(g),m=[];L(Yo,function(y){y!==c&&y.group===c.group&&m.push(y)}),h(m,G1),L(m,function(y){y[cd]!==RO&&y.dispatchAction(p)}),h(m,OO)}})})}})(),e})(Rr),gd=J1.prototype;gd.on=H1("on"),gd.off=H1("off"),gd.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 NO=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function fz(t){}var Fu={},md={},yd={},_d=[],bd=[],zu=[],ew={},Sd={},Yo={},tw={},BO=+new Date-0,wd="_echarts_instance_";function FO(t,e,r){var n=!(r&&r.ssr);if(n){var i=zO(t);if(i)return i}var a=new J1(t,e,r);return a.id="ec_"+BO++,Yo[a.id]=a,n&&Wm(t,wd,a.id),j1(a),Yt.trigger("afterinit",a),a}function zO(t){return Yo[GD(t,wd)]}function rw(t,e){ew[t]=e}function nw(t){fe(bd,t)<0&&bd.push(t)}function iw(t,e){Td(_d,t,e,DO)}function VO(t){xd("afterinit",t)}function GO(t){xd("afterupdate",t)}function xd(t,e){Yt.on(t,e)}function ga(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;Fu[n]||(qt(V1.test(n)&&V1.test(i)),a&&qt(i!==n),Fu[n]={actionType:n,refinedEventType:i,nonRefinedEventType:u,update:o,action:r,refineEvent:a},yd[i]=1,a&&s&&(yd[u]=1),md[u]=n)}function HO(t,e){kh.register(t,e)}function UO(t,e){Td(zu,t,e,B1,"layout")}function ci(t,e){Td(zu,t,e,F1,"visual")}var aw=[];function Td(t,e,r,n,i,a){if((ee(e)||j(e))&&(r=e,e=n),!(fe(aw,r)>=0)){aw.push(r);var o=s1.wrapStageHandler(r,i);o.__prio=e,o.__raw=r,t.push(o)}}function ow(t,e){Sd[t]=e}function WO(t,e,r){var n=eO("registerMap");n&&n(t,e,r)}var YO=e2;ci(ud,OR),ci(ku,NR),ci(ku,BR),ci(ud,KR),ci(ku,ZR),ci(z1,bO),nw(r1),iw(TO,PR),ow("default",FR),ga({type:Xn,event:Xn,update:Xn},$e),ga({type:sl,event:sl,update:sl},$e),ga({type:ll,event:$c,update:ll,action:$e,refineEvent:Cd,publishNonRefinedEvent:!0}),ga({type:Yc,event:$c,update:Yc,action:$e,refineEvent:Cd,publishNonRefinedEvent:!0}),ga({type:ul,event:$c,update:ul,action:$e,refineEvent:Cd,publishNonRefinedEvent:!0});function Cd(t,e,r,n){return{eventContent:{selected:cM(r),isFromClick:e.isFromClick||!1}}}rw("default",{}),rw("dark",v1);var sw=[],$O={registerPreprocessor:nw,registerProcessor:iw,registerPostInit:VO,registerPostUpdate:GO,registerUpdateLifecycle:xd,registerAction:ga,registerCoordinateSystem:HO,registerLayout:UO,registerVisual:ci,registerTransform:YO,registerLoading:ow,registerMap:WO,registerImpl:JR,PRIORITY:kO,ComponentModel:ye,ComponentView:Tt,SeriesModel:ut,ChartView:et,registerComponentModel:function(t){ye.registerClass(t)},registerComponentView:function(t){Tt.registerClass(t)},registerSeriesModel:function(t){ut.registerClass(t)},registerChartView:function(t){et.registerClass(t)},registerCustomSeries:function(t,e){},registerSubTypeDefaulter:function(t,e){ye.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){uR(t,e)}};function or(t){if(W(t)){L(t,function(e){or(e)});return}fe(sw,t)>=0||(sw.push(t),ee(t)&&(t={install:t}),t.install($O))}var XO=(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 Rl(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})(ut),lw=4,qO=(function(){function t(){}return t})(),KO=(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 qO},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]<lw,f=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<i.length;){var h=i[c++],v=i[c++];isNaN(h)||isNaN(v)||f&&!f.contain(h,v)||(s.x=h-a[0]/2,s.y=v-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,h=a[f+1]-l/2;if(r>=c&&n>=h&&r<=c+s&&n<=h+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,h=0;h<i.length;){var v=i[h++],d=i[h++];l=Math.min(v,l),f=Math.max(v,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),ZO=(function(){function t(){this.group=new De}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 KO({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=Mr(r.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<lw;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})(),jO=(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,Ad(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(),Km(n),Ad(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=mv("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(Ad(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 ZO:new L_,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})(et);function Ad(t){return{clipShape:U2(t)}}var uw=(function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t})(),Dd=(function(t){V(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ot).models[0]},e.type="cartesian2dAxis",e})(ye);Xt(Dd,uw);var fw={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"}},QO=we({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},fw),Md=we({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}}},fw),JO=we({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Md),eN=le({logBase:10},Md);const cw={category:QO,value:Md,time:JO,log:eN};function hw(t,e,r,n){L(tb,function(i,a){var o=we(we({},cw[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 h=To(this),v=h?Co(f):{},d=c.getTheme();we(f,d.get(a+"Axis")),we(f,this.getDefaultOption()),f.type=vw(f),h&&cn(f,v,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=uv.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=cu();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=e+"Axis."+a,u.defaultOption=o,u})(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",vw)}function vw(t){return t.type||(t.data?"category":"value")}var tN=(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(),Ye(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})(),Vu=["x","y"];function dw(t){return(t.type==="interval"||t.type==="time")&&!zl(t)}var rN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Yr,r.dimensions=Vu,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!dw(r)||!dw(n))){var i=Zl(r,null),a=Zl(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,h=o[0]-i[0]*f,v=o[1]-a[0]*c,d=this._transform=[f,0,0,c,h,v];this._invTransform=Na([],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 At(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 At(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})(tN);function pw(t,e){var r=t.scale,n=t.model,i=Zb(r,n,n.ecModel,t),a=ra(r),o=ra(e)?e.intervalStub:e,s=a?r.intervalStub:r,l=r.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=u.length-1,h,v,d;if(c===1)h=v=0,d=1;else if(c===2){var g=Fe(u[0].value-u[1].value),p=Fe(u[1].value-u[2].value);h=v=0,g===p?d=2:(d=1,g<p?h=g/p:v=p/g)}else{var m=o.getConfig().interval;h=(1-(u[0].value-f[0].value)/m)%1,v=(1-(f[c].value-u[c].value)/m)%1,d=c-(h?1:0)-(v?1:0)}var y=i.zoomFixMM,_=y[0]||y[1],b=[i.fixMM[0]||_,i.fixMM[1]||_],S=r.getExtent(),w=s.getExtent(),x=Y_(w,b),C,D,T,A,I,M;function P(G){for(var X=50,H=0;H<X&&!G();H++)T=a?T*ge(l,2):Z2(T),A=oi(T)}function E(){C=ve(M-T*h,A)}function k(){D=ve(I+T*v,A)}function O(){M=h?ve(C+T*h,A):C}function R(){I=v?ve(D-T*v,A):D}if(b[0]&&b[1]){C=x[0],D=x[1],T=(D-C)/(d+h+v);var N=t.getExtent(),F=Fe(N[1]-N[0]);A=bD([D,C],F,.5/d),O(),R(),Rt(A)&&(T=ve(T,A))}else{var B=x[1]-x[0];T=a?ge(Om(B),1):kc(B/d,Nm),A=oi(T),b[0]?(C=x[0],P(function(){if(O(),I=ve(M+T*d,A),k(),D>=x[1])return!0})):b[1]?(D=x[1],P(function(){if(R(),M=ve(I-T*d,A),E(),C<=x[0])return!0})):P(function(){M=ve(Qa(x[0]/T)*T,A),I=ve(Un(x[1]/T)*T,A);var G=Nr((I-M)/T);if(G<=d){var X=d-G,H=void 0,Z=i.incl0||a;if(Z&&x[0]===0)H=[0,X];else if(Z&&x[1]===0)H=[X,0];else{var ae=Un(X/2);H=X%2===0?[ae,ae]:C+D<x[0]+x[1]?[ae,ae+1]:[ae+1,ae]}if(M=ve(M-T*H[0],A),I=ve(I+T*H[1],A),E(),k(),C<=x[0]&&D>=x[1])return!0}})}ib(r,b,w,[C,D],S,{interval:T,intervalCount:d,intervalPrecision:A,niceExtent:[M,I]})}function gw(t,e){var r=ra(t),n=r?t.intervalStub:t,i=e.fixMinMax||[],a=r?t.getExtent():null,o=n.getExtent(),s=Y_(o,i,e.rawExtentResult);n.setExtent(s[0],s[1]),s=n.getExtent();var l=r?iN(n,e):nN(n,e),u=l.intervalPrecision,f=l.interval,c=e.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=oi(c)),i[0]||(s[0]=ve(Un(s[0]/f)*f,u)),i[1]||(s[1]=ve(Qa(s[1]/f)*f,u)),c!=null&&(l.niceExtent=s.slice()),ib(t,i,o,s,a,l)}function nN(t,e){var r=eu(e.splitNumber,5),n=jl(t),i=e.minInterval,a=e.maxInterval,o=kc(n/r,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=oi(o),l=t.getExtent(),u=[ve(Qa(l[0]/o)*o,s),ve(Un(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function iN(t,e){var r=eu(e.splitNumber,10),n=t.getExtent(),i=jl(t),a=ge(Om(i),1),o=r/i*a;o<=.5&&(a*=10);var s=oi(a),l=[ve(Qa(n[0]/a)*a,s),ve(Un(n[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:l}}function mw(t){var e=t.scale,r=t.model,n=r.axis,i=r.ecModel;aN(e,r,n,i)}function aN(t,e,r,n,i){var a=Zb(t,e,n,r),o=Ql(t)||cv(t);oN(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&&VE(r,t,a,n)}function oN(t,e){sN[t.type](t,e)}var sN={interval:gw,log:gw,time:oP,ordinal:$e},yw=[[3,1],[0,2]],lN=(function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Vu,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;L(this._axesList,function(o){qb(o,Ub);var s=o.scale;rr(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):mw(f)}L(l,function(c){fN(c,c.__alignTo)?mw(c):pw(c,c.__alignTo.scale)})}i(n.x),i(n.y);var a={};L(n.x,function(o){_w(n,"y",o,a)}),L(n.y,function(o){_w(n,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,n){var i=ta(e,r),a=this._rect=Gr(e.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(ww(o,a),!n){var u=hN(a,s,o,l,r),f=void 0;if(l)f=Tw(a.clone(),"axisLabel",null,a,o,u,i);else{var c=vN(e,a,i),h=c.outerBoundsRect,v=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;h&&(f=Tw(h,v,d,a,o,u,i))}Cw(a,o,nr.determine,null,f,i),L(this._coordsList,function(g){g.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",Ot).models[0],i=e.yAxisModel||r&&r.getReferringComponents("yAxis",Ot).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,L(s.x,function(f,c){L(s.y,function(h,v){var d="x"+c+"y"+v,g=new rN(d);g.master=i,g.model=e,i._coordsMap[d]=g,i._coordsList.push(g),g.addAxis(f),g.addAxis(h)})}),Sw(s.x),Sw(s.y);function u(f){return function(c,h){if(uN(c,e)){var v=c.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=lP(c),g=new aE(f,uP(c,d),[0,0],d,v);g.onBand=ab(g.scale,c),g.inverse=c.get("inverse"),c.axis=g,g.model=c,g.grid=a,g.index=h,a._axesList.push(g),s[f][h]=g,l[f]++}}}},t.prototype.getTooltipAxes=function(e){var r=[],n=[];return L(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),L(o._axesList,function(s){OE(s,t.dimIdxMap)})}),e.eachSeries(function(i){var a,o;QL({targetModel:i,coordSysType:Yr,coordSysProvider:s});function s(){var l=LE(i),u=l.xAxisModel,f=l.yAxisModel;a=u.axis,o=f.axis;var c=u.getCoordSysModel(),h=c.coordinateSystem;return h.getCartesian(u.componentIndex,f.componentIndex)}a&&o&&(Sv(a,i,Yr),Sv(o,i,Yr))},this),n},t.dimensions=Vu,t.dimIdxMap=Lh(Vu),t})();function uN(t,e){return t.getCoordSysModel()===e}function _w(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)bw(s,i[l])&&(a=i[l]);else for(var u in i)if(it(i,u)&&bw(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 bw(t,e){if(!e)return!1;var r=e.scale,n=fP(r,0),i=e&&e.type!=="category"&&e.type!=="time"&&n!==dv;return i&&t==="auto"&&dP(e)&&(i=!1),i}function Sw(t){for(var e=ce(t),r,n=[],i=e.length-1;i>=0;i--){var a=t[+e[i]];W_(a.scale)&&nb(a.model,a.type)==null&&(a.model.get("alignTicks")&&a.model.get("interval")==null?n.push(a):r=a)}r||(r=n.pop()),r&&L(n,function(o){o.__alignTo=r})}function fN(t,e){return zl(t.scale)||zl(e.scale)||e.scale.getTicks().length<2}function cN(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 ww(t,e){L(t.x,function(r){return xw(r,e.x,e.width)}),L(t.y,function(r){return xw(r,e.y,e.height)})}function xw(t,e,r){var n=[0,r],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),cN(t,e)}function Tw(t,e,r,n,i,a,o){Cw(n,i,nr.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(n,0,NaN),f(n,1,NaN);var l=cg(s,function(h){return h>0})==null;return wl(n,s,!0,!0,r),ww(i,n),l;function u(h){L(i[ln[h]],function(v){if(Lo(v.model)){var d=a.ensureRecord(v.model),g=d.labelInfoList;if(g)for(var p=0;p<g.length;p++){var m=g[p],y=v.scale.normalize(Io(v.scale,si(m.label).labelInfo.tick));y=h===1?1-y:y,f(m.rect,h,y),f(m.rect,1-h,NaN)}var _=d.nameLayout;if(_){var y=na(d.nameLocation)?.5:NaN;f(_.rect,h,y),f(_.rect,1-h,NaN)}}})}function f(h,v,d){var g=t[ln[v]]-h[ln[v]],p=h[$i[v]]+h[ln[v]]-(t[$i[v]]+t[ln[v]]);g=c(g,1-d),p=c(p,d);var m=yw[v][0],y=yw[v][1];s[m]=ge(s[m],g),s[y]=ge(s[y],p)}function c(h,v){return h>0&&!Pa(v)&&v>1e-4&&(h/=v),h}}function hN(t,e,r,n,i){var a=new Ob(dN);return L(r,function(o){return L(o,function(s){if(Lo(s.model)){var l=!n;s.axisBuilder=IE(t,e,s.model,i,a,l)}})}),a}function Cw(t,e,r,n,i,a){var o=r===nr.determine;L(e,function(u){return L(u,function(f){Lo(f.model)&&(PE(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[ln[1-u]]=t[$i[u]]<=a.refContainer[$i[u]]*.5?0:1-u===1?2:1}L(e,function(u,f){return L(u,function(c){Lo(c.model)&&((n==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function vN(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)||jb,r.refContainer));var a=t.get("outerBoundsContain",!0),o;a==null||a==="auto"||fe(["all","axisLabel"],a)<0?o="all":o=a;var s=[Ic(K(t.get("outerBoundsClampWidth",!0),pu[0]),e.width),Ic(K(t.get("outerBoundsClampHeight",!0),pu[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var dN=function(t,e,r,n,i,a){var o=r.axis.dim==="x"?"y":"x";Nb(t,e,r,n,i,a),na(t.nameLocation)||L(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&Fb(s.labelInfoList,s.dirVec,n,i)})};function pN(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return gN(r,t,e),r.seriesInvolved&&yN(r,t),r}function gN(t,e,r){var n=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];L(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=$o(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(L(s.getAxes(),Ne(g,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var h=c.get("trigger")==="axis",v=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(h||v)&&L(d.baseAxes,Ne(g,v?"cross":!0,h)),v&&L(d.otherAxes,Ne(g,"cross",!1))}function g(p,m,y){var _=y.model.getModel("axisPointer",i),b=_.get("show");if(!(!b||b==="auto"&&!p&&!Pd(_))){m==null&&(m=_.get("triggerTooltip")),_=p?mN(y,c,i,e,p,m):_;var S=_.get("snap"),w=_.get("triggerEmphasis"),x=$o(y.model),C=m||S||y.type==="category",D=t.axesInfo[x]={key:x,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:w,involveSeries:C,snap:S,useHandle:Pd(_),seriesModels:[],linkGroup:null};u[x]=D,t.seriesInvolved=t.seriesInvolved||C;var T=_N(a,y);if(T!=null){var A=o[T]||(o[T]={axesInfo:{}});A.axesInfo[x]=D,A.mapper=a[T].mapper,D.linkGroup=A}}}})}function mN(t,e,r,n,i,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};L(s,function(h){l[h]=oe(o.get(h))}),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 Ce(l,r,n))}function yN(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||L(t.coordSysAxesInfo[$o(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 _N(t,e){for(var r=e.model,n=e.dim,i=0;i<t.length;i++){var a=t[i]||{};if(Ld(a[n+"AxisId"],r.id)||Ld(a[n+"AxisIndex"],r.componentIndex)||Ld(a[n+"AxisName"],r.name))return i}}function Ld(t,e){return t==="all"||W(t)&&fe(t,e)>=0||t===e}function bN(t){var e=Id(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=Pd(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 Id(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[$o(t)]}function SN(t){var e=Id(t);return e&&e.axisPointerModel}function Pd(t){return!!t.get(["handle","show"])}function $o(t){return t.type+"||"+t.id}var Aw={},Dw=(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&&bN(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=SN(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){Aw[r]=n},e.getAxisPointerClass=function(r){return r&&Aw[r]},e.type="axis",e})(Tt),Ed=be();function wN(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=Ed(t).splitAreaColors,h=te(),v=0;if(c)for(var d=0;d<u.length;d++){var g=c.get(u[d].tickValue);if(g!=null){v=(g+(f-1)*d)%f;break}}var p=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,b=void 0,S=void 0,w=void 0;i.isHorizontal()?(_=p,b=l.y,S=y-_,w=l.height,p=_+S):(_=l.x,b=p,S=l.width,w=y-b,p=b+w);var x=u[d-1].tickValue;x!=null&&h.set(x,v),e.add(new Le({anid:x!=null?"area_"+x:null,shape:{x:_,y:b,width:S,height:w},style:le({fill:s[v]},m),autoBatch:!0,silent:!0})),v=(v+1)%f}Ed(t).splitAreaColors=h}}}function xN(t){Ed(t).splitAreaColors=null}var TN=["splitArea","splitLine","minorSplitLine","breakArea"],Mw=(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 De,this.group.add(this._axisGroup),!!Lo(r)){this._axisGroup.add(r.axis.axisBuilder.group),L(TN,function(l){r.get([l,"show"])&&CN[l](this,this._axisGroup,r,r.getCoordSysModel(),i)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||Hy(o,this._axisGroup,r),t.prototype.render.call(this,r,n,i,a)}},e.prototype.remove=function(){xN(this)},e.type="cartesianAxis",e})(Dw),CN={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(),h=a.isHorizontal(),v=0,d=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],p=[],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 b=d[y].tickValue;h?(g[0]=_,g[1]=c.y,p[0]=_,p[1]=c.y+c.height):(g[0]=c.x,g[1]=_,p[0]=c.x+c.width,p[1]=_);var S=v++%l.length,w=new Dr({anid:b!=null?"line_"+b:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:p[0],y2:p[1]},style:le({stroke:l[S]},m),silent:!0});uo(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=[],h=[],v=s.getLineStyle(),d=0;d<f.length;d++)for(var g=0;g<f[d].length;g++){var p=a.toGlobalCoord(f[d][g].coord);u?(c[0]=p,c[1]=l.y,h[0]=p,h[1]=l.y+l.height):(c[0]=l.x,c[1]=p,h[0]=l.x+l.width,h[1]=p);var m=new Dr({anid:"minor_line_"+f[d][g].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:v,silent:!0});uo(m.shape,v.lineWidth),e.add(m)}},splitArea:function(t,e,r,n,i){wN(t,e,r,n)},breakArea:function(t,e,r,n,i){var a=cu(),o=r.axis.scale;a&&o.type!=="ordinal"&&a.rectCoordBuildBreakAxis(e,t,r,n.coordinateSystem.getRect(),i)}},Lw=(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})(Mw),AN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Lw.type,r}return e.type="yAxis",e})(Mw),DN=(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 Le({shape:r.coordinateSystem.getRect(),style:le({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(Tt),Iw={offset:0};function Pw(t){t.registerComponentView(DN),t.registerComponentModel(XE),t.registerCoordinateSystem("cartesian2d",lN),hw(t,"x",Dd,Iw),hw(t,"y",Dd,Iw),t.registerComponentView(Lw),t.registerComponentView(AN),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function MN(t){or(Pw),t.registerSeriesModel(XO),t.registerChartView(jO),t.registerLayout(mv("scatter"))}function LN(t){var e=t.polar;if(e){W(e)||(e=[e]);var r=[];L(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}L(t.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var Xo="radar",IN=(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 Ov(de(this.getData,this),de(this.getRawData,this))},e.prototype.getInitialData=function(r,n){return Su(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=__(this,r);return ai("section",{header:u,sortBlocks:!0,blocks:$(s,function(c){var h=a.get(a.mapDimension(c.dim),r);return ai("nameValue",{markerType:"subItem",markerColor:f,name:c.name,value:h,sortParam:h})})})},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."+Xo,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})(ut),PN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Xo,r}return e.prototype.render=function(r,n,i){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=this._data;function u(h,v){var d=h.getItemVisual(v,"symbol")||"circle";if(d!=="none"){var g=x_(h.getItemVisual(v,"symbolSize")),p=Mr(d,-1,-1,2,2),m=h.getItemVisual(v,"symbolRotate")||0;return p.attr({style:{strokeNoScale:!0},z2:100,scaleX:g[0]/2,scaleY:g[1]/2,rotation:m*Math.PI/180||0}),p}}function f(h,v,d,g,p,m){d.removeAll();for(var y=0;y<v.length-1;y++){var _=u(g,p);_&&(_.__dimIdx=y,h[y]?(_.setPosition(h[y]),qy[m?"initProps":"updateProps"](_,{x:v[y][0],y:v[y][1]},r,p)):_.setPosition(v[y]),d.add(_))}}function c(h){return $(h,function(v){return[a.cx,a.cy]})}s.diff(l).add(function(h){var v=s.getItemLayout(h);if(v){var d=new Ui,g=new sn,p={shape:{points:v}};d.shape.points=c(v),g.shape.points=c(v),Ue(d,p,r,h),Ue(g,p,r,h);var m=new De,y=new De;m.add(g),m.add(d),m.add(y),f(g.shape.points,v,y,s,h,!0),s.setItemGraphicEl(h,m)}}).update(function(h,v){var d=l.getItemGraphicEl(v),g=d.childAt(0),p=d.childAt(1),m=d.childAt(2),y={shape:{points:s.getItemLayout(h)}};y.shape.points&&(f(g.shape.points,y.shape.points,m,s,h,!1),Yi(p),Yi(g),Pe(g,y,r),Pe(p,y,r),s.setItemGraphicEl(h,d))}).remove(function(h){o.remove(l.getItemGraphicEl(h))}).execute(),s.eachItemGraphicEl(function(h,v){var d=s.getItemModel(v),g=h.childAt(0),p=h.childAt(1),m=h.childAt(2),y=s.getItemVisual(v,"style"),_=y.fill;o.add(h),g.useStyle(le(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),Vr(g,d,"lineStyle"),Vr(p,d,"areaStyle");var b=d.getModel("areaStyle"),S=b.isEmpty()&&b.parentModel.isEmpty();p.ignore=S,L(["emphasis","select","blur"],function(x){var C=d.getModel([x,"areaStyle"]),D=C.isEmpty()&&C.parentModel.isEmpty();p.ensureState(x).ignore=D&&S;var T=d.getModel([x,"lineStyle"]).getLineStyle();g.ensureState(x).style=T;var A=C.getAreaStyle();p.ensureState(x).style=A;var I=d.getModel([x,"itemStyle"]).getItemStyle();m.eachChild(function(M){M.ensureState(x).style=oe(I)})}),p.useStyle(le(d.getModel("areaStyle").getAreaStyle(),{fill:_,opacity:.7,decal:y.decal}));var w=d.getModel("emphasis");m.eachChild(function(x){if(x instanceof Et){var C=x.style;x.useStyle(z({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},y))}else x.useStyle(y),x.setColor(_),x.style.strokeNoScale=!0;var D=s.getStore().get(s.getDimensionIndex(x.__dimIdx),v);(D==null||isNaN(D))&&(D=""),jn(x,Qn(d),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:x.__dimIdx,defaultText:D,inheritColor:_,defaultOpacity:y.opacity})}),zr(h,w.get("focus"),w.get("blurScope"),w.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type=Xo,e})(et),qo=cw.value,Ko="radar",Ew=Ko,EN=Ko,kw=5;function Gu(t,e){return le({show:e},t)}var kN=(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"]),h=this.get("axisNameGap"),v=this.get("triggerEvent"),d=$(this.get("indicator")||[],function(g){g.max!=null&&g.max>0&&!g.min?g.min=0:g.min!=null&&g.min<0&&!g.max&&(g.max=0);var p=u;g.color!=null&&(p=le({color:g.color},u));var m=we(oe(g),{boundaryGap:r,splitNumber:n,clockwise:i,scale:a,axisLine:o,axisTick:s,axisLabel:l,name:g.text,showName:f,nameLocation:"end",nameGap:h,nameTextStyle:p,triggerEvent:v},!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 Ce(m,null,this.ecModel);return Xt(_,uw.prototype),_.mainType="radar",_.componentIndex=this.componentIndex,_.uid=_o("ec_radar"),_},this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type=Ew,e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:Y.color.axisLabel},boundaryGap:[0,0],splitNumber:kw,axisNameGap:15,scale:!1,shape:"polygon",axisLine:we({lineStyle:{color:Y.color.neutral20}},qo.axisLine),axisLabel:Gu(qo.axisLabel,!1),axisTick:Gu(qo.axisTick,!1),splitLine:Gu(qo.splitLine,!0),splitArea:Gu(qo.splitArea,!0),indicator:[]},e})(ye),RN=(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 Ur(s.model,n,{axisName:l,position:[i.cx,i.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});L(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"),h=l.get("color"),v=u.get("color"),d=W(h)?h:[h],g=W(v)?v:[v],p=[],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(),b=n.cx,S=n.cy,w=0;w<_.length;w++){if(f){var x=y(p,d,w);p[x].push(new ao({shape:{cx:b,cy:S,r:_[w].coord}}))}if(c&&w<_.length-1){var x=y(m,g,w);m[x].push(new gl({shape:{cx:b,cy:S,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)})}),T=[],w=0;w<=C;w++){for(var A=[],I=0;I<i.length;I++)A.push(D[I][w]);if(A[0]&&A.push(A[0].slice()),f){var x=y(p,d,w);p[x].push(new sn({shape:{points:A}}))}if(c&&T){var x=y(m,g,w-1);m[x].push(new Ui({shape:{points:A.concat(T)}}))}T=A.slice().reverse()}var M=l.getLineStyle(),P=u.getAreaStyle();L(m,function(E,k){this.group.add(ch(E,{style:le({stroke:"none",fill:g[k%g.length]},P),silent:!0}))},this),L(p,function(E,k){this.group.add(ch(E,{style:le({fill:"none",stroke:d[k%d.length]},M),silent:!0}))},this)},e.type="radar",e})(Tt),ON=(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})(Ab),NN=(function(){function t(e,r,n){this.type=Ko,this.dimensions=[],this._model=e,this._indicatorAxes=$(e.getIndicatorModels(),function(i,a){var o="indicator_"+a,s=new ON(o,new pn);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=ta(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;L(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=eu(i.get("splitNumber"),kw),o=new pn;o.setExtent(0,a),o.setConfig({interval:1}),L(n,function(s){qb(s,Ub),pw(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(Ew,function(i){var a=new t(i,e,r);n.push(a),i.coordinateSystem=a}),e.eachSeriesByType(EN,function(i){if(i.get("coordinateSystem")===Ko){var a=i.coordinateSystem=n[i.get("radarIndex")||0];a&&L(a.getIndicatorAxes(),function(o){Sv(o,i,Ko)})}}),n},t.dimensions=[],t})();function BN(t){t.registerCoordinateSystem("radar",NN),t.registerComponentModel(kN),t.registerComponentView(RN),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=Vc(Xo,zN);function zN(t){t.eachSeriesByType(Xo,function(e){var r=e.getData(),n=[],i=e.coordinateSystem;if(i){var a=i.getIndicatorAxes();L(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]=Rw(f)?f:Ow(i)})}),r.each(function(o){var s=cg(n[o],function(l){return Rw(l)})||Ow(i);n[o].push(s.slice()),r.setItemLayout(o,n[o])})}})}function Rw(t){return!isNaN(t[0])&&!isNaN(t[1])}function Ow(t){return[t.cx,t.cy]}function VN(t){or(BN),t.registerChartView(PN),t.registerSeriesModel(IN),t.registerLayout(FN),t.registerProcessor(Rv("radar")),t.registerPreprocessor(LN)}var GN=(function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t})(),HN=(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 GN},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 UN(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 Hu(t,e){var r=t==null?"":t+"";return e&&(q(e)?r=e.replace("{value}",r):ee(e)&&(r=e(t))),r}var WN=(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=UN(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"),h=c.get("roundCap"),v=h?mu:Ar,d=c.get("show"),g=c.getModel("lineStyle"),p=g.get("width"),m=[u,f];Ac(m,!l),u=m[0],f=m[1];for(var y=f-u,_=u,b=[],S=0;d&&S<a.length;S++){var w=Math.min(Math.max(a[S][0],0),1);f=u+y*w;var x=new v({shape:{startAngle:_,endAngle:f,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-p,r:o.r},silent:!0});x.setStyle({fill:a[S][1]}),x.setStyle(g.getLineStyle(["color","width"])),b.push(x),_=f}b.reverse(),L(b,function(D){return s.add(D)});var C=function(D){if(D<=0)return a[0][1];var T;for(T=0;T<a.length;T++)if(a[T][0]>=D&&(T===0?0:a[T-1][0])<D)return a[T][1];return a[T-1][1]};this._renderTicks(r,n,i,C,o,u,f,l,p),this._renderTitleAndDetail(r,n,i,C,o),this._renderAnchor(r,o),this._renderPointer(r,n,i,C,o,u,f,l,p)},e.prototype._renderTicks=function(r,n,i,a,o,s,l,u,f){for(var c=this.group,h=o.cx,v=o.cy,d=o.r,g=+r.get("min"),p=+r.get("max"),m=r.getModel("splitLine"),y=r.getModel("axisTick"),_=r.getModel("axisLabel"),b=r.get("splitNumber"),S=y.get("splitNumber"),w=Q(m.get("length"),d),x=Q(y.get("length"),d),C=s,D=(l-s)/b,T=D/S,A=m.getModel("lineStyle").getLineStyle(),I=y.getModel("lineStyle").getLineStyle(),M=m.get("distance"),P,E,k=0;k<=b;k++){if(P=Math.cos(C),E=Math.sin(C),m.get("show")){var O=M?M+f:f,R=new Dr({shape:{x1:P*(d-O)+h,y1:E*(d-O)+v,x2:P*(d-w-O)+h,y2:E*(d-w-O)+v},style:A,silent:!0});A.stroke==="auto"&&R.setStyle({stroke:a(k/b)}),c.add(R)}if(_.get("show")){var O=_.get("distance")+M,N=Hu(ve(k*(p-g)/b+g,vD),_.get("formatter")),F=a(k/b),B=P*(d-w-O)+h,G=E*(d-w-O)+v,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 Ie({style:zt(_,{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 Ie({style:zt(_,{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!==b){var O=y.get("distance");O=O?O+f:f;for(var Z=0;Z<=S;Z++){P=Math.cos(C),E=Math.sin(C);var ae=new Dr({shape:{x1:P*(d-O)+h,y1:E*(d-O)+v,x2:P*(d-x-O)+h,y2:E*(d-x-O)+v},silent:!0,style:I});I.stroke==="auto"&&ae.setStyle({stroke:a((k+Z/S)/b)}),c.add(ae),C+=T}C-=T}else C+=D}},e.prototype._renderPointer=function(r,n,i,a,o,s,l,u,f){var c=this.group,h=this._data,v=this._progressEls,d=[],g=r.get(["pointer","show"]),p=r.getModel("progress"),m=p.get("show"),y=r.getData(),_=y.mapDimension("value"),b=+r.get("min"),S=+r.get("max"),w=[b,S],x=[s,l];function C(T,A){var I=y.getItemModel(T),M=I.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=Mr(k,R-P/2,N-E,P,E,null,F):B=new HN({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(T,A){var I=p.get("roundCap"),M=I?mu:Ar,P=p.get("overlap"),E=P?p.get("width"):f/y.count(),k=P?o.r-E:o.r-(T+1)*E,O=P?o.r:o.r-T*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=kt(y.get(_,T),[b,S],[100,0],!0)),R}(m||g)&&(y.diff(h).add(function(T){var A=y.get(_,T);if(g){var I=C(T,s);Ue(I,{rotation:-((isNaN(+A)?x[0]:kt(A,w,x,!0))+Math.PI/2)},r),c.add(I),y.setItemGraphicEl(T,I)}if(m){var M=D(T,s),P=p.get("clip");Ue(M,{shape:{endAngle:kt(A,w,x,P)}},r),c.add(M),Hc(r.seriesIndex,y.dataType,T,M),d[T]=M}}).update(function(T,A){var I=y.get(_,T);if(g){var M=h.getItemGraphicEl(A),P=M?M.rotation:s,E=C(T,P);E.rotation=P,Pe(E,{rotation:-((isNaN(+I)?x[0]:kt(I,w,x,!0))+Math.PI/2)},r),c.add(E),y.setItemGraphicEl(T,E)}if(m){var k=v[A],O=k?k.shape.endAngle:s,R=D(T,O),N=p.get("clip");Pe(R,{shape:{endAngle:kt(I,w,x,N)}},r),c.add(R),Hc(r.seriesIndex,y.dataType,T,R),d[T]=R}}).execute(),y.each(function(T){var A=y.getItemModel(T),I=A.getModel("emphasis"),M=I.get("focus"),P=I.get("blurScope"),E=I.get("disabled"),k=a(kt(y.get(_,T),w,[0,1],!0));if(g){var O=y.getItemGraphicEl(T),R=y.getItemVisual(T,"style"),N=R.fill;if(O instanceof Et){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,Vr(O,A),zr(O,M,P,E)}if(m){var B=d[T];B.useStyle(y.getItemVisual(T,"style")),B.setStyle(A.getModel(["progress","itemStyle"]).getItemStyle()),B.style.fill==="auto"&&B.setStyle("fill",k),B.z2EmphasisLift=0,Vr(B,A),zr(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=Mr(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"),h=new De,v=[],d=[],g=r.isAnimationEnabled(),p=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){v[m]=new Ie({silent:!0}),d[m]=new Ie({silent:!0})}).update(function(m,y){v[m]=s._titleEls[y],d[m]=s._detailEls[y]}).execute(),l.each(function(m){var y=l.getItemModel(m),_=l.get(u,m),b=new De,S=a(kt(_,[f,c],[0,1],!0)),w=y.getModel("title");if(w.get("show")){var x=w.get("offsetCenter"),C=o.cx+Q(x[0],o.r),D=o.cy+Q(x[1],o.r),T=v[m];T.attr({z2:p?0:2,style:zt(w,{x:C,y:D,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:S})}),b.add(T)}var A=y.getModel("detail");if(A.get("show")){var I=A.get("offsetCenter"),M=o.cx+Q(I[0],o.r),P=o.cy+Q(I[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:S,T=d[m],R=A.get("formatter");T.attr({z2:p?0:2,style:zt(A,{x:M,y:P,text:Hu(_,R),width:isNaN(E)?null:E,height:isNaN(k)?null:k,align:"center",verticalAlign:"middle"},{inheritColor:O})}),t0(T,{normal:A},_,function(F){return Hu(F,R)}),g&&dL(T,m,l,r,{getFormattedLabel:function(F,B,G,X,H,Z){return Hu(Z?Z.interpolatedValue:_,R)}}),b.add(T)}h.add(b)}),this.group.add(h),this._titleEls=v,this._detailEls=d},e.type="gauge",e})(et),YN=(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 Su(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})(ut);function $N(t){t.registerChartView(WN),t.registerSeriesModel(YN)}var ma="funnel",XN=(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 Ov(de(this.getData,this),de(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.getInitialData=function(r,n){return Su(this,{coordDimensions:["value"],encodeDefaulter:Ne(o0,this)})},e.prototype._defaultLabelLine=function(r){nl(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."+ma,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})(ut),qN=["itemStyle","opacity"],KN=(function(t){V(e,t);function e(r,n){var i=t.call(this)||this,a=i,o=new sn,s=new Ie;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(qN);f=f??1,i||Yi(a),a.useStyle(r.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,Ue(a,{style:{opacity:f}},o,n)):Pe(a,{style:{opacity:f},shape:{points:l.points}},o,n),Vr(a,s),this._updateLabel(r,n),zr(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"),h=c.fill;jn(o,Qn(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:c.opacity,defaultText:r.getName(n)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}});var v=l.getModel("label"),d=v.get("color"),g=d==="inherit"?h:null;i.setTextConfig({local:!0,inside:!!f.inside,insideStroke:g,outsideFill:g});var p=f.linePoints;a.setShape({points:p}),i.textGuideLineConfig={anchor:p?new re(p[0][0],p[0][1]):null},Pe(o,{style:{x:f.x,y:f.y}},s,n),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),gS(i,mS(l),{stroke:h})},e})(Ui),ZN=(function(t){V(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=ma,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 KN(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);Wi(u,r,l)}).execute(),this._data=a},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type=ma,e})(et);function jN(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 QN(t){var e=t.hostModel,r=Nw(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,h,v,d;if(f)o==="insideLeft"?(h=(u[0][0]+u[3][0])/2+5,v=(u[0][1]+u[3][1])/2,c="left"):o==="insideRight"?(h=(u[1][0]+u[2][0])/2-5,v=(u[1][1]+u[2][1])/2,c="right"):(h=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,v=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,c="center"),d=[[h,v],[h,v]];else{var g=void 0,p=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"?(g=(u[3][0]+u[0][0])/2,p=(u[3][1]+u[0][1])/2,m=g-_,h=m-5,c="right"):o==="right"?(g=(u[1][0]+u[2][0])/2,p=(u[1][1]+u[2][1])/2,m=g+_,h=m+5,c="left"):o==="top"?(g=(u[3][0]+u[0][0])/2,p=(u[3][1]+u[0][1])/2,y=p-_,v=y-5,c="center"):o==="bottom"?(g=(u[1][0]+u[2][0])/2,p=(u[1][1]+u[2][1])/2,y=p+_,v=y+5,c="center"):o==="rightTop"?(g=r?u[3][0]:u[1][0],p=r?u[3][1]:u[1][1],r?(y=p-_,v=y-5,c="center"):(m=g+_,h=m+5,c="top")):o==="rightBottom"?(g=u[2][0],p=u[2][1],r?(y=p+_,v=y+5,c="center"):(m=g+_,h=m+5,c="bottom")):o==="leftTop"?(g=u[0][0],p=r?u[0][1]:u[1][1],r?(y=p-_,v=y-5,c="center"):(m=g-_,h=m-5,c="right")):o==="leftBottom"?(g=r?u[1][0]:u[3][0],p=r?u[1][1]:u[2][1],r?(y=p+_,v=y+5,c="center"):(m=g-_,h=m-5,c="right")):(g=(u[1][0]+u[2][0])/2,p=(u[1][1]+u[2][1])/2,r?(y=p+_,v=y+5,c="center"):(m=g+_,h=m+5,c="left")),r?(m=g,h=m):(y=p,v=y),d=[[g,p],[m,y]]}l.label={linePoints:d,x:h,y:v,verticalAlign:"middle",textAlign:c,inside:f}})}var JN=Vc(ma,eB);function eB(t,e){t.eachSeriesByType(ma,function(r){var n=r.getData(),i=n.mapDimension("value"),a=r.get("sort"),o=ta(r,e),s=Gr(r.getBoxLayoutParams(),o.refContainer),l=Nw(r),u=s.width,f=s.height,c=jN(n,a),h=s.x,v=s.y,d=l?[Q(r.get("minSize"),f),Q(r.get("maxSize"),f)]:[Q(r.get("minSize"),u),Q(r.get("maxSize"),u)],g=n.getDataExtent(i),p=r.get("min"),m=r.get("max");p==null&&(p=Math.min(g[0],0)),m==null&&(m=g[1]);var y=r.get("funnelAlign"),_=r.get("gap"),b=l?u:f,S=(b-_*(n.count()-1))/n.count(),w=function(E,k){if(l){var O=n.get(i,E)||0,R=kt(O,[p,m],d,!0),N=void 0;switch(y){case"top":N=v;break;case"center":N=v+(f-R)/2;break;case"bottom":N=v+(f-R);break}return[[k,N],[k,N+R]]}var F=n.get(i,E)||0,B=kt(F,[p,m],d,!0),G;switch(y){case"left":G=h;break;case"center":G=h+(u-B)/2;break;case"right":G=h+u-B;break}return[[G,k],[G+B,k]]};a==="ascending"&&(S=-S,_=-_,l?h+=u:v+=f,c=c.reverse());for(var x=0;x<c.length;x++){var C=c[x],D=c[x+1],T=n.getItemModel(C);if(l){var A=T.get(["itemStyle","width"]);A==null?A=S:(A=Q(A,u),a==="ascending"&&(A=-A));var I=w(C,h),M=w(D,h+A);h+=A+_,n.setItemLayout(C,{points:I.concat(M.slice().reverse())})}else{var P=T.get(["itemStyle","height"]);P==null?P=S:(P=Q(P,f),a==="ascending"&&(P=-P));var I=w(C,v),M=w(D,v+P);v+=P+_,n.setItemLayout(C,{points:I.concat(M.slice().reverse())})}}QN(n)})}function Nw(t){return t.get("orient")==="horizontal"}function tB(t){t.registerChartView(ZN),t.registerSeriesModel(XN),t.registerLayout(JN),t.registerProcessor(Rv(ma))}var hi=be(),Bw=oe,kd=de,rB=(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 De,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),n.getZr().add(s);else{var h=Ne(Fw,r,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,r)}Gw(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&&oa(i).w>s)return!0;if(o){var l=Id(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=hi(e).pointerEl=new qy[a.type](Bw(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,i){if(r.label){var a=hi(e).labelEl=new Ie(Bw(r.label));e.add(a),Vw(a,i)}},t.prototype.updatePointerEl=function(e,r,n){var i=hi(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=hi(e).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),Vw(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=vh(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){CS(u.event)},onmousedown:kd(this._onHandleDragMove,this,0,0),drift:kd(this._onHandleDragMove,this),ondragend:kd(this._onHandleDragEnd,this)}),n.add(i)),Gw(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){Fw(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Rd(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(Rd(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Rd(i)),hi(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),Pv(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 Fw(t,e,r,n){zw(hi(r).lastProp,n)||(hi(r).lastProp=n,e?Pe(r,n,t):(r.stopAnimation(),r.attr(n)))}function zw(t,e){if(j(t)&&j(e)){var r=!0;return L(e,function(n,i){r=r&&zw(t[i],n)}),!!r}else return t===e}function Vw(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Rd(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Gw(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 nB(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 iB(t,e,r,n,i){var a=r.get("value"),o=Hw(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Ul(s.get("padding")||0),u=s.getFont(),f=Dg(o,u),c=i.position,h=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=i.align;d==="right"&&(c[0]-=h),d==="center"&&(c[0]-=h/2);var g=i.verticalAlign;g==="bottom"&&(c[1]-=v),g==="middle"&&(c[1]-=v/2),aB(c,h,v,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:zt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}function aB(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 Hw(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:au(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};L(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 Uw(t,e,r){var n=gr();return Pf(n,n,r.rotation),If(n,n,r.position),hh([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function oB(t,e,r,n,i,a){var o=Ur.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),iB(e,n,i,a,{position:Uw(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function sB(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function lB(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function uB(t,e,r){return oa(t,{fromStat:{sers:$(e,function(n){return r.getSeriesByIndex(n.seriesIndex)})},min:1}).w}function fB(t,e,r){return[ge(je(e[0],e[1]),t-r/2),je(t+r/2,ge(e[0],e[1]))]}var cB=(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(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var v=nB(a),d=hB[u](s,h,f,c,a.get("seriesDataIndices"),a.ecModel);d.style=v,r.graphicKey=d.type,r.pointer=d}var g=vu(l.getRect(),i);oB(n,r,g,i,a,o)},e.prototype.getHandleTransform=function(r,n,i){var a=vu(n.axis.grid.getRect(),n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=Uw(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]=je(l[1],c[f]),c[f]=ge(l[0],c[f]);var h=(u[1]+u[0])/2,v=[h,h];v[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:v,tooltipOption:d[f]}},e})(rB);function Ww(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var hB={line:function(t,e,r,n){var i=sB([e,n[0]],[e,n[1]],Yw(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,r,n,i,a){var o=uB(t,i,a),s=n[1]-n[0],l=fB(e,r,o),u=l[0],f=l[1];return{type:"Rect",shape:lB([u,n[0]],[f-u,s],Yw(t))}}};function Yw(t){return t.dim==="x"?0:1}var vB=(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),qr=be(),dB=L;function $w(t,e,r){if(!ie.node){var n=e.getZr();qr(n).records||(qr(n).records={}),pB(n,e);var i=qr(n).records[t]||(qr(n).records[t]={});i.handler=r}}function pB(t,e){if(qr(t).initialized)return;qr(t).initialized=!0,r("click",Ne(Od,"click")),r("mousemove",Ne(Od,"mousemove")),r("mousewheel",Ne(Od,"mousewheel")),r("globalout",mB);function r(n,i){t.on(n,function(a){var o=yB(e);dB(qr(t).records,function(s){s&&i(s,a,o.dispatchAction)}),gB(o.pendings,e)})}}function gB(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 mB(t,e,r){t.handler("leave",null,r)}function Od(t,e,r,n){e.handler(t,r,n)}function yB(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 Nd(t,e){if(!ie.node){var r=e.getZr(),n=(qr(r).records||{})[t];n&&(qr(r).records[t]=null)}}var _B=(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";$w("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){Nd("axisPointer",n)},e.prototype.dispose=function(r,n){Nd("axisPointer",n)},e.type="axisPointer",e})(Tt);function Xw(t,e){var r=[],n=t.seriesIndex,i;if(n==null||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Yn(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,h=u.dim,v=c==="x"||c==="radius"?1:0,d=a.mapDimension(h),g=[];g[v]=a.get(d,o),g[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(a.getValues($(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),r=[p.x+p.width/2,p.y+p.height/2]}return{point:r,el:s}}var qw=be();function bB(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){Uu(i)&&(i=Xw({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=Uu(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||Uu(i),h={},v={},d={list:[],map:{}},g={showPointer:Ne(wB,v),showTooltip:Ne(xB,d)};L(s.coordSysMap,function(m,y){var _=l||m.containPoint(i);L(s.coordSysAxesInfo[y],function(b,S){var w=b.axis,x=DB(u,b);if(!c&&_&&(!u||x)){var C=x&&x.value;C==null&&!l&&(C=w.pointToData(i)),C!=null&&Kw(b,C,g,!1,h)}})});var p={};return L(f,function(m,y){var _=m.linkGroup;_&&!v[y]&&L(_.axesInfo,function(b,S){var w=v[S];if(b!==m&&w){var x=w.value;_.mapper&&(x=m.axis.scale.parse(_.mapper(x,Zw(b),Zw(m)))),p[m.key]=x}})}),L(p,function(m,y){Kw(f[y],m,g,!0,h)}),TB(v,f,h),CB(d,i,t,o),AB(f,o,r),h}}function Kw(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=SB(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 SB(t,e){var r=e.axis,n=r.dim,i=t,a=[],o=Number.MAX_VALUE,s=-1;return L(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,t,r);h=v.dataIndices,c=v.nestestValue}else{if(h=l.indicesOfNearest(n,f[0],t,r.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(Rt(c)){var d=t-c,g=Math.abs(d);g<=o&&((g<o||d>=0&&s<0)&&(o=g,s=d,i=c,a.length=0),L(h,function(p){a.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:i}}function wB(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function xB(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=$o(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 TB(t,e,r){var n=r.axesInfo=[];L(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 CB(t,e,r,n){if(Uu(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 AB(t,e,r){var n=r.getZr(),i="axisPointerLastHighlights",a=qw(n)[i]||{},o=qw(n)[i]={};L(t,function(f,c){var h=f.axisPointerModel.option;h.status==="show"&&f.triggerEmphasis&&L(h.seriesDataIndices,function(v){o[v.seriesIndex+"|"+v.dataIndex]=v})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}L(a,function(f,c){!o[c]&&l.push(u(f))}),L(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 DB(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 Zw(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 Uu(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function jw(t){Dw.registerAxisPointerClass("CartesianAxisPointer",cB),t.registerComponentModel(vB),t.registerComponentView(_B),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=pN(e,r)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},bB)}function MB(t){or(Pw),or(jw)}function LB(t,e){var r=Ul(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var i=new Le({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 IB=(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 Qw(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function Jw(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 ex=Jw(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),PB=Jw(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function tx(t,e){if(!t)return e;e=t_(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function EB(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?r[e]:null}var kB=tx(PB,"transition"),Bd=tx(ex,"transform"),RB="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ie.transform3dSupported?"will-change:transform;":"");function OB(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function NB(t,e,r){if(!q(r)||r==="inside")return"";var n=t.get("backgroundColor"),i=t.get("borderWidth");e=ni(e);var a=OB(r),o=Math.max(Math.round(i)*1.5,6),s="",l=Bd+":",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,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-c)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=e+" solid "+i+"px;",g=["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="'+g.join("")+'"></div>'}function BB(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?""+Bd+i:",left"+i+",top"+i)),kB+":"+a}function rx(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;"+Bd+":"+o+";":[["top",0],["left",0],[ex,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=K(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),L(["decoration","align"],function(u){var f=t.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function zB(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"),h=b_(t,"html"),v=u+"px "+f+"px "+s+"px "+l;return i.push("box-shadow:"+v),e&&a>0&&i.push(BB(a,r,n)),o&&i.push("background-color:"+o),L(["width","color","radius"],function(d){var g="border-"+d,p=t_(g),m=t.get(p);m!=null&&i.push(g+":"+m+(d==="color"?"":"px"))}),i.push(FB(c)),h!=null&&i.push("padding:"+Ul(h).join("px ")+"px"),i.join(";")+";"}function nx(t,e,r,n,i){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&vI(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 VB=(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):Ia(a)?a:ee(a)&&a(e.getDom()));nx(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();Ut(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=EB(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=RB+zB(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+rx(a[0],a[1],!0)+("border-color:"+ni(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"&&!Qw(n)&&(s=NB(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++)Ia(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(nx(n,this._zr,this._container,e,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=rx(n[0],n[1]);L(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;dI(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})(),GB=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),ax(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)&>(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Ie({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:b_(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),L(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),L(["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=ix(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;ax(i,this._zr,e,r),e=i[0],r=i[1];var a=n.style,o=Sn(a.borderWidth||0),s=ix(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 ix(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 ax(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var HB=new Le({shape:{x:-1,y:-1,width:2,height:2}}),UB=(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=HD(i.get("renderMode"));this._tooltipContent=a==="richText"?new GB(n):new VB(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"):Pv(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");$w("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=ox(a,i);this._ticket="";var s=a.dataByCoordSys,l=XB(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=HB;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=Xw(a,n),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,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(ox(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=Zo([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;Wo(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=Zo([n.tooltipOption],a),l=this._renderMode,u=[],f=ai("section",{blocks:[],noHeader:!0}),c=[],h=new tv;L(r,function(y){L(y.dataByAxis,function(_){var b=i.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value,w=b.axis,x=w.scale.parse(S);if(!(!b||S==null)){var C=Hw(S,w,i,_.seriesDataIndices,_.valueLabelOpt),D=ai("section",{header:C,noHeader:!dr(C),sortBlocks:!0,blocks:[]});f.blocks.push(D),L(_.seriesDataIndices,function(T){var A=i.getSeriesByIndex(T.seriesIndex),I=T.dataIndexInside,M=A.getDataParams(I);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=au(b.axis,{value:x}),M.axisValueLabel=C,M.marker=h.makeTooltipMarker("item",ni(M.color),l);var P=o_(A.formatTooltip(I,!0,null)),E=P.frag;if(E){var k=Zo([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 v=n.position,d=s.get("order"),g=m_(f,h,l,d,i.get("useUTC"),s.get("textStyle"));g&&c.unshift(g);var p=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=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
|
|
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
|
-
`:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return
|
|
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,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}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,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}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}));
|
|
16
|
+
`:"<br/>",m=c.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],v,null,h)})},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,h=u.getData(c),v=this._renderMode,d=r.positionDefault,g=Zo([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var m=u.getDataParams(f,c),y=new tv;m.marker=y.makeTooltipMarker("item",ni(m.color),v);var _=o_(u.formatTooltip(f,!1,c)),b=g.get("order"),S=g.get("valueFormatter"),w=_.frag,x=w?m_(S?z({valueFormatter:S},w):w,y,v,b,a.get("useUTC"),g.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,x,m,C,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:h.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=st(l.content));var c=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&c.push(h),c.push({formatter:l.content});var v=r.positionDefault,d=Zo(c,this._tooltipModel,v?{position:v}:null),g=d.get("content"),p=Math.random()+"",m=new tv;this._showOrMove(d,function(){var y=oe(d.get("formatterParams")||{});this._showTooltipContent(d,g,y,p,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 h=r.get("formatter");l=l||r.get("position");var v=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),g=d.color;if(h)if(q(h)){var p=r.ecModel.get("useUTC"),m=W(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=h,y&&(v=Hl(m.axisValue,v,p)),v=n_(v,i,!0)}else if(ee(h)){var _=de(function(b,S){b===this._ticket&&(c.setContent(S,f,r,g,l),this._updatePosition(r,l,o,s,c,i,u))},this);this._ticket=a,v=h(i,a,_)}else v=h;c.setContent(v,f,r,g,l),c.show(r,g),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(),h=r.get("align"),v=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 g=n;g.width=c[0],g.height=c[1];var p=Gr(g,{width:u,height:f});i=p.x,a=p.y,h=null,v=null}else if(q(n)&&l){var m=$B(n,d,c,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=WB(i,a,o,u,f,h?null:20,v?null:20);i=m[0],a=m[1]}if(h&&(i-=sx(h)?c[0]/2:h==="right"?c[0]:0),v&&(a-=sx(v)?c[1]/2:v==="bottom"?c[1]:0),Qw(r)){var m=YB(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&&L(i,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&L(u,function(h,v){var d=c[v]||{},g=h.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&g.length===p.length,o&&L(g,function(m,y){var _=p[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&L(h.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],b=a[y];_&&b&&b.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()||(Pv(this,"_updatePosition"),this._tooltipContent.dispose(),Nd("itemTooltip",n),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(Tt);function Zo(t,e,r){var n=e.ecModel,i;r?(i=new Ce(r,n,n),i=new Ce(e.option,i,n)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof Ce&&(o=o.get("tooltip",!0)),q(o)&&(o={formatter:o}),o&&(i=new Ce(o,i,n)))}return i}function ox(t,e){return t.dispatchAction||de(e.dispatchAction,e)}function WB(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 YB(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 $B(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 sx(t){return t==="center"||t==="middle"}function XB(t,e,r){var n=Bc(t).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=no(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 qB(t){or(jw),t.registerComponentModel(IB),t.registerComponentView(UB),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},$e),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},$e)}var KB=(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),ZB=(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=K(r.get("textBaseline"),r.get("textVerticalAlign")),f=new Ie({style:zt(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=r.get("subtext"),v=new Ie({style:zt(s,{text:h,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),g=r.get("sublink"),p=r.get("triggerEvent",!0);f.silent=!d&&!p,v.silent=!g&&!p,d&&f.on("click",function(){i_(d,"_"+r.get("target"))}),g&&v.on("click",function(){i_(g,"_"+r.get("subtarget"))}),ue(f).eventData=ue(v).eventData=p?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),h&&a.add(v);var m=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=ta(r,i),b=Gr(y,_.refContainer,r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?b.x+=b.width:l==="center"&&(b.x+=b.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?b.y+=b.height:u==="middle"&&(b.y+=b.height/2),u=u||"top"),a.x=b.x,a.y=b.y,a.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),v.setStyle(S),m=a.getBoundingRect();var w=b.margin,x=r.getItemStyle(["color","opacity"]);x.fill=r.get("backgroundColor");var C=new Le({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:x,subPixelOptimize:!0,silent:!0});a.add(C)}},e.type="title",e})(Tt);function jB(t){t.registerComponentModel(KB),t.registerComponentView(ZB)}var QB=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"])}},Fd=(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)&&L(n,function(a,o){q(a)&&(a={type:a}),n[o]=we(a,QB(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,h=c.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(h)),h.length?n=n.concat(h):f=!0}else f=!0;f&&Oc(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 Ce(l,this,this.ecModel))},this);this._data=Ye(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;L(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;L(r,function(i){n[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;L(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),ya=Ne,zd=L,Wu=De,lx=(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 Wu),this.group.add(this._selectorGroup=new Wu),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=ta(r,i).refContainer,c=r.getBoxLayoutParams(),h=r.get("padding"),v=Gr(c,f,h),d=this.layoutInner(r,o,v,a,l,u),g=Gr(le({width:d.width,height:d.height},c),f,h);this.group.x=g.x-d.x,this.group.y=g.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=LB(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"),h=n.get("triggerEvent"),v=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&v.push(d.id)}),zd(n.getData(),function(d,g){var p=this,m=d.get("name");if(!this.newlineDisabled&&(m===""||m===`
|
|
17
|
+
`)){var y=new Wu;y.newline=!0,u.add(y);return}var _=i.getSeriesByName(m)[0];if(!f.get(m))if(_){var b=_.getData(),S=b.getVisual("legendLineStyle")||{},w=b.getVisual("legendIcon"),x=b.getVisual("style"),C=this._createItem(_,m,g,d,n,r,S,x,w,c,a);C.on("click",ya(ux,m,null,a,v)).on("mouseover",ya(Vd,_.name,null,a,v)).on("mouseout",ya(Gd,_.name,null,a,v)),i.ssr&&C.eachChild(function(D){var T=ue(D);T.seriesIndex=_.seriesIndex,T.dataIndex=g,T.ssrType="legend"}),h&&C.eachChild(function(D){p.packEventData(D,n,_,g,m)}),f.set(m,!0)}else i.eachRawSeries(function(D){var T=this;if(!f.get(m)&&D.legendVisualProvider){var A=D.legendVisualProvider;if(!A.containName(m))return;var I=A.indexOfName(m),M=A.getItemVisual(I,"style"),P=A.getItemVisual(I,"legendIcon"),E=Kt(M.fill);E&&E[3]===0&&(E[3]=.2,M=z(z({},M),{fill:Ua(E,"rgba")}));var k=this._createItem(D,m,g,d,n,r,{},M,P,c,a);k.on("click",ya(ux,null,m,a,v)).on("mouseover",ya(Vd,null,m,a,v)).on("mouseout",ya(Gd,null,m,a,v)),i.ssr&&k.eachChild(function(O){var R=ue(O);R.seriesIndex=D.seriesIndex,R.dataIndex=g,R.ssrType="legend"}),h&&k.eachChild(function(O){T.packEventData(O,n,D,g,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();zd(r,function(u){var f=u.type,c=new Ie({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 h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);jn(c,{normal:h,emphasis:v},{defaultText:u.title}),Qc(c)})},e.prototype._createItem=function(r,n,i,a,o,s,l,u,f,c,h){var v=r.visualDrawType,d=o.get("itemWidth"),g=o.get("itemHeight"),p=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var b=JB(f,a,l,u,v,p,h),S=new Wu,w=a.getModel("textStyle");if(ee(r.getLegendIcon)&&(!_||_==="inherit"))S.add(r.getLegendIcon({itemWidth:d,itemHeight:g,icon:f,iconRotate:m,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}));else{var x=_==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;S.add(eF({itemWidth:d,itemHeight:g,icon:f,iconRotate:x,itemStyle:b.itemStyle,symbolKeepAspect:y}))}var C=s==="left"?d+5:-5,D=s,T=o.get("formatter"),A=n;q(T)&&T?A=T.replace("{name}",n??""):ee(T)&&(A=T(n));var I=p?w.getTextColor():a.get("inactiveColor");S.add(new Ie({style:zt(w,{text:A,x:C,y:g/2,fill:I,align:D,verticalAlign:"middle"},{inheritColor:I})}));var M=new Le({shape:S.getBoundingRect(),style:{fill:"transparent"}}),P=a.getModel("tooltip");return P.get("show")&&xl({el:M,componentModel:o,itemName:n,itemTooltipOption:P.option}),S.add(M),S.eachChild(function(E){E.silent=!0}),M.silent=!c,this.getContentGroup().add(S),Qc(S),S.__legendDataIndex=i,S},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();wo(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){wo("horizontal",u,r.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=r.get("selectorButtonGap",!0),g=r.getOrient().index,p=g===0?"width":"height",m=g===0?"height":"width",y=g===0?"y":"x";s==="end"?v[g]+=f[p]+d:c[g]+=h[p]+d,v[1-g]+=f[m]/2-h[m]/2,u.x=v[0],u.y=v[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[p]=f[p]+d+h[p],_[m]=Math.max(f[m],h[m]),_[y]=Math.min(0,h[y]+v[1-g]),_}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})(Tt);function JB(t,e,r,n,i,a,o){function s(p,m){p.lineWidth==="auto"&&(p.lineWidth=m.lineWidth>0?2:0),zd(p,function(y,_){p[_]==="inherit"&&(p[_]=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:ld(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 h=e.getModel("lineStyle"),v=h.getLineStyle();if(s(v,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!a){var d=e.get("inactiveBorderWidth"),g=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function eF(t){var e=t.icon||"roundRect",r=Mr(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 ux(t,e,r,n){Gd(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),Vd(t,e,r,n)}function Vd(t,e,r,n){r.usingTHL()||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function Gd(t,e,r,n){r.usingTHL()||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function jo(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),fx(s,i),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){L(i,function(l,u){s[l?"select":"unSelect"](u)}),fx(s,o)}),n?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function fx(t,e){var r=e||{};return L(t.getData(),function(n){var i=n.get("name");if(!(i===`
|
|
18
|
+
`||i==="")){var a=t.isSelected(i);it(r,i)?r[i]=r[i]&&a:r[i]=a}}),r}function tF(t){t.registerAction("legendToggleSelect","legendselectchanged",Ne(jo,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Ne(jo,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Ne(jo,"inverseSelect")),t.registerAction("legendSelect","legendselected",Ne(jo,"select")),t.registerAction("legendUnSelect","legendunselected",Ne(jo,"unSelect"))}var rF=Gc(nF);function nF(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 cx(t){t.registerComponentModel(Fd),t.registerComponentView(lx),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,rF),t.registerSubTypeDefaulter("legend",function(){return"plain"}),tF(t)}var iF=(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=Co(r);t.prototype.init.call(this,r,n,i),hx(this,r,a)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),hx(this,this.option,r)},e.type="legend.scroll",e.defaultOption=z0(Fd.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})(Fd);function hx(t,e,r){var n=t.getOrient(),i=[1,1];i[n.index]=0,cn(e,r,{type:"box",ignoreSize:!!i})}var vx=De,Hd=["width","height"],Ud=["x","y"],aF=(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 vx),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new vx)},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),h=W(c)?c:[c,c];d("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new Ie({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(g,p){var m=g+"DataIndex",y=vh(n.get("pageIcons",!0)[n.getOrient().name][p],{onclick:de(u._pageGo,u,m,n,a)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});y.name=g,f.add(y)}},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=Hd[u],c=Ud[u],h=Hd[1-u],v=Ud[1-u];o&&wo("horizontal",l,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),g=l.getBoundingRect(),p=[-g.x,-g.y],m=oe(i);o&&(m[f]=i[f]-g[f]-d);var y=this._layoutContentAndController(r,a,m,u,f,h,v,c);if(o){if(s==="end")p[u]+=y[f]+d;else{var _=g[f]+d;p[u]-=_,y[c]-=_}y[f]+=g[f]+d,p[1-u]+=y[v]+y[h]/2-g[h]/2,y[h]=Math.max(y[h],g[h]),y[v]=Math.min(y[v],g[v]+p[1-u]),l.x=p[0],l.y=p[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;wo(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),wo("horizontal",h,r.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=h.getBoundingRect(),g=this._showController=v[o]>i[o],p=[-v.x,-v.y];n||(p[a]=f[u]);var m=[0,0],y=[-d.x,-d.y],_=K(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(g){var b=r.get("pageButtonPosition",!0);b==="end"?y[a]+=i[o]-d[o]:m[a]+=d[o]+_}y[1-a]+=v[s]/2-d[s]/2,f.setPosition(p),c.setPosition(m),h.setPosition(y);var S={x:0,y:0};if(S[o]=g?i[o]:v[o],S[s]=Math.max(v[s],d[s]),S[l]=Math.min(0,d[l]+y[1-a]),c.__rectSize=i[o],g){var w={x:0,y:0};w[o]=Math.max(i[o]-d[o]-_,0),w[s]=S[s],c.setClipPath(new Le({shape:w})),c.__rectSize=w[o]}else h.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(r);return x.pageIndex!=null&&Pe(f,{x:x.contentPosition[0],y:x.contentPosition[1]},g?r:null),this._updatePageInfoView(r,x),S},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;L(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,v=i.childOfName(f);v&&(v.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),v.cursor=h?"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=Hd[o],l=Ud[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],h=f.length,v=h?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var g=b(c);d.contentPosition[o]=-g.s;for(var p=u+1,m=g,y=g,_=null;p<=h;++p)_=b(f[p]),(!_&&y.e>m.s+a||_&&!S(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=_;for(var p=u-1,m=g,y=g,_=null;p>=-1;--p)_=b(f[p]),(!_||!S(y,_.s))&&m.i<y.i&&(y=m,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=m.i),++d.pageCount,++d.pageIndex),m=_;return d;function b(w){if(w){var x=w.getBoundingRect(),C=x[l]+w[l];return{s:C,e:C+x[s],i:w.__legendDataIndex}}}function S(w,x){return w.e>=x&&w.s<=x+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})(lx);function oF(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 sF(t){or(cx),t.registerComponentModel(iF),t.registerComponentView(aF),oF(t)}function lF(t){or(cx),or(sF)}var uF=(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 u_(this),f_(this)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),f_(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Qt},e})(ye),fF=(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})(Tt);function cF(t){t.registerComponentModel(uF),t.registerComponentView(fF)}var Wd=Math.sin,Yd=Math.cos,dx=Math.PI,vi=Math.PI*2,hF=180/dx,px=(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),h=Jr(c-vi)||(f?u>=vi:-u>=vi),v=u>0?u%vi:u%vi+vi,d=!1;h?d=!0:Jr(c)?d=!1:d=v>=dx==!!f;var g=e+n*Yd(o),p=r+i*Wd(o);this._start&&this._add("M",g,p);var m=Math.round(a*hF);if(h){var y=1/this._p,_=(f?1:-1)*(vi-y);this._add("A",n,i,m,1,+f,e+n*Yd(o+_),r+i*Wd(o+_)),y>.01&&this._add("A",n,i,m,0,+f,g,p)}else{var b=e+n*Yd(s),S=r+i*Wd(s);this._add("A",n,i,m,+d,+f,b,S)}},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,h=1;h<arguments.length;h++){var v=arguments[h];if(isNaN(v)){this._invalid=!0;return}f.push(Math.round(v*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})(),$d="none",vF=Math.round;function dF(t){var e=t.fill;return e!=null&&e!==$d}function pF(t){var e=t.stroke;return e!=null&&e!==$d}var Xd=["lineCap","miterLimit","lineJoin"],gF=$(Xd,function(t){return"stroke-"+t.toLowerCase()});function mF(t,e,r,n){var i=e.opacity==null?1:e.opacity;if(r instanceof Et){t("opacity",i);return}if(dF(e)){var a=Wa(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",$d);if(pF(e)){var s=Wa(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 h=id(r),v=h[0],d=h[1];v&&(d=vF(d||0),t("stroke-dasharray",v.join(",")),(d||n)&&t("stroke-dashoffset",d))}for(var g=0;g<Xd.length;g++){var p=Xd[g];if(e[p]!==el[p]){var m=e[p]||el[p];m&&t(gF[g],m)}}}}var gx="http://www.w3.org/2000/svg",mx="http://www.w3.org/1999/xlink",yF="http://www.w3.org/2000/xmlns/",_F="http://www.w3.org/XML/1998/namespace",yx="ecmeta_";function _x(t){return document.createElementNS(gx,t)}function Ge(t,e,r,n,i){return{tag:t,attrs:r||{},children:n,text:i,key:e}}function bF(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 SF(t){return"</"+t+">"}function qd(t,e){e=e||{};var r=e.newline?`
|
|
19
|
+
`:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return bF(o,s)+(o!=="style"?st(l):l||"")+(a?""+r+$(a,function(u){return n(u)}).join(r)+r:"")+SF(o)}return n(t)}function wF(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 Kd(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function bx(t,e,r,n){return Ge("svg","root",{width:t,height:e,xmlns:gx,"xmlns:xlink":mx,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+t+" "+e:!1},r)}var xF=0;function Sx(){return xF++}var xx={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"},di="transform-origin";function TF(t,e,r){var n=z({},t.shape);z(n,e),t.buildPath(r,n);var i=new px;return i.reset(em(t)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function CF(t,e){var r=e.originX,n=e.originY;(r||n)&&(t[di]=r+"px "+n+"px")}var AF={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Tx(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function DF(t,e,r){var n=t.shape.paths,i={},a,o;if(L(n,function(l){var u=Kd(r.zrId);u.animation=!0,Yu(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,h=ce(f),v=h.length;if(v){o=h[v-1];var d=f[o];for(var g in d){var p=d[g];i[g]=i[g]||{d:""},i[g].d+=p.d||""}for(var m in c){var y=c[m].animation;y.indexOf(o)>=0&&(a=y)}}}),!!a){e.d=!1;var s=Tx(i,r);return a.replace(o,s)}}function Cx(t){return q(t)?xx[t]?"cubic-bezier("+xx[t]+")":qf(t)?t:"":""}function Yu(t,e,r,n){var i=t.animators,a=i.length,o=[];if(t instanceof Py){var s=DF(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"],h=Cx(f.getClip().easing),v=f.getDelay();h?c.push(h):c.push("linear"),v&&c.push(v/1e3+"s"),f.getLoop()&&c.push("infinite");var d=c.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(f)}function g(y){var _=y[1],b=_.length,S={},w={},x={},C="animation-timing-function";function D(Me,he,Te){for(var J=Me.getTracks(),se=Me.getMaxTime(),yt=0;yt<J.length;yt++){var Oe=J[yt];if(Oe.needsAnimate()){var sr=Oe.keyframes,_t=Oe.propName;if(Te&&(_t=Te(_t)),_t)for(var lr=0;lr<sr.length;lr++){var Ta=sr[lr],ur=Math.round(Ta.time/se*100)+"%",af=Cx(Ta.easing),Ca=Ta.rawValue;(q(Ca)||me(Ca))&&(he[ur]=he[ur]||{},he[ur][_t]=Ta.rawValue,af&&(he[ur][C]=af))}}}}for(var T=0;T<b;T++){var A=_[T],I=A.targetName;I?I==="shape"&&D(A,w):!n&&D(A,S)}for(var M in S){var P={};Ga(P,t),z(P,S[M]);var E=tm(P),k=S[M][C];x[M]=E?{transform:E}:{},CF(x[M],P),k&&(x[M][C]=k)}var O,R=!0;for(var M in w){x[M]=x[M]||{};var N=!O,k=w[M][C];N&&(O=new rn);var F=O.len();O.reset(),x[M].d=TF(t,w[M],O);var B=O.len();if(!N&&F!==B){R=!1;break}k&&(x[M][C]=k)}if(!R)for(var M in x)delete x[M].d;if(!n)for(var T=0;T<b;T++){var A=_[T],I=A.targetName;I==="style"&&D(A,x,function(J){return AF[J]})}for(var G=ce(x),X=!0,H,T=1;T<G.length;T++){var Z=G[T-1],ae=G[T];if(x[Z][di]!==x[ae][di]){X=!1;break}H=x[Z][di]}if(X&&H){for(var M in x)x[M][di]&&delete x[M][di];e[di]=H}if(Ye(G,function(Me){return ce(x[Me]).length>0}).length){var Re=Tx(x,r);return Re+" "+y[0]+" both"}}for(var p in l){var s=g(l[p]);s&&o.push(s)}if(o.length){var m=r.zrId+"-cls-"+Sx();r.cssNodes["."+m]={animation:o.join(",")},e.class=m}}function MF(t,e,r){if(!t.ignore)if(t.isSilent()){var n={"pointer-events":"none"};Ax(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=tc(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),Ax(n,e,r)}}function Ax(t,e,r,n){var i=JSON.stringify(t),a=r.cssStyleCache[i];a||(a=r.zrId+"-cls-"+Sx(),r.cssStyleCache[i]=a,r.cssNodes["."+a+":hover"]=t),e.class=e.class?e.class+" "+a:a}var Qo=Math.round;function Dx(t){return t&&q(t.src)}function Mx(t){return t&&ee(t.toDataURL)}function Zd(t,e,r,n){mF(function(i,a){var o=i==="fill"||i==="stroke";o&&Jg(a)?Rx(e,t,i,n):o&&nc(a)?Ox(r,t,i,n):t[i]=a,o&&n.ssr&&a==="none"&&(t["pointer-events"]="visible")},e,r,!1),OF(r,t,n)}function jd(t,e){var r=fR(e);r&&(r.each(function(n,i){n!=null&&(t[(yx+i).toLowerCase()]=n+"")}),e.isSilent()&&(t[yx+"silent"]="true"))}function Lx(t){return Jr(t[0]-1)&&Jr(t[1])&&Jr(t[2])&&Jr(t[3]-1)}function LF(t){return Jr(t[4])&&Jr(t[5])}function Qd(t,e,r){if(e&&!(LF(e)&&Lx(e))){var n=1e4;t.transform=Lx(e)?"translate("+Qo(e[4]*n)/n+" "+Qo(e[5]*n)/n+")":bA(e)}}function Ix(t,e,r){for(var n=t.points,i=[],a=0;a<n.length;a++)i.push(Qo(n[a][0]*r)/r),i.push(Qo(n[a][1]*r)/r);e.points=i.join(" ")}function Px(t){return!t.smooth}function IF(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]]=Qo(s*i)/i)}}}var PF={circle:[IF(["cx","cy","r"])],polyline:[Ix,Px],polygon:[Ix,Px]};function EF(t){for(var e=t.animators,r=0;r<e.length;r++)if(e[r].targetName==="shape")return!0;return!1}function Ex(t,e){var r=t.style,n=t.shape,i=PF[t.type],a={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&em(t)||4;if(i&&!e.willUpdate&&!(i[1]&&!i[1](n))&&!(o&&EF(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 h=t.path;c&&(h.beginPath(),t.buildPath(h,t.shape),t.pathUpdated());var v=h.getVersion(),d=t,g=d.__svgPathBuilder;(d.__svgPathVersion!==v||!g||l!==d.__svgPathStrokePercent)&&(g||(g=d.__svgPathBuilder=new px),g.reset(u),h.rebuildPath(g,l),g.generateStr(),d.__svgPathVersion=v,d.__svgPathStrokePercent=l),a.d=g.getStr()}return Qd(a,t.transform),Zd(a,r,t,e),jd(a,t),e.animation&&Yu(t,a,e),e.emphasis&&MF(t,a,e),Ge(s,t.id+"",a)}function kF(t,e){var r=t.style,n=r.image;if(n&&!q(n)&&(Dx(n)?n=n.src:Mx(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),Qd(l,t.transform),Zd(l,r,t,e),jd(l,t),e.animation&&Yu(t,l,e),Ge("image",t.id+"",l)}}function RF(t,e){var r=t.style,n=r.text;if(n!=null&&(n+=""),!(!n||isNaN(r.x)||isNaN(r.y))){var i=r.font||Er,a=r.x||0,o=wA(r.y||0,za(i),r.textBaseline),s=SA[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(Cm(r)){var u="",f=r.fontStyle,c=xm(r.fontSize);if(!parseFloat(c))return;var h=r.fontFamily||ag,v=r.fontWeight;u+="font-size:"+c+";font-family:"+h+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),v&&v!=="normal"&&(u+="font-weight:"+v+";"),l.style=u}else l.style="font: "+i;return n.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),Qd(l,t.transform),Zd(l,r,t,e),jd(l,t),e.animation&&Yu(t,l,e),Ge("text",t.id+"",l,void 0,n)}}function kx(t,e){if(t instanceof pe)return Ex(t,e);if(t instanceof Et)return kF(t,e);if(t instanceof ja)return RF(t,e)}function OF(t,e,r){var n=t.style;if(xA(n)){var i=TA(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,h=n.shadowBlur,v=Wa(n.shadowColor),d=v.opacity,g=v.color,p=h/2/l,m=h/2/u,y=p+" "+m;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=Ge("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Ge("feDropShadow","",{dx:f/l,dy:c/u,stdDeviation:y,"flood-color":g,"flood-opacity":d})]),a[i]=o}e.filter=Fs(o)}}function Rx(t,e,r,n){var i=t[r],a,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(jg(i))a="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(Qg(i))a="radialGradient",o.cx=K(i.x,.5),o.cy=K(i.y,.5),o.r=K(i.r,.5);else return;for(var s=i.colorStops,l=[],u=0,f=s.length;u<f;++u){var c=rc(s[u].offset)*100+"%",h=s[u].color,v=Wa(h),d=v.color,g=v.opacity,p={offset:c};p["stop-color"]=d,g<1&&(p["stop-opacity"]=g),l.push(Ge("stop",u+"",p))}var m=Ge(a,"",o,l),y=qd(m),_=n.gradientCache,b=_[y];b||(b=n.zrId+"-g"+n.gradientIdx++,_[y]=b,o.id=b,n.defs[b]=Ge(a,b,o,l)),e[r]=Fs(b)}function Ox(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(Zg(i)){var h=i.imageWidth,v=i.imageHeight,d=void 0,g=i.image;if(q(g)?d=g:Dx(g)?d=g.src:Mx(g)&&(d=g.toDataURL()),typeof Image>"u"){var p="Image width/height must been given explictly in svg-ssr renderer.";qt(h,p),qt(v,p)}else if(h==null||v==null){var m=function(T,A){if(T){var I=T.elm,M=h||A.width,P=v||A.height;T.tag==="pattern"&&(u?(P=1,M/=a.width):f&&(M=1,P/=a.height)),T.attrs.width=M,T.attrs.height=P,I&&(I.setAttribute("width",M),I.setAttribute("height",P))}},y=Mf(d,null,t,function(T){l||m(w,T),m(c,T)});y&&y.width&&y.height&&(h=h||y.width,v=v||y.height)}c=Ge("image","img",{href:d,width:h,height:v}),o.width=h,o.height=v}else i.svgElement&&(c=oe(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(c){var _,b;l?_=b=1:u?(b=1,_=o.width/a.width):f?(_=1,b=o.height/a.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),b!=null&&!isNaN(b)&&(o.height=b);var S=tm(i);S&&(o.patternTransform=S);var w=Ge("pattern","",o,[c]),x=qd(w),C=n.patternCache,D=C[x];D||(D=n.zrId+"-p"+n.patternIdx++,C[x]=D,o.id=D,w=n.defs[D]=Ge("pattern",D,o,[c])),e[r]=Fs(D)}}function NF(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]=Ge("clipPath",a,o,[Ex(t,r)])}e["clip-path"]=Fs(a)}function Nx(t){return document.createTextNode(t)}function pi(t,e,r){t.insertBefore(e,r)}function Bx(t,e){t.removeChild(e)}function Fx(t,e){t.appendChild(e)}function zx(t){return t.parentNode}function Vx(t){return t.nextSibling}function Jd(t,e){t.textContent=e}var Gx=58,BF=120,FF=Ge("","");function ep(t){return t===void 0}function Pr(t){return t!==void 0}function zF(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 Jo(t,e){var r=t.key===e.key,n=t.tag===e.tag;return n&&r}function es(t){var e,r=t.children,n=t.tag;if(Pr(n)){var i=t.elm=_x(n);if(tp(FF,t),W(r))for(e=0;e<r.length;++e){var a=r[e];a!=null&&Fx(i,es(a))}else Pr(t.text)&&!j(t.text)&&Fx(i,Nx(t.text))}else t.elm=Nx(t.text);return t.elm}function Hx(t,e,r,n,i){for(;n<=i;++n){var a=r[n];a!=null&&pi(t,es(a),e)}}function $u(t,e,r,n){for(;r<=n;++r){var i=e[r];if(i!=null)if(Pr(i.tag)){var a=zx(i.elm);Bx(a,i.elm)}else Bx(t,i.elm)}}function tp(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)!==BF?n.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?n.setAttributeNS(yF,r,o):r.charCodeAt(3)===Gx?n.setAttributeNS(_F,r,o):r.charCodeAt(5)===Gx?n.setAttributeNS(mx,r,o):n.setAttribute(r,o))}for(r in i)r in a||n.removeAttribute(r)}}function VF(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,h,v,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]:Jo(o,u)?(_a(o,u),o=e[++n],u=r[++i]):Jo(s,f)?(_a(s,f),s=e[--a],f=r[--l]):Jo(o,f)?(_a(o,f),pi(t,o.elm,Vx(s.elm)),o=e[++n],f=r[--l]):Jo(s,u)?(_a(s,u),pi(t,s.elm,o.elm),s=e[--a],u=r[++i]):(ep(c)&&(c=zF(e,n,a)),h=c[u.key],ep(h)?pi(t,es(u),o.elm):(v=e[h],v.tag!==u.tag?pi(t,es(u),o.elm):(_a(v,u),e[h]=void 0,pi(t,v.elm,o.elm))),u=r[++i]);(n<=a||i<=l)&&(n>a?(d=r[l+1]==null?null:r[l+1].elm,Hx(t,d,r,i,l)):$u(t,e,n,a))}function _a(t,e){var r=e.elm=t.elm,n=t.children,i=e.children;t!==e&&(tp(t,e),ep(e.text)?Pr(n)&&Pr(i)?n!==i&&VF(r,n,i):Pr(i)?(Pr(t.text)&&Jd(r,""),Hx(r,null,i,0,i.length-1)):Pr(n)?$u(r,n,0,n.length-1):Pr(t.text)&&Jd(r,""):t.text!==e.text&&(Pr(n)&&$u(r,n,0,n.length-1),Jd(r,e.text)))}function GF(t,e){if(Jo(t,e))_a(t,e);else{var r=t.elm,n=zx(r);es(e),n!==null&&(pi(n,e.elm,Vx(r)),$u(n,[t],0,0))}return e}var HF=0,UF=(function(){function t(e,r,n){if(this.type="svg",this.configLayer=WF(),this.storage=r,this._opts=n=z({},n),this.root=e,this._id="zr"+HF++,this._oldVNode=bx(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=_x("svg");tp(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",GF(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return kx(e,Kd(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=Kd(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=YF(n,i,this._backgroundColor,a);s&&o.push(s);var l=e.compress?null:this._mainVNode=Ge("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=$(ce(a.defs),function(h){return a.defs[h]});if(u.length&&o.push(Ge("defs","defs",{},u)),e.animation){var f=wF(a.cssNodes,a.cssAnims,{newline:!0});if(f){var c=Ge("style","stl",{},[],f);o.push(c)}}return bx(n,i,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},qd(this.renderToVNode({animation:K(e.cssAnimation,!0),emphasis:K(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:K(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 h=c.__clipPaths,v=h&&h.length||0,d=l&&l.length||0,g=void 0;for(g=Math.max(v-1,d-1);g>=0&&!(h&&l&&h[g]===l[g]);g--);for(var p=d-1;p>g;p--)o--,s=a[o-1];for(var m=g+1;m<v;m++){var y={};NF(h[m],y,r);var _=Ge("g","clip-g-"+u++,y,[]);(s?s.children:n).push(_),a[o++]=_,s=_}l=h;var b=kx(c,r);b&&(s?s.children:n).push(b)}}},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=m1(i,0,n),r=m1(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(nc(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=AA(r),r&&n+"base64,"+r):n+"charset=UTF-8,"+encodeURIComponent(r)},t})();function WF(t){return function(){}}function YF(t,e,r,n){var i;if(r&&r!=="none")if(i=Ge("rect","bg",{width:t,height:e,x:"0",y:"0"}),Jg(r))Rx({fill:r},i.attrs,"fill",n);else if(nc(r))Ox({style:{fill:r},dirty:$e,getBoundingRect:function(){return{width:t,height:e}}},i.attrs,"fill",n);else{var a=Wa(r),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}function $F(t){t.registerPainter("svg",UF)}or([yk,LP,Rk,MN,VN,tB,$N,MB,qB,lF,jB,cF,$F]);const Ux=new Set;function XF(){const e=(Ma().components??[]).filter(r=>r!=null&&!Ux.has(r));if(e.length!==0){or(e);for(const r of e)Ux.add(r)}}const qF=96/25.4;function gi(t){const e=Number.isFinite(t)?t:0;return Math.max(1,Math.round(e*qF))}const KF=[12,20,15];function ba(t){try{return JSON.parse(JSON.stringify(t))}catch{return t}}function ZF(t,e){if(!e||typeof e!="object"||Array.isArray(e))return{};const r=ba(e),n=Ze(t),i=[...ng()],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 jF(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 Sa(t){return Array.isArray(t)?t[0]&&typeof t[0]=="object"?{...t[0]}:{}:t&&typeof t=="object"?{...t}:{}}function QF(t,e,r){const n=ba(t),i=Array.isArray(n.series)?n.series:[],a=Ze(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 Xu=t=>Math.round(t*10)/10;function rp(t,e){return e>0?Xu(t/e*100):0}function qu(t,e,r){if(typeof t=="string"&&t.trim().endsWith("%")){const n=Number.parseFloat(t);if(Number.isFinite(n))return Xu(n)}return typeof t=="number"&&Number.isFinite(t)?rp(t,e):rp(r,e)}function Wx(t,e,r){return Math.min(r,Math.max(e,t))}function ts(t){return`${Wx(Xu(t),0,100)}%`}function JF(t){const r=(Array.isArray(t.series)?t.series:[])[0];return r&&typeof r=="object"?r:{}}function Yx(t,e,r){const i=JF(t&&typeof t=="object"?t:{}),a=gi(e),o=gi(r);return{top:qu(i.top,o,ds.top),right:qu(i.right,a,ds.right),bottom:qu(i.bottom,o,ds.bottom),left:qu(i.left,a,ds.left)}}function e5(t,e){const r=ba(t),n=Array.isArray(r.series)?r.series:[];n.length===0&&n.push({type:"funnel",data:["$data"]});const i=n[0];return i.top=ts(e.top),i.right=ts(e.right),i.bottom=ts(e.bottom),i.left=ts(e.left),r.series=n,r}function t5(t,e,r){const i=Sa((t&&typeof t=="object"?t:{}).radar).radius,a=Array.isArray(i)?i[i.length-1]:i,o=gi(e),s=gi(r),l=Math.min(o,s)/2;if(typeof a=="string"&&a.trim().endsWith("%")){const u=Number.parseFloat(a);if(Number.isFinite(u))return Xu(u)}return typeof a=="number"&&Number.isFinite(a)?rp(a,l):sC}function r5(t,e){const r=ba(t);return r.radar={...Sa(r.radar),radius:ts(Wx(e,20,100))},r}const n5=[{key:"value",label:"数值",formatter:"{c}"},{key:"name-value",label:"名称: 数值",formatter:"{b}: {c}"},{key:"name",label:"名称",formatter:"{b}"},{key:"percent",label:"百分比",formatter:"{d}%"}],i5={bar:[{value:"top",label:"顶部"},{value:"inside",label:"内部"},{value:"insideTop",label:"内部顶端"},{value:"bottom",label:"底部"},{value:"insideBottom",label:"内部底端"},{value:"right",label:"右侧"},{value:"left",label:"左侧"},{value:"middle",label:"居中"}],line:[{value:"top",label:"顶部"},{value:"bottom",label:"底部"},{value:"inside",label:"内部"},{value:"left",label:"左侧"},{value:"right",label:"右侧"}],pie:[{value:"outside",label:"外侧"},{value:"inside",label:"内部"},{value:"center",label:"中心"}],scatter:[{value:"top",label:"顶部"},{value:"bottom",label:"底部"},{value:"left",label:"左侧"},{value:"right",label:"右侧"},{value:"inside",label:"内部"}],radar:[{value:"top",label:"顶部"},{value:"bottom",label:"底部"},{value:"left",label:"左侧"},{value:"right",label:"右侧"},{value:"inside",label:"内部"}],funnel:[{value:"outer",label:"外侧"},{value:"inner",label:"内部"},{value:"left",label:"左侧"},{value:"right",label:"右侧"},{value:"top",label:"顶部"},{value:"bottom",label:"底部"}],gauge:[]},a5={bar:!1,line:!1,pie:!0,scatter:!1,radar:!1,funnel:!0,gauge:!0},o5={bar:{position:"top",fontSize:12},line:{position:"top",fontSize:12},pie:{position:"outside",overflow:"none",fontSize:11},scatter:{position:"top",fontSize:11},radar:{position:"top",fontSize:10},funnel:{position:"outer",fontSize:11},gauge:{fontSize:14}},s5={barHChart:{position:"right",fontSize:12}},l5={bar:["formatter","overflow","position","rotate","offset","fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding"],line:["formatter","overflow","position","rotate","offset","fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding"],pie:["formatter","overflow","position","distance","offset","fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding","labelLine.show","labelLine.length","labelLine.length2","labelLine.smooth"],scatter:["formatter","overflow","position","distance","rotate","offset","fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding"],radar:["formatter","fontSize","fontWeight","color"],funnel:["formatter","overflow","position","distance","fontSize","fontWeight","color","labelLine.show","labelLine.length","labelLine.smooth"],gauge:["formatter","fontSize","fontWeight","color","offset"]},u5=["formatter","overflow","position","distance","rotate","offset","fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function f5(t){const e=t?.series;return Array.isArray(e)?e:[]}function Ku(t){return t&&typeof t=="object"&&!Array.isArray(t)?{...t}:{}}function np(t){typeof t.offsetX!="number"&&typeof t.offsetY!="number"||(Array.isArray(t.offset)||(t.offset=[typeof t.offsetX=="number"?t.offsetX:0,typeof t.offsetY=="number"?t.offsetY:0]),delete t.offsetX,delete t.offsetY)}function ip(t){return Ze(t)?.seriesType==="gauge"?"detail":"label"}function c5(t){const e=Ze(t);return e?l5[e.seriesType]:[]}function h5(t,e){const r=Ze(e),n=f5(t),i=Ku(n[0]?.[ip(e)]);np(i);const a={show:typeof i.show=="boolean"?i.show:r?a5[r.seriesType]:!1,labelLine:Ku(n[0]?.labelLine)};for(const s of u5){const l=i[s];s!=="offset"&&(typeof l=="string"||typeof l=="number")&&(a[s]=l)}const o=i.offset;return Array.isArray(o)&&typeof o[0]=="number"&&typeof o[1]=="number"&&(a.offset=[o[0],o[1]]),a}function v5(t){const e=Ze(t);return e?{...o5[e.seriesType],...s5[t]}:{}}function $x(t){return t==null||t===""}function d5(t,e,r){const n=ba(t??{}),i=Array.isArray(n.series)?n.series:[];if(!Ze(e)||i.length===0)return n;const o=ip(e),{enabled:s,labelLine:l,...u}=r;for(const f of i){if(!f||typeof f!="object")continue;const c=Ku(f[o]);np(c),s===!0?Object.assign(c,{...v5(e),...c,show:!0}):s===!1&&(c.show=!1);for(const[h,v]of Object.entries(u))$x(v)?delete c[h]:c[h]=v;if(l){const h=Ku(f.labelLine);for(const[v,d]of Object.entries(l))$x(d)?delete h[v]:h[v]=d;f.labelLine=h}f[o]=c}return n}function p5(t){return Array.isArray(t)?t.map(e=>({...e})):[]}function g5(t,e){const r={...t,type:e?"value":"category"};return e?delete r.data:Array.isArray(r.data)||(r.data=["$data"]),r}function m5(t,e){const r={...t,type:e?"category":"value"};return e&&!Array.isArray(r.data)&&(r.data=["$data"]),e||delete r.data,r}function Zu(t,e){return Array.isArray(t)?t.map(r=>e({...r})):e(t&&typeof t=="object"?{...t}:{})}function ju(t,e){const r=Ze(t);if(!r)return e;const n=structuredClone(e),i=p5(n.series);if(i.length===0)return n;const a=ip(t);for(const l of i){const u=l[a];if(u&&typeof u=="object"&&!Array.isArray(u)){const f={...u};np(f),l[a]=f}}if(r.seriesType==="pie")return n.series=i.map(l=>({...l,type:"pie",...t==="doughnutChart"?{radius:l.radius??["40%","70%"]}:{}})),delete n.xAxis,delete n.yAxis,n;if(r.seriesType==="scatter")return n.series=i.map(l=>({...l,type:"scatter"})),n.xAxis=Zu(n.xAxis,l=>({...l,type:"value",data:void 0})),n.yAxis=Zu(n.yAxis,l=>({...l,type:"value",data:void 0})),n;if(r.seriesType==="radar")return n.series=i.map(l=>({...l,type:"radar"})),n;if(r.seriesType==="funnel")return n.series=i.map(l=>({...l,type:"funnel",sort:"descending"})),n;if(r.seriesType==="gauge")return n.series=i.map(l=>({...l,type:"gauge"})),n;const o=r.orientation==="horizontal",s=r.seriesType==="line"?"line":"bar";return n.xAxis=Zu(n.xAxis,l=>g5(l,o)),n.yAxis=Zu(n.yAxis,l=>m5(l,o)),n.series=i.map(l=>{const u={...l,type:s};return t==="areaChart"?u.areaStyle=l.areaStyle??{}:delete u.areaStyle,u}),n}function Xx(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 ap(t){XF();const e=ju(t.type,t.option);if(!e||typeof e!="object"||Array.isArray(e))throw new Error("图表 option 非法:需要对象");const r=gi(t.widthMm),n=gi(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}:{}}),Xx(i.renderToSVGString(),r,n)}finally{i.dispose()}}function y5(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function op(t){const e=t._chartOption??t.chartOption,r=`<span>${y5(String(t.title??"图表"))}</span>`;if(!e||typeof e!="object"||Array.isArray(e))return r;try{return ap({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 _5="2",qx={chartOption:{kind:"object",label:"图表 option"},chartDataSource:{kind:"text",label:"数据源"},chartCategoryField:{kind:"text",label:"类目字段"},chartValueFields:{kind:"object",label:"数值字段"},chartSeriesField:{kind:"text",label:"系列拆分字段"}},b5={...qx,chartBubble:{kind:"bool",label:"气泡大小"}},rs=dT({id:Da,version:_5,kinds:vs.map(t=>({type:t.type,label:t.label,icon:t.icon,fixedHeight:!0,requiredOptionKeys:t.requiredOptionKeys,notes:t.notes,optionMeta:t.type==="scatterChart"?b5:qx,defaultOptions:e=>ig(t.type,e),binding:{bind:(e,r)=>Qp(t.type,e,r)}})),render:{html:op,createRenderer:()=>({render:op})}});let Qu;function ns(t,e){const r=pT(Da);if(!t&&!e){const a=Mp(rs);return Qu=a,a}const n={...rs,designer:t??r?.designer??rs.designer,render:{...rs.render,...r?.render,...e}},i=Mp(n);return Qu=i,i}function S5(t){return ns(t)}function w5(t){return ns(void 0,{executorBundle:t})}function x5(){Qu?.(),Qu=void 0}ns(),ns();const T5=Object.freeze(Object.defineProperty({__proto__:null,CHART_KINDS:Xp,CHART_KIND_DEFINITIONS:vs,CHART_PALETTES:gf,CHART_PLUGIN:rs,CHART_PLUGIN_ID:Da,bindChartData:Qp,chartFactoryDefaults:ig,configureChartPlugin:uC,createDefaultChartOption:ps,fitSvgRoot:Xx,getChartKindDefinition:Ze,getChartPalettes:rg,getChartPluginConfig:Ma,getSampleCategories:ng,mmToChartPx:gi,normalizeChartOption:ju,registerChartDesigner:S5,registerChartExecutorBundle:w5,registerChartPlugin:ns,renderChartElement:op,renderChartToSvg:ap,resolveChartPanelFields:qp,uninstallChartPlugin:x5},Symbol.toStringTag,{value:"Module"})),Kx=Symbol.for("worm-print-platform.element-ui-registry.v1"),Zx=globalThis;function jx(){const t=Zx[Kx];if(t)return t;const e={entries:new Map,listeners:new Set,nextSeq:0};return Zx[Kx]=e,e}function Qx(){for(const t of[...jx().listeners])try{t()}catch{}}function Jx(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 C5(t){return Jx(t),t}function A5(t){Jx(t);const e=jx(),r=e.nextSeq++;for(const n of t.types)e.entries.set(n,{ui:t,seq:r});return Qx(),()=>{let n=!1;for(const i of t.types)e.entries.get(i)?.ui===t&&(e.entries.delete(i),n=!0);n&&Qx()}}function rt(t,e={},r=[]){return{tag:t,props:e,children:r}}var eT="http://www.w3.org/2000/svg",D5=new Set(["draggable","contenteditable","spellcheck"]),M5=new Set(["indeterminate"]);function L5(t){return t==="svg"||t==="path"||t==="circle"||t==="rect"||t==="line"||t==="g"}function I5(t){return t instanceof Element&&t.namespaceURI===eT}function sp(t,e){if(typeof t=="string"){const o=document.createTextNode(t);return e.appendChild(o),o}if(t instanceof Node)return e.appendChild(t),t;const{tag:r,props:n,children:i}=t,a=L5(r)||I5(e)?document.createElementNS(eT,r):document.createElement(r);for(const[o,s]of Object.entries(n))if(!(s==null||s===!1))if(o==="class")a.setAttribute("class",String(s));else if(o==="style")typeof s=="string"?a.style.cssText=s:Object.assign(a.style,s);else if(o==="html")a.innerHTML=String(s);else if(o==="text")a.textContent=String(s);else if(o.startsWith("on")&&typeof s=="function")a.addEventListener(o.slice(2).toLowerCase(),s);else if(o==="dataset")for(const[l,u]of Object.entries(s))a.dataset[l]=u;else M5.has(o)?a[o]=!0:typeof s=="boolean"?s&&a.setAttribute(o,D5.has(o)?"true":""):a.setAttribute(o,String(s));for(const o of i)sp(o,a);return e.appendChild(a),a}var mi=null;function lp(t){const e=/^#?([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(t.trim());if(!e)return null;const r=e[1],n=r.length===3?r.split("").map(i=>i+i).join(""):r;return{r:Number.parseInt(n.slice(0,2),16),g:Number.parseInt(n.slice(2,4),16),b:Number.parseInt(n.slice(4,6),16)}}function up(t){const e=lp(t);return e?tT(e):"#000000"}function tT({r:t,g:e,b:r}){return`#${[t,e,r].map(n=>Math.round(is(n/255)*255).toString(16).padStart(2,"0")).join("")}`}function P5(t,e,r){const n=t/255,i=e/255,a=r/255,o=Math.max(n,i,a),s=Math.min(n,i,a),l=o-s;let u=0;return l!==0&&(o===n?u=(i-a)/l%6:o===i?u=(a-n)/l+2:u=(n-i)/l+4,u*=60,u<0&&(u+=360)),{h:u,s:o===0?0:l/o,v:o}}function E5(t,e,r){const n=r*e,i=(t%360+360)%360/60,a=n*(1-Math.abs(i%2-1)),[o,s,l]=i<1?[n,a,0]:i<2?[a,n,0]:i<3?[0,n,a]:i<4?[0,a,n]:i<5?[a,0,n]:[n,0,a],u=r-n;return{r:(o+u)*255,g:(s+u)*255,b:(l+u)*255}}function k5(t){return((Number.isFinite(t)?t:0)%360+360)%360}function is(t){return Math.min(1,Math.max(0,Number.isFinite(t)?t:0))}function R5(t){const e=t.title??"颜色选择";return rt("button",{type:"button",class:`preset-color-trigger${t.triggerClass?` ${t.triggerClass}`:""}`,"aria-expanded":"false","aria-haspopup":"dialog",title:e,onClick:r=>{const n=r.currentTarget??r.target,i=n.getRootNode();if(!!mi&&mi.root===i&&mi.title===e&&mi.trigger===n){as();return}as(),O5(n,t)}},[rt("span",{class:"preset-color-swatch",style:t.value?{background:t.value}:{background:"transparent"}})])}function as(){const t=mi;t&&(mi=null,t.teardowns.forEach(e=>e()),t.trigger.setAttribute("aria-expanded","false"),t.panel.remove())}function O5(t,e){const r=t.getRootNode(),n=r instanceof ShadowRoot?r:document.body,i={root:r,title:e.title??"颜色选择",trigger:t,panel:null,clearable:e.clearable!==!1,onChange:e.onChange,model:e.value||void 0,hue:0,saturation:0,value_:0,hexText:"",dragging:!1,current:null,hex:null,area:null,handle:null,hueRange:null,clearBtn:null,items:[],teardowns:[]};e.value&&cp(i,e.value)?i.hexText=up(e.value).toUpperCase():i.hexText=e.value?String(e.value):"",i.panel=sp(z5(i),n),i.current=i.panel.querySelector(".picker-current"),i.hex=i.panel.querySelector(".picker-hex"),i.area=i.panel.querySelector(".picker-area"),i.handle=i.panel.querySelector(".picker-handle"),i.hueRange=i.panel.querySelector(".picker-hue"),i.clearBtn=i.panel.querySelector(".picker-clear"),i.items=Array.from(i.panel.querySelectorAll(".preset-color-item")).map((a,o)=>({el:a,color:Lp[o]})),Ju(i),N5(i),B5(i),mi=i,t.setAttribute("aria-expanded","true")}function N5(t){const e=t.trigger.getBoundingClientRect(),r=190,n=t.panel.offsetHeight||216,i=8,a=Math.max(i,Math.min(e.left,window.innerWidth-r-i)),o=e.bottom+6,s=o+n>window.innerHeight-i?Math.max(i,e.top-n-6):o;t.panel.style.left=`${a}px`,t.panel.style.top=`${s}px`}function B5(t){const e=i=>{const a=F5(i);a.includes(t.trigger)||a.includes(t.panel)||as()},r=i=>{i.key==="Escape"&&as()},n=()=>as();document.addEventListener("pointerdown",e,!0),document.addEventListener("keydown",r),window.addEventListener("scroll",n,!0),window.addEventListener("resize",n),t.root.addEventListener("scroll",n,!0),t.teardowns.push(()=>document.removeEventListener("pointerdown",e,!0),()=>document.removeEventListener("keydown",r),()=>window.removeEventListener("scroll",n,!0),()=>window.removeEventListener("resize",n),()=>t.root.removeEventListener("scroll",n,!0))}function F5(t){const e=typeof t.composedPath=="function"?t.composedPath():[];return e.length?e:[t.target]}function z5(t){return rt("div",{class:"preset-color-panel",role:"dialog","aria-label":"颜色选择",style:{position:"fixed"},onPointerdown:e=>e.stopPropagation()},[rt("div",{class:"picker-preview"},[rt("span",{class:"picker-current"}),rt("input",{class:"picker-hex",type:"text",maxlength:7,spellcheck:"false","aria-label":"颜色值",onInput:e=>G5(t,e.target.value)})]),rt("div",{class:"picker-area","aria-label":"自定义颜色",tabindex:0,onPointerdown:e=>H5(t,e),onKeydown:e=>U5(t,e)},[rt("span",{class:"picker-handle"})]),rt("input",{class:"picker-hue",type:"range",min:0,max:360,step:1,"aria-label":"色相",onInput:e=>W5(t,Number(e.target.value)),onChange:()=>hp(t)}),rt("div",{class:"picker-heading"},[rt("span",{text:"常用颜色"}),t.clearable?rt("button",{type:"button",class:"picker-clear",title:"清除选中的颜色",onClick:()=>ef(t,void 0)},[rt("svg",{viewBox:"0 0 16 16",width:12,height:12,"aria-hidden":"true"},[rt("path",{d:"M3 3l10 10M13 3L3 13",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round",fill:"none"})]),"清除"]):""].filter(Boolean)),rt("div",{class:"preset-color-grid"},Lp.map(e=>rt("button",{type:"button",class:"preset-color-item",style:{background:e},title:e,"aria-label":e,onClick:()=>V5(t,e)})))])}function fp(t){return tT(E5(t.hue,t.saturation,t.value_))}function Ju(t){const e=fp(t);t.hex.value!==t.hexText&&(t.hex.value=t.hexText),t.current.className=t.model?"picker-current":"picker-current is-empty",t.model?t.current.style.background=e:t.current.style.removeProperty("background"),t.area.style.setProperty("--picker-hue",`${Math.round(t.hue)}deg`),t.handle.style.left=`${t.saturation*100}%`,t.handle.style.top=`${(1-t.value_)*100}%`,t.handle.style.background=e;const r=String(Math.round(t.hue));t.hueRange.value!==r&&(t.hueRange.value=r),t.clearBtn&&(t.clearBtn.disabled=!t.model);for(const n of t.items)n.el.className=t.model&&n.color.toLowerCase()===t.model.toLowerCase()?"preset-color-item active":"preset-color-item"}function cp(t,e){const r=lp(e);if(!r)return!1;const n=P5(r.r,r.g,r.b);return t.hue=n.h,t.saturation=n.s,t.value_=n.v,t.hexText=up(e).toUpperCase(),!0}function wa(t,e,r,n){t.hue=k5(e),t.saturation=is(r),t.value_=is(n),t.hexText=fp(t).toUpperCase(),Ju(t)}function hp(t){const e=fp(t);t.model=e,Ju(t),t.onChange(e)}function ef(t,e){t.model=e,e||(t.hexText=""),Ju(t),t.onChange(e)}function V5(t,e){cp(t,e),ef(t,e)}function G5(t,e){const r=e.trim();if(!r){t.clearable&&ef(t,void 0);return}lp(r)&&(cp(t,r),ef(t,up(r)))}function H5(t,e){t.dragging=!0,rT(t,e);const r=i=>{t.dragging&&rT(t,i)},n=()=>{t.dragging&&(t.dragging=!1,document.removeEventListener("pointermove",r),document.removeEventListener("pointerup",n),document.removeEventListener("pointercancel",n),hp(t))};document.addEventListener("pointermove",r),document.addEventListener("pointerup",n),document.addEventListener("pointercancel",n)}function rT(t,e){const r=t.area.getBoundingClientRect();if(!r.width||!r.height)return;const n=is((e.clientX-r.left)/r.width),i=is(1-(e.clientY-r.top)/r.height);wa(t,t.hue,n,i)}function U5(t,e){const r=e.shiftKey?.1:.02;let n=!0;e.key==="ArrowLeft"?wa(t,t.hue,t.saturation-r,t.value_):e.key==="ArrowRight"?wa(t,t.hue,t.saturation+r,t.value_):e.key==="ArrowUp"?wa(t,t.hue,t.saturation,t.value_+r):e.key==="ArrowDown"?wa(t,t.hue,t.saturation,t.value_-r):n=!1,n&&(e.preventDefault(),hp(t))}function W5(t,e){wa(t,e,t.saturation,t.value_)}const nT="width:100%;height:100%;min-width:0;min-height:0;pointer-events:none",Y5=[".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}",".echarts-dropdown-trigger{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;height:26px;min-height:26px;padding:3px 6px;border:1px solid var(--pd-border,#d9dde6);border-radius:6px;background:var(--pd-input-bg,#fff);color:inherit;font:inherit;box-sizing:border-box;cursor:pointer;text-align:left}",".echarts-dropdown-trigger:hover{border-color:var(--pd-text-faint,#b4b9c4)}",'.echarts-dropdown-trigger[aria-expanded="true"]{border-color:var(--pd-accent,#165dff);box-shadow:0 0 0 2px rgb(22 93 255 / 12%)}',".echarts-dropdown-value{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",".echarts-dropdown-arrow{flex:none;color:var(--pd-text-muted,#909399);font-size:10px;transition:transform .14s}",'.echarts-dropdown-trigger[aria-expanded="true"] .echarts-dropdown-arrow{transform:rotate(180deg)}',".echarts-dropdown-panel{position:fixed;z-index:1200;max-height:240px;overflow:auto;padding:3px;border:1px solid var(--pd-border,#d9dde6);border-radius:6px;background:var(--pd-input-bg,#fff);box-shadow:0 6px 18px rgb(0 0 0 / 14%);box-sizing:border-box}",".echarts-dropdown-option{padding:5px 8px;border-radius:4px;cursor:pointer;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}",".echarts-dropdown-option:hover{background:var(--pd-accent-soft,rgb(22 93 255 / 9%))}",".echarts-dropdown-option.is-active{background:var(--pd-accent-soft,rgb(22 93 255 / 9%));color:var(--pd-accent,#165dff)}",".echarts-label-group{margin-top:8px;border-top:1px solid var(--pd-border,#e5e7eb);padding-top:8px}",".echarts-label-group>summary{display:flex;align-items:center;cursor:pointer;list-style:none;font-size:12px;font-weight:600}",".echarts-label-summary>.pd-field{flex:1;margin:0;font-weight:400}",".echarts-label-sub{font-size:11px;color:var(--pd-text-secondary,#6b7280);margin:8px 0 4px}"].join(""),$5=["chartOption","chartDataSource","chartCategoryField","chartValueFields","chartSeriesField","chartBubble"],X5=["图表","echarts","option","配置","数据源","类目","数值","系列","柱状","条形","折线","面积","饼","环形","散点","雷达","漏斗","仪表","数据标签","数值标签","label"],q5="数据由模板绑定阶段注入:series/xAxis 的 data 保留 `$data` 占位即可;复杂样式可在模板 JSON 中手写 chartOption。";function K5(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function vp(t){return t.printElementType?.type??""}function iT(t){const e=t.options.chartOption;return e&&typeof e=="object"&&!Array.isArray(e)?e:void 0}function Ae(t){const e=iT(t);return ba(e??ps(vp(t)))}function Z5(t){const e=t?.options;if(!e||typeof e!="object")return!1;const r=e;return $5.some(n=>r[n]!==void 0)}function ht(t,e,r,n={}){t.update({chartOption:ju(e,r),...n})}function tf(t){const e=t.options.chartValueFields;return Array.isArray(e)?e.map(String):[]}function j5(t){switch(t?.seriesType){case"pie":case"funnel":case"gauge":return 1;case"scatter":return 2;default:return 8}}function Q5(t,e){return t?.seriesType==="radar"?"维度字段(每个字段一个维度)":e===1?"数值字段":"数值字段(多值多系列)"}function J5(t){const e=t?.[0];return e?Object.keys(e).filter(r=>Array.isArray(e[r])):[]}function aT(t,e){const r=t?.[0];if(!r)return[];const n=e&&Array.isArray(r[e])?e:Object.keys(r).find(a=>Array.isArray(r[a]));if(!n)return[];const i=r[n];return i.length>0&&typeof i[0]=="object"&&i[0]!==null?Object.keys(i[0]):[]}function ez(t){const e=new Map;for(const r of t??[])r.fieldKey&&r.fieldLabel&&e.set(r.fieldKey,r.fieldLabel);return e}function oT(t,e,r){if(!t)return r??"(默认)";const n=e.get(t),i=n?`${n}(${t})`:t;return r?`${i}${r}`:i}function dp(t,e,r=new Map){const n=t.map(i=>({value:i,label:oT(i,r)}));return e&&!t.includes(e)&&n.unshift({value:e,label:oT(e,r,"(当前)")}),e||n.unshift({value:"",label:"(默认:顶层第一个数组)"}),n}function yi(t){return Array.isArray(t.series)?t.series:[]}function pp(t,e,r){return Math.min(r,Math.max(e,t))}function gp(t,e,r){const n=QF(Ae(t.element),r.length,e);(Array.isArray(n.series)?n.series:[]).forEach((a,o)=>{const s=r[o]?.trim();s&&(a.name=s)}),ht(t,e,n,{chartValueFields:r})}function tz(t){const e=t.element,r=vp(e),n=e.options,i=Number(n.width)||0,a=Number(n.height)||0;try{const o=ZF(r,iT(e)??ps(r)),s=ju(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=ap({key:e.id,type:r,option:s,widthMm:i,heightMm:a,fontFamily:l});return`<div class="echarts-canvas-element" style="${nT}">${u}</div>`}catch{const o=typeof n.title=="string"&&n.title.trim()?n.title:Ze(r)?.label??"图表";return`<div class="echarts-canvas-element" style="${nT}">${K5(o)}</div>`}}function Se(t,e,r){const n=document.createElement(t);return e&&(n.className=e),r!==void 0&&(n.textContent=r),n}function Ve(t){const e=Se("div","pd-field");return e.appendChild(Se("span","pd-label",t)),e}function Ct(t,e){const r=Se("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 xa(t,e,r){const n=Ve(t);n.style.cssText="flex-direction:row;align-items:center;justify-content:space-between";const i=Se("input","pd-switch");return i.type="checkbox",i.checked=e,i.addEventListener("change",()=>r(i.checked)),n.appendChild(i),n}function rf(t,e,r){const n=Se("select","pd-select");for(const i of t){const a=Se("option");a.value=i.value,a.textContent=i.label,n.appendChild(a)}return n.value=e,n.addEventListener("change",()=>r(n.value)),n}let nf=null;function rz(t){const e=typeof t.composedPath=="function"?t.composedPath():[];return e.length?e:[t.target]}function mp(t,e,r){const n=t.find(c=>c.value===e)??{label:e||"(默认)"},i=Se("button","echarts-dropdown-trigger");i.type="button",i.setAttribute("aria-haspopup","listbox"),i.setAttribute("aria-expanded","false");const a=Se("span","echarts-dropdown-value",n.label),o=Se("span","echarts-dropdown-arrow","▾");i.appendChild(a),i.appendChild(o);let s=null,l=[];const u=()=>{l.forEach(c=>c()),l=[],s?.remove(),s=null,i.setAttribute("aria-expanded","false"),nf?.close===u&&(nf=null)},f=()=>{nf?.close();const c=i.getRootNode(),h=c instanceof ShadowRoot?c:document.body;s=Se("div","echarts-dropdown-panel"),s.setAttribute("role","listbox");for(const m of t){const y=Se("div",`echarts-dropdown-option${m.value===e?" is-active":""}`,m.label);y.setAttribute("role","option"),y.setAttribute("aria-selected",m.value===e?"true":"false"),y.addEventListener("click",_=>{_.stopPropagation(),u(),r(m.value)}),s.appendChild(y)}h.appendChild(s);const v=i.getBoundingClientRect();s.style.left=`${v.left}px`,s.style.top=`${v.bottom+4}px`,s.style.minWidth=`${v.width}px`,i.setAttribute("aria-expanded","true"),nf={close:u};const d=m=>{const y=rz(m);y.includes(i)||y.includes(s)||u()},g=m=>{m.key==="Escape"&&u()},p=()=>u();document.addEventListener("pointerdown",d,!0),document.addEventListener("keydown",g),window.addEventListener("scroll",p,!0),window.addEventListener("resize",p),c.addEventListener("scroll",p,!0),l.push(()=>document.removeEventListener("pointerdown",d,!0),()=>document.removeEventListener("keydown",g),()=>window.removeEventListener("scroll",p,!0),()=>window.removeEventListener("resize",p),()=>c.removeEventListener("scroll",p,!0))};return i.addEventListener("click",c=>{c.stopPropagation(),s?u():f()}),i}const nz=[{value:"",label:"默认"},{value:"none",label:"不处理(显示完整)"},{value:"truncate",label:"截断"},{value:"break",label:"换行"}],iz=[{value:"",label:"默认"},{value:"normal",label:"常规"},{value:"bold",label:"加粗"}],yp={distance:"距离",rotate:"旋转(度)",fontSize:"字号",fontWeight:"字重",color:"文字颜色",backgroundColor:"背景色",borderColor:"边框色",borderWidth:"边框宽度",borderRadius:"圆角",padding:"内边距"};function az(t,e){const r=t.element,n=Ze(e),i=c5(e),a=p=>i.includes(p),o=h5(Ae(r),e),s=p=>{ht(t,e,d5(Ae(r),e,p))},l=(p,m)=>{if(m.trim()==="")return s({[p]:null});const y=Number(m);Number.isFinite(y)&&s({[p]:y})},u=(p,m)=>{if(m.trim()==="")return s({labelLine:{[p]:null}});const y=Number(m);Number.isFinite(y)&&s({labelLine:{[p]:y}})},f=(p,m)=>{const y=Ve(yp[p]??p);return y.appendChild(Ct({value:m===void 0?"":String(m),type:"number"},_=>l(p,_))),y},c=(p,m)=>{const y=Ve(yp[p]??p),_=Se("span");return sp(R5({value:m??"",title:yp[p]??p,onChange:b=>s({[p]:b??""})}),_),y.appendChild(_),y},h=Se("details","echarts-label-group");h.open=o.show;const v=Se("summary","echarts-label-summary"),d=xa("显示数据标签",o.show,p=>s({enabled:p}));if(d.querySelector("input")?.addEventListener("click",p=>p.stopPropagation()),v.appendChild(d),h.appendChild(v),a("formatter")||a("overflow")){if(h.appendChild(Se("div","echarts-label-sub","内容")),a("formatter")){const p=Ve("数据标签内容");p.appendChild(rf([{value:"",label:"自定义 / 默认"},...n5.map(m=>({value:m.formatter,label:m.label}))],o.formatter??"",m=>s({formatter:m}))),p.appendChild(Ct({value:o.formatter??"",placeholder:"如 {b}: {c}"},m=>s({formatter:m}))),h.appendChild(p)}if(a("overflow")){const p=Ve("溢出处理");p.appendChild(rf(nz,o.overflow??"",m=>s({overflow:m}))),h.appendChild(p)}}if(a("position")||a("distance")||a("rotate")||a("offset")){if(h.appendChild(Se("div","echarts-label-sub","位置")),a("position")){const p=Ve("标签位置"),m=n?i5[n.seriesType]??[]:[];p.appendChild(rf([{value:"",label:"默认"},...m],o.position??"",y=>s({position:y}))),h.appendChild(p)}if(a("distance")&&h.appendChild(f("distance",o.distance)),a("rotate")&&h.appendChild(f("rotate",o.rotate)),a("offset")){let p=function(){const w=(x,C)=>{const D=x.value.trim();if(D==="")return 0;const T=Number(D);return Number.isFinite(T)?T:C};s({offset:[w(b,_[0]??0),w(S,_[1]??0)]})};const m=Ve("偏移 X / Y"),y=Se("div","echarts-field-row"),_=o.offset??[0,0],b=Ct({value:String(_[0]??0),type:"number"},()=>p()),S=Ct({value:String(_[1]??0),type:"number"},()=>p());y.appendChild(b),y.appendChild(S),m.appendChild(y),h.appendChild(m)}}if(["fontSize","fontWeight","color","backgroundColor","borderColor","borderWidth","borderRadius","padding"].some(a)){if(h.appendChild(Se("div","echarts-label-sub","样式")),a("fontSize")&&h.appendChild(f("fontSize",o.fontSize)),a("fontWeight")){const p=Ve("字重");p.appendChild(rf(iz,o.fontWeight??"",m=>s({fontWeight:m}))),h.appendChild(p)}for(const p of["color","backgroundColor","borderColor"])a(p)&&h.appendChild(c(p,o[p]));for(const p of["borderWidth","borderRadius","padding"])a(p)&&h.appendChild(f(p,o[p]))}if(a("labelLine.show")){if(h.appendChild(Se("div","echarts-label-sub","引导线")),h.appendChild(xa("显示引导线",o.labelLine.show===!0,p=>s({labelLine:{show:p}}))),a("labelLine.length")){const p=Ve("引导线长度");p.appendChild(Ct({value:o.labelLine.length===void 0?"":String(o.labelLine.length),type:"number"},m=>u("length",m))),h.appendChild(p)}if(a("labelLine.length2")){const p=Ve("第二段长度");p.appendChild(Ct({value:o.labelLine.length2===void 0?"":String(o.labelLine.length2),type:"number"},m=>u("length2",m))),h.appendChild(p)}a("labelLine.smooth")&&h.appendChild(xa("平滑引导线",o.labelLine.smooth===!0,p=>s({labelLine:{smooth:p}})))}return h}function oz(t){const e=t.element,r=vp(e),n=Ze(r),i=qp(r),a=d=>i.includes(d),o=e.options,s=Number(o.width)||0,l=Number(o.height)||0,u=j5(n),f=rg(),c=ez(t.fields),h=Se("div","echarts-property"),v=Se("form","pd-form");if(v.addEventListener("submit",d=>d.preventDefault()),h.appendChild(v),a("dataSource")){const d=Ve("数据源"),g=String(o.chartDataSource??"");d.appendChild(mp(dp(J5(t.data),g,c),g,p=>ht(t,r,Ae(e),{chartDataSource:p}))),v.appendChild(d)}if(a("categoryField")){const d=Ve("类目字段"),g=String(o.chartCategoryField??"");d.appendChild(mp(dp(aT(t.data,String(o.chartDataSource??"")),g,c),g,p=>ht(t,r,Ae(e),{chartCategoryField:p}))),v.appendChild(d)}if(a("valueFields")){const d=Ve(Q5(n,u)),g=tf(e);if(g.forEach((p,m)=>{const y=Se("div","echarts-field-row");if(y.appendChild(mp(dp(aT(t.data,String(o.chartDataSource??"")),p,c),p,_=>{const b=tf(e);b[m]=_,gp(t,r,b)})),g.length>1){const _=Se("button","pd-button small","−");_.type="button",_.title="删除该字段",_.addEventListener("click",()=>gp(t,r,tf(e).filter((b,S)=>S!==m))),y.appendChild(_)}d.appendChild(y)}),g.length<u){const p=Se("button","pd-button small","+ 添加字段");p.type="button",p.addEventListener("click",()=>gp(t,r,[...tf(e),""])),d.appendChild(p)}v.appendChild(d)}if(a("seriesField")){const d=Ve("系列拆分字段");d.appendChild(Ct({value:String(o.chartSeriesField??""),placeholder:"可选,如 region(按值拆成多系列)"},g=>ht(t,r,Ae(e),{chartSeriesField:g}))),v.appendChild(d)}if(a("bubble")&&v.appendChild(xa("气泡大小",o.chartBubble===!0,d=>{ht(t,r,Ae(e),{chartBubble:d})})),a("title")){const d=Ve("图表标题");d.appendChild(Ct({value:String(Sa(Ae(e).title).text??""),placeholder:"留空不显示标题"},g=>{const p=Ae(e);p.title={...Sa(p.title),text:g},ht(t,r,p)})),v.appendChild(d)}if(a("legend")){const d=Sa(Ae(e).legend).show!==!1;v.appendChild(xa("显示图例",d,g=>{const p=Ae(e);p.legend={...Sa(p.legend),show:g},ht(t,r,p)}))}if(a("palette")){const d=Ve("配色"),g=Se("select","pd-select");for(const p of f){const m=Se("option");m.value=p.key,m.textContent=p.label,g.appendChild(m)}g.value=jF(Ae(e),f),g.addEventListener("change",()=>{const p=f.find(y=>y.key===g.value)??f[0],m=Ae(e);m.color=[...p.colors],ht(t,r,m)}),d.appendChild(g),v.appendChild(d)}if(a("label")&&v.appendChild(az(t,r)),a("stack")){const g=yi(Ae(e)).some(p=>p.stack!==void 0&&p.stack!==null&&p.stack!=="");v.appendChild(xa("堆叠显示",g,p=>{const m=Ae(e);for(const y of yi(m))p?y.stack="total":delete y.stack;ht(t,r,m)}))}if(a("innerRadius")){const d=Ve("内径(%)"),g=yi(Ae(e))[0]?.radius,p=Array.isArray(g)&&Number(String(g[0]??"40%").replace("%",""))||40;d.appendChild(Ct({value:String(p),type:"number",min:0,max:90},m=>{const y=Ae(e),_=yi(y);_[0]&&(_[0].radius=[`${pp(Number(m)||0,0,90)}%`,"70%"]),ht(t,r,y)})),v.appendChild(d)}if(a("padding")){const d=Ve("内边距 上/右/下/左 (%)"),g=Yx(Ae(e),s,l),p=Se("div","echarts-field-row"),m=[{side:"top",title:"上边距"},{side:"right",title:"右边距(留外置标签)"},{side:"bottom",title:"下边距"},{side:"left",title:"左边距"}];for(const{side:y,title:_}of m)p.appendChild(Ct({value:String(g[y]),type:"number",min:0,max:60,title:_},b=>{const S=Number(b),w=Number.isFinite(S)?pp(S,0,60):Jp[y],x=Ae(e),C=Yx(x,s,l);ht(t,r,e5(x,{...C,[y]:w}))}));d.appendChild(p),v.appendChild(d)}if(a("radius")){const d=Ve("半径(%)");d.appendChild(Ct({value:String(t5(Ae(e),s,l)),type:"number",min:20,max:100},g=>{const p=Number(g),m=Number.isFinite(p)?pp(p,20,100):eg;ht(t,r,r5(Ae(e),m))})),v.appendChild(d)}if(a("gaugeRange")){const d=Ve("最小 / 最大值"),g=yi(Ae(e)),p=Se("div","echarts-field-row");p.appendChild(Ct({value:String(Number(g[0]?.min??0)),type:"number"},m=>{const y=Ae(e),_=yi(y);_[0]&&(_[0].min=Number(m)||0),ht(t,r,y)})),p.appendChild(Ct({value:String(Number(g[0]?.max??100)),type:"number"},m=>{const y=Ae(e),_=yi(y);_[0]&&(_[0].max=Number(m)||100),ht(t,r,y)})),d.appendChild(p),v.appendChild(d)}return v.appendChild(Se("p","pd-hint",q5)),h}const sz=C5({types:Xp,renderCanvas:tz,renderProperty:oz,hasProperties:Z5,group:"图表",searchKeywords:X5,styles:Y5});let _p;function lz(){return _p?.(),_p=A5(sz),_p}lz();const uz={...T5};globalThis.WormPrintEcharts??=uz}));
|