@blukavantui/charts-community 1.0.1 → 1.2.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.
Files changed (98) hide show
  1. package/LICENSE.txt +0 -2
  2. package/README.md +75 -70
  3. package/dist/bar.js +1 -1
  4. package/dist/browser/charts-community.css +1 -1
  5. package/dist/browser/charts-community.js +17 -17
  6. package/dist/build-audit.json +129 -84
  7. package/dist/catalogue-runtime.d.ts +13 -1
  8. package/dist/chunk-2GUWWKHW.js +1 -0
  9. package/dist/chunk-3PITHTEO.js +1 -0
  10. package/dist/chunk-4B5MQ6GZ.js +1 -0
  11. package/dist/chunk-4EQMOBBN.js +1 -0
  12. package/dist/chunk-4WDZUJDS.js +1 -0
  13. package/dist/chunk-5NUOOMHV.js +1 -0
  14. package/dist/chunk-7OCMRHIH.js +1 -0
  15. package/dist/chunk-CF5Q2DDP.js +1 -0
  16. package/dist/chunk-EITBQBN2.js +1 -0
  17. package/dist/chunk-FXNKAHRG.js +1 -0
  18. package/dist/chunk-IDMAFTWV.js +1 -0
  19. package/dist/chunk-ILTENI35.js +1 -0
  20. package/dist/chunk-KRMM7EWI.js +1 -0
  21. package/dist/chunk-LUUPBBD4.js +1 -0
  22. package/dist/chunk-MR5VITXX.js +1 -0
  23. package/dist/chunk-NASBRHIW.js +1 -0
  24. package/dist/chunk-NXDBBMF5.js +1 -0
  25. package/dist/chunk-OQ6MP7PY.js +1 -0
  26. package/dist/{chunk-QETOF22L.js → chunk-RC2TCMJF.js} +1 -1
  27. package/dist/{chunk-MSZ5J5WG.js → chunk-RXOGAN23.js} +1 -1
  28. package/dist/chunk-UGXWOWAG.js +2 -0
  29. package/dist/chunk-UO2KNHTU.js +2 -0
  30. package/dist/chunk-UQMMBG26.js +3 -0
  31. package/dist/chunk-VTJ4XPRV.js +1 -0
  32. package/dist/chunk-WJ3UHH6J.js +1 -0
  33. package/dist/chunk-XLJUSNGV.js +1 -0
  34. package/dist/doughnut.js +1 -1
  35. package/dist/heatmap.js +1 -1
  36. package/dist/index.js +1 -1
  37. package/dist/line.js +1 -1
  38. package/dist/motion/bar.css +1 -0
  39. package/dist/motion/bar.d.ts +8 -0
  40. package/dist/motion/bar.js +1 -0
  41. package/dist/motion/doughnut.css +1 -0
  42. package/dist/motion/doughnut.d.ts +8 -0
  43. package/dist/motion/doughnut.js +1 -0
  44. package/dist/motion/heatmap.css +1 -0
  45. package/dist/motion/heatmap.d.ts +7 -0
  46. package/dist/motion/heatmap.js +1 -0
  47. package/dist/motion/line.css +1 -0
  48. package/dist/motion/line.d.ts +8 -0
  49. package/dist/motion/line.js +1 -0
  50. package/dist/motion/pie.css +1 -0
  51. package/dist/motion/pie.d.ts +8 -0
  52. package/dist/motion/pie.js +1 -0
  53. package/dist/motion/radar.css +1 -0
  54. package/dist/motion/radar.d.ts +8 -0
  55. package/dist/motion/radar.js +1 -0
  56. package/dist/motion/scatter.css +1 -0
  57. package/dist/motion/scatter.d.ts +8 -0
  58. package/dist/motion/scatter.js +1 -0
  59. package/dist/motion/sparkline.d.ts +7 -0
  60. package/dist/motion/sparkline.js +1 -0
  61. package/dist/motion-collection.d.ts +7 -0
  62. package/dist/motion-community.d.ts +40 -0
  63. package/dist/motion-policy.d.ts +14 -0
  64. package/dist/motion.css +1 -0
  65. package/dist/motion.d.ts +40 -0
  66. package/dist/motion.js +1 -0
  67. package/dist/pie.js +1 -1
  68. package/dist/radar.js +1 -1
  69. package/dist/scatter.js +1 -1
  70. package/dist/sparkline.js +1 -1
  71. package/dist/styles.css +8 -0
  72. package/dist/web-api.json +162 -2
  73. package/dist/web-motion-sparkline.d.ts +4 -0
  74. package/edition.json +1 -1
  75. package/package.json +40 -33
  76. package/src/catalogue-runtime.ts +49 -5
  77. package/src/motion/bar.ts +15 -0
  78. package/src/motion/doughnut.ts +14 -0
  79. package/src/motion/heatmap.ts +14 -0
  80. package/src/motion/line.ts +15 -0
  81. package/src/motion/pie.ts +14 -0
  82. package/src/motion/radar.ts +15 -0
  83. package/src/motion/scatter.ts +15 -0
  84. package/src/motion/sparkline.ts +10 -0
  85. package/src/motion-collection.ts +20 -0
  86. package/src/motion-community.ts +22 -0
  87. package/src/motion-policy.ts +36 -0
  88. package/src/web-motion-sparkline.ts +37 -0
  89. package/dist/chunk-5NXLEMCV.js +0 -3
  90. package/dist/chunk-FHHQWCUO.js +0 -1
  91. package/dist/chunk-FZ7J7BEC.js +0 -1
  92. package/dist/chunk-JNSBTZUP.js +0 -2
  93. package/dist/chunk-KCW3WN5P.js +0 -1
  94. package/dist/chunk-QBKO4AG7.js +0 -1
  95. package/dist/chunk-QFXXWRD5.js +0 -1
  96. package/dist/chunk-YJKEV5J7.js +0 -2
  97. package/scripts/build.mjs +0 -31
  98. package/tsconfig.json +0 -16
@@ -1,26 +1,26 @@
1
- "use strict";var BluKavantChartsCommunity=(()=>{var Yd=Object.defineProperty;var JO=Object.getOwnPropertyDescriptor;var QO=Object.getOwnPropertyNames;var eI=Object.prototype.hasOwnProperty;var Wd=(t,e)=>{for(var r in e)Yd(t,r,{get:e[r],enumerable:!0})},tI=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of QO(e))!eI.call(t,a)&&a!==r&&Yd(t,a,{get:()=>e[a],enumerable:!(i=JO(e,a))||i.enumerable});return t};var rI=t=>tI(Yd({},"__esModule",{value:!0}),t);var XH={};Wd(XH,{createBarChart:()=>PO,createDoughnutChart:()=>zO,createHeatmap:()=>YO,createLineChart:()=>OO,createPieChart:()=>RO,createRadarChart:()=>FO,createScatterChart:()=>UO,createSparkline:()=>jO});function Xd(t){return t?["#a16aff","#00cfff","#ff2b91","#ff8a00","#36e377","#e13dff","#4285ff","#ff4056"]:["#7020ff","#0094ff","#ff006e","#ff6a00","#00b94f","#c000ff","#004fff","#ff1738"]}var iI=["Default","Primary","Secondary","Success","Processing","Warning","Error","Danger","Magenta","Red","Volcano","Orange","Gold","Lime","Green","Cyan","Blue","GeekBlue","Purple"],aI={Default:[["#f5f5f5","#000000","#1d1d1d"],["#272727","rgba(255, 255, 255, 0.95)","#dfdfdf"]],Primary:[["#eef2ff","#4f46e5","#4338ca"],["#282445","#8070ed","#b6acff"]],Secondary:[["#e2e8f0","#475569","#334155"],["#2b3240","#526077","#d6dce5"]],Success:[["#f6ffed","#52c41a","#2d6c0e"],["#162312","#49aa19","#73be4e"]],Processing:[["#e6f4ff","#2681ff","#1054b5"],["#111a2c","#145ec6","#78a7eb"]],Warning:[["#fffbe6","#faad14","#7d560a"],["#2b2111","#d89614","#dda535"]],Error:[["#fff2f0","#ff4d4f","#a33133"],["#2c1618","#dc4446","#ea8d8e"]],Danger:[["#fff2f0","#ff4d4f","#a33133"],["#2c1618","#dc4446","#ea8d8e"]],Magenta:[["#fff0f6","#ed409e","#a9196d"],["#291321","#cf3a8c","#e984b9"]],Red:[["#fff1f0","#e4202a","#b4111e"],["#2a1215","#cd1f28","#f08485"]],Volcano:[["#fff2e8","#fa541c","#aa2d0a"],["#2b1611","#d84a1b","#ed8e68"]],Orange:[["#fff7e6","#fa8c16","#904905"],["#2b1d11","#d87a16","#e89b3e"]],Gold:[["#fffbe6","#faad14","#835404"],["#2b2111","#d89614","#e8b339"]],Lime:[["#fcffe6","#a0d911","#486803"],["#1f2611","#8bbb11","#a9d134"]],Green:[["#f6ffed","#52c41a","#276d09"],["#162312","#49aa19","#6bbf3b"]],Cyan:[["#e6fffb","#13c2c2","#06686c"],["#112123","#13a8a8","#33bcb7"]],Blue:[["#e6f4ff","#2681ff","#0851c8"],["#111a2c","#145ec6","#6fa8ee"]],GeekBlue:[["#f0f5ff","#2f54eb","#1d39c4"],["#131629","#2b4acb","#89a0ea"]],Purple:[["#f9f0ff","#722ed1","#531dab"],["#1a1325","#642ab5","#b593df"]]},Ra=t=>typeof t=="string"&&iI.includes(t),qo=t=>Ra(t)||typeof t=="string"&&/^#(?:[\da-f]{3}|[\da-f]{4}|[\da-f]{6}|[\da-f]{8})$/i.test(t);function qd(t,e,r=()=>""){let i=aI[t][e?1:0],a=t.toLowerCase();return{soft:r(`--bluui-color-${a}-soft`).trim()||i[0],solid:r(`--bluui-color-${a}-solid`).trim()||i[1],text:r(`--bluui-color-${a}-text`).trim()||i[2]}}function Fr(t,e,r,i){return Ra(t)?qd(t,r,i).solid:t||e}function $d(t){if(t.startsWith("rgb"))return t.match(/[\d.]+/g).slice(0,3).map(Number);let e=t.slice(1),r=e.length<5?e.slice(0,3).split("").map(i=>i+i).join(""):e.slice(0,6);return[0,2,4].map(i=>parseInt(r.slice(i,i+2),16))}function ka(t,e){let r=Math.max(0,Math.min(1,e))*(t.length-1),i=Math.min(Math.floor(r),t.length-2),a=r-i,n=$d(t[i]),o=$d(t[i+1]);return`rgb(${n.map((s,l)=>Math.round(s+(o[l]-s)*a)).join(",")})`}function at(t){let e=$d(t).map(i=>{let a=i/255;return a<=.04045?a/12.92:((a+.055)/1.055)**2.4}),r=e[0]*.2126+e[1]*.7152+e[2]*.0722;return(r+.05)/.0656>=4.5?"#182230":1.05/(r+.05)>=4.5?"#fff":"#000"}var Dt=Object.freeze({records:1e4,observations:1e4,treeNodes:2e3,treeDepth:64,flowNodes:1e3,flowLinks:5e3,mapFeatures:5e3,mapCoordinates:25e4,mapBytes:8e6,text:1e4});function Ai(t){return typeof t=="number"&&Number.isFinite(t)&&Math.abs(t)<=Number.MAX_SAFE_INTEGER}function vr(t,e,r=Dt.records){if(!Array.isArray(t)||t.length>r)throw new Error(`${e} must be a list with at most ${r} records.`)}function Qt(t){return typeof t=="string"&&t.length<=Dt.text}function W(t,e){if(!t)throw new Error(e)}function Zo(t,e){vr(t,e);let r=new Set;for(let i of t)W(i&&Qt(i.Key)&&i.Key.length>0&&Qt(i.Label),`${e} require a non-empty Key and a Label within the text limit.`),W(!r.has(i.Key),`${e} contain a duplicate key: ${i.Key}.`),r.add(i.Key);return r}function Sl(t){return t===null||Ai(t)}function Cf(t){W(t.Height===void 0||Number.isFinite(t.Height)&&t.Height>=160&&t.Height<=1e3,"Height must be between 160 and 1000 pixels."),W(t.ValueFormat===void 0||["Currency","Number","Percent"].includes(t.ValueFormat),"Invalid ValueFormat.");for(let e of["UseCustomPrecision","ShowHeader","ShowToolbar","ShowLegend","LegendShowValues","LegendShowPercentages","ShowTooltip","ShowLabels","ShowDataTable","ShowPatterns","EnableSelection","EnableAnimation","IsLoading"])W(t[e]===void 0||typeof t[e]=="boolean",`${e} must be a boolean.`);for(let e of["AccessibleLabel","ExtendedClass","ResetKey","Title","Description","EmptyMessage","ExportFootnote","Locale","CurrencyCode"])W(t[e]===void 0||Qt(t[e]),`${e} must be text within the text limit.`);W(t.LegendStyle===void 0||["Standard","ValueList","Compact","SummaryCards"].includes(t.LegendStyle),"Invalid LegendStyle."),W(t.LegendPosition===void 0||["Top","Left","Right","Bottom"].includes(t.LegendPosition),"Invalid LegendPosition."),W(t.DecimalPlaces===void 0||Number.isInteger(t.DecimalPlaces)&&t.DecimalPlaces>=0&&t.DecimalPlaces<=12,"DecimalPlaces must be an integer from 0 to 12."),W(t.Messages===void 0||!!t.Messages&&typeof t.Messages=="object"&&!Array.isArray(t.Messages)&&Object.keys(t.Messages).length<=100&&Object.values(t.Messages).every(Qt),"Messages must contain plain text translations."),new Intl.NumberFormat(t.Locale||"en-US",t.ValueFormat==="Currency"?{style:"currency",currency:t.CurrencyCode||"USD"}:{})}function Xx(t){Cf(t);let e=Zo(t.Categories,"Categories");W(t.SelectedKey==null||e.has(t.SelectedKey),"SelectedKey must match a category."),W(t.BarLayout===void 0||["Stacked","Grouped"].includes(t.BarLayout),"Invalid BarLayout."),W(t.SmoothLines===void 0||typeof t.SmoothLines=="boolean","SmoothLines must be a boolean."),vr(t.Series,"Series"),W(t.Categories.length*t.Series.length<=Dt.observations,"Too many chart observations. Aggregate the data first.");let r=new Set;for(let i of t.Series)W(i&&Qt(i.Key)&&i.Key.length&&!r.has(i.Key),"Each series needs a unique, non-empty Key."),r.add(i.Key),W(Qt(i.Name)&&["Bar","Line"].includes(i.Type),"Each series needs a Name and a Bar or Line Type."),W(Array.isArray(i.Values)&&i.Values.length===t.Categories.length,`${i.Key}: Values must match the category count.`),W(i.Values.every(Sl),`${i.Key}: Values must be finite numbers or null.`),W(i.Color===void 0||qo(i.Color),"Series Color must be a ComponentColor or hex color."),W(i.IsDashed===void 0||typeof i.IsDashed=="boolean","IsDashed must be a boolean.")}function qx(t){Cf(t);let e=Zo(t.XCategories,"XCategories"),r=Zo(t.YCategories,"YCategories");vr(t.Cells,"Cells"),W(e.size*r.size<=Dt.observations,"Too many heatmap positions. Aggregate the data first.");let i=new Set,a=new Set;for(let n of t.Cells){W(n&&typeof n.Key=="string"&&n.Key.length&&!i.has(n.Key),"Each cell needs a unique, non-empty Key."),W(e.has(n.XKey)&&r.has(n.YKey),`${n.Key}: XKey and YKey must match category keys.`);let o=JSON.stringify([n.XKey,n.YKey]);W(!a.has(o),"Only one cell may occupy each X/Y position."),W(Sl(n.Value),`${n.Key}: Value must be a finite number or null.`),a.add(o),i.add(n.Key)}W(t.SelectedKey==null||i.has(t.SelectedKey),"SelectedKey must match a cell."),W(t.ColorScale===void 0||Ra(t.ColorScale)||["Automatic","Teal","Diverging"].includes(t.ColorScale),"Invalid ColorScale."),W(t.MinValue===void 0||Number.isFinite(t.MinValue),"MinValue must be finite."),W(t.MaxValue===void 0||Number.isFinite(t.MaxValue),"MaxValue must be finite."),W(t.MinValue===void 0||t.MaxValue===void 0||t.MinValue<t.MaxValue,"MinValue must be less than MaxValue.")}function H(t){return t.replace(/[&<>"']/g,e=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[e])}function si(t,e,r="Label"){vr(t,e);let i=new Set;for(let a of t)W(a&&Qt(a.Key)&&a.Key.length&&!i.has(a.Key),`${e} require unique, non-empty keys.`),W(!r||Qt(a[r]),`${a.Key}: ${r} must be text within the text limit.`),W(a.Color===void 0||qo(a.Color),`${a.Key}: Color must be a shared ComponentColor or hex color.`),i.add(a.Key);return i}var Hr=Ai;function wf(t){return t===null||Hr(t)&&t>=0}function er(t,e,r){W(t[e]===void 0||r.includes(t[e]),`Invalid ${e}. Choose ${r.join(", ")}.`)}function Tf(t){W(t?.type==="FeatureCollection"&&Array.isArray(t.features)&&t.features.length>0,"GeoJSON must be a non-empty FeatureCollection."),vr(t.features,"Map features",Dt.mapFeatures);let e=0,r=new Set;t.features.forEach(i=>{W(i?.type==="Feature"&&typeof i.properties?.name=="string"&&i.properties.name.length&&!r.has(i.properties.name),"Each map feature needs a unique properties.name region key."),r.add(i.properties.name),W(["Polygon","MultiPolygon"].includes(i.geometry?.type),"Map geometry must be Polygon or MultiPolygon.");let a=i.geometry.type==="Polygon"?[i.geometry.coordinates]:i.geometry.coordinates;W(Array.isArray(a)&&a.length>0,"Map polygons must contain coordinates.");for(let n of a){W(Array.isArray(n)&&n.length>0,"Each polygon needs rings.");for(let o of n)W(Array.isArray(o)&&o.length>=4,"Each polygon ring needs at least four coordinates."),e+=o.length,W(e<=Dt.mapCoordinates,"Map has too many coordinates. Use a simplified boundary file."),o.forEach(s=>W(Array.isArray(s)&&s.length>=2&&Hr(s[0])&&Hr(s[1])&&Math.abs(s[0])<=180&&Math.abs(s[1])<=90,"Map coordinates must be longitude/latitude in degrees.")),W(o[0][0]===o.at(-1)[0]&&o[0][1]===o.at(-1)[1],"Polygon rings must close.")}})}function Zd(t){return typeof t=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(t)&&Number.isFinite(Date.parse(t+"T00:00:00Z"))&&new Date(t+"T00:00:00Z").toISOString().slice(0,10)===t}function Zx(t,e){Cf(e),"Series"in e&&(vr(e.Series,"Series"),vr(e.Categories,"Categories"),W(e.Series.length*e.Categories.length<=Dt.observations,"Too many chart observations. Aggregate the data first."));for(let r of["ShowArea","Nested","Bubble","Drilldown","ShowConversion","Roam"])W(e[r]===void 0||typeof e[r]=="boolean",`${r} must be a boolean.`);if(t==="radar"){let r=e;Zo(r.Categories,"Categories"),W(r.Categories.length===0||r.Categories.length>=3&&r.Categories.length<=12,"Radar needs 3\u201312 categories, or an empty array for an empty state."),si(r.Series,"Series"),r.Categories.forEach(i=>W(i.Max===void 0||Hr(i.Max)&&i.Max>0,`${i.Key}: Max must be a positive number.`)),r.Series.forEach(i=>{W(Array.isArray(i.Values)&&i.Values.length===r.Categories.length&&i.Values.every(wf),`${i.Key}: Values must match categories and contain non-negative numbers or null.`),i.Values.forEach((a,n)=>W(a===null||r.Categories[n].Max===void 0||a<=r.Categories[n].Max,`${i.Key}: Value exceeds ${r.Categories[n].Label} Max.`))}),er(r,"GridShape",["Polygon","Circle"]),W(r.SplitNumber===void 0||Number.isInteger(r.SplitNumber)&&r.SplitNumber>=2&&r.SplitNumber<=8,"SplitNumber must be an integer from 2 to 8."),W(r.ShowAxisBounds===void 0||typeof r.ShowAxisBounds=="boolean","ShowAxisBounds must be Boolean.")}else if(["line","bar","polar"].includes(t)){let r=e;Zo(r.Categories,"Categories"),si(r.Series,"Series"),r.Series.forEach(i=>{W(Array.isArray(i.Values)&&i.Values.length===r.Categories.length&&i.Values.every(Sl),`${i.Key}: Values must match categories and contain finite numbers or null.`),r.Stacking==="Percent"&&W(i.Values.every(a=>a===null||a>=0),"Percentage stacks require non-negative values.")}),er(r,"Orientation",["Vertical","Horizontal"]),er(r,"Stacking",["None","Stacked","Percent"]),er(r,"LineStyle",["Straight","Smooth","Step"]),er(r,"PolarType",["Bar","Line"])}else if(["pie","doughnut","nightingale","funnel"].includes(t)){let r=e;if(si(r.Items,"Items"),r.Items.forEach(i=>W(wf(i.Value),`${i.Key}: Value must be non-negative or null.`)),t!=="funnel"){let i=si(r.Rings||[],"Rings");r.Items.forEach(a=>W(!a.RingKey||i.has(a.RingKey),`${a.Key}: RingKey must match a ring.`)),r.Nested&&(W(i.size>0,"Nested charts need Rings."),r.Items.forEach(a=>W(a.RingKey&&i.has(a.RingKey),`${a.Key}: nested items need RingKey.`))),er(r,"Shape",["Full","Half"]),er(r,"LabelPosition",["Outside","Inside"]),er(r,"RoseMode",["Area","Radius"]),W(r.InnerRadius===void 0||Hr(r.InnerRadius)&&r.InnerRadius>=0&&r.InnerRadius<=75,"InnerRadius must be 0\u201375 percent."),W(r.CenterLabel===void 0||typeof r.CenterLabel=="string","CenterLabel must be text.")}else er(e,"Sort",["Input","Descending","Ascending"])}else if(t==="calendar-heatmap"){let r=e;W(Zd(r.RangeStart)&&Zd(r.RangeEnd),"RangeStart and RangeEnd must be real dates in YYYY-MM-DD format.");let i=(Date.parse(r.RangeEnd)-Date.parse(r.RangeStart))/864e5;W(i>=0&&i<=365,"Choose a calendar range of 1\u2013366 days."),si(r.Items,"Items");let a=new Set;r.Items.forEach(n=>{W(Zd(n.Date),`${n.Key}: Date must be a real YYYY-MM-DD date.`),W(n.Date>=r.RangeStart&&n.Date<=r.RangeEnd,`${n.Key}: Date must be within the calendar range.`),W(!a.has(n.Date),"Use one item per date. Aggregate observations before passing the data."),W(wf(n.Value),`${n.Key}: Value must be non-negative or null.`),a.add(n.Date)}),er(r,"FirstDay",["Monday","Sunday"]),W(r.ColorScale===void 0||r.ColorScale==="Automatic"||qo(r.ColorScale),"Invalid ColorScale.");for(let n of["ShowMonthLabels","ShowDayLabels"])W(r[n]===void 0||typeof r[n]=="boolean",`${n} must be a boolean.`)}else if(t==="scatter"){let r=e;si(r.Points,"Points"),r.Points.forEach(i=>{W(Hr(i.X)&&Hr(i.Y),`${i.Key}: X and Y must be finite numbers.`),W(i.Size===void 0||Hr(i.Size)&&i.Size>=0,`${i.Key}: Size must be non-negative.`),W(i.Group===void 0||typeof i.Group=="string","Group must be text.")});for(let i of["XLabel","YLabel"])W(r[i]===void 0||typeof r[i]=="string",`${i} must be text.`)}else if(t==="treemap"){let r=e,i=si(r.Nodes,"Nodes");r.Nodes.forEach(o=>{W(o.ParentKey===null||typeof o.ParentKey=="string"&&i.has(o.ParentKey),`${o.Key}: ParentKey must be null or match a node.`),W(wf(o.Value),`${o.Key}: Value must be non-negative or null.`)});let a=Ef(r.Nodes),n=new Set(r.Nodes.map(o=>o.ParentKey));r.Nodes.forEach(o=>{n.has(o.Key)&&o.Value!==null&&W(a.get(o.Key)!==null&&Math.abs(a.get(o.Key)-o.Value)<1e-6,`${o.Key}: branch Value must equal its leaf total, or use null to calculate it.`)})}else if(t==="sankey"){let r=e,i=si(r.Nodes,"Nodes");si(r.Links,"Links",""),vr(r.Nodes,"Flow nodes",Dt.flowNodes),vr(r.Links,"Flow links",Dt.flowLinks);let a=new Map(r.Nodes.map(u=>[u.Key,[]]));r.Links.forEach(u=>{W(i.has(u.SourceKey)&&i.has(u.TargetKey),`${u.Key}: link endpoints must match node keys.`),W(Hr(u.Value)&&u.Value>=0,`${u.Key}: Value must be non-negative.`),a.get(u.SourceKey).push(u.TargetKey)});let n=new Map,o=new Map;for(let u of r.Links)n.set(u.TargetKey,(n.get(u.TargetKey)||0)+u.Value),o.set(u.SourceKey,(o.get(u.SourceKey)||0)+u.Value);W([...n.values(),...o.values()].every(Ai),"Flow totals exceed the supported numeric range.");let s=new Map(r.Nodes.map(u=>[u.Key,0]));r.Links.forEach(u=>s.set(u.TargetKey,s.get(u.TargetKey)+1));let l=[...s].filter(([,u])=>!u).map(([u])=>u);for(let u=0;u<l.length;u++)for(let f of a.get(l[u])){let c=s.get(f)-1;s.set(f,c),c||l.push(f)}W(l.length===i.size,"Sankey links cannot contain cycles."),er(r,"Orientation",["Horizontal","Vertical"]),er(r,"NodeAlign",["Justify","Left","Right"]),W(r.Links.every(u=>!i.has(u.Key)),"Link keys must be distinct from node keys.")}else{let r=e;si(r.Regions,"Regions"),si(r.Locations,"Locations"),r.Regions.forEach(i=>W(Sl(i.Value),`${i.Key}: Value must be finite or null.`)),r.Locations.forEach(i=>{W(Hr(i.Longitude)&&Math.abs(i.Longitude)<=180&&Hr(i.Latitude)&&Math.abs(i.Latitude)<=90,`${i.Key}: invalid longitude/latitude.`),W(Hr(i.Value)&&i.Value>=0,`${i.Key}: Value must be non-negative.`)}),W(r.Locations.every(i=>!r.Regions.some(a=>a.Key===i.Key)),"Location and region keys must be distinct."),er(r,"Map",["World","US","Custom"]),er(r,"MapView",["Mainland","Full"]),W(r.MapURL===void 0||Qt(r.MapURL)&&!!r.MapURL,"MapURL must be non-empty text."),W(!r.MapURL||!r.GeoJSON,"Supply either MapURL or GeoJSON, not both."),W(!r.MapURL||r.Map==="Custom","MapURL requires Map Custom."),er(r,"MapMode",["Regions","Locations","Combined"]),W(r.ColorScale===void 0||r.ColorScale==="Automatic"||qo(r.ColorScale),"Invalid ColorScale."),r.GeoJSON!==void 0&&Tf(r.GeoJSON),r.Map==="Custom"&&(W(r.GeoJSON||r.MapURL,"Custom maps need GeoJSON or MapURL."),r.GeoJSON&&jo(r,r.GeoJSON))}W(e.SelectedKey==null||tr(t,e).some(r=>r.Key===e.SelectedKey),"SelectedKey must match an input key.")}function jo(t,e){let r=new Set(e.features.map(i=>i.properties.name));t.Regions.forEach(i=>W(r.has(i.Key),`Region ${i.Key} does not exist in this map. Use its properties.name key.`))}function Ef(t){vr(t,"Tree nodes",Dt.treeNodes);let e=new Map,r=new Map;for(let a of t){let n=e.get(a.ParentKey)||[];n.push(a),e.set(a.ParentKey,n)}let i=(e.get(null)||[]).map(a=>({n:a,depth:1}));for(let a=0;a<i.length;a++){let{n,depth:o}=i[a];W(o<=Dt.treeDepth,"Tree exceeds maximum depth.");for(let s of e.get(n.Key)||[])i.push({n:s,depth:o+1});W(i.length<=t.length,"Tree nodes cannot contain cycles.")}W(i.length===t.length,"Tree nodes cannot contain cycles or disconnected parents.");for(let a=i.length-1;a>=0;a--){let n=i[a].n,o=e.get(n.Key)||[],s=o.map(u=>r.get(u.Key)).filter(u=>u!=null),l=o.length?s.length?s.reduce((u,f)=>u+f,0):null:n.Value;W(l===null||Ai(l),"Tree total exceeds the supported numeric range."),r.set(n.Key,l)}return r}function tr(t,e){if(t==="radar"){let i=e;return i.Series.flatMap(a=>i.Categories.map((n,o)=>({Key:a.Key,Label:n.Label,Value:a.Values[o],CategoryKey:n.Key,SeriesKey:a.Key,SeriesName:a.Label})))}if(["line","bar","polar"].includes(t)){let i=e;return i.Series.flatMap(a=>i.Categories.map((n,o)=>({Key:n.Key,Label:n.Label,Value:a.Values[o],SeriesKey:a.Key,SeriesName:a.Label})))}if(["pie","doughnut","nightingale","funnel"].includes(t))return e.Items.map(i=>({Key:i.Key,Label:i.Label,Value:i.Value,RingKey:i.RingKey}));if(t==="calendar-heatmap")return e.Items.map(i=>({...i}));if(t==="scatter")return e.Points.map(i=>({...i,Value:i.Y}));if(t==="treemap"){let i=e,a=Ef(i.Nodes);return i.Nodes.map(n=>({Key:n.Key,Label:n.Label,Value:a.get(n.Key),ParentKey:n.ParentKey}))}if(t==="sankey"){let i=e;return[...i.Nodes.map(a=>({Key:a.Key,Label:a.Label,PointType:"Node",Value:Math.max(i.Links.filter(n=>n.SourceKey===a.Key).reduce((n,o)=>n+o.Value,0),i.Links.filter(n=>n.TargetKey===a.Key).reduce((n,o)=>n+o.Value,0))})),...i.Links.map(a=>({Key:a.Key,Label:`${i.Nodes.find(n=>n.Key===a.SourceKey)?.Label} \u2192 ${i.Nodes.find(n=>n.Key===a.TargetKey)?.Label}`,Value:a.Value,SourceKey:a.SourceKey,TargetKey:a.TargetKey,PointType:"Link"}))]}let r=e;return[...r.Regions.map(i=>({...i,PointType:"Region"})),...r.Locations.map(i=>({...i,PointType:"Location"}))]}var jx={Title:"Chart",Description:"",Height:320,ValueFormat:"Number",CurrencyCode:"USD",Locale:"en-US",UseCustomPrecision:!1,DecimalPlaces:2,AccessibleLabel:"",ExtendedClass:"",ResetKey:"",Messages:{},ShowHeader:!0,ShowToolbar:!0,ShowLegend:!0,LegendStyle:"Standard",LegendPosition:"Top",LegendShowValues:!0,LegendShowPercentages:!1,ShowTooltip:!0,ShowLabels:!1,ShowDataTable:!0,ShowPatterns:!1,EnableSelection:!0,EnableAnimation:!0,IsLoading:!1,EmptyMessage:"No data to display",SelectedKey:null,ExportFootnote:"BluKavantUI Charts"};function De(t,e,r=!1){return t===null?e.Messages?.NoData??"No data":new Intl.NumberFormat(e.Locale||"en-US",{style:e.ValueFormat==="Currency"?"currency":e.ValueFormat==="Percent"?"percent":"decimal",currency:e.CurrencyCode||"USD",notation:r?"compact":"standard",...r?{maximumFractionDigits:1}:e.UseCustomPrecision?{minimumFractionDigits:e.DecimalPlaces??2,maximumFractionDigits:e.DecimalPlaces??2}:e.ValueFormat==="Currency"?{}:{maximumFractionDigits:12}}).format(t)}function Jx(t,e){return t===null?"No data":e??String(t)}function Qx(t,e,r=0){let i=t.Categories[e],a=t.Series[r];return i&&a?{Key:i.Key,CategoryLabel:i.Label,SeriesKey:a.Key,SeriesName:a.Name,Value:a.Values[e]}:null}function Af(t,e){let r=t.Cells[e];return r?{...r,XLabel:t.XCategories.find(i=>i.Key===r.XKey).Label,YLabel:t.YCategories.find(i=>i.Key===r.YKey).Label}:null}function e_(t){let e=0,r=0;for(let i of t.Cells)i.Value!==null&&(e=Math.min(e,i.Value),r=Math.max(r,i.Value));return e=t.MinValue??e,r=t.MaxValue??r,e>=r&&(t.MaxValue!==void 0?e=r-1:r=e+1),{min:e,max:r}}var nI=3.2;function jd(t){if(t.startsWith("#")){let r=t.slice(1);return r.length<=4&&(r=r.split("").map(i=>i+i).join("")),[0,2,4].map(i=>parseInt(r.slice(i,i+2),16)).concat(r.length===8?parseInt(r.slice(6),16)/255:1)}let e=t.match(/[\d.]+/g)?.map(Number);return e&&e.length>=3?[...e.slice(0,3),e[3]??1]:[24,34,48,1]}function oI(t){return`rgb(${t.slice(0,3).map(e=>Math.round(e)).join(",")})`}function sI(t,e){let r=jd(t),i=jd(e);return oI(r.slice(0,3).map((a,n)=>a*r[3]+i[n]*(1-r[3])))}function t_(t){let e=jd(t).slice(0,3).map(r=>{let i=r/255;return i<=.04045?i/12.92:((i+.055)/1.055)**2.4});return e[0]*.2126+e[1]*.7152+e[2]*.0722}function Cl(t,e){let r=t_(t),i=t_(e);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}function Ot(t,e,r=nI){let i=sI(t,e);if(Cl(i,e)>=r)return i;let a=Cl("#000",e)>=Cl("#fff",e)?"#000":"#fff",n=Math.min(r,Cl(a,e)),o=0,s=1;for(let l=0;l<20;l++){let u=(o+s)/2;Cl(ka([i,a],u),e)>=n?s=u:o=u}return ka([i,a],s)}function r_(t,e){let r=Ot(t,e,9);return[Ot(ka([e,r],.12),e),r]}var za=t=>["circle","diamond","triangle","rect","roundRect","pin","arrow","emptyCircle","emptyDiamond","emptyTriangle","emptyRect","emptyRoundRect"][t%12],Jo=t=>["solid","dashed","dotted"][(t+Math.floor(t/12))%3];function mr(t,e){let r=[{symbol:"rect",symbolSize:0,dashArrayX:[1,0],dashArrayY:[1,8],rotation:0},{symbol:"rect",symbolSize:1,dashArrayX:[1,0],dashArrayY:[1,8],rotation:Math.PI/4},{symbol:"circle",symbolSize:1,dashArrayX:[2,7],dashArrayY:[2,7],rotation:0},{symbol:"rect",symbolSize:1,dashArrayX:[1,0],dashArrayY:[1,8],rotation:-Math.PI/4},{symbol:"rect",symbolSize:1,dashArrayX:[1,0],dashArrayY:[1,6],rotation:0},{symbol:"rect",symbolSize:1,dashArrayX:[3,5],dashArrayY:[3,5],rotation:Math.PI/4},{symbol:"triangle",symbolSize:1,dashArrayX:[4,6],dashArrayY:[4,6],rotation:0},{symbol:"diamond",symbolSize:1,dashArrayX:[4,6],dashArrayY:[4,6],rotation:0},{symbol:"rect",symbolSize:1,dashArrayX:[1,0],dashArrayY:[1,3,1,7],rotation:Math.PI/4},{symbol:"circle",symbolSize:1,dashArrayX:[2,3],dashArrayY:[2,3],rotation:0},{symbol:"rect",symbolSize:1,dashArrayX:[1,0],dashArrayY:[3,4],rotation:-Math.PI/4},{symbol:"rect",symbolSize:1,dashArrayX:[4,4],dashArrayY:[1,5],rotation:0}];return{...r[t%r.length],color:at(e),backgroundColor:"none"}}function rr(t){return{color:t,borderColor:at(t),borderWidth:2,borderType:"solid"}}function Vt(t,e,r=!1,i){return{color:t,opacity:1,borderColor:e,borderWidth:1.5,borderType:"solid",...r?rr(t):{},...i===void 0?{}:{decal:mr(i,t)}}}function Mf(t,e,r=8){return({labelRect:i})=>({hideOverlap:!0,dx:Math.max(0,8-i.x)+Math.min(0,t-8-i.x-i.width),dy:Math.max(0,r-i.y)+Math.min(0,e-8-i.y-i.height)})}function i_(t,e,r,i=!1,a=640){let n="line",o=t,s=tr(n,t),l=(C,T)=>o.ShowPatterns?mr(C,T):void 0,u=e.palette,f=(C,T)=>Ot(e.forcedColors?e.text:Fr(C,u[T%u.length],e.dark,e.read),e.surface,n==="line"||n==="radar"||n==="polar"&&o.PolarType==="Line"?4.5:3.2),c=(C,T,A)=>Vt(f(T,A),e.surface,o.SelectedKey===C),h=(C,T)=>s.find(A=>A.Key===C&&(!T||A.SeriesKey===T)),d={data:["line","radar","bar","polar"].includes(n)?o.Series.map(C=>C.Label):n==="scatter"?[...new Set(o.Points.map(C=>C.Group||"Observations"))]:["pie","doughnut","nightingale","funnel"].includes(n)?[...new Set(o.Items.map(C=>C.Label))]:[],show:o.ShowLegend,type:"scroll",top:6,left:10,right:10,itemWidth:24,itemHeight:12,selectedMode:!1,pageTextStyle:{color:e.muted},pageIconColor:e.text,textStyle:{color:e.muted,fontSize:11}},v={show:o.ShowLabels,color:at(e.surface),fontSize:11,backgroundColor:e.surface,padding:[2,3],borderRadius:2},m={show:o.ShowTooltip,confine:!0,enterable:!0,backgroundColor:e.surface,borderColor:e.border,textStyle:{color:e.text,fontSize:12},formatter:C=>{let T=C.data?.point;if(!T)return`${H(C.name||"")}${C.value==null||Number.isNaN(C.value)?" \xB7 No data":""}`;let A=T.Date?`<br/>${H(T.Date)}<br/><strong>${H(De(T.Value,o))}</strong>`:T.X!==void 0?`<br/>${H(o.XLabel||"X")}: ${T.X}<br/>${H(o.YLabel||"Y")}: ${T.Y}${T.Size===void 0?"":`<br/>Size: ${T.Size}`}`:`<br/><strong>${H(De(T.Value,o))}</strong>`;return`${H(T.SeriesName?`${T.SeriesName} \xB7 ${T.Label}`:T.Label)}${A}${C.data?.conversion?`<br/>${H(C.data.conversion)}`:""}`}},g={backgroundColor:e.surface,color:u.map((C,T)=>f(C,T)),animation:!!o.EnableAnimation&&!i,animationDuration:300,animationDurationUpdate:150,textStyle:{fontFamily:"Inter,system-ui,sans-serif",color:e.text},aria:{enabled:!0,description:`${o.Title}. ${o.Description||""} Exact values and keyboard selection are in the data table.`},tooltip:m},y={axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:e.muted,fontSize:10,hideOverlap:!0},splitLine:{lineStyle:{color:e.border,type:"dashed"}}},x=t,_=x.Stacking==="Percent",S={...y,type:"category",data:x.Categories.map(C=>C.Label),axisLabel:{...y.axisLabel,width:Math.min(n==="polar"?100:140,a*.2),overflow:"truncate"},splitLine:{show:!1}},b={...y,type:"value",max:_?1:void 0,axisLabel:{...y.axisLabel,formatter:C=>_?`${Math.round(C*100)}%`:De(C,o,!0)}},w=(n==="bar"||n==="polar"&&x.PolarType!=="Line")&&(n==="polar"||!!x.Stacking&&x.Stacking!=="None"),M=x.Series.map((C,T)=>({id:C.Key,name:C.Label,type:n==="line"||n==="polar"&&x.PolarType==="Line"?"line":"bar",coordinateSystem:n==="polar"?"polar":"cartesian2d",stack:x.Stacking&&x.Stacking!=="None"?"total":void 0,smooth:x.LineStyle==="Smooth",step:x.LineStyle==="Step"?"middle":!1,connectNulls:!1,areaStyle:x.ShowArea?{opacity:.1}:void 0,barMaxWidth:38,symbol:za(T),symbolSize:8,itemStyle:{...Vt(f(C.Color,T),e.surface),decal:l(T,f(C.Color,T))},lineStyle:{width:2.5,color:f(C.Color,T),type:Jo(T)},label:{...v,color:w?at(f(C.Color,T)):at(e.surface),backgroundColor:w?f(C.Color,T):e.surface,position:w?"inside":n==="bar"&&x.Orientation==="Horizontal"?"right":"top",formatter:A=>_?`${Math.round(Number(A.value)*100)}%`:De(A.data.point.Value,o,!0)},labelLayout:{hideOverlap:!0},emphasis:{focus:"none",scale:!1},blur:{itemStyle:{opacity:1},lineStyle:{opacity:1},label:{opacity:1}},data:C.Values.map((A,D)=>({value:A===null?null:_?A/(x.Series.reduce((L,O)=>L+(O.Values[D]||0),0)||1):A,point:h(x.Categories[D].Key,C.Key),itemStyle:{...c(x.Categories[D].Key,C.Color,T),decal:l(T,f(C.Color,T))},emphasis:{itemStyle:rr(f(C.Color,T))}}))}));return n==="polar"?{...g,legend:d,polar:{radius:["12%","72%"],center:["50%","55%"]},angleAxis:{...S,startAngle:90},radiusAxis:b,series:M}:{...g,legend:d,grid:{left:14,right:22,top:o.ShowLegend?48:20,bottom:16,containLabel:!0},xAxis:x.Orientation==="Horizontal"?b:S,yAxis:x.Orientation==="Horizontal"?{...S,inverse:!0}:b,series:M}}var Jd=function(t,e){return Jd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},Jd(t,e)};function N(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Jd(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var lI=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),uI=(function(){function t(){this.browser=new lI,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})(),Va=new uI;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Va.wxa=!0,Va.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Va.worker=!0:!Va.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Va.node=!0,Va.svgSupported=!0):fI(navigator.userAgent,Va);function fI(t,e){var r=e.browser,i=t.match(/Firefox\/([\d.]+)/),a=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),n=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);i&&(r.firefox=!0,r.version=i[1]),a&&(r.ie=!0,r.version=a[1]),n&&(r.edge=!0,r.version=n[1],r.newEdge=+n[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 ye=Va;var Lf=12,Qd="sans-serif",gr=Lf+"px "+Qd,cI=20,pI=100,hI="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function dI(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var i=String.fromCharCode(r+32),a=(t.charCodeAt(r)-cI)/pI;e[i]=a}return e}var vI=dI(hI),St={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,i){if(!t){var a=St.createCanvas();t=a&&a.getContext("2d")}if(t)return e!==i&&(e=t.font=i||gr),t.measureText(r);r=r||"",i=i||gr;var n=/((?:\d+)?\.?\d*)px/.exec(i),o=n&&+n[1]||Lf,s=0;if(i.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=vI[r[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(t,e,r){var i=new Image;return i.onload=e,i.onerror=r,i.src=t,i},getTime:function(){return Date.now?Date.now():+new Date}};var o_=ir(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),s_=ir(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Tl=Object.prototype.toString,Of=Array.prototype,mI=Of.forEach,gI=Of.filter,tv=Of.slice,yI=Of.map,a_=function(){}.constructor,Df=a_?a_.prototype:null,rv="__proto__",ev=2311,xI=Math.pow(2,53)-1;function If(){return ev>=xI&&(ev=0),ev++}function Pf(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function Q(t){if(t==null||typeof t!="object")return t;var e=t,r=Tl.call(t);if(r==="[object Array]"){if(!wl(t)){e=[];for(var i=0,a=t.length;i<a;i++)e[i]=Q(t[i])}}else if(s_[r]){if(!wl(t)){var n=t.constructor;if(n.from)e=n.from(t);else{e=new n(t.length);for(var i=0,a=t.length;i<a;i++)e[i]=t[i]}}}else if(!o_[r]&&!wl(t)&&!Qo(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==rv&&(e[o]=Q(t[o]))}return e}function Se(t,e,r){if(!$(e)||!$(t))return r?Q(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==rv){var a=t[i],n=e[i];$(n)&&$(a)&&!z(n)&&!z(a)&&!Qo(n)&&!Qo(a)&&!n_(n)&&!n_(a)&&!wl(n)&&!wl(a)?Se(a,n,r):(r||!(i in t))&&(t[i]=Q(e[i]))}return t}function k(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==rv&&(t[r]=e[r]);return t}function l_(t,e,r){t=t||{};for(var i=0;i<r.length;i++){var a=r[i];t[a]=e[a]}return t}function ue(t,e,r){for(var i=ae(e),a=0,n=i.length;a<n;a++){var o=i[a];(r?e[o]!=null:t[o]==null)&&(t[o]=e[o])}return t}var S5=St.createCanvas;function pe(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r}return-1}function u_(t,e){var r=t.prototype;function i(){}i.prototype=e.prototype,t.prototype=new i;for(var a in r)r.hasOwnProperty(a)&&(t.prototype[a]=r[a]);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 i=Object.getOwnPropertyNames(e),a=0;a<i.length;a++){var n=i[a];n!=="constructor"&&(r?e[n]!=null:t[n]==null)&&(t[n]=e[n])}else ue(t,e,r)}function lt(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function E(t,e,r){if(t&&e)if(t.forEach&&t.forEach===mI)t.forEach(e,r);else if(t.length===+t.length)for(var i=0,a=t.length;i<a;i++)e.call(r,t[i],i,t);else for(var n in t)t.hasOwnProperty(n)&&e.call(r,t[n],n,t)}function B(t,e,r){if(!t)return[];if(!e)return Nf(t);if(t.map&&t.map===yI)return t.map(e,r);for(var i=[],a=0,n=t.length;a<n;a++)i.push(e.call(r,t[a],a,t));return i}function ir(t,e,r,i){if(t&&e){for(var a=0,n=t.length;a<n;a++)r=e.call(i,r,t[a],a,t);return r}}function ke(t,e,r){if(!t)return[];if(!e)return Nf(t);if(t.filter&&t.filter===gI)return t.filter(e,r);for(var i=[],a=0,n=t.length;a<n;a++)e.call(r,t[a],a,t)&&i.push(t[a]);return i}function es(t,e,r){if(t&&e){for(var i=0,a=t.length;i<a;i++)if(e.call(r,t[i],i,t))return t[i]}}function ae(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 _I(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return function(){return t.apply(e,r.concat(tv.call(arguments)))}}var se=Df&&j(Df.bind)?Df.call.bind(Df.bind):_I;function ut(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(tv.call(arguments)))}}function z(t){return Array.isArray?Array.isArray(t):Tl.call(t)==="[object Array]"}function j(t){return typeof t=="function"}function G(t){return typeof t=="string"}function El(t){return Tl.call(t)==="[object String]"}function me(t){return typeof t=="number"}function $(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function n_(t){return!!o_[Tl.call(t)]}function ft(t){return!!s_[Tl.call(t)]}function Qo(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function ts(t){return t.colorStops!=null}function Gr(t){return t!==t}function Ua(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,i=t.length;r<i;r++)if(t[r]!=null)return t[r]}function q(t,e){return t??e}function Or(t,e,r){return t??e??r}function Nf(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return tv.apply(t,e)}function rs(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 $e(t,e){if(!t)throw new Error(e)}function Bt(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var f_="__ec_primitive__";function is(t){t[f_]=!0}function wl(t){return t[f_]}var bI=(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 ae(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var i in r)r.hasOwnProperty(i)&&e(r[i],i)},t})(),c_=typeof Map=="function";function SI(){return c_?new Map:new bI}var CI=(function(){function t(e){var r=z(e);this.data=SI();var i=this;e instanceof t?e.each(a):e&&E(e,a);function a(n,o){r?i.set(n,o):i.set(o,n)}}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(i,a){e.call(r,i,a)})},t.prototype.keys=function(){var e=this.data.keys();return c_?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function ee(t){return new CI(t)}function p_(t,e){for(var r=new t.constructor(t.length+e.length),i=0;i<t.length;i++)r[i]=t[i];for(var a=t.length,i=0;i<e.length;i++)r[i+a]=e[i];return r}function Ba(t,e){var r;if(Object.create)r=Object.create(t);else{var i=function(){};i.prototype=t,r=new i}return e&&k(r,e),r}function le(t,e){return t.hasOwnProperty(e)}function Xe(){}var as=180/Math.PI,C5=Number.EPSILON||Math.pow(2,-52);function Fa(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function h_(t){return[t[0],t[1]]}function Rf(t,e,r){return t[0]=e,t[1]=r,t}function iv(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function d_(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function wI(t){return Math.sqrt(TI(t))}function TI(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 v_(t,e){var r=wI(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function zf(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Al=zf;function EI(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Mn=EI;function Vf(t,e,r,i){return t[0]=e[0]+i*(r[0]-e[0]),t[1]=e[1]+i*(r[1]-e[1]),t}function Ft(t,e,r){var i=e[0],a=e[1];return t[0]=r[0]*i+r[2]*a+r[4],t[1]=r[1]*i+r[3]*a+r[5],t}function oa(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function sa(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var ns=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),AI=(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 ns(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var i=e.offsetX,a=e.offsetY,n=i-this._x,o=a-this._y;this._x=i,this._y=a,r.drift(n,o,e),this.handler.dispatchToElement(new ns(r,e),"drag",e.event);var s=this.handler.findHover(i,a,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new ns(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new ns(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new ns(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new ns(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),m_=AI;var MI=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,i,a){this._$handlers||(this._$handlers={});var n=this._$handlers;if(typeof r=="function"&&(a=i,i=r,r=null),!i||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),n[e]||(n[e]=[]);for(var s=0;s<n[e].length;s++)if(n[e][s].h===i)return this;var l={h:i,query:r,ctx:a||this,callAtLast:i.zrEventfulCallAtLast},u=n[e].length-1,f=n[e][u];return f&&f.callAtLast?n[e].splice(u,0,l):n[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 i=this._$handlers;if(!i)return this;if(!e)return this._$handlers={},this;if(r){if(i[e]){for(var a=[],n=0,o=i[e].length;n<o;n++)i[e][n].h!==r&&a.push(i[e][n]);i[e]=a}i[e]&&i[e].length===0&&delete i[e]}else delete i[e];return this},t.prototype.trigger=function(e){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var a=this._$handlers[e],n=this._$eventProcessor;if(a)for(var o=r.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(n&&n.filter&&u.query!=null&&!n.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 n&&n.afterTrigger&&n.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var a=this._$handlers[e],n=this._$eventProcessor;if(a)for(var o=r.length,s=r[o-1],l=a.length,u=0;u<l;u++){var f=a[u];if(!(n&&n.filter&&f.query!=null&&!n.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 n&&n.afterTrigger&&n.afterTrigger(e),this},t})(),ar=MI;var LI=Math.log(2);function av(t,e,r,i,a,n){var o=i+"-"+a,s=t.length;if(n.hasOwnProperty(o))return n[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~a)/LI);return t[r][l]}for(var u=i|1<<r,f=r+1;i&1<<f;)f++;for(var c=0,h=0,p=0;h<s;h++){var d=1<<h;d&a||(c+=(p%2?-1:1)*t[r][h]*av(t,e-1,f,u,a|d,n),p++)}return n[o]=c,c}function nv(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]]],i={},a=av(r,8,0,0,0,i);if(a!==0){for(var n=[],o=0;o<8;o++)for(var s=0;s<8;s++)n[s]==null&&(n[s]=0),n[s]+=((o+s)%2?-1:1)*av(r,7,o===0?1:0,1<<o,1<<s,i)/a*e[o];return function(l,u,f){var c=u*n[6]+f*n[7]+1;l[0]=(u*n[0]+f*n[1]+n[2])/c,l[1]=(u*n[3]+f*n[4]+n[5])/c}}}var Uf="___zrEVENTSAVED",ov=[];function g_(t,e,r,i,a){return Bf(ov,e,i,a,!0)&&Bf(t,r,ov[0],ov[1])}function y_(t,e){t&&r(t),e&&r(e);function r(i){var a=i[Uf];a&&(a.clearMarkers&&a.clearMarkers(),delete i[Uf])}}function Bf(t,e,r,i,a){if(e.getBoundingClientRect&&ye.domSupported&&!sv(e)){var n=e[Uf]||(e[Uf]={}),o=DI(e,n),s=OI(o,n,a);if(s)return s(t,r,i),!0}return!1}function DI(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var i=["left","right"],a=["top","bottom"],n=0;n<4;n++){var o=document.createElement("div"),s=o.style,l=n%2,u=(n>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",a[u]+":0",i[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){E(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function OI(t,e,r){for(var i=r?"invTrans":"trans",a=e[i],n=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=t[u].getBoundingClientRect(),c=2*u,h=f.left,p=f.top;o.push(h,p),l=l&&n&&h===n[c]&&p===n[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[i]=r?nv(s,o):nv(o,s))}function sv(t){return t.nodeName.toUpperCase()==="CANVAS"}var II=/([&<>"'])/g,PI={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function dt(t){return t==null?"":(t+"").replace(II,function(e,r){return PI[r]})}var NI=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,lv=[],RI=ye.browser.firefox&&+ye.browser.version.split(".")[0]<39;function Ff(t,e,r,i){return r=r||{},i?x_(t,e,r):RI&&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):x_(t,e,r),r}function x_(t,e,r){if(ye.domSupported&&t.getBoundingClientRect){var i=e.clientX,a=e.clientY;if(sv(t)){var n=t.getBoundingClientRect();r.zrX=i-n.left,r.zrY=a-n.top;return}else if(Bf(lv,t,i,a)){r.zrX=lv[0],r.zrY=lv[1];return}}r.zrX=r.zrY=0}function Hf(t){return t||window.event}function yr(t,e,r){if(e=Hf(e),e.zrX!=null)return e;var i=e.type,a=i&&i.indexOf("touch")>=0;if(a){var o=i!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Ff(t,o,e,r)}else{Ff(t,e,e,r);var n=kI(e);e.zrDelta=n?n/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&NI.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function kI(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,i=t.deltaY;if(r==null||i==null)return e;var a=Math.abs(i!==0?i:r),n=i>0?-1:i<0?1:r>0?-1:1;return 3*a*n}function __(t,e,r,i){t.addEventListener(e,r,i)}function b_(t,e,r,i){t.removeEventListener(e,r,i)}var Ga=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};var C_=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,i){return this._doTrack(e,r,i),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,i){var a=e.touches;if(a){for(var n={points:[],touches:[],target:r,event:e},o=0,s=a.length;o<s;o++){var l=a[o],u=Ff(i,l,{});n.points.push([u.zrX,u.zrY]),n.touches.push(l)}this._track.push(n)}},t.prototype._recognize=function(e){for(var r in uv)if(uv.hasOwnProperty(r)){var i=uv[r](this._track,e);if(i)return i}},t})();function S_(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function zI(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var uv={pinch:function(t,e){var r=t.length;if(r){var i=(t[r-1]||{}).points,a=(t[r-2]||{}).points||i;if(a&&a.length>1&&i&&i.length>1){var n=S_(i)/S_(a);!isFinite(n)&&(n=1),e.pinchScale=n;var o=zI(i);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function nr(){return[1,0,0,1,0,0]}function la(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Ml(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 Ka(t,e,r){var i=e[0]*r[0]+e[2]*r[1],a=e[1]*r[0]+e[3]*r[1],n=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]=i,t[1]=a,t[2]=n,t[3]=o,t[4]=s,t[5]=l,t}function Ll(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 os(t,e,r,i){i===void 0&&(i=[0,0]);var a=e[0],n=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]=a*c+s*f,t[1]=-a*f+s*c,t[2]=n*c+l*f,t[3]=-n*f+c*l,t[4]=c*(o-i[0])+f*(u-i[1])+i[0],t[5]=c*(u-i[1])-f*(o-i[0])+i[1],t}function w_(t,e,r){var i=r[0],a=r[1];return t[0]=e[0]*i,t[1]=e[1]*a,t[2]=e[2]*i,t[3]=e[3]*a,t[4]=e[4]*i,t[5]=e[5]*a,t}function Kr(t,e){var r=e[0],i=e[2],a=e[4],n=e[1],o=e[3],s=e[5],l=r*o-n*i;return l?(l=1/l,t[0]=o*l,t[1]=-n*l,t[2]=-i*l,t[3]=r*l,t[4]=(i*s-o*a)*l,t[5]=(n*a-r*s)*l,t):null}var VI=(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,i=this.y-e.y;return Math.sqrt(r*r+i*i)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,i=this.y-e.y;return r*r+i*i},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,i=this.y;return this.x=e[0]*r+e[2]*i+e[4],this.y=e[1]*r+e[3]*i+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,i){e.x=r,e.y=i},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,i){e.x=r.x+i.x,e.y=r.y+i.y},t.sub=function(e,r,i){e.x=r.x-i.x,e.y=r.y-i.y},t.scale=function(e,r,i){e.x=r.x*i,e.y=r.y*i},t.scaleAndAdd=function(e,r,i,a){e.x=r.x+i.x*a,e.y=r.y+i.y*a},t.lerp=function(e,r,i,a){var n=1-a;e.x=n*r.x+a*i.x,e.y=n*r.y+a*i.y},t})(),ge=VI;var Pn=Math.min,ss=Math.max,pv=Math.abs,T_=["x","y"],UI=["width","height"],Ln=new ge,Dn=new ge,On=new ge,In=new ge,Ir=dv(),Ol=Ir.minTv,hv=Ir.maxTv,Il=[0,0],ua=(function(){function t(e,r,i,a){fv(this,e,r,i,a)}return t.set=function(e,r,i,a,n){return a<0&&(r=r+a,a=-a),n<0&&(i=i+n,n=-n),e.x=r,e.y=i,e.width=a,e.height=n,e},t.prototype.union=function(e){var r=Pn(e.x,this.x),i=Pn(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ss(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=ss(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=r,this.y=i},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){return BI(nr(),this,e)},t.prototype.intersect=function(e,r,i){return t.intersect(this,e,r,i)},t.intersect=function(e,r,i,a){i&&ge.set(i,0,0);var n=a&&a.outIntersectRect||null,o=a&&a.clamp;if(n&&(n.x=n.y=n.width=n.height=NaN),!e||!r)return!1;e instanceof t||(e=fv(FI,e.x,e.y,e.width,e.height)),r instanceof t||(r=fv(HI,r.x,r.y,r.width,r.height));var s=!!i;Ir.reset(a,s);var l=Ir.touchThreshold,u=e.x+l,f=e.x+e.width-l,c=e.y+l,h=e.y+e.height-l,p=r.x+l,d=r.x+r.width-l,v=r.y+l,m=r.y+r.height-l;if(u>f||c>h||p>d||v>m)return!1;var g=!(f<p||d<u||h<v||m<c);return(s||n)&&(Il[0]=1/0,Il[1]=0,A_(u,f,p,d,0,s,n,o),A_(c,h,v,m,1,s,n,o),s&&ge.copy(i,g?Ir.useDir?Ir.dirMinTv:Ol:hv)),g},t.contain=function(e,r,i){return r>=e.x&&r<=e.x+e.width&&i>=e.y&&i<=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){E_(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,i){if(!i){e!==r&&E_(e,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var a=i[0],n=i[3],o=i[4],s=i[5];e.x=r.x*a+o,e.y=r.y*n+s,e.width=r.width*a,e.height=r.height*n,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Ln.x=On.x=r.x,Ln.y=In.y=r.y,Dn.x=In.x=r.x+r.width,Dn.y=On.y=r.y+r.height,Ln.transform(i),In.transform(i),Dn.transform(i),On.transform(i),e.x=Pn(Ln.x,Dn.x,On.x,In.x),e.y=Pn(Ln.y,Dn.y,On.y,In.y);var l=ss(Ln.x,Dn.x,On.x,In.x),u=ss(Ln.y,Dn.y,On.y,In.y);e.width=l-e.x,e.height=u-e.y},t.calculateTransform=function(e,r,i){var a=i.width/r.width,n=i.height/r.height;return e=la(e||[]),Ll(e,e,Rf(cv,-r.x,-r.y)),w_(e,e,Rf(cv,a,n)),Ll(e,e,Rf(cv,i.x,i.y)),e},t})(),k5=ua.create,fv=ua.set,E_=ua.copy,BI=ua.calculateTransform,z5=ua.applyTransform,V5=ua.contain,FI=new ua(0,0,0,0),HI=new ua(0,0,0,0),cv=[];function A_(t,e,r,i,a,n,o,s){var l=pv(e-r),u=pv(i-t),f=Pn(l,u),c=T_[a],h=T_[1-a],p=UI[a];e<r||i<t?l<u?(n&&(hv[c]=-l),s&&(o[c]=e,o[p]=0)):(n&&(hv[c]=u),s&&(o[c]=t,o[p]=0)):(o&&(o[c]=ss(t,r),o[p]=Pn(e,i)-o[c]),n&&(f<Il[0]||Ir.useDir)&&(Il[0]=Pn(f,Il[0]),(l<u||!Ir.bidirectional)&&(Ol[c]=l,Ol[h]=0,Ir.useDir&&Ir.calcDirMTV()),(l>=u||!Ir.bidirectional)&&(Ol[c]=-u,Ol[h]=0,Ir.useDir&&Ir.calcDirMTV())))}function dv(){var t=0,e=new ge,r=new ge,i={minTv:new ge,maxTv:new ge,useDir:!1,dirMinTv:new ge,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(n,o){i.touchThreshold=0,n&&n.touchThreshold!=null&&(i.touchThreshold=ss(0,n.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,n&&n.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),r.copy(i.minTv),t=n.direction,i.bidirectional=n.bidirectional==null||!!n.bidirectional,i.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var n=i.minTv,o=i.dirMinTv,s=n.y*n.y+n.x*n.x,l=Math.sin(t),u=Math.cos(t),f=l*n.y+u*n.x;if(a(f)){a(n.x)&&a(n.y)&&o.set(0,0);return}if(r.x=s*u/f,r.y=s*l/f,a(r.x)&&a(r.y)){o.set(0,0);return}(i.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function a(n){return pv(n)<1e-10}return i}var ce=ua;var L_="silent";function GI(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:KI}}function KI(){Ga(this.event)}var YI=(function(t){N(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})(ar),Pl=(function(){function t(e,r){this.x=e,this.y=r}return t})(),WI=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],vv=new ce(0,0,0,0),D_=(function(t){N(e,t);function e(r,i,a,n,o){var s=t.call(this)||this;return s._hovered=new Pl(0,0),s.storage=r,s.painter=i,s.painterRoot=n,s._pointerSize=o,a=a||new YI,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new m_(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(E(WI,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var i=r.zrX,a=r.zrY,n=O_(this,i,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=n?new Pl(i,a):this.findHover(i,a),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 i=r.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new Pl(0,0)},e.prototype.dispatch=function(r,i){var a=this[r];a&&a.call(this,i)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},e.prototype.dispatchToElement=function(r,i,a){r=r||{};var n=r.target;if(!(n&&n.silent)){for(var o="on"+i,s=GI(i,r,a);n&&(n[o]&&(s.cancelBubble=!!n[o].call(n,s)),n.trigger(i,s),n=n.__hostTarget?n.__hostTarget:n.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(i,s)}))}},e.prototype.findHover=function(r,i,a){var n=this.storage.getDisplayList(),o=new Pl(r,i);if(M_(n,o,r,i,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ce(r-u,i-u,l,l),c=n.length-1;c>=0;c--){var h=n[c];h!==a&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(vv.copy(h.getBoundingRect()),h.transform&&vv.applyTransform(h.transform),vv.intersect(f)&&s.push(h))}if(s.length)for(var p=4,d=Math.PI/12,v=Math.PI*2,m=0;m<u;m+=p)for(var g=0;g<v;g+=d){var y=r+m*Math.cos(g),x=i+m*Math.sin(g);if(M_(s,o,y,x,a),o.target)return o}}return o},e.prototype.processGesture=function(r,i){this._gestureMgr||(this._gestureMgr=new C_);var a=this._gestureMgr;i==="start"&&a.clear();var n=a.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(i==="end"&&a.clear(),n){var o=n.type;r.gestureEvent=o;var s=new Pl;s.target=n.target,this.dispatchToElement(s,o,n.event)}},e})(ar);E(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){D_.prototype[t]=function(e){var r=e.zrX,i=e.zrY,a=O_(this,r,i),n,o;if((t!=="mouseup"||!a)&&(n=this.findHover(r,i),o=n.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||Al(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});function $I(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var i=t,a=void 0,n=!1;i;){if(i.ignoreClip&&(n=!0),!n){var o=i.getClipPath();if(o&&!o.contain(e,r))return!1}i.silent&&(a=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return a?L_:!0}return!1}function M_(t,e,r,i,a){for(var n=t.length-1;n>=0;n--){var o=t[n],s=void 0;if(o!==a&&!o.ignore&&(s=$I(o,r,i))&&(!e.topTarget&&(e.topTarget=o),s!==L_)){e.target=o;break}}}function O_(t,e,r){var i=t.painter;return e<0||e>i.getWidth()||r<0||r>i.getHeight()}var I_=D_;var R_=32,Nl=7;function XI(t){for(var e=0;t>=R_;)e|=t&1,t>>=1;return t+e}function P_(t,e,r,i){var a=e+1;if(a===r)return 1;if(i(t[a++],t[e])<0){for(;a<r&&i(t[a],t[a-1])<0;)a++;qI(t,e,a)}else for(;a<r&&i(t[a],t[a-1])>=0;)a++;return a-e}function qI(t,e,r){for(r--;e<r;){var i=t[e];t[e++]=t[r],t[r--]=i}}function N_(t,e,r,i,a){for(i===e&&i++;i<r;i++){for(var n=t[i],o=e,s=i,l;o<s;)l=o+s>>>1,a(n,t[l])<0?s=l:o=l+1;var u=i-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]=n}}function mv(t,e,r,i,a,n){var o=0,s=0,l=1;if(n(t,e[r+a])>0){for(s=i-a;l<s&&n(t,e[r+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&n(t,e[r+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var f=o+(l-o>>>1);n(t,e[r+f])>0?o=f+1:l=f}return l}function gv(t,e,r,i,a,n){var o=0,s=0,l=1;if(n(t,e[r+a])<0){for(s=a+1;l<s&&n(t,e[r+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=i-a;l<s&&n(t,e[r+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var f=o+(l-o>>>1);n(t,e[r+f])<0?l=f:o=f+1}return l}function ZI(t,e){var r=Nl,i,a,n=0,o=[];i=[],a=[];function s(p,d){i[n]=p,a[n]=d,n+=1}function l(){for(;n>1;){var p=n-2;if(p>=1&&a[p-1]<=a[p]+a[p+1]||p>=2&&a[p-2]<=a[p]+a[p-1])a[p-1]<a[p+1]&&p--;else if(a[p]>a[p+1])break;f(p)}}function u(){for(;n>1;){var p=n-2;p>0&&a[p-1]<a[p+1]&&p--,f(p)}}function f(p){var d=i[p],v=a[p],m=i[p+1],g=a[p+1];a[p]=v+g,p===n-3&&(i[p+1]=i[p+2],a[p+1]=a[p+2]),n--;var y=gv(t[m],t,d,v,0,e);d+=y,v-=y,v!==0&&(g=mv(t[d+v-1],t,m,g,g-1,e),g!==0&&(v<=g?c(d,v,m,g):h(d,v,m,g)))}function c(p,d,v,m){var g=0;for(g=0;g<d;g++)o[g]=t[p+g];var y=0,x=v,_=p;if(t[_++]=t[x++],--m===0){for(g=0;g<d;g++)t[_+g]=o[y+g];return}if(d===1){for(g=0;g<m;g++)t[_+g]=t[x+g];t[_+m]=o[y];return}for(var S=r,b,w,M;;){b=0,w=0,M=!1;do if(e(t[x],o[y])<0){if(t[_++]=t[x++],w++,b=0,--m===0){M=!0;break}}else if(t[_++]=o[y++],b++,w=0,--d===1){M=!0;break}while((b|w)<S);if(M)break;do{if(b=gv(t[x],o,y,d,0,e),b!==0){for(g=0;g<b;g++)t[_+g]=o[y+g];if(_+=b,y+=b,d-=b,d<=1){M=!0;break}}if(t[_++]=t[x++],--m===0){M=!0;break}if(w=mv(o[y],t,x,m,0,e),w!==0){for(g=0;g<w;g++)t[_+g]=t[x+g];if(_+=w,x+=w,m-=w,m===0){M=!0;break}}if(t[_++]=o[y++],--d===1){M=!0;break}S--}while(b>=Nl||w>=Nl);if(M)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),d===1){for(g=0;g<m;g++)t[_+g]=t[x+g];t[_+m]=o[y]}else{if(d===0)throw new Error;for(g=0;g<d;g++)t[_+g]=o[y+g]}}function h(p,d,v,m){var g=0;for(g=0;g<m;g++)o[g]=t[v+g];var y=p+d-1,x=m-1,_=v+m-1,S=0,b=0;if(t[_--]=t[y--],--d===0){for(S=_-(m-1),g=0;g<m;g++)t[S+g]=o[g];return}if(m===1){for(_-=d,y-=d,b=_+1,S=y+1,g=d-1;g>=0;g--)t[b+g]=t[S+g];t[_]=o[x];return}for(var w=r;;){var M=0,C=0,T=!1;do if(e(o[x],t[y])<0){if(t[_--]=t[y--],M++,C=0,--d===0){T=!0;break}}else if(t[_--]=o[x--],C++,M=0,--m===1){T=!0;break}while((M|C)<w);if(T)break;do{if(M=d-gv(o[x],t,p,d,d-1,e),M!==0){for(_-=M,y-=M,d-=M,b=_+1,S=y+1,g=M-1;g>=0;g--)t[b+g]=t[S+g];if(d===0){T=!0;break}}if(t[_--]=o[x--],--m===1){T=!0;break}if(C=m-mv(t[y],o,0,m,m-1,e),C!==0){for(_-=C,x-=C,m-=C,b=_+1,S=x+1,g=0;g<C;g++)t[b+g]=o[S+g];if(m<=1){T=!0;break}}if(t[_--]=t[y--],--d===0){T=!0;break}w--}while(M>=Nl||C>=Nl);if(T)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),m===1){for(_-=d,y-=d,b=_+1,S=y+1,g=d-1;g>=0;g--)t[b+g]=t[S+g];t[_]=o[x]}else{if(m===0)throw new Error;for(S=_-(m-1),g=0;g<m;g++)t[S+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Nn(t,e,r,i){r||(r=0),i||(i=t.length);var a=i-r;if(!(a<2)){var n=0;if(a<R_){n=P_(t,r,i,e),N_(t,r,i,r+n,e);return}var o=ZI(t,e),s=XI(a);do{if(n=P_(t,r,i,e),n<s){var l=a;l>s&&(l=s),N_(t,r,r+l,r+n,e),n=l}o.pushRun(r,n),o.mergeRuns(),a-=n,r+=n}while(a!==0);o.forceMergeRuns()}}var Yt=1,Rn=2,Ya=4;var k_=!1;function yv(){k_||(k_=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function z_(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var jI=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=z_}return t.prototype.traverse=function(e,r){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var i=this._displayList;return(e||!i.length)&&this.updateDisplayList(r),i},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,i=this._displayList,a=0,n=r.length;a<n;a++)this._updateAndAddDisplayable(r[a],null,e);i.length=this._displayListLen,Nn(i,z_)},t.prototype._updateAndAddDisplayable=function(e,r,i){if(!(e.ignore&&!i)){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath(),n=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(n||a)){if(s||(s=e.__clipPaths=[]),n)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=a,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 p=c[h];e.__dirty&&(p.__dirty|=Yt),this._updateAndAddDisplayable(p,s,i)}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 v=e.getDecalElement&&e.getDecalElement();v&&this._updateAndAddDisplayable(v,s,i);var m=e.getTextGuideLine();m&&this._updateAndAddDisplayable(m,s,i);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,s,i)}},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,i=e.length;r<i;r++)this.delRoot(e[r]);return}var a=pe(this._roots,e);a>=0&&this._roots.splice(a,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_=jI;var U_;U_=ye.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var xv=U_;var Kf={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,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)))},elasticOut:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1)},elasticInOut:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*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)/i)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.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-Kf.bounceOut(1-t)},bounceOut:function(t){return t<.36363636363636365?7.5625*t*t:t<.7272727272727273?7.5625*(t-=.5454545454545454)*t+.75:t<.9090909090909091?7.5625*(t-=.8181818181818182)*t+.9375:7.5625*(t-=.9545454545454546)*t+.984375},bounceInOut:function(t){return t<.5?Kf.bounceIn(t*2)*.5:Kf.bounceOut(t*2-1)*.5+.5}},Yf=Kf;var Wf=Math.pow,$a=Math.sqrt,Xf=1e-8,F_=1e-4,B_=$a(3),$f=1/3,Mi=Fa(),Yr=Fa(),ls=Fa();function Wa(t){return t>-Xf&&t<Xf}function H_(t){return t>Xf||t<-Xf}function tt(t,e,r,i,a){var n=1-a;return n*n*(n*t+3*a*e)+a*a*(a*i+3*n*r)}function _v(t,e,r,i,a){var n=1-a;return 3*(((e-t)*n+2*(r-e)*a)*n+(i-r)*a*a)}function kn(t,e,r,i,a,n){var o=i+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-a,f=s*s-3*o*l,c=s*l-9*o*u,h=l*l-3*s*u,p=0;if(Wa(f)&&Wa(c))if(Wa(s))n[0]=0;else{var d=-l/s;d>=0&&d<=1&&(n[p++]=d)}else{var v=c*c-4*f*h;if(Wa(v)){var m=c/f,d=-s/o+m,g=-m/2;d>=0&&d<=1&&(n[p++]=d),g>=0&&g<=1&&(n[p++]=g)}else if(v>0){var y=$a(v),x=f*s+1.5*o*(-c+y),_=f*s+1.5*o*(-c-y);x<0?x=-Wf(-x,$f):x=Wf(x,$f),_<0?_=-Wf(-_,$f):_=Wf(_,$f);var d=(-s-(x+_))/(3*o);d>=0&&d<=1&&(n[p++]=d)}else{var S=(2*f*s-3*o*c)/(2*$a(f*f*f)),b=Math.acos(S)/3,w=$a(f),M=Math.cos(b),d=(-s-2*w*M)/(3*o),g=(-s+w*(M+B_*Math.sin(b)))/(3*o),C=(-s+w*(M-B_*Math.sin(b)))/(3*o);d>=0&&d<=1&&(n[p++]=d),g>=0&&g<=1&&(n[p++]=g),C>=0&&C<=1&&(n[p++]=C)}}return p}function qf(t,e,r,i,a){var n=6*r-12*e+6*t,o=9*e+3*i-3*t-9*r,s=3*e-3*t,l=0;if(Wa(o)){if(H_(n)){var u=-s/n;u>=0&&u<=1&&(a[l++]=u)}}else{var f=n*n-4*o*s;if(Wa(f))a[0]=-n/(2*o);else if(f>0){var c=$a(f),u=(-n+c)/(2*o),h=(-n-c)/(2*o);u>=0&&u<=1&&(a[l++]=u),h>=0&&h<=1&&(a[l++]=h)}}return l}function us(t,e,r,i,a,n){var o=(e-t)*a+t,s=(r-e)*a+e,l=(i-r)*a+r,u=(s-o)*a+o,f=(l-s)*a+s,c=(f-u)*a+u;n[0]=t,n[1]=o,n[2]=u,n[3]=c,n[4]=c,n[5]=f,n[6]=l,n[7]=i}function Zf(t,e,r,i,a,n,o,s,l,u,f){var c,h=.005,p=1/0,d,v,m,g;Mi[0]=l,Mi[1]=u;for(var y=0;y<1;y+=.05)Yr[0]=tt(t,r,a,o,y),Yr[1]=tt(e,i,n,s,y),m=Mn(Mi,Yr),m<p&&(c=y,p=m);p=1/0;for(var x=0;x<32&&!(h<F_);x++)d=c-h,v=c+h,Yr[0]=tt(t,r,a,o,d),Yr[1]=tt(e,i,n,s,d),m=Mn(Yr,Mi),d>=0&&m<p?(c=d,p=m):(ls[0]=tt(t,r,a,o,v),ls[1]=tt(e,i,n,s,v),g=Mn(ls,Mi),v<=1&&g<p?(c=v,p=g):h*=.5);return f&&(f[0]=tt(t,r,a,o,c),f[1]=tt(e,i,n,s,c)),$a(p)}function G_(t,e,r,i,a,n,o,s,l){for(var u=t,f=e,c=0,h=1/l,p=1;p<=l;p++){var d=p*h,v=tt(t,r,a,o,d),m=tt(e,i,n,s,d),g=v-u,y=m-f;c+=Math.sqrt(g*g+y*y),u=v,f=m}return c}function Ct(t,e,r,i){var a=1-i;return a*(a*t+2*i*e)+i*i*r}function bv(t,e,r,i){return 2*((1-i)*(e-t)+i*(r-e))}function K_(t,e,r,i,a){var n=t-2*e+r,o=2*(e-t),s=t-i,l=0;if(Wa(n)){if(H_(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var f=o*o-4*n*s;if(Wa(f)){var u=-o/(2*n);u>=0&&u<=1&&(a[l++]=u)}else if(f>0){var c=$a(f),u=(-o+c)/(2*n),h=(-o-c)/(2*n);u>=0&&u<=1&&(a[l++]=u),h>=0&&h<=1&&(a[l++]=h)}}return l}function jf(t,e,r){var i=t+r-2*e;return i===0?.5:(t-e)/i}function fs(t,e,r,i,a){var n=(e-t)*i+t,o=(r-e)*i+e,s=(o-n)*i+n;a[0]=t,a[1]=n,a[2]=s,a[3]=s,a[4]=o,a[5]=r}function Jf(t,e,r,i,a,n,o,s,l){var u,f=.005,c=1/0;Mi[0]=o,Mi[1]=s;for(var h=0;h<1;h+=.05){Yr[0]=Ct(t,r,a,h),Yr[1]=Ct(e,i,n,h);var p=Mn(Mi,Yr);p<c&&(u=h,c=p)}c=1/0;for(var d=0;d<32&&!(f<F_);d++){var v=u-f,m=u+f;Yr[0]=Ct(t,r,a,v),Yr[1]=Ct(e,i,n,v);var p=Mn(Yr,Mi);if(v>=0&&p<c)u=v,c=p;else{ls[0]=Ct(t,r,a,m),ls[1]=Ct(e,i,n,m);var g=Mn(ls,Mi);m<=1&&g<c?(u=m,c=g):f*=.5}}return l&&(l[0]=Ct(t,r,a,u),l[1]=Ct(e,i,n,u)),$a(c)}function Y_(t,e,r,i,a,n,o){for(var s=t,l=e,u=0,f=1/o,c=1;c<=o;c++){var h=c*f,p=Ct(t,r,a,h),d=Ct(e,i,n,h),v=p-s,m=d-l;u+=Math.sqrt(v*v+m*m),s=p,l=d}return u}var JI=/cubic-bezier\(([0-9,\.e ]+)\)/;function cs(t){var e=t&&JI.exec(t);if(e){var r=e[1].split(","),i=+Bt(r[0]),a=+Bt(r[1]),n=+Bt(r[2]),o=+Bt(r[3]);if(isNaN(i+a+n+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:kn(0,i,n,1,l,s)&&tt(0,a,o,1,s[0])}}}var QI=(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||Xe,this.ondestroy=e.ondestroy||Xe,this.onrestart=e.onrestart||Xe,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 i=this._life,a=e-this._startTime-this._pausedTime,n=a/i;n<0&&(n=0),n=Math.min(n,1);var o=this.easingFunc,s=o?o(n):n;if(this.onframe(s),n===1)if(this.loop){var l=a%i;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=j(e)?e:Yf[e]||cs(e)},t})(),W_=QI;var $_=(function(){function t(e){this.value=e}return t})();var eP=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new $_(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,i=e.next;r?r.next=i:this.head=i,i?i.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})();var tP=(function(){function t(e){this._list=new eP,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var i=this._list,a=this._map,n=null;if(a[e]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete a[l.key],n=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new $_(r),s.key=e,i.insertEntry(s),a[e]=s}return n},t.prototype.get=function(e){var r=this._map[e],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),Li=tP;var X_={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 li(t){return t=Math.round(t),t<0?0:t>255?255:t}function rP(t){return t=Math.round(t),t<0?0:t>360?360:t}function Rl(t){return t<0?0:t>1?1:t}function Cv(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?li(parseFloat(e)/100*255):li(parseInt(e,10))}function zn(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Rl(parseFloat(e)/100):Rl(parseFloat(e))}function wv(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 Xa(t,e,r){return t+(e-t)*r}function Wr(t,e,r,i,a){return t[0]=e,t[1]=r,t[2]=i,t[3]=a,t}function Tv(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var j_=new Li(20),Qf=null;function ps(t,e){Qf&&Tv(Qf,e),Qf=j_.put(t,Qf||e.slice())}function Wt(t,e){if(t){e=e||[];var r=j_.get(t);if(r)return Tv(e,r);t=t+"";var i=t.replace(/ /g,"").toLowerCase();if(i in X_)return Tv(e,X_[i]),ps(t,e),e;var a=i.length;if(i.charAt(0)==="#"){if(a===4||a===5){var n=parseInt(i.slice(1,4),16);if(!(n>=0&&n<=4095)){Wr(e,0,0,0,1);return}return Wr(e,(n&3840)>>4|(n&3840)>>8,n&240|(n&240)>>4,n&15|(n&15)<<4,a===5?parseInt(i.slice(4),16)/15:1),ps(t,e),e}else if(a===7||a===9){var n=parseInt(i.slice(1,7),16);if(!(n>=0&&n<=16777215)){Wr(e,0,0,0,1);return}return Wr(e,(n&16711680)>>16,(n&65280)>>8,n&255,a===9?parseInt(i.slice(7),16)/255:1),ps(t,e),e}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===a){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Wr(e,+u[0],+u[1],+u[2],1):Wr(e,0,0,0,1);f=zn(u.pop());case"rgb":if(u.length>=3)return Wr(e,Cv(u[0]),Cv(u[1]),Cv(u[2]),u.length===3?f:zn(u[3])),ps(t,e),e;Wr(e,0,0,0,1);return;case"hsla":if(u.length!==4){Wr(e,0,0,0,1);return}return u[3]=zn(u[3]),Ev(u,e),ps(t,e),e;case"hsl":if(u.length!==3){Wr(e,0,0,0,1);return}return Ev(u,e),ps(t,e),e;default:return}}Wr(e,0,0,0,1)}}function Ev(t,e){var r=(parseFloat(t[0])%360+360)%360/360,i=zn(t[1]),a=zn(t[2]),n=a<=.5?a*(i+1):a+i-a*i,o=a*2-n;return e=e||[],Wr(e,li(wv(o,n,r+1/3)*255),li(wv(o,n,r)*255),li(wv(o,n,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function iP(t){if(t){var e=t[0]/255,r=t[1]/255,i=t[2]/255,a=Math.min(e,r,i),n=Math.max(e,r,i),o=n-a,s=(n+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(n+a):u=o/(2-n-a);var f=((n-e)/6+o/2)/o,c=((n-r)/6+o/2)/o,h=((n-i)/6+o/2)/o;e===n?l=h-c:r===n?l=1/3+f-h:i===n&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var p=[l*360,u,s];return t[3]!=null&&p.push(t[3]),p}}function q_(t,e){var r=Wt(t);if(r){for(var i=0;i<3;i++)e<0?r[i]=r[i]*(1-e)|0:r[i]=(255-r[i])*e+r[i]|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return Di(r,r.length===4?"rgba":"rgb")}}function ec(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){r=r||[];var i=t*(e.length-1),a=Math.floor(i),n=Math.ceil(i),o=e[a],s=e[n],l=i-a;return r[0]=li(Xa(o[0],s[0],l)),r[1]=li(Xa(o[1],s[1],l)),r[2]=li(Xa(o[2],s[2],l)),r[3]=Rl(Xa(o[3],s[3],l)),r}}function J_(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var i=t*(e.length-1),a=Math.floor(i),n=Math.ceil(i),o=Wt(e[a]),s=Wt(e[n]),l=i-a,u=Di([li(Xa(o[0],s[0],l)),li(Xa(o[1],s[1],l)),li(Xa(o[2],s[2],l)),Rl(Xa(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:a,rightIndex:n,value:i}:u}}function fa(t,e,r,i){var a=Wt(t);if(t)return a=iP(a),e!=null&&(a[0]=rP(j(e)?e(a[0]):e)),r!=null&&(a[1]=zn(j(r)?r(a[1]):r)),i!=null&&(a[2]=zn(j(i)?i(a[2]):i)),Di(Ev(a),"rgba")}function Q_(t,e){var r=Wt(t);if(r&&e!=null)return r[3]=Rl(e),Di(r,"rgba")}function Di(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 hs(t,e){var r=Wt(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var Z_=new Li(100);function kl(t){if(G(t)){var e=Z_.get(t);return e||(e=q_(t,-.1),Z_.put(t,e)),e}else if(ts(t)){var r=k({},t);return r.colorStops=B(t.colorStops,function(i){return{offset:i.offset,color:q_(i.color,-.1)}}),r}return t}var rc=Math.round;function qa(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var r=Wt(t);r&&(t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3])}return{color:t,opacity:e??1}}var tb=1e-4;function Oi(t){return t<tb&&t>-tb}function tc(t){return rc(t*1e3)/1e3}function ic(t){return rc(t*1e4)/1e4}function rb(t){return"matrix("+tc(t[0])+","+tc(t[1])+","+tc(t[2])+","+tc(t[3])+","+ic(t[4])+","+ic(t[5])+")"}var ib={left:"start",right:"end",center:"middle",middle:"middle"};function ab(t,e,r){return r==="top"?t+=e/2:r==="bottom"&&(t-=e/2),t}function nb(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function ob(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 Av(t){return t&&!!t.image}function aP(t){return t&&!!t.svgElement}function zl(t){return Av(t)||aP(t)}function ac(t){return t.type==="linear"}function nc(t){return t.type==="radial"}function oc(t){return t&&(t.type==="linear"||t.type==="radial")}function Vl(t){return"url(#"+t+")"}function sc(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 lc(t){var e=t.x||0,r=t.y||0,i=(t.rotation||0)*as,a=q(t.scaleX,1),n=q(t.scaleY,1),o=t.skewX||0,s=t.skewY||0,l=[];return(e||r)&&l.push("translate("+e+"px,"+r+"px)"),i&&l.push("rotate("+i+")"),(a!==1||n!==1)&&l.push("scale("+a+","+n+")"),(o||s)&&l.push("skew("+rc(o*as)+"deg, "+rc(s*as)+"deg)"),l.join(" ")}var sb=(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}})();var Lv=Array.prototype.slice;function ca(t,e,r){return(e-t)*r+t}function Mv(t,e,r,i){for(var a=e.length,n=0;n<a;n++)t[n]=ca(e[n],r[n],i);return t}function nP(t,e,r,i){for(var a=e.length,n=a&&e[0].length,o=0;o<a;o++){t[o]||(t[o]=[]);for(var s=0;s<n;s++)t[o][s]=ca(e[o][s],r[o][s],i)}return t}function uc(t,e,r,i){for(var a=e.length,n=0;n<a;n++)t[n]=e[n]+r[n]*i;return t}function lb(t,e,r,i){for(var a=e.length,n=a&&e[0].length,o=0;o<a;o++){t[o]||(t[o]=[]);for(var s=0;s<n;s++)t[o][s]=e[o][s]+r[o][s]*i}return t}function oP(t,e){for(var r=t.length,i=e.length,a=r>i?e:t,n=Math.min(r,i),o=a[n-1]||{color:[0,0,0,0],offset:0},s=n;s<Math.max(r,i);s++)a.push({offset:o.offset,color:o.color.slice()})}function sP(t,e,r){var i=t,a=e;if(!(!i.push||!a.push)){var n=i.length,o=a.length;if(n!==o){var s=n>o;if(s)i.length=o;else for(var l=n;l<o;l++)i.push(r===1?a[l]:Lv.call(a[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(r===1)isNaN(i[l])&&(i[l]=a[l]);else for(var f=0;f<u;f++)isNaN(i[l][f])&&(i[l][f]=a[l][f])}}function Vn(t){if(lt(t)){var e=t.length;if(lt(t[0])){for(var r=[],i=0;i<e;i++)r.push(Lv.call(t[i]));return r}return Lv.call(t)}return t}function pc(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 lP(t){return lt(t&&t[0])?2:1}var fc=0,hc=1,cb=2,Bl=3,Dv=4,Ov=5,ub=6;function fb(t){return t===Dv||t===Ov}function cc(t){return t===hc||t===cb}var Ul=[0,0,0,0],uP=(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,i){this._needsSort=!0;var a=this.keyframes,n=a.length,o=!1,s=ub,l=r;if(lt(r)){var u=lP(r);s=u,(u===1&&!me(r[0])||u===2&&!me(r[0][0]))&&(o=!0)}else if(me(r)&&!Gr(r))s=fc;else if(G(r))if(!isNaN(+r))s=fc;else{var f=Wt(r);f&&(l=f,s=Bl)}else if(ts(r)){var c=k({},l);c.colorStops=B(r.colorStops,function(p){return{offset:p.offset,color:Wt(p.color)}}),ac(r)?s=Dv:nc(r)&&(s=Ov),l=c}n===0?this.valType=s:(s!==this.valType||s===ub)&&(o=!0),this.discrete=this.discrete||o;var h={time:e,value:l,rawValue:r,percent:0};return i&&(h.easing=i,h.easingFunc=j(i)?i:Yf[i]||cs(i)),a.push(h),h},t.prototype.prepare=function(e,r){var i=this.keyframes;this._needsSort&&i.sort(function(v,m){return v.time-m.time});for(var a=this.valType,n=i.length,o=i[n-1],s=this.discrete,l=cc(a),u=fb(a),f=0;f<n;f++){var c=i[f],h=c.value,p=o.value;c.percent=c.time/e,s||(l&&f!==n-1?sP(h,p,a):u&&oP(h.colorStops,p.colorStops))}if(!s&&a!==Ov&&r&&this.needsAnimate()&&r.needsAnimate()&&a===r.valType&&!r._finished){this._additiveTrack=r;for(var d=i[0].value,f=0;f<n;f++)a===fc?i[f].additiveValue=i[f].value-d:a===Bl?i[f].additiveValue=uc([],i[f].value,d,-1):cc(a)&&(i[f].additiveValue=a===hc?uc([],i[f].value,d,-1):lb([],i[f].value,d,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,a=i?"additiveValue":"value",n=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=n===Bl,f,c=this._lastFr,h=Math.min,p,d;if(s===1)p=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var v=h(c+1,s-1);for(f=v;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],p=o[f]}if(p&&d){this._lastFr=f,this._lastFrP=r;var m=d.percent-p.percent,g=m===0?1:h((r-p.percent)/m,1);d.easingFunc&&(g=d.easingFunc(g));var y=i?this._additiveValue:u?Ul:e[l];if((cc(n)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=g<1?p.rawValue:d.rawValue;else if(cc(n))n===hc?Mv(y,p[a],d[a],g):nP(y,p[a],d[a],g);else if(fb(n)){var x=p[a],_=d[a],S=n===Dv;e[l]={type:S?"linear":"radial",x:ca(x.x,_.x,g),y:ca(x.y,_.y,g),colorStops:B(x.colorStops,function(w,M){var C=_.colorStops[M];return{offset:ca(w.offset,C.offset,g),color:pc(Mv([],w.color,C.color,g))}}),global:_.global},S?(e[l].x2=ca(x.x2,_.x2,g),e[l].y2=ca(x.y2,_.y2,g)):e[l].r=ca(x.r,_.r,g)}else if(u)Mv(y,p[a],d[a],g),i||(e[l]=pc(y));else{var b=ca(p[a],d[a],g);i?this._additiveValue=b:e[l]=b}i&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,i=this.propName,a=this._additiveValue;r===fc?e[i]=e[i]+a:r===Bl?(Wt(e[i],Ul),uc(Ul,Ul,a,1),e[i]=pc(Ul)):r===hc?uc(e[i],e[i],a,1):r===cb&&lb(e[i],e[i],a,1)},t})(),fP=(function(){function t(e,r,i,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&a){Pf("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=i}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,i){return this.whenWithKeys(e,r,ae(r),i)},t.prototype.whenWithKeys=function(e,r,i,a){for(var n=this._tracks,o=0;o<i.length;o++){var s=i[o],l=n[s];if(!l){l=n[s]=new uP(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===Bl&&u&&(u=pc(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Vn(u),a),this._trackKeys.push(s)}l.addKeyframe(e,Vn(r[s]),a)}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,i=0;i<r;i++)e[i].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 i=0;i<r.length;i++)r[i].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,i=0;i<r.length;i++)e[r[i]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,i=this._additiveAnimators;if(i)for(var a=0;a<i.length;a++){var n=i[a].getTrack(e);n&&(r=n)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,i=[],a=this._maxTime||0,n=0;n<this._trackKeys.length;n++){var o=this._trackKeys[n],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var h=new W_({life:a,loop:this._loop,delay:this._delay||0,onframe:function(p){r._started=2;var d=r._additiveAnimators;if(d){for(var v=!1,m=0;m<d.length;m++)if(d[m]._clip){v=!0;break}v||(r._additiveAnimators=null)}for(var m=0;m<i.length;m++)i[m].step(r._target,p);var g=r._onframeCbs;if(g)for(var m=0;m<g.length;m++)g[m](r._target,p)},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 B(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var i=this._tracks,a=this._trackKeys,n=0;n<e.length;n++){var o=i[e[n]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,n=0;n<a.length;n++)if(!i[a[n]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,i){if(e){r=r||this._trackKeys;for(var a=0;a<r.length;a++){var n=r[a],o=this._tracks[n];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[i?0:s.length-1];l&&(e[n]=Vn(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||ae(e);for(var i=0;i<r.length;i++){var a=r[i],n=this._tracks[a];if(n){var o=n.keyframes;if(o.length>1){var s=o.pop();n.addKeyframe(s.time,e[a]),n.prepare(this._maxTime,n.getAdditiveTrack())}}}},t})(),Fl=fP;function Un(){return new Date().getTime()}var cP=(function(t){N(e,t);function e(r){var i=t.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}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 i=r.getClip();i&&this.addClip(i)},e.prototype.removeClip=function(r){if(r.animation){var i=r.prev,a=r.next;i?i.next=a:this._head=a,a?a.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},e.prototype.update=function(r){for(var i=Un()-this._pausedTime,a=i-this._time,n=this._head;n;){var o=n.next,s=n.step(i,a);s&&(n.ondestroy(),this.removeClip(n)),n=o}this._time=i,r||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(xv(i),!r._paused&&r.update())}xv(i)},e.prototype.start=function(){this._running||(this._time=Un(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Un(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Un()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,i){i=i||{},this.start();var a=new Fl(r,i.loop);return this.addAnimator(a),a},e})(ar),pb=cP;var pP=300,Iv=ye.domSupported,Pv=(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},i=B(t,function(a){var n=a.replace("mouse","pointer");return r.hasOwnProperty(n)?n:a});return{mouse:t,touch:e,pointer:i}})(),hb={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},db=!1;function kv(t){var e=t.pointerType;return e==="pen"||e==="touch"}function hP(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 Nv(t){t&&(t.zrByTouch=!0)}function dP(t,e){return yr(t.dom,new vP(t,e),!0)}function mb(t,e){for(var r=e,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return i}var vP=(function(){function t(e,r){this.stopPropagation=Xe,this.stopImmediatePropagation=Xe,this.preventDefault=Xe,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),ui={mousedown:function(t){t=yr(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=yr(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=yr(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=yr(this.dom,t);var e=t.toElement||t.relatedTarget;mb(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){db=!0,t=yr(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){db||(t=yr(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=yr(this.dom,t),Nv(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),ui.mousemove.call(this,t),ui.mousedown.call(this,t)},touchmove:function(t){t=yr(this.dom,t),Nv(t),this.handler.processGesture(t,"change"),ui.mousemove.call(this,t)},touchend:function(t){t=yr(this.dom,t),Nv(t),this.handler.processGesture(t,"end"),ui.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<pP&&ui.click.call(this,t)},pointerdown:function(t){ui.mousedown.call(this,t)},pointermove:function(t){kv(t)||ui.mousemove.call(this,t)},pointerup:function(t){ui.mouseup.call(this,t)},pointerout:function(t){kv(t)||ui.mouseout.call(this,t)}};E(["click","dblclick","contextmenu"],function(t){ui[t]=function(e){e=yr(this.dom,e),this.trigger(t,e)}});var zv={pointermove:function(t){kv(t)||zv.mousemove.call(this,t)},pointerup:function(t){zv.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 mP(t,e){var r=e.domHandlers;ye.pointerEventsSupported?E(Pv.pointer,function(i){dc(e,i,function(a){r[i].call(t,a)})}):(ye.touchEventsSupported&&E(Pv.touch,function(i){dc(e,i,function(a){r[i].call(t,a),hP(e)})}),E(Pv.mouse,function(i){dc(e,i,function(a){a=Hf(a),e.touching||r[i].call(t,a)})}))}function gP(t,e){ye.pointerEventsSupported?E(hb.pointer,r):ye.touchEventsSupported||E(hb.mouse,r);function r(i){function a(n){n=Hf(n),mb(t,n.target)||(n=dP(t,n),e.domHandlers[i].call(t,n))}dc(e,i,a,{capture:!0})}}function dc(t,e,r,i){t.mounted[e]=r,t.listenerOpts[e]=i,__(t.domTarget,e,r,i)}function Rv(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&b_(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var vb=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),yP=(function(t){N(e,t);function e(r,i){var a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=r,a.painterRoot=i,a._localHandlerScope=new vb(r,ui),Iv&&(a._globalHandlerScope=new vb(document,zv)),mP(a,a._localHandlerScope),a}return e.prototype.dispose=function(){Rv(this._localHandlerScope),Iv&&Rv(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,Iv&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var i=this._globalHandlerScope;r?gP(this,i):Rv(i)}},e})(ar),gb=yP;var yb=1;ye.hasGlobalWindow&&(yb=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Vv=yb,Hl=.4,Gl="#333",Kl="#ccc",xb="#eee";var _b=la,bb=5e-5;function Bn(t){return t>bb||t<-bb}var Fn=[],ds=[],Uv=nr(),Bv=Math.abs,Sb=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return xP(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 Bn(this.rotation)||Bn(this.x)||Bn(this.y)||Bn(this.scaleX-1)||Bn(this.scaleY-1)||Bn(this.skewX)||Bn(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||e)){i&&(_b(i),this.invTransform=null);return}i=i||nr(),r?this.getLocalTransform(i):_b(i),e&&(r?Ka(i,e,i):Ml(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i),this.invTransform=this.invTransform||nr(),Kr(this.invTransform,i)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Fn);var i=Fn[0]<0?-1:1,a=Fn[1]<0?-1:1,n=((Fn[0]-i)*r+i)/Fn[0]||0,o=((Fn[1]-a)*r+a)/Fn[1]||0;e[0]*=n,e[1]*=n,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],i=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),n=Math.PI/2+a-Math.atan2(e[3],e[2]);i=Math.sqrt(i)*Math.cos(n),r=Math.sqrt(r),this.skewX=n,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=i,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||nr(),Ka(ds,e.invTransform,r),r=ds);var i=this.originX,a=this.originY;(i||a)&&(Uv[4]=i,Uv[5]=a,Ka(ds,r,Uv),ds[4]-=i,ds[5]-=a,r=ds),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 i=[e,r],a=this.invTransform;return a&&Ft(i,i,a),i},t.prototype.transformCoordToGlobal=function(e,r){var i=[e,r],a=this.transform;return a&&Ft(i,i,a),i},t.prototype.getLineScale=function(){var e=this.transform;return e&&Bv(e[0]-1)>1e-10&&Bv(e[3]-1)>1e-10?Math.sqrt(Bv(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){Za(this,e)},t.getLocalTransform=function(e,r){r=r||[];var i=e.originX||0,a=e.originY||0,n=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,p=e.skewY?Math.tan(-e.skewY):0;if(i||a||s||l){var d=i+s,v=a+l;r[4]=-d*n-h*v*o,r[5]=-v*o-p*d*n}else r[4]=r[5]=0;return r[0]=n,r[3]=o,r[1]=p*n,r[2]=h*o,u&&os(r,r,u),r[4]+=i+f,r[5]+=a+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})(),xP=Sb.getLocalTransform;var $r=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Za(t,e){return l_(t,e,$r)}var ja=Sb;function fi(t){vc||(vc=new Li(100)),t=t||gr;var e=vc.get(t);return e||(e={font:t,strWidthCache:new Li(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:St.measureText("\u56FD",t).width,asciiCharWidth:St.measureText("a",t).width},vc.put(t,e)),e}var vc;function _P(t){if(!(Fv>=Cb)){t=t||gr;for(var e=[],r=+new Date,i=0;i<=127;i++)e[i]=St.measureText(String.fromCharCode(i),t).width;var a=+new Date-r;return a>16?Fv=Cb:a>2&&Fv++,e}}var Fv=0,Cb=5;function Hv(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=_P(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function ci(t,e){var r=t.strWidthCache,i=r.get(e);return i==null&&(i=St.measureText(e,t.font).width,r.put(e,i)),i}function wb(t,e,r,i){var a=ci(fi(e),t),n=Hn(e),o=Ja(0,a,r),s=pa(0,n,i),l=new ce(o,s,a,n);return l}function mc(t,e,r,i){var a=((t||"")+"").split(`
2
- `),n=a.length;if(n===1)return wb(a[0],e,r,i);for(var o=new ce(0,0,0,0),s=0;s<a.length;s++){var l=wb(a[s],e,r,i);s===0?o.copy(l):o.union(l)}return o}function Ja(t,e,r,i){return r==="right"?i?t+=e:t-=e:r==="center"&&(i?t+=e/2:t-=e/2),t}function pa(t,e,r,i){return r==="middle"?i?t+=e/2:t-=e/2:r==="bottom"&&(i?t+=e:t-=e),t}function Hn(t){return fi(t).stWideCharWidth}function xr(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Gn(t,e,r){var i=e.position||"inside",a=e.distance!=null?e.distance:5,n=r.height,o=r.width,s=n/2,l=r.x,u=r.y,f="left",c="top";if(i instanceof Array)l+=xr(i[0],r.width),u+=xr(i[1],r.height),f=null,c=null;else switch(i){case"left":l-=a,u+=s,f="right",c="middle";break;case"right":l+=a+o,u+=s,c="middle";break;case"top":l+=o/2,u-=a,f="center",c="bottom";break;case"bottom":l+=o/2,u+=n+a,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=a,u+=s,c="middle";break;case"insideRight":l+=o-a,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=a,f="center";break;case"insideBottom":l+=o/2,u+=n-a,f="center",c="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,f="right";break;case"insideBottomLeft":l+=a,u+=n-a,c="bottom";break;case"insideBottomRight":l+=o-a,u+=n-a,f="right",c="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=f,t.verticalAlign=c,t}var Gv="__zr_normal__",Kv=$r.concat(["ignore"]),bP=ir($r,function(t,e){return t[e]=!0,t},{ignore:!1}),vs={},SP=new ce(0,0,0,0),gc=[],yc=0,ms=1,$v=(function(){function t(e){this.id=If(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,i){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[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 i=this.textConfig,a=i.local,n=r.innerTransformable,o=void 0,s=void 0,l=!1;n.parent=a?this:null;var u=!1;n.copyTransform(r);var f=i.position!=null,c=i.autoOverflowArea,h=void 0;if((c||f)&&(h=SP,i.layoutRect?h.copy(i.layoutRect):h.copy(this.getBoundingRect()),a||h.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(vs,i,h):Gn(vs,i,h),n.x=vs.x,n.y=vs.y,o=vs.align,s=vs.verticalAlign;var p=i.origin;if(p&&i.rotation!=null){var d=void 0,v=void 0;p==="center"?(d=h.width*.5,v=h.height*.5):(d=xr(p[0],h.width),v=xr(p[1],h.height)),u=!0,n.originX=-n.x+d+(a?0:h.x),n.originY=-n.y+v+(a?0:h.y)}}i.rotation!=null&&(n.rotation=i.rotation);var m=i.offset;m&&(n.x+=m[0],n.y+=m[1],u||(n.originX=-m[0],n.originY=-m[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=g.overflowRect=g.overflowRect||new ce(0,0,0,0);n.getLocalTransform(gc),Kr(gc,gc),ce.copy(y,h),y.applyTransform(gc)}else g.overflowRect=null;var x=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,_=void 0,S=void 0,b=void 0;x&&this.canBeInsideText()?(_=i.insideFill,S=i.insideStroke,(_==null||_==="auto")&&(_=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(_),b=!0)):(_=i.outsideFill,S=i.outsideStroke,(_==null||_==="auto")&&(_=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(_),b=!0)),_=_||"#000",(_!==g.fill||S!==g.stroke||b!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=_,g.stroke=S,g.autoStroke=b,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=Yt,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()?Kl:Gl},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r=="string"&&Wt(r);i||(i=[255,255,255,1]);for(var a=i[3],n=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*a+(n?0:255)*(1-a);return i[3]=1,Di(i,"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||{},k(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($(e))for(var i=e,a=ae(i),n=0;n<a.length;n++){var o=a[n];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,i=0;i<this.animators.length;i++){var a=this.animators[i],n=a.__fromStateTransition;if(!(a.getLoop()||n&&n!==Gv)){var o=a.targetName,s=o?r[o]:r;a.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,Kv)},t.prototype._savePrimaryToNormal=function(e,r,i){for(var a=0;a<i.length;a++){var n=i[a];e[n]!=null&&!(n in r)&&(r[n]=this[n])}},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(Gv,!1,e)},t.prototype.useState=function(e,r,i,a){var n=e===Gv,o=this.hasState();if(!(!o&&n)){var s=this.currentStates,l=this.stateTransition;if(!(pe(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!n&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!n){Pf("State "+e+" not exists.");return}n||this.saveCurrentToNormalState(u);var f=this._textContent,c=Eb(this,f,u,a);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,u,this._normalState,r,Mb(this,i,l),l);var h=this._textGuide;return f&&f.useState(e,r,i,!!c),h&&h.useState(e,r,i,!!c),n?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=yc,this.__dirty&=~Yt),u}}},t.prototype.useStates=function(e,r,i){if(!e.length)this.clearStates();else{var a=[],n=this.currentStates,o=e.length,s=o===n.length;if(s){for(var l=0;l<o;l++)if(e[l]!==n[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&&a.push(f)}var c=a[o-1],h=this._textContent,p=Eb(this,h,c,i);p&&!this.__inHover&&(this.__inHover=p);var d=this._mergeStates(a),v=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,Mb(this,r,v),v);var m=this._textGuide;h&&h.useStates(e,r,!!p),m&&m.useStates(e,r,!!p),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!p&&this.__inHover&&(this.__inHover=yc,this.__dirty&=~Yt)}},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=pe(this.currentStates,e);if(r>=0){var i=this.currentStates.slice();i.splice(r,1),this.useStates(i)}},t.prototype.replaceState=function(e,r,i){var a=this.currentStates.slice(),n=pe(a,e),o=pe(a,r)>=0;n>=0?o?a.splice(n,1):a[n]=r:i&&!o&&a.push(r),this.useStates(a)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},i,a=0;a<e.length;a++){var n=e[a];k(r,n),n.textConfig&&(i=i||{},k(i,n.textConfig))}return i&&(r.textConfig=i),r},t.prototype._applyStateObj=function(e,r,i,a,n,o){if(this.__inHover!==ms){var s=!(r&&a);r&&r.textConfig?(this.textConfig=k({},a?this.textConfig:i.textConfig),k(this.textConfig,r.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,f=0;f<Kv.length;f++){var c=Kv[f],h=n&&bP[c];r&&r[c]!=null?h?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&i[c]!=null&&(h?(u=!0,l[c]=i[c]):this[c]=i[c])}if(!n)for(var f=0;f<this.animators.length;f++){var p=this.animators[f],d=p.targetName;p.getLoop()||p.__changeFinalValue(d?(r||i)[d]:r||i)}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 ja,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),k(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|=Yt;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 i=0;i<r.length;i++)e.animation.addAnimator(r[i]);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 i=0;i<r.length;i++)e.animation.removeAnimator(r[i]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,i){var a=e?this[e]:this,n=new Fl(a,r,i);return e&&(n.targetName=e),this.addAnimator(n,e),n},t.prototype.addAnimator=function(e,r){var i=this.__zr,a=this;e.during(function(){a.updateDuringAnimation(r)}).done(function(){var n=a.animators,o=pe(n,e);o>=0&&n.splice(o,1)}),this.animators.push(e),i&&i.animation.addAnimator(e),i&&i.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var i=this.animators,a=i.length,n=[],o=0;o<a;o++){var s=i[o];!e||e===s.scope?s.stop(r):n.push(s)}return this.animators=n,this},t.prototype.animateTo=function(e,r,i){Yv(this,e,r,i)},t.prototype.animateFrom=function(e,r,i){Yv(this,e,r,i,!0)},t.prototype._transitionState=function(e,r,i,a){for(var n=Yv(this,r,i,a),o=0;o<n.length;o++)n[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=yc,e.__dirty=Yt;var r={};function i(n,o,s){r[n+o+s]||(console.warn("DEPRECATED: '"+n+"' has been deprecated. use '"+o+"', '"+s+"' instead"),r[n+o+s]=!0)}function a(n,o,s,l){Object.defineProperty(e,n,{get:function(){if(!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}});function u(f,c){Object.defineProperty(c,0,{get:function(){return f[s]},set:function(h){f[s]=h}}),Object.defineProperty(c,1,{get:function(){return f[l]},set:function(h){f[l]=h}})}}Object.defineProperty&&(a("position","_legacyPos","x","y"),a("scale","_legacyScale","scaleX","scaleY"),a("origin","_legacyOrigin","originX","originY"))})(),t})();Ut($v,ar);Ut($v,ja);function Yv(t,e,r,i,a){r=r||{};var n=[];Lb(t,"",t,e,r,i,n,a);var o=n.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(),n.length>0&&r.during&&n[0].during(function(d,v){r.during(v)});for(var h=0;h<n.length;h++){var p=n[h];f&&p.done(f),c&&p.aborted(c),r.force&&p.duration(r.duration),p.start(r.easing)}return n}function Wv(t,e,r){for(var i=0;i<r;i++)t[i]=e[i]}function CP(t){return lt(t[0])}function wP(t,e,r){if(lt(e[r]))if(lt(t[r])||(t[r]=[]),ft(e[r])){var i=e[r].length;t[r].length!==i&&(t[r]=new e[r].constructor(i),Wv(t[r],e[r],i))}else{var a=e[r],n=t[r],o=a.length;if(CP(a))for(var s=a[0].length,l=0;l<o;l++)n[l]?Wv(n[l],a[l],s):n[l]=Array.prototype.slice.call(a[l]);else Wv(n,a,o);n.length=a.length}else t[r]=e[r]}function TP(t,e){return t===e||lt(t)&&lt(e)&&EP(t,e)}function EP(t,e){var r=t.length;if(r!==e.length)return!1;for(var i=0;i<r;i++)if(t[i]!==e[i])return!1;return!0}function Lb(t,e,r,i,a,n,o,s){for(var l=ae(i),u=a.duration,f=a.delay,c=a.additive,h=a.setToFinal,p=!$(n),d=t.animators,v=[],m=0;m<l.length;m++){var g=l[m],y=i[g];if(y!=null&&r[g]!=null&&(p||n[g]))if($(y)&&!lt(y)&&!ts(y)){if(e){s||(r[g]=y,t.updateDuringAnimation(e));continue}Lb(t,g,r[g],y,a,n&&n[g],o,s)}else v.push(g);else s||(r[g]=y,t.updateDuringAnimation(e),v.push(g))}var x=v.length;if(!c&&x)for(var _=0;_<d.length;_++){var S=d[_];if(S.targetName===e){var b=S.stopTracks(v);if(b){var w=pe(d,S);d.splice(w,1)}}}if(a.force||(v=ke(v,function(A){return!TP(i[A],r[A])}),x=v.length),x>0||a.force&&!o.length){var M=void 0,C=void 0,T=void 0;if(s){C={},h&&(M={});for(var _=0;_<x;_++){var g=v[_];C[g]=r[g],h?M[g]=i[g]:r[g]=i[g]}}else if(h){T={};for(var _=0;_<x;_++){var g=v[_];T[g]=Vn(r[g]),wP(r,i,g)}}var S=new Fl(r,!1,!1,c?ke(d,function(D){return D.targetName===e}):null);S.targetName=e,a.scope&&(S.scope=a.scope),h&&M&&S.whenWithKeys(0,M,v),T&&S.whenWithKeys(0,T,v),S.whenWithKeys(u??500,s?C:i,v).delay(f||0),t.addAnimator(S,e),o.push(S)}}function Eb(t,e,r,i){return!(r&&r.hoverLayer||i)||Ab(t)||e&&Ab(e)?yc:ms}function Ab(t){return t.type==="text"||t.type==="tspan"}function Mb(t,e,r){return!e&&!t.__inHover&&r&&r.duration>0}var xc=$v;var Db=(function(t){N(e,t);function e(r){var i=t.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(r),i}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 i=this._children,a=0;a<i.length;a++)if(i[a].name===r)return i[a]},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,i){if(r&&r!==this&&r.parent!==this&&i&&i.parent===this){var a=this._children,n=a.indexOf(i);n>=0&&(a.splice(n,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,i){var a=pe(this._children,r);return a>=0&&this.replaceAt(i,a),this},e.prototype.replaceAt=function(r,i){var a=this._children,n=a[i];if(r&&r!==this&&r.parent!==this&&r!==n){a[i]=r,n.parent=null;var o=this.__zr;o&&n.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var i=this.__zr;i&&i!==r.__zr&&r.addSelfToZr(i),i&&i.refresh()},e.prototype.remove=function(r){var i=this.__zr,a=this._children,n=pe(a,r);return n<0?this:(a.splice(n,1),r.parent=null,i&&r.removeSelfFromZr(i),i&&i.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,i=this.__zr,a=0;a<r.length;a++){var n=r[a];i&&n.removeSelfFromZr(i),n.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,i){for(var a=this._children,n=0;n<a.length;n++){var o=a[n];r.call(i,o,n)}return this},e.prototype.traverse=function(r,i){for(var a=0;a<this._children.length;a++){var n=this._children[a],o=r.call(i,n);n.isGroup&&!o&&n.traverse(r,i)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++){var a=this._children[i];a.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++){var a=this._children[i];a.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var i=new ce(0,0,0,0),a=r||this._children,n=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(n);f?(ce.applyTransform(i,u,f),o=o||i.clone(),o.union(i)):(o=o||u.clone(),o.union(u))}}return o||i},e})(xc);Db.prototype.type="group";var we=Db;var _c={},Ob={};function AP(t){delete Ob[t]}function MP(t){if(!t)return!1;if(typeof t=="string")return hs(t,1)<Hl;if(t.colorStops){for(var e=t.colorStops,r=0,i=e.length,a=0;a<i;a++)r+=hs(e[a].color,1);return r/=i,r<Hl}return!1}var LP=(function(){function t(e,r,i){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,i=i||{},this.dom=r,this.id=e;var n=new V_,o=i.renderer||"canvas";_c[o]||(o=ae(_c)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new _c[o](r,n,i,e),l=i.ssr||s.ssrOnly;this.storage=n,this.painter=s;var u=!ye.node&&!ye.worker&&!l?new gb(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,c=f==null||f==="auto"?ye.touchEventsSupported:!!f,h=44,p;c&&(p=q(i.pointerSize,h)),this.handler=new I_(n,s,u,s.root,p),this.animation=new pb({stage:{update:l?null:function(){return a._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=MP(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,i=Un(),a=this._needsRefresh,n=this._needsRefreshHover;(a||n)&&(r=!0,this._refresh({animUpdate:e,refresh:a,refreshHover:n}));var o=Un();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-i})):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,i){return this._disposed||this.handler.on(e,r,i),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 we&&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,AP(this.id))},t})();function qv(t,e){var r=new LP(If(),t,e);return Ob[r.id]=r,r}function Ib(t,e){_c[t]=e}var Xv;function Pb(t){if(typeof Xv=="function")return Xv(t)}function Nb(t){Xv=t}var Rb=1e-4,kb=20;function OP(t){return t.replace(/^\s+|\s+$/g,"")}var nt=Math.min,Ce=Math.max,Qe=Math.abs,Pr=Math.round,Ii=Math.floor,Qa=Math.ceil,en=Math.pow,gs=Math.log,Zv=Math.LN10,IP=Math.PI,PP=Math.random;function or(t,e,r,i){var a=e[0],n=e[1],o=r[0],s=r[1],l=n-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(i)if(l>0){if(t<=a)return o;if(t>=n)return s}else{if(t>=a)return o;if(t<=n)return s}else{if(t===a)return o;if(t===n)return s}return(t-a)/l*u+o}var Ee=NP;function NP(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 bc(t,e,r)}function bc(t,e,r){return G(t)?RP(t)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function RP(t){return!!OP(t).match(/%$/)}function Me(t,e,r){return isNaN(e)?r?""+t:+t:(e=nt(Ce(0,e),kb),t=(+t).toFixed(e),r?t:+t)}function Pi(t){return t.sort(function(e,r){return e-r}),t}function pi(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Pr(t*e)/e===t)return r}return kP(t)}function kP(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),i=r>0?+e.slice(r+1):0,a=r>0?r:e.length,n=e.indexOf("."),o=n<0?0:a-1-n;return Ce(0,o-i)}function zb(t,e,r){var i=Qe(t[1]-t[0]);if(!isFinite(i)||i===0)return NaN;var a=gs(2*Qe(r||1)*Qe(i))/Zv,n=gs(Qe(e))/Zv,o=Ce(0,Qa(-a+n));return isFinite(o)||(o=NaN),o}function Vb(t,e){var r=ir(t,function(p,d){return p+(isNaN(d)?0:d)},0);if(r===0)return[];for(var i=en(10,e),a=B(t,function(p){return(isNaN(p)?0:p)/r*i*100}),n=i*100,o=B(a,function(p){return Ii(p)}),s=ir(o,function(p,d){return p+d},0),l=B(a,function(p,d){return p-o[d]});s<n;){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 B(o,function(p){return p/i})}function ha(t,e){var r=Ce(pi(t),pi(e)),i=t+e;return r>kb?i:Me(i,r)}var jv=en(2,53)-1;function Jv(t){var e=IP*2;return(t%e+e)%e}function Yl(t){return t>-Rb&&t<Rb}var zP=/^(?:(\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 hi(t){if(t instanceof Date)return t;if(G(t)){var e=zP.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(Pr(t))}function Sc(t){return en(10,Cc(t))}function Cc(t){if(t===0)return 0;var e=Ii(gs(t)/Zv);return t/en(10,e)>=10&&e++,e}var Qv=2;function Kn(t,e){var r=Cc(t),i=en(10,r),a=t/i,n;return e===Qv?n=1:e?a<1.5?n=1:a<2.5?n=2:a<4?n=3:a<7?n=5:n=10:a<1?n=1:a<2?n=2:a<3?n=3:a<5?n=5:n=10,t=n*i,Me(t,-r)}function em(t){t.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,r=1,i=0;i<t.length;){for(var a=t[i].interval,n=t[i].close,o=0;o<2;o++)a[o]<=e&&(a[o]=e,n[o]=o?1:1-r),e=a[o],r=n[o];a[0]===a[1]&&n[0]*n[1]!==1?t.splice(i,1):i++}return t;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function Ni(t){var e=parseFloat(t);return e==t&&(e!==0||!G(t)||t.indexOf("x")<=0)?e:NaN}function tm(t){return!isNaN(Ni(t))}function Wl(){return Pr(PP()*9)}function Ub(t,e){return e===0?t:Ub(e,t%e)}function rm(t,e){return t==null?e:e==null?t:t*e/Ub(t,e)}function gt(t){return t!=null&&isFinite(t)}var VP="[ECharts] ",Bb={},UP=typeof console<"u"&&console.warn&&console.log;function BP(t,e,r){if(UP){if(r){if(Bb[e])return;Bb[e]=!0}console[t](VP+e)}}function im(t,e){BP("error",t,e)}function It(t){throw new Error(t)}function Fb(t,e,r){return(e-t)*r+t}var Hb="series\0",FP="\0_ec_\0";function Fe(t){return t instanceof Array?t:t==null?[]:[t]}function Xl(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,a=r.length;i<a;i++){var n=r[i];!t.emphasis[e].hasOwnProperty(n)&&t[e].hasOwnProperty(n)&&(t.emphasis[e][n]=t[e][n])}}}var am=["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 da(t){return $(t)&&!z(t)&&!(t instanceof Date)?t.value:t}function Gb(t){return $(t)&&!(t instanceof Array)}function wc(t,e,r){var i=r==="normalMerge",a=r==="replaceMerge",n=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=ee();E(e,function(l,u){if(!$(l)){e[u]=null;return}});var s=HP(t,o,r);return(i||a)&&GP(s,t,o,e),i&&KP(s,e),i||a?YP(s,e,a):n&&WP(s,e),$P(s),s}function HP(t,e,r){var i=[];if(r==="replaceAll")return i;for(var a=0;a<t.length;a++){var n=t[a];n&&n.id!=null&&e.set(n.id,a),i.push({existing:r==="replaceMerge"||xs(n)?null:n,newOption:null,keyInfo:null,brandNew:null})}return i}function GP(t,e,r,i){E(i,function(a,n){if(!(!a||a.id==null)){var o=$l(a.id),s=r.get(o);if(s!=null){var l=t[s];$e(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=e[s],i[n]=null}}})}function KP(t,e){E(e,function(r,i){if(!(!r||r.name==null))for(var a=0;a<t.length;a++){var n=t[a].existing;if(!t[a].newOption&&n&&(n.id==null||r.id==null)&&!xs(r)&&!xs(n)&&Kb("name",n,r)){t[a].newOption=r,e[i]=null;return}}})}function YP(t,e,r){E(e,function(i){if(i){for(var a,n=0;(a=t[n])&&(a.newOption||xs(a.existing)||a.existing&&i.id!=null&&!Kb("id",i,a.existing));)n++;a?(a.newOption=i,a.brandNew=r):t.push({newOption:i,brandNew:r,existing:null,keyInfo:null}),n++}})}function WP(t,e){E(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function $P(t){var e=ee();E(t,function(r){var i=r.existing;i&&e.set(i.id,r)}),E(t,function(r){var i=r.newOption;$e(!i||i.id==null||!e.get(i.id)||e.get(i.id)===r,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&e.set(i.id,r),!r.keyInfo&&(r.keyInfo={})}),E(t,function(r,i){var a=r.existing,n=r.newOption,o=r.keyInfo;if($(n)){if(o.name=n.name!=null?$l(n.name):a?a.name:Hb+i,a)o.id=$l(a.id);else if(n.id!=null)o.id=$l(n.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function Kb(t,e,r){var i=wt(e[t],null),a=wt(r[t],null);return i!=null&&a!=null&&i===a}function $l(t){return wt(t,"")}function wt(t,e){return t==null?e:G(t)?t:me(t)||El(t)?t+"":e}function Tc(t){var e=t.name;return!!(e&&e.indexOf(Hb))}function xs(t){return t&&t.id!=null&&$l(t.id).indexOf(FP)===0}function Yb(t,e,r){E(t,function(i){var a=i.newOption;$(a)&&(i.keyInfo.mainType=e,i.keyInfo.subType=XP(e,a,i.existing,r))})}function XP(t,e,r,i){var a=e.type?e.type:r?r.subType:i.determineSubType(t,e);return a}function Wb(t,e){var r={},i={};return a(t||[],r),a(e||[],i,r),[n(r),n(i)];function a(o,s,l){for(var u=0,f=o.length;u<f;u++){var c=wt(o[u].seriesId,null);if(c==null)return;for(var h=Fe(o[u].dataIndex),p=l&&l[c],d=0,v=h.length;d<v;d++){var m=h[d];p&&p[m]?p[m]=null:(s[c]||(s[c]={}))[m]=1}}}function n(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=n(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function Xr(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return z(e.dataIndex)?B(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return z(e.name)?B(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function ne(){var t="__ec_inner_"+qP++;return function(e){return e[t]||(e[t]={})}}var qP=Wl();function Ec(t,e,r){var i=ql(e,r),a=i.mainTypeSpecified,n=i.queryOptionMap,o=i.others,s=o,l=r?r.defaultMainType:null;return!a&&l&&n.set(l,{}),n.each(function(u,f){var c=Ri(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 ql(t,e){var r;if(G(t)){var i={};i[t+"Index"]=0,r=i}else r=t;var a=ee(),n={},o=!1;return E(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){n[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&pe(e.includeMainTypes,f)<0)){o=o||!!f;var h=a.get(f)||a.set(f,{});h[c]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:n}}var Ht={useDefault:!0,enableAll:!1,enableNone:!1};function Ri(t,e,r,i){i=i||Ht;var a=r.index,n=r.id,o=r.name,s={models:null,specified:a!=null||n!=null||o!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}if(a==="none"||a===!1){if(i.enableNone)return s.models=[],s;a=-1}return a==="all"&&(i.enableAll?a=n=o=null:a=-1),s.models=t.queryComponents({mainType:e,index:a,id:n,name:o}),s}function $b(t,e,r){var i={};i[e+"Id"]=t[e+"Id"],i[e+"Index"]=t[e+"Index"],i[e+"Name"]=t[e+"Name"];var a={mainType:e,query:i};return r&&(a.subType=r),a}function nm(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function Xb(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function qb(t){return t==="auto"?ye.domSupported?"html":"richText":t||"html"}function Ac(t,e,r,i,a){var n=e==null||e==="auto";if(i==null)return i;if(me(i)){var o=Fb(r||0,i,a);return Me(o,n?Math.max(pi(r||0),pi(i)):e)}else{if(G(i))return a<1?r:i;for(var s=[],l=r,u=i,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]=(a<1&&l?l:u)[c];else{var p=l&&l[c]?l[c]:0,d=u[c],o=Fb(p,d,a);s[c]=Me(o,n?Math.max(pi(p),pi(d)):e)}}return s}}var c3=(function(){function t(){}return t.prototype.reset=function(e,r,i,a){return this._list=e,this._step=a=a||1,this._idx=r,this._end=i??(a>0?e.length:0),this.item=null,this.key=NaN,this},t.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},t})();function Gt(){return[1/0,-1/0]}function Zl(t,e){di(e)&&(e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e))}function om(t,e){di(e)&&e<t[0]&&(t[0]=e)}function sm(t,e){di(e)&&e>t[1]&&(t[1]=e)}function Zb(t,e){va(e[0],e[1])&&(e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]))}function di(t){return t!=null&&isFinite(t)}function va(t,e){return di(t)&&di(e)&&t<=e}function jb(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}function Jb(t){va(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function Mc(){var t="__ec_once_"+ZP++;return function(e,r){le(e,t)||(e[t]=1,r())}}var ZP=Wl();function _s(t,e,r){var i=ee(),a=0;E(t,function(n){var o=e(n),s=i.get(o)||0;r&&r(n,s),!s&&!r&&(t[a++]=n),i.set(o,s+1)}),r||(t.length=a)}function Qb(t){return t.value+""}function eS(t){return t+""}function bs(t,e){return q(e,!0)?t.seriesIndex+2:0}function Lc(t,e,r){var i=t.getData().count();return{progressiveRender:r.progressiveEnabled&&e.incrementalPrepareRender&&i>=r.threshold,large:t.get("large")&&i>=t.get("largeThreshold"),modDataCount:t.get("progressiveChunkMode")==="mod"?t.getData().count():null}}function Dc(t,e){return{seriesType:t,overallReset:e}}function Ss(t){return{overallReset:t}}var jP=".",Yn="___EC__COMPONENT__CONTAINER___",tS="___EC__EXTENDED_CLASS___";function _r(t){var e={main:"",sub:""};if(t){var r=t.split(jP);e.main=r[0]||"",e.sub=r[1]||""}return e}function JP(t){$e(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function rS(t){return!!(t&&t[tS])}function Cs(t,e){t.$constructor=t,t.extend=function(r){var i=this,a;return QP(i)?a=(function(n){N(o,n);function o(){return n.apply(this,arguments)||this}return o})(i):(a=function(){(r.$constructor||i).apply(this,arguments)},u_(a,this)),k(a.prototype,r),a[tS]=!0,a.extend=this.extend,a.superCall=tN,a.superApply=rN,a.superClass=i,a}}function QP(t){return j(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function Oc(t,e){t.extend=e.extend}var eN=Math.round(Math.random()*10);function iS(t){var e=["__\0is_clz",eN++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function tN(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,r)}function rN(t,e,r){return this.superClass.prototype[e].apply(t,r)}function tn(t){var e={};t.registerClass=function(i){var a=i.type||i.prototype.type;if(a){JP(a),i.prototype.type=a;var n=_r(a);if(!n.sub)e[n.main]=i;else if(n.sub!==Yn){var o=r(n);o[n.sub]=i}}return i},t.getClass=function(i,a,n){var o=e[i];if(o&&o[Yn]&&(o=a?o[a]:null),n&&!o)throw new Error(a?"Component "+i+"."+(a||"")+" is used but not imported.":i+".type should be specified.");return o},t.getClassesByMainType=function(i){var a=_r(i),n=[],o=e[a.main];return o&&o[Yn]?E(o,function(s,l){l!==Yn&&n.push(s)}):n.push(o),n},t.hasClass=function(i){var a=_r(i);return!!e[a.main]},t.getAllClassMainTypes=function(){var i=[];return E(e,function(a,n){i.push(n)}),i},t.hasSubTypes=function(i){var a=_r(i),n=e[a.main];return n&&n[Yn]};function r(i){var a=e[i.main];return(!a||!a[Yn])&&(a=e[i.main]={},a[Yn]=!0),a}}function ki(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(i,a,n){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(a&&pe(a,l)>=0||n&&pe(n,l)<0)){var u=i.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var iN=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],aN=ki(iN),aS=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return aN(this,e,r)},t})();var um=new Li(50);function oS(t){if(typeof t=="string"){var e=um.get(t);return e&&e.image}else return t}function jl(t,e,r,i,a){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var n=um.get(t),o={hostEl:r,cb:i,cbPayload:a};return n?(e=n.image,!ws(e)&&n.pending.push(o)):(e=St.loadImage(t,nS,nS),e.__zrImageSrc=t,um.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function nS(){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],i=r.cb;i&&i(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function ws(t){return t&&t.width&&t.height}var fm=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function pm(t,e,r,i,a){var n={};return fS(n,t,e,r,i,a),n.text}function fS(t,e,r,i,a,n){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
3
- `);n=cS(r,i,a,n);for(var s=!1,l={},u=0,f=o.length;u<f;u++)pS(l,o[u],n),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join(`
4
- `),t.isTruncated=s}function cS(t,e,r,i){i=i||{};var a=k({},i);r=q(r,"..."),a.maxIterations=q(i.maxIterations,2);var n=a.minChar=q(i.minChar,0),o=a.fontMeasureInfo=fi(e),s=o.asciiCharWidth;a.placeholder=q(i.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<n&&l>=s;u++)l-=s;var f=ci(o,r);return f>l&&(r="",f=0),l=t-f,a.ellipsis=r,a.ellipsisWidth=f,a.contentWidth=l,a.containerWidth=t,a}function pS(t,e,r){var i=r.containerWidth,a=r.contentWidth,n=r.fontMeasureInfo;if(!i){t.textLine="",t.isTruncated=!1;return}var o=ci(n,e);if(o<=i){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?oN(e,a,n):o>0?Math.floor(e.length*a/o):0;e=e.substr(0,l),o=ci(n,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function oN(t,e,r){for(var i=0,a=0,n=t.length;a<n&&i<e;a++)i+=Hv(r,t.charCodeAt(a));return a}function hS(t,e,r,i){var a=dm(t),n=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=n==="truncate",c=Hn(u),h=q(e.lineHeight,c),p=e.lineOverflow==="truncate",d=!1,v=e.width;v==null&&r!=null&&(v=r-s);var m=e.height;m==null&&i!=null&&(m=i-l);var g;v!=null&&(n==="break"||n==="breakAll")?g=a?vS(a,e.font,v,n==="breakAll",0).lines:[]:g=a?a.split(`
5
- `):[];var y=g.length*h;if(m==null&&(m=y),y>m&&p){var x=Math.floor(m/h);d=d||g.length>x,g=g.slice(0,x),y=g.length*h}if(a&&f&&v!=null)for(var _=cS(v,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),S={},b=0;b<g.length;b++)pS(S,g[b],_),g[b]=S.textLine,d=d||S.isTruncated;for(var w=m,M=0,C=fi(u),b=0;b<g.length;b++)M=Math.max(ci(C,g[b]),M);v==null&&(v=M);var T=v;return w+=l,T+=s,{lines:g,height:m,outerWidth:T,outerHeight:w,lineHeight:h,calculatedLineHeight:c,contentWidth:M,contentHeight:y,width:v,isTruncated:d}}var sN=(function(){function t(){}return t})(),sS=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),lN=(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 dS(t,e,r,i,a){var n=new lN,o=dm(t);if(!o)return n;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&&i!=null&&(c=i-u);for(var h=e.overflow,p=(h==="break"||h==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:h==="breakAll"}:null,d=fm.lastIndex=0,v;(v=fm.exec(o))!=null;){var m=v.index;m>d&&cm(n,o.substring(d,m),e,p),cm(n,v[2],e,p,v[1]),d=fm.lastIndex}d<o.length&&cm(n,o.substring(d,o.length),e,p);var g=[],y=0,x=0,_=h==="truncate",S=e.lineOverflow==="truncate",b={};function w(ie,Ue,Ke){ie.width=Ue,ie.lineHeight=Ke,y+=Ke,x=Math.max(x,Ue)}e:for(var M=0;M<n.lines.length;M++){for(var C=n.lines[M],T=0,A=0,D=0;D<C.tokens.length;D++){var L=C.tokens[D],O=L.styleName&&e.rich[L.styleName]||{},I=L.textPadding=O.padding,P=I?I[1]+I[3]:0,V=L.font=O.font||e.font;L.contentHeight=Hn(V);var R=q(O.height,L.contentHeight);if(L.innerHeight=R,I&&(R+=I[0]+I[2]),L.height=R,L.lineHeight=Or(O.lineHeight,e.lineHeight,R),L.align=O&&O.align||a,L.verticalAlign=O&&O.verticalAlign||"middle",S&&c!=null&&y+L.lineHeight>c){var U=n.lines.length;D>0?(C.tokens=C.tokens.slice(0,D),w(C,A,T),n.lines=n.lines.slice(0,M+1)):n.lines=n.lines.slice(0,M),n.isTruncated=n.isTruncated||n.lines.length<U;break e}var F=O.width,K=F==null||F==="auto";if(typeof F=="string"&&F.charAt(F.length-1)==="%")L.percentWidth=F,g.push(L),L.contentWidth=ci(fi(V),L.text);else{if(K){var X=O.backgroundColor,re=X&&X.image;re&&(re=oS(re),ws(re)&&(L.width=Math.max(L.width,re.width*R/re.height)))}var Z=_&&f!=null?f-A:null;Z!=null&&Z<L.width?!K||Z<P?(L.text="",L.width=L.contentWidth=0):(fS(b,L.text,Z-P,V,e.ellipsis,{minChar:e.truncateMinChar}),L.text=b.text,n.isTruncated=n.isTruncated||b.isTruncated,L.width=L.contentWidth=ci(fi(V),L.text)):L.contentWidth=ci(fi(V),L.text)}L.width+=P,A+=L.width,O&&(T=Math.max(T,L.lineHeight))}w(C,A,T)}n.outerWidth=n.width=q(f,x),n.outerHeight=n.height=q(c,y),n.contentHeight=y,n.contentWidth=x,n.outerWidth+=l,n.outerHeight+=u;for(var M=0;M<g.length;M++){var L=g[M],de=L.percentWidth;L.width=parseInt(de,10)/100*n.width}return n}function cm(t,e,r,i,a){var n=e==="",o=a&&r.rich[a]||{},s=t.lines,l=o.font||r.font,u=!1,f,c;if(i){var h=o.padding,p=h?h[1]+h[3]:0;if(o.width!=null&&o.width!=="auto"){var d=xr(o.width,i.width)+p;s.length>0&&d+i.accumWidth>i.width&&(f=e.split(`
6
- `),u=!0),i.accumWidth=d}else{var v=vS(e,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=v.accumWidth+p,c=v.linesWidths,f=v.lines}}f||(f=e.split(`
7
- `));for(var m=fi(l),g=0;g<f.length;g++){var y=f[g],x=new sN;if(x.styleName=a,x.text=y,x.isLineHolder=!y&&!n,typeof o.width=="number"?x.width=o.width:x.width=c?c[g]:ci(m,y),!g&&!u){var _=(s[s.length-1]||(s[0]=new sS)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=x:(y||!S||n)&&_.push(x)}else s.push(new sS([x]))}}function uN(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var fN=ir(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function cN(t){return uN(t)?!!fN[t]:!0}function vS(t,e,r,i,a){for(var n=[],o=[],s="",l="",u=0,f=0,c=fi(e),h=0;h<t.length;h++){var p=t.charAt(h);if(p===`
8
- `){l&&(s+=l,f+=u),n.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=Hv(c,p.charCodeAt(0)),v=i?!1:!cN(p);if(n.length?f+d>r:a+f+d>r){f?(s||l)&&(v?(s||(s=l,l="",u=0,f=u),n.push(s),o.push(f-u),l+=p,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),n.push(s),o.push(f),s=p,f=d)):v?(n.push(l),o.push(u),l=p,u=d):(n.push(p),o.push(d));continue}f+=d,v?(l+=p,u+=d):(l&&(s+=l,l="",u=0),s+=p)}return l&&(s+=l),s&&(n.push(s),o.push(f)),n.length===1&&(f+=a),{accumWidth:f,lines:n,linesWidths:o}}function hm(t,e,r,i,a,n){if(t.baseX=r,t.baseY=i,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;ce.set(lS,Ja(r,o,a),pa(i,s,n),o,s),ce.intersect(e,lS,null,uS);var l=uS.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=Ja(l.x,l.width,a,!0),t.baseY=pa(l.y,l.height,n,!0)}}var lS=new ce(0,0,0,0),uS={outIntersectRect:{},clamp:!0};function dm(t){return t!=null?t+="":t=""}function mS(t){var e=dm(t.text),r=t.font,i=ci(fi(r),e),a=Hn(r);return Ic(t,i,a,null)}function Ic(t,e,r,i){var a=new ce(Ja(t.x||0,e,t.textAlign),pa(t.y||0,r,t.textBaseline),e,r),n=i??(vm(t)?t.lineWidth:0);return n>0&&(a.x-=n/2,a.y-=n/2,a.width+=n,a.height+=n),a}function vm(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var ym="__zr_style_"+Math.round(Math.random()*10),zi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Wn={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};zi[ym]=!0;var gS=["z","z2","invisible"],pN=["invisible"],hN=(function(t){N(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var i=ae(r),a=0;a<i.length;a++){var n=i[a];n==="style"?this.useStyle(r[n]):t.prototype.attrKV.call(this,n,r[n])}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,i,a,n){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&dN(this,r,i)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(n&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,i){return this.rectContain(r,i)},e.prototype.traverse=function(r,i){r.call(i,this)},e.prototype.rectContain=function(r,i){var a=this.transformCoordToLocal(r,i),n=this.getBoundingRect();return n.contain(a[0],a[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,a=this.getBoundingRect(),n=this.style,o=n.shadowBlur||0,s=n.shadowOffsetX||0,l=n.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new ce(0,0,0,0)),i?ce.applyTransform(r,a,i):r.copy(a),(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 ce(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,i){r!=="style"?t.prototype.attrKV.call(this,r,i):this.style?this.setStyle(i):this.useStyle(i)},e.prototype.setStyle=function(r,i){return typeof r=="string"?this.style[r]=i:k(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Rn,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Rn)},e.prototype.styleUpdated=function(){this.__dirty&=~Rn},e.prototype.createStyle=function(r){return Ba(zi,r)},e.prototype.useStyle=function(r){r[ym]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},e.prototype._useHoverStyle=function(r){this.__hoverStyle=r},e.prototype.isStyleObject=function(r){return r[ym]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,i,gS)},e.prototype._applyStateObj=function(r,i,a,n,o,s){t.prototype._applyStateObj.call(this,r,i,a,n,o,s);var l=!(i&&n),u=this.__inHover===ms,f;if(i&&i.style?o?n?f=i.style:(f=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(f,i.style)):(f=this._mergeStyle(this.createStyle(),n?this.style:a.style),this._mergeStyle(f,i.style)):l&&(f=a.style),f)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var h=ae(c),p=0;p<h.length;p++){var d=h[p];d in f&&(f[d]=f[d],this.style[d]=c[d])}for(var v=ae(f),p=0;p<v.length;p++){var d=v[p];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 m=this.__inHover?pN:gS,p=0;p<m.length;p++){var d=m[p];i&&i[d]!=null?this[d]=i[d]:l&&a[d]!=null&&(this[d]=a[d])}},e.prototype._mergeStates=function(r){for(var i=t.prototype._mergeStates.call(this,r),a,n=0;n<r.length;n++){var o=r[n];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(i.style=a),i},e.prototype._mergeStyle=function(r,i){return k(r,i),r},e.prototype.getAnimationStyleProps=function(){return Wn},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=Yt|Rn})(),e})(xc),mm=new ce(0,0,0,0),gm=new ce(0,0,0,0);function dN(t,e,r){return mm.copy(t.getBoundingRect()),t.transform&&mm.applyTransform(t.transform),gm.width=e,gm.height=r,!mm.intersect(gm)}var br=hN;var Zr=Math.min,jr=Math.max,xm=Math.sin,_m=Math.cos,$n=Math.PI*2,Pc=Fa(),Nc=Fa(),Rc=Fa();function bm(t,e,r,i,a,n){a[0]=Zr(t,r),a[1]=Zr(e,i),n[0]=jr(t,r),n[1]=jr(e,i)}var yS=[],xS=[];function _S(t,e,r,i,a,n,o,s,l,u){var f=qf,c=tt,h=f(t,r,a,o,yS);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<h;p++){var d=c(t,r,a,o,yS[p]);l[0]=Zr(d,l[0]),u[0]=jr(d,u[0])}h=f(e,i,n,s,xS);for(var p=0;p<h;p++){var v=c(e,i,n,s,xS[p]);l[1]=Zr(v,l[1]),u[1]=jr(v,u[1])}l[0]=Zr(t,l[0]),u[0]=jr(t,u[0]),l[0]=Zr(o,l[0]),u[0]=jr(o,u[0]),l[1]=Zr(e,l[1]),u[1]=jr(e,u[1]),l[1]=Zr(s,l[1]),u[1]=jr(s,u[1])}function bS(t,e,r,i,a,n,o,s){var l=jf,u=Ct,f=jr(Zr(l(t,r,a),1),0),c=jr(Zr(l(e,i,n),1),0),h=u(t,r,a,f),p=u(e,i,n,c);o[0]=Zr(t,a,h),o[1]=Zr(e,n,p),s[0]=jr(t,a,h),s[1]=jr(e,n,p)}function SS(t,e,r,i,a,n,o,s,l){var u=oa,f=sa,c=Math.abs(a-n);if(c%$n<1e-4&&c>1e-4){s[0]=t-r,s[1]=e-i,l[0]=t+r,l[1]=e+i;return}if(Pc[0]=_m(a)*r+t,Pc[1]=xm(a)*i+e,Nc[0]=_m(n)*r+t,Nc[1]=xm(n)*i+e,u(s,Pc,Nc),f(l,Pc,Nc),a=a%$n,a<0&&(a=a+$n),n=n%$n,n<0&&(n=n+$n),a>n&&!o?n+=$n:a<n&&o&&(a+=$n),o){var h=n;n=a,a=h}for(var p=0;p<n;p+=Math.PI/2)p>a&&(Rc[0]=_m(p)*r+t,Rc[1]=xm(p)*i+e,u(s,Rc,s),f(l,Rc,l))}var He={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Xn=[],qn=[],Vi=[],rn=[],Ui=[],Bi=[],Sm=Math.min,Cm=Math.max,Zn=Math.cos,jn=Math.sin,ma=Math.abs,Em=Math.PI,an=Em*2,wm=typeof Float32Array<"u",Jl=[];function Tm(t){var e=Math.round(t/Em*1e8)/1e8;return e%2*Em}function Am(t,e){var r=Tm(t[0]);r<0&&(r+=an);var i=r-t[0],a=t[1];a+=i,!e&&a-r>=an?a=r+an:e&&r-a>=an?a=r-an:!e&&r>a?a=r+(an-Tm(r-a)):e&&r<a&&(a=r-(an-Tm(a-r))),t[0]=r,t[1]=a}var vN=(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,i){i=i||0,i>0&&(this._ux=ma(i/Vv/e)||0,this._uy=ma(i/Vv/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(He.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 i=ma(e-this._xi),a=ma(r-this._yi),n=i>this._ux||a>this._uy;if(this.addData(He.L,e,r),this._ctx&&n&&this._ctx.lineTo(e,r),n)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=i*i+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,i,a,n,o){return this._drawPendingPt(),this.addData(He.C,e,r,i,a,n,o),this._ctx&&this._ctx.bezierCurveTo(e,r,i,a,n,o),this._xi=n,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,i,a){return this._drawPendingPt(),this.addData(He.Q,e,r,i,a),this._ctx&&this._ctx.quadraticCurveTo(e,r,i,a),this._xi=i,this._yi=a,this},t.prototype.arc=function(e,r,i,a,n,o){this._drawPendingPt(),Jl[0]=a,Jl[1]=n,Am(Jl,o),a=Jl[0],n=Jl[1];var s=n-a;return this.addData(He.A,e,r,i,i,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,i,a,n,o),this._xi=Zn(n)*i+e,this._yi=jn(n)*i+r,this},t.prototype.arcTo=function(e,r,i,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,i,a,n),this},t.prototype.rect=function(e,r,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,i,a),this.addData(He.R,e,r,i,a),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(He.Z);var e=this._ctx,r=this._x0,i=this._y0;return e&&e.closePath(),this._xi=r,this._yi=i,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)&&wm&&(this.data=new Float32Array(r));for(var i=0;i<r;i++)this.data[i]=e[i];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,i=0,a=this._len,n=0;n<r;n++)i+=e[n].len();var o=this.data;if(wm&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(a+i),a>0&&o))for(var s=0;s<a;s++)this.data[s]=o[s];for(var n=0;n<r;n++)for(var l=e[n].data,s=0;s<l.length;s++)this.data[a++]=l[s];this._len=a}},t.prototype.addData=function(e,r,i,a,n,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,wm&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){Vi[0]=Vi[1]=Ui[0]=Ui[1]=Number.MAX_VALUE,rn[0]=rn[1]=Bi[0]=Bi[1]=-Number.MAX_VALUE;var e=this.data,r=0,i=0,a=0,n=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],i=e[o+1],a=r,n=i),s){case He.M:r=a=e[o++],i=n=e[o++],Ui[0]=a,Ui[1]=n,Bi[0]=a,Bi[1]=n;break;case He.L:bm(r,i,e[o],e[o+1],Ui,Bi),r=e[o++],i=e[o++];break;case He.C:_S(r,i,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Ui,Bi),r=e[o++],i=e[o++];break;case He.Q:bS(r,i,e[o++],e[o++],e[o],e[o+1],Ui,Bi),r=e[o++],i=e[o++];break;case He.A:var u=e[o++],f=e[o++],c=e[o++],h=e[o++],p=e[o++],d=e[o++]+p;o+=1;var v=!e[o++];l&&(a=Zn(p)*c+u,n=jn(p)*h+f),SS(u,f,c,h,p,d,v,Ui,Bi),r=Zn(d)*c+u,i=jn(d)*h+f;break;case He.R:a=r=e[o++],n=i=e[o++];var m=e[o++],g=e[o++];bm(a,n,a+m,n+g,Ui,Bi);break;case He.Z:r=a,i=n;break}oa(Vi,Vi,Ui),sa(rn,rn,Bi)}return o===0&&(Vi[0]=Vi[1]=rn[0]=rn[1]=0),new ce(Vi[0],Vi[1],rn[0]-Vi[0],rn[1]-Vi[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,i=this._ux,a=this._uy,n=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 p=e[h++],d=h===1;d&&(n=e[h],o=e[h+1],s=n,l=o);var v=-1;switch(p){case He.M:n=s=e[h++],o=l=e[h++];break;case He.L:{var m=e[h++],g=e[h++],y=m-n,x=g-o;(ma(y)>i||ma(x)>a||h===r-1)&&(v=Math.sqrt(y*y+x*x),n=m,o=g);break}case He.C:{var _=e[h++],S=e[h++],m=e[h++],g=e[h++],b=e[h++],w=e[h++];v=G_(n,o,_,S,m,g,b,w,10),n=b,o=w;break}case He.Q:{var _=e[h++],S=e[h++],m=e[h++],g=e[h++];v=Y_(n,o,_,S,m,g,10),n=m,o=g;break}case He.A:var M=e[h++],C=e[h++],T=e[h++],A=e[h++],D=e[h++],L=e[h++],O=L+D;h+=1,d&&(s=Zn(D)*T+M,l=jn(D)*A+C),v=Cm(T,A)*Sm(an,Math.abs(L)),n=Zn(O)*T+M,o=jn(O)*A+C;break;case He.R:{s=n=e[h++],l=o=e[h++];var I=e[h++],P=e[h++];v=I*2+P*2;break}case He.Z:{var y=s-n,x=l-o;v=Math.sqrt(y*y+x*x),n=s,o=l;break}}v>=0&&(u[c++]=v,f+=v)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var i=this.data,a=this._ux,n=this._uy,o=this._len,s,l,u,f,c,h,p=r<1,d,v,m=0,g=0,y,x=0,_,S;if(!(p&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,v=this._pathLen,y=r*v,!y)))e:for(var b=0;b<o;){var w=i[b++],M=b===1;switch(M&&(u=i[b],f=i[b+1],s=u,l=f),w!==He.L&&x>0&&(e.lineTo(_,S),x=0),w){case He.M:s=u=i[b++],l=f=i[b++],e.moveTo(u,f);break;case He.L:{c=i[b++],h=i[b++];var C=ma(c-u),T=ma(h-f);if(C>a||T>n){if(p){var A=d[g++];if(m+A>y){var D=(y-m)/A;e.lineTo(u*(1-D)+c*D,f*(1-D)+h*D);break e}m+=A}e.lineTo(c,h),u=c,f=h,x=0}else{var L=C*C+T*T;L>x&&(_=c,S=h,x=L)}break}case He.C:{var O=i[b++],I=i[b++],P=i[b++],V=i[b++],R=i[b++],U=i[b++];if(p){var A=d[g++];if(m+A>y){var D=(y-m)/A;us(u,O,P,R,D,Xn),us(f,I,V,U,D,qn),e.bezierCurveTo(Xn[1],qn[1],Xn[2],qn[2],Xn[3],qn[3]);break e}m+=A}e.bezierCurveTo(O,I,P,V,R,U),u=R,f=U;break}case He.Q:{var O=i[b++],I=i[b++],P=i[b++],V=i[b++];if(p){var A=d[g++];if(m+A>y){var D=(y-m)/A;fs(u,O,P,D,Xn),fs(f,I,V,D,qn),e.quadraticCurveTo(Xn[1],qn[1],Xn[2],qn[2]);break e}m+=A}e.quadraticCurveTo(O,I,P,V),u=P,f=V;break}case He.A:var F=i[b++],K=i[b++],X=i[b++],re=i[b++],Z=i[b++],de=i[b++],ie=i[b++],Ue=!i[b++],Ke=X>re?X:re,Le=ma(X-re)>.001,We=Z+de,ve=!1;if(p){var A=d[g++];m+A>y&&(We=Z+de*(y-m)/A,ve=!0),m+=A}if(Le&&e.ellipse?e.ellipse(F,K,X,re,ie,Z,We,Ue):e.arc(F,K,Ke,Z,We,Ue),ve)break e;M&&(s=Zn(Z)*X+F,l=jn(Z)*re+K),u=Zn(We)*X+F,f=jn(We)*re+K;break;case He.R:s=u=i[b],l=f=i[b+1],c=i[b++],h=i[b++];var be=i[b++],zt=i[b++];if(p){var A=d[g++];if(m+A>y){var et=y-m;e.moveTo(c,h),e.lineTo(c+Sm(et,be),h),et-=be,et>0&&e.lineTo(c+be,h+Sm(et,zt)),et-=zt,et>0&&e.lineTo(c+Cm(be-et,0),h+zt),et-=be,et>0&&e.lineTo(c,h+Cm(zt-et,0));break e}m+=A}e.rect(c,h,be,zt);break;case He.Z:if(p){var A=d[g++];if(m+A>y){var D=(y-m)/A;e.lineTo(u*(1-D)+s*D,f*(1-D)+l*D);break e}m+=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=He,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})(),Kt=vN;function Jn(t,e,r,i,a,n,o){if(a===0)return!1;var s=a,l=0,u=t;if(o>e+s&&o>i+s||o<e-s&&o<i-s||n>t+s&&n>r+s||n<t-s&&n<r-s)return!1;if(t!==r)l=(e-i)/(t-r),u=(t*i-r*e)/(t-r);else return Math.abs(n-t)<=s/2;var f=l*n-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function CS(t,e,r,i,a,n,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>e+c&&f>i+c&&f>n+c&&f>s+c||f<e-c&&f<i-c&&f<n-c&&f<s-c||u>t+c&&u>r+c&&u>a+c&&u>o+c||u<t-c&&u<r-c&&u<a-c&&u<o-c)return!1;var h=Zf(t,e,r,i,a,n,o,s,u,f,null);return h<=c/2}function wS(t,e,r,i,a,n,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>i+u&&l>n+u||l<e-u&&l<i-u&&l<n-u||s>t+u&&s>r+u&&s>a+u||s<t-u&&s<r-u&&s<a-u)return!1;var f=Jf(t,e,r,i,a,n,s,l,null);return f<=u/2}var TS=Math.PI*2;function Jr(t){return t%=TS,t<0&&(t+=TS),t}var Ql=Math.PI*2;function ES(t,e,r,i,a,n,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(i-a)%Ql<1e-4)return!0;if(n){var c=i;i=Jr(a),a=Jr(c)}else i=Jr(i),a=Jr(a);i>a&&(a+=Ql);var h=Math.atan2(l,s);return h<0&&(h+=Ql),h>=i&&h<=a||h+Ql>=i&&h+Ql<=a}function ga(t,e,r,i,a,n){if(n>e&&n>i||n<e&&n<i||i===e)return 0;var o=(n-e)/(i-e),s=i<e?1:-1;(o===1||o===0)&&(s=i<e?.5:-.5);var l=o*(r-t)+t;return l===a?1/0:l>a?s:0}var nn=Kt.CMD,Qn=Math.PI*2,_N=1e-4;function bN(t,e){return Math.abs(t-e)<_N}var sr=[-1,-1,-1],Qr=[-1,-1];function SN(){var t=Qr[0];Qr[0]=Qr[1],Qr[1]=t}function CN(t,e,r,i,a,n,o,s,l,u){if(u>e&&u>i&&u>n&&u>s||u<e&&u<i&&u<n&&u<s)return 0;var f=kn(e,i,n,s,u,sr);if(f===0)return 0;for(var c=0,h=-1,p=void 0,d=void 0,v=0;v<f;v++){var m=sr[v],g=m===0||m===1?.5:1,y=tt(t,r,a,o,m);y<l||(h<0&&(h=qf(e,i,n,s,Qr),Qr[1]<Qr[0]&&h>1&&SN(),p=tt(e,i,n,s,Qr[0]),h>1&&(d=tt(e,i,n,s,Qr[1]))),h===2?m<Qr[0]?c+=p<e?g:-g:m<Qr[1]?c+=d<p?g:-g:c+=s<d?g:-g:m<Qr[0]?c+=p<e?g:-g:c+=s<p?g:-g)}return c}function wN(t,e,r,i,a,n,o,s){if(s>e&&s>i&&s>n||s<e&&s<i&&s<n)return 0;var l=K_(e,i,n,s,sr);if(l===0)return 0;var u=jf(e,i,n);if(u>=0&&u<=1){for(var f=0,c=Ct(e,i,n,u),h=0;h<l;h++){var p=sr[h]===0||sr[h]===1?.5:1,d=Ct(t,r,a,sr[h]);d<o||(sr[h]<u?f+=c<e?p:-p:f+=n<c?p:-p)}return f}else{var p=sr[0]===0||sr[0]===1?.5:1,d=Ct(t,r,a,sr[0]);return d<o?0:n<e?p:-p}}function TN(t,e,r,i,a,n,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);sr[0]=-l,sr[1]=l;var u=Math.abs(i-a);if(u<1e-4)return 0;if(u>=Qn-1e-4){i=0,a=Qn;var f=n?1:-1;return o>=sr[0]+t&&o<=sr[1]+t?f:0}if(i>a){var c=i;i=a,a=c}i<0&&(i+=Qn,a+=Qn);for(var h=0,p=0;p<2;p++){var d=sr[p];if(d+t>o){var v=Math.atan2(s,d),f=n?1:-1;v<0&&(v=Qn+v),(v>=i&&v<=a||v+Qn>=i&&v+Qn<=a)&&(v>Math.PI/2&&v<Math.PI*1.5&&(f=-f),h+=f)}}return h}function AS(t,e,r,i,a){for(var n=t.data,o=t.len(),s=0,l=0,u=0,f=0,c=0,h,p,d=0;d<o;){var v=n[d++],m=d===1;switch(v===nn.M&&d>1&&(r||(s+=ga(l,u,f,c,i,a))),m&&(l=n[d],u=n[d+1],f=l,c=u),v){case nn.M:f=n[d++],c=n[d++],l=f,u=c;break;case nn.L:if(r){if(Jn(l,u,n[d],n[d+1],e,i,a))return!0}else s+=ga(l,u,n[d],n[d+1],i,a)||0;l=n[d++],u=n[d++];break;case nn.C:if(r){if(CS(l,u,n[d++],n[d++],n[d++],n[d++],n[d],n[d+1],e,i,a))return!0}else s+=CN(l,u,n[d++],n[d++],n[d++],n[d++],n[d],n[d+1],i,a)||0;l=n[d++],u=n[d++];break;case nn.Q:if(r){if(wS(l,u,n[d++],n[d++],n[d],n[d+1],e,i,a))return!0}else s+=wN(l,u,n[d++],n[d++],n[d],n[d+1],i,a)||0;l=n[d++],u=n[d++];break;case nn.A:var g=n[d++],y=n[d++],x=n[d++],_=n[d++],S=n[d++],b=n[d++];d+=1;var w=!!(1-n[d++]);h=Math.cos(S)*x+g,p=Math.sin(S)*_+y,m?(f=h,c=p):s+=ga(l,u,h,p,i,a);var M=(i-g)*_/x+g;if(r){if(ES(g,y,_,S,S+b,w,e,M,a))return!0}else s+=TN(g,y,_,S,S+b,w,M,a);l=Math.cos(S+b)*x+g,u=Math.sin(S+b)*_+y;break;case nn.R:f=l=n[d++],c=u=n[d++];var C=n[d++],T=n[d++];if(h=f+C,p=c+T,r){if(Jn(f,c,h,c,e,i,a)||Jn(h,c,h,p,e,i,a)||Jn(h,p,f,p,e,i,a)||Jn(f,p,f,c,e,i,a))return!0}else s+=ga(h,c,h,p,i,a),s+=ga(f,p,f,c,i,a);break;case nn.Z:if(r){if(Jn(l,u,f,c,e,i,a))return!0}else s+=ga(l,u,f,c,i,a);l=f,u=c;break}}return!r&&!bN(u,c)&&(s+=ga(l,u,f,c,i,a)||0),s!==0}function MS(t,e,r){return AS(t,0,!1,e,r)}function LS(t,e,r,i){return AS(t,e,!0,r,i)}var Ts=ue({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},zi),AN={style:ue({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Wn.style)},Mm=$r.concat(["invisible","culling","z","z2","zlevel","parent"]),MN=(function(t){N(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 i=this.style;if(i.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){r.buildPath(l,r.shape)}),a.silent=!0;var n=a.style;for(var o in i)n[o]!==i[o]&&(n[o]=i[o]);n.fill=i.fill?i.decal:null,n.decal=null,n.shadowColor=null,i.strokeFirst&&(n.stroke=null);for(var s=0;s<Mm.length;++s)a[Mm[s]]=this[Mm[s]];a.__dirty|=Yt}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var i=ae(r);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var n=0;n<i.length;n++){var o=i[n],s=r[o];o==="style"?this.style?k(this.style,s):this.useStyle(s):o==="shape"?k(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(G(r)){var i=hs(r,0);return i>.5?Gl:i>.2?xb:Kl}else if(r)return Kl}return Gl},e.prototype.getInsideTextStroke=function(r){var i=this.style.fill;if(G(i)){var a=this.__zr,n=!!(a&&a.isDarkMode()),o=hs(r,0)<Hl;if(n===o)return i}},e.prototype.buildPath=function(r,i,a){},e.prototype.pathUpdated=function(){this.__dirty&=~Ya},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 Kt(!1)},e.prototype.hasStroke=function(){var r=this.style,i=r.stroke;return!(i==null||i==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,i=this.style,a=!r;if(a){var n=!1;this.path||(n=!0,this.createPathProxy());var o=this.path;(n||this.__dirty&Ya)&&(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||a){s.copy(r);var l=i.strokeNoScale?this.getLineScale():1,u=i.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,i){var a=this.transformCoordToLocal(r,i),n=this.getBoundingRect(),o=this.style;if(r=a[0],i=a[1],n.contain(r,i)){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)),LS(s,l/u,r,i)))return!0}if(this.hasFill())return MS(s,r,i)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Ya,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,i){r==="shape"?this.setShape(i):t.prototype.attrKV.call(this,r,i)},e.prototype.setShape=function(r,i){var a=this.shape;return a||(a=this.shape={}),typeof r=="string"?a[r]=i:k(a,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Ya)},e.prototype.createStyle=function(r){return Ba(Ts,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.shape&&!i.shape&&(i.shape=k({},this.shape))},e.prototype._applyStateObj=function(r,i,a,n,o,s){if(t.prototype._applyStateObj.call(this,r,i,a,n,o,s),this.__inHover!==ms){var l=!(i&&n),u;if(i&&i.shape?o?n?u=i.shape:(u=k({},a.shape),k(u,i.shape)):(u=k({},n?this.shape:a.shape),k(u,i.shape)):l&&(u=a.shape),u)if(o){this.shape=k({},this.shape);for(var f={},c=ae(u),h=0;h<c.length;h++){var p=c[h];typeof u[p]=="object"?this.shape[p]=u[p]:f[p]=u[p]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()}},e.prototype._mergeStates=function(r){for(var i=t.prototype._mergeStates.call(this,r),a,n=0;n<r.length;n++){var o=r[n];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(i.shape=a),i},e.prototype.getAnimationStyleProps=function(){return AN},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var i=(function(n){N(o,n);function o(s){var l=n.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Q(r.style)},o.prototype.getDefaultShape=function(){return Q(r.shape)},o})(e);for(var a in r)typeof r[a]=="function"&&(i.prototype[a]=r[a]);return i},e.initDefaultProps=(function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Yt|Rn|Ya})(),e})(br),he=MN;var LN=ue({strokeFirst:!0,font:gr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Ts),DS=(function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return vm(this.style)},e.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},e.prototype.createStyle=function(r){return Ba(LN,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=mS(this.style)),this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(br);DS.prototype.type="tspan";var eo=DS;var DN=ue({x:0,y:0},zi),ON={style:ue({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Wn.style)};function IN(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var OS=(function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return Ba(DN,r)},e.prototype._getSize=function(r){var i=this.style,a=i[r];if(a!=null)return a;var n=IN(i.image)?i.image:this.__image;if(!n)return 0;var o=r==="width"?"height":"width",s=i[o];return s==null?n[r]:n[r]/n[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return ON},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new ce(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e})(br);OS.prototype.type="image";var rt=OS;function IS(t,e){var r=e.x,i=e.y,a=e.width,n=e.height,o=e.r,s,l,u,f;a<0&&(r=r+a,a=-a),n<0&&(i=i+n,n=-n),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>a&&(c=s+l,s*=a/c,l*=a/c),u+f>a&&(c=u+f,u*=a/c,f*=a/c),l+u>n&&(c=l+u,l*=n/c,u*=n/c),s+f>n&&(c=s+f,s*=n/c,f*=n/c),t.moveTo(r+s,i),t.lineTo(r+a-l,i),l!==0&&t.arc(r+a-l,i+l,l,-Math.PI/2,0),t.lineTo(r+a,i+n-u),u!==0&&t.arc(r+a-u,i+n-u,u,0,Math.PI/2),t.lineTo(r+f,i+n),f!==0&&t.arc(r+f,i+n-f,f,Math.PI/2,Math.PI),t.lineTo(r,i+s),s!==0&&t.arc(r+s,i+s,s,Math.PI,Math.PI*1.5),t.closePath()}var Es=Math.round;function kc(t,e,r){if(e){var i=e.x1,a=e.x2,n=e.y1,o=e.y2;t.x1=i,t.x2=a,t.y1=n,t.y2=o;var s=r&&r.lineWidth;return s&&(Es(i*2)===Es(a*2)&&(t.x1=t.x2=on(i,s,!0)),Es(n*2)===Es(o*2)&&(t.y1=t.y2=on(n,s,!0))),t}}function zc(t,e,r){if(e){var i=e.x,a=e.y,n=e.width,o=e.height;t.x=i,t.y=a,t.width=n,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=on(i,s,!0),t.y=on(a,s,!0),t.width=Math.max(on(i+n,s,!1)-t.x,n===0?0:1),t.height=Math.max(on(a+o,s,!1)-t.y,o===0?0:1)),t}}function on(t,e,r){if(!e)return t;var i=Es(t*2);return(i+Es(e))%2===0?i/2:(i+(r?1:-1))/2}var RN=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})();var kN={},PS=(function(t){N(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new RN},e.prototype.buildPath=function(r,i){var a,n,o,s;if(this.subPixelOptimize){var l=zc(kN,i,this.style);a=l.x,n=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else a=i.x,n=i.y,o=i.width,s=i.height;i.r?IS(r,i):r.rect(a,n,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(he);PS.prototype.type="rect";var Oe=PS;var NS={fill:"#000"},RS=2,Fi={},zN={style:ue({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},Wn.style)},GS=(function(t){N(e,t);function e(r){var i=t.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=NS,i.attr(r),i}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 i=this._children[r];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.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 i=this.innerTransformable;return i?i.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,BN(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 i=0;i<this._children.length;i++)this._children[i].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new ce(0,0,0,0),i=this._children,a=[],n=null,o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(r.copy(l),r.applyTransform(u),n=n||r.clone(),n.union(r)):(n=n||l.clone(),n.union(l))}this._rect=n||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||NS},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,i){if(!i)return r;var a=i.rich,n=r.rich||a&&{};return k(r,i),a&&n?(this._mergeRich(n,a),r.rich=n):n&&(r.rich=n),r},e.prototype._mergeRich=function(r,i){for(var a=ae(i),n=0;n<a.length;n++){var o=a[n];r[o]=r[o]||{},k(r[o],i[o])}},e.prototype.getAnimationStyleProps=function(){return zN},e.prototype._getOrCreateChild=function(r){var i=this._children[this._childCursor];return(!i||!(i instanceof r))&&(i=new r),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},e.prototype._updatePlainTexts=function(){var r=this.style,i=r.font||gr,a=r.padding,n=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||n.align||"left",u=r.verticalAlign||n.verticalAlign||"top";hm(Fi,n.overflowRect,o,s,l,u),o=Fi.baseX,s=Fi.baseY;var f=HS(r),c=hS(f,r,Fi.outerWidth,Fi.outerHeight),h=Lm(r),p=!!r.backgroundColor,d=c.outerHeight,v=c.outerWidth,m=c.lines,g=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,x=pa(s,c.contentHeight,u);if(h||a){var _=Ja(o,v,l),S=pa(s,d,u);h&&this._renderBackground(r,r,_,S,v,d)}x+=g/2,a&&(y=FS(o,l,a),u==="top"?x+=a[0]:u==="bottom"&&(x-=a[2]));for(var b=0,w=!1,M=!1,C=BS("fill"in r?r.fill:(M=!0,n.fill)),T=US("stroke"in r?r.stroke:!p&&(!n.autoStroke||M)?(b=RS,w=!0,n.stroke):null),A=r.textShadowBlur>0,D=0;D<m.length;D++){var L=this._getOrCreateChild(eo),O=L.createStyle();L.useStyle(O),O.text=m[D],O.x=y,O.y=x,l&&(O.textAlign=l),O.textBaseline="middle",O.opacity=r.opacity,O.strokeFirst=!0,A&&(O.shadowBlur=r.textShadowBlur||0,O.shadowColor=r.textShadowColor||"transparent",O.shadowOffsetX=r.textShadowOffsetX||0,O.shadowOffsetY=r.textShadowOffsetY||0),O.stroke=T,O.fill=C,T&&(O.lineWidth=r.lineWidth||b,O.lineDash=r.lineDash,O.lineDashOffset=r.lineDashOffset||0),O.font=i,zS(O,r),x+=g,L.setBoundingRect(Ic(O,c.contentWidth,c.calculatedLineHeight,w?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,i=this._defaultStyle,a=r.align||i.align,n=r.verticalAlign||i.verticalAlign,o=r.x||0,s=r.y||0;hm(Fi,i.overflowRect,o,s,a,n),o=Fi.baseX,s=Fi.baseY;var l=HS(r),u=dS(l,r,Fi.outerWidth,Fi.outerHeight,a),f=u.width,c=u.outerWidth,h=u.outerHeight,p=r.padding;this.isTruncated=!!u.isTruncated;var d=Ja(o,c,a),v=pa(s,h,n),m=d,g=v;p&&(m+=p[3],g+=p[0]);var y=m+f;Lm(r)&&this._renderBackground(r,r,d,v,c,h);for(var x=!!r.backgroundColor,_=0;_<u.lines.length;_++){for(var S=u.lines[_],b=S.tokens,w=b.length,M=S.lineHeight,C=S.width,T=0,A=m,D=y,L=w-1,O=void 0;T<w&&(O=b[T],!O.align||O.align==="left");)this._placeToken(O,r,M,g,A,"left",x),C-=O.width,A+=O.width,T++;for(;L>=0&&(O=b[L],O.align==="right");)this._placeToken(O,r,M,g,D,"right",x),C-=O.width,D-=O.width,L--;for(A+=(f-(A-m)-(y-D)-C)/2;T<=L;)O=b[T],this._placeToken(O,r,M,g,A+O.width/2,"center",x),A+=O.width,T++;g+=M}},e.prototype._placeToken=function(r,i,a,n,o,s,l){var u=i.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=n+a/2;f==="top"?c=n+r.height/2:f==="bottom"&&(c=n+a-r.height/2);var h=!r.isLineHolder&&Lm(u);h&&this._renderBackground(u,i,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var p=!!u.backgroundColor,d=r.textPadding;d&&(o=FS(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var v=this._getOrCreateChild(eo),m=v.createStyle();v.useStyle(m);var g=this._defaultStyle,y=!1,x=0,_=!1,S=BS("fill"in u?u.fill:"fill"in i?i.fill:(y=!0,g.fill)),b=US("stroke"in u?u.stroke:"stroke"in i?i.stroke:!p&&!l&&(!g.autoStroke||y)?(x=RS,_=!0,g.stroke):null),w=u.textShadowBlur>0||i.textShadowBlur>0;m.text=r.text,m.x=o,m.y=c,w&&(m.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,m.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=r.font||gr,m.opacity=Or(u.opacity,i.opacity,1),zS(m,u),b&&(m.lineWidth=Or(u.lineWidth,i.lineWidth,x),m.lineDash=q(u.lineDash,i.lineDash),m.lineDashOffset=i.lineDashOffset||0,m.stroke=b),S&&(m.fill=S),v.setBoundingRect(Ic(m,r.contentWidth,r.contentHeight,_?0:null))},e.prototype._renderBackground=function(r,i,a,n,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,h=l&&!c,p=r.borderRadius,d=this,v,m;if(h||r.lineHeight||u&&f){v=this._getOrCreateChild(Oe),v.useStyle(v.createStyle()),v.style.fill=null;var g=v.shape;g.x=a,g.y=n,g.width=o,g.height=s,g.r=p,v.dirtyShape()}if(h){var y=v.style;y.fill=l||null,y.fillOpacity=q(r.fillOpacity,1)}else if(c){m=this._getOrCreateChild(rt),m.onload=function(){d.dirtyStyle()};var x=m.style;x.image=l.image,x.x=a,x.y=n,x.width=o,x.height=s}if(u&&f){var y=v.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=q(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var _=(v||m).style;_.shadowBlur=r.shadowBlur||0,_.shadowColor=r.shadowColor||"transparent",_.shadowOffsetX=r.shadowOffsetX||0,_.shadowOffsetY=r.shadowOffsetY||0,_.opacity=Or(r.opacity,i.opacity,1)},e.makeFont=function(r){var i="";return Om(r)&&(i=[r.fontStyle,r.fontWeight,Dm(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),i&&Bt(i)||r.textFont||r.font},e})(br),VN={left:!0,right:1,center:1},UN={top:1,bottom:1,middle:1},kS=["fontStyle","fontWeight","fontSize","fontFamily"];function Dm(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?Lf+"px":t+"px"}function zS(t,e){for(var r=0;r<kS.length;r++){var i=kS[r],a=e[i];a!=null&&(t[i]=a)}}function Om(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function BN(t){return VS(t),E(t.rich,VS),t}function VS(t){if(t){t.font=GS.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||VN[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||UN[r]?r:"top";var i=t.padding;i&&(t.padding=rs(t.padding))}}function US(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function BS(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function FS(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function HS(t){var e=t.text;return e!=null&&(e+=""),e}function Lm(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var Pe=GS;var xe=ne(),KS=function(t,e,r,i){if(i){var a=xe(i);a.dataIndex=r,a.dataType=e,a.seriesIndex=t,a.ssrType="chart",i.type==="group"&&i.traverse(function(n){var o=xe(n);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}};var sn="undefined",Vc="series",Uc=ee(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Tt="original",yt="arrayRows",$t="objectRows",Sr="keyedColumns",Nr="typedArray",Im="unknown",Rr="column",Hi="row";var FN=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],HN=(function(){function t(e){E(FN,function(r){this[r]=se(e[r],e)},this)}return t})();function YS(t,e){return e.mainType===Vc?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}var Bc=HN;var WS=1,$S={},JS=ne(),Rm=ne(),km=0,eu=1,tu=2,lr=["emphasis","blur","select"],Ms=["normal","emphasis","blur","select"],GN=10,KN=9,ln="highlight",ru="downplay",iu="select",Hc="unselect",au="toggleSelect",Gc="selectchanged";function As(t){return t!=null&&t!=="none"}function Kc(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function QS(t){Kc(t,"emphasis",tu)}function eC(t){t.hoverState===tu&&Kc(t,"normal",km)}function zm(t){Kc(t,"blur",eu)}function tC(t){t.hoverState===eu&&Kc(t,"normal",km)}function YN(t){t.selected=!0}function WN(t){t.selected=!1}function XS(t,e,r){e(t,r)}function ya(t,e,r){XS(t,e,r),t.isGroup&&t.traverse(function(i){XS(i,e,r)})}function Vm(t,e){switch(e){case"emphasis":t.hoverState=tu;break;case"normal":t.hoverState=km;break;case"blur":t.hoverState=eu;break;case"select":t.selected=!0}}function $N(t,e,r,i){for(var a=t.style,n={},o=0;o<e.length;o++){var s=e[o],l=a[s];n[s]=l??(i&&i[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(n,e)}return n}function XN(t,e,r,i){var a=r&&pe(r,"select")>=0,n=!1;if(t instanceof he){var o=JS(t),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(As(s)||As(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(n=!0,i=k({},i),u=k({},u),u.fill=s):!As(u.fill)&&As(s)?(n=!0,i=k({},i),u=k({},u),u.fill=kl(s)):!As(u.stroke)&&As(l)&&(n||(i=k({},i),u=k({},u)),u.stroke=kl(l)),i.style=u}}if(i&&i.z2==null){n||(i=k({},i));var f=t.z2EmphasisLift;i.z2=t.z2+(f??GN)}return i}function qN(t,e,r){if(r&&r.z2==null){r=k({},r);var i=t.z2SelectLift;r.z2=t.z2+(i??KN)}return r}function ZN(t,e,r){var i=pe(t.currentStates,e)>=0,a=t.style.opacity,n=i?null:$N(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=k({},r),o=k({opacity:i?a:n.opacity*.1},o),r.style=o),r}function Pm(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return XN(this,t,e,r);if(t==="blur")return ZN(this,t,r);if(t==="select")return qN(this,t,r)}return r}function jN(t){t.stateProxy=Pm;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=Pm),r&&(r.stateProxy=Pm)}function qS(t,e){!iC(t,e)&&!t.__highByOuter&&ya(t,QS)}function ZS(t,e){!iC(t,e)&&!t.__highByOuter&&ya(t,eC)}function to(t,e){t.__highByOuter|=1<<(e||0),ya(t,QS)}function ro(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&ya(t,eC)}function rC(t){ya(t,zm)}function Um(t){ya(t,tC)}function Bm(t){ya(t,YN)}function Fm(t){ya(t,WN)}function iC(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Hm(t){var e=t.getModel(),r=[],i=[];e.eachComponent(function(a,n){var o=Rm(n),s=YS(t,n),l=a==="series";!l&&i.push(s),o.isBlured&&(s.group.traverse(function(u){tC(u)}),l&&r.push(n)),o.isBlured=!1}),E(i,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,e)})}function Nm(t,e,r,i){var a=i.getModel();r=r||"coordinateSystem";function n(u,f){for(var c=0;c<f.length;c++){var h=u.getItemGraphicEl(f[c]);h&&Um(h)}}if(t!=null&&!(!e||e==="none")){var o=a.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.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 p=i.getViewOfSeriesModel(u);if(p.group.traverse(function(m){m.__highByOuter&&f&&e==="self"||zm(m)}),lt(e))n(u.getData(),e);else if($(e))for(var d=ae(e),v=0;v<d.length;v++)n(u.getData(d[v]),e[d[v]]);l.push(u),Rm(u).isBlured=!0}}),a.eachComponent(function(u,f){if(u!=="series"){var c=i.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,a)}})}}function Fc(t,e,r){if(!(t==null||e==null)){var i=r.getModel().getComponent(t,e);if(i){Rm(i).isBlured=!0;var a=r.getViewOfComponentModel(i);!a||!a.focusBlurEnabled||a.group.traverse(function(n){zm(n)})}}}function aC(t,e,r){var i=t.seriesIndex,a=t.getData(e.dataType);if(a){var n=Xr(a,e);n=(z(n)?n[0]:n)||0;var o=a.getItemGraphicEl(n);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=xe(o);Nm(i,u.focus,u.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);f!=null&&Nm(i,f,c,r)}}}function Yc(t,e,r,i){var a={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return a;var n=i.getModel().getComponent(t,e);if(!n)return a;var o=i.getViewOfComponentModel(n);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(xe(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function nC(t,e,r){var i=xe(t),a=Yc(i.componentMainType,i.componentIndex,i.componentHighDownName,r),n=a.dispatchers,o=a.focusSelf;n?(o&&Fc(i.componentMainType,i.componentIndex,r),E(n,function(s){return qS(s,e)})):(Nm(i.seriesIndex,i.focus,i.blurScope,r),i.focus==="self"&&Fc(i.componentMainType,i.componentIndex,r),qS(t,e))}function oC(t,e,r){Hm(r);var i=xe(t),a=Yc(i.componentMainType,i.componentIndex,i.componentHighDownName,r).dispatchers;a?E(a,function(n){return ZS(n,e)}):ZS(t,e)}function sC(t,e,r){if($c(e)){var i=e.dataType,a=t.getData(i),n=Xr(a,e);z(n)||(n=[n]),t[e.type===au?"toggleSelect":e.type===iu?"select":"unselect"](n,i)}}function Gm(t){var e=t.getAllData();E(e,function(r){var i=r.data,a=r.type;i.eachItemGraphicEl(function(n,o){t.isSelected(o,a)?Bm(n):Fm(n)})})}function lC(t){var e=[];return t.eachSeries(function(r){var i=r.getAllData();E(i,function(a){var n=a.data,o=a.type,s=r.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:r.seriesIndex};o!=null&&(l.dataType=o),e.push(l)}})}),e}function JN(t,e,r){Wc(t,!0),ya(t,jN),eR(t,e,r)}function QN(t){Wc(t,!1)}function kr(t,e,r,i){i?QN(t):JN(t,e,r)}function eR(t,e,r){var i=xe(t);e!=null?(i.focus=e,i.blurScope=r):i.focus&&(i.focus=null)}var jS=["emphasis","blur","select"],tR={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Gi(t,e,r,i){r=r||"itemStyle";for(var a=0;a<jS.length;a++){var n=jS[a],o=e.getModel([n,r]),s=t.ensureState(n);s.style=i?i(o):o[tR[r]]()}}function Wc(t,e){var r=e===!1,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!r)}function nu(t){return!!(t&&t.__highDownDispatcher)}function uC(t){var e=$S[t];return e==null&&WS<=32&&(e=$S[t]=WS++),e}function $c(t){var e=t.type;return e===iu||e===Hc||e===au}function Km(t){var e=t.type;return e===ln||e===ru}function fC(t){var e=JS(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 ot={};Wd(ot,{Arc:()=>fu,BezierCurve:()=>jm,BoundingRect:()=>ce,Circle:()=>io,CompoundPath:()=>Jc,Ellipse:()=>Xm,Group:()=>we,HOVER_LAYER_FOR_INCREMENTAL:()=>so,HOVER_LAYER_FROM_THRESHOLD:()=>ag,HOVER_LAYER_NO:()=>ig,Image:()=>rt,IncrementalDisplayable:()=>zC,Line:()=>yi,LinearGradient:()=>Os,OrientedBoundingRect:()=>ip,Path:()=>he,Point:()=>ge,Polygon:()=>xa,Polyline:()=>gi,RadialGradient:()=>RC,Rect:()=>Oe,Ring:()=>uu,Sector:()=>mi,Text:()=>Pe,WH:()=>fn,XY:()=>Yi,applyTransform:()=>cn,calcZ2Range:()=>FR,clipPointsByRect:()=>zR,clipRectByRect:()=>VR,createIcon:()=>ug,decomposeTransform:()=>GR,ensureCopyRect:()=>Rs,ensureCopyTransform:()=>lp,expandOrShrinkRect:()=>Ps,extendPath:()=>PR,extendShape:()=>OR,getCurrentCanvasPainter:()=>KR,getShapeClass:()=>ng,getTransform:()=>hu,groupTransition:()=>lg,initProps:()=>Ze,isBoundingRectAxisAligned:()=>sp,isElementRemoved:()=>_a,lineLineIntersect:()=>GC,linePolygonIntersect:()=>UR,makeImage:()=>og,makePath:()=>np,mergePath:()=>op,payloadDisableAnimation:()=>HR,registerShape:()=>xi,removeElement:()=>Is,removeElementWithFadeOut:()=>un,resizePath:()=>HC,retrieveZInfo:()=>fg,setTooltipConfig:()=>Ns,subPixelOptimize:()=>RR,subPixelOptimizeLine:()=>lo,subPixelOptimizeRect:()=>NR,transformDirection:()=>sg,traverseElements:()=>Sa,traverseUpdateZ:()=>cg,updateProps:()=>Ve});var Ls=Kt.CMD,rR=[[],[],[]],cC=Math.sqrt,iR=Math.atan2;function Ym(t,e){if(e){var r=t.data,i=t.len(),a,n,o,s,l,u,f=Ls.M,c=Ls.C,h=Ls.L,p=Ls.R,d=Ls.A,v=Ls.Q;for(o=0,s=0;o<i;){switch(a=r[o++],s=o,n=0,a){case f:n=1;break;case h:n=1;break;case c:n=3;break;case v:n=2;break;case d:var m=e[4],g=e[5],y=cC(e[0]*e[0]+e[1]*e[1]),x=cC(e[2]*e[2]+e[3]*e[3]),_=iR(-e[1]/x,e[0]/y);r[o]*=y,r[o++]+=m,r[o]*=x,r[o++]+=g,r[o++]*=y,r[o++]*=x,r[o++]+=_,r[o++]+=_,o+=2,s=o;break;case p:u[0]=r[o++],u[1]=r[o++],Ft(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],Ft(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<n;l++){var S=rR[l];S[0]=r[o++],S[1]=r[o++],Ft(S,S,e),r[s++]=S[0],r[s++]=S[1]}}t.increaseVersion()}}var Wm=Math.sqrt,Xc=Math.sin,qc=Math.cos,ou=Math.PI;function pC(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function $m(t,e){return(t[0]*e[0]+t[1]*e[1])/(pC(t)*pC(e))}function hC(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos($m(t,e))}function dC(t,e,r,i,a,n,o,s,l,u,f){var c=l*(ou/180),h=qc(c)*(t-r)/2+Xc(c)*(e-i)/2,p=-1*Xc(c)*(t-r)/2+qc(c)*(e-i)/2,d=h*h/(o*o)+p*p/(s*s);d>1&&(o*=Wm(d),s*=Wm(d));var v=(a===n?-1:1)*Wm((o*o*(s*s)-o*o*(p*p)-s*s*(h*h))/(o*o*(p*p)+s*s*(h*h)))||0,m=v*o*p/s,g=v*-s*h/o,y=(t+r)/2+qc(c)*m-Xc(c)*g,x=(e+i)/2+Xc(c)*m+qc(c)*g,_=hC([1,0],[(h-m)/o,(p-g)/s]),S=[(h-m)/o,(p-g)/s],b=[(-1*h-m)/o,(-1*p-g)/s],w=hC(S,b);if($m(S,b)<=-1&&(w=ou),$m(S,b)>=1&&(w=0),w<0){var M=Math.round(w/ou*1e6)/1e6;w=ou*2+M%2*ou}f.addData(u,y,x,o,s,_,w,c,n)}var aR=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,nR=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function oR(t){var e=new Kt;if(!t)return e;var r=0,i=0,a=r,n=i,o,s=Kt.CMD,l=t.match(aR);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),h=void 0,p=f.match(nR)||[],d=p.length,v=0;v<d;v++)p[v]=parseFloat(p[v]);for(var m=0;m<d;){var g=void 0,y=void 0,x=void 0,_=void 0,S=void 0,b=void 0,w=void 0,M=r,C=i,T=void 0,A=void 0;switch(c){case"l":r+=p[m++],i+=p[m++],h=s.L,e.addData(h,r,i);break;case"L":r=p[m++],i=p[m++],h=s.L,e.addData(h,r,i);break;case"m":r+=p[m++],i+=p[m++],h=s.M,e.addData(h,r,i),a=r,n=i,c="l";break;case"M":r=p[m++],i=p[m++],h=s.M,e.addData(h,r,i),a=r,n=i,c="L";break;case"h":r+=p[m++],h=s.L,e.addData(h,r,i);break;case"H":r=p[m++],h=s.L,e.addData(h,r,i);break;case"v":i+=p[m++],h=s.L,e.addData(h,r,i);break;case"V":i=p[m++],h=s.L,e.addData(h,r,i);break;case"C":h=s.C,e.addData(h,p[m++],p[m++],p[m++],p[m++],p[m++],p[m++]),r=p[m-2],i=p[m-1];break;case"c":h=s.C,e.addData(h,p[m++]+r,p[m++]+i,p[m++]+r,p[m++]+i,p[m++]+r,p[m++]+i),r+=p[m-2],i+=p[m-1];break;case"S":g=r,y=i,T=e.len(),A=e.data,o===s.C&&(g+=r-A[T-4],y+=i-A[T-3]),h=s.C,M=p[m++],C=p[m++],r=p[m++],i=p[m++],e.addData(h,g,y,M,C,r,i);break;case"s":g=r,y=i,T=e.len(),A=e.data,o===s.C&&(g+=r-A[T-4],y+=i-A[T-3]),h=s.C,M=r+p[m++],C=i+p[m++],r+=p[m++],i+=p[m++],e.addData(h,g,y,M,C,r,i);break;case"Q":M=p[m++],C=p[m++],r=p[m++],i=p[m++],h=s.Q,e.addData(h,M,C,r,i);break;case"q":M=p[m++]+r,C=p[m++]+i,r+=p[m++],i+=p[m++],h=s.Q,e.addData(h,M,C,r,i);break;case"T":g=r,y=i,T=e.len(),A=e.data,o===s.Q&&(g+=r-A[T-4],y+=i-A[T-3]),r=p[m++],i=p[m++],h=s.Q,e.addData(h,g,y,r,i);break;case"t":g=r,y=i,T=e.len(),A=e.data,o===s.Q&&(g+=r-A[T-4],y+=i-A[T-3]),r+=p[m++],i+=p[m++],h=s.Q,e.addData(h,g,y,r,i);break;case"A":x=p[m++],_=p[m++],S=p[m++],b=p[m++],w=p[m++],M=r,C=i,r=p[m++],i=p[m++],h=s.A,dC(M,C,r,i,b,w,x,_,S,h,e);break;case"a":x=p[m++],_=p[m++],S=p[m++],b=p[m++],w=p[m++],M=r,C=i,r+=p[m++],i+=p[m++],h=s.A,dC(M,C,r,i,b,w,x,_,S,h,e);break}}(c==="z"||c==="Z")&&(h=s.Z,e.addData(h),r=a,i=n),o=h}return e.toStatic(),e}var vC=(function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(he);function mC(t){return t.setData!=null}function gC(t,e){var r=oR(t),i=k({},e);return i.buildPath=function(a){var n=mC(a);if(n&&a.canSave()){a.appendPath(r);var o=a.getContext();o&&a.rebuildPath(o,1)}else{var o=n?a.getContext():a;o&&r.rebuildPath(o,1)}},i.applyTransform=function(a){Ym(r,a),this.dirtyShape()},i}function yC(t,e){return new vC(gC(t,e))}function xC(t,e){var r=gC(t,e),i=(function(a){N(n,a);function n(o){var s=a.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return n})(vC);return i}function _C(t,e){for(var r=[],i=t.length,a=0;a<i;a++){var n=t[a];r.push(n.getUpdatedPathProxy(!0))}var o=new he(e);return o.createPathProxy(),o.buildPath=function(s){if(mC(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var lR=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})();var bC=(function(t){N(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new lR},e.prototype.buildPath=function(r,i){r.moveTo(i.cx+i.r,i.cy),r.arc(i.cx,i.cy,i.r,0,Math.PI*2)},e})(he);bC.prototype.type="circle";var io=bC;var uR=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})();var SC=(function(t){N(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new uR},e.prototype.buildPath=function(r,i){var a=.5522848,n=i.cx,o=i.cy,s=i.rx,l=i.ry,u=s*a,f=l*a;r.moveTo(n-s,o),r.bezierCurveTo(n-s,o-f,n-u,o-l,n,o-l),r.bezierCurveTo(n+u,o-l,n+s,o-f,n+s,o),r.bezierCurveTo(n+s,o+f,n+u,o+l,n,o+l),r.bezierCurveTo(n-u,o+l,n-s,o+f,n-s,o),r.closePath()},e})(he);SC.prototype.type="ellipse";var Xm=SC;var wC=Math.PI,qm=wC*2,ao=Math.sin,Ds=Math.cos,fR=Math.acos,Xt=Math.atan2,CC=Math.abs,lu=Math.sqrt,su=Math.max,Ki=Math.min,vi=1e-4;function cR(t,e,r,i,a,n,o,s){var l=r-t,u=i-e,f=o-a,c=s-n,h=c*l-f*u;if(!(h*h<vi))return h=(f*(e-n)-c*(t-a))/h,[t+h*l,e+h*u]}function Zc(t,e,r,i,a,n,o){var s=t-r,l=e-i,u=(o?n:-n)/lu(s*s+l*l),f=u*l,c=-u*s,h=t+f,p=e+c,d=r+f,v=i+c,m=(h+d)/2,g=(p+v)/2,y=d-h,x=v-p,_=y*y+x*x,S=a-n,b=h*v-d*p,w=(x<0?-1:1)*lu(su(0,S*S*_-b*b)),M=(b*x-y*w)/_,C=(-b*y-x*w)/_,T=(b*x+y*w)/_,A=(-b*y+x*w)/_,D=M-m,L=C-g,O=T-m,I=A-g;return D*D+L*L>O*O+I*I&&(M=T,C=A),{cx:M,cy:C,x0:-f,y0:-c,x1:M*(a/S-1),y1:C*(a/S-1)}}function pR(t){var e;if(z(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 TC(t,e){var r,i=su(e.r,0),a=su(e.r0||0,0),n=i>0,o=a>0;if(!(!n&&!o)){if(n||(i=a,a=0),a>i){var s=i;i=a,a=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,c=e.cy,h=!!e.clockwise,p=CC(u-l),d=p>qm&&p%qm;if(d>vi&&(p=d),!(i>vi))t.moveTo(f,c);else if(p>qm-vi)t.moveTo(f+i*Ds(l),c+i*ao(l)),t.arc(f,c,i,l,u,!h),a>vi&&(t.moveTo(f+a*Ds(u),c+a*ao(u)),t.arc(f,c,a,u,l,h));else{var v=void 0,m=void 0,g=void 0,y=void 0,x=void 0,_=void 0,S=void 0,b=void 0,w=void 0,M=void 0,C=void 0,T=void 0,A=void 0,D=void 0,L=void 0,O=void 0,I=i*Ds(l),P=i*ao(l),V=a*Ds(u),R=a*ao(u),U=p>vi;if(U){var F=e.cornerRadius;F&&(r=pR(F),v=r[0],m=r[1],g=r[2],y=r[3]);var K=CC(i-a)/2;if(x=Ki(K,g),_=Ki(K,y),S=Ki(K,v),b=Ki(K,m),C=w=su(x,_),T=M=su(S,b),(w>vi||M>vi)&&(A=i*Ds(u),D=i*ao(u),L=a*Ds(l),O=a*ao(l),p<wC)){var X=cR(I,P,L,O,A,D,V,R);if(X){var re=I-X[0],Z=P-X[1],de=A-X[0],ie=D-X[1],Ue=1/ao(fR((re*de+Z*ie)/(lu(re*re+Z*Z)*lu(de*de+ie*ie)))/2),Ke=lu(X[0]*X[0]+X[1]*X[1]);C=Ki(w,(i-Ke)/(Ue+1)),T=Ki(M,(a-Ke)/(Ue-1))}}}if(!U)t.moveTo(f+I,c+P);else if(C>vi){var Le=Ki(g,C),We=Ki(y,C),ve=Zc(L,O,I,P,i,Le,h),be=Zc(A,D,V,R,i,We,h);t.moveTo(f+ve.cx+ve.x0,c+ve.cy+ve.y0),C<w&&Le===We?t.arc(f+ve.cx,c+ve.cy,C,Xt(ve.y0,ve.x0),Xt(be.y0,be.x0),!h):(Le>0&&t.arc(f+ve.cx,c+ve.cy,Le,Xt(ve.y0,ve.x0),Xt(ve.y1,ve.x1),!h),t.arc(f,c,i,Xt(ve.cy+ve.y1,ve.cx+ve.x1),Xt(be.cy+be.y1,be.cx+be.x1),!h),We>0&&t.arc(f+be.cx,c+be.cy,We,Xt(be.y1,be.x1),Xt(be.y0,be.x0),!h))}else t.moveTo(f+I,c+P),t.arc(f,c,i,l,u,!h);if(!(a>vi)||!U)t.lineTo(f+V,c+R);else if(T>vi){var Le=Ki(v,T),We=Ki(m,T),ve=Zc(V,R,A,D,a,-We,h),be=Zc(I,P,L,O,a,-Le,h);t.lineTo(f+ve.cx+ve.x0,c+ve.cy+ve.y0),T<M&&Le===We?t.arc(f+ve.cx,c+ve.cy,T,Xt(ve.y0,ve.x0),Xt(be.y0,be.x0),!h):(We>0&&t.arc(f+ve.cx,c+ve.cy,We,Xt(ve.y0,ve.x0),Xt(ve.y1,ve.x1),!h),t.arc(f,c,a,Xt(ve.cy+ve.y1,ve.cx+ve.x1),Xt(be.cy+be.y1,be.cx+be.x1),h),Le>0&&t.arc(f+be.cx,c+be.cy,Le,Xt(be.y1,be.x1),Xt(be.y0,be.x0),!h))}else t.lineTo(f+V,c+R),t.arc(f,c,a,u,l,h)}t.closePath()}}}var dR=(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})();var EC=(function(t){N(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new dR},e.prototype.buildPath=function(r,i){TC(r,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(he);EC.prototype.type="sector";var mi=EC;var vR=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})();var AC=(function(t){N(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new vR},e.prototype.buildPath=function(r,i){var a=i.cx,n=i.cy,o=Math.PI*2;r.moveTo(a+i.r,n),r.arc(a,n,i.r,0,o,!1),r.moveTo(a+i.r0,n),r.arc(a,n,i.r0,0,o,!0)},e})(he);AC.prototype.type="ring";var uu=AC;function Zm(t,e,r,i){var a=[],n=[],o=[],s=[],l,u,f,c;if(i){f=[1/0,1/0],c=[-1/0,-1/0];for(var h=0,p=t.length;h<p;h++)oa(f,f,t[h]),sa(c,c,t[h]);oa(f,f,i[0]),sa(c,c,i[1])}for(var h=0,p=t.length;h<p;h++){var d=t[h];if(r)l=t[h?h-1:p-1],u=t[(h+1)%p];else if(h===0||h===p-1){a.push(h_(t[h]));continue}else l=t[h-1],u=t[h+1];d_(n,u,l),kf(n,n,e);var v=zf(d,l),m=zf(d,u),g=v+m;g!==0&&(v/=g,m/=g),kf(o,n,-v),kf(s,n,m);var y=iv([],d,o),x=iv([],d,s);i&&(sa(y,y,f),oa(y,y,c),sa(x,x,f),oa(x,x,c)),a.push(y),a.push(x)}return r&&a.push(a.shift()),a}function jc(t,e,r){var i=e.smooth,a=e.points;if(a&&a.length>=2){if(i){var n=Zm(a,i,r,e.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(r?o:o-1);s++){var l=n[s*2],u=n[s*2+1],f=a[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{t.moveTo(a[0][0],a[0][1]);for(var s=1,c=a.length;s<c;s++)t.lineTo(a[s][0],a[s][1])}r&&t.closePath()}}var mR=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})();var LC=(function(t){N(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new mR},e.prototype.buildPath=function(r,i){jc(r,i,!0)},e})(he);LC.prototype.type="polygon";var xa=LC;var gR=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})();var DC=(function(t){N(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 gR},e.prototype.buildPath=function(r,i){jc(r,i,!1)},e})(he);DC.prototype.type="polyline";var gi=DC;var yR={},xR=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})();var OC=(function(t){N(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 xR},e.prototype.buildPath=function(r,i){var a,n,o,s;if(this.subPixelOptimize){var l=kc(yR,i,this.style);a=l.x1,n=l.y1,o=l.x2,s=l.y2}else a=i.x1,n=i.y1,o=i.x2,s=i.y2;var u=i.percent;u!==0&&(r.moveTo(a,n),u<1&&(o=a*(1-u)+o*u,s=n*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var i=this.shape;return[i.x1*(1-r)+i.x2*r,i.y1*(1-r)+i.y2*r]},e})(he);OC.prototype.type="line";var yi=OC;var Cr=[],_R=(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 IC(t,e,r){var i=t.cpx2,a=t.cpy2;return i!=null||a!=null?[(r?_v:tt)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?_v:tt)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?bv:Ct)(t.x1,t.cpx1,t.x2,e),(r?bv:Ct)(t.y1,t.cpy1,t.y2,e)]}var PC=(function(t){N(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 _R},e.prototype.buildPath=function(r,i){var a=i.x1,n=i.y1,o=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,f=i.cpx2,c=i.cpy2,h=i.percent;h!==0&&(r.moveTo(a,n),f==null||c==null?(h<1&&(fs(a,l,o,h,Cr),l=Cr[1],o=Cr[2],fs(n,u,s,h,Cr),u=Cr[1],s=Cr[2]),r.quadraticCurveTo(l,u,o,s)):(h<1&&(us(a,l,f,o,h,Cr),l=Cr[1],f=Cr[2],o=Cr[3],us(n,u,c,s,h,Cr),u=Cr[1],c=Cr[2],s=Cr[3]),r.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(r){return IC(this.shape,r,!1)},e.prototype.tangentAt=function(r){var i=IC(this.shape,r,!0);return v_(i,i)},e})(he);PC.prototype.type="bezier-curve";var jm=PC;var bR=(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})();var NC=(function(t){N(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 bR},e.prototype.buildPath=function(r,i){var a=i.cx,n=i.cy,o=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+a,c*o+n),r.arc(a,n,o,s,l,!u)},e})(he);NC.prototype.type="arc";var fu=NC;var SR=(function(t){N(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,i=this.shapeChanged(),a=0;a<r.length;a++)i=i||r[a].shapeChanged();i&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],i=this.getGlobalScale(),a=0;a<r.length;a++)r[a].path||r[a].createPathProxy(),r[a].path.setScale(i[0],i[1],r[a].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,i){for(var a=i.paths||[],n=0;n<a.length;n++)a[n].buildPath(r,a[n].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],i=0;i<r.length;i++)r[i].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),he.prototype.getBoundingRect.call(this)},e})(he),Jc=SR;var CR=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})(),Qc=CR;var wR=(function(t){N(e,t);function e(r,i,a,n,o,s){var l=t.call(this,o)||this;return l.x=r??0,l.y=i??0,l.x2=a??1,l.y2=n??0,l.type="linear",l.global=s||!1,l}return e})(Qc),Os=wR;var TR=(function(t){N(e,t);function e(r,i,a,n,o){var s=t.call(this,n)||this;return s.x=r??.5,s.y=i??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return e})(Qc),RC=TR;var Jm=Math.min,ER=Math.max,ep=Math.abs,no=[0,0],oo=[0,0],Pt=dv(),tp=Pt.minTv,rp=Pt.maxTv,AR=(function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new ge;for(var i=0;i<2;i++)this._axes[i]=new ge;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var i=this._corners,a=this._axes,n=e.x,o=e.y,s=n+e.width,l=o+e.height;if(i[0].set(n,o),i[1].set(s,o),i[2].set(s,l),i[3].set(n,l),r)for(var u=0;u<4;u++)i[u].transform(r);ge.sub(a[0],i[1],i[0]),ge.sub(a[1],i[3],i[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(i[0])},t.prototype.intersect=function(e,r,i){var a=!0,n=!r;return r&&ge.set(r,0,0),Pt.reset(i,!n),!this._intersectCheckOneSide(this,e,n,1)&&(a=!1,n)||!this._intersectCheckOneSide(e,this,n,-1)&&(a=!1,n)||!n&&!Pt.negativeSize&&ge.copy(r,a?Pt.useDir?Pt.dirMinTv:tp:rp),a},t.prototype._intersectCheckOneSide=function(e,r,i,a){for(var n=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,no),e._getProjMinMaxOnAxis(o,r._corners,oo),Pt.negativeSize||no[1]<oo[0]||no[0]>oo[1]){if(n=!1,Pt.negativeSize||i)return n;var l=ep(oo[0]-no[1]),u=ep(no[0]-oo[1]);Jm(l,u)>rp.len()&&(l<u?ge.scale(rp,s,-l*a):ge.scale(rp,s,u*a))}else if(!i){var l=ep(oo[0]-no[1]),u=ep(no[0]-oo[1]);(Pt.useDir||Jm(l,u)<tp.len())&&((l<u||!Pt.bidirectional)&&(ge.scale(tp,s,l*a),Pt.useDir&&Pt.calcDirMTV()),(l>=u||!Pt.bidirectional)&&(ge.scale(tp,s,-u*a),Pt.useDir&&Pt.calcDirMTV()))}}return n},t.prototype._getProjMinMaxOnAxis=function(e,r,i){for(var a=this._axes[e],n=this._origin,o=r[0].dot(a)+n[e],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(a)+n[e];s=Jm(f,s),l=ER(f,l)}i[0]=s+Pt.touchThreshold,i[1]=l-Pt.touchThreshold,Pt.negativeSize=i[1]<i[0]},t})(),ip=AR;var kC=1;var MR=[],LR=(function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=kC,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,i){r.call(i,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,i){i?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,i){i=i||!1;for(var a=0;a<r.length;a++)this.addDisplayable(r[a],i)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var i=this._cursor;i<this._displayables.length;i++)r&&r(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)r&&r(this._temporaryDisplayables[i])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var i=this._displayables[r];i.parent=this,i.update(),i.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var i=this._temporaryDisplayables[r];i.parent=this,i.update(),i.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new ce(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var a=this._displayables[i],n=a.getBoundingRect().clone();a.needLocalTransform()&&n.applyTransform(a.getLocalTransform(MR)),r.union(n)}this._rect=r}return this._rect},e.prototype.contain=function(r,i){var a=this.transformCoordToLocal(r,i),n=this.getBoundingRect();if(n.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,i))return!0}return!1},e})(br),zC=LR;var DR=ne();function cu(t,e,r,i,a){var n;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();n=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,f=void 0,c=void 0;i?(u=q(i.duration,200),f=q(i.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),n&&(n.duration!=null&&(u=n.duration),n.easing!=null&&(f=n.easing),n.delay!=null&&(c=n.delay)),j(c)&&(c=c(r,a)),j(u)&&(u=u(r));var h={duration:u||0,delay:c,easing:f};return h}else return null}function Qm(t,e,r,i,a,n,o){var s=!1,l;j(a)?(o=n,n=a,a=null):$(a)&&(n=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var f=cu(t,i,a,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,a):null);if(f&&f.duration>0){var c=f.duration,h=f.delay,p=f.easing,d={duration:c,delay:h||0,easing:p,done:n,force:!!n||!!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),n&&n()}function Ve(t,e,r,i,a,n){Qm("update",t,e,r,i,a,n)}function Ze(t,e,r,i,a,n){Qm("enter",t,e,r,i,a,n)}function _a(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 Is(t,e,r,i,a,n){_a(t)||Qm("leave",t,e,r,i,a,n)}function VC(t,e,r,i){t.removeTextContent(),t.removeTextGuideLine(),Is(t,{style:{opacity:0}},e,r,i)}function un(t,e,r){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(a){a.isGroup||VC(a,e,r,i)}):VC(t,e,r,i)}function ba(t){DR(t).oldStyle=t.style}var tg={},Yi=["x","y"],fn=["width","height"],ig=0,ag=1,so=2;function OR(t){return he.extend(t)}var IR=xC;function PR(t,e){return IR(t,e)}function xi(t,e){tg[t]=e}function ng(t){if(tg.hasOwnProperty(t))return tg[t]}function np(t,e,r,i){var a=yC(t,e);return r&&(i==="center"&&(r=FC(r,a.getBoundingRect())),HC(a,r)),a}function og(t,e,r){var i=new rt({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){if(r==="center"){var n={width:a.width,height:a.height};i.setStyle(FC(e,n))}}});return i}function FC(t,e){var r=e.width/e.height,i=t.height*r,a;i<=t.width?a=t.height:(i=t.width,a=i/r);var n=t.x+t.width/2,o=t.y+t.height/2;return{x:n-i/2,y:o-a/2,width:i,height:a}}var op=_C;function HC(t,e){if(t.applyTransform){var r=t.getBoundingRect(),i=r.calculateTransform(e);t.applyTransform(i)}}function lo(t,e){return kc(t,t,{lineWidth:e}),t}function NR(t,e){return zc(t,t,e),t}var RR=on;function hu(t,e){for(var r=la([]);t&&t!==e;)Ka(r,t.getLocalTransform(),r),t=t.parent;return r}function cn(t,e,r){return e&&!lt(e)&&(e=ja.getLocalTransform(e)),r&&(e=Kr([],e)),Ft([],t,e)}function sg(t,e,r){var i=e[4]===0||e[5]===0||e[0]===0?1:Qe(2*e[4]/e[0]),a=e[4]===0||e[5]===0||e[2]===0?1:Qe(2*e[4]/e[2]),n=[t==="left"?-i:t==="right"?i:0,t==="top"?-a:t==="bottom"?a:0];return n=cn(n,e,r),Qe(n[0])>Qe(n[1])?n[0]>0?"right":"left":n[1]>0?"bottom":"top"}function UC(t){return!t.isGroup}function kR(t){return t.shape!=null}function lg(t,e,r){if(!t||!e)return;function i(o){var s={};return o.traverse(function(l){UC(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return kR(o)&&(s.shape=Q(o.shape)),s}var n=i(t);e.traverse(function(o){if(UC(o)&&o.anid){var s=n[o.anid];if(s){var l=a(o);o.attr(a(s)),Ve(o,l,r,xe(o).dataIndex)}}})}function zR(t,e){return B(t,function(r){var i=r[0];i=Ce(i,e.x),i=nt(i,e.x+e.width);var a=r[1];return a=Ce(a,e.y),a=nt(a,e.y+e.height),[i,a]})}function VR(t,e){var r=Ce(t.x,e.x),i=nt(t.x+t.width,e.x+e.width),a=Ce(t.y,e.y),n=nt(t.y+t.height,e.y+e.height);if(i>=r&&n>=a)return{x:r,y:a,width:i-r,height:n-a}}function ug(t,e,r){var i=k({rectHover:!0},e),a=i.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(a.image=t.slice(8),ue(a,r),new rt(i)):np(t.replace("path://",""),i,r,"center")}function UR(t,e,r,i,a){for(var n=0,o=a[a.length-1];n<a.length;n++){var s=a[n];if(GC(t,e,r,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function GC(t,e,r,i,a,n,o,s){var l=r-t,u=i-e,f=o-a,c=s-n,h=eg(f,c,l,u);if(BR(h))return!1;var p=t-a,d=e-n,v=eg(p,d,l,u)/h;if(v<0||v>1)return!1;var m=eg(p,d,f,c)/h;return!(m<0||m>1)}function eg(t,e,r,i){return t*i-r*e}function BR(t){return t<=1e-6&&t>=-1e-6}function Ps(t,e,r,i,a){return e==null||(me(e)?je[0]=je[1]=je[2]=je[3]=e:(je[0]=e[0],je[1]=e[1],je[2]=e[2],je[3]=e[3]),i&&(je[0]=Ce(0,je[0]),je[1]=Ce(0,je[1]),je[2]=Ce(0,je[2]),je[3]=Ce(0,je[3])),r&&(je[0]=-je[0],je[1]=-je[1],je[2]=-je[2],je[3]=-je[3]),BC(t,je,"x","width",3,1,a&&a[0]||0),BC(t,je,"y","height",0,2,a&&a[1]||0)),t}var je=[0,0,0,0];function BC(t,e,r,i,a,n,o){var s=e[n]+e[a],l=t[i];t[i]+=s,o=Ce(0,nt(o,l)),t[i]<o?(t[i]=o,t[r]+=e[a]>=0?-e[a]:e[n]>=0?l+e[n]:Qe(s)>1e-8?(l-o)*e[a]/s:0):t[r]-=e[a]}function Ns(t){var e=t.itemTooltipOption,r=t.componentModel,i=t.itemName,a=G(e)?{formatter:e}:e,n=r.mainType,o=r.componentIndex,s={componentType:n,name:i,$vars:["name"]};s[n+"Index"]=o;var l=t.formatterParamsExtra;l&&E(ae(l),function(f){le(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=xe(t.el);u.componentMainType=n,u.componentIndex=o,u.tooltipConfig={name:i,option:ue({content:i,encodeHTMLContent:!0,formatterParams:s},a)}}function rg(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Sa(t,e){if(t)if(z(t))for(var r=0;r<t.length;r++)rg(t[r],e);else rg(t,e)}function sp(t){return!t||Qe(t[1])<ap&&Qe(t[2])<ap||Qe(t[0])<ap&&Qe(t[3])<ap}var ap=1e-5;function Rs(t,e){return t?ce.copy(t,e):e.clone()}function lp(t,e){return e?Ml(t||nr(),e):void 0}function fg(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function FR(t){var e=-1/0,r=1/0;rg(t,function(n){i(n),i(n.getTextContent()),i(n.getTextGuideLine())});function i(n){if(!(!n||n.isGroup)){var o=n.currentStates;if(o.length)for(var s=0;s<o.length;s++)a(n.states[o[s]]);a(n)}}function a(n){if(n){var o=n.z2;o>e&&(e=o),o<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function cg(t,e,r){KC(t,e,r,-1/0)}function KC(t,e,r,i){if(t.ignoreModelZ)return i;var a=t.getTextContent(),n=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=Ce(KC(s[l],e,r,i),i);else t.z=e,t.zlevel=r,i=Ce(t.z2||0,i);if(a&&(a.z=e,a.zlevel=r,isFinite(i)&&(a.z2=i+2)),n){var u=t.textGuideLineConfig;n.z=e,n.zlevel=r,isFinite(i)&&(n.z2=i+(u&&u.showAbove?1:-1))}return i}function HR(t){return t.animation={duration:0},t}function GR(t,e){return e?Ml(pu.transform,e):la(pu.transform),pu.decomposeTransform(),Za(t,pu),t}var pu=new ja;pu.transform=nr();function KR(t){var e=t.getZr().painter;return e.getType()==="canvas"?e:null}xi("circle",io);xi("ellipse",Xm);xi("sector",mi);xi("ring",uu);xi("polygon",xa);xi("polyline",gi);xi("rect",Oe);xi("line",yi);xi("bezierCurve",jm);xi("arc",fu);var up={};function ZC(t,e){for(var r=0;r<lr.length;r++){var i=lr[r],a=e[i],n=t.ensureState(i);n.style=n.style||{},n.style.text=a}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function pg(t,e,r){var i=t.labelFetcher,a=t.labelDataIndex,n=t.labelDimIndex,o=e.normal,s;i&&(s=i.getFormattedLabel(a,"normal",null,n,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=j(t.defaultText)?t.defaultText(a,t,r):t.defaultText);for(var l={normal:s},u=0;u<lr.length;u++){var f=lr[u],c=e[f];l[f]=q(i?i.getFormattedLabel(a,f,null,n,c&&c.get("formatter")):null,s)}return l}function ei(t,e,r,i){r=r||up;for(var a=t instanceof Pe,n=!1,o=0;o<Ms.length;o++){var s=e[Ms[o]];if(s&&s.getShallow("show")){n=!0;break}}var l=a?t:t.getTextContent();if(n){a||(l||(l=new Pe,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=pg(r,e),f=e.normal,c=!!f.getShallow("show"),h=wr(f,i&&i.normal,r,!1,!a);h.text=u.normal,a||t.setTextConfig(YC(f,r,!1));for(var o=0;o<lr.length;o++){var p=lr[o],s=e[p];if(s){var d=l.ensureState(p),v=!!q(s.getShallow("show"),c);if(v!==c&&(d.ignore=!v),d.style=wr(s,i&&i[p],r,!0,!a),d.style.text=u[p],!a){var m=t.ensureState(p);m.textConfig=YC(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&&(Ca(l).setLabelText=function(g){var y=pg(r,e,g);ZC(l,y)})}else l&&(l.ignore=!0);t.dirty()}function ur(t,e){e=e||"label";for(var r={normal:t.getModel(e)},i=0;i<lr.length;i++){var a=lr[i];r[a]=t.getModel([a,e])}return r}function wr(t,e,r,i,a){var n={};return YR(n,t,r,i,a),e&&k(n,e),n}function YC(t,e,r){e=e||{};var i={},a,n=t.getShallow("rotate"),o=q(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return a=t.getShallow("position")||(r?null:"inside"),a==="outside"&&(a=e.defaultOutsidePosition||"top"),a!=null&&(i.position=a),s!=null&&(i.offset=s),n!=null&&(n*=Math.PI/180,i.rotation=n),o!=null&&(i.distance=o),i.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(i.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(i.layoutRect=e.layoutRect),i}function YR(t,e,r,i,a){r=r||up;var n=e.ecModel,o=n&&n.option.textStyle,s=WR(e),l;if(s){l={};var u="richInheritPlainLabel",f=q(e.get(u),n?n.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var h=e.getModel(["rich",c]);qC(l[c]={},h,o,e,f,r,i,a,!1,!0)}}l&&(t.rich=l);var p=e.get("overflow");p&&(t.overflow=p);var d=e.get("lineOverflow");d&&(t.lineOverflow=d);var v=t,m=e.get("minMargin");if(m!=null)m=me(m)?m/2:0,v.margin=[m,m,m,m],v.__marginType=uo.minMargin;else{var g=e.get("textMargin");g!=null&&(v.margin=rs(g),v.__marginType=uo.textMargin)}qC(t,e,o,null,null,r,i,a,!0,!1)}function WR(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||up).rich;if(r){e=e||{};for(var i=ae(r),a=0;a<i.length;a++){var n=i[a];e[n]=1}}t=t.parentModel}return e}var WC=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],$C=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],XC=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function qC(t,e,r,i,a,n,o,s,l,u){r=!o&&r||up;var f=n&&n.inheritColor,c=e.getShallow("color"),h=e.getShallow("textBorderColor"),p=q(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=q(e.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(t.lineWidth=d);var v=q(e.getShallow("textBorderType"),r.textBorderType);v!=null&&(t.lineDash=v);var m=q(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);m!=null&&(t.lineDashOffset=m),!o&&p==null&&!u&&(p=n&&n.defaultOpacity),p!=null&&(t.opacity=p),!o&&!s&&t.fill==null&&n.inheritColor&&(t.fill=n.inheritColor);for(var g=0;g<WC.length;g++){var y=WC[g],x=a!==!1&&i?Or(e.getShallow(y),i.getShallow(y),r[y]):q(e.getShallow(y),r[y]);x!=null&&(t[y]=x)}for(var g=0;g<$C.length;g++){var y=$C[g],x=e.getShallow(y);x!=null&&(t[y]=x)}if(t.verticalAlign==null){var _=e.getShallow("baseline");_!=null&&(t.verticalAlign=_)}if(!l||!n.disableBox){for(var g=0;g<XC.length;g++){var y=XC[g],x=e.getShallow(y);x!=null&&(t[y]=x)}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 jC(t,e){var r=e&&e.getModel("textStyle");return Bt([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 Ca=ne();function JC(t,e,r,i){if(t){var a=Ca(t);a.prevValue=a.value,a.value=r;var n=e.normal;a.valueAnimation=n.get("valueAnimation"),a.valueAnimation&&(a.precision=n.get("precision"),a.defaultInterpolatedText=i,a.statesModels=e)}}function QC(t,e,r,i,a){var n=Ca(t);if(!n.valueAnimation||n.prevValue===n.value)return;var o=n.defaultInterpolatedText,s=q(n.interpolatedValue,n.prevValue),l=n.value;function u(f){var c=Ac(r,n.precision,s,l,f);n.interpolatedValue=f===1?null:c;var h=pg({labelDataIndex:e,labelFetcher:a,defaultText:o?o(c):c+""},n.statesModels,c);ZC(t,h)}t.percent=0,(n.prevValue==null?Ze:Ve)(t,{percent:1},i,e,null,u)}var uo={minMargin:1,textMargin:2};var $R=["textStyle","color"],hg=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],dg=new Pe,XR=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get($R):null)},t.prototype.getFont=function(){return jC({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")},i=0;i<hg.length;i++)r[hg[i]]=this.getShallow(hg[i]);return dg.useStyle(r),dg.update(),dg.getBoundingRect()},t})(),ew=XR;var vg=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],qR=ki(vg),tw=(function(){function t(){}return t.prototype.getLineStyle=function(e){return qR(this,e)},t})();var mg=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],ZR=ki(mg),rw=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return ZR(this,e,r)},t})();var fo=(function(){function t(e,r,i){this.parentModel=r,this.ecModel=i,this.option=e}return t.prototype.init=function(e,r,i){for(var a=[],n=3;n<arguments.length;n++)a[n-3]=arguments[n]},t.prototype.mergeOption=function(e,r){Se(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 i=this.option,a=i==null?i:i[e];if(a==null&&!r){var n=this.parentModel;n&&(a=n.getShallow(e))}return a},t.prototype.getModel=function(e,r){var i=e!=null,a=i?this.parsePath(e):null,n=i?this._doGet(a):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new t(n,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(Q(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(!ye.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 i=this.option;if(!e)return i;for(var a=0;a<e.length&&!(e[a]&&(i=i&&typeof i=="object"?i[e[a]]:null,i==null));a++);return i==null&&r&&(i=r._doGet(this.resolveParentPath(e),r.parentModel)),i},t})();Cs(fo);iS(fo);Ut(fo,tw);Ut(fo,rw);Ut(fo,aS);Ut(fo,ew);var qe=fo;var jR=Math.round(Math.random()*10);function Wi(t){return[t||"",jR++].join("_")}function iw(t){var e={};t.registerSubTypeDefaulter=function(r,i){var a=_r(r);e[a.main]=i},t.determineSubType=function(r,i){var a=i.type;if(!a){var n=_r(r).main;t.hasSubTypes(r)&&e[n]&&(a=e[n](i))}return a}}function aw(t,e){t.topologicalTravel=function(n,o,s,l){if(!n.length)return;var u=r(o),f=u.graph,c=u.noEntryList,h={};for(E(n,function(y){h[y]=!0});c.length;){var p=c.pop(),d=f[p],v=!!h[p];v&&(s.call(l,p,d.originalDeps.slice()),delete h[p]),E(d.successor,v?g:m)}E(h,function(){var y="";throw new Error(y)});function m(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function g(y){h[y]=!0,m(y)}};function r(n){var o={},s=[];return E(n,function(l){var u=i(o,l),f=u.originalDeps=e(l),c=a(f,n);u.entryCount=c.length,u.entryCount===0&&s.push(l),E(c,function(h){pe(u.predecessor,h)<0&&u.predecessor.push(h);var p=i(o,h);pe(p.successor,h)<0&&p.successor.push(l)})}),{graph:o,noEntryList:s}}function i(n,o){return n[o]||(n[o]={predecessor:[],successor:[]}),n[o]}function a(n,o){var s=[];return E(n,function(l){pe(o,l)>=0&&s.push(l)}),s}}function ks(t,e){return Se(Se({},t,!0),e,!0)}var nw={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:". "}}}};var ow={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var cp="ZH",yg="EN",zs=yg,fp={},xg={},pp=ye.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||zs).toUpperCase();return t.indexOf(cp)>-1?cp:zs})():zs;function sw(t,e){t=t.toUpperCase(),xg[t]=new qe(e),fp[t]=e}function lw(t){if(G(t)){var e=fp[t.toUpperCase()]||{};return t===cp||t===yg?Q(e):Se(Q(e),Q(fp[zs]),!1)}else return Se(Q(t),Q(fp[zs]),!1)}function uw(t){return xg[t]}function fw(){return xg[zs]}sw(yg,nw);sw(cp,ow);var JR=null;function st(){return JR}function hp(t,e){var r=st(),i=e.breakOption,a=e.breakParsed;return!a&&r&&(a=r.parseAxisBreakOption(i,t)),a}function co(t){var e=t.brk;return e?e.breaks:[]}function po(t){var e=t.brk;return e?e.hasBreaks():!1}var mp=1e3,gp=mp*60,Vs=gp*60,zr=Vs*24,_g=zr*365,QR={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})/},vp={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},ek="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",dp="{yyyy}-{MM}-{dd}",bg={year:"{yyyy}",month:"{yyyy}-{MM}",day:dp,hour:dp+" "+vp.hour,minute:dp+" "+vp.minute,second:dp+" "+vp.second,millisecond:ek},Tr=["year","month","day","hour","minute","second","millisecond"],cw=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function pw(t){return!G(t)&&!j(t)?tk(t):t}function tk(t){t=t||{};var e={},r=!0;return E(Tr,function(i){r&&(r=t[i]==null)}),E(Tr,function(i,a){var n=t[i];e[i]={};for(var o=null,s=a;s>=0;s--){var l=Tr[s],u=$(n)&&!z(n)?n[l]:n,f=void 0;z(u)?(f=u.slice(),o=f[0]||""):G(u)?(o=u,f=[o]):(o==null?o=vp[i]:QR[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),e[i][l]=f}}),e}function qt(t,e){return t+="","0000".substr(0,e-t.length)+t}function Us(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 hw(t){return t===Us(t)}function dw(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ho(t,e,r,i){var a=hi(t),n=a[Sg(r)](),o=a[xp(r)]()+1,s=Math.floor((o-1)/3)+1,l=a[_p(r)](),u=a["get"+(r?"UTC":"")+"Day"](),f=a[bp(r)](),c=(f-1)%12+1,h=a[Sp(r)](),p=a[Cp(r)](),d=a[wp(r)](),v=f>=12?"pm":"am",m=v.toUpperCase(),g=i instanceof qe?i:uw(i||pp)||fw(),y=g.getModel("time"),x=y.get("month"),_=y.get("monthAbbr"),S=y.get("dayOfWeek"),b=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,v+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,n+"").replace(/{yy}/g,qt(n%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,x[o-1]).replace(/{MMM}/g,_[o-1]).replace(/{MM}/g,qt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,qt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,qt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,qt(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,qt(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,qt(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,qt(d,3)).replace(/{S}/g,d+"")}function vw(t,e,r,i,a){var n=null;if(G(r))n=r;else if(j(r)){var o={time:t.time,level:t.time?t.time.level:0},s=st();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),n=r(t.value,e,o)}else{var l=t.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];n=u[Math.min(l.level,u.length-1)]||""}else{var f=vo(t.value,a);n=r[f][f][0]}}return ho(new Date(t.value),n,a,i)}function vo(t,e){var r=hi(t),i=r[xp(e)]()+1,a=r[_p(e)](),n=r[bp(e)](),o=r[Sp(e)](),s=r[Cp(e)](),l=r[wp(e)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&n===0,p=h&&a===1,d=p&&i===1;return d?"year":p?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function yp(t,e,r){switch(e){case"year":t[Cg(r)](0);case"month":t[wg(r)](1);case"day":t[Tg(r)](0);case"hour":t[Eg(r)](0);case"minute":t[Ag(r)](0);case"second":t[Mg(r)](0)}return t}function Sg(t){return t?"getUTCFullYear":"getFullYear"}function xp(t){return t?"getUTCMonth":"getMonth"}function _p(t){return t?"getUTCDate":"getDate"}function bp(t){return t?"getUTCHours":"getHours"}function Sp(t){return t?"getUTCMinutes":"getMinutes"}function Cp(t){return t?"getUTCSeconds":"getSeconds"}function wp(t){return t?"getUTCMilliseconds":"getMilliseconds"}function mw(t){return t?"setUTCFullYear":"setFullYear"}function Cg(t){return t?"setUTCMonth":"setMonth"}function wg(t){return t?"setUTCDate":"setDate"}function Tg(t){return t?"setUTCHours":"setHours"}function Eg(t){return t?"setUTCMinutes":"setMinutes"}function Ag(t){return t?"setUTCSeconds":"setSeconds"}function Mg(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Lg(t,e,r,i,a,n,o,s){var l=new Pe({style:{text:t,font:e,align:r,verticalAlign:i,padding:a,rich:n,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function du(t){if(!tm(t))return G(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Bs(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,i){return i.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var $i=rs;function Tp(t,e,r){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&Bt(f)?f:"-"}function n(f){return gt(f)}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?hi(t):t;if(isNaN(+l)){if(s)return"-"}else return ho(l,i,r)}if(e==="ordinal")return El(t)?a(t):me(t)&&n(t)?t+"":"-";var u=Ni(t);return n(u)?du(u):El(t)?a(t):typeof t=="boolean"?t+"":"-"}var gw=["a","b","c","d","e","f","g"],Dg=function(t,e){return"{"+t+(e??"")+"}"};function Fs(t,e,r){z(e)||(e=[e]);var i=e.length;if(!i)return"";for(var a=e[0].$vars||[],n=0;n<a.length;n++){var o=gw[n];t=t.replace(Dg(o),Dg(o,0))}for(var s=0;s<i;s++)for(var l=0;l<a.length;l++){var u=e[s][a[l]];t=t.replace(Dg(gw[l],s),r?dt(u):u)}return t}function Ep(t,e){var r=G(t)?{color:t,extraCssText:e}:t||{},i=r.color,a=r.type;e=r.extraCssText;var n=r.renderMode||"html";if(!i)return"";if(n==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+dt(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+dt(i)+";"+(e||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:n,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function yw(t,e,r){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd
9
- yyyy`);var i=hi(e),a=r?"getUTC":"get",n=i[a+"FullYear"](),o=i[a+"Month"]()+1,s=i[a+"Date"](),l=i[a+"Hours"](),u=i[a+"Minutes"](),f=i[a+"Seconds"](),c=i[a+"Milliseconds"]();return t=t.replace("MM",qt(o,2)).replace("M",o).replace("yyyy",n).replace("yy",qt(n%100+"",2)).replace("dd",qt(s,2)).replace("d",s).replace("hh",qt(l,2)).replace("h",l).replace("mm",qt(u,2)).replace("m",u).replace("ss",qt(f,2)).replace("s",f).replace("SSS",qt(c,3)),t}function xw(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function _i(t,e){return e=e||"transparent",G(t)?t:$(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}var Ap={},Ig={},rk=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=i(Ap,!0),this._normalMasterList=i(Ig,!1);function i(a,n){var o=[];return E(a,function(s,l){var u=s.create(e,r);o=o.concat(u||[])}),o}},t.prototype.update=function(e,r){E(this._normalMasterList,function(i){i.update&&i.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e==="matrix"||e==="calendar"){Ap[e]=r;return}Ig[e]=r},t.get=function(e){return Ig[e]||Ap[e]},t})();function ik(t){return!!Ap[t]}var ak=1,Pg=2;function _w(t){bw.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}var bw=ee();function Lp(t){var e=t.getShallow("coord",!0),r=ak;if(e==null){var i=bw.get(t.type);i&&i.getCoord2&&(r=Pg,e=i.getCoord2(t))}return{coord:e,from:r}}var Hs=0,Mp=1,nk=2;function ok(t,e){var r=t.getShallow("coordinateSystem"),i=t.getShallow("coordinateSystemUsage",!0),a=i!=null,n=Hs;if(r){var o=t.mainType==="series";i==null&&(i=o?"data":"box"),i==="data"?(n=Mp,o||(n=Hs)):i==="box"&&(n=nk,!o&&!ik(r)&&(n=Hs))}return{coordSysType:r,kind:n}}function Sw(t){var e=t.targetModel,r=t.coordSysType,i=t.coordSysProvider,a=t.isDefaultDataCoordSys,n=t.allowNotFound,o=ok(e,!0),s=o.kind,l=o.coordSysType;if(a&&s!==Mp&&(s=Mp,l=r),s===Hs||l!==r)return Hs;var u=i(r,e);return u?(s===Mp?e.coordinateSystem=u:e.boxCoordinateSystem=u,s):Hs}var mo=rk;var Op=E,Ng=["left","right","top","bottom","width","height"],Dp=[["width","left","right"],["height","top","bottom"]];function Rg(t,e,r,i,a){var n=0,o=0;i==null&&(i=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.childAt(u+1),h=c&&c.getBoundingRect(),p,d;if(t==="horizontal"){var v=f.width+(h?-h.x+f.x:0);p=n+v,p>i||l.newline?(n=0,p=v,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(h?-h.y+f.y:0);d=o+m,d>a||l.newline?(n+=s+r,o=0,d=m,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=n,l.y=o,l.markRedraw(),t==="horizontal"?n=p+r:o=d+r)})}var Cw=Rg,fW=ut(Rg,"vertical"),cW=ut(Rg,"horizontal");function ww(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 sk(t,e){var r=go(t,e,{enableLayoutOnlyByCenter:!0}),i=t.getBoxLayoutParams(),a,n;if(r.type===vu.point)n=r.refPoint,a=Xi(i,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=z(o)?o:[o,o];a=Xi(i,r.refContainer),n=r.boxCoordFrom===Pg?r.refPoint:[Ee(s[0],a.width)+a.x,Ee(s[1],a.height)+a.y]}return{viewRect:a,center:n}}function Tw(t,e){var r=sk(t,e),i=r.viewRect,a=r.center,n=t.get("radius");z(n)||(n=[0,n]);var o=Ee(i.width,e.getWidth()),s=Ee(i.height,e.getHeight()),l=Math.min(o,s),u=Ee(n[0],l/2),f=Ee(n[1],l/2);return{cx:a[0],cy:a[1],r0:u,r:f,viewRect:i}}function Xi(t,e,r){r=$i(r||0);var i=e.width,a=e.height,n=Ee(t.left,i),o=Ee(t.top,a),s=Ee(t.right,i),l=Ee(t.bottom,a),u=Ee(t.width,i),f=Ee(t.height,a),c=r[2]+r[0],h=r[1]+r[3],p=t.aspect;switch(isNaN(u)&&(u=i-s-h-n),isNaN(f)&&(f=a-l-c-o),p!=null&&(isNaN(u)&&isNaN(f)&&(p>i/a?u=i*.8:f=a*.8),isNaN(u)&&(u=p*f),isNaN(f)&&(f=u/p)),isNaN(n)&&(n=i-s-u-h),isNaN(o)&&(o=a-l-f-c),t.left||t.right){case"center":n=i/2-u/2-r[3];break;case"right":n=i-u-h;break}switch(t.top||t.bottom){case"middle":case"center":o=a/2-f/2-r[0];break;case"bottom":o=a-f-c;break}n=n||0,o=o||0,isNaN(u)&&(u=i-h-n-(s||0)),isNaN(f)&&(f=a-c-o-(l||0));var d=new ce((e.x||0)+n+r[3],(e.y||0)+o+r[0],u,f);return d.margin=r,d}var vu={rect:1,point:2};function go(t,e,r){var i,a,n,o=t.boxCoordinateSystem,s;if(o){var l=Lp(t),u=l.coord,f=l.from;if(o.dataToLayout){n=vu.rect,s=f;var c=o.dataToLayout(u);i=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(n=vu.point,s=f,a=o.dataToPoint(u))}return n==null&&(n=vu.rect),n===vu.rect&&(i||(i={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),a=[i.x+i.width/2,i.y+i.height/2]),{type:n,refContainer:i,refPoint:a,boxCoordFrom:s}}function Ip(t,e,r,i,a,n){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(n=n||t,n.x=t.x,n.y=t.y,!o&&!s)return!1;var u;if(l==="raw")u=t.type==="group"?new ce(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(u=t.getBoundingRect(),t.needLocalTransform()){var f=t.getLocalTransform();u=u.clone(),u.applyTransform(f)}var c=Xi(ue({width:u.width,height:u.height},e),r,i),h=o?c.x-u.x:0,p=s?c.y-u.y:0;return l==="raw"?(n.x=h,n.y=p):(n.x+=h,n.y+=p),n===t&&t.markRedraw(),!0}function pn(t){var e=t.layoutMode||t.constructor.layoutMode;return $(e)?e:e?{type:e}:null}function Vr(t,e,r){var i=r&&r.ignoreSize;!z(i)&&(i=[i,i]);var a=o(Dp[0],0),n=o(Dp[1],1);l(Dp[0],t,a),l(Dp[1],t,n);function o(u,f){var c={},h=0,p={},d=0,v=2;if(Op(u,function(y){p[y]=t[y]}),Op(u,function(y){le(e,y)&&(c[y]=p[y]=e[y]),s(c,y)&&h++,s(p,y)&&d++}),i[f])return s(e,u[1])?p[u[2]]=null:s(e,u[2])&&(p[u[1]]=null),p;if(d===v||!h)return p;if(h>=v)return c;for(var m=0;m<u.length;m++){var g=u[m];if(!le(c,g)&&le(t,g)){c[g]=t[g];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){Op(u,function(h){f[h]=c[h]})}}function hn(t){return kg({},t)}function kg(t,e){return e&&t&&Op(Ng,function(r){le(e,r)&&(t[r]=e[r])}),t}var lk=ne(),Gs=(function(t){N(e,t);function e(r,i,a){var n=t.call(this,r,i,a)||this;return n.uid=Wi("ec_cpt_model"),n}return e.prototype.init=function(r,i,a){this.mergeDefaultAndTheme(r,a)},e.prototype.mergeDefaultAndTheme=function(r,i){var a=pn(this),n=a?hn(r):{},o=i.getTheme();Se(r,o.get(this.mainType)),Se(r,this.getDefaultOption()),a&&Vr(r,n,a)},e.prototype.mergeOption=function(r,i){Se(this.option,r,!0);var a=pn(this);a&&Vr(this.option,r,a)},e.prototype.optionUpdated=function(r,i){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!rS(r))return r.defaultOption;var i=lk(this);if(!i.defaultOption){for(var a=[],n=r;n;){var o=n.prototype.defaultOption;o&&a.push(o),n=n.superClass}for(var s={},l=a.length-1;l>=0;l--)s=Se(s,a[l],!0);i.defaultOption=s}return i.defaultOption},e.prototype.getReferringComponents=function(r,i){var a=r+"Index",n=r+"Id";return Ri(this.ecModel,r,{index:this.get(a,!0),id:this.get(n,!0)},i)},e.prototype.getBoxLayoutParams=function(){return ww(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})(qe);Oc(Gs,qe);tn(Gs);iw(Gs);aw(Gs,uk);function uk(t){var e=[];return E(Gs.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=B(e,function(r){return _r(r).main}),t!=="dataset"&&pe(e,"dataset")<=0&&e.unshift("dataset"),e}var Ie=Gs;var yo={color:{},darkColor:{},size:{}},ct=yo.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)"};k(ct,{primary:ct.neutral80,secondary:ct.neutral70,tertiary:ct.neutral60,quaternary:ct.neutral50,disabled:ct.neutral20,border:ct.neutral30,borderTint:ct.neutral20,borderShade:ct.neutral40,background:ct.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:ct.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:ct.neutral70,axisLineTint:ct.neutral40,axisTick:ct.neutral70,axisTickMinor:ct.neutral60,axisLabel:ct.neutral70,axisSplitLine:ct.neutral15,axisMinorSplitLine:ct.neutral05});for(dn in ct)ct.hasOwnProperty(dn)&&(zg=ct[dn],dn==="theme"?yo.darkColor.theme=ct.theme.slice():dn==="highlight"?yo.darkColor.highlight="rgba(255,231,130,0.4)":dn.indexOf("accent")===0?yo.darkColor[dn]=fa(zg,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):yo.darkColor[dn]=fa(zg,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)}));var zg,dn;yo.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var oe=yo;var Ew="";typeof navigator<"u"&&(Ew=navigator.platform||"");var Ks="rgba(0, 0, 0, 0.2)",Aw=oe.color.theme[0],fk=fa(Aw,null,null,.9),Np={darkMode:"auto",colorBy:"series",color:oe.color.theme,gradientColor:[fk,Aw],aria:{decal:{decals:[{color:Ks,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ks,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ks,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ks,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ks,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ks,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Ew.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 Et={Must:1,Might:2,Not:3},Mw=ne();function Lw(t){Mw(t).datasetMap=ee()}function Dw(t,e,r){var i={},a=Rp(e);if(!a||!t)return i;var n=[],o=[],s=e.ecModel,l=Mw(s).datasetMap,u=a.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),E(t,function(v,m){var g=$(v)?v:t[m]={name:v};g.type==="ordinal"&&f==null&&(f=m,c=d(g)),i[g.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});E(t,function(v,m){var g=v.name,y=d(v);if(f==null){var x=h.valueWayDim;p(i[g],x,y),p(o,x,y),h.valueWayDim+=y}else if(f===m)p(i[g],0,y),p(n,0,y);else{var x=h.categoryWayDim;p(i[g],x,y),p(o,x,y),h.categoryWayDim+=y}});function p(v,m,g){for(var y=0;y<g;y++)v.push(m+y)}function d(v){var m=v.dimsDef;return m?m.length:1}return n.length&&(i.itemName=n),o.length&&(i.seriesName=o),i}function Ow(t,e,r){var i={},a=Rp(t);if(!a)return i;var n=e.sourceFormat,o=e.dimensionsDefine,s;(n===$t||n===Sr)&&E(o,function(f,c){($(f)?f.name:f)==="name"&&(s=c)});var l=(function(){for(var f={},c={},h=[],p=0,d=Math.min(5,r);p<d;p++){var v=Pw(e.data,n,e.seriesLayoutBy,o,e.startIndex,p);h.push(v);var m=v===Et.Not;if(m&&f.v==null&&p!==s&&(f.v=p),(f.n==null||f.n===f.v||!m&&h[f.n]===Et.Not)&&(f.n=p),g(f)&&h[f.n]!==Et.Not)return f;m||(v===Et.Might&&c.v==null&&p!==s&&(c.v=p),(c.n==null||c.n===c.v)&&(c.n=p))}function g(y){return y.v!=null&&y.n!=null}return g(f)?f:g(c)?c:null})();if(l){i.value=[l.v];var u=s??l.n;i.itemName=[u],i.seriesName=[u]}return i}function Rp(t){var e=t.get("data",!0);if(!e)return Ri(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Ht).models[0]}function Iw(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:Ri(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Ht).models}function kp(t,e){return Pw(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Pw(t,e,r,i,a,n){var o,s=5;if(ft(t))return Et.Not;var l,u;if(i){var f=i[n];$(f)?(l=f.name,u=f.type):G(f)&&(l=f)}if(u!=null)return u==="ordinal"?Et.Must:Et.Not;if(e===yt){var c=t;if(r===Hi){for(var h=c[n],p=0;p<(h||[]).length&&p<s;p++)if((o=_(h[a+p]))!=null)return o}else for(var p=0;p<c.length&&p<s;p++){var d=c[a+p];if(d&&(o=_(d[n]))!=null)return o}}else if(e===$t){var v=t;if(!l)return Et.Not;for(var p=0;p<v.length&&p<s;p++){var m=v[p];if(m&&(o=_(m[l]))!=null)return o}}else if(e===Sr){var g=t;if(!l)return Et.Not;var h=g[l];if(!h||ft(h))return Et.Not;for(var p=0;p<h.length&&p<s;p++)if((o=_(h[p]))!=null)return o}else if(e===Tt)for(var y=t,p=0;p<y.length&&p<s;p++){var m=y[p],x=da(m);if(!z(x))return Et.Not;if((o=_(x[n]))!=null)return o}function _(S){var b=G(S);if(S!=null&&isFinite(Number(S))&&S!=="")return b?Et.Might:Et.Not;if(b&&S!=="-")return Et.Must}return Et.Not}var ck=ee();function Nw(t,e,r){var i=ck.get(e);if(!i)return r;var a=i(t);if(!a)return r;if(0)for(var n;n<a.length;n++);return r.concat(a)}var Rw=ne(),pk=ne(),mu=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,i){var a=Fe(this.get("color",!0)),n=this.get("colorLayer",!0);return kw(this,Rw,a,n,e,r,i)},t.prototype.clearColorPalette=function(){dk(this,Rw)},t})();function Vg(t,e,r,i){var a=Fe(t.get(["aria","decal","decals"]));return kw(t,pk,a,null,e,r,i)}function hk(t,e){for(var r=t.length,i=0;i<r;i++)if(t[i].length>e)return t[i];return t[r-1]}function kw(t,e,r,i,a,n,o){n=n||t;var s=e(n),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!i?r:hk(i,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return a&&(u[a]=c),s.paletteIdx=(l+1)%f.length,c}}function dk(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var zp,gu,zw,Vw="\0_ec_inner",vk=1;var Hw=(function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,i,a,n,o,s){n=n||{},this.option=null,this._theme=new qe(n),this._locale=new qe(o),this._optionManager=s},e.prototype.setOption=function(r,i,a){var n=Fw(i);this._optionManager.setOption(r,a,n),this._resetOption(null,n)},e.prototype.resetOption=function(r,i){return this._resetOption(r,Fw(i))},e.prototype._resetOption=function(r,i){var a=!1,n=this._optionManager;if(!r||r==="recreate"){var o=n.mountOption(r==="recreate");!this.option||r==="recreate"?zw(this,o):(this.restoreData(),this._mergeOption(o,i)),a=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=n.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,i))}if(!r||r==="recreate"||r==="media"){var l=n.getMediaOption(this);l.length&&E(l,function(u){a=!0,this._mergeOption(u,i)},this)}return a},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,i){var a=this.option,n=this._componentsMap,o=this._componentsCount,s=[],l=ee(),u=i&&i.replaceMergeMainTypeMap;Lw(this),E(r,function(c,h){c!=null&&(Ie.hasClass(h)?h&&(s.push(h),l.set(h,!0)):a[h]=a[h]==null?Q(c):Se(a[h],c,!0))}),u&&u.each(function(c,h){Ie.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),Ie.topologicalTravel(s,Ie.getAllClassMainTypes(),f,this);function f(c){var h=Nw(this,c,Fe(r[c])),p=n.get(c),d=p?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",v=wc(p,h,d);Yb(v,c,Ie),a[c]=null,n.set(c,null),o.set(c,0);var m=[],g=[],y=0,x,_;E(v,function(S,b){var w=S.existing,M=S.newOption;if(!M)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var C=c==="series",T=Ie.getClass(c,S.keyInfo.subType,!C);if(!T){if(0)var A,D;return}if(c==="tooltip"){if(x)return;x=!0}if(w&&w.constructor===T)w.name=S.keyInfo.name,w.mergeOption(M,this),w.optionUpdated(M,!1);else{var L=k({componentIndex:b},S.keyInfo);w=new T(M,this,this,L),k(w,L),S.brandNew&&(w.__requireNewView=!0),w.init(M,this,this),w.optionUpdated(null,!0)}}w?(m.push(w.option),g.push(w),y++):(m.push(void 0),g.push(void 0))},this),a[c]=m,n.set(c,g),o.set(c,y),c==="series"&&zp(this)}this._seriesIndices||zp(this)},e.prototype.getOption=function(){var r=Q(this.option);return E(r,function(i,a){if(Ie.hasClass(a)){for(var n=Fe(i),o=n.length,s=!1,l=o-1;l>=0;l--)n[l]&&!xs(n[l])?s=!0:(n[l]=null,!s&&o--);n.length=o,r[a]=n}}),delete r[Vw],r},e.prototype.setTheme=function(r){this._theme=new qe(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,i){var a=this._componentsMap.get(r);if(a){var n=a[i||0];if(n)return n;if(i==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},e.prototype.queryComponents=function(r){var i=r.mainType;if(!i)return[];var a=r.index,n=r.id,o=r.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return a!=null?(l=[],E(Fe(a),function(u){s[u]&&l.push(s[u])})):n!=null?l=Uw("id",n,s):o!=null?l=Uw("name",o,s):l=ke(s,function(u){return!!u}),Bw(l,r)},e.prototype.findComponents=function(r){var i=r.query,a=r.mainType,n=s(i),o=n?this.queryComponents(n):ke(this._componentsMap.get(a),function(u){return!!u});return l(Bw(o,r));function s(u){var f=a+"Index",c=a+"Id",h=a+"Name";return u&&(u[f]!=null||u[c]!=null||u[h]!=null)?{mainType:a,index:u[f],id:u[c],name:u[h]}:null}function l(u){return r.filter?ke(u,r.filter):u}},e.prototype.eachComponent=function(r,i,a){var n=this._componentsMap;if(j(r)){var o=i,s=r;n.each(function(c,h){for(var p=0;c&&p<c.length;p++){var d=c[p];d&&s.call(o,h,d,d.componentIndex)}})}else for(var l=G(r)?n.get(r):$(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&i.call(a,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var i=wt(r,null);return ke(this._componentsMap.get("series"),function(a){return!!a&&i!=null&&a.name===i})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return ke(this._componentsMap.get("series"),function(i){return!!i&&i.subType===r})},e.prototype.getSeries=function(){return ke(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,i){gu(this),E(this._seriesIndices,function(a){var n=this._componentsMap.get("series")[a];r.call(i,n,a)},this)},e.prototype.eachRawSeries=function(r,i){E(this._componentsMap.get("series"),function(a){a&&r.call(i,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(r,i,a){gu(this),E(this._seriesIndices,function(n){var o=this._componentsMap.get("series")[n];o.subType===r&&i.call(a,o,n)},this)},e.prototype.eachRawSeriesByType=function(r,i,a){return E(this.getSeriesByType(r),i,a)},e.prototype.isSeriesFiltered=function(r){return gu(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,i){gu(this);var a=[];E(this._seriesIndices,function(n){var o=this._componentsMap.get("series")[n];r.call(i,o,n)&&a.push(n)},this),this._seriesIndices=a,this._seriesIndicesMap=ee(a)},e.prototype.restoreData=function(r){zp(this);var i=this._componentsMap,a=[];i.each(function(n,o){Ie.hasClass(o)&&a.push(o)}),Ie.topologicalTravel(a,Ie.getAllClassMainTypes(),function(n){E(i.get(n),function(o){o&&(n!=="series"||!mk(o,r))&&o.restoreData()})})},e.internalField=(function(){zp=function(r){var i=r._seriesIndices=[];E(r._componentsMap.get("series"),function(a){a&&i.push(a.componentIndex)}),r._seriesIndicesMap=ee(i)},gu=function(r){},zw=function(r,i){r.option={},r.option[Vw]=vk,r._componentsMap=ee({series:[]}),r._componentsCount=ee();var a=i.aria;$(a)&&a.enabled==null&&(a.enabled=!0),gk(i,r._theme.option),Se(i,Np,!1),r._mergeOption(i,null)}})(),e})(qe);function mk(t,e){if(e){var r=e.seriesIndex,i=e.seriesId,a=e.seriesName;return r!=null&&t.componentIndex!==r||i!=null&&t.id!==i||a!=null&&t.name!==a}}function gk(t,e){var r=t.color&&!t.colorLayer;E(e,function(i,a){a==="colorLayer"&&r||a==="color"&&t.color||Ie.hasClass(a)||(typeof i=="object"?t[a]=t[a]?Se(t[a],i,!1):Q(i):t[a]==null&&(t[a]=i))})}function Uw(t,e,r){if(z(e)){var i=ee();return E(e,function(n){if(n!=null){var o=wt(n,null);o!=null&&i.set(n,!0)}}),ke(r,function(n){return n&&i.get(n[t])})}else{var a=wt(e,null);return ke(r,function(n){return n&&a!=null&&n[t]===a})}}function Bw(t,e){return e.hasOwnProperty("subType")?ke(t,function(r){return r&&r.subType===e.subType}):t}function Fw(t){var e=ee();return t&&E(Fe(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}Ut(Hw,mu);var Vp=Hw;var yk=/^(min|max)?(.+)$/,xk=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,i){e&&(E(Fe(e.series),function(o){o&&o.data&&ft(o.data)&&is(o.data)}),E(Fe(e.dataset),function(o){o&&o.source&&ft(o.source)&&is(o.source)})),e=Q(e);var a=this._optionBackup,n=_k(e,r,!a);this._newBaseOption=n.baseOption,a?(n.timelineOptions.length&&(a.timelineOptions=n.timelineOptions),n.mediaList.length&&(a.mediaList=n.mediaList),n.mediaDefault&&(a.mediaDefault=n.mediaDefault)):this._optionBackup=n},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],Q(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,i=this._timelineOptions;if(i.length){var a=e.getComponent("timeline");a&&(r=Q(i[a.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),i=this._api.getHeight(),a=this._mediaList,n=this._mediaDefault,o=[],s=[];if(!a.length&&!n)return s;for(var l=0,u=a.length;l<u;l++)bk(a[l].query,r,i)&&o.push(l);return!o.length&&n&&(o=[-1]),o.length&&!Ck(o,this._currentMediaIndices)&&(s=B(o,function(f){return Q(f===-1?n.option:a[f].option)})),this._currentMediaIndices=o,s},t})();function _k(t,e,r){var i=[],a,n,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,f=!!t.media,c=!!(l||s||o&&o.timeline);o?(n=o,n.timeline||(n.timeline=s)):((c||f)&&(t.options=t.media=null),n=t),f&&z(u)&&E(u,function(p){p&&p.option&&(p.query?i.push(p):a||(a=p))}),h(n),E(l,function(p){return h(p)}),E(i,function(p){return h(p.option)});function h(p){E(e,function(d){d(p,r)})}return{baseOption:n,timelineOptions:l||[],mediaDefault:a,mediaList:i}}function bk(t,e,r){var i={width:e,height:r,aspectratio:e/r},a=!0;return E(t,function(n,o){var s=o.match(yk);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();Sk(i[u],n,l)||(a=!1)}}),a}function Sk(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function Ck(t,e){return t.join(",")===e.join(",")}var Gw=xk;var bi=E,xu=$,Kw=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ug(t){var e=t&&t.itemStyle;if(e)for(var r=0,i=Kw.length;r<i;r++){var a=Kw[r],n=e.normal,o=e.emphasis;n&&n[a]&&(t[a]=t[a]||{},t[a].normal?Se(t[a].normal,n[a]):t[a].normal=n[a],n[a]=null),o&&o[a]&&(t[a]=t[a]||{},t[a].emphasis?Se(t[a].emphasis,o[a]):t[a].emphasis=o[a],o[a]=null)}}function Zt(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,a=t[e].emphasis;i&&(r?(t[e].normal=t[e].emphasis=null,ue(t[e],i)):t[e]=i),a&&(t.emphasis=t.emphasis||{},t.emphasis[e]=a,a.focus&&(t.emphasis.focus=a.focus),a.blurScope&&(t.emphasis.blurScope=a.blurScope))}}function yu(t){Zt(t,"itemStyle"),Zt(t,"lineStyle"),Zt(t,"areaStyle"),Zt(t,"label"),Zt(t,"labelLine"),Zt(t,"upperLabel"),Zt(t,"edgeLabel")}function vt(t,e){var r=xu(t)&&t[e],i=xu(r)&&r.textStyle;if(i)for(var a=0,n=am.length;a<n;a++){var o=am[a];i.hasOwnProperty(o)&&(r[o]=i[o])}}function ti(t){t&&(yu(t),vt(t,"label"),t.emphasis&&vt(t.emphasis,"label"))}function wk(t){if(xu(t)){Ug(t),yu(t),vt(t,"label"),vt(t,"upperLabel"),vt(t,"edgeLabel"),t.emphasis&&(vt(t.emphasis,"label"),vt(t.emphasis,"upperLabel"),vt(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Ug(e),ti(e));var r=t.markLine;r&&(Ug(r),ti(r));var i=t.markArea;i&&ti(i);var a=t.data;if(t.type==="graph"){a=a||t.nodes;var n=t.links||t.edges;if(n&&!ft(n))for(var o=0;o<n.length;o++)ti(n[o]);E(t.categories,function(u){yu(u)})}if(a&&!ft(a))for(var o=0;o<a.length;o++)ti(a[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)ti(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)z(l[o])?(ti(l[o][0]),ti(l[o][1])):ti(l[o]);t.type==="gauge"?(vt(t,"axisLabel"),vt(t,"title"),vt(t,"detail")):t.type==="treemap"?(Zt(t.breadcrumb,"itemStyle"),E(t.levels,function(u){yu(u)})):t.type==="tree"&&yu(t.leaves)}}function wa(t){return z(t)?t:t?[t]:[]}function Yw(t){return(z(t)?t[0]:t)||{}}function Bg(t,e){bi(wa(t.series),function(i){xu(i)&&wk(i)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),bi(r,function(i){bi(wa(t[i]),function(a){a&&(vt(a,"axisLabel"),vt(a.axisPointer,"label"))})}),bi(wa(t.parallel),function(i){var a=i&&i.parallelAxisDefault;vt(a,"axisLabel"),vt(a&&a.axisPointer,"label")}),bi(wa(t.calendar),function(i){Zt(i,"itemStyle"),vt(i,"dayLabel"),vt(i,"monthLabel"),vt(i,"yearLabel")}),bi(wa(t.radar),function(i){vt(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),bi(wa(t.geo),function(i){xu(i)&&(ti(i),bi(wa(i.regions),function(a){ti(a)}))}),bi(wa(t.timeline),function(i){ti(i),Zt(i,"label"),Zt(i,"itemStyle"),Zt(i,"controlStyle",!0);var a=i.data;z(a)&&E(a,function(n){$(n)&&(Zt(n,"label"),Zt(n,"itemStyle"))})}),bi(wa(t.toolbox),function(i){Zt(i,"iconStyle"),bi(i.feature,function(a){Zt(a,"iconStyle")})}),vt(Yw(t.axisPointer),"label"),vt(Yw(t.tooltip).axisPointer,"label")}function Tk(t,e){for(var r=e.split(","),i=t,a=0;a<r.length&&(i=i&&i[r[a]],i!=null);a++);return i}function Ek(t,e,r,i){for(var a=e.split(","),n=t,o,s=0;s<a.length-1;s++)o=a[s],n[o]==null&&(n[o]={}),n=n[o];(i||n[a[s]]==null)&&(n[a[s]]=r)}function Ww(t){t&&E(Ak,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var Ak=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Mk=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Fg=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function _u(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<Fg.length;r++){var i=Fg[r][1],a=Fg[r][0];e[i]!=null&&(e[a]=e[i])}}function $w(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function Xw(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Lk(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function qw(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&qw(t[r].children,e)}function Up(t,e){Bg(t,e),t.series=Fe(t.series),E(t.series,function(r){if($(r)){var i=r.type;if(i==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(i==="pie"||i==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),$w(r.label);var a=r.data;if(a&&!ft(a))for(var n=0;n<a.length;n++)$w(a[n]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(i==="gauge"){var o=Tk(r,"pointer.color");o!=null&&Ek(r,"itemStyle.color",o)}else if(i==="bar"){_u(r),_u(r.backgroundStyle),_u(r.emphasis);var a=r.data;if(a&&!ft(a))for(var n=0;n<a.length;n++)typeof a[n]=="object"&&(_u(a[n]),_u(a[n]&&a[n].emphasis))}else if(i==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),Xw(r),qw(r.data,Xw)}else i==="graph"||i==="sankey"?Lk(r):i==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&ue(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),Ww(r)}}),t.dataRange&&(t.visualMap=t.dataRange),E(Mk,function(r){var i=t[r];i&&(z(i)||(i=[i]),E(i,function(a){Ww(a)}))})}var Zw=Ss(Dk);function Dk(t){var e=ee();t.eachSeries(function(r){var i=r.get("stack");if(i){var a=e.get(i)||e.set(i,[]),n=r.getData(),o={stackResultDimension:n.getCalculationInfo("stackResultDimension"),stackedOverDimension:n.getCalculationInfo("stackedOverDimension"),stackedDimension:n.getCalculationInfo("stackedDimension"),stackedByDimension:n.getCalculationInfo("stackedByDimension"),isStackedByIndex:n.getCalculationInfo("isStackedByIndex"),data:n,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.push(o)}}),e.each(function(r){if(r.length!==0){var i=r[0].seriesModel,a=i.get("stackOrder")||"seriesAsc";a==="seriesDesc"&&r.reverse(),E(r,function(n,o){n.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),Ok(r)}})}function Ok(t){E(t,function(e,r){var i=[],a=[NaN,NaN],n=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(n,function(u,f,c){var h=o.get(e.stackedDimension,c);if(isNaN(h))return a;var p,d;s?d=o.getRawIndex(c):p=o.get(e.stackedByDimension,c);for(var v=NaN,m=r-1;m>=0;m--){var g=t[m];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,p)),d>=0){var y=g.data.getByRawIndex(g.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=ha(h,y),v=y;break}}}return i[0]=h,i[1]=v,i})})}var Bp=(function(){function t(e){this.data=e.data||(e.sourceFormat===Sr?{}:[]),this.sourceFormat=e.sourceFormat||Im,this.seriesLayoutBy=e.seriesLayoutBy||Rr,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var i=0;i<r.length;i++){var a=r[i];a.type==null&&kp(this,i)===Et.Must&&(a.type="ordinal")}}return t})();function Ys(t){return t instanceof Bp}function bu(t,e,r){r=r||Hg(t);var i=e.seriesLayoutBy,a=Ik(t,r,i,e.sourceHeader,e.dimensions),n=new Bp({data:t,sourceFormat:r,seriesLayoutBy:i,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:Q(e)});return n}function Ws(t){return new Bp({data:t,sourceFormat:ft(t)?Nr:Tt})}function Qw(t){return new Bp({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Q(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Hg(t){var e=Im;if(ft(t))e=Nr;else if(z(t)){t.length===0&&(e=yt);for(var r=0,i=t.length;r<i;r++){var a=t[r];if(a!=null){if(z(a)||ft(a)){e=yt;break}else if($(a)){e=$t;break}}}}else if($(t)){for(var n in t)if(le(t,n)&&lt(t[n])){e=Sr;break}}return e}function Ik(t,e,r,i,a){var n,o;if(!t)return{dimensionsDefine:jw(a),startIndex:o,dimensionsDetectedCount:n};if(e===yt){var s=t;i==="auto"||i==null?Jw(function(u){u!=null&&u!=="-"&&(G(u)?o==null&&(o=1):o=0)},r,s,10):o=me(i)?i:i?1:0,!a&&o===1&&(a=[],Jw(function(u,f){a[f]=u!=null?u+"":""},r,s,1/0)),n=a?a.length:r===Hi?s.length:s[0]?s[0].length:null}else if(e===$t)a||(a=Pk(t));else if(e===Sr)a||(a=[],E(t,function(u,f){a.push(f)}));else if(e===Tt){var l=da(t[0]);n=z(l)&&l.length||1}return{startIndex:o,dimensionsDefine:jw(a),dimensionsDetectedCount:n}}function Pk(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return ae(r)}function jw(t){if(t){var e=ee();return B(t,function(r,i){r=$(r)?r:{name:r};var a={name:r.name,displayName:r.displayName,type:r.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var n=e.get(a.name);return n?a.name+="-"+n.count++:e.set(a.name,{count:1}),a})}}function Jw(t,e,r,i){if(e===Hi)for(var a=0;a<r.length&&a<i;a++)t(r[a]?r[a][0]:null,a);else for(var n=r[0]||[],a=0;a<n.length&&a<i;a++)t(n[a],a)}function Fp(t){var e=t.sourceFormat;return e===$t||e===Sr}var xo,_o,bo,So,eT,tT,Gp=(function(){function t(e,r){var i=Ys(e)?e:Ws(e);this._source=i;var a=this._data=i.data,n=i.sourceFormat,o=i.seriesLayoutBy;if(n===Nr&&(this._offset=0,this._dimSize=r,this._data=a),0)var s;tT(this,a,i)}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;tT=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,h=l.dimensionsDefine,p=eT[$g(u,f)];if(k(o,p),u===Nr)o.getItem=r,o.count=a,o.fillStorage=i;else{var d=Kg(u,f);o.getItem=se(d,null,s,c,h);var v=Yg(u,f);o.count=se(v,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},i=function(o,s,l,u){for(var f=this._data,c=this._dimSize,h=0;h<c;h++){for(var p=u[h],d=p[0]==null?1/0:p[0],v=p[1]==null?-1/0:p[1],m=s-o,g=l[h],y=0;y<m;y++){var x=f[y*c+h];g[o+y]=x,x<d&&(d=x),x>v&&(v=x)}p[0]=d,p[1]=v}},a=function(){return this._data?this._data.length/this._dimSize:0};eT=(e={},e[yt+"_"+Rr]={pure:!0,appendData:n},e[yt+"_"+Hi]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[$t]={pure:!0,appendData:n},e[Sr]={pure:!0,appendData:function(o){var s=this._data;E(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[Tt]={appendData:n},e[Nr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function n(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),t})();var Hp=function(t){z(t)||im("series.data or dataset.source must be an array.")},h6=(xo={},xo[yt+"_"+Rr]=Hp,xo[yt+"_"+Hi]=Hp,xo[$t]=Hp,xo[Sr]=function(t,e){for(var r=0;r<e.length;r++){var i=e[r].name;i==null&&im("dimension name must not be null/undefined.")}},xo[Tt]=Hp,xo),rT=function(t,e,r,i){return t[i]},Nk=(_o={},_o[yt+"_"+Rr]=function(t,e,r,i){return t[i+e]},_o[yt+"_"+Hi]=function(t,e,r,i,a){i+=e;for(var n=a||[],o=t,s=0;s<o.length;s++){var l=o[s];n[s]=l?l[i]:null}return n},_o[$t]=rT,_o[Sr]=function(t,e,r,i,a){for(var n=a||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?t[s]:null;n[o]=l?l[i]:null}return n},_o[Tt]=rT,_o);function Kg(t,e){var r=Nk[$g(t,e)];return r}var iT=function(t,e,r){return t.length},Rk=(bo={},bo[yt+"_"+Rr]=function(t,e,r){return Math.max(0,t.length-e)},bo[yt+"_"+Hi]=function(t,e,r){var i=t[0];return i?Math.max(0,i.length-e):0},bo[$t]=iT,bo[Sr]=function(t,e,r){var i=r[0].name,a=i!=null?t[i]:null;return a?a.length:0},bo[Tt]=iT,bo);function Yg(t,e){var r=Rk[$g(t,e)];return r}var Gg=function(t,e,r){return t[e]},kk=(So={},So[yt]=Gg,So[$t]=function(t,e,r){return t[r]},So[Sr]=Gg,So[Tt]=function(t,e,r){var i=da(t);return i instanceof Array?i[e]:i},So[Nr]=Gg,So);function Wg(t){var e=kk[t];return e}function $g(t,e){return t===yt?t+"_"+e:t}function Ta(t,e,r){if(t){var i=t.getRawDataItem(e);if(i!=null){var a=t.getStore(),n=a.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=a.getDimensionProperty(o);return Wg(n)(i,o,s)}else{var l=i;return n===Tt&&(l=da(i)),l}}}}var zk=/\{@(.+?)\}/g,aT=(function(){function t(){}return t.prototype.getDataParams=function(e,r){var i=this.getData(r),a=this.getRawValue(e,r),n=i.getRawIndex(e),o=i.getName(e),s=i.getRawDataItem(e),l=i.getItemVisual(e,"style"),u=l&&l[i.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,h=c==="series",p=i.userOutput&&i.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:n,data:s,dataType:r,value:a,color:u,borderColor:f,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,i,a,n,o){r=r||"normal";var s=this.getData(i),l=this.getDataParams(e,i);if(o&&(l.value=o.interpolatedValue),a!=null&&z(l.value)&&(l.value=l.value[a]),!n){var u=s.getItemModel(e);n=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(j(n))return l.status=r,l.dimensionIndex=a,n(l);if(G(n)){var f=Fs(n,l);return f.replace(zk,function(c,h){var p=h.length,d=h;d.charAt(0)==="["&&d.charAt(p-1)==="]"&&(d=+d.slice(1,p-1));var v=Ta(s,e,d);if(o&&z(o.interpolatedValue)){var m=s.getDimensionIndex(d);m>=0&&(v=o.interpolatedValue[m])}return v!=null?v+"":""})}},t.prototype.getRawValue=function(e,r){return Ta(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,i){},t})();function Xg(t){var e,r;return $(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function vn(t){return new Vk(t)}var Vk=(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,i=e&&e.skip;if(this._dirty&&r){var a=this.context;a.data=a.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var n;this._plan&&!i&&(n=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)&&(n="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||n==="reset")&&(this._dirty=!1,c=this._doReset(i)),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 p=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!i&&(c||p<d)){var v=this._progress;if(z(v))for(var m=0;m<v.length;m++)this._doProgress(v[m],p,d,l,u);else this._doProgress(v,p,d,l,u)}this._dueIndex=d;var g=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=g}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,i,a,n){nT.reset(r,i,a,n),this._callingProgress=e,this._callingProgress({start:r,end:i,count:i-r,next:nT.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,i;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(i=r.forceFirstProgress,r=r.progress),z(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),i},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})();var nT=(function(){var t,e,r,i,a,n={reset:function(l,u,f,c){e=l,t=u,r=f,i=c,a=Math.ceil(i/r),n.next=r>1&&i>0?s:o}};return n;function o(){return e<t?e++:null}function s(){var l=e%a*r+Math.ceil(e/a),u=e>=t?null:l<i?l:e;return e++,u}})();function $s(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!me(t)&&t!=null&&t!=="-"&&(t=+hi(t)),t==null||t===""?NaN:Number(t))}var w6=ee({number:function(t){return parseFloat(t)},time:function(t){return+hi(t)},trim:function(t){return G(t)?Bt(t):t}});var Uk={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},T6=(function(){function t(e,r){if(!me(r)){var i="";It(i)}this._opFn=Uk[e],this._rvalFloat=Ni(r)}return t.prototype.evaluate=function(e){return me(e)?this._opFn(e,this._rvalFloat):this._opFn(Ni(e),this._rvalFloat)},t})(),oT=(function(){function t(e,r){var i=e==="desc";this._resultLT=i?1:-1,r==null&&(r=i?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var i=me(e)?e:Ni(e),a=me(r)?r:Ni(r),n=isNaN(i),o=isNaN(a);if(n&&(i=this._incomparable),o&&(a=this._incomparable),n&&o){var s=G(e),l=G(r);s&&(i=l?e:0),l&&(a=s?r:0)}return i<a?this._resultLT:i>a?-this._resultLT:0},t})();var E6=(function(){function t(e,r){this._rval=r,this._isEQ=e,this._rvalTypeof=typeof r,this._rvalFloat=Ni(r)}return t.prototype.evaluate=function(e){var r=e===this._rval;if(!r){var i=typeof e;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(r=Ni(e)===this._rvalFloat)}return this._isEQ?r:!r},t})();function Kp(t){var e="",r=-1/0,i=-1/0,a=1/0,n=1/0;return t&&(t.g!=null&&(e+="G"+t.g,r=t.g),t.ge!=null&&(e+="GE"+t.ge,i=t.ge),t.l!=null&&(e+="L"+t.l,a=t.l),t.le!=null&&(e+="LE"+t.le,n=t.le)),{key:e,g:r,ge:i,l:a,le:n}}function Yp(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var Bk=(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 $s(e,r)},t})();function Fk(t,e){var r=new Bk,i=t.data,a=r.sourceFormat=t.sourceFormat,n=t.startIndex,o="";t.seriesLayoutBy!==Rr&&It(o);var s=[],l={},u=t.dimensionsDefine;if(u)E(u,function(v,m){var g=v.name,y={index:m,name:g,displayName:v.displayName};if(s.push(y),g!=null){var x="";le(l,g)&&It(x),l[g]=y}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=Kg(a,Rr);e.__isBuiltIn&&(r.getRawDataItem=function(v){return c(i,n,s,v)},r.getRawData=se(Hk,null,t)),r.cloneRawData=se(Gk,null,t);var h=Yg(a,Rr);r.count=se(h,null,i,n,s);var p=Wg(a);r.retrieveValue=function(v,m){var g=c(i,n,s,v);return d(g,m)};var d=r.retrieveValueFromItem=function(v,m){if(v!=null){var g=s[m];if(g)return p(v,m,g.name)}};return r.getDimensionInfo=se(Kk,null,s,l),r.cloneAllDimensionInfo=se(Yk,null,s),r}function Hk(t){var e=t.sourceFormat;if(!qg(e)){var r="";It(r)}return t.data}function Gk(t){var e=t.sourceFormat,r=t.data;if(!qg(e)){var i="";It(i)}if(e===yt){for(var a=[],n=0,o=r.length;n<o;n++)a.push(r[n].slice());return a}else if(e===$t){for(var a=[],n=0,o=r.length;n<o;n++)a.push(k({},r[n]));return a}}function Kk(t,e,r){if(r!=null){if(me(r)||!isNaN(r)&&!le(e,r))return t[r];if(le(e,r))return e[r]}}function Yk(t){return Q(t)}var sT=ee();function lT(t){t=Q(t);var e=t.type,r="";e||It(r);var i=e.split(":");i.length!==2&&It(r);var a=!1;i[0]==="echarts"&&(e=i[1],a=!0),t.__isBuiltIn=a,sT.set(e,t)}function uT(t,e,r){var i=Fe(t),a=i.length,n="";a||It(n);for(var o=0,s=a;o<s;o++){var l=i[o];e=Wk(l,e,r,a===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function Wk(t,e,r,i){var a="";e.length||It(a),$(t)||It(a);var n=t.type,o=sT.get(n);o||It(a);var s=B(e,function(f){return Fk(f,o)}),l=Fe(o.transform({upstream:s[0],upstreamList:s,config:Q(t.config)}));if(0&&t.print)var u;return B(l,function(f,c){var h="";$(f)||It(h),f.data||It(h);var p=Hg(f.data);qg(p)||It(h);var d,v=e[0];if(v&&c===0&&!f.dimensions){var m=v.startIndex;m&&(f.data=v.data.slice(0,m).concat(f.data)),d={seriesLayoutBy:Rr,sourceHeader:m,dimensions:v.metaRawOption.dimensions}}else d={seriesLayoutBy:Rr,sourceHeader:0,dimensions:f.dimensions};return bu(f.data,d,null)})}function qg(t){return t===yt||t===$t}var $k=typeof Uint32Array===sn?Array:Uint32Array,Xk=typeof Uint16Array===sn?Array:Uint16Array,jg=typeof Int32Array===sn?Array:Int32Array,fT=typeof Float64Array===sn?Array:Float64Array,pT={float:fT,int:jg,ordinal:Array,number:Array,time:fT},Zg;function Xs(t){return t>65535?$k:Xk}function qk(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function cT(t,e,r,i,a){var n=pT[r||"float"];if(a){var o=t[e],s=o&&o.length;if(s!==i){for(var l=new n(i),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new n(i)}var Zk=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ee()}return t.prototype.initData=function(e,r,i){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),n=this.defaultDimValueGetter=Zg[a.sourceFormat];this._dimValueGetter=i||n,this._rawExtent=[];var o=Fp(a);this._dimensions=B(r,function(s){return{type:s.type,property:s.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 i=this._calcDimNameToIdx,a=this._dimensions,n=i.get(e);if(n!=null){if(a[n].type===r)return n}else n=a.length;return a[n]={type:r},i.set(e,n),this._chunks[n]=new pT[r||"float"](this._rawCount),this._rawExtent[n]=Gt(),n},t.prototype.collectOrdinalMeta=function(e,r){var i=this._chunks[e],a=this._dimensions[e],n=this._rawExtent,o=a.ordinalOffset||0,s=i.length;o===0&&(n[e]=Gt());for(var l=n[e],u=o;u<s;u++){var f=i[u]=r.parseAndCollect(i[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}a.ordinalMeta=r,a.ordinalOffset=s,a.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],i=r.ordinalMeta;return i},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,i=this.count();r.appendData(e);var a=r.count();return r.persistent||(a+=i),i<a&&this._initDataFromProvider(i,a,!0),[i,a]},t.prototype.appendValues=function(e,r){for(var i=this._chunks,a=this._dimensions,n=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<n;u++){var f=a[u];cT(i,u,f.type,l,!0)}for(var c=[],h=s;h<l;h++)for(var p=h-s,d=0;d<n;d++){var f=a[d],v=Zg.arrayRows.call(this,e[p]||c,f.property,p,d);i[d][h]=v;var m=o[d];v<m[0]&&(m[0]=v),v>m[1]&&(m[1]=v)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,i){for(var a=this._provider,n=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=B(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=Gt()),cT(n,f,c.type,r,i)}if(a.fillStorage)a.fillStorage(e,r,n,l);else for(var h=[],p=e;p<r;p++){h=a.getItem(p,h);for(var d=0;d<s;d++){var v=n[d],m=this._dimValueGetter(h,u[d],p,d);v[p]=m;var g=l[d];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}!a.persistent&&a.clean&&a.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 i=this._chunks[e];return i?i[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var i=[],a=[];if(r==null){r=e,e=[];for(var n=0;n<this._dimensions.length;n++)a.push(n)}else a=e;for(var n=0,o=a.length;n<o;n++)i.push(this.get(a[n],r));return i},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var i=this._chunks[e];return i?i[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],i=0;if(r)for(var a=0,n=this.count();a<n;a++){var o=this.get(e,a);isNaN(o)||(i+=o)}return i},t.prototype.getMedian=function(e){var r=[];this.each([e],function(a){isNaN(a)||r.push(a)}),Pi(r);var i=this.count();return i===0?0:i%2===1?r[(i-1)/2]:(r[i/2]+r[i/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,i=r[e];if(i!=null&&i<this._count&&i===e)return e;for(var a=0,n=this._count-1;a<=n;){var o=(a+n)/2|0;if(r[o]<e)a=o+1;else if(r[o]>e)n=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var i=r.constructor,a=this._count;if(i===Array){e=new i(a);for(var n=0;n<a;n++)e[n]=r[n]}else e=new i(r.buffer,0,a)}else{var i=Xs(this._rawCount);e=new i(this.count());for(var n=0;n<e.length;n++)e[n]=n}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var i=this.clone(),a=i.count(),n=Xs(i._rawCount),o=new n(a),s=[],l=e.length,u=0,f=e[0],c=i._chunks,h=0;h<a;h++){var p=void 0,d=i.getRawIndex(h);if(l===0)p=r(h);else if(l===1){var v=c[f][d];p=r(v,h)}else{for(var m=0;m<l;m++)s[m]=c[e[m]][d];s[m]=h,p=r.apply(null,s)}p&&(o[u++]=d)}return u<a&&(i._indices=o),i._count=u,i._extent=[],i._updateGetRawIdx(),i},t.prototype.selectRange=function(e){var r=this.clone(),i=r._count;if(!i)return this;var a=ae(e),n=a.length;if(!n)return this;var o=r.count(),s=Xs(r._rawCount),l=new s(o),u=0,f=a[0],c=e[f][0],h=e[f][1],p=r._chunks,d=!1;if(!r._indices){var v=0;if(n===1){for(var m=p[a[0]],g=0;g<i;g++){var y=m[g];(y>=c&&y<=h||isNaN(y))&&(l[u++]=v),v++}d=!0}else if(n===2){for(var m=p[a[0]],x=p[a[1]],_=e[a[1]][0],S=e[a[1]][1],g=0;g<i;g++){var y=m[g],b=x[g];(y>=c&&y<=h||isNaN(y))&&(b>=_&&b<=S||isNaN(b))&&(l[u++]=v),v++}d=!0}}if(!d)if(n===1)for(var g=0;g<o;g++){var w=r.getRawIndex(g),y=p[a[0]][w];(y>=c&&y<=h||isNaN(y))&&(l[u++]=w)}else for(var g=0;g<o;g++){for(var M=!0,w=r.getRawIndex(g),C=0;C<n;C++){var T=a[C],y=p[T][w];(y<e[T][0]||y>e[T][1])&&(M=!1)}M&&(l[u++]=r.getRawIndex(g))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var i=this.clone(e);return this._updateDims(i,e,r),i},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,i){for(var a=e._chunks,n=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<r.length;f++)u[r[f]]=Gt();for(var c=0;c<s;c++){for(var h=e.getRawIndex(c),p=0;p<o;p++)l[p]=a[r[p]][h];l[o]=c;var d=i&&i.apply(null,l);if(d!=null){typeof d!="object"&&(n[0]=d,d=n);for(var f=0;f<d.length;f++){var v=r[f],m=d[f],g=u[v],y=a[v];y&&(y[h]=m),m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}}},t.prototype.lttbDownSample=function(e,r){var i=this.clone([e],!0),a=i._chunks,n=a[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,h,p=new(Xs(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));p[s++]=u;for(var d=1;d<o-1;d+=l){for(var v=Math.min(d+l,o-1),m=Math.min(d+l*2,o),g=(m+v)/2,y=0,x=v;x<m;x++){var _=this.getRawIndex(x),S=n[_];isNaN(S)||(y+=S)}y/=m-v;var b=d,w=Math.min(d+l,o),M=d-1,C=n[u];f=-1,h=b;for(var T=-1,A=0,x=b;x<w;x++){var _=this.getRawIndex(x),S=n[_];if(isNaN(S)){A++,T<0&&(T=_);continue}c=Math.abs((M-g)*(S-C)-(M-x)*(y-C)),c>f&&(f=c,h=_)}A>0&&A<w-b&&(p[s++]=Math.min(T,h),h=Math.max(T,h)),p[s++]=h,u=h}return p[s++]=this.getRawIndex(o-1),i._count=s,i._indices=p,i.getRawIndex=this._getRawIdx,i},t.prototype.minmaxDownSample=function(e,r){for(var i=this.clone([e],!0),a=i._chunks,n=Math.floor(1/r),o=a[e],s=this.count(),l=new(Xs(this._rawCount))(Math.ceil(s/n)*2),u=0,f=0;f<s;f+=n){var c=f,h=o[this.getRawIndex(c)],p=f,d=o[this.getRawIndex(p)],v=n;f+n>s&&(v=s-f);for(var m=0;m<v;m++){var g=this.getRawIndex(f+m),y=o[g];y<h&&(h=y,c=f+m),y>d&&(d=y,p=f+m)}var x=this.getRawIndex(c),_=this.getRawIndex(p);c<p?(l[u++]=x,l[u++]=_):(l[u++]=_,l[u++]=x)}return i._count=u,i._indices=l,i._updateGetRawIdx(),i},t.prototype.downSample=function(e,r,i,a){for(var n=this.clone([e],!0),o=n._chunks,s=[],l=Math.floor(1/r),u=o[e],f=this.count(),c=n._rawExtent[e]=Gt(),h=new(Xs(this._rawCount))(Math.ceil(f/l)),p=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var v=0;v<l;v++){var m=this.getRawIndex(d+v);s[v]=u[m]}var g=i(s),y=this.getRawIndex(Math.min(d+a(s,g)||0,f-1));u[y]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),h[p++]=y}return n._count=p,n._indices=h,n._updateGetRawIdx(),n},t.prototype.each=function(e,r){if(this._count)for(var i=e.length,a=this._chunks,n=0,o=this.count();n<o;n++){var s=this.getRawIndex(n);switch(i){case 0:r(n);break;case 1:r(a[e[0]][s],n);break;case 2:r(a[e[0]][s],a[e[1]][s],n);break;default:for(var l=0,u=[];l<i;l++)u[l]=a[e[l]][s];u[l]=n,r.apply(null,u)}}},t.prototype.getDataExtent=function(e,r){var i=this._chunks[e],a=Gt();if(!i)return a;var n=this.count(),o=!this._indices&&!r;if(o)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=Kp(r),f=u.key,c=l[f];if(c)return c.slice();for(var h=a[0],p=a[1],d=0;d<n;d++){var v=this.getRawIndex(d),m=i[v];(!r||Yp(u,m))&&(m<h&&(h=m),m>p&&(p=m))}return l[f]=[h,p]},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var i=[],a=this._chunks,n=0;n<a.length;n++)i.push(a[n][r]);return i},t.prototype.clone=function(e,r){var i=new t,a=this._chunks,n=e&&ir(e,function(s,l){return s[l]=!0,s},{});if(n)for(var o=0;o<a.length;o++)i._chunks[o]=n[o]?qk(a[o]):a[o];else i._chunks=a;return this._copyCommonProps(i),r||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Q(this._extent),e._rawExtent=Q(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var i=this._indices.length;r=new e(i);for(var a=0;a<i;a++)r[a]=this._indices[a]}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,i,a,n){return $s(r[n],this._dimensions[n])}Zg={arrayRows:e,objectRows:function(r,i,a,n){return $s(r[i],this._dimensions[n])},keyedColumns:e,original:function(r,i,a,n){var o=r&&(r.value==null?r:r.value);return $s(o instanceof Array?o[n]:o,this._dimensions[n])},typedArray:function(r,i,a,n){return r[n]}}})(),t})(),Su=Zk;var dT=(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(),i=!!r.length,a,n;if(Wp(e)){var o=e,s=void 0,l=void 0,u=void 0;if(i){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,n=[f._getVersionSign()]}else s=o.get("data",!0),l=ft(s)?Nr:Tt,n=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},p=q(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=q(c.sourceHeader,h.sourceHeader),v=q(c.dimensions,h.dimensions),m=p!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||v;a=m?[bu(s,{seriesLayoutBy:p,sourceHeader:d,dimensions:v},l)]:[]}else{var g=e;if(i){var y=this._applyTransform(r);a=y.sourceList,n=y.upstreamSignList}else{var x=g.get("source",!0);a=[bu(x,this._getSourceMetaRawOption(),null)],n=[]}}this._setLocalSource(a,n)},t.prototype._applyTransform=function(e){var r=this._sourceHost,i=r.get("transform",!0),a=r.get("fromTransformResult",!0);if(a!=null){var n="";e.length!==1&&hT(n)}var o,s=[],l=[];return E(e,function(u){u.prepareSource();var f=u.getSource(a||0),c="";a!=null&&!f&&hT(c),s.push(f),l.push(u._getVersionSign())}),i?o=uT(i,s,{datasetIndex:r.componentIndex}):a!=null&&(o=[Qw(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 i=e[r];if(i._isDirty()||this._upstreamSignList[r]!==i._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var i=this._getUpstreamSourceManagers();return i[0]&&i[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,i){var a=0,n=this._storeList,o=n[a];o||(o=n[a]={});var s=o[i];if(!s){var l=this._getUpstreamSourceManagers()[0];Wp(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,i):(s=new Su,s.initData(new Gp(r,e.length),e)),o[i]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Wp(e)){var r=Rp(e);return r?[r.getSourceManager()]:[]}else return B(Iw(e),function(i){return i.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,i,a;if(Wp(e))r=e.get("seriesLayoutBy",!0),i=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var n=e;r=n.get("seriesLayoutBy",!0),i=n.get("sourceHeader",!0),a=n.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:i,dimensions:a}},t})();function Wp(t){return t.mainType==="series"}function hT(t){throw new Error(t)}var jk="line-height:1";function vT(t){var e=t.lineHeight;return e==null?jk:"line-height:"+dt(e+"")+"px"}function mT(t,e){var r=t.color||oe.color.tertiary,i=t.fontSize||12,a=t.fontWeight||"400",n=t.color||oe.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+dt(i+"")+"px;color:"+dt(r)+";font-weight:"+dt(a+""),valueStyle:"font-size:"+dt(o+"")+"px;color:"+dt(n)+";font-weight:"+dt(s+"")}:{nameStyle:{fontSize:i,fill:r,fontWeight:a},valueStyle:{fontSize:o,fill:n,fontWeight:s}}}var Jk=[0,10,20,30],Qk=["",`
1
+ "use strict";var BluKavantChartsCommunity=(()=>{var Zd=Object.defineProperty;var uI=Object.getOwnPropertyDescriptor;var fI=Object.getOwnPropertyNames;var cI=Object.prototype.hasOwnProperty;var jd=(t,e)=>{for(var r in e)Zd(t,r,{get:e[r],enumerable:!0})},pI=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of fI(e))!cI.call(t,a)&&a!==r&&Zd(t,a,{get:()=>e[a],enumerable:!(i=uI(e,a))||i.enumerable});return t};var hI=t=>pI(Zd({},"__esModule",{value:!0}),t);var a5={};jd(a5,{createBarChart:()=>FO,createDoughnutChart:()=>YO,createHeatmap:()=>QO,createLineChart:()=>UO,createPieChart:()=>GO,createRadarChart:()=>qO,createScatterChart:()=>$O,createSparkline:()=>nI});function Qd(t){return t?["#a16aff","#00cfff","#ff2b91","#ff8a00","#36e377","#e13dff","#4285ff","#ff4056"]:["#7020ff","#0094ff","#ff006e","#ff6a00","#00b94f","#c000ff","#004fff","#ff1738"]}var dI=["Default","Primary","Secondary","Success","Processing","Warning","Error","Danger","Magenta","Red","Volcano","Orange","Gold","Lime","Green","Cyan","Blue","GeekBlue","Purple"],vI={Default:[["#f5f5f5","#000000","#1d1d1d"],["#272727","rgba(255, 255, 255, 0.95)","#dfdfdf"]],Primary:[["#eef2ff","#4f46e5","#4338ca"],["#282445","#8070ed","#b6acff"]],Secondary:[["#e2e8f0","#475569","#334155"],["#2b3240","#526077","#d6dce5"]],Success:[["#f6ffed","#52c41a","#2d6c0e"],["#162312","#49aa19","#73be4e"]],Processing:[["#e6f4ff","#2681ff","#1054b5"],["#111a2c","#145ec6","#78a7eb"]],Warning:[["#fffbe6","#faad14","#7d560a"],["#2b2111","#d89614","#dda535"]],Error:[["#fff2f0","#ff4d4f","#a33133"],["#2c1618","#dc4446","#ea8d8e"]],Danger:[["#fff2f0","#ff4d4f","#a33133"],["#2c1618","#dc4446","#ea8d8e"]],Magenta:[["#fff0f6","#ed409e","#a9196d"],["#291321","#cf3a8c","#e984b9"]],Red:[["#fff1f0","#e4202a","#b4111e"],["#2a1215","#cd1f28","#f08485"]],Volcano:[["#fff2e8","#fa541c","#aa2d0a"],["#2b1611","#d84a1b","#ed8e68"]],Orange:[["#fff7e6","#fa8c16","#904905"],["#2b1d11","#d87a16","#e89b3e"]],Gold:[["#fffbe6","#faad14","#835404"],["#2b2111","#d89614","#e8b339"]],Lime:[["#fcffe6","#a0d911","#486803"],["#1f2611","#8bbb11","#a9d134"]],Green:[["#f6ffed","#52c41a","#276d09"],["#162312","#49aa19","#6bbf3b"]],Cyan:[["#e6fffb","#13c2c2","#06686c"],["#112123","#13a8a8","#33bcb7"]],Blue:[["#e6f4ff","#2681ff","#0851c8"],["#111a2c","#145ec6","#6fa8ee"]],GeekBlue:[["#f0f5ff","#2f54eb","#1d39c4"],["#131629","#2b4acb","#89a0ea"]],Purple:[["#f9f0ff","#722ed1","#531dab"],["#1a1325","#642ab5","#b593df"]]},ka=t=>typeof t=="string"&&dI.includes(t),Jo=t=>ka(t)||typeof t=="string"&&/^#(?:[\da-f]{3}|[\da-f]{4}|[\da-f]{6}|[\da-f]{8})$/i.test(t);function ev(t,e,r=()=>""){let i=vI[t][e?1:0],a=t.toLowerCase();return{soft:r(`--bluui-color-${a}-soft`).trim()||i[0],solid:r(`--bluui-color-${a}-solid`).trim()||i[1],text:r(`--bluui-color-${a}-text`).trim()||i[2]}}function Fr(t,e,r,i){return ka(t)?ev(t,r,i).solid:t||e}function Jd(t){if(t.startsWith("rgb"))return t.match(/[\d.]+/g).slice(0,3).map(Number);let e=t.slice(1),r=e.length<5?e.slice(0,3).split("").map(i=>i+i).join(""):e.slice(0,6);return[0,2,4].map(i=>parseInt(r.slice(i,i+2),16))}function za(t,e){let r=Math.max(0,Math.min(1,e))*(t.length-1),i=Math.min(Math.floor(r),t.length-2),a=r-i,n=Jd(t[i]),o=Jd(t[i+1]);return`rgb(${n.map((s,l)=>Math.round(s+(o[l]-s)*a)).join(",")})`}function at(t){let e=Jd(t).map(i=>{let a=i/255;return a<=.04045?a/12.92:((a+.055)/1.055)**2.4}),r=e[0]*.2126+e[1]*.7152+e[2]*.0722;return(r+.05)/.0656>=4.5?"#182230":1.05/(r+.05)>=4.5?"#fff":"#000"}var Dt=Object.freeze({records:1e4,observations:1e4,treeNodes:2e3,treeDepth:64,flowNodes:1e3,flowLinks:5e3,mapFeatures:5e3,mapCoordinates:25e4,mapBytes:8e6,text:1e4});function Mi(t){return typeof t=="number"&&Number.isFinite(t)&&Math.abs(t)<=Number.MAX_SAFE_INTEGER}function vr(t,e,r=Dt.records){if(!Array.isArray(t)||t.length>r)throw new Error(`${e} must be a list with at most ${r} records.`)}function Qt(t){return typeof t=="string"&&t.length<=Dt.text}function W(t,e){if(!t)throw new Error(e)}function Qo(t,e){vr(t,e);let r=new Set;for(let i of t)W(i&&Qt(i.Key)&&i.Key.length>0&&Qt(i.Label),`${e} require a non-empty Key and a Label within the text limit.`),W(!r.has(i.Key),`${e} contain a duplicate key: ${i.Key}.`),r.add(i.Key);return r}function Tl(t){return t===null||Mi(t)}function Ef(t){W(t.Height===void 0||Number.isFinite(t.Height)&&t.Height>=160&&t.Height<=1e3,"Height must be between 160 and 1000 pixels."),W(t.ValueFormat===void 0||["Currency","Number","Percent"].includes(t.ValueFormat),"Invalid ValueFormat.");for(let e of["UseCustomPrecision","ShowHeader","ShowToolbar","ShowLegend","LegendShowValues","LegendShowPercentages","ShowTooltip","ShowLabels","ShowDataTable","ShowPatterns","EnableSelection","EnableAnimation","IsLoading"])W(t[e]===void 0||typeof t[e]=="boolean",`${e} must be a boolean.`);for(let e of["AccessibleLabel","ExtendedClass","ResetKey","Title","Description","EmptyMessage","ExportFootnote","Locale","CurrencyCode"])W(t[e]===void 0||Qt(t[e]),`${e} must be text within the text limit.`);W(t.LegendStyle===void 0||["Standard","ValueList","Compact","SummaryCards"].includes(t.LegendStyle),"Invalid LegendStyle."),W(t.LegendPosition===void 0||["Top","Left","Right","Bottom"].includes(t.LegendPosition),"Invalid LegendPosition."),W(t.DecimalPlaces===void 0||Number.isInteger(t.DecimalPlaces)&&t.DecimalPlaces>=0&&t.DecimalPlaces<=12,"DecimalPlaces must be an integer from 0 to 12."),W(t.Messages===void 0||!!t.Messages&&typeof t.Messages=="object"&&!Array.isArray(t.Messages)&&Object.keys(t.Messages).length<=100&&Object.values(t.Messages).every(Qt),"Messages must contain plain text translations."),new Intl.NumberFormat(t.Locale||"en-US",t.ValueFormat==="Currency"?{style:"currency",currency:t.CurrencyCode||"USD"}:{})}function t_(t){Ef(t);let e=Qo(t.Categories,"Categories");W(t.SelectedKey==null||e.has(t.SelectedKey),"SelectedKey must match a category."),W(t.BarLayout===void 0||["Stacked","Grouped"].includes(t.BarLayout),"Invalid BarLayout."),W(t.SmoothLines===void 0||typeof t.SmoothLines=="boolean","SmoothLines must be a boolean."),vr(t.Series,"Series"),W(t.Categories.length*t.Series.length<=Dt.observations,"Too many chart observations. Aggregate the data first.");let r=new Set;for(let i of t.Series)W(i&&Qt(i.Key)&&i.Key.length&&!r.has(i.Key),"Each series needs a unique, non-empty Key."),r.add(i.Key),W(Qt(i.Name)&&["Bar","Line"].includes(i.Type),"Each series needs a Name and a Bar or Line Type."),W(Array.isArray(i.Values)&&i.Values.length===t.Categories.length,`${i.Key}: Values must match the category count.`),W(i.Values.every(Tl),`${i.Key}: Values must be finite numbers or null.`),W(i.Color===void 0||Jo(i.Color),"Series Color must be a ComponentColor or hex color."),W(i.IsDashed===void 0||typeof i.IsDashed=="boolean","IsDashed must be a boolean.")}function r_(t){Ef(t);let e=Qo(t.XCategories,"XCategories"),r=Qo(t.YCategories,"YCategories");vr(t.Cells,"Cells"),W(e.size*r.size<=Dt.observations,"Too many heatmap positions. Aggregate the data first.");let i=new Set,a=new Set;for(let n of t.Cells){W(n&&typeof n.Key=="string"&&n.Key.length&&!i.has(n.Key),"Each cell needs a unique, non-empty Key."),W(e.has(n.XKey)&&r.has(n.YKey),`${n.Key}: XKey and YKey must match category keys.`);let o=JSON.stringify([n.XKey,n.YKey]);W(!a.has(o),"Only one cell may occupy each X/Y position."),W(Tl(n.Value),`${n.Key}: Value must be a finite number or null.`),a.add(o),i.add(n.Key)}W(t.SelectedKey==null||i.has(t.SelectedKey),"SelectedKey must match a cell."),W(t.ColorScale===void 0||ka(t.ColorScale)||["Automatic","Teal","Diverging"].includes(t.ColorScale),"Invalid ColorScale."),W(t.MinValue===void 0||Number.isFinite(t.MinValue),"MinValue must be finite."),W(t.MaxValue===void 0||Number.isFinite(t.MaxValue),"MaxValue must be finite."),W(t.MinValue===void 0||t.MaxValue===void 0||t.MinValue<t.MaxValue,"MinValue must be less than MaxValue.")}function H(t){return t.replace(/[&<>"']/g,e=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[e])}function oi(t,e,r="Label"){vr(t,e);let i=new Set;for(let a of t)W(a&&Qt(a.Key)&&a.Key.length&&!i.has(a.Key),`${e} require unique, non-empty keys.`),W(!r||Qt(a[r]),`${a.Key}: ${r} must be text within the text limit.`),W(a.Color===void 0||Jo(a.Color),`${a.Key}: Color must be a shared ComponentColor or hex color.`),i.add(a.Key);return i}var Hr=Mi;function Af(t){return t===null||Hr(t)&&t>=0}function er(t,e,r){W(t[e]===void 0||r.includes(t[e]),`Invalid ${e}. Choose ${r.join(", ")}.`)}function Mf(t){W(t?.type==="FeatureCollection"&&Array.isArray(t.features)&&t.features.length>0,"GeoJSON must be a non-empty FeatureCollection."),vr(t.features,"Map features",Dt.mapFeatures);let e=0,r=new Set;t.features.forEach(i=>{W(i?.type==="Feature"&&typeof i.properties?.name=="string"&&i.properties.name.length&&!r.has(i.properties.name),"Each map feature needs a unique properties.name region key."),r.add(i.properties.name),W(["Polygon","MultiPolygon"].includes(i.geometry?.type),"Map geometry must be Polygon or MultiPolygon.");let a=i.geometry.type==="Polygon"?[i.geometry.coordinates]:i.geometry.coordinates;W(Array.isArray(a)&&a.length>0,"Map polygons must contain coordinates.");for(let n of a){W(Array.isArray(n)&&n.length>0,"Each polygon needs rings.");for(let o of n)W(Array.isArray(o)&&o.length>=4,"Each polygon ring needs at least four coordinates."),e+=o.length,W(e<=Dt.mapCoordinates,"Map has too many coordinates. Use a simplified boundary file."),o.forEach(s=>W(Array.isArray(s)&&s.length>=2&&Hr(s[0])&&Hr(s[1])&&Math.abs(s[0])<=180&&Math.abs(s[1])<=90,"Map coordinates must be longitude/latitude in degrees.")),W(o[0][0]===o.at(-1)[0]&&o[0][1]===o.at(-1)[1],"Polygon rings must close.")}})}function tv(t){return typeof t=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(t)&&Number.isFinite(Date.parse(t+"T00:00:00Z"))&&new Date(t+"T00:00:00Z").toISOString().slice(0,10)===t}function i_(t,e){Ef(e),"Series"in e&&(vr(e.Series,"Series"),vr(e.Categories,"Categories"),W(e.Series.length*e.Categories.length<=Dt.observations,"Too many chart observations. Aggregate the data first."));for(let r of["ShowArea","Nested","Bubble","Drilldown","ShowConversion","Roam"])W(e[r]===void 0||typeof e[r]=="boolean",`${r} must be a boolean.`);if(t==="radar"){let r=e;Qo(r.Categories,"Categories"),W(r.Categories.length===0||r.Categories.length>=3&&r.Categories.length<=12,"Radar needs 3\u201312 categories, or an empty array for an empty state."),oi(r.Series,"Series"),r.Categories.forEach(i=>W(i.Max===void 0||Hr(i.Max)&&i.Max>0,`${i.Key}: Max must be a positive number.`)),r.Series.forEach(i=>{W(Array.isArray(i.Values)&&i.Values.length===r.Categories.length&&i.Values.every(Af),`${i.Key}: Values must match categories and contain non-negative numbers or null.`),i.Values.forEach((a,n)=>W(a===null||r.Categories[n].Max===void 0||a<=r.Categories[n].Max,`${i.Key}: Value exceeds ${r.Categories[n].Label} Max.`))}),er(r,"GridShape",["Polygon","Circle"]),W(r.SplitNumber===void 0||Number.isInteger(r.SplitNumber)&&r.SplitNumber>=2&&r.SplitNumber<=8,"SplitNumber must be an integer from 2 to 8."),W(r.ShowAxisBounds===void 0||typeof r.ShowAxisBounds=="boolean","ShowAxisBounds must be Boolean.")}else if(["line","bar","polar"].includes(t)){let r=e;Qo(r.Categories,"Categories"),oi(r.Series,"Series"),r.Series.forEach(i=>{W(Array.isArray(i.Values)&&i.Values.length===r.Categories.length&&i.Values.every(Tl),`${i.Key}: Values must match categories and contain finite numbers or null.`),r.Stacking==="Percent"&&W(i.Values.every(a=>a===null||a>=0),"Percentage stacks require non-negative values.")}),er(r,"Orientation",["Vertical","Horizontal"]),er(r,"Stacking",["None","Stacked","Percent"]),er(r,"LineStyle",["Straight","Smooth","Step"]),er(r,"PolarType",["Bar","Line"])}else if(["pie","doughnut","nightingale","funnel"].includes(t)){let r=e;if(oi(r.Items,"Items"),r.Items.forEach(i=>W(Af(i.Value),`${i.Key}: Value must be non-negative or null.`)),t!=="funnel"){let i=oi(r.Rings||[],"Rings");r.Items.forEach(a=>W(!a.RingKey||i.has(a.RingKey),`${a.Key}: RingKey must match a ring.`)),r.Nested&&(W(i.size>0,"Nested charts need Rings."),r.Items.forEach(a=>W(a.RingKey&&i.has(a.RingKey),`${a.Key}: nested items need RingKey.`))),er(r,"Shape",["Full","Half"]),er(r,"LabelPosition",["Outside","Inside"]),er(r,"RoseMode",["Area","Radius"]),W(r.InnerRadius===void 0||Hr(r.InnerRadius)&&r.InnerRadius>=0&&r.InnerRadius<=75,"InnerRadius must be 0\u201375 percent."),W(r.CenterLabel===void 0||typeof r.CenterLabel=="string","CenterLabel must be text.")}else er(e,"Sort",["Input","Descending","Ascending"])}else if(t==="calendar-heatmap"){let r=e;W(tv(r.RangeStart)&&tv(r.RangeEnd),"RangeStart and RangeEnd must be real dates in YYYY-MM-DD format.");let i=(Date.parse(r.RangeEnd)-Date.parse(r.RangeStart))/864e5;W(i>=0&&i<=365,"Choose a calendar range of 1\u2013366 days."),oi(r.Items,"Items");let a=new Set;r.Items.forEach(n=>{W(tv(n.Date),`${n.Key}: Date must be a real YYYY-MM-DD date.`),W(n.Date>=r.RangeStart&&n.Date<=r.RangeEnd,`${n.Key}: Date must be within the calendar range.`),W(!a.has(n.Date),"Use one item per date. Aggregate observations before passing the data."),W(Af(n.Value),`${n.Key}: Value must be non-negative or null.`),a.add(n.Date)}),er(r,"FirstDay",["Monday","Sunday"]),W(r.ColorScale===void 0||r.ColorScale==="Automatic"||Jo(r.ColorScale),"Invalid ColorScale.");for(let n of["ShowMonthLabels","ShowDayLabels"])W(r[n]===void 0||typeof r[n]=="boolean",`${n} must be a boolean.`)}else if(t==="scatter"){let r=e;oi(r.Points,"Points"),r.Points.forEach(i=>{W(Hr(i.X)&&Hr(i.Y),`${i.Key}: X and Y must be finite numbers.`),W(i.Size===void 0||Hr(i.Size)&&i.Size>=0,`${i.Key}: Size must be non-negative.`),W(i.Group===void 0||typeof i.Group=="string","Group must be text.")});for(let i of["XLabel","YLabel"])W(r[i]===void 0||typeof r[i]=="string",`${i} must be text.`)}else if(t==="treemap"){let r=e,i=oi(r.Nodes,"Nodes");r.Nodes.forEach(o=>{W(o.ParentKey===null||typeof o.ParentKey=="string"&&i.has(o.ParentKey),`${o.Key}: ParentKey must be null or match a node.`),W(Af(o.Value),`${o.Key}: Value must be non-negative or null.`)});let a=Lf(r.Nodes),n=new Set(r.Nodes.map(o=>o.ParentKey));r.Nodes.forEach(o=>{n.has(o.Key)&&o.Value!==null&&W(a.get(o.Key)!==null&&Math.abs(a.get(o.Key)-o.Value)<1e-6,`${o.Key}: branch Value must equal its leaf total, or use null to calculate it.`)})}else if(t==="sankey"){let r=e,i=oi(r.Nodes,"Nodes");oi(r.Links,"Links",""),vr(r.Nodes,"Flow nodes",Dt.flowNodes),vr(r.Links,"Flow links",Dt.flowLinks);let a=new Map(r.Nodes.map(u=>[u.Key,[]]));r.Links.forEach(u=>{W(i.has(u.SourceKey)&&i.has(u.TargetKey),`${u.Key}: link endpoints must match node keys.`),W(Hr(u.Value)&&u.Value>=0,`${u.Key}: Value must be non-negative.`),a.get(u.SourceKey).push(u.TargetKey)});let n=new Map,o=new Map;for(let u of r.Links)n.set(u.TargetKey,(n.get(u.TargetKey)||0)+u.Value),o.set(u.SourceKey,(o.get(u.SourceKey)||0)+u.Value);W([...n.values(),...o.values()].every(Mi),"Flow totals exceed the supported numeric range.");let s=new Map(r.Nodes.map(u=>[u.Key,0]));r.Links.forEach(u=>s.set(u.TargetKey,s.get(u.TargetKey)+1));let l=[...s].filter(([,u])=>!u).map(([u])=>u);for(let u=0;u<l.length;u++)for(let f of a.get(l[u])){let c=s.get(f)-1;s.set(f,c),c||l.push(f)}W(l.length===i.size,"Sankey links cannot contain cycles."),er(r,"Orientation",["Horizontal","Vertical"]),er(r,"NodeAlign",["Justify","Left","Right"]),W(r.Links.every(u=>!i.has(u.Key)),"Link keys must be distinct from node keys.")}else{let r=e;oi(r.Regions,"Regions"),oi(r.Locations,"Locations"),r.Regions.forEach(i=>W(Tl(i.Value),`${i.Key}: Value must be finite or null.`)),r.Locations.forEach(i=>{W(Hr(i.Longitude)&&Math.abs(i.Longitude)<=180&&Hr(i.Latitude)&&Math.abs(i.Latitude)<=90,`${i.Key}: invalid longitude/latitude.`),W(Hr(i.Value)&&i.Value>=0,`${i.Key}: Value must be non-negative.`)}),W(r.Locations.every(i=>!r.Regions.some(a=>a.Key===i.Key)),"Location and region keys must be distinct."),er(r,"Map",["World","US","Custom"]),er(r,"MapView",["Mainland","Full"]),W(r.MapURL===void 0||Qt(r.MapURL)&&!!r.MapURL,"MapURL must be non-empty text."),W(!r.MapURL||!r.GeoJSON,"Supply either MapURL or GeoJSON, not both."),W(!r.MapURL||r.Map==="Custom","MapURL requires Map Custom."),er(r,"MapMode",["Regions","Locations","Combined"]),W(r.ColorScale===void 0||r.ColorScale==="Automatic"||Jo(r.ColorScale),"Invalid ColorScale."),r.GeoJSON!==void 0&&Mf(r.GeoJSON),r.Map==="Custom"&&(W(r.GeoJSON||r.MapURL,"Custom maps need GeoJSON or MapURL."),r.GeoJSON&&es(r,r.GeoJSON))}W(e.SelectedKey==null||tr(t,e).some(r=>r.Key===e.SelectedKey),"SelectedKey must match an input key.")}function es(t,e){let r=new Set(e.features.map(i=>i.properties.name));t.Regions.forEach(i=>W(r.has(i.Key),`Region ${i.Key} does not exist in this map. Use its properties.name key.`))}function Lf(t){vr(t,"Tree nodes",Dt.treeNodes);let e=new Map,r=new Map;for(let a of t){let n=e.get(a.ParentKey)||[];n.push(a),e.set(a.ParentKey,n)}let i=(e.get(null)||[]).map(a=>({n:a,depth:1}));for(let a=0;a<i.length;a++){let{n,depth:o}=i[a];W(o<=Dt.treeDepth,"Tree exceeds maximum depth.");for(let s of e.get(n.Key)||[])i.push({n:s,depth:o+1});W(i.length<=t.length,"Tree nodes cannot contain cycles.")}W(i.length===t.length,"Tree nodes cannot contain cycles or disconnected parents.");for(let a=i.length-1;a>=0;a--){let n=i[a].n,o=e.get(n.Key)||[],s=o.map(u=>r.get(u.Key)).filter(u=>u!=null),l=o.length?s.length?s.reduce((u,f)=>u+f,0):null:n.Value;W(l===null||Mi(l),"Tree total exceeds the supported numeric range."),r.set(n.Key,l)}return r}function tr(t,e){if(t==="radar"){let i=e;return i.Series.flatMap(a=>i.Categories.map((n,o)=>({Key:a.Key,Label:n.Label,Value:a.Values[o],CategoryKey:n.Key,SeriesKey:a.Key,SeriesName:a.Label})))}if(["line","bar","polar"].includes(t)){let i=e;return i.Series.flatMap(a=>i.Categories.map((n,o)=>({Key:n.Key,Label:n.Label,Value:a.Values[o],SeriesKey:a.Key,SeriesName:a.Label})))}if(["pie","doughnut","nightingale","funnel"].includes(t))return e.Items.map(i=>({Key:i.Key,Label:i.Label,Value:i.Value,RingKey:i.RingKey}));if(t==="calendar-heatmap")return e.Items.map(i=>({...i}));if(t==="scatter")return e.Points.map(i=>({...i,Value:i.Y}));if(t==="treemap"){let i=e,a=Lf(i.Nodes);return i.Nodes.map(n=>({Key:n.Key,Label:n.Label,Value:a.get(n.Key),ParentKey:n.ParentKey}))}if(t==="sankey"){let i=e;return[...i.Nodes.map(a=>({Key:a.Key,Label:a.Label,PointType:"Node",Value:Math.max(i.Links.filter(n=>n.SourceKey===a.Key).reduce((n,o)=>n+o.Value,0),i.Links.filter(n=>n.TargetKey===a.Key).reduce((n,o)=>n+o.Value,0))})),...i.Links.map(a=>({Key:a.Key,Label:`${i.Nodes.find(n=>n.Key===a.SourceKey)?.Label} \u2192 ${i.Nodes.find(n=>n.Key===a.TargetKey)?.Label}`,Value:a.Value,SourceKey:a.SourceKey,TargetKey:a.TargetKey,PointType:"Link"}))]}let r=e;return[...r.Regions.map(i=>({...i,PointType:"Region"})),...r.Locations.map(i=>({...i,PointType:"Location"}))]}var a_={Title:"Chart",Description:"",Height:320,ValueFormat:"Number",CurrencyCode:"USD",Locale:"en-US",UseCustomPrecision:!1,DecimalPlaces:2,AccessibleLabel:"",ExtendedClass:"",ResetKey:"",Messages:{},ShowHeader:!0,ShowToolbar:!0,ShowLegend:!0,LegendStyle:"Standard",LegendPosition:"Top",LegendShowValues:!0,LegendShowPercentages:!1,ShowTooltip:!0,ShowLabels:!1,ShowDataTable:!0,ShowPatterns:!1,EnableSelection:!0,EnableAnimation:!0,IsLoading:!1,EmptyMessage:"No data to display",SelectedKey:null,ExportFootnote:"BluKavantUI Charts"};function Ie(t,e,r=!1){return t===null?e.Messages?.NoData??"No data":new Intl.NumberFormat(e.Locale||"en-US",{style:e.ValueFormat==="Currency"?"currency":e.ValueFormat==="Percent"?"percent":"decimal",currency:e.CurrencyCode||"USD",notation:r?"compact":"standard",...r?{maximumFractionDigits:1}:e.UseCustomPrecision?{minimumFractionDigits:e.DecimalPlaces??2,maximumFractionDigits:e.DecimalPlaces??2}:e.ValueFormat==="Currency"?{}:{maximumFractionDigits:12}}).format(t)}function n_(t,e){return t===null?"No data":e??String(t)}function o_(t,e,r=0){let i=t.Categories[e],a=t.Series[r];return i&&a?{Key:i.Key,CategoryLabel:i.Label,SeriesKey:a.Key,SeriesName:a.Name,Value:a.Values[e]}:null}function Df(t,e){let r=t.Cells[e];return r?{...r,XLabel:t.XCategories.find(i=>i.Key===r.XKey).Label,YLabel:t.YCategories.find(i=>i.Key===r.YKey).Label}:null}function s_(t){let e=0,r=0;for(let i of t.Cells)i.Value!==null&&(e=Math.min(e,i.Value),r=Math.max(r,i.Value));return e=t.MinValue??e,r=t.MaxValue??r,e>=r&&(t.MaxValue!==void 0?e=r-1:r=e+1),{min:e,max:r}}var mI=3.2;function rv(t){if(t.startsWith("#")){let r=t.slice(1);return r.length<=4&&(r=r.split("").map(i=>i+i).join("")),[0,2,4].map(i=>parseInt(r.slice(i,i+2),16)).concat(r.length===8?parseInt(r.slice(6),16)/255:1)}let e=t.match(/[\d.]+/g)?.map(Number);return e&&e.length>=3?[...e.slice(0,3),e[3]??1]:[24,34,48,1]}function gI(t){return`rgb(${t.slice(0,3).map(e=>Math.round(e)).join(",")})`}function yI(t,e){let r=rv(t),i=rv(e);return gI(r.slice(0,3).map((a,n)=>a*r[3]+i[n]*(1-r[3])))}function l_(t){let e=rv(t).slice(0,3).map(r=>{let i=r/255;return i<=.04045?i/12.92:((i+.055)/1.055)**2.4});return e[0]*.2126+e[1]*.7152+e[2]*.0722}function El(t,e){let r=l_(t),i=l_(e);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}function Ot(t,e,r=mI){let i=yI(t,e);if(El(i,e)>=r)return i;let a=El("#000",e)>=El("#fff",e)?"#000":"#fff",n=Math.min(r,El(a,e)),o=0,s=1;for(let l=0;l<20;l++){let u=(o+s)/2;El(za([i,a],u),e)>=n?s=u:o=u}return za([i,a],s)}function u_(t,e){let r=Ot(t,e,9);return[Ot(za([e,r],.12),e),r]}var Va=t=>["circle","diamond","triangle","rect","roundRect","pin","arrow","emptyCircle","emptyDiamond","emptyTriangle","emptyRect","emptyRoundRect"][t%12],ts=t=>["solid","dashed","dotted"][(t+Math.floor(t/12))%3];function mr(t,e){let r=[{symbol:"rect",symbolSize:0,dashArrayX:[1,0],dashArrayY:[1,8],rotation:0},{symbol:"rect",symbolSize:1,dashArrayX:[1,0],dashArrayY:[1,8],rotation:Math.PI/4},{symbol:"circle",symbolSize:1,dashArrayX:[2,7],dashArrayY:[2,7],rotation:0},{symbol:"rect",symbolSize:1,dashArrayX:[1,0],dashArrayY:[1,8],rotation:-Math.PI/4},{symbol:"rect",symbolSize:1,dashArrayX:[1,0],dashArrayY:[1,6],rotation:0},{symbol:"rect",symbolSize:1,dashArrayX:[3,5],dashArrayY:[3,5],rotation:Math.PI/4},{symbol:"triangle",symbolSize:1,dashArrayX:[4,6],dashArrayY:[4,6],rotation:0},{symbol:"diamond",symbolSize:1,dashArrayX:[4,6],dashArrayY:[4,6],rotation:0},{symbol:"rect",symbolSize:1,dashArrayX:[1,0],dashArrayY:[1,3,1,7],rotation:Math.PI/4},{symbol:"circle",symbolSize:1,dashArrayX:[2,3],dashArrayY:[2,3],rotation:0},{symbol:"rect",symbolSize:1,dashArrayX:[1,0],dashArrayY:[3,4],rotation:-Math.PI/4},{symbol:"rect",symbolSize:1,dashArrayX:[4,4],dashArrayY:[1,5],rotation:0}];return{...r[t%r.length],color:at(e),backgroundColor:"none"}}function rr(t){return{color:t,borderColor:at(t),borderWidth:2,borderType:"solid"}}function Vt(t,e,r=!1,i){return{color:t,opacity:1,borderColor:e,borderWidth:1.5,borderType:"solid",...r?rr(t):{},...i===void 0?{}:{decal:mr(i,t)}}}function Of(t,e,r=8){return({labelRect:i})=>({hideOverlap:!0,dx:Math.max(0,8-i.x)+Math.min(0,t-8-i.x-i.width),dy:Math.max(0,r-i.y)+Math.min(0,e-8-i.y-i.height)})}function f_(t,e,r,i=!1,a=640){let n="line",o=t,s=tr(n,t),l=(C,T)=>o.ShowPatterns?mr(C,T):void 0,u=e.palette,f=(C,T)=>Ot(e.forcedColors?e.text:Fr(C,u[T%u.length],e.dark,e.read),e.surface,n==="line"||n==="radar"||n==="polar"&&o.PolarType==="Line"?4.5:3.2),c=(C,T,M)=>Vt(f(T,M),e.surface,o.SelectedKey===C),p=(C,T)=>s.find(M=>M.Key===C&&(!T||M.SeriesKey===T)),d={data:["line","radar","bar","polar"].includes(n)?o.Series.map(C=>C.Label):n==="scatter"?[...new Set(o.Points.map(C=>C.Group||"Observations"))]:["pie","doughnut","nightingale","funnel"].includes(n)?[...new Set(o.Items.map(C=>C.Label))]:[],show:o.ShowLegend,type:"scroll",top:6,left:10,right:10,itemWidth:24,itemHeight:12,selectedMode:!1,pageTextStyle:{color:e.muted},pageIconColor:e.text,textStyle:{color:e.muted,fontSize:11}},v={show:o.ShowLabels,color:at(e.surface),fontSize:11,backgroundColor:e.surface,padding:[2,3],borderRadius:2},m={show:o.ShowTooltip,confine:!0,enterable:!0,backgroundColor:e.surface,borderColor:e.border,textStyle:{color:e.text,fontSize:12},formatter:C=>{let T=C.data?.point;if(!T)return`${H(C.name||"")}${C.value==null||Number.isNaN(C.value)?" \xB7 No data":""}`;let M=T.Date?`<br/>${H(T.Date)}<br/><strong>${H(Ie(T.Value,o))}</strong>`:T.X!==void 0?`<br/>${H(o.XLabel||"X")}: ${T.X}<br/>${H(o.YLabel||"Y")}: ${T.Y}${T.Size===void 0?"":`<br/>Size: ${T.Size}`}`:`<br/><strong>${H(Ie(T.Value,o))}</strong>`;return`${H(T.SeriesName?`${T.SeriesName} \xB7 ${T.Label}`:T.Label)}${M}${C.data?.conversion?`<br/>${H(C.data.conversion)}`:""}`}},g={backgroundColor:e.surface,color:u.map((C,T)=>f(C,T)),animation:!!o.EnableAnimation&&!i,animationDuration:300,animationDurationUpdate:150,textStyle:{fontFamily:"Inter,system-ui,sans-serif",color:e.text},aria:{enabled:!0,description:`${o.Title}. ${o.Description||""} Exact values and keyboard selection are in the data table.`},tooltip:m},y={axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:e.muted,fontSize:10,hideOverlap:!0},splitLine:{lineStyle:{color:e.border,type:"dashed"}}},x=t,_=x.Stacking==="Percent",b={...y,type:"category",data:x.Categories.map(C=>C.Label),axisLabel:{...y.axisLabel,width:Math.min(n==="polar"?100:140,a*.2),overflow:"truncate"},splitLine:{show:!1}},S={...y,type:"value",max:_?1:void 0,axisLabel:{...y.axisLabel,formatter:C=>_?`${Math.round(C*100)}%`:Ie(C,o,!0)}},w=(n==="bar"||n==="polar"&&x.PolarType!=="Line")&&(n==="polar"||!!x.Stacking&&x.Stacking!=="None"),A=x.Series.map((C,T)=>({id:C.Key,name:C.Label,type:n==="line"||n==="polar"&&x.PolarType==="Line"?"line":"bar",coordinateSystem:n==="polar"?"polar":"cartesian2d",stack:x.Stacking&&x.Stacking!=="None"?"total":void 0,smooth:x.LineStyle==="Smooth",step:x.LineStyle==="Step"?"middle":!1,connectNulls:!1,areaStyle:x.ShowArea?{opacity:.1}:void 0,barMaxWidth:38,symbol:Va(T),symbolSize:8,itemStyle:{...Vt(f(C.Color,T),e.surface),decal:l(T,f(C.Color,T))},lineStyle:{width:2.5,color:f(C.Color,T),type:ts(T)},label:{...v,color:w?at(f(C.Color,T)):at(e.surface),backgroundColor:w?f(C.Color,T):e.surface,position:w?"inside":n==="bar"&&x.Orientation==="Horizontal"?"right":"top",formatter:M=>_?`${Math.round(Number(M.value)*100)}%`:Ie(M.data.point.Value,o,!0)},labelLayout:{hideOverlap:!0},emphasis:{focus:"none",scale:!1},blur:{itemStyle:{opacity:1},lineStyle:{opacity:1},label:{opacity:1}},data:C.Values.map((M,O)=>({value:M===null?null:_?M/(x.Series.reduce((L,D)=>L+(D.Values[O]||0),0)||1):M,point:p(x.Categories[O].Key,C.Key),itemStyle:{...c(x.Categories[O].Key,C.Color,T),decal:l(T,f(C.Color,T))},emphasis:{itemStyle:rr(f(C.Color,T))}}))}));return n==="polar"?{...g,legend:d,polar:{radius:["12%","72%"],center:["50%","55%"]},angleAxis:{...b,startAngle:90},radiusAxis:S,series:A}:{...g,legend:d,grid:{left:14,right:22,top:o.ShowLegend?48:20,bottom:16,containLabel:!0},xAxis:x.Orientation==="Horizontal"?S:b,yAxis:x.Orientation==="Horizontal"?{...b,inverse:!0}:S,series:A}}var iv=function(t,e){return iv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},iv(t,e)};function R(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");iv(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var xI=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),_I=(function(){function t(){this.browser=new xI,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})(),Ua=new _I;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Ua.wxa=!0,Ua.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Ua.worker=!0:!Ua.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Ua.node=!0,Ua.svgSupported=!0):bI(navigator.userAgent,Ua);function bI(t,e){var r=e.browser,i=t.match(/Firefox\/([\d.]+)/),a=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),n=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);i&&(r.firefox=!0,r.version=i[1]),a&&(r.ie=!0,r.version=a[1]),n&&(r.edge=!0,r.version=n[1],r.newEdge=+n[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 ye=Ua;var If=12,av="sans-serif",gr=If+"px "+av,SI=20,CI=100,wI="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function TI(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var i=String.fromCharCode(r+32),a=(t.charCodeAt(r)-SI)/CI;e[i]=a}return e}var EI=TI(wI),St={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,i){if(!t){var a=St.createCanvas();t=a&&a.getContext("2d")}if(t)return e!==i&&(e=t.font=i||gr),t.measureText(r);r=r||"",i=i||gr;var n=/((?:\d+)?\.?\d*)px/.exec(i),o=n&&+n[1]||If,s=0;if(i.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=EI[r[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(t,e,r){var i=new Image;return i.onload=e,i.onerror=r,i.src=t,i},getTime:function(){return Date.now?Date.now():+new Date}};var h_=ir(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),d_=ir(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Ml=Object.prototype.toString,Nf=Array.prototype,AI=Nf.forEach,MI=Nf.filter,ov=Nf.slice,LI=Nf.map,c_=function(){}.constructor,Pf=c_?c_.prototype:null,sv="__proto__",nv=2311,DI=Math.pow(2,53)-1;function Rf(){return nv>=DI&&(nv=0),nv++}function kf(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function ee(t){if(t==null||typeof t!="object")return t;var e=t,r=Ml.call(t);if(r==="[object Array]"){if(!Al(t)){e=[];for(var i=0,a=t.length;i<a;i++)e[i]=ee(t[i])}}else if(d_[r]){if(!Al(t)){var n=t.constructor;if(n.from)e=n.from(t);else{e=new n(t.length);for(var i=0,a=t.length;i<a;i++)e[i]=t[i]}}}else if(!h_[r]&&!Al(t)&&!rs(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==sv&&(e[o]=ee(t[o]))}return e}function Ce(t,e,r){if(!$(e)||!$(t))return r?ee(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==sv){var a=t[i],n=e[i];$(n)&&$(a)&&!V(n)&&!V(a)&&!rs(n)&&!rs(a)&&!p_(n)&&!p_(a)&&!Al(n)&&!Al(a)?Ce(a,n,r):(r||!(i in t))&&(t[i]=ee(e[i]))}return t}function k(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==sv&&(t[r]=e[r]);return t}function v_(t,e,r){t=t||{};for(var i=0;i<r.length;i++){var a=r[i];t[a]=e[a]}return t}function le(t,e,r){for(var i=ie(e),a=0,n=i.length;a<n;a++){var o=i[a];(r?e[o]!=null:t[o]==null)&&(t[o]=e[o])}return t}var I5=St.createCanvas;function pe(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r}return-1}function m_(t,e){var r=t.prototype;function i(){}i.prototype=e.prototype,t.prototype=new i;for(var a in r)r.hasOwnProperty(a)&&(t.prototype[a]=r[a]);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 i=Object.getOwnPropertyNames(e),a=0;a<i.length;a++){var n=i[a];n!=="constructor"&&(r?e[n]!=null:t[n]==null)&&(t[n]=e[n])}else le(t,e,r)}function lt(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function E(t,e,r){if(t&&e)if(t.forEach&&t.forEach===AI)t.forEach(e,r);else if(t.length===+t.length)for(var i=0,a=t.length;i<a;i++)e.call(r,t[i],i,t);else for(var n in t)t.hasOwnProperty(n)&&e.call(r,t[n],n,t)}function F(t,e,r){if(!t)return[];if(!e)return zf(t);if(t.map&&t.map===LI)return t.map(e,r);for(var i=[],a=0,n=t.length;a<n;a++)i.push(e.call(r,t[a],a,t));return i}function ir(t,e,r,i){if(t&&e){for(var a=0,n=t.length;a<n;a++)r=e.call(i,r,t[a],a,t);return r}}function Ue(t,e,r){if(!t)return[];if(!e)return zf(t);if(t.filter&&t.filter===MI)return t.filter(e,r);for(var i=[],a=0,n=t.length;a<n;a++)e.call(r,t[a],a,t)&&i.push(t[a]);return i}function is(t,e,r){if(t&&e){for(var i=0,a=t.length;i<a;i++)if(e.call(r,t[i],i,t))return t[i]}}function ie(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 OI(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return function(){return t.apply(e,r.concat(ov.call(arguments)))}}var oe=Pf&&Z(Pf.bind)?Pf.call.bind(Pf.bind):OI;function ut(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(ov.call(arguments)))}}function V(t){return Array.isArray?Array.isArray(t):Ml.call(t)==="[object Array]"}function Z(t){return typeof t=="function"}function G(t){return typeof t=="string"}function Ll(t){return Ml.call(t)==="[object String]"}function me(t){return typeof t=="number"}function $(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function p_(t){return!!h_[Ml.call(t)]}function ft(t){return!!d_[Ml.call(t)]}function rs(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function as(t){return t.colorStops!=null}function Gr(t){return t!==t}function Ba(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,i=t.length;r<i;r++)if(t[r]!=null)return t[r]}function X(t,e){return t??e}function Or(t,e,r){return t??e??r}function zf(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return ov.apply(t,e)}function ns(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 qe(t,e){if(!t)throw new Error(e)}function Bt(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var g_="__ec_primitive__";function os(t){t[g_]=!0}function Al(t){return t[g_]}var II=(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 ie(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var i in r)r.hasOwnProperty(i)&&e(r[i],i)},t})(),y_=typeof Map=="function";function PI(){return y_?new Map:new II}var NI=(function(){function t(e){var r=V(e);this.data=PI();var i=this;e instanceof t?e.each(a):e&&E(e,a);function a(n,o){r?i.set(n,o):i.set(o,n)}}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(i,a){e.call(r,i,a)})},t.prototype.keys=function(){var e=this.data.keys();return y_?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function te(t){return new NI(t)}function x_(t,e){for(var r=new t.constructor(t.length+e.length),i=0;i<t.length;i++)r[i]=t[i];for(var a=t.length,i=0;i<e.length;i++)r[i+a]=e[i];return r}function Fa(t,e){var r;if(Object.create)r=Object.create(t);else{var i=function(){};i.prototype=t,r=new i}return e&&k(r,e),r}function se(t,e){return t.hasOwnProperty(e)}function Ze(){}var ss=180/Math.PI,P5=Number.EPSILON||Math.pow(2,-52);function Ha(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function __(t){return[t[0],t[1]]}function Vf(t,e,r){return t[0]=e,t[1]=r,t}function lv(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function b_(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function RI(t){return Math.sqrt(kI(t))}function kI(t){return t[0]*t[0]+t[1]*t[1]}function Uf(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function S_(t,e){var r=RI(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function Bf(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Dl=Bf;function zI(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var On=zI;function Ff(t,e,r,i){return t[0]=e[0]+i*(r[0]-e[0]),t[1]=e[1]+i*(r[1]-e[1]),t}function Ft(t,e,r){var i=e[0],a=e[1];return t[0]=r[0]*i+r[2]*a+r[4],t[1]=r[1]*i+r[3]*a+r[5],t}function oa(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function sa(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var ls=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),VI=(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 ls(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var i=e.offsetX,a=e.offsetY,n=i-this._x,o=a-this._y;this._x=i,this._y=a,r.drift(n,o,e),this.handler.dispatchToElement(new ls(r,e),"drag",e.event);var s=this.handler.findHover(i,a,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new ls(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new ls(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new ls(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new ls(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),C_=VI;var UI=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,i,a){this._$handlers||(this._$handlers={});var n=this._$handlers;if(typeof r=="function"&&(a=i,i=r,r=null),!i||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),n[e]||(n[e]=[]);for(var s=0;s<n[e].length;s++)if(n[e][s].h===i)return this;var l={h:i,query:r,ctx:a||this,callAtLast:i.zrEventfulCallAtLast},u=n[e].length-1,f=n[e][u];return f&&f.callAtLast?n[e].splice(u,0,l):n[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 i=this._$handlers;if(!i)return this;if(!e)return this._$handlers={},this;if(r){if(i[e]){for(var a=[],n=0,o=i[e].length;n<o;n++)i[e][n].h!==r&&a.push(i[e][n]);i[e]=a}i[e]&&i[e].length===0&&delete i[e]}else delete i[e];return this},t.prototype.trigger=function(e){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var a=this._$handlers[e],n=this._$eventProcessor;if(a)for(var o=r.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(n&&n.filter&&u.query!=null&&!n.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 n&&n.afterTrigger&&n.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var a=this._$handlers[e],n=this._$eventProcessor;if(a)for(var o=r.length,s=r[o-1],l=a.length,u=0;u<l;u++){var f=a[u];if(!(n&&n.filter&&f.query!=null&&!n.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 n&&n.afterTrigger&&n.afterTrigger(e),this},t})(),ar=UI;var BI=Math.log(2);function uv(t,e,r,i,a,n){var o=i+"-"+a,s=t.length;if(n.hasOwnProperty(o))return n[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~a)/BI);return t[r][l]}for(var u=i|1<<r,f=r+1;i&1<<f;)f++;for(var c=0,p=0,h=0;p<s;p++){var d=1<<p;d&a||(c+=(h%2?-1:1)*t[r][p]*uv(t,e-1,f,u,a|d,n),h++)}return n[o]=c,c}function fv(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]]],i={},a=uv(r,8,0,0,0,i);if(a!==0){for(var n=[],o=0;o<8;o++)for(var s=0;s<8;s++)n[s]==null&&(n[s]=0),n[s]+=((o+s)%2?-1:1)*uv(r,7,o===0?1:0,1<<o,1<<s,i)/a*e[o];return function(l,u,f){var c=u*n[6]+f*n[7]+1;l[0]=(u*n[0]+f*n[1]+n[2])/c,l[1]=(u*n[3]+f*n[4]+n[5])/c}}}var Hf="___zrEVENTSAVED",cv=[];function w_(t,e,r,i,a){return Gf(cv,e,i,a,!0)&&Gf(t,r,cv[0],cv[1])}function T_(t,e){t&&r(t),e&&r(e);function r(i){var a=i[Hf];a&&(a.clearMarkers&&a.clearMarkers(),delete i[Hf])}}function Gf(t,e,r,i,a){if(e.getBoundingClientRect&&ye.domSupported&&!pv(e)){var n=e[Hf]||(e[Hf]={}),o=FI(e,n),s=HI(o,n,a);if(s)return s(t,r,i),!0}return!1}function FI(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var i=["left","right"],a=["top","bottom"],n=0;n<4;n++){var o=document.createElement("div"),s=o.style,l=n%2,u=(n>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",a[u]+":0",i[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){E(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function HI(t,e,r){for(var i=r?"invTrans":"trans",a=e[i],n=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=t[u].getBoundingClientRect(),c=2*u,p=f.left,h=f.top;o.push(p,h),l=l&&n&&p===n[c]&&h===n[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[i]=r?fv(s,o):fv(o,s))}function pv(t){return t.nodeName.toUpperCase()==="CANVAS"}var GI=/([&<>"'])/g,KI={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function dt(t){return t==null?"":(t+"").replace(GI,function(e,r){return KI[r]})}var YI=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,hv=[],WI=ye.browser.firefox&&+ye.browser.version.split(".")[0]<39;function Kf(t,e,r,i){return r=r||{},i?E_(t,e,r):WI&&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):E_(t,e,r),r}function E_(t,e,r){if(ye.domSupported&&t.getBoundingClientRect){var i=e.clientX,a=e.clientY;if(pv(t)){var n=t.getBoundingClientRect();r.zrX=i-n.left,r.zrY=a-n.top;return}else if(Gf(hv,t,i,a)){r.zrX=hv[0],r.zrY=hv[1];return}}r.zrX=r.zrY=0}function Yf(t){return t||window.event}function yr(t,e,r){if(e=Yf(e),e.zrX!=null)return e;var i=e.type,a=i&&i.indexOf("touch")>=0;if(a){var o=i!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Kf(t,o,e,r)}else{Kf(t,e,e,r);var n=$I(e);e.zrDelta=n?n/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&YI.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function $I(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,i=t.deltaY;if(r==null||i==null)return e;var a=Math.abs(i!==0?i:r),n=i>0?-1:i<0?1:r>0?-1:1;return 3*a*n}function A_(t,e,r,i){t.addEventListener(e,r,i)}function M_(t,e,r,i){t.removeEventListener(e,r,i)}var Ka=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};var D_=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,i){return this._doTrack(e,r,i),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,i){var a=e.touches;if(a){for(var n={points:[],touches:[],target:r,event:e},o=0,s=a.length;o<s;o++){var l=a[o],u=Kf(i,l,{});n.points.push([u.zrX,u.zrY]),n.touches.push(l)}this._track.push(n)}},t.prototype._recognize=function(e){for(var r in dv)if(dv.hasOwnProperty(r)){var i=dv[r](this._track,e);if(i)return i}},t})();function L_(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function XI(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var dv={pinch:function(t,e){var r=t.length;if(r){var i=(t[r-1]||{}).points,a=(t[r-2]||{}).points||i;if(a&&a.length>1&&i&&i.length>1){var n=L_(i)/L_(a);!isFinite(n)&&(n=1),e.pinchScale=n;var o=XI(i);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function nr(){return[1,0,0,1,0,0]}function la(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Ol(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 Ya(t,e,r){var i=e[0]*r[0]+e[2]*r[1],a=e[1]*r[0]+e[3]*r[1],n=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]=i,t[1]=a,t[2]=n,t[3]=o,t[4]=s,t[5]=l,t}function Il(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 us(t,e,r,i){i===void 0&&(i=[0,0]);var a=e[0],n=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]=a*c+s*f,t[1]=-a*f+s*c,t[2]=n*c+l*f,t[3]=-n*f+c*l,t[4]=c*(o-i[0])+f*(u-i[1])+i[0],t[5]=c*(u-i[1])-f*(o-i[0])+i[1],t}function O_(t,e,r){var i=r[0],a=r[1];return t[0]=e[0]*i,t[1]=e[1]*a,t[2]=e[2]*i,t[3]=e[3]*a,t[4]=e[4]*i,t[5]=e[5]*a,t}function Kr(t,e){var r=e[0],i=e[2],a=e[4],n=e[1],o=e[3],s=e[5],l=r*o-n*i;return l?(l=1/l,t[0]=o*l,t[1]=-n*l,t[2]=-i*l,t[3]=r*l,t[4]=(i*s-o*a)*l,t[5]=(n*a-r*s)*l,t):null}var qI=(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,i=this.y-e.y;return Math.sqrt(r*r+i*i)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,i=this.y-e.y;return r*r+i*i},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,i=this.y;return this.x=e[0]*r+e[2]*i+e[4],this.y=e[1]*r+e[3]*i+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,i){e.x=r,e.y=i},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,i){e.x=r.x+i.x,e.y=r.y+i.y},t.sub=function(e,r,i){e.x=r.x-i.x,e.y=r.y-i.y},t.scale=function(e,r,i){e.x=r.x*i,e.y=r.y*i},t.scaleAndAdd=function(e,r,i,a){e.x=r.x+i.x*a,e.y=r.y+i.y*a},t.lerp=function(e,r,i,a){var n=1-a;e.x=n*r.x+a*i.x,e.y=n*r.y+a*i.y},t})(),ge=qI;var kn=Math.min,fs=Math.max,gv=Math.abs,I_=["x","y"],ZI=["width","height"],In=new ge,Pn=new ge,Nn=new ge,Rn=new ge,Ir=xv(),Nl=Ir.minTv,yv=Ir.maxTv,Rl=[0,0],ua=(function(){function t(e,r,i,a){vv(this,e,r,i,a)}return t.set=function(e,r,i,a,n){return a<0&&(r=r+a,a=-a),n<0&&(i=i+n,n=-n),e.x=r,e.y=i,e.width=a,e.height=n,e},t.prototype.union=function(e){var r=kn(e.x,this.x),i=kn(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=fs(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=fs(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=r,this.y=i},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){return jI(nr(),this,e)},t.prototype.intersect=function(e,r,i){return t.intersect(this,e,r,i)},t.intersect=function(e,r,i,a){i&&ge.set(i,0,0);var n=a&&a.outIntersectRect||null,o=a&&a.clamp;if(n&&(n.x=n.y=n.width=n.height=NaN),!e||!r)return!1;e instanceof t||(e=vv(JI,e.x,e.y,e.width,e.height)),r instanceof t||(r=vv(QI,r.x,r.y,r.width,r.height));var s=!!i;Ir.reset(a,s);var l=Ir.touchThreshold,u=e.x+l,f=e.x+e.width-l,c=e.y+l,p=e.y+e.height-l,h=r.x+l,d=r.x+r.width-l,v=r.y+l,m=r.y+r.height-l;if(u>f||c>p||h>d||v>m)return!1;var g=!(f<h||d<u||p<v||m<c);return(s||n)&&(Rl[0]=1/0,Rl[1]=0,N_(u,f,h,d,0,s,n,o),N_(c,p,v,m,1,s,n,o),s&&ge.copy(i,g?Ir.useDir?Ir.dirMinTv:Nl:yv)),g},t.contain=function(e,r,i){return r>=e.x&&r<=e.x+e.width&&i>=e.y&&i<=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){P_(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,i){if(!i){e!==r&&P_(e,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var a=i[0],n=i[3],o=i[4],s=i[5];e.x=r.x*a+o,e.y=r.y*n+s,e.width=r.width*a,e.height=r.height*n,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}In.x=Nn.x=r.x,In.y=Rn.y=r.y,Pn.x=Rn.x=r.x+r.width,Pn.y=Nn.y=r.y+r.height,In.transform(i),Rn.transform(i),Pn.transform(i),Nn.transform(i),e.x=kn(In.x,Pn.x,Nn.x,Rn.x),e.y=kn(In.y,Pn.y,Nn.y,Rn.y);var l=fs(In.x,Pn.x,Nn.x,Rn.x),u=fs(In.y,Pn.y,Nn.y,Rn.y);e.width=l-e.x,e.height=u-e.y},t.calculateTransform=function(e,r,i){var a=i.width/r.width,n=i.height/r.height;return e=la(e||[]),Il(e,e,Vf(mv,-r.x,-r.y)),O_(e,e,Vf(mv,a,n)),Il(e,e,Vf(mv,i.x,i.y)),e},t})(),W5=ua.create,vv=ua.set,P_=ua.copy,jI=ua.calculateTransform,$5=ua.applyTransform,X5=ua.contain,JI=new ua(0,0,0,0),QI=new ua(0,0,0,0),mv=[];function N_(t,e,r,i,a,n,o,s){var l=gv(e-r),u=gv(i-t),f=kn(l,u),c=I_[a],p=I_[1-a],h=ZI[a];e<r||i<t?l<u?(n&&(yv[c]=-l),s&&(o[c]=e,o[h]=0)):(n&&(yv[c]=u),s&&(o[c]=t,o[h]=0)):(o&&(o[c]=fs(t,r),o[h]=kn(e,i)-o[c]),n&&(f<Rl[0]||Ir.useDir)&&(Rl[0]=kn(f,Rl[0]),(l<u||!Ir.bidirectional)&&(Nl[c]=l,Nl[p]=0,Ir.useDir&&Ir.calcDirMTV()),(l>=u||!Ir.bidirectional)&&(Nl[c]=-u,Nl[p]=0,Ir.useDir&&Ir.calcDirMTV())))}function xv(){var t=0,e=new ge,r=new ge,i={minTv:new ge,maxTv:new ge,useDir:!1,dirMinTv:new ge,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(n,o){i.touchThreshold=0,n&&n.touchThreshold!=null&&(i.touchThreshold=fs(0,n.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,n&&n.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),r.copy(i.minTv),t=n.direction,i.bidirectional=n.bidirectional==null||!!n.bidirectional,i.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var n=i.minTv,o=i.dirMinTv,s=n.y*n.y+n.x*n.x,l=Math.sin(t),u=Math.cos(t),f=l*n.y+u*n.x;if(a(f)){a(n.x)&&a(n.y)&&o.set(0,0);return}if(r.x=s*u/f,r.y=s*l/f,a(r.x)&&a(r.y)){o.set(0,0);return}(i.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function a(n){return gv(n)<1e-10}return i}var ce=ua;var k_="silent";function eP(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:tP}}function tP(){Ka(this.event)}var rP=(function(t){R(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})(ar),kl=(function(){function t(e,r){this.x=e,this.y=r}return t})(),iP=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],_v=new ce(0,0,0,0),z_=(function(t){R(e,t);function e(r,i,a,n,o){var s=t.call(this)||this;return s._hovered=new kl(0,0),s.storage=r,s.painter=i,s.painterRoot=n,s._pointerSize=o,a=a||new rP,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new C_(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(E(iP,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var i=r.zrX,a=r.zrY,n=V_(this,i,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=n?new kl(i,a):this.findHover(i,a),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 i=r.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new kl(0,0)},e.prototype.dispatch=function(r,i){var a=this[r];a&&a.call(this,i)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},e.prototype.dispatchToElement=function(r,i,a){r=r||{};var n=r.target;if(!(n&&n.silent)){for(var o="on"+i,s=eP(i,r,a);n&&(n[o]&&(s.cancelBubble=!!n[o].call(n,s)),n.trigger(i,s),n=n.__hostTarget?n.__hostTarget:n.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(i,s)}))}},e.prototype.findHover=function(r,i,a){var n=this.storage.getDisplayList(),o=new kl(r,i);if(R_(n,o,r,i,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ce(r-u,i-u,l,l),c=n.length-1;c>=0;c--){var p=n[c];p!==a&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(_v.copy(p.getBoundingRect()),p.transform&&_v.applyTransform(p.transform),_v.intersect(f)&&s.push(p))}if(s.length)for(var h=4,d=Math.PI/12,v=Math.PI*2,m=0;m<u;m+=h)for(var g=0;g<v;g+=d){var y=r+m*Math.cos(g),x=i+m*Math.sin(g);if(R_(s,o,y,x,a),o.target)return o}}return o},e.prototype.processGesture=function(r,i){this._gestureMgr||(this._gestureMgr=new D_);var a=this._gestureMgr;i==="start"&&a.clear();var n=a.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(i==="end"&&a.clear(),n){var o=n.type;r.gestureEvent=o;var s=new kl;s.target=n.target,this.dispatchToElement(s,o,n.event)}},e})(ar);E(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){z_.prototype[t]=function(e){var r=e.zrX,i=e.zrY,a=V_(this,r,i),n,o;if((t!=="mouseup"||!a)&&(n=this.findHover(r,i),o=n.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||Dl(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});function aP(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var i=t,a=void 0,n=!1;i;){if(i.ignoreClip&&(n=!0),!n){var o=i.getClipPath();if(o&&!o.contain(e,r))return!1}i.silent&&(a=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return a?k_:!0}return!1}function R_(t,e,r,i,a){for(var n=t.length-1;n>=0;n--){var o=t[n],s=void 0;if(o!==a&&!o.ignore&&(s=aP(o,r,i))&&(!e.topTarget&&(e.topTarget=o),s!==k_)){e.target=o;break}}}function V_(t,e,r){var i=t.painter;return e<0||e>i.getWidth()||r<0||r>i.getHeight()}var U_=z_;var H_=32,zl=7;function nP(t){for(var e=0;t>=H_;)e|=t&1,t>>=1;return t+e}function B_(t,e,r,i){var a=e+1;if(a===r)return 1;if(i(t[a++],t[e])<0){for(;a<r&&i(t[a],t[a-1])<0;)a++;oP(t,e,a)}else for(;a<r&&i(t[a],t[a-1])>=0;)a++;return a-e}function oP(t,e,r){for(r--;e<r;){var i=t[e];t[e++]=t[r],t[r--]=i}}function F_(t,e,r,i,a){for(i===e&&i++;i<r;i++){for(var n=t[i],o=e,s=i,l;o<s;)l=o+s>>>1,a(n,t[l])<0?s=l:o=l+1;var u=i-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]=n}}function bv(t,e,r,i,a,n){var o=0,s=0,l=1;if(n(t,e[r+a])>0){for(s=i-a;l<s&&n(t,e[r+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&n(t,e[r+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var f=o+(l-o>>>1);n(t,e[r+f])>0?o=f+1:l=f}return l}function Sv(t,e,r,i,a,n){var o=0,s=0,l=1;if(n(t,e[r+a])<0){for(s=a+1;l<s&&n(t,e[r+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=i-a;l<s&&n(t,e[r+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var f=o+(l-o>>>1);n(t,e[r+f])<0?l=f:o=f+1}return l}function sP(t,e){var r=zl,i,a,n=0,o=[];i=[],a=[];function s(h,d){i[n]=h,a[n]=d,n+=1}function l(){for(;n>1;){var h=n-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]<a[h+1]&&h--;else if(a[h]>a[h+1])break;f(h)}}function u(){for(;n>1;){var h=n-2;h>0&&a[h-1]<a[h+1]&&h--,f(h)}}function f(h){var d=i[h],v=a[h],m=i[h+1],g=a[h+1];a[h]=v+g,h===n-3&&(i[h+1]=i[h+2],a[h+1]=a[h+2]),n--;var y=Sv(t[m],t,d,v,0,e);d+=y,v-=y,v!==0&&(g=bv(t[d+v-1],t,m,g,g-1,e),g!==0&&(v<=g?c(d,v,m,g):p(d,v,m,g)))}function c(h,d,v,m){var g=0;for(g=0;g<d;g++)o[g]=t[h+g];var y=0,x=v,_=h;if(t[_++]=t[x++],--m===0){for(g=0;g<d;g++)t[_+g]=o[y+g];return}if(d===1){for(g=0;g<m;g++)t[_+g]=t[x+g];t[_+m]=o[y];return}for(var b=r,S,w,A;;){S=0,w=0,A=!1;do if(e(t[x],o[y])<0){if(t[_++]=t[x++],w++,S=0,--m===0){A=!0;break}}else if(t[_++]=o[y++],S++,w=0,--d===1){A=!0;break}while((S|w)<b);if(A)break;do{if(S=Sv(t[x],o,y,d,0,e),S!==0){for(g=0;g<S;g++)t[_+g]=o[y+g];if(_+=S,y+=S,d-=S,d<=1){A=!0;break}}if(t[_++]=t[x++],--m===0){A=!0;break}if(w=bv(o[y],t,x,m,0,e),w!==0){for(g=0;g<w;g++)t[_+g]=t[x+g];if(_+=w,x+=w,m-=w,m===0){A=!0;break}}if(t[_++]=o[y++],--d===1){A=!0;break}b--}while(S>=zl||w>=zl);if(A)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),d===1){for(g=0;g<m;g++)t[_+g]=t[x+g];t[_+m]=o[y]}else{if(d===0)throw new Error;for(g=0;g<d;g++)t[_+g]=o[y+g]}}function p(h,d,v,m){var g=0;for(g=0;g<m;g++)o[g]=t[v+g];var y=h+d-1,x=m-1,_=v+m-1,b=0,S=0;if(t[_--]=t[y--],--d===0){for(b=_-(m-1),g=0;g<m;g++)t[b+g]=o[g];return}if(m===1){for(_-=d,y-=d,S=_+1,b=y+1,g=d-1;g>=0;g--)t[S+g]=t[b+g];t[_]=o[x];return}for(var w=r;;){var A=0,C=0,T=!1;do if(e(o[x],t[y])<0){if(t[_--]=t[y--],A++,C=0,--d===0){T=!0;break}}else if(t[_--]=o[x--],C++,A=0,--m===1){T=!0;break}while((A|C)<w);if(T)break;do{if(A=d-Sv(o[x],t,h,d,d-1,e),A!==0){for(_-=A,y-=A,d-=A,S=_+1,b=y+1,g=A-1;g>=0;g--)t[S+g]=t[b+g];if(d===0){T=!0;break}}if(t[_--]=o[x--],--m===1){T=!0;break}if(C=m-bv(t[y],o,0,m,m-1,e),C!==0){for(_-=C,x-=C,m-=C,S=_+1,b=x+1,g=0;g<C;g++)t[S+g]=o[b+g];if(m<=1){T=!0;break}}if(t[_--]=t[y--],--d===0){T=!0;break}w--}while(A>=zl||C>=zl);if(T)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),m===1){for(_-=d,y-=d,S=_+1,b=y+1,g=d-1;g>=0;g--)t[S+g]=t[b+g];t[_]=o[x]}else{if(m===0)throw new Error;for(b=_-(m-1),g=0;g<m;g++)t[b+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function zn(t,e,r,i){r||(r=0),i||(i=t.length);var a=i-r;if(!(a<2)){var n=0;if(a<H_){n=B_(t,r,i,e),F_(t,r,i,r+n,e);return}var o=sP(t,e),s=nP(a);do{if(n=B_(t,r,i,e),n<s){var l=a;l>s&&(l=s),F_(t,r,r+l,r+n,e),n=l}o.pushRun(r,n),o.mergeRuns(),a-=n,r+=n}while(a!==0);o.forceMergeRuns()}}var Wt=1,Vn=2,Wa=4;var G_=!1;function Cv(){G_||(G_=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function K_(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var lP=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=K_}return t.prototype.traverse=function(e,r){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var i=this._displayList;return(e||!i.length)&&this.updateDisplayList(r),i},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,i=this._displayList,a=0,n=r.length;a<n;a++)this._updateAndAddDisplayable(r[a],null,e);i.length=this._displayListLen,zn(i,K_)},t.prototype._updateAndAddDisplayable=function(e,r,i){if(!(e.ignore&&!i)){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath(),n=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(n||a)){if(s||(s=e.__clipPaths=[]),n)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=a,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(),p=0;p<c.length;p++){var h=c[p];e.__dirty&&(h.__dirty|=Wt),this._updateAndAddDisplayable(h,s,i)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(Cv(),d.z=0),isNaN(d.z2)&&(Cv(),d.z2=0),isNaN(d.zlevel)&&(Cv(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var v=e.getDecalElement&&e.getDecalElement();v&&this._updateAndAddDisplayable(v,s,i);var m=e.getTextGuideLine();m&&this._updateAndAddDisplayable(m,s,i);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,s,i)}},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,i=e.length;r<i;r++)this.delRoot(e[r]);return}var a=pe(this._roots,e);a>=0&&this._roots.splice(a,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})(),Y_=lP;var W_;W_=ye.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var wv=W_;var $f={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,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)))},elasticOut:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1)},elasticInOut:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*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)/i)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.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-$f.bounceOut(1-t)},bounceOut:function(t){return t<.36363636363636365?7.5625*t*t:t<.7272727272727273?7.5625*(t-=.5454545454545454)*t+.75:t<.9090909090909091?7.5625*(t-=.8181818181818182)*t+.9375:7.5625*(t-=.9545454545454546)*t+.984375},bounceInOut:function(t){return t<.5?$f.bounceIn(t*2)*.5:$f.bounceOut(t*2-1)*.5+.5}},Xf=$f;var qf=Math.pow,Xa=Math.sqrt,jf=1e-8,X_=1e-4,$_=Xa(3),Zf=1/3,Li=Ha(),Yr=Ha(),cs=Ha();function $a(t){return t>-jf&&t<jf}function q_(t){return t>jf||t<-jf}function rt(t,e,r,i,a){var n=1-a;return n*n*(n*t+3*a*e)+a*a*(a*i+3*n*r)}function Tv(t,e,r,i,a){var n=1-a;return 3*(((e-t)*n+2*(r-e)*a)*n+(i-r)*a*a)}function Un(t,e,r,i,a,n){var o=i+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-a,f=s*s-3*o*l,c=s*l-9*o*u,p=l*l-3*s*u,h=0;if($a(f)&&$a(c))if($a(s))n[0]=0;else{var d=-l/s;d>=0&&d<=1&&(n[h++]=d)}else{var v=c*c-4*f*p;if($a(v)){var m=c/f,d=-s/o+m,g=-m/2;d>=0&&d<=1&&(n[h++]=d),g>=0&&g<=1&&(n[h++]=g)}else if(v>0){var y=Xa(v),x=f*s+1.5*o*(-c+y),_=f*s+1.5*o*(-c-y);x<0?x=-qf(-x,Zf):x=qf(x,Zf),_<0?_=-qf(-_,Zf):_=qf(_,Zf);var d=(-s-(x+_))/(3*o);d>=0&&d<=1&&(n[h++]=d)}else{var b=(2*f*s-3*o*c)/(2*Xa(f*f*f)),S=Math.acos(b)/3,w=Xa(f),A=Math.cos(S),d=(-s-2*w*A)/(3*o),g=(-s+w*(A+$_*Math.sin(S)))/(3*o),C=(-s+w*(A-$_*Math.sin(S)))/(3*o);d>=0&&d<=1&&(n[h++]=d),g>=0&&g<=1&&(n[h++]=g),C>=0&&C<=1&&(n[h++]=C)}}return h}function Jf(t,e,r,i,a){var n=6*r-12*e+6*t,o=9*e+3*i-3*t-9*r,s=3*e-3*t,l=0;if($a(o)){if(q_(n)){var u=-s/n;u>=0&&u<=1&&(a[l++]=u)}}else{var f=n*n-4*o*s;if($a(f))a[0]=-n/(2*o);else if(f>0){var c=Xa(f),u=(-n+c)/(2*o),p=(-n-c)/(2*o);u>=0&&u<=1&&(a[l++]=u),p>=0&&p<=1&&(a[l++]=p)}}return l}function ps(t,e,r,i,a,n){var o=(e-t)*a+t,s=(r-e)*a+e,l=(i-r)*a+r,u=(s-o)*a+o,f=(l-s)*a+s,c=(f-u)*a+u;n[0]=t,n[1]=o,n[2]=u,n[3]=c,n[4]=c,n[5]=f,n[6]=l,n[7]=i}function Qf(t,e,r,i,a,n,o,s,l,u,f){var c,p=.005,h=1/0,d,v,m,g;Li[0]=l,Li[1]=u;for(var y=0;y<1;y+=.05)Yr[0]=rt(t,r,a,o,y),Yr[1]=rt(e,i,n,s,y),m=On(Li,Yr),m<h&&(c=y,h=m);h=1/0;for(var x=0;x<32&&!(p<X_);x++)d=c-p,v=c+p,Yr[0]=rt(t,r,a,o,d),Yr[1]=rt(e,i,n,s,d),m=On(Yr,Li),d>=0&&m<h?(c=d,h=m):(cs[0]=rt(t,r,a,o,v),cs[1]=rt(e,i,n,s,v),g=On(cs,Li),v<=1&&g<h?(c=v,h=g):p*=.5);return f&&(f[0]=rt(t,r,a,o,c),f[1]=rt(e,i,n,s,c)),Xa(h)}function Z_(t,e,r,i,a,n,o,s,l){for(var u=t,f=e,c=0,p=1/l,h=1;h<=l;h++){var d=h*p,v=rt(t,r,a,o,d),m=rt(e,i,n,s,d),g=v-u,y=m-f;c+=Math.sqrt(g*g+y*y),u=v,f=m}return c}function Ct(t,e,r,i){var a=1-i;return a*(a*t+2*i*e)+i*i*r}function Ev(t,e,r,i){return 2*((1-i)*(e-t)+i*(r-e))}function j_(t,e,r,i,a){var n=t-2*e+r,o=2*(e-t),s=t-i,l=0;if($a(n)){if(q_(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var f=o*o-4*n*s;if($a(f)){var u=-o/(2*n);u>=0&&u<=1&&(a[l++]=u)}else if(f>0){var c=Xa(f),u=(-o+c)/(2*n),p=(-o-c)/(2*n);u>=0&&u<=1&&(a[l++]=u),p>=0&&p<=1&&(a[l++]=p)}}return l}function ec(t,e,r){var i=t+r-2*e;return i===0?.5:(t-e)/i}function hs(t,e,r,i,a){var n=(e-t)*i+t,o=(r-e)*i+e,s=(o-n)*i+n;a[0]=t,a[1]=n,a[2]=s,a[3]=s,a[4]=o,a[5]=r}function tc(t,e,r,i,a,n,o,s,l){var u,f=.005,c=1/0;Li[0]=o,Li[1]=s;for(var p=0;p<1;p+=.05){Yr[0]=Ct(t,r,a,p),Yr[1]=Ct(e,i,n,p);var h=On(Li,Yr);h<c&&(u=p,c=h)}c=1/0;for(var d=0;d<32&&!(f<X_);d++){var v=u-f,m=u+f;Yr[0]=Ct(t,r,a,v),Yr[1]=Ct(e,i,n,v);var h=On(Yr,Li);if(v>=0&&h<c)u=v,c=h;else{cs[0]=Ct(t,r,a,m),cs[1]=Ct(e,i,n,m);var g=On(cs,Li);m<=1&&g<c?(u=m,c=g):f*=.5}}return l&&(l[0]=Ct(t,r,a,u),l[1]=Ct(e,i,n,u)),Xa(c)}function J_(t,e,r,i,a,n,o){for(var s=t,l=e,u=0,f=1/o,c=1;c<=o;c++){var p=c*f,h=Ct(t,r,a,p),d=Ct(e,i,n,p),v=h-s,m=d-l;u+=Math.sqrt(v*v+m*m),s=h,l=d}return u}var uP=/cubic-bezier\(([0-9,\.e ]+)\)/;function ds(t){var e=t&&uP.exec(t);if(e){var r=e[1].split(","),i=+Bt(r[0]),a=+Bt(r[1]),n=+Bt(r[2]),o=+Bt(r[3]);if(isNaN(i+a+n+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Un(0,i,n,1,l,s)&&rt(0,a,o,1,s[0])}}}var fP=(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||Ze,this.ondestroy=e.ondestroy||Ze,this.onrestart=e.onrestart||Ze,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 i=this._life,a=e-this._startTime-this._pausedTime,n=a/i;n<0&&(n=0),n=Math.min(n,1);var o=this.easingFunc,s=o?o(n):n;if(this.onframe(s),n===1)if(this.loop){var l=a%i;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=Z(e)?e:Xf[e]||ds(e)},t})(),Q_=fP;var eb=(function(){function t(e){this.value=e}return t})();var cP=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new eb(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,i=e.next;r?r.next=i:this.head=i,i?i.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})();var pP=(function(){function t(e){this._list=new cP,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var i=this._list,a=this._map,n=null;if(a[e]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete a[l.key],n=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new eb(r),s.key=e,i.insertEntry(s),a[e]=s}return n},t.prototype.get=function(e){var r=this._map[e],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),Di=pP;var tb={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 si(t){return t=Math.round(t),t<0?0:t>255?255:t}function hP(t){return t=Math.round(t),t<0?0:t>360?360:t}function Vl(t){return t<0?0:t>1?1:t}function Mv(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?si(parseFloat(e)/100*255):si(parseInt(e,10))}function Bn(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Vl(parseFloat(e)/100):Vl(parseFloat(e))}function Lv(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 qa(t,e,r){return t+(e-t)*r}function Wr(t,e,r,i,a){return t[0]=e,t[1]=r,t[2]=i,t[3]=a,t}function Dv(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var ab=new Di(20),rc=null;function vs(t,e){rc&&Dv(rc,e),rc=ab.put(t,rc||e.slice())}function $t(t,e){if(t){e=e||[];var r=ab.get(t);if(r)return Dv(e,r);t=t+"";var i=t.replace(/ /g,"").toLowerCase();if(i in tb)return Dv(e,tb[i]),vs(t,e),e;var a=i.length;if(i.charAt(0)==="#"){if(a===4||a===5){var n=parseInt(i.slice(1,4),16);if(!(n>=0&&n<=4095)){Wr(e,0,0,0,1);return}return Wr(e,(n&3840)>>4|(n&3840)>>8,n&240|(n&240)>>4,n&15|(n&15)<<4,a===5?parseInt(i.slice(4),16)/15:1),vs(t,e),e}else if(a===7||a===9){var n=parseInt(i.slice(1,7),16);if(!(n>=0&&n<=16777215)){Wr(e,0,0,0,1);return}return Wr(e,(n&16711680)>>16,(n&65280)>>8,n&255,a===9?parseInt(i.slice(7),16)/255:1),vs(t,e),e}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===a){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Wr(e,+u[0],+u[1],+u[2],1):Wr(e,0,0,0,1);f=Bn(u.pop());case"rgb":if(u.length>=3)return Wr(e,Mv(u[0]),Mv(u[1]),Mv(u[2]),u.length===3?f:Bn(u[3])),vs(t,e),e;Wr(e,0,0,0,1);return;case"hsla":if(u.length!==4){Wr(e,0,0,0,1);return}return u[3]=Bn(u[3]),Ov(u,e),vs(t,e),e;case"hsl":if(u.length!==3){Wr(e,0,0,0,1);return}return Ov(u,e),vs(t,e),e;default:return}}Wr(e,0,0,0,1)}}function Ov(t,e){var r=(parseFloat(t[0])%360+360)%360/360,i=Bn(t[1]),a=Bn(t[2]),n=a<=.5?a*(i+1):a+i-a*i,o=a*2-n;return e=e||[],Wr(e,si(Lv(o,n,r+1/3)*255),si(Lv(o,n,r)*255),si(Lv(o,n,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function dP(t){if(t){var e=t[0]/255,r=t[1]/255,i=t[2]/255,a=Math.min(e,r,i),n=Math.max(e,r,i),o=n-a,s=(n+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(n+a):u=o/(2-n-a);var f=((n-e)/6+o/2)/o,c=((n-r)/6+o/2)/o,p=((n-i)/6+o/2)/o;e===n?l=p-c:r===n?l=1/3+f-p:i===n&&(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 rb(t,e){var r=$t(t);if(r){for(var i=0;i<3;i++)e<0?r[i]=r[i]*(1-e)|0:r[i]=(255-r[i])*e+r[i]|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return Oi(r,r.length===4?"rgba":"rgb")}}function ic(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){r=r||[];var i=t*(e.length-1),a=Math.floor(i),n=Math.ceil(i),o=e[a],s=e[n],l=i-a;return r[0]=si(qa(o[0],s[0],l)),r[1]=si(qa(o[1],s[1],l)),r[2]=si(qa(o[2],s[2],l)),r[3]=Vl(qa(o[3],s[3],l)),r}}function nb(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var i=t*(e.length-1),a=Math.floor(i),n=Math.ceil(i),o=$t(e[a]),s=$t(e[n]),l=i-a,u=Oi([si(qa(o[0],s[0],l)),si(qa(o[1],s[1],l)),si(qa(o[2],s[2],l)),Vl(qa(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:a,rightIndex:n,value:i}:u}}function fa(t,e,r,i){var a=$t(t);if(t)return a=dP(a),e!=null&&(a[0]=hP(Z(e)?e(a[0]):e)),r!=null&&(a[1]=Bn(Z(r)?r(a[1]):r)),i!=null&&(a[2]=Bn(Z(i)?i(a[2]):i)),Oi(Ov(a),"rgba")}function ob(t,e){var r=$t(t);if(r&&e!=null)return r[3]=Vl(e),Oi(r,"rgba")}function Oi(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 ms(t,e){var r=$t(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var ib=new Di(100);function Ul(t){if(G(t)){var e=ib.get(t);return e||(e=rb(t,-.1),ib.put(t,e)),e}else if(as(t)){var r=k({},t);return r.colorStops=F(t.colorStops,function(i){return{offset:i.offset,color:rb(i.color,-.1)}}),r}return t}var nc=Math.round;function Za(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var r=$t(t);r&&(t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3])}return{color:t,opacity:e??1}}var lb=1e-4;function Ii(t){return t<lb&&t>-lb}function ac(t){return nc(t*1e3)/1e3}function oc(t){return nc(t*1e4)/1e4}function ub(t){return"matrix("+ac(t[0])+","+ac(t[1])+","+ac(t[2])+","+ac(t[3])+","+oc(t[4])+","+oc(t[5])+")"}var fb={left:"start",right:"end",center:"middle",middle:"middle"};function cb(t,e,r){return r==="top"?t+=e/2:r==="bottom"&&(t-=e/2),t}function pb(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function hb(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 Iv(t){return t&&!!t.image}function vP(t){return t&&!!t.svgElement}function Bl(t){return Iv(t)||vP(t)}function sc(t){return t.type==="linear"}function lc(t){return t.type==="radial"}function uc(t){return t&&(t.type==="linear"||t.type==="radial")}function Fl(t){return"url(#"+t+")"}function fc(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 cc(t){var e=t.x||0,r=t.y||0,i=(t.rotation||0)*ss,a=X(t.scaleX,1),n=X(t.scaleY,1),o=t.skewX||0,s=t.skewY||0,l=[];return(e||r)&&l.push("translate("+e+"px,"+r+"px)"),i&&l.push("rotate("+i+")"),(a!==1||n!==1)&&l.push("scale("+a+","+n+")"),(o||s)&&l.push("skew("+nc(o*ss)+"deg, "+nc(s*ss)+"deg)"),l.join(" ")}var db=(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}})();var Nv=Array.prototype.slice;function ca(t,e,r){return(e-t)*r+t}function Pv(t,e,r,i){for(var a=e.length,n=0;n<a;n++)t[n]=ca(e[n],r[n],i);return t}function mP(t,e,r,i){for(var a=e.length,n=a&&e[0].length,o=0;o<a;o++){t[o]||(t[o]=[]);for(var s=0;s<n;s++)t[o][s]=ca(e[o][s],r[o][s],i)}return t}function pc(t,e,r,i){for(var a=e.length,n=0;n<a;n++)t[n]=e[n]+r[n]*i;return t}function vb(t,e,r,i){for(var a=e.length,n=a&&e[0].length,o=0;o<a;o++){t[o]||(t[o]=[]);for(var s=0;s<n;s++)t[o][s]=e[o][s]+r[o][s]*i}return t}function gP(t,e){for(var r=t.length,i=e.length,a=r>i?e:t,n=Math.min(r,i),o=a[n-1]||{color:[0,0,0,0],offset:0},s=n;s<Math.max(r,i);s++)a.push({offset:o.offset,color:o.color.slice()})}function yP(t,e,r){var i=t,a=e;if(!(!i.push||!a.push)){var n=i.length,o=a.length;if(n!==o){var s=n>o;if(s)i.length=o;else for(var l=n;l<o;l++)i.push(r===1?a[l]:Nv.call(a[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(r===1)isNaN(i[l])&&(i[l]=a[l]);else for(var f=0;f<u;f++)isNaN(i[l][f])&&(i[l][f]=a[l][f])}}function Fn(t){if(lt(t)){var e=t.length;if(lt(t[0])){for(var r=[],i=0;i<e;i++)r.push(Nv.call(t[i]));return r}return Nv.call(t)}return t}function vc(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 xP(t){return lt(t&&t[0])?2:1}var hc=0,mc=1,yb=2,Gl=3,Rv=4,kv=5,mb=6;function gb(t){return t===Rv||t===kv}function dc(t){return t===mc||t===yb}var Hl=[0,0,0,0],_P=(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,i){this._needsSort=!0;var a=this.keyframes,n=a.length,o=!1,s=mb,l=r;if(lt(r)){var u=xP(r);s=u,(u===1&&!me(r[0])||u===2&&!me(r[0][0]))&&(o=!0)}else if(me(r)&&!Gr(r))s=hc;else if(G(r))if(!isNaN(+r))s=hc;else{var f=$t(r);f&&(l=f,s=Gl)}else if(as(r)){var c=k({},l);c.colorStops=F(r.colorStops,function(h){return{offset:h.offset,color:$t(h.color)}}),sc(r)?s=Rv:lc(r)&&(s=kv),l=c}n===0?this.valType=s:(s!==this.valType||s===mb)&&(o=!0),this.discrete=this.discrete||o;var p={time:e,value:l,rawValue:r,percent:0};return i&&(p.easing=i,p.easingFunc=Z(i)?i:Xf[i]||ds(i)),a.push(p),p},t.prototype.prepare=function(e,r){var i=this.keyframes;this._needsSort&&i.sort(function(v,m){return v.time-m.time});for(var a=this.valType,n=i.length,o=i[n-1],s=this.discrete,l=dc(a),u=gb(a),f=0;f<n;f++){var c=i[f],p=c.value,h=o.value;c.percent=c.time/e,s||(l&&f!==n-1?yP(p,h,a):u&&gP(p.colorStops,h.colorStops))}if(!s&&a!==kv&&r&&this.needsAnimate()&&r.needsAnimate()&&a===r.valType&&!r._finished){this._additiveTrack=r;for(var d=i[0].value,f=0;f<n;f++)a===hc?i[f].additiveValue=i[f].value-d:a===Gl?i[f].additiveValue=pc([],i[f].value,d,-1):dc(a)&&(i[f].additiveValue=a===mc?pc([],i[f].value,d,-1):vb([],i[f].value,d,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,a=i?"additiveValue":"value",n=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=n===Gl,f,c=this._lastFr,p=Math.min,h,d;if(s===1)h=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var v=p(c+1,s-1);for(f=v;f>=0&&!(o[f].percent<=r);f--);f=p(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=p(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=r;var m=d.percent-h.percent,g=m===0?1:p((r-h.percent)/m,1);d.easingFunc&&(g=d.easingFunc(g));var y=i?this._additiveValue:u?Hl:e[l];if((dc(n)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=g<1?h.rawValue:d.rawValue;else if(dc(n))n===mc?Pv(y,h[a],d[a],g):mP(y,h[a],d[a],g);else if(gb(n)){var x=h[a],_=d[a],b=n===Rv;e[l]={type:b?"linear":"radial",x:ca(x.x,_.x,g),y:ca(x.y,_.y,g),colorStops:F(x.colorStops,function(w,A){var C=_.colorStops[A];return{offset:ca(w.offset,C.offset,g),color:vc(Pv([],w.color,C.color,g))}}),global:_.global},b?(e[l].x2=ca(x.x2,_.x2,g),e[l].y2=ca(x.y2,_.y2,g)):e[l].r=ca(x.r,_.r,g)}else if(u)Pv(y,h[a],d[a],g),i||(e[l]=vc(y));else{var S=ca(h[a],d[a],g);i?this._additiveValue=S:e[l]=S}i&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,i=this.propName,a=this._additiveValue;r===hc?e[i]=e[i]+a:r===Gl?($t(e[i],Hl),pc(Hl,Hl,a,1),e[i]=vc(Hl)):r===mc?pc(e[i],e[i],a,1):r===yb&&vb(e[i],e[i],a,1)},t})(),bP=(function(){function t(e,r,i,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&a){kf("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=i}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,i){return this.whenWithKeys(e,r,ie(r),i)},t.prototype.whenWithKeys=function(e,r,i,a){for(var n=this._tracks,o=0;o<i.length;o++){var s=i[o],l=n[s];if(!l){l=n[s]=new _P(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,p=c[c.length-1];u=p&&p.value,f.valType===Gl&&u&&(u=vc(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Fn(u),a),this._trackKeys.push(s)}l.addKeyframe(e,Fn(r[s]),a)}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,i=0;i<r;i++)e[i].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 i=0;i<r.length;i++)r[i].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,i=0;i<r.length;i++)e[r[i]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,i=this._additiveAnimators;if(i)for(var a=0;a<i.length;a++){var n=i[a].getTrack(e);n&&(r=n)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,i=[],a=this._maxTime||0,n=0;n<this._trackKeys.length;n++){var o=this._trackKeys[n],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var p=new Q_({life:a,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var d=r._additiveAnimators;if(d){for(var v=!1,m=0;m<d.length;m++)if(d[m]._clip){v=!0;break}v||(r._additiveAnimators=null)}for(var m=0;m<i.length;m++)i[m].step(r._target,h);var g=r._onframeCbs;if(g)for(var m=0;m<g.length;m++)g[m](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),e&&p.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 F(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var i=this._tracks,a=this._trackKeys,n=0;n<e.length;n++){var o=i[e[n]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,n=0;n<a.length;n++)if(!i[a[n]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,i){if(e){r=r||this._trackKeys;for(var a=0;a<r.length;a++){var n=r[a],o=this._tracks[n];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[i?0:s.length-1];l&&(e[n]=Fn(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||ie(e);for(var i=0;i<r.length;i++){var a=r[i],n=this._tracks[a];if(n){var o=n.keyframes;if(o.length>1){var s=o.pop();n.addKeyframe(s.time,e[a]),n.prepare(this._maxTime,n.getAdditiveTrack())}}}},t})(),Kl=bP;function Hn(){return new Date().getTime()}var SP=(function(t){R(e,t);function e(r){var i=t.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}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 i=r.getClip();i&&this.addClip(i)},e.prototype.removeClip=function(r){if(r.animation){var i=r.prev,a=r.next;i?i.next=a:this._head=a,a?a.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},e.prototype.update=function(r){for(var i=Hn()-this._pausedTime,a=i-this._time,n=this._head;n;){var o=n.next,s=n.step(i,a);s&&(n.ondestroy(),this.removeClip(n)),n=o}this._time=i,r||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(wv(i),!r._paused&&r.update())}wv(i)},e.prototype.start=function(){this._running||(this._time=Hn(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Hn(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Hn()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,i){i=i||{},this.start();var a=new Kl(r,i.loop);return this.addAnimator(a),a},e})(ar),xb=SP;var CP=300,zv=ye.domSupported,Vv=(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},i=F(t,function(a){var n=a.replace("mouse","pointer");return r.hasOwnProperty(n)?n:a});return{mouse:t,touch:e,pointer:i}})(),_b={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},bb=!1;function Fv(t){var e=t.pointerType;return e==="pen"||e==="touch"}function wP(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 Uv(t){t&&(t.zrByTouch=!0)}function TP(t,e){return yr(t.dom,new EP(t,e),!0)}function Cb(t,e){for(var r=e,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return i}var EP=(function(){function t(e,r){this.stopPropagation=Ze,this.stopImmediatePropagation=Ze,this.preventDefault=Ze,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),li={mousedown:function(t){t=yr(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=yr(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=yr(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=yr(this.dom,t);var e=t.toElement||t.relatedTarget;Cb(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){bb=!0,t=yr(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){bb||(t=yr(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=yr(this.dom,t),Uv(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),li.mousemove.call(this,t),li.mousedown.call(this,t)},touchmove:function(t){t=yr(this.dom,t),Uv(t),this.handler.processGesture(t,"change"),li.mousemove.call(this,t)},touchend:function(t){t=yr(this.dom,t),Uv(t),this.handler.processGesture(t,"end"),li.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<CP&&li.click.call(this,t)},pointerdown:function(t){li.mousedown.call(this,t)},pointermove:function(t){Fv(t)||li.mousemove.call(this,t)},pointerup:function(t){li.mouseup.call(this,t)},pointerout:function(t){Fv(t)||li.mouseout.call(this,t)}};E(["click","dblclick","contextmenu"],function(t){li[t]=function(e){e=yr(this.dom,e),this.trigger(t,e)}});var Hv={pointermove:function(t){Fv(t)||Hv.mousemove.call(this,t)},pointerup:function(t){Hv.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 AP(t,e){var r=e.domHandlers;ye.pointerEventsSupported?E(Vv.pointer,function(i){gc(e,i,function(a){r[i].call(t,a)})}):(ye.touchEventsSupported&&E(Vv.touch,function(i){gc(e,i,function(a){r[i].call(t,a),wP(e)})}),E(Vv.mouse,function(i){gc(e,i,function(a){a=Yf(a),e.touching||r[i].call(t,a)})}))}function MP(t,e){ye.pointerEventsSupported?E(_b.pointer,r):ye.touchEventsSupported||E(_b.mouse,r);function r(i){function a(n){n=Yf(n),Cb(t,n.target)||(n=TP(t,n),e.domHandlers[i].call(t,n))}gc(e,i,a,{capture:!0})}}function gc(t,e,r,i){t.mounted[e]=r,t.listenerOpts[e]=i,A_(t.domTarget,e,r,i)}function Bv(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&M_(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var Sb=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),LP=(function(t){R(e,t);function e(r,i){var a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=r,a.painterRoot=i,a._localHandlerScope=new Sb(r,li),zv&&(a._globalHandlerScope=new Sb(document,Hv)),AP(a,a._localHandlerScope),a}return e.prototype.dispose=function(){Bv(this._localHandlerScope),zv&&Bv(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,zv&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var i=this._globalHandlerScope;r?MP(this,i):Bv(i)}},e})(ar),wb=LP;var Tb=1;ye.hasGlobalWindow&&(Tb=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Gv=Tb,Yl=.4,Wl="#333",$l="#ccc",Eb="#eee";var Ab=la,Mb=5e-5;function Gn(t){return t>Mb||t<-Mb}var Kn=[],gs=[],Kv=nr(),Yv=Math.abs,Lb=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return DP(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 Gn(this.rotation)||Gn(this.x)||Gn(this.y)||Gn(this.scaleX-1)||Gn(this.scaleY-1)||Gn(this.skewX)||Gn(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||e)){i&&(Ab(i),this.invTransform=null);return}i=i||nr(),r?this.getLocalTransform(i):Ab(i),e&&(r?Ya(i,e,i):Ol(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i),this.invTransform=this.invTransform||nr(),Kr(this.invTransform,i)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Kn);var i=Kn[0]<0?-1:1,a=Kn[1]<0?-1:1,n=((Kn[0]-i)*r+i)/Kn[0]||0,o=((Kn[1]-a)*r+a)/Kn[1]||0;e[0]*=n,e[1]*=n,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],i=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),n=Math.PI/2+a-Math.atan2(e[3],e[2]);i=Math.sqrt(i)*Math.cos(n),r=Math.sqrt(r),this.skewX=n,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=i,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||nr(),Ya(gs,e.invTransform,r),r=gs);var i=this.originX,a=this.originY;(i||a)&&(Kv[4]=i,Kv[5]=a,Ya(gs,r,Kv),gs[4]-=i,gs[5]-=a,r=gs),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 i=[e,r],a=this.invTransform;return a&&Ft(i,i,a),i},t.prototype.transformCoordToGlobal=function(e,r){var i=[e,r],a=this.transform;return a&&Ft(i,i,a),i},t.prototype.getLineScale=function(){var e=this.transform;return e&&Yv(e[0]-1)>1e-10&&Yv(e[3]-1)>1e-10?Math.sqrt(Yv(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){ja(this,e)},t.getLocalTransform=function(e,r){r=r||[];var i=e.originX||0,a=e.originY||0,n=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,p=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(i||a||s||l){var d=i+s,v=a+l;r[4]=-d*n-p*v*o,r[5]=-v*o-h*d*n}else r[4]=r[5]=0;return r[0]=n,r[3]=o,r[1]=h*n,r[2]=p*o,u&&us(r,r,u),r[4]+=i+f,r[5]+=a+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})(),DP=Lb.getLocalTransform;var $r=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function ja(t,e){return v_(t,e,$r)}var Ja=Lb;function ui(t){yc||(yc=new Di(100)),t=t||gr;var e=yc.get(t);return e||(e={font:t,strWidthCache:new Di(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:St.measureText("\u56FD",t).width,asciiCharWidth:St.measureText("a",t).width},yc.put(t,e)),e}var yc;function OP(t){if(!(Wv>=Db)){t=t||gr;for(var e=[],r=+new Date,i=0;i<=127;i++)e[i]=St.measureText(String.fromCharCode(i),t).width;var a=+new Date-r;return a>16?Wv=Db:a>2&&Wv++,e}}var Wv=0,Db=5;function $v(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=OP(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function fi(t,e){var r=t.strWidthCache,i=r.get(e);return i==null&&(i=St.measureText(e,t.font).width,r.put(e,i)),i}function Ob(t,e,r,i){var a=fi(ui(e),t),n=Yn(e),o=Qa(0,a,r),s=pa(0,n,i),l=new ce(o,s,a,n);return l}function xc(t,e,r,i){var a=((t||"")+"").split(`
2
+ `),n=a.length;if(n===1)return Ob(a[0],e,r,i);for(var o=new ce(0,0,0,0),s=0;s<a.length;s++){var l=Ob(a[s],e,r,i);s===0?o.copy(l):o.union(l)}return o}function Qa(t,e,r,i){return r==="right"?i?t+=e:t-=e:r==="center"&&(i?t+=e/2:t-=e/2),t}function pa(t,e,r,i){return r==="middle"?i?t+=e/2:t-=e/2:r==="bottom"&&(i?t+=e:t-=e),t}function Yn(t){return ui(t).stWideCharWidth}function xr(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Wn(t,e,r){var i=e.position||"inside",a=e.distance!=null?e.distance:5,n=r.height,o=r.width,s=n/2,l=r.x,u=r.y,f="left",c="top";if(i instanceof Array)l+=xr(i[0],r.width),u+=xr(i[1],r.height),f=null,c=null;else switch(i){case"left":l-=a,u+=s,f="right",c="middle";break;case"right":l+=a+o,u+=s,c="middle";break;case"top":l+=o/2,u-=a,f="center",c="bottom";break;case"bottom":l+=o/2,u+=n+a,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=a,u+=s,c="middle";break;case"insideRight":l+=o-a,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=a,f="center";break;case"insideBottom":l+=o/2,u+=n-a,f="center",c="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,f="right";break;case"insideBottomLeft":l+=a,u+=n-a,c="bottom";break;case"insideBottomRight":l+=o-a,u+=n-a,f="right",c="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=f,t.verticalAlign=c,t}var Xv="__zr_normal__",qv=$r.concat(["ignore"]),IP=ir($r,function(t,e){return t[e]=!0,t},{ignore:!1}),ys={},PP=new ce(0,0,0,0),_c=[],bc=0,xs=1,Jv=(function(){function t(e){this.id=Rf(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,i){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[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 i=this.textConfig,a=i.local,n=r.innerTransformable,o=void 0,s=void 0,l=!1;n.parent=a?this:null;var u=!1;n.copyTransform(r);var f=i.position!=null,c=i.autoOverflowArea,p=void 0;if((c||f)&&(p=PP,i.layoutRect?p.copy(i.layoutRect):p.copy(this.getBoundingRect()),a||p.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(ys,i,p):Wn(ys,i,p),n.x=ys.x,n.y=ys.y,o=ys.align,s=ys.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var d=void 0,v=void 0;h==="center"?(d=p.width*.5,v=p.height*.5):(d=xr(h[0],p.width),v=xr(h[1],p.height)),u=!0,n.originX=-n.x+d+(a?0:p.x),n.originY=-n.y+v+(a?0:p.y)}}i.rotation!=null&&(n.rotation=i.rotation);var m=i.offset;m&&(n.x+=m[0],n.y+=m[1],u||(n.originX=-m[0],n.originY=-m[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=g.overflowRect=g.overflowRect||new ce(0,0,0,0);n.getLocalTransform(_c),Kr(_c,_c),ce.copy(y,p),y.applyTransform(_c)}else g.overflowRect=null;var x=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,_=void 0,b=void 0,S=void 0;x&&this.canBeInsideText()?(_=i.insideFill,b=i.insideStroke,(_==null||_==="auto")&&(_=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(_),S=!0)):(_=i.outsideFill,b=i.outsideStroke,(_==null||_==="auto")&&(_=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(_),S=!0)),_=_||"#000",(_!==g.fill||b!==g.stroke||S!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=_,g.stroke=b,g.autoStroke=S,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=Wt,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()?$l:Wl},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r=="string"&&$t(r);i||(i=[255,255,255,1]);for(var a=i[3],n=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*a+(n?0:255)*(1-a);return i[3]=1,Oi(i,"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||{},k(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($(e))for(var i=e,a=ie(i),n=0;n<a.length;n++){var o=a[n];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,i=0;i<this.animators.length;i++){var a=this.animators[i],n=a.__fromStateTransition;if(!(a.getLoop()||n&&n!==Xv)){var o=a.targetName,s=o?r[o]:r;a.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,qv)},t.prototype._savePrimaryToNormal=function(e,r,i){for(var a=0;a<i.length;a++){var n=i[a];e[n]!=null&&!(n in r)&&(r[n]=this[n])}},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(Xv,!1,e)},t.prototype.useState=function(e,r,i,a){var n=e===Xv,o=this.hasState();if(!(!o&&n)){var s=this.currentStates,l=this.stateTransition;if(!(pe(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!n&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!n){kf("State "+e+" not exists.");return}n||this.saveCurrentToNormalState(u);var f=this._textContent,c=Pb(this,f,u,a);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,u,this._normalState,r,Rb(this,i,l),l);var p=this._textGuide;return f&&f.useState(e,r,i,!!c),p&&p.useState(e,r,i,!!c),n?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=bc,this.__dirty&=~Wt),u}}},t.prototype.useStates=function(e,r,i){if(!e.length)this.clearStates();else{var a=[],n=this.currentStates,o=e.length,s=o===n.length;if(s){for(var l=0;l<o;l++)if(e[l]!==n[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&&a.push(f)}var c=a[o-1],p=this._textContent,h=Pb(this,p,c,i);h&&!this.__inHover&&(this.__inHover=h);var d=this._mergeStates(a),v=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,Rb(this,r,v),v);var m=this._textGuide;p&&p.useStates(e,r,!!h),m&&m.useStates(e,r,!!h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=bc,this.__dirty&=~Wt)}},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=pe(this.currentStates,e);if(r>=0){var i=this.currentStates.slice();i.splice(r,1),this.useStates(i)}},t.prototype.replaceState=function(e,r,i){var a=this.currentStates.slice(),n=pe(a,e),o=pe(a,r)>=0;n>=0?o?a.splice(n,1):a[n]=r:i&&!o&&a.push(r),this.useStates(a)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},i,a=0;a<e.length;a++){var n=e[a];k(r,n),n.textConfig&&(i=i||{},k(i,n.textConfig))}return i&&(r.textConfig=i),r},t.prototype._applyStateObj=function(e,r,i,a,n,o){if(this.__inHover!==xs){var s=!(r&&a);r&&r.textConfig?(this.textConfig=k({},a?this.textConfig:i.textConfig),k(this.textConfig,r.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,f=0;f<qv.length;f++){var c=qv[f],p=n&&IP[c];r&&r[c]!=null?p?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&i[c]!=null&&(p?(u=!0,l[c]=i[c]):this[c]=i[c])}if(!n)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(r||i)[d]:r||i)}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 Ja,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),k(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|=Wt;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 i=0;i<r.length;i++)e.animation.addAnimator(r[i]);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 i=0;i<r.length;i++)e.animation.removeAnimator(r[i]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,i){var a=e?this[e]:this,n=new Kl(a,r,i);return e&&(n.targetName=e),this.addAnimator(n,e),n},t.prototype.addAnimator=function(e,r){var i=this.__zr,a=this;e.during(function(){a.updateDuringAnimation(r)}).done(function(){var n=a.animators,o=pe(n,e);o>=0&&n.splice(o,1)}),this.animators.push(e),i&&i.animation.addAnimator(e),i&&i.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var i=this.animators,a=i.length,n=[],o=0;o<a;o++){var s=i[o];!e||e===s.scope?s.stop(r):n.push(s)}return this.animators=n,this},t.prototype.animateTo=function(e,r,i){Zv(this,e,r,i)},t.prototype.animateFrom=function(e,r,i){Zv(this,e,r,i,!0)},t.prototype._transitionState=function(e,r,i,a){for(var n=Zv(this,r,i,a),o=0;o<n.length;o++)n[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=bc,e.__dirty=Wt;var r={};function i(n,o,s){r[n+o+s]||(console.warn("DEPRECATED: '"+n+"' has been deprecated. use '"+o+"', '"+s+"' instead"),r[n+o+s]=!0)}function a(n,o,s,l){Object.defineProperty(e,n,{get:function(){if(!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}});function u(f,c){Object.defineProperty(c,0,{get:function(){return f[s]},set:function(p){f[s]=p}}),Object.defineProperty(c,1,{get:function(){return f[l]},set:function(p){f[l]=p}})}}Object.defineProperty&&(a("position","_legacyPos","x","y"),a("scale","_legacyScale","scaleX","scaleY"),a("origin","_legacyOrigin","originX","originY"))})(),t})();Ut(Jv,ar);Ut(Jv,Ja);function Zv(t,e,r,i,a){r=r||{};var n=[];kb(t,"",t,e,r,i,n,a);var o=n.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(),n.length>0&&r.during&&n[0].during(function(d,v){r.during(v)});for(var p=0;p<n.length;p++){var h=n[p];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return n}function jv(t,e,r){for(var i=0;i<r;i++)t[i]=e[i]}function NP(t){return lt(t[0])}function RP(t,e,r){if(lt(e[r]))if(lt(t[r])||(t[r]=[]),ft(e[r])){var i=e[r].length;t[r].length!==i&&(t[r]=new e[r].constructor(i),jv(t[r],e[r],i))}else{var a=e[r],n=t[r],o=a.length;if(NP(a))for(var s=a[0].length,l=0;l<o;l++)n[l]?jv(n[l],a[l],s):n[l]=Array.prototype.slice.call(a[l]);else jv(n,a,o);n.length=a.length}else t[r]=e[r]}function kP(t,e){return t===e||lt(t)&&lt(e)&&zP(t,e)}function zP(t,e){var r=t.length;if(r!==e.length)return!1;for(var i=0;i<r;i++)if(t[i]!==e[i])return!1;return!0}function kb(t,e,r,i,a,n,o,s){for(var l=ie(i),u=a.duration,f=a.delay,c=a.additive,p=a.setToFinal,h=!$(n),d=t.animators,v=[],m=0;m<l.length;m++){var g=l[m],y=i[g];if(y!=null&&r[g]!=null&&(h||n[g]))if($(y)&&!lt(y)&&!as(y)){if(e){s||(r[g]=y,t.updateDuringAnimation(e));continue}kb(t,g,r[g],y,a,n&&n[g],o,s)}else v.push(g);else s||(r[g]=y,t.updateDuringAnimation(e),v.push(g))}var x=v.length;if(!c&&x)for(var _=0;_<d.length;_++){var b=d[_];if(b.targetName===e){var S=b.stopTracks(v);if(S){var w=pe(d,b);d.splice(w,1)}}}if(a.force||(v=Ue(v,function(M){return!kP(i[M],r[M])}),x=v.length),x>0||a.force&&!o.length){var A=void 0,C=void 0,T=void 0;if(s){C={},p&&(A={});for(var _=0;_<x;_++){var g=v[_];C[g]=r[g],p?A[g]=i[g]:r[g]=i[g]}}else if(p){T={};for(var _=0;_<x;_++){var g=v[_];T[g]=Fn(r[g]),RP(r,i,g)}}var b=new Kl(r,!1,!1,c?Ue(d,function(O){return O.targetName===e}):null);b.targetName=e,a.scope&&(b.scope=a.scope),p&&A&&b.whenWithKeys(0,A,v),T&&b.whenWithKeys(0,T,v),b.whenWithKeys(u??500,s?C:i,v).delay(f||0),t.addAnimator(b,e),o.push(b)}}function Pb(t,e,r,i){return!(r&&r.hoverLayer||i)||Nb(t)||e&&Nb(e)?bc:xs}function Nb(t){return t.type==="text"||t.type==="tspan"}function Rb(t,e,r){return!e&&!t.__inHover&&r&&r.duration>0}var Sc=Jv;var zb=(function(t){R(e,t);function e(r){var i=t.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(r),i}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 i=this._children,a=0;a<i.length;a++)if(i[a].name===r)return i[a]},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,i){if(r&&r!==this&&r.parent!==this&&i&&i.parent===this){var a=this._children,n=a.indexOf(i);n>=0&&(a.splice(n,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,i){var a=pe(this._children,r);return a>=0&&this.replaceAt(i,a),this},e.prototype.replaceAt=function(r,i){var a=this._children,n=a[i];if(r&&r!==this&&r.parent!==this&&r!==n){a[i]=r,n.parent=null;var o=this.__zr;o&&n.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var i=this.__zr;i&&i!==r.__zr&&r.addSelfToZr(i),i&&i.refresh()},e.prototype.remove=function(r){var i=this.__zr,a=this._children,n=pe(a,r);return n<0?this:(a.splice(n,1),r.parent=null,i&&r.removeSelfFromZr(i),i&&i.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,i=this.__zr,a=0;a<r.length;a++){var n=r[a];i&&n.removeSelfFromZr(i),n.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,i){for(var a=this._children,n=0;n<a.length;n++){var o=a[n];r.call(i,o,n)}return this},e.prototype.traverse=function(r,i){for(var a=0;a<this._children.length;a++){var n=this._children[a],o=r.call(i,n);n.isGroup&&!o&&n.traverse(r,i)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++){var a=this._children[i];a.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++){var a=this._children[i];a.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var i=new ce(0,0,0,0),a=r||this._children,n=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(n);f?(ce.applyTransform(i,u,f),o=o||i.clone(),o.union(i)):(o=o||u.clone(),o.union(u))}}return o||i},e})(Sc);zb.prototype.type="group";var Te=zb;var Cc={},Vb={};function VP(t){delete Vb[t]}function UP(t){if(!t)return!1;if(typeof t=="string")return ms(t,1)<Yl;if(t.colorStops){for(var e=t.colorStops,r=0,i=e.length,a=0;a<i;a++)r+=ms(e[a].color,1);return r/=i,r<Yl}return!1}var BP=(function(){function t(e,r,i){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,i=i||{},this.dom=r,this.id=e;var n=new Y_,o=i.renderer||"canvas";Cc[o]||(o=ie(Cc)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new Cc[o](r,n,i,e),l=i.ssr||s.ssrOnly;this.storage=n,this.painter=s;var u=!ye.node&&!ye.worker&&!l?new wb(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,c=f==null||f==="auto"?ye.touchEventsSupported:!!f,p=44,h;c&&(h=X(i.pointerSize,p)),this.handler=new U_(n,s,u,s.root,h),this.animation=new xb({stage:{update:l?null:function(){return a._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=UP(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,i=Hn(),a=this._needsRefresh,n=this._needsRefreshHover;(a||n)&&(r=!0,this._refresh({animUpdate:e,refresh:a,refreshHover:n}));var o=Hn();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-i})):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,i){return this._disposed||this.handler.on(e,r,i),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 Te&&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,VP(this.id))},t})();function em(t,e){var r=new BP(Rf(),t,e);return Vb[r.id]=r,r}function Ub(t,e){Cc[t]=e}var Qv;function Bb(t){if(typeof Qv=="function")return Qv(t)}function Fb(t){Qv=t}var Hb=1e-4,Gb=20;function HP(t){return t.replace(/^\s+|\s+$/g,"")}var nt=Math.min,we=Math.max,et=Math.abs,Pr=Math.round,Pi=Math.floor,en=Math.ceil,tn=Math.pow,_s=Math.log,tm=Math.LN10,GP=Math.PI,KP=Math.random;function or(t,e,r,i){var a=e[0],n=e[1],o=r[0],s=r[1],l=n-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(i)if(l>0){if(t<=a)return o;if(t>=n)return s}else{if(t>=a)return o;if(t<=n)return s}else{if(t===a)return o;if(t===n)return s}return(t-a)/l*u+o}var Ae=YP;function YP(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 wc(t,e,r)}function wc(t,e,r){return G(t)?WP(t)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function WP(t){return!!HP(t).match(/%$/)}function De(t,e,r){return isNaN(e)?r?""+t:+t:(e=nt(we(0,e),Gb),t=(+t).toFixed(e),r?t:+t)}function Ni(t){return t.sort(function(e,r){return e-r}),t}function ci(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Pr(t*e)/e===t)return r}return $P(t)}function $P(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),i=r>0?+e.slice(r+1):0,a=r>0?r:e.length,n=e.indexOf("."),o=n<0?0:a-1-n;return we(0,o-i)}function Kb(t,e,r){var i=et(t[1]-t[0]);if(!isFinite(i)||i===0)return NaN;var a=_s(2*et(r||1)*et(i))/tm,n=_s(et(e))/tm,o=we(0,en(-a+n));return isFinite(o)||(o=NaN),o}function Yb(t,e){var r=ir(t,function(h,d){return h+(isNaN(d)?0:d)},0);if(r===0)return[];for(var i=tn(10,e),a=F(t,function(h){return(isNaN(h)?0:h)/r*i*100}),n=i*100,o=F(a,function(h){return Pi(h)}),s=ir(o,function(h,d){return h+d},0),l=F(a,function(h,d){return h-o[d]});s<n;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,p=l.length;c<p;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return F(o,function(h){return h/i})}function ha(t,e){var r=we(ci(t),ci(e)),i=t+e;return r>Gb?i:De(i,r)}var rm=tn(2,53)-1;function im(t){var e=GP*2;return(t%e+e)%e}function Xl(t){return t>-Hb&&t<Hb}var XP=/^(?:(\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 pi(t){if(t instanceof Date)return t;if(G(t)){var e=XP.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(Pr(t))}function Tc(t){return tn(10,Ec(t))}function Ec(t){if(t===0)return 0;var e=Pi(_s(t)/tm);return t/tn(10,e)>=10&&e++,e}var am=2;function $n(t,e){var r=Ec(t),i=tn(10,r),a=t/i,n;return e===am?n=1:e?a<1.5?n=1:a<2.5?n=2:a<4?n=3:a<7?n=5:n=10:a<1?n=1:a<2?n=2:a<3?n=3:a<5?n=5:n=10,t=n*i,De(t,-r)}function nm(t){t.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,r=1,i=0;i<t.length;){for(var a=t[i].interval,n=t[i].close,o=0;o<2;o++)a[o]<=e&&(a[o]=e,n[o]=o?1:1-r),e=a[o],r=n[o];a[0]===a[1]&&n[0]*n[1]!==1?t.splice(i,1):i++}return t;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function Ri(t){var e=parseFloat(t);return e==t&&(e!==0||!G(t)||t.indexOf("x")<=0)?e:NaN}function om(t){return!isNaN(Ri(t))}function ql(){return Pr(KP()*9)}function Wb(t,e){return e===0?t:Wb(e,t%e)}function sm(t,e){return t==null?e:e==null?t:t*e/Wb(t,e)}function yt(t){return t!=null&&isFinite(t)}var qP="[ECharts] ",$b={},ZP=typeof console<"u"&&console.warn&&console.log;function jP(t,e,r){if(ZP){if(r){if($b[e])return;$b[e]=!0}console[t](qP+e)}}function lm(t,e){jP("error",t,e)}function It(t){throw new Error(t)}function Xb(t,e,r){return(e-t)*r+t}var qb="series\0",JP="\0_ec_\0";function Ge(t){return t instanceof Array?t:t==null?[]:[t]}function jl(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,a=r.length;i<a;i++){var n=r[i];!t.emphasis[e].hasOwnProperty(n)&&t[e].hasOwnProperty(n)&&(t.emphasis[e][n]=t[e][n])}}}var um=["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 da(t){return $(t)&&!V(t)&&!(t instanceof Date)?t.value:t}function Zb(t){return $(t)&&!(t instanceof Array)}function Ac(t,e,r){var i=r==="normalMerge",a=r==="replaceMerge",n=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=te();E(e,function(l,u){if(!$(l)){e[u]=null;return}});var s=QP(t,o,r);return(i||a)&&eN(s,t,o,e),i&&tN(s,e),i||a?rN(s,e,a):n&&iN(s,e),aN(s),s}function QP(t,e,r){var i=[];if(r==="replaceAll")return i;for(var a=0;a<t.length;a++){var n=t[a];n&&n.id!=null&&e.set(n.id,a),i.push({existing:r==="replaceMerge"||Ss(n)?null:n,newOption:null,keyInfo:null,brandNew:null})}return i}function eN(t,e,r,i){E(i,function(a,n){if(!(!a||a.id==null)){var o=Zl(a.id),s=r.get(o);if(s!=null){var l=t[s];qe(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=e[s],i[n]=null}}})}function tN(t,e){E(e,function(r,i){if(!(!r||r.name==null))for(var a=0;a<t.length;a++){var n=t[a].existing;if(!t[a].newOption&&n&&(n.id==null||r.id==null)&&!Ss(r)&&!Ss(n)&&jb("name",n,r)){t[a].newOption=r,e[i]=null;return}}})}function rN(t,e,r){E(e,function(i){if(i){for(var a,n=0;(a=t[n])&&(a.newOption||Ss(a.existing)||a.existing&&i.id!=null&&!jb("id",i,a.existing));)n++;a?(a.newOption=i,a.brandNew=r):t.push({newOption:i,brandNew:r,existing:null,keyInfo:null}),n++}})}function iN(t,e){E(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function aN(t){var e=te();E(t,function(r){var i=r.existing;i&&e.set(i.id,r)}),E(t,function(r){var i=r.newOption;qe(!i||i.id==null||!e.get(i.id)||e.get(i.id)===r,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&e.set(i.id,r),!r.keyInfo&&(r.keyInfo={})}),E(t,function(r,i){var a=r.existing,n=r.newOption,o=r.keyInfo;if($(n)){if(o.name=n.name!=null?Zl(n.name):a?a.name:qb+i,a)o.id=Zl(a.id);else if(n.id!=null)o.id=Zl(n.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function jb(t,e,r){var i=wt(e[t],null),a=wt(r[t],null);return i!=null&&a!=null&&i===a}function Zl(t){return wt(t,"")}function wt(t,e){return t==null?e:G(t)?t:me(t)||Ll(t)?t+"":e}function Mc(t){var e=t.name;return!!(e&&e.indexOf(qb))}function Ss(t){return t&&t.id!=null&&Zl(t.id).indexOf(JP)===0}function Jb(t,e,r){E(t,function(i){var a=i.newOption;$(a)&&(i.keyInfo.mainType=e,i.keyInfo.subType=nN(e,a,i.existing,r))})}function nN(t,e,r,i){var a=e.type?e.type:r?r.subType:i.determineSubType(t,e);return a}function Qb(t,e){var r={},i={};return a(t||[],r),a(e||[],i,r),[n(r),n(i)];function a(o,s,l){for(var u=0,f=o.length;u<f;u++){var c=wt(o[u].seriesId,null);if(c==null)return;for(var p=Ge(o[u].dataIndex),h=l&&l[c],d=0,v=p.length;d<v;d++){var m=p[d];h&&h[m]?h[m]=null:(s[c]||(s[c]={}))[m]=1}}}function n(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=n(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function Xr(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return V(e.dataIndex)?F(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return V(e.name)?F(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function ae(){var t="__ec_inner_"+oN++;return function(e){return e[t]||(e[t]={})}}var oN=ql();function Lc(t,e,r){var i=Jl(e,r),a=i.mainTypeSpecified,n=i.queryOptionMap,o=i.others,s=o,l=r?r.defaultMainType:null;return!a&&l&&n.set(l,{}),n.each(function(u,f){var c=ki(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 Jl(t,e){var r;if(G(t)){var i={};i[t+"Index"]=0,r=i}else r=t;var a=te(),n={},o=!1;return E(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){n[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&pe(e.includeMainTypes,f)<0)){o=o||!!f;var p=a.get(f)||a.set(f,{});p[c]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:n}}var Ht={useDefault:!0,enableAll:!1,enableNone:!1};function ki(t,e,r,i){i=i||Ht;var a=r.index,n=r.id,o=r.name,s={models:null,specified:a!=null||n!=null||o!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}if(a==="none"||a===!1){if(i.enableNone)return s.models=[],s;a=-1}return a==="all"&&(i.enableAll?a=n=o=null:a=-1),s.models=t.queryComponents({mainType:e,index:a,id:n,name:o}),s}function eS(t,e,r){var i={};i[e+"Id"]=t[e+"Id"],i[e+"Index"]=t[e+"Index"],i[e+"Name"]=t[e+"Name"];var a={mainType:e,query:i};return r&&(a.subType=r),a}function fm(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function tS(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function rS(t){return t==="auto"?ye.domSupported?"html":"richText":t||"html"}function Dc(t,e,r,i,a){var n=e==null||e==="auto";if(i==null)return i;if(me(i)){var o=Xb(r||0,i,a);return De(o,n?Math.max(ci(r||0),ci(i)):e)}else{if(G(i))return a<1?r:i;for(var s=[],l=r,u=i,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var p=t.getDimensionInfo(c);if(p&&p.type==="ordinal")s[c]=(a<1&&l?l:u)[c];else{var h=l&&l[c]?l[c]:0,d=u[c],o=Xb(h,d,a);s[c]=De(o,n?Math.max(ci(h),ci(d)):e)}}return s}}var b3=(function(){function t(){}return t.prototype.reset=function(e,r,i,a){return this._list=e,this._step=a=a||1,this._idx=r,this._end=i??(a>0?e.length:0),this.item=null,this.key=NaN,this},t.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},t})();function Gt(){return[1/0,-1/0]}function Ql(t,e){hi(e)&&(e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e))}function cm(t,e){hi(e)&&e<t[0]&&(t[0]=e)}function pm(t,e){hi(e)&&e>t[1]&&(t[1]=e)}function iS(t,e){va(e[0],e[1])&&(e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]))}function hi(t){return t!=null&&isFinite(t)}function va(t,e){return hi(t)&&hi(e)&&t<=e}function aS(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}function nS(t){va(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function Oc(){var t="__ec_once_"+sN++;return function(e,r){se(e,t)||(e[t]=1,r())}}var sN=ql();function Cs(t,e,r){var i=te(),a=0;E(t,function(n){var o=e(n),s=i.get(o)||0;r&&r(n,s),!s&&!r&&(t[a++]=n),i.set(o,s+1)}),r||(t.length=a)}function oS(t){return t.value+""}function sS(t){return t+""}function ws(t,e){return X(e,!0)?t.seriesIndex+2:0}function Ic(t,e,r){var i=t.getData().count();return{progressiveRender:r.progressiveEnabled&&e.incrementalPrepareRender&&i>=r.threshold,large:t.get("large")&&i>=t.get("largeThreshold"),modDataCount:t.get("progressiveChunkMode")==="mod"?t.getData().count():null}}function Pc(t,e){return{seriesType:t,overallReset:e}}function Ts(t){return{overallReset:t}}var lN=".",Xn="___EC__COMPONENT__CONTAINER___",lS="___EC__EXTENDED_CLASS___";function _r(t){var e={main:"",sub:""};if(t){var r=t.split(lN);e.main=r[0]||"",e.sub=r[1]||""}return e}function uN(t){qe(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function uS(t){return!!(t&&t[lS])}function Es(t,e){t.$constructor=t,t.extend=function(r){var i=this,a;return fN(i)?a=(function(n){R(o,n);function o(){return n.apply(this,arguments)||this}return o})(i):(a=function(){(r.$constructor||i).apply(this,arguments)},m_(a,this)),k(a.prototype,r),a[lS]=!0,a.extend=this.extend,a.superCall=pN,a.superApply=hN,a.superClass=i,a}}function fN(t){return Z(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function Nc(t,e){t.extend=e.extend}var cN=Math.round(Math.random()*10);function fS(t){var e=["__\0is_clz",cN++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function pN(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,r)}function hN(t,e,r){return this.superClass.prototype[e].apply(t,r)}function rn(t){var e={};t.registerClass=function(i){var a=i.type||i.prototype.type;if(a){uN(a),i.prototype.type=a;var n=_r(a);if(!n.sub)e[n.main]=i;else if(n.sub!==Xn){var o=r(n);o[n.sub]=i}}return i},t.getClass=function(i,a,n){var o=e[i];if(o&&o[Xn]&&(o=a?o[a]:null),n&&!o)throw new Error(a?"Component "+i+"."+(a||"")+" is used but not imported.":i+".type should be specified.");return o},t.getClassesByMainType=function(i){var a=_r(i),n=[],o=e[a.main];return o&&o[Xn]?E(o,function(s,l){l!==Xn&&n.push(s)}):n.push(o),n},t.hasClass=function(i){var a=_r(i);return!!e[a.main]},t.getAllClassMainTypes=function(){var i=[];return E(e,function(a,n){i.push(n)}),i},t.hasSubTypes=function(i){var a=_r(i),n=e[a.main];return n&&n[Xn]};function r(i){var a=e[i.main];return(!a||!a[Xn])&&(a=e[i.main]={},a[Xn]=!0),a}}function zi(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(i,a,n){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(a&&pe(a,l)>=0||n&&pe(n,l)<0)){var u=i.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var dN=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],vN=zi(dN),cS=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return vN(this,e,r)},t})();var dm=new Di(50);function hS(t){if(typeof t=="string"){var e=dm.get(t);return e&&e.image}else return t}function eu(t,e,r,i,a){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var n=dm.get(t),o={hostEl:r,cb:i,cbPayload:a};return n?(e=n.image,!As(e)&&n.pending.push(o)):(e=St.loadImage(t,pS,pS),e.__zrImageSrc=t,dm.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function pS(){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],i=r.cb;i&&i(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function As(t){return t&&t.width&&t.height}var vm=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function gm(t,e,r,i,a){var n={};return gS(n,t,e,r,i,a),n.text}function gS(t,e,r,i,a,n){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
3
+ `);n=yS(r,i,a,n);for(var s=!1,l={},u=0,f=o.length;u<f;u++)xS(l,o[u],n),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join(`
4
+ `),t.isTruncated=s}function yS(t,e,r,i){i=i||{};var a=k({},i);r=X(r,"..."),a.maxIterations=X(i.maxIterations,2);var n=a.minChar=X(i.minChar,0),o=a.fontMeasureInfo=ui(e),s=o.asciiCharWidth;a.placeholder=X(i.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<n&&l>=s;u++)l-=s;var f=fi(o,r);return f>l&&(r="",f=0),l=t-f,a.ellipsis=r,a.ellipsisWidth=f,a.contentWidth=l,a.containerWidth=t,a}function xS(t,e,r){var i=r.containerWidth,a=r.contentWidth,n=r.fontMeasureInfo;if(!i){t.textLine="",t.isTruncated=!1;return}var o=fi(n,e);if(o<=i){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?gN(e,a,n):o>0?Math.floor(e.length*a/o):0;e=e.substr(0,l),o=fi(n,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function gN(t,e,r){for(var i=0,a=0,n=t.length;a<n&&i<e;a++)i+=$v(r,t.charCodeAt(a));return a}function _S(t,e,r,i){var a=xm(t),n=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=n==="truncate",c=Yn(u),p=X(e.lineHeight,c),h=e.lineOverflow==="truncate",d=!1,v=e.width;v==null&&r!=null&&(v=r-s);var m=e.height;m==null&&i!=null&&(m=i-l);var g;v!=null&&(n==="break"||n==="breakAll")?g=a?SS(a,e.font,v,n==="breakAll",0).lines:[]:g=a?a.split(`
5
+ `):[];var y=g.length*p;if(m==null&&(m=y),y>m&&h){var x=Math.floor(m/p);d=d||g.length>x,g=g.slice(0,x),y=g.length*p}if(a&&f&&v!=null)for(var _=yS(v,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},S=0;S<g.length;S++)xS(b,g[S],_),g[S]=b.textLine,d=d||b.isTruncated;for(var w=m,A=0,C=ui(u),S=0;S<g.length;S++)A=Math.max(fi(C,g[S]),A);v==null&&(v=A);var T=v;return w+=l,T+=s,{lines:g,height:m,outerWidth:T,outerHeight:w,lineHeight:p,calculatedLineHeight:c,contentWidth:A,contentHeight:y,width:v,isTruncated:d}}var yN=(function(){function t(){}return t})(),dS=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),xN=(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 bS(t,e,r,i,a){var n=new xN,o=xm(t);if(!o)return n;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&&i!=null&&(c=i-u);for(var p=e.overflow,h=(p==="break"||p==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:p==="breakAll"}:null,d=vm.lastIndex=0,v;(v=vm.exec(o))!=null;){var m=v.index;m>d&&mm(n,o.substring(d,m),e,h),mm(n,v[2],e,h,v[1]),d=vm.lastIndex}d<o.length&&mm(n,o.substring(d,o.length),e,h);var g=[],y=0,x=0,_=p==="truncate",b=e.lineOverflow==="truncate",S={};function w(be,Xe,Be){be.width=Xe,be.lineHeight=Be,y+=Be,x=Math.max(x,Xe)}e:for(var A=0;A<n.lines.length;A++){for(var C=n.lines[A],T=0,M=0,O=0;O<C.tokens.length;O++){var L=C.tokens[O],D=L.styleName&&e.rich[L.styleName]||{},I=L.textPadding=D.padding,P=I?I[1]+I[3]:0,z=L.font=D.font||e.font;L.contentHeight=Yn(z);var N=X(D.height,L.contentHeight);if(L.innerHeight=N,I&&(N+=I[0]+I[2]),L.height=N,L.lineHeight=Or(D.lineHeight,e.lineHeight,N),L.align=D&&D.align||a,L.verticalAlign=D&&D.verticalAlign||"middle",b&&c!=null&&y+L.lineHeight>c){var U=n.lines.length;O>0?(C.tokens=C.tokens.slice(0,O),w(C,M,T),n.lines=n.lines.slice(0,A+1)):n.lines=n.lines.slice(0,A),n.isTruncated=n.isTruncated||n.lines.length<U;break e}var B=D.width,Y=B==null||B==="auto";if(typeof B=="string"&&B.charAt(B.length-1)==="%")L.percentWidth=B,g.push(L),L.contentWidth=fi(ui(z),L.text);else{if(Y){var q=D.backgroundColor,Q=q&&q.image;Q&&(Q=hS(Q),As(Q)&&(L.width=Math.max(L.width,Q.width*N/Q.height)))}var j=_&&f!=null?f-M:null;j!=null&&j<L.width?!Y||j<P?(L.text="",L.width=L.contentWidth=0):(gS(S,L.text,j-P,z,e.ellipsis,{minChar:e.truncateMinChar}),L.text=S.text,n.isTruncated=n.isTruncated||S.isTruncated,L.width=L.contentWidth=fi(ui(z),L.text)):L.contentWidth=fi(ui(z),L.text)}L.width+=P,M+=L.width,D&&(T=Math.max(T,L.lineHeight))}w(C,M,T)}n.outerWidth=n.width=X(f,x),n.outerHeight=n.height=X(c,y),n.contentHeight=y,n.contentWidth=x,n.outerWidth+=l,n.outerHeight+=u;for(var A=0;A<g.length;A++){var L=g[A],fe=L.percentWidth;L.width=parseInt(fe,10)/100*n.width}return n}function mm(t,e,r,i,a){var n=e==="",o=a&&r.rich[a]||{},s=t.lines,l=o.font||r.font,u=!1,f,c;if(i){var p=o.padding,h=p?p[1]+p[3]:0;if(o.width!=null&&o.width!=="auto"){var d=xr(o.width,i.width)+h;s.length>0&&d+i.accumWidth>i.width&&(f=e.split(`
6
+ `),u=!0),i.accumWidth=d}else{var v=SS(e,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=v.accumWidth+h,c=v.linesWidths,f=v.lines}}f||(f=e.split(`
7
+ `));for(var m=ui(l),g=0;g<f.length;g++){var y=f[g],x=new yN;if(x.styleName=a,x.text=y,x.isLineHolder=!y&&!n,typeof o.width=="number"?x.width=o.width:x.width=c?c[g]:fi(m,y),!g&&!u){var _=(s[s.length-1]||(s[0]=new dS)).tokens,b=_.length;b===1&&_[0].isLineHolder?_[0]=x:(y||!b||n)&&_.push(x)}else s.push(new dS([x]))}}function _N(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var bN=ir(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function SN(t){return _N(t)?!!bN[t]:!0}function SS(t,e,r,i,a){for(var n=[],o=[],s="",l="",u=0,f=0,c=ui(e),p=0;p<t.length;p++){var h=t.charAt(p);if(h===`
8
+ `){l&&(s+=l,f+=u),n.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=$v(c,h.charCodeAt(0)),v=i?!1:!SN(h);if(n.length?f+d>r:a+f+d>r){f?(s||l)&&(v?(s||(s=l,l="",u=0,f=u),n.push(s),o.push(f-u),l+=h,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),n.push(s),o.push(f),s=h,f=d)):v?(n.push(l),o.push(u),l=h,u=d):(n.push(h),o.push(d));continue}f+=d,v?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(n.push(s),o.push(f)),n.length===1&&(f+=a),{accumWidth:f,lines:n,linesWidths:o}}function ym(t,e,r,i,a,n){if(t.baseX=r,t.baseY=i,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;ce.set(vS,Qa(r,o,a),pa(i,s,n),o,s),ce.intersect(e,vS,null,mS);var l=mS.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=Qa(l.x,l.width,a,!0),t.baseY=pa(l.y,l.height,n,!0)}}var vS=new ce(0,0,0,0),mS={outIntersectRect:{},clamp:!0};function xm(t){return t!=null?t+="":t=""}function CS(t){var e=xm(t.text),r=t.font,i=fi(ui(r),e),a=Yn(r);return Rc(t,i,a,null)}function Rc(t,e,r,i){var a=new ce(Qa(t.x||0,e,t.textAlign),pa(t.y||0,r,t.textBaseline),e,r),n=i??(_m(t)?t.lineWidth:0);return n>0&&(a.x-=n/2,a.y-=n/2,a.width+=n,a.height+=n),a}function _m(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var Cm="__zr_style_"+Math.round(Math.random()*10),Vi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},qn={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Vi[Cm]=!0;var wS=["z","z2","invisible"],CN=["invisible"],wN=(function(t){R(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var i=ie(r),a=0;a<i.length;a++){var n=i[a];n==="style"?this.useStyle(r[n]):t.prototype.attrKV.call(this,n,r[n])}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,i,a,n){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&TN(this,r,i)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(n&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,i){return this.rectContain(r,i)},e.prototype.traverse=function(r,i){r.call(i,this)},e.prototype.rectContain=function(r,i){var a=this.transformCoordToLocal(r,i),n=this.getBoundingRect();return n.contain(a[0],a[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,a=this.getBoundingRect(),n=this.style,o=n.shadowBlur||0,s=n.shadowOffsetX||0,l=n.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new ce(0,0,0,0)),i?ce.applyTransform(r,a,i):r.copy(a),(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 ce(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,i){r!=="style"?t.prototype.attrKV.call(this,r,i):this.style?this.setStyle(i):this.useStyle(i)},e.prototype.setStyle=function(r,i){return typeof r=="string"?this.style[r]=i:k(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Vn,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Vn)},e.prototype.styleUpdated=function(){this.__dirty&=~Vn},e.prototype.createStyle=function(r){return Fa(Vi,r)},e.prototype.useStyle=function(r){r[Cm]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},e.prototype._useHoverStyle=function(r){this.__hoverStyle=r},e.prototype.isStyleObject=function(r){return r[Cm]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,i,wS)},e.prototype._applyStateObj=function(r,i,a,n,o,s){t.prototype._applyStateObj.call(this,r,i,a,n,o,s);var l=!(i&&n),u=this.__inHover===xs,f;if(i&&i.style?o?n?f=i.style:(f=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(f,i.style)):(f=this._mergeStyle(this.createStyle(),n?this.style:a.style),this._mergeStyle(f,i.style)):l&&(f=a.style),f)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var p=ie(c),h=0;h<p.length;h++){var d=p[h];d in f&&(f[d]=f[d],this.style[d]=c[d])}for(var v=ie(f),h=0;h<v.length;h++){var d=v[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 m=this.__inHover?CN:wS,h=0;h<m.length;h++){var d=m[h];i&&i[d]!=null?this[d]=i[d]:l&&a[d]!=null&&(this[d]=a[d])}},e.prototype._mergeStates=function(r){for(var i=t.prototype._mergeStates.call(this,r),a,n=0;n<r.length;n++){var o=r[n];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(i.style=a),i},e.prototype._mergeStyle=function(r,i){return k(r,i),r},e.prototype.getAnimationStyleProps=function(){return qn},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=Wt|Vn})(),e})(Sc),bm=new ce(0,0,0,0),Sm=new ce(0,0,0,0);function TN(t,e,r){return bm.copy(t.getBoundingRect()),t.transform&&bm.applyTransform(t.transform),Sm.width=e,Sm.height=r,!bm.intersect(Sm)}var br=wN;var Zr=Math.min,jr=Math.max,wm=Math.sin,Tm=Math.cos,Zn=Math.PI*2,kc=Ha(),zc=Ha(),Vc=Ha();function Em(t,e,r,i,a,n){a[0]=Zr(t,r),a[1]=Zr(e,i),n[0]=jr(t,r),n[1]=jr(e,i)}var TS=[],ES=[];function AS(t,e,r,i,a,n,o,s,l,u){var f=Jf,c=rt,p=f(t,r,a,o,TS);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<p;h++){var d=c(t,r,a,o,TS[h]);l[0]=Zr(d,l[0]),u[0]=jr(d,u[0])}p=f(e,i,n,s,ES);for(var h=0;h<p;h++){var v=c(e,i,n,s,ES[h]);l[1]=Zr(v,l[1]),u[1]=jr(v,u[1])}l[0]=Zr(t,l[0]),u[0]=jr(t,u[0]),l[0]=Zr(o,l[0]),u[0]=jr(o,u[0]),l[1]=Zr(e,l[1]),u[1]=jr(e,u[1]),l[1]=Zr(s,l[1]),u[1]=jr(s,u[1])}function MS(t,e,r,i,a,n,o,s){var l=ec,u=Ct,f=jr(Zr(l(t,r,a),1),0),c=jr(Zr(l(e,i,n),1),0),p=u(t,r,a,f),h=u(e,i,n,c);o[0]=Zr(t,a,p),o[1]=Zr(e,n,h),s[0]=jr(t,a,p),s[1]=jr(e,n,h)}function LS(t,e,r,i,a,n,o,s,l){var u=oa,f=sa,c=Math.abs(a-n);if(c%Zn<1e-4&&c>1e-4){s[0]=t-r,s[1]=e-i,l[0]=t+r,l[1]=e+i;return}if(kc[0]=Tm(a)*r+t,kc[1]=wm(a)*i+e,zc[0]=Tm(n)*r+t,zc[1]=wm(n)*i+e,u(s,kc,zc),f(l,kc,zc),a=a%Zn,a<0&&(a=a+Zn),n=n%Zn,n<0&&(n=n+Zn),a>n&&!o?n+=Zn:a<n&&o&&(a+=Zn),o){var p=n;n=a,a=p}for(var h=0;h<n;h+=Math.PI/2)h>a&&(Vc[0]=Tm(h)*r+t,Vc[1]=wm(h)*i+e,u(s,Vc,s),f(l,Vc,l))}var Ke={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},jn=[],Jn=[],Ui=[],an=[],Bi=[],Fi=[],Am=Math.min,Mm=Math.max,Qn=Math.cos,eo=Math.sin,ma=Math.abs,Om=Math.PI,nn=Om*2,Lm=typeof Float32Array<"u",tu=[];function Dm(t){var e=Math.round(t/Om*1e8)/1e8;return e%2*Om}function Im(t,e){var r=Dm(t[0]);r<0&&(r+=nn);var i=r-t[0],a=t[1];a+=i,!e&&a-r>=nn?a=r+nn:e&&r-a>=nn?a=r-nn:!e&&r>a?a=r+(nn-Dm(r-a)):e&&r<a&&(a=r-(nn-Dm(a-r))),t[0]=r,t[1]=a}var EN=(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,i){i=i||0,i>0&&(this._ux=ma(i/Gv/e)||0,this._uy=ma(i/Gv/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(Ke.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 i=ma(e-this._xi),a=ma(r-this._yi),n=i>this._ux||a>this._uy;if(this.addData(Ke.L,e,r),this._ctx&&n&&this._ctx.lineTo(e,r),n)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=i*i+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,i,a,n,o){return this._drawPendingPt(),this.addData(Ke.C,e,r,i,a,n,o),this._ctx&&this._ctx.bezierCurveTo(e,r,i,a,n,o),this._xi=n,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,i,a){return this._drawPendingPt(),this.addData(Ke.Q,e,r,i,a),this._ctx&&this._ctx.quadraticCurveTo(e,r,i,a),this._xi=i,this._yi=a,this},t.prototype.arc=function(e,r,i,a,n,o){this._drawPendingPt(),tu[0]=a,tu[1]=n,Im(tu,o),a=tu[0],n=tu[1];var s=n-a;return this.addData(Ke.A,e,r,i,i,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,i,a,n,o),this._xi=Qn(n)*i+e,this._yi=eo(n)*i+r,this},t.prototype.arcTo=function(e,r,i,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,i,a,n),this},t.prototype.rect=function(e,r,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,i,a),this.addData(Ke.R,e,r,i,a),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ke.Z);var e=this._ctx,r=this._x0,i=this._y0;return e&&e.closePath(),this._xi=r,this._yi=i,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)&&Lm&&(this.data=new Float32Array(r));for(var i=0;i<r;i++)this.data[i]=e[i];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,i=0,a=this._len,n=0;n<r;n++)i+=e[n].len();var o=this.data;if(Lm&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(a+i),a>0&&o))for(var s=0;s<a;s++)this.data[s]=o[s];for(var n=0;n<r;n++)for(var l=e[n].data,s=0;s<l.length;s++)this.data[a++]=l[s];this._len=a}},t.prototype.addData=function(e,r,i,a,n,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,Lm&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){Ui[0]=Ui[1]=Bi[0]=Bi[1]=Number.MAX_VALUE,an[0]=an[1]=Fi[0]=Fi[1]=-Number.MAX_VALUE;var e=this.data,r=0,i=0,a=0,n=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],i=e[o+1],a=r,n=i),s){case Ke.M:r=a=e[o++],i=n=e[o++],Bi[0]=a,Bi[1]=n,Fi[0]=a,Fi[1]=n;break;case Ke.L:Em(r,i,e[o],e[o+1],Bi,Fi),r=e[o++],i=e[o++];break;case Ke.C:AS(r,i,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Bi,Fi),r=e[o++],i=e[o++];break;case Ke.Q:MS(r,i,e[o++],e[o++],e[o],e[o+1],Bi,Fi),r=e[o++],i=e[o++];break;case Ke.A:var u=e[o++],f=e[o++],c=e[o++],p=e[o++],h=e[o++],d=e[o++]+h;o+=1;var v=!e[o++];l&&(a=Qn(h)*c+u,n=eo(h)*p+f),LS(u,f,c,p,h,d,v,Bi,Fi),r=Qn(d)*c+u,i=eo(d)*p+f;break;case Ke.R:a=r=e[o++],n=i=e[o++];var m=e[o++],g=e[o++];Em(a,n,a+m,n+g,Bi,Fi);break;case Ke.Z:r=a,i=n;break}oa(Ui,Ui,Bi),sa(an,an,Fi)}return o===0&&(Ui[0]=Ui[1]=an[0]=an[1]=0),new ce(Ui[0],Ui[1],an[0]-Ui[0],an[1]-Ui[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,i=this._ux,a=this._uy,n=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,p=0;p<r;){var h=e[p++],d=p===1;d&&(n=e[p],o=e[p+1],s=n,l=o);var v=-1;switch(h){case Ke.M:n=s=e[p++],o=l=e[p++];break;case Ke.L:{var m=e[p++],g=e[p++],y=m-n,x=g-o;(ma(y)>i||ma(x)>a||p===r-1)&&(v=Math.sqrt(y*y+x*x),n=m,o=g);break}case Ke.C:{var _=e[p++],b=e[p++],m=e[p++],g=e[p++],S=e[p++],w=e[p++];v=Z_(n,o,_,b,m,g,S,w,10),n=S,o=w;break}case Ke.Q:{var _=e[p++],b=e[p++],m=e[p++],g=e[p++];v=J_(n,o,_,b,m,g,10),n=m,o=g;break}case Ke.A:var A=e[p++],C=e[p++],T=e[p++],M=e[p++],O=e[p++],L=e[p++],D=L+O;p+=1,d&&(s=Qn(O)*T+A,l=eo(O)*M+C),v=Mm(T,M)*Am(nn,Math.abs(L)),n=Qn(D)*T+A,o=eo(D)*M+C;break;case Ke.R:{s=n=e[p++],l=o=e[p++];var I=e[p++],P=e[p++];v=I*2+P*2;break}case Ke.Z:{var y=s-n,x=l-o;v=Math.sqrt(y*y+x*x),n=s,o=l;break}}v>=0&&(u[c++]=v,f+=v)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var i=this.data,a=this._ux,n=this._uy,o=this._len,s,l,u,f,c,p,h=r<1,d,v,m=0,g=0,y,x=0,_,b;if(!(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,v=this._pathLen,y=r*v,!y)))e:for(var S=0;S<o;){var w=i[S++],A=S===1;switch(A&&(u=i[S],f=i[S+1],s=u,l=f),w!==Ke.L&&x>0&&(e.lineTo(_,b),x=0),w){case Ke.M:s=u=i[S++],l=f=i[S++],e.moveTo(u,f);break;case Ke.L:{c=i[S++],p=i[S++];var C=ma(c-u),T=ma(p-f);if(C>a||T>n){if(h){var M=d[g++];if(m+M>y){var O=(y-m)/M;e.lineTo(u*(1-O)+c*O,f*(1-O)+p*O);break e}m+=M}e.lineTo(c,p),u=c,f=p,x=0}else{var L=C*C+T*T;L>x&&(_=c,b=p,x=L)}break}case Ke.C:{var D=i[S++],I=i[S++],P=i[S++],z=i[S++],N=i[S++],U=i[S++];if(h){var M=d[g++];if(m+M>y){var O=(y-m)/M;ps(u,D,P,N,O,jn),ps(f,I,z,U,O,Jn),e.bezierCurveTo(jn[1],Jn[1],jn[2],Jn[2],jn[3],Jn[3]);break e}m+=M}e.bezierCurveTo(D,I,P,z,N,U),u=N,f=U;break}case Ke.Q:{var D=i[S++],I=i[S++],P=i[S++],z=i[S++];if(h){var M=d[g++];if(m+M>y){var O=(y-m)/M;hs(u,D,P,O,jn),hs(f,I,z,O,Jn),e.quadraticCurveTo(jn[1],Jn[1],jn[2],Jn[2]);break e}m+=M}e.quadraticCurveTo(D,I,P,z),u=P,f=z;break}case Ke.A:var B=i[S++],Y=i[S++],q=i[S++],Q=i[S++],j=i[S++],fe=i[S++],be=i[S++],Xe=!i[S++],Be=q>Q?q:Q,Le=ma(q-Q)>.001,ve=j+fe,de=!1;if(h){var M=d[g++];m+M>y&&(ve=j+fe*(y-m)/M,de=!0),m+=M}if(Le&&e.ellipse?e.ellipse(B,Y,q,Q,be,j,ve,Xe):e.arc(B,Y,Be,j,ve,Xe),de)break e;A&&(s=Qn(j)*q+B,l=eo(j)*Q+Y),u=Qn(ve)*q+B,f=eo(ve)*Q+Y;break;case Ke.R:s=u=i[S],l=f=i[S+1],c=i[S++],p=i[S++];var Se=i[S++],zt=i[S++];if(h){var M=d[g++];if(m+M>y){var tt=y-m;e.moveTo(c,p),e.lineTo(c+Am(tt,Se),p),tt-=Se,tt>0&&e.lineTo(c+Se,p+Am(tt,zt)),tt-=zt,tt>0&&e.lineTo(c+Mm(Se-tt,0),p+zt),tt-=Se,tt>0&&e.lineTo(c,p+Mm(zt-tt,0));break e}m+=M}e.rect(c,p,Se,zt);break;case Ke.Z:if(h){var M=d[g++];if(m+M>y){var O=(y-m)/M;e.lineTo(u*(1-O)+s*O,f*(1-O)+l*O);break e}m+=M}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=Ke,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})(),Kt=EN;function to(t,e,r,i,a,n,o){if(a===0)return!1;var s=a,l=0,u=t;if(o>e+s&&o>i+s||o<e-s&&o<i-s||n>t+s&&n>r+s||n<t-s&&n<r-s)return!1;if(t!==r)l=(e-i)/(t-r),u=(t*i-r*e)/(t-r);else return Math.abs(n-t)<=s/2;var f=l*n-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function DS(t,e,r,i,a,n,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>e+c&&f>i+c&&f>n+c&&f>s+c||f<e-c&&f<i-c&&f<n-c&&f<s-c||u>t+c&&u>r+c&&u>a+c&&u>o+c||u<t-c&&u<r-c&&u<a-c&&u<o-c)return!1;var p=Qf(t,e,r,i,a,n,o,s,u,f,null);return p<=c/2}function OS(t,e,r,i,a,n,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>i+u&&l>n+u||l<e-u&&l<i-u&&l<n-u||s>t+u&&s>r+u&&s>a+u||s<t-u&&s<r-u&&s<a-u)return!1;var f=tc(t,e,r,i,a,n,s,l,null);return f<=u/2}var IS=Math.PI*2;function Jr(t){return t%=IS,t<0&&(t+=IS),t}var ru=Math.PI*2;function PS(t,e,r,i,a,n,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(i-a)%ru<1e-4)return!0;if(n){var c=i;i=Jr(a),a=Jr(c)}else i=Jr(i),a=Jr(a);i>a&&(a+=ru);var p=Math.atan2(l,s);return p<0&&(p+=ru),p>=i&&p<=a||p+ru>=i&&p+ru<=a}function ga(t,e,r,i,a,n){if(n>e&&n>i||n<e&&n<i||i===e)return 0;var o=(n-e)/(i-e),s=i<e?1:-1;(o===1||o===0)&&(s=i<e?.5:-.5);var l=o*(r-t)+t;return l===a?1/0:l>a?s:0}var on=Kt.CMD,ro=Math.PI*2,ON=1e-4;function IN(t,e){return Math.abs(t-e)<ON}var sr=[-1,-1,-1],Qr=[-1,-1];function PN(){var t=Qr[0];Qr[0]=Qr[1],Qr[1]=t}function NN(t,e,r,i,a,n,o,s,l,u){if(u>e&&u>i&&u>n&&u>s||u<e&&u<i&&u<n&&u<s)return 0;var f=Un(e,i,n,s,u,sr);if(f===0)return 0;for(var c=0,p=-1,h=void 0,d=void 0,v=0;v<f;v++){var m=sr[v],g=m===0||m===1?.5:1,y=rt(t,r,a,o,m);y<l||(p<0&&(p=Jf(e,i,n,s,Qr),Qr[1]<Qr[0]&&p>1&&PN(),h=rt(e,i,n,s,Qr[0]),p>1&&(d=rt(e,i,n,s,Qr[1]))),p===2?m<Qr[0]?c+=h<e?g:-g:m<Qr[1]?c+=d<h?g:-g:c+=s<d?g:-g:m<Qr[0]?c+=h<e?g:-g:c+=s<h?g:-g)}return c}function RN(t,e,r,i,a,n,o,s){if(s>e&&s>i&&s>n||s<e&&s<i&&s<n)return 0;var l=j_(e,i,n,s,sr);if(l===0)return 0;var u=ec(e,i,n);if(u>=0&&u<=1){for(var f=0,c=Ct(e,i,n,u),p=0;p<l;p++){var h=sr[p]===0||sr[p]===1?.5:1,d=Ct(t,r,a,sr[p]);d<o||(sr[p]<u?f+=c<e?h:-h:f+=n<c?h:-h)}return f}else{var h=sr[0]===0||sr[0]===1?.5:1,d=Ct(t,r,a,sr[0]);return d<o?0:n<e?h:-h}}function kN(t,e,r,i,a,n,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);sr[0]=-l,sr[1]=l;var u=Math.abs(i-a);if(u<1e-4)return 0;if(u>=ro-1e-4){i=0,a=ro;var f=n?1:-1;return o>=sr[0]+t&&o<=sr[1]+t?f:0}if(i>a){var c=i;i=a,a=c}i<0&&(i+=ro,a+=ro);for(var p=0,h=0;h<2;h++){var d=sr[h];if(d+t>o){var v=Math.atan2(s,d),f=n?1:-1;v<0&&(v=ro+v),(v>=i&&v<=a||v+ro>=i&&v+ro<=a)&&(v>Math.PI/2&&v<Math.PI*1.5&&(f=-f),p+=f)}}return p}function NS(t,e,r,i,a){for(var n=t.data,o=t.len(),s=0,l=0,u=0,f=0,c=0,p,h,d=0;d<o;){var v=n[d++],m=d===1;switch(v===on.M&&d>1&&(r||(s+=ga(l,u,f,c,i,a))),m&&(l=n[d],u=n[d+1],f=l,c=u),v){case on.M:f=n[d++],c=n[d++],l=f,u=c;break;case on.L:if(r){if(to(l,u,n[d],n[d+1],e,i,a))return!0}else s+=ga(l,u,n[d],n[d+1],i,a)||0;l=n[d++],u=n[d++];break;case on.C:if(r){if(DS(l,u,n[d++],n[d++],n[d++],n[d++],n[d],n[d+1],e,i,a))return!0}else s+=NN(l,u,n[d++],n[d++],n[d++],n[d++],n[d],n[d+1],i,a)||0;l=n[d++],u=n[d++];break;case on.Q:if(r){if(OS(l,u,n[d++],n[d++],n[d],n[d+1],e,i,a))return!0}else s+=RN(l,u,n[d++],n[d++],n[d],n[d+1],i,a)||0;l=n[d++],u=n[d++];break;case on.A:var g=n[d++],y=n[d++],x=n[d++],_=n[d++],b=n[d++],S=n[d++];d+=1;var w=!!(1-n[d++]);p=Math.cos(b)*x+g,h=Math.sin(b)*_+y,m?(f=p,c=h):s+=ga(l,u,p,h,i,a);var A=(i-g)*_/x+g;if(r){if(PS(g,y,_,b,b+S,w,e,A,a))return!0}else s+=kN(g,y,_,b,b+S,w,A,a);l=Math.cos(b+S)*x+g,u=Math.sin(b+S)*_+y;break;case on.R:f=l=n[d++],c=u=n[d++];var C=n[d++],T=n[d++];if(p=f+C,h=c+T,r){if(to(f,c,p,c,e,i,a)||to(p,c,p,h,e,i,a)||to(p,h,f,h,e,i,a)||to(f,h,f,c,e,i,a))return!0}else s+=ga(p,c,p,h,i,a),s+=ga(f,h,f,c,i,a);break;case on.Z:if(r){if(to(l,u,f,c,e,i,a))return!0}else s+=ga(l,u,f,c,i,a);l=f,u=c;break}}return!r&&!IN(u,c)&&(s+=ga(l,u,f,c,i,a)||0),s!==0}function RS(t,e,r){return NS(t,0,!1,e,r)}function kS(t,e,r,i){return NS(t,e,!0,r,i)}var Ms=le({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Vi),VN={style:le({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},qn.style)},Pm=$r.concat(["invisible","culling","z","z2","zlevel","parent"]),UN=(function(t){R(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 i=this.style;if(i.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){r.buildPath(l,r.shape)}),a.silent=!0;var n=a.style;for(var o in i)n[o]!==i[o]&&(n[o]=i[o]);n.fill=i.fill?i.decal:null,n.decal=null,n.shadowColor=null,i.strokeFirst&&(n.stroke=null);for(var s=0;s<Pm.length;++s)a[Pm[s]]=this[Pm[s]];a.__dirty|=Wt}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var i=ie(r);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var n=0;n<i.length;n++){var o=i[n],s=r[o];o==="style"?this.style?k(this.style,s):this.useStyle(s):o==="shape"?k(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(G(r)){var i=ms(r,0);return i>.5?Wl:i>.2?Eb:$l}else if(r)return $l}return Wl},e.prototype.getInsideTextStroke=function(r){var i=this.style.fill;if(G(i)){var a=this.__zr,n=!!(a&&a.isDarkMode()),o=ms(r,0)<Yl;if(n===o)return i}},e.prototype.buildPath=function(r,i,a){},e.prototype.pathUpdated=function(){this.__dirty&=~Wa},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 Kt(!1)},e.prototype.hasStroke=function(){var r=this.style,i=r.stroke;return!(i==null||i==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,i=this.style,a=!r;if(a){var n=!1;this.path||(n=!0,this.createPathProxy());var o=this.path;(n||this.__dirty&Wa)&&(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||a){s.copy(r);var l=i.strokeNoScale?this.getLineScale():1,u=i.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,i){var a=this.transformCoordToLocal(r,i),n=this.getBoundingRect(),o=this.style;if(r=a[0],i=a[1],n.contain(r,i)){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)),kS(s,l/u,r,i)))return!0}if(this.hasFill())return RS(s,r,i)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Wa,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,i){r==="shape"?this.setShape(i):t.prototype.attrKV.call(this,r,i)},e.prototype.setShape=function(r,i){var a=this.shape;return a||(a=this.shape={}),typeof r=="string"?a[r]=i:k(a,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Wa)},e.prototype.createStyle=function(r){return Fa(Ms,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.shape&&!i.shape&&(i.shape=k({},this.shape))},e.prototype._applyStateObj=function(r,i,a,n,o,s){if(t.prototype._applyStateObj.call(this,r,i,a,n,o,s),this.__inHover!==xs){var l=!(i&&n),u;if(i&&i.shape?o?n?u=i.shape:(u=k({},a.shape),k(u,i.shape)):(u=k({},n?this.shape:a.shape),k(u,i.shape)):l&&(u=a.shape),u)if(o){this.shape=k({},this.shape);for(var f={},c=ie(u),p=0;p<c.length;p++){var h=c[p];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 i=t.prototype._mergeStates.call(this,r),a,n=0;n<r.length;n++){var o=r[n];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(i.shape=a),i},e.prototype.getAnimationStyleProps=function(){return VN},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var i=(function(n){R(o,n);function o(s){var l=n.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return ee(r.style)},o.prototype.getDefaultShape=function(){return ee(r.shape)},o})(e);for(var a in r)typeof r[a]=="function"&&(i.prototype[a]=r[a]);return i},e.initDefaultProps=(function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Wt|Vn|Wa})(),e})(br),he=UN;var BN=le({strokeFirst:!0,font:gr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Ms),zS=(function(t){R(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return _m(this.style)},e.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},e.prototype.createStyle=function(r){return Fa(BN,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=CS(this.style)),this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(br);zS.prototype.type="tspan";var io=zS;var FN=le({x:0,y:0},Vi),HN={style:le({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},qn.style)};function GN(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var VS=(function(t){R(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return Fa(FN,r)},e.prototype._getSize=function(r){var i=this.style,a=i[r];if(a!=null)return a;var n=GN(i.image)?i.image:this.__image;if(!n)return 0;var o=r==="width"?"height":"width",s=i[o];return s==null?n[r]:n[r]/n[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return HN},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new ce(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e})(br);VS.prototype.type="image";var it=VS;function US(t,e){var r=e.x,i=e.y,a=e.width,n=e.height,o=e.r,s,l,u,f;a<0&&(r=r+a,a=-a),n<0&&(i=i+n,n=-n),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>a&&(c=s+l,s*=a/c,l*=a/c),u+f>a&&(c=u+f,u*=a/c,f*=a/c),l+u>n&&(c=l+u,l*=n/c,u*=n/c),s+f>n&&(c=s+f,s*=n/c,f*=n/c),t.moveTo(r+s,i),t.lineTo(r+a-l,i),l!==0&&t.arc(r+a-l,i+l,l,-Math.PI/2,0),t.lineTo(r+a,i+n-u),u!==0&&t.arc(r+a-u,i+n-u,u,0,Math.PI/2),t.lineTo(r+f,i+n),f!==0&&t.arc(r+f,i+n-f,f,Math.PI/2,Math.PI),t.lineTo(r,i+s),s!==0&&t.arc(r+s,i+s,s,Math.PI,Math.PI*1.5),t.closePath()}var Ls=Math.round;function Uc(t,e,r){if(e){var i=e.x1,a=e.x2,n=e.y1,o=e.y2;t.x1=i,t.x2=a,t.y1=n,t.y2=o;var s=r&&r.lineWidth;return s&&(Ls(i*2)===Ls(a*2)&&(t.x1=t.x2=sn(i,s,!0)),Ls(n*2)===Ls(o*2)&&(t.y1=t.y2=sn(n,s,!0))),t}}function Bc(t,e,r){if(e){var i=e.x,a=e.y,n=e.width,o=e.height;t.x=i,t.y=a,t.width=n,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=sn(i,s,!0),t.y=sn(a,s,!0),t.width=Math.max(sn(i+n,s,!1)-t.x,n===0?0:1),t.height=Math.max(sn(a+o,s,!1)-t.y,o===0?0:1)),t}}function sn(t,e,r){if(!e)return t;var i=Ls(t*2);return(i+Ls(e))%2===0?i/2:(i+(r?1:-1))/2}var WN=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})();var $N={},BS=(function(t){R(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new WN},e.prototype.buildPath=function(r,i){var a,n,o,s;if(this.subPixelOptimize){var l=Bc($N,i,this.style);a=l.x,n=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else a=i.x,n=i.y,o=i.width,s=i.height;i.r?US(r,i):r.rect(a,n,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(he);BS.prototype.type="rect";var Pe=BS;var FS={fill:"#000"},HS=2,Hi={},XN={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},qn.style)},ZS=(function(t){R(e,t);function e(r){var i=t.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=FS,i.attr(r),i}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 i=this._children[r];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.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 i=this.innerTransformable;return i?i.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,jN(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 i=0;i<this._children.length;i++)this._children[i].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new ce(0,0,0,0),i=this._children,a=[],n=null,o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(r.copy(l),r.applyTransform(u),n=n||r.clone(),n.union(r)):(n=n||l.clone(),n.union(l))}this._rect=n||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||FS},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,i){if(!i)return r;var a=i.rich,n=r.rich||a&&{};return k(r,i),a&&n?(this._mergeRich(n,a),r.rich=n):n&&(r.rich=n),r},e.prototype._mergeRich=function(r,i){for(var a=ie(i),n=0;n<a.length;n++){var o=a[n];r[o]=r[o]||{},k(r[o],i[o])}},e.prototype.getAnimationStyleProps=function(){return XN},e.prototype._getOrCreateChild=function(r){var i=this._children[this._childCursor];return(!i||!(i instanceof r))&&(i=new r),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},e.prototype._updatePlainTexts=function(){var r=this.style,i=r.font||gr,a=r.padding,n=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||n.align||"left",u=r.verticalAlign||n.verticalAlign||"top";ym(Hi,n.overflowRect,o,s,l,u),o=Hi.baseX,s=Hi.baseY;var f=qS(r),c=_S(f,r,Hi.outerWidth,Hi.outerHeight),p=Nm(r),h=!!r.backgroundColor,d=c.outerHeight,v=c.outerWidth,m=c.lines,g=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,x=pa(s,c.contentHeight,u);if(p||a){var _=Qa(o,v,l),b=pa(s,d,u);p&&this._renderBackground(r,r,_,b,v,d)}x+=g/2,a&&(y=XS(o,l,a),u==="top"?x+=a[0]:u==="bottom"&&(x-=a[2]));for(var S=0,w=!1,A=!1,C=$S("fill"in r?r.fill:(A=!0,n.fill)),T=WS("stroke"in r?r.stroke:!h&&(!n.autoStroke||A)?(S=HS,w=!0,n.stroke):null),M=r.textShadowBlur>0,O=0;O<m.length;O++){var L=this._getOrCreateChild(io),D=L.createStyle();L.useStyle(D),D.text=m[O],D.x=y,D.y=x,l&&(D.textAlign=l),D.textBaseline="middle",D.opacity=r.opacity,D.strokeFirst=!0,M&&(D.shadowBlur=r.textShadowBlur||0,D.shadowColor=r.textShadowColor||"transparent",D.shadowOffsetX=r.textShadowOffsetX||0,D.shadowOffsetY=r.textShadowOffsetY||0),D.stroke=T,D.fill=C,T&&(D.lineWidth=r.lineWidth||S,D.lineDash=r.lineDash,D.lineDashOffset=r.lineDashOffset||0),D.font=i,KS(D,r),x+=g,L.setBoundingRect(Rc(D,c.contentWidth,c.calculatedLineHeight,w?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,i=this._defaultStyle,a=r.align||i.align,n=r.verticalAlign||i.verticalAlign,o=r.x||0,s=r.y||0;ym(Hi,i.overflowRect,o,s,a,n),o=Hi.baseX,s=Hi.baseY;var l=qS(r),u=bS(l,r,Hi.outerWidth,Hi.outerHeight,a),f=u.width,c=u.outerWidth,p=u.outerHeight,h=r.padding;this.isTruncated=!!u.isTruncated;var d=Qa(o,c,a),v=pa(s,p,n),m=d,g=v;h&&(m+=h[3],g+=h[0]);var y=m+f;Nm(r)&&this._renderBackground(r,r,d,v,c,p);for(var x=!!r.backgroundColor,_=0;_<u.lines.length;_++){for(var b=u.lines[_],S=b.tokens,w=S.length,A=b.lineHeight,C=b.width,T=0,M=m,O=y,L=w-1,D=void 0;T<w&&(D=S[T],!D.align||D.align==="left");)this._placeToken(D,r,A,g,M,"left",x),C-=D.width,M+=D.width,T++;for(;L>=0&&(D=S[L],D.align==="right");)this._placeToken(D,r,A,g,O,"right",x),C-=D.width,O-=D.width,L--;for(M+=(f-(M-m)-(y-O)-C)/2;T<=L;)D=S[T],this._placeToken(D,r,A,g,M+D.width/2,"center",x),M+=D.width,T++;g+=A}},e.prototype._placeToken=function(r,i,a,n,o,s,l){var u=i.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=n+a/2;f==="top"?c=n+r.height/2:f==="bottom"&&(c=n+a-r.height/2);var p=!r.isLineHolder&&Nm(u);p&&this._renderBackground(u,i,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=XS(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var v=this._getOrCreateChild(io),m=v.createStyle();v.useStyle(m);var g=this._defaultStyle,y=!1,x=0,_=!1,b=$S("fill"in u?u.fill:"fill"in i?i.fill:(y=!0,g.fill)),S=WS("stroke"in u?u.stroke:"stroke"in i?i.stroke:!h&&!l&&(!g.autoStroke||y)?(x=HS,_=!0,g.stroke):null),w=u.textShadowBlur>0||i.textShadowBlur>0;m.text=r.text,m.x=o,m.y=c,w&&(m.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,m.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=r.font||gr,m.opacity=Or(u.opacity,i.opacity,1),KS(m,u),S&&(m.lineWidth=Or(u.lineWidth,i.lineWidth,x),m.lineDash=X(u.lineDash,i.lineDash),m.lineDashOffset=i.lineDashOffset||0,m.stroke=S),b&&(m.fill=b),v.setBoundingRect(Rc(m,r.contentWidth,r.contentHeight,_?0:null))},e.prototype._renderBackground=function(r,i,a,n,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,p=l&&!c,h=r.borderRadius,d=this,v,m;if(p||r.lineHeight||u&&f){v=this._getOrCreateChild(Pe),v.useStyle(v.createStyle()),v.style.fill=null;var g=v.shape;g.x=a,g.y=n,g.width=o,g.height=s,g.r=h,v.dirtyShape()}if(p){var y=v.style;y.fill=l||null,y.fillOpacity=X(r.fillOpacity,1)}else if(c){m=this._getOrCreateChild(it),m.onload=function(){d.dirtyStyle()};var x=m.style;x.image=l.image,x.x=a,x.y=n,x.width=o,x.height=s}if(u&&f){var y=v.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=X(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var _=(v||m).style;_.shadowBlur=r.shadowBlur||0,_.shadowColor=r.shadowColor||"transparent",_.shadowOffsetX=r.shadowOffsetX||0,_.shadowOffsetY=r.shadowOffsetY||0,_.opacity=Or(r.opacity,i.opacity,1)},e.makeFont=function(r){var i="";return km(r)&&(i=[r.fontStyle,r.fontWeight,Rm(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),i&&Bt(i)||r.textFont||r.font},e})(br),qN={left:!0,right:1,center:1},ZN={top:1,bottom:1,middle:1},GS=["fontStyle","fontWeight","fontSize","fontFamily"];function Rm(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?If+"px":t+"px"}function KS(t,e){for(var r=0;r<GS.length;r++){var i=GS[r],a=e[i];a!=null&&(t[i]=a)}}function km(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function jN(t){return YS(t),E(t.rich,YS),t}function YS(t){if(t){t.font=ZS.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||qN[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||ZN[r]?r:"top";var i=t.padding;i&&(t.padding=ns(t.padding))}}function WS(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function $S(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function XS(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function qS(t){var e=t.text;return e!=null&&(e+=""),e}function Nm(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var ke=ZS;var _e=ae(),jS=function(t,e,r,i){if(i){var a=_e(i);a.dataIndex=r,a.dataType=e,a.seriesIndex=t,a.ssrType="chart",i.type==="group"&&i.traverse(function(n){var o=_e(n);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}};var ln="undefined",Fc="series",Hc=te(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Tt="original",xt="arrayRows",Xt="objectRows",Sr="keyedColumns",Nr="typedArray",zm="unknown",Rr="column",Gi="row";var JN=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],QN=(function(){function t(e){E(JN,function(r){this[r]=oe(e[r],e)},this)}return t})();function JS(t,e){return e.mainType===Fc?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}var Gc=QN;var QS=1,eC={},nC=ae(),Bm=ae(),Fm=0,iu=1,au=2,lr=["emphasis","blur","select"],Os=["normal","emphasis","blur","select"],eR=10,tR=9,un="highlight",nu="downplay",ou="select",Yc="unselect",su="toggleSelect",Wc="selectchanged";function Ds(t){return t!=null&&t!=="none"}function $c(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function oC(t){$c(t,"emphasis",au)}function sC(t){t.hoverState===au&&$c(t,"normal",Fm)}function Hm(t){$c(t,"blur",iu)}function lC(t){t.hoverState===iu&&$c(t,"normal",Fm)}function rR(t){t.selected=!0}function iR(t){t.selected=!1}function tC(t,e,r){e(t,r)}function ya(t,e,r){tC(t,e,r),t.isGroup&&t.traverse(function(i){tC(i,e,r)})}function Gm(t,e){switch(e){case"emphasis":t.hoverState=au;break;case"normal":t.hoverState=Fm;break;case"blur":t.hoverState=iu;break;case"select":t.selected=!0}}function aR(t,e,r,i){for(var a=t.style,n={},o=0;o<e.length;o++){var s=e[o],l=a[s];n[s]=l??(i&&i[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(n,e)}return n}function nR(t,e,r,i){var a=r&&pe(r,"select")>=0,n=!1;if(t instanceof he){var o=nC(t),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Ds(s)||Ds(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(n=!0,i=k({},i),u=k({},u),u.fill=s):!Ds(u.fill)&&Ds(s)?(n=!0,i=k({},i),u=k({},u),u.fill=Ul(s)):!Ds(u.stroke)&&Ds(l)&&(n||(i=k({},i),u=k({},u)),u.stroke=Ul(l)),i.style=u}}if(i&&i.z2==null){n||(i=k({},i));var f=t.z2EmphasisLift;i.z2=t.z2+(f??eR)}return i}function oR(t,e,r){if(r&&r.z2==null){r=k({},r);var i=t.z2SelectLift;r.z2=t.z2+(i??tR)}return r}function sR(t,e,r){var i=pe(t.currentStates,e)>=0,a=t.style.opacity,n=i?null:aR(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=k({},r),o=k({opacity:i?a:n.opacity*.1},o),r.style=o),r}function Vm(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return nR(this,t,e,r);if(t==="blur")return sR(this,t,r);if(t==="select")return oR(this,t,r)}return r}function lR(t){t.stateProxy=Vm;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=Vm),r&&(r.stateProxy=Vm)}function rC(t,e){!fC(t,e)&&!t.__highByOuter&&ya(t,oC)}function iC(t,e){!fC(t,e)&&!t.__highByOuter&&ya(t,sC)}function ao(t,e){t.__highByOuter|=1<<(e||0),ya(t,oC)}function no(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&ya(t,sC)}function uC(t){ya(t,Hm)}function Km(t){ya(t,lC)}function Ym(t){ya(t,rR)}function Wm(t){ya(t,iR)}function fC(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function $m(t){var e=t.getModel(),r=[],i=[];e.eachComponent(function(a,n){var o=Bm(n),s=JS(t,n),l=a==="series";!l&&i.push(s),o.isBlured&&(s.group.traverse(function(u){lC(u)}),l&&r.push(n)),o.isBlured=!1}),E(i,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,e)})}function Um(t,e,r,i){var a=i.getModel();r=r||"coordinateSystem";function n(u,f){for(var c=0;c<f.length;c++){var p=u.getItemGraphicEl(f[c]);p&&Km(p)}}if(t!=null&&!(!e||e==="none")){var o=a.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var p=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!p||e==="series"&&f)){var h=i.getViewOfSeriesModel(u);if(h.group.traverse(function(m){m.__highByOuter&&f&&e==="self"||Hm(m)}),lt(e))n(u.getData(),e);else if($(e))for(var d=ie(e),v=0;v<d.length;v++)n(u.getData(d[v]),e[d[v]]);l.push(u),Bm(u).isBlured=!0}}),a.eachComponent(function(u,f){if(u!=="series"){var c=i.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,a)}})}}function Kc(t,e,r){if(!(t==null||e==null)){var i=r.getModel().getComponent(t,e);if(i){Bm(i).isBlured=!0;var a=r.getViewOfComponentModel(i);!a||!a.focusBlurEnabled||a.group.traverse(function(n){Hm(n)})}}}function cC(t,e,r){var i=t.seriesIndex,a=t.getData(e.dataType);if(a){var n=Xr(a,e);n=(V(n)?n[0]:n)||0;var o=a.getItemGraphicEl(n);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=_e(o);Um(i,u.focus,u.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);f!=null&&Um(i,f,c,r)}}}function Xc(t,e,r,i){var a={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return a;var n=i.getModel().getComponent(t,e);if(!n)return a;var o=i.getViewOfComponentModel(n);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(_e(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function pC(t,e,r){var i=_e(t),a=Xc(i.componentMainType,i.componentIndex,i.componentHighDownName,r),n=a.dispatchers,o=a.focusSelf;n?(o&&Kc(i.componentMainType,i.componentIndex,r),E(n,function(s){return rC(s,e)})):(Um(i.seriesIndex,i.focus,i.blurScope,r),i.focus==="self"&&Kc(i.componentMainType,i.componentIndex,r),rC(t,e))}function hC(t,e,r){$m(r);var i=_e(t),a=Xc(i.componentMainType,i.componentIndex,i.componentHighDownName,r).dispatchers;a?E(a,function(n){return iC(n,e)}):iC(t,e)}function dC(t,e,r){if(Zc(e)){var i=e.dataType,a=t.getData(i),n=Xr(a,e);V(n)||(n=[n]),t[e.type===su?"toggleSelect":e.type===ou?"select":"unselect"](n,i)}}function Xm(t){var e=t.getAllData();E(e,function(r){var i=r.data,a=r.type;i.eachItemGraphicEl(function(n,o){t.isSelected(o,a)?Ym(n):Wm(n)})})}function vC(t){var e=[];return t.eachSeries(function(r){var i=r.getAllData();E(i,function(a){var n=a.data,o=a.type,s=r.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:r.seriesIndex};o!=null&&(l.dataType=o),e.push(l)}})}),e}function uR(t,e,r){qc(t,!0),ya(t,lR),cR(t,e,r)}function fR(t){qc(t,!1)}function kr(t,e,r,i){i?fR(t):uR(t,e,r)}function cR(t,e,r){var i=_e(t);e!=null?(i.focus=e,i.blurScope=r):i.focus&&(i.focus=null)}var aC=["emphasis","blur","select"],pR={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Ki(t,e,r,i){r=r||"itemStyle";for(var a=0;a<aC.length;a++){var n=aC[a],o=e.getModel([n,r]),s=t.ensureState(n);s.style=i?i(o):o[pR[r]]()}}function qc(t,e){var r=e===!1,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!r)}function lu(t){return!!(t&&t.__highDownDispatcher)}function mC(t){var e=eC[t];return e==null&&QS<=32&&(e=eC[t]=QS++),e}function Zc(t){var e=t.type;return e===ou||e===Yc||e===su}function qm(t){var e=t.type;return e===un||e===nu}function gC(t){var e=nC(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 ot={};jd(ot,{Arc:()=>hu,BezierCurve:()=>rg,BoundingRect:()=>ce,Circle:()=>oo,CompoundPath:()=>tp,Ellipse:()=>Qm,Group:()=>Te,HOVER_LAYER_FOR_INCREMENTAL:()=>fo,HOVER_LAYER_FROM_THRESHOLD:()=>ug,HOVER_LAYER_NO:()=>lg,Image:()=>it,IncrementalDisplayable:()=>KC,Line:()=>gi,LinearGradient:()=>Ns,OrientedBoundingRect:()=>op,Path:()=>he,Point:()=>ge,Polygon:()=>xa,Polyline:()=>mi,RadialGradient:()=>HC,Rect:()=>Pe,Ring:()=>pu,Sector:()=>vi,Text:()=>ke,WH:()=>cn,XY:()=>Wi,applyTransform:()=>pn,calcZ2Range:()=>JR,clipPointsByRect:()=>XR,clipRectByRect:()=>qR,createIcon:()=>dg,decomposeTransform:()=>ek,ensureCopyRect:()=>Vs,ensureCopyTransform:()=>cp,expandOrShrinkRect:()=>ks,extendPath:()=>KR,extendShape:()=>HR,getCurrentCanvasPainter:()=>tk,getShapeClass:()=>fg,getTransform:()=>mu,groupTransition:()=>hg,initProps:()=>Je,isBoundingRectAxisAligned:()=>fp,isElementRemoved:()=>_a,lineLineIntersect:()=>ZC,linePolygonIntersect:()=>ZR,makeImage:()=>cg,makePath:()=>lp,mergePath:()=>up,payloadDisableAnimation:()=>QR,registerShape:()=>yi,removeElement:()=>Rs,removeElementWithFadeOut:()=>fn,resizePath:()=>qC,retrieveZInfo:()=>vg,setTooltipConfig:()=>zs,subPixelOptimize:()=>WR,subPixelOptimizeLine:()=>co,subPixelOptimizeRect:()=>YR,transformDirection:()=>pg,traverseElements:()=>Sa,traverseUpdateZ:()=>mg,updateProps:()=>He});var Is=Kt.CMD,hR=[[],[],[]],yC=Math.sqrt,dR=Math.atan2;function Zm(t,e){if(e){var r=t.data,i=t.len(),a,n,o,s,l,u,f=Is.M,c=Is.C,p=Is.L,h=Is.R,d=Is.A,v=Is.Q;for(o=0,s=0;o<i;){switch(a=r[o++],s=o,n=0,a){case f:n=1;break;case p:n=1;break;case c:n=3;break;case v:n=2;break;case d:var m=e[4],g=e[5],y=yC(e[0]*e[0]+e[1]*e[1]),x=yC(e[2]*e[2]+e[3]*e[3]),_=dR(-e[1]/x,e[0]/y);r[o]*=y,r[o++]+=m,r[o]*=x,r[o++]+=g,r[o++]*=y,r[o++]*=x,r[o++]+=_,r[o++]+=_,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],Ft(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],Ft(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<n;l++){var b=hR[l];b[0]=r[o++],b[1]=r[o++],Ft(b,b,e),r[s++]=b[0],r[s++]=b[1]}}t.increaseVersion()}}var jm=Math.sqrt,jc=Math.sin,Jc=Math.cos,uu=Math.PI;function xC(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Jm(t,e){return(t[0]*e[0]+t[1]*e[1])/(xC(t)*xC(e))}function _C(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Jm(t,e))}function bC(t,e,r,i,a,n,o,s,l,u,f){var c=l*(uu/180),p=Jc(c)*(t-r)/2+jc(c)*(e-i)/2,h=-1*jc(c)*(t-r)/2+Jc(c)*(e-i)/2,d=p*p/(o*o)+h*h/(s*s);d>1&&(o*=jm(d),s*=jm(d));var v=(a===n?-1:1)*jm((o*o*(s*s)-o*o*(h*h)-s*s*(p*p))/(o*o*(h*h)+s*s*(p*p)))||0,m=v*o*h/s,g=v*-s*p/o,y=(t+r)/2+Jc(c)*m-jc(c)*g,x=(e+i)/2+jc(c)*m+Jc(c)*g,_=_C([1,0],[(p-m)/o,(h-g)/s]),b=[(p-m)/o,(h-g)/s],S=[(-1*p-m)/o,(-1*h-g)/s],w=_C(b,S);if(Jm(b,S)<=-1&&(w=uu),Jm(b,S)>=1&&(w=0),w<0){var A=Math.round(w/uu*1e6)/1e6;w=uu*2+A%2*uu}f.addData(u,y,x,o,s,_,w,c,n)}var vR=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,mR=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function gR(t){var e=new Kt;if(!t)return e;var r=0,i=0,a=r,n=i,o,s=Kt.CMD,l=t.match(vR);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),p=void 0,h=f.match(mR)||[],d=h.length,v=0;v<d;v++)h[v]=parseFloat(h[v]);for(var m=0;m<d;){var g=void 0,y=void 0,x=void 0,_=void 0,b=void 0,S=void 0,w=void 0,A=r,C=i,T=void 0,M=void 0;switch(c){case"l":r+=h[m++],i+=h[m++],p=s.L,e.addData(p,r,i);break;case"L":r=h[m++],i=h[m++],p=s.L,e.addData(p,r,i);break;case"m":r+=h[m++],i+=h[m++],p=s.M,e.addData(p,r,i),a=r,n=i,c="l";break;case"M":r=h[m++],i=h[m++],p=s.M,e.addData(p,r,i),a=r,n=i,c="L";break;case"h":r+=h[m++],p=s.L,e.addData(p,r,i);break;case"H":r=h[m++],p=s.L,e.addData(p,r,i);break;case"v":i+=h[m++],p=s.L,e.addData(p,r,i);break;case"V":i=h[m++],p=s.L,e.addData(p,r,i);break;case"C":p=s.C,e.addData(p,h[m++],h[m++],h[m++],h[m++],h[m++],h[m++]),r=h[m-2],i=h[m-1];break;case"c":p=s.C,e.addData(p,h[m++]+r,h[m++]+i,h[m++]+r,h[m++]+i,h[m++]+r,h[m++]+i),r+=h[m-2],i+=h[m-1];break;case"S":g=r,y=i,T=e.len(),M=e.data,o===s.C&&(g+=r-M[T-4],y+=i-M[T-3]),p=s.C,A=h[m++],C=h[m++],r=h[m++],i=h[m++],e.addData(p,g,y,A,C,r,i);break;case"s":g=r,y=i,T=e.len(),M=e.data,o===s.C&&(g+=r-M[T-4],y+=i-M[T-3]),p=s.C,A=r+h[m++],C=i+h[m++],r+=h[m++],i+=h[m++],e.addData(p,g,y,A,C,r,i);break;case"Q":A=h[m++],C=h[m++],r=h[m++],i=h[m++],p=s.Q,e.addData(p,A,C,r,i);break;case"q":A=h[m++]+r,C=h[m++]+i,r+=h[m++],i+=h[m++],p=s.Q,e.addData(p,A,C,r,i);break;case"T":g=r,y=i,T=e.len(),M=e.data,o===s.Q&&(g+=r-M[T-4],y+=i-M[T-3]),r=h[m++],i=h[m++],p=s.Q,e.addData(p,g,y,r,i);break;case"t":g=r,y=i,T=e.len(),M=e.data,o===s.Q&&(g+=r-M[T-4],y+=i-M[T-3]),r+=h[m++],i+=h[m++],p=s.Q,e.addData(p,g,y,r,i);break;case"A":x=h[m++],_=h[m++],b=h[m++],S=h[m++],w=h[m++],A=r,C=i,r=h[m++],i=h[m++],p=s.A,bC(A,C,r,i,S,w,x,_,b,p,e);break;case"a":x=h[m++],_=h[m++],b=h[m++],S=h[m++],w=h[m++],A=r,C=i,r+=h[m++],i+=h[m++],p=s.A,bC(A,C,r,i,S,w,x,_,b,p,e);break}}(c==="z"||c==="Z")&&(p=s.Z,e.addData(p),r=a,i=n),o=p}return e.toStatic(),e}var SC=(function(t){R(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(he);function CC(t){return t.setData!=null}function wC(t,e){var r=gR(t),i=k({},e);return i.buildPath=function(a){var n=CC(a);if(n&&a.canSave()){a.appendPath(r);var o=a.getContext();o&&a.rebuildPath(o,1)}else{var o=n?a.getContext():a;o&&r.rebuildPath(o,1)}},i.applyTransform=function(a){Zm(r,a),this.dirtyShape()},i}function TC(t,e){return new SC(wC(t,e))}function EC(t,e){var r=wC(t,e),i=(function(a){R(n,a);function n(o){var s=a.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return n})(SC);return i}function AC(t,e){for(var r=[],i=t.length,a=0;a<i;a++){var n=t[a];r.push(n.getUpdatedPathProxy(!0))}var o=new he(e);return o.createPathProxy(),o.buildPath=function(s){if(CC(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var xR=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})();var MC=(function(t){R(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new xR},e.prototype.buildPath=function(r,i){r.moveTo(i.cx+i.r,i.cy),r.arc(i.cx,i.cy,i.r,0,Math.PI*2)},e})(he);MC.prototype.type="circle";var oo=MC;var _R=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})();var LC=(function(t){R(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new _R},e.prototype.buildPath=function(r,i){var a=.5522848,n=i.cx,o=i.cy,s=i.rx,l=i.ry,u=s*a,f=l*a;r.moveTo(n-s,o),r.bezierCurveTo(n-s,o-f,n-u,o-l,n,o-l),r.bezierCurveTo(n+u,o-l,n+s,o-f,n+s,o),r.bezierCurveTo(n+s,o+f,n+u,o+l,n,o+l),r.bezierCurveTo(n-u,o+l,n-s,o+f,n-s,o),r.closePath()},e})(he);LC.prototype.type="ellipse";var Qm=LC;var OC=Math.PI,eg=OC*2,so=Math.sin,Ps=Math.cos,bR=Math.acos,qt=Math.atan2,DC=Math.abs,cu=Math.sqrt,fu=Math.max,Yi=Math.min,di=1e-4;function SR(t,e,r,i,a,n,o,s){var l=r-t,u=i-e,f=o-a,c=s-n,p=c*l-f*u;if(!(p*p<di))return p=(f*(e-n)-c*(t-a))/p,[t+p*l,e+p*u]}function Qc(t,e,r,i,a,n,o){var s=t-r,l=e-i,u=(o?n:-n)/cu(s*s+l*l),f=u*l,c=-u*s,p=t+f,h=e+c,d=r+f,v=i+c,m=(p+d)/2,g=(h+v)/2,y=d-p,x=v-h,_=y*y+x*x,b=a-n,S=p*v-d*h,w=(x<0?-1:1)*cu(fu(0,b*b*_-S*S)),A=(S*x-y*w)/_,C=(-S*y-x*w)/_,T=(S*x+y*w)/_,M=(-S*y+x*w)/_,O=A-m,L=C-g,D=T-m,I=M-g;return O*O+L*L>D*D+I*I&&(A=T,C=M),{cx:A,cy:C,x0:-f,y0:-c,x1:A*(a/b-1),y1:C*(a/b-1)}}function CR(t){var e;if(V(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 IC(t,e){var r,i=fu(e.r,0),a=fu(e.r0||0,0),n=i>0,o=a>0;if(!(!n&&!o)){if(n||(i=a,a=0),a>i){var s=i;i=a,a=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,c=e.cy,p=!!e.clockwise,h=DC(u-l),d=h>eg&&h%eg;if(d>di&&(h=d),!(i>di))t.moveTo(f,c);else if(h>eg-di)t.moveTo(f+i*Ps(l),c+i*so(l)),t.arc(f,c,i,l,u,!p),a>di&&(t.moveTo(f+a*Ps(u),c+a*so(u)),t.arc(f,c,a,u,l,p));else{var v=void 0,m=void 0,g=void 0,y=void 0,x=void 0,_=void 0,b=void 0,S=void 0,w=void 0,A=void 0,C=void 0,T=void 0,M=void 0,O=void 0,L=void 0,D=void 0,I=i*Ps(l),P=i*so(l),z=a*Ps(u),N=a*so(u),U=h>di;if(U){var B=e.cornerRadius;B&&(r=CR(B),v=r[0],m=r[1],g=r[2],y=r[3]);var Y=DC(i-a)/2;if(x=Yi(Y,g),_=Yi(Y,y),b=Yi(Y,v),S=Yi(Y,m),C=w=fu(x,_),T=A=fu(b,S),(w>di||A>di)&&(M=i*Ps(u),O=i*so(u),L=a*Ps(l),D=a*so(l),h<OC)){var q=SR(I,P,L,D,M,O,z,N);if(q){var Q=I-q[0],j=P-q[1],fe=M-q[0],be=O-q[1],Xe=1/so(bR((Q*fe+j*be)/(cu(Q*Q+j*j)*cu(fe*fe+be*be)))/2),Be=cu(q[0]*q[0]+q[1]*q[1]);C=Yi(w,(i-Be)/(Xe+1)),T=Yi(A,(a-Be)/(Xe-1))}}}if(!U)t.moveTo(f+I,c+P);else if(C>di){var Le=Yi(g,C),ve=Yi(y,C),de=Qc(L,D,I,P,i,Le,p),Se=Qc(M,O,z,N,i,ve,p);t.moveTo(f+de.cx+de.x0,c+de.cy+de.y0),C<w&&Le===ve?t.arc(f+de.cx,c+de.cy,C,qt(de.y0,de.x0),qt(Se.y0,Se.x0),!p):(Le>0&&t.arc(f+de.cx,c+de.cy,Le,qt(de.y0,de.x0),qt(de.y1,de.x1),!p),t.arc(f,c,i,qt(de.cy+de.y1,de.cx+de.x1),qt(Se.cy+Se.y1,Se.cx+Se.x1),!p),ve>0&&t.arc(f+Se.cx,c+Se.cy,ve,qt(Se.y1,Se.x1),qt(Se.y0,Se.x0),!p))}else t.moveTo(f+I,c+P),t.arc(f,c,i,l,u,!p);if(!(a>di)||!U)t.lineTo(f+z,c+N);else if(T>di){var Le=Yi(v,T),ve=Yi(m,T),de=Qc(z,N,M,O,a,-ve,p),Se=Qc(I,P,L,D,a,-Le,p);t.lineTo(f+de.cx+de.x0,c+de.cy+de.y0),T<A&&Le===ve?t.arc(f+de.cx,c+de.cy,T,qt(de.y0,de.x0),qt(Se.y0,Se.x0),!p):(ve>0&&t.arc(f+de.cx,c+de.cy,ve,qt(de.y0,de.x0),qt(de.y1,de.x1),!p),t.arc(f,c,a,qt(de.cy+de.y1,de.cx+de.x1),qt(Se.cy+Se.y1,Se.cx+Se.x1),p),Le>0&&t.arc(f+Se.cx,c+Se.cy,Le,qt(Se.y1,Se.x1),qt(Se.y0,Se.x0),!p))}else t.lineTo(f+z,c+N),t.arc(f,c,a,u,l,p)}t.closePath()}}}var TR=(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})();var PC=(function(t){R(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new TR},e.prototype.buildPath=function(r,i){IC(r,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(he);PC.prototype.type="sector";var vi=PC;var ER=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})();var NC=(function(t){R(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new ER},e.prototype.buildPath=function(r,i){var a=i.cx,n=i.cy,o=Math.PI*2;r.moveTo(a+i.r,n),r.arc(a,n,i.r,0,o,!1),r.moveTo(a+i.r0,n),r.arc(a,n,i.r0,0,o,!0)},e})(he);NC.prototype.type="ring";var pu=NC;function tg(t,e,r,i){var a=[],n=[],o=[],s=[],l,u,f,c;if(i){f=[1/0,1/0],c=[-1/0,-1/0];for(var p=0,h=t.length;p<h;p++)oa(f,f,t[p]),sa(c,c,t[p]);oa(f,f,i[0]),sa(c,c,i[1])}for(var p=0,h=t.length;p<h;p++){var d=t[p];if(r)l=t[p?p-1:h-1],u=t[(p+1)%h];else if(p===0||p===h-1){a.push(__(t[p]));continue}else l=t[p-1],u=t[p+1];b_(n,u,l),Uf(n,n,e);var v=Bf(d,l),m=Bf(d,u),g=v+m;g!==0&&(v/=g,m/=g),Uf(o,n,-v),Uf(s,n,m);var y=lv([],d,o),x=lv([],d,s);i&&(sa(y,y,f),oa(y,y,c),sa(x,x,f),oa(x,x,c)),a.push(y),a.push(x)}return r&&a.push(a.shift()),a}function ep(t,e,r){var i=e.smooth,a=e.points;if(a&&a.length>=2){if(i){var n=tg(a,i,r,e.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(r?o:o-1);s++){var l=n[s*2],u=n[s*2+1],f=a[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{t.moveTo(a[0][0],a[0][1]);for(var s=1,c=a.length;s<c;s++)t.lineTo(a[s][0],a[s][1])}r&&t.closePath()}}var AR=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})();var kC=(function(t){R(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new AR},e.prototype.buildPath=function(r,i){ep(r,i,!0)},e})(he);kC.prototype.type="polygon";var xa=kC;var MR=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})();var zC=(function(t){R(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 MR},e.prototype.buildPath=function(r,i){ep(r,i,!1)},e})(he);zC.prototype.type="polyline";var mi=zC;var LR={},DR=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})();var VC=(function(t){R(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 DR},e.prototype.buildPath=function(r,i){var a,n,o,s;if(this.subPixelOptimize){var l=Uc(LR,i,this.style);a=l.x1,n=l.y1,o=l.x2,s=l.y2}else a=i.x1,n=i.y1,o=i.x2,s=i.y2;var u=i.percent;u!==0&&(r.moveTo(a,n),u<1&&(o=a*(1-u)+o*u,s=n*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var i=this.shape;return[i.x1*(1-r)+i.x2*r,i.y1*(1-r)+i.y2*r]},e})(he);VC.prototype.type="line";var gi=VC;var Cr=[],OR=(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 UC(t,e,r){var i=t.cpx2,a=t.cpy2;return i!=null||a!=null?[(r?Tv:rt)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?Tv:rt)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?Ev:Ct)(t.x1,t.cpx1,t.x2,e),(r?Ev:Ct)(t.y1,t.cpy1,t.y2,e)]}var BC=(function(t){R(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 OR},e.prototype.buildPath=function(r,i){var a=i.x1,n=i.y1,o=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,f=i.cpx2,c=i.cpy2,p=i.percent;p!==0&&(r.moveTo(a,n),f==null||c==null?(p<1&&(hs(a,l,o,p,Cr),l=Cr[1],o=Cr[2],hs(n,u,s,p,Cr),u=Cr[1],s=Cr[2]),r.quadraticCurveTo(l,u,o,s)):(p<1&&(ps(a,l,f,o,p,Cr),l=Cr[1],f=Cr[2],o=Cr[3],ps(n,u,c,s,p,Cr),u=Cr[1],c=Cr[2],s=Cr[3]),r.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(r){return UC(this.shape,r,!1)},e.prototype.tangentAt=function(r){var i=UC(this.shape,r,!0);return S_(i,i)},e})(he);BC.prototype.type="bezier-curve";var rg=BC;var IR=(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})();var FC=(function(t){R(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 IR},e.prototype.buildPath=function(r,i){var a=i.cx,n=i.cy,o=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+a,c*o+n),r.arc(a,n,o,s,l,!u)},e})(he);FC.prototype.type="arc";var hu=FC;var PR=(function(t){R(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,i=this.shapeChanged(),a=0;a<r.length;a++)i=i||r[a].shapeChanged();i&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],i=this.getGlobalScale(),a=0;a<r.length;a++)r[a].path||r[a].createPathProxy(),r[a].path.setScale(i[0],i[1],r[a].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,i){for(var a=i.paths||[],n=0;n<a.length;n++)a[n].buildPath(r,a[n].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],i=0;i<r.length;i++)r[i].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),he.prototype.getBoundingRect.call(this)},e})(he),tp=PR;var NR=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})(),rp=NR;var RR=(function(t){R(e,t);function e(r,i,a,n,o,s){var l=t.call(this,o)||this;return l.x=r??0,l.y=i??0,l.x2=a??1,l.y2=n??0,l.type="linear",l.global=s||!1,l}return e})(rp),Ns=RR;var kR=(function(t){R(e,t);function e(r,i,a,n,o){var s=t.call(this,n)||this;return s.x=r??.5,s.y=i??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return e})(rp),HC=kR;var ig=Math.min,zR=Math.max,ip=Math.abs,lo=[0,0],uo=[0,0],Pt=xv(),ap=Pt.minTv,np=Pt.maxTv,VR=(function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new ge;for(var i=0;i<2;i++)this._axes[i]=new ge;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var i=this._corners,a=this._axes,n=e.x,o=e.y,s=n+e.width,l=o+e.height;if(i[0].set(n,o),i[1].set(s,o),i[2].set(s,l),i[3].set(n,l),r)for(var u=0;u<4;u++)i[u].transform(r);ge.sub(a[0],i[1],i[0]),ge.sub(a[1],i[3],i[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(i[0])},t.prototype.intersect=function(e,r,i){var a=!0,n=!r;return r&&ge.set(r,0,0),Pt.reset(i,!n),!this._intersectCheckOneSide(this,e,n,1)&&(a=!1,n)||!this._intersectCheckOneSide(e,this,n,-1)&&(a=!1,n)||!n&&!Pt.negativeSize&&ge.copy(r,a?Pt.useDir?Pt.dirMinTv:ap:np),a},t.prototype._intersectCheckOneSide=function(e,r,i,a){for(var n=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,lo),e._getProjMinMaxOnAxis(o,r._corners,uo),Pt.negativeSize||lo[1]<uo[0]||lo[0]>uo[1]){if(n=!1,Pt.negativeSize||i)return n;var l=ip(uo[0]-lo[1]),u=ip(lo[0]-uo[1]);ig(l,u)>np.len()&&(l<u?ge.scale(np,s,-l*a):ge.scale(np,s,u*a))}else if(!i){var l=ip(uo[0]-lo[1]),u=ip(lo[0]-uo[1]);(Pt.useDir||ig(l,u)<ap.len())&&((l<u||!Pt.bidirectional)&&(ge.scale(ap,s,l*a),Pt.useDir&&Pt.calcDirMTV()),(l>=u||!Pt.bidirectional)&&(ge.scale(ap,s,-u*a),Pt.useDir&&Pt.calcDirMTV()))}}return n},t.prototype._getProjMinMaxOnAxis=function(e,r,i){for(var a=this._axes[e],n=this._origin,o=r[0].dot(a)+n[e],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(a)+n[e];s=ig(f,s),l=zR(f,l)}i[0]=s+Pt.touchThreshold,i[1]=l-Pt.touchThreshold,Pt.negativeSize=i[1]<i[0]},t})(),op=VR;var GC=1;var UR=[],BR=(function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=GC,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,i){r.call(i,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,i){i?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,i){i=i||!1;for(var a=0;a<r.length;a++)this.addDisplayable(r[a],i)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var i=this._cursor;i<this._displayables.length;i++)r&&r(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)r&&r(this._temporaryDisplayables[i])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var i=this._displayables[r];i.parent=this,i.update(),i.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var i=this._temporaryDisplayables[r];i.parent=this,i.update(),i.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new ce(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var a=this._displayables[i],n=a.getBoundingRect().clone();a.needLocalTransform()&&n.applyTransform(a.getLocalTransform(UR)),r.union(n)}this._rect=r}return this._rect},e.prototype.contain=function(r,i){var a=this.transformCoordToLocal(r,i),n=this.getBoundingRect();if(n.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,i))return!0}return!1},e})(br),KC=BR;var FR=ae();function du(t,e,r,i,a){var n;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();n=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,f=void 0,c=void 0;i?(u=X(i.duration,200),f=X(i.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),n&&(n.duration!=null&&(u=n.duration),n.easing!=null&&(f=n.easing),n.delay!=null&&(c=n.delay)),Z(c)&&(c=c(r,a)),Z(u)&&(u=u(r));var p={duration:u||0,delay:c,easing:f};return p}else return null}function ag(t,e,r,i,a,n,o){var s=!1,l;Z(a)?(o=n,n=a,a=null):$(a)&&(n=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var f=du(t,i,a,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,a):null);if(f&&f.duration>0){var c=f.duration,p=f.delay,h=f.easing,d={duration:c,delay:p||0,easing:h,done:n,force:!!n||!!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),n&&n()}function He(t,e,r,i,a,n){ag("update",t,e,r,i,a,n)}function Je(t,e,r,i,a,n){ag("enter",t,e,r,i,a,n)}function _a(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 Rs(t,e,r,i,a,n){_a(t)||ag("leave",t,e,r,i,a,n)}function YC(t,e,r,i){t.removeTextContent(),t.removeTextGuideLine(),Rs(t,{style:{opacity:0}},e,r,i)}function fn(t,e,r){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(a){a.isGroup||YC(a,e,r,i)}):YC(t,e,r,i)}function ba(t){FR(t).oldStyle=t.style}var og={},Wi=["x","y"],cn=["width","height"],lg=0,ug=1,fo=2;function HR(t){return he.extend(t)}var GR=EC;function KR(t,e){return GR(t,e)}function yi(t,e){og[t]=e}function fg(t){if(og.hasOwnProperty(t))return og[t]}function lp(t,e,r,i){var a=TC(t,e);return r&&(i==="center"&&(r=XC(r,a.getBoundingRect())),qC(a,r)),a}function cg(t,e,r){var i=new it({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){if(r==="center"){var n={width:a.width,height:a.height};i.setStyle(XC(e,n))}}});return i}function XC(t,e){var r=e.width/e.height,i=t.height*r,a;i<=t.width?a=t.height:(i=t.width,a=i/r);var n=t.x+t.width/2,o=t.y+t.height/2;return{x:n-i/2,y:o-a/2,width:i,height:a}}var up=AC;function qC(t,e){if(t.applyTransform){var r=t.getBoundingRect(),i=r.calculateTransform(e);t.applyTransform(i)}}function co(t,e){return Uc(t,t,{lineWidth:e}),t}function YR(t,e){return Bc(t,t,e),t}var WR=sn;function mu(t,e){for(var r=la([]);t&&t!==e;)Ya(r,t.getLocalTransform(),r),t=t.parent;return r}function pn(t,e,r){return e&&!lt(e)&&(e=Ja.getLocalTransform(e)),r&&(e=Kr([],e)),Ft([],t,e)}function pg(t,e,r){var i=e[4]===0||e[5]===0||e[0]===0?1:et(2*e[4]/e[0]),a=e[4]===0||e[5]===0||e[2]===0?1:et(2*e[4]/e[2]),n=[t==="left"?-i:t==="right"?i:0,t==="top"?-a:t==="bottom"?a:0];return n=pn(n,e,r),et(n[0])>et(n[1])?n[0]>0?"right":"left":n[1]>0?"bottom":"top"}function WC(t){return!t.isGroup}function $R(t){return t.shape!=null}function hg(t,e,r){if(!t||!e)return;function i(o){var s={};return o.traverse(function(l){WC(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return $R(o)&&(s.shape=ee(o.shape)),s}var n=i(t);e.traverse(function(o){if(WC(o)&&o.anid){var s=n[o.anid];if(s){var l=a(o);o.attr(a(s)),He(o,l,r,_e(o).dataIndex)}}})}function XR(t,e){return F(t,function(r){var i=r[0];i=we(i,e.x),i=nt(i,e.x+e.width);var a=r[1];return a=we(a,e.y),a=nt(a,e.y+e.height),[i,a]})}function qR(t,e){var r=we(t.x,e.x),i=nt(t.x+t.width,e.x+e.width),a=we(t.y,e.y),n=nt(t.y+t.height,e.y+e.height);if(i>=r&&n>=a)return{x:r,y:a,width:i-r,height:n-a}}function dg(t,e,r){var i=k({rectHover:!0},e),a=i.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(a.image=t.slice(8),le(a,r),new it(i)):lp(t.replace("path://",""),i,r,"center")}function ZR(t,e,r,i,a){for(var n=0,o=a[a.length-1];n<a.length;n++){var s=a[n];if(ZC(t,e,r,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function ZC(t,e,r,i,a,n,o,s){var l=r-t,u=i-e,f=o-a,c=s-n,p=ng(f,c,l,u);if(jR(p))return!1;var h=t-a,d=e-n,v=ng(h,d,l,u)/p;if(v<0||v>1)return!1;var m=ng(h,d,f,c)/p;return!(m<0||m>1)}function ng(t,e,r,i){return t*i-r*e}function jR(t){return t<=1e-6&&t>=-1e-6}function ks(t,e,r,i,a){return e==null||(me(e)?Qe[0]=Qe[1]=Qe[2]=Qe[3]=e:(Qe[0]=e[0],Qe[1]=e[1],Qe[2]=e[2],Qe[3]=e[3]),i&&(Qe[0]=we(0,Qe[0]),Qe[1]=we(0,Qe[1]),Qe[2]=we(0,Qe[2]),Qe[3]=we(0,Qe[3])),r&&(Qe[0]=-Qe[0],Qe[1]=-Qe[1],Qe[2]=-Qe[2],Qe[3]=-Qe[3]),$C(t,Qe,"x","width",3,1,a&&a[0]||0),$C(t,Qe,"y","height",0,2,a&&a[1]||0)),t}var Qe=[0,0,0,0];function $C(t,e,r,i,a,n,o){var s=e[n]+e[a],l=t[i];t[i]+=s,o=we(0,nt(o,l)),t[i]<o?(t[i]=o,t[r]+=e[a]>=0?-e[a]:e[n]>=0?l+e[n]:et(s)>1e-8?(l-o)*e[a]/s:0):t[r]-=e[a]}function zs(t){var e=t.itemTooltipOption,r=t.componentModel,i=t.itemName,a=G(e)?{formatter:e}:e,n=r.mainType,o=r.componentIndex,s={componentType:n,name:i,$vars:["name"]};s[n+"Index"]=o;var l=t.formatterParamsExtra;l&&E(ie(l),function(f){se(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=_e(t.el);u.componentMainType=n,u.componentIndex=o,u.tooltipConfig={name:i,option:le({content:i,encodeHTMLContent:!0,formatterParams:s},a)}}function sg(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Sa(t,e){if(t)if(V(t))for(var r=0;r<t.length;r++)sg(t[r],e);else sg(t,e)}function fp(t){return!t||et(t[1])<sp&&et(t[2])<sp||et(t[0])<sp&&et(t[3])<sp}var sp=1e-5;function Vs(t,e){return t?ce.copy(t,e):e.clone()}function cp(t,e){return e?Ol(t||nr(),e):void 0}function vg(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function JR(t){var e=-1/0,r=1/0;sg(t,function(n){i(n),i(n.getTextContent()),i(n.getTextGuideLine())});function i(n){if(!(!n||n.isGroup)){var o=n.currentStates;if(o.length)for(var s=0;s<o.length;s++)a(n.states[o[s]]);a(n)}}function a(n){if(n){var o=n.z2;o>e&&(e=o),o<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function mg(t,e,r){jC(t,e,r,-1/0)}function jC(t,e,r,i){if(t.ignoreModelZ)return i;var a=t.getTextContent(),n=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=we(jC(s[l],e,r,i),i);else t.z=e,t.zlevel=r,i=we(t.z2||0,i);if(a&&(a.z=e,a.zlevel=r,isFinite(i)&&(a.z2=i+2)),n){var u=t.textGuideLineConfig;n.z=e,n.zlevel=r,isFinite(i)&&(n.z2=i+(u&&u.showAbove?1:-1))}return i}function QR(t){return t.animation={duration:0},t}function ek(t,e){return e?Ol(vu.transform,e):la(vu.transform),vu.decomposeTransform(),ja(t,vu),t}var vu=new Ja;vu.transform=nr();function tk(t){var e=t.getZr().painter;return e.getType()==="canvas"?e:null}yi("circle",oo);yi("ellipse",Qm);yi("sector",vi);yi("ring",pu);yi("polygon",xa);yi("polyline",mi);yi("rect",Pe);yi("line",gi);yi("bezierCurve",rg);yi("arc",hu);var pp={};function iw(t,e){for(var r=0;r<lr.length;r++){var i=lr[r],a=e[i],n=t.ensureState(i);n.style=n.style||{},n.style.text=a}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function gg(t,e,r){var i=t.labelFetcher,a=t.labelDataIndex,n=t.labelDimIndex,o=e.normal,s;i&&(s=i.getFormattedLabel(a,"normal",null,n,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=Z(t.defaultText)?t.defaultText(a,t,r):t.defaultText);for(var l={normal:s},u=0;u<lr.length;u++){var f=lr[u],c=e[f];l[f]=X(i?i.getFormattedLabel(a,f,null,n,c&&c.get("formatter")):null,s)}return l}function ei(t,e,r,i){r=r||pp;for(var a=t instanceof ke,n=!1,o=0;o<Os.length;o++){var s=e[Os[o]];if(s&&s.getShallow("show")){n=!0;break}}var l=a?t:t.getTextContent();if(n){a||(l||(l=new ke,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=gg(r,e),f=e.normal,c=!!f.getShallow("show"),p=wr(f,i&&i.normal,r,!1,!a);p.text=u.normal,a||t.setTextConfig(JC(f,r,!1));for(var o=0;o<lr.length;o++){var h=lr[o],s=e[h];if(s){var d=l.ensureState(h),v=!!X(s.getShallow("show"),c);if(v!==c&&(d.ignore=!v),d.style=wr(s,i&&i[h],r,!0,!a),d.style.text=u[h],!a){var m=t.ensureState(h);m.textConfig=JC(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(p.x=l.style.x),l.style.y!=null&&(p.y=l.style.y),l.ignore=!c,l.useStyle(p),l.dirty(),r.enableTextSetter&&(Ca(l).setLabelText=function(g){var y=gg(r,e,g);iw(l,y)})}else l&&(l.ignore=!0);t.dirty()}function ur(t,e){e=e||"label";for(var r={normal:t.getModel(e)},i=0;i<lr.length;i++){var a=lr[i];r[a]=t.getModel([a,e])}return r}function wr(t,e,r,i,a){var n={};return rk(n,t,r,i,a),e&&k(n,e),n}function JC(t,e,r){e=e||{};var i={},a,n=t.getShallow("rotate"),o=X(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return a=t.getShallow("position")||(r?null:"inside"),a==="outside"&&(a=e.defaultOutsidePosition||"top"),a!=null&&(i.position=a),s!=null&&(i.offset=s),n!=null&&(n*=Math.PI/180,i.rotation=n),o!=null&&(i.distance=o),i.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(i.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(i.layoutRect=e.layoutRect),i}function rk(t,e,r,i,a){r=r||pp;var n=e.ecModel,o=n&&n.option.textStyle,s=ik(e),l;if(s){l={};var u="richInheritPlainLabel",f=X(e.get(u),n?n.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var p=e.getModel(["rich",c]);rw(l[c]={},p,o,e,f,r,i,a,!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 v=t,m=e.get("minMargin");if(m!=null)m=me(m)?m/2:0,v.margin=[m,m,m,m],v.__marginType=po.minMargin;else{var g=e.get("textMargin");g!=null&&(v.margin=ns(g),v.__marginType=po.textMargin)}rw(t,e,o,null,null,r,i,a,!0,!1)}function ik(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||pp).rich;if(r){e=e||{};for(var i=ie(r),a=0;a<i.length;a++){var n=i[a];e[n]=1}}t=t.parentModel}return e}var QC=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],ew=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],tw=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function rw(t,e,r,i,a,n,o,s,l,u){r=!o&&r||pp;var f=n&&n.inheritColor,c=e.getShallow("color"),p=e.getShallow("textBorderColor"),h=X(e.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(p==="inherit"||p==="auto")&&(f?p=f:p=null),s||(c=c||r.color,p=p||r.textBorderColor),c!=null&&(t.fill=c),p!=null&&(t.stroke=p);var d=X(e.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(t.lineWidth=d);var v=X(e.getShallow("textBorderType"),r.textBorderType);v!=null&&(t.lineDash=v);var m=X(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);m!=null&&(t.lineDashOffset=m),!o&&h==null&&!u&&(h=n&&n.defaultOpacity),h!=null&&(t.opacity=h),!o&&!s&&t.fill==null&&n.inheritColor&&(t.fill=n.inheritColor);for(var g=0;g<QC.length;g++){var y=QC[g],x=a!==!1&&i?Or(e.getShallow(y),i.getShallow(y),r[y]):X(e.getShallow(y),r[y]);x!=null&&(t[y]=x)}for(var g=0;g<ew.length;g++){var y=ew[g],x=e.getShallow(y);x!=null&&(t[y]=x)}if(t.verticalAlign==null){var _=e.getShallow("baseline");_!=null&&(t.verticalAlign=_)}if(!l||!n.disableBox){for(var g=0;g<tw.length;g++){var y=tw[g],x=e.getShallow(y);x!=null&&(t[y]=x)}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 aw(t,e){var r=e&&e.getModel("textStyle");return Bt([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 Ca=ae();function nw(t,e,r,i){if(t){var a=Ca(t);a.prevValue=a.value,a.value=r;var n=e.normal;a.valueAnimation=n.get("valueAnimation"),a.valueAnimation&&(a.precision=n.get("precision"),a.defaultInterpolatedText=i,a.statesModels=e)}}function ow(t,e,r,i,a){var n=Ca(t);if(!n.valueAnimation||n.prevValue===n.value)return;var o=n.defaultInterpolatedText,s=X(n.interpolatedValue,n.prevValue),l=n.value;function u(f){var c=Dc(r,n.precision,s,l,f);n.interpolatedValue=f===1?null:c;var p=gg({labelDataIndex:e,labelFetcher:a,defaultText:o?o(c):c+""},n.statesModels,c);iw(t,p)}t.percent=0,(n.prevValue==null?Je:He)(t,{percent:1},i,e,null,u)}var po={minMargin:1,textMargin:2};var ak=["textStyle","color"],yg=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],xg=new ke,nk=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(ak):null)},t.prototype.getFont=function(){return aw({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")},i=0;i<yg.length;i++)r[yg[i]]=this.getShallow(yg[i]);return xg.useStyle(r),xg.update(),xg.getBoundingRect()},t})(),sw=nk;var _g=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],ok=zi(_g),lw=(function(){function t(){}return t.prototype.getLineStyle=function(e){return ok(this,e)},t})();var bg=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],sk=zi(bg),uw=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return sk(this,e,r)},t})();var ho=(function(){function t(e,r,i){this.parentModel=r,this.ecModel=i,this.option=e}return t.prototype.init=function(e,r,i){for(var a=[],n=3;n<arguments.length;n++)a[n-3]=arguments[n]},t.prototype.mergeOption=function(e,r){Ce(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 i=this.option,a=i==null?i:i[e];if(a==null&&!r){var n=this.parentModel;n&&(a=n.getShallow(e))}return a},t.prototype.getModel=function(e,r){var i=e!=null,a=i?this.parsePath(e):null,n=i?this._doGet(a):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new t(n,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(ee(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(!ye.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 i=this.option;if(!e)return i;for(var a=0;a<e.length&&!(e[a]&&(i=i&&typeof i=="object"?i[e[a]]:null,i==null));a++);return i==null&&r&&(i=r._doGet(this.resolveParentPath(e),r.parentModel)),i},t})();Es(ho);fS(ho);Ut(ho,lw);Ut(ho,uw);Ut(ho,cS);Ut(ho,sw);var je=ho;var lk=Math.round(Math.random()*10);function $i(t){return[t||"",lk++].join("_")}function fw(t){var e={};t.registerSubTypeDefaulter=function(r,i){var a=_r(r);e[a.main]=i},t.determineSubType=function(r,i){var a=i.type;if(!a){var n=_r(r).main;t.hasSubTypes(r)&&e[n]&&(a=e[n](i))}return a}}function cw(t,e){t.topologicalTravel=function(n,o,s,l){if(!n.length)return;var u=r(o),f=u.graph,c=u.noEntryList,p={};for(E(n,function(y){p[y]=!0});c.length;){var h=c.pop(),d=f[h],v=!!p[h];v&&(s.call(l,h,d.originalDeps.slice()),delete p[h]),E(d.successor,v?g:m)}E(p,function(){var y="";throw new Error(y)});function m(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function g(y){p[y]=!0,m(y)}};function r(n){var o={},s=[];return E(n,function(l){var u=i(o,l),f=u.originalDeps=e(l),c=a(f,n);u.entryCount=c.length,u.entryCount===0&&s.push(l),E(c,function(p){pe(u.predecessor,p)<0&&u.predecessor.push(p);var h=i(o,p);pe(h.successor,p)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function i(n,o){return n[o]||(n[o]={predecessor:[],successor:[]}),n[o]}function a(n,o){var s=[];return E(n,function(l){pe(o,l)>=0&&s.push(l)}),s}}function Us(t,e){return Ce(Ce({},t,!0),e,!0)}var pw={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:". "}}}};var hw={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var dp="ZH",Cg="EN",Bs=Cg,hp={},wg={},vp=ye.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Bs).toUpperCase();return t.indexOf(dp)>-1?dp:Bs})():Bs;function dw(t,e){t=t.toUpperCase(),wg[t]=new je(e),hp[t]=e}function vw(t){if(G(t)){var e=hp[t.toUpperCase()]||{};return t===dp||t===Cg?ee(e):Ce(ee(e),ee(hp[Bs]),!1)}else return Ce(ee(t),ee(hp[Bs]),!1)}function mw(t){return wg[t]}function gw(){return wg[Bs]}dw(Cg,pw);dw(dp,hw);var uk=null;function st(){return uk}function mp(t,e){var r=st(),i=e.breakOption,a=e.breakParsed;return!a&&r&&(a=r.parseAxisBreakOption(i,t)),a}function vo(t){var e=t.brk;return e?e.breaks:[]}function mo(t){var e=t.brk;return e?e.hasBreaks():!1}var xp=1e3,_p=xp*60,Fs=_p*60,zr=Fs*24,Tg=zr*365,fk={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})/},yp={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},ck="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",gp="{yyyy}-{MM}-{dd}",Eg={year:"{yyyy}",month:"{yyyy}-{MM}",day:gp,hour:gp+" "+yp.hour,minute:gp+" "+yp.minute,second:gp+" "+yp.second,millisecond:ck},Tr=["year","month","day","hour","minute","second","millisecond"],yw=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function xw(t){return!G(t)&&!Z(t)?pk(t):t}function pk(t){t=t||{};var e={},r=!0;return E(Tr,function(i){r&&(r=t[i]==null)}),E(Tr,function(i,a){var n=t[i];e[i]={};for(var o=null,s=a;s>=0;s--){var l=Tr[s],u=$(n)&&!V(n)?n[l]:n,f=void 0;V(u)?(f=u.slice(),o=f[0]||""):G(u)?(o=u,f=[o]):(o==null?o=yp[i]:fk[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),e[i][l]=f}}),e}function Zt(t,e){return t+="","0000".substr(0,e-t.length)+t}function Hs(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 _w(t){return t===Hs(t)}function bw(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function go(t,e,r,i){var a=pi(t),n=a[Ag(r)](),o=a[Sp(r)]()+1,s=Math.floor((o-1)/3)+1,l=a[Cp(r)](),u=a["get"+(r?"UTC":"")+"Day"](),f=a[wp(r)](),c=(f-1)%12+1,p=a[Tp(r)](),h=a[Ep(r)](),d=a[Ap(r)](),v=f>=12?"pm":"am",m=v.toUpperCase(),g=i instanceof je?i:mw(i||vp)||gw(),y=g.getModel("time"),x=y.get("month"),_=y.get("monthAbbr"),b=y.get("dayOfWeek"),S=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,v+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,n+"").replace(/{yy}/g,Zt(n%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,x[o-1]).replace(/{MMM}/g,_[o-1]).replace(/{MM}/g,Zt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Zt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Zt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Zt(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Zt(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,Zt(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Zt(d,3)).replace(/{S}/g,d+"")}function Sw(t,e,r,i,a){var n=null;if(G(r))n=r;else if(Z(r)){var o={time:t.time,level:t.time?t.time.level:0},s=st();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),n=r(t.value,e,o)}else{var l=t.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];n=u[Math.min(l.level,u.length-1)]||""}else{var f=yo(t.value,a);n=r[f][f][0]}}return go(new Date(t.value),n,a,i)}function yo(t,e){var r=pi(t),i=r[Sp(e)]()+1,a=r[Cp(e)](),n=r[wp(e)](),o=r[Tp(e)](),s=r[Ep(e)](),l=r[Ap(e)](),u=l===0,f=u&&s===0,c=f&&o===0,p=c&&n===0,h=p&&a===1,d=h&&i===1;return d?"year":h?"month":p?"day":c?"hour":f?"minute":u?"second":"millisecond"}function bp(t,e,r){switch(e){case"year":t[Mg(r)](0);case"month":t[Lg(r)](1);case"day":t[Dg(r)](0);case"hour":t[Og(r)](0);case"minute":t[Ig(r)](0);case"second":t[Pg(r)](0)}return t}function Ag(t){return t?"getUTCFullYear":"getFullYear"}function Sp(t){return t?"getUTCMonth":"getMonth"}function Cp(t){return t?"getUTCDate":"getDate"}function wp(t){return t?"getUTCHours":"getHours"}function Tp(t){return t?"getUTCMinutes":"getMinutes"}function Ep(t){return t?"getUTCSeconds":"getSeconds"}function Ap(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Cw(t){return t?"setUTCFullYear":"setFullYear"}function Mg(t){return t?"setUTCMonth":"setMonth"}function Lg(t){return t?"setUTCDate":"setDate"}function Dg(t){return t?"setUTCHours":"setHours"}function Og(t){return t?"setUTCMinutes":"setMinutes"}function Ig(t){return t?"setUTCSeconds":"setSeconds"}function Pg(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Ng(t,e,r,i,a,n,o,s){var l=new ke({style:{text:t,font:e,align:r,verticalAlign:i,padding:a,rich:n,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function gu(t){if(!om(t))return G(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Gs(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,i){return i.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Xi=ns;function Mp(t,e,r){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&Bt(f)?f:"-"}function n(f){return yt(f)}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?pi(t):t;if(isNaN(+l)){if(s)return"-"}else return go(l,i,r)}if(e==="ordinal")return Ll(t)?a(t):me(t)&&n(t)?t+"":"-";var u=Ri(t);return n(u)?gu(u):Ll(t)?a(t):typeof t=="boolean"?t+"":"-"}var ww=["a","b","c","d","e","f","g"],Rg=function(t,e){return"{"+t+(e??"")+"}"};function Ks(t,e,r){V(e)||(e=[e]);var i=e.length;if(!i)return"";for(var a=e[0].$vars||[],n=0;n<a.length;n++){var o=ww[n];t=t.replace(Rg(o),Rg(o,0))}for(var s=0;s<i;s++)for(var l=0;l<a.length;l++){var u=e[s][a[l]];t=t.replace(Rg(ww[l],s),r?dt(u):u)}return t}function Lp(t,e){var r=G(t)?{color:t,extraCssText:e}:t||{},i=r.color,a=r.type;e=r.extraCssText;var n=r.renderMode||"html";if(!i)return"";if(n==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+dt(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+dt(i)+";"+(e||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:n,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function Tw(t,e,r){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd
9
+ yyyy`);var i=pi(e),a=r?"getUTC":"get",n=i[a+"FullYear"](),o=i[a+"Month"]()+1,s=i[a+"Date"](),l=i[a+"Hours"](),u=i[a+"Minutes"](),f=i[a+"Seconds"](),c=i[a+"Milliseconds"]();return t=t.replace("MM",Zt(o,2)).replace("M",o).replace("yyyy",n).replace("yy",Zt(n%100+"",2)).replace("dd",Zt(s,2)).replace("d",s).replace("hh",Zt(l,2)).replace("h",l).replace("mm",Zt(u,2)).replace("m",u).replace("ss",Zt(f,2)).replace("s",f).replace("SSS",Zt(c,3)),t}function Ew(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function xi(t,e){return e=e||"transparent",G(t)?t:$(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}var Dp={},zg={},hk=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=i(Dp,!0),this._normalMasterList=i(zg,!1);function i(a,n){var o=[];return E(a,function(s,l){var u=s.create(e,r);o=o.concat(u||[])}),o}},t.prototype.update=function(e,r){E(this._normalMasterList,function(i){i.update&&i.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e==="matrix"||e==="calendar"){Dp[e]=r;return}zg[e]=r},t.get=function(e){return zg[e]||Dp[e]},t})();function dk(t){return!!Dp[t]}var vk=1,Vg=2;function Aw(t){Mw.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}var Mw=te();function Ip(t){var e=t.getShallow("coord",!0),r=vk;if(e==null){var i=Mw.get(t.type);i&&i.getCoord2&&(r=Vg,e=i.getCoord2(t))}return{coord:e,from:r}}var Ys=0,Op=1,mk=2;function gk(t,e){var r=t.getShallow("coordinateSystem"),i=t.getShallow("coordinateSystemUsage",!0),a=i!=null,n=Ys;if(r){var o=t.mainType==="series";i==null&&(i=o?"data":"box"),i==="data"?(n=Op,o||(n=Ys)):i==="box"&&(n=mk,!o&&!dk(r)&&(n=Ys))}return{coordSysType:r,kind:n}}function Lw(t){var e=t.targetModel,r=t.coordSysType,i=t.coordSysProvider,a=t.isDefaultDataCoordSys,n=t.allowNotFound,o=gk(e,!0),s=o.kind,l=o.coordSysType;if(a&&s!==Op&&(s=Op,l=r),s===Ys||l!==r)return Ys;var u=i(r,e);return u?(s===Op?e.coordinateSystem=u:e.boxCoordinateSystem=u,s):Ys}var xo=hk;var Np=E,Ug=["left","right","top","bottom","width","height"],Pp=[["width","left","right"],["height","top","bottom"]];function Bg(t,e,r,i,a){var n=0,o=0;i==null&&(i=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.childAt(u+1),p=c&&c.getBoundingRect(),h,d;if(t==="horizontal"){var v=f.width+(p?-p.x+f.x:0);h=n+v,h>i||l.newline?(n=0,h=v,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(p?-p.y+f.y:0);d=o+m,d>a||l.newline?(n+=s+r,o=0,d=m,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=n,l.y=o,l.markRedraw(),t==="horizontal"?n=h+r:o=d+r)})}var Dw=Bg,_W=ut(Bg,"vertical"),bW=ut(Bg,"horizontal");function Ow(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 yk(t,e){var r=_o(t,e,{enableLayoutOnlyByCenter:!0}),i=t.getBoxLayoutParams(),a,n;if(r.type===yu.point)n=r.refPoint,a=qi(i,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=V(o)?o:[o,o];a=qi(i,r.refContainer),n=r.boxCoordFrom===Vg?r.refPoint:[Ae(s[0],a.width)+a.x,Ae(s[1],a.height)+a.y]}return{viewRect:a,center:n}}function Iw(t,e){var r=yk(t,e),i=r.viewRect,a=r.center,n=t.get("radius");V(n)||(n=[0,n]);var o=Ae(i.width,e.getWidth()),s=Ae(i.height,e.getHeight()),l=Math.min(o,s),u=Ae(n[0],l/2),f=Ae(n[1],l/2);return{cx:a[0],cy:a[1],r0:u,r:f,viewRect:i}}function qi(t,e,r){r=Xi(r||0);var i=e.width,a=e.height,n=Ae(t.left,i),o=Ae(t.top,a),s=Ae(t.right,i),l=Ae(t.bottom,a),u=Ae(t.width,i),f=Ae(t.height,a),c=r[2]+r[0],p=r[1]+r[3],h=t.aspect;switch(isNaN(u)&&(u=i-s-p-n),isNaN(f)&&(f=a-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>i/a?u=i*.8:f=a*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(n)&&(n=i-s-u-p),isNaN(o)&&(o=a-l-f-c),t.left||t.right){case"center":n=i/2-u/2-r[3];break;case"right":n=i-u-p;break}switch(t.top||t.bottom){case"middle":case"center":o=a/2-f/2-r[0];break;case"bottom":o=a-f-c;break}n=n||0,o=o||0,isNaN(u)&&(u=i-p-n-(s||0)),isNaN(f)&&(f=a-c-o-(l||0));var d=new ce((e.x||0)+n+r[3],(e.y||0)+o+r[0],u,f);return d.margin=r,d}var yu={rect:1,point:2};function _o(t,e,r){var i,a,n,o=t.boxCoordinateSystem,s;if(o){var l=Ip(t),u=l.coord,f=l.from;if(o.dataToLayout){n=yu.rect,s=f;var c=o.dataToLayout(u);i=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(n=yu.point,s=f,a=o.dataToPoint(u))}return n==null&&(n=yu.rect),n===yu.rect&&(i||(i={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),a=[i.x+i.width/2,i.y+i.height/2]),{type:n,refContainer:i,refPoint:a,boxCoordFrom:s}}function Rp(t,e,r,i,a,n){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(n=n||t,n.x=t.x,n.y=t.y,!o&&!s)return!1;var u;if(l==="raw")u=t.type==="group"?new ce(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(u=t.getBoundingRect(),t.needLocalTransform()){var f=t.getLocalTransform();u=u.clone(),u.applyTransform(f)}var c=qi(le({width:u.width,height:u.height},e),r,i),p=o?c.x-u.x:0,h=s?c.y-u.y:0;return l==="raw"?(n.x=p,n.y=h):(n.x+=p,n.y+=h),n===t&&t.markRedraw(),!0}function hn(t){var e=t.layoutMode||t.constructor.layoutMode;return $(e)?e:e?{type:e}:null}function Vr(t,e,r){var i=r&&r.ignoreSize;!V(i)&&(i=[i,i]);var a=o(Pp[0],0),n=o(Pp[1],1);l(Pp[0],t,a),l(Pp[1],t,n);function o(u,f){var c={},p=0,h={},d=0,v=2;if(Np(u,function(y){h[y]=t[y]}),Np(u,function(y){se(e,y)&&(c[y]=h[y]=e[y]),s(c,y)&&p++,s(h,y)&&d++}),i[f])return s(e,u[1])?h[u[2]]=null:s(e,u[2])&&(h[u[1]]=null),h;if(d===v||!p)return h;if(p>=v)return c;for(var m=0;m<u.length;m++){var g=u[m];if(!se(c,g)&&se(t,g)){c[g]=t[g];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){Np(u,function(p){f[p]=c[p]})}}function dn(t){return Fg({},t)}function Fg(t,e){return e&&t&&Np(Ug,function(r){se(e,r)&&(t[r]=e[r])}),t}var xk=ae(),Ws=(function(t){R(e,t);function e(r,i,a){var n=t.call(this,r,i,a)||this;return n.uid=$i("ec_cpt_model"),n}return e.prototype.init=function(r,i,a){this.mergeDefaultAndTheme(r,a)},e.prototype.mergeDefaultAndTheme=function(r,i){var a=hn(this),n=a?dn(r):{},o=i.getTheme();Ce(r,o.get(this.mainType)),Ce(r,this.getDefaultOption()),a&&Vr(r,n,a)},e.prototype.mergeOption=function(r,i){Ce(this.option,r,!0);var a=hn(this);a&&Vr(this.option,r,a)},e.prototype.optionUpdated=function(r,i){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!uS(r))return r.defaultOption;var i=xk(this);if(!i.defaultOption){for(var a=[],n=r;n;){var o=n.prototype.defaultOption;o&&a.push(o),n=n.superClass}for(var s={},l=a.length-1;l>=0;l--)s=Ce(s,a[l],!0);i.defaultOption=s}return i.defaultOption},e.prototype.getReferringComponents=function(r,i){var a=r+"Index",n=r+"Id";return ki(this.ecModel,r,{index:this.get(a,!0),id:this.get(n,!0)},i)},e.prototype.getBoxLayoutParams=function(){return Ow(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})(je);Nc(Ws,je);rn(Ws);fw(Ws);cw(Ws,_k);function _k(t){var e=[];return E(Ws.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=F(e,function(r){return _r(r).main}),t!=="dataset"&&pe(e,"dataset")<=0&&e.unshift("dataset"),e}var Ne=Ws;var bo={color:{},darkColor:{},size:{}},ct=bo.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)"};k(ct,{primary:ct.neutral80,secondary:ct.neutral70,tertiary:ct.neutral60,quaternary:ct.neutral50,disabled:ct.neutral20,border:ct.neutral30,borderTint:ct.neutral20,borderShade:ct.neutral40,background:ct.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:ct.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:ct.neutral70,axisLineTint:ct.neutral40,axisTick:ct.neutral70,axisTickMinor:ct.neutral60,axisLabel:ct.neutral70,axisSplitLine:ct.neutral15,axisMinorSplitLine:ct.neutral05});for(vn in ct)ct.hasOwnProperty(vn)&&(Hg=ct[vn],vn==="theme"?bo.darkColor.theme=ct.theme.slice():vn==="highlight"?bo.darkColor.highlight="rgba(255,231,130,0.4)":vn.indexOf("accent")===0?bo.darkColor[vn]=fa(Hg,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):bo.darkColor[vn]=fa(Hg,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)}));var Hg,vn;bo.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var ne=bo;var Pw="";typeof navigator<"u"&&(Pw=navigator.platform||"");var $s="rgba(0, 0, 0, 0.2)",Nw=ne.color.theme[0],bk=fa(Nw,null,null,.9),zp={darkMode:"auto",colorBy:"series",color:ne.color.theme,gradientColor:[bk,Nw],aria:{decal:{decals:[{color:$s,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:$s,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:$s,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:$s,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:$s,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:$s,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Pw.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 Et={Must:1,Might:2,Not:3},Rw=ae();function kw(t){Rw(t).datasetMap=te()}function zw(t,e,r){var i={},a=Vp(e);if(!a||!t)return i;var n=[],o=[],s=e.ecModel,l=Rw(s).datasetMap,u=a.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),E(t,function(v,m){var g=$(v)?v:t[m]={name:v};g.type==="ordinal"&&f==null&&(f=m,c=d(g)),i[g.name]=[]});var p=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});E(t,function(v,m){var g=v.name,y=d(v);if(f==null){var x=p.valueWayDim;h(i[g],x,y),h(o,x,y),p.valueWayDim+=y}else if(f===m)h(i[g],0,y),h(n,0,y);else{var x=p.categoryWayDim;h(i[g],x,y),h(o,x,y),p.categoryWayDim+=y}});function h(v,m,g){for(var y=0;y<g;y++)v.push(m+y)}function d(v){var m=v.dimsDef;return m?m.length:1}return n.length&&(i.itemName=n),o.length&&(i.seriesName=o),i}function Vw(t,e,r){var i={},a=Vp(t);if(!a)return i;var n=e.sourceFormat,o=e.dimensionsDefine,s;(n===Xt||n===Sr)&&E(o,function(f,c){($(f)?f.name:f)==="name"&&(s=c)});var l=(function(){for(var f={},c={},p=[],h=0,d=Math.min(5,r);h<d;h++){var v=Bw(e.data,n,e.seriesLayoutBy,o,e.startIndex,h);p.push(v);var m=v===Et.Not;if(m&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v||!m&&p[f.n]===Et.Not)&&(f.n=h),g(f)&&p[f.n]!==Et.Not)return f;m||(v===Et.Might&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v)&&(c.n=h))}function g(y){return y.v!=null&&y.n!=null}return g(f)?f:g(c)?c:null})();if(l){i.value=[l.v];var u=s??l.n;i.itemName=[u],i.seriesName=[u]}return i}function Vp(t){var e=t.get("data",!0);if(!e)return ki(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Ht).models[0]}function Uw(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:ki(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Ht).models}function Up(t,e){return Bw(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Bw(t,e,r,i,a,n){var o,s=5;if(ft(t))return Et.Not;var l,u;if(i){var f=i[n];$(f)?(l=f.name,u=f.type):G(f)&&(l=f)}if(u!=null)return u==="ordinal"?Et.Must:Et.Not;if(e===xt){var c=t;if(r===Gi){for(var p=c[n],h=0;h<(p||[]).length&&h<s;h++)if((o=_(p[a+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var d=c[a+h];if(d&&(o=_(d[n]))!=null)return o}}else if(e===Xt){var v=t;if(!l)return Et.Not;for(var h=0;h<v.length&&h<s;h++){var m=v[h];if(m&&(o=_(m[l]))!=null)return o}}else if(e===Sr){var g=t;if(!l)return Et.Not;var p=g[l];if(!p||ft(p))return Et.Not;for(var h=0;h<p.length&&h<s;h++)if((o=_(p[h]))!=null)return o}else if(e===Tt)for(var y=t,h=0;h<y.length&&h<s;h++){var m=y[h],x=da(m);if(!V(x))return Et.Not;if((o=_(x[n]))!=null)return o}function _(b){var S=G(b);if(b!=null&&isFinite(Number(b))&&b!=="")return S?Et.Might:Et.Not;if(S&&b!=="-")return Et.Must}return Et.Not}var Sk=te();function Fw(t,e,r){var i=Sk.get(e);if(!i)return r;var a=i(t);if(!a)return r;if(0)for(var n;n<a.length;n++);return r.concat(a)}var Hw=ae(),Ck=ae(),xu=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,i){var a=Ge(this.get("color",!0)),n=this.get("colorLayer",!0);return Gw(this,Hw,a,n,e,r,i)},t.prototype.clearColorPalette=function(){Tk(this,Hw)},t})();function Gg(t,e,r,i){var a=Ge(t.get(["aria","decal","decals"]));return Gw(t,Ck,a,null,e,r,i)}function wk(t,e){for(var r=t.length,i=0;i<r;i++)if(t[i].length>e)return t[i];return t[r-1]}function Gw(t,e,r,i,a,n,o){n=n||t;var s=e(n),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!i?r:wk(i,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return a&&(u[a]=c),s.paletteIdx=(l+1)%f.length,c}}function Tk(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Bp,_u,Kw,Yw="\0_ec_inner",Ek=1;var qw=(function(t){R(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,i,a,n,o,s){n=n||{},this.option=null,this._theme=new je(n),this._locale=new je(o),this._optionManager=s},e.prototype.setOption=function(r,i,a){var n=Xw(i);this._optionManager.setOption(r,a,n),this._resetOption(null,n)},e.prototype.resetOption=function(r,i){return this._resetOption(r,Xw(i))},e.prototype._resetOption=function(r,i){var a=!1,n=this._optionManager;if(!r||r==="recreate"){var o=n.mountOption(r==="recreate");!this.option||r==="recreate"?Kw(this,o):(this.restoreData(),this._mergeOption(o,i)),a=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=n.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,i))}if(!r||r==="recreate"||r==="media"){var l=n.getMediaOption(this);l.length&&E(l,function(u){a=!0,this._mergeOption(u,i)},this)}return a},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,i){var a=this.option,n=this._componentsMap,o=this._componentsCount,s=[],l=te(),u=i&&i.replaceMergeMainTypeMap;kw(this),E(r,function(c,p){c!=null&&(Ne.hasClass(p)?p&&(s.push(p),l.set(p,!0)):a[p]=a[p]==null?ee(c):Ce(a[p],c,!0))}),u&&u.each(function(c,p){Ne.hasClass(p)&&!l.get(p)&&(s.push(p),l.set(p,!0))}),Ne.topologicalTravel(s,Ne.getAllClassMainTypes(),f,this);function f(c){var p=Fw(this,c,Ge(r[c])),h=n.get(c),d=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",v=Ac(h,p,d);Jb(v,c,Ne),a[c]=null,n.set(c,null),o.set(c,0);var m=[],g=[],y=0,x,_;E(v,function(b,S){var w=b.existing,A=b.newOption;if(!A)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var C=c==="series",T=Ne.getClass(c,b.keyInfo.subType,!C);if(!T){if(0)var M,O;return}if(c==="tooltip"){if(x)return;x=!0}if(w&&w.constructor===T)w.name=b.keyInfo.name,w.mergeOption(A,this),w.optionUpdated(A,!1);else{var L=k({componentIndex:S},b.keyInfo);w=new T(A,this,this,L),k(w,L),b.brandNew&&(w.__requireNewView=!0),w.init(A,this,this),w.optionUpdated(null,!0)}}w?(m.push(w.option),g.push(w),y++):(m.push(void 0),g.push(void 0))},this),a[c]=m,n.set(c,g),o.set(c,y),c==="series"&&Bp(this)}this._seriesIndices||Bp(this)},e.prototype.getOption=function(){var r=ee(this.option);return E(r,function(i,a){if(Ne.hasClass(a)){for(var n=Ge(i),o=n.length,s=!1,l=o-1;l>=0;l--)n[l]&&!Ss(n[l])?s=!0:(n[l]=null,!s&&o--);n.length=o,r[a]=n}}),delete r[Yw],r},e.prototype.setTheme=function(r){this._theme=new je(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,i){var a=this._componentsMap.get(r);if(a){var n=a[i||0];if(n)return n;if(i==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},e.prototype.queryComponents=function(r){var i=r.mainType;if(!i)return[];var a=r.index,n=r.id,o=r.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return a!=null?(l=[],E(Ge(a),function(u){s[u]&&l.push(s[u])})):n!=null?l=Ww("id",n,s):o!=null?l=Ww("name",o,s):l=Ue(s,function(u){return!!u}),$w(l,r)},e.prototype.findComponents=function(r){var i=r.query,a=r.mainType,n=s(i),o=n?this.queryComponents(n):Ue(this._componentsMap.get(a),function(u){return!!u});return l($w(o,r));function s(u){var f=a+"Index",c=a+"Id",p=a+"Name";return u&&(u[f]!=null||u[c]!=null||u[p]!=null)?{mainType:a,index:u[f],id:u[c],name:u[p]}:null}function l(u){return r.filter?Ue(u,r.filter):u}},e.prototype.eachComponent=function(r,i,a){var n=this._componentsMap;if(Z(r)){var o=i,s=r;n.each(function(c,p){for(var h=0;c&&h<c.length;h++){var d=c[h];d&&s.call(o,p,d,d.componentIndex)}})}else for(var l=G(r)?n.get(r):$(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&i.call(a,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var i=wt(r,null);return Ue(this._componentsMap.get("series"),function(a){return!!a&&i!=null&&a.name===i})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return Ue(this._componentsMap.get("series"),function(i){return!!i&&i.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,i){_u(this),E(this._seriesIndices,function(a){var n=this._componentsMap.get("series")[a];r.call(i,n,a)},this)},e.prototype.eachRawSeries=function(r,i){E(this._componentsMap.get("series"),function(a){a&&r.call(i,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(r,i,a){_u(this),E(this._seriesIndices,function(n){var o=this._componentsMap.get("series")[n];o.subType===r&&i.call(a,o,n)},this)},e.prototype.eachRawSeriesByType=function(r,i,a){return E(this.getSeriesByType(r),i,a)},e.prototype.isSeriesFiltered=function(r){return _u(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,i){_u(this);var a=[];E(this._seriesIndices,function(n){var o=this._componentsMap.get("series")[n];r.call(i,o,n)&&a.push(n)},this),this._seriesIndices=a,this._seriesIndicesMap=te(a)},e.prototype.restoreData=function(r){Bp(this);var i=this._componentsMap,a=[];i.each(function(n,o){Ne.hasClass(o)&&a.push(o)}),Ne.topologicalTravel(a,Ne.getAllClassMainTypes(),function(n){E(i.get(n),function(o){o&&(n!=="series"||!Ak(o,r))&&o.restoreData()})})},e.internalField=(function(){Bp=function(r){var i=r._seriesIndices=[];E(r._componentsMap.get("series"),function(a){a&&i.push(a.componentIndex)}),r._seriesIndicesMap=te(i)},_u=function(r){},Kw=function(r,i){r.option={},r.option[Yw]=Ek,r._componentsMap=te({series:[]}),r._componentsCount=te();var a=i.aria;$(a)&&a.enabled==null&&(a.enabled=!0),Mk(i,r._theme.option),Ce(i,zp,!1),r._mergeOption(i,null)}})(),e})(je);function Ak(t,e){if(e){var r=e.seriesIndex,i=e.seriesId,a=e.seriesName;return r!=null&&t.componentIndex!==r||i!=null&&t.id!==i||a!=null&&t.name!==a}}function Mk(t,e){var r=t.color&&!t.colorLayer;E(e,function(i,a){a==="colorLayer"&&r||a==="color"&&t.color||Ne.hasClass(a)||(typeof i=="object"?t[a]=t[a]?Ce(t[a],i,!1):ee(i):t[a]==null&&(t[a]=i))})}function Ww(t,e,r){if(V(e)){var i=te();return E(e,function(n){if(n!=null){var o=wt(n,null);o!=null&&i.set(n,!0)}}),Ue(r,function(n){return n&&i.get(n[t])})}else{var a=wt(e,null);return Ue(r,function(n){return n&&a!=null&&n[t]===a})}}function $w(t,e){return e.hasOwnProperty("subType")?Ue(t,function(r){return r&&r.subType===e.subType}):t}function Xw(t){var e=te();return t&&E(Ge(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}Ut(qw,xu);var Fp=qw;var Lk=/^(min|max)?(.+)$/,Dk=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,i){e&&(E(Ge(e.series),function(o){o&&o.data&&ft(o.data)&&os(o.data)}),E(Ge(e.dataset),function(o){o&&o.source&&ft(o.source)&&os(o.source)})),e=ee(e);var a=this._optionBackup,n=Ok(e,r,!a);this._newBaseOption=n.baseOption,a?(n.timelineOptions.length&&(a.timelineOptions=n.timelineOptions),n.mediaList.length&&(a.mediaList=n.mediaList),n.mediaDefault&&(a.mediaDefault=n.mediaDefault)):this._optionBackup=n},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],ee(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,i=this._timelineOptions;if(i.length){var a=e.getComponent("timeline");a&&(r=ee(i[a.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),i=this._api.getHeight(),a=this._mediaList,n=this._mediaDefault,o=[],s=[];if(!a.length&&!n)return s;for(var l=0,u=a.length;l<u;l++)Ik(a[l].query,r,i)&&o.push(l);return!o.length&&n&&(o=[-1]),o.length&&!Nk(o,this._currentMediaIndices)&&(s=F(o,function(f){return ee(f===-1?n.option:a[f].option)})),this._currentMediaIndices=o,s},t})();function Ok(t,e,r){var i=[],a,n,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,f=!!t.media,c=!!(l||s||o&&o.timeline);o?(n=o,n.timeline||(n.timeline=s)):((c||f)&&(t.options=t.media=null),n=t),f&&V(u)&&E(u,function(h){h&&h.option&&(h.query?i.push(h):a||(a=h))}),p(n),E(l,function(h){return p(h)}),E(i,function(h){return p(h.option)});function p(h){E(e,function(d){d(h,r)})}return{baseOption:n,timelineOptions:l||[],mediaDefault:a,mediaList:i}}function Ik(t,e,r){var i={width:e,height:r,aspectratio:e/r},a=!0;return E(t,function(n,o){var s=o.match(Lk);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();Pk(i[u],n,l)||(a=!1)}}),a}function Pk(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function Nk(t,e){return t.join(",")===e.join(",")}var Zw=Dk;var _i=E,Su=$,jw=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Kg(t){var e=t&&t.itemStyle;if(e)for(var r=0,i=jw.length;r<i;r++){var a=jw[r],n=e.normal,o=e.emphasis;n&&n[a]&&(t[a]=t[a]||{},t[a].normal?Ce(t[a].normal,n[a]):t[a].normal=n[a],n[a]=null),o&&o[a]&&(t[a]=t[a]||{},t[a].emphasis?Ce(t[a].emphasis,o[a]):t[a].emphasis=o[a],o[a]=null)}}function jt(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,a=t[e].emphasis;i&&(r?(t[e].normal=t[e].emphasis=null,le(t[e],i)):t[e]=i),a&&(t.emphasis=t.emphasis||{},t.emphasis[e]=a,a.focus&&(t.emphasis.focus=a.focus),a.blurScope&&(t.emphasis.blurScope=a.blurScope))}}function bu(t){jt(t,"itemStyle"),jt(t,"lineStyle"),jt(t,"areaStyle"),jt(t,"label"),jt(t,"labelLine"),jt(t,"upperLabel"),jt(t,"edgeLabel")}function vt(t,e){var r=Su(t)&&t[e],i=Su(r)&&r.textStyle;if(i)for(var a=0,n=um.length;a<n;a++){var o=um[a];i.hasOwnProperty(o)&&(r[o]=i[o])}}function ti(t){t&&(bu(t),vt(t,"label"),t.emphasis&&vt(t.emphasis,"label"))}function Rk(t){if(Su(t)){Kg(t),bu(t),vt(t,"label"),vt(t,"upperLabel"),vt(t,"edgeLabel"),t.emphasis&&(vt(t.emphasis,"label"),vt(t.emphasis,"upperLabel"),vt(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Kg(e),ti(e));var r=t.markLine;r&&(Kg(r),ti(r));var i=t.markArea;i&&ti(i);var a=t.data;if(t.type==="graph"){a=a||t.nodes;var n=t.links||t.edges;if(n&&!ft(n))for(var o=0;o<n.length;o++)ti(n[o]);E(t.categories,function(u){bu(u)})}if(a&&!ft(a))for(var o=0;o<a.length;o++)ti(a[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)ti(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)V(l[o])?(ti(l[o][0]),ti(l[o][1])):ti(l[o]);t.type==="gauge"?(vt(t,"axisLabel"),vt(t,"title"),vt(t,"detail")):t.type==="treemap"?(jt(t.breadcrumb,"itemStyle"),E(t.levels,function(u){bu(u)})):t.type==="tree"&&bu(t.leaves)}}function wa(t){return V(t)?t:t?[t]:[]}function Jw(t){return(V(t)?t[0]:t)||{}}function Yg(t,e){_i(wa(t.series),function(i){Su(i)&&Rk(i)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),_i(r,function(i){_i(wa(t[i]),function(a){a&&(vt(a,"axisLabel"),vt(a.axisPointer,"label"))})}),_i(wa(t.parallel),function(i){var a=i&&i.parallelAxisDefault;vt(a,"axisLabel"),vt(a&&a.axisPointer,"label")}),_i(wa(t.calendar),function(i){jt(i,"itemStyle"),vt(i,"dayLabel"),vt(i,"monthLabel"),vt(i,"yearLabel")}),_i(wa(t.radar),function(i){vt(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),_i(wa(t.geo),function(i){Su(i)&&(ti(i),_i(wa(i.regions),function(a){ti(a)}))}),_i(wa(t.timeline),function(i){ti(i),jt(i,"label"),jt(i,"itemStyle"),jt(i,"controlStyle",!0);var a=i.data;V(a)&&E(a,function(n){$(n)&&(jt(n,"label"),jt(n,"itemStyle"))})}),_i(wa(t.toolbox),function(i){jt(i,"iconStyle"),_i(i.feature,function(a){jt(a,"iconStyle")})}),vt(Jw(t.axisPointer),"label"),vt(Jw(t.tooltip).axisPointer,"label")}function kk(t,e){for(var r=e.split(","),i=t,a=0;a<r.length&&(i=i&&i[r[a]],i!=null);a++);return i}function zk(t,e,r,i){for(var a=e.split(","),n=t,o,s=0;s<a.length-1;s++)o=a[s],n[o]==null&&(n[o]={}),n=n[o];(i||n[a[s]]==null)&&(n[a[s]]=r)}function Qw(t){t&&E(Vk,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var Vk=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Uk=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Wg=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Cu(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<Wg.length;r++){var i=Wg[r][1],a=Wg[r][0];e[i]!=null&&(e[a]=e[i])}}function eT(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function tT(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Bk(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function rT(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&rT(t[r].children,e)}function Hp(t,e){Yg(t,e),t.series=Ge(t.series),E(t.series,function(r){if($(r)){var i=r.type;if(i==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(i==="pie"||i==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),eT(r.label);var a=r.data;if(a&&!ft(a))for(var n=0;n<a.length;n++)eT(a[n]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(i==="gauge"){var o=kk(r,"pointer.color");o!=null&&zk(r,"itemStyle.color",o)}else if(i==="bar"){Cu(r),Cu(r.backgroundStyle),Cu(r.emphasis);var a=r.data;if(a&&!ft(a))for(var n=0;n<a.length;n++)typeof a[n]=="object"&&(Cu(a[n]),Cu(a[n]&&a[n].emphasis))}else if(i==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),tT(r),rT(r.data,tT)}else i==="graph"||i==="sankey"?Bk(r):i==="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)),Qw(r)}}),t.dataRange&&(t.visualMap=t.dataRange),E(Uk,function(r){var i=t[r];i&&(V(i)||(i=[i]),E(i,function(a){Qw(a)}))})}var iT=Ts(Fk);function Fk(t){var e=te();t.eachSeries(function(r){var i=r.get("stack");if(i){var a=e.get(i)||e.set(i,[]),n=r.getData(),o={stackResultDimension:n.getCalculationInfo("stackResultDimension"),stackedOverDimension:n.getCalculationInfo("stackedOverDimension"),stackedDimension:n.getCalculationInfo("stackedDimension"),stackedByDimension:n.getCalculationInfo("stackedByDimension"),isStackedByIndex:n.getCalculationInfo("isStackedByIndex"),data:n,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.push(o)}}),e.each(function(r){if(r.length!==0){var i=r[0].seriesModel,a=i.get("stackOrder")||"seriesAsc";a==="seriesDesc"&&r.reverse(),E(r,function(n,o){n.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),Hk(r)}})}function Hk(t){E(t,function(e,r){var i=[],a=[NaN,NaN],n=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(n,function(u,f,c){var p=o.get(e.stackedDimension,c);if(isNaN(p))return a;var h,d;s?d=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var v=NaN,m=r-1;m>=0;m--){var g=t[m];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,h)),d>=0){var y=g.data.getByRawIndex(g.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&p>=0&&y>0||l==="samesign"&&p<=0&&y<0){p=ha(p,y),v=y;break}}}return i[0]=p,i[1]=v,i})})}var Gp=(function(){function t(e){this.data=e.data||(e.sourceFormat===Sr?{}:[]),this.sourceFormat=e.sourceFormat||zm,this.seriesLayoutBy=e.seriesLayoutBy||Rr,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var i=0;i<r.length;i++){var a=r[i];a.type==null&&Up(this,i)===Et.Must&&(a.type="ordinal")}}return t})();function Xs(t){return t instanceof Gp}function wu(t,e,r){r=r||$g(t);var i=e.seriesLayoutBy,a=Gk(t,r,i,e.sourceHeader,e.dimensions),n=new Gp({data:t,sourceFormat:r,seriesLayoutBy:i,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:ee(e)});return n}function qs(t){return new Gp({data:t,sourceFormat:ft(t)?Nr:Tt})}function oT(t){return new Gp({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:ee(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function $g(t){var e=zm;if(ft(t))e=Nr;else if(V(t)){t.length===0&&(e=xt);for(var r=0,i=t.length;r<i;r++){var a=t[r];if(a!=null){if(V(a)||ft(a)){e=xt;break}else if($(a)){e=Xt;break}}}}else if($(t)){for(var n in t)if(se(t,n)&&lt(t[n])){e=Sr;break}}return e}function Gk(t,e,r,i,a){var n,o;if(!t)return{dimensionsDefine:aT(a),startIndex:o,dimensionsDetectedCount:n};if(e===xt){var s=t;i==="auto"||i==null?nT(function(u){u!=null&&u!=="-"&&(G(u)?o==null&&(o=1):o=0)},r,s,10):o=me(i)?i:i?1:0,!a&&o===1&&(a=[],nT(function(u,f){a[f]=u!=null?u+"":""},r,s,1/0)),n=a?a.length:r===Gi?s.length:s[0]?s[0].length:null}else if(e===Xt)a||(a=Kk(t));else if(e===Sr)a||(a=[],E(t,function(u,f){a.push(f)}));else if(e===Tt){var l=da(t[0]);n=V(l)&&l.length||1}return{startIndex:o,dimensionsDefine:aT(a),dimensionsDetectedCount:n}}function Kk(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return ie(r)}function aT(t){if(t){var e=te();return F(t,function(r,i){r=$(r)?r:{name:r};var a={name:r.name,displayName:r.displayName,type:r.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var n=e.get(a.name);return n?a.name+="-"+n.count++:e.set(a.name,{count:1}),a})}}function nT(t,e,r,i){if(e===Gi)for(var a=0;a<r.length&&a<i;a++)t(r[a]?r[a][0]:null,a);else for(var n=r[0]||[],a=0;a<n.length&&a<i;a++)t(n[a],a)}function Kp(t){var e=t.sourceFormat;return e===Xt||e===Sr}var So,Co,wo,To,sT,lT,Wp=(function(){function t(e,r){var i=Xs(e)?e:qs(e);this._source=i;var a=this._data=i.data,n=i.sourceFormat,o=i.seriesLayoutBy;if(n===Nr&&(this._offset=0,this._dimSize=r,this._data=a),0)var s;lT(this,a,i)}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;lT=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,p=l.dimensionsDefine,h=sT[Jg(u,f)];if(k(o,h),u===Nr)o.getItem=r,o.count=a,o.fillStorage=i;else{var d=qg(u,f);o.getItem=oe(d,null,s,c,p);var v=Zg(u,f);o.count=oe(v,null,s,c,p)}};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},i=function(o,s,l,u){for(var f=this._data,c=this._dimSize,p=0;p<c;p++){for(var h=u[p],d=h[0]==null?1/0:h[0],v=h[1]==null?-1/0:h[1],m=s-o,g=l[p],y=0;y<m;y++){var x=f[y*c+p];g[o+y]=x,x<d&&(d=x),x>v&&(v=x)}h[0]=d,h[1]=v}},a=function(){return this._data?this._data.length/this._dimSize:0};sT=(e={},e[xt+"_"+Rr]={pure:!0,appendData:n},e[xt+"_"+Gi]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Xt]={pure:!0,appendData:n},e[Sr]={pure:!0,appendData:function(o){var s=this._data;E(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[Tt]={appendData:n},e[Nr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function n(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),t})();var Yp=function(t){V(t)||lm("series.data or dataset.source must be an array.")},C6=(So={},So[xt+"_"+Rr]=Yp,So[xt+"_"+Gi]=Yp,So[Xt]=Yp,So[Sr]=function(t,e){for(var r=0;r<e.length;r++){var i=e[r].name;i==null&&lm("dimension name must not be null/undefined.")}},So[Tt]=Yp,So),uT=function(t,e,r,i){return t[i]},Yk=(Co={},Co[xt+"_"+Rr]=function(t,e,r,i){return t[i+e]},Co[xt+"_"+Gi]=function(t,e,r,i,a){i+=e;for(var n=a||[],o=t,s=0;s<o.length;s++){var l=o[s];n[s]=l?l[i]:null}return n},Co[Xt]=uT,Co[Sr]=function(t,e,r,i,a){for(var n=a||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?t[s]:null;n[o]=l?l[i]:null}return n},Co[Tt]=uT,Co);function qg(t,e){var r=Yk[Jg(t,e)];return r}var fT=function(t,e,r){return t.length},Wk=(wo={},wo[xt+"_"+Rr]=function(t,e,r){return Math.max(0,t.length-e)},wo[xt+"_"+Gi]=function(t,e,r){var i=t[0];return i?Math.max(0,i.length-e):0},wo[Xt]=fT,wo[Sr]=function(t,e,r){var i=r[0].name,a=i!=null?t[i]:null;return a?a.length:0},wo[Tt]=fT,wo);function Zg(t,e){var r=Wk[Jg(t,e)];return r}var Xg=function(t,e,r){return t[e]},$k=(To={},To[xt]=Xg,To[Xt]=function(t,e,r){return t[r]},To[Sr]=Xg,To[Tt]=function(t,e,r){var i=da(t);return i instanceof Array?i[e]:i},To[Nr]=Xg,To);function jg(t){var e=$k[t];return e}function Jg(t,e){return t===xt?t+"_"+e:t}function Ta(t,e,r){if(t){var i=t.getRawDataItem(e);if(i!=null){var a=t.getStore(),n=a.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=a.getDimensionProperty(o);return jg(n)(i,o,s)}else{var l=i;return n===Tt&&(l=da(i)),l}}}}var Xk=/\{@(.+?)\}/g,cT=(function(){function t(){}return t.prototype.getDataParams=function(e,r){var i=this.getData(r),a=this.getRawValue(e,r),n=i.getRawIndex(e),o=i.getName(e),s=i.getRawDataItem(e),l=i.getItemVisual(e,"style"),u=l&&l[i.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,p=c==="series",h=i.userOutput&&i.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:o,dataIndex:n,data:s,dataType:r,value:a,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,i,a,n,o){r=r||"normal";var s=this.getData(i),l=this.getDataParams(e,i);if(o&&(l.value=o.interpolatedValue),a!=null&&V(l.value)&&(l.value=l.value[a]),!n){var u=s.getItemModel(e);n=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(Z(n))return l.status=r,l.dimensionIndex=a,n(l);if(G(n)){var f=Ks(n,l);return f.replace(Xk,function(c,p){var h=p.length,d=p;d.charAt(0)==="["&&d.charAt(h-1)==="]"&&(d=+d.slice(1,h-1));var v=Ta(s,e,d);if(o&&V(o.interpolatedValue)){var m=s.getDimensionIndex(d);m>=0&&(v=o.interpolatedValue[m])}return v!=null?v+"":""})}},t.prototype.getRawValue=function(e,r){return Ta(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,i){},t})();function Qg(t){var e,r;return $(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function mn(t){return new qk(t)}var qk=(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,i=e&&e.skip;if(this._dirty&&r){var a=this.context;a.data=a.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var n;this._plan&&!i&&(n=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)&&(n="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||n==="reset")&&(this._dirty=!1,c=this._doReset(i)),this._modBy=l,this._modDataCount=u;var p=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(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(c||h<d)){var v=this._progress;if(V(v))for(var m=0;m<v.length;m++)this._doProgress(v[m],h,d,l,u);else this._doProgress(v,h,d,l,u)}this._dueIndex=d;var g=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=g}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,i,a,n){pT.reset(r,i,a,n),this._callingProgress=e,this._callingProgress({start:r,end:i,count:i-r,next:pT.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,i;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(i=r.forceFirstProgress,r=r.progress),V(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),i},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})();var pT=(function(){var t,e,r,i,a,n={reset:function(l,u,f,c){e=l,t=u,r=f,i=c,a=Math.ceil(i/r),n.next=r>1&&i>0?s:o}};return n;function o(){return e<t?e++:null}function s(){var l=e%a*r+Math.ceil(e/a),u=e>=t?null:l<i?l:e;return e++,u}})();function Zs(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!me(t)&&t!=null&&t!=="-"&&(t=+pi(t)),t==null||t===""?NaN:Number(t))}var N6=te({number:function(t){return parseFloat(t)},time:function(t){return+pi(t)},trim:function(t){return G(t)?Bt(t):t}});var Zk={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},R6=(function(){function t(e,r){if(!me(r)){var i="";It(i)}this._opFn=Zk[e],this._rvalFloat=Ri(r)}return t.prototype.evaluate=function(e){return me(e)?this._opFn(e,this._rvalFloat):this._opFn(Ri(e),this._rvalFloat)},t})(),hT=(function(){function t(e,r){var i=e==="desc";this._resultLT=i?1:-1,r==null&&(r=i?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var i=me(e)?e:Ri(e),a=me(r)?r:Ri(r),n=isNaN(i),o=isNaN(a);if(n&&(i=this._incomparable),o&&(a=this._incomparable),n&&o){var s=G(e),l=G(r);s&&(i=l?e:0),l&&(a=s?r:0)}return i<a?this._resultLT:i>a?-this._resultLT:0},t})();var k6=(function(){function t(e,r){this._rval=r,this._isEQ=e,this._rvalTypeof=typeof r,this._rvalFloat=Ri(r)}return t.prototype.evaluate=function(e){var r=e===this._rval;if(!r){var i=typeof e;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(r=Ri(e)===this._rvalFloat)}return this._isEQ?r:!r},t})();function $p(t){var e="",r=-1/0,i=-1/0,a=1/0,n=1/0;return t&&(t.g!=null&&(e+="G"+t.g,r=t.g),t.ge!=null&&(e+="GE"+t.ge,i=t.ge),t.l!=null&&(e+="L"+t.l,a=t.l),t.le!=null&&(e+="LE"+t.le,n=t.le)),{key:e,g:r,ge:i,l:a,le:n}}function Xp(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var jk=(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 Zs(e,r)},t})();function Jk(t,e){var r=new jk,i=t.data,a=r.sourceFormat=t.sourceFormat,n=t.startIndex,o="";t.seriesLayoutBy!==Rr&&It(o);var s=[],l={},u=t.dimensionsDefine;if(u)E(u,function(v,m){var g=v.name,y={index:m,name:g,displayName:v.displayName};if(s.push(y),g!=null){var x="";se(l,g)&&It(x),l[g]=y}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=qg(a,Rr);e.__isBuiltIn&&(r.getRawDataItem=function(v){return c(i,n,s,v)},r.getRawData=oe(Qk,null,t)),r.cloneRawData=oe(e2,null,t);var p=Zg(a,Rr);r.count=oe(p,null,i,n,s);var h=jg(a);r.retrieveValue=function(v,m){var g=c(i,n,s,v);return d(g,m)};var d=r.retrieveValueFromItem=function(v,m){if(v!=null){var g=s[m];if(g)return h(v,m,g.name)}};return r.getDimensionInfo=oe(t2,null,s,l),r.cloneAllDimensionInfo=oe(r2,null,s),r}function Qk(t){var e=t.sourceFormat;if(!ey(e)){var r="";It(r)}return t.data}function e2(t){var e=t.sourceFormat,r=t.data;if(!ey(e)){var i="";It(i)}if(e===xt){for(var a=[],n=0,o=r.length;n<o;n++)a.push(r[n].slice());return a}else if(e===Xt){for(var a=[],n=0,o=r.length;n<o;n++)a.push(k({},r[n]));return a}}function t2(t,e,r){if(r!=null){if(me(r)||!isNaN(r)&&!se(e,r))return t[r];if(se(e,r))return e[r]}}function r2(t){return ee(t)}var dT=te();function vT(t){t=ee(t);var e=t.type,r="";e||It(r);var i=e.split(":");i.length!==2&&It(r);var a=!1;i[0]==="echarts"&&(e=i[1],a=!0),t.__isBuiltIn=a,dT.set(e,t)}function mT(t,e,r){var i=Ge(t),a=i.length,n="";a||It(n);for(var o=0,s=a;o<s;o++){var l=i[o];e=i2(l,e,r,a===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function i2(t,e,r,i){var a="";e.length||It(a),$(t)||It(a);var n=t.type,o=dT.get(n);o||It(a);var s=F(e,function(f){return Jk(f,o)}),l=Ge(o.transform({upstream:s[0],upstreamList:s,config:ee(t.config)}));if(0&&t.print)var u;return F(l,function(f,c){var p="";$(f)||It(p),f.data||It(p);var h=$g(f.data);ey(h)||It(p);var d,v=e[0];if(v&&c===0&&!f.dimensions){var m=v.startIndex;m&&(f.data=v.data.slice(0,m).concat(f.data)),d={seriesLayoutBy:Rr,sourceHeader:m,dimensions:v.metaRawOption.dimensions}}else d={seriesLayoutBy:Rr,sourceHeader:0,dimensions:f.dimensions};return wu(f.data,d,null)})}function ey(t){return t===xt||t===Xt}var a2=typeof Uint32Array===ln?Array:Uint32Array,n2=typeof Uint16Array===ln?Array:Uint16Array,ry=typeof Int32Array===ln?Array:Int32Array,gT=typeof Float64Array===ln?Array:Float64Array,xT={float:gT,int:ry,ordinal:Array,number:Array,time:gT},ty;function js(t){return t>65535?a2:n2}function o2(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function yT(t,e,r,i,a){var n=xT[r||"float"];if(a){var o=t[e],s=o&&o.length;if(s!==i){for(var l=new n(i),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new n(i)}var s2=(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,i){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),n=this.defaultDimValueGetter=ty[a.sourceFormat];this._dimValueGetter=i||n,this._rawExtent=[];var o=Kp(a);this._dimensions=F(r,function(s){return{type:s.type,property:s.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 i=this._calcDimNameToIdx,a=this._dimensions,n=i.get(e);if(n!=null){if(a[n].type===r)return n}else n=a.length;return a[n]={type:r},i.set(e,n),this._chunks[n]=new xT[r||"float"](this._rawCount),this._rawExtent[n]=Gt(),n},t.prototype.collectOrdinalMeta=function(e,r){var i=this._chunks[e],a=this._dimensions[e],n=this._rawExtent,o=a.ordinalOffset||0,s=i.length;o===0&&(n[e]=Gt());for(var l=n[e],u=o;u<s;u++){var f=i[u]=r.parseAndCollect(i[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}a.ordinalMeta=r,a.ordinalOffset=s,a.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],i=r.ordinalMeta;return i},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,i=this.count();r.appendData(e);var a=r.count();return r.persistent||(a+=i),i<a&&this._initDataFromProvider(i,a,!0),[i,a]},t.prototype.appendValues=function(e,r){for(var i=this._chunks,a=this._dimensions,n=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<n;u++){var f=a[u];yT(i,u,f.type,l,!0)}for(var c=[],p=s;p<l;p++)for(var h=p-s,d=0;d<n;d++){var f=a[d],v=ty.arrayRows.call(this,e[h]||c,f.property,h,d);i[d][p]=v;var m=o[d];v<m[0]&&(m[0]=v),v>m[1]&&(m[1]=v)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,i){for(var a=this._provider,n=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=F(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=Gt()),yT(n,f,c.type,r,i)}if(a.fillStorage)a.fillStorage(e,r,n,l);else for(var p=[],h=e;h<r;h++){p=a.getItem(h,p);for(var d=0;d<s;d++){var v=n[d],m=this._dimValueGetter(p,u[d],h,d);v[h]=m;var g=l[d];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}!a.persistent&&a.clean&&a.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 i=this._chunks[e];return i?i[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var i=[],a=[];if(r==null){r=e,e=[];for(var n=0;n<this._dimensions.length;n++)a.push(n)}else a=e;for(var n=0,o=a.length;n<o;n++)i.push(this.get(a[n],r));return i},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var i=this._chunks[e];return i?i[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],i=0;if(r)for(var a=0,n=this.count();a<n;a++){var o=this.get(e,a);isNaN(o)||(i+=o)}return i},t.prototype.getMedian=function(e){var r=[];this.each([e],function(a){isNaN(a)||r.push(a)}),Ni(r);var i=this.count();return i===0?0:i%2===1?r[(i-1)/2]:(r[i/2]+r[i/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,i=r[e];if(i!=null&&i<this._count&&i===e)return e;for(var a=0,n=this._count-1;a<=n;){var o=(a+n)/2|0;if(r[o]<e)a=o+1;else if(r[o]>e)n=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var i=r.constructor,a=this._count;if(i===Array){e=new i(a);for(var n=0;n<a;n++)e[n]=r[n]}else e=new i(r.buffer,0,a)}else{var i=js(this._rawCount);e=new i(this.count());for(var n=0;n<e.length;n++)e[n]=n}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var i=this.clone(),a=i.count(),n=js(i._rawCount),o=new n(a),s=[],l=e.length,u=0,f=e[0],c=i._chunks,p=0;p<a;p++){var h=void 0,d=i.getRawIndex(p);if(l===0)h=r(p);else if(l===1){var v=c[f][d];h=r(v,p)}else{for(var m=0;m<l;m++)s[m]=c[e[m]][d];s[m]=p,h=r.apply(null,s)}h&&(o[u++]=d)}return u<a&&(i._indices=o),i._count=u,i._extent=[],i._updateGetRawIdx(),i},t.prototype.selectRange=function(e){var r=this.clone(),i=r._count;if(!i)return this;var a=ie(e),n=a.length;if(!n)return this;var o=r.count(),s=js(r._rawCount),l=new s(o),u=0,f=a[0],c=e[f][0],p=e[f][1],h=r._chunks,d=!1;if(!r._indices){var v=0;if(n===1){for(var m=h[a[0]],g=0;g<i;g++){var y=m[g];(y>=c&&y<=p||isNaN(y))&&(l[u++]=v),v++}d=!0}else if(n===2){for(var m=h[a[0]],x=h[a[1]],_=e[a[1]][0],b=e[a[1]][1],g=0;g<i;g++){var y=m[g],S=x[g];(y>=c&&y<=p||isNaN(y))&&(S>=_&&S<=b||isNaN(S))&&(l[u++]=v),v++}d=!0}}if(!d)if(n===1)for(var g=0;g<o;g++){var w=r.getRawIndex(g),y=h[a[0]][w];(y>=c&&y<=p||isNaN(y))&&(l[u++]=w)}else for(var g=0;g<o;g++){for(var A=!0,w=r.getRawIndex(g),C=0;C<n;C++){var T=a[C],y=h[T][w];(y<e[T][0]||y>e[T][1])&&(A=!1)}A&&(l[u++]=r.getRawIndex(g))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var i=this.clone(e);return this._updateDims(i,e,r),i},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,i){for(var a=e._chunks,n=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<r.length;f++)u[r[f]]=Gt();for(var c=0;c<s;c++){for(var p=e.getRawIndex(c),h=0;h<o;h++)l[h]=a[r[h]][p];l[o]=c;var d=i&&i.apply(null,l);if(d!=null){typeof d!="object"&&(n[0]=d,d=n);for(var f=0;f<d.length;f++){var v=r[f],m=d[f],g=u[v],y=a[v];y&&(y[p]=m),m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}}},t.prototype.lttbDownSample=function(e,r){var i=this.clone([e],!0),a=i._chunks,n=a[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,p,h=new(js(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 v=Math.min(d+l,o-1),m=Math.min(d+l*2,o),g=(m+v)/2,y=0,x=v;x<m;x++){var _=this.getRawIndex(x),b=n[_];isNaN(b)||(y+=b)}y/=m-v;var S=d,w=Math.min(d+l,o),A=d-1,C=n[u];f=-1,p=S;for(var T=-1,M=0,x=S;x<w;x++){var _=this.getRawIndex(x),b=n[_];if(isNaN(b)){M++,T<0&&(T=_);continue}c=Math.abs((A-g)*(b-C)-(A-x)*(y-C)),c>f&&(f=c,p=_)}M>0&&M<w-S&&(h[s++]=Math.min(T,p),p=Math.max(T,p)),h[s++]=p,u=p}return h[s++]=this.getRawIndex(o-1),i._count=s,i._indices=h,i.getRawIndex=this._getRawIdx,i},t.prototype.minmaxDownSample=function(e,r){for(var i=this.clone([e],!0),a=i._chunks,n=Math.floor(1/r),o=a[e],s=this.count(),l=new(js(this._rawCount))(Math.ceil(s/n)*2),u=0,f=0;f<s;f+=n){var c=f,p=o[this.getRawIndex(c)],h=f,d=o[this.getRawIndex(h)],v=n;f+n>s&&(v=s-f);for(var m=0;m<v;m++){var g=this.getRawIndex(f+m),y=o[g];y<p&&(p=y,c=f+m),y>d&&(d=y,h=f+m)}var x=this.getRawIndex(c),_=this.getRawIndex(h);c<h?(l[u++]=x,l[u++]=_):(l[u++]=_,l[u++]=x)}return i._count=u,i._indices=l,i._updateGetRawIdx(),i},t.prototype.downSample=function(e,r,i,a){for(var n=this.clone([e],!0),o=n._chunks,s=[],l=Math.floor(1/r),u=o[e],f=this.count(),c=n._rawExtent[e]=Gt(),p=new(js(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 v=0;v<l;v++){var m=this.getRawIndex(d+v);s[v]=u[m]}var g=i(s),y=this.getRawIndex(Math.min(d+a(s,g)||0,f-1));u[y]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),p[h++]=y}return n._count=h,n._indices=p,n._updateGetRawIdx(),n},t.prototype.each=function(e,r){if(this._count)for(var i=e.length,a=this._chunks,n=0,o=this.count();n<o;n++){var s=this.getRawIndex(n);switch(i){case 0:r(n);break;case 1:r(a[e[0]][s],n);break;case 2:r(a[e[0]][s],a[e[1]][s],n);break;default:for(var l=0,u=[];l<i;l++)u[l]=a[e[l]][s];u[l]=n,r.apply(null,u)}}},t.prototype.getDataExtent=function(e,r){var i=this._chunks[e],a=Gt();if(!i)return a;var n=this.count(),o=!this._indices&&!r;if(o)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=$p(r),f=u.key,c=l[f];if(c)return c.slice();for(var p=a[0],h=a[1],d=0;d<n;d++){var v=this.getRawIndex(d),m=i[v];(!r||Xp(u,m))&&(m<p&&(p=m),m>h&&(h=m))}return l[f]=[p,h]},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var i=[],a=this._chunks,n=0;n<a.length;n++)i.push(a[n][r]);return i},t.prototype.clone=function(e,r){var i=new t,a=this._chunks,n=e&&ir(e,function(s,l){return s[l]=!0,s},{});if(n)for(var o=0;o<a.length;o++)i._chunks[o]=n[o]?o2(a[o]):a[o];else i._chunks=a;return this._copyCommonProps(i),r||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=ee(this._extent),e._rawExtent=ee(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var i=this._indices.length;r=new e(i);for(var a=0;a<i;a++)r[a]=this._indices[a]}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,i,a,n){return Zs(r[n],this._dimensions[n])}ty={arrayRows:e,objectRows:function(r,i,a,n){return Zs(r[i],this._dimensions[n])},keyedColumns:e,original:function(r,i,a,n){var o=r&&(r.value==null?r:r.value);return Zs(o instanceof Array?o[n]:o,this._dimensions[n])},typedArray:function(r,i,a,n){return r[n]}}})(),t})(),Tu=s2;var bT=(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(),i=!!r.length,a,n;if(qp(e)){var o=e,s=void 0,l=void 0,u=void 0;if(i){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,n=[f._getVersionSign()]}else s=o.get("data",!0),l=ft(s)?Nr:Tt,n=[];var c=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},h=X(c.seriesLayoutBy,p.seriesLayoutBy)||null,d=X(c.sourceHeader,p.sourceHeader),v=X(c.dimensions,p.dimensions),m=h!==p.seriesLayoutBy||!!d!=!!p.sourceHeader||v;a=m?[wu(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:v},l)]:[]}else{var g=e;if(i){var y=this._applyTransform(r);a=y.sourceList,n=y.upstreamSignList}else{var x=g.get("source",!0);a=[wu(x,this._getSourceMetaRawOption(),null)],n=[]}}this._setLocalSource(a,n)},t.prototype._applyTransform=function(e){var r=this._sourceHost,i=r.get("transform",!0),a=r.get("fromTransformResult",!0);if(a!=null){var n="";e.length!==1&&_T(n)}var o,s=[],l=[];return E(e,function(u){u.prepareSource();var f=u.getSource(a||0),c="";a!=null&&!f&&_T(c),s.push(f),l.push(u._getVersionSign())}),i?o=mT(i,s,{datasetIndex:r.componentIndex}):a!=null&&(o=[oT(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 i=e[r];if(i._isDirty()||this._upstreamSignList[r]!==i._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var i=this._getUpstreamSourceManagers();return i[0]&&i[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,i){var a=0,n=this._storeList,o=n[a];o||(o=n[a]={});var s=o[i];if(!s){var l=this._getUpstreamSourceManagers()[0];qp(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,i):(s=new Tu,s.initData(new Wp(r,e.length),e)),o[i]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(qp(e)){var r=Vp(e);return r?[r.getSourceManager()]:[]}else return F(Uw(e),function(i){return i.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,i,a;if(qp(e))r=e.get("seriesLayoutBy",!0),i=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var n=e;r=n.get("seriesLayoutBy",!0),i=n.get("sourceHeader",!0),a=n.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:i,dimensions:a}},t})();function qp(t){return t.mainType==="series"}function _T(t){throw new Error(t)}var l2="line-height:1";function ST(t){var e=t.lineHeight;return e==null?l2:"line-height:"+dt(e+"")+"px"}function CT(t,e){var r=t.color||ne.color.tertiary,i=t.fontSize||12,a=t.fontWeight||"400",n=t.color||ne.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+dt(i+"")+"px;color:"+dt(r)+";font-weight:"+dt(a+""),valueStyle:"font-size:"+dt(o+"")+"px;color:"+dt(n)+";font-weight:"+dt(s+"")}:{nameStyle:{fontSize:i,fill:r,fontWeight:a},valueStyle:{fontSize:o,fill:n,fontWeight:s}}}var u2=[0,10,20,30],f2=["",`
10
10
  `,`
11
11
 
12
12
  `,`
13
13
 
14
14
 
15
- `];function qi(t,e){return e.type=t,e}function Jg(t){return t.type==="section"}function gT(t){return Jg(t)?e2:t2}function yT(t){if(Jg(t)){var e=0,r=t.blocks.length,i=r>1||r>0&&!t.noHeader;return E(t.blocks,function(a){var n=yT(a);n>=e&&(e=n+ +(i&&(!n||Jg(a)&&!a.noHeader)))}),e}return 0}function e2(t,e,r,i){var a=e.noHeader,n=r2(yT(e)),o=[],s=e.blocks||[];$e(!s||z(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(le(u,l)){var f=new oT(u[l],null);s.sort(function(v,m){return f.evaluate(v.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}E(s,function(v,m){var g=e.valueFormatter,y=gT(v)(g?k(k({},t),{valueFormatter:g}):t,v,m>0?n.html:0,i);y!=null&&o.push(y)});var c=t.renderMode==="richText"?o.join(n.richText):Qg(i,o.join(""),a?r:n.html);if(a)return c;var h=Tp(e.header,"ordinal",t.useUTC),p=mT(i,t.renderMode).nameStyle,d=vT(i);return t.renderMode==="richText"?xT(t,h,p)+n.richText+c:Qg(i,'<div style="'+p+";"+d+';">'+dt(h)+"</div>"+c,r)}function t2(t,e,r,i){var a=t.renderMode,n=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(_){return _=z(_)?_:[_],B(_,function(S,b){return Tp(S,z(p)?p[b]:p,u)})};if(!(n&&o)){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||oe.color.secondary,a),h=n?"":Tp(l,"ordinal",u),p=e.valueType,d=o?[]:f(e.value,e.rawDataIndex),v=!s||!n,m=!s&&n,g=mT(i,a),y=g.nameStyle,x=g.valueStyle;return a==="richText"?(s?"":c)+(n?"":xT(t,h,y))+(o?"":n2(t,d,v,m,x)):Qg(i,(s?"":c)+(n?"":i2(h,!s,y))+(o?"":a2(d,v,m,x)),r)}}function ey(t,e,r,i,a,n){if(t){var o=gT(t),s={useUTC:a,renderMode:r,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,n)}}function r2(t){return{html:Jk[t],richText:Qk[t]}}function Qg(t,e,r){var i='<div style="clear:both"></div>',a="margin: "+r+"px 0 0",n=vT(t);return'<div style="'+a+";"+n+';">'+e+i+"</div>"}function i2(t,e,r){var i=e?"margin-left:2px":"";return'<span style="'+r+";"+i+'">'+dt(t)+"</span>"}function a2(t,e,r,i){var a=r?"10px":"20px",n=e?"float:right;margin-left:"+a:"";return t=z(t)?t:[t],'<span style="'+n+";"+i+'">'+B(t,function(o){return dt(o)}).join("&nbsp;&nbsp;")+"</span>"}function xT(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function n2(t,e,r,i,a){var n=[a],o=i?10:20;return r&&n.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(z(e)?e.join(" "):e,n)}function $p(t,e){var r=t.getData().getItemVisual(e,"style"),i=r[t.visualDrawType];return _i(i)}function Xp(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var qp=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=Wl()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,i){var a=i==="richText"?this._generateStyleName():null,n=Ep({color:r,type:e,renderMode:i,markerId:a});return G(n)?n:(this.richTextStyles[a]=n.style,n.content)},t.prototype.wrapRichTextStyle=function(e,r){var i={};z(r)?E(r,function(n){return k(i,n)}):k(i,r);var a=this._generateStyleName();return this.richTextStyles[a]=i,"{"+a+"|"+e+"}"},t})();function _T(t){var e=t.series,r=t.dataIndex,i=t.multipleSeries,a=e.getData(),n=a.mapDimensionsAll("defaultedTooltip"),o=n.length,s=e.getRawValue(r),l=z(s),u=$p(e,r),f,c,h,p;if(o>1||l&&!o){var d=o2(s,e,r,n,u);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,p=d.inlineValues[0]}else if(o){var v=a.getDimensionInfo(n[0]);p=f=Ta(a,r,n[0]),c=v.type}else p=f=l?s[0]:s;var m=Tc(e),g=m&&e.name||"",y=a.getName(r),x=i?g:y;return qi("section",{header:g,noHeader:i||!m,sortParam:p,blocks:[qi("nameValue",{markerType:"item",markerColor:u,name:x,noName:!Bt(x),value:f,valueType:c,rawDataIndex:a.getRawIndex(r)})].concat(h||[])})}function o2(t,e,r,i,a){var n=e.getData(),o=ir(t,function(c,h,p){var d=n.getDimensionInfo(p);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];i.length?E(i,function(c){f(Ta(n,r,c),c)}):E(t,f);function f(c,h){var p=n.getDimensionInfo(h);!p||p.otherDims.tooltip===!1||(o?u.push(qi("nameValue",{markerType:"subItem",markerColor:a,name:p.displayName,value:c,valueType:p.type})):(s.push(c),l.push(p.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var mn=ne();function Zp(t,e){return t.getName(e)||t.getId(e)}var s2="__universalTransitionEnabled",jp=(function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,i,a){this.seriesIndex=this.componentIndex,this.dataTask=vn({count:u2,reset:f2}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a);var n=mn(this).sourceManager=new dT(this);n.prepareSource();var o=this.getInitialData(r,a);ST(o,this),this.dataTask.context.data=o,mn(this).dataBeforeProcessed=o,bT(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,i){var a=pn(this),n=a?hn(r):{},o=this.subType;Ie.hasClass(o)&&(o+="Series"),Se(r,i.getTheme().get(this.subType)),Se(r,this.getDefaultOption()),Xl(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&Vr(r,n,a)},e.prototype.mergeOption=function(r,i){r=Se(this.option,r,!0),this.fillDataTextStyle(r.data);var a=pn(this);a&&Vr(this.option,r,a);var n=mn(this).sourceManager;n.dirty(),n.prepareSource();var o=this.getInitialData(r,i);ST(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,mn(this).dataBeforeProcessed=o,bT(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!ft(r))for(var i=["show"],a=0;a<r.length;a++)r[a]&&r[a].label&&Xl(r[a],"label",i)},e.prototype.getInitialData=function(r,i){},e.prototype.appendData=function(r){var i=this.getRawData();i.appendData(r.data)},e.prototype.getData=function(r){var i=ty(this);if(i){var a=i.context.data;return r==null||!a.getLinkedData?a:a.getLinkedData(r)}else return mn(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var i=ty(this);if(i){var a=i.context;a.outputData=r,i!==this.dataTask&&(a.data=r)}mn(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return ee(r)},e.prototype.getSourceManager=function(){return mn(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return mn(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,i,a,n){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(a);n==null&&(n=1/0);for(var f=[],c=1/0,h=-1,p=0,d=o.getDimensionIndex(i),v=o.getStore(),m=0,g=v.count();m<g;m++){var y=v.get(d,m),x=l.dataToCoord(y),_=u-x,S=Math.abs(_);S<=n&&((S<c||S===c&&_>=0&&h<0)&&(c=S,h=_,p=0),_===h&&(f[p++]=m))}return f.length=p,f},e.prototype.formatTooltip=function(r,i,a){return _T({series:this,dataIndex:r,multipleSeries:i})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(ye.node&&!(r&&r.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,i,a){var n=this.ecModel,o=mu.prototype.getColorFromPalette.call(this,r,i,a);return o||(o=n.getColorFromPalette(r,i,a)),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,i){this._innerSelect(this.getData(i),r)},e.prototype.unselect=function(r,i){var a=this.option.selectedMap;if(a){var n=this.option.selectedMode,o=this.getData(i);if(n==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=Zp(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,i){for(var a=[],n=0;n<r.length;n++)a[0]=r[n],this.isSelected(r[n],i)?this.unselect(a,i):this.select(a,i)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,i=ae(r),a=[],n=0;n<i.length;n++){var o=r[i[n]];o>=0&&a.push(o)}return a},e.prototype.isSelected=function(r,i){var a=this.option.selectedMap;if(!a)return!1;var n=this.getData(i);return(a==="all"||a[Zp(n,r)])&&!n.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[s2])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,i){var a,n,o=this.option,s=o.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){$(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=i[f],h=Zp(r,c);u[h]=!0,this._selectedDataIndicesMap[h]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var p=i[l-1],h=Zp(r,p);o.selectedMap=(a={},a[h]=!0,a),this._selectedDataIndicesMap=(n={},n[h]=r.getRawIndex(p),n)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var i=[];r.hasItemOption&&r.each(function(a){var n=r.getRawDataItem(a);n&&n.selected&&i.push(a)}),i.length>0&&this._innerSelect(r,i)}},e.registerClass=function(r){return Ie.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})(Ie);Ut(jp,aT);Ut(jp,mu);Oc(jp,Ie);function bT(t){var e=t.name;Tc(t)||(t.name=l2(t)||e)}function l2(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),i=[];return E(r,function(a){var n=e.getDimensionInfo(a);n.displayName&&i.push(n.displayName)}),i.join(" ")}function u2(t){return t.model.getRawData().count()}function f2(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),c2}function c2(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function ST(t,e){E(p_(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,ut(p2,e))})}function p2(t,e){var r=ty(t);return r&&r.setOutputEnd((e||this).count()),e}function ty(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var i=r.currentTask;if(i){var a=i.agentStubMap;a&&(i=a.get(t.uid))}return i}}var At=jp;var ry=(function(){function t(){this.group=new we,this.uid=Wi("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,i,a){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,i,a){},t.prototype.updateLayout=function(e,r,i,a){},t.prototype.updateVisual=function(e,r,i,a){},t.prototype.toggleBlurSeries=function(e,r,i){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();Cs(ry);tn(ry);var Mt=ry;function Co(){var t=ne();return function(e){var r=t(e),i=e.pipelineContext,a=!!r.large,n=!!r.progressiveRender,o=r.large=!!(i&&i.large),s=r.progressiveRender=!!(i&&i.progressiveRender);return(a!==o||n!==s)&&"reset"}}var TT=ne(),h2=Co(),iy=(function(){function t(){this.group=new we,this.uid=Wi("viewChart"),this.renderTask=vn({plan:d2,reset:v2}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,i,a){},t.prototype.highlight=function(e,r,i,a){var n=e.getData(a&&a.dataType);n&&wT(n,a,"emphasis")},t.prototype.downplay=function(e,r,i,a){var n=e.getData(a&&a.dataType);n&&wT(n,a,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,i,a){this.render(e,r,i,a)},t.prototype.updateVisual=function(e,r,i,a){this.render(e,r,i,a)},t.prototype.eachRendered=function(e){Sa(this.group,e)},t.markUpdateMethod=function(e,r){TT(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function CT(t,e,r){t&&nu(t)&&(e==="emphasis"?to:ro)(t,r)}function wT(t,e,r){var i=Xr(t,e),a=e&&e.highlightKey!=null?uC(e.highlightKey):null;i!=null?E(Fe(i),function(n){CT(t.getItemGraphicEl(n),r,a)}):t.eachItemGraphicEl(function(n){CT(n,r,a)})}Cs(iy,["dispose"]);tn(iy);function d2(t){return h2(t.model)}function v2(t){var e=t.model,r=t.ecModel,i=t.api,a=t.payload,n=e.pipelineContext.progressiveRender,o=t.view,s=a&&TT(a).updateMethod,l=n?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,i,a),m2[l]}var m2={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)}}},mt=iy;var Jp="\0__throttleOriginMethod",ET="\0__throttleRate",AT="\0__throttleType";function Cu(t,e,r){var i,a=0,n=0,o=null,s,l,u,f;e=e||0;function c(){n=new Date().getTime(),o=null,t.apply(l,u||[])}var h=function(){for(var p=[],d=0;d<arguments.length;d++)p[d]=arguments[d];i=new Date().getTime(),l=this,u=p;var v=f||e,m=f||r;f=null,s=i-(m?a:n)-v,clearTimeout(o),m?o=setTimeout(c,v):s>=0?c():o=setTimeout(c,-s),a=i};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(p){f=p},h}function Qp(t,e,r,i){var a=t[e];if(a){var n=a[Jp]||a,o=a[AT],s=a[ET];if(s!==r||o!==i){if(r==null||!i)return t[e]=n;a=t[e]=Cu(n,r,i==="debounce"),a[Jp]=n,a[AT]=i,a[ET]=r}return a}}function wu(t,e){var r=t[e];r&&r[Jp]&&(r.clear&&r.clear(),t[e]=r[Jp])}var MT=ne(),LT={itemStyle:ki(mg,!0),lineStyle:ki(vg,!0)},y2={lineStyle:"stroke",itemStyle:"fill"};function DT(t,e){var r=t.visualStyleMapper||LT[e];return r||(console.warn("Unknown style type '"+e+"'."),LT.itemStyle)}function OT(t,e){var r=t.visualDrawType||y2[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var IT={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),i=t.visualStyleAccessPath||"itemStyle",a=t.getModel(i),n=DT(t,i),o=n(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=OT(t,i),u=o[l],f=j(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"||j(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||j(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(p,d){var v=t.getDataParams(d),m=k({},o);m[l]=f(v),p.setItemVisual(d,"style",m)}}}},Tu=new qe,PT={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var r=t.getData(),i=t.visualStyleAccessPath||"itemStyle",a=DT(t,i),n=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){Tu.option=l[i];var u=a(Tu),f=o.ensureUniqueItemVisual(s,"style");k(f,u),Tu.option.decal&&(o.setItemVisual(s,"decal",Tu.option.decal),Tu.option.decal.dirty=!0),n in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},NT={performRawSeries:!0,overallReset:function(t){var e=ee();t.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.type+"-"+r.getColorBy();MT(r).scope=e.get(i)||e.set(i,{})}}),t.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.getRawData(),a={},n=r.getData(),o=MT(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=OT(r,s);n.each(function(u){var f=n.getRawIndex(u);a[f]=u}),i.each(function(u){var f=a[u],c=n.getItemVisual(f,"colorFromPalette");if(c){var h=n.ensureUniqueItemVisual(f,"style"),p=i.getName(u)||u+"",d=i.count();h[l]=r.getColorFromPalette(p,o,d)}})}})}};var eh=Math.PI;function ay(t,e){e=e||{},ue(e,{text:"loading",textColor:oe.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:oe.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new we,i=new Oe({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(i);var a=new Pe({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),n=new Oe({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(n);var o;return e.showSpinner&&(o=new fu({shape:{startAngle:-eh/2,endAngle:-eh/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:eh*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:eh*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=a.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}),n.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var x2=(function(){function t(e,r,i,a){this._stageTaskMap=ee(),this.ecInstance=e,this.api=r,i=this._dataProcessorHandlers=i.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=i.concat(a)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(i){var a=i.overallTask;a&&a.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),a=i.context,n=!r&&i.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>i.blockIndex,o=n?i.step:null,s=a&&a.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 i=this._pipelineMap.get(e.uid),a=e.__preparePipelineContext?e.__preparePipelineContext(r,i):Lc(e,r,i);e.pipelineContext=i.context=a},t.prototype.restorePipelines=function(e,r){var i=this,a=i._pipelineMap=ee();r.eachSeries(function(n){var o=e.painter.type==="canvas"&&n.getProgressive(),s=n.uid;a.set(s,{id:s,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:o&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),i._pipe(n,n.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),i=this.api;E(this._allHandlers,function(a){var n=e.get(a.uid)||e.set(a.uid,{}),o="";$e(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,n,r,i),a.overallReset&&this._createOverallStageTask(a,n,r,i)},this)},t.prototype.prepareView=function(e,r,i,a){var n=e.renderTask,o=n.context;o.model=r,o.ecModel=i,o.api=a,n.__block=!e.incrementalPrepareRender,this._pipe(r,n)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,i){this._performStageTasks(this._visualHandlers,e,r,i)},t.prototype._performStageTasks=function(e,r,i,a){a=a||{};var n=!1,o=this;E(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var p,d=h.agentStubMap;d.each(function(m){s(a,m)&&(m.dirty(),p=!0)}),p&&h.dirty(),o.updatePayload(h,i);var v=o.getPerformArgs(h,a.block);d.each(function(m){m.perform(v)}),h.perform(v)&&(n=!0)}else c&&c.each(function(m,g){s(a,m)&&m.dirty();var y=o.getPerformArgs(m,a.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(m.context.model),o.updatePayload(m,i),m.perform(y)&&(n=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=n||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(i){r=i.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,i,a){var n=this,o=r.seriesTaskMap,s=r.seriesTaskMap=ee(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,a).each(f);function f(c){var h=c.uid,p=s.set(h,o&&o.get(h)||vn({plan:w2,reset:T2,count:A2}));p.context={model:c,ecModel:i,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:n},n._pipe(c,p)}},t.prototype._createOverallStageTask=function(e,r,i,a){var n=this,o=r.overallTask=r.overallTask||vn({reset:_2});o.context={ecModel:i,api:a,overallReset:e.overallReset,scheduler:n};var s=o.agentStubMap,l=o.agentStubMap=ee(),u=e.seriesType,f=e.getTargetSeries,c=e.dirtyOnOverallProgress,h=!1,p="";$e(!e.createOnAllSeries,p),u?i.eachRawSeriesByType(u,d):f?f(i,a).each(d):E(i.getSeries(),d);function d(v){var m=v.uid,g=l.set(m,s&&s.get(m)||(h=!0,vn({reset:b2,onDirty:C2})));g.context={model:v,dirtyOnOverallProgress:c},g.agent=o,g.__block=c,n._pipe(v,g)}h&&o.dirty()},t.prototype._pipe=function(e,r){var i=e.uid,a=this._pipelineMap.get(i);!a.head&&(a.head=r),a.tail&&a.tail.pipe(r),a.tail=r,r.__idxInPipeline=a.count++,r.__pipeline=a},t.wrapStageHandler=function(e,r){return j(e)&&(e={overallReset:e,seriesType:M2(e)}),e.uid=Wi("stageHandler"),r&&(e.visualType=r),e},t})();function _2(t){t.overallReset(t.ecModel,t.api,t.payload)}function b2(t){return t.dirtyOnOverallProgress&&S2}function S2(){this.agent.dirty(),this.getDownstream().dirty()}function C2(){this.agent&&this.agent.dirty()}function w2(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function T2(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Fe(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?B(e,function(r,i){return RT(i)}):E2}var E2=RT(0);function RT(t){return function(e,r){var i=r.data,a=r.resetDefines[t];if(a&&a.dataEach)for(var n=e.start;n<e.end;n++)a.dataEach(i,n);else a&&a.progress&&a.progress(e,i)}}function A2(t){return t.data.count()}function M2(t){th=null;try{t(Eu,kT)}catch{}return th}var Eu={},kT={},th;zT(Eu,Vp);zT(kT,Bc);Eu.eachSeriesByType=Eu.eachRawSeriesByType=function(t){th=t};Eu.eachComponent=function(t){t.mainType==="series"&&t.subType&&(th=t.subType)};function zT(t,e){for(var r in e.prototype)t[r]=Xe}var ny=x2;var te=oe.darkColor,VT=te.background,Au=function(){return{axisLine:{lineStyle:{color:te.axisLine}},splitLine:{lineStyle:{color:te.axisSplitLine}},splitArea:{areaStyle:{color:[te.backgroundTint,te.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:te.axisMinorSplitLine}},axisLabel:{color:te.axisLabel},axisName:{}}},UT={label:{color:te.secondary},itemStyle:{borderColor:te.borderTint},dividerLineStyle:{color:te.border}},BT={darkMode:!0,color:te.theme,backgroundColor:VT,axisPointer:{lineStyle:{color:te.border},crossStyle:{color:te.borderShade},label:{color:te.tertiary}},legend:{textStyle:{color:te.secondary},pageTextStyle:{color:te.tertiary}},textStyle:{color:te.secondary},title:{textStyle:{color:te.primary},subtextStyle:{color:te.quaternary}},toolbox:{iconStyle:{borderColor:te.accent50},feature:{dataView:{backgroundColor:VT,textColor:te.primary,textareaColor:te.background,textareaBorderColor:te.border,buttonColor:te.accent50,buttonTextColor:te.neutral00}}},tooltip:{backgroundColor:te.neutral20,defaultBorderColor:te.border,textStyle:{color:te.tertiary}},dataZoom:{borderColor:te.accent10,textStyle:{color:te.tertiary},brushStyle:{color:te.backgroundTint},handleStyle:{color:te.neutral00,borderColor:te.accent20},moveHandleStyle:{color:te.accent40},emphasis:{handleStyle:{borderColor:te.accent50}},dataBackground:{lineStyle:{color:te.accent30},areaStyle:{color:te.accent20}},selectedDataBackground:{lineStyle:{color:te.accent50},areaStyle:{color:te.accent30}}},visualMap:{textStyle:{color:te.secondary},handleStyle:{borderColor:te.neutral30}},timeline:{lineStyle:{color:te.accent10},label:{color:te.tertiary},controlStyle:{color:te.accent30,borderColor:te.accent30}},calendar:{itemStyle:{color:te.neutral00,borderColor:te.neutral20},dayLabel:{color:te.tertiary},monthLabel:{color:te.secondary},yearLabel:{color:te.secondary}},matrix:{x:UT,y:UT,backgroundColor:{borderColor:te.axisLine},body:{itemStyle:{borderColor:te.borderTint}}},timeAxis:Au(),logAxis:Au(),valueAxis:Au(),categoryAxis:Au(),line:{symbol:"circle"},graph:{color:te.theme},gauge:{title:{color:te.secondary},axisLine:{lineStyle:{color:[[1,te.neutral05]]}},axisLabel:{color:te.axisLabel},detail:{color:te.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:te.background}},radar:(function(){var t=Au();return t.axisName={color:te.axisLabel},t.axisLine.lineStyle.color=te.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:te.neutral20,textStyle:{color:te.secondary}},emphasis:{itemStyle:{color:te.neutral30}}}},sunburst:{itemStyle:{borderColor:te.background}},map:{itemStyle:{borderColor:te.border,areaColor:te.neutral10},label:{color:te.tertiary},emphasis:{label:{color:te.primary},itemStyle:{areaColor:te.highlight}},select:{label:{color:te.primary},itemStyle:{areaColor:te.highlight}}},geo:{itemStyle:{borderColor:te.border,areaColor:te.neutral10},emphasis:{label:{color:te.primary},itemStyle:{areaColor:te.highlight}},select:{label:{color:te.primary},itemStyle:{color:te.highlight}}}};BT.categoryAxis.splitLine.show=!1;var FT=BT;var HT=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},i={},a={};if(G(e)){var n=_r(e);r.mainType=n.main||null,r.subType=n.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};E(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var h=o[c],p=u.lastIndexOf(h);if(p>0&&p===u.length-h.length){var d=u.slice(0,p);d!=="data"&&(r.mainType=d,r[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(i[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:r,dataQuery:i,otherQuery:a}},t.prototype.filter=function(e,r){var i=this.eventInfo;if(!i)return!0;var a=i.targetEl,n=i.packedEvent,o=i.model,s=i.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,n,"name")&&f(u,n,"dataIndex")&&f(u,n,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,a,n));function f(c,h,p,d){return c[p]==null||h[d||p]===c[p]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})();var oy=["symbol","symbolSize","symbolRotate","symbolOffset"],GT=oy.concat(["symbolKeepAspect"]),KT={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 i={},a={},n=!1,o=0;o<oy.length;o++){var s=oy[o],l=t.get(s);j(l)?(n=!0,a[s]=l):i[s]=l}if(i.symbol=i.symbol||t.defaultSymbol,r.setVisual(k({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),e.isSeriesFiltered(t))return;var u=ae(a);function f(c,h){for(var p=t.getRawValue(h),d=t.getDataParams(h),v=0;v<u.length;v++){var m=u[v];c.setItemVisual(h,m,a[m](p,d))}}return{dataEach:n?f:null}}},YT={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function i(a,n){for(var o=a.getItemModel(n),s=0;s<GT.length;s++){var l=GT[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(n,l,u)}}return{dataEach:r.hasItemOption?i:null}}};function rh(t,e,r){switch(r){case"color":var i=t.getItemVisual(e,"style");return i[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r);default:}}function ih(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);default:}}function WT(t,e,r,i){switch(r){case"color":var a=t.ensureUniqueItemVisual(e,"style");a[t.getVisual("drawType")]=i,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,r,i);break;default:}}function $T(t,e){function r(i,a){var n=[];return i.eachComponent({mainType:"series",subType:t,query:a},function(o){n.push(o.seriesIndex)}),n}E([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(i){e(i[0],function(a,n,o){a=k({},a),o.dispatchAction(k(a,{type:i[1],seriesIndex:r(n,a)}))})})}function qs(t,e,r,i,a){var n=t+e;r.isSilent(n)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),h=Xr(c,a.fromActionPayload);r.trigger(n,{type:n,seriesId:o.id,name:z(h)?c.getName(h[0]):c.getName(h),selected:G(l)?l:k({},l)})}})}function XT(t,e,r){t.on("selectchanged",function(i){var a=r.getModel();i.isFromClick?(qs("map","selectchanged",e,a,i),qs("pie","selectchanged",e,a,i)):i.fromAction==="select"?(qs("map","selected",e,a,i),qs("pie","selected",e,a,i)):i.fromAction==="unselect"&&(qs("map","unselected",e,a,i),qs("pie","unselected",e,a,i))})}function Ea(t,e,r){for(var i;t&&!(e(t)&&(i=t,r));)t=t.__hostTarget||t.parent;return i}var L2=new ar,Ur=L2;var qT={};function ZT(t,e){qT[t]=e}function jT(t){return qT[t]}var D2={};function JT(t,e){D2[t]=e}var ah=ne();function QT(t){ah(t).prepare={}}function e1(t){ah(t).fullUpdate={}}function t1(t){return ah(t).prepare}function wo(t){return ah(t).fullUpdate}var O2=Math.round(Math.random()*9),I2=typeof Object.defineProperty=="function",P2=(function(){function t(){this._id="__ec_inner_"+O2++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var i=this._guard(e);return I2?Object.defineProperty(i,this._id,{value:r,enumerable:!1,configurable:!0}):i[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})(),r1=P2;var N2=he.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,i=e.cy,a=e.width/2,n=e.height/2;t.moveTo(r,i-n),t.lineTo(r+a,i+n),t.lineTo(r-a,i+n),t.closePath()}}),R2=he.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,i=e.cy,a=e.width/2,n=e.height/2;t.moveTo(r,i-n),t.lineTo(r+a,i),t.lineTo(r,i+n),t.lineTo(r-a,i),t.closePath()}}),k2=he.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,i=e.y,a=e.width/5*3,n=Math.max(a,e.height),o=a/2,s=o*o/(n-o),l=i-n+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),h=Math.cos(u),p=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*p,l+s+h*p,r,i-d,r,i),t.bezierCurveTo(r,i-d,r-f+c*p,l+s+h*p,r-f,l+s),t.closePath()}}),z2=he.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,i=e.width,a=e.x,n=e.y,o=i/3*2;t.moveTo(a,n),t.lineTo(a+o,n+r),t.lineTo(a,n+r/4*3),t.lineTo(a-o,n+r),t.lineTo(a,n),t.closePath()}}),V2={line:yi,rect:Oe,roundRect:Oe,square:Oe,circle:io,diamond:R2,pin:k2,arrow:z2,triangle:N2},U2={line:function(t,e,r,i,a){a.x1=t,a.y1=e+i/2,a.x2=t+r,a.y2=e+i/2},rect:function(t,e,r,i,a){a.x=t,a.y=e,a.width=r,a.height=i},roundRect:function(t,e,r,i,a){a.x=t,a.y=e,a.width=r,a.height=i,a.r=Math.min(r,i)/4},square:function(t,e,r,i,a){var n=Math.min(r,i);a.x=t,a.y=e,a.width=n,a.height=n},circle:function(t,e,r,i,a){a.cx=t+r/2,a.cy=e+i/2,a.r=Math.min(r,i)/2},diamond:function(t,e,r,i,a){a.cx=t+r/2,a.cy=e+i/2,a.width=r,a.height=i},pin:function(t,e,r,i,a){a.x=t+r/2,a.y=e+i/2,a.width=r,a.height=i},arrow:function(t,e,r,i,a){a.x=t+r/2,a.y=e+i/2,a.width=r,a.height=i},triangle:function(t,e,r,i,a){a.cx=t+r/2,a.cy=e+i/2,a.width=r,a.height=i}},sy={};E(V2,function(t,e){sy[e]=new t});var B2=he.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var i=Gn(t,e,r),a=this.shape;return a&&a.symbolType==="pin"&&e.position==="inside"&&(i.y=r.y+r.height*.4),i},buildPath:function(t,e,r){var i=e.symbolType;if(i!=="none"){var a=sy[i];a||(i="rect",a=sy[i]),U2[i](e.x,e.y,e.width,e.height,a.shape),a.buildPath(t,a.shape,r)}}});function F2(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||oe.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function Nt(t,e,r,i,a,n,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=og(t.slice(8),new ce(e,r,i,a),o?"center":"cover"):t.indexOf("path://")===0?l=np(t.slice(7),{},new ce(e,r,i,a),o?"center":"cover"):l=new B2({shape:{symbolType:t,x:e,y:r,width:i,height:a}}),l.__isEmptyBrush=s,l.setColor=F2,n&&l.setColor(n),l}function nh(t){return z(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function oh(t,e){if(t!=null)return z(t)||(t=[t,t]),[Ee(t[0],e[0])||0,Ee(q(t[1],t[0]),e[1])||0]}function To(t){return isFinite(t)}function G2(t,e,r){var i=e.x==null?0:e.x,a=e.x2==null?1:e.x2,n=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(i=i*r.width+r.x,a=a*r.width+r.x,n=n*r.height+r.y,o=o*r.height+r.y),i=To(i)?i:0,a=To(a)?a:1,n=To(n)?n:0,o=To(o)?o:0;var s=t.createLinearGradient(i,n,a,o);return s}function K2(t,e,r){var i=r.width,a=r.height,n=Math.min(i,a),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*i+r.x,s=s*a+r.y,l=l*n),o=To(o)?o:.5,s=To(s)?s:.5,l=l>=0&&To(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function ly(t,e,r){for(var i=e.type==="radial"?K2(t,e,r):G2(t,e,r),a=e.colorStops,n=0;n<a.length;n++)i.addColorStop(a[n].offset,a[n].color);return i}function i1(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 sh(t){return parseInt(t,10)}function uy(t,e,r){var i=["width","height"][e],a=["clientWidth","clientHeight"][e],n=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[i]!=null&&r[i]!=="auto")return parseFloat(r[i]);var s=document.defaultView.getComputedStyle(t);return(t[a]||sh(s[i])||sh(t.style[i]))-(sh(s[n])||0)-(sh(s[o])||0)||0}function Y2(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:me(t)?[t]:z(t)?t:null}function Mu(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&Y2(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(r){var a=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&a!==1&&(r=B(r,function(n){return n/a}),i/=a)}return[r,i]}var W2=new Kt(!0);function lh(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function a1(t){return typeof t=="string"&&t!=="none"}function uh(t){var e=t.fill;return e!=null&&e!=="none"}function n1(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 o1(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 i=jl(e.image,e.__image,r);if(ws(i)){var a=t.createPattern(i,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var n=new DOMMatrix;n.translateSelf(e.x||0,e.y||0),n.rotateSelf(0,0,(e.rotation||0)*as),n.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(n)}return a}}function $2(t,e,r,i,a){var n,o=lh(r),s=uh(r),l=r.strokePercent,u=l<1,f=!e.path;(!e.silent||u)&&f&&e.createPathProxy();var c=e.path||W2,h=e.__dirty;if(!i){var p=r.fill,d=r.stroke,v=s&&!!p.colorStops,m=o&&!!d.colorStops,g=s&&!!p.image,y=o&&!!d.image,x=void 0,_=void 0,S=void 0,b=void 0,w=void 0;(v||m)&&(w=e.getBoundingRect()),v&&(x=h?ly(t,p,w):e.__canvasFillGradient,e.__canvasFillGradient=x),m&&(_=h?ly(t,d,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),g&&(S=h||!e.__canvasFillPattern?s1(t,p,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(b=h||!e.__canvasStrokePattern?s1(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),v?t.fillStyle=x:g&&(S?t.fillStyle=S:s=!1),m?t.strokeStyle=_:y&&(b?t.strokeStyle=b:o=!1)}var M=e.getGlobalScale();c.setScale(M[0],M[1],e.segmentIgnoreThreshold);var C,T;t.setLineDash&&r.lineDash&&(n=Mu(e),C=n[0],T=n[1]);var A=!0;(f||h&Ya)&&(c.setDPR(t.dpr),u?c.setContext(null):(c.setContext(t),A=!1),c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()),A&&c.rebuildPath(t,u?l:1),C&&(t.setLineDash(C),t.lineDashOffset=T),i?(a.batchFill=s,a.batchStroke=o):r.strokeFirst?(o&&o1(t,r),s&&n1(t,r)):(s&&n1(t,r),o&&o1(t,r)),C&&t.setLineDash([])}function X2(t,e,r){var i=e.__image=jl(r.image,e.__image,e,e.onload);if(!(!i||!ws(i))){var a=r.x||0,n=r.y||0,o=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;t.drawImage(i,u,f,r.sWidth,r.sHeight,a,n,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,h=s-f;t.drawImage(i,u,f,c,h,a,n,o,s)}else t.drawImage(i,a,n,o,s)}}function q2(t,e,r){var i,a=r.text;if(a!=null&&(a+=""),a){t.font=r.font||gr,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var n=void 0,o=void 0;t.setLineDash&&r.lineDash&&(i=Mu(e),n=i[0],o=i[1]),n&&(t.setLineDash(n),t.lineDashOffset=o),r.strokeFirst?(lh(r)&&t.strokeText(a,r.x,r.y),uh(r)&&t.fillText(a,r.x,r.y)):(uh(r)&&t.fillText(a,r.x,r.y),lh(r)&&t.strokeText(a,r.x,r.y)),n&&t.setLineDash([])}}var l1=["shadowBlur","shadowOffsetX","shadowOffsetY"],u1=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function v1(t,e,r,i,a){var n=!1;if(!i&&(r=r||{},e===r))return!1;if(i||e.opacity!==r.opacity){fr(t,a),n=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?zi.opacity:o}(i||e.blend!==r.blend)&&(n||(fr(t,a),n=!0),t.globalCompositeOperation=e.blend||zi.blend);for(var s=0;s<l1.length;s++){var l=l1[s];(i||e[l]!==r[l])&&(n||(fr(t,a),n=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==r.shadowColor)&&(n||(fr(t,a),n=!0),t.shadowColor=e.shadowColor||zi.shadowColor),n}function f1(t,e,r,i,a){var n=e.style,o=i?null:r&&r.style||{};if(n===o)return!1;var s=v1(t,n,o,i,a);if((i||n.fill!==o.fill)&&(s||(fr(t,a),s=!0),a1(n.fill)&&(t.fillStyle=n.fill)),(i||n.stroke!==o.stroke)&&(s||(fr(t,a),s=!0),a1(n.stroke)&&(t.strokeStyle=n.stroke)),(i||n.opacity!==o.opacity)&&(s||(fr(t,a),s=!0),t.globalAlpha=n.opacity==null?1:n.opacity),e.hasStroke()){var l=n.lineWidth,u=l/(n.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(fr(t,a),s=!0),t.lineWidth=u)}for(var f=0;f<u1.length;f++){var c=u1[f],h=c[0];(i||n[h]!==o[h])&&(s||(fr(t,a),s=!0),t[h]=n[h]||c[1])}return s}function Z2(t,e,r,i,a){return v1(t,e.style,r&&r.style,i,a)}function m1(t,e){var r=e.transform,i=t.dpr||1;r?t.setTransform(i*r[0],i*r[1],i*r[2],i*r[3],i*r[4],i*r[5]):t.setTransform(i,0,0,i,0,0)}function j2(t,e,r){for(var i=!1,a=0;a<t.length;a++){var n=t[a];i=i||n.isZeroArea(),m1(e,n),e.beginPath(),n.buildPath(e,n.shape),e.clip()}r.allClipped=i}function J2(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 c1=1,p1=2,h1=3,d1=4;function Q2(t){var e=uh(t),r=lh(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 fr(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function g1(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};fy(t,e,r),cy(t,r)}function fy(t,e,r){var i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~Yt,e.__isRendered=!1;return}var a=e.__clipPaths,n=r.prevElClipPaths,o=e.style,s=!1,l=!1;if((!n||i1(a,n))&&(n&&(fr(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(fr(t,r),t.save(),j2(a,t,r),s=!0,r.prevElClipPaths=a)),r.allClipped){e.__dirty&=~Yt,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=e instanceof he&&e.autoBatch&&Q2(o);s||J2(i,u.transform)?(fr(t,r),m1(t,e)):f||fr(t,r),e instanceof he?(r.lastDrawType!==c1&&(l=!0,r.lastDrawType=c1),f1(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),$2(t,e,o,f,r)):e instanceof eo?(r.lastDrawType!==h1&&(l=!0,r.lastDrawType=h1),f1(t,e,u,l,r),q2(t,e,o)):e instanceof rt?(r.lastDrawType!==p1&&(l=!0,r.lastDrawType=p1),Z2(t,e,u,l,r),X2(t,e,o)):e.getTemporalDisplayables&&(r.lastDrawType!==d1&&(l=!0,r.lastDrawType=d1),ez(t,e,r)),e.innerAfterBrush(),e.afterBrush&&(f&&fr(t,r),e.afterBrush()),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function cy(t,e){fr(t,e),e.prevElClipPaths&&t.restore()}function ez(t,e,r){var i=e.getDisplayables(),a=e.getTemporalDisplayables();t.save();var n={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=i.length;o<s;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),fy(t,l,n),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),n.prevEl=l}cy(t,n);for(var u=0,f=a.length;u<f;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),fy(t,l,n),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),n.prevEl=l}cy(t,n),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var py=new r1,y1=new Li(100),x1=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function hy(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),i=e.getZr(),a=i.painter.type==="svg";t.dirty&&py.delete(t);var n=py.get(t);if(n)return n;var o=ue(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=a?1:1/r,py.set(t,s),t.dirty=!1,s;function l(u){for(var f=[r],c=!0,h=0;h<x1.length;++h){var p=o[x1[h]];if(p!=null&&!z(p)&&!G(p)&&!me(p)&&typeof p!="boolean"){c=!1;break}f.push(p)}var d;if(c){d=f.join(",")+(a?"-svg":"");var v=y1.get(d);v&&(a?u.svgElement=v:u.image=v)}var m=b1(o.dashArrayX),g=tz(o.dashArrayY),y=_1(o.symbol),x=rz(m),_=S1(g),S=!a&&St.createCanvas(),b=a&&{tag:"g",attrs:{},key:"dcl",children:[]},w=C(),M;S&&(S.width=w.width*r,S.height=w.height*r,M=S.getContext("2d")),T(),c&&y1.put(d,S||b),u.image=S,u.svgElement=b,u.svgWidth=w.width,u.svgHeight=w.height;function C(){for(var A=1,D=0,L=x.length;D<L;++D)A=rm(A,x[D]);for(var O=1,D=0,L=y.length;D<L;++D)O=rm(O,y[D].length);A*=O;var I=_*x.length*y.length;if(0)var P;return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(I,o.maxTileHeight))}}function T(){M&&(M.clearRect(0,0,S.width,S.height),o.backgroundColor&&(M.fillStyle=o.backgroundColor,M.fillRect(0,0,S.width,S.height)));for(var A=0,D=0;D<g.length;++D)A+=g[D];if(A<=0)return;for(var L=-_,O=0,I=0,P=0;L<w.height;){if(O%2===0){for(var V=I/2%y.length,R=0,U=0,F=0;R<w.width*2;){for(var K=0,D=0;D<m[P].length;++D)K+=m[P][D];if(K<=0)break;if(U%2===0){var X=(1-o.symbolSize)*.5,re=R+m[P][U]*X,Z=L+g[O]*X,de=m[P][U]*o.symbolSize,ie=g[O]*o.symbolSize,Ue=F/2%y[V].length;Ke(re,Z,de,ie,y[V][Ue])}R+=m[P][U],++F,++U,U===m[P].length&&(U=0)}++P,P===m.length&&(P=0)}L+=g[O],++I,++O,O===g.length&&(O=0)}function Ke(Le,We,ve,be,zt){var et=a?1:r,_t=Nt(zt,Le*et,We*et,ve*et,be*et,o.color,o.symbolKeepAspect);if(a){var bt=i.painter.renderOneToVNode(_t);bt&&b.children.push(bt)}else g1(M,_t)}}}}function _1(t){if(!t||t.length===0)return[["rect"]];if(G(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!G(t[r])){e=!1;break}if(e)return _1([t]);for(var i=[],r=0;r<t.length;++r)G(t[r])?i.push([t[r]]):i.push(t[r]);return i}function b1(t){if(!t||t.length===0)return[[0,0]];if(me(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,i=0;i<t.length;++i)if(!me(t[i])){r=!1;break}if(r)return b1([t]);for(var a=[],i=0;i<t.length;++i)if(me(t[i])){var e=Math.ceil(t[i]);a.push([e,e])}else{var e=B(t[i],function(s){return Math.ceil(s)});e.length%2===1?a.push(e.concat(e)):a.push(e)}return a}function tz(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=B(t,function(i){return Math.ceil(i)});return t.length%2?r.concat(r):r}function rz(t){return B(t,function(e){return S1(e)})}function S1(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}var C1=Ss(iz);function iz(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var i=r.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var l=i.ensureUniqueItemVisual(o,"style");l.decal=hy(s,e)}});var a=i.getVisual("decal");if(a){var n=i.getVisual("style");n.decal=hy(a,e)}}})}var az=1,nz=800,oz=900,sz=920,lz=1e3,uz=2e3,w1=5e3,N1=1e3,fz=1100,Ty=2e3,R1=3e3,cz=4e3,mh=4500,pz=4600,hz=5e3,dz=6e3,k1=7e3,z1={PROCESSOR:{SERIES_FILTER:nz,AXIS_STATISTICS:sz,FILTER:lz,STATISTIC:w1,STATISTICS:w1},VISUAL:{LAYOUT:N1,PROGRESSIVE_LAYOUT:fz,GLOBAL:Ty,CHART:R1,POST_CHART_LAYOUT:pz,COMPONENT:cz,BRUSH:hz,CHART_ITEM:mh,ARIA:dz,DECAL:k1}},xt="__flagInMainProcess",fh="__mainProcessVersion",Rt="__pendingUpdate",dy="__needsUpdateStatus",T1=/^[a-zA-Z0-9_]+$/,vy="__connectUpdateStatus",E1=0,vz=1,mz=2;function V1(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return B1(this,t,e)}}function U1(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return B1(this,t,e)}}function B1(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),ar.prototype[e].apply(t,r)}var F1=(function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(ar),H1=F1.prototype;H1.on=U1("on");H1.off=U1("off");var Eo,my,ch,Aa,ph,gy,yy,Zs,js,A1,M1,xy,L1,hh,D1,G1,ri,O1,Js,K1=(function(t){N(e,t);function e(r,i,a){var n=t.call(this,new HT)||this;n._chartsViews=[],n._chartsMap={},n._componentsViews=[],n._componentsMap={},n._pendingActions=[],a=a||{},n.__v_skip=!0,n._dom=r;var o="canvas",s="auto",l=!1;if(n[fh]=1,0)var u;a.ssr&&Nb(function(p){var d=xe(p),v=d.dataIndex;if(v!=null){var m=ee();return m.set("series_index",d.seriesIndex),m.set("data_index",v),d.ssrType&&m.set("ssr_type",d.ssrType),m}});var f=n._zr=qv(r,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:q(a.useDirtyRect,l),useCoarsePointer:q(a.useCoarsePointer,s),pointerSize:a.pointerSize});n._ssr=a.ssr,n._throttledZrFlush=Cu(se(f.flush,f),17),n._updateTheme(i),n._locale=lw(a.locale||pp),n._coordSysMgr=new mo;var c=n._api=D1(n);function h(p,d){return p.__prio-d.__prio}return Nn(vh,h),Nn(Sy,h),n._scheduler=new ny(n,c,Sy,vh),n._messageCenter=new F1,n._initEvents(),n.resize=se(n.resize,n),f.animation.on("frame",n._onframe,n),A1(f,n),M1(f,n),is(n),n}return e.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,i=this._model,a=this._api;if(O1(this),this[Rt]){var n=this[Rt].silent;this[xt]=!0,Js(this);try{Eo(this),Aa.update.call(this,null,this[Rt].updateParams)}catch(l){throw this[xt]=!1,this[Rt]=null,l}this._zr.flush(),this[xt]=!1,this[Rt]=null,Zs.call(this,n),js.call(this,n)}else if(r.unfinished){var o=az;do{r.unfinished=!1;var s=St.getTime();r.performSeriesTasks(i),r.performDataProcessorTasks(i),gy(this,i),r.performVisualTasks(i),hh(this,this._model,a,"remain",{}),o-=St.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,i,a){if(!this[xt]){if(this._disposed){this.id;return}var n,o,s;if($(i)&&(a=i.lazyUpdate,n=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[xt]=!0,Js(this),!this._model||i){var l=new Gw(this._api),u=this._theme,f=this._model=new Vp;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},Cy);var c={seriesTransition:s,optionChanged:!0};if(a)this[Rt]={silent:n,updateParams:c},this[xt]=!1,this.getZr().wakeUp();else{try{Eo(this),Aa.update.call(this,null,c)}catch(h){throw this[Rt]=null,this[xt]=!1,h}this._ssr||this._zr.flush(),this[Rt]=null,this[xt]=!1,Zs.call(this,n),js.call(this,n)}}},e.prototype.setTheme=function(r,i){if(!this[xt]){if(this._disposed){this.id;return}var a=this._model;if(a){var n=i&&i.silent,o=null;this[Rt]&&(n==null&&(n=this[Rt].silent),o=this[Rt].updateParams,this[Rt]=null),this[xt]=!0,Js(this);try{this._updateTheme(r),a.setTheme(this._theme),Eo(this),Aa.update.call(this,{type:"setTheme"},o)}catch(s){throw this[xt]=!1,s}this[xt]=!1,Zs.call(this,n),js.call(this,n)}}},e.prototype._updateTheme=function(r){G(r)&&(r=Y1[r]),r&&(r=Q(r),r&&Up(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||ye.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var i=this._zr.painter;return i.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,i=r.storage.getDisplayList();return E(i,function(a){a.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var i=r.excludeComponents,a=this._model,n=[],o=this;E(i,function(l){a.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(n.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 E(n,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var i=r.type==="svg",a=this.group,n=Math.min,o=Math.max,s=1/0;if(I1[a]){var l=s,u=s,f=-s,c=-s,h=[],p=r&&r.pixelRatio||this.getDevicePixelRatio();E(Lu,function(x,_){if(x.group===a){var S=i?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(Q(r)),b=x.getDom().getBoundingClientRect();l=n(b.left,l),u=n(b.top,u),f=o(b.right,f),c=o(b.bottom,c),h.push({dom:S,left:b.left,top:b.top})}}),l*=p,u*=p,f*=p,c*=p;var d=f-l,v=c-u,m=St.createCanvas(),g=qv(m,{renderer:i?"svg":"canvas"});if(g.resize({width:d,height:v}),i){var y="";return E(h,function(x){var _=x.left-l,S=x.top-u;y+='<g transform="translate('+_+","+S+')">'+x.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new Oe({shape:{x:0,y:0,width:d,height:v},style:{fill:r.connectedBackgroundColor}})),E(h,function(x){var _=new rt({style:{x:x.left*p-l,y:x.top*p-u,image:x.dom}});g.add(_)}),g.refreshImmediately(),m.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,i,a){return ph(this,"convertToPixel",r,i,a)},e.prototype.convertToLayout=function(r,i,a){return ph(this,"convertToLayout",r,i,a)},e.prototype.convertFromPixel=function(r,i,a){return ph(this,"convertFromPixel",r,i,a)},e.prototype.containPixel=function(r,i){if(this._disposed){this.id;return}var a=this._model,n,o=Ec(a,r);return E(o,function(s,l){l.indexOf("Models")>=0&&E(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)n=n||!!f.containPoint(i);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(n=n||c.containPoint(i,u))}},this)},this),!!n},e.prototype.getVisual=function(r,i){var a=this._model,n=Ec(a,r,{defaultMainType:"series"}),o=n.seriesModel,s=o.getData(),l=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?s.indexOfRawIndex(n.dataIndex):null;return l!=null?rh(s,l,i):ih(s,i)},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;E(gz,function(a){var n=function(o){var s=r.getModel(),l=o.target,u,f=a==="globalout";if(f?u={}:l&&Ea(l,function(v){var m=xe(v);if(m&&m.dataIndex!=null){var g=m.dataModel||s.getSeriesByIndex(m.seriesIndex);return u=g&&g.getDataParams(m.dataIndex,m.dataType,l)||{},!0}else if(m.eventData)return u=k({},m.eventData),!0},!0),u){var c=u.componentType,h=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",h=u.seriesIndex);var p=c&&h!=null&&s.getComponent(c,h),d=p&&r[p.mainType==="series"?"_chartsMap":"_componentsMap"][p.__viewId];u.event=o,u.type=a,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:p,view:d},r.trigger(a,u)}};n.zrEventfulCallAtLast=!0,r._zr.on(a,n,r)});var i=this._messageCenter;E(by,function(a,n){i.on(n,function(o){r.trigger(n,o)})}),XT(i,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&&nm(this.getDom(),Ay,"");var i=this,a=i._api,n=i._model;E(i._componentsViews,function(o){o.dispose(n,a)}),E(i._chartsViews,function(o){o.dispose(n,a)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete Lu[i.id]},e.prototype.resize=function(r){if(!this[xt]){if(this._disposed){this.id;return}this._zr.resize(r);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var a=i.resetOption("media"),n=r&&r.silent;this[Rt]&&(n==null&&(n=this[Rt].silent),a=!0,this[Rt]=null),this[xt]=!0,Js(this);try{a&&Eo(this),Aa.update.call(this,{type:"resize",animation:k({duration:0},r&&r.animation)})}catch(o){throw this[xt]=!1,o}this[xt]=!1,Zs.call(this,n),js.call(this,n)}}},e.prototype.showLoading=function(r,i){if(this._disposed){this.id;return}if($(r)&&(i=r,r=""),r=r||"default",this.hideLoading(),!!wy[r]){var a=wy[r](this._api,i),n=this._zr;this._loadingFX=a,n.add(a)}},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 i=k({},r);return i.type=_y[r.type],i},e.prototype.dispatchAction=function(r,i){if(this._disposed){this.id;return}if($(i)||(i={silent:!!i}),!!dh[r.type]&&this._model){if(this[xt]){this._pendingActions.push(r);return}var a=i.silent;yy.call(this,r,a);var n=i.flush;n?this._zr.flush():n!==!1&&ye.browser.weChat&&this._throttledZrFlush(),Zs.call(this,a),js.call(this,a)}},e.prototype.updateLabelLayout=function(){Ur.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var i=r.seriesIndex,a=this.getModel(),n=a.getSeriesByIndex(i);n.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){Eo=function(c){QT(c._model);var h=c._scheduler;h.restorePipelines(c._zr,c._model),h.prepareStageTasks(),my(c,!0),my(c,!1),h.plan()},my=function(c,h){for(var p=c._model,d=c._scheduler,v=h?c._componentsViews:c._chartsViews,m=h?c._componentsMap:c._chartsMap,g=c._zr,y=c._api,x=0;x<v.length;x++)v[x].__alive=!1;h?p.eachComponent(function(b,w){b!=="series"&&_(w)}):p.eachSeries(_);function _(b){var w=b.__requireNewView;b.__requireNewView=!1;var M="_ec_"+b.id+"_"+b.type,C=!w&&m[M];if(!C){var T=_r(b.type),A=h?Mt.getClass(T.main,T.sub):mt.getClass(T.sub);C=new A,C.init(p,y),m[M]=C,v.push(C),g.add(C.group)}b.__viewId=C.__id=M,C.__alive=!0,C.__model=b,C.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!h&&d.prepareView(C,b,p,y)}for(var x=0;x<v.length;){var S=v[x];S.__alive?x++:(!h&&S.renderTask.dispose(),g.remove(S.group),S.dispose(p,y),v.splice(x,1),m[S.__id]===S&&delete m[S.__id],S.__id=S.group.__ecComponentInfo=null)}},ch=function(c,h,p,d,v){var m=c._model;if(m.setUpdatePayload(p),!d){E([].concat(c._componentsViews).concat(c._chartsViews),_);return}var g=$b(p,d,v),y=p.excludeSeriesId,x;y!=null&&(x=ee(),E(Fe(y),function(S){var b=wt(S,null);b!=null&&x.set(b,!0)})),m&&m.eachComponent(g,function(S){var b=x&&x.get(S.id)!=null;if(!b)if(Km(p))if(S instanceof At)p.type===ln&&!p.notBlur&&!S.get(["emphasis","disabled"])&&aC(S,p,c._api);else{var w=Yc(S.mainType,S.componentIndex,p.name,c._api),M=w.focusSelf,C=w.dispatchers;p.type===ln&&M&&!p.notBlur&&Fc(S.mainType,S.componentIndex,c._api),C&&E(C,function(T){p.type===ln?to(T):ro(T)})}else $c(p)&&S instanceof At&&(sC(S,p,c._api),Gm(S),ri(c))},c),m&&m.eachComponent(g,function(S){var b=x&&x.get(S.id)!=null;b||_(c[d==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},c);function _(S){S&&S.__alive&&S[h]&&S[h](S.__model,m,c._api,p)}},Aa={prepareAndUpdate:function(c){Eo(this),Aa.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,h){var p=this._model,d=this._api,v=this._zr,m=this._coordSysMgr,g=this._scheduler;if(p){e1(p),p.setUpdatePayload(c),g.restoreData(p,c),g.performSeriesTasks(p),m.create(p,d),Ur.trigger("coordsys:aftercreate",p,d),g.performDataProcessorTasks(p,c),gy(this,p),m.update(p,d),i(p),g.performVisualTasks(p,c);var y=p.get("backgroundColor")||"transparent";v.setBackgroundColor(y);var x=p.get("darkMode");x!=null&&x!=="auto"&&v.setDarkMode(x),xy(this,p,d,c,h),Ur.trigger("afterupdate",p,d)}},updateTransform:function(c){var h=this,p=h._model,d=h._api;if(p){p.setUpdatePayload(c);var v=[];p.eachComponent(function(g,y){if(g!==Vc){var x=h.getViewOfComponentModel(y);if(x&&x.__alive)if(x.updateTransform){var _=x.updateTransform(y,p,d,c);_&&_.update&&v.push(x)}else v.push(x)}});var m=ee();p.eachSeries(function(g){var y=h._chartsMap[g.__viewId],x=g.pipelineContext;if(y.updateTransform&&!x.progressiveRender){var _=y.updateTransform(g,p,d,c);_&&_.update&&m.set(g.uid,1)}else m.set(g.uid,1)}),h._scheduler.performVisualTasks(p,c,{setDirty:!0,dirtyMap:m}),hh(h,p,d,c,{},m),Ur.trigger("afterupdate",p,d)}},updateView:function(c){var h=this._model;h&&(h.setUpdatePayload(c),mt.markUpdateMethod(c,"updateView"),i(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0}),xy(this,h,this._api,c,{}),Ur.trigger("afterupdate",h,this._api))},updateVisual:function(c){var h=this,p=this._model;p&&(p.setUpdatePayload(c),p.eachSeries(function(d){d.getData().clearAllVisual()}),mt.markUpdateMethod(c,"updateVisual"),i(p),this._scheduler.performVisualTasks(p,c,{visualType:"visual",setDirty:!0}),p.eachComponent(function(d,v){if(d!=="series"){var m=h.getViewOfComponentModel(v);m&&m.__alive&&m.updateVisual(v,p,h._api,c)}}),p.eachSeries(function(d){var v=h._chartsMap[d.__viewId];v.updateVisual(d,p,h._api,c)}),Ur.trigger("afterupdate",p,this._api))},updateLayout:function(c){Aa.update.call(this,c)}};function r(c,h,p,d,v){if(c._disposed){c.id;return}for(var m=c._model,g=c._coordSysMgr.getCoordinateSystems(),y,x=Ec(m,p),_=0;_<g.length;_++){var S=g[_];if(S[h]&&(y=S[h](m,x,d,v))!=null)return y}}ph=r,gy=function(c,h){var p=c._chartsMap,d=c._scheduler;h.eachSeries(function(v){d.updateStreamModes(v,p[v.__viewId])})},yy=function(c,h){var p=this,d=this.getModel(),v=c.type,m=c.escapeConnect,g=dh[v],y=(g.update||"update").split(":"),x=y.pop(),_=y[0]!=null&&_r(y[0]);this[xt]=!0,Js(this);var S=[c],b=!1;c.batch&&(b=!0,S=B(c.batch,function(P){return P=ue(k({},P),c),P.batch=null,P}));var w=[],M,C=[],T=g.nonRefinedEventType,A=$c(c),D=Km(c);if(D&&Hm(this._api),E(S,function(P){var V=g.action(P,d,p._api);if(g.refineEvent?C.push(V):M=V,M=M||k({},P),M.type=T,w.push(M),D){var R=ql(c),U=R.queryOptionMap,F=R.mainTypeSpecified,K=F?U.keys()[0]:"series";ch(p,x,P,K),ri(p)}else A?(ch(p,x,P,"series"),ri(p)):_&&ch(p,x,P,_.main,_.sub)}),x!=="none"&&!D&&!A&&!_)try{this[Rt]?(Eo(this),Aa.update.call(this,c),this[Rt]=null):Aa[x].call(this,c)}catch(P){throw this[xt]=!1,P}if(b?M={type:T,escapeConnect:m,batch:w}:M=w[0],this[xt]=!1,!h){var L=void 0;if(g.refineEvent){var O=g.refineEvent(C,c,d,this._api).eventContent;$e($(O)),L=ue({type:g.refinedEventType},O),L.fromAction=c.type,L.fromActionPayload=c,L.escapeConnect=!0}var I=this._messageCenter;I.trigger(M.type,M),L&&I.trigger(L.type,L)}},Zs=function(c){for(var h=this._pendingActions;h.length;){var p=h.shift();yy.call(this,p,c)}},js=function(c){!c&&this.trigger("updated")},A1=function(c,h){c.on("rendered",function(p){h.trigger("rendered",p),c.animation.isFinished()&&!h[Rt]&&!h._scheduler.unfinished&&!h._pendingActions.length?h.trigger("finished"):c.refresh()})},M1=function(c,h){c.on("mouseover",function(p){var d=p.target,v=Ea(d,nu);v&&(nC(v,p,h._api),ri(h))}).on("mouseout",function(p){var d=p.target,v=Ea(d,nu);v&&(oC(v,p,h._api),ri(h))}).on("click",function(p){var d=p.target,v=Ea(d,function(y){return xe(y).dataIndex!=null},!0);if(v){var m=v.selected?"unselect":"select",g=xe(v);h._api.dispatchAction({type:m,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function i(c){c.clearColorPalette(),c.eachSeries(function(h){h.clearColorPalette()})}function a(c){var h=[],p=[],d=!1;if(c.eachComponent(function(y,x){var _=x.get("zlevel")||0,S=x.get("z")||0,b=x.getZLevelKey();d=d||!!b,(y==="series"?p:h).push({zlevel:_,z:S,idx:x.componentIndex,type:y,key:b})}),d){var v=h.concat(p),m,g;Nn(v,function(y,x){return y.zlevel===x.zlevel?y.z-x.z:y.zlevel-x.zlevel}),E(v,function(y){var x=c.getComponent(y.type,y.idx),_=y.zlevel,S=y.key;m!=null&&(_=Math.max(m,_)),S?(_===m&&S!==g&&_++,g=S):g&&(_===m&&_++,g=""),m=_,x.setZLevel(_)})}}xy=function(c,h,p,d,v){a(h),L1(c,h,p,d,v),E(c._chartsViews,function(m){m.__alive=!1}),hh(c,h,p,d,v),E(c._chartsViews,function(m){m.__alive||m.remove(h,p)})},L1=function(c,h,p,d,v,m){E(m||c._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,h,p,d),l(y,g),f(y,g)})},hh=function(c,h,p,d,v,m){var g=c._scheduler;v=k(v||{},{updatedSeries:h.getSeries()}),Ur.trigger("series:beforeupdate",h,p,v);var y=!1;h.eachSeries(function(x){var _=c._chartsMap[x.__viewId];_.__alive=!0;var S=_.renderTask;g.updatePayload(S,d),u(x,_),m&&m.get(x.uid)&&S.dirty(),S.perform(g.getPerformArgs(S))&&(y=!0),_.group.silent=!!x.get("silent"),s(x,_),Gm(x)}),g.unfinished=y||g.unfinished,Ur.trigger("series:layoutlabels",h,p,v),Ur.trigger("series:transition",h,p,v),h.eachSeries(function(x){var _=c._chartsMap[x.__viewId];l(x,_),f(x,_)}),o(c,h),Ur.trigger("series:afterupdate",h,p,v)},ri=function(c){c[dy]=!0,c.getZr().wakeUp()},Js=function(c){c[fh]=(c[fh]+1)%1e6},O1=function(c){c[dy]&&(c.getZr().storage.traverse(function(h){_a(h)||n(h)}),c[dy]=!1)};function n(c){for(var h=[],p=c.currentStates,d=0;d<p.length;d++){var v=p[d];v==="emphasis"||v==="blur"||v==="select"||h.push(v)}c.selected&&c.states.select&&h.push("select"),c.hoverState===tu&&c.states.emphasis?h.push("emphasis"):c.hoverState===eu&&c.states.blur&&h.push("blur"),c.useStates(h)}function o(c,h){var p=c._zr;if(p.painter.type==="canvas"){var d=p.storage,v=0;d.traverse(function(g){g.isGroup||v++});var m=v>q(h.get("hoverLayerThreshold"),Np.hoverLayerThreshold)&&!ye.node&&!ye.worker;(c._usingTHL||m)&&(h.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(x){var _=x.states.emphasis;_&&_.hoverLayer!==so&&(_.hoverLayer=m?ag:ig)})}}),c._usingTHL=m)}}function s(c,h){var p=c.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=p)})}function l(c,h){if(!c.preventAutoZ){var p=fg(c);h.eachRendered(function(d){return cg(d,p.z,p.zlevel),!0})}}function u(c,h){h.eachRendered(function(p){if(!_a(p)){var d=p.getTextContent(),v=p.getTextGuideLine();p.stateTransition&&(p.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),p.hasState()?(p.prevStates=p.currentStates,p.clearStates()):p.prevStates&&(p.prevStates=null)}})}function f(c,h){var p=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),v=p.get("duration"),m=v>0?{duration:v,delay:p.get("delay"),easing:p.get("easing")}:null;h.eachRendered(function(g){if(g.states&&g.states.emphasis){if(_a(g))return;if(g instanceof he&&fC(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(d){g.stateTransition=m;var x=g.getTextContent(),_=g.getTextGuideLine();x&&(x.stateTransition=m),_&&(_.stateTransition=m)}g.__dirty&&n(g)}})}D1=function(c){return new((function(h){N(p,h);function p(){return h!==null&&h.apply(this,arguments)||this}return p.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},p.prototype.getComponentByElement=function(d){for(;d;){var v=d.__ecComponentInfo;if(v!=null)return c._model.getComponent(v.mainType,v.index);d=d.parent}},p.prototype.enterEmphasis=function(d,v){to(d,v),ri(c)},p.prototype.leaveEmphasis=function(d,v){ro(d,v),ri(c)},p.prototype.enterBlur=function(d){rC(d),ri(c)},p.prototype.leaveBlur=function(d){Um(d),ri(c)},p.prototype.enterSelect=function(d){Bm(d),ri(c)},p.prototype.leaveSelect=function(d){Fm(d),ri(c)},p.prototype.getModel=function(){return c.getModel()},p.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},p.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},p.prototype.getECUpdateCycleVersion=function(){return c[fh]},p.prototype.usingTHL=function(){return c._usingTHL},p})(Bc))(c)},G1=function(c){function h(p,d){for(var v=0;v<p.length;v++){var m=p[v];m[vy]=d}}E(_y,function(p,d){c._messageCenter.on(d,function(v){if(I1[c.group]&&c[vy]!==E1){if(v&&v.escapeConnect)return;var m=c.makeActionFromEvent(v),g=[];E(Lu,function(y){y!==c&&y.group===c.group&&g.push(y)}),h(g,E1),E(g,function(y){y[vy]!==vz&&y.dispatchAction(m)}),h(g,mz)}})})}})(),e})(ar),Ey=K1.prototype;Ey.on=V1("on");Ey.off=V1("off");Ey.one=function(t,e,r){var i=this;function a(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];e&&e.apply&&e.apply(this,n),i.off(t,a)}this.on.call(this,t,a,r)};var gz=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var dh={},_y={},by={},Sy=[],Cy=[],vh=[],Y1={},wy={},Lu={},I1={},yz=+new Date-0,D8=+new Date-0,Ay="_echarts_instance_";function W1(t,e,r){var i=!(r&&r.ssr);if(i){var a=xz(t);if(a)return a}var n=new K1(t,e,r);return n.id="ec_"+yz++,Lu[n.id]=n,i&&nm(t,Ay,n.id),G1(n),Ur.trigger("afterinit",n),n}function xz(t){return Lu[Xb(t,Ay)]}function $1(t,e){Y1[t]=e}function My(t){pe(Cy,t)<0&&Cy.push(t)}function Ly(t,e){Dy(Sy,t,e,uz)}function X1(t){gh("afterinit",t)}function q1(t){gh("afterupdate",t)}function gh(t,e){Ur.on(t,e)}function Ao(t,e,r){var i,a,n,o,s;j(e)&&(r=e,e=""),$(t)?(i=t.type,a=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),n=t.refineEvent):(i=t,a=e);function l(f){return f.toLowerCase()}a=l(a||i);var u=n?l(i):a;dh[i]||($e(T1.test(i)&&T1.test(a)),n&&$e(a!==i),dh[i]={actionType:i,refinedEventType:a,nonRefinedEventType:u,update:o,action:r,refineEvent:n},by[a]=1,n&&s&&(by[u]=1),_y[u]=i)}function Z1(t,e){mo.register(t,e)}function j1(t,e){Dy(vh,t,e,N1,"layout",!0)}function gn(t,e){Dy(vh,t,e,R1,"visual",!0)}var P1=[];function Dy(t,e,r,i,a,n){if((j(e)||$(e))&&(r=e,e=i),!(pe(P1,r)>=0)){P1.push(r);var o=ny.wrapStageHandler(r,a);o.__prio=e,o.__raw=r,t.push(o)}}function Oy(t,e){wy[t]=e}function yh(t,e,r){var i=jT("registerMap");i&&i(t,e,r)}var J1=lT;gn(Ty,IT);gn(mh,PT);gn(mh,NT);gn(Ty,KT);gn(mh,YT);gn(k1,C1);My(Up);Ly(oz,Zw);Oy("default",ay);Ao({type:ln,event:ln,update:ln},Xe);Ao({type:ru,event:ru,update:ru},Xe);Ao({type:iu,event:Gc,update:iu,action:Xe,refineEvent:Iy,publishNonRefinedEvent:!0});Ao({type:Hc,event:Gc,update:Hc,action:Xe,refineEvent:Iy,publishNonRefinedEvent:!0});Ao({type:au,event:Gc,update:au,action:Xe,refineEvent:Iy,publishNonRefinedEvent:!0});function Iy(t,e,r,i){return{eventContent:{selected:lC(r),isFromClick:e.isFromClick||!1}}}$1("default",{});$1("dark",FT);function Du(t){return t==null?0:t.length||1}function Q1(t){return t}var _z=(function(){function t(e,r,i,a,n,o){this._old=e,this._new=r,this._oldKeyGetter=i||Q1,this._newKeyGetter=a||Q1,this.context=n,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,i={},a=new Array(e.length),n=new Array(r.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(r,i,n,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=a[o],l=i[s],u=Du(l);if(u>1){var f=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(f,o)}else u===1?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(n,i)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,i={},a={},n=[],o=[];this._initIndexMap(e,i,n,"_oldKeyGetter"),this._initIndexMap(r,a,o,"_newKeyGetter");for(var s=0;s<n.length;s++){var l=n[s],u=i[l],f=a[l],c=Du(u),h=Du(f);if(c>1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),a[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[l]=null;else if(c>1)for(var p=0;p<c;p++)this._remove&&this._remove(u[p]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},t.prototype._performRestAdd=function(e,r){for(var i=0;i<e.length;i++){var a=e[i],n=r[a],o=Du(n);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(n[s]);else o===1&&this._add&&this._add(n);r[a]=null}},t.prototype._initIndexMap=function(e,r,i,a){for(var n=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[a](e[o],o);if(n||(i[o]=s),!!r){var l=r[s],u=Du(l);u===0?(r[s]=o,n&&i.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t})(),eE=_z;var bz=(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 tE(t,e){var r={},i=r.encode={},a=ee(),n=[],o=[],s={};E(t.dimensions,function(h){var p=t.getDimensionInfo(h),d=p.coordDim;if(d){var v=p.coordDimIndex;Py(i,d)[v]=h,p.isExtraCoord||(a.set(d,1),Sz(p.type)&&(n[0]=h),Py(s,d)[v]=t.getDimensionIndex(p.name)),p.defaultTooltip&&o.push(h)}Uc.each(function(m,g){var y=Py(i,g),x=p.otherDims[g];x!=null&&x!==!1&&(y[x]=p.name)})});var l=[],u={};a.each(function(h,p){var d=i[p];u[p]=d[0],l=l.concat(d)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=B(l,function(h){return t.getDimensionInfo(h).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=i.label;f&&f.length&&(n=f.slice());var c=i.tooltip;return c&&c.length?o=c.slice():o.length||(o=n.slice()),i.defaultedLabel=n,i.defaultedTooltip=o,r.userOutput=new bz(s,e),r}function Py(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function rE(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function Sz(t){return!(t==="ordinal"||t==="time")}var Cz=(function(){function t(e){this.otherDims={},e!=null&&k(this,e)}return t})(),Qs=Cz;var wz=ne(),Tz={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Ny=(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=Ry(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return q(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=Fp(this.source),i=!ky(e),a="",n=[],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)}n.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(a+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=Tz[u]||"f",f&&(a+=f.uid),a+="$"}var p=this.source,d=[p.seriesLayoutBy,p.startIndex,a].join("$$");return{dimensions:n,hash:d}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,i=0;r<this._fullDimCount;r++){var a=void 0,n=this.dimensions[i];if(n&&n.storeDimIndex===r)n.isCalculationCoord||(a=n.name),i++;else{var o=this.getSourceDimension(r);o&&(a=o.name)}e.push(a)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function xh(t){return t instanceof Ny}function Ou(t){for(var e=ee(),r=0;r<(t||[]).length;r++){var i=t[r],a=$(i)?i.name:i;a!=null&&e.get(a)==null&&e.set(a,r)}return e}function Ry(t){var e=wz(t);return e.dimNameMap||(e.dimNameMap=Ou(t.dimensionsDefine))}function ky(t){return t>30}var Iu=$,yn=B,Ez=typeof Int32Array>"u"?Array:Int32Array,Az="e\0\0",iE=-1,Mz=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Lz=["_approximateExtent"],aE,_h,Pu,Nu,zy,Ru,Vy,Dz=(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 i,a=!1;xh(e)?(i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,i=e),i=i||["x","y"];for(var n={},o=[],s={},l=!1,u={},f=0;f<i.length;f++){var c=i[f],h=G(c)?new Qs({name:c}):c instanceof Qs?c:new Qs(c),p=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=p,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(p),n[p]=h,u[p]!=null&&(l=!0),h.createInvertedIndices&&(s[p]=[]),a&&(h.storeDimIndex=f),d.itemName===0&&(this._nameDimIdx=h.storeDimIndex),d.itemId===0&&(this._idDimIdx=h.storeDimIndex)}if(this.dimensions=o,this._dimInfos=n,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var v=this._dimIdxToName=ee();E(o,function(m){v.set(n[m].storeDimIndex,m)})}}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 i=this._dimIdxToName.get(r);if(i!=null)return i;var a=this._schema.getSourceDimension(r);if(a)return a.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var i=this._getDimInfo(e);return i?i.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(i){return r.hasOwnProperty(i)?r[i]:void 0}:function(i){return r[i]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var i=this._dimSummary;if(r==null)return i.encodeFirstDimNotExtra[e];var a=i.encode[e];return a?a[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,i=r.encode[e];return(i||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,i){var a=this,n;if(e instanceof Su&&(n=e),!n){var o=this.dimensions,s=Ys(e)||lt(e)?new Gp(e,o.length):e;n=new Su;var l=yn(o,function(u){return{type:a._dimInfos[u].type,property:u}});n.initData(s,l,i)}this._store=n,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,n.count()),this._dimSummary=tE(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 i=this._store.appendValues(e,r&&r.length),a=i.start,n=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=a;s<n;s++){var l=s-a;this._nameList[s]=r[l],o&&Vy(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,i=0;i<r.length;i++){var a=this._dimInfos[r[i]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Nr&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var i=this._store,a=i.getProvider();this._updateOrdinalMeta();var n=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Tt;if(l&&!a.pure)for(var u=[],f=e;f<r;f++){var c=a.getItem(f,u);if(!this.hasItemOption&&Gb(c)&&(this.hasItemOption=!0),c){var h=c.name;n[f]==null&&h!=null&&(n[f]=wt(h,null));var p=c.id;o[f]==null&&p!=null&&(o[f]=wt(p,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)Vy(this,f);aE(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){Iu(e)?k(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),i=this._nameList[r];return i==null&&this._nameDimIdx!=null&&(i=Pu(this,this._nameDimIdx,r)),i==null&&(i=""),i},t.prototype._getCategory=function(e,r){var i=this._store.get(e,r),a=this._store.getOrdinalMeta(e);return a?a.categories[i]:i},t.prototype.getId=function(e){return _h(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var i=this._store,a=this._dimInfos[e];if(a)return i.get(a.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var i=this._store,a=this._dimInfos[e];if(a)return i.getByRawIndex(a.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 i=this,a=this._store;return z(e)?a.getValues(yn(e,function(n){return i._getStoreDimIndex(n)}),r):a.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,i=0,a=r.length;i<a;i++)if(isNaN(this._store.get(r[i],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,i=this._store.count();r<i;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 i=e&&this._invertedIndicesMap[e],a=i&&i[r];return a==null||isNaN(a)?iE:a},t.prototype.each=function(e,r,i){"use strict";j(e)&&(i=r,r=e,e=[]);var a=i||this,n=yn(Nu(e),this._getStoreDimIndex,this);this._store.each(n,a?se(r,a):r)},t.prototype.filterSelf=function(e,r,i){"use strict";j(e)&&(i=r,r=e,e=[]);var a=i||this,n=yn(Nu(e),this._getStoreDimIndex,this);return this._store=this._store.filter(n,a?se(r,a):r),this},t.prototype.selectRange=function(e){"use strict";var r=this,i={},a=ae(e),n=[];return E(a,function(o){var s=r._getStoreDimIndex(o);i[s]=e[o],n.push(s)}),this._store=this._store.selectRange(i),this},t.prototype.mapArray=function(e,r,i){"use strict";j(e)&&(i=r,r=e,e=[]),i=i||this;var a=[];return this.each(e,function(){a.push(r&&r.apply(this,arguments))},i),a},t.prototype.map=function(e,r,i,a){"use strict";var n=i||a||this,o=yn(Nu(e),this._getStoreDimIndex,this),s=Ru(this);return s._store=this._store.map(o,n?se(r,n):r),s},t.prototype.modify=function(e,r,i,a){var n=this,o=i||a||this,s=yn(Nu(e),this._getStoreDimIndex,this);this._store.modify(s,o?se(r,o):r)},t.prototype.downSample=function(e,r,i,a){var n=Ru(this);return n._store=this._store.downSample(this._getStoreDimIndex(e),r,i,a),n},t.prototype.minmaxDownSample=function(e,r){var i=Ru(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),i},t.prototype.lttbDownSample=function(e,r){var i=Ru(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),i},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,i=this.getRawDataItem(e);return new qe(i,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new eE(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(i){return _h(e,i)},function(i){return _h(r,i)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},Iu(e)?k(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var i=this._itemVisuals[e],a=i&&i[r];return a??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var i=this._itemVisuals,a=i[e];a||(a=i[e]={});var n=a[r];return n==null&&(n=this.getVisual(r),z(n)?n=n.slice():Iu(n)&&(n=k({},n)),a[r]=n),n},t.prototype.setItemVisual=function(e,r,i){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,Iu(r)?k(a,r):a[r]=i},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){Iu(e)?k(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,i){this._itemLayouts[e]=i?k(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var i=this.hostModel&&this.hostModel.seriesIndex;KS(i,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){E(this._graphicEls,function(i,a){i&&e&&e.call(r,i,a)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:yn(this.dimensions,this._getDimInfo,this),this.hostModel)),zy(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var i=this[e];j(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=i.apply(this,arguments);return r.apply(this,[a].concat(Nf(arguments)))})},t.internalField=(function(){aE=function(e){var r=e._invertedIndicesMap;E(r,function(i,a){var n=e._dimInfos[a],o=n.ordinalMeta,s=e._store;if(o){i=r[a]=new Ez(o.categories.length);for(var l=0;l<i.length;l++)i[l]=iE;for(var l=0;l<s.count();l++)i[s.get(n.storeDimIndex,l)]=l}})},Pu=function(e,r,i){return wt(e._getCategory(r,i),null)},_h=function(e,r){var i=e._idList[r];return i==null&&e._idDimIdx!=null&&(i=Pu(e,e._idDimIdx,r)),i==null&&(i=Az+r),i},Nu=function(e){return z(e)||(e=e!=null?[e]:[]),e},Ru=function(e){var r=new t(e._schema?e._schema:yn(e.dimensions,e._getDimInfo,e),e.hostModel);return zy(r,e),r},zy=function(e,r){E(Mz.concat(r.__wrappedMethods||[]),function(i){r.hasOwnProperty(i)&&(e[i]=r[i])}),e.__wrappedMethods=r.__wrappedMethods,E(Lz,function(i){e[i]=Q(r[i])}),e._calculationInfo=k({},r._calculationInfo)},Vy=function(e,r){var i=e._nameList,a=e._idList,n=e._nameDimIdx,o=e._idDimIdx,s=i[r],l=a[r];if(s==null&&n!=null&&(i[r]=s=Pu(e,n,r)),l==null&&o!=null&&(a[r]=l=Pu(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),a[r]=l}}})(),t})(),bh=Dz;function ku(t,e){Ys(t)||(t=Ws(t)),e=e||{};var r=e.coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],a=ee(),n=[],o=Oz(t,r,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&ky(o),l=i===t.dimensionsDefine,u=l?Ry(t):Ou(i),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=ee(f),h=new jg(o),p=0;p<h.length;p++)h[p]=-1;function d(C){var T=h[C];if(T<0){var A=i[C],D=$(A)?A:{name:A},L=new Qs,O=D.name;O!=null&&u.get(O)!=null&&(L.name=L.displayName=O),D.type!=null&&(L.type=D.type),D.displayName!=null&&(L.displayName=D.displayName);var I=n.length;return h[C]=I,L.storeDimIndex=C,n.push(L),L}return n[T]}if(!s)for(var p=0;p<o;p++)d(p);c.each(function(C,T){var A=Fe(C).slice();if(A.length===1&&!G(A[0])&&A[0]<0){c.set(T,!1);return}var D=c.set(T,[]);E(A,function(L,O){var I=G(L)?u.get(L):L;I!=null&&I<o&&(D[O]=I,m(d(I),T,O))})});var v=0;E(r,function(C){var T,A,D,L;if(G(C))T=C,L={};else{L=C,T=L.name;var O=L.ordinalMeta;L.ordinalMeta=null,L=k({},L),L.ordinalMeta=O,A=L.dimsDef,D=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var I=c.get(T);if(I!==!1){if(I=Fe(I),!I.length)for(var P=0;P<(A&&A.length||1);P++){for(;v<o&&d(v).coordDim!=null;)v++;v<o&&I.push(v++)}E(I,function(V,R){var U=d(V);if(l&&L.type!=null&&(U.type=L.type),m(ue(U,L),T,R),U.name==null&&A){var F=A[R];!$(F)&&(F={name:F}),U.name=U.displayName=F.name,U.defaultTooltip=F.defaultTooltip}D&&ue(U.otherDims,D)})}});function m(C,T,A){Uc.get(T)!=null?C.otherDims[T]=A:(C.coordDim=T,C.coordDimIndex=A,a.set(T,!0))}var g=e.generateCoord,y=e.generateCoordCount,x=y!=null;y=g?y||1:0;var _=g||"value";function S(C){C.name==null&&(C.name=C.coordDim)}if(s)E(n,function(C){S(C)}),n.sort(function(C,T){return C.storeDimIndex-T.storeDimIndex});else for(var b=0;b<o;b++){var w=d(b),M=w.coordDim;M==null&&(w.coordDim=Iz(_,a,x),w.coordDimIndex=0,(!g||y<=0)&&(w.isExtraCoord=!0),y--),S(w),w.type==null&&(kp(t,b)===Et.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return _s(n,function(C){return C.name},function(C,T){T>0&&(C.name=C.name+(T-1))}),new Ny({source:t,dimensions:n,fullDimensionCount:o,dimensionOmitted:s})}function Oz(t,e,r,i){var a=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,i||0);return E(e,function(n){var o;$(n)&&(o=n.dimsDef)&&(a=Math.max(a,o.length))}),a}function Iz(t,e,r){if(r||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}var Pz=(function(){function t(e){this.coordSysDims=[],this.axisMap=ee(),this.categoryAxisMap=ee(),this.coordSysName=e}return t})();function nE(t){var e=t.get("coordinateSystem"),r=new Pz(e),i=Nz[e];if(i)return i(t,r,r.axisMap,r.categoryAxisMap),r}var Nz={cartesian2d:function(t,e,r,i){var a=t.getReferringComponents("xAxis",Ht).models[0],n=t.getReferringComponents("yAxis",Ht).models[0];e.coordSysDims=["x","y"],r.set("x",a),r.set("y",n),el(a)&&(i.set("x",a),e.firstCategoryDimIndex=0),el(n)&&(i.set("y",n),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,i){var a=t.getReferringComponents("singleAxis",Ht).models[0];e.coordSysDims=["single"],r.set("single",a),el(a)&&(i.set("single",a),e.firstCategoryDimIndex=0)},polar:function(t,e,r,i){var a=t.getReferringComponents("polar",Ht).models[0],n=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",n),r.set("angle",o),el(n)&&(i.set("radius",n),e.firstCategoryDimIndex=0),el(o)&&(i.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,i){var a=t.ecModel,n=a.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=n.dimensions.slice();E(n.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];r.set(f,u),el(u)&&(i.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(t,e,r,i){var a=t.getReferringComponents("matrix",Ht).models[0];e.coordSysDims=["x","y"];var n=a.getDimensionModel("x"),o=a.getDimensionModel("y");r.set("x",n),r.set("y",o),i.set("x",n),i.set("y",o)}};function el(t){return t.get("type")==="category"}function oE(t,e,r){r=r||{};var i=r.byIndex,a=r.stackedCoordDimension,n,o,s;Rz(e)?n=e:(o=e.schema,n=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,c,h,p=!0;function d(_){return _.type!=="ordinal"&&_.type!=="time"}if(E(n,function(_,S){G(_)&&(n[S]=_={name:_}),d(_)||(p=!1)}),E(n,function(_,S){l&&!_.isExtraCoord&&(!i&&!u&&_.ordinalMeta&&(u=_),!f&&d(_)&&(!p||_.coordDim!=="x"&&_.coordDim!=="angle")&&(!a||a===_.coordDim)&&(f=_))}),f&&!i&&!u&&(i=!0),f){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,m=f.type,g=0;E(n,function(_){_.coordDim===v&&g++});var y={name:c,coordDim:v,coordDimIndex:g,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},x={name:h,coordDim:h,coordDimIndex:g+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(h,m),x.storeDimIndex=s.ensureCalculationDimension(c,m)),o.appendCalculationDimension(y),o.appendCalculationDimension(x)):(n.push(y),n.push(x))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:h,stackResultDimension:c}}function Rz(t){return!xh(t.schema)}function Ma(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function sE(t,e){return Ma(t,e)?t.getCalculationInfo("stackResultDimension"):e}function kz(t,e){var r=t.get("coordinateSystem"),i=mo.get(r),a;return e&&e.coordSysDims&&(a=B(e.coordSysDims,function(n){var o={name:n},s=e.axisMap.get(n);if(s){var l=s.get("type");o.type=rE(l)}return o})),a||(a=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),a}function zz(t,e,r){var i,a;return r&&E(t,function(n,o){var s=n.coordDim,l=r.categoryAxisMap.get(s);l&&(i==null&&(i=o),n.ordinalMeta=l.getOrdinalMeta(),e&&(n.createInvertedIndices=!0)),n.otherDims.itemName!=null&&(a=!0)}),!a&&i!=null&&(t[i].otherDims.itemName=0),i}function Vz(t,e,r){r=r||{};var i=e.getSourceManager(),a,n=!1;t?(n=!0,a=Ws(t)):(a=i.getSource(),n=a.sourceFormat===Tt);var o=nE(e),s=kz(e,o),l=r.useEncodeDefaulter,u=j(l)?l:l?ut(Dw,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!n},c=ku(a,f),h=zz(c.dimensions,r.createInvertedIndices,o),p=n?null:i.getSharedDataStore(c),d=oE(e,{schema:c,store:p}),v=new bh(c,e);v.setCalculationInfo(d);var m=h!=null&&Uz(a)?function(g,y,x,_){return _===h?x:this.defaultDimValueGetter(g,y,x,_)}:null;return v.hasItemOption=!1,v.initData(n?a:p,null,m),v}function Uz(t){if(t.sourceFormat===Tt){var e=Bz(t.data||[]);return!z(da(e))}}function Bz(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var Zi=Vz;var lE=(function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();tn(lE);var cr=lE;var Fz=0,Hz=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++Fz,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,i=r.data,a=i&&B(i,Gz);return new t({categories:a,needCollect:!a,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,i=this._needCollect;if(!G(e)&&!i)return e;if(i&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var a=this._getOrCreateMap();return r=a.get(e),r==null&&(i?(r=this.categories.length,this.categories[r]=e,a.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=ee(this.categories))},t})();function Gz(t){return $(t)&&t.value!=null?t.value:t+""}var zu=Hz;var Er=0,tl=1,Kz={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},fE=ae(Kz),rl=2,cE=3;function il(t,e,r){var i;t=t||{};var a=st();if(a){var n=a.createBreakScaleMapper(e,r);n.hasBreaks()&&(E(fE,function(o){n[o]&&(t[o]=se(n[o],n))}),i=n)}return i==null&&Yz(t,r),{brk:i,mapper:t}}function Sh(t,e){E(fE,function(r){t[r]=e[r]})}function Ch(t,e){t.freeze=Xe}function La(t){return t.getExtentUnsafe(Er,rl)}function Mo(t,e){return t.getExtentUnsafe(tl,e)||t.getExtentUnsafe(Er,e)}function pE(t){var e=Mo(t,cE);return e[1]-e[0]}function al(t){var e=t.getExtentUnsafe(Er,cE);return e[1]-e[0]}function Yz(t,e){var r=t||{},i=[];return r._extents=i,i[Er]=e?e.slice():Gt(),k(r,Wz),r}var Wz={needTransform:function(){return!1},normalize:function(t){var e=this._extents[tl]||this._extents[Er];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[tl]||this._extents[Er];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=Mo(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[Er].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){uE(this._extents,Er,t,e)},setExtent2:function(t,e,r){var i=this._extents;i[t]||(i[t]=i[Er].slice()),uE(i,t,e,r)},freeze:function(){}};function uE(t,e,r,i){va(r,i)&&(t[e][0]=r,t[e][1]=i)}function wh(t){return nl(t)||ji(t)}function nl(t){return t.type==="interval"}function ol(t){return t.type==="time"}function ji(t){return t.type==="log"}function kt(t){return t.type==="ordinal"}function hE(t){var e=Cc(t),r=en(10,e),i=Pr(t/r);return i?i===2?i=3:i===3?i=5:i*=2:i=1,Me(i*r,-e)}function Si(t){return pi(t)+2}function Vu(t,e){return gs(t)/gs(e)}function Th(t,e,r){var i=r&&r.lookup;if(i){for(var a=0;a<i.from.length;a++)if(t===i.from[a])return i.to[a]}return en(e,t)}function Eh(t,e,r){var i=t.slice();if(i[0]===i[1]){var a=r&&r.ctnShp;if(i[0]!==0){var n=Qe(i[0]);e[1]||(i[1]+=n/2),i[0]-=n/2}else a&&(i[0]=-1),i[1]=1}return(!di(i[0])||!di(i[1]))&&(i[0]=0,i[1]=1),i[1]<i[0]&&i.reverse(),i}function dE(t,e){return[t[0]!==e[0],t[1]!==e[1]]}function Lo(t,e){return t=t||e,Pr(Ce(t,1))}function Ah(t,e,r){var i=La(t),a=i[0],n=t.count(),o=Math.max((e||0)+1,1);a!==0&&o>1&&n/o>2&&(a=Math.round(Math.ceil(a/o)*o)),a!==i[0]&&l(i[0],!0,!0);for(var s=a;s<=i[1];s+=o)l(s,!1,s===i[0]||s===i[1]);s-o!==i[1]&&l(i[1],!0,!0);function l(u,f,c){r({value:u,offInterval:f},c)}}var vE=(function(t){N(e,t);function e(r){var i=t.call(this)||this;i.type="ordinal",i.parse=e.parse,Sh(i,e.decoratedMethods);var a=r.ordinalMeta;a||(a=new zu({})),z(a)&&(a=new zu({categories:B(a,function(o){return $(o)?o.value:o})})),i._ordinalMeta=a;var n=il(null,null,r.extent||[0,a.categories.length-1]);return i._mapper=n.mapper,Ch(i,n.mapper),i}return e.parse=function(r){return r==null?r=NaN:G(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=Pr(r),r},e.prototype.getTicks=function(){var r=[];return Ah(this,0,function(i){r.push(i)}),r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=r.ordinalNumbers,a=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=nt(s,i.length);o<l;++o){var u=a[o]=i[o];n[u]=o}for(var f=0;o<s;++o){for(;n[f]!=null;)f++;a[o]=f,n[f]=o}},e.prototype._getTickNumber=function(r){var i=this._ticksByOrdinalNumber;return i&&r>=0&&r<i.length?i[r]:r},e.prototype.getRawOrdinalNumber=function(r){var i=this._ordinalNumbersByTick;return i&&r>=0&&r<i.length?i[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var i=this.getRawOrdinalNumber(r.value),a=this._ordinalMeta.categories[i];return a==null?"":a+""}},e.prototype.count=function(){var r=La(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(Pr(this._mapper.scale(r)))},transformIn:function(r,i){return this._mapper.transformIn(this._getTickNumber(r),i)},transformOut:function(r,i){return this.getRawOrdinalNumber(this._mapper.transformOut(r,i))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,i){return this._mapper.getExtentUnsafe(r,i)},setExtent:function(r,i){return this._mapper.setExtent(r,i)},setExtent2:function(r,i,a){return this._mapper.setExtent2(r,i,a)}},e})(cr);cr.registerClass(vE);var Mh=vE;function sl(t,e,r,i){for(var a=t.getTicks({expandToNicedExtent:!0}),n=[],o=t.getExtent(),s=1;s<a.length;s++){var l=a[s],u=a[s-1];if(!(u.break||l.break)){for(var f=0,c=[],h=l.value-u.value,p=h/e,d=Si(p);f<e-1;){var v=Me(u.value+(f+1)*p,d);v>o[0]&&v<o[1]&&c.push(v),f++}var m=st();m&&m.pruneTicksByBreak("auto",c,r,function(g){return g},i,o),n.push(c)}}return n}var mE=(function(t){N(e,t);function e(r){var i=t.call(this)||this;i.type="interval",i.parse=e.parse,r=r||{};var a=hp(i,r),n=il(i,a,null);return i.brk=n.brk,i._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},i}return e.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.getConfig=function(){return Q(this._cfg)},e.prototype.setConfig=function(r){var i=La(this);this._cfg=r=Q(r),r.niceExtent==null&&(r.niceExtent=i.slice()),r.intervalPrecision==null&&(r.intervalPrecision=Si(r.interval))},e.prototype.getTicks=function(r){r=r||{};var i=this._cfg,a=i.interval,n=La(this),o=i.niceExtent,s=i.intervalPrecision,l=st(),u=this.brk,f=l&&u,c=[];if(!a)return c;if(r.breakTicks==="only_break"&&f)return l.addBreaksToTicks(c,u.breaks,n),c;var h=3e3;n[0]<o[0]&&c.push({value:r.expandToNicedExtent?Me(o[0]-a,s):n[0]});for(var p=function(x,_){return Pr((_-x)/a)},d=i.intervalCount,v=o[0],m=0;;m++){if(d==null){if(v>o[1]||!isFinite(v)||!isFinite(o[1]))break}else{if(m>d)break;v=nt(v,o[1]),m===d&&(v=o[1])}if(c.push({value:v}),v=Me(v+a,s),u){var g=u.calcNiceTickMultiple(v,p);g>=0&&(v=Me(v+g*a,s))}if(c.length>0&&v===c[c.length-1].value)break;if(c.length>h)return[]}var y=c.length?c[c.length-1].value:o[1];return n[1]>y&&c.push({value:r.expandToNicedExtent?Me(y+a,s):n[1]}),f&&l.pruneTicksByBreak(r.pruneByBreak,c,u.breaks,function(x){return x.value},i.interval,n),f&&r.breakTicks!=="none"&&l.addBreaksToTicks(c,u.breaks,n),c},e.prototype.getMinorTicks=function(r){return sl(this,r,co(this),this._cfg.interval)},e.prototype.getLabel=function(r,i){if(r==null)return"";var a=i&&i.precision;a==null?a=pi(r.value)||0:a==="auto"&&(a=this._cfg.intervalPrecision);var n=Me(r.value,a,!0);return du(n)},e.type="interval",e})(cr);cr.registerClass(mE);var Ji=mE;var $z=function(t,e,r,i){for(;r<i;){var a=r+i>>>1;t[a][1]<e?r=a+1:i=a}return r},yE=(function(t){N(e,t);function e(r){var i=t.call(this)||this;i.type="time",i.parse=e.parse,i._locale=r.locale,i._useUTC=r.useUTC,i._interval=0;var a=hp(i,r),n=il(i,a,null);return i.brk=n.brk,i}return e.prototype.getLabel=function(r){return ho(r.value,bg[dw(Us(this._minLevelUnit))]||bg.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(r,i,a){return vw(r,i,a,this._locale,this._useUTC)},e.prototype.getTicks=function(r){r=r||{};var i=this._interval,a=La(this),n=st(),o=this.brk,s=n&&o,l=[];if(!i)return l;var u=this._useUTC;if(s&&r.breakTicks==="only_break")return st().addBreaksToTicks(l,o.breaks,a),l;l=eV(this._minLevelUnit,this._approxInterval,u,a,al(this),o);var f=Tr.length-1,c=0;return E(l,function(h){h.time&&(f=Math.min(f,pe(Tr,h.time.upperTimeUnit)),c=Math.max(c,h.time.level))}),s&&st().pruneTicksByBreak(r.pruneByBreak,l,o.breaks,function(h){return h.value},this._approxInterval,a),s&&r.breakTicks!=="none"&&st().addBreaksToTicks(l,o.breaks,a,function(h){for(var p=Math.max(pe(Tr,vo(h.vmin,u)),pe(Tr,vo(h.vmax,u))),d=0,v=0;v<Tr.length;v++)if(!xE(Tr[v],h.vmin,h.vmax,u)){d=v;break}var m=Math.min(d,f),g=Math.max(m,p);return{level:c,lowerTimeUnit:Tr[g],upperTimeUnit:Tr[m]}}),l},e.prototype.getMinorTicks=function(r){return sl(this,r,co(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):+hi(r)},e.type="time",e})(cr),Lh=[["second",mp],["minute",gp],["hour",Vs],["quarter-day",Vs*6],["half-day",Vs*12],["day",zr*1.2],["half-week",zr*3.5],["week",zr*7],["month",zr*31],["quarter",zr*95],["half-year",_g/2],["year",_g]];function xE(t,e,r,i){return yp(new Date(e),t,i).getTime()===yp(new Date(r),t,i).getTime()}function Xz(t,e){return t/=zr,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function qz(t){var e=30*zr;return t/=e,t>6?6:t>3?3:t>2?2:1}function Zz(t){return t/=Vs,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function gE(t,e){return t/=e?gp:mp,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function jz(t){return Ce(Kn(t,!0),1)}function Jz(t,e,r){var i=Math.max(0,pe(Tr,e)-1);return yp(new Date(t),Tr[i],r).getTime()}function Qz(t,e){var r=new Date(0);r[t](1);var i=r.getTime();r[t](1+e);var a=r.getTime()-i;return function(n,o){return Math.max(0,Math.round((o-n)/a))}}function eV(t,e,r,i,a,n){var o=3e3,s=cw,l=0;function u(P,V,R,U,F,K,X){for(var re=Qz(F,P),Z=V,de=new Date(Z);Z<R&&Z<=i[1]&&(X.push({value:Z}),!(l++>o));)if(de[F](de[U]()+P),Z=de.getTime(),n){var ie=n.calcNiceTickMultiple(Z,re);ie>0&&(de[F](de[U]()+ie*P),Z=de.getTime())}X.push({value:Z,notAdd:Z>i[1]})}function f(P,V,R){var U=[],F=!V.length;if(!xE(Us(P),i[0],i[1],r)){F&&(V=[{value:Jz(i[0],P,r)},{value:i[1]}]);for(var K=0;K<V.length-1;K++){var X=V[K].value,re=V[K+1].value;if(X!==re){var Z=void 0,de=void 0,ie=void 0,Ue=!1;switch(P){case"year":Z=Math.max(1,Math.round(e/zr/365)),de=Sg(r),ie=mw(r);break;case"half-year":case"quarter":case"month":Z=qz(e),de=xp(r),ie=Cg(r);break;case"week":case"half-week":case"day":Z=Xz(e,31),de=_p(r),ie=wg(r),Ue=!0;break;case"half-day":case"quarter-day":case"hour":Z=Zz(e),de=bp(r),ie=Tg(r);break;case"minute":Z=gE(e,!0),de=Sp(r),ie=Eg(r);break;case"second":Z=gE(e,!1),de=Cp(r),ie=Ag(r);break;case"millisecond":Z=jz(e),de=wp(r),ie=Mg(r);break}re>=i[0]&&X<=i[1]&&u(Z,X,re,de,ie,Ue,U),P==="year"&&R.length>1&&K===0&&R.unshift({value:R[0].value-Z})}}for(var K=0;K<U.length;K++)R.push(U[K])}}for(var c=[],h=[],p=0,d=0,v=0;v<s.length;++v){var m=Us(s[v]);if(hw(s[v])){f(s[v],c[c.length-1]||[],h);var g=s[v+1]?Us(s[v+1]):null;if(m!==g){if(h.length){d=p,h.sort(function(P,V){return P.value-V.value});for(var y=[],x=0;x<h.length;++x){var _=h[x].value;(x===0||h[x-1].value!==_)&&(y.push(h[x]),_>=i[0]&&_<=i[1]&&p++)}var S=a/e;if(p>S*1.5&&d>S/1.5||(c.push(y),p>S||t===s[v]))break}h=[]}}}for(var b=ke(B(c,function(P){return ke(P,function(V){return V.value>=i[0]&&V.value<=i[1]&&!V.notAdd})}),function(P){return P.length>0}),w=b.length-1,M=[],v=0;v<b.length;++v)for(var C=b[v],T=0;T<C.length;++T){var A=vo(C[T].value,r);M.push({value:C[T].value,time:{level:w-v,upperTimeUnit:A,lowerTimeUnit:A}})}_s(M,Qb,null),M.sort(function(P,V){return P.value-V.value});var D=M[0],L=M[M.length-1],O=vo(i[0],r),I=vo(i[1],r);return(!D||D.value>i[0])&&M.unshift({value:i[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!L||L.value<i[1])&&M.push({value:i[1],time:{level:0,upperTimeUnit:I,lowerTimeUnit:I},notNice:!0}),M}var _E=function(t,e){var r=t.getExtent();if(r[0]===r[1]&&(r[0]-=zr,r[1]+=zr),r[1]===-1/0&&r[0]===1/0){var i=new Date;r[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),r[0]=r[1]-zr}t.setExtent(r[0],r[1]);var a=Lo(e.splitNumber,10),n=al(t)/a,o=e.minInterval,s=e.maxInterval;o!=null&&n<o&&(n=o),s!=null&&n>s&&(n=s);var l=Lh.length,u=Math.min($z(Lh,n,0,l),l-1),f=Lh[u][1],c=Lh[Math.max(u-1,0)][0];t.setTimeInterval({approxInterval:n,interval:f,minLevelUnit:c})};cr.registerClass(yE);var bE=yE;var Dh=0,Oh=1,tV=2,TE=(function(t){N(e,t);function e(r){var i=t.call(this)||this;i.type="log",i.parse=Ji.parse,i.base=r.logBase||10;var a=[],n=[],o=i._lookup={from:a,to:n};a[Dh]=a[Oh]=n[Dh]=n[Oh]=NaN,Sh(i,e.mapperMethods);var s=st(),l=r.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,i,{noNegative:!0},tV,u),i.powStub=new Ji({breakParsed:u.original}),i.intervalStub=new Ji({breakParsed:u.transformed}),Ch(i,i.intervalStub),i}return e.prototype.getTicks=function(r){var i=this.base,a=this.powStub,n=st(),o=this.intervalStub,s=o.getExtent(),l=a.getExtent(),u={lookup:{from:s,to:l}};return B(o.getTicks(r||{}),function(f){var c=f.value,h=Th(c,i,u),p;if(n){var d=n.getTicksBreakOutwardTransform(this,f,co(a),this._lookup);d&&(p=d.vBreak,h=d.tickVal)}return{value:h,break:p}},this)},e.prototype.getMinorTicks=function(r){return sl(this,r,co(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(r,i){return this.intervalStub.getLabel(r,i)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(Vu(r,this.base))},scale:function(r){return Th(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,i){return r=Vu(r,this.base),i&&i.depth===rl?r:this.intervalStub.transformIn(r,i)},transformOut:function(r,i){var a=i?i.depth:null;return SE.depth=a,CE.lookup=this._lookup,Th(a===rl?r:this.intervalStub.transformOut(r,SE),this.base,CE)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,i){this.setExtent2(Er,r,i)},setExtent2:function(r,i,a){if(!(!va(i,a)||i<=0||a<=0)){var n=wE,o=wE;if(r===Er){var s=this._lookup;n=s.to,o=s.from}this.powStub.setExtent2(r,n[Dh]=i,n[Oh]=a);var l=this.base;this.intervalStub.setExtent2(r,o[Dh]=Vu(i,l),o[Oh]=Vu(a,l))}},getFilter:function(){return{g:0}},sanitize:function(r,i){return va(i[0],i[1])&&gt(r)&&r<=0&&(r=i[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,i){return i===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,i)}},e})(cr);cr.registerClass(TE);var SE={},CE={},wE=[],EE=TE;var Ih={value:1,category:1,time:1,log:1};var AE=ne();function ME(t){var e=t.get("type");return(e==null||!le(Ih,e)&&!cr.getClass(e))&&(e="value"),e}function LE(t,e,r){var i=st(),a;switch(i&&(a=Uy(t,e,r)),e){case"category":return new Mh({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:Gt()});case"time":return new bE({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:a});case"log":return new EE({logBase:t.get("logBase"),breakOption:a});case"value":return new Ji({breakOption:a});default:return new(cr.getClass(e)||Ji)({})}}function DE(t,e,r){var i=r?Mo(t,null):t.getExtentUnsafe(Er,null),a=i[0],n=i[1];return va(a,n)?a===e||n===e?iV:a<e&&n>e?rV:Ph:Ph}var rV=1,iV=2,Ph=3;function OE(t){AE(t).noOnMyZero=!0}function IE(t){return AE(t).noOnMyZero}function Do(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=pw(e);return function(a,n){return t.scale.getFormattedLabel(a,n,r)}}else{if(G(e))return function(a){var n=t.scale.getLabel(a),o=e.replace("{value}",n??"");return o};if(j(e)){if(t.type==="category")return function(a,n){return e(ll(t,a),a.value-t.scale.getExtent()[0],null)};var i=st();return function(a,n){var o=null;return i&&(o=i.makeAxisLabelFormatterParamBreak(o,a.break)),e(ll(t,a),n,o)}}else return function(a){return t.scale.getLabel(a)}}}function ll(t,e){var r=t.scale;return kt(r)?r.getLabel(e):e.value}function Nh(t){var e=t.get("interval");return e??"auto"}function PE(t){return t.type==="category"&&Nh(t.getLabelModel())===0}function NE(t,e){var r={};return E(t.mapDimensionsAll(e),function(i){r[sE(t,i)]=!0}),ae(r)}function xn(t){return t==="middle"||t==="center"}function Oo(t){return t.getShallow("show")}function Uy(t,e,r){var i=t.get("breaks",!0);if(i!=null){if(!st())return;if(!r||!aV(e)){if(0)var a;return}return i}}function aV(t){return t!=="category"}function Rh(t,e,r,i,a,n){var o=ji(t),s=o?t.intervalStub:t;if(s.setExtent(i[0],i[1]),o){var l=t.powStub,u={depth:rl},f=t.transformOut(i[0],u),c=t.transformOut(i[1],u),h=dE(r,i);e[0]&&!h[0]&&(f=a[0]),e[1]&&!h[1]&&(c=a[1]),l.setExtent(f,c)}s.setConfig(n)}function Da(t,e){return kt(t)?t.getRawOrdinalNumber(e.value):e.value}function kh(t,e){return kt(t)&&!!e.get("boundaryGap")}var zh=(function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t})();var nV=Mc(),Vh="|&",ul=ne(),Uh=-2,kE=-1,oV=ne();function zE(t,e){var r=t.model,i=ul(wo(r.ecModel)).keyed,a=i&&i.get(e);return a&&a.get(r.uid)}function VE(t,e){return FE(zE(t,e))}function UE(t,e){var r=[];return BE(t.model.ecModel,function(i){for(var a=0;a<e.length;a++)e[a]&&i.serByIdx[e[a].seriesIndex]&&r.push(FE(i))}),r}function BE(t,e){var r=ul(wo(t)).keyed;r&&r.each(function(i,a){i.each(function(n,o){e(n,a,o)})})}function FE(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function HE(t,e){var r=t.model.ecModel,i=ul(wo(r)).axSer;i&&Bh(r,i.get(t.model.uid),e)}function Hy(t,e,r){var i=zE(t,e);i&&Bh(t.model.ecModel,i.sers,r)}function Bh(t,e,r){if(e)for(var i=0;i<e.length;i++){var a=e[i];t.isSeriesFiltered(a)||r(a)}}function GE(t,e,r){var i=ul(wo(t)).keyed,a=i&&i.get(e);a&&a.each(function(n){r(n.axis)})}function Gy(t,e){var r=t.model,i=ul(wo(r.ecModel)).keys;i&&E(i.get(r.uid),function(a){if(0)var n;e(a)})}function sV(t){var e=oV(t1(t)),r=e.keyed||(e.keyed=ee());BE(t,function(i,a,n){var o=r.get(a)||r.set(a,ee()),s=o.get(n)||o.set(n,{});i.metrics.liPosMinGap&&YE.liPosMinGap(t,i,s)})}function KE(t,e){YE[t]=e}var YE={};function Uu(t,e,r){if(t){var i=e.ecModel,a=ul(wo(i)),n=t.model.uid;if(0)var o,s;var l=a.axSer||(a.axSer=ee()),u=l.get(n)||l.set(n,[]);if(0)var f;u.push(e);var c=e.subType,h=e.getBaseAxis()===t,p=Fy.get(By(c,h,r))||Fy.get(By(c,h,null));if(p){var d=a.keyed||(a.keyed=ee()),v=a.keys||(a.keys=ee()),m=p.key,g=d.get(m)||d.set(m,ee()),y=g.get(n);y||(y=g.set(n,{axis:t,sers:[],serByIdx:[]}),y.metrics=p.getMetrics(t),(v.get(n)||v.set(n,[])).push(m)),y.sers.push(e),y.serByIdx[e.seriesIndex]=e}}}function By(t,e,r){return t+Vh+q(e,!0)+Vh+(r||"")}function WE(t,e){var r=By(e.seriesType,e.baseAxis,e.coordSysType);Fy.set(r,e),nV(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:sV})})}var Fy=ee();var lV=ne(),Fh=1;var uV=3,qE=(function(){function t(e,r,i,a,n){var o=kt(e),s=o?r.getCategories().length:null,l;if(o){var u=r.getCategories(!0);l=u&&!u.length}var f=i.slice();(nl(e)||ji(e)||ol(e))&&(om(f,Bu(e,r.get("dataMin",!0))),sm(f,Bu(e,r.get("dataMax",!0)))),jb(f)||(f[0]=f[1]=NaN);var c=[],h=[!1,!1],p=r.get("min",!0);p==="dataMin"?(c[0]=f[0],h[0]=!0):(c[0]=Bu(e,j(p)?p({min:f[0],max:f[1]}):p),h[0]=c[0]!=null);var d=r.get("max",!0);d==="dataMax"?(c[1]=f[1],h[1]=!0):(c[1]=Bu(e,j(d)?d({min:f[0],max:f[1]}):d),h[1]=c[1]!=null);var v=fV(e,r),m=o?null:f[1]-f[0]||Math.abs(f[0]);c[0]==null&&(c[0]=o?l?f[0]:s?0:NaN:f[0]-v[0]*m),c[1]==null&&(c[1]=o?l?f[1]:s?s-1:NaN:f[1]+v[1]*m),!di(c[0])&&(c[0]=NaN),!di(c[1])&&(c[1]=NaN);var g=l||Gr(c[0])||Gr(c[1])||o&&!s,y=nl(e),x=y&&r.needIncludeZero&&r.needIncludeZero();x&&(c[0]>0&&c[1]>0&&!h[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!h[1]&&(c[1]=0));var _=!1;c[0]>c[1]&&(c.reverse(),_=!0);var S=Bu(e,r.get("startValue",!0)),b=S!=null;!gt(S)&&a&&(S=e.getDefaultStartValue?e.getDefaultStartValue():0),gt(S)&&(b||!y||x)&&(S<c[0]&&!h[0]?(c[0]=S,h[0]=!0):S>c[1]&&!h[1]&&(c[1]=S,h[1]=!0));var w=this._i={scale:e,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:h,zoomFixMM:[!1,!1],startValue:S,isBlank:g,incl0:x,tggAxInv:_,ctnShp:n};$E(w,c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var e=this._i,r=e.zoomMM,i=e.noZoomEffMM,a=e.zoomFixMM,n=e.fixMM,o={fixMM:n,zoomFixMM:a,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:i.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],n[0]=a[0]=!0),r[1]!=null&&(s[1]=r[1],n[1]=a[1]=!0),$E(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 $E(t,e){var r=t.scale,i=t.dataMM;r.sanitize&&(e[0]=r.sanitize(e[0],i),e[1]=r.sanitize(e[1],i),Jb(e))}function Bu(t,e){return e==null?null:Gr(e)?NaN:t.parse(e)}function fV(t,e){var r;if(kt(t))r=[0,0];else{var i=e.get("boundaryGap");typeof i=="boolean"&&(i=null),r=z(i)?i:[i,i]}return[XE(r[0]),XE(r[1])]}function XE(t){return xr(typeof t=="boolean"?0:t,1)||0}function ZE(t){var e=lV(t.scale);return e.extent||(e.extent=Gt()),e}function jE(t,e){ZE(t).dimIdxInCoord=e.get(t.dim)}function Hh(t,e){var r=t.scale,i=t.model,a=t.dim;r.rawExtentInfo||cV(r,t,a,i,e)}function cV(t,e,r,i,a){var n=ZE(e),o=n.extent,s=!1;HE(e,function(f){if(f.boxCoordinateSystem){var c=Lp(f).coord,h=n.dimIdxInCoord;if(h>=0){if(z(c)){var p=c[h];p!=null&&!z(p)&&Zl(o,t.parse(p))}}}else if(f.coordinateSystem){var d=f.getData();if(d){var v=t.getFilter?t.getFilter():null;E(NE(d,r),function(m){Zb(o,d.getApproximateExtent(m,v))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var l=hV(t,e,i),u=new qE(t,i,o,s,l);JE(t,u,a),n.extent=null}function pV(t,e){var r=t.scale;JE(r,new qE(r,t.model,e,!1,!1),uV)}function JE(t,e,r){t.rawExtentInfo=e,e.from=r}function QE(t,e){Ky.set(t,e)}var Ky=ee();function Gh(t,e,r,i,a){t.rawExtentInfo||pV({scale:t,model:e},a||Gt());var n=t.rawExtentInfo.makeFinal(),o=n.effMM;return t.setExtent(o[0],o[1]),t.setBlank(n.isBlank),i&&n.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis")&&(i.inverse=!i.inverse),n}function hV(t,e,r){var i=kh(t,r),a=r.get("containShape",!0);if(a==null&&!i&&(a=!0),!a)return!1;var n=!1;return Gy(e,function(o){n=!!Ky.get(o)||n}),n}function eA(t,e,r,i){if(r.ctnShp){var a;if(Gy(t,function(s){var l=Ky.get(s);if(l){var u=l(t,i);u&&(a=a||[0,0],om(a,u[0]),sm(a,u[1]),OE(t))}}),!!a){var n=e.getExtent();if(kt(e))t.onBand||e.setExtent2(tl,nt(n[0],n[0]+a[0]),Ce(n[1],n[1]+a[1]));else{var o=n.slice();r.zoomFixMM[0]||(o[0]=nt(o[0],e.transformOut(e.transformIn(o[0],null)+a[0],null))),r.zoomFixMM[1]||(o[1]=Ce(o[1],e.transformOut(e.transformIn(o[1],null)+a[1],null))),(o[0]<n[0]||o[1]>n[1])&&e.setExtent2(tl,o[0],o[1])}}}}function tA(t,e){var r=ji(t),i=r?t.intervalStub:t,a=e.fixMinMax||[],n=r?t.getExtent():null,o=i.getExtent(),s=Eh(o,a,e.rawExtentResult);i.setExtent(s[0],s[1]),s=i.getExtent();var l=r?vV(i,e):dV(i,e),u=l.intervalPrecision,f=l.interval,c=e.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=Si(c)),a[0]||(s[0]=Me(Ii(s[0]/f)*f,u)),a[1]||(s[1]=Me(Qa(s[1]/f)*f,u)),c!=null&&(l.niceExtent=s.slice()),Rh(t,a,o,s,n,l)}function dV(t,e){var r=Lo(e.splitNumber,5),i=al(t),a=e.minInterval,n=e.maxInterval,o=Kn(i/r,!0);a!=null&&o<a&&(o=a),n!=null&&o>n&&(o=n);var s=Si(o),l=t.getExtent(),u=[Me(Qa(l[0]/o)*o,s),Me(Ii(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function vV(t,e){var r=Lo(e.splitNumber,10),i=t.getExtent(),a=al(t),n=Ce(Sc(a),1),o=r/a*n;o<=.5&&(n*=10);var s=Si(n),l=[Me(Qa(i[0]/n)*n,s),Me(Ii(i[1]/n)*n,s)];return{intervalPrecision:s,interval:n,niceExtent:l}}function Yy(t){var e=t.scale,r=t.model,i=r.axis,a=r.ecModel;mV(e,r,i,a,null)}function mV(t,e,r,i,a){var n=Gh(t,e,i,r,a),o=nl(t)||ol(t);gV(t,{splitNumber:e.get("splitNumber"),fixMinMax:n.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:n}),r&&i&&eA(r,t,n,i)}function gV(t,e){yV[t.type](t,e)}var yV={interval:tA,log:tA,time:_E,ordinal:Xe};var rA=[],xV={registerPreprocessor:My,registerProcessor:Ly,registerPostInit:X1,registerPostUpdate:q1,registerUpdateLifecycle:gh,registerAction:Ao,registerCoordinateSystem:Z1,registerLayout:j1,registerVisual:gn,registerTransform:J1,registerLoading:Oy,registerMap:yh,registerImpl:ZT,PRIORITY:z1,ComponentModel:Ie,ComponentView:Mt,SeriesModel:At,ChartView:mt,registerComponentModel:function(t){Ie.registerClass(t)},registerComponentView:function(t){Mt.registerClass(t)},registerSeriesModel:function(t){At.registerClass(t)},registerChartView:function(t){mt.registerClass(t)},registerCustomSeries:function(t,e){JT(t,e)},registerSubTypeDefaulter:function(t,e){Ie.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Ib(t,e)}};function Ge(t){if(z(t)){E(t,function(e){Ge(e)});return}pe(rA,t)>=0||(rA.push(t),j(t)&&(t={install:t}),t.install(xV))}var Kh={};Wd(Kh,{addCommas:()=>du,capitalFirst:()=>xw,encodeHTML:()=>dt,formatTime:()=>yw,formatTpl:()=>Fs,getTextRect:()=>Lg,getTooltipMarker:()=>Ep,normalizeCssArray:()=>$i,toCamelCase:()=>Bs,truncateText:()=>pm});var _V=ne(),Fu=ne(),Ar={estimate:1,determine:2};function fl(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function iA(t,e){var r=t.getLabelModel().get("customValues");if(r){var i=t.scale;return{labels:B(nA(r,i),function(a,n){return{formattedLabel:Do(t)(a,n),rawLabel:i.getLabel(a),tick:a}})}}return t.type==="category"?bV(t,e):CV(t)}function aA(t,e,r){var i=t.scale,a=t.getTickModel().get("customValues");return a?{ticks:nA(a,i)}:t.type==="category"?SV(t,e):{ticks:i.getTicks(r)}}function nA(t,e){var r=e.getExtent(),i=[];return E(t,function(a){a=e.parse(a),a>=r[0]&&a<=r[1]&&i.push(a)}),_s(i,eS,null),Pi(i),B(i,function(a){return{value:a}})}function bV(t,e){var r=t.getLabelModel(),i=oA(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:i}function oA(t,e,r){var i=TV(t),a=Nh(e),n=r.kind===Ar.estimate;if(!n){var o=lA(i,a);if(o)return o}var s,l;j(a)?s=Yh(t,a,!1):(l=a==="auto"?EV(t,r):a,s=Yh(t,l,!1));var u={labels:s,labelCategoryInterval:l};return n?r.out.noPxChangeTryDetermine.push(function(){return Wy(i,a,u),!0}):Wy(i,a,u),u}function SV(t,e){var r=wV(t),i=Nh(e),a=lA(r,i);if(a)return a;var n,o;if((!e.get("show")||t.scale.isBlank())&&(n=[]),j(i))n=Yh(t,i,!0);else if(i==="auto"){var s=oA(t,t.getLabelModel(),fl(Ar.determine));o=s.labelCategoryInterval,n=B(s.labels,function(l){return l.tick})}else o=i,n=Yh(t,o,!0);return Wy(r,i,{ticks:n,tickCategoryInterval:o})}function CV(t){var e=t.scale.getTicks(),r=Do(t);return{labels:B(e,function(i,a){return{formattedLabel:r(i,a),rawLabel:t.scale.getLabel(i),tick:i}})}}var wV=sA("axisTick"),TV=sA("axisLabel");function sA(t){return function(r){return Fu(r)[t]||(Fu(r)[t]={list:[]})}}function lA(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function Wy(t,e,r){return t.list.push({key:e,value:r}),r}function EV(t,e){if(e.kind===Ar.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Fu(t).autoInterval=r,!0}),r}var i=Fu(t).autoInterval;return i??(Fu(t).autoInterval=t.calculateCategoryInterval(e))}function uA(t,e){var r=e.kind,i=MV(t),a=Do(t),n=(i.axisRotate-i.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),p=Math.abs(h*Math.cos(n)),d=Math.abs(h*Math.sin(n)),v=0,m=0;c<=s[1];c+=u){var g=0,y=0,x=mc(a({value:c}),i.font,"center","top");g=x.width*1.3,y=x.height*1.3,v=Math.max(v,g,7),m=Math.max(m,y,7)}var _=v/p,S=m/d;isNaN(_)&&(_=1/0),isNaN(S)&&(S=1/0);var b=Math.max(0,Math.floor(Math.min(_,S)));if(r===Ar.estimate)return e.out.noPxChangeTryDetermine.push(se(AV,null,t,b,l)),b;var w=fA(t,b,l);return w??b}function AV(t,e,r){return fA(t,e,r)==null}function fA(t,e,r){var i=_V(t.model),a=t.getExtent(),n=i.lastAutoInterval,o=i.lastTickCount;if(n!=null&&o!=null&&Math.abs(n-e)<=1&&Math.abs(o-r)<=1&&n>e&&i.axisExtent0===a[0]&&i.axisExtent1===a[1])return n;i.lastTickCount=r,i.lastAutoInterval=e,i.axisExtent0=a[0],i.axisExtent1=a[1]}function MV(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 Yh(t,e,r){var i=Do(t),a=t.scale,n=[],o=j(e);return Ah(a,o?0:e,function(s,l){var u=a.getLabel(s);if(o){var f=!!e(s.value,u);if(s.offInterval=!f,!f&&!l)return}n.push(r?s:{formattedLabel:i(s),rawLabel:u,tick:s})}),n}var LV=.8;function Mr(t,e){e=e||{};var r={w:NaN,w2:NaN},i=t.scale,a=e.fromStat,n=e.min,o=pE(i);gt(o)||(o=NaN);var s=t.getExtent(),l=Qe(s[1]-s[0]);return kt(i)?DV(r,t,o,l):a?OV(r,t,o,l,a):n==null,n!=null&&(r.w=gt(r.w)?Ce(n,r.w):n),r}function DV(t,e,r,i){var a=e.onBand,n=r+(a?1:0);n===0&&(n=1),t.w=i/n,!a&&r&&i&&(t.w2=t.w*r/i)}function OV(t,e,r,i,a){var n=!1,o=-1/0;E(a.key?[VE(e,a.key)]:UE(e,a.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),n=!1):l===Uh&&(n=!0))}),gt(r)&&r>0&&gt(o)?(t.w=i/r*o,t.w2=o):n&&(t.w=i*LV,t.w2=t.w*r/i)}var cA=[0,1],IV=(function(){function t(e,r,i){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=i||[0,0]}return t.prototype.contain=function(e){var r=this._extent,i=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return e>=i&&e<=a},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 i=this._extent;i[0]=e,i[1]=r},t.prototype.dataToCoord=function(e,r){var i=this.scale;return e=i.normalize(i.parse(e)),or(e,cA,pA(this),r)},t.prototype.coordToData=function(e,r){var i=or(e,pA(this),cA,r);return this.scale.scale(i)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),i=aA(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),a=B(i.ticks,function(s){return{coord:this.dataToCoord(Da(this.scale,s)),tick:s}},this),n=r.get("alignWithLabel"),o=PV(this,a,n);return B(a,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},t.prototype.getMinorTicksCoords=function(){if(kt(this.scale))return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var i=this.scale.getMinorTicks(r),a=B(i,function(n){return B(n,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},t.prototype.getViewLabels=function(e){return e=e||fl(Ar.determine),iA(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 Mr(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(e){return e=e||fl(Ar.determine),uA(this,e)},t})();function pA(t){var e=t.getExtent();if(t.onBand){var r=e[1]-e[0],i=r/t.scale.count()/2;e[0]+=i,e[1]-=i}return e}function PV(t,e,r){var i=e.length;if(!t.onBand||r||!i)return!1;var a=Mr(t).w;if(!a)return!1;E(e,function(s){s.coord-=a/2});var n=t.scale.getExtent(),o=e[i-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+a,tick:{value:n[1]+1}}),!0}var Wh=IV;var Hu=Math.PI*2,Io=Kt.CMD,NV=["top","right","bottom","left"];function RV(t,e,r,i,a){var n=r.width,o=r.height;switch(t){case"top":i.set(r.x+n/2,r.y-e),a.set(0,-1);break;case"bottom":i.set(r.x+n/2,r.y+o+e),a.set(0,1);break;case"left":i.set(r.x-e,r.y+o/2),a.set(-1,0);break;case"right":i.set(r.x+n+e,r.y+o/2),a.set(1,0);break}}function kV(t,e,r,i,a,n,o,s,l){o-=t,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*r+t,c=s*r+e;if(Math.abs(i-a)%Hu<1e-4)return l[0]=f,l[1]=c,u-r;if(n){var h=i;i=Jr(a),a=Jr(h)}else i=Jr(i),a=Jr(a);i>a&&(a+=Hu);var p=Math.atan2(s,o);if(p<0&&(p+=Hu),p>=i&&p<=a||p+Hu>=i&&p+Hu<=a)return l[0]=f,l[1]=c,u-r;var d=r*Math.cos(i)+t,v=r*Math.sin(i)+e,m=r*Math.cos(a)+t,g=r*Math.sin(a)+e,y=(d-o)*(d-o)+(v-s)*(v-s),x=(m-o)*(m-o)+(g-s)*(g-s);return y<x?(l[0]=d,l[1]=v,Math.sqrt(y)):(l[0]=m,l[1]=g,Math.sqrt(x))}function $h(t,e,r,i,a,n,o,s){var l=a-t,u=n-e,f=r-t,c=i-e,h=Math.sqrt(f*f+c*c);f/=h,c/=h;var p=l*f+u*c,d=p/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var v=o[0]=t+d*f,m=o[1]=e+d*c;return Math.sqrt((v-a)*(v-a)+(m-n)*(m-n))}function hA(t,e,r,i,a,n,o){r<0&&(t=t+r,r=-r),i<0&&(e=e+i,i=-i);var s=t+r,l=e+i,u=o[0]=Math.min(Math.max(a,t),s),f=o[1]=Math.min(Math.max(n,e),l);return Math.sqrt((u-a)*(u-a)+(f-n)*(f-n))}var Ci=[];function zV(t,e,r){var i=hA(e.x,e.y,e.width,e.height,t.x,t.y,Ci);return r.set(Ci[0],Ci[1]),i}function VV(t,e,r){for(var i=0,a=0,n=0,o=0,s,l,u=1/0,f=e.data,c=t.x,h=t.y,p=0;p<f.length;){var d=f[p++];p===1&&(i=f[p],a=f[p+1],n=i,o=a);var v=u;switch(d){case Io.M:n=f[p++],o=f[p++],i=n,a=o;break;case Io.L:v=$h(i,a,f[p],f[p+1],c,h,Ci,!0),i=f[p++],a=f[p++];break;case Io.C:v=Zf(i,a,f[p++],f[p++],f[p++],f[p++],f[p],f[p+1],c,h,Ci),i=f[p++],a=f[p++];break;case Io.Q:v=Jf(i,a,f[p++],f[p++],f[p],f[p+1],c,h,Ci),i=f[p++],a=f[p++];break;case Io.A:var m=f[p++],g=f[p++],y=f[p++],x=f[p++],_=f[p++],S=f[p++];p+=1;var b=!!(1-f[p++]);s=Math.cos(_)*y+m,l=Math.sin(_)*x+g,p<=1&&(n=s,o=l);var w=(c-m)*x/y+m;v=kV(m,g,x,_,_+S,b,w,h,Ci),i=Math.cos(_+S)*y+m,a=Math.sin(_+S)*x+g;break;case Io.R:n=i=f[p++],o=a=f[p++];var M=f[p++],C=f[p++];v=hA(n,o,M,C,c,h,Ci);break;case Io.Z:v=$h(i,a,n,o,c,h,Ci,!0),i=n,a=o;break}v<u&&(u=v,r.set(Ci[0],Ci[1]))}return u}var wi=new ge,Ye=new ge,pt=new ge,ea=new ge,Qi=new ge;function Xy(t,e){if(t){var r=t.getTextGuideLine(),i=t.getTextContent();if(i&&r){var a=t.textGuideLineConfig||{},n=[[0,0],[0,0],[0,0]],o=a.candidates||NV,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=a.anchor,f=t.getComputedTransform(),c=f&&Kr([],f),h=e.get("length2")||0;u&&pt.copy(u);for(var p=0;p<o.length;p++){var d=o[p];RV(d,0,s,wi,ea),ge.scaleAndAdd(Ye,wi,ea,h),Ye.transform(c);var v=t.getBoundingRect(),m=u?u.distance(Ye):t instanceof he?VV(Ye,t.path,pt):zV(Ye,v,pt);m<l&&(l=m,Ye.transform(f),pt.transform(f),pt.toArray(n[0]),Ye.toArray(n[1]),wi.toArray(n[2]))}qy(n,e.get("minTurnAngle")),r.setShape({points:n})}}}var Xh=[],pr=new ge;function qy(t,e){if(e<=180&&e>0){e=e/180*Math.PI,wi.fromArray(t[0]),Ye.fromArray(t[1]),pt.fromArray(t[2]),ge.sub(ea,wi,Ye),ge.sub(Qi,pt,Ye);var r=ea.len(),i=Qi.len();if(!(r<.001||i<.001)){ea.scale(1/r),Qi.scale(1/i);var a=ea.dot(Qi),n=Math.cos(e);if(n<a){var o=$h(Ye.x,Ye.y,pt.x,pt.y,wi.x,wi.y,Xh,!1);pr.fromArray(Xh),pr.scaleAndAdd(Qi,o/Math.tan(Math.PI-e));var s=pt.x!==Ye.x?(pr.x-Ye.x)/(pt.x-Ye.x):(pr.y-Ye.y)/(pt.y-Ye.y);if(isNaN(s))return;s<0?ge.copy(pr,Ye):s>1&&ge.copy(pr,pt),pr.toArray(t[1])}}}}function dA(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,wi.fromArray(t[0]),Ye.fromArray(t[1]),pt.fromArray(t[2]),ge.sub(ea,Ye,wi),ge.sub(Qi,pt,Ye);var i=ea.len(),a=Qi.len();if(!(i<.001||a<.001)){ea.scale(1/i),Qi.scale(1/a);var n=ea.dot(e),o=Math.cos(r);if(n<o){var s=$h(Ye.x,Ye.y,pt.x,pt.y,wi.x,wi.y,Xh,!1);pr.fromArray(Xh);var l=Math.PI/2,u=Math.acos(Qi.dot(e)),f=l+u-r;if(f>=l)ge.copy(pr,pt);else{pr.scaleAndAdd(Qi,s/Math.tan(Math.PI/2-f));var c=pt.x!==Ye.x?(pr.x-Ye.x)/(pt.x-Ye.x):(pr.y-Ye.y)/(pt.y-Ye.y);if(isNaN(c))return;c<0?ge.copy(pr,Ye):c>1&&ge.copy(pr,pt)}pr.toArray(t[1])}}}}function $y(t,e,r,i){var a=r==="normal",n=a?t:t.ensureState(r);n.ignore=e;var o=i.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,n.shape=n.shape||{},n.shape.smooth=o;var s=i.getModel("lineStyle").getLineStyle();a?t.useStyle(s):n.style=s}function UV(t,e){var r=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),r>0&&i.length>=3){var a=Al(i[0],i[1]),n=Al(i[1],i[2]);if(!a||!n){t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]);return}var o=Math.min(a,n)*r,s=Vf([],i[1],i[0],o/a),l=Vf([],i[1],i[2],o/n),u=Vf([],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],i[2][0],i[2][1])}else for(var f=1;f<i.length;f++)t.lineTo(i[f][0],i[f][1])}function qh(t,e,r){var i=t.getTextGuideLine(),a=t.getTextContent();if(!a){i&&t.removeTextGuideLine();return}for(var n=e.normal,o=n.get("show"),s=a.ignore,l=0;l<Ms.length;l++){var u=Ms[l],f=e[u],c=u==="normal";if(f){var h=f.get("show"),p=c?s:q(a.states[u]&&a.states[u].ignore,s);if(p||!q(h,o)){var d=c?i:i&&i.states[u];d&&(d.ignore=!0),i&&$y(i,!0,u,f);continue}i||(i=new gi,t.setTextGuideLine(i),!c&&(s||!o)&&$y(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),$y(i,!1,u,f)}}if(i){ue(i.style,r),i.style.fill=null;var v=n.get("showAbove"),m=t.textGuideLineConfig=t.textGuideLineConfig||{};m.showAbove=v||!1,i.buildPath=UV}}function Zh(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},i=0;i<lr.length;i++){var a=lr[i];r[a]=t.getModel([a,e])}return r}var vA=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],BV=1,jh=2,gA=BV|jh;function Gu(t,e,r){r=r||gA,e?t.dirty|=r:t.dirty&=~r}function yA(t,e){return e=e||gA,t.dirty==null||!!(t.dirty&e)}function Ti(t){if(t)return yA(t)&&jy(t,t.label,t),t}function jy(t,e,r){var i=e.getComputedTransform();t.transform=lp(t.transform,i);var a=t.localRect=Rs(t.localRect,e.getBoundingRect()),n=e.style,o=n.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,f=n.__marginType;f==null&&u&&(o=u,f=uo.textMargin);for(var c=0;c<4;c++)Zy[c]=f===uo.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===uo.textMargin&&Ps(a,Zy,!1,!1);var h=t.rect=Rs(t.rect,a);return i&&h.applyTransform(i),f===uo.minMargin&&Ps(h,Zy,!1,!1),t.axisAligned=sp(i),(t.label=t.label||{}).ignore=e.ignore,Gu(t,!1),Gu(t,!0,jh),t}var Zy=[0,0,0,0];function xA(t,e,r){return t.transform=lp(t.transform,r),t.localRect=Rs(t.localRect,e),t.rect=Rs(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=sp(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function _A(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 i=t.rect;i&&(i.x+=e.x,i.y+=e.y);var a=t.obb;a&&a.fromBoundingRect(t.localRect,r)}}function Ku(t,e){for(var r=0;r<vA.length;r++){var i=vA[r];t[i]==null&&(t[i]=e[i])}return Ti(t)}function mA(t){var e=t.obb;return(!e||yA(t,jh))&&(t.obb=e=e||new ip,e.fromBoundingRect(t.localRect,t.transform),Gu(t,!1,jh)),e}function Yu(t,e,r,i,a){var n=t.length,o=Yi[e],s=fn[e];if(n<2)return!1;t.sort(function(C,T){return C.rect[o]-T.rect[o]});for(var l=0,u,f=!1,c=0,h=0;h<n;h++){var p=t[h],d=p.rect;u=d[o]-l,u<0&&(d[o]-=u,p.label[o]-=u,f=!0);var v=Math.max(-u,0);c+=v,l=d[o]+d[s]}c>0&&a&&b(-c/n,0,n);var m=t[0],g=t[n-1],y,x;_(),y<0&&w(-y,.8),x<0&&w(x,.8),_(),S(y,x,1),S(x,y,-1),_(),y<0&&M(-y),x<0&&M(x);function _(){y=m.rect[o]-r,x=i-g.rect[o]-g.rect[s]}function S(C,T,A){if(C<0){var D=Math.min(T,-C);if(D>0){b(D*A,0,n);var L=D+C;L<0&&w(-L*A,1)}else w(-C*A,1)}}function b(C,T,A){C!==0&&(f=!0);for(var D=T;D<A;D++){var L=t[D],O=L.rect;O[o]+=C,L.label[o]+=C}}function w(C,T){for(var A=[],D=0,L=1;L<n;L++){var O=t[L-1].rect,I=Math.max(t[L].rect[o]-O[o]-O[s],0);A.push(I),D+=I}if(D){var P=Math.min(Math.abs(C)/D,T);if(C>0)for(var L=0;L<n-1;L++){var V=A[L]*P;b(V,0,L+1)}else for(var L=n-1;L>0;L--){var V=A[L-1]*P;b(-V,L,n)}}}function M(C){var T=C<0?-1:1;C=Math.abs(C);for(var A=Math.ceil(C/(n-1)),D=0;D<n-1;D++)if(T>0?b(A,0,D+1):b(-A,n-D-1,n),C-=A,C<=0)return}return f}function bA(t){for(var e=0;e<t.length;e++){var r=t[e],i=r.defaultAttr,a=r.labelLine;r.label.attr("ignore",i.ignore),a&&a.attr("ignore",i.labelGuideIgnore)}}function Jh(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 i=0;i<t.length;i++){var a=Ti(t[i]);if(!a.label.ignore){for(var n=a.label,o=a.labelLine,s=!1,l=0;l<e.length;l++)if(Qh(a,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(n),o&&r(o)):e.push(a)}}}function Qh(t,e,r,i){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,i)?!1:t.axisAligned&&e.axisAligned?!0:mA(t).intersect(mA(e),r,i)}function FV(t){if(t){for(var e=[],r=0;r<t.length;r++)e.push(t[r].slice());return e}}function HV(t,e){var r=t.label,i=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:FV(i&&i.shape.points)}}var SA=["align","verticalAlign","width","height","fontSize"],hr=new ja,Jy=ne(),GV=ne();function ed(t,e,r){for(var i=0;i<r.length;i++){var a=r[i];e[a]!=null&&(t[a]=e[a])}}var td=["x","y","rotation"],KV=(function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(e,r,i,a,n){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),f=a.getBoundingRect().plain();ce.applyTransform(f,f,u),u?hr.setLocalTransform(u):(hr.x=hr.y=hr.rotation=hr.originX=hr.originY=0,hr.scaleX=hr.scaleY=1),hr.rotation=Jr(hr.rotation);var c=a.__hostTarget,h;if(c){h=c.getBoundingRect().plain();var p=c.getComputedTransform();ce.applyTransform(h,h,p)}var d=h&&c.getTextGuideLine();this._labelList.push({label:a,labelLine:d,seriesModel:i,dataIndex:e,dataType:r,layoutOptionOrCb:n,layoutOption:null,rect:f,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:d&&d.ignore,x:hr.x,y:hr.y,scaleX:hr.scaleX,scaleY:hr.scaleY,rotation:hr.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:l.position,attachedRot:l.rotation}})},t.prototype.addLabelsOfSeries=function(e){var r=this;this._chartViewList.push(e);var i=e.__model,a=i.get("labelLayout");(j(a)||ae(a).length)&&e.group.traverse(function(n){if(n.ignore)return!0;var o=n.getTextContent(),s=xe(n);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,i,o,a)})},t.prototype.updateLayoutConfig=function(e){var r=e.getWidth(),i=e.getHeight();function a(x,_){return function(){Xy(x,_)}}for(var n=0;n<this._labelList.length;n++){var o=this._labelList[n],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;j(o.layoutOptionOrCb)?f=o.layoutOptionOrCb(HV(o,l)):f=o.layoutOptionOrCb,f=f||{},o.layoutOption=f;var c=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*c:u.attachedRot,offset:[f.dx||0,f.dy||0]});var h=!1;if(f.x!=null?(s.x=Ee(f.x,r),s.setStyle("x",0),h=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=Ee(f.y,i),s.setStyle("y",0),h=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var p=l.getTextGuideLine();p&&(p.setShape({points:f.labelLinePoints}),h=!1)}var d=Jy(s);d.needsUpdateLabelLine=h,s.rotation=f.rotate!=null?f.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var v=0;v<SA.length;v++){var m=SA[v];s.setStyle(m,f[m]!=null?f[m]:u.style[m])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var g=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);g=y.getItemModel(o.dataIndex)}s.on("drag",a(l,g.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},t.prototype.layout=function(e){var r=e.getWidth(),i=e.getHeight(),a=[];E(this._labelList,function(l){l.defaultAttr.ignore||a.push(Ku({},l))});var n=ke(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=ke(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});Yu(n,0,0,r),Yu(o,1,0,i);var s=ke(a,function(l){return l.layoutOption.hideOverlap});bA(s),Jh(s)},t.prototype.processLabelsOverall=function(){var e=this;E(this._chartViewList,function(r){var i=r.__model,a=r.ignoreLabelLineUpdate,n=i.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=Jy(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,i),n&&e._animateLabels(o,i)})})},t.prototype._updateLabelLine=function(e,r){var i=e.getTextContent(),a=xe(e),n=a.dataIndex;if(i&&n!=null){var o=r.getData(a.dataType),s=o.getItemModel(n),l={},u=o.getItemVisual(n,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var c=s.getModel("labelLine");qh(e,Zh(s),l),Xy(e,c)}},t.prototype._animateLabels=function(e,r){var i=e.getTextContent(),a=e.getTextGuideLine();if(i&&(e.forceLabelAnimation||!i.ignore&&!i.invisible&&!e.disableLabelAnimation&&!_a(e))){var n=Jy(i),o=n.oldLayout,s=xe(e),l=s.dataIndex,u={x:i.x,y:i.y,rotation:i.rotation},f=r.getData(s.dataType);if(o){i.attr(o);var h=e.prevStates;h&&(pe(h,"select")>=0&&i.attr(n.oldLayoutSelect),pe(h,"emphasis")>=0&&i.attr(n.oldLayoutEmphasis)),Ve(i,u,r,l)}else if(i.attr(u),!Ca(i).valueAnimation){var c=q(i.style.opacity,1);i.style.opacity=0,Ze(i,{style:{opacity:c}},r,l)}if(n.oldLayout=u,i.states.select){var p=n.oldLayoutSelect={};ed(p,u,td),ed(p,i.states.select,td)}if(i.states.emphasis){var d=n.oldLayoutEmphasis={};ed(d,u,td),ed(d,i.states.emphasis,td)}QC(i,l,f,r,r)}if(a&&!a.ignore&&!a.invisible){var n=GV(a),o=n.oldLayout,v={points:a.shape.points};o?(a.attr({shape:o}),Ve(a,{shape:v},r)):(a.setShape(v),a.style.strokePercent=0,Ze(a,{style:{strokePercent:1}},r)),n.oldLayout=v}},t})(),CA=KV;var Qy=ne();function e0(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,r,i){var a=Qy(r).labelManager;a||(a=Qy(r).labelManager=new CA),a.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(e,r,i){var a=Qy(r).labelManager;E(i.updatedSeries,function(n){a.addLabelsOfSeries(r.getViewOfSeriesModel(n))}),a.updateLayoutConfig(r),a.layout(r),a.processLabelsOverall()})}var YV=(function(t){N(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){if(0)var i;return Zi(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var i=new we,a=Nt("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);i.add(a),a.setStyle(r.lineStyle);var n=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=n==="none"?"circle":n,l=r.itemHeight*.8,u=Nt(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);i.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=oe.color.neutral00,u.style.lineWidth=2),i},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})(At),wA=YV;function cl(t,e){var r=t.mapDimensionsAll("defaultedLabel"),i=r.length;if(i===1){var a=Ta(t,e,r[0]);return a!=null?a+"":null}else if(i){for(var n=[],o=0;o<r.length;o++)n.push(Ta(t,e,r[o]));return n.join(" ")}}function rd(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!z(e))return e+"";for(var i=[],a=0;a<r.length;a++){var n=t.getDimensionIndex(r[a]);n>=0&&i.push(e[n])}return i.join(" ")}var WV=(function(t){N(e,t);function e(r,i,a,n){var o=t.call(this)||this;return o.updateData(r,i,a,n),o}return e.prototype._createSymbol=function(r,i,a,n,o,s){this.removeAll();var l=Nt(r,-1,-1,2,2,null,s);l.attr({z2:q(o,100),culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),l.drift=$V,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(){to(this.childAt(0))},e.prototype.downplay=function(){ro(this.childAt(0))},e.prototype.setZ=function(r,i){var a=this.childAt(0);a.zlevel=r,a.z=i},e.prototype.setDraggable=function(r,i){var a=this.childAt(0);a.draggable=r,a.cursor=!i&&r?"move":a.cursor},e.prototype.updateData=function(r,i,a,n){this.silent=!1;var o=r.getItemVisual(i,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,i),u=e.getSymbolZ2(r,i),f=o!==this._symbolType,c=n&&n.disableAnimation;if(f){var h=r.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,r,i,l,u,h)}else{var p=this.childAt(0);p.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?p.attr(d):Ve(p,d,s,i),ba(p)}if(this._updateCommon(r,i,l,a,n),f){var p=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,Ze(p,d,s,i)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,i,a,n,o){var s=this.childAt(0),l=r.hostModel,u,f,c,h,p,d,v,m,g;if(n&&(u=n.emphasisItemStyle,f=n.blurItemStyle,c=n.selectItemStyle,h=n.focus,p=n.blurScope,v=n.labelStatesModels,m=n.hoverScale,g=n.cursorStyle,d=n.emphasisDisabled),!n||r.hasItemOption){var y=n&&n.itemModel?n.itemModel:r.getItemModel(i),x=y.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),h=x.get("focus"),p=x.get("blurScope"),d=x.get("disabled"),v=ur(y),m=x.getShallow("scale"),g=y.getShallow("cursor")}var _=r.getItemVisual(i,"symbolRotate");s.attr("rotation",(_||0)*Math.PI/180||0);var S=oh(r.getItemVisual(i,"symbolOffset"),a);S&&(s.x=S[0],s.y=S[1]),g&&s.attr("cursor",g);var b=r.getItemVisual(i,"style"),w=b.fill;if(s instanceof rt){var M=s.style;s.useStyle(k({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},b))}else s.__isEmptyBrush?s.useStyle(k({},b)):s.useStyle(b),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=r.getItemVisual(i,"liftZ"),T=this._z2;C!=null?T==null&&(this._z2=s.z2,s.z2+=C):T!=null&&(s.z2=T,this._z2=null);var A=o&&o.useNameLabel;ei(s,v,{labelFetcher:l,labelDataIndex:i,defaultText:D,inheritColor:w,defaultOpacity:b.opacity});function D(I){return A?r.getName(I):cl(r,I)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;L.scaleX=this._sizeX*O,L.scaleY=this._sizeY*O,this.setSymbolScale(1),kr(this,h,p,d)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,i,a){var n=this.childAt(0),o=xe(this).dataIndex,s=a&&a.animation;if(this.silent=n.silent=!0,a&&a.fadeLabel){var l=n.getTextContent();l&&Is(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){n.removeTextContent()}})}else n.removeTextContent();Is(n,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,i){return nh(r.getItemVisual(i,"symbolSize"))},e.getSymbolZ2=function(r,i){return r.getItemVisual(i,"z2")},e})(we);function $V(t,e){this.parent.drift(t,e)}var Wu=WV;function id(t,e,r,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i&&i.isIgnore&&i.isIgnore(r))&&!(i&&i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function TA(t){return t!=null&&!$(t)&&(t={isIgnore:t}),t||{}}function EA(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:ur(e),cursorStyle:e.get("cursor")}}function AA(t,e,r,i,a,n,o){var s=new t(e,r,i,a);return s.setPosition(n),e.setItemGraphicEl(r,s),o.add(s),s}var XV=(function(){function t(e){this.group=new we,this._SymbolCtor=e||Wu}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=TA(r);var i=this.group,a=e.hostModel,n=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=this._seriesScope=EA(e),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return e.getItemLayout(c)};n||i.removeAll(),e.diff(n).add(function(c){var h=f(c);id(e,h,c,r)&&AA(o,e,c,l,u,h,i)}).update(function(c,h){var p=n.getItemGraphicEl(h),d=f(c);if(!id(e,d,c,r)){i.remove(p);return}var v=e.getItemVisual(c,"symbol")||"circle",m=p&&p.getSymbolType&&p.getSymbolType();if(!p||m&&m!==v)i.remove(p),p=new o(e,c,l,u),p.setPosition(d);else{p.updateData(e,c,l,u);var g={x:d[0],y:d[1]};s?p.attr(g):Ve(p,g,a)}i.add(p),e.setItemGraphicEl(c,p)}).remove(function(c){var h=n.getItemGraphicEl(c);h&&h.fadeOut(function(){i.remove(h)},a)}).execute(),this._getSymbolPoint=f,this._data=e},t.prototype.updateLayout=function(e){var r=this._data;if(r)for(var i=this,a=r.getStore(),n=0,o=a.count();n<o;n++){var s=r.getItemGraphicEl(n),l=i._getSymbolPoint(n);id(r,l,n,e)?(s=s||AA(i._SymbolCtor,r,n,i._seriesScope,{disableAnimation:!0},l,i.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(i.group.remove(s),r.setItemGraphicEl(n,null))}},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=EA(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,i,a){this._progressiveEls=[],a=TA(a);function n(u){u.isGroup||(u.incremental=i,u.ensureState("emphasis").hoverLayer=so)}for(var o=e.start;o<e.end;o++){var s=r.getItemLayout(o);if(id(r,s,o,a)){var l=new this._SymbolCtor(r,o,this._seriesScope);l.traverse(n),l.setPosition(s),this.group.add(l),r.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},t.prototype.eachRendered=function(e){Sa(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,i=this._data;i&&e?i.eachItemGraphicEl(function(a){a.fadeOut(function(){r.remove(a)},i.hostModel)}):r.removeAll()},t})(),ad=XV;function nd(t,e,r){var i=t.getBaseAxis(),a=t.getOtherAxis(i),n=qV(a,r),o=i.dim,s=a.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=B(t.dimensions,function(d){return e.mapDimension(d)}),h=!1,p=e.getCalculationInfo("stackResultDimension");return Ma(e,c[0])&&(h=!0,c[0]=p),Ma(e,c[1])&&(h=!0,c[1]=p),{dataDimsForPoint:c,valueStart:n,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function qV(t,e){var r=0,i=t.scale.getExtent();return e==="start"?r=i[0]:e==="end"?r=i[1]:me(e)&&!isNaN(e)?r=e:i[0]>0?r=i[0]:i[1]<0&&(r=i[1]),r}function od(t,e,r,i){var a=NaN;t.stacked&&(a=r.get(r.getCalculationInfo("stackedOverDimension"),i)),isNaN(a)&&(a=t.valueStart);var n=t.baseDataOffset,o=[];return o[n]=r.get(t.baseDim,i),o[1-n]=a,e.dataToPoint(o)}function Lr(t,e){return!isFinite(t)||!isFinite(e)}var ZV=typeof Float32Array!==sn?Float32Array:void 0,MA=typeof Float64Array!==sn?Float64Array:void 0;function Br(t){return sd({ctor:ZV},t).arr}function sd(t,e){var r=t.arr,i=t.ctor;if(e>jv&&(e=jv),!r||t.typed&&r.length<e){var a=void 0;if(i)try{a=new i(e),t.typed=!0,r&&a.set(r)}catch{}if(!a&&(a=[],t.typed=!1,r))for(var n=0,o=r.length;n<o;n++)a[n]=r[n];t.arr=a}return t}function jV(t,e){var r=[];return e.diff(t).add(function(i){r.push({cmd:"+",idx:i})}).update(function(i,a){r.push({cmd:"=",idx:a,idx1:i})}).remove(function(i){r.push({cmd:"-",idx:i})}).execute(),r}function t0(t,e,r,i,a,n,o,s){for(var l=jV(t,e),u=[],f=[],c=[],h=[],p=[],d=[],v=[],m=nd(a,e,o),g=t.getLayout("points")||[],y=e.getLayout("points")||[],x=0;x<l.length;x++){var _=l[x],S=!0,b=void 0,w=void 0;switch(_.cmd){case"=":b=_.idx*2,w=_.idx1*2;var M=g[b],C=g[b+1],T=y[w],A=y[w+1];(isNaN(M)||isNaN(C))&&(M=T,C=A),u.push(M,C),f.push(T,A),c.push(r[b],r[b+1]),h.push(i[w],i[w+1]),v.push(e.getRawIndex(_.idx1));break;case"+":var D=_.idx,L=m.dataDimsForPoint,O=a.dataToPoint([e.get(L[0],D),e.get(L[1],D)]);w=D*2,u.push(O[0],O[1]),f.push(y[w],y[w+1]);var I=od(m,a,e,D);c.push(I[0],I[1]),h.push(i[w],i[w+1]),v.push(e.getRawIndex(D));break;case"-":S=!1}S&&(p.push(_),d.push(d.length))}d.sort(function(de,ie){return v[de]-v[ie]});for(var P=u.length,V=Br(P),R=Br(P),U=Br(P),F=Br(P),K=[],x=0;x<d.length;x++){var X=d[x],re=x*2,Z=X*2;V[re]=u[Z],V[re+1]=u[Z+1],R[re]=f[Z],R[re+1]=f[Z+1],U[re]=c[Z],U[re+1]=c[Z+1],F[re]=h[Z],F[re+1]=h[Z+1],K[x]=p[X]}return{current:V,next:R,stackedOnCurrent:U,stackedOnNext:F,status:K}}var _n=Math.min,bn=Math.max;function r0(t,e,r,i,a,n,o,s,l){for(var u,f,c,h,p,d,v=r,m=0;m<i;m++){var g=e[v*2],y=e[v*2+1];if(v>=a||v<0)break;if(Lr(g,y)){if(l){v+=n;continue}break}if(v===r)t[n>0?"moveTo":"lineTo"](g,y),c=g,h=y;else{var x=g-u,_=y-f;if(x*x+_*_<.5){v+=n;continue}if(o>0){for(var S=v+n,b=e[S*2],w=e[S*2+1];b===g&&w===y&&m<i;)m++,S+=n,v+=n,b=e[S*2],w=e[S*2+1],g=e[v*2],y=e[v*2+1],x=g-u,_=y-f;var M=m+1;if(l)for(;Lr(b,w)&&M<i;)M++,S+=n,b=e[S*2],w=e[S*2+1];var C=.5,T=0,A=0,D=void 0,L=void 0;if(M>=i||Lr(b,w))p=g,d=y;else{T=b-u,A=w-f;var O=g-u,I=b-g,P=y-f,V=w-y,R=void 0,U=void 0;if(s==="x"){R=Math.abs(O),U=Math.abs(I);var F=T>0?1:-1;p=g-F*R*o,d=y,D=g+F*U*o,L=y}else if(s==="y"){R=Math.abs(P),U=Math.abs(V);var K=A>0?1:-1;p=g,d=y-K*R*o,D=g,L=y+K*U*o}else R=Math.sqrt(O*O+P*P),U=Math.sqrt(I*I+V*V),C=U/(U+R),p=g-T*o*(1-C),d=y-A*o*(1-C),D=g+T*o*C,L=y+A*o*C,D=_n(D,bn(b,g)),L=_n(L,bn(w,y)),D=bn(D,_n(b,g)),L=bn(L,_n(w,y)),T=D-g,A=L-y,p=g-T*R/U,d=y-A*R/U,p=_n(p,bn(u,g)),d=_n(d,bn(f,y)),p=bn(p,_n(u,g)),d=bn(d,_n(f,y)),T=g-p,A=y-d,D=g+T*U/R,L=y+A*U/R}t.bezierCurveTo(c,h,p,d,g,y),c=D,h=L}else t.lineTo(g,y)}u=g,f=y,v+=n}return m}var LA=(function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t})(),DA=(function(t){N(e,t);function e(r){var i=t.call(this,r)||this;return i.type="ec-polyline",i}return e.prototype.getDefaultStyle=function(){return{stroke:oe.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new LA},e.prototype.buildPath=function(r,i){var a=i.points,n=0,o=a.length/2;if(i.connectNulls){for(;o>0&&Lr(a[o*2-2],a[o*2-1]);o--);for(;n<o&&Lr(a[n*2],a[n*2+1]);n++);}for(;n<o;)n+=r0(r,a,n,o,o,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},e.prototype.getPointOn=function(r,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,n=a.data,o=Kt.CMD,s,l,u=i==="x",f=[],c=0;c<n.length;){var h=n[c++],p=void 0,d=void 0,v=void 0,m=void 0,g=void 0,y=void 0,x=void 0;switch(h){case o.M:s=n[c++],l=n[c++];break;case o.L:if(p=n[c++],d=n[c++],x=u?(r-s)/(p-s):(r-l)/(d-l),x<=1&&x>=0){var _=u?(d-l)*x+l:(p-s)*x+s;return u?[r,_]:[_,r]}s=p,l=d;break;case o.C:p=n[c++],d=n[c++],v=n[c++],m=n[c++],g=n[c++],y=n[c++];var S=u?kn(s,p,v,g,r,f):kn(l,d,m,y,r,f);if(S>0)for(var b=0;b<S;b++){var w=f[b];if(w<=1&&w>=0){var _=u?tt(l,d,m,y,w):tt(s,p,v,g,w);return u?[r,_]:[_,r]}}s=g,l=y;break}}},e})(he);var JV=(function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(LA),OA=(function(t){N(e,t);function e(r){var i=t.call(this,r)||this;return i.type="ec-polygon",i}return e.prototype.getDefaultShape=function(){return new JV},e.prototype.buildPath=function(r,i){var a=i.points,n=i.stackedOnPoints,o=0,s=a.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&Lr(a[s*2-2],a[s*2-1]);s--);for(;o<s&&Lr(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=r0(r,a,o,s,s,1,i.smooth,l,i.connectNulls);r0(r,n,o+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),o+=u+1,r.closePath()}},e})(he);function i0(t,e,r,i,a){var n=t.getArea(),o=n.x,s=n.y,l=n.width,u=n.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 Oe({shape:{x:o,y:s,width:l,height:u}});if(e){var h=t.getBaseAxis(),p=h.isHorizontal(),d=h.inverse;p?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var v=j(a)?function(m){a(m,c)}:null;Ze(c,{shape:{width:l,height:u,x:o,y:s}},r,null,i,v)}return c}function a0(t,e,r){var i=t.getArea(),a=Me(i.r0,1),n=Me(i.r,1),o=new mi({shape:{cx:Me(t.cx,1),cy:Me(t.cy,1),r0:a,r:n,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=i.startAngle:o.shape.r=a,Ze(o,{shape:{endAngle:i.endAngle,r:n}},r)}return o}function IA(t,e,r,i,a){if(t){if(t.type==="polar")return a0(t,e,r);if(t.type==="cartesian2d")return i0(t,e,r,i,a)}else return null;return null}function PA(t){var e=t.coordinateSystem;if(t.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}function Po(t,e){return t.type===e}function n0(t){var e=t.dimensions;return e[0]==="lng"&&e[1]==="lat"&&!!t.getViewRect}function RA(t,e,r,i){return t&&(t.legacy||t.legacy!==!1&&!r&&!i&&e!=="tspan"&&(e==="text"||le(t,"text")))}function kA(t,e,r){var i=t,a,n,o;if(e==="text")o=i;else{o={},le(i,"text")&&(o.text=i.text),le(i,"rich")&&(o.rich=i.rich),le(i,"textFill")&&(o.fill=i.textFill),le(i,"textStroke")&&(o.stroke=i.textStroke),le(i,"fontFamily")&&(o.fontFamily=i.fontFamily),le(i,"fontSize")&&(o.fontSize=i.fontSize),le(i,"fontStyle")&&(o.fontStyle=i.fontStyle),le(i,"fontWeight")&&(o.fontWeight=i.fontWeight),n={type:"text",style:o,silent:!0},a={};var s=le(i,"textPosition");r?a.position=s?i.textPosition:"inside":s&&(a.position=i.textPosition),le(i,"textPosition")&&(a.position=i.textPosition),le(i,"textOffset")&&(a.offset=i.textOffset),le(i,"textRotation")&&(a.rotation=i.textRotation),le(i,"textDistance")&&(a.distance=i.textDistance)}return NA(o,t),E(o.rich,function(l){NA(l,l)}),{textConfig:a,textContent:n}}function NA(t,e){e&&(e.font=e.textFont||e.font,le(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),le(e,"textAlign")&&(t.align=e.textAlign),le(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),le(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),le(e,"textWidth")&&(t.width=e.textWidth),le(e,"textHeight")&&(t.height=e.textHeight),le(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),le(e,"textPadding")&&(t.padding=e.textPadding),le(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),le(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),le(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),le(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),le(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),le(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),le(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function zA(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function VA(t){for(var e=Gt(),r=Gt(),i=0;i<t.length;){var a=t[i++],n=t[i++];Lr(a,n)||(Zl(e,a),Zl(r,n))}return[e,r]}function UA(t,e){var r=VA(t),i=r[0],a=r[1],n=VA(e),o=n[0],s=n[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(a[0]-s[0]),Math.abs(i[1]-o[1]),Math.abs(a[1]-s[1]))}function BA(t){return me(t)?t:t?.5:0}function QV(t,e,r){if(r.valueDim==null)return[];for(var i=e.count(),a=Br(i*2),n=0;n<i;n++){var o=od(r,t,e,n);a[n*2]=o[0],a[n*2+1]=o[1]}return a}function Sn(t,e,r,i,a){var n=r.getBaseAxis(),o=n.dim==="x"||n.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],h=[];if(a){for(l=0;l<t.length;l+=2){var p=e||t;Lr(p[l],p[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]),i){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,v=[];u[o]=v[o]=d,u[1-o]=f[1-o],v[1-o]=c[1-o],s.push(u[0],u[1]),s.push(v[0],v[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 eU(t,e){var r=[],i=t.length,a,n;function o(f,c,h){var p=f.coord,d=(h-p)/(c.coord-p),v=J_(d,[f.color,c.color]);return{coord:h,color:v}}for(var s=0;s<i;s++){var l=t[s],u=l.coord;if(u<0)a=l;else if(u>e){n?r.push(o(n,l,e)):a&&r.push(o(a,l,0),o(a,l,e));break}else a&&(r.push(o(a,l,0)),a=null),r.push(l),n=l}return r}function tU(t,e,r){var i=t.getVisual("visualMeta");if(!(!i||!i.length||!t.count())&&e.type==="cartesian2d"){for(var a,n,o=i.length-1;o>=0;o--){var s=t.getDimensionInfo(i[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){n=i[o];break}}if(n){var l=e.getAxis(a),u=B(n.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),f=u.length,c=n.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var h=eU(u,a==="x"?r.getWidth():r.getHeight()),p=h.length;if(!p&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,v=h[0].coord-d,m=h[p-1].coord+d,g=m-v;if(g<.001)return"transparent";E(h,function(x){x.offset=(x.coord-v)/g}),h.push({offset:p?h[p-1].offset:.5,color:c[1]||"transparent"}),h.unshift({offset:p?h[0].offset:.5,color:c[0]||"transparent"});var y=new Os(0,0,0,0,h,!0);return y[a]=v,y[a+"2"]=m,y}}}function rU(t,e,r){var i=t.get("showAllSymbol"),a=i==="auto";if(!(i&&!a)){var n=r.getAxesByScale("ordinal")[0];if(n&&!(a&&iU(n,e))){var o=e.mapDimension(n.dim),s={};return E(n.getViewLabels(),function(l){l.tick.offInterval||(s[Da(n.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function iU(t,e){var r=t.getExtent(),i=Math.abs(r[1]-r[0])/t.scale.count();isNaN(i)&&(i=0);for(var a=e.count(),n=Math.max(1,Math.round(a/5)),o=0;o<a;o+=n)if(Wu.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>i)return!1;return!0}function aU(t){for(var e=t.length/2;e>0&&Lr(t[e*2-2],t[e*2-1]);e--);return e-1}function FA(t,e){return[t[e*2],t[e*2+1]]}function nU(t,e,r){for(var i=t.length/2,a=r==="x"?0:1,n,o,s=0,l=-1,u=0;u<i;u++)if(o=t[u*2+a],!Lr(o,t[u*2+1-a])){if(u===0){n=o;continue}if(n<=e&&o>=e||n>=e&&o<=e){l=u;break}s=u,n=o}return{range:[s,l],t:(e-n)/(o-n)}}function HA(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<lr.length;e++)if(t.get([lr[e],"endLabel","show"]))return!0;return!1}function o0(t,e,r,i){if(Po(e,"cartesian2d")){var a=i.getModel("endLabel"),n=a.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=HA(i)?function(p,d){t._endLabelOnDuring(p,d,o,s,n,a,e)}:null,u=e.getBaseAxis().isHorizontal(),f=i0(e,r,i,function(){var p=t._endLabel;p&&r&&s.originalX!=null&&p.attr({x:s.originalX,y:s.originalY})},l);if(!i.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 a0(e,r,i)}function oU(t,e){var r=e.getBaseAxis(),i=r.isHorizontal(),a=r.inverse,n=i?a?"right":"left":"center",o=i?"middle":a?"top":"bottom";return{normal:{align:t.get("align")||n,verticalAlign:t.get("verticalAlign")||o}}}var sU=(function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new we,i=new ad;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=r,this._changePolyState=se(this._changePolyState,this)},e.prototype.render=function(r,i,a){var n=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),f=s.getLayout("points")||[],c=n.type==="polar",h=this._coordSys,p=this._symbolDraw,d=this._polyline,v=this._polygon,m=this._lineGroup,g=!i.ssr&&r.get("animation"),y=!u.isEmpty(),x=u.get("origin"),_=nd(n,s,x),S=y&&QV(n,s,_),b=r.get("showSymbol"),w=r.get("connectNulls"),M=b&&!c&&rU(r,s,n),C=this._data;C&&C.eachItemGraphicEl(function(Le,We){Le.__temp&&(o.remove(Le),C.setItemGraphicEl(We,null))}),b||p.remove(),o.add(m);var T=c?!1:r.get("step"),A;n&&n.getArea&&r.get("clip",!0)&&(A=n.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 D=tU(s,n,a)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&h.type===n.type&&T===this._step))b&&p.updateData(s,{isIgnore:M,clipShape:A,disableAnimation:!0,getSymbolPoint:function(Le){return[f[Le*2],f[Le*2+1]]}}),g&&this._initSymbolLabelAnimation(s,n,A),T&&(S&&(S=Sn(S,f,n,T,w)),f=Sn(f,null,n,T,w)),d=this._newPolyline(f),y?v=this._newPolygon(f,S):v&&(m.remove(v),v=this._polygon=null),c||this._initOrUpdateEndLabel(r,n,_i(D)),m.setClipPath(o0(this,n,!0,r));else{y&&!v?v=this._newPolygon(f,S):v&&!y&&(m.remove(v),v=this._polygon=null),c||this._initOrUpdateEndLabel(r,n,_i(D));var L=m.getClipPath();if(L){var O=o0(this,n,!1,r);Ze(L,{shape:O.shape},r)}else m.setClipPath(o0(this,n,!0,r));b&&p.updateData(s,{isIgnore:M,clipShape:A,disableAnimation:!0,getSymbolPoint:function(Le){return[f[Le*2],f[Le*2+1]]}}),(!zA(this._stackedOnPoints,S)||!zA(this._points,f))&&(g?this._doUpdateAnimation(s,S,n,a,T,x,w):(T&&(S&&(S=Sn(S,f,n,T,w)),f=Sn(f,null,n,T,w)),d.setShape({points:f}),v&&v.setShape({points:f,stackedOnPoints:S})))}var I=r.getModel("emphasis"),P=I.get("focus"),V=I.get("blurScope"),R=I.get("disabled");if(d.useStyle(ue(l.getLineStyle(),{fill:"none",stroke:D,lineJoin:"bevel"})),Gi(d,r,"lineStyle"),d.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var U=d.getState("emphasis").style;U.lineWidth=+d.style.lineWidth+1}xe(d).seriesIndex=r.seriesIndex,kr(d,P,V,R);var F=BA(r.get("smooth")),K=r.get("smoothMonotone");if(d.setShape({smooth:F,smoothMonotone:K,connectNulls:w}),v){var X=s.getCalculationInfo("stackedOnSeries"),re=0;v.useStyle(ue(u.getAreaStyle(),{fill:D,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),X&&(re=BA(X.get("smooth"))),v.setShape({smooth:F,stackedOnSmooth:re,smoothMonotone:K,connectNulls:w}),Gi(v,r,"areaStyle"),xe(v).seriesIndex=r.seriesIndex,kr(v,P,V,R)}var Z=this._changePolyState;s.eachItemGraphicEl(function(Le){Le&&(Le.onHoverStateChange=Z)}),this._polyline.onHoverStateChange=Z,this._data=s,this._coordSys=n,this._stackedOnPoints=S,this._points=f,this._step=T,this._valueOrigin=x;var de=r.get("triggerEvent"),ie=r.get("triggerLineEvent"),Ue=ie===!0||de===!0||de==="line",Ke=ie===!0||de===!0||de==="area";this.packEventData(r,d,Ue),v&&this.packEventData(r,v,Ke)},e.prototype.packEventData=function(r,i,a){xe(i).eventData=a?{componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line",selfType:i===this._polygon?"area":"line"}:null},e.prototype.highlight=function(r,i,a,n){var o=r.getData(),s=Xr(o,n);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(Lr(f,c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var h=r.get("zlevel")||0,p=r.get("z")||0;u=new Wu(o,s),u.x=f,u.y=c,u.setZ(h,p);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=p,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else mt.prototype.highlight.call(this,r,i,a,n)},e.prototype.downplay=function(r,i,a,n){var o=r.getData(),s=Xr(o,n);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 mt.prototype.downplay.call(this,r,i,a,n)},e.prototype._changePolyState=function(r){var i=this._polygon;Vm(this._polyline,r),i&&Vm(i,r)},e.prototype._newPolyline=function(r){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new DA({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},e.prototype._newPolygon=function(r,i){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new OA({shape:{points:r,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(r,i,a){var n,o,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(n=s.isHorizontal(),o=!1):i.type==="polar"&&(n=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");j(f)&&(f=f(null));var c=u.get("animationDelay")||0,h=j(c)?c(null):c;r.eachItemGraphicEl(function(p,d){var v=p;if(v){var m=[p.x,p.y],g=void 0,y=void 0,x=void 0;if(a)if(o){var _=a,S=i.pointToCoord(m);n?(g=_.startAngle,y=_.endAngle,x=-S[1]/180*Math.PI):(g=_.r0,y=_.r,x=S[0])}else{var b=a;n?(g=b.x,y=b.x+b.width,x=p.x):(g=b.y+b.height,y=b.y,x=p.y)}var w=y===g?0:(x-g)/(y-g);l&&(w=1-w);var M=j(c)?c(d):f*w+h,C=v.getSymbolPath(),T=C.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:M}),T&&T.animateFrom({style:{opacity:0}},{duration:300,delay:M}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,i,a){var n=r.getModel("endLabel");if(HA(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 Pe({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=aU(l);f>=0&&(ei(s,ur(r,"endLabel"),{inheritColor:a,labelFetcher:r,labelDataIndex:f,defaultText:function(c,h,p){return p!=null?rd(o,p):cl(o,c)},enableTextSetter:!0},oU(n,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,i,a,n,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&n.originalX==null&&(n.originalX=u.x,n.originalY=u.y);var c=a.getLayout("points"),h=a.hostModel,p=h.get("connectNulls"),d=s.get("precision"),v=s.get("distance")||0,m=l.getBaseAxis(),g=m.isHorizontal(),y=m.inverse,x=i.shape,_=y?g?x.x:x.y+x.height:g?x.x+x.width:x.y,S=(g?v:0)*(y?-1:1),b=(g?0:-v)*(y?-1:1),w=g?"x":"y",M=nU(c,_,w),C=M.range,T=C[1]-C[0],A=void 0;if(T>=1){if(T>1&&!p){var D=FA(c,C[0]);u.attr({x:D[0]+S,y:D[1]+b}),o&&(A=h.getRawValue(C[0]))}else{var D=f.getPointOn(_,w);D&&u.attr({x:D[0]+S,y:D[1]+b});var L=h.getRawValue(C[0]),O=h.getRawValue(C[1]);o&&(A=Ac(a,d,L,O,M.t))}n.lastFrameIndex=C[0]}else{var I=r===1||n.lastFrameIndex>0?C[0]:0,D=FA(c,I);o&&(A=h.getRawValue(I)),u.attr({x:D[0]+S,y:D[1]+b})}if(o){var P=Ca(u);typeof P.setLabelText=="function"&&P.setLabelText(A)}}},e.prototype._doUpdateAnimation=function(r,i,a,n,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,h=t0(this._data,r,this._stackedOnPoints,i,this._coordSys,a,this._valueOrigin,s),p=h.current,d=h.stackedOnCurrent,v=h.next,m=h.stackedOnNext;if(o&&(d=Sn(h.stackedOnCurrent,h.current,a,o,l),p=Sn(h.current,null,a,o,l),m=Sn(h.stackedOnNext,h.next,a,o,l),v=Sn(h.next,null,a,o,l)),UA(p,v)>3e3||f&&UA(d,m)>3e3){u.stopAnimation(),u.setShape({points:v}),f&&(f.stopAnimation(),f.setShape({points:v,stackedOnPoints:m}));return}u.shape.__points=h.current,u.shape.points=p;var g={shape:{points:v}};h.current!==p&&(g.shape.__points=h.next),u.stopAnimation(),Ve(u,g,c),f&&(f.setShape({points:p,stackedOnPoints:d}),f.stopAnimation(),Ve(f,{shape:{stackedOnPoints:m}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],x=h.status,_=0;_<x.length;_++){var S=x[_].cmd;if(S==="="){var b=r.getItemGraphicEl(x[_].idx1);b&&y.push({el:b,ptIdx:_})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,M=0;M<y.length;M++){var C=y[M].el,T=y[M].ptIdx*2;C.x=w[T],C.y=w[T+1],C.markRedraw()}})},e.prototype.remove=function(r){var i=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(n,o){n.__temp&&(i.remove(n),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(mt),GA=sU;function No(t,e){return{seriesType:t,plan:Co(),reset:function(r){var i=r.getData(),a=r.coordinateSystem,n=r.pipelineContext,o=e||n.large;if(a){var s=B(a.dimensions,function(p){return i.mapDimension(p)}).slice(0,2),l=s.length,u=i.getCalculationInfo("stackResultDimension");Ma(i,s[0])&&(s[0]=u),Ma(i,s[1])&&(s[1]=u);var f=i.getStore(),c=i.getDimensionIndex(s[0]),h=i.getDimensionIndex(s[1]);return l&&{progress:function(p,d){for(var v=p.end-p.start,m=o&&Br(v*l),g=[],y=[],x=p.start,_=0;x<p.end;x++){var S=void 0;if(l===1){var b=f.get(c,x);S=a.dataToPoint(b,null,y)}else g[0]=f.get(c,x),g[1]=f.get(h,x),S=a.dataToPoint(g,null,y);o?(m[_++]=S[0],m[_++]=S[1]):d.setItemLayout(x,S.slice())}o&&(d.setLayout("points",m),d.setLayout("pointsRange",{start:p.start,end:p.end}))}}}}}}var lU={average:function(t){for(var e=0,r=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],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]}},uU=function(t){return Math.round(t.length/2)};function $u(t){return{seriesType:t,reset:function(e,r,i){var a=e.getData(),n=e.get("sampling"),o=e.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&n){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=i.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(c||1),p=Math.round(s/h);if(isFinite(p)&&p>1){n==="lttb"?e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/p)):n==="minmax"&&e.setData(a.minmaxDownSample(a.mapDimension(u.dim),1/p));var d=void 0;G(n)?d=lU[n]:j(n)&&(d=n),d&&e.setData(a.downSample(a.mapDimension(u.dim),1/p,d,uU))}}}}}function s0(t){t.registerChartView(GA),t.registerSeriesModel(wA),t.registerLayout(No("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),i=e.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",i)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,$u("line"))}var fU=(function(t){N(e,t);function e(r,i,a,n,o){var s=t.call(this,r,i,a)||this;return s.index=0,s.type=n||"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 i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),r&&i[0]>i[1]&&i.reverse(),i},e.prototype.pointToData=function(r,i){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),i)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e})(Wh),KA=fU;var cU=null;function Ro(){return cU}var YA="expandAxisBreak";var Cn=Math.PI,pU=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],hU=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],wn=ne(),XA=ne(),u0=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,i=e.componentIndex,a=this.recordMap,n=a[r]||(a[r]=[]);return n[i]||(n[i]={ready:{}})},t})();function dU(t,e,r,i){var a=r.axis,n=e.ensureRecord(r),o=[],s,l=p0(t.axisName)&&xn(t.nameLocation);E(i,function(d){var v=Ti(d);if(!(!v||v.label.ignore)){o.push(v);var m=n.transGroup;l&&(m.transform?Kr(Xu,m.transform):la(Xu),v.transform&&Ka(Xu,Xu,v.transform),ce.copy(ld,v.localRect),ld.applyTransform(Xu),s?s.union(ld):ce.copy(s=new ce(0,0,0,0),ld))}});var u=Math.abs(n.dirVec.x)>.1?"x":"y",f=n.transGroup[u];if(o.sort(function(d,v){return Math.abs(d.label[u]-f)-Math.abs(v.label[u]-f)}),l&&s){var c=a.getExtent(),h=Math.min(c[0],c[1]),p=Math.max(c[0],c[1])-h;s.union(new ce(h,0,p,1))}n.stOccupiedRect=s,n.labelInfoList=o}var Xu=nr(),ld=new ce(0,0,0,0),f0=function(t,e,r,i,a,n){if(xn(t.nameLocation)){var o=n.stOccupiedRect;o&&qA(xA({},o,n.transGroup.transform),i,a)}else c0(n.labelInfoList,n.dirVec,i,a)};function qA(t,e,r){var i=new ge;Qh(t,e,i,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&_A(e,i)}function c0(t,e,r,i){for(var a=ge.dot(i,e)>=0,n=0,o=t.length;n<o;n++){var s=t[a?n:o-1-n];s.label.ignore||qA(s,r,i)}}var ko=(function(){function t(e,r,i,a){this.group=new we,this._axisModel=e,this._api=r,this._local={},this._shared=a||new u0(f0),this._resetCfgDetermined(i)}return t.prototype.updateCfg=function(e){if(0)var r;var i=this._cfg.raw;i.position=e.position,i.labelOffset=e.labelOffset,this._resetCfgDetermined(i)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,i=r.getDefaultOption?r.getDefaultOption():{},a=q(e.axisName,r.get("name")),n=r.get("nameMoveOverlap");(n==null||n==="auto")&&(n=q(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:q(e.nameDirection,1),tickDirection:q(e.tickDirection,1),labelDirection:q(e.labelDirection,1),labelOffset:q(e.labelOffset,0),silent:q(e.silent,!0),axisName:a,nameLocation:Or(r.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:p0(a)&&n,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new we({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 ge(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var i=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),E(vU,function(a){e[a]&&mU[a](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,r||{})}),this},t.innerTextLayout=function(e,r,i){var a=Jv(r-e),n,o;return Yl(a)?(o=i>0?"top":"bottom",n="center"):Yl(a-Cn)?(o=i>0?"bottom":"top",n="center"):(o="middle",a>0&&a<Cn?n=i>0?"right":"left":n=i>0?"left":"right"),{rotation:a,textAlign:n,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})(),vU=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],mU={axisLine:function(t,e,r,i,a,n,o){if(0)var s;var l=i.get(["axisLine","show"]);if(l==="auto"&&(l=!0,t.raw.axisLineAutoShow!=null&&(l=!!t.raw.axisLineAutoShow)),!!l){var u=i.axis.getExtent(),f=n.transform,c=[u[0],0],h=[u[1],0],p=c[0]>h[0];f&&(Ft(c,c,f),Ft(h,h,f));var d=k({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),v={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:d};if(i.get(["axisLine","breakLine"])&&po(i.axis.scale))Ro().buildAxisBreakLine(i,a,n,v);else{var m=new yi(k({shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]}},v));lo(m.shape,m.style.lineWidth),m.anid="line",a.add(m)}var g=i.get(["axisLine","symbol"]);if(g!=null){var y=i.get(["axisLine","symbolSize"]);G(g)&&(g=[g,g]),(G(y)||me(y))&&(y=[y,y]);var x=oh(i.get(["axisLine","symbolOffset"])||0,y),_=y[0],S=y[1];E([{rotate:t.rotation+Math.PI/2,offset:x[0],r:0},{rotate:t.rotation-Math.PI/2,offset:x[1],r:Math.sqrt((c[0]-h[0])*(c[0]-h[0])+(c[1]-h[1])*(c[1]-h[1]))}],function(b,w){if(g[w]!=="none"&&g[w]!=null){var M=Nt(g[w],-_/2,-S/2,_,S,d.stroke,!0),C=b.r+b.offset,T=p?h:c;M.attr({rotation:b.rotate,x:T[0]+C*Math.cos(t.rotation),y:T[1]-C*Math.sin(t.rotation),silent:!0,z2:11}),a.add(M)}})}}},axisTickLabelEstimate:function(t,e,r,i,a,n,o,s){if(0)var l;var u=$A(e,a,s);u&&WA(t,e,r,i,a,n,o,Ar.estimate)},axisTickLabelDetermine:function(t,e,r,i,a,n,o,s){if(0)var l;var u=$A(e,a,s);u&&WA(t,e,r,i,a,n,o,Ar.determine);var f=_U(t,a,n,i);xU(t,e.labelLayoutList,f),bU(t,a,n,i,t.tickDirection)},axisName:function(t,e,r,i,a,n,o,s){var l=r.ensureRecord(i);if(0)var u;e.nameEl&&(a.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var f=t.axisName;if(p0(f)){var c=t.nameLocation,h=t.nameDirection,p=i.getModel("nameTextStyle"),d=i.get("nameGap")||0,v=i.axis.getExtent(),m=i.axis.inverse?-1:1,g=new ge(0,0),y=new ge(0,0);c==="start"?(g.x=v[0]-m*d,y.x=-m):c==="end"?(g.x=v[1]+m*d,y.x=m):(g.x=(v[0]+v[1])/2,g.y=t.labelOffset+h*d,y.y=h);var x=nr();y.transform(os(x,x,t.rotation));var _=i.get("nameRotate");_!=null&&(_=_*Cn/180);var S,b;xn(c)?S=ko.innerTextLayout(t.rotation,_??t.rotation,h):(S=gU(t.rotation,c,_||0,v),b=t.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var w=p.getFont(),M=i.get("nameTruncate",!0)||{},C=M.ellipsis,T=Ua(t.raw.nameTruncateMaxWidth,M.maxWidth,b),A=s.nameMarginLevel||0,D=new Pe({x:g.x,y:g.y,rotation:S.rotation,silent:ko.isLabelSilent(i),style:wr(p,{text:f,font:w,overflow:"truncate",width:T,ellipsis:C,fill:p.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:p.get("align")||S.textAlign,verticalAlign:p.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(Ns({el:D,componentModel:i,itemName:f}),D.__fullText=f,D.anid="name",i.get("triggerEvent")){var L=ko.makeAxisEventDataBase(i);L.targetType="axisName",L.name=f,xe(D).eventData=L}n.add(D),D.updateTransform(),e.nameEl=D;var O=l.nameLayout=Ti({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:xn(c)?pU[A]:hU[A]});if(l.nameLocation=c,a.add(D),D.decomposeTransform(),t.shouldNameMoveOverlap&&O){var I=r.ensureRecord(i);r.resolveAxisNameOverlap(t,r,i,O,y,I)}}}};function WA(t,e,r,i,a,n,o,s){jA(e)||SU(t,e,a,s,i,o);var l=e.labelLayoutList;CU(t,i,l,n),EU(i,t.rotation,l);var u=t.optionHideOverlap;yU(i,l,u),u&&Jh(ke(l,function(f){return f&&!f.label.ignore})),dU(t,r,i,l)}function gU(t,e,r,i){var a=Jv(r-t),n,o,s=i[0]>i[1],l=e==="start"&&!s||e!=="start"&&s;return Yl(a-Cn/2)?(o=l?"bottom":"top",n="center"):Yl(a-Cn*1.5)?(o=l?"top":"bottom",n="center"):(o="middle",a<Cn*1.5&&a>Cn/2?n=l?"left":"right":n=l?"right":"left"),{rotation:a,textAlign:n,textVerticalAlign:o}}function yU(t,e,r){var i=t.axis,a=t.get(["axisLabel","customValues"]);if(PE(i))return;function n(u,f,c){var h=Ti(e[f]),p=Ti(e[c]),d=i.scale;if(!(!h||!p)){if(u==null){if(!r&&a)return;var v=wn(h.label).labelInfo.tick;if(ol(d)&&v.notNice||kt(d)&&v.offInterval){pl(h.label);return}}if(u===!1||h.suggestIgnore){pl(h.label);return}if(p.suggestIgnore){pl(p.label);return}var m=.1;if(!r){var g=[0,0,0,0];h=Ku({marginForce:g},h),p=Ku({marginForce:g},p)}Qh(h,p,null,{touchThreshold:m})&&pl(u?p.label:h.label)}}var o=t.get(["axisLabel","showMinLabel"]),s=t.get(["axisLabel","showMaxLabel"]),l=e.length;n(o,0,1),n(s,l-1,l-2)}function xU(t,e,r){t.showMinorTicks||E(e,function(i){if(i&&i.label.ignore)for(var a=0;a<r.length;a++){var n=r[a],o=XA(n),s=wn(i.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){pl(n);return}}})}function pl(t){t&&(t.ignore=!0)}function ZA(t,e,r,i,a){for(var n=[],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&&(Ft(o,o,e),Ft(s,s,e));var f=new yi({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});lo(f.shape,f.style.lineWidth),f.anid=a+"_"+t[l].tickValue,n.push(f);var c=XA(f);c.onBand=!!t[l].onBand,c.tickValue=t[l].tickValue}return n}function _U(t,e,r,i){var a=i.axis,n=i.getModel("axisTick"),o=n.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||a.scale.isBlank())return[];for(var s=n.getModel("lineStyle"),l=t.tickDirection*n.get("length"),u=a.getTicksCoords(),f=ZA(u,r.transform,l,ue(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}function bU(t,e,r,i,a){var n=i.axis,o=i.getModel("minorTick");if(!(!t.showMinorTicks||n.scale.isBlank())){var s=n.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=a*o.get("length"),f=ue(l.getLineStyle(),ue(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var h=ZA(s[c],r.transform,u,f,"minorticks_"+c),p=0;p<h.length;p++)e.add(h[p])}}function $A(t,e,r){if(jA(t)){var i=t.axisLabelsCreationContext,a=i.out.noPxChangeTryDetermine;if(r.noPxChange){for(var n=!0,o=0;o<a.length;o++)n=n&&a[o]();if(n)return!1}a.length&&(e.remove(t.labelGroup),l0(t,null,null,null))}return!0}function SU(t,e,r,i,a,n){var o=a.axis,s=Ua(t.raw.axisLabelShow,a.get(["axisLabel","show"])),l=new we;r.add(l);var u=fl(i);if(!s||o.scale.isBlank()){l0(e,[],l,u);return}var f=a.getModel("axisLabel"),c=o.getViewLabels(u),h=(Ua(t.raw.labelRotate,f.get("rotate"))||0)*Cn/180,p=ko.innerTextLayout(t.rotation,h,t.labelDirection),d=a.getCategories&&a.getCategories(!0),v=[],m=a.get("triggerEvent"),g=1/0,y=-1/0;E(c,function(_,S){var b,w=_.tick,M=_.formattedLabel,C=_.rawLabel,T=f,A=Da(o.scale,w);if(d&&d[A]){var D=d[A];$(D)&&D.textStyle&&(T=new qe(D.textStyle,f,a.ecModel))}var L=T.getTextColor()||a.get(["axisLine","lineStyle","color"]),O=T.getShallow("align",!0)||p.textAlign,I=q(T.getShallow("alignMinLabel",!0),O),P=q(T.getShallow("alignMaxLabel",!0),O),V=T.getShallow("verticalAlign",!0)||T.getShallow("baseline",!0)||p.textVerticalAlign,R=q(T.getShallow("verticalAlignMinLabel",!0),V),U=q(T.getShallow("verticalAlignMaxLabel",!0),V),F=10+(((b=w.time)===null||b===void 0?void 0:b.level)||0);g=Math.min(g,F),y=Math.max(y,F);var K=new Pe({x:0,y:0,rotation:0,silent:ko.isLabelSilent(a),z2:F,style:wr(T,{text:M,align:S===0?I:S===c.length-1?P:O,verticalAlign:S===0?R:S===c.length-1?U:V,fill:j(L)?L(o.type==="category"?C:o.type==="value"?A+"":A,S):L})});K.anid="label_"+A;var X=wn(K);if(X.labelInfo=_,X.layoutRotation=p.rotation,Ns({el:K,componentModel:a,itemName:M,formatterParamsExtra:{isTruncated:function(){return K.isTruncated},value:C,tickIndex:S}}),m){var re=ko.makeAxisEventDataBase(a);re.targetType="axisLabel",re.value=C,re.tickIndex=S;var Z=_.tick.break;if(Z){var de=Z.parsedBreak;re.break={start:de.vmin,end:de.vmax}}o.type==="category"&&(re.dataIndex=A),xe(K).eventData=re,Z&&TU(a,n,K,Z)}v.push(K),l.add(K)});var x=B(v,function(_){return{label:_,priority:wn(_).labelInfo.tick.break?_.z2+(y-g+1):_.z2,defaultAttr:{ignore:_.ignore}}});l0(e,x,l,u)}function jA(t){return!!t.labelLayoutList}function l0(t,e,r,i){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=i}function CU(t,e,r,i){var a=e.get(["axisLabel","margin"]);E(r,function(n,o){var s=Ti(n);if(s){var l=s.label,u=wn(l);s.suggestIgnore=l.ignore,l.ignore=!1,Za(Oa,wU);var f=e.axis;Oa.x=f.dataToCoord(Da(f.scale,u.labelInfo.tick)),Oa.y=t.labelOffset+t.labelDirection*a,Oa.rotation=u.layoutRotation,i.add(Oa),Oa.updateTransform(),i.remove(Oa),Oa.decomposeTransform(),Za(l,Oa),l.markRedraw(),Gu(s,!0),Ti(s)}})}var Oa=new Oe,wU=new Oe;function p0(t){return!!t}function TU(t,e,r,i){r.on("click",function(a){var n={type:YA,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};n[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(n)})}function EU(t,e,r){var i=st();if(i){var a=i.retrieveAxisBreakPairs(r,function(o){return o&&wn(o.label).labelInfo.tick.break},!0),n=t.get(["breakLabelLayout","moveOverlap"],!0);(n===!0||n==="auto")&&E(a,function(o){Ro().adjustBreakLabelPair(t.axis.inverse,e,[Ti(r[o[0]]),Ti(r[o[1]])])})}}var hl=ko;function qu(t,e,r){r=r||{};var i=e.axis,a={},n=i.getAxesOnZeroOf()[0],o=i.position,s=n?"onZero":o,l=i.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(n){var p=n.toGlobalCoord(n.dataToCoord(0));h[f.onZero]=Math.max(Math.min(p,h[1]),h[0])}a.position=[l==="y"?h[f[s]]:u[0],l==="x"?h[f[s]]:u[3]],a.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=d[o],a.labelOffset=n?h[f[o]]-h[f.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Ua(r.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var v=e.get(["axisLabel","rotate"]);return a.labelRotate=s==="top"?-v:v,a.z2=1,a}function JA(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function QA(t){var e={xAxisModel:null,yAxisModel:null};return E(e,function(r,i){var a=i.replace(/Model$/,""),n=t.getReferringComponents(a,Ht).models[0];e[i]=n}),e}function eM(t,e,r,i,a,n){for(var o=qu(t,r),s=!1,l=!1,u=0;u<e.length;u++)wh(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=n,new hl(r,i,o,a)}function tM(t,e,r){var i=qu(e,r);if(0)var a;t.updateCfg(i)}function rM(){KE("liPosMinGap",MU)}function MU(t,e,r){var i=ee(),a=r.serUids,n=r.liPosMinGap,o,s=e.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,c=Kp(f);function h(x){Bh(t,e.sers,function(_){var S=_.getRawData(),b=S.getDimensionIndex(S.mapDimension(s.dim));b>=0&&x(b,_,S.getStore())})}var p=0;if(h(function(x,_,S){i.set(_.uid,1),(!a||!a.hasKey(_.uid))&&(o=!0),p+=S.count()}),(!a||a.keys().length!==i.keys().length)&&(o=!0),!o&&n!=null){e.liPosMinGap=n;return}sd(zo,p);var d=0;h(function(x,_,S){for(var b=0,w=S.count();b<w;++b){var M=S.get(x,b);isFinite(M)&&(!f||Yp(c,M))&&(u&&(M=l.transformIn(M,null)),zo.arr[d++]=M)}});var v=zo.typed?zo.arr.subarray(0,d):(zo.arr.length=d,zo.arr);zo.typed?v.sort():Pi(v);for(var m=1/0,g=1;g<d;++g){var y=v[g]-v[g-1];y>0&&y<m&&(m=y)}r.liPosMinGap=e.liPosMinGap=gt(m)?m:d>0?Uh:kE,r.serUids=i}var zo=sd({ctor:MA},50);function iM(t){return function(e,r){var i=Mr(e,{fromStat:{key:t}});if(gt(i.w2))return[-i.w2/2,i.w2/2]}}function Zu(t,e){return t+Vh+e}function aM(t){return rM(),{liPosMinGap:!kt(t.scale)}}var Ia="bar";function nM(t,e,r,i){WE(t,{key:e,seriesType:r,coordSysType:i,getMetrics:aM})}function oM(t){var e=t.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var h0={left:0,right:0,top:0,bottom:0},ju=["25%","25%"],ii="cartesian2d",LU=(function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,i){var a=hn(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),a&&r.outerBounds&&Vr(r.outerBounds,a)},e.prototype.mergeOption=function(r,i){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&Vr(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:h0,outerBoundsContain:"all",outerBoundsClampWidth:ju[0],outerBoundsClampHeight:ju[1],backgroundColor:oe.color.transparent,borderWidth:1,borderColor:oe.color.neutral30},e})(Ie),sM=LU;var DU=Mc(),OU="__ec_stack_";function lM(t){return t.get("stack")||OU+t.seriesIndex}function IU(t,e){var r=PU(t,e);return r.columnMap=NU(r),r}function PU(t,e){var r=Zu(e,ii),i=[],a=Mr(t,{fromStat:{key:r},min:1});return Hy(t,r,function(n){i.push({barWidth:Ee(n.get("barWidth"),a.w),barMaxWidth:Ee(n.get("barMaxWidth"),a.w),barMinWidth:Ee(n.get("barMinWidth")||(cM(n)?.5:1),a.w),barGap:n.get("barGap"),barCategoryGap:n.get("barCategoryGap"),defaultBarGap:n.get("defaultBarGap"),stackId:lM(n)})}),{bandWidthResult:a,seriesInfo:i}}function NU(t){var e=t.bandWidthResult.w,r=e,i=0,a,n,o=[],s={};E(t.seriesInfo,function(v,m){m||(n=v.defaultBarGap||0);var g=v.stackId;le(s,g)||i++;var y=s[g];y||(y=s[g]={width:0,maxWidth:0},o.push(g));var x=v.barWidth;x&&!y.width&&(y.width=x,x=nt(r,x),r-=x);var _=v.barMaxWidth;_&&(y.maxWidth=_);var S=v.barMinWidth;S&&(y.minWidth=S);var b=v.barGap;b!=null&&(n=b);var w=v.barCategoryGap;w!=null&&(a=w)}),a==null&&(a=Ce(35-o.length*4,15)+"%");var l=Ee(a,e),u=Ee(n,1),f=(r-l)/(i+(i-1)*u);f=Ce(f,0),E(o,function(v){var m=s[v],g=m.maxWidth,y=m.minWidth;if(m.width){var x=m.width;g&&(x=nt(x,g)),y&&(x=Ce(x,y)),m.width=x,r-=x+u*x,i--}else{var x=f;g&&g<x&&(x=nt(g,r)),y&&y>x&&(x=y),x!==f&&(m.width=x,r-=x+u*x,i--)}}),f=(r-l)/(i+(i-1)*u),f=Ce(f,0);var c=0,h;E(o,function(v){var m=s[v];m.width||(m.width=f),h=m,c+=m.width*(1+u)}),h&&(c-=h.width*u);var p={},d=-c/2;return E(o,function(v){var m=s[v];p[v]=p[v]||{bandWidth:e,offset:d,width:m.width},d+=m.width*(1+u)}),p}function uM(t){return{seriesType:t,overallReset:function(e){var r=Zu(t,ii);GE(e,r,function(i){var a=IU(i,t);Hy(i,r,function(n){var o=a.columnMap[lM(n)];n.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function fM(t){return{seriesType:t,plan:Co(),reset:function(e){if(JA(e)){var r=e.getData(),i=e.coordinateSystem,a=i.getBaseAxis(),n=i.getOtherAxis(a),o=r.getDimensionIndex(r.mapDimension(n.dim)),s=r.getDimensionIndex(r.mapDimension(a.dim)),l=e.get("showBackground",!0),u=r.mapDimension(n.dim),f=r.getCalculationInfo("stackResultDimension"),c=Ma(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),h=n.isHorizontal(),p=n.toGlobalCoord(n.dataToCoord(oM(n))),d=cM(e),v=e.get("barMinHeight")||0,m=f&&r.getDimensionIndex(f),g=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(x,_){for(var S=x.count,b=d&&Br(S*3),w=d&&l&&Br(S*3),M=d&&Br(S),C=i.master.getRect(),T=h?C.width:C.height,A,D=_.getStore(),L=0;(A=x.next())!=null;){var O=D.get(c?m:o,A),I=D.get(s,A),P=p,V=void 0;c&&(V=+O-D.get(o,A));var R=void 0,U=void 0,F=void 0,K=void 0;if(h){var X=i.dataToPoint([O,I]);c&&(P=i.dataToPoint([V,I])[0]),R=P,U=X[1]+y,F=X[0]-P,K=g,Qe(F)<v&&(F=(F<0?-1:1)*v)}else{var X=i.dataToPoint([I,O]);c&&(P=i.dataToPoint([I,V])[1]),R=X[0]+y,U=P,F=g,K=X[1]-P,Qe(K)<v&&(K=(K<=0?-1:1)*v)}d?(b[L]=R,b[L+1]=U,b[L+2]=h?F:K,w&&(w[L]=h?C.x:R,w[L+1]=h?U:C.y,w[L+2]=T),M[A]=A):_.setItemLayout(A,{x:R,y:U,width:F,height:K}),L+=3}d&&_.setLayout({largePoints:b,largeDataIndices:M,largeBackgroundPoints:w,valueAxisHorizontal:h})}}}}}}function cM(t){return t.pipelineContext&&t.pipelineContext.large}function RU(t){return iM(Zu(t,ii))}function pM(t){DU(t,function(){function e(r){var i=Zu(r,ii);nM(t,i,r,ii),QE(i,RU(r))}e("bar"),e("pictorialBar")})}var hM=(function(t){N(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,i){return Zi(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,i,a){var n=this.coordinateSystem;if(n&&n.clampData){var o=n.clampData(r),s=n.dataToPoint(o);if(a)E(n.getAxes(),function(h,p){if(h.type==="category"&&i!=null){var d=h.getTicksCoords(),v=h.getTickModel().get("alignWithLabel"),m=o[p],g=i[p]==="x1"||i[p]==="y1";if(g&&!v&&(m+=1),d.length<2)return;if(d.length===2){s[p]=h.toGlobalCoord(h.getExtent()[g?1:0]);return}for(var y=void 0,x=void 0,_=1,S=0;S<d.length;S++){var b=d[S].coord,w=S===d.length-1?d[S-1].tickValue+_:d[S].tickValue;if(w===m){x=b;break}else if(w<m)y=b;else if(y!=null&&w>m){x=(b+y)/2;break}S===1&&(_=w-d[0].tickValue)}x==null&&(y?y&&(x=d[d.length-1].coord):x=d[0].coord),s[p]=h.toGlobalCoord(x)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=n.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})(At);At.registerClass(hM);var d0=hM;var kU=(function(t){N(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 Zi(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,i){var a=Lc(this,r,i);return a.progressiveRender&&(a.large=!0),a},e.prototype.brushSelector=function(r,i,a){return a.rect(i.getItemLayout(r))},e.type="series."+Ia,e.dependencies=["grid","polar"],e.defaultOption=ks(d0.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:oe.color.primary,borderWidth:2}},realtimeSort:!1}),e})(d0),dM=kU;var zU=(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})(),VU=(function(t){N(e,t);function e(r){var i=t.call(this,r)||this;return i.type="sausage",i}return e.prototype.getDefaultShape=function(){return new zU},e.prototype.buildPath=function(r,i){var a=i.cx,n=i.cy,o=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-o)*.5,u=o+l,f=i.startAngle,c=i.endAngle,h=i.clockwise,p=Math.PI*2,d=h?c-f<p:f-c<p;d||(f=c-(h?p:-p));var v=Math.cos(f),m=Math.sin(f),g=Math.cos(c),y=Math.sin(c);d?(r.moveTo(v*o+a,m*o+n),r.arc(v*u+a,m*u+n,l,-Math.PI+f,f,!h)):r.moveTo(v*s+a,m*s+n),r.arc(a,n,s,f,c,!h),r.arc(g*u+a,y*u+n,l,c-Math.PI*2,c-Math.PI,!h),o!==0&&r.arc(a,n,o,c,f,h)},e})(he),v0=VU;function vM(t,e){e=e||{};var r=e.isRoundCap;return function(i,a,n){var o=a.position;if(!o||o instanceof Array)return Gn(i,a,n);var s=t(o),l=a.distance!=null?a.distance:5,u=this.shape,f=u.cx,c=u.cy,h=u.r,p=u.r0,d=(h+p)/2,v=u.startAngle,m=u.endAngle,g=(v+m)/2,y=r?Math.abs(h-p)/2:0,x=Math.cos,_=Math.sin,S=f+h*x(v),b=c+h*_(v),w="left",M="top";switch(s){case"startArc":S=f+(p-l)*x(g),b=c+(p-l)*_(g),w="center",M="top";break;case"insideStartArc":S=f+(p+l)*x(g),b=c+(p+l)*_(g),w="center",M="bottom";break;case"startAngle":S=f+d*x(v)+ud(v,l+y,!1),b=c+d*_(v)+fd(v,l+y,!1),w="right",M="middle";break;case"insideStartAngle":S=f+d*x(v)+ud(v,-l+y,!1),b=c+d*_(v)+fd(v,-l+y,!1),w="left",M="middle";break;case"middle":S=f+d*x(g),b=c+d*_(g),w="center",M="middle";break;case"endArc":S=f+(h+l)*x(g),b=c+(h+l)*_(g),w="center",M="bottom";break;case"insideEndArc":S=f+(h-l)*x(g),b=c+(h-l)*_(g),w="center",M="top";break;case"endAngle":S=f+d*x(m)+ud(m,l+y,!0),b=c+d*_(m)+fd(m,l+y,!0),w="left",M="middle";break;case"insideEndAngle":S=f+d*x(m)+ud(m,-l+y,!0),b=c+d*_(m)+fd(m,-l+y,!0),w="right",M="middle";break;default:return Gn(i,a,n)}return i=i||{},i.x=S,i.y=b,i.align=w,i.verticalAlign=M,i}}function mM(t,e,r,i){if(me(i)){t.setTextConfig({rotation:i});return}else if(z(e)){t.setTextConfig({rotation:0});return}var a=t.shape,n=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(n+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=n;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 ud(t,e,r){return e*Math.sin(t)*(r?-1:1)}function fd(t,e,r){return e*Math.cos(t)*(r?1:-1)}function Vo(t,e,r){var i=t.get("borderRadius");if(i==null)return r?{cornerRadius:0}:null;z(i)||(i=[i,i,i,i]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:B(i,function(n){return xr(n,a)})}}var m0=Math.max,g0=Math.min,UU=(function(t){N(e,t);function e(){var r=t.call(this)||this;return r.type=Ia,r._isFirstFrame=!0,r}return e.prototype.render=function(r,i,a,n){this._model=r,this._removeOnRenderedListener(a),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,i,a):this._renderNormal(r,i,a,n))},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,i){this._progressiveEls=[],this._incrementalRenderLarge(r,i)},e.prototype.eachRendered=function(r){Sa(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var i=r.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},e.prototype._renderNormal=function(r,i,a,n){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,p=BU(r,u);p&&this._enableRealtimeSort(p,s,a);var d=r.get("clip",!0)||p,v=u.getArea();o.removeClipPath();var m=r.get("roundCap",!0),g=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),x=y.get("borderRadius")||0,_=[],S=this._backgroundEls,b=n&&n.isInitSort,w=n&&n.type==="changeAxisOrder";function M(A){var D=cd[u.type](s,A);if(!D)return null;var L=$U(u,c,D);return L.useStyle(y.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",x):L.setShape("cornerRadius",x),_[A]=L,L}s.diff(l).add(function(A){var D=s.getItemModel(A),L=cd[u.type](s,A,D);if(L&&(g&&M(A),!(!s.hasValue(A)||!bM[u.type](L)))){var O=!1;d&&(O=gM[u.type](v,L));var I=yM[u.type](r,s,A,L,c,h,f.model,!1,m);p&&(I.forceLabelAnimation=!0),SM(I,s,A,D,L,r,c,u.type==="polar"),b?I.attr({shape:L}):p?xM(p,h,I,L,A,c,!1,!1):Ze(I,{shape:L},r,A),s.setItemGraphicEl(A,I),o.add(I),I.ignore=O}}).update(function(A,D){var L=s.getItemModel(A),O=cd[u.type](s,A,L);if(O){if(g){var I=void 0;S.length===0?I=M(D):(I=S[D],I.useStyle(y.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",x):I.setShape("cornerRadius",x),_[A]=I);var P=cd[u.type](s,A),V=AM(c,P,u);Ve(I,{shape:V},h,A)}var R=l.getItemGraphicEl(D);if(!s.hasValue(A)||!bM[u.type](O)){o.remove(R);return}var U=!1;d&&(U=gM[u.type](v,O),U&&o.remove(R));var F=R&&(R.type==="sector"&&m||R.type==="sausage"&&!m);if(F&&(R&&un(R,r,D),R=null),R?ba(R):R=yM[u.type](r,s,A,O,c,h,f.model,!0,m),p&&(R.forceLabelAnimation=!0),w){var K=R.getTextContent();if(K){var X=Ca(K);X.prevValue!=null&&(X.prevValue=X.value)}}else SM(R,s,A,L,O,r,c,u.type==="polar");b?R.attr({shape:O}):p?xM(p,h,R,O,A,c,!0,w):Ve(R,{shape:O},r,A,null),s.setItemGraphicEl(A,R),R.ignore=U,o.add(R)}}).remove(function(A){var D=l.getItemGraphicEl(A);D&&un(D,r,A)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new we);C.removeAll();for(var T=0;T<_.length;++T)C.add(_[T]);o.add(C),this._backgroundEls=_,this._data=s},e.prototype._renderLarge=function(r,i,a){this._clear(),wM(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,i){this._removeBackground(),wM(i,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var i=r.get("clip",!0)&&IA(r.coordinateSystem,!1,r),a=this.group;i?a.setClipPath(i):a.removeClipPath()},e.prototype._enableRealtimeSort=function(r,i,a){var n=this;if(i.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,r,a),this._isFirstFrame=!1;else{var s=function(l){var u=i.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){n._updateSortWithinSameData(i,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(r,i,a){var n=[];return r.each(r.mapDimension(i.dim),function(o,s){var l=a(s);l=l??NaN,n.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),n.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:B(n,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(r,i,a){for(var n=a.scale,o=r.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=n.getOrdinalMeta().categories.length;l<u;++l){var f=r.rawIndexOf(o,n.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:i(r.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(r,i){for(var a=i.scale,n=a.getExtent(),o=Math.max(0,n[0]),s=Math.min(n[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(r,i,a,n){if(this._isOrderChangedWithinSameData(r,i,a)){var o=this._dataSort(r,a,i);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(n),n.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(r,i,a){var n=i.baseAxis,o=this._dataSort(r,n,function(s){return r.get(r.mapDimension(i.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.index,sortInfo:o})},e.prototype.remove=function(r,i){this._clear(this._model),this._removeOnRenderedListener(i)},e.prototype.dispose=function(r,i){this._removeOnRenderedListener(i)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(r){var i=this.group,a=this._data;r&&r.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(n){un(n,r,xe(n).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=Ia,e})(mt),gM={cartesian2d:function(t,e){var r=e.width<0?-1:1,i=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var a=t.x+t.width,n=t.y+t.height,o=m0(e.x,t.x),s=g0(e.x+e.width,a),l=m0(e.y,t.y),u=g0(e.y+e.height,n),f=s<o,c=u<l;return e.x=f&&o>a?s:o,e.y=c&&l>n?u:l,e.width=f?0:s-o,e.height=c?0:u-l,r<0&&(e.x+=e.width,e.width=-e.width),i<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 i=e.r;e.r=e.r0,e.r0=i}var a=g0(e.r,t.r),n=m0(e.r0,t.r0);e.r=a,e.r0=n;var o=a-n<0;if(r<0){var i=e.r;e.r=e.r0,e.r0=i}return o}},yM={cartesian2d:function(t,e,r,i,a,n,o,s,l){var u=new Oe({shape:k({},i),z2:1});if(u.__dataIndex=r,u.name="item",n){var f=u.shape,c=a?"height":"width";f[c]=0}return u},polar:function(t,e,r,i,a,n,o,s,l){var u=!a&&l?v0:mi,f=new u({shape:i,z2:1});f.name="item";var c=EM(a);if(f.calculateTextPosition=vM(c,{isRoundCap:u===v0}),n){var h=f.shape,p=a?"r":"endAngle",d={};h[p]=a?i.r0:i.startAngle,d[p]=i[p],(s?Ve:Ze)(f,{shape:d},n)}return f}};function BU(t,e){var r=t.get("realtimeSort",!0),i=e.getBaseAxis();if(r&&i.type==="category"&&e.type==="cartesian2d")return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function xM(t,e,r,i,a,n,o,s){var l,u;n?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(o?Ve:Ze)(r,{shape:l},e,a,null);var f=e?t.baseAxis.model:null;(o?Ve:Ze)(r,{shape:u},f,a)}function _M(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var FU=["x","y","width","height"],HU=["cx","cy","r","startAngle","endAngle"],bM={cartesian2d:function(t){return!_M(t,FU)},polar:function(t){return!_M(t,HU)}},cd={cartesian2d:function(t,e,r){var i=t.getItemLayout(e);if(!i)return null;var a=r?KU(r,i):0,n=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+n*a/2,y:i.y+o*a/2,width:i.width-n*a,height:i.height-o*a}},polar:function(t,e,r){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function GU(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function EM(t){return(function(e){var r=e?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+r;default:return i}}})(t)}function SM(t,e,r,i,a,n,o,s){var l=e.getItemVisual(r,"style");if(s){if(!n.get("roundCap")){var f=t.shape,c=Vo(i.getModel("itemStyle"),f,!0);k(f,c),t.setShape(f)}}else{var u=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var h=i.getShallow("cursor");h&&t.attr("cursor",h);var p=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?XU(a,n.coordinateSystem):qU(a,n.coordinateSystem),d=ur(i);ei(t,d,{labelFetcher:n,labelDataIndex:r,defaultText:cl(n.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var v=t.getTextContent();if(s&&v){var m=i.get(["label","position"]);t.textConfig.inside=m==="middle"?!0:null,mM(t,m==="outside"?p:m,EM(o),i.get(["label","rotate"]))}JC(v,d,n.getRawValue(r),function(y){return rd(e,y)});var g=i.getModel(["emphasis"]);kr(t,g.get("focus"),g.get("blurScope"),g.get("disabled")),Gi(t,i),GU(a)&&(t.style.fill="none",t.style.stroke="none",E(t.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function KU(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var i=t.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),n=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,a,n)}var YU=(function(){function t(){}return t})(),CM=(function(t){N(e,t);function e(r){var i=t.call(this,r)||this;return i.type="largeBar",i}return e.prototype.getDefaultShape=function(){return new YU},e.prototype.buildPath=function(r,i){for(var a=i.points,n=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<a.length;f+=3)l[n]=u,l[o]=a[f+2],s[n]=a[f+n],s[o]=a[f+o],r.rect(s[0],s[1],l[0],l[1])},e})(he);function wM(t,e,r,i){var a=t.getData(),n=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=t.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints"),f=i?bs(t):0;if(u){var c=new CM({shape:{points:u},incremental:f,silent:!0,z2:0});c.baseDimIdx=n,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),r&&r.push(c)}var h=new CM({shape:{points:a.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=n,h.largeDataIndices=o,h.barWidth=s,e.add(h),h.useStyle(a.getVisual("style")),h.style.stroke=null,xe(h).seriesIndex=t.seriesIndex,t.get("silent")||(h.on("mousedown",TM),h.on("mousemove",TM)),r&&r.push(h)}var TM=Cu(function(t){var e=this,r=WU(e,t.offsetX,t.offsetY);xe(e).dataIndex=r>=0?r:null},30,!1);function WU(t,e,r){for(var i=t.baseDimIdx,a=1-i,n=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,f=0,c=n.length/3;f<c;f++){var h=f*3;if(l[i]=u,l[a]=n[h+2],s[i]=n[h+i],s[a]=n[h+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),e>=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function AM(t,e,r){if(Po(r,"cartesian2d")){var i=e,a=r.getArea();return{x:t?i.x:a.x,y:t?a.y:i.y,width:t?i.width:a.width,height:t?a.height:i.height}}else{var a=r.getArea(),n=e;return{cx:a.cx,cy:a.cy,r0:t?a.r0:n.r0,r:t?a.r:n.r,startAngle:t?n.startAngle:0,endAngle:t?n.endAngle:Math.PI*2}}}function $U(t,e,r){var i=t.type==="polar"?mi:Oe;return new i({shape:AM(e,r,t),silent:!0,z2:0})}function XU(t,e){if(t.height===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"bottom":"top"}return t.height>0?"bottom":"top"}function qU(t,e){if(t.width===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"left":"right"}return t.width>=0?"right":"left"}var MM=UU;function y0(t){t.registerChartView(MM),t.registerSeriesModel(dM),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,uM(Ia)),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,fM(Ia)),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,$u(Ia)),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var i=e.componentType||"series";r.eachComponent({mainType:i,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})}),pM(t)}function Ju(t){return{seriesType:t,reset:function(e,r){var i=r.findComponents({mainType:"legend"});if(!(!i||!i.length)){var a=e.getData();a.filterSelf(function(n){for(var o=a.getName(n),s=0;s<i.length;s++)if(!i[s].isSelected(o))return!1;return!0})}}}}function Qu(t,e,r){e=z(e)&&{coordDimensions:e}||k({encodeDefine:t.getEncode()},e);var i=t.getSource(),a=ku(i,e).dimensions,n=new bh(a,t);return n.initData(i,r),n}var ZU=(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 i=this._getDataWithEncodedVisual();return i.getItemVisual(e,r)},t})(),pd=ZU;var Ei="pie",jU=ne(),LM=(function(t){N(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 pd(se(this.getData,this),se(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Qu(this,{coordDimensions:["value"],encodeDefaulter:ut(Ow,this)})},e.prototype.getDataParams=function(r){var i=this.getData(),a=jU(i),n=a.seats;if(!n){var o=[];i.each(i.mapDimension("value"),function(l){o.push(l)}),n=a.seats=Vb(o,i.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=n[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){Xl(r,"labelLine",["show"]);var i=r.labelLine,a=r.emphasis.labelLine;i.show=i.show&&r.label.show,a.show=a.show&&r.emphasis.label.show},e.type="series."+Ei,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})(At);_w({fullType:LM.type,getCoord2:function(t){return t.getShallow("center")}});var DM=LM;var JU=Math.PI/180;function OM(t,e,r,i,a,n,o,s,l,u){if(t.length<2)return;function f(v){for(var m=v.rB,g=m*m,y=0;y<v.list.length;y++){var x=v.list[y],_=Math.abs(x.label.y-r),S=i+x.len,b=S*S,w=Math.sqrt(Math.abs((1-_*_/g)*b)),M=e+(w+x.len2)*a,C=M-x.label.x,T=x.targetTextWidth-C*a;PM(x,T,!0),x.label.x=M}}function c(v){for(var m={list:[],maxY:0},g={list:[],maxY:0},y=0;y<v.length;y++)if(v[y].labelAlignTo==="none"){var x=v[y],_=x.label.y>r?g:m,S=Math.abs(x.label.y-r);if(S>=_.maxY){var b=x.label.x-e-x.len2*a,w=i+x.len,M=Math.abs(b)<w?Math.sqrt(S*S/(1-b*b/w/w)):w;_.rB=M,_.maxY=S}_.list.push(x)}f(m),f(g)}for(var h=t.length,p=0;p<h;p++)if(t[p].position==="outer"&&t[p].labelAlignTo==="labelLine"){var d=t[p].label.x-u;t[p].linePoints[1][0]+=d,t[p].label.x=u}Yu(t,1,l,l+o)&&c(t)}function QU(t,e,r,i,a,n,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,h=0;h<t.length;h++){var p=t[h].label;x0(t[h])||(p.x<e?(f=Math.min(f,p.x),l.push(t[h])):(c=Math.max(c,p.x),u.push(t[h])))}for(var h=0;h<t.length;h++){var d=t[h];if(!x0(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var p=d.label,v=d.linePoints,m=void 0;d.labelAlignTo==="edge"?p.x<e?m=v[2][0]-d.labelDistance-o-d.edgeDistance:m=o+a-d.edgeDistance-v[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?p.x<e?m=f-o-d.bleedMargin:m=o+a-c-d.bleedMargin:p.x<e?m=p.x-o-d.bleedMargin:m=o+a-p.x-d.bleedMargin,d.targetTextWidth=m,PM(d,m,!1)}}OM(u,e,r,i,1,a,n,o,s,c),OM(l,e,r,i,-1,a,n,o,s,f);for(var h=0;h<t.length;h++){var d=t[h];if(!x0(d)&&d.linePoints){var p=d.label,v=d.linePoints,g=d.labelAlignTo==="edge",y=p.style.padding,x=y?y[1]+y[3]:0,_=p.style.backgroundColor?0:x,S=d.rect.width+_,b=v[1][0]-v[2][0];g?p.x<e?v[2][0]=o+d.edgeDistance+S+d.labelDistance:v[2][0]=o+a-d.edgeDistance-S-d.labelDistance:(p.x<e?v[2][0]=p.x+d.labelDistance:v[2][0]=p.x-d.labelDistance,v[1][0]=v[2][0]+b),v[1][1]=v[2][1]=p.y}}}function PM(t,e,r){if(t.labelStyleWidth==null){var i=t.label,a=i.style,n=t.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,f=n.width+(o?0:l);if(e<f||r){if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var c=i.getBoundingRect();i.setStyle("width",Math.ceil(c.width)),i.setStyle("backgroundColor",o)}else{var h=e-l,p=e<f?h:r?h>t.unconstrainedWidth?null:h:null;i.setStyle("width",p)}NM(n,i)}}}function NM(t,e){IM.rect=t,jy(IM,e,eB)}var eB={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},IM={};function x0(t){return t.position==="center"}function _0(t){var e=t.getData(),r=[],i,a,n=!1,o=(t.get("minShowLabelAngle")||0)*JU,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,c=s.y,h=s.height;function p(b){b.ignore=!0}function d(b){if(!b.ignore)return!0;for(var w in b.states)if(b.states[w].ignore===!1)return!0;return!1}e.each(function(b){var w=e.getItemGraphicEl(b),M=w.shape,C=w.getTextContent(),T=w.getTextGuideLine(),A=e.getItemModel(b),D=A.getModel("label"),L=D.get("position")||A.get(["emphasis","label","position"]),O=D.get("distanceToLabelLine"),I=D.get("alignTo"),P=Ee(D.get("edgeDistance"),u),V=D.get("bleedMargin");V==null&&(V=Math.min(u,h)>200?10:2);var R=A.getModel("labelLine"),U=R.get("length");U=Ee(U,u);var F=R.get("length2");if(F=Ee(F,u),Math.abs(M.endAngle-M.startAngle)<o){E(C.states,p),C.ignore=!0,T&&(E(T.states,p),T.ignore=!0);return}if(d(C)){var K=(M.startAngle+M.endAngle)/2,X=Math.cos(K),re=Math.sin(K),Z,de,ie,Ue;i=M.cx,a=M.cy;var Ke=L==="inside"||L==="inner";if(L==="center")Z=M.cx,de=M.cy,Ue="center";else{var Le=(Ke?(M.r+M.r0)/2*X:M.r*X)+i,We=(Ke?(M.r+M.r0)/2*re:M.r*re)+a;if(Z=Le+X*3,de=We+re*3,!Ke){var ve=Le+X*(U+l-M.r),be=We+re*(U+l-M.r),zt=ve+(X<0?-1:1)*F,et=be;I==="edge"?Z=X<0?f+P:f+u-P:Z=zt+(X<0?-O:O),de=et,ie=[[Le,We],[ve,be],[zt,et]]}Ue=Ke?"center":I==="edge"?X>0?"right":"left":X>0?"left":"right"}var _t=Math.PI,bt=0,Jt=D.get("rotate");if(me(Jt))bt=Jt*(_t/180);else if(L==="center")bt=0;else if(Jt==="radial"||Jt===!0){var aa=X<0?-K+_t:-K;bt=aa}else if(Jt==="tangential"||Jt==="tangential-noflip"&&L!=="outside"&&L!=="outer"){var Dr=Math.atan2(X,re);Dr<0&&(Dr=_t*2+Dr);var dr=re>0;dr&&Jt!=="tangential-noflip"&&(Dr=_t+Dr),bt=Dr-_t}if(n=!!bt,C.x=Z,C.y=de,C.rotation=bt,C.setStyle({verticalAlign:"middle"}),Ke){C.setStyle({align:Ue});var $o=C.states.select;$o&&($o.x+=C.x,$o.y+=C.y)}else{var na=new ce(0,0,0,0);NM(na,C),r.push({label:C,labelLine:T,position:L,len:U,len2:F,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new ge(X,re),linePoints:ie,textAlign:Ue,labelDistance:O,labelAlignTo:I,edgeDistance:P,bleedMargin:V,rect:na,unconstrainedWidth:na.width,labelStyleWidth:C.style.width})}w.setTextConfig({inside:Ke})}}),!n&&t.get("avoidLabelOverlap")&&QU(r,i,a,l,u,h,f,c);for(var v=0;v<r.length;v++){var m=r[v],g=m.label,y=m.labelLine,x=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:m.textAlign}),x&&(E(g.states,p),g.ignore=!0);var _=g.states.select;_&&(_.x+=g.x,_.y+=g.y)}if(y){var S=m.linePoints;x||!S?(E(y.states,p),y.ignore=!0):(qy(S,m.minTurnAngle),dA(S,m.surfaceNormal,m.maxSurfaceAngle),y.setShape({points:S}),g.__hostTarget.textGuideLineConfig={anchor:new ge(S[0][0],S[0][1])})}}}var RM=Math.PI*2,hd=Math.PI/180,kM=Dc(Ei,tB);function tB(t,e){t.eachSeriesByType(Ei,function(r){var i=r.getData(),a=i.mapDimension("value"),n=Tw(r,e),o=n.cx,s=n.cy,l=n.r,u=n.r0,f=n.viewRect,c=-r.get("startAngle")*hd,h=r.get("endAngle"),p=r.get("padAngle")*hd;h=h==="auto"?c-RM:-h*hd;var d=r.get("minAngle")*hd,v=d+p,m=0;i.each(a,function(P){!isNaN(P)&&m++});var g=i.getSum(a),y=Math.PI/(g||m)*2,x=r.get("clockwise"),_=r.get("roseType"),S=r.get("stillShowZeroSum"),b=i.getDataExtent(a);b[0]=0;var w=x?1:-1,M=[c,h],C=w*p/2;Am(M,!x),c=M[0],h=M[1];var T=b0(r);T.startAngle=c,T.endAngle=h,T.clockwise=x,T.cx=o,T.cy=s,T.r=l,T.r0=u;var A=Math.abs(h-c),D=A,L=0,O=c;if(i.setLayout({viewRect:f,r:l}),i.each(a,function(P,V){var R;if(isNaN(P)){i.setItemLayout(V,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:o,cy:s,r0:u,r:_?NaN:l});return}_!=="area"?R=g===0&&S?y:P*y:R=A/m,R<v?(R=v,D-=v):L+=P;var U=O+w*R,F=0,K=0;p>R?(F=O+w*R/2,K=F):(F=O+C,K=U-C),i.setItemLayout(V,{angle:R,startAngle:F,endAngle:K,clockwise:x,cx:o,cy:s,r0:u,r:_?or(P,b,[u,l]):l}),O=U}),D<RM&&m)if(D<=.001){var I=A/m;i.each(a,function(P,V){if(!isNaN(P)){var R=i.getItemLayout(V);R.angle=I;var U=0,F=0;I<p?(U=c+w*(V+1/2)*I,F=U):(U=c+w*V*I+C,F=c+w*(V+1)*I-C),R.startAngle=U,R.endAngle=F}})}else y=D/L,O=c,i.each(a,function(P,V){if(!isNaN(P)){var R=i.getItemLayout(V),U=R.angle===v?v:P*y,F=0,K=0;U<p?(F=O+w*U/2,K=F):(F=O+C,K=O+w*U-C),R.startAngle=F,R.endAngle=K,O+=w*U}})})}var b0=ne();var rB=(function(t){N(e,t);function e(r,i,a){var n=t.call(this)||this;n.z2=2;var o=new Pe;return n.setTextContent(o),n.updateData(r,i,a,!0),n}return e.prototype.updateData=function(r,i,a,n){var o=this,s=r.hostModel,l=r.getItemModel(i),u=l.getModel("emphasis"),f=r.getItemLayout(i),c=k(Vo(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(n){o.setShape(c);var h=s.getShallow("animationType");s.ecModel.ssr?(Ze(o,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):h==="scale"?(o.shape.r=f.r0,Ze(o,{shape:{r:f.r}},s,i)):a!=null?(o.setShape({startAngle:a,endAngle:a}),Ze(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,i)):(o.shape.endAngle=f.startAngle,Ve(o,{shape:{endAngle:f.endAngle}},s,i))}else ba(o),Ve(o,{shape:c},s,i);o.useStyle(r.getItemVisual(i,"style")),Gi(o,l);var p=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),v=Math.cos(p)*d,m=Math.sin(p)*d,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,r,i),o.ensureState("emphasis").shape=k({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Vo(u.getModel("itemStyle"),f)),k(o.ensureState("select"),{x:v,y:m,shape:Vo(l.getModel(["select","itemStyle"]),f)}),k(o.ensureState("blur"),{shape:Vo(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),x=o.getTextContent();y&&k(y.ensureState("select"),{x:v,y:m}),k(x.ensureState("select"),{x:v,y:m}),kr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r,i,a){var n=this,o=i.getItemModel(a),s=o.getModel("labelLine"),l=i.getItemVisual(a,"style"),u=l&&l.fill,f=l&&l.opacity;ei(n,ur(o),{labelFetcher:i.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:f,defaultText:r.getFormattedLabel(a,"normal")||i.getName(a)});var c=n.getTextContent();n.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var h=o.get(["label","position"]);if(h!=="outside"&&h!=="outer")n.removeTextGuideLine();else{var p=this.getTextGuideLine();p||(p=new gi,this.setTextGuideLine(p)),qh(this,Zh(o),{stroke:u,opacity:Or(s.get(["lineStyle","opacity"]),f,1)})}},e})(mi),iB=(function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Ei,r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,i,a,n){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=b0(r),p=new mi({shape:Q(h)});p.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=p,l.add(p)}o.diff(s).add(function(d){var v=new rB(o,d,u);o.setItemGraphicEl(d,v),l.add(v)}).update(function(d,v){var m=s.getItemGraphicEl(v);m.updateData(o,d,u),m.off("click"),l.add(m),o.setItemGraphicEl(d,m)}).remove(function(d){var v=s.getItemGraphicEl(d);un(v,r,d)}).execute(),_0(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(r,i){var a=i.getData(),n=a.getItemLayout(0);if(n){var o=r[0]-n.cx,s=r[1]-n.cy,l=Math.sqrt(o*o+s*s);return l<=n.r&&l>=n.r0}},e.type=Ei,e})(mt),zM=iB;function S0(t){return{seriesType:t,reset:function(e,r){var i=e.getData();i.filterSelf(function(a){var n=i.mapDimension("value"),o=i.get(n,a);return!(me(o)&&!isNaN(o)&&o<0)})}}}function ef(t){t.registerChartView(zM),t.registerSeriesModel(DM),$T(Ei,t.registerAction),t.registerLayout(kM),t.registerProcessor(Ju(Ei)),t.registerProcessor(S0(Ei))}var aB=(function(t){N(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,i){return Zi(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,i,a){return a.point(i.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:oe.color.primary}},universalTransition:{divideShape:"clone"}},e})(At),VM=aB;var UM=4,nB=(function(){function t(){}return t})(),oB=(function(t){N(e,t);function e(r){var i=t.call(this,r)||this;return i._off=0,i.hoverDataIdx=-1,i}return e.prototype.getDefaultShape=function(){return new nB},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,i){var a=i.points,n=i.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&n[0]<UM,f=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<a.length;){var h=a[c++],p=a[c++];isNaN(h)||isNaN(p)||f&&!f.contain(h,p)||(s.x=h-n[0]/2,s.y=p-n[1]/2,s.width=n[0],s.height=n[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},e.prototype.afterBrush=function(){var r=this.shape,i=r.points,a=r.size,n=this._ctx,o=this.softClipShape,s;if(n){for(s=this._off;s<i.length;){var l=i[s++],u=i[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||n.fillRect(l-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(r,i){for(var a=this.shape,n=a.points,o=a.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=n.length/2-1;u>=0;u--){var f=u*2,c=n[f]-s/2,h=n[f+1]-l/2;if(r>=c&&i>=h&&r<=c+s&&i<=h+l)return u}return-1},e.prototype.contain=function(r,i){var a=this.transformCoordToLocal(r,i),n=this.getBoundingRect();if(r=a[0],i=a[1],n.contain(r,i)){var o=this.hoverDataIdx=this.findDataIndex(r,i);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var i=this.shape,a=i.points,n=i.size,o=n[0],s=n[1],l=1/0,u=1/0,f=-1/0,c=-1/0,h=0;h<a.length;){var p=a[h++],d=a[h++];l=Math.min(p,l),f=Math.max(p,f),u=Math.min(d,u),c=Math.max(d,c)}r=this._rect=new ce(l-o/2,u-s/2,f-l+o,c-u+s)}return r},e})(he),sB=(function(){function t(){this.group=new we}return t.prototype.updateData=function(e,r){this._clear(),this._data=e;var i=this._create();i.setShape({points:e.getLayout("points")}),this._setCommon(i,e,r)},t.prototype.updateLayout=function(e){var r=this._data;if(r){var i=r.getLayout("points");this.group.eachChild(function(a){if(a.startIndex!=null){var n=(a.endIndex-a.startIndex)*2,o=a.startIndex*4*2;i=new Float32Array(i.buffer,o,n)}a.setShape("points",i),a.reset(),a.stopAnimation()})}},t.prototype.incrementalPrepareUpdate=function(e){this._clear()},t.prototype.incrementalUpdate=function(e,r,i,a){var n=this._newAdded[0],o=r.getLayout("points"),s=n&&n.shape.points;if(s&&s.length<2e4){var l=s.length,u=new Float32Array(l+o.length);u.set(s),u.set(o,l),n.endIndex=e.end,n.setShape({points:u})}else{this._newAdded=[];var f=this._create();f.startIndex=e.start,f.endIndex=e.end,f.incremental=i,f.setShape({points:o}),this._setCommon(f,r,a)}},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new oB({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},t.prototype._setCommon=function(e,r,i){var a=r.hostModel;i=i||{};var n=r.getVisual("symbolSize");e.setShape("size",n instanceof Array?n:[n,n]),e.softClipShape=i.clipShape||null,e.symbolProxy=Nt(r.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<UM;e.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=xe(e);u.seriesIndex=a.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})(),BM=sB;var lB=(function(t){N(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,i,a){var n=r.getData(),o=this._updateSymbolDraw(n,r);o.updateData(n,C0(r)),this._finished=!0},e.prototype.incrementalPrepareRender=function(r,i,a){var n=r.getData(),o=this._updateSymbolDraw(n,r);o.incrementalPrepareUpdate(n),this._finished=!1},e.prototype.incrementalRender=function(r,i,a){this._symbolDraw.incrementalUpdate(r,i.getData(),bs(i),C0(i)),this._finished=r.end===i.getData().count()},e.prototype.updateTransform=function(r,i,a){var n=r.getData();if(this.group.dirty(),this._finished){var o=No("").reset(r,i,a);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(C0(r))}else return{update:!0}},e.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},e.prototype._updateSymbolDraw=function(r,i){var a=this._symbolDraw,n=i.pipelineContext,o=n.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new BM:new ad,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(r,i){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e})(mt);function C0(t){return{clipShape:PA(t)}}var FM=lB;var dd=(function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ht).models[0]},e.type="cartesian2dAxis",e})(Ie);Ut(dd,zh);var HM={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:oe.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:oe.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:oe.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[oe.color.backgroundTint,oe.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:oe.color.neutral00,borderColor:oe.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},uB=Se({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},HM),w0=Se({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:oe.color.axisMinorSplitLine,width:1}}},HM),fB=Se({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},w0),cB=ue({logBase:10},w0),vd={category:uB,value:w0,time:fB,log:cB};function md(t,e,r,i){E(Ih,function(a,n){var o=Se(Se({},vd[n],!0),i,!0),s=(function(l){N(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+n,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var h=pn(this),p=h?hn(f):{},d=c.getTheme();Se(f,d.get(n+"Axis")),Se(f,this.getDefaultOption()),f.type=GM(f),h&&Vr(f,p,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=zu.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=Ro();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=e+"Axis."+n,u.defaultOption=o,u})(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",GM)}function GM(t){return t.type||(t.data?"category":"value")}var pB=(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 B(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ke(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})(),KM=pB;var tf=["x","y"];function YM(t){return(t.type==="interval"||t.type==="time")&&!po(t)}var hB=(function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=ii,r.dimensions=tf,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!YM(r)||!YM(i))){var a=Mo(r,null),n=Mo(i,null),o=this.dataToPoint([a[0],n[0]]),s=this.dataToPoint([a[1],n[1]]),l=a[1]-a[0],u=n[1]-n[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,h=o[0]-a[0]*f,p=o[1]-n[0]*c,d=this._transform=[f,0,0,c,h,p];this._invTransform=Kr([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var i=this.getAxis("x"),a=this.getAxis("y");return i.contain(i.toLocalCoord(r[0]))&&a.contain(a.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,i){var a=this.dataToPoint(r),n=this.dataToPoint(i),o=this.getArea(),s=new ce(a[0],a[1],n[0]-a[0],n[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,i,a){a=a||[];var n=r[0],o=r[1];if(this._transform&&n!=null&&isFinite(n)&&o!=null&&isFinite(o))return Ft(a,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(n,i)),a[1]=l.toGlobalCoord(l.dataToCoord(o,i)),a},e.prototype.clampData=function(r,i){var a=this.getAxis("x").scale,n=this.getAxis("y").scale,o=a.getExtent(),s=n.getExtent(),l=a.parse(r[0]),u=n.parse(r[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},e.prototype.pointToData=function(r,i,a){if(a=a||[],this._invTransform)return Ft(a,r,this._invTransform);var n=this.getAxis("x"),o=this.getAxis("y");return a[0]=n.coordToData(n.toLocalCoord(r[0]),i),a[1]=o.coordToData(o.toLocalCoord(r[1]),i),a},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var i=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),n=Math.min(i[0],i[1])-r,o=Math.min(a[0],a[1])-r,s=Math.max(i[0],i[1])-n+r,l=Math.max(a[0],a[1])-o+r;return new ce(n,o,s,l)},e})(KM),WM=hB;function gd(t,e){var r=t.scale,i=t.model,a=Gh(r,i,i.ecModel,t,null),n=ji(r),o=ji(e)?e.intervalStub:e,s=n?r.intervalStub:r,l=r.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=u.length-1,h,p,d;if(c===1)h=p=0,d=1;else if(c===2){var v=Qe(u[0].value-u[1].value),m=Qe(u[1].value-u[2].value);h=p=0,v===m?d=2:(d=1,v<m?h=v/m:p=m/v)}else{var g=o.getConfig().interval;h=(1-(u[0].value-f[0].value)/g)%1,p=(1-(f[c].value-u[c].value)/g)%1,d=c-(h?1:0)-(p?1:0)}var y=a.zoomFixMM,x=y[0]||y[1],_=[a.fixMM[0]||x,a.fixMM[1]||x],S=r.getExtent(),b=s.getExtent(),w=Eh(b,_),M,C,T,A,D,L;function O(X){for(var re=50,Z=0;Z<re&&!X();Z++)T=n?T*Ce(l,2):hE(T),A=Si(T)}function I(){M=Me(L-T*h,A)}function P(){C=Me(D+T*p,A)}function V(){L=h?Me(M+T*h,A):M}function R(){D=p?Me(C-T*p,A):C}if(_[0]&&_[1]){M=w[0],C=w[1],T=(C-M)/(d+h+p);var U=t.getExtent(),F=Qe(U[1]-U[0]);A=zb([C,M],F,.5/d),V(),R(),gt(A)&&(T=Me(T,A))}else{var K=w[1]-w[0];T=n?Ce(Sc(K),1):Kn(K/d,Qv),A=Si(T),_[0]?(M=w[0],O(function(){if(V(),D=Me(L+T*d,A),P(),C>=w[1])return!0})):_[1]?(C=w[1],O(function(){if(R(),L=Me(D-T*d,A),I(),M<=w[0])return!0})):O(function(){L=Me(Qa(w[0]/T)*T,A),D=Me(Ii(w[1]/T)*T,A);var X=Pr((D-L)/T);if(X<=d){var re=d-X,Z=void 0,de=a.incl0||n;if(de&&w[0]===0)Z=[0,re];else if(de&&w[1]===0)Z=[re,0];else{var ie=Ii(re/2);Z=re%2===0?[ie,ie]:M+C<w[0]+w[1]?[ie,ie+1]:[ie+1,ie]}if(L=Me(L-T*Z[0],A),D=Me(D+T*Z[1],A),I(),P(),M<=w[0]&&C>=w[1])return!0}})}Rh(r,_,b,[M,C],S,{interval:T,intervalCount:d,intervalPrecision:A,niceExtent:[L,D]})}var $M=[[3,1],[0,2]],dB=(function(){function t(e,r,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=tf,this._initCartesian(e,r,i),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var i=this._axesMap;E(this._axesList,function(o){Hh(o,Fh);var s=o.scale;kt(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function a(o){for(var s=ae(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):Yy(f)}E(l,function(c){mB(c,c.__alignTo)?Yy(c):gd(c,c.__alignTo.scale)})}a(i.x),a(i.y);var n={};E(i.x,function(o){XM(i,"y",o,n)}),E(i.y,function(o){XM(i,"x",o,n)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,i){var a=go(e,r),n=this._rect=Xi(e.getBoxLayoutParams(),a.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(T0(o,n),!i){var u=yB(n,s,o,l,r),f=void 0;if(l)E0?(E0(this._axesList,n),T0(o,n)):f=JM(n.clone(),"axisLabel",null,n,o,u,a);else{var c=xB(e,n,a),h=c.outerBoundsRect,p=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;h&&(f=JM(h,p,d,n,o,u,a))}eL(n,o,Ar.determine,null,f,a),E(this._coordsList,function(v){v.calcAffineTransform()})}},t.prototype.getAxis=function(e,r){var i=this._axesMap[e];if(i!=null)return i[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var i="x"+e+"y"+r;return this._coordsMap[i]}$(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,n=this._coordsList;a<n.length;a++)if(n[a].getAxis("x").index===e||n[a].getAxis("y").index===r)return n[a]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,i){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.dataToPoint(i):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(i)):null},t.prototype.convertFromPixel=function(e,r,i){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.pointToData(i):a.axis?a.axis.coordToData(a.axis.toLocalCoord(i)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,i=e.xAxisModel||r&&r.getReferringComponents("xAxis",Ht).models[0],a=e.yAxisModel||r&&r.getReferringComponents("yAxis",Ht).models[0],n=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,pe(o,s)<0&&(s=null);else if(i&&a)s=this.getCartesian(i.componentIndex,a.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(n){var u=n.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,i){var a=this,n=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,E(s.x,function(f,c){E(s.y,function(h,p){var d="x"+c+"y"+p,v=new WM(d);v.master=a,v.model=e,a._coordsMap[d]=v,a._coordsList.push(v),v.addAxis(f),v.addAxis(h)})}),ZM(s.x),ZM(s.y);function u(f){return function(c,h){if(vB(c,e)){var p=c.get("position");f==="x"?p!=="top"&&p!=="bottom"&&(p=o.bottom?"top":"bottom"):p!=="left"&&p!=="right"&&(p=o.left?"right":"left"),o[p]=!0;var d=ME(c),v=new KA(f,LE(c,d,!0),[0,0],d,p);v.onBand=kh(v.scale,c),v.inverse=c.get("inverse"),c.axis=v,v.model=c,v.grid=n,v.index=h,n._axesList.push(v),s[f][h]=v,l[f]++}}}},t.prototype.getTooltipAxes=function(e){var r=[],i=[];return E(this.getCartesians(),function(a){var n=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),o=a.getOtherAxis(n);pe(r,n)<0&&r.push(n),pe(i,o)<0&&i.push(o)}),{baseAxes:r,otherAxes:i}},t.create=function(e,r){var i=[];return e.eachComponent("grid",function(a,n){var o=new t(a,e,r);o.name="grid_"+n,o.resize(a,r,!0),a.coordinateSystem=o,i.push(o),E(o._axesList,function(s){jE(s,t.dimIdxMap)})}),e.eachSeries(function(a){var n,o;Sw({targetModel:a,coordSysType:ii,coordSysProvider:s});function s(){var l=QA(a),u=l.xAxisModel,f=l.yAxisModel;n=u.axis,o=f.axis;var c=u.getCoordSysModel(),h=c.coordinateSystem;return h.getCartesian(u.componentIndex,f.componentIndex)}n&&o&&(Uu(n,a,ii),Uu(o,a,ii))},this),i},t.dimensions=tf,t.dimIdxMap=Ou(tf),t})();function vB(t,e){return t.getCoordSysModel()===e}function XM(t,e,r,i){r.getAxesOnZeroOf=function(){return n?[n]:[]};var a=t[e],n,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)qM(s,a[l])&&(n=a[l]);else for(var u in a)if(le(a,u)&&qM(s,a[u])&&!i[f(a[u])]){n=a[u];break}n&&(i[f(n)]=!0);function f(c){return c.dim+"_"+c.index}}function qM(t,e){if(!e)return!1;var r=e.scale,i=DE(r,0,!1),a=e&&e.type!=="category"&&e.type!=="time"&&i!==Ph;return a&&t==="auto"&&IE(e)&&(a=!1),a}function ZM(t){for(var e=ae(t),r,i=[],a=e.length-1;a>=0;a--){var n=t[+e[a]];wh(n.scale)&&Uy(n.model,n.type,!0)==null&&(n.model.get("alignTicks")&&n.model.get("interval")==null?i.push(n):r=n)}r||(r=i.pop()),r&&E(i,function(o){o.__alignTo=r})}function mB(t,e){return po(t.scale)||po(e.scale)||e.scale.getTicks().length<2}function gB(t,e){var r=t.getExtent(),i=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(a){return a+e}:function(a){return i-a+e},t.toLocalCoord=t.dim==="x"?function(a){return a-e}:function(a){return i-a+e}}function T0(t,e){E(t.x,function(r){return jM(r,e.x,e.width)}),E(t.y,function(r){return jM(r,e.y,e.height)})}function jM(t,e,r){var i=[0,r],a=t.inverse?1:0;t.setExtent(i[a],i[1-a]),gB(t,e)}var E0;function QM(t){E0=t}function JM(t,e,r,i,a,n,o){eL(i,a,Ar.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(i,0,NaN),f(i,1,NaN);var l=es(s,function(h){return h>0})==null;return Ps(i,s,!0,!0,r),T0(a,i),l;function u(h){E(a[Yi[h]],function(p){if(Oo(p.model)){var d=n.ensureRecord(p.model),v=d.labelInfoList;if(v)for(var m=0;m<v.length;m++){var g=v[m],y=p.scale.normalize(Da(p.scale,wn(g.label).labelInfo.tick));y=h===1?1-y:y,f(g.rect,h,y),f(g.rect,1-h,NaN)}var x=d.nameLayout;if(x){var y=xn(d.nameLocation)?.5:NaN;f(x.rect,h,y),f(x.rect,1-h,NaN)}}})}function f(h,p,d){var v=t[Yi[p]]-h[Yi[p]],m=h[fn[p]]+h[Yi[p]]-(t[fn[p]]+t[Yi[p]]);v=c(v,1-d),m=c(m,d);var g=$M[p][0],y=$M[p][1];s[g]=Ce(s[g],v),s[y]=Ce(s[y],m)}function c(h,p){return h>0&&!Gr(p)&&p>1e-4&&(h/=p),h}}function yB(t,e,r,i,a){var n=new u0(_B);return E(r,function(o){return E(o,function(s){if(Oo(s.model)){var l=!i;s.axisBuilder=eM(t,e,s.model,a,n,l)}})}),n}function eL(t,e,r,i,a,n){var o=r===Ar.determine;E(e,function(u){return E(u,function(f){Oo(f.model)&&(tM(f.axisBuilder,t,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:a}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[Yi[1-u]]=t[fn[u]]<=n.refContainer[fn[u]]*.5?0:1-u===1?2:1}E(e,function(u,f){return E(u,function(c){Oo(c.model)&&((i==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function xB(t,e,r){var i,a=t.get("outerBoundsMode",!0);a==="same"?i=e.clone():(a==null||a==="auto")&&(i=Xi(t.get("outerBounds",!0)||h0,r.refContainer));var n=t.get("outerBoundsContain",!0),o;n==null||n==="auto"||pe(["all","axisLabel"],n)<0?o="all":o=n;var s=[bc(q(t.get("outerBoundsClampWidth",!0),ju[0]),e.width),bc(q(t.get("outerBoundsClampHeight",!0),ju[1]),e.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var _B=function(t,e,r,i,a,n){var o=r.axis.dim==="x"?"y":"x";f0(t,e,r,i,a,n),xn(t.nameLocation)||E(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&c0(s.labelInfoList,s.dirVec,i,a)})},tL=dB;function rL(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return bB(r,t,e),r.seriesInvolved&&CB(r,t),r}function bB(t,e,r){var i=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),n=a.get("link",!0)||[],o=[];E(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=dl(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",i);if(E(s.getAxes(),ut(v,!1,null)),s.getTooltipAxes&&i&&c.get("show")){var h=c.get("trigger")==="axis",p=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(h||p)&&E(d.baseAxes,ut(v,p?"cross":!0,h)),p&&E(d.otherAxes,ut(v,"cross",!1))}function v(m,g,y){var x=y.model.getModel("axisPointer",a),_=x.get("show");if(!(!_||_==="auto"&&!m&&!M0(x))){g==null&&(g=x.get("triggerTooltip")),x=m?SB(y,c,a,e,m,g):x;var S=x.get("snap"),b=x.get("triggerEmphasis"),w=dl(y.model),M=g||S||y.type==="category",C=t.axesInfo[w]={key:w,axis:y,coordSys:s,axisPointerModel:x,triggerTooltip:g,triggerEmphasis:b,involveSeries:M,snap:S,useHandle:M0(x),seriesModels:[],linkGroup:null};u[w]=C,t.seriesInvolved=t.seriesInvolved||M;var T=wB(n,y);if(T!=null){var A=o[T]||(o[T]={axesInfo:{}});A.axesInfo[w]=C,A.mapper=n[T].mapper,C.linkGroup=A}}}})}function SB(t,e,r,i,a,n){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};E(s,function(h){l[h]=Q(o.get(h))}),l.snap=t.type!=="category"&&!!n,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!n){var c=l.lineStyle=o.get("crossStyle");c&&ue(u,c.textStyle)}}return t.model.getModel("axisPointer",new qe(l,r,i))}function CB(t,e){e.eachSeries(function(r){var i=r.coordinateSystem,a=r.get(["tooltip","trigger"],!0),n=r.get(["tooltip","show"],!0);!i||!i.model||a==="none"||a===!1||a==="item"||n===!1||r.get(["axisPointer","show"],!0)===!1||E(t.coordSysAxesInfo[dl(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function wB(t,e){for(var r=e.model,i=e.dim,a=0;a<t.length;a++){var n=t[a]||{};if(A0(n[i+"AxisId"],r.id)||A0(n[i+"AxisIndex"],r.componentIndex)||A0(n[i+"AxisName"],r.name))return a}}function A0(t,e){return t==="all"||z(t)&&pe(t,e)>=0||t===e}function iL(t){var e=yd(t);if(e){var r=e.axisPointerModel,i=e.axis.scale,a=r.option,n=r.get("status"),o=r.get("value");o!=null&&(o=i.parse(o));var s=M0(r);n==null&&(a.status=s?"show":"hide");var l=i.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}function yd(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[dl(t)]}function aL(t){var e=yd(t);return e&&e.axisPointerModel}function M0(t){return!!t.get(["handle","show"])}function dl(t){return t.type+"||"+t.id}var nL={},TB=(function(t){N(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,i,a,n){this.axisPointerClass&&iL(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,a,!0)},e.prototype.updateAxisPointer=function(r,i,a,n){this._doUpdateAxisPointerClass(r,a,!1)},e.prototype.remove=function(r,i){var a=this._axisPointer;a&&a.remove(i)},e.prototype.dispose=function(r,i){this._disposeAxisPointer(i),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,i,a){var n=e.getAxisPointerClass(this.axisPointerClass);if(n){var o=aL(r);o?(this._axisPointer||(this._axisPointer=new n)).render(r,o,i,a):this._disposeAxisPointer(i)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,i){nL[r]=i},e.getAxisPointerClass=function(r){return r&&nL[r]},e.type="axis",e})(Mt),xd=TB;var D0=ne();function oL(t,e,r,i){var a=r.axis;if(!a.scale.isBlank()){var n=r.getModel("splitArea"),o=n.getModel("areaStyle"),s=o.get("color"),l=i.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:n,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=D0(t).splitAreaColors,h=ee(),p=0;if(c)for(var d=0;d<u.length;d++){var v=c.get(u[d].tickValue);if(v!=null){p=(v+(f-1)*d)%f;break}}var m=a.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=z(s)?s:[s];for(var d=1;d<u.length;d++){var y=a.toGlobalCoord(u[d].coord),x=void 0,_=void 0,S=void 0,b=void 0;a.isHorizontal()?(x=m,_=l.y,S=y-x,b=l.height,m=x+S):(x=l.x,_=m,S=l.width,b=y-_,m=_+b);var w=u[d-1].tickValue;w!=null&&h.set(w,p),e.add(new Oe({anid:w!=null?"area_"+w:null,shape:{x,y:_,width:S,height:b},style:ue({fill:s[p]},g),autoBatch:!0,silent:!0})),p=(p+1)%f}D0(t).splitAreaColors=h}}}function sL(t){D0(t).splitAreaColors=null}var EB=["splitArea","splitLine","minorSplitLine","breakArea"],lL=(function(t){N(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,i,a,n){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new we,this.group.add(this._axisGroup),!!Oo(r)){this._axisGroup.add(r.axis.axisBuilder.group),E(EB,function(l){r.get([l,"show"])&&AB[l](this,this._axisGroup,r,r.getCoordSysModel(),a)},this);var s=n&&n.type==="changeAxisOrder"&&n.isInitSort;s||lg(o,this._axisGroup,r),t.prototype.render.call(this,r,i,a,n)}},e.prototype.remove=function(){sL(this)},e.type="cartesianAxis",e})(xd),AB={splitLine:function(t,e,r,i,a){var n=r.axis;if(!n.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=z(l)?l:[l];for(var c=i.coordinateSystem.getRect(),h=n.isHorizontal(),p=0,d=n.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),v=[],m=[],g=s.getLineStyle(),y=0;y<d.length;y++){var x=n.toGlobalCoord(d[y].coord);if(!(y===0&&!u||y===d.length-1&&!f)){var _=d[y].tickValue;h?(v[0]=x,v[1]=c.y,m[0]=x,m[1]=c.y+c.height):(v[0]=c.x,v[1]=x,m[0]=c.x+c.width,m[1]=x);var S=p++%l.length,b=new yi({anid:_!=null?"line_"+_:null,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:m[0],y2:m[1]},style:ue({stroke:l[S]},g),silent:!0});lo(b.shape,g.lineWidth),e.add(b)}}}},minorSplitLine:function(t,e,r,i,a){var n=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=i.coordinateSystem.getRect(),u=n.isHorizontal(),f=n.getMinorTicksCoords();if(f.length)for(var c=[],h=[],p=s.getLineStyle(),d=0;d<f.length;d++)for(var v=0;v<f[d].length;v++){var m=n.toGlobalCoord(f[d][v].coord);u?(c[0]=m,c[1]=l.y,h[0]=m,h[1]=l.y+l.height):(c[0]=l.x,c[1]=m,h[0]=l.x+l.width,h[1]=m);var g=new yi({anid:"minor_line_"+f[d][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:p,silent:!0});lo(g.shape,p.lineWidth),e.add(g)}},splitArea:function(t,e,r,i,a){oL(t,e,r,i)},breakArea:function(t,e,r,i,a){var n=Ro(),o=r.axis.scale;n&&o.type!=="ordinal"&&n.rectCoordBuildBreakAxis(e,t,r,i.coordinateSystem.getRect(),a)}},O0=(function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e})(lL);var uL=(function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=O0.type,r}return e.type="yAxis",e})(lL);var MB=(function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,i){this.group.removeAll(),r.get("show")&&this.group.add(new Oe({shape:r.coordinateSystem.getRect(),style:ue({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(Mt),fL={offset:0};function _d(t){t.registerComponentView(MB),t.registerComponentModel(sM),t.registerCoordinateSystem("cartesian2d",tL),md(t,"x",dd,fL),md(t,"y",dd,fL),t.registerComponentView(O0),t.registerComponentView(uL),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function I0(t){Ge(_d),t.registerSeriesModel(VM),t.registerChartView(FM),t.registerLayout(No("scatter"))}function P0(t){var e=t.polar;if(e){z(e)||(e=[e]);var r=[];E(e,function(i,a){i.indicator?(i.type&&!i.shape&&(i.shape=i.type),t.radar=t.radar||[],z(t.radar)||(t.radar=[t.radar]),t.radar.push(i)):r.push(i)}),t.polar=r}E(t.series,function(i){i&&i.type==="radar"&&i.polarIndex&&(i.radarIndex=i.polarIndex)})}var Uo="radar",LB=(function(t){N(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 pd(se(this.getData,this),se(this.getRawData,this))},e.prototype.getInitialData=function(r,i){return Qu(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(r,i,a){var n=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(r),u=l===""?this.name:l,f=$p(this,r);return qi("section",{header:u,sortBlocks:!0,blocks:B(s,function(c){var h=n.get(n.mapDimension(c.dim),r);return qi("nameValue",{markerType:"subItem",markerColor:f,name:c.name,value:h,sortParam:h})})})},e.prototype.getTooltipPosition=function(r){if(r!=null){for(var i=this.getData(),a=this.coordinateSystem,n=i.getValues(B(a.dimensions,function(u){return i.mapDimension(u)}),r),o=0,s=n.length;o<s;o++)if(!isNaN(n[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(n[o]),o)}}},e.type="series."+Uo,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})(At),cL=LB;var DB=(function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Uo,r}return e.prototype.render=function(r,i,a){var n=r.coordinateSystem,o=this.group,s=r.getData(),l=this._data;function u(h,p){var d=h.getItemVisual(p,"symbol")||"circle";if(d!=="none"){var v=nh(h.getItemVisual(p,"symbolSize")),m=Nt(d,-1,-1,2,2),g=h.getItemVisual(p,"symbolRotate")||0;return m.attr({style:{strokeNoScale:!0},z2:100,scaleX:v[0]/2,scaleY:v[1]/2,rotation:g*Math.PI/180||0}),m}}function f(h,p,d,v,m,g){d.removeAll();for(var y=0;y<p.length-1;y++){var x=u(v,m);x&&(x.__dimIdx=y,h[y]?(x.setPosition(h[y]),ot[g?"initProps":"updateProps"](x,{x:p[y][0],y:p[y][1]},r,m)):x.setPosition(p[y]),d.add(x))}}function c(h){return B(h,function(p){return[n.cx,n.cy]})}s.diff(l).add(function(h){var p=s.getItemLayout(h);if(p){var d=new xa,v=new gi,m={shape:{points:p}};d.shape.points=c(p),v.shape.points=c(p),Ze(d,m,r,h),Ze(v,m,r,h);var g=new we,y=new we;g.add(v),g.add(d),g.add(y),f(v.shape.points,p,y,s,h,!0),s.setItemGraphicEl(h,g)}}).update(function(h,p){var d=l.getItemGraphicEl(p),v=d.childAt(0),m=d.childAt(1),g=d.childAt(2),y={shape:{points:s.getItemLayout(h)}};y.shape.points&&(f(v.shape.points,y.shape.points,g,s,h,!1),ba(m),ba(v),Ve(v,y,r),Ve(m,y,r),s.setItemGraphicEl(h,d))}).remove(function(h){o.remove(l.getItemGraphicEl(h))}).execute(),s.eachItemGraphicEl(function(h,p){var d=s.getItemModel(p),v=h.childAt(0),m=h.childAt(1),g=h.childAt(2),y=s.getItemVisual(p,"style"),x=y.fill;o.add(h),v.useStyle(ue(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:x})),Gi(v,d,"lineStyle"),Gi(m,d,"areaStyle");var _=d.getModel("areaStyle"),S=_.isEmpty()&&_.parentModel.isEmpty();m.ignore=S,E(["emphasis","select","blur"],function(w){var M=d.getModel([w,"areaStyle"]),C=M.isEmpty()&&M.parentModel.isEmpty();m.ensureState(w).ignore=C&&S;var T=d.getModel([w,"lineStyle"]).getLineStyle();v.ensureState(w).style=T;var A=M.getAreaStyle();m.ensureState(w).style=A;var D=d.getModel([w,"itemStyle"]).getItemStyle();g.eachChild(function(L){L.ensureState(w).style=Q(D)})}),m.useStyle(ue(d.getModel("areaStyle").getAreaStyle(),{fill:x,opacity:.7,decal:y.decal}));var b=d.getModel("emphasis");g.eachChild(function(w){if(w instanceof rt){var M=w.style;w.useStyle(k({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},y))}else w.useStyle(y),w.setColor(x),w.style.strokeNoScale=!0;var C=s.getStore().get(s.getDimensionIndex(w.__dimIdx),p);(C==null||isNaN(C))&&(C=""),ei(w,ur(d),{labelFetcher:s.hostModel,labelDataIndex:p,labelDimIndex:w.__dimIdx,defaultText:C,inheritColor:x,defaultOpacity:y.opacity})}),kr(h,b.get("focus"),b.get("blurScope"),b.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type=Uo,e})(mt),pL=DB;var rf=vd.value,vl="radar",N0=vl,hL=vl,R0=5;function bd(t,e){return ue({show:e},t)}var OB=(function(t){N(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"),i=this.get("splitNumber"),a=this.get("clockwise"),n=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"),p=this.get("triggerEvent"),d=B(this.get("indicator")||[],function(v){v.max!=null&&v.max>0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var m=u;v.color!=null&&(m=ue({color:v.color},u));var g=Se(Q(v),{boundaryGap:r,splitNumber:i,clockwise:a,scale:n,axisLine:o,axisTick:s,axisLabel:l,name:v.text,showName:f,nameLocation:"end",nameGap:h,nameTextStyle:m,triggerEvent:p},!1);if(G(c)){var y=g.name;g.name=c.replace("{value}",y??"")}else j(c)&&(g.name=c(g.name,g));var x=new qe(g,null,this.ecModel);return Ut(x,zh.prototype),x.mainType="radar",x.componentIndex=this.componentIndex,x.uid=Wi("ec_radar"),x},this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type=N0,e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:oe.color.axisLabel},boundaryGap:[0,0],splitNumber:R0,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Se({lineStyle:{color:oe.color.neutral20}},rf.axisLine),axisLabel:bd(rf.axisLabel,!1),axisTick:bd(rf.axisTick,!1),splitLine:bd(rf.splitLine,!0),splitArea:bd(rf.splitArea,!0),indicator:[]},e})(Ie),dL=OB;var IB=(function(t){N(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,i,a){var n=this.group;n.removeAll(),this._buildAxes(r,a),this._buildSplitLineAndArea(r)},e.prototype._buildAxes=function(r,i){var a=r.coordinateSystem,n=a.getIndicatorAxes(),o=B(n,function(s){var l=s.model.get("showName")?s.name:"",u=new hl(s.model,i,{axisName:l,position:[a.cx,a.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});E(o,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(r){var i=r.coordinateSystem,a=i.getIndicatorAxes();if(!a.length)return;var n=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"),p=u.get("color"),d=z(h)?h:[h],v=z(p)?p:[p],m=[],g=[];function y(I,P,V){var R=V%P.length;return I[R]=I[R]||[],R}if(n==="circle")for(var x=a[0].getTicksCoords(),_=i.cx,S=i.cy,b=0;b<x.length;b++){if(f){var w=y(m,d,b);m[w].push(new io({shape:{cx:_,cy:S,r:x[b].coord}}))}if(c&&b<x.length-1){var w=y(g,v,b);g[w].push(new uu({shape:{cx:_,cy:S,r0:x[b].coord,r:x[b+1].coord}}))}}else for(var M,C=B(a,function(I,P){var V=I.getTicksCoords();return M=M==null?V.length-1:Math.min(V.length-1,M),B(V,function(R){return i.coordToPoint(R.coord,P)})}),T=[],b=0;b<=M;b++){for(var A=[],D=0;D<a.length;D++)A.push(C[D][b]);if(A[0]&&A.push(A[0].slice()),f){var w=y(m,d,b);m[w].push(new gi({shape:{points:A}}))}if(c&&T){var w=y(g,v,b-1);g[w].push(new xa({shape:{points:A.concat(T)}}))}T=A.slice().reverse()}var L=l.getLineStyle(),O=u.getAreaStyle();E(g,function(I,P){this.group.add(op(I,{style:ue({stroke:"none",fill:v[P%v.length]},O),silent:!0}))},this),E(m,function(I,P){this.group.add(op(I,{style:ue({fill:"none",stroke:d[P%d.length]},L),silent:!0}))},this)},e.type="radar",e})(Mt),vL=IB;var PB=(function(t){N(e,t);function e(r,i,a){var n=t.call(this,r,i,a)||this;return n.type="value",n.angle=0,n.name="",n}return e})(Wh),mL=PB;var NB=(function(){function t(e,r,i){this.type=vl,this.dimensions=[],this._model=e,this._indicatorAxes=B(e.getIndicatorModels(),function(a,n){var o="indicator_"+n,s=new mL(o,new Ji);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(e,i)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(e,r){var i=this._indicatorAxes[r];return this.coordToPoint(i.dataToCoord(e),r)},t.prototype.coordToPoint=function(e,r){var i=this._indicatorAxes[r],a=i.angle,n=this.cx+e*Math.cos(a),o=this.cy-e*Math.sin(a);return[n,o]},t.prototype.pointToData=function(e){var r=e[0]-this.cx,i=e[1]-this.cy,a=Math.sqrt(r*r+i*i);r/=a,i/=a;for(var n=Math.atan2(-i,r),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],c=Math.abs(n-f.angle);c<o&&(s=f,l=u,o=c)}return[l,+(s&&s.coordToData(a))]},t.prototype.resize=function(e,r){var i=go(e,r).refContainer,a=e.get("center"),n=e.get("clockwise")||!1,o=Math.min(i.width,i.height)/2;this.cx=Ee(a[0],i.width)+i.x,this.cy=Ee(a[1],i.height)+i.y,this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(G(s)||me(s))&&(s=[0,s]),this.r0=Ee(s[0],o),this.r=Ee(s[1],o);var l=n?-1:1;E(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 i=this._indicatorAxes,a=this._model,n=Lo(a.get("splitNumber"),R0),o=new Ji;o.setExtent(0,n),o.setConfig({interval:1}),E(i,function(s){Hh(s,Fh),gd(s,o)})},t.prototype.convertToPixel=function(e,r,i){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(e,r,i){return console.warn("Not implemented."),null},t.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},t.create=function(e,r){var i=[];return e.eachComponent(N0,function(a){var n=new t(a,e,r);i.push(n),a.coordinateSystem=n}),e.eachSeriesByType(hL,function(a){if(a.get("coordinateSystem")===vl){var n=a.coordinateSystem=i[a.get("radarIndex")||0];n&&E(n.getIndicatorAxes(),function(o){Uu(o,a,vl)})}}),i},t.dimensions=[],t})(),gL=NB;function af(t){t.registerCoordinateSystem("radar",gL),t.registerComponentModel(dL),t.registerComponentView(vL),t.registerVisual({seriesType:"radar",reset:function(e){var r=e.getData();r.each(function(i){r.setItemVisual(i,"legendIcon","roundRect")}),r.setVisual("legendIcon","roundRect")}})}var _L=Dc(Uo,RB);function RB(t){t.eachSeriesByType(Uo,function(e){var r=e.getData(),i=[],a=e.coordinateSystem;if(a){var n=a.getIndicatorAxes();E(n,function(o,s){r.each(r.mapDimension(n[s].dim),function(l,u){i[u]=i[u]||[];var f=a.dataToPoint(l,s);i[u][s]=yL(f)?f:xL(a)})}),r.each(function(o){var s=es(i[o],function(l){return yL(l)})||xL(a);i[o].push(s.slice()),r.setItemLayout(o,i[o])})}})}function yL(t){return!isNaN(t[0])&&!isNaN(t[1])}function xL(t){return[t.cx,t.cy]}function k0(t){Ge(af),t.registerChartView(pL),t.registerSeriesModel(cL),t.registerLayout(_L),t.registerProcessor(Ju("radar")),t.registerPreprocessor(P0)}var sf=E,kB=$,wd=-1,B0=(function(){function t(e){var r=e.mappingMethod,i=e.type,a=this.option=Q(e);this.type=i,this.mappingMethod=r,this._normalizeData=UB[r];var n=t.visualHandlers[i];this.applyVisual=n.applyVisual,this.getColorMapper=n.getColorMapper,this._normalizedToVisual=n._normalizedToVisual[r],r==="piecewise"?(z0(a),zB(a)):r==="category"?a.categories?VB(a):z0(a,!0):($e(r!=="linear"||a.dataExtent),z0(a))}return t.prototype.mapValueToVisual=function(e){var r=this._normalizeData(e);return this._normalizedToVisual(r,e)},t.prototype.getNormalizer=function(){return se(this._normalizeData,this)},t.listVisualTypes=function(){return ae(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(e,r,i){$(e)?E(e,r,i):r.call(i,e)},t.mapVisual=function(e,r,i){var a,n=z(e)?[]:$(e)?{}:(a=!0,null);return t.eachVisual(e,function(o,s){var l=r.call(i,o,s);a?n=l:n[s]=l}),n},t.retrieveVisuals=function(e){var r={},i;return e&&sf(t.visualHandlers,function(a,n){e.hasOwnProperty(n)&&(r[n]=e[n],i=!0)}),i?r:null},t.prepareVisualTypes=function(e){if(z(e))e=e.slice();else if(kB(e)){var r=[];sf(e,function(i,a){r.push(a)}),e=r}else return[];return e.sort(function(i,a){return a==="color"&&i!=="color"&&i.indexOf("color")===0?1:-1}),e},t.dependsOn=function(e,r){return r==="color"?!!(e&&e.indexOf(r)===0):e===r},t.findPieceIndex=function(e,r,i){for(var a,n=1/0,o=0,s=r.length;o<s;o++){var l=r[o].value;if(l!=null){if(l===e||G(l)&&l===e+"")return o;i&&h(l,o)}}for(var o=0,s=r.length;o<s;o++){var u=r[o],f=u.interval,c=u.close;if(f){if(f[0]===-1/0){if(Cd(c[1],e,f[1]))return o}else if(f[1]===1/0){if(Cd(c[0],f[0],e))return o}else if(Cd(c[0],f[0],e)&&Cd(c[1],e,f[1]))return o;i&&h(f[0],o),i&&h(f[1],o)}}if(i)return e===1/0?r.length-1:e===-1/0?0:a;function h(p,d){var v=Math.abs(p-e);v<n&&(n=v,a=d)}},t.visualHandlers={color:{applyVisual:nf("color"),getColorMapper:function(){var e=this.option;return se(e.mappingMethod==="category"?function(r,i){return!i&&(r=this._normalizeData(r)),of.call(this,r)}:function(r,i,a){var n=!!a;return!i&&(r=this._normalizeData(r)),a=ec(r,e.parsedVisual,a),n?a:Di(a,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Di(ec(e,this.option.parsedVisual),"rgba")},category:of,piecewise:function(e,r){var i=U0.call(this,r);return i==null&&(i=Di(ec(e,this.option.parsedVisual),"rgba")),i},fixed:Bo}},colorHue:Sd(function(e,r){return fa(e,r)}),colorSaturation:Sd(function(e,r){return fa(e,null,r)}),colorLightness:Sd(function(e,r){return fa(e,null,null,r)}),colorAlpha:Sd(function(e,r){return Q_(e,r)}),decal:{applyVisual:nf("decal"),_normalizedToVisual:{linear:null,category:of,piecewise:null,fixed:null}},opacity:{applyVisual:nf("opacity"),_normalizedToVisual:V0([0,1])},liftZ:{applyVisual:nf("liftZ"),_normalizedToVisual:{linear:Bo,category:Bo,piecewise:Bo,fixed:Bo}},symbol:{applyVisual:function(e,r,i){var a=this.mapValueToVisual(e);i("symbol",a)},_normalizedToVisual:{linear:bL,category:of,piecewise:function(e,r){var i=U0.call(this,r);return i==null&&(i=bL.call(this,e)),i},fixed:Bo}},symbolSize:{applyVisual:nf("symbolSize"),_normalizedToVisual:V0([0,1])}},t})();function zB(t){var e=t.pieceList;t.hasSpecialVisual=!1,E(e,function(r,i){r.originIndex=i,r.visual!=null&&(t.hasSpecialVisual=!0)})}function VB(t){var e=t.categories,r=t.categoryMap={},i=t.visual;if(sf(e,function(o,s){r[o]=s}),!z(i)){var a=[];$(i)?sf(i,function(o,s){var l=r[s];a[l??wd]=o}):a[wd]=i,i=SL(t,a)}for(var n=e.length-1;n>=0;n--)i[n]==null&&(delete r[e[n]],e.pop())}function z0(t,e){var r=t.visual,i=[];$(r)?sf(r,function(n){i.push(n)}):r!=null&&i.push(r);var a={color:1,symbol:1};!e&&i.length===1&&!a.hasOwnProperty(t.type)&&(i[1]=i[0]),SL(t,i)}function Sd(t){return{applyVisual:function(e,r,i){var a=this.mapValueToVisual(e);i("color",t(r("color"),a))},_normalizedToVisual:V0([0,1])}}function bL(t){var e=this.option.visual;return e[Math.round(or(t,[0,1],[0,e.length-1],!0))]||{}}function nf(t){return function(e,r,i){i(t,this.mapValueToVisual(e))}}function of(t){var e=this.option.visual;return e[this.option.loop&&t!==wd?t%e.length:t]}function Bo(){return this.option.visual[0]}function V0(t){return{linear:function(e){return or(e,t,this.option.visual,!0)},category:of,piecewise:function(e,r){var i=U0.call(this,r);return i==null&&(i=or(e,t,this.option.visual,!0)),i},fixed:Bo}}function U0(t){var e=this.option,r=e.pieceList;if(e.hasSpecialVisual){var i=B0.findPieceIndex(t,r),a=r[i];if(a&&a.visual)return a.visual[this.type]}}function SL(t,e){return t.visual=e,t.type==="color"&&(t.parsedVisual=B(e,function(r){var i=Wt(r);return i||[0,0,0,1]})),e}var UB={linear:function(t){return or(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,r=B0.findPieceIndex(t,e,!0);if(r!=null)return or(r,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return e??wd},fixed:Xe};function Cd(t,e,r){return t?e<=r:e<r}var Lt=B0;function H0(t,e,r,i,a,n){t=t||0;var o=ha(r[1],-r[0]);if(a!=null&&(a=ml(a,[0,o])),n!=null&&(n=Math.max(n,a??0)),i==="all"){var s=Math.abs(ha(e[1],-e[0]));s=ml(s,[0,o]),a=n=ml(s,[a,n]),i=0}e[0]=ml(e[0],r),e[1]=ml(e[1],r);var l=F0(e,i);e[i]+=t;var u=a||0,f=r.slice();l.sign<0?f[0]=ha(f[0],u):f[1]=ha(f[1],-u),e[i]=ml(e[i],f);var c;return c=F0(e,i),a!=null&&(c.sign!==l.sign||c.span<a)&&(e[1-i]=ha(e[i],l.sign*a)),c=F0(e,i),n!=null&&c.span>n&&(e[1-i]=ha(e[i],c.sign*n)),e}function F0(t,e){var r=t[e]-t[1-e];return{span:Math.abs(r),sign:r>0?-1:r<0?1:e?-1:1}}function ml(t,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,t))}var BB=256,FB=(function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=St.createCanvas();this.canvas=e}return t.prototype.update=function(e,r,i,a,n,o){var s=this._getBrush(),l=this._getGradient(n,"inRange"),u=this._getGradient(n,"outOfRange"),f=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),p=e.length;c.width=r,c.height=i;for(var d=0;d<p;++d){var v=e[d],m=v[0],g=v[1],y=v[2],x=a(y);h.globalAlpha=x,h.drawImage(s,m-f,g-f)}if(!c.width||!c.height)return c;for(var _=h.getImageData(0,0,c.width,c.height),S=_.data,b=0,w=S.length,M=this.minOpacity,C=this.maxOpacity,T=C-M;b<w;){var x=S[b+3]/256,A=Math.floor(x*(BB-1))*4;if(x>0){var D=o(x)?l:u;x>0&&(x=x*T+M),S[b++]=D[A],S[b++]=D[A+1],S[b++]=D[A+2],S[b++]=D[A+3]*x*256}else b+=4}return h.putImageData(_,0,0),c},t.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=St.createCanvas()),r=this.pointSize+this.blurSize,i=r*2;e.width=i,e.height=i;var a=e.getContext("2d");return a.clearRect(0,0,i,i),a.shadowOffsetX=i,a.shadowBlur=this.blurSize,a.shadowColor=oe.color.neutral99,a.beginPath(),a.arc(-r,r,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},t.prototype._getGradient=function(e,r){for(var i=this._gradientPixels,a=i[r]||(i[r]=new Uint8ClampedArray(256*4)),n=[0,0,0,0],o=0,s=0;s<256;s++)e[r](s/255,!0,n),a[o++]=n[0],a[o++]=n[1],a[o++]=n[2],a[o++]=n[3];return a},t})(),CL=FB;function HB(t,e,r){var i=t[1]-t[0];e=B(e,function(o){return{interval:[(o.interval[0]-t[0])/i,(o.interval[1]-t[0])/i]}});var a=e.length,n=0;return function(o){var s;for(s=n;s<a;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){n=s;break}}if(s===a)for(s=n-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){n=s;break}}return s>=0&&s<a&&r[s]}}function GB(t,e){var r=t[1]-t[0];return e=[(e[0]-t[0])/r,(e[1]-t[0])/r],function(i){return i>=e[0]&&i<=e[1]}}var KB=(function(t){N(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,i,a){var n;i.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===r&&(n=s)})}),this._progressiveEls=null,this.group.removeAll();var o=r.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(r,a,0,r.getData().count()):n0(o)&&this._renderOnGeo(o,r,n,a)},e.prototype.incrementalPrepareRender=function(r,i,a){this.group.removeAll()},e.prototype.incrementalRender=function(r,i,a,n){var o=i.coordinateSystem;o&&(n0(o)?this.render(i,a,n):(this._progressiveEls=[],this._renderOnGridLike(i,n,r.start,r.end,!0)))},e.prototype.eachRendered=function(r){Sa(this._progressiveEls||this.group,r)},e.prototype._renderOnGridLike=function(r,i,a,n,o){var s=r.coordinateSystem,l=Po(s,"cartesian2d"),u=Po(s,"matrix"),f,c,h,p;if(l){var d=s.getAxis("x"),v=s.getAxis("y");f=Mr(d).w+.5,c=Mr(v).w+.5,h=d.scale.getExtent(),p=v.scale.getExtent()}for(var m=this.group,g=r.getData(),y=r.getModel(["emphasis","itemStyle"]).getItemStyle(),x=r.getModel(["blur","itemStyle"]).getItemStyle(),_=r.getModel(["select","itemStyle"]).getItemStyle(),S=r.get(["itemStyle","borderRadius"]),b=ur(r),w=r.getModel("emphasis"),M=w.get("focus"),C=w.get("blurScope"),T=w.get("disabled"),A=l||u?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],D=a;D<n;D++){var L=void 0,O=g.getItemVisual(D,"style");if(l){var I=g.get(A[0],D),P=g.get(A[1],D);if(isNaN(g.get(A[2],D))||isNaN(I)||isNaN(P)||I<h[0]||I>h[1]||P<p[0]||P>p[1])continue;var V=s.dataToPoint([I,P]);L=new Oe({shape:{x:V[0]-f/2,y:V[1]-c/2,width:f,height:c},style:O})}else if(u){var R=s.dataToLayout([g.get(A[0],D),g.get(A[1],D)]).rect;if(Gr(R.x))continue;L=new Oe({z2:1,shape:R,style:O})}else{if(isNaN(g.get(A[1],D)))continue;var U=s.dataToLayout([g.get(A[0],D)]),R=U.contentRect||U.rect;if(Gr(R.x)||Gr(R.y))continue;L=new Oe({z2:1,shape:R,style:O})}if(g.hasItemOption){var F=g.getItemModel(D),K=F.getModel("emphasis");y=K.getModel("itemStyle").getItemStyle(),x=F.getModel(["blur","itemStyle"]).getItemStyle(),_=F.getModel(["select","itemStyle"]).getItemStyle(),S=F.get(["itemStyle","borderRadius"]),M=K.get("focus"),C=K.get("blurScope"),T=K.get("disabled"),b=ur(F)}L.shape.r=S;var X=r.getRawValue(D),re="-";X&&X[2]!=null&&(re=X[2]+""),ei(L,b,{labelFetcher:r,labelDataIndex:D,defaultOpacity:O.opacity,defaultText:re}),L.ensureState("emphasis").style=y,L.ensureState("blur").style=x,L.ensureState("select").style=_,kr(L,M,C,T),L.incremental=bs(r,o),o&&(L.states.emphasis.hoverLayer=so),m.add(L),g.setItemGraphicEl(D,L),this._progressiveEls&&this._progressiveEls.push(L)}},e.prototype._renderOnGeo=function(r,i,a,n){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=i.getData(),u=this._hmLayer||this._hmLayer||new CL;u.blurSize=i.get("blurSize"),u.pointSize=i.get("pointSize"),u.minOpacity=i.get("minOpacity"),u.maxOpacity=i.get("maxOpacity");var f=r.getViewRect().clone(),c=r.getRoamTransform();f.applyTransform(c);var h=Math.max(f.x,0),p=Math.max(f.y,0),d=Math.min(f.width+f.x,n.getWidth()),v=Math.min(f.height+f.y,n.getHeight()),m=d-h,g=v-p,y=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],x=l.mapArray(y,function(w,M,C){var T=r.dataToPoint([w,M]);return T[0]-=h,T[1]-=p,T.push(C),T}),_=a.getExtent(),S=a.type==="visualMap.continuous"?GB(_,a.option.range):HB(_,a.getPieceList(),a.option.selected);u.update(x,m,g,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},S);var b=new rt({style:{width:m,height:g,x:h,y:p,image:u.canvas},silent:!0});this.group.add(b)},e.type="heatmap",e})(mt),wL=KB;var YB=(function(t){N(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,i){return Zi(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var r=mo.get(this.get("coordinateSystem"));if(r&&r.dimensions)return r.dimensions[0]==="lng"&&r.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:oe.color.primary}}},e})(At),TL=YB;function G0(t){t.registerChartView(wL),t.registerSeriesModel(TL)}var ML={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},EL=ae(ML),cae=ir($r,function(t,e){return t[e]=1,t},{}),pae=$r.join(", "),lf=["","style","shape","extra"],gl=ne();function Y0(t,e,r,i,a){var n=t+"Animation",o=cu(t,i,a)||{},s=gl(e).userDuring;return o.duration>0&&(o.during=s?se(ZB,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=t),k(o,r[n]),o}function Td(t,e,r,i){i=i||{};var a=i.dataIndex,n=i.isInit,o=i.clearStyle,s=r.isAnimationEnabled(),l=gl(t),u=e.style;l.userDuring=e.during;var f={},c={};if(JB(t,e,c),t.type==="compound")for(var h=t.shape.paths,p=e.shape.paths,d=0;d<p.length;d++){var v=p[d];K0("shape",v,h[d])}else K0("shape",e,c),K0("extra",e,c);if(!n&&s&&(jB(t,e,f),AL("shape",t,e,f),AL("extra",t,e,f),QB(t,e,u,f)),c.style=u,WB(t,c,o),XB(t,e),s)if(n){var m={};E(lf,function(y){var x=y?e[y]:e;x&&x.enterFrom&&(y&&(m[y]=m[y]||{}),k(y?m[y]:m,x.enterFrom))});var g=Y0("enter",t,e,r,a);g.duration>0&&t.animateFrom(m,g)}else $B(t,e,a||0,r,f);W0(t,e),u?t.dirty():t.markRedraw()}function W0(t,e){for(var r=gl(t).leaveToProps,i=0;i<lf.length;i++){var a=lf[i],n=a?e[a]:e;n&&n.leaveTo&&(r||(r=gl(t).leaveToProps={}),a&&(r[a]=r[a]||{}),k(a?r[a]:r,n.leaveTo))}}function LL(t,e,r,i){if(t){var a=t.parent,n=gl(t).leaveToProps;if(n){var o=Y0("update",t,e,r,0);o.done=function(){a&&a.remove(t),i&&i()},t.animateTo(n,o)}else a&&a.remove(t),i&&i()}}function Tn(t){return t==="all"}function WB(t,e,r){var i=e.style;if(!t.isGroup&&i){if(r){t.useStyle({});for(var a=t.animators,n=0;n<a.length;n++){var o=a[n];o.targetName==="style"&&o.changeTarget(t.style)}}t.setStyle(i)}e&&(e.style=null,e&&t.attr(e),e.style=i)}function $B(t,e,r,i,a){if(a){var n=Y0("update",t,e,i,r);n.duration>0&&t.animateFrom(a,n)}}function XB(t,e){le(e,"silent")&&(t.silent=e.silent),le(e,"ignore")&&(t.ignore=e.ignore),t instanceof br&&le(e,"invisible")&&(t.invisible=e.invisible),t instanceof he&&le(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var ta={},qB={setTransform:function(t,e){return ta.el[t]=e,this},getTransform:function(t){return ta.el[t]},setShape:function(t,e){var r=ta.el,i=r.shape||(r.shape={});return i[t]=e,r.dirtyShape&&r.dirtyShape(),this},getShape:function(t){var e=ta.el.shape;if(e)return e[t]},setStyle:function(t,e){var r=ta.el,i=r.style;return i&&(i[t]=e,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(t){var e=ta.el.style;if(e)return e[t]},setExtra:function(t,e){var r=ta.el.extra||(ta.el.extra={});return r[t]=e,this},getExtra:function(t){var e=ta.el.extra;if(e)return e[t]}};function ZB(){var t=this,e=t.el;if(e){var r=gl(e).userDuring,i=t.userDuring;if(r!==i){t.el=t.userDuring=null;return}ta.el=e,i(qB)}}function AL(t,e,r,i){var a=r[t];if(a){var n=e[t],o;if(n){var s=r.transition,l=a.transition;if(l)if(!o&&(o=i[t]={}),Tn(l))k(o,n);else for(var u=Fe(l),f=0;f<u.length;f++){var c=u[f],h=n[c];o[c]=h}else if(Tn(s)||pe(s,t)>=0){!o&&(o=i[t]={});for(var p=ae(n),f=0;f<p.length;f++){var c=p[f],h=n[c];eF(a[c],h)&&(o[c]=h)}}}}}function K0(t,e,r){var i=e[t];if(i)for(var a=r[t]={},n=ae(i),o=0;o<n.length;o++){var s=n[o];a[s]=Vn(i[s])}}function jB(t,e,r){for(var i=e.transition,a=Tn(i)?$r:Fe(i||[]),n=0;n<a.length;n++){var o=a[n];if(!(o==="style"||o==="shape"||o==="extra")){var s=t[o];r[o]=s}}}function JB(t,e,r){for(var i=0;i<EL.length;i++){var a=EL[i],n=ML[a],o=e[a];o&&(r[n[0]]=o[0],r[n[1]]=o[1])}for(var i=0;i<$r.length;i++){var s=$r[i];e[s]!=null&&(r[s]=e[s])}}function QB(t,e,r,i){if(r){var a=t.style,n;if(a){var o=r.transition,s=e.transition;if(o&&!Tn(o)){var l=Fe(o);!n&&(n=i.style={});for(var u=0;u<l.length;u++){var f=l[u],c=a[f];n[f]=c}}else if(t.getAnimationStyleProps&&(Tn(s)||Tn(o)||pe(s,"style")>=0)){var h=t.getAnimationStyleProps(),p=h?h.style:null;if(p){!n&&(n=i.style={});for(var d=ae(r),u=0;u<d.length;u++){var f=d[u];if(p[f]){var c=a[f];n[f]=c}}}}}}}function eF(t,e){return lt(t)?t!==e:t!=null&&isFinite(t)}var DL=ne(),tF=["percent","easing","shape","style","extra"];function OL(t){t.stopAnimation("keyframe"),t.attr(DL(t))}function Ed(t,e,r){if(!(!r.isAnimationEnabled()||!e)){if(z(e)){E(e,function(s){Ed(t,s,r)});return}var i=e.keyframes,a=e.duration;if(r&&a==null){var n=cu("enter",r,0);a=n&&n.duration}if(!(!i||!a)){var o=DL(t);E(lf,function(s){if(!(s&&!t[s])){var l,u=!1;i.sort(function(f,c){return f.percent-c.percent}),E(i,function(f){var c=t.animators,h=s?f[s]:f;if(h){var p=ae(h);if(s||(p=ke(p,function(m){return pe(tF,m)<0})),!!p.length){l||(l=t.animate(s,e.loop,!0),l.scope="keyframe");for(var d=0;d<c.length;d++)c[d]!==l&&c[d].targetName===l.targetName&&c[d].stopTracks(p);s&&(o[s]=o[s]||{});var v=s?o[s]:o;E(p,function(m){v[m]=((s?t[s]:t)||{})[m]}),l.whenWithKeys(a*f.percent,h,p,f.easing)}}}),l&&l.delay(e.delay||0).duration(a).start(e.easing)}})}}}var Fo=ne(),IL=Q,$0=se,rF=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,i,a){var n=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=i,!(!a&&this._lastValue===n&&this._lastStatus===o)){this._lastValue=n,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,n,e,r,i);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new we,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),i.getZr().add(s);else{var h=ut(PL,r,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,r)}RL(s,r,!0),this._renderHandle(n)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var i=r.get("animation"),a=e.axis,n=a.type==="category",o=r.get("snap");if(!o&&!n)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(n&&Mr(a).w>s)return!0;if(o){var l=yd(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},t.prototype.makeElOption=function(e,r,i,a,n){},t.prototype.createPointerEl=function(e,r,i,a){var n=r.pointer;if(n){var o=Fo(e).pointerEl=new ot[n.type](IL(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,i,a){if(r.label){var n=Fo(e).labelEl=new Pe(IL(r.label));e.add(n),NL(n,a)}},t.prototype.updatePointerEl=function(e,r,i){var a=Fo(e).pointerEl;a&&r.pointer&&(a.setStyle(r.pointer.style),i(a,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,i,a){var n=Fo(e).labelEl;n&&(n.setStyle(r.label.style),i(n,{x:r.label.x,y:r.label.y}),NL(n,a))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,i=this._api.getZr(),a=this._handle,n=r.getModel("handle"),o=r.get("status");if(!n.get("show")||!o||o==="hide"){a&&i.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=ug(n.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Ga(u.event)},onmousedown:$0(this._onHandleDragMove,this,0,0),drift:$0(this._onHandleDragMove,this),ondragend:$0(this._onHandleDragEnd,this)}),i.add(a)),RL(a,r,!1),a.setStyle(n.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=n.get("size");z(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Qp(this,"_doDispatchAxisPointer",n.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){PL(this._axisPointerModel,!r&&this._moveAnimation,this._handle,X0(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var i=this._handle;if(i){this._dragging=!0;var a=this.updateHandleTransform(X0(i),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=a,i.stopAnimation(),i.attr(X0(a)),Fo(i).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.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(),i=this._group,a=this._handle;r&&i&&(this._lastGraphicKey=null,i&&r.remove(i),a&&r.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),wu(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,i){return i=i||0,{x:e[i],y:e[1-i],width:r[i],height:r[1-i]}},t})();function PL(t,e,r,i){kL(Fo(r).lastProp,i)||(Fo(r).lastProp=i,e?Ve(r,i,t):(r.stopAnimation(),r.attr(i)))}function kL(t,e){if($(t)&&$(e)){var r=!0;return E(e,function(i,a){r=r&&kL(t[a],i)}),!!r}else return t===e}function NL(t,e){t[e.get(["label","show"])?"show":"hide"]()}function X0(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function RL(t,e,r){var i=e.get("z"),a=e.get("zlevel");t&&t.traverse(function(n){n.type!=="group"&&(i!=null&&(n.z=i),a!=null&&(n.zlevel=a),n.silent=r)})}var zL=rF;function VL(t){var e=t.get("type"),r=t.getModel(e+"Style"),i;return e==="line"?(i=r.getLineStyle(),i.fill=null):e==="shadow"&&(i=r.getAreaStyle(),i.stroke=null),i}function iF(t,e,r,i,a){var n=r.get("value"),o=q0(n,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=$i(s.get("padding")||0),u=s.getFont(),f=mc(o,u),c=a.position,h=f.width+l[1]+l[3],p=f.height+l[0]+l[2],d=a.align;d==="right"&&(c[0]-=h),d==="center"&&(c[0]-=h/2);var v=a.verticalAlign;v==="bottom"&&(c[1]-=p),v==="middle"&&(c[1]-=p/2),aF(c,h,p,i);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:wr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function aF(t,e,r,i){var a=i.getWidth(),n=i.getHeight();t[0]=Math.min(t[0]+e,a)-e,t[1]=Math.min(t[1]+r,n)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function q0(t,e,r,i,a){t=e.scale.parse(t);var n=e.scale.getLabel({value:t},{precision:a.precision}),o=a.formatter;if(o){var s={value:ll(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};E(i,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),G(o)?n=o.replace("{value}",n):j(o)&&(n=o(s))}return n}function Z0(t,e,r){var i=nr();return os(i,i,r.rotation),Ll(i,i,r.position),cn([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],i)}function UL(t,e,r,i,a,n){var o=hl.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=a.get(["label","margin"]),iF(e,i,a,n,{position:Z0(i.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function BL(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function FL(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function HL(t,e,r){return Mr(t,{fromStat:{sers:B(e,function(i){return r.getSeriesByIndex(i.seriesIndex)})},min:1}).w}function GL(t,e,r){return[Ce(nt(e[0],e[1]),t-r/2),nt(t+r/2,Ce(e[0],e[1]))]}var nF=(function(t){N(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,i,a,n,o){var s=a.axis,l=s.grid,u=n.get("type"),f=s.getGlobalExtent(),c=YL(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var p=VL(n),d=oF[u](s,h,f,c,n.get("seriesDataIndices"),n.ecModel);d.style=p,r.graphicKey=d.type,r.pointer=d}var v=qu(l.getRect(),a);UL(i,r,v,a,n,o)},e.prototype.getHandleTransform=function(r,i,a){var n=qu(i.axis.grid.getRect(),i,{labelInside:!1});n.labelMargin=a.get(["handle","margin"]);var o=Z0(i.axis,r,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,i,a,n){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=YL(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=i[f],c[f]=nt(l[1],c[f]),c[f]=Ce(l[0],c[f]);var h=(u[1]+u[0])/2,p=[h,h];p[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:p,tooltipOption:d[f]}},e})(zL);function YL(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var oF={line:function(t,e,r,i){var a=BL([e,i[0]],[e,i[1]],WL(t));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(t,e,r,i,a,n){var o=HL(t,a,n),s=i[1]-i[0],l=GL(e,r,o),u=l[0],f=l[1];return{type:"Rect",shape:FL([u,i[0]],[f-u,s],WL(t))}}};function WL(t){return t.dim==="x"?0:1}var $L=nF;var sF=(function(t){N(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:oe.color.border,width:1,type:"dashed"},shadowStyle:{color:oe.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:oe.color.neutral00,padding:[5,7,5,7],backgroundColor:oe.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:oe.color.accent40,throttle:40}},e})(Ie),XL=sF;var Pa=ne(),lF=E;function Ad(t,e,r){if(!ye.node){var i=e.getZr();Pa(i).records||(Pa(i).records={}),uF(i,e);var a=Pa(i).records[t]||(Pa(i).records[t]={});a.handler=r}}function uF(t,e){if(Pa(t).initialized)return;Pa(t).initialized=!0,r("click",ut(j0,"click")),r("mousemove",ut(j0,"mousemove")),r("mousewheel",ut(j0,"mousewheel")),r("globalout",cF);function r(i,a){t.on(i,function(n){var o=pF(e);lF(Pa(t).records,function(s){s&&a(s,n,o.dispatchAction)}),fF(o.pendings,e)})}}function fF(t,e){var r=t.showTip.length,i=t.hideTip.length,a;r?a=t.showTip[r-1]:i&&(a=t.hideTip[i-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function cF(t,e,r){t.handler("leave",null,r)}function j0(t,e,r,i){e.handler(t,r,i)}function pF(t){var e={showTip:[],hideTip:[]},r=function(i){var a=e[i.type];a?a.push(i):(i.dispatchAction=r,t.dispatchAction(i))};return{dispatchAction:r,pendings:e}}function uf(t,e){if(!ye.node){var r=e.getZr(),i=(Pa(r).records||{})[t];i&&(Pa(r).records[t]=null)}}var hF=(function(t){N(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,i,a){var n=i.getComponent("tooltip"),o=r.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click|mousewheel";Ad("axisPointer",a,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,i){uf("axisPointer",i)},e.prototype.dispose=function(r,i){uf("axisPointer",i)},e.type="axisPointer",e})(Mt),ZL=hF;function ff(t,e){var r=[],i=t.seriesIndex,a;if(i==null||!(a=e.getSeriesByIndex(i)))return{point:[]};var n=a.getData(),o=Xr(n,t);if(o==null||o<0||z(o))return{point:[]};var s=n.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)r=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,p=c==="x"||c==="radius"?1:0,d=n.mapDimension(h),v=[];v[p]=n.get(d,o),v[1-p]=n.get(n.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(v)||[]}else r=l.dataToPoint(n.getValues(B(l.dimensions,function(g){return n.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),r=[m.x+m.width/2,m.y+m.height/2]}return{point:r,el:s}}var jL=ne();function J0(t,e,r){var i=t.currTrigger,a=[t.x,t.y],n=t,o=t.dispatchAction||se(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Md(a)&&(a=ff({seriesIndex:n.seriesIndex,dataIndex:n.dataIndex},e).point);var l=Md(a),u=n.axesInfo,f=s.axesInfo,c=i==="leave"||Md(a),h={},p={},d={list:[],map:{}},v={showPointer:ut(vF,p),showTooltip:ut(mF,d)};E(s.coordSysMap,function(g,y){var x=l||g.containPoint(a);E(s.coordSysAxesInfo[y],function(_,S){var b=_.axis,w=_F(u,_);if(!c&&x&&(!u||w)){var M=w&&w.value;M==null&&!l&&(M=b.pointToData(a)),M!=null&&JL(_,M,v,!1,h)}})});var m={};return E(f,function(g,y){var x=g.linkGroup;x&&!p[y]&&E(x.axesInfo,function(_,S){var b=p[S];if(_!==g&&b){var w=b.value;x.mapper&&(w=g.axis.scale.parse(x.mapper(w,QL(_),QL(g)))),m[g.key]=w}})}),E(m,function(g,y){JL(f[y],g,v,!0,h)}),gF(p,f,h),yF(d,a,t,o),xF(f,o,r),h}}function JL(t,e,r,i,a){var n=t.axis;if(!(n.scale.isBlank()||!n.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=dF(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&k(a,s[0]),!i&&t.snap&&n.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function dF(t,e){var r=e.axis,i=r.dim,a=t,n=[],o=Number.MAX_VALUE,s=-1;return E(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),c,h;if(l.getAxisTooltipData){var p=l.getAxisTooltipData(f,t,r);h=p.dataIndices,c=p.nestestValue}else{if(h=l.indicesOfNearest(i,f[0],t,r.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(gt(c)){var d=t-c,v=Math.abs(d);v<=o&&((v<o||d>=0&&s<0)&&(o=v,s=d,a=c,n.length=0),E(h,function(m){n.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:n,snapToValue:a}}function vF(t,e,r,i){t[e.key]={value:r,payloadBatch:i}}function mF(t,e,r,i){var a=r.payloadBatch,n=e.axis,o=n.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=dl(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:n.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function gF(t,e,r){var i=r.axesInfo=[];E(e,function(a,n){var o=a.axisPointerModel.option,s=t[n];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function yF(t,e,r,i){if(Md(e)||!t.list.length){i({type:"hideTip"});return}var a=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:t.list})}function xF(t,e,r){var i=r.getZr(),a="axisPointerLastHighlights",n=jL(i)[a]||{},o=jL(i)[a]={};E(t,function(f,c){var h=f.axisPointerModel.option;h.status==="show"&&f.triggerEmphasis&&E(h.seriesDataIndices,function(p){o[p.seriesIndex+"|"+p.dataIndex]=p})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}E(n,function(f,c){!o[c]&&l.push(u(f))}),E(o,function(f,c){!n[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 _F(t,e){for(var r=0;r<(t||[]).length;r++){var i=t[r];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function QL(t){var e=t.axis.model,r={},i=r.axisDim=t.axis.dim;return r.axisIndex=r[i+"AxisIndex"]=e.componentIndex,r.axisName=r[i+"AxisName"]=e.name,r.axisId=r[i+"AxisId"]=e.id,r}function Md(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function Ld(t){xd.registerAxisPointerClass("CartesianAxisPointer",$L),t.registerComponentModel(XL),t.registerComponentView(ZL),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!z(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=rL(e,r)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},J0)}function Na(t){Ge(_d),Ge(Ld)}function bF(t,e){var r=t.existing;if(e.id=t.keyInfo.id,!e.type&&r&&(e.type=r.type),e.parentId==null){var i=e.parentOption;i?e.parentId=i.id:r&&(e.parentId=r.parentId)}e.parentOption=null}function eD(t,e){var r;return E(e,function(i){t[i]!=null&&t[i]!=="auto"&&(r=!0)}),r}function SF(t,e,r){var i=k({},r),a=t[e],n=r.$action||"merge";if(n==="merge")if(a){if(0)var o;Se(a,i,!0),Vr(a,i,{ignoreSize:!0}),kg(r,a),Dd(r,a),Dd(r,a,"shape"),Dd(r,a,"style"),Dd(r,a,"extra"),r.clipPath=a.clipPath}else t[e]=i;else n==="replace"?t[e]=i:n==="remove"&&a&&(t[e]=null)}var tD=["transition","enterFrom","leaveTo"],CF=tD.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Dd(t,e,r){if(r&&(!t[r]&&e[r]&&(t[r]={}),t=t[r],e=e[r]),!(!t||!e))for(var i=r?tD:CF,a=0;a<i.length;a++){var n=i[a];t[n]==null&&e[n]!=null&&(t[n]=e[n])}}function wF(t,e){if(t&&(t.hv=e.hv=[eD(e,["left","right"]),eD(e,["top","bottom"])],t.type==="group")){var r=t,i=e;r.width==null&&(r.width=i.width=0),r.height==null&&(r.height=i.height=0)}}var rD=(function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.preventAutoZ=!0,r}return e.prototype.mergeOption=function(r,i){var a=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,r,i),this.option.elements=a},e.prototype.optionUpdated=function(r,i){var a=this.option,n=(i?a:r).elements,o=a.elements=i?[]:a.elements,s=[];this._flatten(n,s,null);var l=wc(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];E(l,function(f,c){var h=f.newOption;h&&(u.push(h),bF(f,h),SF(o,c,h),wF(o[c],h))},this),a.elements=ke(o,function(f){return f&&delete f.$action,f!=null})},e.prototype._flatten=function(r,i,a){E(r,function(n){if(n){a&&(n.parentOption=a),i.push(n);var o=n.children;o&&o.length&&this._flatten(o,i,n),delete n.children}},this)},e.prototype.useElOptionsToUpdate=function(){var r=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,r},e.type="graphic",e.defaultOption={elements:[]},e})(Ie);var iD={path:null,compoundPath:null,group:we,image:rt,text:Pe},ai=ne(),oD=(function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(){this._elMap=ee()},e.prototype.render=function(r,i,a){r!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=r,this._updateElements(r),this._relocate(r,a)},e.prototype._updateElements=function(r){var i=r.useElOptionsToUpdate();if(i){var a=this._elMap,n=this.group,o=r.get("z"),s=r.get("zlevel");E(i,function(l){var u=wt(l.id,null),f=u!=null?a.get(u):null,c=wt(l.parentId,null),h=c!=null?a.get(c):n,p=l.type,d=l.style;p==="text"&&d&&l.hv&&l.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var v=l.textContent,m=l.textConfig;if(d&&RA(d,p,!!m,!!v)){var g=kA(d,p,!0);!m&&g.textConfig&&(m=l.textConfig=g.textConfig),!v&&g.textContent&&(v=g.textContent)}var y=TF(l),x=l.$action||"merge",_=x==="merge",S=x==="replace";if(_){var b=!f,w=f;b?w=aD(u,h,l.type,a):(w&&(ai(w).isNew=!1),OL(w)),w&&(Td(w,y,r,{isInit:b}),nD(w,l,o,s))}else if(S){Od(f,l,a,r);var M=aD(u,h,l.type,a);M&&(Td(M,y,r,{isInit:!0}),nD(M,l,o,s))}else x==="remove"&&(W0(f,l),Od(f,l,a,r));var C=a.get(u);if(C&&v)if(_){var T=C.getTextContent();T?T.attr(v):C.setTextContent(new Pe(v))}else S&&C.setTextContent(new Pe(v));if(C){var A=l.clipPath;if(A){var D=A.type,L=void 0,b=!1;if(_){var O=C.getClipPath();b=!O||ai(O).type!==D,L=b?Q0(D):O}else S&&(b=!0,L=Q0(D));C.setClipPath(L),Td(L,A,r,{isInit:b}),Ed(L,A.keyframeAnimation,r)}var I=ai(C);C.setTextConfig(m),I.option=l,EF(C,r,l),Ns({el:C,componentModel:r,itemName:C.name,itemTooltipOption:l.tooltip}),Ed(C,l.keyframeAnimation,r)}})}},e.prototype._relocate=function(r,i){for(var a=r.option.elements,n=this.group,o=this._elMap,s=i.getWidth(),l=i.getHeight(),u=["x","y"],f=0;f<a.length;f++){var c=a[f],h=wt(c.id,null),p=h!=null?o.get(h):null;if(!(!p||!p.isGroup)){var d=p.parent,v=d===n,m=ai(p),g=ai(d);m.width=Ee(m.option.width,v?s:g.width)||0,m.height=Ee(m.option.height,v?l:g.height)||0}}for(var f=a.length-1;f>=0;f--){var c=a[f],h=wt(c.id,null),p=h!=null?o.get(h):null;if(p){var d=p.parent,g=ai(d),y=d===n?{width:s,height:l}:{width:g.width,height:g.height},x={},_=Ip(p,c,y,null,{hv:c.hv,boundingMode:c.bounding},x);if(!ai(p).isNew&&_){for(var S=c.transition,b={},w=0;w<u.length;w++){var M=u[w],C=x[M];S&&(Tn(S)||pe(S,M)>=0)?b[M]=C:p[M]=C}Ve(p,b,r,0)}else p.attr(x)}}},e.prototype._clear=function(){var r=this,i=this._elMap;i.each(function(a){Od(a,ai(a).option,i,r._lastGraphicModel)}),this._elMap=ee()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e})(Mt);function Q0(t){var e=le(iD,t)?iD[t]:ng(t),r=new e({});return ai(r).type=t,r}function aD(t,e,r,i){var a=Q0(r);return e.add(a),i.set(t,a),ai(a).id=t,ai(a).isNew=!0,a}function Od(t,e,r,i){var a=t&&t.parent;a&&(t.type==="group"&&t.traverse(function(n){Od(n,e,r,i)}),LL(t,e,i),r.removeKey(ai(t).id))}function nD(t,e,r,i){t.isGroup||E([["cursor",br.prototype.cursor],["zlevel",i||0],["z",r||0],["z2",0]],function(a){var n=a[0];le(e,n)?t[n]=q(e[n],a[1]):t[n]==null&&(t[n]=a[1])}),E(ae(e),function(a){if(a.indexOf("on")===0){var n=e[a];t[a]=j(n)?n:null}}),le(e,"draggable")&&(t.draggable=e.draggable),e.name!=null&&(t.name=e.name),e.id!=null&&(t.id=e.id)}function TF(t){return t=k({},t),E(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Ng),function(e){delete t[e]}),t}function EF(t,e,r){var i=xe(t).eventData;!t.silent&&!t.ignore&&!i&&(i=xe(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),i&&(i.info=r.info)}function ex(t){t.registerComponentModel(rD),t.registerComponentView(oD),t.registerPreprocessor(function(e){var r=e.graphic;z(r)?!r[0]||!r[0].elements?e.graphic=[{elements:r}]:e.graphic=[e.graphic[0]]:r&&!r.elements&&(e.graphic=[{elements:[r]}])})}var AF=(function(t){N(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:oe.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:oe.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:oe.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:oe.color.tertiary,fontSize:14}},e})(Ie),sD=AF;function Id(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function lD(t){if(ye.domSupported){for(var e=document.documentElement.style,r=0,i=t.length;r<i;r++)if(t[r]in e)return t[r]}}var tx=lD(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),uD=lD(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function rx(t,e){if(!t)return e;e=Bs(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function fD(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?e?r[e]:r:null}var MF=rx(uD,"transition"),ix=rx(tx,"transform"),LF="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ye.transform3dSupported?"will-change:transform;":"");function DF(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function OF(t,e,r){if(!G(r)||r==="inside")return"";var i=t.get("backgroundColor"),a=t.get("borderWidth");e=_i(e);var n=DF(r),o=Math.max(Math.round(a)*1.5,6),s="",l=ix+":",u;pe(["left","right"],n)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=n==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=n==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+a,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),p=Math.round(((h-Math.SQRT2*a)/2+Math.SQRT2*a-(h-c)/2)*100)/100;s+=";"+n+":-"+p+"px";var d=e+" solid "+a+"px;",v=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+i+";"];return'<div style="'+v.join("")+'"></div>'}function IF(t,e,r){var i="cubic-bezier(0.23,1,0.32,1)",a="",n="";return r&&(a=" "+t/2+"s "+i,n="opacity"+a+",visibility"+a),e||(a=" "+t+"s "+i,n+=(n.length?",":"")+(ye.transformSupported?""+ix+a:",left"+a+",top"+a)),MF+":"+n}function cD(t,e,r){var i=t.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!ye.transformSupported)return r?"top:"+a+";left:"+i+";":[["top",a],["left",i]];var n=ye.transform3dSupported,o="translate"+(n?"3d":"")+"("+i+","+a+(n?",0":"")+")";return r?"top:0;left:0;"+ix+":"+o+";":[["top",0],["left",0],[tx,o]]}function PF(t){var e=[],r=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont());var a=q(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+a+"px");var n=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return n&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+n),E(["decoration","align"],function(u){var f=t.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function NF(t,e,r,i){var a=[],n=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=Xp(t,"html"),p=u+"px "+f+"px "+s+"px "+l;return a.push("box-shadow:"+p),e&&n>0&&a.push(IF(n,r,i)),o&&a.push("background-color:"+o),E(["width","color","radius"],function(d){var v="border-"+d,m=Bs(v),g=t.get(m);g!=null&&a.push(v+":"+g+(d==="color"?"":"px"))}),a.push(PF(c)),h!=null&&a.push("padding:"+$i(h).join("px ")+"px"),a.join(";")+";"}function pD(t,e,r,i,a){var n=e&&e.painter;if(r){var o=n&&n.getViewportRoot();o&&g_(t,o,r,i,a)}else{t[0]=i,t[1]=a;var s=n&&n.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var RF=(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,ye.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=e.getZr(),n=r.appendTo,o=n&&(G(n)?document.querySelector(n):Qo(n)?n:j(n)&&n(e.getDom()));pD(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(i),this._api=e,this._container=o;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();yr(f,l,!0),u.dispatch("mousemove",l)}},i.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(),i=fD(r,"position"),a=r.style;a.position!=="absolute"&&i!=="absolute"&&(a.position="relative")}var n=e.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n,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 i=this.el,a=i.style,n=this._styleCoord;i.innerHTML?a.cssText=LF+NF(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+cD(n[0],n[1],!0)+("border-color:"+_i(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,i,a,n){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(G(n)&&i.get("trigger")==="item"&&!Id(i)&&(s=OF(i,a,n)),G(e))o.innerHTML=e+s;else if(e){o.innerHTML="",z(e)||(e=[e]);for(var l=0;l<e.length;l++)Qo(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 i=this._styleCoord;if(pD(i,this._zr,this._container,e,r),i[0]!=null&&i[1]!=null){var a=this.el.style,n=cD(i[0],i[1]);E(n,function(o){a[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",ye.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(se(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;y_(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var i=r.parentNode;i&&i.removeChild(r)}this.el=this._container=null},t})(),hD=RF;var kF=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),vD(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,i,a,n){var o=this;$(e)&&It(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new Pe({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:Xp(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),E(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=i.get(u)}),E(["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(),i=dD(e.style);return[r.width+i.left+i.right,r.height+i.top+i.bottom]},t.prototype.moveTo=function(e,r){var i=this.el;if(i){var a=this._styleCoord;vD(a,this._zr,e,r),e=a[0],r=a[1];var n=i.style,o=En(n.borderWidth||0),s=dD(n);i.x=e+o+s.left,i.y=r+o+s.top,i.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(se(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function En(t){return Math.max(0,t)}function dD(t){var e=En(t.shadowBlur||0),r=En(t.shadowOffsetX||0),i=En(t.shadowOffsetY||0);return{left:En(e-r),right:En(e+r),top:En(e-i),bottom:En(e+i)}}function vD(t,e,r,i){t[0]=r,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var mD=kF;var zF=new Oe({shape:{x:-1,y:-1,width:2,height:2}}),VF=(function(t){N(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,i){if(!(ye.node||!i.getDom())){var a=r.getComponent("tooltip"),n=this._renderMode=qb(a.get("renderMode"));this._tooltipContent=n==="richText"?new mD(i):new hD(i,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},e.prototype.render=function(r,i,a){if(!(ye.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=i,this._api=a;var n=this._tooltipContent;n.update(r),n.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?Qp(this,"_updatePosition",50,"fixRate"):wu(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,i=r.get("triggerOn");Ad("itemTooltip",this._api,se(function(a,n,o){i!=="none"&&(i.indexOf(a)>=0?this._tryShow(n,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,i=this._ecModel,a=this._api,n=r.get("triggerOn");if(r.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&n!=="none"&&n!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(r,i,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,i,a,n){if(!(n.from===this.uid||ye.node||!a.getDom())){var o=gD(n,a);this._ticket="";var s=n.dataByCoordSys,l=HF(n,i,a);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:n.position,positionDefault:"bottom"},o)}else if(n.tooltip&&n.x!=null&&n.y!=null){var f=zF;f.x=n.x,f.y=n.y,f.update(),xe(f).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:f},o)}else if(s)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:s,tooltipOption:n.tooltipOption},o);else if(n.seriesIndex!=null){if(this._manuallyAxisShowTip(r,i,a,n))return;var c=ff(n,i),h=c.point[0],p=c.point[1];h!=null&&p!=null&&this._tryShow({offsetX:h,offsetY:p,target:c.el,position:n.position,positionDefault:"bottom"},o)}else n.x!=null&&n.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:a.getZr().findHover(n.x,n.y).target},o))}},e.prototype.manuallyHideTip=function(r,i,a,n){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,n.from!==this.uid&&this._hide(gD(n,a))},e.prototype._manuallyAxisShowTip=function(r,i,a,n){var o=n.seriesIndex,s=n.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=i.getSeriesByIndex(o);if(u){var f=u.getData(),c=cf([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:n.position}),!0}}},e.prototype._tryShow=function(r,i){var a=r.target,n=this._tooltipModel;if(n){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(a){var s=xe(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;Ea(a,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(xe(f).dataIndex!=null?l=f:xe(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(r,l,i):u?this._showComponentItemTooltip(r,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(i)}},e.prototype._showOrMove=function(r,i){var a=r.get("showDelay");i=se(i,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(i,a):i()},e.prototype._showAxisTooltip=function(r,i){var a=this._ecModel,n=this._tooltipModel,o=[i.offsetX,i.offsetY],s=cf([i.tooltipOption],n),l=this._renderMode,u=[],f=qi("section",{blocks:[],noHeader:!0}),c=[],h=new qp;E(r,function(y){E(y.dataByAxis,function(x){var _=a.getComponent(x.axisDim+"Axis",x.axisIndex),S=x.value,b=_.axis,w=b.scale.parse(S);if(!(!_||S==null)){var M=q0(S,b,a,x.seriesDataIndices,x.valueLabelOpt),C=qi("section",{header:M,noHeader:!Bt(M),sortBlocks:!0,blocks:[]});f.blocks.push(C),E(x.seriesDataIndices,function(T){var A=a.getSeriesByIndex(T.seriesIndex),D=T.dataIndexInside,L=A.getDataParams(D);if(!(L.dataIndex<0)){L.axisDim=x.axisDim,L.axisIndex=x.axisIndex,L.axisType=x.axisType,L.axisId=x.axisId,L.axisValue=ll(_.axis,{value:w}),L.axisValueLabel=M,L.marker=h.makeTooltipMarker("item",_i(L.color),l);var O=Xg(A.formatTooltip(D,!0,null)),I=O.frag;if(I){var P=cf([A],n).get("valueFormatter");C.blocks.push(P?k({valueFormatter:P},I):I)}O.text&&c.push(O.text),u.push(L)}})}})}),f.blocks.reverse(),c.reverse();var p=i.position,d=s.get("order"),v=ey(f,h,l,d,a.get("useUTC"),s.get("textStyle"));v&&c.unshift(v);var m=l==="richText"?`
15
+ `];function Zi(t,e){return e.type=t,e}function iy(t){return t.type==="section"}function wT(t){return iy(t)?c2:p2}function TT(t){if(iy(t)){var e=0,r=t.blocks.length,i=r>1||r>0&&!t.noHeader;return E(t.blocks,function(a){var n=TT(a);n>=e&&(e=n+ +(i&&(!n||iy(a)&&!a.noHeader)))}),e}return 0}function c2(t,e,r,i){var a=e.noHeader,n=h2(TT(e)),o=[],s=e.blocks||[];qe(!s||V(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(se(u,l)){var f=new hT(u[l],null);s.sort(function(v,m){return f.evaluate(v.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}E(s,function(v,m){var g=e.valueFormatter,y=wT(v)(g?k(k({},t),{valueFormatter:g}):t,v,m>0?n.html:0,i);y!=null&&o.push(y)});var c=t.renderMode==="richText"?o.join(n.richText):ay(i,o.join(""),a?r:n.html);if(a)return c;var p=Mp(e.header,"ordinal",t.useUTC),h=CT(i,t.renderMode).nameStyle,d=ST(i);return t.renderMode==="richText"?ET(t,p,h)+n.richText+c:ay(i,'<div style="'+h+";"+d+';">'+dt(p)+"</div>"+c,r)}function p2(t,e,r,i){var a=t.renderMode,n=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(_){return _=V(_)?_:[_],F(_,function(b,S){return Mp(b,V(h)?h[S]:h,u)})};if(!(n&&o)){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||ne.color.secondary,a),p=n?"":Mp(l,"ordinal",u),h=e.valueType,d=o?[]:f(e.value,e.rawDataIndex),v=!s||!n,m=!s&&n,g=CT(i,a),y=g.nameStyle,x=g.valueStyle;return a==="richText"?(s?"":c)+(n?"":ET(t,p,y))+(o?"":m2(t,d,v,m,x)):ay(i,(s?"":c)+(n?"":d2(p,!s,y))+(o?"":v2(d,v,m,x)),r)}}function ny(t,e,r,i,a,n){if(t){var o=wT(t),s={useUTC:a,renderMode:r,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,n)}}function h2(t){return{html:u2[t],richText:f2[t]}}function ay(t,e,r){var i='<div style="clear:both"></div>',a="margin: "+r+"px 0 0",n=ST(t);return'<div style="'+a+";"+n+';">'+e+i+"</div>"}function d2(t,e,r){var i=e?"margin-left:2px":"";return'<span style="'+r+";"+i+'">'+dt(t)+"</span>"}function v2(t,e,r,i){var a=r?"10px":"20px",n=e?"float:right;margin-left:"+a:"";return t=V(t)?t:[t],'<span style="'+n+";"+i+'">'+F(t,function(o){return dt(o)}).join("&nbsp;&nbsp;")+"</span>"}function ET(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function m2(t,e,r,i,a){var n=[a],o=i?10:20;return r&&n.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(V(e)?e.join(" "):e,n)}function Zp(t,e){var r=t.getData().getItemVisual(e,"style"),i=r[t.visualDrawType];return xi(i)}function jp(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var Jp=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=ql()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,i){var a=i==="richText"?this._generateStyleName():null,n=Lp({color:r,type:e,renderMode:i,markerId:a});return G(n)?n:(this.richTextStyles[a]=n.style,n.content)},t.prototype.wrapRichTextStyle=function(e,r){var i={};V(r)?E(r,function(n){return k(i,n)}):k(i,r);var a=this._generateStyleName();return this.richTextStyles[a]=i,"{"+a+"|"+e+"}"},t})();function AT(t){var e=t.series,r=t.dataIndex,i=t.multipleSeries,a=e.getData(),n=a.mapDimensionsAll("defaultedTooltip"),o=n.length,s=e.getRawValue(r),l=V(s),u=Zp(e,r),f,c,p,h;if(o>1||l&&!o){var d=g2(s,e,r,n,u);f=d.inlineValues,c=d.inlineValueTypes,p=d.blocks,h=d.inlineValues[0]}else if(o){var v=a.getDimensionInfo(n[0]);h=f=Ta(a,r,n[0]),c=v.type}else h=f=l?s[0]:s;var m=Mc(e),g=m&&e.name||"",y=a.getName(r),x=i?g:y;return Zi("section",{header:g,noHeader:i||!m,sortParam:h,blocks:[Zi("nameValue",{markerType:"item",markerColor:u,name:x,noName:!Bt(x),value:f,valueType:c,rawDataIndex:a.getRawIndex(r)})].concat(p||[])})}function g2(t,e,r,i,a){var n=e.getData(),o=ir(t,function(c,p,h){var d=n.getDimensionInfo(h);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];i.length?E(i,function(c){f(Ta(n,r,c),c)}):E(t,f);function f(c,p){var h=n.getDimensionInfo(p);!h||h.otherDims.tooltip===!1||(o?u.push(Zi("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var gn=ae();function Qp(t,e){return t.getName(e)||t.getId(e)}var y2="__universalTransitionEnabled",eh=(function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,i,a){this.seriesIndex=this.componentIndex,this.dataTask=mn({count:_2,reset:b2}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a);var n=gn(this).sourceManager=new bT(this);n.prepareSource();var o=this.getInitialData(r,a);LT(o,this),this.dataTask.context.data=o,gn(this).dataBeforeProcessed=o,MT(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,i){var a=hn(this),n=a?dn(r):{},o=this.subType;Ne.hasClass(o)&&(o+="Series"),Ce(r,i.getTheme().get(this.subType)),Ce(r,this.getDefaultOption()),jl(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&Vr(r,n,a)},e.prototype.mergeOption=function(r,i){r=Ce(this.option,r,!0),this.fillDataTextStyle(r.data);var a=hn(this);a&&Vr(this.option,r,a);var n=gn(this).sourceManager;n.dirty(),n.prepareSource();var o=this.getInitialData(r,i);LT(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,gn(this).dataBeforeProcessed=o,MT(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!ft(r))for(var i=["show"],a=0;a<r.length;a++)r[a]&&r[a].label&&jl(r[a],"label",i)},e.prototype.getInitialData=function(r,i){},e.prototype.appendData=function(r){var i=this.getRawData();i.appendData(r.data)},e.prototype.getData=function(r){var i=oy(this);if(i){var a=i.context.data;return r==null||!a.getLinkedData?a:a.getLinkedData(r)}else return gn(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var i=oy(this);if(i){var a=i.context;a.outputData=r,i!==this.dataTask&&(a.data=r)}gn(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return te(r)},e.prototype.getSourceManager=function(){return gn(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return gn(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,i,a,n){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(a);n==null&&(n=1/0);for(var f=[],c=1/0,p=-1,h=0,d=o.getDimensionIndex(i),v=o.getStore(),m=0,g=v.count();m<g;m++){var y=v.get(d,m),x=l.dataToCoord(y),_=u-x,b=Math.abs(_);b<=n&&((b<c||b===c&&_>=0&&p<0)&&(c=b,p=_,h=0),_===p&&(f[h++]=m))}return f.length=h,f},e.prototype.formatTooltip=function(r,i,a){return AT({series:this,dataIndex:r,multipleSeries:i})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(ye.node&&!(r&&r.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,i,a){var n=this.ecModel,o=xu.prototype.getColorFromPalette.call(this,r,i,a);return o||(o=n.getColorFromPalette(r,i,a)),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,i){this._innerSelect(this.getData(i),r)},e.prototype.unselect=function(r,i){var a=this.option.selectedMap;if(a){var n=this.option.selectedMode,o=this.getData(i);if(n==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=Qp(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,i){for(var a=[],n=0;n<r.length;n++)a[0]=r[n],this.isSelected(r[n],i)?this.unselect(a,i):this.select(a,i)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,i=ie(r),a=[],n=0;n<i.length;n++){var o=r[i[n]];o>=0&&a.push(o)}return a},e.prototype.isSelected=function(r,i){var a=this.option.selectedMap;if(!a)return!1;var n=this.getData(i);return(a==="all"||a[Qp(n,r)])&&!n.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[y2])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,i){var a,n,o=this.option,s=o.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){$(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=i[f],p=Qp(r,c);u[p]=!0,this._selectedDataIndicesMap[p]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var h=i[l-1],p=Qp(r,h);o.selectedMap=(a={},a[p]=!0,a),this._selectedDataIndicesMap=(n={},n[p]=r.getRawIndex(h),n)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var i=[];r.hasItemOption&&r.each(function(a){var n=r.getRawDataItem(a);n&&n.selected&&i.push(a)}),i.length>0&&this._innerSelect(r,i)}},e.registerClass=function(r){return Ne.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})(Ne);Ut(eh,cT);Ut(eh,xu);Nc(eh,Ne);function MT(t){var e=t.name;Mc(t)||(t.name=x2(t)||e)}function x2(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),i=[];return E(r,function(a){var n=e.getDimensionInfo(a);n.displayName&&i.push(n.displayName)}),i.join(" ")}function _2(t){return t.model.getRawData().count()}function b2(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),S2}function S2(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function LT(t,e){E(x_(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,ut(C2,e))})}function C2(t,e){var r=oy(t);return r&&r.setOutputEnd((e||this).count()),e}function oy(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var i=r.currentTask;if(i){var a=i.agentStubMap;a&&(i=a.get(t.uid))}return i}}var At=eh;var sy=(function(){function t(){this.group=new Te,this.uid=$i("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,i,a){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,i,a){},t.prototype.updateLayout=function(e,r,i,a){},t.prototype.updateVisual=function(e,r,i,a){},t.prototype.toggleBlurSeries=function(e,r,i){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();Es(sy);rn(sy);var Mt=sy;function Eo(){var t=ae();return function(e){var r=t(e),i=e.pipelineContext,a=!!r.large,n=!!r.progressiveRender,o=r.large=!!(i&&i.large),s=r.progressiveRender=!!(i&&i.progressiveRender);return(a!==o||n!==s)&&"reset"}}var IT=ae(),w2=Eo(),ly=(function(){function t(){this.group=new Te,this.uid=$i("viewChart"),this.renderTask=mn({plan:T2,reset:E2}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,i,a){},t.prototype.highlight=function(e,r,i,a){var n=e.getData(a&&a.dataType);n&&OT(n,a,"emphasis")},t.prototype.downplay=function(e,r,i,a){var n=e.getData(a&&a.dataType);n&&OT(n,a,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,i,a){this.render(e,r,i,a)},t.prototype.updateVisual=function(e,r,i,a){this.render(e,r,i,a)},t.prototype.eachRendered=function(e){Sa(this.group,e)},t.markUpdateMethod=function(e,r){IT(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function DT(t,e,r){t&&lu(t)&&(e==="emphasis"?ao:no)(t,r)}function OT(t,e,r){var i=Xr(t,e),a=e&&e.highlightKey!=null?mC(e.highlightKey):null;i!=null?E(Ge(i),function(n){DT(t.getItemGraphicEl(n),r,a)}):t.eachItemGraphicEl(function(n){DT(n,r,a)})}Es(ly,["dispose"]);rn(ly);function T2(t){return w2(t.model)}function E2(t){var e=t.model,r=t.ecModel,i=t.api,a=t.payload,n=e.pipelineContext.progressiveRender,o=t.view,s=a&&IT(a).updateMethod,l=n?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,i,a),A2[l]}var A2={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)}}},mt=ly;var th="\0__throttleOriginMethod",PT="\0__throttleRate",NT="\0__throttleType";function Eu(t,e,r){var i,a=0,n=0,o=null,s,l,u,f;e=e||0;function c(){n=new Date().getTime(),o=null,t.apply(l,u||[])}var p=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];i=new Date().getTime(),l=this,u=h;var v=f||e,m=f||r;f=null,s=i-(m?a:n)-v,clearTimeout(o),m?o=setTimeout(c,v):s>=0?c():o=setTimeout(c,-s),a=i};return p.clear=function(){o&&(clearTimeout(o),o=null)},p.debounceNextCall=function(h){f=h},p}function rh(t,e,r,i){var a=t[e];if(a){var n=a[th]||a,o=a[NT],s=a[PT];if(s!==r||o!==i){if(r==null||!i)return t[e]=n;a=t[e]=Eu(n,r,i==="debounce"),a[th]=n,a[NT]=i,a[PT]=r}return a}}function Au(t,e){var r=t[e];r&&r[th]&&(r.clear&&r.clear(),t[e]=r[th])}var RT=ae(),kT={itemStyle:zi(bg,!0),lineStyle:zi(_g,!0)},L2={lineStyle:"stroke",itemStyle:"fill"};function zT(t,e){var r=t.visualStyleMapper||kT[e];return r||(console.warn("Unknown style type '"+e+"'."),kT.itemStyle)}function VT(t,e){var r=t.visualDrawType||L2[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var UT={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),i=t.visualStyleAccessPath||"itemStyle",a=t.getModel(i),n=zT(t,i),o=n(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=VT(t,i),u=o[l],f=Z(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=p,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Z(o.fill)?p:o.fill,o.stroke=o.stroke==="auto"||Z(o.stroke)?p: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 v=t.getDataParams(d),m=k({},o);m[l]=f(v),h.setItemVisual(d,"style",m)}}}},Mu=new je,BT={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var r=t.getData(),i=t.visualStyleAccessPath||"itemStyle",a=zT(t,i),n=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){Mu.option=l[i];var u=a(Mu),f=o.ensureUniqueItemVisual(s,"style");k(f,u),Mu.option.decal&&(o.setItemVisual(s,"decal",Mu.option.decal),Mu.option.decal.dirty=!0),n in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},FT={performRawSeries:!0,overallReset:function(t){var e=te();t.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.type+"-"+r.getColorBy();RT(r).scope=e.get(i)||e.set(i,{})}}),t.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.getRawData(),a={},n=r.getData(),o=RT(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=VT(r,s);n.each(function(u){var f=n.getRawIndex(u);a[f]=u}),i.each(function(u){var f=a[u],c=n.getItemVisual(f,"colorFromPalette");if(c){var p=n.ensureUniqueItemVisual(f,"style"),h=i.getName(u)||u+"",d=i.count();p[l]=r.getColorFromPalette(h,o,d)}})}})}};var ih=Math.PI;function uy(t,e){e=e||{},le(e,{text:"loading",textColor:ne.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:ne.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Te,i=new Pe({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(i);var a=new ke({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),n=new Pe({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(n);var o;return e.showSpinner&&(o=new hu({shape:{startAngle:-ih/2,endAngle:-ih/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:ih*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:ih*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=a.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}),n.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var D2=(function(){function t(e,r,i,a){this._stageTaskMap=te(),this.ecInstance=e,this.api=r,i=this._dataProcessorHandlers=i.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=i.concat(a)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(i){var a=i.overallTask;a&&a.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),a=i.context,n=!r&&i.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>i.blockIndex,o=n?i.step:null,s=a&&a.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 i=this._pipelineMap.get(e.uid),a=e.__preparePipelineContext?e.__preparePipelineContext(r,i):Ic(e,r,i);e.pipelineContext=i.context=a},t.prototype.restorePipelines=function(e,r){var i=this,a=i._pipelineMap=te();r.eachSeries(function(n){var o=e.painter.type==="canvas"&&n.getProgressive(),s=n.uid;a.set(s,{id:s,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:o&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),i._pipe(n,n.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),i=this.api;E(this._allHandlers,function(a){var n=e.get(a.uid)||e.set(a.uid,{}),o="";qe(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,n,r,i),a.overallReset&&this._createOverallStageTask(a,n,r,i)},this)},t.prototype.prepareView=function(e,r,i,a){var n=e.renderTask,o=n.context;o.model=r,o.ecModel=i,o.api=a,n.__block=!e.incrementalPrepareRender,this._pipe(r,n)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,i){this._performStageTasks(this._visualHandlers,e,r,i)},t.prototype._performStageTasks=function(e,r,i,a){a=a||{};var n=!1,o=this;E(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,p=f.overallTask;if(p){var h,d=p.agentStubMap;d.each(function(m){s(a,m)&&(m.dirty(),h=!0)}),h&&p.dirty(),o.updatePayload(p,i);var v=o.getPerformArgs(p,a.block);d.each(function(m){m.perform(v)}),p.perform(v)&&(n=!0)}else c&&c.each(function(m,g){s(a,m)&&m.dirty();var y=o.getPerformArgs(m,a.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(m.context.model),o.updatePayload(m,i),m.perform(y)&&(n=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=n||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(i){r=i.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,i,a){var n=this,o=r.seriesTaskMap,s=r.seriesTaskMap=te(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,a).each(f);function f(c){var p=c.uid,h=s.set(p,o&&o.get(p)||mn({plan:R2,reset:k2,count:V2}));h.context={model:c,ecModel:i,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:n},n._pipe(c,h)}},t.prototype._createOverallStageTask=function(e,r,i,a){var n=this,o=r.overallTask=r.overallTask||mn({reset:O2});o.context={ecModel:i,api:a,overallReset:e.overallReset,scheduler:n};var s=o.agentStubMap,l=o.agentStubMap=te(),u=e.seriesType,f=e.getTargetSeries,c=e.dirtyOnOverallProgress,p=!1,h="";qe(!e.createOnAllSeries,h),u?i.eachRawSeriesByType(u,d):f?f(i,a).each(d):E(i.getSeries(),d);function d(v){var m=v.uid,g=l.set(m,s&&s.get(m)||(p=!0,mn({reset:I2,onDirty:N2})));g.context={model:v,dirtyOnOverallProgress:c},g.agent=o,g.__block=c,n._pipe(v,g)}p&&o.dirty()},t.prototype._pipe=function(e,r){var i=e.uid,a=this._pipelineMap.get(i);!a.head&&(a.head=r),a.tail&&a.tail.pipe(r),a.tail=r,r.__idxInPipeline=a.count++,r.__pipeline=a},t.wrapStageHandler=function(e,r){return Z(e)&&(e={overallReset:e,seriesType:U2(e)}),e.uid=$i("stageHandler"),r&&(e.visualType=r),e},t})();function O2(t){t.overallReset(t.ecModel,t.api,t.payload)}function I2(t){return t.dirtyOnOverallProgress&&P2}function P2(){this.agent.dirty(),this.getDownstream().dirty()}function N2(){this.agent&&this.agent.dirty()}function R2(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function k2(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Ge(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?F(e,function(r,i){return HT(i)}):z2}var z2=HT(0);function HT(t){return function(e,r){var i=r.data,a=r.resetDefines[t];if(a&&a.dataEach)for(var n=e.start;n<e.end;n++)a.dataEach(i,n);else a&&a.progress&&a.progress(e,i)}}function V2(t){return t.data.count()}function U2(t){ah=null;try{t(Lu,GT)}catch{}return ah}var Lu={},GT={},ah;KT(Lu,Fp);KT(GT,Gc);Lu.eachSeriesByType=Lu.eachRawSeriesByType=function(t){ah=t};Lu.eachComponent=function(t){t.mainType==="series"&&t.subType&&(ah=t.subType)};function KT(t,e){for(var r in e.prototype)t[r]=Ze}var fy=D2;var re=ne.darkColor,YT=re.background,Du=function(){return{axisLine:{lineStyle:{color:re.axisLine}},splitLine:{lineStyle:{color:re.axisSplitLine}},splitArea:{areaStyle:{color:[re.backgroundTint,re.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:re.axisMinorSplitLine}},axisLabel:{color:re.axisLabel},axisName:{}}},WT={label:{color:re.secondary},itemStyle:{borderColor:re.borderTint},dividerLineStyle:{color:re.border}},$T={darkMode:!0,color:re.theme,backgroundColor:YT,axisPointer:{lineStyle:{color:re.border},crossStyle:{color:re.borderShade},label:{color:re.tertiary}},legend:{textStyle:{color:re.secondary},pageTextStyle:{color:re.tertiary}},textStyle:{color:re.secondary},title:{textStyle:{color:re.primary},subtextStyle:{color:re.quaternary}},toolbox:{iconStyle:{borderColor:re.accent50},feature:{dataView:{backgroundColor:YT,textColor:re.primary,textareaColor:re.background,textareaBorderColor:re.border,buttonColor:re.accent50,buttonTextColor:re.neutral00}}},tooltip:{backgroundColor:re.neutral20,defaultBorderColor:re.border,textStyle:{color:re.tertiary}},dataZoom:{borderColor:re.accent10,textStyle:{color:re.tertiary},brushStyle:{color:re.backgroundTint},handleStyle:{color:re.neutral00,borderColor:re.accent20},moveHandleStyle:{color:re.accent40},emphasis:{handleStyle:{borderColor:re.accent50}},dataBackground:{lineStyle:{color:re.accent30},areaStyle:{color:re.accent20}},selectedDataBackground:{lineStyle:{color:re.accent50},areaStyle:{color:re.accent30}}},visualMap:{textStyle:{color:re.secondary},handleStyle:{borderColor:re.neutral30}},timeline:{lineStyle:{color:re.accent10},label:{color:re.tertiary},controlStyle:{color:re.accent30,borderColor:re.accent30}},calendar:{itemStyle:{color:re.neutral00,borderColor:re.neutral20},dayLabel:{color:re.tertiary},monthLabel:{color:re.secondary},yearLabel:{color:re.secondary}},matrix:{x:WT,y:WT,backgroundColor:{borderColor:re.axisLine},body:{itemStyle:{borderColor:re.borderTint}}},timeAxis:Du(),logAxis:Du(),valueAxis:Du(),categoryAxis:Du(),line:{symbol:"circle"},graph:{color:re.theme},gauge:{title:{color:re.secondary},axisLine:{lineStyle:{color:[[1,re.neutral05]]}},axisLabel:{color:re.axisLabel},detail:{color:re.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:re.background}},radar:(function(){var t=Du();return t.axisName={color:re.axisLabel},t.axisLine.lineStyle.color=re.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:re.neutral20,textStyle:{color:re.secondary}},emphasis:{itemStyle:{color:re.neutral30}}}},sunburst:{itemStyle:{borderColor:re.background}},map:{itemStyle:{borderColor:re.border,areaColor:re.neutral10},label:{color:re.tertiary},emphasis:{label:{color:re.primary},itemStyle:{areaColor:re.highlight}},select:{label:{color:re.primary},itemStyle:{areaColor:re.highlight}}},geo:{itemStyle:{borderColor:re.border,areaColor:re.neutral10},emphasis:{label:{color:re.primary},itemStyle:{areaColor:re.highlight}},select:{label:{color:re.primary},itemStyle:{color:re.highlight}}}};$T.categoryAxis.splitLine.show=!1;var XT=$T;var qT=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},i={},a={};if(G(e)){var n=_r(e);r.mainType=n.main||null,r.subType=n.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};E(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var p=o[c],h=u.lastIndexOf(p);if(h>0&&h===u.length-p.length){var d=u.slice(0,h);d!=="data"&&(r.mainType=d,r[p.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(i[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:r,dataQuery:i,otherQuery:a}},t.prototype.filter=function(e,r){var i=this.eventInfo;if(!i)return!0;var a=i.targetEl,n=i.packedEvent,o=i.model,s=i.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,n,"name")&&f(u,n,"dataIndex")&&f(u,n,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,a,n));function f(c,p,h,d){return c[h]==null||p[d||h]===c[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})();var cy=["symbol","symbolSize","symbolRotate","symbolOffset"],ZT=cy.concat(["symbolKeepAspect"]),jT={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 i={},a={},n=!1,o=0;o<cy.length;o++){var s=cy[o],l=t.get(s);Z(l)?(n=!0,a[s]=l):i[s]=l}if(i.symbol=i.symbol||t.defaultSymbol,r.setVisual(k({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),e.isSeriesFiltered(t))return;var u=ie(a);function f(c,p){for(var h=t.getRawValue(p),d=t.getDataParams(p),v=0;v<u.length;v++){var m=u[v];c.setItemVisual(p,m,a[m](h,d))}}return{dataEach:n?f:null}}},JT={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function i(a,n){for(var o=a.getItemModel(n),s=0;s<ZT.length;s++){var l=ZT[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(n,l,u)}}return{dataEach:r.hasItemOption?i:null}}};function nh(t,e,r){switch(r){case"color":var i=t.getItemVisual(e,"style");return i[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r);default:}}function oh(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);default:}}function QT(t,e,r,i){switch(r){case"color":var a=t.ensureUniqueItemVisual(e,"style");a[t.getVisual("drawType")]=i,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,r,i);break;default:}}function e1(t,e){function r(i,a){var n=[];return i.eachComponent({mainType:"series",subType:t,query:a},function(o){n.push(o.seriesIndex)}),n}E([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(i){e(i[0],function(a,n,o){a=k({},a),o.dispatchAction(k(a,{type:i[1],seriesIndex:r(n,a)}))})})}function Js(t,e,r,i,a){var n=t+e;r.isSilent(n)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),p=Xr(c,a.fromActionPayload);r.trigger(n,{type:n,seriesId:o.id,name:V(p)?c.getName(p[0]):c.getName(p),selected:G(l)?l:k({},l)})}})}function t1(t,e,r){t.on("selectchanged",function(i){var a=r.getModel();i.isFromClick?(Js("map","selectchanged",e,a,i),Js("pie","selectchanged",e,a,i)):i.fromAction==="select"?(Js("map","selected",e,a,i),Js("pie","selected",e,a,i)):i.fromAction==="unselect"&&(Js("map","unselected",e,a,i),Js("pie","unselected",e,a,i))})}function Ea(t,e,r){for(var i;t&&!(e(t)&&(i=t,r));)t=t.__hostTarget||t.parent;return i}var B2=new ar,Ur=B2;var r1={};function i1(t,e){r1[t]=e}function a1(t){return r1[t]}var F2={};function n1(t,e){F2[t]=e}var sh=ae();function o1(t){sh(t).prepare={}}function s1(t){sh(t).fullUpdate={}}function l1(t){return sh(t).prepare}function Ao(t){return sh(t).fullUpdate}var H2=Math.round(Math.random()*9),G2=typeof Object.defineProperty=="function",K2=(function(){function t(){this._id="__ec_inner_"+H2++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var i=this._guard(e);return G2?Object.defineProperty(i,this._id,{value:r,enumerable:!1,configurable:!0}):i[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})(),u1=K2;var Y2=he.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,i=e.cy,a=e.width/2,n=e.height/2;t.moveTo(r,i-n),t.lineTo(r+a,i+n),t.lineTo(r-a,i+n),t.closePath()}}),W2=he.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,i=e.cy,a=e.width/2,n=e.height/2;t.moveTo(r,i-n),t.lineTo(r+a,i),t.lineTo(r,i+n),t.lineTo(r-a,i),t.closePath()}}),$2=he.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,i=e.y,a=e.width/5*3,n=Math.max(a,e.height),o=a/2,s=o*o/(n-o),l=i-n+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),p=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+p*h,r,i-d,r,i),t.bezierCurveTo(r,i-d,r-f+c*h,l+s+p*h,r-f,l+s),t.closePath()}}),X2=he.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,i=e.width,a=e.x,n=e.y,o=i/3*2;t.moveTo(a,n),t.lineTo(a+o,n+r),t.lineTo(a,n+r/4*3),t.lineTo(a-o,n+r),t.lineTo(a,n),t.closePath()}}),q2={line:gi,rect:Pe,roundRect:Pe,square:Pe,circle:oo,diamond:W2,pin:$2,arrow:X2,triangle:Y2},Z2={line:function(t,e,r,i,a){a.x1=t,a.y1=e+i/2,a.x2=t+r,a.y2=e+i/2},rect:function(t,e,r,i,a){a.x=t,a.y=e,a.width=r,a.height=i},roundRect:function(t,e,r,i,a){a.x=t,a.y=e,a.width=r,a.height=i,a.r=Math.min(r,i)/4},square:function(t,e,r,i,a){var n=Math.min(r,i);a.x=t,a.y=e,a.width=n,a.height=n},circle:function(t,e,r,i,a){a.cx=t+r/2,a.cy=e+i/2,a.r=Math.min(r,i)/2},diamond:function(t,e,r,i,a){a.cx=t+r/2,a.cy=e+i/2,a.width=r,a.height=i},pin:function(t,e,r,i,a){a.x=t+r/2,a.y=e+i/2,a.width=r,a.height=i},arrow:function(t,e,r,i,a){a.x=t+r/2,a.y=e+i/2,a.width=r,a.height=i},triangle:function(t,e,r,i,a){a.cx=t+r/2,a.cy=e+i/2,a.width=r,a.height=i}},py={};E(q2,function(t,e){py[e]=new t});var j2=he.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var i=Wn(t,e,r),a=this.shape;return a&&a.symbolType==="pin"&&e.position==="inside"&&(i.y=r.y+r.height*.4),i},buildPath:function(t,e,r){var i=e.symbolType;if(i!=="none"){var a=py[i];a||(i="rect",a=py[i]),Z2[i](e.x,e.y,e.width,e.height,a.shape),a.buildPath(t,a.shape,r)}}});function J2(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||ne.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function Nt(t,e,r,i,a,n,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=cg(t.slice(8),new ce(e,r,i,a),o?"center":"cover"):t.indexOf("path://")===0?l=lp(t.slice(7),{},new ce(e,r,i,a),o?"center":"cover"):l=new j2({shape:{symbolType:t,x:e,y:r,width:i,height:a}}),l.__isEmptyBrush=s,l.setColor=J2,n&&l.setColor(n),l}function lh(t){return V(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function uh(t,e){if(t!=null)return V(t)||(t=[t,t]),[Ae(t[0],e[0])||0,Ae(X(t[1],t[0]),e[1])||0]}function Mo(t){return isFinite(t)}function ez(t,e,r){var i=e.x==null?0:e.x,a=e.x2==null?1:e.x2,n=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(i=i*r.width+r.x,a=a*r.width+r.x,n=n*r.height+r.y,o=o*r.height+r.y),i=Mo(i)?i:0,a=Mo(a)?a:1,n=Mo(n)?n:0,o=Mo(o)?o:0;var s=t.createLinearGradient(i,n,a,o);return s}function tz(t,e,r){var i=r.width,a=r.height,n=Math.min(i,a),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*i+r.x,s=s*a+r.y,l=l*n),o=Mo(o)?o:.5,s=Mo(s)?s:.5,l=l>=0&&Mo(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function hy(t,e,r){for(var i=e.type==="radial"?tz(t,e,r):ez(t,e,r),a=e.colorStops,n=0;n<a.length;n++)i.addColorStop(a[n].offset,a[n].color);return i}function f1(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 fh(t){return parseInt(t,10)}function dy(t,e,r){var i=["width","height"][e],a=["clientWidth","clientHeight"][e],n=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[i]!=null&&r[i]!=="auto")return parseFloat(r[i]);var s=document.defaultView.getComputedStyle(t);return(t[a]||fh(s[i])||fh(t.style[i]))-(fh(s[n])||0)-(fh(s[o])||0)||0}function rz(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:me(t)?[t]:V(t)?t:null}function Ou(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&rz(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(r){var a=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&a!==1&&(r=F(r,function(n){return n/a}),i/=a)}return[r,i]}var iz=new Kt(!0);function ch(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function c1(t){return typeof t=="string"&&t!=="none"}function ph(t){var e=t.fill;return e!=null&&e!=="none"}function p1(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 h1(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 d1(t,e,r){var i=eu(e.image,e.__image,r);if(As(i)){var a=t.createPattern(i,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var n=new DOMMatrix;n.translateSelf(e.x||0,e.y||0),n.rotateSelf(0,0,(e.rotation||0)*ss),n.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(n)}return a}}function az(t,e,r,i,a){var n,o=ch(r),s=ph(r),l=r.strokePercent,u=l<1,f=!e.path;(!e.silent||u)&&f&&e.createPathProxy();var c=e.path||iz,p=e.__dirty;if(!i){var h=r.fill,d=r.stroke,v=s&&!!h.colorStops,m=o&&!!d.colorStops,g=s&&!!h.image,y=o&&!!d.image,x=void 0,_=void 0,b=void 0,S=void 0,w=void 0;(v||m)&&(w=e.getBoundingRect()),v&&(x=p?hy(t,h,w):e.__canvasFillGradient,e.__canvasFillGradient=x),m&&(_=p?hy(t,d,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),g&&(b=p||!e.__canvasFillPattern?d1(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=b),y&&(S=p||!e.__canvasStrokePattern?d1(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),v?t.fillStyle=x:g&&(b?t.fillStyle=b:s=!1),m?t.strokeStyle=_:y&&(S?t.strokeStyle=S:o=!1)}var A=e.getGlobalScale();c.setScale(A[0],A[1],e.segmentIgnoreThreshold);var C,T;t.setLineDash&&r.lineDash&&(n=Ou(e),C=n[0],T=n[1]);var M=!0;(f||p&Wa)&&(c.setDPR(t.dpr),u?c.setContext(null):(c.setContext(t),M=!1),c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()),M&&c.rebuildPath(t,u?l:1),C&&(t.setLineDash(C),t.lineDashOffset=T),i?(a.batchFill=s,a.batchStroke=o):r.strokeFirst?(o&&h1(t,r),s&&p1(t,r)):(s&&p1(t,r),o&&h1(t,r)),C&&t.setLineDash([])}function nz(t,e,r){var i=e.__image=eu(r.image,e.__image,e,e.onload);if(!(!i||!As(i))){var a=r.x||0,n=r.y||0,o=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;t.drawImage(i,u,f,r.sWidth,r.sHeight,a,n,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,p=s-f;t.drawImage(i,u,f,c,p,a,n,o,s)}else t.drawImage(i,a,n,o,s)}}function oz(t,e,r){var i,a=r.text;if(a!=null&&(a+=""),a){t.font=r.font||gr,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var n=void 0,o=void 0;t.setLineDash&&r.lineDash&&(i=Ou(e),n=i[0],o=i[1]),n&&(t.setLineDash(n),t.lineDashOffset=o),r.strokeFirst?(ch(r)&&t.strokeText(a,r.x,r.y),ph(r)&&t.fillText(a,r.x,r.y)):(ph(r)&&t.fillText(a,r.x,r.y),ch(r)&&t.strokeText(a,r.x,r.y)),n&&t.setLineDash([])}}var v1=["shadowBlur","shadowOffsetX","shadowOffsetY"],m1=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function S1(t,e,r,i,a){var n=!1;if(!i&&(r=r||{},e===r))return!1;if(i||e.opacity!==r.opacity){fr(t,a),n=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Vi.opacity:o}(i||e.blend!==r.blend)&&(n||(fr(t,a),n=!0),t.globalCompositeOperation=e.blend||Vi.blend);for(var s=0;s<v1.length;s++){var l=v1[s];(i||e[l]!==r[l])&&(n||(fr(t,a),n=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==r.shadowColor)&&(n||(fr(t,a),n=!0),t.shadowColor=e.shadowColor||Vi.shadowColor),n}function g1(t,e,r,i,a){var n=e.style,o=i?null:r&&r.style||{};if(n===o)return!1;var s=S1(t,n,o,i,a);if((i||n.fill!==o.fill)&&(s||(fr(t,a),s=!0),c1(n.fill)&&(t.fillStyle=n.fill)),(i||n.stroke!==o.stroke)&&(s||(fr(t,a),s=!0),c1(n.stroke)&&(t.strokeStyle=n.stroke)),(i||n.opacity!==o.opacity)&&(s||(fr(t,a),s=!0),t.globalAlpha=n.opacity==null?1:n.opacity),e.hasStroke()){var l=n.lineWidth,u=l/(n.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(fr(t,a),s=!0),t.lineWidth=u)}for(var f=0;f<m1.length;f++){var c=m1[f],p=c[0];(i||n[p]!==o[p])&&(s||(fr(t,a),s=!0),t[p]=n[p]||c[1])}return s}function sz(t,e,r,i,a){return S1(t,e.style,r&&r.style,i,a)}function C1(t,e){var r=e.transform,i=t.dpr||1;r?t.setTransform(i*r[0],i*r[1],i*r[2],i*r[3],i*r[4],i*r[5]):t.setTransform(i,0,0,i,0,0)}function lz(t,e,r){for(var i=!1,a=0;a<t.length;a++){var n=t[a];i=i||n.isZeroArea(),C1(e,n),e.beginPath(),n.buildPath(e,n.shape),e.clip()}r.allClipped=i}function uz(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 y1=1,x1=2,_1=3,b1=4;function fz(t){var e=ph(t),r=ch(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 fr(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function w1(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};vy(t,e,r),my(t,r)}function vy(t,e,r){var i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~Wt,e.__isRendered=!1;return}var a=e.__clipPaths,n=r.prevElClipPaths,o=e.style,s=!1,l=!1;if((!n||f1(a,n))&&(n&&(fr(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(fr(t,r),t.save(),lz(a,t,r),s=!0,r.prevElClipPaths=a)),r.allClipped){e.__dirty&=~Wt,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=e instanceof he&&e.autoBatch&&fz(o);s||uz(i,u.transform)?(fr(t,r),C1(t,e)):f||fr(t,r),e instanceof he?(r.lastDrawType!==y1&&(l=!0,r.lastDrawType=y1),g1(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),az(t,e,o,f,r)):e instanceof io?(r.lastDrawType!==_1&&(l=!0,r.lastDrawType=_1),g1(t,e,u,l,r),oz(t,e,o)):e instanceof it?(r.lastDrawType!==x1&&(l=!0,r.lastDrawType=x1),sz(t,e,u,l,r),nz(t,e,o)):e.getTemporalDisplayables&&(r.lastDrawType!==b1&&(l=!0,r.lastDrawType=b1),cz(t,e,r)),e.innerAfterBrush(),e.afterBrush&&(f&&fr(t,r),e.afterBrush()),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function my(t,e){fr(t,e),e.prevElClipPaths&&t.restore()}function cz(t,e,r){var i=e.getDisplayables(),a=e.getTemporalDisplayables();t.save();var n={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=i.length;o<s;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),vy(t,l,n),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),n.prevEl=l}my(t,n);for(var u=0,f=a.length;u<f;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),vy(t,l,n),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),n.prevEl=l}my(t,n),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var gy=new u1,T1=new Di(100),E1=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function yy(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),i=e.getZr(),a=i.painter.type==="svg";t.dirty&&gy.delete(t);var n=gy.get(t);if(n)return n;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=a?1:1/r,gy.set(t,s),t.dirty=!1,s;function l(u){for(var f=[r],c=!0,p=0;p<E1.length;++p){var h=o[E1[p]];if(h!=null&&!V(h)&&!G(h)&&!me(h)&&typeof h!="boolean"){c=!1;break}f.push(h)}var d;if(c){d=f.join(",")+(a?"-svg":"");var v=T1.get(d);v&&(a?u.svgElement=v:u.image=v)}var m=M1(o.dashArrayX),g=pz(o.dashArrayY),y=A1(o.symbol),x=hz(m),_=L1(g),b=!a&&St.createCanvas(),S=a&&{tag:"g",attrs:{},key:"dcl",children:[]},w=C(),A;b&&(b.width=w.width*r,b.height=w.height*r,A=b.getContext("2d")),T(),c&&T1.put(d,b||S),u.image=b,u.svgElement=S,u.svgWidth=w.width,u.svgHeight=w.height;function C(){for(var M=1,O=0,L=x.length;O<L;++O)M=sm(M,x[O]);for(var D=1,O=0,L=y.length;O<L;++O)D=sm(D,y[O].length);M*=D;var I=_*x.length*y.length;if(0)var P;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(I,o.maxTileHeight))}}function T(){A&&(A.clearRect(0,0,b.width,b.height),o.backgroundColor&&(A.fillStyle=o.backgroundColor,A.fillRect(0,0,b.width,b.height)));for(var M=0,O=0;O<g.length;++O)M+=g[O];if(M<=0)return;for(var L=-_,D=0,I=0,P=0;L<w.height;){if(D%2===0){for(var z=I/2%y.length,N=0,U=0,B=0;N<w.width*2;){for(var Y=0,O=0;O<m[P].length;++O)Y+=m[P][O];if(Y<=0)break;if(U%2===0){var q=(1-o.symbolSize)*.5,Q=N+m[P][U]*q,j=L+g[D]*q,fe=m[P][U]*o.symbolSize,be=g[D]*o.symbolSize,Xe=B/2%y[z].length;Be(Q,j,fe,be,y[z][Xe])}N+=m[P][U],++B,++U,U===m[P].length&&(U=0)}++P,P===m.length&&(P=0)}L+=g[D],++I,++D,D===g.length&&(D=0)}function Be(Le,ve,de,Se,zt){var tt=a?1:r,Dr=Nt(zt,Le*tt,ve*tt,de*tt,Se*tt,o.color,o.symbolKeepAspect);if(a){var gt=i.painter.renderOneToVNode(Dr);gt&&S.children.push(gt)}else w1(A,Dr)}}}}function A1(t){if(!t||t.length===0)return[["rect"]];if(G(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!G(t[r])){e=!1;break}if(e)return A1([t]);for(var i=[],r=0;r<t.length;++r)G(t[r])?i.push([t[r]]):i.push(t[r]);return i}function M1(t){if(!t||t.length===0)return[[0,0]];if(me(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,i=0;i<t.length;++i)if(!me(t[i])){r=!1;break}if(r)return M1([t]);for(var a=[],i=0;i<t.length;++i)if(me(t[i])){var e=Math.ceil(t[i]);a.push([e,e])}else{var e=F(t[i],function(s){return Math.ceil(s)});e.length%2===1?a.push(e.concat(e)):a.push(e)}return a}function pz(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=F(t,function(i){return Math.ceil(i)});return t.length%2?r.concat(r):r}function hz(t){return F(t,function(e){return L1(e)})}function L1(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}var D1=Ts(dz);function dz(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var i=r.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var l=i.ensureUniqueItemVisual(o,"style");l.decal=yy(s,e)}});var a=i.getVisual("decal");if(a){var n=i.getVisual("style");n.decal=yy(a,e)}}})}var vz=1,mz=800,gz=900,yz=920,xz=1e3,_z=2e3,O1=5e3,F1=1e3,bz=1100,Dy=2e3,H1=3e3,Sz=4e3,xh=4500,Cz=4600,wz=5e3,Tz=6e3,G1=7e3,K1={PROCESSOR:{SERIES_FILTER:mz,AXIS_STATISTICS:yz,FILTER:xz,STATISTIC:O1,STATISTICS:O1},VISUAL:{LAYOUT:F1,PROGRESSIVE_LAYOUT:bz,GLOBAL:Dy,CHART:H1,POST_CHART_LAYOUT:Cz,COMPONENT:Sz,BRUSH:wz,CHART_ITEM:xh,ARIA:Tz,DECAL:G1}},_t="__flagInMainProcess",hh="__mainProcessVersion",Rt="__pendingUpdate",xy="__needsUpdateStatus",I1=/^[a-zA-Z0-9_]+$/,_y="__connectUpdateStatus",P1=0,Ez=1,Az=2;function Y1(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return $1(this,t,e)}}function W1(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return $1(this,t,e)}}function $1(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),ar.prototype[e].apply(t,r)}var X1=(function(t){R(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(ar),q1=X1.prototype;q1.on=W1("on");q1.off=W1("off");var Lo,by,dh,Aa,vh,Sy,Cy,Qs,el,N1,R1,wy,k1,mh,z1,Z1,ri,V1,tl,j1=(function(t){R(e,t);function e(r,i,a){var n=t.call(this,new qT)||this;n._chartsViews=[],n._chartsMap={},n._componentsViews=[],n._componentsMap={},n._pendingActions=[],a=a||{},n.__v_skip=!0,n._dom=r;var o="canvas",s="auto",l=!1;if(n[hh]=1,0)var u;a.ssr&&Fb(function(h){var d=_e(h),v=d.dataIndex;if(v!=null){var m=te();return m.set("series_index",d.seriesIndex),m.set("data_index",v),d.ssrType&&m.set("ssr_type",d.ssrType),m}});var f=n._zr=em(r,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:X(a.useDirtyRect,l),useCoarsePointer:X(a.useCoarsePointer,s),pointerSize:a.pointerSize});n._ssr=a.ssr,n._throttledZrFlush=Eu(oe(f.flush,f),17),n._updateTheme(i),n._locale=vw(a.locale||vp),n._coordSysMgr=new xo;var c=n._api=z1(n);function p(h,d){return h.__prio-d.__prio}return zn(yh,p),zn(Ay,p),n._scheduler=new fy(n,c,Ay,yh),n._messageCenter=new X1,n._initEvents(),n.resize=oe(n.resize,n),f.animation.on("frame",n._onframe,n),N1(f,n),R1(f,n),os(n),n}return e.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,i=this._model,a=this._api;if(V1(this),this[Rt]){var n=this[Rt].silent;this[_t]=!0,tl(this);try{Lo(this),Aa.update.call(this,null,this[Rt].updateParams)}catch(l){throw this[_t]=!1,this[Rt]=null,l}this._zr.flush(),this[_t]=!1,this[Rt]=null,Qs.call(this,n),el.call(this,n)}else if(r.unfinished){var o=vz;do{r.unfinished=!1;var s=St.getTime();r.performSeriesTasks(i),r.performDataProcessorTasks(i),Sy(this,i),r.performVisualTasks(i),mh(this,this._model,a,"remain",{}),o-=St.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,i,a){if(!this[_t]){if(this._disposed){this.id;return}var n,o,s;if($(i)&&(a=i.lazyUpdate,n=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[_t]=!0,tl(this),!this._model||i){var l=new Zw(this._api),u=this._theme,f=this._model=new Fp;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},My);var c={seriesTransition:s,optionChanged:!0};if(a)this[Rt]={silent:n,updateParams:c},this[_t]=!1,this.getZr().wakeUp();else{try{Lo(this),Aa.update.call(this,null,c)}catch(p){throw this[Rt]=null,this[_t]=!1,p}this._ssr||this._zr.flush(),this[Rt]=null,this[_t]=!1,Qs.call(this,n),el.call(this,n)}}},e.prototype.setTheme=function(r,i){if(!this[_t]){if(this._disposed){this.id;return}var a=this._model;if(a){var n=i&&i.silent,o=null;this[Rt]&&(n==null&&(n=this[Rt].silent),o=this[Rt].updateParams,this[Rt]=null),this[_t]=!0,tl(this);try{this._updateTheme(r),a.setTheme(this._theme),Lo(this),Aa.update.call(this,{type:"setTheme"},o)}catch(s){throw this[_t]=!1,s}this[_t]=!1,Qs.call(this,n),el.call(this,n)}}},e.prototype._updateTheme=function(r){G(r)&&(r=J1[r]),r&&(r=ee(r),r&&Hp(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||ye.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var i=this._zr.painter;return i.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,i=r.storage.getDisplayList();return E(i,function(a){a.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var i=r.excludeComponents,a=this._model,n=[],o=this;E(i,function(l){a.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(n.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 E(n,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var i=r.type==="svg",a=this.group,n=Math.min,o=Math.max,s=1/0;if(U1[a]){var l=s,u=s,f=-s,c=-s,p=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();E(Iu,function(x,_){if(x.group===a){var b=i?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(ee(r)),S=x.getDom().getBoundingClientRect();l=n(S.left,l),u=n(S.top,u),f=o(S.right,f),c=o(S.bottom,c),p.push({dom:b,left:S.left,top:S.top})}}),l*=h,u*=h,f*=h,c*=h;var d=f-l,v=c-u,m=St.createCanvas(),g=em(m,{renderer:i?"svg":"canvas"});if(g.resize({width:d,height:v}),i){var y="";return E(p,function(x){var _=x.left-l,b=x.top-u;y+='<g transform="translate('+_+","+b+')">'+x.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new Pe({shape:{x:0,y:0,width:d,height:v},style:{fill:r.connectedBackgroundColor}})),E(p,function(x){var _=new it({style:{x:x.left*h-l,y:x.top*h-u,image:x.dom}});g.add(_)}),g.refreshImmediately(),m.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,i,a){return vh(this,"convertToPixel",r,i,a)},e.prototype.convertToLayout=function(r,i,a){return vh(this,"convertToLayout",r,i,a)},e.prototype.convertFromPixel=function(r,i,a){return vh(this,"convertFromPixel",r,i,a)},e.prototype.containPixel=function(r,i){if(this._disposed){this.id;return}var a=this._model,n,o=Lc(a,r);return E(o,function(s,l){l.indexOf("Models")>=0&&E(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)n=n||!!f.containPoint(i);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(n=n||c.containPoint(i,u))}},this)},this),!!n},e.prototype.getVisual=function(r,i){var a=this._model,n=Lc(a,r,{defaultMainType:"series"}),o=n.seriesModel,s=o.getData(),l=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?s.indexOfRawIndex(n.dataIndex):null;return l!=null?nh(s,l,i):oh(s,i)},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;E(Mz,function(a){var n=function(o){var s=r.getModel(),l=o.target,u,f=a==="globalout";if(f?u={}:l&&Ea(l,function(v){var m=_e(v);if(m&&m.dataIndex!=null){var g=m.dataModel||s.getSeriesByIndex(m.seriesIndex);return u=g&&g.getDataParams(m.dataIndex,m.dataType,l)||{},!0}else if(m.eventData)return u=k({},m.eventData),!0},!0),u){var c=u.componentType,p=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",p=u.seriesIndex);var h=c&&p!=null&&s.getComponent(c,p),d=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=a,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:d},r.trigger(a,u)}};n.zrEventfulCallAtLast=!0,r._zr.on(a,n,r)});var i=this._messageCenter;E(Ey,function(a,n){i.on(n,function(o){r.trigger(n,o)})}),t1(i,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&&fm(this.getDom(),Iy,"");var i=this,a=i._api,n=i._model;E(i._componentsViews,function(o){o.dispose(n,a)}),E(i._chartsViews,function(o){o.dispose(n,a)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete Iu[i.id]},e.prototype.resize=function(r){if(!this[_t]){if(this._disposed){this.id;return}this._zr.resize(r);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var a=i.resetOption("media"),n=r&&r.silent;this[Rt]&&(n==null&&(n=this[Rt].silent),a=!0,this[Rt]=null),this[_t]=!0,tl(this);try{a&&Lo(this),Aa.update.call(this,{type:"resize",animation:k({duration:0},r&&r.animation)})}catch(o){throw this[_t]=!1,o}this[_t]=!1,Qs.call(this,n),el.call(this,n)}}},e.prototype.showLoading=function(r,i){if(this._disposed){this.id;return}if($(r)&&(i=r,r=""),r=r||"default",this.hideLoading(),!!Ly[r]){var a=Ly[r](this._api,i),n=this._zr;this._loadingFX=a,n.add(a)}},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 i=k({},r);return i.type=Ty[r.type],i},e.prototype.dispatchAction=function(r,i){if(this._disposed){this.id;return}if($(i)||(i={silent:!!i}),!!gh[r.type]&&this._model){if(this[_t]){this._pendingActions.push(r);return}var a=i.silent;Cy.call(this,r,a);var n=i.flush;n?this._zr.flush():n!==!1&&ye.browser.weChat&&this._throttledZrFlush(),Qs.call(this,a),el.call(this,a)}},e.prototype.updateLabelLayout=function(){Ur.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var i=r.seriesIndex,a=this.getModel(),n=a.getSeriesByIndex(i);n.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){Lo=function(c){o1(c._model);var p=c._scheduler;p.restorePipelines(c._zr,c._model),p.prepareStageTasks(),by(c,!0),by(c,!1),p.plan()},by=function(c,p){for(var h=c._model,d=c._scheduler,v=p?c._componentsViews:c._chartsViews,m=p?c._componentsMap:c._chartsMap,g=c._zr,y=c._api,x=0;x<v.length;x++)v[x].__alive=!1;p?h.eachComponent(function(S,w){S!=="series"&&_(w)}):h.eachSeries(_);function _(S){var w=S.__requireNewView;S.__requireNewView=!1;var A="_ec_"+S.id+"_"+S.type,C=!w&&m[A];if(!C){var T=_r(S.type),M=p?Mt.getClass(T.main,T.sub):mt.getClass(T.sub);C=new M,C.init(h,y),m[A]=C,v.push(C),g.add(C.group)}S.__viewId=C.__id=A,C.__alive=!0,C.__model=S,C.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!p&&d.prepareView(C,S,h,y)}for(var x=0;x<v.length;){var b=v[x];b.__alive?x++:(!p&&b.renderTask.dispose(),g.remove(b.group),b.dispose(h,y),v.splice(x,1),m[b.__id]===b&&delete m[b.__id],b.__id=b.group.__ecComponentInfo=null)}},dh=function(c,p,h,d,v){var m=c._model;if(m.setUpdatePayload(h),!d){E([].concat(c._componentsViews).concat(c._chartsViews),_);return}var g=eS(h,d,v),y=h.excludeSeriesId,x;y!=null&&(x=te(),E(Ge(y),function(b){var S=wt(b,null);S!=null&&x.set(S,!0)})),m&&m.eachComponent(g,function(b){var S=x&&x.get(b.id)!=null;if(!S)if(qm(h))if(b instanceof At)h.type===un&&!h.notBlur&&!b.get(["emphasis","disabled"])&&cC(b,h,c._api);else{var w=Xc(b.mainType,b.componentIndex,h.name,c._api),A=w.focusSelf,C=w.dispatchers;h.type===un&&A&&!h.notBlur&&Kc(b.mainType,b.componentIndex,c._api),C&&E(C,function(T){h.type===un?ao(T):no(T)})}else Zc(h)&&b instanceof At&&(dC(b,h,c._api),Xm(b),ri(c))},c),m&&m.eachComponent(g,function(b){var S=x&&x.get(b.id)!=null;S||_(c[d==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},c);function _(b){b&&b.__alive&&b[p]&&b[p](b.__model,m,c._api,h)}},Aa={prepareAndUpdate:function(c){Lo(this),Aa.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,p){var h=this._model,d=this._api,v=this._zr,m=this._coordSysMgr,g=this._scheduler;if(h){s1(h),h.setUpdatePayload(c),g.restoreData(h,c),g.performSeriesTasks(h),m.create(h,d),Ur.trigger("coordsys:aftercreate",h,d),g.performDataProcessorTasks(h,c),Sy(this,h),m.update(h,d),i(h),g.performVisualTasks(h,c);var y=h.get("backgroundColor")||"transparent";v.setBackgroundColor(y);var x=h.get("darkMode");x!=null&&x!=="auto"&&v.setDarkMode(x),wy(this,h,d,c,p),Ur.trigger("afterupdate",h,d)}},updateTransform:function(c){var p=this,h=p._model,d=p._api;if(h){h.setUpdatePayload(c);var v=[];h.eachComponent(function(g,y){if(g!==Fc){var x=p.getViewOfComponentModel(y);if(x&&x.__alive)if(x.updateTransform){var _=x.updateTransform(y,h,d,c);_&&_.update&&v.push(x)}else v.push(x)}});var m=te();h.eachSeries(function(g){var y=p._chartsMap[g.__viewId],x=g.pipelineContext;if(y.updateTransform&&!x.progressiveRender){var _=y.updateTransform(g,h,d,c);_&&_.update&&m.set(g.uid,1)}else m.set(g.uid,1)}),p._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:m}),mh(p,h,d,c,{},m),Ur.trigger("afterupdate",h,d)}},updateView:function(c){var p=this._model;p&&(p.setUpdatePayload(c),mt.markUpdateMethod(c,"updateView"),i(p),this._scheduler.performVisualTasks(p,c,{setDirty:!0}),wy(this,p,this._api,c,{}),Ur.trigger("afterupdate",p,this._api))},updateVisual:function(c){var p=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(d){d.getData().clearAllVisual()}),mt.markUpdateMethod(c,"updateVisual"),i(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,v){if(d!=="series"){var m=p.getViewOfComponentModel(v);m&&m.__alive&&m.updateVisual(v,h,p._api,c)}}),h.eachSeries(function(d){var v=p._chartsMap[d.__viewId];v.updateVisual(d,h,p._api,c)}),Ur.trigger("afterupdate",h,this._api))},updateLayout:function(c){Aa.update.call(this,c)}};function r(c,p,h,d,v){if(c._disposed){c.id;return}for(var m=c._model,g=c._coordSysMgr.getCoordinateSystems(),y,x=Lc(m,h),_=0;_<g.length;_++){var b=g[_];if(b[p]&&(y=b[p](m,x,d,v))!=null)return y}}vh=r,Sy=function(c,p){var h=c._chartsMap,d=c._scheduler;p.eachSeries(function(v){d.updateStreamModes(v,h[v.__viewId])})},Cy=function(c,p){var h=this,d=this.getModel(),v=c.type,m=c.escapeConnect,g=gh[v],y=(g.update||"update").split(":"),x=y.pop(),_=y[0]!=null&&_r(y[0]);this[_t]=!0,tl(this);var b=[c],S=!1;c.batch&&(S=!0,b=F(c.batch,function(P){return P=le(k({},P),c),P.batch=null,P}));var w=[],A,C=[],T=g.nonRefinedEventType,M=Zc(c),O=qm(c);if(O&&$m(this._api),E(b,function(P){var z=g.action(P,d,h._api);if(g.refineEvent?C.push(z):A=z,A=A||k({},P),A.type=T,w.push(A),O){var N=Jl(c),U=N.queryOptionMap,B=N.mainTypeSpecified,Y=B?U.keys()[0]:"series";dh(h,x,P,Y),ri(h)}else M?(dh(h,x,P,"series"),ri(h)):_&&dh(h,x,P,_.main,_.sub)}),x!=="none"&&!O&&!M&&!_)try{this[Rt]?(Lo(this),Aa.update.call(this,c),this[Rt]=null):Aa[x].call(this,c)}catch(P){throw this[_t]=!1,P}if(S?A={type:T,escapeConnect:m,batch:w}:A=w[0],this[_t]=!1,!p){var L=void 0;if(g.refineEvent){var D=g.refineEvent(C,c,d,this._api).eventContent;qe($(D)),L=le({type:g.refinedEventType},D),L.fromAction=c.type,L.fromActionPayload=c,L.escapeConnect=!0}var I=this._messageCenter;I.trigger(A.type,A),L&&I.trigger(L.type,L)}},Qs=function(c){for(var p=this._pendingActions;p.length;){var h=p.shift();Cy.call(this,h,c)}},el=function(c){!c&&this.trigger("updated")},N1=function(c,p){c.on("rendered",function(h){p.trigger("rendered",h),c.animation.isFinished()&&!p[Rt]&&!p._scheduler.unfinished&&!p._pendingActions.length?p.trigger("finished"):c.refresh()})},R1=function(c,p){c.on("mouseover",function(h){var d=h.target,v=Ea(d,lu);v&&(pC(v,h,p._api),ri(p))}).on("mouseout",function(h){var d=h.target,v=Ea(d,lu);v&&(hC(v,h,p._api),ri(p))}).on("click",function(h){var d=h.target,v=Ea(d,function(y){return _e(y).dataIndex!=null},!0);if(v){var m=v.selected?"unselect":"select",g=_e(v);p._api.dispatchAction({type:m,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function i(c){c.clearColorPalette(),c.eachSeries(function(p){p.clearColorPalette()})}function a(c){var p=[],h=[],d=!1;if(c.eachComponent(function(y,x){var _=x.get("zlevel")||0,b=x.get("z")||0,S=x.getZLevelKey();d=d||!!S,(y==="series"?h:p).push({zlevel:_,z:b,idx:x.componentIndex,type:y,key:S})}),d){var v=p.concat(h),m,g;zn(v,function(y,x){return y.zlevel===x.zlevel?y.z-x.z:y.zlevel-x.zlevel}),E(v,function(y){var x=c.getComponent(y.type,y.idx),_=y.zlevel,b=y.key;m!=null&&(_=Math.max(m,_)),b?(_===m&&b!==g&&_++,g=b):g&&(_===m&&_++,g=""),m=_,x.setZLevel(_)})}}wy=function(c,p,h,d,v){a(p),k1(c,p,h,d,v),E(c._chartsViews,function(m){m.__alive=!1}),mh(c,p,h,d,v),E(c._chartsViews,function(m){m.__alive||m.remove(p,h)})},k1=function(c,p,h,d,v,m){E(m||c._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,p,h,d),l(y,g),f(y,g)})},mh=function(c,p,h,d,v,m){var g=c._scheduler;v=k(v||{},{updatedSeries:p.getSeries()}),Ur.trigger("series:beforeupdate",p,h,v);var y=!1;p.eachSeries(function(x){var _=c._chartsMap[x.__viewId];_.__alive=!0;var b=_.renderTask;g.updatePayload(b,d),u(x,_),m&&m.get(x.uid)&&b.dirty(),b.perform(g.getPerformArgs(b))&&(y=!0),_.group.silent=!!x.get("silent"),s(x,_),Xm(x)}),g.unfinished=y||g.unfinished,Ur.trigger("series:layoutlabels",p,h,v),Ur.trigger("series:transition",p,h,v),p.eachSeries(function(x){var _=c._chartsMap[x.__viewId];l(x,_),f(x,_)}),o(c,p),Ur.trigger("series:afterupdate",p,h,v)},ri=function(c){c[xy]=!0,c.getZr().wakeUp()},tl=function(c){c[hh]=(c[hh]+1)%1e6},V1=function(c){c[xy]&&(c.getZr().storage.traverse(function(p){_a(p)||n(p)}),c[xy]=!1)};function n(c){for(var p=[],h=c.currentStates,d=0;d<h.length;d++){var v=h[d];v==="emphasis"||v==="blur"||v==="select"||p.push(v)}c.selected&&c.states.select&&p.push("select"),c.hoverState===au&&c.states.emphasis?p.push("emphasis"):c.hoverState===iu&&c.states.blur&&p.push("blur"),c.useStates(p)}function o(c,p){var h=c._zr;if(h.painter.type==="canvas"){var d=h.storage,v=0;d.traverse(function(g){g.isGroup||v++});var m=v>X(p.get("hoverLayerThreshold"),zp.hoverLayerThreshold)&&!ye.node&&!ye.worker;(c._usingTHL||m)&&(p.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(x){var _=x.states.emphasis;_&&_.hoverLayer!==fo&&(_.hoverLayer=m?ug:lg)})}}),c._usingTHL=m)}}function s(c,p){var h=c.get("blendMode")||null;p.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function l(c,p){if(!c.preventAutoZ){var h=vg(c);p.eachRendered(function(d){return mg(d,h.z,h.zlevel),!0})}}function u(c,p){p.eachRendered(function(h){if(!_a(h)){var d=h.getTextContent(),v=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,p){var h=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),v=h.get("duration"),m=v>0?{duration:v,delay:h.get("delay"),easing:h.get("easing")}:null;p.eachRendered(function(g){if(g.states&&g.states.emphasis){if(_a(g))return;if(g instanceof he&&gC(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(d){g.stateTransition=m;var x=g.getTextContent(),_=g.getTextGuideLine();x&&(x.stateTransition=m),_&&(_.stateTransition=m)}g.__dirty&&n(g)}})}z1=function(c){return new((function(p){R(h,p);function h(){return p!==null&&p.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var v=d.__ecComponentInfo;if(v!=null)return c._model.getComponent(v.mainType,v.index);d=d.parent}},h.prototype.enterEmphasis=function(d,v){ao(d,v),ri(c)},h.prototype.leaveEmphasis=function(d,v){no(d,v),ri(c)},h.prototype.enterBlur=function(d){uC(d),ri(c)},h.prototype.leaveBlur=function(d){Km(d),ri(c)},h.prototype.enterSelect=function(d){Ym(d),ri(c)},h.prototype.leaveSelect=function(d){Wm(d),ri(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[hh]},h.prototype.usingTHL=function(){return c._usingTHL},h})(Gc))(c)},Z1=function(c){function p(h,d){for(var v=0;v<h.length;v++){var m=h[v];m[_y]=d}}E(Ty,function(h,d){c._messageCenter.on(d,function(v){if(U1[c.group]&&c[_y]!==P1){if(v&&v.escapeConnect)return;var m=c.makeActionFromEvent(v),g=[];E(Iu,function(y){y!==c&&y.group===c.group&&g.push(y)}),p(g,P1),E(g,function(y){y[_y]!==Ez&&y.dispatchAction(m)}),p(g,Az)}})})}})(),e})(ar),Oy=j1.prototype;Oy.on=Y1("on");Oy.off=Y1("off");Oy.one=function(t,e,r){var i=this;function a(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];e&&e.apply&&e.apply(this,n),i.off(t,a)}this.on.call(this,t,a,r)};var Mz=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var gh={},Ty={},Ey={},Ay=[],My=[],yh=[],J1={},Ly={},Iu={},U1={},Lz=+new Date-0,B8=+new Date-0,Iy="_echarts_instance_";function Q1(t,e,r){var i=!(r&&r.ssr);if(i){var a=Dz(t);if(a)return a}var n=new j1(t,e,r);return n.id="ec_"+Lz++,Iu[n.id]=n,i&&fm(t,Iy,n.id),Z1(n),Ur.trigger("afterinit",n),n}function Dz(t){return Iu[tS(t,Iy)]}function eE(t,e){J1[t]=e}function Py(t){pe(My,t)<0&&My.push(t)}function Ny(t,e){Ry(Ay,t,e,_z)}function tE(t){_h("afterinit",t)}function rE(t){_h("afterupdate",t)}function _h(t,e){Ur.on(t,e)}function Do(t,e,r){var i,a,n,o,s;Z(e)&&(r=e,e=""),$(t)?(i=t.type,a=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),n=t.refineEvent):(i=t,a=e);function l(f){return f.toLowerCase()}a=l(a||i);var u=n?l(i):a;gh[i]||(qe(I1.test(i)&&I1.test(a)),n&&qe(a!==i),gh[i]={actionType:i,refinedEventType:a,nonRefinedEventType:u,update:o,action:r,refineEvent:n},Ey[a]=1,n&&s&&(Ey[u]=1),Ty[u]=i)}function iE(t,e){xo.register(t,e)}function aE(t,e){Ry(yh,t,e,F1,"layout",!0)}function yn(t,e){Ry(yh,t,e,H1,"visual",!0)}var B1=[];function Ry(t,e,r,i,a,n){if((Z(e)||$(e))&&(r=e,e=i),!(pe(B1,r)>=0)){B1.push(r);var o=fy.wrapStageHandler(r,a);o.__prio=e,o.__raw=r,t.push(o)}}function ky(t,e){Ly[t]=e}function bh(t,e,r){var i=a1("registerMap");i&&i(t,e,r)}var nE=vT;yn(Dy,UT);yn(xh,BT);yn(xh,FT);yn(Dy,jT);yn(xh,JT);yn(G1,D1);Py(Hp);Ny(gz,iT);ky("default",uy);Do({type:un,event:un,update:un},Ze);Do({type:nu,event:nu,update:nu},Ze);Do({type:ou,event:Wc,update:ou,action:Ze,refineEvent:zy,publishNonRefinedEvent:!0});Do({type:Yc,event:Wc,update:Yc,action:Ze,refineEvent:zy,publishNonRefinedEvent:!0});Do({type:su,event:Wc,update:su,action:Ze,refineEvent:zy,publishNonRefinedEvent:!0});function zy(t,e,r,i){return{eventContent:{selected:vC(r),isFromClick:e.isFromClick||!1}}}eE("default",{});eE("dark",XT);function Pu(t){return t==null?0:t.length||1}function oE(t){return t}var Oz=(function(){function t(e,r,i,a,n,o){this._old=e,this._new=r,this._oldKeyGetter=i||oE,this._newKeyGetter=a||oE,this.context=n,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,i={},a=new Array(e.length),n=new Array(r.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(r,i,n,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=a[o],l=i[s],u=Pu(l);if(u>1){var f=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(f,o)}else u===1?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(n,i)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,i={},a={},n=[],o=[];this._initIndexMap(e,i,n,"_oldKeyGetter"),this._initIndexMap(r,a,o,"_newKeyGetter");for(var s=0;s<n.length;s++){var l=n[s],u=i[l],f=a[l],c=Pu(u),p=Pu(f);if(c>1&&p===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(c===1&&p>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(c===1&&p===1)this._update&&this._update(f,u),a[l]=null;else if(c>1&&p>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[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,a)},t.prototype._performRestAdd=function(e,r){for(var i=0;i<e.length;i++){var a=e[i],n=r[a],o=Pu(n);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(n[s]);else o===1&&this._add&&this._add(n);r[a]=null}},t.prototype._initIndexMap=function(e,r,i,a){for(var n=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[a](e[o],o);if(n||(i[o]=s),!!r){var l=r[s],u=Pu(l);u===0?(r[s]=o,n&&i.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t})(),sE=Oz;var Iz=(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 lE(t,e){var r={},i=r.encode={},a=te(),n=[],o=[],s={};E(t.dimensions,function(p){var h=t.getDimensionInfo(p),d=h.coordDim;if(d){var v=h.coordDimIndex;Vy(i,d)[v]=p,h.isExtraCoord||(a.set(d,1),Pz(h.type)&&(n[0]=p),Vy(s,d)[v]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(p)}Hc.each(function(m,g){var y=Vy(i,g),x=h.otherDims[g];x!=null&&x!==!1&&(y[x]=h.name)})});var l=[],u={};a.each(function(p,h){var d=i[h];u[h]=d[0],l=l.concat(d)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=F(l,function(p){return t.getDimensionInfo(p).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=i.label;f&&f.length&&(n=f.slice());var c=i.tooltip;return c&&c.length?o=c.slice():o.length||(o=n.slice()),i.defaultedLabel=n,i.defaultedTooltip=o,r.userOutput=new Iz(s,e),r}function Vy(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function uE(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function Pz(t){return!(t==="ordinal"||t==="time")}var Nz=(function(){function t(e){this.otherDims={},e!=null&&k(this,e)}return t})(),rl=Nz;var Rz=ae(),kz={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Uy=(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=By(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return X(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=Kp(this.source),i=!Fy(e),a="",n=[],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 p=this.getSourceDimension(o);p&&(l=r?p.name:null,u=p.type)}n.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(a+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=kz[u]||"f",f&&(a+=f.uid),a+="$"}var h=this.source,d=[h.seriesLayoutBy,h.startIndex,a].join("$$");return{dimensions:n,hash:d}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,i=0;r<this._fullDimCount;r++){var a=void 0,n=this.dimensions[i];if(n&&n.storeDimIndex===r)n.isCalculationCoord||(a=n.name),i++;else{var o=this.getSourceDimension(r);o&&(a=o.name)}e.push(a)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function Sh(t){return t instanceof Uy}function Nu(t){for(var e=te(),r=0;r<(t||[]).length;r++){var i=t[r],a=$(i)?i.name:i;a!=null&&e.get(a)==null&&e.set(a,r)}return e}function By(t){var e=Rz(t);return e.dimNameMap||(e.dimNameMap=Nu(t.dimensionsDefine))}function Fy(t){return t>30}var Ru=$,xn=F,zz=typeof Int32Array>"u"?Array:Int32Array,Vz="e\0\0",fE=-1,Uz=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Bz=["_approximateExtent"],cE,Ch,ku,zu,Hy,Vu,Gy,Fz=(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 i,a=!1;Sh(e)?(i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,i=e),i=i||["x","y"];for(var n={},o=[],s={},l=!1,u={},f=0;f<i.length;f++){var c=i[f],p=G(c)?new rl({name:c}):c instanceof rl?c:new rl(c),h=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=h,p.coordDimIndex=0);var d=p.otherDims=p.otherDims||{};o.push(h),n[h]=p,u[h]!=null&&(l=!0),p.createInvertedIndices&&(s[h]=[]),a&&(p.storeDimIndex=f),d.itemName===0&&(this._nameDimIdx=p.storeDimIndex),d.itemId===0&&(this._idDimIdx=p.storeDimIndex)}if(this.dimensions=o,this._dimInfos=n,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var v=this._dimIdxToName=te();E(o,function(m){v.set(n[m].storeDimIndex,m)})}}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 i=this._dimIdxToName.get(r);if(i!=null)return i;var a=this._schema.getSourceDimension(r);if(a)return a.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var i=this._getDimInfo(e);return i?i.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(i){return r.hasOwnProperty(i)?r[i]:void 0}:function(i){return r[i]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var i=this._dimSummary;if(r==null)return i.encodeFirstDimNotExtra[e];var a=i.encode[e];return a?a[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,i=r.encode[e];return(i||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,i){var a=this,n;if(e instanceof Tu&&(n=e),!n){var o=this.dimensions,s=Xs(e)||lt(e)?new Wp(e,o.length):e;n=new Tu;var l=xn(o,function(u){return{type:a._dimInfos[u].type,property:u}});n.initData(s,l,i)}this._store=n,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,n.count()),this._dimSummary=lE(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 i=this._store.appendValues(e,r&&r.length),a=i.start,n=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=a;s<n;s++){var l=s-a;this._nameList[s]=r[l],o&&Gy(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,i=0;i<r.length;i++){var a=this._dimInfos[r[i]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Nr&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var i=this._store,a=i.getProvider();this._updateOrdinalMeta();var n=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Tt;if(l&&!a.pure)for(var u=[],f=e;f<r;f++){var c=a.getItem(f,u);if(!this.hasItemOption&&Zb(c)&&(this.hasItemOption=!0),c){var p=c.name;n[f]==null&&p!=null&&(n[f]=wt(p,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=wt(h,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)Gy(this,f);cE(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){Ru(e)?k(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),i=this._nameList[r];return i==null&&this._nameDimIdx!=null&&(i=ku(this,this._nameDimIdx,r)),i==null&&(i=""),i},t.prototype._getCategory=function(e,r){var i=this._store.get(e,r),a=this._store.getOrdinalMeta(e);return a?a.categories[i]:i},t.prototype.getId=function(e){return Ch(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var i=this._store,a=this._dimInfos[e];if(a)return i.get(a.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var i=this._store,a=this._dimInfos[e];if(a)return i.getByRawIndex(a.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 i=this,a=this._store;return V(e)?a.getValues(xn(e,function(n){return i._getStoreDimIndex(n)}),r):a.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,i=0,a=r.length;i<a;i++)if(isNaN(this._store.get(r[i],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,i=this._store.count();r<i;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 i=e&&this._invertedIndicesMap[e],a=i&&i[r];return a==null||isNaN(a)?fE:a},t.prototype.each=function(e,r,i){"use strict";Z(e)&&(i=r,r=e,e=[]);var a=i||this,n=xn(zu(e),this._getStoreDimIndex,this);this._store.each(n,a?oe(r,a):r)},t.prototype.filterSelf=function(e,r,i){"use strict";Z(e)&&(i=r,r=e,e=[]);var a=i||this,n=xn(zu(e),this._getStoreDimIndex,this);return this._store=this._store.filter(n,a?oe(r,a):r),this},t.prototype.selectRange=function(e){"use strict";var r=this,i={},a=ie(e),n=[];return E(a,function(o){var s=r._getStoreDimIndex(o);i[s]=e[o],n.push(s)}),this._store=this._store.selectRange(i),this},t.prototype.mapArray=function(e,r,i){"use strict";Z(e)&&(i=r,r=e,e=[]),i=i||this;var a=[];return this.each(e,function(){a.push(r&&r.apply(this,arguments))},i),a},t.prototype.map=function(e,r,i,a){"use strict";var n=i||a||this,o=xn(zu(e),this._getStoreDimIndex,this),s=Vu(this);return s._store=this._store.map(o,n?oe(r,n):r),s},t.prototype.modify=function(e,r,i,a){var n=this,o=i||a||this,s=xn(zu(e),this._getStoreDimIndex,this);this._store.modify(s,o?oe(r,o):r)},t.prototype.downSample=function(e,r,i,a){var n=Vu(this);return n._store=this._store.downSample(this._getStoreDimIndex(e),r,i,a),n},t.prototype.minmaxDownSample=function(e,r){var i=Vu(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),i},t.prototype.lttbDownSample=function(e,r){var i=Vu(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),i},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,i=this.getRawDataItem(e);return new je(i,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new sE(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(i){return Ch(e,i)},function(i){return Ch(r,i)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},Ru(e)?k(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var i=this._itemVisuals[e],a=i&&i[r];return a??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var i=this._itemVisuals,a=i[e];a||(a=i[e]={});var n=a[r];return n==null&&(n=this.getVisual(r),V(n)?n=n.slice():Ru(n)&&(n=k({},n)),a[r]=n),n},t.prototype.setItemVisual=function(e,r,i){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,Ru(r)?k(a,r):a[r]=i},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){Ru(e)?k(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,i){this._itemLayouts[e]=i?k(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var i=this.hostModel&&this.hostModel.seriesIndex;jS(i,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){E(this._graphicEls,function(i,a){i&&e&&e.call(r,i,a)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:xn(this.dimensions,this._getDimInfo,this),this.hostModel)),Hy(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var i=this[e];Z(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=i.apply(this,arguments);return r.apply(this,[a].concat(zf(arguments)))})},t.internalField=(function(){cE=function(e){var r=e._invertedIndicesMap;E(r,function(i,a){var n=e._dimInfos[a],o=n.ordinalMeta,s=e._store;if(o){i=r[a]=new zz(o.categories.length);for(var l=0;l<i.length;l++)i[l]=fE;for(var l=0;l<s.count();l++)i[s.get(n.storeDimIndex,l)]=l}})},ku=function(e,r,i){return wt(e._getCategory(r,i),null)},Ch=function(e,r){var i=e._idList[r];return i==null&&e._idDimIdx!=null&&(i=ku(e,e._idDimIdx,r)),i==null&&(i=Vz+r),i},zu=function(e){return V(e)||(e=e!=null?[e]:[]),e},Vu=function(e){var r=new t(e._schema?e._schema:xn(e.dimensions,e._getDimInfo,e),e.hostModel);return Hy(r,e),r},Hy=function(e,r){E(Uz.concat(r.__wrappedMethods||[]),function(i){r.hasOwnProperty(i)&&(e[i]=r[i])}),e.__wrappedMethods=r.__wrappedMethods,E(Bz,function(i){e[i]=ee(r[i])}),e._calculationInfo=k({},r._calculationInfo)},Gy=function(e,r){var i=e._nameList,a=e._idList,n=e._nameDimIdx,o=e._idDimIdx,s=i[r],l=a[r];if(s==null&&n!=null&&(i[r]=s=ku(e,n,r)),l==null&&o!=null&&(a[r]=l=ku(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),a[r]=l}}})(),t})(),wh=Fz;function Uu(t,e){Xs(t)||(t=qs(t)),e=e||{};var r=e.coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],a=te(),n=[],o=Hz(t,r,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Fy(o),l=i===t.dimensionsDefine,u=l?By(t):Nu(i),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=te(f),p=new ry(o),h=0;h<p.length;h++)p[h]=-1;function d(C){var T=p[C];if(T<0){var M=i[C],O=$(M)?M:{name:M},L=new rl,D=O.name;D!=null&&u.get(D)!=null&&(L.name=L.displayName=D),O.type!=null&&(L.type=O.type),O.displayName!=null&&(L.displayName=O.displayName);var I=n.length;return p[C]=I,L.storeDimIndex=C,n.push(L),L}return n[T]}if(!s)for(var h=0;h<o;h++)d(h);c.each(function(C,T){var M=Ge(C).slice();if(M.length===1&&!G(M[0])&&M[0]<0){c.set(T,!1);return}var O=c.set(T,[]);E(M,function(L,D){var I=G(L)?u.get(L):L;I!=null&&I<o&&(O[D]=I,m(d(I),T,D))})});var v=0;E(r,function(C){var T,M,O,L;if(G(C))T=C,L={};else{L=C,T=L.name;var D=L.ordinalMeta;L.ordinalMeta=null,L=k({},L),L.ordinalMeta=D,M=L.dimsDef,O=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var I=c.get(T);if(I!==!1){if(I=Ge(I),!I.length)for(var P=0;P<(M&&M.length||1);P++){for(;v<o&&d(v).coordDim!=null;)v++;v<o&&I.push(v++)}E(I,function(z,N){var U=d(z);if(l&&L.type!=null&&(U.type=L.type),m(le(U,L),T,N),U.name==null&&M){var B=M[N];!$(B)&&(B={name:B}),U.name=U.displayName=B.name,U.defaultTooltip=B.defaultTooltip}O&&le(U.otherDims,O)})}});function m(C,T,M){Hc.get(T)!=null?C.otherDims[T]=M:(C.coordDim=T,C.coordDimIndex=M,a.set(T,!0))}var g=e.generateCoord,y=e.generateCoordCount,x=y!=null;y=g?y||1:0;var _=g||"value";function b(C){C.name==null&&(C.name=C.coordDim)}if(s)E(n,function(C){b(C)}),n.sort(function(C,T){return C.storeDimIndex-T.storeDimIndex});else for(var S=0;S<o;S++){var w=d(S),A=w.coordDim;A==null&&(w.coordDim=Gz(_,a,x),w.coordDimIndex=0,(!g||y<=0)&&(w.isExtraCoord=!0),y--),b(w),w.type==null&&(Up(t,S)===Et.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return Cs(n,function(C){return C.name},function(C,T){T>0&&(C.name=C.name+(T-1))}),new Uy({source:t,dimensions:n,fullDimensionCount:o,dimensionOmitted:s})}function Hz(t,e,r,i){var a=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,i||0);return E(e,function(n){var o;$(n)&&(o=n.dimsDef)&&(a=Math.max(a,o.length))}),a}function Gz(t,e,r){if(r||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}var Kz=(function(){function t(e){this.coordSysDims=[],this.axisMap=te(),this.categoryAxisMap=te(),this.coordSysName=e}return t})();function pE(t){var e=t.get("coordinateSystem"),r=new Kz(e),i=Yz[e];if(i)return i(t,r,r.axisMap,r.categoryAxisMap),r}var Yz={cartesian2d:function(t,e,r,i){var a=t.getReferringComponents("xAxis",Ht).models[0],n=t.getReferringComponents("yAxis",Ht).models[0];e.coordSysDims=["x","y"],r.set("x",a),r.set("y",n),il(a)&&(i.set("x",a),e.firstCategoryDimIndex=0),il(n)&&(i.set("y",n),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,i){var a=t.getReferringComponents("singleAxis",Ht).models[0];e.coordSysDims=["single"],r.set("single",a),il(a)&&(i.set("single",a),e.firstCategoryDimIndex=0)},polar:function(t,e,r,i){var a=t.getReferringComponents("polar",Ht).models[0],n=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",n),r.set("angle",o),il(n)&&(i.set("radius",n),e.firstCategoryDimIndex=0),il(o)&&(i.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,i){var a=t.ecModel,n=a.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=n.dimensions.slice();E(n.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];r.set(f,u),il(u)&&(i.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(t,e,r,i){var a=t.getReferringComponents("matrix",Ht).models[0];e.coordSysDims=["x","y"];var n=a.getDimensionModel("x"),o=a.getDimensionModel("y");r.set("x",n),r.set("y",o),i.set("x",n),i.set("y",o)}};function il(t){return t.get("type")==="category"}function hE(t,e,r){r=r||{};var i=r.byIndex,a=r.stackedCoordDimension,n,o,s;Wz(e)?n=e:(o=e.schema,n=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,c,p,h=!0;function d(_){return _.type!=="ordinal"&&_.type!=="time"}if(E(n,function(_,b){G(_)&&(n[b]=_={name:_}),d(_)||(h=!1)}),E(n,function(_,b){l&&!_.isExtraCoord&&(!i&&!u&&_.ordinalMeta&&(u=_),!f&&d(_)&&(!h||_.coordDim!=="x"&&_.coordDim!=="angle")&&(!a||a===_.coordDim)&&(f=_))}),f&&!i&&!u&&(i=!0),f){c="__\0ecstackresult_"+t.id,p="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,m=f.type,g=0;E(n,function(_){_.coordDim===v&&g++});var y={name:c,coordDim:v,coordDimIndex:g,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},x={name:p,coordDim:p,coordDimIndex:g+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(p,m),x.storeDimIndex=s.ensureCalculationDimension(c,m)),o.appendCalculationDimension(y),o.appendCalculationDimension(x)):(n.push(y),n.push(x))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:p,stackResultDimension:c}}function Wz(t){return!Sh(t.schema)}function Ma(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function dE(t,e){return Ma(t,e)?t.getCalculationInfo("stackResultDimension"):e}function $z(t,e){var r=t.get("coordinateSystem"),i=xo.get(r),a;return e&&e.coordSysDims&&(a=F(e.coordSysDims,function(n){var o={name:n},s=e.axisMap.get(n);if(s){var l=s.get("type");o.type=uE(l)}return o})),a||(a=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),a}function Xz(t,e,r){var i,a;return r&&E(t,function(n,o){var s=n.coordDim,l=r.categoryAxisMap.get(s);l&&(i==null&&(i=o),n.ordinalMeta=l.getOrdinalMeta(),e&&(n.createInvertedIndices=!0)),n.otherDims.itemName!=null&&(a=!0)}),!a&&i!=null&&(t[i].otherDims.itemName=0),i}function qz(t,e,r){r=r||{};var i=e.getSourceManager(),a,n=!1;t?(n=!0,a=qs(t)):(a=i.getSource(),n=a.sourceFormat===Tt);var o=pE(e),s=$z(e,o),l=r.useEncodeDefaulter,u=Z(l)?l:l?ut(zw,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!n},c=Uu(a,f),p=Xz(c.dimensions,r.createInvertedIndices,o),h=n?null:i.getSharedDataStore(c),d=hE(e,{schema:c,store:h}),v=new wh(c,e);v.setCalculationInfo(d);var m=p!=null&&Zz(a)?function(g,y,x,_){return _===p?x:this.defaultDimValueGetter(g,y,x,_)}:null;return v.hasItemOption=!1,v.initData(n?a:h,null,m),v}function Zz(t){if(t.sourceFormat===Tt){var e=jz(t.data||[]);return!V(da(e))}}function jz(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var ji=qz;var vE=(function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();rn(vE);var cr=vE;var Jz=0,Qz=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++Jz,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,i=r.data,a=i&&F(i,eV);return new t({categories:a,needCollect:!a,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,i=this._needCollect;if(!G(e)&&!i)return e;if(i&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var a=this._getOrCreateMap();return r=a.get(e),r==null&&(i?(r=this.categories.length,this.categories[r]=e,a.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 eV(t){return $(t)&&t.value!=null?t.value:t+""}var Bu=Qz;var Er=0,al=1,tV={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},gE=ie(tV),nl=2,yE=3;function ol(t,e,r){var i;t=t||{};var a=st();if(a){var n=a.createBreakScaleMapper(e,r);n.hasBreaks()&&(E(gE,function(o){n[o]&&(t[o]=oe(n[o],n))}),i=n)}return i==null&&rV(t,r),{brk:i,mapper:t}}function Th(t,e){E(gE,function(r){t[r]=e[r]})}function Eh(t,e){t.freeze=Ze}function La(t){return t.getExtentUnsafe(Er,nl)}function Oo(t,e){return t.getExtentUnsafe(al,e)||t.getExtentUnsafe(Er,e)}function xE(t){var e=Oo(t,yE);return e[1]-e[0]}function sl(t){var e=t.getExtentUnsafe(Er,yE);return e[1]-e[0]}function rV(t,e){var r=t||{},i=[];return r._extents=i,i[Er]=e?e.slice():Gt(),k(r,iV),r}var iV={needTransform:function(){return!1},normalize:function(t){var e=this._extents[al]||this._extents[Er];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[al]||this._extents[Er];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=Oo(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[Er].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){mE(this._extents,Er,t,e)},setExtent2:function(t,e,r){var i=this._extents;i[t]||(i[t]=i[Er].slice()),mE(i,t,e,r)},freeze:function(){}};function mE(t,e,r,i){va(r,i)&&(t[e][0]=r,t[e][1]=i)}function Ah(t){return ll(t)||Ji(t)}function ll(t){return t.type==="interval"}function ul(t){return t.type==="time"}function Ji(t){return t.type==="log"}function kt(t){return t.type==="ordinal"}function _E(t){var e=Ec(t),r=tn(10,e),i=Pr(t/r);return i?i===2?i=3:i===3?i=5:i*=2:i=1,De(i*r,-e)}function bi(t){return ci(t)+2}function Fu(t,e){return _s(t)/_s(e)}function Mh(t,e,r){var i=r&&r.lookup;if(i){for(var a=0;a<i.from.length;a++)if(t===i.from[a])return i.to[a]}return tn(e,t)}function Lh(t,e,r){var i=t.slice();if(i[0]===i[1]){var a=r&&r.ctnShp;if(i[0]!==0){var n=et(i[0]);e[1]||(i[1]+=n/2),i[0]-=n/2}else a&&(i[0]=-1),i[1]=1}return(!hi(i[0])||!hi(i[1]))&&(i[0]=0,i[1]=1),i[1]<i[0]&&i.reverse(),i}function bE(t,e){return[t[0]!==e[0],t[1]!==e[1]]}function Io(t,e){return t=t||e,Pr(we(t,1))}function Dh(t,e,r){var i=La(t),a=i[0],n=t.count(),o=Math.max((e||0)+1,1);a!==0&&o>1&&n/o>2&&(a=Math.round(Math.ceil(a/o)*o)),a!==i[0]&&l(i[0],!0,!0);for(var s=a;s<=i[1];s+=o)l(s,!1,s===i[0]||s===i[1]);s-o!==i[1]&&l(i[1],!0,!0);function l(u,f,c){r({value:u,offInterval:f},c)}}var SE=(function(t){R(e,t);function e(r){var i=t.call(this)||this;i.type="ordinal",i.parse=e.parse,Th(i,e.decoratedMethods);var a=r.ordinalMeta;a||(a=new Bu({})),V(a)&&(a=new Bu({categories:F(a,function(o){return $(o)?o.value:o})})),i._ordinalMeta=a;var n=ol(null,null,r.extent||[0,a.categories.length-1]);return i._mapper=n.mapper,Eh(i,n.mapper),i}return e.parse=function(r){return r==null?r=NaN:G(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=Pr(r),r},e.prototype.getTicks=function(){var r=[];return Dh(this,0,function(i){r.push(i)}),r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=r.ordinalNumbers,a=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=nt(s,i.length);o<l;++o){var u=a[o]=i[o];n[u]=o}for(var f=0;o<s;++o){for(;n[f]!=null;)f++;a[o]=f,n[f]=o}},e.prototype._getTickNumber=function(r){var i=this._ticksByOrdinalNumber;return i&&r>=0&&r<i.length?i[r]:r},e.prototype.getRawOrdinalNumber=function(r){var i=this._ordinalNumbersByTick;return i&&r>=0&&r<i.length?i[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var i=this.getRawOrdinalNumber(r.value),a=this._ordinalMeta.categories[i];return a==null?"":a+""}},e.prototype.count=function(){var r=La(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(Pr(this._mapper.scale(r)))},transformIn:function(r,i){return this._mapper.transformIn(this._getTickNumber(r),i)},transformOut:function(r,i){return this.getRawOrdinalNumber(this._mapper.transformOut(r,i))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,i){return this._mapper.getExtentUnsafe(r,i)},setExtent:function(r,i){return this._mapper.setExtent(r,i)},setExtent2:function(r,i,a){return this._mapper.setExtent2(r,i,a)}},e})(cr);cr.registerClass(SE);var Oh=SE;function fl(t,e,r,i){for(var a=t.getTicks({expandToNicedExtent:!0}),n=[],o=t.getExtent(),s=1;s<a.length;s++){var l=a[s],u=a[s-1];if(!(u.break||l.break)){for(var f=0,c=[],p=l.value-u.value,h=p/e,d=bi(h);f<e-1;){var v=De(u.value+(f+1)*h,d);v>o[0]&&v<o[1]&&c.push(v),f++}var m=st();m&&m.pruneTicksByBreak("auto",c,r,function(g){return g},i,o),n.push(c)}}return n}var CE=(function(t){R(e,t);function e(r){var i=t.call(this)||this;i.type="interval",i.parse=e.parse,r=r||{};var a=mp(i,r),n=ol(i,a,null);return i.brk=n.brk,i._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},i}return e.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.getConfig=function(){return ee(this._cfg)},e.prototype.setConfig=function(r){var i=La(this);this._cfg=r=ee(r),r.niceExtent==null&&(r.niceExtent=i.slice()),r.intervalPrecision==null&&(r.intervalPrecision=bi(r.interval))},e.prototype.getTicks=function(r){r=r||{};var i=this._cfg,a=i.interval,n=La(this),o=i.niceExtent,s=i.intervalPrecision,l=st(),u=this.brk,f=l&&u,c=[];if(!a)return c;if(r.breakTicks==="only_break"&&f)return l.addBreaksToTicks(c,u.breaks,n),c;var p=3e3;n[0]<o[0]&&c.push({value:r.expandToNicedExtent?De(o[0]-a,s):n[0]});for(var h=function(x,_){return Pr((_-x)/a)},d=i.intervalCount,v=o[0],m=0;;m++){if(d==null){if(v>o[1]||!isFinite(v)||!isFinite(o[1]))break}else{if(m>d)break;v=nt(v,o[1]),m===d&&(v=o[1])}if(c.push({value:v}),v=De(v+a,s),u){var g=u.calcNiceTickMultiple(v,h);g>=0&&(v=De(v+g*a,s))}if(c.length>0&&v===c[c.length-1].value)break;if(c.length>p)return[]}var y=c.length?c[c.length-1].value:o[1];return n[1]>y&&c.push({value:r.expandToNicedExtent?De(y+a,s):n[1]}),f&&l.pruneTicksByBreak(r.pruneByBreak,c,u.breaks,function(x){return x.value},i.interval,n),f&&r.breakTicks!=="none"&&l.addBreaksToTicks(c,u.breaks,n),c},e.prototype.getMinorTicks=function(r){return fl(this,r,vo(this),this._cfg.interval)},e.prototype.getLabel=function(r,i){if(r==null)return"";var a=i&&i.precision;a==null?a=ci(r.value)||0:a==="auto"&&(a=this._cfg.intervalPrecision);var n=De(r.value,a,!0);return gu(n)},e.type="interval",e})(cr);cr.registerClass(CE);var Qi=CE;var aV=function(t,e,r,i){for(;r<i;){var a=r+i>>>1;t[a][1]<e?r=a+1:i=a}return r},TE=(function(t){R(e,t);function e(r){var i=t.call(this)||this;i.type="time",i.parse=e.parse,i._locale=r.locale,i._useUTC=r.useUTC,i._interval=0;var a=mp(i,r),n=ol(i,a,null);return i.brk=n.brk,i}return e.prototype.getLabel=function(r){return go(r.value,Eg[bw(Hs(this._minLevelUnit))]||Eg.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(r,i,a){return Sw(r,i,a,this._locale,this._useUTC)},e.prototype.getTicks=function(r){r=r||{};var i=this._interval,a=La(this),n=st(),o=this.brk,s=n&&o,l=[];if(!i)return l;var u=this._useUTC;if(s&&r.breakTicks==="only_break")return st().addBreaksToTicks(l,o.breaks,a),l;l=cV(this._minLevelUnit,this._approxInterval,u,a,sl(this),o);var f=Tr.length-1,c=0;return E(l,function(p){p.time&&(f=Math.min(f,pe(Tr,p.time.upperTimeUnit)),c=Math.max(c,p.time.level))}),s&&st().pruneTicksByBreak(r.pruneByBreak,l,o.breaks,function(p){return p.value},this._approxInterval,a),s&&r.breakTicks!=="none"&&st().addBreaksToTicks(l,o.breaks,a,function(p){for(var h=Math.max(pe(Tr,yo(p.vmin,u)),pe(Tr,yo(p.vmax,u))),d=0,v=0;v<Tr.length;v++)if(!EE(Tr[v],p.vmin,p.vmax,u)){d=v;break}var m=Math.min(d,f),g=Math.max(m,h);return{level:c,lowerTimeUnit:Tr[g],upperTimeUnit:Tr[m]}}),l},e.prototype.getMinorTicks=function(r){return fl(this,r,vo(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):+pi(r)},e.type="time",e})(cr),Ih=[["second",xp],["minute",_p],["hour",Fs],["quarter-day",Fs*6],["half-day",Fs*12],["day",zr*1.2],["half-week",zr*3.5],["week",zr*7],["month",zr*31],["quarter",zr*95],["half-year",Tg/2],["year",Tg]];function EE(t,e,r,i){return bp(new Date(e),t,i).getTime()===bp(new Date(r),t,i).getTime()}function nV(t,e){return t/=zr,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function oV(t){var e=30*zr;return t/=e,t>6?6:t>3?3:t>2?2:1}function sV(t){return t/=Fs,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function wE(t,e){return t/=e?_p:xp,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function lV(t){return we($n(t,!0),1)}function uV(t,e,r){var i=Math.max(0,pe(Tr,e)-1);return bp(new Date(t),Tr[i],r).getTime()}function fV(t,e){var r=new Date(0);r[t](1);var i=r.getTime();r[t](1+e);var a=r.getTime()-i;return function(n,o){return Math.max(0,Math.round((o-n)/a))}}function cV(t,e,r,i,a,n){var o=3e3,s=yw,l=0;function u(P,z,N,U,B,Y,q){for(var Q=fV(B,P),j=z,fe=new Date(j);j<N&&j<=i[1]&&(q.push({value:j}),!(l++>o));)if(fe[B](fe[U]()+P),j=fe.getTime(),n){var be=n.calcNiceTickMultiple(j,Q);be>0&&(fe[B](fe[U]()+be*P),j=fe.getTime())}q.push({value:j,notAdd:j>i[1]})}function f(P,z,N){var U=[],B=!z.length;if(!EE(Hs(P),i[0],i[1],r)){B&&(z=[{value:uV(i[0],P,r)},{value:i[1]}]);for(var Y=0;Y<z.length-1;Y++){var q=z[Y].value,Q=z[Y+1].value;if(q!==Q){var j=void 0,fe=void 0,be=void 0,Xe=!1;switch(P){case"year":j=Math.max(1,Math.round(e/zr/365)),fe=Ag(r),be=Cw(r);break;case"half-year":case"quarter":case"month":j=oV(e),fe=Sp(r),be=Mg(r);break;case"week":case"half-week":case"day":j=nV(e,31),fe=Cp(r),be=Lg(r),Xe=!0;break;case"half-day":case"quarter-day":case"hour":j=sV(e),fe=wp(r),be=Dg(r);break;case"minute":j=wE(e,!0),fe=Tp(r),be=Og(r);break;case"second":j=wE(e,!1),fe=Ep(r),be=Ig(r);break;case"millisecond":j=lV(e),fe=Ap(r),be=Pg(r);break}Q>=i[0]&&q<=i[1]&&u(j,q,Q,fe,be,Xe,U),P==="year"&&N.length>1&&Y===0&&N.unshift({value:N[0].value-j})}}for(var Y=0;Y<U.length;Y++)N.push(U[Y])}}for(var c=[],p=[],h=0,d=0,v=0;v<s.length;++v){var m=Hs(s[v]);if(_w(s[v])){f(s[v],c[c.length-1]||[],p);var g=s[v+1]?Hs(s[v+1]):null;if(m!==g){if(p.length){d=h,p.sort(function(P,z){return P.value-z.value});for(var y=[],x=0;x<p.length;++x){var _=p[x].value;(x===0||p[x-1].value!==_)&&(y.push(p[x]),_>=i[0]&&_<=i[1]&&h++)}var b=a/e;if(h>b*1.5&&d>b/1.5||(c.push(y),h>b||t===s[v]))break}p=[]}}}for(var S=Ue(F(c,function(P){return Ue(P,function(z){return z.value>=i[0]&&z.value<=i[1]&&!z.notAdd})}),function(P){return P.length>0}),w=S.length-1,A=[],v=0;v<S.length;++v)for(var C=S[v],T=0;T<C.length;++T){var M=yo(C[T].value,r);A.push({value:C[T].value,time:{level:w-v,upperTimeUnit:M,lowerTimeUnit:M}})}Cs(A,oS,null),A.sort(function(P,z){return P.value-z.value});var O=A[0],L=A[A.length-1],D=yo(i[0],r),I=yo(i[1],r);return(!O||O.value>i[0])&&A.unshift({value:i[0],time:{level:0,upperTimeUnit:D,lowerTimeUnit:D},notNice:!0}),(!L||L.value<i[1])&&A.push({value:i[1],time:{level:0,upperTimeUnit:I,lowerTimeUnit:I},notNice:!0}),A}var AE=function(t,e){var r=t.getExtent();if(r[0]===r[1]&&(r[0]-=zr,r[1]+=zr),r[1]===-1/0&&r[0]===1/0){var i=new Date;r[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),r[0]=r[1]-zr}t.setExtent(r[0],r[1]);var a=Io(e.splitNumber,10),n=sl(t)/a,o=e.minInterval,s=e.maxInterval;o!=null&&n<o&&(n=o),s!=null&&n>s&&(n=s);var l=Ih.length,u=Math.min(aV(Ih,n,0,l),l-1),f=Ih[u][1],c=Ih[Math.max(u-1,0)][0];t.setTimeInterval({approxInterval:n,interval:f,minLevelUnit:c})};cr.registerClass(TE);var ME=TE;var Ph=0,Nh=1,pV=2,IE=(function(t){R(e,t);function e(r){var i=t.call(this)||this;i.type="log",i.parse=Qi.parse,i.base=r.logBase||10;var a=[],n=[],o=i._lookup={from:a,to:n};a[Ph]=a[Nh]=n[Ph]=n[Nh]=NaN,Th(i,e.mapperMethods);var s=st(),l=r.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,i,{noNegative:!0},pV,u),i.powStub=new Qi({breakParsed:u.original}),i.intervalStub=new Qi({breakParsed:u.transformed}),Eh(i,i.intervalStub),i}return e.prototype.getTicks=function(r){var i=this.base,a=this.powStub,n=st(),o=this.intervalStub,s=o.getExtent(),l=a.getExtent(),u={lookup:{from:s,to:l}};return F(o.getTicks(r||{}),function(f){var c=f.value,p=Mh(c,i,u),h;if(n){var d=n.getTicksBreakOutwardTransform(this,f,vo(a),this._lookup);d&&(h=d.vBreak,p=d.tickVal)}return{value:p,break:h}},this)},e.prototype.getMinorTicks=function(r){return fl(this,r,vo(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(r,i){return this.intervalStub.getLabel(r,i)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(Fu(r,this.base))},scale:function(r){return Mh(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,i){return r=Fu(r,this.base),i&&i.depth===nl?r:this.intervalStub.transformIn(r,i)},transformOut:function(r,i){var a=i?i.depth:null;return LE.depth=a,DE.lookup=this._lookup,Mh(a===nl?r:this.intervalStub.transformOut(r,LE),this.base,DE)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,i){this.setExtent2(Er,r,i)},setExtent2:function(r,i,a){if(!(!va(i,a)||i<=0||a<=0)){var n=OE,o=OE;if(r===Er){var s=this._lookup;n=s.to,o=s.from}this.powStub.setExtent2(r,n[Ph]=i,n[Nh]=a);var l=this.base;this.intervalStub.setExtent2(r,o[Ph]=Fu(i,l),o[Nh]=Fu(a,l))}},getFilter:function(){return{g:0}},sanitize:function(r,i){return va(i[0],i[1])&&yt(r)&&r<=0&&(r=i[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,i){return i===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,i)}},e})(cr);cr.registerClass(IE);var LE={},DE={},OE=[],PE=IE;var Rh={value:1,category:1,time:1,log:1};var NE=ae();function RE(t){var e=t.get("type");return(e==null||!se(Rh,e)&&!cr.getClass(e))&&(e="value"),e}function kE(t,e,r){var i=st(),a;switch(i&&(a=Ky(t,e,r)),e){case"category":return new Oh({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:Gt()});case"time":return new ME({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:a});case"log":return new PE({logBase:t.get("logBase"),breakOption:a});case"value":return new Qi({breakOption:a});default:return new(cr.getClass(e)||Qi)({})}}function zE(t,e,r){var i=r?Oo(t,null):t.getExtentUnsafe(Er,null),a=i[0],n=i[1];return va(a,n)?a===e||n===e?dV:a<e&&n>e?hV:kh:kh}var hV=1,dV=2,kh=3;function VE(t){NE(t).noOnMyZero=!0}function UE(t){return NE(t).noOnMyZero}function Po(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=xw(e);return function(a,n){return t.scale.getFormattedLabel(a,n,r)}}else{if(G(e))return function(a){var n=t.scale.getLabel(a),o=e.replace("{value}",n??"");return o};if(Z(e)){if(t.type==="category")return function(a,n){return e(cl(t,a),a.value-t.scale.getExtent()[0],null)};var i=st();return function(a,n){var o=null;return i&&(o=i.makeAxisLabelFormatterParamBreak(o,a.break)),e(cl(t,a),n,o)}}else return function(a){return t.scale.getLabel(a)}}}function cl(t,e){var r=t.scale;return kt(r)?r.getLabel(e):e.value}function zh(t){var e=t.get("interval");return e??"auto"}function BE(t){return t.type==="category"&&zh(t.getLabelModel())===0}function FE(t,e){var r={};return E(t.mapDimensionsAll(e),function(i){r[dE(t,i)]=!0}),ie(r)}function _n(t){return t==="middle"||t==="center"}function No(t){return t.getShallow("show")}function Ky(t,e,r){var i=t.get("breaks",!0);if(i!=null){if(!st())return;if(!r||!vV(e)){if(0)var a;return}return i}}function vV(t){return t!=="category"}function Vh(t,e,r,i,a,n){var o=Ji(t),s=o?t.intervalStub:t;if(s.setExtent(i[0],i[1]),o){var l=t.powStub,u={depth:nl},f=t.transformOut(i[0],u),c=t.transformOut(i[1],u),p=bE(r,i);e[0]&&!p[0]&&(f=a[0]),e[1]&&!p[1]&&(c=a[1]),l.setExtent(f,c)}s.setConfig(n)}function Da(t,e){return kt(t)?t.getRawOrdinalNumber(e.value):e.value}function Uh(t,e){return kt(t)&&!!e.get("boundaryGap")}var Bh=(function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t})();var mV=Oc(),Fh="|&",pl=ae(),Hh=-2,GE=-1,gV=ae();function KE(t,e){var r=t.model,i=pl(Ao(r.ecModel)).keyed,a=i&&i.get(e);return a&&a.get(r.uid)}function YE(t,e){return XE(KE(t,e))}function WE(t,e){var r=[];return $E(t.model.ecModel,function(i){for(var a=0;a<e.length;a++)e[a]&&i.serByIdx[e[a].seriesIndex]&&r.push(XE(i))}),r}function $E(t,e){var r=pl(Ao(t)).keyed;r&&r.each(function(i,a){i.each(function(n,o){e(n,a,o)})})}function XE(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function qE(t,e){var r=t.model.ecModel,i=pl(Ao(r)).axSer;i&&Gh(r,i.get(t.model.uid),e)}function $y(t,e,r){var i=KE(t,e);i&&Gh(t.model.ecModel,i.sers,r)}function Gh(t,e,r){if(e)for(var i=0;i<e.length;i++){var a=e[i];t.isSeriesFiltered(a)||r(a)}}function ZE(t,e,r){var i=pl(Ao(t)).keyed,a=i&&i.get(e);a&&a.each(function(n){r(n.axis)})}function Xy(t,e){var r=t.model,i=pl(Ao(r.ecModel)).keys;i&&E(i.get(r.uid),function(a){if(0)var n;e(a)})}function yV(t){var e=gV(l1(t)),r=e.keyed||(e.keyed=te());$E(t,function(i,a,n){var o=r.get(a)||r.set(a,te()),s=o.get(n)||o.set(n,{});i.metrics.liPosMinGap&&JE.liPosMinGap(t,i,s)})}function jE(t,e){JE[t]=e}var JE={};function Hu(t,e,r){if(t){var i=e.ecModel,a=pl(Ao(i)),n=t.model.uid;if(0)var o,s;var l=a.axSer||(a.axSer=te()),u=l.get(n)||l.set(n,[]);if(0)var f;u.push(e);var c=e.subType,p=e.getBaseAxis()===t,h=Wy.get(Yy(c,p,r))||Wy.get(Yy(c,p,null));if(h){var d=a.keyed||(a.keyed=te()),v=a.keys||(a.keys=te()),m=h.key,g=d.get(m)||d.set(m,te()),y=g.get(n);y||(y=g.set(n,{axis:t,sers:[],serByIdx:[]}),y.metrics=h.getMetrics(t),(v.get(n)||v.set(n,[])).push(m)),y.sers.push(e),y.serByIdx[e.seriesIndex]=e}}}function Yy(t,e,r){return t+Fh+X(e,!0)+Fh+(r||"")}function QE(t,e){var r=Yy(e.seriesType,e.baseAxis,e.coordSysType);Wy.set(r,e),mV(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:yV})})}var Wy=te();var xV=ae(),Kh=1;var _V=3,rA=(function(){function t(e,r,i,a,n){var o=kt(e),s=o?r.getCategories().length:null,l;if(o){var u=r.getCategories(!0);l=u&&!u.length}var f=i.slice();(ll(e)||Ji(e)||ul(e))&&(cm(f,Gu(e,r.get("dataMin",!0))),pm(f,Gu(e,r.get("dataMax",!0)))),aS(f)||(f[0]=f[1]=NaN);var c=[],p=[!1,!1],h=r.get("min",!0);h==="dataMin"?(c[0]=f[0],p[0]=!0):(c[0]=Gu(e,Z(h)?h({min:f[0],max:f[1]}):h),p[0]=c[0]!=null);var d=r.get("max",!0);d==="dataMax"?(c[1]=f[1],p[1]=!0):(c[1]=Gu(e,Z(d)?d({min:f[0],max:f[1]}):d),p[1]=c[1]!=null);var v=bV(e,r),m=o?null:f[1]-f[0]||Math.abs(f[0]);c[0]==null&&(c[0]=o?l?f[0]:s?0:NaN:f[0]-v[0]*m),c[1]==null&&(c[1]=o?l?f[1]:s?s-1:NaN:f[1]+v[1]*m),!hi(c[0])&&(c[0]=NaN),!hi(c[1])&&(c[1]=NaN);var g=l||Gr(c[0])||Gr(c[1])||o&&!s,y=ll(e),x=y&&r.needIncludeZero&&r.needIncludeZero();x&&(c[0]>0&&c[1]>0&&!p[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!p[1]&&(c[1]=0));var _=!1;c[0]>c[1]&&(c.reverse(),_=!0);var b=Gu(e,r.get("startValue",!0)),S=b!=null;!yt(b)&&a&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),yt(b)&&(S||!y||x)&&(b<c[0]&&!p[0]?(c[0]=b,p[0]=!0):b>c[1]&&!p[1]&&(c[1]=b,p[1]=!0));var w=this._i={scale:e,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:p,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:x,tggAxInv:_,ctnShp:n};eA(w,c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var e=this._i,r=e.zoomMM,i=e.noZoomEffMM,a=e.zoomFixMM,n=e.fixMM,o={fixMM:n,zoomFixMM:a,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:i.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],n[0]=a[0]=!0),r[1]!=null&&(s[1]=r[1],n[1]=a[1]=!0),eA(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 eA(t,e){var r=t.scale,i=t.dataMM;r.sanitize&&(e[0]=r.sanitize(e[0],i),e[1]=r.sanitize(e[1],i),nS(e))}function Gu(t,e){return e==null?null:Gr(e)?NaN:t.parse(e)}function bV(t,e){var r;if(kt(t))r=[0,0];else{var i=e.get("boundaryGap");typeof i=="boolean"&&(i=null),r=V(i)?i:[i,i]}return[tA(r[0]),tA(r[1])]}function tA(t){return xr(typeof t=="boolean"?0:t,1)||0}function iA(t){var e=xV(t.scale);return e.extent||(e.extent=Gt()),e}function aA(t,e){iA(t).dimIdxInCoord=e.get(t.dim)}function Yh(t,e){var r=t.scale,i=t.model,a=t.dim;r.rawExtentInfo||SV(r,t,a,i,e)}function SV(t,e,r,i,a){var n=iA(e),o=n.extent,s=!1;qE(e,function(f){if(f.boxCoordinateSystem){var c=Ip(f).coord,p=n.dimIdxInCoord;if(p>=0){if(V(c)){var h=c[p];h!=null&&!V(h)&&Ql(o,t.parse(h))}}}else if(f.coordinateSystem){var d=f.getData();if(d){var v=t.getFilter?t.getFilter():null;E(FE(d,r),function(m){iS(o,d.getApproximateExtent(m,v))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var l=wV(t,e,i),u=new rA(t,i,o,s,l);nA(t,u,a),n.extent=null}function CV(t,e){var r=t.scale;nA(r,new rA(r,t.model,e,!1,!1),_V)}function nA(t,e,r){t.rawExtentInfo=e,e.from=r}function oA(t,e){qy.set(t,e)}var qy=te();function Wh(t,e,r,i,a){t.rawExtentInfo||CV({scale:t,model:e},a||Gt());var n=t.rawExtentInfo.makeFinal(),o=n.effMM;return t.setExtent(o[0],o[1]),t.setBlank(n.isBlank),i&&n.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis")&&(i.inverse=!i.inverse),n}function wV(t,e,r){var i=Uh(t,r),a=r.get("containShape",!0);if(a==null&&!i&&(a=!0),!a)return!1;var n=!1;return Xy(e,function(o){n=!!qy.get(o)||n}),n}function sA(t,e,r,i){if(r.ctnShp){var a;if(Xy(t,function(s){var l=qy.get(s);if(l){var u=l(t,i);u&&(a=a||[0,0],cm(a,u[0]),pm(a,u[1]),VE(t))}}),!!a){var n=e.getExtent();if(kt(e))t.onBand||e.setExtent2(al,nt(n[0],n[0]+a[0]),we(n[1],n[1]+a[1]));else{var o=n.slice();r.zoomFixMM[0]||(o[0]=nt(o[0],e.transformOut(e.transformIn(o[0],null)+a[0],null))),r.zoomFixMM[1]||(o[1]=we(o[1],e.transformOut(e.transformIn(o[1],null)+a[1],null))),(o[0]<n[0]||o[1]>n[1])&&e.setExtent2(al,o[0],o[1])}}}}function lA(t,e){var r=Ji(t),i=r?t.intervalStub:t,a=e.fixMinMax||[],n=r?t.getExtent():null,o=i.getExtent(),s=Lh(o,a,e.rawExtentResult);i.setExtent(s[0],s[1]),s=i.getExtent();var l=r?EV(i,e):TV(i,e),u=l.intervalPrecision,f=l.interval,c=e.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=bi(c)),a[0]||(s[0]=De(Pi(s[0]/f)*f,u)),a[1]||(s[1]=De(en(s[1]/f)*f,u)),c!=null&&(l.niceExtent=s.slice()),Vh(t,a,o,s,n,l)}function TV(t,e){var r=Io(e.splitNumber,5),i=sl(t),a=e.minInterval,n=e.maxInterval,o=$n(i/r,!0);a!=null&&o<a&&(o=a),n!=null&&o>n&&(o=n);var s=bi(o),l=t.getExtent(),u=[De(en(l[0]/o)*o,s),De(Pi(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function EV(t,e){var r=Io(e.splitNumber,10),i=t.getExtent(),a=sl(t),n=we(Tc(a),1),o=r/a*n;o<=.5&&(n*=10);var s=bi(n),l=[De(en(i[0]/n)*n,s),De(Pi(i[1]/n)*n,s)];return{intervalPrecision:s,interval:n,niceExtent:l}}function Zy(t){var e=t.scale,r=t.model,i=r.axis,a=r.ecModel;AV(e,r,i,a,null)}function AV(t,e,r,i,a){var n=Wh(t,e,i,r,a),o=ll(t)||ul(t);MV(t,{splitNumber:e.get("splitNumber"),fixMinMax:n.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:n}),r&&i&&sA(r,t,n,i)}function MV(t,e){LV[t.type](t,e)}var LV={interval:lA,log:lA,time:AE,ordinal:Ze};var uA=[],DV={registerPreprocessor:Py,registerProcessor:Ny,registerPostInit:tE,registerPostUpdate:rE,registerUpdateLifecycle:_h,registerAction:Do,registerCoordinateSystem:iE,registerLayout:aE,registerVisual:yn,registerTransform:nE,registerLoading:ky,registerMap:bh,registerImpl:i1,PRIORITY:K1,ComponentModel:Ne,ComponentView:Mt,SeriesModel:At,ChartView:mt,registerComponentModel:function(t){Ne.registerClass(t)},registerComponentView:function(t){Mt.registerClass(t)},registerSeriesModel:function(t){At.registerClass(t)},registerChartView:function(t){mt.registerClass(t)},registerCustomSeries:function(t,e){n1(t,e)},registerSubTypeDefaulter:function(t,e){Ne.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Ub(t,e)}};function Ye(t){if(V(t)){E(t,function(e){Ye(e)});return}pe(uA,t)>=0||(uA.push(t),Z(t)&&(t={install:t}),t.install(DV))}var $h={};jd($h,{addCommas:()=>gu,capitalFirst:()=>Ew,encodeHTML:()=>dt,formatTime:()=>Tw,formatTpl:()=>Ks,getTextRect:()=>Ng,getTooltipMarker:()=>Lp,normalizeCssArray:()=>Xi,toCamelCase:()=>Gs,truncateText:()=>gm});var OV=ae(),Ku=ae(),Ar={estimate:1,determine:2};function hl(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function fA(t,e){var r=t.getLabelModel().get("customValues");if(r){var i=t.scale;return{labels:F(pA(r,i),function(a,n){return{formattedLabel:Po(t)(a,n),rawLabel:i.getLabel(a),tick:a}})}}return t.type==="category"?IV(t,e):NV(t)}function cA(t,e,r){var i=t.scale,a=t.getTickModel().get("customValues");return a?{ticks:pA(a,i)}:t.type==="category"?PV(t,e):{ticks:i.getTicks(r)}}function pA(t,e){var r=e.getExtent(),i=[];return E(t,function(a){a=e.parse(a),a>=r[0]&&a<=r[1]&&i.push(a)}),Cs(i,sS,null),Ni(i),F(i,function(a){return{value:a}})}function IV(t,e){var r=t.getLabelModel(),i=hA(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:i}function hA(t,e,r){var i=kV(t),a=zh(e),n=r.kind===Ar.estimate;if(!n){var o=vA(i,a);if(o)return o}var s,l;Z(a)?s=Xh(t,a,!1):(l=a==="auto"?zV(t,r):a,s=Xh(t,l,!1));var u={labels:s,labelCategoryInterval:l};return n?r.out.noPxChangeTryDetermine.push(function(){return jy(i,a,u),!0}):jy(i,a,u),u}function PV(t,e){var r=RV(t),i=zh(e),a=vA(r,i);if(a)return a;var n,o;if((!e.get("show")||t.scale.isBlank())&&(n=[]),Z(i))n=Xh(t,i,!0);else if(i==="auto"){var s=hA(t,t.getLabelModel(),hl(Ar.determine));o=s.labelCategoryInterval,n=F(s.labels,function(l){return l.tick})}else o=i,n=Xh(t,o,!0);return jy(r,i,{ticks:n,tickCategoryInterval:o})}function NV(t){var e=t.scale.getTicks(),r=Po(t);return{labels:F(e,function(i,a){return{formattedLabel:r(i,a),rawLabel:t.scale.getLabel(i),tick:i}})}}var RV=dA("axisTick"),kV=dA("axisLabel");function dA(t){return function(r){return Ku(r)[t]||(Ku(r)[t]={list:[]})}}function vA(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function jy(t,e,r){return t.list.push({key:e,value:r}),r}function zV(t,e){if(e.kind===Ar.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Ku(t).autoInterval=r,!0}),r}var i=Ku(t).autoInterval;return i??(Ku(t).autoInterval=t.calculateCategoryInterval(e))}function mA(t,e){var r=e.kind,i=UV(t),a=Po(t),n=(i.axisRotate-i.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],p=t.dataToCoord(c+1)-t.dataToCoord(c),h=Math.abs(p*Math.cos(n)),d=Math.abs(p*Math.sin(n)),v=0,m=0;c<=s[1];c+=u){var g=0,y=0,x=xc(a({value:c}),i.font,"center","top");g=x.width*1.3,y=x.height*1.3,v=Math.max(v,g,7),m=Math.max(m,y,7)}var _=v/h,b=m/d;isNaN(_)&&(_=1/0),isNaN(b)&&(b=1/0);var S=Math.max(0,Math.floor(Math.min(_,b)));if(r===Ar.estimate)return e.out.noPxChangeTryDetermine.push(oe(VV,null,t,S,l)),S;var w=gA(t,S,l);return w??S}function VV(t,e,r){return gA(t,e,r)==null}function gA(t,e,r){var i=OV(t.model),a=t.getExtent(),n=i.lastAutoInterval,o=i.lastTickCount;if(n!=null&&o!=null&&Math.abs(n-e)<=1&&Math.abs(o-r)<=1&&n>e&&i.axisExtent0===a[0]&&i.axisExtent1===a[1])return n;i.lastTickCount=r,i.lastAutoInterval=e,i.axisExtent0=a[0],i.axisExtent1=a[1]}function UV(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 Xh(t,e,r){var i=Po(t),a=t.scale,n=[],o=Z(e);return Dh(a,o?0:e,function(s,l){var u=a.getLabel(s);if(o){var f=!!e(s.value,u);if(s.offInterval=!f,!f&&!l)return}n.push(r?s:{formattedLabel:i(s),rawLabel:u,tick:s})}),n}var BV=.8;function Mr(t,e){e=e||{};var r={w:NaN,w2:NaN},i=t.scale,a=e.fromStat,n=e.min,o=xE(i);yt(o)||(o=NaN);var s=t.getExtent(),l=et(s[1]-s[0]);return kt(i)?FV(r,t,o,l):a?HV(r,t,o,l,a):n==null,n!=null&&(r.w=yt(r.w)?we(n,r.w):n),r}function FV(t,e,r,i){var a=e.onBand,n=r+(a?1:0);n===0&&(n=1),t.w=i/n,!a&&r&&i&&(t.w2=t.w*r/i)}function HV(t,e,r,i,a){var n=!1,o=-1/0;E(a.key?[YE(e,a.key)]:WE(e,a.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),n=!1):l===Hh&&(n=!0))}),yt(r)&&r>0&&yt(o)?(t.w=i/r*o,t.w2=o):n&&(t.w=i*BV,t.w2=t.w*r/i)}var yA=[0,1],GV=(function(){function t(e,r,i){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=i||[0,0]}return t.prototype.contain=function(e){var r=this._extent,i=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return e>=i&&e<=a},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 i=this._extent;i[0]=e,i[1]=r},t.prototype.dataToCoord=function(e,r){var i=this.scale;return e=i.normalize(i.parse(e)),or(e,yA,xA(this),r)},t.prototype.coordToData=function(e,r){var i=or(e,xA(this),yA,r);return this.scale.scale(i)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),i=cA(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),a=F(i.ticks,function(s){return{coord:this.dataToCoord(Da(this.scale,s)),tick:s}},this),n=r.get("alignWithLabel"),o=KV(this,a,n);return F(a,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},t.prototype.getMinorTicksCoords=function(){if(kt(this.scale))return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var i=this.scale.getMinorTicks(r),a=F(i,function(n){return F(n,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},t.prototype.getViewLabels=function(e){return e=e||hl(Ar.determine),fA(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 Mr(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(e){return e=e||hl(Ar.determine),mA(this,e)},t})();function xA(t){var e=t.getExtent();if(t.onBand){var r=e[1]-e[0],i=r/t.scale.count()/2;e[0]+=i,e[1]-=i}return e}function KV(t,e,r){var i=e.length;if(!t.onBand||r||!i)return!1;var a=Mr(t).w;if(!a)return!1;E(e,function(s){s.coord-=a/2});var n=t.scale.getExtent(),o=e[i-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+a,tick:{value:n[1]+1}}),!0}var qh=GV;var Yu=Math.PI*2,Ro=Kt.CMD,YV=["top","right","bottom","left"];function WV(t,e,r,i,a){var n=r.width,o=r.height;switch(t){case"top":i.set(r.x+n/2,r.y-e),a.set(0,-1);break;case"bottom":i.set(r.x+n/2,r.y+o+e),a.set(0,1);break;case"left":i.set(r.x-e,r.y+o/2),a.set(-1,0);break;case"right":i.set(r.x+n+e,r.y+o/2),a.set(1,0);break}}function $V(t,e,r,i,a,n,o,s,l){o-=t,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*r+t,c=s*r+e;if(Math.abs(i-a)%Yu<1e-4)return l[0]=f,l[1]=c,u-r;if(n){var p=i;i=Jr(a),a=Jr(p)}else i=Jr(i),a=Jr(a);i>a&&(a+=Yu);var h=Math.atan2(s,o);if(h<0&&(h+=Yu),h>=i&&h<=a||h+Yu>=i&&h+Yu<=a)return l[0]=f,l[1]=c,u-r;var d=r*Math.cos(i)+t,v=r*Math.sin(i)+e,m=r*Math.cos(a)+t,g=r*Math.sin(a)+e,y=(d-o)*(d-o)+(v-s)*(v-s),x=(m-o)*(m-o)+(g-s)*(g-s);return y<x?(l[0]=d,l[1]=v,Math.sqrt(y)):(l[0]=m,l[1]=g,Math.sqrt(x))}function Zh(t,e,r,i,a,n,o,s){var l=a-t,u=n-e,f=r-t,c=i-e,p=Math.sqrt(f*f+c*c);f/=p,c/=p;var h=l*f+u*c,d=h/p;s&&(d=Math.min(Math.max(d,0),1)),d*=p;var v=o[0]=t+d*f,m=o[1]=e+d*c;return Math.sqrt((v-a)*(v-a)+(m-n)*(m-n))}function _A(t,e,r,i,a,n,o){r<0&&(t=t+r,r=-r),i<0&&(e=e+i,i=-i);var s=t+r,l=e+i,u=o[0]=Math.min(Math.max(a,t),s),f=o[1]=Math.min(Math.max(n,e),l);return Math.sqrt((u-a)*(u-a)+(f-n)*(f-n))}var Si=[];function XV(t,e,r){var i=_A(e.x,e.y,e.width,e.height,t.x,t.y,Si);return r.set(Si[0],Si[1]),i}function qV(t,e,r){for(var i=0,a=0,n=0,o=0,s,l,u=1/0,f=e.data,c=t.x,p=t.y,h=0;h<f.length;){var d=f[h++];h===1&&(i=f[h],a=f[h+1],n=i,o=a);var v=u;switch(d){case Ro.M:n=f[h++],o=f[h++],i=n,a=o;break;case Ro.L:v=Zh(i,a,f[h],f[h+1],c,p,Si,!0),i=f[h++],a=f[h++];break;case Ro.C:v=Qf(i,a,f[h++],f[h++],f[h++],f[h++],f[h],f[h+1],c,p,Si),i=f[h++],a=f[h++];break;case Ro.Q:v=tc(i,a,f[h++],f[h++],f[h],f[h+1],c,p,Si),i=f[h++],a=f[h++];break;case Ro.A:var m=f[h++],g=f[h++],y=f[h++],x=f[h++],_=f[h++],b=f[h++];h+=1;var S=!!(1-f[h++]);s=Math.cos(_)*y+m,l=Math.sin(_)*x+g,h<=1&&(n=s,o=l);var w=(c-m)*x/y+m;v=$V(m,g,x,_,_+b,S,w,p,Si),i=Math.cos(_+b)*y+m,a=Math.sin(_+b)*x+g;break;case Ro.R:n=i=f[h++],o=a=f[h++];var A=f[h++],C=f[h++];v=_A(n,o,A,C,c,p,Si);break;case Ro.Z:v=Zh(i,a,n,o,c,p,Si,!0),i=n,a=o;break}v<u&&(u=v,r.set(Si[0],Si[1]))}return u}var Ci=new ge,$e=new ge,pt=new ge,ta=new ge,ea=new ge;function Qy(t,e){if(t){var r=t.getTextGuideLine(),i=t.getTextContent();if(i&&r){var a=t.textGuideLineConfig||{},n=[[0,0],[0,0],[0,0]],o=a.candidates||YV,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=a.anchor,f=t.getComputedTransform(),c=f&&Kr([],f),p=e.get("length2")||0;u&&pt.copy(u);for(var h=0;h<o.length;h++){var d=o[h];WV(d,0,s,Ci,ta),ge.scaleAndAdd($e,Ci,ta,p),$e.transform(c);var v=t.getBoundingRect(),m=u?u.distance($e):t instanceof he?qV($e,t.path,pt):XV($e,v,pt);m<l&&(l=m,$e.transform(f),pt.transform(f),pt.toArray(n[0]),$e.toArray(n[1]),Ci.toArray(n[2]))}e0(n,e.get("minTurnAngle")),r.setShape({points:n})}}}var jh=[],pr=new ge;function e0(t,e){if(e<=180&&e>0){e=e/180*Math.PI,Ci.fromArray(t[0]),$e.fromArray(t[1]),pt.fromArray(t[2]),ge.sub(ta,Ci,$e),ge.sub(ea,pt,$e);var r=ta.len(),i=ea.len();if(!(r<.001||i<.001)){ta.scale(1/r),ea.scale(1/i);var a=ta.dot(ea),n=Math.cos(e);if(n<a){var o=Zh($e.x,$e.y,pt.x,pt.y,Ci.x,Ci.y,jh,!1);pr.fromArray(jh),pr.scaleAndAdd(ea,o/Math.tan(Math.PI-e));var s=pt.x!==$e.x?(pr.x-$e.x)/(pt.x-$e.x):(pr.y-$e.y)/(pt.y-$e.y);if(isNaN(s))return;s<0?ge.copy(pr,$e):s>1&&ge.copy(pr,pt),pr.toArray(t[1])}}}}function bA(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,Ci.fromArray(t[0]),$e.fromArray(t[1]),pt.fromArray(t[2]),ge.sub(ta,$e,Ci),ge.sub(ea,pt,$e);var i=ta.len(),a=ea.len();if(!(i<.001||a<.001)){ta.scale(1/i),ea.scale(1/a);var n=ta.dot(e),o=Math.cos(r);if(n<o){var s=Zh($e.x,$e.y,pt.x,pt.y,Ci.x,Ci.y,jh,!1);pr.fromArray(jh);var l=Math.PI/2,u=Math.acos(ea.dot(e)),f=l+u-r;if(f>=l)ge.copy(pr,pt);else{pr.scaleAndAdd(ea,s/Math.tan(Math.PI/2-f));var c=pt.x!==$e.x?(pr.x-$e.x)/(pt.x-$e.x):(pr.y-$e.y)/(pt.y-$e.y);if(isNaN(c))return;c<0?ge.copy(pr,$e):c>1&&ge.copy(pr,pt)}pr.toArray(t[1])}}}}function Jy(t,e,r,i){var a=r==="normal",n=a?t:t.ensureState(r);n.ignore=e;var o=i.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,n.shape=n.shape||{},n.shape.smooth=o;var s=i.getModel("lineStyle").getLineStyle();a?t.useStyle(s):n.style=s}function ZV(t,e){var r=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),r>0&&i.length>=3){var a=Dl(i[0],i[1]),n=Dl(i[1],i[2]);if(!a||!n){t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]);return}var o=Math.min(a,n)*r,s=Ff([],i[1],i[0],o/a),l=Ff([],i[1],i[2],o/n),u=Ff([],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],i[2][0],i[2][1])}else for(var f=1;f<i.length;f++)t.lineTo(i[f][0],i[f][1])}function Jh(t,e,r){var i=t.getTextGuideLine(),a=t.getTextContent();if(!a){i&&t.removeTextGuideLine();return}for(var n=e.normal,o=n.get("show"),s=a.ignore,l=0;l<Os.length;l++){var u=Os[l],f=e[u],c=u==="normal";if(f){var p=f.get("show"),h=c?s:X(a.states[u]&&a.states[u].ignore,s);if(h||!X(p,o)){var d=c?i:i&&i.states[u];d&&(d.ignore=!0),i&&Jy(i,!0,u,f);continue}i||(i=new mi,t.setTextGuideLine(i),!c&&(s||!o)&&Jy(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),Jy(i,!1,u,f)}}if(i){le(i.style,r),i.style.fill=null;var v=n.get("showAbove"),m=t.textGuideLineConfig=t.textGuideLineConfig||{};m.showAbove=v||!1,i.buildPath=ZV}}function Qh(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},i=0;i<lr.length;i++){var a=lr[i];r[a]=t.getModel([a,e])}return r}var SA=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],jV=1,ed=2,wA=jV|ed;function Wu(t,e,r){r=r||wA,e?t.dirty|=r:t.dirty&=~r}function TA(t,e){return e=e||wA,t.dirty==null||!!(t.dirty&e)}function wi(t){if(t)return TA(t)&&r0(t,t.label,t),t}function r0(t,e,r){var i=e.getComputedTransform();t.transform=cp(t.transform,i);var a=t.localRect=Vs(t.localRect,e.getBoundingRect()),n=e.style,o=n.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,f=n.__marginType;f==null&&u&&(o=u,f=po.textMargin);for(var c=0;c<4;c++)t0[c]=f===po.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===po.textMargin&&ks(a,t0,!1,!1);var p=t.rect=Vs(t.rect,a);return i&&p.applyTransform(i),f===po.minMargin&&ks(p,t0,!1,!1),t.axisAligned=fp(i),(t.label=t.label||{}).ignore=e.ignore,Wu(t,!1),Wu(t,!0,ed),t}var t0=[0,0,0,0];function EA(t,e,r){return t.transform=cp(t.transform,r),t.localRect=Vs(t.localRect,e),t.rect=Vs(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=fp(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function AA(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 i=t.rect;i&&(i.x+=e.x,i.y+=e.y);var a=t.obb;a&&a.fromBoundingRect(t.localRect,r)}}function $u(t,e){for(var r=0;r<SA.length;r++){var i=SA[r];t[i]==null&&(t[i]=e[i])}return wi(t)}function CA(t){var e=t.obb;return(!e||TA(t,ed))&&(t.obb=e=e||new op,e.fromBoundingRect(t.localRect,t.transform),Wu(t,!1,ed)),e}function Xu(t,e,r,i,a){var n=t.length,o=Wi[e],s=cn[e];if(n<2)return!1;t.sort(function(C,T){return C.rect[o]-T.rect[o]});for(var l=0,u,f=!1,c=0,p=0;p<n;p++){var h=t[p],d=h.rect;u=d[o]-l,u<0&&(d[o]-=u,h.label[o]-=u,f=!0);var v=Math.max(-u,0);c+=v,l=d[o]+d[s]}c>0&&a&&S(-c/n,0,n);var m=t[0],g=t[n-1],y,x;_(),y<0&&w(-y,.8),x<0&&w(x,.8),_(),b(y,x,1),b(x,y,-1),_(),y<0&&A(-y),x<0&&A(x);function _(){y=m.rect[o]-r,x=i-g.rect[o]-g.rect[s]}function b(C,T,M){if(C<0){var O=Math.min(T,-C);if(O>0){S(O*M,0,n);var L=O+C;L<0&&w(-L*M,1)}else w(-C*M,1)}}function S(C,T,M){C!==0&&(f=!0);for(var O=T;O<M;O++){var L=t[O],D=L.rect;D[o]+=C,L.label[o]+=C}}function w(C,T){for(var M=[],O=0,L=1;L<n;L++){var D=t[L-1].rect,I=Math.max(t[L].rect[o]-D[o]-D[s],0);M.push(I),O+=I}if(O){var P=Math.min(Math.abs(C)/O,T);if(C>0)for(var L=0;L<n-1;L++){var z=M[L]*P;S(z,0,L+1)}else for(var L=n-1;L>0;L--){var z=M[L-1]*P;S(-z,L,n)}}}function A(C){var T=C<0?-1:1;C=Math.abs(C);for(var M=Math.ceil(C/(n-1)),O=0;O<n-1;O++)if(T>0?S(M,0,O+1):S(-M,n-O-1,n),C-=M,C<=0)return}return f}function MA(t){for(var e=0;e<t.length;e++){var r=t[e],i=r.defaultAttr,a=r.labelLine;r.label.attr("ignore",i.ignore),a&&a.attr("ignore",i.labelGuideIgnore)}}function td(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 i=0;i<t.length;i++){var a=wi(t[i]);if(!a.label.ignore){for(var n=a.label,o=a.labelLine,s=!1,l=0;l<e.length;l++)if(rd(a,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(n),o&&r(o)):e.push(a)}}}function rd(t,e,r,i){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,i)?!1:t.axisAligned&&e.axisAligned?!0:CA(t).intersect(CA(e),r,i)}function JV(t){if(t){for(var e=[],r=0;r<t.length;r++)e.push(t[r].slice());return e}}function QV(t,e){var r=t.label,i=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:JV(i&&i.shape.points)}}var LA=["align","verticalAlign","width","height","fontSize"],hr=new Ja,i0=ae(),eU=ae();function id(t,e,r){for(var i=0;i<r.length;i++){var a=r[i];e[a]!=null&&(t[a]=e[a])}}var ad=["x","y","rotation"],tU=(function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(e,r,i,a,n){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),f=a.getBoundingRect().plain();ce.applyTransform(f,f,u),u?hr.setLocalTransform(u):(hr.x=hr.y=hr.rotation=hr.originX=hr.originY=0,hr.scaleX=hr.scaleY=1),hr.rotation=Jr(hr.rotation);var c=a.__hostTarget,p;if(c){p=c.getBoundingRect().plain();var h=c.getComputedTransform();ce.applyTransform(p,p,h)}var d=p&&c.getTextGuideLine();this._labelList.push({label:a,labelLine:d,seriesModel:i,dataIndex:e,dataType:r,layoutOptionOrCb:n,layoutOption:null,rect:f,hostRect:p,priority:p?p.width*p.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:d&&d.ignore,x:hr.x,y:hr.y,scaleX:hr.scaleX,scaleY:hr.scaleY,rotation:hr.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:l.position,attachedRot:l.rotation}})},t.prototype.addLabelsOfSeries=function(e){var r=this;this._chartViewList.push(e);var i=e.__model,a=i.get("labelLayout");(Z(a)||ie(a).length)&&e.group.traverse(function(n){if(n.ignore)return!0;var o=n.getTextContent(),s=_e(n);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,i,o,a)})},t.prototype.updateLayoutConfig=function(e){var r=e.getWidth(),i=e.getHeight();function a(x,_){return function(){Qy(x,_)}}for(var n=0;n<this._labelList.length;n++){var o=this._labelList[n],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;Z(o.layoutOptionOrCb)?f=o.layoutOptionOrCb(QV(o,l)):f=o.layoutOptionOrCb,f=f||{},o.layoutOption=f;var c=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*c:u.attachedRot,offset:[f.dx||0,f.dy||0]});var p=!1;if(f.x!=null?(s.x=Ae(f.x,r),s.setStyle("x",0),p=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=Ae(f.y,i),s.setStyle("y",0),p=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:f.labelLinePoints}),p=!1)}var d=i0(s);d.needsUpdateLabelLine=p,s.rotation=f.rotate!=null?f.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var v=0;v<LA.length;v++){var m=LA[v];s.setStyle(m,f[m]!=null?f[m]:u.style[m])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var g=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);g=y.getItemModel(o.dataIndex)}s.on("drag",a(l,g.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},t.prototype.layout=function(e){var r=e.getWidth(),i=e.getHeight(),a=[];E(this._labelList,function(l){l.defaultAttr.ignore||a.push($u({},l))});var n=Ue(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Ue(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});Xu(n,0,0,r),Xu(o,1,0,i);var s=Ue(a,function(l){return l.layoutOption.hideOverlap});MA(s),td(s)},t.prototype.processLabelsOverall=function(){var e=this;E(this._chartViewList,function(r){var i=r.__model,a=r.ignoreLabelLineUpdate,n=i.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=i0(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,i),n&&e._animateLabels(o,i)})})},t.prototype._updateLabelLine=function(e,r){var i=e.getTextContent(),a=_e(e),n=a.dataIndex;if(i&&n!=null){var o=r.getData(a.dataType),s=o.getItemModel(n),l={},u=o.getItemVisual(n,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var c=s.getModel("labelLine");Jh(e,Qh(s),l),Qy(e,c)}},t.prototype._animateLabels=function(e,r){var i=e.getTextContent(),a=e.getTextGuideLine();if(i&&(e.forceLabelAnimation||!i.ignore&&!i.invisible&&!e.disableLabelAnimation&&!_a(e))){var n=i0(i),o=n.oldLayout,s=_e(e),l=s.dataIndex,u={x:i.x,y:i.y,rotation:i.rotation},f=r.getData(s.dataType);if(o){i.attr(o);var p=e.prevStates;p&&(pe(p,"select")>=0&&i.attr(n.oldLayoutSelect),pe(p,"emphasis")>=0&&i.attr(n.oldLayoutEmphasis)),He(i,u,r,l)}else if(i.attr(u),!Ca(i).valueAnimation){var c=X(i.style.opacity,1);i.style.opacity=0,Je(i,{style:{opacity:c}},r,l)}if(n.oldLayout=u,i.states.select){var h=n.oldLayoutSelect={};id(h,u,ad),id(h,i.states.select,ad)}if(i.states.emphasis){var d=n.oldLayoutEmphasis={};id(d,u,ad),id(d,i.states.emphasis,ad)}ow(i,l,f,r,r)}if(a&&!a.ignore&&!a.invisible){var n=eU(a),o=n.oldLayout,v={points:a.shape.points};o?(a.attr({shape:o}),He(a,{shape:v},r)):(a.setShape(v),a.style.strokePercent=0,Je(a,{style:{strokePercent:1}},r)),n.oldLayout=v}},t})(),DA=tU;var a0=ae();function n0(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,r,i){var a=a0(r).labelManager;a||(a=a0(r).labelManager=new DA),a.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(e,r,i){var a=a0(r).labelManager;E(i.updatedSeries,function(n){a.addLabelsOfSeries(r.getViewOfSeriesModel(n))}),a.updateLayoutConfig(r),a.layout(r),a.processLabelsOverall()})}var rU=(function(t){R(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){if(0)var i;return ji(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var i=new Te,a=Nt("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);i.add(a),a.setStyle(r.lineStyle);var n=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=n==="none"?"circle":n,l=r.itemHeight*.8,u=Nt(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);i.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=ne.color.neutral00,u.style.lineWidth=2),i},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})(At),OA=rU;function dl(t,e){var r=t.mapDimensionsAll("defaultedLabel"),i=r.length;if(i===1){var a=Ta(t,e,r[0]);return a!=null?a+"":null}else if(i){for(var n=[],o=0;o<r.length;o++)n.push(Ta(t,e,r[o]));return n.join(" ")}}function nd(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!V(e))return e+"";for(var i=[],a=0;a<r.length;a++){var n=t.getDimensionIndex(r[a]);n>=0&&i.push(e[n])}return i.join(" ")}var iU=(function(t){R(e,t);function e(r,i,a,n){var o=t.call(this)||this;return o.updateData(r,i,a,n),o}return e.prototype._createSymbol=function(r,i,a,n,o,s){this.removeAll();var l=Nt(r,-1,-1,2,2,null,s);l.attr({z2:X(o,100),culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),l.drift=aU,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(){ao(this.childAt(0))},e.prototype.downplay=function(){no(this.childAt(0))},e.prototype.setZ=function(r,i){var a=this.childAt(0);a.zlevel=r,a.z=i},e.prototype.setDraggable=function(r,i){var a=this.childAt(0);a.draggable=r,a.cursor=!i&&r?"move":a.cursor},e.prototype.updateData=function(r,i,a,n){this.silent=!1;var o=r.getItemVisual(i,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,i),u=e.getSymbolZ2(r,i),f=o!==this._symbolType,c=n&&n.disableAnimation;if(f){var p=r.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,r,i,l,u,p)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(d):He(h,d,s,i),ba(h)}if(this._updateCommon(r,i,l,a,n),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,Je(h,d,s,i)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,i,a,n,o){var s=this.childAt(0),l=r.hostModel,u,f,c,p,h,d,v,m,g;if(n&&(u=n.emphasisItemStyle,f=n.blurItemStyle,c=n.selectItemStyle,p=n.focus,h=n.blurScope,v=n.labelStatesModels,m=n.hoverScale,g=n.cursorStyle,d=n.emphasisDisabled),!n||r.hasItemOption){var y=n&&n.itemModel?n.itemModel:r.getItemModel(i),x=y.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),p=x.get("focus"),h=x.get("blurScope"),d=x.get("disabled"),v=ur(y),m=x.getShallow("scale"),g=y.getShallow("cursor")}var _=r.getItemVisual(i,"symbolRotate");s.attr("rotation",(_||0)*Math.PI/180||0);var b=uh(r.getItemVisual(i,"symbolOffset"),a);b&&(s.x=b[0],s.y=b[1]),g&&s.attr("cursor",g);var S=r.getItemVisual(i,"style"),w=S.fill;if(s instanceof it){var A=s.style;s.useStyle(k({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},S))}else s.__isEmptyBrush?s.useStyle(k({},S)):s.useStyle(S),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=r.getItemVisual(i,"liftZ"),T=this._z2;C!=null?T==null&&(this._z2=s.z2,s.z2+=C):T!=null&&(s.z2=T,this._z2=null);var M=o&&o.useNameLabel;ei(s,v,{labelFetcher:l,labelDataIndex:i,defaultText:O,inheritColor:w,defaultOpacity:S.opacity});function O(I){return M?r.getName(I):dl(r,I)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var D=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;L.scaleX=this._sizeX*D,L.scaleY=this._sizeY*D,this.setSymbolScale(1),kr(this,p,h,d)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,i,a){var n=this.childAt(0),o=_e(this).dataIndex,s=a&&a.animation;if(this.silent=n.silent=!0,a&&a.fadeLabel){var l=n.getTextContent();l&&Rs(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){n.removeTextContent()}})}else n.removeTextContent();Rs(n,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,i){return lh(r.getItemVisual(i,"symbolSize"))},e.getSymbolZ2=function(r,i){return r.getItemVisual(i,"z2")},e})(Te);function aU(t,e){this.parent.drift(t,e)}var qu=iU;function od(t,e,r,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i&&i.isIgnore&&i.isIgnore(r))&&!(i&&i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function IA(t){return t!=null&&!$(t)&&(t={isIgnore:t}),t||{}}function PA(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:ur(e),cursorStyle:e.get("cursor")}}function NA(t,e,r,i,a,n,o){var s=new t(e,r,i,a);return s.setPosition(n),e.setItemGraphicEl(r,s),o.add(s),s}var nU=(function(){function t(e){this.group=new Te,this._SymbolCtor=e||qu}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=IA(r);var i=this.group,a=e.hostModel,n=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=this._seriesScope=PA(e),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return e.getItemLayout(c)};n||i.removeAll(),e.diff(n).add(function(c){var p=f(c);od(e,p,c,r)&&NA(o,e,c,l,u,p,i)}).update(function(c,p){var h=n.getItemGraphicEl(p),d=f(c);if(!od(e,d,c,r)){i.remove(h);return}var v=e.getItemVisual(c,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==v)i.remove(h),h=new o(e,c,l,u),h.setPosition(d);else{h.updateData(e,c,l,u);var g={x:d[0],y:d[1]};s?h.attr(g):He(h,g,a)}i.add(h),e.setItemGraphicEl(c,h)}).remove(function(c){var p=n.getItemGraphicEl(c);p&&p.fadeOut(function(){i.remove(p)},a)}).execute(),this._getSymbolPoint=f,this._data=e},t.prototype.updateLayout=function(e){var r=this._data;if(r)for(var i=this,a=r.getStore(),n=0,o=a.count();n<o;n++){var s=r.getItemGraphicEl(n),l=i._getSymbolPoint(n);od(r,l,n,e)?(s=s||NA(i._SymbolCtor,r,n,i._seriesScope,{disableAnimation:!0},l,i.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(i.group.remove(s),r.setItemGraphicEl(n,null))}},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=PA(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,i,a){this._progressiveEls=[],a=IA(a);function n(u){u.isGroup||(u.incremental=i,u.ensureState("emphasis").hoverLayer=fo)}for(var o=e.start;o<e.end;o++){var s=r.getItemLayout(o);if(od(r,s,o,a)){var l=new this._SymbolCtor(r,o,this._seriesScope);l.traverse(n),l.setPosition(s),this.group.add(l),r.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},t.prototype.eachRendered=function(e){Sa(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,i=this._data;i&&e?i.eachItemGraphicEl(function(a){a.fadeOut(function(){r.remove(a)},i.hostModel)}):r.removeAll()},t})(),sd=nU;function ld(t,e,r){var i=t.getBaseAxis(),a=t.getOtherAxis(i),n=oU(a,r),o=i.dim,s=a.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=F(t.dimensions,function(d){return e.mapDimension(d)}),p=!1,h=e.getCalculationInfo("stackResultDimension");return Ma(e,c[0])&&(p=!0,c[0]=h),Ma(e,c[1])&&(p=!0,c[1]=h),{dataDimsForPoint:c,valueStart:n,valueAxisDim:s,baseAxisDim:o,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function oU(t,e){var r=0,i=t.scale.getExtent();return e==="start"?r=i[0]:e==="end"?r=i[1]:me(e)&&!isNaN(e)?r=e:i[0]>0?r=i[0]:i[1]<0&&(r=i[1]),r}function ud(t,e,r,i){var a=NaN;t.stacked&&(a=r.get(r.getCalculationInfo("stackedOverDimension"),i)),isNaN(a)&&(a=t.valueStart);var n=t.baseDataOffset,o=[];return o[n]=r.get(t.baseDim,i),o[1-n]=a,e.dataToPoint(o)}function Lr(t,e){return!isFinite(t)||!isFinite(e)}var sU=typeof Float32Array!==ln?Float32Array:void 0,RA=typeof Float64Array!==ln?Float64Array:void 0;function Br(t){return fd({ctor:sU},t).arr}function fd(t,e){var r=t.arr,i=t.ctor;if(e>rm&&(e=rm),!r||t.typed&&r.length<e){var a=void 0;if(i)try{a=new i(e),t.typed=!0,r&&a.set(r)}catch{}if(!a&&(a=[],t.typed=!1,r))for(var n=0,o=r.length;n<o;n++)a[n]=r[n];t.arr=a}return t}function lU(t,e){var r=[];return e.diff(t).add(function(i){r.push({cmd:"+",idx:i})}).update(function(i,a){r.push({cmd:"=",idx:a,idx1:i})}).remove(function(i){r.push({cmd:"-",idx:i})}).execute(),r}function o0(t,e,r,i,a,n,o,s){for(var l=lU(t,e),u=[],f=[],c=[],p=[],h=[],d=[],v=[],m=ld(a,e,o),g=t.getLayout("points")||[],y=e.getLayout("points")||[],x=0;x<l.length;x++){var _=l[x],b=!0,S=void 0,w=void 0;switch(_.cmd){case"=":S=_.idx*2,w=_.idx1*2;var A=g[S],C=g[S+1],T=y[w],M=y[w+1];(isNaN(A)||isNaN(C))&&(A=T,C=M),u.push(A,C),f.push(T,M),c.push(r[S],r[S+1]),p.push(i[w],i[w+1]),v.push(e.getRawIndex(_.idx1));break;case"+":var O=_.idx,L=m.dataDimsForPoint,D=a.dataToPoint([e.get(L[0],O),e.get(L[1],O)]);w=O*2,u.push(D[0],D[1]),f.push(y[w],y[w+1]);var I=ud(m,a,e,O);c.push(I[0],I[1]),p.push(i[w],i[w+1]),v.push(e.getRawIndex(O));break;case"-":b=!1}b&&(h.push(_),d.push(d.length))}d.sort(function(fe,be){return v[fe]-v[be]});for(var P=u.length,z=Br(P),N=Br(P),U=Br(P),B=Br(P),Y=[],x=0;x<d.length;x++){var q=d[x],Q=x*2,j=q*2;z[Q]=u[j],z[Q+1]=u[j+1],N[Q]=f[j],N[Q+1]=f[j+1],U[Q]=c[j],U[Q+1]=c[j+1],B[Q]=p[j],B[Q+1]=p[j+1],Y[x]=h[q]}return{current:z,next:N,stackedOnCurrent:U,stackedOnNext:B,status:Y}}var bn=Math.min,Sn=Math.max;function s0(t,e,r,i,a,n,o,s,l){for(var u,f,c,p,h,d,v=r,m=0;m<i;m++){var g=e[v*2],y=e[v*2+1];if(v>=a||v<0)break;if(Lr(g,y)){if(l){v+=n;continue}break}if(v===r)t[n>0?"moveTo":"lineTo"](g,y),c=g,p=y;else{var x=g-u,_=y-f;if(x*x+_*_<.5){v+=n;continue}if(o>0){for(var b=v+n,S=e[b*2],w=e[b*2+1];S===g&&w===y&&m<i;)m++,b+=n,v+=n,S=e[b*2],w=e[b*2+1],g=e[v*2],y=e[v*2+1],x=g-u,_=y-f;var A=m+1;if(l)for(;Lr(S,w)&&A<i;)A++,b+=n,S=e[b*2],w=e[b*2+1];var C=.5,T=0,M=0,O=void 0,L=void 0;if(A>=i||Lr(S,w))h=g,d=y;else{T=S-u,M=w-f;var D=g-u,I=S-g,P=y-f,z=w-y,N=void 0,U=void 0;if(s==="x"){N=Math.abs(D),U=Math.abs(I);var B=T>0?1:-1;h=g-B*N*o,d=y,O=g+B*U*o,L=y}else if(s==="y"){N=Math.abs(P),U=Math.abs(z);var Y=M>0?1:-1;h=g,d=y-Y*N*o,O=g,L=y+Y*U*o}else N=Math.sqrt(D*D+P*P),U=Math.sqrt(I*I+z*z),C=U/(U+N),h=g-T*o*(1-C),d=y-M*o*(1-C),O=g+T*o*C,L=y+M*o*C,O=bn(O,Sn(S,g)),L=bn(L,Sn(w,y)),O=Sn(O,bn(S,g)),L=Sn(L,bn(w,y)),T=O-g,M=L-y,h=g-T*N/U,d=y-M*N/U,h=bn(h,Sn(u,g)),d=bn(d,Sn(f,y)),h=Sn(h,bn(u,g)),d=Sn(d,bn(f,y)),T=g-h,M=y-d,O=g+T*U/N,L=y+M*U/N}t.bezierCurveTo(c,p,h,d,g,y),c=O,p=L}else t.lineTo(g,y)}u=g,f=y,v+=n}return m}var kA=(function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t})(),zA=(function(t){R(e,t);function e(r){var i=t.call(this,r)||this;return i.type="ec-polyline",i}return e.prototype.getDefaultStyle=function(){return{stroke:ne.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new kA},e.prototype.buildPath=function(r,i){var a=i.points,n=0,o=a.length/2;if(i.connectNulls){for(;o>0&&Lr(a[o*2-2],a[o*2-1]);o--);for(;n<o&&Lr(a[n*2],a[n*2+1]);n++);}for(;n<o;)n+=s0(r,a,n,o,o,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},e.prototype.getPointOn=function(r,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,n=a.data,o=Kt.CMD,s,l,u=i==="x",f=[],c=0;c<n.length;){var p=n[c++],h=void 0,d=void 0,v=void 0,m=void 0,g=void 0,y=void 0,x=void 0;switch(p){case o.M:s=n[c++],l=n[c++];break;case o.L:if(h=n[c++],d=n[c++],x=u?(r-s)/(h-s):(r-l)/(d-l),x<=1&&x>=0){var _=u?(d-l)*x+l:(h-s)*x+s;return u?[r,_]:[_,r]}s=h,l=d;break;case o.C:h=n[c++],d=n[c++],v=n[c++],m=n[c++],g=n[c++],y=n[c++];var b=u?Un(s,h,v,g,r,f):Un(l,d,m,y,r,f);if(b>0)for(var S=0;S<b;S++){var w=f[S];if(w<=1&&w>=0){var _=u?rt(l,d,m,y,w):rt(s,h,v,g,w);return u?[r,_]:[_,r]}}s=g,l=y;break}}},e})(he);var uU=(function(t){R(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(kA),VA=(function(t){R(e,t);function e(r){var i=t.call(this,r)||this;return i.type="ec-polygon",i}return e.prototype.getDefaultShape=function(){return new uU},e.prototype.buildPath=function(r,i){var a=i.points,n=i.stackedOnPoints,o=0,s=a.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&Lr(a[s*2-2],a[s*2-1]);s--);for(;o<s&&Lr(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=s0(r,a,o,s,s,1,i.smooth,l,i.connectNulls);s0(r,n,o+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),o+=u+1,r.closePath()}},e})(he);function l0(t,e,r,i,a){var n=t.getArea(),o=n.x,s=n.y,l=n.width,u=n.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 Pe({shape:{x:o,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),h=p.isHorizontal(),d=p.inverse;h?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var v=Z(a)?function(m){a(m,c)}:null;Je(c,{shape:{width:l,height:u,x:o,y:s}},r,null,i,v)}return c}function u0(t,e,r){var i=t.getArea(),a=De(i.r0,1),n=De(i.r,1),o=new vi({shape:{cx:De(t.cx,1),cy:De(t.cy,1),r0:a,r:n,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=i.startAngle:o.shape.r=a,Je(o,{shape:{endAngle:i.endAngle,r:n}},r)}return o}function UA(t,e,r,i,a){if(t){if(t.type==="polar")return u0(t,e,r);if(t.type==="cartesian2d")return l0(t,e,r,i,a)}else return null;return null}function BA(t){var e=t.coordinateSystem;if(t.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}function ko(t,e){return t.type===e}function f0(t){var e=t.dimensions;return e[0]==="lng"&&e[1]==="lat"&&!!t.getViewRect}function HA(t,e,r,i){return t&&(t.legacy||t.legacy!==!1&&!r&&!i&&e!=="tspan"&&(e==="text"||se(t,"text")))}function GA(t,e,r){var i=t,a,n,o;if(e==="text")o=i;else{o={},se(i,"text")&&(o.text=i.text),se(i,"rich")&&(o.rich=i.rich),se(i,"textFill")&&(o.fill=i.textFill),se(i,"textStroke")&&(o.stroke=i.textStroke),se(i,"fontFamily")&&(o.fontFamily=i.fontFamily),se(i,"fontSize")&&(o.fontSize=i.fontSize),se(i,"fontStyle")&&(o.fontStyle=i.fontStyle),se(i,"fontWeight")&&(o.fontWeight=i.fontWeight),n={type:"text",style:o,silent:!0},a={};var s=se(i,"textPosition");r?a.position=s?i.textPosition:"inside":s&&(a.position=i.textPosition),se(i,"textPosition")&&(a.position=i.textPosition),se(i,"textOffset")&&(a.offset=i.textOffset),se(i,"textRotation")&&(a.rotation=i.textRotation),se(i,"textDistance")&&(a.distance=i.textDistance)}return FA(o,t),E(o.rich,function(l){FA(l,l)}),{textConfig:a,textContent:n}}function FA(t,e){e&&(e.font=e.textFont||e.font,se(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),se(e,"textAlign")&&(t.align=e.textAlign),se(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),se(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),se(e,"textWidth")&&(t.width=e.textWidth),se(e,"textHeight")&&(t.height=e.textHeight),se(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),se(e,"textPadding")&&(t.padding=e.textPadding),se(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),se(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),se(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),se(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),se(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),se(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),se(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function KA(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function YA(t){for(var e=Gt(),r=Gt(),i=0;i<t.length;){var a=t[i++],n=t[i++];Lr(a,n)||(Ql(e,a),Ql(r,n))}return[e,r]}function WA(t,e){var r=YA(t),i=r[0],a=r[1],n=YA(e),o=n[0],s=n[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(a[0]-s[0]),Math.abs(i[1]-o[1]),Math.abs(a[1]-s[1]))}function $A(t){return me(t)?t:t?.5:0}function fU(t,e,r){if(r.valueDim==null)return[];for(var i=e.count(),a=Br(i*2),n=0;n<i;n++){var o=ud(r,t,e,n);a[n*2]=o[0],a[n*2+1]=o[1]}return a}function Cn(t,e,r,i,a){var n=r.getBaseAxis(),o=n.dim==="x"||n.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],p=[];if(a){for(l=0;l<t.length;l+=2){var h=e||t;Lr(h[l],h[l+1])||p.push(t[l],t[l+1])}t=p}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]),i){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,v=[];u[o]=v[o]=d,u[1-o]=f[1-o],v[1-o]=c[1-o],s.push(u[0],u[1]),s.push(v[0],v[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 cU(t,e){var r=[],i=t.length,a,n;function o(f,c,p){var h=f.coord,d=(p-h)/(c.coord-h),v=nb(d,[f.color,c.color]);return{coord:p,color:v}}for(var s=0;s<i;s++){var l=t[s],u=l.coord;if(u<0)a=l;else if(u>e){n?r.push(o(n,l,e)):a&&r.push(o(a,l,0),o(a,l,e));break}else a&&(r.push(o(a,l,0)),a=null),r.push(l),n=l}return r}function pU(t,e,r){var i=t.getVisual("visualMeta");if(!(!i||!i.length||!t.count())&&e.type==="cartesian2d"){for(var a,n,o=i.length-1;o>=0;o--){var s=t.getDimensionInfo(i[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){n=i[o];break}}if(n){var l=e.getAxis(a),u=F(n.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),f=u.length,c=n.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var p=cU(u,a==="x"?r.getWidth():r.getHeight()),h=p.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,v=p[0].coord-d,m=p[h-1].coord+d,g=m-v;if(g<.001)return"transparent";E(p,function(x){x.offset=(x.coord-v)/g}),p.push({offset:h?p[h-1].offset:.5,color:c[1]||"transparent"}),p.unshift({offset:h?p[0].offset:.5,color:c[0]||"transparent"});var y=new Ns(0,0,0,0,p,!0);return y[a]=v,y[a+"2"]=m,y}}}function hU(t,e,r){var i=t.get("showAllSymbol"),a=i==="auto";if(!(i&&!a)){var n=r.getAxesByScale("ordinal")[0];if(n&&!(a&&dU(n,e))){var o=e.mapDimension(n.dim),s={};return E(n.getViewLabels(),function(l){l.tick.offInterval||(s[Da(n.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function dU(t,e){var r=t.getExtent(),i=Math.abs(r[1]-r[0])/t.scale.count();isNaN(i)&&(i=0);for(var a=e.count(),n=Math.max(1,Math.round(a/5)),o=0;o<a;o+=n)if(qu.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>i)return!1;return!0}function vU(t){for(var e=t.length/2;e>0&&Lr(t[e*2-2],t[e*2-1]);e--);return e-1}function XA(t,e){return[t[e*2],t[e*2+1]]}function mU(t,e,r){for(var i=t.length/2,a=r==="x"?0:1,n,o,s=0,l=-1,u=0;u<i;u++)if(o=t[u*2+a],!Lr(o,t[u*2+1-a])){if(u===0){n=o;continue}if(n<=e&&o>=e||n>=e&&o<=e){l=u;break}s=u,n=o}return{range:[s,l],t:(e-n)/(o-n)}}function qA(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<lr.length;e++)if(t.get([lr[e],"endLabel","show"]))return!0;return!1}function c0(t,e,r,i){if(ko(e,"cartesian2d")){var a=i.getModel("endLabel"),n=a.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=qA(i)?function(h,d){t._endLabelOnDuring(h,d,o,s,n,a,e)}:null,u=e.getBaseAxis().isHorizontal(),f=l0(e,r,i,function(){var h=t._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var c=f.shape,p=Math.max(c.width,c.height);u?(c.y-=p,c.height+=p*2):(c.x-=p,c.width+=p*2)}return l&&l(1,f),f}else return u0(e,r,i)}function gU(t,e){var r=e.getBaseAxis(),i=r.isHorizontal(),a=r.inverse,n=i?a?"right":"left":"center",o=i?"middle":a?"top":"bottom";return{normal:{align:t.get("align")||n,verticalAlign:t.get("verticalAlign")||o}}}var yU=(function(t){R(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new Te,i=new sd;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=r,this._changePolyState=oe(this._changePolyState,this)},e.prototype.render=function(r,i,a){var n=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),f=s.getLayout("points")||[],c=n.type==="polar",p=this._coordSys,h=this._symbolDraw,d=this._polyline,v=this._polygon,m=this._lineGroup,g=!i.ssr&&r.get("animation"),y=!u.isEmpty(),x=u.get("origin"),_=ld(n,s,x),b=y&&fU(n,s,_),S=r.get("showSymbol"),w=r.get("connectNulls"),A=S&&!c&&hU(r,s,n),C=this._data;C&&C.eachItemGraphicEl(function(Le,ve){Le.__temp&&(o.remove(Le),C.setItemGraphicEl(ve,null))}),S||h.remove(),o.add(m);var T=c?!1:r.get("step"),M;n&&n.getArea&&r.get("clip",!0)&&(M=n.getArea(),M.width!=null?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var O=pU(s,n,a)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&p.type===n.type&&T===this._step))S&&h.updateData(s,{isIgnore:A,clipShape:M,disableAnimation:!0,getSymbolPoint:function(Le){return[f[Le*2],f[Le*2+1]]}}),g&&this._initSymbolLabelAnimation(s,n,M),T&&(b&&(b=Cn(b,f,n,T,w)),f=Cn(f,null,n,T,w)),d=this._newPolyline(f),y?v=this._newPolygon(f,b):v&&(m.remove(v),v=this._polygon=null),c||this._initOrUpdateEndLabel(r,n,xi(O)),m.setClipPath(c0(this,n,!0,r));else{y&&!v?v=this._newPolygon(f,b):v&&!y&&(m.remove(v),v=this._polygon=null),c||this._initOrUpdateEndLabel(r,n,xi(O));var L=m.getClipPath();if(L){var D=c0(this,n,!1,r);Je(L,{shape:D.shape},r)}else m.setClipPath(c0(this,n,!0,r));S&&h.updateData(s,{isIgnore:A,clipShape:M,disableAnimation:!0,getSymbolPoint:function(Le){return[f[Le*2],f[Le*2+1]]}}),(!KA(this._stackedOnPoints,b)||!KA(this._points,f))&&(g?this._doUpdateAnimation(s,b,n,a,T,x,w):(T&&(b&&(b=Cn(b,f,n,T,w)),f=Cn(f,null,n,T,w)),d.setShape({points:f}),v&&v.setShape({points:f,stackedOnPoints:b})))}var I=r.getModel("emphasis"),P=I.get("focus"),z=I.get("blurScope"),N=I.get("disabled");if(d.useStyle(le(l.getLineStyle(),{fill:"none",stroke:O,lineJoin:"bevel"})),Ki(d,r,"lineStyle"),d.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var U=d.getState("emphasis").style;U.lineWidth=+d.style.lineWidth+1}_e(d).seriesIndex=r.seriesIndex,kr(d,P,z,N);var B=$A(r.get("smooth")),Y=r.get("smoothMonotone");if(d.setShape({smooth:B,smoothMonotone:Y,connectNulls:w}),v){var q=s.getCalculationInfo("stackedOnSeries"),Q=0;v.useStyle(le(u.getAreaStyle(),{fill:O,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),q&&(Q=$A(q.get("smooth"))),v.setShape({smooth:B,stackedOnSmooth:Q,smoothMonotone:Y,connectNulls:w}),Ki(v,r,"areaStyle"),_e(v).seriesIndex=r.seriesIndex,kr(v,P,z,N)}var j=this._changePolyState;s.eachItemGraphicEl(function(Le){Le&&(Le.onHoverStateChange=j)}),this._polyline.onHoverStateChange=j,this._data=s,this._coordSys=n,this._stackedOnPoints=b,this._points=f,this._step=T,this._valueOrigin=x;var fe=r.get("triggerEvent"),be=r.get("triggerLineEvent"),Xe=be===!0||fe===!0||fe==="line",Be=be===!0||fe===!0||fe==="area";this.packEventData(r,d,Xe),v&&this.packEventData(r,v,Be)},e.prototype.packEventData=function(r,i,a){_e(i).eventData=a?{componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line",selfType:i===this._polygon?"area":"line"}:null},e.prototype.highlight=function(r,i,a,n){var o=r.getData(),s=Xr(o,n);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(Lr(f,c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var p=r.get("zlevel")||0,h=r.get("z")||0;u=new qu(o,s),u.x=f,u.y=c,u.setZ(p,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=p,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 mt.prototype.highlight.call(this,r,i,a,n)},e.prototype.downplay=function(r,i,a,n){var o=r.getData(),s=Xr(o,n);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 mt.prototype.downplay.call(this,r,i,a,n)},e.prototype._changePolyState=function(r){var i=this._polygon;Gm(this._polyline,r),i&&Gm(i,r)},e.prototype._newPolyline=function(r){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new zA({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},e.prototype._newPolygon=function(r,i){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new VA({shape:{points:r,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(r,i,a){var n,o,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(n=s.isHorizontal(),o=!1):i.type==="polar"&&(n=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");Z(f)&&(f=f(null));var c=u.get("animationDelay")||0,p=Z(c)?c(null):c;r.eachItemGraphicEl(function(h,d){var v=h;if(v){var m=[h.x,h.y],g=void 0,y=void 0,x=void 0;if(a)if(o){var _=a,b=i.pointToCoord(m);n?(g=_.startAngle,y=_.endAngle,x=-b[1]/180*Math.PI):(g=_.r0,y=_.r,x=b[0])}else{var S=a;n?(g=S.x,y=S.x+S.width,x=h.x):(g=S.y+S.height,y=S.y,x=h.y)}var w=y===g?0:(x-g)/(y-g);l&&(w=1-w);var A=Z(c)?c(d):f*w+p,C=v.getSymbolPath(),T=C.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:A}),T&&T.animateFrom({style:{opacity:0}},{duration:300,delay:A}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,i,a){var n=r.getModel("endLabel");if(qA(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 ke({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=vU(l);f>=0&&(ei(s,ur(r,"endLabel"),{inheritColor:a,labelFetcher:r,labelDataIndex:f,defaultText:function(c,p,h){return h!=null?nd(o,h):dl(o,c)},enableTextSetter:!0},gU(n,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,i,a,n,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&n.originalX==null&&(n.originalX=u.x,n.originalY=u.y);var c=a.getLayout("points"),p=a.hostModel,h=p.get("connectNulls"),d=s.get("precision"),v=s.get("distance")||0,m=l.getBaseAxis(),g=m.isHorizontal(),y=m.inverse,x=i.shape,_=y?g?x.x:x.y+x.height:g?x.x+x.width:x.y,b=(g?v:0)*(y?-1:1),S=(g?0:-v)*(y?-1:1),w=g?"x":"y",A=mU(c,_,w),C=A.range,T=C[1]-C[0],M=void 0;if(T>=1){if(T>1&&!h){var O=XA(c,C[0]);u.attr({x:O[0]+b,y:O[1]+S}),o&&(M=p.getRawValue(C[0]))}else{var O=f.getPointOn(_,w);O&&u.attr({x:O[0]+b,y:O[1]+S});var L=p.getRawValue(C[0]),D=p.getRawValue(C[1]);o&&(M=Dc(a,d,L,D,A.t))}n.lastFrameIndex=C[0]}else{var I=r===1||n.lastFrameIndex>0?C[0]:0,O=XA(c,I);o&&(M=p.getRawValue(I)),u.attr({x:O[0]+b,y:O[1]+S})}if(o){var P=Ca(u);typeof P.setLabelText=="function"&&P.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(r,i,a,n,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,p=o0(this._data,r,this._stackedOnPoints,i,this._coordSys,a,this._valueOrigin,s),h=p.current,d=p.stackedOnCurrent,v=p.next,m=p.stackedOnNext;if(o&&(d=Cn(p.stackedOnCurrent,p.current,a,o,l),h=Cn(p.current,null,a,o,l),m=Cn(p.stackedOnNext,p.next,a,o,l),v=Cn(p.next,null,a,o,l)),WA(h,v)>3e3||f&&WA(d,m)>3e3){u.stopAnimation(),u.setShape({points:v}),f&&(f.stopAnimation(),f.setShape({points:v,stackedOnPoints:m}));return}u.shape.__points=p.current,u.shape.points=h;var g={shape:{points:v}};p.current!==h&&(g.shape.__points=p.next),u.stopAnimation(),He(u,g,c),f&&(f.setShape({points:h,stackedOnPoints:d}),f.stopAnimation(),He(f,{shape:{stackedOnPoints:m}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],x=p.status,_=0;_<x.length;_++){var b=x[_].cmd;if(b==="="){var S=r.getItemGraphicEl(x[_].idx1);S&&y.push({el:S,ptIdx:_})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,A=0;A<y.length;A++){var C=y[A].el,T=y[A].ptIdx*2;C.x=w[T],C.y=w[T+1],C.markRedraw()}})},e.prototype.remove=function(r){var i=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(n,o){n.__temp&&(i.remove(n),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(mt),ZA=yU;function zo(t,e){return{seriesType:t,plan:Eo(),reset:function(r){var i=r.getData(),a=r.coordinateSystem,n=r.pipelineContext,o=e||n.large;if(a){var s=F(a.dimensions,function(h){return i.mapDimension(h)}).slice(0,2),l=s.length,u=i.getCalculationInfo("stackResultDimension");Ma(i,s[0])&&(s[0]=u),Ma(i,s[1])&&(s[1]=u);var f=i.getStore(),c=i.getDimensionIndex(s[0]),p=i.getDimensionIndex(s[1]);return l&&{progress:function(h,d){for(var v=h.end-h.start,m=o&&Br(v*l),g=[],y=[],x=h.start,_=0;x<h.end;x++){var b=void 0;if(l===1){var S=f.get(c,x);b=a.dataToPoint(S,null,y)}else g[0]=f.get(c,x),g[1]=f.get(p,x),b=a.dataToPoint(g,null,y);o?(m[_++]=b[0],m[_++]=b[1]):d.setItemLayout(x,b.slice())}o&&(d.setLayout("points",m),d.setLayout("pointsRange",{start:h.start,end:h.end}))}}}}}}var xU={average:function(t){for(var e=0,r=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],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]}},_U=function(t){return Math.round(t.length/2)};function Zu(t){return{seriesType:t,reset:function(e,r,i){var a=e.getData(),n=e.get("sampling"),o=e.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&n){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=i.getDevicePixelRatio(),p=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/p);if(isFinite(h)&&h>1){n==="lttb"?e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h)):n==="minmax"&&e.setData(a.minmaxDownSample(a.mapDimension(u.dim),1/h));var d=void 0;G(n)?d=xU[n]:Z(n)&&(d=n),d&&e.setData(a.downSample(a.mapDimension(u.dim),1/h,d,_U))}}}}}function p0(t){t.registerChartView(ZA),t.registerSeriesModel(OA),t.registerLayout(zo("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),i=e.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",i)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Zu("line"))}var bU=(function(t){R(e,t);function e(r,i,a,n,o){var s=t.call(this,r,i,a)||this;return s.index=0,s.type=n||"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 i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),r&&i[0]>i[1]&&i.reverse(),i},e.prototype.pointToData=function(r,i){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),i)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e})(qh),jA=bU;var SU=null;function Vo(){return SU}var JA="expandAxisBreak";var wn=Math.PI,CU=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],wU=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Tn=ae(),tM=ae(),d0=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,i=e.componentIndex,a=this.recordMap,n=a[r]||(a[r]=[]);return n[i]||(n[i]={ready:{}})},t})();function TU(t,e,r,i){var a=r.axis,n=e.ensureRecord(r),o=[],s,l=g0(t.axisName)&&_n(t.nameLocation);E(i,function(d){var v=wi(d);if(!(!v||v.label.ignore)){o.push(v);var m=n.transGroup;l&&(m.transform?Kr(ju,m.transform):la(ju),v.transform&&Ya(ju,ju,v.transform),ce.copy(cd,v.localRect),cd.applyTransform(ju),s?s.union(cd):ce.copy(s=new ce(0,0,0,0),cd))}});var u=Math.abs(n.dirVec.x)>.1?"x":"y",f=n.transGroup[u];if(o.sort(function(d,v){return Math.abs(d.label[u]-f)-Math.abs(v.label[u]-f)}),l&&s){var c=a.getExtent(),p=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-p;s.union(new ce(p,0,h,1))}n.stOccupiedRect=s,n.labelInfoList=o}var ju=nr(),cd=new ce(0,0,0,0),v0=function(t,e,r,i,a,n){if(_n(t.nameLocation)){var o=n.stOccupiedRect;o&&rM(EA({},o,n.transGroup.transform),i,a)}else m0(n.labelInfoList,n.dirVec,i,a)};function rM(t,e,r){var i=new ge;rd(t,e,i,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&AA(e,i)}function m0(t,e,r,i){for(var a=ge.dot(i,e)>=0,n=0,o=t.length;n<o;n++){var s=t[a?n:o-1-n];s.label.ignore||rM(s,r,i)}}var Uo=(function(){function t(e,r,i,a){this.group=new Te,this._axisModel=e,this._api=r,this._local={},this._shared=a||new d0(v0),this._resetCfgDetermined(i)}return t.prototype.updateCfg=function(e){if(0)var r;var i=this._cfg.raw;i.position=e.position,i.labelOffset=e.labelOffset,this._resetCfgDetermined(i)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,i=r.getDefaultOption?r.getDefaultOption():{},a=X(e.axisName,r.get("name")),n=r.get("nameMoveOverlap");(n==null||n==="auto")&&(n=X(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:X(e.nameDirection,1),tickDirection:X(e.tickDirection,1),labelDirection:X(e.labelDirection,1),labelOffset:X(e.labelOffset,0),silent:X(e.silent,!0),axisName:a,nameLocation:Or(r.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:g0(a)&&n,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new Te({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 ge(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var i=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),E(EU,function(a){e[a]&&AU[a](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,r||{})}),this},t.innerTextLayout=function(e,r,i){var a=im(r-e),n,o;return Xl(a)?(o=i>0?"top":"bottom",n="center"):Xl(a-wn)?(o=i>0?"bottom":"top",n="center"):(o="middle",a>0&&a<wn?n=i>0?"right":"left":n=i>0?"left":"right"),{rotation:a,textAlign:n,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})(),EU=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],AU={axisLine:function(t,e,r,i,a,n,o){if(0)var s;var l=i.get(["axisLine","show"]);if(l==="auto"&&(l=!0,t.raw.axisLineAutoShow!=null&&(l=!!t.raw.axisLineAutoShow)),!!l){var u=i.axis.getExtent(),f=n.transform,c=[u[0],0],p=[u[1],0],h=c[0]>p[0];f&&(Ft(c,c,f),Ft(p,p,f));var d=k({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),v={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:d};if(i.get(["axisLine","breakLine"])&&mo(i.axis.scale))Vo().buildAxisBreakLine(i,a,n,v);else{var m=new gi(k({shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]}},v));co(m.shape,m.style.lineWidth),m.anid="line",a.add(m)}var g=i.get(["axisLine","symbol"]);if(g!=null){var y=i.get(["axisLine","symbolSize"]);G(g)&&(g=[g,g]),(G(y)||me(y))&&(y=[y,y]);var x=uh(i.get(["axisLine","symbolOffset"])||0,y),_=y[0],b=y[1];E([{rotate:t.rotation+Math.PI/2,offset:x[0],r:0},{rotate:t.rotation-Math.PI/2,offset:x[1],r:Math.sqrt((c[0]-p[0])*(c[0]-p[0])+(c[1]-p[1])*(c[1]-p[1]))}],function(S,w){if(g[w]!=="none"&&g[w]!=null){var A=Nt(g[w],-_/2,-b/2,_,b,d.stroke,!0),C=S.r+S.offset,T=h?p:c;A.attr({rotation:S.rotate,x:T[0]+C*Math.cos(t.rotation),y:T[1]-C*Math.sin(t.rotation),silent:!0,z2:11}),a.add(A)}})}}},axisTickLabelEstimate:function(t,e,r,i,a,n,o,s){if(0)var l;var u=eM(e,a,s);u&&QA(t,e,r,i,a,n,o,Ar.estimate)},axisTickLabelDetermine:function(t,e,r,i,a,n,o,s){if(0)var l;var u=eM(e,a,s);u&&QA(t,e,r,i,a,n,o,Ar.determine);var f=OU(t,a,n,i);DU(t,e.labelLayoutList,f),IU(t,a,n,i,t.tickDirection)},axisName:function(t,e,r,i,a,n,o,s){var l=r.ensureRecord(i);if(0)var u;e.nameEl&&(a.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var f=t.axisName;if(g0(f)){var c=t.nameLocation,p=t.nameDirection,h=i.getModel("nameTextStyle"),d=i.get("nameGap")||0,v=i.axis.getExtent(),m=i.axis.inverse?-1:1,g=new ge(0,0),y=new ge(0,0);c==="start"?(g.x=v[0]-m*d,y.x=-m):c==="end"?(g.x=v[1]+m*d,y.x=m):(g.x=(v[0]+v[1])/2,g.y=t.labelOffset+p*d,y.y=p);var x=nr();y.transform(us(x,x,t.rotation));var _=i.get("nameRotate");_!=null&&(_=_*wn/180);var b,S;_n(c)?b=Uo.innerTextLayout(t.rotation,_??t.rotation,p):(b=MU(t.rotation,c,_||0,v),S=t.raw.axisNameAvailableWidth,S!=null&&(S=Math.abs(S/Math.sin(b.rotation)),!isFinite(S)&&(S=null)));var w=h.getFont(),A=i.get("nameTruncate",!0)||{},C=A.ellipsis,T=Ba(t.raw.nameTruncateMaxWidth,A.maxWidth,S),M=s.nameMarginLevel||0,O=new ke({x:g.x,y:g.y,rotation:b.rotation,silent:Uo.isLabelSilent(i),style:wr(h,{text:f,font:w,overflow:"truncate",width:T,ellipsis:C,fill:h.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:h.get("align")||b.textAlign,verticalAlign:h.get("verticalAlign")||b.textVerticalAlign}),z2:1});if(zs({el:O,componentModel:i,itemName:f}),O.__fullText=f,O.anid="name",i.get("triggerEvent")){var L=Uo.makeAxisEventDataBase(i);L.targetType="axisName",L.name=f,_e(O).eventData=L}n.add(O),O.updateTransform(),e.nameEl=O;var D=l.nameLayout=wi({label:O,priority:O.z2,defaultAttr:{ignore:O.ignore},marginDefault:_n(c)?CU[M]:wU[M]});if(l.nameLocation=c,a.add(O),O.decomposeTransform(),t.shouldNameMoveOverlap&&D){var I=r.ensureRecord(i);r.resolveAxisNameOverlap(t,r,i,D,y,I)}}}};function QA(t,e,r,i,a,n,o,s){aM(e)||PU(t,e,a,s,i,o);var l=e.labelLayoutList;NU(t,i,l,n),zU(i,t.rotation,l);var u=t.optionHideOverlap;LU(i,l,u),u&&td(Ue(l,function(f){return f&&!f.label.ignore})),TU(t,r,i,l)}function MU(t,e,r,i){var a=im(r-t),n,o,s=i[0]>i[1],l=e==="start"&&!s||e!=="start"&&s;return Xl(a-wn/2)?(o=l?"bottom":"top",n="center"):Xl(a-wn*1.5)?(o=l?"top":"bottom",n="center"):(o="middle",a<wn*1.5&&a>wn/2?n=l?"left":"right":n=l?"right":"left"),{rotation:a,textAlign:n,textVerticalAlign:o}}function LU(t,e,r){var i=t.axis,a=t.get(["axisLabel","customValues"]);if(BE(i))return;function n(u,f,c){var p=wi(e[f]),h=wi(e[c]),d=i.scale;if(!(!p||!h)){if(u==null){if(!r&&a)return;var v=Tn(p.label).labelInfo.tick;if(ul(d)&&v.notNice||kt(d)&&v.offInterval){vl(p.label);return}}if(u===!1||p.suggestIgnore){vl(p.label);return}if(h.suggestIgnore){vl(h.label);return}var m=.1;if(!r){var g=[0,0,0,0];p=$u({marginForce:g},p),h=$u({marginForce:g},h)}rd(p,h,null,{touchThreshold:m})&&vl(u?h.label:p.label)}}var o=t.get(["axisLabel","showMinLabel"]),s=t.get(["axisLabel","showMaxLabel"]),l=e.length;n(o,0,1),n(s,l-1,l-2)}function DU(t,e,r){t.showMinorTicks||E(e,function(i){if(i&&i.label.ignore)for(var a=0;a<r.length;a++){var n=r[a],o=tM(n),s=Tn(i.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){vl(n);return}}})}function vl(t){t&&(t.ignore=!0)}function iM(t,e,r,i,a){for(var n=[],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&&(Ft(o,o,e),Ft(s,s,e));var f=new gi({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});co(f.shape,f.style.lineWidth),f.anid=a+"_"+t[l].tickValue,n.push(f);var c=tM(f);c.onBand=!!t[l].onBand,c.tickValue=t[l].tickValue}return n}function OU(t,e,r,i){var a=i.axis,n=i.getModel("axisTick"),o=n.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||a.scale.isBlank())return[];for(var s=n.getModel("lineStyle"),l=t.tickDirection*n.get("length"),u=a.getTicksCoords(),f=iM(u,r.transform,l,le(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}function IU(t,e,r,i,a){var n=i.axis,o=i.getModel("minorTick");if(!(!t.showMinorTicks||n.scale.isBlank())){var s=n.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=a*o.get("length"),f=le(l.getLineStyle(),le(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var p=iM(s[c],r.transform,u,f,"minorticks_"+c),h=0;h<p.length;h++)e.add(p[h])}}function eM(t,e,r){if(aM(t)){var i=t.axisLabelsCreationContext,a=i.out.noPxChangeTryDetermine;if(r.noPxChange){for(var n=!0,o=0;o<a.length;o++)n=n&&a[o]();if(n)return!1}a.length&&(e.remove(t.labelGroup),h0(t,null,null,null))}return!0}function PU(t,e,r,i,a,n){var o=a.axis,s=Ba(t.raw.axisLabelShow,a.get(["axisLabel","show"])),l=new Te;r.add(l);var u=hl(i);if(!s||o.scale.isBlank()){h0(e,[],l,u);return}var f=a.getModel("axisLabel"),c=o.getViewLabels(u),p=(Ba(t.raw.labelRotate,f.get("rotate"))||0)*wn/180,h=Uo.innerTextLayout(t.rotation,p,t.labelDirection),d=a.getCategories&&a.getCategories(!0),v=[],m=a.get("triggerEvent"),g=1/0,y=-1/0;E(c,function(_,b){var S,w=_.tick,A=_.formattedLabel,C=_.rawLabel,T=f,M=Da(o.scale,w);if(d&&d[M]){var O=d[M];$(O)&&O.textStyle&&(T=new je(O.textStyle,f,a.ecModel))}var L=T.getTextColor()||a.get(["axisLine","lineStyle","color"]),D=T.getShallow("align",!0)||h.textAlign,I=X(T.getShallow("alignMinLabel",!0),D),P=X(T.getShallow("alignMaxLabel",!0),D),z=T.getShallow("verticalAlign",!0)||T.getShallow("baseline",!0)||h.textVerticalAlign,N=X(T.getShallow("verticalAlignMinLabel",!0),z),U=X(T.getShallow("verticalAlignMaxLabel",!0),z),B=10+(((S=w.time)===null||S===void 0?void 0:S.level)||0);g=Math.min(g,B),y=Math.max(y,B);var Y=new ke({x:0,y:0,rotation:0,silent:Uo.isLabelSilent(a),z2:B,style:wr(T,{text:A,align:b===0?I:b===c.length-1?P:D,verticalAlign:b===0?N:b===c.length-1?U:z,fill:Z(L)?L(o.type==="category"?C:o.type==="value"?M+"":M,b):L})});Y.anid="label_"+M;var q=Tn(Y);if(q.labelInfo=_,q.layoutRotation=h.rotation,zs({el:Y,componentModel:a,itemName:A,formatterParamsExtra:{isTruncated:function(){return Y.isTruncated},value:C,tickIndex:b}}),m){var Q=Uo.makeAxisEventDataBase(a);Q.targetType="axisLabel",Q.value=C,Q.tickIndex=b;var j=_.tick.break;if(j){var fe=j.parsedBreak;Q.break={start:fe.vmin,end:fe.vmax}}o.type==="category"&&(Q.dataIndex=M),_e(Y).eventData=Q,j&&kU(a,n,Y,j)}v.push(Y),l.add(Y)});var x=F(v,function(_){return{label:_,priority:Tn(_).labelInfo.tick.break?_.z2+(y-g+1):_.z2,defaultAttr:{ignore:_.ignore}}});h0(e,x,l,u)}function aM(t){return!!t.labelLayoutList}function h0(t,e,r,i){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=i}function NU(t,e,r,i){var a=e.get(["axisLabel","margin"]);E(r,function(n,o){var s=wi(n);if(s){var l=s.label,u=Tn(l);s.suggestIgnore=l.ignore,l.ignore=!1,ja(Oa,RU);var f=e.axis;Oa.x=f.dataToCoord(Da(f.scale,u.labelInfo.tick)),Oa.y=t.labelOffset+t.labelDirection*a,Oa.rotation=u.layoutRotation,i.add(Oa),Oa.updateTransform(),i.remove(Oa),Oa.decomposeTransform(),ja(l,Oa),l.markRedraw(),Wu(s,!0),wi(s)}})}var Oa=new Pe,RU=new Pe;function g0(t){return!!t}function kU(t,e,r,i){r.on("click",function(a){var n={type:JA,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};n[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(n)})}function zU(t,e,r){var i=st();if(i){var a=i.retrieveAxisBreakPairs(r,function(o){return o&&Tn(o.label).labelInfo.tick.break},!0),n=t.get(["breakLabelLayout","moveOverlap"],!0);(n===!0||n==="auto")&&E(a,function(o){Vo().adjustBreakLabelPair(t.axis.inverse,e,[wi(r[o[0]]),wi(r[o[1]])])})}}var ml=Uo;function Ju(t,e,r){r=r||{};var i=e.axis,a={},n=i.getAxesOnZeroOf()[0],o=i.position,s=n?"onZero":o,l=i.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,p=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(n){var h=n.toGlobalCoord(n.dataToCoord(0));p[f.onZero]=Math.max(Math.min(h,p[1]),p[0])}a.position=[l==="y"?p[f[s]]:u[0],l==="x"?p[f[s]]:u[3]],a.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=d[o],a.labelOffset=n?p[f[o]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Ba(r.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var v=e.get(["axisLabel","rotate"]);return a.labelRotate=s==="top"?-v:v,a.z2=1,a}function nM(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function oM(t){var e={xAxisModel:null,yAxisModel:null};return E(e,function(r,i){var a=i.replace(/Model$/,""),n=t.getReferringComponents(a,Ht).models[0];e[i]=n}),e}function sM(t,e,r,i,a,n){for(var o=Ju(t,r),s=!1,l=!1,u=0;u<e.length;u++)Ah(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=n,new ml(r,i,o,a)}function lM(t,e,r){var i=Ju(e,r);if(0)var a;t.updateCfg(i)}function uM(){jE("liPosMinGap",UU)}function UU(t,e,r){var i=te(),a=r.serUids,n=r.liPosMinGap,o,s=e.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,c=$p(f);function p(x){Gh(t,e.sers,function(_){var b=_.getRawData(),S=b.getDimensionIndex(b.mapDimension(s.dim));S>=0&&x(S,_,b.getStore())})}var h=0;if(p(function(x,_,b){i.set(_.uid,1),(!a||!a.hasKey(_.uid))&&(o=!0),h+=b.count()}),(!a||a.keys().length!==i.keys().length)&&(o=!0),!o&&n!=null){e.liPosMinGap=n;return}fd(Bo,h);var d=0;p(function(x,_,b){for(var S=0,w=b.count();S<w;++S){var A=b.get(x,S);isFinite(A)&&(!f||Xp(c,A))&&(u&&(A=l.transformIn(A,null)),Bo.arr[d++]=A)}});var v=Bo.typed?Bo.arr.subarray(0,d):(Bo.arr.length=d,Bo.arr);Bo.typed?v.sort():Ni(v);for(var m=1/0,g=1;g<d;++g){var y=v[g]-v[g-1];y>0&&y<m&&(m=y)}r.liPosMinGap=e.liPosMinGap=yt(m)?m:d>0?Hh:GE,r.serUids=i}var Bo=fd({ctor:RA},50);function fM(t){return function(e,r){var i=Mr(e,{fromStat:{key:t}});if(yt(i.w2))return[-i.w2/2,i.w2/2]}}function Qu(t,e){return t+Fh+e}function cM(t){return uM(),{liPosMinGap:!kt(t.scale)}}var Ia="bar";function pM(t,e,r,i){QE(t,{key:e,seriesType:r,coordSysType:i,getMetrics:cM})}function hM(t){var e=t.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var y0={left:0,right:0,top:0,bottom:0},ef=["25%","25%"],ii="cartesian2d",BU=(function(t){R(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,i){var a=dn(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),a&&r.outerBounds&&Vr(r.outerBounds,a)},e.prototype.mergeOption=function(r,i){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&Vr(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:y0,outerBoundsContain:"all",outerBoundsClampWidth:ef[0],outerBoundsClampHeight:ef[1],backgroundColor:ne.color.transparent,borderWidth:1,borderColor:ne.color.neutral30},e})(Ne),dM=BU;var FU=Oc(),HU="__ec_stack_";function vM(t){return t.get("stack")||HU+t.seriesIndex}function GU(t,e){var r=KU(t,e);return r.columnMap=YU(r),r}function KU(t,e){var r=Qu(e,ii),i=[],a=Mr(t,{fromStat:{key:r},min:1});return $y(t,r,function(n){i.push({barWidth:Ae(n.get("barWidth"),a.w),barMaxWidth:Ae(n.get("barMaxWidth"),a.w),barMinWidth:Ae(n.get("barMinWidth")||(yM(n)?.5:1),a.w),barGap:n.get("barGap"),barCategoryGap:n.get("barCategoryGap"),defaultBarGap:n.get("defaultBarGap"),stackId:vM(n)})}),{bandWidthResult:a,seriesInfo:i}}function YU(t){var e=t.bandWidthResult.w,r=e,i=0,a,n,o=[],s={};E(t.seriesInfo,function(v,m){m||(n=v.defaultBarGap||0);var g=v.stackId;se(s,g)||i++;var y=s[g];y||(y=s[g]={width:0,maxWidth:0},o.push(g));var x=v.barWidth;x&&!y.width&&(y.width=x,x=nt(r,x),r-=x);var _=v.barMaxWidth;_&&(y.maxWidth=_);var b=v.barMinWidth;b&&(y.minWidth=b);var S=v.barGap;S!=null&&(n=S);var w=v.barCategoryGap;w!=null&&(a=w)}),a==null&&(a=we(35-o.length*4,15)+"%");var l=Ae(a,e),u=Ae(n,1),f=(r-l)/(i+(i-1)*u);f=we(f,0),E(o,function(v){var m=s[v],g=m.maxWidth,y=m.minWidth;if(m.width){var x=m.width;g&&(x=nt(x,g)),y&&(x=we(x,y)),m.width=x,r-=x+u*x,i--}else{var x=f;g&&g<x&&(x=nt(g,r)),y&&y>x&&(x=y),x!==f&&(m.width=x,r-=x+u*x,i--)}}),f=(r-l)/(i+(i-1)*u),f=we(f,0);var c=0,p;E(o,function(v){var m=s[v];m.width||(m.width=f),p=m,c+=m.width*(1+u)}),p&&(c-=p.width*u);var h={},d=-c/2;return E(o,function(v){var m=s[v];h[v]=h[v]||{bandWidth:e,offset:d,width:m.width},d+=m.width*(1+u)}),h}function mM(t){return{seriesType:t,overallReset:function(e){var r=Qu(t,ii);ZE(e,r,function(i){var a=GU(i,t);$y(i,r,function(n){var o=a.columnMap[vM(n)];n.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function gM(t){return{seriesType:t,plan:Eo(),reset:function(e){if(nM(e)){var r=e.getData(),i=e.coordinateSystem,a=i.getBaseAxis(),n=i.getOtherAxis(a),o=r.getDimensionIndex(r.mapDimension(n.dim)),s=r.getDimensionIndex(r.mapDimension(a.dim)),l=e.get("showBackground",!0),u=r.mapDimension(n.dim),f=r.getCalculationInfo("stackResultDimension"),c=Ma(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),p=n.isHorizontal(),h=n.toGlobalCoord(n.dataToCoord(hM(n))),d=yM(e),v=e.get("barMinHeight")||0,m=f&&r.getDimensionIndex(f),g=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(x,_){for(var b=x.count,S=d&&Br(b*3),w=d&&l&&Br(b*3),A=d&&Br(b),C=i.master.getRect(),T=p?C.width:C.height,M,O=_.getStore(),L=0;(M=x.next())!=null;){var D=O.get(c?m:o,M),I=O.get(s,M),P=h,z=void 0;c&&(z=+D-O.get(o,M));var N=void 0,U=void 0,B=void 0,Y=void 0;if(p){var q=i.dataToPoint([D,I]);c&&(P=i.dataToPoint([z,I])[0]),N=P,U=q[1]+y,B=q[0]-P,Y=g,et(B)<v&&(B=(B<0?-1:1)*v)}else{var q=i.dataToPoint([I,D]);c&&(P=i.dataToPoint([I,z])[1]),N=q[0]+y,U=P,B=g,Y=q[1]-P,et(Y)<v&&(Y=(Y<=0?-1:1)*v)}d?(S[L]=N,S[L+1]=U,S[L+2]=p?B:Y,w&&(w[L]=p?C.x:N,w[L+1]=p?U:C.y,w[L+2]=T),A[M]=M):_.setItemLayout(M,{x:N,y:U,width:B,height:Y}),L+=3}d&&_.setLayout({largePoints:S,largeDataIndices:A,largeBackgroundPoints:w,valueAxisHorizontal:p})}}}}}}function yM(t){return t.pipelineContext&&t.pipelineContext.large}function WU(t){return fM(Qu(t,ii))}function xM(t){FU(t,function(){function e(r){var i=Qu(r,ii);pM(t,i,r,ii),oA(i,WU(r))}e("bar"),e("pictorialBar")})}var _M=(function(t){R(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,i){return ji(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,i,a){var n=this.coordinateSystem;if(n&&n.clampData){var o=n.clampData(r),s=n.dataToPoint(o);if(a)E(n.getAxes(),function(p,h){if(p.type==="category"&&i!=null){var d=p.getTicksCoords(),v=p.getTickModel().get("alignWithLabel"),m=o[h],g=i[h]==="x1"||i[h]==="y1";if(g&&!v&&(m+=1),d.length<2)return;if(d.length===2){s[h]=p.toGlobalCoord(p.getExtent()[g?1:0]);return}for(var y=void 0,x=void 0,_=1,b=0;b<d.length;b++){var S=d[b].coord,w=b===d.length-1?d[b-1].tickValue+_:d[b].tickValue;if(w===m){x=S;break}else if(w<m)y=S;else if(y!=null&&w>m){x=(S+y)/2;break}b===1&&(_=w-d[0].tickValue)}x==null&&(y?y&&(x=d[d.length-1].coord):x=d[0].coord),s[h]=p.toGlobalCoord(x)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=n.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})(At);At.registerClass(_M);var x0=_M;var $U=(function(t){R(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 ji(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,i){var a=Ic(this,r,i);return a.progressiveRender&&(a.large=!0),a},e.prototype.brushSelector=function(r,i,a){return a.rect(i.getItemLayout(r))},e.type="series."+Ia,e.dependencies=["grid","polar"],e.defaultOption=Us(x0.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:ne.color.primary,borderWidth:2}},realtimeSort:!1}),e})(x0),bM=$U;var XU=(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})(),qU=(function(t){R(e,t);function e(r){var i=t.call(this,r)||this;return i.type="sausage",i}return e.prototype.getDefaultShape=function(){return new XU},e.prototype.buildPath=function(r,i){var a=i.cx,n=i.cy,o=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-o)*.5,u=o+l,f=i.startAngle,c=i.endAngle,p=i.clockwise,h=Math.PI*2,d=p?c-f<h:f-c<h;d||(f=c-(p?h:-h));var v=Math.cos(f),m=Math.sin(f),g=Math.cos(c),y=Math.sin(c);d?(r.moveTo(v*o+a,m*o+n),r.arc(v*u+a,m*u+n,l,-Math.PI+f,f,!p)):r.moveTo(v*s+a,m*s+n),r.arc(a,n,s,f,c,!p),r.arc(g*u+a,y*u+n,l,c-Math.PI*2,c-Math.PI,!p),o!==0&&r.arc(a,n,o,c,f,p)},e})(he),_0=qU;function SM(t,e){e=e||{};var r=e.isRoundCap;return function(i,a,n){var o=a.position;if(!o||o instanceof Array)return Wn(i,a,n);var s=t(o),l=a.distance!=null?a.distance:5,u=this.shape,f=u.cx,c=u.cy,p=u.r,h=u.r0,d=(p+h)/2,v=u.startAngle,m=u.endAngle,g=(v+m)/2,y=r?Math.abs(p-h)/2:0,x=Math.cos,_=Math.sin,b=f+p*x(v),S=c+p*_(v),w="left",A="top";switch(s){case"startArc":b=f+(h-l)*x(g),S=c+(h-l)*_(g),w="center",A="top";break;case"insideStartArc":b=f+(h+l)*x(g),S=c+(h+l)*_(g),w="center",A="bottom";break;case"startAngle":b=f+d*x(v)+pd(v,l+y,!1),S=c+d*_(v)+hd(v,l+y,!1),w="right",A="middle";break;case"insideStartAngle":b=f+d*x(v)+pd(v,-l+y,!1),S=c+d*_(v)+hd(v,-l+y,!1),w="left",A="middle";break;case"middle":b=f+d*x(g),S=c+d*_(g),w="center",A="middle";break;case"endArc":b=f+(p+l)*x(g),S=c+(p+l)*_(g),w="center",A="bottom";break;case"insideEndArc":b=f+(p-l)*x(g),S=c+(p-l)*_(g),w="center",A="top";break;case"endAngle":b=f+d*x(m)+pd(m,l+y,!0),S=c+d*_(m)+hd(m,l+y,!0),w="left",A="middle";break;case"insideEndAngle":b=f+d*x(m)+pd(m,-l+y,!0),S=c+d*_(m)+hd(m,-l+y,!0),w="right",A="middle";break;default:return Wn(i,a,n)}return i=i||{},i.x=b,i.y=S,i.align=w,i.verticalAlign=A,i}}function CM(t,e,r,i){if(me(i)){t.setTextConfig({rotation:i});return}else if(V(e)){t.setTextConfig({rotation:0});return}var a=t.shape,n=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(n+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=n;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 pd(t,e,r){return e*Math.sin(t)*(r?-1:1)}function hd(t,e,r){return e*Math.cos(t)*(r?1:-1)}function Fo(t,e,r){var i=t.get("borderRadius");if(i==null)return r?{cornerRadius:0}:null;V(i)||(i=[i,i,i,i]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:F(i,function(n){return xr(n,a)})}}var b0=Math.max,S0=Math.min,ZU=(function(t){R(e,t);function e(){var r=t.call(this)||this;return r.type=Ia,r._isFirstFrame=!0,r}return e.prototype.render=function(r,i,a,n){this._model=r,this._removeOnRenderedListener(a),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,i,a):this._renderNormal(r,i,a,n))},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,i){this._progressiveEls=[],this._incrementalRenderLarge(r,i)},e.prototype.eachRendered=function(r){Sa(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var i=r.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},e.prototype._renderNormal=function(r,i,a,n){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 p=r.isAnimationEnabled()?r:null,h=jU(r,u);h&&this._enableRealtimeSort(h,s,a);var d=r.get("clip",!0)||h,v=u.getArea();o.removeClipPath();var m=r.get("roundCap",!0),g=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),x=y.get("borderRadius")||0,_=[],b=this._backgroundEls,S=n&&n.isInitSort,w=n&&n.type==="changeAxisOrder";function A(M){var O=dd[u.type](s,M);if(!O)return null;var L=aB(u,c,O);return L.useStyle(y.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",x):L.setShape("cornerRadius",x),_[M]=L,L}s.diff(l).add(function(M){var O=s.getItemModel(M),L=dd[u.type](s,M,O);if(L&&(g&&A(M),!(!s.hasValue(M)||!MM[u.type](L)))){var D=!1;d&&(D=wM[u.type](v,L));var I=TM[u.type](r,s,M,L,c,p,f.model,!1,m);h&&(I.forceLabelAnimation=!0),LM(I,s,M,O,L,r,c,u.type==="polar"),S?I.attr({shape:L}):h?EM(h,p,I,L,M,c,!1,!1):Je(I,{shape:L},r,M),s.setItemGraphicEl(M,I),o.add(I),I.ignore=D}}).update(function(M,O){var L=s.getItemModel(M),D=dd[u.type](s,M,L);if(D){if(g){var I=void 0;b.length===0?I=A(O):(I=b[O],I.useStyle(y.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",x):I.setShape("cornerRadius",x),_[M]=I);var P=dd[u.type](s,M),z=NM(c,P,u);He(I,{shape:z},p,M)}var N=l.getItemGraphicEl(O);if(!s.hasValue(M)||!MM[u.type](D)){o.remove(N);return}var U=!1;d&&(U=wM[u.type](v,D),U&&o.remove(N));var B=N&&(N.type==="sector"&&m||N.type==="sausage"&&!m);if(B&&(N&&fn(N,r,O),N=null),N?ba(N):N=TM[u.type](r,s,M,D,c,p,f.model,!0,m),h&&(N.forceLabelAnimation=!0),w){var Y=N.getTextContent();if(Y){var q=Ca(Y);q.prevValue!=null&&(q.prevValue=q.value)}}else LM(N,s,M,L,D,r,c,u.type==="polar");S?N.attr({shape:D}):h?EM(h,p,N,D,M,c,!0,w):He(N,{shape:D},r,M,null),s.setItemGraphicEl(M,N),N.ignore=U,o.add(N)}}).remove(function(M){var O=l.getItemGraphicEl(M);O&&fn(O,r,M)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new Te);C.removeAll();for(var T=0;T<_.length;++T)C.add(_[T]);o.add(C),this._backgroundEls=_,this._data=s},e.prototype._renderLarge=function(r,i,a){this._clear(),OM(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,i){this._removeBackground(),OM(i,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var i=r.get("clip",!0)&&UA(r.coordinateSystem,!1,r),a=this.group;i?a.setClipPath(i):a.removeClipPath()},e.prototype._enableRealtimeSort=function(r,i,a){var n=this;if(i.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,r,a),this._isFirstFrame=!1;else{var s=function(l){var u=i.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){n._updateSortWithinSameData(i,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(r,i,a){var n=[];return r.each(r.mapDimension(i.dim),function(o,s){var l=a(s);l=l??NaN,n.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),n.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:F(n,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(r,i,a){for(var n=a.scale,o=r.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=n.getOrdinalMeta().categories.length;l<u;++l){var f=r.rawIndexOf(o,n.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:i(r.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(r,i){for(var a=i.scale,n=a.getExtent(),o=Math.max(0,n[0]),s=Math.min(n[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(r,i,a,n){if(this._isOrderChangedWithinSameData(r,i,a)){var o=this._dataSort(r,a,i);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(n),n.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(r,i,a){var n=i.baseAxis,o=this._dataSort(r,n,function(s){return r.get(r.mapDimension(i.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.index,sortInfo:o})},e.prototype.remove=function(r,i){this._clear(this._model),this._removeOnRenderedListener(i)},e.prototype.dispose=function(r,i){this._removeOnRenderedListener(i)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(r){var i=this.group,a=this._data;r&&r.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(n){fn(n,r,_e(n).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=Ia,e})(mt),wM={cartesian2d:function(t,e){var r=e.width<0?-1:1,i=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var a=t.x+t.width,n=t.y+t.height,o=b0(e.x,t.x),s=S0(e.x+e.width,a),l=b0(e.y,t.y),u=S0(e.y+e.height,n),f=s<o,c=u<l;return e.x=f&&o>a?s:o,e.y=c&&l>n?u:l,e.width=f?0:s-o,e.height=c?0:u-l,r<0&&(e.x+=e.width,e.width=-e.width),i<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 i=e.r;e.r=e.r0,e.r0=i}var a=S0(e.r,t.r),n=b0(e.r0,t.r0);e.r=a,e.r0=n;var o=a-n<0;if(r<0){var i=e.r;e.r=e.r0,e.r0=i}return o}},TM={cartesian2d:function(t,e,r,i,a,n,o,s,l){var u=new Pe({shape:k({},i),z2:1});if(u.__dataIndex=r,u.name="item",n){var f=u.shape,c=a?"height":"width";f[c]=0}return u},polar:function(t,e,r,i,a,n,o,s,l){var u=!a&&l?_0:vi,f=new u({shape:i,z2:1});f.name="item";var c=PM(a);if(f.calculateTextPosition=SM(c,{isRoundCap:u===_0}),n){var p=f.shape,h=a?"r":"endAngle",d={};p[h]=a?i.r0:i.startAngle,d[h]=i[h],(s?He:Je)(f,{shape:d},n)}return f}};function jU(t,e){var r=t.get("realtimeSort",!0),i=e.getBaseAxis();if(r&&i.type==="category"&&e.type==="cartesian2d")return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function EM(t,e,r,i,a,n,o,s){var l,u;n?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(o?He:Je)(r,{shape:l},e,a,null);var f=e?t.baseAxis.model:null;(o?He:Je)(r,{shape:u},f,a)}function AM(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var JU=["x","y","width","height"],QU=["cx","cy","r","startAngle","endAngle"],MM={cartesian2d:function(t){return!AM(t,JU)},polar:function(t){return!AM(t,QU)}},dd={cartesian2d:function(t,e,r){var i=t.getItemLayout(e);if(!i)return null;var a=r?tB(r,i):0,n=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+n*a/2,y:i.y+o*a/2,width:i.width-n*a,height:i.height-o*a}},polar:function(t,e,r){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function eB(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function PM(t){return(function(e){var r=e?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+r;default:return i}}})(t)}function LM(t,e,r,i,a,n,o,s){var l=e.getItemVisual(r,"style");if(s){if(!n.get("roundCap")){var f=t.shape,c=Fo(i.getModel("itemStyle"),f,!0);k(f,c),t.setShape(f)}}else{var u=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var p=i.getShallow("cursor");p&&t.attr("cursor",p);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?nB(a,n.coordinateSystem):oB(a,n.coordinateSystem),d=ur(i);ei(t,d,{labelFetcher:n,labelDataIndex:r,defaultText:dl(n.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var v=t.getTextContent();if(s&&v){var m=i.get(["label","position"]);t.textConfig.inside=m==="middle"?!0:null,CM(t,m==="outside"?h:m,PM(o),i.get(["label","rotate"]))}nw(v,d,n.getRawValue(r),function(y){return nd(e,y)});var g=i.getModel(["emphasis"]);kr(t,g.get("focus"),g.get("blurScope"),g.get("disabled")),Ki(t,i),eB(a)&&(t.style.fill="none",t.style.stroke="none",E(t.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function tB(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var i=t.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),n=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,a,n)}var rB=(function(){function t(){}return t})(),DM=(function(t){R(e,t);function e(r){var i=t.call(this,r)||this;return i.type="largeBar",i}return e.prototype.getDefaultShape=function(){return new rB},e.prototype.buildPath=function(r,i){for(var a=i.points,n=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<a.length;f+=3)l[n]=u,l[o]=a[f+2],s[n]=a[f+n],s[o]=a[f+o],r.rect(s[0],s[1],l[0],l[1])},e})(he);function OM(t,e,r,i){var a=t.getData(),n=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=t.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints"),f=i?ws(t):0;if(u){var c=new DM({shape:{points:u},incremental:f,silent:!0,z2:0});c.baseDimIdx=n,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),r&&r.push(c)}var p=new DM({shape:{points:a.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});p.baseDimIdx=n,p.largeDataIndices=o,p.barWidth=s,e.add(p),p.useStyle(a.getVisual("style")),p.style.stroke=null,_e(p).seriesIndex=t.seriesIndex,t.get("silent")||(p.on("mousedown",IM),p.on("mousemove",IM)),r&&r.push(p)}var IM=Eu(function(t){var e=this,r=iB(e,t.offsetX,t.offsetY);_e(e).dataIndex=r>=0?r:null},30,!1);function iB(t,e,r){for(var i=t.baseDimIdx,a=1-i,n=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,f=0,c=n.length/3;f<c;f++){var p=f*3;if(l[i]=u,l[a]=n[p+2],s[i]=n[p+i],s[a]=n[p+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),e>=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function NM(t,e,r){if(ko(r,"cartesian2d")){var i=e,a=r.getArea();return{x:t?i.x:a.x,y:t?a.y:i.y,width:t?i.width:a.width,height:t?a.height:i.height}}else{var a=r.getArea(),n=e;return{cx:a.cx,cy:a.cy,r0:t?a.r0:n.r0,r:t?a.r:n.r,startAngle:t?n.startAngle:0,endAngle:t?n.endAngle:Math.PI*2}}}function aB(t,e,r){var i=t.type==="polar"?vi:Pe;return new i({shape:NM(e,r,t),silent:!0,z2:0})}function nB(t,e){if(t.height===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"bottom":"top"}return t.height>0?"bottom":"top"}function oB(t,e){if(t.width===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"left":"right"}return t.width>=0?"right":"left"}var RM=ZU;function C0(t){t.registerChartView(RM),t.registerSeriesModel(bM),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,mM(Ia)),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,gM(Ia)),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Zu(Ia)),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var i=e.componentType||"series";r.eachComponent({mainType:i,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})}),xM(t)}function tf(t){return{seriesType:t,reset:function(e,r){var i=r.findComponents({mainType:"legend"});if(!(!i||!i.length)){var a=e.getData();a.filterSelf(function(n){for(var o=a.getName(n),s=0;s<i.length;s++)if(!i[s].isSelected(o))return!1;return!0})}}}}function rf(t,e,r){e=V(e)&&{coordDimensions:e}||k({encodeDefine:t.getEncode()},e);var i=t.getSource(),a=Uu(i,e).dimensions,n=new wh(a,t);return n.initData(i,r),n}var sB=(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 i=this._getDataWithEncodedVisual();return i.getItemVisual(e,r)},t})(),vd=sB;var Ti="pie",lB=ae(),kM=(function(t){R(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 vd(oe(this.getData,this),oe(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return rf(this,{coordDimensions:["value"],encodeDefaulter:ut(Vw,this)})},e.prototype.getDataParams=function(r){var i=this.getData(),a=lB(i),n=a.seats;if(!n){var o=[];i.each(i.mapDimension("value"),function(l){o.push(l)}),n=a.seats=Yb(o,i.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=n[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){jl(r,"labelLine",["show"]);var i=r.labelLine,a=r.emphasis.labelLine;i.show=i.show&&r.label.show,a.show=a.show&&r.emphasis.label.show},e.type="series."+Ti,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})(At);Aw({fullType:kM.type,getCoord2:function(t){return t.getShallow("center")}});var zM=kM;var uB=Math.PI/180;function VM(t,e,r,i,a,n,o,s,l,u){if(t.length<2)return;function f(v){for(var m=v.rB,g=m*m,y=0;y<v.list.length;y++){var x=v.list[y],_=Math.abs(x.label.y-r),b=i+x.len,S=b*b,w=Math.sqrt(Math.abs((1-_*_/g)*S)),A=e+(w+x.len2)*a,C=A-x.label.x,T=x.targetTextWidth-C*a;BM(x,T,!0),x.label.x=A}}function c(v){for(var m={list:[],maxY:0},g={list:[],maxY:0},y=0;y<v.length;y++)if(v[y].labelAlignTo==="none"){var x=v[y],_=x.label.y>r?g:m,b=Math.abs(x.label.y-r);if(b>=_.maxY){var S=x.label.x-e-x.len2*a,w=i+x.len,A=Math.abs(S)<w?Math.sqrt(b*b/(1-S*S/w/w)):w;_.rB=A,_.maxY=b}_.list.push(x)}f(m),f(g)}for(var p=t.length,h=0;h<p;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}Xu(t,1,l,l+o)&&c(t)}function fB(t,e,r,i,a,n,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,p=0;p<t.length;p++){var h=t[p].label;w0(t[p])||(h.x<e?(f=Math.min(f,h.x),l.push(t[p])):(c=Math.max(c,h.x),u.push(t[p])))}for(var p=0;p<t.length;p++){var d=t[p];if(!w0(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var h=d.label,v=d.linePoints,m=void 0;d.labelAlignTo==="edge"?h.x<e?m=v[2][0]-d.labelDistance-o-d.edgeDistance:m=o+a-d.edgeDistance-v[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?h.x<e?m=f-o-d.bleedMargin:m=o+a-c-d.bleedMargin:h.x<e?m=h.x-o-d.bleedMargin:m=o+a-h.x-d.bleedMargin,d.targetTextWidth=m,BM(d,m,!1)}}VM(u,e,r,i,1,a,n,o,s,c),VM(l,e,r,i,-1,a,n,o,s,f);for(var p=0;p<t.length;p++){var d=t[p];if(!w0(d)&&d.linePoints){var h=d.label,v=d.linePoints,g=d.labelAlignTo==="edge",y=h.style.padding,x=y?y[1]+y[3]:0,_=h.style.backgroundColor?0:x,b=d.rect.width+_,S=v[1][0]-v[2][0];g?h.x<e?v[2][0]=o+d.edgeDistance+b+d.labelDistance:v[2][0]=o+a-d.edgeDistance-b-d.labelDistance:(h.x<e?v[2][0]=h.x+d.labelDistance:v[2][0]=h.x-d.labelDistance,v[1][0]=v[2][0]+S),v[1][1]=v[2][1]=h.y}}}function BM(t,e,r){if(t.labelStyleWidth==null){var i=t.label,a=i.style,n=t.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,f=n.width+(o?0:l);if(e<f||r){if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var c=i.getBoundingRect();i.setStyle("width",Math.ceil(c.width)),i.setStyle("backgroundColor",o)}else{var p=e-l,h=e<f?p:r?p>t.unconstrainedWidth?null:p:null;i.setStyle("width",h)}FM(n,i)}}}function FM(t,e){UM.rect=t,r0(UM,e,cB)}var cB={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},UM={};function w0(t){return t.position==="center"}function T0(t){var e=t.getData(),r=[],i,a,n=!1,o=(t.get("minShowLabelAngle")||0)*uB,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,c=s.y,p=s.height;function h(S){S.ignore=!0}function d(S){if(!S.ignore)return!0;for(var w in S.states)if(S.states[w].ignore===!1)return!0;return!1}e.each(function(S){var w=e.getItemGraphicEl(S),A=w.shape,C=w.getTextContent(),T=w.getTextGuideLine(),M=e.getItemModel(S),O=M.getModel("label"),L=O.get("position")||M.get(["emphasis","label","position"]),D=O.get("distanceToLabelLine"),I=O.get("alignTo"),P=Ae(O.get("edgeDistance"),u),z=O.get("bleedMargin");z==null&&(z=Math.min(u,p)>200?10:2);var N=M.getModel("labelLine"),U=N.get("length");U=Ae(U,u);var B=N.get("length2");if(B=Ae(B,u),Math.abs(A.endAngle-A.startAngle)<o){E(C.states,h),C.ignore=!0,T&&(E(T.states,h),T.ignore=!0);return}if(d(C)){var Y=(A.startAngle+A.endAngle)/2,q=Math.cos(Y),Q=Math.sin(Y),j,fe,be,Xe;i=A.cx,a=A.cy;var Be=L==="inside"||L==="inner";if(L==="center")j=A.cx,fe=A.cy,Xe="center";else{var Le=(Be?(A.r+A.r0)/2*q:A.r*q)+i,ve=(Be?(A.r+A.r0)/2*Q:A.r*Q)+a;if(j=Le+q*3,fe=ve+Q*3,!Be){var de=Le+q*(U+l-A.r),Se=ve+Q*(U+l-A.r),zt=de+(q<0?-1:1)*B,tt=Se;I==="edge"?j=q<0?f+P:f+u-P:j=zt+(q<0?-D:D),fe=tt,be=[[Le,ve],[de,Se],[zt,tt]]}Xe=Be?"center":I==="edge"?q>0?"right":"left":q>0?"left":"right"}var Dr=Math.PI,gt=0,dr=O.get("rotate");if(me(dr))gt=dr*(Dr/180);else if(L==="center")gt=0;else if(dr==="radial"||dr===!0){var Ra=q<0?-Y+Dr:-Y;gt=Ra}else if(dr==="tangential"||dr==="tangential-noflip"&&L!=="outside"&&L!=="outer"){var bt=Math.atan2(q,Q);bt<0&&(bt=Dr*2+bt);var na=Q>0;na&&dr!=="tangential-noflip"&&(bt=Dr+bt),gt=bt-Dr}if(n=!!gt,C.x=j,C.y=fe,C.rotation=gt,C.setStyle({verticalAlign:"middle"}),Be){C.setStyle({align:Xe});var qo=C.states.select;qo&&(qo.x+=C.x,qo.y+=C.y)}else{var Ei=new ce(0,0,0,0);FM(Ei,C),r.push({label:C,labelLine:T,position:L,len:U,len2:B,minTurnAngle:N.get("minTurnAngle"),maxSurfaceAngle:N.get("maxSurfaceAngle"),surfaceNormal:new ge(q,Q),linePoints:be,textAlign:Xe,labelDistance:D,labelAlignTo:I,edgeDistance:P,bleedMargin:z,rect:Ei,unconstrainedWidth:Ei.width,labelStyleWidth:C.style.width})}w.setTextConfig({inside:Be})}}),!n&&t.get("avoidLabelOverlap")&&fB(r,i,a,l,u,p,f,c);for(var v=0;v<r.length;v++){var m=r[v],g=m.label,y=m.labelLine,x=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:m.textAlign}),x&&(E(g.states,h),g.ignore=!0);var _=g.states.select;_&&(_.x+=g.x,_.y+=g.y)}if(y){var b=m.linePoints;x||!b?(E(y.states,h),y.ignore=!0):(e0(b,m.minTurnAngle),bA(b,m.surfaceNormal,m.maxSurfaceAngle),y.setShape({points:b}),g.__hostTarget.textGuideLineConfig={anchor:new ge(b[0][0],b[0][1])})}}}var HM=Math.PI*2,md=Math.PI/180,GM=Pc(Ti,pB);function pB(t,e){t.eachSeriesByType(Ti,function(r){var i=r.getData(),a=i.mapDimension("value"),n=Iw(r,e),o=n.cx,s=n.cy,l=n.r,u=n.r0,f=n.viewRect,c=-r.get("startAngle")*md,p=r.get("endAngle"),h=r.get("padAngle")*md;p=p==="auto"?c-HM:-p*md;var d=r.get("minAngle")*md,v=d+h,m=0;i.each(a,function(P){!isNaN(P)&&m++});var g=i.getSum(a),y=Math.PI/(g||m)*2,x=r.get("clockwise"),_=r.get("roseType"),b=r.get("stillShowZeroSum"),S=i.getDataExtent(a);S[0]=0;var w=x?1:-1,A=[c,p],C=w*h/2;Im(A,!x),c=A[0],p=A[1];var T=E0(r);T.startAngle=c,T.endAngle=p,T.clockwise=x,T.cx=o,T.cy=s,T.r=l,T.r0=u;var M=Math.abs(p-c),O=M,L=0,D=c;if(i.setLayout({viewRect:f,r:l}),i.each(a,function(P,z){var N;if(isNaN(P)){i.setItemLayout(z,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:o,cy:s,r0:u,r:_?NaN:l});return}_!=="area"?N=g===0&&b?y:P*y:N=M/m,N<v?(N=v,O-=v):L+=P;var U=D+w*N,B=0,Y=0;h>N?(B=D+w*N/2,Y=B):(B=D+C,Y=U-C),i.setItemLayout(z,{angle:N,startAngle:B,endAngle:Y,clockwise:x,cx:o,cy:s,r0:u,r:_?or(P,S,[u,l]):l}),D=U}),O<HM&&m)if(O<=.001){var I=M/m;i.each(a,function(P,z){if(!isNaN(P)){var N=i.getItemLayout(z);N.angle=I;var U=0,B=0;I<h?(U=c+w*(z+1/2)*I,B=U):(U=c+w*z*I+C,B=c+w*(z+1)*I-C),N.startAngle=U,N.endAngle=B}})}else y=O/L,D=c,i.each(a,function(P,z){if(!isNaN(P)){var N=i.getItemLayout(z),U=N.angle===v?v:P*y,B=0,Y=0;U<h?(B=D+w*U/2,Y=B):(B=D+C,Y=D+w*U-C),N.startAngle=B,N.endAngle=Y,D+=w*U}})})}var E0=ae();var hB=(function(t){R(e,t);function e(r,i,a){var n=t.call(this)||this;n.z2=2;var o=new ke;return n.setTextContent(o),n.updateData(r,i,a,!0),n}return e.prototype.updateData=function(r,i,a,n){var o=this,s=r.hostModel,l=r.getItemModel(i),u=l.getModel("emphasis"),f=r.getItemLayout(i),c=k(Fo(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(n){o.setShape(c);var p=s.getShallow("animationType");s.ecModel.ssr?(Je(o,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):p==="scale"?(o.shape.r=f.r0,Je(o,{shape:{r:f.r}},s,i)):a!=null?(o.setShape({startAngle:a,endAngle:a}),Je(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,i)):(o.shape.endAngle=f.startAngle,He(o,{shape:{endAngle:f.endAngle}},s,i))}else ba(o),He(o,{shape:c},s,i);o.useStyle(r.getItemVisual(i,"style")),Ki(o,l);var h=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),v=Math.cos(h)*d,m=Math.sin(h)*d,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,r,i),o.ensureState("emphasis").shape=k({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Fo(u.getModel("itemStyle"),f)),k(o.ensureState("select"),{x:v,y:m,shape:Fo(l.getModel(["select","itemStyle"]),f)}),k(o.ensureState("blur"),{shape:Fo(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),x=o.getTextContent();y&&k(y.ensureState("select"),{x:v,y:m}),k(x.ensureState("select"),{x:v,y:m}),kr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r,i,a){var n=this,o=i.getItemModel(a),s=o.getModel("labelLine"),l=i.getItemVisual(a,"style"),u=l&&l.fill,f=l&&l.opacity;ei(n,ur(o),{labelFetcher:i.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:f,defaultText:r.getFormattedLabel(a,"normal")||i.getName(a)});var c=n.getTextContent();n.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var p=o.get(["label","position"]);if(p!=="outside"&&p!=="outer")n.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new mi,this.setTextGuideLine(h)),Jh(this,Qh(o),{stroke:u,opacity:Or(s.get(["lineStyle","opacity"]),f,1)})}},e})(vi),dB=(function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Ti,r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,i,a,n){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 p=E0(r),h=new vi({shape:ee(p)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(d){var v=new hB(o,d,u);o.setItemGraphicEl(d,v),l.add(v)}).update(function(d,v){var m=s.getItemGraphicEl(v);m.updateData(o,d,u),m.off("click"),l.add(m),o.setItemGraphicEl(d,m)}).remove(function(d){var v=s.getItemGraphicEl(d);fn(v,r,d)}).execute(),T0(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(r,i){var a=i.getData(),n=a.getItemLayout(0);if(n){var o=r[0]-n.cx,s=r[1]-n.cy,l=Math.sqrt(o*o+s*s);return l<=n.r&&l>=n.r0}},e.type=Ti,e})(mt),KM=dB;function A0(t){return{seriesType:t,reset:function(e,r){var i=e.getData();i.filterSelf(function(a){var n=i.mapDimension("value"),o=i.get(n,a);return!(me(o)&&!isNaN(o)&&o<0)})}}}function af(t){t.registerChartView(KM),t.registerSeriesModel(zM),e1(Ti,t.registerAction),t.registerLayout(GM),t.registerProcessor(tf(Ti)),t.registerProcessor(A0(Ti))}var vB=(function(t){R(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,i){return ji(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,i,a){return a.point(i.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:ne.color.primary}},universalTransition:{divideShape:"clone"}},e})(At),YM=vB;var WM=4,mB=(function(){function t(){}return t})(),gB=(function(t){R(e,t);function e(r){var i=t.call(this,r)||this;return i._off=0,i.hoverDataIdx=-1,i}return e.prototype.getDefaultShape=function(){return new mB},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,i){var a=i.points,n=i.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&n[0]<WM,f=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<a.length;){var p=a[c++],h=a[c++];isNaN(p)||isNaN(h)||f&&!f.contain(p,h)||(s.x=p-n[0]/2,s.y=h-n[1]/2,s.width=n[0],s.height=n[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},e.prototype.afterBrush=function(){var r=this.shape,i=r.points,a=r.size,n=this._ctx,o=this.softClipShape,s;if(n){for(s=this._off;s<i.length;){var l=i[s++],u=i[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||n.fillRect(l-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(r,i){for(var a=this.shape,n=a.points,o=a.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=n.length/2-1;u>=0;u--){var f=u*2,c=n[f]-s/2,p=n[f+1]-l/2;if(r>=c&&i>=p&&r<=c+s&&i<=p+l)return u}return-1},e.prototype.contain=function(r,i){var a=this.transformCoordToLocal(r,i),n=this.getBoundingRect();if(r=a[0],i=a[1],n.contain(r,i)){var o=this.hoverDataIdx=this.findDataIndex(r,i);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var i=this.shape,a=i.points,n=i.size,o=n[0],s=n[1],l=1/0,u=1/0,f=-1/0,c=-1/0,p=0;p<a.length;){var h=a[p++],d=a[p++];l=Math.min(h,l),f=Math.max(h,f),u=Math.min(d,u),c=Math.max(d,c)}r=this._rect=new ce(l-o/2,u-s/2,f-l+o,c-u+s)}return r},e})(he),yB=(function(){function t(){this.group=new Te}return t.prototype.updateData=function(e,r){this._clear(),this._data=e;var i=this._create();i.setShape({points:e.getLayout("points")}),this._setCommon(i,e,r)},t.prototype.updateLayout=function(e){var r=this._data;if(r){var i=r.getLayout("points");this.group.eachChild(function(a){if(a.startIndex!=null){var n=(a.endIndex-a.startIndex)*2,o=a.startIndex*4*2;i=new Float32Array(i.buffer,o,n)}a.setShape("points",i),a.reset(),a.stopAnimation()})}},t.prototype.incrementalPrepareUpdate=function(e){this._clear()},t.prototype.incrementalUpdate=function(e,r,i,a){var n=this._newAdded[0],o=r.getLayout("points"),s=n&&n.shape.points;if(s&&s.length<2e4){var l=s.length,u=new Float32Array(l+o.length);u.set(s),u.set(o,l),n.endIndex=e.end,n.setShape({points:u})}else{this._newAdded=[];var f=this._create();f.startIndex=e.start,f.endIndex=e.end,f.incremental=i,f.setShape({points:o}),this._setCommon(f,r,a)}},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new gB({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},t.prototype._setCommon=function(e,r,i){var a=r.hostModel;i=i||{};var n=r.getVisual("symbolSize");e.setShape("size",n instanceof Array?n:[n,n]),e.softClipShape=i.clipShape||null,e.symbolProxy=Nt(r.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<WM;e.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=_e(e);u.seriesIndex=a.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})(),$M=yB;var xB=(function(t){R(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,i,a){var n=r.getData(),o=this._updateSymbolDraw(n,r);o.updateData(n,M0(r)),this._finished=!0},e.prototype.incrementalPrepareRender=function(r,i,a){var n=r.getData(),o=this._updateSymbolDraw(n,r);o.incrementalPrepareUpdate(n),this._finished=!1},e.prototype.incrementalRender=function(r,i,a){this._symbolDraw.incrementalUpdate(r,i.getData(),ws(i),M0(i)),this._finished=r.end===i.getData().count()},e.prototype.updateTransform=function(r,i,a){var n=r.getData();if(this.group.dirty(),this._finished){var o=zo("").reset(r,i,a);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(M0(r))}else return{update:!0}},e.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},e.prototype._updateSymbolDraw=function(r,i){var a=this._symbolDraw,n=i.pipelineContext,o=n.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new $M:new sd,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(r,i){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e})(mt);function M0(t){return{clipShape:BA(t)}}var XM=xB;var gd=(function(t){R(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ht).models[0]},e.type="cartesian2dAxis",e})(Ne);Ut(gd,Bh);var qM={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:ne.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:ne.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:ne.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[ne.color.backgroundTint,ne.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:ne.color.neutral00,borderColor:ne.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},_B=Ce({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},qM),L0=Ce({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:ne.color.axisMinorSplitLine,width:1}}},qM),bB=Ce({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},L0),SB=le({logBase:10},L0),yd={category:_B,value:L0,time:bB,log:SB};function xd(t,e,r,i){E(Rh,function(a,n){var o=Ce(Ce({},yd[n],!0),i,!0),s=(function(l){R(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+n,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var p=hn(this),h=p?dn(f):{},d=c.getTheme();Ce(f,d.get(n+"Axis")),Ce(f,this.getDefaultOption()),f.type=ZM(f),p&&Vr(f,h,p)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Bu.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=Vo();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=e+"Axis."+n,u.defaultOption=o,u})(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",ZM)}function ZM(t){return t.type||(t.data?"category":"value")}var CB=(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 F(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})(),jM=CB;var nf=["x","y"];function JM(t){return(t.type==="interval"||t.type==="time")&&!mo(t)}var wB=(function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=ii,r.dimensions=nf,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!JM(r)||!JM(i))){var a=Oo(r,null),n=Oo(i,null),o=this.dataToPoint([a[0],n[0]]),s=this.dataToPoint([a[1],n[1]]),l=a[1]-a[0],u=n[1]-n[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,p=o[0]-a[0]*f,h=o[1]-n[0]*c,d=this._transform=[f,0,0,c,p,h];this._invTransform=Kr([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var i=this.getAxis("x"),a=this.getAxis("y");return i.contain(i.toLocalCoord(r[0]))&&a.contain(a.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,i){var a=this.dataToPoint(r),n=this.dataToPoint(i),o=this.getArea(),s=new ce(a[0],a[1],n[0]-a[0],n[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,i,a){a=a||[];var n=r[0],o=r[1];if(this._transform&&n!=null&&isFinite(n)&&o!=null&&isFinite(o))return Ft(a,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(n,i)),a[1]=l.toGlobalCoord(l.dataToCoord(o,i)),a},e.prototype.clampData=function(r,i){var a=this.getAxis("x").scale,n=this.getAxis("y").scale,o=a.getExtent(),s=n.getExtent(),l=a.parse(r[0]),u=n.parse(r[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},e.prototype.pointToData=function(r,i,a){if(a=a||[],this._invTransform)return Ft(a,r,this._invTransform);var n=this.getAxis("x"),o=this.getAxis("y");return a[0]=n.coordToData(n.toLocalCoord(r[0]),i),a[1]=o.coordToData(o.toLocalCoord(r[1]),i),a},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var i=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),n=Math.min(i[0],i[1])-r,o=Math.min(a[0],a[1])-r,s=Math.max(i[0],i[1])-n+r,l=Math.max(a[0],a[1])-o+r;return new ce(n,o,s,l)},e})(jM),QM=wB;function _d(t,e){var r=t.scale,i=t.model,a=Wh(r,i,i.ecModel,t,null),n=Ji(r),o=Ji(e)?e.intervalStub:e,s=n?r.intervalStub:r,l=r.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=u.length-1,p,h,d;if(c===1)p=h=0,d=1;else if(c===2){var v=et(u[0].value-u[1].value),m=et(u[1].value-u[2].value);p=h=0,v===m?d=2:(d=1,v<m?p=v/m:h=m/v)}else{var g=o.getConfig().interval;p=(1-(u[0].value-f[0].value)/g)%1,h=(1-(f[c].value-u[c].value)/g)%1,d=c-(p?1:0)-(h?1:0)}var y=a.zoomFixMM,x=y[0]||y[1],_=[a.fixMM[0]||x,a.fixMM[1]||x],b=r.getExtent(),S=s.getExtent(),w=Lh(S,_),A,C,T,M,O,L;function D(q){for(var Q=50,j=0;j<Q&&!q();j++)T=n?T*we(l,2):_E(T),M=bi(T)}function I(){A=De(L-T*p,M)}function P(){C=De(O+T*h,M)}function z(){L=p?De(A+T*p,M):A}function N(){O=h?De(C-T*h,M):C}if(_[0]&&_[1]){A=w[0],C=w[1],T=(C-A)/(d+p+h);var U=t.getExtent(),B=et(U[1]-U[0]);M=Kb([C,A],B,.5/d),z(),N(),yt(M)&&(T=De(T,M))}else{var Y=w[1]-w[0];T=n?we(Tc(Y),1):$n(Y/d,am),M=bi(T),_[0]?(A=w[0],D(function(){if(z(),O=De(L+T*d,M),P(),C>=w[1])return!0})):_[1]?(C=w[1],D(function(){if(N(),L=De(O-T*d,M),I(),A<=w[0])return!0})):D(function(){L=De(en(w[0]/T)*T,M),O=De(Pi(w[1]/T)*T,M);var q=Pr((O-L)/T);if(q<=d){var Q=d-q,j=void 0,fe=a.incl0||n;if(fe&&w[0]===0)j=[0,Q];else if(fe&&w[1]===0)j=[Q,0];else{var be=Pi(Q/2);j=Q%2===0?[be,be]:A+C<w[0]+w[1]?[be,be+1]:[be+1,be]}if(L=De(L-T*j[0],M),O=De(O+T*j[1],M),I(),P(),A<=w[0]&&C>=w[1])return!0}})}Vh(r,_,S,[A,C],b,{interval:T,intervalCount:d,intervalPrecision:M,niceExtent:[L,O]})}var eL=[[3,1],[0,2]],TB=(function(){function t(e,r,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=nf,this._initCartesian(e,r,i),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var i=this._axesMap;E(this._axesList,function(o){Yh(o,Kh);var s=o.scale;kt(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function a(o){for(var s=ie(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):Zy(f)}E(l,function(c){AB(c,c.__alignTo)?Zy(c):_d(c,c.__alignTo.scale)})}a(i.x),a(i.y);var n={};E(i.x,function(o){tL(i,"y",o,n)}),E(i.y,function(o){tL(i,"x",o,n)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,i){var a=_o(e,r),n=this._rect=qi(e.getBoxLayoutParams(),a.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(D0(o,n),!i){var u=LB(n,s,o,l,r),f=void 0;if(l)O0?(O0(this._axesList,n),D0(o,n)):f=nL(n.clone(),"axisLabel",null,n,o,u,a);else{var c=DB(e,n,a),p=c.outerBoundsRect,h=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;p&&(f=nL(p,h,d,n,o,u,a))}sL(n,o,Ar.determine,null,f,a),E(this._coordsList,function(v){v.calcAffineTransform()})}},t.prototype.getAxis=function(e,r){var i=this._axesMap[e];if(i!=null)return i[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var i="x"+e+"y"+r;return this._coordsMap[i]}$(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,n=this._coordsList;a<n.length;a++)if(n[a].getAxis("x").index===e||n[a].getAxis("y").index===r)return n[a]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,i){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.dataToPoint(i):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(i)):null},t.prototype.convertFromPixel=function(e,r,i){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.pointToData(i):a.axis?a.axis.coordToData(a.axis.toLocalCoord(i)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,i=e.xAxisModel||r&&r.getReferringComponents("xAxis",Ht).models[0],a=e.yAxisModel||r&&r.getReferringComponents("yAxis",Ht).models[0],n=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,pe(o,s)<0&&(s=null);else if(i&&a)s=this.getCartesian(i.componentIndex,a.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(n){var u=n.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,i){var a=this,n=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,E(s.x,function(f,c){E(s.y,function(p,h){var d="x"+c+"y"+h,v=new QM(d);v.master=a,v.model=e,a._coordsMap[d]=v,a._coordsList.push(v),v.addAxis(f),v.addAxis(p)})}),iL(s.x),iL(s.y);function u(f){return function(c,p){if(EB(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=RE(c),v=new jA(f,kE(c,d,!0),[0,0],d,h);v.onBand=Uh(v.scale,c),v.inverse=c.get("inverse"),c.axis=v,v.model=c,v.grid=n,v.index=p,n._axesList.push(v),s[f][p]=v,l[f]++}}}},t.prototype.getTooltipAxes=function(e){var r=[],i=[];return E(this.getCartesians(),function(a){var n=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),o=a.getOtherAxis(n);pe(r,n)<0&&r.push(n),pe(i,o)<0&&i.push(o)}),{baseAxes:r,otherAxes:i}},t.create=function(e,r){var i=[];return e.eachComponent("grid",function(a,n){var o=new t(a,e,r);o.name="grid_"+n,o.resize(a,r,!0),a.coordinateSystem=o,i.push(o),E(o._axesList,function(s){aA(s,t.dimIdxMap)})}),e.eachSeries(function(a){var n,o;Lw({targetModel:a,coordSysType:ii,coordSysProvider:s});function s(){var l=oM(a),u=l.xAxisModel,f=l.yAxisModel;n=u.axis,o=f.axis;var c=u.getCoordSysModel(),p=c.coordinateSystem;return p.getCartesian(u.componentIndex,f.componentIndex)}n&&o&&(Hu(n,a,ii),Hu(o,a,ii))},this),i},t.dimensions=nf,t.dimIdxMap=Nu(nf),t})();function EB(t,e){return t.getCoordSysModel()===e}function tL(t,e,r,i){r.getAxesOnZeroOf=function(){return n?[n]:[]};var a=t[e],n,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)rL(s,a[l])&&(n=a[l]);else for(var u in a)if(se(a,u)&&rL(s,a[u])&&!i[f(a[u])]){n=a[u];break}n&&(i[f(n)]=!0);function f(c){return c.dim+"_"+c.index}}function rL(t,e){if(!e)return!1;var r=e.scale,i=zE(r,0,!1),a=e&&e.type!=="category"&&e.type!=="time"&&i!==kh;return a&&t==="auto"&&UE(e)&&(a=!1),a}function iL(t){for(var e=ie(t),r,i=[],a=e.length-1;a>=0;a--){var n=t[+e[a]];Ah(n.scale)&&Ky(n.model,n.type,!0)==null&&(n.model.get("alignTicks")&&n.model.get("interval")==null?i.push(n):r=n)}r||(r=i.pop()),r&&E(i,function(o){o.__alignTo=r})}function AB(t,e){return mo(t.scale)||mo(e.scale)||e.scale.getTicks().length<2}function MB(t,e){var r=t.getExtent(),i=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(a){return a+e}:function(a){return i-a+e},t.toLocalCoord=t.dim==="x"?function(a){return a-e}:function(a){return i-a+e}}function D0(t,e){E(t.x,function(r){return aL(r,e.x,e.width)}),E(t.y,function(r){return aL(r,e.y,e.height)})}function aL(t,e,r){var i=[0,r],a=t.inverse?1:0;t.setExtent(i[a],i[1-a]),MB(t,e)}var O0;function oL(t){O0=t}function nL(t,e,r,i,a,n,o){sL(i,a,Ar.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(i,0,NaN),f(i,1,NaN);var l=is(s,function(p){return p>0})==null;return ks(i,s,!0,!0,r),D0(a,i),l;function u(p){E(a[Wi[p]],function(h){if(No(h.model)){var d=n.ensureRecord(h.model),v=d.labelInfoList;if(v)for(var m=0;m<v.length;m++){var g=v[m],y=h.scale.normalize(Da(h.scale,Tn(g.label).labelInfo.tick));y=p===1?1-y:y,f(g.rect,p,y),f(g.rect,1-p,NaN)}var x=d.nameLayout;if(x){var y=_n(d.nameLocation)?.5:NaN;f(x.rect,p,y),f(x.rect,1-p,NaN)}}})}function f(p,h,d){var v=t[Wi[h]]-p[Wi[h]],m=p[cn[h]]+p[Wi[h]]-(t[cn[h]]+t[Wi[h]]);v=c(v,1-d),m=c(m,d);var g=eL[h][0],y=eL[h][1];s[g]=we(s[g],v),s[y]=we(s[y],m)}function c(p,h){return p>0&&!Gr(h)&&h>1e-4&&(p/=h),p}}function LB(t,e,r,i,a){var n=new d0(OB);return E(r,function(o){return E(o,function(s){if(No(s.model)){var l=!i;s.axisBuilder=sM(t,e,s.model,a,n,l)}})}),n}function sL(t,e,r,i,a,n){var o=r===Ar.determine;E(e,function(u){return E(u,function(f){No(f.model)&&(lM(f.axisBuilder,t,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:a}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[Wi[1-u]]=t[cn[u]]<=n.refContainer[cn[u]]*.5?0:1-u===1?2:1}E(e,function(u,f){return E(u,function(c){No(c.model)&&((i==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function DB(t,e,r){var i,a=t.get("outerBoundsMode",!0);a==="same"?i=e.clone():(a==null||a==="auto")&&(i=qi(t.get("outerBounds",!0)||y0,r.refContainer));var n=t.get("outerBoundsContain",!0),o;n==null||n==="auto"||pe(["all","axisLabel"],n)<0?o="all":o=n;var s=[wc(X(t.get("outerBoundsClampWidth",!0),ef[0]),e.width),wc(X(t.get("outerBoundsClampHeight",!0),ef[1]),e.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var OB=function(t,e,r,i,a,n){var o=r.axis.dim==="x"?"y":"x";v0(t,e,r,i,a,n),_n(t.nameLocation)||E(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&m0(s.labelInfoList,s.dirVec,i,a)})},lL=TB;function uL(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return IB(r,t,e),r.seriesInvolved&&NB(r,t),r}function IB(t,e,r){var i=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),n=a.get("link",!0)||[],o=[];E(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=gl(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",i);if(E(s.getAxes(),ut(v,!1,null)),s.getTooltipAxes&&i&&c.get("show")){var p=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(p||h)&&E(d.baseAxes,ut(v,h?"cross":!0,p)),h&&E(d.otherAxes,ut(v,"cross",!1))}function v(m,g,y){var x=y.model.getModel("axisPointer",a),_=x.get("show");if(!(!_||_==="auto"&&!m&&!P0(x))){g==null&&(g=x.get("triggerTooltip")),x=m?PB(y,c,a,e,m,g):x;var b=x.get("snap"),S=x.get("triggerEmphasis"),w=gl(y.model),A=g||b||y.type==="category",C=t.axesInfo[w]={key:w,axis:y,coordSys:s,axisPointerModel:x,triggerTooltip:g,triggerEmphasis:S,involveSeries:A,snap:b,useHandle:P0(x),seriesModels:[],linkGroup:null};u[w]=C,t.seriesInvolved=t.seriesInvolved||A;var T=RB(n,y);if(T!=null){var M=o[T]||(o[T]={axesInfo:{}});M.axesInfo[w]=C,M.mapper=n[T].mapper,C.linkGroup=M}}}})}function PB(t,e,r,i,a,n){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};E(s,function(p){l[p]=ee(o.get(p))}),l.snap=t.type!=="category"&&!!n,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!n){var c=l.lineStyle=o.get("crossStyle");c&&le(u,c.textStyle)}}return t.model.getModel("axisPointer",new je(l,r,i))}function NB(t,e){e.eachSeries(function(r){var i=r.coordinateSystem,a=r.get(["tooltip","trigger"],!0),n=r.get(["tooltip","show"],!0);!i||!i.model||a==="none"||a===!1||a==="item"||n===!1||r.get(["axisPointer","show"],!0)===!1||E(t.coordSysAxesInfo[gl(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function RB(t,e){for(var r=e.model,i=e.dim,a=0;a<t.length;a++){var n=t[a]||{};if(I0(n[i+"AxisId"],r.id)||I0(n[i+"AxisIndex"],r.componentIndex)||I0(n[i+"AxisName"],r.name))return a}}function I0(t,e){return t==="all"||V(t)&&pe(t,e)>=0||t===e}function fL(t){var e=bd(t);if(e){var r=e.axisPointerModel,i=e.axis.scale,a=r.option,n=r.get("status"),o=r.get("value");o!=null&&(o=i.parse(o));var s=P0(r);n==null&&(a.status=s?"show":"hide");var l=i.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}function bd(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[gl(t)]}function cL(t){var e=bd(t);return e&&e.axisPointerModel}function P0(t){return!!t.get(["handle","show"])}function gl(t){return t.type+"||"+t.id}var pL={},kB=(function(t){R(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,i,a,n){this.axisPointerClass&&fL(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,a,!0)},e.prototype.updateAxisPointer=function(r,i,a,n){this._doUpdateAxisPointerClass(r,a,!1)},e.prototype.remove=function(r,i){var a=this._axisPointer;a&&a.remove(i)},e.prototype.dispose=function(r,i){this._disposeAxisPointer(i),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,i,a){var n=e.getAxisPointerClass(this.axisPointerClass);if(n){var o=cL(r);o?(this._axisPointer||(this._axisPointer=new n)).render(r,o,i,a):this._disposeAxisPointer(i)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,i){pL[r]=i},e.getAxisPointerClass=function(r){return r&&pL[r]},e.type="axis",e})(Mt),Sd=kB;var R0=ae();function hL(t,e,r,i){var a=r.axis;if(!a.scale.isBlank()){var n=r.getModel("splitArea"),o=n.getModel("areaStyle"),s=o.get("color"),l=i.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:n,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=R0(t).splitAreaColors,p=te(),h=0;if(c)for(var d=0;d<u.length;d++){var v=c.get(u[d].tickValue);if(v!=null){h=(v+(f-1)*d)%f;break}}var m=a.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=V(s)?s:[s];for(var d=1;d<u.length;d++){var y=a.toGlobalCoord(u[d].coord),x=void 0,_=void 0,b=void 0,S=void 0;a.isHorizontal()?(x=m,_=l.y,b=y-x,S=l.height,m=x+b):(x=l.x,_=m,b=l.width,S=y-_,m=_+S);var w=u[d-1].tickValue;w!=null&&p.set(w,h),e.add(new Pe({anid:w!=null?"area_"+w:null,shape:{x,y:_,width:b,height:S},style:le({fill:s[h]},g),autoBatch:!0,silent:!0})),h=(h+1)%f}R0(t).splitAreaColors=p}}}function dL(t){R0(t).splitAreaColors=null}var zB=["splitArea","splitLine","minorSplitLine","breakArea"],vL=(function(t){R(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,i,a,n){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Te,this.group.add(this._axisGroup),!!No(r)){this._axisGroup.add(r.axis.axisBuilder.group),E(zB,function(l){r.get([l,"show"])&&VB[l](this,this._axisGroup,r,r.getCoordSysModel(),a)},this);var s=n&&n.type==="changeAxisOrder"&&n.isInitSort;s||hg(o,this._axisGroup,r),t.prototype.render.call(this,r,i,a,n)}},e.prototype.remove=function(){dL(this)},e.type="cartesianAxis",e})(Sd),VB={splitLine:function(t,e,r,i,a){var n=r.axis;if(!n.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=V(l)?l:[l];for(var c=i.coordinateSystem.getRect(),p=n.isHorizontal(),h=0,d=n.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),v=[],m=[],g=s.getLineStyle(),y=0;y<d.length;y++){var x=n.toGlobalCoord(d[y].coord);if(!(y===0&&!u||y===d.length-1&&!f)){var _=d[y].tickValue;p?(v[0]=x,v[1]=c.y,m[0]=x,m[1]=c.y+c.height):(v[0]=c.x,v[1]=x,m[0]=c.x+c.width,m[1]=x);var b=h++%l.length,S=new gi({anid:_!=null?"line_"+_:null,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:m[0],y2:m[1]},style:le({stroke:l[b]},g),silent:!0});co(S.shape,g.lineWidth),e.add(S)}}}},minorSplitLine:function(t,e,r,i,a){var n=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=i.coordinateSystem.getRect(),u=n.isHorizontal(),f=n.getMinorTicksCoords();if(f.length)for(var c=[],p=[],h=s.getLineStyle(),d=0;d<f.length;d++)for(var v=0;v<f[d].length;v++){var m=n.toGlobalCoord(f[d][v].coord);u?(c[0]=m,c[1]=l.y,p[0]=m,p[1]=l.y+l.height):(c[0]=l.x,c[1]=m,p[0]=l.x+l.width,p[1]=m);var g=new gi({anid:"minor_line_"+f[d][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]},style:h,silent:!0});co(g.shape,h.lineWidth),e.add(g)}},splitArea:function(t,e,r,i,a){hL(t,e,r,i)},breakArea:function(t,e,r,i,a){var n=Vo(),o=r.axis.scale;n&&o.type!=="ordinal"&&n.rectCoordBuildBreakAxis(e,t,r,i.coordinateSystem.getRect(),a)}},k0=(function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e})(vL);var mL=(function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=k0.type,r}return e.type="yAxis",e})(vL);var UB=(function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,i){this.group.removeAll(),r.get("show")&&this.group.add(new Pe({shape:r.coordinateSystem.getRect(),style:le({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(Mt),gL={offset:0};function Cd(t){t.registerComponentView(UB),t.registerComponentModel(dM),t.registerCoordinateSystem("cartesian2d",lL),xd(t,"x",gd,gL),xd(t,"y",gd,gL),t.registerComponentView(k0),t.registerComponentView(mL),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function z0(t){Ye(Cd),t.registerSeriesModel(YM),t.registerChartView(XM),t.registerLayout(zo("scatter"))}function V0(t){var e=t.polar;if(e){V(e)||(e=[e]);var r=[];E(e,function(i,a){i.indicator?(i.type&&!i.shape&&(i.shape=i.type),t.radar=t.radar||[],V(t.radar)||(t.radar=[t.radar]),t.radar.push(i)):r.push(i)}),t.polar=r}E(t.series,function(i){i&&i.type==="radar"&&i.polarIndex&&(i.radarIndex=i.polarIndex)})}var Ho="radar",BB=(function(t){R(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 vd(oe(this.getData,this),oe(this.getRawData,this))},e.prototype.getInitialData=function(r,i){return rf(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(r,i,a){var n=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(r),u=l===""?this.name:l,f=Zp(this,r);return Zi("section",{header:u,sortBlocks:!0,blocks:F(s,function(c){var p=n.get(n.mapDimension(c.dim),r);return Zi("nameValue",{markerType:"subItem",markerColor:f,name:c.name,value:p,sortParam:p})})})},e.prototype.getTooltipPosition=function(r){if(r!=null){for(var i=this.getData(),a=this.coordinateSystem,n=i.getValues(F(a.dimensions,function(u){return i.mapDimension(u)}),r),o=0,s=n.length;o<s;o++)if(!isNaN(n[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(n[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})(At),yL=BB;var FB=(function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Ho,r}return e.prototype.render=function(r,i,a){var n=r.coordinateSystem,o=this.group,s=r.getData(),l=this._data;function u(p,h){var d=p.getItemVisual(h,"symbol")||"circle";if(d!=="none"){var v=lh(p.getItemVisual(h,"symbolSize")),m=Nt(d,-1,-1,2,2),g=p.getItemVisual(h,"symbolRotate")||0;return m.attr({style:{strokeNoScale:!0},z2:100,scaleX:v[0]/2,scaleY:v[1]/2,rotation:g*Math.PI/180||0}),m}}function f(p,h,d,v,m,g){d.removeAll();for(var y=0;y<h.length-1;y++){var x=u(v,m);x&&(x.__dimIdx=y,p[y]?(x.setPosition(p[y]),ot[g?"initProps":"updateProps"](x,{x:h[y][0],y:h[y][1]},r,m)):x.setPosition(h[y]),d.add(x))}}function c(p){return F(p,function(h){return[n.cx,n.cy]})}s.diff(l).add(function(p){var h=s.getItemLayout(p);if(h){var d=new xa,v=new mi,m={shape:{points:h}};d.shape.points=c(h),v.shape.points=c(h),Je(d,m,r,p),Je(v,m,r,p);var g=new Te,y=new Te;g.add(v),g.add(d),g.add(y),f(v.shape.points,h,y,s,p,!0),s.setItemGraphicEl(p,g)}}).update(function(p,h){var d=l.getItemGraphicEl(h),v=d.childAt(0),m=d.childAt(1),g=d.childAt(2),y={shape:{points:s.getItemLayout(p)}};y.shape.points&&(f(v.shape.points,y.shape.points,g,s,p,!1),ba(m),ba(v),He(v,y,r),He(m,y,r),s.setItemGraphicEl(p,d))}).remove(function(p){o.remove(l.getItemGraphicEl(p))}).execute(),s.eachItemGraphicEl(function(p,h){var d=s.getItemModel(h),v=p.childAt(0),m=p.childAt(1),g=p.childAt(2),y=s.getItemVisual(h,"style"),x=y.fill;o.add(p),v.useStyle(le(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:x})),Ki(v,d,"lineStyle"),Ki(m,d,"areaStyle");var _=d.getModel("areaStyle"),b=_.isEmpty()&&_.parentModel.isEmpty();m.ignore=b,E(["emphasis","select","blur"],function(w){var A=d.getModel([w,"areaStyle"]),C=A.isEmpty()&&A.parentModel.isEmpty();m.ensureState(w).ignore=C&&b;var T=d.getModel([w,"lineStyle"]).getLineStyle();v.ensureState(w).style=T;var M=A.getAreaStyle();m.ensureState(w).style=M;var O=d.getModel([w,"itemStyle"]).getItemStyle();g.eachChild(function(L){L.ensureState(w).style=ee(O)})}),m.useStyle(le(d.getModel("areaStyle").getAreaStyle(),{fill:x,opacity:.7,decal:y.decal}));var S=d.getModel("emphasis");g.eachChild(function(w){if(w instanceof it){var A=w.style;w.useStyle(k({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},y))}else w.useStyle(y),w.setColor(x),w.style.strokeNoScale=!0;var C=s.getStore().get(s.getDimensionIndex(w.__dimIdx),h);(C==null||isNaN(C))&&(C=""),ei(w,ur(d),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:w.__dimIdx,defaultText:C,inheritColor:x,defaultOpacity:y.opacity})}),kr(p,S.get("focus"),S.get("blurScope"),S.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type=Ho,e})(mt),xL=FB;var of=yd.value,yl="radar",U0=yl,_L=yl,B0=5;function wd(t,e){return le({show:e},t)}var HB=(function(t){R(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"),i=this.get("splitNumber"),a=this.get("clockwise"),n=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"]),p=this.get("axisNameGap"),h=this.get("triggerEvent"),d=F(this.get("indicator")||[],function(v){v.max!=null&&v.max>0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var m=u;v.color!=null&&(m=le({color:v.color},u));var g=Ce(ee(v),{boundaryGap:r,splitNumber:i,clockwise:a,scale:n,axisLine:o,axisTick:s,axisLabel:l,name:v.text,showName:f,nameLocation:"end",nameGap:p,nameTextStyle:m,triggerEvent:h},!1);if(G(c)){var y=g.name;g.name=c.replace("{value}",y??"")}else Z(c)&&(g.name=c(g.name,g));var x=new je(g,null,this.ecModel);return Ut(x,Bh.prototype),x.mainType="radar",x.componentIndex=this.componentIndex,x.uid=$i("ec_radar"),x},this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type=U0,e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:ne.color.axisLabel},boundaryGap:[0,0],splitNumber:B0,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Ce({lineStyle:{color:ne.color.neutral20}},of.axisLine),axisLabel:wd(of.axisLabel,!1),axisTick:wd(of.axisTick,!1),splitLine:wd(of.splitLine,!0),splitArea:wd(of.splitArea,!0),indicator:[]},e})(Ne),bL=HB;var GB=(function(t){R(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,i,a){var n=this.group;n.removeAll(),this._buildAxes(r,a),this._buildSplitLineAndArea(r)},e.prototype._buildAxes=function(r,i){var a=r.coordinateSystem,n=a.getIndicatorAxes(),o=F(n,function(s){var l=s.model.get("showName")?s.name:"",u=new ml(s.model,i,{axisName:l,position:[a.cx,a.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});E(o,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(r){var i=r.coordinateSystem,a=i.getIndicatorAxes();if(!a.length)return;var n=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"),p=l.get("color"),h=u.get("color"),d=V(p)?p:[p],v=V(h)?h:[h],m=[],g=[];function y(I,P,z){var N=z%P.length;return I[N]=I[N]||[],N}if(n==="circle")for(var x=a[0].getTicksCoords(),_=i.cx,b=i.cy,S=0;S<x.length;S++){if(f){var w=y(m,d,S);m[w].push(new oo({shape:{cx:_,cy:b,r:x[S].coord}}))}if(c&&S<x.length-1){var w=y(g,v,S);g[w].push(new pu({shape:{cx:_,cy:b,r0:x[S].coord,r:x[S+1].coord}}))}}else for(var A,C=F(a,function(I,P){var z=I.getTicksCoords();return A=A==null?z.length-1:Math.min(z.length-1,A),F(z,function(N){return i.coordToPoint(N.coord,P)})}),T=[],S=0;S<=A;S++){for(var M=[],O=0;O<a.length;O++)M.push(C[O][S]);if(M[0]&&M.push(M[0].slice()),f){var w=y(m,d,S);m[w].push(new mi({shape:{points:M}}))}if(c&&T){var w=y(g,v,S-1);g[w].push(new xa({shape:{points:M.concat(T)}}))}T=M.slice().reverse()}var L=l.getLineStyle(),D=u.getAreaStyle();E(g,function(I,P){this.group.add(up(I,{style:le({stroke:"none",fill:v[P%v.length]},D),silent:!0}))},this),E(m,function(I,P){this.group.add(up(I,{style:le({fill:"none",stroke:d[P%d.length]},L),silent:!0}))},this)},e.type="radar",e})(Mt),SL=GB;var KB=(function(t){R(e,t);function e(r,i,a){var n=t.call(this,r,i,a)||this;return n.type="value",n.angle=0,n.name="",n}return e})(qh),CL=KB;var YB=(function(){function t(e,r,i){this.type=yl,this.dimensions=[],this._model=e,this._indicatorAxes=F(e.getIndicatorModels(),function(a,n){var o="indicator_"+n,s=new CL(o,new Qi);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(e,i)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(e,r){var i=this._indicatorAxes[r];return this.coordToPoint(i.dataToCoord(e),r)},t.prototype.coordToPoint=function(e,r){var i=this._indicatorAxes[r],a=i.angle,n=this.cx+e*Math.cos(a),o=this.cy-e*Math.sin(a);return[n,o]},t.prototype.pointToData=function(e){var r=e[0]-this.cx,i=e[1]-this.cy,a=Math.sqrt(r*r+i*i);r/=a,i/=a;for(var n=Math.atan2(-i,r),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],c=Math.abs(n-f.angle);c<o&&(s=f,l=u,o=c)}return[l,+(s&&s.coordToData(a))]},t.prototype.resize=function(e,r){var i=_o(e,r).refContainer,a=e.get("center"),n=e.get("clockwise")||!1,o=Math.min(i.width,i.height)/2;this.cx=Ae(a[0],i.width)+i.x,this.cy=Ae(a[1],i.height)+i.y,this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(G(s)||me(s))&&(s=[0,s]),this.r0=Ae(s[0],o),this.r=Ae(s[1],o);var l=n?-1:1;E(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 i=this._indicatorAxes,a=this._model,n=Io(a.get("splitNumber"),B0),o=new Qi;o.setExtent(0,n),o.setConfig({interval:1}),E(i,function(s){Yh(s,Kh),_d(s,o)})},t.prototype.convertToPixel=function(e,r,i){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(e,r,i){return console.warn("Not implemented."),null},t.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},t.create=function(e,r){var i=[];return e.eachComponent(U0,function(a){var n=new t(a,e,r);i.push(n),a.coordinateSystem=n}),e.eachSeriesByType(_L,function(a){if(a.get("coordinateSystem")===yl){var n=a.coordinateSystem=i[a.get("radarIndex")||0];n&&E(n.getIndicatorAxes(),function(o){Hu(o,a,yl)})}}),i},t.dimensions=[],t})(),wL=YB;function sf(t){t.registerCoordinateSystem("radar",wL),t.registerComponentModel(bL),t.registerComponentView(SL),t.registerVisual({seriesType:"radar",reset:function(e){var r=e.getData();r.each(function(i){r.setItemVisual(i,"legendIcon","roundRect")}),r.setVisual("legendIcon","roundRect")}})}var AL=Pc(Ho,WB);function WB(t){t.eachSeriesByType(Ho,function(e){var r=e.getData(),i=[],a=e.coordinateSystem;if(a){var n=a.getIndicatorAxes();E(n,function(o,s){r.each(r.mapDimension(n[s].dim),function(l,u){i[u]=i[u]||[];var f=a.dataToPoint(l,s);i[u][s]=TL(f)?f:EL(a)})}),r.each(function(o){var s=is(i[o],function(l){return TL(l)})||EL(a);i[o].push(s.slice()),r.setItemLayout(o,i[o])})}})}function TL(t){return!isNaN(t[0])&&!isNaN(t[1])}function EL(t){return[t.cx,t.cy]}function F0(t){Ye(sf),t.registerChartView(xL),t.registerSeriesModel(yL),t.registerLayout(AL),t.registerProcessor(tf("radar")),t.registerPreprocessor(V0)}var ff=E,$B=$,Ad=-1,Y0=(function(){function t(e){var r=e.mappingMethod,i=e.type,a=this.option=ee(e);this.type=i,this.mappingMethod=r,this._normalizeData=ZB[r];var n=t.visualHandlers[i];this.applyVisual=n.applyVisual,this.getColorMapper=n.getColorMapper,this._normalizedToVisual=n._normalizedToVisual[r],r==="piecewise"?(H0(a),XB(a)):r==="category"?a.categories?qB(a):H0(a,!0):(qe(r!=="linear"||a.dataExtent),H0(a))}return t.prototype.mapValueToVisual=function(e){var r=this._normalizeData(e);return this._normalizedToVisual(r,e)},t.prototype.getNormalizer=function(){return oe(this._normalizeData,this)},t.listVisualTypes=function(){return ie(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(e,r,i){$(e)?E(e,r,i):r.call(i,e)},t.mapVisual=function(e,r,i){var a,n=V(e)?[]:$(e)?{}:(a=!0,null);return t.eachVisual(e,function(o,s){var l=r.call(i,o,s);a?n=l:n[s]=l}),n},t.retrieveVisuals=function(e){var r={},i;return e&&ff(t.visualHandlers,function(a,n){e.hasOwnProperty(n)&&(r[n]=e[n],i=!0)}),i?r:null},t.prepareVisualTypes=function(e){if(V(e))e=e.slice();else if($B(e)){var r=[];ff(e,function(i,a){r.push(a)}),e=r}else return[];return e.sort(function(i,a){return a==="color"&&i!=="color"&&i.indexOf("color")===0?1:-1}),e},t.dependsOn=function(e,r){return r==="color"?!!(e&&e.indexOf(r)===0):e===r},t.findPieceIndex=function(e,r,i){for(var a,n=1/0,o=0,s=r.length;o<s;o++){var l=r[o].value;if(l!=null){if(l===e||G(l)&&l===e+"")return o;i&&p(l,o)}}for(var o=0,s=r.length;o<s;o++){var u=r[o],f=u.interval,c=u.close;if(f){if(f[0]===-1/0){if(Ed(c[1],e,f[1]))return o}else if(f[1]===1/0){if(Ed(c[0],f[0],e))return o}else if(Ed(c[0],f[0],e)&&Ed(c[1],e,f[1]))return o;i&&p(f[0],o),i&&p(f[1],o)}}if(i)return e===1/0?r.length-1:e===-1/0?0:a;function p(h,d){var v=Math.abs(h-e);v<n&&(n=v,a=d)}},t.visualHandlers={color:{applyVisual:lf("color"),getColorMapper:function(){var e=this.option;return oe(e.mappingMethod==="category"?function(r,i){return!i&&(r=this._normalizeData(r)),uf.call(this,r)}:function(r,i,a){var n=!!a;return!i&&(r=this._normalizeData(r)),a=ic(r,e.parsedVisual,a),n?a:Oi(a,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Oi(ic(e,this.option.parsedVisual),"rgba")},category:uf,piecewise:function(e,r){var i=K0.call(this,r);return i==null&&(i=Oi(ic(e,this.option.parsedVisual),"rgba")),i},fixed:Go}},colorHue:Td(function(e,r){return fa(e,r)}),colorSaturation:Td(function(e,r){return fa(e,null,r)}),colorLightness:Td(function(e,r){return fa(e,null,null,r)}),colorAlpha:Td(function(e,r){return ob(e,r)}),decal:{applyVisual:lf("decal"),_normalizedToVisual:{linear:null,category:uf,piecewise:null,fixed:null}},opacity:{applyVisual:lf("opacity"),_normalizedToVisual:G0([0,1])},liftZ:{applyVisual:lf("liftZ"),_normalizedToVisual:{linear:Go,category:Go,piecewise:Go,fixed:Go}},symbol:{applyVisual:function(e,r,i){var a=this.mapValueToVisual(e);i("symbol",a)},_normalizedToVisual:{linear:ML,category:uf,piecewise:function(e,r){var i=K0.call(this,r);return i==null&&(i=ML.call(this,e)),i},fixed:Go}},symbolSize:{applyVisual:lf("symbolSize"),_normalizedToVisual:G0([0,1])}},t})();function XB(t){var e=t.pieceList;t.hasSpecialVisual=!1,E(e,function(r,i){r.originIndex=i,r.visual!=null&&(t.hasSpecialVisual=!0)})}function qB(t){var e=t.categories,r=t.categoryMap={},i=t.visual;if(ff(e,function(o,s){r[o]=s}),!V(i)){var a=[];$(i)?ff(i,function(o,s){var l=r[s];a[l??Ad]=o}):a[Ad]=i,i=LL(t,a)}for(var n=e.length-1;n>=0;n--)i[n]==null&&(delete r[e[n]],e.pop())}function H0(t,e){var r=t.visual,i=[];$(r)?ff(r,function(n){i.push(n)}):r!=null&&i.push(r);var a={color:1,symbol:1};!e&&i.length===1&&!a.hasOwnProperty(t.type)&&(i[1]=i[0]),LL(t,i)}function Td(t){return{applyVisual:function(e,r,i){var a=this.mapValueToVisual(e);i("color",t(r("color"),a))},_normalizedToVisual:G0([0,1])}}function ML(t){var e=this.option.visual;return e[Math.round(or(t,[0,1],[0,e.length-1],!0))]||{}}function lf(t){return function(e,r,i){i(t,this.mapValueToVisual(e))}}function uf(t){var e=this.option.visual;return e[this.option.loop&&t!==Ad?t%e.length:t]}function Go(){return this.option.visual[0]}function G0(t){return{linear:function(e){return or(e,t,this.option.visual,!0)},category:uf,piecewise:function(e,r){var i=K0.call(this,r);return i==null&&(i=or(e,t,this.option.visual,!0)),i},fixed:Go}}function K0(t){var e=this.option,r=e.pieceList;if(e.hasSpecialVisual){var i=Y0.findPieceIndex(t,r),a=r[i];if(a&&a.visual)return a.visual[this.type]}}function LL(t,e){return t.visual=e,t.type==="color"&&(t.parsedVisual=F(e,function(r){var i=$t(r);return i||[0,0,0,1]})),e}var ZB={linear:function(t){return or(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,r=Y0.findPieceIndex(t,e,!0);if(r!=null)return or(r,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return e??Ad},fixed:Ze};function Ed(t,e,r){return t?e<=r:e<r}var Lt=Y0;function $0(t,e,r,i,a,n){t=t||0;var o=ha(r[1],-r[0]);if(a!=null&&(a=xl(a,[0,o])),n!=null&&(n=Math.max(n,a??0)),i==="all"){var s=Math.abs(ha(e[1],-e[0]));s=xl(s,[0,o]),a=n=xl(s,[a,n]),i=0}e[0]=xl(e[0],r),e[1]=xl(e[1],r);var l=W0(e,i);e[i]+=t;var u=a||0,f=r.slice();l.sign<0?f[0]=ha(f[0],u):f[1]=ha(f[1],-u),e[i]=xl(e[i],f);var c;return c=W0(e,i),a!=null&&(c.sign!==l.sign||c.span<a)&&(e[1-i]=ha(e[i],l.sign*a)),c=W0(e,i),n!=null&&c.span>n&&(e[1-i]=ha(e[i],c.sign*n)),e}function W0(t,e){var r=t[e]-t[1-e];return{span:Math.abs(r),sign:r>0?-1:r<0?1:e?-1:1}}function xl(t,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,t))}var jB=256,JB=(function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=St.createCanvas();this.canvas=e}return t.prototype.update=function(e,r,i,a,n,o){var s=this._getBrush(),l=this._getGradient(n,"inRange"),u=this._getGradient(n,"outOfRange"),f=this.pointSize+this.blurSize,c=this.canvas,p=c.getContext("2d"),h=e.length;c.width=r,c.height=i;for(var d=0;d<h;++d){var v=e[d],m=v[0],g=v[1],y=v[2],x=a(y);p.globalAlpha=x,p.drawImage(s,m-f,g-f)}if(!c.width||!c.height)return c;for(var _=p.getImageData(0,0,c.width,c.height),b=_.data,S=0,w=b.length,A=this.minOpacity,C=this.maxOpacity,T=C-A;S<w;){var x=b[S+3]/256,M=Math.floor(x*(jB-1))*4;if(x>0){var O=o(x)?l:u;x>0&&(x=x*T+A),b[S++]=O[M],b[S++]=O[M+1],b[S++]=O[M+2],b[S++]=O[M+3]*x*256}else S+=4}return p.putImageData(_,0,0),c},t.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=St.createCanvas()),r=this.pointSize+this.blurSize,i=r*2;e.width=i,e.height=i;var a=e.getContext("2d");return a.clearRect(0,0,i,i),a.shadowOffsetX=i,a.shadowBlur=this.blurSize,a.shadowColor=ne.color.neutral99,a.beginPath(),a.arc(-r,r,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},t.prototype._getGradient=function(e,r){for(var i=this._gradientPixels,a=i[r]||(i[r]=new Uint8ClampedArray(256*4)),n=[0,0,0,0],o=0,s=0;s<256;s++)e[r](s/255,!0,n),a[o++]=n[0],a[o++]=n[1],a[o++]=n[2],a[o++]=n[3];return a},t})(),DL=JB;function QB(t,e,r){var i=t[1]-t[0];e=F(e,function(o){return{interval:[(o.interval[0]-t[0])/i,(o.interval[1]-t[0])/i]}});var a=e.length,n=0;return function(o){var s;for(s=n;s<a;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){n=s;break}}if(s===a)for(s=n-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){n=s;break}}return s>=0&&s<a&&r[s]}}function eF(t,e){var r=t[1]-t[0];return e=[(e[0]-t[0])/r,(e[1]-t[0])/r],function(i){return i>=e[0]&&i<=e[1]}}var tF=(function(t){R(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,i,a){var n;i.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===r&&(n=s)})}),this._progressiveEls=null,this.group.removeAll();var o=r.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(r,a,0,r.getData().count()):f0(o)&&this._renderOnGeo(o,r,n,a)},e.prototype.incrementalPrepareRender=function(r,i,a){this.group.removeAll()},e.prototype.incrementalRender=function(r,i,a,n){var o=i.coordinateSystem;o&&(f0(o)?this.render(i,a,n):(this._progressiveEls=[],this._renderOnGridLike(i,n,r.start,r.end,!0)))},e.prototype.eachRendered=function(r){Sa(this._progressiveEls||this.group,r)},e.prototype._renderOnGridLike=function(r,i,a,n,o){var s=r.coordinateSystem,l=ko(s,"cartesian2d"),u=ko(s,"matrix"),f,c,p,h;if(l){var d=s.getAxis("x"),v=s.getAxis("y");f=Mr(d).w+.5,c=Mr(v).w+.5,p=d.scale.getExtent(),h=v.scale.getExtent()}for(var m=this.group,g=r.getData(),y=r.getModel(["emphasis","itemStyle"]).getItemStyle(),x=r.getModel(["blur","itemStyle"]).getItemStyle(),_=r.getModel(["select","itemStyle"]).getItemStyle(),b=r.get(["itemStyle","borderRadius"]),S=ur(r),w=r.getModel("emphasis"),A=w.get("focus"),C=w.get("blurScope"),T=w.get("disabled"),M=l||u?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],O=a;O<n;O++){var L=void 0,D=g.getItemVisual(O,"style");if(l){var I=g.get(M[0],O),P=g.get(M[1],O);if(isNaN(g.get(M[2],O))||isNaN(I)||isNaN(P)||I<p[0]||I>p[1]||P<h[0]||P>h[1])continue;var z=s.dataToPoint([I,P]);L=new Pe({shape:{x:z[0]-f/2,y:z[1]-c/2,width:f,height:c},style:D})}else if(u){var N=s.dataToLayout([g.get(M[0],O),g.get(M[1],O)]).rect;if(Gr(N.x))continue;L=new Pe({z2:1,shape:N,style:D})}else{if(isNaN(g.get(M[1],O)))continue;var U=s.dataToLayout([g.get(M[0],O)]),N=U.contentRect||U.rect;if(Gr(N.x)||Gr(N.y))continue;L=new Pe({z2:1,shape:N,style:D})}if(g.hasItemOption){var B=g.getItemModel(O),Y=B.getModel("emphasis");y=Y.getModel("itemStyle").getItemStyle(),x=B.getModel(["blur","itemStyle"]).getItemStyle(),_=B.getModel(["select","itemStyle"]).getItemStyle(),b=B.get(["itemStyle","borderRadius"]),A=Y.get("focus"),C=Y.get("blurScope"),T=Y.get("disabled"),S=ur(B)}L.shape.r=b;var q=r.getRawValue(O),Q="-";q&&q[2]!=null&&(Q=q[2]+""),ei(L,S,{labelFetcher:r,labelDataIndex:O,defaultOpacity:D.opacity,defaultText:Q}),L.ensureState("emphasis").style=y,L.ensureState("blur").style=x,L.ensureState("select").style=_,kr(L,A,C,T),L.incremental=ws(r,o),o&&(L.states.emphasis.hoverLayer=fo),m.add(L),g.setItemGraphicEl(O,L),this._progressiveEls&&this._progressiveEls.push(L)}},e.prototype._renderOnGeo=function(r,i,a,n){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=i.getData(),u=this._hmLayer||this._hmLayer||new DL;u.blurSize=i.get("blurSize"),u.pointSize=i.get("pointSize"),u.minOpacity=i.get("minOpacity"),u.maxOpacity=i.get("maxOpacity");var f=r.getViewRect().clone(),c=r.getRoamTransform();f.applyTransform(c);var p=Math.max(f.x,0),h=Math.max(f.y,0),d=Math.min(f.width+f.x,n.getWidth()),v=Math.min(f.height+f.y,n.getHeight()),m=d-p,g=v-h,y=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],x=l.mapArray(y,function(w,A,C){var T=r.dataToPoint([w,A]);return T[0]-=p,T[1]-=h,T.push(C),T}),_=a.getExtent(),b=a.type==="visualMap.continuous"?eF(_,a.option.range):QB(_,a.getPieceList(),a.option.selected);u.update(x,m,g,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var S=new it({style:{width:m,height:g,x:p,y:h,image:u.canvas},silent:!0});this.group.add(S)},e.type="heatmap",e})(mt),OL=tF;var rF=(function(t){R(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,i){return ji(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var r=xo.get(this.get("coordinateSystem"));if(r&&r.dimensions)return r.dimensions[0]==="lng"&&r.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:ne.color.primary}}},e})(At),IL=rF;function X0(t){t.registerChartView(OL),t.registerSeriesModel(IL)}var RL={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},PL=ie(RL),bae=ir($r,function(t,e){return t[e]=1,t},{}),Sae=$r.join(", "),cf=["","style","shape","extra"],_l=ae();function Z0(t,e,r,i,a){var n=t+"Animation",o=du(t,i,a)||{},s=_l(e).userDuring;return o.duration>0&&(o.during=s?oe(sF,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=t),k(o,r[n]),o}function Md(t,e,r,i){i=i||{};var a=i.dataIndex,n=i.isInit,o=i.clearStyle,s=r.isAnimationEnabled(),l=_l(t),u=e.style;l.userDuring=e.during;var f={},c={};if(uF(t,e,c),t.type==="compound")for(var p=t.shape.paths,h=e.shape.paths,d=0;d<h.length;d++){var v=h[d];q0("shape",v,p[d])}else q0("shape",e,c),q0("extra",e,c);if(!n&&s&&(lF(t,e,f),NL("shape",t,e,f),NL("extra",t,e,f),fF(t,e,u,f)),c.style=u,iF(t,c,o),nF(t,e),s)if(n){var m={};E(cf,function(y){var x=y?e[y]:e;x&&x.enterFrom&&(y&&(m[y]=m[y]||{}),k(y?m[y]:m,x.enterFrom))});var g=Z0("enter",t,e,r,a);g.duration>0&&t.animateFrom(m,g)}else aF(t,e,a||0,r,f);j0(t,e),u?t.dirty():t.markRedraw()}function j0(t,e){for(var r=_l(t).leaveToProps,i=0;i<cf.length;i++){var a=cf[i],n=a?e[a]:e;n&&n.leaveTo&&(r||(r=_l(t).leaveToProps={}),a&&(r[a]=r[a]||{}),k(a?r[a]:r,n.leaveTo))}}function kL(t,e,r,i){if(t){var a=t.parent,n=_l(t).leaveToProps;if(n){var o=Z0("update",t,e,r,0);o.done=function(){a&&a.remove(t),i&&i()},t.animateTo(n,o)}else a&&a.remove(t),i&&i()}}function En(t){return t==="all"}function iF(t,e,r){var i=e.style;if(!t.isGroup&&i){if(r){t.useStyle({});for(var a=t.animators,n=0;n<a.length;n++){var o=a[n];o.targetName==="style"&&o.changeTarget(t.style)}}t.setStyle(i)}e&&(e.style=null,e&&t.attr(e),e.style=i)}function aF(t,e,r,i,a){if(a){var n=Z0("update",t,e,i,r);n.duration>0&&t.animateFrom(a,n)}}function nF(t,e){se(e,"silent")&&(t.silent=e.silent),se(e,"ignore")&&(t.ignore=e.ignore),t instanceof br&&se(e,"invisible")&&(t.invisible=e.invisible),t instanceof he&&se(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var ra={},oF={setTransform:function(t,e){return ra.el[t]=e,this},getTransform:function(t){return ra.el[t]},setShape:function(t,e){var r=ra.el,i=r.shape||(r.shape={});return i[t]=e,r.dirtyShape&&r.dirtyShape(),this},getShape:function(t){var e=ra.el.shape;if(e)return e[t]},setStyle:function(t,e){var r=ra.el,i=r.style;return i&&(i[t]=e,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(t){var e=ra.el.style;if(e)return e[t]},setExtra:function(t,e){var r=ra.el.extra||(ra.el.extra={});return r[t]=e,this},getExtra:function(t){var e=ra.el.extra;if(e)return e[t]}};function sF(){var t=this,e=t.el;if(e){var r=_l(e).userDuring,i=t.userDuring;if(r!==i){t.el=t.userDuring=null;return}ra.el=e,i(oF)}}function NL(t,e,r,i){var a=r[t];if(a){var n=e[t],o;if(n){var s=r.transition,l=a.transition;if(l)if(!o&&(o=i[t]={}),En(l))k(o,n);else for(var u=Ge(l),f=0;f<u.length;f++){var c=u[f],p=n[c];o[c]=p}else if(En(s)||pe(s,t)>=0){!o&&(o=i[t]={});for(var h=ie(n),f=0;f<h.length;f++){var c=h[f],p=n[c];cF(a[c],p)&&(o[c]=p)}}}}}function q0(t,e,r){var i=e[t];if(i)for(var a=r[t]={},n=ie(i),o=0;o<n.length;o++){var s=n[o];a[s]=Fn(i[s])}}function lF(t,e,r){for(var i=e.transition,a=En(i)?$r:Ge(i||[]),n=0;n<a.length;n++){var o=a[n];if(!(o==="style"||o==="shape"||o==="extra")){var s=t[o];r[o]=s}}}function uF(t,e,r){for(var i=0;i<PL.length;i++){var a=PL[i],n=RL[a],o=e[a];o&&(r[n[0]]=o[0],r[n[1]]=o[1])}for(var i=0;i<$r.length;i++){var s=$r[i];e[s]!=null&&(r[s]=e[s])}}function fF(t,e,r,i){if(r){var a=t.style,n;if(a){var o=r.transition,s=e.transition;if(o&&!En(o)){var l=Ge(o);!n&&(n=i.style={});for(var u=0;u<l.length;u++){var f=l[u],c=a[f];n[f]=c}}else if(t.getAnimationStyleProps&&(En(s)||En(o)||pe(s,"style")>=0)){var p=t.getAnimationStyleProps(),h=p?p.style:null;if(h){!n&&(n=i.style={});for(var d=ie(r),u=0;u<d.length;u++){var f=d[u];if(h[f]){var c=a[f];n[f]=c}}}}}}}function cF(t,e){return lt(t)?t!==e:t!=null&&isFinite(t)}var zL=ae(),pF=["percent","easing","shape","style","extra"];function VL(t){t.stopAnimation("keyframe"),t.attr(zL(t))}function Ld(t,e,r){if(!(!r.isAnimationEnabled()||!e)){if(V(e)){E(e,function(s){Ld(t,s,r)});return}var i=e.keyframes,a=e.duration;if(r&&a==null){var n=du("enter",r,0);a=n&&n.duration}if(!(!i||!a)){var o=zL(t);E(cf,function(s){if(!(s&&!t[s])){var l,u=!1;i.sort(function(f,c){return f.percent-c.percent}),E(i,function(f){var c=t.animators,p=s?f[s]:f;if(p){var h=ie(p);if(s||(h=Ue(h,function(m){return pe(pF,m)<0})),!!h.length){l||(l=t.animate(s,e.loop,!0),l.scope="keyframe");for(var d=0;d<c.length;d++)c[d]!==l&&c[d].targetName===l.targetName&&c[d].stopTracks(h);s&&(o[s]=o[s]||{});var v=s?o[s]:o;E(h,function(m){v[m]=((s?t[s]:t)||{})[m]}),l.whenWithKeys(a*f.percent,p,h,f.easing)}}}),l&&l.delay(e.delay||0).duration(a).start(e.easing)}})}}}var Ko=ae(),UL=ee,J0=oe,hF=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,i,a){var n=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=i,!(!a&&this._lastValue===n&&this._lastStatus===o)){this._lastValue=n,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,n,e,r,i);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new Te,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),i.getZr().add(s);else{var p=ut(BL,r,c);this.updatePointerEl(s,u,p),this.updateLabelEl(s,u,p,r)}HL(s,r,!0),this._renderHandle(n)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var i=r.get("animation"),a=e.axis,n=a.type==="category",o=r.get("snap");if(!o&&!n)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(n&&Mr(a).w>s)return!0;if(o){var l=bd(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},t.prototype.makeElOption=function(e,r,i,a,n){},t.prototype.createPointerEl=function(e,r,i,a){var n=r.pointer;if(n){var o=Ko(e).pointerEl=new ot[n.type](UL(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,i,a){if(r.label){var n=Ko(e).labelEl=new ke(UL(r.label));e.add(n),FL(n,a)}},t.prototype.updatePointerEl=function(e,r,i){var a=Ko(e).pointerEl;a&&r.pointer&&(a.setStyle(r.pointer.style),i(a,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,i,a){var n=Ko(e).labelEl;n&&(n.setStyle(r.label.style),i(n,{x:r.label.x,y:r.label.y}),FL(n,a))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,i=this._api.getZr(),a=this._handle,n=r.getModel("handle"),o=r.get("status");if(!n.get("show")||!o||o==="hide"){a&&i.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=dg(n.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Ka(u.event)},onmousedown:J0(this._onHandleDragMove,this,0,0),drift:J0(this._onHandleDragMove,this),ondragend:J0(this._onHandleDragEnd,this)}),i.add(a)),HL(a,r,!1),a.setStyle(n.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=n.get("size");V(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,rh(this,"_doDispatchAxisPointer",n.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){BL(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Q0(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var i=this._handle;if(i){this._dragging=!0;var a=this.updateHandleTransform(Q0(i),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=a,i.stopAnimation(),i.attr(Q0(a)),Ko(i).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.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(),i=this._group,a=this._handle;r&&i&&(this._lastGraphicKey=null,i&&r.remove(i),a&&r.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Au(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,i){return i=i||0,{x:e[i],y:e[1-i],width:r[i],height:r[1-i]}},t})();function BL(t,e,r,i){GL(Ko(r).lastProp,i)||(Ko(r).lastProp=i,e?He(r,i,t):(r.stopAnimation(),r.attr(i)))}function GL(t,e){if($(t)&&$(e)){var r=!0;return E(e,function(i,a){r=r&&GL(t[a],i)}),!!r}else return t===e}function FL(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Q0(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function HL(t,e,r){var i=e.get("z"),a=e.get("zlevel");t&&t.traverse(function(n){n.type!=="group"&&(i!=null&&(n.z=i),a!=null&&(n.zlevel=a),n.silent=r)})}var KL=hF;function YL(t){var e=t.get("type"),r=t.getModel(e+"Style"),i;return e==="line"?(i=r.getLineStyle(),i.fill=null):e==="shadow"&&(i=r.getAreaStyle(),i.stroke=null),i}function dF(t,e,r,i,a){var n=r.get("value"),o=ex(n,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Xi(s.get("padding")||0),u=s.getFont(),f=xc(o,u),c=a.position,p=f.width+l[1]+l[3],h=f.height+l[0]+l[2],d=a.align;d==="right"&&(c[0]-=p),d==="center"&&(c[0]-=p/2);var v=a.verticalAlign;v==="bottom"&&(c[1]-=h),v==="middle"&&(c[1]-=h/2),vF(c,p,h,i);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:wr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function vF(t,e,r,i){var a=i.getWidth(),n=i.getHeight();t[0]=Math.min(t[0]+e,a)-e,t[1]=Math.min(t[1]+r,n)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function ex(t,e,r,i,a){t=e.scale.parse(t);var n=e.scale.getLabel({value:t},{precision:a.precision}),o=a.formatter;if(o){var s={value:cl(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};E(i,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),G(o)?n=o.replace("{value}",n):Z(o)&&(n=o(s))}return n}function tx(t,e,r){var i=nr();return us(i,i,r.rotation),Il(i,i,r.position),pn([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],i)}function WL(t,e,r,i,a,n){var o=ml.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=a.get(["label","margin"]),dF(e,i,a,n,{position:tx(i.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function $L(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function XL(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function qL(t,e,r){return Mr(t,{fromStat:{sers:F(e,function(i){return r.getSeriesByIndex(i.seriesIndex)})},min:1}).w}function ZL(t,e,r){return[we(nt(e[0],e[1]),t-r/2),nt(t+r/2,we(e[0],e[1]))]}var mF=(function(t){R(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,i,a,n,o){var s=a.axis,l=s.grid,u=n.get("type"),f=s.getGlobalExtent(),c=JL(l,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var h=YL(n),d=gF[u](s,p,f,c,n.get("seriesDataIndices"),n.ecModel);d.style=h,r.graphicKey=d.type,r.pointer=d}var v=Ju(l.getRect(),a);WL(i,r,v,a,n,o)},e.prototype.getHandleTransform=function(r,i,a){var n=Ju(i.axis.grid.getRect(),i,{labelInside:!1});n.labelMargin=a.get(["handle","margin"]);var o=tx(i.axis,r,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,i,a,n){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=JL(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=i[f],c[f]=nt(l[1],c[f]),c[f]=we(l[0],c[f]);var p=(u[1]+u[0])/2,h=[p,p];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})(KL);function JL(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var gF={line:function(t,e,r,i){var a=$L([e,i[0]],[e,i[1]],QL(t));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(t,e,r,i,a,n){var o=qL(t,a,n),s=i[1]-i[0],l=ZL(e,r,o),u=l[0],f=l[1];return{type:"Rect",shape:XL([u,i[0]],[f-u,s],QL(t))}}};function QL(t){return t.dim==="x"?0:1}var eD=mF;var yF=(function(t){R(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:ne.color.border,width:1,type:"dashed"},shadowStyle:{color:ne.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:ne.color.neutral00,padding:[5,7,5,7],backgroundColor:ne.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:ne.color.accent40,throttle:40}},e})(Ne),tD=yF;var Pa=ae(),xF=E;function Dd(t,e,r){if(!ye.node){var i=e.getZr();Pa(i).records||(Pa(i).records={}),_F(i,e);var a=Pa(i).records[t]||(Pa(i).records[t]={});a.handler=r}}function _F(t,e){if(Pa(t).initialized)return;Pa(t).initialized=!0,r("click",ut(rx,"click")),r("mousemove",ut(rx,"mousemove")),r("mousewheel",ut(rx,"mousewheel")),r("globalout",SF);function r(i,a){t.on(i,function(n){var o=CF(e);xF(Pa(t).records,function(s){s&&a(s,n,o.dispatchAction)}),bF(o.pendings,e)})}}function bF(t,e){var r=t.showTip.length,i=t.hideTip.length,a;r?a=t.showTip[r-1]:i&&(a=t.hideTip[i-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function SF(t,e,r){t.handler("leave",null,r)}function rx(t,e,r,i){e.handler(t,r,i)}function CF(t){var e={showTip:[],hideTip:[]},r=function(i){var a=e[i.type];a?a.push(i):(i.dispatchAction=r,t.dispatchAction(i))};return{dispatchAction:r,pendings:e}}function pf(t,e){if(!ye.node){var r=e.getZr(),i=(Pa(r).records||{})[t];i&&(Pa(r).records[t]=null)}}var wF=(function(t){R(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,i,a){var n=i.getComponent("tooltip"),o=r.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click|mousewheel";Dd("axisPointer",a,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,i){pf("axisPointer",i)},e.prototype.dispose=function(r,i){pf("axisPointer",i)},e.type="axisPointer",e})(Mt),iD=wF;function hf(t,e){var r=[],i=t.seriesIndex,a;if(i==null||!(a=e.getSeriesByIndex(i)))return{point:[]};var n=a.getData(),o=Xr(n,t);if(o==null||o<0||V(o))return{point:[]};var s=n.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)r=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,p=u.dim,h=c==="x"||c==="radius"?1:0,d=n.mapDimension(p),v=[];v[h]=n.get(d,o),v[1-h]=n.get(n.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(v)||[]}else r=l.dataToPoint(n.getValues(F(l.dimensions,function(g){return n.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),r=[m.x+m.width/2,m.y+m.height/2]}return{point:r,el:s}}var aD=ae();function ix(t,e,r){var i=t.currTrigger,a=[t.x,t.y],n=t,o=t.dispatchAction||oe(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Od(a)&&(a=hf({seriesIndex:n.seriesIndex,dataIndex:n.dataIndex},e).point);var l=Od(a),u=n.axesInfo,f=s.axesInfo,c=i==="leave"||Od(a),p={},h={},d={list:[],map:{}},v={showPointer:ut(EF,h),showTooltip:ut(AF,d)};E(s.coordSysMap,function(g,y){var x=l||g.containPoint(a);E(s.coordSysAxesInfo[y],function(_,b){var S=_.axis,w=OF(u,_);if(!c&&x&&(!u||w)){var A=w&&w.value;A==null&&!l&&(A=S.pointToData(a)),A!=null&&nD(_,A,v,!1,p)}})});var m={};return E(f,function(g,y){var x=g.linkGroup;x&&!h[y]&&E(x.axesInfo,function(_,b){var S=h[b];if(_!==g&&S){var w=S.value;x.mapper&&(w=g.axis.scale.parse(x.mapper(w,oD(_),oD(g)))),m[g.key]=w}})}),E(m,function(g,y){nD(f[y],g,v,!0,p)}),MF(h,f,p),LF(d,a,t,o),DF(f,o,r),p}}function nD(t,e,r,i,a){var n=t.axis;if(!(n.scale.isBlank()||!n.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=TF(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&k(a,s[0]),!i&&t.snap&&n.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function TF(t,e){var r=e.axis,i=r.dim,a=t,n=[],o=Number.MAX_VALUE,s=-1;return E(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),c,p;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,t,r);p=h.dataIndices,c=h.nestestValue}else{if(p=l.indicesOfNearest(i,f[0],t,r.type==="category"?.5:null),!p.length)return;c=l.getData().get(f[0],p[0])}if(yt(c)){var d=t-c,v=Math.abs(d);v<=o&&((v<o||d>=0&&s<0)&&(o=v,s=d,a=c,n.length=0),E(p,function(m){n.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:n,snapToValue:a}}function EF(t,e,r,i){t[e.key]={value:r,payloadBatch:i}}function AF(t,e,r,i){var a=r.payloadBatch,n=e.axis,o=n.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=gl(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:n.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function MF(t,e,r){var i=r.axesInfo=[];E(e,function(a,n){var o=a.axisPointerModel.option,s=t[n];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function LF(t,e,r,i){if(Od(e)||!t.list.length){i({type:"hideTip"});return}var a=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:t.list})}function DF(t,e,r){var i=r.getZr(),a="axisPointerLastHighlights",n=aD(i)[a]||{},o=aD(i)[a]={};E(t,function(f,c){var p=f.axisPointerModel.option;p.status==="show"&&f.triggerEmphasis&&E(p.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}E(n,function(f,c){!o[c]&&l.push(u(f))}),E(o,function(f,c){!n[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 OF(t,e){for(var r=0;r<(t||[]).length;r++){var i=t[r];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function oD(t){var e=t.axis.model,r={},i=r.axisDim=t.axis.dim;return r.axisIndex=r[i+"AxisIndex"]=e.componentIndex,r.axisName=r[i+"AxisName"]=e.name,r.axisId=r[i+"AxisId"]=e.id,r}function Od(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function Id(t){Sd.registerAxisPointerClass("CartesianAxisPointer",eD),t.registerComponentModel(tD),t.registerComponentView(iD),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!V(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=uL(e,r)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},ix)}function Na(t){Ye(Cd),Ye(Id)}function IF(t,e){var r=t.existing;if(e.id=t.keyInfo.id,!e.type&&r&&(e.type=r.type),e.parentId==null){var i=e.parentOption;i?e.parentId=i.id:r&&(e.parentId=r.parentId)}e.parentOption=null}function sD(t,e){var r;return E(e,function(i){t[i]!=null&&t[i]!=="auto"&&(r=!0)}),r}function PF(t,e,r){var i=k({},r),a=t[e],n=r.$action||"merge";if(n==="merge")if(a){if(0)var o;Ce(a,i,!0),Vr(a,i,{ignoreSize:!0}),Fg(r,a),Pd(r,a),Pd(r,a,"shape"),Pd(r,a,"style"),Pd(r,a,"extra"),r.clipPath=a.clipPath}else t[e]=i;else n==="replace"?t[e]=i:n==="remove"&&a&&(t[e]=null)}var lD=["transition","enterFrom","leaveTo"],NF=lD.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Pd(t,e,r){if(r&&(!t[r]&&e[r]&&(t[r]={}),t=t[r],e=e[r]),!(!t||!e))for(var i=r?lD:NF,a=0;a<i.length;a++){var n=i[a];t[n]==null&&e[n]!=null&&(t[n]=e[n])}}function RF(t,e){if(t&&(t.hv=e.hv=[sD(e,["left","right"]),sD(e,["top","bottom"])],t.type==="group")){var r=t,i=e;r.width==null&&(r.width=i.width=0),r.height==null&&(r.height=i.height=0)}}var uD=(function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.preventAutoZ=!0,r}return e.prototype.mergeOption=function(r,i){var a=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,r,i),this.option.elements=a},e.prototype.optionUpdated=function(r,i){var a=this.option,n=(i?a:r).elements,o=a.elements=i?[]:a.elements,s=[];this._flatten(n,s,null);var l=Ac(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];E(l,function(f,c){var p=f.newOption;p&&(u.push(p),IF(f,p),PF(o,c,p),RF(o[c],p))},this),a.elements=Ue(o,function(f){return f&&delete f.$action,f!=null})},e.prototype._flatten=function(r,i,a){E(r,function(n){if(n){a&&(n.parentOption=a),i.push(n);var o=n.children;o&&o.length&&this._flatten(o,i,n),delete n.children}},this)},e.prototype.useElOptionsToUpdate=function(){var r=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,r},e.type="graphic",e.defaultOption={elements:[]},e})(Ne);var fD={path:null,compoundPath:null,group:Te,image:it,text:ke},ai=ae(),hD=(function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(){this._elMap=te()},e.prototype.render=function(r,i,a){r!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=r,this._updateElements(r),this._relocate(r,a)},e.prototype._updateElements=function(r){var i=r.useElOptionsToUpdate();if(i){var a=this._elMap,n=this.group,o=r.get("z"),s=r.get("zlevel");E(i,function(l){var u=wt(l.id,null),f=u!=null?a.get(u):null,c=wt(l.parentId,null),p=c!=null?a.get(c):n,h=l.type,d=l.style;h==="text"&&d&&l.hv&&l.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var v=l.textContent,m=l.textConfig;if(d&&HA(d,h,!!m,!!v)){var g=GA(d,h,!0);!m&&g.textConfig&&(m=l.textConfig=g.textConfig),!v&&g.textContent&&(v=g.textContent)}var y=kF(l),x=l.$action||"merge",_=x==="merge",b=x==="replace";if(_){var S=!f,w=f;S?w=cD(u,p,l.type,a):(w&&(ai(w).isNew=!1),VL(w)),w&&(Md(w,y,r,{isInit:S}),pD(w,l,o,s))}else if(b){Nd(f,l,a,r);var A=cD(u,p,l.type,a);A&&(Md(A,y,r,{isInit:!0}),pD(A,l,o,s))}else x==="remove"&&(j0(f,l),Nd(f,l,a,r));var C=a.get(u);if(C&&v)if(_){var T=C.getTextContent();T?T.attr(v):C.setTextContent(new ke(v))}else b&&C.setTextContent(new ke(v));if(C){var M=l.clipPath;if(M){var O=M.type,L=void 0,S=!1;if(_){var D=C.getClipPath();S=!D||ai(D).type!==O,L=S?ax(O):D}else b&&(S=!0,L=ax(O));C.setClipPath(L),Md(L,M,r,{isInit:S}),Ld(L,M.keyframeAnimation,r)}var I=ai(C);C.setTextConfig(m),I.option=l,zF(C,r,l),zs({el:C,componentModel:r,itemName:C.name,itemTooltipOption:l.tooltip}),Ld(C,l.keyframeAnimation,r)}})}},e.prototype._relocate=function(r,i){for(var a=r.option.elements,n=this.group,o=this._elMap,s=i.getWidth(),l=i.getHeight(),u=["x","y"],f=0;f<a.length;f++){var c=a[f],p=wt(c.id,null),h=p!=null?o.get(p):null;if(!(!h||!h.isGroup)){var d=h.parent,v=d===n,m=ai(h),g=ai(d);m.width=Ae(m.option.width,v?s:g.width)||0,m.height=Ae(m.option.height,v?l:g.height)||0}}for(var f=a.length-1;f>=0;f--){var c=a[f],p=wt(c.id,null),h=p!=null?o.get(p):null;if(h){var d=h.parent,g=ai(d),y=d===n?{width:s,height:l}:{width:g.width,height:g.height},x={},_=Rp(h,c,y,null,{hv:c.hv,boundingMode:c.bounding},x);if(!ai(h).isNew&&_){for(var b=c.transition,S={},w=0;w<u.length;w++){var A=u[w],C=x[A];b&&(En(b)||pe(b,A)>=0)?S[A]=C:h[A]=C}He(h,S,r,0)}else h.attr(x)}}},e.prototype._clear=function(){var r=this,i=this._elMap;i.each(function(a){Nd(a,ai(a).option,i,r._lastGraphicModel)}),this._elMap=te()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e})(Mt);function ax(t){var e=se(fD,t)?fD[t]:fg(t),r=new e({});return ai(r).type=t,r}function cD(t,e,r,i){var a=ax(r);return e.add(a),i.set(t,a),ai(a).id=t,ai(a).isNew=!0,a}function Nd(t,e,r,i){var a=t&&t.parent;a&&(t.type==="group"&&t.traverse(function(n){Nd(n,e,r,i)}),kL(t,e,i),r.removeKey(ai(t).id))}function pD(t,e,r,i){t.isGroup||E([["cursor",br.prototype.cursor],["zlevel",i||0],["z",r||0],["z2",0]],function(a){var n=a[0];se(e,n)?t[n]=X(e[n],a[1]):t[n]==null&&(t[n]=a[1])}),E(ie(e),function(a){if(a.indexOf("on")===0){var n=e[a];t[a]=Z(n)?n:null}}),se(e,"draggable")&&(t.draggable=e.draggable),e.name!=null&&(t.name=e.name),e.id!=null&&(t.id=e.id)}function kF(t){return t=k({},t),E(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Ug),function(e){delete t[e]}),t}function zF(t,e,r){var i=_e(t).eventData;!t.silent&&!t.ignore&&!i&&(i=_e(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),i&&(i.info=r.info)}function nx(t){t.registerComponentModel(uD),t.registerComponentView(hD),t.registerPreprocessor(function(e){var r=e.graphic;V(r)?!r[0]||!r[0].elements?e.graphic=[{elements:r}]:e.graphic=[e.graphic[0]]:r&&!r.elements&&(e.graphic=[{elements:[r]}])})}var VF=(function(t){R(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:ne.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:ne.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:ne.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:ne.color.tertiary,fontSize:14}},e})(Ne),dD=VF;function Rd(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function vD(t){if(ye.domSupported){for(var e=document.documentElement.style,r=0,i=t.length;r<i;r++)if(t[r]in e)return t[r]}}var ox=vD(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),mD=vD(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function sx(t,e){if(!t)return e;e=Gs(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function gD(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?e?r[e]:r:null}var UF=sx(mD,"transition"),lx=sx(ox,"transform"),BF="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ye.transform3dSupported?"will-change:transform;":"");function FF(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function HF(t,e,r){if(!G(r)||r==="inside")return"";var i=t.get("backgroundColor"),a=t.get("borderWidth");e=xi(e);var n=FF(r),o=Math.max(Math.round(a)*1.5,6),s="",l=lx+":",u;pe(["left","right"],n)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=n==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=n==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+a,p=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((p-Math.SQRT2*a)/2+Math.SQRT2*a-(p-c)/2)*100)/100;s+=";"+n+":-"+h+"px";var d=e+" solid "+a+"px;",v=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+i+";"];return'<div style="'+v.join("")+'"></div>'}function GF(t,e,r){var i="cubic-bezier(0.23,1,0.32,1)",a="",n="";return r&&(a=" "+t/2+"s "+i,n="opacity"+a+",visibility"+a),e||(a=" "+t+"s "+i,n+=(n.length?",":"")+(ye.transformSupported?""+lx+a:",left"+a+",top"+a)),UF+":"+n}function yD(t,e,r){var i=t.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!ye.transformSupported)return r?"top:"+a+";left:"+i+";":[["top",a],["left",i]];var n=ye.transform3dSupported,o="translate"+(n?"3d":"")+"("+i+","+a+(n?",0":"")+")";return r?"top:0;left:0;"+lx+":"+o+";":[["top",0],["left",0],[ox,o]]}function KF(t){var e=[],r=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont());var a=X(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+a+"px");var n=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return n&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+n),E(["decoration","align"],function(u){var f=t.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function YF(t,e,r,i){var a=[],n=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"),p=jp(t,"html"),h=u+"px "+f+"px "+s+"px "+l;return a.push("box-shadow:"+h),e&&n>0&&a.push(GF(n,r,i)),o&&a.push("background-color:"+o),E(["width","color","radius"],function(d){var v="border-"+d,m=Gs(v),g=t.get(m);g!=null&&a.push(v+":"+g+(d==="color"?"":"px"))}),a.push(KF(c)),p!=null&&a.push("padding:"+Xi(p).join("px ")+"px"),a.join(";")+";"}function xD(t,e,r,i,a){var n=e&&e.painter;if(r){var o=n&&n.getViewportRoot();o&&w_(t,o,r,i,a)}else{t[0]=i,t[1]=a;var s=n&&n.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var WF=(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,ye.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=e.getZr(),n=r.appendTo,o=n&&(G(n)?document.querySelector(n):rs(n)?n:Z(n)&&n(e.getDom()));xD(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(i),this._api=e,this._container=o;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();yr(f,l,!0),u.dispatch("mousemove",l)}},i.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(),i=gD(r,"position"),a=r.style;a.position!=="absolute"&&i!=="absolute"&&(a.position="relative")}var n=e.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n,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 i=this.el,a=i.style,n=this._styleCoord;i.innerHTML?a.cssText=BF+YF(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+yD(n[0],n[1],!0)+("border-color:"+xi(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,i,a,n){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(G(n)&&i.get("trigger")==="item"&&!Rd(i)&&(s=HF(i,a,n)),G(e))o.innerHTML=e+s;else if(e){o.innerHTML="",V(e)||(e=[e]);for(var l=0;l<e.length;l++)rs(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 i=this._styleCoord;if(xD(i,this._zr,this._container,e,r),i[0]!=null&&i[1]!=null){var a=this.el.style,n=yD(i[0],i[1]);E(n,function(o){a[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",ye.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(oe(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;T_(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var i=r.parentNode;i&&i.removeChild(r)}this.el=this._container=null},t})(),_D=WF;var $F=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),SD(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,i,a,n){var o=this;$(e)&&It(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new ke({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:jp(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),E(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=i.get(u)}),E(["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(),i=bD(e.style);return[r.width+i.left+i.right,r.height+i.top+i.bottom]},t.prototype.moveTo=function(e,r){var i=this.el;if(i){var a=this._styleCoord;SD(a,this._zr,e,r),e=a[0],r=a[1];var n=i.style,o=An(n.borderWidth||0),s=bD(n);i.x=e+o+s.left,i.y=r+o+s.top,i.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(oe(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function An(t){return Math.max(0,t)}function bD(t){var e=An(t.shadowBlur||0),r=An(t.shadowOffsetX||0),i=An(t.shadowOffsetY||0);return{left:An(e-r),right:An(e+r),top:An(e-i),bottom:An(e+i)}}function SD(t,e,r,i){t[0]=r,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var CD=$F;var XF=new Pe({shape:{x:-1,y:-1,width:2,height:2}}),qF=(function(t){R(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,i){if(!(ye.node||!i.getDom())){var a=r.getComponent("tooltip"),n=this._renderMode=rS(a.get("renderMode"));this._tooltipContent=n==="richText"?new CD(i):new _D(i,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},e.prototype.render=function(r,i,a){if(!(ye.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=i,this._api=a;var n=this._tooltipContent;n.update(r),n.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?rh(this,"_updatePosition",50,"fixRate"):Au(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,i=r.get("triggerOn");Dd("itemTooltip",this._api,oe(function(a,n,o){i!=="none"&&(i.indexOf(a)>=0?this._tryShow(n,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,i=this._ecModel,a=this._api,n=r.get("triggerOn");if(r.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&n!=="none"&&n!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(r,i,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,i,a,n){if(!(n.from===this.uid||ye.node||!a.getDom())){var o=wD(n,a);this._ticket="";var s=n.dataByCoordSys,l=QF(n,i,a);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:n.position,positionDefault:"bottom"},o)}else if(n.tooltip&&n.x!=null&&n.y!=null){var f=XF;f.x=n.x,f.y=n.y,f.update(),_e(f).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:f},o)}else if(s)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:s,tooltipOption:n.tooltipOption},o);else if(n.seriesIndex!=null){if(this._manuallyAxisShowTip(r,i,a,n))return;var c=hf(n,i),p=c.point[0],h=c.point[1];p!=null&&h!=null&&this._tryShow({offsetX:p,offsetY:h,target:c.el,position:n.position,positionDefault:"bottom"},o)}else n.x!=null&&n.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:a.getZr().findHover(n.x,n.y).target},o))}},e.prototype.manuallyHideTip=function(r,i,a,n){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,n.from!==this.uid&&this._hide(wD(n,a))},e.prototype._manuallyAxisShowTip=function(r,i,a,n){var o=n.seriesIndex,s=n.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=i.getSeriesByIndex(o);if(u){var f=u.getData(),c=df([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:n.position}),!0}}},e.prototype._tryShow=function(r,i){var a=r.target,n=this._tooltipModel;if(n){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(a){var s=_e(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;Ea(a,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(_e(f).dataIndex!=null?l=f:_e(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(r,l,i):u?this._showComponentItemTooltip(r,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(i)}},e.prototype._showOrMove=function(r,i){var a=r.get("showDelay");i=oe(i,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(i,a):i()},e.prototype._showAxisTooltip=function(r,i){var a=this._ecModel,n=this._tooltipModel,o=[i.offsetX,i.offsetY],s=df([i.tooltipOption],n),l=this._renderMode,u=[],f=Zi("section",{blocks:[],noHeader:!0}),c=[],p=new Jp;E(r,function(y){E(y.dataByAxis,function(x){var _=a.getComponent(x.axisDim+"Axis",x.axisIndex),b=x.value,S=_.axis,w=S.scale.parse(b);if(!(!_||b==null)){var A=ex(b,S,a,x.seriesDataIndices,x.valueLabelOpt),C=Zi("section",{header:A,noHeader:!Bt(A),sortBlocks:!0,blocks:[]});f.blocks.push(C),E(x.seriesDataIndices,function(T){var M=a.getSeriesByIndex(T.seriesIndex),O=T.dataIndexInside,L=M.getDataParams(O);if(!(L.dataIndex<0)){L.axisDim=x.axisDim,L.axisIndex=x.axisIndex,L.axisType=x.axisType,L.axisId=x.axisId,L.axisValue=cl(_.axis,{value:w}),L.axisValueLabel=A,L.marker=p.makeTooltipMarker("item",xi(L.color),l);var D=Qg(M.formatTooltip(O,!0,null)),I=D.frag;if(I){var P=df([M],n).get("valueFormatter");C.blocks.push(P?k({valueFormatter:P},I):I)}D.text&&c.push(D.text),u.push(L)}})}})}),f.blocks.reverse(),c.reverse();var h=i.position,d=s.get("order"),v=ny(f,p,l,d,a.get("useUTC"),s.get("textStyle"));v&&c.unshift(v);var m=l==="richText"?`
16
16
 
17
- `:"<br/>",g=c.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,p,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],p,null,h)})},e.prototype._showSeriesItemTooltip=function(r,i,a){var n=this._ecModel,o=xe(i),s=o.seriesIndex,l=n.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),p=this._renderMode,d=r.positionDefault,v=cf([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),m=v.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(f,c),y=new qp;g.marker=y.makeTooltipMarker("item",_i(g.color),p);var x=Xg(u.formatTooltip(f,!1,c)),_=v.get("order"),S=v.get("valueFormatter"),b=x.frag,w=b?ey(S?k({valueFormatter:S},b):b,y,p,_,n.get("useUTC"),v.get("textStyle")):x.text,M="item_"+u.name+"_"+f;this._showOrMove(v,function(){this._showTooltipContent(v,w,g,M,r.offsetX,r.offsetY,r.position,r.target,y)}),a({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,i,a){var n=this._renderMode==="html",o=xe(i),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(G(l)){var f=l;l={content:f,formatter:f},u=!0}u&&n&&l.content&&(l=Q(l),l.content=dt(l.content));var c=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&c.push(h),c.push({formatter:l.content});var p=r.positionDefault,d=cf(c,this._tooltipModel,p?{position:p}:null),v=d.get("content"),m=Math.random()+"",g=new qp;this._showOrMove(d,function(){var y=Q(d.get("formatterParams")||{});this._showTooltipContent(d,v,y,m,r.offsetX,r.offsetY,r.position,i,g)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,i,a,n,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 p=i,d=this._getNearestPoint([o,s],a,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),v=d.color;if(h)if(G(h)){var m=r.ecModel.get("useUTC"),g=z(a)?a[0]:a,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;p=h,y&&(p=ho(g.axisValue,p,m)),p=Fs(p,a,!0)}else if(j(h)){var x=se(function(_,S){_===this._ticket&&(c.setContent(S,f,r,v,l),this._updatePosition(r,l,o,s,c,a,u))},this);this._ticket=n,p=h(a,n,x)}else p=h;c.setContent(p,f,r,v,l),c.show(r,v),this._updatePosition(r,l,o,s,c,a,u)}},e.prototype._getNearestPoint=function(r,i,a,n,o){if(a==="axis"||z(i))return{color:n||o};if(!z(i))return{color:n||i.color||i.borderColor}},e.prototype._updatePosition=function(r,i,a,n,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||r.get("position");var c=o.getSize(),h=r.get("align"),p=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),j(i)&&(i=i([a,n],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),z(i))a=Ee(i[0],u),n=Ee(i[1],f);else if($(i)){var v=i;v.width=c[0],v.height=c[1];var m=Xi(v,{width:u,height:f});a=m.x,n=m.y,h=null,p=null}else if(G(i)&&l){var g=FF(i,d,c,r.get("borderWidth"));a=g[0],n=g[1]}else{var g=UF(a,n,o,u,f,h?null:20,p?null:20);a=g[0],n=g[1]}if(h&&(a-=yD(h)?c[0]/2:h==="right"?c[0]:0),p&&(n-=yD(p)?c[1]/2:p==="bottom"?c[1]:0),Id(r)){var g=BF(a,n,o,u,f);a=g[0],n=g[1]}o.moveTo(a,n)},e.prototype._updateContentNotChangedOnAxis=function(r,i){var a=this._lastDataByCoordSys,n=this._cbParamsList,o=!!a&&a.length===r.length;return o&&E(a,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&E(u,function(h,p){var d=c[p]||{},v=h.seriesDataIndices||[],m=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&v.length===m.length,o&&E(v,function(g,y){var x=m[y];o=o&&g.seriesIndex===x.seriesIndex&&g.dataIndex===x.dataIndex}),n&&E(h.seriesDataIndices,function(g){var y=g.seriesIndex,x=i[y],_=n[y];x&&_&&_.data!==x.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=i,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,i){ye.node||!i.getDom()||(wu(this,"_updatePosition"),this._tooltipContent.dispose(),uf("itemTooltip",i),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(Mt);function cf(t,e,r){var i=e.ecModel,a;r?(a=new qe(r,i,i),a=new qe(e.option,a,i)):a=e;for(var n=t.length-1;n>=0;n--){var o=t[n];o&&(o instanceof qe&&(o=o.get("tooltip",!0)),G(o)&&(o={formatter:o}),o&&(a=new qe(o,a,i)))}return a}function gD(t,e){return t.dispatchAction||se(e.dispatchAction,e)}function UF(t,e,r,i,a,n,o){var s=r.getSize(),l=s[0],u=s[1];return n!=null&&(t+l+n+2>i?t-=l+n:t+=n),o!=null&&(e+u+o>a?e-=u+o:e+=o),[t,e]}function BF(t,e,r,i,a){var n=r.getSize(),o=n[0],s=n[1];return t=Math.min(t+o,i)-o,e=Math.min(e+s,a)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function FF(t,e,r,i){var a=r[0],n=r[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,f=e.height;switch(t){case"inside":s=e.x+u/2-a/2,l=e.y+f/2-n/2;break;case"top":s=e.x+u/2-a/2,l=e.y-n-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+f+o;break;case"left":s=e.x-a-o,l=e.y+f/2-n/2;break;case"right":s=e.x+u+o,l=e.y+f/2-n/2}return[s,l]}function yD(t){return t==="center"||t==="middle"}function HF(t,e,r){var i=ql(t).queryOptionMap,a=i.keys()[0];if(!(!a||a==="series")){var n=Ri(e,a,i.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=n.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=xe(u).tooltipConfig;if(f&&f.name===t.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}var xD=VF;function ax(t){Ge(Ld),t.registerComponentModel(sD),t.registerComponentView(xD),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Xe),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Xe)}var _D=E;function bD(t){if(t){for(var e in t)if(t.hasOwnProperty(e))return!0}}function nx(t,e,r){var i={};return _D(e,function(n){var o=i[n]=a();_D(t[n],function(s,l){if(Lt.isValidType(l)){var u={type:l,visual:s};r&&r(u,n),o[l]=new Lt(u),l==="opacity"&&(u=Q(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Lt(u))}})}),i;function a(){var n=function(){};n.prototype.__hidden=n.prototype;var o=new n;return o}}function SD(t,e,r){var i;E(r,function(a){e.hasOwnProperty(a)&&bD(e[a])&&(i=!0)}),i&&E(r,function(a){e.hasOwnProperty(a)&&bD(e[a])?t[a]=Q(e[a]):delete t[a]})}function CD(t,e,r,i){var a={};return E(t,function(n){var o=Lt.prepareVisualTypes(e[n]);a[n]=o}),{progress:function(o,s){var l;i!=null&&(l=s.getDimensionIndex(i));function u(S){return rh(s,c,S)}function f(S,b){WT(s,c,S,b)}for(var c,h=s.getStore();(c=o.next())!=null;){var p=s.getRawDataItem(c);if(!(p&&p.visualMap===!1))for(var d=i!=null?h.get(l,c):c,v=r(d),m=e[v],g=a[v],y=0,x=g.length;y<x;y++){var _=g[y];m[_]&&m[_].applyVisual(d,u,f)}}}}}var GF={get:function(t,e,r){var i=Q((KF[t]||{})[e]);return r&&z(i)?i[i.length-1]:i}},KF={color:{active:["#006edd","#e0ffff"],inactive:[oe.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},Pd=GF;var TD=Lt.mapVisual,YF=Lt.eachVisual,WF=z,ox=E,$F=Pi,XF=or,qF=(function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return e.prototype.init=function(r,i,a){this.mergeDefaultAndTheme(r,a)},e.prototype.optionUpdated=function(r,i){var a=this.option;!i&&SD(a,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(r){var i=this.stateList;r=se(r,this),this.controllerVisuals=nx(this.option.controller,i,r),this.targetVisuals=nx(this.option.target,i,r)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var r=this,i=this.option.seriesTargets;if(i){var a=[];return ox(i,function(l){if(l.seriesIndex!=null)a.push(l.seriesIndex);else if(l.seriesId!=null){var u;r.ecModel.eachSeries(function(f){f.id===l.seriesId&&(u=f)}),u&&a.push(u.componentIndex)}}),a}var n=this.option.seriesId,o=this.option.seriesIndex;o==null&&n==null&&(o="all");var s=Ri(this.ecModel,"series",{index:o,id:n},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return B(s,function(l){return l.componentIndex})},e.prototype.eachTargetSeries=function(r,i){E(this.getTargetSeriesIndices(),function(a){var n=this.ecModel.getSeriesByIndex(a);n&&r.call(i,n)},this)},e.prototype.isTargetSeries=function(r){var i=!1;return this.eachTargetSeries(function(a){a===r&&(i=!0)}),i},e.prototype.formatValueText=function(r,i,a){var n=this.option,o=n.precision,s=this.dataBound,l=n.formatter,u;a=a||["<",">"],z(r)&&(r=r.slice(),u=!0);var f=i?r:u?[c(r[0]),c(r[1])]:c(r);if(G(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(j(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?a[0]+" "+f[1]:r[1]===s[1]?a[1]+" "+f[0]:f[0]+" - "+f[1];return f;function c(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var r=this.option,i=$F([r.min,r.max]);this._dataExtent=i},e.prototype.getDimension=function(r){var i=this,a=this.option.seriesTargets;if(a){var n=es(a,function(o){return o.seriesIndex!=null&&o.seriesIndex===r||o.seriesId!=null&&o.seriesId===i.ecModel.getSeriesByIndex(r).id});if(n)return n.dimension}return this.option.dimension},e.prototype.getDataDimensionIndex=function(r){var i=r.hostModel.seriesIndex,a=this.getDimension(i);if(a!=null)return r.getDimensionIndex(a);for(var n=r.dimensions,o=n.length-1;o>=0;o--){var s=n[o],l=r.getDimensionInfo(s);if(!l.isCalculationCoord)return l.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var r=this.ecModel,i=this.option,a={inRange:i.inRange,outOfRange:i.outOfRange},n=i.target||(i.target={}),o=i.controller||(i.controller={});Se(n,a),Se(o,a);var s=this.isCategory();l.call(this,n),l.call(this,o),u.call(this,n,"inRange","outOfRange"),f.call(this,o);function l(c){WF(i.color)&&!c.inRange&&(c.inRange={color:i.color.slice().reverse()}),c.inRange=c.inRange||{color:r.get("gradientColor")}}function u(c,h,p){var d=c[h],v=c[p];d&&!v&&(v=c[p]={},ox(d,function(m,g){if(Lt.isValidType(g)){var y=Pd.get(g,"inactive",s);y!=null&&(v[g]=y,g==="color"&&!v.hasOwnProperty("opacity")&&!v.hasOwnProperty("colorAlpha")&&(v.opacity=[0,0]))}}))}function f(c){var h=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,p=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),v=this.getItemSymbol(),m=v||"roundRect";ox(this.stateList,function(g){var y=this.itemSize,x=c[g];x||(x=c[g]={color:s?d:[d]}),x.symbol==null&&(x.symbol=h&&Q(h)||(s?m:[m])),x.symbolSize==null&&(x.symbolSize=p&&Q(p)||(s?y[0]:[y[0],y[0]])),x.symbol=TD(x.symbol,function(b){return b==="none"?m:b});var _=x.symbolSize;if(_!=null){var S=-1/0;YF(_,function(b){b>S&&(S=b)}),x.symbolSize=TD(_,function(b){return XF(b,[0,S],[0,y[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(r){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(r){return null},e.prototype.getVisualMeta=function(r){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:oe.color.transparent,borderColor:oe.color.borderTint,contentColor:oe.color.theme[0],inactiveColor:oe.color.disabled,borderWidth:0,padding:oe.size.m,textGap:10,precision:0,textStyle:{color:oe.color.secondary}},e})(Ie),yl=qF;var ED=[20,140],ZF=(function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(r,i){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=ED[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=ED[1])},e.prototype._resetRange=function(){var r=this.getExtent(),i=this.option.range;!i||i.auto?(r.auto=1,this.option.range=r):z(i)&&(i[0]>i[1]&&i.reverse(),i[0]=Math.max(i[0],r[0]),i[1]=Math.min(i[1],r[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),E(this.stateList,function(r){var i=this.option.controller[r].symbolSize;i&&i[0]!==i[1]&&(i[0]=i[1]/3)},this)},e.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},e.prototype.getSelected=function(){var r=this.getExtent(),i=Pi((this.get("range")||[]).slice());return i[0]>r[1]&&(i[0]=r[1]),i[1]>r[1]&&(i[1]=r[1]),i[0]<r[0]&&(i[0]=r[0]),i[1]<r[0]&&(i[1]=r[0]),i},e.prototype.getValueState=function(r){var i=this.option.range,a=this.getExtent(),n=q(this.option.unboundedRange,!0);return(n&&i[0]<=a[0]||i[0]<=r)&&(n&&i[1]>=a[1]||r<=i[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(r){var i=[];return this.eachTargetSeries(function(a){var n=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&n.push(l)},this),i.push({seriesId:a.id,dataIndex:n})},this),i},e.prototype.getVisualMeta=function(r){var i=AD(this,"outOfRange",this.getExtent()),a=AD(this,"inRange",this.option.range.slice()),n=[];function o(p,d){n.push({value:p,color:r(p,d)})}for(var s=0,l=0,u=a.length,f=i.length;l<f&&(!a.length||i[l]<=a[0]);l++)i[l]<a[s]&&o(i[l],"outOfRange");for(var c=1;s<u;s++,c=0)c&&n.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var c=1;l<f;l++)(!a.length||a[a.length-1]<i[l])&&(c&&(n.length&&o(n[n.length-1].value,"outOfRange"),c=0),o(i[l],"outOfRange"));var h=n.length;return{stops:n,outerColors:[h?n[0].color:"transparent",h?n[h-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=ks(yl.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:oe.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:oe.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:oe.color.shadow}}),e})(yl);function AD(t,e,r){if(r[0]===r[1])return r.slice();for(var i=200,a=(r[1]-r[0])/i,n=r[0],o=[],s=0;s<=i&&n<r[1];s++)o.push(n),n+=a;return o.push(r[1]),o}var MD=ZF;var jF=(function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.autoPositionValues={left:1,right:1,top:1,bottom:1},r}return e.prototype.init=function(r,i){this.ecModel=r,this.api=i},e.prototype.render=function(r,i,a,n){if(this.visualMapModel=r,r.get("show")===!1){this.group.removeAll();return}this.doRender(r,i,a,n)},e.prototype.renderBackground=function(r){var i=this.visualMapModel,a=$i(i.get("padding")||0),n=r.getBoundingRect();r.add(new Oe({z2:-1,silent:!0,shape:{x:n.x-a[3],y:n.y-a[0],width:n.width+a[3]+a[1],height:n.height+a[0]+a[2]},style:{fill:i.get("backgroundColor"),stroke:i.get("borderColor"),lineWidth:i.get("borderWidth")}}))},e.prototype.getControllerVisual=function(r,i,a){a=a||{};var n=a.forceState,o=this.visualMapModel,s={};if(i==="color"){var l=o.get("contentColor");s.color=l}function u(p){return s[p]}function f(p,d){s[p]=d}var c=o.controllerVisuals[n||o.getValueState(r)],h=Lt.prepareVisualTypes(c);return E(h,function(p){var d=c[p];a.convertOpacityToAlpha&&p==="opacity"&&(p="colorAlpha",d=c.__alphaForOpacity),Lt.dependsOn(p,i)&&d&&d.applyVisual(r,u,f)}),s[i]},e.prototype.positionGroup=function(r){var i=this.visualMapModel,a=this.api,n=go(i,a).refContainer;Ip(r,i.getBoxLayoutParams(),n)},e.prototype.doRender=function(r,i,a,n){},e.type="visualMap",e})(Mt),Nd=jF;var LD=[["left","right","width"],["top","bottom","height"]];function Rd(t,e,r){var i=t.option,a=i.align;if(a!=null&&a!=="auto")return a;for(var n={width:e.getWidth(),height:e.getHeight()},o=i.orient==="horizontal"?1:0,s=LD[o],l=[0,null,10],u={},f=0;f<3;f++)u[LD[1-o][f]]=l[f],u[s[f]]=f===2?r[0]:i[s[f]];var c=[["x","width",3],["y","height",0]][o],h=Xi(u,n,i.padding);return s[(h.margin[c[2]]||0)+h[c[0]]+h[c[1]]*.5<n[c[1]]*.5?0:1]}function xl(t,e){return E(t||[],function(r){r.dataIndex!=null&&(r.dataIndexInside=r.dataIndex,r.dataIndex=null),r.highlightKey="visualMap"+(e?e.componentIndex:"")}),t}var ra=or,JF=E,OD=Math.min,sx=Math.max,QF=12,eH=6,tH=(function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._shapes={},r._dataInterval=[],r._handleEnds=[],r._hoverLinkDataIndices=[],r}return e.prototype.init=function(r,i){t.prototype.init.call(this,r,i),this._hoverLinkFromSeriesMouseOver=se(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=se(this._hideIndicator,this)},e.prototype.doRender=function(r,i,a,n){(!n||n.type!=="selectDataRange"||n.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var r=this.visualMapModel,i=this.group;this._orient=r.get("orient"),this._useHandle=r.get("calculable"),this._resetInterval(),this._renderBar(i);var a=r.get("text");this._renderEndsText(i,a,0),this._renderEndsText(i,a,1),this._updateView(!0),this.renderBackground(i),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(i)},e.prototype._renderEndsText=function(r,i,a){if(i){var n=i[1-a];n=n!=null?n+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,a===0?-s:l[1]+s],u),c=this._applyTransform(a===0?"bottom":"top",u),h=this._orient,p=this.visualMapModel.textStyleModel;this.group.add(new Pe({style:wr(p,{x:f[0],y:f[1],verticalAlign:p.get("verticalAlign")||(h==="horizontal"?"middle":c),align:p.get("align")||(h==="horizontal"?c:"center"),text:n})}))}},e.prototype._renderBar=function(r){var i=this.visualMapModel,a=this._shapes,n=i.itemSize,o=this._orient,s=this._useHandle,l=Rd(i,this.api,n),u=a.mainGroup=this._createBarGroup(l),f=new we;u.add(f),f.add(a.outOfRange=ID()),f.add(a.inRange=ID(null,s?ND(this._orient):null,se(this._dragHandle,this,"all",!1),se(this._dragHandle,this,"all",!0))),f.setClipPath(new Oe({shape:{x:0,y:0,width:n[0],height:n[1],r:3}}));var c=i.textStyleModel.getTextRect("\u56FD"),h=sx(c.width,c.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(i,u,0,n,h,o),this._createHandle(i,u,1,n,h,o)),this._createIndicator(i,u,n,h,o),r.add(u)},e.prototype._createHandle=function(r,i,a,n,o,s){var l=se(this._dragHandle,this,a,!1),u=se(this._dragHandle,this,a,!0),f=xr(r.get("handleSize"),n[0]),c=Nt(r.get("handleIcon"),-f/2,-f/2,f,f,null,!0),h=ND(this._orient);c.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(g){Ga(g.event)}}),c.x=n[0]/2,c.useStyle(r.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=r.getModel(["emphasis","handleStyle"]).getItemStyle(),Wc(c,!0),i.add(c);var p=this.visualMapModel.textStyleModel,d=new Pe({cursor:h,draggable:!0,drift:l,onmousemove:function(g){Ga(g.event)},ondragend:u,style:wr(p,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var v=[f,0],m=this._shapes;m.handleThumbs[a]=c,m.handleLabelPoints[a]=v,m.handleLabels[a]=d},e.prototype._createIndicator=function(r,i,a,n,o){var s=xr(r.get("indicatorSize"),a[0]),l=Nt(r.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=r.getModel("indicatorStyle").getItemStyle();if(l instanceof rt){var f=l.style;l.useStyle(k({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);i.add(l);var c=this.visualMapModel.textStyleModel,h=new Pe({silent:!0,invisible:!0,style:wr(c,{x:0,y:0,text:""})});this.group.add(h);var p=[(o==="horizontal"?n/2:eH)+a[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=h,d.indicatorLabelPoint=p,this._firstShowIndicator=!0},e.prototype._dragHandle=function(r,i,a,n){if(this._useHandle){if(this._dragging=!i,!i){var o=this._applyTransform([a,n],this._shapes.mainGroup,!0);this._updateInterval(r,o[1]),this._hideIndicator(),this._updateView()}i===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),i?!this._hovering&&this._clearHoverLinkToSeries():PD(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[r],!1)}},e.prototype._resetInterval=function(){var r=this.visualMapModel,i=this._dataInterval=r.getSelected(),a=r.getExtent(),n=[0,r.itemSize[1]];this._handleEnds=[ra(i[0],a,n,!0),ra(i[1],a,n,!0)]},e.prototype._updateInterval=function(r,i){i=i||0;var a=this.visualMapModel,n=this._handleEnds,o=[0,a.itemSize[1]];H0(i,n,o,r,0);var s=a.getExtent();this._dataInterval=[ra(n[0],o,s,!0),ra(n[1],o,s,!0)]},e.prototype._updateView=function(r){var i=this.visualMapModel,a=i.getExtent(),n=this._shapes,o=[0,i.itemSize[1]],s=r?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,a,s,"inRange"),u=this._createBarVisual(a,a,o,"outOfRange");n.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),n.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(r,i,a,n){var o={forceState:n,convertOpacityToAlpha:!0},s=this._makeColorGradient(r,o),l=[this.getControllerVisual(r[0],"symbolSize",o),this.getControllerVisual(r[1],"symbolSize",o)],u=this._createBarPoints(a,l);return{barColor:new Os(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(r,i){var a=100,n=[],o=(r[1]-r[0])/a;n.push({color:this.getControllerVisual(r[0],"color",i),offset:0});for(var s=1;s<a;s++){var l=r[0]+o*s;if(l>r[1])break;n.push({color:this.getControllerVisual(l,"color",i),offset:s/a})}return n.push({color:this.getControllerVisual(r[1],"color",i),offset:1}),n},e.prototype._createBarPoints=function(r,i){var a=this.visualMapModel.itemSize;return[[a[0]-i[0],r[0]],[a[0],r[0]],[a[0],r[1]],[a[0]-i[1],r[1]]]},e.prototype._createBarGroup=function(r){var i=this._orient,a=this.visualMapModel.get("inverse");return new we(i==="horizontal"&&!a?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:i==="horizontal"&&a?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:i==="vertical"&&!a?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},e.prototype._updateHandle=function(r,i){if(this._useHandle){var a=this._shapes,n=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=n.itemSize,u=n.getExtent(),f=this._applyTransform("left",a.mainGroup);JF([0,1],function(c){var h=o[c];h.setStyle("fill",i.handlesColor[c]),h.y=r[c];var p=ra(r[c],[0,l[1]],u,!0),d=this.getControllerVisual(p,"symbolSize");h.scaleX=h.scaleY=d/l[0],h.x=l[0]-d/2;var v=cn(a.handleLabelPoints[c],hu(h,this.group));if(this._orient==="horizontal"){var m=f==="left"||f==="top"?(l[0]-d)/2:(l[0]-d)/-2;v[1]+=m}s[c].setStyle({x:v[0],y:v[1],text:n.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(r,i,a,n){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,c=f.indicator;if(c){c.attr("invisible",!1);var h={convertOpacityToAlpha:!0},p=this.getControllerVisual(r,"color",h),d=this.getControllerVisual(r,"symbolSize"),v=ra(r,s,u,!0),m=l[0]-d/2,g={x:c.x,y:c.y};c.y=v,c.x=m;var y=cn(f.indicatorLabelPoint,hu(c,this.group)),x=f.indicatorLabel;x.attr("invisible",!1);var _=this._applyTransform("left",f.mainGroup),S=this._orient,b=S==="horizontal";x.setStyle({text:(a||"")+o.formatValueText(i),verticalAlign:b?_:"middle",align:b?"center":_});var w={x:m,y:v,style:{fill:p}},M={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};c.x=g.x,c.y=g.y,c.animateTo(w,C),x.animateTo(M,C)}else c.attr(w),x.attr(M);this._firstShowIndicator=!1;var T=this._shapes.handleLabels;if(T)for(var A=0;A<T.length;A++)this.api.enterBlur(T[A])}},e.prototype._enableHoverLinkToSeries=function(){var r=this;this._shapes.mainGroup.on("mousemove",function(i){if(r._hovering=!0,!r._dragging){var a=r.visualMapModel.itemSize,n=r._applyTransform([i.offsetX,i.offsetY],r._shapes.mainGroup,!0,!0);n[1]=OD(sx(0,n[1]),a[1]),r._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=a[0])}}).on("mouseout",function(){r._hovering=!1,!r._dragging&&r._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var r=this.api.getZr();this.visualMapModel.option.hoverLink?(r.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),r.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(r,i){var a=this.visualMapModel,n=a.itemSize;if(a.option.hoverLink){var o=[0,n[1]],s=a.getExtent();r=OD(sx(o[0],r),o[1]);var l=rH(a,s,o),u=[r-l,r+l],f=ra(r,o,s,!0),c=[ra(u[0],o,s,!0),ra(u[1],o,s,!0)];u[0]<o[0]&&(c[0]=-1/0),u[1]>o[1]&&(c[1]=1/0),i&&(c[0]===-1/0?this._showIndicator(f,c[1],"< ",l):c[1]===1/0?this._showIndicator(f,c[0],"> ",l):this._showIndicator(f,f,"\u2248 ",l));var h=this._hoverLinkDataIndices,p=[];(i||PD(a))&&(p=this._hoverLinkDataIndices=a.findTargetDataIndices(c));var d=Wb(h,p);this._dispatchHighDown("downplay",xl(d[0],a)),this._dispatchHighDown("highlight",xl(d[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(r){var i;if(Ea(r.target,function(l){var u=xe(l);if(u.dataIndex!=null)return i=u,!0},!0),!!i){var a=this.ecModel.getSeriesByIndex(i.seriesIndex),n=this.visualMapModel;if(n.isTargetSeries(a)){var o=a.getData(i.dataType),s=o.getStore().get(n.getDataDimensionIndex(o),i.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var i=this._shapes.handleLabels;if(i)for(var a=0;a<i.length;a++)this.api.leaveBlur(i[a])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var r=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",xl(r,this.visualMapModel)),r.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var r=this.api.getZr();r.off("mouseover",this._hoverLinkFromSeriesMouseOver),r.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(r,i,a,n){var o=hu(i,n?null:this.group);return z(r)?cn(r,o,a):sg(r,o,a)},e.prototype._dispatchHighDown=function(r,i){i&&i.length&&this.api.dispatchAction({type:r,batch:i})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e})(Nd);function ID(t,e,r,i){return new xa({shape:{points:t},draggable:!!r,cursor:e,drift:r,onmousemove:function(a){Ga(a.event)},ondragend:i})}function rH(t,e,r){var i=QF/2,a=t.get("hoverLinkDataSize");return a&&(i=ra(a,e,r,!0)/2),i}function PD(t){var e=t.get("hoverLinkOnHandle");return!!(e??t.get("realtime"))}function ND(t){return t==="vertical"?"ns-resize":"ew-resize"}var RD=tH;var kD={type:"selectDataRange",event:"dataRangeSelected",update:"update"},zD=function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(r){r.setSelected(t.selected)})};var VD=[{createOnAllSeries:!0,reset:function(t,e){var r=[];return e.eachComponent("visualMap",function(i){var a=t.pipelineContext;!i.isTargetSeries(t)||a&&a.large||r.push(CD(i.stateList,i.targetVisuals,se(i.getValueState,i),i.getDataDimensionIndex(t.getData())))}),r}},{createOnAllSeries:!0,reset:function(t,e){var r=t.getData(),i=[];e.eachComponent("visualMap",function(a){if(a.isTargetSeries(t)){var n=a.getVisualMeta(se(iH,null,t,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(r);o>=0&&(n.dimension=o,i.push(n))}}),t.getData().setVisual("visualMeta",i)}}];function iH(t,e,r,i){for(var a=e.targetVisuals[i],n=Lt.prepareVisualTypes(a),o={color:ih(t.getData(),"color")},s=0,l=n.length;s<l;s++){var u=n[s],f=a[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(r,c,h)}return o.color;function c(p){return o[p]}function h(p,d){o[p]=d}}var UD=E;function lx(t){var e=t&&t.visualMap;z(e)||(e=e?[e]:[]),UD(e,function(r){if(r){_l(r,"splitList")&&!_l(r,"pieces")&&(r.pieces=r.splitList,delete r.splitList);var i=r.pieces;if(i&&z(i)&&UD(i,function(n){$(n)&&(_l(n,"start")&&!_l(n,"min")&&(n.min=n.start),_l(n,"end")&&!_l(n,"max")&&(n.max=n.end))}),0)var a}})}function _l(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var BD=!1;function pf(t){BD||(BD=!0,t.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),t.registerAction(kD,zD),E(VD,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(lx))}function FD(t){t.registerComponentModel(MD),t.registerComponentView(RD),pf(t)}var aH=(function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._pieceList=[],r}return e.prototype.optionUpdated=function(r,i){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],nH[this._mode].call(this,this._pieceList),this._resetSelected(r,i);var n=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=Q(n)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=B(this._pieceList,function(l){return l=Q(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var r=this.option,i={},a=Lt.listVisualTypes(),n=this.isCategory();E(r.pieces,function(s){E(a,function(l){s.hasOwnProperty(l)&&(i[l]=1)})}),E(i,function(s,l){var u=!1;E(this.stateList,function(f){u=u||o(r,f,l)||o(r.target,f,l)},this),!u&&E(this.stateList,function(f){(r[f]||(r[f]={}))[l]=Pd.get(l,f==="inRange"?"active":"inactive",n)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(r,i){var a=this.option,n=this._pieceList,o=(i?a:r).selected||{};if(a.selected=o,E(n,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),a.selectedMode==="single"){var s=!1;E(n,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(r){this.option.selected=Q(r)},e.prototype.getValueState=function(r){var i=Lt.findPieceIndex(r,this._pieceList);return i!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[i])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(r){var i=[],a=this._pieceList;return this.eachTargetSeries(function(n){var o=[],s=n.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=Lt.findPieceIndex(l,a);f===r&&o.push(u)},this),i.push({seriesId:n.id,dataIndex:o})},this),i},e.prototype.getRepresentValue=function(r){var i;if(this.isCategory())i=r.value;else if(r.value!=null)i=r.value;else{var a=r.interval||[];i=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return i},e.prototype.getVisualMeta=function(r){if(this.isCategory())return;var i=[],a=["",""],n=this;function o(f,c){var h=n.getRepresentValue({interval:f});c||(c=n.getValueState(h));var p=r(h,c);f[0]===-1/0?a[0]=p:f[1]===1/0?a[1]=p:i.push({value:f[0],color:p},{value:f[1],color:p})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return E(s,function(f){var c=f.interval;c&&(c[0]>u&&o([u,c[0]],"outOfRange"),o(c.slice()),u=c[1])},this),{stops:i,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=ks(yl.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e})(yl),nH={splitNumber:function(t){var e=this.option,r=Math.min(e.precision,20),i=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var n=(i[1]-i[0])/a;+n.toFixed(r)!==n&&r<5;)r++;e.precision=r,n=+n.toFixed(r),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var o=0,s=i[0];o<a;s+=n,o++){var l=o===a-1?i[1]:s+n;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),em(t),E(t,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(t){var e=this.option;E(e.categories,function(r){t.push({text:this.formatValueText(r,!0),value:r})},this),HD(e,t)},pieces:function(t){var e=this.option;E(e.pieces,function(r,i){$(r)||(r={value:r});var a={text:"",index:i};if(r.label!=null&&(a.text=r.label),r.hasOwnProperty("value")){var n=a.value=r.value;a.interval=[n,n],a.close=[1,1]}else{for(var o=a.interval=[],s=a.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],p=0;p<3&&o[c]==null;p++)o[c]=r[h[p]],s[c]=l[p],f[c]=p===2;o[c]==null&&(o[c]=u[c])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(a.value=o[0])}a.visual=Lt.retrieveVisuals(r),t.push(a)},this),HD(e,t),em(t),E(t,function(r){var i=r.close,a=[["<","\u2264"][i[1]],[">","\u2265"][i[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,a)},this)}};function HD(t,e){var r=t.inverse;(t.orient==="vertical"?!r:r)&&e.reverse()}var GD=aH;var oH=(function(t){N(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.doRender=function(){var r=this.group;r.removeAll();var i=this.visualMapModel,a=i.get("textGap"),n=i.textStyleModel,o=this._getItemAlign(),s=i.itemSize,l=this._getViewData(),u=l.endsText,f=Ua(i.get("showLabel",!0),!u),c=!i.get("selectedMode");u&&this._renderEndsText(r,u[0],s,f,o),E(l.viewPieceList,function(h){var p=h.piece,d=new we;d.onclick=se(this._onItemClick,this,p),this._enableHoverLink(d,h.indexInModelPieceList);var v=i.getRepresentValue(p);if(this._createItemSymbol(d,v,[0,0,s[0],s[1]],c),f){var m=this.visualMapModel.getValueState(v),g=n.get("align")||o;d.add(new Pe({style:wr(n,{x:g==="right"?-a:s[0]+a,y:s[1]/2,text:p.text,verticalAlign:n.get("verticalAlign")||"middle",align:g,opacity:q(n.get("opacity"),m==="outOfRange"?.5:1)}),silent:c}))}r.add(d)},this),u&&this._renderEndsText(r,u[1],s,f,o),Cw(i.get("orient"),r,i.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},e.prototype._enableHoverLink=function(r,i){var a=this;r.on("mouseover",function(){return n("highlight")}).on("mouseout",function(){return n("downplay")});var n=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:xl(s.findTargetDataIndices(i),s)})}},e.prototype._getItemAlign=function(){var r=this.visualMapModel,i=r.option;if(i.orient==="vertical")return Rd(r,this.api,r.itemSize);var a=i.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(r,i,a,n,o){if(i){var s=new we,l=this.visualMapModel.textStyleModel;s.add(new Pe({style:wr(l,{x:n?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:n?o:"center",text:i})})),r.add(s)}},e.prototype._getViewData=function(){var r=this.visualMapModel,i=B(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=r.get("text"),n=r.get("orient"),o=r.get("inverse");return(n==="horizontal"?o:!o)?i.reverse():a&&(a=a.slice().reverse()),{viewPieceList:i,endsText:a}},e.prototype._createItemSymbol=function(r,i,a,n){var o=Nt(this.getControllerVisual(i,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(i,"color"));o.silent=n,r.add(o)},e.prototype._onItemClick=function(r){var i=this.visualMapModel,a=i.option,n=a.selectedMode;if(n){var o=Q(a.selected),s=i.getSelectedMapKey(r);n==="single"||n===!0?(o[s]=!0,E(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e})(Nd),KD=oH;function YD(t){t.registerComponentModel(GD),t.registerComponentView(KD),pf(t)}function ux(t){Ge(FD),Ge(YD)}var sH={label:{enabled:!0},decal:{show:!1}},WD=ne(),$D=ne(),XD=Ss(lH);function lH(t,e){var r=t.getModel("aria");if(!r.get("enabled"))return;var i=$D(t).scope||($D(t).scope={}),a=Q(sH);Se(a.label,t.getLocaleModel().get("aria"),!1),Se(r.option,a,!1),n(),o();function n(){var f=r.getModel("decal"),c=f.get("show");if(c){var h=ee();t.eachSeries(function(p){p.isColorBySeries()||(WD(p).scope=h.get(p.type)||h.set(p.type,{}))}),t.eachSeries(function(p){if(j(p.enableAriaDecal)){p.enableAriaDecal();return}var d=p.getData();if(p.isColorBySeries()){var x=Vg(p.ecModel,p.name,i,t.getSeriesCount()),_=d.getVisual("decal");d.setVisual("decal",S(_,x))}else{var v=p.getRawData(),m={},g=WD(p).scope;d.each(function(b){var w=d.getRawIndex(b);m[w]=b});var y=v.count();v.each(function(b){var w=m[b],M=v.getName(b)||b+"",C=Vg(p.ecModel,M,g,y),T=d.getItemVisual(w,"decal");d.setItemVisual(w,"decal",S(T,C))})}function S(b,w){var M=b?k(k({},w),b):w;return M.dirty=!0,M}})}}function o(){var f=e.getZr().dom;if(f){var c=t.getLocaleModel().get("aria"),h=r.getModel("label");if(h.option=ue(h.option,c),!!h.get("enabled")){if(f.setAttribute("role","img"),h.get("description")){f.setAttribute("aria-label",h.get("description"));return}var p=t.getSeriesCount(),d=h.get(["data","maxCount"])||10,v=h.get(["series","maxCount"])||10,m=Math.min(p,v),g;if(!(p<1)){var y=l();if(y){var x=h.get(["general","withTitle"]);g=s(x,{title:y})}else g=h.get(["general","withoutTitle"]);var _=[],S=p>1?h.get(["series","multiple","prefix"]):h.get(["series","single","prefix"]);g+=s(S,{seriesCount:p}),t.eachSeries(function(C,T){if(T<m){var A=void 0,D=C.get("name"),L=D?"withName":"withoutName";A=p>1?h.get(["series","multiple",L]):h.get(["series","single",L]),A=s(A,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:u(C.subType)});var O=C.getData();if(O.count()>d){var I=h.get(["data","partialData"]);A+=s(I,{displayCnt:d})}else A+=h.get(["data","allData"]);for(var P=h.get(["data","separator","middle"]),V=h.get(["data","separator","end"]),R=h.get(["data","excludeDimensionId"]),U=[],F=0;F<O.count();F++)if(F<d){var K=O.getName(F),X=R?ke(O.getValues(F),function(Z,de){return pe(R,de)===-1}):O.getValues(F),re=h.get(["data",K?"withName":"withoutName"]);U.push(s(re,{name:K,value:X.join(P)}))}A+=U.join(P)+V,_.push(A)}});var b=h.getModel(["series","multiple","separator"]),w=b.get("middle"),M=b.get("end");g+=_.join(w)+M,f.setAttribute("aria-label",g)}}}}function s(f,c){if(!G(f))return f;var h=f;return E(c,function(p,d){h=h.replace(new RegExp("\\{\\s*"+d+"\\s*\\}","g"),p)}),h}function l(){var f=t.get("title");return f&&f.length&&(f=f[0]),f&&f.text}function u(f){var c=t.getLocaleModel().get(["series","typeNames"]);return c[f]||c.chart}}function fx(t){if(!(!t||!t.aria)){var e=t.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},E(["description","general","series","data"],function(r){e[r]!=null&&(e.label[r]=e[r])})}}function cx(t){t.registerPreprocessor(fx),t.registerVisual(t.PRIORITY.VISUAL.ARIA,XD)}function px(){QM(uH)}function uH(t,e){E(t,function(r){if(!r.model.get(["axisLabel","inside"])){var i=fH(r);if(i){var a=r.isHorizontal()?"height":"width",n=r.model.get(["axisLabel","margin"]);e[a]-=i[a]+n,r.position==="top"?e.y+=i.height+n:r.position==="left"&&(e.x+=i.width+n)}}})}function fH(t){var e=t.model,r=t.scale;if(!e.get(["axisLabel","show"])||r.isBlank())return;var i,a,n=r.getExtent();r instanceof Mh?a=r.count():(i=r.getTicks(),a=i.length);var o=t.getLabelModel(),s=Do(t),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;f<a;f+=u){var c=i?i[f]:{value:n[0]+f},h=s(c,f),p=o.getTextRect(h),d=v(p,o.get("rotate")||0);l?l.union(d):l=d}return l;function v(m,g){var y=g*Math.PI/180,x=m.width,_=m.height,S=x*Math.abs(Math.cos(y))+Math.abs(_*Math.sin(y)),b=x*Math.abs(Math.sin(y))+Math.abs(_*Math.cos(y)),w=new ce(m.x,m.y,S,b);return w}}var hx=Math.sin,dx=Math.cos,qD=Math.PI,Ho=Math.PI*2,cH=180/qD,pH=(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,i,a,n,o){this._add("C",e,r,i,a,n,o)},t.prototype.quadraticCurveTo=function(e,r,i,a){this._add("Q",e,r,i,a)},t.prototype.arc=function(e,r,i,a,n,o){this.ellipse(e,r,i,i,0,a,n,o)},t.prototype.ellipse=function(e,r,i,a,n,o,s,l){var u=s-o,f=!l,c=Math.abs(u),h=Oi(c-Ho)||(f?u>=Ho:-u>=Ho),p=u>0?u%Ho:u%Ho+Ho,d=!1;h?d=!0:Oi(c)?d=!1:d=p>=qD==!!f;var v=e+i*dx(o),m=r+a*hx(o);this._start&&this._add("M",v,m);var g=Math.round(n*cH);if(h){var y=1/this._p,x=(f?1:-1)*(Ho-y);this._add("A",i,a,g,1,+f,e+i*dx(o+x),r+a*hx(o+x)),y>.01&&this._add("A",i,a,g,0,+f,v,m)}else{var _=e+i*dx(s),S=r+a*hx(s);this._add("A",i,a,g,+d,+f,_,S)}},t.prototype.rect=function(e,r,i,a){this._add("M",e,r),this._add("l",i,0),this._add("l",0,a),this._add("l",-i,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,r,i,a,n,o,s,l,u){for(var f=[],c=this._p,h=1;h<arguments.length;h++){var p=arguments[h];if(isNaN(p)){this._invalid=!0;return}f.push(Math.round(p*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})(),kd=pH;var hf="none",hH=Math.round;function dH(t){var e=t.fill;return e!=null&&e!==hf}function vH(t){var e=t.stroke;return e!=null&&e!==hf}var vx=["lineCap","miterLimit","lineJoin"],mH=B(vx,function(t){return"stroke-"+t.toLowerCase()});function mx(t,e,r,i){var a=e.opacity==null?1:e.opacity;if(r instanceof rt){t("opacity",a);return}if(dH(e)){var n=qa(e.fill);t("fill",n.color);var o=e.fillOpacity!=null?e.fillOpacity*n.opacity*a:n.opacity*a;(i||o<1)&&t("fill-opacity",o)}else t("fill",hf);if(vH(e)){var s=qa(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*a:s.opacity*a,c=e.strokeFirst;if((i||u!==1)&&t("stroke-width",u),(i||c)&&t("paint-order",c?"stroke":"fill"),(i||f<1)&&t("stroke-opacity",f),e.lineDash){var h=Mu(r),p=h[0],d=h[1];p&&(d=hH(d||0),t("stroke-dasharray",p.join(",")),(d||i)&&t("stroke-dashoffset",d))}else i&&t("stroke-dasharray",hf);for(var v=0;v<vx.length;v++){var m=vx[v];if(i||e[m]!==Ts[m]){var g=e[m]||Ts[m];g&&t(mH[v],g)}}}else i&&t("stroke",hf)}var ZD="http://www.w3.org/2000/svg",gx="http://www.w3.org/1999/xlink",jD="http://www.w3.org/2000/xmlns/",JD="http://www.w3.org/XML/1998/namespace",yx="ecmeta_";function zd(t){return document.createElementNS(ZD,t)}function ht(t,e,r,i,a){return{tag:t,attrs:r||{},children:i,text:a,key:e}}function gH(t,e){var r=[];if(e)for(var i in e){var a=e[i],n=i;a!==!1&&(a!==!0&&a!=null&&(n+='="'+a+'"'),r.push(n))}return"<"+t+" "+r.join(" ")+">"}function yH(t){return"</"+t+">"}function df(t,e){e=e||{};var r=e.newline?`
18
- `:"";function i(a){var n=a.children,o=a.tag,s=a.attrs,l=a.text;return gH(o,s)+(o!=="style"?dt(l):l||"")+(n?""+r+B(n,function(u){return i(u)}).join(r)+r:"")+yH(o)}return i(t)}function QD(t,e,r){r=r||{};var i=r.newline?`
19
- `:"",a=" {"+i,n=i+"}",o=B(ae(t),function(l){return l+a+B(ae(t[l]),function(u){return u+":"+t[l][u]+";"}).join(i)+n}).join(i),s=B(ae(e),function(l){return"@keyframes "+l+a+B(ae(e[l]),function(u){return u+a+B(ae(e[l][u]),function(f){var c=e[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(i)+n}).join(i)+n}).join(i);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(i)}function vf(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function xx(t,e,r,i){return ht("svg","root",{width:t,height:e,xmlns:ZD,"xmlns:xlink":gx,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+t+" "+e:!1},r)}var xH=0;function Vd(){return xH++}var eO={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"},Go="transform-origin";function _H(t,e,r){var i=k({},t.shape);k(i,e),t.buildPath(r,i);var a=new kd;return a.reset(sc(t)),r.rebuildPath(a,1),a.generateStr(),a.getStr()}function bH(t,e){var r=e.originX,i=e.originY;(r||i)&&(t[Go]=r+"px "+i+"px")}var SH={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function rO(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function CH(t,e,r){var i=t.shape.paths,a={},n,o;if(E(i,function(l){var u=vf(r.zrId);u.animation=!0,mf(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,h=ae(f),p=h.length;if(p){o=h[p-1];var d=f[o];for(var v in d){var m=d[v];a[v]=a[v]||{d:""},a[v].d+=m.d||""}for(var g in c){var y=c[g].animation;y.indexOf(o)>=0&&(n=y)}}}),!!n){e.d=!1;var s=rO(a,r);return n.replace(o,s)}}function tO(t){return G(t)?eO[t]?"cubic-bezier("+eO[t]+")":cs(t)?t:"":""}function mf(t,e,r,i){var a=t.animators,n=a.length,o=[];if(t instanceof Jc){var s=CH(t,e,r);if(s)o.push(s);else if(!n)return}else if(!n)return;for(var l={},u=0;u<n;u++){var f=a[u],c=[f.getMaxTime()/1e3+"s"],h=tO(f.getClip().easing),p=f.getDelay();h?c.push(h):c.push("linear"),p&&c.push(p/1e3+"s"),f.getLoop()&&c.push("infinite");var d=c.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(f)}function v(y){var x=y[1],_=x.length,S={},b={},w={},M="animation-timing-function";function C(Ke,Le,We){for(var ve=Ke.getTracks(),be=Ke.getMaxTime(),zt=0;zt<ve.length;zt++){var et=ve[zt];if(et.needsAnimate()){var _t=et.keyframes,bt=et.propName;if(We&&(bt=We(bt)),bt)for(var Jt=0;Jt<_t.length;Jt++){var aa=_t[Jt],Dr=Math.round(aa.time/be*100)+"%",dr=tO(aa.easing),na=aa.rawValue;(G(na)||me(na))&&(Le[Dr]=Le[Dr]||{},Le[Dr][bt]=aa.rawValue,dr&&(Le[Dr][M]=dr))}}}}for(var T=0;T<_;T++){var A=x[T],D=A.targetName;D?D==="shape"&&C(A,b):!i&&C(A,S)}for(var L in S){var O={};Za(O,t),k(O,S[L]);var I=lc(O),P=S[L][M];w[L]=I?{transform:I}:{},bH(w[L],O),P&&(w[L][M]=P)}var V,R=!0;for(var L in b){w[L]=w[L]||{};var U=!V,P=b[L][M];U&&(V=new Kt);var F=V.len();V.reset(),w[L].d=_H(t,b[L],V);var K=V.len();if(!U&&F!==K){R=!1;break}P&&(w[L][M]=P)}if(!R)for(var L in w)delete w[L].d;if(!i)for(var T=0;T<_;T++){var A=x[T],D=A.targetName;D==="style"&&C(A,w,function(ve){return SH[ve]})}for(var X=ae(w),re=!0,Z,T=1;T<X.length;T++){var de=X[T-1],ie=X[T];if(w[de][Go]!==w[ie][Go]){re=!1;break}Z=w[de][Go]}if(re&&Z){for(var L in w)w[L][Go]&&delete w[L][Go];e[Go]=Z}if(ke(X,function(Ke){return ae(w[Ke]).length>0}).length){var Ue=rO(w,r);return Ue+" "+y[0]+" both"}}for(var m in l){var s=v(l[m]);s&&o.push(s)}if(o.length){var g=r.zrId+"-cls-"+Vd();r.cssNodes["."+g]={animation:o.join(",")},e.class=g}}function aO(t,e,r){if(!t.ignore)if(t.isSilent()){var i={"pointer-events":"none"};iO(i,e,r,!0)}else{var a=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},n=a.fill;if(!n){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&&(n=kl(l))}var u=a.lineWidth;if(u){var f=!a.strokeNoScale&&t.transform?t.transform[0]:1;u=u/f}var i={cursor:"pointer"};n&&(i.fill=n),a.stroke&&(i.stroke=a.stroke),u&&(i["stroke-width"]=u),iO(i,e,r,!0)}}function iO(t,e,r,i){var a=JSON.stringify(t),n=r.cssStyleCache[a];n||(n=r.zrId+"-cls-"+Vd(),r.cssStyleCache[a]=n,r.cssNodes["."+n+(i?":hover":"")]=t),e.class=e.class?e.class+" "+n:n}var gf=Math.round;function lO(t){return t&&G(t.src)}function uO(t){return t&&j(t.toDataURL)}function _x(t,e,r,i){mx(function(a,n){var o=a==="fill"||a==="stroke";o&&oc(n)?Tx(e,t,a,i):o&&zl(n)?Ex(r,t,a,i):t[a]=n,o&&i.ssr&&n==="none"&&(t["pointer-events"]="visible")},e,r,!1),DH(r,t,i)}function bx(t,e){var r=Pb(e);r&&(r.each(function(i,a){i!=null&&(t[(yx+a).toLowerCase()]=i+"")}),e.isSilent()&&(t[yx+"silent"]="true"))}function nO(t){return Oi(t[0]-1)&&Oi(t[1])&&Oi(t[2])&&Oi(t[3]-1)}function wH(t){return Oi(t[4])&&Oi(t[5])}function Sx(t,e,r){if(e&&!(wH(e)&&nO(e))){var i=r?10:1e4;t.transform=nO(e)?"translate("+gf(e[4]*i)/i+" "+gf(e[5]*i)/i+")":rb(e)}}function oO(t,e,r){for(var i=t.points,a=[],n=0;n<i.length;n++)a.push(gf(i[n][0]*r)/r),a.push(gf(i[n][1]*r)/r);e.points=a.join(" ")}function sO(t){return!t.smooth}function TH(t){var e=B(t,function(r){return typeof r=="string"?[r,r]:r});return function(r,i,a){for(var n=0;n<e.length;n++){var o=e[n],s=r[o[0]];s!=null&&(i[o[1]]=gf(s*a)/a)}}}var EH={circle:[TH(["cx","cy","r"])],polyline:[oO,sO],polygon:[oO,sO]};function AH(t){for(var e=t.animators,r=0;r<e.length;r++)if(e[r].targetName==="shape")return!0;return!1}function fO(t,e){var r=t.style,i=t.shape,a=EH[t.type],n={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&sc(t)||4;if(a&&!e.willUpdate&&!(a[1]&&!a[1](i))&&!(o&&AH(t))&&!(l<1)){s=t.type;var f=Math.pow(10,u);a[0](i,n,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 p=h.getVersion(),d=t,v=d.__svgPathBuilder;(d.__svgPathVersion!==p||!v||l!==d.__svgPathStrokePercent)&&(v||(v=d.__svgPathBuilder=new kd),v.reset(u),h.rebuildPath(v,l),v.generateStr(),d.__svgPathVersion=p,d.__svgPathStrokePercent=l),n.d=v.getStr()}return Sx(n,t.transform),_x(n,r,t,e),bx(n,t),e.animation&&mf(t,n,e),e.emphasis&&aO(t,n,e),ht(s,t.id+"",n)}function MH(t,e){var r=t.style,i=r.image;if(i&&!G(i)&&(lO(i)?i=i.src:uO(i)&&(i=i.toDataURL())),!!i){var a=r.x||0,n=r.y||0,o=r.width,s=r.height,l={href:i,width:o,height:s};return a&&(l.x=a),n&&(l.y=n),Sx(l,t.transform),_x(l,r,t,e),bx(l,t),e.animation&&mf(t,l,e),ht("image",t.id+"",l)}}function LH(t,e){var r=t.style,i=r.text;if(i!=null&&(i+=""),!(!i||isNaN(r.x)||isNaN(r.y))){var a=r.font||gr,n=r.x||0,o=ab(r.y||0,Hn(a),r.textBaseline),s=ib[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(Om(r)){var u="",f=r.fontStyle,c=Dm(r.fontSize);if(!parseFloat(c))return;var h=r.fontFamily||Qd,p=r.fontWeight;u+="font-size:"+c+";font-family:"+h+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),p&&p!=="normal"&&(u+="font-weight:"+p+";"),l.style=u}else l.style="font: "+a;return i.match(/\s/)&&(l["xml:space"]="preserve"),n&&(l.x=n),o&&(l.y=o),Sx(l,t.transform),_x(l,r,t,e),bx(l,t),e.animation&&mf(t,l,e),ht("text",t.id+"",l,void 0,i)}}function Cx(t,e){if(t instanceof he)return fO(t,e);if(t instanceof rt)return MH(t,e);if(t instanceof eo)return LH(t,e)}function DH(t,e,r){var i=t.style;if(nb(i)){var a=ob(t),n=r.shadowCache,o=n[a];if(!o){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=i.shadowOffsetX||0,c=i.shadowOffsetY||0,h=i.shadowBlur,p=qa(i.shadowColor),d=p.opacity,v=p.color,m=h/2/l,g=h/2/u,y=m+" "+g;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=ht("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[ht("feDropShadow","",{dx:f/l,dy:c/u,stdDeviation:y,"flood-color":v,"flood-opacity":d})]),n[a]=o}e.filter=Vl(o)}}function Tx(t,e,r,i){var a=t[r],n,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(ac(a))n="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(nc(a))n="radialGradient",o.cx=q(a.x,.5),o.cy=q(a.y,.5),o.r=q(a.r,.5);else return;for(var s=a.colorStops,l=[],u=0,f=s.length;u<f;++u){var c=ic(s[u].offset)*100+"%",h=s[u].color,p=qa(h),d=p.color,v=p.opacity,m={offset:c};m["stop-color"]=d,v<1&&(m["stop-opacity"]=v),l.push(ht("stop",u+"",m))}var g=ht(n,"",o,l),y=df(g),x=i.gradientCache,_=x[y];_||(_=i.zrId+"-g"+i.gradientIdx++,x[y]=_,o.id=_,i.defs[_]=ht(n,_,o,l)),e[r]=Vl(_)}function Ex(t,e,r,i){var a=t.style[r],n=t.getBoundingRect(),o={},s=a.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",c;if(Av(a)){var h=a.imageWidth,p=a.imageHeight,d=void 0,v=a.image;if(G(v)?d=v:lO(v)?d=v.src:uO(v)&&(d=v.toDataURL()),typeof Image>"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";$e(h,m),$e(p,m)}else if(h==null||p==null){var g=function(T,A){if(T){var D=T.elm,L=h||A.width,O=p||A.height;T.tag==="pattern"&&(u?(O=1,L/=n.width):f&&(L=1,O/=n.height)),T.attrs.width=L,T.attrs.height=O,D&&(D.setAttribute("width",L),D.setAttribute("height",O))}},y=jl(d,null,t,function(T){l||g(b,T),g(c,T)});y&&y.width&&y.height&&(h=h||y.width,p=p||y.height)}c=ht("image","img",{href:d,width:h,height:p}),o.width=h,o.height=p}else a.svgElement&&(c=Q(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(c){var x,_;l?x=_=1:u?(_=1,x=o.width/n.width):f?(x=1,_=o.height/n.height):o.patternUnits="userSpaceOnUse",x!=null&&!isNaN(x)&&(o.width=x),_!=null&&!isNaN(_)&&(o.height=_);var S=lc(a);S&&(o.patternTransform=S);var b=ht("pattern","",o,[c]),w=df(b),M=i.patternCache,C=M[w];C||(C=i.zrId+"-p"+i.patternIdx++,M[w]=C,o.id=C,b=i.defs[C]=ht("pattern",C,o,[c])),e[r]=Vl(C)}}function cO(t,e,r){var i=r.clipPathCache,a=r.defs,n=i[t.id];if(!n){n=r.zrId+"-c"+r.clipPathIdx++;var o={id:n};i[t.id]=n,a[n]=ht("clipPath",n,o,[fO(t,r)])}e["clip-path"]=Vl(n)}function Ax(t){return document.createTextNode(t)}function An(t,e,r){t.insertBefore(e,r)}function Mx(t,e){t.removeChild(e)}function Lx(t,e){t.appendChild(e)}function Dx(t){return t.parentNode}function Ox(t){return t.nextSibling}function Ud(t,e){t.textContent=e}var pO=58,IH=120,PH=ht("","");function Ix(t){return t===void 0}function ia(t){return t!==void 0}function NH(t,e,r){for(var i={},a=e;a<=r;++a){var n=t[a].key;n!==void 0&&(i[n]=a)}return i}function yf(t,e){var r=t.key===e.key,i=t.tag===e.tag;return i&&r}function xf(t){var e,r=t.children,i=t.tag;if(ia(i)){var a=t.elm=zd(i);if(Fd(PH,t),z(r))for(e=0;e<r.length;++e){var n=r[e];n!=null&&Lx(a,xf(n))}else ia(t.text)&&!$(t.text)&&Lx(a,Ax(t.text))}else t.elm=Ax(t.text);return t.elm}function hO(t,e,r,i,a){for(;i<=a;++i){var n=r[i];n!=null&&An(t,xf(n),e)}}function Bd(t,e,r,i){for(;r<=i;++r){var a=e[r];if(a!=null)if(ia(a.tag)){var n=Dx(a.elm);Mx(n,a.elm)}else Mx(t,a.elm)}}function Fd(t,e){var r,i=e.elm,a=t&&t.attrs||{},n=e.attrs||{};if(a!==n){for(r in n){var o=n[r],s=a[r];s!==o&&(o===!0?i.setAttribute(r,""):o===!1?i.removeAttribute(r):r==="style"?i.style.cssText=o:r.charCodeAt(0)!==IH?i.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?i.setAttributeNS(jD,r,o):r.charCodeAt(3)===pO?i.setAttributeNS(JD,r,o):r.charCodeAt(5)===pO?i.setAttributeNS(gx,r,o):i.setAttribute(r,o))}for(r in a)r in n||i.removeAttribute(r)}}function RH(t,e,r){for(var i=0,a=0,n=e.length-1,o=e[0],s=e[n],l=r.length-1,u=r[0],f=r[l],c,h,p,d;i<=n&&a<=l;)o==null?o=e[++i]:s==null?s=e[--n]:u==null?u=r[++a]:f==null?f=r[--l]:yf(o,u)?(bl(o,u),o=e[++i],u=r[++a]):yf(s,f)?(bl(s,f),s=e[--n],f=r[--l]):yf(o,f)?(bl(o,f),An(t,o.elm,Ox(s.elm)),o=e[++i],f=r[--l]):yf(s,u)?(bl(s,u),An(t,s.elm,o.elm),s=e[--n],u=r[++a]):(Ix(c)&&(c=NH(e,i,n)),h=c[u.key],Ix(h)?An(t,xf(u),o.elm):(p=e[h],p.tag!==u.tag?An(t,xf(u),o.elm):(bl(p,u),e[h]=void 0,An(t,p.elm,o.elm))),u=r[++a]);(i<=n||a<=l)&&(i>n?(d=r[l+1]==null?null:r[l+1].elm,hO(t,d,r,a,l)):Bd(t,e,i,n))}function bl(t,e){var r=e.elm=t.elm,i=t.children,a=e.children;t!==e&&(Fd(t,e),Ix(e.text)?ia(i)&&ia(a)?i!==a&&RH(r,i,a):ia(a)?(ia(t.text)&&Ud(r,""),hO(r,null,a,0,a.length-1)):ia(i)?Bd(r,i,0,i.length-1):ia(t.text)&&Ud(r,""):t.text!==e.text&&(ia(i)&&Bd(r,i,0,i.length-1),Ud(r,e.text)))}function Px(t,e){if(yf(t,e))bl(t,e);else{var r=t.elm,i=Dx(r);xf(e),i!==null&&(An(i,e.elm,Ox(r)),Bd(i,[t],0,0))}return e}var kH=0,zH=(function(){function t(e,r,i){if(this.type="svg",this.configLayer=VH("configLayer"),this.storage=r,this._opts=i=k({},i),this.root=e,this._id="zr"+kH++,this._oldVNode=xx(i.width,i.height),e&&!i.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var n=this._svgDom=this._oldVNode.elm=zd("svg");Fd(null,this._oldVNode),a.appendChild(n),e.appendChild(a)}this.resize(i.width,i.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",Px(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return Cx(e,vf(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),i=this._width,a=this._height,n=vf(this._id);n.animation=e.animation,n.willUpdate=e.willUpdate,n.compress=e.compress,n.emphasis=e.emphasis,n.ssr=this._opts.ssr;var o=[],s=this._bgVNode=UH(i,a,this._backgroundColor,n);s&&o.push(s);var l=e.compress?null:this._mainVNode=ht("g","main",{},[]);this._paintList(r,n,l?l.children:o),l&&o.push(l);var u=B(ae(n.defs),function(h){return n.defs[h]});if(u.length&&o.push(ht("defs","defs",{},u)),e.animation){var f=QD(n.cssNodes,n.cssAnims,{newline:!0});if(f){var c=ht("style","stl",{},[],f);o.push(c)}}return xx(i,a,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},df(this.renderToVNode({animation:q(e.cssAnimation,!0),emphasis:q(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:q(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,i){for(var a=e.length,n=[],o=0,s,l,u=0,f=0;f<a;f++){var c=e[f];if(!c.invisible){var h=c.__clipPaths,p=h&&h.length||0,d=l&&l.length||0,v=void 0;for(v=Math.max(p-1,d-1);v>=0&&!(h&&l&&h[v]===l[v]);v--);for(var m=d-1;m>v;m--)o--,s=n[o-1];for(var g=v+1;g<p;g++){var y={};cO(h[g],y,r);var x=ht("g","clip-g-"+u++,y,[]);(s?s.children:i).push(x),n[o++]=x,s=x}l=h;var _=Cx(c,r);_&&(s?s.children:i).push(_)}}},t.prototype.resize=function(e,r){var i=this._opts,a=this.root,n=this._viewport;if(e!=null&&(i.width=e),r!=null&&(i.height=r),a&&n&&(n.style.display="none",e=uy(a,0,i),r=uy(a,1,i),n.style.display=""),this._width!==e||this._height!==r){if(this._width=e,this._height=r,n){var o=n.style;o.width=e+"px",o.height=r+"px"}if(zl(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(),i="data:image/svg+xml;";return e?(r=sb(r),r&&i+"base64,"+r):i+"charset=UTF-8,"+encodeURIComponent(r)},t})();function VH(t){return function(){}}function UH(t,e,r,i){var a;if(r&&r!=="none")if(a=ht("rect","bg",{width:t,height:e,x:"0",y:"0"}),oc(r))Tx({fill:r},a.attrs,"fill",i);else if(zl(r))Ex({style:{fill:r},dirty:Xe,getBoundingRect:function(){return{width:t,height:e}}},a.attrs,"fill",i);else{var n=qa(r),o=n.color,s=n.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}var dO=zH;function Nx(t){t.registerPainter("svg",dO)}function Rx(t){let e=getComputedStyle(t),r=(n,o)=>e.getPropertyValue(n).trim()||o,i=document.documentElement.dataset.bluuiTheme==="dark",a=matchMedia("(forced-colors: active)").matches;if(a){let n=document.createElement("span");n.style.cssText="position:absolute;visibility:hidden;color:Canvas;background-color:CanvasText;forced-color-adjust:none",t.append(n);let o=getComputedStyle(n),s=o.color,l=o.backgroundColor;return n.remove(),{surface:s,text:l,muted:l,border:l,dark:i,forcedColors:a,read:()=>"",palette:Array(8).fill(l)}}return{forcedColors:a,surface:r("--bluui-surface","#fff"),text:r("--bluui-text","#182230"),muted:r("--bluui-text-muted","#667085"),border:r("--bluui-border","#e3e5ed"),dark:i,read:n=>e.getPropertyValue(n),palette:Xd(i)}}function vO(t){let e="",r=0;return{update(i){if(i===e)return;let a=!e;if(e=i,window.clearTimeout(r),a){t.textContent=i;return}t.textContent="",r=window.setTimeout(()=>{t.isConnected&&(t.textContent=i)},150)},destroy(){window.clearTimeout(r)}}}function Ko(t,e="",r){let i=document.createElement(t);return i.className=e,r!==void 0&&(i.textContent=r),i}function BH(t){if(!t.isConnected)throw new Error("Mount BluUI into an element connected to the document.");let e=Ko("div");return e.id="bluui-community-"+crypto.randomUUID(),t.append(e),e}function kx(t,e,r){let i=BH(t),a={...e},n=!1,o=s=>{if(n)throw new Error("Component is destroyed.");a={...a,...s},r(i,a,o)};try{o({})}catch(s){throw i.remove(),s}return{element:i,update:o,destroy(){n||(n=!0,i.remove())}}}function zx(t,e){return t+(e?" "+e:"")}var Yo=typeof window>"u"?globalThis:window,mO="__bluuiCommunityModulesV1",gO=Yo[mO]||(Yo[mO]={families:Object.create(null)}),FH=Yo.BluUICommunityRuntime&&!Object.isFrozen(Yo.BluUICommunityRuntime)?Yo.BluUICommunityRuntime:Object.assign({},Yo.BluUICommunityRuntime||{});Yo.BluUICommunityRuntime=FH;function yO(t,e){return gO.families[t]||(gO.families[t]=e())}var xue=yO("common",()=>({instances:new Map,hosts:new Map,serial:0,overlays:[],inertState:new Map,oldOverflow:void 0}));function Vx(t,e,r={}){return kx(t,e,(i,a,n)=>{let o=i.contains(document.activeElement),s=Ko("div",zx("blu-chip blu-chip--"+(a.Color||"Default").toLowerCase()+(a.IsSelected?" blu-chip--selected":"")+(a.IsDisabled?" blu-chip--disabled":""),a.ExtendedClass));if(a.IsSelectable){let l=Ko("button","blu-chip__select",a.Label);l.type="button",l.disabled=!!a.IsDisabled,l.setAttribute("aria-pressed",String(!!a.IsSelected)),l.onclick=()=>{n({IsSelected:!a.IsSelected}),r.SelectionChanged?.(!a.IsSelected)},s.append(l)}else s.append(Ko("span","blu-chip__label",a.Label));if(a.IsRemovable){let l=Ko("button","blu-chip__remove","\xD7");l.type="button",l.disabled=!!a.IsDisabled,l.setAttribute("aria-label","Remove "+a.Label),l.onclick=()=>{let u=Array.from(document.querySelectorAll('a[href],button:not(:disabled),input:not(:disabled),select:not(:disabled),textarea:not(:disabled),[tabindex="0"]')).filter(c=>c.getClientRects().length&&!i.contains(c)),f=u.find(c=>!!(i.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_FOLLOWING))||u.at(-1);i.replaceChildren(),r.Removed?.(),document.activeElement===document.body&&f?.focus()},s.append(l)}i.replaceChildren(s),o&&i.querySelector("button")?.focus()})}function _f(t,e={}){return kx(t,e,(r,i)=>{r.setAttribute("role","status"),r.setAttribute("aria-label",i.AccessibleLabel||"Loading"),r.setAttribute("aria-busy","true");let a=Ko("div",zx("blu-skeleton blu-skeleton--"+(i.Shape||"Text").toLowerCase()+(i.IsAnimated===!1?"":" blu-skeleton--animated"),i.ExtendedClass));a.setAttribute("aria-hidden","true"),a.style.width=i.Width||"100%",a.style.height=i.Height||"16px",r.replaceChildren(a)})}function xO(t){let e=document.createElement("div");e.className="blu-chart__skeleton",e.setAttribute("aria-hidden","true");let r=document.createElement("div");r.className="blu-chart__skeleton-key";let i=document.createElement("div"),a=document.createElement("div");r.append(i,a);let n=document.createElement("div");n.className="blu-chart__skeleton-plot",e.append(r,n);let o=document.createElement("span");o.className="blu-chart__state-message",t.replaceChildren(e,o);let s=[_f(i,{Shape:"Text",Width:"88px",Height:"12px",IsAnimated:!1}),_f(a,{Shape:"Text",Width:"64px",Height:"12px",IsAnimated:!1}),_f(n,{Shape:"Rectangle",Width:"100%",Height:"100%",IsAnimated:!1})],l=!1;return{update(u,f,c,h){t.hidden=!u&&!f,t.classList.toggle("blu-chart__state--loading",u),e.hidden=!u,o.textContent=c;let p=u&&h;p!==l&&(l=p,s.forEach(d=>d.update({IsAnimated:p})))},destroy(){s.forEach(u=>u.destroy())}}}function Wo(t,e,r,i={}){return(t.Messages?.[e]??r).replace(/\{(\w+)\}/g,(a,n)=>i[n]??a)}function _O(t,e,r,i){let a=r.series||[],n=[],o=(c,h,p={})=>Wo(e,c,h,p),s=(c,h)=>c?.itemStyle?.color||c?.itemStyle?.areaColor||h?.itemStyle?.color||h?.lineStyle?.color||i.palette[0],l=(c,h,p,d,v,m,g,y,x)=>n.push({id:m,label:v,color:s(c,h),value:De(g,e),compactValue:De(g,e,!0),detail:y,percent:x,targets:[{seriesIndex:p,dataIndex:d}]});if(e.Series)e.Series.forEach((c,h)=>{let p=a[h],d=c.Values.flatMap((g,y)=>g===null?[]:[{v:g,i:y}]),v=d.at(-1),m=t==="radar";n.push({id:c.Key,label:c.Label||c.Name,color:p?.lineStyle?.color||s(null,p),line:p?.type==="line"||m,symbol:p?.symbol,dash:p?.lineStyle?.type,value:m?`${d.length} / ${e.Categories.length}`:De(v?.v??null,e),compactValue:m?void 0:De(v?.v??null,e,!0),detail:m?o("MeasuresReported","Measures reported"):v?o("Latest","Latest \xB7 {label}",{label:e.Categories[v.i].Label}):o("LatestValue","Latest value"),targets:[{seriesIndex:h}]})});else if(["pie","doughnut","nightingale","funnel"].includes(t))a.forEach((c,h)=>{let p=c.data.reduce((v,m)=>v+(m.value??0),0),d=e.Nested?e.Rings?.[h]?.Label:void 0;c.data.forEach((v,m)=>l(v,c,h,m,v.name,v.point.Key,v.value,d,t!=="funnel"&&v.value!==null&&p>0?v.value/p:void 0))});else if(t==="scatter")a.forEach((c,h)=>n.push({id:c.name,label:c.name,color:s(null,c),symbol:c.symbol,value:String(c.data.length),detail:o("Observations","Observations"),targets:[{seriesIndex:h}]}));else if(t==="treemap"){let c=Ef(e.Nodes),h=e.Nodes.filter(g=>g.ParentKey===null),p=h.reduce((g,y)=>g+(c.get(y.Key)??0),0),d=new Map,v=1,m=g=>g.forEach(y=>{d.set(y.id,v++),m(y.children||[])});m(a[0].data),h.forEach((g,y)=>{let x=c.get(g.Key);l(a[0].data[y],a[0],0,d.get(g.Key),g.Label,g.Key,x,o("TopLevelGroup","Top-level group"),p>0&&x!==null?x/p:void 0)})}else t==="sankey"&&e.Nodes.forEach((c,h)=>{let p=e.Links.filter(v=>v.TargetKey===c.Key).reduce((v,m)=>v+m.Value,0),d=e.Links.filter(v=>v.SourceKey===c.Key).reduce((v,m)=>v+m.Value,0);l(a[0].data[h],a[0],0,h,c.Label,c.Key,Math.max(p,d),o("NodeThroughput","Node throughput"))});let u=Array.isArray(r.visualMap)?r.visualMap[0]:r.visualMap,f=u?{label:t==="geo-map"?o("RegionValue","Region value"):t==="calendar-heatmap"?o("DailyValue","Daily value"):o("CellValue","Cell value"),min:u.min,max:u.max,colors:[...u.inRange.color]}:void 0;return t==="geo-map"?a.forEach((c,h)=>c.data.forEach((p,d)=>{(c.type==="scatter"||e.Regions.find(v=>v.Key===p.point.Key)?.Color)&&l(p,c,h,d,p.point.Label,p.point.Key,p.point.Value,c.type==="scatter"?o("LocationValue","Location \xB7 size = value"):o("CustomRegionColor","Custom region color"))})):t==="calendar-heatmap"&&a[0]?.data.forEach((c,h)=>{e.Items.find(p=>p.Key===c.point.Key)?.Color&&l(c,a[0],0,h,c.point.Label,c.point.Key,c.point.Value,o("CustomDayColor","Custom day color"))}),{entries:n,scale:f,note:t==="scatter"&&e.Bubble?o("BubbleSize","Bubble size represents Size."):void 0}}function Ux(t,e){return{value:e.LegendShowValues===!1?"":t.compactValue||t.value||"",detail:e.LegendShowValues===!1?"":t.detail||"",percent:e.LegendShowPercentages&&t.percent!==void 0?new Intl.NumberFormat(e.Locale||"en-US",{style:"percent",maximumFractionDigits:1}).format(t.percent):""}}function bO(t){let e=H(t.color),r=t.symbol||"rect",i=r.startsWith("empty"),a=r.replace(/^empty/,"").toLowerCase(),n=i?"none":e,o=t.dash==="dashed"?"5 3":t.dash==="dotted"?"2 3":"",s=a.includes("diamond")?'<path d="M14 2 20 8 14 14 8 8Z"':a.includes("triangle")||a==="arrow"?'<path d="M14 2 20 13 8 13Z"':a.includes("circle")||a==="pin"?'<circle cx="14" cy="8" r="4"':'<rect x="9" y="3" width="10" height="10" rx="2"';return`<svg viewBox="${t.line?"0 0 28 16":"6 0 16 16"}" width="${t.line?28:16}" height="16" aria-hidden="true">${t.line?`<path d="M1 8H27" fill="none" stroke="${e}" stroke-width="2" stroke-dasharray="${o}"/>`:""}${s} fill="${n}" stroke="${e}" stroke-width="1.5"/></svg>`}function SO(t,e,r){let i=t.querySelector(".blu-chart__stage"),a=document.createElement("div");a.className="blu-chart__body",i.before(a),a.append(i);let n=document.createElement("div");n.className="blu-chart__legend",n.setAttribute("role","group"),n.setAttribute("aria-label","Chart legend"),a.append(n);let o=null,s={entries:[]},l={},u="",f=[],c=t.querySelector(".blu-chart__status");function h(g){let y=Ux(g,l);return`<span class="blu-chart__legend-heading"><span class="blu-chart__legend-marker">${bO(g)}</span><span class="blu-chart__legend-text blu-chart__legend-label">${H(g.label)}</span><span class="blu-chart__legend-text blu-chart__legend-check" aria-hidden="true">\u2713</span></span>${y.value||y.percent?`<span class="blu-chart__legend-numbers">${y.value?`<span class="blu-chart__legend-text blu-chart__legend-value">${H(y.value)}</span>`:""}${y.percent?`<span class="blu-chart__legend-text blu-chart__legend-percent">${H(y.percent)}</span>`:""}</span>`:""}${y.detail?`<span class="blu-chart__legend-text blu-chart__legend-detail">${H(y.detail)}</span>`:""}${l.LegendStyle==="ValueList"?`<span class="blu-chart__legend-track" aria-hidden="true"><span style="width:${g.percent===void 0?100:Math.max(0,Math.min(100,g.percent*100))}%;background:${H(g.color)}"></span></span>`:""}`}function p(g,y){let x=Ux(y,l);g.dataset.legendKey=y.id,g.setAttribute("aria-label",`${Wo(l,"Highlight","Highlight {label}",{label:y.label})}${x.detail?" \xB7 "+x.detail:""}${x.value?": "+y.value:""}${x.percent?" \xB7 "+x.percent:""}`),g.innerHTML=h(y)}function d(){e.dispatchAction({type:"downplay"}),s.entries.find(y=>y.id===o)?.targets.forEach(y=>e.dispatchAction({type:"highlight",...y})),f.forEach(y=>{y.instance.update({IsSelected:y.entry.id===o}),p(y.host.querySelector("button"),y.entry)}),n.querySelectorAll("[data-legend-key]").forEach(y=>y.setAttribute("aria-pressed",String(y.dataset.legendKey===o)))}function v(g){o=o===g?null:g,d(),c.textContent=o?Wo(l,"Highlighting","Highlighting {label}. Activate again to clear.",{label:s.entries.find(y=>y.id===o).label}):Wo(l,"HighlightCleared","Legend highlight cleared.")}function m(){f.splice(0).forEach(g=>g.instance.destroy())}return{prepare(g,y){l=g,n.setAttribute("aria-label",Wo(g,"Legend","Chart legend"));let x=g.LegendPosition||"Top",_=t.clientWidth<520&&["Left","Right"].includes(x)?"Bottom":x;a.dataset.legendPosition=_,n.hidden=g.ShowLegend===!1||y,a.classList.toggle("blu-chart__body--no-legend",n.hidden),n.dataset.style=g.LegendStyle||"Standard",n.hidden&&(o=null)},render(g,y,x){s=_O(r,g,y,x),s.entries.some(w=>w.id===o)||(o=null),!s.entries.length&&!s.scale&&(n.hidden=!0,a.classList.add("blu-chart__body--no-legend"));let _=Math.max(1,Math.min(4,Math.floor((n.clientWidth-30)/150))),S=Math.ceil(s.entries.length/Math.ceil(s.entries.length/_))||1;n.style.setProperty("--legend-columns",String(S));let b=JSON.stringify([s,g.LegendStyle,g.LegendShowValues,g.LegendShowPercentages,g.Messages,x.surface,x.text]);if(b!==u){let w=n.contains(document.activeElement)?document.activeElement.dataset.legendKey:void 0;u=b,m(),n.innerHTML=`${s.scale?`<div class="blu-chart__legend-scale"><span class="blu-chart__legend-text blu-chart__legend-scale-title">${H(s.scale.label)}</span><div class="blu-chart__legend-gradient" style="background:linear-gradient(90deg,${s.scale.colors.map(H).join(",")})" aria-hidden="true"></div><div class="blu-chart__legend-range"><span class="blu-chart__legend-text">${H(De(s.scale.min,g))}</span><span class="blu-chart__legend-text">${H(De(s.scale.max,g))}</span></div></div>`:""}<div class="blu-chart__legend-items"></div>${s.note?`<span class="blu-chart__legend-text blu-chart__legend-note">${H(s.note)}</span>`:""}`;let M=n.querySelector(".blu-chart__legend-items");s.entries.forEach(C=>{if(g.LegendStyle==="Compact"){let T=document.createElement("div");T.className="blu-chart__legend-chip-host",M.append(T);let A=Vx(T,{Label:C.label,Color:"Secondary",IsSelectable:!0,IsSelected:C.id===o,ExtendedClass:"blu-chart__legend-chip"},{SelectionChanged:()=>v(C.id)});f.push({entry:C,host:T,instance:A})}else{let T=document.createElement("button");T.type="button",T.className="blu-chart__legend-entry",p(T,C),T.onclick=()=>v(C.id),M.append(T)}}),d(),w&&[...n.querySelectorAll("[data-legend-key]")].find(C=>C.dataset.legendKey===w)?.focus({preventScroll:!0})}else d()},exportLayout(){return{body:a,stage:i,legend:n,model:s}},reset(){o=null},destroy(){m(),n.replaceChildren()}}}function CO(t){let{body:e,legend:r,model:i}=t;if(r.hidden)return"";let a=e.getBoundingClientRect(),n=[],o=l=>{let u=l.getBoundingClientRect();return{x:u.x-a.x,y:u.y-a.y,w:u.width,h:u.height}};for(let l of r.querySelectorAll(".blu-chart__legend-entry,.blu-chart__legend-chip,.blu-chart__legend-scale")){let u=o(l),f=getComputedStyle(l);n.push(`<rect x="${u.x}" y="${u.y}" width="${u.w}" height="${u.h}" rx="${Math.min(parseFloat(f.borderRadius)||0,u.w/2,u.h/2)}" fill="${H(f.backgroundColor)}" stroke="${parseFloat(f.borderWidth)>0?H(f.borderColor):"none"}" stroke-width="${parseFloat(f.borderWidth)||0}"/>`)}for(let l of r.querySelectorAll(".blu-chart__legend-marker svg")){let u=o(l);n.push(`<svg x="${u.x}" y="${u.y}" width="${u.w}" height="${u.h}" viewBox="${H(l.getAttribute("viewBox")||"0 0 28 16")}">${l.innerHTML}</svg>`)}let s=r.querySelector(".blu-chart__legend-gradient");if(s&&i.scale){let l=o(s);n.push(`<defs><linearGradient id="blu-export-legend-scale">${i.scale.colors.map((u,f)=>`<stop offset="${f/(i.scale.colors.length-1)*100}%" stop-color="${H(u)}"/>`).join("")}</linearGradient></defs><rect x="${l.x}" y="${l.y}" width="${l.w}" height="${l.h}" rx="4" fill="url(#blu-export-legend-scale)"/>`)}for(let l of r.querySelectorAll(".blu-chart__legend-track,.blu-chart__legend-track>span")){let u=o(l);u.w&&u.h&&n.push(`<rect x="${u.x}" y="${u.y}" width="${u.w}" height="${u.h}" rx="2" fill="${H(getComputedStyle(l).backgroundColor)}"/>`)}for(let l of r.querySelectorAll(".blu-chart__legend-text")){let u=l.firstChild;if(!u||u.nodeType!==Node.TEXT_NODE)continue;let f=getComputedStyle(l);if(!l.getClientRects().length||f.visibility==="hidden")continue;let c=parseFloat(f.fontSize),h=document.createRange(),p=[];for(let d=0;d<u.textContent.length;d++){h.setStart(u,d),h.setEnd(u,d+1);let v=h.getBoundingClientRect(),m=p.at(-1);m&&Math.abs(m.y-v.y)<1?m.text+=u.textContent[d]:p.push({x:v.x,y:v.y,text:u.textContent[d]})}for(let d of p)n.push(`<text x="${d.x-a.x}" y="${d.y-a.y+c*.86}" font-size="${c}" font-weight="${f.fontWeight}" fill="${H(f.color)}"${f.textDecorationLine.includes("underline")?' text-decoration="underline"':""}>${H(d.text)}</text>`)}return n.join("")}async function bf(t,e,r,i){e?.aborted&&(t.catch(()=>{}),e.throwIfAborted());let a,n=()=>{};try{return await Promise.race([t,new Promise((o,s)=>{n=()=>s(e?.reason??new DOMException("Operation aborted.","AbortError")),e?.addEventListener("abort",n,{once:!0}),a=setTimeout(()=>s(new Error(i)),r)})])}finally{clearTimeout(a),e?.removeEventListener("abort",n)}}function HH(t,e){let r=URL.createObjectURL(t),i=document.createElement("a");i.href=r,i.download=e,document.body.append(i),i.click(),i.remove(),setTimeout(()=>URL.revokeObjectURL(r),1e3)}function wO(t,e){let r=[];for(let i of t.split(/\s+/))!r.length||r[r.length-1].length+i.length>e?r.push(i):r[r.length-1]+=` ${i}`;return r.slice(0,4)}async function TO(t,e,r,i,a,n,o,s,l){l?.throwIfAborted();let u=s?.body.clientWidth||t.getWidth(),f=s?.body.getBoundingClientRect().height||t.getHeight(),c=s?.body.getBoundingClientRect(),h=s?.stage.getBoundingClientRect(),p=c&&h?h.x-c.x:0,d=c&&h?h.y-c.y:0;if(u<=0||t.getHeight()<=0)throw new Error("Show the chart before downloading it.");let v=wO(e.Title||"Chart",Math.max(16,Math.floor((u-32)/10))),m=wO(e.Description||"",Math.max(24,Math.floor((u-32)/6))),g=v.length*22+m.length*15+24,y=f+g+32,x=v.map((w,M)=>`<text x="16" y="${26+M*22}" font-size="17" font-weight="600" fill="${n}">${H(w)}</text>`).join(""),_=m.map((w,M)=>`<text x="16" y="${28+v.length*22+M*15}" font-size="11" fill="${o}">${H(w)}</text>`).join(""),S=`<svg xmlns="http://www.w3.org/2000/svg" width="${u}" height="${y}" viewBox="0 0 ${u} ${y}" role="img" aria-labelledby="chart-title chart-description"><title id="chart-title">${H(e.Title||"Chart")}</title><desc id="chart-description">${H(e.Description||"Chart visualization. Exact values are available in the source chart data table.")}</desc><rect width="100%" height="100%" fill="${a}"/><g font-family="Inter,system-ui,sans-serif">${x}${_}<g transform="translate(0 ${g})"><g transform="translate(${p} ${d})">${t.renderToSVGString()}</g>${s?CO(s):""}</g><text x="16" y="${y-12}" fill="${o}" font-size="9">${H(e.ExportFootnote||"BluKavantUI")}</text></g></svg>`,b=new Blob([S],{type:"image/svg+xml"});if(r==="png"){if(u*2>16384||y*2>16384||u*y*4>32e6)throw new Error("This chart is too large for PNG. Use SVG or reduce the displayed data.");let w=URL.createObjectURL(b);try{let M=new Image;M.src=w,await bf(M.decode(),l,15e3,"PNG decoding timed out. Try SVG."),l?.throwIfAborted();let C=document.createElement("canvas");C.width=Math.ceil(u*2),C.height=Math.ceil(y*2);let T=C.getContext("2d");if(!T)throw new Error("PNG export is unavailable. Try SVG.");T.drawImage(M,0,0,C.width,C.height),b=await bf(new Promise((A,D)=>C.toBlob(L=>L?A(L):D(new Error("PNG export failed. Try SVG.")),"image/png")),l,15e3,"PNG encoding timed out. Try SVG.")}finally{URL.revokeObjectURL(w)}}l?.throwIfAborted(),HH(b,i)}function Hd(t,e){t==="mixed"?Xx(e):t==="heatmap"?qx(e):Zx(t,e)}function Bx(t,e){if(t==="mixed"){let r=e;return r.Series.flatMap((i,a)=>r.Categories.map((n,o)=>({...Qx(r,o,a),Label:n.Label,CategoryKey:n.Key})))}return t==="heatmap"?e.Cells.map((r,i)=>{let a=Af(e,i);return{...a,Label:`${a.YLabel}, ${a.XLabel}`}}):tr(t,e)}function Gd(t,e){return JSON.stringify([t,e.Key,e.SeriesKey||"",e.CategoryKey||"",e.RingKey||"",e.PointType||""])}function EO(t,e,r){let i={...e,...structuredClone(r)};Hd(t,{...i,SelectedKey:null});let n=i.SelectedKey!=null&&!Bx(t,i).some(o=>o.Key===i.SelectedKey)&&(!Object.hasOwn(r,"SelectedKey")||r.SelectedKey===e.SelectedKey);return n&&(i.SelectedKey=null),Hd(t,i),{next:i,cleared:n}}function AO(t,e){let r=[];return(t?.series||[]).forEach((i,a)=>{if(i.type==="treemap"){let n=1,o=s=>s.forEach(l=>{let u=n++;l.id===e&&r.push({seriesIndex:a,dataIndex:u}),o(l.children||[])});o(i.data||[])}else(i.data||[]).forEach((n,o)=>{n?.point?.Key===e&&r.push({seriesIndex:a,dataIndex:o,...i.type==="sankey"?{dataType:"node"}:{}})});(i.links||[]).forEach((n,o)=>{n?.point?.Key===e&&r.push({seriesIndex:a,dataIndex:o,dataType:"edge"})})}),r}function MO(t,e,r){return t.Messages?.[e]??r}var Fx={World:new URL("./maps/world.geojson",document.currentScript.src).href,US:new URL("./maps/us-states.geojson",document.currentScript.src).href};async function LO(t,e){let r=new AbortController,i=()=>r.abort(e?.reason);e?.addEventListener("abort",i,{once:!0}),e?.aborted&&i();try{return await bf((async()=>{let a=new URL(t,typeof location>"u"?"http://localhost/":location.href);if(!["http:","https:"].includes(a.protocol)||a.username||a.password)throw new Error("Map URL must be an HTTP resource without embedded credentials.");let n=await fetch(a.href,{signal:r.signal,credentials:"same-origin"});if(!n.ok)throw new Error(`Map resource failed (${n.status}).`);if(Number(n.headers.get("Content-Length"))>Dt.mapBytes)throw new Error("Map resource exceeds the size limit.");let o="";if(n.body){let l=n.body.getReader(),u=new TextDecoder,f=0;try{for(;;){let c=await l.read();if(c.done)break;if(f+=c.value.length,f>Dt.mapBytes)throw new Error("Map resource exceeds the size limit.");o+=u.decode(c.value,{stream:!0})}o+=u.decode()}finally{await l.cancel().catch(()=>{})}}else if(o=await n.text(),new TextEncoder().encode(o).length>Dt.mapBytes)throw new Error("Map resource exceeds the size limit.");r.signal.throwIfAborted();let s=JSON.parse(o);return Tf(s),s})(),r.signal,1e4,"Map resource timed out. Retry the update.")}finally{r.abort(),e?.removeEventListener("abort",i)}}function GH(t=yh,e=16){let r=[];return{acquire(i){let a=JSON.stringify(i);if(new TextEncoder().encode(a).length>Dt.mapBytes)throw new Error("Map resource exceeds the size limit.");let n=r.find(l=>l.refs>0&&l.signature===a);if(!n){if(n=r.find(l=>!l.refs),!n){if(r.length>=e)throw new Error("Too many different maps are active.");n={name:`blu-charts-map-v1-${r.length}`,signature:"",refs:0},r.push(n)}t(n.name,i),n.signature=a}n.refs++;let o=!1,s=n;return{name:n.name,release(){o||(o=!0,--s.refs||(s.signature="",t(s.name,{type:"FeatureCollection",features:[]})))}}},stats(){return{slots:r.length,active:r.filter(i=>i.refs>0).length}}}}var Hx=GH();async function DO(t,e){let r=t.Map==="Custom"?t.GeoJSON??await LO(t.MapURL,e):await LO(t.Map==="US"?Fx.US:Fx.World,e);return e.throwIfAborted(),Tf(r),jo(t,r),r}function ni(t,e,r,i,a){return Gx(t,e,r,i,a)}function Gx(t,e,r,i,a){let n={...jx,...structuredClone(r)},o=n,s=(Y,...J)=>{if(!l)try{Y?.(...J)}catch(_e){console.error("Chart event handler failed.",_e)}},l=!1,u=!1,f=0,c=0,h=0,p=!1,d=!1,v="",m="";try{Hd(e,n)}catch(Y){throw s(i.Error,{Message:String(Y.message),Code:"InvalidData"}),Y}let g,y,x,_,S,b="",w,M=new AbortController,C,T="treemapRootToNode",A=document.createElement("section");A.className="blu-chart",A.innerHTML='<div class="blu-chart__heading"><div><h3></h3><p></p></div><div class="blu-chart__export"><select aria-label="Chart download format"><option value="png">PNG image</option><option value="svg">SVG vector</option></select><button type="button" aria-label="Download chart">\u2193 <span>Download</span></button></div></div><div class="blu-chart__stage"><div class="blu-chart__plot" role="img"></div><div class="blu-chart__state" aria-hidden="true" hidden></div></div><p class="blu-chart__missing-note" hidden></p><div class="blu-chart__navigation" role="group" aria-label="Chart navigation" hidden></div><details class="blu-chart__data"><summary>View data & keyboard selections</summary><label class="blu-chart__patterns"><input type="checkbox"><span>Use fill patterns</span></label><div class="blu-chart__table" tabindex="0" role="region"></div></details><div class="blu-chart__state-announcement" role="status" aria-live="polite" aria-atomic="true"></div><div class="blu-chart__status" role="status" aria-live="polite"></div>',t.append(A);let D=Y=>A.querySelector(Y),L=D(".blu-chart__plot"),O=D(".blu-chart__table"),I=D(".blu-chart__status"),P=D(".blu-chart__navigation"),V=xO(D(".blu-chart__state")),R=vO(D(".blu-chart__state-announcement")),U=D(".blu-chart__export button"),F=D(".blu-chart__patterns input"),K=matchMedia("(prefers-reduced-motion: reduce)"),X=matchMedia("(forced-colors: active)"),re=matchMedia("(prefers-color-scheme: dark)"),Z=()=>Bx(e,n),de=()=>Z().some(Y=>Y.Value!==null),ie=(Y,J)=>MO(n,Y,J);function Ue(){if(l)throw new Error("This chart has been destroyed.")}function Ke(Y,J="InvalidData",_e=""){l||(I.textContent=Y instanceof Error?Y.message:String(Y),s(i.Error,{Message:I.textContent,Code:J,RequestId:_e}),Le("Error"))}function Le(Y){Y!==v&&(v=Y,s(i.StateChange,{State:Y,Revision:f}))}function We(Y){if(g?.dispatchAction({type:"downplay"}),!(!Y||p||n.IsLoading)){if(e==="mixed"){let J=n,_e=J.Categories.findIndex(Te=>Te.Key===Y);_e>=0&&J.Series.forEach((Te,ze)=>g?.dispatchAction({type:"highlight",seriesIndex:ze,dataIndex:_e}));return}if(e==="heatmap"){let J=n.Cells.findIndex(_e=>_e.Key===Y);J>=0&&g?.dispatchAction({type:"highlight",seriesIndex:0,dataIndex:J});return}for(let J of AO(x,Y))g?.dispatchAction({type:"highlight",...J})}}function ve(){if(!(g||L.clientWidth<=0||L.clientHeight<=0)){Ge([e0,px,ax,cx,ex,Nx]),g=W1(L,void 0,{renderer:"svg"}),y=SO(A,g,e),g.on("click","series",Y=>{let J=Y.data?.point;if(e==="mixed"){let _e=n;J=Z().find(Te=>Te.Key===_e.Categories[Y.dataIndex]?.Key&&Te.SeriesKey===_e.Series[Y.seriesIndex]?.Key)}e==="heatmap"&&(J=Z()[Y.dataIndex]),J&&aa(J,"Chart")});for(let[Y,J]of[["treemaproottonode","treemapRootToNode"],["treemapzoomtonode","treemapZoomToNode"]])g.on(Y,_e=>{C=_e.targetNodeId||_e.targetNode?.getId?.(),T=J})}}function be(Y){return Y.Value===null?ie("NoData","No data"):Jx(Y.Value,n.__valueText?.[Gd(e,Y)])}function zt(Y){cancelAnimationFrame(h),h=requestAnimationFrame(()=>{if(l||!A.isConnected)return;let J=document.activeElement;if(J!==document.body&&J!==O&&J?.dataset.point!==Y)return;([...O.querySelectorAll("[data-point]")].find(Te=>Te.dataset.point===Y)||O).focus({preventScroll:!0})})}function et(){let Y=Z(),J=document.activeElement,_e=J&&O.contains(J)?J.dataset.point:void 0,Te=(Je,Ne)=>n.EnableSelection&&Je.Value!==null?`<button type="button" data-point="${H(Gd(e,Je))}" aria-label="${H(`${Je.Label}${Je.SeriesName?", "+Je.SeriesName:""}: ${be(Je)}`)}" aria-pressed="${n.SelectedKey===Je.Key}">${H(Ne)}</button>`:H(Ne),ze="",Be="";if(e==="mixed"){let Je=n,Ne=new Map(Y.map(Re=>[JSON.stringify([Re.Key,Re.SeriesKey]),Re]));ze=`<tr><th scope="col">${H(ie("Category","Category"))}</th>${Je.Series.map(Re=>`<th scope="col">${H(Re.Name)}</th>`).join("")}</tr>`,Be=Je.Categories.map(Re=>`<tr><th scope="row">${H(Re.Label)}</th>${Je.Series.map(it=>{let oi=Ne.get(JSON.stringify([Re.Key,it.Key]));return`<td>${Te(oi,be(oi))}</td>`}).join("")}</tr>`).join("")}else if(e==="heatmap"){let Je=n,Ne=new Map(Y.map(Re=>[JSON.stringify([Re.XKey,Re.YKey]),Re]));ze=`<tr><th scope="col">${H(ie("Category","Category"))}</th>${Je.XCategories.map(Re=>`<th scope="col">${H(Re.Label)}</th>`).join("")}</tr>`,Be=Je.YCategories.map(Re=>`<tr><th scope="row">${H(Re.Label)}</th>${Je.XCategories.map(it=>{let oi=Ne.get(JSON.stringify([it.Key,Re.Key]));return`<td>${oi?Te(oi,be(oi)):H(ie("NoData","No data"))}</td>`}).join("")}</tr>`).join("")}else{let Je=["Key","Label","Date","Value","CategoryKey","SeriesKey","RingKey","ParentKey","X","Y","Size","Group","SourceKey","TargetKey","Longitude","Latitude","PointType"].filter(Ne=>Y.some(Re=>Re[Ne]!==void 0));ze=`<tr>${Je.map(Ne=>`<th scope="col">${H(ie(Ne,Ne))}</th>`).join("")}</tr>`,Be=Y.map(Ne=>`<tr>${Je.map(Re=>{let it=Ne[Re],oi=Re==="Value"?be(Ne):it===null?"null":String(it??"");return`<td>${Re==="Label"?Te(Ne,oi):H(oi)}</td>`}).join("")}</tr>`).join("")}O.setAttribute("aria-label",`${n.Title} ${ie("Values","values")}`),O.innerHTML=`<table><caption>${H(n.Title||"Chart")} \u2014 ${H(ie("ExactValues","original values"))}</caption><thead>${ze}</thead><tbody>${Be}</tbody></table>`,_e&&zt(_e)}function _t(Y=!1){if(l)return;let J=p||!!n.IsLoading,_e=!de(),Te=!!m&&!J;if(A.className=`blu-chart ${n.ExtendedClass||""}`,A.setAttribute("aria-label",n.AccessibleLabel||n.Title||"Chart"),D("h3").textContent=n.Title||"Chart",D(".blu-chart__heading p").textContent=n.Description||"",D(".blu-chart__heading").hidden=!n.ShowHeader&&!n.ShowToolbar,D("h3").parentElement.hidden=!n.ShowHeader,D(".blu-chart__export").hidden=!n.ShowToolbar,U.querySelector("span").textContent=ie("Download","Download"),U.setAttribute("aria-label",ie("DownloadChart","Download chart")),D("select").setAttribute("aria-label",ie("DownloadFormat","Chart download format")),D('option[value="png"]').textContent=ie("PNG","PNG image"),D('option[value="svg"]').textContent=ie("SVG","SVG vector"),P.setAttribute("aria-label",ie("Navigation","Chart navigation")),D(".blu-chart__patterns").hidden=!["mixed","line","radar","bar","polar","pie","doughnut","nightingale","treemap","sankey","funnel"].includes(e),D(".blu-chart__patterns span").textContent=ie("Patterns",e==="line"||e==="radar"?"Use fill patterns (with Area fill)":"Use fill patterns"),F.checked=!!n.ShowPatterns,D(".blu-chart__data").hidden=J||_e,D(".blu-chart__data").classList.toggle("blu-chart__data--compact",!n.ShowDataTable),D(".blu-chart__data summary").textContent=n.ShowDataTable?ie("ViewData","View data & keyboard selections"):ie("ExploreData","Explore chart data"),L.style.height=`${n.Height}px`,L.style.visibility=J||_e?"hidden":"visible",L.setAttribute("aria-busy",String(J)),e==="calendar-heatmap"){let Ne=n,Re=Math.ceil(((Date.parse(Ne.RangeEnd)-Date.parse(Ne.RangeStart))/864e5+7)/7);L.style.minWidth=`${Math.max(300,Re*12+56)}px`;let it=D(".blu-chart__stage");it.style.overflowX="auto",it.tabIndex=0,it.setAttribute("role","region"),it.setAttribute("aria-label",ie("CalendarScroll","Calendar plot; scroll horizontally for more dates"))}let ze=J?ie("Loading",p?"Loading map\u2026":"Loading chart\u2026"):n.EmptyMessage||"No data to display";V.update(J,_e,ze,!!n.EnableAnimation&&!K.matches),R.update(Te?m:!J&&!_e?ie("Ready","Chart ready."):ze),U.disabled=u||J||_e||Te,P.hidden=J||_e||Te||!(e==="geo-map"&&n.Roam!==!1||e==="treemap"&&n.Drilldown),e==="geo-map"&&!P.children.length&&(P.innerHTML=["in","out","left","right","up","down","reset","full"].map(Ne=>`<button type="button" data-nav="${Ne}"></button>`).join("")),e==="treemap"&&!P.children.length&&(P.innerHTML='<button type="button" data-nav="reset"></button>');let Be={in:"Zoom in",out:"Zoom out",left:"Pan left",right:"Pan right",up:"Pan up",down:"Pan down",reset:e==="treemap"?"Show entire tree":"Reset map",full:"Show full map"};if(P.querySelectorAll("[data-nav]").forEach(Ne=>{Ne.textContent=ie("Map_"+Ne.dataset.nav,Be[Ne.dataset.nav])}),ve(),Y&&y?.reset(),y?.prepare(n,J||_e),g&&!p&&(e!=="geo-map"||_)){let Ne=!Y&&g.getOption()?.geo?.[0],Re=Rx(A),it=a({...n,ShowLegend:!1},Re,_?.name,K.matches,L.clientWidth);delete it.legend,it.aria={...it.aria,description:`${n.Title}. ${n.Description||""} ${ie("DataAlternative","Original values and keyboard selection are in the data table.")}`},it.geo&&Ne&&(it.geo.zoom=Ne.zoom,Ne.center&&(it.geo.center=Ne.center)),g.resize(),g.setOption(it,{notMerge:!0}),x=it,Y&&(C=void 0),e==="treemap"&&C&&Z().some(oi=>oi.Key===C)&&g.dispatchAction({type:T,seriesIndex:0,targetNodeId:C}),y?.render(n,it,Re)}let Je=D(".blu-chart__missing-note");if(e==="radar"){let Ne=n.Series.filter(Re=>Re.Values.some(it=>it===null));Je.hidden=!Ne.length||J||_e,Je.textContent=`${Ne.map(Re=>Re.Label).join(", ")}: ${ie("IncompleteRadar","incomplete profile. Available measurements remain in the data table; missing values are not drawn as zero.")}`}et(),X.matches&&!J&&!_e&&(D(".blu-chart__data").open=!0),g&&!p&&!Te&&!d&&(e!=="geo-map"||_)&&(d=!0,s(i.Ready)),l||Le(J?"Loading":Te?"Error":_e?"Empty":"Ready")}function bt(Y,J,_e=_,Te=S,ze=b){let Be={options:n,map:_,geometry:S,geometryKey:b,resourceError:m};n=Y,_=_e,S=Te,b=ze;try{m="",I.textContent="",_t(Be.options.ResetKey!==Y.ResetKey||Be.geometryKey!==ze)}catch(Je){n=Be.options,_=Be.map,S=Be.geometry,b=Be.geometryKey,m=Be.resourceError,o=n;try{_t()}catch{}throw _e!==Be.map&&_e?.release(),Je}Be.map!==_e&&Be.map?.release(),J&&s(i.SelectionChange,{Key:null,Reason:"DataChanged"})}function Jt(Y,J=!1){let _e=++f;if(w?.abort(),p=!1,o=Y,e!=="geo-map"){bt(Y,J);return}let Te=Y,ze=JSON.stringify([Te.Map||"World",Te.MapURL||"",Te.GeoJSON||null]);if(S&&ze===b){jo(Te,S),bt(Y,J);return}if(Te.Map==="Custom"&&Te.GeoJSON){jo(Te,Te.GeoJSON);let Be=Hx.acquire(Te.GeoJSON);bt(Y,J,Be,Te.GeoJSON,ze);return}p=!0,w=new AbortController,_t(),DO(Te,w.signal).then(Be=>{if(l||_e!==f)return;p=!1;let Je=Hx.acquire(Be);bt(Y,J,Je,Be,ze)}).catch(Be=>{l||_e!==f||(p=!1,o=n,m=Be instanceof Error?Be.message:String(Be),_t(),Ke(Be,"ResourceLoadFailed"))})}function aa(Y,J){if(l||p||n.IsLoading||Y.Value===null&&!(e==="radar"&&Y.PointType==="Series"))return;let _e={...structuredClone(Y),ValueText:Y.Value===null?"":be(Y)},Te=!!n.EnableSelection,ze=n.SelectedKey===Y.Key?null:Y.Key;if(Te){let Be={...n,SelectedKey:ze};if(e==="treemap"&&J==="Table"&&Be.Drilldown&&(C=Y.Key,T="treemapRootToNode"),Jt(Be),l)return;I.textContent=ze?`${ie("Selected","Selected")} ${Y.Label}.`:ie("SelectionCleared","Selection cleared.")}s(i.PointClick,_e,J),Te&&!l&&s(i.SelectionChange,{Key:ze,Reason:"User"})}O.onclick=Y=>{let J=Y.target.closest("[data-point]"),_e=J?.dataset.point,Te=J&&Z().find(ze=>Gd(e,ze)===_e);Te&&(aa(Te,"Table"),!l&&A.isConnected&&(document.activeElement===document.body||A.contains(document.activeElement))&&zt(_e))},F.onchange=()=>{Xo.update({ShowPatterns:F.checked}),s(i.PatternsChange,{ShowPatterns:F.checked})},P.onclick=Y=>{let J=Y.target.closest("[data-nav]")?.dataset.nav;if(!(!J||!g)){if(J==="full"){Xo.update({MapView:"Full",ResetKey:crypto.randomUUID()});return}if(J==="reset"){C=void 0,_t(!0);return}g.dispatchAction({type:"geoRoam",componentType:"geo",geoIndex:0,dx:J==="left"?-60:J==="right"?60:0,dy:J==="up"?-60:J==="down"?60:0,zoom:J==="in"?1.3:J==="out"?1/1.3:1,originX:L.clientWidth/2,originY:L.clientHeight/2}),I.textContent=ie("Map_"+J,Dr(J))}};function Dr(Y){return`Map view changed: ${Y}.`}let dr=()=>{try{_t()}catch(Y){Ke(Y,"RenderFailed")}},na=Y=>{Y.key==="Escape"&&g?.dispatchAction({type:"hideTip"})},$o=0,Yx=0,Wx=new ResizeObserver(()=>{let Y=L.clientWidth,J=L.clientHeight;Y===$o&&J===Yx||($o=Y,Yx=J,cancelAnimationFrame(c),c=requestAnimationFrame(()=>{!l&&Y>0&&J>0&&dr()}))}),$x=new MutationObserver(dr);$x.observe(document.documentElement,{attributes:!0,attributeFilter:["data-bluui-theme"]}),K.addEventListener("change",dr),X.addEventListener("change",dr),re.addEventListener("change",dr),document.addEventListener("keydown",na);let Xo={update(Y){Ue();try{let{next:J,cleared:_e}=EO(e,o,Y);Jt(J,_e)}catch(J){if(!p){o=n;try{_t()}catch{}}throw Ke(J,/SelectedKey/.test(J.message)?"InvalidSelection":"InvalidData"),J}},resize(){Ue(),dr()},setSelection(Y){Xo.update({SelectedKey:Y})},highlight(Y){Ue(),We(Y)},async download(Y="png",J=`blukavant-${e}.${Y}`,_e=crypto.randomUUID()){Ue();let Te=!1;try{if(!["png","svg"].includes(Y))throw new Error("Choose PNG or SVG.");if(u)throw new Error("ExportBusy");if(!g||p||m||n.IsLoading||!de())throw new Error("Wait for a visible chart with valid data before downloading.");u=!0,Te=!0,U.disabled=!0;let ze=Rx(A);await TO(g,n,Y,J,ze.surface,ze.text,ze.muted,y?.exportLayout(),M.signal),l||(I.textContent=ie("ExportStarted","Chart download started."),s(i.ExportStarted,{Format:Y,FileName:J,RequestId:_e}),s(i.ExportComplete,{Format:Y,FileName:J}))}catch(ze){throw l||Ke(ze,ze instanceof Error&&ze.message==="ExportBusy"?"ExportBusy":"ExportFailed",_e),ze}finally{Te&&(u=!1,l||(U.disabled=p||!!m||!!n.IsLoading||!de()))}},destroy(){l||(l=!0,f++,w?.abort(),M.abort(),cancelAnimationFrame(c),cancelAnimationFrame(h),Wx.disconnect(),$x.disconnect(),K.removeEventListener("change",dr),X.removeEventListener("change",dr),re.removeEventListener("change",dr),document.removeEventListener("keydown",na),R.destroy(),V.destroy(),y?.destroy(),g?.dispose(),_?.release(),A.remove())}};U.onclick=()=>{Xo.download(D("select").value).catch(()=>{})},Wx.observe(A);try{Jt(n)}catch(Y){throw Ke(Y),Xo.destroy(),Y}return Xo}function OO(t,e,r={}){return Ge([s0,Na]),ni(t,"line",e,r,i_)}function IO(t,e,r,i=!1,a=640){let o=t,s=tr("bar",t),l=(C,T)=>o.ShowPatterns?mr(C,T):void 0,u=e.palette,f=(C,T)=>Ot(e.forcedColors?e.text:Fr(C,u[T%u.length],e.dark,e.read),e.surface,3.2),c=(C,T,A)=>Vt(f(T,A),e.surface,o.SelectedKey===C),h=(C,T)=>s.find(A=>A.Key===C&&(!T||A.SeriesKey===T)),d={data:["line","radar","bar","polar"].includes("bar")?o.Series.map(C=>C.Label):["pie","doughnut","nightingale","funnel"].includes("bar")?[...new Set(o.Items.map(C=>C.Label))]:[],show:o.ShowLegend,type:"scroll",top:6,left:10,right:10,itemWidth:24,itemHeight:12,selectedMode:!1,pageTextStyle:{color:e.muted},pageIconColor:e.text,textStyle:{color:e.muted,fontSize:11}},v={show:o.ShowLabels,color:at(e.surface),fontSize:11,backgroundColor:e.surface,padding:[2,3],borderRadius:2},m={show:o.ShowTooltip,confine:!0,enterable:!0,backgroundColor:e.surface,borderColor:e.border,textStyle:{color:e.text,fontSize:12},formatter:C=>{let T=C.data?.point;if(!T)return`${H(C.name||"")}${C.value==null||Number.isNaN(C.value)?" \xB7 No data":""}`;let A=T.Date?`<br/>${H(T.Date)}<br/><strong>${H(De(T.Value,o))}</strong>`:T.X!==void 0?`<br/>${H(o.XLabel||"X")}: ${T.X}<br/>${H(o.YLabel||"Y")}: ${T.Y}${T.Size===void 0?"":`<br/>Size: ${T.Size}`}`:`<br/><strong>${H(De(T.Value,o))}</strong>`;return`${H(T.SeriesName?`${T.SeriesName} \xB7 ${T.Label}`:T.Label)}${A}${C.data?.conversion?`<br/>${H(C.data.conversion)}`:""}`}},g={backgroundColor:e.surface,color:u.map((C,T)=>f(C,T)),animation:!!o.EnableAnimation&&!i,animationDuration:300,animationDurationUpdate:150,textStyle:{fontFamily:"Inter,system-ui,sans-serif",color:e.text},aria:{enabled:!0,description:`${o.Title}. ${o.Description||""} Exact values and keyboard selection are in the data table.`},tooltip:m},y={axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:e.muted,fontSize:10,hideOverlap:!0},splitLine:{lineStyle:{color:e.border,type:"dashed"}}},x=t,_=x.Stacking==="Percent",S={...y,type:"category",data:x.Categories.map(C=>C.Label),axisLabel:{...y.axisLabel,width:Math.min(140,a*.2),overflow:"truncate"},splitLine:{show:!1}},b={...y,type:"value",max:_?1:void 0,axisLabel:{...y.axisLabel,formatter:C=>_?`${Math.round(C*100)}%`:De(C,o,!0)}},w=!!x.Stacking&&x.Stacking!=="None",M=x.Series.map((C,T)=>({id:C.Key,name:C.Label,type:"bar",coordinateSystem:"cartesian2d",stack:x.Stacking&&x.Stacking!=="None"?"total":void 0,smooth:x.LineStyle==="Smooth",step:x.LineStyle==="Step"?"middle":!1,connectNulls:!1,areaStyle:x.ShowArea?{opacity:.1}:void 0,barMaxWidth:38,symbol:za(T),symbolSize:8,itemStyle:{...Vt(f(C.Color,T),e.surface),decal:l(T,f(C.Color,T))},lineStyle:{width:2.5,color:f(C.Color,T),type:Jo(T)},label:{...v,color:w?at(f(C.Color,T)):at(e.surface),backgroundColor:w?f(C.Color,T):e.surface,position:w?"inside":x.Orientation==="Horizontal"?"right":"top",formatter:A=>_?`${Math.round(Number(A.value)*100)}%`:De(A.data.point.Value,o,!0)},labelLayout:{hideOverlap:!0},emphasis:{focus:"none",scale:!1},blur:{itemStyle:{opacity:1},lineStyle:{opacity:1},label:{opacity:1}},data:C.Values.map((A,D)=>({value:A===null?null:_?A/(x.Series.reduce((L,O)=>L+(O.Values[D]||0),0)||1):A,point:h(x.Categories[D].Key,C.Key),itemStyle:{...c(x.Categories[D].Key,C.Color,T),decal:l(T,f(C.Color,T))},emphasis:{itemStyle:rr(f(C.Color,T))}}))}));return{...g,legend:d,grid:{left:14,right:22,top:o.ShowLegend?48:20,bottom:16,containLabel:!0},xAxis:x.Orientation==="Horizontal"?b:S,yAxis:x.Orientation==="Horizontal"?{...S,inverse:!0}:b,series:M}}function PO(t,e,r={}){return Ge([y0,Na]),ni(t,"bar",e,r,IO)}function NO(t,e,r,i=!1,a=640){let o=t,s=tr("pie",t),l=(O,I)=>o.ShowPatterns?mr(O,I):void 0,u=e.palette,f=(O,I)=>Ot(e.forcedColors?e.text:Fr(O,u[I%u.length],e.dark,e.read),e.surface,3.2),c=(O,I,P)=>Vt(f(I,P),e.surface,o.SelectedKey===O),h=(O,I)=>s.find(P=>P.Key===O&&(!I||P.SeriesKey===I)),d={data:["line","radar","bar","polar"].includes("pie")?o.Series.map(O=>O.Label):["pie","doughnut","nightingale","funnel"].includes("pie")?[...new Set(o.Items.map(O=>O.Label))]:[],show:o.ShowLegend,type:"scroll",top:6,left:10,right:10,itemWidth:24,itemHeight:12,selectedMode:!1,pageTextStyle:{color:e.muted},pageIconColor:e.text,textStyle:{color:e.muted,fontSize:11}},v={show:o.ShowLabels,color:at(e.surface),fontSize:11,backgroundColor:e.surface,padding:[2,3],borderRadius:2},m={show:o.ShowTooltip,confine:!0,enterable:!0,backgroundColor:e.surface,borderColor:e.border,textStyle:{color:e.text,fontSize:12},formatter:O=>{let I=O.data?.point;if(!I)return`${H(O.name||"")}${O.value==null||Number.isNaN(O.value)?" \xB7 No data":""}`;let P=I.Date?`<br/>${H(I.Date)}<br/><strong>${H(De(I.Value,o))}</strong>`:I.X!==void 0?`<br/>${H(o.XLabel||"X")}: ${I.X}<br/>${H(o.YLabel||"Y")}: ${I.Y}${I.Size===void 0?"":`<br/>Size: ${I.Size}`}`:`<br/><strong>${H(De(I.Value,o))}</strong>`;return`${H(I.SeriesName?`${I.SeriesName} \xB7 ${I.Label}`:I.Label)}${P}${O.data?.conversion?`<br/>${H(O.data.conversion)}`:""}`}},g={backgroundColor:e.surface,color:u.map((O,I)=>f(O,I)),animation:!!o.EnableAnimation&&!i,animationDuration:300,animationDurationUpdate:150,textStyle:{fontFamily:"Inter,system-ui,sans-serif",color:e.text},aria:{enabled:!0,description:`${o.Title}. ${o.Description||""} Exact values and keyboard selection are in the data table.`},tooltip:m},y={axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:e.muted,fontSize:10,hideOverlap:!0},splitLine:{lineStyle:{color:e.border,type:"dashed"}}},x=t,_=x.Nested?x.Rings:[{Key:"",Label:""}],S=x.Shape==="Half",b=!!x.Nested&&_.length>1,w=0,M=x.LabelPosition!=="Inside",C=M?66:76,T=[...new Set(x.Items.map(O=>O.Label))],A=_.map((O,I)=>{let P=b?I===0?[0,32]:[44+(C-44)*(I-1)/(_.length-1),44+(C-44)*I/(_.length-1)-(I===_.length-1?0:2)]:[w,Math.max(C,w+5)],V=!M||b&&I<_.length-1;return{type:"pie",id:O.Key||"pie",name:O.Label,top:o.ShowLegend?28:0,bottom:2,center:["50%",S?"72%":"55%"],radius:P.map(R=>`${R}%`),startAngle:S?180:90,endAngle:S?360:"auto",roseType:!1,avoidLabelOverlap:!0,stillShowZeroSum:!1,label:{...v,position:V?"inside":"outside",backgroundColor:V?void 0:e.surface,alignTo:"none",bleedMargin:6,distanceToLabelLine:4,formatter:`{b}
20
- {d}%`,lineHeight:15},labelLine:{show:!!o.ShowLabels&&!V,length:12,length2:8,smooth:.15},labelLayout:{hideOverlap:!0},emphasis:{scale:!0},data:x.Items.filter(R=>!x.Nested||R.RingKey===O.Key).map(R=>{let U=T.indexOf(R.Label),F=f(R.Color,U);return{id:R.Key,name:R.Label,value:R.Value,point:h(R.Key),label:{color:at(V?F:e.surface),backgroundColor:V?F:e.surface},labelLine:{lineStyle:{color:F,width:1.25}},itemStyle:{...c(R.Key,R.Color,U),decal:l(U,F),borderRadius:3},emphasis:{itemStyle:rr(F)}}})}}),L=s.find(O=>O.Key===o.SelectedKey)?.Value??x.Items.reduce((O,I)=>O+(I.Value||0),0);return{...g,legend:d,series:A,media:M?[{query:{maxWidth:420},option:{series:A.map(O=>({id:O.id,radius:O.radius.map(I=>`${parseFloat(I)*.84}%`)}))}}]:[],graphic:[]}}function RO(t,e,r={}){return Ge([ef]),ni(t,"pie",e,r,NO)}function kO(t,e,r,i=!1,a=640){let n="doughnut",o=t,s=tr(n,t),l=(O,I)=>o.ShowPatterns?mr(O,I):void 0,u=e.palette,f=(O,I)=>Ot(e.forcedColors?e.text:Fr(O,u[I%u.length],e.dark,e.read),e.surface,n==="line"||n==="radar"||n==="polar"&&o.PolarType==="Line"?4.5:3.2),c=(O,I,P)=>Vt(f(I,P),e.surface,o.SelectedKey===O),h=(O,I)=>s.find(P=>P.Key===O&&(!I||P.SeriesKey===I)),d={data:["line","radar","bar","polar"].includes(n)?o.Series.map(O=>O.Label):n==="scatter"?[...new Set(o.Points.map(O=>O.Group||"Observations"))]:["pie","doughnut","nightingale","funnel"].includes(n)?[...new Set(o.Items.map(O=>O.Label))]:[],show:o.ShowLegend,type:"scroll",top:6,left:10,right:10,itemWidth:24,itemHeight:12,selectedMode:!1,pageTextStyle:{color:e.muted},pageIconColor:e.text,textStyle:{color:e.muted,fontSize:11}},v={show:o.ShowLabels,color:at(e.surface),fontSize:11,backgroundColor:e.surface,padding:[2,3],borderRadius:2},m={show:o.ShowTooltip,confine:!0,enterable:!0,backgroundColor:e.surface,borderColor:e.border,textStyle:{color:e.text,fontSize:12},formatter:O=>{let I=O.data?.point;if(!I)return`${H(O.name||"")}${O.value==null||Number.isNaN(O.value)?" \xB7 No data":""}`;let P=I.Date?`<br/>${H(I.Date)}<br/><strong>${H(De(I.Value,o))}</strong>`:I.X!==void 0?`<br/>${H(o.XLabel||"X")}: ${I.X}<br/>${H(o.YLabel||"Y")}: ${I.Y}${I.Size===void 0?"":`<br/>Size: ${I.Size}`}`:`<br/><strong>${H(De(I.Value,o))}</strong>`;return`${H(I.SeriesName?`${I.SeriesName} \xB7 ${I.Label}`:I.Label)}${P}${O.data?.conversion?`<br/>${H(O.data.conversion)}`:""}`}},g={backgroundColor:e.surface,color:u.map((O,I)=>f(O,I)),animation:!!o.EnableAnimation&&!i,animationDuration:300,animationDurationUpdate:150,textStyle:{fontFamily:"Inter,system-ui,sans-serif",color:e.text},aria:{enabled:!0,description:`${o.Title}. ${o.Description||""} Exact values and keyboard selection are in the data table.`},tooltip:m},y={axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:e.muted,fontSize:10,hideOverlap:!0},splitLine:{lineStyle:{color:e.border,type:"dashed"}}},x=t,_=x.Nested?x.Rings:[{Key:"",Label:""}],S=x.Shape==="Half",b=!!x.Nested&&_.length>1,w=n==="pie"?0:x.InnerRadius??(n==="doughnut"?48:18),M=x.LabelPosition!=="Inside",C=M?66:76,T=[...new Set(x.Items.map(O=>O.Label))],A=_.map((O,I)=>{let P=b?I===0?[0,32]:[44+(C-44)*(I-1)/(_.length-1),44+(C-44)*I/(_.length-1)-(I===_.length-1?0:2)]:[w,Math.max(C,w+5)],V=!M||b&&I<_.length-1;return{type:"pie",id:O.Key||n,name:O.Label,top:o.ShowLegend?28:0,bottom:2,center:["50%",S?"72%":"55%"],radius:P.map(R=>`${R}%`),startAngle:S?180:90,endAngle:S?360:"auto",roseType:n==="nightingale"?x.RoseMode==="Radius"?"radius":"area":!1,avoidLabelOverlap:!0,stillShowZeroSum:!1,label:{...v,position:V?"inside":"outside",backgroundColor:V?void 0:e.surface,alignTo:"none",bleedMargin:6,distanceToLabelLine:4,formatter:`{b}
21
- {d}%`,lineHeight:15},labelLine:{show:!!o.ShowLabels&&!V,length:12,length2:8,smooth:.15},labelLayout:{hideOverlap:!0},emphasis:{scale:!0},data:x.Items.filter(R=>!x.Nested||R.RingKey===O.Key).map(R=>{let U=T.indexOf(R.Label),F=f(R.Color,U);return{id:R.Key,name:R.Label,value:R.Value,point:h(R.Key),label:{color:at(V?F:e.surface),backgroundColor:V?F:e.surface},labelLine:{lineStyle:{color:F,width:1.25}},itemStyle:{...c(R.Key,R.Color,U),decal:l(U,F),borderRadius:3},emphasis:{itemStyle:rr(F)}}})}}),D=s.find(O=>O.Key===o.SelectedKey),L=D?.Value??x.Items.reduce((O,I)=>O+(I.Value||0),0);return{...g,legend:d,series:A,media:M?[{query:{maxWidth:420},option:{series:A.map(O=>({id:O.id,radius:O.radius.map(I=>`${parseFloat(I)*.84}%`)}))}}]:[],graphic:n==="doughnut"&&!b&&w>=35?[{type:"text",left:"center",top:S?"63%":"48%",silent:!0,style:{text:`${De(L,o,!0)}
22
- ${D?.Label||x.CenterLabel||"Total"}`,textAlign:"center",fill:e.text,font:"600 16px Inter,system-ui",lineHeight:24,width:Math.max(24,Math.min(a,o.Height||320)*w/100-12),overflow:"truncate"}}]:[]}}function zO(t,e,r={}){return Ge([ef]),ni(t,"doughnut",e,r,kO)}function VO(t,e,r,i=!1,a=640){let n="scatter",o=t,s=tr(n,t),l=(b,w)=>o.ShowPatterns?mr(b,w):void 0,u=e.palette,f=(b,w)=>Ot(e.forcedColors?e.text:Fr(b,u[w%u.length],e.dark,e.read),e.surface,n==="line"||n==="radar"||n==="polar"&&o.PolarType==="Line"?4.5:3.2),c=(b,w,M)=>Vt(f(w,M),e.surface,o.SelectedKey===b),h=(b,w)=>s.find(M=>M.Key===b&&(!w||M.SeriesKey===w)),d={data:["line","radar","bar","polar"].includes(n)?o.Series.map(b=>b.Label):n==="scatter"?[...new Set(o.Points.map(b=>b.Group||"Observations"))]:["pie","doughnut","nightingale","funnel"].includes(n)?[...new Set(o.Items.map(b=>b.Label))]:[],show:o.ShowLegend,type:"scroll",top:6,left:10,right:10,itemWidth:24,itemHeight:12,selectedMode:!1,pageTextStyle:{color:e.muted},pageIconColor:e.text,textStyle:{color:e.muted,fontSize:11}},v={show:o.ShowLabels,color:at(e.surface),fontSize:11,backgroundColor:e.surface,padding:[2,3],borderRadius:2},m={show:o.ShowTooltip,confine:!0,enterable:!0,backgroundColor:e.surface,borderColor:e.border,textStyle:{color:e.text,fontSize:12},formatter:b=>{let w=b.data?.point;if(!w)return`${H(b.name||"")}${b.value==null||Number.isNaN(b.value)?" \xB7 No data":""}`;let M=w.Date?`<br/>${H(w.Date)}<br/><strong>${H(De(w.Value,o))}</strong>`:w.X!==void 0?`<br/>${H(o.XLabel||"X")}: ${w.X}<br/>${H(o.YLabel||"Y")}: ${w.Y}${w.Size===void 0?"":`<br/>Size: ${w.Size}`}`:`<br/><strong>${H(De(w.Value,o))}</strong>`;return`${H(w.SeriesName?`${w.SeriesName} \xB7 ${w.Label}`:w.Label)}${M}${b.data?.conversion?`<br/>${H(b.data.conversion)}`:""}`}},g={backgroundColor:e.surface,color:u.map((b,w)=>f(b,w)),animation:!!o.EnableAnimation&&!i,animationDuration:300,animationDurationUpdate:150,textStyle:{fontFamily:"Inter,system-ui,sans-serif",color:e.text},aria:{enabled:!0,description:`${o.Title}. ${o.Description||""} Exact values and keyboard selection are in the data table.`},tooltip:m},y={axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:e.muted,fontSize:10,hideOverlap:!0},splitLine:{lineStyle:{color:e.border,type:"dashed"}}},x=t,_=[...new Set(x.Points.map(b=>b.Group||"Observations"))],S=Math.max(1,...x.Points.map(b=>b.Size||0));return{...g,legend:d,grid:{left:20,right:30,top:o.ShowLegend?50:30,bottom:36,containLabel:!0},xAxis:{...y,type:"value",name:x.XLabel||"X",nameLocation:"middle",nameGap:30},yAxis:{...y,type:"value",name:x.YLabel||"Y"},series:_.map((b,w)=>({type:"scatter",name:b,symbol:za(w),itemStyle:{color:f(x.Points.find(M=>(M.Group||"Observations")===b)?.Color,w)},label:{...v,width:Math.min(140,a*.25),overflow:"truncate",position:"top",formatter:"{b}"},labelLayout:Mf(a,o.Height||320,o.ShowLegend?38:8),symbolSize:(M,C)=>x.Bubble?8+36*Math.sqrt((C.data.point.Size??1)/S):12,emphasis:{focus:"none",scale:!1},blur:{itemStyle:{opacity:1},lineStyle:{opacity:1},label:{opacity:1}},data:x.Points.filter(M=>(M.Group||"Observations")===b).map(M=>({name:M.Label,value:[M.X,M.Y],point:h(M.Key),itemStyle:c(M.Key,M.Color,w),emphasis:{itemStyle:rr(f(M.Color,w))}}))}))}}function UO(t,e,r={}){return Ge([I0,Na]),ni(t,"scatter",e,r,VO)}function BO(t,e,r,i=!1,a=640){let n="radar",o=t,s=tr(n,t),l=(C,T)=>o.ShowPatterns?mr(C,T):void 0,u=e.palette,f=(C,T)=>Ot(e.forcedColors?e.text:Fr(C,u[T%u.length],e.dark,e.read),e.surface,n==="line"||n==="radar"||n==="polar"&&o.PolarType==="Line"?4.5:3.2),c=(C,T,A)=>Vt(f(T,A),e.surface,o.SelectedKey===C),h=(C,T)=>s.find(A=>A.Key===C&&(!T||A.SeriesKey===T)),d={data:["line","radar","bar","polar"].includes(n)?o.Series.map(C=>C.Label):n==="scatter"?[...new Set(o.Points.map(C=>C.Group||"Observations"))]:["pie","doughnut","nightingale","funnel"].includes(n)?[...new Set(o.Items.map(C=>C.Label))]:[],show:o.ShowLegend,type:"scroll",top:6,left:10,right:10,itemWidth:24,itemHeight:12,selectedMode:!1,pageTextStyle:{color:e.muted},pageIconColor:e.text,textStyle:{color:e.muted,fontSize:11}},v={show:o.ShowLabels,color:at(e.surface),fontSize:11,backgroundColor:e.surface,padding:[2,3],borderRadius:2},m={show:o.ShowTooltip,confine:!0,enterable:!0,backgroundColor:e.surface,borderColor:e.border,textStyle:{color:e.text,fontSize:12},formatter:C=>{let T=C.data?.point;if(!T)return`${H(C.name||"")}${C.value==null||Number.isNaN(C.value)?" \xB7 No data":""}`;let A=T.Date?`<br/>${H(T.Date)}<br/><strong>${H(De(T.Value,o))}</strong>`:T.X!==void 0?`<br/>${H(o.XLabel||"X")}: ${T.X}<br/>${H(o.YLabel||"Y")}: ${T.Y}${T.Size===void 0?"":`<br/>Size: ${T.Size}`}`:`<br/><strong>${H(De(T.Value,o))}</strong>`;return`${H(T.SeriesName?`${T.SeriesName} \xB7 ${T.Label}`:T.Label)}${A}${C.data?.conversion?`<br/>${H(C.data.conversion)}`:""}`}},g={backgroundColor:e.surface,color:u.map((C,T)=>f(C,T)),animation:!!o.EnableAnimation&&!i,animationDuration:300,animationDurationUpdate:150,textStyle:{fontFamily:"Inter,system-ui,sans-serif",color:e.text},aria:{enabled:!0,description:`${o.Title}. ${o.Description||""} Exact values and keyboard selection are in the data table.`},tooltip:m},y={axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:e.muted,fontSize:10,hideOverlap:!0},splitLine:{lineStyle:{color:e.border,type:"dashed"}}},x=t,_=o.ShowLegend?48:22,S=o.Height||320,b=_+(S-_-38)/2,w=Math.max(12,Math.min(a*.24,(S-_-64)/2)),M=x.Categories.map((C,T)=>{let A=Math.max(1,...x.Series.map(L=>L.Values[T]??0)),D=10**Math.floor(Math.log10(A));return C.Max??Math.ceil(A/D)*D});return{...g,legend:d,tooltip:{...m,formatter:C=>{let T=x.Series.find(A=>A.Key===C.data?.point?.SeriesKey);return T?`<strong>${H(T.Label)}</strong><br/>${x.Categories.map((A,D)=>`${H(A.Label)}: ${H(De(T.Values[D],o))}`).join("<br/>")}`:""}},radar:{center:["50%",b],radius:w,shape:x.GridShape==="Circle"?"circle":"polygon",splitNumber:x.SplitNumber??4,indicator:x.Categories.map((C,T)=>({name:Kh.truncateText(`${C.Label}${x.ShowAxisBounds!==!1?`
23
- 0\u2013${De(M[T],o,!0)}`:""}`,Math.max(28,Math.min(100,a*.22)),"11px Inter,system-ui","\u2026"),min:0,max:M[T]})),axisName:{color:e.text,fontSize:11,lineHeight:15,width:Math.max(28,Math.min(100,a*.22)),overflow:"truncate"},axisNameGap:7,axisLine:{lineStyle:{color:e.border,width:1}},splitLine:{lineStyle:{color:e.border,width:1}},splitArea:{show:!1}},series:x.Series.map((C,T)=>{let A=f(C.Color,T),D=o.SelectedKey===C.Key;return{id:C.Key,name:C.Label,type:"radar",symbol:za(T),symbolSize:D?9:7,lineStyle:{color:A,width:D?3:2.5,type:Jo(T)},itemStyle:{...Vt(A,e.surface,D),decal:x.ShowArea&&o.ShowPatterns?mr(T,A):void 0},areaStyle:x.ShowArea?{color:A,opacity:.08}:void 0,label:{...v,position:"top",formatter:L=>De(L.value,o,!0)},labelLayout:Mf(a,S,o.ShowLegend?38:8),emphasis:{focus:"none",itemStyle:rr(A),lineStyle:{width:3}},blur:{lineStyle:{opacity:1},itemStyle:{opacity:1}},data:C.Values.some(L=>L===null)||!C.Values.length?[]:[{name:C.Label,value:C.Values,point:{Key:C.Key,Label:C.Label,Value:null,SeriesKey:C.Key,SeriesName:C.Label,PointType:"Series"}}]}})}}function FO(t,e,r={}){return Ge([k0,af]),ni(t,"radar",e,r,BO)}function HO(t,e){return{backgroundColor:e.surface,animation:t.EnableAnimation&&!matchMedia("(prefers-reduced-motion: reduce)").matches,animationDuration:350,animationDurationUpdate:180,textStyle:{fontFamily:"Inter, system-ui, sans-serif",color:e.text},aria:{enabled:!0,description:`${t.Title}. ${t.Description||""} Exact values and keyboard selections are available in the chart data table.`},tooltip:{show:t.ShowTooltip,confine:!0,enterable:!0,backgroundColor:e.surface,borderColor:e.border,textStyle:{color:e.text,fontSize:12},extraCssText:"border-radius:8px;box-shadow:0 8px 28px #0002;"}}}function Kd(t){return{axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:t.muted,fontSize:11}}}function GO(t,e){let{min:r,max:i}=e_(t),a=qd(Ra(t.ColorScale)?t.ColorScale:"Purple",e.dark,e.read),n=e.forcedColors?e.text:t.ColorScale==="Automatic"?e.palette[0]:t.ColorScale==="Teal"?"#126e5b":a.solid,o=t.ColorScale==="Diverging"&&!e.forcedColors?[Ot("#ba5943",e.surface,9),Ot(e.surface,e.surface),Ot("#6850bf",e.surface,9)]:r_(n,e.surface);return{...HO(t,e),grid:{left:12,right:12,top:16,bottom:t.ShowLegend?62:12,containLabel:!0},tooltip:{...HO(t,e).tooltip,formatter:s=>{let l=Af(t,s.dataIndex);return`${H(l.YLabel)} \xB7 ${H(l.XLabel)}<br/><strong>${H(De(l.Value,t))}</strong>`}},xAxis:{...Kd(e),type:"category",data:t.XCategories.map(s=>s.Label),axisLabel:{...Kd(e).axisLabel,hideOverlap:!0,width:120,overflow:"truncate"}},yAxis:{...Kd(e),type:"category",inverse:!0,data:t.YCategories.map(s=>s.Label),axisLabel:{...Kd(e).axisLabel,width:80,overflow:"truncate"}},visualMap:{show:t.ShowLegend,min:r,max:i,calculable:!1,orient:"horizontal",left:"center",bottom:6,itemWidth:9,itemHeight:130,text:["Higher","Lower"],textGap:9,textStyle:{color:e.muted,fontSize:10},inRange:{color:o}},series:[{type:"heatmap",data:t.Cells.map(s=>({name:s.Key,value:[t.XCategories.findIndex(l=>l.Key===s.XKey),t.YCategories.findIndex(l=>l.Key===s.YKey),s.Value??"-"],itemStyle:{...Vt(ka(o,((s.Value??r)-r)/(i-r)),e.surface,t.SelectedKey===s.Key),borderRadius:4},label:{color:at(ka(o,((s.Value??r)-r)/(i-r)))},emphasis:{itemStyle:rr(ka(o,((s.Value??r)-r)/(i-r)))}})),label:{show:t.ShowLabels,fontSize:10,formatter:s=>De(t.Cells[s.dataIndex].Value,t,!0)},emphasis:{itemStyle:{borderColor:e.text,borderWidth:2,borderType:"solid"}}}]}}function KO(t,e,r,i,a){return Gx(t,e,r,i,a)}function YO(t,e,r={}){return Ge([G0,Na,ux]),KO(t,"heatmap",e,r,GO)}var Sf={instances:new Map,serial:0},WO;function jt(t,e,r){var i=document.createElement(t);return e&&(i.className=e),r!==void 0&&(i.textContent=r),i}function Ae(t,e,r){return t.setAttribute(e,String(r)),t}function $O(t,e){if(t.error||(t.error=Ae(jt("p","blu-common-error"),"role","alert"),t.host.append(t.error)),t.error.textContent=e,t.error.hidden=!e,e&&t.lastError!==e&&t.events.Error){t.lastError=e;try{t.events.Error(e)}catch{}}e||(t.lastError="")}function KH(t,e,r,i){if(t=t===void 0?e:Number(t),!Number.isInteger(t)||t<r||t>i)throw Error("Expected an integer between "+r+" and "+i+".");return t}function Kx(t){var e=Sf.instances.get(t);e&&(e.dead=!0,e.cleanup.forEach(function(r){r()}),e.owned.forEach(function(r){r.remove()}),e.host._bluChartsSparklineOwner===t&&(delete e.host._bluChartsSparklineOwner,e.host.removeAttribute("data-blu-ready")),Sf.instances.delete(t))}function YH(t,e){return t.owned.push(e),e}function XO(t,e,r=300,i="Smooth"){var a=typeof t=="string"?JSON.parse(t||"[]"):t||[];if(!Array.isArray(a)||a.length>1e4)throw Error("Points must be a list with at most 10,000 items.");var n=a.map(function(_){if(!_||typeof _.Value!="number"||!Number.isFinite(_.Value))throw Error("Every Sparkline point needs a finite numeric Value.");return _.Value});if(!n.length)return{rows:a,coordinates:[],line:"",area:""};var o=Math.min.apply(null,n),s=Math.max.apply(null,n),l=s-o,u=Math.max(Math.abs(o),Math.abs(s),1),f=o/u,c=s/u-f,h=n.map(function(_,S){return[n.length===1?r/2:6+S*(r-12)/(n.length-1),c?e-6-(_/u-f)/c*(e-12):e/2]}),p=h.map(function(_,S){return(S?"L":"M")+_[0].toFixed(3)+" "+_[1].toFixed(3)}).join(" ");if(i==="Smooth"&&h.length>2){var d=(r-12)/(h.length-1),v=h.slice(1).map(function(_,S){return(_[1]-h[S][1])/d}),m=h.map(function(_,S){if(S===0)return v[0];if(S===h.length-1)return v[S-1];var b=v[S-1],w=v[S];return b*w>0?2*b*w/(b+w):0});p="M"+h[0][0].toFixed(3)+" "+h[0][1].toFixed(3);for(var g=1;g<h.length;g++){var y=h[g-1],x=h[g];p+=" C"+(y[0]+d/3).toFixed(3)+" "+(y[1]+m[g-1]*d/3).toFixed(3)+" "+(x[0]-d/3).toFixed(3)+" "+(x[1]-m[g]*d/3).toFixed(3)+" "+x[0].toFixed(3)+" "+x[1].toFixed(3)}}return{rows:a,coordinates:h,line:p,area:p+" L"+h[h.length-1][0]+" "+(e-4)+" L"+h[0][0]+" "+(e-4)+" Z",min:o,max:s,first:n[0],last:n[n.length-1]}}function WH(t){var e=t.options,r=Math.max(24,Math.round(t.host.clientWidth||300)),i=JSON.stringify([e,r,t.reducedMotion.matches]);let a=(U,F,K={})=>(e.Messages?.[U]??F).replace(/\{(\w+)\}/g,(X,re)=>K[re]??X);if(t.renderSignature===i)return;var n=e.LineStyle||"Smooth";if(!["Straight","Smooth"].includes(n))throw Error("LineStyle must be Straight or Smooth.");var o=KH(e.Height,64,24,240),s=JSON.stringify([e.PointsJson,o,r,n]),l=t.geometryKey===s?t.geometry:XO(e.PointsJson,o,r,n),u=e.Animation||(e.AnimateGlow===!1?"Off":"Once");if(!["Off","Once","Continuous"].includes(u))throw Error("Animation must be Off, Once or Continuous.");var f=e.AnimationDuration===void 0?5:Number(e.AnimationDuration);if(!Number.isFinite(f)||f<1||f>60)throw Error("AnimationDuration must be between 1 and 60 seconds.");var c=e.AreaOpacity===void 0?18:Number(e.AreaOpacity);if(!Number.isFinite(c)||c<0||c>100)throw Error("AreaOpacity must be between 0 and 100 percent.");t.animation!==u&&(t.animationPaused=!1),t.animation=u,t.geometryKey=s,t.geometry=l;var h=String(e.Color||"Primary").toLowerCase();if("default primary secondary success processing warning error danger magenta red volcano orange gold lime green cyan blue geekblue purple".split(" ").indexOf(h)<0)throw Error("Unknown ComponentColor.");t.body||(t.body=YH(t,jt("div","blu-sparkline")),t.host.append(t.body));for(var p=t.body,d=!!(p.querySelector("details")&&p.querySelector("details").open),v=p.contains(document.activeElement);p.firstChild;)p.removeChild(p.firstChild);if(p.style.setProperty("--blu-sparkline-color","var(--bluui-color-"+h+"-text)"),p.style.setProperty("--blu-sparkline-height",o+"px"),!l.rows.length){p.append(jt("p","blu-sparkline__empty",e.EmptyText||"No trend data.")),t.renderSignature=i;return}var m="http://www.w3.org/2000/svg",g=document.createElementNS(m,"svg");Ae(g,"viewBox","0 0 "+r+" "+o),Ae(g,"preserveAspectRatio","none"),Ae(g,"role","img");let y=l.last>l.first?"Rising":l.last<l.first?"Falling":"Unchanged";var x=e.SummaryText||a("TrendSummary","{count} points. {direction} from {first} to {last}. Minimum {min}, maximum {max}.",{count:l.rows.length,direction:a(y,y),first:l.first,last:l.last,min:l.min,max:l.max});Ae(g,"aria-label",(e.AccessibleLabel||"Trend")+". "+x);var _=document.createElementNS(m,"title");if(_.textContent=(e.AccessibleLabel||"Trend")+". "+x,g.append(_),e.ShowArea!==!1&&l.rows.length>1){var S=document.createElementNS(m,"defs"),b=document.createElementNS(m,"linearGradient");Ae(b,"id",t.uid+"-area"),Ae(b,"x1","0%"),Ae(b,"y1","0%"),Ae(b,"x2","0%"),Ae(b,"y2","100%"),[c/100,e.AreaFade===!1?c/100:0].forEach(function(U,F){var K=document.createElementNS(m,"stop");Ae(K,"offset",F?"100%":"0%"),K.style.stopColor="var(--blu-sparkline-color)",Ae(K,"stop-opacity",U),b.append(K)}),S.append(b),g.append(S);var w=document.createElementNS(m,"path");Ae(w,"d",l.area),Ae(w,"class","blu-sparkline__area"),w.style.fill="url(#"+t.uid+"-area)",g.append(w)}var M=document.createElementNS(m,"path");Ae(M,"d",l.line),Ae(M,"class","blu-sparkline__line"),Ae(M,"vector-effect","non-scaling-stroke"),g.append(M);var C=u!=="Off"&&l.rows.length>1&&!t.reducedMotion.matches;if(!C&&e.ShowEndMarker!==!1||l.rows.length===1){var T=l.coordinates[l.coordinates.length-1],A=document.createElementNS(m,"circle");Ae(A,"cx",T[0]),Ae(A,"cy",T[1]),Ae(A,"r",3),Ae(A,"class","blu-sparkline__point"),g.append(A)}if(C){var D=document.createElementNS(m,"g");Ae(D,"class","blu-sparkline__traveler"),Ae(D,"aria-hidden","true"),[["halo",6],["ring",4.5],["cursor",3]].forEach(function(U){var F=document.createElementNS(m,"circle");Ae(F,"r",U[1]),Ae(F,"class","blu-sparkline__"+U[0]),D.append(F)});var L=document.createElementNS(m,"animateMotion"),O=document.createElementNS(m,"animate");Ae(L,"path",l.line),Ae(L,"calcMode","spline"),Ae(L,"keyPoints","0;1"),Ae(L,"keyTimes","0;1"),Ae(L,"keySplines","0.22 0.61 0.36 1"),Ae(O,"attributeName","opacity"),Ae(O,"values","0;1;1;0"),Ae(O,"keyTimes","0;0.03;0.96;1"),[L,O].forEach(function(U){Ae(U,"dur",f+"s"),Ae(U,"repeatCount",u==="Continuous"?"indefinite":"1"),Ae(U,"fill","freeze"),D.append(U)}),g.append(D)}if(p.append(g),C&&(u==="Continuous"||f>5)){var I=jt("button","blu-sparkline__pause");I.type="button";var P=function(){I.textContent=t.animationPaused?a("ResumeAnimation","Resume animation"):a("PauseAnimation","Pause animation"),t.animationPaused?g.pauseAnimations():g.unpauseAnimations()};I.addEventListener("click",function(){t.animationPaused=!t.animationPaused,P()}),p.append(I),P()}if(e.ShowDataTable){let U=function(){if(!(!V.open||R)){var F=jt("table"),K=jt("caption","",e.AccessibleLabel||"Trend"),X=jt("thead"),re=jt("tr");re.append(Ae(jt("th","",a("Point","Point")),"scope","col"),Ae(jt("th","",a("Value","Value")),"scope","col")),X.append(re),F.append(K,X);var Z=jt("tbody");l.rows.forEach(function(de,ie){var Ue=jt("tr");Ue.append(Ae(jt("th","",de.Label||String(ie+1)),"scope","row"),jt("td","",String(de.Value))),Z.append(Ue)}),F.append(Z),V.append(F),R=!0}};var V=jt("details","blu-sparkline__data");V.open=d,V.append(jt("summary","",a("ViewData","View trend data")));var R=!1;V.addEventListener("toggle",U),p.append(V),U(),v&&V.querySelector("summary").focus()}t.renderSignature=i}function $H(t,e){return{sync:function(r,i,a,n){var o=document.getElementById(r);if(!o)return"Component host was not found.";n=n||r;var s=Sf.instances.get(n);if(s&&s.host!==o&&(Kx(n),s=null),o._bluChartsSparklineOwner&&o._bluChartsSparklineOwner!==n&&Kx(o._bluChartsSparklineOwner),!s){s={host:o,key:n,uid:"blu-charts-trend-"+ ++Sf.serial,owned:[],cleanup:[],reducedMotion:matchMedia("(prefers-reduced-motion: reduce)")},Sf.instances.set(n,s);var l=function(){if(!s.dead&&s.options)try{e(s)}catch{}},u=new ResizeObserver(l);u.observe(o),s.reducedMotion.addEventListener("change",l),s.cleanup.push(function(){u.disconnect(),s.reducedMotion.removeEventListener("change",l)})}var f=o.nextElementSibling;f&&f.classList.contains("blu-component-preview")&&(f.hidden=!0),o._bluChartsSparklineOwner=n,s.options=i||{},s.events=a||{},Ae(o,"data-blu-ready","true");try{return e(s),$O(s,""),""}catch(c){return s.renderSignature=void 0,$O(s,c.message||String(c)),c.message||String(c)}},destroy:Kx}}function qO(){return WO||(WO=Object.assign($H("Sparkline",WH),{geometry:XO}))}function ZO(t){if(vr(t.Points,"Points"),t.Messages!==void 0&&(!t.Messages||typeof t.Messages!="object"||Array.isArray(t.Messages)||Object.keys(t.Messages).length>100||!Object.values(t.Messages).every(Qt)))throw new Error("Messages must contain plain text translations.");if(t.Points.some(e=>!e||!Ai(e.Value)||e.Label!==void 0&&!Qt(e.Label)))throw new Error("Points require supported finite values and plain text labels.");for(let e of["AnimateGlow","ShowArea","AreaFade","ShowEndMarker","ShowDataTable"])if(t[e]!==void 0&&typeof t[e]!="boolean")throw new Error(`${e} must be Boolean.`);for(let e of["AccessibleLabel","SummaryText","EmptyText","ExtendedClass"])if(t[e]!==void 0&&!Qt(t[e]))throw new Error(`${e} must be plain text within the text limit.`);if(t.Color!==void 0&&!Ra(t.Color))throw new Error("Unknown ComponentColor.");if(t.LineStyle!==void 0&&!["Straight","Smooth"].includes(t.LineStyle))throw new Error("LineStyle must be Straight or Smooth.");if(t.Animation!==void 0&&!["Off","Once","Continuous"].includes(t.Animation))throw new Error("Animation must be Off, Once or Continuous.");if(t.Height!==void 0&&(!Number.isInteger(t.Height)||t.Height<24||t.Height>240))throw new Error("Height must be an integer from 24 to 240.");if(t.AnimationDuration!==void 0&&(!Ai(t.AnimationDuration)||t.AnimationDuration<1||t.AnimationDuration>60))throw new Error("AnimationDuration must be between 1 and 60.");if(t.AreaOpacity!==void 0&&(!Ai(t.AreaOpacity)||t.AreaOpacity<0||t.AreaOpacity>100))throw new Error("AreaOpacity must be between 0 and 100.")}function jO(t,e,r={}){let i=qO(),a=document.createElement("div");a.id="blu-charts-sparkline-"+crypto.randomUUID(),t.append(a);let n={...e},o=!1,s=u=>{if(o)throw new Error("Component is destroyed.");let f={...n,...structuredClone(u)};try{ZO(f)}catch(v){try{r.Error?.(v.message)}catch{}throw v}let{Points:c,ExtendedClass:h,...p}=f,d=i.sync(a.id,{...p,PointsJson:JSON.stringify(c||[])},r,a.id);if(d)throw new Error(d);n=f,a.className=h||""},l=()=>{o||(o=!0,i.destroy(a.id),a.remove())};try{s({})}catch(u){throw l(),u}return{element:a,update:s,destroy:l}}return rI(XH);})();
17
+ `:"<br/>",g=c.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],h,null,p)})},e.prototype._showSeriesItemTooltip=function(r,i,a){var n=this._ecModel,o=_e(i),s=o.seriesIndex,l=n.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,p=u.getData(c),h=this._renderMode,d=r.positionDefault,v=df([p.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),m=v.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(f,c),y=new Jp;g.marker=y.makeTooltipMarker("item",xi(g.color),h);var x=Qg(u.formatTooltip(f,!1,c)),_=v.get("order"),b=v.get("valueFormatter"),S=x.frag,w=S?ny(b?k({valueFormatter:b},S):S,y,h,_,n.get("useUTC"),v.get("textStyle")):x.text,A="item_"+u.name+"_"+f;this._showOrMove(v,function(){this._showTooltipContent(v,w,g,A,r.offsetX,r.offsetY,r.position,r.target,y)}),a({type:"showTip",dataIndexInside:f,dataIndex:p.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,i,a){var n=this._renderMode==="html",o=_e(i),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(G(l)){var f=l;l={content:f,formatter:f},u=!0}u&&n&&l.content&&(l=ee(l),l.content=dt(l.content));var c=[l],p=this._ecModel.getComponent(o.componentMainType,o.componentIndex);p&&c.push(p),c.push({formatter:l.content});var h=r.positionDefault,d=df(c,this._tooltipModel,h?{position:h}:null),v=d.get("content"),m=Math.random()+"",g=new Jp;this._showOrMove(d,function(){var y=ee(d.get("formatterParams")||{});this._showTooltipContent(d,v,y,m,r.offsetX,r.offsetY,r.position,i,g)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,i,a,n,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var p=r.get("formatter");l=l||r.get("position");var h=i,d=this._getNearestPoint([o,s],a,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),v=d.color;if(p)if(G(p)){var m=r.ecModel.get("useUTC"),g=V(a)?a[0]:a,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=p,y&&(h=go(g.axisValue,h,m)),h=Ks(h,a,!0)}else if(Z(p)){var x=oe(function(_,b){_===this._ticket&&(c.setContent(b,f,r,v,l),this._updatePosition(r,l,o,s,c,a,u))},this);this._ticket=n,h=p(a,n,x)}else h=p;c.setContent(h,f,r,v,l),c.show(r,v),this._updatePosition(r,l,o,s,c,a,u)}},e.prototype._getNearestPoint=function(r,i,a,n,o){if(a==="axis"||V(i))return{color:n||o};if(!V(i))return{color:n||i.color||i.borderColor}},e.prototype._updatePosition=function(r,i,a,n,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||r.get("position");var c=o.getSize(),p=r.get("align"),h=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),Z(i)&&(i=i([a,n],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),V(i))a=Ae(i[0],u),n=Ae(i[1],f);else if($(i)){var v=i;v.width=c[0],v.height=c[1];var m=qi(v,{width:u,height:f});a=m.x,n=m.y,p=null,h=null}else if(G(i)&&l){var g=JF(i,d,c,r.get("borderWidth"));a=g[0],n=g[1]}else{var g=ZF(a,n,o,u,f,p?null:20,h?null:20);a=g[0],n=g[1]}if(p&&(a-=TD(p)?c[0]/2:p==="right"?c[0]:0),h&&(n-=TD(h)?c[1]/2:h==="bottom"?c[1]:0),Rd(r)){var g=jF(a,n,o,u,f);a=g[0],n=g[1]}o.moveTo(a,n)},e.prototype._updateContentNotChangedOnAxis=function(r,i){var a=this._lastDataByCoordSys,n=this._cbParamsList,o=!!a&&a.length===r.length;return o&&E(a,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&E(u,function(p,h){var d=c[h]||{},v=p.seriesDataIndices||[],m=d.seriesDataIndices||[];o=o&&p.value===d.value&&p.axisType===d.axisType&&p.axisId===d.axisId&&v.length===m.length,o&&E(v,function(g,y){var x=m[y];o=o&&g.seriesIndex===x.seriesIndex&&g.dataIndex===x.dataIndex}),n&&E(p.seriesDataIndices,function(g){var y=g.seriesIndex,x=i[y],_=n[y];x&&_&&_.data!==x.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=i,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,i){ye.node||!i.getDom()||(Au(this,"_updatePosition"),this._tooltipContent.dispose(),pf("itemTooltip",i),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(Mt);function df(t,e,r){var i=e.ecModel,a;r?(a=new je(r,i,i),a=new je(e.option,a,i)):a=e;for(var n=t.length-1;n>=0;n--){var o=t[n];o&&(o instanceof je&&(o=o.get("tooltip",!0)),G(o)&&(o={formatter:o}),o&&(a=new je(o,a,i)))}return a}function wD(t,e){return t.dispatchAction||oe(e.dispatchAction,e)}function ZF(t,e,r,i,a,n,o){var s=r.getSize(),l=s[0],u=s[1];return n!=null&&(t+l+n+2>i?t-=l+n:t+=n),o!=null&&(e+u+o>a?e-=u+o:e+=o),[t,e]}function jF(t,e,r,i,a){var n=r.getSize(),o=n[0],s=n[1];return t=Math.min(t+o,i)-o,e=Math.min(e+s,a)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function JF(t,e,r,i){var a=r[0],n=r[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,f=e.height;switch(t){case"inside":s=e.x+u/2-a/2,l=e.y+f/2-n/2;break;case"top":s=e.x+u/2-a/2,l=e.y-n-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+f+o;break;case"left":s=e.x-a-o,l=e.y+f/2-n/2;break;case"right":s=e.x+u+o,l=e.y+f/2-n/2}return[s,l]}function TD(t){return t==="center"||t==="middle"}function QF(t,e,r){var i=Jl(t).queryOptionMap,a=i.keys()[0];if(!(!a||a==="series")){var n=ki(e,a,i.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=n.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=_e(u).tooltipConfig;if(f&&f.name===t.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}var ED=qF;function ux(t){Ye(Id),t.registerComponentModel(dD),t.registerComponentView(ED),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Ze),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Ze)}var AD=E;function MD(t){if(t){for(var e in t)if(t.hasOwnProperty(e))return!0}}function fx(t,e,r){var i={};return AD(e,function(n){var o=i[n]=a();AD(t[n],function(s,l){if(Lt.isValidType(l)){var u={type:l,visual:s};r&&r(u,n),o[l]=new Lt(u),l==="opacity"&&(u=ee(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Lt(u))}})}),i;function a(){var n=function(){};n.prototype.__hidden=n.prototype;var o=new n;return o}}function LD(t,e,r){var i;E(r,function(a){e.hasOwnProperty(a)&&MD(e[a])&&(i=!0)}),i&&E(r,function(a){e.hasOwnProperty(a)&&MD(e[a])?t[a]=ee(e[a]):delete t[a]})}function DD(t,e,r,i){var a={};return E(t,function(n){var o=Lt.prepareVisualTypes(e[n]);a[n]=o}),{progress:function(o,s){var l;i!=null&&(l=s.getDimensionIndex(i));function u(b){return nh(s,c,b)}function f(b,S){QT(s,c,b,S)}for(var c,p=s.getStore();(c=o.next())!=null;){var h=s.getRawDataItem(c);if(!(h&&h.visualMap===!1))for(var d=i!=null?p.get(l,c):c,v=r(d),m=e[v],g=a[v],y=0,x=g.length;y<x;y++){var _=g[y];m[_]&&m[_].applyVisual(d,u,f)}}}}}var eH={get:function(t,e,r){var i=ee((tH[t]||{})[e]);return r&&V(i)?i[i.length-1]:i}},tH={color:{active:["#006edd","#e0ffff"],inactive:[ne.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},kd=eH;var ID=Lt.mapVisual,rH=Lt.eachVisual,iH=V,cx=E,aH=Ni,nH=or,oH=(function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return e.prototype.init=function(r,i,a){this.mergeDefaultAndTheme(r,a)},e.prototype.optionUpdated=function(r,i){var a=this.option;!i&&LD(a,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(r){var i=this.stateList;r=oe(r,this),this.controllerVisuals=fx(this.option.controller,i,r),this.targetVisuals=fx(this.option.target,i,r)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var r=this,i=this.option.seriesTargets;if(i){var a=[];return cx(i,function(l){if(l.seriesIndex!=null)a.push(l.seriesIndex);else if(l.seriesId!=null){var u;r.ecModel.eachSeries(function(f){f.id===l.seriesId&&(u=f)}),u&&a.push(u.componentIndex)}}),a}var n=this.option.seriesId,o=this.option.seriesIndex;o==null&&n==null&&(o="all");var s=ki(this.ecModel,"series",{index:o,id:n},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return F(s,function(l){return l.componentIndex})},e.prototype.eachTargetSeries=function(r,i){E(this.getTargetSeriesIndices(),function(a){var n=this.ecModel.getSeriesByIndex(a);n&&r.call(i,n)},this)},e.prototype.isTargetSeries=function(r){var i=!1;return this.eachTargetSeries(function(a){a===r&&(i=!0)}),i},e.prototype.formatValueText=function(r,i,a){var n=this.option,o=n.precision,s=this.dataBound,l=n.formatter,u;a=a||["<",">"],V(r)&&(r=r.slice(),u=!0);var f=i?r:u?[c(r[0]),c(r[1])]:c(r);if(G(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(Z(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?a[0]+" "+f[1]:r[1]===s[1]?a[1]+" "+f[0]:f[0]+" - "+f[1];return f;function c(p){return p===s[0]?"min":p===s[1]?"max":(+p).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var r=this.option,i=aH([r.min,r.max]);this._dataExtent=i},e.prototype.getDimension=function(r){var i=this,a=this.option.seriesTargets;if(a){var n=is(a,function(o){return o.seriesIndex!=null&&o.seriesIndex===r||o.seriesId!=null&&o.seriesId===i.ecModel.getSeriesByIndex(r).id});if(n)return n.dimension}return this.option.dimension},e.prototype.getDataDimensionIndex=function(r){var i=r.hostModel.seriesIndex,a=this.getDimension(i);if(a!=null)return r.getDimensionIndex(a);for(var n=r.dimensions,o=n.length-1;o>=0;o--){var s=n[o],l=r.getDimensionInfo(s);if(!l.isCalculationCoord)return l.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var r=this.ecModel,i=this.option,a={inRange:i.inRange,outOfRange:i.outOfRange},n=i.target||(i.target={}),o=i.controller||(i.controller={});Ce(n,a),Ce(o,a);var s=this.isCategory();l.call(this,n),l.call(this,o),u.call(this,n,"inRange","outOfRange"),f.call(this,o);function l(c){iH(i.color)&&!c.inRange&&(c.inRange={color:i.color.slice().reverse()}),c.inRange=c.inRange||{color:r.get("gradientColor")}}function u(c,p,h){var d=c[p],v=c[h];d&&!v&&(v=c[h]={},cx(d,function(m,g){if(Lt.isValidType(g)){var y=kd.get(g,"inactive",s);y!=null&&(v[g]=y,g==="color"&&!v.hasOwnProperty("opacity")&&!v.hasOwnProperty("colorAlpha")&&(v.opacity=[0,0]))}}))}function f(c){var p=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,h=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),v=this.getItemSymbol(),m=v||"roundRect";cx(this.stateList,function(g){var y=this.itemSize,x=c[g];x||(x=c[g]={color:s?d:[d]}),x.symbol==null&&(x.symbol=p&&ee(p)||(s?m:[m])),x.symbolSize==null&&(x.symbolSize=h&&ee(h)||(s?y[0]:[y[0],y[0]])),x.symbol=ID(x.symbol,function(S){return S==="none"?m:S});var _=x.symbolSize;if(_!=null){var b=-1/0;rH(_,function(S){S>b&&(b=S)}),x.symbolSize=ID(_,function(S){return nH(S,[0,b],[0,y[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(r){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(r){return null},e.prototype.getVisualMeta=function(r){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:ne.color.transparent,borderColor:ne.color.borderTint,contentColor:ne.color.theme[0],inactiveColor:ne.color.disabled,borderWidth:0,padding:ne.size.m,textGap:10,precision:0,textStyle:{color:ne.color.secondary}},e})(Ne),bl=oH;var PD=[20,140],sH=(function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(r,i){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=PD[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=PD[1])},e.prototype._resetRange=function(){var r=this.getExtent(),i=this.option.range;!i||i.auto?(r.auto=1,this.option.range=r):V(i)&&(i[0]>i[1]&&i.reverse(),i[0]=Math.max(i[0],r[0]),i[1]=Math.min(i[1],r[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),E(this.stateList,function(r){var i=this.option.controller[r].symbolSize;i&&i[0]!==i[1]&&(i[0]=i[1]/3)},this)},e.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},e.prototype.getSelected=function(){var r=this.getExtent(),i=Ni((this.get("range")||[]).slice());return i[0]>r[1]&&(i[0]=r[1]),i[1]>r[1]&&(i[1]=r[1]),i[0]<r[0]&&(i[0]=r[0]),i[1]<r[0]&&(i[1]=r[0]),i},e.prototype.getValueState=function(r){var i=this.option.range,a=this.getExtent(),n=X(this.option.unboundedRange,!0);return(n&&i[0]<=a[0]||i[0]<=r)&&(n&&i[1]>=a[1]||r<=i[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(r){var i=[];return this.eachTargetSeries(function(a){var n=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&n.push(l)},this),i.push({seriesId:a.id,dataIndex:n})},this),i},e.prototype.getVisualMeta=function(r){var i=ND(this,"outOfRange",this.getExtent()),a=ND(this,"inRange",this.option.range.slice()),n=[];function o(h,d){n.push({value:h,color:r(h,d)})}for(var s=0,l=0,u=a.length,f=i.length;l<f&&(!a.length||i[l]<=a[0]);l++)i[l]<a[s]&&o(i[l],"outOfRange");for(var c=1;s<u;s++,c=0)c&&n.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var c=1;l<f;l++)(!a.length||a[a.length-1]<i[l])&&(c&&(n.length&&o(n[n.length-1].value,"outOfRange"),c=0),o(i[l],"outOfRange"));var p=n.length;return{stops:n,outerColors:[p?n[0].color:"transparent",p?n[p-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=Us(bl.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:ne.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:ne.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:ne.color.shadow}}),e})(bl);function ND(t,e,r){if(r[0]===r[1])return r.slice();for(var i=200,a=(r[1]-r[0])/i,n=r[0],o=[],s=0;s<=i&&n<r[1];s++)o.push(n),n+=a;return o.push(r[1]),o}var RD=sH;var lH=(function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.autoPositionValues={left:1,right:1,top:1,bottom:1},r}return e.prototype.init=function(r,i){this.ecModel=r,this.api=i},e.prototype.render=function(r,i,a,n){if(this.visualMapModel=r,r.get("show")===!1){this.group.removeAll();return}this.doRender(r,i,a,n)},e.prototype.renderBackground=function(r){var i=this.visualMapModel,a=Xi(i.get("padding")||0),n=r.getBoundingRect();r.add(new Pe({z2:-1,silent:!0,shape:{x:n.x-a[3],y:n.y-a[0],width:n.width+a[3]+a[1],height:n.height+a[0]+a[2]},style:{fill:i.get("backgroundColor"),stroke:i.get("borderColor"),lineWidth:i.get("borderWidth")}}))},e.prototype.getControllerVisual=function(r,i,a){a=a||{};var n=a.forceState,o=this.visualMapModel,s={};if(i==="color"){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function f(h,d){s[h]=d}var c=o.controllerVisuals[n||o.getValueState(r)],p=Lt.prepareVisualTypes(c);return E(p,function(h){var d=c[h];a.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",d=c.__alphaForOpacity),Lt.dependsOn(h,i)&&d&&d.applyVisual(r,u,f)}),s[i]},e.prototype.positionGroup=function(r){var i=this.visualMapModel,a=this.api,n=_o(i,a).refContainer;Rp(r,i.getBoxLayoutParams(),n)},e.prototype.doRender=function(r,i,a,n){},e.type="visualMap",e})(Mt),zd=lH;var kD=[["left","right","width"],["top","bottom","height"]];function Vd(t,e,r){var i=t.option,a=i.align;if(a!=null&&a!=="auto")return a;for(var n={width:e.getWidth(),height:e.getHeight()},o=i.orient==="horizontal"?1:0,s=kD[o],l=[0,null,10],u={},f=0;f<3;f++)u[kD[1-o][f]]=l[f],u[s[f]]=f===2?r[0]:i[s[f]];var c=[["x","width",3],["y","height",0]][o],p=qi(u,n,i.padding);return s[(p.margin[c[2]]||0)+p[c[0]]+p[c[1]]*.5<n[c[1]]*.5?0:1]}function Sl(t,e){return E(t||[],function(r){r.dataIndex!=null&&(r.dataIndexInside=r.dataIndex,r.dataIndex=null),r.highlightKey="visualMap"+(e?e.componentIndex:"")}),t}var ia=or,uH=E,VD=Math.min,px=Math.max,fH=12,cH=6,pH=(function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._shapes={},r._dataInterval=[],r._handleEnds=[],r._hoverLinkDataIndices=[],r}return e.prototype.init=function(r,i){t.prototype.init.call(this,r,i),this._hoverLinkFromSeriesMouseOver=oe(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=oe(this._hideIndicator,this)},e.prototype.doRender=function(r,i,a,n){(!n||n.type!=="selectDataRange"||n.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var r=this.visualMapModel,i=this.group;this._orient=r.get("orient"),this._useHandle=r.get("calculable"),this._resetInterval(),this._renderBar(i);var a=r.get("text");this._renderEndsText(i,a,0),this._renderEndsText(i,a,1),this._updateView(!0),this.renderBackground(i),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(i)},e.prototype._renderEndsText=function(r,i,a){if(i){var n=i[1-a];n=n!=null?n+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,a===0?-s:l[1]+s],u),c=this._applyTransform(a===0?"bottom":"top",u),p=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new ke({style:wr(h,{x:f[0],y:f[1],verticalAlign:h.get("verticalAlign")||(p==="horizontal"?"middle":c),align:h.get("align")||(p==="horizontal"?c:"center"),text:n})}))}},e.prototype._renderBar=function(r){var i=this.visualMapModel,a=this._shapes,n=i.itemSize,o=this._orient,s=this._useHandle,l=Vd(i,this.api,n),u=a.mainGroup=this._createBarGroup(l),f=new Te;u.add(f),f.add(a.outOfRange=UD()),f.add(a.inRange=UD(null,s?FD(this._orient):null,oe(this._dragHandle,this,"all",!1),oe(this._dragHandle,this,"all",!0))),f.setClipPath(new Pe({shape:{x:0,y:0,width:n[0],height:n[1],r:3}}));var c=i.textStyleModel.getTextRect("\u56FD"),p=px(c.width,c.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(i,u,0,n,p,o),this._createHandle(i,u,1,n,p,o)),this._createIndicator(i,u,n,p,o),r.add(u)},e.prototype._createHandle=function(r,i,a,n,o,s){var l=oe(this._dragHandle,this,a,!1),u=oe(this._dragHandle,this,a,!0),f=xr(r.get("handleSize"),n[0]),c=Nt(r.get("handleIcon"),-f/2,-f/2,f,f,null,!0),p=FD(this._orient);c.attr({cursor:p,draggable:!0,drift:l,ondragend:u,onmousemove:function(g){Ka(g.event)}}),c.x=n[0]/2,c.useStyle(r.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=r.getModel(["emphasis","handleStyle"]).getItemStyle(),qc(c,!0),i.add(c);var h=this.visualMapModel.textStyleModel,d=new ke({cursor:p,draggable:!0,drift:l,onmousemove:function(g){Ka(g.event)},ondragend:u,style:wr(h,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var v=[f,0],m=this._shapes;m.handleThumbs[a]=c,m.handleLabelPoints[a]=v,m.handleLabels[a]=d},e.prototype._createIndicator=function(r,i,a,n,o){var s=xr(r.get("indicatorSize"),a[0]),l=Nt(r.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=r.getModel("indicatorStyle").getItemStyle();if(l instanceof it){var f=l.style;l.useStyle(k({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);i.add(l);var c=this.visualMapModel.textStyleModel,p=new ke({silent:!0,invisible:!0,style:wr(c,{x:0,y:0,text:""})});this.group.add(p);var h=[(o==="horizontal"?n/2:cH)+a[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=p,d.indicatorLabelPoint=h,this._firstShowIndicator=!0},e.prototype._dragHandle=function(r,i,a,n){if(this._useHandle){if(this._dragging=!i,!i){var o=this._applyTransform([a,n],this._shapes.mainGroup,!0);this._updateInterval(r,o[1]),this._hideIndicator(),this._updateView()}i===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),i?!this._hovering&&this._clearHoverLinkToSeries():BD(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[r],!1)}},e.prototype._resetInterval=function(){var r=this.visualMapModel,i=this._dataInterval=r.getSelected(),a=r.getExtent(),n=[0,r.itemSize[1]];this._handleEnds=[ia(i[0],a,n,!0),ia(i[1],a,n,!0)]},e.prototype._updateInterval=function(r,i){i=i||0;var a=this.visualMapModel,n=this._handleEnds,o=[0,a.itemSize[1]];$0(i,n,o,r,0);var s=a.getExtent();this._dataInterval=[ia(n[0],o,s,!0),ia(n[1],o,s,!0)]},e.prototype._updateView=function(r){var i=this.visualMapModel,a=i.getExtent(),n=this._shapes,o=[0,i.itemSize[1]],s=r?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,a,s,"inRange"),u=this._createBarVisual(a,a,o,"outOfRange");n.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),n.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(r,i,a,n){var o={forceState:n,convertOpacityToAlpha:!0},s=this._makeColorGradient(r,o),l=[this.getControllerVisual(r[0],"symbolSize",o),this.getControllerVisual(r[1],"symbolSize",o)],u=this._createBarPoints(a,l);return{barColor:new Ns(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(r,i){var a=100,n=[],o=(r[1]-r[0])/a;n.push({color:this.getControllerVisual(r[0],"color",i),offset:0});for(var s=1;s<a;s++){var l=r[0]+o*s;if(l>r[1])break;n.push({color:this.getControllerVisual(l,"color",i),offset:s/a})}return n.push({color:this.getControllerVisual(r[1],"color",i),offset:1}),n},e.prototype._createBarPoints=function(r,i){var a=this.visualMapModel.itemSize;return[[a[0]-i[0],r[0]],[a[0],r[0]],[a[0],r[1]],[a[0]-i[1],r[1]]]},e.prototype._createBarGroup=function(r){var i=this._orient,a=this.visualMapModel.get("inverse");return new Te(i==="horizontal"&&!a?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:i==="horizontal"&&a?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:i==="vertical"&&!a?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},e.prototype._updateHandle=function(r,i){if(this._useHandle){var a=this._shapes,n=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=n.itemSize,u=n.getExtent(),f=this._applyTransform("left",a.mainGroup);uH([0,1],function(c){var p=o[c];p.setStyle("fill",i.handlesColor[c]),p.y=r[c];var h=ia(r[c],[0,l[1]],u,!0),d=this.getControllerVisual(h,"symbolSize");p.scaleX=p.scaleY=d/l[0],p.x=l[0]-d/2;var v=pn(a.handleLabelPoints[c],mu(p,this.group));if(this._orient==="horizontal"){var m=f==="left"||f==="top"?(l[0]-d)/2:(l[0]-d)/-2;v[1]+=m}s[c].setStyle({x:v[0],y:v[1],text:n.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(r,i,a,n){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,c=f.indicator;if(c){c.attr("invisible",!1);var p={convertOpacityToAlpha:!0},h=this.getControllerVisual(r,"color",p),d=this.getControllerVisual(r,"symbolSize"),v=ia(r,s,u,!0),m=l[0]-d/2,g={x:c.x,y:c.y};c.y=v,c.x=m;var y=pn(f.indicatorLabelPoint,mu(c,this.group)),x=f.indicatorLabel;x.attr("invisible",!1);var _=this._applyTransform("left",f.mainGroup),b=this._orient,S=b==="horizontal";x.setStyle({text:(a||"")+o.formatValueText(i),verticalAlign:S?_:"middle",align:S?"center":_});var w={x:m,y:v,style:{fill:h}},A={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};c.x=g.x,c.y=g.y,c.animateTo(w,C),x.animateTo(A,C)}else c.attr(w),x.attr(A);this._firstShowIndicator=!1;var T=this._shapes.handleLabels;if(T)for(var M=0;M<T.length;M++)this.api.enterBlur(T[M])}},e.prototype._enableHoverLinkToSeries=function(){var r=this;this._shapes.mainGroup.on("mousemove",function(i){if(r._hovering=!0,!r._dragging){var a=r.visualMapModel.itemSize,n=r._applyTransform([i.offsetX,i.offsetY],r._shapes.mainGroup,!0,!0);n[1]=VD(px(0,n[1]),a[1]),r._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=a[0])}}).on("mouseout",function(){r._hovering=!1,!r._dragging&&r._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var r=this.api.getZr();this.visualMapModel.option.hoverLink?(r.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),r.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(r,i){var a=this.visualMapModel,n=a.itemSize;if(a.option.hoverLink){var o=[0,n[1]],s=a.getExtent();r=VD(px(o[0],r),o[1]);var l=hH(a,s,o),u=[r-l,r+l],f=ia(r,o,s,!0),c=[ia(u[0],o,s,!0),ia(u[1],o,s,!0)];u[0]<o[0]&&(c[0]=-1/0),u[1]>o[1]&&(c[1]=1/0),i&&(c[0]===-1/0?this._showIndicator(f,c[1],"< ",l):c[1]===1/0?this._showIndicator(f,c[0],"> ",l):this._showIndicator(f,f,"\u2248 ",l));var p=this._hoverLinkDataIndices,h=[];(i||BD(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(c));var d=Qb(p,h);this._dispatchHighDown("downplay",Sl(d[0],a)),this._dispatchHighDown("highlight",Sl(d[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(r){var i;if(Ea(r.target,function(l){var u=_e(l);if(u.dataIndex!=null)return i=u,!0},!0),!!i){var a=this.ecModel.getSeriesByIndex(i.seriesIndex),n=this.visualMapModel;if(n.isTargetSeries(a)){var o=a.getData(i.dataType),s=o.getStore().get(n.getDataDimensionIndex(o),i.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var i=this._shapes.handleLabels;if(i)for(var a=0;a<i.length;a++)this.api.leaveBlur(i[a])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var r=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Sl(r,this.visualMapModel)),r.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var r=this.api.getZr();r.off("mouseover",this._hoverLinkFromSeriesMouseOver),r.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(r,i,a,n){var o=mu(i,n?null:this.group);return V(r)?pn(r,o,a):pg(r,o,a)},e.prototype._dispatchHighDown=function(r,i){i&&i.length&&this.api.dispatchAction({type:r,batch:i})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e})(zd);function UD(t,e,r,i){return new xa({shape:{points:t},draggable:!!r,cursor:e,drift:r,onmousemove:function(a){Ka(a.event)},ondragend:i})}function hH(t,e,r){var i=fH/2,a=t.get("hoverLinkDataSize");return a&&(i=ia(a,e,r,!0)/2),i}function BD(t){var e=t.get("hoverLinkOnHandle");return!!(e??t.get("realtime"))}function FD(t){return t==="vertical"?"ns-resize":"ew-resize"}var HD=pH;var GD={type:"selectDataRange",event:"dataRangeSelected",update:"update"},KD=function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(r){r.setSelected(t.selected)})};var YD=[{createOnAllSeries:!0,reset:function(t,e){var r=[];return e.eachComponent("visualMap",function(i){var a=t.pipelineContext;!i.isTargetSeries(t)||a&&a.large||r.push(DD(i.stateList,i.targetVisuals,oe(i.getValueState,i),i.getDataDimensionIndex(t.getData())))}),r}},{createOnAllSeries:!0,reset:function(t,e){var r=t.getData(),i=[];e.eachComponent("visualMap",function(a){if(a.isTargetSeries(t)){var n=a.getVisualMeta(oe(dH,null,t,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(r);o>=0&&(n.dimension=o,i.push(n))}}),t.getData().setVisual("visualMeta",i)}}];function dH(t,e,r,i){for(var a=e.targetVisuals[i],n=Lt.prepareVisualTypes(a),o={color:oh(t.getData(),"color")},s=0,l=n.length;s<l;s++){var u=n[s],f=a[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(r,c,p)}return o.color;function c(h){return o[h]}function p(h,d){o[h]=d}}var WD=E;function hx(t){var e=t&&t.visualMap;V(e)||(e=e?[e]:[]),WD(e,function(r){if(r){Cl(r,"splitList")&&!Cl(r,"pieces")&&(r.pieces=r.splitList,delete r.splitList);var i=r.pieces;if(i&&V(i)&&WD(i,function(n){$(n)&&(Cl(n,"start")&&!Cl(n,"min")&&(n.min=n.start),Cl(n,"end")&&!Cl(n,"max")&&(n.max=n.end))}),0)var a}})}function Cl(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var $D=!1;function vf(t){$D||($D=!0,t.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),t.registerAction(GD,KD),E(YD,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(hx))}function XD(t){t.registerComponentModel(RD),t.registerComponentView(HD),vf(t)}var vH=(function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._pieceList=[],r}return e.prototype.optionUpdated=function(r,i){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],mH[this._mode].call(this,this._pieceList),this._resetSelected(r,i);var n=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=ee(n)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=F(this._pieceList,function(l){return l=ee(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var r=this.option,i={},a=Lt.listVisualTypes(),n=this.isCategory();E(r.pieces,function(s){E(a,function(l){s.hasOwnProperty(l)&&(i[l]=1)})}),E(i,function(s,l){var u=!1;E(this.stateList,function(f){u=u||o(r,f,l)||o(r.target,f,l)},this),!u&&E(this.stateList,function(f){(r[f]||(r[f]={}))[l]=kd.get(l,f==="inRange"?"active":"inactive",n)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(r,i){var a=this.option,n=this._pieceList,o=(i?a:r).selected||{};if(a.selected=o,E(n,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),a.selectedMode==="single"){var s=!1;E(n,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(r){this.option.selected=ee(r)},e.prototype.getValueState=function(r){var i=Lt.findPieceIndex(r,this._pieceList);return i!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[i])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(r){var i=[],a=this._pieceList;return this.eachTargetSeries(function(n){var o=[],s=n.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=Lt.findPieceIndex(l,a);f===r&&o.push(u)},this),i.push({seriesId:n.id,dataIndex:o})},this),i},e.prototype.getRepresentValue=function(r){var i;if(this.isCategory())i=r.value;else if(r.value!=null)i=r.value;else{var a=r.interval||[];i=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return i},e.prototype.getVisualMeta=function(r){if(this.isCategory())return;var i=[],a=["",""],n=this;function o(f,c){var p=n.getRepresentValue({interval:f});c||(c=n.getValueState(p));var h=r(p,c);f[0]===-1/0?a[0]=h:f[1]===1/0?a[1]=h:i.push({value:f[0],color:h},{value:f[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return E(s,function(f){var c=f.interval;c&&(c[0]>u&&o([u,c[0]],"outOfRange"),o(c.slice()),u=c[1])},this),{stops:i,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=Us(bl.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e})(bl),mH={splitNumber:function(t){var e=this.option,r=Math.min(e.precision,20),i=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var n=(i[1]-i[0])/a;+n.toFixed(r)!==n&&r<5;)r++;e.precision=r,n=+n.toFixed(r),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var o=0,s=i[0];o<a;s+=n,o++){var l=o===a-1?i[1]:s+n;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),nm(t),E(t,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(t){var e=this.option;E(e.categories,function(r){t.push({text:this.formatValueText(r,!0),value:r})},this),qD(e,t)},pieces:function(t){var e=this.option;E(e.pieces,function(r,i){$(r)||(r={value:r});var a={text:"",index:i};if(r.label!=null&&(a.text=r.label),r.hasOwnProperty("value")){var n=a.value=r.value;a.interval=[n,n],a.close=[1,1]}else{for(var o=a.interval=[],s=a.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],c=0;c<2;c++){for(var p=[["gte","gt","min"],["lte","lt","max"]][c],h=0;h<3&&o[c]==null;h++)o[c]=r[p[h]],s[c]=l[h],f[c]=h===2;o[c]==null&&(o[c]=u[c])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(a.value=o[0])}a.visual=Lt.retrieveVisuals(r),t.push(a)},this),qD(e,t),nm(t),E(t,function(r){var i=r.close,a=[["<","\u2264"][i[1]],[">","\u2265"][i[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,a)},this)}};function qD(t,e){var r=t.inverse;(t.orient==="vertical"?!r:r)&&e.reverse()}var ZD=vH;var gH=(function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.doRender=function(){var r=this.group;r.removeAll();var i=this.visualMapModel,a=i.get("textGap"),n=i.textStyleModel,o=this._getItemAlign(),s=i.itemSize,l=this._getViewData(),u=l.endsText,f=Ba(i.get("showLabel",!0),!u),c=!i.get("selectedMode");u&&this._renderEndsText(r,u[0],s,f,o),E(l.viewPieceList,function(p){var h=p.piece,d=new Te;d.onclick=oe(this._onItemClick,this,h),this._enableHoverLink(d,p.indexInModelPieceList);var v=i.getRepresentValue(h);if(this._createItemSymbol(d,v,[0,0,s[0],s[1]],c),f){var m=this.visualMapModel.getValueState(v),g=n.get("align")||o;d.add(new ke({style:wr(n,{x:g==="right"?-a:s[0]+a,y:s[1]/2,text:h.text,verticalAlign:n.get("verticalAlign")||"middle",align:g,opacity:X(n.get("opacity"),m==="outOfRange"?.5:1)}),silent:c}))}r.add(d)},this),u&&this._renderEndsText(r,u[1],s,f,o),Dw(i.get("orient"),r,i.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},e.prototype._enableHoverLink=function(r,i){var a=this;r.on("mouseover",function(){return n("highlight")}).on("mouseout",function(){return n("downplay")});var n=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:Sl(s.findTargetDataIndices(i),s)})}},e.prototype._getItemAlign=function(){var r=this.visualMapModel,i=r.option;if(i.orient==="vertical")return Vd(r,this.api,r.itemSize);var a=i.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(r,i,a,n,o){if(i){var s=new Te,l=this.visualMapModel.textStyleModel;s.add(new ke({style:wr(l,{x:n?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:n?o:"center",text:i})})),r.add(s)}},e.prototype._getViewData=function(){var r=this.visualMapModel,i=F(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=r.get("text"),n=r.get("orient"),o=r.get("inverse");return(n==="horizontal"?o:!o)?i.reverse():a&&(a=a.slice().reverse()),{viewPieceList:i,endsText:a}},e.prototype._createItemSymbol=function(r,i,a,n){var o=Nt(this.getControllerVisual(i,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(i,"color"));o.silent=n,r.add(o)},e.prototype._onItemClick=function(r){var i=this.visualMapModel,a=i.option,n=a.selectedMode;if(n){var o=ee(a.selected),s=i.getSelectedMapKey(r);n==="single"||n===!0?(o[s]=!0,E(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e})(zd),jD=gH;function JD(t){t.registerComponentModel(ZD),t.registerComponentView(jD),vf(t)}function dx(t){Ye(XD),Ye(JD)}var yH={label:{enabled:!0},decal:{show:!1}},QD=ae(),eO=ae(),tO=Ts(xH);function xH(t,e){var r=t.getModel("aria");if(!r.get("enabled"))return;var i=eO(t).scope||(eO(t).scope={}),a=ee(yH);Ce(a.label,t.getLocaleModel().get("aria"),!1),Ce(r.option,a,!1),n(),o();function n(){var f=r.getModel("decal"),c=f.get("show");if(c){var p=te();t.eachSeries(function(h){h.isColorBySeries()||(QD(h).scope=p.get(h.type)||p.set(h.type,{}))}),t.eachSeries(function(h){if(Z(h.enableAriaDecal)){h.enableAriaDecal();return}var d=h.getData();if(h.isColorBySeries()){var x=Gg(h.ecModel,h.name,i,t.getSeriesCount()),_=d.getVisual("decal");d.setVisual("decal",b(_,x))}else{var v=h.getRawData(),m={},g=QD(h).scope;d.each(function(S){var w=d.getRawIndex(S);m[w]=S});var y=v.count();v.each(function(S){var w=m[S],A=v.getName(S)||S+"",C=Gg(h.ecModel,A,g,y),T=d.getItemVisual(w,"decal");d.setItemVisual(w,"decal",b(T,C))})}function b(S,w){var A=S?k(k({},w),S):w;return A.dirty=!0,A}})}}function o(){var f=e.getZr().dom;if(f){var c=t.getLocaleModel().get("aria"),p=r.getModel("label");if(p.option=le(p.option,c),!!p.get("enabled")){if(f.setAttribute("role","img"),p.get("description")){f.setAttribute("aria-label",p.get("description"));return}var h=t.getSeriesCount(),d=p.get(["data","maxCount"])||10,v=p.get(["series","maxCount"])||10,m=Math.min(h,v),g;if(!(h<1)){var y=l();if(y){var x=p.get(["general","withTitle"]);g=s(x,{title:y})}else g=p.get(["general","withoutTitle"]);var _=[],b=h>1?p.get(["series","multiple","prefix"]):p.get(["series","single","prefix"]);g+=s(b,{seriesCount:h}),t.eachSeries(function(C,T){if(T<m){var M=void 0,O=C.get("name"),L=O?"withName":"withoutName";M=h>1?p.get(["series","multiple",L]):p.get(["series","single",L]),M=s(M,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:u(C.subType)});var D=C.getData();if(D.count()>d){var I=p.get(["data","partialData"]);M+=s(I,{displayCnt:d})}else M+=p.get(["data","allData"]);for(var P=p.get(["data","separator","middle"]),z=p.get(["data","separator","end"]),N=p.get(["data","excludeDimensionId"]),U=[],B=0;B<D.count();B++)if(B<d){var Y=D.getName(B),q=N?Ue(D.getValues(B),function(j,fe){return pe(N,fe)===-1}):D.getValues(B),Q=p.get(["data",Y?"withName":"withoutName"]);U.push(s(Q,{name:Y,value:q.join(P)}))}M+=U.join(P)+z,_.push(M)}});var S=p.getModel(["series","multiple","separator"]),w=S.get("middle"),A=S.get("end");g+=_.join(w)+A,f.setAttribute("aria-label",g)}}}}function s(f,c){if(!G(f))return f;var p=f;return E(c,function(h,d){p=p.replace(new RegExp("\\{\\s*"+d+"\\s*\\}","g"),h)}),p}function l(){var f=t.get("title");return f&&f.length&&(f=f[0]),f&&f.text}function u(f){var c=t.getLocaleModel().get(["series","typeNames"]);return c[f]||c.chart}}function vx(t){if(!(!t||!t.aria)){var e=t.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},E(["description","general","series","data"],function(r){e[r]!=null&&(e.label[r]=e[r])})}}function mx(t){t.registerPreprocessor(vx),t.registerVisual(t.PRIORITY.VISUAL.ARIA,tO)}function gx(){oL(_H)}function _H(t,e){E(t,function(r){if(!r.model.get(["axisLabel","inside"])){var i=bH(r);if(i){var a=r.isHorizontal()?"height":"width",n=r.model.get(["axisLabel","margin"]);e[a]-=i[a]+n,r.position==="top"?e.y+=i.height+n:r.position==="left"&&(e.x+=i.width+n)}}})}function bH(t){var e=t.model,r=t.scale;if(!e.get(["axisLabel","show"])||r.isBlank())return;var i,a,n=r.getExtent();r instanceof Oh?a=r.count():(i=r.getTicks(),a=i.length);var o=t.getLabelModel(),s=Po(t),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;f<a;f+=u){var c=i?i[f]:{value:n[0]+f},p=s(c,f),h=o.getTextRect(p),d=v(h,o.get("rotate")||0);l?l.union(d):l=d}return l;function v(m,g){var y=g*Math.PI/180,x=m.width,_=m.height,b=x*Math.abs(Math.cos(y))+Math.abs(_*Math.sin(y)),S=x*Math.abs(Math.sin(y))+Math.abs(_*Math.cos(y)),w=new ce(m.x,m.y,b,S);return w}}var yx=Math.sin,xx=Math.cos,rO=Math.PI,Yo=Math.PI*2,SH=180/rO,CH=(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,i,a,n,o){this._add("C",e,r,i,a,n,o)},t.prototype.quadraticCurveTo=function(e,r,i,a){this._add("Q",e,r,i,a)},t.prototype.arc=function(e,r,i,a,n,o){this.ellipse(e,r,i,i,0,a,n,o)},t.prototype.ellipse=function(e,r,i,a,n,o,s,l){var u=s-o,f=!l,c=Math.abs(u),p=Ii(c-Yo)||(f?u>=Yo:-u>=Yo),h=u>0?u%Yo:u%Yo+Yo,d=!1;p?d=!0:Ii(c)?d=!1:d=h>=rO==!!f;var v=e+i*xx(o),m=r+a*yx(o);this._start&&this._add("M",v,m);var g=Math.round(n*SH);if(p){var y=1/this._p,x=(f?1:-1)*(Yo-y);this._add("A",i,a,g,1,+f,e+i*xx(o+x),r+a*yx(o+x)),y>.01&&this._add("A",i,a,g,0,+f,v,m)}else{var _=e+i*xx(s),b=r+a*yx(s);this._add("A",i,a,g,+d,+f,_,b)}},t.prototype.rect=function(e,r,i,a){this._add("M",e,r),this._add("l",i,0),this._add("l",0,a),this._add("l",-i,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,r,i,a,n,o,s,l,u){for(var f=[],c=this._p,p=1;p<arguments.length;p++){var h=arguments[p];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})(),Ud=CH;var mf="none",wH=Math.round;function TH(t){var e=t.fill;return e!=null&&e!==mf}function EH(t){var e=t.stroke;return e!=null&&e!==mf}var _x=["lineCap","miterLimit","lineJoin"],AH=F(_x,function(t){return"stroke-"+t.toLowerCase()});function bx(t,e,r,i){var a=e.opacity==null?1:e.opacity;if(r instanceof it){t("opacity",a);return}if(TH(e)){var n=Za(e.fill);t("fill",n.color);var o=e.fillOpacity!=null?e.fillOpacity*n.opacity*a:n.opacity*a;(i||o<1)&&t("fill-opacity",o)}else t("fill",mf);if(EH(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*a:s.opacity*a,c=e.strokeFirst;if((i||u!==1)&&t("stroke-width",u),(i||c)&&t("paint-order",c?"stroke":"fill"),(i||f<1)&&t("stroke-opacity",f),e.lineDash){var p=Ou(r),h=p[0],d=p[1];h&&(d=wH(d||0),t("stroke-dasharray",h.join(",")),(d||i)&&t("stroke-dashoffset",d))}else i&&t("stroke-dasharray",mf);for(var v=0;v<_x.length;v++){var m=_x[v];if(i||e[m]!==Ms[m]){var g=e[m]||Ms[m];g&&t(AH[v],g)}}}else i&&t("stroke",mf)}var iO="http://www.w3.org/2000/svg",Sx="http://www.w3.org/1999/xlink",aO="http://www.w3.org/2000/xmlns/",nO="http://www.w3.org/XML/1998/namespace",Cx="ecmeta_";function Bd(t){return document.createElementNS(iO,t)}function ht(t,e,r,i,a){return{tag:t,attrs:r||{},children:i,text:a,key:e}}function MH(t,e){var r=[];if(e)for(var i in e){var a=e[i],n=i;a!==!1&&(a!==!0&&a!=null&&(n+='="'+a+'"'),r.push(n))}return"<"+t+" "+r.join(" ")+">"}function LH(t){return"</"+t+">"}function gf(t,e){e=e||{};var r=e.newline?`
18
+ `:"";function i(a){var n=a.children,o=a.tag,s=a.attrs,l=a.text;return MH(o,s)+(o!=="style"?dt(l):l||"")+(n?""+r+F(n,function(u){return i(u)}).join(r)+r:"")+LH(o)}return i(t)}function oO(t,e,r){r=r||{};var i=r.newline?`
19
+ `:"",a=" {"+i,n=i+"}",o=F(ie(t),function(l){return l+a+F(ie(t[l]),function(u){return u+":"+t[l][u]+";"}).join(i)+n}).join(i),s=F(ie(e),function(l){return"@keyframes "+l+a+F(ie(e[l]),function(u){return u+a+F(ie(e[l][u]),function(f){var c=e[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(i)+n}).join(i)+n}).join(i);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(i)}function yf(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Tx(t,e,r,i){return ht("svg","root",{width:t,height:e,xmlns:iO,"xmlns:xlink":Sx,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+t+" "+e:!1},r)}var DH=0;function Fd(){return DH++}var sO={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"},Wo="transform-origin";function OH(t,e,r){var i=k({},t.shape);k(i,e),t.buildPath(r,i);var a=new Ud;return a.reset(fc(t)),r.rebuildPath(a,1),a.generateStr(),a.getStr()}function IH(t,e){var r=e.originX,i=e.originY;(r||i)&&(t[Wo]=r+"px "+i+"px")}var PH={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function uO(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function NH(t,e,r){var i=t.shape.paths,a={},n,o;if(E(i,function(l){var u=yf(r.zrId);u.animation=!0,xf(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,p=ie(f),h=p.length;if(h){o=p[h-1];var d=f[o];for(var v in d){var m=d[v];a[v]=a[v]||{d:""},a[v].d+=m.d||""}for(var g in c){var y=c[g].animation;y.indexOf(o)>=0&&(n=y)}}}),!!n){e.d=!1;var s=uO(a,r);return n.replace(o,s)}}function lO(t){return G(t)?sO[t]?"cubic-bezier("+sO[t]+")":ds(t)?t:"":""}function xf(t,e,r,i){var a=t.animators,n=a.length,o=[];if(t instanceof tp){var s=NH(t,e,r);if(s)o.push(s);else if(!n)return}else if(!n)return;for(var l={},u=0;u<n;u++){var f=a[u],c=[f.getMaxTime()/1e3+"s"],p=lO(f.getClip().easing),h=f.getDelay();p?c.push(p):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 v(y){var x=y[1],_=x.length,b={},S={},w={},A="animation-timing-function";function C(Be,Le,ve){for(var de=Be.getTracks(),Se=Be.getMaxTime(),zt=0;zt<de.length;zt++){var tt=de[zt];if(tt.needsAnimate()){var Dr=tt.keyframes,gt=tt.propName;if(ve&&(gt=ve(gt)),gt)for(var dr=0;dr<Dr.length;dr++){var Ra=Dr[dr],bt=Math.round(Ra.time/Se*100)+"%",na=lO(Ra.easing),Ei=Ra.rawValue;(G(Ei)||me(Ei))&&(Le[bt]=Le[bt]||{},Le[bt][gt]=Ra.rawValue,na&&(Le[bt][A]=na))}}}}for(var T=0;T<_;T++){var M=x[T],O=M.targetName;O?O==="shape"&&C(M,S):!i&&C(M,b)}for(var L in b){var D={};ja(D,t),k(D,b[L]);var I=cc(D),P=b[L][A];w[L]=I?{transform:I}:{},IH(w[L],D),P&&(w[L][A]=P)}var z,N=!0;for(var L in S){w[L]=w[L]||{};var U=!z,P=S[L][A];U&&(z=new Kt);var B=z.len();z.reset(),w[L].d=OH(t,S[L],z);var Y=z.len();if(!U&&B!==Y){N=!1;break}P&&(w[L][A]=P)}if(!N)for(var L in w)delete w[L].d;if(!i)for(var T=0;T<_;T++){var M=x[T],O=M.targetName;O==="style"&&C(M,w,function(de){return PH[de]})}for(var q=ie(w),Q=!0,j,T=1;T<q.length;T++){var fe=q[T-1],be=q[T];if(w[fe][Wo]!==w[be][Wo]){Q=!1;break}j=w[fe][Wo]}if(Q&&j){for(var L in w)w[L][Wo]&&delete w[L][Wo];e[Wo]=j}if(Ue(q,function(Be){return ie(w[Be]).length>0}).length){var Xe=uO(w,r);return Xe+" "+y[0]+" both"}}for(var m in l){var s=v(l[m]);s&&o.push(s)}if(o.length){var g=r.zrId+"-cls-"+Fd();r.cssNodes["."+g]={animation:o.join(",")},e.class=g}}function cO(t,e,r){if(!t.ignore)if(t.isSilent()){var i={"pointer-events":"none"};fO(i,e,r,!0)}else{var a=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},n=a.fill;if(!n){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&&(n=Ul(l))}var u=a.lineWidth;if(u){var f=!a.strokeNoScale&&t.transform?t.transform[0]:1;u=u/f}var i={cursor:"pointer"};n&&(i.fill=n),a.stroke&&(i.stroke=a.stroke),u&&(i["stroke-width"]=u),fO(i,e,r,!0)}}function fO(t,e,r,i){var a=JSON.stringify(t),n=r.cssStyleCache[a];n||(n=r.zrId+"-cls-"+Fd(),r.cssStyleCache[a]=n,r.cssNodes["."+n+(i?":hover":"")]=t),e.class=e.class?e.class+" "+n:n}var _f=Math.round;function vO(t){return t&&G(t.src)}function mO(t){return t&&Z(t.toDataURL)}function Ex(t,e,r,i){bx(function(a,n){var o=a==="fill"||a==="stroke";o&&uc(n)?Dx(e,t,a,i):o&&Bl(n)?Ox(r,t,a,i):t[a]=n,o&&i.ssr&&n==="none"&&(t["pointer-events"]="visible")},e,r,!1),FH(r,t,i)}function Ax(t,e){var r=Bb(e);r&&(r.each(function(i,a){i!=null&&(t[(Cx+a).toLowerCase()]=i+"")}),e.isSilent()&&(t[Cx+"silent"]="true"))}function pO(t){return Ii(t[0]-1)&&Ii(t[1])&&Ii(t[2])&&Ii(t[3]-1)}function RH(t){return Ii(t[4])&&Ii(t[5])}function Mx(t,e,r){if(e&&!(RH(e)&&pO(e))){var i=r?10:1e4;t.transform=pO(e)?"translate("+_f(e[4]*i)/i+" "+_f(e[5]*i)/i+")":ub(e)}}function hO(t,e,r){for(var i=t.points,a=[],n=0;n<i.length;n++)a.push(_f(i[n][0]*r)/r),a.push(_f(i[n][1]*r)/r);e.points=a.join(" ")}function dO(t){return!t.smooth}function kH(t){var e=F(t,function(r){return typeof r=="string"?[r,r]:r});return function(r,i,a){for(var n=0;n<e.length;n++){var o=e[n],s=r[o[0]];s!=null&&(i[o[1]]=_f(s*a)/a)}}}var zH={circle:[kH(["cx","cy","r"])],polyline:[hO,dO],polygon:[hO,dO]};function VH(t){for(var e=t.animators,r=0;r<e.length;r++)if(e[r].targetName==="shape")return!0;return!1}function gO(t,e){var r=t.style,i=t.shape,a=zH[t.type],n={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&fc(t)||4;if(a&&!e.willUpdate&&!(a[1]&&!a[1](i))&&!(o&&VH(t))&&!(l<1)){s=t.type;var f=Math.pow(10,u);a[0](i,n,f)}else{var c=!t.path||t.shapeChanged();t.path||t.createPathProxy();var p=t.path;c&&(p.beginPath(),t.buildPath(p,t.shape),t.pathUpdated());var h=p.getVersion(),d=t,v=d.__svgPathBuilder;(d.__svgPathVersion!==h||!v||l!==d.__svgPathStrokePercent)&&(v||(v=d.__svgPathBuilder=new Ud),v.reset(u),p.rebuildPath(v,l),v.generateStr(),d.__svgPathVersion=h,d.__svgPathStrokePercent=l),n.d=v.getStr()}return Mx(n,t.transform),Ex(n,r,t,e),Ax(n,t),e.animation&&xf(t,n,e),e.emphasis&&cO(t,n,e),ht(s,t.id+"",n)}function UH(t,e){var r=t.style,i=r.image;if(i&&!G(i)&&(vO(i)?i=i.src:mO(i)&&(i=i.toDataURL())),!!i){var a=r.x||0,n=r.y||0,o=r.width,s=r.height,l={href:i,width:o,height:s};return a&&(l.x=a),n&&(l.y=n),Mx(l,t.transform),Ex(l,r,t,e),Ax(l,t),e.animation&&xf(t,l,e),ht("image",t.id+"",l)}}function BH(t,e){var r=t.style,i=r.text;if(i!=null&&(i+=""),!(!i||isNaN(r.x)||isNaN(r.y))){var a=r.font||gr,n=r.x||0,o=cb(r.y||0,Yn(a),r.textBaseline),s=fb[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(km(r)){var u="",f=r.fontStyle,c=Rm(r.fontSize);if(!parseFloat(c))return;var p=r.fontFamily||av,h=r.fontWeight;u+="font-size:"+c+";font-family:"+p+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+a;return i.match(/\s/)&&(l["xml:space"]="preserve"),n&&(l.x=n),o&&(l.y=o),Mx(l,t.transform),Ex(l,r,t,e),Ax(l,t),e.animation&&xf(t,l,e),ht("text",t.id+"",l,void 0,i)}}function Lx(t,e){if(t instanceof he)return gO(t,e);if(t instanceof it)return UH(t,e);if(t instanceof io)return BH(t,e)}function FH(t,e,r){var i=t.style;if(pb(i)){var a=hb(t),n=r.shadowCache,o=n[a];if(!o){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=i.shadowOffsetX||0,c=i.shadowOffsetY||0,p=i.shadowBlur,h=Za(i.shadowColor),d=h.opacity,v=h.color,m=p/2/l,g=p/2/u,y=m+" "+g;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=ht("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[ht("feDropShadow","",{dx:f/l,dy:c/u,stdDeviation:y,"flood-color":v,"flood-opacity":d})]),n[a]=o}e.filter=Fl(o)}}function Dx(t,e,r,i){var a=t[r],n,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(sc(a))n="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(lc(a))n="radialGradient",o.cx=X(a.x,.5),o.cy=X(a.y,.5),o.r=X(a.r,.5);else return;for(var s=a.colorStops,l=[],u=0,f=s.length;u<f;++u){var c=oc(s[u].offset)*100+"%",p=s[u].color,h=Za(p),d=h.color,v=h.opacity,m={offset:c};m["stop-color"]=d,v<1&&(m["stop-opacity"]=v),l.push(ht("stop",u+"",m))}var g=ht(n,"",o,l),y=gf(g),x=i.gradientCache,_=x[y];_||(_=i.zrId+"-g"+i.gradientIdx++,x[y]=_,o.id=_,i.defs[_]=ht(n,_,o,l)),e[r]=Fl(_)}function Ox(t,e,r,i){var a=t.style[r],n=t.getBoundingRect(),o={},s=a.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",c;if(Iv(a)){var p=a.imageWidth,h=a.imageHeight,d=void 0,v=a.image;if(G(v)?d=v:vO(v)?d=v.src:mO(v)&&(d=v.toDataURL()),typeof Image>"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";qe(p,m),qe(h,m)}else if(p==null||h==null){var g=function(T,M){if(T){var O=T.elm,L=p||M.width,D=h||M.height;T.tag==="pattern"&&(u?(D=1,L/=n.width):f&&(L=1,D/=n.height)),T.attrs.width=L,T.attrs.height=D,O&&(O.setAttribute("width",L),O.setAttribute("height",D))}},y=eu(d,null,t,function(T){l||g(S,T),g(c,T)});y&&y.width&&y.height&&(p=p||y.width,h=h||y.height)}c=ht("image","img",{href:d,width:p,height:h}),o.width=p,o.height=h}else a.svgElement&&(c=ee(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(c){var x,_;l?x=_=1:u?(_=1,x=o.width/n.width):f?(x=1,_=o.height/n.height):o.patternUnits="userSpaceOnUse",x!=null&&!isNaN(x)&&(o.width=x),_!=null&&!isNaN(_)&&(o.height=_);var b=cc(a);b&&(o.patternTransform=b);var S=ht("pattern","",o,[c]),w=gf(S),A=i.patternCache,C=A[w];C||(C=i.zrId+"-p"+i.patternIdx++,A[w]=C,o.id=C,S=i.defs[C]=ht("pattern",C,o,[c])),e[r]=Fl(C)}}function yO(t,e,r){var i=r.clipPathCache,a=r.defs,n=i[t.id];if(!n){n=r.zrId+"-c"+r.clipPathIdx++;var o={id:n};i[t.id]=n,a[n]=ht("clipPath",n,o,[gO(t,r)])}e["clip-path"]=Fl(n)}function Ix(t){return document.createTextNode(t)}function Mn(t,e,r){t.insertBefore(e,r)}function Px(t,e){t.removeChild(e)}function Nx(t,e){t.appendChild(e)}function Rx(t){return t.parentNode}function kx(t){return t.nextSibling}function Hd(t,e){t.textContent=e}var xO=58,GH=120,KH=ht("","");function zx(t){return t===void 0}function aa(t){return t!==void 0}function YH(t,e,r){for(var i={},a=e;a<=r;++a){var n=t[a].key;n!==void 0&&(i[n]=a)}return i}function bf(t,e){var r=t.key===e.key,i=t.tag===e.tag;return i&&r}function Sf(t){var e,r=t.children,i=t.tag;if(aa(i)){var a=t.elm=Bd(i);if(Kd(KH,t),V(r))for(e=0;e<r.length;++e){var n=r[e];n!=null&&Nx(a,Sf(n))}else aa(t.text)&&!$(t.text)&&Nx(a,Ix(t.text))}else t.elm=Ix(t.text);return t.elm}function _O(t,e,r,i,a){for(;i<=a;++i){var n=r[i];n!=null&&Mn(t,Sf(n),e)}}function Gd(t,e,r,i){for(;r<=i;++r){var a=e[r];if(a!=null)if(aa(a.tag)){var n=Rx(a.elm);Px(n,a.elm)}else Px(t,a.elm)}}function Kd(t,e){var r,i=e.elm,a=t&&t.attrs||{},n=e.attrs||{};if(a!==n){for(r in n){var o=n[r],s=a[r];s!==o&&(o===!0?i.setAttribute(r,""):o===!1?i.removeAttribute(r):r==="style"?i.style.cssText=o:r.charCodeAt(0)!==GH?i.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?i.setAttributeNS(aO,r,o):r.charCodeAt(3)===xO?i.setAttributeNS(nO,r,o):r.charCodeAt(5)===xO?i.setAttributeNS(Sx,r,o):i.setAttribute(r,o))}for(r in a)r in n||i.removeAttribute(r)}}function WH(t,e,r){for(var i=0,a=0,n=e.length-1,o=e[0],s=e[n],l=r.length-1,u=r[0],f=r[l],c,p,h,d;i<=n&&a<=l;)o==null?o=e[++i]:s==null?s=e[--n]:u==null?u=r[++a]:f==null?f=r[--l]:bf(o,u)?(wl(o,u),o=e[++i],u=r[++a]):bf(s,f)?(wl(s,f),s=e[--n],f=r[--l]):bf(o,f)?(wl(o,f),Mn(t,o.elm,kx(s.elm)),o=e[++i],f=r[--l]):bf(s,u)?(wl(s,u),Mn(t,s.elm,o.elm),s=e[--n],u=r[++a]):(zx(c)&&(c=YH(e,i,n)),p=c[u.key],zx(p)?Mn(t,Sf(u),o.elm):(h=e[p],h.tag!==u.tag?Mn(t,Sf(u),o.elm):(wl(h,u),e[p]=void 0,Mn(t,h.elm,o.elm))),u=r[++a]);(i<=n||a<=l)&&(i>n?(d=r[l+1]==null?null:r[l+1].elm,_O(t,d,r,a,l)):Gd(t,e,i,n))}function wl(t,e){var r=e.elm=t.elm,i=t.children,a=e.children;t!==e&&(Kd(t,e),zx(e.text)?aa(i)&&aa(a)?i!==a&&WH(r,i,a):aa(a)?(aa(t.text)&&Hd(r,""),_O(r,null,a,0,a.length-1)):aa(i)?Gd(r,i,0,i.length-1):aa(t.text)&&Hd(r,""):t.text!==e.text&&(aa(i)&&Gd(r,i,0,i.length-1),Hd(r,e.text)))}function Vx(t,e){if(bf(t,e))wl(t,e);else{var r=t.elm,i=Rx(r);Sf(e),i!==null&&(Mn(i,e.elm,kx(r)),Gd(i,[t],0,0))}return e}var $H=0,XH=(function(){function t(e,r,i){if(this.type="svg",this.configLayer=qH("configLayer"),this.storage=r,this._opts=i=k({},i),this.root=e,this._id="zr"+$H++,this._oldVNode=Tx(i.width,i.height),e&&!i.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var n=this._svgDom=this._oldVNode.elm=Bd("svg");Kd(null,this._oldVNode),a.appendChild(n),e.appendChild(a)}this.resize(i.width,i.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",Vx(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return Lx(e,yf(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),i=this._width,a=this._height,n=yf(this._id);n.animation=e.animation,n.willUpdate=e.willUpdate,n.compress=e.compress,n.emphasis=e.emphasis,n.ssr=this._opts.ssr;var o=[],s=this._bgVNode=ZH(i,a,this._backgroundColor,n);s&&o.push(s);var l=e.compress?null:this._mainVNode=ht("g","main",{},[]);this._paintList(r,n,l?l.children:o),l&&o.push(l);var u=F(ie(n.defs),function(p){return n.defs[p]});if(u.length&&o.push(ht("defs","defs",{},u)),e.animation){var f=oO(n.cssNodes,n.cssAnims,{newline:!0});if(f){var c=ht("style","stl",{},[],f);o.push(c)}}return Tx(i,a,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},gf(this.renderToVNode({animation:X(e.cssAnimation,!0),emphasis:X(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:X(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,i){for(var a=e.length,n=[],o=0,s,l,u=0,f=0;f<a;f++){var c=e[f];if(!c.invisible){var p=c.__clipPaths,h=p&&p.length||0,d=l&&l.length||0,v=void 0;for(v=Math.max(h-1,d-1);v>=0&&!(p&&l&&p[v]===l[v]);v--);for(var m=d-1;m>v;m--)o--,s=n[o-1];for(var g=v+1;g<h;g++){var y={};yO(p[g],y,r);var x=ht("g","clip-g-"+u++,y,[]);(s?s.children:i).push(x),n[o++]=x,s=x}l=p;var _=Lx(c,r);_&&(s?s.children:i).push(_)}}},t.prototype.resize=function(e,r){var i=this._opts,a=this.root,n=this._viewport;if(e!=null&&(i.width=e),r!=null&&(i.height=r),a&&n&&(n.style.display="none",e=dy(a,0,i),r=dy(a,1,i),n.style.display=""),this._width!==e||this._height!==r){if(this._width=e,this._height=r,n){var o=n.style;o.width=e+"px",o.height=r+"px"}if(Bl(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(),i="data:image/svg+xml;";return e?(r=db(r),r&&i+"base64,"+r):i+"charset=UTF-8,"+encodeURIComponent(r)},t})();function qH(t){return function(){}}function ZH(t,e,r,i){var a;if(r&&r!=="none")if(a=ht("rect","bg",{width:t,height:e,x:"0",y:"0"}),uc(r))Dx({fill:r},a.attrs,"fill",i);else if(Bl(r))Ox({style:{fill:r},dirty:Ze,getBoundingRect:function(){return{width:t,height:e}}},a.attrs,"fill",i);else{var n=Za(r),o=n.color,s=n.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}var bO=XH;function Ux(t){t.registerPainter("svg",bO)}function Bx(t){let e=getComputedStyle(t),r=(n,o)=>e.getPropertyValue(n).trim()||o,i=document.documentElement.dataset.bluuiTheme==="dark",a=matchMedia("(forced-colors: active)").matches;if(a){let n=document.createElement("span");n.style.cssText="position:absolute;visibility:hidden;color:Canvas;background-color:CanvasText;forced-color-adjust:none",t.append(n);let o=getComputedStyle(n),s=o.color,l=o.backgroundColor;return n.remove(),{surface:s,text:l,muted:l,border:l,dark:i,forcedColors:a,read:()=>"",palette:Array(8).fill(l)}}return{forcedColors:a,surface:r("--bluui-surface","#fff"),text:r("--bluui-text","#182230"),muted:r("--bluui-text-muted","#667085"),border:r("--bluui-border","#e3e5ed"),dark:i,read:n=>e.getPropertyValue(n),palette:Qd(i)}}function SO(t){let e="",r=0;return{update(i){if(i===e)return;let a=!e;if(e=i,window.clearTimeout(r),a){t.textContent=i;return}t.textContent="",r=window.setTimeout(()=>{t.isConnected&&(t.textContent=i)},150)},destroy(){window.clearTimeout(r)}}}function Ln(t,e="",r){let i=document.createElement(t);return i.className=e,r!==void 0&&(i.textContent=r),i}function CO(t){if(!t.isConnected)throw new Error("Mount BluUI into an element connected to the document.");let e=Ln("div");return e.id="bluui-community-"+crypto.randomUUID(),t.append(e),e}function Fx(t,e,r){let i=CO(t),a={...e},n=!1,o=s=>{if(n)throw new Error("Component is destroyed.");a={...a,...s},r(i,a,o)};try{o({})}catch(s){throw i.remove(),s}return{element:i,update:o,destroy(){n||(n=!0,i.remove())}}}function Hx(t,e){return t+(e?" "+e:"")}var $o=typeof window>"u"?globalThis:window,wO="__bluuiCommunityModulesV1",TO=$o[wO]||($o[wO]={families:Object.create(null)}),jH=$o.BluUICommunityRuntime&&!Object.isFrozen($o.BluUICommunityRuntime)?$o.BluUICommunityRuntime:Object.assign({},$o.BluUICommunityRuntime||{});$o.BluUICommunityRuntime=jH;function EO(t,e){return TO.families[t]||(TO.families[t]=e())}var Pue=EO("common",()=>({instances:new Map,hosts:new Map,serial:0,overlays:[],inertState:new Map,oldOverflow:void 0}));function Gx(t,e,r={}){return Fx(t,e,(i,a,n)=>{let o=i.contains(document.activeElement),s=Ln("div",Hx("blu-chip blu-chip--"+(a.Color||"Default").toLowerCase()+(a.IsSelected?" blu-chip--selected":"")+(a.IsDisabled?" blu-chip--disabled":""),a.ExtendedClass));if(a.IsSelectable){let l=Ln("button","blu-chip__select",a.Label);l.type="button",l.disabled=!!a.IsDisabled,l.setAttribute("aria-pressed",String(!!a.IsSelected)),l.onclick=()=>{n({IsSelected:!a.IsSelected}),r.SelectionChanged?.(!a.IsSelected)},s.append(l)}else s.append(Ln("span","blu-chip__label",a.Label));if(a.IsRemovable){let l=Ln("button","blu-chip__remove","\xD7");l.type="button",l.disabled=!!a.IsDisabled,l.setAttribute("aria-label","Remove "+a.Label),l.onclick=()=>{let u=Array.from(document.querySelectorAll('a[href],button:not(:disabled),input:not(:disabled),select:not(:disabled),textarea:not(:disabled),[tabindex="0"]')).filter(c=>c.getClientRects().length&&!i.contains(c)),f=u.find(c=>!!(i.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_FOLLOWING))||u.at(-1);i.replaceChildren(),r.Removed?.(),document.activeElement===document.body&&f?.focus()},s.append(l)}i.replaceChildren(s),o&&i.querySelector("button")?.focus()})}function Cf(t,e={}){return Fx(t,e,(r,i)=>{r.setAttribute("role","status"),r.setAttribute("aria-label",i.AccessibleLabel||"Loading"),r.setAttribute("aria-busy","true");let a=Ln("div",Hx("blu-skeleton blu-skeleton--"+(i.Shape||"Text").toLowerCase()+(i.IsAnimated===!1?"":" blu-skeleton--animated"),i.ExtendedClass));a.setAttribute("aria-hidden","true"),a.style.width=i.Width||"100%",a.style.height=i.Height||"16px",r.replaceChildren(a)})}function AO(t){let e=document.createElement("div");e.className="blu-chart__skeleton",e.setAttribute("aria-hidden","true");let r=document.createElement("div");r.className="blu-chart__skeleton-key";let i=document.createElement("div"),a=document.createElement("div");r.append(i,a);let n=document.createElement("div");n.className="blu-chart__skeleton-plot",e.append(r,n);let o=document.createElement("span");o.className="blu-chart__state-message",t.replaceChildren(e,o);let s=[Cf(i,{Shape:"Text",Width:"88px",Height:"12px",IsAnimated:!1}),Cf(a,{Shape:"Text",Width:"64px",Height:"12px",IsAnimated:!1}),Cf(n,{Shape:"Rectangle",Width:"100%",Height:"100%",IsAnimated:!1})],l=!1;return{update(u,f,c,p){t.hidden=!u&&!f,t.classList.toggle("blu-chart__state--loading",u),e.hidden=!u,o.textContent=c;let h=u&&p;h!==l&&(l=h,s.forEach(d=>d.update({IsAnimated:h})))},destroy(){s.forEach(u=>u.destroy())}}}function Xo(t,e,r,i={}){return(t.Messages?.[e]??r).replace(/\{(\w+)\}/g,(a,n)=>i[n]??a)}function MO(t,e,r,i){let a=r.series||[],n=[],o=(c,p,h={})=>Xo(e,c,p,h),s=(c,p)=>c?.itemStyle?.color||c?.itemStyle?.areaColor||p?.itemStyle?.color||p?.lineStyle?.color||i.palette[0],l=(c,p,h,d,v,m,g,y,x)=>n.push({id:m,label:v,color:s(c,p),value:Ie(g,e),compactValue:Ie(g,e,!0),detail:y,percent:x,targets:[{seriesIndex:h,dataIndex:d}]});if(e.Series)e.Series.forEach((c,p)=>{let h=a[p],d=c.Values.flatMap((g,y)=>g===null?[]:[{v:g,i:y}]),v=d.at(-1),m=t==="radar";n.push({id:c.Key,label:c.Label||c.Name,color:h?.lineStyle?.color||s(null,h),line:h?.type==="line"||m,symbol:h?.symbol,dash:h?.lineStyle?.type,value:m?`${d.length} / ${e.Categories.length}`:Ie(v?.v??null,e),compactValue:m?void 0:Ie(v?.v??null,e,!0),detail:m?o("MeasuresReported","Measures reported"):v?o("Latest","Latest \xB7 {label}",{label:e.Categories[v.i].Label}):o("LatestValue","Latest value"),targets:[{seriesIndex:p}]})});else if(["pie","doughnut","nightingale","funnel"].includes(t))a.forEach((c,p)=>{let h=c.data.reduce((v,m)=>v+(m.value??0),0),d=e.Nested?e.Rings?.[p]?.Label:void 0;c.data.forEach((v,m)=>l(v,c,p,m,v.name,v.point.Key,v.value,d,t!=="funnel"&&v.value!==null&&h>0?v.value/h:void 0))});else if(t==="scatter")a.forEach((c,p)=>n.push({id:c.name,label:c.name,color:s(null,c),symbol:c.symbol,value:String(c.data.length),detail:o("Observations","Observations"),targets:[{seriesIndex:p}]}));else if(t==="treemap"){let c=Lf(e.Nodes),p=e.Nodes.filter(g=>g.ParentKey===null),h=p.reduce((g,y)=>g+(c.get(y.Key)??0),0),d=new Map,v=1,m=g=>g.forEach(y=>{d.set(y.id,v++),m(y.children||[])});m(a[0].data),p.forEach((g,y)=>{let x=c.get(g.Key);l(a[0].data[y],a[0],0,d.get(g.Key),g.Label,g.Key,x,o("TopLevelGroup","Top-level group"),h>0&&x!==null?x/h:void 0)})}else t==="sankey"&&e.Nodes.forEach((c,p)=>{let h=e.Links.filter(v=>v.TargetKey===c.Key).reduce((v,m)=>v+m.Value,0),d=e.Links.filter(v=>v.SourceKey===c.Key).reduce((v,m)=>v+m.Value,0);l(a[0].data[p],a[0],0,p,c.Label,c.Key,Math.max(h,d),o("NodeThroughput","Node throughput"))});let u=Array.isArray(r.visualMap)?r.visualMap[0]:r.visualMap,f=u?{label:t==="geo-map"?o("RegionValue","Region value"):t==="calendar-heatmap"?o("DailyValue","Daily value"):o("CellValue","Cell value"),min:u.min,max:u.max,colors:[...u.inRange.color]}:void 0;return t==="geo-map"?a.forEach((c,p)=>c.data.forEach((h,d)=>{(c.type==="scatter"||e.Regions.find(v=>v.Key===h.point.Key)?.Color)&&l(h,c,p,d,h.point.Label,h.point.Key,h.point.Value,c.type==="scatter"?o("LocationValue","Location \xB7 size = value"):o("CustomRegionColor","Custom region color"))})):t==="calendar-heatmap"&&a[0]?.data.forEach((c,p)=>{e.Items.find(h=>h.Key===c.point.Key)?.Color&&l(c,a[0],0,p,c.point.Label,c.point.Key,c.point.Value,o("CustomDayColor","Custom day color"))}),{entries:n,scale:f,note:t==="scatter"&&e.Bubble?o("BubbleSize","Bubble size represents Size."):void 0}}function Kx(t,e){return{value:e.LegendShowValues===!1?"":t.compactValue||t.value||"",detail:e.LegendShowValues===!1?"":t.detail||"",percent:e.LegendShowPercentages&&t.percent!==void 0?new Intl.NumberFormat(e.Locale||"en-US",{style:"percent",maximumFractionDigits:1}).format(t.percent):""}}function LO(t){let e=H(t.color),r=t.symbol||"rect",i=r.startsWith("empty"),a=r.replace(/^empty/,"").toLowerCase(),n=i?"none":e,o=t.dash==="dashed"?"5 3":t.dash==="dotted"?"2 3":"",s=a.includes("diamond")?'<path d="M14 2 20 8 14 14 8 8Z"':a.includes("triangle")||a==="arrow"?'<path d="M14 2 20 13 8 13Z"':a.includes("circle")||a==="pin"?'<circle cx="14" cy="8" r="4"':'<rect x="9" y="3" width="10" height="10" rx="2"';return`<svg viewBox="${t.line?"0 0 28 16":"6 0 16 16"}" width="${t.line?28:16}" height="16" aria-hidden="true">${t.line?`<path d="M1 8H27" fill="none" stroke="${e}" stroke-width="2" stroke-dasharray="${o}"/>`:""}${s} fill="${n}" stroke="${e}" stroke-width="1.5"/></svg>`}function DO(t,e,r){let i=t.querySelector(".blu-chart__stage"),a=document.createElement("div");a.className="blu-chart__body",i.before(a),a.append(i);let n=document.createElement("div");n.className="blu-chart__legend",n.setAttribute("role","group"),n.setAttribute("aria-label","Chart legend"),a.append(n);let o=null,s={entries:[]},l={},u="",f=[],c=t.querySelector(".blu-chart__status");function p(g){let y=Kx(g,l);return`<span class="blu-chart__legend-heading"><span class="blu-chart__legend-marker">${LO(g)}</span><span class="blu-chart__legend-text blu-chart__legend-label">${H(g.label)}</span><span class="blu-chart__legend-text blu-chart__legend-check" aria-hidden="true">\u2713</span></span>${y.value||y.percent?`<span class="blu-chart__legend-numbers">${y.value?`<span class="blu-chart__legend-text blu-chart__legend-value">${H(y.value)}</span>`:""}${y.percent?`<span class="blu-chart__legend-text blu-chart__legend-percent">${H(y.percent)}</span>`:""}</span>`:""}${y.detail?`<span class="blu-chart__legend-text blu-chart__legend-detail">${H(y.detail)}</span>`:""}${l.LegendStyle==="ValueList"?`<span class="blu-chart__legend-track" aria-hidden="true"><span style="width:${g.percent===void 0?100:Math.max(0,Math.min(100,g.percent*100))}%;background:${H(g.color)}"></span></span>`:""}`}function h(g,y){let x=Kx(y,l);g.dataset.legendKey=y.id,g.setAttribute("aria-label",`${Xo(l,"Highlight","Highlight {label}",{label:y.label})}${x.detail?" \xB7 "+x.detail:""}${x.value?": "+y.value:""}${x.percent?" \xB7 "+x.percent:""}`),g.innerHTML=p(y)}function d(){e.dispatchAction({type:"downplay"}),s.entries.find(y=>y.id===o)?.targets.forEach(y=>e.dispatchAction({type:"highlight",...y})),f.forEach(y=>{y.instance.update({IsSelected:y.entry.id===o}),h(y.host.querySelector("button"),y.entry)}),n.querySelectorAll("[data-legend-key]").forEach(y=>y.setAttribute("aria-pressed",String(y.dataset.legendKey===o)))}function v(g){o=o===g?null:g,d(),c.textContent=o?Xo(l,"Highlighting","Highlighting {label}. Activate again to clear.",{label:s.entries.find(y=>y.id===o).label}):Xo(l,"HighlightCleared","Legend highlight cleared.")}function m(){f.splice(0).forEach(g=>g.instance.destroy())}return{prepare(g,y){l=g,n.setAttribute("aria-label",Xo(g,"Legend","Chart legend"));let x=g.LegendPosition||"Top",_=t.clientWidth<520&&["Left","Right"].includes(x)?"Bottom":x;a.dataset.legendPosition=_,n.hidden=g.ShowLegend===!1||y,a.classList.toggle("blu-chart__body--no-legend",n.hidden),n.dataset.style=g.LegendStyle||"Standard",n.hidden&&(o=null)},render(g,y,x){s=MO(r,g,y,x),s.entries.some(w=>w.id===o)||(o=null),!s.entries.length&&!s.scale&&(n.hidden=!0,a.classList.add("blu-chart__body--no-legend"));let _=Math.max(1,Math.min(4,Math.floor((n.clientWidth-30)/150))),b=Math.ceil(s.entries.length/Math.ceil(s.entries.length/_))||1;n.style.setProperty("--legend-columns",String(b));let S=JSON.stringify([s,g.LegendStyle,g.LegendShowValues,g.LegendShowPercentages,g.Messages,x.surface,x.text]);if(S!==u){let w=n.contains(document.activeElement)?document.activeElement.dataset.legendKey:void 0;u=S,m(),n.innerHTML=`${s.scale?`<div class="blu-chart__legend-scale"><span class="blu-chart__legend-text blu-chart__legend-scale-title">${H(s.scale.label)}</span><div class="blu-chart__legend-gradient" style="background:linear-gradient(90deg,${s.scale.colors.map(H).join(",")})" aria-hidden="true"></div><div class="blu-chart__legend-range"><span class="blu-chart__legend-text">${H(Ie(s.scale.min,g))}</span><span class="blu-chart__legend-text">${H(Ie(s.scale.max,g))}</span></div></div>`:""}<div class="blu-chart__legend-items"></div>${s.note?`<span class="blu-chart__legend-text blu-chart__legend-note">${H(s.note)}</span>`:""}`;let A=n.querySelector(".blu-chart__legend-items");s.entries.forEach(C=>{if(g.LegendStyle==="Compact"){let T=document.createElement("div");T.className="blu-chart__legend-chip-host",A.append(T);let M=Gx(T,{Label:C.label,Color:"Secondary",IsSelectable:!0,IsSelected:C.id===o,ExtendedClass:"blu-chart__legend-chip"},{SelectionChanged:()=>v(C.id)});f.push({entry:C,host:T,instance:M})}else{let T=document.createElement("button");T.type="button",T.className="blu-chart__legend-entry",h(T,C),T.onclick=()=>v(C.id),A.append(T)}}),d(),w&&[...n.querySelectorAll("[data-legend-key]")].find(C=>C.dataset.legendKey===w)?.focus({preventScroll:!0})}else d()},exportLayout(){return{body:a,stage:i,legend:n,model:s}},reset(){o=null},destroy(){m(),n.replaceChildren()}}}function OO(t){let{body:e,legend:r,model:i}=t;if(r.hidden)return"";let a=e.getBoundingClientRect(),n=[],o=l=>{let u=l.getBoundingClientRect();return{x:u.x-a.x,y:u.y-a.y,w:u.width,h:u.height}};for(let l of r.querySelectorAll(".blu-chart__legend-entry,.blu-chart__legend-chip,.blu-chart__legend-scale")){let u=o(l),f=getComputedStyle(l);n.push(`<rect x="${u.x}" y="${u.y}" width="${u.w}" height="${u.h}" rx="${Math.min(parseFloat(f.borderRadius)||0,u.w/2,u.h/2)}" fill="${H(f.backgroundColor)}" stroke="${parseFloat(f.borderWidth)>0?H(f.borderColor):"none"}" stroke-width="${parseFloat(f.borderWidth)||0}"/>`)}for(let l of r.querySelectorAll(".blu-chart__legend-marker svg")){let u=o(l);n.push(`<svg x="${u.x}" y="${u.y}" width="${u.w}" height="${u.h}" viewBox="${H(l.getAttribute("viewBox")||"0 0 28 16")}">${l.innerHTML}</svg>`)}let s=r.querySelector(".blu-chart__legend-gradient");if(s&&i.scale){let l=o(s);n.push(`<defs><linearGradient id="blu-export-legend-scale">${i.scale.colors.map((u,f)=>`<stop offset="${f/(i.scale.colors.length-1)*100}%" stop-color="${H(u)}"/>`).join("")}</linearGradient></defs><rect x="${l.x}" y="${l.y}" width="${l.w}" height="${l.h}" rx="4" fill="url(#blu-export-legend-scale)"/>`)}for(let l of r.querySelectorAll(".blu-chart__legend-track,.blu-chart__legend-track>span")){let u=o(l);u.w&&u.h&&n.push(`<rect x="${u.x}" y="${u.y}" width="${u.w}" height="${u.h}" rx="2" fill="${H(getComputedStyle(l).backgroundColor)}"/>`)}for(let l of r.querySelectorAll(".blu-chart__legend-text")){let u=l.firstChild;if(!u||u.nodeType!==Node.TEXT_NODE)continue;let f=getComputedStyle(l);if(!l.getClientRects().length||f.visibility==="hidden")continue;let c=parseFloat(f.fontSize),p=document.createRange(),h=[];for(let d=0;d<u.textContent.length;d++){p.setStart(u,d),p.setEnd(u,d+1);let v=p.getBoundingClientRect(),m=h.at(-1);m&&Math.abs(m.y-v.y)<1?m.text+=u.textContent[d]:h.push({x:v.x,y:v.y,text:u.textContent[d]})}for(let d of h)n.push(`<text x="${d.x-a.x}" y="${d.y-a.y+c*.86}" font-size="${c}" font-weight="${f.fontWeight}" fill="${H(f.color)}"${f.textDecorationLine.includes("underline")?' text-decoration="underline"':""}>${H(d.text)}</text>`)}return n.join("")}async function wf(t,e,r,i){e?.aborted&&(t.catch(()=>{}),e.throwIfAborted());let a,n=()=>{};try{return await Promise.race([t,new Promise((o,s)=>{n=()=>s(e?.reason??new DOMException("Operation aborted.","AbortError")),e?.addEventListener("abort",n,{once:!0}),a=setTimeout(()=>s(new Error(i)),r)})])}finally{clearTimeout(a),e?.removeEventListener("abort",n)}}function JH(t,e){let r=URL.createObjectURL(t),i=document.createElement("a");i.href=r,i.download=e,document.body.append(i),i.click(),i.remove(),setTimeout(()=>URL.revokeObjectURL(r),1e3)}function IO(t,e){let r=[];for(let i of t.split(/\s+/))!r.length||r[r.length-1].length+i.length>e?r.push(i):r[r.length-1]+=` ${i}`;return r.slice(0,4)}async function PO(t,e,r,i,a,n,o,s,l){l?.throwIfAborted();let u=s?.body.clientWidth||t.getWidth(),f=s?.body.getBoundingClientRect().height||t.getHeight(),c=s?.body.getBoundingClientRect(),p=s?.stage.getBoundingClientRect(),h=c&&p?p.x-c.x:0,d=c&&p?p.y-c.y:0;if(u<=0||t.getHeight()<=0)throw new Error("Show the chart before downloading it.");let v=IO(e.Title||"Chart",Math.max(16,Math.floor((u-32)/10))),m=IO(e.Description||"",Math.max(24,Math.floor((u-32)/6))),g=v.length*22+m.length*15+24,y=f+g+32,x=v.map((w,A)=>`<text x="16" y="${26+A*22}" font-size="17" font-weight="600" fill="${n}">${H(w)}</text>`).join(""),_=m.map((w,A)=>`<text x="16" y="${28+v.length*22+A*15}" font-size="11" fill="${o}">${H(w)}</text>`).join(""),b=`<svg xmlns="http://www.w3.org/2000/svg" width="${u}" height="${y}" viewBox="0 0 ${u} ${y}" role="img" aria-labelledby="chart-title chart-description"><title id="chart-title">${H(e.Title||"Chart")}</title><desc id="chart-description">${H(e.Description||"Chart visualization. Exact values are available in the source chart data table.")}</desc><rect width="100%" height="100%" fill="${a}"/><g font-family="Inter,system-ui,sans-serif">${x}${_}<g transform="translate(0 ${g})"><g transform="translate(${h} ${d})">${t.renderToSVGString()}</g>${s?OO(s):""}</g><text x="16" y="${y-12}" fill="${o}" font-size="9">${H(e.ExportFootnote||"BluKavantUI")}</text></g></svg>`,S=new Blob([b],{type:"image/svg+xml"});if(r==="png"){if(u*2>16384||y*2>16384||u*y*4>32e6)throw new Error("This chart is too large for PNG. Use SVG or reduce the displayed data.");let w=URL.createObjectURL(S);try{let A=new Image;A.src=w,await wf(A.decode(),l,15e3,"PNG decoding timed out. Try SVG."),l?.throwIfAborted();let C=document.createElement("canvas");C.width=Math.ceil(u*2),C.height=Math.ceil(y*2);let T=C.getContext("2d");if(!T)throw new Error("PNG export is unavailable. Try SVG.");T.drawImage(A,0,0,C.width,C.height),S=await wf(new Promise((M,O)=>C.toBlob(L=>L?M(L):O(new Error("PNG export failed. Try SVG.")),"image/png")),l,15e3,"PNG encoding timed out. Try SVG.")}finally{URL.revokeObjectURL(w)}}l?.throwIfAborted(),JH(S,i)}function Yd(t,e){t==="mixed"?t_(e):t==="heatmap"?r_(e):i_(t,e)}function Wd(t,e){if(t==="mixed"){let r=e;return r.Series.flatMap((i,a)=>r.Categories.map((n,o)=>({...o_(r,o,a),Label:n.Label,CategoryKey:n.Key})))}return t==="heatmap"?e.Cells.map((r,i)=>{let a=Df(e,i);return{...a,Label:`${a.YLabel}, ${a.XLabel}`}}):tr(t,e)}function $d(t,e){return JSON.stringify([t,e.Key,e.SeriesKey||"",e.CategoryKey||"",e.RingKey||"",e.PointType||""])}function NO(t,e,r){let i={...e,...structuredClone(r)};Yd(t,{...i,SelectedKey:null});let n=i.SelectedKey!=null&&!Wd(t,i).some(o=>o.Key===i.SelectedKey)&&(!Object.hasOwn(r,"SelectedKey")||r.SelectedKey===e.SelectedKey);return n&&(i.SelectedKey=null),Yd(t,i),{next:i,cleared:n}}function RO(t,e){let r=[];return(t?.series||[]).forEach((i,a)=>{if(i.type==="treemap"){let n=1,o=s=>s.forEach(l=>{let u=n++;l.id===e&&r.push({seriesIndex:a,dataIndex:u}),o(l.children||[])});o(i.data||[])}else(i.data||[]).forEach((n,o)=>{n?.point?.Key===e&&r.push({seriesIndex:a,dataIndex:o,...i.type==="sankey"?{dataType:"node"}:{}})});(i.links||[]).forEach((n,o)=>{n?.point?.Key===e&&r.push({seriesIndex:a,dataIndex:o,dataType:"edge"})})}),r}function kO(t,e,r){return t.Messages?.[e]??r}var Yx={World:new URL("./maps/world.geojson",document.currentScript.src).href,US:new URL("./maps/us-states.geojson",document.currentScript.src).href};async function zO(t,e){let r=new AbortController,i=()=>r.abort(e?.reason);e?.addEventListener("abort",i,{once:!0}),e?.aborted&&i();try{return await wf((async()=>{let a=new URL(t,typeof location>"u"?"http://localhost/":location.href);if(!["http:","https:"].includes(a.protocol)||a.username||a.password)throw new Error("Map URL must be an HTTP resource without embedded credentials.");let n=await fetch(a.href,{signal:r.signal,credentials:"same-origin"});if(!n.ok)throw new Error(`Map resource failed (${n.status}).`);if(Number(n.headers.get("Content-Length"))>Dt.mapBytes)throw new Error("Map resource exceeds the size limit.");let o="";if(n.body){let l=n.body.getReader(),u=new TextDecoder,f=0;try{for(;;){let c=await l.read();if(c.done)break;if(f+=c.value.length,f>Dt.mapBytes)throw new Error("Map resource exceeds the size limit.");o+=u.decode(c.value,{stream:!0})}o+=u.decode()}finally{await l.cancel().catch(()=>{})}}else if(o=await n.text(),new TextEncoder().encode(o).length>Dt.mapBytes)throw new Error("Map resource exceeds the size limit.");r.signal.throwIfAborted();let s=JSON.parse(o);return Mf(s),s})(),r.signal,1e4,"Map resource timed out. Retry the update.")}finally{r.abort(),e?.removeEventListener("abort",i)}}function QH(t=bh,e=16){let r=[];return{acquire(i){let a=JSON.stringify(i);if(new TextEncoder().encode(a).length>Dt.mapBytes)throw new Error("Map resource exceeds the size limit.");let n=r.find(l=>l.refs>0&&l.signature===a);if(!n){if(n=r.find(l=>!l.refs),!n){if(r.length>=e)throw new Error("Too many different maps are active.");n={name:`blu-charts-map-v1-${r.length}`,signature:"",refs:0},r.push(n)}t(n.name,i),n.signature=a}n.refs++;let o=!1,s=n;return{name:n.name,release(){o||(o=!0,--s.refs||(s.signature="",t(s.name,{type:"FeatureCollection",features:[]})))}}},stats(){return{slots:r.length,active:r.filter(i=>i.refs>0).length}}}}var Wx=QH();async function VO(t,e){let r=t.Map==="Custom"?t.GeoJSON??await zO(t.MapURL,e):await zO(t.Map==="US"?Yx.US:Yx.World,e);return e.throwIfAborted(),Mf(r),es(t,r),r}function ni(t,e,r,i,a){return $x(t,e,r,i,a)}function $x(t,e,r,i,a,n){let o={...a_,...structuredClone(r)},s=o,l=(K,...J)=>{if(!u)try{K?.(...J)}catch(xe){console.error("Chart event handler failed.",xe)}},u=!1,f=!1,c=0,p=0,h=0,d=!1,v=!1,m="",g="",y=()=>{},x,_;try{Yd(e,o)}catch(K){throw l(i.Error,{Message:String(K.message),Code:"InvalidData"}),K}let b,S,w,A,C,T="",M,O=new AbortController,L,D="treemapRootToNode",I=document.createElement("section");I.className="blu-chart",I.innerHTML='<div class="blu-chart__heading"><div><h3></h3><p></p></div><div class="blu-chart__export"><select aria-label="Chart download format"><option value="png">PNG image</option><option value="svg">SVG vector</option></select><button type="button" aria-label="Download chart">\u2193 <span>Download</span></button></div></div><div class="blu-chart__stage"><div class="blu-chart__plot" role="img"></div><div class="blu-chart__state" aria-hidden="true" hidden></div></div><p class="blu-chart__missing-note" hidden></p><div class="blu-chart__navigation" role="group" aria-label="Chart navigation" hidden></div><details class="blu-chart__data"><summary>View data & keyboard selections</summary><label class="blu-chart__patterns"><input type="checkbox"><span>Use fill patterns</span></label><div class="blu-chart__table" tabindex="0" role="region"></div></details><div class="blu-chart__state-announcement" role="status" aria-live="polite" aria-atomic="true"></div><div class="blu-chart__status" role="status" aria-live="polite"></div>',t.append(I);let P=K=>I.querySelector(K),z=P(".blu-chart__plot"),N=P(".blu-chart__table"),U=P(".blu-chart__status"),B=P(".blu-chart__navigation"),Y=AO(P(".blu-chart__state")),q=SO(P(".blu-chart__state-announcement")),Q=P(".blu-chart__export button"),j=P(".blu-chart__patterns input"),fe=matchMedia("(prefers-reduced-motion: reduce)"),be=matchMedia("(forced-colors: active)"),Xe=matchMedia("(prefers-color-scheme: dark)"),Be=()=>Wd(e,o),Le=()=>Be().some(K=>K.Value!==null),ve=(K,J)=>kO(o,K,J);function de(){if(u)throw new Error("This chart has been destroyed.")}function Se(K,J="InvalidData",xe=""){u||(U.textContent=K instanceof Error?K.message:String(K),l(i.Error,{Message:U.textContent,Code:J,RequestId:xe}),zt("Error"))}function zt(K){K!==m&&(m=K,l(i.StateChange,{State:K,Revision:c}))}function tt(K){if(b?.dispatchAction({type:"downplay"}),!(!K||d||o.IsLoading)){if(e==="mixed"){let J=o,xe=J.Categories.findIndex(Ee=>Ee.Key===K);xe>=0&&J.Series.forEach((Ee,Fe)=>b?.dispatchAction({type:"highlight",seriesIndex:Fe,dataIndex:xe}));return}if(e==="heatmap"){let J=o.Cells.findIndex(xe=>xe.Key===K);J>=0&&b?.dispatchAction({type:"highlight",seriesIndex:0,dataIndex:J});return}for(let J of RO(w,K))b?.dispatchAction({type:"highlight",...J})}}function Dr(){if(!(b||z.clientWidth<=0||z.clientHeight<=0)){Ye([n0,gx,ux,mx,nx,Ux]),b=Q1(z,void 0,{renderer:"svg"}),S=DO(I,b,e),b.on("click","series",K=>{let J=K.data?.point;if(e==="mixed"){let xe=o;J=Be().find(Ee=>Ee.Key===xe.Categories[K.dataIndex]?.Key&&Ee.SeriesKey===xe.Series[K.seriesIndex]?.Key)}e==="heatmap"&&(J=Be()[K.dataIndex]),J&&qo(J,"Chart")});for(let[K,J]of[["treemaproottonode","treemapRootToNode"],["treemapzoomtonode","treemapZoomToNode"]])b.on(K,xe=>{L=xe.targetNodeId||xe.targetNode?.getId?.(),D=J})}}function gt(K){return K.Value===null?ve("NoData","No data"):n_(K.Value,o.__valueText?.[$d(e,K)])}function dr(K){cancelAnimationFrame(h),h=requestAnimationFrame(()=>{if(u||!I.isConnected)return;let J=document.activeElement;if(J!==document.body&&J!==N&&J?.dataset.point!==K)return;([...N.querySelectorAll("[data-point]")].find(Ee=>Ee.dataset.point===K)||N).focus({preventScroll:!0})})}function Ra(){let K=Be(),J=document.activeElement,xe=J&&N.contains(J)?J.dataset.point:void 0,Ee=(We,Oe)=>o.EnableSelection&&We.Value!==null?`<button type="button" data-point="${H($d(e,We))}" aria-label="${H(`${We.Label}${We.SeriesName?", "+We.SeriesName:""}: ${gt(We)}`)}" aria-pressed="${o.SelectedKey===We.Key}">${H(Oe)}</button>`:H(Oe),Fe="",ze="";if(e==="mixed"){let We=o,Oe=new Map(K.map(Re=>[JSON.stringify([Re.Key,Re.SeriesKey]),Re]));Fe=`<tr><th scope="col">${H(ve("Category","Category"))}</th>${We.Series.map(Re=>`<th scope="col">${H(Re.Name)}</th>`).join("")}</tr>`,ze=We.Categories.map(Re=>`<tr><th scope="row">${H(Re.Label)}</th>${We.Series.map(Ve=>{let Yt=Oe.get(JSON.stringify([Re.Key,Ve.Key]));return`<td>${Ee(Yt,gt(Yt))}</td>`}).join("")}</tr>`).join("")}else if(e==="heatmap"){let We=o,Oe=new Map(K.map(Re=>[JSON.stringify([Re.XKey,Re.YKey]),Re]));Fe=`<tr><th scope="col">${H(ve("Category","Category"))}</th>${We.XCategories.map(Re=>`<th scope="col">${H(Re.Label)}</th>`).join("")}</tr>`,ze=We.YCategories.map(Re=>`<tr><th scope="row">${H(Re.Label)}</th>${We.XCategories.map(Ve=>{let Yt=Oe.get(JSON.stringify([Ve.Key,Re.Key]));return`<td>${Yt?Ee(Yt,gt(Yt)):H(ve("NoData","No data"))}</td>`}).join("")}</tr>`).join("")}else{let We=["Key","Label","Date","Value","CategoryKey","SeriesKey","RingKey","ParentKey","X","Y","Size","Group","SourceKey","TargetKey","Longitude","Latitude","PointType"].filter(Oe=>K.some(Re=>Re[Oe]!==void 0));Fe=`<tr>${We.map(Oe=>`<th scope="col">${H(ve(Oe,Oe))}</th>`).join("")}</tr>`,ze=K.map(Oe=>`<tr>${We.map(Re=>{let Ve=Oe[Re],Yt=Re==="Value"?gt(Oe):Ve===null?"null":String(Ve??"");return`<td>${Re==="Label"?Ee(Oe,Yt):H(Yt)}</td>`}).join("")}</tr>`).join("")}N.setAttribute("aria-label",`${o.Title} ${ve("Values","values")}`),N.innerHTML=`<table><caption>${H(o.Title||"Chart")} \u2014 ${H(ve("ExactValues","original values"))}</caption><thead>${Fe}</thead><tbody>${ze}</tbody></table>`,xe&&dr(xe)}function bt(K=!1){if(x&&(n?.enabled?.()===!1||!o.EnableAnimation||n?.mode(t)!==_)&&(x.cancel(),x=void 0),u)return;let J=d||!!o.IsLoading,xe=!Le(),Ee=!!g&&!J;if(I.className=`blu-chart ${o.ExtendedClass||""}`,I.setAttribute("aria-label",o.AccessibleLabel||o.Title||"Chart"),P("h3").textContent=o.Title||"Chart",P(".blu-chart__heading p").textContent=o.Description||"",P(".blu-chart__heading").hidden=!o.ShowHeader&&!o.ShowToolbar,P("h3").parentElement.hidden=!o.ShowHeader,P(".blu-chart__export").hidden=!o.ShowToolbar,Q.querySelector("span").textContent=ve("Download","Download"),Q.setAttribute("aria-label",ve("DownloadChart","Download chart")),P("select").setAttribute("aria-label",ve("DownloadFormat","Chart download format")),P('option[value="png"]').textContent=ve("PNG","PNG image"),P('option[value="svg"]').textContent=ve("SVG","SVG vector"),B.setAttribute("aria-label",ve("Navigation","Chart navigation")),P(".blu-chart__patterns").hidden=!["mixed","line","radar","bar","polar","pie","doughnut","nightingale","treemap","sankey","funnel"].includes(e),P(".blu-chart__patterns span").textContent=ve("Patterns",e==="line"||e==="radar"?"Use fill patterns (with Area fill)":"Use fill patterns"),j.checked=!!o.ShowPatterns,P(".blu-chart__data").hidden=J||xe,P(".blu-chart__data").classList.toggle("blu-chart__data--compact",!o.ShowDataTable),P(".blu-chart__data summary").textContent=o.ShowDataTable?ve("ViewData","View data & keyboard selections"):ve("ExploreData","Explore chart data"),z.style.height=`${o.Height}px`,z.style.visibility=J||xe?"hidden":"visible",z.setAttribute("aria-busy",String(J)),e==="calendar-heatmap"){let Oe=o,Re=Math.ceil(((Date.parse(Oe.RangeEnd)-Date.parse(Oe.RangeStart))/864e5+7)/7);z.style.minWidth=`${Math.max(300,Re*12+56)}px`;let Ve=P(".blu-chart__stage");Ve.style.overflowX="auto",Ve.tabIndex=0,Ve.setAttribute("role","region"),Ve.setAttribute("aria-label",ve("CalendarScroll","Calendar plot; scroll horizontally for more dates"))}let Fe=J?ve("Loading",d?"Loading map\u2026":"Loading chart\u2026"):o.EmptyMessage||"No data to display";Y.update(J,xe,Fe,!!o.EnableAnimation&&!fe.matches&&(!n||n.enabled?.()===!1||n.mode(t)==="full")),q.update(Ee?g:!J&&!xe?ve("Ready","Chart ready."):Fe),Q.disabled=f||J||xe||Ee,B.hidden=J||xe||Ee||!(e==="geo-map"&&o.Roam!==!1||e==="treemap"&&o.Drilldown),e==="geo-map"&&!B.children.length&&(B.innerHTML=["in","out","left","right","up","down","reset","full"].map(Oe=>`<button type="button" data-nav="${Oe}"></button>`).join("")),e==="treemap"&&!B.children.length&&(B.innerHTML='<button type="button" data-nav="reset"></button>');let ze={in:"Zoom in",out:"Zoom out",left:"Pan left",right:"Pan right",up:"Pan up",down:"Pan down",reset:e==="treemap"?"Show entire tree":"Reset map",full:"Show full map"};if(B.querySelectorAll("[data-nav]").forEach(Oe=>{Oe.textContent=ve("Map_"+Oe.dataset.nav,ze[Oe.dataset.nav])}),Dr(),K&&S?.reset(),S?.prepare(o,J||xe),b&&!d&&(e!=="geo-map"||A)){let Oe=!K&&b.getOption()?.geo?.[0],Re=Bx(I),Ve=a({...o,ShowLegend:!1},Re,A?.name,fe.matches,z.clientWidth);if(delete Ve.legend,Ve.aria={...Ve.aria,description:`${o.Title}. ${o.Description||""} ${ve("DataAlternative","Original values and keyboard selection are in the data table.")}`},Ve.geo&&Oe&&(Ve.geo.zoom=Oe.zoom,Oe.center&&(Ve.geo.center=Oe.center)),n&&n.enabled?.()!==!1){let Yt=n.timing?.();Ve.animation=!!o.EnableAnimation&&!fe.matches&&n.mode(t)==="full"&&Yt?.duration!==0&&!J&&!xe,Ve.animationDuration=Yt?.duration??750,Ve.animationDurationUpdate=Yt?.duration??650,Ve.animationEasing=Ve.animationEasingUpdate=Yt?.easing??"cubicInOut",Ve.series?.forEach((jo,sI)=>{jo.id??=JSON.stringify([e,jo.type,jo.name||(e==="geo-map"?jo.type:sI)]);let e_=(Dn,lI)=>{if(!Dn||typeof Dn!="object"||Dn.id!=null)return;let qd=Dn.point?.Key??(e==="mixed"?o.Categories[lI]?.Key:Dn.name);qd!=null&&(Dn.id=e==="sankey"?String(qd):JSON.stringify([qd,Dn.point?.SeriesKey||""]))};jo.data?.forEach(e_),jo.links?.forEach(e_)}),e==="geo-map"&&!Ve.visualMap&&(Ve.visualMap=[]),!Ve.animation&&w?.animation&&b.clear()}b.resize(),b.setOption(Ve,n&&n.enabled?.()!==!1?{notMerge:!!K,replaceMerge:e==="geo-map"?["series","visualMap"]:["series"]}:{notMerge:!0}),w=Ve,K&&(L=void 0),e==="treemap"&&L&&Be().some(Yt=>Yt.Key===L)&&b.dispatchAction({type:D,seriesIndex:0,targetNodeId:L}),S?.render(o,Ve,Re)}let We=P(".blu-chart__missing-note");if(e==="radar"){let Oe=o.Series.filter(Re=>Re.Values.some(Ve=>Ve===null));We.hidden=!Oe.length||J||xe,We.textContent=`${Oe.map(Re=>Re.Label).join(", ")}: ${ve("IncompleteRadar","incomplete profile. Available measurements remain in the data table; missing values are not drawn as zero.")}`}Ra(),be.matches&&!J&&!xe&&(P(".blu-chart__data").open=!0),b&&!d&&!Ee&&!v&&(e!=="geo-map"||A)&&(v=!0,l(i.Ready)),u||zt(J?"Loading":Ee?"Error":xe?"Empty":"Ready")}function na(K,J,xe=A,Ee=C,Fe=T){let ze={options:o,map:A,geometry:C,geometryKey:T,resourceError:g};o=K,A=xe,C=Ee,T=Fe;try{g="",U.textContent="",bt(ze.options.ResetKey!==K.ResetKey||ze.geometryKey!==Fe)}catch(We){o=ze.options,A=ze.map,C=ze.geometry,T=ze.geometryKey,g=ze.resourceError,s=o;try{bt()}catch{}throw xe!==ze.map&&xe?.release(),We}if(n&&n.enabled?.()!==!1&&["heatmap","calendar-heatmap","sankey"].includes(e)&&ze.options!==K&&JSON.stringify(Wd(e,ze.options))!==JSON.stringify(Be())){x?.cancel(),x=void 0;let We=n.mode(t),Oe=n.timing?.();if(o.EnableAnimation&&We!=="off"&&!o.IsLoading&&Le()&&Oe?.duration!==0){let Re=We==="reduced"||fe.matches?Math.min(Oe?.duration??200,200):Oe?.duration??650;_=We,x=z.animate([{opacity:.35},{opacity:1}],{duration:Re,easing:Oe?.curve||"ease-in-out"})}}ze.map!==xe&&ze.map?.release(),J&&l(i.SelectionChange,{Key:null,Reason:"DataChanged"})}function Ei(K,J=!1){let xe=++c;if(M?.abort(),d=!1,s=K,e!=="geo-map"){na(K,J);return}let Ee=K,Fe=JSON.stringify([Ee.Map||"World",Ee.MapURL||"",Ee.GeoJSON||null]);if(C&&Fe===T){es(Ee,C),na(K,J);return}if(Ee.Map==="Custom"&&Ee.GeoJSON){es(Ee,Ee.GeoJSON);let ze=Wx.acquire(Ee.GeoJSON);na(K,J,ze,Ee.GeoJSON,Fe);return}d=!0,M=new AbortController,bt(),VO(Ee,M.signal).then(ze=>{if(u||xe!==c)return;d=!1;let We=Wx.acquire(ze);na(K,J,We,ze,Fe)}).catch(ze=>{u||xe!==c||(d=!1,s=o,g=ze instanceof Error?ze.message:String(ze),bt(),Se(ze,"ResourceLoadFailed"))})}function qo(K,J){if(u||d||o.IsLoading||K.Value===null&&!(e==="radar"&&K.PointType==="Series"))return;let xe={...structuredClone(K),ValueText:K.Value===null?"":gt(K)},Ee=!!o.EnableSelection,Fe=o.SelectedKey===K.Key?null:K.Key;if(Ee){let ze={...o,SelectedKey:Fe};if(e==="treemap"&&J==="Table"&&ze.Drilldown&&(L=K.Key,D="treemapRootToNode"),Ei(ze),u)return;U.textContent=Fe?`${ve("Selected","Selected")} ${K.Label}.`:ve("SelectionCleared","Selection cleared.")}l(i.PointClick,xe,J),Ee&&!u&&l(i.SelectionChange,{Key:Fe,Reason:"User"})}N.onclick=K=>{let J=K.target.closest("[data-point]"),xe=J?.dataset.point,Ee=J&&Be().find(Fe=>$d(e,Fe)===xe);Ee&&(qo(Ee,"Table"),!u&&I.isConnected&&(document.activeElement===document.body||I.contains(document.activeElement))&&dr(xe))},j.onchange=()=>{Zo.update({ShowPatterns:j.checked}),l(i.PatternsChange,{ShowPatterns:j.checked})},B.onclick=K=>{let J=K.target.closest("[data-nav]")?.dataset.nav;if(!(!J||!b)){if(J==="full"){Zo.update({MapView:"Full",ResetKey:crypto.randomUUID()});return}if(J==="reset"){L=void 0,bt(!0);return}b.dispatchAction({type:"geoRoam",componentType:"geo",geoIndex:0,dx:J==="left"?-60:J==="right"?60:0,dy:J==="up"?-60:J==="down"?60:0,zoom:J==="in"?1.3:J==="out"?1/1.3:1,originX:z.clientWidth/2,originY:z.clientHeight/2}),U.textContent=ve("Map_"+J,oI(J))}};function oI(K){return`Map view changed: ${K}.`}let Ai=()=>{try{bt()}catch(K){Se(K,"RenderFailed")}},qx=K=>{K.key==="Escape"&&b?.dispatchAction({type:"hideTip"})},Zx=0,jx=0,Jx=new ResizeObserver(()=>{let K=z.clientWidth,J=z.clientHeight;K===Zx&&J===jx||(Zx=K,jx=J,cancelAnimationFrame(p),p=requestAnimationFrame(()=>{!u&&K>0&&J>0&&Ai()}))}),Qx=new MutationObserver(Ai);Qx.observe(document.documentElement,{attributes:!0,attributeFilter:["data-bluui-theme"]}),fe.addEventListener("change",Ai),be.addEventListener("change",Ai),Xe.addEventListener("change",Ai),document.addEventListener("keydown",qx);let Zo={update(K){de();try{let{next:J,cleared:xe}=NO(e,s,K);Ei(J,xe)}catch(J){if(!d){s=o;try{bt()}catch{}}throw Se(J,/SelectedKey/.test(J.message)?"InvalidSelection":"InvalidData"),J}},resize(){de(),Ai()},setSelection(K){Zo.update({SelectedKey:K})},highlight(K){de(),tt(K)},async download(K="png",J=`blukavant-${e}.${K}`,xe=crypto.randomUUID()){de();let Ee=!1;try{if(!["png","svg"].includes(K))throw new Error("Choose PNG or SVG.");if(f)throw new Error("ExportBusy");if(!b||d||g||o.IsLoading||!Le())throw new Error("Wait for a visible chart with valid data before downloading.");f=!0,Ee=!0,Q.disabled=!0;let Fe=Bx(I);await PO(b,o,K,J,Fe.surface,Fe.text,Fe.muted,S?.exportLayout(),O.signal),u||(U.textContent=ve("ExportStarted","Chart download started."),l(i.ExportStarted,{Format:K,FileName:J,RequestId:xe}),l(i.ExportComplete,{Format:K,FileName:J}))}catch(Fe){throw u||Se(Fe,Fe instanceof Error&&Fe.message==="ExportBusy"?"ExportBusy":"ExportFailed",xe),Fe}finally{Ee&&(f=!1,u||(Q.disabled=d||!!g||!!o.IsLoading||!Le()))}},destroy(){u||(u=!0,x?.cancel(),y(),c++,M?.abort(),O.abort(),cancelAnimationFrame(p),cancelAnimationFrame(h),Jx.disconnect(),Qx.disconnect(),fe.removeEventListener("change",Ai),be.removeEventListener("change",Ai),Xe.removeEventListener("change",Ai),document.removeEventListener("keydown",qx),q.destroy(),Y.destroy(),S?.destroy(),b?.dispose(),A?.release(),I.remove())}};Q.onclick=()=>{Zo.download(P("select").value).catch(()=>{})},Jx.observe(I);try{Ei(o),y=n?.subscribe(t,Ai)||(()=>{})}catch(K){throw Se(K),Zo.destroy(),K}return Zo}function UO(t,e,r={}){return Ye([p0,Na]),ni(t,"line",e,r,f_)}function BO(t,e,r,i=!1,a=640){let o=t,s=tr("bar",t),l=(C,T)=>o.ShowPatterns?mr(C,T):void 0,u=e.palette,f=(C,T)=>Ot(e.forcedColors?e.text:Fr(C,u[T%u.length],e.dark,e.read),e.surface,3.2),c=(C,T,M)=>Vt(f(T,M),e.surface,o.SelectedKey===C),p=(C,T)=>s.find(M=>M.Key===C&&(!T||M.SeriesKey===T)),d={data:["line","radar","bar","polar"].includes("bar")?o.Series.map(C=>C.Label):["pie","doughnut","nightingale","funnel"].includes("bar")?[...new Set(o.Items.map(C=>C.Label))]:[],show:o.ShowLegend,type:"scroll",top:6,left:10,right:10,itemWidth:24,itemHeight:12,selectedMode:!1,pageTextStyle:{color:e.muted},pageIconColor:e.text,textStyle:{color:e.muted,fontSize:11}},v={show:o.ShowLabels,color:at(e.surface),fontSize:11,backgroundColor:e.surface,padding:[2,3],borderRadius:2},m={show:o.ShowTooltip,confine:!0,enterable:!0,backgroundColor:e.surface,borderColor:e.border,textStyle:{color:e.text,fontSize:12},formatter:C=>{let T=C.data?.point;if(!T)return`${H(C.name||"")}${C.value==null||Number.isNaN(C.value)?" \xB7 No data":""}`;let M=T.Date?`<br/>${H(T.Date)}<br/><strong>${H(Ie(T.Value,o))}</strong>`:T.X!==void 0?`<br/>${H(o.XLabel||"X")}: ${T.X}<br/>${H(o.YLabel||"Y")}: ${T.Y}${T.Size===void 0?"":`<br/>Size: ${T.Size}`}`:`<br/><strong>${H(Ie(T.Value,o))}</strong>`;return`${H(T.SeriesName?`${T.SeriesName} \xB7 ${T.Label}`:T.Label)}${M}${C.data?.conversion?`<br/>${H(C.data.conversion)}`:""}`}},g={backgroundColor:e.surface,color:u.map((C,T)=>f(C,T)),animation:!!o.EnableAnimation&&!i,animationDuration:300,animationDurationUpdate:150,textStyle:{fontFamily:"Inter,system-ui,sans-serif",color:e.text},aria:{enabled:!0,description:`${o.Title}. ${o.Description||""} Exact values and keyboard selection are in the data table.`},tooltip:m},y={axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:e.muted,fontSize:10,hideOverlap:!0},splitLine:{lineStyle:{color:e.border,type:"dashed"}}},x=t,_=x.Stacking==="Percent",b={...y,type:"category",data:x.Categories.map(C=>C.Label),axisLabel:{...y.axisLabel,width:Math.min(140,a*.2),overflow:"truncate"},splitLine:{show:!1}},S={...y,type:"value",max:_?1:void 0,axisLabel:{...y.axisLabel,formatter:C=>_?`${Math.round(C*100)}%`:Ie(C,o,!0)}},w=!!x.Stacking&&x.Stacking!=="None",A=x.Series.map((C,T)=>({id:C.Key,name:C.Label,type:"bar",coordinateSystem:"cartesian2d",stack:x.Stacking&&x.Stacking!=="None"?"total":void 0,smooth:x.LineStyle==="Smooth",step:x.LineStyle==="Step"?"middle":!1,connectNulls:!1,areaStyle:x.ShowArea?{opacity:.1}:void 0,barMaxWidth:38,symbol:Va(T),symbolSize:8,itemStyle:{...Vt(f(C.Color,T),e.surface),decal:l(T,f(C.Color,T))},lineStyle:{width:2.5,color:f(C.Color,T),type:ts(T)},label:{...v,color:w?at(f(C.Color,T)):at(e.surface),backgroundColor:w?f(C.Color,T):e.surface,position:w?"inside":x.Orientation==="Horizontal"?"right":"top",formatter:M=>_?`${Math.round(Number(M.value)*100)}%`:Ie(M.data.point.Value,o,!0)},labelLayout:{hideOverlap:!0},emphasis:{focus:"none",scale:!1},blur:{itemStyle:{opacity:1},lineStyle:{opacity:1},label:{opacity:1}},data:C.Values.map((M,O)=>({value:M===null?null:_?M/(x.Series.reduce((L,D)=>L+(D.Values[O]||0),0)||1):M,point:p(x.Categories[O].Key,C.Key),itemStyle:{...c(x.Categories[O].Key,C.Color,T),decal:l(T,f(C.Color,T))},emphasis:{itemStyle:rr(f(C.Color,T))}}))}));return{...g,legend:d,grid:{left:14,right:22,top:o.ShowLegend?48:20,bottom:16,containLabel:!0},xAxis:x.Orientation==="Horizontal"?S:b,yAxis:x.Orientation==="Horizontal"?{...b,inverse:!0}:S,series:A}}function FO(t,e,r={}){return Ye([C0,Na]),ni(t,"bar",e,r,BO)}function HO(t,e,r,i=!1,a=640){let o=t,s=tr("pie",t),l=(D,I)=>o.ShowPatterns?mr(D,I):void 0,u=e.palette,f=(D,I)=>Ot(e.forcedColors?e.text:Fr(D,u[I%u.length],e.dark,e.read),e.surface,3.2),c=(D,I,P)=>Vt(f(I,P),e.surface,o.SelectedKey===D),p=(D,I)=>s.find(P=>P.Key===D&&(!I||P.SeriesKey===I)),d={data:["line","radar","bar","polar"].includes("pie")?o.Series.map(D=>D.Label):["pie","doughnut","nightingale","funnel"].includes("pie")?[...new Set(o.Items.map(D=>D.Label))]:[],show:o.ShowLegend,type:"scroll",top:6,left:10,right:10,itemWidth:24,itemHeight:12,selectedMode:!1,pageTextStyle:{color:e.muted},pageIconColor:e.text,textStyle:{color:e.muted,fontSize:11}},v={show:o.ShowLabels,color:at(e.surface),fontSize:11,backgroundColor:e.surface,padding:[2,3],borderRadius:2},m={show:o.ShowTooltip,confine:!0,enterable:!0,backgroundColor:e.surface,borderColor:e.border,textStyle:{color:e.text,fontSize:12},formatter:D=>{let I=D.data?.point;if(!I)return`${H(D.name||"")}${D.value==null||Number.isNaN(D.value)?" \xB7 No data":""}`;let P=I.Date?`<br/>${H(I.Date)}<br/><strong>${H(Ie(I.Value,o))}</strong>`:I.X!==void 0?`<br/>${H(o.XLabel||"X")}: ${I.X}<br/>${H(o.YLabel||"Y")}: ${I.Y}${I.Size===void 0?"":`<br/>Size: ${I.Size}`}`:`<br/><strong>${H(Ie(I.Value,o))}</strong>`;return`${H(I.SeriesName?`${I.SeriesName} \xB7 ${I.Label}`:I.Label)}${P}${D.data?.conversion?`<br/>${H(D.data.conversion)}`:""}`}},g={backgroundColor:e.surface,color:u.map((D,I)=>f(D,I)),animation:!!o.EnableAnimation&&!i,animationDuration:300,animationDurationUpdate:150,textStyle:{fontFamily:"Inter,system-ui,sans-serif",color:e.text},aria:{enabled:!0,description:`${o.Title}. ${o.Description||""} Exact values and keyboard selection are in the data table.`},tooltip:m},y={axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:e.muted,fontSize:10,hideOverlap:!0},splitLine:{lineStyle:{color:e.border,type:"dashed"}}},x=t,_=x.Nested?x.Rings:[{Key:"",Label:""}],b=x.Shape==="Half",S=!!x.Nested&&_.length>1,w=0,A=x.LabelPosition!=="Inside",C=A?66:76,T=[...new Set(x.Items.map(D=>D.Label))],M=_.map((D,I)=>{let P=S?I===0?[0,32]:[44+(C-44)*(I-1)/(_.length-1),44+(C-44)*I/(_.length-1)-(I===_.length-1?0:2)]:[w,Math.max(C,w+5)],z=!A||S&&I<_.length-1;return{type:"pie",id:D.Key||"pie",name:D.Label,top:o.ShowLegend?28:0,bottom:2,center:["50%",b?"72%":"55%"],radius:P.map(N=>`${N}%`),startAngle:b?180:90,endAngle:b?360:"auto",roseType:!1,avoidLabelOverlap:!0,stillShowZeroSum:!1,label:{...v,position:z?"inside":"outside",backgroundColor:z?void 0:e.surface,alignTo:"none",bleedMargin:6,distanceToLabelLine:4,formatter:`{b}
20
+ {d}%`,lineHeight:15},labelLine:{show:!!o.ShowLabels&&!z,length:12,length2:8,smooth:.15},labelLayout:{hideOverlap:!0},emphasis:{scale:!0},data:x.Items.filter(N=>!x.Nested||N.RingKey===D.Key).map(N=>{let U=T.indexOf(N.Label),B=f(N.Color,U);return{id:N.Key,name:N.Label,value:N.Value,point:p(N.Key),label:{color:at(z?B:e.surface),backgroundColor:z?B:e.surface},labelLine:{lineStyle:{color:B,width:1.25}},itemStyle:{...c(N.Key,N.Color,U),decal:l(U,B),borderRadius:3},emphasis:{itemStyle:rr(B)}}})}}),L=s.find(D=>D.Key===o.SelectedKey)?.Value??x.Items.reduce((D,I)=>D+(I.Value||0),0);return{...g,legend:d,series:M,media:A?[{query:{maxWidth:420},option:{series:M.map(D=>({id:D.id,radius:D.radius.map(I=>`${parseFloat(I)*.84}%`)}))}}]:[],graphic:[]}}function GO(t,e,r={}){return Ye([af]),ni(t,"pie",e,r,HO)}function KO(t,e,r,i=!1,a=640){let n="doughnut",o=t,s=tr(n,t),l=(D,I)=>o.ShowPatterns?mr(D,I):void 0,u=e.palette,f=(D,I)=>Ot(e.forcedColors?e.text:Fr(D,u[I%u.length],e.dark,e.read),e.surface,n==="line"||n==="radar"||n==="polar"&&o.PolarType==="Line"?4.5:3.2),c=(D,I,P)=>Vt(f(I,P),e.surface,o.SelectedKey===D),p=(D,I)=>s.find(P=>P.Key===D&&(!I||P.SeriesKey===I)),d={data:["line","radar","bar","polar"].includes(n)?o.Series.map(D=>D.Label):n==="scatter"?[...new Set(o.Points.map(D=>D.Group||"Observations"))]:["pie","doughnut","nightingale","funnel"].includes(n)?[...new Set(o.Items.map(D=>D.Label))]:[],show:o.ShowLegend,type:"scroll",top:6,left:10,right:10,itemWidth:24,itemHeight:12,selectedMode:!1,pageTextStyle:{color:e.muted},pageIconColor:e.text,textStyle:{color:e.muted,fontSize:11}},v={show:o.ShowLabels,color:at(e.surface),fontSize:11,backgroundColor:e.surface,padding:[2,3],borderRadius:2},m={show:o.ShowTooltip,confine:!0,enterable:!0,backgroundColor:e.surface,borderColor:e.border,textStyle:{color:e.text,fontSize:12},formatter:D=>{let I=D.data?.point;if(!I)return`${H(D.name||"")}${D.value==null||Number.isNaN(D.value)?" \xB7 No data":""}`;let P=I.Date?`<br/>${H(I.Date)}<br/><strong>${H(Ie(I.Value,o))}</strong>`:I.X!==void 0?`<br/>${H(o.XLabel||"X")}: ${I.X}<br/>${H(o.YLabel||"Y")}: ${I.Y}${I.Size===void 0?"":`<br/>Size: ${I.Size}`}`:`<br/><strong>${H(Ie(I.Value,o))}</strong>`;return`${H(I.SeriesName?`${I.SeriesName} \xB7 ${I.Label}`:I.Label)}${P}${D.data?.conversion?`<br/>${H(D.data.conversion)}`:""}`}},g={backgroundColor:e.surface,color:u.map((D,I)=>f(D,I)),animation:!!o.EnableAnimation&&!i,animationDuration:300,animationDurationUpdate:150,textStyle:{fontFamily:"Inter,system-ui,sans-serif",color:e.text},aria:{enabled:!0,description:`${o.Title}. ${o.Description||""} Exact values and keyboard selection are in the data table.`},tooltip:m},y={axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:e.muted,fontSize:10,hideOverlap:!0},splitLine:{lineStyle:{color:e.border,type:"dashed"}}},x=t,_=x.Nested?x.Rings:[{Key:"",Label:""}],b=x.Shape==="Half",S=!!x.Nested&&_.length>1,w=n==="pie"?0:x.InnerRadius??(n==="doughnut"?48:18),A=x.LabelPosition!=="Inside",C=A?66:76,T=[...new Set(x.Items.map(D=>D.Label))],M=_.map((D,I)=>{let P=S?I===0?[0,32]:[44+(C-44)*(I-1)/(_.length-1),44+(C-44)*I/(_.length-1)-(I===_.length-1?0:2)]:[w,Math.max(C,w+5)],z=!A||S&&I<_.length-1;return{type:"pie",id:D.Key||n,name:D.Label,top:o.ShowLegend?28:0,bottom:2,center:["50%",b?"72%":"55%"],radius:P.map(N=>`${N}%`),startAngle:b?180:90,endAngle:b?360:"auto",roseType:n==="nightingale"?x.RoseMode==="Radius"?"radius":"area":!1,avoidLabelOverlap:!0,stillShowZeroSum:!1,label:{...v,position:z?"inside":"outside",backgroundColor:z?void 0:e.surface,alignTo:"none",bleedMargin:6,distanceToLabelLine:4,formatter:`{b}
21
+ {d}%`,lineHeight:15},labelLine:{show:!!o.ShowLabels&&!z,length:12,length2:8,smooth:.15},labelLayout:{hideOverlap:!0},emphasis:{scale:!0},data:x.Items.filter(N=>!x.Nested||N.RingKey===D.Key).map(N=>{let U=T.indexOf(N.Label),B=f(N.Color,U);return{id:N.Key,name:N.Label,value:N.Value,point:p(N.Key),label:{color:at(z?B:e.surface),backgroundColor:z?B:e.surface},labelLine:{lineStyle:{color:B,width:1.25}},itemStyle:{...c(N.Key,N.Color,U),decal:l(U,B),borderRadius:3},emphasis:{itemStyle:rr(B)}}})}}),O=s.find(D=>D.Key===o.SelectedKey),L=O?.Value??x.Items.reduce((D,I)=>D+(I.Value||0),0);return{...g,legend:d,series:M,media:A?[{query:{maxWidth:420},option:{series:M.map(D=>({id:D.id,radius:D.radius.map(I=>`${parseFloat(I)*.84}%`)}))}}]:[],graphic:n==="doughnut"&&!S&&w>=35?[{type:"text",left:"center",top:b?"63%":"48%",silent:!0,style:{text:`${Ie(L,o,!0)}
22
+ ${O?.Label||x.CenterLabel||"Total"}`,textAlign:"center",fill:e.text,font:"600 16px Inter,system-ui",lineHeight:24,width:Math.max(24,Math.min(a,o.Height||320)*w/100-12),overflow:"truncate"}}]:[]}}function YO(t,e,r={}){return Ye([af]),ni(t,"doughnut",e,r,KO)}function WO(t,e,r,i=!1,a=640){let n="scatter",o=t,s=tr(n,t),l=(S,w)=>o.ShowPatterns?mr(S,w):void 0,u=e.palette,f=(S,w)=>Ot(e.forcedColors?e.text:Fr(S,u[w%u.length],e.dark,e.read),e.surface,n==="line"||n==="radar"||n==="polar"&&o.PolarType==="Line"?4.5:3.2),c=(S,w,A)=>Vt(f(w,A),e.surface,o.SelectedKey===S),p=(S,w)=>s.find(A=>A.Key===S&&(!w||A.SeriesKey===w)),d={data:["line","radar","bar","polar"].includes(n)?o.Series.map(S=>S.Label):n==="scatter"?[...new Set(o.Points.map(S=>S.Group||"Observations"))]:["pie","doughnut","nightingale","funnel"].includes(n)?[...new Set(o.Items.map(S=>S.Label))]:[],show:o.ShowLegend,type:"scroll",top:6,left:10,right:10,itemWidth:24,itemHeight:12,selectedMode:!1,pageTextStyle:{color:e.muted},pageIconColor:e.text,textStyle:{color:e.muted,fontSize:11}},v={show:o.ShowLabels,color:at(e.surface),fontSize:11,backgroundColor:e.surface,padding:[2,3],borderRadius:2},m={show:o.ShowTooltip,confine:!0,enterable:!0,backgroundColor:e.surface,borderColor:e.border,textStyle:{color:e.text,fontSize:12},formatter:S=>{let w=S.data?.point;if(!w)return`${H(S.name||"")}${S.value==null||Number.isNaN(S.value)?" \xB7 No data":""}`;let A=w.Date?`<br/>${H(w.Date)}<br/><strong>${H(Ie(w.Value,o))}</strong>`:w.X!==void 0?`<br/>${H(o.XLabel||"X")}: ${w.X}<br/>${H(o.YLabel||"Y")}: ${w.Y}${w.Size===void 0?"":`<br/>Size: ${w.Size}`}`:`<br/><strong>${H(Ie(w.Value,o))}</strong>`;return`${H(w.SeriesName?`${w.SeriesName} \xB7 ${w.Label}`:w.Label)}${A}${S.data?.conversion?`<br/>${H(S.data.conversion)}`:""}`}},g={backgroundColor:e.surface,color:u.map((S,w)=>f(S,w)),animation:!!o.EnableAnimation&&!i,animationDuration:300,animationDurationUpdate:150,textStyle:{fontFamily:"Inter,system-ui,sans-serif",color:e.text},aria:{enabled:!0,description:`${o.Title}. ${o.Description||""} Exact values and keyboard selection are in the data table.`},tooltip:m},y={axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:e.muted,fontSize:10,hideOverlap:!0},splitLine:{lineStyle:{color:e.border,type:"dashed"}}},x=t,_=[...new Set(x.Points.map(S=>S.Group||"Observations"))],b=Math.max(1,...x.Points.map(S=>S.Size||0));return{...g,legend:d,grid:{left:20,right:30,top:o.ShowLegend?50:30,bottom:36,containLabel:!0},xAxis:{...y,type:"value",name:x.XLabel||"X",nameLocation:"middle",nameGap:30},yAxis:{...y,type:"value",name:x.YLabel||"Y"},series:_.map((S,w)=>({type:"scatter",name:S,symbol:Va(w),itemStyle:{color:f(x.Points.find(A=>(A.Group||"Observations")===S)?.Color,w)},label:{...v,width:Math.min(140,a*.25),overflow:"truncate",position:"top",formatter:"{b}"},labelLayout:Of(a,o.Height||320,o.ShowLegend?38:8),symbolSize:(A,C)=>x.Bubble?8+36*Math.sqrt((C.data.point.Size??1)/b):12,emphasis:{focus:"none",scale:!1},blur:{itemStyle:{opacity:1},lineStyle:{opacity:1},label:{opacity:1}},data:x.Points.filter(A=>(A.Group||"Observations")===S).map(A=>({name:A.Label,value:[A.X,A.Y],point:p(A.Key),itemStyle:c(A.Key,A.Color,w),emphasis:{itemStyle:rr(f(A.Color,w))}}))}))}}function $O(t,e,r={}){return Ye([z0,Na]),ni(t,"scatter",e,r,WO)}function XO(t,e,r,i=!1,a=640){let n="radar",o=t,s=tr(n,t),l=(C,T)=>o.ShowPatterns?mr(C,T):void 0,u=e.palette,f=(C,T)=>Ot(e.forcedColors?e.text:Fr(C,u[T%u.length],e.dark,e.read),e.surface,n==="line"||n==="radar"||n==="polar"&&o.PolarType==="Line"?4.5:3.2),c=(C,T,M)=>Vt(f(T,M),e.surface,o.SelectedKey===C),p=(C,T)=>s.find(M=>M.Key===C&&(!T||M.SeriesKey===T)),d={data:["line","radar","bar","polar"].includes(n)?o.Series.map(C=>C.Label):n==="scatter"?[...new Set(o.Points.map(C=>C.Group||"Observations"))]:["pie","doughnut","nightingale","funnel"].includes(n)?[...new Set(o.Items.map(C=>C.Label))]:[],show:o.ShowLegend,type:"scroll",top:6,left:10,right:10,itemWidth:24,itemHeight:12,selectedMode:!1,pageTextStyle:{color:e.muted},pageIconColor:e.text,textStyle:{color:e.muted,fontSize:11}},v={show:o.ShowLabels,color:at(e.surface),fontSize:11,backgroundColor:e.surface,padding:[2,3],borderRadius:2},m={show:o.ShowTooltip,confine:!0,enterable:!0,backgroundColor:e.surface,borderColor:e.border,textStyle:{color:e.text,fontSize:12},formatter:C=>{let T=C.data?.point;if(!T)return`${H(C.name||"")}${C.value==null||Number.isNaN(C.value)?" \xB7 No data":""}`;let M=T.Date?`<br/>${H(T.Date)}<br/><strong>${H(Ie(T.Value,o))}</strong>`:T.X!==void 0?`<br/>${H(o.XLabel||"X")}: ${T.X}<br/>${H(o.YLabel||"Y")}: ${T.Y}${T.Size===void 0?"":`<br/>Size: ${T.Size}`}`:`<br/><strong>${H(Ie(T.Value,o))}</strong>`;return`${H(T.SeriesName?`${T.SeriesName} \xB7 ${T.Label}`:T.Label)}${M}${C.data?.conversion?`<br/>${H(C.data.conversion)}`:""}`}},g={backgroundColor:e.surface,color:u.map((C,T)=>f(C,T)),animation:!!o.EnableAnimation&&!i,animationDuration:300,animationDurationUpdate:150,textStyle:{fontFamily:"Inter,system-ui,sans-serif",color:e.text},aria:{enabled:!0,description:`${o.Title}. ${o.Description||""} Exact values and keyboard selection are in the data table.`},tooltip:m},y={axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:e.muted,fontSize:10,hideOverlap:!0},splitLine:{lineStyle:{color:e.border,type:"dashed"}}},x=t,_=o.ShowLegend?48:22,b=o.Height||320,S=_+(b-_-38)/2,w=Math.max(12,Math.min(a*.24,(b-_-64)/2)),A=x.Categories.map((C,T)=>{let M=Math.max(1,...x.Series.map(L=>L.Values[T]??0)),O=10**Math.floor(Math.log10(M));return C.Max??Math.ceil(M/O)*O});return{...g,legend:d,tooltip:{...m,formatter:C=>{let T=x.Series.find(M=>M.Key===C.data?.point?.SeriesKey);return T?`<strong>${H(T.Label)}</strong><br/>${x.Categories.map((M,O)=>`${H(M.Label)}: ${H(Ie(T.Values[O],o))}`).join("<br/>")}`:""}},radar:{center:["50%",S],radius:w,shape:x.GridShape==="Circle"?"circle":"polygon",splitNumber:x.SplitNumber??4,indicator:x.Categories.map((C,T)=>({name:$h.truncateText(`${C.Label}${x.ShowAxisBounds!==!1?`
23
+ 0\u2013${Ie(A[T],o,!0)}`:""}`,Math.max(28,Math.min(100,a*.22)),"11px Inter,system-ui","\u2026"),min:0,max:A[T]})),axisName:{color:e.text,fontSize:11,lineHeight:15,width:Math.max(28,Math.min(100,a*.22)),overflow:"truncate"},axisNameGap:7,axisLine:{lineStyle:{color:e.border,width:1}},splitLine:{lineStyle:{color:e.border,width:1}},splitArea:{show:!1}},series:x.Series.map((C,T)=>{let M=f(C.Color,T),O=o.SelectedKey===C.Key;return{id:C.Key,name:C.Label,type:"radar",symbol:Va(T),symbolSize:O?9:7,lineStyle:{color:M,width:O?3:2.5,type:ts(T)},itemStyle:{...Vt(M,e.surface,O),decal:x.ShowArea&&o.ShowPatterns?mr(T,M):void 0},areaStyle:x.ShowArea?{color:M,opacity:.08}:void 0,label:{...v,position:"top",formatter:L=>Ie(L.value,o,!0)},labelLayout:Of(a,b,o.ShowLegend?38:8),emphasis:{focus:"none",itemStyle:rr(M),lineStyle:{width:3}},blur:{lineStyle:{opacity:1},itemStyle:{opacity:1}},data:C.Values.some(L=>L===null)||!C.Values.length?[]:[{name:C.Label,value:C.Values,point:{Key:C.Key,Label:C.Label,Value:null,SeriesKey:C.Key,SeriesName:C.Label,PointType:"Series"}}]}})}}function qO(t,e,r={}){return Ye([F0,sf]),ni(t,"radar",e,r,XO)}function ZO(t,e){return{backgroundColor:e.surface,animation:t.EnableAnimation&&!matchMedia("(prefers-reduced-motion: reduce)").matches,animationDuration:350,animationDurationUpdate:180,textStyle:{fontFamily:"Inter, system-ui, sans-serif",color:e.text},aria:{enabled:!0,description:`${t.Title}. ${t.Description||""} Exact values and keyboard selections are available in the chart data table.`},tooltip:{show:t.ShowTooltip,confine:!0,enterable:!0,backgroundColor:e.surface,borderColor:e.border,textStyle:{color:e.text,fontSize:12},extraCssText:"border-radius:8px;box-shadow:0 8px 28px #0002;"}}}function Xd(t){return{axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:t.muted,fontSize:11}}}function jO(t,e){let{min:r,max:i}=s_(t),a=ev(ka(t.ColorScale)?t.ColorScale:"Purple",e.dark,e.read),n=e.forcedColors?e.text:t.ColorScale==="Automatic"?e.palette[0]:t.ColorScale==="Teal"?"#126e5b":a.solid,o=t.ColorScale==="Diverging"&&!e.forcedColors?[Ot("#ba5943",e.surface,9),Ot(e.surface,e.surface),Ot("#6850bf",e.surface,9)]:u_(n,e.surface);return{...ZO(t,e),grid:{left:12,right:12,top:16,bottom:t.ShowLegend?62:12,containLabel:!0},tooltip:{...ZO(t,e).tooltip,formatter:s=>{let l=Df(t,s.dataIndex);return`${H(l.YLabel)} \xB7 ${H(l.XLabel)}<br/><strong>${H(Ie(l.Value,t))}</strong>`}},xAxis:{...Xd(e),type:"category",data:t.XCategories.map(s=>s.Label),axisLabel:{...Xd(e).axisLabel,hideOverlap:!0,width:120,overflow:"truncate"}},yAxis:{...Xd(e),type:"category",inverse:!0,data:t.YCategories.map(s=>s.Label),axisLabel:{...Xd(e).axisLabel,width:80,overflow:"truncate"}},visualMap:{show:t.ShowLegend,min:r,max:i,calculable:!1,orient:"horizontal",left:"center",bottom:6,itemWidth:9,itemHeight:130,text:["Higher","Lower"],textGap:9,textStyle:{color:e.muted,fontSize:10},inRange:{color:o}},series:[{type:"heatmap",data:t.Cells.map(s=>({name:s.Key,value:[t.XCategories.findIndex(l=>l.Key===s.XKey),t.YCategories.findIndex(l=>l.Key===s.YKey),s.Value??"-"],itemStyle:{...Vt(za(o,((s.Value??r)-r)/(i-r)),e.surface,t.SelectedKey===s.Key),borderRadius:4},label:{color:at(za(o,((s.Value??r)-r)/(i-r)))},emphasis:{itemStyle:rr(za(o,((s.Value??r)-r)/(i-r)))}})),label:{show:t.ShowLabels,fontSize:10,formatter:s=>Ie(t.Cells[s.dataIndex].Value,t,!0)},emphasis:{itemStyle:{borderColor:e.text,borderWidth:2,borderType:"solid"}}}]}}function JO(t,e,r,i,a){return $x(t,e,r,i,a)}function QO(t,e,r={}){return Ye([X0,Na,dx]),JO(t,"heatmap",e,r,jO)}var Tf={instances:new Map,serial:0},eI;function Jt(t,e,r){var i=document.createElement(t);return e&&(i.className=e),r!==void 0&&(i.textContent=r),i}function Me(t,e,r){return t.setAttribute(e,String(r)),t}function tI(t,e){if(t.error||(t.error=Me(Jt("p","blu-common-error"),"role","alert"),t.host.append(t.error)),t.error.textContent=e,t.error.hidden=!e,e&&t.lastError!==e&&t.events.Error){t.lastError=e;try{t.events.Error(e)}catch{}}e||(t.lastError="")}function e5(t,e,r,i){if(t=t===void 0?e:Number(t),!Number.isInteger(t)||t<r||t>i)throw Error("Expected an integer between "+r+" and "+i+".");return t}function Xx(t){var e=Tf.instances.get(t);e&&(e.dead=!0,e.cleanup.forEach(function(r){r()}),e.owned.forEach(function(r){r.remove()}),e.host._bluChartsSparklineOwner===t&&(delete e.host._bluChartsSparklineOwner,e.host.removeAttribute("data-blu-ready")),Tf.instances.delete(t))}function t5(t,e){return t.owned.push(e),e}function rI(t,e,r=300,i="Smooth"){var a=typeof t=="string"?JSON.parse(t||"[]"):t||[];if(!Array.isArray(a)||a.length>1e4)throw Error("Points must be a list with at most 10,000 items.");var n=a.map(function(_){if(!_||typeof _.Value!="number"||!Number.isFinite(_.Value))throw Error("Every Sparkline point needs a finite numeric Value.");return _.Value});if(!n.length)return{rows:a,coordinates:[],line:"",area:""};var o=Math.min.apply(null,n),s=Math.max.apply(null,n),l=s-o,u=Math.max(Math.abs(o),Math.abs(s),1),f=o/u,c=s/u-f,p=n.map(function(_,b){return[n.length===1?r/2:6+b*(r-12)/(n.length-1),c?e-6-(_/u-f)/c*(e-12):e/2]}),h=p.map(function(_,b){return(b?"L":"M")+_[0].toFixed(3)+" "+_[1].toFixed(3)}).join(" ");if(i==="Smooth"&&p.length>2){var d=(r-12)/(p.length-1),v=p.slice(1).map(function(_,b){return(_[1]-p[b][1])/d}),m=p.map(function(_,b){if(b===0)return v[0];if(b===p.length-1)return v[b-1];var S=v[b-1],w=v[b];return S*w>0?2*S*w/(S+w):0});h="M"+p[0][0].toFixed(3)+" "+p[0][1].toFixed(3);for(var g=1;g<p.length;g++){var y=p[g-1],x=p[g];h+=" C"+(y[0]+d/3).toFixed(3)+" "+(y[1]+m[g-1]*d/3).toFixed(3)+" "+(x[0]-d/3).toFixed(3)+" "+(x[1]-m[g]*d/3).toFixed(3)+" "+x[0].toFixed(3)+" "+x[1].toFixed(3)}}return{rows:a,coordinates:p,line:h,area:h+" L"+p[p.length-1][0]+" "+(e-4)+" L"+p[0][0]+" "+(e-4)+" Z",min:o,max:s,first:n[0],last:n[n.length-1]}}function r5(t){var e=t.options,r=Math.max(24,Math.round(t.host.clientWidth||300)),i=JSON.stringify([e,r,t.reducedMotion.matches]);let a=(U,B,Y={})=>(e.Messages?.[U]??B).replace(/\{(\w+)\}/g,(q,Q)=>Y[Q]??q);if(t.renderSignature===i)return;var n=e.LineStyle||"Smooth";if(!["Straight","Smooth"].includes(n))throw Error("LineStyle must be Straight or Smooth.");var o=e5(e.Height,64,24,240),s=JSON.stringify([e.PointsJson,o,r,n]),l=t.geometryKey===s?t.geometry:rI(e.PointsJson,o,r,n),u=e.Animation||(e.AnimateGlow===!1?"Off":"Once");if(!["Off","Once","Continuous"].includes(u))throw Error("Animation must be Off, Once or Continuous.");var f=e.AnimationDuration===void 0?5:Number(e.AnimationDuration);if(!Number.isFinite(f)||f<1||f>60)throw Error("AnimationDuration must be between 1 and 60 seconds.");var c=e.AreaOpacity===void 0?18:Number(e.AreaOpacity);if(!Number.isFinite(c)||c<0||c>100)throw Error("AreaOpacity must be between 0 and 100 percent.");t.animation!==u&&(t.animationPaused=!1),t.animation=u,t.geometryKey=s,t.geometry=l;var p=String(e.Color||"Primary").toLowerCase();if("default primary secondary success processing warning error danger magenta red volcano orange gold lime green cyan blue geekblue purple".split(" ").indexOf(p)<0)throw Error("Unknown ComponentColor.");t.body||(t.body=t5(t,Jt("div","blu-sparkline")),t.host.append(t.body));for(var h=t.body,d=!!(h.querySelector("details")&&h.querySelector("details").open),v=h.contains(document.activeElement);h.firstChild;)h.removeChild(h.firstChild);if(h.style.setProperty("--blu-sparkline-color","var(--bluui-color-"+p+"-text)"),h.style.setProperty("--blu-sparkline-height",o+"px"),!l.rows.length){h.append(Jt("p","blu-sparkline__empty",e.EmptyText||"No trend data.")),t.renderSignature=i;return}var m="http://www.w3.org/2000/svg",g=document.createElementNS(m,"svg");Me(g,"viewBox","0 0 "+r+" "+o),Me(g,"preserveAspectRatio","none"),Me(g,"role","img");let y=l.last>l.first?"Rising":l.last<l.first?"Falling":"Unchanged";var x=e.SummaryText||a("TrendSummary","{count} points. {direction} from {first} to {last}. Minimum {min}, maximum {max}.",{count:l.rows.length,direction:a(y,y),first:l.first,last:l.last,min:l.min,max:l.max});Me(g,"aria-label",(e.AccessibleLabel||"Trend")+". "+x);var _=document.createElementNS(m,"title");if(_.textContent=(e.AccessibleLabel||"Trend")+". "+x,g.append(_),e.ShowArea!==!1&&l.rows.length>1){var b=document.createElementNS(m,"defs"),S=document.createElementNS(m,"linearGradient");Me(S,"id",t.uid+"-area"),Me(S,"x1","0%"),Me(S,"y1","0%"),Me(S,"x2","0%"),Me(S,"y2","100%"),[c/100,e.AreaFade===!1?c/100:0].forEach(function(U,B){var Y=document.createElementNS(m,"stop");Me(Y,"offset",B?"100%":"0%"),Y.style.stopColor="var(--blu-sparkline-color)",Me(Y,"stop-opacity",U),S.append(Y)}),b.append(S),g.append(b);var w=document.createElementNS(m,"path");Me(w,"d",l.area),Me(w,"class","blu-sparkline__area"),w.style.fill="url(#"+t.uid+"-area)",g.append(w)}var A=document.createElementNS(m,"path");Me(A,"d",l.line),Me(A,"class","blu-sparkline__line"),Me(A,"vector-effect","non-scaling-stroke"),g.append(A);var C=u!=="Off"&&l.rows.length>1&&!t.reducedMotion.matches;if(!C&&e.ShowEndMarker!==!1||l.rows.length===1){var T=l.coordinates[l.coordinates.length-1],M=document.createElementNS(m,"circle");Me(M,"cx",T[0]),Me(M,"cy",T[1]),Me(M,"r",3),Me(M,"class","blu-sparkline__point"),g.append(M)}if(C){var O=document.createElementNS(m,"g");Me(O,"class","blu-sparkline__traveler"),Me(O,"aria-hidden","true"),[["halo",6],["ring",4.5],["cursor",3]].forEach(function(U){var B=document.createElementNS(m,"circle");Me(B,"r",U[1]),Me(B,"class","blu-sparkline__"+U[0]),O.append(B)});var L=document.createElementNS(m,"animateMotion"),D=document.createElementNS(m,"animate");Me(L,"path",l.line),Me(L,"calcMode","spline"),Me(L,"keyPoints","0;1"),Me(L,"keyTimes","0;1"),Me(L,"keySplines","0.22 0.61 0.36 1"),Me(D,"attributeName","opacity"),Me(D,"values","0;1;1;0"),Me(D,"keyTimes","0;0.03;0.96;1"),[L,D].forEach(function(U){Me(U,"dur",f+"s"),Me(U,"repeatCount",u==="Continuous"?"indefinite":"1"),Me(U,"fill","freeze"),O.append(U)}),g.append(O)}if(h.append(g),C&&(u==="Continuous"||f>5)){var I=Jt("button","blu-sparkline__pause");I.type="button";var P=function(){I.textContent=t.animationPaused?a("ResumeAnimation","Resume animation"):a("PauseAnimation","Pause animation"),t.animationPaused?g.pauseAnimations():g.unpauseAnimations()};I.addEventListener("click",function(){t.animationPaused=!t.animationPaused,P()}),h.append(I),P()}if(e.ShowDataTable){let U=function(){if(!(!z.open||N)){var B=Jt("table"),Y=Jt("caption","",e.AccessibleLabel||"Trend"),q=Jt("thead"),Q=Jt("tr");Q.append(Me(Jt("th","",a("Point","Point")),"scope","col"),Me(Jt("th","",a("Value","Value")),"scope","col")),q.append(Q),B.append(Y,q);var j=Jt("tbody");l.rows.forEach(function(fe,be){var Xe=Jt("tr");Xe.append(Me(Jt("th","",fe.Label||String(be+1)),"scope","row"),Jt("td","",String(fe.Value))),j.append(Xe)}),B.append(j),z.append(B),N=!0}};var z=Jt("details","blu-sparkline__data");z.open=d,z.append(Jt("summary","",a("ViewData","View trend data")));var N=!1;z.addEventListener("toggle",U),h.append(z),U(),v&&z.querySelector("summary").focus()}t.renderSignature=i}function i5(t,e){return{sync:function(r,i,a,n){var o=document.getElementById(r);if(!o)return"Component host was not found.";n=n||r;var s=Tf.instances.get(n);if(s&&s.host!==o&&(Xx(n),s=null),o._bluChartsSparklineOwner&&o._bluChartsSparklineOwner!==n&&Xx(o._bluChartsSparklineOwner),!s){s={host:o,key:n,uid:"blu-charts-trend-"+ ++Tf.serial,owned:[],cleanup:[],reducedMotion:matchMedia("(prefers-reduced-motion: reduce)")},Tf.instances.set(n,s);var l=function(){if(!s.dead&&s.options)try{e(s)}catch{}},u=new ResizeObserver(l);u.observe(o),s.reducedMotion.addEventListener("change",l),s.cleanup.push(function(){u.disconnect(),s.reducedMotion.removeEventListener("change",l)})}var f=o.nextElementSibling;f&&f.classList.contains("blu-component-preview")&&(f.hidden=!0),o._bluChartsSparklineOwner=n,s.options=i||{},s.events=a||{},Me(o,"data-blu-ready","true");try{return e(s),tI(s,""),""}catch(c){return s.renderSignature=void 0,tI(s,c.message||String(c)),c.message||String(c)}},destroy:Xx}}function iI(){return eI||(eI=Object.assign(i5("Sparkline",r5),{geometry:rI}))}function aI(t){if(vr(t.Points,"Points"),t.Messages!==void 0&&(!t.Messages||typeof t.Messages!="object"||Array.isArray(t.Messages)||Object.keys(t.Messages).length>100||!Object.values(t.Messages).every(Qt)))throw new Error("Messages must contain plain text translations.");if(t.Points.some(e=>!e||!Mi(e.Value)||e.Label!==void 0&&!Qt(e.Label)))throw new Error("Points require supported finite values and plain text labels.");for(let e of["AnimateGlow","ShowArea","AreaFade","ShowEndMarker","ShowDataTable"])if(t[e]!==void 0&&typeof t[e]!="boolean")throw new Error(`${e} must be Boolean.`);for(let e of["AccessibleLabel","SummaryText","EmptyText","ExtendedClass"])if(t[e]!==void 0&&!Qt(t[e]))throw new Error(`${e} must be plain text within the text limit.`);if(t.Color!==void 0&&!ka(t.Color))throw new Error("Unknown ComponentColor.");if(t.LineStyle!==void 0&&!["Straight","Smooth"].includes(t.LineStyle))throw new Error("LineStyle must be Straight or Smooth.");if(t.Animation!==void 0&&!["Off","Once","Continuous"].includes(t.Animation))throw new Error("Animation must be Off, Once or Continuous.");if(t.Height!==void 0&&(!Number.isInteger(t.Height)||t.Height<24||t.Height>240))throw new Error("Height must be an integer from 24 to 240.");if(t.AnimationDuration!==void 0&&(!Mi(t.AnimationDuration)||t.AnimationDuration<1||t.AnimationDuration>60))throw new Error("AnimationDuration must be between 1 and 60.");if(t.AreaOpacity!==void 0&&(!Mi(t.AreaOpacity)||t.AreaOpacity<0||t.AreaOpacity>100))throw new Error("AreaOpacity must be between 0 and 100.")}function nI(t,e,r={}){let i=iI(),a=document.createElement("div");a.id="blu-charts-sparkline-"+crypto.randomUUID(),t.append(a);let n={...e},o=!1,s=u=>{if(o)throw new Error("Component is destroyed.");let f={...n,...structuredClone(u)};try{aI(f)}catch(v){try{r.Error?.(v.message)}catch{}throw v}let{Points:c,ExtendedClass:p,...h}=f,d=i.sync(a.id,{...h,PointsJson:JSON.stringify(c||[])},r,a.id);if(d)throw new Error(d);n=f,a.className=p||""},l=()=>{o||(o=!0,i.destroy(a.id),a.remove())};try{s({})}catch(u){throw l(),u}return{element:a,update:s,destroy:l}}return hI(a5);})();
24
24
  /*! Bundled license information:
25
25
 
26
26
  tslib/tslib.es6.js: