From 8918ff62aa9939d6c2567c607ea7ba97ad66b1bd Mon Sep 17 00:00:00 2001 From: naschorr Date: Fri, 31 May 2024 04:38:10 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20naschorr?= =?UTF-8?q?/naschorr.github.io@5ab657ba08d1d4089e671803fb6290c70fbd0174=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/images/metadata.json | 58 +++++++++++++------------- chunk-663WIKLP.js | 1 - chunk-WFE5CYU3.js => chunk-6AQIFS4D.js | 2 +- chunk-6SEQ6Y4L.js | 40 ------------------ chunk-PJMPK5QW.js => chunk-B334KIAV.js | 2 +- chunk-JMZ7DUBM.js => chunk-F6SUT7E5.js | 0 chunk-HRLUZBMJ.js | 7 ++++ chunk-KZ7UGLZ5.js | 1 + chunk-H7PNCXRX.js => chunk-N52VNUF3.js | 2 +- chunk-N6S5G56Y.js | 7 ---- chunk-XHHVRPNP.js | 40 ++++++++++++++++++ index.html | 7 ++-- main-WAETTA7O.js => main-PMYUNFRD.js | 2 +- polyfills-A7MJM4D4.js | 2 + polyfills-LZBJRJJE.js | 2 - styles-CSV2LVKF.css | 1 + styles-ZWHZHSU6.css | 1 - 17 files changed, 87 insertions(+), 88 deletions(-) delete mode 100644 chunk-663WIKLP.js rename chunk-WFE5CYU3.js => chunk-6AQIFS4D.js (97%) delete mode 100644 chunk-6SEQ6Y4L.js rename chunk-PJMPK5QW.js => chunk-B334KIAV.js (99%) rename chunk-JMZ7DUBM.js => chunk-F6SUT7E5.js (100%) create mode 100644 chunk-HRLUZBMJ.js create mode 100644 chunk-KZ7UGLZ5.js rename chunk-H7PNCXRX.js => chunk-N52VNUF3.js (96%) delete mode 100644 chunk-N6S5G56Y.js create mode 100644 chunk-XHHVRPNP.js rename main-WAETTA7O.js => main-PMYUNFRD.js (62%) create mode 100644 polyfills-A7MJM4D4.js delete mode 100644 polyfills-LZBJRJJE.js create mode 100644 styles-CSV2LVKF.css delete mode 100644 styles-ZWHZHSU6.css diff --git a/assets/images/metadata.json b/assets/images/metadata.json index 6658772..c4b4b92 100644 --- a/assets/images/metadata.json +++ b/assets/images/metadata.json @@ -1,4 +1,16 @@ { + "assets/images/projects/deep-rock-galactic-save-syncer/ui-inspiration.avif": { + "thumbnail": { + "url": "assets/images/projects/deep-rock-galactic-save-syncer/ui-inspiration.thumbnail.avif", + "widthPx": 267, + "heightPx": 150 + }, + "fullRes": { + "url": "assets/images/projects/deep-rock-galactic-save-syncer/ui-inspiration.avif", + "widthPx": 1920, + "heightPx": 1080 + } + }, "assets/images/projects/deep-rock-galactic-save-syncer/button-explainer.avif": { "fullRes": { "url": "assets/images/projects/deep-rock-galactic-save-syncer/button-explainer.avif", @@ -11,18 +23,6 @@ "heightPx": 150 } }, - "assets/images/projects/deep-rock-galactic-save-syncer/ui-inspiration.avif": { - "fullRes": { - "url": "assets/images/projects/deep-rock-galactic-save-syncer/ui-inspiration.avif", - "widthPx": 1920, - "heightPx": 1080 - }, - "thumbnail": { - "url": "assets/images/projects/deep-rock-galactic-save-syncer/ui-inspiration.thumbnail.avif", - "widthPx": 267, - "heightPx": 150 - } - }, "assets/images/projects/deep-rock-galactic-save-syncer/ui-missing-xbox-save.avif": { "fullRes": { "url": "assets/images/projects/deep-rock-galactic-save-syncer/ui-missing-xbox-save.avif", @@ -35,28 +35,28 @@ "heightPx": 150 } }, - "assets/images/projects/deep-rock-galactic-save-syncer/ui.avif": { + "assets/images/projects/harbor-freight-storage-bin-upgrade/m3_assorted.avif": { "fullRes": { - "url": "assets/images/projects/deep-rock-galactic-save-syncer/ui.avif", - "widthPx": 1032, - "heightPx": 837 + "url": "assets/images/projects/harbor-freight-storage-bin-upgrade/m3_assorted.avif", + "widthPx": 1409, + "heightPx": 1200 }, "thumbnail": { - "url": "assets/images/projects/deep-rock-galactic-save-syncer/ui.thumbnail.avif", - "widthPx": 185, + "url": "assets/images/projects/harbor-freight-storage-bin-upgrade/m3_assorted.thumbnail.avif", + "widthPx": 176, "heightPx": 150 } }, - "assets/images/projects/harbor-freight-storage-bin-upgrade/m3_assorted.avif": { + "assets/images/projects/deep-rock-galactic-save-syncer/ui.avif": { "thumbnail": { - "url": "assets/images/projects/harbor-freight-storage-bin-upgrade/m3_assorted.thumbnail.avif", - "widthPx": 176, + "url": "assets/images/projects/deep-rock-galactic-save-syncer/ui.thumbnail.avif", + "widthPx": 185, "heightPx": 150 }, "fullRes": { - "url": "assets/images/projects/harbor-freight-storage-bin-upgrade/m3_assorted.avif", - "widthPx": 1409, - "heightPx": 1200 + "url": "assets/images/projects/deep-rock-galactic-save-syncer/ui.avif", + "widthPx": 1032, + "heightPx": 837 } }, "assets/images/projects/harbor-freight-storage-bin-upgrade/m3_assorted_top.avif": { @@ -108,15 +108,15 @@ } }, "assets/images/projects/harbor-freight-storage-bin-upgrade/tag_removal.avif": { - "fullRes": { - "url": "assets/images/projects/harbor-freight-storage-bin-upgrade/tag_removal.avif", - "widthPx": 1902, - "heightPx": 1200 - }, "thumbnail": { "url": "assets/images/projects/harbor-freight-storage-bin-upgrade/tag_removal.thumbnail.avif", "widthPx": 238, "heightPx": 150 + }, + "fullRes": { + "url": "assets/images/projects/harbor-freight-storage-bin-upgrade/tag_removal.avif", + "widthPx": 1902, + "heightPx": 1200 } } } \ No newline at end of file diff --git a/chunk-663WIKLP.js b/chunk-663WIKLP.js deleted file mode 100644 index c068b60..0000000 --- a/chunk-663WIKLP.js +++ /dev/null @@ -1 +0,0 @@ -import{B as G,E as w,I as D,V as M,W as A,a as E,b as f,c as y,da as R,e as g,f as L,g as _,h as C,k as S,m as b,o as z,p as O,s as T,t as m,y as u}from"./chunk-N6S5G56Y.js";import{d}from"./chunk-JMZ7DUBM.js";var v=class{constructor(){this.subject=new g(1),this.subscriptions=new E}doFilter(e){this.subject.next(e)}dispose(){this.subscriptions.unsubscribe()}notEmpty(e,s){this.subscriptions.add(this.subject.subscribe(t=>{if(t[e]){let i=t[e].currentValue;i!=null&&s(i)}}))}has(e,s){this.subscriptions.add(this.subject.subscribe(t=>{if(t[e]){let i=t[e].currentValue;s(i)}}))}notFirst(e,s){this.subscriptions.add(this.subject.subscribe(t=>{if(t[e]&&!t[e].isFirstChange()){let i=t[e].currentValue;s(i)}}))}notFirstAndEmpty(e,s){this.subscriptions.add(this.subject.subscribe(t=>{if(t[e]&&!t[e].isFirstChange()){let i=t[e].currentValue;i!=null&&s(i)}}))}},I=new S("NGX_ECHARTS_CONFIG"),P=(()=>{let e=class e{constructor(t,i,a){this.el=i,this.ngZone=a,this.options=null,this.theme=null,this.initOpts=null,this.merge=null,this.autoResize=!0,this.loading=!1,this.loadingType="default",this.loadingOpts=null,this.chartInit=new m,this.optionsError=new m,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartHighlight=this.createLazyEvent("highlight"),this.chartDownplay=this.createLazyEvent("downplay"),this.chartSelectChanged=this.createLazyEvent("selectchanged"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendLegendSelectAll=this.createLazyEvent("legendselectall"),this.chartLegendLegendInverseSelect=this.createLazyEvent("legendinverseselect"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartGraphRoam=this.createLazyEvent("graphroam"),this.chartGeoRoam=this.createLazyEvent("georoam"),this.chartTreeRoam=this.createLazyEvent("treeroam"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartGeoSelectChanged=this.createLazyEvent("geoselectchanged"),this.chartGeoSelected=this.createLazyEvent("geoselected"),this.chartGeoUnselected=this.createLazyEvent("geounselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartGlobalCursorTaken=this.createLazyEvent("globalcursortaken"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.chart$=new g(1),this.resize$=new y,this.changeFilter=new v,this.echarts=t.echarts}ngOnChanges(t){this.changeFilter.doFilter(t)}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(C(100,L,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(()=>{this.animationFrameID=window.requestAnimationFrame(()=>this.resize$.next())})),this.resizeOb.observe(this.el.nativeElement)),this.changeFilter.notFirstAndEmpty("options",t=>this.onOptionsChange(t)),this.changeFilter.notFirstAndEmpty("merge",t=>this.setOption(t)),this.changeFilter.has("loading",t=>this.toggleLoading(!!t)),this.changeFilter.notFirst("theme",()=>this.refreshChart())}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.loadingSub&&this.loadingSub.unsubscribe(),this.changeFilter.dispose(),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(t){this.chart?t?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading():this.loadingSub=this.chart$.subscribe(i=>t?i.showLoading(this.loadingType,this.loadingOpts):i.hideLoading())}setOption(t,i){if(this.chart)try{this.chart.setOption(t,i)}catch(a){console.error(a),this.optionsError.emit(a)}}refreshChart(){return d(this,null,function*(){this.dispose(),yield this.initChart()})}createChart(){let t=this.el.nativeElement;if(window&&window.getComputedStyle){let i=window.getComputedStyle(t,null).getPropertyValue("height");(!i||i==="0px")&&(!t.style.height||t.style.height==="0px")&&(t.style.height="400px")}return this.ngZone.runOutsideAngular(()=>(typeof this.echarts=="function"?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:a})=>a(t,this.theme,this.initOpts)))}initChart(){return d(this,null,function*(){yield this.onOptionsChange(this.options),this.merge&&this.chart&&this.setOption(this.merge)})}onOptionsChange(t){return d(this,null,function*(){t&&(this.chart?this.setOption(this.options,!0):(this.chart=yield this.createChart(),this.chart$.next(this.chart),this.chartInit.emit(this.chart),this.setOption(this.options,!0)))})}createLazyEvent(t){return this.chartInit.pipe(_(i=>new f(a=>(i.on(t,o=>this.ngZone.run(()=>a.next(o))),()=>{this.chart&&(this.chart.isDisposed()||i.off(t))}))))}};e.\u0275fac=function(i){return new(i||e)(u(I),u(T),u(G))},e.\u0275dir=z({type:e,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loading:"loading",loadingType:"loadingType",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartHighlight:"chartHighlight",chartDownplay:"chartDownplay",chartSelectChanged:"chartSelectChanged",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendLegendSelectAll:"chartLegendLegendSelectAll",chartLegendLegendInverseSelect:"chartLegendLegendInverseSelect",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartGraphRoam:"chartGraphRoam",chartGeoRoam:"chartGeoRoam",chartTreeRoam:"chartTreeRoam",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartGeoSelectChanged:"chartGeoSelectChanged",chartGeoSelected:"chartGeoSelected",chartGeoUnselected:"chartGeoUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartGlobalCursorTaken:"chartGlobalCursorTaken",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],standalone:!0,features:[O]});let n=e;return n})(),F=()=>({provide:I,useFactory:()=>({echarts:()=>import("./chunk-6SEQ6Y4L.js")})});var p=class{constructor(e,s,t){this._proportionalGain=e,this._integralGain=s,this._derivativeGain=t,this._setPoint=0,this._integralValue=0,this._previousError=0,this._previousTimestamp=null}get proportionalGain(){return this._proportionalGain}get integralGain(){return this._integralGain}get derivativeGain(){return this._derivativeGain}_proportional(e){return this.proportionalGain*e}_integral(e,s){return this._integralValue=this._integralValue+e*s,this.integralGain*this._integralValue}_derivative(e,s){let t=(e-this._previousError)/s;return this.derivativeGain*t}runLoop(e,s){let t=this._setPoint-e,i=s||new Date().getTime()/1e3,a=0,o=this._proportional(t);if(a+=o,this._previousTimestamp){let h=i-this._previousTimestamp,l=this._integral(t,h);a+=l;let r=this._derivative(t,h);a+=r}return this._previousError=t,this._previousTimestamp=i,a}adjustSetPoint(e){this._setPoint=e}};var c=class{constructor(e,s,t,i,a,o,h){this._name=e,this._proportionalGain=s,this._integralGain=t,this._derivativeGain=i,this._maxDataLength=o??256,this._outputTransformer=h,this._pid=new p(this.proportionalGain,this.integralGain,this.derivativeGain),this._data=[],this._processVariable=a}get name(){return this._name}get proportionalGain(){return this._proportionalGain}get integralGain(){return this._integralGain}get derivativeGain(){return this._derivativeGain}get data(){return this._data.slice()}initializeSetPoint(e,s){this.adjustSetPoint(e),this._storeDatum(s)}adjustSetPoint(e){this._pid.adjustSetPoint(e)}_storeDatum(e){this._data.push(e),this._data.length>this._maxDataLength&&this._data.shift()}runLoop(){let e=this._pid.runLoop(this._processVariable);return this._outputTransformer&&(e=this._outputTransformer(e)),e+=this._processVariable,this._storeDatum(e),this._processVariable=e,e}};var N=(()=>{let e=class e{constructor(){this.pidContainers=[],this.TIME_INTERVAL_SECONDS=1,this.MAX_CHANGES_PER_SECOND=10,this.MAX_GRAPHED_ELEMENTS=45,this.ITERATIONS_BEFORE_CHANGING_SET_POINT=15;let t=Math.random()*5;this.pidContainers=[new c("(1, 1, 1)",1,1,1,t,this.MAX_GRAPHED_ELEMENTS,this.normalizePidOutput.bind(this)),new c("(2, 1, 1)",2,1,1,t,this.MAX_GRAPHED_ELEMENTS,this.normalizePidOutput.bind(this)),new c("(1, 2, 1)",1,2,1,t,this.MAX_GRAPHED_ELEMENTS,this.normalizePidOutput.bind(this)),new c("(1, 1, 2)",1,1,2,t,this.MAX_GRAPHED_ELEMENTS,this.normalizePidOutput.bind(this))]}generateSetPoint(){return Math.random()*5}normalizePidOutput(t){let i=this.TIME_INTERVAL_SECONDS*this.MAX_CHANGES_PER_SECOND,a=t/i;return Math.min(i,Math.max(-i,a))}ngOnInit(){let t=[],i=[],a=this.generateSetPoint();for(let h of this.pidContainers)h.adjustSetPoint(a);let o=0;console.log("START"),setInterval(()=>{t.push(`${a.toFixed(3)}`),i.push(a);for(let r of this.pidContainers)r.runLoop();if(t.length>this.MAX_GRAPHED_ELEMENTS&&(t.shift(),i.shift()),o%this.ITERATIONS_BEFORE_CHANGING_SET_POINT===0){a=this.generateSetPoint();for(let r of this.pidContainers)r.adjustSetPoint(a)}o+=1;let h=["set_point"],l=[{name:"set_point",type:"line",data:i,animationDelay:r=>r*0,colorBy:"series",symbol:"none",universalTransition:!0}];for(let r of this.pidContainers)h.push(r.name),l.push({name:r.name,type:"line",data:r.data,animationDelay:x=>x*0,colorBy:"series",symbol:"none",universalTransition:!0});this.options={legend:{data:h,align:"left"},tooltip:{},xAxis:{data:t,silent:!0,splitLine:{show:!1}},yAxis:{},series:l,animationEasing:"linear",animationDelayUpdate:0}},this.TIME_INTERVAL_SECONDS*1e3)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["pid-playground"]],standalone:!0,features:[M([F()]),A],decls:1,vars:1,consts:[["echarts","",1,"demo-chart",3,"options"]],template:function(i,a){i&1&&D(0,"div",0),i&2&&w("options",a.options)},dependencies:[R,P]});let n=e;return n})();var nt=[{path:"",component:N}];export{nt as default}; diff --git a/chunk-WFE5CYU3.js b/chunk-6AQIFS4D.js similarity index 97% rename from chunk-WFE5CYU3.js rename to chunk-6AQIFS4D.js index df94426..58b17cc 100644 --- a/chunk-WFE5CYU3.js +++ b/chunk-6AQIFS4D.js @@ -1 +1 @@ -import{$ as v,D as f,E as c,F as l,G as s,H as o,I as u,N as h,S as a,U as C,W as d,X as b,Y as y,ba as M,ca as w,da as m,m as p,x as r}from"./chunk-N6S5G56Y.js";var k=t=>({absolute:t}),O=(()=>{let e=class e{constructor(){this.isAbsolute=!1,this.containerClasses="color-light",this._currentYear=new Date().getFullYear()}get currentYear(){return this._currentYear}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=p({type:e,selectors:[["footer"]],inputs:{isAbsolute:"isAbsolute",containerClasses:"containerClasses"},standalone:!0,features:[d],decls:15,vars:7,consts:[[3,"ngClass"],[1,"flex","flex-col","justify-end"],[1,"select-none"],[1,"flex","flex-col","justify-end","items-end"],[1,"block","select-none"],["href","https://www.flaticon.com/free-icons/3d-print","title","3d print icons"],["href","https://www.flaticon.com/free-icons/chemistry","title","chemistry icons"],["href","https://www.flaticon.com/free-icons/github","title","github icons"]],template:function(i,n){i&1&&(s(0,"div",0)(1,"div",1)(2,"div",2),a(3,"Made with \u2764"),o(),s(4,"div",2),a(5),o()(),s(6,"div",3)(7,"span",4),a(8,"Massive thanks to these sources:"),o(),s(9,"a",5),a(10,"3d print icons created by Freepik - Flaticon"),o(),s(11,"a",6),a(12,"Chemistry icons created by Freepik - Flaticon"),o(),s(13,"a",7),a(14,"Github icons created by Kalashnyk - Flaticon"),o()()()),i&2&&(l("footer ",n.containerClasses," flex w-full justify-between py-1"),c("ngClass",b(5,k,n.isAbsolute)),r(5),C("\xA9 ",n.currentYear," Nick Schorr"))},dependencies:[m,v],styles:["[_nghost-%COMP%]{display:flex;justify-content:end;flex-grow:1}.absolute[_ngcontent-%COMP%]{position:absolute;bottom:0}.footer[_ngcontent-%COMP%]{font-size:.5rem;opacity:.25}"]});let t=e;return t})();var F=(t,e)=>({height:t,width:e});function I(t,e){if(t&1&&u(0,"div"),t&2){let x=h();l("bg ",x.bgClasses,"")}}var A=(()=>{let e=class e{constructor(){this.size="2rem",this.containerClasses="",this.logoClasses="bg-gradient-feature",this.bgClasses="bg-color-light",this.hideBg=!1}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=p({type:e,selectors:[["logo"]],inputs:{size:"size",containerClasses:"containerClasses",logoClasses:"logoClasses",bgClasses:"bgClasses",hideBg:"hideBg"},standalone:!0,features:[d],decls:3,vars:11,consts:[[3,"ngStyle"],[3,"class",4,"ngIf"]],template:function(i,n){i&1&&(s(0,"div",0),u(1,"div"),f(2,I,1,3,"div",1),o()),i&2&&(l("logo-container ",n.containerClasses,""),c("ngStyle",y(8,F,n.size,n.size)),r(),l("logo ",n.logoClasses,""),r(),c("ngIf",!n.hideBg))},dependencies:[m,M,w],styles:['[_nghost-%COMP%]{display:flex;align-items:center}.logo-container[_ngcontent-%COMP%]{position:relative}.logo-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{position:absolute;top:0;height:100%;width:100%;-webkit-mask-image:url("./media/avatar-circle-V6K6IMGJ.png");mask-image:url("./media/avatar-circle-V6K6IMGJ.png");-webkit-mask-size:100%;mask-size:100%;z-index:10}.logo-container[_ngcontent-%COMP%] .bg[_ngcontent-%COMP%]{position:absolute;top:0;height:100%;width:100%;z-index:9;border-radius:calc(50% + 1px)}']});let t=e;return t})();export{O as a,A as b}; +import{$ as v,D as f,E as c,F as l,G as s,H as o,I as u,N as h,S as a,U as C,W as d,X as b,Y as y,ba as M,ca as w,da as m,m as p,x as r}from"./chunk-HRLUZBMJ.js";var k=t=>({absolute:t}),O=(()=>{let e=class e{constructor(){this.isAbsolute=!1,this.containerClasses="color-light",this._currentYear=new Date().getFullYear()}get currentYear(){return this._currentYear}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=p({type:e,selectors:[["footer"]],inputs:{isAbsolute:"isAbsolute",containerClasses:"containerClasses"},standalone:!0,features:[d],decls:15,vars:7,consts:[[3,"ngClass"],[1,"flex","flex-col","justify-end"],[1,"select-none"],[1,"flex","flex-col","justify-end","items-end"],[1,"block","select-none"],["href","https://www.flaticon.com/free-icons/3d-print","title","3d print icons"],["href","https://www.flaticon.com/free-icons/chemistry","title","chemistry icons"],["href","https://www.flaticon.com/free-icons/github","title","github icons"]],template:function(i,n){i&1&&(s(0,"div",0)(1,"div",1)(2,"div",2),a(3,"Made with \u2764"),o(),s(4,"div",2),a(5),o()(),s(6,"div",3)(7,"span",4),a(8,"Massive thanks to these sources:"),o(),s(9,"a",5),a(10,"3d print icons created by Freepik - Flaticon"),o(),s(11,"a",6),a(12,"Chemistry icons created by Freepik - Flaticon"),o(),s(13,"a",7),a(14,"Github icons created by Kalashnyk - Flaticon"),o()()()),i&2&&(l("footer ",n.containerClasses," flex w-full justify-between py-1"),c("ngClass",b(5,k,n.isAbsolute)),r(5),C("\xA9 ",n.currentYear," Nick Schorr"))},dependencies:[m,v],styles:["[_nghost-%COMP%]{display:flex;justify-content:end;flex-grow:1}.absolute[_ngcontent-%COMP%]{position:absolute;bottom:0}.footer[_ngcontent-%COMP%]{font-size:.5rem;opacity:.25}"]});let t=e;return t})();var F=(t,e)=>({height:t,width:e});function I(t,e){if(t&1&&u(0,"div"),t&2){let x=h();l("bg ",x.bgClasses,"")}}var A=(()=>{let e=class e{constructor(){this.size="2rem",this.containerClasses="",this.logoClasses="bg-gradient-feature",this.bgClasses="bg-color-light",this.hideBg=!1}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=p({type:e,selectors:[["logo"]],inputs:{size:"size",containerClasses:"containerClasses",logoClasses:"logoClasses",bgClasses:"bgClasses",hideBg:"hideBg"},standalone:!0,features:[d],decls:3,vars:11,consts:[[3,"ngStyle"],[3,"class",4,"ngIf"]],template:function(i,n){i&1&&(s(0,"div",0),u(1,"div"),f(2,I,1,3,"div",1),o()),i&2&&(l("logo-container ",n.containerClasses,""),c("ngStyle",y(8,F,n.size,n.size)),r(),l("logo ",n.logoClasses,""),r(),c("ngIf",!n.hideBg))},dependencies:[m,M,w],styles:['[_nghost-%COMP%]{display:flex;align-items:center}.logo-container[_ngcontent-%COMP%]{position:relative}.logo-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{position:absolute;top:0;height:100%;width:100%;-webkit-mask-image:url("./media/avatar-circle-V6K6IMGJ.png");mask-image:url("./media/avatar-circle-V6K6IMGJ.png");-webkit-mask-size:100%;mask-size:100%;z-index:10}.logo-container[_ngcontent-%COMP%] .bg[_ngcontent-%COMP%]{position:absolute;top:0;height:100%;width:100%;z-index:9;border-radius:calc(50% + 1px)}']});let t=e;return t})();export{O as a,A as b}; diff --git a/chunk-6SEQ6Y4L.js b/chunk-6SEQ6Y4L.js deleted file mode 100644 index 91e131e..0000000 --- a/chunk-6SEQ6Y4L.js +++ /dev/null @@ -1,40 +0,0 @@ -import{c as ui}from"./chunk-JMZ7DUBM.js";var Am=function(r,e){return Am=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a])},Am(r,e)};function E(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Am(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Sg={};ui(Sg,{dispose:()=>UV,disposeAll:()=>VV,getInstance:()=>BV,init:()=>Pc,registerPainter:()=>_g,version:()=>FV});var hU=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),vU=function(){function r(){this.browser=new hU,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 r}(),co=new vU;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(co.wxa=!0,co.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?co.worker=!0:typeof navigator>"u"?(co.node=!0,co.svgSupported=!0):dU(navigator.userAgent,co);function dU(r,e){var t=e.browser,i=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),n=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);i&&(t.firefox=!0,t.version=i[1]),a&&(t.ie=!0,t.version=a[1]),n&&(t.edge=!0,t.version=n[1],t.newEdge=+n[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var bt=co;var G={};ui(G,{HashMap:()=>jb,RADIAN_TO_DEGREE:()=>mo,assert:()=>Qt,bind:()=>W,clone:()=>J,concatArray:()=>cn,createCanvas:()=>CU,createHashMap:()=>Y,createObject:()=>Oa,curry:()=>tt,defaults:()=>X,disableUserSelect:()=>Du,each:()=>w,eqNaN:()=>Ra,extend:()=>N,filter:()=>wt,find:()=>Pm,guid:()=>Tu,hasOwn:()=>Q,indexOf:()=>it,inherits:()=>Cu,isArray:()=>z,isArrayLike:()=>ue,isBuiltInObject:()=>Lm,isDom:()=>un,isFunction:()=>Z,isGradientObject:()=>Pa,isImagePatternObject:()=>Rm,isNumber:()=>vt,isObject:()=>K,isPrimitive:()=>Ns,isRegExp:()=>Om,isString:()=>B,isStringSafe:()=>ks,isTypedArray:()=>ye,keys:()=>ft,logError:()=>fn,map:()=>k,merge:()=>nt,mergeAll:()=>ho,mixin:()=>Wt,noop:()=>qt,normalizeCssArray:()=>vo,reduce:()=>Me,retrieve:()=>Jt,retrieve2:()=>lt,retrieve3:()=>Le,setAsPrimitive:()=>pn,slice:()=>Au,trim:()=>Ie});var Kp=12,Dm="sans-serif",Xr=Kp+"px "+Dm,mU=20,gU=100,yU="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function xU(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;lQp,applyTransform:()=>fe,clone:()=>ur,copy:()=>Ee,create:()=>ki,dist:()=>Kr,distSquare:()=>na,distance:()=>Mu,distanceSquare:()=>Jb,div:()=>PU,dot:()=>RU,len:()=>Vs,lenSquare:()=>km,length:()=>LU,lengthSquare:()=>IU,lerp:()=>yo,max:()=>Ar,min:()=>Cr,mul:()=>EU,negate:()=>OU,normalize:()=>qr,scale:()=>go,scaleAndAdd:()=>Us,set:()=>zm,sub:()=>fi});function ki(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function Ee(r,e){return r[0]=e[0],r[1]=e[1],r}function ur(r){return[r[0],r[1]]}function zm(r,e,t){return r[0]=e,r[1]=t,r}function Qp(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function Us(r,e,t,i){return r[0]=e[0]+t[0]*i,r[1]=e[1]+t[1]*i,r}function fi(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function Vs(r){return Math.sqrt(km(r))}var LU=Vs;function km(r){return r[0]*r[0]+r[1]*r[1]}var IU=km;function EU(r,e,t){return r[0]=e[0]*t[0],r[1]=e[1]*t[1],r}function PU(r,e,t){return r[0]=e[0]/t[0],r[1]=e[1]/t[1],r}function RU(r,e){return r[0]*e[0]+r[1]*e[1]}function go(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function qr(r,e){var t=Vs(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function Mu(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var Kr=Mu;function Jb(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var na=Jb;function OU(r,e){return r[0]=-e[0],r[1]=-e[1],r}function yo(r,e,t,i){return r[0]=e[0]+i*(t[0]-e[0]),r[1]=e[1]+i*(t[1]-e[1]),r}function fe(r,e,t){var i=e[0],a=e[1];return r[0]=t[0]*i+t[2]*a+t[4],r[1]=t[1]*i+t[3]*a+t[5],r}function Cr(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function Ar(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var Bs=function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r}(),NU=function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Bs(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var i=e.offsetX,a=e.offsetY,n=i-this._x,o=a-this._y;this._x=i,this._y=a,t.drift(n,o,e),this.handler.dispatchToElement(new Bs(t,e),"drag",e.event);var s=this.handler.findHover(i,a,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Bs(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Bs(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Bs(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Bs(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r}(),Qb=NU;var zU=function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,i,a){this._$handlers||(this._$handlers={});var n=this._$handlers;if(typeof t=="function"&&(a=i,i=t,t=null),!i||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),n[e]||(n[e]=[]);for(var s=0;s>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;"),r.appendChild(o),t.push(o)}return t}function VU(r,e,t){for(var i=t?"invTrans":"trans",a=e[i],n=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),p=2*u,c=f.left,h=f.top;o.push(c,h),l=l&&n&&c===n[p]&&h===n[p+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[i]=t?Vm(s,o):Vm(o,s))}function Fm(r){return r.nodeName.toUpperCase()==="CANVAS"}var BU=/([&<>"'])/g,FU={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ue(r){return r==null?"":(r+"").replace(BU,function(e,t){return FU[t]})}var GU=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Gm=[],HU=bt.browser.firefox&&+bt.browser.version.split(".")[0]<39;function tc(r,e,t,i){return t=t||{},i?ew(r,e,t):HU&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):ew(r,e,t),t}function ew(r,e,t){if(bt.domSupported&&r.getBoundingClientRect){var i=e.clientX,a=e.clientY;if(Fm(r)){var n=r.getBoundingClientRect();t.zrX=i-n.left,t.zrY=a-n.top;return}else if($p(Gm,r,i,a)){t.zrX=Gm[0],t.zrY=Gm[1];return}}t.zrX=t.zrY=0}function ec(r){return r||window.event}function Dr(r,e,t){if(e=ec(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&&tc(r,o,e,t)}else{tc(r,e,e,t);var n=WU(e);e.zrDelta=n?n/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&GU.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function WU(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,i=r.deltaY;if(t==null||i==null)return e;var a=Math.abs(i!==0?i:t),n=i>0?-1:i<0?1:t>0?-1:1;return 3*a*n}function Lu(r,e,t,i){r.addEventListener(e,t,i)}function rw(r,e,t,i){r.removeEventListener(e,t,i)}var Mr=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function Hm(r){return r.which===2||r.which===3}var aw=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,i){return this._doTrack(e,t,i),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,i){var a=e.touches;if(a){for(var n={points:[],touches:[],target:t,event:e},o=0,s=a.length;o1&&i&&i.length>1){var n=iw(i)/iw(a);!isFinite(n)&&(n=1),e.pinchScale=n;var o=YU(i);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};var cr={};ui(cr,{clone:()=>Ym,copy:()=>Gs,create:()=>xe,identity:()=>Na,invert:()=>jr,mul:()=>fr,rotate:()=>pr,scale:()=>xo,translate:()=>Ye});function xe(){return[1,0,0,1,0,0]}function Na(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Gs(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function fr(r,e,t){var i=e[0]*t[0]+e[2]*t[1],a=e[1]*t[0]+e[3]*t[1],n=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=i,r[1]=a,r[2]=n,r[3]=o,r[4]=s,r[5]=l,r}function Ye(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function pr(r,e,t){var i=e[0],a=e[2],n=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(t),f=Math.cos(t);return r[0]=i*f+o*u,r[1]=-i*u+o*f,r[2]=a*f+s*u,r[3]=-a*u+f*s,r[4]=f*n+u*l,r[5]=f*l-u*n,r}function xo(r,e,t){var i=t[0],a=t[1];return r[0]=e[0]*i,r[1]=e[1]*a,r[2]=e[2]*i,r[3]=e[3]*a,r[4]=e[4]*i,r[5]=e[5]*a,r}function jr(r,e){var t=e[0],i=e[2],a=e[4],n=e[1],o=e[3],s=e[5],l=t*o-n*i;return l?(l=1/l,r[0]=o*l,r[1]=-n*l,r[2]=-i*l,r[3]=t*l,r[4]=(i*s-o*a)*l,r[5]=(n*a-t*s)*l,r):null}function Ym(r){var e=xe();return Gs(e,r),e}var ZU=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,i=this.y-e.y;return Math.sqrt(t*t+i*i)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,i=this.y-e.y;return t*t+i*i},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,i=this.y;return this.x=e[0]*t+e[2]*i+e[4],this.y=e[1]*t+e[3]*i+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,i){e.x=t,e.y=i},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,i){e.x=t.x+i.x,e.y=t.y+i.y},r.sub=function(e,t,i){e.x=t.x-i.x,e.y=t.y-i.y},r.scale=function(e,t,i){e.x=t.x*i,e.y=t.y*i},r.scaleAndAdd=function(e,t,i,a){e.x=t.x+i.x*a,e.y=t.y+i.y*a},r.lerp=function(e,t,i,a){var n=1-a;e.x=n*t.x+a*i.x,e.y=n*t.y+a*i.y},r}(),St=ZU;var rc=Math.min,ic=Math.max,_o=new St,So=new St,bo=new St,wo=new St,Iu=new St,Eu=new St,XU=function(){function r(e,t,i,a){i<0&&(e=e+i,i=-i),a<0&&(t=t+a,a=-a),this.x=e,this.y=t,this.width=i,this.height=a}return r.prototype.union=function(e){var t=rc(e.x,this.x),i=rc(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ic(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=ic(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=t,this.y=i},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,i=e.width/t.width,a=e.height/t.height,n=xe();return Ye(n,n,[-t.x,-t.y]),xo(n,n,[i,a]),Ye(n,n,[e.x,e.y]),n},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var i=this,a=i.x,n=i.x+i.width,o=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,f=e.y,p=e.y+e.height,c=!(nv&&(v=x,dv&&(v=_,g=i.x&&e<=i.x+i.width&&t>=i.y&&t<=i.y+i.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,i){if(!i){e!==t&&r.copy(e,t);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=t.x*a+o,e.y=t.y*n+s,e.width=t.width*a,e.height=t.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}_o.x=bo.x=t.x,_o.y=wo.y=t.y,So.x=wo.x=t.x+t.width,So.y=bo.y=t.y+t.height,_o.transform(i),wo.transform(i),So.transform(i),bo.transform(i),e.x=rc(_o.x,So.x,bo.x,wo.x),e.y=rc(_o.y,So.y,bo.y,wo.y);var l=ic(_o.x,So.x,bo.x,wo.x),u=ic(_o.y,So.y,bo.y,wo.y);e.width=l-e.x,e.height=u-e.y},r}(),rt=XU;var ow="silent";function qU(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:KU}}function KU(){Mr(this.event)}var jU=function(r){Dt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Ce),Pu=function(){function r(e,t){this.x=e,this.y=t}return r}(),JU=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Zm=new rt(0,0,0,0),sw=function(r){Dt(e,r);function e(t,i,a,n,o){var s=r.call(this)||this;return s._hovered=new Pu(0,0),s.storage=t,s.painter=i,s.painterRoot=n,s._pointerSize=o,a=a||new jU,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new Qb(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(w(JU,function(i){t.on&&t.on(i,this[i],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var i=t.zrX,a=t.zrY,n=lw(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 Pu(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",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var i=t.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Pu(0,0)},e.prototype.dispatch=function(t,i){var a=this[t];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(t){var i=this.proxy;i.setCursor&&i.setCursor(t)},e.prototype.dispatchToElement=function(t,i,a){t=t||{};var n=t.target;if(!(n&&n.silent)){for(var o="on"+i,s=qU(i,t,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(t,i,a){var n=this.storage.getDisplayList(),o=new Pu(t,i);if(nw(n,o,t,i,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new rt(t-u,i-u,l,l),p=n.length-1;p>=0;p--){var c=n[p];c!==a&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(Zm.copy(c.getBoundingRect()),c.transform&&Zm.applyTransform(c.transform),Zm.intersect(f)&&s.push(c))}if(s.length)for(var h=4,v=Math.PI/12,d=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(n,r,e)}});function QU(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var i=r,a=void 0,n=!1;i;){if(i.ignoreClip&&(n=!0),!n){var o=i.getClipPath();if(o&&!o.contain(e,t))return!1;i.silent&&(a=!0)}var s=i.__hostTarget;i=s||i.parent}return a?ow:!0}return!1}function nw(r,e,t,i,a){for(var n=r.length-1;n>=0;n--){var o=r[n],s=void 0;if(o!==a&&!o.ignore&&(s=QU(o,t,i))&&(!e.topTarget&&(e.topTarget=o),s!==ow)){e.target=o;break}}}function lw(r,e,t){var i=r.painter;return e<0||e>i.getWidth()||t<0||t>i.getHeight()}var uw=sw;var hw=32,Ru=7,fw=256;function $U(r){for(var e=0;r>=hw;)e|=r&1,r>>=1;return r+e}function pw(r,e,t,i){var a=e+1;if(a===t)return 1;if(i(r[a++],r[e])<0){for(;a=0;)a++;return a-e}function tV(r,e,t){for(t--;e>>1,a(n,r[l])<0?s=l:o=l+1;var u=i-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=n}}function Xm(r,e,t,i,a,n){var o=0,s=0,l=1;if(n(r,e[t+a])>0){for(s=i-a;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o>>1);n(r,e[t+f])>0?o=f+1:l=f}return l}function qm(r,e,t,i,a,n){var o=0,s=0,l=1;if(n(r,e[t+a])<0){for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=i-a;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o>>1);n(r,e[t+f])<0?l=f:o=f+1}return l}function eV(r,e){var t=Ru,i=0,a=fw,n=0,o,s,l=0;i=r.length,i<2*fw&&(a=i>>>1);var u=[];n=i<120?5:i<1542?10:i<119151?19:40,o=[],s=[];function f(m,g){o[l]=m,s[l]=g,l+=1}function p(){for(;l>1;){var m=l-2;if(m>=1&&s[m-1]<=s[m]+s[m+1]||m>=2&&s[m-2]<=s[m]+s[m-1])s[m-1]s[m+1])break;h(m)}}function c(){for(;l>1;){var m=l-2;m>0&&s[m-1]=Ru||D>=Ru);if(M)break;C<0&&(C=0),C+=2}if(t=C,t<1&&(t=1),g===1){for(_=0;_=0;_--)r[A+_]=r[C+_];r[T]=u[S];return}for(var D=t;;){var M=0,L=0,I=!1;do if(e(u[S],r[b])<0){if(r[T--]=r[b--],M++,L=0,--g===0){I=!0;break}}else if(r[T--]=u[S--],L++,M=0,--x===1){I=!0;break}while((M|L)=0;_--)r[A+_]=r[C+_];if(g===0){I=!0;break}}if(r[T--]=u[S--],--x===1){I=!0;break}if(L=x-Xm(r[b],u,0,x,x-1,e),L!==0){for(T-=L,S-=L,x-=L,A=T+1,C=S+1,_=0;_=Ru||L>=Ru);if(I)break;D<0&&(D=0),D+=2}if(t=D,t<1&&(t=1),x===1){for(T-=g,b-=g,A=T+1,C=b+1,_=g-1;_>=0;_--)r[A+_]=r[C+_];r[T]=u[S]}else{if(x===0)throw new Error;for(C=T-(x-1),_=0;_s&&(l=s),cw(r,t,t+l,t+n,e),n=l}o.pushRun(t,n),o.mergeRuns(),a-=n,t+=n}while(a!==0);o.forceMergeRuns()}}var Pe=1,Co=2,hn=4;var vw=!1;function Km(){vw||(vw=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function dw(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var rV=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=dw}return r.prototype.traverse=function(e,t){for(var i=0;i0&&(f.__clipPaths=[]),isNaN(f.z)&&(Km(),f.z=0),isNaN(f.z2)&&(Km(),f.z2=0),isNaN(f.zlevel)&&(Km(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var p=e.getDecalElement&&e.getDecalElement();p&&this._updateAndAddDisplayable(p,t,i);var c=e.getTextGuideLine();c&&this._updateAndAddDisplayable(c,t,i);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,t,i)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,i=e.length;t=0&&this._roots.splice(a,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),mw=rV;var gw;gw=bt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Ou=gw;var ac={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)))},elasticOut:function(r){var e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/i)+1)},elasticInOut:function(r){var e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-ac.bounceOut(1-r)},bounceOut:function(r){return r<.36363636363636365?7.5625*r*r:r<.7272727272727273?7.5625*(r-=.5454545454545454)*r+.75:r<.9090909090909091?7.5625*(r-=.8181818181818182)*r+.9375:7.5625*(r-=.9545454545454546)*r+.984375},bounceInOut:function(r){return r<.5?ac.bounceIn(r*2)*.5:ac.bounceOut(r*2-1)*.5+.5}},nc=ac;var oc=Math.pow,dn=Math.sqrt,lc=1e-8,xw=1e-4,yw=dn(3),sc=1/3,oa=ki(),pi=ki(),Hs=ki();function vn(r){return r>-lc&&rlc||r<-lc}function he(r,e,t,i,a){var n=1-a;return n*n*(n*r+3*a*e)+a*a*(a*i+3*n*t)}function jm(r,e,t,i,a){var n=1-a;return 3*(((e-r)*n+2*(t-e)*a)*n+(i-t)*a*a)}function Ao(r,e,t,i,a,n){var o=i+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-a,f=s*s-3*o*l,p=s*l-9*o*u,c=l*l-3*s*u,h=0;if(vn(f)&&vn(p))if(vn(s))n[0]=0;else{var v=-l/s;v>=0&&v<=1&&(n[h++]=v)}else{var d=p*p-4*f*c;if(vn(d)){var m=p/f,v=-s/o+m,g=-m/2;v>=0&&v<=1&&(n[h++]=v),g>=0&&g<=1&&(n[h++]=g)}else if(d>0){var y=dn(d),x=f*s+1.5*o*(-p+y),_=f*s+1.5*o*(-p-y);x<0?x=-oc(-x,sc):x=oc(x,sc),_<0?_=-oc(-_,sc):_=oc(_,sc);var v=(-s-(x+_))/(3*o);v>=0&&v<=1&&(n[h++]=v)}else{var b=(2*f*s-3*o*p)/(2*dn(f*f*f)),S=Math.acos(b)/3,T=dn(f),C=Math.cos(S),v=(-s-2*T*C)/(3*o),g=(-s+T*(C+yw*Math.sin(S)))/(3*o),A=(-s+T*(C-yw*Math.sin(S)))/(3*o);v>=0&&v<=1&&(n[h++]=v),g>=0&&g<=1&&(n[h++]=g),A>=0&&A<=1&&(n[h++]=A)}}return h}function uc(r,e,t,i,a){var n=6*t-12*e+6*r,o=9*e+3*i-3*r-9*t,s=3*e-3*r,l=0;if(vn(o)){if(_w(n)){var u=-s/n;u>=0&&u<=1&&(a[l++]=u)}}else{var f=n*n-4*o*s;if(vn(f))a[0]=-n/(2*o);else if(f>0){var p=dn(f),u=(-n+p)/(2*o),c=(-n-p)/(2*o);u>=0&&u<=1&&(a[l++]=u),c>=0&&c<=1&&(a[l++]=c)}}return l}function ci(r,e,t,i,a,n){var o=(e-r)*a+r,s=(t-e)*a+e,l=(i-t)*a+t,u=(s-o)*a+o,f=(l-s)*a+s,p=(f-u)*a+u;n[0]=r,n[1]=o,n[2]=u,n[3]=p,n[4]=p,n[5]=f,n[6]=l,n[7]=i}function fc(r,e,t,i,a,n,o,s,l,u,f){var p,c=.005,h=1/0,v,d,m,g;oa[0]=l,oa[1]=u;for(var y=0;y<1;y+=.05)pi[0]=he(r,t,a,o,y),pi[1]=he(e,i,n,s,y),m=na(oa,pi),m=0&&m=0&&u<=1&&(a[l++]=u)}}else{var f=o*o-4*n*s;if(vn(f)){var u=-o/(2*n);u>=0&&u<=1&&(a[l++]=u)}else if(f>0){var p=dn(f),u=(-o+p)/(2*n),c=(-o-p)/(2*n);u>=0&&u<=1&&(a[l++]=u),c>=0&&c<=1&&(a[l++]=c)}}return l}function pc(r,e,t){var i=r+t-2*e;return i===0?.5:(r-e)/i}function mn(r,e,t,i,a){var n=(e-r)*i+r,o=(t-e)*i+e,s=(o-n)*i+n;a[0]=r,a[1]=n,a[2]=s,a[3]=s,a[4]=o,a[5]=t}function cc(r,e,t,i,a,n,o,s,l){var u,f=.005,p=1/0;oa[0]=o,oa[1]=s;for(var c=0;c<1;c+=.05){pi[0]=me(r,t,a,c),pi[1]=me(e,i,n,c);var h=na(oa,pi);h=0&&h=1?1:Ao(0,i,n,1,l,s)&&he(0,a,o,1,s[0])}}}var aV=function(){function r(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||qt,this.ondestroy=e.ondestroy||qt,this.onrestart=e.onrestart||qt,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;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},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Z(e)?e:nc[e]||Ws(e)},r}(),Tw=aV;var qs={};ui(qs,{fastLerp:()=>Xs,fastMapToColor:()=>fV,lerp:()=>vc,lift:()=>Zs,lum:()=>Mo,mapToColor:()=>pV,modifyAlpha:()=>xn,modifyHSL:()=>yn,parse:()=>Re,random:()=>cV,stringify:()=>Lr,toHex:()=>uV});var Cw=function(){function r(e){this.value=e}return r}();var nV=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new Cw(e);return this.insertEntry(t),t},r.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++},r.prototype.remove=function(e){var t=e.prev,i=e.next;t?t.next=i:this.head=i,i?i.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}();var oV=function(){function r(e){this._list=new nV,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){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=t:s=new Cw(t),s.key=e,i.insertEntry(s),a[e]=s}return n},r.prototype.get=function(e){var t=this._map[e],i=this._list;if(t!=null)return t!==i.tail&&(i.remove(t),i.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),sa=oV;var Aw={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 Ui(r){return r=Math.round(r),r<0?0:r>255?255:r}function sV(r){return r=Math.round(r),r<0?0:r>360?360:r}function ku(r){return r<0?0:r>1?1:r}function Jm(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Ui(parseFloat(e)/100*255):Ui(parseInt(e,10))}function Do(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?ku(parseFloat(e)/100):ku(parseFloat(e))}function Qm(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function gn(r,e,t){return r+(e-r)*t}function hi(r,e,t,i,a){return r[0]=e,r[1]=t,r[2]=i,r[3]=a,r}function $m(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var Dw=new sa(20),hc=null;function Ys(r,e){hc&&$m(hc,e),hc=Dw.put(r,hc||e.slice())}function Re(r,e){if(r){e=e||[];var t=Dw.get(r);if(t)return $m(e,t);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in Aw)return $m(e,Aw[i]),Ys(r,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)){hi(e,0,0,0,1);return}return hi(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),Ys(r,e),e}else if(a===7||a===9){var n=parseInt(i.slice(1,7),16);if(!(n>=0&&n<=16777215)){hi(e,0,0,0,1);return}return hi(e,(n&16711680)>>16,(n&65280)>>8,n&255,a===9?parseInt(i.slice(7),16)/255:1),Ys(r,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?hi(e,+u[0],+u[1],+u[2],1):hi(e,0,0,0,1);f=Do(u.pop());case"rgb":if(u.length>=3)return hi(e,Jm(u[0]),Jm(u[1]),Jm(u[2]),u.length===3?f:Do(u[3])),Ys(r,e),e;hi(e,0,0,0,1);return;case"hsla":if(u.length!==4){hi(e,0,0,0,1);return}return u[3]=Do(u[3]),tg(u,e),Ys(r,e),e;case"hsl":if(u.length!==3){hi(e,0,0,0,1);return}return tg(u,e),Ys(r,e),e;default:return}}hi(e,0,0,0,1)}}function tg(r,e){var t=(parseFloat(r[0])%360+360)%360/360,i=Do(r[1]),a=Do(r[2]),n=a<=.5?a*(i+1):a+i-a*i,o=a*2-n;return e=e||[],hi(e,Ui(Qm(o,n,t+1/3)*255),Ui(Qm(o,n,t)*255),Ui(Qm(o,n,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function lV(r){if(r){var e=r[0]/255,t=r[1]/255,i=r[2]/255,a=Math.min(e,t,i),n=Math.max(e,t,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,p=((n-t)/6+o/2)/o,c=((n-i)/6+o/2)/o;e===n?l=c-p:t===n?l=1/3+f-c:i===n&&(l=2/3+p-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return r[3]!=null&&h.push(r[3]),h}}function Zs(r,e){var t=Re(r);if(t){for(var i=0;i<3;i++)e<0?t[i]=t[i]*(1-e)|0:t[i]=(255-t[i])*e+t[i]|0,t[i]>255?t[i]=255:t[i]<0&&(t[i]=0);return Lr(t,t.length===4?"rgba":"rgb")}}function uV(r){var e=Re(r);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Xs(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var i=r*(e.length-1),a=Math.floor(i),n=Math.ceil(i),o=e[a],s=e[n],l=i-a;return t[0]=Ui(gn(o[0],s[0],l)),t[1]=Ui(gn(o[1],s[1],l)),t[2]=Ui(gn(o[2],s[2],l)),t[3]=ku(gn(o[3],s[3],l)),t}}var fV=Xs;function vc(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var i=r*(e.length-1),a=Math.floor(i),n=Math.ceil(i),o=Re(e[a]),s=Re(e[n]),l=i-a,u=Lr([Ui(gn(o[0],s[0],l)),Ui(gn(o[1],s[1],l)),Ui(gn(o[2],s[2],l)),ku(gn(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:a,rightIndex:n,value:i}:u}}var pV=vc;function yn(r,e,t,i){var a=Re(r);if(r)return a=lV(a),e!=null&&(a[0]=sV(e)),t!=null&&(a[1]=Do(t)),i!=null&&(a[2]=Do(i)),Lr(tg(a),"rgba")}function xn(r,e){var t=Re(r);if(t&&e!=null)return t[3]=ku(e),Lr(t,"rgba")}function Lr(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function Mo(r,e){var t=Re(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function cV(){return Lr([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var mc=Math.round;function _n(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=Re(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var Mw=1e-4;function la(r){return r-Mw}function dc(r){return mc(r*1e3)/1e3}function gc(r){return mc(r*1e4)/1e4}function Lw(r){return"matrix("+dc(r[0])+","+dc(r[1])+","+dc(r[2])+","+dc(r[3])+","+gc(r[4])+","+gc(r[5])+")"}var Iw={left:"start",right:"end",center:"middle",middle:"middle"};function Ew(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function Pw(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function Rw(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function eg(r){return r&&!!r.image}function hV(r){return r&&!!r.svgElement}function Uu(r){return eg(r)||hV(r)}function yc(r){return r.type==="linear"}function xc(r){return r.type==="radial"}function _c(r){return r&&(r.type==="linear"||r.type==="radial")}function Vu(r){return"url(#"+r+")"}function Sc(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function bc(r){var e=r.x||0,t=r.y||0,i=(r.rotation||0)*mo,a=lt(r.scaleX,1),n=lt(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),i&&l.push("rotate("+i+")"),(a!==1||n!==1)&&l.push("scale("+a+","+n+")"),(o||s)&&l.push("skew("+mc(o*mo)+"deg, "+mc(s*mo)+"deg)"),l.join(" ")}var Ow=function(){return bt.hasGlobalWindow&&Z(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}();var ig=Array.prototype.slice;function za(r,e,t){return(e-r)*t+r}function rg(r,e,t,i){for(var a=e.length,n=0;ni?e:r,n=Math.min(t,i),o=a[n-1]||{color:[0,0,0,0],offset:0},s=n;so;if(s)i.length=o;else for(var l=n;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,i){this._needsSort=!0;var a=this.keyframes,n=a.length,o=!1,s=zw,l=t;if(ue(t)){var u=gV(t);s=u,(u===1&&!vt(t[0])||u===2&&!vt(t[0][0]))&&(o=!0)}else if(vt(t)&&!Ra(t))s=Tc;else if(B(t))if(!isNaN(+t))s=Tc;else{var f=Re(t);f&&(l=f,s=Fu)}else if(Pa(t)){var p=N({},l);p.colorStops=k(t.colorStops,function(h){return{offset:h.offset,color:Re(h.color)}}),yc(t)?s=ag:xc(t)&&(s=ng),l=p}n===0?this.valType=s:(s!==this.valType||s===zw)&&(o=!0),this.discrete=this.discrete||o;var c={time:e,value:l,rawValue:t,percent:0};return i&&(c.easing=i,c.easingFunc=Z(i)?i:nc[i]||Ws(i)),a.push(c),c},r.prototype.prepare=function(e,t){var i=this.keyframes;this._needsSort&&i.sort(function(d,m){return d.time-m.time});for(var a=this.valType,n=i.length,o=i[n-1],s=this.discrete,l=Cc(a),u=kw(a),f=0;f=0&&!(o[f].percent<=t);f--);f=c(f,s-2)}else{for(f=p;ft);f++);f=c(f-1,s-2)}v=o[f+1],h=o[f]}if(h&&v){this._lastFr=f,this._lastFrP=t;var m=v.percent-h.percent,g=m===0?1:c((t-h.percent)/m,1);v.easingFunc&&(g=v.easingFunc(g));var y=i?this._additiveValue:u?Bu:e[l];if((Cc(n)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=g<1?h.rawValue:v.rawValue;else if(Cc(n))n===Dc?rg(y,h[a],v[a],g):vV(y,h[a],v[a],g);else if(kw(n)){var x=h[a],_=v[a],b=n===ag;e[l]={type:b?"linear":"radial",x:za(x.x,_.x,g),y:za(x.y,_.y,g),colorStops:k(x.colorStops,function(T,C){var A=_.colorStops[C];return{offset:za(T.offset,A.offset,g),color:Ac(rg([],T.color,A.color,g))}}),global:_.global},b?(e[l].x2=za(x.x2,_.x2,g),e[l].y2=za(x.y2,_.y2,g)):e[l].r=za(x.r,_.r,g)}else if(u)rg(y,h[a],v[a],g),i||(e[l]=Ac(y));else{var S=za(h[a],v[a],g);i?this._additiveValue=S:e[l]=S}i&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,i=this.propName,a=this._additiveValue;t===Tc?e[i]=e[i]+a:t===Fu?(Re(e[i],Bu),wc(Bu,Bu,a,1),e[i]=Ac(Bu)):t===Dc?wc(e[i],e[i],a,1):t===Uw&&Nw(e[i],e[i],a,1)},r}(),xV=function(){function r(e,t,i,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a){fn("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=i}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,i){return this.whenWithKeys(e,t,ft(t),i)},r.prototype.whenWithKeys=function(e,t,i,a){for(var n=this._tracks,o=0;o0&&l.addKeyframe(0,Lo(u),a),this._trackKeys.push(s)}l.addKeyframe(e,Lo(t[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,i=0;i0)){this._started=1;for(var t=this,i=[],a=this._maxTime||0,n=0;n1){var s=o.pop();n.addKeyframe(s.time,e[a]),n.prepare(this._maxTime,n.getAdditiveTrack())}}}},r}(),Gu=xV;function Io(){return new Date().getTime()}var _V=function(r){Dt(e,r);function e(t){var i=r.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,t=t||{},i.stage=t.stage||{},i}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var i=t.getClip();i&&this.addClip(i)},e.prototype.removeClip=function(t){if(t.animation){var i=t.prev,a=t.next;i?i.next=a:this._head=a,a?a.prev=i:this._tail=i,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var i=t.getClip();i&&this.removeClip(i),t.animation=null},e.prototype.update=function(t){for(var i=Io()-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,t||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function i(){t._running&&(Ou(i),!t._paused&&t.update())}Ou(i)},e.prototype.start=function(){this._running||(this._time=Io(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Io(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Io()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var i=t.next;t.prev=t.next=t.animation=null,t=i}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,i){i=i||{},this.start();var a=new Gu(t,i.loop);return this.addAnimator(a),a},e}(Ce),Vw=_V;var SV=300,og=bt.domSupported,sg=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=k(r,function(a){var n=a.replace("mouse","pointer");return t.hasOwnProperty(n)?n:a});return{mouse:r,touch:e,pointer:i}}(),Bw={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Fw=!1;function fg(r){var e=r.pointerType;return e==="pen"||e==="touch"}function bV(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function lg(r){r&&(r.zrByTouch=!0)}function wV(r,e){return Dr(r.dom,new TV(r,e),!0)}function Hw(r,e){for(var t=e,i=!1;t&&t.nodeType!==9&&!(i=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return i}var TV=function(){function r(e,t){this.stopPropagation=qt,this.stopImmediatePropagation=qt,this.preventDefault=qt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),Vi={mousedown:function(r){r=Dr(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Dr(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Dr(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Dr(this.dom,r);var e=r.toElement||r.relatedTarget;Hw(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Fw=!0,r=Dr(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Fw||(r=Dr(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Dr(this.dom,r),lg(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Vi.mousemove.call(this,r),Vi.mousedown.call(this,r)},touchmove:function(r){r=Dr(this.dom,r),lg(r),this.handler.processGesture(r,"change"),Vi.mousemove.call(this,r)},touchend:function(r){r=Dr(this.dom,r),lg(r),this.handler.processGesture(r,"end"),Vi.mouseup.call(this,r),+new Date-+this.__lastTouchMomentqw||r<-qw}var Ro=[],Ks=[],cg=xe(),hg=Math.abs,MV=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return Po(this.rotation)||Po(this.x)||Po(this.y)||Po(this.scaleX-1)||Po(this.scaleY-1)||Po(this.skewX)||Po(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),i=this.transform;if(!(t||e)){i&&(Xw(i),this.invTransform=null);return}i=i||xe(),t?this.getLocalTransform(i):Xw(i),e&&(t?fr(i,e,i):Gs(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Ro);var i=Ro[0]<0?-1:1,a=Ro[1]<0?-1:1,n=((Ro[0]-i)*t+i)/Ro[0]||0,o=((Ro[1]-a)*t+a)/Ro[1]||0;e[0]*=n,e[1]*=n,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||xe(),jr(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=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),t=Math.sqrt(t),this.skewX=n,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=i,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(fr(Ks,e.invTransform,t),t=Ks);var i=this.originX,a=this.originY;(i||a)&&(cg[4]=i,cg[5]=a,fr(Ks,t,cg),Ks[4]-=i,Ks[5]-=a,t=Ks),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var i=[e,t],a=this.invTransform;return a&&fe(i,i,a),i},r.prototype.transformCoordToGlobal=function(e,t){var i=[e,t],a=this.transform;return a&&fe(i,i,a),i},r.prototype.getLineScale=function(){var e=this.transform;return e&&hg(e[0]-1)>1e-10&&hg(e[3]-1)>1e-10?Math.sqrt(hg(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){vg(this,e)},r.getLocalTransform=function(e,t){t=t||[];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,p=e.y,c=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(i||a||s||l){var v=i+s,d=a+l;t[4]=-v*n-c*d*o,t[5]=-d*o-h*v*n}else t[4]=t[5]=0;return t[0]=n,t[3]=o,t[1]=h*n,t[2]=c*o,u&&pr(t,t,u),t[4]+=i+f,t[5]+=a+p,t},r.initDefaultProps=function(){var e=r.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}(),r}(),Jr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function vg(r,e){for(var t=0;t=0?parseFloat(r)/100*e:parseFloat(r):r}function No(r,e,t){var i=e.position||"inside",a=e.distance!=null?e.distance:5,n=t.height,o=t.width,s=n/2,l=t.x,u=t.y,f="left",p="top";if(i instanceof Array)l+=qe(i[0],t.width),u+=qe(i[1],t.height),f=null,p=null;else switch(i){case"left":l-=a,u+=s,f="right",p="middle";break;case"right":l+=a+o,u+=s,p="middle";break;case"top":l+=o/2,u-=a,f="center",p="bottom";break;case"bottom":l+=o/2,u+=n+a,f="center";break;case"inside":l+=o/2,u+=s,f="center",p="middle";break;case"insideLeft":l+=a,u+=s,p="middle";break;case"insideRight":l+=o-a,u+=s,f="right",p="middle";break;case"insideTop":l+=o/2,u+=a,f="center";break;case"insideBottom":l+=o/2,u+=n-a,f="center",p="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,p="bottom";break;case"insideBottomRight":l+=o-a,u+=n-a,f="right",p="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=p,r}var dg="__zr_normal__",mg=Jr.concat(["ignore"]),LV=Me(Jr,function(r,e){return r[e]=!0,r},{ignore:!1}),Qs={},IV=new rt(0,0,0,0),xg=function(){function r(e){this.id=Tu(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,i){switch(this.draggable){case"horizontal":t=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]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var i=this.textConfig,a=i.local,n=t.innerTransformable,o=void 0,s=void 0,l=!1;n.parent=a?this:null;var u=!1;if(n.copyTransform(t),i.position!=null){var f=IV;i.layoutRect?f.copy(i.layoutRect):f.copy(this.getBoundingRect()),a||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Qs,i,f):No(Qs,i,f),n.x=Qs.x,n.y=Qs.y,o=Qs.align,s=Qs.verticalAlign;var p=i.origin;if(p&&i.rotation!=null){var c=void 0,h=void 0;p==="center"?(c=f.width*.5,h=f.height*.5):(c=qe(p[0],f.width),h=qe(p[1],f.height)),u=!0,n.originX=-n.x+c+(a?0:f.x),n.originY=-n.y+h+(a?0:f.y)}}i.rotation!=null&&(n.rotation=i.rotation);var v=i.offset;v&&(n.x+=v[0],n.y+=v[1],u||(n.originX=-v[0],n.originY=-v[1]));var d=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,y=void 0,x=void 0;d&&this.canBeInsideText()?(g=i.insideFill,y=i.insideStroke,(g==null||g==="auto")&&(g=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(g),x=!0)):(g=i.outsideFill,y=i.outsideStroke,(g==null||g==="auto")&&(g=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(g),x=!0)),g=g||"#000",(g!==m.fill||y!==m.stroke||x!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=g,m.stroke=y,m.autoStroke=x,m.align=o,m.verticalAlign=s,t.setDefaultTextStyle(m)),t.__dirty|=Pe,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Yu:Wu},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),i=typeof t=="string"&&Re(t);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,Lr(i,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},N(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(K(e))for(var i=e,a=ft(i),n=0;n0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(dg,!1,e)},r.prototype.useState=function(e,t,i,a){var n=e===dg,o=this.hasState();if(!(!o&&n)){var s=this.currentStates,l=this.stateTransition;if(!(it(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!n&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!n){fn("State "+e+" not exists.");return}n||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||a);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!i&&!this.__inHover&&l&&l.duration>0,l);var p=this._textContent,c=this._textGuide;return p&&p.useState(e,t,i,f),c&&c.useState(e,t,i,f),n?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Pe),u}}},r.prototype.useStates=function(e,t,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;l0,v);var d=this._textContent,m=this._textGuide;d&&d.useStates(e,t,c),m&&m.useStates(e,t,c),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Pe)}},r.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var i=this.currentStates.slice();i.splice(t,1),this.useStates(i)}},r.prototype.replaceState=function(e,t,i){var a=this.currentStates.slice(),n=it(a,e),o=it(a,t)>=0;n>=0?o?a.splice(n,1):a[n]=t:i&&!o&&a.push(t),this.useStates(a)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},i,a=0;a=0&&n.splice(o,1)}),this.animators.push(e),i&&i.animation.addAnimator(e),i&&i.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var i=this.animators,a=i.length,n=[],o=0;o0&&t.during&&n[0].during(function(v,d){t.during(d)});for(var c=0;c0||a.force&&!o.length){var C=void 0,A=void 0,D=void 0;if(s){A={},c&&(C={});for(var _=0;_=0&&(a.splice(n,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,i){var a=it(this._children,t);return a>=0&&this.replaceAt(i,a),this},e.prototype.replaceAt=function(t,i){var a=this._children,n=a[i];if(t&&t!==this&&t.parent!==this&&t!==n){a[i]=t,n.parent=null;var o=this.__zr;o&&n.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var i=this.__zr;i&&i!==t.__zr&&t.addSelfToZr(i),i&&i.refresh()},e.prototype.remove=function(t){var i=this.__zr,a=this._children,n=it(a,t);return n<0?this:(a.splice(n,1),t.parent=null,i&&t.removeSelfFromZr(i),i&&i.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,i=this.__zr,a=0;a0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},r.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},r.prototype.clearAnimation=function(){this.animation.clear()},r.prototype.getWidth=function(){return this.painter.getWidth()},r.prototype.getHeight=function(){return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},r.prototype.on=function(e,t,i){return this.handler.on(e,t,i),this},r.prototype.off=function(e,t){this.handler.off(e,t)},r.prototype.trigger=function(e,t){this.handler.trigger(e,t)},r.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t0){if(r<=a)return o;if(r>=n)return s}else{if(r>=a)return o;if(r<=n)return s}else{if(r===a)return o;if(r===n)return s}return(r-a)/l*u+o}function H(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return B(r)?GV(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function Zt(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),tT),r=(+r).toFixed(e),t?r:+r}function _e(r){return r.sort(function(e,t){return e-t}),r}function Ke(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return bg(r)}function bg(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),i=t>0?+e.slice(t+1):0,a=t>0?t:e.length,n=e.indexOf("."),o=n<0?0:a-1-n;return Math.max(0,o-i)}function $s(r,e){var t=Math.log,i=Math.LN10,a=Math.floor(t(r[1]-r[0])/i),n=Math.round(t(Math.abs(e[1]-e[0]))/i),o=Math.min(Math.max(-a+n,0),20);return isFinite(o)?o:20}function eT(r,e,t){if(!r[e])return 0;var i=wg(r,t);return i[e]||0}function wg(r,e){var t=Me(r,function(h,v){return h+(isNaN(v)?0:v)},0);if(t===0)return[];for(var i=Math.pow(10,e),a=k(r,function(h){return(isNaN(h)?0:h)/t*i*100}),n=i*100,o=k(a,function(h){return Math.floor(h)}),s=Me(o,function(h,v){return h+v},0),l=k(a,function(h,v){return h-o[v]});su&&(u=l[p],f=p);++o[f],l[f]=0,++s}return k(o,function(h){return h/i})}function rT(r,e){var t=Math.max(Ke(r),Ke(e)),i=r+e;return t>tT?i:Zt(i,t)}var Zu=9007199254740991;function Xu(r){var e=Math.PI*2;return(r%e+e)%e}function ko(r){return r>-$w&&r<$w}var HV=/^(?:(\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 Oe(r){if(r instanceof Date)return r;if(B(r)){var e=HV.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function Rc(r){return Math.pow(10,tl(r))}function tl(r){if(r===0)return 0;var e=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,e)>=10&&e++,e}function el(r,e){var t=tl(r),i=Math.pow(10,t),a=r/i,n;return 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,r=n*i,t>=-20?+r.toFixed(t<0?-t:0):r}function rl(r,e){var t=(r.length-1)*e+1,i=Math.floor(t),a=+r[i-1],n=t-i;return n?a+n*(r[i]-a):a}function qu(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,i=0;i=0||n&&it(n,l)<0)){var u=i.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var sB=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],lB=Nr(sB),_T=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return lB(this,e,t)},r}();var Mg=new sa(50);function bT(r){if(typeof r=="string"){var e=Mg.get(r);return e&&e.image}else return r}function Qu(r,e,t,i,a){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var n=Mg.get(r),o={hostEl:t,cb:i,cbPayload:a};return n?(e=n.image,!ol(e)&&n.pending.push(o)):(e=We.loadImage(r,ST,ST),e.__zrImageSrc=r,Mg.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function ST(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=Er(t,e);return u>s&&(t="",u=0),s=r-u,a.ellipsis=t,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=r,a}function CT(r,e){var t=e.containerWidth,i=e.font,a=e.contentWidth;if(!t)return"";var n=Er(r,i);if(n<=t)return r;for(var o=0;;o++){if(n<=a||o>=e.maxIterations){r+=e.ellipsis;break}var s=o===0?fB(r,a,e.ascCharWidth,e.cnCharWidth):n>0?Math.floor(r.length*a/n):0;r=r.substr(0,s),n=Er(r,i)}return r===""&&(r=e.placeholder),r}function fB(r,e,t,i){for(var a=0,n=0,o=r.length;nh&&u){var v=Math.floor(h/s);p=p.slice(0,v)}if(r&&n&&f!=null)for(var d=TT(f,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m=0;ms&&Ig(t,r.substring(s,u),e,o),Ig(t,l[2],e,o,l[1]),s=Lg.lastIndex}sa){b>0?(y.tokens=y.tokens.slice(0,b),m(y,_,x),t.lines=t.lines.slice(0,g+1)):t.lines=t.lines.slice(0,g);break t}var L=T.width,I=L==null||L==="auto";if(typeof L=="string"&&L.charAt(L.length-1)==="%")S.percentWidth=L,f.push(S),S.contentWidth=Er(S.text,D);else{if(I){var P=T.backgroundColor,R=P&&P.image;R&&(R=bT(R),ol(R)&&(S.width=Math.max(S.width,R.width*M/R.height)))}var O=v&&i!=null?i-_:null;O!=null&&O0&&v+i.accumWidth>i.width&&(f=e.split(` -`),u=!0),i.accumWidth=v}else{var d=MT(e,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=d.accumWidth+h,p=d.linesWidths,f=d.lines}}else f=e.split(` -`);for(var m=0;m=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var vB=Me(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function dB(r){return hB(r)?!!vB[r]:!0}function MT(r,e,t,i,a){for(var n=[],o=[],s="",l="",u=0,f=0,p=0;pt:a+f+h>t){f?(s||l)&&(v?(s||(s=l,l="",u=0,f=u),n.push(s),o.push(f-u),l+=c,u+=h,s="",f=u):(l&&(s+=l,l="",u=0),n.push(s),o.push(f),s=c,f=h)):v?(n.push(l),o.push(u),l=c,u=h):(n.push(c),o.push(h));continue}f+=h,v?(l+=c,u+=h):(l&&(s+=l,l="",u=0),s+=c)}return!n.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(n.push(s),o.push(f)),n.length===1&&(f+=a),{accumWidth:f,lines:n,linesWidths:o}}var Rg="__zr_style_"+Math.round(Math.random()*10),fa={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Bo={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};fa[Rg]=!0;var LT=["z","z2","invisible"],mB=["invisible"],gB=function(r){Dt(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var i=ft(t),a=0;a1e-4){s[0]=r-t,s[1]=e-i,l[0]=r+t,l[1]=e+i;return}if(Vc[0]=Ng(a)*t+r,Vc[1]=Og(a)*i+e,Bc[0]=Ng(n)*t+r,Bc[1]=Og(n)*i+e,u(s,Vc,Bc),f(l,Vc,Bc),a=a%Fo,a<0&&(a=a+Fo),n=n%Fo,n<0&&(n=n+Fo),a>n&&!o?n+=Fo:aa&&(Fc[0]=Ng(h)*t+r,Fc[1]=Og(h)*i+e,u(s,Fc,s),f(l,Fc,l))}var te={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ho=[],Wo=[],pa=[],Tn=[],ca=[],ha=[],kg=Math.min,Ug=Math.max,Yo=Math.cos,Zo=Math.sin,ka=Math.abs,Fg=Math.PI,Cn=Fg*2,Vg=typeof Float32Array<"u",$u=[];function Bg(r){var e=Math.round(r/Fg*1e8)/1e8;return e%2*Fg}function Gg(r,e){var t=Bg(r[0]);t<0&&(t+=Cn);var i=t-r[0],a=r[1];a+=i,!e&&a-t>=Cn?a=t+Cn:e&&t-a>=Cn?a=t-Cn:!e&&t>a?a=t+(Cn-Bg(t-a)):e&&t0&&(this._ux=ka(i/Eo/e)||0,this._uy=ka(i/Eo/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(te.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var i=ka(e-this._xi),a=ka(t-this._yi),n=i>this._ux||a>this._uy;if(this.addData(te.L,e,t),this._ctx&&n&&this._ctx.lineTo(e,t),n)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=i*i+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,i,a,n,o){return this._drawPendingPt(),this.addData(te.C,e,t,i,a,n,o),this._ctx&&this._ctx.bezierCurveTo(e,t,i,a,n,o),this._xi=n,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,i,a){return this._drawPendingPt(),this.addData(te.Q,e,t,i,a),this._ctx&&this._ctx.quadraticCurveTo(e,t,i,a),this._xi=i,this._yi=a,this},r.prototype.arc=function(e,t,i,a,n,o){this._drawPendingPt(),$u[0]=a,$u[1]=n,Gg($u,o),a=$u[0],n=$u[1];var s=n-a;return this.addData(te.A,e,t,i,i,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,i,a,n,o),this._xi=Yo(n)*i+e,this._yi=Zo(n)*i+t,this},r.prototype.arcTo=function(e,t,i,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,i,a,n),this},r.prototype.rect=function(e,t,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,i,a),this.addData(te.R,e,t,i,a),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(te.Z);var e=this._ctx,t=this._x0,i=this._y0;return e&&e.closePath(),this._xi=t,this._yi=i,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&Vg&&(this.data=new Float32Array(t));for(var i=0;if.length&&(this._expandData(),f=this.data);for(var p=0;p0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){pa[0]=pa[1]=ca[0]=ca[1]=Number.MAX_VALUE,Tn[0]=Tn[1]=ha[0]=ha[1]=-Number.MAX_VALUE;var e=this.data,t=0,i=0,a=0,n=0,o;for(o=0;oi||ka(x)>a||c===t-1)&&(d=Math.sqrt(y*y+x*x),n=m,o=g);break}case te.C:{var _=e[c++],b=e[c++],m=e[c++],g=e[c++],S=e[c++],T=e[c++];d=Sw(n,o,_,b,m,g,S,T,10),n=S,o=T;break}case te.Q:{var _=e[c++],b=e[c++],m=e[c++],g=e[c++];d=ww(n,o,_,b,m,g,10),n=m,o=g;break}case te.A:var C=e[c++],A=e[c++],D=e[c++],M=e[c++],L=e[c++],I=e[c++],P=I+L;c+=1;var R=!e[c++];v&&(s=Yo(L)*D+C,l=Zo(L)*M+A),d=Ug(D,M)*kg(Cn,Math.abs(I)),n=Yo(P)*D+C,o=Zo(P)*M+A;break;case te.R:{s=n=e[c++],l=o=e[c++];var O=e[c++],V=e[c++];d=O*2+V*2;break}case te.Z:{var y=s-n,x=l-o;d=Math.sqrt(y*y+x*x),n=s,o=l;break}}d>=0&&(u[p++]=d,f+=d)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var i=this.data,a=this._ux,n=this._uy,o=this._len,s,l,u,f,p,c,h=t<1,v,d,m=0,g=0,y,x=0,_,b;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,d=this._pathLen,y=t*d,!y)))t:for(var S=0;S0&&(e.lineTo(_,b),x=0),T){case te.M:s=u=i[S++],l=f=i[S++],e.moveTo(u,f);break;case te.L:{p=i[S++],c=i[S++];var A=ka(p-u),D=ka(c-f);if(A>a||D>n){if(h){var M=v[g++];if(m+M>y){var L=(y-m)/M;e.lineTo(u*(1-L)+p*L,f*(1-L)+c*L);break t}m+=M}e.lineTo(p,c),u=p,f=c,x=0}else{var I=A*A+D*D;I>x&&(_=p,b=c,x=I)}break}case te.C:{var P=i[S++],R=i[S++],O=i[S++],V=i[S++],U=i[S++],F=i[S++];if(h){var M=v[g++];if(m+M>y){var L=(y-m)/M;ci(u,P,O,U,L,Ho),ci(f,R,V,F,L,Wo),e.bezierCurveTo(Ho[1],Wo[1],Ho[2],Wo[2],Ho[3],Wo[3]);break t}m+=M}e.bezierCurveTo(P,R,O,V,U,F),u=U,f=F;break}case te.Q:{var P=i[S++],R=i[S++],O=i[S++],V=i[S++];if(h){var M=v[g++];if(m+M>y){var L=(y-m)/M;mn(u,P,O,L,Ho),mn(f,R,V,L,Wo),e.quadraticCurveTo(Ho[1],Wo[1],Ho[2],Wo[2]);break t}m+=M}e.quadraticCurveTo(P,R,O,V),u=O,f=V;break}case te.A:var q=i[S++],$=i[S++],st=i[S++],ht=i[S++],ct=i[S++],It=i[S++],Vt=i[S++],Pt=!i[S++],xt=st>ht?st:ht,Rt=ka(st-ht)>.001,Ct=ct+It,ut=!1;if(h){var M=v[g++];m+M>y&&(Ct=ct+It*(y-m)/M,ut=!0),m+=M}if(Rt&&e.ellipse?e.ellipse(q,$,st,ht,Vt,ct,Ct,Pt):e.arc(q,$,xt,ct,Ct,Pt),ut)break t;C&&(s=Yo(ct)*st+q,l=Zo(ct)*ht+$),u=Yo(Ct)*st+q,f=Zo(Ct)*ht+$;break;case te.R:s=u=i[S],l=f=i[S+1],p=i[S++],c=i[S++];var At=i[S++],le=i[S++];if(h){var M=v[g++];if(m+M>y){var Ft=y-m;e.moveTo(p,c),e.lineTo(p+kg(Ft,At),c),Ft-=At,Ft>0&&e.lineTo(p+At,c+kg(Ft,le)),Ft-=le,Ft>0&&e.lineTo(p+Ug(At-Ft,0),c+le),Ft-=At,Ft>0&&e.lineTo(p,c+Ug(le-Ft,0));break t}m+=M}e.rect(p,c,At,le);break;case te.Z:if(h){var M=v[g++];if(m+M>y){var L=(y-m)/M;e.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break t}m+=M}e.closePath(),u=s,f=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.CMD=te,r.initDefaultProps=function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),r}(),Be=xB;function va(r,e,t,i,a,n,o){if(a===0)return!1;var s=a,l=0,u=r;if(o>e+s&&o>i+s||or+s&&n>t+s||ne+p&&f>i+p&&f>n+p&&f>s+p||fr+p&&u>t+p&&u>a+p&&u>o+p||ue+u&&l>i+u&&l>n+u||lr+u&&s>t+u&&s>a+u||st||f+ua&&(a+=tf);var c=Math.atan2(l,s);return c<0&&(c+=tf),c>=i&&c<=a||c+tf>=i&&c+tf<=a}function di(r,e,t,i,a,n){if(n>e&&n>i||na?s:0}var An=Be.CMD,Xo=Math.PI*2,bB=1e-4;function wB(r,e){return Math.abs(r-e)e&&u>i&&u>n&&u>s||u1&&TB(),h=he(e,i,n,s,mi[0]),c>1&&(v=he(e,i,n,s,mi[1]))),c===2?me&&s>i&&s>n||s=0&&u<=1){for(var f=0,p=me(e,i,n,u),c=0;ct||s<-t)return 0;var l=Math.sqrt(t*t-s*s);vr[0]=-l,vr[1]=l;var u=Math.abs(i-a);if(u<1e-4)return 0;if(u>=Xo-1e-4){i=0,a=Xo;var f=n?1:-1;return o>=vr[0]+r&&o<=vr[1]+r?f:0}if(i>a){var p=i;i=a,a=p}i<0&&(i+=Xo,a+=Xo);for(var c=0,h=0;h<2;h++){var v=vr[h];if(v+r>o){var d=Math.atan2(s,v),f=n?1:-1;d<0&&(d=Xo+d),(d>=i&&d<=a||d+Xo>=i&&d+Xo<=a)&&(d>Math.PI/2&&d1&&(t||(s+=di(l,u,f,p,i,a))),m&&(l=n[v],u=n[v+1],f=l,p=u),d){case An.M:f=n[v++],p=n[v++],l=f,u=p;break;case An.L:if(t){if(va(l,u,n[v],n[v+1],e,i,a))return!0}else s+=di(l,u,n[v],n[v+1],i,a)||0;l=n[v++],u=n[v++];break;case An.C:if(t){if(kT(l,u,n[v++],n[v++],n[v++],n[v++],n[v],n[v+1],e,i,a))return!0}else s+=CB(l,u,n[v++],n[v++],n[v++],n[v++],n[v],n[v+1],i,a)||0;l=n[v++],u=n[v++];break;case An.Q:if(t){if(Gc(l,u,n[v++],n[v++],n[v],n[v+1],e,i,a))return!0}else s+=AB(l,u,n[v++],n[v++],n[v],n[v+1],i,a)||0;l=n[v++],u=n[v++];break;case An.A:var g=n[v++],y=n[v++],x=n[v++],_=n[v++],b=n[v++],S=n[v++];v+=1;var T=!!(1-n[v++]);c=Math.cos(b)*x+g,h=Math.sin(b)*_+y,m?(f=c,p=h):s+=di(l,u,c,h,i,a);var C=(i-g)*_/x+g;if(t){if(BT(g,y,_,b,b+S,T,e,C,a))return!0}else s+=DB(g,y,_,b,b+S,T,C,a);l=Math.cos(b+S)*x+g,u=Math.sin(b+S)*_+y;break;case An.R:f=l=n[v++],p=u=n[v++];var A=n[v++],D=n[v++];if(c=f+A,h=p+D,t){if(va(f,p,c,p,e,i,a)||va(c,p,c,h,e,i,a)||va(c,h,f,h,e,i,a)||va(f,h,f,p,e,i,a))return!0}else s+=di(c,p,c,h,i,a),s+=di(f,h,f,p,i,a);break;case An.Z:if(t){if(va(l,u,f,p,e,i,a))return!0}else s+=di(l,u,f,p,i,a);l=f,u=p;break}}return!t&&!wB(u,p)&&(s+=di(l,u,f,p,i,a)||0),s!==0}function GT(r,e,t){return FT(r,0,!1,e,t)}function HT(r,e,t,i){return FT(r,e,!0,t,i)}var sl=X({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},fa),LB={style:X({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Bo.style)},Hg=Jr.concat(["invisible","culling","z","z2","zlevel","parent"]),IB=function(r){Dt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.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){t.buildPath(l,t.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.5?Wu:i>.2?Zw:Yu}else if(t)return Yu}return Wu},e.prototype.getInsideTextStroke=function(t){var i=this.style.fill;if(B(i)){var a=this.__zr,n=!!(a&&a.isDarkMode()),o=Mo(t,0)0))},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,i=this.style,a=!t;if(a){var n=!1;this.path||(n=!0,this.createPathProxy());var o=this.path;(n||this.__dirty&hn)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||a){s.copy(t);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 t},e.prototype.contain=function(t,i){var a=this.transformCoordToLocal(t,i),n=this.getBoundingRect(),o=this.style;if(t=a[0],i=a[1],n.contain(t,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)),HT(s,l/u,t,i)))return!0}if(this.hasFill())return GT(s,t,i)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=hn,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,i){t==="shape"?this.setShape(i):r.prototype.attrKV.call(this,t,i)},e.prototype.setShape=function(t,i){var a=this.shape;return a||(a=this.shape={}),typeof t=="string"?a[t]=i:N(a,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&hn)},e.prototype.createStyle=function(t){return Oa(sl,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;t.shape&&!i.shape&&(i.shape=N({},this.shape))},e.prototype._applyStateObj=function(t,i,a,n,o,s){r.prototype._applyStateObj.call(this,t,i,a,n,o,s);var l=!(i&&n),u;if(i&&i.shape?o?n?u=i.shape:(u=N({},a.shape),N(u,i.shape)):(u=N({},n?this.shape:a.shape),N(u,i.shape)):l&&(u=a.shape),u)if(o){this.shape=N({},this.shape);for(var f={},p=ft(u),c=0;c0},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.createStyle=function(t){return Oa(EB,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var i=t.text;i!=null?i+="":i="";var a=ua(i,t.font,t.textAlign,t.textBaseline);if(a.x+=t.x||0,a.y+=t.y||0,this.hasStroke()){var n=t.lineWidth;a.x-=n/2,a.y-=n/2,a.width+=n,a.height+=n}this._rect=a}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(ge);WT.prototype.type="tspan";var Ua=WT;var PB=X({x:0,y:0},fa),RB={style:X({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Bo.style)};function OB(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var YT=function(r){Dt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Oa(PB,t)},e.prototype._getSize=function(t){var i=this.style,a=i[t];if(a!=null)return a;var n=OB(i.image)?i.image:this.__image;if(!n)return 0;var o=t==="width"?"height":"width",s=i[o];return s==null?n[t]:n[t]/n[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return RB},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new rt(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(ge);YT.prototype.type="image";var Kt=YT;function ZT(r,e){var t=e.x,i=e.y,a=e.width,n=e.height,o=e.r,s,l,u,f;a<0&&(t=t+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 p;s+l>a&&(p=s+l,s*=a/p,l*=a/p),u+f>a&&(p=u+f,u*=a/p,f*=a/p),l+u>n&&(p=l+u,l*=n/p,u*=n/p),s+f>n&&(p=s+f,s*=n/p,f*=n/p),r.moveTo(t+s,i),r.lineTo(t+a-l,i),l!==0&&r.arc(t+a-l,i+l,l,-Math.PI/2,0),r.lineTo(t+a,i+n-u),u!==0&&r.arc(t+a-u,i+n-u,u,0,Math.PI/2),r.lineTo(t+f,i+n),f!==0&&r.arc(t+f,i+n-f,f,Math.PI/2,Math.PI),r.lineTo(t,i+s),s!==0&&r.arc(t+s,i+s,s,Math.PI,Math.PI*1.5)}var ll=Math.round;function Hc(r,e,t){if(e){var i=e.x1,a=e.x2,n=e.y1,o=e.y2;r.x1=i,r.x2=a,r.y1=n,r.y2=o;var s=t&&t.lineWidth;return s&&(ll(i*2)===ll(a*2)&&(r.x1=r.x2=Dn(i,s,!0)),ll(n*2)===ll(o*2)&&(r.y1=r.y2=Dn(n,s,!0))),r}}function Wc(r,e,t){if(e){var i=e.x,a=e.y,n=e.width,o=e.height;r.x=i,r.y=a,r.width=n,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=Dn(i,s,!0),r.y=Dn(a,s,!0),r.width=Math.max(Dn(i+n,s,!1)-r.x,n===0?0:1),r.height=Math.max(Dn(a+o,s,!1)-r.y,o===0?0:1)),r}}function Dn(r,e,t){if(!e)return r;var i=ll(r*2);return(i+ll(e))%2===0?i/2:(i+(t?1:-1))/2}var kB=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}();var UB={},XT=function(r){Dt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new kB},e.prototype.buildPath=function(t,i){var a,n,o,s;if(this.subPixelOptimize){var l=Wc(UB,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?ZT(t,i):t.rect(a,n,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(at);XT.prototype.type="rect";var pt=XT;var qT={fill:"#000"},KT=2,VB={style:X({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},Bo.style)},iC=function(r){Dt(e,r);function e(t){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=qT,i.attr(t),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,L=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),I=o.calculatedLineHeight,P=0;P=0&&(P=S[I],P.align==="right");)this._placeToken(P,t,C,g,L,"right",x),A-=P.width,L-=P.width,I--;for(M+=(n-(M-m)-(y-L)-A)/2;D<=I;)P=S[D],this._placeToken(P,t,C,g,M+P.width/2,"center",x),M+=P.width,D++;g+=C}},e.prototype._placeToken=function(t,i,a,n,o,s,l){var u=i.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,p=n+a/2;f==="top"?p=n+t.height/2:f==="bottom"&&(p=n+a-t.height/2);var c=!t.isLineHolder&&Wg(u);c&&this._renderBackground(u,i,s==="right"?o-t.width:s==="center"?o-t.width/2:o,p-t.height/2,t.width,t.height);var h=!!u.backgroundColor,v=t.textPadding;v&&(o=eC(o,s,v),p-=t.height/2-v[0]-t.innerHeight/2);var d=this._getOrCreateChild(Ua),m=d.createStyle();d.useStyle(m);var g=this._defaultStyle,y=!1,x=0,_=tC("fill"in u?u.fill:"fill"in i?i.fill:(y=!0,g.fill)),b=$T("stroke"in u?u.stroke:"stroke"in i?i.stroke:!h&&!l&&(!g.autoStroke||y)?(x=KT,g.stroke):null),S=u.textShadowBlur>0||i.textShadowBlur>0;m.text=t.text,m.x=o,m.y=p,S&&(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=t.font||Xr,m.opacity=Le(u.opacity,i.opacity,1),JT(m,u),b&&(m.lineWidth=Le(u.lineWidth,i.lineWidth,x),m.lineDash=lt(u.lineDash,i.lineDash),m.lineDashOffset=i.lineDashOffset||0,m.stroke=b),_&&(m.fill=_);var T=t.contentWidth,C=t.contentHeight;d.setBoundingRect(new rt(js(m.x,T,m.textAlign),Oo(m.y,C,m.textBaseline),T,C))},e.prototype._renderBackground=function(t,i,a,n,o,s){var l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,p=l&&l.image,c=l&&!p,h=t.borderRadius,v=this,d,m;if(c||t.lineHeight||u&&f){d=this._getOrCreateChild(pt),d.useStyle(d.createStyle()),d.style.fill=null;var g=d.shape;g.x=a,g.y=n,g.width=o,g.height=s,g.r=h,d.dirtyShape()}if(c){var y=d.style;y.fill=l||null,y.fillOpacity=lt(t.fillOpacity,1)}else if(p){m=this._getOrCreateChild(Kt),m.onload=function(){v.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=d.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=lt(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var _=(d||m).style;_.shadowBlur=t.shadowBlur||0,_.shadowColor=t.shadowColor||"transparent",_.shadowOffsetX=t.shadowOffsetX||0,_.shadowOffsetY=t.shadowOffsetY||0,_.opacity=Le(t.opacity,i.opacity,1)},e.makeFont=function(t){var i="";return Zg(t)&&(i=[t.fontStyle,t.fontWeight,Yg(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),i&&Ie(i)||t.textFont||t.font},e}(ge),BB={left:!0,right:1,center:1},FB={top:1,bottom:1,middle:1},jT=["fontStyle","fontWeight","fontSize","fontFamily"];function Yg(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Kp+"px":r+"px"}function JT(r,e){for(var t=0;t=0,n=!1;if(r instanceof at){var o=cC(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(ul(s)||ul(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(n=!0,i=N({},i),u=N({},u),u.fill=s):!ul(u.fill)&&ul(s)?(n=!0,i=N({},i),u=N({},u),u.fill=sC(s)):!ul(u.stroke)&&ul(l)&&(n||(i=N({},i),u=N({},u)),u.stroke=sC(l)),i.style=u}}if(i&&i.z2==null){n||(i=N({},i));var f=r.z2EmphasisLift;i.z2=r.z2+(f??Va)}return i}function qB(r,e,t){if(t&&t.z2==null){t=N({},t);var i=r.z2SelectLift;t.z2=r.z2+(i??HB)}return t}function KB(r,e,t){var i=it(r.currentStates,e)>=0,a=r.style.opacity,n=i?null:ZB(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=N({},t),o=N({opacity:i?a:n.opacity*.1},o),t.style=o),t}function Xg(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return XB(this,r,e,t);if(r==="blur")return KB(this,r,t);if(r==="select")return qB(this,r,t)}return t}function Fi(r){r.stateProxy=Xg;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=Xg),t&&(t.stateProxy=Xg)}function uC(r,e){!mC(r,e)&&!r.__highByOuter&&Ba(r,hC)}function fC(r,e){!mC(r,e)&&!r.__highByOuter&&Ba(r,vC)}function rr(r,e){r.__highByOuter|=1<<(e||0),Ba(r,hC)}function ir(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&Ba(r,vC)}function Xc(r){Ba(r,Jg)}function of(r){Ba(r,dC)}function Qg(r){Ba(r,WB)}function $g(r){Ba(r,YB)}function mC(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function ty(r){var e=r.getModel(),t=[],i=[];e.eachComponent(function(a,n){var o=Kg(n),s=a==="series",l=s?r.getViewOfSeriesModel(n):r.getViewOfComponentModel(n);!s&&i.push(l),o.isBlured&&(l.group.traverse(function(u){dC(u)}),s&&t.push(n)),o.isBlured=!1}),w(i,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(t,!1,e)})}function qg(r,e,t,i){var a=i.getModel();t=t||"coordinateSystem";function n(u,f){for(var p=0;p0){var l={dataIndex:s,seriesIndex:t.seriesIndex};o!=null&&(l.dataType=o),e.push(l)}})}),e}function gi(r,e,t){Fa(r,!0),Ba(r,Fi),Kc(r,e,t)}function jB(r){Fa(r,!1)}function kt(r,e,t,i){i?jB(r):gi(r,e,t)}function Kc(r,e,t){var i=et(r);e!=null?(i.focus=e,i.blurScope=t):i.focus&&(i.focus=null)}var pC=["emphasis","blur","select"],JB={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ee(r,e,t,i){t=t||"itemStyle";for(var a=0;aQo,BezierCurve:()=>Ha,BoundingRect:()=>rt,Circle:()=>ze,CompoundPath:()=>En,Ellipse:()=>jo,Group:()=>j,Image:()=>Kt,IncrementalDisplayable:()=>oh,Line:()=>re,LinearGradient:()=>yi,OrientedBoundingRect:()=>ml,Path:()=>at,Point:()=>St,Polygon:()=>oe,Polyline:()=>ae,RadialGradient:()=>dl,Rect:()=>pt,Ring:()=>Ga,Sector:()=>pe,Text:()=>dt,applyTransform:()=>je,clipPointsByRect:()=>cf,clipRectByRect:()=>cy,createIcon:()=>Hi,extendPath:()=>py,extendShape:()=>fy,getShapeClass:()=>es,getTransform:()=>ti,groupTransition:()=>Xa,initProps:()=>Nt,isElementRemoved:()=>Wa,lineLineIntersect:()=>tA,linePolygonIntersect:()=>gl,makeImage:()=>ff,makePath:()=>Pn,mergePath:()=>Ze,registerShape:()=>$r,removeElement:()=>xi,removeElementWithFadeOut:()=>Ya,resizePath:()=>uh,setTooltipConfig:()=>Wi,subPixelOptimize:()=>pf,subPixelOptimizeLine:()=>Za,subPixelOptimizeRect:()=>AF,transformDirection:()=>rs,traverseElements:()=>dr,updateProps:()=>gt});var cl=Be.CMD,QB=[[],[],[]],CC=Math.sqrt,$B=Math.atan2;function Jc(r,e){if(e){var t=r.data,i=r.len(),a,n,o,s,l,u,f=cl.M,p=cl.C,c=cl.L,h=cl.R,v=cl.A,d=cl.Q;for(o=0,s=0;o1&&(o*=iy(v),s*=iy(v));var d=(a===n?-1:1)*iy((o*o*(s*s)-o*o*(h*h)-s*s*(c*c))/(o*o*(h*h)+s*s*(c*c)))||0,m=d*o*h/s,g=d*-s*c/o,y=(r+t)/2+$c(p)*m-Qc(p)*g,x=(e+i)/2+Qc(p)*m+$c(p)*g,_=DC([1,0],[(c-m)/o,(h-g)/s]),b=[(c-m)/o,(h-g)/s],S=[(-1*c-m)/o,(-1*h-g)/s],T=DC(b,S);if(ay(b,S)<=-1&&(T=sf),ay(b,S)>=1&&(T=0),T<0){var C=Math.round(T/sf*1e6)/1e6;T=sf*2+C%2*sf}f.addData(u,y,x,o,s,_,T,p,n)}var tF=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,eF=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function rF(r){var e=new Be;if(!r)return e;var t=0,i=0,a=t,n=i,o,s=Be.CMD,l=r.match(tF);if(!l)return e;for(var u=0;uP*P+R*R&&(C=D,A=M),{cx:C,cy:A,x0:-f,y0:-p,x1:C*(a/b-1),y1:A*(a/b-1)}}function lF(r){var e;if(z(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function UC(r,e){var t,i=lf(e.r,0),a=lf(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,p=e.cy,c=!!e.clockwise,h=zC(u-l),v=h>ny&&h%ny;if(v>Gi&&(h=v),!(i>Gi))r.moveTo(f,p);else if(h>ny-Gi)r.moveTo(f+i*vl(l),p+i*Jo(l)),r.arc(f,p,i,l,u,!c),a>Gi&&(r.moveTo(f+a*vl(u),p+a*Jo(u)),r.arc(f,p,a,u,l,c));else{var d=void 0,m=void 0,g=void 0,y=void 0,x=void 0,_=void 0,b=void 0,S=void 0,T=void 0,C=void 0,A=void 0,D=void 0,M=void 0,L=void 0,I=void 0,P=void 0,R=i*vl(l),O=i*Jo(l),V=a*vl(u),U=a*Jo(u),F=h>Gi;if(F){var q=e.cornerRadius;q&&(t=lF(q),d=t[0],m=t[1],g=t[2],y=t[3]);var $=zC(i-a)/2;if(x=da($,g),_=da($,y),b=da($,d),S=da($,m),A=T=lf(x,_),D=C=lf(b,S),(T>Gi||C>Gi)&&(M=i*vl(u),L=i*Jo(u),I=a*vl(l),P=a*Jo(l),hGi){var Rt=da(g,A),Ct=da(y,A),ut=eh(I,P,R,O,i,Rt,c),At=eh(M,L,V,U,i,Ct,c);r.moveTo(f+ut.cx+ut.x0,p+ut.cy+ut.y0),A0&&r.arc(f+ut.cx,p+ut.cy,Rt,ar(ut.y0,ut.x0),ar(ut.y1,ut.x1),!c),r.arc(f,p,i,ar(ut.cy+ut.y1,ut.cx+ut.x1),ar(At.cy+At.y1,At.cx+At.x1),!c),Ct>0&&r.arc(f+At.cx,p+At.cy,Ct,ar(At.y1,At.x1),ar(At.y0,At.x0),!c))}else r.moveTo(f+R,p+O),r.arc(f,p,i,l,u,!c);if(!(a>Gi)||!F)r.lineTo(f+V,p+U);else if(D>Gi){var Rt=da(d,D),Ct=da(m,D),ut=eh(V,U,M,L,a,-Ct,c),At=eh(R,O,I,P,a,-Rt,c);r.lineTo(f+ut.cx+ut.x0,p+ut.cy+ut.y0),D0&&r.arc(f+ut.cx,p+ut.cy,Ct,ar(ut.y0,ut.x0),ar(ut.y1,ut.x1),!c),r.arc(f,p,a,ar(ut.cy+ut.y1,ut.cx+ut.x1),ar(At.cy+At.y1,At.cx+At.x1),c),Rt>0&&r.arc(f+At.cx,p+At.cy,Rt,ar(At.y1,At.x1),ar(At.y0,At.x0),!c))}else r.lineTo(f+V,p+U),r.arc(f,p,a,u,l,c)}r.closePath()}}}var fF=function(){function r(){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 r}();var VC=function(r){Dt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new fF},e.prototype.buildPath=function(t,i){UC(t,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(at);VC.prototype.type="sector";var pe=VC;var pF=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}();var BC=function(r){Dt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new pF},e.prototype.buildPath=function(t,i){var a=i.cx,n=i.cy,o=Math.PI*2;t.moveTo(a+i.r,n),t.arc(a,n,i.r,0,o,!1),t.moveTo(a+i.r0,n),t.arc(a,n,i.r0,0,o,!0)},e}(at);BC.prototype.type="ring";var Ga=BC;function oy(r,e,t,i){var a=[],n=[],o=[],s=[],l,u,f,p;if(i){f=[1/0,1/0],p=[-1/0,-1/0];for(var c=0,h=r.length;c=2){if(i){var n=oy(a,i,t,e.smoothConstraint);r.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(t?o:o-1);s++){var l=n[s*2],u=n[s*2+1],f=a[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(a[0][0],a[0][1]);for(var s=1,p=a.length;sts[1]){if(s=!1,n)return s;var f=Math.abs(ts[0]-$o[1]),p=Math.abs($o[0]-ts[1]);Math.min(f,p)>a.len()&&(f0){var p=f.duration,c=f.delay,h=f.easing,v={duration:p,delay:c||0,easing:h,done:n,force:!!n||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,v):e.animateTo(t,v)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),n&&n()}function gt(r,e,t,i,a,n){sy("update",r,e,t,i,a,n)}function Nt(r,e,t,i,a,n){sy("enter",r,e,t,i,a,n)}function Wa(r){if(!r.__zr)return!0;for(var e=0;eMath.abs(n[1])?n[0]>0?"right":"left":n[1]>0?"bottom":"top"}function JC(r){return!r.isGroup}function DF(r){return r.shape!=null}function Xa(r,e,t){if(!r||!e)return;function i(o){var s={};return o.traverse(function(l){JC(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return DF(o)&&(s.shape=N({},o.shape)),s}var n=i(r);e.traverse(function(o){if(JC(o)&&o.anid){var s=n[o.anid];if(s){var l=a(o);o.attr(a(s)),gt(o,l,t,et(o).dataIndex)}}})}function cf(r,e){return k(r,function(t){var i=t[0];i=sh(i,e.x),i=lh(i,e.x+e.width);var a=t[1];return a=sh(a,e.y),a=lh(a,e.y+e.height),[i,a]})}function cy(r,e){var t=sh(r.x,e.x),i=lh(r.x+r.width,e.x+e.width),a=sh(r.y,e.y),n=lh(r.y+r.height,e.y+e.height);if(i>=t&&n>=a)return{x:t,y:a,width:i-t,height:n-a}}function Hi(r,e,t){var i=N({rectHover:!0},e),a=i.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),X(a,t),new Kt(i)):Pn(r.replace("path://",""),i,t,"center")}function gl(r,e,t,i,a){for(var n=0,o=a[a.length-1];n1)return!1;var m=ly(h,v,f,p)/c;return!(m<0||m>1)}function ly(r,e,t,i){return r*i-t*e}function MF(r){return r<=1e-6&&r>=-1e-6}function Wi(r){var e=r.itemTooltipOption,t=r.componentModel,i=r.itemName,a=B(e)?{formatter:e}:e,n=t.mainType,o=t.componentIndex,s={componentType:n,name:i,$vars:["name"]};s[n+"Index"]=o;var l=r.formatterParamsExtra;l&&w(ft(l),function(f){Q(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=et(r.el);u.componentMainType=n,u.componentIndex=o,u.tooltipConfig={name:i,option:X({content:i,formatterParams:s},a)}}function QC(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function dr(r,e){if(r)if(z(r))for(var t=0;t=0&&s.push(l)}),s}}function nr(r,e){return nt(nt({},r,!0),e,!0)}var pA={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"}},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 cA={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"}},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 dh="ZH",xy="EN",vf=xy,vh={},_y={},mh=bt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(dh)>-1?dh:vf}():vf;function Sy(r,e){r=r.toUpperCase(),_y[r]=new Mt(e),vh[r]=e}function hA(r){if(B(r)){var e=vh[r.toUpperCase()]||{};return r===dh||r===xy?J(e):nt(J(e),J(vh[vf]),!1)}else return nt(J(r),J(vh[vf]),!1)}function df(r){return _y[r]}function vA(){return _y[vf]}Sy(xy,pA);Sy(dh,cA);var yh=1e3,xh=yh*60,xl=xh*60,ei=xl*24,wy=ei*365,mf={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},gh="{yyyy}-{MM}-{dd}",Ty={year:"{yyyy}",month:"{yyyy}-{MM}",day:gh,hour:gh+" "+mf.hour,minute:gh+" "+mf.minute,second:gh+" "+mf.second,millisecond:mf.none},by=["year","month","day","hour","minute","second","millisecond"],Cy=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function or(r,e){return r+="","0000".substr(0,e-r.length)+r}function ns(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function dA(r){return r===ns(r)}function mA(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ka(r,e,t,i){var a=Oe(r),n=a[_h(t)](),o=a[as(t)]()+1,s=Math.floor((o-1)/3)+1,l=a[gf(t)](),u=a["get"+(t?"UTC":"")+"Day"](),f=a[yl(t)](),p=(f-1)%12+1,c=a[yf(t)](),h=a[xf(t)](),v=a[_f(t)](),d=i instanceof Mt?i:df(i||mh)||vA(),m=d.getModel("time"),g=m.get("month"),y=m.get("monthAbbr"),x=m.get("dayOfWeek"),_=m.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,n+"").replace(/{yy}/g,or(n%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,g[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,or(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,or(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,or(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,or(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,or(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,or(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,or(v,3)).replace(/{S}/g,v+"")}function gA(r,e,t,i,a){var n=null;if(B(t))n=t;else if(Z(t))n=t(r.value,e,{level:r.level});else{var o=N({},mf);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){n=l[u];break}n=n||o.none}if(z(n)){var p=r.level==null?0:r.level>=0?r.level:n.length+r.level;p=Math.min(p,n.length-1),n=n[p]}}return Ka(new Date(r.value),n,a,i)}function yA(r,e){var t=Oe(r),i=t[as(e)]()+1,a=t[gf(e)](),n=t[yl(e)](),o=t[yf(e)](),s=t[xf(e)](),l=t[_f(e)](),u=l===0,f=u&&s===0,p=f&&o===0,c=p&&n===0,h=c&&a===1,v=h&&i===1;return v?"year":h?"month":c?"day":p?"hour":f?"minute":u?"second":"millisecond"}function Ay(r,e,t){var i=vt(r)?Oe(r):r;switch(e=e||yA(r,t),e){case"year":return i[_h(t)]();case"half-year":return i[as(t)]()>=6?1:0;case"quarter":return Math.floor((i[as(t)]()+1)/4);case"month":return i[as(t)]();case"day":return i[gf(t)]();case"half-day":return i[yl(t)]()/24;case"hour":return i[yl(t)]();case"minute":return i[yf(t)]();case"second":return i[xf(t)]();case"millisecond":return i[_f(t)]()}}function _h(r){return r?"getUTCFullYear":"getFullYear"}function as(r){return r?"getUTCMonth":"getMonth"}function gf(r){return r?"getUTCDate":"getDate"}function yl(r){return r?"getUTCHours":"getHours"}function yf(r){return r?"getUTCMinutes":"getMinutes"}function xf(r){return r?"getUTCSeconds":"getSeconds"}function _f(r){return r?"getUTCMilliseconds":"getMilliseconds"}function xA(r){return r?"setUTCFullYear":"setFullYear"}function Dy(r){return r?"setUTCMonth":"setMonth"}function My(r){return r?"setUTCDate":"setDate"}function Ly(r){return r?"setUTCHours":"setHours"}function Iy(r){return r?"setUTCMinutes":"setMinutes"}function Ey(r){return r?"setUTCSeconds":"setSeconds"}function Py(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Ry(r,e,t,i,a,n,o,s){var l=new dt({style:{text:r,font:e,align:t,verticalAlign:i,padding:a,rich:n,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function Sf(r){if(!Uo(r))return B(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function _l(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,i){return i.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var ri=vo;function Sh(r,e,t){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&Ie(f)?f:"-"}function n(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?Oe(r):r;if(isNaN(+l)){if(s)return"-"}else return Ka(l,i,t)}if(e==="ordinal")return ks(r)?a(r):vt(r)&&n(r)?r+"":"-";var u=Pr(r);return n(u)?Sf(u):ks(r)?a(r):typeof r=="boolean"?r+"":"-"}var _A=["a","b","c","d","e","f","g"],Oy=function(r,e){return"{"+r+(e??"")+"}"};function Sl(r,e,t){z(e)||(e=[e]);var i=e.length;if(!i)return"";for(var a=e[0].$vars||[],n=0;n':'';var o=t.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 bA(r,e,t){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd -yyyy`);var i=Oe(e),a=t?"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"](),p=i[a+"Milliseconds"]();return r=r.replace("MM",or(o,2)).replace("M",o).replace("yyyy",n).replace("yy",or(n%100+"",2)).replace("dd",or(s,2)).replace("d",s).replace("hh",or(l,2)).replace("h",l).replace("mm",or(u,2)).replace("m",u).replace("ss",or(f,2)).replace("s",f).replace("SSS",or(p,3)),r}function wA(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function Yi(r,e){return e=e||"transparent",B(r)?r:K(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function os(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var wh=w,Ny=["left","right","top","bottom","width","height"],ss=[["width","left","right"],["height","top","bottom"]];function zy(r,e,t,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(),p=e.childAt(u+1),c=p&&p.getBoundingRect(),h,v;if(r==="horizontal"){var d=f.width+(c?-c.x+f.x:0);h=n+d,h>i||l.newline?(n=0,h=d,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(c?-c.y+f.y:0);v=o+m,v>a||l.newline?(n+=s+t,o=0,v=m,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=n,l.y=o,l.markRedraw(),r==="horizontal"?n=h+t:o=v+t)})}var Zi=zy,Vtt=tt(zy,"vertical"),Btt=tt(zy,"horizontal");function TA(r,e,t){var i=e.width,a=e.height,n=H(r.left,i),o=H(r.top,a),s=H(r.right,i),l=H(r.bottom,a);return(isNaN(n)||isNaN(parseFloat(r.left)))&&(n=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=i),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=a),t=ri(t||0),{width:Math.max(s-n-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function Gt(r,e,t){t=ri(t||0);var i=e.width,a=e.height,n=H(r.left,i),o=H(r.top,a),s=H(r.right,i),l=H(r.bottom,a),u=H(r.width,i),f=H(r.height,a),p=t[2]+t[0],c=t[1]+t[3],h=r.aspect;switch(isNaN(u)&&(u=i-s-c-n),isNaN(f)&&(f=a-l-p-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-c),isNaN(o)&&(o=a-l-f-p),r.left||r.right){case"center":n=i/2-u/2-t[3];break;case"right":n=i-u-c;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-f/2-t[0];break;case"bottom":o=a-f-p;break}n=n||0,o=o||0,isNaN(u)&&(u=i-c-n-(s||0)),isNaN(f)&&(f=a-p-o-(l||0));var v=new rt(n+t[3],o+t[0],u,f);return v.margin=t,v}function Rn(r,e,t,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||r,n.x=r.x,n.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new rt(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var p=Gt(X({width:u.width,height:u.height},e),t,i),c=o?p.x-u.x:0,h=s?p.y-u.y:0;return l==="raw"?(n.x=c,n.y=h):(n.x+=c,n.y+=h),n===r&&r.markRedraw(),!0}function CA(r,e){return r[ss[e][0]]!=null||r[ss[e][1]]!=null&&r[ss[e][2]]!=null}function On(r){var e=r.layoutMode||r.constructor.layoutMode;return K(e)?e:e?{type:e}:null}function Vr(r,e,t){var i=t&&t.ignoreSize;!z(i)&&(i=[i,i]);var a=o(ss[0],0),n=o(ss[1],1);u(ss[0],r,a),u(ss[1],r,n);function o(f,p){var c={},h=0,v={},d=0,m=2;if(wh(f,function(x){v[x]=r[x]}),wh(f,function(x){s(e,x)&&(c[x]=v[x]=e[x]),l(c,x)&&h++,l(v,x)&&d++}),i[p])return l(e,f[1])?v[f[2]]=null:l(e,f[2])&&(v[f[1]]=null),v;if(d===m||!h)return v;if(h>=m)return c;for(var g=0;g=0;l--)s=nt(s,a[l],!0);i.defaultOption=s}return i.defaultOption},e.prototype.getReferringComponents=function(t,i){var a=t+"Index",n=t+"Id";return bn(this.ecModel,t,{index:this.get(a,!0),id:this.get(n,!0)},i)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Mt);kc(bl,Mt);wn(bl);uA(bl);fA(bl,UF);function UF(r){var e=[];return w(bl.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=k(e,function(t){return Or(t).main}),r!=="dataset"&&it(e,"dataset")<=0&&e.unshift("dataset"),e}var mt=bl;var AA="";typeof navigator<"u"&&(AA=navigator.platform||"");var wl="rgba(0, 0, 0, 0.2)",DA={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:wl,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:wl,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:wl,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:wl,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:wl,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:wl,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:AA.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 Th=Y(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Xe="original",Se="arrayRows",Qe="objectRows",ii="keyedColumns",ai="typedArray",Uy="unknown",Br="column",ja="row";var Fe={Must:1,Might:2,Not:3},MA=ot();function LA(r){MA(r).datasetMap=Y()}function Ch(r,e,t){var i={},a=Ah(e);if(!a||!r)return i;var n=[],o=[],s=e.ecModel,l=MA(s).datasetMap,u=a.uid+"_"+t.seriesLayoutBy,f,p;r=r.slice(),w(r,function(d,m){var g=K(d)?d:r[m]={name:d};g.type==="ordinal"&&f==null&&(f=m,p=v(g)),i[g.name]=[]});var c=l.get(u)||l.set(u,{categoryWayDim:p,valueWayDim:0});w(r,function(d,m){var g=d.name,y=v(d);if(f==null){var x=c.valueWayDim;h(i[g],x,y),h(o,x,y),c.valueWayDim+=y}else if(f===m)h(i[g],0,y),h(n,0,y);else{var x=c.categoryWayDim;h(i[g],x,y),h(o,x,y),c.categoryWayDim+=y}});function h(d,m,g){for(var y=0;ye)return r[i];return r[t-1]}function NA(r,e,t,i,a,n,o){n=n||r;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?t:BF(i,o);if(f=f||t,!(!f||!f.length)){var p=f[l];return a&&(u[a]=p),s.paletteIdx=(l+1)%f.length,p}}function FF(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var Mh,Cf,zA,kA="\0_ec_inner",GF=1;var FA=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,i,a,n,o,s){n=n||{},this.option=null,this._theme=new Mt(n),this._locale=new Mt(o),this._optionManager=s},e.prototype.setOption=function(t,i,a){var n=BA(i);this._optionManager.setOption(t,a,n),this._resetOption(null,n)},e.prototype.resetOption=function(t,i){return this._resetOption(t,BA(i))},e.prototype._resetOption=function(t,i){var a=!1,n=this._optionManager;if(!t||t==="recreate"){var o=n.mountOption(t==="recreate");!this.option||t==="recreate"?zA(this,o):(this.restoreData(),this._mergeOption(o,i)),a=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=n.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,i))}if(!t||t==="recreate"||t==="media"){var l=n.getMediaOption(this);l.length&&w(l,function(u){a=!0,this._mergeOption(u,i)},this)}return a},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,i){var a=this.option,n=this._componentsMap,o=this._componentsCount,s=[],l=Y(),u=i&&i.replaceMergeMainTypeMap;LA(this),w(t,function(p,c){p!=null&&(mt.hasClass(c)?c&&(s.push(c),l.set(c,!0)):a[c]=a[c]==null?J(p):nt(a[c],p,!0))}),u&&u.each(function(p,c){mt.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),mt.topologicalTravel(s,mt.getAllClassMainTypes(),f,this);function f(p){var c=RA(this,p,Ot(t[p])),h=n.get(p),v=h?u&&u.get(p)?"replaceMerge":"normalMerge":"replaceAll",d=Nc(h,c,v);cT(d,p,mt),a[p]=null,n.set(p,null),o.set(p,0);var m=[],g=[],y=0,x,_;w(d,function(b,S){var T=b.existing,C=b.newOption;if(!C)T&&(T.mergeOption({},this),T.optionUpdated({},!1));else{var A=p==="series",D=mt.getClass(p,b.keyInfo.subType,!A);if(!D){if(0)var M,L;return}if(p==="tooltip"){if(x)return;x=!0}if(T&&T.constructor===D)T.name=b.keyInfo.name,T.mergeOption(C,this),T.optionUpdated(C,!1);else{var I=N({componentIndex:S},b.keyInfo);T=new D(C,this,this,I),N(T,I),b.brandNew&&(T.__requireNewView=!0),T.init(C,this,this),T.optionUpdated(null,!0)}}T?(m.push(T.option),g.push(T),y++):(m.push(void 0),g.push(void 0))},this),a[p]=m,n.set(p,g),o.set(p,y),p==="series"&&Mh(this)}this._seriesIndices||Mh(this)},e.prototype.getOption=function(){var t=J(this.option);return w(t,function(i,a){if(mt.hasClass(a)){for(var n=Ot(i),o=n.length,s=!1,l=o-1;l>=0;l--)n[l]&&!il(n[l])?s=!0:(n[l]=null,!s&&o--);n.length=o,t[a]=n}}),delete t[kA],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,i){var a=this._componentsMap.get(t);if(a){var n=a[i||0];if(n)return n;if(i==null){for(var o=0;o=e:t==="max"?r<=e:r===e}function $F(r,e){return r.join(",")===e.join(",")}var GA=KF;var Xi=w,Df=K,HA=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Fy(r){var e=r&&r.itemStyle;if(e)for(var t=0,i=HA.length;t=0;m--){var g=r[m];if(s||(v=g.data.rawIndexOf(g.stackedByDimension,h)),v>=0){var y=g.data.getByRawIndex(g.stackResultDimension,v);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&c>=0&&y>0||l==="samesign"&&c<=0&&y<0){c=rT(c,y),d=y;break}}}return i[0]=c,i[1]=d,i})})}var Ph=function(){function r(e){this.data=e.data||(e.sourceFormat===ii?{}:[]),this.sourceFormat=e.sourceFormat||Uy,this.seriesLayoutBy=e.seriesLayoutBy||Br,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var i=0;id&&(d=x)}h[0]=v,h[1]=d}},a=function(){return this._data?this._data.length/this._dimSize:0};QA=(e={},e[Se+"_"+Br]={pure:!0,appendData:n},e[Se+"_"+ja]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Qe]={pure:!0,appendData:n},e[ii]={pure:!0,appendData:function(o){var s=this._data;w(o,function(l,u){for(var f=s[u]||(s[u]=[]),p=0;p<(l||[]).length;p++)f.push(l[p])})}},e[Xe]={appendData:n},e[ai]={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=0&&(d=o.interpolatedValue[m])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(e,t){return Qa(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,i){},r}();function Jy(r){var e,t;return K(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function Nn(r){return new hG(r)}var hG=function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,i=e&&e.skip;if(this._dirty&&t){var a=this.context;a.data=a.outputData=t.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 p;(this._dirty||n==="reset")&&(this._dirty=!1,p=this._doReset(i)),this._modBy=l,this._modDataCount=u;var c=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(p||h1&&i>0?s:o}};return n;function o(){return e=r?null:le},gte:function(r,e){return r>=e}},dG=function(){function r(e,t){if(!vt(t)){var i="";Bt(i)}this._opFn=iD[e],this._rvalFloat=Pr(t)}return r.prototype.evaluate=function(e){return vt(e)?this._opFn(e,this._rvalFloat):this._opFn(Pr(e),this._rvalFloat)},r}(),zh=function(){function r(e,t){var i=e==="desc";this._resultLT=i?1:-1,t==null&&(t=i?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var i=vt(e)?e:Pr(e),a=vt(t)?t:Pr(t),n=isNaN(i),o=isNaN(a);if(n&&(i=this._incomparable),o&&(a=this._incomparable),n&&o){var s=B(e),l=B(t);s&&(i=l?e:0),l&&(a=s?t:0)}return ia?-this._resultLT:0},r}();var mG=function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Pr(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var i=typeof e;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(t=Pr(e)===this._rvalFloat)}return this._isEQ?t:!t},r}();function aD(r,e){return r==="eq"||r==="ne"?new mG(r==="eq",e):Q(iD,r)?new dG(r,e):null}var gG=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return wi(e,t)},r}();function yG(r,e){var t=new gG,i=r.data,a=t.sourceFormat=r.sourceFormat,n=r.startIndex,o="";r.seriesLayoutBy!==Br&&Bt(o);var s=[],l={},u=r.dimensionsDefine;if(u)w(u,function(d,m){var g=d.name,y={index:m,name:g,displayName:d.displayName};if(s.push(y),g!=null){var x="";Q(l,g)&&Bt(x),l[g]=y}});else for(var f=0;f65535?TG:CG}function Ml(){return[1/0,-1/0]}function AG(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function uD(r,e,t,i,a){var n=fD[t||"float"];if(a){var o=r[e],s=o&&o.length;if(s!==i){for(var l=new n(i),u=0;um[1]&&(m[1]=d)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,i){for(var a=this._provider,n=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=k(o,function(y){return y.property}),f=0;fg[1]&&(g[1]=m)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,i=t[e];if(i!=null&&ie)n=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(e,t,i){var a=this._chunks,n=a[e],o=[];if(!n)return o;i==null&&(i=1/0);for(var s=1/0,l=-1,u=0,f=0,p=this.count();f=0&&l<0)&&(s=v,l=h,u=0),h===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var i=t.constructor,a=this._count;if(i===Array){e=new i(a);for(var n=0;n=p&&y<=c||isNaN(y))&&(l[u++]=d),d++}v=!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=p&&y<=c||isNaN(y))&&(S>=_&&S<=b||isNaN(S))&&(l[u++]=d),d++}v=!0}}if(!v)if(n===1)for(var g=0;g=p&&y<=c||isNaN(y))&&(l[u++]=T)}else for(var g=0;ge[D][1])&&(C=!1)}C&&(l[u++]=t.getRawIndex(g))}return ug[1]&&(g[1]=m)}}}},r.prototype.lttbDownSample=function(e,t){var i=this.clone([e],!0),a=i._chunks,n=a[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,p,c,h=new(If(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;vf&&(f=p,c=_)}M>0&&Mf-v&&(l=f-v,s.length=l);for(var d=0;dp[1]&&(p[1]=g),c[h++]=y}return n._count=h,n._indices=c,n._updateGetRawIdx(),n},r.prototype.each=function(e,t){if(this._count)for(var i=e.length,a=this._chunks,n=0,o=this.count();nl&&(l=p)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var i=[],a=this._chunks,n=0;n=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function e(t,i,a,n){return wi(t[n],this._dimensions[n])}$y={arrayRows:e,objectRows:function(t,i,a,n){return wi(t[i],this._dimensions[n])},keyedColumns:e,original:function(t,i,a,n){var o=t&&(t.value==null?t:t.value);return wi(o instanceof Array?o[n]:o,this._dimensions[n])},typedArray:function(t,i,a,n){return t[n]}}}(),r}(),Ef=DG;var Vh=function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),i=!!t.length,a,n;if(Uh(e)){var o=e,s=void 0,l=void 0,u=void 0;if(i){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,n=[f._getVersionSign()]}else s=o.get("data",!0),l=ye(s)?ai:Xe,n=[];var p=this._getSourceMetaRawOption()||{},c=u&&u.metaRawOption||{},h=lt(p.seriesLayoutBy,c.seriesLayoutBy)||null,v=lt(p.sourceHeader,c.sourceHeader),d=lt(p.dimensions,c.dimensions),m=h!==c.seriesLayoutBy||!!v!=!!c.sourceHeader||d;a=m?[Lf(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:d},l)]:[]}else{var g=e;if(i){var y=this._applyTransform(t);a=y.sourceList,n=y.upstreamSignList}else{var x=g.get("source",!0);a=[Lf(x,this._getSourceMetaRawOption(),null)],n=[]}}this._setLocalSource(a,n)},r.prototype._applyTransform=function(e){var t=this._sourceHost,i=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(a!=null){var n="";e.length!==1&&pD(n)}var o,s=[],l=[];return w(e,function(u){u.prepareSource();var f=u.getSource(a||0),p="";a!=null&&!f&&pD(p),s.push(f),l.push(u._getVersionSign())}),i?o=sD(i,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[JA(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!r.noHeader;return w(r.blocks,function(a){var n=dD(a);n>=e&&(e=n+ +(i&&(!n||r0(a)&&!a.noHeader)))}),e}return 0}function IG(r,e,t,i){var a=e.noHeader,n=PG(dD(e)),o=[],s=e.blocks||[];Qt(!s||z(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Q(u,l)){var f=new zh(u[l],null);s.sort(function(v,d){return f.evaluate(v.sortParam,d.sortParam)})}else l==="seriesDesc"&&s.reverse()}w(s,function(v,d){var m=e.valueFormatter,g=vD(v)(m?N(N({},r),{valueFormatter:m}):r,v,d>0?n.html:0,i);g!=null&&o.push(g)});var p=r.renderMode==="richText"?o.join(n.richText):i0(o.join(""),a?t:n.html);if(a)return p;var c=Sh(e.header,"ordinal",r.useUTC),h=hD(i,r.renderMode).nameStyle;return r.renderMode==="richText"?mD(r,c,h)+n.richText+p:i0('
'+Ue(c)+"
"+p,t)}function EG(r,e,t,i){var a=r.renderMode,n=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(_){return _=z(_)?_:[_],k(_,function(b,S){return Sh(b,z(h)?h[S]:h,u)})};if(!(n&&o)){var p=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),c=n?"":Sh(l,"ordinal",u),h=e.valueType,v=o?[]:f(e.value),d=!s||!n,m=!s&&n,g=hD(i,a),y=g.nameStyle,x=g.valueStyle;return a==="richText"?(s?"":p)+(n?"":mD(r,c,y))+(o?"":NG(r,v,d,m,x)):i0((s?"":p)+(n?"":RG(c,!s,y))+(o?"":OG(v,d,m,x)),t)}}function a0(r,e,t,i,a,n){if(r){var o=vD(r),s={useUTC:a,renderMode:t,orderMode:i,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,n)}}function PG(r){return{html:MG[r],richText:LG[r]}}function i0(r,e){var t='
',i="margin: "+e+"px 0 0";return'
'+r+t+"
"}function RG(r,e,t){var i=e?"margin-left:2px":"";return''+Ue(r)+""}function OG(r,e,t,i){var a=t?"10px":"20px",n=e?"float:right;margin-left:"+a:"";return r=z(r)?r:[r],''+k(r,function(o){return Ue(o)}).join("  ")+""}function mD(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function NG(r,e,t,i,a){var n=[a],o=i?10:20;return t&&n.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(z(e)?e.join(" "):e,n)}function Bh(r,e){var t=r.getData().getItemVisual(e,"style"),i=t[r.visualDrawType];return Yi(i)}function Fh(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var Gh=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Oc()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,i){var a=i==="richText"?this._generateStyleName():null,n=bh({color:t,type:e,renderMode:i,markerId:a});return B(n)?n:(this.richTextStyles[a]=n.style,n.content)},r.prototype.wrapRichTextStyle=function(e,t){var i={};z(t)?w(t,function(n){return N(i,n)}):N(i,t);var a=this._generateStyleName();return this.richTextStyles[a]=i,"{"+a+"|"+e+"}"},r}();function Hh(r){var e=r.series,t=r.dataIndex,i=r.multipleSeries,a=e.getData(),n=a.mapDimensionsAll("defaultedTooltip"),o=n.length,s=e.getRawValue(t),l=z(s),u=Bh(e,t),f,p,c,h;if(o>1||l&&!o){var v=zG(s,e,t,n,u);f=v.inlineValues,p=v.inlineValueTypes,c=v.blocks,h=v.inlineValues[0]}else if(o){var d=a.getDimensionInfo(n[0]);h=f=Qa(a,t,n[0]),p=d.type}else h=f=l?s[0]:s;var m=al(e),g=m&&e.name||"",y=a.getName(t),x=i?g:y;return $t("section",{header:g,noHeader:i||!m,sortParam:h,blocks:[$t("nameValue",{markerType:"item",markerColor:u,name:x,noName:!Ie(x),value:f,valueType:p})].concat(c||[])})}function zG(r,e,t,i,a){var n=e.getData(),o=Me(r,function(p,c,h){var v=n.getDimensionInfo(h);return p=p||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];i.length?w(i,function(p){f(Qa(n,t,p),p)}):w(r,f);function f(p,c){var h=n.getDimensionInfo(c);!h||h.otherDims.tooltip===!1||(o?u.push($t("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:p,valueType:h.type})):(s.push(p),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var zn=ot();function Wh(r,e){return r.getName(e)||r.getId(e)}var Pf="__universalTransitionEnabled",Yh=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,i,a){this.seriesIndex=this.componentIndex,this.dataTask=Nn({count:UG,reset:VG}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var n=zn(this).sourceManager=new Vh(this);n.prepareSource();var o=this.getInitialData(t,a);yD(o,this),this.dataTask.context.data=o,zn(this).dataBeforeProcessed=o,gD(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,i){var a=On(this),n=a?Si(t):{},o=this.subType;mt.hasClass(o)&&(o+="Series"),nt(t,i.getTheme().get(this.subType)),nt(t,this.getDefaultOption()),Qr(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&Vr(t,n,a)},e.prototype.mergeOption=function(t,i){t=nt(this.option,t,!0),this.fillDataTextStyle(t.data);var a=On(this);a&&Vr(this.option,t,a);var n=zn(this).sourceManager;n.dirty(),n.prepareSource();var o=this.getInitialData(t,i);yD(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,zn(this).dataBeforeProcessed=o,gD(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!ye(t))for(var i=["show"],a=0;athis.getShallow("animationThreshold")&&(i=!1),!!i},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,i,a){var n=this.ecModel,o=wf.prototype.getColorFromPalette.call(this,t,i,a);return o||(o=n.getColorFromPalette(t,i,a)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,i){this._innerSelect(this.getData(i),t)},e.prototype.unselect=function(t,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=0&&a.push(o)}return a},e.prototype.isSelected=function(t,i){var a=this.option.selectedMap;if(!a)return!1;var n=this.getData(i);return(a==="all"||a[Wh(n,t)])&&!n.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Pf])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,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"){K(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(t,i)}},e.registerClass=function(t){return mt.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(mt);Wt(Yh,Dl);Wt(Yh,wf);kc(Yh,mt);function gD(r){var e=r.name;al(r)||(r.name=kG(r)||e)}function kG(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),i=[];return w(t,function(a){var n=e.getDimensionInfo(a);n.displayName&&i.push(n.displayName)}),i.join(" ")}function UG(r){return r.model.getRawData().count()}function VG(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),BG}function BG(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function yD(r,e){w(cn(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,tt(FG,e))})}function FG(r,e){var t=n0(r);return t&&t.setOutputEnd((e||this).count()),e}function n0(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var i=t.currentTask;if(i){var a=i.agentStubMap;a&&(i=a.get(r.uid))}return i}}var Lt=Yh;var o0=function(){function r(){this.group=new j,this.uid=_i("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,i,a){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,i,a){},r.prototype.updateLayout=function(e,t,i,a){},r.prototype.updateVisual=function(e,t,i,a){},r.prototype.toggleBlurSeries=function(e,t,i){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r}();nl(o0);wn(o0);var Et=o0;function ni(){var r=ot();return function(e){var t=r(e),i=e.pipelineContext,a=!!t.large,n=!!t.progressiveRender,o=t.large=!!(i&&i.large),s=t.progressiveRender=!!(i&&i.progressiveRender);return(a!==o||n!==s)&&"reset"}}var SD=ot(),GG=ni(),s0=function(){function r(){this.group=new j,this.uid=_i("viewChart"),this.renderTask=Nn({plan:HG,reset:WG}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,i,a){},r.prototype.highlight=function(e,t,i,a){var n=e.getData(a&&a.dataType);n&&_D(n,a,"emphasis")},r.prototype.downplay=function(e,t,i,a){var n=e.getData(a&&a.dataType);n&&_D(n,a,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,i,a){this.render(e,t,i,a)},r.prototype.updateLayout=function(e,t,i,a){this.render(e,t,i,a)},r.prototype.updateVisual=function(e,t,i,a){this.render(e,t,i,a)},r.prototype.eachRendered=function(e){dr(this.group,e)},r.markUpdateMethod=function(e,t){SD(e).updateMethod=t},r.protoInitialize=function(){var e=r.prototype;e.type="chart"}(),r}();function xD(r,e,t){r&&In(r)&&(e==="emphasis"?rr:ir)(r,t)}function _D(r,e,t){var i=vi(r,e),a=e&&e.highlightKey!=null?wC(e.highlightKey):null;i!=null?w(Ot(i),function(n){xD(r.getItemGraphicEl(n),t,a)}):r.eachItemGraphicEl(function(n){xD(n,t,a)})}nl(s0,["dispose"]);wn(s0);function HG(r){return GG(r.model)}function WG(r){var e=r.model,t=r.ecModel,i=r.api,a=r.payload,n=e.pipelineContext.progressiveRender,o=r.view,s=a&&SD(a).updateMethod,l=n?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,i,a),YG[l]}var YG={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Tt=s0;var Zh="\0__throttleOriginMethod",bD="\0__throttleRate",wD="\0__throttleType";function Ll(r,e,t){var i,a=0,n=0,o=null,s,l,u,f;e=e||0;function p(){n=new Date().getTime(),o=null,r.apply(l,u||[])}var c=function(){for(var h=[],v=0;v=0?p():o=setTimeout(p,-s),a=i};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(h){f=h},c}function Ti(r,e,t,i){var a=r[e];if(a){var n=a[Zh]||a,o=a[wD],s=a[bD];if(s!==t||o!==i){if(t==null||!i)return r[e]=n;a=r[e]=Ll(n,t,i==="debounce"),a[Zh]=n,a[wD]=i,a[bD]=t}return a}}function $a(r,e){var t=r[e];t&&t[Zh]&&(t.clear&&t.clear(),r[e]=t[Zh])}var TD=ot(),CD={itemStyle:Nr(gy,!0),lineStyle:Nr(my,!0)},ZG={lineStyle:"stroke",itemStyle:"fill"};function AD(r,e){var t=r.visualStyleMapper||CD[e];return t||(console.warn("Unknown style type '"+e+"'."),CD.itemStyle)}function DD(r,e){var t=r.visualDrawType||ZG[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var MD={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),i=r.visualStyleAccessPath||"itemStyle",a=r.getModel(i),n=AD(r,i),o=n(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=DD(r,i),u=o[l],f=Z(u)?u:null,p=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||p){var c=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=c,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Z(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||Z(o.stroke)?c:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var d=r.getDataParams(v),m=N({},o);m[l]=f(d),h.setItemVisual(v,"style",m)}}}},Rf=new Mt,LD={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),i=r.visualStyleAccessPath||"itemStyle",a=AD(r,i),n=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){Rf.option=l[i];var u=a(Rf),f=o.ensureUniqueItemVisual(s,"style");N(f,u),Rf.option.decal&&(o.setItemVisual(s,"decal",Rf.option.decal),Rf.option.decal.dirty=!0),n in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},ID={performRawSeries:!0,overallReset:function(r){var e=Y();r.eachSeries(function(t){var i=t.getColorBy();if(!t.isColorBySeries()){var a=t.type+"-"+i,n=e.get(a);n||(n={},e.set(a,n)),TD(t).scope=n}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var i=t.getRawData(),a={},n=t.getData(),o=TD(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=DD(t,s);n.each(function(u){var f=n.getRawIndex(u);a[f]=u}),i.each(function(u){var f=a[u],p=n.getItemVisual(f,"colorFromPalette");if(p){var c=n.ensureUniqueItemVisual(f,"style"),h=i.getName(u)||u+"",v=i.count();c[l]=t.getColorFromPalette(h,o,v)}})}})}};var qh=Math.PI;function l0(r,e){e=e||{},X(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new j,i=new pt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(i);var a=new dt({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 pt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(n);var o;return e.showSpinner&&(o=new Qo({shape:{startAngle:-qh/2,endAngle:-qh/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:qh*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:qh*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.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=r.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:r.getWidth(),height:r.getHeight()})},t.resize(),t}var XG=function(){function r(e,t,i,a){this._stageTaskMap=Y(),this.ecInstance=e,this.api=t,i=this._dataProcessorHandlers=i.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=i.concat(a)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(i){var a=i.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),a=i.context,n=!t&&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}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var i=this._pipelineMap.get(e.uid),a=e.getData(),n=a.count(),o=i.progressiveEnabled&&t.incrementalPrepareRender&&n>=i.threshold,s=e.get("large")&&n>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?n:null;e.pipelineContext=i.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,i=t._pipelineMap=Y();e.eachSeries(function(a){var n=a.getProgressive(),o=a.uid;i.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:n&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),t._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),i=this.api;w(this._allHandlers,function(a){var n=e.get(a.uid)||e.set(a.uid,{}),o="";Qt(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,n,t,i),a.overallReset&&this._createOverallStageTask(a,n,t,i)},this)},r.prototype.prepareView=function(e,t,i,a){var n=e.renderTask,o=n.context;o.model=t,o.ecModel=i,o.api=a,n.__block=!e.incrementalPrepareRender,this._pipe(t,n)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,i){this._performStageTasks(this._visualHandlers,e,t,i)},r.prototype._performStageTasks=function(e,t,i,a){a=a||{};var n=!1,o=this;w(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),p=f.seriesTaskMap,c=f.overallTask;if(c){var h,v=c.agentStubMap;v.each(function(m){s(a,m)&&(m.dirty(),h=!0)}),h&&c.dirty(),o.updatePayload(c,i);var d=o.getPerformArgs(c,a.block);v.each(function(m){m.perform(d)}),c.perform(d)&&(n=!0)}else p&&p.each(function(m,g){s(a,m)&&m.dirty();var y=o.getPerformArgs(m,a.block);y.skip=!l.performRawSeries&&t.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},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(i){t=i.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,i,a){var n=this,o=t.seriesTaskMap,s=t.seriesTaskMap=Y(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,a).each(f);function f(p){var c=p.uid,h=s.set(c,o&&o.get(c)||Nn({plan:QG,reset:$G,count:e5}));h.context={model:p,ecModel:i,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:n},n._pipe(p,h)}},r.prototype._createOverallStageTask=function(e,t,i,a){var n=this,o=t.overallTask=t.overallTask||Nn({reset:qG});o.context={ecModel:i,api:a,overallReset:e.overallReset,scheduler:n};var s=o.agentStubMap,l=o.agentStubMap=Y(),u=e.seriesType,f=e.getTargetSeries,p=!0,c=!1,h="";Qt(!e.createOnAllSeries,h),u?i.eachRawSeriesByType(u,v):f?f(i,a).each(v):(p=!1,w(i.getSeries(),v));function v(d){var m=d.uid,g=l.set(m,s&&s.get(m)||(c=!0,Nn({reset:KG,onDirty:JG})));g.context={model:d,overallProgress:p},g.agent=o,g.__block=p,n._pipe(d,g)}c&&o.dirty()},r.prototype._pipe=function(e,t){var i=e.uid,a=this._pipelineMap.get(i);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},r.wrapStageHandler=function(e,t){return Z(e)&&(e={overallReset:e,seriesType:r5(e)}),e.uid=_i("stageHandler"),t&&(e.visualType=t),e},r}();function qG(r){r.overallReset(r.ecModel,r.api,r.payload)}function KG(r){return r.overallProgress&&jG}function jG(){this.agent.dirty(),this.getDownstream().dirty()}function JG(){this.agent&&this.agent.dirty()}function QG(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function $G(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Ot(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?k(e,function(t,i){return ED(i)}):t5}var t5=ED(0);function ED(r){return function(e,t){var i=t.data,a=t.resetDefines[r];if(a&&a.dataEach)for(var n=e.start;n0&&h===u.length-c.length){var v=u.slice(0,h);v!=="data"&&(t.mainType=v,t[c.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(i[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:t,dataQuery:i,otherQuery:a}},r.prototype.filter=function(e,t){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=t.cptQuery,u=t.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,t.otherQuery,a,n));function f(p,c,h,v){return p[h]==null||c[v||h]===p[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}();var f0=["symbol","symbolSize","symbolRotate","symbolOffset"],FD=f0.concat(["symbolKeepAspect"]),GD={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var i={},a={},n=!1,o=0;o=0&&ps(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function kf(r,e,t){for(var i=e.type==="radial"?d5(r,e,t):v5(r,e,t),a=e.colorStops,n=0;n0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:vt(r)?[r]:z(r)?r:null}function Uf(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&m5(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(t){var a=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(t=k(t,function(n){return n/a}),i/=a)}return[t,i]}var g5=new Be(!0);function $h(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function qD(r){return typeof r=="string"&&r!=="none"}function tv(r){var e=r.fill;return e!=null&&e!=="none"}function KD(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function jD(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function ev(r,e,t){var i=Qu(e.image,e.__image,t);if(ol(i)){var a=r.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)*mo),n.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(n)}return a}}function y5(r,e,t,i){var a,n=$h(t),o=tv(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||g5,p=e.__dirty;if(!i){var c=t.fill,h=t.stroke,v=o&&!!c.colorStops,d=n&&!!h.colorStops,m=o&&!!c.image,g=n&&!!h.image,y=void 0,x=void 0,_=void 0,b=void 0,S=void 0;(v||d)&&(S=e.getBoundingRect()),v&&(y=p?kf(r,c,S):e.__canvasFillGradient,e.__canvasFillGradient=y),d&&(x=p?kf(r,h,S):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),m&&(_=p||!e.__canvasFillPattern?ev(r,c,e):e.__canvasFillPattern,e.__canvasFillPattern=_),g&&(b=p||!e.__canvasStrokePattern?ev(r,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),v?r.fillStyle=y:m&&(_?r.fillStyle=_:o=!1),d?r.strokeStyle=x:g&&(b?r.strokeStyle=b:n=!1)}var T=e.getGlobalScale();f.setScale(T[0],T[1],e.segmentIgnoreThreshold);var C,A;r.setLineDash&&t.lineDash&&(a=Uf(e),C=a[0],A=a[1]);var D=!0;(u||p&hn)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),D=!1),f.reset(),e.buildPath(f,e.shape,i),f.toStatic(),e.pathUpdated()),D&&f.rebuildPath(r,l?s:1),C&&(r.setLineDash(C),r.lineDashOffset=A),i||(t.strokeFirst?(n&&jD(r,t),o&&KD(r,t)):(o&&KD(r,t),n&&jD(r,t))),C&&r.setLineDash([])}function x5(r,e,t){var i=e.__image=Qu(t.image,e.__image,e,e.onload);if(!(!i||!ol(i))){var a=t.x||0,n=t.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),t.sWidth&&t.sHeight){var u=t.sx||0,f=t.sy||0;r.drawImage(i,u,f,t.sWidth,t.sHeight,a,n,o,s)}else if(t.sx&&t.sy){var u=t.sx,f=t.sy,p=o-u,c=s-f;r.drawImage(i,u,f,p,c,a,n,o,s)}else r.drawImage(i,a,n,o,s)}}function _5(r,e,t){var i,a=t.text;if(a!=null&&(a+=""),a){r.font=t.font||Xr,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var n=void 0,o=void 0;r.setLineDash&&t.lineDash&&(i=Uf(e),n=i[0],o=i[1]),n&&(r.setLineDash(n),r.lineDashOffset=o),t.strokeFirst?($h(t)&&r.strokeText(a,t.x,t.y),tv(t)&&r.fillText(a,t.x,t.y)):(tv(t)&&r.fillText(a,t.x,t.y),$h(t)&&r.strokeText(a,t.x,t.y)),n&&r.setLineDash([])}}var JD=["shadowBlur","shadowOffsetX","shadowOffsetY"],QD=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function aM(r,e,t,i,a){var n=!1;if(!i&&(t=t||{},e===t))return!1;if(i||e.opacity!==t.opacity){Fr(r,a),n=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?fa.opacity:o}(i||e.blend!==t.blend)&&(n||(Fr(r,a),n=!0),r.globalCompositeOperation=e.blend||fa.blend);for(var s=0;s0&&t.unfinished);t.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(t,i,a){if(!this[lr]){if(this._disposed){this.id;return}var n,o,s;if(K(i)&&(a=i.lazyUpdate,n=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[lr]=!0,!this._model||i){var l=new GA(this._api),u=this._theme,f=this._model=new Lh;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},w0);var p={seriesTransition:s,optionChanged:!0};if(a)this[Gr]={silent:n,updateParams:p},this[lr]=!1,this.getZr().wakeUp();else{try{El(this),Vn.update.call(this,null,p)}catch(c){throw this[Gr]=null,this[lr]=!1,c}this._ssr||this._zr.flush(),this[Gr]=null,this[lr]=!1,Ff.call(this,n),Gf.call(this,n)}}},e.prototype.setTheme=function(){},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||bt.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var i=this._zr.painter;return i.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(bt.svgSupported){var t=this._zr,i=t.storage.getDisplayList();return w(i,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var i=t.excludeComponents,a=this._model,n=[],o=this;w(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(t).toDataURL("image/"+(t&&t.type||"png"));return w(n,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var i=t.type==="svg",a=this.group,n=Math.min,o=Math.max,s=1/0;if(sv[a]){var l=s,u=s,f=-s,p=-s,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();w(cs,function(x,_){if(x.group===a){var b=i?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(J(t)),S=x.getDom().getBoundingClientRect();l=n(S.left,l),u=n(S.top,u),f=o(S.right,f),p=o(S.bottom,p),c.push({dom:b,left:S.left,top:S.top})}}),l*=h,u*=h,f*=h,p*=h;var v=f-l,d=p-u,m=We.createCanvas(),g=Pc(m,{renderer:i?"svg":"canvas"});if(g.resize({width:v,height:d}),i){var y="";return w(c,function(x){var _=x.left-l,b=x.top-u;y+=''+x.dom+""}),g.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return t.connectedBackgroundColor&&g.add(new pt({shape:{x:0,y:0,width:v,height:d},style:{fill:t.connectedBackgroundColor}})),w(c,function(x){var _=new Kt({style:{x:x.left*h-l,y:x.top*h-u,image:x.dom}});g.add(_)}),g.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,i){return y0(this,"convertToPixel",t,i)},e.prototype.convertFromPixel=function(t,i){return y0(this,"convertFromPixel",t,i)},e.prototype.containPixel=function(t,i){if(this._disposed){this.id;return}var a=this._model,n,o=Sn(a,t);return w(o,function(s,l){l.indexOf("Models")>=0&&w(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)n=n||!!f.containPoint(i);else if(l==="seriesModels"){var p=this._chartsMap[u.__viewId];p&&p.containPoint&&(n=n||p.containPoint(i,u))}},this)},this),!!n},e.prototype.getVisual=function(t,i){var a=this._model,n=Sn(a,t,{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?Nf(s,l,i):ya(s,i)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;w(G5,function(i){var a=function(n){var o=t.getModel(),s=n.target,l,u=i==="globalout";if(u?l={}:s&&qi(s,function(v){var d=et(v);if(d&&d.dataIndex!=null){var m=d.dataModel||o.getSeriesByIndex(d.seriesIndex);return l=m&&m.getDataParams(d.dataIndex,d.dataType,s)||{},!0}else if(d.eventData)return l=N({},d.eventData),!0},!0),l){var f=l.componentType,p=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",p=l.seriesIndex);var c=f&&p!=null&&o.getComponent(f,p),h=c&&t[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];l.event=n,l.type=i,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:c,view:h},t.trigger(i,l)}};a.zrEventfulCallAtLast=!0,t._zr.on(i,a,t)}),w(Hf,function(i,a){t._messageCenter.on(a,function(n){this.trigger(a,n)},t)}),w(["selectchanged"],function(i){t._messageCenter.on(i,function(a){this.trigger(i,a)},t)}),WD(this._messageCenter,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 t=this.getDom();t&&Ag(this.getDom(),D0,"");var i=this,a=i._api,n=i._model;w(i._componentsViews,function(o){o.dispose(n,a)}),w(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 cs[i.id]},e.prototype.resize=function(t){if(!this[lr]){if(this._disposed){this.id;return}this._zr.resize(t);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var a=i.resetOption("media"),n=t&&t.silent;this[Gr]&&(n==null&&(n=this[Gr].silent),a=!0,this[Gr]=null),this[lr]=!0;try{a&&El(this),Vn.update.call(this,{type:"resize",animation:N({duration:0},t&&t.animation)})}catch(o){throw this[lr]=!1,o}this[lr]=!1,Ff.call(this,n),Gf.call(this,n)}}},e.prototype.showLoading=function(t,i){if(this._disposed){this.id;return}if(K(t)&&(i=t,t=""),t=t||"default",this.hideLoading(),!!T0[t]){var a=T0[t](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(t){var i=N({},t);return i.type=Hf[t.type],i},e.prototype.dispatchAction=function(t,i){if(this._disposed){this.id;return}if(K(i)||(i={silent:!!i}),!!nv[t.type]&&this._model){if(this[lr]){this._pendingActions.push(t);return}var a=i.silent;_0.call(this,t,a);var n=i.flush;n?this._zr.flush():n!==!1&&bt.browser.weChat&&this._throttledZrFlush(),Ff.call(this,a),Gf.call(this,a)}},e.prototype.updateLabelLayout=function(){Ci.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var i=t.seriesIndex,a=this.getModel(),n=a.getSeriesByIndex(i);n.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){El=function(p){var c=p._scheduler;c.restorePipelines(p._model),c.prepareStageTasks(),g0(p,!0),g0(p,!1),c.plan()},g0=function(p,c){for(var h=p._model,v=p._scheduler,d=c?p._componentsViews:p._chartsViews,m=c?p._componentsMap:p._chartsMap,g=p._zr,y=p._api,x=0;xc.get("hoverLayerThreshold")&&!bt.node&&!bt.worker&&c.eachSeries(function(m){if(!m.preventUsingHoverLayer){var g=p._chartsMap[m.__viewId];g.__alive&&g.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(p,c){var h=p.get("blendMode")||null;c.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function s(p,c){if(!p.preventAutoZ){var h=p.get("z")||0,v=p.get("zlevel")||0;c.eachRendered(function(d){return l(d,h,v,-1/0),!0})}}function l(p,c,h,v){var d=p.getTextContent(),m=p.getTextGuideLine(),g=p.isGroup;if(g)for(var y=p.childrenRef(),x=0;x0?{duration:d,delay:h.get("delay"),easing:h.get("easing")}:null;c.eachRendered(function(g){if(g.states&&g.states.emphasis){if(Wa(g))return;if(g instanceof at&&TC(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(v){g.stateTransition=m;var x=g.getTextContent(),_=g.getTextGuideLine();x&&(x.stateTransition=m),_&&(_.stateTransition=m)}g.__dirty&&a(g)}})}yM=function(p){return new(function(c){E(h,c);function h(){return c!==null&&c.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return p._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var d=v.__ecComponentInfo;if(d!=null)return p._model.getComponent(d.mainType,d.index);v=v.parent}},h.prototype.enterEmphasis=function(v,d){rr(v,d),Ai(p)},h.prototype.leaveEmphasis=function(v,d){ir(v,d),Ai(p)},h.prototype.enterBlur=function(v){Xc(v),Ai(p)},h.prototype.leaveBlur=function(v){of(v),Ai(p)},h.prototype.enterSelect=function(v){Qg(v),Ai(p)},h.prototype.leaveSelect=function(v){$g(v),Ai(p)},h.prototype.getModel=function(){return p.getModel()},h.prototype.getViewOfComponentModel=function(v){return p.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return p.getViewOfSeriesModel(v)},h}(Ih))(p)},IM=function(p){function c(h,v){for(var d=0;d=0)){_M.push(t);var n=u0.wrapStageHandler(t,a);n.__prio=e,n.__raw=t,r.push(n)}}function E0(r,e){T0[r]=e}function qat(r){Mm({createCanvas:r})}function UM(r,e,t){var i=v0("registerMap");i&&i(r,e,t)}function Kat(r){var e=v0("getMap");return e&&e(r)}var VM=oD;Bn(C0,MD);Bn(lv,LD);Bn(lv,ID);Bn(C0,GD);Bn(lv,HD);Bn(wM,h0);M0(Eh);L0(E5,Wy);E0("default",l0);gr({type:Ln,event:Ln,update:Ln},qt);gr({type:af,event:af,update:af},qt);gr({type:fl,event:fl,update:fl},qt);gr({type:nf,event:nf,update:nf},qt);gr({type:pl,event:pl,update:pl},qt);RM("light",ND);RM("dark",VD);var jat={};var BM=[],Z5={registerPreprocessor:M0,registerProcessor:L0,registerPostInit:OM,registerPostUpdate:NM,registerUpdateLifecycle:uv,registerAction:gr,registerCoordinateSystem:zM,registerLayout:kM,registerVisual:Bn,registerTransform:VM,registerLoading:E0,registerMap:UM,registerImpl:cM,PRIORITY:TM,ComponentModel:mt,ComponentView:Et,SeriesModel:Lt,ChartView:Tt,registerComponentModel:function(r){mt.registerClass(r)},registerComponentView:function(r){Et.registerClass(r)},registerSeriesModel:function(r){Lt.registerClass(r)},registerChartView:function(r){Tt.registerClass(r)},registerSubTypeDefaulter:function(r,e){mt.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){_g(r,e)}};function _t(r){if(z(r)){w(r,function(e){_t(e)});return}it(BM,r)>=0||(BM.push(r),Z(r)&&(r={install:r}),r.install(Z5))}function Wf(r){return r==null?0:r.length||1}function FM(r){return r}var X5=function(){function r(e,t,i,a,n,o){this._old=e,this._new=t,this._oldKeyGetter=i||FM,this._newKeyGetter=a||FM,this.context=n,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,i={},a=new Array(e.length),n=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,i,n,"_newKeyGetter");for(var o=0;o1){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)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,i={},a={},n=[],o=[];this._initIndexMap(e,i,n,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(p===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(p===1&&c===1)this._update&&this._update(f,u),a[l]=null;else if(p>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[l]=null;else if(p>1)for(var h=0;h1)for(var s=0;s30}var Yf=K,Fn=k,$5=typeof Int32Array>"u"?Array:Int32Array,tH="e\0\0",HM=-1,eH=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],rH=["_approximateExtent"],WM,cv,Zf,Xf,k0,hv,U0,iH=function(){function r(e,t){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","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i,a=!1;pv(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=t)){var i=this._store,a=i.getProvider();this._updateOrdinalMeta();var n=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Xe;if(l&&!a.pure)for(var u=[],f=e;f0},r.prototype.ensureUniqueItemVisual=function(e,t){var i=this._itemVisuals,a=i[e];a||(a=i[e]={});var n=a[t];return n==null&&(n=this.getVisual(t),z(n)?n=n.slice():Yf(n)&&(n=N({},n)),a[t]=n),n},r.prototype.setItemVisual=function(e,t,i){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,Yf(t)?N(a,t):a[t]=i},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){Yf(e)?N(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,i){this._itemLayouts[e]=i?N(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var i=this.hostModel&&this.hostModel.seriesIndex;ef(i,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){w(this._graphicEls,function(i,a){i&&e&&e.call(t,i,a)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:Fn(this.dimensions,this._getDimInfo,this),this.hostModel)),k0(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var i=this[e];Z(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=i.apply(this,arguments);return t.apply(this,[a].concat(Au(arguments)))})},r.internalField=function(){WM=function(e){var t=e._invertedIndicesMap;w(t,function(i,a){var n=e._dimInfos[a],o=n.ordinalMeta,s=e._store;if(o){i=t[a]=new $5(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),a[t]=l}}}(),r}(),se=iH;var cL={};ui(cL,{createDimensions:()=>YM,createList:()=>UH,createScale:()=>BH,createSymbol:()=>Ht,createTextStyle:()=>GH,dataStack:()=>VH,enableHoverEmphasis:()=>gi,getECData:()=>et,getLayoutRect:()=>Gt,mixinAxisModelCommonMethods:()=>FH});function YM(r,e){return Di(r,e).dimensions}function Di(r,e){Cl(r)||(r=Al(r)),e=e||{};var t=e.coordDimensions||[],i=e.dimensionsDefine||r.dimensionsDefine||[],a=Y(),n=[],o=nH(r,t,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&z0(o),l=i===r.dimensionsDefine,u=l?N0(r):O0(i),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var p=Y(f),c=new t0(o),h=0;h0&&(i.name=a+(n-1)),n++,e.set(a,n)}}function nH(r,e,t,i){var a=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,i||0);return w(e,function(n){var o;K(n)&&(o=n.dimsDef)&&(a=Math.max(a,o.length))}),a}function oH(r,e,t){if(t||e.hasKey(r)){for(var i=0;e.hasKey(r+i);)i++;r+=i}return e.set(r,!0),r}var sH=function(){function r(e){this.coordSysDims=[],this.axisMap=Y(),this.categoryAxisMap=Y(),this.coordSysName=e}return r}();function ZM(r){var e=r.get("coordinateSystem"),t=new sH(e),i=lH[e];if(i)return i(r,t,t.axisMap,t.categoryAxisMap),t}var lH={cartesian2d:function(r,e,t,i){var a=r.getReferringComponents("xAxis",Xt).models[0],n=r.getReferringComponents("yAxis",Xt).models[0];e.coordSysDims=["x","y"],t.set("x",a),t.set("y",n),Rl(a)&&(i.set("x",a),e.firstCategoryDimIndex=0),Rl(n)&&(i.set("y",n),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,i){var a=r.getReferringComponents("singleAxis",Xt).models[0];e.coordSysDims=["single"],t.set("single",a),Rl(a)&&(i.set("single",a),e.firstCategoryDimIndex=0)},polar:function(r,e,t,i){var a=r.getReferringComponents("polar",Xt).models[0],n=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",n),t.set("angle",o),Rl(n)&&(i.set("radius",n),e.firstCategoryDimIndex=0),Rl(o)&&(i.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,i){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,i){var a=r.ecModel,n=a.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=n.dimensions.slice();w(n.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];t.set(f,u),Rl(u)&&(i.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Rl(r){return r.get("type")==="category"}function vv(r,e,t){t=t||{};var i=t.byIndex,a=t.stackedCoordDimension,n,o,s;uH(e)?n=e:(o=e.schema,n=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,p,c;if(w(n,function(y,x){B(y)&&(n[x]=y={name:y}),l&&!y.isExtraCoord&&(!i&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(f=y))}),f&&!i&&!u&&(i=!0),f){p="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var h=f.coordDim,v=f.type,d=0;w(n,function(y){y.coordDim===h&&d++});var m={name:p,coordDim:h,coordDimIndex:d,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},g={name:c,coordDim:c,coordDimIndex:d+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(c,v),g.storeDimIndex=s.ensureCalculationDimension(p,v)),o.appendCalculationDimension(m),o.appendCalculationDimension(g)):(n.push(m),n.push(g))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:c,stackResultDimension:p}}function uH(r){return!pv(r.schema)}function yr(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function Ol(r,e){return yr(r,e)?r.getCalculationInfo("stackResultDimension"):e}function fH(r,e){var t=r.get("coordinateSystem"),i=ga.get(t),a;return e&&e.coordSysDims&&(a=k(e.coordSysDims,function(n){var o={name:n},s=e.axisMap.get(n);if(s){var l=s.get("type");o.type=hs(l)}return o})),a||(a=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),a}function pH(r,e,t){var i,a;return t&&w(r,function(n,o){var s=n.coordDim,l=t.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&&(r[i].otherDims.itemName=0),i}function cH(r,e,t){t=t||{};var i=e.getSourceManager(),a,n=!1;r?(n=!0,a=Al(r)):(a=i.getSource(),n=a.sourceFormat===Xe);var o=ZM(e),s=fH(e,o),l=t.useEncodeDefaulter,u=Z(l)?l:l?tt(Ch,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!n},p=Di(a,f),c=pH(p.dimensions,t.createInvertedIndices,o),h=n?null:i.getSharedDataStore(p),v=vv(e,{schema:p,store:h}),d=new se(p,e);d.setCalculationInfo(v);var m=c!=null&&hH(a)?function(g,y,x,_){return _===c?x:this.defaultDimValueGetter(g,y,x,_)}:null;return d.hasItemOption=!1,d.initData(n?a:h,null,m),d}function hH(r){if(r.sourceFormat===Xe){var e=vH(r.data||[]);return!z(Bi(e))}}function vH(r){for(var e=0;et[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var i=this._extent;isNaN(e)||(i[0]=e),isNaN(t)||(i[1]=t)},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();wn(XM);var Hr=XM;var dH=0,mH=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++dH}return r.createByAxisModel=function(e){var t=e.option,i=t.data,a=i&&k(i,gH);return new r({categories:a,needCollect:!a,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,i=this._needCollect;if(!B(e)&&!i)return e;if(i&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var a=this._getOrCreateMap();return t=a.get(e),t==null&&(i?(t=this.categories.length,this.categories[t]=e,a.set(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Y(this.categories))},r}();function gH(r){return K(r)&&r.value!=null?r.value:r+""}var qf=mH;function Kf(r){return r.type==="interval"||r.type==="log"}function KM(r,e,t,i){var a={},n=r[1]-r[0],o=a.interval=el(n/e,!0);t!=null&&oi&&(o=a.interval=i);var s=a.intervalPrecision=V0(o),l=a.niceTickExtent=[Zt(Math.ceil(r[0]/o)*o,s),Zt(Math.floor(r[1]/o)*o,s)];return yH(l,r),a}function dv(r){var e=Math.pow(10,tl(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Zt(t*e)}function V0(r){return Ke(r)+2}function qM(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function yH(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),qM(r,0,e),qM(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function Gn(r,e){return r>=e[0]&&r<=e[1]}function Hn(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function Wn(r,e){return r*(e[1]-e[0])+e[0]}var jM=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;i.type="ordinal";var a=i.getSetting("ordinalMeta");return a||(a=new qf({})),z(a)&&(a=new qf({categories:k(a,function(n){return K(n)?n.value:n})})),i._ordinalMeta=a,i._extent=i.getSetting("extent")||[0,a.categories.length-1],i}return e.prototype.parse=function(t){return t==null?NaN:B(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Gn(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Hn(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Wn(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],i=this._extent,a=i[0];a<=i[1];)t.push({value:a}),a++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=t.ordinalNumbers,a=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,i.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Hr);Hr.registerClass(jM);var jf=jM;var vs=Zt,JM=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Gn(t,this._extent)},e.prototype.normalize=function(t){return Hn(t,this._extent)},e.prototype.scale=function(t){return Wn(t,this._extent)},e.prototype.setExtent=function(t,i){var a=this._extent;isNaN(t)||(a[0]=parseFloat(t)),isNaN(i)||(a[1]=parseFloat(i))},e.prototype.unionExtent=function(t){var i=this._extent;t[0]i[1]&&(i[1]=t[1]),this.setExtent(i[0],i[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=V0(t)},e.prototype.getTicks=function(t){var i=this._interval,a=this._extent,n=this._niceExtent,o=this._intervalPrecision,s=[];if(!i)return s;var l=1e4;a[0]l)return[];var f=s.length?s[s.length-1].value:n[1];return a[1]>f&&(t?s.push({value:vs(f+i,o)}):s.push({value:a[1]})),s},e.prototype.getMinorTicks=function(t){for(var i=this.getTicks(!0),a=[],n=this.getExtent(),o=1;on[0]&&h0&&(n=n===null?s:Math.min(n,s))}t[i]=n}}return t}function W0(r){var e=_H(r),t=[];return w(r,function(i){var a=i.coordinateSystem,n=a.getBaseAxis(),o=n.getExtent(),s;if(n.type==="category")s=n.getBandWidth();else if(n.type==="value"||n.type==="time"){var l=n.dim+"_"+n.index,u=e[l],f=Math.abs(o[1]-o[0]),p=n.scale.getExtent(),c=Math.abs(p[1]-p[0]);s=u?f/c*u:f}else{var h=i.getData();s=Math.abs(o[1]-o[0])/h.count()}var v=H(i.get("barWidth"),s),d=H(i.get("barMaxWidth"),s),m=H(i.get("barMinWidth")||(iL(i)?.5:1),s),g=i.get("barGap"),y=i.get("barCategoryGap");t.push({bandWidth:s,barWidth:v,barMaxWidth:d,barMinWidth:m,barGap:g,barCategoryGap:y,axisKey:G0(n),stackId:F0(i)})}),tL(t)}function tL(r){var e={};w(r,function(i,a){var n=i.axisKey,o=i.bandWidth,s=e[n]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[n]=s;var u=i.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=i.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var p=i.barMaxWidth;p&&(l[u].maxWidth=p);var c=i.barMinWidth;c&&(l[u].minWidth=c);var h=i.barGap;h!=null&&(s.gap=h);var v=i.barCategoryGap;v!=null&&(s.categoryGap=v)});var t={};return w(e,function(i,a){t[a]={};var n=i.stacks,o=i.bandWidth,s=i.categoryGap;if(s==null){var l=ft(n).length;s=Math.max(35-l*4,15)+"%"}var u=H(s,o),f=H(i.gap,1),p=i.remainedWidth,c=i.autoWidthCount,h=(p-u)/(c+(c-1)*f);h=Math.max(h,0),w(n,function(g){var y=g.maxWidth,x=g.minWidth;if(g.width){var _=g.width;y&&(_=Math.min(_,y)),x&&(_=Math.max(_,x)),g.width=_,p-=_+f*_,c--}else{var _=h;y&&y<_&&(_=Math.min(y,p)),x&&x>_&&(_=x),_!==h&&(g.width=_,p-=_+f*_,c--)}}),h=(p-u)/(c+(c-1)*f),h=Math.max(h,0);var v=0,d;w(n,function(g,y){g.width||(g.width=h),d=g,v+=g.width*(1+f)}),d&&(v-=d.width*f);var m=-v/2;w(n,function(g,y){t[a][y]=t[a][y]||{bandWidth:o,offset:m,width:g.width},m+=g.width*(1+f)})}),t}function eL(r,e,t){if(r&&e){var i=r[G0(e)];return i!=null&&t!=null?i[F0(t)]:i}}function gv(r,e){var t=H0(r,e),i=W0(t);w(t,function(a){var n=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=F0(a),u=i[G0(s)][l],f=u.offset,p=u.width;n.setLayout({bandWidth:u.bandWidth,offset:f,size:p})})}function yv(r){return{seriesType:r,plan:ni(),reset:function(e){if(rL(e)){var t=e.getData(),i=e.coordinateSystem,a=i.getBaseAxis(),n=i.getOtherAxis(a),o=t.getDimensionIndex(t.mapDimension(n.dim)),s=t.getDimensionIndex(t.mapDimension(a.dim)),l=e.get("showBackground",!0),u=t.mapDimension(n.dim),f=t.getCalculationInfo("stackResultDimension"),p=yr(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),c=n.isHorizontal(),h=SH(a,n),v=iL(e),d=e.get("barMinHeight")||0,m=f&&t.getDimensionIndex(f),g=t.getLayout("size"),y=t.getLayout("offset");return{progress:function(x,_){for(var b=x.count,S=v&&xr(b*3),T=v&&l&&xr(b*3),C=v&&xr(b),A=i.master.getRect(),D=c?A.width:A.height,M,L=_.getStore(),I=0;(M=x.next())!=null;){var P=L.get(p?m:o,M),R=L.get(s,M),O=h,V=void 0;p&&(V=+P-L.get(o,M));var U=void 0,F=void 0,q=void 0,$=void 0;if(c){var st=i.dataToPoint([P,R]);if(p){var ht=i.dataToPoint([V,R]);O=ht[0]}U=O,F=st[1]+y,q=st[0]-O,$=g,Math.abs(q)>>1;r[a][1]a&&(this._approxInterval=a);var s=xv.length,l=Math.min(bH(xv,this._approxInterval,0,s),s-1);this._interval=xv[l][1],this._minLevelUnit=xv[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return vt(t)?t:+Oe(t)},e.prototype.contain=function(t){return Gn(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Hn(this.parse(t),this._extent)},e.prototype.scale=function(t){return Wn(t,this._extent)},e.type="time",e}(Wr),xv=[["second",yh],["minute",xh],["hour",xl],["quarter-day",xl*6],["half-day",xl*12],["day",ei*1.2],["half-week",ei*3.5],["week",ei*7],["month",ei*31],["quarter",ei*95],["half-year",wy/2],["year",wy]];function wH(r,e,t,i){var a=Oe(e),n=Oe(t),o=function(v){return Ay(a,v,i)===Ay(n,v,i)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},p=function(){return f()&&o("minute")},c=function(){return p()&&o("second")},h=function(){return c()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return p();case"second":return c();case"millisecond":return h()}}function TH(r,e){return r/=ei,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function CH(r){var e=30*ei;return r/=e,r>6?6:r>3?3:r>2?2:1}function AH(r){return r/=xl,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function aL(r,e){return r/=e?xh:yh,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function DH(r){return el(r,!0)}function MH(r,e,t){var i=new Date(r);switch(ns(e)){case"year":case"month":i[Dy(t)](0);case"day":i[My(t)](1);case"hour":i[Ly(t)](0);case"minute":i[Iy(t)](0);case"second":i[Ey(t)](0),i[Py(t)](0)}return i.getTime()}function LH(r,e,t,i){var a=1e4,n=Cy,o=0;function s(D,M,L,I,P,R,O){for(var V=new Date(M),U=M,F=V[I]();U1&&R===0&&L.unshift({value:L[0].value-U})}}for(var R=0;R=i[0]&&y<=i[1]&&p++)}var x=(i[1]-i[0])/e;if(p>x*1.5&&c>x/1.5||(u.push(m),p>x||r===n[h]))break}f=[]}}}for(var _=wt(k(u,function(D){return wt(D,function(M){return M.value>=i[0]&&M.value<=i[1]&&!M.notAdd})}),function(D){return D.length>0}),b=[],S=_.length-1,h=0;h<_.length;++h)for(var T=_[h],C=0;C0;)n*=10;var s=[Zt(PH(i[0]/n)*n),Zt(EH(i[1]/n)*n)];this._interval=n,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){Jf.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=Ji(t)/Ji(this.base),Gn(t,this._extent)},e.prototype.normalize=function(t){return t=Ji(t)/Ji(this.base),Hn(t,this._extent)},e.prototype.scale=function(t){return t=Wn(t,this._extent),Sv(this.base,t)},e.type="log",e}(Hr),sL=Y0.prototype;sL.getMinorTicks=Jf.getMinorTicks;sL.getLabel=Jf.getLabel;function bv(r,e){return IH(r,Ke(e))}Hr.registerClass(Y0);var lL=Y0;var RH=function(){function r(e,t,i){this._prepareParams(e,t,i)}return r.prototype._prepareParams=function(e,t,i){i[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var c=this._determinedMin,h=this._determinedMax;return c!=null&&(s=c,u=!0),h!=null&&(l=h,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:p}},r.prototype.modifyDataMinMax=function(e,t){this[NH[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var i=OH[e];this[i]=t},r.prototype.freeze=function(){this.frozen=!0},r}();var OH={min:"_determinedMin",max:"_determinedMax"},NH={min:"_dataMin",max:"_dataMax"};function Tv(r,e,t){var i=r.rawExtentInfo;return i||(i=new RH(r,e,t),r.rawExtentInfo=i,i)}function wv(r,e){return e==null?null:Ra(e)?NaN:r.parse(e)}function Z0(r,e){var t=r.type,i=Tv(r,e,r.getExtent()).calculate();r.setBlank(i.isBlank);var a=i.min,n=i.max,o=e.ecModel;if(o&&t==="time"){var s=H0("bar",o),l=!1;if(w(s,function(p){l=l||p.getBaseAxis()===e.axis}),l){var u=W0(s),f=zH(a,n,e,u);a=f.min,n=f.max}}return{extent:[a,n],fixMin:i.minFixed,fixMax:i.maxFixed}}function zH(r,e,t,i){var a=t.axis.getExtent(),n=a[1]-a[0],o=eL(i,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;w(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;w(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-r,p=1-(s+l)/n,c=f/p-f;return e+=c*(l/u),r-=c*(s/u),{min:r,max:e}}function Mi(r,e){var t=e,i=Z0(r,t),a=i.extent,n=t.get("splitNumber");r instanceof lL&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l=o==="interval"||o==="time";r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:n,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function xa(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new jf({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new _v({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Hr.getClass(e)||Wr)}}function uL(r){var e=r.scale.getExtent(),t=e[0],i=e[1];return!(t>0&&i>0||t<0&&i<0)}function Nl(r){var e=r.getLabelModel().get("formatter"),t=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(i){return function(a,n){return r.scale.getFormattedLabel(a,n,i)}}(e):B(e)?function(i){return function(a){var n=r.scale.getLabel(a),o=i.replace("{value}",n??"");return o}}(e):Z(e)?function(i){return function(a,n){return t!=null&&(n=a.value-t),i(Qf(r,a),n,a.level!=null?{level:a.level}:null)}}(e):function(i){return r.scale.getLabel(i)}}function Qf(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function fL(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var i,a,n=t.getExtent();t instanceof jf?a=t.count():(i=t.getTicks(),a=i.length);var o=r.getLabelModel(),s=Nl(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;fr[1]&&(r[1]=a[1])})}var Li=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r}();function UH(r){return ke(null,r)}var VH={isDimensionStacked:yr,enableDataStack:vv,getStackedDimension:Ol};function BH(r,e){var t=e;e instanceof Mt||(t=new Mt(e));var i=xa(t);return i.setExtent(r[0],r[1]),Mi(i,t),i}function FH(r){Wt(r,Li)}function GH(r,e){return e=e||{},Ut(r,null,null,e.state!=="normal")}var HH=1e-8;function hL(r,e){return Math.abs(r-e)a&&(i=o,a=l)}if(i)return YH(i.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var i=this._rect;if(i&&!t)return i;var a=[1/0,1/0],n=[-1/0,-1/0],o=this.geometries;return w(o,function(s){s.type==="polygon"?dL(s.exterior,a,n,t):w(s.points,function(l){dL(l,a,n,t)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(n[0])&&isFinite(n[1])||(a[0]=a[1]=n[0]=n[1]=0),i=new rt(a[0],a[1],n[0]-a[0],n[1]-a[1]),t||(this._rect=i),i},e.prototype.contain=function(t){var i=this.getBoundingRect(),a=this.geometries;if(!i.contain(t[0],t[1]))return!1;t:for(var n=0,o=a.length;n>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=n,a=s,n=l,i.push([s/t,l/t])}return i}function tp(r,e){return r=ZH(r),k(wt(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var i=t.properties,a=t.geometry,n=[];switch(a.type){case"Polygon":var o=a.coordinates;n.push(new q0(o[0],o.slice(1)));break;case"MultiPolygon":w(a.coordinates,function(l){l[0]&&n.push(new q0(l[0],l.slice(1)))});break;case"LineString":n.push(new K0([a.coordinates]));break;case"MultiLineString":n.push(new K0(a.coordinates))}var s=new Dv(i[e||"name"],n,i.cp);return s.properties=i,s})}var xL={};ui(xL,{MAX_SAFE_INTEGER:()=>Zu,asc:()=>_e,getPercentWithPrecision:()=>eT,getPixelPrecision:()=>$s,getPrecision:()=>Ke,getPrecisionSafe:()=>bg,isNumeric:()=>Uo,isRadianAroundZero:()=>ko,linearMap:()=>zt,nice:()=>el,numericToNumber:()=>Pr,parseDate:()=>Oe,quantile:()=>rl,quantity:()=>Rc,quantityExponent:()=>tl,reformIntervals:()=>qu,remRadian:()=>Xu,round:()=>Zt});var _L={};ui(_L,{format:()=>Ka,parse:()=>Oe});var SL={};ui(SL,{Arc:()=>Qo,BezierCurve:()=>Ha,BoundingRect:()=>rt,Circle:()=>ze,CompoundPath:()=>En,Ellipse:()=>jo,Group:()=>j,Image:()=>Kt,IncrementalDisplayable:()=>oh,Line:()=>re,LinearGradient:()=>yi,Polygon:()=>oe,Polyline:()=>ae,RadialGradient:()=>dl,Rect:()=>pt,Ring:()=>Ga,Sector:()=>pe,Text:()=>dt,clipPointsByRect:()=>cf,clipRectByRect:()=>cy,createIcon:()=>Hi,extendPath:()=>py,extendShape:()=>fy,getShapeClass:()=>es,getTransform:()=>ti,initProps:()=>Nt,makeImage:()=>ff,makePath:()=>Pn,mergePath:()=>Ze,registerShape:()=>$r,resizePath:()=>uh,updateProps:()=>gt});var bL={};ui(bL,{addCommas:()=>Sf,capitalFirst:()=>wA,encodeHTML:()=>Ue,formatTime:()=>bA,formatTpl:()=>Sl,getTextRect:()=>Ry,getTooltipMarker:()=>bh,normalizeCssArray:()=>ri,toCamelCase:()=>_l,truncateText:()=>Uc});var wL={};ui(wL,{bind:()=>W,clone:()=>J,curry:()=>tt,defaults:()=>X,each:()=>w,extend:()=>N,filter:()=>wt,indexOf:()=>it,inherits:()=>Cu,isArray:()=>z,isFunction:()=>Z,isObject:()=>K,isString:()=>B,map:()=>k,merge:()=>nt,reduce:()=>Me});var ep=ot();function TL(r){return r.type==="category"?XH(r):KH(r)}function CL(r,e){return r.type==="category"?qH(r,e):{ticks:k(r.scale.getTicks(),function(t){return t.value})}}function XH(r){var e=r.getLabelModel(),t=AL(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function AL(r,e){var t=DL(r,"labels"),i=Cv(e),a=ML(t,i);if(a)return a;var n,o;return Z(i)?n=PL(r,i):(o=i==="auto"?jH(r):i,n=EL(r,o)),LL(t,i,{labels:n,labelCategoryInterval:o})}function qH(r,e){var t=DL(r,"ticks"),i=Cv(e),a=ML(t,i);if(a)return a;var n,o;if((!e.get("show")||r.scale.isBlank())&&(n=[]),Z(i))n=PL(r,i,!0);else if(i==="auto"){var s=AL(r,r.getLabelModel());o=s.labelCategoryInterval,n=k(s.labels,function(l){return l.tickValue})}else o=i,n=EL(r,o,!0);return LL(t,i,{ticks:n,tickCategoryInterval:o})}function KH(r){var e=r.scale.getTicks(),t=Nl(r);return{labels:k(e,function(i,a){return{level:i.level,formattedLabel:t(i,a),rawLabel:r.scale.getLabel(i),tickValue:i.value}})}}function DL(r,e){return ep(r)[e]||(ep(r)[e]=[])}function ML(r,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(o/40)));for(var l=n[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(i)),p=Math.abs(u*Math.sin(i)),c=0,h=0;l<=n[1];l+=s){var v=0,d=0,m=ua(t({value:l}),e.font,"center","top");v=m.width*1.3,d=m.height*1.3,c=Math.max(c,v,7),h=Math.max(h,d,7)}var g=c/f,y=h/p;isNaN(g)&&(g=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(g,y))),_=ep(r.model),b=r.getExtent(),S=_.lastAutoInterval,T=_.lastTickCount;return S!=null&&T!=null&&Math.abs(S-x)<=1&&Math.abs(T-o)<=1&&S>x&&_.axisExtent0===b[0]&&_.axisExtent1===b[1]?x=S:(_.lastTickCount=o,_.lastAutoInterval=x,_.axisExtent0=b[0],_.axisExtent1=b[1]),x}function JH(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function EL(r,e,t){var i=Nl(r),a=r.scale,n=a.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=n[0],f=a.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var p=Av(r),c=o.get("showMinLabel")||p,h=o.get("showMaxLabel")||p;c&&u!==n[0]&&d(n[0]);for(var v=u;v<=n[1];v+=l)d(v);h&&v-l!==n[1]&&d(n[1]);function d(m){var g={value:m};s.push(t?m:{formattedLabel:i(g),rawLabel:a.getLabel(g),tickValue:m})}return s}function PL(r,e,t){var i=r.scale,a=Nl(r),n=[];return w(i.getTicks(),function(o){var s=i.getLabel(o),l=o.value;e(o.value,s)&&n.push(t?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),n}var RL=[0,1],QH=function(){function r(e,t,i){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=i||[0,0]}return r.prototype.contain=function(e){var t=this._extent,i=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=i&&e<=a},r.prototype.containData=function(e){return this.scale.contain(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return $s(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var i=this._extent;i[0]=e,i[1]=t},r.prototype.dataToCoord=function(e,t){var i=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(i=i.slice(),OL(i,a.count())),zt(e,RL,i,t)},r.prototype.coordToData=function(e,t){var i=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(i=i.slice(),OL(i,a.count()));var n=zt(e,i,RL,t);return this.scale.scale(n)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),i=CL(this,t),a=i.ticks,n=k(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return $H(this,n,o,e.clamp),n},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var i=this.scale.getMinorTicks(t),a=k(i,function(n){return k(n,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(){return TL(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),i=t[1]-t[0]+(this.onBand?1:0);i===0&&(i=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/i},r.prototype.calculateCategoryInterval=function(){return IL(this)},r}();function OL(r,e){var t=r[1]-r[0],i=e,a=t/i/2;r[0]+=a,r[1]-=a}function $H(r,e,t,i){var a=e.length;if(!r.onBand||t||!a)return;var n=r.getExtent(),o,s;if(a===1)e[0].coord=n[0],o=e[1]={coord:n[1]};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;w(e,function(h){h.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-e[a-1].tickValue,o={coord:e[a-1].coord+u*s},e.push(o)}var p=n[0]>n[1];c(e[0].coord,n[0])&&(i?e[0].coord=n[0]:e.shift()),i&&c(n[0],e[0].coord)&&e.unshift({coord:n[0]}),c(n[1],o.coord)&&(i?o.coord=n[1]:e.pop()),i&&c(o.coord,n[1])&&e.push({coord:n[1]});function c(h,v){return h=Zt(h),v=Zt(v),p?h>v:ha&&(a+=rp);var h=Math.atan2(s,o);if(h<0&&(h+=rp),h>=i&&h<=a||h+rp>=i&&h+rp<=a)return l[0]=f,l[1]=p,u-t;var v=t*Math.cos(i)+r,d=t*Math.sin(i)+e,m=t*Math.cos(a)+r,g=t*Math.sin(a)+e,y=(v-o)*(v-o)+(d-s)*(d-s),x=(m-o)*(m-o)+(g-s)*(g-s);return y0){e=e/180*Math.PI,$i.fromArray(r[0]),ne.fromArray(r[1]),be.fromArray(r[2]),St.sub(Sa,$i,ne),St.sub(_a,be,ne);var t=Sa.len(),i=_a.len();if(!(t<.001||i<.001)){Sa.scale(1/t),_a.scale(1/i);var a=Sa.dot(_a),n=Math.cos(e);if(n1&&St.copy(_r,be),_r.toArray(r[1])}}}}function kL(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,$i.fromArray(r[0]),ne.fromArray(r[1]),be.fromArray(r[2]),St.sub(Sa,ne,$i),St.sub(_a,be,ne);var i=Sa.len(),a=_a.len();if(!(i<.001||a<.001)){Sa.scale(1/i),_a.scale(1/a);var n=Sa.dot(e),o=Math.cos(t);if(n=l)St.copy(_r,be);else{_r.scaleAndAdd(_a,s/Math.tan(Math.PI/2-f));var p=be.x!==ne.x?(_r.x-ne.x)/(be.x-ne.x):(_r.y-ne.y)/(be.y-ne.y);if(isNaN(p))return;p<0?St.copy(_r,ne):p>1&&St.copy(_r,be)}_r.toArray(r[1])}}}}function NL(r,e,t,i){var a=t==="normal",n=a?r:r.ensureState(t);n.ignore=e;var o=i.get("smooth");o&&o===!0&&(o=.3),n.shape=n.shape||{},o>0&&(n.shape.smooth=o);var s=i.getModel("lineStyle").getLineStyle();a?r.useStyle(s):n.style=s}function n3(r,e){var t=e.smooth,i=e.points;if(i)if(r.moveTo(i[0][0],i[0][1]),t>0&&i.length>=3){var a=Kr(i[0],i[1]),n=Kr(i[1],i[2]);if(!a||!n){r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]);return}var o=Math.min(a,n)*t,s=yo([],i[1],i[0],o/a),l=yo([],i[1],i[2],o/n),u=yo([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var f=1;f0&&n&&S(-p/o,0,o);var m=r[0],g=r[o-1],y,x;_(),y<0&&T(-y,.8),x<0&&T(x,.8),_(),b(y,x,1),b(x,y,-1),_(),y<0&&C(-y),x<0&&C(x);function _(){y=m.rect[e]-i,x=a-g.rect[e]-g.rect[t]}function b(A,D,M){if(A<0){var L=Math.min(D,-A);if(L>0){S(L*M,0,o);var I=L+A;I<0&&T(-I*M,1)}else T(-A*M,1)}}function S(A,D,M){A!==0&&(u=!0);for(var L=D;L0)for(var I=0;I0;I--){var V=M[I-1]*O;S(-V,I,o)}}}function C(A){var D=A<0?-1:1;A=Math.abs(A);for(var M=Math.ceil(A/(o-1)),L=0;L0?S(M,0,L+1):S(-M,o-L-1,o),A-=M,A<=0)return}return u}function VL(r,e,t,i){return UL(r,"x","width",e,t,i)}function Ev(r,e,t,i){return UL(r,"y","height",e,t,i)}function Pv(r){var e=[];r.sort(function(d,m){return m.priority-d.priority});var t=new rt(0,0,0,0);function i(d){if(!d.ignore){var m=d.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}d.ignore=!0}for(var a=0;a=0&&i.attr(n.oldLayoutSelect),it(c,"emphasis")>=0&&i.attr(n.oldLayoutEmphasis)),gt(i,u,t,l)}else if(i.attr(u),!qa(i).valueAnimation){var p=lt(i.style.opacity,1);i.style.opacity=0,Nt(i,{style:{opacity:p}},t,l)}if(n.oldLayout=u,i.states.select){var h=n.oldLayoutSelect={};Rv(h,u,Ov),Rv(h,i.states.select,Ov)}if(i.states.emphasis){var v=n.oldLayoutEmphasis={};Rv(v,u,Ov),Rv(v,i.states.emphasis,Ov)}hh(i,l,f,t,t)}if(a&&!a.ignore&&!a.invisible){var n=l3(a),o=n.oldLayout,d={points:a.shape.points};o?(a.attr({shape:o}),gt(a,{shape:d},t)):(a.setShape(d),a.style.strokePercent=0,Nt(a,{style:{strokePercent:1}},t)),n.oldLayout=d}},r}(),FL=u3;var tx=ot();function ex(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,i){var a=tx(t).labelManager;a||(a=tx(t).labelManager=new FL),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,i){var a=tx(t).labelManager;i.updatedSeries.forEach(function(n){a.addLabelsOfSeries(t.getViewOfSeriesModel(n))}),a.updateLayoutConfig(t),a.layout(t),a.processLabelsOverall()})}var rx=Math.sin,ix=Math.cos,GL=Math.PI,ms=Math.PI*2,f3=180/GL,p3=function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,i,a,n,o){this._add("C",e,t,i,a,n,o)},r.prototype.quadraticCurveTo=function(e,t,i,a){this._add("Q",e,t,i,a)},r.prototype.arc=function(e,t,i,a,n,o){this.ellipse(e,t,i,i,0,a,n,o)},r.prototype.ellipse=function(e,t,i,a,n,o,s,l){var u=s-o,f=!l,p=Math.abs(u),c=la(p-ms)||(f?u>=ms:-u>=ms),h=u>0?u%ms:u%ms+ms,v=!1;c?v=!0:la(p)?v=!1:v=h>=GL==!!f;var d=e+i*ix(o),m=t+a*rx(o);this._start&&this._add("M",d,m);var g=Math.round(n*f3);if(c){var y=1/this._p,x=(f?1:-1)*(ms-y);this._add("A",i,a,g,1,+f,e+i*ix(o+x),t+a*rx(o+x)),y>.01&&this._add("A",i,a,g,0,+f,d,m)}else{var _=e+i*ix(s),b=t+a*rx(s);this._add("A",i,a,g,+v,+f,_,b)}},r.prototype.rect=function(e,t,i,a){this._add("M",e,t),this._add("l",i,0),this._add("l",0,a),this._add("l",-i,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,i,a,n,o,s,l,u){for(var f=[],p=this._p,c=1;c"}function g3(r){return""}function ap(r,e){e=e||{};var t=e.newline?` -`:"";function i(a){var n=a.children,o=a.tag,s=a.attrs,l=a.text;return m3(o,s)+(o!=="style"?Ue(l):l||"")+(n?""+t+k(n,function(u){return i(u)}).join(t)+t:"")+g3(o)}return i(r)}function ZL(r,e,t){t=t||{};var i=t.newline?` -`:"",a=" {"+i,n=i+"}",o=k(ft(r),function(l){return l+a+k(ft(r[l]),function(u){return u+":"+r[l][u]+";"}).join(i)+n}).join(i),s=k(ft(e),function(l){return"@keyframes "+l+a+k(ft(e[l]),function(u){return u+a+k(ft(e[l][u]),function(f){var p=e[l][u][f];return f==="d"&&(p='path("'+p+'")'),f+":"+p+";"}).join(i)+n}).join(i)+n}).join(i);return!o&&!s?"":[""].join(i)}function np(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function sx(r,e,t,i){return we("svg","root",{width:r,height:e,xmlns:HL,"xmlns:xlink":ox,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+r+" "+e:!1},t)}var XL={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"},gs="transform-origin";function y3(r,e,t){var i=N({},r.shape);N(i,e),r.buildPath(t,i);var a=new Nv;return a.reset(Sc(r)),t.rebuildPath(a,1),a.generateStr(),a.getStr()}function x3(r,e){var t=e.originX,i=e.originY;(t||i)&&(r[gs]=t+"px "+i+"px")}var _3={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function KL(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function S3(r,e,t){var i=r.shape.paths,a={},n,o;if(w(i,function(l){var u=np(t.zrId);u.animation=!0,op(l,{},u,!0);var f=u.cssAnims,p=u.cssNodes,c=ft(f),h=c.length;if(h){o=c[h-1];var v=f[o];for(var d in v){var m=v[d];a[d]=a[d]||{d:""},a[d].d+=m.d||""}for(var g in p){var y=p[g].animation;y.indexOf(o)>=0&&(n=y)}}}),!!n){e.d=!1;var s=KL(a,t);return n.replace(o,s)}}function qL(r){return B(r)?XL[r]?"cubic-bezier("+XL[r]+")":Ws(r)?r:"":""}function op(r,e,t,i){var a=r.animators,n=a.length,o=[];if(r instanceof En){var s=S3(r,e,t);if(s)o.push(s);else if(!n)return}else if(!n)return;for(var l={},u=0;u0}).length){var Pt=KL(T,t);return Pt+" "+y[0]+" both"}}for(var m in l){var s=d(l[m]);s&&o.push(s)}if(o.length){var g=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+g]={animation:o.join(",")},e.class=g}}var sp=Math.round;function $L(r){return r&&B(r.src)}function tI(r){return r&&Z(r.toDataURL)}function lx(r,e,t,i){nx(function(a,n){var o=a==="fill"||a==="stroke";o&&_c(n)?px(e,r,a,i):o&&Uu(n)?cx(t,r,a,i):r[a]=n},e,t,!1),M3(t,r,i)}function jL(r){return la(r[0]-1)&&la(r[1])&&la(r[2])&&la(r[3]-1)}function b3(r){return la(r[4])&&la(r[5])}function ux(r,e,t){if(e&&!(b3(e)&&jL(e))){var i=t?10:1e4;r.transform=jL(e)?"translate("+sp(e[4]*i)/i+" "+sp(e[5]*i)/i+")":Lw(e)}}function JL(r,e,t){for(var i=r.points,a=[],n=0;n"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";Qt(c,m),Qt(h,m)}else if(c==null||h==null){var g=function(D,M){if(D){var L=D.elm,I=c||M.width,P=h||M.height;D.tag==="pattern"&&(u?(P=1,I/=n.width):f&&(I=1,P/=n.height)),D.attrs.width=I,D.attrs.height=P,L&&(L.setAttribute("width",I),L.setAttribute("height",P))}},y=Qu(v,null,r,function(D){l||g(S,D),g(p,D)});y&&y.width&&y.height&&(c=c||y.width,h=h||y.height)}p=we("image","img",{href:v,width:c,height:h}),o.width=c,o.height=h}else a.svgElement&&(p=J(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(p){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=bc(a);b&&(o.patternTransform=b);var S=we("pattern","",o,[p]),T=ap(S),C=i.patternCache,A=C[T];A||(A=i.zrId+"-p"+i.patternIdx++,C[T]=A,o.id=A,S=i.defs[A]=we("pattern",A,o,[p])),e[t]=Vu(A)}}function rI(r,e,t){var i=t.clipPathCache,a=t.defs,n=i[r.id];if(!n){n=t.zrId+"-c"+t.clipPathIdx++;var o={id:n};i[r.id]=n,a[n]=we("clipPath",n,o,[eI(r,t)])}e["clip-path"]=Vu(n)}function hx(r){return document.createTextNode(r)}function Yn(r,e,t){r.insertBefore(e,t)}function vx(r,e){r.removeChild(e)}function dx(r,e){r.appendChild(e)}function mx(r){return r.parentNode}function gx(r){return r.nextSibling}function kv(r,e){r.textContent=e}var iI=58,I3=120,E3=we("","");function yx(r){return r===void 0}function ba(r){return r!==void 0}function P3(r,e,t){for(var i={},a=e;a<=t;++a){var n=r[a].key;n!==void 0&&(i[n]=a)}return i}function lp(r,e){var t=r.key===e.key,i=r.tag===e.tag;return i&&t}function up(r){var e,t=r.children,i=r.tag;if(ba(i)){var a=r.elm=zv(i);if(Vv(E3,r),z(t))for(e=0;en?(v=t[l+1]==null?null:t[l+1].elm,aI(r,v,t,a,l)):Uv(r,e,i,n))}function Vl(r,e){var t=e.elm=r.elm,i=r.children,a=e.children;r!==e&&(Vv(r,e),yx(e.text)?ba(i)&&ba(a)?i!==a&&R3(t,i,a):ba(a)?(ba(r.text)&&kv(t,""),aI(t,null,a,0,a.length-1)):ba(i)?Uv(t,i,0,i.length-1):ba(r.text)&&kv(t,""):r.text!==e.text&&(ba(i)&&Uv(t,i,0,i.length-1),kv(t,e.text)))}function xx(r,e){if(lp(r,e))Vl(r,e);else{var t=r.elm,i=mx(t);up(e),i!==null&&(Yn(i,e.elm,gx(t)),Uv(i,[r],0,0))}return e}var O3=0,N3=function(){function r(e,t,i){if(this.type="svg",this.refreshHover=nI("refreshHover"),this.configLayer=nI("configLayer"),this.storage=t,this._opts=i=N({},i),this.root=e,this._id="zr"+O3++,this._oldVNode=sx(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=zv("svg");Vv(null,this._oldVNode),a.appendChild(n),e.appendChild(a)}this.resize(i.width,i.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",xx(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return fx(e,np(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),i=this._width,a=this._height,n=np(this._id);n.animation=e.animation,n.willUpdate=e.willUpdate,n.compress=e.compress;var o=[],s=this._bgVNode=z3(i,a,this._backgroundColor,n);s&&o.push(s);var l=e.compress?null:this._mainVNode=we("g","main",{},[]);this._paintList(t,n,l?l.children:o),l&&o.push(l);var u=k(ft(n.defs),function(c){return n.defs[c]});if(u.length&&o.push(we("defs","defs",{},u)),e.animation){var f=ZL(n.cssNodes,n.cssAnims,{newline:!0});if(f){var p=we("style","stl",{},[],f);o.push(p)}}return sx(i,a,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},ap(this.renderToVNode({animation:lt(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:lt(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,i){for(var a=e.length,n=[],o=0,s,l,u=0,f=0;f=0&&!(c&&l&&c[d]===l[d]);d--);for(var m=v-1;m>d;m--)o--,s=n[o-1];for(var g=d+1;g=s)}}for(var p=this.__startIndex;p15)break}}P.prevElClipPaths&&g.restore()};if(y)if(y.length===0)C=m.__endIndex;else for(var D=h.dpr,M=0;M0&&e>a[0]){for(l=0;le);l++);s=i[a[l]]}if(a.splice(l+1,0,e),i[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},r.prototype.eachLayer=function(e,t){for(var i=this._zlevelList,a=0;a0?Fv:0),this._needsManuallyCompositing),f.__builtin__||fn("ZLevel "+u+" has been used by unkown layer "+f.id),f!==n&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,t(l),n=f),a.__dirty&Pe&&!a.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(p,c){!p.__used&&p.getElementCount()>0&&(p.__dirty=!0,p.__startIndex=p.__endIndex=p.__drawIndex=0),p.__dirty&&p.__drawIndex<0&&(p.__drawIndex=p.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,w(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var i=this._layerConfig;i[e]?nt(i[e],t,!0):i[e]=t;for(var a=0;a-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",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:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Lt),fI=G3;function ta(r,e){var t=r.mapDimensionsAll("defaultedLabel"),i=t.length;if(i===1){var a=Qa(r,e,t[0]);return a!=null?a+"":null}else if(i){for(var n=[],o=0;o=0&&i.push(e[n])}return i.join(" ")}var H3=function(r){E(e,r);function e(t,i,a,n){var o=r.call(this)||this;return o.updateData(t,i,a,n),o}return e.prototype._createSymbol=function(t,i,a,n,o){this.removeAll();var s=Ht(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),s.drift=W3,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){rr(this.childAt(0))},e.prototype.downplay=function(){ir(this.childAt(0))},e.prototype.setZ=function(t,i){var a=this.childAt(0);a.zlevel=t,a.z=i},e.prototype.setDraggable=function(t,i){var a=this.childAt(0);a.draggable=t,a.cursor=!i&&t?"move":a.cursor},e.prototype.updateData=function(t,i,a,n){this.silent=!1;var o=t.getItemVisual(i,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,i),u=o!==this._symbolType,f=n&&n.disableAnimation;if(u){var p=t.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,t,i,l,p)}else{var c=this.childAt(0);c.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};f?c.attr(h):gt(c,h,s,i),Ae(c)}if(this._updateCommon(t,i,l,a,n),u){var c=this.childAt(0);if(!f){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,Nt(c,h,s,i)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,i,a,n,o){var s=this.childAt(0),l=t.hostModel,u,f,p,c,h,v,d,m,g;if(n&&(u=n.emphasisItemStyle,f=n.blurItemStyle,p=n.selectItemStyle,c=n.focus,h=n.blurScope,d=n.labelStatesModels,m=n.hoverScale,g=n.cursorStyle,v=n.emphasisDisabled),!n||t.hasItemOption){var y=n&&n.itemModel?n.itemModel:t.getItemModel(i),x=y.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),p=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),c=x.get("focus"),h=x.get("blurScope"),v=x.get("disabled"),d=Yt(y),m=x.getShallow("scale"),g=y.getShallow("cursor")}var _=t.getItemVisual(i,"symbolRotate");s.attr("rotation",(_||0)*Math.PI/180||0);var b=oi(t.getItemVisual(i,"symbolOffset"),a);b&&(s.x=b[0],s.y=b[1]),g&&s.attr("cursor",g);var S=t.getItemVisual(i,"style"),T=S.fill;if(s instanceof Kt){var C=s.style;s.useStyle(N({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},S))}else s.__isEmptyBrush?s.useStyle(N({},S)):s.useStyle(S),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=t.getItemVisual(i,"liftZ"),D=this._z2;A!=null?D==null&&(this._z2=s.z2,s.z2+=A):D!=null&&(s.z2=D,this._z2=null);var M=o&&o.useNameLabel;jt(s,d,{labelFetcher:l,labelDataIndex:i,defaultText:L,inheritColor:T,defaultOpacity:S.opacity});function L(R){return M?t.getName(R):ta(t,R)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=p,s.ensureState("blur").style=f;var P=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),kt(this,c,h,v)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,i,a){var n=this.childAt(0),o=et(this).dataIndex,s=a&&a.animation;if(this.silent=n.silent=!0,a&&a.fadeLabel){var l=n.getTextContent();l&&xi(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){n.removeTextContent()}})}else n.removeTextContent();xi(n,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,i){return Ki(t.getItemVisual(i,"symbolSize"))},e}(j);function W3(r,e){this.parent.drift(r,e)}var en=H3;function bx(r,e,t,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(t))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function pI(r){return r!=null&&!K(r)&&(r={isIgnore:r}),r||{}}function cI(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:Yt(e),cursorStyle:e.get("cursor")}}var Y3=function(){function r(e){this.group=new j,this._SymbolCtor=e||en}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=pI(t);var i=this.group,a=e.hostModel,n=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=cI(e),u={disableAnimation:s},f=t.getSymbolPoint||function(p){return e.getItemLayout(p)};n||i.removeAll(),e.diff(n).add(function(p){var c=f(p);if(bx(e,c,p,t)){var h=new o(e,p,l,u);h.setPosition(c),e.setItemGraphicEl(p,h),i.add(h)}}).update(function(p,c){var h=n.getItemGraphicEl(c),v=f(p);if(!bx(e,v,p,t)){i.remove(h);return}var d=e.getItemVisual(p,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==d)i.remove(h),h=new o(e,p,l,u),h.setPosition(v);else{h.updateData(e,p,l,u);var g={x:v[0],y:v[1]};s?h.attr(g):gt(h,g,a)}i.add(h),e.setItemGraphicEl(p,h)}).remove(function(p){var c=n.getItemGraphicEl(p);c&&c.fadeOut(function(){i.remove(c)},a)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(i,a){var n=e._getSymbolPoint(a);i.setPosition(n),i.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=cI(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,i){this._progressiveEls=[],i=pI(i);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var n=e.start;n0?t=i[0]:i[1]<0&&(t=i[1]),t}function Wv(r,e,t,i){var a=NaN;r.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),i)),isNaN(a)&&(a=r.valueStart);var n=r.baseDataOffset,o=[];return o[n]=t.get(r.baseDim,i),o[1-n]=a,e.dataToPoint(o)}function X3(r,e){var t=[];return e.diff(r).add(function(i){t.push({cmd:"+",idx:i})}).update(function(i,a){t.push({cmd:"=",idx:a,idx1:i})}).remove(function(i){t.push({cmd:"-",idx:i})}).execute(),t}function Tx(r,e,t,i,a,n,o,s){for(var l=X3(r,e),u=[],f=[],p=[],c=[],h=[],v=[],d=[],m=Hv(a,e,o),g=r.getLayout("points")||[],y=e.getLayout("points")||[],x=0;x=a||d<0)break;if(xs(g,y)){if(l){d+=n;continue}break}if(d===t)r[n>0?"moveTo":"lineTo"](g,y),p=g,c=y;else{var x=g-u,_=y-f;if(x*x+_*_<.5){d+=n;continue}if(o>0){for(var b=d+n,S=e[b*2],T=e[b*2+1];S===g&&T===y&&m=i||xs(S,T))h=g,v=y;else{D=S-u,M=T-f;var P=g-u,R=S-g,O=y-f,V=T-y,U=void 0,F=void 0;if(s==="x"){U=Math.abs(P),F=Math.abs(R);var q=D>0?1:-1;h=g-q*U*o,v=y,L=g+q*F*o,I=y}else if(s==="y"){U=Math.abs(O),F=Math.abs(V);var $=M>0?1:-1;h=g,v=y-$*U*o,L=g,I=y+$*F*o}else U=Math.sqrt(P*P+O*O),F=Math.sqrt(R*R+V*V),A=F/(F+U),h=g-D*o*(1-A),v=y-M*o*(1-A),L=g+D*o*A,I=y+M*o*A,L=Zn(L,Xn(S,g)),I=Zn(I,Xn(T,y)),L=Xn(L,Zn(S,g)),I=Xn(I,Zn(T,y)),D=L-g,M=I-y,h=g-D*U/F,v=y-M*U/F,h=Zn(h,Xn(u,g)),v=Zn(v,Xn(f,y)),h=Xn(h,Zn(u,g)),v=Xn(v,Zn(f,y)),D=g-h,M=y-v,L=g+D*F/U,I=y+M*F/U}r.bezierCurveTo(p,c,h,v,g,y),p=L,c=I}else r.lineTo(g,y)}u=g,f=y,d+=n}return m}var hI=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),vI=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="ec-polyline",i}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new hI},e.prototype.buildPath=function(t,i){var a=i.points,n=0,o=a.length/2;if(i.connectNulls){for(;o>0&&xs(a[o*2-2],a[o*2-1]);o--);for(;n=0){var _=u?(v-l)*x+l:(h-s)*x+s;return u?[t,_]:[_,t]}s=h,l=v;break;case o.C:h=n[p++],v=n[p++],d=n[p++],m=n[p++],g=n[p++],y=n[p++];var b=u?Ao(s,h,d,g,t,f):Ao(l,v,m,y,t,f);if(b>0)for(var S=0;S=0){var _=u?he(l,v,m,y,T):he(s,h,d,g,T);return u?[t,_]:[_,t]}}s=g,l=y;break}}},e}(at);var q3=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(hI),Yv=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="ec-polygon",i}return e.prototype.getDefaultShape=function(){return new q3},e.prototype.buildPath=function(t,i){var a=i.points,n=i.stackedOnPoints,o=0,s=a.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&xs(a[s*2-2],a[s*2-1]);s--);for(;oe){n?t.push(o(n,l,e)):a&&t.push(o(a,l,0),o(a,l,e));break}else a&&(t.push(o(a,l,0)),a=null),t.push(l),n=l}return t}function J3(r,e,t){var i=r.getVisual("visualMeta");if(!(!i||!i.length||!r.count())&&e.type==="cartesian2d"){for(var a,n,o=i.length-1;o>=0;o--){var s=r.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=k(n.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),f=u.length,p=n.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),p.reverse());var c=j3(u,a==="x"?t.getWidth():t.getHeight()),h=c.length;if(!h&&f)return u[0].coord<0?p[1]?p[1]:u[f-1].color:p[0]?p[0]:u[0].color;var v=10,d=c[0].coord-v,m=c[h-1].coord+v,g=m-d;if(g<.001)return"transparent";w(c,function(x){x.offset=(x.coord-d)/g}),c.push({offset:h?c[h-1].offset:.5,color:p[1]||"transparent"}),c.unshift({offset:h?c[0].offset:.5,color:p[0]||"transparent"});var y=new yi(0,0,0,0,c,!0);return y[a]=d,y[a+"2"]=m,y}}}function Q3(r,e,t){var i=r.get("showAllSymbol"),a=i==="auto";if(!(i&&!a)){var n=t.getAxesByScale("ordinal")[0];if(n&&!(a&&$3(n,e))){var o=e.mapDimension(n.dim),s={};return w(n.getViewLabels(),function(l){var u=n.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function $3(r,e){var t=r.getExtent(),i=Math.abs(t[1]-t[0])/r.scale.count();isNaN(i)&&(i=0);for(var a=e.count(),n=Math.max(1,Math.round(a/5)),o=0;oi)return!1;return!0}function tW(r,e){return isNaN(r)||isNaN(e)}function eW(r){for(var e=r.length/2;e>0&&tW(r[e*2-2],r[e*2-1]);e--);return e-1}function xI(r,e){return[r[e*2],r[e*2+1]]}function rW(r,e,t){for(var i=r.length/2,a=t==="x"?0:1,n,o,s=0,l=-1,u=0;u=e||n>=e&&o<=e){l=u;break}s=u,n=o}return{range:[s,l],t:(e-n)/(o-n)}}function _I(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var q=d.getState("emphasis").style;q.lineWidth=+d.style.lineWidth+1}et(d).seriesIndex=t.seriesIndex,kt(d,V,U,F);var $=yI(t.get("smooth")),st=t.get("smoothMonotone");if(d.setShape({smooth:$,smoothMonotone:st,connectNulls:C}),m){var ht=l.getCalculationInfo("stackedOnSeries"),ct=0;m.useStyle(X(f.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ht&&(ct=yI(ht.get("smooth"))),m.setShape({smooth:$,stackedOnSmooth:ct,smoothMonotone:st,connectNulls:C}),ee(m,t,"areaStyle"),et(m).seriesIndex=t.seriesIndex,kt(m,V,U,F)}var It=function(Vt){n._changePolyState(Vt)};l.eachItemGraphicEl(function(Vt){Vt&&(Vt.onHoverStateChange=It)}),this._polyline.onHoverStateChange=It,this._data=l,this._coordSys=o,this._stackedOnPoints=S,this._points=p,this._step=M,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,d),m&&this.packEventData(t,m))},e.prototype.packEventData=function(t,i){et(i).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,i,a,n){var o=t.getData(),s=vi(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],p=l[s*2+1];if(isNaN(f)||isNaN(p)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,p))return;var c=t.get("zlevel")||0,h=t.get("z")||0;u=new en(o,s),u.x=f,u.y=p,u.setZ(c,h);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=c,v.z=h,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Tt.prototype.highlight.call(this,t,i,a,n)},e.prototype.downplay=function(t,i,a,n){var o=t.getData(),s=vi(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 Tt.prototype.downplay.call(this,t,i,a,n)},e.prototype._changePolyState=function(t){var i=this._polygon;Ko(this._polyline,t),i&&Ko(i,t)},e.prototype._newPolyline=function(t){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new vI({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},e.prototype._newPolygon=function(t,i){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new Yv({shape:{points:t,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,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=t.hostModel,f=u.get("animationDuration");Z(f)&&(f=f(null));var p=u.get("animationDelay")||0,c=Z(p)?p(null):p;t.eachItemGraphicEl(function(h,v){var d=h;if(d){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 T=y===g?0:(x-g)/(y-g);l&&(T=1-T);var C=Z(p)?p(v):f*T+c,A=d.getSymbolPath(),D=A.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:C}),A.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,i,a){var n=t.getModel("endLabel");if(_I(t)){var o=t.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 dt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=eW(l);f>=0&&(jt(s,Yt(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:f,defaultText:function(p,c,h){return h!=null?Gv(o,h):ta(o,p)},enableTextSetter:!0},iW(n,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,i,a,n,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&n.originalX==null&&(n.originalX=u.x,n.originalY=u.y);var p=a.getLayout("points"),c=a.hostModel,h=c.get("connectNulls"),v=s.get("precision"),d=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?d:0)*(y?-1:1),S=(g?0:-d)*(y?-1:1),T=g?"x":"y",C=rW(p,_,T),A=C.range,D=A[1]-A[0],M=void 0;if(D>=1){if(D>1&&!h){var L=xI(p,A[0]);u.attr({x:L[0]+b,y:L[1]+S}),o&&(M=c.getRawValue(A[0]))}else{var L=f.getPointOn(_,T);L&&u.attr({x:L[0]+b,y:L[1]+S});var I=c.getRawValue(A[0]),P=c.getRawValue(A[1]);o&&(M=zc(a,v,I,P,C.t))}n.lastFrameIndex=A[0]}else{var R=t===1||n.lastFrameIndex>0?A[0]:0,L=xI(p,R);o&&(M=c.getRawValue(R)),u.attr({x:L[0]+b,y:L[1]+S})}if(o){var O=qa(u);typeof O.setLabelText=="function"&&O.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(t,i,a,n,o,s,l){var u=this._polyline,f=this._polygon,p=t.hostModel,c=Tx(this._data,t,this._stackedOnPoints,i,this._coordSys,a,this._valueOrigin,s),h=c.current,v=c.stackedOnCurrent,d=c.next,m=c.stackedOnNext;if(o&&(h=Kn(c.current,a,o,l),v=Kn(c.stackedOnCurrent,a,o,l),d=Kn(c.next,a,o,l),m=Kn(c.stackedOnNext,a,o,l)),gI(h,d)>3e3||f&&gI(v,m)>3e3){u.stopAnimation(),u.setShape({points:d}),f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:m}));return}u.shape.__points=c.current,u.shape.points=h;var g={shape:{points:d}};c.current!==h&&(g.shape.__points=c.next),u.stopAnimation(),gt(u,g,p),f&&(f.setShape({points:h,stackedOnPoints:v}),f.stopAnimation(),gt(f,{shape:{stackedOnPoints:m}},p),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],x=c.status,_=0;_e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t10&&o.type==="cartesian2d"&&n){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),p=i.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(p||1),h=Math.round(s/c);if(isFinite(h)&&h>1){n==="lttb"&&e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h));var v=void 0;B(n)?v=nW[n]:Z(n)&&(v=n),v&&e.setData(a.downSample(a.mapDimension(u.dim),1/h,v,oW))}}}}}function Lx(r){r.registerChartView(SI),r.registerSeriesModel(fI),r.registerLayout(ea("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),i=e.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",i)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,fp("line"))}var bI=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){return ke(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,i,a){var n=this.coordinateSystem;if(n&&n.clampData){var o=n.clampData(t),s=n.dataToPoint(o);if(a)w(n.getAxes(),function(c,h){if(c.type==="category"&&i!=null){var v=c.getTicksCoords(),d=o[h],m=i[h]==="x1"||i[h]==="y1";if(m&&(d+=1),v.length<2)return;if(v.length===2){s[h]=c.toGlobalCoord(c.getExtent()[m?1:0]);return}for(var g=void 0,y=void 0,x=1,_=0;_d){y=(b+g)/2;break}_===1&&(x=S-v[0].tickValue)}y==null&&(g?g&&(y=v[v.length-1].coord):y=v[0].coord),s[h]=c.toGlobalCoord(y)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),p=n.getBaseAxis().isHorizontal()?0:1;s[p]+=u+f/2}return s}return[NaN,NaN]},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"},e}(Lt);Lt.registerClass(bI);var Bl=bI;var sW=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return ke(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),i=this.get("largeThreshold");return i>t&&(t=i),t},e.prototype.brushSelector=function(t,i,a){return a.rect(i.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=nr(Bl.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:"#212121"}},realtimeSort:!1}),e}(Bl),wI=sW;var lW=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),uW=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="sausage",i}return e.prototype.getDefaultShape=function(){return new lW},e.prototype.buildPath=function(t,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,p=i.endAngle,c=i.clockwise,h=Math.PI*2,v=c?p-fMath.PI/2&&fs)return!0;s=p}return!1},e.prototype._isOrderDifferentInView=function(t,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(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,i,a,n){if(this._isOrderChangedWithinSameData(t,i,a)){var o=this._dataSort(t,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(t,i,a){var n=i.baseAxis,o=this._dataSort(t,n,function(s){return t.get(t.mapDimension(i.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.index,sortInfo:o})},e.prototype.remove=function(t,i){this._clear(this._model),this._removeOnRenderedListener(i)},e.prototype.dispose=function(t,i){this._removeOnRenderedListener(i)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var i=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(n){Ya(n,t,et(n).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Tt),AI={cartesian2d:function(r,e){var t=e.width<0?-1:1,i=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var a=r.x+r.width,n=r.y+r.height,o=Ix(e.x,r.x),s=Ex(e.x+e.width,a),l=Ix(e.y,r.y),u=Ex(e.y+e.height,n),f=sa?s:o,e.y=p&&l>n?u:l,e.width=f?0:s-o,e.height=p?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),f||p},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}var a=Ex(e.r,r.r),n=Ix(e.r0,r.r0);e.r=a,e.r0=n;var o=a-n<0;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}return o}},DI={cartesian2d:function(r,e,t,i,a,n,o,s,l){var u=new pt({shape:N({},i),z2:1});if(u.__dataIndex=t,u.name="item",n){var f=u.shape,p=a?"height":"width";f[p]=0}return u},polar:function(r,e,t,i,a,n,o,s,l){var u=!a&&l?Fl:pe,f=new u({shape:i,z2:1});f.name="item";var p=NI(a);if(f.calculateTextPosition=TI(p,{isRoundCap:u===Fl}),n){var c=f.shape,h=a?"r":"endAngle",v={};c[h]=a?i.r0:i.startAngle,v[h]=i[h],(s?gt:Nt)(f,{shape:v},n)}return f}};function cW(r,e){var t=r.get("realtimeSort",!0),i=e.getBaseAxis();if(t&&i.type==="category"&&e.type==="cartesian2d")return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function MI(r,e,t,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?gt:Nt)(t,{shape:l},e,a,null);var f=e?r.baseAxis.model:null;(o?gt:Nt)(t,{shape:u},f,a)}function LI(r,e){for(var t=0;t0?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(r,e,t){var i=r.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 dW(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function NI(r){return function(e){var t=e?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+t;default:return i}}}(r)}function EI(r,e,t,i,a,n,o,s){var l=e.getItemVisual(t,"style");if(s){if(!n.get("roundCap")){var f=r.shape,p=Ta(i.getModel("itemStyle"),f,!0);N(f,p),r.setShape(f)}}else{var u=i.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var c=i.getShallow("cursor");c&&r.attr("cursor",c);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",v=Yt(i);jt(r,v,{labelFetcher:n,labelDataIndex:t,defaultText:ta(n.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var d=r.getTextContent();if(s&&d){var m=i.get(["label","position"]);r.textConfig.inside=m==="middle"?!0:null,CI(r,m==="outside"?h:m,NI(o),i.get(["label","rotate"]))}ch(d,v,n.getRawValue(t),function(y){return Gv(e,y)});var g=i.getModel(["emphasis"]);kt(r,g.get("focus"),g.get("blurScope"),g.get("disabled")),ee(r,i),dW(a)&&(r.style.fill="none",r.style.stroke="none",w(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function mW(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var i=r.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 gW=function(){function r(){}return r}(),PI=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="largeBar",i}return e.prototype.getDefaultShape=function(){return new gW},e.prototype.buildPath=function(t,i){for(var a=i.points,n=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=0?t:null},30,!1);function yW(r,e,t){for(var i=r.baseDimIdx,a=1-i,n=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,p=n.length/3;f=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function zI(r,e,t){if(Ii(t,"cartesian2d")){var i=e,a=t.getArea();return{x:r?i.x:a.x,y:r?a.y:i.y,width:r?i.width:a.width,height:r?a.height:i.height}}else{var a=t.getArea(),n=e;return{cx:a.cx,cy:a.cy,r0:r?a.r0:n.r0,r:r?a.r:n.r,startAngle:r?n.startAngle:0,endAngle:r?n.endAngle:Math.PI*2}}}function xW(r,e,t){var i=r.type==="polar"?pe:pt;return new i({shape:zI(e,t,r),silent:!0,z2:0})}var kI=pW;function Px(r){r.registerChartView(kI),r.registerSeriesModel(wI),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,tt(gv,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,yv("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,fp("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var Kv=Math.PI*2,UI=Math.PI/180;function VI(r,e){return Gt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Rx(r,e){var t=VI(r,e),i=r.get("center"),a=r.get("radius");z(a)||(a=[0,a]);var n=H(t.width,e.getWidth()),o=H(t.height,e.getHeight()),s=Math.min(n,o),l=H(a[0],s/2),u=H(a[1],s/2),f,p,c=r.coordinateSystem;if(c){var h=c.dataToPoint(i);f=h[0]||0,p=h[1]||0}else z(i)||(i=[i,i]),f=H(i[0],n)+t.x,p=H(i[1],o)+t.y;return{cx:f,cy:p,r0:l,r:u}}function Ox(r,e,t){e.eachSeriesByType(r,function(i){var a=i.getData(),n=a.mapDimension("value"),o=VI(i,t),s=Rx(i,t),l=s.cx,u=s.cy,f=s.r,p=s.r0,c=-i.get("startAngle")*UI,h=i.get("minAngle")*UI,v=0;a.each(n,function(D){!isNaN(D)&&v++});var d=a.getSum(n),m=Math.PI/(d||v)*2,g=i.get("clockwise"),y=i.get("roseType"),x=i.get("stillShowZeroSum"),_=a.getDataExtent(n);_[0]=0;var b=Kv,S=0,T=c,C=g?1:-1;if(a.setLayout({viewRect:o,r:f}),a.each(n,function(D,M){var L;if(isNaN(D)){a.setItemLayout(M,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:l,cy:u,r0:p,r:y?NaN:f});return}y!=="area"?L=d===0&&x?m:D*m:L=Kv/v,Lt?g:m,b=Math.abs(x.label.y-t);if(b>=_.maxY){var S=x.label.x-e-x.len2*a,T=i+x.len,C=Math.abs(S)r.unconstrainedWidth?null:h:null;i.setStyle("width",v)}var d=i.getBoundingRect();n.width=d.width;var m=(i.style.margin||0)+2.1;n.height=d.height+m,n.y-=(n.height-p)/2}}}function Nx(r){return r.position==="center"}function zx(r){var e=r.getData(),t=[],i,a,n=!1,o=(r.get("minShowLabelAngle")||0)*_W,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,p=s.y,c=s.height;function h(S){S.ignore=!0}function v(S){if(!S.ignore)return!0;for(var T in S.states)if(S.states[T].ignore===!1)return!0;return!1}e.each(function(S){var T=e.getItemGraphicEl(S),C=T.shape,A=T.getTextContent(),D=T.getTextGuideLine(),M=e.getItemModel(S),L=M.getModel("label"),I=L.get("position")||M.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),R=L.get("alignTo"),O=H(L.get("edgeDistance"),u),V=L.get("bleedMargin"),U=M.getModel("labelLine"),F=U.get("length");F=H(F,u);var q=U.get("length2");if(q=H(q,u),Math.abs(C.endAngle-C.startAngle)0?"right":"left":st>0?"left":"right"}var de=Math.PI,ce=0,er=L.get("rotate");if(vt(er))ce=er*(de/180);else if(I==="center")ce=0;else if(er==="radial"||er===!0){var Ea=st<0?-$+de:-$;ce=Ea}else if(er==="tangential"&&I!=="outside"&&I!=="outer"){var Tr=Math.atan2(st,ht);Tr<0&&(Tr=de*2+Tr);var qp=ht>0;qp&&(Tr=de+Tr),ce=Tr-de}if(n=!!ce,A.x=ct,A.y=It,A.rotation=ce,A.setStyle({verticalAlign:"middle"}),xt){A.setStyle({align:Pt});var Cm=A.states.select;Cm&&(Cm.x+=A.x,Cm.y+=A.y)}else{var ln=A.getBoundingRect().clone();ln.applyTransform(A.getComputedTransform());var Wb=(A.style.margin||0)+2.1;ln.y-=Wb/2,ln.height+=Wb,t.push({label:A,labelLine:D,position:I,len:F,len2:q,minTurnAngle:U.get("minTurnAngle"),maxSurfaceAngle:U.get("maxSurfaceAngle"),surfaceNormal:new St(st,ht),linePoints:Vt,textAlign:Pt,labelDistance:P,labelAlignTo:R,edgeDistance:O,bleedMargin:V,rect:ln,unconstrainedWidth:ln.width,labelStyleWidth:A.style.width})}T.setTextConfig({inside:xt})}}),!n&&r.get("avoidLabelOverlap")&&SW(t,i,a,l,u,c,f,p);for(var d=0;d0){for(var f=o.getItemLayout(0),p=1;isNaN(f&&f.startAngle)&&p=n.r0}},e.type="pie",e}(Tt),GI=wW;function si(r,e,t){e=z(e)&&{coordDimensions:e}||N({encodeDefine:r.getEncode()},e);var i=r.getSource(),a=Di(i,e).dimensions,n=new se(a,r);return n.initData(i,t),n}var TW=function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var i=this._getDataWithEncodedVisual();return i.getItemVisual(e,t)},r}(),Ca=TW;var CW=ot(),AW=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ca(W(this.getData,this),W(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return si(this,{coordDimensions:["value"],encodeDefaulter:tt(Tl,this)})},e.prototype.getDataParams=function(t){var i=this.getData(),a=CW(i),n=a.seats;if(!n){var o=[];i.each(i.mapDimension("value"),function(l){o.push(l)}),n=a.seats=wg(o,i.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=n[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){Qr(t,"labelLine",["show"]);var i=t.labelLine,a=t.emphasis.labelLine;i.show=i.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,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%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,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}(Lt),HI=AW;function kx(r){return{seriesType:r,reset:function(e,t){var i=e.getData();i.filterSelf(function(a){var n=i.mapDimension("value"),o=i.get(n,a);return!(vt(o)&&!isNaN(o)&&o<0)})}}}function Ux(r){r.registerChartView(GI),r.registerSeriesModel(HI),Jh("pie",r.registerAction),r.registerLayout(tt(Ox,"pie")),r.registerProcessor(ra("pie")),r.registerProcessor(kx("pie"))}var DW=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,i){return ke(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,i,a){return a.point(i.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],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:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Lt),WI=DW;var YI=4,MW=function(){function r(){}return r}(),LW=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i._off=0,i.hoverDataIdx=-1,i}return e.prototype.getDefaultShape=function(){return new MW},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,i){var a=i.points,n=i.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&n[0]=0;u--){var f=u*2,p=n[f]-s/2,c=n[f+1]-l/2;if(t>=p&&i>=c&&t<=p+s&&i<=c+l)return u}return-1},e.prototype.contain=function(t,i){var a=this.transformCoordToLocal(t,i),n=this.getBoundingRect();if(t=a[0],i=a[1],n.contain(t,i)){var o=this.hoverDataIdx=this.findDataIndex(t,i);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){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,p=-1/0,c=0;c=0&&(u.dataIndex=p+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),ZI=IW;var EW=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n=t.getData(),o=this._updateSymbolDraw(n,t);o.updateData(n,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,i,a){var n=t.getData(),o=this._updateSymbolDraw(n,t);o.incrementalPrepareUpdate(n),this._finished=!1},e.prototype.incrementalRender=function(t,i,a){this._symbolDraw.incrementalUpdate(t,i.getData(),{clipShape:this._getClipShape(i)}),this._finished=t.end===i.getData().count()},e.prototype.updateTransform=function(t,i,a){var n=t.getData();if(this.group.dirty(),!this._finished||n.count()>1e4)return{update:!0};var o=ea("").reset(t,i,a);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(n)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var i=t.coordinateSystem,a=i&&i.getArea&&i.getArea();return t.get("clip",!0)?a:null},e.prototype._updateSymbolDraw=function(t,i){var a=this._symbolDraw,n=i.pipelineContext,o=n.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new ZI:new wa,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,i){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Tt),XI=EW;var PW=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(mt),qI=PW;var jv=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Xt).models[0]},e.type="cartesian2dAxis",e}(mt);Wt(jv,Li);var KI={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:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},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},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},RW=nt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},KI),Vx=nt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},KI),OW=nt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Vx),NW=X({logBase:10},Vx),Jv={category:RW,value:Vx,time:OW,log:NW};var jI={value:1,category:1,time:1,log:1};function ia(r,e,t,i){w(jI,function(a,n){var o=nt(nt({},Jv[n],!0),i,!0),s=function(l){E(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,p){var c=On(this),h=c?Si(f):{},v=p.getTheme();nt(f,v.get(n+"Axis")),nt(f,this.getDefaultOption()),f.type=JI(f),c&&Vr(f,h,c)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=qf.createByAxisModel(this))},u.prototype.getCategories=function(f){var p=this.option;if(p.type==="category")return f?p.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+n,u.defaultOption=o,u}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",JI)}function JI(r){return r.type||(r.data?"category":"value")}var zW=function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return k(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),wt(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r}(),QI=zW;var Qv=["x","y"];function $I(r){return r.type==="interval"||r.type==="time"}var kW=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=Qv,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!$I(t)||!$I(i))){var a=t.getExtent(),n=i.getExtent(),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,p=(s[1]-o[1])/u,c=o[0]-a[0]*f,h=o[1]-n[0]*p,v=this._transform=[f,0,0,p,c,h];this._invTransform=jr([],v)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var i=this.getAxis("x"),a=this.getAxis("y");return i.contain(i.toLocalCoord(t[0]))&&a.contain(a.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,i){var a=this.dataToPoint(t),n=this.dataToPoint(i),o=this.getArea(),s=new rt(a[0],a[1],n[0]-a[0],n[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,i,a){a=a||[];var n=t[0],o=t[1];if(this._transform&&n!=null&&isFinite(n)&&o!=null&&isFinite(o))return fe(a,t,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(t,i){var a=this.getAxis("x").scale,n=this.getAxis("y").scale,o=a.getExtent(),s=n.getExtent(),l=a.parse(t[0]),u=n.parse(t[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(t,i){var a=[];if(this._invTransform)return fe(a,t,this._invTransform);var n=this.getAxis("x"),o=this.getAxis("y");return a[0]=n.coordToData(n.toLocalCoord(t[0]),i),a[1]=o.coordToData(o.toLocalCoord(t[1]),i),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(t[0],t[1]),n=Math.min(i[0],i[1]),o=Math.max(t[0],t[1])-a,s=Math.max(i[0],i[1])-n;return new rt(a,n,o,s)},e}(QI),tE=kW;var UW=function(r){E(e,r);function e(t,i,a,n,o){var s=r.call(this,t,i,a)||this;return s.index=0,s.type=n||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),t&&i[0]>i[1]&&i.reverse(),i},e.prototype.pointToData=function(t,i){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),i)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(Ge),eE=UW;function pp(r,e,t){t=t||{};var i=r.coordinateSystem,a=e.axis,n={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,f=i.getRect(),p=[f.x,f.x+f.width,f.y,f.y+f.height],c={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,v=u==="x"?[p[2]-h,p[3]+h]:[p[0]-h,p[1]+h];if(o){var d=o.toGlobalCoord(o.dataToCoord(0));v[c.onZero]=Math.max(Math.min(d,v[1]),v[0])}n.position=[u==="y"?v[c[l]]:p[0],u==="x"?v[c[l]]:p[3]],n.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=m[s],n.labelOffset=o?v[c[s]]-v[c.onZero]:0,e.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Jt(t.labelInside,e.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var g=e.get(["axisLabel","rotate"]);return n.labelRotate=l==="top"?-g:g,n.z2=1,n}function Bx(r){return r.get("coordinateSystem")==="cartesian2d"}function Fx(r){var e={xAxisModel:null,yAxisModel:null};return w(e,function(t,i){var a=i.replace(/Model$/,""),n=r.getReferringComponents(a,Xt).models[0];e[i]=n}),e}var Gx=Math.log;function $v(r,e,t){var i=Wr.prototype,a=i.getTicks.call(t),n=i.getTicks.call(t,!0),o=a.length-1,s=i.getInterval.call(t),l=Z0(r,e),u=l.extent,f=l.fixMin,p=l.fixMax;if(r.type==="log"){var c=Gx(r.base);u=[Gx(u[0])/c,Gx(u[1])/c]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:p});var h=i.getExtent.call(r);f&&(u[0]=h[0]),p&&(u[1]=h[1]);var v=i.getInterval.call(r),d=u[0],m=u[1];if(f&&p)v=(m-d)/o;else if(f)for(m=u[0]+v*o;mu[0]&&isFinite(d)&&isFinite(u[0]);)v=dv(v),d=u[1]-v*o;else{var g=r.getTicks().length-1;g>o&&(v=dv(v));var y=v*o;m=Math.ceil(u[1]/v)*v,d=Zt(m-y),d<0&&u[0]>=0?(d=0,m=Zt(y)):m>0&&u[1]<=0&&(m=0,d=-Zt(y))}var x=(a[0].value-n[0].value)/s,_=(a[o].value-n[o].value)/s;if(i.setExtent.call(r,d+v*x,m+v*_),i.setInterval.call(r,v),(x||_)&&i.setNiceExtent.call(r,d+v,m-v),0)var b}var VW=function(){function r(e,t,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Qv,this._initCartesian(e,t,i),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var i=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=ft(o),u=l.length;if(u){for(var f=[],p=u-1;p>=0;p--){var c=+l[p],h=o[c],v=h.model,d=h.scale;Kf(d)&&v.get("alignTicks")&&v.get("interval")==null?f.push(h):(Mi(d,v),Kf(d)&&(s=h))}f.length&&(s||(s=f.pop(),Mi(s.scale,s.model)),w(f,function(m){$v(m.scale,m.model,s.scale)}))}}a(i.x),a(i.y);var n={};w(i.x,function(o){iE(i,"y",o,n)}),w(i.y,function(o){iE(i,"x",o,n)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,i){var a=e.getBoxLayoutParams(),n=!i&&e.get("containLabel"),o=Gt(a,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),n&&(w(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=fL(u);if(f){var p=u.isHorizontal()?"height":"width",c=u.model.get(["axisLabel","margin"]);o[p]-=f[p]+c,u.position==="top"?o.y+=f.height+c:u.position==="left"&&(o.x+=f.width+c)}}}),l()),w(this._coordsList,function(u){u.calcAffineTransform()});function l(){w(s,function(u){var f=u.isHorizontal(),p=f?[0,o.width]:[0,o.height],c=u.inverse?1:0;u.setExtent(p[c],p[1-c]),BW(u,f?o.x:o.y)})}},r.prototype.getAxis=function(e,t){var i=this._axesMap[e];if(i!=null)return i[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var i="x"+e+"y"+t;return this._coordsMap[i]}K(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,n=this._coordsList;a0?"top":"bottom",n="center"):ko(a-jn)?(o=i>0?"bottom":"top",n="center"):(o="middle",a>0&&a0?"right":"left":n=i>0?"left":"right"),{rotation:a,textAlign:n,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r}(),oE={axisLine:function(r,e,t,i){var a=e.get(["axisLine","show"]);if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisLine")),!!a){var n=e.axis.getExtent(),o=i.transform,s=[n[0],0],l=[n[1],0],u=s[0]>l[0];o&&(fe(s,s,o),fe(l,l,o));var f=N({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),p=new re({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Za(p.shape,p.style.lineWidth),p.anid="line",t.add(p);var c=e.get(["axisLine","symbol"]);if(c!=null){var h=e.get(["axisLine","symbolSize"]);B(c)&&(c=[c,c]),(B(h)||vt(h))&&(h=[h,h]);var v=oi(e.get(["axisLine","symbolOffset"])||0,h),d=h[0],m=h[1];w([{rotate:r.rotation+Math.PI/2,offset:v[0],r:0},{rotate:r.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(g,y){if(c[y]!=="none"&&c[y]!=null){var x=Ht(c[y],-d/2,-m/2,d,m,f.stroke,!0),_=g.r+g.offset,b=u?l:s;x.attr({rotation:g.rotate,x:b[0]+_*Math.cos(r.rotation),y:b[1]-_*Math.sin(r.rotation),silent:!0,z2:11}),t.add(x)}})}}},axisTickLabel:function(r,e,t,i){var a=HW(t,i,e,r),n=YW(t,i,e,r);if(GW(e,n,a),WW(t,i,e,r.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=Iv(k(n,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Pv(o)}},axisName:function(r,e,t,i){var a=Jt(r.axisName,e.get("name"));if(a){var n=e.get("nameLocation"),o=r.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),f=u[0]>u[1]?-1:1,p=[n==="start"?u[0]-f*l:n==="end"?u[1]+f*l:(u[0]+u[1])/2,lE(n)?r.labelOffset+o*l:0],c,h=e.get("nameRotate");h!=null&&(h=h*jn/180);var v;lE(n)?c=_s.innerTextLayout(r.rotation,h??r.rotation,o):(c=FW(r.rotation,n,h||0,u),v=r.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(c.rotation)),!isFinite(v)&&(v=null)));var d=s.getFont(),m=e.get("nameTruncate",!0)||{},g=m.ellipsis,y=Jt(r.nameTruncateMaxWidth,m.maxWidth,v),x=new dt({x:p[0],y:p[1],rotation:c.rotation,silent:_s.isLabelSilent(e),style:Ut(s,{text:a,font:d,overflow:"truncate",width:y,ellipsis:g,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||c.textAlign,verticalAlign:s.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(Wi({el:x,componentModel:e,itemName:a}),x.__fullText=a,x.anid="name",e.get("triggerEvent")){var _=_s.makeAxisEventDataBase(e);_.targetType="axisName",_.name=a,et(x).eventData=_}i.add(x),x.updateTransform(),t.add(x),x.decomposeTransform()}}};function FW(r,e,t,i){var a=Xu(t-r),n,o,s=i[0]>i[1],l=e==="start"&&!s||e!=="start"&&s;return ko(a-jn/2)?(o=l?"bottom":"top",n="center"):ko(a-jn*1.5)?(o=l?"top":"bottom",n="center"):(o="middle",ajn/2?n=l?"left":"right":n=l?"right":"left"),{rotation:a,textAlign:n,textVerticalAlign:o}}function GW(r,e,t){if(!Av(r.axis)){var i=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var n=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],f=t[1],p=t[t.length-1],c=t[t.length-2];i===!1?(Ei(n),Ei(u)):sE(n,o)&&(i?(Ei(o),Ei(f)):(Ei(n),Ei(u))),a===!1?(Ei(s),Ei(p)):sE(l,s)&&(a?(Ei(l),Ei(c)):(Ei(s),Ei(p)))}}function Ei(r){r&&(r.ignore=!0)}function sE(r,e){var t=r&&r.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(!(!t||!i)){var a=Na([]);return pr(a,a,-r.rotation),t.applyTransform(fr([],a,r.getLocalTransform())),i.applyTransform(fr([],a,e.getLocalTransform())),t.intersect(i)}}function lE(r){return r==="middle"||r==="center"}function uE(r,e,t,i,a){for(var n=[],o=[],s=[],l=0;l=0||r===e}function pE(r){var e=td(r);if(e){var t=e.axisPointerModel,i=e.axis.scale,a=t.option,n=t.get("status"),o=t.get("value");o!=null&&(o=i.parse(o));var s=Yx(t);n==null&&(a.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var d=l;v.color!=null&&(d=X({color:v.color},l));var m=nt(J(v),{boundaryGap:t,splitNumber:i,scale:a,axisLine:n,axisTick:o,axisLabel:s,name:v.text,showName:u,nameLocation:"end",nameGap:p,nameTextStyle:d,triggerEvent:c},!1);if(B(f)){var g=m.name;m.name=f.replace("{value}",g??"")}else Z(f)&&(m.name=f(m.name,m));var y=new Mt(m,null,this.ecModel);return Wt(y,Li.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:nt({lineStyle:{color:"#bbb"}},cp.axisLine),axisLabel:ad(cp.axisLabel,!1),axisTick:ad(cp.axisTick,!1),splitLine:ad(cp.splitLine,!0),splitArea:ad(cp.splitArea,!0),indicator:[]},e}(mt),SE=i4;var a4=["axisLine","axisTickLabel","axisName"],n4=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n=this.group;n.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var i=t.coordinateSystem,a=i.getIndicatorAxes(),n=k(a,function(o){var s=o.model.get("showName")?o.name:"",l=new tr(o.model,{axisName:s,position:[i.cx,i.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});w(n,function(o){w(a4,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var i=t.coordinateSystem,a=i.getIndicatorAxes();if(!a.length)return;var n=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),p=s.get("show"),c=l.get("color"),h=u.get("color"),v=z(c)?c:[c],d=z(h)?h:[h],m=[],g=[];function y(R,O,V){var U=V%O.length;return R[U]=R[U]||[],U}if(n==="circle")for(var x=a[0].getTicksCoords(),_=i.cx,b=i.cy,S=0;S3?1.4:o>1?1.2:1.1,f=n>0?u:1/u;e_(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(a){var p=Math.abs(n),c=(n>0?1:-1)*(p>3?.4:p>1?.15:.05);e_(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!$x(this._zr,"globalPan")){var i=t.pinchScale>1?1.1:1/1.1;e_(this,"zoom",null,t,{scale:i,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(Ce);function e_(r,e,t,i,a){r.pointerChecker&&r.pointerChecker(i,a.originX,a.originY)&&(Mr(i.event),IE(r,e,t,i,a))}function IE(r,e,t,i,a){a.isAvailableBehavior=W(nd,null,t,i),r.trigger(e,a)}function nd(r,e,t){var i=t[r];return!r||i&&(!B(i)||e.event[i+"Key"])}var Aa=l4;function Hl(r,e,t){var i=r.target;i.x+=e,i.y+=t,i.dirty()}function Wl(r,e,t,i){var a=r.target,n=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=e,n){var s=n.min||0,l=n.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,a.x-=(t-a.x)*(u-1),a.y-=(i-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var u4={axisPointer:1,tooltip:1,brush:1};function Jn(r,e,t){var i=e.getComponentByElement(r.topTarget),a=i&&i.coordinateSystem;return i&&i!==t&&!u4.hasOwnProperty(i.mainType)&&a&&a.model!==t}function od(r){if(B(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var i_,sd={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},EE=ft(sd),ld={"alignment-baseline":"textBaseline","stop-color":"stopColor"},PE=ft(ld),f4=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var i=od(e);this._defsUsePending=[];var a=new j;this._root=a;var n=[],o=i.getAttribute("viewBox")||"",s=parseFloat(i.getAttribute("width")||t.width),l=parseFloat(i.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),li(i,a,null,!0,!1);for(var u=i.firstChild;u;)this._parseNode(u,a,n,null,!1,!1),u=u.nextSibling;h4(this._defs,this._defsUsePending),this._defsUsePending=[];var f,p;if(o){var c=ud(o);c.length>=4&&(f={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(f&&s!=null&&l!=null&&(p=n_(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var h=a;a=new j,a.add(h),h.scaleX=h.scaleY=p.scale,h.x=p.x,h.y=p.y}return!t.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new pt({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:f,viewBoxTransform:p,named:n}},r.prototype._parseNode=function(e,t,i,a,n,o){var s=e.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(n=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!n){var f=i_[s];if(f&&Q(i_,s)){l=f.call(this,e,t);var p=e.getAttribute("name");if(p){var c={name:p,namedFrom:null,svgNodeTagLower:s,el:l};i.push(c),s==="g"&&(u=c)}else a&&i.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});t.add(l)}}var h=RE[s];if(h&&Q(RE,s)){var v=h.call(this,e),d=e.getAttribute("id");d&&(this._defs[d]=v)}}if(l&&l.isGroup)for(var m=e.firstChild;m;)m.nodeType===1?this._parseNode(m,l,i,u,n,o):m.nodeType===3&&o&&this._parseText(m,l),m=m.nextSibling},r.prototype._parseText=function(e,t){var i=new Ua({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Pi(t,i),li(e,i,this._defsUsePending,!1,!1),p4(i,t);var a=i.style,n=a.fontSize;n&&n<9&&(a.fontSize=9,i.scaleX*=n/9,i.scaleY*=n/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=i.getBoundingRect();return this._textX+=s.width,t.add(i),i},r.internalField=function(){i_={g:function(e,t){var i=new j;return Pi(t,i),li(e,i,this._defsUsePending,!1,!1),i},rect:function(e,t){var i=new pt;return Pi(t,i),li(e,i,this._defsUsePending,!1,!1),i.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),i.silent=!0,i},circle:function(e,t){var i=new ze;return Pi(t,i),li(e,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),i.silent=!0,i},line:function(e,t){var i=new re;return Pi(t,i),li(e,i,this._defsUsePending,!1,!1),i.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),i.silent=!0,i},ellipse:function(e,t){var i=new jo;return Pi(t,i),li(e,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),i.silent=!0,i},polygon:function(e,t){var i=e.getAttribute("points"),a;i&&(a=zE(i));var n=new oe({shape:{points:a||[]},silent:!0});return Pi(t,n),li(e,n,this._defsUsePending,!1,!1),n},polyline:function(e,t){var i=e.getAttribute("points"),a;i&&(a=zE(i));var n=new ae({shape:{points:a||[]},silent:!0});return Pi(t,n),li(e,n,this._defsUsePending,!1,!1),n},image:function(e,t){var i=new Kt;return Pi(t,i),li(e,i,this._defsUsePending,!1,!1),i.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),i.silent=!0,i},text:function(e,t){var i=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",n=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(i)+parseFloat(n),this._textY=parseFloat(a)+parseFloat(o);var s=new j;return Pi(t,s),li(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var i=e.getAttribute("x"),a=e.getAttribute("y");i!=null&&(this._textX=parseFloat(i)),a!=null&&(this._textY=parseFloat(a));var n=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new j;return Pi(t,s),li(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(n),this._textY+=parseFloat(o),s},path:function(e,t){var i=e.getAttribute("d")||"",a=th(i);return Pi(t,a),li(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),r}(),RE={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),i=parseInt(r.getAttribute("x2")||"10",10),a=parseInt(r.getAttribute("y2")||"0",10),n=new yi(e,t,i,a);return OE(r,n),NE(r,n),n},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),i=parseInt(r.getAttribute("r")||"0",10),a=new dl(e,t,i);return OE(r,a),NE(r,a),a}};function OE(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function NE(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var i=t.getAttribute("offset"),a=void 0;i&&i.indexOf("%")>0?a=parseInt(i,10)/100:i?a=parseFloat(i):a=0;var n={};VE(t,n,n);var o=n.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:a,color:o})}t=t.nextSibling}}function Pi(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),X(e.__inheritedStyle,r.__inheritedStyle))}function zE(r){for(var e=ud(r),t=[],i=0;i0;n-=2){var o=i[n],s=i[n-1],l=ud(o);switch(a=a||xe(),s){case"translate":Ye(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":xo(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":pr(a,a,-parseFloat(l[0])*a_);break;case"skewX":var u=Math.tan(parseFloat(l[0])*a_);fr(a,[1,0,u,1,0,0],a);break;case"skewY":var f=Math.tan(parseFloat(l[0])*a_);fr(a,[1,f,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}e.setLocalTransform(a)}}var UE=/([^\s:;]+)\s*:\s*([^:;]+)/g;function VE(r,e,t){var i=r.getAttribute("style");if(i){UE.lastIndex=0;for(var a;(a=UE.exec(i))!=null;){var n=a[1],o=Q(sd,n)?sd[n]:null;o&&(e[o]=a[2]);var s=Q(ld,n)?ld[n]:null;s&&(t[s]=a[2])}}}function g4(r,e,t){for(var i=0;i0,m={api:i,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:c};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(e,t,i),this._updateMapSelectHandler(e,u,i,a)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=Y(),i=Y(),a=this._regionsGroup,n=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(h,v){return v&&(h=v(h)),h&&[h[0]*n.scaleX+n.x,h[1]*n.scaleY+n.y]}function p(h){for(var v=[],d=!u&&l&&l.project,m=0;m=0)&&(c=a);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;jt(e,Yt(i),{labelFetcher:c,labelDataIndex:p,defaultText:t},h);var v=e.getTextContent();if(v&&(JE(v).ignore=v.ignore,e.textConfig&&o)){var d=e.getBoundingRect().clone();e.textConfig.layoutRect=d,e.textConfig.position=[(o[0]-d.x)/d.width*100+"%",(o[1]-d.y)/d.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function XE(r,e,t,i,a,n){r.data?r.data.setItemGraphicEl(n,e):et(e).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:t,region:i&&i.option||{}}}function qE(r,e,t,i,a){r.data||Wi({el:e,componentModel:a,itemName:t,itemTooltipOption:i.get("tooltip")})}function KE(r,e,t,i,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var n=i.getModel("emphasis"),o=n.get("focus");return kt(e,o,n.get("blurScope"),n.get("disabled")),r.isGeo&&bC(e,a,t),o}function jE(r,e,t){var i=[],a;function n(){a=[]}function o(){a.length&&(i.push(a),a=[])}var s=e({polygonStart:n,polygonEnd:o,lineStart:n,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),w(r,function(l){s.lineStart();for(var u=0;u-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Lt),$E=E4;function P4(r,e){var t={};return w(r,function(i){i.each(i.mapDimension("value"),function(a,n){var o="ec-"+i.getName(n);t[o]=t[o]||[],isNaN(a)||t[o].push(a)})}),r[0].map(r[0].mapDimension("value"),function(i,a){for(var n="ec-"+r[0].getName(a),o=0,s=1/0,l=-1/0,u=t[n].length,f=0;f1?(_.width=x,_.height=x/m):(_.height=x,_.width=x*m),_.y=y[1]-_.height/2,_.x=y[0]-_.width/2;else{var b=r.getBoxLayoutParams();b.aspect=m,_=Gt(b,{width:v,height:d})}this.setViewRect(_.x,_.y,_.width,_.height),this.setCenter(r.get("center"),e),this.setZoom(r.get("zoom"))}function N4(r,e){w(e.get("geoCoord"),function(t,i){r.addGeoCoord(i,t)})}var z4=function(){function r(){this.dimensions=h_}return r.prototype.create=function(e,t){var i=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new v_(l+s,l,N({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),i.push(u),o.coordinateSystem=u,u.model=o,u.resize=aP,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=i[l]}});var n={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();n[s]=n[s]||[],n[s].push(o)}}),w(n,function(o,s){var l=k(o,function(f){return f.get("nameMap")}),u=new v_(s,s,N({nameMap:ho(l)},a(o[0])));u.zoomLimit=Jt.apply(null,k(o,function(f){return f.get("scaleLimit")})),i.push(u),u.resize=aP,u.resize(o[0],t),w(o,function(f){f.coordinateSystem=u,N4(u,f)})}),i},r.prototype.getFilledRegions=function(e,t,i,a){for(var n=(e||[]).slice(),o=Y(),s=0;s=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function uP(r,e){var t=r.isExpand?r.children:[],i=r.parentNode.children,a=r.hierNode.i?i[r.hierNode.i-1]:null;if(t.length){F4(r);var n=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(r.hierNode.prelim=a.hierNode.prelim+e(r,a),r.hierNode.modifier=r.hierNode.prelim-n):r.hierNode.prelim=n}else a&&(r.hierNode.prelim=a.hierNode.prelim+e(r,a));r.parentNode.hierNode.defaultAncestor=G4(r,a,r.parentNode.hierNode.defaultAncestor||i[0],e)}function fP(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function y_(r){return arguments.length?r:Y4}function ws(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function pP(r,e){return Gt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function F4(r){for(var e=r.children,t=e.length,i=0,a=0;--t>=0;){var n=e[t];n.hierNode.prelim+=i,n.hierNode.modifier+=i,a+=n.hierNode.change,i+=n.hierNode.shift+a}}function G4(r,e,t,i){if(e){for(var a=r,n=r,o=n.parentNode.children[0],s=e,l=a.hierNode.modifier,u=n.hierNode.modifier,f=o.hierNode.modifier,p=s.hierNode.modifier;s=m_(s),n=g_(n),s&&n;){a=m_(a),o=g_(o),a.hierNode.ancestor=r;var c=s.hierNode.prelim+p-n.hierNode.prelim-u+i(s,n);c>0&&(W4(H4(s,r,t),r,c),u+=c,l+=c),p+=s.hierNode.modifier,u+=n.hierNode.modifier,l+=a.hierNode.modifier,f+=o.hierNode.modifier}s&&!m_(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=p-l),n&&!g_(o)&&(o.hierNode.thread=n,o.hierNode.modifier+=u-f,t=r)}return t}function m_(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function g_(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function H4(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function W4(r,e,t){var i=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=i}function Y4(r,e){return r.parentNode===e.parentNode?1:2}var Z4=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),X4=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Z4},e.prototype.buildPath=function(t,i){var a=i.childPoints,n=a.length,o=i.parentPoint,s=a[0],l=a[n-1];if(n===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=i.orient,f=u==="TB"||u==="BT"?0:1,p=1-f,c=H(i.forkPosition,1),h=[];h[f]=o[f],h[p]=o[p]+(l[p]-o[p])*c,t.moveTo(o[0],o[1]),t.lineTo(h[0],h[1]),t.moveTo(s[0],s[1]),h[f]=s[f],t.lineTo(h[0],h[1]),h[f]=l[f],t.lineTo(h[0],h[1]),t.lineTo(l[0],l[1]);for(var v=1;vy.x,b||(_=_-Math.PI));var T=b?"left":"right",C=s.getModel("label"),A=C.get("rotate"),D=A*(Math.PI/180),M=m.getTextContent();M&&(m.setTextConfig({position:C.get("position")||T,rotation:A==null?-_:D,origin:"center"}),M.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),I=L==="relative"?cn(o.getAncestorsIndices(),o.getDescendantIndices()):L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;I&&(et(t).focus=I),K4(a,o,f,t,v,h,d,i),t.__edge&&(t.onHoverStateChange=function(P){if(P!=="blur"){var R=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===qo||Ko(t.__edge,P)}})}function K4(r,e,t,i,a,n,o,s){var l=e.getModel(),u=r.get("edgeShape"),f=r.get("layout"),p=r.getOrient(),c=r.get(["lineStyle","curveness"]),h=r.get("edgeForkPosition"),v=l.getModel("lineStyle").getLineStyle(),d=i.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(d||(d=i.__edge=new Ha({shape:x_(f,p,c,a,a)})),gt(d,{shape:x_(f,p,c,n,o)},r));else if(u==="polyline"&&f==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var m=e.children,g=[],y=0;yt&&(t=a.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,i=this.children,a=i.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,i=t.data.getItemModel(this.dataIndex);return i.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var i=t.getData().tree.root,a=r.targetNode;if(B(a)&&(a=i.getNodeById(a)),a&&i.contains(a))return{node:a};var n=r.targetNodeId;if(n!=null&&(a=i.getNodeById(n)))return{node:a}}}function S_(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function Xl(r,e){var t=S_(r);return it(t,e)>=0}function $n(r,e){for(var t=[];r;){var i=r.dataIndex;t.push({name:r.name,dataIndex:i,value:e.getRawValue(i)}),r=r.parentNode}return t.reverse(),t}var oY=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var i={name:t.name,children:t.data},a=t.leaves||{},n=new Mt(a,this,this.ecModel),o=Zl.createTree(i,this,s);function s(p){p.wrapMethod("getItemModel",function(c,h){var v=o.getNodeByDataIndex(h);return v&&v.children.length&&v.isExpand||(c.parentModel=n),c})}var l=0;o.eachNode("preorder",function(p){p.depth>l&&(l=p.depth)});var u=t.expandAndCollapse,f=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(p){var c=p.hostTree.data.getRawDataItem(p.dataIndex);p.isExpand=c&&c.collapsed!=null?!c.collapsed:p.depth<=f}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,i,a){for(var n=this.getData().tree,o=n.root.children[0],s=n.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return $t("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var i=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return i.treeAncestors=$n(a,this),i.collapsed=!a.isExpand,i},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Lt),xP=oY;function _P(r,e,t){for(var i=[r],a=[],n;n=i.pop();)if(a.push(n),n.isExpand){var o=n.children;if(o.length)for(var s=0;s=0;n--)t.push(a[n])}}function w_(r,e){r.eachSeriesByType("tree",function(t){sY(t,e)})}function sY(r,e){var t=pP(r,e);r.layoutInfo=t;var i=r.get("layout"),a=0,n=0,o=null;i==="radial"?(a=2*Math.PI,n=Math.min(t.height,t.width)/2,o=y_(function(x,_){return(x.parentNode===_.parentNode?1:2)/x.depth})):(a=t.width,n=t.height,o=y_());var s=r.getData().tree.root,l=s.children[0];if(l){lP(s),_P(l,uP,o),s.hierNode.modifier=-l.hierNode.prelim,ql(l,fP);var u=l,f=l,p=l;ql(l,function(x){var _=x.getLayout().x;_f.getLayout().x&&(f=x),x.depth>p.depth&&(p=x)});var c=u===f?1:o(u,f)/2,h=c-u.getLayout().x,v=0,d=0,m=0,g=0;if(i==="radial")v=a/(f.getLayout().x+c+h),d=n/(p.depth-1||1),ql(l,function(x){m=(x.getLayout().x+h)*v,g=(x.depth-1)*d;var _=ws(m,g);x.setLayout({x:_.x,y:_.y,rawX:m,rawY:g},!0)});else{var y=r.getOrient();y==="RL"||y==="LR"?(d=n/(f.getLayout().x+c+h),v=a/(p.depth-1||1),ql(l,function(x){g=(x.getLayout().x+h)*d,m=y==="LR"?(x.depth-1)*v:a-(x.depth-1)*v,x.setLayout({x:m,y:g},!0)})):(y==="TB"||y==="BT")&&(v=a/(f.getLayout().x+c+h),d=n/(p.depth-1||1),ql(l,function(x){m=(x.getLayout().x+h)*v,g=y==="TB"?(x.depth-1)*d:n-(x.depth-1)*d,x.setLayout({x:m,y:g},!0)}))}}}function T_(r){r.eachSeriesByType("tree",function(e){var t=e.getData(),i=t.tree;i.eachNode(function(a){var n=a.getModel(),o=n.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");N(s,o)})})}function SP(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(i){var a=e.dataIndex,n=i.getData().tree,o=n.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,i){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var n=a.coordinateSystem,o=Yl(n,e,void 0,i);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function C_(r){r.registerChartView(gP),r.registerSeriesModel(xP),r.registerLayout(w_),r.registerVisual(T_),SP(r)}var bP=["treemapZoomToNode","treemapRender","treemapMove"];function wP(r){for(var e=0;e1;)n=n.parentNode;var o=Tf(r.ecModel,n.name||n.dataIndex+"",i);a.setVisual("decal",o)})}var lY=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,i){var a={name:t.name,children:t.data};TP(a);var n=t.levels||[],o=this.designatedVisualItemStyle={},s=new Mt({itemStyle:o},this,i);n=t.levels=uY(n,i);var l=k(n||[],function(p){return new Mt(p,s,i)},this),u=Zl.createTree(a,this,f);function f(p){p.wrapMethod("getItemModel",function(c,h){var v=u.getNodeByDataIndex(h),d=v?l[v.depth]:null;return c.parentModel=d||s,c})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,i,a){var n=this.getData(),o=this.getRawValue(t),s=n.getName(t);return $t("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var i=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return i.treeAncestors=$n(a,this),i.treePathInfo=i.treeAncestors,i},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},N(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var i=this._idIndexMap;i||(i=this._idIndexMap=Y(),this._idIndexMapCount=0);var a=i.get(t);return a==null&&i.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var i=this.getRawData().tree.root;(!t||t!==i&&!i.contains(t))&&(this._viewRoot=i)},e.prototype.enableAriaDecal=function(){dp(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Lt);function TP(r){var e=0;w(r.children,function(i){TP(i);var a=i.value;z(a)&&(a=a[0]),e+=a});var t=r.value;z(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),z(r.value)?r.value[0]=t:r.value=t}function uY(r,e){var t=Ot(e.get("color")),i=Ot(e.get(["aria","decal","decals"]));if(t){r=r||[];var a,n;w(r,function(s){var l=new Mt(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(n=!0)});var o=r[0]||(r[0]={});return a||(o.color=t.slice()),!n&&i&&(o.decal=i.slice()),r}}var CP=lY;var fY=8,AP=8,A_=5,pY=function(){function r(e){this.group=new j,e.add(this.group)}return r.prototype.render=function(e,t,i,a){var n=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!n.get("show")||!i)){var s=n.getModel("itemStyle"),l=n.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),p={pos:{left:n.get("left"),right:n.get("right"),top:n.get("top"),bottom:n.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:n.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(i,p,u),this._renderContent(e,p,s,l,u,f,a),Rn(o,p.pos,p.box)}},r.prototype._prepare=function(e,t,i){for(var a=e;a;a=a.parentNode){var n=ie(a.getModel().get("name"),""),o=i.getTextRect(n),s=Math.max(o.width+fY*2,t.emptyItemWidth);t.totalWidth+=s+AP,t.renderList.push({node:a,text:n,width:s})}},r.prototype._renderContent=function(e,t,i,a,n,o,s){for(var l=0,u=t.emptyItemWidth,f=e.get(["breadcrumb","height"]),p=TA(t.pos,t.box),c=t.totalWidth,h=t.renderList,v=a.getModel("itemStyle").getItemStyle(),d=h.length-1;d>=0;d--){var m=h[d],g=m.node,y=m.width,x=m.text;c>p.width&&(c-=y-u,y=u,x=null);var _=new oe({shape:{points:cY(l,0,y,f,d===h.length-1,d===0)},style:X(i.getItemStyle(),{lineJoin:"bevel"}),textContent:new dt({style:Ut(n,{text:x})}),textConfig:{position:"inside"},z2:Va*1e4,onclick:tt(s,g)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=Ut(o,{text:x}),_.ensureState("emphasis").style=v,kt(_,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(_),hY(_,e,g),l+=y+AP}},r.prototype.remove=function(){this.group.removeAll()},r}();function cY(r,e,t,i,a,n){var o=[[a?r:r-A_,e],[r+t,e],[r+t,e+i],[a?r:r-A_,e+i]];return!n&&o.splice(2,0,[r+t+A_,e+i/2]),!a&&o.push([r,e+i/2]),o}function hY(r,e,t){et(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&$n(t,e)}}var DP=pY;var vY=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,i,a,n){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:i,delay:a,easing:n}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,i=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,n=this._storage.length;aIP||Math.abs(t.dy)>IP)){var i=this.seriesModel.getData().tree.root;if(!i)return;var a=i.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var i=t.originX,a=t.originY;if(this._state!=="animating"){var n=this.seriesModel.getData().tree.root;if(!n)return;var o=n.getLayout();if(!o)return;var s=new rt(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;i-=l.x,a-=l.y;var u=xe();Ye(u,u,[-i,-a]),xo(u,u,[t.scale,t.scale]),Ye(u,u,[i,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var i=this;t.on("click",function(a){if(i._state==="ready"){var n=i.seriesModel.get("nodeClick",!0);if(n){var o=i.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)i._rootToNode(o);else if(n==="zoomToNode")i._zoomToNode(o);else if(n==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&os(u,f)}}}}},this)},e.prototype._renderBreadcrumb=function(t,i,a){var n=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(i.getWidth()/2,i.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new DP(this.group))).render(t,i,a.node,function(o){n._state!=="animating"&&(Xl(t.getViewRoot(),o)?n._rootToNode({node:o}):n._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=mp(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,i){var a,n=this.seriesModel.getViewRoot();return n.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,i),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},e.type="treemap",e}(Tt);function mp(){return{nodeGroup:[],background:[],content:[]}}function _Y(r,e,t,i,a,n,o,s,l,u){if(!o)return;var f=o.getLayout(),p=r.getData(),c=o.getModel();if(p.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var h=f.width,v=f.height,d=f.borderWidth,m=f.invisible,g=o.getRawIndex(),y=s&&s.getRawIndex(),x=o.viewChildren,_=f.upperHeight,b=x&&x.length,S=c.getModel("itemStyle"),T=c.getModel(["emphasis","itemStyle"]),C=c.getModel(["blur","itemStyle"]),A=c.getModel(["select","itemStyle"]),D=S.get("borderRadius")||0,M=ct("nodeGroup",D_);if(!M)return;if(l.add(M),M.x=f.x||0,M.y=f.y||0,M.markRedraw(),vd(M).nodeWidth=h,vd(M).nodeHeight=v,f.isAboveViewRoot)return M;var L=ct("background",LP,u,gY);L&&F(M,L,b&&f.upperLabelHeight);var I=c.getModel("emphasis"),P=I.get("focus"),R=I.get("blurScope"),O=I.get("disabled"),V=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(b)In(M)&&Fa(M,!1),L&&(Fa(L,!O),p.setItemGraphicEl(o.dataIndex,L),Kc(L,V,R));else{var U=ct("content",LP,u,yY);U&&q(M,U),L.disableMorphing=!0,L&&In(L)&&Fa(L,!1),Fa(M,!O),p.setItemGraphicEl(o.dataIndex,M),Kc(M,V,R)}return M;function F(Pt,xt,Rt){var Ct=et(xt);if(Ct.dataIndex=o.dataIndex,Ct.seriesIndex=r.seriesIndex,xt.setShape({x:0,y:0,width:h,height:v,r:D}),m)$(xt);else{xt.invisible=!1;var ut=o.getVisual("style"),At=ut.stroke,le=RP(S);le.fill=At;var Ft=Ts(T);Ft.fill=T.get("borderColor");var de=Ts(C);de.fill=C.get("borderColor");var ce=Ts(A);if(ce.fill=A.get("borderColor"),Rt){var er=h-2*d;st(xt,At,ut.opacity,{x:d,y:0,width:er,height:_})}else xt.removeTextContent();xt.setStyle(le),xt.ensureState("emphasis").style=Ft,xt.ensureState("blur").style=de,xt.ensureState("select").style=ce,Fi(xt)}Pt.add(xt)}function q(Pt,xt){var Rt=et(xt);Rt.dataIndex=o.dataIndex,Rt.seriesIndex=r.seriesIndex;var Ct=Math.max(h-2*d,0),ut=Math.max(v-2*d,0);if(xt.culling=!0,xt.setShape({x:d,y:d,width:Ct,height:ut,r:D}),m)$(xt);else{xt.invisible=!1;var At=o.getVisual("style"),le=At.fill,Ft=RP(S);Ft.fill=le,Ft.decal=At.decal;var de=Ts(T),ce=Ts(C),er=Ts(A);st(xt,le,At.opacity,null),xt.setStyle(Ft),xt.ensureState("emphasis").style=de,xt.ensureState("blur").style=ce,xt.ensureState("select").style=er,Fi(xt)}Pt.add(xt)}function $(Pt){!Pt.invisible&&n.push(Pt)}function st(Pt,xt,Rt,Ct){var ut=c.getModel(Ct?PP:EP),At=ie(c.get("name"),null),le=ut.getShallow("show");jt(Pt,Yt(c,Ct?PP:EP),{defaultText:le?At:null,inheritColor:xt,defaultOpacity:Rt,labelFetcher:r,labelDataIndex:o.dataIndex});var Ft=Pt.getTextContent();if(Ft){var de=Ft.style,ce=vo(de.padding||0);Ct&&(Pt.setTextConfig({layoutRect:Ct}),Ft.disableLabelLayout=!0),Ft.beforeUpdate=function(){var Ea=Math.max((Ct?Ct.width:Pt.shape.width)-ce[1]-ce[3],0),Tr=Math.max((Ct?Ct.height:Pt.shape.height)-ce[0]-ce[2],0);(de.width!==Ea||de.height!==Tr)&&Ft.setStyle({width:Ea,height:Tr})},de.truncateMinChar=2,de.lineOverflow="truncate",ht(de,Ct,f);var er=Ft.getState("emphasis");ht(er?er.style:null,Ct,f)}}function ht(Pt,xt,Rt){var Ct=Pt?Pt.text:null;if(!xt&&Rt.isLeafRoot&&Ct!=null){var ut=r.get("drillDownIcon",!0);Pt.text=ut?ut+" "+Ct:Ct}}function ct(Pt,xt,Rt,Ct){var ut=y!=null&&t[Pt][y],At=a[Pt];return ut?(t[Pt][y]=null,It(At,ut)):m||(ut=new xt,ut instanceof ge&&(ut.z2=SY(Rt,Ct)),Vt(At,ut)),e[Pt][g]=ut}function It(Pt,xt){var Rt=Pt[g]={};xt instanceof D_?(Rt.oldX=xt.x,Rt.oldY=xt.y):Rt.oldShape=N({},xt.shape)}function Vt(Pt,xt){var Rt=Pt[g]={},Ct=o.parentNode,ut=xt instanceof j;if(Ct&&(!i||i.direction==="drillDown")){var At=0,le=0,Ft=a.background[Ct.getRawIndex()];!i&&Ft&&Ft.oldShape&&(At=Ft.oldShape.width,le=Ft.oldShape.height),ut?(Rt.oldX=0,Rt.oldY=le):Rt.oldShape={x:At,y:le,width:0,height:0}}Rt.fadein=!ut}}function SY(r,e){return r*mY+e}var OP=xY;var xp=w,bY=K,gd=-1,E_=function(){function r(e){var t=e.mappingMethod,i=e.type,a=this.option=J(e);this.type=i,this.mappingMethod=t,this._normalizeData=CY[t];var n=r.visualHandlers[i];this.applyVisual=n.applyVisual,this.getColorMapper=n.getColorMapper,this._normalizedToVisual=n._normalizedToVisual[t],t==="piecewise"?(M_(a),wY(a)):t==="category"?a.categories?TY(a):M_(a,!0):(Qt(t!=="linear"||a.dataExtent),M_(a))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return W(this._normalizeData,this)},r.listVisualTypes=function(){return ft(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,i){K(e)?w(e,t,i):t.call(i,e)},r.mapVisual=function(e,t,i){var a,n=z(e)?[]:K(e)?{}:(a=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(i,o,s);a?n=l:n[s]=l}),n},r.retrieveVisuals=function(e){var t={},i;return e&&xp(r.visualHandlers,function(a,n){e.hasOwnProperty(n)&&(t[n]=e[n],i=!0)}),i?t:null},r.prepareVisualTypes=function(e){if(z(e))e=e.slice();else if(bY(e)){var t=[];xp(e,function(i,a){t.push(a)}),e=t}else return[];return e.sort(function(i,a){return a==="color"&&i!=="color"&&i.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,i){for(var a,n=1/0,o=0,s=t.length;o=0;n--)i[n]==null&&(delete t[e[n]],e.pop())}function M_(r,e){var t=r.visual,i=[];K(t)?xp(t,function(n){i.push(n)}):t!=null&&i.push(t);var a={color:1,symbol:1};!e&&i.length===1&&!a.hasOwnProperty(r.type)&&(i[1]=i[0]),zP(r,i)}function dd(r){return{applyVisual:function(e,t,i){var a=this.mapValueToVisual(e);i("color",r(t("color"),a))},_normalizedToVisual:L_([0,1])}}function NP(r){var e=this.option.visual;return e[Math.round(zt(r,[0,1],[0,e.length-1],!0))]||{}}function gp(r){return function(e,t,i){i(r,this.mapValueToVisual(e))}}function yp(r){var e=this.option.visual;return e[this.option.loop&&r!==gd?r%e.length:r]}function Cs(){return this.option.visual[0]}function L_(r){return{linear:function(e){return zt(e,r,this.option.visual,!0)},category:yp,piecewise:function(e,t){var i=I_.call(this,t);return i==null&&(i=zt(e,r,this.option.visual,!0)),i},fixed:Cs}}function I_(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var i=E_.findPieceIndex(r,t),a=t[i];if(a&&a.visual)return a.visual[this.type]}}function zP(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=k(e,function(t){var i=Re(t);return i||[0,0,0,1]})),e}var CY={linear:function(r){return zt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=E_.findPieceIndex(r,e,!0);if(t!=null)return zt(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??gd},fixed:qt};function md(r,e,t){return r?e<=t:e=t.length||d===t[d.depth]){var g=IY(a,l,d,m,v,i);BP(d,g,t,i)}})}}}function DY(r,e,t){var i=N({},e),a=t.designatedVisualItemStyle;return w(["color","colorAlpha","colorSaturation"],function(n){a[n]=e[n];var o=r.get(n);a[n]=null,o!=null&&(i[n]=o)}),i}function kP(r){var e=P_(r,"color");if(e){var t=P_(r,"colorAlpha"),i=P_(r,"colorSaturation");return i&&(e=yn(e,null,null,i)),t&&(e=xn(e,t)),e}}function MY(r,e){return e!=null?yn(e,null,null,r):null}function P_(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function LY(r,e,t,i,a,n){if(!(!n||!n.length)){var o=R_(e,"color")||a.color!=null&&a.color!=="none"&&(R_(e,"colorAlpha")||R_(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var f=e.get("colorMappingBy"),p={type:o.name,dataExtent:u,visual:o.range};p.type==="color"&&(f==="index"||f==="id")?(p.mappingMethod="category",p.loop=!0):p.mappingMethod="linear";var c=new ve(p);return UP(c).drColorMappingBy=f,c}}}function R_(r,e){var t=r.get(e);return z(t)&&t.length?{name:e,range:t}:null}function IY(r,e,t,i,a,n){var o=N({},e);if(a){var s=a.type,l=s==="color"&&UP(a).drColorMappingBy,u=l==="index"?i:l==="id"?n.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var _p=Math.max,yd=Math.min,FP=Jt,O_=w,HP=["itemStyle","borderWidth"],EY=["itemStyle","gapWidth"],PY=["upperLabel","show"],RY=["upperLabel","height"],WP={seriesType:"treemap",reset:function(r,e,t,i){var a=t.getWidth(),n=t.getHeight(),o=r.option,s=Gt(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=H(FP(s.width,l[0]),a),f=H(FP(s.height,l[1]),n),p=i&&i.type,c=["treemapZoomToNode","treemapRootToNode"],h=an(i,c,r),v=p==="treemapRender"||p==="treemapMove"?i.rootRect:null,d=r.getViewRoot(),m=S_(d);if(p!=="treemapMove"){var g=p==="treemapZoomToNode"?VY(r,h,d,u,f):v?[v.width,v.height]:[u,f],y=o.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var x={squareRatio:o.squareRatio,sort:y,leafDepth:o.leafDepth};d.hostTree.clearLayouts();var _={x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]};d.setLayout(_),YP(d,x,!1,0),_=d.getLayout(),O_(m,function(S,T){var C=(m[T+1]||d).getValue();S.setLayout(N({dataExtent:[C,C],borderWidth:0,upperHeight:0},_))})}var b=r.getData().tree.root;b.setLayout(BY(s,v,h),!0),r.setLayoutInfo(s),ZP(b,new rt(-s.x,-s.y,a,n),m,d,0)}};function YP(r,e,t,i){var a,n;if(!r.isRemoved()){var o=r.getLayout();a=o.width,n=o.height;var s=r.getModel(),l=s.get(HP),u=s.get(EY)/2,f=XP(s),p=Math.max(l,f),c=l-u,h=p-u;r.setLayout({borderWidth:l,upperHeight:p,upperLabelHeight:f},!0),a=_p(a-2*c,0),n=_p(n-c-h,0);var v=a*n,d=OY(r,s,v,e,t,i);if(d.length){var m={x:c,y:h,width:a,height:n},g=yd(a,n),y=1/0,x=[];x.area=0;for(var _=0,b=d.length;_=0;l--){var u=a[i==="asc"?o-l-1:l].getValue();u/t*es[1]&&(s[1]=u)})),{sum:i,dataExtent:s}}function UY(r,e,t){for(var i=0,a=1/0,n=0,o=void 0,s=r.length;ni&&(i=o));var l=r.area*r.area,u=e*e*t;return l?_p(u*i/l,l/(u*a)):1/0}function GP(r,e,t,i,a){var n=e===t.width?0:1,o=1-n,s=["x","y"],l=["width","height"],u=t[s[n]],f=e?r.area/e:0;(a||f>t[l[o]])&&(f=t[l[o]]);for(var p=0,c=r.length;pZu&&(u=Zu),n=s}ui&&(i=e);var n=i%2?i+2:i+3;a=[];for(var o=0;o0&&(b[0]=-b[0],b[1]=-b[1]);var T=_[0]<0?-1:1;if(n.__position!=="start"&&n.__position!=="end"){var C=-Math.atan2(_[1],_[0]);p[0].8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":n.x=-c[0]*g+f[0],n.y=-c[1]*y+f[1],v=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=g*T+f[0],n.y=f[1]+A,v=_[0]<0?"right":"left",n.originX=-g*T,n.originY=-A;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=S[0],n.y=S[1]+A,v="center",n.originY=-A;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-g*T+p[0],n.y=p[1]+A,v=_[0]>=0?"right":"left",n.originX=g*T,n.originY=-A;break}n.scaleX=n.scaleY=o,n.setStyle({verticalAlign:n.__verticalAlign||d,align:n.__align||v})}},e}(j),Ql=XY;var qY=function(){function r(e){this.group=new j,this._LineCtor=e||Ql}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var i=this,a=i.group,n=i._lineData;i._lineData=e,n||a.removeAll();var o=o2(e);e.diff(n).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(n,e,l,s,o)}).remove(function(s){a.remove(n.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,i){t.updateLayout(e,i)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=o2(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function i(s){!s.isGroup&&!KY(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a0}function o2(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:Yt(e)}}function s2(r){return isNaN(r[0])||isNaN(r[1])}function J_(r){return r&&!s2(r[0])&&!s2(r[1])}var $l=qY;var Q_=[],$_=[],tS=[],tu=me,eS=na,l2=Math.abs;function u2(r,e,t){for(var i=r[0],a=r[1],n=r[2],o=1/0,s,l=t*t,u=.1,f=.1;f<=.9;f+=.1){Q_[0]=tu(i[0],a[0],n[0],f),Q_[1]=tu(i[1],a[1],n[1],f);var p=l2(eS(Q_,e)-l);p=0?s=s+u:s=s-u:v>=0?s=s-u:s=s+u}return s}function wp(r,e){var t=[],i=mn,a=[[],[],[]],n=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),p=s.getVisual("toSymbol");u.__original||(u.__original=[ur(u[0]),ur(u[1])],u[2]&&u.__original.push(ur(u[2])));var c=u.__original;if(u[2]!=null){if(Ee(a[0],c[0]),Ee(a[1],c[2]),Ee(a[2],c[1]),f&&f!=="none"){var h=Ds(s.node1),v=u2(a,c[0],h*e);i(a[0][0],a[1][0],a[2][0],v,t),a[0][0]=t[3],a[1][0]=t[4],i(a[0][1],a[1][1],a[2][1],v,t),a[0][1]=t[3],a[1][1]=t[4]}if(p&&p!=="none"){var h=Ds(s.node2),v=u2(a,c[1],h*e);i(a[0][0],a[1][0],a[2][0],v,t),a[1][0]=t[1],a[2][0]=t[2],i(a[0][1],a[1][1],a[2][1],v,t),a[1][1]=t[1],a[2][1]=t[2]}Ee(u[0],a[0]),Ee(u[1],a[2]),Ee(u[2],a[1])}else{if(Ee(n[0],c[0]),Ee(n[1],c[1]),fi(o,n[1],n[0]),qr(o,o),f&&f!=="none"){var h=Ds(s.node1);Us(n[0],n[0],o,h*e)}if(p&&p!=="none"){var h=Ds(s.node2);Us(n[1],n[1],o,-h*e)}Ee(u[0],n[0]),Ee(u[1],n[1])}})}function f2(r){return r.type==="view"}var jY=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){var a=new wa,n=new $l,o=this.group;this._controller=new Aa(i.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(n.group),this._symbolDraw=a,this._lineDraw=n,this._firstRender=!0},e.prototype.render=function(t,i,a){var n=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(f2(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):gt(u,f,t)}wp(t.getGraph(),As(t));var p=t.getData();s.updateData(p);var c=t.getEdgeData();l.updateData(c),this._updateNodeAndLinkScale(),this._updateController(t,i,a),clearTimeout(this._layoutTimeout);var h=t.forceLayout,v=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,v);var d=t.get("layout");p.graph.eachNode(function(x){var _=x.dataIndex,b=x.getGraphicEl(),S=x.getModel();if(b){b.off("drag").off("dragend");var T=S.get("draggable");T&&b.on("drag",function(A){switch(d){case"force":h.warmUp(),!n._layouting&&n._startForceLayoutIteration(h,v),h.setFixed(_),p.setItemLayout(_,[b.x,b.y]);break;case"circular":p.setItemLayout(_,[b.x,b.y]),x.setLayout({fixed:!0},!0),jl(t,"symbolSize",x,[A.offsetX,A.offsetY]),n.updateLayout(t);break;case"none":default:p.setItemLayout(_,[b.x,b.y]),bp(t.getGraph(),t),n.updateLayout(t);break}}).on("dragend",function(){h&&h.setUnfixed(_)}),b.setDraggable(T,!!S.get("cursor"));var C=S.get(["emphasis","focus"]);C==="adjacency"&&(et(b).focus=x.getAdjacentDataIndices())}}),p.graph.eachEdge(function(x){var _=x.getGraphicEl(),b=x.getModel().get(["emphasis","focus"]);_&&b==="adjacency"&&(et(_).focus={edge:[x.dataIndex],node:[x.node1.dataIndex,x.node2.dataIndex]})});var m=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),g=p.getLayout("cx"),y=p.getLayout("cy");p.graph.eachNode(function(x){H_(x,m,g,y)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,i){var a=this;(function n(){t.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(i?a._layoutTimeout=setTimeout(n,16):n())})})()},e.prototype._updateController=function(t,i,a){var n=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,f,p){var c=l.getBoundingRect();return c.applyTransform(l.transform),c.contain(f,p)&&!Jn(u,a,t)}),!f2(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){Hl(s,u.dx,u.dy),a.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Wl(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),n._updateNodeAndLinkScale(),wp(t.getGraph(),As(t)),n._lineDraw.updateLayout(),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,i=t.getData(),a=As(t);i.eachItemGraphicEl(function(n,o){n&&n.setSymbolScale(a)})},e.prototype.updateLayout=function(t){wp(t.getGraph(),As(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,i){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Tt),p2=jY;function eu(r){return"_EC_"+r}var JY=function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var i=this._nodesMap;if(!i[eu(e)]){var a=new Ms(e,t);return a.hostGraph=this,this.nodes.push(a),i[eu(e)]=a,a}},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[eu(e)]},r.prototype.addEdge=function(e,t,i){var a=this._nodesMap,n=this._edgesMap;if(vt(e)&&(e=this.nodes[e]),vt(t)&&(t=this.nodes[t]),e instanceof Ms||(e=a[eu(e)]),t instanceof Ms||(t=a[eu(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new c2(e,t,i);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),n[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof Ms&&(e=e.id),t instanceof Ms&&(t=t.id);var i=this._edgesMap;return this._directed?i[e+"-"+t]:i[e+"-"+t]||i[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var i=this.nodes,a=i.length,n=0;n=0&&e.call(t,i[n],n)},r.prototype.eachEdge=function(e,t){for(var i=this.edges,a=i.length,n=0;n=0&&i[n].node1.dataIndex>=0&&i[n].node2.dataIndex>=0&&e.call(t,i[n],n)},r.prototype.breadthFirstTraverse=function(e,t,i,a){if(t instanceof Ms||(t=this._nodesMap[eu(t)]),!!t){for(var n=i==="out"?"outEdges":i==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var n=0,o=a.length;n=0&&this[r][e].setItemVisual(this.dataIndex,t,i)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,i){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,i)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}Wt(Ms,h2("hostGraph","data"));Wt(c2,h2("hostGraph","edgeData"));var v2=JY;function Tp(r,e,t,i,a){for(var n=new v2(i),o=0;o "+c)),u++)}var h=t.get("coordinateSystem"),v;if(h==="cartesian2d"||h==="polar")v=ke(r,t);else{var d=ga.get(h),m=d?d.dimensions||[]:[];it(m,"value")<0&&m.concat(["value"]);var g=Di(r,{coordDimensions:m,encodeDefine:t.getEncode()}).dimensions;v=new se(g,t),v.initData(r)}var y=new se(["value"],t);return y.initData(l,s),a&&a(v,y),hd({mainData:v,struct:n,structAttr:"graph",datas:{node:v,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),n.update(),n}var QY=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var i=this;function a(){return i._categoriesData}this.legendVisualProvider=new Ca(a,a),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),Qr(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,i){var a=t.edges||t.links||[],n=t.data||t.nodes||[],o=this;if(n&&a){jP(this);var s=Tp(n,a,this,!0,l);return w(s.edges,function(u){JP(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(v){var d=o._categoriesModels,m=v.getShallow("category"),g=d[m];return g&&(g.parentModel=v.parentModel,v.parentModel=g),v});var p=Mt.prototype.getModel;function c(v,d){var m=p.call(this,v,d);return m.resolveParentPath=h,m}f.wrapMethod("getItemModel",function(v){return v.resolveParentPath=h,v.getModel=c,v});function h(v){if(v&&(v[0]==="label"||v[1]==="label")){var d=v.slice();return v[0]==="label"?d[0]="edgeLabel":v[1]==="label"&&(d[1]="edgeLabel"),d}return v}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,i,a){if(a==="edge"){var n=this.getData(),o=this.getDataParams(t,a),s=n.graph.getEdgeByIndex(t),l=n.getName(s.node1.dataIndex),u=n.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),$t("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var p=Hh({series:this,dataIndex:t,multipleSeries:i});return p},e.prototype._updateCategoriesData=function(){var t=k(this.option.categories||[],function(a){return a.value!=null?a:N({value:0},a)}),i=new se(["value"],this);i.initData(t),this._categoriesData=i,this._categoriesModels=i.mapArray(function(a){return i.getItemModel(a)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Lt),d2=QY;var $Y={type:"graphRoam",event:"graphRoam",update:"none"};function rS(r){r.registerChartView(p2),r.registerSeriesModel(d2),r.registerProcessor(z_),r.registerVisual(k_),r.registerVisual(U_),r.registerLayout(F_),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,W_),r.registerLayout(Y_),r.registerCoordinateSystem("graphView",{dimensions:rn.dimensions,create:Z_}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},qt),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},qt),r.registerAction($Y,function(e,t,i){t.eachComponent({mainType:"series",query:e},function(a){var n=a.coordinateSystem,o=Yl(n,e,void 0,i);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var t6=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),e6=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="pointer",i}return e.prototype.getDefaultShape=function(){return new t6},e.prototype.buildPath=function(t,i){var a=Math.cos,n=Math.sin,o=i.r,s=i.width,l=i.angle,u=i.x-a(l)*s*(s>=o/3?1:2),f=i.y-n(l)*s*(s>=o/3?1:2);l=i.angle-Math.PI/2,t.moveTo(u,f),t.lineTo(i.x+a(l)*s,i.y+n(l)*s),t.lineTo(i.x+a(i.angle)*o,i.y+n(i.angle)*o),t.lineTo(i.x-a(l)*s,i.y-n(l)*s),t.lineTo(u,f)},e}(at),m2=e6;function r6(r,e){var t=r.get("center"),i=e.getWidth(),a=e.getHeight(),n=Math.min(i,a),o=H(t[0],e.getWidth()),s=H(t[1],e.getHeight()),l=H(r.get("radius"),n/2);return{cx:o,cy:s,r:l}}function bd(r,e){var t=r==null?"":r+"";return e&&(B(e)?t=e.replace("{value}",t):Z(e)&&(t=e(r))),t}var i6=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){this.group.removeAll();var n=t.get(["axisLine","lineStyle","color"]),o=r6(t,a);this._renderMain(t,i,a,n,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,i,a,n,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,f=-t.get("endAngle")/180*Math.PI,p=t.getModel("axisLine"),c=p.get("roundCap"),h=c?Fl:pe,v=p.get("show"),d=p.getModel("lineStyle"),m=d.get("width"),g=[u,f];Gg(g,!l),u=g[0],f=g[1];for(var y=f-u,x=u,_=[],b=0;v&&b=A&&(D===0?0:n[D-1][0])Math.PI/2&&(ct+=Math.PI)):ht==="tangential"?ct=-C-Math.PI/2:vt(ht)&&(ct=ht*Math.PI/180),ct===0?p.add(new dt({style:Ut(x,{text:F,x:$,y:st,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:q}),silent:!0})):p.add(new dt({style:Ut(x,{text:F,x:$,y:st,verticalAlign:"middle",align:"center"},{inheritColor:q}),silent:!0,originX:$,originY:st,rotation:ct}))}if(y.get("show")&&O!==_){var V=y.get("distance");V=V?V+f:f;for(var It=0;It<=b;It++){P=Math.cos(C),R=Math.sin(C);var Vt=new re({shape:{x1:P*(v-V)+c,y1:R*(v-V)+h,x2:P*(v-T-V)+c,y2:R*(v-T-V)+h},silent:!0,style:L});L.stroke==="auto"&&Vt.setStyle({stroke:n((O+It/b)/_)}),p.add(Vt),C+=D}C-=D}else C+=A}},e.prototype._renderPointer=function(t,i,a,n,o,s,l,u,f){var p=this.group,c=this._data,h=this._progressEls,v=[],d=t.get(["pointer","show"]),m=t.getModel("progress"),g=m.get("show"),y=t.getData(),x=y.mapDimension("value"),_=+t.get("min"),b=+t.get("max"),S=[_,b],T=[s,l];function C(D,M){var L=y.getItemModel(D),I=L.getModel("pointer"),P=H(I.get("width"),o.r),R=H(I.get("length"),o.r),O=t.get(["pointer","icon"]),V=I.get("offsetCenter"),U=H(V[0],o.r),F=H(V[1],o.r),q=I.get("keepAspect"),$;return O?$=Ht(O,U-P/2,F-R,P,R,null,q):$=new m2({shape:{angle:-Math.PI/2,width:P,r:R,x:U,y:F}}),$.rotation=-(M+Math.PI/2),$.x=o.cx,$.y=o.cy,$}function A(D,M){var L=m.get("roundCap"),I=L?Fl:pe,P=m.get("overlap"),R=P?m.get("width"):f/y.count(),O=P?o.r-R:o.r-(D+1)*R,V=P?o.r:o.r-D*R,U=new I({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:O,r:V}});return P&&(U.z2=b-y.get(x,D)%b),U}(g||d)&&(y.diff(c).add(function(D){var M=y.get(x,D);if(d){var L=C(D,s);Nt(L,{rotation:-((isNaN(+M)?T[0]:zt(M,S,T,!0))+Math.PI/2)},t),p.add(L),y.setItemGraphicEl(D,L)}if(g){var I=A(D,s),P=m.get("clip");Nt(I,{shape:{endAngle:zt(M,S,T,P)}},t),p.add(I),ef(t.seriesIndex,y.dataType,D,I),v[D]=I}}).update(function(D,M){var L=y.get(x,D);if(d){var I=c.getItemGraphicEl(M),P=I?I.rotation:s,R=C(D,P);R.rotation=P,gt(R,{rotation:-((isNaN(+L)?T[0]:zt(L,S,T,!0))+Math.PI/2)},t),p.add(R),y.setItemGraphicEl(D,R)}if(g){var O=h[M],V=O?O.shape.endAngle:s,U=A(D,V),F=m.get("clip");gt(U,{shape:{endAngle:zt(L,S,T,F)}},t),p.add(U),ef(t.seriesIndex,y.dataType,D,U),v[D]=U}}).execute(),y.each(function(D){var M=y.getItemModel(D),L=M.getModel("emphasis"),I=L.get("focus"),P=L.get("blurScope"),R=L.get("disabled");if(d){var O=y.getItemGraphicEl(D),V=y.getItemVisual(D,"style"),U=V.fill;if(O instanceof Kt){var F=O.style;O.useStyle(N({image:F.image,x:F.x,y:F.y,width:F.width,height:F.height},V))}else O.useStyle(V),O.type!=="pointer"&&O.setColor(U);O.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),O.style.fill==="auto"&&O.setStyle("fill",n(zt(y.get(x,D),S,[0,1],!0))),O.z2EmphasisLift=0,ee(O,M),kt(O,I,P,R)}if(g){var q=v[D];q.useStyle(y.getItemVisual(D,"style")),q.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),q.z2EmphasisLift=0,ee(q,M),kt(q,I,P,R)}}),this._progressEls=v)},e.prototype._renderAnchor=function(t,i){var a=t.getModel("anchor"),n=a.get("show");if(n){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),f=Ht(s,i.cx-o/2+H(l[0],i.r),i.cy-o/2+H(l[1],i.r),o,o,null,u);f.z2=a.get("showAbove")?1:0,f.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(t,i,a,n,o){var s=this,l=t.getData(),u=l.mapDimension("value"),f=+t.get("min"),p=+t.get("max"),c=new j,h=[],v=[],d=t.isAnimationEnabled(),m=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(g){h[g]=new dt({silent:!0}),v[g]=new dt({silent:!0})}).update(function(g,y){h[g]=s._titleEls[y],v[g]=s._detailEls[y]}).execute(),l.each(function(g){var y=l.getItemModel(g),x=l.get(u,g),_=new j,b=n(zt(x,[f,p],[0,1],!0)),S=y.getModel("title");if(S.get("show")){var T=S.get("offsetCenter"),C=o.cx+H(T[0],o.r),A=o.cy+H(T[1],o.r),D=h[g];D.attr({z2:m?0:2,style:Ut(S,{x:C,y:A,text:l.getName(g),align:"center",verticalAlign:"middle"},{inheritColor:b})}),_.add(D)}var M=y.getModel("detail");if(M.get("show")){var L=M.get("offsetCenter"),I=o.cx+H(L[0],o.r),P=o.cy+H(L[1],o.r),R=H(M.get("width"),o.r),O=H(M.get("height"),o.r),V=t.get(["progress","show"])?l.getItemVisual(g,"style").fill:b,D=v[g],U=M.get("formatter");D.attr({z2:m?0:2,style:Ut(M,{x:I,y:P,text:bd(x,U),width:isNaN(R)?null:R,height:isNaN(O)?null:O,align:"center",verticalAlign:"middle"},{inheritColor:V})}),ch(D,{normal:M},x,function(q){return bd(q,U)}),d&&hh(D,g,l,t,{getFormattedLabel:function(q,$,st,ht,ct,It){return bd(It?It.interpolatedValue:x,U)}}),_.add(D)}c.add(_)}),this.group.add(c),this._titleEls=h,this._detailEls=v},e.type="gauge",e}(Tt),g2=i6;var a6=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,i){return si(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Lt),y2=a6;function iS(r){r.registerChartView(g2),r.registerSeriesModel(y2)}var n6=["itemStyle","opacity"],o6=function(r){E(e,r);function e(t,i){var a=r.call(this)||this,n=a,o=new ae,s=new dt;return n.setTextContent(s),a.setTextGuideLine(o),a.updateData(t,i,!0),a}return e.prototype.updateData=function(t,i,a){var n=this,o=t.hostModel,s=t.getItemModel(i),l=t.getItemLayout(i),u=s.getModel("emphasis"),f=s.get(n6);f=f??1,a||Ae(n),n.useStyle(t.getItemVisual(i,"style")),n.style.lineJoin="round",a?(n.setShape({points:l.points}),n.style.opacity=0,Nt(n,{style:{opacity:f}},o,i)):gt(n,{style:{opacity:f},shape:{points:l.points}},o,i),ee(n,s),this._updateLabel(t,i),kt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,i){var a=this,n=this.getTextGuideLine(),o=a.getTextContent(),s=t.hostModel,l=t.getItemModel(i),u=t.getItemLayout(i),f=u.label,p=t.getItemVisual(i,"style"),c=p.fill;jt(o,Yt(l),{labelFetcher:t.hostModel,labelDataIndex:i,defaultOpacity:p.opacity,defaultText:t.getName(i)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}}),a.setTextConfig({local:!0,inside:!!f.inside,insideStroke:c,outsideFill:c});var h=f.linePoints;n.setShape({points:h}),a.textGuideLineConfig={anchor:h?new St(h[0][0],h[0][1]):null},gt(o,{style:{x:f.x,y:f.y}},s,i),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),kl(a,Ul(l),{stroke:c})},e}(oe),s6=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,i,a){var n=t.getData(),o=this._data,s=this.group;n.diff(o).add(function(l){var u=new o6(n,l);n.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(n,l),s.add(f),n.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);Ya(u,t,l)}).execute(),this._data=n},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Tt),x2=s6;var l6=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ca(W(this.getData,this),W(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,i){return si(this,{coordDimensions:["value"],encodeDefaulter:tt(Tl,this)})},e.prototype._defaultLabelLine=function(t){Qr(t,"labelLine",["show"]);var i=t.labelLine,a=t.emphasis.labelLine;i.show=i.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var i=this.getData(),a=r.prototype.getDataParams.call(this,t),n=i.mapDimension("value"),o=i.getSum(n);return a.percent=o?+(i.get(n,t)/o*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Lt),_2=l6;function u6(r,e){return Gt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function f6(r,e){for(var t=r.mapDimension("value"),i=r.mapArray(t,function(l){return l}),a=[],n=e==="ascending",o=0,s=r.count();ow6)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!lS(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),i=t.behavior;i==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(i==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:i==="jump"?null:{duration:0}})}}};function lS(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var D2=T6;var A6=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var i=this.option;t&&nt(i,t,!0),this._initDimensions()},e.prototype.contains=function(t,i){var a=t.get("parallelIndex");return a!=null&&i.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){w(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(i){t.hasOwnProperty(i)&&(this.option[i]=t[i])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],i=this.parallelAxisIndex=[],a=wt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(n){return(n.get("parallelIndex")||0)===this.componentIndex},this);w(a,function(n){t.push("dim"+n.get("dim")),i.push(n.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(mt),M2=A6;var D6=function(r){E(e,r);function e(t,i,a,n,o){var s=r.call(this,t,i,a)||this;return s.type=n||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(Ge),L2=D6;function Zr(r,e,t,i,a,n){r=r||0;var o=t[1]-t[0];if(a!=null&&(a=ru(a,[0,o])),n!=null&&(n=Math.max(n,a??0)),i==="all"){var s=Math.abs(e[1]-e[0]);s=ru(s,[0,o]),a=n=ru(s,[a,n]),i=0}e[0]=ru(e[0],t),e[1]=ru(e[1],t);var l=uS(e,i);e[i]+=r;var u=a||0,f=t.slice();l.sign<0?f[0]+=u:f[1]-=u,e[i]=ru(e[i],f);var p;return p=uS(e,i),a!=null&&(p.sign!==l.sign||p.spann&&(e[1-i]=e[i]+p.sign*n),e}function uS(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function ru(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var fS=w,P2=Math.min,R2=Math.max,I2=Math.floor,M6=Math.ceil,E2=Zt,L6=Math.PI,I6=function(){function r(e,t,i){this.type="parallel",this._axesMap=Y(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,i)}return r.prototype._init=function(e,t,i){var a=e.dimensions,n=e.parallelAxisIndex;fS(a,function(o,s){var l=n[s],u=t.getComponent("parallelAxis",l),f=this._axesMap.set(o,new L2(o,xa(u),[0,0],u.get("type"),l)),p=f.type==="category";f.onBand=p&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),i=t.axisBase,a=t.layoutBase,n=t.pixelDimIndex,o=e[1-n],s=e[n];return o>=i&&o<=i+t.axisLength&&s>=a&&s<=a+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(i){if(e.contains(i,t)){var a=i.getData();fS(this.dimensions,function(n){var o=this._axesMap.get(n);o.scale.unionExtentFromData(a,a.mapDimension(n)),Mi(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=Gt(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,i=["x","y"],a=["width","height"],n=e.get("layout"),o=n==="horizontal"?0:1,s=t[a[o]],l=[0,s],u=this.dimensions.length,f=wd(e.get("axisExpandWidth"),l),p=wd(e.get("axisExpandCount")||0,[0,u]),c=e.get("axisExpandable")&&u>3&&u>p&&p>1&&f>0&&s>0,h=e.get("axisExpandWindow"),v;if(h)v=wd(h[1]-h[0],l),h[1]=h[0]+v;else{v=wd(f*(p-1),l);var d=e.get("axisExpandCenter")||I2(u/2);h=[f*d-v/2],h[1]=h[0]+v}var m=(s-v)/(u-p);m<3&&(m=0);var g=[I2(E2(h[0]/f,1))+1,M6(E2(h[1]/f,1))-1],y=m/f*h[0];return{layout:n,pixelDimIndex:o,layoutBase:t[i[o]],layoutLength:s,axisBase:t[i[1-o]],axisLength:t[a[1-o]],axisExpandable:c,axisExpandWidth:f,axisCollapseWidth:m,axisExpandWindow:h,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:y}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,i=this.dimensions,a=this._makeLayoutInfo(),n=a.layout;t.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),fS(i,function(o,s){var l=(a.axisExpandable?P6:E6)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},f={horizontal:L6/2,vertical:0},p=[u[n].x+e.x,u[n].y+e.y],c=f[n],h=xe();pr(h,h,c),Ye(h,h,p),this._axesLayout[o]={position:p,rotation:c,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,i,a){i==null&&(i=0),a==null&&(a=e.count());var n=this._axesMap,o=this.dimensions,s=[],l=[];w(o,function(m){s.push(e.mapDimension(m)),l.push(n.get(m).model)});for(var u=this.hasAxisBrushed(),f=i;fn*(1-p[0])?(u="jump",l=s-n*(1-p[2])):(l=s-n*p[1])>=0&&(l=s-n*(1-p[1]))<=0&&(l=0),l*=t.axisExpandWidth/f,l?Zr(l,a,o,"all"):u="none";else{var h=a[1]-a[0],v=o[1]*s/h;a=[R2(0,v-h/2)],a[1]=P2(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},r}();function wd(r,e){return P2(R2(r,e[0]),e[1])}function E6(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function P6(r,e){var t=e.layoutLength,i=e.axisExpandWidth,a=e.axisCount,n=e.axisCollapseWidth,o=e.winInnerIndices,s,l=n,u=!1,f;return r=0;a--)_e(i[a])},e.prototype.getActiveState=function(t){var i=this.activeIntervals;if(!i.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(i.length===1){var a=i[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var n=0,o=i.length;nk6}function q2(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function K2(r,e,t,i){var a=new j;return a.add(new pt({name:"main",style:_S(t),silent:!0,draggable:!0,cursor:"move",drift:tt(V2,r,e,a,["n","s","w","e"]),ondragend:tt(Is,e,{isEnd:!0})})),w(i,function(n){a.add(new pt({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:tt(V2,r,e,a,n),ondragend:tt(Is,e,{isEnd:!0})}))}),a}function j2(r,e,t,i){var a=i.brushStyle.lineWidth||0,n=iu(a,U6),o=t[0][0],s=t[1][0],l=o-a/2,u=s-a/2,f=t[0][1],p=t[1][1],c=f-n+a/2,h=p-n+a/2,v=f-o,d=p-s,m=v+a,g=d+a;nn(r,e,"main",o,s,v,d),i.transformable&&(nn(r,e,"w",l,u,n,g),nn(r,e,"e",c,u,n,g),nn(r,e,"n",l,u,m,n),nn(r,e,"s",l,h,m,n),nn(r,e,"nw",l,u,n,n),nn(r,e,"ne",c,u,n,n),nn(r,e,"sw",l,h,n,n),nn(r,e,"se",c,h,n,n))}function hS(r,e){var t=e.__brushOption,i=t.transformable,a=e.childAt(0);a.useStyle(_S(t)),a.attr({silent:!i,cursor:i?"move":"default"}),w([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(n){var o=e.childOfName(n.join("")),s=n.length===1?vS(r,n[0]):Y6(r,n);o&&o.attr({silent:!i,invisible:!i,cursor:i?B6[s]+"-resize":null})})}function nn(r,e,t,i,a,n,o){var s=e.childOfName(t);s&&s.setShape(X6(SS(r,e,[[i,a],[i+n,a+o]])))}function _S(r){return X({strokeNoScale:!0},r.brushStyle)}function J2(r,e,t,i){var a=[Cp(r,t),Cp(e,i)],n=[iu(r,t),iu(e,i)];return[[a[0],n[0]],[a[1],n[1]]]}function W6(r){return ti(r.group)}function vS(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},a=rs(t[e],W6(r));return i[a]}function Y6(r,e){var t=[vS(r,e[0]),vS(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function V2(r,e,t,i,a,n){var o=t.__brushOption,s=r.toRectRange(o.range),l=Q2(e,a,n);w(i,function(u){var f=V6[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(J2(s[0][0],s[1][0],s[0][1],s[1][1])),gS(e,t),Is(e,{isEnd:!1})}function Z6(r,e,t,i){var a=e.__brushOption.range,n=Q2(r,t,i);w(a,function(o){o[0]+=n[0],o[1]+=n[1]}),gS(r,e),Is(r,{isEnd:!1})}function Q2(r,e,t){var i=r.group,a=i.transformCoordToLocal(e,t),n=i.transformCoordToLocal(0,0);return[a[0]-n[0],a[1]-n[1]]}function SS(r,e,t){var i=X2(r,e);return i&&i!==Ls?i.clipPath(t,r._transform):J(t)}function X6(r){var e=Cp(r[0][0],r[1][0]),t=Cp(r[0][1],r[1][1]),i=iu(r[0][0],r[1][0]),a=iu(r[0][1],r[1][1]);return{x:e,y:t,width:i-e,height:a-t}}function q6(r,e,t){if(!(!r._brushType||j6(r,e.offsetX,e.offsetY))){var i=r._zr,a=r._covers,n=xS(r,e,t);if(!r._dragging)for(var o=0;oi.getWidth()||t<0||t>i.getHeight()}var Td={lineX:G2(0),lineY:G2(1),rect:{createCover:function(r,e){function t(i){return i}return K2({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=q2(r);return J2(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,i){j2(r,e,t,i)},updateCommon:hS,contain:mS},polygon:{createCover:function(r,e){var t=new j;return t.add(new ae({name:"main",style:_S(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new oe({name:"main",draggable:!0,drift:tt(Z6,r,e),ondragend:tt(Is,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,i){e.childAt(0).setShape({points:SS(r,e,t)})},updateCommon:hS,contain:mS}};function G2(r){return{createCover:function(e,t){return K2({toRectRange:function(i){var a=[i,[0,100]];return r&&a.reverse(),a},fromRectRange:function(i){return i[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=q2(e),i=Cp(t[0][r],t[1][r]),a=iu(t[0][r],t[1][r]);return[i,a]},updateCoverShape:function(e,t,i,a){var n,o=X2(e,t);if(o!==Ls&&o.getLinearBrushOtherExtent)n=o.getLinearBrushOtherExtent(r);else{var s=e._zr;n=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[i,n];r&&l.reverse(),j2(e,t,l,a)},updateCommon:hS,contain:mS}}var au=G6;function Cd(r){return r=bS(r),function(e){return cf(e,r)}}function Ad(r,e){return r=bS(r),function(t){var i=e??t,a=i?r.width:r.height,n=i?r.x:r.y;return[n,n+(a||0)]}}function Dd(r,e,t){var i=bS(r);return function(a,n){return i.contain(n[0],n[1])&&!Jn(a,e,t)}}function bS(r){return rt.create(r)}var J6=["axisLine","axisTickLabel","axisName"],Q6=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){r.prototype.init.apply(this,arguments),(this._brushController=new au(i.getZr())).on("brush",W(this._onBrush,this))},e.prototype.render=function(t,i,a,n){if(!$6(t,i,n)){this.axisModel=t,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new j,this.group.add(this._axisGroup),!!t.get("show")){var s=e8(t,i),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,p=t.axis.dim,c=l.getAxisLayout(p),h=N({strokeContainThreshold:f},c),v=new tr(t,h);w(J6,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(h,u,t,s,f,a),Xa(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,i,a,n,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),p=rt.create({x:l[0],y:-o/2,width:u,height:o});p.x-=f,p.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:Cd(p),isTargetByCursor:Dd(p,s,n),getLinearBrushOtherExtent:Ad(p,0)}]).enableBrush({brushType:"lineX",brushStyle:i,removeOnClick:!0}).updateCovers(t8(a))},e.prototype._onBrush=function(t){var i=t.areas,a=this.axisModel,n=a.axis,o=k(i,function(s){return[n.coordToData(s.range[0],!0),n.coordToData(s.range[1],!0)]});(!a.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Et);function $6(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function t8(r){var e=r.axis;return k(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function e8(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var eR=Q6;var r8={type:"axisAreaSelect",event:"axisAreaSelected"};function rR(r){r.registerAction(r8,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(i){i.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(i){i.setAxisExpand(e)})})}var i8={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Ap(r){r.registerComponentView(D2),r.registerComponentModel(M2),r.registerCoordinateSystem("parallel",N2),r.registerPreprocessor(sS),r.registerComponentModel(pS),r.registerComponentView(eR),ia(r,"parallel",pS,i8),rR(r)}function wS(r){_t(Ap),r.registerChartView(T2),r.registerSeriesModel(C2),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,A2)}var a8=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),n8=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new a8},e.prototype.buildPath=function(t,i){var a=i.extent;t.moveTo(i.x1,i.y1),t.bezierCurveTo(i.cpx1,i.cpy1,i.cpx2,i.cpy2,i.x2,i.y2),i.orient==="vertical"?(t.lineTo(i.x2+a,i.y2),t.bezierCurveTo(i.cpx2+a,i.cpy2,i.cpx1+a,i.cpy1,i.x1+a,i.y1)):(t.lineTo(i.x2,i.y2+a),t.bezierCurveTo(i.cpx2,i.cpy2+a,i.cpx1,i.cpy1+a,i.x1,i.y1+a)),t.closePath()},e.prototype.highlight=function(){rr(this)},e.prototype.downplay=function(){ir(this)},e}(at),o8=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,i,a){var n=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,f=l.height,p=t.getData(),c=t.getData("edge"),h=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(v){var d=new n8,m=et(d);m.dataIndex=v.dataIndex,m.seriesIndex=t.seriesIndex,m.dataType="edge";var g=v.getModel(),y=g.getModel("lineStyle"),x=y.get("curveness"),_=v.node1.getLayout(),b=v.node1.getModel(),S=b.get("localX"),T=b.get("localY"),C=v.node2.getLayout(),A=v.node2.getModel(),D=A.get("localX"),M=A.get("localY"),L=v.getLayout(),I,P,R,O,V,U,F,q;d.shape.extent=Math.max(1,L.dy),d.shape.orient=h,h==="vertical"?(I=(S!=null?S*u:_.x)+L.sy,P=(T!=null?T*f:_.y)+_.dy,R=(D!=null?D*u:C.x)+L.ty,O=M!=null?M*f:C.y,V=I,U=P*(1-x)+O*x,F=R,q=P*x+O*(1-x)):(I=(S!=null?S*u:_.x)+_.dx,P=(T!=null?T*f:_.y)+L.sy,R=D!=null?D*u:C.x,O=(M!=null?M*f:C.y)+L.ty,V=I*(1-x)+R*x,U=P,F=I*x+R*(1-x),q=O),d.setShape({x1:I,y1:P,x2:R,y2:O,cpx1:V,cpy1:U,cpx2:F,cpy2:q}),d.useStyle(y.getItemStyle()),iR(d.style,h,v);var $=""+g.get("value"),st=Yt(g,"edgeLabel");jt(d,st,{labelFetcher:{getFormattedLabel:function(It,Vt,Pt,xt,Rt,Ct){return t.getFormattedLabel(It,Vt,"edge",xt,Le(Rt,st.normal&&st.normal.get("formatter"),$),Ct)}},labelDataIndex:v.dataIndex,defaultText:$}),d.setTextConfig({position:"inside"});var ht=g.getModel("emphasis");ee(d,g,"lineStyle",function(It){var Vt=It.getItemStyle();return iR(Vt,h,v),Vt}),s.add(d),c.setItemGraphicEl(v.dataIndex,d);var ct=ht.get("focus");kt(d,ct==="adjacency"?v.getAdjacentDataIndices():ct==="trajectory"?v.getTrajectoryDataIndices():ct,ht.get("blurScope"),ht.get("disabled"))}),o.eachNode(function(v){var d=v.getLayout(),m=v.getModel(),g=m.get("localX"),y=m.get("localY"),x=m.getModel("emphasis"),_=new pt({shape:{x:g!=null?g*u:d.x,y:y!=null?y*f:d.y,width:d.dx,height:d.dy},style:m.getModel("itemStyle").getItemStyle(),z2:10});jt(_,Yt(m),{labelFetcher:{getFormattedLabel:function(S,T){return t.getFormattedLabel(S,T,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),_.disableLabelAnimation=!0,_.setStyle("fill",v.getVisual("color")),_.setStyle("decal",v.getVisual("style").decal),ee(_,m),s.add(_),p.setItemGraphicEl(v.dataIndex,_),et(_).dataType="node";var b=x.get("focus");kt(_,b==="adjacency"?v.getAdjacentDataIndices():b==="trajectory"?v.getTrajectoryDataIndices():b,x.get("blurScope"),x.get("disabled"))}),p.eachItemGraphicEl(function(v,d){var m=p.getItemModel(d);m.get("draggable")&&(v.drift=function(g,y){n._focusAdjacencyDisabled=!0,this.shape.x+=g,this.shape.y+=y,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:p.getRawIndex(d),localX:this.shape.x/u,localY:this.shape.y/f})},v.ondragend=function(){n._focusAdjacencyDisabled=!1},v.draggable=!0,v.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(s8(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Tt);function iR(r,e,t){switch(r.fill){case"source":r.fill=t.node1.getVisual("color"),r.decal=t.node1.getVisual("style").decal;break;case"target":r.fill=t.node2.getVisual("color"),r.decal=t.node2.getVisual("style").decal;break;case"gradient":var i=t.node1.getVisual("color"),a=t.node2.getVisual("color");B(i)&&B(a)&&(r.fill=new yi(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:i,offset:0},{color:a,offset:1}]))}}function s8(r,e,t){var i=new pt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Nt(i,{shape:{width:r.width+20}},e,t),i}var aR=o8;var l8=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){var a=t.edges||t.links,n=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Mt(o[l],this,i));if(n&&a){var u=Tp(n,a,this,!0,f);return u.data}function f(p,c){p.wrapMethod("getItemModel",function(h,v){var d=h.parentModel,m=d.getData().getItemLayout(v);if(m){var g=m.depth,y=d.levelModels[g];y&&(h.parentModel=y)}return h}),c.wrapMethod("getItemModel",function(h,v){var d=h.parentModel,m=d.getGraph().getEdgeByIndex(v),g=m.node1.getLayout();if(g){var y=g.depth,x=d.levelModels[y];x&&(h.parentModel=x)}return h})}},e.prototype.setNodePosition=function(t,i){var a=this.option.data||this.option.nodes,n=a[t];n.localX=i[0],n.localY=i[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,i,a){function n(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(t,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return $t("nameValue",{name:u,value:l,noValue:n(l)})}else{var f=this.getGraph().getNodeByIndex(t),p=f.getLayout().value,c=this.getDataParams(t,a).data.name;return $t("nameValue",{name:c!=null?c+"":null,value:p,noValue:n(p)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,i){var a=r.prototype.getDataParams.call(this,t,i);if(a.value==null&&i==="node"){var n=this.getGraph().getNodeByIndex(t),o=n.getLayout().value;a.value=o}return a},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Lt),nR=l8;function CS(r,e){r.eachSeriesByType("sankey",function(t){var i=t.get("nodeWidth"),a=t.get("nodeGap"),n=u8(t,e);t.layoutInfo=n;var o=n.width,s=n.height,l=t.getGraph(),u=l.nodes,f=l.edges;p8(u);var p=wt(u,function(d){return d.getLayout().value===0}),c=p.length!==0?0:t.get("layoutIterations"),h=t.get("orient"),v=t.get("nodeAlign");f8(u,f,i,a,o,s,c,h,v)})}function u8(r,e){return Gt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function f8(r,e,t,i,a,n,o,s,l){c8(r,e,t,a,n,s,l),m8(r,e,n,a,i,o,s),C8(r,s)}function p8(r){w(r,function(e){var t=to(e.outEdges,Md),i=to(e.inEdges,Md),a=e.getValue()||0,n=Math.max(t,i,a);e.setLayout({value:n},!0)})}function c8(r,e,t,i,a,n,o){for(var s=[],l=[],u=[],f=[],p=0,c=0;c=0;g&&m.depth>h&&(h=m.depth),d.setLayout({depth:g?m.depth:p},!0),n==="vertical"?d.setLayout({dy:t},!0):d.setLayout({dx:t},!0);for(var y=0;yp-1?h:p-1;o&&o!=="left"&&h8(r,o,n,T);var C=n==="vertical"?(a-t)/T:(i-t)/T;d8(r,C,n)}function oR(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function h8(r,e,t,i){if(e==="right"){for(var a=[],n=r,o=0;n.length;){for(var s=0;s0;n--)l*=.99,x8(s,l,o),TS(s,a,t,i,o),T8(s,l,o),TS(s,a,t,i,o)}function g8(r,e){var t=[],i=e==="vertical"?"y":"x",a=Ju(r,function(n){return n.getLayout()[i]});return a.keys.sort(function(n,o){return n-o}),w(a.keys,function(n){t.push(a.buckets.get(n))}),t}function y8(r,e,t,i,a,n){var o=1/0;w(r,function(s){var l=s.length,u=0;w(s,function(p){u+=p.getLayout().value});var f=n==="vertical"?(i-(l-1)*a)/u:(t-(l-1)*a)/u;f0&&(s=l.getLayout()[n]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[n]+l.getLayout()[c]+e;var v=a==="vertical"?i:t;if(u=f-e-v,u>0){s=l.getLayout()[n]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var h=p-2;h>=0;--h)l=o[h],u=l.getLayout()[n]+l.getLayout()[c]+e-f,u>0&&(s=l.getLayout()[n]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[n]}})}function x8(r,e,t){w(r.slice().reverse(),function(i){w(i,function(a){if(a.outEdges.length){var n=to(a.outEdges,_8,t)/to(a.outEdges,Md);if(isNaN(n)){var o=a.outEdges.length;n=o?to(a.outEdges,S8,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(n-eo(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(n-eo(a,t))*e;a.setLayout({y:l},!0)}}})})}function _8(r,e){return eo(r.node2,e)*r.getValue()}function S8(r,e){return eo(r.node2,e)}function b8(r,e){return eo(r.node1,e)*r.getValue()}function w8(r,e){return eo(r.node1,e)}function eo(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function Md(r){return r.getValue()}function to(r,e,t){for(var i=0,a=r.length,n=-1;++no&&(o=l)}),w(i,function(s){var l=new ve({type:"color",mappingMethod:"linear",dataExtent:[n,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);f!=null?(s.setVisual("color",f),s.setVisual("style",{fill:f})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&w(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function DS(r){r.registerChartView(aR),r.registerSeriesModel(nR),r.registerLayout(CS),r.registerVisual(AS),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(i){i.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var Ld=function(){function r(){}return r.prototype.getInitialData=function(e,t){var i,a=t.getComponent("xAxis",this.get("xAxisIndex")),n=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=n.get("type"),l;o==="category"?(e.layout="horizontal",i=a.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",i=n.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],f=e.layout==="horizontal"?0:1,p=this._baseAxisDim=u[f],c=u[1-f],h=[a,n],v=h[f].get("type"),d=h[1-f].get("type"),m=e.data;if(m&&l){var g=[];w(m,function(_,b){var S;z(_)?(S=_.slice(),_.unshift(b)):z(_.value)?(S=N({},_),S.value=S.value.slice(),_.value.unshift(b)):S=_,g.push(S)}),e.data=g}var y=this.defaultValueDimensions,x=[{name:p,type:hs(v),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:hs(d),dimsDef:y.slice()}];return si(this,{coordDimensions:x,dimensionsCount:y.length+1,encodeDefaulter:tt(Ch,x,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r}();var sR=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Lt);Wt(sR,Ld,!0);var lR=sR;var A8=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;n.diff(s).add(function(u){if(n.hasValue(u)){var f=n.getItemLayout(u),p=uR(f,n,u,l,!0);n.setItemGraphicEl(u,p),o.add(p)}}).update(function(u,f){var p=s.getItemGraphicEl(f);if(!n.hasValue(u)){o.remove(p);return}var c=n.getItemLayout(u);p?(Ae(p),fR(c,p,n,u)):p=uR(c,n,u,l),o.add(p),n.setItemGraphicEl(u,p)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=n},e.prototype.remove=function(t){var i=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(n){n&&i.remove(n)})},e.type="boxplot",e}(Tt),D8=function(){function r(){}return r}(),M8=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="boxplotBoxPath",i}return e.prototype.getDefaultShape=function(){return new D8},e.prototype.buildPath=function(t,i){var a=i.points,n=0;for(t.moveTo(a[n][0],a[n][1]),n++;n<4;n++)t.lineTo(a[n][0],a[n][1]);for(t.closePath();nd){var _=[g,x];i.push(_)}}}return{boxData:t,outliers:i}}var cR={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Se){var i="";Bt(i)}var a=LS(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function IS(r){r.registerSeriesModel(lR),r.registerChartView(pR),r.registerLayout(MS),r.registerTransform(cR)}var R8=["color","borderColor"],O8=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,i,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,i,a,n){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,i):this._incrementalRenderNormal(t,i)},e.prototype.eachRendered=function(t){dr(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var i=t.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},e.prototype._renderNormal=function(t){var i=t.getData(),a=this._data,n=this.group,o=i.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||n.removeAll(),i.diff(a).add(function(f){if(i.hasValue(f)){var p=i.getItemLayout(f);if(s&&hR(u,p))return;var c=ES(p,f,!0);Nt(c,{shape:{points:p.ends}},t,f),PS(c,i,f,o),n.add(c),i.setItemGraphicEl(f,c)}}).update(function(f,p){var c=a.getItemGraphicEl(p);if(!i.hasValue(f)){n.remove(c);return}var h=i.getItemLayout(f);if(s&&hR(u,h)){n.remove(c);return}c?(gt(c,{shape:{points:h.ends}},t,f),Ae(c)):c=ES(h,f),PS(c,i,f,o),n.add(c),i.setItemGraphicEl(f,c)}).remove(function(f){var p=a.getItemGraphicEl(f);p&&n.remove(p)}).execute(),this._data=i},e.prototype._renderLarge=function(t){this._clear(),vR(t,this.group);var i=t.get("clip",!0)?qn(t.coordinateSystem,!1,t):null;i?this.group.setClipPath(i):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,i){for(var a=i.getData(),n=a.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=a.getItemLayout(o),l=ES(s,o);PS(l,a,o,n),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,i){vR(i,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Tt),N8=function(){function r(){}return r}(),z8=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="normalCandlestickBox",i}return e.prototype.getDefaultShape=function(){return new N8},e.prototype.buildPath=function(t,i){var a=i.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e}(at);function ES(r,e,t){var i=r.ends;return new z8({shape:{points:t?k8(i,r):i},z2:100})}function hR(r,e){for(var t=!0,i=0;i0?"borderColor":"borderColor0"])||t.get(["itemStyle",r>0?"color":"color0"]);r===0&&(a=t.get(["itemStyle","borderColorDoji"]));var n=t.getModel("itemStyle").getItemStyle(R8);e.useStyle(n),e.style.fill=null,e.style.stroke=a}var dR=O8;var mR=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,i,a){var n=i.getItemLayout(t);return n&&a.rect(n.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Lt);Wt(mR,Ld,!0);var gR=mR;function NS(r){!r||!z(r.series)||w(r.series,function(e){K(e)&&e.type==="k"&&(e.type="candlestick")})}var V8=["itemStyle","borderColor"],B8=["itemStyle","borderColor0"],F8=["itemStyle","borderColorDoji"],G8=["itemStyle","color"],H8=["itemStyle","color0"],W8={seriesType:"candlestick",plan:ni(),performRawSeries:!0,reset:function(r,e){function t(n,o){return o.get(n>0?G8:H8)}function i(n,o){return o.get(n===0?F8:n>0?V8:B8)}if(!e.isSeriesFiltered(r)){var a=r.pipelineContext.large;return!a&&{progress:function(n,o){for(var s;(s=n.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,f=l.getItemStyle();f.fill=t(u,l),f.stroke=i(u,l)||f.fill;var p=o.ensureUniqueItemVisual(s,"style");N(p,f)}}}}}},yR=W8;var Y8={seriesType:"candlestick",plan:ni(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),i=Z8(r,t),a=0,n=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[a])),l=k(t.mapDimensionsAll(o[n]),t.getDimensionIndex,t),u=l[0],f=l[1],p=l[2],c=l[3];if(t.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?v:h};function h(d,m){for(var g,y=m.getStore();(g=d.next())!=null;){var x=y.get(s,g),_=y.get(u,g),b=y.get(f,g),S=y.get(p,g),T=y.get(c,g),C=Math.min(_,b),A=Math.max(_,b),D=V(C,x),M=V(A,x),L=V(S,x),I=V(T,x),P=[];U(P,M,0),U(P,D,1),P.push(q(I),q(M),q(L),q(D));var R=m.getItemModel(g),O=!!R.get(["itemStyle","borderColorDoji"]);m.setItemLayout(g,{sign:xR(y,g,_,b,f,O),initBaseline:_>b?M[n]:D[n],ends:P,brushRect:F(S,T,x)})}function V($,st){var ht=[];return ht[a]=st,ht[n]=$,isNaN(st)||isNaN($)?[NaN,NaN]:e.dataToPoint(ht)}function U($,st,ht){var ct=st.slice(),It=st.slice();ct[a]=pf(ct[a]+i/2,1,!1),It[a]=pf(It[a]-i/2,1,!0),ht?$.push(ct,It):$.push(It,ct)}function F($,st,ht){var ct=V($,ht),It=V(st,ht);return ct[a]-=i/2,It[a]-=i/2,{x:ct[0],y:ct[1],width:n?i:It[0]-ct[0],height:n?It[1]-ct[1]:i}}function q($){return $[a]=pf($[a],1),$}}function v(d,m){for(var g=xr(d.count*4),y=0,x,_=[],b=[],S,T=m.getStore(),C=!!r.get(["itemStyle","borderColorDoji"]);(S=d.next())!=null;){var A=T.get(s,S),D=T.get(u,S),M=T.get(f,S),L=T.get(p,S),I=T.get(c,S);if(isNaN(A)||isNaN(L)||isNaN(I)){g[y++]=NaN,y+=3;continue}g[y++]=xR(T,S,D,M,f,C),_[a]=A,_[n]=L,x=e.dataToPoint(_,null,b),g[y++]=x?x[0]:NaN,g[y++]=x?x[1]:NaN,_[n]=I,x=e.dataToPoint(_,null,b),g[y++]=x?x[1]:NaN}m.setLayout("largePoints",g)}}};function xR(r,e,t,i,a,n){var o;return t>i?o=-1:t0?r.get(a,e-1)<=i?1:-1:1,o}function Z8(r,e){var t=r.getBaseAxis(),i,a=t.type==="category"?t.getBandWidth():(i=t.getExtent(),Math.abs(i[1]-i[0])/e.count()),n=H(lt(r.get("barMaxWidth"),a),a),o=H(lt(r.get("barMinWidth"),1),a),s=r.get("barWidth");return s!=null?H(s,a):Math.max(Math.min(a/2,n),o)}var _R=Y8;function zS(r){r.registerChartView(dR),r.registerSeriesModel(gR),r.registerPreprocessor(NS),r.registerVisual(yR),r.registerLayout(_R)}function SR(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(i){i.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var X8=function(r){E(e,r);function e(t,i){var a=r.call(this)||this,n=new en(t,i),o=new j;return a.add(n),a.add(o),a.updateData(t,i),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var i=t.symbolType,a=t.color,n=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(n)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){n.stopAnimation();var c=void 0;Z(p)?c=p(a):c=p,n.__t>0&&(c=-s*n.__t),this._animateSymbol(n,s,c,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,i,a,n,o){if(i>0){t.__t=0;var s=this,l=t.animate("",n).when(o?i*2:i,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(t)});n||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return Kr(t.__p1,t.__cp1)+Kr(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,i){t.__p1=i[0],t.__p2=i[1],t.__cp1=i[2]||[(i[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2]},e.prototype.updateData=function(t,i,a){this.childAt(0).updateData(t,i,a),this._updateEffectSymbol(t,i)},e.prototype._updateSymbolPosition=function(t){var i=t.__p1,a=t.__p2,n=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=me,f=Nu;s[0]=u(i[0],n[0],a[0],o),s[1]=u(i[1],n[1],a[1],o);var p=t.__t<1?f(i[0],n[0],a[0],o):f(a[0],n[0],i[0],1-o),c=t.__t<1?f(i[1],n[1],a[1],o):f(a[1],n[1],i[1],1-o);t.rotation=-Math.atan2(c,p)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(n[l]<=i);l--);l=Math.min(l,o-2)}else{for(l=s;li);l++);l=Math.min(l-1,o-2)}var f=(i-n[l])/(n[l+1]-n[l]),p=a[l],c=a[l+1];t.x=p[0]*(1-f)+f*c[0],t.y=p[1]*(1-f)+f*c[1];var h=t.__t<1?c[0]-p[0]:p[0]-c[0],v=t.__t<1?c[1]-p[1]:p[1]-c[1];t.rotation=-Math.atan2(v,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=i,t.ignore=!1}},e}(Id),CR=Q8;var $8=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),tZ=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i._off=0,i.hoverDataIdx=-1,i}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new $8},e.prototype.buildPath=function(t,i){var a=i.segs,n=i.curveness,o;if(i.polyline)for(o=this._off;o0){t.moveTo(a[o++],a[o++]);for(var l=1;l0){var h=(u+p)/2-(f-c)*n,v=(f+c)/2-(p-u)*n;t.quadraticCurveTo(h,v,p,c)}else t.lineTo(p,c)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,i){var a=this.shape,n=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u0)for(var p=n[u++],c=n[u++],h=1;h0){var m=(p+v)/2-(c-d)*o,g=(c+d)/2-(v-p)*o;if(Gc(p,c,m,g,v,d,s,t,i))return l}else if(va(p,c,v,d,s,t,i))return l;l++}return-1},e.prototype.contain=function(t,i){var a=this.transformCoordToLocal(t,i),n=this.getBoundingRect();if(t=a[0],i=a[1],n.contain(t,i)){var o=this.hoverDataIdx=this.findDataIndex(t,i);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var i=this.shape,a=i.segs,n=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),AR=eZ;var rZ={seriesType:"lines",plan:ni(),reset:function(r){var e=r.coordinateSystem;if(e){var t=r.get("polyline"),i=r.pipelineContext.large;return{progress:function(a,n){var o=[];if(i){var s=void 0,l=a.end-a.start;if(t){for(var u=0,f=a.start;f0&&(f||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(n);var p=t.get("clip",!0)&&qn(t.coordinateSystem,!1,t);p?this.group.setClipPath(p):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,i,a){var n=t.getData(),o=this._updateLineDraw(n,t);o.incrementalPrepareUpdate(n),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(t,i,a){this._lineDraw.incrementalUpdate(t,i.getData()),this._finished=t.end===i.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,i,a){var n=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=Pd.reset(t,i,a);s.progress&&s.progress({start:0,end:n.count(),count:n.count()},n),this._lineDraw.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(t,i){var a=this._lineDraw,n=this._showEffect(i),o=!!i.get("polyline"),s=i.pipelineContext,l=s.large;return(!a||n!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new AR:new $l(o?n?CR:Ed:n?Id:Ql),this._hasEffet=n,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var i=t.getZr(),a=i.painter.getType()==="svg";!a&&this._lastZlevel!=null&&i.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,i){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(i)},e.prototype.dispose=function(t,i){this.remove(t,i)},e.type="lines",e}(Tt),DR=iZ;var aZ=typeof Uint32Array>"u"?Array:Uint32Array,nZ=typeof Float64Array>"u"?Array:Float64Array;function MR(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(r.data=k(e,function(t){var i=[t[0].coord,t[1].coord],a={coords:i};return t[0].name&&(a.fromName=t[0].name),t[1].name&&(a.toName=t[1].name),ho([a,t[0],t[1]])}))}var oZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],MR(t);var i=this._processFlatCoordsArray(t.data);this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset,i.flatCoords&&(t.data=new Float32Array(i.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(MR(t),t.data){var i=this._processFlatCoordsArray(t.data);this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset,i.flatCoords&&(t.data=new Float32Array(i.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var i=this._processFlatCoordsArray(t.data);i.flatCoords&&(this._flatCoords?(this._flatCoords=cn(this._flatCoords,i.flatCoords),this._flatCoordsOffset=cn(this._flatCoordsOffset,i.flatCoordsOffset)):(this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset),t.data=new Float32Array(i.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var i=this.getData().getItemModel(t),a=i.option instanceof Array?i.option:i.getShallow("coords");return a},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,i){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[t*2],n=this._flatCoordsOffset[t*2+1],o=0;oa}}return{flatCoordsOffset:new Uint32Array(n.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,i){if(0)var a;var n=new se(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],function(o,s,l,u){if(o instanceof Array)return NaN;n.hasItemOption=!0;var f=o.value;if(f!=null)return f instanceof Array?f[u]:f}),n},e.prototype.formatTooltip=function(t,i,a){var n=this.getData(),o=n.getItemModel(t),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),$t("nameValue",{name:f.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),i=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&i>0?i+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Lt),LR=oZ;function Rd(r){return r instanceof Array||(r=[r,r]),r}var sZ={seriesType:"lines",reset:function(r){var e=Rd(r.get("symbol")),t=Rd(r.get("symbolSize")),i=r.getData();i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",t&&t[0]),i.setVisual("toSymbolSize",t&&t[1]);function a(n,o){var s=n.getItemModel(o),l=Rd(s.getShallow("symbol",!0)),u=Rd(s.getShallow("symbolSize",!0));l[0]&&n.setItemVisual(o,"fromSymbol",l[0]),l[1]&&n.setItemVisual(o,"toSymbol",l[1]),u[0]&&n.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&n.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:i.hasItemOption?a:null}}},IR=sZ;function US(r){r.registerChartView(DR),r.registerSeriesModel(LR),r.registerLayout(Pd),r.registerVisual(IR)}var lZ=256,uZ=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=We.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,i,a,n,o){var s=this._getBrush(),l=this._getGradient(n,"inRange"),u=this._getGradient(n,"outOfRange"),f=this.pointSize+this.blurSize,p=this.canvas,c=p.getContext("2d"),h=e.length;p.width=t,p.height=i;for(var v=0;v0){var L=o(x)?l:u;x>0&&(x=x*D+C),b[S++]=L[M],b[S++]=L[M+1],b[S++]=L[M+2],b[S++]=L[M+3]*x*256}else S+=4}return c.putImageData(_,0,0),p},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=We.createCanvas()),t=this.pointSize+this.blurSize,i=t*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="#000",a.beginPath(),a.arc(-t,t,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},r.prototype._getGradient=function(e,t){for(var i=this._gradientPixels,a=i[t]||(i[t]=new Uint8ClampedArray(256*4)),n=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,n),a[o++]=n[0],a[o++]=n[1],a[o++]=n[2],a[o++]=n[3];return a},r}(),ER=uZ;function fZ(r,e,t){var i=r[1]-r[0];e=k(e,function(o){return{interval:[(o.interval[0]-r[0])/i,(o.interval[1]-r[0])/i]}});var a=e.length,n=0;return function(o){var s;for(s=n;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){n=s;break}}return s>=0&&s=e[0]&&i<=e[1]}}function PR(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var cZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n;i.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(n=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,a,0,t.getData().count()):PR(o)&&this._renderOnGeo(o,t,n,a)},e.prototype.incrementalPrepareRender=function(t,i,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,i,a,n){var o=i.coordinateSystem;o&&(PR(o)?this.render(i,a,n):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(i,n,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){dr(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,i,a,n,o){var s=t.coordinateSystem,l=Ii(s,"cartesian2d"),u,f,p,c;if(l){var h=s.getAxis("x"),v=s.getAxis("y");u=h.getBandWidth()+.5,f=v.getBandWidth()+.5,p=h.scale.getExtent(),c=v.scale.getExtent()}for(var d=this.group,m=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),y=t.getModel(["blur","itemStyle"]).getItemStyle(),x=t.getModel(["select","itemStyle"]).getItemStyle(),_=t.get(["itemStyle","borderRadius"]),b=Yt(t),S=t.getModel("emphasis"),T=S.get("focus"),C=S.get("blurScope"),A=S.get("disabled"),D=l?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],M=a;Mp[1]||Rc[1])continue;var O=s.dataToPoint([P,R]);L=new pt({shape:{x:O[0]-u/2,y:O[1]-f/2,width:u,height:f},style:I})}else{if(isNaN(m.get(D[1],M)))continue;L=new pt({z2:1,shape:s.dataToRect([m.get(D[0],M)]).contentShape,style:I})}if(m.hasItemOption){var V=m.getItemModel(M),U=V.getModel("emphasis");g=U.getModel("itemStyle").getItemStyle(),y=V.getModel(["blur","itemStyle"]).getItemStyle(),x=V.getModel(["select","itemStyle"]).getItemStyle(),_=V.get(["itemStyle","borderRadius"]),T=U.get("focus"),C=U.get("blurScope"),A=U.get("disabled"),b=Yt(V)}L.shape.r=_;var F=t.getRawValue(M),q="-";F&&F[2]!=null&&(q=F[2]+""),jt(L,b,{labelFetcher:t,labelDataIndex:M,defaultOpacity:I.opacity,defaultText:q}),L.ensureState("emphasis").style=g,L.ensureState("blur").style=y,L.ensureState("select").style=x,kt(L,T,C,A),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),d.add(L),m.setItemGraphicEl(M,L),this._progressiveEls&&this._progressiveEls.push(L)}},e.prototype._renderOnGeo=function(t,i,a,n){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=i.getData(),u=this._hmLayer||this._hmLayer||new ER;u.blurSize=i.get("blurSize"),u.pointSize=i.get("pointSize"),u.minOpacity=i.get("minOpacity"),u.maxOpacity=i.get("maxOpacity");var f=t.getViewRect().clone(),p=t.getRoamTransform();f.applyTransform(p);var c=Math.max(f.x,0),h=Math.max(f.y,0),v=Math.min(f.width+f.x,n.getWidth()),d=Math.min(f.height+f.y,n.getHeight()),m=v-c,g=d-h,y=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],x=l.mapArray(y,function(T,C,A){var D=t.dataToPoint([T,C]);return D[0]-=c,D[1]-=h,D.push(A),D}),_=a.getExtent(),b=a.type==="visualMap.continuous"?pZ(_,a.option.range):fZ(_,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 Kt({style:{width:m,height:g,x:c,y:h,image:u.canvas},silent:!0});this.group.add(S)},e.type="heatmap",e}(Tt),RR=cZ;var hZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){return ke(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=ga.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Lt),OR=hZ;function VS(r){r.registerChartView(RR),r.registerSeriesModel(OR)}var vZ=["itemStyle","borderWidth"],NR=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],BS=new ze,dZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),p=l.master.getRect(),c={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[p.x,p.x+p.width],[p.y,p.y+p.height]],isHorizontal:f,valueDim:NR[+f],categoryDim:NR[1-+f]};return o.diff(s).add(function(h){if(o.hasValue(h)){var v=kR(o,h),d=zR(o,h,v,c),m=UR(o,c,d);o.setItemGraphicEl(h,m),n.add(m),BR(m,c,d)}}).update(function(h,v){var d=s.getItemGraphicEl(v);if(!o.hasValue(h)){n.remove(d);return}var m=kR(o,h),g=zR(o,h,m,c),y=XR(o,g);d&&y!==d.__pictorialShapeStr&&(n.remove(d),o.setItemGraphicEl(h,null),d=null),d?bZ(d,c,g):d=UR(o,c,g,!0),o.setItemGraphicEl(h,d),d.__pictorialSymbolMeta=g,n.add(d),BR(d,c,g)}).remove(function(h){var v=s.getItemGraphicEl(h);v&&VR(s,h,v.__pictorialSymbolMeta.animationModel,v)}).execute(),this._data=o,this.group},e.prototype.remove=function(t,i){var a=this.group,n=this._data;t.get("animation")?n&&n.eachItemGraphicEl(function(o){VR(n,et(o).dataIndex,t,o)}):a.removeAll()},e.type="pictorialBar",e}(Tt);function zR(r,e,t,i){var a=r.getItemLayout(e),n=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=t.get("symbolPatternSize")||2,p=t.isAnimationEnabled(),c={dataIndex:e,layout:a,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:n,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:p?t:null,hoverScale:p&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};mZ(t,n,a,i,c),gZ(r,e,a,n,o,c.boundingLength,c.pxSign,f,i,c),yZ(t,c.symbolScale,u,i,c);var h=c.symbolSize,v=oi(t.get("symbolOffset"),h);return xZ(t,h,a,n,o,v,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,i,c),c}function mZ(r,e,t,i,a){var n=i.valueDim,o=r.get("symbolBoundingData"),s=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[n.wh]<=0),f;if(z(o)){var p=[FS(s,o[0])-l,FS(s,o[1])-l];p[1]0?1:-1}function FS(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function gZ(r,e,t,i,a,n,o,s,l,u){var f=l.valueDim,p=l.categoryDim,c=Math.abs(t[p.wh]),h=r.getItemVisual(e,"symbolSize"),v;z(h)?v=h.slice():h==null?v=["100%","100%"]:v=[h,h],v[p.index]=H(v[p.index],c),v[f.index]=H(v[f.index],i?c:Math.abs(n)),u.symbolSize=v;var d=u.symbolScale=[v[0]/s,v[1]/s];d[f.index]*=(l.isHorizontal?-1:1)*o}function yZ(r,e,t,i,a){var n=r.get(vZ)||0;n&&(BS.attr({scaleX:e[0],scaleY:e[1],rotation:t}),BS.updateTransform(),n/=BS.getLineScale(),n*=e[i.valueDim.index]),a.valueLineWidth=n||0}function xZ(r,e,t,i,a,n,o,s,l,u,f,p){var c=f.categoryDim,h=f.valueDim,v=p.pxSign,d=Math.max(e[h.index]+s,0),m=d;if(i){var g=Math.abs(l),y=Jt(r.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1));var _=H(y,e[h.index]),b=Math.max(d+_*2,0),S=x?0:_*2,T=Uo(i),C=T?i:FR((g+S)/b),A=g-C*d;_=A/2/(x?C:Math.max(C-1,1)),b=d+_*2,S=x?0:_*2,!T&&i!=="fixed"&&(C=u?FR((Math.abs(u)+S)/b):0),m=C*b-S,p.repeatTimes=C,p.symbolMargin=_}var D=v*(m/2),M=p.pathPosition=[];M[c.index]=t[c.wh]/2,M[h.index]=o==="start"?D:o==="end"?l-D:l/2,n&&(M[0]+=n[0],M[1]+=n[1]);var L=p.bundlePosition=[];L[c.index]=t[c.xy],L[h.index]=t[h.xy];var I=p.barRectShape=N({},t);I[h.wh]=v*Math.max(Math.abs(t[h.wh]),Math.abs(M[h.index]+D)),I[c.wh]=t[c.wh];var P=p.clipShape={};P[c.xy]=-t[c.xy],P[c.wh]=f.ecSize[c.wh],P[h.xy]=0,P[h.wh]=t[h.wh]}function GR(r){var e=r.symbolPatternSize,t=Ht(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function HR(r,e,t,i){var a=r.__pictorialBundle,n=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,f=0,p=n[e.valueDim.index]+o+t.symbolMargin*2;for(GS(r,function(d){d.__pictorialAnimationIndex=f,d.__pictorialRepeatTimes=u,f0:g<0)&&(y=u-1-d),m[l.index]=p*(y-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function WR(r,e,t,i){var a=r.__pictorialBundle,n=r.__pictorialMainPath;n?nu(n,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,i):(n=r.__pictorialMainPath=GR(t),a.add(n),nu(n,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,i))}function YR(r,e,t){var i=N({},e.barRectShape),a=r.__pictorialBarRect;a?nu(a,null,{shape:i},e,t):(a=r.__pictorialBarRect=new pt({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function ZR(r,e,t,i){if(t.symbolClip){var a=r.__pictorialClipPath,n=N({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(a)gt(a,{shape:n},s,l);else{n[o.wh]=0,a=new pt({shape:n}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=t.clipShape[o.wh],yt[i?"updateProps":"initProps"](a,{shape:u},s,l)}}}function kR(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=_Z,t.isAnimationEnabled=SZ,t}function _Z(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function SZ(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function UR(r,e,t,i){var a=new j,n=new j;return a.add(n),a.__pictorialBundle=n,n.x=t.bundlePosition[0],n.y=t.bundlePosition[1],t.symbolRepeat?HR(a,e,t):WR(a,e,t),YR(a,t,i),ZR(a,e,t,i),a.__pictorialShapeStr=XR(r,t),a.__pictorialSymbolMeta=t,a}function bZ(r,e,t){var i=t.animationModel,a=t.dataIndex,n=r.__pictorialBundle;gt(n,{x:t.bundlePosition[0],y:t.bundlePosition[1]},i,a),t.symbolRepeat?HR(r,e,t,!0):WR(r,e,t,!0),YR(r,t,!0),ZR(r,e,t,!0)}function VR(r,e,t,i){var a=i.__pictorialBarRect;a&&a.removeTextContent();var n=[];GS(i,function(o){n.push(o)}),i.__pictorialMainPath&&n.push(i.__pictorialMainPath),i.__pictorialClipPath&&(t=null),w(n,function(o){xi(o,{scaleX:0,scaleY:0},t,e,function(){i.parent&&i.parent.remove(i)})}),r.setItemGraphicEl(e,null)}function XR(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function GS(r,e,t){w(r.__pictorialBundle.children(),function(i){i!==r.__pictorialBarRect&&e.call(t,i)})}function nu(r,e,t,i,a,n){e&&r.attr(e),i.symbolClip&&!a?t&&r.attr(t):t&&yt[a?"updateProps":"initProps"](r,t,i.animationModel,i.dataIndex,n)}function BR(r,e,t){var i=t.dataIndex,a=t.itemModel,n=a.getModel("emphasis"),o=n.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),f=n.get("focus"),p=n.get("blurScope"),c=n.get("scale");GS(r,function(d){if(d instanceof Kt){var m=d.style;d.useStyle(N({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},t.style))}else d.useStyle(t.style);var g=d.ensureState("emphasis");g.style=o,c&&(g.scaleX=d.scaleX*1.1,g.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=t.z2});var h=e.valueDim.posDesc[+(t.boundingLength>0)],v=r.__pictorialBarRect;jt(v,Yt(a),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:ta(e.seriesModel.getData(),i),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:h}),kt(r,f,p,n.get("disabled"))}function FR(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}var qR=dZ;var wZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=nr(Bl.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Bl),KR=wZ;function HS(r){r.registerChartView(qR),r.registerSeriesModel(KR),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,tt(gv,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,yv("pictorialBar"))}var TZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,i,a){var n=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=n.getLayout("layoutInfo"),f=u.rect,p=u.boundaryGap;s.x=0,s.y=f.y+p[0];function c(m){return m.name}var h=new $e(this._layersSeries||[],l,c,c),v=[];h.add(W(d,this,"add")).update(W(d,this,"update")).remove(W(d,this,"remove")).execute();function d(m,g,y){var x=o._layers;if(m==="remove"){s.remove(x[g]);return}for(var _=[],b=[],S,T=l[g].indices,C=0;Cn&&(n=s),i.push(s)}for(var u=0;un&&(n=p)}return{y0:a,max:n}}function ZS(r){r.registerChartView(jR),r.registerSeriesModel(JR),r.registerLayout(YS),r.registerProcessor(ra("themeRiver"))}var MZ=2,LZ=4,IZ=function(r){E(e,r);function e(t,i,a,n){var o=r.call(this)||this;o.z2=MZ,o.textConfig={inside:!0},et(o).seriesIndex=i.seriesIndex;var s=new dt({z2:LZ,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,i,a,n),o}return e.prototype.updateData=function(t,i,a,n,o){this.node=i,i.piece=this,a=a||this._seriesModel,n=n||this._ecModel;var s=this;et(s).dataIndex=i.dataIndex;var l=i.getModel(),u=l.getModel("emphasis"),f=i.getLayout(),p=N({},f);p.label=null;var c=i.getVisual("style");c.lineJoin="bevel";var h=i.getVisual("decal");h&&(c.decal=ji(h,o));var v=Ta(l.getModel("itemStyle"),p,!0);N(p,v),w(Ne,function(y){var x=s.ensureState(y),_=l.getModel([y,"itemStyle"]);x.style=_.getItemStyle();var b=Ta(_,p);b&&(x.shape=b)}),t?(s.setShape(p),s.shape.r=f.r0,Nt(s,{shape:{r:f.r}},a,i.dataIndex)):(gt(s,{shape:p},a),Ae(s)),s.useStyle(c),this._updateLabel(a);var d=l.getShallow("cursor");d&&s.attr("cursor",d),this._seriesModel=a||this._seriesModel,this._ecModel=n||this._ecModel;var m=u.get("focus"),g=m==="ancestor"?i.getAncestorsIndices():m==="descendant"?i.getDescendantIndices():m;kt(this,g,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var i=this,a=this.node.getModel(),n=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),p=this,c=p.getTextContent(),h=this.node.dataIndex,v=n.get("minAngle")/180*Math.PI,d=n.get("show")&&!(v!=null&&Math.abs(s)Math.PI/2?"right":"left"):!L||L==="center"?(s===2*Math.PI&&o.r0===0?D=0:D=(o.r+o.r0)/2,L="center"):L==="left"?(D=o.r0+M,l>Math.PI/2&&(L="right")):L==="right"&&(D=o.r-M,l>Math.PI/2&&(L="left")),_.style.align=L,_.style.verticalAlign=m(y,"verticalAlign")||"middle",_.x=D*u+o.cx,_.y=D*f+o.cy;var I=m(y,"rotate"),P=0;I==="radial"?(P=hr(-l),P>Math.PI/2&&PMath.PI/2?P-=Math.PI:P<-Math.PI/2&&(P+=Math.PI)):vt(I)&&(P=I*Math.PI/180),_.rotation=hr(P)});function m(g,y){var x=g.get(y);return x??n.get(y)}c.dirtyStyle()},e}(pe),XS=IZ;var Od="sunburstRootToNode",$R="sunburstHighlight",EZ="sunburstUnhighlight";function tO(r){r.registerAction({type:Od,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},i);function i(a,n){var o=an(e,[Od],a);if(o){var s=a.getViewRoot();s&&(e.direction=Xl(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),r.registerAction({type:$R,update:"none"},function(e,t,i){e=N({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(n){var o=an(e,[$R],n);o&&(e.dataIndex=o.node.dataIndex)}i.dispatchAction(N(e,{type:"highlight"}))}),r.registerAction({type:EZ,update:"updateView"},function(e,t,i){e=N({},e),i.dispatchAction(N(e,{type:"downplay"}))})}var PZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a,n){var o=this;this.seriesModel=t,this.api=a,this.ecModel=i;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),f=this.group,p=t.get("renderLabelForZeroData"),c=[];u.eachNode(function(y){c.push(y)});var h=this._oldChildren||[];v(c,h),g(l,u),this._initEvents(),this._oldChildren=c;function v(y,x){if(y.length===0&&x.length===0)return;new $e(x,y,_,_).add(b).update(b).remove(tt(b,null)).execute();function _(S){return S.getId()}function b(S,T){var C=S==null?null:y[S],A=T==null?null:x[T];d(C,A)}}function d(y,x){if(!p&&y&&!y.getValue()&&(y=null),y!==l&&x!==l){if(x&&x.piece)y?(x.piece.updateData(!1,y,t,i,a),s.setItemGraphicEl(y.dataIndex,x.piece)):m(x);else if(y){var _=new XS(y,t,i,a);f.add(_),s.setItemGraphicEl(y.dataIndex,_)}}}function m(y){y&&y.piece&&(f.remove(y.piece),y.piece=null)}function g(y,x){x.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,y,t,i,a):(o.virtualPiece=new XS(y,t,i,a),f.add(o.virtualPiece)),x.piece.off("click"),o.virtualPiece.on("click",function(_){o._rootToNode(x.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(i){var a=!1,n=t.seriesModel.getViewRoot();n.eachNode(function(o){if(!a&&o.piece&&o.piece===i.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";os(u,f)}}a=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Od,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,i){var a=i.getData(),n=a.getItemLayout(0);if(n){var o=t[0]-n.cx,s=t[1]-n.cy,l=Math.sqrt(o*o+s*s);return l<=n.r&&l>=n.r0}},e.type="sunburst",e}(Tt),eO=PZ;var RZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,i){var a={name:t.name,children:t.data};rO(a);var n=this._levelModels=k(t.levels||[],function(l){return new Mt(l,this,i)},this),o=Zl.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var p=o.getNodeByDataIndex(f),c=n[p.depth];return c&&(u.parentModel=c),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var i=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return i.treePathInfo=$n(a,this),i},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var i=this.getRawData().tree.root;(!t||t!==i&&!i.contains(t))&&(this._viewRoot=i)},e.prototype.enableAriaDecal=function(){dp(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Lt);function rO(r){var e=0;w(r.children,function(i){rO(i);var a=i.value;z(a)&&(a=a[0]),e+=a});var t=r.value;z(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),z(r.value)?r.value[0]=t:r.value=t}var iO=RZ;var aO=Math.PI/180;function qS(r,e,t){e.eachSeriesByType(r,function(i){var a=i.get("center"),n=i.get("radius");z(n)||(n=[0,n]),z(a)||(a=[a,a]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=H(a[0],o),f=H(a[1],s),p=H(n[0],l/2),c=H(n[1],l/2),h=-i.get("startAngle")*aO,v=i.get("minAngle")*aO,d=i.getData().tree.root,m=i.getViewRoot(),g=m.depth,y=i.get("sort");y!=null&&nO(m,y);var x=0;w(m.children,function(O){!isNaN(O.getValue())&&x++});var _=m.getValue(),b=Math.PI/(_||x)*2,S=m.depth>0,T=m.height-(S?-1:1),C=(c-p)/(T||1),A=i.get("clockwise"),D=i.get("stillShowZeroSum"),M=A?1:-1,L=function(O,V){if(O){var U=V;if(O!==d){var F=O.getValue(),q=_===0&&D?b:F*b;q1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return i.depth>1&&B(s)&&(s=Zs(s,(i.depth-1)/(n-1)*.5)),s}r.eachSeriesByType("sunburst",function(i){var a=i.getData(),n=a.tree;n.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,i,n.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");N(u,l)})})}function jS(r){r.registerChartView(eO),r.registerSeriesModel(iO),r.registerLayout(tt(qS,"sunburst")),r.registerProcessor(tt(ra,"sunburst")),r.registerVisual(KS),tO(r)}var JS={color:"fill",borderColor:"stroke"},oO={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Da=ot(),NZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,i){return ke(null,this)},e.prototype.getDataParams=function(t,i,a){var n=r.prototype.getDataParams.call(this,t,i);return a&&(n.info=Da(a).info),n},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Lt),sO=NZ;function zZ(r,e){return e=e||[0,0],k(["x","y"],function(t,i){var a=this.getAxis(t),n=e[i],o=r[i]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(n-o)-a.dataToCoord(n+o))},this)}function QS(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:W(zZ,r)}}}function kZ(r,e){return e=e||[0,0],k([0,1],function(t){var i=e[t],a=r[t]/2,n=[],o=[];return n[t]=i-a,o[t]=i+a,n[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(n)[t]-this.dataToPoint(o)[t])},this)}function $S(r){var e=r.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:r.getZoom()},api:{coord:function(t){return r.dataToPoint(t)},size:W(kZ,r)}}}function UZ(r,e){var t=this.getAxis(),i=e instanceof Array?e[0]:e,a=(r instanceof Array?r[0]:r)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(i-a)-t.dataToCoord(i+a))}function t1(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:W(UZ,r)}}}function VZ(r,e){return e=e||[0,0],k(["Radius","Angle"],function(t,i){var a="get"+t+"Axis",n=this[a](),o=e[i],s=r[i]/2,l=n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(o-s)-n.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function e1(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:i[1],r0:i[0]},api:{coord:function(a){var n=e.dataToRadius(a[0]),o=t.dataToAngle(a[1]),s=r.coordToPoint([n,o]);return s.push(n,o*Math.PI/180),s},size:W(VZ,r)}}}function r1(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(i,a){return r.dataToPoint(i,a)}}}}function Nd(r,e,t,i){return r&&(r.legacy||r.legacy!==!1&&!t&&!i&&e!=="tspan"&&(e==="text"||Q(r,"text")))}function zd(r,e,t){var i=r,a,n,o;if(e==="text")o=i;else{o={},Q(i,"text")&&(o.text=i.text),Q(i,"rich")&&(o.rich=i.rich),Q(i,"textFill")&&(o.fill=i.textFill),Q(i,"textStroke")&&(o.stroke=i.textStroke),Q(i,"fontFamily")&&(o.fontFamily=i.fontFamily),Q(i,"fontSize")&&(o.fontSize=i.fontSize),Q(i,"fontStyle")&&(o.fontStyle=i.fontStyle),Q(i,"fontWeight")&&(o.fontWeight=i.fontWeight),n={type:"text",style:o,silent:!0},a={};var s=Q(i,"textPosition");t?a.position=s?i.textPosition:"inside":s&&(a.position=i.textPosition),Q(i,"textPosition")&&(a.position=i.textPosition),Q(i,"textOffset")&&(a.offset=i.textOffset),Q(i,"textRotation")&&(a.rotation=i.textRotation),Q(i,"textDistance")&&(a.distance=i.textDistance)}return lO(o,r),w(o.rich,function(l){lO(l,l)}),{textConfig:a,textContent:n}}function lO(r,e){e&&(e.font=e.textFont||e.font,Q(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),Q(e,"textAlign")&&(r.align=e.textAlign),Q(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),Q(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),Q(e,"textWidth")&&(r.width=e.textWidth),Q(e,"textHeight")&&(r.height=e.textHeight),Q(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),Q(e,"textPadding")&&(r.padding=e.textPadding),Q(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),Q(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),Q(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),Q(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),Q(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),Q(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),Q(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function i1(r,e,t){var i=r;i.textPosition=i.textPosition||t.position||"inside",t.offset!=null&&(i.textOffset=t.offset),t.rotation!=null&&(i.textRotation=t.rotation),t.distance!=null&&(i.textDistance=t.distance);var a=i.textPosition.indexOf("inside")>=0,n=r.fill||"#000";uO(i,e);var o=i.textFill==null;return a?o&&(i.textFill=t.insideFill||"#fff",!i.textStroke&&t.insideStroke&&(i.textStroke=t.insideStroke),!i.textStroke&&(i.textStroke=n),i.textStrokeWidth==null&&(i.textStrokeWidth=2)):(o&&(i.textFill=r.fill||t.outsideFill||"#000"),!i.textStroke&&t.outsideStroke&&(i.textStroke=t.outsideStroke)),i.text=e.text,i.rich=e.rich,w(e.rich,function(s){uO(s,s)}),i}function uO(r,e){e&&(Q(e,"fill")&&(r.textFill=e.fill),Q(e,"stroke")&&(r.textStroke=e.fill),Q(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),Q(e,"font")&&(r.font=e.font),Q(e,"fontStyle")&&(r.fontStyle=e.fontStyle),Q(e,"fontWeight")&&(r.fontWeight=e.fontWeight),Q(e,"fontSize")&&(r.fontSize=e.fontSize),Q(e,"fontFamily")&&(r.fontFamily=e.fontFamily),Q(e,"align")&&(r.textAlign=e.align),Q(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),Q(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),Q(e,"width")&&(r.textWidth=e.width),Q(e,"height")&&(r.textHeight=e.height),Q(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),Q(e,"padding")&&(r.textPadding=e.padding),Q(e,"borderColor")&&(r.textBorderColor=e.borderColor),Q(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),Q(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),Q(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),Q(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),Q(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),Q(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),Q(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),Q(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),Q(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),Q(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var hO={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},fO=ft(hO),yCt=Me(Jr,function(r,e){return r[e]=1,r},{}),xCt=Jr.join(", "),Mp=["","style","shape","extra"],ou=ot();function a1(r,e,t,i,a){var n=r+"Animation",o=ma(r,i,a)||{},s=ou(e).userDuring;return o.duration>0&&(o.during=s?W(WZ,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),N(o,t[n]),o}function su(r,e,t,i){i=i||{};var a=i.dataIndex,n=i.isInit,o=i.clearStyle,s=t.isAnimationEnabled(),l=ou(r),u=e.style;l.userDuring=e.during;var f={},p={};if(ZZ(r,e,p),cO("shape",e,p),cO("extra",e,p),!n&&s&&(YZ(r,e,f),pO("shape",r,e,f),pO("extra",r,e,f),XZ(r,e,u,f)),p.style=u,BZ(r,p,o),GZ(r,e),s)if(n){var c={};w(Mp,function(v){var d=v?e[v]:e;d&&d.enterFrom&&(v&&(c[v]=c[v]||{}),N(v?c[v]:c,d.enterFrom))});var h=a1("enter",r,e,t,a);h.duration>0&&r.animateFrom(c,h)}else FZ(r,e,a||0,t,f);n1(r,e),u?r.dirty():r.markRedraw()}function n1(r,e){for(var t=ou(r).leaveToProps,i=0;i0&&r.animateFrom(a,n)}}function GZ(r,e){Q(e,"silent")&&(r.silent=e.silent),Q(e,"ignore")&&(r.ignore=e.ignore),r instanceof ge&&Q(e,"invisible")&&(r.invisible=e.invisible),r instanceof at&&Q(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var Ma={},HZ={setTransform:function(r,e){return Ma.el[r]=e,this},getTransform:function(r){return Ma.el[r]},setShape:function(r,e){var t=Ma.el,i=t.shape||(t.shape={});return i[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=Ma.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=Ma.el,i=t.style;return i&&(i[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=Ma.el.style;if(e)return e[r]},setExtra:function(r,e){var t=Ma.el.extra||(Ma.el.extra={});return t[r]=e,this},getExtra:function(r){var e=Ma.el.extra;if(e)return e[r]}};function WZ(){var r=this,e=r.el;if(e){var t=ou(e).userDuring,i=r.userDuring;if(t!==i){r.el=r.userDuring=null;return}Ma.el=e,i(HZ)}}function pO(r,e,t,i){var a=t[r];if(a){var n=e[r],o;if(n){var s=t.transition,l=a.transition;if(l)if(!o&&(o=i[r]={}),ro(l))N(o,n);else for(var u=Ot(l),f=0;f=0){!o&&(o=i[r]={});for(var h=ft(n),f=0;f=0)){var c=r.getAnimationStyleProps(),h=c?c.style:null;if(h){!n&&(n=i.style={});for(var v=ft(t),u=0;u=0?e.getStore().get(V,R):void 0}var U=e.get(O.name,R),F=O&&O.ordinalMeta;return F?F.categories[U]:U}function S(P,R){R==null&&(R=u);var O=e.getItemVisual(R,"style"),V=O&&O.fill,U=O&&O.opacity,F=y(R,io).getItemStyle();V!=null&&(F.fill=V),U!=null&&(F.opacity=U);var q={inheritColor:B(V)?V:"#000"},$=x(R,io),st=Ut($,null,q,!1,!0);st.text=$.getShallow("show")?lt(r.getFormattedLabel(R,io),ta(e,R)):null;var ht=hf($,q,!1);return A(P,F),F=i1(F,st,ht),P&&C(F,P),F.legacy=!0,F}function T(P,R){R==null&&(R=u);var O=y(R,on).getItemStyle(),V=x(R,on),U=Ut(V,null,null,!0,!0);U.text=V.getShallow("show")?Le(r.getFormattedLabel(R,on),r.getFormattedLabel(R,io),ta(e,R)):null;var F=hf(V,null,!0);return A(P,O),O=i1(O,U,F),P&&C(O,P),O.legacy=!0,O}function C(P,R){for(var O in R)Q(R,O)&&(P[O]=R[O])}function A(P,R){P&&(P.textFill&&(R.textFill=P.textFill),P.textPosition&&(R.textPosition=P.textPosition))}function D(P,R){if(R==null&&(R=u),Q(JS,P)){var O=e.getItemVisual(R,"style");return O?O[JS[P]]:null}if(Q(oO,P))return e.getItemVisual(R,P)}function M(P){if(n.type==="cartesian2d"){var R=n.getBaseAxis();return $M(X({axis:R},P))}}function L(){return t.getCurrentSeriesIndices()}function I(P){return ph(P,t)}}function i7(r){var e={};return w(r.dimensions,function(t){var i=r.getDimensionInfo(t);if(!i.isExtraCoord){var a=i.coordDim,n=e[a]=e[a]||[];n[i.coordDimIndex]=r.getDimensionIndex(t)}}),e}function l1(r,e,t,i,a,n,o){if(!i){n.remove(e);return}var s=d1(r,e,t,i,a,n);return s&&o.setItemGraphicEl(t,s),s&&kt(s,i.focus,i.blurScope,i.emphasisDisabled),s}function d1(r,e,t,i,a,n){var o=-1,s=e;e&&SO(e,i,a)&&(o=it(n.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=h1(i),s&&$Z(s,u)),i.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Oi.normal.cfg=Oi.normal.conOpt=Oi.emphasis.cfg=Oi.emphasis.conOpt=Oi.blur.cfg=Oi.blur.conOpt=Oi.select.cfg=Oi.select.conOpt=null,Oi.isLegacy=!1,n7(u,t,i,a,l,Oi),a7(u,t,i,a,l),v1(r,u,t,i,Oi,a,l),Q(i,"info")&&(Da(u).info=i.info);for(var f=0;f=0?n.replaceAt(u,o):n.add(u),u}function SO(r,e,t){var i=Da(r),a=e.type,n=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||a!=null&&a!==i.customGraphicType||a==="path"&&f7(n)&&bO(n)!==i.customPathData||a==="image"&&Q(o,"image")&&o.image!==i.customImagePath}function a7(r,e,t,i,a){var n=t.clipPath;if(n===!1)r&&r.getClipPath()&&r.removeClipPath();else if(n){var o=r.getClipPath();o&&SO(o,n,i)&&(o=null),o||(o=h1(n),r.setClipPath(o)),v1(null,o,e,n,null,i,a)}}function n7(r,e,t,i,a,n){if(!r.isGroup){mO(t,null,n),mO(t,on,n);var o=n.normal.conOpt,s=n.emphasis.conOpt,l=n.blur.conOpt,u=n.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=n.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=h1(o),r.setTextContent(f)),v1(null,f,e,o,null,i,a);for(var p=o&&o.style,c=0;c=f;h--){var v=e.childAt(h);s7(e,v,a)}}}function s7(r,e,t){e&&lu(e,Da(r).option,t)}function l7(r){new $e(r.oldChildren,r.newChildren,gO,gO,r).add(yO).update(yO).remove(u7).execute()}function gO(r,e){var t=r&&r.name;return t??JZ+e}function yO(r,e){var t=this.context,i=r!=null?t.newChildren[r]:null,a=e!=null?t.oldChildren[e]:null;d1(t.api,a,t.dataIndex,i,t.seriesModel,t.group)}function u7(r){var e=this.context,t=e.oldChildren[r];t&&lu(t,Da(t).option,e.seriesModel)}function bO(r){return r&&(r.pathData||r.d)}function f7(r){return r&&(Q(r,"pathData")||Q(r,"d"))}function g1(r){r.registerChartView(xO),r.registerSeriesModel(sO)}var Es=ot(),wO=J,y1=W,p7=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,i,a){var n=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,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,t,i);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var p=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new j,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),i.getZr().add(s);else{var c=tt(TO,t,p);this.updatePointerEl(s,u,c),this.updateLabelEl(s,u,c,t)}AO(s,t,!0),this._renderHandle(n)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var i=t.get("animation"),a=e.axis,n=a.type==="category",o=t.get("snap");if(!o&&!n)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(n&&a.getBandWidth()>s)return!0;if(o){var l=td(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},r.prototype.makeElOption=function(e,t,i,a,n){},r.prototype.createPointerEl=function(e,t,i,a){var n=t.pointer;if(n){var o=Es(e).pointerEl=new yt[n.type](wO(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,i,a){if(t.label){var n=Es(e).labelEl=new dt(wO(t.label));e.add(n),CO(n,a)}},r.prototype.updatePointerEl=function(e,t,i){var a=Es(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),i(a,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,i,a){var n=Es(e).labelEl;n&&(n.setStyle(t.label.style),i(n,{x:t.label.x,y:t.label.y}),CO(n,a))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,i=this._api.getZr(),a=this._handle,n=t.getModel("handle"),o=t.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=Hi(n.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Mr(u.event)},onmousedown:y1(this._onHandleDragMove,this,0,0),drift:y1(this._onHandleDragMove,this),ondragend:y1(this._onHandleDragEnd,this)}),i.add(a)),AO(a,t,!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,Ti(this,"_doDispatchAxisPointer",n.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){TO(this._axisPointerModel,!t&&this._moveAnimation,this._handle,x1(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var i=this._handle;if(i){this._dragging=!0;var a=this.updateHandleTransform(x1(i),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,i.stopAnimation(),i.attr(x1(a)),Es(i).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),i=this._group,a=this._handle;t&&i&&(this._lastGraphicKey=null,i&&t.remove(i),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),$a(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,i){return i=i||0,{x:e[i],y:e[1-i],width:t[i],height:t[1-i]}},r}();function TO(r,e,t,i){DO(Es(t).lastProp,i)||(Es(t).lastProp=i,e?gt(t,i,r):(t.stopAnimation(),t.attr(i)))}function DO(r,e){if(K(r)&&K(e)){var t=!0;return w(e,function(i,a){t=t&&DO(r[a],i)}),!!t}else return r===e}function CO(r,e){r[e.get(["label","show"])?"show":"hide"]()}function x1(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function AO(r,e,t){var i=e.get("z"),a=e.get("zlevel");r&&r.traverse(function(n){n.type!=="group"&&(i!=null&&(n.z=i),a!=null&&(n.zlevel=a),n.silent=t)})}var fu=p7;function pu(r){var e=r.get("type"),t=r.getModel(e+"Style"),i;return e==="line"?(i=t.getLineStyle(),i.fill=null):e==="shadow"&&(i=t.getAreaStyle(),i.stroke=null),i}function _1(r,e,t,i,a){var n=t.get("value"),o=S1(n,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=ri(s.get("padding")||0),u=s.getFont(),f=ua(o,u),p=a.position,c=f.width+l[1]+l[3],h=f.height+l[0]+l[2],v=a.align;v==="right"&&(p[0]-=c),v==="center"&&(p[0]-=c/2);var d=a.verticalAlign;d==="bottom"&&(p[1]-=h),d==="middle"&&(p[1]-=h/2),c7(p,c,h,i);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),r.label={x:p[0],y:p[1],style:Ut(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function c7(r,e,t,i){var a=i.getWidth(),n=i.getHeight();r[0]=Math.min(r[0]+e,a)-e,r[1]=Math.min(r[1]+t,n)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function S1(r,e,t,i,a){r=e.scale.parse(r);var n=e.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:Qf(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};w(i,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,p=u&&u.getDataParams(f);p&&s.seriesData.push(p)}),B(o)?n=o.replace("{value}",n):Z(o)&&(n=o(s))}return n}function Lp(r,e,t){var i=xe();return pr(i,i,t.rotation),Ye(i,i,t.position),je([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],i)}function Vd(r,e,t,i,a,n){var o=tr.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),_1(e,i,a,n,{position:Lp(i.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function cu(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function Bd(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function b1(r,e,t,i,a,n){return{cx:r,cy:e,r0:t,r:i,startAngle:a,endAngle:n,clockwise:!0}}var h7=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,a,n,o){var s=a.axis,l=s.grid,u=n.get("type"),f=MO(l,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var c=pu(n),h=v7[u](s,p,f);h.style=c,t.graphicKey=h.type,t.pointer=h}var v=pp(l.model,a);Vd(i,t,v,a,n,o)},e.prototype.getHandleTransform=function(t,i,a){var n=pp(i.axis.grid.model,i,{labelInside:!1});n.labelMargin=a.get(["handle","margin"]);var o=Lp(i.axis,t,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,i,a,n){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=MO(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,p=[t.x,t.y];p[f]+=i[f],p[f]=Math.min(l[1],p[f]),p[f]=Math.max(l[0],p[f]);var c=(u[1]+u[0])/2,h=[c,c];h[f]=p[f];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:p[0],y:p[1],rotation:t.rotation,cursorPoint:h,tooltipOption:v[f]}},e}(fu);function MO(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var v7={line:function(r,e,t){var i=cu([e,t[0]],[e,t[1]],LO(r));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(r,e,t){var i=Math.max(1,r.getBandWidth()),a=t[1]-t[0];return{type:"Rect",shape:Bd([e-i/2,t[0]],[i,a],LO(r))}}};function LO(r){return r.dim==="x"?0:1}var IO=h7;var d7=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}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:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",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:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(mt),EO=d7;var sn=ot(),m7=w;function Gd(r,e,t){if(!bt.node){var i=e.getZr();sn(i).records||(sn(i).records={}),g7(i,e);var a=sn(i).records[r]||(sn(i).records[r]={});a.handler=t}}function g7(r,e){if(sn(r).initialized)return;sn(r).initialized=!0,t("click",tt(PO,"click")),t("mousemove",tt(PO,"mousemove")),t("globalout",x7);function t(i,a){r.on(i,function(n){var o=_7(e);m7(sn(r).records,function(s){s&&a(s,n,o.dispatchAction)}),y7(o.pendings,e)})}}function y7(r,e){var t=r.showTip.length,i=r.hideTip.length,a;t?a=r.showTip[t-1]:i&&(a=r.hideTip[i-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function x7(r,e,t){r.handler("leave",null,t)}function PO(r,e,t,i){e.handler(r,t,i)}function _7(r){var e={showTip:[],hideTip:[]},t=function(i){var a=e[i.type];a?a.push(i):(i.dispatchAction=t,r.dispatchAction(i))};return{dispatchAction:t,pendings:e}}function Ip(r,e){if(!bt.node){var t=e.getZr(),i=(sn(t).records||{})[r];i&&(sn(t).records[r]=null)}}var S7=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n=i.getComponent("tooltip"),o=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";Gd("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(t,i){Ip("axisPointer",i)},e.prototype.dispose=function(t,i){Ip("axisPointer",i)},e.type="axisPointer",e}(Et),OO=S7;function Ep(r,e){var t=[],i=r.seriesIndex,a;if(i==null||!(a=e.getSeriesByIndex(i)))return{point:[]};var n=a.getData(),o=vi(n,r);if(o==null||o<0||z(o))return{point:[]};var s=n.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),p=f.dim,c=u.dim,h=p==="x"||p==="radius"?1:0,v=n.mapDimension(c),d=[];d[h]=n.get(v,o),d[1-h]=n.get(n.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(d)||[]}else t=l.dataToPoint(n.getValues(k(l.dimensions,function(g){return n.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),t=[m.x+m.width/2,m.y+m.height/2]}return{point:t,el:s}}var NO=ot();function w1(r,e,t){var i=r.currTrigger,a=[r.x,r.y],n=r,o=r.dispatchAction||W(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Hd(a)&&(a=Ep({seriesIndex:n.seriesIndex,dataIndex:n.dataIndex},e).point);var l=Hd(a),u=n.axesInfo,f=s.axesInfo,p=i==="leave"||Hd(a),c={},h={},v={list:[],map:{}},d={showPointer:tt(w7,h),showTooltip:tt(T7,v)};w(s.coordSysMap,function(g,y){var x=l||g.containPoint(a);w(s.coordSysAxesInfo[y],function(_,b){var S=_.axis,T=M7(u,_);if(!p&&x&&(!u||T)){var C=T&&T.value;C==null&&!l&&(C=S.pointToData(a)),C!=null&&zO(_,C,d,!1,c)}})});var m={};return w(f,function(g,y){var x=g.linkGroup;x&&!h[y]&&w(x.axesInfo,function(_,b){var S=h[b];if(_!==g&&S){var T=S.value;x.mapper&&(T=g.axis.scale.parse(x.mapper(T,kO(_),kO(g)))),m[g.key]=T}})}),w(m,function(g,y){zO(f[y],g,d,!0,c)}),C7(h,f,c),A7(v,a,r,o),D7(f,o,t),c}}function zO(r,e,t,i,a){var n=r.axis;if(!(n.scale.isBlank()||!n.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=b7(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&N(a,s[0]),!i&&r.snap&&n.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function b7(r,e){var t=e.axis,i=t.dim,a=r,n=[],o=Number.MAX_VALUE,s=-1;return w(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),p,c;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,r,t);c=h.dataIndices,p=h.nestestValue}else{if(c=l.getData().indicesOfNearest(f[0],r,t.type==="category"?.5:null),!c.length)return;p=l.getData().get(f[0],c[0])}if(!(p==null||!isFinite(p))){var v=r-p,d=Math.abs(v);d<=o&&((d=0&&s<0)&&(o=d,s=v,a=p,n.length=0),w(c,function(m){n.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:n,snapToValue:a}}function w7(r,e,t,i){r[e.key]={value:t,payloadBatch:i}}function T7(r,e,t,i){var a=t.payloadBatch,n=e.axis,o=n.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=Gl(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.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 C7(r,e,t){var i=t.axesInfo=[];w(e,function(a,n){var o=a.axisPointerModel.option,s=r[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 A7(r,e,t,i){if(Hd(e)||!r.list.length){i({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function D7(r,e,t){var i=t.getZr(),a="axisPointerLastHighlights",n=NO(i)[a]||{},o=NO(i)[a]={};w(r,function(u,f){var p=u.axisPointerModel.option;p.status==="show"&&u.triggerEmphasis&&w(p.seriesDataIndices,function(c){var h=c.seriesIndex+" | "+c.dataIndex;o[h]=c})});var s=[],l=[];w(n,function(u,f){!o[f]&&l.push(u)}),w(o,function(u,f){!n[f]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function M7(r,e){for(var t=0;t<(r||[]).length;t++){var i=r[t];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function kO(r){var e=r.axis.model,t={},i=t.axisDim=r.axis.dim;return t.axisIndex=t[i+"AxisIndex"]=e.componentIndex,t.axisName=t[i+"AxisName"]=e.name,t.axisId=t[i+"AxisId"]=e.id,t}function Hd(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function aa(r){Yr.registerAxisPointerClass("CartesianAxisPointer",IO),r.registerComponentModel(EO),r.registerComponentView(OO),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!z(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=fE(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},w1)}function T1(r){_t(id),_t(aa)}var L7=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,a,n,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),p=s.dataToCoord(i),c=n.get("type");if(c&&c!=="none"){var h=pu(n),v=E7[c](s,l,p,f);v.style=h,t.graphicKey=v.type,t.pointer=v}var d=n.get(["label","margin"]),m=I7(i,a,n,l,d);_1(t,a,n,o,m)},e}(fu);function I7(r,e,t,i,a){var n=e.axis,o=n.dataToCoord(r),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=i.getRadiusAxis().getExtent(),u,f,p;if(n.dim==="radius"){var c=xe();pr(c,c,s),Ye(c,c,[i.cx,i.cy]),u=je([o,-a],c);var h=e.getModel("axisLabel").get("rotate")||0,v=tr.innerTextLayout(s,h*Math.PI/180,-1);f=v.textAlign,p=v.textVerticalAlign}else{var d=l[1];u=i.coordToPoint([d+a,o]);var m=i.cx,g=i.cy;f=Math.abs(u[0]-m)/d<.3?"center":u[0]>m?"left":"right",p=Math.abs(u[1]-g)/d<.3?"middle":u[1]>g?"top":"bottom"}return{position:u,align:f,verticalAlign:p}}var E7={line:function(r,e,t,i){return r.dim==="angle"?{type:"Line",shape:cu(e.coordToPoint([i[0],t]),e.coordToPoint([i[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,i){var a=Math.max(1,r.getBandWidth()),n=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:b1(e.cx,e.cy,i[0],i[1],(-t-a/2)*n,(-t+a/2)*n)}:{type:"Sector",shape:b1(e.cx,e.cy,t-a/2,t+a/2,0,Math.PI*2)}}},UO=L7;var P7=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var i,a=this.ecModel;return a.eachComponent(t,function(n){n.getCoordSysModel()===this&&(i=n)},this),i},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(mt),VO=P7;var C1=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Xt).models[0]},e.type="polarAxis",e}(mt);Wt(C1,Li);var BO=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(C1);var FO=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(C1);var A1=function(r){E(e,r);function e(t,i){return r.call(this,"radius",t,i)||this}return e.prototype.pointToData=function(t,i){return this.polar.pointToData(t,i)[this.dim==="radius"?0:1]},e}(Ge);A1.prototype.dataToRadius=Ge.prototype.dataToCoord;A1.prototype.radiusToData=Ge.prototype.coordToData;var GO=A1;var R7=ot(),D1=function(r){E(e,r);function e(t,i){return r.call(this,"angle",t,i||[0,360])||this}return e.prototype.pointToData=function(t,i){return this.polar.pointToData(t,i)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,i=t.getLabelModel(),a=t.scale,n=a.getExtent(),o=a.count();if(n[1]-n[0]<1)return 0;var s=n[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),f=ua(s==null?"":s+"",i.getFont(),"center","top"),p=Math.max(f.height,7),c=p/u;isNaN(c)&&(c=1/0);var h=Math.max(0,Math.floor(c)),v=R7(t.model),d=v.lastAutoInterval,m=v.lastTickCount;return d!=null&&m!=null&&Math.abs(d-h)<=1&&Math.abs(m-o)<=1&&d>h?h=d:(v.lastTickCount=o,v.lastAutoInterval=h),h},e}(Ge);D1.prototype.dataToAngle=Ge.prototype.dataToCoord;D1.prototype.angleToData=Ge.prototype.coordToData;var HO=D1;var M1=["radius","angle"],O7=function(){function r(e){this.dimensions=M1,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new GO,this._angleAxis=new HO,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],i=this._angleAxis,a=this._radiusAxis;return i.scale.type===e&&t.push(i),a.scale.type===e&&t.push(a),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},r.prototype.pointToData=function(e,t){var i=this.pointToCoord(e);return[this._radiusAxis.radiusToData(i[0],t),this._angleAxis.angleToData(i[1],t)]},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,i=e[1]-this.cy,a=this.getAngleAxis(),n=a.getExtent(),o=Math.min(n[0],n[1]),s=Math.max(n[0],n[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+i*i);t/=l,i/=l;for(var u=Math.atan2(-i,t)/Math.PI*180,f=us;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(e){var t=e[0],i=e[1]/180*Math.PI,a=Math.cos(i)*t+this.cx,n=-Math.sin(i)*t+this.cy;return[a,n]},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),i=t.getExtent().slice();i[0]>i[1]&&i.reverse();var a=e.getExtent(),n=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:i[0],r:i[1],startAngle:-a[0]*n,endAngle:-a[1]*n,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,f=l*l+u*u-1e-4,p=this.r,c=this.r0;return f<=p*p&&f>=c*c}}},r.prototype.convertToPixel=function(e,t,i){var a=WO(t);return a===this?this.dataToPoint(i):null},r.prototype.convertFromPixel=function(e,t,i){var a=WO(t);return a===this?this.pointToData(i):null},r}();function WO(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}var YO=O7;function N7(r,e,t){var i=e.get("center"),a=t.getWidth(),n=t.getHeight();r.cx=H(i[0],a),r.cy=H(i[1],n);var o=r.getRadiusAxis(),s=Math.min(a,n)/2,l=e.get("radius");l==null?l=[0,"100%"]:z(l)||(l=[0,l]);var u=[H(l[0],s),H(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function z7(r,e){var t=this,i=t.getAngleAxis(),a=t.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();w(zl(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),w(zl(l,"angle"),function(u){i.scale.unionExtentFromData(l,u)})}}),Mi(i.scale,i.model),Mi(a.scale,a.model),i.type==="category"&&!i.onBand){var n=i.getExtent(),o=360/i.scale.count();i.inverse?n[1]+=o:n[1]-=o,i.setExtent(n[0],n[1])}}function k7(r){return r.mainType==="angleAxis"}function ZO(r,e){if(r.type=e.get("type"),r.scale=xa(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),k7(e)){r.inverse=r.inverse!==e.get("clockwise");var t=e.get("startAngle");r.setExtent(t,t+(r.inverse?-360:360))}e.axis=r,r.model=e}var U7={dimensions:M1,create:function(r,e){var t=[];return r.eachComponent("polar",function(i,a){var n=new YO(a+"");n.update=z7;var o=n.getRadiusAxis(),s=n.getAngleAxis(),l=i.findAxisModel("radiusAxis"),u=i.findAxisModel("angleAxis");ZO(o,l),ZO(s,u),N7(n,i,e),t.push(n),i.coordinateSystem=n,n.model=i}),r.eachSeries(function(i){if(i.get("coordinateSystem")==="polar"){var a=i.getReferringComponents("polar",Xt).models[0];i.coordinateSystem=a.coordinateSystem}}),t}},XO=U7;var V7=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Wd(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var i=r.coordToPoint([e[0],t]),a=r.coordToPoint([e[1],t]);return{x1:i[0],y1:i[1],x2:a[0],y2:a[1]}}function Yd(r){var e=r.getRadiusAxis();return e.inverse?0:1}function qO(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var B7=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,i){if(this.group.removeAll(),!!t.get("show")){var a=t.axis,n=a.polar,o=n.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=k(a.getViewLabels(),function(f){f=J(f);var p=a.scale,c=p.type==="ordinal"?p.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=a.dataToCoord(c),f});qO(u),qO(s),w(V7,function(f){t.get([f,"show"])&&(!a.scale.isBlank()||f==="axisLine")&&F7[f](this.group,t,n,s,l,o,u)},this)}},e.type="angleAxis",e}(Yr),F7={axisLine:function(r,e,t,i,a,n){var o=e.getModel(["axisLine","lineStyle"]),s=Yd(t),l=s?0:1,u;n[l]===0?u=new ze({shape:{cx:t.cx,cy:t.cy,r:n[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new Ga({shape:{cx:t.cx,cy:t.cy,r:n[s],r0:n[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,r.add(u)},axisTick:function(r,e,t,i,a,n){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=n[Yd(t)],u=k(i,function(f){return new re({shape:Wd(t,[l,l+s],f.coord)})});r.add(Ze(u,{style:X(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,i,a,n){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=n[Yd(t)],f=[],p=0;pg?"left":"right",_=Math.abs(m[1]-y)/d<.3?"middle":m[1]>y?"top":"bottom";if(s&&s[v]){var b=s[v];K(b)&&b.textStyle&&(h=new Mt(b.textStyle,l,l.ecModel))}var S=new dt({silent:tr.isLabelSilent(e),style:Ut(h,{x:m[0],y:m[1],fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:p.formattedLabel,align:x,verticalAlign:_})});if(r.add(S),f){var T=tr.makeAxisEventDataBase(e);T.targetType="axisLabel",T.value=p.rawLabel,et(S).eventData=T}},this)},splitLine:function(r,e,t,i,a,n){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],p=0;p=0?"p":"n",I=T;b&&(i[f][M]||(i[f][M]={p:T,n:T}),I=i[f][M][L]);var P=void 0,R=void 0,O=void 0,V=void 0;if(v.dim==="radius"){var U=v.dataToCoord(D)-T,F=l.dataToCoord(M);Math.abs(U)=V})}}})}function q7(r){var e={};w(r,function(i,a){var n=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=QO(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/n.count(),p=e[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=p.stacks;e[l]=p;var h=JO(i);c[h]||p.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var v=H(i.get("barWidth"),f),d=H(i.get("barMaxWidth"),f),m=i.get("barGap"),g=i.get("barCategoryGap");v&&!c[h].width&&(v=Math.min(p.remainedWidth,v),c[h].width=v,p.remainedWidth-=v),d&&(c[h].maxWidth=d),m!=null&&(p.gap=m),g!=null&&(p.categoryGap=g)});var t={};return w(e,function(i,a){t[a]={};var n=i.stacks,o=i.bandWidth,s=H(i.categoryGap,o),l=H(i.gap,1),u=i.remainedWidth,f=i.autoWidthCount,p=(u-s)/(f+(f-1)*l);p=Math.max(p,0),w(n,function(d,m){var g=d.maxWidth;g&&g=t.y&&e[1]<=t.y+t.height:i.contain(i.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(e){var t=this.getAxis(),i=this.getRect(),a=[],n=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),a[n]=t.toGlobalCoord(t.dataToCoord(+e)),a[1-n]=n===0?i.y+i.height/2:i.x+i.width/2,a},r.prototype.convertToPixel=function(e,t,i){var a=aN(t);return a===this?this.dataToPoint(i):null},r.prototype.convertFromPixel=function(e,t,i){var a=aN(t);return a===this?this.pointToData(i):null},r}();function aN(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}var nN=i9;function a9(r,e){var t=[];return r.eachComponent("singleAxis",function(i,a){var n=new nN(i,r,e);n.name="single_"+a,n.resize(i,e),i.coordinateSystem=n,t.push(n)}),r.eachSeries(function(i){if(i.get("coordinateSystem")==="singleAxis"){var a=i.getReferringComponents("singleAxis",Xt).models[0];i.coordinateSystem=a&&a.coordinateSystem}}),t}var n9={create:a9,dimensions:I1},oN=n9;var sN=["x","y"],o9=["width","height"],s9=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,a,n,o){var s=a.axis,l=s.coordinateSystem,u=E1(l,1-Xd(s)),f=l.dataToPoint(i)[0],p=n.get("type");if(p&&p!=="none"){var c=pu(n),h=l9[p](s,f,u);h.style=c,t.graphicKey=h.type,t.pointer=h}var v=Pp(a);Vd(i,t,v,a,n,o)},e.prototype.getHandleTransform=function(t,i,a){var n=Pp(i,{labelInside:!1});n.labelMargin=a.get(["handle","margin"]);var o=Lp(i.axis,t,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,i,a,n){var o=a.axis,s=o.coordinateSystem,l=Xd(o),u=E1(s,l),f=[t.x,t.y];f[l]+=i[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var p=E1(s,1-l),c=(p[1]+p[0])/2,h=[c,c];return h[l]=f[l],{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(fu),l9={line:function(r,e,t){var i=cu([e,t[0]],[e,t[1]],Xd(r));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(r,e,t){var i=r.getBandWidth(),a=t[1]-t[0];return{type:"Rect",shape:Bd([e-i/2,t[0]],[i,a],Xd(r))}}};function Xd(r){return r.isHorizontal()?0:1}function E1(r,e){var t=r.getRect();return[t[sN[e]],t[sN[e]]+t[o9[e]]]}var lN=s9;var u9=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(Et);function P1(r){_t(aa),Yr.registerAxisPointerClass("SingleAxisPointer",lN),r.registerComponentView(u9),r.registerComponentView(eN),r.registerComponentModel(Zd),ia(r,"single",Zd,Zd.defaultOption),r.registerCoordinateSystem("single",oN)}var f9=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i,a){var n=Si(t);r.prototype.init.apply(this,arguments),uN(t,n)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),uN(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(mt);function uN(r,e){var t=r.cellSize,i;z(t)?i=t:i=r.cellSize=[t,t],i.length===1&&(i[1]=i[0]);var a=k([0,1],function(n){return CA(e,n)&&(i[n]="auto"),i[n]!=null&&i[n]!=="auto"});Vr(r,e,{type:"box",ignoreSize:a})}var fN=f9;var p9=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n=this.group;n.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=i.getLocaleModel();this._renderDayRect(t,s,n),this._renderLines(t,s,l,n),this._renderYearText(t,s,l,n),this._renderMonthText(t,u,l,n),this._renderWeekText(t,u,s,l,n)},e.prototype._renderDayRect=function(t,i,a){for(var n=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=n.getCellWidth(),l=n.getCellHeight(),u=i.start.time;u<=i.end.time;u=n.getNextNDay(u,1).time){var f=n.dataToRect([u],!1).tl,p=new pt({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});a.add(p)}},e.prototype._renderLines=function(t,i,a,n){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var p=i.start,c=0;p.time<=i.end.time;c++){v(p.formatedDate),c===0&&(p=s.getDateInfo(i.start.y+"-"+i.start.m));var h=p.date;h.setMonth(h.getMonth()+1),p=s.getDateInfo(h)}v(s.getNextNDay(i.end.time,1).formatedDate);function v(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToRect([d],!1).tl);var m=o._getLinePointsOfOneWeek(t,d,a);o._tlpoints.push(m[0]),o._blpoints.push(m[m.length-1]),u&&o._drawSplitline(m,l,n)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,a),l,n),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,a),l,n)},e.prototype._getEdgesPoints=function(t,i,a){var n=[t[0].slice(),t[t.length-1].slice()],o=a==="horizontal"?0:1;return n[0][o]=n[0][o]-i/2,n[1][o]=n[1][o]+i/2,n},e.prototype._drawSplitline=function(t,i,a){var n=new ae({z2:20,shape:{points:t},style:i});a.add(n)},e.prototype._getLinePointsOfOneWeek=function(t,i,a){for(var n=t.coordinateSystem,o=n.getDateInfo(i),s=[],l=0;l<7;l++){var u=n.getNextNDay(o.time,l),f=n.dataToRect([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[a==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,i){return B(t)&&t?SA(t,i):Z(t)?t(i):i.nameMap},e.prototype._yearTextPositionControl=function(t,i,a,n,o){var s=i[0],l=i[1],u=["center","bottom"];n==="bottom"?(l+=o,u=["center","top"]):n==="left"?s-=o:n==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(n==="left"||n==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,i,a,n){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,p=(u[0][1]+u[1][1])/2,c=a==="horizontal"?0:1,h={top:[f,u[c][1]],bottom:[f,u[1-c][1]],left:[u[1-c][0],p],right:[u[c][0],p]},v=i.start.y;+i.end.y>+i.start.y&&(v=v+"-"+i.end.y);var d=o.get("formatter"),m={start:i.start.y,end:i.end.y,nameMap:v},g=this._formatterLabel(d,m),y=new dt({z2:30,style:Ut(o,{text:g})});y.attr(this._yearTextPositionControl(y,h[l],a,l,s)),n.add(y)}},e.prototype._monthTextPositionControl=function(t,i,a,n,o){var s="left",l="top",u=t[0],f=t[1];return a==="horizontal"?(f=f+o,i&&(s="center"),n==="start"&&(l="bottom")):(u=u+o,i&&(l="middle"),n==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,i,a,n){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),p=[this._tlpoints,this._blpoints];(!s||B(s))&&(s&&(i=df(s)||i),s=i.get(["time","monthAbbr"])||[]);var c=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var v=f==="center",d=0;d=a.start.time&&i.times.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],i;t[0].time>t[1].time&&(i=!0,t.reverse());var a=Math.floor(t[1].time/R1)-Math.floor(t[0].time/R1)+1,n=new Date(t[0].time),o=n.getDate(),s=t[1].date.getDate();n.setDate(o+a-1);var l=n.getDate();if(l!==s)for(var u=n.getTime()-t[1].time>0?1:-1;(l=n.getDate())!==s&&(n.getTime()-t[1].time)*u>0;)a-=u,n.setDate(l-u);var f=Math.floor((a+t[0].day+6)/7),p=i?-f+1:f-1;return i&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:a,weeks:f,nthWeek:p,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,i){var a=this._getRangeInfo(i);if(e>a.weeks||e===0&&ta.lweek)return null;var n=(e-1)*7-a.fweek+t,o=new Date(a.start.time);return o.setDate(+a.start.d+n),this.getDateInfo(o)},r.create=function(e,t){var i=[];return e.eachComponent("calendar",function(a){var n=new r(a,e,t);i.push(n),a.coordinateSystem=n}),e.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=i[a.get("calendarIndex")||0])}),i},r.dimensions=["time","value"],r}();function cN(r){var e=r.calendarModel,t=r.seriesModel,i=e?e.coordinateSystem:t?t.coordinateSystem:null;return i}var hN=c9;function O1(r){r.registerComponentModel(fN),r.registerComponentView(pN),r.registerCoordinateSystem("calendar",hN)}function h9(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var i=e.parentOption;i?e.parentId=i.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function vN(r,e){var t;return w(e,function(i){r[i]!=null&&r[i]!=="auto"&&(t=!0)}),t}function v9(r,e,t){var i=N({},t),a=r[e],n=t.$action||"merge";if(n==="merge")if(a){if(0)var o;nt(a,i,!0),Vr(a,i,{ignoreSize:!0}),ky(t,a),qd(t,a),qd(t,a,"shape"),qd(t,a,"style"),qd(t,a,"extra"),t.clipPath=a.clipPath}else r[e]=i;else n==="replace"?r[e]=i:n==="remove"&&a&&(r[e]=null)}var dN=["transition","enterFrom","leaveTo"],d9=dN.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function qd(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var i=t?dN:d9,a=0;a=0;f--){var p=a[f],c=ie(p.id,null),h=c!=null?o.get(c):null;if(h){var v=h.parent,g=Ni(v),y=v===n?{width:s,height:l}:{width:g.width,height:g.height},x={},_=Rn(h,p,y,null,{hv:p.hv,boundingMode:p.bounding},x);if(!Ni(h).isNew&&_){for(var b=p.transition,S={},T=0;T=0)?S[C]=A:h[C]=A}gt(h,S,t,0)}else h.attr(x)}}},e.prototype._clear=function(){var t=this,i=this._elMap;i.each(function(a){Kd(a,Ni(a).option,i,t._lastGraphicModel)}),this._elMap=Y()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Et);function N1(r){var e=Q(gN,r)?gN[r]:es(r),t=new e({});return Ni(t).type=r,t}function yN(r,e,t,i){var a=N1(t);return e.add(a),i.set(r,a),Ni(a).id=r,Ni(a).isNew=!0,a}function Kd(r,e,t,i){var a=r&&r.parent;a&&(r.type==="group"&&r.traverse(function(n){Kd(n,e,t,i)}),lu(r,e,i),t.removeKey(Ni(r).id))}function xN(r,e,t,i){r.isGroup||w([["cursor",ge.prototype.cursor],["zlevel",i||0],["z",t||0],["z2",0]],function(a){var n=a[0];Q(e,n)?r[n]=lt(e[n],a[1]):r[n]==null&&(r[n]=a[1])}),w(ft(e),function(a){if(a.indexOf("on")===0){var n=e[a];r[a]=Z(n)?n:null}}),Q(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function g9(r){return r=N({},r),w(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Ny),function(e){delete r[e]}),r}function y9(r,e,t){var i=et(r).eventData;!r.silent&&!r.ignore&&!i&&(i=et(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),i&&(i.info=t.info)}function z1(r){r.registerComponentModel(mN),r.registerComponentView(_N),r.registerPreprocessor(function(e){var t=e.graphic;z(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var k1=["x","y","radius","angle","single"],x9=["cartesian2d","polar","singleAxis"];function SN(r){var e=r.get("coordinateSystem");return it(x9,e)>=0}function zi(r){return r+"Axis"}function bN(r,e){var t=Y(),i=[],a=Y();r.eachComponent({mainType:"dataZoom",query:e},function(f){a.get(f.uid)||s(f)});var n;do n=!1,r.eachComponent("dataZoom",o);while(n);function o(f){!a.get(f.uid)&&l(f)&&(s(f),n=!0)}function s(f){a.set(f.uid,!0),i.push(f),u(f)}function l(f){var p=!1;return f.eachTargetAxis(function(c,h){var v=t.get(c);v&&v[h]&&(p=!0)}),p}function u(f){f.eachTargetAxis(function(p,c){(t.get(p)||t.set(p,[]))[c]=!0})}return i}function jd(r){var e=r.ecModel,t={infoList:[],infoMap:Y()};return r.eachTargetAxis(function(i,a){var n=e.getComponent(zi(i),a);if(n){var o=n.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(n)}}}),t}var U1=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r}(),_9=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,i,a){var n=wN(t);this.settledOption=n,this.mergeDefaultAndTheme(t,a),this._doInit(n)},e.prototype.mergeOption=function(t){var i=wN(t);nt(this.option,t,!0),nt(this.settledOption,i,!0),this._doInit(i)},e.prototype._doInit=function(t){var i=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;w([["start","startValue"],["end","endValue"]],function(n,o){this._rangePropMode[o]==="value"&&(i[n[0]]=a[n[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),i=this._targetAxisInfoMap=Y(),a=this._fillSpecifiedTargetAxis(i);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(i,this._orient)),this._noTarget=!0,i.each(function(n){n.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var i=!1;return w(k1,function(a){var n=this.getReferringComponents(zi(a),vT);if(n.specified){i=!0;var o=new U1;w(n.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),i},e.prototype._fillAutoTargetAxisByOrient=function(t,i){var a=this.ecModel,n=!0;if(n){var o=i==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(n){var s=a.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===i}});l(s,"single")}function l(u,f){var p=u[0];if(p){var c=new U1;if(c.add(p.componentIndex),t.set(f,c),n=!1,f==="x"||f==="y"){var h=p.getReferringComponents("grid",Xt).models[0];h&&w(u,function(v){p.componentIndex!==v.componentIndex&&h===v.getReferringComponents("grid",Xt).models[0]&&c.add(v.componentIndex)})}}}n&&w(k1,function(u){if(n){var f=a.findComponents({mainType:zi(u),filter:function(c){return c.get("type",!0)==="category"}});if(f[0]){var p=new U1;p.add(f[0].componentIndex),t.set(u,p),n=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(i){!t&&(t=i)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var i=this.ecModel.option;this.option.throttle=i.animation&&i.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var i=this._rangePropMode,a=this.get("rangeMode");w([["start","startValue"],["end","endValue"]],function(n,o){var s=t[n[0]]!=null,l=t[n[1]]!=null;s&&!l?i[o]="percent":!s&&l?i[o]="value":a?i[o]=a[o]:s&&(i[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(i,a){t==null&&(t=this.ecModel.getComponent(zi(i),a))},this),t},e.prototype.eachTargetAxis=function(t,i){this._targetAxisInfoMap.each(function(a,n){w(a.indexList,function(o){t.call(i,n,o)})})},e.prototype.getAxisProxy=function(t,i){var a=this.getAxisModel(t,i);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(t,i){var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[i])return this.ecModel.getComponent(zi(t),i)},e.prototype.setRawRange=function(t){var i=this.option,a=this.settledOption;w([["start","startValue"],["end","endValue"]],function(n){(t[n[0]]!=null||t[n[1]]!=null)&&(i[n[0]]=a[n[0]]=t[n[0]],i[n[1]]=a[n[1]]=t[n[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var i=this.option;w(["start","startValue","end","endValue"],function(a){i[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,i){if(t==null&&i==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(t,i).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var i,a=this._targetAxisInfoMap.keys(),n=0;no[1];if(x&&!_&&!b)return!0;x&&(m=!0),_&&(v=!0),b&&(d=!0)}return m&&v&&d})}else vu(f,function(h){if(n==="empty")l.setData(u=u.map(h,function(d){return s(d)?d:NaN}));else{var v={};v[h]=o,u.selectRange(v)}});vu(f,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,i=this._dataExtent;vu(["min","max"],function(a){var n=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?n=zt(i[0]+o,i,[0,100],!0):n!=null&&(o=zt(n,[0,100],i,!0)-i[0]),e[a+"Span"]=n,e[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,i=this._valueWindow;if(t){var a=$s(i,[0,500]);a=Math.min(a,20);var n=e.axis.scale.rawExtentInfo;t[0]!==0&&n.setDeterminedMinMax("min",+i[0].toFixed(a)),t[1]!==100&&n.setDeterminedMinMax("max",+i[1].toFixed(a)),n.freeze()}},r}();function C9(r,e,t){var i=[1/0,-1/0];vu(t,function(o){pL(i,o.getData(),e)});var a=r.getAxisModel(),n=Tv(a.axis.scale,a,i).calculate();return[n.min,n.max]}var DN=T9;var A9={getTargetSeries:function(r){function e(a){r.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(o,s){var l=r.getComponent(zi(o),s);a(o,s,l,n)})})}e(function(a,n,o,s){o.__dzAxisProxy=null});var t=[];e(function(a,n,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new DN(a,n,s,r),t.push(o.__dzAxisProxy))});var i=Y();return w(t,function(a){w(a.getTargetSeriesModels(),function(n){i.set(n.uid,n)})}),i},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(i,a){t.getAxisProxy(i,a).reset(t)}),t.eachTargetAxis(function(i,a){t.getAxisProxy(i,a).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var i=t.findRepresentativeAxisProxy();if(i){var a=i.getDataPercentWindow(),n=i.getDataValueWindow();t.setCalculatedRange({start:a[0],end:a[1],startValue:n[0],endValue:n[1]})}})}},MN=A9;function V1(r){r.registerAction("dataZoom",function(e,t){var i=bN(t,e);w(i,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var LN=!1;function Ps(r){LN||(LN=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,MN),V1(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function IN(r){r.registerComponentModel(TN),r.registerComponentView(CN),Ps(r)}var He=function(){function r(){}return r}();var EN={};function oo(r,e){EN[r]=e}function Jd(r){return EN[r]}var M9=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;w(this.option.feature,function(i,a){var n=Jd(a);n&&(n.getDefaultOption&&(n.defaultOption=n.getDefaultOption(t)),nt(i,n.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(mt),PN=M9;function RN(r,e,t){var i=e.getBoxLayoutParams(),a=e.get("padding"),n={width:t.getWidth(),height:t.getHeight()},o=Gt(i,n,a);Zi(e.get("orient"),r,e.get("itemGap"),o.width,o.height),Rn(r,i,n,a)}function Qd(r,e){var t=ri(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),r=new pt({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1}),r}var I9=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,i,a,n){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},f=this._features||(this._features={}),p=[];w(u,function(v,d){p.push(d)}),new $e(this._featureNames||[],p).add(c).update(c).remove(tt(c,null)).execute(),this._featureNames=p;function c(v,d){var m=p[v],g=p[d],y=u[m],x=new Mt(y,t,t.ecModel),_;if(n&&n.newTitle!=null&&n.featureName===m&&(y.title=n.newTitle),m&&!g){if(E9(m))_={onclick:x.option.onclick,featureName:m};else{var b=Jd(m);if(!b)return;_=new b}f[m]=_}else if(_=f[g],!_)return;_.uid=_i("toolbox-feature"),_.model=x,_.ecModel=i,_.api=a;var S=_ instanceof He;if(!m&&g){S&&_.dispose&&_.dispose(i,a);return}if(!x.get("show")||S&&_.unusable){S&&_.remove&&_.remove(i,a);return}h(x,_,m),x.setIconStatus=function(T,C){var A=this.option,D=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[T]=C,D[T]&&(C==="emphasis"?rr:ir)(D[T])},_ instanceof He&&_.render&&_.render(x,i,a,n)}function h(v,d,m){var g=v.getModel("iconStyle"),y=v.getModel(["emphasis","iconStyle"]),x=d instanceof He&&d.getIcons?d.getIcons():v.get("icon"),_=v.get("title")||{},b,S;B(x)?(b={},b[m]=x):b=x,B(_)?(S={},S[m]=_):S=_;var T=v.iconPaths={};w(b,function(C,A){var D=Hi(C,{},{x:-s/2,y:-s/2,width:s,height:s});D.setStyle(g.getItemStyle());var M=D.ensureState("emphasis");M.style=y.getItemStyle();var L=new dt({style:{text:S[A],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null},ignore:!0});D.setTextContent(L),Wi({el:D,componentModel:t,itemName:A,formatterParamsExtra:{title:S[A]}}),D.__title=S[A],D.on("mouseover",function(){var I=y.getItemStyle(),P=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";L.setStyle({fill:y.get("textFill")||I.fill||I.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),D.setTextConfig({position:y.get("textPosition")||P}),L.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){v.get(["iconStatus",A])!=="emphasis"&&a.leaveEmphasis(this),L.hide()}),(v.get(["iconStatus",A])==="emphasis"?rr:ir)(D),o.add(D),D.on("click",W(d.onclick,d,i,a,A)),T[A]=D})}RN(o,t,a),o.add(Qd(o.getBoundingRect(),t)),l||o.eachChild(function(v){var d=v.__title,m=v.ensureState("emphasis"),g=m.textConfig||(m.textConfig={}),y=v.getTextContent(),x=y&&y.ensureState("emphasis");if(x&&!Z(x)&&d){var _=x.style||(x.style={}),b=ua(d,dt.makeFont(_)),S=v.x+o.x,T=v.y+o.y+s,C=!1;T+b.height>a.getHeight()&&(g.position="top",C=!0);var A=C?-5-b.height:s+10;S+b.width/2>a.getWidth()?(g.position=["100%",A],_.align="right"):S-b.width/2<0&&(g.position=[0,A],_.align="left")}})},e.prototype.updateView=function(t,i,a,n){w(this._features,function(o){o instanceof He&&o.updateView&&o.updateView(o.model,i,a,n)})},e.prototype.remove=function(t,i){w(this._features,function(a){a instanceof He&&a.remove&&a.remove(t,i)}),this.group.removeAll()},e.prototype.dispose=function(t,i){w(this._features,function(a){a instanceof He&&a.dispose&&a.dispose(t,i)})},e.type="toolbox",e}(Et);function E9(r){return r.indexOf("my")===0}var ON=I9;var P9=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){var a=this.model,n=a.get("name")||t.get("title.0.text")||"echarts",o=i.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=i.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=bt.browser;if(Z(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=n+"."+s,f.target="_blank",f.href=l;var p=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(p)}else if(window.navigator.msSaveOrOpenBlob||o){var c=l.split(","),h=c[0].indexOf("base64")>-1,v=o?decodeURIComponent(c[1]):c[1];h&&(v=window.atob(v));var d=n+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=v.length,g=new Uint8Array(m);m--;)g[m]=v.charCodeAt(m);var y=new Blob([g]);window.navigator.msSaveOrOpenBlob(y,d)}else{var x=document.createElement("iframe");document.body.appendChild(x);var _=x.contentWindow,b=_.document;b.open("image/svg+xml","replace"),b.write(v),b.close(),_.focus(),b.execCommand("SaveAs",!0,d),document.body.removeChild(x)}}else{var S=a.get("lang"),T='',C=window.open();C.document.write(T),C.document.title=n}},e.getDefaultOption=function(t){var i={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return i},e}(He),NN=P9;var zN="__ec_magicType_stack__";var R9=[["line","bar"],["stack"]],O9=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,i=t.get("icon"),a={};return w(t.get("type"),function(n){i[n]&&(a[n]=i[n])}),a},e.getDefaultOption=function(t){var i={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return i},e.prototype.onclick=function(t,i,a){var n=this.model,o=n.get(["seriesIndex",a]);if(kN[a]){var s={series:[]},l=function(p){var c=p.subType,h=p.id,v=kN[a](c,h,p,n);v&&(X(v,p.option),s.series.push(v));var d=p.coordinateSystem;if(d&&d.type==="cartesian2d"&&(a==="line"||a==="bar")){var m=d.getAxesByScale("ordinal")[0];if(m){var g=m.dim,y=g+"Axis",x=p.getReferringComponents(y,Xt).models[0],_=x.componentIndex;s[y]=s[y]||[];for(var b=0;b<=_;b++)s[y][_]=s[y][_]||{};s[y][_].boundaryGap=a==="bar"}}};w(R9,function(p){it(p,a)>=0&&w(p,function(c){n.setIconStatus(c,"normal")})}),n.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=a;a==="stack"&&(u=nt({stack:n.option.title.tiled,tiled:n.option.title.stack},n.option.title),n.get(["iconStatus",a])!=="emphasis"&&(f="tiled")),i.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},e}(He),kN={line:function(r,e,t,i){if(r==="bar")return nt({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(r,e,t,i){if(r==="line")return nt({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(r,e,t,i){var a=t.get("stack")===zN;if(r==="line"||r==="bar")return i.setIconStatus("stack",a?"normal":"emphasis"),nt({id:e,stack:a?"":zN},i.get(["option","stack"])||{},!0)}};gr({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var UN=O9;var tm=new Array(60).join("-"),du=" ";function N9(r){var e={},t=[],i=[];return r.eachRawSeries(function(a){var n=a.coordinateSystem;if(n&&(n.type==="cartesian2d"||n.type==="polar")){var o=n.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:n.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:i}}function z9(r){var e=[];return w(r,function(t,i){var a=t.categoryAxis,n=t.valueAxis,o=n.dim,s=[" "].concat(k(t.series,function(h){return h.name})),l=[a.model.getCategories()];w(t.series,function(h){var v=h.getRawData();l.push(h.getRawData().mapArray(v.mapDimension(o),function(d){return d}))});for(var u=[s.join(du)],f=0;f=0)return!0}var B1=new RegExp("["+du+"]+","g");function B9(r){for(var e=r.split(/\n+/g),t=$d(e.shift()).split(B1),i=[],a=k(t,function(l){return{name:l,data:[]}}),n=0;n=0;n--){var o=t[n];if(o[a])break}if(n<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();t[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),t.push(e)}function HN(r){var e=F1(r),t=e[e.length-1];e.length>1&&e.pop();var i={};return BN(t,function(a,n){for(var o=e.length-1;o>=0;o--)if(a=e[o][n],a){i[n]=a;break}}),i}function WN(r){FN(r).snapshots=null}function YN(r){return F1(r).length}function F1(r){var e=FN(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Y9=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){WN(t),i.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var i={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return i},e}(He);gr({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var XN=Y9;var Z9=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],X9=function(){function r(e,t,i){var a=this;this._targetInfoList=[];var n=qN(t,e);w(q9,function(o,s){(!i||!i.include||it(i.include,s)>=0)&&o(n,a._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(i,a,n){if((i.coordRanges||(i.coordRanges=[])).push(a),!i.coordRange){i.coordRange=a;var o=G1[i.brushType](0,n,a);i.__rangeOffset={offset:QN[i.brushType](o.values,i.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,i){w(e,function(a){var n=this.findTargetInfo(a,t);n&&n!==!0&&w(n.coordSyses,function(o){var s=G1[a.brushType](1,o,a.range,!0);i(a,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){w(e,function(i){var a=this.findTargetInfo(i,t);if(i.range=i.range||[],a&&a!==!0){i.panelId=a.panelId;var n=G1[i.brushType](0,a.coordSys,i.coordRange),o=i.__rangeOffset;i.range=o?QN[i.brushType](n.values,o.offset,K9(n.xyMinMax,o.xyMinMax)):n.values}},this)},r.prototype.makePanelOpts=function(e,t){return k(this._targetInfoList,function(i){var a=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:t?t(i):null,clipPath:Cd(a),isTargetByCursor:Dd(a,e,i.coordSysModel),getLinearBrushOtherExtent:Ad(a)}})},r.prototype.controlSeries=function(e,t,i){var a=this.findTargetInfo(e,i);return a===!0||a&&it(a.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var i=this._targetInfoList,a=qN(t,e),n=0;nr[1]&&r.reverse(),r}function qN(r,e){return Sn(r,e,{includeMainTypes:Z9})}var q9={grid:function(r,e){var t=r.xAxisModels,i=r.yAxisModels,a=r.gridModels,n=Y(),o={},s={};!t&&!i&&!a||(w(t,function(l){var u=l.axis.grid.model;n.set(u.id,u),o[u.id]=!0}),w(i,function(l){var u=l.axis.grid.model;n.set(u.id,u),s[u.id]=!0}),w(a,function(l){n.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),n.each(function(l){var u=l.coordinateSystem,f=[];w(u.getCartesians(),function(p,c){(it(t,p.getAxis("x").model)>=0||it(i,p.getAxis("y").model)>=0)&&f.push(p)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:jN.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){w(r.geoModels,function(t){var i=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:i,coordSyses:[i],getPanelRect:jN.geo})})}},KN=[function(r,e){var t=r.xAxisModel,i=r.yAxisModel,a=r.gridModel;return!a&&t&&(a=t.axis.grid.model),!a&&i&&(a=i.axis.grid.model),a&&a===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],jN={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(ti(r)),e}},G1={lineX:tt(JN,0),lineY:tt(JN,1),rect:function(r,e,t,i){var a=r?e.pointToData([t[0][0],t[1][0]],i):e.dataToPoint([t[0][0],t[1][0]],i),n=r?e.pointToData([t[0][1],t[1][1]],i):e.dataToPoint([t[0][1],t[1][1]],i),o=[H1([a[0],n[0]]),H1([a[1],n[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,i){var a=[[1/0,-1/0],[1/0,-1/0]],n=k(t,function(o){var s=r?e.pointToData(o,i):e.dataToPoint(o,i);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:n,xyMinMax:a}}};function JN(r,e,t,i){var a=t.getAxis(["x","y"][r]),n=H1(k([0,1],function(s){return e?a.coordToData(a.toLocalCoord(i[s]),!0):a.toGlobalCoord(a.dataToCoord(i[s]))})),o=[];return o[r]=n,o[1-r]=[NaN,NaN],{values:n,xyMinMax:o}}var QN={lineX:tt($N,0),lineY:tt($N,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return k(r,function(i,a){return[i[0]-t[0]*e[a][0],i[1]-t[1]*e[a][1]]})}};function $N(r,e,t,i){return[e[0]-i[r]*t[0],e[1]-i[r]*t[1]]}function K9(r,e){var t=tz(r),i=tz(e),a=[t[0]/i[0],t[1]/i[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function tz(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var Rp=X9;var W1=w,j9=pT("toolbox-dataZoom_");var J9=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,i,a,n){this._brushController||(this._brushController=new au(a.getZr()),this._brushController.on("brush",W(this._onBrush,this)).mount()),tX(t,i,this,n,a),$9(t,i)},e.prototype.onclick=function(t,i,a){Q9[a].call(this)},e.prototype.remove=function(t,i){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,i){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var i=t.areas;if(!t.isEnd||!i.length)return;var a={},n=this.ecModel;this._brushController.updateCovers([]);var o=new Rp(Y1(this.model),n,{include:["grid"]});o.matchOutputRanges(i,n,function(u,f,p){if(p.type==="cartesian2d"){var c=u.brushType;c==="rect"?(s("x",p,f[0]),s("y",p,f[1])):s({lineX:"x",lineY:"y"}[c],p,f)}}),GN(n,a),this._dispatchZoomAction(a);function s(u,f,p){var c=f.getAxis(u),h=c.model,v=l(u,h,n),d=v.findRepresentativeAxisProxy(h).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(p=Zr(0,p.slice(),c.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),v&&(a[v.id]={dataZoomId:v.id,startValue:p[0],endValue:p[1]})}function l(u,f,p){var c;return p.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var v=h.getAxisModel(u,f.componentIndex);v&&(c=h)}),c}},e.prototype._dispatchZoomAction=function(t){var i=[];W1(t,function(a,n){i.push(J(a))}),i.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:i})},e.getDefaultOption=function(t){var i={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return i},e}(He),Q9={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(HN(this.ecModel))}};function Y1(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function $9(r,e){r.setIconStatus("back",YN(e)>1?"emphasis":"normal")}function tX(r,e,t,i,a){var n=t._isZoomActive;i&&i.type==="takeGlobalCursor"&&(n=i.key==="dataZoomSelect"?i.dataZoomSelectActive:!1),t._isZoomActive=n,r.setIconStatus("zoom",n?"emphasis":"normal");var o=new Rp(Y1(r),e,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(n&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}PA("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var i=e.getModel(t),a=[],n=Y1(i),o=Sn(r,n);W1(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),W1(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var p=l.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:j9+u+p};c[f]=p,a.push(c)}return a});var ez=J9;function Z1(r){r.registerComponentModel(PN),r.registerComponentView(ON),oo("saveAsImage",NN),oo("magicType",UN),oo("dataView",VN),oo("dataZoom",ez),oo("restore",XN),_t(IN)}var eX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(mt),rz=eX;function em(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function iz(r){if(bt.domSupported){for(var e=document.documentElement.style,t=0,i=r.length;t-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,p=o+a,c=p*Math.abs(Math.cos(f))+p*Math.abs(Math.sin(f)),h=Math.round(((c-Math.SQRT2*a)/2+Math.SQRT2*a-(c-p)/2)*100)/100;s+=";"+n+":-"+h+"px";var v=e+" solid "+a+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+i+";"];return'
'}function oX(r,e){var t="cubic-bezier(0.23,1,0.32,1)",i=" "+r/2+"s "+t,a="opacity"+i+",visibility"+i;return e||(i=" "+r+"s "+t,a+=bt.transformSupported?","+K1+i:",left"+i+",top"+i),rX+":"+a}function oz(r,e,t){var i=r.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!bt.transformSupported)return t?"top:"+a+";left:"+i+";":[["top",a],["left",i]];var n=bt.transform3dSupported,o="translate"+(n?"3d":"")+"("+i+","+a+(n?",0":"")+")";return t?"top:0;left:0;"+K1+":"+o+";":[["top",0],["left",0],[X1,o]]}function sX(r){var e=[],t=r.get("fontSize"),i=r.getTextColor();i&&e.push("color:"+i),e.push("font:"+r.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var a=r.get("textShadowColor"),n=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return a&&n&&e.push("text-shadow:"+o+"px "+s+"px "+n+"px "+a),w(["decoration","align"],function(l){var u=r.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function lX(r,e,t){var i=[],a=r.get("transitionDuration"),n=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),p=Fh(r,"html"),c=l+"px "+u+"px "+o+"px "+s;return i.push("box-shadow:"+c),e&&a&&i.push(oX(a,t)),n&&i.push("background-color:"+n),w(["width","color","radius"],function(h){var v="border-"+h,d=_l(v),m=r.get(d);m!=null&&i.push(v+":"+m+(h==="color"?"":"px"))}),i.push(sX(f)),p!=null&&i.push("padding:"+ri(p).join("px ")+"px"),i.join(";")+";"}function sz(r,e,t,i,a){var n=e&&e.painter;if(t){var o=n&&n.getViewportRoot();o&&tw(r,o,document.body,i,a)}else{r[0]=i,r[1]=a;var s=n&&n.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var uX=function(){function r(e,t,i){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,bt.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=t.getZr(),o=this._appendToBody=i&&i.appendToBody;sz(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(a):e.appendChild(a),this._container=e;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,f=n.painter.getViewportRoot();Dr(f,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){var t=this._container,i=nz(t,"position"),a=t.style;a.position!=="absolute"&&i!=="absolute"&&(a.position="relative");var n=e.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,a=i.style,n=this._styleCoord;i.innerHTML?a.cssText=iX+lX(e,!this._firstShow,this._longHide)+oz(n[0],n[1],!0)+("border-color:"+Yi(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,i,a,n){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(B(n)&&i.get("trigger")==="item"&&!em(i)&&(s=nX(i,a,n)),B(e))o.innerHTML=e+s;else if(e){o.innerHTML="",z(e)||(e=[e]);for(var l=0;l=0?this._tryShow(n,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,i=this._ecModel,a=this._api,n=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&n!=="none"&&n!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(t,i,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,i,a,n){if(!(n.from===this.uid||bt.node||!a.getDom())){var o=cz(n,a);this._ticket="";var s=n.dataByCoordSys,l=mX(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=pX;f.x=n.x,f.y=n.y,f.update(),et(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(t,i,a,n))return;var p=Ep(n,i),c=p.point[0],h=p.point[1];c!=null&&h!=null&&this._tryShow({offsetX:c,offsetY:h,target:p.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(t,i,a,n){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,n.from!==this.uid&&this._hide(cz(n,a))},e.prototype._manuallyAxisShowTip=function(t,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(),p=Op([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(p.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:n.position}),!0}}},e.prototype._tryShow=function(t,i){var a=t.target,n=this._tooltipModel;if(n){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(a){this._lastDataByCoordSys=null;var s,l;qi(a,function(u){if(et(u).dataIndex!=null)return s=u,!0;if(et(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(t,s,i):l?this._showComponentItemTooltip(t,l,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},e.prototype._showOrMove=function(t,i){var a=t.get("showDelay");i=W(i,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(i,a):i()},e.prototype._showAxisTooltip=function(t,i){var a=this._ecModel,n=this._tooltipModel,o=[i.offsetX,i.offsetY],s=Op([i.tooltipOption],n),l=this._renderMode,u=[],f=$t("section",{blocks:[],noHeader:!0}),p=[],c=new Gh;w(t,function(y){w(y.dataByAxis,function(x){var _=a.getComponent(x.axisDim+"Axis",x.axisIndex),b=x.value;if(!(!_||b==null)){var S=S1(b,_.axis,a,x.seriesDataIndices,x.valueLabelOpt),T=$t("section",{header:S,noHeader:!Ie(S),sortBlocks:!0,blocks:[]});f.blocks.push(T),w(x.seriesDataIndices,function(C){var A=a.getSeriesByIndex(C.seriesIndex),D=C.dataIndexInside,M=A.getDataParams(D);if(!(M.dataIndex<0)){M.axisDim=x.axisDim,M.axisIndex=x.axisIndex,M.axisType=x.axisType,M.axisId=x.axisId,M.axisValue=Qf(_.axis,{value:b}),M.axisValueLabel=S,M.marker=c.makeTooltipMarker("item",Yi(M.color),l);var L=Jy(A.formatTooltip(D,!0,null)),I=L.frag;if(I){var P=Op([A],n).get("valueFormatter");T.blocks.push(P?N({valueFormatter:P},I):I)}L.text&&p.push(L.text),u.push(M)}})}})}),f.blocks.reverse(),p.reverse();var h=i.position,v=s.get("order"),d=a0(f,c,l,v,a.get("useUTC"),s.get("textStyle"));d&&p.unshift(d);var m=l==="richText"?` - -`:"
",g=p.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,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,c)})},e.prototype._showSeriesItemTooltip=function(t,i,a){var n=this._ecModel,o=et(i),s=o.seriesIndex,l=n.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,p=o.dataType,c=u.getData(p),h=this._renderMode,v=t.positionDefault,d=Op([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),m=d.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(f,p),y=new Gh;g.marker=y.makeTooltipMarker("item",Yi(g.color),h);var x=Jy(u.formatTooltip(f,!1,p)),_=d.get("order"),b=d.get("valueFormatter"),S=x.frag,T=S?a0(b?N({valueFormatter:b},S):S,y,h,_,n.get("useUTC"),d.get("textStyle")):x.text,C="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,T,g,C,t.offsetX,t.offsetY,t.position,t.target,y)}),a({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,i,a){var n=et(i),o=n.tooltipConfig,s=o.option||{};if(B(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(n.componentMainType,n.componentIndex);f&&u.push(f),u.push({formatter:s.content});var p=t.positionDefault,c=Op(u,this._tooltipModel,p?{position:p}:null),h=c.get("content"),v=Math.random()+"",d=new Gh;this._showOrMove(c,function(){var m=J(c.get("formatterParams")||{});this._showTooltipContent(c,h,m,v,t.offsetX,t.offsetY,t.position,i,d)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,i,a,n,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var p=this._tooltipContent;p.setEnterable(t.get("enterable"));var c=t.get("formatter");l=l||t.get("position");var h=i,v=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor")),d=v.color;if(c)if(B(c)){var m=t.ecModel.get("useUTC"),g=z(a)?a[0]:a,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=c,y&&(h=Ka(g.axisValue,h,m)),h=Sl(h,a,!0)}else if(Z(c)){var x=W(function(_,b){_===this._ticket&&(p.setContent(b,f,t,d,l),this._updatePosition(t,l,o,s,p,a,u))},this);this._ticket=n,h=c(a,n,x)}else h=c;p.setContent(h,f,t,d,l),p.show(t,d),this._updatePosition(t,l,o,s,p,a,u)}},e.prototype._getNearestPoint=function(t,i,a,n){if(a==="axis"||z(i))return{color:n||(this._renderMode==="html"?"#fff":"none")};if(!z(i))return{color:n||i.color||i.borderColor}},e.prototype._updatePosition=function(t,i,a,n,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||t.get("position");var p=o.getSize(),c=t.get("align"),h=t.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),Z(i)&&(i=i([a,n],s,o.el,v,{viewSize:[u,f],contentSize:p.slice()})),z(i))a=H(i[0],u),n=H(i[1],f);else if(K(i)){var d=i;d.width=p[0],d.height=p[1];var m=Gt(d,{width:u,height:f});a=m.x,n=m.y,c=null,h=null}else if(B(i)&&l){var g=dX(i,v,p,t.get("borderWidth"));a=g[0],n=g[1]}else{var g=hX(a,n,o,u,f,c?null:20,h?null:20);a=g[0],n=g[1]}if(c&&(a-=hz(c)?p[0]/2:c==="right"?p[0]:0),h&&(n-=hz(h)?p[1]/2:h==="bottom"?p[1]:0),em(t)){var g=vX(a,n,o,u,f);a=g[0],n=g[1]}o.moveTo(a,n)},e.prototype._updateContentNotChangedOnAxis=function(t,i){var a=this._lastDataByCoordSys,n=this._cbParamsList,o=!!a&&a.length===t.length;return o&&w(a,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},p=f.dataByAxis||[];o=o&&u.length===p.length,o&&w(u,function(c,h){var v=p[h]||{},d=c.seriesDataIndices||[],m=v.seriesDataIndices||[];o=o&&c.value===v.value&&c.axisType===v.axisType&&c.axisId===v.axisId&&d.length===m.length,o&&w(d,function(g,y){var x=m[y];o=o&&g.seriesIndex===x.seriesIndex&&g.dataIndex===x.dataIndex}),n&&w(c.seriesDataIndices,function(g){var y=g.seriesIndex,x=i[y],_=n[y];x&&_&&_.data!==x.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=i,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,i){bt.node||!i.getDom()||($a(this,"_updatePosition"),this._tooltipContent.dispose(),Ip("itemTooltip",i))},e.type="tooltip",e}(Et);function Op(r,e,t){var i=e.ecModel,a;t?(a=new Mt(t,i,i),a=new Mt(e.option,a,i)):a=e;for(var n=r.length-1;n>=0;n--){var o=r[n];o&&(o instanceof Mt&&(o=o.get("tooltip",!0)),B(o)&&(o={formatter:o}),o&&(a=new Mt(o,a,i)))}return a}function cz(r,e){return r.dispatchAction||W(e.dispatchAction,e)}function hX(r,e,t,i,a,n,o){var s=t.getSize(),l=s[0],u=s[1];return n!=null&&(r+l+n+2>i?r-=l+n:r+=n),o!=null&&(e+u+o>a?e-=u+o:e+=o),[r,e]}function vX(r,e,t,i,a){var n=t.getSize(),o=n[0],s=n[1];return r=Math.min(r+o,i)-o,e=Math.min(e+s,a)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function dX(r,e,t,i){var a=t[0],n=t[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,f=e.height;switch(r){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 hz(r){return r==="center"||r==="middle"}function mX(r,e,t){var i=ju(r).queryOptionMap,a=i.keys()[0];if(!(!a||a==="series")){var n=bn(e,a,i.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=n.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=et(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}var vz=cX;function j1(r){_t(aa),r.registerComponentModel(rz),r.registerComponentView(vz),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},qt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},qt)}var gX=["rect","polygon","keep","clear"];function J1(r,e){var t=Ot(r?r.brush:[]);if(t.length){var i=[];w(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(i=i.concat(u))});var a=r&&r.toolbox;z(a)&&(a=a[0]),a||(a={feature:{}},r.toolbox=[a]);var n=a.feature||(a.feature={}),o=n.brush||(n.brush={}),s=o.type||(o.type=[]);s.push.apply(s,i),yX(s),e&&!s.length&&s.push.apply(s,gX)}}function yX(r){var e={};w(r,function(t){e[t]=1}),r.length=0,w(e,function(t,i){r.push(i)})}var dz=w;function mz(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function Np(r,e,t){var i={};return dz(e,function(n){var o=i[n]=a();dz(r[n],function(s,l){if(ve.isValidType(l)){var u={type:l,visual:s};t&&t(u,n),o[l]=new ve(u),l==="opacity"&&(u=J(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new ve(u))}})}),i;function a(){var n=function(){};n.prototype.__hidden=n.prototype;var o=new n;return o}}function rm(r,e,t){var i;w(t,function(a){e.hasOwnProperty(a)&&mz(e[a])&&(i=!0)}),i&&w(t,function(a){e.hasOwnProperty(a)&&mz(e[a])?r[a]=J(e[a]):delete r[a]})}function gz(r,e,t,i,a,n){var o={};w(r,function(p){var c=ve.prepareVisualTypes(e[p]);o[p]=c});var s;function l(p){return Nf(t,s,p)}function u(p,c){p0(t,s,p,c)}n==null?t.each(f):t.each([n],f);function f(p,c){s=n==null?p:c;var h=t.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var v=i.call(a,p),d=e[v],m=o[v],g=0,y=m.length;ge[0][1]&&(e[0][1]=n[0]),n[1]e[1][1]&&(e[1][1]=n[1])}return e&&Tz(e)}};function Tz(r){return new rt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var wX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){this.ecModel=t,this.api=i,this.model,(this._brushController=new au(i.getZr())).on("brush",W(this._onBrush,this)).mount()},e.prototype.render=function(t,i,a,n){this.model=t,this._updateController(t,i,a,n)},e.prototype.updateTransform=function(t,i,a,n){tb(i),this._updateController(t,i,a,n)},e.prototype.updateVisual=function(t,i,a,n){this.updateTransform(t,i,a,n)},e.prototype.updateView=function(t,i,a,n){this._updateController(t,i,a,n)},e.prototype._updateController=function(t,i,a,n){(!n||n.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(a)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var i=this.model.id,a=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:J(a),$from:i}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:i,areas:J(a),$from:i})},e.type="brush",e}(Et),Cz=wX;var TX="#ddd",CX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,i){var a=this.option;!i&&rm(a,t,["inBrush","outOfBrush"]);var n=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:TX},n.hasOwnProperty("liftZ")||(n.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=k(t,function(i){return Az(this.option,i)},this))},e.prototype.setBrushOption=function(t){this.brushOption=Az(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(mt);function Az(r,e){return nt({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Mt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}var Dz=CX;var AX=["rect","polygon","lineX","lineY","keep","clear"],DX=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,i,a){var n,o,s;i.eachComponent({mainType:"brush"},function(l){n=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=n,this._brushMode=o,w(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===n)?"emphasis":"normal")})},e.prototype.updateView=function(t,i,a){this.render(t,i,a)},e.prototype.getIcons=function(){var t=this.model,i=t.get("icon",!0),a={};return w(t.get("type",!0),function(n){i[n]&&(a[n]=i[n])}),a},e.prototype.onclick=function(t,i,a){var n=this._brushType,o=this._brushMode;a==="clear"?(i.dispatchAction({type:"axisAreaSelect",intervals:[]}),i.dispatchAction({type:"brush",command:"clear",areas:[]})):i.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?n:n===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var i={show:!0,type:AX.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return i},e}(He),Mz=DX;function rb(r){r.registerComponentView(Cz),r.registerComponentModel(Dz),r.registerPreprocessor(J1),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,eb),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(i){i.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},qt),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},qt),oo("brush",Mz)}var MX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(mt),LX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){if(this.group.removeAll(),!!t.get("show")){var n=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=lt(t.get("textBaseline"),t.get("textVerticalAlign")),f=new dt({style:Ut(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),p=f.getBoundingRect(),c=t.get("subtext"),h=new dt({style:Ut(s,{text:c,fill:s.getTextColor(),y:p.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=t.get("link"),d=t.get("sublink"),m=t.get("triggerEvent",!0);f.silent=!v&&!m,h.silent=!d&&!m,v&&f.on("click",function(){os(v,"_"+t.get("target"))}),d&&h.on("click",function(){os(d,"_"+t.get("subtarget"))}),et(f).eventData=et(h).eventData=m?{componentType:"title",componentIndex:t.componentIndex}:null,n.add(f),c&&n.add(h);var g=n.getBoundingRect(),y=t.getBoxLayoutParams();y.width=g.width,y.height=g.height;var x=Gt(y,{width:a.getWidth(),height:a.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),n.x=x.x,n.y=x.y,n.markRedraw();var _={align:l,verticalAlign:u};f.setStyle(_),h.setStyle(_),g=n.getBoundingRect();var b=x.margin,S=t.getItemStyle(["color","opacity"]);S.fill=t.get("backgroundColor");var T=new pt({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g.height+b[0]+b[2],r:t.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});n.add(T)}},e.type="title",e}(Et);function ib(r){r.registerComponentModel(MX),r.registerComponentView(LX)}var IX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,i,a){this.mergeDefaultAndTheme(t,a),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var i=this._data.count();this.option.loop?t=(t%i+i)%i:(t>=i&&(t=i-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,i=t.data||[],a=t.axisType,n=this._names=[],o;a==="category"?(o=[],w(i,function(u,f){var p=ie(Bi(u),""),c;K(u)?(c=J(u),c.value=f):c=f,o.push(c),n.push(p)})):o=i;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new se([{name:"value",type:s}],this);l.initData(o,n)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(mt),ab=IX;var Lz=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=nr(ab.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(ab);Wt(Lz,Dl.prototype);var Iz=Lz;var EX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(Et),Ez=EX;var PX=function(r){E(e,r);function e(t,i,a,n){var o=r.call(this,t,i,a)||this;return o.type=n||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(Ge),Pz=PX;var nb=Math.PI,Rz=ot(),RX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){this.api=i},e.prototype.render=function(t,i,a){if(this.model=t,this.api=a,this.ecModel=i,this.group.removeAll(),t.get("show",!0)){var n=this._layout(t,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(n,t);t.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return $t("nameValue",{noName:!0,value:f})},w(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](n,o,l,t)},this),this._renderAxisLabel(n,s,l,t),this._position(n,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,i){var a=t.get(["label","position"]),n=t.get("orient"),o=NX(t,i),s;a==null||a==="auto"?s=n==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:nb/2},p=n==="vertical"?o.height:o.width,c=t.getModel("controlStyle"),h=c.get("show",!0),v=h?c.get("itemSize"):0,d=h?c.get("itemGap"):0,m=v+d,g=t.get(["label","rotate"])||0;g=g*nb/180;var y,x,_,b=c.get("position",!0),S=h&&c.get("showPlayBtn",!0),T=h&&c.get("showPrevBtn",!0),C=h&&c.get("showNextBtn",!0),A=0,D=p;b==="left"||b==="bottom"?(S&&(y=[0,0],A+=m),T&&(x=[A,0],A+=m),C&&(_=[D-v,0],D-=m)):(S&&(y=[D-v,0],D-=m),T&&(x=[0,0],A+=m),C&&(_=[D-v,0],D-=m));var M=[A,D];return t.get("inverse")&&M.reverse(),{viewRect:o,mainLength:p,orient:n,rotation:f[n],labelRotation:g,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[n],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[n],playPosition:y,prevBtnPosition:x,nextBtnPosition:_,axisExtent:M,controlSize:v,controlGap:d}},e.prototype._position=function(t,i){var a=this._mainGroup,n=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=xe(),l=o.x,u=o.y+o.height;Ye(s,s,[-l,-u]),pr(s,s,-nb/2),Ye(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=y(o),p=y(a.getBoundingRect()),c=y(n.getBoundingRect()),h=[a.x,a.y],v=[n.x,n.y];v[0]=h[0]=f[0][0];var d=t.labelPosOpt;if(d==null||B(d)){var m=d==="+"?0:1;x(h,p,f,1,m),x(v,c,f,1,1-m)}else{var m=d>=0?0:1;x(h,p,f,1,m),v[1]=h[1]+d}a.setPosition(h),n.setPosition(v),a.rotation=n.rotation=t.rotation,g(a),g(n);function g(_){_.originX=f[0][0]-_.x,_.originY=f[1][0]-_.y}function y(_){return[[_.x,_.x+_.width],[_.y,_.y+_.height]]}function x(_,b,S,T,C){_[T]+=S[T][C]-b[T][C]}},e.prototype._createAxis=function(t,i){var a=i.getData(),n=i.get("axisType"),o=OX(i,n);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new Pz("value",o,t.axisExtent,n);return l.model=i,l},e.prototype._createGroup=function(t){var i=this[t]=new j;return this.group.add(i),i},e.prototype._renderAxisLine=function(t,i,a,n){var o=a.getExtent();if(n.get(["lineStyle","show"])){var s=new re({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:N({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});i.add(s);var l=this._progressLine=new re({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:X({lineCap:"round",lineWidth:s.style.lineWidth},n.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});i.add(l)}},e.prototype._renderAxisTick=function(t,i,a,n){var o=this,s=n.getData(),l=a.scale.getTicks();this._tickSymbols=[],w(l,function(u){var f=a.dataToCoord(u.value),p=s.getItemModel(u.value),c=p.getModel("itemStyle"),h=p.getModel(["emphasis","itemStyle"]),v=p.getModel(["progress","itemStyle"]),d={x:f,y:0,onclick:W(o._changeTimeline,o,u.value)},m=Oz(p,c,i,d);m.ensureState("emphasis").style=h.getItemStyle(),m.ensureState("progress").style=v.getItemStyle(),gi(m);var g=et(m);p.get("tooltip")?(g.dataIndex=u.value,g.dataModel=n):g.dataIndex=g.dataModel=null,o._tickSymbols.push(m)})},e.prototype._renderAxisLabel=function(t,i,a,n){var o=this,s=a.getLabelModel();if(s.get("show")){var l=n.getData(),u=a.getViewLabels();this._tickLabels=[],w(u,function(f){var p=f.tickValue,c=l.getItemModel(p),h=c.getModel("label"),v=c.getModel(["emphasis","label"]),d=c.getModel(["progress","label"]),m=a.dataToCoord(f.tickValue),g=new dt({x:m,y:0,rotation:t.labelRotation-t.rotation,onclick:W(o._changeTimeline,o,p),silent:!1,style:Ut(h,{text:f.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});g.ensureState("emphasis").style=Ut(v),g.ensureState("progress").style=Ut(d),i.add(g),gi(g),Rz(g).dataIndex=p,o._tickLabels.push(g)})}},e.prototype._renderControl=function(t,i,a,n){var o=t.controlSize,s=t.rotation,l=n.getModel("controlStyle").getItemStyle(),u=n.getModel(["emphasis","controlStyle"]).getItemStyle(),f=n.getPlayState(),p=n.get("inverse",!0);c(t.nextBtnPosition,"next",W(this._changeTimeline,this,p?"-":"+")),c(t.prevBtnPosition,"prev",W(this._changeTimeline,this,p?"+":"-")),c(t.playPosition,f?"stop":"play",W(this._handlePlayClick,this,!f),!0);function c(h,v,d,m){if(h){var g=qe(lt(n.get(["controlStyle",v+"BtnSize"]),o),o),y=[0,-g/2,g,g],x=zX(n,v+"Icon",y,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:d});x.ensureState("emphasis").style=u,i.add(x),gi(x)}}},e.prototype._renderCurrentPointer=function(t,i,a,n){var o=n.getData(),s=n.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(p){p.draggable=!0,p.drift=W(u._handlePointerDrag,u),p.ondragend=W(u._handlePointerDragend,u),Nz(p,u._progressLine,s,a,n,!0)},onUpdate:function(p){Nz(p,u._progressLine,s,a,n)}};this._currentPointer=Oz(l,l,this._mainGroup,{},this._currentPointer,f)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,i,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,i){var a=this._toAxisCoord(t)[0],n=this._axis,o=_e(n.getExtent().slice());a>o[1]&&(a=o[1]),a=0&&(o[n]=+o[n].toFixed(c)),[o,p]}var lb={min:tt(om,"min"),max:tt(om,"max"),average:tt(om,"average"),median:tt(om,"median")};function lo(r,e){if(e){var t=r.getData(),i=r.coordinateSystem,a=i&&i.dimensions;if(!VX(e)&&!z(e.coord)&&z(a)){var n=fb(e,t,i,r);if(e=J(e),e.type&&lb[e.type]&&n.baseAxis&&n.valueAxis){var o=it(a,n.baseAxis.dim),s=it(a,n.valueAxis.dim),l=lb[e.type](t,n.baseDataDim,n.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!z(a))e.coord=[];else for(var u=e.coord,f=0;f<2;f++)lb[u[f]]&&(u[f]=lm(t,t.mapDimension(a[f]),u[f]));return e}}function fb(r,e,t,i){var a={};return r.valueIndex!=null||r.valueDim!=null?(a.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,a.valueAxis=t.getAxis(BX(i,a.valueDataDim)),a.baseAxis=t.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=i.getBaseAxis(),a.valueAxis=t.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function BX(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function uo(r,e){return r&&r.containData&&e.coord&&!ub(e)?r.containData(e.coord):!0}function Fz(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!ub(e)&&!ub(t)?r.containZone(e.coord,t.coord):!0}function sm(r,e){return r?function(t,i,a,n){var o=n<2?t.coord&&t.coord[n]:t.value;return wi(o,e[n])}:function(t,i,a,n){return wi(t.value,e[n])}}function lm(r,e,t){if(t==="average"){var i=0,a=0;return r.each(e,function(n,o){isNaN(n)||(i+=n,a++)}),i/a}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var cb=ot(),FX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=Y()},e.prototype.render=function(t,i,a){var n=this,o=this.markerGroupMap;o.each(function(s){cb(s).keep=!1}),i.eachSeries(function(s){var l=wr.getMarkerModelFromSeries(s,n.type);l&&n.renderSeries(s,l,i,a)}),o.each(function(s){!cb(s).keep&&n.group.remove(s.group)})},e.prototype.markKeep=function(t){cb(t).keep=!0},e.prototype.toggleBlurSeries=function(t,i){var a=this;w(t,function(n){var o=wr.getMarkerModelFromSeries(n,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(i?Xc(l):of(l))})}})},e.type="marker",e}(Et),mu=FX;function Gz(r,e,t){var i=e.coordinateSystem;r.each(function(a){var n=r.getItemModel(a),o,s=H(n.get("x"),t.getWidth()),l=H(n.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(r.getValues(r.dimensions,a));else if(i){var u=r.get(i.dimensions[0],a),f=r.get(i.dimensions[1],a);o=i.dataToPoint([u,f])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(a,o)})}var GX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,a){i.eachSeries(function(n){var o=wr.getMarkerModelFromSeries(n,"markPoint");o&&(Gz(o.getData(),n,a),this.markerGroupMap.get(n.id).updateLayout())},this)},e.prototype.renderSeries=function(t,i,a,n){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new wa),p=HX(o,t,i);i.setData(p),Gz(i.getData(),t,n),p.each(function(c){var h=p.getItemModel(c),v=h.getShallow("symbol"),d=h.getShallow("symbolSize"),m=h.getShallow("symbolRotate"),g=h.getShallow("symbolOffset"),y=h.getShallow("symbolKeepAspect");if(Z(v)||Z(d)||Z(m)||Z(g)){var x=i.getRawValue(c),_=i.getDataParams(c);Z(v)&&(v=v(x,_)),Z(d)&&(d=d(x,_)),Z(m)&&(m=m(x,_)),Z(g)&&(g=g(x,_))}var b=h.getModel("itemStyle").getItemStyle(),S=ya(l,"color");b.fill||(b.fill=S),p.setItemVisual(c,{symbol:v,symbolSize:d,symbolRotate:m,symbolOffset:g,symbolKeepAspect:y,style:b})}),f.updateData(p),this.group.add(f.group),p.eachItemGraphicEl(function(c){c.traverse(function(h){et(h).dataModel=i})}),this.markKeep(f),f.group.silent=i.get("silent")||t.get("silent")},e.type="markPoint",e}(mu);function HX(r,e,t){var i;r?i=k(r&&r.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return N(N({},l),{name:s,ordinalMeta:null})}):i=[{name:"value",type:"float"}];var a=new se(i,t),n=k(t.get("data"),tt(lo,e));r&&(n=wt(n,tt(uo,r)));var o=sm(!!r,i);return a.initData(n,null,o),a}var Hz=GX;function hb(r){r.registerComponentModel(Bz),r.registerComponentView(Hz),r.registerPreprocessor(function(e){Os(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var WX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,i,a){return new e(t,i,a)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(wr),Wz=WX;var um=ot(),YX=function(r,e,t,i){var a=r.getData(),n;if(z(i))n=i;else{var o=i.type;if(o==="min"||o==="max"||o==="average"||o==="median"||i.xAxis!=null||i.yAxis!=null){var s=void 0,l=void 0;if(i.yAxis!=null||i.xAxis!=null)s=e.getAxis(i.yAxis!=null?"y":"x"),l=Jt(i.yAxis,i.xAxis);else{var u=fb(i,a,e,r);s=u.valueAxis;var f=Ol(a,u.valueDataDim);l=lm(a,f,o)}var p=s.dim==="x"?0:1,c=1-p,h=J(i),v={coord:[]};h.type=null,h.coord=[],h.coord[c]=-1/0,v.coord[c]=1/0;var d=t.get("precision");d>=0&&vt(l)&&(l=+l.toFixed(Math.min(d,20))),h.coord[p]=v.coord[p]=l,n=[h,v,{type:o,valueIndex:i.valueIndex,value:l}]}else n=[]}var m=[lo(r,n[0]),lo(r,n[1]),N({},n[2])];return m[2].type=m[2].type||null,nt(m[2],m[0]),nt(m[2],m[1]),m};function fm(r){return!isNaN(r)&&!isFinite(r)}function Yz(r,e,t,i){var a=1-r,n=i.dimensions[r];return fm(e[a])&&fm(t[a])&&e[r]===t[r]&&i.getAxis(n).containData(e[r])}function ZX(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,i=e[1].coord;if(t&&i&&(Yz(1,t,i,r)||Yz(0,t,i,r)))return!0}return uo(r,e[0])&&uo(r,e[1])}function vb(r,e,t,i,a){var n=i.coordinateSystem,o=r.getItemModel(e),s,l=H(o.get("x"),a.getWidth()),u=H(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(i.getMarkerPosition)s=i.getMarkerPosition(r.getValues(r.dimensions,e));else{var f=n.dimensions,p=r.get(f[0],e),c=r.get(f[1],e);s=n.dataToPoint([p,c])}if(Ii(n,"cartesian2d")){var h=n.getAxis("x"),v=n.getAxis("y"),f=n.dimensions;fm(r.get(f[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[t?0:1]):fm(r.get(f[1],e))&&(s[1]=v.toGlobalCoord(v.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var XX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,a){i.eachSeries(function(n){var o=wr.getMarkerModelFromSeries(n,"markLine");if(o){var s=o.getData(),l=um(o).from,u=um(o).to;l.each(function(f){vb(l,f,!0,n,a),vb(u,f,!1,n,a)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(n.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,i,a,n){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new $l);this.group.add(f.group);var p=qX(o,t,i),c=p.from,h=p.to,v=p.line;um(i).from=c,um(i).to=h,i.setData(v);var d=i.get("symbol"),m=i.get("symbolSize"),g=i.get("symbolRotate"),y=i.get("symbolOffset");z(d)||(d=[d,d]),z(m)||(m=[m,m]),z(g)||(g=[g,g]),z(y)||(y=[y,y]),p.from.each(function(_){x(c,_,!0),x(h,_,!1)}),v.each(function(_){var b=v.getItemModel(_).getModel("lineStyle").getLineStyle();v.setItemLayout(_,[c.getItemLayout(_),h.getItemLayout(_)]),b.stroke==null&&(b.stroke=c.getItemVisual(_,"style").fill),v.setItemVisual(_,{fromSymbolKeepAspect:c.getItemVisual(_,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(_,"symbolOffset"),fromSymbolRotate:c.getItemVisual(_,"symbolRotate"),fromSymbolSize:c.getItemVisual(_,"symbolSize"),fromSymbol:c.getItemVisual(_,"symbol"),toSymbolKeepAspect:h.getItemVisual(_,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(_,"symbolOffset"),toSymbolRotate:h.getItemVisual(_,"symbolRotate"),toSymbolSize:h.getItemVisual(_,"symbolSize"),toSymbol:h.getItemVisual(_,"symbol"),style:b})}),f.updateData(v),p.line.eachItemGraphicEl(function(_){et(_).dataModel=i,_.traverse(function(b){et(b).dataModel=i})});function x(_,b,S){var T=_.getItemModel(b);vb(_,b,S,t,n);var C=T.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=ya(l,"color")),_.setItemVisual(b,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:lt(T.get("symbolOffset",!0),y[S?0:1]),symbolRotate:lt(T.get("symbolRotate",!0),g[S?0:1]),symbolSize:lt(T.get("symbolSize"),m[S?0:1]),symbol:lt(T.get("symbol",!0),d[S?0:1]),style:C})}this.markKeep(f),f.group.silent=i.get("silent")||t.get("silent")},e.type="markLine",e}(mu);function qX(r,e,t){var i;r?i=k(r&&r.dimensions,function(u){var f=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return N(N({},f),{name:u,ordinalMeta:null})}):i=[{name:"value",type:"float"}];var a=new se(i,t),n=new se(i,t),o=new se([],t),s=k(t.get("data"),tt(YX,e,r,t));r&&(s=wt(s,tt(ZX,r)));var l=sm(!!r,i);return a.initData(k(s,function(u){return u[0]}),null,l),n.initData(k(s,function(u){return u[1]}),null,l),o.initData(k(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:n,line:o}}var Zz=XX;function db(r){r.registerComponentModel(Wz),r.registerComponentView(Zz),r.registerPreprocessor(function(e){Os(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var KX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,i,a){return new e(t,i,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(wr),Xz=KX;var pm=ot(),jX=function(r,e,t,i){var a=i[0],n=i[1];if(!(!a||!n)){var o=lo(r,a),s=lo(r,n),l=o.coord,u=s.coord;l[0]=Jt(l[0],-1/0),l[1]=Jt(l[1],-1/0),u[0]=Jt(u[0],1/0),u[1]=Jt(u[1],1/0);var f=ho([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function cm(r){return!isNaN(r)&&!isFinite(r)}function qz(r,e,t,i){var a=1-r;return cm(e[a])&&cm(t[a])}function JX(r,e){var t=e.coord[0],i=e.coord[1],a={coord:t,x:e.x0,y:e.y0},n={coord:i,x:e.x1,y:e.y1};return Ii(r,"cartesian2d")?t&&i&&(qz(1,t,i,r)||qz(0,t,i,r))?!0:Fz(r,a,n):uo(r,a)||uo(r,n)}function Kz(r,e,t,i,a){var n=i.coordinateSystem,o=r.getItemModel(e),s,l=H(o.get(t[0]),a.getWidth()),u=H(o.get(t[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(i.getMarkerPosition){var f=r.getValues(["x0","y0"],e),p=r.getValues(["x1","y1"],e),c=n.clampData(f),h=n.clampData(p),v=[];t[0]==="x0"?v[0]=c[0]>h[0]?p[0]:f[0]:v[0]=c[0]>h[0]?f[0]:p[0],t[1]==="y0"?v[1]=c[1]>h[1]?p[1]:f[1]:v[1]=c[1]>h[1]?f[1]:p[1],s=i.getMarkerPosition(v,t,!0)}else{var d=r.get(t[0],e),m=r.get(t[1],e),g=[d,m];n.clampData&&n.clampData(g,g),s=n.dataToPoint(g,!0)}if(Ii(n,"cartesian2d")){var y=n.getAxis("x"),x=n.getAxis("y"),d=r.get(t[0],e),m=r.get(t[1],e);cm(d)?s[0]=y.toGlobalCoord(y.getExtent()[t[0]==="x0"?0:1]):cm(m)&&(s[1]=x.toGlobalCoord(x.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var jz=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],QX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,a){i.eachSeries(function(n){var o=wr.getMarkerModelFromSeries(n,"markArea");if(o){var s=o.getData();s.each(function(l){var u=k(jz,function(p){return Kz(s,l,p,n,a)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,i,a,n){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new j});this.group.add(f.group),this.markKeep(f);var p=$X(o,t,i);i.setData(p),p.each(function(c){var h=k(jz,function(C){return Kz(p,c,C,t,n)}),v=o.getAxis("x").scale,d=o.getAxis("y").scale,m=v.getExtent(),g=d.getExtent(),y=[v.parse(p.get("x0",c)),v.parse(p.get("x1",c))],x=[d.parse(p.get("y0",c)),d.parse(p.get("y1",c))];_e(y),_e(x);var _=!(m[0]>y[1]||m[1]x[1]||g[1]=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(mt),kp=eq;var gu=tt,gb=w,hm=j,rq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new hm),this.group.add(this._selectorGroup=new hm),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,i,a){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,i,a,l,s,u);var f=t.getBoxLayoutParams(),p={width:a.getWidth(),height:a.getHeight()},c=t.get("padding"),h=Gt(f,p,c),v=this.layoutInner(t,o,h,n,l,u),d=Gt(X({width:v.width,height:v.height},f),p,c);this.group.x=d.x-v.x,this.group.y=d.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Qd(v,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,i,a,n,o,s,l){var u=this.getContentGroup(),f=Y(),p=i.get("selectedMode"),c=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&c.push(h.id)}),gb(i.getData(),function(h,v){var d=h.get("name");if(!this.newlineDisabled&&(d===""||d===` -`)){var m=new hm;m.newline=!0,u.add(m);return}var g=a.getSeriesByName(d)[0];if(!f.get(d))if(g){var y=g.getData(),x=y.getVisual("legendLineStyle")||{},_=y.getVisual("legendIcon"),b=y.getVisual("style"),S=this._createItem(g,d,v,h,i,t,x,b,_,p,n);S.on("click",gu(Qz,d,null,n,c)).on("mouseover",gu(yb,g.name,null,n,c)).on("mouseout",gu(xb,g.name,null,n,c)),f.set(d,!0)}else a.eachRawSeries(function(T){if(!f.get(d)&&T.legendVisualProvider){var C=T.legendVisualProvider;if(!C.containName(d))return;var A=C.indexOfName(d),D=C.getItemVisual(A,"style"),M=C.getItemVisual(A,"legendIcon"),L=Re(D.fill);L&&L[3]===0&&(L[3]=.2,D=N(N({},D),{fill:Lr(L,"rgba")}));var I=this._createItem(T,d,v,h,i,t,{},D,M,p,n);I.on("click",gu(Qz,null,d,n,c)).on("mouseover",gu(yb,null,d,n,c)).on("mouseout",gu(xb,null,d,n,c)),f.set(d,!0)}},this)},this),o&&this._createSelector(o,i,n,s,l)},e.prototype._createSelector=function(t,i,a,n,o){var s=this.getSelectorGroup();gb(t,function(u){var f=u.type,p=new dt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(p);var c=i.getModel("selectorLabel"),h=i.getModel(["emphasis","selectorLabel"]);jt(p,{normal:c,emphasis:h},{defaultText:u.title}),gi(p)})},e.prototype._createItem=function(t,i,a,n,o,s,l,u,f,p,c){var h=t.visualDrawType,v=o.get("itemWidth"),d=o.get("itemHeight"),m=o.isSelected(i),g=n.get("symbolRotate"),y=n.get("symbolKeepAspect"),x=n.get("icon");f=x||f||"roundRect";var _=iq(f,n,l,u,h,m,c),b=new hm,S=n.getModel("textStyle");if(Z(t.getLegendIcon)&&(!x||x==="inherit"))b.add(t.getLegendIcon({itemWidth:v,itemHeight:d,icon:f,iconRotate:g,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:y}));else{var T=x==="inherit"&&t.getData().getVisual("symbol")?g==="inherit"?t.getData().getVisual("symbolRotate"):g:0;b.add(aq({itemWidth:v,itemHeight:d,icon:f,iconRotate:T,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:y}))}var C=s==="left"?v+5:-5,A=s,D=o.get("formatter"),M=i;B(D)&&D?M=D.replace("{name}",i??""):Z(D)&&(M=D(i));var L=m?S.getTextColor():n.get("inactiveColor");b.add(new dt({style:Ut(S,{text:M,x:C,y:d/2,fill:L,align:A,verticalAlign:"middle"},{inheritColor:L})}));var I=new pt({shape:b.getBoundingRect(),invisible:!0}),P=n.getModel("tooltip");return P.get("show")&&Wi({el:I,componentModel:o,itemName:i,itemTooltipOption:P.option}),b.add(I),b.eachChild(function(R){R.silent=!0}),I.silent=!p,this.getContentGroup().add(b),gi(b),b.__legendDataIndex=a,b},e.prototype.layoutInner=function(t,i,a,n,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Zi(t.get("orient"),l,t.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),p=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Zi("horizontal",u,t.get("selectorItemGap",!0));var c=u.getBoundingRect(),h=[-c.x,-c.y],v=t.get("selectorButtonGap",!0),d=t.getOrient().index,m=d===0?"width":"height",g=d===0?"height":"width",y=d===0?"y":"x";s==="end"?h[d]+=f[m]+v:p[d]+=c[m]+v,h[1-d]+=f[g]/2-c[g]/2,u.x=h[0],u.y=h[1],l.x=p[0],l.y=p[1];var x={x:0,y:0};return x[m]=f[m]+v+c[m],x[g]=Math.max(f[g],c[g]),x[y]=Math.min(0,c[y]+h[1-d]),x}else return l.x=p[0],l.y=p[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Et);function iq(r,e,t,i,a,n,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),gb(m,function(y,x){m[x]==="inherit"&&(m[x]=g[x])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",p=l.getShallow("decal");u.decal=!p||p==="inherit"?i.decal:ji(p,o),u.fill==="inherit"&&(u.fill=i[a]),u.stroke==="inherit"&&(u.stroke=i[f]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?i:t).opacity),s(u,i);var c=e.getModel("lineStyle"),h=c.getLineStyle();if(s(h,t),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),h.stroke==="auto"&&(h.stroke=i.fill),!n){var v=e.get("inactiveBorderWidth"),d=u[f];u.lineWidth=v==="auto"?i.lineWidth>0&&d?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=c.get("inactiveColor"),h.lineWidth=c.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function aq(r){var e=r.icon||"roundRect",t=Ht(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function Qz(r,e,t,i){xb(r,e,t,i),t.dispatchAction({type:"legendToggleSelect",name:r??e}),yb(r,e,t,i)}function $z(r){for(var e=r.getZr().storage.getDisplayList(),t,i=0,a=e.length;ia[o],m=[-h.x,-h.y];i||(m[n]=f[u]);var g=[0,0],y=[-v.x,-v.y],x=lt(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var _=t.get("pageButtonPosition",!0);_==="end"?y[n]+=a[o]-v[o]:g[n]+=v[o]+x}y[1-n]+=h[s]/2-v[s]/2,f.setPosition(m),p.setPosition(g),c.setPosition(y);var b={x:0,y:0};if(b[o]=d?a[o]:h[o],b[s]=Math.max(h[s],v[s]),b[l]=Math.min(0,v[l]+y[1-n]),p.__rectSize=a[o],d){var S={x:0,y:0};S[o]=Math.max(a[o]-v[o]-x,0),S[s]=b[s],p.setClipPath(new pt({shape:S})),p.__rectSize=S[o]}else c.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(t);return T.pageIndex!=null&>(f,{x:T.contentPosition[0],y:T.contentPosition[1]},d?t:null),this._updatePageInfoView(t,T),b},e.prototype._pageGo=function(t,i,a){var n=this._getPageInfo(i)[t];n!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:i.id})},e.prototype._updatePageInfoView=function(t,i){var a=this._controllerGroup;w(["pagePrev","pageNext"],function(f){var p=f+"DataIndex",c=i[p]!=null,h=a.childOfName(f);h&&(h.setStyle("fill",c?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),h.cursor=c?"pointer":"default")});var n=a.childOfName("pageText"),o=t.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;n&&o&&n.setStyle("text",B(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var i=t.get("scrollDataIndex",!0),a=this.getContentGroup(),n=this._containerGroup.__rectSize,o=t.getOrient().index,s=Sb[o],l=bb[o],u=this._findTargetItemIndex(i),f=a.children(),p=f[u],c=f.length,h=c?1:0,v={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!p)return v;var d=_(p);v.contentPosition[o]=-d.s;for(var m=u+1,g=d,y=d,x=null;m<=c;++m)x=_(f[m]),(!x&&y.e>g.s+n||x&&!b(x,g.s))&&(y.i>g.i?g=y:g=x,g&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=g.i),++v.pageCount)),y=x;for(var m=u-1,g=d,y=d,x=null;m>=-1;--m)x=_(f[m]),(!x||!b(y,x.s))&&g.i=T&&S.s<=T+n}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var i,a=this.getContentGroup(),n;return a.eachChild(function(o,s){var l=o.__legendDataIndex;n==null&&l!=null&&(n=s),l===t&&(i=s)}),i??n},e.type="legend.scroll",e}(vm),ak=oq;function wb(r){r.registerAction("legendScroll","legendscroll",function(e,t){var i=e.scrollDataIndex;i!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(i)})})}function nk(r){_t(dm),r.registerComponentModel(rk),r.registerComponentView(ak),wb(r)}function Tb(r){_t(dm),_t(nk)}var sq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=nr(no.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(no),ok=sq;var Cb=ot();function sk(r,e,t){Cb(r).coordSysRecordMap.each(function(i){var a=i.dataZoomInfoMap.get(e.uid);a&&(a.getRange=t)})}function lk(r,e){for(var t=Cb(r).coordSysRecordMap,i=t.keys(),a=0;ai[t+e]&&(e=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function fk(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var i=Cb(t),a=i.coordSysRecordMap||(i.coordSysRecordMap=Y());a.each(function(n){n.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(n){var o=jd(n);w(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,lq(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=Y());f.set(n.uid,{dzReferCoordSysInfo:s,model:n,getRange:null})})}),a.each(function(n){var o=n.controller,s,l=n.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){uk(a,n);return}var f=pq(l);o.enable(f.controlType,f.opt),o.setPointerChecker(n.containsPoint),Ti(n,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var hq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,i,a){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),sk(a,t,{pan:W(Ab.pan,this),zoom:W(Ab.zoom,this),scrollMove:W(Ab.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){lk(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(hu),Ab={zoom:function(r,e,t,i){var a=this.range,n=a.slice(),o=r.axisModels[0];if(o){var s=Db[e](null,[i.originX,i.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(n[1]-n[0])+n[0],u=Math.max(1/i.scale,0);n[0]=(n[0]-l)*u+l,n[1]=(n[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Zr(0,n,[0,100],0,f.minSpan,f.maxSpan),this.range=n,a[0]!==n[0]||a[1]!==n[1])return n}},pan:pk(function(r,e,t,i,a,n){var o=Db[i]([n.oldX,n.oldY],[n.newX,n.newY],e,a,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:pk(function(r,e,t,i,a,n){var o=Db[i]([0,0],[n.scrollDelta,n.scrollDelta],e,a,t);return o.signal*(r[1]-r[0])*n.scrollDelta})};function pk(r){return function(e,t,i,a){var n=this.range,o=n.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,i,a);if(Zr(l,o,[0,100],"all"),this.range=o,n[0]!==o[0]||n[1]!==o[1])return o}}}var Db={grid:function(r,e,t,i,a){var n=t.axis,o={},s=a.model.coordinateSystem.getRect();return r=r||[0,0],n.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=n.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=n.inverse?-1:1),o},polar:function(r,e,t,i,a){var n=t.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=n.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=n.inverse?-1:1),o},singleAxis:function(r,e,t,i,a){var n=t.axis,o=a.model.coordinateSystem.getRect(),s={};return r=r||[0,0],n.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=n.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=n.inverse?-1:1),s}},ck=hq;function Vp(r){Ps(r),r.registerComponentModel(ok),r.registerComponentView(ck),fk(r)}var vq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=nr(no.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(no),hk=vq;var Bp=pt,vk=7,dq=1,Mb=30,mq=7,Fp="horizontal",dk="vertical",gq=5,yq=["line","bar","candlestick","scatter"],xq={easing:"cubicOut",duration:100,delay:0},_q=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,i){this.api=i,this._onBrush=W(this._onBrush,this),this._onBrushEnd=W(this._onBrushEnd,this)},e.prototype.render=function(t,i,a,n){if(r.prototype.render.apply(this,arguments),Ti(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!n||n.type!=="dataZoom"||n.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){$a(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var i=this._displayables.sliderGroup=new j;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(i),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,i=this.api,a=t.get("brushSelect"),n=a?mq:0,o=this._findCoordRect(),s={width:i.getWidth(),height:i.getHeight()},l=this._orient===Fp?{right:s.width-o.x-o.width,top:s.height-Mb-vk-n,width:o.width,height:Mb}:{right:vk,top:o.y,width:Mb,height:o.height},u=Si(t.option);w(["right","top","width","height"],function(p){u[p]==="ph"&&(u[p]=l[p])});var f=Gt(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===dk&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,i=this._location,a=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),o=n&&n.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===Fp&&!o?{scaleY:l?1:-1,scaleX:1}:a===Fp&&o?{scaleY:l?1:-1,scaleX:-1}:a===dk&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=i.x-u.x,t.y=i.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,i=this._size,a=this._displayables.sliderGroup,n=t.get("brushSelect");a.add(new Bp({silent:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new Bp({shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:"transparent"},z2:0,onclick:W(this._onClickPanel,this)}),s=this.api.getZr();n?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var i=this._size,a=this._shadowSize||[],n=t.series,o=n.getRawData(),s=n.getShadowDim&&n.getShadowDim(),l=s&&o.getDimensionInfo(s)?n.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||i[0]!==a[0]||i[1]!==a[1]){var p=o.getDataExtent(l),c=(p[1]-p[0])*.3;p=[p[0]-c,p[1]+c];var h=[0,i[1]],v=[0,i[0]],d=[[i[0],0],[0,0]],m=[],g=v[1]/(o.count()-1),y=0,x=Math.round(o.count()/i[0]),_;o.each([l],function(A,D){if(x>0&&D%x){y+=g;return}var M=A==null||isNaN(A)||A==="",L=M?0:zt(A,p,h,!0);M&&!_&&D?(d.push([d[d.length-1][0],0]),m.push([m[m.length-1][0],0])):!M&&_&&(d.push([y,0]),m.push([y,0])),d.push([y,L]),m.push([y,L]),y+=g,_=M}),u=this._shadowPolygonPts=d,f=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[i[0],i[1]];var b=this.dataZoomModel;function S(A){var D=b.getModel(A?"selectedDataBackground":"dataBackground"),M=new j,L=new oe({shape:{points:u},segmentIgnoreThreshold:1,style:D.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new ae({shape:{points:f},segmentIgnoreThreshold:1,style:D.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(L),M.add(I),M}for(var T=0;T<3;T++){var C=S(T===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,i=t.get("showDataShadow");if(i!==!1){var a,n=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();w(l,function(u){if(!a&&!(i!==!0&&it(yq,u.get("type"))<0)){var f=n.getComponent(zi(o),s).axis,p=Sq(o),c,h=u.coordinateSystem;p!=null&&h.getOtherAxis&&(c=h.getOtherAxis(f).inverse),p=u.getData().mapDimension(p),a={thisAxis:f,series:u,thisDim:o,otherDim:p,otherAxisInverse:c}}},this)},this),a}},e.prototype._renderHandle=function(){var t=this.group,i=this._displayables,a=i.handles=[null,null],n=i.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,p=l.get("brushSelect"),c=i.filler=new Bp({silent:p,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(c),o.add(new Bp({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:dq,fill:"rgba(0,0,0,0)"}})),w([0,1],function(x){var _=l.get("handleIcon");!zf[_]&&_.indexOf("path://")<0&&_.indexOf("image://")<0&&(_="path://"+_);var b=Ht(_,-1,0,2,2,null,!0);b.attr({cursor:mk(this._orient),draggable:!0,drift:W(this._onDragMove,this,x),ondragend:W(this._onDragEnd,this),onmouseover:W(this._showDataInfo,this,!0),onmouseout:W(this._showDataInfo,this,!1),z2:5});var S=b.getBoundingRect(),T=l.get("handleSize");this._handleHeight=H(T,this._size[1]),this._handleWidth=S.width/S.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),gi(b);var C=l.get("handleColor");C!=null&&(b.style.fill=C),o.add(a[x]=b);var A=l.getModel("textStyle");t.add(n[x]=new dt({silent:!0,invisible:!0,style:Ut(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var h=c;if(p){var v=H(l.get("moveHandleSize"),s[1]),d=i.moveHandle=new pt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),m=v*.8,g=i.moveHandleIcon=Ht(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);g.silent=!0,g.y=s[1]+v/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(v,10));h=i.moveZone=new pt({invisible:!0,shape:{y:s[1]-y,height:v+y}}),h.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(g),o.add(h)}h.attr({draggable:!0,cursor:mk(this._orient),drift:W(this._onDragMove,this,"all"),ondragstart:W(this._showDataInfo,this,!0),ondragend:W(this._onDragEnd,this),onmouseover:W(this._showDataInfo,this,!0),onmouseout:W(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),i=this._getViewExtent();this._handleEnds=[zt(t[0],[0,100],i,!0),zt(t[1],[0,100],i,!0)]},e.prototype._updateInterval=function(t,i){var a=this.dataZoomModel,n=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Zr(i,n,o,a.get("zoomLock")?"all":t,s.minSpan!=null?zt(s.minSpan,l,o,!0):null,s.maxSpan!=null?zt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=_e([zt(n[0],o,l,!0),zt(n[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var i=this._displayables,a=this._handleEnds,n=_e(a.slice()),o=this._size;w([0,1],function(h){var v=i.handles[h],d=this._handleHeight;v.attr({scaleX:d/2,scaleY:d/2,x:a[h]+(h?-1:1),y:o[1]/2-d/2})},this),i.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:o[1]});var s={x:n[0],width:n[1]-n[0]};i.moveHandle&&(i.moveHandle.setShape(s),i.moveZone.setShape(s),i.moveZone.getBoundingRect(),i.moveHandleIcon&&i.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=i.dataShadowSegs,u=[0,n[0],n[1],o[0]],f=0;fi[0]||a[1]<0||a[1]>i[1])){var n=this._handleEnds,o=(n[0]+n[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var i=t.offsetX,a=t.offsetY;this._brushStart=new St(i,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var i=this._displayables.brushRect;if(this._brushing=!1,!!i){i.attr("ignore",!0);var a=i.shape,n=+new Date;if(!(n-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=_e([zt(a.x,o,s,!0),zt(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Mr(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,i){var a=this._displayables,n=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new Bp({silent:!0,style:n.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,i),f=l.transformCoordToLocal(s.x,s.y),p=this._size;u[0]=Math.max(Math.min(p[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:p[1]})},e.prototype._dispatchZoomAction=function(t){var i=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?xq:null,start:i[0],end:i[1]})},e.prototype._findCoordRect=function(){var t,i=jd(this.dataZoomModel).infoList;if(!t&&i.length){var a=i[0].model.coordinateSystem;t=a.getRect&&a.getRect()}if(!t){var n=this.api.getWidth(),o=this.api.getHeight();t={x:n*.2,y:o*.2,width:n*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(hu);function Sq(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function mk(r){return r==="vertical"?"ns-resize":"ew-resize"}var gk=_q;function Gp(r){r.registerComponentModel(hk),r.registerComponentView(gk),Ps(r)}function Lb(r){_t(Vp),_t(Gp)}var bq={get:function(r,e,t){var i=J((wq[r]||{})[e]);return t&&z(i)?i[i.length-1]:i}},wq={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},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]}},mm=bq;var yk=ve.mapVisual,Tq=ve.eachVisual,Cq=z,xk=w,Aq=_e,Dq=zt,Mq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,i,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,i){var a=this.option;!i&&rm(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var i=this.stateList;t=W(t,this),this.controllerVisuals=Np(this.option.controller,i,t),this.targetVisuals=Np(this.option.target,i,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,i=[];return t==null||t==="all"?this.ecModel.eachSeries(function(a,n){i.push(n)}):i=Ot(t),i},e.prototype.eachTargetSeries=function(t,i){w(this.getTargetSeriesIndices(),function(a){var n=this.ecModel.getSeriesByIndex(a);n&&t.call(i,n)},this)},e.prototype.isTargetSeries=function(t){var i=!1;return this.eachTargetSeries(function(a){a===t&&(i=!0)}),i},e.prototype.formatValueText=function(t,i,a){var n=this.option,o=n.precision,s=this.dataBound,l=n.formatter,u;a=a||["<",">"],z(t)&&(t=t.slice(),u=!0);var f=i?t:u?[p(t[0]),p(t[1])]:p(t);if(B(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(Z(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?a[0]+" "+f[1]:t[1]===s[1]?a[1]+" "+f[0]:f[0]+" - "+f[1];return f;function p(c){return c===s[0]?"min":c===s[1]?"max":(+c).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,i=Aq([t.min,t.max]);this._dataExtent=i},e.prototype.getDataDimensionIndex=function(t){var i=this.option.dimension;if(i!=null)return t.getDimensionIndex(i);for(var a=t.dimensions,n=a.length-1;n>=0;n--){var o=a[n],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,i=this.option,a={inRange:i.inRange,outOfRange:i.outOfRange},n=i.target||(i.target={}),o=i.controller||(i.controller={});nt(n,a),nt(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(p){Cq(i.color)&&!p.inRange&&(p.inRange={color:i.color.slice().reverse()}),p.inRange=p.inRange||{color:t.get("gradientColor")}}function u(p,c,h){var v=p[c],d=p[h];v&&!d&&(d=p[h]={},xk(v,function(m,g){if(ve.isValidType(g)){var y=mm.get(g,"inactive",s);y!=null&&(d[g]=y,g==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function f(p){var c=(p.inRange||{}).symbol||(p.outOfRange||{}).symbol,h=(p.inRange||{}).symbolSize||(p.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),d=this.getItemSymbol(),m=d||"roundRect";xk(this.stateList,function(g){var y=this.itemSize,x=p[g];x||(x=p[g]={color:s?v:[v]}),x.symbol==null&&(x.symbol=c&&J(c)||(s?m:[m])),x.symbolSize==null&&(x.symbolSize=h&&J(h)||(s?y[0]:[y[0],y[0]])),x.symbol=yk(x.symbol,function(S){return S==="none"?m:S});var _=x.symbolSize;if(_!=null){var b=-1/0;Tq(_,function(S){S>b&&(b=S)}),x.symbolSize=yk(_,function(S){return Dq(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(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(mt),yu=Mq;var _k=[20,140],Lq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,i){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=_k[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=_k[1])},e.prototype._resetRange=function(){var t=this.getExtent(),i=this.option.range;!i||i.auto?(t.auto=1,this.option.range=t):z(i)&&(i[0]>i[1]&&i.reverse(),i[0]=Math.max(i[0],t[0]),i[1]=Math.min(i[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),w(this.stateList,function(t){var i=this.option.controller[t].symbolSize;i&&i[0]!==i[1]&&(i[0]=i[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),i=_e((this.get("range")||[]).slice());return i[0]>t[1]&&(i[0]=t[1]),i[1]>t[1]&&(i[1]=t[1]),i[0]=a[1]||t<=i[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var i=[];return this.eachTargetSeries(function(a){var n=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&n.push(l)},this),i.push({seriesId:a.id,dataIndex:n})},this),i},e.prototype.getVisualMeta=function(t){var i=Sk(this,"outOfRange",this.getExtent()),a=Sk(this,"inRange",this.option.range.slice()),n=[];function o(h,v){n.push({value:h,color:t(h,v)})}for(var s=0,l=0,u=a.length,f=i.length;lt[1])break;n.push({color:this.getControllerVisual(l,"color",i),offset:s/a})}return n.push({color:this.getControllerVisual(t[1],"color",i),offset:1}),n},e.prototype._createBarPoints=function(t,i){var a=this.visualMapModel.itemSize;return[[a[0]-i[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-i[1],t[1]]]},e.prototype._createBarGroup=function(t){var i=this._orient,a=this.visualMapModel.get("inverse");return new j(i==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:i==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:i==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,i){if(this._useHandle){var a=this._shapes,n=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=n.itemSize,u=n.getExtent();Eq([0,1],function(f){var p=o[f];p.setStyle("fill",i.handlesColor[f]),p.y=t[f];var c=La(t[f],[0,l[1]],u,!0),h=this.getControllerVisual(c,"symbolSize");p.scaleX=p.scaleY=h/l[0],p.x=l[0]-h/2;var v=je(a.handleLabelPoints[f],ti(p,this.group));s[f].setStyle({x:v[0],y:v[1],text:n.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,i,a,n){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,p=f.indicator;if(p){p.attr("invisible",!1);var c={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",c),v=this.getControllerVisual(t,"symbolSize"),d=La(t,s,u,!0),m=l[0]-v/2,g={x:p.x,y:p.y};p.y=d,p.x=m;var y=je(f.indicatorLabelPoint,ti(p,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 T={x:m,y:d,style:{fill:h}},C={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};p.x=g.x,p.y=g.y,p.animateTo(T,A),x.animateTo(C,A)}else p.attr(T),x.attr(C);this._firstShowIndicator=!1;var D=this._shapes.handleLabels;if(D)for(var M=0;Mo[1]&&(p[1]=1/0),i&&(p[0]===-1/0?this._showIndicator(f,p[1],"< ",l):p[1]===1/0?this._showIndicator(f,p[0],"> ",l):this._showIndicator(f,f,"\u2248 ",l));var c=this._hoverLinkDataIndices,h=[];(i||Dk(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(p));var v=hT(c,h);this._dispatchHighDown("downplay",xu(v[0],a)),this._dispatchHighDown("highlight",xu(v[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var i;if(qi(t.target,function(l){var u=et(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 t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var i=this._shapes.handleLabels;if(i)for(var a=0;a=0&&(n.dimension=o,i.push(n))}}),r.getData().setVisual("visualMeta",i)}}];function zq(r,e,t,i){for(var a=e.targetVisuals[i],n=ve.prepareVisualTypes(a),o={color:ya(r.getData(),"color")},s=0,l=n.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(Ik,Ek),w(Pk,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(Eb))}function Wp(r){r.registerComponentModel(bk),r.registerComponentView(Lk),Hp(r)}var kq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,i){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Uq[this._mode].call(this,this._pieceList),this._resetSelected(t,i);var n=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=J(n)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=k(this._pieceList,function(l){return l=J(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,i={},a=ve.listVisualTypes(),n=this.isCategory();w(t.pieces,function(s){w(a,function(l){s.hasOwnProperty(l)&&(i[l]=1)})}),w(i,function(s,l){var u=!1;w(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&w(this.stateList,function(f){(t[f]||(t[f]={}))[l]=mm.get(l,f==="inRange"?"active":"inactive",n)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,i){var a=this.option,n=this._pieceList,o=(i?a:t).selected||{};if(a.selected=o,w(n,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),a.selectedMode==="single"){var s=!1;w(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(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=J(t)},e.prototype.getValueState=function(t){var i=ve.findPieceIndex(t,this._pieceList);return i!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[i])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){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=ve.findPieceIndex(l,a);f===t&&o.push(u)},this),i.push({seriesId:n.id,dataIndex:o})},this),i},e.prototype.getRepresentValue=function(t){var i;if(this.isCategory())i=t.value;else if(t.value!=null)i=t.value;else{var a=t.interval||[];i=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return i},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var i=[],a=["",""],n=this;function o(f,p){var c=n.getRepresentValue({interval:f});p||(p=n.getValueState(c));var h=t(c,p);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 w(s,function(f){var p=f.interval;p&&(p[0]>u&&o([u,p[0]],"outOfRange"),o(p.slice()),u=p[1])},this),{stops:i,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=nr(yu.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}(yu),Uq={splitNumber:function(r){var e=this.option,t=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(t)!==n&&t<5;)t++;e.precision=t,n=+n.toFixed(t),e.minOpen&&r.push({interval:[-1/0,i[0]],close:[0,0]});for(var o=0,s=i[0];o","\u2265"][i[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function Nk(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var zk=kq;var Vq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var i=this.visualMapModel,a=i.get("textGap"),n=i.textStyleModel,o=n.getFont(),s=n.getTextColor(),l=this._getItemAlign(),u=i.itemSize,f=this._getViewData(),p=f.endsText,c=Jt(i.get("showLabel",!0),!p);p&&this._renderEndsText(t,p[0],u,c,l),w(f.viewPieceList,function(h){var v=h.piece,d=new j;d.onclick=W(this._onItemClick,this,v),this._enableHoverLink(d,h.indexInModelPieceList);var m=i.getRepresentValue(v);if(this._createItemSymbol(d,m,[0,0,u[0],u[1]]),c){var g=this.visualMapModel.getValueState(m);d.add(new dt({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:v.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:g==="outOfRange"?.5:1}}))}t.add(d)},this),p&&this._renderEndsText(t,p[1],u,c,l),Zi(i.get("orient"),t,i.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,i){var a=this;t.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:xu(s.findTargetDataIndices(i),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,i=t.option;if(i.orient==="vertical")return ym(t,this.api,t.itemSize);var a=i.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,i,a,n,o){if(i){var s=new j,l=this.visualMapModel.textStyleModel;s.add(new dt({style:Ut(l,{x:n?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:n?o:"center",text:i})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,i=k(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=t.get("text"),n=t.get("orient"),o=t.get("inverse");return(n==="horizontal"?o:!o)?i.reverse():a&&(a=a.slice().reverse()),{viewPieceList:i,endsText:a}},e.prototype._createItemSymbol=function(t,i,a){t.add(Ht(this.getControllerVisual(i,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(i,"color")))},e.prototype._onItemClick=function(t){var i=this.visualMapModel,a=i.option,n=a.selectedMode;if(n){var o=J(a.selected),s=i.getSelectedMapKey(t);n==="single"||n===!0?(o[s]=!0,w(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}(gm),kk=Vq;function Yp(r){r.registerComponentModel(zk),r.registerComponentView(kk),Hp(r)}function Pb(r){_t(Wp),_t(Yp)}var Bq={label:{enabled:!0},decal:{show:!1}},Uk=ot(),Fq={};function Rb(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var i=J(Bq);nt(i.label,r.getLocaleModel().get("aria"),!1),nt(t.option,i,!1),a(),n();function a(){var u=t.getModel("decal"),f=u.get("show");if(f){var p=Y();r.eachSeries(function(c){if(!c.isColorBySeries()){var h=p.get(c.type);h||(h={},p.set(c.type,h)),Uk(c).scope=h}}),r.eachRawSeries(function(c){if(r.isSeriesFiltered(c))return;if(Z(c.enableAriaDecal)){c.enableAriaDecal();return}var h=c.getData();if(c.isColorBySeries()){var y=Tf(c.ecModel,c.name,Fq,r.getSeriesCount()),x=h.getVisual("decal");h.setVisual("decal",_(x,y))}else{var v=c.getRawData(),d={},m=Uk(c).scope;h.each(function(b){var S=h.getRawIndex(b);d[S]=b});var g=v.count();v.each(function(b){var S=d[b],T=v.getName(b)||b+"",C=Tf(c.ecModel,T,m,g),A=h.getItemVisual(S,"decal");h.setItemVisual(S,"decal",_(A,C))})}function _(b,S){var T=b?N(N({},S),b):S;return T.dirty=!0,T}})}}function n(){var u=r.getLocaleModel().get("aria"),f=t.getModel("label");if(f.option=X(f.option,u),!!f.get("enabled")){var p=e.getZr().dom;if(f.get("description")){p.setAttribute("aria-label",f.get("description"));return}var c=r.getSeriesCount(),h=f.get(["data","maxCount"])||10,v=f.get(["series","maxCount"])||10,d=Math.min(c,v),m;if(!(c<1)){var g=s();if(g){var y=f.get(["general","withTitle"]);m=o(y,{title:g})}else m=f.get(["general","withoutTitle"]);var x=[],_=c>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);m+=o(_,{seriesCount:c}),r.eachSeries(function(C,A){if(A1?f.get(["series","multiple",L]):f.get(["series","single",L]),D=o(D,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var I=C.getData();if(I.count()>h){var P=f.get(["data","partialData"]);D+=o(P,{displayCnt:h})}else D+=f.get(["data","allData"]);for(var R=f.get(["data","separator","middle"]),O=f.get(["data","separator","end"]),V=[],U=0;U":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Gq=function(){function r(e){var t=this._condVal=B(e)?new RegExp(e):Om(e)?e:null;if(t==null){var i="";Bt(i)}}return r.prototype.evaluate=function(e){var t=typeof e;return B(t)?this._condVal.test(e):vt(t)?this._condVal.test(e+""):!1},r}(),Hq=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),Wq=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&i.push(a),a=[I,P]}function f(I,P,R,O){Su(I,R)&&Su(P,O)||a.push(I,P,R,O,R,O)}function p(I,P,R,O,V,U){var F=Math.abs(P-I),q=Math.tan(F/4)*4/3,$=PC:M2&&i.push(a),i}function Vb(r,e,t,i,a,n,o,s,l,u){if(Su(r,t)&&Su(e,i)&&Su(a,o)&&Su(n,s)){l.push(o,s);return}var f=2/u,p=f*f,c=o-r,h=s-e,v=Math.sqrt(c*c+h*h);c/=v,h/=v;var d=t-r,m=i-e,g=a-o,y=n-s,x=d*d+m*m,_=g*g+y*y;if(x=0&&C=0){l.push(o,s);return}var A=[],D=[];ci(r,t,a,o,.5,A),ci(e,i,n,s,.5,D),Vb(A[0],D[0],A[1],D[1],A[2],D[2],A[3],D[3],l,u),Vb(A[4],D[4],A[5],D[5],A[6],D[6],A[7],D[7],l,u)}function Yk(r,e){var t=xm(r),i=[];e=e||1;for(var a=0;a0)for(var u=0;uMath.abs(u),p=Kk([l,u],f?0:1,e),c=(f?s:u)/p.length,h=0;ha,o=Kk([i,a],n?0:1,e),s=n?"width":"height",l=n?"height":"width",u=n?"x":"y",f=n?"y":"x",p=r[s]/o.length,c=0;c1?null:new St(d*l+r,d*u+e)}function eK(r,e,t){var i=new St;St.sub(i,t,e),i.normalize();var a=new St;St.sub(a,r,e);var n=a.dot(i);return n}function bu(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function rK(r,e,t){for(var i=r.length,a=[],n=0;no?(u.x=f.x=s+n/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+n),rK(e,u,f)}function _m(r,e,t,i){if(t===1)i.push(e);else{var a=Math.floor(t/2),n=r(e);_m(r,n[0],a,i),_m(r,n[1],t-a,i)}return i}function iK(r,e){for(var t=[],i=0;i0)for(var b=i/t,S=-i/2;S<=i/2;S+=b){for(var T=Math.sin(S),C=Math.cos(S),A=0,x=0;x0;u/=2){var f=0,p=0;(r&u)>0&&(f=1),(e&u)>0&&(p=1),s+=u*u*(3*f^p),p===0&&(f===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function bm(r){var e=1/0,t=1/0,i=-1/0,a=-1/0,n=k(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),p=l.y+l.height/2+(u?u[5]:0);return e=Math.min(f,e),t=Math.min(p,t),i=Math.max(f,i),a=Math.max(p,a),[f,p]}),o=k(n,function(s,l){return{cp:s,z:pK(s[0],s[1],e,t,i,a),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function rU(r){return jk(r.path,r.count)}function Bb(){return{fromIndividuals:[],toIndividuals:[],count:0}}function iU(r,e,t){var i=[];function a(b){for(var S=0;S=0;a--)if(!t[a].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var n=l.length,u=Math.ceil(n/2);t[a].many=l.slice(u,n),t[s].many=l.slice(0,u),s++}return t}var cK={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),i=0;i0))return;var s=i.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;nU(r)&&(u=r,f=e),nU(e)&&(u=e,f=r);function p(g,y,x,_,b){var S=g.many,T=g.one;if(S.length===1&&!b){var C=y?S[0]:T,A=y?T:S[0];if(Xp(C))p({many:[C],one:A},!0,x,_,!0);else{var D=s?X({delay:s(x,_)},l):l;wm(C,A,D),n(C,A,C,A,D)}}else for(var M=X({dividePath:cK[t],individualDelay:s&&function(V,U,F,q){return s(V+x,_)}},l),L=y?iU(S,T,M):aU(T,S,M),I=L.fromIndividuals,P=L.toIndividuals,R=I.length,O=0;Oe.length,h=u?oU(f,u):oU(c?e:r,[c?r:e]),v=0,d=0;dpU))for(var a=i.getIndices(),n=vK(i),o=0;o0&&_.group.traverse(function(S){S instanceof at&&!S.animators.length&&S.animateFrom({style:{opacity:0}},b)})})}function lU(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function uU(r){return z(r)?r.sort().join(","):r}function po(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function gK(r,e){var t=Y(),i=Y(),a=Y();w(r.oldSeries,function(o,s){var l=r.oldDataGroupIds[s],u=r.oldData[s],f=lU(o),p=uU(f);i.set(p,{dataGroupId:l,data:u}),z(f)&&w(f,function(c){a.set(c,{key:p,dataGroupId:l,data:u})})});function n(o){t.get(o)&&nT("Duplicated seriesKey in universalTransition "+o)}return w(e.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),u=lU(o),f=uU(u),p=i.get(f);if(p)t.set(f,{oldSeries:[{dataGroupId:p.dataGroupId,divide:po(p.data),data:p.data}],newSeries:[{dataGroupId:s,divide:po(l),data:l}]});else if(z(u)){var c=[];w(u,function(d){var m=i.get(d);m.data&&c.push({dataGroupId:m.dataGroupId,divide:po(m.data),data:m.data})}),c.length&&t.set(f,{oldSeries:c,newSeries:[{dataGroupId:s,data:l,divide:po(l)}]})}else{var h=a.get(u);if(h){var v=t.get(h.key);v||(v={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:po(h.data)}],newSeries:[]},t.set(h.key,v)),v.newSeries.push({dataGroupId:s,data:l,divide:po(l)})}}}}),t}function fU(r,e){for(var t=0;t=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:po(e.oldData[s]),dim:o.dimension})}),w(Ot(r.to),function(o){var s=fU(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();n.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:po(l),dim:o.dimension})}}),a.length>0&&n.length>0&&cU(a,n,i)}function Hb(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,i){w(Ot(i.seriesTransition),function(a){w(Ot(a.to),function(n){for(var o=i.updatedSeries,s=0;s{let e=class e{constructor(){this.title=""}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=u({type:e,selectors:[["header"]],inputs:{title:"title"},standalone:!0,features:[M],decls:17,vars:1,consts:[[1,"color-medium","header-blurred","w-full","pointer-events-none"],[1,"container","mx-auto","flex","justify-between"],[1,"flex","items-center","pl-0","md:pl-3","py-1","mx-3","md:mx-4","pointer-events-auto"],["routerLink","",1,"logo-container","hoverable-feature","mr-3"],["size","1.5rem","logoClasses","bg-gradient-feature","title","Home"],[1,"bg-gradient-feature-short","clip-text","select-none"],[1,"flex","items-center","pr-0","md:pr-3","py-1","mx-2","md:mx-3","pointer-events-auto"],["href","https://github.com/naschorr","target","_blank","title","My GitHub",1,"nav-container","inline-block","m-2"],[1,"bg-gradient-medium","github-mask","maskable","nav-item"],[1,"bg-gradient-light","github-filled-mask","maskable","nav-item","hoverable"],["routerLink","/projects","title","Projects",1,"nav-container","inline-block","m-2"],[1,"bg-gradient-medium","flask-mask","maskable","nav-item"],[1,"bg-gradient-light","flask-filled-mask","maskable","nav-item","hoverable"],["href","https://www.printables.com/@naschorr_134538","target","_blank","title","3D Printing",1,"nav-container","inline-block","m-2"],[1,"bg-gradient-medium","printer-mask","maskable","nav-item"],[1,"bg-gradient-light","printer-filled-mask","maskable","nav-item","hoverable"]],template:function(n,r){n&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3),d(4,"logo",4),s(),o(5,"h1",5),h(6),s()(),o(7,"div",6)(8,"a",7),d(9,"div",8)(10,"div",9),s(),o(11,"a",10),d(12,"div",11)(13,"div",12),s(),o(14,"a",13),d(15,"div",14)(16,"div",15),s()()()()),n&2&&(m(6),R(r.title))},dependencies:[j,oe,re,se],styles:["[_nghost-%COMP%]{position:sticky;top:0;z-index:100}.header-blurred[_ngcontent-%COMP%]{background:#1d222a;background:linear-gradient(45deg,#1d222a,#0f263f);border-image-source:linear-gradient(90deg,rgb(247,148,30),rgb(242,86,33));border-left:0;border-right:0;border-top:0;border-width:2px;border-image-slice:1}@supports (backdrop-filter: blur()){.header-blurred[_ngcontent-%COMP%]{background:#1d222a80;background:linear-gradient(45deg,#1d222a80,#0f263f33);-webkit-backdrop-filter:blur(.5rem);backdrop-filter:blur(.5rem)}}.logo-container[_ngcontent-%COMP%]{border-radius:50%;transition:box-shadow .25s ease-in-out}.logo-container.hoverable-feature[_ngcontent-%COMP%]:hover{box-shadow:0 0 1rem #f7941e}.logo-container.hoverable-dark[_ngcontent-%COMP%]:hover{box-shadow:0 0 1rem #1d222a}.logo-container.hoverable-medium[_ngcontent-%COMP%]:hover{box-shadow:0 0 1rem #d4c5b7}.logo-container.hoverable-light[_ngcontent-%COMP%]:hover{box-shadow:0 0 1rem #f8f8f8}.icon[_ngcontent-%COMP%]{filter:brightness(0) saturate(100%) invert(83%) sepia(9%) saturate(394%) hue-rotate(348deg) brightness(96%) contrast(90%)}"]});let t=e;return t})();var xe=["thumbnailImage"],be=["fullResImage"],Ie=(t,e)=>({height:t,width:e}),ye=t=>({opacity:t});function Ce(t,e){if(t&1){let a=k();o(0,"img",5,1),f("load",function(){S(a);let n=p();return P(n.onFullResImageLoaded())}),s()}if(t&2){let a=p();l("ngStyle",H(3,ye,a.isFullResImageLoaded?1:0))("src",a.image.fullResUrl,y)("alt",a.image.altText)}}var ce=(()=>{let e=class e{constructor(i){this._changeDetectorRef=i,this._isFullResImageLoaded=!1,this._imageWidth=0,this._imageHeight=0,this.canLoadFullResImage=!1,this.fullResImageLoadedEvent=new K}ngAfterViewInit(){this.recalculateImageHeight()}set image(i){this._image=i,this._isFullResImageLoaded=!1}get image(){return this._image}get isFullResImageLoaded(){return this._isFullResImageLoaded}get imageWidth(){return this._imageWidth}get imageHeight(){return this._imageHeight}getActualHeightOfImagePixels(){let i=this.thumbnailImageView.nativeElement.offsetHeight,n=this.fullResImageView?.nativeElement?.offsetHeight??0;return Math.max(i,n)}recalculateImageHeight(){this._imageHeight=this.getActualHeightOfImagePixels(),this._imageWidth=this._imageHeight*this.image.aspectRatio,this._changeDetectorRef.detectChanges()}onWindowResize(){this.recalculateImageHeight()}onFullResImageLoaded(){this._isFullResImageLoaded=!0,this.fullResImageLoadedEvent.emit(),this.recalculateImageHeight()}};e.\u0275fac=function(n){return new(n||e)(_(A))},e.\u0275cmp=u({type:e,selectors:[["image-display"]],viewQuery:function(n,r){if(n&1&&(z(xe,5),z(be,5)),n&2){let c;Q(c=q())&&(r.thumbnailImageView=c.first),Q(c=q())&&(r.fullResImageView=c.first)}},inputs:{canLoadFullResImage:"canLoadFullResImage",image:"image"},outputs:{fullResImageLoadedEvent:"fullResImageLoadedEvent"},decls:4,vars:7,consts:[["thumbnailImage",""],["fullResImage",""],[1,"image-display-container","relative",3,"resize","ngStyle"],[1,"absolute","top-0","bottom-0","my-auto",3,"src","alt"],["class","absolute top-0 bottom-0 my-auto",3,"ngStyle","src","alt","load",4,"ngIf"],[1,"absolute","top-0","bottom-0","my-auto",3,"load","ngStyle","src","alt"]],template:function(n,r){if(n&1){let c=k();o(0,"div",2),f("resize",function(){return S(c),P(r.onWindowResize())},!1,Z),d(1,"img",3,0),g(3,Ce,2,5,"img",4),s()}n&2&&(l("ngStyle",F(4,Ie,r.imageHeight+"px",r.imageWidth>0?r.imageWidth+"px":"auto")),m(),l("src",r.image.thumbnailUrl,y)("alt",r.image.altText),m(2),l("ngIf",r.canLoadFullResImage))},dependencies:[E,U],styles:["img[_ngcontent-%COMP%]{transition:all .1s ease-in-out,opacity .5s ease-in-out}.image-display-container[_ngcontent-%COMP%]{width:100%}.image-display-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin:auto;object-fit:contain}"]});let t=e;return t})();function we(t,e){if(t&1&&d(0,"image-display",20),t&2){let a=p();l("image",a.prevImage)("canLoadFullResImage",a.isActiveImageLoaded)}}function Se(t,e){if(t&1){let a=k();o(0,"image-display",21),f("fullResImageLoadedEvent",function(){S(a);let n=p();return P(n.onActiveImageLoaded())}),s()}if(t&2){let a=p();l("image",a.activeImage)("canLoadFullResImage",!0)}}function Pe(t,e){if(t&1&&(v(0),o(1,"p",22),h(2),s(),x()),t&2){let a=e.$implicit;m(2),R(a)}}function ke(t,e){if(t&1&&d(0,"image-display",20),t&2){let a=p();l("image",a.nextImage)("canLoadFullResImage",a.isActiveImageLoaded)}}function Re(t,e){if(t&1&&d(0,"image-display",20),t&2){let a=p();l("image",a.prevImage)("canLoadFullResImage",a.isActiveImageLoaded)}}function Le(t,e){if(t&1&&d(0,"image-display",20),t&2){let a=p();l("image",a.nextImage)("canLoadFullResImage",a.isActiveImageLoaded)}}var ge=(()=>{let e=class e{constructor(i){this._galleryManagerService=i,this._isActiveImageLoaded=!1}ngOnInit(){this._galleryManagerService.activeImage$.subscribe(i=>{this._activeImage=i,this._isActiveImageLoaded=!1}),this._galleryManagerService.nextImage$.subscribe(i=>{this._nextImage=i}),this._galleryManagerService.prevImage$.subscribe(i=>{this._prevImage=i})}get activeImage(){return this._activeImage}get prevImage(){return this._prevImage}get nextImage(){return this._nextImage}get isActiveImageLoaded(){return this._isActiveImageLoaded}onCloseClick(){this._galleryManagerService.closeLightbox()}onNextImageClick(){this._galleryManagerService.nextImage()}onPrevImageClick(){this._galleryManagerService.prevImage()}onActiveImageLoaded(){this._isActiveImageLoaded=!0}};e.\u0275fac=function(n){return new(n||e)(_(O))},e.\u0275cmp=u({type:e,selectors:[["gallery-lightbox"]],decls:29,vars:6,consts:[[1,"lighbox-container","flex","flex-col"],[1,"close","grow-0","self-end","cursor-pointer",3,"click"],[1,"gallery-container","grow","flex","items-center"],["title","Previous Image",1,"prev-image","side-nav-image","cursor-pointer","relative","mr-3","hidden","lg:block",3,"click"],[3,"image","canLoadFullResImage",4,"ngIf"],[1,"text-panel","text-end","absolute","color-light","bottom-0","right-0","m-2","p-2"],[1,"hidden","xl:block"],[1,"block","xl:hidden"],[1,"active-image","flex","flex-col","grow","justify-center","mx-3"],[3,"image","canLoadFullResImage","fullResImageLoadedEvent",4,"ngIf"],[1,"description-container","color-light","container","mx-auto","mt-3","lg:mt-6"],[4,"ngFor","ngForOf"],["title","Next Image",1,"next-image","side-nav-image","cursor-pointer","relative","ml-3","hidden","lg:block",3,"click"],[1,"text-panel","absolute","color-light","bottom-0","left-0","m-2","p-2"],[1,"footer","grow-0","hidden","lg:block"],[1,"grow-0","flex","justify-between","lg:hidden","mt-6","mb-3","mx-3"],["title","Previous Image",1,"prev-image","relative","lower-nav-image","cursor-pointer","mr-3",3,"click"],[1,"text-panel","text-end","absolute","color-light","bottom-0","left-0","m-2","p-2"],["title","Next Image",1,"next-image","relative","lower-nav-image","float-right","cursor-pointer","ml-3",3,"click"],[1,"text-panel","absolute","color-light","bottom-0","right-0","m-2","p-2"],[3,"image","canLoadFullResImage"],[3,"fullResImageLoadedEvent","image","canLoadFullResImage"],[1,"text-center","mb-2"]],template:function(n,r){n&1&&(o(0,"div",0)(1,"div",1),f("click",function(){return r.onCloseClick()}),h(2,"\xD7"),s(),o(3,"div",2)(4,"div",3),f("click",function(){return r.onPrevImageClick()}),g(5,we,1,2,"image-display",4),o(6,"div",5)(7,"span",6),h(8,"Previous"),s(),o(9,"span",7),h(10,"Prev"),s()()(),o(11,"div",8),g(12,Se,1,2,"image-display",9),o(13,"div",10),g(14,Pe,3,1,"ng-container",11),s()(),o(15,"div",12),f("click",function(){return r.onNextImageClick()}),g(16,ke,1,2,"image-display",4),o(17,"div",13),h(18," Next "),s()()(),d(19,"div",14),o(20,"div",15)(21,"div",16),f("click",function(){return r.onPrevImageClick()}),g(22,Re,1,2,"image-display",4),o(23,"div",17),h(24," Previous "),s()(),o(25,"div",18),f("click",function(){return r.onNextImageClick()}),g(26,Le,1,2,"image-display",4),o(27,"div",19),h(28," Next "),s()()()()),n&2&&(m(5),l("ngIf",!!r.prevImage),m(7),l("ngIf",!!r.activeImage),m(2),l("ngForOf",r.activeImage==null?null:r.activeImage.description),m(2),l("ngIf",!!r.nextImage),m(6),l("ngIf",!!r.prevImage),m(4),l("ngIf",!!r.nextImage))},dependencies:[C,E,ce],styles:["[_nghost-%COMP%]{pointer-events:none}.lighbox-container[_ngcontent-%COMP%]{position:fixed;top:0;left:0;height:100dvh;width:100vw;z-index:1000;pointer-events:all;background-color:#0009}@supports (backdrop-filter: blur()){.lighbox-container[_ngcontent-%COMP%]{-webkit-backdrop-filter:blur(.5rem);backdrop-filter:blur(.5rem)}}.close[_ngcontent-%COMP%]{height:1.5rem;width:1.5rem;margin:2rem;font-size:2.4rem;line-height:1.5rem;color:#d4c5b7;transition:all .1s ease-in-out}.close[_ngcontent-%COMP%]:hover{color:#f8f8f8}.gallery-container[_ngcontent-%COMP%]{height:calc(100% - 11rem)}.side-nav-image[_ngcontent-%COMP%]{width:6rem;height:500px}.lower-nav-image[_ngcontent-%COMP%]{height:100px} .active-image .image-display-container{width:100%!important} .active-image .image-display-container img{max-height:800px!important;width:100%} .side-nav-image .image-display-container{height:500px!important;width:100%!important} .side-nav-image img{object-fit:cover!important} .prev-image.side-nav-image img{object-position:right;border-top-left-radius:0;border-bottom-left-radius:0} .next-image.side-nav-image img{object-position:left;border-top-right-radius:0;border-bottom-right-radius:0}.text-panel[_ngcontent-%COMP%]{background-color:#0009;border-radius:.2rem} .lower-nav-image .image-display-container{height:100px!important} .prev-image.lower-nav-image img{object-position:left} .next-image.lower-nav-image img{object-position:right} .side-nav-image img, .lower-nav-image img{height:100%}@media (pointer: fine){ .side-nav-image, .lower-nav-image{transition:all .1s ease-in-out} .side-nav-image:hover, .lower-nav-image:hover{transform:scale(1.1)}} .side-nav-image .image-display-container, .lower-nav-image .image-display-container{box-shadow:0 0 10px 2px #0003}.footer[_ngcontent-%COMP%]{height:1.5rem;margin:2rem}"]});let t=e;return t})();var O=(()=>{let e=class e{constructor(i){this._rendererFactory=i,this._activeImageSubject=new I(null),this._nextImageSubject=new I(null),this._prevImageSubject=new I(null),this.activeImage$=this._activeImageSubject.asObservable(),this.nextImage$=this._nextImageSubject.asObservable(),this.prevImage$=this._prevImageSubject.asObservable(),this._renderer=this._rendererFactory.createRenderer(null,null),this._activeGallery=null,this._activeImageIndex=null,this._activeImage=null}get activeGallery(){return this._activeGallery}get activeImageIndex(){return this._activeImageIndex}get activeImage(){return this._activeImage}_setActiveImage(i){if(i===null){this._activeImage=null,this._activeImageSubject.next(null),this._nextImageSubject.next(null),this._prevImageSubject.next(null);return}let n=this.calculateSafeGalleryindex(i),r=this.calculateSafeGalleryindex(i-1),c=this.calculateSafeGalleryindex(i+1);this._activeImage=this.activeGallery?.[n]??null,this._activeImageSubject.next(this._activeImage);let w=this.activeGallery?.[r]??null;this._prevImageSubject.next(w);let ve=this.activeGallery?.[c]??null;this._nextImageSubject.next(ve)}calculateSafeGalleryindex(i){for(;i<0;)i+=this.activeGallery.length;return i%this.activeGallery.length}openLightbox(i,n,r,c){this._activeGallery=r,this._activeImageIndex=n,this._setActiveImage(this.activeImageIndex??n),this._galleryComponent=c.createComponent(ge),this._renderer.addClass(document.querySelector("html"),"overflow-y-hidden")}closeLightbox(){this._activeGallery=null,this._activeImageIndex=null,this._setActiveImage(null),this._galleryComponent?.destroy(),this._galleryComponent=null,this._renderer.removeClass(document.querySelector("html"),"overflow-y-hidden")}nextImage(){this._stepImage(1)}prevImage(){this._stepImage(-1)}_stepImage(i){if(!this.activeGallery||this.activeImageIndex===null)throw new Error("No active gallery or image index");this._activeImageIndex=this.calculateSafeGalleryindex(this.activeImageIndex+i),this._setActiveImage(this.activeImageIndex)}};e.\u0275fac=function(n){return new(n||e)(G(ee))},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:V});let t=e;return t})();var Me=t=>({"mr-2":t}),Fe=(t,e)=>({width:"auto",height:t,"aspect-ratio":e});function Ee(t,e){if(t&1){let a=k();v(0),o(1,"div",2)(2,"img",3),f("click",function(){let n=S(a),r=n.$implicit,c=n.index,w=p();return P(w.onImageClick(r,c))}),s()(),x()}if(t&2){let a=e.$implicit,i=e.index,n=p();m(),l("ngClass",H(4,Me,i{let e=class e{constructor(i,n){this._galleryManagerService=i,this._viewContainerRef=n,this.images=[]}ngOnInit(){}onImageClick(i,n){this._galleryManagerService.openLightbox(i,n,this.images,this._viewContainerRef)}};e.\u0275fac=function(n){return new(n||e)(_(O),_(ie))},e.\u0275cmp=u({type:e,selectors:[["gallery-inline"]],inputs:{images:"images"},decls:2,vars:1,consts:[[1,"gallery-container","flex"],[4,"ngFor","ngForOf"],[1,"gallery-item","skeleton",3,"ngClass","ngStyle"],[1,"cursor-pointer",3,"click","src","alt"]],template:function(n,r){n&1&&(o(0,"div",0),g(1,Ee,3,9,"ng-container",1),s()),n&2&&(m(),l("ngForOf",r.images))},dependencies:[D,C,U],styles:["[_nghost-%COMP%]{height:100%;width:100%}@media (min-width: 640px){.gallery-item[_ngcontent-%COMP%]{height:96px}}@media (min-width: 768px){.gallery-item[_ngcontent-%COMP%]{height:108px}}@media (min-width: 1024px){.gallery-item[_ngcontent-%COMP%]{height:120px}}@media (min-width: 1280px){.gallery-item[_ngcontent-%COMP%]{height:132px}}@media (min-width: 1536px){.gallery-item[_ngcontent-%COMP%]{height:144px}}.gallery-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:100%;object-fit:cover;box-shadow:0 0 10px 2px #0003;transition:all .1s ease-in-out}.gallery-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:hover{transform:scale(1.1)}"]});let t=e;return t})();var V=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=J({providers:[O],imports:[j]});let t=e;return t})();var Te=(t,e)=>({"mr-0":t,"mr-1":e});function Ge(t,e){if(t&1&&(o(0,"a",11),h(1),s()),t&2){let a=p(2);l("href",a.project.url,y),m(),B(" ",a.project.name," ")}}function He(t,e){if(t&1&&(o(0,"span",12),h(1),s()),t&2){let a=p(2);m(),B(" ",a.project.name," ")}}function Ae(t,e){if(t&1&&(v(0),o(1,"a",13),d(2,"div",14)(3,"div",15),s(),x()),t&2){let a=p(2);m(),l("href",a.project.url,y)}}function De(t,e){if(t&1&&(o(0,"div",16),d(1,"gallery-inline",17),s()),t&2){let a=p(2);m(),l("images",a.project.images)}}function Ue(t,e){if(t&1&&(v(0),d(1,"p",18),x()),t&2){let a=e.$implicit;m(),l("innerHTML",a,X)}}function Ne(t,e){if(t&1&&(o(0,"ul",21)(1,"li"),h(2),s()()),t&2){let a=e.$implicit;m(2),R(a)}}function Ve(t,e){if(t&1&&(o(0,"div",19)(1,"div"),h(2,"Fun Stats:"),s(),g(3,Ne,3,1,"ul",20),s()),t&2){let a=p(2);m(3),l("ngForOf",a.project.funFacts)}}function $e(t,e){if(t&1&&(v(0),o(1,"div",22),h(2),s(),x()),t&2){let a=e.$implicit,i=e.index,n=p(2);m(),l("ngClass",F(2,Te,i==n.project.technologies.length-1,i0),m(4),l("ngForOf",i.project.technologies)}}var he=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=u({type:e,selectors:[["project"]],inputs:{project:"project"},standalone:!0,features:[M],decls:1,vars:1,consts:[["projectUrlExists",""],["class","panel color-medium mt-3",4,"ngIf"],[1,"panel","color-medium","mt-3"],[1,"flex","justify-between","mb-2","items-center"],["target","_blank","class","bg-gradient-feature-short clip-text underline-feature-gradient",3,"href",4,"ngIf","ngIfElse"],[4,"ngIf"],["class","gallery-container mb-2",4,"ngIf"],[1,"description-container","mb-2"],[4,"ngFor","ngForOf"],["class","mb-2",4,"ngIf"],[1,""],["target","_blank",1,"bg-gradient-feature-short","clip-text","underline-feature-gradient",3,"href"],[1,"bg-gradient-feature-short","clip-text"],["target","_blank","title","See it on GitHub!",1,"nav-container","shrink-0","relative","bottom-0.5",3,"href"],[1,"bg-gradient-feature-short","github-mask","maskable","nav-item"],[1,"bg-gradient-feature-short","github-filled-mask","maskable","nav-item","hoverable"],[1,"gallery-container","mb-2"],[3,"images"],[1,"mb-2",3,"innerHTML"],[1,"mb-2"],["class","list-inside",4,"ngFor","ngForOf"],[1,"list-inside"],[1,"badge","technology","bg-gradient-medium","inline-block","select-none",3,"ngClass"]],template:function(n,r){n&1&&g(0,We,15,7,"div",1),n&2&&l("ngIf",!!r.project)},dependencies:[j,D,C,E,V,pe],styles:[".panel[_ngcontent-%COMP%]{background-color:#f8f8f81a;border-radius:.2rem;padding:1rem;margin:initial 1rem;transition:background-color .1s ease-in-out}.panel[_ngcontent-%COMP%]:hover{background-color:#f8f8f826}.badge[_ngcontent-%COMP%]{margin-top:.2rem;margin-bottom:.2rem;margin-left:0;padding:.2rem .4rem;border-radius:.25rem;font-size:.85rem}.technology[_ngcontent-%COMP%]{background-color:#d4c5b7;color:#1d222a}"]});let t=e;return t})();var $=class{constructor(e,a,i,n,r,c){this._name=e,this._description=a,this._url=i??null,this._funFacts=n??null,this._images=r??null,this._technologies=c??[]}get name(){return this._name}get url(){return this._url}get description(){return this._description}get funFacts(){return this._funFacts}get images(){return this._images}get technologies(){return this._technologies}};var T=class{constructor(e,a,i,n,r,c){this._fullResUrl=e,this._fullResWidthPx=a,this._fullResHeightPx=i,this._thumbnailUrl=n,this._thumbnailWidthPx=r,this._thumbnailHeightPx=c}get fullResUrl(){return this._fullResUrl}get fullResWidthPx(){return this._fullResWidthPx}get fullResHeightPx(){return this._fullResHeightPx}get thumbnailUrl(){return this._thumbnailUrl}get thumbnailWidthPx(){return this._thumbnailWidthPx}get thumbnailHeightPx(){return this._thumbnailHeightPx}get aspectRatio(){return this._fullResWidthPx/this._fullResHeightPx}};var W=class extends T{constructor(e,a,i){super(e.fullResUrl,e.fullResWidthPx,e.fullResHeightPx,e.thumbnailUrl,e.thumbnailWidthPx,e.thumbnailHeightPx),this._description=a,this._altText=i}get description(){return this._description}get altText(){return this._altText}};var ue=(()=>{let e=class e{constructor(){this.IMAGES_DIRECTORY="assets/images/",this.METADATA_JSON_FILENAME="metadata.json",this._images={},this._imagesSubject=new I({}),this.images$=this._imagesSubject.asObservable(),this.loadImages()}get images(){return this._images}set images(i){this._images=i,this._imagesSubject.next(i)}_buildUrl(i){try{return new URL(i)}catch(n){if(n instanceof TypeError)return new URL(`${location.origin}/${i}`);throw n}}loadImages(){fetch(this.IMAGES_DIRECTORY+this.METADATA_JSON_FILENAME).then(i=>i.json()).then(i=>{let n={};for(let r in i){let c=i[r];n[r]=new T(this._buildUrl(c.fullRes.url),c.fullRes.widthPx,c.fullRes.heightPx,this._buildUrl(c.thumbnail.url),c.thumbnail.widthPx,c.thumbnail.heightPx)}this.images=n})}getImageByPath(i){return this.images[i]}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var fe=(()=>{let e=class e{constructor(i){this._imageLoaderService=i,this.PROJECTS_URL="assets/data/projects.json",this._projectsSubject=new I([]),this.projects$=this._projectsSubject.asObservable(),this.loadProjects(),this._imageLoaderService.images$.subscribe(n=>{this.loadProjects()})}loadProjects(){fetch(this.PROJECTS_URL.toString()).then(i=>i.json()).then(i=>{let n=i.map(r=>new $(r.name,r.description,r?.url?new URL(r?.url):null,r?.funFacts,r?.images?.map(c=>{let w=this._imageLoaderService.getImageByPath(c.url);return w?new W(w,c.description,c.altText):null}).filter(c=>c!==null),r?.technologies));this._projectsSubject.next(n)})}};e.\u0275fac=function(n){return new(n||e)(G(ue))},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function qe(t,e){if(t&1&&(v(0),d(1,"project",5),x()),t&2){let a=e.$implicit;m(),l("project",a)}}var _e=(()=>{let e=class e{constructor(i,n,r){this._projectLoaderService=i,this._renderer=n,this._changeDetectorRef=r,this._projectsChanged=!1}ngOnInit(){this._projectLoaderService.projects$.subscribe(i=>{this.projects=i})}ngAfterContentChecked(){this.handleProjectsChangeUpdate()}get projects(){return this._projects}set projects(i){this._projects=i,this._projectsChanged=!0,this._changeDetectorRef.detectChanges()}handleProjectsChangeUpdate(){if(this._projectsChanged){let i=document.querySelectorAll(".description-container > p > a");Array.from(i).forEach(n=>{this._renderer.addClass(n,"bg-gradient-feature-short"),this._renderer.addClass(n,"clip-text"),this._renderer.addClass(n,"font-semibold"),this._renderer.addClass(n,"underline-feature-gradient")}),this._projectsChanged=!1}}};e.\u0275fac=function(n){return new(n||e)(_(fe),_(te),_(A))},e.\u0275cmp=u({type:e,selectors:[["projects"]],standalone:!0,features:[M],decls:5,vars:1,consts:[[1,"bg-gradient-dark","flex","flex-col","min-h-screen","w-screen","pb-1"],["title","Projects"],[1,"container","mx-auto","min-h-full","px-3","flex","flex-col","grow"],[4,"ngFor","ngForOf"],["containerClasses","color-light mt-3"],[3,"project"]],template:function(n,r){n&1&&(o(0,"div",0),d(1,"header",1),o(2,"div",2),g(3,qe,2,1,"ng-container",3),d(4,"footer",4),s()()),n&2&&(m(3),l("ngForOf",r.projects))},dependencies:[me,le,j,C,he]});let t=e;return t})();var Ht=[{path:"",component:_e}];export{Ht as default}; +import{a as le,b as se}from"./chunk-6AQIFS4D.js";import{$ as D,A as te,C as ie,D as g,E as l,G as o,H as s,I as d,J as v,K as x,L as k,M as f,N as p,O as z,P as Q,Q as q,R as ne,S as h,T as R,U as B,W as M,X as H,Y as F,Z as ae,_ as A,aa as C,ba as E,ca as U,d as I,da as j,ga as re,i as L,j as J,ka as oe,l as G,m as u,n as Y,q as S,r as P,t as K,u as X,v as y,w as Z,x as m,y as _,z as ee}from"./chunk-HRLUZBMJ.js";import"./chunk-F6SUT7E5.js";var me=(()=>{let e=class e{constructor(){this.title=""}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=u({type:e,selectors:[["header"]],inputs:{title:"title"},standalone:!0,features:[M],decls:17,vars:1,consts:[[1,"color-medium","header-blurred","w-full","pointer-events-none"],[1,"container","mx-auto","flex","justify-between"],[1,"flex","items-center","pl-0","md:pl-3","py-1","mx-3","md:mx-4","pointer-events-auto"],["routerLink","",1,"logo-container","hoverable-feature","mr-3"],["size","1.5rem","logoClasses","bg-gradient-feature","title","Home"],[1,"bg-gradient-feature-short","clip-text","select-none"],[1,"flex","items-center","pr-0","md:pr-3","py-1","mx-2","md:mx-3","pointer-events-auto"],["href","https://github.com/naschorr","target","_blank","title","My GitHub",1,"nav-container","inline-block","m-2"],[1,"bg-gradient-medium","github-mask","maskable","nav-item"],[1,"bg-gradient-light","github-filled-mask","maskable","nav-item","hoverable"],["routerLink","/projects","title","Projects",1,"nav-container","inline-block","m-2"],[1,"bg-gradient-medium","flask-mask","maskable","nav-item"],[1,"bg-gradient-light","flask-filled-mask","maskable","nav-item","hoverable"],["href","https://www.printables.com/@naschorr_134538","target","_blank","title","3D Printing",1,"nav-container","inline-block","m-2"],[1,"bg-gradient-medium","printer-mask","maskable","nav-item"],[1,"bg-gradient-light","printer-filled-mask","maskable","nav-item","hoverable"]],template:function(n,r){n&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3),d(4,"logo",4),s(),o(5,"h1",5),h(6),s()(),o(7,"div",6)(8,"a",7),d(9,"div",8)(10,"div",9),s(),o(11,"a",10),d(12,"div",11)(13,"div",12),s(),o(14,"a",13),d(15,"div",14)(16,"div",15),s()()()()),n&2&&(m(6),R(r.title))},dependencies:[j,oe,re,se],styles:["[_nghost-%COMP%]{position:sticky;top:0;z-index:100}.header-blurred[_ngcontent-%COMP%]{background:#1d222a;background:linear-gradient(45deg,#1d222a,#0f263f);border-image-source:linear-gradient(90deg,rgb(247,148,30),rgb(242,86,33));border-left:0;border-right:0;border-top:0;border-width:2px;border-image-slice:1}@supports (backdrop-filter: blur()){.header-blurred[_ngcontent-%COMP%]{background:#1d222a80;background:linear-gradient(45deg,#1d222a80,#0f263f33);-webkit-backdrop-filter:blur(.5rem);backdrop-filter:blur(.5rem)}}.logo-container[_ngcontent-%COMP%]{border-radius:50%;transition:box-shadow .25s ease-in-out}.logo-container.hoverable-feature[_ngcontent-%COMP%]:hover{box-shadow:0 0 1rem #f7941e}.logo-container.hoverable-dark[_ngcontent-%COMP%]:hover{box-shadow:0 0 1rem #1d222a}.logo-container.hoverable-medium[_ngcontent-%COMP%]:hover{box-shadow:0 0 1rem #d4c5b7}.logo-container.hoverable-light[_ngcontent-%COMP%]:hover{box-shadow:0 0 1rem #f8f8f8}.icon[_ngcontent-%COMP%]{filter:brightness(0) saturate(100%) invert(83%) sepia(9%) saturate(394%) hue-rotate(348deg) brightness(96%) contrast(90%)}"]});let t=e;return t})();var xe=["thumbnailImage"],be=["fullResImage"],Ie=(t,e)=>({height:t,width:e}),ye=t=>({opacity:t});function Ce(t,e){if(t&1){let a=k();o(0,"img",5,1),f("load",function(){S(a);let n=p();return P(n.onFullResImageLoaded())}),s()}if(t&2){let a=p();l("ngStyle",H(3,ye,a.isFullResImageLoaded?1:0))("src",a.image.fullResUrl,y)("alt",a.image.altText)}}var ce=(()=>{let e=class e{constructor(i){this._changeDetectorRef=i,this._isFullResImageLoaded=!1,this._imageWidth=0,this._imageHeight=0,this.canLoadFullResImage=!1,this.fullResImageLoadedEvent=new K}ngAfterViewInit(){this.recalculateImageHeight()}set image(i){this._image=i,this._isFullResImageLoaded=!1}get image(){return this._image}get isFullResImageLoaded(){return this._isFullResImageLoaded}get imageWidth(){return this._imageWidth}get imageHeight(){return this._imageHeight}getActualHeightOfImagePixels(){let i=this.thumbnailImageView.nativeElement.offsetHeight,n=this.fullResImageView?.nativeElement?.offsetHeight??0;return Math.max(i,n)}recalculateImageHeight(){this._imageHeight=this.getActualHeightOfImagePixels(),this._imageWidth=this._imageHeight*this.image.aspectRatio,this._changeDetectorRef.detectChanges()}onWindowResize(){this.recalculateImageHeight()}onFullResImageLoaded(){this._isFullResImageLoaded=!0,this.fullResImageLoadedEvent.emit(),this.recalculateImageHeight()}};e.\u0275fac=function(n){return new(n||e)(_(A))},e.\u0275cmp=u({type:e,selectors:[["image-display"]],viewQuery:function(n,r){if(n&1&&(z(xe,5),z(be,5)),n&2){let c;Q(c=q())&&(r.thumbnailImageView=c.first),Q(c=q())&&(r.fullResImageView=c.first)}},inputs:{canLoadFullResImage:"canLoadFullResImage",image:"image"},outputs:{fullResImageLoadedEvent:"fullResImageLoadedEvent"},decls:4,vars:7,consts:[["thumbnailImage",""],["fullResImage",""],[1,"image-display-container","relative",3,"resize","ngStyle"],[1,"absolute","top-0","bottom-0","my-auto",3,"src","alt"],["class","absolute top-0 bottom-0 my-auto",3,"ngStyle","src","alt","load",4,"ngIf"],[1,"absolute","top-0","bottom-0","my-auto",3,"load","ngStyle","src","alt"]],template:function(n,r){if(n&1){let c=k();o(0,"div",2),f("resize",function(){return S(c),P(r.onWindowResize())},!1,Z),d(1,"img",3,0),g(3,Ce,2,5,"img",4),s()}n&2&&(l("ngStyle",F(4,Ie,r.imageHeight+"px",r.imageWidth>0?r.imageWidth+"px":"auto")),m(),l("src",r.image.thumbnailUrl,y)("alt",r.image.altText),m(2),l("ngIf",r.canLoadFullResImage))},dependencies:[E,U],styles:["img[_ngcontent-%COMP%]{transition:all .1s ease-in-out,opacity .5s ease-in-out}.image-display-container[_ngcontent-%COMP%]{width:100%}.image-display-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin:auto;object-fit:contain}"]});let t=e;return t})();function we(t,e){if(t&1&&d(0,"image-display",20),t&2){let a=p();l("image",a.prevImage)("canLoadFullResImage",a.isActiveImageLoaded)}}function Se(t,e){if(t&1){let a=k();o(0,"image-display",21),f("fullResImageLoadedEvent",function(){S(a);let n=p();return P(n.onActiveImageLoaded())}),s()}if(t&2){let a=p();l("image",a.activeImage)("canLoadFullResImage",!0)}}function Pe(t,e){if(t&1&&(v(0),o(1,"p",22),h(2),s(),x()),t&2){let a=e.$implicit;m(2),R(a)}}function ke(t,e){if(t&1&&d(0,"image-display",20),t&2){let a=p();l("image",a.nextImage)("canLoadFullResImage",a.isActiveImageLoaded)}}function Re(t,e){if(t&1&&d(0,"image-display",20),t&2){let a=p();l("image",a.prevImage)("canLoadFullResImage",a.isActiveImageLoaded)}}function Le(t,e){if(t&1&&d(0,"image-display",20),t&2){let a=p();l("image",a.nextImage)("canLoadFullResImage",a.isActiveImageLoaded)}}var ge=(()=>{let e=class e{constructor(i){this._galleryManagerService=i,this._isActiveImageLoaded=!1}ngOnInit(){this._galleryManagerService.activeImage$.subscribe(i=>{this._activeImage=i,this._isActiveImageLoaded=!1}),this._galleryManagerService.nextImage$.subscribe(i=>{this._nextImage=i}),this._galleryManagerService.prevImage$.subscribe(i=>{this._prevImage=i})}get activeImage(){return this._activeImage}get prevImage(){return this._prevImage}get nextImage(){return this._nextImage}get isActiveImageLoaded(){return this._isActiveImageLoaded}onCloseClick(){this._galleryManagerService.closeLightbox()}onNextImageClick(){this._galleryManagerService.nextImage()}onPrevImageClick(){this._galleryManagerService.prevImage()}onActiveImageLoaded(){this._isActiveImageLoaded=!0}};e.\u0275fac=function(n){return new(n||e)(_(O))},e.\u0275cmp=u({type:e,selectors:[["gallery-lightbox"]],decls:29,vars:6,consts:[[1,"lighbox-container","flex","flex-col"],[1,"close","grow-0","self-end","cursor-pointer",3,"click"],[1,"gallery-container","grow","flex","items-center"],["title","Previous Image",1,"prev-image","side-nav-image","cursor-pointer","relative","mr-3","hidden","lg:block",3,"click"],[3,"image","canLoadFullResImage",4,"ngIf"],[1,"text-panel","text-end","absolute","color-light","bottom-0","right-0","m-2","p-2"],[1,"hidden","xl:block"],[1,"block","xl:hidden"],[1,"active-image","flex","flex-col","grow","justify-center","mx-3"],[3,"image","canLoadFullResImage","fullResImageLoadedEvent",4,"ngIf"],[1,"description-container","color-light","container","mx-auto","mt-3","lg:mt-6"],[4,"ngFor","ngForOf"],["title","Next Image",1,"next-image","side-nav-image","cursor-pointer","relative","ml-3","hidden","lg:block",3,"click"],[1,"text-panel","absolute","color-light","bottom-0","left-0","m-2","p-2"],[1,"footer","grow-0","hidden","lg:block"],[1,"grow-0","flex","justify-between","lg:hidden","mt-6","mb-3","mx-3"],["title","Previous Image",1,"prev-image","relative","lower-nav-image","cursor-pointer","mr-3",3,"click"],[1,"text-panel","text-end","absolute","color-light","bottom-0","left-0","m-2","p-2"],["title","Next Image",1,"next-image","relative","lower-nav-image","float-right","cursor-pointer","ml-3",3,"click"],[1,"text-panel","absolute","color-light","bottom-0","right-0","m-2","p-2"],[3,"image","canLoadFullResImage"],[3,"fullResImageLoadedEvent","image","canLoadFullResImage"],[1,"text-center","mb-2"]],template:function(n,r){n&1&&(o(0,"div",0)(1,"div",1),f("click",function(){return r.onCloseClick()}),h(2,"\xD7"),s(),o(3,"div",2)(4,"div",3),f("click",function(){return r.onPrevImageClick()}),g(5,we,1,2,"image-display",4),o(6,"div",5)(7,"span",6),h(8,"Previous"),s(),o(9,"span",7),h(10,"Prev"),s()()(),o(11,"div",8),g(12,Se,1,2,"image-display",9),o(13,"div",10),g(14,Pe,3,1,"ng-container",11),s()(),o(15,"div",12),f("click",function(){return r.onNextImageClick()}),g(16,ke,1,2,"image-display",4),o(17,"div",13),h(18," Next "),s()()(),d(19,"div",14),o(20,"div",15)(21,"div",16),f("click",function(){return r.onPrevImageClick()}),g(22,Re,1,2,"image-display",4),o(23,"div",17),h(24," Previous "),s()(),o(25,"div",18),f("click",function(){return r.onNextImageClick()}),g(26,Le,1,2,"image-display",4),o(27,"div",19),h(28," Next "),s()()()()),n&2&&(m(5),l("ngIf",!!r.prevImage),m(7),l("ngIf",!!r.activeImage),m(2),l("ngForOf",r.activeImage==null?null:r.activeImage.description),m(2),l("ngIf",!!r.nextImage),m(6),l("ngIf",!!r.prevImage),m(4),l("ngIf",!!r.nextImage))},dependencies:[C,E,ce],styles:["[_nghost-%COMP%]{pointer-events:none}.lighbox-container[_ngcontent-%COMP%]{position:fixed;top:0;left:0;height:100dvh;width:100vw;z-index:1000;pointer-events:all;background-color:#0009}@supports (backdrop-filter: blur()){.lighbox-container[_ngcontent-%COMP%]{-webkit-backdrop-filter:blur(.5rem);backdrop-filter:blur(.5rem)}}.close[_ngcontent-%COMP%]{height:1.5rem;width:1.5rem;margin:2rem;font-size:2.4rem;line-height:1.5rem;color:#d4c5b7;transition:all .1s ease-in-out}.close[_ngcontent-%COMP%]:hover{color:#f8f8f8}.gallery-container[_ngcontent-%COMP%]{height:calc(100% - 11rem)}.side-nav-image[_ngcontent-%COMP%]{width:6rem;height:500px}.lower-nav-image[_ngcontent-%COMP%]{height:100px} .active-image .image-display-container{width:100%!important} .active-image .image-display-container img{max-height:800px!important;width:100%} .side-nav-image .image-display-container{height:500px!important;width:100%!important} .side-nav-image img{object-fit:cover!important} .prev-image.side-nav-image img{object-position:right;border-top-left-radius:0;border-bottom-left-radius:0} .next-image.side-nav-image img{object-position:left;border-top-right-radius:0;border-bottom-right-radius:0}.text-panel[_ngcontent-%COMP%]{background-color:#0009;border-radius:.2rem} .lower-nav-image .image-display-container{height:100px!important} .prev-image.lower-nav-image img{object-position:left} .next-image.lower-nav-image img{object-position:right} .side-nav-image img, .lower-nav-image img{height:100%}@media (pointer: fine){ .side-nav-image, .lower-nav-image{transition:all .1s ease-in-out} .side-nav-image:hover, .lower-nav-image:hover{transform:scale(1.1)}} .side-nav-image .image-display-container, .lower-nav-image .image-display-container{box-shadow:0 0 10px 2px #0003}.footer[_ngcontent-%COMP%]{height:1.5rem;margin:2rem}"]});let t=e;return t})();var O=(()=>{let e=class e{constructor(i){this._rendererFactory=i,this._activeImageSubject=new I(null),this._nextImageSubject=new I(null),this._prevImageSubject=new I(null),this.activeImage$=this._activeImageSubject.asObservable(),this.nextImage$=this._nextImageSubject.asObservable(),this.prevImage$=this._prevImageSubject.asObservable(),this._renderer=this._rendererFactory.createRenderer(null,null),this._activeGallery=null,this._activeImageIndex=null,this._activeImage=null}get activeGallery(){return this._activeGallery}get activeImageIndex(){return this._activeImageIndex}get activeImage(){return this._activeImage}_setActiveImage(i){if(i===null){this._activeImage=null,this._activeImageSubject.next(null),this._nextImageSubject.next(null),this._prevImageSubject.next(null);return}let n=this.calculateSafeGalleryindex(i),r=this.calculateSafeGalleryindex(i-1),c=this.calculateSafeGalleryindex(i+1);this._activeImage=this.activeGallery?.[n]??null,this._activeImageSubject.next(this._activeImage);let w=this.activeGallery?.[r]??null;this._prevImageSubject.next(w);let ve=this.activeGallery?.[c]??null;this._nextImageSubject.next(ve)}calculateSafeGalleryindex(i){for(;i<0;)i+=this.activeGallery.length;return i%this.activeGallery.length}openLightbox(i,n,r,c){this._activeGallery=r,this._activeImageIndex=n,this._setActiveImage(this.activeImageIndex??n),this._galleryComponent=c.createComponent(ge),this._renderer.addClass(document.querySelector("html"),"overflow-y-hidden")}closeLightbox(){this._activeGallery=null,this._activeImageIndex=null,this._setActiveImage(null),this._galleryComponent?.destroy(),this._galleryComponent=null,this._renderer.removeClass(document.querySelector("html"),"overflow-y-hidden")}nextImage(){this._stepImage(1)}prevImage(){this._stepImage(-1)}_stepImage(i){if(!this.activeGallery||this.activeImageIndex===null)throw new Error("No active gallery or image index");this._activeImageIndex=this.calculateSafeGalleryindex(this.activeImageIndex+i),this._setActiveImage(this.activeImageIndex)}};e.\u0275fac=function(n){return new(n||e)(G(ee))},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:V});let t=e;return t})();var Me=t=>({"mr-2":t}),Fe=(t,e)=>({width:"auto",height:t,"aspect-ratio":e});function Ee(t,e){if(t&1){let a=k();v(0),o(1,"div",2)(2,"img",3),f("click",function(){let n=S(a),r=n.$implicit,c=n.index,w=p();return P(w.onImageClick(r,c))}),s()(),x()}if(t&2){let a=e.$implicit,i=e.index,n=p();m(),l("ngClass",H(4,Me,i{let e=class e{constructor(i,n){this._galleryManagerService=i,this._viewContainerRef=n,this.images=[]}ngOnInit(){}onImageClick(i,n){this._galleryManagerService.openLightbox(i,n,this.images,this._viewContainerRef)}};e.\u0275fac=function(n){return new(n||e)(_(O),_(ie))},e.\u0275cmp=u({type:e,selectors:[["gallery-inline"]],inputs:{images:"images"},decls:2,vars:1,consts:[[1,"gallery-container","flex"],[4,"ngFor","ngForOf"],[1,"gallery-item","skeleton",3,"ngClass","ngStyle"],[1,"cursor-pointer",3,"click","src","alt"]],template:function(n,r){n&1&&(o(0,"div",0),g(1,Ee,3,9,"ng-container",1),s()),n&2&&(m(),l("ngForOf",r.images))},dependencies:[D,C,U],styles:["[_nghost-%COMP%]{height:100%;width:100%}@media (min-width: 640px){.gallery-item[_ngcontent-%COMP%]{height:96px}}@media (min-width: 768px){.gallery-item[_ngcontent-%COMP%]{height:108px}}@media (min-width: 1024px){.gallery-item[_ngcontent-%COMP%]{height:120px}}@media (min-width: 1280px){.gallery-item[_ngcontent-%COMP%]{height:132px}}@media (min-width: 1536px){.gallery-item[_ngcontent-%COMP%]{height:144px}}.gallery-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:100%;object-fit:cover;box-shadow:0 0 10px 2px #0003;transition:all .1s ease-in-out}.gallery-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:hover{transform:scale(1.1)}"]});let t=e;return t})();var V=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=J({providers:[O],imports:[j]});let t=e;return t})();var Te=(t,e)=>({"mr-0":t,"mr-1":e});function Ge(t,e){if(t&1&&(o(0,"a",11),h(1),s()),t&2){let a=p(2);l("href",a.project.url,y),m(),B(" ",a.project.name," ")}}function He(t,e){if(t&1&&(o(0,"span",12),h(1),s()),t&2){let a=p(2);m(),B(" ",a.project.name," ")}}function Ae(t,e){if(t&1&&(v(0),o(1,"a",13),d(2,"div",14)(3,"div",15),s(),x()),t&2){let a=p(2);m(),l("href",a.project.url,y)}}function De(t,e){if(t&1&&(o(0,"div",16),d(1,"gallery-inline",17),s()),t&2){let a=p(2);m(),l("images",a.project.images)}}function Ue(t,e){if(t&1&&(v(0),d(1,"p",18),x()),t&2){let a=e.$implicit;m(),l("innerHTML",a,X)}}function Ne(t,e){if(t&1&&(o(0,"ul",21)(1,"li"),h(2),s()()),t&2){let a=e.$implicit;m(2),R(a)}}function Ve(t,e){if(t&1&&(o(0,"div",19)(1,"div"),h(2,"Fun Stats:"),s(),g(3,Ne,3,1,"ul",20),s()),t&2){let a=p(2);m(3),l("ngForOf",a.project.funFacts)}}function $e(t,e){if(t&1&&(v(0),o(1,"div",22),h(2),s(),x()),t&2){let a=e.$implicit,i=e.index,n=p(2);m(),l("ngClass",F(2,Te,i==n.project.technologies.length-1,i0),m(4),l("ngForOf",i.project.technologies)}}var he=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=u({type:e,selectors:[["project"]],inputs:{project:"project"},standalone:!0,features:[M],decls:1,vars:1,consts:[["projectUrlExists",""],["class","panel color-medium mt-3",4,"ngIf"],[1,"panel","color-medium","mt-3"],[1,"flex","justify-between","mb-2","items-center"],["target","_blank","class","bg-gradient-feature-short clip-text underline-feature-gradient",3,"href",4,"ngIf","ngIfElse"],[4,"ngIf"],["class","gallery-container mb-2",4,"ngIf"],[1,"description-container","mb-2"],[4,"ngFor","ngForOf"],["class","mb-2",4,"ngIf"],[1,""],["target","_blank",1,"bg-gradient-feature-short","clip-text","underline-feature-gradient",3,"href"],[1,"bg-gradient-feature-short","clip-text"],["target","_blank","title","See it on GitHub!",1,"nav-container","shrink-0","relative","bottom-0.5",3,"href"],[1,"bg-gradient-feature-short","github-mask","maskable","nav-item"],[1,"bg-gradient-feature-short","github-filled-mask","maskable","nav-item","hoverable"],[1,"gallery-container","mb-2"],[3,"images"],[1,"mb-2",3,"innerHTML"],[1,"mb-2"],["class","list-inside",4,"ngFor","ngForOf"],[1,"list-inside"],[1,"badge","technology","bg-gradient-medium","inline-block","select-none",3,"ngClass"]],template:function(n,r){n&1&&g(0,We,15,7,"div",1),n&2&&l("ngIf",!!r.project)},dependencies:[j,D,C,E,V,pe],styles:[".panel[_ngcontent-%COMP%]{background-color:#f8f8f81a;border-radius:.2rem;padding:1rem;margin:initial 1rem;transition:background-color .1s ease-in-out}.panel[_ngcontent-%COMP%]:hover{background-color:#f8f8f826}.badge[_ngcontent-%COMP%]{margin-top:.2rem;margin-bottom:.2rem;margin-left:0;padding:.2rem .4rem;border-radius:.25rem;font-size:.85rem}.technology[_ngcontent-%COMP%]{background-color:#d4c5b7;color:#1d222a}"]});let t=e;return t})();var $=class{constructor(e,a,i,n,r,c){this._name=e,this._description=a,this._url=i??null,this._funFacts=n??null,this._images=r??null,this._technologies=c??[]}get name(){return this._name}get url(){return this._url}get description(){return this._description}get funFacts(){return this._funFacts}get images(){return this._images}get technologies(){return this._technologies}};var T=class{constructor(e,a,i,n,r,c){this._fullResUrl=e,this._fullResWidthPx=a,this._fullResHeightPx=i,this._thumbnailUrl=n,this._thumbnailWidthPx=r,this._thumbnailHeightPx=c}get fullResUrl(){return this._fullResUrl}get fullResWidthPx(){return this._fullResWidthPx}get fullResHeightPx(){return this._fullResHeightPx}get thumbnailUrl(){return this._thumbnailUrl}get thumbnailWidthPx(){return this._thumbnailWidthPx}get thumbnailHeightPx(){return this._thumbnailHeightPx}get aspectRatio(){return this._fullResWidthPx/this._fullResHeightPx}};var W=class extends T{constructor(e,a,i){super(e.fullResUrl,e.fullResWidthPx,e.fullResHeightPx,e.thumbnailUrl,e.thumbnailWidthPx,e.thumbnailHeightPx),this._description=a,this._altText=i}get description(){return this._description}get altText(){return this._altText}};var ue=(()=>{let e=class e{constructor(){this.IMAGES_DIRECTORY="assets/images/",this.METADATA_JSON_FILENAME="metadata.json",this._images={},this._imagesSubject=new I({}),this.images$=this._imagesSubject.asObservable(),this.loadImages()}get images(){return this._images}set images(i){this._images=i,this._imagesSubject.next(i)}_buildUrl(i){try{return new URL(i)}catch(n){if(n instanceof TypeError)return new URL(`${location.origin}/${i}`);throw n}}loadImages(){fetch(this.IMAGES_DIRECTORY+this.METADATA_JSON_FILENAME).then(i=>i.json()).then(i=>{let n={};for(let r in i){let c=i[r];n[r]=new T(this._buildUrl(c.fullRes.url),c.fullRes.widthPx,c.fullRes.heightPx,this._buildUrl(c.thumbnail.url),c.thumbnail.widthPx,c.thumbnail.heightPx)}this.images=n})}getImageByPath(i){return this.images[i]}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var fe=(()=>{let e=class e{constructor(i){this._imageLoaderService=i,this.PROJECTS_URL="assets/data/projects.json",this._projectsSubject=new I([]),this.projects$=this._projectsSubject.asObservable(),this.loadProjects(),this._imageLoaderService.images$.subscribe(n=>{this.loadProjects()})}loadProjects(){fetch(this.PROJECTS_URL.toString()).then(i=>i.json()).then(i=>{let n=i.map(r=>new $(r.name,r.description,r?.url?new URL(r?.url):null,r?.funFacts,r?.images?.map(c=>{let w=this._imageLoaderService.getImageByPath(c.url);return w?new W(w,c.description,c.altText):null}).filter(c=>c!==null),r?.technologies));this._projectsSubject.next(n)})}};e.\u0275fac=function(n){return new(n||e)(G(ue))},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function qe(t,e){if(t&1&&(v(0),d(1,"project",5),x()),t&2){let a=e.$implicit;m(),l("project",a)}}var _e=(()=>{let e=class e{constructor(i,n,r){this._projectLoaderService=i,this._renderer=n,this._changeDetectorRef=r,this._projectsChanged=!1}ngOnInit(){this._projectLoaderService.projects$.subscribe(i=>{this.projects=i})}ngAfterContentChecked(){this.handleProjectsChangeUpdate()}get projects(){return this._projects}set projects(i){this._projects=i,this._projectsChanged=!0,this._changeDetectorRef.detectChanges()}handleProjectsChangeUpdate(){if(this._projectsChanged){let i=document.querySelectorAll(".description-container > p > a");Array.from(i).forEach(n=>{this._renderer.addClass(n,"bg-gradient-feature-short"),this._renderer.addClass(n,"clip-text"),this._renderer.addClass(n,"font-semibold"),this._renderer.addClass(n,"underline-feature-gradient")}),this._projectsChanged=!1}}};e.\u0275fac=function(n){return new(n||e)(_(fe),_(te),_(A))},e.\u0275cmp=u({type:e,selectors:[["projects"]],standalone:!0,features:[M],decls:5,vars:1,consts:[[1,"bg-gradient-dark","flex","flex-col","min-h-screen","w-screen","pb-1"],["title","Projects"],[1,"container","mx-auto","min-h-full","px-3","flex","flex-col","grow"],[4,"ngFor","ngForOf"],["containerClasses","color-light mt-3"],[3,"project"]],template:function(n,r){n&1&&(o(0,"div",0),d(1,"header",1),o(2,"div",2),g(3,qe,2,1,"ng-container",3),d(4,"footer",4),s()()),n&2&&(m(3),l("ngForOf",r.projects))},dependencies:[me,le,j,C,he]});let t=e;return t})();var Ht=[{path:"",component:_e}];export{Ht as default}; diff --git a/chunk-JMZ7DUBM.js b/chunk-F6SUT7E5.js similarity index 100% rename from chunk-JMZ7DUBM.js rename to chunk-F6SUT7E5.js diff --git a/chunk-HRLUZBMJ.js b/chunk-HRLUZBMJ.js new file mode 100644 index 0000000..8a9ccc3 --- /dev/null +++ b/chunk-HRLUZBMJ.js @@ -0,0 +1,7 @@ +import{a as m,b as U,d as vu}from"./chunk-F6SUT7E5.js";var yu=null;var Pi=1,Du=Symbol("SIGNAL");function R(t){let e=yu;return yu=t,e}var wu={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Ap(t){if(!(Li(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Pi)){if(!t.producerMustRecompute(t)&&!ki(t)){t.dirty=!1,t.lastCleanEpoch=Pi;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=Pi}}function Cu(t){return t&&(t.nextProducerIndex=0),R(t)}function Iu(t,e){if(R(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(Li(t))for(let r=t.nextProducerIndex;rt.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function ki(t){Lr(t);for(let e=0;e0}function Lr(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Rp(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Op(){throw new Error}var Pp=Op;function bu(t){Pp=t}function I(t){return typeof t=="function"}function $t(t){let r=t(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var jr=$t(t=>function(r){t(this),this.message=r?`${r.length} errors occurred during unsubscription: +${r.map((n,o)=>`${o+1}) ${n.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=r});function vt(t,e){if(t){let r=t.indexOf(e);0<=r&&t.splice(r,1)}}var V=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let i of r)i.remove(this);else r.remove(this);let{initialTeardown:n}=this;if(I(n))try{n()}catch(i){e=i instanceof jr?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Mu(i)}catch(s){e=e??[],s instanceof jr?e=[...e,...s.errors]:e.push(s)}}if(e)throw new jr(e)}}add(e){var r;if(e&&e!==this)if(this.closed)Mu(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}}_hasParent(e){let{_parentage:r}=this;return r===e||Array.isArray(r)&&r.includes(e)}_addParent(e){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e}_removeParent(e){let{_parentage:r}=this;r===e?this._parentage=null:Array.isArray(r)&&vt(r,e)}remove(e){let{_finalizers:r}=this;r&&vt(r,e),e instanceof t&&e._removeParent(this)}};V.EMPTY=(()=>{let t=new V;return t.closed=!0,t})();var ji=V.EMPTY;function Vr(t){return t instanceof V||t&&"closed"in t&&I(t.remove)&&I(t.add)&&I(t.unsubscribe)}function Mu(t){I(t)?t():t.unsubscribe()}var we={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Bt={setTimeout(t,e,...r){let{delegate:n}=Bt;return n?.setTimeout?n.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){let{delegate:e}=Bt;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function $r(t){Bt.setTimeout(()=>{let{onUnhandledError:e}=we;if(e)e(t);else throw t})}function jn(){}var Su=Vi("C",void 0,void 0);function Tu(t){return Vi("E",void 0,t)}function xu(t){return Vi("N",t,void 0)}function Vi(t,e,r){return{kind:t,value:e,error:r}}var yt=null;function Ut(t){if(we.useDeprecatedSynchronousErrorHandling){let e=!yt;if(e&&(yt={errorThrown:!1,error:null}),t(),e){let{errorThrown:r,error:n}=yt;if(yt=null,r)throw n}}else t()}function _u(t){we.useDeprecatedSynchronousErrorHandling&&yt&&(yt.errorThrown=!0,yt.error=t)}var Dt=class extends V{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Vr(e)&&e.add(this)):this.destination=Lp}static create(e,r,n){return new Ht(e,r,n)}next(e){this.isStopped?Bi(xu(e),this):this._next(e)}error(e){this.isStopped?Bi(Tu(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Bi(Su,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},kp=Function.prototype.bind;function $i(t,e){return kp.call(t,e)}var Ui=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(n){Br(n)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(n){Br(n)}else Br(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){Br(r)}}},Ht=class extends Dt{constructor(e,r,n){super();let o;if(I(e)||!e)o={next:e??void 0,error:r??void 0,complete:n??void 0};else{let i;this&&we.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),o={next:e.next&&$i(e.next,i),error:e.error&&$i(e.error,i),complete:e.complete&&$i(e.complete,i)}):o=e}this.destination=new Ui(o)}};function Br(t){we.useDeprecatedSynchronousErrorHandling?_u(t):$r(t)}function Fp(t){throw t}function Bi(t,e){let{onStoppedNotification:r}=we;r&&Bt.setTimeout(()=>r(t,e))}var Lp={closed:!0,next:jn,error:Fp,complete:jn};var zt=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ae(t){return t}function Hi(...t){return zi(t)}function zi(t){return t.length===0?ae:t.length===1?t[0]:function(r){return t.reduce((n,o)=>o(n),r)}}var O=(()=>{class t{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new t;return n.source=this,n.operator=r,n}subscribe(r,n,o){let i=Vp(r)?r:new Ht(r,n,o);return Ut(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return n=Nu(n),new n((o,i)=>{let s=new Ht({next:a=>{try{r(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[zt](){return this}pipe(...r){return zi(r)(this)}toPromise(r){return r=Nu(r),new r((n,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>n(i))})}}return t.create=e=>new t(e),t})();function Nu(t){var e;return(e=t??we.Promise)!==null&&e!==void 0?e:Promise}function jp(t){return t&&I(t.next)&&I(t.error)&&I(t.complete)}function Vp(t){return t&&t instanceof Dt||jp(t)&&Vr(t)}function Gi(t){return I(t?.lift)}function N(t){return e=>{if(Gi(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function _(t,e,r,n,o){return new qi(t,e,r,n,o)}var qi=class extends Dt{constructor(e,r,n,o,i,s){super(e),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(c){e.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function Gt(){return N((t,e)=>{let r=null;t._refCount++;let n=_(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){r=null;return}let o=t._connection,i=r;r=null,o&&(!i||o===i)&&o.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(r=t.connect())})}var qt=class extends O{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,Gi(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new V;let r=this.getSubject();e.add(this.source.subscribe(_(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=V.EMPTY)}return e}refCount(){return Gt()(this)}};var Au=$t(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var W=(()=>{class t extends O{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new Ur(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new Au}next(r){Ut(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){Ut(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){Ut(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:n,isStopped:o,observers:i}=this;return n||o?ji:(this.currentObservers=null,i.push(r),new V(()=>{this.currentObservers=null,vt(i,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:o,isStopped:i}=this;n?r.error(o):i&&r.complete()}asObservable(){let r=new O;return r.source=this,r}}return t.create=(e,r)=>new Ur(e,r),t})(),Ur=class extends W{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)}error(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)}complete(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)}_subscribe(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:ji}};var Q=class extends W{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let r=super._subscribe(e);return!r.closed&&e.next(this._value),r}getValue(){let{hasError:e,thrownError:r,_value:n}=this;if(e)throw r;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var Vn={now(){return(Vn.delegate||Date).now()},delegate:void 0};var Wi=class extends W{constructor(e=1/0,r=1/0,n=Vn){super(),this._bufferSize=e,this._windowTime=r,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=r===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,r)}next(e){let{isStopped:r,_buffer:n,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;r||(n.push(e),!o&&n.push(i.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let r=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:o}=this,i=o.slice();for(let s=0;st.complete());function Wr(t){return t&&I(t.schedule)}function Ru(t){return t[t.length-1]}function Ou(t){return I(Ru(t))?t.pop():void 0}function Xe(t){return Wr(Ru(t))?t.pop():void 0}function ku(t,e,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(l){try{u(n.next(l))}catch(d){s(d)}}function c(l){try{u(n.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((n=n.apply(t,e||[])).next())})}function Pu(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function wt(t){return this instanceof wt?(this.v=t,this):new wt(t)}function Fu(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){n[f]&&(o[f]=function(h){return new Promise(function(p,C){i.push([f,h,p,C])>1||a(f,h)})})}function a(f,h){try{c(n[f](h))}catch(p){d(i[0][3],p)}}function c(f){f.value instanceof wt?Promise.resolve(f.value.v).then(u,l):d(i[0][2],f)}function u(f){a("next",f)}function l(f){a("throw",f)}function d(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}function Lu(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof Pu=="function"?Pu(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(s){return new Promise(function(a,c){s=t[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var Zr=t=>t&&typeof t.length=="number"&&typeof t!="function";function Yr(t){return I(t?.then)}function Qr(t){return I(t[zt])}function Kr(t){return Symbol.asyncIterator&&I(t?.[Symbol.asyncIterator])}function Jr(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function $p(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Xr=$p();function eo(t){return I(t?.[Xr])}function to(t){return Fu(this,arguments,function*(){let r=t.getReader();try{for(;;){let{value:n,done:o}=yield wt(r.read());if(o)return yield wt(void 0);yield yield wt(n)}}finally{r.releaseLock()}})}function no(t){return I(t?.getReader)}function H(t){if(t instanceof O)return t;if(t!=null){if(Qr(t))return Bp(t);if(Zr(t))return Up(t);if(Yr(t))return Hp(t);if(Kr(t))return ju(t);if(eo(t))return zp(t);if(no(t))return Gp(t)}throw Jr(t)}function Bp(t){return new O(e=>{let r=t[zt]();if(I(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Up(t){return new O(e=>{for(let r=0;r{t.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,$r)})}function zp(t){return new O(e=>{for(let r of t)if(e.next(r),e.closed)return;e.complete()})}function ju(t){return new O(e=>{qp(t,e).catch(r=>e.error(r))})}function Gp(t){return ju(to(t))}function qp(t,e){var r,n,o,i;return ku(this,void 0,void 0,function*(){try{for(r=Lu(t);n=yield r.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){o={error:s}}finally{try{n&&!n.done&&(i=r.return)&&(yield i.call(r))}finally{if(o)throw o.error}}e.complete()})}function re(t,e,r,n=0,o=!1){let i=e.schedule(function(){r(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(i),!o)return i}function ro(t,e=0){return N((r,n)=>{r.subscribe(_(n,o=>re(n,t,()=>n.next(o),e),()=>re(n,t,()=>n.complete(),e),o=>re(n,t,()=>n.error(o),e)))})}function oo(t,e=0){return N((r,n)=>{n.add(t.schedule(()=>r.subscribe(n),e))})}function Vu(t,e){return H(t).pipe(oo(e),ro(e))}function $u(t,e){return H(t).pipe(oo(e),ro(e))}function Bu(t,e){return new O(r=>{let n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function Uu(t,e){return new O(r=>{let n;return re(r,e,()=>{n=t[Xr](),re(r,e,()=>{let o,i;try{({value:o,done:i}=n.next())}catch(s){r.error(s);return}i?r.complete():r.next(o)},0,!0)}),()=>I(n?.return)&&n.return()})}function io(t,e){if(!t)throw new Error("Iterable cannot be null");return new O(r=>{re(r,e,()=>{let n=t[Symbol.asyncIterator]();re(r,e,()=>{n.next().then(o=>{o.done?r.complete():r.next(o.value)})},0,!0)})})}function Hu(t,e){return io(to(t),e)}function zu(t,e){if(t!=null){if(Qr(t))return Vu(t,e);if(Zr(t))return Bu(t,e);if(Yr(t))return $u(t,e);if(Kr(t))return io(t,e);if(eo(t))return Uu(t,e);if(no(t))return Hu(t,e)}throw Jr(t)}function B(t,e){return e?zu(t,e):H(t)}function D(...t){let e=Xe(t);return B(t,e)}function Zt(t,e){let r=I(t)?t:()=>t,n=o=>o.error(r());return new O(e?o=>e.schedule(n,0,o):n)}function Yi(t){return!!t&&(t instanceof O||I(t.lift)&&I(t.subscribe))}var ze=$t(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Gu(t){return t instanceof Date&&!isNaN(t)}function A(t,e){return N((r,n)=>{let o=0;r.subscribe(_(n,i=>{n.next(t.call(e,i,o++))}))})}var{isArray:Wp}=Array;function Zp(t,e){return Wp(e)?t(...e):t(e)}function qu(t){return A(e=>Zp(t,e))}var{isArray:Yp}=Array,{getPrototypeOf:Qp,prototype:Kp,keys:Jp}=Object;function Wu(t){if(t.length===1){let e=t[0];if(Yp(e))return{args:e,keys:null};if(Xp(e)){let r=Jp(e);return{args:r.map(n=>e[n]),keys:r}}}return{args:t,keys:null}}function Xp(t){return t&&typeof t=="object"&&Qp(t)===Kp}function Zu(t,e){return t.reduce((r,n,o)=>(r[n]=e[o],r),{})}function Bn(...t){let e=Xe(t),r=Ou(t),{args:n,keys:o}=Wu(t);if(n.length===0)return B([],e);let i=new O(eg(n,e,o?s=>Zu(o,s):ae));return r?i.pipe(qu(r)):i}function eg(t,e,r=ae){return n=>{Yu(e,()=>{let{length:o}=t,i=new Array(o),s=o,a=o;for(let c=0;c{let u=B(t[c],e),l=!1;u.subscribe(_(n,d=>{i[c]=d,l||(l=!0,a--),a||n.next(r(i.slice()))},()=>{--s||n.complete()}))},n)},n)}}function Yu(t,e,r){t?re(r,t,e):e()}function Qu(t,e,r,n,o,i,s,a){let c=[],u=0,l=0,d=!1,f=()=>{d&&!c.length&&!u&&e.complete()},h=C=>u{i&&e.next(C),u++;let P=!1;H(r(C,l++)).subscribe(_(e,L=>{o?.(L),i?h(L):e.next(L)},()=>{P=!0},void 0,()=>{if(P)try{for(u--;c.length&&up(L)):p(L)}f()}catch(L){e.error(L)}}))};return t.subscribe(_(e,h,()=>{d=!0,f()})),()=>{a?.()}}function z(t,e,r=1/0){return I(e)?z((n,o)=>A((i,s)=>e(n,i,o,s))(H(t(n,o))),r):(typeof e=="number"&&(r=e),N((n,o)=>Qu(n,o,t,r)))}function Yt(t=1/0){return z(ae,t)}function Ku(){return Yt(1)}function Qt(...t){return Ku()(B(t,Xe(t)))}function so(t){return new O(e=>{H(t()).subscribe(e)})}function Ju(t=0,e,r=Zi){let n=-1;return e!=null&&(Wr(e)?r=e:n=e),new O(o=>{let i=Gu(t)?+t-r.now():t;i<0&&(i=0);let s=0;return r.schedule(function(){o.closed||(o.next(s++),0<=n?this.schedule(void 0,n):o.complete())},i)})}function he(t,e){return N((r,n)=>{let o=0;r.subscribe(_(n,i=>t.call(e,i,o++)&&n.next(i)))})}function et(t){return N((e,r)=>{let n=null,o=!1,i;n=e.subscribe(_(r,void 0,void 0,s=>{i=H(t(s,et(t)(e))),n?(n.unsubscribe(),n=null,i.subscribe(r)):o=!0})),o&&(n.unsubscribe(),n=null,i.subscribe(r))})}function Xu(t,e,r,n,o){return(i,s)=>{let a=r,c=e,u=0;i.subscribe(_(s,l=>{let d=u++;c=a?t(c,l,d):(a=!0,l),n&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function Ct(t,e){return I(e)?z(t,e,1):z(t,1)}function tt(t){return N((e,r)=>{let n=!1;e.subscribe(_(r,o=>{n=!0,r.next(o)},()=>{n||r.next(t),r.complete()}))})}function Ge(t){return t<=0?()=>ce:N((e,r)=>{let n=0;e.subscribe(_(r,o=>{++n<=t&&(r.next(o),t<=n&&r.complete())}))})}function Qi(t){return A(()=>t)}function ao(t=tg){return N((e,r)=>{let n=!1;e.subscribe(_(r,o=>{n=!0,r.next(o)},()=>n?r.complete():r.error(t())))})}function tg(){return new ze}function Un(t){return N((e,r)=>{try{e.subscribe(r)}finally{r.add(t)}})}function xe(t,e){let r=arguments.length>=2;return n=>n.pipe(t?he((o,i)=>t(o,i,n)):ae,Ge(1),r?tt(e):ao(()=>new ze))}function Kt(t){return t<=0?()=>ce:N((e,r)=>{let n=[];e.subscribe(_(r,o=>{n.push(o),t{for(let o of n)r.next(o);r.complete()},void 0,()=>{n=null}))})}function Ki(t,e){let r=arguments.length>=2;return n=>n.pipe(t?he((o,i)=>t(o,i,n)):ae,Kt(1),r?tt(e):ao(()=>new ze))}function Ji(t,e){return N(Xu(t,e,arguments.length>=2,!0))}function Xi(...t){let e=Xe(t);return N((r,n)=>{(e?Qt(t,r,e):Qt(t,r)).subscribe(n)})}function pe(t,e){return N((r,n)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&n.complete();r.subscribe(_(n,c=>{o?.unsubscribe();let u=0,l=i++;H(t(c,l)).subscribe(o=_(n,d=>n.next(e?e(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function es(t){return N((e,r)=>{H(t).subscribe(_(r,()=>r.complete(),jn)),!r.closed&&e.subscribe(r)})}function K(t,e,r){let n=I(t)||e||r?{next:t,error:e,complete:r}:t;return n?N((o,i)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;o.subscribe(_(i,c=>{var u;(u=n.next)===null||u===void 0||u.call(n,c),i.next(c)},()=>{var c;a=!1,(c=n.complete)===null||c===void 0||c.call(n),i.complete()},c=>{var u;a=!1,(u=n.error)===null||u===void 0||u.call(n,c),i.error(c)},()=>{var c,u;a&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(u=n.finalize)===null||u===void 0||u.call(n)}))}):ae}function el(t,e){return N((r,n)=>{let{leading:o=!0,trailing:i=!1}=e??{},s=!1,a=null,c=null,u=!1,l=()=>{c?.unsubscribe(),c=null,i&&(h(),u&&n.complete())},d=()=>{c=null,u&&n.complete()},f=p=>c=H(t(p)).subscribe(_(n,l,d)),h=()=>{if(s){s=!1;let p=a;a=null,n.next(p),!u&&f(p)}};r.subscribe(_(n,p=>{s=!0,a=p,!(c&&!c.closed)&&(o?h():f(p))},()=>{u=!0,!(i&&s&&c&&!c.closed)&&n.complete()}))})}function ng(t,e=qr,r){let n=Ju(t,e);return el(()=>n,r)}var Gl="https://g.co/ng/security#xss",v=class extends Error{constructor(e,r){super(ya(e,r)),this.code=e}};function ya(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function Xn(t){return{toString:t}.toString()}var co="__parameters__";function rg(t){return function(...r){if(t){let n=t(...r);for(let o in n)this[o]=n[o]}}}function ql(t,e,r){return Xn(()=>{let n=rg(e);function o(...i){if(this instanceof o)return n.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,u,l){let d=c.hasOwnProperty(co)?c[co]:Object.defineProperty(c,co,{value:[]})[co];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),c}}return r&&(o.prototype=Object.create(r.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}var bt=globalThis;function j(t){for(let e in t)if(t[e]===j)return e;throw Error("Could not find renamed property on target object.")}function oe(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(oe).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let r=e.indexOf(` +`);return r===-1?e:e.substring(0,r)}function ms(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var og=j({__forward_ref__:j});function Wl(t){return t.__forward_ref__=Wl,t.toString=function(){return oe(this())},t}function ee(t){return Zl(t)?t():t}function Zl(t){return typeof t=="function"&&t.hasOwnProperty(og)&&t.__forward_ref__===Wl}function y(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function er(t){return{providers:t.providers||[],imports:t.imports||[]}}function $o(t){return tl(t,Ql)||tl(t,Kl)}function Yl(t){return $o(t)!==null}function tl(t,e){return t.hasOwnProperty(e)?t[e]:null}function ig(t){let e=t&&(t[Ql]||t[Kl]);return e||null}function nl(t){return t&&(t.hasOwnProperty(rl)||t.hasOwnProperty(sg))?t[rl]:null}var Ql=j({\u0275prov:j}),rl=j({\u0275inj:j}),Kl=j({ngInjectableDef:j}),sg=j({ngInjectorDef:j}),b=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=y({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Jl(t){return t&&!!t.\u0275providers}var ag=j({\u0275cmp:j}),cg=j({\u0275dir:j}),ug=j({\u0275pipe:j}),lg=j({\u0275mod:j}),wo=j({\u0275fac:j}),Hn=j({__NG_ELEMENT_ID__:j}),ol=j({__NG_ENV_ID__:j});function tr(t){return typeof t=="string"?t:t==null?"":String(t)}function dg(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():tr(t)}function fg(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new v(-200,t)}function Da(t,e){throw new v(-201,!1)}var S=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(S||{}),vs;function Xl(){return vs}function ge(t){let e=vs;return vs=t,e}function ed(t,e,r){let n=$o(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&S.Optional)return null;if(e!==void 0)return e;Da(t,"Injector")}var hg={},zn=hg,ys="__NG_DI_FLAG__",Co="ngTempTokenPath",pg="ngTokenPath",gg=/\n/gm,mg="\u0275",il="__source",nn;function vg(){return nn}function nt(t){let e=nn;return nn=t,e}function yg(t,e=S.Default){if(nn===void 0)throw new v(-203,!1);return nn===null?ed(t,void 0,e):nn.get(t,e&S.Optional?null:void 0,e)}function E(t,e=S.Default){return(Xl()||yg)(ee(t),e)}function g(t,e=S.Default){return E(t,Bo(e))}function Bo(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Ds(t){let e=[];for(let r=0;r ");else if(typeof e=="object"){let i=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):oe(a)))}o=`{${i.join(", ")}}`}return`${r}${n?"("+n+")":""}[${o}]: ${t.replace(gg,` + `)}`}var nr=td(ql("Optional"),8);var Uo=td(ql("SkipSelf"),4);function on(t,e){let r=t.hasOwnProperty(wo);return r?t[wo]:null}function Ig(t,e,r){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(r)?wa(r,e):e(r))}function nd(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function Io(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function bg(t,e,r,n){let o=t.length;if(o==e)t.push(r,n);else if(o===1)t.push(n,t[0]),t[0]=r;else{for(o--,t.push(t[o-1],t[o]);o>e;){let i=o-2;t[o]=t[i],o--}t[e]=r,t[e+1]=n}}function Ca(t,e,r){let n=rr(t,e);return n>=0?t[n|1]=r:(n=~n,bg(t,n,e,r)),n}function ts(t,e){let r=rr(t,e);if(r>=0)return t[r|1]}function rr(t,e){return Mg(t,e,1)}function Mg(t,e,r){let n=0,o=t.length>>r;for(;o!==n;){let i=n+(o-n>>1),s=t[i<e?o=i:n=i+1}return~(o<e){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),n&2&&u!==d){if(Ce(n))return!1;s=!0}}}}return Ce(n)||s}function Ce(t){return(t&1)===0}function Ag(t,e,r,n){if(e===null)return-1;let o=0;if(n||!r){let i=!1;for(;o-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?o+="."+s:n&4&&(o+=" "+s);else o!==""&&!Ce(s)&&(e+=al(i,o),o=""),n=s,i=i||!Ce(n);r++}return o!==""&&(e+=al(i,o)),e}function Fg(t){return t.map(kg).join(",")}function Lg(t){let e=[],r=[],n=1,o=2;for(;n{let e=hd(t),r=U(m({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===id.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Ae.Emulated,styles:t.styles||ue,_:null,schemas:t.schemas||null,tView:null,id:""});pd(r);let n=t.dependencies;return r.directiveDefs=ul(n,!1),r.pipeDefs=ul(n,!0),r.id=$g(r),r})}function jg(t){return it(t)||ud(t)}function Vg(t){return t!==null}function or(t){return Xn(()=>({type:t.type,bootstrap:t.bootstrap||ue,declarations:t.declarations||ue,imports:t.imports||ue,exports:t.exports||ue,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function cl(t,e){if(t==null)return Gn;let r={};for(let n in t)if(t.hasOwnProperty(n)){let o=t[n],i,s,a=an.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),e?(r[i]=a!==an.None?[n,a]:n,e[i]=s):r[i]=n}return r}function ct(t){return Xn(()=>{let e=hd(t);return pd(e),e})}function it(t){return t[ag]||null}function ud(t){return t[cg]||null}function ld(t){return t[ug]||null}function dd(t){let e=it(t)||ud(t)||ld(t);return e!==null?e.standalone:!1}function fd(t,e){let r=t[lg]||null;if(!r&&e===!0)throw new Error(`Type ${oe(t)} does not have '\u0275mod' property.`);return r}function hd(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||Gn,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||ue,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:cl(t.inputs,e),outputs:cl(t.outputs),debugInfo:null}}function pd(t){t.features?.forEach(e=>e(t))}function ul(t,e){if(!t)return null;let r=e?ld:jg;return()=>(typeof t=="function"?t():t).map(n=>r(n)).filter(Vg)}function $g(t){let e=0,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let o of r)e=Math.imul(31,e)+o.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function ba(t){return{\u0275providers:t}}function Bg(...t){return{\u0275providers:gd(!0,t),\u0275fromNgModule:!0}}function gd(t,...e){let r=[],n=new Set,o,i=s=>{r.push(s)};return wa(e,s=>{let a=s;Cs(a,i,[],n)&&(o||=[],o.push(a))}),o!==void 0&&md(o,i),r}function md(t,e){for(let r=0;r{e(i,n)})}}function Cs(t,e,r,n){if(t=ee(t),!t)return!1;let o=null,i=nl(t),s=!i&&it(t);if(!i&&!s){let c=t.ngModule;if(i=nl(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=t}let a=n.has(o);if(s){if(a)return!1;if(n.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)Cs(u,e,r,n)}}else if(i){if(i.imports!=null&&!a){n.add(o);let u;try{wa(i.imports,l=>{Cs(l,e,r,n)&&(u||=[],u.push(l))})}finally{}u!==void 0&&md(u,e)}if(!a){let u=on(o)||(()=>new o);e({provide:o,useFactory:u,deps:ue},o),e({provide:od,useValue:o,multi:!0},o),e({provide:sn,useValue:()=>E(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=t;Ma(c,l=>{e(l,u)})}}else return!1;return o!==t&&t.providers!==void 0}function Ma(t,e){for(let r of t)Jl(r)&&(r=r.\u0275providers),Array.isArray(r)?Ma(r,e):e(r)}var Ug=j({provide:String,useValue:j});function vd(t){return t!==null&&typeof t=="object"&&Ug in t}function Hg(t){return!!(t&&t.useExisting)}function zg(t){return!!(t&&t.useFactory)}function cn(t){return typeof t=="function"}function Gg(t){return!!t.useClass}var Ho=new b(""),po={},qg={},ns;function Sa(){return ns===void 0&&(ns=new Eo),ns}var ie=class{},qn=class extends ie{get destroyed(){return this._destroyed}constructor(e,r,n,o){super(),this.parent=r,this.source=n,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Es(e,s=>this.processProvider(s)),this.records.set(rd,Jt(void 0,this)),o.has("environment")&&this.records.set(ie,Jt(void 0,this));let i=this.records.get(Ho);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(od,ue,S.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=R(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of r)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),R(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=nt(this),n=ge(void 0),o;try{return e()}finally{nt(r),ge(n)}}get(e,r=zn,n=S.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(ol))return e[ol](this);n=Bo(n);let o,i=nt(this),s=ge(void 0);try{if(!(n&S.SkipSelf)){let c=this.records.get(e);if(c===void 0){let u=Kg(e)&&$o(e);u&&this.injectableDefInScope(u)?c=Jt(Is(e),po):c=null,this.records.set(e,c)}if(c!=null)return this.hydrate(e,c)}let a=n&S.Self?Sa():this.parent;return r=n&S.Optional&&r===zn?null:r,a.get(e,r)}catch(a){if(a.name==="NullInjectorError"){if((a[Co]=a[Co]||[]).unshift(oe(e)),i)throw a;return wg(a,e,"R3InjectorError",this.source)}else throw a}finally{ge(s),nt(i)}}resolveInjectorInitializers(){let e=R(null),r=nt(this),n=ge(void 0),o;try{let i=this.get(sn,ue,S.Self);for(let s of i)s()}finally{nt(r),ge(n),R(e)}}toString(){let e=[],r=this.records;for(let n of r.keys())e.push(oe(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new v(205,!1)}processProvider(e){e=ee(e);let r=cn(e)?e:ee(e&&e.provide),n=Zg(e);if(!cn(e)&&e.multi===!0){let o=this.records.get(r);o||(o=Jt(void 0,po,!0),o.factory=()=>Ds(o.multi),this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,n)}hydrate(e,r){let n=R(null);try{return r.value===po&&(r.value=qg,r.value=r.factory()),typeof r.value=="object"&&r.value&&Qg(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{R(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let r=ee(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function Is(t){let e=$o(t),r=e!==null?e.factory:on(t);if(r!==null)return r;if(t instanceof b)throw new v(204,!1);if(t instanceof Function)return Wg(t);throw new v(204,!1)}function Wg(t){if(t.length>0)throw new v(204,!1);let r=ig(t);return r!==null?()=>r.factory(t):()=>new t}function Zg(t){if(vd(t))return Jt(void 0,t.useValue);{let e=yd(t);return Jt(e,po)}}function yd(t,e,r){let n;if(cn(t)){let o=ee(t);return on(o)||Is(o)}else if(vd(t))n=()=>ee(t.useValue);else if(zg(t))n=()=>t.useFactory(...Ds(t.deps||[]));else if(Hg(t))n=()=>E(ee(t.useExisting));else{let o=ee(t&&(t.useClass||t.provide));if(Yg(t))n=()=>new o(...Ds(t.deps));else return on(o)||Is(o)}return n}function Jt(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function Yg(t){return!!t.deps}function Qg(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function Kg(t){return typeof t=="function"||typeof t=="object"&&t instanceof b}function Es(t,e){for(let r of t)Array.isArray(r)?Es(r,e):r&&Jl(r)?Es(r.\u0275providers,e):e(r)}function Me(t,e){t instanceof qn&&t.assertNotDestroyed();let r,n=nt(t),o=ge(void 0);try{return e()}finally{nt(n),ge(o)}}function Dd(){return Xl()!==void 0||vg()!=null}function Jg(t){if(!Dd())throw new v(-203,!1)}function Xg(t){return typeof t=="function"}var We=0,T=1,w=2,X=3,Ee=4,Se=5,bo=6,Wn=7,be=8,un=9,Re=10,Z=11,Zn=12,ll=13,vn=14,Oe=15,Mt=16,Xt=17,qe=18,zo=19,wd=20,rt=21,rs=22,St=23,Pe=25,Cd=1;var Tt=7,Mo=8,ln=9,le=10,So=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(So||{});function ot(t){return Array.isArray(t)&&typeof t[Cd]=="object"}function Ze(t){return Array.isArray(t)&&t[Cd]===!0}function Ta(t){return(t.flags&4)!==0}function Go(t){return t.componentOffset>-1}function qo(t){return(t.flags&1)===1}function yn(t){return!!t.template}function bs(t){return(t[w]&512)!==0}var Ms=class{constructor(e,r,n){this.previousValue=e,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function Id(t,e,r,n){e!==null?e.applyValueToInputSignal(e,n):t[r]=n}function ir(){return Ed}function Ed(t){return t.type.prototype.ngOnChanges&&(t.setInput=tm),em}ir.ngInherit=!0;function em(){let t=Md(this),e=t?.current;if(e){let r=t.previous;if(r===Gn)t.previous=e;else for(let n in e)r[n]=e[n];t.current=null,this.ngOnChanges(e)}}function tm(t,e,r,n,o){let i=this.declaredInputs[n],s=Md(t)||nm(t,{previous:Gn,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new Ms(u&&u.currentValue,r,c===Gn),Id(t,e,o,r)}var bd="__ngSimpleChanges__";function Md(t){return t[bd]||null}function nm(t,e){return t[bd]=e}var dl=null;var _e=function(t,e,r){dl?.(t,e,r)},rm="svg",om="math";function ke(t){for(;Array.isArray(t);)t=t[We];return t}function Sd(t,e){return ke(e[t])}function me(t,e){return ke(e[t.index])}function Td(t,e){return t.data[e]}function im(t,e){return t[e]}function ut(t,e){let r=e[t];return ot(r)?r:r[We]}function sm(t){return(t[w]&4)===4}function xa(t){return(t[w]&128)===128}function am(t){return Ze(t[X])}function dn(t,e){return e==null?null:t[e]}function xd(t){t[Xt]=0}function cm(t){t[w]&1024||(t[w]|=1024,xa(t)&&Wo(t))}function um(t,e){for(;t>0;)e=e[vn],t--;return e}function Yn(t){return!!(t[w]&9216||t[St]?.dirty)}function Ss(t){t[Re].changeDetectionScheduler?.notify(7),t[w]&64&&(t[w]|=1024),Yn(t)&&Wo(t)}function Wo(t){t[Re].changeDetectionScheduler?.notify(0);let e=Qn(t);for(;e!==null&&!(e[w]&8192||(e[w]|=8192,!xa(e)));)e=Qn(e)}function _d(t,e){if((t[w]&256)===256)throw new v(911,!1);t[rt]===null&&(t[rt]=[]),t[rt].push(e)}function lm(t,e){if(t[rt]===null)return;let r=t[rt].indexOf(e);r!==-1&&t[rt].splice(r,1)}function Qn(t){let e=t[X];return Ze(e)?e[X]:e}var x={lFrame:Vd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Nd=!1;function dm(){return x.lFrame.elementDepthCount}function fm(){x.lFrame.elementDepthCount++}function hm(){x.lFrame.elementDepthCount--}function Ad(){return x.bindingsEnabled}function pm(){return x.skipHydrationRootTNode!==null}function gm(t){return x.skipHydrationRootTNode===t}function mm(){x.skipHydrationRootTNode=null}function k(){return x.lFrame.lView}function te(){return x.lFrame.tView}function Px(t){return x.lFrame.contextLView=t,t[be]}function kx(t){return x.lFrame.contextLView=null,t}function ne(){let t=Rd();for(;t!==null&&t.type===64;)t=t.parent;return t}function Rd(){return x.lFrame.currentTNode}function vm(){let t=x.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function kt(t,e){let r=x.lFrame;r.currentTNode=t,r.isParent=e}function _a(){return x.lFrame.isParent}function Od(){x.lFrame.isParent=!1}function ym(){return x.lFrame.contextLView}function Pd(){return Nd}function fl(t){Nd=t}function kd(){let t=x.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Dm(t){return x.lFrame.bindingIndex=t}function Na(){return x.lFrame.bindingIndex++}function wm(t){let e=x.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function Cm(){return x.lFrame.inI18n}function Im(t,e){let r=x.lFrame;r.bindingIndex=r.bindingRootIndex=t,Ts(e)}function Em(){return x.lFrame.currentDirectiveIndex}function Ts(t){x.lFrame.currentDirectiveIndex=t}function bm(t){let e=x.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function Fd(){return x.lFrame.currentQueryIndex}function Aa(t){x.lFrame.currentQueryIndex=t}function Mm(t){let e=t[T];return e.type===2?e.declTNode:e.type===1?t[Se]:null}function Ld(t,e,r){if(r&S.SkipSelf){let o=e,i=t;for(;o=o.parent,o===null&&!(r&S.Host);)if(o=Mm(i),o===null||(i=i[vn],o.type&10))break;if(o===null)return!1;e=o,t=i}let n=x.lFrame=jd();return n.currentTNode=e,n.lView=t,!0}function Ra(t){let e=jd(),r=t[T];x.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function jd(){let t=x.lFrame,e=t===null?null:t.child;return e===null?Vd(t):e}function Vd(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function $d(){let t=x.lFrame;return x.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Bd=$d;function Oa(){let t=$d();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Sm(t){return(x.lFrame.contextLView=um(t,x.lFrame.contextLView))[be]}function Dn(){return x.lFrame.selectedIndex}function xt(t){x.lFrame.selectedIndex=t}function Ud(){let t=x.lFrame;return Td(t.tView,t.selectedIndex)}function Tm(){return x.lFrame.currentNamespace}var Hd=!0;function Zo(){return Hd}function Yo(t){Hd=t}function xm(t,e,r){let{ngOnChanges:n,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(n){let s=Ed(e);(r.preOrderHooks??=[]).push(t,s),(r.preOrderCheckHooks??=[]).push(t,s)}o&&(r.preOrderHooks??=[]).push(0-t,o),i&&((r.preOrderHooks??=[]).push(t,i),(r.preOrderCheckHooks??=[]).push(t,i))}function Qo(t,e){for(let r=e.directiveStart,n=e.directiveEnd;r=n)break}else e[c]<0&&(t[Xt]+=65536),(a>14>16&&(t[w]&3)===e&&(t[w]+=16384,hl(a,i)):hl(a,i)}var rn=-1,_t=class{constructor(e,r,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function Nm(t){return t instanceof _t}function Am(t){return(t.flags&8)!==0}function Rm(t){return(t.flags&16)!==0}function Gd(t){return t!==rn}function To(t){return t&32767}function Om(t){return t>>16}function xo(t,e){let r=Om(t),n=e;for(;r>0;)n=n[vn],r--;return n}var xs=!0;function pl(t){let e=xs;return xs=t,e}var Pm=256,qd=Pm-1,Wd=5,km=0,Ne={};function Fm(t,e,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(Hn)&&(n=r[Hn]),n==null&&(n=r[Hn]=km++);let o=n&qd,i=1<>Wd)]|=i}function _o(t,e){let r=Zd(t,e);if(r!==-1)return r;let n=e[T];n.firstCreatePass&&(t.injectorIndex=e.length,is(n.data,t),is(e,null),is(n.blueprint,null));let o=Pa(t,e),i=t.injectorIndex;if(Gd(o)){let s=To(o),a=xo(o,e),c=a[T].data;for(let u=0;u<8;u++)e[i+u]=a[s+u]|c[s+u]}return e[i+8]=o,i}function is(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Zd(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function Pa(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,n=null,o=e;for(;o!==null;){if(n=Xd(o),n===null)return rn;if(r++,o=o[vn],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return rn}function _s(t,e,r){Fm(t,e,r)}function Lm(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let r=t.attrs;if(r){let n=r.length,o=0;for(;o>20,d=n?a:a+l,f=o?a+l:u;for(let h=d;h=c&&p.type===r)return h}if(o){let h=s[c];if(h&&yn(h)&&h.type===r)return c}return null}function Nt(t,e,r,n){let o=t[r],i=e.data;if(Nm(o)){let s=o;s.resolving&&fg(dg(i[r]));let a=pl(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?ge(s.injectImpl):null,l=Ld(t,n,S.Default);try{o=t[r]=s.factory(void 0,i,t,n),e.firstCreatePass&&r>=n.directiveStart&&xm(r,i[r],e)}finally{u!==null&&ge(u),pl(a),s.resolving=!1,Bd()}}return o}function Vm(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Hn)?t[Hn]:void 0;return typeof e=="number"?e>=0?e&qd:$m:e}function gl(t,e,r){let n=1<>Wd)]&n)}function ml(t,e){return!(t&S.Self)&&!(t&S.Host&&e)}var Et=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,n){return Kd(this._tNode,this._lView,e,Bo(n),r)}};function $m(){return new Et(ne(),k())}function ka(t){return Xn(()=>{let e=t.prototype.constructor,r=e[wo]||Ns(e),n=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){let i=o[wo]||Ns(o);if(i&&i!==r)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Ns(t){return Zl(t)?()=>{let e=Ns(ee(t));return e&&e()}:on(t)}function Bm(t,e,r,n,o){let i=t,s=e;for(;i!==null&&s!==null&&s[w]&2048&&!(s[w]&512);){let a=Jd(i,s,r,n|S.Self,Ne);if(a!==Ne)return a;let c=i.parent;if(!c){let u=s[wd];if(u){let l=u.get(r,Ne,n);if(l!==Ne)return l}c=Xd(s),s=s[vn]}i=c}return o}function Xd(t){let e=t[T],r=e.type;return r===2?e.declTNode:r===1?t[Se]:null}function Fa(t){return Lm(ne(),t)}function vl(t,e=null,r=null,n){let o=ef(t,e,r,n);return o.resolveInjectorInitializers(),o}function ef(t,e=null,r=null,n,o=new Set){let i=[r||ue,Bg(t)];return n=n||(typeof t=="object"?void 0:oe(t)),new qn(i,e||Sa(),n||null,o)}var It=class It{static create(e,r){if(Array.isArray(e))return vl({name:""},r,e,"");{let n=e.name??"";return vl({name:n},e.parent,e.providers,n)}}};It.THROW_IF_NOT_FOUND=zn,It.NULL=new Eo,It.\u0275prov=y({token:It,providedIn:"any",factory:()=>E(rd)}),It.__NG_ELEMENT_ID__=-1;var Fe=It;var Um=new b("");Um.__NG_ELEMENT_ID__=t=>{let e=ne();if(e===null)throw new v(204,!1);if(e.type&2)return e.value;if(t&S.Optional)return null;throw new v(204,!1)};var Hm="ngOriginalError";function ss(t){return t[Hm]}var Le=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&ss(e);for(;r&&ss(r);)r=ss(r);return r||null}},tf=new b("",{providedIn:"root",factory:()=>g(Le).handleError.bind(void 0)}),La=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=zm,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),As=class extends La{constructor(e){super(),this._lView=e}onDestroy(e){return _d(this._lView,e),()=>lm(this._lView,e)}};function zm(){return new As(k())}function Gm(){return wn(ne(),k())}function wn(t,e){return new Ve(me(t,e))}var Ve=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=Gm;let t=e;return t})();function qm(t){return t instanceof Ve?t.nativeElement:t}var Rs=class extends W{constructor(e=!1){super(),this.destroyRef=void 0,this.__isAsync=e,Dd()&&(this.destroyRef=g(La,{optional:!0})??void 0)}emit(e){let r=R(null);try{super.next(e)}finally{R(r)}}subscribe(e,r,n){let o=e,i=r||(()=>null),s=n;if(e&&typeof e=="object"){let c=e;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=as(i),o&&(o=as(o)),s&&(s=as(s)));let a=super.subscribe({next:o,error:i,complete:s});return e instanceof V&&e.add(a),a}};function as(t){return e=>{setTimeout(t,void 0,e)}}var J=Rs;function Wm(){return this._results[Symbol.iterator]()}var Os=class t{get changes(){return this._changes??=new J}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let r=t.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=Wm)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,r){return this._results.reduce(e,r)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,r){this.dirty=!1;let n=Eg(e);(this._changesDetected=!Ig(this._results,n,r))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function nf(t){return(t.flags&128)===128}var rf=new Map,Zm=0;function Ym(){return Zm++}function Qm(t){rf.set(t[zo],t)}function Km(t){rf.delete(t[zo])}var yl="__ngContext__";function st(t,e){ot(e)?(t[yl]=e[zo],Qm(e)):t[yl]=e}function of(t){return af(t[Zn])}function sf(t){return af(t[Ee])}function af(t){for(;t!==null&&!Ze(t);)t=t[Ee];return t}var Ps;function cf(t){Ps=t}function uf(){if(Ps!==void 0)return Ps;if(typeof document<"u")return document;throw new v(210,!1)}var ja=new b("",{providedIn:"root",factory:()=>Jm}),Jm="ng",Va=new b(""),lt=new b("",{providedIn:"platform",factory:()=>"unknown"});var $a=new b("",{providedIn:"root",factory:()=>uf().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Xm="h",ev="b";var tv=()=>null;function Ba(t,e,r=!1){return tv(t,e,r)}var lf=!1,nv=new b("",{providedIn:"root",factory:()=>lf});var uo;function rv(){if(uo===void 0&&(uo=null,bt.trustedTypes))try{uo=bt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return uo}function Ko(t){return rv()?.createHTML(t)||t}var lo;function df(){if(lo===void 0&&(lo=null,bt.trustedTypes))try{lo=bt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return lo}function Dl(t){return df()?.createHTML(t)||t}function wl(t){return df()?.createScriptURL(t)||t}var No=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Gl})`}};function Cn(t){return t instanceof No?t.changingThisBreaksApplicationSecurity:t}function Jo(t,e){let r=ov(t);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${Gl})`)}return r===e}function ov(t){return t instanceof No&&t.getTypeName()||null}function iv(t){let e=new Fs(t);return sv()?new ks(e):e}var ks=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{let r=new window.DOMParser().parseFromString(Ko(e),"text/html").body;return r===null?this.inertDocumentHelper.getInertBodyElement(e):(r.removeChild(r.firstChild),r)}catch{return null}}},Fs=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let r=this.inertDocument.createElement("template");return r.innerHTML=Ko(e),r}};function sv(){try{return!!new window.DOMParser().parseFromString(Ko(""),"text/html")}catch{return!1}}var av=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ua(t){return t=String(t),t.match(av)?t:"unsafe:"+t}function Ye(t){let e={};for(let r of t.split(","))e[r]=!0;return e}function sr(...t){let e={};for(let r of t)for(let n in r)r.hasOwnProperty(n)&&(e[n]=!0);return e}var ff=Ye("area,br,col,hr,img,wbr"),hf=Ye("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),pf=Ye("rp,rt"),cv=sr(pf,hf),uv=sr(hf,Ye("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),lv=sr(pf,Ye("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Cl=sr(ff,uv,lv,cv),gf=Ye("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),dv=Ye("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),fv=Ye("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),hv=sr(gf,dv,fv),pv=Ye("script,style,template"),Ls=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let r=e.firstChild,n=!0,o=[];for(;r;){if(r.nodeType===Node.ELEMENT_NODE?n=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,n&&r.firstChild){o.push(r),r=vv(r);continue}for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let i=mv(r);if(i){r=i;break}r=o.pop()}}return this.buf.join("")}startElement(e){let r=Il(e).toLowerCase();if(!Cl.hasOwnProperty(r))return this.sanitizedSomething=!0,!pv.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);let n=e.attributes;for(let o=0;o"),!0}endElement(e){let r=Il(e).toLowerCase();Cl.hasOwnProperty(r)&&!ff.hasOwnProperty(r)&&(this.buf.push(""))}chars(e){this.buf.push(El(e))}};function gv(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function mv(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw mf(e);return e}function vv(t){let e=t.firstChild;if(e&&gv(t,e))throw mf(e);return e}function Il(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function mf(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var yv=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Dv=/([^\#-~ |!])/g;function El(t){return t.replace(/&/g,"&").replace(yv,function(e){let r=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+((r-55296)*1024+(n-56320)+65536)+";"}).replace(Dv,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var fo;function vf(t,e){let r=null;try{fo=fo||iv(t);let n=e?String(e):"";r=fo.getInertBodyElement(n);let o=5,i=n;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,n=i,i=r.innerHTML,r=fo.getInertBodyElement(n)}while(n!==i);let a=new Ls().sanitizeChildren(bl(r)||r);return Ko(a)}finally{if(r){let n=bl(r)||r;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function bl(t){return"content"in t&&wv(t)?t.content:null}function wv(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var ar=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(ar||{});function Fx(t){let e=Ha();return e?Dl(e.sanitize(ar.HTML,t)||""):Jo(t,"HTML")?Dl(Cn(t)):vf(uf(),tr(t))}function Cv(t){let e=Ha();return e?e.sanitize(ar.URL,t)||"":Jo(t,"URL")?Cn(t):Ua(tr(t))}function Iv(t){let e=Ha();if(e)return wl(e.sanitize(ar.RESOURCE_URL,t)||"");if(Jo(t,"ResourceURL"))return wl(Cn(t));throw new v(904,!1)}function Ev(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?Iv:Cv}function yf(t,e,r){return Ev(e,r)(t)}function Ha(){let t=k();return t&&t[Re].sanitizer}var bv=/^>|^->||--!>|)/g,Sv="\u200B$1\u200B";function Tv(t){return t.replace(bv,e=>e.replace(Mv,Sv))}function Lx(t){return t.ownerDocument.defaultView}function Df(t){return t instanceof Function?t():t}function xv(t){return(t??g(Fe)).get(lt)==="browser"}var je=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(je||{}),_v;function za(t,e){return _v(t,e)}function en(t,e,r,n,o){if(n!=null){let i,s=!1;Ze(n)?i=n:ot(n)&&(s=!0,n=n[We]);let a=ke(n);t===0&&r!==null?o==null?bf(e,r,a):Ao(e,r,a,o||null,!0):t===1&&r!==null?Ao(e,r,a,o||null,!0):t===2?qv(e,a,s):t===3&&e.destroyNode(a),i!=null&&Zv(e,t,i,r,o)}}function Nv(t,e){return t.createText(e)}function Av(t,e,r){t.setValue(e,r)}function Rv(t,e){return t.createComment(Tv(e))}function wf(t,e,r){return t.createElement(e,r)}function Ov(t,e){Cf(t,e),e[We]=null,e[Se]=null}function Pv(t,e,r,n,o,i){n[We]=o,n[Se]=e,ei(t,n,r,1,o,i)}function Cf(t,e){e[Re].changeDetectionScheduler?.notify(8),ei(t,e,e[Z],2,null,null)}function kv(t){let e=t[Zn];if(!e)return cs(t[T],t);for(;e;){let r=null;if(ot(e))r=e[Zn];else{let n=e[le];n&&(r=n)}if(!r){for(;e&&!e[Ee]&&e!==t;)ot(e)&&cs(e[T],e),e=e[X];e===null&&(e=t),ot(e)&&cs(e[T],e),r=e&&e[Ee]}e=r}}function Fv(t,e,r,n){let o=le+n,i=r.length;n>0&&(r[o-1][Ee]=e),n0&&(t[r-1][Ee]=n[Ee]);let i=Io(t,le+e);Ov(n[T],n);let s=i[qe];s!==null&&s.detachView(i[T]),n[X]=null,n[Ee]=null,n[w]&=-129}return n}function Ef(t,e){if(!(e[w]&256)){let r=e[Z];r.destroyNode&&ei(t,e,r,3,null,null),kv(e)}}function cs(t,e){if(e[w]&256)return;let r=R(null);try{e[w]&=-129,e[w]|=256,e[St]&&Eu(e[St]),jv(t,e),Lv(t,e),e[T].type===1&&e[Z].destroy();let n=e[Mt];if(n!==null&&Ze(e[X])){n!==e[X]&&Ga(n,e);let o=e[qe];o!==null&&o.detachView(t)}Km(e)}finally{R(r)}}function Lv(t,e){let r=t.cleanup,n=e[Wn];if(r!==null)for(let i=0;i=0?n[s]():n[-s].unsubscribe(),i+=2}else{let s=n[r[i+1]];r[i].call(s)}n!==null&&(e[Wn]=null);let o=e[rt];if(o!==null){e[rt]=null;for(let i=0;i-1){let{encapsulation:i}=t.data[n.directiveStart+o];if(i===Ae.None||i===Ae.Emulated)return null}return me(n,r)}}function Ao(t,e,r,n,o){t.insertBefore(e,r,n,o)}function bf(t,e,r){t.appendChild(e,r)}function Ml(t,e,r,n,o){n!==null?Ao(t,e,r,n,o):bf(t,e,r)}function Bv(t,e,r,n){t.removeChild(e,r,n)}function qa(t,e){return t.parentNode(e)}function Uv(t,e){return t.nextSibling(e)}function Hv(t,e,r){return Gv(t,e,r)}function zv(t,e,r){return t.type&40?me(t,r):null}var Gv=zv,Sl;function Xo(t,e,r,n){let o=Vv(t,n,e),i=e[Z],s=n.parent||e[Se],a=Hv(s,n,e);if(o!=null)if(Array.isArray(r))for(let c=0;cPe&&xf(t,e,Pe,!1),_e(s?2:0,o),r(n,o)}finally{xt(i),_e(s?3:1,o)}}function Za(t,e,r){if(Ta(e)){let n=R(null);try{let o=e.directiveStart,i=e.directiveEnd;for(let s=o;snull;function ry(t,e,r,n){let o=jf(e);o.push(r),t.firstCreatePass&&Vf(t).push(n,o.length-1)}function oy(t,e,r,n,o,i){let s=e?e.injectorIndex:-1,a=0;return pm()&&(a|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Tl(t,e,r,n,o){for(let i in e){if(!e.hasOwnProperty(i))continue;let s=e[i];if(s===void 0)continue;n??={};let a,c=an.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=i;if(o!==null){if(!o.hasOwnProperty(i))continue;u=o[i]}t===0?xl(n,r,u,a,c):xl(n,r,u,a)}return n}function xl(t,e,r,n,o){let i;t.hasOwnProperty(r)?(i=t[r]).push(e,n):i=t[r]=[e,n],o!==void 0&&i.push(o)}function iy(t,e,r){let n=e.directiveStart,o=e.directiveEnd,i=t.data,s=e.attrs,a=[],c=null,u=null;for(let l=n;l0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function dy(t,e,r,n){let o=r.directiveStart,i=r.directiveEnd;Go(r)&&yy(e,r,t.data[o+r.componentOffset]),t.firstCreatePass||_o(r,e),st(n,e);let s=r.initialInputs;for(let a=o;a{Wo(t.lView)},consumerOnSignalRead(){this.lView[St]=this}}),Py=100;function Uf(t,e=!0,r=0){let n=t[Re],o=n.rendererFactory,i=!1;i||o.begin?.();try{ky(t,r)}catch(s){throw e&&$f(t,s),s}finally{i||(o.end?.(),n.inlineEffectRunner?.flush())}}function ky(t,e){let r=Pd();try{fl(!0),Us(t,e);let n=0;for(;Yn(t);){if(n===Py)throw new v(103,!1);n++,Us(t,1)}}finally{fl(r)}}function Fy(t,e,r,n){let o=e[w];if((o&256)===256)return;let i=!1,s=!1;!i&&e[Re].inlineEffectRunner?.flush(),Ra(e);let a=null,c=null;!i&&Ly(t)&&(c=Ny(e),a=Cu(c));try{xd(e),Dm(t.bindingStartIndex),r!==null&&Rf(t,e,r,2,n);let u=(o&3)===3;if(!i)if(u){let f=t.preOrderCheckHooks;f!==null&&go(e,f,null)}else{let f=t.preOrderHooks;f!==null&&mo(e,f,0,null),os(e,0)}if(s||jy(e),Hf(e,0),t.contentQueries!==null&&Lf(t,e),!i)if(u){let f=t.contentCheckHooks;f!==null&&go(e,f)}else{let f=t.contentHooks;f!==null&&mo(e,f,1),os(e,1)}Kv(t,e);let l=t.components;l!==null&&Gf(e,l,0);let d=t.viewQuery;if(d!==null&&Bs(2,d,n),!i)if(u){let f=t.viewCheckHooks;f!==null&&go(e,f)}else{let f=t.viewHooks;f!==null&&mo(e,f,2),os(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[rs]){for(let f of e[rs])f();e[rs]=null}i||(e[w]&=-73)}catch(u){throw i||Wo(e),u}finally{c!==null&&(Iu(c,a),Ry(c)),Oa()}}function Ly(t){return t.type!==2}function Hf(t,e){for(let r=of(t);r!==null;r=sf(r))for(let n=le;n-1&&(js(e,n),Io(r,n))}this._attachedToViewContainer=!1}Ef(this._lView[T],this._lView)}onDestroy(e){_d(this._lView,e)}markForCheck(){tc(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[w]&=-129}reattach(){Ss(this._lView),this._lView[w]|=128}detectChanges(){this._lView[w]|=1024,Uf(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new v(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=bs(this._lView),r=this._lView[Mt];r!==null&&!e&&Ga(r,this._lView),Cf(this._lView[T],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new v(902,!1);this._appRef=e;let r=bs(this._lView),n=this._lView[Mt];n!==null&&!r&&If(n,this._lView),Ss(this._lView)}},Rt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Uy;let t=e;return t})(),$y=Rt,By=class extends $y{constructor(e,r,n){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,n){let o=Ty(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:n});return new At(o)}};function Uy(){return ri(ne(),k())}function ri(t,e){return t.type&4?new By(e,t,wn(t,e)):null}var $x=new RegExp(`^(\\d+)*(${ev}|${Xm})*(.*)`);var Hy=()=>null;function Nl(t,e){return Hy(t,e)}var fn=class{},qf=new b("",{providedIn:"root",factory:()=>!1});var Wf=new b(""),Hs=class{},Oo=class{};function zy(t){let e=Error(`No component factory found for ${oe(t)}.`);return e[Gy]=t,e}var Gy="ngComponent";var zs=class{resolveComponentFactory(e){throw zy(e)}},gc=class gc{};gc.NULL=new zs;var hn=gc,pn=class{},In=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>qy();let t=e;return t})();function qy(){let t=k(),e=ne(),r=ut(e.index,t);return(ot(r)?r:t)[Z]}var Wy=(()=>{let e=class e{};e.\u0275prov=y({token:e,providedIn:"root",factory:()=>null});let t=e;return t})(),us={};var Al=new Set;function nc(t){Al.has(t)||(Al.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function Zf(t){let e=!0;return setTimeout(()=>{e&&(e=!1,t())}),typeof bt.requestAnimationFrame=="function"&&bt.requestAnimationFrame(()=>{e&&(e=!1,t())}),()=>{e=!1}}function Rl(t){let e=!0;return queueMicrotask(()=>{e&&t()}),()=>{e=!1}}function Ol(...t){}var $=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new J(!1),this.onMicrotaskEmpty=new J(!1),this.onStable=new J(!1),this.onError=new J(!1),typeof Zone>"u")throw new v(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!n&&r,o.shouldCoalesceRunChangeDetection=n,o.callbackScheduled=!1,Qy(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new v(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new v(909,!1)}run(e,r,n){return this._inner.run(e,r,n)}runTask(e,r,n,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,e,Zy,Ol,Ol);try{return i.runTask(s,r,n)}finally{i.cancelTask(s)}}runGuarded(e,r,n){return this._inner.runGuarded(e,r,n)}runOutsideAngular(e){return this._outer.run(e)}},Zy={};function rc(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Yy(t){t.isCheckStableRunning||t.callbackScheduled||(t.callbackScheduled=!0,Zone.root.run(()=>{Zf(()=>{t.callbackScheduled=!1,Gs(t),t.isCheckStableRunning=!0,rc(t),t.isCheckStableRunning=!1})}),Gs(t))}function Qy(t){let e=()=>{Yy(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,o,i,s,a)=>{if(Ky(a))return r.invokeTask(o,i,s,a);try{return Pl(t),r.invokeTask(o,i,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&i.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),kl(t)}},onInvoke:(r,n,o,i,s,a,c)=>{try{return Pl(t),r.invoke(o,i,s,a,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!Jy(a)&&e(),kl(t)}},onHasTask:(r,n,o,i)=>{r.hasTask(o,i),n===o&&(i.change=="microTask"?(t._hasPendingMicrotasks=i.microTask,Gs(t),rc(t)):i.change=="macroTask"&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(r,n,o,i)=>(r.handleError(o,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}function Gs(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Pl(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function kl(t){t._nesting--,rc(t)}var qs=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new J,this.onMicrotaskEmpty=new J,this.onStable=new J,this.onError=new J}run(e,r,n){return e.apply(r,n)}runGuarded(e,r,n){return e.apply(r,n)}runOutsideAngular(e){return e()}runTask(e,r,n,o){return e.apply(r,n)}};function Ky(t){return Yf(t,"__ignore_ng_zone__")}function Jy(t){return Yf(t,"__scheduler_tick__")}function Yf(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var tn=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(tn||{}),Xy={destroy(){}};function oi(t,e){!e&&Jg(oi);let r=e?.injector??g(Fe);if(!xv(r))return Xy;nc("NgAfterNextRender");let n=r.get(oc),o=n.handler??=new Zs,i=e?.phase??tn.MixedReadWrite,s=()=>{o.unregister(c),a()},a=r.get(La).onDestroy(s),c=Me(r,()=>new Ws(i,()=>{s(),t()}));return o.register(c),{destroy:s}}var Ws=class{constructor(e,r){this.phase=e,this.callbackFn=r,this.zone=g($),this.errorHandler=g(Le,{optional:!0}),g(fn,{optional:!0})?.notify(6)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(e){this.errorHandler?.handleError(e)}}},Zs=class{constructor(){this.executingCallbacks=!1,this.buckets={[tn.EarlyRead]:new Set,[tn.Write]:new Set,[tn.MixedReadWrite]:new Set,[tn.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let r of e)r.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},oc=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let o of n)o()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=y({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function Po(t,e,r){let n=r?t.styles:null,o=r?t.classes:null,i=0;if(e!==null)for(let s=0;s0&&Sf(t,r,i.join(" "))}}function sD(t,e,r){let n=t.projection=[];for(let o=0;o{let e=class e{};e.__NG_ELEMENT_ID__=cD;let t=e;return t})();function cD(){let t=ne();return Kf(t,k())}var uD=ft,Qf=class extends uD{constructor(e,r,n){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=n}get element(){return wn(this._hostTNode,this._hostLView)}get injector(){return new Et(this._hostTNode,this._hostLView)}get parentInjector(){let e=Pa(this._hostTNode,this._hostLView);if(Gd(e)){let r=xo(e,this._hostLView),n=To(e),o=r[T].data[n+8];return new Et(o,r)}else return new Et(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=Ll(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-le}createEmbeddedView(e,r,n){let o,i;typeof n=="number"?o=n:n!=null&&(o=n.index,i=n.injector);let s=Nl(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},i,s);return this.insertImpl(a,o,_l(this._hostTNode,s)),a}createComponent(e,r,n,o,i){let s=e&&!Xg(e),a;if(s)a=r;else{let p=r||{};a=p.index,n=p.injector,o=p.projectableNodes,i=p.environmentInjector||p.ngModuleRef}let c=s?e:new gn(it(e)),u=n||this.parentInjector;if(!i&&c.ngModule==null){let C=(s?u:this.parentInjector).get(ie,null);C&&(i=C)}let l=it(c.componentType??{}),d=Nl(this._lContainer,l?.id??null),f=d?.firstChild??null,h=c.create(u,o,f,i);return this.insertImpl(h.hostView,a,_l(this._hostTNode,d)),h}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,n){let o=e._lView;if(am(o)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=o[X],u=new Qf(c,c[Se],c[X]);u.detach(u.indexOf(e))}}let i=this._adjustIndex(r),s=this._lContainer;return xy(s,o,i,n),e.attachToViewContainerRef(),nd(ls(s),i,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=Ll(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),n=js(this._lContainer,r);n&&(Io(ls(this._lContainer),r),Ef(n[T],n))}detach(e){let r=this._adjustIndex(e,-1),n=js(this._lContainer,r);return n&&Io(ls(this._lContainer),r)!=null?new At(n):null}_adjustIndex(e,r=0){return e??this.length+r}};function Ll(t){return t[Mo]}function ls(t){return t[Mo]||(t[Mo]=[])}function Kf(t,e){let r,n=e[t.index];return Ze(n)?r=n:(r=Ff(n,e,null,t),e[t.index]=r,ni(e,r)),dD(r,e,t,n),new Qf(r,t,e)}function lD(t,e){let r=t[Z],n=r.createComment(""),o=me(e,t),i=qa(r,o);return Ao(r,i,n,Uv(r,o),!1),n}var dD=pD,fD=()=>!1;function hD(t,e,r){return fD(t,e,r)}function pD(t,e,r,n){if(t[Tt])return;let o;r.type&8?o=ke(n):o=lD(e,r),t[Tt]=o}var Ks=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Js=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let n=e.contentQueries!==null?e.contentQueries[0]:r.length,o=[];for(let i=0;i0)n.push(s[a/2]);else{let u=i[a+1],l=e[-c];for(let d=le;de.trim())}function ED(t,e,r){t.queries===null&&(t.queries=new ea),t.queries.track(new ta(e,r))}function ic(t,e){return t.queries.getByIndex(e)}function bD(t,e){let r=t[T],n=ic(r,e);return n.crossesNgTemplate?na(r,t,e,[]):Jf(r,t,n,e)}function sc(t){let e=t.inputConfig,r={};for(let n in e)if(e.hasOwnProperty(n)){let o=e[n];Array.isArray(o)&&o[3]&&(r[n]=o[3])}t.inputTransforms=r}var at=class{},Kn=class{};var ra=class extends at{constructor(e,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new ko(this);let o=fd(e);this._bootstrapComponents=Df(o.bootstrap),this._r3Injector=ef(e,r,[{provide:at,useValue:this},{provide:hn,useValue:this.componentFactoryResolver},...n],oe(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},oa=class extends Kn{constructor(e){super(),this.moduleType=e}create(e){return new ra(this.moduleType,e,[])}};var Fo=class extends at{constructor(e){super(),this.componentFactoryResolver=new ko(this),this.instance=null;let r=new qn([...e.providers,{provide:at,useValue:this},{provide:hn,useValue:this.componentFactoryResolver}],e.parent||Sa(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function ii(t,e,r=null){return new Fo({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}var ur=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Q(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Xf(t){return ac(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function MD(t,e){if(Array.isArray(t))for(let r=0;r>17&32767}function OD(t){return(t&2)==2}function PD(t,e){return t&131071|e<<17}function ia(t){return t|2}function mn(t){return(t&131068)>>2}function ds(t,e){return t&-131069|e<<2}function kD(t){return(t&1)===1}function sa(t){return t|1}function FD(t,e,r,n,o,i){let s=i?e.classBindings:e.styleBindings,a=Pt(s),c=mn(s);t[n]=r;let u=!1,l;if(Array.isArray(r)){let d=r;l=d[1],(l===null||rr(d,l)>0)&&(u=!0)}else l=r;if(o)if(c!==0){let f=Pt(t[a+1]);t[n+1]=ho(f,a),f!==0&&(t[f+1]=ds(t[f+1],n)),t[a+1]=PD(t[a+1],n)}else t[n+1]=ho(a,0),a!==0&&(t[a+1]=ds(t[a+1],n)),a=n;else t[n+1]=ho(c,0),a===0?a=n:t[c+1]=ds(t[c+1],n),c=n;u&&(t[n+1]=ia(t[n+1])),jl(t,l,n,!0),jl(t,l,n,!1),LD(e,l,t,n,i),s=ho(a,c),i?e.classBindings=s:e.styleBindings=s}function LD(t,e,r,n,o){let i=o?t.residualClasses:t.residualStyles;i!=null&&typeof e=="string"&&rr(i,e)>=0&&(r[n+1]=sa(r[n+1]))}function jl(t,e,r,n){let o=t[r+1],i=e===null,s=n?Pt(o):mn(o),a=!1;for(;s!==0&&(a===!1||i);){let c=t[s],u=t[s+1];jD(c,e)&&(a=!0,t[s+1]=n?sa(u):ia(u)),s=n?Pt(u):mn(u)}a&&(t[r+1]=n?ia(o):sa(o))}function jD(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?rr(t,e)>=0:!1}var Ie={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function VD(t){return t.substring(Ie.key,Ie.keyEnd)}function $D(t){return BD(t),nh(t,rh(t,0,Ie.textEnd))}function nh(t,e){let r=Ie.textEnd;return r===e?-1:(e=Ie.keyEnd=UD(t,Ie.key=e,r),rh(t,e,r))}function BD(t){Ie.key=0,Ie.keyEnd=0,Ie.value=0,Ie.valueEnd=0,Ie.textEnd=t.length}function rh(t,e,r){for(;e32;)e++;return e}function HD(t,e,r){let n=k(),o=Na();if(Ot(n,o,e)){let i=te(),s=Ud();ay(i,s,n,t,e,n[Z],r,!1)}return HD}function aa(t,e,r,n,o){let i=e.inputs,s=o?"class":"style";Xa(t,r,i[s],s,n)}function zD(t,e){for(let r=$D(e);r>=0;r=nh(e,r))Ca(t,VD(e),!0)}function GD(t,e,r,n){let o=te(),i=wm(2);o.firstUpdatePass&&qD(o,null,i,n);let s=k();if(r!==dt&&Ot(s,i,r)){let a=o.data[Dn()];if(ih(a,n)&&!oh(o,i)){let c=n?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(r=ms(c,r||"")),aa(o,a,s,r,n)}else JD(o,a,s,s[Z],s[i+1],s[i+1]=KD(t,e,r),n,i)}}function oh(t,e){return e>=t.expandoStartIndex}function qD(t,e,r,n){let o=t.data;if(o[r+1]===null){let i=o[Dn()],s=oh(t,r);ih(i,n)&&e===null&&!s&&(e=!1),e=WD(o,i,e,n),FD(o,i,e,r,s,n)}}function WD(t,e,r,n){let o=bm(t),i=n?e.residualClasses:e.residualStyles;if(o===null)(n?e.classBindings:e.styleBindings)===0&&(r=fs(null,t,e,r,n),r=Jn(r,e.attrs,n),i=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==o)if(r=fs(o,t,e,r,n),i===null){let c=ZD(t,e,n);c!==void 0&&Array.isArray(c)&&(c=fs(null,t,e,c[1],n),c=Jn(c,e.attrs,n),YD(t,e,n,c))}else i=QD(t,e,n)}return i!==void 0&&(n?e.residualClasses=i:e.residualStyles=i),r}function ZD(t,e,r){let n=r?e.classBindings:e.styleBindings;if(mn(n)!==0)return t[Pt(n)]}function YD(t,e,r,n){let o=r?e.classBindings:e.styleBindings;t[Pt(o)]=n}function QD(t,e,r){let n,o=e.directiveEnd;for(let i=1+e.directiveStylingLast;i0;){let c=t[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,f=r[o+1];f===dt&&(f=d?ue:void 0);let h=d?ts(f,n):l===n?f:void 0;if(u&&!Lo(h)&&(h=ts(c,n)),Lo(h)&&(a=h,s))return a;let p=t[o+1];o=s?Pt(p):mn(p)}if(e!==null){let c=i?e.residualClasses:e.residualStyles;c!=null&&(a=ts(c,n))}return a}function Lo(t){return t!==void 0}function ih(t,e){return(t.flags&(e?8:16))!==0}function Ux(t,e,r){let n=k(),o=th(n,t,e,r);GD(Ca,zD,o,!0)}function ew(t,e,r,n,o,i){let s=e.consts,a=dn(s,o),c=cr(e,t,2,n,a);return Ja(e,r,c,dn(s,i)),c.attrs!==null&&Po(c,c.attrs,!1),c.mergedAttrs!==null&&Po(c,c.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,c),c}function sh(t,e,r,n){let o=k(),i=te(),s=Pe+t,a=o[Z],c=i.firstCreatePass?ew(s,i,o,e,r,n):i.data[s],u=tw(i,o,c,a,e,t);o[s]=u;let l=qo(c);return kt(c,!0),Tf(a,u,c),!TD(c)&&Zo()&&Xo(i,o,u,c),dm()===0&&st(u,o),fm(),l&&(Ya(i,o,c),Za(i,c,o)),n!==null&&Qa(o,c),sh}function ah(){let t=ne();_a()?Od():(t=t.parent,kt(t,!1));let e=t;gm(e)&&mm(),hm();let r=te();return r.firstCreatePass&&(Qo(r,t),Ta(t)&&r.queries.elementEnd(t)),e.classesWithoutHost!=null&&Am(e)&&aa(r,e,k(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&Rm(e)&&aa(r,e,k(),e.stylesWithoutHost,!1),ah}function uc(t,e,r,n){return sh(t,e,r,n),ah(),uc}var tw=(t,e,r,n,o,i)=>(Yo(!0),wf(n,o,Tm()));function nw(t,e,r,n,o){let i=e.consts,s=dn(i,n),a=cr(e,t,8,"ng-container",s);s!==null&&Po(a,s,!0);let c=dn(i,o);return Ja(e,r,a,c),e.queries!==null&&e.queries.elementStart(e,a),a}function rw(t,e,r){let n=k(),o=te(),i=t+Pe,s=o.firstCreatePass?nw(i,o,n,e,r):o.data[i];kt(s,!0);let a=iw(o,n,s,t);return n[i]=a,Zo()&&Xo(o,n,a,s),st(a,n),qo(s)&&(Ya(o,n,s),Za(o,s,n)),r!=null&&Qa(n,s),rw}function ow(){let t=ne(),e=te();return _a()?Od():(t=t.parent,kt(t,!1)),e.firstCreatePass&&(Qo(e,t),Ta(t)&&e.queries.elementEnd(t)),ow}var iw=(t,e,r,n)=>(Yo(!0),Rv(e[Z],""));function Hx(){return k()}var jo="en-US";var sw=jo;function aw(t){typeof t=="string"&&(sw=t.toLowerCase().replace(/_/g,"-"))}var cw=(t,e,r)=>{};function lc(t,e,r,n){let o=k(),i=te(),s=ne();return lw(i,o,o[Z],s,t,e,n),lc}function uw(t,e,r,n){let o=t.cleanup;if(o!=null)for(let i=0;ic?a[c]:null}typeof s=="string"&&(i+=2)}return null}function lw(t,e,r,n,o,i,s){let a=qo(n),u=t.firstCreatePass&&Vf(t),l=e[be],d=jf(e),f=!0;if(n.type&3||s){let C=me(n,e),P=s?s(C):C,L=d.length,ye=s?He=>s(ke(He[n.index])):n.index;cw(C,o,i);let q=null;if(!s&&a&&(q=uw(t,e,o,n.index)),q!==null){let He=q.__ngLastListenerFn__||q;He.__ngNextListenerFn__=i,q.__ngLastListenerFn__=i,f=!1}else{i=Bl(n,e,l,i);let He=r.listen(P,o,i);d.push(i,He),u&&u.push(o,ye,L,L+1)}}else i=Bl(n,e,l,i);let h=n.outputs,p;if(f&&h!==null&&(p=h[o])){let C=p.length;if(C)for(let P=0;P-1?ut(t.index,e):e;tc(s,5);let a=$l(e,r,n,i),c=o.__ngNextListenerFn__;for(;c;)a=$l(e,r,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function zx(t=1){return Sm(t)}function Gx(t,e,r){CD(t,e,r)}function dw(t){let e=k(),r=te(),n=Fd();Aa(n+1);let o=ic(r,n);if(t.dirty&&sm(e)===((o.metadata.flags&2)===2)){if(o.matches===null)t.reset([]);else{let i=bD(e,n);t.reset(i,qm),t.notifyOnChanges()}return!0}return!1}function fw(){return DD(k(),Fd())}function qx(t){let e=ym();return im(e,Pe+t)}function Wx(t,e=""){let r=k(),n=te(),o=t+Pe,i=n.firstCreatePass?cr(n,o,1,e,null):n.data[o],s=hw(n,r,i,e,t);r[o]=s,Zo()&&Xo(n,r,s,i),kt(i,!1)}var hw=(t,e,r,n,o)=>(Yo(!0),Nv(e[Z],n));function pw(t){return ch("",t,""),pw}function ch(t,e,r){let n=k(),o=th(n,t,e,r);return o!==dt&&Ey(n,Dn(),o),ch}function gw(t,e,r){let n=te();if(n.firstCreatePass){let o=yn(t);ca(r,n.data,n.blueprint,o,!0),ca(e,n.data,n.blueprint,o,!1)}}function ca(t,e,r,n,o){if(t=ee(t),Array.isArray(t))for(let i=0;i>20;if(cn(t)||!t.multi){let h=new _t(u,o,G),p=ps(c,e,o?l:l+f,d);p===-1?(_s(_o(a,s),i,c),hs(i,t,e.length),e.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),r.push(h),s.push(h)):(r[p]=h,s[p]=h)}else{let h=ps(c,e,l+f,d),p=ps(c,e,l,l+f),C=h>=0&&r[h],P=p>=0&&r[p];if(o&&!P||!o&&!C){_s(_o(a,s),i,c);let L=yw(o?vw:mw,r.length,o,n,u);!o&&P&&(r[p].providerFactory=L),hs(i,t,e.length,0),e.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),r.push(L),s.push(L)}else{let L=uh(r[o?p:h],u,!o&&n);hs(i,t,h>-1?h:p,L)}!o&&n&&P&&r[p].componentProviders++}}}function hs(t,e,r,n){let o=cn(e),i=Gg(e);if(o||i){let c=(i?ee(e.useClass):e).prototype.ngOnDestroy;if(c){let u=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){let l=u.indexOf(r);l===-1?u.push(r,[n,c]):u[l+1].push(n,c)}else u.push(r,c)}}}function uh(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function ps(t,e,r,n){for(let o=r;o{r.providersResolver=(n,o)=>gw(n,o?o(t):t,e)}}var Dw=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let o=gd(!1,n.type),i=o.length>0?ii([o],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=y({token:e,providedIn:"environment",factory:()=>new e(E(ie))});let t=e;return t})();function lh(t){nc("NgStandalone"),t.getStandaloneInjector=e=>e.get(Dw).getOrCreateStandaloneInjector(t)}function Yx(t,e,r,n){return ww(k(),kd(),t,e,r,n)}function Qx(t,e,r,n,o){return Cw(k(),kd(),t,e,r,n,o)}function dh(t,e){let r=t[e];return r===dt?void 0:r}function ww(t,e,r,n,o,i){let s=e+r;return Ot(t,s,o)?eh(t,s+1,i?n.call(i,o):n(o)):dh(t,s+1)}function Cw(t,e,r,n,o,i,s){let a=e+r;return SD(t,a,o,i)?eh(t,a+2,s?n.call(s,o,i):n(o,i)):dh(t,a+2)}function Kx(t,e){return ri(t,e)}var si=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var fh=new b("");function lr(t){return!!t&&typeof t.then=="function"}function hh(t){return!!t&&typeof t.subscribe=="function"}var ai=new b(""),ph=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,o)=>{this.resolve=n,this.reject=o}),this.appInits=g(ai,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let s=i();if(lr(s))n.push(s);else if(hh(s)){let a=new Promise((c,u)=>{s.subscribe({complete:c,error:u})});n.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{o()}).catch(i=>{this.reject(i)}),n.length===0&&o(),this.initialized=!0}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ci=new b("");function Iw(){bu(()=>{throw new v(600,!1)})}function Ew(t){return t.isBoundToModule}var bw=10;function Mw(t,e,r){try{let n=r();return lr(n)?n.catch(o=>{throw e.runOutsideAngular(()=>t.handleError(o)),o}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}var En=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=g(tf),this.afterRenderEffectManager=g(oc),this.zonelessEnabled=g(qf),this.externalTestViews=new Set,this.beforeRender=new W,this.afterTick=new W,this.componentTypes=[],this.components=[],this.isStable=g(ur).hasPendingTasks.pipe(A(n=>!n)),this._injector=g(ie)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,o){let i=n instanceof Oo;if(!this._injector.get(ph).done){let h=!i&&dd(n),p=!1;throw new v(405,p)}let a;i?a=n:a=this._injector.get(hn).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let c=Ew(a)?void 0:this._injector.get(at),u=o||a.selector,l=a.create(Fe.NULL,[],u,c),d=l.location.nativeElement,f=l.injector.get(fh,null);return f?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),gs(this.components,l),f?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new v(101,!1);let o=R(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,R(o),this.afterTick.next()}}detectChangesInAttachedViews(n){let o=null;this._injector.destroyed||(o=this._injector.get(pn,null,{optional:!0}));let i=0,s=this.afterRenderEffectManager;for(;iYn(c))&&(s.execute(),!this.allViews.some(({_lView:c})=>Yn(c))))break}}attachView(n){let o=n;this._views.push(o),o.attachToAppRef(this)}detachView(n){let o=n;gs(this._views,o),o.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let o=this._injector.get(ci,[]);[...this._bootstrapListeners,...o].forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>gs(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new v(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function gs(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function Sw(t,e,r,n){if(!r&&!Yn(t))return;Uf(t,e,r&&!n?0:1)}var la=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},ui=(()=>{let e=class e{compileModuleSync(n){return new oa(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let o=this.compileModuleSync(n),i=fd(n),s=Df(i.declarations).reduce((a,c)=>{let u=it(c);return u&&a.push(new gn(u)),a},[]);return new la(o,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Tw=(()=>{let e=class e{constructor(){this.zone=g($),this.changeDetectionScheduler=g(fn),this.applicationRef=g(En)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function xw({ngZoneFactory:t,ignoreChangesOutsideZone:e}){return t??=()=>new $(Nw()),[{provide:$,useFactory:t},{provide:sn,multi:!0,useFactory:()=>{let r=g(Tw,{optional:!0});return()=>r.initialize()}},{provide:sn,multi:!0,useFactory:()=>{let r=g(Aw);return()=>{r.initialize()}}},{provide:tf,useFactory:_w},e===!0?{provide:Wf,useValue:!0}:[]]}function _w(){let t=g($),e=g(Le);return r=>t.runOutsideAngular(()=>e.handleError(r))}function Nw(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var Aw=(()=>{let e=class e{constructor(){this.subscription=new V,this.initialized=!1,this.zone=g($),this.pendingTasks=g(ur)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{$.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{$.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Rw=(()=>{let e=class e{constructor(){this.appRef=g(En),this.taskService=g(ur),this.ngZone=g($),this.zonelessEnabled=g(qf),this.disableScheduling=g(Wf,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new V,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof qs||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let o=this.useMicrotaskScheduler?Rl:Zf;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=o(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=o(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&$.isInAngularZone())}tick(n){if(this.runningTick||this.appRef.destroyed)return;let o=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(n)},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(o),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Rl(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(o)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Ow(){return typeof $localize<"u"&&$localize.locale||jo}var dc=new b("",{providedIn:"root",factory:()=>g(dc,S.Optional|S.SkipSelf)||Ow()});var gh=new b("");var Do=null;function Pw(t=[],e){return Fe.create({name:e,providers:[{provide:Ho,useValue:"platform"},{provide:gh,useValue:new Set([()=>Do=null])},...t]})}function kw(t=[]){if(Do)return Do;let e=Pw(t);return Do=e,Iw(),Fw(e),e}function Fw(t){t.get(Va,null)?.forEach(r=>r())}var dr=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Lw;let t=e;return t})();function Lw(t){return jw(ne(),k(),(t&16)===16)}function jw(t,e,r){if(Go(t)&&!r){let n=ut(t.index,e);return new At(n,n)}else if(t.type&47){let n=e[Oe];return new At(n,e)}return null}var da=class{constructor(){}supports(e){return Xf(e)}create(e){return new fa(e)}},Vw=(t,e)=>e,fa=class{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Vw}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,n=this._removalsHead,o=0,i=null;for(;r||n;){let s=!n||r&&r.currentIndex{s=this._trackByFn(o,a),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,a,s,o),n=!0):(n&&(r=this._verifyReinsertion(r,a,s,o)),Object.is(r.item,a)||this._addIdentityChange(r,a)),r=r._next,o++}),this.length=o;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,r,n,o){let i;return e===null?i=this._itTail:(i=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,i,o)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,o),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,i,o)):e=this._addAfter(new ha(r,n),i,o)),e}_verifyReinsertion(e,r,n,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return i!==null?e=this._reinsertAfter(i,e._prev,o):e.currentIndex!=o&&(e.currentIndex=o,this._addToMoves(e,o)),e}_truncate(e){for(;e!==null;){let r=e._next;this._addToRemovals(this._unlink(e)),e=r}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,r,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let o=e._prevRemoved,i=e._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(e,r,n),this._addToMoves(e,n),e}_moveAfter(e,r,n){return this._unlink(e),this._insertAfter(e,r,n),this._addToMoves(e,n),e}_addAfter(e,r,n){return this._insertAfter(e,r,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,n){let o=r===null?this._itHead:r._next;return e._next=o,e._prev=r,o===null?this._itTail=e:o._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new Vo),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let r=e._prev,n=e._next;return r===null?this._itHead=n:r._next=n,n===null?this._itTail=r:n._prev=r,e}_addToMoves(e,r){return e.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Vo),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,r){return e.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},ha=class{constructor(e,r){this.item=e,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},pa=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,r){let n;for(n=this._head;n!==null;n=n._nextDup)if((r===null||r<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let r=e._prevDup,n=e._nextDup;return r===null?this._head=n:r._nextDup=n,n===null?this._tail=r:n._prevDup=r,this._head===null}},Vo=class{constructor(){this.map=new Map}put(e){let r=e.trackById,n=this.map.get(r);n||(n=new pa,this.map.set(r,n)),n.add(e)}get(e,r){let n=e,o=this.map.get(n);return o?o.get(e,r):null}remove(e){let r=e.trackById;return this.map.get(r).remove(e)&&this.map.delete(r),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Ul(t,e,r){let n=t.previousIndex;if(n===null)return n;let o=0;return r&&n{if(r&&r.key===o)this._maybeAddToChanges(r,n),this._appendAfter=r,r=r._next;else{let i=this._getOrCreateRecordForKey(o,n);r=this._insertBeforeOrAppend(r,i)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let n=r;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,r){if(e){let n=e._prev;return r._next=e,r._prev=n,e._prev=r,n&&(n._next=r),e===this._mapHead&&(this._mapHead=r),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(e,r){if(this._records.has(e)){let o=this._records.get(e);this._maybeAddToChanges(o,r);let i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}let n=new va(e);return this._records.set(e,n),n.currentValue=r,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,r){Object.is(r,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=r,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,r){e instanceof Map?e.forEach(r):Object.keys(e).forEach(n=>r(e[n],n))}},va=class{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}};function Hl(){return new fc([new da])}var fc=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,o){if(o!=null){let i=o.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:o=>e.create(n,o||Hl()),deps:[[e,new Uo,new nr]]}}find(n){let o=this.factories.find(i=>i.supports(n));if(o!=null)return o;throw new v(901,!1)}};e.\u0275prov=y({token:e,providedIn:"root",factory:Hl});let t=e;return t})();function zl(){return new hc([new ga])}var hc=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,o){if(o){let i=o.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:o=>e.create(n,o||zl()),deps:[[e,new Uo,new nr]]}}find(n){let o=this.factories.find(i=>i.supports(n));if(o)return o;throw new v(901,!1)}};e.\u0275prov=y({token:e,providedIn:"root",factory:zl});let t=e;return t})();function mh(t){try{let{rootComponent:e,appProviders:r,platformProviders:n}=t,o=kw(n),i=[xw({}),{provide:fn,useExisting:Rw},...r||[]],a=new Fo({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1}).injector,c=a.get($);return c.run(()=>{a.resolveInjectorInitializers();let u=a.get(Le,null),l;c.runOutsideAngular(()=>{l=c.onError.subscribe({next:h=>{u.handleError(h)}})});let d=()=>a.destroy(),f=o.get(gh);return f.add(d),a.onDestroy(()=>{l.unsubscribe(),f.delete(d)}),Mw(u,c,()=>{let h=a.get(ph);return h.runInitializers(),h.donePromise.then(()=>{let p=a.get(dc,jo);aw(p||jo);let C=a.get(En);return e!==void 0&&C.bootstrap(e),C})})})}catch(e){return Promise.reject(e)}}function fr(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function vh(t){let e=it(t);if(!e)return null;let r=new gn(e);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var bh=null;function bn(){return bh}function Mh(t){bh??=t}var li=class{};var se=new b(""),Cc=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:()=>g($w),providedIn:"platform"});let t=e;return t})(),Sh=new b(""),$w=(()=>{let e=class e extends Cc{constructor(){super(),this._doc=g(se),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return bn().getBaseHref(this._doc)}onPopState(n){let o=bn().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",n,!1),()=>o.removeEventListener("popstate",n)}onHashChange(n){let o=bn().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",n,!1),()=>o.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,o,i){this._history.pushState(n,o,i)}replaceState(n,o,i){this._history.replaceState(n,o,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function Ic(t,e){if(t.length==0)return e;if(e.length==0)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?t+e.substring(1):r==1?t+e:t+"/"+e}function yh(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,n=r-(t[r-1]==="/"?1:0);return t.slice(0,n)+t.slice(r)}function Qe(t){return t&&t[0]!=="?"?"?"+t:t}var $e=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:()=>g(Ec),providedIn:"root"});let t=e;return t})(),Th=new b(""),Ec=(()=>{let e=class e extends $e{constructor(n,o){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=o??this._platformLocation.getBaseHrefFromDOM()??g(se).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Ic(this._baseHref,n)}path(n=!1){let o=this._platformLocation.pathname+Qe(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${o}${i}`:o}pushState(n,o,i,s){let a=this.prepareExternalUrl(i+Qe(s));this._platformLocation.pushState(n,o,a)}replaceState(n,o,i,s){let a=this.prepareExternalUrl(i+Qe(s));this._platformLocation.replaceState(n,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(o){return new(o||e)(E(Cc),E(Th,8))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),bc=(()=>{let e=class e extends $e{constructor(n,o){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],o!=null&&(this._baseHref=o)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let o=this._platformLocation.hash??"#";return o.length>0?o.substring(1):o}prepareExternalUrl(n){let o=Ic(this._baseHref,n);return o.length>0?"#"+o:o}pushState(n,o,i,s){let a=this.prepareExternalUrl(i+Qe(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,o,a)}replaceState(n,o,i,s){let a=this.prepareExternalUrl(i+Qe(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(o){return new(o||e)(E(Cc),E(Th,8))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),Mn=(()=>{let e=class e{constructor(n){this._subject=new J,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let o=this._locationStrategy.getBaseHref();this._basePath=Hw(yh(Dh(o))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,o=""){return this.path()==this.normalize(n+Qe(o))}normalize(n){return e.stripTrailingSlash(Uw(this._basePath,Dh(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,o="",i=null){this._locationStrategy.pushState(i,"",n,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Qe(o)),i)}replaceState(n,o="",i=null){this._locationStrategy.replaceState(i,"",n,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Qe(o)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(o=>{this._notifyUrlChangeListeners(o.url,o.state)}),()=>{let o=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(o,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",o){this._urlChangeListeners.forEach(i=>i(n,o))}subscribe(n,o,i){return this._subject.subscribe({next:n,error:o,complete:i})}};e.normalizeQueryParams=Qe,e.joinWithSlash=Ic,e.stripTrailingSlash=yh,e.\u0275fac=function(o){return new(o||e)(E($e))},e.\u0275prov=y({token:e,factory:()=>Bw(),providedIn:"root"});let t=e;return t})();function Bw(){return new Mn(E($e))}function Uw(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function Dh(t){return t.replace(/\/index.html$/,"")}function Hw(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}function xh(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let n=r.indexOf("="),[o,i]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(o.trim()===e)return decodeURIComponent(i)}return null}var mc=/\s+/,wh=[],I_=(()=>{let e=class e{constructor(n,o){this._ngEl=n,this._renderer=o,this.initialClasses=wh,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(mc):wh}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(mc):n}ngDoCheck(){for(let o of this.initialClasses)this._updateState(o,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let o of n)this._updateState(o,!0);else if(n!=null)for(let o of Object.keys(n))this._updateState(o,!!n[o]);this._applyStateDiff()}_updateState(n,o){let i=this.stateMap.get(n);i!==void 0?(i.enabled!==o&&(i.changed=!0,i.enabled=o),i.touched=!0):this.stateMap.set(n,{enabled:o,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let o=n[0],i=n[1];i.changed?(this._toggleClass(o,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(o,!1),this.stateMap.delete(o)),i.touched=!1}}_toggleClass(n,o){n=n.trim(),n.length>0&&n.split(mc).forEach(i=>{o?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}};e.\u0275fac=function(o){return new(o||e)(G(Ve),G(In))},e.\u0275dir=ct({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})();var vc=class{constructor(e,r,n,o){this.$implicit=e,this.ngForOf=r,this.index=n,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},E_=(()=>{let e=class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,o,i){this._viewContainer=n,this._template=o,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let o=this._viewContainer;n.forEachOperation((i,s,a)=>{if(i.previousIndex==null)o.createEmbeddedView(this._template,new vc(i.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)o.remove(s===null?void 0:s);else if(s!==null){let c=o.get(s);o.move(c,a),Ch(c,i)}});for(let i=0,s=o.length;i{let s=o.get(i.currentIndex);Ch(s,i)})}static ngTemplateContextGuard(n,o){return!0}};e.\u0275fac=function(o){return new(o||e)(G(ft),G(Rt),G(fc))},e.\u0275dir=ct({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function Ch(t,e){t.context.$implicit=e.item}var b_=(()=>{let e=class e{constructor(n,o){this._viewContainer=n,this._context=new yc,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=o}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Ih("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Ih("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,o){return!0}};e.\u0275fac=function(o){return new(o||e)(G(ft),G(Rt))},e.\u0275dir=ct({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),yc=class{constructor(){this.$implicit=null,this.ngIf=null}};function Ih(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${oe(e)}'.`)}var M_=(()=>{let e=class e{constructor(n,o,i){this._ngEl=n,this._differs=o,this._renderer=i,this._ngStyle=null,this._differ=null}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,o){let[i,s]=n.split("."),a=i.indexOf("-")===-1?void 0:je.DashCase;o!=null?this._renderer.setStyle(this._ngEl.nativeElement,i,s?`${o}${s}`:o,a):this._renderer.removeStyle(this._ngEl.nativeElement,i,a)}_applyChanges(n){n.forEachRemovedItem(o=>this._setStyle(o.key,null)),n.forEachAddedItem(o=>this._setStyle(o.key,o.currentValue)),n.forEachChangedItem(o=>this._setStyle(o.key,o.currentValue))}};e.\u0275fac=function(o){return new(o||e)(G(Ve),G(hc),G(In))},e.\u0275dir=ct({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let t=e;return t})();var zw=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=or({type:e}),e.\u0275inj=er({});let t=e;return t})(),Mc="browser",Gw="server";function qw(t){return t===Mc}function Sc(t){return t===Gw}var _h=(()=>{let e=class e{};e.\u0275prov=y({token:e,providedIn:"root",factory:()=>qw(g(lt))?new Dc(g(se),window):new wc});let t=e;return t})(),Dc=class{constructor(e,r){this.document=e,this.window=r,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let r=Ww(this.document,e);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let r=e.getBoundingClientRect(),n=r.left+this.window.pageXOffset,o=r.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],o-i[1])}};function Ww(t,e){let r=t.getElementById(e)||t.getElementsByName(e)[0];if(r)return r;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),o=n.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(e)||i.querySelector(`[name="${e}"]`);if(s)return s}o=n.nextNode()}}return null}var wc=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},di=class{};var _c=class extends li{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Nc=class t extends _c{static makeCurrent(){Mh(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=Yw();return r==null?null:Qw(r)}resetBaseElement(){hr=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return xh(document.cookie,e)}},hr=null;function Yw(){return hr=hr||document.querySelector("base"),hr?hr.getAttribute("href"):null}function Qw(t){return new URL(t,document.baseURI).pathname}var Kw=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),Ac=new b(""),Oh=(()=>{let e=class e{constructor(n,o){this._zone=o,this._eventNameToPlugin=new Map,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,o,i){return this._findPluginFor(o).addEventListener(n,o,i)}getZone(){return this._zone}_findPluginFor(n){let o=this._eventNameToPlugin.get(n);if(o)return o;if(o=this._plugins.find(s=>s.supports(n)),!o)throw new v(5101,!1);return this._eventNameToPlugin.set(n,o),o}};e.\u0275fac=function(o){return new(o||e)(E(Ac),E($))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),fi=class{constructor(e){this._doc=e}},Tc="ng-app-id",Ph=(()=>{let e=class e{constructor(n,o,i,s={}){this.doc=n,this.appId=o,this.nonce=i,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Sc(s),this.resetHostNodes()}addStyles(n){for(let o of n)this.changeUsageCount(o,1)===1&&this.onStyleAdded(o)}removeStyles(n){for(let o of n)this.changeUsageCount(o,-1)<=0&&this.onStyleRemoved(o)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(o=>o.remove()),n.clear());for(let o of this.getAllStyles())this.onStyleRemoved(o);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let o of this.getAllStyles())this.addStyleToHost(n,o)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let o of this.hostNodes)this.addStyleToHost(o,n)}onStyleRemoved(n){let o=this.styleRef;o.get(n)?.elements?.forEach(i=>i.remove()),o.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Tc}="${this.appId}"]`);if(n?.length){let o=new Map;return n.forEach(i=>{i.textContent!=null&&o.set(i.textContent,i)}),o}return null}changeUsageCount(n,o){let i=this.styleRef;if(i.has(n)){let s=i.get(n);return s.usage+=o,s.usage}return i.set(n,{usage:o,elements:[]}),o}getStyleElement(n,o){let i=this.styleNodesInDOM,s=i?.get(o);if(s?.parentNode===n)return i.delete(o),s.removeAttribute(Tc),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=o,this.platformIsServer&&a.setAttribute(Tc,this.appId),n.appendChild(a),a}}addStyleToHost(n,o){let i=this.getStyleElement(n,o),s=this.styleRef,a=s.get(o)?.elements;a?a.push(i):s.set(o,{elements:[i],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(o){return new(o||e)(E(se),E(ja),E($a,8),E(lt))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),xc={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Oc=/%COMP%/g,kh="%COMP%",Jw=`_nghost-${kh}`,Xw=`_ngcontent-${kh}`,eC=!0,tC=new b("",{providedIn:"root",factory:()=>eC});function nC(t){return Xw.replace(Oc,t)}function rC(t){return Jw.replace(Oc,t)}function Fh(t,e){return e.map(r=>r.replace(Oc,t))}var Nh=(()=>{let e=class e{constructor(n,o,i,s,a,c,u,l=null){this.eventManager=n,this.sharedStylesHost=o,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=u,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Sc(c),this.defaultRenderer=new pr(n,a,u,this.platformIsServer)}createRenderer(n,o){if(!n||!o)return this.defaultRenderer;this.platformIsServer&&o.encapsulation===Ae.ShadowDom&&(o=U(m({},o),{encapsulation:Ae.Emulated}));let i=this.getOrCreateRenderer(n,o);return i instanceof hi?i.applyToHost(n):i instanceof gr&&i.applyStyles(),i}getOrCreateRenderer(n,o){let i=this.rendererByCompId,s=i.get(o.id);if(!s){let a=this.doc,c=this.ngZone,u=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(o.encapsulation){case Ae.Emulated:s=new hi(u,l,o,this.appId,d,a,c,f);break;case Ae.ShadowDom:return new Rc(u,l,n,o,a,c,this.nonce,f);default:s=new gr(u,l,o,d,a,c,f);break}i.set(o.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(o){return new(o||e)(E(Oh),E(Ph),E(ja),E(tC),E(se),E(lt),E($),E($a))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),pr=class{constructor(e,r,n,o){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(xc[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(Ah(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(Ah(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new v(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,o){if(o){r=o+":"+r;let i=xc[o];i?e.setAttributeNS(i,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let o=xc[n];o?e.removeAttributeNS(o,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,o){o&(je.DashCase|je.Important)?e.style.setProperty(r,n,o&je.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n&je.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e!=null&&(e[r]=n)}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=bn().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function Ah(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Rc=class extends pr{constructor(e,r,n,o,i,s,a,c){super(e,i,s,c),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=Fh(o.id,o.styles);for(let l of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},gr=class extends pr{constructor(e,r,n,o,i,s,a,c){super(e,i,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=o,this.styles=c?Fh(c,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},hi=class extends gr{constructor(e,r,n,o,i,s,a,c){let u=o+"-"+n.id;super(e,r,n,i,s,a,c,u),this.contentAttr=nC(u),this.hostAttr=rC(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},oC=(()=>{let e=class e extends fi{constructor(n){super(n)}supports(n){return!0}addEventListener(n,o,i){return n.addEventListener(o,i,!1),()=>this.removeEventListener(n,o,i)}removeEventListener(n,o,i){return n.removeEventListener(o,i)}};e.\u0275fac=function(o){return new(o||e)(E(se))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),Rh=["alt","control","meta","shift"],iC={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},sC={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},aC=(()=>{let e=class e extends fi{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,o,i){let s=e.parseEventName(o),a=e.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>bn().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let o=n.toLowerCase().split("."),i=o.shift();if(o.length===0||!(i==="keydown"||i==="keyup"))return null;let s=e._normalizeKey(o.pop()),a="",c=o.indexOf("code");if(c>-1&&(o.splice(c,1),a="code."),Rh.forEach(l=>{let d=o.indexOf(l);d>-1&&(o.splice(d,1),a+=l+".")}),a+=s,o.length!=0||s.length===0)return null;let u={};return u.domEventName=i,u.fullKey=a,u}static matchEventFullKeyCode(n,o){let i=iC[n.key]||n.key,s="";return o.indexOf("code.")>-1&&(i=n.code,s="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),Rh.forEach(a=>{if(a!==i){let c=sC[a];c(n)&&(s+=a+".")}}),s+=i,s===o)}static eventCallback(n,o,i){return s=>{e.matchEventFullKeyCode(s,n)&&i.runGuarded(()=>o(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(o){return new(o||e)(E(se))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})();function Y_(t,e){return mh(m({rootComponent:t},cC(e)))}function cC(t){return{appProviders:[...hC,...t?.providers??[]],platformProviders:fC}}function uC(){Nc.makeCurrent()}function lC(){return new Le}function dC(){return cf(document),document}var fC=[{provide:lt,useValue:Mc},{provide:Va,useValue:uC,multi:!0},{provide:se,useFactory:dC,deps:[]}];var hC=[{provide:Ho,useValue:"root"},{provide:Le,useFactory:lC,deps:[]},{provide:Ac,useClass:oC,multi:!0,deps:[se,$,lt]},{provide:Ac,useClass:aC,multi:!0,deps:[se]},Nh,Ph,Oh,{provide:pn,useExisting:Nh},{provide:di,useClass:Kw,deps:[]},[]];var Lh=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(o){return new(o||e)(E(se))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var M="primary",Ar=Symbol("RouteTitle"),jc=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function An(t){return new jc(t)}function gC(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.lengthn[i]===o)}else return t===e}function Yh(t){return t.length>0?t[t.length-1]:null}function mt(t){return Yi(t)?t:lr(t)?B(Promise.resolve(t)):D(t)}var vC={exact:Kh,subset:Jh},Qh={exact:yC,subset:DC,ignored:()=>!0};function jh(t,e,r){return vC[r.paths](t.root,e.root,r.matrixParams)&&Qh[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function yC(t,e){return Be(t,e)}function Kh(t,e,r){if(!Lt(t.segments,e.segments)||!mi(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!Kh(t.children[n],e.children[n],r))return!1;return!0}function DC(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>Zh(t[r],e[r]))}function Jh(t,e,r){return Xh(t,e,e.segments,r)}function Xh(t,e,r,n){if(t.segments.length>r.length){let o=t.segments.slice(0,r.length);return!(!Lt(o,r)||e.hasChildren()||!mi(o,r,n))}else if(t.segments.length===r.length){if(!Lt(t.segments,r)||!mi(t.segments,r,n))return!1;for(let o in e.children)if(!t.children[o]||!Jh(t.children[o],e.children[o],n))return!1;return!0}else{let o=r.slice(0,t.segments.length),i=r.slice(t.segments.length);return!Lt(t.segments,o)||!mi(t.segments,o,n)||!t.children[M]?!1:Xh(t.children[M],e,i,n)}}function mi(t,e,r){return e.every((n,o)=>Qh[r](t[o].parameters,n.parameters))}var ht=class{constructor(e=new F([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=An(this.queryParams),this._queryParamMap}toString(){return IC.serialize(this)}},F=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return vi(this)}},Ft=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=An(this.parameters),this._parameterMap}toString(){return tp(this)}};function wC(t,e){return Lt(t,e)&&t.every((r,n)=>Be(r.parameters,e[n].parameters))}function Lt(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function CC(t,e){let r=[];return Object.entries(t.children).forEach(([n,o])=>{n===M&&(r=r.concat(e(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==M&&(r=r.concat(e(o,n)))}),r}var Rr=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:()=>new Rn,providedIn:"root"});let t=e;return t})(),Rn=class{parse(e){let r=new Bc(e);return new ht(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${mr(e.root,!0)}`,n=MC(e.queryParams),o=typeof e.fragment=="string"?`#${EC(e.fragment)}`:"";return`${r}${n}${o}`}},IC=new Rn;function vi(t){return t.segments.map(e=>tp(e)).join("/")}function mr(t,e){if(!t.hasChildren())return vi(t);if(e){let r=t.children[M]?mr(t.children[M],!1):"",n=[];return Object.entries(t.children).forEach(([o,i])=>{o!==M&&n.push(`${o}:${mr(i,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=CC(t,(n,o)=>o===M?[mr(t.children[M],!1)]:[`${o}:${mr(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[M]!=null?`${vi(t)}/${r[0]}`:`${vi(t)}/(${r.join("//")})`}}function ep(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function pi(t){return ep(t).replace(/%3B/gi,";")}function EC(t){return encodeURI(t)}function $c(t){return ep(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function yi(t){return decodeURIComponent(t)}function Vh(t){return yi(t.replace(/\+/g,"%20"))}function tp(t){return`${$c(t.path)}${bC(t.parameters)}`}function bC(t){return Object.entries(t).map(([e,r])=>`;${$c(e)}=${$c(r)}`).join("")}function MC(t){let e=Object.entries(t).map(([r,n])=>Array.isArray(n)?n.map(o=>`${pi(r)}=${pi(o)}`).join("&"):`${pi(r)}=${pi(n)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var SC=/^[^\/()?;#]+/;function Pc(t){let e=t.match(SC);return e?e[0]:""}var TC=/^[^\/()?;=#]+/;function xC(t){let e=t.match(TC);return e?e[0]:""}var _C=/^[^=?&#]+/;function NC(t){let e=t.match(_C);return e?e[0]:""}var AC=/^[^&#]+/;function RC(t){let e=t.match(AC);return e?e[0]:""}var Bc=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new F([],{}):new F([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[M]=new F(e,r)),n}parseSegment(){let e=Pc(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new v(4009,!1);return this.capture(e),new Ft(yi(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=xC(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let o=Pc(this.remaining);o&&(n=o,this.capture(n))}e[yi(r)]=yi(n)}parseQueryParam(e){let r=NC(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=RC(this.remaining);s&&(n=s,this.capture(n))}let o=Vh(r),i=Vh(n);if(e.hasOwnProperty(o)){let s=e[o];Array.isArray(s)||(s=[s],e[o]=s),s.push(i)}else e[o]=i}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Pc(this.remaining),o=this.remaining[n.length];if(o!=="/"&&o!==")"&&o!==";")throw new v(4010,!1);let i;n.indexOf(":")>-1?(i=n.slice(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=M);let s=this.parseChildren();r[i]=Object.keys(s).length===1?s[M]:new F([],s),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new v(4011,!1)}};function np(t){return t.segments.length>0?new F([],{[M]:t}):t}function rp(t){let e={};for(let[n,o]of Object.entries(t.children)){let i=rp(o);if(n===M&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))e[s]=a;else(i.segments.length>0||i.hasChildren())&&(e[n]=i)}let r=new F(t.segments,e);return OC(r)}function OC(t){if(t.numberOfChildren===1&&t.children[M]){let e=t.children[M];return new F(t.segments.concat(e.segments),e.children)}return t}function Ir(t){return t instanceof ht}function PC(t,e,r=null,n=null){let o=op(t);return ip(o,e,r,n)}function op(t){let e;function r(i){let s={};for(let c of i.children){let u=r(c);s[c.outlet]=u}let a=new F(i.url,s);return i===t&&(e=a),a}let n=r(t.root),o=np(n);return e??o}function ip(t,e,r,n){let o=t;for(;o.parent;)o=o.parent;if(e.length===0)return kc(o,o,o,r,n);let i=kC(e);if(i.toRoot())return kc(o,o,new F([],{}),r,n);let s=FC(i,o,t),a=s.processChildren?Dr(s.segmentGroup,s.index,i.commands):ap(s.segmentGroup,s.index,i.commands);return kc(o,s.segmentGroup,a,r,n)}function Di(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Er(t){return typeof t=="object"&&t!=null&&t.outlets}function kc(t,e,r,n,o){let i={};n&&Object.entries(n).forEach(([c,u])=>{i[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;t===e?s=r:s=sp(t,e,r);let a=np(rp(s));return new ht(a,i,o)}function sp(t,e,r){let n={};return Object.entries(t.children).forEach(([o,i])=>{i===e?n[o]=r:n[o]=sp(i,e,r)}),new F(t.segments,n)}var wi=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&Di(n[0]))throw new v(4003,!1);let o=n.find(Er);if(o&&o!==Yh(n))throw new v(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function kC(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new wi(!0,0,t);let e=0,r=!1,n=t.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?r=!0:a===".."?e++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new wi(r,e,n)}var xn=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function FC(t,e,r){if(t.isAbsolute)return new xn(e,!0,0);if(!r)return new xn(e,!1,NaN);if(r.parent===null)return new xn(r,!0,0);let n=Di(t.commands[0])?0:1,o=r.segments.length-1+n;return LC(r,o,t.numberOfDoubleDots)}function LC(t,e,r){let n=t,o=e,i=r;for(;i>o;){if(i-=o,n=n.parent,!n)throw new v(4005,!1);o=n.segments.length}return new xn(n,!1,o-i)}function jC(t){return Er(t[0])?t[0].outlets:{[M]:t}}function ap(t,e,r){if(t??=new F([],{}),t.segments.length===0&&t.hasChildren())return Dr(t,e,r);let n=VC(t,e,r),o=r.slice(n.commandIndex);if(n.match&&n.pathIndexi!==M)&&t.children[M]&&t.numberOfChildren===1&&t.children[M].segments.length===0){let i=Dr(t.children[M],e,r);return new F(t.segments,i.children)}return Object.entries(n).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=ap(t.children[i],e,s))}),Object.entries(t.children).forEach(([i,s])=>{n[i]===void 0&&(o[i]=s)}),new F(t.segments,o)}}function VC(t,e,r){let n=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};for(;o=r.length)return i;let s=t.segments[o],a=r[n];if(Er(a))break;let c=`${a}`,u=n0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!Bh(c,u,s))return i;n+=2}else{if(!Bh(c,{},s))return i;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function Uc(t,e,r){let n=t.segments.slice(0,e),o=0;for(;o{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=Uc(new F([],{}),0,n))}),e}function $h(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function Bh(t,e,r){return t==r.path&&Be(e,r.parameters)}var wr="imperative",Y=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Y||{}),ve=class{constructor(e,r){this.id=e,this.url=r}},On=class extends ve{constructor(e,r,n="imperative",o=null){super(e,r),this.type=Y.NavigationStart,this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Ue=class extends ve{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=Y.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},fe=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(fe||{}),Ci=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Ci||{}),Ke=class extends ve{constructor(e,r,n,o){super(e,r),this.reason=n,this.code=o,this.type=Y.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},pt=class extends ve{constructor(e,r,n,o){super(e,r),this.reason=n,this.code=o,this.type=Y.NavigationSkipped}},br=class extends ve{constructor(e,r,n,o){super(e,r),this.error=n,this.target=o,this.type=Y.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Ii=class extends ve{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=Y.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Hc=class extends ve{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=Y.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},zc=class extends ve{constructor(e,r,n,o,i){super(e,r),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=i,this.type=Y.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Gc=class extends ve{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=Y.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},qc=class extends ve{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=Y.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Wc=class{constructor(e){this.route=e,this.type=Y.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Zc=class{constructor(e){this.route=e,this.type=Y.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Yc=class{constructor(e){this.snapshot=e,this.type=Y.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Qc=class{constructor(e){this.snapshot=e,this.type=Y.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Kc=class{constructor(e){this.snapshot=e,this.type=Y.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Jc=class{constructor(e){this.snapshot=e,this.type=Y.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ei=class{constructor(e,r,n){this.routerEvent=e,this.position=r,this.anchor=n,this.type=Y.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},Mr=class{},Pn=class{constructor(e,r){this.url=e,this.navigationBehaviorOptions=r}};var Xc=class{constructor(e){this.injector=e,this.outlet=null,this.route=null,this.children=new Or(this.injector),this.attachRef=null}},Or=(()=>{let e=class e{constructor(n){this.parentInjector=n,this.contexts=new Map}onChildOutletCreated(n,o){let i=this.getOrCreateContext(n);i.outlet=o,this.contexts.set(n,i)}onChildOutletDestroyed(n){let o=this.getContext(n);o&&(o.outlet=null,o.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let o=this.getContext(n);return o||(o=new Xc(this.parentInjector),this.contexts.set(n,o)),o}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(o){return new(o||e)(E(ie))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),bi=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=eu(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=eu(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=tu(e,this._root);return r.length<2?[]:r[r.length-2].children.map(o=>o.value).filter(o=>o!==e)}pathFromRoot(e){return tu(e,this._root).map(r=>r.value)}};function eu(t,e){if(t===e.value)return e;for(let r of e.children){let n=eu(t,r);if(n)return n}return null}function tu(t,e){if(t===e.value)return[e];for(let r of e.children){let n=tu(t,r);if(n.length)return n.unshift(e),n}return[]}var de=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function Tn(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var Mi=class extends bi{constructor(e,r){super(e),this.snapshot=r,lu(this,e)}toString(){return this.snapshot.toString()}};function cp(t){let e=BC(t),r=new Q([new Ft("",{})]),n=new Q({}),o=new Q({}),i=new Q({}),s=new Q(""),a=new gt(r,n,i,s,o,M,t,e.root);return a.snapshot=e.root,new Mi(new de(a,[]),e)}function BC(t){let e={},r={},n={},o="",i=new _n([],e,n,o,r,M,t,null,{});return new Ti("",new de(i,[]))}var gt=class{constructor(e,r,n,o,i,s,a,c){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(A(u=>u[Ar]))??D(void 0),this.url=e,this.params=r,this.queryParams=n,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(A(e=>An(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(A(e=>An(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Si(t,e,r="emptyOnly"){let n,{routeConfig:o}=t;return e!==null&&(r==="always"||o?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:m(m({},e.params),t.params),data:m(m({},e.data),t.data),resolve:m(m(m(m({},t.data),e.data),o?.data),t._resolvedData)}:n={params:m({},t.params),data:m({},t.data),resolve:m(m({},t.data),t._resolvedData??{})},o&&lp(o)&&(n.resolve[Ar]=o.title),n}var _n=class{get title(){return this.data?.[Ar]}constructor(e,r,n,o,i,s,a,c,u){this.url=e,this.params=r,this.queryParams=n,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=An(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=An(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},Ti=class extends bi{constructor(e,r){super(r),this.url=e,lu(this,r)}toString(){return up(this._root)}};function lu(t,e){e.value._routerState=t,e.children.forEach(r=>lu(t,r))}function up(t){let e=t.children.length>0?` { ${t.children.map(up).join(", ")} } `:"";return`${t.value}${e}`}function Fc(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,Be(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),Be(e.params,r.params)||t.paramsSubject.next(r.params),mC(e.url,r.url)||t.urlSubject.next(r.url),Be(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function nu(t,e){let r=Be(t.params,e.params)&&wC(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||nu(t.parent,e.parent))}function lp(t){return typeof t.title=="string"||t.title===null}var UC=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=M,this.activateEvents=new J,this.deactivateEvents=new J,this.attachEvents=new J,this.detachEvents=new J,this.parentContexts=g(Or),this.location=g(ft),this.changeDetector=g(dr),this.inputBinder=g(Ai,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:o,previousValue:i}=n.name;if(o)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new v(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new v(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new v(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,o){this.activated=n,this._activatedRoute=o,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,o){if(this.isActivated)throw new v(4013,!1);this._activatedRoute=n;let i=this.location,a=n.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new ru(n,c,i.injector);this.activated=i.createComponent(a,{index:i.length,injector:u,environmentInjector:o}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ct({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[ir]});let t=e;return t})(),ru=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n}get(e,r){return e===gt?this.route:e===Or?this.childContexts:this.parent.get(e,r)}},Ai=new b(""),Uh=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:o}=n,i=Bn([o.queryParams,o.params,o.data]).pipe(pe(([s,a,c],u)=>(c=m(m(m({},s),a),c),u===0?D(c):Promise.resolve(c)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==o||o.component===null){this.unsubscribeFromRouteData(n);return}let a=vh(o.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:c}of a.inputs)n.activatedComponentRef.setInput(c,s[c])});this.outletDataSubscriptions.set(n,i)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})();function HC(t,e,r){let n=Sr(t,e._root,r?r._root:void 0);return new Mi(n,e)}function Sr(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let o=zC(t,e,r);return new de(n,o)}else{if(t.shouldAttach(e.value)){let i=t.retrieve(e.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>Sr(t,a)),s}}let n=GC(e.value),o=e.children.map(i=>Sr(t,i));return new de(n,o)}}function zC(t,e,r){return e.children.map(n=>{for(let o of r.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return Sr(t,n,o);return Sr(t,n)})}function GC(t){return new gt(new Q(t.url),new Q(t.params),new Q(t.queryParams),new Q(t.fragment),new Q(t.data),t.outlet,t.component,t)}var Tr=class{constructor(e,r){this.redirectTo=e,this.navigationBehaviorOptions=r}},dp="ngNavigationCancelingError";function xi(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=Ir(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,o=fp(!1,fe.Redirect);return o.url=r,o.navigationBehaviorOptions=n,o}function fp(t,e){let r=new Error(`NavigationCancelingError: ${t||""}`);return r[dp]=!0,r.cancellationCode=e,r}function qC(t){return hp(t)&&Ir(t.url)}function hp(t){return!!t&&t[dp]}var WC=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=cd({type:e,selectors:[["ng-component"]],standalone:!0,features:[lh],decls:1,vars:0,template:function(o,i){o&1&&uc(0,"router-outlet")},dependencies:[UC],encapsulation:2});let t=e;return t})();function ZC(t,e){return t.providers&&!t._injector&&(t._injector=ii(t.providers,e,`Route: ${t.path}`)),t._injector??e}function du(t){let e=t.children&&t.children.map(du),r=e?U(m({},t),{children:e}):m({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==M&&(r.component=WC),r}function Te(t){return t.outlet||M}function YC(t,e){let r=t.filter(n=>Te(n)===e);return r.push(...t.filter(n=>Te(n)!==e)),r}function Pr(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var QC=(t,e,r,n)=>A(o=>(new ou(e,o.targetRouterState,o.currentRouterState,r,n).activate(t),o)),ou=class{constructor(e,r,n,o,i){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=i}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),Fc(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let o=Tn(r);e.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],n),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,n)})}deactivateRoutes(e,r,n){let o=e.value,i=r?r.value:null;if(o===i)if(o.component){let s=n.getContext(o.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,n);else i&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),o=n&&e.value.component?n.children:r,i=Tn(e);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let n=r.getContext(e.value.outlet),o=n&&e.value.component?n.children:r,i=Tn(e);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let o=Tn(r);e.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],n),this.forwardEvent(new Jc(i.value.snapshot))}),e.children.length&&this.forwardEvent(new Qc(e.value.snapshot))}activateRoutes(e,r,n){let o=e.value,i=r?r.value:null;if(Fc(o),o===i)if(o.component){let s=n.getOrCreateContext(o.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,n);else if(o.component){let s=n.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Fc(a.route.value),this.activateChildRoutes(e,null,s.children)}else{let a=Pr(o.snapshot);s.attachRef=null,s.route=o,s.injector=a??s.injector,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,n)}},_i=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},Nn=class{constructor(e,r){this.component=e,this.route=r}};function KC(t,e,r){let n=t._root,o=e?e._root:null;return vr(n,o,r,[n.value])}function JC(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Fn(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!Yl(t)?t:e.get(t):n}function vr(t,e,r,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=Tn(e);return t.children.forEach(s=>{XC(s,i[s.value.outlet],r,n.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>Cr(a,r.getContext(s),o)),o}function XC(t,e,r,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=t.value,s=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=eI(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new _i(n)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?vr(t,e,a?a.children:null,n,o):vr(t,e,r,n,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Nn(a.outlet.component,s))}else s&&Cr(e,a,o),o.canActivateChecks.push(new _i(n)),i.component?vr(t,null,a?a.children:null,n,o):vr(t,null,r,n,o);return o}function eI(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!Lt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Lt(t.url,e.url)||!Be(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!nu(t,e)||!Be(t.queryParams,e.queryParams);case"paramsChange":default:return!nu(t,e)}}function Cr(t,e,r){let n=Tn(t),o=t.value;Object.entries(n).forEach(([i,s])=>{o.component?e?Cr(s,e.children.getContext(i),r):Cr(s,null,r):Cr(s,e,r)}),o.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new Nn(e.outlet.component,o)):r.canDeactivateChecks.push(new Nn(null,o)):r.canDeactivateChecks.push(new Nn(null,o))}function kr(t){return typeof t=="function"}function tI(t){return typeof t=="boolean"}function nI(t){return t&&kr(t.canLoad)}function rI(t){return t&&kr(t.canActivate)}function oI(t){return t&&kr(t.canActivateChild)}function iI(t){return t&&kr(t.canDeactivate)}function sI(t){return t&&kr(t.canMatch)}function pp(t){return t instanceof ze||t?.name==="EmptyError"}var gi=Symbol("INITIAL_VALUE");function kn(){return pe(t=>Bn(t.map(e=>e.pipe(Ge(1),Xi(gi)))).pipe(A(e=>{for(let r of e)if(r!==!0){if(r===gi)return gi;if(r===!1||aI(r))return r}return!0}),he(e=>e!==gi),Ge(1)))}function aI(t){return Ir(t)||t instanceof Tr}function cI(t,e){return z(r=>{let{targetSnapshot:n,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=r;return s.length===0&&i.length===0?D(U(m({},r),{guardsResult:!0})):uI(s,n,o,t).pipe(z(a=>a&&tI(a)?lI(n,i,t,e):D(a)),A(a=>U(m({},r),{guardsResult:a})))})}function uI(t,e,r,n){return B(t).pipe(z(o=>gI(o.component,o.route,r,e,n)),xe(o=>o!==!0,!0))}function lI(t,e,r,n){return B(e).pipe(Ct(o=>Qt(fI(o.route.parent,n),dI(o.route,n),pI(t,o.path,r),hI(t,o.route,r))),xe(o=>o!==!0,!0))}function dI(t,e){return t!==null&&e&&e(new Kc(t)),D(!0)}function fI(t,e){return t!==null&&e&&e(new Yc(t)),D(!0)}function hI(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return D(!0);let o=n.map(i=>so(()=>{let s=Pr(e)??r,a=Fn(i,s),c=rI(a)?a.canActivate(e,t):Me(s,()=>a(e,t));return mt(c).pipe(xe())}));return D(o).pipe(kn())}function pI(t,e,r){let n=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(s=>JC(s)).filter(s=>s!==null).map(s=>so(()=>{let a=s.guards.map(c=>{let u=Pr(s.node)??r,l=Fn(c,u),d=oI(l)?l.canActivateChild(n,t):Me(u,()=>l(n,t));return mt(d).pipe(xe())});return D(a).pipe(kn())}));return D(i).pipe(kn())}function gI(t,e,r,n,o){let i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!i||i.length===0)return D(!0);let s=i.map(a=>{let c=Pr(e)??o,u=Fn(a,c),l=iI(u)?u.canDeactivate(t,e,r,n):Me(c,()=>u(t,e,r,n));return mt(l).pipe(xe())});return D(s).pipe(kn())}function mI(t,e,r,n){let o=e.canLoad;if(o===void 0||o.length===0)return D(!0);let i=o.map(s=>{let a=Fn(s,t),c=nI(a)?a.canLoad(e,r):Me(t,()=>a(e,r));return mt(c)});return D(i).pipe(kn(),gp(n))}function gp(t){return Hi(K(e=>{if(typeof e!="boolean")throw xi(t,e)}),A(e=>e===!0))}function vI(t,e,r,n){let o=e.canMatch;if(!o||o.length===0)return D(!0);let i=o.map(s=>{let a=Fn(s,t),c=sI(a)?a.canMatch(e,r):Me(t,()=>a(e,r));return mt(c)});return D(i).pipe(kn(),gp(n))}var xr=class{constructor(e){this.segmentGroup=e||null}},_r=class extends Error{constructor(e){super(),this.urlTree=e}};function Sn(t){return Zt(new xr(t))}function yI(t){return Zt(new v(4e3,!1))}function DI(t){return Zt(fp(!1,fe.GuardRejected))}var iu=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let n=[],o=r.root;for(;;){if(n=n.concat(o.segments),o.numberOfChildren===0)return D(n);if(o.numberOfChildren>1||!o.children[M])return yI(`${e.redirectTo}`);o=o.children[M]}}applyRedirectCommands(e,r,n,o,i){if(typeof r!="string"){let a=r,{queryParams:c,fragment:u,routeConfig:l,url:d,outlet:f,params:h,data:p,title:C}=o,P=Me(i,()=>a({params:h,data:p,queryParams:c,fragment:u,routeConfig:l,url:d,outlet:f,title:C}));if(P instanceof ht)throw new _r(P);r=P}let s=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r[0]==="/")throw new _r(s);return s}applyRedirectCreateUrlTree(e,r,n,o){let i=this.createSegmentGroup(e,r.root,n,o);return new ht(i,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);n[o]=r[a]}else n[o]=i}),n}createSegmentGroup(e,r,n,o){let i=this.createSegments(e,r.segments,n,o),s={};return Object.entries(r.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(e,c,n,o)}),new F(i,s)}createSegments(e,r,n,o){return r.map(i=>i.path[0]===":"?this.findPosParam(e,i,o):this.findOrReturn(i,n))}findPosParam(e,r,n){let o=n[r.path.substring(1)];if(!o)throw new v(4001,!1);return o}findOrReturn(e,r){let n=0;for(let o of r){if(o.path===e.path)return r.splice(n),o;n++}return e}},su={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function wI(t,e,r,n,o){let i=fu(t,e,r);return i.matched?(n=ZC(e,n),vI(n,e,r,o).pipe(A(s=>s===!0?i:m({},su)))):D(i)}function fu(t,e,r){if(e.path==="**")return CI(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?m({},su):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let o=(e.matcher||gC)(r,t,e);if(!o)return m({},su);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});let s=o.consumed.length>0?m(m({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:r.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function CI(t){return{matched:!0,parameters:t.length>0?Yh(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function Hh(t,e,r,n){return r.length>0&&bI(t,r,n)?{segmentGroup:new F(e,EI(n,new F(r,t.children))),slicedSegments:[]}:r.length===0&&MI(t,r,n)?{segmentGroup:new F(t.segments,II(t,r,n,t.children)),slicedSegments:r}:{segmentGroup:new F(t.segments,t.children),slicedSegments:r}}function II(t,e,r,n){let o={};for(let i of r)if(Ri(t,e,i)&&!n[Te(i)]){let s=new F([],{});o[Te(i)]=s}return m(m({},n),o)}function EI(t,e){let r={};r[M]=e;for(let n of t)if(n.path===""&&Te(n)!==M){let o=new F([],{});r[Te(n)]=o}return r}function bI(t,e,r){return r.some(n=>Ri(t,e,n)&&Te(n)!==M)}function MI(t,e,r){return r.some(n=>Ri(t,e,n))}function Ri(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function SI(t,e,r,n){return Te(t)!==n&&(n===M||!Ri(e,r,t))?!1:fu(e,t,r).matched}function TI(t,e,r){return e.length===0&&!t.children[r]}var au=class{};function xI(t,e,r,n,o,i,s="emptyOnly"){return new cu(t,e,r,n,o,s,i).recognize()}var _I=31,cu=class{constructor(e,r,n,o,i,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new iu(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new v(4002,`'${e.segmentGroup}'`)}recognize(){let e=Hh(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(A(({children:r,rootSnapshot:n})=>{let o=new de(n,r),i=new Ti("",o),s=PC(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}))}match(e){let r=new _n([],Object.freeze({}),Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),M,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,M,r).pipe(A(n=>({children:n,rootSnapshot:r})),et(n=>{if(n instanceof _r)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof xr?this.noMatchError(n):n}))}processSegmentGroup(e,r,n,o,i){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n,i):this.processSegment(e,r,n,n.segments,o,!0,i).pipe(A(s=>s instanceof de?[s]:[]))}processChildren(e,r,n,o){let i=[];for(let s of Object.keys(n.children))s==="primary"?i.unshift(s):i.push(s);return B(i).pipe(Ct(s=>{let a=n.children[s],c=YC(r,s);return this.processSegmentGroup(e,c,a,s,o)}),Ji((s,a)=>(s.push(...a),s)),tt(null),Ki(),z(s=>{if(s===null)return Sn(n);let a=mp(s);return NI(a),D(a)}))}processSegment(e,r,n,o,i,s,a){return B(r).pipe(Ct(c=>this.processSegmentAgainstRoute(c._injector??e,r,c,n,o,i,s,a).pipe(et(u=>{if(u instanceof xr)return D(null);throw u}))),xe(c=>!!c),et(c=>{if(pp(c))return TI(n,o,i)?D(new au):Sn(n);throw c}))}processSegmentAgainstRoute(e,r,n,o,i,s,a,c){return SI(n,o,i,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,o,n,i,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,o,r,n,i,s,c):Sn(o):Sn(o)}expandSegmentAgainstRouteUsingRedirect(e,r,n,o,i,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:f}=fu(r,o,i);if(!c)return Sn(r);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>_I&&(this.allowRedirects=!1));let h=new _n(i,u,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,zh(o),Te(o),o.component??o._loadedComponent??null,o,Gh(o)),p=Si(h,a,this.paramsInheritanceStrategy);h.params=Object.freeze(p.params),h.data=Object.freeze(p.data);let C=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,h,e);return this.applyRedirects.lineralizeSegments(o,C).pipe(z(P=>this.processSegment(e,n,r,P.concat(f),s,!1,a)))}matchSegmentAgainstRoute(e,r,n,o,i,s){let a=wI(r,n,o,e,this.urlSerializer);return n.path==="**"&&(r.children={}),a.pipe(pe(c=>c.matched?(e=n._injector??e,this.getChildConfig(e,n,o).pipe(pe(({routes:u})=>{let l=n._loadedInjector??e,{parameters:d,consumedSegments:f,remainingSegments:h}=c,p=new _n(f,d,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,zh(n),Te(n),n.component??n._loadedComponent??null,n,Gh(n)),C=Si(p,s,this.paramsInheritanceStrategy);p.params=Object.freeze(C.params),p.data=Object.freeze(C.data);let{segmentGroup:P,slicedSegments:L}=Hh(r,f,h,u);if(L.length===0&&P.hasChildren())return this.processChildren(l,u,P,p).pipe(A(q=>new de(p,q)));if(u.length===0&&L.length===0)return D(new de(p,[]));let ye=Te(n)===i;return this.processSegment(l,u,P,L,ye?M:i,!0,p).pipe(A(q=>new de(p,q instanceof de?[q]:[])))}))):Sn(r)))}getChildConfig(e,r,n){return r.children?D({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?D({routes:r._loadedRoutes,injector:r._loadedInjector}):mI(e,r,n,this.urlSerializer).pipe(z(o=>o?this.configLoader.loadChildren(e,r).pipe(K(i=>{r._loadedRoutes=i.routes,r._loadedInjector=i.injector})):DI(r))):D({routes:[],injector:e})}};function NI(t){t.sort((e,r)=>e.value.outlet===M?-1:r.value.outlet===M?1:e.value.outlet.localeCompare(r.value.outlet))}function AI(t){let e=t.value.routeConfig;return e&&e.path===""}function mp(t){let e=[],r=new Set;for(let n of t){if(!AI(n)){e.push(n);continue}let o=e.find(i=>n.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...n.children),r.add(o)):e.push(n)}for(let n of r){let o=mp(n.children);e.push(new de(n.value,o))}return e.filter(n=>!r.has(n))}function zh(t){return t.data||{}}function Gh(t){return t.resolve||{}}function RI(t,e,r,n,o,i){return z(s=>xI(t,e,r,n,s.extractedUrl,o,i).pipe(A(({state:a,tree:c})=>U(m({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function OI(t,e){return z(r=>{let{targetSnapshot:n,guards:{canActivateChecks:o}}=r;if(!o.length)return D(r);let i=new Set(o.map(c=>c.route)),s=new Set;for(let c of i)if(!s.has(c))for(let u of vp(c))s.add(u);let a=0;return B(s).pipe(Ct(c=>i.has(c)?PI(c,n,t,e):(c.data=Si(c,c.parent,t).resolve,D(void 0))),K(()=>a++),Kt(1),z(c=>a===s.size?D(r):ce))})}function vp(t){let e=t.children.map(r=>vp(r)).flat();return[t,...e]}function PI(t,e,r,n){let o=t.routeConfig,i=t._resolve;return o?.title!==void 0&&!lp(o)&&(i[Ar]=o.title),kI(i,t,e,n).pipe(A(s=>(t._resolvedData=s,t.data=Si(t,t.parent,r).resolve,null)))}function kI(t,e,r,n){let o=Vc(t);if(o.length===0)return D({});let i={};return B(o).pipe(z(s=>FI(t[s],e,r,n).pipe(xe(),K(a=>{if(a instanceof Tr)throw xi(new Rn,a);i[s]=a}))),Kt(1),Qi(i),et(s=>pp(s)?ce:Zt(s)))}function FI(t,e,r,n){let o=Pr(e)??n,i=Fn(t,o),s=i.resolve?i.resolve(e,r):Me(o,()=>i(e,r));return mt(s)}function Lc(t){return pe(e=>{let r=t(e);return r?B(r).pipe(A(()=>e)):D(e)})}var yp=(()=>{let e=class e{buildTitle(n){let o,i=n.root;for(;i!==void 0;)o=this.getResolvedTitleForRoute(i)??o,i=i.children.find(s=>s.outlet===M);return o}getResolvedTitleForRoute(n){return n.data[Ar]}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:()=>g(LI),providedIn:"root"});let t=e;return t})(),LI=(()=>{let e=class e extends yp{constructor(n){super(),this.title=n}updateTitle(n){let o=this.buildTitle(n);o!==void 0&&this.title.setTitle(o)}};e.\u0275fac=function(o){return new(o||e)(E(Lh))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Fr=new b("",{providedIn:"root",factory:()=>({})}),Nr=new b(""),hu=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(ui)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return D(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let o=mt(n.loadComponent()).pipe(A(Dp),K(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),Un(()=>{this.componentLoaders.delete(n)})),i=new qt(o,()=>new W).pipe(Gt());return this.componentLoaders.set(n,i),i}loadChildren(n,o){if(this.childrenLoaders.get(o))return this.childrenLoaders.get(o);if(o._loadedRoutes)return D({routes:o._loadedRoutes,injector:o._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(o);let s=jI(o,this.compiler,n,this.onLoadEndListener).pipe(Un(()=>{this.childrenLoaders.delete(o)})),a=new qt(s,()=>new W).pipe(Gt());return this.childrenLoaders.set(o,a),a}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function jI(t,e,r,n){return mt(t.loadChildren()).pipe(A(Dp),z(o=>o instanceof Kn||Array.isArray(o)?D(o):B(e.compileModuleAsync(o))),A(o=>{n&&n(t);let i,s,a=!1;return Array.isArray(o)?(s=o,a=!0):(i=o.create(r).injector,s=i.get(Nr,[],{optional:!0,self:!0}).flat()),{routes:s.map(du),injector:i}}))}function VI(t){return t&&typeof t=="object"&&"default"in t}function Dp(t){return VI(t)?t.default:t}var pu=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:()=>g($I),providedIn:"root"});let t=e;return t})(),$I=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,o){return n}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),wp=new b(""),Cp=new b("");function BI(t,e,r){let n=t.get(Cp),o=t.get(se);return t.get($).runOutsideAngular(()=>{if(!o.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(u=>setTimeout(u));let i,s=new Promise(u=>{i=u}),a=o.startViewTransition(()=>(i(),UI(t))),{onViewTransitionCreated:c}=n;return c&&Me(t,()=>c({transition:a,from:e,to:r})),s})}function UI(t){return new Promise(e=>{oi(e,{injector:t})})}var HI=new b(""),gu=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new W,this.transitionAbortSubject=new W,this.configLoader=g(hu),this.environmentInjector=g(ie),this.urlSerializer=g(Rr),this.rootContexts=g(Or),this.location=g(Mn),this.inputBindingEnabled=g(Ai,{optional:!0})!==null,this.titleStrategy=g(yp),this.options=g(Fr,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(pu),this.createViewTransition=g(wp,{optional:!0}),this.navigationErrorHandler=g(HI,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>D(void 0),this.rootComponentType=null;let n=i=>this.events.next(new Wc(i)),o=i=>this.events.next(new Zc(i));this.configLoader.onLoadEndListener=o,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let o=++this.navigationId;this.transitions?.next(U(m(m({},this.transitions.value),n),{id:o}))}setupNavigations(n,o,i){return this.transitions=new Q({id:0,currentUrlTree:o,currentRawUrl:o,extractedUrl:this.urlHandlingStrategy.extract(o),urlAfterRedirects:this.urlHandlingStrategy.extract(o),rawUrl:o,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:wr,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(he(s=>s.id!==0),A(s=>U(m({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),pe(s=>{let a=!1,c=!1;return D(s).pipe(pe(u=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",fe.SupersededByNewNavigation),ce;this.currentTransition=s,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?U(m({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=u.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload"){let f="";return this.events.next(new pt(u.id,this.urlSerializer.serialize(u.rawUrl),f,Ci.IgnoredSameUrlNavigation)),u.resolve(!1),ce}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return D(u).pipe(pe(f=>{let h=this.transitions?.getValue();return this.events.next(new On(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions?.getValue()?ce:Promise.resolve(f)}),RI(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),K(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=U(m({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let h=new Ii(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(h)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:f,extractedUrl:h,source:p,restoredState:C,extras:P}=u,L=new On(f,this.urlSerializer.serialize(h),p,C);this.events.next(L);let ye=cp(this.rootComponentType).snapshot;return this.currentTransition=s=U(m({},u),{targetSnapshot:ye,urlAfterRedirects:h,extras:U(m({},P),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,D(s)}else{let f="";return this.events.next(new pt(u.id,this.urlSerializer.serialize(u.extractedUrl),f,Ci.IgnoredByUrlHandlingStrategy)),u.resolve(!1),ce}}),K(u=>{let l=new Hc(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),A(u=>(this.currentTransition=s=U(m({},u),{guards:KC(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),s)),cI(this.environmentInjector,u=>this.events.next(u)),K(u=>{if(s.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw xi(this.urlSerializer,u.guardsResult);let l=new zc(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),he(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",fe.GuardRejected),!1)),Lc(u=>{if(u.guards.canActivateChecks.length)return D(u).pipe(K(l=>{let d=new Gc(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),pe(l=>{let d=!1;return D(l).pipe(OI(this.paramsInheritanceStrategy,this.environmentInjector),K({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",fe.NoDataFromResolver)}}))}),K(l=>{let d=new qc(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),Lc(u=>{let l=d=>{let f=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(K(h=>{d.component=h}),A(()=>{})));for(let h of d.children)f.push(...l(h));return f};return Bn(l(u.targetSnapshot.root)).pipe(tt(null),Ge(1))}),Lc(()=>this.afterPreactivation()),pe(()=>{let{currentSnapshot:u,targetSnapshot:l}=s,d=this.createViewTransition?.(this.environmentInjector,u.root,l.root);return d?B(d).pipe(A(()=>s)):D(s)}),A(u=>{let l=HC(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=s=U(m({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),K(()=>{this.events.next(new Mr)}),QC(this.rootContexts,n.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),Ge(1),K({next:u=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ue(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),es(this.transitionAbortSubject.pipe(K(u=>{throw u}))),Un(()=>{!a&&!c&&this.cancelNavigationTransition(s,"",fe.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),et(u=>{if(c=!0,hp(u))this.events.next(new Ke(s.id,this.urlSerializer.serialize(s.extractedUrl),u.message,u.cancellationCode)),qC(u)?this.events.next(new Pn(u.url,u.navigationBehaviorOptions)):s.resolve(!1);else{let l=new br(s.id,this.urlSerializer.serialize(s.extractedUrl),u,s.targetSnapshot??void 0);try{let d=Me(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(d instanceof Tr){let{message:f,cancellationCode:h}=xi(this.urlSerializer,d);this.events.next(new Ke(s.id,this.urlSerializer.serialize(s.extractedUrl),f,h)),this.events.next(new Pn(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(l);let f=n.errorHandler(u);s.resolve(!!f)}}catch(d){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(d)}}return ce}))}))}cancelNavigationTransition(n,o,i){let s=new Ke(n.id,this.urlSerializer.serialize(n.extractedUrl),o,i);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function zI(t){return t!==wr}var GI=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:()=>g(qI),providedIn:"root"});let t=e;return t})(),uu=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},qI=(()=>{let e=class e extends uu{};e.\u0275fac=(()=>{let n;return function(i){return(n||(n=ka(e)))(i||e)}})(),e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ip=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:()=>g(WI),providedIn:"root"});let t=e;return t})(),WI=(()=>{let e=class e extends Ip{constructor(){super(...arguments),this.location=g(Mn),this.urlSerializer=g(Rr),this.options=g(Fr,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(pu),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new ht,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=cp(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(o=>{o.type==="popstate"&&n(o.url,o.state)})}handleRouterEvent(n,o){if(n instanceof On)this.stateMemento=this.createStateMemento();else if(n instanceof pt)this.rawUrlTree=o.initialUrl;else if(n instanceof Ii){if(this.urlUpdateStrategy==="eager"&&!o.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(o.finalUrl,o.initialUrl);this.setBrowserUrl(i,o)}}else n instanceof Mr?(this.currentUrlTree=o.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(o.finalUrl,o.initialUrl),this.routerState=o.targetRouterState,this.urlUpdateStrategy==="deferred"&&(o.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,o))):n instanceof Ke&&(n.code===fe.GuardRejected||n.code===fe.NoDataFromResolver)?this.restoreHistory(o):n instanceof br?this.restoreHistory(o,!0):n instanceof Ue&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,o){let i=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(i)||o.extras.replaceUrl){let s=this.browserPageId,a=m(m({},o.extras.state),this.generateNgRouterState(o.id,s));this.location.replaceState(i,"",a)}else{let s=m(m({},o.extras.state),this.generateNgRouterState(o.id,this.browserPageId+1));this.location.go(i,"",s)}}restoreHistory(n,o=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,s=this.currentPageId-i;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(o&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,o){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:o}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(i){return(n||(n=ka(e)))(i||e)}})(),e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),yr=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(yr||{});function Ep(t,e){t.events.pipe(he(r=>r instanceof Ue||r instanceof Ke||r instanceof br||r instanceof pt),A(r=>r instanceof Ue||r instanceof pt?yr.COMPLETE:(r instanceof Ke?r.code===fe.Redirect||r.code===fe.SupersededByNewNavigation:!1)?yr.REDIRECTING:yr.FAILED),he(r=>r!==yr.REDIRECTING),Ge(1)).subscribe(()=>{e()})}function ZI(t){throw t}var YI={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},QI={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Je=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=g(si),this.stateManager=g(Ip),this.options=g(Fr,{optional:!0})||{},this.pendingTasks=g(ur),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(gu),this.urlSerializer=g(Rr),this.location=g(Mn),this.urlHandlingStrategy=g(pu),this._events=new W,this.errorHandler=this.options.errorHandler||ZI,this.navigated=!1,this.routeReuseStrategy=g(GI),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=g(Nr,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!g(Ai,{optional:!0}),this.eventsSubscription=new V,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(o=>{try{let i=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(i!==null&&s!==null){if(this.stateManager.handleRouterEvent(o,s),o instanceof Ke&&o.code!==fe.Redirect&&o.code!==fe.SupersededByNewNavigation)this.navigated=!0;else if(o instanceof Ue)this.navigated=!0;else if(o instanceof Pn){let a=o.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(o.url,i.currentRawUrl),u=m({info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||zI(i.source)},a);this.scheduleNavigation(c,wr,null,u,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}JI(o)&&this._events.next(o)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),wr,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,o)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",o)},0)})}navigateToSyncWithBrowser(n,o,i){let s={replaceUrl:!0},a=i?.navigationId?i:null;if(i){let u=m({},i);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(s.state=u)}let c=this.parseUrl(n);this.scheduleNavigation(c,o,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(du),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,o={}){let{relativeTo:i,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:u}=o,l=u?this.currentUrlTree.fragment:a,d=null;switch(c){case"merge":d=m(m({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let h=i?i.snapshot:this.routerState.snapshot.root;f=op(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),f=this.currentUrlTree.root}return ip(f,n,d,l??null)}navigateByUrl(n,o={skipLocationChange:!1}){let i=Ir(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(s,wr,null,o)}navigate(n,o={skipLocationChange:!1}){return KI(n),this.navigateByUrl(this.createUrlTree(n,o),o)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,o){let i;if(o===!0?i=m({},YI):o===!1?i=m({},QI):i=o,Ir(n))return jh(this.currentUrlTree,n,i);let s=this.parseUrl(n);return jh(this.currentUrlTree,s,i)}removeEmptyProps(n){return Object.entries(n).reduce((o,[i,s])=>(s!=null&&(o[i]=s),o),{})}scheduleNavigation(n,o,i,s,a){if(this.disposed)return Promise.resolve(!1);let c,u,l;a?(c=a.resolve,u=a.reject,l=a.promise):l=new Promise((f,h)=>{c=f,u=h});let d=this.pendingTasks.add();return Ep(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:o,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(f=>Promise.reject(f))}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function KI(t){for(let e=0;e{let e=class e{constructor(n,o,i,s,a,c){this.router=n,this.route=o,this.tabIndexAttribute=i,this.renderer=s,this.el=a,this.locationStrategy=c,this.href=null,this.commands=null,this.onChanges=new W,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let u=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=n.events.subscribe(l=>{l instanceof Ue&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n!=null?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,o,i,s,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(n!==0||o||i||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let o=this.href===null?null:yf(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",o)}applyAttributeValue(n,o){let i=this.renderer,s=this.el.nativeElement;o!==null?i.setAttribute(s,n,o):i.removeAttribute(s,n)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(o){return new(o||e)(G(Je),G(gt),Fa("tabindex"),G(In),G(Ve),G($e))},e.\u0275dir=ct({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(o,i){o&1&&lc("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),o&2&&cc("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",fr],skipLocationChange:[2,"skipLocationChange","skipLocationChange",fr],replaceUrl:[2,"replaceUrl","replaceUrl",fr],routerLink:"routerLink"},standalone:!0,features:[sc,ir]});let t=e;return t})();var Ni=class{};var XI=(()=>{let e=class e{constructor(n,o,i,s,a){this.router=n,this.injector=i,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(he(n=>n instanceof Ue),Ct(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,o){let i=[];for(let s of o){s.providers&&!s._injector&&(s._injector=ii(s.providers,n,`Route: ${s.path}`));let a=s._injector??n,c=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&i.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&i.push(this.processRoutes(c,s.children??s._loadedRoutes))}return B(i).pipe(Yt())}preloadConfig(n,o){return this.preloadingStrategy.preload(o,()=>{let i;o.loadChildren&&o.canLoad===void 0?i=this.loader.loadChildren(n,o):i=D(null);let s=i.pipe(z(a=>a===null?D(void 0):(o._loadedRoutes=a.routes,o._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));if(o.loadComponent&&!o._loadedComponent){let a=this.loader.loadComponent(o);return B([s,a]).pipe(Yt())}else return s})}};e.\u0275fac=function(o){return new(o||e)(E(Je),E(ui),E(ie),E(Ni),E(hu))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),bp=new b(""),eE=(()=>{let e=class e{constructor(n,o,i,s,a={}){this.urlSerializer=n,this.transitions=o,this.viewportScroller=i,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=g(ie),a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof On?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Ue?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof pt&&n.code===Ci.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Ei&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,o){this.zone.runOutsideAngular(()=>vu(this,null,function*(){yield new Promise(i=>{setTimeout(()=>{i()}),oi(()=>{i()},{injector:this.environmentInjector})}),this.zone.run(()=>{this.transitions.events.next(new Ei(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,o))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(o){_f()},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})();function gN(t,...e){return ba([{provide:Nr,multi:!0,useValue:t},[],{provide:gt,useFactory:Mp,deps:[Je]},{provide:ci,multi:!0,useFactory:Sp},e.map(r=>r.\u0275providers)])}function Mp(t){return t.routerState.root}function Ln(t,e){return{\u0275kind:t,\u0275providers:e}}function Sp(){let t=g(Fe);return e=>{let r=t.get(En);if(e!==r.components[0])return;let n=t.get(Je),o=t.get(Tp);t.get(mu)===1&&n.initialNavigation(),t.get(xp,null,S.Optional)?.setUpPreloading(),t.get(bp,null,S.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var Tp=new b("",{factory:()=>new W}),mu=new b("",{providedIn:"root",factory:()=>1});function tE(){return Ln(2,[{provide:mu,useValue:0},{provide:ai,multi:!0,deps:[Fe],useFactory:e=>{let r=e.get(Sh,Promise.resolve());return()=>r.then(()=>new Promise(n=>{let o=e.get(Je),i=e.get(Tp);Ep(o,()=>{n(!0)}),e.get(gu).afterPreactivation=()=>(n(!0),i.closed?D(void 0):i),o.initialNavigation()}))}}])}function nE(){return Ln(3,[{provide:ai,multi:!0,useFactory:()=>{let e=g(Je);return()=>{e.setUpLocationChangeListener()}}},{provide:mu,useValue:2}])}var xp=new b("");function rE(t){return Ln(0,[{provide:xp,useExisting:XI},{provide:Ni,useExisting:t}])}function mN(){return Ln(6,[{provide:$e,useClass:bc}])}function oE(){return Ln(8,[Uh,{provide:Ai,useExisting:Uh}])}function iE(t){let e=[{provide:wp,useValue:BI},{provide:Cp,useValue:m({skipNextTransition:!!t?.skipInitialTransition},t)}];return Ln(9,e)}var qh=new b("ROUTER_FORROOT_GUARD"),sE=[Mn,{provide:Rr,useClass:Rn},Je,Or,{provide:gt,useFactory:Mp,deps:[Je]},hu,[]],vN=(()=>{let e=class e{constructor(n){}static forRoot(n,o){return{ngModule:e,providers:[sE,[],{provide:Nr,multi:!0,useValue:n},{provide:qh,useFactory:lE,deps:[[Je,new nr,new Uo]]},{provide:Fr,useValue:o||{}},o?.useHash?cE():uE(),aE(),o?.preloadingStrategy?rE(o.preloadingStrategy).\u0275providers:[],o?.initialNavigation?dE(o):[],o?.bindToComponentInputs?oE().\u0275providers:[],o?.enableViewTransitions?iE().\u0275providers:[],fE()]}}static forChild(n){return{ngModule:e,providers:[{provide:Nr,multi:!0,useValue:n}]}}};e.\u0275fac=function(o){return new(o||e)(E(qh,8))},e.\u0275mod=or({type:e}),e.\u0275inj=er({});let t=e;return t})();function aE(){return{provide:bp,useFactory:()=>{let t=g(_h),e=g($),r=g(Fr),n=g(gu),o=g(Rr);return r.scrollOffset&&t.setOffset(r.scrollOffset),new eE(o,n,t,e,r)}}}function cE(){return{provide:$e,useClass:bc}}function uE(){return{provide:$e,useClass:Ec}}function lE(t){return"guarded"}function dE(t){return[t.initialNavigation==="disabled"?nE().\u0275providers:[],t.initialNavigation==="enabledBlocking"?tE().\u0275providers:[]]}var Wh=new b("");function fE(){return[{provide:Wh,useFactory:Sp},{provide:ci,multi:!0,useExisting:Wh}]}export{V as a,O as b,W as c,Q as d,Wi as e,qr as f,pe as g,ng as h,y as i,er as j,b as k,E as l,cd as m,or as n,ct as o,ir as p,Px as q,kx as r,Ve as s,J as t,Fx as u,Cv as v,Lx as w,jx as x,G as y,pn as z,In as A,$ as B,ft as C,ND as D,HD as E,Ux as F,sh as G,ah as H,uc as I,rw as J,ow as K,Hx as L,lc as M,zx as N,Gx as O,dw as P,fw as Q,qx as R,Wx as S,pw as T,ch as U,Zx as V,lh as W,Yx as X,Qx as Y,Kx as Z,dr as _,I_ as $,E_ as aa,b_ as ba,M_ as ca,zw as da,Y_ as ea,UC as fa,pN as ga,gN as ha,mN as ia,iE as ja,vN as ka}; diff --git a/chunk-KZ7UGLZ5.js b/chunk-KZ7UGLZ5.js new file mode 100644 index 0000000..a97a5fe --- /dev/null +++ b/chunk-KZ7UGLZ5.js @@ -0,0 +1 @@ +import{B as D,E as M,I as A,V as R,W as I,a as y,b as L,c as _,da as F,e as g,f as C,g as S,h as b,k as z,m as O,o as T,p as G,s as w,t as m,y as u}from"./chunk-HRLUZBMJ.js";import{a as E,b as f,d}from"./chunk-F6SUT7E5.js";var v=class{constructor(){this.subject=new g(1),this.subscriptions=new y}doFilter(e){this.subject.next(e)}dispose(){this.subscriptions.unsubscribe()}notEmpty(e,a){this.subscriptions.add(this.subject.subscribe(t=>{if(t[e]){let i=t[e].currentValue;i!=null&&a(i)}}))}has(e,a){this.subscriptions.add(this.subject.subscribe(t=>{if(t[e]){let i=t[e].currentValue;a(i)}}))}notFirst(e,a){this.subscriptions.add(this.subject.subscribe(t=>{if(t[e]&&!t[e].isFirstChange()){let i=t[e].currentValue;a(i)}}))}notFirstAndEmpty(e,a){this.subscriptions.add(this.subject.subscribe(t=>{if(t[e]&&!t[e].isFirstChange()){let i=t[e].currentValue;i!=null&&a(i)}}))}},P=new z("NGX_ECHARTS_CONFIG"),N=(()=>{let e=class e{constructor(t,i,s){this.el=i,this.ngZone=s,this.options=null,this.theme=null,this.initOpts=null,this.merge=null,this.autoResize=!0,this.loading=!1,this.loadingType="default",this.loadingOpts=null,this.chartInit=new m,this.optionsError=new m,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartHighlight=this.createLazyEvent("highlight"),this.chartDownplay=this.createLazyEvent("downplay"),this.chartSelectChanged=this.createLazyEvent("selectchanged"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendLegendSelectAll=this.createLazyEvent("legendselectall"),this.chartLegendLegendInverseSelect=this.createLazyEvent("legendinverseselect"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartGraphRoam=this.createLazyEvent("graphroam"),this.chartGeoRoam=this.createLazyEvent("georoam"),this.chartTreeRoam=this.createLazyEvent("treeroam"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartGeoSelectChanged=this.createLazyEvent("geoselectchanged"),this.chartGeoSelected=this.createLazyEvent("geoselected"),this.chartGeoUnselected=this.createLazyEvent("geounselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartGlobalCursorTaken=this.createLazyEvent("globalcursortaken"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.chart$=new g(1),this.resize$=new _,this.changeFilter=new v,this.resizeObFired=!1,this.echarts=t.echarts,this.theme=t.theme||null}ngOnChanges(t){this.changeFilter.doFilter(t)}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(b(100,C,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(t=>{for(let i of t)i.target===this.el.nativeElement&&(this.resizeObFired?this.animationFrameID=window.requestAnimationFrame(()=>{this.resize$.next()}):this.resizeObFired=!0)})),this.resizeOb.observe(this.el.nativeElement)),this.changeFilter.notFirstAndEmpty("options",t=>this.onOptionsChange(t)),this.changeFilter.notFirstAndEmpty("merge",t=>this.setOption(t)),this.changeFilter.has("loading",t=>this.toggleLoading(!!t)),this.changeFilter.notFirst("theme",()=>this.refreshChart())}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.loadingSub&&this.loadingSub.unsubscribe(),this.changeFilter.dispose(),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(t){this.chart?t?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading():this.loadingSub=this.chart$.subscribe(i=>t?i.showLoading(this.loadingType,this.loadingOpts):i.hideLoading())}setOption(t,i){if(this.chart)try{this.chart.setOption(t,i)}catch(s){console.error(s),this.optionsError.emit(s)}}refreshChart(){return d(this,null,function*(){this.dispose(),yield this.initChart()})}createChart(){let t=this.el.nativeElement;if(window&&window.getComputedStyle){let i=window.getComputedStyle(t,null).getPropertyValue("height");(!i||i==="0px")&&(!t.style.height||t.style.height==="0px")&&(t.style.height="400px")}return this.ngZone.runOutsideAngular(()=>(typeof this.echarts=="function"?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:s})=>s(t,this.theme,this.initOpts)))}initChart(){return d(this,null,function*(){yield this.onOptionsChange(this.options),this.merge&&this.chart&&this.setOption(this.merge)})}onOptionsChange(t){return d(this,null,function*(){t&&(this.chart?this.setOption(this.options,!0):(this.chart=yield this.createChart(),this.chart$.next(this.chart),this.chartInit.emit(this.chart),this.setOption(this.options,!0)))})}createLazyEvent(t){return this.chartInit.pipe(S(i=>new L(s=>(i.on(t,o=>this.ngZone.run(()=>s.next(o))),()=>{this.chart&&(this.chart.isDisposed()||i.off(t))}))))}};e.\u0275fac=function(i){return new(i||e)(u(P),u(w),u(D))},e.\u0275dir=T({type:e,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loading:"loading",loadingType:"loadingType",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartHighlight:"chartHighlight",chartDownplay:"chartDownplay",chartSelectChanged:"chartSelectChanged",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendLegendSelectAll:"chartLegendLegendSelectAll",chartLegendLegendInverseSelect:"chartLegendLegendInverseSelect",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartGraphRoam:"chartGraphRoam",chartGeoRoam:"chartGeoRoam",chartTreeRoam:"chartTreeRoam",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartGeoSelectChanged:"chartGeoSelectChanged",chartGeoSelected:"chartGeoSelected",chartGeoUnselected:"chartGeoUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartGlobalCursorTaken:"chartGlobalCursorTaken",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],standalone:!0,features:[G]});let r=e;return r})(),x=(r={})=>({provide:P,useFactory:()=>f(E({},r),{echarts:()=>import("./chunk-XHHVRPNP.js")})});var p=class{constructor(e,a,t){this._proportionalGain=e,this._integralGain=a,this._derivativeGain=t,this._setPoint=0,this._integralValue=0,this._previousError=0,this._previousTimestamp=null}get proportionalGain(){return this._proportionalGain}get integralGain(){return this._integralGain}get derivativeGain(){return this._derivativeGain}_proportional(e){return this.proportionalGain*e}_integral(e,a){return this._integralValue=this._integralValue+e*a,this.integralGain*this._integralValue}_derivative(e,a){let t=(e-this._previousError)/a;return this.derivativeGain*t}runLoop(e,a){let t=this._setPoint-e,i=a||new Date().getTime()/1e3,s=0,o=this._proportional(t);if(s+=o,this._previousTimestamp){let h=i-this._previousTimestamp,l=this._integral(t,h);s+=l;let n=this._derivative(t,h);s+=n}return this._previousError=t,this._previousTimestamp=i,s}adjustSetPoint(e){this._setPoint=e}};var c=class{constructor(e,a,t,i,s,o,h){this._name=e,this._proportionalGain=a,this._integralGain=t,this._derivativeGain=i,this._maxDataLength=o??256,this._outputTransformer=h,this._pid=new p(this.proportionalGain,this.integralGain,this.derivativeGain),this._data=[],this._processVariable=s}get name(){return this._name}get proportionalGain(){return this._proportionalGain}get integralGain(){return this._integralGain}get derivativeGain(){return this._derivativeGain}get data(){return this._data.slice()}initializeSetPoint(e,a){this.adjustSetPoint(e),this._storeDatum(a)}adjustSetPoint(e){this._pid.adjustSetPoint(e)}_storeDatum(e){this._data.push(e),this._data.length>this._maxDataLength&&this._data.shift()}runLoop(){let e=this._pid.runLoop(this._processVariable);return this._outputTransformer&&(e=this._outputTransformer(e)),e+=this._processVariable,this._storeDatum(e),this._processVariable=e,e}};var j=(()=>{let e=class e{constructor(){this.pidContainers=[],this.TIME_INTERVAL_SECONDS=1,this.MAX_CHANGES_PER_SECOND=10,this.MAX_GRAPHED_ELEMENTS=45,this.ITERATIONS_BEFORE_CHANGING_SET_POINT=15;let t=Math.random()*5;this.pidContainers=[new c("(1, 1, 1)",1,1,1,t,this.MAX_GRAPHED_ELEMENTS,this.normalizePidOutput.bind(this)),new c("(2, 1, 1)",2,1,1,t,this.MAX_GRAPHED_ELEMENTS,this.normalizePidOutput.bind(this)),new c("(1, 2, 1)",1,2,1,t,this.MAX_GRAPHED_ELEMENTS,this.normalizePidOutput.bind(this)),new c("(1, 1, 2)",1,1,2,t,this.MAX_GRAPHED_ELEMENTS,this.normalizePidOutput.bind(this))]}generateSetPoint(){return Math.random()*5}normalizePidOutput(t){let i=this.TIME_INTERVAL_SECONDS*this.MAX_CHANGES_PER_SECOND,s=t/i;return Math.min(i,Math.max(-i,s))}ngOnInit(){let t=[],i=[],s=this.generateSetPoint();for(let h of this.pidContainers)h.adjustSetPoint(s);let o=0;console.log("START"),setInterval(()=>{t.push(`${s.toFixed(3)}`),i.push(s);for(let n of this.pidContainers)n.runLoop();if(t.length>this.MAX_GRAPHED_ELEMENTS&&(t.shift(),i.shift()),o%this.ITERATIONS_BEFORE_CHANGING_SET_POINT===0){s=this.generateSetPoint();for(let n of this.pidContainers)n.adjustSetPoint(s)}o+=1;let h=["set_point"],l=[{name:"set_point",type:"line",data:i,animationDelay:n=>n*0,colorBy:"series",symbol:"none",universalTransition:!0}];for(let n of this.pidContainers)h.push(n.name),l.push({name:n.name,type:"line",data:n.data,animationDelay:V=>V*0,colorBy:"series",symbol:"none",universalTransition:!0});this.options={legend:{data:h,align:"left"},tooltip:{},xAxis:{data:t,silent:!0,splitLine:{show:!1}},yAxis:{},series:l,animationEasing:"linear",animationDelayUpdate:0}},this.TIME_INTERVAL_SECONDS*1e3)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=O({type:e,selectors:[["pid-playground"]],standalone:!0,features:[R([x()]),I],decls:1,vars:1,consts:[["echarts","",1,"demo-chart",3,"options"]],template:function(i,s){i&1&&A(0,"div",0),i&2&&M("options",s.options)},dependencies:[F,N]});let r=e;return r})();var ot=[{path:"",component:j}];export{ot as default}; diff --git a/chunk-H7PNCXRX.js b/chunk-N52VNUF3.js similarity index 96% rename from chunk-H7PNCXRX.js rename to chunk-N52VNUF3.js index cd74ecb..f95cac5 100644 --- a/chunk-H7PNCXRX.js +++ b/chunk-N52VNUF3.js @@ -1 +1 @@ -import{a as A,b as E}from"./chunk-WFE5CYU3.js";import{$ as h,D as O,E as o,G as s,H as l,I as c,M as g,N as w,S as f,T as y,W as d,X as p,Y as b,_ as M,aa as F,ca as S,da as v,ga as T,ka as P,m as u,x as r,y as N}from"./chunk-N6S5G56Y.js";import"./chunk-JMZ7DUBM.js";var U=i=>({width:i}),H=(i,e)=>({active:i,inactive:e});function L(i,e){if(i&1&&(s(0,"span",2),f(1),l()),i&2){let _=e.$implicit,t=w();o("ngClass",b(2,H,_==t.activeOption,_!=t.activeOption)),r(),y(_)}}var k=(()=>{let e=class e{constructor(t){this.swapOptions=[],this.activeOption="",this._widthPixels=75,this._changeDetectorRef=t}ngAfterViewInit(){let t=document.querySelector(".swap-option");this._widthPixels=t?.offsetWidth??this._widthPixels,this._changeDetectorRef.detectChanges()}get widthPixels(){return this._widthPixels}};e.\u0275fac=function(a){return new(a||e)(N(M))},e.\u0275cmp=u({type:e,selectors:[["text-swapper"]],inputs:{swapOptions:"swapOptions",activeOption:"activeOption"},standalone:!0,features:[d],decls:2,vars:4,consts:[[1,"swap-option-container",3,"ngStyle"],["class","swap-option",3,"ngClass",4,"ngFor","ngForOf"],[1,"swap-option",3,"ngClass"]],template:function(a,n){a&1&&(s(0,"div",0),O(1,L,2,5,"span",1),l()),a&2&&(o("ngStyle",p(2,U,n.widthPixels+"px")),r(),o("ngForOf",n.swapOptions))},dependencies:[v,h,F,S],styles:["[_nghost-%COMP%]{display:inline-block;height:100%;vertical-align:bottom}.swap-option-container[_ngcontent-%COMP%]{position:relative;display:inline-block;height:100%}.swap-option[_ngcontent-%COMP%]{position:absolute;left:0;top:0}.swap-option.active[_ngcontent-%COMP%]{opacity:1;transition:opacity .1s ease-in}.swap-option.inactive[_ngcontent-%COMP%]{opacity:0;transition:opacity .1s ease-out}"]});let i=e;return i})();var C=i=>({active:i}),x=(()=>{let e=class e{constructor(){this.DEFAULT_NOUN="stuff",this.NOUN_CYCLE_TIME_MS=1500,this._actionNouns=[this.DEFAULT_NOUN,"code","projects","prints"],this._actionNoun=this.DEFAULT_NOUN}ngOnInit(){let t=1;this._actionNounCycleInterval=setInterval(()=>{this.actionNoun=this.actionNouns[t],t=(t+1)%this.actionNouns.length},this.NOUN_CYCLE_TIME_MS)}get actionNouns(){return this._actionNouns}get actionNoun(){return this._actionNoun}set actionNoun(t){this.actionNouns.includes(t)&&(this._actionNoun=t)}resetActionNoun(){this.actionNoun=this.DEFAULT_NOUN}stopActionNounCycling(){clearInterval(this._actionNounCycleInterval)}};e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=u({type:e,selectors:[["home"]],standalone:!0,features:[d],decls:19,vars:12,consts:[[1,"bg-gradient-dark","h-screen","w-screen"],[1,"flex","flex-col","justify-center","items-center","w-full","h-full"],["size","8rem","containerClasses","m-2"],[1,"m-2"],[1,"tagline"],[1,"noun"],[3,"swapOptions","activeOption"],[1,"flex","justify-between"],["href","https://github.com/naschorr","target","_blank",1,"nav-container","m-2",3,"mouseover","mouseleave"],["src","assets/images/icons/github.png","alt","GitHub logo outlines",1,"icon","nav-item"],["src","assets/images/icons/github-filled.png","alt","GitHub logo filled in",1,"icon","nav-item","hoverable",3,"ngClass"],["routerLink","/projects",1,"nav-container","m-2",3,"mouseover","mouseleave"],["src","assets/images/icons/flask.png","alt","Outlined image of a flask used in scientific experiments",1,"icon","nav-item"],["src","assets/images/icons/flask-filled.png","alt","Filled in image of a flask used in scientific experiments",1,"icon","nav-item","hoverable",3,"ngClass"],["href","https://www.printables.com/@naschorr_134538","target","_blank",1,"nav-container","m-2",3,"mouseover","mouseleave"],["src","assets/images/icons/3d-printer.png","alt","Outlined image of a 3d printer",1,"icon","nav-item"],["src","assets/images/icons/3d-printer-filled.png","alt","Filled in image of a 3d printer",1,"icon","nav-item","hoverable",3,"ngClass"],["containerClasses","color-light m-1 px-3",3,"isAbsolute"]],template:function(a,n){a&1&&(s(0,"div",0)(1,"div",1),c(2,"logo",2),s(3,"div",3)(4,"span",4),f(5,"Nick makes "),s(6,"span",5),c(7,"text-swapper",6),l()()(),s(8,"div",7)(9,"a",8),g("mouseover",function(){return n.actionNoun="code",n.stopActionNounCycling()})("mouseleave",function(){return n.resetActionNoun()}),c(10,"img",9)(11,"img",10),l(),s(12,"a",11),g("mouseover",function(){return n.actionNoun="projects",n.stopActionNounCycling()})("mouseleave",function(){return n.resetActionNoun()}),c(13,"img",12)(14,"img",13),l(),s(15,"a",14),g("mouseover",function(){return n.actionNoun="prints",n.stopActionNounCycling()})("mouseleave",function(){return n.resetActionNoun()}),c(16,"img",15)(17,"img",16),l()()(),c(18,"footer",17),l()),a&2&&(r(7),o("swapOptions",n.actionNouns)("activeOption",n.actionNoun),r(4),o("ngClass",p(6,C,n.actionNoun=="code")),r(3),o("ngClass",p(8,C,n.actionNoun=="projects")),r(3),o("ngClass",p(10,C,n.actionNoun=="prints")),r(),o("isAbsolute",!0))},dependencies:[k,A,v,h,P,T,E],styles:[".icon[_ngcontent-%COMP%]{filter:brightness(0) saturate(100%) invert(100%) sepia(2%) saturate(41%) hue-rotate(137deg) brightness(114%) contrast(95%)}.logo[_ngcontent-%COMP%]{height:8rem}.tagline[_ngcontent-%COMP%]{color:#f8f8f8;font: 1.5rem Urbanist,sans-serif}.tagline[_ngcontent-%COMP%] .noun[_ngcontent-%COMP%]{font-weight:bolder;font-style:italic}"]});let i=e;return i})();var J=[{path:"",component:x}];export{J as default}; +import{a as A,b as E}from"./chunk-6AQIFS4D.js";import{$ as h,D as O,E as o,G as s,H as l,I as c,M as g,N as w,S as f,T as y,W as d,X as p,Y as b,_ as M,aa as F,ca as S,da as v,ga as T,ka as P,m as u,x as r,y as N}from"./chunk-HRLUZBMJ.js";import"./chunk-F6SUT7E5.js";var U=i=>({width:i}),H=(i,e)=>({active:i,inactive:e});function L(i,e){if(i&1&&(s(0,"span",2),f(1),l()),i&2){let _=e.$implicit,t=w();o("ngClass",b(2,H,_==t.activeOption,_!=t.activeOption)),r(),y(_)}}var k=(()=>{let e=class e{constructor(t){this.swapOptions=[],this.activeOption="",this._widthPixels=75,this._changeDetectorRef=t}ngAfterViewInit(){let t=document.querySelector(".swap-option");this._widthPixels=t?.offsetWidth??this._widthPixels,this._changeDetectorRef.detectChanges()}get widthPixels(){return this._widthPixels}};e.\u0275fac=function(a){return new(a||e)(N(M))},e.\u0275cmp=u({type:e,selectors:[["text-swapper"]],inputs:{swapOptions:"swapOptions",activeOption:"activeOption"},standalone:!0,features:[d],decls:2,vars:4,consts:[[1,"swap-option-container",3,"ngStyle"],["class","swap-option",3,"ngClass",4,"ngFor","ngForOf"],[1,"swap-option",3,"ngClass"]],template:function(a,n){a&1&&(s(0,"div",0),O(1,L,2,5,"span",1),l()),a&2&&(o("ngStyle",p(2,U,n.widthPixels+"px")),r(),o("ngForOf",n.swapOptions))},dependencies:[v,h,F,S],styles:["[_nghost-%COMP%]{display:inline-block;height:100%;vertical-align:bottom}.swap-option-container[_ngcontent-%COMP%]{position:relative;display:inline-block;height:100%}.swap-option[_ngcontent-%COMP%]{position:absolute;left:0;top:0}.swap-option.active[_ngcontent-%COMP%]{opacity:1;transition:opacity .1s ease-in}.swap-option.inactive[_ngcontent-%COMP%]{opacity:0;transition:opacity .1s ease-out}"]});let i=e;return i})();var C=i=>({active:i}),x=(()=>{let e=class e{constructor(){this.DEFAULT_NOUN="stuff",this.NOUN_CYCLE_TIME_MS=1500,this._actionNouns=[this.DEFAULT_NOUN,"code","projects","prints"],this._actionNoun=this.DEFAULT_NOUN}ngOnInit(){let t=1;this._actionNounCycleInterval=setInterval(()=>{this.actionNoun=this.actionNouns[t],t=(t+1)%this.actionNouns.length},this.NOUN_CYCLE_TIME_MS)}get actionNouns(){return this._actionNouns}get actionNoun(){return this._actionNoun}set actionNoun(t){this.actionNouns.includes(t)&&(this._actionNoun=t)}resetActionNoun(){this.actionNoun=this.DEFAULT_NOUN}stopActionNounCycling(){clearInterval(this._actionNounCycleInterval)}};e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=u({type:e,selectors:[["home"]],standalone:!0,features:[d],decls:19,vars:12,consts:[[1,"bg-gradient-dark","h-screen","w-screen"],[1,"flex","flex-col","justify-center","items-center","w-full","h-full"],["size","8rem","containerClasses","m-2"],[1,"m-2"],[1,"tagline"],[1,"noun"],[3,"swapOptions","activeOption"],[1,"flex","justify-between"],["href","https://github.com/naschorr","target","_blank",1,"nav-container","m-2",3,"mouseover","mouseleave"],["src","assets/images/icons/github.png","alt","GitHub logo outlines",1,"icon","nav-item"],["src","assets/images/icons/github-filled.png","alt","GitHub logo filled in",1,"icon","nav-item","hoverable",3,"ngClass"],["routerLink","/projects",1,"nav-container","m-2",3,"mouseover","mouseleave"],["src","assets/images/icons/flask.png","alt","Outlined image of a flask used in scientific experiments",1,"icon","nav-item"],["src","assets/images/icons/flask-filled.png","alt","Filled in image of a flask used in scientific experiments",1,"icon","nav-item","hoverable",3,"ngClass"],["href","https://www.printables.com/@naschorr_134538","target","_blank",1,"nav-container","m-2",3,"mouseover","mouseleave"],["src","assets/images/icons/3d-printer.png","alt","Outlined image of a 3d printer",1,"icon","nav-item"],["src","assets/images/icons/3d-printer-filled.png","alt","Filled in image of a 3d printer",1,"icon","nav-item","hoverable",3,"ngClass"],["containerClasses","color-light m-1 px-3",3,"isAbsolute"]],template:function(a,n){a&1&&(s(0,"div",0)(1,"div",1),c(2,"logo",2),s(3,"div",3)(4,"span",4),f(5,"Nick makes "),s(6,"span",5),c(7,"text-swapper",6),l()()(),s(8,"div",7)(9,"a",8),g("mouseover",function(){return n.actionNoun="code",n.stopActionNounCycling()})("mouseleave",function(){return n.resetActionNoun()}),c(10,"img",9)(11,"img",10),l(),s(12,"a",11),g("mouseover",function(){return n.actionNoun="projects",n.stopActionNounCycling()})("mouseleave",function(){return n.resetActionNoun()}),c(13,"img",12)(14,"img",13),l(),s(15,"a",14),g("mouseover",function(){return n.actionNoun="prints",n.stopActionNounCycling()})("mouseleave",function(){return n.resetActionNoun()}),c(16,"img",15)(17,"img",16),l()()(),c(18,"footer",17),l()),a&2&&(r(7),o("swapOptions",n.actionNouns)("activeOption",n.actionNoun),r(4),o("ngClass",p(6,C,n.actionNoun=="code")),r(3),o("ngClass",p(8,C,n.actionNoun=="projects")),r(3),o("ngClass",p(10,C,n.actionNoun=="prints")),r(),o("isAbsolute",!0))},dependencies:[k,A,v,h,P,T,E],styles:[".icon[_ngcontent-%COMP%]{filter:brightness(0) saturate(100%) invert(100%) sepia(2%) saturate(41%) hue-rotate(137deg) brightness(114%) contrast(95%)}.logo[_ngcontent-%COMP%]{height:8rem}.tagline[_ngcontent-%COMP%]{color:#f8f8f8;font: 1.5rem Urbanist,sans-serif}.tagline[_ngcontent-%COMP%] .noun[_ngcontent-%COMP%]{font-weight:bolder;font-style:italic}"]});let i=e;return i})();var J=[{path:"",component:x}];export{J as default}; diff --git a/chunk-N6S5G56Y.js b/chunk-N6S5G56Y.js deleted file mode 100644 index 2301b78..0000000 --- a/chunk-N6S5G56Y.js +++ /dev/null @@ -1,7 +0,0 @@ -import{a as m,b as U}from"./chunk-JMZ7DUBM.js";var dc=null;var xi=1,fc=Symbol("SIGNAL");function R(t){let e=dc;return dc=t,e}var hc={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function mp(t){if(!(Ni(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===xi)){if(!t.producerMustRecompute(t)&&!_i(t)){t.dirty=!1,t.lastCleanEpoch=xi;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=xi}}function pc(t){return t&&(t.nextProducerIndex=0),R(t)}function gc(t,e){if(R(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(Ni(t))for(let r=t.nextProducerIndex;rt.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function _i(t){Nr(t);for(let e=0;e0}function Nr(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function vp(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function yp(){throw new Error}var Dp=yp;function vc(t){Dp=t}function C(t){return typeof t=="function"}function Vt(t){let r=t(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Rr=Vt(t=>function(r){t(this),this.message=r?`${r.length} errors occurred during unsubscription: -${r.map((n,o)=>`${o+1}) ${n.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=r});function yt(t,e){if(t){let r=t.indexOf(e);0<=r&&t.splice(r,1)}}var $=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let i of r)i.remove(this);else r.remove(this);let{initialTeardown:n}=this;if(C(n))try{n()}catch(i){e=i instanceof Rr?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{yc(i)}catch(s){e=e??[],s instanceof Rr?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Rr(e)}}add(e){var r;if(e&&e!==this)if(this.closed)yc(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}}_hasParent(e){let{_parentage:r}=this;return r===e||Array.isArray(r)&&r.includes(e)}_addParent(e){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e}_removeParent(e){let{_parentage:r}=this;r===e?this._parentage=null:Array.isArray(r)&&yt(r,e)}remove(e){let{_finalizers:r}=this;r&&yt(r,e),e instanceof t&&e._removeParent(this)}};$.EMPTY=(()=>{let t=new $;return t.closed=!0,t})();var Ri=$.EMPTY;function Or(t){return t instanceof $||t&&"closed"in t&&C(t.remove)&&C(t.add)&&C(t.unsubscribe)}function yc(t){C(t)?t():t.unsubscribe()}var we={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var $t={setTimeout(t,e,...r){let{delegate:n}=$t;return n?.setTimeout?n.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){let{delegate:e}=$t;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Pr(t){$t.setTimeout(()=>{let{onUnhandledError:e}=we;if(e)e(t);else throw t})}function An(){}var Dc=Oi("C",void 0,void 0);function wc(t){return Oi("E",void 0,t)}function Cc(t){return Oi("N",t,void 0)}function Oi(t,e,r){return{kind:t,value:e,error:r}}var Dt=null;function Bt(t){if(we.useDeprecatedSynchronousErrorHandling){let e=!Dt;if(e&&(Dt={errorThrown:!1,error:null}),t(),e){let{errorThrown:r,error:n}=Dt;if(Dt=null,r)throw n}}else t()}function Ic(t){we.useDeprecatedSynchronousErrorHandling&&Dt&&(Dt.errorThrown=!0,Dt.error=t)}var wt=class extends ${constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Or(e)&&e.add(this)):this.destination=Ip}static create(e,r,n){return new Ut(e,r,n)}next(e){this.isStopped?Fi(Cc(e),this):this._next(e)}error(e){this.isStopped?Fi(wc(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Fi(Dc,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},wp=Function.prototype.bind;function Pi(t,e){return wp.call(t,e)}var ki=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(n){Fr(n)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(n){Fr(n)}else Fr(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){Fr(r)}}},Ut=class extends wt{constructor(e,r,n){super();let o;if(C(e)||!e)o={next:e??void 0,error:r??void 0,complete:n??void 0};else{let i;this&&we.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),o={next:e.next&&Pi(e.next,i),error:e.error&&Pi(e.error,i),complete:e.complete&&Pi(e.complete,i)}):o=e}this.destination=new ki(o)}};function Fr(t){we.useDeprecatedSynchronousErrorHandling?Ic(t):Pr(t)}function Cp(t){throw t}function Fi(t,e){let{onStoppedNotification:r}=we;r&&$t.setTimeout(()=>r(t,e))}var Ip={closed:!0,next:An,error:Cp,complete:An};var Ht=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ie(t){return t}function Li(...t){return ji(t)}function ji(t){return t.length===0?ie:t.length===1?t[0]:function(r){return t.reduce((n,o)=>o(n),r)}}var O=(()=>{class t{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new t;return n.source=this,n.operator=r,n}subscribe(r,n,o){let i=bp(r)?r:new Ut(r,n,o);return Bt(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return n=Ec(n),new n((o,i)=>{let s=new Ut({next:a=>{try{r(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[Ht](){return this}pipe(...r){return ji(r)(this)}toPromise(r){return r=Ec(r),new r((n,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>n(i))})}}return t.create=e=>new t(e),t})();function Ec(t){var e;return(e=t??we.Promise)!==null&&e!==void 0?e:Promise}function Ep(t){return t&&C(t.next)&&C(t.error)&&C(t.complete)}function bp(t){return t&&t instanceof wt||Ep(t)&&Or(t)}function Vi(t){return C(t?.lift)}function A(t){return e=>{if(Vi(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function _(t,e,r,n,o){return new $i(t,e,r,n,o)}var $i=class extends wt{constructor(e,r,n,o,i,s){super(e),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(u){e.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){e.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function zt(){return A((t,e)=>{let r=null;t._refCount++;let n=_(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){r=null;return}let o=t._connection,i=r;r=null,o&&(!i||o===i)&&o.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(r=t.connect())})}var qt=class extends O{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,Vi(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new $;let r=this.getSubject();e.add(this.source.subscribe(_(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=$.EMPTY)}return e}refCount(){return zt()(this)}};var bc=Vt(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var G=(()=>{class t extends O{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new kr(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new bc}next(r){Bt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){Bt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){Bt(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:n,isStopped:o,observers:i}=this;return n||o?Ri:(this.currentObservers=null,i.push(r),new $(()=>{this.currentObservers=null,yt(i,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:o,isStopped:i}=this;n?r.error(o):i&&r.complete()}asObservable(){let r=new O;return r.source=this,r}}return t.create=(e,r)=>new kr(e,r),t})(),kr=class extends G{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)}error(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)}complete(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)}_subscribe(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:Ri}};var Y=class extends G{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let r=super._subscribe(e);return!r.closed&&e.next(this._value),r}getValue(){let{hasError:e,thrownError:r,_value:n}=this;if(e)throw r;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var Nn={now(){return(Nn.delegate||Date).now()},delegate:void 0};var Bi=class extends G{constructor(e=1/0,r=1/0,n=Nn){super(),this._bufferSize=e,this._windowTime=r,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=r===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,r)}next(e){let{isStopped:r,_buffer:n,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;r||(n.push(e),!o&&n.push(i.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let r=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:o}=this,i=o.slice();for(let s=0;st.complete());function Br(t){return t&&C(t.schedule)}function Mc(t){return t[t.length-1]}function Sc(t){return C(Mc(t))?t.pop():void 0}function Xe(t){return Br(Mc(t))?t.pop():void 0}function xc(t,e,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(l){try{c(n.next(l))}catch(d){s(d)}}function u(l){try{c(n.throw(l))}catch(d){s(d)}}function c(l){l.done?i(l.value):o(l.value).then(a,u)}c((n=n.apply(t,e||[])).next())})}function Tc(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ct(t){return this instanceof Ct?(this.v=t,this):new Ct(t)}function _c(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){n[f]&&(o[f]=function(h){return new Promise(function(g,E){i.push([f,h,g,E])>1||a(f,h)})})}function a(f,h){try{u(n[f](h))}catch(g){d(i[0][3],g)}}function u(f){f.value instanceof Ct?Promise.resolve(f.value.v).then(c,l):d(i[0][2],f)}function c(f){a("next",f)}function l(f){a("throw",f)}function d(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}function Ac(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof Tc=="function"?Tc(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(s){return new Promise(function(a,u){s=t[i](s),o(a,u,s.done,s.value)})}}function o(i,s,a,u){Promise.resolve(u).then(function(c){i({value:c,done:a})},s)}}var Ur=t=>t&&typeof t.length=="number"&&typeof t!="function";function Hr(t){return C(t?.then)}function zr(t){return C(t[Ht])}function qr(t){return Symbol.asyncIterator&&C(t?.[Symbol.asyncIterator])}function Gr(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Mp(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Wr=Mp();function Zr(t){return C(t?.[Wr])}function Yr(t){return _c(this,arguments,function*(){let r=t.getReader();try{for(;;){let{value:n,done:o}=yield Ct(r.read());if(o)return yield Ct(void 0);yield yield Ct(n)}}finally{r.releaseLock()}})}function Qr(t){return C(t?.getReader)}function H(t){if(t instanceof O)return t;if(t!=null){if(zr(t))return Sp(t);if(Ur(t))return Tp(t);if(Hr(t))return xp(t);if(qr(t))return Nc(t);if(Zr(t))return _p(t);if(Qr(t))return Ap(t)}throw Gr(t)}function Sp(t){return new O(e=>{let r=t[Ht]();if(C(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Tp(t){return new O(e=>{for(let r=0;r{t.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,Pr)})}function _p(t){return new O(e=>{for(let r of t)if(e.next(r),e.closed)return;e.complete()})}function Nc(t){return new O(e=>{Np(t,e).catch(r=>e.error(r))})}function Ap(t){return Nc(Yr(t))}function Np(t,e){var r,n,o,i;return xc(this,void 0,void 0,function*(){try{for(r=Ac(t);n=yield r.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){o={error:s}}finally{try{n&&!n.done&&(i=r.return)&&(yield i.call(r))}finally{if(o)throw o.error}}e.complete()})}function te(t,e,r,n=0,o=!1){let i=e.schedule(function(){r(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(i),!o)return i}function Kr(t,e=0){return A((r,n)=>{r.subscribe(_(n,o=>te(n,t,()=>n.next(o),e),()=>te(n,t,()=>n.complete(),e),o=>te(n,t,()=>n.error(o),e)))})}function Jr(t,e=0){return A((r,n)=>{n.add(t.schedule(()=>r.subscribe(n),e))})}function Rc(t,e){return H(t).pipe(Jr(e),Kr(e))}function Oc(t,e){return H(t).pipe(Jr(e),Kr(e))}function Pc(t,e){return new O(r=>{let n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function Fc(t,e){return new O(r=>{let n;return te(r,e,()=>{n=t[Wr](),te(r,e,()=>{let o,i;try{({value:o,done:i}=n.next())}catch(s){r.error(s);return}i?r.complete():r.next(o)},0,!0)}),()=>C(n?.return)&&n.return()})}function Xr(t,e){if(!t)throw new Error("Iterable cannot be null");return new O(r=>{te(r,e,()=>{let n=t[Symbol.asyncIterator]();te(r,e,()=>{n.next().then(o=>{o.done?r.complete():r.next(o.value)})},0,!0)})})}function kc(t,e){return Xr(Yr(t),e)}function Lc(t,e){if(t!=null){if(zr(t))return Rc(t,e);if(Ur(t))return Pc(t,e);if(Hr(t))return Oc(t,e);if(qr(t))return Xr(t,e);if(Zr(t))return Fc(t,e);if(Qr(t))return kc(t,e)}throw Gr(t)}function B(t,e){return e?Lc(t,e):H(t)}function w(...t){let e=Xe(t);return B(t,e)}function Wt(t,e){let r=C(t)?t:()=>t,n=o=>o.error(r());return new O(e?o=>e.schedule(n,0,o):n)}function Hi(t){return!!t&&(t instanceof O||C(t.lift)&&C(t.subscribe))}var He=Vt(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function jc(t){return t instanceof Date&&!isNaN(t)}function N(t,e){return A((r,n)=>{let o=0;r.subscribe(_(n,i=>{n.next(t.call(e,i,o++))}))})}var{isArray:Rp}=Array;function Op(t,e){return Rp(e)?t(...e):t(e)}function Vc(t){return N(e=>Op(t,e))}var{isArray:Pp}=Array,{getPrototypeOf:Fp,prototype:kp,keys:Lp}=Object;function $c(t){if(t.length===1){let e=t[0];if(Pp(e))return{args:e,keys:null};if(jp(e)){let r=Lp(e);return{args:r.map(n=>e[n]),keys:r}}}return{args:t,keys:null}}function jp(t){return t&&typeof t=="object"&&Fp(t)===kp}function Bc(t,e){return t.reduce((r,n,o)=>(r[n]=e[o],r),{})}function On(...t){let e=Xe(t),r=Sc(t),{args:n,keys:o}=$c(t);if(n.length===0)return B([],e);let i=new O(Vp(n,e,o?s=>Bc(o,s):ie));return r?i.pipe(Vc(r)):i}function Vp(t,e,r=ie){return n=>{Uc(e,()=>{let{length:o}=t,i=new Array(o),s=o,a=o;for(let u=0;u{let c=B(t[u],e),l=!1;c.subscribe(_(n,d=>{i[u]=d,l||(l=!0,a--),a||n.next(r(i.slice()))},()=>{--s||n.complete()}))},n)},n)}}function Uc(t,e,r){t?te(r,t,e):e()}function Hc(t,e,r,n,o,i,s,a){let u=[],c=0,l=0,d=!1,f=()=>{d&&!u.length&&!c&&e.complete()},h=E=>c{i&&e.next(E),c++;let V=!1;H(r(E,l++)).subscribe(_(e,P=>{o?.(P),i?h(P):e.next(P)},()=>{V=!0},void 0,()=>{if(V)try{for(c--;u.length&&cg(P)):g(P)}f()}catch(P){e.error(P)}}))};return t.subscribe(_(e,h,()=>{d=!0,f()})),()=>{a?.()}}function z(t,e,r=1/0){return C(e)?z((n,o)=>N((i,s)=>e(n,i,o,s))(H(t(n,o))),r):(typeof e=="number"&&(r=e),A((n,o)=>Hc(n,o,t,r)))}function Zt(t=1/0){return z(ie,t)}function zc(){return Zt(1)}function Yt(...t){return zc()(B(t,Xe(t)))}function eo(t){return new O(e=>{H(t()).subscribe(e)})}function qc(t=0,e,r=Ui){let n=-1;return e!=null&&(Br(e)?r=e:n=e),new O(o=>{let i=jc(t)?+t-r.now():t;i<0&&(i=0);let s=0;return r.schedule(function(){o.closed||(o.next(s++),0<=n?this.schedule(void 0,n):o.complete())},i)})}function fe(t,e){return A((r,n)=>{let o=0;r.subscribe(_(n,i=>t.call(e,i,o++)&&n.next(i)))})}function et(t){return A((e,r)=>{let n=null,o=!1,i;n=e.subscribe(_(r,void 0,void 0,s=>{i=H(t(s,et(t)(e))),n?(n.unsubscribe(),n=null,i.subscribe(r)):o=!0})),o&&(n.unsubscribe(),n=null,i.subscribe(r))})}function Gc(t,e,r,n,o){return(i,s)=>{let a=r,u=e,c=0;i.subscribe(_(s,l=>{let d=c++;u=a?t(u,l,d):(a=!0,l),n&&s.next(u)},o&&(()=>{a&&s.next(u),s.complete()})))}}function It(t,e){return C(e)?z(t,e,1):z(t,1)}function tt(t){return A((e,r)=>{let n=!1;e.subscribe(_(r,o=>{n=!0,r.next(o)},()=>{n||r.next(t),r.complete()}))})}function ze(t){return t<=0?()=>se:A((e,r)=>{let n=0;e.subscribe(_(r,o=>{++n<=t&&(r.next(o),t<=n&&r.complete())}))})}function zi(t){return N(()=>t)}function to(t=$p){return A((e,r)=>{let n=!1;e.subscribe(_(r,o=>{n=!0,r.next(o)},()=>n?r.complete():r.error(t())))})}function $p(){return new He}function Pn(t){return A((e,r)=>{try{e.subscribe(r)}finally{r.add(t)}})}function Te(t,e){let r=arguments.length>=2;return n=>n.pipe(t?fe((o,i)=>t(o,i,n)):ie,ze(1),r?tt(e):to(()=>new He))}function Qt(t){return t<=0?()=>se:A((e,r)=>{let n=[];e.subscribe(_(r,o=>{n.push(o),t{for(let o of n)r.next(o);r.complete()},void 0,()=>{n=null}))})}function qi(t,e){let r=arguments.length>=2;return n=>n.pipe(t?fe((o,i)=>t(o,i,n)):ie,Qt(1),r?tt(e):to(()=>new He))}function Gi(t,e){return A(Gc(t,e,arguments.length>=2,!0))}function Wi(...t){let e=Xe(t);return A((r,n)=>{(e?Yt(t,r,e):Yt(t,r)).subscribe(n)})}function he(t,e){return A((r,n)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&n.complete();r.subscribe(_(n,u=>{o?.unsubscribe();let c=0,l=i++;H(t(u,l)).subscribe(o=_(n,d=>n.next(e?e(u,d,l,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Zi(t){return A((e,r)=>{H(t).subscribe(_(r,()=>r.complete(),An)),!r.closed&&e.subscribe(r)})}function Q(t,e,r){let n=C(t)||e||r?{next:t,error:e,complete:r}:t;return n?A((o,i)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;o.subscribe(_(i,u=>{var c;(c=n.next)===null||c===void 0||c.call(n,u),i.next(u)},()=>{var u;a=!1,(u=n.complete)===null||u===void 0||u.call(n),i.complete()},u=>{var c;a=!1,(c=n.error)===null||c===void 0||c.call(n,u),i.error(u)},()=>{var u,c;a&&((u=n.unsubscribe)===null||u===void 0||u.call(n)),(c=n.finalize)===null||c===void 0||c.call(n)}))}):ie}function Wc(t,e){return A((r,n)=>{let{leading:o=!0,trailing:i=!1}=e??{},s=!1,a=null,u=null,c=!1,l=()=>{u?.unsubscribe(),u=null,i&&(h(),c&&n.complete())},d=()=>{u=null,c&&n.complete()},f=g=>u=H(t(g)).subscribe(_(n,l,d)),h=()=>{if(s){s=!1;let g=a;a=null,n.next(g),!c&&f(g)}};r.subscribe(_(n,g=>{s=!0,a=g,!(u&&!u.closed)&&(o?h():f(g))},()=>{c=!0,!(i&&s&&u&&!u.closed)&&n.complete()}))})}function Bp(t,e=$r,r){let n=qc(t,e);return Wc(()=>n,r)}var kl="https://g.co/ng/security#xss",v=class extends Error{constructor(e,r){super(da(e,r)),this.code=e}};function da(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function Gn(t){return{toString:t}.toString()}var no="__parameters__";function Up(t){return function(...r){if(t){let n=t(...r);for(let o in n)this[o]=n[o]}}}function Ll(t,e,r){return Gn(()=>{let n=Up(e);function o(...i){if(this instanceof o)return n.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(u,c,l){let d=u.hasOwnProperty(no)?u[no]:Object.defineProperty(u,no,{value:[]})[no];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return r&&(o.prototype=Object.create(r.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}var qe=globalThis;function L(t){for(let e in t)if(t[e]===L)return e;throw Error("Could not find renamed property on target object.")}function ne(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(ne).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let r=e.indexOf(` -`);return r===-1?e:e.substring(0,r)}function ls(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var Hp=L({__forward_ref__:L});function jl(t){return t.__forward_ref__=jl,t.toString=function(){return ne(this())},t}function J(t){return Vl(t)?t():t}function Vl(t){return typeof t=="function"&&t.hasOwnProperty(Hp)&&t.__forward_ref__===jl}function y(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Wn(t){return{providers:t.providers||[],imports:t.imports||[]}}function Po(t){return Zc(t,Bl)||Zc(t,Ul)}function $l(t){return Po(t)!==null}function Zc(t,e){return t.hasOwnProperty(e)?t[e]:null}function zp(t){let e=t&&(t[Bl]||t[Ul]);return e||null}function Yc(t){return t&&(t.hasOwnProperty(Qc)||t.hasOwnProperty(qp))?t[Qc]:null}var Bl=L({\u0275prov:L}),Qc=L({\u0275inj:L}),Ul=L({ngInjectableDef:L}),qp=L({ngInjectorDef:L}),x=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=y({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Hl(t){return t&&!!t.\u0275providers}var Gp=L({\u0275cmp:L}),Wp=L({\u0275dir:L}),Zp=L({\u0275pipe:L}),Yp=L({\u0275mod:L}),po=L({\u0275fac:L}),Fn=L({__NG_ELEMENT_ID__:L}),Kc=L({__NG_ENV_ID__:L});function Zn(t){return typeof t=="string"?t:t==null?"":String(t)}function Qp(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Zn(t)}function Kp(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new v(-200,t)}function fa(t,e){throw new v(-201,!1)}var T=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(T||{}),ds;function zl(){return ds}function pe(t){let e=ds;return ds=t,e}function ql(t,e,r){let n=Po(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&T.Optional)return null;if(e!==void 0)return e;fa(t,"Injector")}var Jp={},kn=Jp,fs="__NG_DI_FLAG__",go="ngTempTokenPath",Xp="ngTokenPath",eg=/\n/gm,tg="\u0275",Jc="__source",tn;function ng(){return tn}function nt(t){let e=tn;return tn=t,e}function rg(t,e=T.Default){if(tn===void 0)throw new v(-203,!1);return tn===null?ql(t,void 0,e):tn.get(t,e&T.Optional?null:void 0,e)}function I(t,e=T.Default){return(zl()||rg)(J(t),e)}function p(t,e=T.Default){return I(t,Fo(e))}function Fo(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function hs(t){let e=[];for(let r=0;r ");else if(typeof e=="object"){let i=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):ne(a)))}o=`{${i.join(", ")}}`}return`${r}${n?"("+n+")":""}[${o}]: ${t.replace(eg,` - `)}`}var Yn=Gl(Ll("Optional"),8);var ko=Gl(Ll("SkipSelf"),4);function rn(t,e){let r=t.hasOwnProperty(po);return r?t[po]:null}function ag(t,e,r){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(r)?ha(r,e):e(r))}function Wl(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function mo(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function cg(t,e,r,n){let o=t.length;if(o==e)t.push(r,n);else if(o===1)t.push(n,t[0]),t[0]=r;else{for(o--,t.push(t[o-1],t[o]);o>e;){let i=o-2;t[o]=t[i],o--}t[e]=r,t[e+1]=n}}function pa(t,e,r){let n=Qn(t,e);return n>=0?t[n|1]=r:(n=~n,cg(t,n,e,r)),n}function Yi(t,e){let r=Qn(t,e);if(r>=0)return t[r|1]}function Qn(t,e){return lg(t,e,1)}function lg(t,e,r){let n=0,o=t.length>>r;for(;o!==n;){let i=n+(o-n>>1),s=t[i<e?o=i:n=i+1}return~(o<e){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),n&2&&c!==d){if(Ce(n))return!1;s=!0}}}}return Ce(n)||s}function Ce(t){return(t&1)===0}function mg(t,e,r,n){if(e===null)return-1;let o=0;if(n||!r){let i=!1;for(;o-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?o+="."+s:n&4&&(o+=" "+s);else o!==""&&!Ce(s)&&(e+=el(i,o),o=""),n=s,i=i||!Ce(n);r++}return o!==""&&(e+=el(i,o)),e}function Cg(t){return t.map(wg).join(",")}function Ig(t){let e=[],r=[],n=1,o=2;for(;n{let e=od(t),r=U(m({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Ql.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Ae.Emulated,styles:t.styles||ae,_:null,schemas:t.schemas||null,tView:null,id:""});id(r);let n=t.dependencies;return r.directiveDefs=nl(n,!1),r.pipeDefs=nl(n,!0),r.id=Mg(r),r})}function Eg(t){return ot(t)||ed(t)}function bg(t){return t!==null}function Kn(t){return Gn(()=>({type:t.type,bootstrap:t.bootstrap||ae,declarations:t.declarations||ae,imports:t.imports||ae,exports:t.exports||ae,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function tl(t,e){if(t==null)return Ln;let r={};for(let n in t)if(t.hasOwnProperty(n)){let o=t[n],i,s,a=me.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),e?(r[i]=a!==me.None?[n,a]:n,e[i]=s):r[i]=n}return r}function at(t){return Gn(()=>{let e=od(t);return id(e),e})}function ot(t){return t[Gp]||null}function ed(t){return t[Wp]||null}function td(t){return t[Zp]||null}function nd(t){let e=ot(t)||ed(t)||td(t);return e!==null?e.standalone:!1}function rd(t,e){let r=t[Yp]||null;if(!r&&e===!0)throw new Error(`Type ${ne(t)} does not have '\u0275mod' property.`);return r}function od(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||Ln,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||ae,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:tl(t.inputs,e),outputs:tl(t.outputs),debugInfo:null}}function id(t){t.features?.forEach(e=>e(t))}function nl(t,e){if(!t)return null;let r=e?td:Eg;return()=>(typeof t=="function"?t():t).map(n=>r(n)).filter(bg)}function Mg(t){let e=0,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let o of r)e=Math.imul(31,e)+o.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function Lo(t){return{\u0275providers:t}}function Sg(...t){return{\u0275providers:sd(!0,t),\u0275fromNgModule:!0}}function sd(t,...e){let r=[],n=new Set,o,i=s=>{r.push(s)};return ha(e,s=>{let a=s;gs(a,i,[],n)&&(o||=[],o.push(a))}),o!==void 0&&ad(o,i),r}function ad(t,e){for(let r=0;r{e(i,n)})}}function gs(t,e,r,n){if(t=J(t),!t)return!1;let o=null,i=Yc(t),s=!i&&ot(t);if(!i&&!s){let u=t.ngModule;if(i=Yc(u),i)o=u;else return!1}else{if(s&&!s.standalone)return!1;o=t}let a=n.has(o);if(s){if(a)return!1;if(n.add(o),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)gs(c,e,r,n)}}else if(i){if(i.imports!=null&&!a){n.add(o);let c;try{ha(i.imports,l=>{gs(l,e,r,n)&&(c||=[],c.push(l))})}finally{}c!==void 0&&ad(c,e)}if(!a){let c=rn(o)||(()=>new o);e({provide:o,useFactory:c,deps:ae},o),e({provide:Yl,useValue:o,multi:!0},o),e({provide:on,useValue:()=>I(o),multi:!0},o)}let u=i.providers;if(u!=null&&!a){let c=t;va(u,l=>{e(l,c)})}}else return!1;return o!==t&&t.providers!==void 0}function va(t,e){for(let r of t)Hl(r)&&(r=r.\u0275providers),Array.isArray(r)?va(r,e):e(r)}var Tg=L({provide:String,useValue:L});function ud(t){return t!==null&&typeof t=="object"&&Tg in t}function xg(t){return!!(t&&t.useExisting)}function _g(t){return!!(t&&t.useFactory)}function sn(t){return typeof t=="function"}function Ag(t){return!!t.useClass}var jo=new x(""),ao={},Ng={},Qi;function ya(){return Qi===void 0&&(Qi=new vo),Qi}var ce=class{},jn=class extends ce{get destroyed(){return this._destroyed}constructor(e,r,n,o){super(),this.parent=r,this.source=n,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,vs(e,s=>this.processProvider(s)),this.records.set(Zl,Kt(void 0,this)),o.has("environment")&&this.records.set(ce,Kt(void 0,this));let i=this.records.get(jo);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Yl,ae,T.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=R(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of r)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),R(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=nt(this),n=pe(void 0),o;try{return e()}finally{nt(r),pe(n)}}get(e,r=kn,n=T.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Kc))return e[Kc](this);n=Fo(n);let o,i=nt(this),s=pe(void 0);try{if(!(n&T.SkipSelf)){let u=this.records.get(e);if(u===void 0){let c=kg(e)&&Po(e);c&&this.injectableDefInScope(c)?u=Kt(ms(e),ao):u=null,this.records.set(e,u)}if(u!=null)return this.hydrate(e,u)}let a=n&T.Self?ya():this.parent;return r=n&T.Optional&&r===kn?null:r,a.get(e,r)}catch(a){if(a.name==="NullInjectorError"){if((a[go]=a[go]||[]).unshift(ne(e)),i)throw a;return ig(a,e,"R3InjectorError",this.source)}else throw a}finally{pe(s),nt(i)}}resolveInjectorInitializers(){let e=R(null),r=nt(this),n=pe(void 0),o;try{let i=this.get(on,ae,T.Self);for(let s of i)s()}finally{nt(r),pe(n),R(e)}}toString(){let e=[],r=this.records;for(let n of r.keys())e.push(ne(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new v(205,!1)}processProvider(e){e=J(e);let r=sn(e)?e:J(e&&e.provide),n=Og(e);if(!sn(e)&&e.multi===!0){let o=this.records.get(r);o||(o=Kt(void 0,ao,!0),o.factory=()=>hs(o.multi),this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,n)}hydrate(e,r){let n=R(null);try{return r.value===ao&&(r.value=Ng,r.value=r.factory()),typeof r.value=="object"&&r.value&&Fg(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{R(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let r=J(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function ms(t){let e=Po(t),r=e!==null?e.factory:rn(t);if(r!==null)return r;if(t instanceof x)throw new v(204,!1);if(t instanceof Function)return Rg(t);throw new v(204,!1)}function Rg(t){if(t.length>0)throw new v(204,!1);let r=zp(t);return r!==null?()=>r.factory(t):()=>new t}function Og(t){if(ud(t))return Kt(void 0,t.useValue);{let e=cd(t);return Kt(e,ao)}}function cd(t,e,r){let n;if(sn(t)){let o=J(t);return rn(o)||ms(o)}else if(ud(t))n=()=>J(t.useValue);else if(_g(t))n=()=>t.useFactory(...hs(t.deps||[]));else if(xg(t))n=()=>I(J(t.useExisting));else{let o=J(t&&(t.useClass||t.provide));if(Pg(t))n=()=>new o(...hs(t.deps));else return rn(o)||ms(o)}return n}function Kt(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function Pg(t){return!!t.deps}function Fg(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function kg(t){return typeof t=="function"||typeof t=="object"&&t instanceof x}function vs(t,e){for(let r of t)Array.isArray(r)?vs(r,e):r&&Hl(r)?vs(r.\u0275providers,e):e(r)}function We(t,e){t instanceof jn&&t.assertNotDestroyed();let r,n=nt(t),o=pe(void 0);try{return e()}finally{nt(n),pe(o)}}function ld(){return zl()!==void 0||ng()!=null}function Lg(t){if(!ld())throw new v(-203,!1)}function jg(t){return typeof t=="function"}var Ze=0,M=1,D=2,K=3,Ee=4,Se=5,yo=6,Vn=7,be=8,an=9,Me=10,W=11,$n=12,rl=13,fn=14,Ne=15,Jn=16,Jt=17,Ge=18,Vo=19,dd=20,rt=21,Ki=22,Mt=23,Re=25,fd=1;var St=7,Do=8,un=9,ue=10,Da=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Da||{});function Et(t){return Array.isArray(t)&&typeof t[fd]=="object"}function Ye(t){return Array.isArray(t)&&t[fd]===!0}function wa(t){return(t.flags&4)!==0}function $o(t){return t.componentOffset>-1}function Bo(t){return(t.flags&1)===1}function hn(t){return!!t.template}function Vg(t){return(t[D]&512)!==0}var ys=class{constructor(e,r,n){this.previousValue=e,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function hd(t,e,r,n){e!==null?e.applyValueToInputSignal(e,n):t[r]=n}function Xn(){return pd}function pd(t){return t.type.prototype.ngOnChanges&&(t.setInput=Bg),$g}Xn.ngInherit=!0;function $g(){let t=md(this),e=t?.current;if(e){let r=t.previous;if(r===Ln)t.previous=e;else for(let n in e)r[n]=e[n];t.current=null,this.ngOnChanges(e)}}function Bg(t,e,r,n,o){let i=this.declaredInputs[n],s=md(t)||Ug(t,{previous:Ln,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[i];a[i]=new ys(c&&c.currentValue,r,u===Ln),hd(t,e,o,r)}var gd="__ngSimpleChanges__";function md(t){return t[gd]||null}function Ug(t,e){return t[gd]=e}var ol=null;var xe=function(t,e,r){ol?.(t,e,r)},Hg="svg",zg="math",qg=!1;function Gg(){return qg}function Oe(t){for(;Array.isArray(t);)t=t[Ze];return t}function vd(t,e){return Oe(e[t])}function ve(t,e){return Oe(e[t.index])}function yd(t,e){return t.data[e]}function Wg(t,e){return t[e]}function ut(t,e){let r=e[t];return Et(r)?r:r[Ze]}function Zg(t){return(t[D]&4)===4}function Ca(t){return(t[D]&128)===128}function Yg(t){return Ye(t[K])}function cn(t,e){return e==null?null:t[e]}function Dd(t){t[Jt]=0}function Qg(t){t[D]&1024||(t[D]|=1024,Ca(t)&&Bn(t))}function Kg(t,e){for(;t>0;)e=e[fn],t--;return e}function Ia(t){return!!(t[D]&9216||t[Mt]?.dirty)}function Ds(t){t[Me].changeDetectionScheduler?.notify(1),Ia(t)?Bn(t):t[D]&64&&(Gg()?(t[D]|=1024,Bn(t)):t[Me].changeDetectionScheduler?.notify())}function Bn(t){t[Me].changeDetectionScheduler?.notify();let e=Un(t);for(;e!==null&&!(e[D]&8192||(e[D]|=8192,!Ca(e)));)e=Un(e)}function wd(t,e){if((t[D]&256)===256)throw new v(911,!1);t[rt]===null&&(t[rt]=[]),t[rt].push(e)}function Jg(t,e){if(t[rt]===null)return;let r=t[rt].indexOf(e);r!==-1&&t[rt].splice(r,1)}function Un(t){let e=t[K];return Ye(e)?e[K]:e}var S={lFrame:xd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Xg(){return S.lFrame.elementDepthCount}function em(){S.lFrame.elementDepthCount++}function tm(){S.lFrame.elementDepthCount--}function Cd(){return S.bindingsEnabled}function nm(){return S.skipHydrationRootTNode!==null}function rm(t){return S.skipHydrationRootTNode===t}function om(){S.skipHydrationRootTNode=null}function F(){return S.lFrame.lView}function X(){return S.lFrame.tView}function wx(t){return S.lFrame.contextLView=t,t[be]}function Cx(t){return S.lFrame.contextLView=null,t}function re(){let t=Id();for(;t!==null&&t.type===64;)t=t.parent;return t}function Id(){return S.lFrame.currentTNode}function im(){let t=S.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Pt(t,e){let r=S.lFrame;r.currentTNode=t,r.isParent=e}function Ea(){return S.lFrame.isParent}function Ed(){S.lFrame.isParent=!1}function sm(){return S.lFrame.contextLView}function bd(){let t=S.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function am(t){return S.lFrame.bindingIndex=t}function ba(){return S.lFrame.bindingIndex++}function um(t){let e=S.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function cm(){return S.lFrame.inI18n}function lm(t,e){let r=S.lFrame;r.bindingIndex=r.bindingRootIndex=t,ws(e)}function dm(){return S.lFrame.currentDirectiveIndex}function ws(t){S.lFrame.currentDirectiveIndex=t}function fm(t){let e=S.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function Md(){return S.lFrame.currentQueryIndex}function Ma(t){S.lFrame.currentQueryIndex=t}function hm(t){let e=t[M];return e.type===2?e.declTNode:e.type===1?t[Se]:null}function Sd(t,e,r){if(r&T.SkipSelf){let o=e,i=t;for(;o=o.parent,o===null&&!(r&T.Host);)if(o=hm(i),o===null||(i=i[fn],o.type&10))break;if(o===null)return!1;e=o,t=i}let n=S.lFrame=Td();return n.currentTNode=e,n.lView=t,!0}function Sa(t){let e=Td(),r=t[M];S.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function Td(){let t=S.lFrame,e=t===null?null:t.child;return e===null?xd(t):e}function xd(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function _d(){let t=S.lFrame;return S.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Ad=_d;function Ta(){let t=_d();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function pm(t){return(S.lFrame.contextLView=Kg(t,S.lFrame.contextLView))[be]}function pn(){return S.lFrame.selectedIndex}function Tt(t){S.lFrame.selectedIndex=t}function Nd(){let t=S.lFrame;return yd(t.tView,t.selectedIndex)}function gm(){return S.lFrame.currentNamespace}var Rd=!0;function Uo(){return Rd}function Ho(t){Rd=t}function mm(t,e,r){let{ngOnChanges:n,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(n){let s=pd(e);(r.preOrderHooks??=[]).push(t,s),(r.preOrderCheckHooks??=[]).push(t,s)}o&&(r.preOrderHooks??=[]).push(0-t,o),i&&((r.preOrderHooks??=[]).push(t,i),(r.preOrderCheckHooks??=[]).push(t,i))}function zo(t,e){for(let r=e.directiveStart,n=e.directiveEnd;r=n)break}else e[u]<0&&(t[Jt]+=65536),(a>14>16&&(t[D]&3)===e&&(t[D]+=16384,il(a,i)):il(a,i)}var nn=-1,xt=class{constructor(e,r,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function ym(t){return t instanceof xt}function Dm(t){return(t.flags&8)!==0}function wm(t){return(t.flags&16)!==0}function Pd(t){return t!==nn}function wo(t){return t&32767}function Cm(t){return t>>16}function Co(t,e){let r=Cm(t),n=e;for(;r>0;)n=n[fn],r--;return n}var Cs=!0;function sl(t){let e=Cs;return Cs=t,e}var Im=256,Fd=Im-1,kd=5,Em=0,_e={};function bm(t,e,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(Fn)&&(n=r[Fn]),n==null&&(n=r[Fn]=Em++);let o=n&Fd,i=1<>kd)]|=i}function Io(t,e){let r=Ld(t,e);if(r!==-1)return r;let n=e[M];n.firstCreatePass&&(t.injectorIndex=e.length,Xi(n.data,t),Xi(e,null),Xi(n.blueprint,null));let o=xa(t,e),i=t.injectorIndex;if(Pd(o)){let s=wo(o),a=Co(o,e),u=a[M].data;for(let c=0;c<8;c++)e[i+c]=a[s+c]|u[s+c]}return e[i+8]=o,i}function Xi(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Ld(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function xa(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,n=null,o=e;for(;o!==null;){if(n=Ud(o),n===null)return nn;if(r++,o=o[fn],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return nn}function Is(t,e,r){bm(t,e,r)}function Mm(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let r=t.attrs;if(r){let n=r.length,o=0;for(;o>20,d=n?a:a+l,f=o?a+l:c;for(let h=d;h=u&&g.type===r)return h}if(o){let h=s[u];if(h&&hn(h)&&h.type===r)return u}return null}function _t(t,e,r,n){let o=t[r],i=e.data;if(ym(o)){let s=o;s.resolving&&Kp(Qp(i[r]));let a=sl(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?pe(s.injectImpl):null,l=Sd(t,n,T.Default);try{o=t[r]=s.factory(void 0,i,t,n),e.firstCreatePass&&r>=n.directiveStart&&mm(r,i[r],e)}finally{c!==null&&pe(c),sl(a),s.resolving=!1,Ad()}}return o}function Tm(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Fn)?t[Fn]:void 0;return typeof e=="number"?e>=0?e&Fd:xm:e}function al(t,e,r){let n=1<>kd)]&n)}function ul(t,e){return!(t&T.Self)&&!(t&T.Host&&e)}var bt=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,n){return $d(this._tNode,this._lView,e,Fo(n),r)}};function xm(){return new bt(re(),F())}function _a(t){return Gn(()=>{let e=t.prototype.constructor,r=e[po]||Es(e),n=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){let i=o[po]||Es(o);if(i&&i!==r)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Es(t){return Vl(t)?()=>{let e=Es(J(t));return e&&e()}:rn(t)}function _m(t,e,r,n,o){let i=t,s=e;for(;i!==null&&s!==null&&s[D]&2048&&!(s[D]&512);){let a=Bd(i,s,r,n|T.Self,_e);if(a!==_e)return a;let u=i.parent;if(!u){let c=s[dd];if(c){let l=c.get(r,_e,n);if(l!==_e)return l}u=Ud(s),s=s[fn]}i=u}return o}function Ud(t){let e=t[M],r=e.type;return r===2?e.declTNode:r===1?t[Se]:null}function Aa(t){return Mm(re(),t)}function cl(t,e=null,r=null,n){let o=Hd(t,e,r,n);return o.resolveInjectorInitializers(),o}function Hd(t,e=null,r=null,n,o=new Set){let i=[r||ae,Sg(t)];return n=n||(typeof t=="object"?void 0:ne(t)),new jn(i,e||ya(),n||null,o)}var ct=(()=>{let e=class e{static create(n,o){if(Array.isArray(n))return cl({name:""},o,n,"");{let i=n.name??"";return cl({name:i},n.parent,n.providers,i)}}};e.THROW_IF_NOT_FOUND=kn,e.NULL=new vo,e.\u0275prov=y({token:e,providedIn:"any",factory:()=>I(Zl)}),e.__NG_ELEMENT_ID__=-1;let t=e;return t})();var Am="ngOriginalError";function es(t){return t[Am]}var Pe=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&es(e);for(;r&&es(r);)r=es(r);return r||null}},zd=new x("",{providedIn:"root",factory:()=>p(Pe).handleError.bind(void 0)}),Na=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Nm,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),bs=class extends Na{constructor(e){super(),this._lView=e}onDestroy(e){return wd(this._lView,e),()=>Jg(this._lView,e)}};function Nm(){return new bs(F())}function Rm(){return gn(re(),F())}function gn(t,e){return new ke(ve(t,e))}var ke=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=Rm;let t=e;return t})();function Om(t){return t instanceof ke?t.nativeElement:t}var Ms=class extends G{constructor(e=!1){super(),this.destroyRef=void 0,this.__isAsync=e,ld()&&(this.destroyRef=p(Na,{optional:!0})??void 0)}emit(e){let r=R(null);try{super.next(e)}finally{R(r)}}subscribe(e,r,n){let o=e,i=r||(()=>null),s=n;if(e&&typeof e=="object"){let u=e;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=ts(i),o&&(o=ts(o)),s&&(s=ts(s)));let a=super.subscribe({next:o,error:i,complete:s});return e instanceof $&&e.add(a),a}};function ts(t){return e=>{setTimeout(t,void 0,e)}}var ge=Ms;function Pm(){return this._results[Symbol.iterator]()}var Ss=class t{get changes(){return this._changes??=new ge}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let r=t.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=Pm)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,r){return this._results.reduce(e,r)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,r){this.dirty=!1;let n=ug(e);(this._changesDetected=!ag(this._results,n,r))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function qd(t){return(t.flags&128)===128}var Gd=new Map,Fm=0;function km(){return Fm++}function Lm(t){Gd.set(t[Vo],t)}function jm(t){Gd.delete(t[Vo])}var ll="__ngContext__";function it(t,e){Et(e)?(t[ll]=e[Vo],Lm(e)):t[ll]=e}function Wd(t){return Yd(t[$n])}function Zd(t){return Yd(t[Ee])}function Yd(t){for(;t!==null&&!Ye(t);)t=t[Ee];return t}var Ts;function Qd(t){Ts=t}function Kd(){if(Ts!==void 0)return Ts;if(typeof document<"u")return document;throw new v(210,!1)}var Ra=new x("",{providedIn:"root",factory:()=>Vm}),Vm="ng",Oa=new x(""),lt=new x("",{providedIn:"platform",factory:()=>"unknown"});var Pa=new x("",{providedIn:"root",factory:()=>Kd().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var $m="h",Bm="b";var Um=()=>null;function Fa(t,e,r=!1){return Um(t,e,r)}var Jd=!1,Hm=new x("",{providedIn:"root",factory:()=>Jd});var ro;function zm(){if(ro===void 0&&(ro=null,qe.trustedTypes))try{ro=qe.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return ro}function qo(t){return zm()?.createHTML(t)||t}var oo;function Xd(){if(oo===void 0&&(oo=null,qe.trustedTypes))try{oo=qe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return oo}function dl(t){return Xd()?.createHTML(t)||t}function fl(t){return Xd()?.createScriptURL(t)||t}var Eo=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${kl})`}};function mn(t){return t instanceof Eo?t.changingThisBreaksApplicationSecurity:t}function Go(t,e){let r=qm(t);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${kl})`)}return r===e}function qm(t){return t instanceof Eo&&t.getTypeName()||null}function Gm(t){let e=new _s(t);return Wm()?new xs(e):e}var xs=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{let r=new window.DOMParser().parseFromString(qo(e),"text/html").body;return r===null?this.inertDocumentHelper.getInertBodyElement(e):(r.removeChild(r.firstChild),r)}catch{return null}}},_s=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let r=this.inertDocument.createElement("template");return r.innerHTML=qo(e),r}};function Wm(){try{return!!new window.DOMParser().parseFromString(qo(""),"text/html")}catch{return!1}}var Zm=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ka(t){return t=String(t),t.match(Zm)?t:"unsafe:"+t}function Qe(t){let e={};for(let r of t.split(","))e[r]=!0;return e}function er(...t){let e={};for(let r of t)for(let n in r)r.hasOwnProperty(n)&&(e[n]=!0);return e}var ef=Qe("area,br,col,hr,img,wbr"),tf=Qe("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),nf=Qe("rp,rt"),Ym=er(nf,tf),Qm=er(tf,Qe("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Km=er(nf,Qe("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),hl=er(ef,Qm,Km,Ym),rf=Qe("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Jm=Qe("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Xm=Qe("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),ev=er(rf,Jm,Xm),tv=Qe("script,style,template"),As=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let r=e.firstChild,n=!0,o=[];for(;r;){if(r.nodeType===Node.ELEMENT_NODE?n=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,n&&r.firstChild){o.push(r),r=ov(r);continue}for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let i=rv(r);if(i){r=i;break}r=o.pop()}}return this.buf.join("")}startElement(e){let r=pl(e).toLowerCase();if(!hl.hasOwnProperty(r))return this.sanitizedSomething=!0,!tv.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);let n=e.attributes;for(let o=0;o"),!0}endElement(e){let r=pl(e).toLowerCase();hl.hasOwnProperty(r)&&!ef.hasOwnProperty(r)&&(this.buf.push(""))}chars(e){this.buf.push(gl(e))}};function nv(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function rv(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw of(e);return e}function ov(t){let e=t.firstChild;if(e&&nv(t,e))throw of(e);return e}function pl(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function of(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var iv=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,sv=/([^\#-~ |!])/g;function gl(t){return t.replace(/&/g,"&").replace(iv,function(e){let r=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+((r-55296)*1024+(n-56320)+65536)+";"}).replace(sv,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var io;function sf(t,e){let r=null;try{io=io||Gm(t);let n=e?String(e):"";r=io.getInertBodyElement(n);let o=5,i=n;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,n=i,i=r.innerHTML,r=io.getInertBodyElement(n)}while(n!==i);let a=new As().sanitizeChildren(ml(r)||r);return qo(a)}finally{if(r){let n=ml(r)||r;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function ml(t){return"content"in t&&av(t)?t.content:null}function av(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var tr=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(tr||{});function Ix(t){let e=La();return e?dl(e.sanitize(tr.HTML,t)||""):Go(t,"HTML")?dl(mn(t)):sf(Kd(),Zn(t))}function uv(t){let e=La();return e?e.sanitize(tr.URL,t)||"":Go(t,"URL")?mn(t):ka(Zn(t))}function cv(t){let e=La();if(e)return fl(e.sanitize(tr.RESOURCE_URL,t)||"");if(Go(t,"ResourceURL"))return fl(mn(t));throw new v(904,!1)}function lv(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?cv:uv}function af(t,e,r){return lv(e,r)(t)}function La(){let t=F();return t&&t[Me].sanitizer}var dv=/^>|^->||--!>|)/g,hv="\u200B$1\u200B";function pv(t){return t.replace(dv,e=>e.replace(fv,hv))}function Ex(t){return t.ownerDocument.defaultView}function uf(t){return t instanceof Function?t():t}function gv(t){return(t??p(ct)).get(lt)==="browser"}var Fe=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Fe||{}),mv;function ja(t,e){return mv(t,e)}function Xt(t,e,r,n,o){if(n!=null){let i,s=!1;Ye(n)?i=n:Et(n)&&(s=!0,n=n[Ze]);let a=Oe(n);t===0&&r!==null?o==null?hf(e,r,a):bo(e,r,a,o||null,!0):t===1&&r!==null?bo(e,r,a,o||null,!0):t===2?Pv(e,a,s):t===3&&e.destroyNode(a),i!=null&&kv(e,t,i,r,o)}}function vv(t,e){return t.createText(e)}function yv(t,e,r){t.setValue(e,r)}function Dv(t,e){return t.createComment(pv(e))}function cf(t,e,r){return t.createElement(e,r)}function wv(t,e){lf(t,e),e[Ze]=null,e[Se]=null}function Cv(t,e,r,n,o,i){n[Ze]=o,n[Se]=e,Zo(t,n,r,1,o,i)}function lf(t,e){e[Me].changeDetectionScheduler?.notify(1),Zo(t,e,e[W],2,null,null)}function Iv(t){let e=t[$n];if(!e)return ns(t[M],t);for(;e;){let r=null;if(Et(e))r=e[$n];else{let n=e[ue];n&&(r=n)}if(!r){for(;e&&!e[Ee]&&e!==t;)Et(e)&&ns(e[M],e),e=e[K];e===null&&(e=t),Et(e)&&ns(e[M],e),r=e&&e[Ee]}e=r}}function Ev(t,e,r,n){let o=ue+n,i=r.length;n>0&&(r[o-1][Ee]=e),n0&&(t[r-1][Ee]=n[Ee]);let i=mo(t,ue+e);wv(n[M],n);let s=i[Ge];s!==null&&s.detachView(i[M]),n[K]=null,n[Ee]=null,n[D]&=-129}return n}function ff(t,e){if(!(e[D]&256)){let r=e[W];r.destroyNode&&Zo(t,e,r,3,null,null),Iv(e)}}function ns(t,e){if(e[D]&256)return;let r=R(null);try{e[D]&=-129,e[D]|=256,e[Mt]&&mc(e[Mt]),Sv(t,e),Mv(t,e),e[M].type===1&&e[W].destroy();let n=e[Jn];if(n!==null&&Ye(e[K])){n!==e[K]&&df(n,e);let o=e[Ge];o!==null&&o.detachView(t)}jm(e)}finally{R(r)}}function Mv(t,e){let r=t.cleanup,n=e[Vn];if(r!==null)for(let i=0;i=0?n[s]():n[-s].unsubscribe(),i+=2}else{let s=n[r[i+1]];r[i].call(s)}n!==null&&(e[Vn]=null);let o=e[rt];if(o!==null){e[rt]=null;for(let i=0;i-1){let{encapsulation:i}=t.data[n.directiveStart+o];if(i===Ae.None||i===Ae.Emulated)return null}return ve(n,r)}}function bo(t,e,r,n,o){t.insertBefore(e,r,n,o)}function hf(t,e,r){t.appendChild(e,r)}function vl(t,e,r,n,o){n!==null?bo(t,e,r,n,o):hf(t,e,r)}function _v(t,e,r,n){t.removeChild(e,r,n)}function Va(t,e){return t.parentNode(e)}function Av(t,e){return t.nextSibling(e)}function Nv(t,e,r){return Ov(t,e,r)}function Rv(t,e,r){return t.type&40?ve(t,r):null}var Ov=Rv,yl;function Wo(t,e,r,n){let o=Tv(t,n,e),i=e[W],s=n.parent||e[Se],a=Nv(s,n,e);if(o!=null)if(Array.isArray(r))for(let u=0;uRe&&vf(t,e,Re,!1),xe(s?2:0,o),r(n,o)}finally{Tt(i),xe(s?3:1,o)}}function Ba(t,e,r){if(wa(e)){let n=R(null);try{let o=e.directiveStart,i=e.directiveEnd;for(let s=o;snull;function qv(t,e,r,n){let o=Tf(e);o.push(r),t.firstCreatePass&&xf(t).push(n,o.length-1)}function Gv(t,e,r,n,o,i){let s=e?e.injectorIndex:-1,a=0;return nm()&&(a|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Dl(t,e,r,n,o){for(let i in e){if(!e.hasOwnProperty(i))continue;let s=e[i];if(s===void 0)continue;n??={};let a,u=me.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=i;if(o!==null){if(!o.hasOwnProperty(i))continue;c=o[i]}t===0?wl(n,r,c,a,u):wl(n,r,c,a)}return n}function wl(t,e,r,n,o){let i;t.hasOwnProperty(r)?(i=t[r]).push(e,n):i=t[r]=[e,n],o!==void 0&&i.push(o)}function Wv(t,e,r){let n=e.directiveStart,o=e.directiveEnd,i=t.data,s=e.attrs,a=[],u=null,c=null;for(let l=n;l0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function Xv(t,e,r,n){let o=r.directiveStart,i=r.directiveEnd;$o(r)&&sy(e,r,t.data[o+r.componentOffset]),t.firstCreatePass||Io(r,e),it(n,e);let s=r.initialInputs;for(let a=o;a{Bn(t.lView)},consumerOnSignalRead(){this.lView[Mt]=this}}),Nf=100;function Rf(t,e=!0,r=0){let n=t[Me],o=n.rendererFactory,i=!1;i||o.begin?.();try{Iy(t,r)}catch(s){throw e&&_f(t,s),s}finally{i||(o.end?.(),n.inlineEffectRunner?.flush())}}function Iy(t,e){Fs(t,e);let r=0;for(;Ia(t);){if(r===Nf)throw new v(103,!1);r++,Fs(t,1)}}function Ey(t,e,r,n){let o=e[D];if((o&256)===256)return;let i=!1;!i&&e[Me].inlineEffectRunner?.flush(),Sa(e);let s=null,a=null;!i&&by(t)&&(a=yy(e),s=pc(a));try{Dd(e),am(t.bindingStartIndex),r!==null&&Cf(t,e,r,2,n);let u=(o&3)===3;if(!i)if(u){let d=t.preOrderCheckHooks;d!==null&&uo(e,d,null)}else{let d=t.preOrderHooks;d!==null&&co(e,d,0,null),Ji(e,0)}if(My(e),Of(e,0),t.contentQueries!==null&&Sf(t,e),!i)if(u){let d=t.contentCheckHooks;d!==null&&uo(e,d)}else{let d=t.contentHooks;d!==null&&co(e,d,1),Ji(e,1)}Vv(t,e);let c=t.components;c!==null&&Ff(e,c,0);let l=t.viewQuery;if(l!==null&&Ps(2,l,n),!i)if(u){let d=t.viewCheckHooks;d!==null&&uo(e,d)}else{let d=t.viewHooks;d!==null&&co(e,d,2),Ji(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Ki]){for(let d of e[Ki])d();e[Ki]=null}i||(e[D]&=-73)}catch(u){throw Bn(e),u}finally{a!==null&&(gc(a,s),wy(a)),Ta()}}function by(t){return t.type!==2}function Of(t,e){for(let r=Wd(t);r!==null;r=Zd(r))for(let n=ue;n-1&&(Ns(e,n),mo(r,n))}this._attachedToViewContainer=!1}ff(this._lView[M],this._lView)}onDestroy(e){wd(this._lView,e)}markForCheck(){Za(this._cdRefInjectingView||this._lView)}detach(){this._lView[D]&=-129}reattach(){Ds(this._lView),this._lView[D]|=128}detectChanges(){this._lView[D]|=1024,Rf(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new v(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,lf(this._lView[M],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new v(902,!1);this._appRef=e,Ds(this._lView)}},Nt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=_y;let t=e;return t})(),Ty=Nt,xy=class extends Ty{constructor(e,r,n){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,n){let o=gy(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:n});return new At(o)}};function _y(){return Ko(re(),F())}function Ko(t,e){return t.type&4?new xy(e,t,gn(t,e)):null}var Sx=new RegExp(`^(\\d+)*(${Bm}|${$m})*(.*)`);var Ay=()=>null;function Il(t,e){return Ay(t,e)}var So=class{},ks=class{},To=class{};function Ny(t){let e=Error(`No component factory found for ${ne(t)}.`);return e[Ry]=t,e}var Ry="ngComponent";var Ls=class{resolveComponentFactory(e){throw Ny(e)}},Jo=(()=>{let e=class e{};e.NULL=new Ls;let t=e;return t})(),Hn=class{},vn=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>Oy();let t=e;return t})();function Oy(){let t=F(),e=re(),r=ut(e.index,t);return(Et(r)?r:t)[W]}var Py=(()=>{let e=class e{};e.\u0275prov=y({token:e,providedIn:"root",factory:()=>null});let t=e;return t})(),rs={};var El=new Set;function Ya(t){El.has(t)||(El.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function bl(...t){}function Fy(){let t=typeof qe.requestAnimationFrame=="function",e=qe[t?"requestAnimationFrame":"setTimeout"],r=qe[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&e&&r){let n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);let o=r[Zone.__symbol__("OriginalDelegate")];o&&(r=o)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:r}}var j=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ge(!1),this.onMicrotaskEmpty=new ge(!1),this.onStable=new ge(!1),this.onError=new ge(!1),typeof Zone>"u")throw new v(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!n&&r,o.shouldCoalesceRunChangeDetection=n,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=Fy().nativeRequestAnimationFrame,jy(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new v(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new v(909,!1)}run(e,r,n){return this._inner.run(e,r,n)}runTask(e,r,n,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,e,ky,bl,bl);try{return i.runTask(s,r,n)}finally{i.cancelTask(s)}}runGuarded(e,r,n){return this._inner.runGuarded(e,r,n)}runOutsideAngular(e){return this._outer.run(e)}},ky={};function Qa(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Ly(t){t.isCheckStableRunning||t.lastRequestAnimationFrameId!==-1||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(qe,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,js(t),t.isCheckStableRunning=!0,Qa(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),js(t))}function jy(t){let e=()=>{Ly(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,o,i,s,a)=>{if(Vy(a))return r.invokeTask(o,i,s,a);try{return Ml(t),r.invokeTask(o,i,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&i.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),Sl(t)}},onInvoke:(r,n,o,i,s,a,u)=>{try{return Ml(t),r.invoke(o,i,s,a,u)}finally{t.shouldCoalesceRunChangeDetection&&e(),Sl(t)}},onHasTask:(r,n,o,i)=>{r.hasTask(o,i),n===o&&(i.change=="microTask"?(t._hasPendingMicrotasks=i.microTask,js(t),Qa(t)):i.change=="macroTask"&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(r,n,o,i)=>(r.handleError(o,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}function js(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.lastRequestAnimationFrameId!==-1?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Ml(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Sl(t){t._nesting--,Qa(t)}function Vy(t){return!Array.isArray(t)||t.length!==1?!1:t[0].data?.__ignore_ng_zone__===!0}var en=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(en||{}),$y={destroy(){}};function Ka(t,e){!e&&Lg(Ka);let r=e?.injector??p(ct);if(!gv(r))return $y;Ya("NgAfterNextRender");let n=r.get(Ja),o=n.handler??=new $s,i=e?.phase??en.MixedReadWrite,s=()=>{o.unregister(u),a()},a=r.get(Na).onDestroy(s),u=We(r,()=>new Vs(i,()=>{s(),t()}));return o.register(u),{destroy:s}}var Vs=class{constructor(e,r){this.phase=e,this.callbackFn=r,this.zone=p(j),this.errorHandler=p(Pe,{optional:!0}),p(So,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(e){this.errorHandler?.handleError(e)}}},$s=class{constructor(){this.executingCallbacks=!1,this.buckets={[en.EarlyRead]:new Set,[en.Write]:new Set,[en.MixedReadWrite]:new Set,[en.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let r of e)r.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},Ja=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let o of n)o()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=y({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function xo(t,e,r){let n=r?t.styles:null,o=r?t.classes:null,i=0;if(e!==null)for(let s=0;s0&&gf(t,r,i.join(" "))}}function Wy(t,e,r){let n=t.projection=[];for(let o=0;o{let e=class e{};e.__NG_ELEMENT_ID__=Yy;let t=e;return t})();function Yy(){let t=re();return Lf(t,F())}var Qy=ft,kf=class extends Qy{constructor(e,r,n){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=n}get element(){return gn(this._hostTNode,this._hostLView)}get injector(){return new bt(this._hostTNode,this._hostLView)}get parentInjector(){let e=xa(this._hostTNode,this._hostLView);if(Pd(e)){let r=Co(e,this._hostLView),n=wo(e),o=r[M].data[n+8];return new bt(o,r)}else return new bt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=xl(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-ue}createEmbeddedView(e,r,n){let o,i;typeof n=="number"?o=n:n!=null&&(o=n.index,i=n.injector);let s=Il(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},i,s);return this.insertImpl(a,o,Cl(this._hostTNode,s)),a}createComponent(e,r,n,o,i){let s=e&&!jg(e),a;if(s)a=r;else{let g=r||{};a=g.index,n=g.injector,o=g.projectableNodes,i=g.environmentInjector||g.ngModuleRef}let u=s?e:new ln(ot(e)),c=n||this.parentInjector;if(!i&&u.ngModule==null){let E=(s?c:this.parentInjector).get(ce,null);E&&(i=E)}let l=ot(u.componentType??{}),d=Il(this._lContainer,l?.id??null),f=d?.firstChild??null,h=u.create(c,o,f,i);return this.insertImpl(h.hostView,a,Cl(this._hostTNode,d)),h}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,n){let o=e._lView;if(Yg(o)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let u=o[K],c=new kf(u,u[Se],u[K]);c.detach(c.indexOf(e))}}let i=this._adjustIndex(r),s=this._lContainer;return my(s,o,i,n),e.attachToViewContainerRef(),Wl(os(s),i,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=xl(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),n=Ns(this._lContainer,r);n&&(mo(os(this._lContainer),r),ff(n[M],n))}detach(e){let r=this._adjustIndex(e,-1),n=Ns(this._lContainer,r);return n&&mo(os(this._lContainer),r)!=null?new At(n):null}_adjustIndex(e,r=0){return e??this.length+r}};function xl(t){return t[Do]}function os(t){return t[Do]||(t[Do]=[])}function Lf(t,e){let r,n=e[t.index];return Ye(n)?r=n:(r=Mf(n,e,null,t),e[t.index]=r,Qo(e,r)),Jy(r,e,t,n),new kf(r,t,e)}function Ky(t,e){let r=t[W],n=r.createComment(""),o=ve(e,t),i=Va(r,o);return bo(r,i,n,Av(r,o),!1),n}var Jy=tD,Xy=()=>!1;function eD(t,e,r){return Xy(t,e,r)}function tD(t,e,r,n){if(t[St])return;let o;r.type&8?o=Oe(n):o=Ky(e,r),t[St]=o}var Hs=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},zs=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let n=e.contentQueries!==null?e.contentQueries[0]:r.length,o=[];for(let i=0;i0)n.push(s[a/2]);else{let c=i[a+1],l=e[-u];for(let d=ue;de.trim())}function lD(t,e,r){t.queries===null&&(t.queries=new Gs),t.queries.track(new Ws(e,r))}function Xa(t,e){return t.queries.getByIndex(e)}function dD(t,e){let r=t[M],n=Xa(r,e);return n.crossesNgTemplate?Zs(r,t,e,[]):jf(r,t,n,e)}function eu(t){let e=t.inputConfig,r={};for(let n in e)if(e.hasOwnProperty(n)){let o=e[n];Array.isArray(o)&&o[3]&&(r[n]=o[3])}t.inputTransforms=r}var st=class{},zn=class{};var Ys=class extends st{constructor(e,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new _o(this);let o=rd(e);this._bootstrapComponents=uf(o.bootstrap),this._r3Injector=Hd(e,r,[{provide:st,useValue:this},{provide:Jo,useValue:this.componentFactoryResolver},...n],ne(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},Qs=class extends zn{constructor(e){super(),this.moduleType=e}create(e){return new Ys(this.moduleType,e,[])}};var Ao=class extends st{constructor(e){super(),this.componentFactoryResolver=new _o(this),this.instance=null;let r=new jn([...e.providers,{provide:st,useValue:this},{provide:Jo,useValue:this.componentFactoryResolver}],e.parent||ya(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Xo(t,e,r=null){return new Ao({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}var ei=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Y(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Vf(t){return tu(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function fD(t,e){if(Array.isArray(t))for(let r=0;r>17&32767}function DD(t){return(t&2)==2}function wD(t,e){return t&131071|e<<17}function Ks(t){return t|2}function dn(t){return(t&131068)>>2}function is(t,e){return t&-131069|e<<2}function CD(t){return(t&1)===1}function Js(t){return t|1}function ID(t,e,r,n,o,i){let s=i?e.classBindings:e.styleBindings,a=Ot(s),u=dn(s);t[n]=r;let c=!1,l;if(Array.isArray(r)){let d=r;l=d[1],(l===null||Qn(d,l)>0)&&(c=!0)}else l=r;if(o)if(u!==0){let f=Ot(t[a+1]);t[n+1]=so(f,a),f!==0&&(t[f+1]=is(t[f+1],n)),t[a+1]=wD(t[a+1],n)}else t[n+1]=so(a,0),a!==0&&(t[a+1]=is(t[a+1],n)),a=n;else t[n+1]=so(u,0),a===0?a=n:t[u+1]=is(t[u+1],n),u=n;c&&(t[n+1]=Ks(t[n+1])),_l(t,l,n,!0),_l(t,l,n,!1),ED(e,l,t,n,i),s=so(a,u),i?e.classBindings=s:e.styleBindings=s}function ED(t,e,r,n,o){let i=o?t.residualClasses:t.residualStyles;i!=null&&typeof e=="string"&&Qn(i,e)>=0&&(r[n+1]=Js(r[n+1]))}function _l(t,e,r,n){let o=t[r+1],i=e===null,s=n?Ot(o):dn(o),a=!1;for(;s!==0&&(a===!1||i);){let u=t[s],c=t[s+1];bD(u,e)&&(a=!0,t[s+1]=n?Js(c):Ks(c)),s=n?Ot(c):dn(c)}a&&(t[r+1]=n?Ks(o):Js(o))}function bD(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?Qn(t,e)>=0:!1}var Ie={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function MD(t){return t.substring(Ie.key,Ie.keyEnd)}function SD(t){return TD(t),Uf(t,Hf(t,0,Ie.textEnd))}function Uf(t,e){let r=Ie.textEnd;return r===e?-1:(e=Ie.keyEnd=xD(t,Ie.key=e,r),Hf(t,e,r))}function TD(t){Ie.key=0,Ie.keyEnd=0,Ie.value=0,Ie.valueEnd=0,Ie.textEnd=t.length}function Hf(t,e,r){for(;e32;)e++;return e}function _D(t,e,r){let n=F(),o=ba();if(Rt(n,o,e)){let i=X(),s=Nd();Yv(i,s,n,t,e,n[W],r,!1)}return _D}function Xs(t,e,r,n,o){let i=e.inputs,s=o?"class":"style";Ga(t,r,i[s],s,n)}function AD(t,e){for(let r=SD(e);r>=0;r=Uf(e,r))pa(t,MD(e),!0)}function ND(t,e,r,n){let o=X(),i=um(2);o.firstUpdatePass&&RD(o,null,i,n);let s=F();if(r!==dt&&Rt(s,i,r)){let a=o.data[pn()];if(qf(a,n)&&!zf(o,i)){let u=n?a.classesWithoutHost:a.stylesWithoutHost;u!==null&&(r=ls(u,r||"")),Xs(o,a,s,r,n)}else jD(o,a,s,s[W],s[i+1],s[i+1]=LD(t,e,r),n,i)}}function zf(t,e){return e>=t.expandoStartIndex}function RD(t,e,r,n){let o=t.data;if(o[r+1]===null){let i=o[pn()],s=zf(t,r);qf(i,n)&&e===null&&!s&&(e=!1),e=OD(o,i,e,n),ID(o,i,e,r,s,n)}}function OD(t,e,r,n){let o=fm(t),i=n?e.residualClasses:e.residualStyles;if(o===null)(n?e.classBindings:e.styleBindings)===0&&(r=ss(null,t,e,r,n),r=qn(r,e.attrs,n),i=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==o)if(r=ss(o,t,e,r,n),i===null){let u=PD(t,e,n);u!==void 0&&Array.isArray(u)&&(u=ss(null,t,e,u[1],n),u=qn(u,e.attrs,n),FD(t,e,n,u))}else i=kD(t,e,n)}return i!==void 0&&(n?e.residualClasses=i:e.residualStyles=i),r}function PD(t,e,r){let n=r?e.classBindings:e.styleBindings;if(dn(n)!==0)return t[Ot(n)]}function FD(t,e,r,n){let o=r?e.classBindings:e.styleBindings;t[Ot(o)]=n}function kD(t,e,r){let n,o=e.directiveEnd;for(let i=1+e.directiveStylingLast;i0;){let u=t[o],c=Array.isArray(u),l=c?u[1]:u,d=l===null,f=r[o+1];f===dt&&(f=d?ae:void 0);let h=d?Yi(f,n):l===n?f:void 0;if(c&&!No(h)&&(h=Yi(u,n)),No(h)&&(a=h,s))return a;let g=t[o+1];o=s?Ot(g):dn(g)}if(e!==null){let u=i?e.residualClasses:e.residualStyles;u!=null&&(a=Yi(u,n))}return a}function No(t){return t!==void 0}function qf(t,e){return(t.flags&(e?8:16))!==0}function xx(t,e,r){let n=F(),o=Bf(n,t,e,r);ND(pa,AD,o,!0)}function $D(t,e,r,n,o,i){let s=e.consts,a=cn(s,o),u=nr(e,t,2,n,a);return qa(e,r,u,cn(s,i)),u.attrs!==null&&xo(u,u.attrs,!1),u.mergedAttrs!==null&&xo(u,u.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,u),u}function Gf(t,e,r,n){let o=F(),i=X(),s=Re+t,a=o[W],u=i.firstCreatePass?$D(s,i,o,e,r,n):i.data[s],c=BD(i,o,u,a,e,t);o[s]=c;let l=Bo(u);return Pt(u,!0),mf(a,c,u),!pD(u)&&Uo()&&Wo(i,o,c,u),Xg()===0&&it(c,o),em(),l&&(Ua(i,o,u),Ba(i,u,o)),n!==null&&Ha(o,u),Gf}function Wf(){let t=re();Ea()?Ed():(t=t.parent,Pt(t,!1));let e=t;rm(e)&&om(),tm();let r=X();return r.firstCreatePass&&(zo(r,t),wa(t)&&r.queries.elementEnd(t)),e.classesWithoutHost!=null&&Dm(e)&&Xs(r,e,F(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&wm(e)&&Xs(r,e,F(),e.stylesWithoutHost,!1),Wf}function ru(t,e,r,n){return Gf(t,e,r,n),Wf(),ru}var BD=(t,e,r,n,o,i)=>(Ho(!0),cf(n,o,gm()));function UD(t,e,r,n,o){let i=e.consts,s=cn(i,n),a=nr(e,t,8,"ng-container",s);s!==null&&xo(a,s,!0);let u=cn(i,o);return qa(e,r,a,u),e.queries!==null&&e.queries.elementStart(e,a),a}function HD(t,e,r){let n=F(),o=X(),i=t+Re,s=o.firstCreatePass?UD(i,o,n,e,r):o.data[i];Pt(s,!0);let a=qD(o,n,s,t);return n[i]=a,Uo()&&Wo(o,n,a,s),it(a,n),Bo(s)&&(Ua(o,n,s),Ba(o,s,n)),r!=null&&Ha(n,s),HD}function zD(){let t=re(),e=X();return Ea()?Ed():(t=t.parent,Pt(t,!1)),e.firstCreatePass&&(zo(e,t),wa(t)&&e.queries.elementEnd(t)),zD}var qD=(t,e,r,n)=>(Ho(!0),Dv(e[W],""));function _x(){return F()}var Ro="en-US";var GD=Ro;function WD(t){typeof t=="string"&&(GD=t.toLowerCase().replace(/_/g,"-"))}function ou(t,e,r,n){let o=F(),i=X(),s=re();return YD(i,o,o[W],s,t,e,n),ou}function ZD(t,e,r,n){let o=t.cleanup;if(o!=null)for(let i=0;iu?a[u]:null}typeof s=="string"&&(i+=2)}return null}function YD(t,e,r,n,o,i,s){let a=Bo(n),c=t.firstCreatePass&&xf(t),l=e[be],d=Tf(e),f=!0;if(n.type&3||s){let E=ve(n,e),V=s?s(E):E,P=d.length,Be=s?Ue=>s(Oe(Ue[n.index])):n.index,ee=null;if(!s&&a&&(ee=ZD(t,e,o,n.index)),ee!==null){let Ue=ee.__ngLastListenerFn__||ee;Ue.__ngNextListenerFn__=i,ee.__ngLastListenerFn__=i,f=!1}else{i=Rl(n,e,l,i,!1);let Ue=r.listen(V,o,i);d.push(i,Ue),c&&c.push(o,Be,P,P+1)}}else i=Rl(n,e,l,i,!1);let h=n.outputs,g;if(f&&h!==null&&(g=h[o])){let E=g.length;if(E)for(let V=0;V-1?ut(t.index,e):e;Za(a);let u=Nl(e,r,n,s),c=i.__ngNextListenerFn__;for(;c;)u=Nl(e,r,c,s)&&u,c=c.__ngNextListenerFn__;return o&&u===!1&&s.preventDefault(),u}}function Ax(t=1){return pm(t)}function Nx(t,e,r){uD(t,e,r)}function QD(t){let e=F(),r=X(),n=Md();Ma(n+1);let o=Xa(r,n);if(t.dirty&&Zg(e)===((o.metadata.flags&2)===2)){if(o.matches===null)t.reset([]);else{let i=dD(e,n);t.reset(i,Om),t.notifyOnChanges()}return!0}return!1}function KD(){return sD(F(),Md())}function Rx(t){let e=sm();return Wg(e,Re+t)}function Ox(t,e=""){let r=F(),n=X(),o=t+Re,i=n.firstCreatePass?nr(n,o,1,e,null):n.data[o],s=JD(n,r,i,e,t);r[o]=s,Uo()&&Wo(n,r,s,i),Pt(i,!1)}var JD=(t,e,r,n,o)=>(Ho(!0),vv(e[W],n));function XD(t){return Zf("",t,""),XD}function Zf(t,e,r){let n=F(),o=Bf(n,t,e,r);return o!==dt&&dy(n,pn(),o),Zf}function ew(t,e,r){let n=X();if(n.firstCreatePass){let o=hn(t);ea(r,n.data,n.blueprint,o,!0),ea(e,n.data,n.blueprint,o,!1)}}function ea(t,e,r,n,o){if(t=J(t),Array.isArray(t))for(let i=0;i>20;if(sn(t)||!t.multi){let h=new xt(c,o,q),g=us(u,e,o?l:l+f,d);g===-1?(Is(Io(a,s),i,u),as(i,t,e.length),e.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),r.push(h),s.push(h)):(r[g]=h,s[g]=h)}else{let h=us(u,e,l+f,d),g=us(u,e,l,l+f),E=h>=0&&r[h],V=g>=0&&r[g];if(o&&!V||!o&&!E){Is(Io(a,s),i,u);let P=rw(o?nw:tw,r.length,o,n,c);!o&&V&&(r[g].providerFactory=P),as(i,t,e.length,0),e.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),r.push(P),s.push(P)}else{let P=Yf(r[o?g:h],c,!o&&n);as(i,t,h>-1?h:g,P)}!o&&n&&V&&r[g].componentProviders++}}}function as(t,e,r,n){let o=sn(e),i=Ag(e);if(o||i){let u=(i?J(e.useClass):e).prototype.ngOnDestroy;if(u){let c=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){let l=c.indexOf(r);l===-1?c.push(r,[n,u]):c[l+1].push(n,u)}else c.push(r,u)}}}function Yf(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function us(t,e,r,n){for(let o=r;o{r.providersResolver=(n,o)=>ew(n,o?o(t):t,e)}}var ow=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let o=sd(!1,n.type),i=o.length>0?Xo([o],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=y({token:e,providedIn:"environment",factory:()=>new e(I(ce))});let t=e;return t})();function Qf(t){Ya("NgStandalone"),t.getStandaloneInjector=e=>e.get(ow).getOrCreateStandaloneInjector(t)}function Fx(t,e,r,n){return iw(F(),bd(),t,e,r,n)}function kx(t,e,r,n,o){return sw(F(),bd(),t,e,r,n,o)}function Kf(t,e){let r=t[e];return r===dt?void 0:r}function iw(t,e,r,n,o,i){let s=e+r;return Rt(t,s,o)?$f(t,s+1,i?n.call(i,o):n(o)):Kf(t,s+1)}function sw(t,e,r,n,o,i,s){let a=e+r;return hD(t,a,o,i)?$f(t,a+2,s?n.call(s,o,i):n(o,i)):Kf(t,a+2)}function Lx(t,e){return Ko(t,e)}var ti=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var Jf=new x("");function rr(t){return!!t&&typeof t.then=="function"}function Xf(t){return!!t&&typeof t.subscribe=="function"}var ni=new x(""),eh=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,o)=>{this.resolve=n,this.reject=o}),this.appInits=p(ni,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let s=i();if(rr(s))n.push(s);else if(Xf(s)){let a=new Promise((u,c)=>{s.subscribe({complete:u,error:c})});n.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{o()}).catch(i=>{this.reject(i)}),n.length===0&&o(),this.initialized=!0}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ri=new x("");function aw(){vc(()=>{throw new v(600,!1)})}function uw(t){return t.isBoundToModule}function cw(t,e,r){try{let n=r();return rr(n)?n.catch(o=>{throw e.runOutsideAngular(()=>t.handleError(o)),o}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}var or=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=p(zd),this.afterRenderEffectManager=p(Ja),this.externalTestViews=new Set,this.beforeRender=new G,this.afterTick=new G,this.componentTypes=[],this.components=[],this.isStable=p(ei).hasPendingTasks.pipe(N(n=>!n)),this._injector=p(ce)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,o){let i=n instanceof To;if(!this._injector.get(eh).done){let h=!i&&nd(n),g=!1;throw new v(405,g)}let a;i?a=n:a=this._injector.get(Jo).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let u=uw(a)?void 0:this._injector.get(st),c=o||a.selector,l=a.create(ct.NULL,[],c,u),d=l.location.nativeElement,f=l.injector.get(Jf,null);return f?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),cs(this.components,l),f?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new v(101,!1);let o=R(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(i){this.internalErrorHandler(i)}finally{this.afterTick.next(),this._runningTick=!1,R(o)}}detectChangesInAttachedViews(n){let o=0,i=this.afterRenderEffectManager;for(;;){if(o===Nf)throw new v(103,!1);if(n){let s=o===0;this.beforeRender.next(s);for(let{_lView:a,notifyErrorHandler:u}of this._views)lw(a,s,u)}if(o++,i.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>na(s))&&(i.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>na(s))))break}}attachView(n){let o=n;this._views.push(o),o.attachToAppRef(this)}detachView(n){let o=n;cs(this._views,o),o.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let o=this._injector.get(ri,[]);[...this._bootstrapListeners,...o].forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>cs(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new v(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function cs(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function lw(t,e,r){!e&&!na(t)||dw(t,r,e)}function na(t){return Ia(t)}function dw(t,e,r){let n;r?(n=0,t[D]|=1024):t[D]&64?n=0:n=1,Rf(t,e,n)}var ra=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},oi=(()=>{let e=class e{compileModuleSync(n){return new Qs(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let o=this.compileModuleSync(n),i=rd(n),s=uf(i.declarations).reduce((a,u)=>{let c=ot(u);return c&&a.push(new ln(c)),a},[]);return new ra(o,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var fw=(()=>{let e=class e{constructor(){this.zone=p(j),this.applicationRef=p(or)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function hw(t){return[{provide:j,useFactory:t},{provide:on,multi:!0,useFactory:()=>{let e=p(fw,{optional:!0});return()=>e.initialize()}},{provide:on,multi:!0,useFactory:()=>{let e=p(vw);return()=>{e.initialize()}}},{provide:zd,useFactory:pw}]}function pw(){let t=p(j),e=p(Pe);return r=>t.runOutsideAngular(()=>e.handleError(r))}function gw(t){let e=hw(()=>new j(mw(t)));return Lo([[],e])}function mw(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var vw=(()=>{let e=class e{constructor(){this.subscription=new $,this.initialized=!1,this.zone=p(j),this.pendingTasks=p(ei)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{j.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{j.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function yw(){return typeof $localize<"u"&&$localize.locale||Ro}var iu=new x("",{providedIn:"root",factory:()=>p(iu,T.Optional|T.SkipSelf)||yw()});var th=new x("");var ho=null;function Dw(t=[],e){return ct.create({name:e,providers:[{provide:jo,useValue:"platform"},{provide:th,useValue:new Set([()=>ho=null])},...t]})}function ww(t=[]){if(ho)return ho;let e=Dw(t);return ho=e,aw(),Cw(e),e}function Cw(t){t.get(Oa,null)?.forEach(r=>r())}var ir=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Iw;let t=e;return t})();function Iw(t){return Ew(re(),F(),(t&16)===16)}function Ew(t,e,r){if($o(t)&&!r){let n=ut(t.index,e);return new At(n,n)}else if(t.type&47){let n=e[Ne];return new At(n,e)}return null}var oa=class{constructor(){}supports(e){return Vf(e)}create(e){return new ia(e)}},bw=(t,e)=>e,ia=class{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||bw}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,n=this._removalsHead,o=0,i=null;for(;r||n;){let s=!n||r&&r.currentIndex{s=this._trackByFn(o,a),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,a,s,o),n=!0):(n&&(r=this._verifyReinsertion(r,a,s,o)),Object.is(r.item,a)||this._addIdentityChange(r,a)),r=r._next,o++}),this.length=o;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,r,n,o){let i;return e===null?i=this._itTail:(i=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,i,o)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,o),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,i,o)):e=this._addAfter(new sa(r,n),i,o)),e}_verifyReinsertion(e,r,n,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return i!==null?e=this._reinsertAfter(i,e._prev,o):e.currentIndex!=o&&(e.currentIndex=o,this._addToMoves(e,o)),e}_truncate(e){for(;e!==null;){let r=e._next;this._addToRemovals(this._unlink(e)),e=r}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,r,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let o=e._prevRemoved,i=e._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(e,r,n),this._addToMoves(e,n),e}_moveAfter(e,r,n){return this._unlink(e),this._insertAfter(e,r,n),this._addToMoves(e,n),e}_addAfter(e,r,n){return this._insertAfter(e,r,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,n){let o=r===null?this._itHead:r._next;return e._next=o,e._prev=r,o===null?this._itTail=e:o._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new Oo),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let r=e._prev,n=e._next;return r===null?this._itHead=n:r._next=n,n===null?this._itTail=r:n._prev=r,e}_addToMoves(e,r){return e.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Oo),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,r){return e.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},sa=class{constructor(e,r){this.item=e,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},aa=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,r){let n;for(n=this._head;n!==null;n=n._nextDup)if((r===null||r<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let r=e._prevDup,n=e._nextDup;return r===null?this._head=n:r._nextDup=n,n===null?this._tail=r:n._prevDup=r,this._head===null}},Oo=class{constructor(){this.map=new Map}put(e){let r=e.trackById,n=this.map.get(r);n||(n=new aa,this.map.set(r,n)),n.add(e)}get(e,r){let n=e,o=this.map.get(n);return o?o.get(e,r):null}remove(e){let r=e.trackById;return this.map.get(r).remove(e)&&this.map.delete(r),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Ol(t,e,r){let n=t.previousIndex;if(n===null)return n;let o=0;return r&&n{if(r&&r.key===o)this._maybeAddToChanges(r,n),this._appendAfter=r,r=r._next;else{let i=this._getOrCreateRecordForKey(o,n);r=this._insertBeforeOrAppend(r,i)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let n=r;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,r){if(e){let n=e._prev;return r._next=e,r._prev=n,e._prev=r,n&&(n._next=r),e===this._mapHead&&(this._mapHead=r),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(e,r){if(this._records.has(e)){let o=this._records.get(e);this._maybeAddToChanges(o,r);let i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}let n=new la(e);return this._records.set(e,n),n.currentValue=r,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,r){Object.is(r,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=r,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,r){e instanceof Map?e.forEach(r):Object.keys(e).forEach(n=>r(e[n],n))}},la=class{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}};function Pl(){return new su([new oa])}var su=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,o){if(o!=null){let i=o.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:o=>e.create(n,o||Pl()),deps:[[e,new ko,new Yn]]}}find(n){let o=this.factories.find(i=>i.supports(n));if(o!=null)return o;throw new v(901,!1)}};e.\u0275prov=y({token:e,providedIn:"root",factory:Pl});let t=e;return t})();function Fl(){return new au([new ua])}var au=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,o){if(o){let i=o.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:o=>e.create(n,o||Fl()),deps:[[e,new ko,new Yn]]}}find(n){let o=this.factories.find(i=>i.supports(n));if(o)return o;throw new v(901,!1)}};e.\u0275prov=y({token:e,providedIn:"root",factory:Fl});let t=e;return t})();function nh(t){try{let{rootComponent:e,appProviders:r,platformProviders:n}=t,o=ww(n),i=[gw(),...r||[]],a=new Ao({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1}).injector,u=a.get(j);return u.run(()=>{a.resolveInjectorInitializers();let c=a.get(Pe,null),l;u.runOutsideAngular(()=>{l=u.onError.subscribe({next:h=>{c.handleError(h)}})});let d=()=>a.destroy(),f=o.get(th);return f.add(d),a.onDestroy(()=>{l.unsubscribe(),f.delete(d)}),cw(c,u,()=>{let h=a.get(eh);return h.runInitializers(),h.donePromise.then(()=>{let g=a.get(iu,Ro);WD(g||Ro);let E=a.get(or);return e!==void 0&&E.bootstrap(e),E})})})}catch(e){return Promise.reject(e)}}function sr(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function rh(t){let e=ot(t);if(!e)return null;let r=new ln(e);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var lh=null;function yn(){return lh}function dh(t){lh??=t}var ii=class{};var oe=new x(""),pu=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:()=>p(Mw),providedIn:"platform"});let t=e;return t})(),fh=new x(""),Mw=(()=>{let e=class e extends pu{constructor(){super(),this._doc=p(oe),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return yn().getBaseHref(this._doc)}onPopState(n){let o=yn().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",n,!1),()=>o.removeEventListener("popstate",n)}onHashChange(n){let o=yn().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",n,!1),()=>o.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,o,i){this._history.pushState(n,o,i)}replaceState(n,o,i){this._history.replaceState(n,o,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function gu(t,e){if(t.length==0)return e;if(e.length==0)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?t+e.substring(1):r==1?t+e:t+"/"+e}function oh(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,n=r-(t[r-1]==="/"?1:0);return t.slice(0,n)+t.slice(r)}function Ke(t){return t&&t[0]!=="?"?"?"+t:t}var Le=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:()=>p(mu),providedIn:"root"});let t=e;return t})(),hh=new x(""),mu=(()=>{let e=class e extends Le{constructor(n,o){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=o??this._platformLocation.getBaseHrefFromDOM()??p(oe).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return gu(this._baseHref,n)}path(n=!1){let o=this._platformLocation.pathname+Ke(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${o}${i}`:o}pushState(n,o,i,s){let a=this.prepareExternalUrl(i+Ke(s));this._platformLocation.pushState(n,o,a)}replaceState(n,o,i,s){let a=this.prepareExternalUrl(i+Ke(s));this._platformLocation.replaceState(n,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(o){return new(o||e)(I(pu),I(hh,8))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),vu=(()=>{let e=class e extends Le{constructor(n,o){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],o!=null&&(this._baseHref=o)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let o=this._platformLocation.hash??"#";return o.length>0?o.substring(1):o}prepareExternalUrl(n){let o=gu(this._baseHref,n);return o.length>0?"#"+o:o}pushState(n,o,i,s){let a=this.prepareExternalUrl(i+Ke(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,o,a)}replaceState(n,o,i,s){let a=this.prepareExternalUrl(i+Ke(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(o){return new(o||e)(I(pu),I(hh,8))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),Dn=(()=>{let e=class e{constructor(n){this._subject=new ge,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let o=this._locationStrategy.getBaseHref();this._basePath=xw(oh(ih(o))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,o=""){return this.path()==this.normalize(n+Ke(o))}normalize(n){return e.stripTrailingSlash(Tw(this._basePath,ih(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,o="",i=null){this._locationStrategy.pushState(i,"",n,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ke(o)),i)}replaceState(n,o="",i=null){this._locationStrategy.replaceState(i,"",n,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ke(o)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(o=>{this._notifyUrlChangeListeners(o.url,o.state)}),()=>{let o=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(o,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",o){this._urlChangeListeners.forEach(i=>i(n,o))}subscribe(n,o,i){return this._subject.subscribe({next:n,error:o,complete:i})}};e.normalizeQueryParams=Ke,e.joinWithSlash=gu,e.stripTrailingSlash=oh,e.\u0275fac=function(o){return new(o||e)(I(Le))},e.\u0275prov=y({token:e,factory:()=>Sw(),providedIn:"root"});let t=e;return t})();function Sw(){return new Dn(I(Le))}function Tw(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function ih(t){return t.replace(/\/index.html$/,"")}function xw(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}function ph(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let n=r.indexOf("="),[o,i]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(o.trim()===e)return decodeURIComponent(i)}return null}var cu=/\s+/,sh=[],u_=(()=>{let e=class e{constructor(n,o){this._ngEl=n,this._renderer=o,this.initialClasses=sh,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(cu):sh}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(cu):n}ngDoCheck(){for(let o of this.initialClasses)this._updateState(o,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let o of n)this._updateState(o,!0);else if(n!=null)for(let o of Object.keys(n))this._updateState(o,!!n[o]);this._applyStateDiff()}_updateState(n,o){let i=this.stateMap.get(n);i!==void 0?(i.enabled!==o&&(i.changed=!0,i.enabled=o),i.touched=!0):this.stateMap.set(n,{enabled:o,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let o=n[0],i=n[1];i.changed?(this._toggleClass(o,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(o,!1),this.stateMap.delete(o)),i.touched=!1}}_toggleClass(n,o){n=n.trim(),n.length>0&&n.split(cu).forEach(i=>{o?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}};e.\u0275fac=function(o){return new(o||e)(q(ke),q(vn))},e.\u0275dir=at({type:e,selectors:[["","ngClass",""]],inputs:{klass:[me.None,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})();var lu=class{constructor(e,r,n,o){this.$implicit=e,this.ngForOf=r,this.index=n,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},c_=(()=>{let e=class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,o,i){this._viewContainer=n,this._template=o,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let o=this._viewContainer;n.forEachOperation((i,s,a)=>{if(i.previousIndex==null)o.createEmbeddedView(this._template,new lu(i.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)o.remove(s===null?void 0:s);else if(s!==null){let u=o.get(s);o.move(u,a),ah(u,i)}});for(let i=0,s=o.length;i{let s=o.get(i.currentIndex);ah(s,i)})}static ngTemplateContextGuard(n,o){return!0}};e.\u0275fac=function(o){return new(o||e)(q(ft),q(Nt),q(su))},e.\u0275dir=at({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function ah(t,e){t.context.$implicit=e.item}var l_=(()=>{let e=class e{constructor(n,o){this._viewContainer=n,this._context=new du,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=o}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){uh("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){uh("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,o){return!0}};e.\u0275fac=function(o){return new(o||e)(q(ft),q(Nt))},e.\u0275dir=at({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),du=class{constructor(){this.$implicit=null,this.ngIf=null}};function uh(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${ne(e)}'.`)}var d_=(()=>{let e=class e{constructor(n,o,i){this._ngEl=n,this._differs=o,this._renderer=i,this._ngStyle=null,this._differ=null}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,o){let[i,s]=n.split("."),a=i.indexOf("-")===-1?void 0:Fe.DashCase;o!=null?this._renderer.setStyle(this._ngEl.nativeElement,i,s?`${o}${s}`:o,a):this._renderer.removeStyle(this._ngEl.nativeElement,i,a)}_applyChanges(n){n.forEachRemovedItem(o=>this._setStyle(o.key,null)),n.forEachAddedItem(o=>this._setStyle(o.key,o.currentValue)),n.forEachChangedItem(o=>this._setStyle(o.key,o.currentValue))}};e.\u0275fac=function(o){return new(o||e)(q(ke),q(au),q(vn))},e.\u0275dir=at({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let t=e;return t})();var _w=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=Kn({type:e}),e.\u0275inj=Wn({});let t=e;return t})(),yu="browser",Aw="server";function Nw(t){return t===yu}function Du(t){return t===Aw}var gh=(()=>{let e=class e{};e.\u0275prov=y({token:e,providedIn:"root",factory:()=>Nw(p(lt))?new fu(p(oe),window):new hu});let t=e;return t})(),fu=class{constructor(e,r){this.document=e,this.window=r,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let r=Rw(this.document,e);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let r=e.getBoundingClientRect(),n=r.left+this.window.pageXOffset,o=r.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],o-i[1])}};function Rw(t,e){let r=t.getElementById(e)||t.getElementsByName(e)[0];if(r)return r;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),o=n.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(e)||i.querySelector(`[name="${e}"]`);if(s)return s}o=n.nextNode()}}return null}var hu=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},si=class{};var Iu=class extends ii{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Eu=class t extends Iu{static makeCurrent(){dh(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=Pw();return r==null?null:Fw(r)}resetBaseElement(){ar=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return ph(document.cookie,e)}},ar=null;function Pw(){return ar=ar||document.querySelector("base"),ar?ar.getAttribute("href"):null}function Fw(t){return new URL(t,document.baseURI).pathname}var kw=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),bu=new x(""),Dh=(()=>{let e=class e{constructor(n,o){this._zone=o,this._eventNameToPlugin=new Map,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,o,i){return this._findPluginFor(o).addEventListener(n,o,i)}getZone(){return this._zone}_findPluginFor(n){let o=this._eventNameToPlugin.get(n);if(o)return o;if(o=this._plugins.find(s=>s.supports(n)),!o)throw new v(5101,!1);return this._eventNameToPlugin.set(n,o),o}};e.\u0275fac=function(o){return new(o||e)(I(bu),I(j))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),ai=class{constructor(e){this._doc=e}},wu="ng-app-id",wh=(()=>{let e=class e{constructor(n,o,i,s={}){this.doc=n,this.appId=o,this.nonce=i,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Du(s),this.resetHostNodes()}addStyles(n){for(let o of n)this.changeUsageCount(o,1)===1&&this.onStyleAdded(o)}removeStyles(n){for(let o of n)this.changeUsageCount(o,-1)<=0&&this.onStyleRemoved(o)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(o=>o.remove()),n.clear());for(let o of this.getAllStyles())this.onStyleRemoved(o);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let o of this.getAllStyles())this.addStyleToHost(n,o)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let o of this.hostNodes)this.addStyleToHost(o,n)}onStyleRemoved(n){let o=this.styleRef;o.get(n)?.elements?.forEach(i=>i.remove()),o.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${wu}="${this.appId}"]`);if(n?.length){let o=new Map;return n.forEach(i=>{i.textContent!=null&&o.set(i.textContent,i)}),o}return null}changeUsageCount(n,o){let i=this.styleRef;if(i.has(n)){let s=i.get(n);return s.usage+=o,s.usage}return i.set(n,{usage:o,elements:[]}),o}getStyleElement(n,o){let i=this.styleNodesInDOM,s=i?.get(o);if(s?.parentNode===n)return i.delete(o),s.removeAttribute(wu),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=o,this.platformIsServer&&a.setAttribute(wu,this.appId),n.appendChild(a),a}}addStyleToHost(n,o){let i=this.getStyleElement(n,o),s=this.styleRef,a=s.get(o)?.elements;a?a.push(i):s.set(o,{elements:[i],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(o){return new(o||e)(I(oe),I(Ra),I(Pa,8),I(lt))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),Cu={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Su=/%COMP%/g,Ch="%COMP%",Lw=`_nghost-${Ch}`,jw=`_ngcontent-${Ch}`,Vw=!0,$w=new x("",{providedIn:"root",factory:()=>Vw});function Bw(t){return jw.replace(Su,t)}function Uw(t){return Lw.replace(Su,t)}function Ih(t,e){return e.map(r=>r.replace(Su,t))}var mh=(()=>{let e=class e{constructor(n,o,i,s,a,u,c,l=null){this.eventManager=n,this.sharedStylesHost=o,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=u,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Du(u),this.defaultRenderer=new ur(n,a,c,this.platformIsServer)}createRenderer(n,o){if(!n||!o)return this.defaultRenderer;this.platformIsServer&&o.encapsulation===Ae.ShadowDom&&(o=U(m({},o),{encapsulation:Ae.Emulated}));let i=this.getOrCreateRenderer(n,o);return i instanceof ui?i.applyToHost(n):i instanceof cr&&i.applyStyles(),i}getOrCreateRenderer(n,o){let i=this.rendererByCompId,s=i.get(o.id);if(!s){let a=this.doc,u=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(o.encapsulation){case Ae.Emulated:s=new ui(c,l,o,this.appId,d,a,u,f);break;case Ae.ShadowDom:return new Mu(c,l,n,o,a,u,this.nonce,f);default:s=new cr(c,l,o,d,a,u,f);break}i.set(o.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(o){return new(o||e)(I(Dh),I(wh),I(Ra),I($w),I(oe),I(lt),I(j),I(Pa))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),ur=class{constructor(e,r,n,o){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(Cu[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(vh(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(vh(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new v(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,o){if(o){r=o+":"+r;let i=Cu[o];i?e.setAttributeNS(i,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let o=Cu[n];o?e.removeAttributeNS(o,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,o){o&(Fe.DashCase|Fe.Important)?e.style.setProperty(r,n,o&Fe.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n&Fe.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e!=null&&(e[r]=n)}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=yn().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function vh(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Mu=class extends ur{constructor(e,r,n,o,i,s,a,u){super(e,i,s,u),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=Ih(o.id,o.styles);for(let l of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},cr=class extends ur{constructor(e,r,n,o,i,s,a,u){super(e,i,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=o,this.styles=u?Ih(u,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},ui=class extends cr{constructor(e,r,n,o,i,s,a,u){let c=o+"-"+n.id;super(e,r,n,i,s,a,u,c),this.contentAttr=Bw(c),this.hostAttr=Uw(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},Hw=(()=>{let e=class e extends ai{constructor(n){super(n)}supports(n){return!0}addEventListener(n,o,i){return n.addEventListener(o,i,!1),()=>this.removeEventListener(n,o,i)}removeEventListener(n,o,i){return n.removeEventListener(o,i)}};e.\u0275fac=function(o){return new(o||e)(I(oe))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),yh=["alt","control","meta","shift"],zw={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},qw={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Gw=(()=>{let e=class e extends ai{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,o,i){let s=e.parseEventName(o),a=e.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>yn().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let o=n.toLowerCase().split("."),i=o.shift();if(o.length===0||!(i==="keydown"||i==="keyup"))return null;let s=e._normalizeKey(o.pop()),a="",u=o.indexOf("code");if(u>-1&&(o.splice(u,1),a="code."),yh.forEach(l=>{let d=o.indexOf(l);d>-1&&(o.splice(d,1),a+=l+".")}),a+=s,o.length!=0||s.length===0)return null;let c={};return c.domEventName=i,c.fullKey=a,c}static matchEventFullKeyCode(n,o){let i=zw[n.key]||n.key,s="";return o.indexOf("code.")>-1&&(i=n.code,s="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),yh.forEach(a=>{if(a!==i){let u=qw[a];u(n)&&(s+=a+".")}}),s+=i,s===o)}static eventCallback(n,o,i){return s=>{e.matchEventFullKeyCode(s,n)&&i.runGuarded(()=>o(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(o){return new(o||e)(I(oe))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})();function F_(t,e){return nh(m({rootComponent:t},Ww(e)))}function Ww(t){return{appProviders:[...Jw,...t?.providers??[]],platformProviders:Kw}}function Zw(){Eu.makeCurrent()}function Yw(){return new Pe}function Qw(){return Qd(document),document}var Kw=[{provide:lt,useValue:yu},{provide:Oa,useValue:Zw,multi:!0},{provide:oe,useFactory:Qw,deps:[]}];var Jw=[{provide:jo,useValue:"root"},{provide:Pe,useFactory:Yw,deps:[]},{provide:bu,useClass:Hw,multi:!0,deps:[oe,j,lt]},{provide:bu,useClass:Gw,multi:!0,deps:[oe]},mh,wh,Dh,{provide:Hn,useExisting:mh},{provide:si,useClass:kw,deps:[]},[]];var Eh=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(o){return new(o||e)(I(oe))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var b="primary",Mr=Symbol("RouteTitle"),Nu=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function bn(t){return new Nu(t)}function eC(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.lengthn[i]===o)}else return t===e}function Oh(t){return t.length>0?t[t.length-1]:null}function vt(t){return Hi(t)?t:rr(t)?B(Promise.resolve(t)):w(t)}var nC={exact:Fh,subset:kh},Ph={exact:rC,subset:oC,ignored:()=>!0};function bh(t,e,r){return nC[r.paths](t.root,e.root,r.matrixParams)&&Ph[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function rC(t,e){return je(t,e)}function Fh(t,e,r){if(!kt(t.segments,e.segments)||!di(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!Fh(t.children[n],e.children[n],r))return!1;return!0}function oC(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>Rh(t[r],e[r]))}function kh(t,e,r){return Lh(t,e,e.segments,r)}function Lh(t,e,r,n){if(t.segments.length>r.length){let o=t.segments.slice(0,r.length);return!(!kt(o,r)||e.hasChildren()||!di(o,r,n))}else if(t.segments.length===r.length){if(!kt(t.segments,r)||!di(t.segments,r,n))return!1;for(let o in e.children)if(!t.children[o]||!kh(t.children[o],e.children[o],n))return!1;return!0}else{let o=r.slice(0,t.segments.length),i=r.slice(t.segments.length);return!kt(t.segments,o)||!di(t.segments,o,n)||!t.children[b]?!1:Lh(t.children[b],e,i,n)}}function di(t,e,r){return e.every((n,o)=>Ph[r](t[o].parameters,n.parameters))}var ht=class{constructor(e=new k([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=bn(this.queryParams),this._queryParamMap}toString(){return aC.serialize(this)}},k=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return fi(this)}},Ft=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=bn(this.parameters),this._parameterMap}toString(){return Vh(this)}};function iC(t,e){return kt(t,e)&&t.every((r,n)=>je(r.parameters,e[n].parameters))}function kt(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function sC(t,e){let r=[];return Object.entries(t.children).forEach(([n,o])=>{n===b&&(r=r.concat(e(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==b&&(r=r.concat(e(o,n)))}),r}var Sr=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:()=>new mr,providedIn:"root"});let t=e;return t})(),mr=class{parse(e){let r=new Pu(e);return new ht(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${lr(e.root,!0)}`,n=lC(e.queryParams),o=typeof e.fragment=="string"?`#${uC(e.fragment)}`:"";return`${r}${n}${o}`}},aC=new mr;function fi(t){return t.segments.map(e=>Vh(e)).join("/")}function lr(t,e){if(!t.hasChildren())return fi(t);if(e){let r=t.children[b]?lr(t.children[b],!1):"",n=[];return Object.entries(t.children).forEach(([o,i])=>{o!==b&&n.push(`${o}:${lr(i,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=sC(t,(n,o)=>o===b?[lr(t.children[b],!1)]:[`${o}:${lr(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[b]!=null?`${fi(t)}/${r[0]}`:`${fi(t)}/(${r.join("//")})`}}function jh(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ci(t){return jh(t).replace(/%3B/gi,";")}function uC(t){return encodeURI(t)}function Ou(t){return jh(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function hi(t){return decodeURIComponent(t)}function Mh(t){return hi(t.replace(/\+/g,"%20"))}function Vh(t){return`${Ou(t.path)}${cC(t.parameters)}`}function cC(t){return Object.entries(t).map(([e,r])=>`;${Ou(e)}=${Ou(r)}`).join("")}function lC(t){let e=Object.entries(t).map(([r,n])=>Array.isArray(n)?n.map(o=>`${ci(r)}=${ci(o)}`).join("&"):`${ci(r)}=${ci(n)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var dC=/^[^\/()?;#]+/;function Tu(t){let e=t.match(dC);return e?e[0]:""}var fC=/^[^\/()?;=#]+/;function hC(t){let e=t.match(fC);return e?e[0]:""}var pC=/^[^=?&#]+/;function gC(t){let e=t.match(pC);return e?e[0]:""}var mC=/^[^&#]+/;function vC(t){let e=t.match(mC);return e?e[0]:""}var Pu=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new k([],{}):new k([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[b]=new k(e,r)),n}parseSegment(){let e=Tu(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new v(4009,!1);return this.capture(e),new Ft(hi(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=hC(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let o=Tu(this.remaining);o&&(n=o,this.capture(n))}e[hi(r)]=hi(n)}parseQueryParam(e){let r=gC(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=vC(this.remaining);s&&(n=s,this.capture(n))}let o=Mh(r),i=Mh(n);if(e.hasOwnProperty(o)){let s=e[o];Array.isArray(s)||(s=[s],e[o]=s),s.push(i)}else e[o]=i}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Tu(this.remaining),o=this.remaining[n.length];if(o!=="/"&&o!==")"&&o!==";")throw new v(4010,!1);let i;n.indexOf(":")>-1?(i=n.slice(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=b);let s=this.parseChildren();r[i]=Object.keys(s).length===1?s[b]:new k([],s),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new v(4011,!1)}};function $h(t){return t.segments.length>0?new k([],{[b]:t}):t}function Bh(t){let e={};for(let[n,o]of Object.entries(t.children)){let i=Bh(o);if(n===b&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))e[s]=a;else(i.segments.length>0||i.hasChildren())&&(e[n]=i)}let r=new k(t.segments,e);return yC(r)}function yC(t){if(t.numberOfChildren===1&&t.children[b]){let e=t.children[b];return new k(t.segments.concat(e.segments),e.children)}return t}function Mn(t){return t instanceof ht}function DC(t,e,r=null,n=null){let o=Uh(t);return Hh(o,e,r,n)}function Uh(t){let e;function r(i){let s={};for(let u of i.children){let c=r(u);s[u.outlet]=c}let a=new k(i.url,s);return i===t&&(e=a),a}let n=r(t.root),o=$h(n);return e??o}function Hh(t,e,r,n){let o=t;for(;o.parent;)o=o.parent;if(e.length===0)return xu(o,o,o,r,n);let i=wC(e);if(i.toRoot())return xu(o,o,new k([],{}),r,n);let s=CC(i,o,t),a=s.processChildren?hr(s.segmentGroup,s.index,i.commands):qh(s.segmentGroup,s.index,i.commands);return xu(o,s.segmentGroup,a,r,n)}function pi(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function vr(t){return typeof t=="object"&&t!=null&&t.outlets}function xu(t,e,r,n,o){let i={};n&&Object.entries(n).forEach(([u,c])=>{i[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let s;t===e?s=r:s=zh(t,e,r);let a=$h(Bh(s));return new ht(a,i,o)}function zh(t,e,r){let n={};return Object.entries(t.children).forEach(([o,i])=>{i===e?n[o]=r:n[o]=zh(i,e,r)}),new k(t.segments,n)}var gi=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&pi(n[0]))throw new v(4003,!1);let o=n.find(vr);if(o&&o!==Oh(n))throw new v(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function wC(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new gi(!0,0,t);let e=0,r=!1,n=t.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?r=!0:a===".."?e++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new gi(r,e,n)}var In=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function CC(t,e,r){if(t.isAbsolute)return new In(e,!0,0);if(!r)return new In(e,!1,NaN);if(r.parent===null)return new In(r,!0,0);let n=pi(t.commands[0])?0:1,o=r.segments.length-1+n;return IC(r,o,t.numberOfDoubleDots)}function IC(t,e,r){let n=t,o=e,i=r;for(;i>o;){if(i-=o,n=n.parent,!n)throw new v(4005,!1);o=n.segments.length}return new In(n,!1,o-i)}function EC(t){return vr(t[0])?t[0].outlets:{[b]:t}}function qh(t,e,r){if(t??=new k([],{}),t.segments.length===0&&t.hasChildren())return hr(t,e,r);let n=bC(t,e,r),o=r.slice(n.commandIndex);if(n.match&&n.pathIndexi!==b)&&t.children[b]&&t.numberOfChildren===1&&t.children[b].segments.length===0){let i=hr(t.children[b],e,r);return new k(t.segments,i.children)}return Object.entries(n).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=qh(t.children[i],e,s))}),Object.entries(t.children).forEach(([i,s])=>{n[i]===void 0&&(o[i]=s)}),new k(t.segments,o)}}function bC(t,e,r){let n=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};for(;o=r.length)return i;let s=t.segments[o],a=r[n];if(vr(a))break;let u=`${a}`,c=n0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!Th(u,c,s))return i;n+=2}else{if(!Th(u,{},s))return i;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function Fu(t,e,r){let n=t.segments.slice(0,e),o=0;for(;o{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=Fu(new k([],{}),0,n))}),e}function Sh(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function Th(t,e,r){return t==r.path&&je(e,r.parameters)}var pr="imperative",Z=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Z||{}),ye=class{constructor(e,r){this.id=e,this.url=r}},Sn=class extends ye{constructor(e,r,n="imperative",o=null){super(e,r),this.type=Z.NavigationStart,this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Ve=class extends ye{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=Z.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},de=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(de||{}),mi=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(mi||{}),pt=class extends ye{constructor(e,r,n,o){super(e,r),this.reason=n,this.code=o,this.type=Z.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},gt=class extends ye{constructor(e,r,n,o){super(e,r),this.reason=n,this.code=o,this.type=Z.NavigationSkipped}},yr=class extends ye{constructor(e,r,n,o){super(e,r),this.error=n,this.target=o,this.type=Z.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},vi=class extends ye{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=Z.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ku=class extends ye{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=Z.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Lu=class extends ye{constructor(e,r,n,o,i){super(e,r),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=i,this.type=Z.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},ju=class extends ye{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=Z.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Vu=class extends ye{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=Z.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},$u=class{constructor(e){this.route=e,this.type=Z.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Bu=class{constructor(e){this.route=e,this.type=Z.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Uu=class{constructor(e){this.snapshot=e,this.type=Z.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Hu=class{constructor(e){this.snapshot=e,this.type=Z.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},zu=class{constructor(e){this.snapshot=e,this.type=Z.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},qu=class{constructor(e){this.snapshot=e,this.type=Z.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yi=class{constructor(e,r,n){this.routerEvent=e,this.position=r,this.anchor=n,this.type=Z.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},Dr=class{},wr=class{constructor(e){this.url=e}};var Gu=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Tr,this.attachRef=null}},Tr=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,o){let i=this.getOrCreateContext(n);i.outlet=o,this.contexts.set(n,i)}onChildOutletDestroyed(n){let o=this.getContext(n);o&&(o.outlet=null,o.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let o=this.getContext(n);return o||(o=new Gu,this.contexts.set(n,o)),o}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Di=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=Wu(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=Wu(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=Zu(e,this._root);return r.length<2?[]:r[r.length-2].children.map(o=>o.value).filter(o=>o!==e)}pathFromRoot(e){return Zu(e,this._root).map(r=>r.value)}};function Wu(t,e){if(t===e.value)return e;for(let r of e.children){let n=Wu(t,r);if(n)return n}return null}function Zu(t,e){if(t===e.value)return[e];for(let r of e.children){let n=Zu(t,r);if(n.length)return n.unshift(e),n}return[]}var le=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function Cn(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var wi=class extends Di{constructor(e,r){super(e),this.snapshot=r,oc(this,e)}toString(){return this.snapshot.toString()}};function Gh(t){let e=SC(t),r=new Y([new Ft("",{})]),n=new Y({}),o=new Y({}),i=new Y({}),s=new Y(""),a=new mt(r,n,i,s,o,b,t,e.root);return a.snapshot=e.root,new wi(new le(a,[]),e)}function SC(t){let e={},r={},n={},o="",i=new Cr([],e,n,o,r,b,t,null,{});return new Ci("",new le(i,[]))}var mt=class{constructor(e,r,n,o,i,s,a,u){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(N(c=>c[Mr]))??w(void 0),this.url=e,this.params=r,this.queryParams=n,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(N(e=>bn(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(N(e=>bn(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function rc(t,e,r="emptyOnly"){let n,{routeConfig:o}=t;return e!==null&&(r==="always"||o?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:m(m({},e.params),t.params),data:m(m({},e.data),t.data),resolve:m(m(m(m({},t.data),e.data),o?.data),t._resolvedData)}:n={params:m({},t.params),data:m({},t.data),resolve:m(m({},t.data),t._resolvedData??{})},o&&Zh(o)&&(n.resolve[Mr]=o.title),n}var Cr=class{get title(){return this.data?.[Mr]}constructor(e,r,n,o,i,s,a,u,c){this.url=e,this.params=r,this.queryParams=n,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=bn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=bn(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},Ci=class extends Di{constructor(e,r){super(r),this.url=e,oc(this,r)}toString(){return Wh(this._root)}};function oc(t,e){e.value._routerState=t,e.children.forEach(r=>oc(t,r))}function Wh(t){let e=t.children.length>0?` { ${t.children.map(Wh).join(", ")} } `:"";return`${t.value}${e}`}function _u(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,je(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),je(e.params,r.params)||t.paramsSubject.next(r.params),tC(e.url,r.url)||t.urlSubject.next(r.url),je(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Yu(t,e){let r=je(t.params,e.params)&&iC(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||Yu(t.parent,e.parent))}function Zh(t){return typeof t.title=="string"||t.title===null}var TC=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=b,this.activateEvents=new ge,this.deactivateEvents=new ge,this.attachEvents=new ge,this.detachEvents=new ge,this.parentContexts=p(Tr),this.location=p(ft),this.changeDetector=p(ir),this.environmentInjector=p(ce),this.inputBinder=p(Mi,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:o,previousValue:i}=n.name;if(o)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new v(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new v(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new v(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,o){this.activated=n,this._activatedRoute=o,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,o){if(this.isActivated)throw new v(4013,!1);this._activatedRoute=n;let i=this.location,a=n.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,c=new Qu(n,u,i.injector);this.activated=i.createComponent(a,{index:i.length,injector:c,environmentInjector:o??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=at({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Xn]});let t=e;return t})(),Qu=class{constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n}get(e,r){return e===mt?this.route:e===Tr?this.childContexts:this.parent.get(e,r)}},Mi=new x(""),xh=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:o}=n,i=On([o.queryParams,o.params,o.data]).pipe(he(([s,a,u],c)=>(u=m(m(m({},s),a),u),c===0?w(u):Promise.resolve(u)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==o||o.component===null){this.unsubscribeFromRouteData(n);return}let a=rh(o.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:u}of a.inputs)n.activatedComponentRef.setInput(u,s[u])});this.outletDataSubscriptions.set(n,i)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})();function xC(t,e,r){let n=Ir(t,e._root,r?r._root:void 0);return new wi(n,e)}function Ir(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let o=_C(t,e,r);return new le(n,o)}else{if(t.shouldAttach(e.value)){let i=t.retrieve(e.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>Ir(t,a)),s}}let n=AC(e.value),o=e.children.map(i=>Ir(t,i));return new le(n,o)}}function _C(t,e,r){return e.children.map(n=>{for(let o of r.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return Ir(t,n,o);return Ir(t,n)})}function AC(t){return new mt(new Y(t.url),new Y(t.params),new Y(t.queryParams),new Y(t.fragment),new Y(t.data),t.outlet,t.component,t)}var Yh="ngNavigationCancelingError";function Qh(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=Mn(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,o=Kh(!1,de.Redirect);return o.url=r,o.navigationBehaviorOptions=n,o}function Kh(t,e){let r=new Error(`NavigationCancelingError: ${t||""}`);return r[Yh]=!0,r.cancellationCode=e,r}function NC(t){return Jh(t)&&Mn(t.url)}function Jh(t){return!!t&&t[Yh]}var RC=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=Xl({type:e,selectors:[["ng-component"]],standalone:!0,features:[Qf],decls:1,vars:0,template:function(o,i){o&1&&ru(0,"router-outlet")},dependencies:[TC],encapsulation:2});let t=e;return t})();function OC(t,e){return t.providers&&!t._injector&&(t._injector=Xo(t.providers,e,`Route: ${t.path}`)),t._injector??e}function ic(t){let e=t.children&&t.children.map(ic),r=e?U(m({},t),{children:e}):m({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==b&&(r.component=RC),r}function $e(t){return t.outlet||b}function PC(t,e){let r=t.filter(n=>$e(n)===e);return r.push(...t.filter(n=>$e(n)!==e)),r}function xr(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var FC=(t,e,r,n)=>N(o=>(new Ku(e,o.targetRouterState,o.currentRouterState,r,n).activate(t),o)),Ku=class{constructor(e,r,n,o,i){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=i}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),_u(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let o=Cn(r);e.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],n),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,n)})}deactivateRoutes(e,r,n){let o=e.value,i=r?r.value:null;if(o===i)if(o.component){let s=n.getContext(o.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,n);else i&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),o=n&&e.value.component?n.children:r,i=Cn(e);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let n=r.getContext(e.value.outlet),o=n&&e.value.component?n.children:r,i=Cn(e);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let o=Cn(r);e.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],n),this.forwardEvent(new qu(i.value.snapshot))}),e.children.length&&this.forwardEvent(new Hu(e.value.snapshot))}activateRoutes(e,r,n){let o=e.value,i=r?r.value:null;if(_u(o),o===i)if(o.component){let s=n.getOrCreateContext(o.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,n);else if(o.component){let s=n.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),_u(a.route.value),this.activateChildRoutes(e,null,s.children)}else{let a=xr(o.snapshot);s.attachRef=null,s.route=o,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,n)}},Ii=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},En=class{constructor(e,r){this.component=e,this.route=r}};function kC(t,e,r){let n=t._root,o=e?e._root:null;return dr(n,o,r,[n.value])}function LC(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function xn(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!$l(t)?t:e.get(t):n}function dr(t,e,r,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=Cn(e);return t.children.forEach(s=>{jC(s,i[s.value.outlet],r,n.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>gr(a,r.getContext(s),o)),o}function jC(t,e,r,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=t.value,s=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let u=VC(s,i,i.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new Ii(n)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?dr(t,e,a?a.children:null,n,o):dr(t,e,r,n,o),u&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new En(a.outlet.component,s))}else s&&gr(e,a,o),o.canActivateChecks.push(new Ii(n)),i.component?dr(t,null,a?a.children:null,n,o):dr(t,null,r,n,o);return o}function VC(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!kt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!kt(t.url,e.url)||!je(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Yu(t,e)||!je(t.queryParams,e.queryParams);case"paramsChange":default:return!Yu(t,e)}}function gr(t,e,r){let n=Cn(t),o=t.value;Object.entries(n).forEach(([i,s])=>{o.component?e?gr(s,e.children.getContext(i),r):gr(s,null,r):gr(s,e,r)}),o.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new En(e.outlet.component,o)):r.canDeactivateChecks.push(new En(null,o)):r.canDeactivateChecks.push(new En(null,o))}function _r(t){return typeof t=="function"}function $C(t){return typeof t=="boolean"}function BC(t){return t&&_r(t.canLoad)}function UC(t){return t&&_r(t.canActivate)}function HC(t){return t&&_r(t.canActivateChild)}function zC(t){return t&&_r(t.canDeactivate)}function qC(t){return t&&_r(t.canMatch)}function Xh(t){return t instanceof He||t?.name==="EmptyError"}var li=Symbol("INITIAL_VALUE");function Tn(){return he(t=>On(t.map(e=>e.pipe(ze(1),Wi(li)))).pipe(N(e=>{for(let r of e)if(r!==!0){if(r===li)return li;if(r===!1||r instanceof ht)return r}return!0}),fe(e=>e!==li),ze(1)))}function GC(t,e){return z(r=>{let{targetSnapshot:n,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=r;return s.length===0&&i.length===0?w(U(m({},r),{guardsResult:!0})):WC(s,n,o,t).pipe(z(a=>a&&$C(a)?ZC(n,i,t,e):w(a)),N(a=>U(m({},r),{guardsResult:a})))})}function WC(t,e,r,n){return B(t).pipe(z(o=>XC(o.component,o.route,r,e,n)),Te(o=>o!==!0,!0))}function ZC(t,e,r,n){return B(e).pipe(It(o=>Yt(QC(o.route.parent,n),YC(o.route,n),JC(t,o.path,r),KC(t,o.route,r))),Te(o=>o!==!0,!0))}function YC(t,e){return t!==null&&e&&e(new zu(t)),w(!0)}function QC(t,e){return t!==null&&e&&e(new Uu(t)),w(!0)}function KC(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return w(!0);let o=n.map(i=>eo(()=>{let s=xr(e)??r,a=xn(i,s),u=UC(a)?a.canActivate(e,t):We(s,()=>a(e,t));return vt(u).pipe(Te())}));return w(o).pipe(Tn())}function JC(t,e,r){let n=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(s=>LC(s)).filter(s=>s!==null).map(s=>eo(()=>{let a=s.guards.map(u=>{let c=xr(s.node)??r,l=xn(u,c),d=HC(l)?l.canActivateChild(n,t):We(c,()=>l(n,t));return vt(d).pipe(Te())});return w(a).pipe(Tn())}));return w(i).pipe(Tn())}function XC(t,e,r,n,o){let i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!i||i.length===0)return w(!0);let s=i.map(a=>{let u=xr(e)??o,c=xn(a,u),l=zC(c)?c.canDeactivate(t,e,r,n):We(u,()=>c(t,e,r,n));return vt(l).pipe(Te())});return w(s).pipe(Tn())}function eI(t,e,r,n){let o=e.canLoad;if(o===void 0||o.length===0)return w(!0);let i=o.map(s=>{let a=xn(s,t),u=BC(a)?a.canLoad(e,r):We(t,()=>a(e,r));return vt(u)});return w(i).pipe(Tn(),ep(n))}function ep(t){return Li(Q(e=>{if(Mn(e))throw Qh(t,e)}),N(e=>e===!0))}function tI(t,e,r,n){let o=e.canMatch;if(!o||o.length===0)return w(!0);let i=o.map(s=>{let a=xn(s,t),u=qC(a)?a.canMatch(e,r):We(t,()=>a(e,r));return vt(u)});return w(i).pipe(Tn(),ep(n))}var Er=class{constructor(e){this.segmentGroup=e||null}},Ei=class extends Error{constructor(e){super(),this.urlTree=e}};function wn(t){return Wt(new Er(t))}function nI(t){return Wt(new v(4e3,!1))}function rI(t){return Wt(Kh(!1,de.GuardRejected))}var Ju=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let n=[],o=r.root;for(;;){if(n=n.concat(o.segments),o.numberOfChildren===0)return w(n);if(o.numberOfChildren>1||!o.children[b])return nI(e.redirectTo);o=o.children[b]}}applyRedirectCommands(e,r,n){let o=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r.startsWith("/"))throw new Ei(o);return o}applyRedirectCreateUrlTree(e,r,n,o){let i=this.createSegmentGroup(e,r.root,n,o);return new ht(i,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([o,i])=>{if(typeof i=="string"&&i.startsWith(":")){let a=i.substring(1);n[o]=r[a]}else n[o]=i}),n}createSegmentGroup(e,r,n,o){let i=this.createSegments(e,r.segments,n,o),s={};return Object.entries(r.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(e,u,n,o)}),new k(i,s)}createSegments(e,r,n,o){return r.map(i=>i.path.startsWith(":")?this.findPosParam(e,i,o):this.findOrReturn(i,n))}findPosParam(e,r,n){let o=n[r.path.substring(1)];if(!o)throw new v(4001,!1);return o}findOrReturn(e,r){let n=0;for(let o of r){if(o.path===e.path)return r.splice(n),o;n++}return e}},Xu={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function oI(t,e,r,n,o){let i=sc(t,e,r);return i.matched?(n=OC(e,n),tI(n,e,r,o).pipe(N(s=>s===!0?i:m({},Xu)))):w(i)}function sc(t,e,r){if(e.path==="**")return iI(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?m({},Xu):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let o=(e.matcher||eC)(r,t,e);if(!o)return m({},Xu);let i={};Object.entries(o.posParams??{}).forEach(([a,u])=>{i[a]=u.path});let s=o.consumed.length>0?m(m({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:r.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function iI(t){return{matched:!0,parameters:t.length>0?Oh(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function _h(t,e,r,n){return r.length>0&&uI(t,r,n)?{segmentGroup:new k(e,aI(n,new k(r,t.children))),slicedSegments:[]}:r.length===0&&cI(t,r,n)?{segmentGroup:new k(t.segments,sI(t,r,n,t.children)),slicedSegments:r}:{segmentGroup:new k(t.segments,t.children),slicedSegments:r}}function sI(t,e,r,n){let o={};for(let i of r)if(Si(t,e,i)&&!n[$e(i)]){let s=new k([],{});o[$e(i)]=s}return m(m({},n),o)}function aI(t,e){let r={};r[b]=e;for(let n of t)if(n.path===""&&$e(n)!==b){let o=new k([],{});r[$e(n)]=o}return r}function uI(t,e,r){return r.some(n=>Si(t,e,n)&&$e(n)!==b)}function cI(t,e,r){return r.some(n=>Si(t,e,n))}function Si(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function lI(t,e,r,n){return $e(t)!==n&&(n===b||!Si(e,r,t))?!1:sc(e,t,r).matched}function dI(t,e,r){return e.length===0&&!t.children[r]}var ec=class{};function fI(t,e,r,n,o,i,s="emptyOnly"){return new tc(t,e,r,n,o,s,i).recognize()}var hI=31,tc=class{constructor(e,r,n,o,i,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Ju(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new v(4002,`'${e.segmentGroup}'`)}recognize(){let e=_h(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(N(r=>{let n=new Cr([],Object.freeze({}),Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,{},b,this.rootComponentType,null,{}),o=new le(n,r),i=new Ci("",o),s=DC(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(i._root,null),{state:i,tree:s}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,b).pipe(et(n=>{if(n instanceof Ei)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Er?this.noMatchError(n):n}))}inheritParamsAndData(e,r){let n=e.value,o=rc(n,r,this.paramsInheritanceStrategy);n.params=Object.freeze(o.params),n.data=Object.freeze(o.data),e.children.forEach(i=>this.inheritParamsAndData(i,n))}processSegmentGroup(e,r,n,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n):this.processSegment(e,r,n,n.segments,o,!0).pipe(N(i=>i instanceof le?[i]:[]))}processChildren(e,r,n){let o=[];for(let i of Object.keys(n.children))i==="primary"?o.unshift(i):o.push(i);return B(o).pipe(It(i=>{let s=n.children[i],a=PC(r,i);return this.processSegmentGroup(e,a,s,i)}),Gi((i,s)=>(i.push(...s),i)),tt(null),qi(),z(i=>{if(i===null)return wn(n);let s=tp(i);return pI(s),w(s)}))}processSegment(e,r,n,o,i,s){return B(r).pipe(It(a=>this.processSegmentAgainstRoute(a._injector??e,r,a,n,o,i,s).pipe(et(u=>{if(u instanceof Er)return w(null);throw u}))),Te(a=>!!a),et(a=>{if(Xh(a))return dI(n,o,i)?w(new ec):wn(n);throw a}))}processSegmentAgainstRoute(e,r,n,o,i,s,a){return lI(n,o,i,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,o,n,i,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,o,r,n,i,s):wn(o):wn(o)}expandSegmentAgainstRouteUsingRedirect(e,r,n,o,i,s){let{matched:a,consumedSegments:u,positionalParamSegments:c,remainingSegments:l}=sc(r,o,i);if(!a)return wn(r);o.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>hI&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(u,o.redirectTo,c);return this.applyRedirects.lineralizeSegments(o,d).pipe(z(f=>this.processSegment(e,n,r,f.concat(l),s,!1)))}matchSegmentAgainstRoute(e,r,n,o,i){let s=oI(r,n,o,e,this.urlSerializer);return n.path==="**"&&(r.children={}),s.pipe(he(a=>a.matched?(e=n._injector??e,this.getChildConfig(e,n,o).pipe(he(({routes:u})=>{let c=n._loadedInjector??e,{consumedSegments:l,remainingSegments:d,parameters:f}=a,h=new Cr(l,f,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,mI(n),$e(n),n.component??n._loadedComponent??null,n,vI(n)),{segmentGroup:g,slicedSegments:E}=_h(r,l,d,u);if(E.length===0&&g.hasChildren())return this.processChildren(c,u,g).pipe(N(P=>P===null?null:new le(h,P)));if(u.length===0&&E.length===0)return w(new le(h,[]));let V=$e(n)===i;return this.processSegment(c,u,g,E,V?b:i,!0).pipe(N(P=>new le(h,P instanceof le?[P]:[])))}))):wn(r)))}getChildConfig(e,r,n){return r.children?w({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?w({routes:r._loadedRoutes,injector:r._loadedInjector}):eI(e,r,n,this.urlSerializer).pipe(z(o=>o?this.configLoader.loadChildren(e,r).pipe(Q(i=>{r._loadedRoutes=i.routes,r._loadedInjector=i.injector})):rI(r))):w({routes:[],injector:e})}};function pI(t){t.sort((e,r)=>e.value.outlet===b?-1:r.value.outlet===b?1:e.value.outlet.localeCompare(r.value.outlet))}function gI(t){let e=t.value.routeConfig;return e&&e.path===""}function tp(t){let e=[],r=new Set;for(let n of t){if(!gI(n)){e.push(n);continue}let o=e.find(i=>n.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...n.children),r.add(o)):e.push(n)}for(let n of r){let o=tp(n.children);e.push(new le(n.value,o))}return e.filter(n=>!r.has(n))}function mI(t){return t.data||{}}function vI(t){return t.resolve||{}}function yI(t,e,r,n,o,i){return z(s=>fI(t,e,r,n,s.extractedUrl,o,i).pipe(N(({state:a,tree:u})=>U(m({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function DI(t,e){return z(r=>{let{targetSnapshot:n,guards:{canActivateChecks:o}}=r;if(!o.length)return w(r);let i=new Set(o.map(u=>u.route)),s=new Set;for(let u of i)if(!s.has(u))for(let c of np(u))s.add(c);let a=0;return B(s).pipe(It(u=>i.has(u)?wI(u,n,t,e):(u.data=rc(u,u.parent,t).resolve,w(void 0))),Q(()=>a++),Qt(1),z(u=>a===s.size?w(r):se))})}function np(t){let e=t.children.map(r=>np(r)).flat();return[t,...e]}function wI(t,e,r,n){let o=t.routeConfig,i=t._resolve;return o?.title!==void 0&&!Zh(o)&&(i[Mr]=o.title),CI(i,t,e,n).pipe(N(s=>(t._resolvedData=s,t.data=rc(t,t.parent,r).resolve,null)))}function CI(t,e,r,n){let o=Ru(t);if(o.length===0)return w({});let i={};return B(o).pipe(z(s=>II(t[s],e,r,n).pipe(Te(),Q(a=>{i[s]=a}))),Qt(1),zi(i),et(s=>Xh(s)?se:Wt(s)))}function II(t,e,r,n){let o=xr(e)??n,i=xn(t,o),s=i.resolve?i.resolve(e,r):We(o,()=>i(e,r));return vt(s)}function Au(t){return he(e=>{let r=t(e);return r?B(r).pipe(N(()=>e)):w(e)})}var rp=(()=>{let e=class e{buildTitle(n){let o,i=n.root;for(;i!==void 0;)o=this.getResolvedTitleForRoute(i)??o,i=i.children.find(s=>s.outlet===b);return o}getResolvedTitleForRoute(n){return n.data[Mr]}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:()=>p(EI),providedIn:"root"});let t=e;return t})(),EI=(()=>{let e=class e extends rp{constructor(n){super(),this.title=n}updateTitle(n){let o=this.buildTitle(n);o!==void 0&&this.title.setTitle(o)}};e.\u0275fac=function(o){return new(o||e)(I(Eh))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ar=new x("",{providedIn:"root",factory:()=>({})}),br=new x(""),ac=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=p(oi)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return w(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let o=vt(n.loadComponent()).pipe(N(op),Q(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),Pn(()=>{this.componentLoaders.delete(n)})),i=new qt(o,()=>new G).pipe(zt());return this.componentLoaders.set(n,i),i}loadChildren(n,o){if(this.childrenLoaders.get(o))return this.childrenLoaders.get(o);if(o._loadedRoutes)return w({routes:o._loadedRoutes,injector:o._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(o);let s=bI(o,this.compiler,n,this.onLoadEndListener).pipe(Pn(()=>{this.childrenLoaders.delete(o)})),a=new qt(s,()=>new G).pipe(zt());return this.childrenLoaders.set(o,a),a}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function bI(t,e,r,n){return vt(t.loadChildren()).pipe(N(op),z(o=>o instanceof zn||Array.isArray(o)?w(o):B(e.compileModuleAsync(o))),N(o=>{n&&n(t);let i,s,a=!1;return Array.isArray(o)?(s=o,a=!0):(i=o.create(r).injector,s=i.get(br,[],{optional:!0,self:!0}).flat()),{routes:s.map(ic),injector:i}}))}function MI(t){return t&&typeof t=="object"&&"default"in t}function op(t){return MI(t)?t.default:t}var uc=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:()=>p(SI),providedIn:"root"});let t=e;return t})(),SI=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,o){return n}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ip=new x(""),sp=new x("");function TI(t,e,r){let n=t.get(sp),o=t.get(oe);return t.get(j).runOutsideAngular(()=>{if(!o.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,Promise.resolve();let i,s=new Promise(c=>{i=c}),a=o.startViewTransition(()=>(i(),xI(t))),{onViewTransitionCreated:u}=n;return u&&We(t,()=>u({transition:a,from:e,to:r})),s})}function xI(t){return new Promise(e=>{Ka(e,{injector:t})})}var cc=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new G,this.transitionAbortSubject=new G,this.configLoader=p(ac),this.environmentInjector=p(ce),this.urlSerializer=p(Sr),this.rootContexts=p(Tr),this.location=p(Dn),this.inputBindingEnabled=p(Mi,{optional:!0})!==null,this.titleStrategy=p(rp),this.options=p(Ar,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=p(uc),this.createViewTransition=p(ip,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>w(void 0),this.rootComponentType=null;let n=i=>this.events.next(new $u(i)),o=i=>this.events.next(new Bu(i));this.configLoader.onLoadEndListener=o,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let o=++this.navigationId;this.transitions?.next(U(m(m({},this.transitions.value),n),{id:o}))}setupNavigations(n,o,i){return this.transitions=new Y({id:0,currentUrlTree:o,currentRawUrl:o,extractedUrl:this.urlHandlingStrategy.extract(o),urlAfterRedirects:this.urlHandlingStrategy.extract(o),rawUrl:o,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:pr,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(fe(s=>s.id!==0),N(s=>U(m({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),he(s=>{let a=!1,u=!1;return w(s).pipe(he(c=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",de.SupersededByNewNavigation),se;this.currentTransition=s,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?U(m({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload"){let f="";return this.events.next(new gt(c.id,this.urlSerializer.serialize(c.rawUrl),f,mi.IgnoredSameUrlNavigation)),c.resolve(null),se}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return w(c).pipe(he(f=>{let h=this.transitions?.getValue();return this.events.next(new Sn(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions?.getValue()?se:Promise.resolve(f)}),yI(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),Q(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=U(m({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let h=new vi(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(h)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:f,extractedUrl:h,source:g,restoredState:E,extras:V}=c,P=new Sn(f,this.urlSerializer.serialize(h),g,E);this.events.next(P);let Be=Gh(this.rootComponentType).snapshot;return this.currentTransition=s=U(m({},c),{targetSnapshot:Be,urlAfterRedirects:h,extras:U(m({},V),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,w(s)}else{let f="";return this.events.next(new gt(c.id,this.urlSerializer.serialize(c.extractedUrl),f,mi.IgnoredByUrlHandlingStrategy)),c.resolve(null),se}}),Q(c=>{let l=new ku(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),N(c=>(this.currentTransition=s=U(m({},c),{guards:kC(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),s)),GC(this.environmentInjector,c=>this.events.next(c)),Q(c=>{if(s.guardsResult=c.guardsResult,Mn(c.guardsResult))throw Qh(this.urlSerializer,c.guardsResult);let l=new Lu(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),fe(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",de.GuardRejected),!1)),Au(c=>{if(c.guards.canActivateChecks.length)return w(c).pipe(Q(l=>{let d=new ju(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),he(l=>{let d=!1;return w(l).pipe(DI(this.paramsInheritanceStrategy,this.environmentInjector),Q({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",de.NoDataFromResolver)}}))}),Q(l=>{let d=new Vu(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),Au(c=>{let l=d=>{let f=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(Q(h=>{d.component=h}),N(()=>{})));for(let h of d.children)f.push(...l(h));return f};return On(l(c.targetSnapshot.root)).pipe(tt(null),ze(1))}),Au(()=>this.afterPreactivation()),he(()=>{let{currentSnapshot:c,targetSnapshot:l}=s,d=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return d?B(d).pipe(N(()=>s)):w(s)}),N(c=>{let l=xC(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=s=U(m({},c),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),Q(()=>{this.events.next(new Dr)}),FC(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),ze(1),Q({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ve(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),Zi(this.transitionAbortSubject.pipe(Q(c=>{throw c}))),Pn(()=>{!a&&!u&&this.cancelNavigationTransition(s,"",de.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),et(c=>{if(u=!0,Jh(c))this.events.next(new pt(s.id,this.urlSerializer.serialize(s.extractedUrl),c.message,c.cancellationCode)),NC(c)?this.events.next(new wr(c.url)):s.resolve(!1);else{this.events.next(new yr(s.id,this.urlSerializer.serialize(s.extractedUrl),c,s.targetSnapshot??void 0));try{s.resolve(n.errorHandler(c))}catch(l){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(l)}}return se}))}))}cancelNavigationTransition(n,o,i){let s=new pt(n.id,this.urlSerializer.serialize(n.extractedUrl),o,i);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function _I(t){return t!==pr}var AI=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:()=>p(NI),providedIn:"root"});let t=e;return t})(),nc=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},NI=(()=>{let e=class e extends nc{};e.\u0275fac=(()=>{let n;return function(i){return(n||(n=_a(e)))(i||e)}})(),e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ap=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:()=>p(RI),providedIn:"root"});let t=e;return t})(),RI=(()=>{let e=class e extends ap{constructor(){super(...arguments),this.location=p(Dn),this.urlSerializer=p(Sr),this.options=p(Ar,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=p(uc),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new ht,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Gh(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(o=>{o.type==="popstate"&&n(o.url,o.state)})}handleRouterEvent(n,o){if(n instanceof Sn)this.stateMemento=this.createStateMemento();else if(n instanceof gt)this.rawUrlTree=o.initialUrl;else if(n instanceof vi){if(this.urlUpdateStrategy==="eager"&&!o.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(o.finalUrl,o.initialUrl);this.setBrowserUrl(i,o)}}else n instanceof Dr?(this.currentUrlTree=o.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(o.finalUrl,o.initialUrl),this.routerState=o.targetRouterState,this.urlUpdateStrategy==="deferred"&&(o.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,o))):n instanceof pt&&(n.code===de.GuardRejected||n.code===de.NoDataFromResolver)?this.restoreHistory(o):n instanceof yr?this.restoreHistory(o,!0):n instanceof Ve&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,o){let i=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(i)||o.extras.replaceUrl){let s=this.browserPageId,a=m(m({},o.extras.state),this.generateNgRouterState(o.id,s));this.location.replaceState(i,"",a)}else{let s=m(m({},o.extras.state),this.generateNgRouterState(o.id,this.browserPageId+1));this.location.go(i,"",s)}}restoreHistory(n,o=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,s=this.currentPageId-i;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(o&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,o){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:o}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(i){return(n||(n=_a(e)))(i||e)}})(),e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),fr=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(fr||{});function up(t,e){t.events.pipe(fe(r=>r instanceof Ve||r instanceof pt||r instanceof yr||r instanceof gt),N(r=>r instanceof Ve||r instanceof gt?fr.COMPLETE:(r instanceof pt?r.code===de.Redirect||r.code===de.SupersededByNewNavigation:!1)?fr.REDIRECTING:fr.FAILED),fe(r=>r!==fr.REDIRECTING),ze(1)).subscribe(()=>{e()})}function OI(t){throw t}var PI={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},FI={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Je=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=p(ti),this.stateManager=p(ap),this.options=p(Ar,{optional:!0})||{},this.pendingTasks=p(ei),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=p(cc),this.urlSerializer=p(Sr),this.location=p(Dn),this.urlHandlingStrategy=p(uc),this._events=new G,this.errorHandler=this.options.errorHandler||OI,this.navigated=!1,this.routeReuseStrategy=p(AI),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=p(br,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!p(Mi,{optional:!0}),this.eventsSubscription=new $,this.isNgZoneEnabled=p(j)instanceof j&&j.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(o=>{try{let i=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(i!==null&&s!==null){if(this.stateManager.handleRouterEvent(o,s),o instanceof pt&&o.code!==de.Redirect&&o.code!==de.SupersededByNewNavigation)this.navigated=!0;else if(o instanceof Ve)this.navigated=!0;else if(o instanceof wr){let a=this.urlHandlingStrategy.merge(o.url,i.currentRawUrl),u={info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||_I(i.source)};this.scheduleNavigation(a,pr,null,u,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}LI(o)&&this._events.next(o)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),pr,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,o)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",o)},0)})}navigateToSyncWithBrowser(n,o,i){let s={replaceUrl:!0},a=i?.navigationId?i:null;if(i){let c=m({},i);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(s.state=c)}let u=this.parseUrl(n);this.scheduleNavigation(u,o,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(ic),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,o={}){let{relativeTo:i,queryParams:s,fragment:a,queryParamsHandling:u,preserveFragment:c}=o,l=c?this.currentUrlTree.fragment:a,d=null;switch(u){case"merge":d=m(m({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let h=i?i.snapshot:this.routerState.snapshot.root;f=Uh(h)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),f=this.currentUrlTree.root}return Hh(f,n,d,l??null)}navigateByUrl(n,o={skipLocationChange:!1}){let i=Mn(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(s,pr,null,o)}navigate(n,o={skipLocationChange:!1}){return kI(n),this.navigateByUrl(this.createUrlTree(n,o),o)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,o){let i;if(o===!0?i=m({},PI):o===!1?i=m({},FI):i=o,Mn(n))return bh(this.currentUrlTree,n,i);let s=this.parseUrl(n);return bh(this.currentUrlTree,s,i)}removeEmptyProps(n){return Object.entries(n).reduce((o,[i,s])=>(s!=null&&(o[i]=s),o),{})}scheduleNavigation(n,o,i,s,a){if(this.disposed)return Promise.resolve(!1);let u,c,l;a?(u=a.resolve,c=a.reject,l=a.promise):l=new Promise((f,h)=>{u=f,c=h});let d=this.pendingTasks.add();return up(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:o,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:u,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(f=>Promise.reject(f))}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function kI(t){for(let e=0;e{let e=class e{constructor(n,o,i,s,a,u){this.router=n,this.route=o,this.tabIndexAttribute=i,this.renderer=s,this.el=a,this.locationStrategy=u,this.href=null,this.commands=null,this.onChanges=new G,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=n.events.subscribe(l=>{l instanceof Ve&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n!=null?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,o,i,s,a){let u=this.urlTree;if(u===null||this.isAnchorElement&&(n!==0||o||i||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(u,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let o=this.href===null?null:af(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",o)}applyAttributeValue(n,o){let i=this.renderer,s=this.el.nativeElement;o!==null?i.setAttribute(s,n,o):i.removeAttribute(s,n)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(o){return new(o||e)(q(Je),q(mt),Aa("tabindex"),q(vn),q(ke),q(Le))},e.\u0275dir=at({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(o,i){o&1&&ou("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),o&2&&nu("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[me.HasDecoratorInputTransform,"preserveFragment","preserveFragment",sr],skipLocationChange:[me.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",sr],replaceUrl:[me.HasDecoratorInputTransform,"replaceUrl","replaceUrl",sr],routerLink:"routerLink"},standalone:!0,features:[eu,Xn]});let t=e;return t})();var bi=class{};var jI=(()=>{let e=class e{constructor(n,o,i,s,a){this.router=n,this.injector=i,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(fe(n=>n instanceof Ve),It(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,o){let i=[];for(let s of o){s.providers&&!s._injector&&(s._injector=Xo(s.providers,n,`Route: ${s.path}`));let a=s._injector??n,u=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&i.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&i.push(this.processRoutes(u,s.children??s._loadedRoutes))}return B(i).pipe(Zt())}preloadConfig(n,o){return this.preloadingStrategy.preload(o,()=>{let i;o.loadChildren&&o.canLoad===void 0?i=this.loader.loadChildren(n,o):i=w(null);let s=i.pipe(z(a=>a===null?w(void 0):(o._loadedRoutes=a.routes,o._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));if(o.loadComponent&&!o._loadedComponent){let a=this.loader.loadComponent(o);return B([s,a]).pipe(Zt())}else return s})}};e.\u0275fac=function(o){return new(o||e)(I(Je),I(oi),I(ce),I(bi),I(ac))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),cp=new x(""),VI=(()=>{let e=class e{constructor(n,o,i,s,a={}){this.urlSerializer=n,this.transitions=o,this.viewportScroller=i,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Sn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Ve?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof gt&&n.code===mi.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof yi&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,o){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new yi(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,o))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(o){yf()},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})();function tA(t,...e){return Lo([{provide:br,multi:!0,useValue:t},[],{provide:mt,useFactory:lp,deps:[Je]},{provide:ri,multi:!0,useFactory:dp},e.map(r=>r.\u0275providers)])}function lp(t){return t.routerState.root}function _n(t,e){return{\u0275kind:t,\u0275providers:e}}function dp(){let t=p(ct);return e=>{let r=t.get(or);if(e!==r.components[0])return;let n=t.get(Je),o=t.get(fp);t.get(lc)===1&&n.initialNavigation(),t.get(hp,null,T.Optional)?.setUpPreloading(),t.get(cp,null,T.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var fp=new x("",{factory:()=>new G}),lc=new x("",{providedIn:"root",factory:()=>1});function $I(){return _n(2,[{provide:lc,useValue:0},{provide:ni,multi:!0,deps:[ct],useFactory:e=>{let r=e.get(fh,Promise.resolve());return()=>r.then(()=>new Promise(n=>{let o=e.get(Je),i=e.get(fp);up(o,()=>{n(!0)}),e.get(cc).afterPreactivation=()=>(n(!0),i.closed?w(void 0):i),o.initialNavigation()}))}}])}function BI(){return _n(3,[{provide:ni,multi:!0,useFactory:()=>{let e=p(Je);return()=>{e.setUpLocationChangeListener()}}},{provide:lc,useValue:2}])}var hp=new x("");function UI(t){return _n(0,[{provide:hp,useExisting:jI},{provide:bi,useExisting:t}])}function nA(){return _n(6,[{provide:Le,useClass:vu}])}function HI(){return _n(8,[xh,{provide:Mi,useExisting:xh}])}function zI(t){let e=[{provide:ip,useValue:TI},{provide:sp,useValue:m({skipNextTransition:!!t?.skipInitialTransition},t)}];return _n(9,e)}var Ah=new x("ROUTER_FORROOT_GUARD"),qI=[Dn,{provide:Sr,useClass:mr},Je,Tr,{provide:mt,useFactory:lp,deps:[Je]},ac,[]],rA=(()=>{let e=class e{constructor(n){}static forRoot(n,o){return{ngModule:e,providers:[qI,[],{provide:br,multi:!0,useValue:n},{provide:Ah,useFactory:YI,deps:[[Je,new Yn,new ko]]},{provide:Ar,useValue:o||{}},o?.useHash?WI():ZI(),GI(),o?.preloadingStrategy?UI(o.preloadingStrategy).\u0275providers:[],o?.initialNavigation?QI(o):[],o?.bindToComponentInputs?HI().\u0275providers:[],o?.enableViewTransitions?zI().\u0275providers:[],KI()]}}static forChild(n){return{ngModule:e,providers:[{provide:br,multi:!0,useValue:n}]}}};e.\u0275fac=function(o){return new(o||e)(I(Ah,8))},e.\u0275mod=Kn({type:e}),e.\u0275inj=Wn({});let t=e;return t})();function GI(){return{provide:cp,useFactory:()=>{let t=p(gh),e=p(j),r=p(Ar),n=p(cc),o=p(Sr);return r.scrollOffset&&t.setOffset(r.scrollOffset),new VI(o,n,t,e,r)}}}function WI(){return{provide:Le,useClass:vu}}function ZI(){return{provide:Le,useClass:mu}}function YI(t){return"guarded"}function QI(t){return[t.initialNavigation==="disabled"?BI().\u0275providers:[],t.initialNavigation==="enabledBlocking"?$I().\u0275providers:[]]}var Nh=new x("");function KI(){return[{provide:Nh,useFactory:dp},{provide:ri,multi:!0,useExisting:Nh}]}export{$ as a,O as b,G as c,Y as d,Bi as e,$r as f,he as g,Bp as h,y as i,Wn as j,x as k,I as l,Xl as m,Kn as n,at as o,Xn as p,wx as q,Cx as r,ke as s,ge as t,Ix as u,uv as v,Ex as w,bx as x,q as y,Hn as z,vn as A,j as B,ft as C,mD as D,_D as E,xx as F,Gf as G,Wf as H,ru as I,HD as J,zD as K,_x as L,ou as M,Ax as N,Nx as O,QD as P,KD as Q,Rx as R,Ox as S,XD as T,Zf as U,Px as V,Qf as W,Fx as X,kx as Y,Lx as Z,ir as _,u_ as $,c_ as aa,l_ as ba,d_ as ca,_w as da,F_ as ea,TC as fa,eA as ga,tA as ha,nA as ia,zI as ja,rA as ka}; diff --git a/chunk-XHHVRPNP.js b/chunk-XHHVRPNP.js new file mode 100644 index 0000000..4239bd0 --- /dev/null +++ b/chunk-XHHVRPNP.js @@ -0,0 +1,40 @@ +import{c as ui}from"./chunk-F6SUT7E5.js";var Lm=function(r,e){return Lm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a])},Lm(r,e)};function E(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Lm(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Dg={};ui(Dg,{dispose:()=>qU,disposeAll:()=>KU,getElementSSRData:()=>Cg,getInstance:()=>jU,init:()=>Nc,registerPainter:()=>Tg,registerSSRDataGetter:()=>Ag,version:()=>JU});var wV=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),TV=function(){function r(){this.browser=new wV,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 r}(),ho=new TV;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(ho.wxa=!0,ho.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?ho.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(ho.node=!0,ho.svgSupported=!0):CV(navigator.userAgent,ho);function CV(r,e){var t=e.browser,i=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),n=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);i&&(t.firefox=!0,t.version=i[1]),a&&(t.ie=!0,t.version=a[1]),n&&(t.edge=!0,t.version=n[1],t.newEdge=+n[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var bt=ho;var G={};ui(G,{HashMap:()=>aw,RADIAN_TO_DEGREE:()=>go,assert:()=>Qt,bind:()=>H,clone:()=>Q,concatArray:()=>vn,createCanvas:()=>NV,createHashMap:()=>Y,createObject:()=>Na,curry:()=>et,defaults:()=>q,disableUserSelect:()=>Mu,each:()=>w,eqNaN:()=>Oa,extend:()=>N,filter:()=>wt,find:()=>Nm,guid:()=>Cu,hasOwn:()=>$,indexOf:()=>it,inherits:()=>Au,isArray:()=>z,isArrayLike:()=>ue,isBuiltInObject:()=>Pm,isDom:()=>Pa,isFunction:()=>X,isGradientObject:()=>Ra,isImagePatternObject:()=>zm,isNumber:()=>vt,isObject:()=>K,isPrimitive:()=>Ns,isRegExp:()=>km,isString:()=>B,isStringSafe:()=>ks,isTypedArray:()=>me,keys:()=>ft,logError:()=>cn,map:()=>k,merge:()=>ot,mergeAll:()=>vo,mixin:()=>Wt,noop:()=>qt,normalizeCssArray:()=>mo,reduce:()=>Me,retrieve:()=>Jt,retrieve2:()=>nt,retrieve3:()=>Le,setAsPrimitive:()=>hn,slice:()=>Du,trim:()=>Ie});var Qp=12,Im="sans-serif",Xr=Qp+"px "+Im,AV=20,DV=100,MV="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function LV(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;lec,applyTransform:()=>fe,clone:()=>fr,copy:()=>Ee,create:()=>ki,dist:()=>Kr,distSquare:()=>na,distance:()=>Lu,distanceSquare:()=>nw,div:()=>GV,dot:()=>HV,len:()=>Us,lenSquare:()=>Bm,length:()=>UV,lengthSquare:()=>BV,lerp:()=>xo,max:()=>Ar,min:()=>Cr,mul:()=>FV,negate:()=>WV,normalize:()=>qr,scale:()=>yo,scaleAndAdd:()=>Vs,set:()=>Um,sub:()=>fi});function ki(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function Ee(r,e){return r[0]=e[0],r[1]=e[1],r}function fr(r){return[r[0],r[1]]}function Um(r,e,t){return r[0]=e,r[1]=t,r}function ec(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function Vs(r,e,t,i){return r[0]=e[0]+t[0]*i,r[1]=e[1]+t[1]*i,r}function fi(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function Us(r){return Math.sqrt(Bm(r))}var UV=Us;function Bm(r){return r[0]*r[0]+r[1]*r[1]}var BV=Bm;function FV(r,e,t){return r[0]=e[0]*t[0],r[1]=e[1]*t[1],r}function GV(r,e,t){return r[0]=e[0]/t[0],r[1]=e[1]/t[1],r}function HV(r,e){return r[0]*e[0]+r[1]*e[1]}function yo(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function qr(r,e){var t=Us(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function Lu(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var Kr=Lu;function nw(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var na=nw;function WV(r,e){return r[0]=-e[0],r[1]=-e[1],r}function xo(r,e,t,i){return r[0]=e[0]+i*(t[0]-e[0]),r[1]=e[1]+i*(t[1]-e[1]),r}function fe(r,e,t){var i=e[0],a=e[1];return r[0]=t[0]*i+t[2]*a+t[4],r[1]=t[1]*i+t[3]*a+t[5],r}function Cr(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function Ar(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var Bs=function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r}(),YV=function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Bs(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var i=e.offsetX,a=e.offsetY,n=i-this._x,o=a-this._y;this._x=i,this._y=a,t.drift(n,o,e),this.handler.dispatchToElement(new Bs(t,e),"drag",e.event);var s=this.handler.findHover(i,a,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Bs(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Bs(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Bs(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Bs(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r}(),ow=YV;var ZV=function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,i,a){this._$handlers||(this._$handlers={});var n=this._$handlers;if(typeof t=="function"&&(a=i,i=t,t=null),!i||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),n[e]||(n[e]=[]);for(var s=0;s>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;"),r.appendChild(o),t.push(o)}return t}function KV(r,e,t){for(var i=t?"invTrans":"trans",a=e[i],n=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),p=2*u,c=f.left,h=f.top;o.push(c,h),l=l&&n&&c===n[p]&&h===n[p+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[i]=t?Gm(s,o):Gm(o,s))}function Wm(r){return r.nodeName.toUpperCase()==="CANVAS"}var jV=/([&<>"'])/g,JV={"&":"&","<":"<",">":">",'"':""","'":"'"};function ke(r){return r==null?"":(r+"").replace(jV,function(e,t){return JV[t]})}var QV=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ym=[],$V=bt.browser.firefox&&+bt.browser.version.split(".")[0]<39;function ic(r,e,t,i){return t=t||{},i?uw(r,e,t):$V&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):uw(r,e,t),t}function uw(r,e,t){if(bt.domSupported&&r.getBoundingClientRect){var i=e.clientX,a=e.clientY;if(Wm(r)){var n=r.getBoundingClientRect();t.zrX=i-n.left,t.zrY=a-n.top;return}else if(rc(Ym,r,i,a)){t.zrX=Ym[0],t.zrY=Ym[1];return}}t.zrX=t.zrY=0}function ac(r){return r||window.event}function Dr(r,e,t){if(e=ac(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&&ic(r,o,e,t)}else{ic(r,e,e,t);var n=tU(e);e.zrDelta=n?n/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&QV.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function tU(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,i=r.deltaY;if(t==null||i==null)return e;var a=Math.abs(i!==0?i:t),n=i>0?-1:i<0?1:t>0?-1:1;return 3*a*n}function Iu(r,e,t,i){r.addEventListener(e,t,i)}function fw(r,e,t,i){r.removeEventListener(e,t,i)}var Mr=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function Zm(r){return r.which===2||r.which===3}var cw=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,i){return this._doTrack(e,t,i),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,i){var a=e.touches;if(a){for(var n={points:[],touches:[],target:t,event:e},o=0,s=a.length;o1&&i&&i.length>1){var n=pw(i)/pw(a);!isFinite(n)&&(n=1),e.pinchScale=n;var o=eU(i);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};var hr={};ui(hr,{clone:()=>qm,copy:()=>Gs,create:()=>ge,identity:()=>za,invert:()=>jr,mul:()=>pr,rotate:()=>cr,scale:()=>_o,translate:()=>We});function ge(){return[1,0,0,1,0,0]}function za(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Gs(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function pr(r,e,t){var i=e[0]*t[0]+e[2]*t[1],a=e[1]*t[0]+e[3]*t[1],n=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=i,r[1]=a,r[2]=n,r[3]=o,r[4]=s,r[5]=l,r}function We(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function cr(r,e,t,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(t),p=Math.cos(t);return r[0]=a*p+s*f,r[1]=-a*f+s*p,r[2]=n*p+l*f,r[3]=-n*f+p*l,r[4]=p*(o-i[0])+f*(u-i[1])+i[0],r[5]=p*(u-i[1])-f*(o-i[0])+i[1],r}function _o(r,e,t){var i=t[0],a=t[1];return r[0]=e[0]*i,r[1]=e[1]*a,r[2]=e[2]*i,r[3]=e[3]*a,r[4]=e[4]*i,r[5]=e[5]*a,r}function jr(r,e){var t=e[0],i=e[2],a=e[4],n=e[1],o=e[3],s=e[5],l=t*o-n*i;return l?(l=1/l,r[0]=o*l,r[1]=-n*l,r[2]=-i*l,r[3]=t*l,r[4]=(i*s-o*a)*l,r[5]=(n*a-t*s)*l,r):null}function qm(r){var e=ge();return Gs(e,r),e}var rU=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,i=this.y-e.y;return Math.sqrt(t*t+i*i)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,i=this.y-e.y;return t*t+i*i},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,i=this.y;return this.x=e[0]*t+e[2]*i+e[4],this.y=e[1]*t+e[3]*i+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,i){e.x=t,e.y=i},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,i){e.x=t.x+i.x,e.y=t.y+i.y},r.sub=function(e,t,i){e.x=t.x-i.x,e.y=t.y-i.y},r.scale=function(e,t,i){e.x=t.x*i,e.y=t.y*i},r.scaleAndAdd=function(e,t,i,a){e.x=t.x+i.x*a,e.y=t.y+i.y*a},r.lerp=function(e,t,i,a){var n=1-a;e.x=n*t.x+a*i.x,e.y=n*t.y+a*i.y},r}(),St=rU;var nc=Math.min,oc=Math.max,So=new St,bo=new St,wo=new St,To=new St,Eu=new St,Pu=new St,iU=function(){function r(e,t,i,a){i<0&&(e=e+i,i=-i),a<0&&(t=t+a,a=-a),this.x=e,this.y=t,this.width=i,this.height=a}return r.prototype.union=function(e){var t=nc(e.x,this.x),i=nc(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=oc(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=oc(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=t,this.y=i},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,i=e.width/t.width,a=e.height/t.height,n=ge();return We(n,n,[-t.x,-t.y]),_o(n,n,[i,a]),We(n,n,[e.x,e.y]),n},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var i=this,a=i.x,n=i.x+i.width,o=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,f=e.y,p=e.y+e.height,c=!(nv&&(v=x,dv&&(v=_,g=i.x&&e<=i.x+i.width&&t>=i.y&&t<=i.y+i.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,i){if(!i){e!==t&&r.copy(e,t);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=t.x*a+o,e.y=t.y*n+s,e.width=t.width*a,e.height=t.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}So.x=wo.x=t.x,So.y=To.y=t.y,bo.x=To.x=t.x+t.width,bo.y=wo.y=t.y+t.height,So.transform(i),To.transform(i),bo.transform(i),wo.transform(i),e.x=nc(So.x,bo.x,wo.x,To.x),e.y=nc(So.y,bo.y,wo.y,To.y);var l=oc(So.x,bo.x,wo.x,To.x),u=oc(So.y,bo.y,wo.y,To.y);e.width=l-e.x,e.height=u-e.y},r}(),rt=iU;var vw="silent";function aU(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:nU}}function nU(){Mr(this.event)}var oU=function(r){Dt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Ce),Ru=function(){function r(e,t){this.x=e,this.y=t}return r}(),sU=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Km=new rt(0,0,0,0),dw=function(r){Dt(e,r);function e(t,i,a,n,o){var s=r.call(this)||this;return s._hovered=new Ru(0,0),s.storage=t,s.painter=i,s.painterRoot=n,s._pointerSize=o,a=a||new oU,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new ow(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(w(sU,function(i){t.on&&t.on(i,this[i],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var i=t.zrX,a=t.zrY,n=mw(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 Ru(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",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var i=t.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Ru(0,0)},e.prototype.dispatch=function(t,i){var a=this[t];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(t){var i=this.proxy;i.setCursor&&i.setCursor(t)},e.prototype.dispatchToElement=function(t,i,a){t=t||{};var n=t.target;if(!(n&&n.silent)){for(var o="on"+i,s=aU(i,t,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(t,i,a){var n=this.storage.getDisplayList(),o=new Ru(t,i);if(hw(n,o,t,i,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new rt(t-u,i-u,l,l),p=n.length-1;p>=0;p--){var c=n[p];c!==a&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(Km.copy(c.getBoundingRect()),c.transform&&Km.applyTransform(c.transform),Km.intersect(f)&&s.push(c))}if(s.length)for(var h=4,v=Math.PI/12,d=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(n,r,e)}});function lU(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var i=r,a=void 0,n=!1;i;){if(i.ignoreClip&&(n=!0),!n){var o=i.getClipPath();if(o&&!o.contain(e,t))return!1}i.silent&&(a=!0);var s=i.__hostTarget;i=s||i.parent}return a?vw:!0}return!1}function hw(r,e,t,i,a){for(var n=r.length-1;n>=0;n--){var o=r[n],s=void 0;if(o!==a&&!o.ignore&&(s=lU(o,t,i))&&(!e.topTarget&&(e.topTarget=o),s!==vw)){e.target=o;break}}}function mw(r,e,t){var i=r.painter;return e<0||e>i.getWidth()||t<0||t>i.getHeight()}var gw=dw;var _w=32,Ou=7;function uU(r){for(var e=0;r>=_w;)e|=r&1,r>>=1;return r+e}function yw(r,e,t,i){var a=e+1;if(a===t)return 1;if(i(r[a++],r[e])<0){for(;a=0;)a++;return a-e}function fU(r,e,t){for(t--;e>>1,a(n,r[l])<0?s=l:o=l+1;var u=i-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=n}}function jm(r,e,t,i,a,n){var o=0,s=0,l=1;if(n(r,e[t+a])>0){for(s=i-a;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o>>1);n(r,e[t+f])>0?o=f+1:l=f}return l}function Jm(r,e,t,i,a,n){var o=0,s=0,l=1;if(n(r,e[t+a])<0){for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=i-a;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o>>1);n(r,e[t+f])<0?l=f:o=f+1}return l}function pU(r,e){var t=Ou,i,a,n=0,o=[];i=[],a=[];function s(h,v){i[n]=h,a[n]=v,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])break;f(h)}}function u(){for(;n>1;){var h=n-2;h>0&&a[h-1]=Ou||T>=Ou);if(C)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),v===1){for(g=0;g=0;g--)r[S+g]=r[b+g];r[_]=o[x];return}for(var T=t;;){var C=0,A=0,D=!1;do if(e(o[x],r[y])<0){if(r[_--]=r[y--],C++,A=0,--v===0){D=!0;break}}else if(r[_--]=o[x--],A++,C=0,--m===1){D=!0;break}while((C|A)=0;g--)r[S+g]=r[b+g];if(v===0){D=!0;break}}if(r[_--]=o[x--],--m===1){D=!0;break}if(A=m-jm(r[y],o,0,m,m-1,e),A!==0){for(_-=A,x-=A,m-=A,S=_+1,b=x+1,g=0;g=Ou||A>=Ou);if(D)break;T<0&&(T=0),T+=2}if(t=T,t<1&&(t=1),m===1){for(_-=v,y-=v,S=_+1,b=y+1,g=v-1;g>=0;g--)r[S+g]=r[b+g];r[_]=o[x]}else{if(m===0)throw new Error;for(b=_-(m-1),g=0;gs&&(l=s),xw(r,t,t+l,t+n,e),n=l}o.pushRun(t,n),o.mergeRuns(),a-=n,t+=n}while(a!==0);o.forceMergeRuns()}}var Pe=1,Ao=2,dn=4;var Sw=!1;function Qm(){Sw||(Sw=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function bw(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var cU=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=bw}return r.prototype.traverse=function(e,t){for(var i=0;i0&&(f.__clipPaths=[]),isNaN(f.z)&&(Qm(),f.z=0),isNaN(f.z2)&&(Qm(),f.z2=0),isNaN(f.zlevel)&&(Qm(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var p=e.getDecalElement&&e.getDecalElement();p&&this._updateAndAddDisplayable(p,t,i);var c=e.getTextGuideLine();c&&this._updateAndAddDisplayable(c,t,i);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,t,i)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,i=e.length;t=0&&this._roots.splice(a,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),ww=cU;var Tw;Tw=bt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Nu=Tw;var sc={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)))},elasticOut:function(r){var e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/i)+1)},elasticInOut:function(r){var e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-sc.bounceOut(1-r)},bounceOut:function(r){return r<.36363636363636365?7.5625*r*r:r<.7272727272727273?7.5625*(r-=.5454545454545454)*r+.75:r<.9090909090909091?7.5625*(r-=.8181818181818182)*r+.9375:7.5625*(r-=.9545454545454546)*r+.984375},bounceInOut:function(r){return r<.5?sc.bounceIn(r*2)*.5:sc.bounceOut(r*2-1)*.5+.5}},lc=sc;var uc=Math.pow,gn=Math.sqrt,pc=1e-8,Aw=1e-4,Cw=gn(3),fc=1/3,oa=ki(),pi=ki(),Hs=ki();function mn(r){return r>-pc&&rpc||r<-pc}function he(r,e,t,i,a){var n=1-a;return n*n*(n*r+3*a*e)+a*a*(a*i+3*n*t)}function $m(r,e,t,i,a){var n=1-a;return 3*(((e-r)*n+2*(t-e)*a)*n+(i-t)*a*a)}function Do(r,e,t,i,a,n){var o=i+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-a,f=s*s-3*o*l,p=s*l-9*o*u,c=l*l-3*s*u,h=0;if(mn(f)&&mn(p))if(mn(s))n[0]=0;else{var v=-l/s;v>=0&&v<=1&&(n[h++]=v)}else{var d=p*p-4*f*c;if(mn(d)){var m=p/f,v=-s/o+m,g=-m/2;v>=0&&v<=1&&(n[h++]=v),g>=0&&g<=1&&(n[h++]=g)}else if(d>0){var y=gn(d),x=f*s+1.5*o*(-p+y),_=f*s+1.5*o*(-p-y);x<0?x=-uc(-x,fc):x=uc(x,fc),_<0?_=-uc(-_,fc):_=uc(_,fc);var v=(-s-(x+_))/(3*o);v>=0&&v<=1&&(n[h++]=v)}else{var b=(2*f*s-3*o*p)/(2*gn(f*f*f)),S=Math.acos(b)/3,T=gn(f),C=Math.cos(S),v=(-s-2*T*C)/(3*o),g=(-s+T*(C+Cw*Math.sin(S)))/(3*o),A=(-s+T*(C-Cw*Math.sin(S)))/(3*o);v>=0&&v<=1&&(n[h++]=v),g>=0&&g<=1&&(n[h++]=g),A>=0&&A<=1&&(n[h++]=A)}}return h}function cc(r,e,t,i,a){var n=6*t-12*e+6*r,o=9*e+3*i-3*r-9*t,s=3*e-3*r,l=0;if(mn(o)){if(Dw(n)){var u=-s/n;u>=0&&u<=1&&(a[l++]=u)}}else{var f=n*n-4*o*s;if(mn(f))a[0]=-n/(2*o);else if(f>0){var p=gn(f),u=(-n+p)/(2*o),c=(-n-p)/(2*o);u>=0&&u<=1&&(a[l++]=u),c>=0&&c<=1&&(a[l++]=c)}}return l}function ci(r,e,t,i,a,n){var o=(e-r)*a+r,s=(t-e)*a+e,l=(i-t)*a+t,u=(s-o)*a+o,f=(l-s)*a+s,p=(f-u)*a+u;n[0]=r,n[1]=o,n[2]=u,n[3]=p,n[4]=p,n[5]=f,n[6]=l,n[7]=i}function hc(r,e,t,i,a,n,o,s,l,u,f){var p,c=.005,h=1/0,v,d,m,g;oa[0]=l,oa[1]=u;for(var y=0;y<1;y+=.05)pi[0]=he(r,t,a,o,y),pi[1]=he(e,i,n,s,y),m=na(oa,pi),m=0&&m=0&&u<=1&&(a[l++]=u)}}else{var f=o*o-4*n*s;if(mn(f)){var u=-o/(2*n);u>=0&&u<=1&&(a[l++]=u)}else if(f>0){var p=gn(f),u=(-o+p)/(2*n),c=(-o-p)/(2*n);u>=0&&u<=1&&(a[l++]=u),c>=0&&c<=1&&(a[l++]=c)}}return l}function vc(r,e,t){var i=r+t-2*e;return i===0?.5:(r-e)/i}function yn(r,e,t,i,a){var n=(e-r)*i+r,o=(t-e)*i+e,s=(o-n)*i+n;a[0]=r,a[1]=n,a[2]=s,a[3]=s,a[4]=o,a[5]=t}function dc(r,e,t,i,a,n,o,s,l){var u,f=.005,p=1/0;oa[0]=o,oa[1]=s;for(var c=0;c<1;c+=.05){pi[0]=ye(r,t,a,c),pi[1]=ye(e,i,n,c);var h=na(oa,pi);h=0&&h=1?1:Do(0,i,n,1,l,s)&&he(0,a,o,1,s[0])}}}var vU=function(){function r(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||qt,this.ondestroy=e.ondestroy||qt,this.onrestart=e.onrestart||qt,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;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},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=X(e)?e:lc[e]||Ws(e)},r}(),Ew=vU;var Bu={};ui(Bu,{fastLerp:()=>Zs,fastMapToColor:()=>_U,lerp:()=>gc,lift:()=>Uu,liftColor:()=>Xs,lum:()=>Lo,mapToColor:()=>SU,modifyAlpha:()=>Sn,modifyHSL:()=>_n,parse:()=>Re,random:()=>bU,stringify:()=>Lr,toHex:()=>xU});var Pw=function(){function r(e){this.value=e}return r}();var dU=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new Pw(e);return this.insertEntry(t),t},r.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++},r.prototype.remove=function(e){var t=e.prev,i=e.next;t?t.next=i:this.head=i,i?i.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}();var mU=function(){function r(e){this._list=new dU,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){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=t:s=new Pw(t),s.key=e,i.insertEntry(s),a[e]=s}return n},r.prototype.get=function(e){var t=this._map[e],i=this._list;if(t!=null)return t!==i.tail&&(i.remove(t),i.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),ka=mU;var Rw={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 Vi(r){return r=Math.round(r),r<0?0:r>255?255:r}function gU(r){return r=Math.round(r),r<0?0:r>360?360:r}function Vu(r){return r<0?0:r>1?1:r}function tg(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Vi(parseFloat(e)/100*255):Vi(parseInt(e,10))}function Mo(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Vu(parseFloat(e)/100):Vu(parseFloat(e))}function eg(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function xn(r,e,t){return r+(e-r)*t}function hi(r,e,t,i,a){return r[0]=e,r[1]=t,r[2]=i,r[3]=a,r}function rg(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var Nw=new ka(20),mc=null;function Ys(r,e){mc&&rg(mc,e),mc=Nw.put(r,mc||e.slice())}function Re(r,e){if(r){e=e||[];var t=Nw.get(r);if(t)return rg(e,t);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in Rw)return rg(e,Rw[i]),Ys(r,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)){hi(e,0,0,0,1);return}return hi(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),Ys(r,e),e}else if(a===7||a===9){var n=parseInt(i.slice(1,7),16);if(!(n>=0&&n<=16777215)){hi(e,0,0,0,1);return}return hi(e,(n&16711680)>>16,(n&65280)>>8,n&255,a===9?parseInt(i.slice(7),16)/255:1),Ys(r,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?hi(e,+u[0],+u[1],+u[2],1):hi(e,0,0,0,1);f=Mo(u.pop());case"rgb":if(u.length>=3)return hi(e,tg(u[0]),tg(u[1]),tg(u[2]),u.length===3?f:Mo(u[3])),Ys(r,e),e;hi(e,0,0,0,1);return;case"hsla":if(u.length!==4){hi(e,0,0,0,1);return}return u[3]=Mo(u[3]),ig(u,e),Ys(r,e),e;case"hsl":if(u.length!==3){hi(e,0,0,0,1);return}return ig(u,e),Ys(r,e),e;default:return}}hi(e,0,0,0,1)}}function ig(r,e){var t=(parseFloat(r[0])%360+360)%360/360,i=Mo(r[1]),a=Mo(r[2]),n=a<=.5?a*(i+1):a+i-a*i,o=a*2-n;return e=e||[],hi(e,Vi(eg(o,n,t+1/3)*255),Vi(eg(o,n,t)*255),Vi(eg(o,n,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function yU(r){if(r){var e=r[0]/255,t=r[1]/255,i=r[2]/255,a=Math.min(e,t,i),n=Math.max(e,t,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,p=((n-t)/6+o/2)/o,c=((n-i)/6+o/2)/o;e===n?l=c-p:t===n?l=1/3+f-c:i===n&&(l=2/3+p-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return r[3]!=null&&h.push(r[3]),h}}function Uu(r,e){var t=Re(r);if(t){for(var i=0;i<3;i++)e<0?t[i]=t[i]*(1-e)|0:t[i]=(255-t[i])*e+t[i]|0,t[i]>255?t[i]=255:t[i]<0&&(t[i]=0);return Lr(t,t.length===4?"rgba":"rgb")}}function xU(r){var e=Re(r);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Zs(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var i=r*(e.length-1),a=Math.floor(i),n=Math.ceil(i),o=e[a],s=e[n],l=i-a;return t[0]=Vi(xn(o[0],s[0],l)),t[1]=Vi(xn(o[1],s[1],l)),t[2]=Vi(xn(o[2],s[2],l)),t[3]=Vu(xn(o[3],s[3],l)),t}}var _U=Zs;function gc(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var i=r*(e.length-1),a=Math.floor(i),n=Math.ceil(i),o=Re(e[a]),s=Re(e[n]),l=i-a,u=Lr([Vi(xn(o[0],s[0],l)),Vi(xn(o[1],s[1],l)),Vi(xn(o[2],s[2],l)),Vu(xn(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:a,rightIndex:n,value:i}:u}}var SU=gc;function _n(r,e,t,i){var a=Re(r);if(r)return a=yU(a),e!=null&&(a[0]=gU(e)),t!=null&&(a[1]=Mo(t)),i!=null&&(a[2]=Mo(i)),Lr(ig(a),"rgba")}function Sn(r,e){var t=Re(r);if(t&&e!=null)return t[3]=Vu(e),Lr(t,"rgba")}function Lr(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function Lo(r,e){var t=Re(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function bU(){return Lr([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var Ow=new ka(100);function Xs(r){if(B(r)){var e=Ow.get(r);return e||(e=Uu(r,-.1),Ow.put(r,e)),e}else if(Ra(r)){var t=N({},r);return t.colorStops=k(r.colorStops,function(i){return{offset:i.offset,color:Uu(i.color,-.1)}}),t}return r}var xc=Math.round;function bn(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=Re(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var zw=1e-4;function sa(r){return r-zw}function yc(r){return xc(r*1e3)/1e3}function _c(r){return xc(r*1e4)/1e4}function kw(r){return"matrix("+yc(r[0])+","+yc(r[1])+","+yc(r[2])+","+yc(r[3])+","+_c(r[4])+","+_c(r[5])+")"}var Vw={left:"start",right:"end",center:"middle",middle:"middle"};function Uw(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function Bw(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function Fw(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function ag(r){return r&&!!r.image}function wU(r){return r&&!!r.svgElement}function Fu(r){return ag(r)||wU(r)}function Sc(r){return r.type==="linear"}function bc(r){return r.type==="radial"}function wc(r){return r&&(r.type==="linear"||r.type==="radial")}function Gu(r){return"url(#"+r+")"}function Tc(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function Cc(r){var e=r.x||0,t=r.y||0,i=(r.rotation||0)*go,a=nt(r.scaleX,1),n=nt(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),i&&l.push("rotate("+i+")"),(a!==1||n!==1)&&l.push("scale("+a+","+n+")"),(o||s)&&l.push("skew("+xc(o*go)+"deg, "+xc(s*go)+"deg)"),l.join(" ")}var Gw=function(){return bt.hasGlobalWindow&&X(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}();var og=Array.prototype.slice;function Va(r,e,t){return(e-r)*t+r}function ng(r,e,t,i){for(var a=e.length,n=0;ni?e:r,n=Math.min(t,i),o=a[n-1]||{color:[0,0,0,0],offset:0},s=n;so;if(s)i.length=o;else for(var l=n;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,i){this._needsSort=!0;var a=this.keyframes,n=a.length,o=!1,s=Ww,l=t;if(ue(t)){var u=DU(t);s=u,(u===1&&!vt(t[0])||u===2&&!vt(t[0][0]))&&(o=!0)}else if(vt(t)&&!Oa(t))s=Dc;else if(B(t))if(!isNaN(+t))s=Dc;else{var f=Re(t);f&&(l=f,s=Wu)}else if(Ra(t)){var p=N({},l);p.colorStops=k(t.colorStops,function(h){return{offset:h.offset,color:Re(h.color)}}),Sc(t)?s=sg:bc(t)&&(s=lg),l=p}n===0?this.valType=s:(s!==this.valType||s===Ww)&&(o=!0),this.discrete=this.discrete||o;var c={time:e,value:l,rawValue:t,percent:0};return i&&(c.easing=i,c.easingFunc=X(i)?i:lc[i]||Ws(i)),a.push(c),c},r.prototype.prepare=function(e,t){var i=this.keyframes;this._needsSort&&i.sort(function(d,m){return d.time-m.time});for(var a=this.valType,n=i.length,o=i[n-1],s=this.discrete,l=Mc(a),u=Yw(a),f=0;f=0&&!(o[f].percent<=t);f--);f=c(f,s-2)}else{for(f=p;ft);f++);f=c(f-1,s-2)}v=o[f+1],h=o[f]}if(h&&v){this._lastFr=f,this._lastFrP=t;var m=v.percent-h.percent,g=m===0?1:c((t-h.percent)/m,1);v.easingFunc&&(g=v.easingFunc(g));var y=i?this._additiveValue:u?Hu:e[l];if((Mc(n)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=g<1?h.rawValue:v.rawValue;else if(Mc(n))n===Ic?ng(y,h[a],v[a],g):TU(y,h[a],v[a],g);else if(Yw(n)){var x=h[a],_=v[a],b=n===sg;e[l]={type:b?"linear":"radial",x:Va(x.x,_.x,g),y:Va(x.y,_.y,g),colorStops:k(x.colorStops,function(T,C){var A=_.colorStops[C];return{offset:Va(T.offset,A.offset,g),color:Lc(ng([],T.color,A.color,g))}}),global:_.global},b?(e[l].x2=Va(x.x2,_.x2,g),e[l].y2=Va(x.y2,_.y2,g)):e[l].r=Va(x.r,_.r,g)}else if(u)ng(y,h[a],v[a],g),i||(e[l]=Lc(y));else{var S=Va(h[a],v[a],g);i?this._additiveValue=S:e[l]=S}i&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,i=this.propName,a=this._additiveValue;t===Dc?e[i]=e[i]+a:t===Wu?(Re(e[i],Hu),Ac(Hu,Hu,a,1),e[i]=Lc(Hu)):t===Ic?Ac(e[i],e[i],a,1):t===Zw&&Hw(e[i],e[i],a,1)},r}(),LU=function(){function r(e,t,i,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a){cn("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=i}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,i){return this.whenWithKeys(e,t,ft(t),i)},r.prototype.whenWithKeys=function(e,t,i,a){for(var n=this._tracks,o=0;o0&&l.addKeyframe(0,Io(u),a),this._trackKeys.push(s)}l.addKeyframe(e,Io(t[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,i=0;i0)){this._started=1;for(var t=this,i=[],a=this._maxTime||0,n=0;n1){var s=o.pop();n.addKeyframe(s.time,e[a]),n.prepare(this._maxTime,n.getAdditiveTrack())}}}},r}(),Yu=LU;function Eo(){return new Date().getTime()}var IU=function(r){Dt(e,r);function e(t){var i=r.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,t=t||{},i.stage=t.stage||{},i}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var i=t.getClip();i&&this.addClip(i)},e.prototype.removeClip=function(t){if(t.animation){var i=t.prev,a=t.next;i?i.next=a:this._head=a,a?a.prev=i:this._tail=i,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var i=t.getClip();i&&this.removeClip(i),t.animation=null},e.prototype.update=function(t){for(var i=Eo()-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,t||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function i(){t._running&&(Nu(i),!t._paused&&t.update())}Nu(i)},e.prototype.start=function(){this._running||(this._time=Eo(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Eo(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Eo()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var i=t.next;t.prev=t.next=t.animation=null,t=i}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,i){i=i||{},this.start();var a=new Yu(t,i.loop);return this.addAnimator(a),a},e}(Ce),Xw=IU;var EU=300,ug=bt.domSupported,fg=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=k(r,function(a){var n=a.replace("mouse","pointer");return t.hasOwnProperty(n)?n:a});return{mouse:r,touch:e,pointer:i}}(),qw={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Kw=!1;function hg(r){var e=r.pointerType;return e==="pen"||e==="touch"}function PU(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function pg(r){r&&(r.zrByTouch=!0)}function RU(r,e){return Dr(r.dom,new OU(r,e),!0)}function Jw(r,e){for(var t=e,i=!1;t&&t.nodeType!==9&&!(i=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return i}var OU=function(){function r(e,t){this.stopPropagation=qt,this.stopImmediatePropagation=qt,this.preventDefault=qt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),Ui={mousedown:function(r){r=Dr(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Dr(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Dr(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Dr(this.dom,r);var e=r.toElement||r.relatedTarget;Jw(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Kw=!0,r=Dr(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Kw||(r=Dr(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Dr(this.dom,r),pg(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Ui.mousemove.call(this,r),Ui.mousedown.call(this,r)},touchmove:function(r){r=Dr(this.dom,r),pg(r),this.handler.processGesture(r,"change"),Ui.mousemove.call(this,r)},touchend:function(r){r=Dr(this.dom,r),pg(r),this.handler.processGesture(r,"end"),Ui.mouseup.call(this,r),+new Date-+this.__lastTouchMomentrT||r<-rT}var Oo=[],qs=[],dg=ge(),mg=Math.abs,VU=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return Ro(this.rotation)||Ro(this.x)||Ro(this.y)||Ro(this.scaleX-1)||Ro(this.scaleY-1)||Ro(this.skewX)||Ro(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),i=this.transform;if(!(t||e)){i&&(eT(i),this.invTransform=null);return}i=i||ge(),t?this.getLocalTransform(i):eT(i),e&&(t?pr(i,e,i):Gs(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Oo);var i=Oo[0]<0?-1:1,a=Oo[1]<0?-1:1,n=((Oo[0]-i)*t+i)/Oo[0]||0,o=((Oo[1]-a)*t+a)/Oo[1]||0;e[0]*=n,e[1]*=n,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||ge(),jr(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=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),t=Math.sqrt(t),this.skewX=n,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=i,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||ge(),pr(qs,e.invTransform,t),t=qs);var i=this.originX,a=this.originY;(i||a)&&(dg[4]=i,dg[5]=a,pr(qs,t,dg),qs[4]-=i,qs[5]-=a,t=qs),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var i=[e,t],a=this.invTransform;return a&&fe(i,i,a),i},r.prototype.transformCoordToGlobal=function(e,t){var i=[e,t],a=this.transform;return a&&fe(i,i,a),i},r.prototype.getLineScale=function(){var e=this.transform;return e&&mg(e[0]-1)>1e-10&&mg(e[3]-1)>1e-10?Math.sqrt(mg(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){gg(this,e)},r.getLocalTransform=function(e,t){t=t||[];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,p=e.y,c=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(i||a||s||l){var v=i+s,d=a+l;t[4]=-v*n-c*d*o,t[5]=-d*o-h*v*n}else t[4]=t[5]=0;return t[0]=n,t[3]=o,t[1]=h*n,t[2]=c*o,u&&cr(t,t,u),t[4]+=i+f,t[5]+=a+p,t},r.initDefaultProps=function(){var e=r.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}(),r}(),Jr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function gg(r,e){for(var t=0;t=0?parseFloat(r)/100*e:parseFloat(r):r}function zo(r,e,t){var i=e.position||"inside",a=e.distance!=null?e.distance:5,n=t.height,o=t.width,s=n/2,l=t.x,u=t.y,f="left",p="top";if(i instanceof Array)l+=Xe(i[0],t.width),u+=Xe(i[1],t.height),f=null,p=null;else switch(i){case"left":l-=a,u+=s,f="right",p="middle";break;case"right":l+=a+o,u+=s,p="middle";break;case"top":l+=o/2,u-=a,f="center",p="bottom";break;case"bottom":l+=o/2,u+=n+a,f="center";break;case"inside":l+=o/2,u+=s,f="center",p="middle";break;case"insideLeft":l+=a,u+=s,p="middle";break;case"insideRight":l+=o-a,u+=s,f="right",p="middle";break;case"insideTop":l+=o/2,u+=a,f="center";break;case"insideBottom":l+=o/2,u+=n-a,f="center",p="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,p="bottom";break;case"insideBottomRight":l+=o-a,u+=n-a,f="right",p="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=p,r}var yg="__zr_normal__",xg=Jr.concat(["ignore"]),UU=Me(Jr,function(r,e){return r[e]=!0,r},{ignore:!1}),Js={},BU=new rt(0,0,0,0),bg=function(){function r(e){this.id=Cu(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,i){switch(this.draggable){case"horizontal":t=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]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var i=this.textConfig,a=i.local,n=t.innerTransformable,o=void 0,s=void 0,l=!1;n.parent=a?this:null;var u=!1;if(n.copyTransform(t),i.position!=null){var f=BU;i.layoutRect?f.copy(i.layoutRect):f.copy(this.getBoundingRect()),a||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Js,i,f):zo(Js,i,f),n.x=Js.x,n.y=Js.y,o=Js.align,s=Js.verticalAlign;var p=i.origin;if(p&&i.rotation!=null){var c=void 0,h=void 0;p==="center"?(c=f.width*.5,h=f.height*.5):(c=Xe(p[0],f.width),h=Xe(p[1],f.height)),u=!0,n.originX=-n.x+c+(a?0:f.x),n.originY=-n.y+h+(a?0:f.y)}}i.rotation!=null&&(n.rotation=i.rotation);var v=i.offset;v&&(n.x+=v[0],n.y+=v[1],u||(n.originX=-v[0],n.originY=-v[1]));var d=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,y=void 0,x=void 0;d&&this.canBeInsideText()?(g=i.insideFill,y=i.insideStroke,(g==null||g==="auto")&&(g=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(g),x=!0)):(g=i.outsideFill,y=i.outsideStroke,(g==null||g==="auto")&&(g=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(g),x=!0)),g=g||"#000",(g!==m.fill||y!==m.stroke||x!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=g,m.stroke=y,m.autoStroke=x,m.align=o,m.verticalAlign=s,t.setDefaultTextStyle(m)),t.__dirty|=Pe,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?qu:Xu},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),i=typeof t=="string"&&Re(t);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,Lr(i,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},N(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(K(e))for(var i=e,a=ft(i),n=0;n0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(yg,!1,e)},r.prototype.useState=function(e,t,i,a){var n=e===yg,o=this.hasState();if(!(!o&&n)){var s=this.currentStates,l=this.stateTransition;if(!(it(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!n&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!n){cn("State "+e+" not exists.");return}n||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||a);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!i&&!this.__inHover&&l&&l.duration>0,l);var p=this._textContent,c=this._textGuide;return p&&p.useState(e,t,i,f),c&&c.useState(e,t,i,f),n?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Pe),u}}},r.prototype.useStates=function(e,t,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;l0,v);var d=this._textContent,m=this._textGuide;d&&d.useStates(e,t,c),m&&m.useStates(e,t,c),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Pe)}},r.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},r.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var i=this.currentStates.slice();i.splice(t,1),this.useStates(i)}},r.prototype.replaceState=function(e,t,i){var a=this.currentStates.slice(),n=it(a,e),o=it(a,t)>=0;n>=0?o?a.splice(n,1):a[n]=t:i&&!o&&a.push(t),this.useStates(a)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},i,a=0;a=0&&n.splice(o,1)}),this.animators.push(e),i&&i.animation.addAnimator(e),i&&i.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var i=this.animators,a=i.length,n=[],o=0;o0&&t.during&&n[0].during(function(v,d){t.during(d)});for(var c=0;c0||a.force&&!o.length){var C=void 0,A=void 0,D=void 0;if(s){A={},c&&(C={});for(var _=0;_=0&&(a.splice(n,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,i){var a=it(this._children,t);return a>=0&&this.replaceAt(i,a),this},e.prototype.replaceAt=function(t,i){var a=this._children,n=a[i];if(t&&t!==this&&t.parent!==this&&t!==n){a[i]=t,n.parent=null;var o=this.__zr;o&&n.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var i=this.__zr;i&&i!==t.__zr&&t.addSelfToZr(i),i&&i.refresh()},e.prototype.remove=function(t){var i=this.__zr,a=this._children,n=it(a,t);return n<0?this:(a.splice(n,1),t.parent=null,i&&t.removeSelfFromZr(i),i&&i.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,i=this.__zr,a=0;a0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,i){return this._disposed||this.handler.on(e,t,i),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t0){if(r<=a)return o;if(r>=n)return s}else{if(r>=a)return o;if(r<=n)return s}else{if(r===a)return o;if(r===n)return s}return(r-a)/l*u+o}function W(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return B(r)?QU(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function Zt(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),lT),r=(+r).toFixed(e),t?r:+r}function _e(r){return r.sort(function(e,t){return e-t}),r}function qe(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return Mg(r)}function Mg(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),i=t>0?+e.slice(t+1):0,a=t>0?t:e.length,n=e.indexOf("."),o=n<0?0:a-1-n;return Math.max(0,o-i)}function Qs(r,e){var t=Math.log,i=Math.LN10,a=Math.floor(t(r[1]-r[0])/i),n=Math.round(t(Math.abs(e[1]-e[0]))/i),o=Math.min(Math.max(-a+n,0),20);return isFinite(o)?o:20}function uT(r,e,t){if(!r[e])return 0;var i=Lg(r,t);return i[e]||0}function Lg(r,e){var t=Me(r,function(h,v){return h+(isNaN(v)?0:v)},0);if(t===0)return[];for(var i=Math.pow(10,e),a=k(r,function(h){return(isNaN(h)?0:h)/t*i*100}),n=i*100,o=k(a,function(h){return Math.floor(h)}),s=Me(o,function(h,v){return h+v},0),l=k(a,function(h,v){return h-o[v]});su&&(u=l[p],f=p);++o[f],l[f]=0,++s}return k(o,function(h){return h/i})}function fT(r,e){var t=Math.max(qe(r),qe(e)),i=r+e;return t>lT?i:Zt(i,t)}var Ku=9007199254740991;function ju(r){var e=Math.PI*2;return(r%e+e)%e}function Ua(r){return r>-sT&&r=10&&e++,e}function tl(r,e){var t=$s(r),i=Math.pow(10,t),a=r/i,n;return 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,r=n*i,t>=-20?+r.toFixed(t<0?-t:0):r}function el(r,e){var t=(r.length-1)*e+1,i=Math.floor(t),a=+r[i-1],n=t-i;return n?a+n*(r[i]-a):a}function Ju(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,i=0;i=0||n&&it(n,l)<0)){var u=i.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var gB=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],yB=Nr(gB),MT=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return yB(this,e,t)},r}();var Og=new ka(50);function IT(r){if(typeof r=="string"){var e=Og.get(r);return e&&e.image}else return r}function ef(r,e,t,i,a){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var n=Og.get(r),o={hostEl:t,cb:i,cbPayload:a};return n?(e=n.image,!nl(e)&&n.pending.push(o)):(e=He.loadImage(r,LT,LT),e.__zrImageSrc=r,Og.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function LT(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=Er(t,e);return u>s&&(t="",u=0),s=r-u,a.ellipsis=t,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=r,a}function RT(r,e){var t=e.containerWidth,i=e.font,a=e.contentWidth;if(!t)return"";var n=Er(r,i);if(n<=t)return r;for(var o=0;;o++){if(n<=a||o>=e.maxIterations){r+=e.ellipsis;break}var s=o===0?_B(r,a,e.ascCharWidth,e.cnCharWidth):n>0?Math.floor(r.length*a/n):0;r=r.substr(0,s),n=Er(r,i)}return r===""&&(r=e.placeholder),r}function _B(r,e,t,i){for(var a=0,n=0,o=r.length;nh&&u){var v=Math.floor(h/s);p=p.slice(0,v)}if(r&&n&&f!=null)for(var d=PT(f,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m=0;ms&&zg(t,r.substring(s,u),e,o),zg(t,l[2],e,o,l[1]),s=Ng.lastIndex}sa){b>0?(y.tokens=y.tokens.slice(0,b),m(y,_,x),t.lines=t.lines.slice(0,g+1)):t.lines=t.lines.slice(0,g);break t}var L=T.width,I=L==null||L==="auto";if(typeof L=="string"&&L.charAt(L.length-1)==="%")S.percentWidth=L,f.push(S),S.contentWidth=Er(S.text,D);else{if(I){var P=T.backgroundColor,R=P&&P.image;R&&(R=IT(R),nl(R)&&(S.width=Math.max(S.width,R.width*M/R.height)))}var O=v&&i!=null?i-_:null;O!=null&&O0&&v+i.accumWidth>i.width&&(f=e.split(` +`),u=!0),i.accumWidth=v}else{var d=zT(e,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=d.accumWidth+h,p=d.linesWidths,f=d.lines}}else f=e.split(` +`);for(var m=0;m=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var TB=Me(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function CB(r){return wB(r)?!!TB[r]:!0}function zT(r,e,t,i,a){for(var n=[],o=[],s="",l="",u=0,f=0,p=0;pt:a+f+h>t){f?(s||l)&&(v?(s||(s=l,l="",u=0,f=u),n.push(s),o.push(f-u),l+=c,u+=h,s="",f=u):(l&&(s+=l,l="",u=0),n.push(s),o.push(f),s=c,f=h)):v?(n.push(l),o.push(u),l=c,u=h):(n.push(c),o.push(h));continue}f+=h,v?(l+=c,u+=h):(l&&(s+=l,l="",u=0),s+=c)}return!n.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(n.push(s),o.push(f)),n.length===1&&(f+=a),{accumWidth:f,lines:n,linesWidths:o}}var Ug="__zr_style_"+Math.round(Math.random()*10),ua={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Bo={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ua[Ug]=!0;var kT=["z","z2","invisible"],AB=["invisible"],DB=function(r){Dt(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var i=ft(t),a=0;a1e-4){s[0]=r-t,s[1]=e-i,l[0]=r+t,l[1]=e+i;return}if(Gc[0]=Fg(a)*t+r,Gc[1]=Bg(a)*i+e,Hc[0]=Fg(n)*t+r,Hc[1]=Bg(n)*i+e,u(s,Gc,Hc),f(l,Gc,Hc),a=a%Fo,a<0&&(a=a+Fo),n=n%Fo,n<0&&(n=n+Fo),a>n&&!o?n+=Fo:aa&&(Wc[0]=Fg(h)*t+r,Wc[1]=Bg(h)*i+e,u(s,Wc,s),f(l,Wc,l))}var te={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ho=[],Wo=[],fa=[],An=[],pa=[],ca=[],Hg=Math.min,Wg=Math.max,Yo=Math.cos,Zo=Math.sin,Ba=Math.abs,Xg=Math.PI,Dn=Xg*2,Yg=typeof Float32Array<"u",rf=[];function Zg(r){var e=Math.round(r/Xg*1e8)/1e8;return e%2*Xg}function af(r,e){var t=Zg(r[0]);t<0&&(t+=Dn);var i=t-r[0],a=r[1];a+=i,!e&&a-t>=Dn?a=t+Dn:e&&t-a>=Dn?a=t-Dn:!e&&t>a?a=t+(Dn-Zg(t-a)):e&&t0&&(this._ux=Ba(i/Po/e)||0,this._uy=Ba(i/Po/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(te.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var i=Ba(e-this._xi),a=Ba(t-this._yi),n=i>this._ux||a>this._uy;if(this.addData(te.L,e,t),this._ctx&&n&&this._ctx.lineTo(e,t),n)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=i*i+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,i,a,n,o){return this._drawPendingPt(),this.addData(te.C,e,t,i,a,n,o),this._ctx&&this._ctx.bezierCurveTo(e,t,i,a,n,o),this._xi=n,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,i,a){return this._drawPendingPt(),this.addData(te.Q,e,t,i,a),this._ctx&&this._ctx.quadraticCurveTo(e,t,i,a),this._xi=i,this._yi=a,this},r.prototype.arc=function(e,t,i,a,n,o){this._drawPendingPt(),rf[0]=a,rf[1]=n,af(rf,o),a=rf[0],n=rf[1];var s=n-a;return this.addData(te.A,e,t,i,i,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,i,a,n,o),this._xi=Yo(n)*i+e,this._yi=Zo(n)*i+t,this},r.prototype.arcTo=function(e,t,i,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,i,a,n),this},r.prototype.rect=function(e,t,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,i,a),this.addData(te.R,e,t,i,a),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(te.Z);var e=this._ctx,t=this._x0,i=this._y0;return e&&e.closePath(),this._xi=t,this._yi=i,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&Yg&&(this.data=new Float32Array(t));for(var i=0;if.length&&(this._expandData(),f=this.data);for(var p=0;p0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){fa[0]=fa[1]=pa[0]=pa[1]=Number.MAX_VALUE,An[0]=An[1]=ca[0]=ca[1]=-Number.MAX_VALUE;var e=this.data,t=0,i=0,a=0,n=0,o;for(o=0;oi||Ba(x)>a||c===t-1)&&(d=Math.sqrt(y*y+x*x),n=m,o=g);break}case te.C:{var _=e[c++],b=e[c++],m=e[c++],g=e[c++],S=e[c++],T=e[c++];d=Mw(n,o,_,b,m,g,S,T,10),n=S,o=T;break}case te.Q:{var _=e[c++],b=e[c++],m=e[c++],g=e[c++];d=Iw(n,o,_,b,m,g,10),n=m,o=g;break}case te.A:var C=e[c++],A=e[c++],D=e[c++],M=e[c++],L=e[c++],I=e[c++],P=I+L;c+=1,v&&(s=Yo(L)*D+C,l=Zo(L)*M+A),d=Wg(D,M)*Hg(Dn,Math.abs(I)),n=Yo(P)*D+C,o=Zo(P)*M+A;break;case te.R:{s=n=e[c++],l=o=e[c++];var R=e[c++],O=e[c++];d=R*2+O*2;break}case te.Z:{var y=s-n,x=l-o;d=Math.sqrt(y*y+x*x),n=s,o=l;break}}d>=0&&(u[p++]=d,f+=d)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var i=this.data,a=this._ux,n=this._uy,o=this._len,s,l,u,f,p,c,h=t<1,v,d,m=0,g=0,y,x=0,_,b;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,d=this._pathLen,y=t*d,!y)))t:for(var S=0;S0&&(e.lineTo(_,b),x=0),T){case te.M:s=u=i[S++],l=f=i[S++],e.moveTo(u,f);break;case te.L:{p=i[S++],c=i[S++];var A=Ba(p-u),D=Ba(c-f);if(A>a||D>n){if(h){var M=v[g++];if(m+M>y){var L=(y-m)/M;e.lineTo(u*(1-L)+p*L,f*(1-L)+c*L);break t}m+=M}e.lineTo(p,c),u=p,f=c,x=0}else{var I=A*A+D*D;I>x&&(_=p,b=c,x=I)}break}case te.C:{var P=i[S++],R=i[S++],O=i[S++],U=i[S++],V=i[S++],F=i[S++];if(h){var M=v[g++];if(m+M>y){var L=(y-m)/M;ci(u,P,O,V,L,Ho),ci(f,R,U,F,L,Wo),e.bezierCurveTo(Ho[1],Wo[1],Ho[2],Wo[2],Ho[3],Wo[3]);break t}m+=M}e.bezierCurveTo(P,R,O,U,V,F),u=V,f=F;break}case te.Q:{var P=i[S++],R=i[S++],O=i[S++],U=i[S++];if(h){var M=v[g++];if(m+M>y){var L=(y-m)/M;yn(u,P,O,L,Ho),yn(f,R,U,L,Wo),e.quadraticCurveTo(Ho[1],Wo[1],Ho[2],Wo[2]);break t}m+=M}e.quadraticCurveTo(P,R,O,U),u=O,f=U;break}case te.A:var Z=i[S++],J=i[S++],lt=i[S++],ht=i[S++],ct=i[S++],It=i[S++],Ut=i[S++],Pt=!i[S++],xt=lt>ht?lt:ht,Rt=Ba(lt-ht)>.001,Ct=ct+It,ut=!1;if(h){var M=v[g++];m+M>y&&(Ct=ct+It*(y-m)/M,ut=!0),m+=M}if(Rt&&e.ellipse?e.ellipse(Z,J,lt,ht,Ut,ct,Ct,Pt):e.arc(Z,J,xt,ct,Ct,Pt),ut)break t;C&&(s=Yo(ct)*lt+Z,l=Zo(ct)*ht+J),u=Yo(Ct)*lt+Z,f=Zo(Ct)*ht+J;break;case te.R:s=u=i[S],l=f=i[S+1],p=i[S++],c=i[S++];var At=i[S++],le=i[S++];if(h){var M=v[g++];if(m+M>y){var Ft=y-m;e.moveTo(p,c),e.lineTo(p+Hg(Ft,At),c),Ft-=At,Ft>0&&e.lineTo(p+At,c+Hg(Ft,le)),Ft-=le,Ft>0&&e.lineTo(p+Wg(At-Ft,0),c+le),Ft-=At,Ft>0&&e.lineTo(p,c+Wg(le-Ft,0));break t}m+=M}e.rect(p,c,At,le);break;case te.Z:if(h){var M=v[g++];if(m+M>y){var L=(y-m)/M;e.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break t}m+=M}e.closePath(),u=s,f=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.CMD=te,r.initDefaultProps=function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),r}(),Ue=LB;function ha(r,e,t,i,a,n,o){if(a===0)return!1;var s=a,l=0,u=r;if(o>e+s&&o>i+s||or+s&&n>t+s||ne+p&&f>i+p&&f>n+p&&f>s+p||fr+p&&u>t+p&&u>a+p&&u>o+p||ue+u&&l>i+u&&l>n+u||lr+u&&s>t+u&&s>a+u||st||f+ua&&(a+=nf);var c=Math.atan2(l,s);return c<0&&(c+=nf),c>=i&&c<=a||c+nf>=i&&c+nf<=a}function di(r,e,t,i,a,n){if(n>e&&n>i||na?s:0}var Mn=Ue.CMD,Xo=Math.PI*2,PB=1e-4;function RB(r,e){return Math.abs(r-e)e&&u>i&&u>n&&u>s||u1&&OB(),h=he(e,i,n,s,mi[0]),c>1&&(v=he(e,i,n,s,mi[1]))),c===2?me&&s>i&&s>n||s=0&&u<=1){for(var f=0,p=ye(e,i,n,u),c=0;ct||s<-t)return 0;var l=Math.sqrt(t*t-s*s);vr[0]=-l,vr[1]=l;var u=Math.abs(i-a);if(u<1e-4)return 0;if(u>=Xo-1e-4){i=0,a=Xo;var f=n?1:-1;return o>=vr[0]+r&&o<=vr[1]+r?f:0}if(i>a){var p=i;i=a,a=p}i<0&&(i+=Xo,a+=Xo);for(var c=0,h=0;h<2;h++){var v=vr[h];if(v+r>o){var d=Math.atan2(s,v),f=n?1:-1;d<0&&(d=Xo+d),(d>=i&&d<=a||d+Xo>=i&&d+Xo<=a)&&(d>Math.PI/2&&d1&&(t||(s+=di(l,u,f,p,i,a))),m&&(l=n[v],u=n[v+1],f=l,p=u),d){case Mn.M:f=n[v++],p=n[v++],l=f,u=p;break;case Mn.L:if(t){if(ha(l,u,n[v],n[v+1],e,i,a))return!0}else s+=di(l,u,n[v],n[v+1],i,a)||0;l=n[v++],u=n[v++];break;case Mn.C:if(t){if(YT(l,u,n[v++],n[v++],n[v++],n[v++],n[v],n[v+1],e,i,a))return!0}else s+=NB(l,u,n[v++],n[v++],n[v++],n[v++],n[v],n[v+1],i,a)||0;l=n[v++],u=n[v++];break;case Mn.Q:if(t){if(Yc(l,u,n[v++],n[v++],n[v],n[v+1],e,i,a))return!0}else s+=zB(l,u,n[v++],n[v++],n[v],n[v+1],i,a)||0;l=n[v++],u=n[v++];break;case Mn.A:var g=n[v++],y=n[v++],x=n[v++],_=n[v++],b=n[v++],S=n[v++];v+=1;var T=!!(1-n[v++]);c=Math.cos(b)*x+g,h=Math.sin(b)*_+y,m?(f=c,p=h):s+=di(l,u,c,h,i,a);var C=(i-g)*_/x+g;if(t){if(qT(g,y,_,b,b+S,T,e,C,a))return!0}else s+=kB(g,y,_,b,b+S,T,C,a);l=Math.cos(b+S)*x+g,u=Math.sin(b+S)*_+y;break;case Mn.R:f=l=n[v++],p=u=n[v++];var A=n[v++],D=n[v++];if(c=f+A,h=p+D,t){if(ha(f,p,c,p,e,i,a)||ha(c,p,c,h,e,i,a)||ha(c,h,f,h,e,i,a)||ha(f,h,f,p,e,i,a))return!0}else s+=di(c,p,c,h,i,a),s+=di(f,h,f,p,i,a);break;case Mn.Z:if(t){if(ha(l,u,f,p,e,i,a))return!0}else s+=di(l,u,f,p,i,a);l=f,u=p;break}}return!t&&!RB(u,p)&&(s+=di(l,u,f,p,i,a)||0),s!==0}function jT(r,e,t){return KT(r,0,!1,e,t)}function JT(r,e,t,i){return KT(r,e,!0,t,i)}var ol=q({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ua),UB={style:q({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Bo.style)},qg=Jr.concat(["invisible","culling","z","z2","zlevel","parent"]),BB=function(r){Dt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.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){t.buildPath(l,t.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.5?Xu:i>.2?tT:qu}else if(t)return qu}return Xu},e.prototype.getInsideTextStroke=function(t){var i=this.style.fill;if(B(i)){var a=this.__zr,n=!!(a&&a.isDarkMode()),o=Lo(t,0)0))},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,i=this.style,a=!t;if(a){var n=!1;this.path||(n=!0,this.createPathProxy());var o=this.path;(n||this.__dirty&dn)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||a){s.copy(t);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 t},e.prototype.contain=function(t,i){var a=this.transformCoordToLocal(t,i),n=this.getBoundingRect(),o=this.style;if(t=a[0],i=a[1],n.contain(t,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)),JT(s,l/u,t,i)))return!0}if(this.hasFill())return jT(s,t,i)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=dn,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,i){t==="shape"?this.setShape(i):r.prototype.attrKV.call(this,t,i)},e.prototype.setShape=function(t,i){var a=this.shape;return a||(a=this.shape={}),typeof t=="string"?a[t]=i:N(a,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&dn)},e.prototype.createStyle=function(t){return Na(ol,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;t.shape&&!i.shape&&(i.shape=N({},this.shape))},e.prototype._applyStateObj=function(t,i,a,n,o,s){r.prototype._applyStateObj.call(this,t,i,a,n,o,s);var l=!(i&&n),u;if(i&&i.shape?o?n?u=i.shape:(u=N({},a.shape),N(u,i.shape)):(u=N({},n?this.shape:a.shape),N(u,i.shape)):l&&(u=a.shape),u)if(o){this.shape=N({},this.shape);for(var f={},p=ft(u),c=0;c0},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.createStyle=function(t){return Na(FB,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var i=t.text;i!=null?i+="":i="";var a=la(i,t.font,t.textAlign,t.textBaseline);if(a.x+=t.x||0,a.y+=t.y||0,this.hasStroke()){var n=t.lineWidth;a.x-=n/2,a.y-=n/2,a.width+=n,a.height+=n}this._rect=a}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(xe);QT.prototype.type="tspan";var Fa=QT;var GB=q({x:0,y:0},ua),HB={style:q({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Bo.style)};function WB(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var $T=function(r){Dt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Na(GB,t)},e.prototype._getSize=function(t){var i=this.style,a=i[t];if(a!=null)return a;var n=WB(i.image)?i.image:this.__image;if(!n)return 0;var o=t==="width"?"height":"width",s=i[o];return s==null?n[t]:n[t]/n[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return HB},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new rt(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(xe);$T.prototype.type="image";var Kt=$T;function tC(r,e){var t=e.x,i=e.y,a=e.width,n=e.height,o=e.r,s,l,u,f;a<0&&(t=t+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 p;s+l>a&&(p=s+l,s*=a/p,l*=a/p),u+f>a&&(p=u+f,u*=a/p,f*=a/p),l+u>n&&(p=l+u,l*=n/p,u*=n/p),s+f>n&&(p=s+f,s*=n/p,f*=n/p),r.moveTo(t+s,i),r.lineTo(t+a-l,i),l!==0&&r.arc(t+a-l,i+l,l,-Math.PI/2,0),r.lineTo(t+a,i+n-u),u!==0&&r.arc(t+a-u,i+n-u,u,0,Math.PI/2),r.lineTo(t+f,i+n),f!==0&&r.arc(t+f,i+n-f,f,Math.PI/2,Math.PI),r.lineTo(t,i+s),s!==0&&r.arc(t+s,i+s,s,Math.PI,Math.PI*1.5)}var sl=Math.round;function Zc(r,e,t){if(e){var i=e.x1,a=e.x2,n=e.y1,o=e.y2;r.x1=i,r.x2=a,r.y1=n,r.y2=o;var s=t&&t.lineWidth;return s&&(sl(i*2)===sl(a*2)&&(r.x1=r.x2=Ln(i,s,!0)),sl(n*2)===sl(o*2)&&(r.y1=r.y2=Ln(n,s,!0))),r}}function Xc(r,e,t){if(e){var i=e.x,a=e.y,n=e.width,o=e.height;r.x=i,r.y=a,r.width=n,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=Ln(i,s,!0),r.y=Ln(a,s,!0),r.width=Math.max(Ln(i+n,s,!1)-r.x,n===0?0:1),r.height=Math.max(Ln(a+o,s,!1)-r.y,o===0?0:1)),r}}function Ln(r,e,t){if(!e)return r;var i=sl(r*2);return(i+sl(e))%2===0?i/2:(i+(t?1:-1))/2}var XB=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}();var qB={},eC=function(r){Dt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new XB},e.prototype.buildPath=function(t,i){var a,n,o,s;if(this.subPixelOptimize){var l=Xc(qB,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?tC(t,i):t.rect(a,n,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(at);eC.prototype.type="rect";var pt=eC;var rC={fill:"#000"},iC=2,KB={style:q({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},Bo.style)},pC=function(r){Dt(e,r);function e(t){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=rC,i.attr(t),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,L=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),I=o.calculatedLineHeight,P=0;P=0&&(P=S[I],P.align==="right");)this._placeToken(P,t,C,g,L,"right",x),A-=P.width,L-=P.width,I--;for(M+=(n-(M-m)-(y-L)-A)/2;D<=I;)P=S[D],this._placeToken(P,t,C,g,M+P.width/2,"center",x),M+=P.width,D++;g+=C}},e.prototype._placeToken=function(t,i,a,n,o,s,l){var u=i.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,p=n+a/2;f==="top"?p=n+t.height/2:f==="bottom"&&(p=n+a-t.height/2);var c=!t.isLineHolder&&Kg(u);c&&this._renderBackground(u,i,s==="right"?o-t.width:s==="center"?o-t.width/2:o,p-t.height/2,t.width,t.height);var h=!!u.backgroundColor,v=t.textPadding;v&&(o=uC(o,s,v),p-=t.height/2-v[0]-t.innerHeight/2);var d=this._getOrCreateChild(Fa),m=d.createStyle();d.useStyle(m);var g=this._defaultStyle,y=!1,x=0,_=lC("fill"in u?u.fill:"fill"in i?i.fill:(y=!0,g.fill)),b=sC("stroke"in u?u.stroke:"stroke"in i?i.stroke:!h&&!l&&(!g.autoStroke||y)?(x=iC,g.stroke):null),S=u.textShadowBlur>0||i.textShadowBlur>0;m.text=t.text,m.x=o,m.y=p,S&&(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=t.font||Xr,m.opacity=Le(u.opacity,i.opacity,1),nC(m,u),b&&(m.lineWidth=Le(u.lineWidth,i.lineWidth,x),m.lineDash=nt(u.lineDash,i.lineDash),m.lineDashOffset=i.lineDashOffset||0,m.stroke=b),_&&(m.fill=_);var T=t.contentWidth,C=t.contentHeight;d.setBoundingRect(new rt(Ks(m.x,T,m.textAlign),No(m.y,C,m.textBaseline),T,C))},e.prototype._renderBackground=function(t,i,a,n,o,s){var l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,p=l&&l.image,c=l&&!p,h=t.borderRadius,v=this,d,m;if(c||t.lineHeight||u&&f){d=this._getOrCreateChild(pt),d.useStyle(d.createStyle()),d.style.fill=null;var g=d.shape;g.x=a,g.y=n,g.width=o,g.height=s,g.r=h,d.dirtyShape()}if(c){var y=d.style;y.fill=l||null,y.fillOpacity=nt(t.fillOpacity,1)}else if(p){m=this._getOrCreateChild(Kt),m.onload=function(){v.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=d.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=nt(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var _=(d||m).style;_.shadowBlur=t.shadowBlur||0,_.shadowColor=t.shadowColor||"transparent",_.shadowOffsetX=t.shadowOffsetX||0,_.shadowOffsetY=t.shadowOffsetY||0,_.opacity=Le(t.opacity,i.opacity,1)},e.makeFont=function(t){var i="";return Jg(t)&&(i=[t.fontStyle,t.fontWeight,jg(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),i&&Ie(i)||t.textFont||t.font},e}(xe),jB={left:!0,right:1,center:1},JB={top:1,bottom:1,middle:1},aC=["fontStyle","fontWeight","fontSize","fontFamily"];function jg(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Qp+"px":r+"px"}function nC(r,e){for(var t=0;t=0,n=!1;if(r instanceof at){var o=yC(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(ll(s)||ll(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(n=!0,i=N({},i),u=N({},u),u.fill=s):!ll(u.fill)&&ll(s)?(n=!0,i=N({},i),u=N({},u),u.fill=Xs(s)):!ll(u.stroke)&&ll(l)&&(n||(i=N({},i),u=N({},u)),u.stroke=Xs(l)),i.style=u}}if(i&&i.z2==null){n||(i=N({},i));var f=r.z2EmphasisLift;i.z2=r.z2+(f??Ga)}return i}function aF(r,e,t){if(t&&t.z2==null){t=N({},t);var i=r.z2SelectLift;t.z2=r.z2+(i??$B)}return t}function nF(r,e,t){var i=it(r.currentStates,e)>=0,a=r.style.opacity,n=i?null:rF(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=N({},t),o=N({opacity:i?a:n.opacity*.1},o),t.style=o),t}function Qg(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return iF(this,r,e,t);if(r==="blur")return nF(this,r,t);if(r==="select")return aF(this,r,t)}return t}function Fi(r){r.stateProxy=Qg;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=Qg),t&&(t.stateProxy=Qg)}function dC(r,e){!bC(r,e)&&!r.__highByOuter&&Ha(r,xC)}function mC(r,e){!bC(r,e)&&!r.__highByOuter&&Ha(r,_C)}function ir(r,e){r.__highByOuter|=1<<(e||0),Ha(r,xC)}function ar(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&Ha(r,_C)}function jc(r){Ha(r,ry)}function ff(r){Ha(r,SC)}function iy(r){Ha(r,tF)}function ay(r){Ha(r,eF)}function bC(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function ny(r){var e=r.getModel(),t=[],i=[];e.eachComponent(function(a,n){var o=ty(n),s=a==="series",l=s?r.getViewOfSeriesModel(n):r.getViewOfComponentModel(n);!s&&i.push(l),o.isBlured&&(l.group.traverse(function(u){SC(u)}),s&&t.push(n)),o.isBlured=!1}),w(i,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(t,!1,e)})}function $g(r,e,t,i){var a=i.getModel();t=t||"coordinateSystem";function n(u,f){for(var p=0;p0){var l={dataIndex:s,seriesIndex:t.seriesIndex};o!=null&&(l.dataType=o),e.push(l)}})}),e}function gi(r,e,t){Wa(r,!0),Ha(r,Fi),Qc(r,e,t)}function oF(r){Wa(r,!1)}function kt(r,e,t,i){i?oF(r):gi(r,e,t)}function Qc(r,e,t){var i=tt(r);e!=null?(i.focus=e,i.blurScope=t):i.focus&&(i.focus=null)}var gC=["emphasis","blur","select"],sF={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ee(r,e,t,i){t=t||"itemStyle";for(var a=0;aQo,BezierCurve:()=>Za,BoundingRect:()=>rt,Circle:()=>je,CompoundPath:()=>Rn,Ellipse:()=>jo,Group:()=>j,Image:()=>Kt,IncrementalDisplayable:()=>uh,Line:()=>re,LinearGradient:()=>yi,OrientedBoundingRect:()=>dl,Path:()=>at,Point:()=>St,Polygon:()=>oe,Polyline:()=>ae,RadialGradient:()=>vl,Rect:()=>pt,Ring:()=>Ya,Sector:()=>pe,Text:()=>dt,applyTransform:()=>Je,clipPointsByRect:()=>mf,clipRectByRect:()=>gy,createIcon:()=>Hi,extendPath:()=>my,extendShape:()=>dy,getShapeClass:()=>es,getTransform:()=>ti,groupTransition:()=>ja,initProps:()=>Nt,isElementRemoved:()=>Xa,lineLineIntersect:()=>oA,linePolygonIntersect:()=>ml,makeImage:()=>vf,makePath:()=>On,mergePath:()=>Ye,registerShape:()=>$r,removeElement:()=>xi,removeElementWithFadeOut:()=>qa,resizePath:()=>ch,setTooltipConfig:()=>Wi,subPixelOptimize:()=>df,subPixelOptimizeLine:()=>Ka,subPixelOptimizeRect:()=>zF,transformDirection:()=>rs,traverseElements:()=>dr,updateProps:()=>yt});var pl=Ue.CMD,lF=[[],[],[]],EC=Math.sqrt,uF=Math.atan2;function th(r,e){if(e){var t=r.data,i=r.len(),a,n,o,s,l,u,f=pl.M,p=pl.C,c=pl.L,h=pl.R,v=pl.A,d=pl.Q;for(o=0,s=0;o1&&(o*=ly(v),s*=ly(v));var d=(a===n?-1:1)*ly((o*o*(s*s)-o*o*(h*h)-s*s*(c*c))/(o*o*(h*h)+s*s*(c*c)))||0,m=d*o*h/s,g=d*-s*c/o,y=(r+t)/2+rh(p)*m-eh(p)*g,x=(e+i)/2+eh(p)*m+rh(p)*g,_=RC([1,0],[(c-m)/o,(h-g)/s]),b=[(c-m)/o,(h-g)/s],S=[(-1*c-m)/o,(-1*h-g)/s],T=RC(b,S);if(uy(b,S)<=-1&&(T=pf),uy(b,S)>=1&&(T=0),T<0){var C=Math.round(T/pf*1e6)/1e6;T=pf*2+C%2*pf}f.addData(u,y,x,o,s,_,T,p,n)}var fF=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,pF=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function cF(r){var e=new Ue;if(!r)return e;var t=0,i=0,a=t,n=i,o,s=Ue.CMD,l=r.match(fF);if(!l)return e;for(var u=0;uP*P+R*R&&(C=D,A=M),{cx:C,cy:A,x0:-f,y0:-p,x1:C*(a/b-1),y1:A*(a/b-1)}}function yF(r){var e;if(z(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function WC(r,e){var t,i=cf(e.r,0),a=cf(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,p=e.cy,c=!!e.clockwise,h=GC(u-l),v=h>fy&&h%fy;if(v>Gi&&(h=v),!(i>Gi))r.moveTo(f,p);else if(h>fy-Gi)r.moveTo(f+i*hl(l),p+i*Jo(l)),r.arc(f,p,i,l,u,!c),a>Gi&&(r.moveTo(f+a*hl(u),p+a*Jo(u)),r.arc(f,p,a,u,l,c));else{var d=void 0,m=void 0,g=void 0,y=void 0,x=void 0,_=void 0,b=void 0,S=void 0,T=void 0,C=void 0,A=void 0,D=void 0,M=void 0,L=void 0,I=void 0,P=void 0,R=i*hl(l),O=i*Jo(l),U=a*hl(u),V=a*Jo(u),F=h>Gi;if(F){var Z=e.cornerRadius;Z&&(t=yF(Z),d=t[0],m=t[1],g=t[2],y=t[3]);var J=GC(i-a)/2;if(x=va(J,g),_=va(J,y),b=va(J,d),S=va(J,m),A=T=cf(x,_),D=C=cf(b,S),(T>Gi||C>Gi)&&(M=i*hl(u),L=i*Jo(u),I=a*hl(l),P=a*Jo(l),hGi){var Rt=va(g,A),Ct=va(y,A),ut=ah(I,P,R,O,i,Rt,c),At=ah(M,L,U,V,i,Ct,c);r.moveTo(f+ut.cx+ut.x0,p+ut.cy+ut.y0),A0&&r.arc(f+ut.cx,p+ut.cy,Rt,nr(ut.y0,ut.x0),nr(ut.y1,ut.x1),!c),r.arc(f,p,i,nr(ut.cy+ut.y1,ut.cx+ut.x1),nr(At.cy+At.y1,At.cx+At.x1),!c),Ct>0&&r.arc(f+At.cx,p+At.cy,Ct,nr(At.y1,At.x1),nr(At.y0,At.x0),!c))}else r.moveTo(f+R,p+O),r.arc(f,p,i,l,u,!c);if(!(a>Gi)||!F)r.lineTo(f+U,p+V);else if(D>Gi){var Rt=va(d,D),Ct=va(m,D),ut=ah(U,V,M,L,a,-Ct,c),At=ah(R,O,I,P,a,-Rt,c);r.lineTo(f+ut.cx+ut.x0,p+ut.cy+ut.y0),D0&&r.arc(f+ut.cx,p+ut.cy,Ct,nr(ut.y0,ut.x0),nr(ut.y1,ut.x1),!c),r.arc(f,p,a,nr(ut.cy+ut.y1,ut.cx+ut.x1),nr(At.cy+At.y1,At.cx+At.x1),c),Rt>0&&r.arc(f+At.cx,p+At.cy,Rt,nr(At.y1,At.x1),nr(At.y0,At.x0),!c))}else r.lineTo(f+U,p+V),r.arc(f,p,a,u,l,c)}r.closePath()}}}var _F=function(){function r(){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 r}();var YC=function(r){Dt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new _F},e.prototype.buildPath=function(t,i){WC(t,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(at);YC.prototype.type="sector";var pe=YC;var SF=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}();var ZC=function(r){Dt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new SF},e.prototype.buildPath=function(t,i){var a=i.cx,n=i.cy,o=Math.PI*2;t.moveTo(a+i.r,n),t.arc(a,n,i.r,0,o,!1),t.moveTo(a+i.r0,n),t.arc(a,n,i.r0,0,o,!0)},e}(at);ZC.prototype.type="ring";var Ya=ZC;function py(r,e,t,i){var a=[],n=[],o=[],s=[],l,u,f,p;if(i){f=[1/0,1/0],p=[-1/0,-1/0];for(var c=0,h=r.length;c=2){if(i){var n=py(a,i,t,e.smoothConstraint);r.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(t?o:o-1);s++){var l=n[s*2],u=n[s*2+1],f=a[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(a[0][0],a[0][1]);for(var s=1,p=a.length;sts[1]){if(s=!1,n)return s;var f=Math.abs(ts[0]-$o[1]),p=Math.abs($o[0]-ts[1]);Math.min(f,p)>a.len()&&(f0){var p=f.duration,c=f.delay,h=f.easing,v={duration:p,delay:c||0,easing:h,done:n,force:!!n||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,v):e.animateTo(t,v)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),n&&n()}function yt(r,e,t,i,a,n){cy("update",r,e,t,i,a,n)}function Nt(r,e,t,i,a,n){cy("enter",r,e,t,i,a,n)}function Xa(r){if(!r.__zr)return!0;for(var e=0;eMath.abs(n[1])?n[0]>0?"right":"left":n[1]>0?"bottom":"top"}function iA(r){return!r.isGroup}function kF(r){return r.shape!=null}function ja(r,e,t){if(!r||!e)return;function i(o){var s={};return o.traverse(function(l){iA(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return kF(o)&&(s.shape=N({},o.shape)),s}var n=i(r);e.traverse(function(o){if(iA(o)&&o.anid){var s=n[o.anid];if(s){var l=a(o);o.attr(a(s)),yt(o,l,t,tt(o).dataIndex)}}})}function mf(r,e){return k(r,function(t){var i=t[0];i=fh(i,e.x),i=ph(i,e.x+e.width);var a=t[1];return a=fh(a,e.y),a=ph(a,e.y+e.height),[i,a]})}function gy(r,e){var t=fh(r.x,e.x),i=ph(r.x+r.width,e.x+e.width),a=fh(r.y,e.y),n=ph(r.y+r.height,e.y+e.height);if(i>=t&&n>=a)return{x:t,y:a,width:i-t,height:n-a}}function Hi(r,e,t){var i=N({rectHover:!0},e),a=i.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),q(a,t),new Kt(i)):On(r.replace("path://",""),i,t,"center")}function ml(r,e,t,i,a){for(var n=0,o=a[a.length-1];n1)return!1;var m=hy(h,v,f,p)/c;return!(m<0||m>1)}function hy(r,e,t,i){return r*i-t*e}function VF(r){return r<=1e-6&&r>=-1e-6}function Wi(r){var e=r.itemTooltipOption,t=r.componentModel,i=r.itemName,a=B(e)?{formatter:e}:e,n=t.mainType,o=t.componentIndex,s={componentType:n,name:i,$vars:["name"]};s[n+"Index"]=o;var l=r.formatterParamsExtra;l&&w(ft(l),function(f){$(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=tt(r.el);u.componentMainType=n,u.componentIndex=o,u.tooltipConfig={name:i,option:q({content:i,formatterParams:s},a)}}function aA(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function dr(r,e){if(r)if(z(r))for(var t=0;t=0&&s.push(l)}),s}}function or(r,e){return ot(ot({},r,!0),e,!0)}var gA={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 yA={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 gh="ZH",Ty="EN",yl=Ty,mh={},Cy={},yh=bt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||yl).toUpperCase();return r.indexOf(gh)>-1?gh:yl}():yl;function Ay(r,e){r=r.toUpperCase(),Cy[r]=new Mt(e),mh[r]=e}function xA(r){if(B(r)){var e=mh[r.toUpperCase()]||{};return r===gh||r===Ty?Q(e):ot(Q(e),Q(mh[yl]),!1)}else return ot(Q(r),Q(mh[yl]),!1)}function yf(r){return Cy[r]}function _A(){return Cy[yl]}Ay(Ty,gA);Ay(gh,yA);var _h=1e3,Sh=_h*60,_l=Sh*60,ei=_l*24,My=ei*365,xf={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},xh="{yyyy}-{MM}-{dd}",Ly={year:"{yyyy}",month:"{yyyy}-{MM}",day:xh,hour:xh+" "+xf.hour,minute:xh+" "+xf.minute,second:xh+" "+xf.second,millisecond:xf.none},Dy=["year","month","day","hour","minute","second","millisecond"],Iy=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function sr(r,e){return r+="","0000".substr(0,e-r.length)+r}function ns(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function SA(r){return r===ns(r)}function bA(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Qa(r,e,t,i){var a=Oe(r),n=a[bh(t)](),o=a[as(t)]()+1,s=Math.floor((o-1)/3)+1,l=a[_f(t)](),u=a["get"+(t?"UTC":"")+"Day"](),f=a[xl(t)](),p=(f-1)%12+1,c=a[Sf(t)](),h=a[bf(t)](),v=a[wf(t)](),d=i instanceof Mt?i:yf(i||yh)||_A(),m=d.getModel("time"),g=m.get("month"),y=m.get("monthAbbr"),x=m.get("dayOfWeek"),_=m.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,n+"").replace(/{yy}/g,sr(n%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,g[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,sr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,sr(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,sr(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,sr(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,sr(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,sr(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,sr(v,3)).replace(/{S}/g,v+"")}function wA(r,e,t,i,a){var n=null;if(B(t))n=t;else if(X(t))n=t(r.value,e,{level:r.level});else{var o=N({},xf);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){n=l[u];break}n=n||o.none}if(z(n)){var p=r.level==null?0:r.level>=0?r.level:n.length+r.level;p=Math.min(p,n.length-1),n=n[p]}}return Qa(new Date(r.value),n,a,i)}function TA(r,e){var t=Oe(r),i=t[as(e)]()+1,a=t[_f(e)](),n=t[xl(e)](),o=t[Sf(e)](),s=t[bf(e)](),l=t[wf(e)](),u=l===0,f=u&&s===0,p=f&&o===0,c=p&&n===0,h=c&&a===1,v=h&&i===1;return v?"year":h?"month":c?"day":p?"hour":f?"minute":u?"second":"millisecond"}function Ey(r,e,t){var i=vt(r)?Oe(r):r;switch(e=e||TA(r,t),e){case"year":return i[bh(t)]();case"half-year":return i[as(t)]()>=6?1:0;case"quarter":return Math.floor((i[as(t)]()+1)/4);case"month":return i[as(t)]();case"day":return i[_f(t)]();case"half-day":return i[xl(t)]()/24;case"hour":return i[xl(t)]();case"minute":return i[Sf(t)]();case"second":return i[bf(t)]();case"millisecond":return i[wf(t)]()}}function bh(r){return r?"getUTCFullYear":"getFullYear"}function as(r){return r?"getUTCMonth":"getMonth"}function _f(r){return r?"getUTCDate":"getDate"}function xl(r){return r?"getUTCHours":"getHours"}function Sf(r){return r?"getUTCMinutes":"getMinutes"}function bf(r){return r?"getUTCSeconds":"getSeconds"}function wf(r){return r?"getUTCMilliseconds":"getMilliseconds"}function CA(r){return r?"setUTCFullYear":"setFullYear"}function Py(r){return r?"setUTCMonth":"setMonth"}function Ry(r){return r?"setUTCDate":"setDate"}function Oy(r){return r?"setUTCHours":"setHours"}function Ny(r){return r?"setUTCMinutes":"setMinutes"}function zy(r){return r?"setUTCSeconds":"setSeconds"}function ky(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Vy(r,e,t,i,a,n,o,s){var l=new dt({style:{text:r,font:e,align:t,verticalAlign:i,padding:a,rich:n,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function Tf(r){if(!Vo(r))return B(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Sl(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,i){return i.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var ri=mo;function wh(r,e,t){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&Ie(f)?f:"-"}function n(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?Oe(r):r;if(isNaN(+l)){if(s)return"-"}else return Qa(l,i,t)}if(e==="ordinal")return ks(r)?a(r):vt(r)&&n(r)?r+"":"-";var u=Pr(r);return n(u)?Tf(u):ks(r)?a(r):typeof r=="boolean"?r+"":"-"}var AA=["a","b","c","d","e","f","g"],Uy=function(r,e){return"{"+r+(e??"")+"}"};function bl(r,e,t){z(e)||(e=[e]);var i=e.length;if(!i)return"";for(var a=e[0].$vars||[],n=0;n':'';var o=t.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 MA(r,e,t){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd +yyyy`);var i=Oe(e),a=t?"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"](),p=i[a+"Milliseconds"]();return r=r.replace("MM",sr(o,2)).replace("M",o).replace("yyyy",n).replace("yy",sr(n%100+"",2)).replace("dd",sr(s,2)).replace("d",s).replace("hh",sr(l,2)).replace("h",l).replace("mm",sr(u,2)).replace("m",u).replace("ss",sr(f,2)).replace("s",f).replace("SSS",sr(p,3)),r}function LA(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function Yi(r,e){return e=e||"transparent",B(r)?r:K(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function os(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var Ch=w,By=["left","right","top","bottom","width","height"],ss=[["width","left","right"],["height","top","bottom"]];function Fy(r,e,t,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(),p=e.childAt(u+1),c=p&&p.getBoundingRect(),h,v;if(r==="horizontal"){var d=f.width+(c?-c.x+f.x:0);h=n+d,h>i||l.newline?(n=0,h=d,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(c?-c.y+f.y:0);v=o+m,v>a||l.newline?(n+=s+t,o=0,v=m,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=n,l.y=o,l.markRedraw(),r==="horizontal"?n=h+t:o=v+t)})}var Zi=Fy,$tt=et(Fy,"vertical"),tet=et(Fy,"horizontal");function IA(r,e,t){var i=e.width,a=e.height,n=W(r.left,i),o=W(r.top,a),s=W(r.right,i),l=W(r.bottom,a);return(isNaN(n)||isNaN(parseFloat(r.left)))&&(n=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=i),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=a),t=ri(t||0),{width:Math.max(s-n-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function Gt(r,e,t){t=ri(t||0);var i=e.width,a=e.height,n=W(r.left,i),o=W(r.top,a),s=W(r.right,i),l=W(r.bottom,a),u=W(r.width,i),f=W(r.height,a),p=t[2]+t[0],c=t[1]+t[3],h=r.aspect;switch(isNaN(u)&&(u=i-s-c-n),isNaN(f)&&(f=a-l-p-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-c),isNaN(o)&&(o=a-l-f-p),r.left||r.right){case"center":n=i/2-u/2-t[3];break;case"right":n=i-u-c;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-f/2-t[0];break;case"bottom":o=a-f-p;break}n=n||0,o=o||0,isNaN(u)&&(u=i-c-n-(s||0)),isNaN(f)&&(f=a-p-o-(l||0));var v=new rt(n+t[3],o+t[0],u,f);return v.margin=t,v}function Nn(r,e,t,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||r,n.x=r.x,n.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new rt(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var p=Gt(q({width:u.width,height:u.height},e),t,i),c=o?p.x-u.x:0,h=s?p.y-u.y:0;return l==="raw"?(n.x=c,n.y=h):(n.x+=c,n.y+=h),n===r&&r.markRedraw(),!0}function EA(r,e){return r[ss[e][0]]!=null||r[ss[e][1]]!=null&&r[ss[e][2]]!=null}function zn(r){var e=r.layoutMode||r.constructor.layoutMode;return K(e)?e:e?{type:e}:null}function Ur(r,e,t){var i=t&&t.ignoreSize;!z(i)&&(i=[i,i]);var a=o(ss[0],0),n=o(ss[1],1);u(ss[0],r,a),u(ss[1],r,n);function o(f,p){var c={},h=0,v={},d=0,m=2;if(Ch(f,function(x){v[x]=r[x]}),Ch(f,function(x){s(e,x)&&(c[x]=v[x]=e[x]),l(c,x)&&h++,l(v,x)&&d++}),i[p])return l(e,f[1])?v[f[2]]=null:l(e,f[2])&&(v[f[1]]=null),v;if(d===m||!h)return v;if(h>=m)return c;for(var g=0;g=0;l--)s=ot(s,a[l],!0);i.defaultOption=s}return i.defaultOption},e.prototype.getReferringComponents=function(t,i){var a=t+"Index",n=t+"Id";return Tn(this.ecModel,t,{index:this.get(a,!0),id:this.get(n,!0)},i)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Mt);Bc(wl,Mt);Cn(wl);dA(wl);mA(wl,qF);function qF(r){var e=[];return w(wl.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=k(e,function(t){return Or(t).main}),r!=="dataset"&&it(e,"dataset")<=0&&e.unshift("dataset"),e}var gt=wl;var PA="";typeof navigator<"u"&&(PA=navigator.platform||"");var Tl="rgba(0, 0, 0, 0.2)",RA={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Tl,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Tl,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Tl,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Tl,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Tl,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Tl,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:PA.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 Ah=Y(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ze="original",Se="arrayRows",$e="objectRows",ii="keyedColumns",ai="typedArray",Hy="unknown",Br="column",$a="row";var Be={Must:1,Might:2,Not:3},OA=st();function NA(r){OA(r).datasetMap=Y()}function Dh(r,e,t){var i={},a=Mh(e);if(!a||!r)return i;var n=[],o=[],s=e.ecModel,l=OA(s).datasetMap,u=a.uid+"_"+t.seriesLayoutBy,f,p;r=r.slice(),w(r,function(d,m){var g=K(d)?d:r[m]={name:d};g.type==="ordinal"&&f==null&&(f=m,p=v(g)),i[g.name]=[]});var c=l.get(u)||l.set(u,{categoryWayDim:p,valueWayDim:0});w(r,function(d,m){var g=d.name,y=v(d);if(f==null){var x=c.valueWayDim;h(i[g],x,y),h(o,x,y),c.valueWayDim+=y}else if(f===m)h(i[g],0,y),h(n,0,y);else{var x=c.categoryWayDim;h(i[g],x,y),h(o,x,y),c.categoryWayDim+=y}});function h(d,m,g){for(var y=0;ye)return r[i];return r[t-1]}function FA(r,e,t,i,a,n,o){n=n||r;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?t:jF(i,o);if(f=f||t,!(!f||!f.length)){var p=f[l];return a&&(u[a]=p),s.paletteIdx=(l+1)%f.length,p}}function JF(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var Ih,Mf,GA,HA="\0_ec_inner",QF=1;var XA=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,i,a,n,o,s){n=n||{},this.option=null,this._theme=new Mt(n),this._locale=new Mt(o),this._optionManager=s},e.prototype.setOption=function(t,i,a){var n=ZA(i);this._optionManager.setOption(t,a,n),this._resetOption(null,n)},e.prototype.resetOption=function(t,i){return this._resetOption(t,ZA(i))},e.prototype._resetOption=function(t,i){var a=!1,n=this._optionManager;if(!t||t==="recreate"){var o=n.mountOption(t==="recreate");!this.option||t==="recreate"?GA(this,o):(this.restoreData(),this._mergeOption(o,i)),a=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=n.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,i))}if(!t||t==="recreate"||t==="media"){var l=n.getMediaOption(this);l.length&&w(l,function(u){a=!0,this._mergeOption(u,i)},this)}return a},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,i){var a=this.option,n=this._componentsMap,o=this._componentsCount,s=[],l=Y(),u=i&&i.replaceMergeMainTypeMap;NA(this),w(t,function(p,c){p!=null&&(gt.hasClass(c)?c&&(s.push(c),l.set(c,!0)):a[c]=a[c]==null?Q(p):ot(a[c],p,!0))}),u&&u.each(function(p,c){gt.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),gt.topologicalTravel(s,gt.getAllClassMainTypes(),f,this);function f(p){var c=UA(this,p,Ot(t[p])),h=n.get(p),v=h?u&&u.get(p)?"replaceMerge":"normalMerge":"replaceAll",d=Vc(h,c,v);_T(d,p,gt),a[p]=null,n.set(p,null),o.set(p,0);var m=[],g=[],y=0,x,_;w(d,function(b,S){var T=b.existing,C=b.newOption;if(!C)T&&(T.mergeOption({},this),T.optionUpdated({},!1));else{var A=p==="series",D=gt.getClass(p,b.keyInfo.subType,!A);if(!D){if(0)var M,L;return}if(p==="tooltip"){if(x)return;x=!0}if(T&&T.constructor===D)T.name=b.keyInfo.name,T.mergeOption(C,this),T.optionUpdated(C,!1);else{var I=N({componentIndex:S},b.keyInfo);T=new D(C,this,this,I),N(T,I),b.brandNew&&(T.__requireNewView=!0),T.init(C,this,this),T.optionUpdated(null,!0)}}T?(m.push(T.option),g.push(T),y++):(m.push(void 0),g.push(void 0))},this),a[p]=m,n.set(p,g),o.set(p,y),p==="series"&&Ih(this)}this._seriesIndices||Ih(this)},e.prototype.getOption=function(){var t=Q(this.option);return w(t,function(i,a){if(gt.hasClass(a)){for(var n=Ot(i),o=n.length,s=!1,l=o-1;l>=0;l--)n[l]&&!rl(n[l])?s=!0:(n[l]=null,!s&&o--);n.length=o,t[a]=n}}),delete t[HA],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,i){var a=this._componentsMap.get(t);if(a){var n=a[i||0];if(n)return n;if(i==null){for(var o=0;o=e:t==="max"?r<=e:r===e}function uG(r,e){return r.join(",")===e.join(",")}var qA=nG;var Xi=w,If=K,KA=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Zy(r){var e=r&&r.itemStyle;if(e)for(var t=0,i=KA.length;t=0;m--){var g=r[m];if(s||(v=g.data.rawIndexOf(g.stackedByDimension,h)),v>=0){var y=g.data.getByRawIndex(g.stackResultDimension,v);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&c>=0&&y>0||l==="samesign"&&c<=0&&y<0){c=fT(c,y),d=y;break}}}return i[0]=c,i[1]=d,i})})}var Oh=function(){function r(e){this.data=e.data||(e.sourceFormat===ii?{}:[]),this.sourceFormat=e.sourceFormat||Hy,this.seriesLayoutBy=e.seriesLayoutBy||Br,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var i=0;id&&(d=x)}h[0]=v,h[1]=d}},a=function(){return this._data?this._data.length/this._dimSize:0};aD=(e={},e[Se+"_"+Br]={pure:!0,appendData:n},e[Se+"_"+$a]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[$e]={pure:!0,appendData:n},e[ii]={pure:!0,appendData:function(o){var s=this._data;w(o,function(l,u){for(var f=s[u]||(s[u]=[]),p=0;p<(l||[]).length;p++)f.push(l[p])})}},e[Ze]={appendData:n},e[ai]={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=0&&(d=o.interpolatedValue[m])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(e,t){return en(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,i){},r}();function r0(r){var e,t;return K(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function kn(r){return new wG(r)}var wG=function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,i=e&&e.skip;if(this._dirty&&t){var a=this.context;a.data=a.outputData=t.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 p;(this._dirty||n==="reset")&&(this._dirty=!1,p=this._doReset(i)),this._modBy=l,this._modDataCount=u;var c=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(p||h1&&i>0?s:o}};return n;function o(){return e=r?null:le},gte:function(r,e){return r>=e}},CG=function(){function r(e,t){if(!vt(t)){var i="";Bt(i)}this._opFn=uD[e],this._rvalFloat=Pr(t)}return r.prototype.evaluate=function(e){return vt(e)?this._opFn(e,this._rvalFloat):this._opFn(Pr(e),this._rvalFloat)},r}(),Vh=function(){function r(e,t){var i=e==="desc";this._resultLT=i?1:-1,t==null&&(t=i?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var i=vt(e)?e:Pr(e),a=vt(t)?t:Pr(t),n=isNaN(i),o=isNaN(a);if(n&&(i=this._incomparable),o&&(a=this._incomparable),n&&o){var s=B(e),l=B(t);s&&(i=l?e:0),l&&(a=s?t:0)}return ia?-this._resultLT:0},r}();var AG=function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Pr(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var i=typeof e;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(t=Pr(e)===this._rvalFloat)}return this._isEQ?t:!t},r}();function fD(r,e){return r==="eq"||r==="ne"?new AG(r==="eq",e):$(uD,r)?new CG(r,e):null}var DG=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return wi(e,t)},r}();function MG(r,e){var t=new DG,i=r.data,a=t.sourceFormat=r.sourceFormat,n=r.startIndex,o="";r.seriesLayoutBy!==Br&&Bt(o);var s=[],l={},u=r.dimensionsDefine;if(u)w(u,function(d,m){var g=d.name,y={index:m,name:g,displayName:d.displayName};if(s.push(y),g!=null){var x="";$(l,g)&&Bt(x),l[g]=y}});else for(var f=0;f65535?OG:NG}function Ll(){return[1/0,-1/0]}function zG(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function dD(r,e,t,i,a){var n=mD[t||"float"];if(a){var o=r[e],s=o&&o.length;if(s!==i){for(var l=new n(i),u=0;um[1]&&(m[1]=d)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,i){for(var a=this._provider,n=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=k(o,function(y){return y.property}),f=0;fg[1]&&(g[1]=m)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,i=t[e];if(i!=null&&ie)n=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(e,t,i){var a=this._chunks,n=a[e],o=[];if(!n)return o;i==null&&(i=1/0);for(var s=1/0,l=-1,u=0,f=0,p=this.count();f=0&&l<0)&&(s=v,l=h,u=0),h===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var i=t.constructor,a=this._count;if(i===Array){e=new i(a);for(var n=0;n=p&&y<=c||isNaN(y))&&(l[u++]=d),d++}v=!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=p&&y<=c||isNaN(y))&&(S>=_&&S<=b||isNaN(S))&&(l[u++]=d),d++}v=!0}}if(!v)if(n===1)for(var g=0;g=p&&y<=c||isNaN(y))&&(l[u++]=T)}else for(var g=0;ge[D][1])&&(C=!1)}C&&(l[u++]=t.getRawIndex(g))}return ug[1]&&(g[1]=m)}}}},r.prototype.lttbDownSample=function(e,t){var i=this.clone([e],!0),a=i._chunks,n=a[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,p,c,h=new(Rf(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;vf&&(f=p,c=_)}M>0&&Mf-v&&(l=f-v,s.length=l);for(var d=0;dp[1]&&(p[1]=g),c[h++]=y}return n._count=h,n._indices=c,n._updateGetRawIdx(),n},r.prototype.each=function(e,t){if(this._count)for(var i=e.length,a=this._chunks,n=0,o=this.count();nl&&(l=p)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var i=[],a=this._chunks,n=0;n=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function e(t,i,a,n){return wi(t[n],this._dimensions[n])}a0={arrayRows:e,objectRows:function(t,i,a,n){return wi(t[i],this._dimensions[n])},keyedColumns:e,original:function(t,i,a,n){var o=t&&(t.value==null?t:t.value);return wi(o instanceof Array?o[n]:o,this._dimensions[n])},typedArray:function(t,i,a,n){return t[n]}}}(),r}(),Of=kG;var Fh=function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),i=!!t.length,a,n;if(Bh(e)){var o=e,s=void 0,l=void 0,u=void 0;if(i){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,n=[f._getVersionSign()]}else s=o.get("data",!0),l=me(s)?ai:Ze,n=[];var p=this._getSourceMetaRawOption()||{},c=u&&u.metaRawOption||{},h=nt(p.seriesLayoutBy,c.seriesLayoutBy)||null,v=nt(p.sourceHeader,c.sourceHeader),d=nt(p.dimensions,c.dimensions),m=h!==c.seriesLayoutBy||!!v!=!!c.sourceHeader||d;a=m?[Pf(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:d},l)]:[]}else{var g=e;if(i){var y=this._applyTransform(t);a=y.sourceList,n=y.upstreamSignList}else{var x=g.get("source",!0);a=[Pf(x,this._getSourceMetaRawOption(),null)],n=[]}}this._setLocalSource(a,n)},r.prototype._applyTransform=function(e){var t=this._sourceHost,i=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(a!=null){var n="";e.length!==1&&gD(n)}var o,s=[],l=[];return w(e,function(u){u.prepareSource();var f=u.getSource(a||0),p="";a!=null&&!f&&gD(p),s.push(f),l.push(u._getVersionSign())}),i?o=hD(i,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[iD(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!r.noHeader;return w(r.blocks,function(a){var n=SD(a);n>=e&&(e=n+ +(i&&(!n||s0(a)&&!a.noHeader)))}),e}return 0}function BG(r,e,t,i){var a=e.noHeader,n=GG(SD(e)),o=[],s=e.blocks||[];Qt(!s||z(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if($(u,l)){var f=new Vh(u[l],null);s.sort(function(v,d){return f.evaluate(v.sortParam,d.sortParam)})}else l==="seriesDesc"&&s.reverse()}w(s,function(v,d){var m=e.valueFormatter,g=_D(v)(m?N(N({},r),{valueFormatter:m}):r,v,d>0?n.html:0,i);g!=null&&o.push(g)});var p=r.renderMode==="richText"?o.join(n.richText):l0(o.join(""),a?t:n.html);if(a)return p;var c=wh(e.header,"ordinal",r.useUTC),h=xD(i,r.renderMode).nameStyle;return r.renderMode==="richText"?bD(r,c,h)+n.richText+p:l0('
'+ke(c)+"
"+p,t)}function FG(r,e,t,i){var a=r.renderMode,n=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(_){return _=z(_)?_:[_],k(_,function(b,S){return wh(b,z(h)?h[S]:h,u)})};if(!(n&&o)){var p=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),c=n?"":wh(l,"ordinal",u),h=e.valueType,v=o?[]:f(e.value,e.dataIndex),d=!s||!n,m=!s&&n,g=xD(i,a),y=g.nameStyle,x=g.valueStyle;return a==="richText"?(s?"":p)+(n?"":bD(r,c,y))+(o?"":YG(r,v,d,m,x)):l0((s?"":p)+(n?"":HG(c,!s,y))+(o?"":WG(v,d,m,x)),t)}}function u0(r,e,t,i,a,n){if(r){var o=_D(r),s={useUTC:a,renderMode:t,orderMode:i,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,n)}}function GG(r){return{html:VG[r],richText:UG[r]}}function l0(r,e){var t='
',i="margin: "+e+"px 0 0";return'
'+r+t+"
"}function HG(r,e,t){var i=e?"margin-left:2px":"";return''+ke(r)+""}function WG(r,e,t,i){var a=t?"10px":"20px",n=e?"float:right;margin-left:"+a:"";return r=z(r)?r:[r],''+k(r,function(o){return ke(o)}).join("  ")+""}function bD(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function YG(r,e,t,i,a){var n=[a],o=i?10:20;return t&&n.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(z(e)?e.join(" "):e,n)}function Gh(r,e){var t=r.getData().getItemVisual(e,"style"),i=t[r.visualDrawType];return Yi(i)}function Hh(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var Wh=function(){function r(){this.richTextStyles={},this._nextStyleNameId=kc()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,i){var a=i==="richText"?this._generateStyleName():null,n=Th({color:t,type:e,renderMode:i,markerId:a});return B(n)?n:(this.richTextStyles[a]=n.style,n.content)},r.prototype.wrapRichTextStyle=function(e,t){var i={};z(t)?w(t,function(n){return N(i,n)}):N(i,t);var a=this._generateStyleName();return this.richTextStyles[a]=i,"{"+a+"|"+e+"}"},r}();function Yh(r){var e=r.series,t=r.dataIndex,i=r.multipleSeries,a=e.getData(),n=a.mapDimensionsAll("defaultedTooltip"),o=n.length,s=e.getRawValue(t),l=z(s),u=Gh(e,t),f,p,c,h;if(o>1||l&&!o){var v=ZG(s,e,t,n,u);f=v.inlineValues,p=v.inlineValueTypes,c=v.blocks,h=v.inlineValues[0]}else if(o){var d=a.getDimensionInfo(n[0]);h=f=en(a,t,n[0]),p=d.type}else h=f=l?s[0]:s;var m=il(e),g=m&&e.name||"",y=a.getName(t),x=i?g:y;return $t("section",{header:g,noHeader:i||!m,sortParam:h,blocks:[$t("nameValue",{markerType:"item",markerColor:u,name:x,noName:!Ie(x),value:f,valueType:p,dataIndex:t})].concat(c||[])})}function ZG(r,e,t,i,a){var n=e.getData(),o=Me(r,function(p,c,h){var v=n.getDimensionInfo(h);return p=p||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];i.length?w(i,function(p){f(en(n,t,p),p)}):w(r,f);function f(p,c){var h=n.getDimensionInfo(c);!h||h.otherDims.tooltip===!1||(o?u.push($t("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:p,valueType:h.type})):(s.push(p),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Vn=st();function Zh(r,e){return r.getName(e)||r.getId(e)}var Nf="__universalTransitionEnabled",Xh=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,i,a){this.seriesIndex=this.componentIndex,this.dataTask=kn({count:qG,reset:KG}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var n=Vn(this).sourceManager=new Fh(this);n.prepareSource();var o=this.getInitialData(t,a);TD(o,this),this.dataTask.context.data=o,Vn(this).dataBeforeProcessed=o,wD(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,i){var a=zn(this),n=a?Si(t):{},o=this.subType;gt.hasClass(o)&&(o+="Series"),ot(t,i.getTheme().get(this.subType)),ot(t,this.getDefaultOption()),Qr(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&Ur(t,n,a)},e.prototype.mergeOption=function(t,i){t=ot(this.option,t,!0),this.fillDataTextStyle(t.data);var a=zn(this);a&&Ur(this.option,t,a);var n=Vn(this).sourceManager;n.dirty(),n.prepareSource();var o=this.getInitialData(t,i);TD(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Vn(this).dataBeforeProcessed=o,wD(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!me(t))for(var i=["show"],a=0;athis.getShallow("animationThreshold")&&(i=!1),!!i},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,i,a){var n=this.ecModel,o=Af.prototype.getColorFromPalette.call(this,t,i,a);return o||(o=n.getColorFromPalette(t,i,a)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,i){this._innerSelect(this.getData(i),t)},e.prototype.unselect=function(t,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=0&&a.push(o)}return a},e.prototype.isSelected=function(t,i){var a=this.option.selectedMap;if(!a)return!1;var n=this.getData(i);return(a==="all"||a[Zh(n,t)])&&!n.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Nf])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,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"){K(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(t,i)}},e.registerClass=function(t){return gt.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(gt);Wt(Xh,Ml);Wt(Xh,Af);Bc(Xh,gt);function wD(r){var e=r.name;il(r)||(r.name=XG(r)||e)}function XG(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),i=[];return w(t,function(a){var n=e.getDimensionInfo(a);n.displayName&&i.push(n.displayName)}),i.join(" ")}function qG(r){return r.model.getRawData().count()}function KG(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),jG}function jG(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function TD(r,e){w(vn(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,et(JG,e))})}function JG(r,e){var t=f0(r);return t&&t.setOutputEnd((e||this).count()),e}function f0(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var i=t.currentTask;if(i){var a=i.agentStubMap;a&&(i=a.get(r.uid))}return i}}var Lt=Xh;var p0=function(){function r(){this.group=new j,this.uid=_i("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,i,a){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,i,a){},r.prototype.updateLayout=function(e,t,i,a){},r.prototype.updateVisual=function(e,t,i,a){},r.prototype.toggleBlurSeries=function(e,t,i){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r}();al(p0);Cn(p0);var Et=p0;function ni(){var r=st();return function(e){var t=r(e),i=e.pipelineContext,a=!!t.large,n=!!t.progressiveRender,o=t.large=!!(i&&i.large),s=t.progressiveRender=!!(i&&i.progressiveRender);return(a!==o||n!==s)&&"reset"}}var DD=st(),QG=ni(),c0=function(){function r(){this.group=new j,this.uid=_i("viewChart"),this.renderTask=kn({plan:$G,reset:t5}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,i,a){},r.prototype.highlight=function(e,t,i,a){var n=e.getData(a&&a.dataType);n&&AD(n,a,"emphasis")},r.prototype.downplay=function(e,t,i,a){var n=e.getData(a&&a.dataType);n&&AD(n,a,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,i,a){this.render(e,t,i,a)},r.prototype.updateLayout=function(e,t,i,a){this.render(e,t,i,a)},r.prototype.updateVisual=function(e,t,i,a){this.render(e,t,i,a)},r.prototype.eachRendered=function(e){dr(this.group,e)},r.markUpdateMethod=function(e,t){DD(e).updateMethod=t},r.protoInitialize=function(){var e=r.prototype;e.type="chart"}(),r}();function CD(r,e,t){r&&Pn(r)&&(e==="emphasis"?ir:ar)(r,t)}function AD(r,e,t){var i=vi(r,e),a=e&&e.highlightKey!=null?LC(e.highlightKey):null;i!=null?w(Ot(i),function(n){CD(r.getItemGraphicEl(n),t,a)}):r.eachItemGraphicEl(function(n){CD(n,t,a)})}al(c0,["dispose"]);Cn(c0);function $G(r){return QG(r.model)}function t5(r){var e=r.model,t=r.ecModel,i=r.api,a=r.payload,n=e.pipelineContext.progressiveRender,o=r.view,s=a&&DD(a).updateMethod,l=n?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,i,a),e5[l]}var e5={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Tt=c0;var qh="\0__throttleOriginMethod",MD="\0__throttleRate",LD="\0__throttleType";function Il(r,e,t){var i,a=0,n=0,o=null,s,l,u,f;e=e||0;function p(){n=new Date().getTime(),o=null,r.apply(l,u||[])}var c=function(){for(var h=[],v=0;v=0?p():o=setTimeout(p,-s),a=i};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(h){f=h},c}function Ti(r,e,t,i){var a=r[e];if(a){var n=a[qh]||a,o=a[LD],s=a[MD];if(s!==t||o!==i){if(t==null||!i)return r[e]=n;a=r[e]=Il(n,t,i==="debounce"),a[qh]=n,a[LD]=i,a[MD]=t}return a}}function rn(r,e){var t=r[e];t&&t[qh]&&(t.clear&&t.clear(),r[e]=t[qh])}var ID=st(),ED={itemStyle:Nr(by,!0),lineStyle:Nr(Sy,!0)},r5={lineStyle:"stroke",itemStyle:"fill"};function PD(r,e){var t=r.visualStyleMapper||ED[e];return t||(console.warn("Unknown style type '"+e+"'."),ED.itemStyle)}function RD(r,e){var t=r.visualDrawType||r5[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var OD={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),i=r.visualStyleAccessPath||"itemStyle",a=r.getModel(i),n=PD(r,i),o=n(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=RD(r,i),u=o[l],f=X(u)?u:null,p=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||p){var c=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=c,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||X(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||X(o.stroke)?c:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var d=r.getDataParams(v),m=N({},o);m[l]=f(d),h.setItemVisual(v,"style",m)}}}},zf=new Mt,ND={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),i=r.visualStyleAccessPath||"itemStyle",a=PD(r,i),n=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){zf.option=l[i];var u=a(zf),f=o.ensureUniqueItemVisual(s,"style");N(f,u),zf.option.decal&&(o.setItemVisual(s,"decal",zf.option.decal),zf.option.decal.dirty=!0),n in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},zD={performRawSeries:!0,overallReset:function(r){var e=Y();r.eachSeries(function(t){var i=t.getColorBy();if(!t.isColorBySeries()){var a=t.type+"-"+i,n=e.get(a);n||(n={},e.set(a,n)),ID(t).scope=n}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var i=t.getRawData(),a={},n=t.getData(),o=ID(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=RD(t,s);n.each(function(u){var f=n.getRawIndex(u);a[f]=u}),i.each(function(u){var f=a[u],p=n.getItemVisual(f,"colorFromPalette");if(p){var c=n.ensureUniqueItemVisual(f,"style"),h=i.getName(u)||u+"",v=i.count();c[l]=t.getColorFromPalette(h,o,v)}})}})}};var jh=Math.PI;function h0(r,e){e=e||{},q(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new j,i=new pt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(i);var a=new dt({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 pt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(n);var o;return e.showSpinner&&(o=new Qo({shape:{startAngle:-jh/2,endAngle:-jh/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:jh*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:jh*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.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=r.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:r.getWidth(),height:r.getHeight()})},t.resize(),t}var i5=function(){function r(e,t,i,a){this._stageTaskMap=Y(),this.ecInstance=e,this.api=t,i=this._dataProcessorHandlers=i.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=i.concat(a)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(i){var a=i.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),a=i.context,n=!t&&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}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var i=this._pipelineMap.get(e.uid),a=e.getData(),n=a.count(),o=i.progressiveEnabled&&t.incrementalPrepareRender&&n>=i.threshold,s=e.get("large")&&n>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?n:null;e.pipelineContext=i.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,i=t._pipelineMap=Y();e.eachSeries(function(a){var n=a.getProgressive(),o=a.uid;i.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:n&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),t._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),i=this.api;w(this._allHandlers,function(a){var n=e.get(a.uid)||e.set(a.uid,{}),o="";Qt(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,n,t,i),a.overallReset&&this._createOverallStageTask(a,n,t,i)},this)},r.prototype.prepareView=function(e,t,i,a){var n=e.renderTask,o=n.context;o.model=t,o.ecModel=i,o.api=a,n.__block=!e.incrementalPrepareRender,this._pipe(t,n)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,i){this._performStageTasks(this._visualHandlers,e,t,i)},r.prototype._performStageTasks=function(e,t,i,a){a=a||{};var n=!1,o=this;w(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),p=f.seriesTaskMap,c=f.overallTask;if(c){var h,v=c.agentStubMap;v.each(function(m){s(a,m)&&(m.dirty(),h=!0)}),h&&c.dirty(),o.updatePayload(c,i);var d=o.getPerformArgs(c,a.block);v.each(function(m){m.perform(d)}),c.perform(d)&&(n=!0)}else p&&p.each(function(m,g){s(a,m)&&m.dirty();var y=o.getPerformArgs(m,a.block);y.skip=!l.performRawSeries&&t.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},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(i){t=i.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,i,a){var n=this,o=t.seriesTaskMap,s=t.seriesTaskMap=Y(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,a).each(f);function f(p){var c=p.uid,h=s.set(c,o&&o.get(c)||kn({plan:l5,reset:u5,count:p5}));h.context={model:p,ecModel:i,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:n},n._pipe(p,h)}},r.prototype._createOverallStageTask=function(e,t,i,a){var n=this,o=t.overallTask=t.overallTask||kn({reset:a5});o.context={ecModel:i,api:a,overallReset:e.overallReset,scheduler:n};var s=o.agentStubMap,l=o.agentStubMap=Y(),u=e.seriesType,f=e.getTargetSeries,p=!0,c=!1,h="";Qt(!e.createOnAllSeries,h),u?i.eachRawSeriesByType(u,v):f?f(i,a).each(v):(p=!1,w(i.getSeries(),v));function v(d){var m=d.uid,g=l.set(m,s&&s.get(m)||(c=!0,kn({reset:n5,onDirty:s5})));g.context={model:d,overallProgress:p},g.agent=o,g.__block=p,n._pipe(d,g)}c&&o.dirty()},r.prototype._pipe=function(e,t){var i=e.uid,a=this._pipelineMap.get(i);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},r.wrapStageHandler=function(e,t){return X(e)&&(e={overallReset:e,seriesType:c5(e)}),e.uid=_i("stageHandler"),t&&(e.visualType=t),e},r}();function a5(r){r.overallReset(r.ecModel,r.api,r.payload)}function n5(r){return r.overallProgress&&o5}function o5(){this.agent.dirty(),this.getDownstream().dirty()}function s5(){this.agent&&this.agent.dirty()}function l5(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function u5(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Ot(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?k(e,function(t,i){return kD(i)}):f5}var f5=kD(0);function kD(r){return function(e,t){var i=t.data,a=t.resetDefines[r];if(a&&a.dataEach)for(var n=e.start;n0&&h===u.length-c.length){var v=u.slice(0,h);v!=="data"&&(t.mainType=v,t[c.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(i[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:t,dataQuery:i,otherQuery:a}},r.prototype.filter=function(e,t){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=t.cptQuery,u=t.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,t.otherQuery,a,n));function f(p,c,h,v){return p[h]==null||c[v||h]===p[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}();var d0=["symbol","symbolSize","symbolRotate","symbolOffset"],XD=d0.concat(["symbolKeepAspect"]),qD={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var i={},a={},n=!1,o=0;o=0&&ps(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Bf(r,e,t){for(var i=e.type==="radial"?C5(r,e,t):T5(r,e,t),a=e.colorStops,n=0;n0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:vt(r)?[r]:z(r)?r:null}function Ff(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&A5(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(t){var a=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(t=k(t,function(n){return n/a}),i/=a)}return[t,i]}var D5=new Ue(!0);function ev(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function tM(r){return typeof r=="string"&&r!=="none"}function rv(r){var e=r.fill;return e!=null&&e!=="none"}function eM(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function rM(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function iv(r,e,t){var i=ef(e.image,e.__image,t);if(nl(i)){var a=r.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)*go),n.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(n)}return a}}function M5(r,e,t,i){var a,n=ev(t),o=rv(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||D5,p=e.__dirty;if(!i){var c=t.fill,h=t.stroke,v=o&&!!c.colorStops,d=n&&!!h.colorStops,m=o&&!!c.image,g=n&&!!h.image,y=void 0,x=void 0,_=void 0,b=void 0,S=void 0;(v||d)&&(S=e.getBoundingRect()),v&&(y=p?Bf(r,c,S):e.__canvasFillGradient,e.__canvasFillGradient=y),d&&(x=p?Bf(r,h,S):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),m&&(_=p||!e.__canvasFillPattern?iv(r,c,e):e.__canvasFillPattern,e.__canvasFillPattern=_),g&&(b=p||!e.__canvasStrokePattern?iv(r,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),v?r.fillStyle=y:m&&(_?r.fillStyle=_:o=!1),d?r.strokeStyle=x:g&&(b?r.strokeStyle=b:n=!1)}var T=e.getGlobalScale();f.setScale(T[0],T[1],e.segmentIgnoreThreshold);var C,A;r.setLineDash&&t.lineDash&&(a=Ff(e),C=a[0],A=a[1]);var D=!0;(u||p&dn)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),D=!1),f.reset(),e.buildPath(f,e.shape,i),f.toStatic(),e.pathUpdated()),D&&f.rebuildPath(r,l?s:1),C&&(r.setLineDash(C),r.lineDashOffset=A),i||(t.strokeFirst?(n&&rM(r,t),o&&eM(r,t)):(o&&eM(r,t),n&&rM(r,t))),C&&r.setLineDash([])}function L5(r,e,t){var i=e.__image=ef(t.image,e.__image,e,e.onload);if(!(!i||!nl(i))){var a=t.x||0,n=t.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),t.sWidth&&t.sHeight){var u=t.sx||0,f=t.sy||0;r.drawImage(i,u,f,t.sWidth,t.sHeight,a,n,o,s)}else if(t.sx&&t.sy){var u=t.sx,f=t.sy,p=o-u,c=s-f;r.drawImage(i,u,f,p,c,a,n,o,s)}else r.drawImage(i,a,n,o,s)}}function I5(r,e,t){var i,a=t.text;if(a!=null&&(a+=""),a){r.font=t.font||Xr,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var n=void 0,o=void 0;r.setLineDash&&t.lineDash&&(i=Ff(e),n=i[0],o=i[1]),n&&(r.setLineDash(n),r.lineDashOffset=o),t.strokeFirst?(ev(t)&&r.strokeText(a,t.x,t.y),rv(t)&&r.fillText(a,t.x,t.y)):(rv(t)&&r.fillText(a,t.x,t.y),ev(t)&&r.strokeText(a,t.x,t.y)),n&&r.setLineDash([])}}var iM=["shadowBlur","shadowOffsetX","shadowOffsetY"],aM=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function fM(r,e,t,i,a){var n=!1;if(!i&&(t=t||{},e===t))return!1;if(i||e.opacity!==t.opacity){Fr(r,a),n=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?ua.opacity:o}(i||e.blend!==t.blend)&&(n||(Fr(r,a),n=!0),r.globalCompositeOperation=e.blend||ua.blend);for(var s=0;s0&&t.unfinished);t.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(t,i,a){if(!this[ur]){if(this._disposed){this.id;return}var n,o,s;if(K(i)&&(a=i.lazyUpdate,n=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[ur]=!0,!this._model||i){var l=new qA(this._api),u=this._theme,f=this._model=new Eh;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},M0);var p={seriesTransition:s,optionChanged:!0};if(a)this[Gr]={silent:n,updateParams:p},this[ur]=!1,this.getZr().wakeUp();else{try{Pl(this),Fn.update.call(this,null,p)}catch(c){throw this[Gr]=null,this[ur]=!1,c}this._ssr||this._zr.flush(),this[Gr]=null,this[ur]=!1,Wf.call(this,n),Yf.call(this,n)}}},e.prototype.setTheme=function(){},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||bt.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var i=this._zr.painter;return i.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(bt.svgSupported){var t=this._zr,i=t.storage.getDisplayList();return w(i,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var i=t.excludeComponents,a=this._model,n=[],o=this;w(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(t).toDataURL("image/"+(t&&t.type||"png"));return w(n,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var i=t.type==="svg",a=this.group,n=Math.min,o=Math.max,s=1/0;if(uv[a]){var l=s,u=s,f=-s,p=-s,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();w(cs,function(x,_){if(x.group===a){var b=i?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(Q(t)),S=x.getDom().getBoundingClientRect();l=n(S.left,l),u=n(S.top,u),f=o(S.right,f),p=o(S.bottom,p),c.push({dom:b,left:S.left,top:S.top})}}),l*=h,u*=h,f*=h,p*=h;var v=f-l,d=p-u,m=He.createCanvas(),g=Nc(m,{renderer:i?"svg":"canvas"});if(g.resize({width:v,height:d}),i){var y="";return w(c,function(x){var _=x.left-l,b=x.top-u;y+=''+x.dom+""}),g.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return t.connectedBackgroundColor&&g.add(new pt({shape:{x:0,y:0,width:v,height:d},style:{fill:t.connectedBackgroundColor}})),w(c,function(x){var _=new Kt({style:{x:x.left*h-l,y:x.top*h-u,image:x.dom}});g.add(_)}),g.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,i){return w0(this,"convertToPixel",t,i)},e.prototype.convertFromPixel=function(t,i){return w0(this,"convertFromPixel",t,i)},e.prototype.containPixel=function(t,i){if(this._disposed){this.id;return}var a=this._model,n,o=wn(a,t);return w(o,function(s,l){l.indexOf("Models")>=0&&w(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)n=n||!!f.containPoint(i);else if(l==="seriesModels"){var p=this._chartsMap[u.__viewId];p&&p.containPoint&&(n=n||p.containPoint(i,u))}},this)},this),!!n},e.prototype.getVisual=function(t,i){var a=this._model,n=wn(a,t,{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?Vf(s,l,i):ga(s,i)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;w(Q5,function(i){var a=function(n){var o=t.getModel(),s=n.target,l,u=i==="globalout";if(u?l={}:s&&qi(s,function(v){var d=tt(v);if(d&&d.dataIndex!=null){var m=d.dataModel||o.getSeriesByIndex(d.seriesIndex);return l=m&&m.getDataParams(d.dataIndex,d.dataType,s)||{},!0}else if(d.eventData)return l=N({},d.eventData),!0},!0),l){var f=l.componentType,p=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",p=l.seriesIndex);var c=f&&p!=null&&o.getComponent(f,p),h=c&&t[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];l.event=n,l.type=i,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:c,view:h},t.trigger(i,l)}};a.zrEventfulCallAtLast=!0,t._zr.on(i,a,t)}),w(Zf,function(i,a){t._messageCenter.on(a,function(n){this.trigger(a,n)},t)}),w(["selectchanged"],function(i){t._messageCenter.on(i,function(a){this.trigger(i,a)},t)}),jD(this._messageCenter,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 t=this.getDom();t&&Pg(this.getDom(),P0,"");var i=this,a=i._api,n=i._model;w(i._componentsViews,function(o){o.dispose(n,a)}),w(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 cs[i.id]},e.prototype.resize=function(t){if(!this[ur]){if(this._disposed){this.id;return}this._zr.resize(t);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var a=i.resetOption("media"),n=t&&t.silent;this[Gr]&&(n==null&&(n=this[Gr].silent),a=!0,this[Gr]=null),this[ur]=!0;try{a&&Pl(this),Fn.update.call(this,{type:"resize",animation:N({duration:0},t&&t.animation)})}catch(o){throw this[ur]=!1,o}this[ur]=!1,Wf.call(this,n),Yf.call(this,n)}}},e.prototype.showLoading=function(t,i){if(this._disposed){this.id;return}if(K(t)&&(i=t,t=""),t=t||"default",this.hideLoading(),!!L0[t]){var a=L0[t](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(t){var i=N({},t);return i.type=Zf[t.type],i},e.prototype.dispatchAction=function(t,i){if(this._disposed){this.id;return}if(K(i)||(i={silent:!!i}),!!sv[t.type]&&this._model){if(this[ur]){this._pendingActions.push(t);return}var a=i.silent;C0.call(this,t,a);var n=i.flush;n?this._zr.flush():n!==!1&&bt.browser.weChat&&this._throttledZrFlush(),Wf.call(this,a),Yf.call(this,a)}},e.prototype.updateLabelLayout=function(){Ci.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var i=t.seriesIndex,a=this.getModel(),n=a.getSeriesByIndex(i);n.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Pl=function(p){var c=p._scheduler;c.restorePipelines(p._model),c.prepareStageTasks(),b0(p,!0),b0(p,!1),c.plan()},b0=function(p,c){for(var h=p._model,v=p._scheduler,d=c?p._componentsViews:p._chartsViews,m=c?p._componentsMap:p._chartsMap,g=p._zr,y=p._api,x=0;xc.get("hoverLayerThreshold")&&!bt.node&&!bt.worker&&c.eachSeries(function(m){if(!m.preventUsingHoverLayer){var g=p._chartsMap[m.__viewId];g.__alive&&g.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(p,c){var h=p.get("blendMode")||null;c.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function s(p,c){if(!p.preventAutoZ){var h=p.get("z")||0,v=p.get("zlevel")||0;c.eachRendered(function(d){return l(d,h,v,-1/0),!0})}}function l(p,c,h,v){var d=p.getTextContent(),m=p.getTextGuideLine(),g=p.isGroup;if(g)for(var y=p.childrenRef(),x=0;x0?{duration:d,delay:h.get("delay"),easing:h.get("easing")}:null;c.eachRendered(function(g){if(g.states&&g.states.emphasis){if(Xa(g))return;if(g instanceof at&&IC(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(v){g.stateTransition=m;var x=g.getTextContent(),_=g.getTextGuideLine();x&&(x.stateTransition=m),_&&(_.stateTransition=m)}g.__dirty&&a(g)}})}TM=function(p){return new(function(c){E(h,c);function h(){return c!==null&&c.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return p._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var d=v.__ecComponentInfo;if(d!=null)return p._model.getComponent(d.mainType,d.index);v=v.parent}},h.prototype.enterEmphasis=function(v,d){ir(v,d),Ai(p)},h.prototype.leaveEmphasis=function(v,d){ar(v,d),Ai(p)},h.prototype.enterBlur=function(v){jc(v),Ai(p)},h.prototype.leaveBlur=function(v){ff(v),Ai(p)},h.prototype.enterSelect=function(v){iy(v),Ai(p)},h.prototype.leaveSelect=function(v){ay(v),Ai(p)},h.prototype.getModel=function(){return p.getModel()},h.prototype.getViewOfComponentModel=function(v){return p.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return p.getViewOfSeriesModel(v)},h}(Ph))(p)},zM=function(p){function c(h,v){for(var d=0;d=0)){AM.push(t);var n=v0.wrapStageHandler(t,a);n.__prio=e,n.__raw=t,r.push(n)}}function z0(r,e){L0[r]=e}function lnt(r){Em({createCanvas:r})}function WM(r,e,t){var i=x0("registerMap");i&&i(r,e,t)}function unt(r){var e=x0("getMap");return e&&e(r)}var YM=cD;Gn(I0,OD);Gn(fv,ND);Gn(fv,zD);Gn(I0,qD);Gn(fv,KD);Gn(LM,y0);R0(Rh);O0(F5,Ky);z0("default",h0);gr({type:En,event:En,update:En},qt);gr({type:lf,event:lf,update:lf},qt);gr({type:ul,event:ul,update:ul},qt);gr({type:uf,event:uf,update:uf},qt);gr({type:fl,event:fl,update:fl},qt);UM("light",FD);UM("dark",YD);var fnt={};var ZM=[],rH={registerPreprocessor:R0,registerProcessor:O0,registerPostInit:BM,registerPostUpdate:FM,registerUpdateLifecycle:pv,registerAction:gr,registerCoordinateSystem:GM,registerLayout:HM,registerVisual:Gn,registerTransform:YM,registerLoading:z0,registerMap:WM,registerImpl:yM,PRIORITY:IM,ComponentModel:gt,ComponentView:Et,SeriesModel:Lt,ChartView:Tt,registerComponentModel:function(r){gt.registerClass(r)},registerComponentView:function(r){Et.registerClass(r)},registerSeriesModel:function(r){Lt.registerClass(r)},registerChartView:function(r){Tt.registerClass(r)},registerSubTypeDefaulter:function(r,e){gt.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){Tg(r,e)}};function _t(r){if(z(r)){w(r,function(e){_t(e)});return}it(ZM,r)>=0||(ZM.push(r),X(r)&&(r={install:r}),r.install(rH))}function Xf(r){return r==null?0:r.length||1}function XM(r){return r}var iH=function(){function r(e,t,i,a,n,o){this._old=e,this._new=t,this._oldKeyGetter=i||XM,this._newKeyGetter=a||XM,this.context=n,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,i={},a=new Array(e.length),n=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,i,n,"_newKeyGetter");for(var o=0;o1){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)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,i={},a={},n=[],o=[];this._initIndexMap(e,i,n,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(p===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(p===1&&c===1)this._update&&this._update(f,u),a[l]=null;else if(p>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[l]=null;else if(p>1)for(var h=0;h1)for(var s=0;s30}var qf=K,Hn=k,uH=typeof Int32Array>"u"?Array:Int32Array,fH="e\0\0",KM=-1,pH=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],cH=["_approximateExtent"],jM,vv,Kf,jf,G0,dv,H0,hH=function(){function r(e,t){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","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i,a=!1;hv(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=t)){var i=this._store,a=i.getProvider();this._updateOrdinalMeta();var n=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Ze;if(l&&!a.pure)for(var u=[],f=e;f0},r.prototype.ensureUniqueItemVisual=function(e,t){var i=this._itemVisuals,a=i[e];a||(a=i[e]={});var n=a[t];return n==null&&(n=this.getVisual(t),z(n)?n=n.slice():qf(n)&&(n=N({},n)),a[t]=n),n},r.prototype.setItemVisual=function(e,t,i){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,qf(t)?N(a,t):a[t]=i},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){qf(e)?N(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,i){this._itemLayouts[e]=i?N(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var i=this.hostModel&&this.hostModel.seriesIndex;of(i,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){w(this._graphicEls,function(i,a){i&&e&&e.call(t,i,a)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:Hn(this.dimensions,this._getDimInfo,this),this.hostModel)),G0(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var i=this[e];X(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=i.apply(this,arguments);return t.apply(this,[a].concat(Du(arguments)))})},r.internalField=function(){jM=function(e){var t=e._invertedIndicesMap;w(t,function(i,a){var n=e._dimInfos[a],o=n.ordinalMeta,s=e._store;if(o){i=t[a]=new uH(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),a[t]=l}}}(),r}(),se=hH;var yL={};ui(yL,{createDimensions:()=>JM,createList:()=>qH,createScale:()=>jH,createSymbol:()=>Ht,createTextStyle:()=>QH,dataStack:()=>KH,enableHoverEmphasis:()=>gi,getECData:()=>tt,getLayoutRect:()=>Gt,mixinAxisModelCommonMethods:()=>JH});function JM(r,e){return Di(r,e).dimensions}function Di(r,e){Al(r)||(r=Dl(r)),e=e||{};var t=e.coordDimensions||[],i=e.dimensionsDefine||r.dimensionsDefine||[],a=Y(),n=[],o=dH(r,t,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&F0(o),l=i===r.dimensionsDefine,u=l?B0(r):U0(i),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var p=Y(f),c=new n0(o),h=0;h0&&(i.name=a+(n-1)),n++,e.set(a,n)}}function dH(r,e,t,i){var a=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,i||0);return w(e,function(n){var o;K(n)&&(o=n.dimsDef)&&(a=Math.max(a,o.length))}),a}function mH(r,e,t){if(t||e.hasKey(r)){for(var i=0;e.hasKey(r+i);)i++;r+=i}return e.set(r,!0),r}var gH=function(){function r(e){this.coordSysDims=[],this.axisMap=Y(),this.categoryAxisMap=Y(),this.coordSysName=e}return r}();function QM(r){var e=r.get("coordinateSystem"),t=new gH(e),i=yH[e];if(i)return i(r,t,t.axisMap,t.categoryAxisMap),t}var yH={cartesian2d:function(r,e,t,i){var a=r.getReferringComponents("xAxis",Xt).models[0],n=r.getReferringComponents("yAxis",Xt).models[0];e.coordSysDims=["x","y"],t.set("x",a),t.set("y",n),Ol(a)&&(i.set("x",a),e.firstCategoryDimIndex=0),Ol(n)&&(i.set("y",n),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,i){var a=r.getReferringComponents("singleAxis",Xt).models[0];e.coordSysDims=["single"],t.set("single",a),Ol(a)&&(i.set("single",a),e.firstCategoryDimIndex=0)},polar:function(r,e,t,i){var a=r.getReferringComponents("polar",Xt).models[0],n=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",n),t.set("angle",o),Ol(n)&&(i.set("radius",n),e.firstCategoryDimIndex=0),Ol(o)&&(i.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,i){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,i){var a=r.ecModel,n=a.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=n.dimensions.slice();w(n.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];t.set(f,u),Ol(u)&&(i.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Ol(r){return r.get("type")==="category"}function mv(r,e,t){t=t||{};var i=t.byIndex,a=t.stackedCoordDimension,n,o,s;xH(e)?n=e:(o=e.schema,n=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,p,c;if(w(n,function(y,x){B(y)&&(n[x]=y={name:y}),l&&!y.isExtraCoord&&(!i&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(f=y))}),f&&!i&&!u&&(i=!0),f){p="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var h=f.coordDim,v=f.type,d=0;w(n,function(y){y.coordDim===h&&d++});var m={name:p,coordDim:h,coordDimIndex:d,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},g={name:c,coordDim:c,coordDimIndex:d+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(c,v),g.storeDimIndex=s.ensureCalculationDimension(p,v)),o.appendCalculationDimension(m),o.appendCalculationDimension(g)):(n.push(m),n.push(g))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:c,stackResultDimension:p}}function xH(r){return!hv(r.schema)}function yr(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function Nl(r,e){return yr(r,e)?r.getCalculationInfo("stackResultDimension"):e}function _H(r,e){var t=r.get("coordinateSystem"),i=ma.get(t),a;return e&&e.coordSysDims&&(a=k(e.coordSysDims,function(n){var o={name:n},s=e.axisMap.get(n);if(s){var l=s.get("type");o.type=hs(l)}return o})),a||(a=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),a}function SH(r,e,t){var i,a;return t&&w(r,function(n,o){var s=n.coordDim,l=t.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&&(r[i].otherDims.itemName=0),i}function bH(r,e,t){t=t||{};var i=e.getSourceManager(),a,n=!1;r?(n=!0,a=Dl(r)):(a=i.getSource(),n=a.sourceFormat===Ze);var o=QM(e),s=_H(e,o),l=t.useEncodeDefaulter,u=X(l)?l:l?et(Dh,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!n},p=Di(a,f),c=SH(p.dimensions,t.createInvertedIndices,o),h=n?null:i.getSharedDataStore(p),v=mv(e,{schema:p,store:h}),d=new se(p,e);d.setCalculationInfo(v);var m=c!=null&&wH(a)?function(g,y,x,_){return _===c?x:this.defaultDimValueGetter(g,y,x,_)}:null;return d.hasItemOption=!1,d.initData(n?a:h,null,m),d}function wH(r){if(r.sourceFormat===Ze){var e=TH(r.data||[]);return!z(Bi(e))}}function TH(r){for(var e=0;et[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var i=this._extent;isNaN(e)||(i[0]=e),isNaN(t)||(i[1]=t)},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();Cn($M);var Hr=$M;var CH=0,AH=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++CH}return r.createByAxisModel=function(e){var t=e.option,i=t.data,a=i&&k(i,DH);return new r({categories:a,needCollect:!a,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,i=this._needCollect;if(!B(e)&&!i)return e;if(i&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var a=this._getOrCreateMap();return t=a.get(e),t==null&&(i?(t=this.categories.length,this.categories[t]=e,a.set(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Y(this.categories))},r}();function DH(r){return K(r)&&r.value!=null?r.value:r+""}var Jf=AH;function Qf(r){return r.type==="interval"||r.type==="log"}function eL(r,e,t,i){var a={},n=r[1]-r[0],o=a.interval=tl(n/e,!0);t!=null&&oi&&(o=a.interval=i);var s=a.intervalPrecision=W0(o),l=a.niceTickExtent=[Zt(Math.ceil(r[0]/o)*o,s),Zt(Math.floor(r[1]/o)*o,s)];return MH(l,r),a}function gv(r){var e=Math.pow(10,$s(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Zt(t*e)}function W0(r){return qe(r)+2}function tL(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function MH(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),tL(r,0,e),tL(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function Wn(r,e){return r>=e[0]&&r<=e[1]}function Yn(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function Zn(r,e){return r*(e[1]-e[0])+e[0]}var rL=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;i.type="ordinal";var a=i.getSetting("ordinalMeta");return a||(a=new Jf({})),z(a)&&(a=new Jf({categories:k(a,function(n){return K(n)?n.value:n})})),i._ordinalMeta=a,i._extent=i.getSetting("extent")||[0,a.categories.length-1],i}return e.prototype.parse=function(t){return t==null?NaN:B(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Wn(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Yn(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Zn(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],i=this._extent,a=i[0];a<=i[1];)t.push({value:a}),a++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=t.ordinalNumbers,a=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,i.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Hr);Hr.registerClass(rL);var $f=rL;var vs=Zt,iL=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Wn(t,this._extent)},e.prototype.normalize=function(t){return Yn(t,this._extent)},e.prototype.scale=function(t){return Zn(t,this._extent)},e.prototype.setExtent=function(t,i){var a=this._extent;isNaN(t)||(a[0]=parseFloat(t)),isNaN(i)||(a[1]=parseFloat(i))},e.prototype.unionExtent=function(t){var i=this._extent;t[0]i[1]&&(i[1]=t[1]),this.setExtent(i[0],i[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=W0(t)},e.prototype.getTicks=function(t){var i=this._interval,a=this._extent,n=this._niceExtent,o=this._intervalPrecision,s=[];if(!i)return s;var l=1e4;a[0]l)return[];var f=s.length?s[s.length-1].value:n[1];return a[1]>f&&(t?s.push({value:vs(f+i,o)}):s.push({value:a[1]})),s},e.prototype.getMinorTicks=function(t){for(var i=this.getTicks(!0),a=[],n=this.getExtent(),o=1;on[0]&&h0&&(n=n===null?s:Math.min(n,s))}t[i]=n}}return t}function K0(r){var e=IH(r),t=[];return w(r,function(i){var a=i.coordinateSystem,n=a.getBaseAxis(),o=n.getExtent(),s;if(n.type==="category")s=n.getBandWidth();else if(n.type==="value"||n.type==="time"){var l=n.dim+"_"+n.index,u=e[l],f=Math.abs(o[1]-o[0]),p=n.scale.getExtent(),c=Math.abs(p[1]-p[0]);s=u?f/c*u:f}else{var h=i.getData();s=Math.abs(o[1]-o[0])/h.count()}var v=W(i.get("barWidth"),s),d=W(i.get("barMaxWidth"),s),m=W(i.get("barMinWidth")||(uL(i)?.5:1),s),g=i.get("barGap"),y=i.get("barCategoryGap");t.push({bandWidth:s,barWidth:v,barMaxWidth:d,barMinWidth:m,barGap:g,barCategoryGap:y,axisKey:X0(n),stackId:Z0(i)})}),oL(t)}function oL(r){var e={};w(r,function(i,a){var n=i.axisKey,o=i.bandWidth,s=e[n]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[n]=s;var u=i.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=i.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var p=i.barMaxWidth;p&&(l[u].maxWidth=p);var c=i.barMinWidth;c&&(l[u].minWidth=c);var h=i.barGap;h!=null&&(s.gap=h);var v=i.barCategoryGap;v!=null&&(s.categoryGap=v)});var t={};return w(e,function(i,a){t[a]={};var n=i.stacks,o=i.bandWidth,s=i.categoryGap;if(s==null){var l=ft(n).length;s=Math.max(35-l*4,15)+"%"}var u=W(s,o),f=W(i.gap,1),p=i.remainedWidth,c=i.autoWidthCount,h=(p-u)/(c+(c-1)*f);h=Math.max(h,0),w(n,function(g){var y=g.maxWidth,x=g.minWidth;if(g.width){var _=g.width;y&&(_=Math.min(_,y)),x&&(_=Math.max(_,x)),g.width=_,p-=_+f*_,c--}else{var _=h;y&&y<_&&(_=Math.min(y,p)),x&&x>_&&(_=x),_!==h&&(g.width=_,p-=_+f*_,c--)}}),h=(p-u)/(c+(c-1)*f),h=Math.max(h,0);var v=0,d;w(n,function(g,y){g.width||(g.width=h),d=g,v+=g.width*(1+f)}),d&&(v-=d.width*f);var m=-v/2;w(n,function(g,y){t[a][y]=t[a][y]||{bandWidth:o,offset:m,width:g.width},m+=g.width*(1+f)})}),t}function sL(r,e,t){if(r&&e){var i=r[X0(e)];return i!=null&&t!=null?i[Z0(t)]:i}}function xv(r,e){var t=q0(r,e),i=K0(t);w(t,function(a){var n=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=Z0(a),u=i[X0(s)][l],f=u.offset,p=u.width;n.setLayout({bandWidth:u.bandWidth,offset:f,size:p})})}function _v(r){return{seriesType:r,plan:ni(),reset:function(e){if(lL(e)){var t=e.getData(),i=e.coordinateSystem,a=i.getBaseAxis(),n=i.getOtherAxis(a),o=t.getDimensionIndex(t.mapDimension(n.dim)),s=t.getDimensionIndex(t.mapDimension(a.dim)),l=e.get("showBackground",!0),u=t.mapDimension(n.dim),f=t.getCalculationInfo("stackResultDimension"),p=yr(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),c=n.isHorizontal(),h=EH(a,n),v=uL(e),d=e.get("barMinHeight")||0,m=f&&t.getDimensionIndex(f),g=t.getLayout("size"),y=t.getLayout("offset");return{progress:function(x,_){for(var b=x.count,S=v&&xr(b*3),T=v&&l&&xr(b*3),C=v&&xr(b),A=i.master.getRect(),D=c?A.width:A.height,M,L=_.getStore(),I=0;(M=x.next())!=null;){var P=L.get(p?m:o,M),R=L.get(s,M),O=h,U=void 0;p&&(U=+P-L.get(o,M));var V=void 0,F=void 0,Z=void 0,J=void 0;if(c){var lt=i.dataToPoint([P,R]);if(p){var ht=i.dataToPoint([U,R]);O=ht[0]}V=O,F=lt[1]+y,Z=lt[0]-O,J=g,Math.abs(Z)>>1;r[a][1]a&&(this._approxInterval=a);var s=Sv.length,l=Math.min(PH(Sv,this._approxInterval,0,s),s-1);this._interval=Sv[l][1],this._minLevelUnit=Sv[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return vt(t)?t:+Oe(t)},e.prototype.contain=function(t){return Wn(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Yn(this.parse(t),this._extent)},e.prototype.scale=function(t){return Zn(t,this._extent)},e.type="time",e}(Wr),Sv=[["second",_h],["minute",Sh],["hour",_l],["quarter-day",_l*6],["half-day",_l*12],["day",ei*1.2],["half-week",ei*3.5],["week",ei*7],["month",ei*31],["quarter",ei*95],["half-year",My/2],["year",My]];function RH(r,e,t,i){var a=Oe(e),n=Oe(t),o=function(v){return Ey(a,v,i)===Ey(n,v,i)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},p=function(){return f()&&o("minute")},c=function(){return p()&&o("second")},h=function(){return c()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return p();case"second":return c();case"millisecond":return h()}}function OH(r,e){return r/=ei,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function NH(r){var e=30*ei;return r/=e,r>6?6:r>3?3:r>2?2:1}function zH(r){return r/=_l,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function fL(r,e){return r/=e?Sh:_h,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function kH(r){return tl(r,!0)}function VH(r,e,t){var i=new Date(r);switch(ns(e)){case"year":case"month":i[Py(t)](0);case"day":i[Ry(t)](1);case"hour":i[Oy(t)](0);case"minute":i[Ny(t)](0);case"second":i[zy(t)](0),i[ky(t)](0)}return i.getTime()}function UH(r,e,t,i){var a=1e4,n=Iy,o=0;function s(D,M,L,I,P,R,O){for(var U=new Date(M),V=M,F=U[I]();V1&&R===0&&L.unshift({value:L[0].value-V})}}for(var R=0;R=i[0]&&y<=i[1]&&p++)}var x=(i[1]-i[0])/e;if(p>x*1.5&&c>x/1.5||(u.push(m),p>x||r===n[h]))break}f=[]}}}for(var _=wt(k(u,function(D){return wt(D,function(M){return M.value>=i[0]&&M.value<=i[1]&&!M.notAdd})}),function(D){return D.length>0}),b=[],S=_.length-1,h=0;h<_.length;++h)for(var T=_[h],C=0;C0;)n*=10;var s=[Zt(GH(i[0]/n)*n),Zt(FH(i[1]/n)*n)];this._interval=n,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){tp.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=Ji(t)/Ji(this.base),Wn(t,this._extent)},e.prototype.normalize=function(t){return t=Ji(t)/Ji(this.base),Yn(t,this._extent)},e.prototype.scale=function(t){return t=Zn(t,this._extent),wv(this.base,t)},e.type="log",e}(Hr),hL=j0.prototype;hL.getMinorTicks=tp.getMinorTicks;hL.getLabel=tp.getLabel;function Tv(r,e){return BH(r,qe(e))}Hr.registerClass(j0);var vL=j0;var HH=function(){function r(e,t,i){this._prepareParams(e,t,i)}return r.prototype._prepareParams=function(e,t,i){i[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var c=this._determinedMin,h=this._determinedMax;return c!=null&&(s=c,u=!0),h!=null&&(l=h,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:p}},r.prototype.modifyDataMinMax=function(e,t){this[YH[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var i=WH[e];this[i]=t},r.prototype.freeze=function(){this.frozen=!0},r}();var WH={min:"_determinedMin",max:"_determinedMax"},YH={min:"_dataMin",max:"_dataMax"};function Av(r,e,t){var i=r.rawExtentInfo;return i||(i=new HH(r,e,t),r.rawExtentInfo=i,i)}function Cv(r,e){return e==null?null:Oa(e)?NaN:r.parse(e)}function J0(r,e){var t=r.type,i=Av(r,e,r.getExtent()).calculate();r.setBlank(i.isBlank);var a=i.min,n=i.max,o=e.ecModel;if(o&&t==="time"){var s=q0("bar",o),l=!1;if(w(s,function(p){l=l||p.getBaseAxis()===e.axis}),l){var u=K0(s),f=ZH(a,n,e,u);a=f.min,n=f.max}}return{extent:[a,n],fixMin:i.minFixed,fixMax:i.maxFixed}}function ZH(r,e,t,i){var a=t.axis.getExtent(),n=a[1]-a[0],o=sL(i,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;w(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;w(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-r,p=1-(s+l)/n,c=f/p-f;return e+=c*(l/u),r-=c*(s/u),{min:r,max:e}}function Mi(r,e){var t=e,i=J0(r,t),a=i.extent,n=t.get("splitNumber");r instanceof vL&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l=o==="interval"||o==="time";r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:n,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function ya(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new $f({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new bv({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Hr.getClass(e)||Wr)}}function dL(r){var e=r.scale.getExtent(),t=e[0],i=e[1];return!(t>0&&i>0||t<0&&i<0)}function zl(r){var e=r.getLabelModel().get("formatter"),t=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(i){return function(a,n){return r.scale.getFormattedLabel(a,n,i)}}(e):B(e)?function(i){return function(a){var n=r.scale.getLabel(a),o=i.replace("{value}",n??"");return o}}(e):X(e)?function(i){return function(a,n){return t!=null&&(n=a.value-t),i(ep(r,a),n,a.level!=null?{level:a.level}:null)}}(e):function(i){return r.scale.getLabel(i)}}function ep(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function mL(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var i,a,n=t.getExtent();t instanceof $f?a=t.count():(i=t.getTicks(),a=i.length);var o=r.getLabelModel(),s=zl(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;fr[1]&&(r[1]=a[1])})}var Li=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r}();function qH(r){return ze(null,r)}var KH={isDimensionStacked:yr,enableDataStack:mv,getStackedDimension:Nl};function jH(r,e){var t=e;e instanceof Mt||(t=new Mt(e));var i=ya(t);return i.setExtent(r[0],r[1]),Mi(i,t),i}function JH(r){Wt(r,Li)}function QH(r,e){return e=e||{},Vt(r,null,null,e.state!=="normal")}var $H=1e-8;function xL(r,e){return Math.abs(r-e)<$H}function an(r,e,t){var i=0,a=r[0];if(!a)return!1;for(var n=1;na&&(i=o,a=l)}if(i)return e3(i.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var i=this._rect;if(i&&!t)return i;var a=[1/0,1/0],n=[-1/0,-1/0],o=this.geometries;return w(o,function(s){s.type==="polygon"?SL(s.exterior,a,n,t):w(s.points,function(l){SL(l,a,n,t)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(n[0])&&isFinite(n[1])||(a[0]=a[1]=n[0]=n[1]=0),i=new rt(a[0],a[1],n[0]-a[0],n[1]-a[1]),t||(this._rect=i),i},e.prototype.contain=function(t){var i=this.getBoundingRect(),a=this.geometries;if(!i.contain(t[0],t[1]))return!1;t:for(var n=0,o=a.length;n>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=n,a=s,n=l,i.push([s/t,l/t])}return i}function ip(r,e){return r=r3(r),k(wt(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var i=t.properties,a=t.geometry,n=[];switch(a.type){case"Polygon":var o=a.coordinates;n.push(new $0(o[0],o.slice(1)));break;case"MultiPolygon":w(a.coordinates,function(l){l[0]&&n.push(new $0(l[0],l.slice(1)))});break;case"LineString":n.push(new tx([a.coordinates]));break;case"MultiLineString":n.push(new tx(a.coordinates))}var s=new Lv(i[e||"name"],n,i.cp);return s.properties=i,s})}var CL={};ui(CL,{MAX_SAFE_INTEGER:()=>Ku,asc:()=>_e,getPercentWithPrecision:()=>uT,getPixelPrecision:()=>Qs,getPrecision:()=>qe,getPrecisionSafe:()=>Mg,isNumeric:()=>Vo,isRadianAroundZero:()=>Ua,linearMap:()=>zt,nice:()=>tl,numericToNumber:()=>Pr,parseDate:()=>Oe,quantile:()=>el,quantity:()=>zc,quantityExponent:()=>$s,reformIntervals:()=>Ju,remRadian:()=>ju,round:()=>Zt});var AL={};ui(AL,{format:()=>Qa,parse:()=>Oe});var DL={};ui(DL,{Arc:()=>Qo,BezierCurve:()=>Za,BoundingRect:()=>rt,Circle:()=>je,CompoundPath:()=>Rn,Ellipse:()=>jo,Group:()=>j,Image:()=>Kt,IncrementalDisplayable:()=>uh,Line:()=>re,LinearGradient:()=>yi,Polygon:()=>oe,Polyline:()=>ae,RadialGradient:()=>vl,Rect:()=>pt,Ring:()=>Ya,Sector:()=>pe,Text:()=>dt,clipPointsByRect:()=>mf,clipRectByRect:()=>gy,createIcon:()=>Hi,extendPath:()=>my,extendShape:()=>dy,getShapeClass:()=>es,getTransform:()=>ti,initProps:()=>Nt,makeImage:()=>vf,makePath:()=>On,mergePath:()=>Ye,registerShape:()=>$r,resizePath:()=>ch,updateProps:()=>yt});var ML={};ui(ML,{addCommas:()=>Tf,capitalFirst:()=>LA,encodeHTML:()=>ke,formatTime:()=>MA,formatTpl:()=>bl,getTextRect:()=>Vy,getTooltipMarker:()=>Th,normalizeCssArray:()=>ri,toCamelCase:()=>Sl,truncateText:()=>Fc});var LL={};ui(LL,{bind:()=>H,clone:()=>Q,curry:()=>et,defaults:()=>q,each:()=>w,extend:()=>N,filter:()=>wt,indexOf:()=>it,inherits:()=>Au,isArray:()=>z,isFunction:()=>X,isObject:()=>K,isString:()=>B,map:()=>k,merge:()=>ot,reduce:()=>Me});var ap=st();function IL(r){return r.type==="category"?i3(r):n3(r)}function EL(r,e){return r.type==="category"?a3(r,e):{ticks:k(r.scale.getTicks(),function(t){return t.value})}}function i3(r){var e=r.getLabelModel(),t=PL(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function PL(r,e){var t=RL(r,"labels"),i=Dv(e),a=OL(t,i);if(a)return a;var n,o;return X(i)?n=VL(r,i):(o=i==="auto"?o3(r):i,n=kL(r,o)),NL(t,i,{labels:n,labelCategoryInterval:o})}function a3(r,e){var t=RL(r,"ticks"),i=Dv(e),a=OL(t,i);if(a)return a;var n,o;if((!e.get("show")||r.scale.isBlank())&&(n=[]),X(i))n=VL(r,i,!0);else if(i==="auto"){var s=PL(r,r.getLabelModel());o=s.labelCategoryInterval,n=k(s.labels,function(l){return l.tickValue})}else o=i,n=kL(r,o,!0);return NL(t,i,{ticks:n,tickCategoryInterval:o})}function n3(r){var e=r.scale.getTicks(),t=zl(r);return{labels:k(e,function(i,a){return{level:i.level,formattedLabel:t(i,a),rawLabel:r.scale.getLabel(i),tickValue:i.value}})}}function RL(r,e){return ap(r)[e]||(ap(r)[e]=[])}function OL(r,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(o/40)));for(var l=n[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(i)),p=Math.abs(u*Math.sin(i)),c=0,h=0;l<=n[1];l+=s){var v=0,d=0,m=la(t({value:l}),e.font,"center","top");v=m.width*1.3,d=m.height*1.3,c=Math.max(c,v,7),h=Math.max(h,d,7)}var g=c/f,y=h/p;isNaN(g)&&(g=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(g,y))),_=ap(r.model),b=r.getExtent(),S=_.lastAutoInterval,T=_.lastTickCount;return S!=null&&T!=null&&Math.abs(S-x)<=1&&Math.abs(T-o)<=1&&S>x&&_.axisExtent0===b[0]&&_.axisExtent1===b[1]?x=S:(_.lastTickCount=o,_.lastAutoInterval=x,_.axisExtent0=b[0],_.axisExtent1=b[1]),x}function s3(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function kL(r,e,t){var i=zl(r),a=r.scale,n=a.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=n[0],f=a.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var p=Mv(r),c=o.get("showMinLabel")||p,h=o.get("showMaxLabel")||p;c&&u!==n[0]&&d(n[0]);for(var v=u;v<=n[1];v+=l)d(v);h&&v-l!==n[1]&&d(n[1]);function d(m){var g={value:m};s.push(t?m:{formattedLabel:i(g),rawLabel:a.getLabel(g),tickValue:m})}return s}function VL(r,e,t){var i=r.scale,a=zl(r),n=[];return w(i.getTicks(),function(o){var s=i.getLabel(o),l=o.value;e(o.value,s)&&n.push(t?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),n}var UL=[0,1],l3=function(){function r(e,t,i){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=i||[0,0]}return r.prototype.contain=function(e){var t=this._extent,i=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=i&&e<=a},r.prototype.containData=function(e){return this.scale.contain(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return Qs(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var i=this._extent;i[0]=e,i[1]=t},r.prototype.dataToCoord=function(e,t){var i=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(i=i.slice(),BL(i,a.count())),zt(e,UL,i,t)},r.prototype.coordToData=function(e,t){var i=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(i=i.slice(),BL(i,a.count()));var n=zt(e,i,UL,t);return this.scale.scale(n)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),i=EL(this,t),a=i.ticks,n=k(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return u3(this,n,o,e.clamp),n},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var i=this.scale.getMinorTicks(t),a=k(i,function(n){return k(n,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(){return IL(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),i=t[1]-t[0]+(this.onBand?1:0);i===0&&(i=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/i},r.prototype.calculateCategoryInterval=function(){return zL(this)},r}();function BL(r,e){var t=r[1]-r[0],i=e,a=t/i/2;r[0]+=a,r[1]-=a}function u3(r,e,t,i){var a=e.length;if(!r.onBand||t||!a)return;var n=r.getExtent(),o,s;if(a===1)e[0].coord=n[0],o=e[1]={coord:n[1]};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;w(e,function(h){h.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-e[a-1].tickValue,o={coord:e[a-1].coord+u*s},e.push(o)}var p=n[0]>n[1];c(e[0].coord,n[0])&&(i?e[0].coord=n[0]:e.shift()),i&&c(n[0],e[0].coord)&&e.unshift({coord:n[0]}),c(n[1],o.coord)&&(i?o.coord=n[1]:e.pop()),i&&c(o.coord,n[1])&&e.push({coord:n[1]});function c(h,v){return h=Zt(h),v=Zt(v),p?h>v:ha&&(a+=np);var h=Math.atan2(s,o);if(h<0&&(h+=np),h>=i&&h<=a||h+np>=i&&h+np<=a)return l[0]=f,l[1]=p,u-t;var v=t*Math.cos(i)+r,d=t*Math.sin(i)+e,m=t*Math.cos(a)+r,g=t*Math.sin(a)+e,y=(v-o)*(v-o)+(d-s)*(d-s),x=(m-o)*(m-o)+(g-s)*(g-s);return y0){e=e/180*Math.PI,$i.fromArray(r[0]),ne.fromArray(r[1]),be.fromArray(r[2]),St.sub(_a,$i,ne),St.sub(xa,be,ne);var t=_a.len(),i=xa.len();if(!(t<.001||i<.001)){_a.scale(1/t),xa.scale(1/i);var a=_a.dot(xa),n=Math.cos(e);if(n1&&St.copy(_r,be),_r.toArray(r[1])}}}}function GL(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,$i.fromArray(r[0]),ne.fromArray(r[1]),be.fromArray(r[2]),St.sub(_a,ne,$i),St.sub(xa,be,ne);var i=_a.len(),a=xa.len();if(!(i<.001||a<.001)){_a.scale(1/i),xa.scale(1/a);var n=_a.dot(e),o=Math.cos(t);if(n=l)St.copy(_r,be);else{_r.scaleAndAdd(xa,s/Math.tan(Math.PI/2-f));var p=be.x!==ne.x?(_r.x-ne.x)/(be.x-ne.x):(_r.y-ne.y)/(be.y-ne.y);if(isNaN(p))return;p<0?St.copy(_r,ne):p>1&&St.copy(_r,be)}_r.toArray(r[1])}}}}function rx(r,e,t,i){var a=t==="normal",n=a?r:r.ensureState(t);n.ignore=e;var o=i.get("smooth");o&&o===!0&&(o=.3),n.shape=n.shape||{},o>0&&(n.shape.smooth=o);var s=i.getModel("lineStyle").getLineStyle();a?r.useStyle(s):n.style=s}function d3(r,e){var t=e.smooth,i=e.points;if(i)if(r.moveTo(i[0][0],i[0][1]),t>0&&i.length>=3){var a=Kr(i[0],i[1]),n=Kr(i[1],i[2]);if(!a||!n){r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]);return}var o=Math.min(a,n)*t,s=xo([],i[1],i[0],o/a),l=xo([],i[1],i[2],o/n),u=xo([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var f=1;f0&&n&&S(-p/o,0,o);var m=r[0],g=r[o-1],y,x;_(),y<0&&T(-y,.8),x<0&&T(x,.8),_(),b(y,x,1),b(x,y,-1),_(),y<0&&C(-y),x<0&&C(x);function _(){y=m.rect[e]-i,x=a-g.rect[e]-g.rect[t]}function b(A,D,M){if(A<0){var L=Math.min(D,-A);if(L>0){S(L*M,0,o);var I=L+A;I<0&&T(-I*M,1)}else T(-A*M,1)}}function S(A,D,M){A!==0&&(u=!0);for(var L=D;L0)for(var I=0;I0;I--){var U=M[I-1]*O;S(-U,I,o)}}}function C(A){var D=A<0?-1:1;A=Math.abs(A);for(var M=Math.ceil(A/(o-1)),L=0;L0?S(M,0,L+1):S(-M,o-L-1,o),A-=M,A<=0)return}return u}function WL(r,e,t,i){return HL(r,"x","width",e,t,i)}function Rv(r,e,t,i){return HL(r,"y","height",e,t,i)}function Ov(r){var e=[];r.sort(function(d,m){return m.priority-d.priority});var t=new rt(0,0,0,0);function i(d){if(!d.ignore){var m=d.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}d.ignore=!0}for(var a=0;a=0&&i.attr(n.oldLayoutSelect),it(c,"emphasis")>=0&&i.attr(n.oldLayoutEmphasis)),yt(i,u,t,l)}else if(i.attr(u),!Ja(i).valueAnimation){var p=nt(i.style.opacity,1);i.style.opacity=0,Nt(i,{style:{opacity:p}},t,l)}if(n.oldLayout=u,i.states.select){var h=n.oldLayoutSelect={};Nv(h,u,zv),Nv(h,i.states.select,zv)}if(i.states.emphasis){var v=n.oldLayoutEmphasis={};Nv(v,u,zv),Nv(v,i.states.emphasis,zv)}dh(i,l,f,t,t)}if(a&&!a.ignore&&!a.invisible){var n=y3(a),o=n.oldLayout,d={points:a.shape.points};o?(a.attr({shape:o}),yt(a,{shape:d},t)):(a.setShape(d),a.style.strokePercent=0,Nt(a,{style:{strokePercent:1}},t)),n.oldLayout=d}},r}(),ZL=x3;var ox=st();function sx(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,i){var a=ox(t).labelManager;a||(a=ox(t).labelManager=new ZL),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,i){var a=ox(t).labelManager;i.updatedSeries.forEach(function(n){a.addLabelsOfSeries(t.getViewOfSeriesModel(n))}),a.updateLayoutConfig(t),a.layout(t),a.processLabelsOverall()})}var lx=Math.sin,ux=Math.cos,XL=Math.PI,ms=Math.PI*2,_3=180/XL,S3=function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,i,a,n,o){this._add("C",e,t,i,a,n,o)},r.prototype.quadraticCurveTo=function(e,t,i,a){this._add("Q",e,t,i,a)},r.prototype.arc=function(e,t,i,a,n,o){this.ellipse(e,t,i,i,0,a,n,o)},r.prototype.ellipse=function(e,t,i,a,n,o,s,l){var u=s-o,f=!l,p=Math.abs(u),c=sa(p-ms)||(f?u>=ms:-u>=ms),h=u>0?u%ms:u%ms+ms,v=!1;c?v=!0:sa(p)?v=!1:v=h>=XL==!!f;var d=e+i*ux(o),m=t+a*lx(o);this._start&&this._add("M",d,m);var g=Math.round(n*_3);if(c){var y=1/this._p,x=(f?1:-1)*(ms-y);this._add("A",i,a,g,1,+f,e+i*ux(o+x),t+a*lx(o+x)),y>.01&&this._add("A",i,a,g,0,+f,d,m)}else{var _=e+i*ux(s),b=t+a*lx(s);this._add("A",i,a,g,+v,+f,_,b)}},r.prototype.rect=function(e,t,i,a){this._add("M",e,t),this._add("l",i,0),this._add("l",0,a),this._add("l",-i,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,i,a,n,o,s,l,u){for(var f=[],p=this._p,c=1;c"}function D3(r){return""}function sp(r,e){e=e||{};var t=e.newline?` +`:"";function i(a){var n=a.children,o=a.tag,s=a.attrs,l=a.text;return A3(o,s)+(o!=="style"?ke(l):l||"")+(n?""+t+k(n,function(u){return i(u)}).join(t)+t:"")+D3(o)}return i(r)}function JL(r,e,t){t=t||{};var i=t.newline?` +`:"",a=" {"+i,n=i+"}",o=k(ft(r),function(l){return l+a+k(ft(r[l]),function(u){return u+":"+r[l][u]+";"}).join(i)+n}).join(i),s=k(ft(e),function(l){return"@keyframes "+l+a+k(ft(e[l]),function(u){return u+a+k(ft(e[l][u]),function(f){var p=e[l][u][f];return f==="d"&&(p='path("'+p+'")'),f+":"+p+";"}).join(i)+n}).join(i)+n}).join(i);return!o&&!s?"":[""].join(i)}function lp(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function vx(r,e,t,i){return we("svg","root",{width:r,height:e,xmlns:qL,"xmlns:xlink":cx,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+r+" "+e:!1},t)}var M3=0;function Uv(){return M3++}var QL={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"},gs="transform-origin";function L3(r,e,t){var i=N({},r.shape);N(i,e),r.buildPath(t,i);var a=new kv;return a.reset(Tc(r)),t.rebuildPath(a,1),a.generateStr(),a.getStr()}function I3(r,e){var t=e.originX,i=e.originY;(t||i)&&(r[gs]=t+"px "+i+"px")}var E3={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function tI(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function P3(r,e,t){var i=r.shape.paths,a={},n,o;if(w(i,function(l){var u=lp(t.zrId);u.animation=!0,up(l,{},u,!0);var f=u.cssAnims,p=u.cssNodes,c=ft(f),h=c.length;if(h){o=c[h-1];var v=f[o];for(var d in v){var m=v[d];a[d]=a[d]||{d:""},a[d].d+=m.d||""}for(var g in p){var y=p[g].animation;y.indexOf(o)>=0&&(n=y)}}}),!!n){e.d=!1;var s=tI(a,t);return n.replace(o,s)}}function $L(r){return B(r)?QL[r]?"cubic-bezier("+QL[r]+")":Ws(r)?r:"":""}function up(r,e,t,i){var a=r.animators,n=a.length,o=[];if(r instanceof Rn){var s=P3(r,e,t);if(s)o.push(s);else if(!n)return}else if(!n)return;for(var l={},u=0;u0}).length){var Pt=tI(T,t);return Pt+" "+y[0]+" both"}}for(var m in l){var s=d(l[m]);s&&o.push(s)}if(o.length){var g=t.zrId+"-cls-"+Uv();t.cssNodes["."+g]={animation:o.join(",")},e.class=g}}function rI(r,e,t){if(!r.ignore)if(r.isSilent()){var i={"pointer-events":"none"};eI(i,e,t,!0)}else{var a=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},n=a.fill;if(!n){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(n=Xs(l))}var u=a.lineWidth;if(u){var f=!a.strokeNoScale&&r.transform?r.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),eI(i,e,t,!0)}}function eI(r,e,t,i){var a=JSON.stringify(r),n=t.cssStyleCache[a];n||(n=t.zrId+"-cls-"+Uv(),t.cssStyleCache[a]=n,t.cssNodes["."+n+(i?":hover":"")]=r),e.class=e.class?e.class+" "+n:n}var fp=Math.round;function oI(r){return r&&B(r.src)}function sI(r){return r&&X(r.toDataURL)}function dx(r,e,t,i){px(function(a,n){var o=a==="fill"||a==="stroke";o&&wc(n)?xx(e,r,a,i):o&&Fu(n)?_x(t,r,a,i):o&&n==="none"?r[a]="transparent":r[a]=n},e,t,!1),U3(t,r,i)}function mx(r,e){var t=Cg(e);t&&(t.each(function(i,a){i!=null&&(r[(hx+a).toLowerCase()]=i+"")}),e.isSilent()&&(r[hx+"silent"]="true"))}function iI(r){return sa(r[0]-1)&&sa(r[1])&&sa(r[2])&&sa(r[3]-1)}function R3(r){return sa(r[4])&&sa(r[5])}function gx(r,e,t){if(e&&!(R3(e)&&iI(e))){var i=t?10:1e4;r.transform=iI(e)?"translate("+fp(e[4]*i)/i+" "+fp(e[5]*i)/i+")":kw(e)}}function aI(r,e,t){for(var i=r.points,a=[],n=0;n"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";Qt(c,m),Qt(h,m)}else if(c==null||h==null){var g=function(D,M){if(D){var L=D.elm,I=c||M.width,P=h||M.height;D.tag==="pattern"&&(u?(P=1,I/=n.width):f&&(I=1,P/=n.height)),D.attrs.width=I,D.attrs.height=P,L&&(L.setAttribute("width",I),L.setAttribute("height",P))}},y=ef(v,null,r,function(D){l||g(S,D),g(p,D)});y&&y.width&&y.height&&(c=c||y.width,h=h||y.height)}p=we("image","img",{href:v,width:c,height:h}),o.width=c,o.height=h}else a.svgElement&&(p=Q(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(p){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=we("pattern","",o,[p]),T=sp(S),C=i.patternCache,A=C[T];A||(A=i.zrId+"-p"+i.patternIdx++,C[T]=A,o.id=A,S=i.defs[A]=we("pattern",A,o,[p])),e[t]=Gu(A)}}function uI(r,e,t){var i=t.clipPathCache,a=t.defs,n=i[r.id];if(!n){n=t.zrId+"-c"+t.clipPathIdx++;var o={id:n};i[r.id]=n,a[n]=we("clipPath",n,o,[lI(r,t)])}e["clip-path"]=Gu(n)}function Sx(r){return document.createTextNode(r)}function Xn(r,e,t){r.insertBefore(e,t)}function bx(r,e){r.removeChild(e)}function Tx(r,e){r.appendChild(e)}function Cx(r){return r.parentNode}function Ax(r){return r.nextSibling}function Bv(r,e){r.textContent=e}var fI=58,F3=120,G3=we("","");function Dx(r){return r===void 0}function Sa(r){return r!==void 0}function H3(r,e,t){for(var i={},a=e;a<=t;++a){var n=r[a].key;n!==void 0&&(i[n]=a)}return i}function pp(r,e){var t=r.key===e.key,i=r.tag===e.tag;return i&&t}function cp(r){var e,t=r.children,i=r.tag;if(Sa(i)){var a=r.elm=Vv(i);if(Gv(G3,r),z(t))for(e=0;en?(v=t[l+1]==null?null:t[l+1].elm,pI(r,v,t,a,l)):Fv(r,e,i,n))}function Bl(r,e){var t=e.elm=r.elm,i=r.children,a=e.children;r!==e&&(Gv(r,e),Dx(e.text)?Sa(i)&&Sa(a)?i!==a&&W3(t,i,a):Sa(a)?(Sa(r.text)&&Bv(t,""),pI(t,null,a,0,a.length-1)):Sa(i)?Fv(t,i,0,i.length-1):Sa(r.text)&&Bv(t,""):r.text!==e.text&&(Sa(i)&&Fv(t,i,0,i.length-1),Bv(t,e.text)))}function Mx(r,e){if(pp(r,e))Bl(r,e);else{var t=r.elm,i=Cx(t);cp(e),i!==null&&(Xn(i,e.elm,Ax(t)),Fv(i,[r],0,0))}return e}var Y3=0,Z3=function(){function r(e,t,i){if(this.type="svg",this.refreshHover=cI("refreshHover"),this.configLayer=cI("configLayer"),this.storage=t,this._opts=i=N({},i),this.root=e,this._id="zr"+Y3++,this._oldVNode=vx(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=Vv("svg");Gv(null,this._oldVNode),a.appendChild(n),e.appendChild(a)}this.resize(i.width,i.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",Mx(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return yx(e,lp(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),i=this._width,a=this._height,n=lp(this._id);n.animation=e.animation,n.willUpdate=e.willUpdate,n.compress=e.compress,n.emphasis=e.emphasis;var o=[],s=this._bgVNode=X3(i,a,this._backgroundColor,n);s&&o.push(s);var l=e.compress?null:this._mainVNode=we("g","main",{},[]);this._paintList(t,n,l?l.children:o),l&&o.push(l);var u=k(ft(n.defs),function(c){return n.defs[c]});if(u.length&&o.push(we("defs","defs",{},u)),e.animation){var f=JL(n.cssNodes,n.cssAnims,{newline:!0});if(f){var p=we("style","stl",{},[],f);o.push(p)}}return vx(i,a,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},sp(this.renderToVNode({animation:nt(e.cssAnimation,!0),emphasis:nt(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:nt(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,i){for(var a=e.length,n=[],o=0,s,l,u=0,f=0;f=0&&!(c&&l&&c[d]===l[d]);d--);for(var m=v-1;m>d;m--)o--,s=n[o-1];for(var g=d+1;g=s)}}for(var p=this.__startIndex;p15)break}}P.prevElClipPaths&&g.restore()};if(y)if(y.length===0)C=m.__endIndex;else for(var D=h.dpr,M=0;M0&&e>a[0]){for(l=0;le);l++);s=i[a[l]]}if(a.splice(l+1,0,e),i[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.painter||(t.painter=this)}},r.prototype.eachLayer=function(e,t){for(var i=this._zlevelList,a=0;a0?Wv:0),this._needsManuallyCompositing),f.__builtin__||cn("ZLevel "+u+" has been used by unkown layer "+f.id),f!==n&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,t(l),n=f),a.__dirty&Pe&&!a.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(p,c){!p.__used&&p.getElementCount()>0&&(p.__dirty=!0,p.__startIndex=p.__endIndex=p.__drawIndex=0),p.__dirty&&p.__drawIndex<0&&(p.__drawIndex=p.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,w(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var i=this._layerConfig;i[e]?ot(i[e],t,!0):i[e]=t;for(var a=0;a-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",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:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Lt),gI=$3;function ta(r,e){var t=r.mapDimensionsAll("defaultedLabel"),i=t.length;if(i===1){var a=en(r,e,t[0]);return a!=null?a+"":null}else if(i){for(var n=[],o=0;o=0&&i.push(e[n])}return i.join(" ")}var tW=function(r){E(e,r);function e(t,i,a,n){var o=r.call(this)||this;return o.updateData(t,i,a,n),o}return e.prototype._createSymbol=function(t,i,a,n,o){this.removeAll();var s=Ht(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),s.drift=eW,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){ir(this.childAt(0))},e.prototype.downplay=function(){ar(this.childAt(0))},e.prototype.setZ=function(t,i){var a=this.childAt(0);a.zlevel=t,a.z=i},e.prototype.setDraggable=function(t,i){var a=this.childAt(0);a.draggable=t,a.cursor=!i&&t?"move":a.cursor},e.prototype.updateData=function(t,i,a,n){this.silent=!1;var o=t.getItemVisual(i,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,i),u=o!==this._symbolType,f=n&&n.disableAnimation;if(u){var p=t.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,t,i,l,p)}else{var c=this.childAt(0);c.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};f?c.attr(h):yt(c,h,s,i),Ae(c)}if(this._updateCommon(t,i,l,a,n),u){var c=this.childAt(0);if(!f){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,Nt(c,h,s,i)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,i,a,n,o){var s=this.childAt(0),l=t.hostModel,u,f,p,c,h,v,d,m,g;if(n&&(u=n.emphasisItemStyle,f=n.blurItemStyle,p=n.selectItemStyle,c=n.focus,h=n.blurScope,d=n.labelStatesModels,m=n.hoverScale,g=n.cursorStyle,v=n.emphasisDisabled),!n||t.hasItemOption){var y=n&&n.itemModel?n.itemModel:t.getItemModel(i),x=y.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),p=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),c=x.get("focus"),h=x.get("blurScope"),v=x.get("disabled"),d=Yt(y),m=x.getShallow("scale"),g=y.getShallow("cursor")}var _=t.getItemVisual(i,"symbolRotate");s.attr("rotation",(_||0)*Math.PI/180||0);var b=oi(t.getItemVisual(i,"symbolOffset"),a);b&&(s.x=b[0],s.y=b[1]),g&&s.attr("cursor",g);var S=t.getItemVisual(i,"style"),T=S.fill;if(s instanceof Kt){var C=s.style;s.useStyle(N({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},S))}else s.__isEmptyBrush?s.useStyle(N({},S)):s.useStyle(S),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=t.getItemVisual(i,"liftZ"),D=this._z2;A!=null?D==null&&(this._z2=s.z2,s.z2+=A):D!=null&&(s.z2=D,this._z2=null);var M=o&&o.useNameLabel;jt(s,d,{labelFetcher:l,labelDataIndex:i,defaultText:L,inheritColor:T,defaultOpacity:S.opacity});function L(R){return M?t.getName(R):ta(t,R)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=p,s.ensureState("blur").style=f;var P=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),kt(this,c,h,v)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,i,a){var n=this.childAt(0),o=tt(this).dataIndex,s=a&&a.animation;if(this.silent=n.silent=!0,a&&a.fadeLabel){var l=n.getTextContent();l&&xi(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){n.removeTextContent()}})}else n.removeTextContent();xi(n,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,i){return Ki(t.getItemVisual(i,"symbolSize"))},e}(j);function eW(r,e){this.parent.drift(r,e)}var nn=tW;function Ex(r,e,t,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(t))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function yI(r){return r!=null&&!K(r)&&(r={isIgnore:r}),r||{}}function xI(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:Yt(e),cursorStyle:e.get("cursor")}}var rW=function(){function r(e){this.group=new j,this._SymbolCtor=e||nn}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=yI(t);var i=this.group,a=e.hostModel,n=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=xI(e),u={disableAnimation:s},f=t.getSymbolPoint||function(p){return e.getItemLayout(p)};n||i.removeAll(),e.diff(n).add(function(p){var c=f(p);if(Ex(e,c,p,t)){var h=new o(e,p,l,u);h.setPosition(c),e.setItemGraphicEl(p,h),i.add(h)}}).update(function(p,c){var h=n.getItemGraphicEl(c),v=f(p);if(!Ex(e,v,p,t)){i.remove(h);return}var d=e.getItemVisual(p,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==d)i.remove(h),h=new o(e,p,l,u),h.setPosition(v);else{h.updateData(e,p,l,u);var g={x:v[0],y:v[1]};s?h.attr(g):yt(h,g,a)}i.add(h),e.setItemGraphicEl(p,h)}).remove(function(p){var c=n.getItemGraphicEl(p);c&&c.fadeOut(function(){i.remove(c)},a)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(i,a){var n=e._getSymbolPoint(a);i.setPosition(n),i.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=xI(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,i){this._progressiveEls=[],i=yI(i);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var n=e.start;n0?t=i[0]:i[1]<0&&(t=i[1]),t}function Xv(r,e,t,i){var a=NaN;r.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),i)),isNaN(a)&&(a=r.valueStart);var n=r.baseDataOffset,o=[];return o[n]=t.get(r.baseDim,i),o[1-n]=a,e.dataToPoint(o)}function aW(r,e){var t=[];return e.diff(r).add(function(i){t.push({cmd:"+",idx:i})}).update(function(i,a){t.push({cmd:"=",idx:a,idx1:i})}).remove(function(i){t.push({cmd:"-",idx:i})}).execute(),t}function Px(r,e,t,i,a,n,o,s){for(var l=aW(r,e),u=[],f=[],p=[],c=[],h=[],v=[],d=[],m=Zv(a,e,o),g=r.getLayout("points")||[],y=e.getLayout("points")||[],x=0;x=a||d<0)break;if(xs(g,y)){if(l){d+=n;continue}break}if(d===t)r[n>0?"moveTo":"lineTo"](g,y),p=g,c=y;else{var x=g-u,_=y-f;if(x*x+_*_<.5){d+=n;continue}if(o>0){for(var b=d+n,S=e[b*2],T=e[b*2+1];S===g&&T===y&&m=i||xs(S,T))h=g,v=y;else{D=S-u,M=T-f;var P=g-u,R=S-g,O=y-f,U=T-y,V=void 0,F=void 0;if(s==="x"){V=Math.abs(P),F=Math.abs(R);var Z=D>0?1:-1;h=g-Z*V*o,v=y,L=g+Z*F*o,I=y}else if(s==="y"){V=Math.abs(O),F=Math.abs(U);var J=M>0?1:-1;h=g,v=y-J*V*o,L=g,I=y+J*F*o}else V=Math.sqrt(P*P+O*O),F=Math.sqrt(R*R+U*U),A=F/(F+V),h=g-D*o*(1-A),v=y-M*o*(1-A),L=g+D*o*A,I=y+M*o*A,L=qn(L,Kn(S,g)),I=qn(I,Kn(T,y)),L=Kn(L,qn(S,g)),I=Kn(I,qn(T,y)),D=L-g,M=I-y,h=g-D*V/F,v=y-M*V/F,h=qn(h,Kn(u,g)),v=qn(v,Kn(f,y)),h=Kn(h,qn(u,g)),v=Kn(v,qn(f,y)),D=g-h,M=y-v,L=g+D*F/V,I=y+M*F/V}r.bezierCurveTo(p,c,h,v,g,y),p=L,c=I}else r.lineTo(g,y)}u=g,f=y,d+=n}return m}var _I=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),SI=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="ec-polyline",i}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new _I},e.prototype.buildPath=function(t,i){var a=i.points,n=0,o=a.length/2;if(i.connectNulls){for(;o>0&&xs(a[o*2-2],a[o*2-1]);o--);for(;n=0){var _=u?(v-l)*x+l:(h-s)*x+s;return u?[t,_]:[_,t]}s=h,l=v;break;case o.C:h=n[p++],v=n[p++],d=n[p++],m=n[p++],g=n[p++],y=n[p++];var b=u?Do(s,h,d,g,t,f):Do(l,v,m,y,t,f);if(b>0)for(var S=0;S=0){var _=u?he(l,v,m,y,T):he(s,h,d,g,T);return u?[t,_]:[_,t]}}s=g,l=y;break}}},e}(at);var nW=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(_I),qv=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="ec-polygon",i}return e.prototype.getDefaultShape=function(){return new nW},e.prototype.buildPath=function(t,i){var a=i.points,n=i.stackedOnPoints,o=0,s=a.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&xs(a[s*2-2],a[s*2-1]);s--);for(;oe){n?t.push(o(n,l,e)):a&&t.push(o(a,l,0),o(a,l,e));break}else a&&(t.push(o(a,l,0)),a=null),t.push(l),n=l}return t}function lW(r,e,t){var i=r.getVisual("visualMeta");if(!(!i||!i.length||!r.count())&&e.type==="cartesian2d"){for(var a,n,o=i.length-1;o>=0;o--){var s=r.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=k(n.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),f=u.length,p=n.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),p.reverse());var c=sW(u,a==="x"?t.getWidth():t.getHeight()),h=c.length;if(!h&&f)return u[0].coord<0?p[1]?p[1]:u[f-1].color:p[0]?p[0]:u[0].color;var v=10,d=c[0].coord-v,m=c[h-1].coord+v,g=m-d;if(g<.001)return"transparent";w(c,function(x){x.offset=(x.coord-d)/g}),c.push({offset:h?c[h-1].offset:.5,color:p[1]||"transparent"}),c.unshift({offset:h?c[0].offset:.5,color:p[0]||"transparent"});var y=new yi(0,0,0,0,c,!0);return y[a]=d,y[a+"2"]=m,y}}}function uW(r,e,t){var i=r.get("showAllSymbol"),a=i==="auto";if(!(i&&!a)){var n=t.getAxesByScale("ordinal")[0];if(n&&!(a&&fW(n,e))){var o=e.mapDimension(n.dim),s={};return w(n.getViewLabels(),function(l){var u=n.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function fW(r,e){var t=r.getExtent(),i=Math.abs(t[1]-t[0])/r.scale.count();isNaN(i)&&(i=0);for(var a=e.count(),n=Math.max(1,Math.round(a/5)),o=0;oi)return!1;return!0}function pW(r,e){return isNaN(r)||isNaN(e)}function cW(r){for(var e=r.length/2;e>0&&pW(r[e*2-2],r[e*2-1]);e--);return e-1}function AI(r,e){return[r[e*2],r[e*2+1]]}function hW(r,e,t){for(var i=r.length/2,a=t==="x"?0:1,n,o,s=0,l=-1,u=0;u=e||n>=e&&o<=e){l=u;break}s=u,n=o}return{range:[s,l],t:(e-n)/(o-n)}}function DI(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var Z=d.getState("emphasis").style;Z.lineWidth=+d.style.lineWidth+1}tt(d).seriesIndex=t.seriesIndex,kt(d,U,V,F);var J=CI(t.get("smooth")),lt=t.get("smoothMonotone");if(d.setShape({smooth:J,smoothMonotone:lt,connectNulls:C}),m){var ht=l.getCalculationInfo("stackedOnSeries"),ct=0;m.useStyle(q(f.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ht&&(ct=CI(ht.get("smooth"))),m.setShape({smooth:J,stackedOnSmooth:ct,smoothMonotone:lt,connectNulls:C}),ee(m,t,"areaStyle"),tt(m).seriesIndex=t.seriesIndex,kt(m,U,V,F)}var It=function(Ut){n._changePolyState(Ut)};l.eachItemGraphicEl(function(Ut){Ut&&(Ut.onHoverStateChange=It)}),this._polyline.onHoverStateChange=It,this._data=l,this._coordSys=o,this._stackedOnPoints=S,this._points=p,this._step=M,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,d),m&&this.packEventData(t,m))},e.prototype.packEventData=function(t,i){tt(i).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,i,a,n){var o=t.getData(),s=vi(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],p=l[s*2+1];if(isNaN(f)||isNaN(p)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,p))return;var c=t.get("zlevel")||0,h=t.get("z")||0;u=new nn(o,s),u.x=f,u.y=p,u.setZ(c,h);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=c,v.z=h,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Tt.prototype.highlight.call(this,t,i,a,n)},e.prototype.downplay=function(t,i,a,n){var o=t.getData(),s=vi(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 Tt.prototype.downplay.call(this,t,i,a,n)},e.prototype._changePolyState=function(t){var i=this._polygon;Ko(this._polyline,t),i&&Ko(i,t)},e.prototype._newPolyline=function(t){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new SI({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},e.prototype._newPolygon=function(t,i){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new qv({shape:{points:t,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,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=t.hostModel,f=u.get("animationDuration");X(f)&&(f=f(null));var p=u.get("animationDelay")||0,c=X(p)?p(null):p;t.eachItemGraphicEl(function(h,v){var d=h;if(d){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 T=y===g?0:(x-g)/(y-g);l&&(T=1-T);var C=X(p)?p(v):f*T+c,A=d.getSymbolPath(),D=A.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:C}),A.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,i,a){var n=t.getModel("endLabel");if(DI(t)){var o=t.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 dt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=cW(l);f>=0&&(jt(s,Yt(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:f,defaultText:function(p,c,h){return h!=null?Yv(o,h):ta(o,p)},enableTextSetter:!0},vW(n,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,i,a,n,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&n.originalX==null&&(n.originalX=u.x,n.originalY=u.y);var p=a.getLayout("points"),c=a.hostModel,h=c.get("connectNulls"),v=s.get("precision"),d=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?d:0)*(y?-1:1),S=(g?0:-d)*(y?-1:1),T=g?"x":"y",C=hW(p,_,T),A=C.range,D=A[1]-A[0],M=void 0;if(D>=1){if(D>1&&!h){var L=AI(p,A[0]);u.attr({x:L[0]+b,y:L[1]+S}),o&&(M=c.getRawValue(A[0]))}else{var L=f.getPointOn(_,T);L&&u.attr({x:L[0]+b,y:L[1]+S});var I=c.getRawValue(A[0]),P=c.getRawValue(A[1]);o&&(M=Uc(a,v,I,P,C.t))}n.lastFrameIndex=A[0]}else{var R=t===1||n.lastFrameIndex>0?A[0]:0,L=AI(p,R);o&&(M=c.getRawValue(R)),u.attr({x:L[0]+b,y:L[1]+S})}if(o){var O=Ja(u);typeof O.setLabelText=="function"&&O.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(t,i,a,n,o,s,l){var u=this._polyline,f=this._polygon,p=t.hostModel,c=Px(this._data,t,this._stackedOnPoints,i,this._coordSys,a,this._valueOrigin,s),h=c.current,v=c.stackedOnCurrent,d=c.next,m=c.stackedOnNext;if(o&&(h=jn(c.current,a,o,l),v=jn(c.stackedOnCurrent,a,o,l),d=jn(c.next,a,o,l),m=jn(c.stackedOnNext,a,o,l)),TI(h,d)>3e3||f&&TI(v,m)>3e3){u.stopAnimation(),u.setShape({points:d}),f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:m}));return}u.shape.__points=c.current,u.shape.points=h;var g={shape:{points:d}};c.current!==h&&(g.shape.__points=c.next),u.stopAnimation(),yt(u,g,p),f&&(f.setShape({points:h,stackedOnPoints:v}),f.stopAnimation(),yt(f,{shape:{stackedOnPoints:m}},p),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],x=c.status,_=0;_e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;te&&(e=n,t=a)}return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},gW=function(r){return Math.round(r.length/2)};function hp(r){return{seriesType:r,reset:function(e,t,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(),p=i.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(p||1),h=Math.round(s/c);if(isFinite(h)&&h>1){n==="lttb"&&e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h));var v=void 0;B(n)?v=mW[n]:X(n)&&(v=n),v&&e.setData(a.downSample(a.mapDimension(u.dim),1/h,v,gW))}}}}}function kx(r){r.registerChartView(MI),r.registerSeriesModel(gI),r.registerLayout(ea("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),i=e.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",i)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,hp("line"))}var LI=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){return ze(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,i,a){var n=this.coordinateSystem;if(n&&n.clampData){var o=n.clampData(t),s=n.dataToPoint(o);if(a)w(n.getAxes(),function(c,h){if(c.type==="category"&&i!=null){var v=c.getTicksCoords(),d=c.getTickModel().get("alignWithLabel"),m=o[h],g=i[h]==="x1"||i[h]==="y1";if(g&&!d&&(m+=1),v.length<2)return;if(v.length===2){s[h]=c.toGlobalCoord(c.getExtent()[g?1:0]);return}for(var y=void 0,x=void 0,_=1,b=0;bm){x=(S+y)/2;break}b===1&&(_=T-v[0].tickValue)}x==null&&(y?y&&(x=v[v.length-1].coord):x=v[0].coord),s[h]=c.toGlobalCoord(x)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),p=n.getBaseAxis().isHorizontal()?0:1;s[p]+=u+f/2}return s}return[NaN,NaN]},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"},e}(Lt);Lt.registerClass(LI);var Fl=LI;var yW=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return ze(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),i=this.get("largeThreshold");return i>t&&(t=i),t},e.prototype.brushSelector=function(t,i,a){return a.rect(i.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=or(Fl.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:"#212121"}},realtimeSort:!1}),e}(Fl),II=yW;var xW=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),_W=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="sausage",i}return e.prototype.getDefaultShape=function(){return new xW},e.prototype.buildPath=function(t,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,p=i.endAngle,c=i.clockwise,h=Math.PI*2,v=c?p-fMath.PI/2&&fs)return!0;s=p}return!1},e.prototype._isOrderDifferentInView=function(t,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(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,i,a,n){if(this._isOrderChangedWithinSameData(t,i,a)){var o=this._dataSort(t,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(t,i,a){var n=i.baseAxis,o=this._dataSort(t,n,function(s){return t.get(t.mapDimension(i.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.index,sortInfo:o})},e.prototype.remove=function(t,i){this._clear(this._model),this._removeOnRenderedListener(i)},e.prototype.dispose=function(t,i){this._removeOnRenderedListener(i)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var i=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(n){qa(n,t,tt(n).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Tt),RI={cartesian2d:function(r,e){var t=e.width<0?-1:1,i=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var a=r.x+r.width,n=r.y+r.height,o=Vx(e.x,r.x),s=Ux(e.x+e.width,a),l=Vx(e.y,r.y),u=Ux(e.y+e.height,n),f=sa?s:o,e.y=p&&l>n?u:l,e.width=f?0:s-o,e.height=p?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),f||p},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}var a=Ux(e.r,r.r),n=Vx(e.r0,r.r0);e.r=a,e.r0=n;var o=a-n<0;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}return o}},OI={cartesian2d:function(r,e,t,i,a,n,o,s,l){var u=new pt({shape:N({},i),z2:1});if(u.__dataIndex=t,u.name="item",n){var f=u.shape,p=a?"height":"width";f[p]=0}return u},polar:function(r,e,t,i,a,n,o,s,l){var u=!a&&l?Gl:pe,f=new u({shape:i,z2:1});f.name="item";var p=GI(a);if(f.calculateTextPosition=EI(p,{isRoundCap:u===Gl}),n){var c=f.shape,h=a?"r":"endAngle",v={};c[h]=a?i.r0:i.startAngle,v[h]=i[h],(s?yt:Nt)(f,{shape:v},n)}return f}};function wW(r,e){var t=r.get("realtimeSort",!0),i=e.getBaseAxis();if(t&&i.type==="category"&&e.type==="cartesian2d")return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function NI(r,e,t,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?yt:Nt)(t,{shape:l},e,a,null);var f=e?r.baseAxis.model:null;(o?yt:Nt)(t,{shape:u},f,a)}function zI(r,e){for(var t=0;t0?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(r,e,t){var i=r.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 AW(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function GI(r){return function(e){var t=e?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+t;default:return i}}}(r)}function VI(r,e,t,i,a,n,o,s){var l=e.getItemVisual(t,"style");if(s){if(!n.get("roundCap")){var f=r.shape,p=Ta(i.getModel("itemStyle"),f,!0);N(f,p),r.setShape(f)}}else{var u=i.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var c=i.getShallow("cursor");c&&r.attr("cursor",c);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",v=Yt(i);jt(r,v,{labelFetcher:n,labelDataIndex:t,defaultText:ta(n.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var d=r.getTextContent();if(s&&d){var m=i.get(["label","position"]);r.textConfig.inside=m==="middle"?!0:null,PI(r,m==="outside"?h:m,GI(o),i.get(["label","rotate"]))}vh(d,v,n.getRawValue(t),function(y){return Yv(e,y)});var g=i.getModel(["emphasis"]);kt(r,g.get("focus"),g.get("blurScope"),g.get("disabled")),ee(r,i),AW(a)&&(r.style.fill="none",r.style.stroke="none",w(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function DW(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var i=r.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 MW=function(){function r(){}return r}(),UI=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="largeBar",i}return e.prototype.getDefaultShape=function(){return new MW},e.prototype.buildPath=function(t,i){for(var a=i.points,n=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=0?t:null},30,!1);function LW(r,e,t){for(var i=r.baseDimIdx,a=1-i,n=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,p=n.length/3;f=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function HI(r,e,t){if(Ii(t,"cartesian2d")){var i=e,a=t.getArea();return{x:r?i.x:a.x,y:r?a.y:i.y,width:r?i.width:a.width,height:r?a.height:i.height}}else{var a=t.getArea(),n=e;return{cx:a.cx,cy:a.cy,r0:r?a.r0:n.r0,r:r?a.r:n.r,startAngle:r?n.startAngle:0,endAngle:r?n.endAngle:Math.PI*2}}}function IW(r,e,t){var i=r.type==="polar"?pe:pt;return new i({shape:HI(e,t,r),silent:!0,z2:0})}var WI=bW;function Bx(r){r.registerChartView(WI),r.registerSeriesModel(II),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,et(xv,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,_v("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,hp("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var YI=Math.PI*2,Qv=Math.PI/180;function ZI(r,e){return Gt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Fx(r,e){var t=ZI(r,e),i=r.get("center"),a=r.get("radius");z(a)||(a=[0,a]);var n=W(t.width,e.getWidth()),o=W(t.height,e.getHeight()),s=Math.min(n,o),l=W(a[0],s/2),u=W(a[1],s/2),f,p,c=r.coordinateSystem;if(c){var h=c.dataToPoint(i);f=h[0]||0,p=h[1]||0}else z(i)||(i=[i,i]),f=W(i[0],n)+t.x,p=W(i[1],o)+t.y;return{cx:f,cy:p,r0:l,r:u}}function Gx(r,e,t){e.eachSeriesByType(r,function(i){var a=i.getData(),n=a.mapDimension("value"),o=ZI(i,t),s=Fx(i,t),l=s.cx,u=s.cy,f=s.r,p=s.r0,c=-i.get("startAngle")*Qv,h=i.get("endAngle"),v=i.get("padAngle")*Qv;h=h==="auto"?c-YI:-h*Qv;var d=i.get("minAngle")*Qv,m=d+v,g=0;a.each(n,function(O){!isNaN(O)&&g++});var y=a.getSum(n),x=Math.PI/(y||g)*2,_=i.get("clockwise"),b=i.get("roseType"),S=i.get("stillShowZeroSum"),T=a.getDataExtent(n);T[0]=0;var C=_?1:-1,A=[c,h],D=C*v/2;af(A,!_),c=A[0],h=A[1];var M=Math.abs(h-c),L=M,I=0,P=c;if(a.setLayout({viewRect:o,r:f}),a.each(n,function(O,U){var V;if(isNaN(O)){a.setItemLayout(U,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:l,cy:u,r0:p,r:b?NaN:f});return}b!=="area"?V=y===0&&S?x:O*x:V=M/g,VV?(Z=P+C*V/2,J=Z):(Z=P+D,J=F-D),a.setItemLayout(U,{angle:V,startAngle:Z,endAngle:J,clockwise:_,cx:l,cy:u,r0:p,r:b?zt(O,T,[p,f]):f}),P=F}),Lt?g:m,b=Math.abs(x.label.y-t);if(b>=_.maxY){var S=x.label.x-e-x.len2*a,T=i+x.len,C=Math.abs(S)r.unconstrainedWidth?null:h:null;i.setStyle("width",v)}var d=i.getBoundingRect();n.width=d.width;var m=(i.style.margin||0)+2.1;n.height=d.height+m,n.y-=(n.height-p)/2}}}function Hx(r){return r.position==="center"}function Wx(r){var e=r.getData(),t=[],i,a,n=!1,o=(r.get("minShowLabelAngle")||0)*EW,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,p=s.y,c=s.height;function h(S){S.ignore=!0}function v(S){if(!S.ignore)return!0;for(var T in S.states)if(S.states[T].ignore===!1)return!0;return!1}e.each(function(S){var T=e.getItemGraphicEl(S),C=T.shape,A=T.getTextContent(),D=T.getTextGuideLine(),M=e.getItemModel(S),L=M.getModel("label"),I=L.get("position")||M.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),R=L.get("alignTo"),O=W(L.get("edgeDistance"),u),U=L.get("bleedMargin"),V=M.getModel("labelLine"),F=V.get("length");F=W(F,u);var Z=V.get("length2");if(Z=W(Z,u),Math.abs(C.endAngle-C.startAngle)0?"right":"left":lt>0?"left":"right"}var de=Math.PI,ce=0,rr=L.get("rotate");if(vt(rr))ce=rr*(de/180);else if(I==="center")ce=0;else if(rr==="radial"||rr===!0){var Ea=lt<0?-J+de:-J;ce=Ea}else if(rr==="tangential"&&I!=="outside"&&I!=="outer"){var Tr=Math.atan2(lt,ht);Tr<0&&(Tr=de*2+Tr);var Jp=ht>0;Jp&&(Tr=de+Tr),ce=Tr-de}if(n=!!ce,A.x=ct,A.y=It,A.rotation=ce,A.setStyle({verticalAlign:"middle"}),xt){A.setStyle({align:Pt});var Mm=A.states.select;Mm&&(Mm.x+=A.x,Mm.y+=A.y)}else{var pn=A.getBoundingRect().clone();pn.applyTransform(A.getComputedTransform());var Qb=(A.style.margin||0)+2.1;pn.y-=Qb/2,pn.height+=Qb,t.push({label:A,labelLine:D,position:I,len:F,len2:Z,minTurnAngle:V.get("minTurnAngle"),maxSurfaceAngle:V.get("maxSurfaceAngle"),surfaceNormal:new St(lt,ht),linePoints:Ut,textAlign:Pt,labelDistance:P,labelAlignTo:R,edgeDistance:O,bleedMargin:U,rect:pn,unconstrainedWidth:pn.width,labelStyleWidth:A.style.width})}T.setTextConfig({inside:xt})}}),!n&&r.get("avoidLabelOverlap")&&PW(t,i,a,l,u,c,f,p);for(var d=0;d0){for(var f=o.getItemLayout(0),p=1;isNaN(f&&f.startAngle)&&p=n.r0}},e.type="pie",e}(Tt),KI=OW;function si(r,e,t){e=z(e)&&{coordDimensions:e}||N({encodeDefine:r.getEncode()},e);var i=r.getSource(),a=Di(i,e).dimensions,n=new se(a,r);return n.initData(i,t),n}var NW=function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var i=this._getDataWithEncodedVisual();return i.getItemVisual(e,t)},r}(),Ca=NW;var zW=st(),kW=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ca(H(this.getData,this),H(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return si(this,{coordDimensions:["value"],encodeDefaulter:et(Cl,this)})},e.prototype.getDataParams=function(t){var i=this.getData(),a=zW(i),n=a.seats;if(!n){var o=[];i.each(i.mapDimension("value"),function(l){o.push(l)}),n=a.seats=Lg(o,i.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=n[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){Qr(t,"labelLine",["show"]);var i=t.labelLine,a=t.emphasis.labelLine;i.show=i.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,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%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,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}(Lt),jI=kW;function Yx(r){return{seriesType:r,reset:function(e,t){var i=e.getData();i.filterSelf(function(a){var n=i.mapDimension("value"),o=i.get(n,a);return!(vt(o)&&!isNaN(o)&&o<0)})}}}function Zx(r){r.registerChartView(KI),r.registerSeriesModel(jI),$h("pie",r.registerAction),r.registerLayout(et(Gx,"pie")),r.registerProcessor(ra("pie")),r.registerProcessor(Yx("pie"))}var VW=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,i){return ze(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,i,a){return a.point(i.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],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:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Lt),JI=VW;var QI=4,UW=function(){function r(){}return r}(),BW=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i._off=0,i.hoverDataIdx=-1,i}return e.prototype.getDefaultShape=function(){return new UW},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,i){var a=i.points,n=i.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&n[0]=0;u--){var f=u*2,p=n[f]-s/2,c=n[f+1]-l/2;if(t>=p&&i>=c&&t<=p+s&&i<=c+l)return u}return-1},e.prototype.contain=function(t,i){var a=this.transformCoordToLocal(t,i),n=this.getBoundingRect();if(t=a[0],i=a[1],n.contain(t,i)){var o=this.hoverDataIdx=this.findDataIndex(t,i);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){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,p=-1/0,c=0;c=0&&(u.dataIndex=p+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),$I=FW;var GW=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n=t.getData(),o=this._updateSymbolDraw(n,t);o.updateData(n,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,i,a){var n=t.getData(),o=this._updateSymbolDraw(n,t);o.incrementalPrepareUpdate(n),this._finished=!1},e.prototype.incrementalRender=function(t,i,a){this._symbolDraw.incrementalUpdate(t,i.getData(),{clipShape:this._getClipShape(i)}),this._finished=t.end===i.getData().count()},e.prototype.updateTransform=function(t,i,a){var n=t.getData();if(this.group.dirty(),!this._finished||n.count()>1e4)return{update:!0};var o=ea("").reset(t,i,a);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(n)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var i=t.coordinateSystem;return i&&i.getArea&&i.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,i){var a=this._symbolDraw,n=i.pipelineContext,o=n.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new $I:new ba,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,i){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Tt),tE=GW;var HW=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(gt),eE=HW;var $v=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Xt).models[0]},e.type="cartesian2dAxis",e}(gt);Wt($v,Li);var rE={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:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},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},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},WW=ot({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},rE),Xx=ot({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},rE),YW=ot({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Xx),ZW=q({logBase:10},Xx),td={category:WW,value:Xx,time:YW,log:ZW};var iE={value:1,category:1,time:1,log:1};function ia(r,e,t,i){w(iE,function(a,n){var o=ot(ot({},td[n],!0),i,!0),s=function(l){E(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,p){var c=zn(this),h=c?Si(f):{},v=p.getTheme();ot(f,v.get(n+"Axis")),ot(f,this.getDefaultOption()),f.type=aE(f),c&&Ur(f,h,c)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Jf.createByAxisModel(this))},u.prototype.getCategories=function(f){var p=this.option;if(p.type==="category")return f?p.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+n,u.defaultOption=o,u}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",aE)}function aE(r){return r.type||(r.data?"category":"value")}var XW=function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return k(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),wt(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r}(),nE=XW;var ed=["x","y"];function oE(r){return r.type==="interval"||r.type==="time"}var qW=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=ed,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!oE(t)||!oE(i))){var a=t.getExtent(),n=i.getExtent(),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,p=(s[1]-o[1])/u,c=o[0]-a[0]*f,h=o[1]-n[0]*p,v=this._transform=[f,0,0,p,c,h];this._invTransform=jr([],v)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var i=this.getAxis("x"),a=this.getAxis("y");return i.contain(i.toLocalCoord(t[0]))&&a.contain(a.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,i){var a=this.dataToPoint(t),n=this.dataToPoint(i),o=this.getArea(),s=new rt(a[0],a[1],n[0]-a[0],n[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,i,a){a=a||[];var n=t[0],o=t[1];if(this._transform&&n!=null&&isFinite(n)&&o!=null&&isFinite(o))return fe(a,t,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(t,i){var a=this.getAxis("x").scale,n=this.getAxis("y").scale,o=a.getExtent(),s=n.getExtent(),l=a.parse(t[0]),u=n.parse(t[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(t,i){var a=[];if(this._invTransform)return fe(a,t,this._invTransform);var n=this.getAxis("x"),o=this.getAxis("y");return a[0]=n.coordToData(n.toLocalCoord(t[0]),i),a[1]=o.coordToData(o.toLocalCoord(t[1]),i),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var i=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),n=Math.min(i[0],i[1])-t,o=Math.min(a[0],a[1])-t,s=Math.max(i[0],i[1])-n+t,l=Math.max(a[0],a[1])-o+t;return new rt(n,o,s,l)},e}(nE),sE=qW;var KW=function(r){E(e,r);function e(t,i,a,n,o){var s=r.call(this,t,i,a)||this;return s.index=0,s.type=n||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),t&&i[0]>i[1]&&i.reverse(),i},e.prototype.pointToData=function(t,i){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),i)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(Fe),lE=KW;function vp(r,e,t){t=t||{};var i=r.coordinateSystem,a=e.axis,n={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,f=i.getRect(),p=[f.x,f.x+f.width,f.y,f.y+f.height],c={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,v=u==="x"?[p[2]-h,p[3]+h]:[p[0]-h,p[1]+h];if(o){var d=o.toGlobalCoord(o.dataToCoord(0));v[c.onZero]=Math.max(Math.min(d,v[1]),v[0])}n.position=[u==="y"?v[c[l]]:p[0],u==="x"?v[c[l]]:p[3]],n.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=m[s],n.labelOffset=o?v[c[s]]-v[c.onZero]:0,e.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Jt(t.labelInside,e.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var g=e.get(["axisLabel","rotate"]);return n.labelRotate=l==="top"?-g:g,n.z2=1,n}function qx(r){return r.get("coordinateSystem")==="cartesian2d"}function Kx(r){var e={xAxisModel:null,yAxisModel:null};return w(e,function(t,i){var a=i.replace(/Model$/,""),n=r.getReferringComponents(a,Xt).models[0];e[i]=n}),e}var jx=Math.log;function rd(r,e,t){var i=Wr.prototype,a=i.getTicks.call(t),n=i.getTicks.call(t,!0),o=a.length-1,s=i.getInterval.call(t),l=J0(r,e),u=l.extent,f=l.fixMin,p=l.fixMax;if(r.type==="log"){var c=jx(r.base);u=[jx(u[0])/c,jx(u[1])/c]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:p});var h=i.getExtent.call(r);f&&(u[0]=h[0]),p&&(u[1]=h[1]);var v=i.getInterval.call(r),d=u[0],m=u[1];if(f&&p)v=(m-d)/o;else if(f)for(m=u[0]+v*o;mu[0]&&isFinite(d)&&isFinite(u[0]);)v=gv(v),d=u[1]-v*o;else{var g=r.getTicks().length-1;g>o&&(v=gv(v));var y=v*o;m=Math.ceil(u[1]/v)*v,d=Zt(m-y),d<0&&u[0]>=0?(d=0,m=Zt(y)):m>0&&u[1]<=0&&(m=0,d=-Zt(y))}var x=(a[0].value-n[0].value)/s,_=(a[o].value-n[o].value)/s;if(i.setExtent.call(r,d+v*x,m+v*_),i.setInterval.call(r,v),(x||_)&&i.setNiceExtent.call(r,d+v,m-v),0)var b}var jW=function(){function r(e,t,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ed,this._initCartesian(e,t,i),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var i=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=ft(o),u=l.length;if(u){for(var f=[],p=u-1;p>=0;p--){var c=+l[p],h=o[c],v=h.model,d=h.scale;Qf(d)&&v.get("alignTicks")&&v.get("interval")==null?f.push(h):(Mi(d,v),Qf(d)&&(s=h))}f.length&&(s||(s=f.pop(),Mi(s.scale,s.model)),w(f,function(m){rd(m.scale,m.model,s.scale)}))}}a(i.x),a(i.y);var n={};w(i.x,function(o){fE(i,"y",o,n)}),w(i.y,function(o){fE(i,"x",o,n)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,i){var a=e.getBoxLayoutParams(),n=!i&&e.get("containLabel"),o=Gt(a,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),n&&(w(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=mL(u);if(f){var p=u.isHorizontal()?"height":"width",c=u.model.get(["axisLabel","margin"]);o[p]-=f[p]+c,u.position==="top"?o.y+=f.height+c:u.position==="left"&&(o.x+=f.width+c)}}}),l()),w(this._coordsList,function(u){u.calcAffineTransform()});function l(){w(s,function(u){var f=u.isHorizontal(),p=f?[0,o.width]:[0,o.height],c=u.inverse?1:0;u.setExtent(p[c],p[1-c]),JW(u,f?o.x:o.y)})}},r.prototype.getAxis=function(e,t){var i=this._axesMap[e];if(i!=null)return i[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var i="x"+e+"y"+t;return this._coordsMap[i]}K(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,n=this._coordsList;a0?"top":"bottom",n="center"):Ua(a-Jn)?(o=i>0?"bottom":"top",n="center"):(o="middle",a>0&&a0?"right":"left":n=i>0?"left":"right"),{rotation:a,textAlign:n,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r}(),hE={axisLine:function(r,e,t,i){var a=e.get(["axisLine","show"]);if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisLine")),!!a){var n=e.axis.getExtent(),o=i.transform,s=[n[0],0],l=[n[1],0],u=s[0]>l[0];o&&(fe(s,s,o),fe(l,l,o));var f=N({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),p=new re({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Ka(p.shape,p.style.lineWidth),p.anid="line",t.add(p);var c=e.get(["axisLine","symbol"]);if(c!=null){var h=e.get(["axisLine","symbolSize"]);B(c)&&(c=[c,c]),(B(h)||vt(h))&&(h=[h,h]);var v=oi(e.get(["axisLine","symbolOffset"])||0,h),d=h[0],m=h[1];w([{rotate:r.rotation+Math.PI/2,offset:v[0],r:0},{rotate:r.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(g,y){if(c[y]!=="none"&&c[y]!=null){var x=Ht(c[y],-d/2,-m/2,d,m,f.stroke,!0),_=g.r+g.offset,b=u?l:s;x.attr({rotation:g.rotate,x:b[0]+_*Math.cos(r.rotation),y:b[1]-_*Math.sin(r.rotation),silent:!0,z2:11}),t.add(x)}})}}},axisTickLabel:function(r,e,t,i){var a=t4(t,i,e,r),n=r4(t,i,e,r);if($W(e,n,a),e4(t,i,e,r.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=Pv(k(n,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Ov(o)}},axisName:function(r,e,t,i){var a=Jt(r.axisName,e.get("name"));if(a){var n=e.get("nameLocation"),o=r.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),f=u[0]>u[1]?-1:1,p=[n==="start"?u[0]-f*l:n==="end"?u[1]+f*l:(u[0]+u[1])/2,dE(n)?r.labelOffset+o*l:0],c,h=e.get("nameRotate");h!=null&&(h=h*Jn/180);var v;dE(n)?c=_s.innerTextLayout(r.rotation,h??r.rotation,o):(c=QW(r.rotation,n,h||0,u),v=r.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(c.rotation)),!isFinite(v)&&(v=null)));var d=s.getFont(),m=e.get("nameTruncate",!0)||{},g=m.ellipsis,y=Jt(r.nameTruncateMaxWidth,m.maxWidth,v),x=new dt({x:p[0],y:p[1],rotation:c.rotation,silent:_s.isLabelSilent(e),style:Vt(s,{text:a,font:d,overflow:"truncate",width:y,ellipsis:g,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||c.textAlign,verticalAlign:s.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(Wi({el:x,componentModel:e,itemName:a}),x.__fullText=a,x.anid="name",e.get("triggerEvent")){var _=_s.makeAxisEventDataBase(e);_.targetType="axisName",_.name=a,tt(x).eventData=_}i.add(x),x.updateTransform(),t.add(x),x.decomposeTransform()}}};function QW(r,e,t,i){var a=ju(t-r),n,o,s=i[0]>i[1],l=e==="start"&&!s||e!=="start"&&s;return Ua(a-Jn/2)?(o=l?"bottom":"top",n="center"):Ua(a-Jn*1.5)?(o=l?"top":"bottom",n="center"):(o="middle",aJn/2?n=l?"left":"right":n=l?"right":"left"),{rotation:a,textAlign:n,textVerticalAlign:o}}function $W(r,e,t){if(!Mv(r.axis)){var i=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var n=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],f=t[1],p=t[t.length-1],c=t[t.length-2];i===!1?(Ei(n),Ei(u)):vE(n,o)&&(i?(Ei(o),Ei(f)):(Ei(n),Ei(u))),a===!1?(Ei(s),Ei(p)):vE(l,s)&&(a?(Ei(l),Ei(c)):(Ei(s),Ei(p)))}}function Ei(r){r&&(r.ignore=!0)}function vE(r,e){var t=r&&r.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(!(!t||!i)){var a=za([]);return cr(a,a,-r.rotation),t.applyTransform(pr([],a,r.getLocalTransform())),i.applyTransform(pr([],a,e.getLocalTransform())),t.intersect(i)}}function dE(r){return r==="middle"||r==="center"}function mE(r,e,t,i,a){for(var n=[],o=[],s=[],l=0;l=0||r===e}function yE(r){var e=id(r);if(e){var t=e.axisPointerModel,i=e.axis.scale,a=t.option,n=t.get("status"),o=t.get("value");o!=null&&(o=i.parse(o));var s=$x(t);n==null&&(a.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var d=l;v.color!=null&&(d=q({color:v.color},l));var m=ot(Q(v),{boundaryGap:t,splitNumber:i,scale:a,axisLine:n,axisTick:o,axisLabel:s,name:v.text,showName:u,nameLocation:"end",nameGap:p,nameTextStyle:d,triggerEvent:c},!1);if(B(f)){var g=m.name;m.name=f.replace("{value}",g??"")}else X(f)&&(m.name=f(m.name,m));var y=new Mt(m,null,this.ecModel);return Wt(y,Li.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:ot({lineStyle:{color:"#bbb"}},dp.axisLine),axisLabel:sd(dp.axisLabel,!1),axisTick:sd(dp.axisTick,!1),splitLine:sd(dp.splitLine,!0),splitArea:sd(dp.splitArea,!0),indicator:[]},e}(gt),ME=v4;var d4=["axisLine","axisTickLabel","axisName"],m4=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n=this.group;n.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var i=t.coordinateSystem,a=i.getIndicatorAxes(),n=k(a,function(o){var s=o.model.get("showName")?o.name:"",l=new er(o.model,{axisName:s,position:[i.cx,i.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});w(n,function(o){w(d4,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var i=t.coordinateSystem,a=i.getIndicatorAxes();if(!a.length)return;var n=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),p=s.get("show"),c=l.get("color"),h=u.get("color"),v=z(c)?c:[c],d=z(h)?h:[h],m=[],g=[];function y(R,O,U){var V=U%O.length;return R[V]=R[V]||[],V}if(n==="circle")for(var x=a[0].getTicksCoords(),_=i.cx,b=i.cy,S=0;S3?1.4:o>1?1.2:1.1,f=n>0?u:1/u;u_(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(a){var p=Math.abs(n),c=(n>0?1:-1)*(p>3?.4:p>1?.15:.05);u_(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!s_(this._zr,"globalPan")){var i=t.pinchScale>1?1.1:1/1.1;u_(this,"zoom",null,t,{scale:i,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(Ce);function u_(r,e,t,i,a){r.pointerChecker&&r.pointerChecker(i,a.originX,a.originY)&&(Mr(i.event),kE(r,e,t,i,a))}function kE(r,e,t,i,a){a.isAvailableBehavior=H(ld,null,t,i),r.trigger(e,a)}function ld(r,e,t){var i=t[r];return!r||i&&(!B(i)||e.event[i+"Key"])}var Aa=x4;function Wl(r,e,t){var i=r.target;i.x+=e,i.y+=t,i.dirty()}function Yl(r,e,t,i){var a=r.target,n=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=e,n){var s=n.min||0,l=n.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,a.x-=(t-a.x)*(u-1),a.y-=(i-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var _4={axisPointer:1,tooltip:1,brush:1};function Qn(r,e,t){var i=e.getComponentByElement(r.topTarget),a=i&&i.coordinateSystem;return i&&i!==t&&!_4.hasOwnProperty(i.mainType)&&a&&a.model!==t}function ud(r){if(B(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var p_,fd={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},VE=ft(fd),pd={"alignment-baseline":"textBaseline","stop-color":"stopColor"},UE=ft(pd),S4=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var i=ud(e);this._defsUsePending=[];var a=new j;this._root=a;var n=[],o=i.getAttribute("viewBox")||"",s=parseFloat(i.getAttribute("width")||t.width),l=parseFloat(i.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),li(i,a,null,!0,!1);for(var u=i.firstChild;u;)this._parseNode(u,a,n,null,!1,!1),u=u.nextSibling;T4(this._defs,this._defsUsePending),this._defsUsePending=[];var f,p;if(o){var c=cd(o);c.length>=4&&(f={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(f&&s!=null&&l!=null&&(p=h_(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var h=a;a=new j,a.add(h),h.scaleX=h.scaleY=p.scale,h.x=p.x,h.y=p.y}return!t.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new pt({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:f,viewBoxTransform:p,named:n}},r.prototype._parseNode=function(e,t,i,a,n,o){var s=e.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(n=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!n){var f=p_[s];if(f&&$(p_,s)){l=f.call(this,e,t);var p=e.getAttribute("name");if(p){var c={name:p,namedFrom:null,svgNodeTagLower:s,el:l};i.push(c),s==="g"&&(u=c)}else a&&i.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});t.add(l)}}var h=BE[s];if(h&&$(BE,s)){var v=h.call(this,e),d=e.getAttribute("id");d&&(this._defs[d]=v)}}if(l&&l.isGroup)for(var m=e.firstChild;m;)m.nodeType===1?this._parseNode(m,l,i,u,n,o):m.nodeType===3&&o&&this._parseText(m,l),m=m.nextSibling},r.prototype._parseText=function(e,t){var i=new Fa({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Pi(t,i),li(e,i,this._defsUsePending,!1,!1),b4(i,t);var a=i.style,n=a.fontSize;n&&n<9&&(a.fontSize=9,i.scaleX*=n/9,i.scaleY*=n/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=i.getBoundingRect();return this._textX+=s.width,t.add(i),i},r.internalField=function(){p_={g:function(e,t){var i=new j;return Pi(t,i),li(e,i,this._defsUsePending,!1,!1),i},rect:function(e,t){var i=new pt;return Pi(t,i),li(e,i,this._defsUsePending,!1,!1),i.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),i.silent=!0,i},circle:function(e,t){var i=new je;return Pi(t,i),li(e,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),i.silent=!0,i},line:function(e,t){var i=new re;return Pi(t,i),li(e,i,this._defsUsePending,!1,!1),i.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),i.silent=!0,i},ellipse:function(e,t){var i=new jo;return Pi(t,i),li(e,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),i.silent=!0,i},polygon:function(e,t){var i=e.getAttribute("points"),a;i&&(a=HE(i));var n=new oe({shape:{points:a||[]},silent:!0});return Pi(t,n),li(e,n,this._defsUsePending,!1,!1),n},polyline:function(e,t){var i=e.getAttribute("points"),a;i&&(a=HE(i));var n=new ae({shape:{points:a||[]},silent:!0});return Pi(t,n),li(e,n,this._defsUsePending,!1,!1),n},image:function(e,t){var i=new Kt;return Pi(t,i),li(e,i,this._defsUsePending,!1,!1),i.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),i.silent=!0,i},text:function(e,t){var i=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",n=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(i)+parseFloat(n),this._textY=parseFloat(a)+parseFloat(o);var s=new j;return Pi(t,s),li(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var i=e.getAttribute("x"),a=e.getAttribute("y");i!=null&&(this._textX=parseFloat(i)),a!=null&&(this._textY=parseFloat(a));var n=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new j;return Pi(t,s),li(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(n),this._textY+=parseFloat(o),s},path:function(e,t){var i=e.getAttribute("d")||"",a=ih(i);return Pi(t,a),li(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),r}(),BE={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),i=parseInt(r.getAttribute("x2")||"10",10),a=parseInt(r.getAttribute("y2")||"0",10),n=new yi(e,t,i,a);return FE(r,n),GE(r,n),n},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),i=parseInt(r.getAttribute("r")||"0",10),a=new vl(e,t,i);return FE(r,a),GE(r,a),a}};function FE(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function GE(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var i=t.getAttribute("offset"),a=void 0;i&&i.indexOf("%")>0?a=parseInt(i,10)/100:i?a=parseFloat(i):a=0;var n={};ZE(t,n,n);var o=n.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:a,color:o})}t=t.nextSibling}}function Pi(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),q(e.__inheritedStyle,r.__inheritedStyle))}function HE(r){for(var e=cd(r),t=[],i=0;i0;n-=2){var o=i[n],s=i[n-1],l=cd(o);switch(a=a||ge(),s){case"translate":We(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":_o(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":cr(a,a,-parseFloat(l[0])*c_,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*c_);pr(a,[1,0,u,1,0,0],a);break;case"skewY":var f=Math.tan(parseFloat(l[0])*c_);pr(a,[1,f,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}e.setLocalTransform(a)}}var YE=/([^\s:;]+)\s*:\s*([^:;]+)/g;function ZE(r,e,t){var i=r.getAttribute("style");if(i){YE.lastIndex=0;for(var a;(a=YE.exec(i))!=null;){var n=a[1],o=$(fd,n)?fd[n]:null;o&&(e[o]=a[2]);var s=$(pd,n)?pd[n]:null;s&&(t[s]=a[2])}}}function M4(r,e,t){for(var i=0;i0,m={api:i,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:c};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(e,t,i),this._updateMapSelectHandler(e,u,i,a)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=Y(),i=Y(),a=this._regionsGroup,n=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(h,v){return v&&(h=v(h)),h&&[h[0]*n.scaleX+n.x,h[1]*n.scaleY+n.y]}function p(h){for(var v=[],d=!u&&l&&l.project,m=0;m=0)&&(c=a);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;jt(e,Yt(i),{labelFetcher:c,labelDataIndex:p,defaultText:t},h);var v=e.getTextContent();if(v&&(aP(v).ignore=v.ignore,e.textConfig&&o)){var d=e.getBoundingRect().clone();e.textConfig.layoutRect=d,e.textConfig.position=[(o[0]-d.x)/d.width*100+"%",(o[1]-d.y)/d.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function tP(r,e,t,i,a,n){r.data?r.data.setItemGraphicEl(n,e):tt(e).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:t,region:i&&i.option||{}}}function eP(r,e,t,i,a){r.data||Wi({el:e,componentModel:a,itemName:t,itemTooltipOption:i.get("tooltip")})}function rP(r,e,t,i,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var n=i.getModel("emphasis"),o=n.get("focus");return kt(e,o,n.get("blurScope"),n.get("disabled")),r.isGeo&&MC(e,a,t),o}function iP(r,e,t){var i=[],a;function n(){a=[]}function o(){a.length&&(i.push(a),a=[])}var s=e({polygonStart:n,polygonEnd:o,lineStart:n,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),w(r,function(l){s.lineStart();for(var u=0;u-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Lt),oP=G4;function H4(r,e){var t={};return w(r,function(i){i.each(i.mapDimension("value"),function(a,n){var o="ec-"+i.getName(n);t[o]=t[o]||[],isNaN(a)||t[o].push(a)})}),r[0].map(r[0].mapDimension("value"),function(i,a){for(var n="ec-"+r[0].getName(a),o=0,s=1/0,l=-1/0,u=t[n].length,f=0;f1?(_.width=x,_.height=x/m):(_.height=x,_.width=x*m),_.y=y[1]-_.height/2,_.x=y[0]-_.width/2;else{var b=r.getBoxLayoutParams();b.aspect=m,_=Gt(b,{width:v,height:d})}this.setViewRect(_.x,_.y,_.width,_.height),this.setCenter(r.get("center"),e),this.setZoom(r.get("zoom"))}function Z4(r,e){w(e.get("geoCoord"),function(t,i){r.addGeoCoord(i,t)})}var X4=function(){function r(){this.dimensions=S_}return r.prototype.create=function(e,t){var i=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new b_(l+s,l,N({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),i.push(u),o.coordinateSystem=u,u.model=o,u.resize=pP,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=i[l]}});var n={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();n[s]=n[s]||[],n[s].push(o)}}),w(n,function(o,s){var l=k(o,function(f){return f.get("nameMap")}),u=new b_(s,s,N({nameMap:vo(l)},a(o[0])));u.zoomLimit=Jt.apply(null,k(o,function(f){return f.get("scaleLimit")})),i.push(u),u.resize=pP,u.resize(o[0],t),w(o,function(f){f.coordinateSystem=u,Z4(u,f)})}),i},r.prototype.getFilledRegions=function(e,t,i,a){for(var n=(e||[]).slice(),o=Y(),s=0;s=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function mP(r,e){var t=r.isExpand?r.children:[],i=r.parentNode.children,a=r.hierNode.i?i[r.hierNode.i-1]:null;if(t.length){Q4(r);var n=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(r.hierNode.prelim=a.hierNode.prelim+e(r,a),r.hierNode.modifier=r.hierNode.prelim-n):r.hierNode.prelim=n}else a&&(r.hierNode.prelim=a.hierNode.prelim+e(r,a));r.parentNode.hierNode.defaultAncestor=$4(r,a,r.parentNode.hierNode.defaultAncestor||i[0],e)}function gP(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function A_(r){return arguments.length?r:rY}function ws(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function yP(r,e){return Gt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Q4(r){for(var e=r.children,t=e.length,i=0,a=0;--t>=0;){var n=e[t];n.hierNode.prelim+=i,n.hierNode.modifier+=i,a+=n.hierNode.change,i+=n.hierNode.shift+a}}function $4(r,e,t,i){if(e){for(var a=r,n=r,o=n.parentNode.children[0],s=e,l=a.hierNode.modifier,u=n.hierNode.modifier,f=o.hierNode.modifier,p=s.hierNode.modifier;s=T_(s),n=C_(n),s&&n;){a=T_(a),o=C_(o),a.hierNode.ancestor=r;var c=s.hierNode.prelim+p-n.hierNode.prelim-u+i(s,n);c>0&&(eY(tY(s,r,t),r,c),u+=c,l+=c),p+=s.hierNode.modifier,u+=n.hierNode.modifier,l+=a.hierNode.modifier,f+=o.hierNode.modifier}s&&!T_(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=p-l),n&&!C_(o)&&(o.hierNode.thread=n,o.hierNode.modifier+=u-f,t=r)}return t}function T_(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function C_(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function tY(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function eY(r,e,t){var i=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=i}function rY(r,e){return r.parentNode===e.parentNode?1:2}var iY=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),aY=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new iY},e.prototype.buildPath=function(t,i){var a=i.childPoints,n=a.length,o=i.parentPoint,s=a[0],l=a[n-1];if(n===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=i.orient,f=u==="TB"||u==="BT"?0:1,p=1-f,c=W(i.forkPosition,1),h=[];h[f]=o[f],h[p]=o[p]+(l[p]-o[p])*c,t.moveTo(o[0],o[1]),t.lineTo(h[0],h[1]),t.moveTo(s[0],s[1]),h[f]=s[f],t.lineTo(h[0],h[1]),h[f]=l[f],t.lineTo(h[0],h[1]),t.lineTo(l[0],l[1]);for(var v=1;vy.x,b||(_=_-Math.PI));var T=b?"left":"right",C=s.getModel("label"),A=C.get("rotate"),D=A*(Math.PI/180),M=m.getTextContent();M&&(m.setTextConfig({position:C.get("position")||T,rotation:A==null?-_:D,origin:"center"}),M.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),I=L==="relative"?vn(o.getAncestorsIndices(),o.getDescendantIndices()):L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;I&&(tt(t).focus=I),oY(a,o,f,t,v,h,d,i),t.__edge&&(t.onHoverStateChange=function(P){if(P!=="blur"){var R=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===qo||Ko(t.__edge,P)}})}function oY(r,e,t,i,a,n,o,s){var l=e.getModel(),u=r.get("edgeShape"),f=r.get("layout"),p=r.getOrient(),c=r.get(["lineStyle","curveness"]),h=r.get("edgeForkPosition"),v=l.getModel("lineStyle").getLineStyle(),d=i.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(d||(d=i.__edge=new Za({shape:D_(f,p,c,a,a)})),yt(d,{shape:D_(f,p,c,n,o)},r));else if(u==="polyline"&&f==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var m=e.children,g=[],y=0;yt&&(t=a.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,i=this.children,a=i.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,i=t.data.getItemModel(this.dataIndex);return i.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var i=t.getData().tree.root,a=r.targetNode;if(B(a)&&(a=i.getNodeById(a)),a&&i.contains(a))return{node:a};var n=r.targetNodeId;if(n!=null&&(a=i.getNodeById(n)))return{node:a}}}function L_(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function ql(r,e){var t=L_(r);return it(t,e)>=0}function to(r,e){for(var t=[];r;){var i=r.dataIndex;t.push({name:r.name,dataIndex:i,value:e.getRawValue(i)}),r=r.parentNode}return t.reverse(),t}var gY=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var i={name:t.name,children:t.data},a=t.leaves||{},n=new Mt(a,this,this.ecModel),o=Xl.createTree(i,this,s);function s(p){p.wrapMethod("getItemModel",function(c,h){var v=o.getNodeByDataIndex(h);return v&&v.children.length&&v.isExpand||(c.parentModel=n),c})}var l=0;o.eachNode("preorder",function(p){p.depth>l&&(l=p.depth)});var u=t.expandAndCollapse,f=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(p){var c=p.hostTree.data.getRawDataItem(p.dataIndex);p.isExpand=c&&c.collapsed!=null?!c.collapsed:p.depth<=f}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,i,a){for(var n=this.getData().tree,o=n.root.children[0],s=n.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return $t("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var i=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return i.treeAncestors=to(a,this),i.collapsed=!a.isExpand,i},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Lt),AP=gY;function DP(r,e,t){for(var i=[r],a=[],n;n=i.pop();)if(a.push(n),n.isExpand){var o=n.children;if(o.length)for(var s=0;s=0;n--)t.push(a[n])}}function E_(r,e){r.eachSeriesByType("tree",function(t){yY(t,e)})}function yY(r,e){var t=yP(r,e);r.layoutInfo=t;var i=r.get("layout"),a=0,n=0,o=null;i==="radial"?(a=2*Math.PI,n=Math.min(t.height,t.width)/2,o=A_(function(x,_){return(x.parentNode===_.parentNode?1:2)/x.depth})):(a=t.width,n=t.height,o=A_());var s=r.getData().tree.root,l=s.children[0];if(l){dP(s),DP(l,mP,o),s.hierNode.modifier=-l.hierNode.prelim,Kl(l,gP);var u=l,f=l,p=l;Kl(l,function(x){var _=x.getLayout().x;_f.getLayout().x&&(f=x),x.depth>p.depth&&(p=x)});var c=u===f?1:o(u,f)/2,h=c-u.getLayout().x,v=0,d=0,m=0,g=0;if(i==="radial")v=a/(f.getLayout().x+c+h),d=n/(p.depth-1||1),Kl(l,function(x){m=(x.getLayout().x+h)*v,g=(x.depth-1)*d;var _=ws(m,g);x.setLayout({x:_.x,y:_.y,rawX:m,rawY:g},!0)});else{var y=r.getOrient();y==="RL"||y==="LR"?(d=n/(f.getLayout().x+c+h),v=a/(p.depth-1||1),Kl(l,function(x){g=(x.getLayout().x+h)*d,m=y==="LR"?(x.depth-1)*v:a-(x.depth-1)*v,x.setLayout({x:m,y:g},!0)})):(y==="TB"||y==="BT")&&(v=a/(f.getLayout().x+c+h),d=n/(p.depth-1||1),Kl(l,function(x){m=(x.getLayout().x+h)*v,g=y==="TB"?(x.depth-1)*d:n-(x.depth-1)*d,x.setLayout({x:m,y:g},!0)}))}}}function P_(r){r.eachSeriesByType("tree",function(e){var t=e.getData(),i=t.tree;i.eachNode(function(a){var n=a.getModel(),o=n.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");N(s,o)})})}function MP(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(i){var a=e.dataIndex,n=i.getData().tree,o=n.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,i){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var n=a.coordinateSystem,o=Zl(n,e,void 0,i);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function R_(r){r.registerChartView(TP),r.registerSeriesModel(AP),r.registerLayout(E_),r.registerVisual(P_),MP(r)}var LP=["treemapZoomToNode","treemapRender","treemapMove"];function IP(r){for(var e=0;e1;)n=n.parentNode;var o=Df(r.ecModel,n.name||n.dataIndex+"",i);a.setVisual("decal",o)})}var xY=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,i){var a={name:t.name,children:t.data};EP(a);var n=t.levels||[],o=this.designatedVisualItemStyle={},s=new Mt({itemStyle:o},this,i);n=t.levels=_Y(n,i);var l=k(n||[],function(p){return new Mt(p,s,i)},this),u=Xl.createTree(a,this,f);function f(p){p.wrapMethod("getItemModel",function(c,h){var v=u.getNodeByDataIndex(h),d=v?l[v.depth]:null;return c.parentModel=d||s,c})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,i,a){var n=this.getData(),o=this.getRawValue(t),s=n.getName(t);return $t("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var i=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return i.treeAncestors=to(a,this),i.treePathInfo=i.treeAncestors,i},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},N(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var i=this._idIndexMap;i||(i=this._idIndexMap=Y(),this._idIndexMapCount=0);var a=i.get(t);return a==null&&i.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var i=this.getRawData().tree.root;(!t||t!==i&&!i.contains(t))&&(this._viewRoot=i)},e.prototype.enableAriaDecal=function(){yp(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Lt);function EP(r){var e=0;w(r.children,function(i){EP(i);var a=i.value;z(a)&&(a=a[0]),e+=a});var t=r.value;z(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),z(r.value)?r.value[0]=t:r.value=t}function _Y(r,e){var t=Ot(e.get("color")),i=Ot(e.get(["aria","decal","decals"]));if(t){r=r||[];var a,n;w(r,function(s){var l=new Mt(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(n=!0)});var o=r[0]||(r[0]={});return a||(o.color=t.slice()),!n&&i&&(o.decal=i.slice()),r}}var PP=xY;var SY=8,RP=8,O_=5,bY=function(){function r(e){this.group=new j,e.add(this.group)}return r.prototype.render=function(e,t,i,a){var n=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!n.get("show")||!i)){var s=n.getModel("itemStyle"),l=n.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),p={pos:{left:n.get("left"),right:n.get("right"),top:n.get("top"),bottom:n.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:n.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(i,p,u),this._renderContent(e,p,s,l,u,f,a),Nn(o,p.pos,p.box)}},r.prototype._prepare=function(e,t,i){for(var a=e;a;a=a.parentNode){var n=ie(a.getModel().get("name"),""),o=i.getTextRect(n),s=Math.max(o.width+SY*2,t.emptyItemWidth);t.totalWidth+=s+RP,t.renderList.push({node:a,text:n,width:s})}},r.prototype._renderContent=function(e,t,i,a,n,o,s){for(var l=0,u=t.emptyItemWidth,f=e.get(["breadcrumb","height"]),p=IA(t.pos,t.box),c=t.totalWidth,h=t.renderList,v=a.getModel("itemStyle").getItemStyle(),d=h.length-1;d>=0;d--){var m=h[d],g=m.node,y=m.width,x=m.text;c>p.width&&(c-=y-u,y=u,x=null);var _=new oe({shape:{points:wY(l,0,y,f,d===h.length-1,d===0)},style:q(i.getItemStyle(),{lineJoin:"bevel"}),textContent:new dt({style:Vt(n,{text:x})}),textConfig:{position:"inside"},z2:Ga*1e4,onclick:et(s,g)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=Vt(o,{text:x}),_.ensureState("emphasis").style=v,kt(_,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(_),TY(_,e,g),l+=y+RP}},r.prototype.remove=function(){this.group.removeAll()},r}();function wY(r,e,t,i,a,n){var o=[[a?r:r-O_,e],[r+t,e],[r+t,e+i],[a?r:r-O_,e+i]];return!n&&o.splice(2,0,[r+t+O_,e+i/2]),!a&&o.push([r,e+i/2]),o}function TY(r,e,t){tt(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&to(t,e)}}var OP=bY;var CY=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,i,a,n){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:i,delay:a,easing:n}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,i=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,n=this._storage.length;akP||Math.abs(t.dy)>kP)){var i=this.seriesModel.getData().tree.root;if(!i)return;var a=i.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var i=t.originX,a=t.originY;if(this._state!=="animating"){var n=this.seriesModel.getData().tree.root;if(!n)return;var o=n.getLayout();if(!o)return;var s=new rt(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;i-=l.x,a-=l.y;var u=ge();We(u,u,[-i,-a]),_o(u,u,[t.scale,t.scale]),We(u,u,[i,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var i=this;t.on("click",function(a){if(i._state==="ready"){var n=i.seriesModel.get("nodeClick",!0);if(n){var o=i.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)i._rootToNode(o);else if(n==="zoomToNode")i._zoomToNode(o);else if(n==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&os(u,f)}}}}},this)},e.prototype._renderBreadcrumb=function(t,i,a){var n=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(i.getWidth()/2,i.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new OP(this.group))).render(t,i,a.node,function(o){n._state!=="animating"&&(ql(t.getViewRoot(),o)?n._rootToNode({node:o}):n._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=xp(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,i){var a,n=this.seriesModel.getViewRoot();return n.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,i),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},e.type="treemap",e}(Tt);function xp(){return{nodeGroup:[],background:[],content:[]}}function EY(r,e,t,i,a,n,o,s,l,u){if(!o)return;var f=o.getLayout(),p=r.getData(),c=o.getModel();if(p.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var h=f.width,v=f.height,d=f.borderWidth,m=f.invisible,g=o.getRawIndex(),y=s&&s.getRawIndex(),x=o.viewChildren,_=f.upperHeight,b=x&&x.length,S=c.getModel("itemStyle"),T=c.getModel(["emphasis","itemStyle"]),C=c.getModel(["blur","itemStyle"]),A=c.getModel(["select","itemStyle"]),D=S.get("borderRadius")||0,M=ct("nodeGroup",N_);if(!M)return;if(l.add(M),M.x=f.x||0,M.y=f.y||0,M.markRedraw(),gd(M).nodeWidth=h,gd(M).nodeHeight=v,f.isAboveViewRoot)return M;var L=ct("background",zP,u,MY);L&&F(M,L,b&&f.upperLabelHeight);var I=c.getModel("emphasis"),P=I.get("focus"),R=I.get("blurScope"),O=I.get("disabled"),U=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(b)Pn(M)&&Wa(M,!1),L&&(Wa(L,!O),p.setItemGraphicEl(o.dataIndex,L),Qc(L,U,R));else{var V=ct("content",zP,u,LY);V&&Z(M,V),L.disableMorphing=!0,L&&Pn(L)&&Wa(L,!1),Wa(M,!O),p.setItemGraphicEl(o.dataIndex,M),Qc(M,U,R)}return M;function F(Pt,xt,Rt){var Ct=tt(xt);if(Ct.dataIndex=o.dataIndex,Ct.seriesIndex=r.seriesIndex,xt.setShape({x:0,y:0,width:h,height:v,r:D}),m)J(xt);else{xt.invisible=!1;var ut=o.getVisual("style"),At=ut.stroke,le=BP(S);le.fill=At;var Ft=Ts(T);Ft.fill=T.get("borderColor");var de=Ts(C);de.fill=C.get("borderColor");var ce=Ts(A);if(ce.fill=A.get("borderColor"),Rt){var rr=h-2*d;lt(xt,At,ut.opacity,{x:d,y:0,width:rr,height:_})}else xt.removeTextContent();xt.setStyle(le),xt.ensureState("emphasis").style=Ft,xt.ensureState("blur").style=de,xt.ensureState("select").style=ce,Fi(xt)}Pt.add(xt)}function Z(Pt,xt){var Rt=tt(xt);Rt.dataIndex=o.dataIndex,Rt.seriesIndex=r.seriesIndex;var Ct=Math.max(h-2*d,0),ut=Math.max(v-2*d,0);if(xt.culling=!0,xt.setShape({x:d,y:d,width:Ct,height:ut,r:D}),m)J(xt);else{xt.invisible=!1;var At=o.getVisual("style"),le=At.fill,Ft=BP(S);Ft.fill=le,Ft.decal=At.decal;var de=Ts(T),ce=Ts(C),rr=Ts(A);lt(xt,le,At.opacity,null),xt.setStyle(Ft),xt.ensureState("emphasis").style=de,xt.ensureState("blur").style=ce,xt.ensureState("select").style=rr,Fi(xt)}Pt.add(xt)}function J(Pt){!Pt.invisible&&n.push(Pt)}function lt(Pt,xt,Rt,Ct){var ut=c.getModel(Ct?UP:VP),At=ie(c.get("name"),null),le=ut.getShallow("show");jt(Pt,Yt(c,Ct?UP:VP),{defaultText:le?At:null,inheritColor:xt,defaultOpacity:Rt,labelFetcher:r,labelDataIndex:o.dataIndex});var Ft=Pt.getTextContent();if(Ft){var de=Ft.style,ce=mo(de.padding||0);Ct&&(Pt.setTextConfig({layoutRect:Ct}),Ft.disableLabelLayout=!0),Ft.beforeUpdate=function(){var Ea=Math.max((Ct?Ct.width:Pt.shape.width)-ce[1]-ce[3],0),Tr=Math.max((Ct?Ct.height:Pt.shape.height)-ce[0]-ce[2],0);(de.width!==Ea||de.height!==Tr)&&Ft.setStyle({width:Ea,height:Tr})},de.truncateMinChar=2,de.lineOverflow="truncate",ht(de,Ct,f);var rr=Ft.getState("emphasis");ht(rr?rr.style:null,Ct,f)}}function ht(Pt,xt,Rt){var Ct=Pt?Pt.text:null;if(!xt&&Rt.isLeafRoot&&Ct!=null){var ut=r.get("drillDownIcon",!0);Pt.text=ut?ut+" "+Ct:Ct}}function ct(Pt,xt,Rt,Ct){var ut=y!=null&&t[Pt][y],At=a[Pt];return ut?(t[Pt][y]=null,It(At,ut)):m||(ut=new xt,ut instanceof xe&&(ut.z2=PY(Rt,Ct)),Ut(At,ut)),e[Pt][g]=ut}function It(Pt,xt){var Rt=Pt[g]={};xt instanceof N_?(Rt.oldX=xt.x,Rt.oldY=xt.y):Rt.oldShape=N({},xt.shape)}function Ut(Pt,xt){var Rt=Pt[g]={},Ct=o.parentNode,ut=xt instanceof j;if(Ct&&(!i||i.direction==="drillDown")){var At=0,le=0,Ft=a.background[Ct.getRawIndex()];!i&&Ft&&Ft.oldShape&&(At=Ft.oldShape.width,le=Ft.oldShape.height),ut?(Rt.oldX=0,Rt.oldY=le):Rt.oldShape={x:At,y:le,width:0,height:0}}Rt.fadein=!ut}}function PY(r,e){return r*DY+e}var FP=IY;var bp=w,RY=K,_d=-1,U_=function(){function r(e){var t=e.mappingMethod,i=e.type,a=this.option=Q(e);this.type=i,this.mappingMethod=t,this._normalizeData=zY[t];var n=r.visualHandlers[i];this.applyVisual=n.applyVisual,this.getColorMapper=n.getColorMapper,this._normalizedToVisual=n._normalizedToVisual[t],t==="piecewise"?(z_(a),OY(a)):t==="category"?a.categories?NY(a):z_(a,!0):(Qt(t!=="linear"||a.dataExtent),z_(a))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return H(this._normalizeData,this)},r.listVisualTypes=function(){return ft(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,i){K(e)?w(e,t,i):t.call(i,e)},r.mapVisual=function(e,t,i){var a,n=z(e)?[]:K(e)?{}:(a=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(i,o,s);a?n=l:n[s]=l}),n},r.retrieveVisuals=function(e){var t={},i;return e&&bp(r.visualHandlers,function(a,n){e.hasOwnProperty(n)&&(t[n]=e[n],i=!0)}),i?t:null},r.prepareVisualTypes=function(e){if(z(e))e=e.slice();else if(RY(e)){var t=[];bp(e,function(i,a){t.push(a)}),e=t}else return[];return e.sort(function(i,a){return a==="color"&&i!=="color"&&i.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,i){for(var a,n=1/0,o=0,s=t.length;o=0;n--)i[n]==null&&(delete t[e[n]],e.pop())}function z_(r,e){var t=r.visual,i=[];K(t)?bp(t,function(n){i.push(n)}):t!=null&&i.push(t);var a={color:1,symbol:1};!e&&i.length===1&&!a.hasOwnProperty(r.type)&&(i[1]=i[0]),HP(r,i)}function yd(r){return{applyVisual:function(e,t,i){var a=this.mapValueToVisual(e);i("color",r(t("color"),a))},_normalizedToVisual:k_([0,1])}}function GP(r){var e=this.option.visual;return e[Math.round(zt(r,[0,1],[0,e.length-1],!0))]||{}}function _p(r){return function(e,t,i){i(r,this.mapValueToVisual(e))}}function Sp(r){var e=this.option.visual;return e[this.option.loop&&r!==_d?r%e.length:r]}function Cs(){return this.option.visual[0]}function k_(r){return{linear:function(e){return zt(e,r,this.option.visual,!0)},category:Sp,piecewise:function(e,t){var i=V_.call(this,t);return i==null&&(i=zt(e,r,this.option.visual,!0)),i},fixed:Cs}}function V_(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var i=U_.findPieceIndex(r,t),a=t[i];if(a&&a.visual)return a.visual[this.type]}}function HP(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=k(e,function(t){var i=Re(t);return i||[0,0,0,1]})),e}var zY={linear:function(r){return zt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=U_.findPieceIndex(r,e,!0);if(t!=null)return zt(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??_d},fixed:qt};function xd(r,e,t){return r?e<=t:e=t.length||d===t[d.depth]){var g=FY(a,l,d,m,v,i);XP(d,g,t,i)}})}}}function VY(r,e,t){var i=N({},e),a=t.designatedVisualItemStyle;return w(["color","colorAlpha","colorSaturation"],function(n){a[n]=e[n];var o=r.get(n);a[n]=null,o!=null&&(i[n]=o)}),i}function WP(r){var e=B_(r,"color");if(e){var t=B_(r,"colorAlpha"),i=B_(r,"colorSaturation");return i&&(e=_n(e,null,null,i)),t&&(e=Sn(e,t)),e}}function UY(r,e){return e!=null?_n(e,null,null,r):null}function B_(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function BY(r,e,t,i,a,n){if(!(!n||!n.length)){var o=F_(e,"color")||a.color!=null&&a.color!=="none"&&(F_(e,"colorAlpha")||F_(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var f=e.get("colorMappingBy"),p={type:o.name,dataExtent:u,visual:o.range};p.type==="color"&&(f==="index"||f==="id")?(p.mappingMethod="category",p.loop=!0):p.mappingMethod="linear";var c=new ve(p);return YP(c).drColorMappingBy=f,c}}}function F_(r,e){var t=r.get(e);return z(t)&&t.length?{name:e,range:t}:null}function FY(r,e,t,i,a,n){var o=N({},e);if(a){var s=a.type,l=s==="color"&&YP(a).drColorMappingBy,u=l==="index"?i:l==="id"?n.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var wp=Math.max,Sd=Math.min,qP=Jt,G_=w,jP=["itemStyle","borderWidth"],GY=["itemStyle","gapWidth"],HY=["upperLabel","show"],WY=["upperLabel","height"],JP={seriesType:"treemap",reset:function(r,e,t,i){var a=t.getWidth(),n=t.getHeight(),o=r.option,s=Gt(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=W(qP(s.width,l[0]),a),f=W(qP(s.height,l[1]),n),p=i&&i.type,c=["treemapZoomToNode","treemapRootToNode"],h=sn(i,c,r),v=p==="treemapRender"||p==="treemapMove"?i.rootRect:null,d=r.getViewRoot(),m=L_(d);if(p!=="treemapMove"){var g=p==="treemapZoomToNode"?jY(r,h,d,u,f):v?[v.width,v.height]:[u,f],y=o.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var x={squareRatio:o.squareRatio,sort:y,leafDepth:o.leafDepth};d.hostTree.clearLayouts();var _={x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]};d.setLayout(_),QP(d,x,!1,0),_=d.getLayout(),G_(m,function(S,T){var C=(m[T+1]||d).getValue();S.setLayout(N({dataExtent:[C,C],borderWidth:0,upperHeight:0},_))})}var b=r.getData().tree.root;b.setLayout(JY(s,v,h),!0),r.setLayoutInfo(s),$P(b,new rt(-s.x,-s.y,a,n),m,d,0)}};function QP(r,e,t,i){var a,n;if(!r.isRemoved()){var o=r.getLayout();a=o.width,n=o.height;var s=r.getModel(),l=s.get(jP),u=s.get(GY)/2,f=t2(s),p=Math.max(l,f),c=l-u,h=p-u;r.setLayout({borderWidth:l,upperHeight:p,upperLabelHeight:f},!0),a=wp(a-2*c,0),n=wp(n-c-h,0);var v=a*n,d=YY(r,s,v,e,t,i);if(d.length){var m={x:c,y:h,width:a,height:n},g=Sd(a,n),y=1/0,x=[];x.area=0;for(var _=0,b=d.length;_=0;l--){var u=a[i==="asc"?o-l-1:l].getValue();u/t*es[1]&&(s[1]=u)})),{sum:i,dataExtent:s}}function KY(r,e,t){for(var i=0,a=1/0,n=0,o=void 0,s=r.length;ni&&(i=o));var l=r.area*r.area,u=e*e*t;return l?wp(u*i/l,l/(u*a)):1/0}function KP(r,e,t,i,a){var n=e===t.width?0:1,o=1-n,s=["x","y"],l=["width","height"],u=t[s[n]],f=e?r.area/e:0;(a||f>t[l[o]])&&(f=t[l[o]]);for(var p=0,c=r.length;pKu&&(u=Ku),n=s}ui&&(i=e);var n=i%2?i+2:i+3;a=[];for(var o=0;o0&&(b[0]=-b[0],b[1]=-b[1]);var T=_[0]<0?-1:1;if(n.__position!=="start"&&n.__position!=="end"){var C=-Math.atan2(_[1],_[0]);p[0].8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":n.x=-c[0]*g+f[0],n.y=-c[1]*y+f[1],v=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=g*T+f[0],n.y=f[1]+A,v=_[0]<0?"right":"left",n.originX=-g*T,n.originY=-A;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=S[0],n.y=S[1]+A,v="center",n.originY=-A;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-g*T+p[0],n.y=p[1]+A,v=_[0]>=0?"right":"left",n.originX=g*T,n.originY=-A;break}n.scaleX=n.scaleY=o,n.setStyle({verticalAlign:n.__verticalAlign||d,align:n.__align||v})}},e}(j),$l=a6;var n6=function(){function r(e){this.group=new j,this._LineCtor=e||$l}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var i=this,a=i.group,n=i._lineData;i._lineData=e,n||a.removeAll();var o=h2(e);e.diff(n).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(n,e,l,s,o)}).remove(function(s){a.remove(n.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,i){t.updateLayout(e,i)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=h2(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function i(s){!s.isGroup&&!o6(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a0}function h2(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:Yt(e)}}function v2(r){return isNaN(r[0])||isNaN(r[1])}function nS(r){return r&&!v2(r[0])&&!v2(r[1])}var tu=n6;var oS=[],sS=[],lS=[],eu=ye,uS=na,d2=Math.abs;function m2(r,e,t){for(var i=r[0],a=r[1],n=r[2],o=1/0,s,l=t*t,u=.1,f=.1;f<=.9;f+=.1){oS[0]=eu(i[0],a[0],n[0],f),oS[1]=eu(i[1],a[1],n[1],f);var p=d2(uS(oS,e)-l);p=0?s=s+u:s=s-u:v>=0?s=s-u:s=s+u}return s}function Ap(r,e){var t=[],i=yn,a=[[],[],[]],n=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),p=s.getVisual("toSymbol");u.__original||(u.__original=[fr(u[0]),fr(u[1])],u[2]&&u.__original.push(fr(u[2])));var c=u.__original;if(u[2]!=null){if(Ee(a[0],c[0]),Ee(a[1],c[2]),Ee(a[2],c[1]),f&&f!=="none"){var h=Ds(s.node1),v=m2(a,c[0],h*e);i(a[0][0],a[1][0],a[2][0],v,t),a[0][0]=t[3],a[1][0]=t[4],i(a[0][1],a[1][1],a[2][1],v,t),a[0][1]=t[3],a[1][1]=t[4]}if(p&&p!=="none"){var h=Ds(s.node2),v=m2(a,c[1],h*e);i(a[0][0],a[1][0],a[2][0],v,t),a[1][0]=t[1],a[2][0]=t[2],i(a[0][1],a[1][1],a[2][1],v,t),a[1][1]=t[1],a[2][1]=t[2]}Ee(u[0],a[0]),Ee(u[1],a[2]),Ee(u[2],a[1])}else{if(Ee(n[0],c[0]),Ee(n[1],c[1]),fi(o,n[1],n[0]),qr(o,o),f&&f!=="none"){var h=Ds(s.node1);Vs(n[0],n[0],o,h*e)}if(p&&p!=="none"){var h=Ds(s.node2);Vs(n[1],n[1],o,-h*e)}Ee(u[0],n[0]),Ee(u[1],n[1])}})}function g2(r){return r.type==="view"}var s6=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){var a=new ba,n=new tu,o=this.group;this._controller=new Aa(i.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(n.group),this._symbolDraw=a,this._lineDraw=n,this._firstRender=!0},e.prototype.render=function(t,i,a){var n=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(g2(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):yt(u,f,t)}Ap(t.getGraph(),As(t));var p=t.getData();s.updateData(p);var c=t.getEdgeData();l.updateData(c),this._updateNodeAndLinkScale(),this._updateController(t,i,a),clearTimeout(this._layoutTimeout);var h=t.forceLayout,v=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,v);var d=t.get("layout");p.graph.eachNode(function(x){var _=x.dataIndex,b=x.getGraphicEl(),S=x.getModel();if(b){b.off("drag").off("dragend");var T=S.get("draggable");T&&b.on("drag",function(A){switch(d){case"force":h.warmUp(),!n._layouting&&n._startForceLayoutIteration(h,v),h.setFixed(_),p.setItemLayout(_,[b.x,b.y]);break;case"circular":p.setItemLayout(_,[b.x,b.y]),x.setLayout({fixed:!0},!0),Jl(t,"symbolSize",x,[A.offsetX,A.offsetY]),n.updateLayout(t);break;case"none":default:p.setItemLayout(_,[b.x,b.y]),Cp(t.getGraph(),t),n.updateLayout(t);break}}).on("dragend",function(){h&&h.setUnfixed(_)}),b.setDraggable(T,!!S.get("cursor"));var C=S.get(["emphasis","focus"]);C==="adjacency"&&(tt(b).focus=x.getAdjacentDataIndices())}}),p.graph.eachEdge(function(x){var _=x.getGraphicEl(),b=x.getModel().get(["emphasis","focus"]);_&&b==="adjacency"&&(tt(_).focus={edge:[x.dataIndex],node:[x.node1.dataIndex,x.node2.dataIndex]})});var m=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),g=p.getLayout("cx"),y=p.getLayout("cy");p.graph.eachNode(function(x){J_(x,m,g,y)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,i){var a=this;(function n(){t.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(i?a._layoutTimeout=setTimeout(n,16):n())})})()},e.prototype._updateController=function(t,i,a){var n=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,f,p){var c=l.getBoundingRect();return c.applyTransform(l.transform),c.contain(f,p)&&!Qn(u,a,t)}),!g2(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){Wl(s,u.dx,u.dy),a.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Yl(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),n._updateNodeAndLinkScale(),Ap(t.getGraph(),As(t)),n._lineDraw.updateLayout(),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,i=t.getData(),a=As(t);i.eachItemGraphicEl(function(n,o){n&&n.setSymbolScale(a)})},e.prototype.updateLayout=function(t){Ap(t.getGraph(),As(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Tt),y2=s6;function ru(r){return"_EC_"+r}var l6=function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var i=this._nodesMap;if(!i[ru(e)]){var a=new Ms(e,t);return a.hostGraph=this,this.nodes.push(a),i[ru(e)]=a,a}},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[ru(e)]},r.prototype.addEdge=function(e,t,i){var a=this._nodesMap,n=this._edgesMap;if(vt(e)&&(e=this.nodes[e]),vt(t)&&(t=this.nodes[t]),e instanceof Ms||(e=a[ru(e)]),t instanceof Ms||(t=a[ru(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new x2(e,t,i);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),n[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof Ms&&(e=e.id),t instanceof Ms&&(t=t.id);var i=this._edgesMap;return this._directed?i[e+"-"+t]:i[e+"-"+t]||i[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var i=this.nodes,a=i.length,n=0;n=0&&e.call(t,i[n],n)},r.prototype.eachEdge=function(e,t){for(var i=this.edges,a=i.length,n=0;n=0&&i[n].node1.dataIndex>=0&&i[n].node2.dataIndex>=0&&e.call(t,i[n],n)},r.prototype.breadthFirstTraverse=function(e,t,i,a){if(t instanceof Ms||(t=this._nodesMap[ru(t)]),!!t){for(var n=i==="out"?"outEdges":i==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var n=0,o=a.length;n=0&&this[r][e].setItemVisual(this.dataIndex,t,i)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,i){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,i)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}Wt(Ms,_2("hostGraph","data"));Wt(x2,_2("hostGraph","edgeData"));var S2=l6;function Dp(r,e,t,i,a){for(var n=new S2(i),o=0;o "+c)),u++)}var h=t.get("coordinateSystem"),v;if(h==="cartesian2d"||h==="polar")v=ze(r,t);else{var d=ma.get(h),m=d?d.dimensions||[]:[];it(m,"value")<0&&m.concat(["value"]);var g=Di(r,{coordDimensions:m,encodeDefine:t.getEncode()}).dimensions;v=new se(g,t),v.initData(r)}var y=new se(["value"],t);return y.initData(l,s),a&&a(v,y),md({mainData:v,struct:n,structAttr:"graph",datas:{node:v,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),n.update(),n}var u6=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var i=this;function a(){return i._categoriesData}this.legendVisualProvider=new Ca(a,a),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),Qr(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,i){var a=t.edges||t.links||[],n=t.data||t.nodes||[],o=this;if(n&&a){i2(this);var s=Dp(n,a,this,!0,l);return w(s.edges,function(u){a2(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(v){var d=o._categoriesModels,m=v.getShallow("category"),g=d[m];return g&&(g.parentModel=v.parentModel,v.parentModel=g),v});var p=Mt.prototype.getModel;function c(v,d){var m=p.call(this,v,d);return m.resolveParentPath=h,m}f.wrapMethod("getItemModel",function(v){return v.resolveParentPath=h,v.getModel=c,v});function h(v){if(v&&(v[0]==="label"||v[1]==="label")){var d=v.slice();return v[0]==="label"?d[0]="edgeLabel":v[1]==="label"&&(d[1]="edgeLabel"),d}return v}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,i,a){if(a==="edge"){var n=this.getData(),o=this.getDataParams(t,a),s=n.graph.getEdgeByIndex(t),l=n.getName(s.node1.dataIndex),u=n.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),$t("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var p=Yh({series:this,dataIndex:t,multipleSeries:i});return p},e.prototype._updateCategoriesData=function(){var t=k(this.option.categories||[],function(a){return a.value!=null?a:N({value:0},a)}),i=new se(["value"],this);i.initData(t),this._categoriesData=i,this._categoriesModels=i.mapArray(function(a){return i.getItemModel(a)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Lt),b2=u6;var f6={type:"graphRoam",event:"graphRoam",update:"none"};function fS(r){r.registerChartView(y2),r.registerSeriesModel(b2),r.registerProcessor(W_),r.registerVisual(Y_),r.registerVisual(Z_),r.registerLayout(K_),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,Q_),r.registerLayout($_),r.registerCoordinateSystem("graphView",{dimensions:on.dimensions,create:tS}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},qt),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},qt),r.registerAction(f6,function(e,t,i){t.eachComponent({mainType:"series",query:e},function(a){var n=a.coordinateSystem,o=Zl(n,e,void 0,i);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var p6=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),c6=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="pointer",i}return e.prototype.getDefaultShape=function(){return new p6},e.prototype.buildPath=function(t,i){var a=Math.cos,n=Math.sin,o=i.r,s=i.width,l=i.angle,u=i.x-a(l)*s*(s>=o/3?1:2),f=i.y-n(l)*s*(s>=o/3?1:2);l=i.angle-Math.PI/2,t.moveTo(u,f),t.lineTo(i.x+a(l)*s,i.y+n(l)*s),t.lineTo(i.x+a(i.angle)*o,i.y+n(i.angle)*o),t.lineTo(i.x-a(l)*s,i.y-n(l)*s),t.lineTo(u,f)},e}(at),w2=c6;function h6(r,e){var t=r.get("center"),i=e.getWidth(),a=e.getHeight(),n=Math.min(i,a),o=W(t[0],e.getWidth()),s=W(t[1],e.getHeight()),l=W(r.get("radius"),n/2);return{cx:o,cy:s,r:l}}function Cd(r,e){var t=r==null?"":r+"";return e&&(B(e)?t=e.replace("{value}",t):X(e)&&(t=e(r))),t}var v6=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){this.group.removeAll();var n=t.get(["axisLine","lineStyle","color"]),o=h6(t,a);this._renderMain(t,i,a,n,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,i,a,n,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,f=-t.get("endAngle")/180*Math.PI,p=t.getModel("axisLine"),c=p.get("roundCap"),h=c?Gl:pe,v=p.get("show"),d=p.getModel("lineStyle"),m=d.get("width"),g=[u,f];af(g,!l),u=g[0],f=g[1];for(var y=f-u,x=u,_=[],b=0;v&&b=A&&(D===0?0:n[D-1][0])Math.PI/2&&(ct+=Math.PI)):ht==="tangential"?ct=-C-Math.PI/2:vt(ht)&&(ct=ht*Math.PI/180),ct===0?p.add(new dt({style:Vt(x,{text:F,x:J,y:lt,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:Z}),silent:!0})):p.add(new dt({style:Vt(x,{text:F,x:J,y:lt,verticalAlign:"middle",align:"center"},{inheritColor:Z}),silent:!0,originX:J,originY:lt,rotation:ct}))}if(y.get("show")&&O!==_){var U=y.get("distance");U=U?U+f:f;for(var It=0;It<=b;It++){P=Math.cos(C),R=Math.sin(C);var Ut=new re({shape:{x1:P*(v-U)+c,y1:R*(v-U)+h,x2:P*(v-T-U)+c,y2:R*(v-T-U)+h},silent:!0,style:L});L.stroke==="auto"&&Ut.setStyle({stroke:n((O+It/b)/_)}),p.add(Ut),C+=D}C-=D}else C+=A}},e.prototype._renderPointer=function(t,i,a,n,o,s,l,u,f){var p=this.group,c=this._data,h=this._progressEls,v=[],d=t.get(["pointer","show"]),m=t.getModel("progress"),g=m.get("show"),y=t.getData(),x=y.mapDimension("value"),_=+t.get("min"),b=+t.get("max"),S=[_,b],T=[s,l];function C(D,M){var L=y.getItemModel(D),I=L.getModel("pointer"),P=W(I.get("width"),o.r),R=W(I.get("length"),o.r),O=t.get(["pointer","icon"]),U=I.get("offsetCenter"),V=W(U[0],o.r),F=W(U[1],o.r),Z=I.get("keepAspect"),J;return O?J=Ht(O,V-P/2,F-R,P,R,null,Z):J=new w2({shape:{angle:-Math.PI/2,width:P,r:R,x:V,y:F}}),J.rotation=-(M+Math.PI/2),J.x=o.cx,J.y=o.cy,J}function A(D,M){var L=m.get("roundCap"),I=L?Gl:pe,P=m.get("overlap"),R=P?m.get("width"):f/y.count(),O=P?o.r-R:o.r-(D+1)*R,U=P?o.r:o.r-D*R,V=new I({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:O,r:U}});return P&&(V.z2=b-y.get(x,D)%b),V}(g||d)&&(y.diff(c).add(function(D){var M=y.get(x,D);if(d){var L=C(D,s);Nt(L,{rotation:-((isNaN(+M)?T[0]:zt(M,S,T,!0))+Math.PI/2)},t),p.add(L),y.setItemGraphicEl(D,L)}if(g){var I=A(D,s),P=m.get("clip");Nt(I,{shape:{endAngle:zt(M,S,T,P)}},t),p.add(I),of(t.seriesIndex,y.dataType,D,I),v[D]=I}}).update(function(D,M){var L=y.get(x,D);if(d){var I=c.getItemGraphicEl(M),P=I?I.rotation:s,R=C(D,P);R.rotation=P,yt(R,{rotation:-((isNaN(+L)?T[0]:zt(L,S,T,!0))+Math.PI/2)},t),p.add(R),y.setItemGraphicEl(D,R)}if(g){var O=h[M],U=O?O.shape.endAngle:s,V=A(D,U),F=m.get("clip");yt(V,{shape:{endAngle:zt(L,S,T,F)}},t),p.add(V),of(t.seriesIndex,y.dataType,D,V),v[D]=V}}).execute(),y.each(function(D){var M=y.getItemModel(D),L=M.getModel("emphasis"),I=L.get("focus"),P=L.get("blurScope"),R=L.get("disabled");if(d){var O=y.getItemGraphicEl(D),U=y.getItemVisual(D,"style"),V=U.fill;if(O instanceof Kt){var F=O.style;O.useStyle(N({image:F.image,x:F.x,y:F.y,width:F.width,height:F.height},U))}else O.useStyle(U),O.type!=="pointer"&&O.setColor(V);O.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),O.style.fill==="auto"&&O.setStyle("fill",n(zt(y.get(x,D),S,[0,1],!0))),O.z2EmphasisLift=0,ee(O,M),kt(O,I,P,R)}if(g){var Z=v[D];Z.useStyle(y.getItemVisual(D,"style")),Z.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),Z.z2EmphasisLift=0,ee(Z,M),kt(Z,I,P,R)}}),this._progressEls=v)},e.prototype._renderAnchor=function(t,i){var a=t.getModel("anchor"),n=a.get("show");if(n){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),f=Ht(s,i.cx-o/2+W(l[0],i.r),i.cy-o/2+W(l[1],i.r),o,o,null,u);f.z2=a.get("showAbove")?1:0,f.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(t,i,a,n,o){var s=this,l=t.getData(),u=l.mapDimension("value"),f=+t.get("min"),p=+t.get("max"),c=new j,h=[],v=[],d=t.isAnimationEnabled(),m=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(g){h[g]=new dt({silent:!0}),v[g]=new dt({silent:!0})}).update(function(g,y){h[g]=s._titleEls[y],v[g]=s._detailEls[y]}).execute(),l.each(function(g){var y=l.getItemModel(g),x=l.get(u,g),_=new j,b=n(zt(x,[f,p],[0,1],!0)),S=y.getModel("title");if(S.get("show")){var T=S.get("offsetCenter"),C=o.cx+W(T[0],o.r),A=o.cy+W(T[1],o.r),D=h[g];D.attr({z2:m?0:2,style:Vt(S,{x:C,y:A,text:l.getName(g),align:"center",verticalAlign:"middle"},{inheritColor:b})}),_.add(D)}var M=y.getModel("detail");if(M.get("show")){var L=M.get("offsetCenter"),I=o.cx+W(L[0],o.r),P=o.cy+W(L[1],o.r),R=W(M.get("width"),o.r),O=W(M.get("height"),o.r),U=t.get(["progress","show"])?l.getItemVisual(g,"style").fill:b,D=v[g],V=M.get("formatter");D.attr({z2:m?0:2,style:Vt(M,{x:I,y:P,text:Cd(x,V),width:isNaN(R)?null:R,height:isNaN(O)?null:O,align:"center",verticalAlign:"middle"},{inheritColor:U})}),vh(D,{normal:M},x,function(Z){return Cd(Z,V)}),d&&dh(D,g,l,t,{getFormattedLabel:function(Z,J,lt,ht,ct,It){return Cd(It?It.interpolatedValue:x,V)}}),_.add(D)}c.add(_)}),this.group.add(c),this._titleEls=h,this._detailEls=v},e.type="gauge",e}(Tt),T2=v6;var d6=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,i){return si(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Lt),C2=d6;function pS(r){r.registerChartView(T2),r.registerSeriesModel(C2)}var m6=["itemStyle","opacity"],g6=function(r){E(e,r);function e(t,i){var a=r.call(this)||this,n=a,o=new ae,s=new dt;return n.setTextContent(s),a.setTextGuideLine(o),a.updateData(t,i,!0),a}return e.prototype.updateData=function(t,i,a){var n=this,o=t.hostModel,s=t.getItemModel(i),l=t.getItemLayout(i),u=s.getModel("emphasis"),f=s.get(m6);f=f??1,a||Ae(n),n.useStyle(t.getItemVisual(i,"style")),n.style.lineJoin="round",a?(n.setShape({points:l.points}),n.style.opacity=0,Nt(n,{style:{opacity:f}},o,i)):yt(n,{style:{opacity:f},shape:{points:l.points}},o,i),ee(n,s),this._updateLabel(t,i),kt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,i){var a=this,n=this.getTextGuideLine(),o=a.getTextContent(),s=t.hostModel,l=t.getItemModel(i),u=t.getItemLayout(i),f=u.label,p=t.getItemVisual(i,"style"),c=p.fill;jt(o,Yt(l),{labelFetcher:t.hostModel,labelDataIndex:i,defaultOpacity:p.opacity,defaultText:t.getName(i)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}}),a.setTextConfig({local:!0,inside:!!f.inside,insideStroke:c,outsideFill:c});var h=f.linePoints;n.setShape({points:h}),a.textGuideLineConfig={anchor:h?new St(h[0][0],h[0][1]):null},yt(o,{style:{x:f.x,y:f.y}},s,i),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),Vl(a,Ul(l),{stroke:c})},e}(oe),y6=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,i,a){var n=t.getData(),o=this._data,s=this.group;n.diff(o).add(function(l){var u=new g6(n,l);n.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(n,l),s.add(f),n.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);qa(u,t,l)}).execute(),this._data=n},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Tt),A2=y6;var x6=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ca(H(this.getData,this),H(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,i){return si(this,{coordDimensions:["value"],encodeDefaulter:et(Cl,this)})},e.prototype._defaultLabelLine=function(t){Qr(t,"labelLine",["show"]);var i=t.labelLine,a=t.emphasis.labelLine;i.show=i.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var i=this.getData(),a=r.prototype.getDataParams.call(this,t),n=i.mapDimension("value"),o=i.getSum(n);return a.percent=o?+(i.get(n,t)/o*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Lt),D2=x6;function _6(r,e){return Gt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function S6(r,e){for(var t=r.mapDimension("value"),i=r.mapArray(t,function(l){return l}),a=[],n=e==="ascending",o=0,s=r.count();oO6)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!mS(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),i=t.behavior;i==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(i==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:i==="jump"?null:{duration:0}})}}};function mS(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var O2=N6;var k6=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var i=this.option;t&&ot(i,t,!0),this._initDimensions()},e.prototype.contains=function(t,i){var a=t.get("parallelIndex");return a!=null&&i.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){w(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(i){t.hasOwnProperty(i)&&(this.option[i]=t[i])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],i=this.parallelAxisIndex=[],a=wt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(n){return(n.get("parallelIndex")||0)===this.componentIndex},this);w(a,function(n){t.push("dim"+n.get("dim")),i.push(n.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(gt),N2=k6;var V6=function(r){E(e,r);function e(t,i,a,n,o){var s=r.call(this,t,i,a)||this;return s.type=n||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(Fe),z2=V6;function Zr(r,e,t,i,a,n){r=r||0;var o=t[1]-t[0];if(a!=null&&(a=iu(a,[0,o])),n!=null&&(n=Math.max(n,a??0)),i==="all"){var s=Math.abs(e[1]-e[0]);s=iu(s,[0,o]),a=n=iu(s,[a,n]),i=0}e[0]=iu(e[0],t),e[1]=iu(e[1],t);var l=gS(e,i);e[i]+=r;var u=a||0,f=t.slice();l.sign<0?f[0]+=u:f[1]-=u,e[i]=iu(e[i],f);var p;return p=gS(e,i),a!=null&&(p.sign!==l.sign||p.spann&&(e[1-i]=e[i]+p.sign*n),e}function gS(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function iu(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var yS=w,U2=Math.min,B2=Math.max,k2=Math.floor,U6=Math.ceil,V2=Zt,B6=Math.PI,F6=function(){function r(e,t,i){this.type="parallel",this._axesMap=Y(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,i)}return r.prototype._init=function(e,t,i){var a=e.dimensions,n=e.parallelAxisIndex;yS(a,function(o,s){var l=n[s],u=t.getComponent("parallelAxis",l),f=this._axesMap.set(o,new z2(o,ya(u),[0,0],u.get("type"),l)),p=f.type==="category";f.onBand=p&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),i=t.axisBase,a=t.layoutBase,n=t.pixelDimIndex,o=e[1-n],s=e[n];return o>=i&&o<=i+t.axisLength&&s>=a&&s<=a+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(i){if(e.contains(i,t)){var a=i.getData();yS(this.dimensions,function(n){var o=this._axesMap.get(n);o.scale.unionExtentFromData(a,a.mapDimension(n)),Mi(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=Gt(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,i=["x","y"],a=["width","height"],n=e.get("layout"),o=n==="horizontal"?0:1,s=t[a[o]],l=[0,s],u=this.dimensions.length,f=Ad(e.get("axisExpandWidth"),l),p=Ad(e.get("axisExpandCount")||0,[0,u]),c=e.get("axisExpandable")&&u>3&&u>p&&p>1&&f>0&&s>0,h=e.get("axisExpandWindow"),v;if(h)v=Ad(h[1]-h[0],l),h[1]=h[0]+v;else{v=Ad(f*(p-1),l);var d=e.get("axisExpandCenter")||k2(u/2);h=[f*d-v/2],h[1]=h[0]+v}var m=(s-v)/(u-p);m<3&&(m=0);var g=[k2(V2(h[0]/f,1))+1,U6(V2(h[1]/f,1))-1],y=m/f*h[0];return{layout:n,pixelDimIndex:o,layoutBase:t[i[o]],layoutLength:s,axisBase:t[i[1-o]],axisLength:t[a[1-o]],axisExpandable:c,axisExpandWidth:f,axisCollapseWidth:m,axisExpandWindow:h,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:y}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,i=this.dimensions,a=this._makeLayoutInfo(),n=a.layout;t.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),yS(i,function(o,s){var l=(a.axisExpandable?H6:G6)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},f={horizontal:B6/2,vertical:0},p=[u[n].x+e.x,u[n].y+e.y],c=f[n],h=ge();cr(h,h,c),We(h,h,p),this._axesLayout[o]={position:p,rotation:c,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,i,a){i==null&&(i=0),a==null&&(a=e.count());var n=this._axesMap,o=this.dimensions,s=[],l=[];w(o,function(m){s.push(e.mapDimension(m)),l.push(n.get(m).model)});for(var u=this.hasAxisBrushed(),f=i;fn*(1-p[0])?(u="jump",l=s-n*(1-p[2])):(l=s-n*p[1])>=0&&(l=s-n*(1-p[1]))<=0&&(l=0),l*=t.axisExpandWidth/f,l?Zr(l,a,o,"all"):u="none";else{var h=a[1]-a[0],v=o[1]*s/h;a=[B2(0,v-h/2)],a[1]=U2(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},r}();function Ad(r,e){return U2(B2(r,e[0]),e[1])}function G6(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function H6(r,e){var t=e.layoutLength,i=e.axisExpandWidth,a=e.axisCount,n=e.axisCollapseWidth,o=e.winInnerIndices,s,l=n,u=!1,f;return r=0;a--)_e(i[a])},e.prototype.getActiveState=function(t){var i=this.activeIntervals;if(!i.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(i.length===1){var a=i[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var n=0,o=i.length;nq6}function eR(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function rR(r,e,t,i){var a=new j;return a.add(new pt({name:"main",style:MS(t),silent:!0,draggable:!0,cursor:"move",drift:et(Z2,r,e,a,["n","s","w","e"]),ondragend:et(Is,e,{isEnd:!0})})),w(i,function(n){a.add(new pt({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:et(Z2,r,e,a,n),ondragend:et(Is,e,{isEnd:!0})}))}),a}function iR(r,e,t,i){var a=i.brushStyle.lineWidth||0,n=au(a,K6),o=t[0][0],s=t[1][0],l=o-a/2,u=s-a/2,f=t[0][1],p=t[1][1],c=f-n+a/2,h=p-n+a/2,v=f-o,d=p-s,m=v+a,g=d+a;ln(r,e,"main",o,s,v,d),i.transformable&&(ln(r,e,"w",l,u,n,g),ln(r,e,"e",c,u,n,g),ln(r,e,"n",l,u,m,n),ln(r,e,"s",l,h,m,n),ln(r,e,"nw",l,u,n,n),ln(r,e,"ne",c,u,n,n),ln(r,e,"sw",l,h,n,n),ln(r,e,"se",c,h,n,n))}function SS(r,e){var t=e.__brushOption,i=t.transformable,a=e.childAt(0);a.useStyle(MS(t)),a.attr({silent:!i,cursor:i?"move":"default"}),w([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(n){var o=e.childOfName(n.join("")),s=n.length===1?bS(r,n[0]):r8(r,n);o&&o.attr({silent:!i,invisible:!i,cursor:i?J6[s]+"-resize":null})})}function ln(r,e,t,i,a,n,o){var s=e.childOfName(t);s&&s.setShape(a8(LS(r,e,[[i,a],[i+n,a+o]])))}function MS(r){return q({strokeNoScale:!0},r.brushStyle)}function aR(r,e,t,i){var a=[Mp(r,t),Mp(e,i)],n=[au(r,t),au(e,i)];return[[a[0],n[0]],[a[1],n[1]]]}function e8(r){return ti(r.group)}function bS(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},a=rs(t[e],e8(r));return i[a]}function r8(r,e){var t=[bS(r,e[0]),bS(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function Z2(r,e,t,i,a,n){var o=t.__brushOption,s=r.toRectRange(o.range),l=nR(e,a,n);w(i,function(u){var f=j6[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(aR(s[0][0],s[1][0],s[0][1],s[1][1])),CS(e,t),Is(e,{isEnd:!1})}function i8(r,e,t,i){var a=e.__brushOption.range,n=nR(r,t,i);w(a,function(o){o[0]+=n[0],o[1]+=n[1]}),CS(r,e),Is(r,{isEnd:!1})}function nR(r,e,t){var i=r.group,a=i.transformCoordToLocal(e,t),n=i.transformCoordToLocal(0,0);return[a[0]-n[0],a[1]-n[1]]}function LS(r,e,t){var i=tR(r,e);return i&&i!==Ls?i.clipPath(t,r._transform):Q(t)}function a8(r){var e=Mp(r[0][0],r[1][0]),t=Mp(r[0][1],r[1][1]),i=au(r[0][0],r[1][0]),a=au(r[0][1],r[1][1]);return{x:e,y:t,width:i-e,height:a-t}}function n8(r,e,t){if(!(!r._brushType||s8(r,e.offsetX,e.offsetY))){var i=r._zr,a=r._covers,n=DS(r,e,t);if(!r._dragging)for(var o=0;oi.getWidth()||t<0||t>i.getHeight()}var Dd={lineX:K2(0),lineY:K2(1),rect:{createCover:function(r,e){function t(i){return i}return rR({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=eR(r);return aR(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,i){iR(r,e,t,i)},updateCommon:SS,contain:TS},polygon:{createCover:function(r,e){var t=new j;return t.add(new ae({name:"main",style:MS(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new oe({name:"main",draggable:!0,drift:et(i8,r,e),ondragend:et(Is,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,i){e.childAt(0).setShape({points:LS(r,e,t)})},updateCommon:SS,contain:TS}};function K2(r){return{createCover:function(e,t){return rR({toRectRange:function(i){var a=[i,[0,100]];return r&&a.reverse(),a},fromRectRange:function(i){return i[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=eR(e),i=Mp(t[0][r],t[1][r]),a=au(t[0][r],t[1][r]);return[i,a]},updateCoverShape:function(e,t,i,a){var n,o=tR(e,t);if(o!==Ls&&o.getLinearBrushOtherExtent)n=o.getLinearBrushOtherExtent(r);else{var s=e._zr;n=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[i,n];r&&l.reverse(),iR(e,t,l,a)},updateCommon:SS,contain:TS}}var nu=$6;function Md(r){return r=IS(r),function(e){return mf(e,r)}}function Ld(r,e){return r=IS(r),function(t){var i=e??t,a=i?r.width:r.height,n=i?r.x:r.y;return[n,n+(a||0)]}}function Id(r,e,t){var i=IS(r);return function(a,n){return i.contain(n[0],n[1])&&!Qn(a,e,t)}}function IS(r){return rt.create(r)}var l8=["axisLine","axisTickLabel","axisName"],u8=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){r.prototype.init.apply(this,arguments),(this._brushController=new nu(i.getZr())).on("brush",H(this._onBrush,this))},e.prototype.render=function(t,i,a,n){if(!f8(t,i,n)){this.axisModel=t,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new j,this.group.add(this._axisGroup),!!t.get("show")){var s=c8(t,i),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,p=t.axis.dim,c=l.getAxisLayout(p),h=N({strokeContainThreshold:f},c),v=new er(t,h);w(l8,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(h,u,t,s,f,a),ja(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,i,a,n,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),p=rt.create({x:l[0],y:-o/2,width:u,height:o});p.x-=f,p.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:Md(p),isTargetByCursor:Id(p,s,n),getLinearBrushOtherExtent:Ld(p,0)}]).enableBrush({brushType:"lineX",brushStyle:i,removeOnClick:!0}).updateCovers(p8(a))},e.prototype._onBrush=function(t){var i=t.areas,a=this.axisModel,n=a.axis,o=k(i,function(s){return[n.coordToData(s.range[0],!0),n.coordToData(s.range[1],!0)]});(!a.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Et);function f8(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function p8(r){var e=r.axis;return k(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function c8(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var lR=u8;var h8={type:"axisAreaSelect",event:"axisAreaSelected"};function uR(r){r.registerAction(h8,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(i){i.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(i){i.setAxisExpand(e)})})}var v8={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Lp(r){r.registerComponentView(O2),r.registerComponentModel(N2),r.registerCoordinateSystem("parallel",G2),r.registerPreprocessor(dS),r.registerComponentModel(xS),r.registerComponentView(lR),ia(r,"parallel",xS,v8),uR(r)}function ES(r){_t(Lp),r.registerChartView(E2),r.registerSeriesModel(P2),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,R2)}var d8=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),m8=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new d8},e.prototype.buildPath=function(t,i){var a=i.extent;t.moveTo(i.x1,i.y1),t.bezierCurveTo(i.cpx1,i.cpy1,i.cpx2,i.cpy2,i.x2,i.y2),i.orient==="vertical"?(t.lineTo(i.x2+a,i.y2),t.bezierCurveTo(i.cpx2+a,i.cpy2,i.cpx1+a,i.cpy1,i.x1+a,i.y1)):(t.lineTo(i.x2,i.y2+a),t.bezierCurveTo(i.cpx2,i.cpy2+a,i.cpx1,i.cpy1+a,i.x1,i.y1+a)),t.closePath()},e.prototype.highlight=function(){ir(this)},e.prototype.downplay=function(){ar(this)},e}(at),g8=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,i,a){var n=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,f=l.height,p=t.getData(),c=t.getData("edge"),h=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(v){var d=new m8,m=tt(d);m.dataIndex=v.dataIndex,m.seriesIndex=t.seriesIndex,m.dataType="edge";var g=v.getModel(),y=g.getModel("lineStyle"),x=y.get("curveness"),_=v.node1.getLayout(),b=v.node1.getModel(),S=b.get("localX"),T=b.get("localY"),C=v.node2.getLayout(),A=v.node2.getModel(),D=A.get("localX"),M=A.get("localY"),L=v.getLayout(),I,P,R,O,U,V,F,Z;d.shape.extent=Math.max(1,L.dy),d.shape.orient=h,h==="vertical"?(I=(S!=null?S*u:_.x)+L.sy,P=(T!=null?T*f:_.y)+_.dy,R=(D!=null?D*u:C.x)+L.ty,O=M!=null?M*f:C.y,U=I,V=P*(1-x)+O*x,F=R,Z=P*x+O*(1-x)):(I=(S!=null?S*u:_.x)+_.dx,P=(T!=null?T*f:_.y)+L.sy,R=D!=null?D*u:C.x,O=(M!=null?M*f:C.y)+L.ty,U=I*(1-x)+R*x,V=P,F=I*x+R*(1-x),Z=O),d.setShape({x1:I,y1:P,x2:R,y2:O,cpx1:U,cpy1:V,cpx2:F,cpy2:Z}),d.useStyle(y.getItemStyle()),fR(d.style,h,v);var J=""+g.get("value"),lt=Yt(g,"edgeLabel");jt(d,lt,{labelFetcher:{getFormattedLabel:function(It,Ut,Pt,xt,Rt,Ct){return t.getFormattedLabel(It,Ut,"edge",xt,Le(Rt,lt.normal&<.normal.get("formatter"),J),Ct)}},labelDataIndex:v.dataIndex,defaultText:J}),d.setTextConfig({position:"inside"});var ht=g.getModel("emphasis");ee(d,g,"lineStyle",function(It){var Ut=It.getItemStyle();return fR(Ut,h,v),Ut}),s.add(d),c.setItemGraphicEl(v.dataIndex,d);var ct=ht.get("focus");kt(d,ct==="adjacency"?v.getAdjacentDataIndices():ct==="trajectory"?v.getTrajectoryDataIndices():ct,ht.get("blurScope"),ht.get("disabled"))}),o.eachNode(function(v){var d=v.getLayout(),m=v.getModel(),g=m.get("localX"),y=m.get("localY"),x=m.getModel("emphasis"),_=new pt({shape:{x:g!=null?g*u:d.x,y:y!=null?y*f:d.y,width:d.dx,height:d.dy},style:m.getModel("itemStyle").getItemStyle(),z2:10});jt(_,Yt(m),{labelFetcher:{getFormattedLabel:function(S,T){return t.getFormattedLabel(S,T,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),_.disableLabelAnimation=!0,_.setStyle("fill",v.getVisual("color")),_.setStyle("decal",v.getVisual("style").decal),ee(_,m),s.add(_),p.setItemGraphicEl(v.dataIndex,_),tt(_).dataType="node";var b=x.get("focus");kt(_,b==="adjacency"?v.getAdjacentDataIndices():b==="trajectory"?v.getTrajectoryDataIndices():b,x.get("blurScope"),x.get("disabled"))}),p.eachItemGraphicEl(function(v,d){var m=p.getItemModel(d);m.get("draggable")&&(v.drift=function(g,y){n._focusAdjacencyDisabled=!0,this.shape.x+=g,this.shape.y+=y,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:p.getRawIndex(d),localX:this.shape.x/u,localY:this.shape.y/f})},v.ondragend=function(){n._focusAdjacencyDisabled=!1},v.draggable=!0,v.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(y8(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Tt);function fR(r,e,t){switch(r.fill){case"source":r.fill=t.node1.getVisual("color"),r.decal=t.node1.getVisual("style").decal;break;case"target":r.fill=t.node2.getVisual("color"),r.decal=t.node2.getVisual("style").decal;break;case"gradient":var i=t.node1.getVisual("color"),a=t.node2.getVisual("color");B(i)&&B(a)&&(r.fill=new yi(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:i,offset:0},{color:a,offset:1}]))}}function y8(r,e,t){var i=new pt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Nt(i,{shape:{width:r.width+20}},e,t),i}var pR=g8;var x8=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){var a=t.edges||t.links,n=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Mt(o[l],this,i));if(n&&a){var u=Dp(n,a,this,!0,f);return u.data}function f(p,c){p.wrapMethod("getItemModel",function(h,v){var d=h.parentModel,m=d.getData().getItemLayout(v);if(m){var g=m.depth,y=d.levelModels[g];y&&(h.parentModel=y)}return h}),c.wrapMethod("getItemModel",function(h,v){var d=h.parentModel,m=d.getGraph().getEdgeByIndex(v),g=m.node1.getLayout();if(g){var y=g.depth,x=d.levelModels[y];x&&(h.parentModel=x)}return h})}},e.prototype.setNodePosition=function(t,i){var a=this.option.data||this.option.nodes,n=a[t];n.localX=i[0],n.localY=i[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,i,a){function n(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(t,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return $t("nameValue",{name:u,value:l,noValue:n(l)})}else{var f=this.getGraph().getNodeByIndex(t),p=f.getLayout().value,c=this.getDataParams(t,a).data.name;return $t("nameValue",{name:c!=null?c+"":null,value:p,noValue:n(p)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,i){var a=r.prototype.getDataParams.call(this,t,i);if(a.value==null&&i==="node"){var n=this.getGraph().getNodeByIndex(t),o=n.getLayout().value;a.value=o}return a},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Lt),cR=x8;function RS(r,e){r.eachSeriesByType("sankey",function(t){var i=t.get("nodeWidth"),a=t.get("nodeGap"),n=_8(t,e);t.layoutInfo=n;var o=n.width,s=n.height,l=t.getGraph(),u=l.nodes,f=l.edges;b8(u);var p=wt(u,function(d){return d.getLayout().value===0}),c=p.length!==0?0:t.get("layoutIterations"),h=t.get("orient"),v=t.get("nodeAlign");S8(u,f,i,a,o,s,c,h,v)})}function _8(r,e){return Gt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function S8(r,e,t,i,a,n,o,s,l){w8(r,e,t,a,n,s,l),D8(r,e,n,a,i,o,s),z8(r,s)}function b8(r){w(r,function(e){var t=eo(e.outEdges,Ed),i=eo(e.inEdges,Ed),a=e.getValue()||0,n=Math.max(t,i,a);e.setLayout({value:n},!0)})}function w8(r,e,t,i,a,n,o){for(var s=[],l=[],u=[],f=[],p=0,c=0;c=0;g&&m.depth>h&&(h=m.depth),d.setLayout({depth:g?m.depth:p},!0),n==="vertical"?d.setLayout({dy:t},!0):d.setLayout({dx:t},!0);for(var y=0;yp-1?h:p-1;o&&o!=="left"&&T8(r,o,n,T);var C=n==="vertical"?(a-t)/T:(i-t)/T;A8(r,C,n)}function hR(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function T8(r,e,t,i){if(e==="right"){for(var a=[],n=r,o=0;n.length;){for(var s=0;s0;n--)l*=.99,I8(s,l,o),PS(s,a,t,i,o),N8(s,l,o),PS(s,a,t,i,o)}function M8(r,e){var t=[],i=e==="vertical"?"y":"x",a=tf(r,function(n){return n.getLayout()[i]});return a.keys.sort(function(n,o){return n-o}),w(a.keys,function(n){t.push(a.buckets.get(n))}),t}function L8(r,e,t,i,a,n){var o=1/0;w(r,function(s){var l=s.length,u=0;w(s,function(p){u+=p.getLayout().value});var f=n==="vertical"?(i-(l-1)*a)/u:(t-(l-1)*a)/u;f0&&(s=l.getLayout()[n]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[n]+l.getLayout()[c]+e;var v=a==="vertical"?i:t;if(u=f-e-v,u>0){s=l.getLayout()[n]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var h=p-2;h>=0;--h)l=o[h],u=l.getLayout()[n]+l.getLayout()[c]+e-f,u>0&&(s=l.getLayout()[n]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[n]}})}function I8(r,e,t){w(r.slice().reverse(),function(i){w(i,function(a){if(a.outEdges.length){var n=eo(a.outEdges,E8,t)/eo(a.outEdges,Ed);if(isNaN(n)){var o=a.outEdges.length;n=o?eo(a.outEdges,P8,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(n-ro(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(n-ro(a,t))*e;a.setLayout({y:l},!0)}}})})}function E8(r,e){return ro(r.node2,e)*r.getValue()}function P8(r,e){return ro(r.node2,e)}function R8(r,e){return ro(r.node1,e)*r.getValue()}function O8(r,e){return ro(r.node1,e)}function ro(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function Ed(r){return r.getValue()}function eo(r,e,t){for(var i=0,a=r.length,n=-1;++no&&(o=l)}),w(i,function(s){var l=new ve({type:"color",mappingMethod:"linear",dataExtent:[n,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);f!=null?(s.setVisual("color",f),s.setVisual("style",{fill:f})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&w(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function NS(r){r.registerChartView(pR),r.registerSeriesModel(cR),r.registerLayout(RS),r.registerVisual(OS),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(i){i.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var Pd=function(){function r(){}return r.prototype.getInitialData=function(e,t){var i,a=t.getComponent("xAxis",this.get("xAxisIndex")),n=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=n.get("type"),l;o==="category"?(e.layout="horizontal",i=a.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",i=n.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],f=e.layout==="horizontal"?0:1,p=this._baseAxisDim=u[f],c=u[1-f],h=[a,n],v=h[f].get("type"),d=h[1-f].get("type"),m=e.data;if(m&&l){var g=[];w(m,function(_,b){var S;z(_)?(S=_.slice(),_.unshift(b)):z(_.value)?(S=N({},_),S.value=S.value.slice(),_.value.unshift(b)):S=_,g.push(S)}),e.data=g}var y=this.defaultValueDimensions,x=[{name:p,type:hs(v),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:hs(d),dimsDef:y.slice()}];return si(this,{coordDimensions:x,dimensionsCount:y.length+1,encodeDefaulter:et(Dh,x,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r}();var vR=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Lt);Wt(vR,Pd,!0);var dR=vR;var k8=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;n.diff(s).add(function(u){if(n.hasValue(u)){var f=n.getItemLayout(u),p=mR(f,n,u,l,!0);n.setItemGraphicEl(u,p),o.add(p)}}).update(function(u,f){var p=s.getItemGraphicEl(f);if(!n.hasValue(u)){o.remove(p);return}var c=n.getItemLayout(u);p?(Ae(p),gR(c,p,n,u)):p=mR(c,n,u,l),o.add(p),n.setItemGraphicEl(u,p)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=n},e.prototype.remove=function(t){var i=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(n){n&&i.remove(n)})},e.type="boxplot",e}(Tt),V8=function(){function r(){}return r}(),U8=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="boxplotBoxPath",i}return e.prototype.getDefaultShape=function(){return new V8},e.prototype.buildPath=function(t,i){var a=i.points,n=0;for(t.moveTo(a[n][0],a[n][1]),n++;n<4;n++)t.lineTo(a[n][0],a[n][1]);for(t.closePath();nd){var _=[g,x];i.push(_)}}}return{boxData:t,outliers:i}}var xR={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Se){var i="";Bt(i)}var a=kS(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function VS(r){r.registerSeriesModel(dR),r.registerChartView(yR),r.registerLayout(zS),r.registerTransform(xR)}var W8=["color","borderColor"],Y8=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,i,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,i,a,n){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,i):this._incrementalRenderNormal(t,i)},e.prototype.eachRendered=function(t){dr(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var i=t.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},e.prototype._renderNormal=function(t){var i=t.getData(),a=this._data,n=this.group,o=i.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||n.removeAll(),i.diff(a).add(function(f){if(i.hasValue(f)){var p=i.getItemLayout(f);if(s&&_R(u,p))return;var c=US(p,f,!0);Nt(c,{shape:{points:p.ends}},t,f),BS(c,i,f,o),n.add(c),i.setItemGraphicEl(f,c)}}).update(function(f,p){var c=a.getItemGraphicEl(p);if(!i.hasValue(f)){n.remove(c);return}var h=i.getItemLayout(f);if(s&&_R(u,h)){n.remove(c);return}c?(yt(c,{shape:{points:h.ends}},t,f),Ae(c)):c=US(h,f),BS(c,i,f,o),n.add(c),i.setItemGraphicEl(f,c)}).remove(function(f){var p=a.getItemGraphicEl(f);p&&n.remove(p)}).execute(),this._data=i},e.prototype._renderLarge=function(t){this._clear(),SR(t,this.group);var i=t.get("clip",!0)?wa(t.coordinateSystem,!1,t):null;i?this.group.setClipPath(i):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,i){for(var a=i.getData(),n=a.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=a.getItemLayout(o),l=US(s,o);BS(l,a,o,n),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,i){SR(i,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Tt),Z8=function(){function r(){}return r}(),X8=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="normalCandlestickBox",i}return e.prototype.getDefaultShape=function(){return new Z8},e.prototype.buildPath=function(t,i){var a=i.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e}(at);function US(r,e,t){var i=r.ends;return new X8({shape:{points:t?q8(i,r):i},z2:100})}function _R(r,e){for(var t=!0,i=0;i0?"borderColor":"borderColor0"])||t.get(["itemStyle",r>0?"color":"color0"]);r===0&&(a=t.get(["itemStyle","borderColorDoji"]));var n=t.getModel("itemStyle").getItemStyle(W8);e.useStyle(n),e.style.fill=null,e.style.stroke=a}var bR=Y8;var wR=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,i,a){var n=i.getItemLayout(t);return n&&a.rect(n.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Lt);Wt(wR,Pd,!0);var TR=wR;function HS(r){!r||!z(r.series)||w(r.series,function(e){K(e)&&e.type==="k"&&(e.type="candlestick")})}var j8=["itemStyle","borderColor"],J8=["itemStyle","borderColor0"],Q8=["itemStyle","borderColorDoji"],$8=["itemStyle","color"],tZ=["itemStyle","color0"],eZ={seriesType:"candlestick",plan:ni(),performRawSeries:!0,reset:function(r,e){function t(n,o){return o.get(n>0?$8:tZ)}function i(n,o){return o.get(n===0?Q8:n>0?j8:J8)}if(!e.isSeriesFiltered(r)){var a=r.pipelineContext.large;return!a&&{progress:function(n,o){for(var s;(s=n.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,f=l.getItemStyle();f.fill=t(u,l),f.stroke=i(u,l)||f.fill;var p=o.ensureUniqueItemVisual(s,"style");N(p,f)}}}}}},CR=eZ;var rZ={seriesType:"candlestick",plan:ni(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),i=iZ(r,t),a=0,n=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[a])),l=k(t.mapDimensionsAll(o[n]),t.getDimensionIndex,t),u=l[0],f=l[1],p=l[2],c=l[3];if(t.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?v:h};function h(d,m){for(var g,y=m.getStore();(g=d.next())!=null;){var x=y.get(s,g),_=y.get(u,g),b=y.get(f,g),S=y.get(p,g),T=y.get(c,g),C=Math.min(_,b),A=Math.max(_,b),D=U(C,x),M=U(A,x),L=U(S,x),I=U(T,x),P=[];V(P,M,0),V(P,D,1),P.push(Z(I),Z(M),Z(L),Z(D));var R=m.getItemModel(g),O=!!R.get(["itemStyle","borderColorDoji"]);m.setItemLayout(g,{sign:AR(y,g,_,b,f,O),initBaseline:_>b?M[n]:D[n],ends:P,brushRect:F(S,T,x)})}function U(J,lt){var ht=[];return ht[a]=lt,ht[n]=J,isNaN(lt)||isNaN(J)?[NaN,NaN]:e.dataToPoint(ht)}function V(J,lt,ht){var ct=lt.slice(),It=lt.slice();ct[a]=df(ct[a]+i/2,1,!1),It[a]=df(It[a]-i/2,1,!0),ht?J.push(ct,It):J.push(It,ct)}function F(J,lt,ht){var ct=U(J,ht),It=U(lt,ht);return ct[a]-=i/2,It[a]-=i/2,{x:ct[0],y:ct[1],width:n?i:It[0]-ct[0],height:n?It[1]-ct[1]:i}}function Z(J){return J[a]=df(J[a],1),J}}function v(d,m){for(var g=xr(d.count*4),y=0,x,_=[],b=[],S,T=m.getStore(),C=!!r.get(["itemStyle","borderColorDoji"]);(S=d.next())!=null;){var A=T.get(s,S),D=T.get(u,S),M=T.get(f,S),L=T.get(p,S),I=T.get(c,S);if(isNaN(A)||isNaN(L)||isNaN(I)){g[y++]=NaN,y+=3;continue}g[y++]=AR(T,S,D,M,f,C),_[a]=A,_[n]=L,x=e.dataToPoint(_,null,b),g[y++]=x?x[0]:NaN,g[y++]=x?x[1]:NaN,_[n]=I,x=e.dataToPoint(_,null,b),g[y++]=x?x[1]:NaN}m.setLayout("largePoints",g)}}};function AR(r,e,t,i,a,n){var o;return t>i?o=-1:t0?r.get(a,e-1)<=i?1:-1:1,o}function iZ(r,e){var t=r.getBaseAxis(),i,a=t.type==="category"?t.getBandWidth():(i=t.getExtent(),Math.abs(i[1]-i[0])/e.count()),n=W(nt(r.get("barMaxWidth"),a),a),o=W(nt(r.get("barMinWidth"),1),a),s=r.get("barWidth");return s!=null?W(s,a):Math.max(Math.min(a/2,n),o)}var DR=rZ;function WS(r){r.registerChartView(bR),r.registerSeriesModel(TR),r.registerPreprocessor(HS),r.registerVisual(CR),r.registerLayout(DR)}function MR(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(i){i.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var aZ=function(r){E(e,r);function e(t,i){var a=r.call(this)||this,n=new nn(t,i),o=new j;return a.add(n),a.add(o),a.updateData(t,i),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var i=t.symbolType,a=t.color,n=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(n)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){n.stopAnimation();var c=void 0;X(p)?c=p(a):c=p,n.__t>0&&(c=-s*n.__t),this._animateSymbol(n,s,c,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,i,a,n,o){if(i>0){t.__t=0;var s=this,l=t.animate("",n).when(o?i*2:i,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(t)});n||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return Kr(t.__p1,t.__cp1)+Kr(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,i){t.__p1=i[0],t.__p2=i[1],t.__cp1=i[2]||[(i[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2]},e.prototype.updateData=function(t,i,a){this.childAt(0).updateData(t,i,a),this._updateEffectSymbol(t,i)},e.prototype._updateSymbolPosition=function(t){var i=t.__p1,a=t.__p2,n=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=ye,f=zu;s[0]=u(i[0],n[0],a[0],o),s[1]=u(i[1],n[1],a[1],o);var p=t.__t<1?f(i[0],n[0],a[0],o):f(a[0],n[0],i[0],1-o),c=t.__t<1?f(i[1],n[1],a[1],o):f(a[1],n[1],i[1],1-o);t.rotation=-Math.atan2(c,p)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(n[l]<=i);l--);l=Math.min(l,o-2)}else{for(l=s;li);l++);l=Math.min(l-1,o-2)}var f=(i-n[l])/(n[l+1]-n[l]),p=a[l],c=a[l+1];t.x=p[0]*(1-f)+f*c[0],t.y=p[1]*(1-f)+f*c[1];var h=t.__t<1?c[0]-p[0]:p[0]-c[0],v=t.__t<1?c[1]-p[1]:p[1]-c[1];t.rotation=-Math.atan2(v,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=i,t.ignore=!1}},e}(Rd),PR=uZ;var fZ=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),pZ=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i._off=0,i.hoverDataIdx=-1,i}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new fZ},e.prototype.buildPath=function(t,i){var a=i.segs,n=i.curveness,o;if(i.polyline)for(o=this._off;o0){t.moveTo(a[o++],a[o++]);for(var l=1;l0){var h=(u+p)/2-(f-c)*n,v=(f+c)/2-(p-u)*n;t.quadraticCurveTo(h,v,p,c)}else t.lineTo(p,c)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,i){var a=this.shape,n=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u0)for(var p=n[u++],c=n[u++],h=1;h0){var m=(p+v)/2-(c-d)*o,g=(c+d)/2-(v-p)*o;if(Yc(p,c,m,g,v,d,s,t,i))return l}else if(ha(p,c,v,d,s,t,i))return l;l++}return-1},e.prototype.contain=function(t,i){var a=this.transformCoordToLocal(t,i),n=this.getBoundingRect();if(t=a[0],i=a[1],n.contain(t,i)){var o=this.hoverDataIdx=this.findDataIndex(t,i);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var i=this.shape,a=i.segs,n=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),RR=cZ;var hZ={seriesType:"lines",plan:ni(),reset:function(r){var e=r.coordinateSystem;if(e){var t=r.get("polyline"),i=r.pipelineContext.large;return{progress:function(a,n){var o=[];if(i){var s=void 0,l=a.end-a.start;if(t){for(var u=0,f=a.start;f0&&(f||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(n);var p=t.get("clip",!0)&&wa(t.coordinateSystem,!1,t);p?this.group.setClipPath(p):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,i,a){var n=t.getData(),o=this._updateLineDraw(n,t);o.incrementalPrepareUpdate(n),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(t,i,a){this._lineDraw.incrementalUpdate(t,i.getData()),this._finished=t.end===i.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,i,a){var n=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=Nd.reset(t,i,a);s.progress&&s.progress({start:0,end:n.count(),count:n.count()},n),this._lineDraw.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(t,i){var a=this._lineDraw,n=this._showEffect(i),o=!!i.get("polyline"),s=i.pipelineContext,l=s.large;return(!a||n!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new RR:new tu(o?n?PR:Od:n?Rd:$l),this._hasEffet=n,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var i=t.getZr(),a=i.painter.getType()==="svg";!a&&this._lastZlevel!=null&&i.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,i){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(i)},e.prototype.dispose=function(t,i){this.remove(t,i)},e.type="lines",e}(Tt),OR=vZ;var dZ=typeof Uint32Array>"u"?Array:Uint32Array,mZ=typeof Float64Array>"u"?Array:Float64Array;function NR(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(r.data=k(e,function(t){var i=[t[0].coord,t[1].coord],a={coords:i};return t[0].name&&(a.fromName=t[0].name),t[1].name&&(a.toName=t[1].name),vo([a,t[0],t[1]])}))}var gZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],NR(t);var i=this._processFlatCoordsArray(t.data);this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset,i.flatCoords&&(t.data=new Float32Array(i.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(NR(t),t.data){var i=this._processFlatCoordsArray(t.data);this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset,i.flatCoords&&(t.data=new Float32Array(i.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var i=this._processFlatCoordsArray(t.data);i.flatCoords&&(this._flatCoords?(this._flatCoords=vn(this._flatCoords,i.flatCoords),this._flatCoordsOffset=vn(this._flatCoordsOffset,i.flatCoordsOffset)):(this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset),t.data=new Float32Array(i.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var i=this.getData().getItemModel(t),a=i.option instanceof Array?i.option:i.getShallow("coords");return a},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,i){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[t*2],n=this._flatCoordsOffset[t*2+1],o=0;oa}}return{flatCoordsOffset:new Uint32Array(n.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,i){if(0)var a;var n=new se(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],function(o,s,l,u){if(o instanceof Array)return NaN;n.hasItemOption=!0;var f=o.value;if(f!=null)return f instanceof Array?f[u]:f}),n},e.prototype.formatTooltip=function(t,i,a){var n=this.getData(),o=n.getItemModel(t),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),$t("nameValue",{name:f.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),i=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&i>0?i+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Lt),zR=gZ;function zd(r){return r instanceof Array||(r=[r,r]),r}var yZ={seriesType:"lines",reset:function(r){var e=zd(r.get("symbol")),t=zd(r.get("symbolSize")),i=r.getData();i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",t&&t[0]),i.setVisual("toSymbolSize",t&&t[1]);function a(n,o){var s=n.getItemModel(o),l=zd(s.getShallow("symbol",!0)),u=zd(s.getShallow("symbolSize",!0));l[0]&&n.setItemVisual(o,"fromSymbol",l[0]),l[1]&&n.setItemVisual(o,"toSymbol",l[1]),u[0]&&n.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&n.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:i.hasItemOption?a:null}}},kR=yZ;function ZS(r){r.registerChartView(OR),r.registerSeriesModel(zR),r.registerLayout(Nd),r.registerVisual(kR)}var xZ=256,_Z=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=He.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,i,a,n,o){var s=this._getBrush(),l=this._getGradient(n,"inRange"),u=this._getGradient(n,"outOfRange"),f=this.pointSize+this.blurSize,p=this.canvas,c=p.getContext("2d"),h=e.length;p.width=t,p.height=i;for(var v=0;v0){var L=o(x)?l:u;x>0&&(x=x*D+C),b[S++]=L[M],b[S++]=L[M+1],b[S++]=L[M+2],b[S++]=L[M+3]*x*256}else S+=4}return c.putImageData(_,0,0),p},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=He.createCanvas()),t=this.pointSize+this.blurSize,i=t*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="#000",a.beginPath(),a.arc(-t,t,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},r.prototype._getGradient=function(e,t){for(var i=this._gradientPixels,a=i[t]||(i[t]=new Uint8ClampedArray(256*4)),n=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,n),a[o++]=n[0],a[o++]=n[1],a[o++]=n[2],a[o++]=n[3];return a},r}(),VR=_Z;function SZ(r,e,t){var i=r[1]-r[0];e=k(e,function(o){return{interval:[(o.interval[0]-r[0])/i,(o.interval[1]-r[0])/i]}});var a=e.length,n=0;return function(o){var s;for(s=n;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){n=s;break}}return s>=0&&s=e[0]&&i<=e[1]}}function UR(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var wZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n;i.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(n=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,a,0,t.getData().count()):UR(o)&&this._renderOnGeo(o,t,n,a)},e.prototype.incrementalPrepareRender=function(t,i,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,i,a,n){var o=i.coordinateSystem;o&&(UR(o)?this.render(i,a,n):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(i,n,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){dr(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,i,a,n,o){var s=t.coordinateSystem,l=Ii(s,"cartesian2d"),u,f,p,c;if(l){var h=s.getAxis("x"),v=s.getAxis("y");u=h.getBandWidth()+.5,f=v.getBandWidth()+.5,p=h.scale.getExtent(),c=v.scale.getExtent()}for(var d=this.group,m=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),y=t.getModel(["blur","itemStyle"]).getItemStyle(),x=t.getModel(["select","itemStyle"]).getItemStyle(),_=t.get(["itemStyle","borderRadius"]),b=Yt(t),S=t.getModel("emphasis"),T=S.get("focus"),C=S.get("blurScope"),A=S.get("disabled"),D=l?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],M=a;Mp[1]||Rc[1])continue;var O=s.dataToPoint([P,R]);L=new pt({shape:{x:O[0]-u/2,y:O[1]-f/2,width:u,height:f},style:I})}else{if(isNaN(m.get(D[1],M)))continue;L=new pt({z2:1,shape:s.dataToRect([m.get(D[0],M)]).contentShape,style:I})}if(m.hasItemOption){var U=m.getItemModel(M),V=U.getModel("emphasis");g=V.getModel("itemStyle").getItemStyle(),y=U.getModel(["blur","itemStyle"]).getItemStyle(),x=U.getModel(["select","itemStyle"]).getItemStyle(),_=U.get(["itemStyle","borderRadius"]),T=V.get("focus"),C=V.get("blurScope"),A=V.get("disabled"),b=Yt(U)}L.shape.r=_;var F=t.getRawValue(M),Z="-";F&&F[2]!=null&&(Z=F[2]+""),jt(L,b,{labelFetcher:t,labelDataIndex:M,defaultOpacity:I.opacity,defaultText:Z}),L.ensureState("emphasis").style=g,L.ensureState("blur").style=y,L.ensureState("select").style=x,kt(L,T,C,A),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),d.add(L),m.setItemGraphicEl(M,L),this._progressiveEls&&this._progressiveEls.push(L)}},e.prototype._renderOnGeo=function(t,i,a,n){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=i.getData(),u=this._hmLayer||this._hmLayer||new VR;u.blurSize=i.get("blurSize"),u.pointSize=i.get("pointSize"),u.minOpacity=i.get("minOpacity"),u.maxOpacity=i.get("maxOpacity");var f=t.getViewRect().clone(),p=t.getRoamTransform();f.applyTransform(p);var c=Math.max(f.x,0),h=Math.max(f.y,0),v=Math.min(f.width+f.x,n.getWidth()),d=Math.min(f.height+f.y,n.getHeight()),m=v-c,g=d-h,y=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],x=l.mapArray(y,function(T,C,A){var D=t.dataToPoint([T,C]);return D[0]-=c,D[1]-=h,D.push(A),D}),_=a.getExtent(),b=a.type==="visualMap.continuous"?bZ(_,a.option.range):SZ(_,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 Kt({style:{width:m,height:g,x:c,y:h,image:u.canvas},silent:!0});this.group.add(S)},e.type="heatmap",e}(Tt),BR=wZ;var TZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){return ze(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=ma.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Lt),FR=TZ;function XS(r){r.registerChartView(BR),r.registerSeriesModel(FR)}var CZ=["itemStyle","borderWidth"],GR=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],qS=new je,AZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),p=l.master.getRect(),c={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[p.x,p.x+p.width],[p.y,p.y+p.height]],isHorizontal:f,valueDim:GR[+f],categoryDim:GR[1-+f]};o.diff(s).add(function(v){if(o.hasValue(v)){var d=WR(o,v),m=HR(o,v,d,c),g=YR(o,c,m);o.setItemGraphicEl(v,g),n.add(g),XR(g,c,m)}}).update(function(v,d){var m=s.getItemGraphicEl(d);if(!o.hasValue(v)){n.remove(m);return}var g=WR(o,v),y=HR(o,v,g,c),x=tO(o,y);m&&x!==m.__pictorialShapeStr&&(n.remove(m),o.setItemGraphicEl(v,null),m=null),m?RZ(m,c,y):m=YR(o,c,y,!0),o.setItemGraphicEl(v,m),m.__pictorialSymbolMeta=y,n.add(m),XR(m,c,y)}).remove(function(v){var d=s.getItemGraphicEl(v);d&&ZR(s,v,d.__pictorialSymbolMeta.animationModel,d)}).execute();var h=t.get("clip",!0)?wa(t.coordinateSystem,!1,t):null;return h?n.setClipPath(h):n.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,i){var a=this.group,n=this._data;t.get("animation")?n&&n.eachItemGraphicEl(function(o){ZR(n,tt(o).dataIndex,t,o)}):a.removeAll()},e.type="pictorialBar",e}(Tt);function HR(r,e,t,i){var a=r.getItemLayout(e),n=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=t.get("symbolPatternSize")||2,p=t.isAnimationEnabled(),c={dataIndex:e,layout:a,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:n,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:p?t:null,hoverScale:p&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};DZ(t,n,a,i,c),MZ(r,e,a,n,o,c.boundingLength,c.pxSign,f,i,c),LZ(t,c.symbolScale,u,i,c);var h=c.symbolSize,v=oi(t.get("symbolOffset"),h);return IZ(t,h,a,n,o,v,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,i,c),c}function DZ(r,e,t,i,a){var n=i.valueDim,o=r.get("symbolBoundingData"),s=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[n.wh]<=0),f;if(z(o)){var p=[KS(s,o[0])-l,KS(s,o[1])-l];p[1]0?1:-1}function KS(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function MZ(r,e,t,i,a,n,o,s,l,u){var f=l.valueDim,p=l.categoryDim,c=Math.abs(t[p.wh]),h=r.getItemVisual(e,"symbolSize"),v;z(h)?v=h.slice():h==null?v=["100%","100%"]:v=[h,h],v[p.index]=W(v[p.index],c),v[f.index]=W(v[f.index],i?c:Math.abs(n)),u.symbolSize=v;var d=u.symbolScale=[v[0]/s,v[1]/s];d[f.index]*=(l.isHorizontal?-1:1)*o}function LZ(r,e,t,i,a){var n=r.get(CZ)||0;n&&(qS.attr({scaleX:e[0],scaleY:e[1],rotation:t}),qS.updateTransform(),n/=qS.getLineScale(),n*=e[i.valueDim.index]),a.valueLineWidth=n||0}function IZ(r,e,t,i,a,n,o,s,l,u,f,p){var c=f.categoryDim,h=f.valueDim,v=p.pxSign,d=Math.max(e[h.index]+s,0),m=d;if(i){var g=Math.abs(l),y=Jt(r.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1));var _=W(y,e[h.index]),b=Math.max(d+_*2,0),S=x?0:_*2,T=Vo(i),C=T?i:qR((g+S)/b),A=g-C*d;_=A/2/(x?C:Math.max(C-1,1)),b=d+_*2,S=x?0:_*2,!T&&i!=="fixed"&&(C=u?qR((Math.abs(u)+S)/b):0),m=C*b-S,p.repeatTimes=C,p.symbolMargin=_}var D=v*(m/2),M=p.pathPosition=[];M[c.index]=t[c.wh]/2,M[h.index]=o==="start"?D:o==="end"?l-D:l/2,n&&(M[0]+=n[0],M[1]+=n[1]);var L=p.bundlePosition=[];L[c.index]=t[c.xy],L[h.index]=t[h.xy];var I=p.barRectShape=N({},t);I[h.wh]=v*Math.max(Math.abs(t[h.wh]),Math.abs(M[h.index]+D)),I[c.wh]=t[c.wh];var P=p.clipShape={};P[c.xy]=-t[c.xy],P[c.wh]=f.ecSize[c.wh],P[h.xy]=0,P[h.wh]=t[h.wh]}function KR(r){var e=r.symbolPatternSize,t=Ht(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function jR(r,e,t,i){var a=r.__pictorialBundle,n=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,f=0,p=n[e.valueDim.index]+o+t.symbolMargin*2;for(jS(r,function(d){d.__pictorialAnimationIndex=f,d.__pictorialRepeatTimes=u,f0:g<0)&&(y=u-1-d),m[l.index]=p*(y-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function JR(r,e,t,i){var a=r.__pictorialBundle,n=r.__pictorialMainPath;n?ou(n,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,i):(n=r.__pictorialMainPath=KR(t),a.add(n),ou(n,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,i))}function QR(r,e,t){var i=N({},e.barRectShape),a=r.__pictorialBarRect;a?ou(a,null,{shape:i},e,t):(a=r.__pictorialBarRect=new pt({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function $R(r,e,t,i){if(t.symbolClip){var a=r.__pictorialClipPath,n=N({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(a)yt(a,{shape:n},s,l);else{n[o.wh]=0,a=new pt({shape:n}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=t.clipShape[o.wh],mt[i?"updateProps":"initProps"](a,{shape:u},s,l)}}}function WR(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=EZ,t.isAnimationEnabled=PZ,t}function EZ(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function PZ(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function YR(r,e,t,i){var a=new j,n=new j;return a.add(n),a.__pictorialBundle=n,n.x=t.bundlePosition[0],n.y=t.bundlePosition[1],t.symbolRepeat?jR(a,e,t):JR(a,e,t),QR(a,t,i),$R(a,e,t,i),a.__pictorialShapeStr=tO(r,t),a.__pictorialSymbolMeta=t,a}function RZ(r,e,t){var i=t.animationModel,a=t.dataIndex,n=r.__pictorialBundle;yt(n,{x:t.bundlePosition[0],y:t.bundlePosition[1]},i,a),t.symbolRepeat?jR(r,e,t,!0):JR(r,e,t,!0),QR(r,t,!0),$R(r,e,t,!0)}function ZR(r,e,t,i){var a=i.__pictorialBarRect;a&&a.removeTextContent();var n=[];jS(i,function(o){n.push(o)}),i.__pictorialMainPath&&n.push(i.__pictorialMainPath),i.__pictorialClipPath&&(t=null),w(n,function(o){xi(o,{scaleX:0,scaleY:0},t,e,function(){i.parent&&i.parent.remove(i)})}),r.setItemGraphicEl(e,null)}function tO(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function jS(r,e,t){w(r.__pictorialBundle.children(),function(i){i!==r.__pictorialBarRect&&e.call(t,i)})}function ou(r,e,t,i,a,n){e&&r.attr(e),i.symbolClip&&!a?t&&r.attr(t):t&&mt[a?"updateProps":"initProps"](r,t,i.animationModel,i.dataIndex,n)}function XR(r,e,t){var i=t.dataIndex,a=t.itemModel,n=a.getModel("emphasis"),o=n.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),f=n.get("focus"),p=n.get("blurScope"),c=n.get("scale");jS(r,function(d){if(d instanceof Kt){var m=d.style;d.useStyle(N({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},t.style))}else d.useStyle(t.style);var g=d.ensureState("emphasis");g.style=o,c&&(g.scaleX=d.scaleX*1.1,g.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=t.z2});var h=e.valueDim.posDesc[+(t.boundingLength>0)],v=r.__pictorialBarRect;v.ignoreClip=!0,jt(v,Yt(a),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:ta(e.seriesModel.getData(),i),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:h}),kt(r,f,p,n.get("disabled"))}function qR(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}var eO=AZ;var OZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=or(Fl.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Fl),rO=OZ;function JS(r){r.registerChartView(eO),r.registerSeriesModel(rO),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,et(xv,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,_v("pictorialBar"))}var NZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,i,a){var n=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=n.getLayout("layoutInfo"),f=u.rect,p=u.boundaryGap;s.x=0,s.y=f.y+p[0];function c(m){return m.name}var h=new tr(this._layersSeries||[],l,c,c),v=[];h.add(H(d,this,"add")).update(H(d,this,"update")).remove(H(d,this,"remove")).execute();function d(m,g,y){var x=o._layers;if(m==="remove"){s.remove(x[g]);return}for(var _=[],b=[],S,T=l[g].indices,C=0;Cn&&(n=s),i.push(s)}for(var u=0;un&&(n=p)}return{y0:a,max:n}}function t1(r){r.registerChartView(iO),r.registerSeriesModel(aO),r.registerLayout($S),r.registerProcessor(ra("themeRiver"))}var UZ=2,BZ=4,FZ=function(r){E(e,r);function e(t,i,a,n){var o=r.call(this)||this;o.z2=UZ,o.textConfig={inside:!0},tt(o).seriesIndex=i.seriesIndex;var s=new dt({z2:BZ,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,i,a,n),o}return e.prototype.updateData=function(t,i,a,n,o){this.node=i,i.piece=this,a=a||this._seriesModel,n=n||this._ecModel;var s=this;tt(s).dataIndex=i.dataIndex;var l=i.getModel(),u=l.getModel("emphasis"),f=i.getLayout(),p=N({},f);p.label=null;var c=i.getVisual("style");c.lineJoin="bevel";var h=i.getVisual("decal");h&&(c.decal=ji(h,o));var v=Ta(l.getModel("itemStyle"),p,!0);N(p,v),w(Ne,function(y){var x=s.ensureState(y),_=l.getModel([y,"itemStyle"]);x.style=_.getItemStyle();var b=Ta(_,p);b&&(x.shape=b)}),t?(s.setShape(p),s.shape.r=f.r0,Nt(s,{shape:{r:f.r}},a,i.dataIndex)):(yt(s,{shape:p},a),Ae(s)),s.useStyle(c),this._updateLabel(a);var d=l.getShallow("cursor");d&&s.attr("cursor",d),this._seriesModel=a||this._seriesModel,this._ecModel=n||this._ecModel;var m=u.get("focus"),g=m==="ancestor"?i.getAncestorsIndices():m==="descendant"?i.getDescendantIndices():m;kt(this,g,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var i=this,a=this.node.getModel(),n=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),p=this,c=p.getTextContent(),h=this.node.dataIndex,v=n.get("minAngle")/180*Math.PI,d=n.get("show")&&!(v!=null&&Math.abs(s)P&&!Ua(O-P)&&O0?(o.virtualPiece?o.virtualPiece.updateData(!1,y,t,i,a):(o.virtualPiece=new e1(y,t,i,a),f.add(o.virtualPiece)),x.piece.off("click"),o.virtualPiece.on("click",function(_){o._rootToNode(x.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(i){var a=!1,n=t.seriesModel.getViewRoot();n.eachNode(function(o){if(!a&&o.piece&&o.piece===i.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";os(u,f)}}a=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:kd,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,i){var a=i.getData(),n=a.getItemLayout(0);if(n){var o=t[0]-n.cx,s=t[1]-n.cy,l=Math.sqrt(o*o+s*s);return l<=n.r&&l>=n.r0}},e.type="sunburst",e}(Tt),lO=HZ;var WZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,i){var a={name:t.name,children:t.data};uO(a);var n=this._levelModels=k(t.levels||[],function(l){return new Mt(l,this,i)},this),o=Xl.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var p=o.getNodeByDataIndex(f),c=n[p.depth];return c&&(u.parentModel=c),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var i=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return i.treePathInfo=to(a,this),i},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var i=this.getRawData().tree.root;(!t||t!==i&&!i.contains(t))&&(this._viewRoot=i)},e.prototype.enableAriaDecal=function(){yp(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Lt);function uO(r){var e=0;w(r.children,function(i){uO(i);var a=i.value;z(a)&&(a=a[0]),e+=a});var t=r.value;z(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),z(r.value)?r.value[0]=t:r.value=t}var fO=WZ;var pO=Math.PI/180;function r1(r,e,t){e.eachSeriesByType(r,function(i){var a=i.get("center"),n=i.get("radius");z(n)||(n=[0,n]),z(a)||(a=[a,a]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=W(a[0],o),f=W(a[1],s),p=W(n[0],l/2),c=W(n[1],l/2),h=-i.get("startAngle")*pO,v=i.get("minAngle")*pO,d=i.getData().tree.root,m=i.getViewRoot(),g=m.depth,y=i.get("sort");y!=null&&cO(m,y);var x=0;w(m.children,function(O){!isNaN(O.getValue())&&x++});var _=m.getValue(),b=Math.PI/(_||x)*2,S=m.depth>0,T=m.height-(S?-1:1),C=(c-p)/(T||1),A=i.get("clockwise"),D=i.get("stillShowZeroSum"),M=A?1:-1,L=function(O,U){if(O){var V=U;if(O!==d){var F=O.getValue(),Z=_===0&&D?b:F*b;Z1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return i.depth>1&&B(s)&&(s=Uu(s,(i.depth-1)/(n-1)*.5)),s}r.eachSeriesByType("sunburst",function(i){var a=i.getData(),n=a.tree;n.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,i,n.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");N(u,l)})})}function a1(r){r.registerChartView(lO),r.registerSeriesModel(fO),r.registerLayout(et(r1,"sunburst")),r.registerProcessor(et(ra,"sunburst")),r.registerVisual(i1),sO(r)}var n1={color:"fill",borderColor:"stroke"},hO={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Da=st(),ZZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,i){return ze(null,this)},e.prototype.getDataParams=function(t,i,a){var n=r.prototype.getDataParams.call(this,t,i);return a&&(n.info=Da(a).info),n},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Lt),vO=ZZ;function XZ(r,e){return e=e||[0,0],k(["x","y"],function(t,i){var a=this.getAxis(t),n=e[i],o=r[i]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(n-o)-a.dataToCoord(n+o))},this)}function o1(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:H(XZ,r)}}}function qZ(r,e){return e=e||[0,0],k([0,1],function(t){var i=e[t],a=r[t]/2,n=[],o=[];return n[t]=i-a,o[t]=i+a,n[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(n)[t]-this.dataToPoint(o)[t])},this)}function s1(r){var e=r.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:r.getZoom()},api:{coord:function(t){return r.dataToPoint(t)},size:H(qZ,r)}}}function KZ(r,e){var t=this.getAxis(),i=e instanceof Array?e[0]:e,a=(r instanceof Array?r[0]:r)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(i-a)-t.dataToCoord(i+a))}function l1(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:H(KZ,r)}}}function jZ(r,e){return e=e||[0,0],k(["Radius","Angle"],function(t,i){var a="get"+t+"Axis",n=this[a](),o=e[i],s=r[i]/2,l=n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(o-s)-n.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function u1(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:i[1],r0:i[0]},api:{coord:function(a){var n=e.dataToRadius(a[0]),o=t.dataToAngle(a[1]),s=r.coordToPoint([n,o]);return s.push(n,o*Math.PI/180),s},size:H(jZ,r)}}}function f1(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(i,a){return r.dataToPoint(i,a)}}}}function Vd(r,e,t,i){return r&&(r.legacy||r.legacy!==!1&&!t&&!i&&e!=="tspan"&&(e==="text"||$(r,"text")))}function Ud(r,e,t){var i=r,a,n,o;if(e==="text")o=i;else{o={},$(i,"text")&&(o.text=i.text),$(i,"rich")&&(o.rich=i.rich),$(i,"textFill")&&(o.fill=i.textFill),$(i,"textStroke")&&(o.stroke=i.textStroke),$(i,"fontFamily")&&(o.fontFamily=i.fontFamily),$(i,"fontSize")&&(o.fontSize=i.fontSize),$(i,"fontStyle")&&(o.fontStyle=i.fontStyle),$(i,"fontWeight")&&(o.fontWeight=i.fontWeight),n={type:"text",style:o,silent:!0},a={};var s=$(i,"textPosition");t?a.position=s?i.textPosition:"inside":s&&(a.position=i.textPosition),$(i,"textPosition")&&(a.position=i.textPosition),$(i,"textOffset")&&(a.offset=i.textOffset),$(i,"textRotation")&&(a.rotation=i.textRotation),$(i,"textDistance")&&(a.distance=i.textDistance)}return dO(o,r),w(o.rich,function(l){dO(l,l)}),{textConfig:a,textContent:n}}function dO(r,e){e&&(e.font=e.textFont||e.font,$(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),$(e,"textAlign")&&(r.align=e.textAlign),$(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),$(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),$(e,"textWidth")&&(r.width=e.textWidth),$(e,"textHeight")&&(r.height=e.textHeight),$(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),$(e,"textPadding")&&(r.padding=e.textPadding),$(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),$(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),$(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),$(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),$(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),$(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),$(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function p1(r,e,t){var i=r;i.textPosition=i.textPosition||t.position||"inside",t.offset!=null&&(i.textOffset=t.offset),t.rotation!=null&&(i.textRotation=t.rotation),t.distance!=null&&(i.textDistance=t.distance);var a=i.textPosition.indexOf("inside")>=0,n=r.fill||"#000";mO(i,e);var o=i.textFill==null;return a?o&&(i.textFill=t.insideFill||"#fff",!i.textStroke&&t.insideStroke&&(i.textStroke=t.insideStroke),!i.textStroke&&(i.textStroke=n),i.textStrokeWidth==null&&(i.textStrokeWidth=2)):(o&&(i.textFill=r.fill||t.outsideFill||"#000"),!i.textStroke&&t.outsideStroke&&(i.textStroke=t.outsideStroke)),i.text=e.text,i.rich=e.rich,w(e.rich,function(s){mO(s,s)}),i}function mO(r,e){e&&($(e,"fill")&&(r.textFill=e.fill),$(e,"stroke")&&(r.textStroke=e.fill),$(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),$(e,"font")&&(r.font=e.font),$(e,"fontStyle")&&(r.fontStyle=e.fontStyle),$(e,"fontWeight")&&(r.fontWeight=e.fontWeight),$(e,"fontSize")&&(r.fontSize=e.fontSize),$(e,"fontFamily")&&(r.fontFamily=e.fontFamily),$(e,"align")&&(r.textAlign=e.align),$(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),$(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),$(e,"width")&&(r.textWidth=e.width),$(e,"height")&&(r.textHeight=e.height),$(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),$(e,"padding")&&(r.textPadding=e.padding),$(e,"borderColor")&&(r.textBorderColor=e.borderColor),$(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),$(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),$(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),$(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),$(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),$(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),$(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),$(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),$(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),$(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var _O={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},gO=ft(_O),GCt=Me(Jr,function(r,e){return r[e]=1,r},{}),HCt=Jr.join(", "),Ep=["","style","shape","extra"],su=st();function c1(r,e,t,i,a){var n=r+"Animation",o=da(r,i,a)||{},s=su(e).userDuring;return o.duration>0&&(o.during=s?H(e7,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),N(o,t[n]),o}function lu(r,e,t,i){i=i||{};var a=i.dataIndex,n=i.isInit,o=i.clearStyle,s=t.isAnimationEnabled(),l=su(r),u=e.style;l.userDuring=e.during;var f={},p={};if(i7(r,e,p),xO("shape",e,p),xO("extra",e,p),!n&&s&&(r7(r,e,f),yO("shape",r,e,f),yO("extra",r,e,f),a7(r,e,u,f)),p.style=u,JZ(r,p,o),$Z(r,e),s)if(n){var c={};w(Ep,function(v){var d=v?e[v]:e;d&&d.enterFrom&&(v&&(c[v]=c[v]||{}),N(v?c[v]:c,d.enterFrom))});var h=c1("enter",r,e,t,a);h.duration>0&&r.animateFrom(c,h)}else QZ(r,e,a||0,t,f);h1(r,e),u?r.dirty():r.markRedraw()}function h1(r,e){for(var t=su(r).leaveToProps,i=0;i0&&r.animateFrom(a,n)}}function $Z(r,e){$(e,"silent")&&(r.silent=e.silent),$(e,"ignore")&&(r.ignore=e.ignore),r instanceof xe&&$(e,"invisible")&&(r.invisible=e.invisible),r instanceof at&&$(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var Ma={},t7={setTransform:function(r,e){return Ma.el[r]=e,this},getTransform:function(r){return Ma.el[r]},setShape:function(r,e){var t=Ma.el,i=t.shape||(t.shape={});return i[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=Ma.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=Ma.el,i=t.style;return i&&(i[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=Ma.el.style;if(e)return e[r]},setExtra:function(r,e){var t=Ma.el.extra||(Ma.el.extra={});return t[r]=e,this},getExtra:function(r){var e=Ma.el.extra;if(e)return e[r]}};function e7(){var r=this,e=r.el;if(e){var t=su(e).userDuring,i=r.userDuring;if(t!==i){r.el=r.userDuring=null;return}Ma.el=e,i(t7)}}function yO(r,e,t,i){var a=t[r];if(a){var n=e[r],o;if(n){var s=t.transition,l=a.transition;if(l)if(!o&&(o=i[r]={}),io(l))N(o,n);else for(var u=Ot(l),f=0;f=0){!o&&(o=i[r]={});for(var h=ft(n),f=0;f=0)){var c=r.getAnimationStyleProps(),h=c?c.style:null;if(h){!n&&(n=i.style={});for(var v=ft(t),u=0;u=0?e.getStore().get(U,R):void 0}var V=e.get(O.name,R),F=O&&O.ordinalMeta;return F?F.categories[V]:V}function S(P,R){R==null&&(R=u);var O=e.getItemVisual(R,"style"),U=O&&O.fill,V=O&&O.opacity,F=y(R,ao).getItemStyle();U!=null&&(F.fill=U),V!=null&&(F.opacity=V);var Z={inheritColor:B(U)?U:"#000"},J=x(R,ao),lt=Vt(J,null,Z,!1,!0);lt.text=J.getShallow("show")?nt(r.getFormattedLabel(R,ao),ta(e,R)):null;var ht=gf(J,Z,!1);return A(P,F),F=p1(F,lt,ht),P&&C(F,P),F.legacy=!0,F}function T(P,R){R==null&&(R=u);var O=y(R,un).getItemStyle(),U=x(R,un),V=Vt(U,null,null,!0,!0);V.text=U.getShallow("show")?Le(r.getFormattedLabel(R,un),r.getFormattedLabel(R,ao),ta(e,R)):null;var F=gf(U,null,!0);return A(P,O),O=p1(O,V,F),P&&C(O,P),O.legacy=!0,O}function C(P,R){for(var O in R)$(R,O)&&(P[O]=R[O])}function A(P,R){P&&(P.textFill&&(R.textFill=P.textFill),P.textPosition&&(R.textPosition=P.textPosition))}function D(P,R){if(R==null&&(R=u),$(n1,P)){var O=e.getItemVisual(R,"style");return O?O[n1[P]]:null}if($(hO,P))return e.getItemVisual(R,P)}function M(P){if(n.type==="cartesian2d"){var R=n.getBaseAxis();return nL(q({axis:R},P))}}function L(){return t.getCurrentSeriesIndices()}function I(P){return gl(P,t)}}function v7(r){var e={};return w(r.dimensions,function(t){var i=r.getDimensionInfo(t);if(!i.isExtraCoord){var a=i.coordDim,n=e[a]=e[a]||[];n[i.coordDimIndex]=r.getDimensionIndex(t)}}),e}function m1(r,e,t,i,a,n,o){if(!i){n.remove(e);return}var s=w1(r,e,t,i,a,n);return s&&o.setItemGraphicEl(t,s),s&&kt(s,i.focus,i.blurScope,i.emphasisDisabled),s}function w1(r,e,t,i,a,n){var o=-1,s=e;e&&MO(e,i,a)&&(o=it(n.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=S1(i),s&&f7(s,u)),i.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Oi.normal.cfg=Oi.normal.conOpt=Oi.emphasis.cfg=Oi.emphasis.conOpt=Oi.blur.cfg=Oi.blur.conOpt=Oi.select.cfg=Oi.select.conOpt=null,Oi.isLegacy=!1,m7(u,t,i,a,l,Oi),d7(u,t,i,a,l),b1(r,u,t,i,Oi,a,l),$(i,"info")&&(Da(u).info=i.info);for(var f=0;f=0?n.replaceAt(u,o):n.add(u),u}function MO(r,e,t){var i=Da(r),a=e.type,n=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||a!=null&&a!==i.customGraphicType||a==="path"&&S7(n)&&LO(n)!==i.customPathData||a==="image"&&$(o,"image")&&o.image!==i.customImagePath}function d7(r,e,t,i,a){var n=t.clipPath;if(n===!1)r&&r.getClipPath()&&r.removeClipPath();else if(n){var o=r.getClipPath();o&&MO(o,n,i)&&(o=null),o||(o=S1(n),r.setClipPath(o)),b1(null,o,e,n,null,i,a)}}function m7(r,e,t,i,a,n){if(!r.isGroup){wO(t,null,n),wO(t,un,n);var o=n.normal.conOpt,s=n.emphasis.conOpt,l=n.blur.conOpt,u=n.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=n.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=S1(o),r.setTextContent(f)),b1(null,f,e,o,null,i,a);for(var p=o&&o.style,c=0;c=f;h--){var v=e.childAt(h);y7(e,v,a)}}}function y7(r,e,t){e&&uu(e,Da(r).option,t)}function x7(r){new tr(r.oldChildren,r.newChildren,TO,TO,r).add(CO).update(CO).remove(_7).execute()}function TO(r,e){var t=r&&r.name;return t??l7+e}function CO(r,e){var t=this.context,i=r!=null?t.newChildren[r]:null,a=e!=null?t.oldChildren[e]:null;w1(t.api,a,t.dataIndex,i,t.seriesModel,t.group)}function _7(r){var e=this.context,t=e.oldChildren[r];t&&uu(t,Da(t).option,e.seriesModel)}function LO(r){return r&&(r.pathData||r.d)}function S7(r){return r&&($(r,"pathData")||$(r,"d"))}function C1(r){r.registerChartView(AO),r.registerSeriesModel(vO)}var Es=st(),IO=Q,A1=H,b7=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,i,a){var n=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,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,t,i);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var p=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new j,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),i.getZr().add(s);else{var c=et(EO,t,p);this.updatePointerEl(s,u,c),this.updateLabelEl(s,u,c,t)}RO(s,t,!0),this._renderHandle(n)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var i=t.get("animation"),a=e.axis,n=a.type==="category",o=t.get("snap");if(!o&&!n)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(n&&a.getBandWidth()>s)return!0;if(o){var l=id(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},r.prototype.makeElOption=function(e,t,i,a,n){},r.prototype.createPointerEl=function(e,t,i,a){var n=t.pointer;if(n){var o=Es(e).pointerEl=new mt[n.type](IO(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,i,a){if(t.label){var n=Es(e).labelEl=new dt(IO(t.label));e.add(n),PO(n,a)}},r.prototype.updatePointerEl=function(e,t,i){var a=Es(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),i(a,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,i,a){var n=Es(e).labelEl;n&&(n.setStyle(t.label.style),i(n,{x:t.label.x,y:t.label.y}),PO(n,a))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,i=this._api.getZr(),a=this._handle,n=t.getModel("handle"),o=t.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=Hi(n.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Mr(u.event)},onmousedown:A1(this._onHandleDragMove,this,0,0),drift:A1(this._onHandleDragMove,this),ondragend:A1(this._onHandleDragEnd,this)}),i.add(a)),RO(a,t,!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,Ti(this,"_doDispatchAxisPointer",n.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){EO(this._axisPointerModel,!t&&this._moveAnimation,this._handle,D1(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var i=this._handle;if(i){this._dragging=!0;var a=this.updateHandleTransform(D1(i),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,i.stopAnimation(),i.attr(D1(a)),Es(i).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),i=this._group,a=this._handle;t&&i&&(this._lastGraphicKey=null,i&&t.remove(i),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),rn(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,i){return i=i||0,{x:e[i],y:e[1-i],width:t[i],height:t[1-i]}},r}();function EO(r,e,t,i){OO(Es(t).lastProp,i)||(Es(t).lastProp=i,e?yt(t,i,r):(t.stopAnimation(),t.attr(i)))}function OO(r,e){if(K(r)&&K(e)){var t=!0;return w(e,function(i,a){t=t&&OO(r[a],i)}),!!t}else return r===e}function PO(r,e){r[e.get(["label","show"])?"show":"hide"]()}function D1(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function RO(r,e,t){var i=e.get("z"),a=e.get("zlevel");r&&r.traverse(function(n){n.type!=="group"&&(i!=null&&(n.z=i),a!=null&&(n.zlevel=a),n.silent=t)})}var pu=b7;function cu(r){var e=r.get("type"),t=r.getModel(e+"Style"),i;return e==="line"?(i=t.getLineStyle(),i.fill=null):e==="shadow"&&(i=t.getAreaStyle(),i.stroke=null),i}function M1(r,e,t,i,a){var n=t.get("value"),o=L1(n,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=ri(s.get("padding")||0),u=s.getFont(),f=la(o,u),p=a.position,c=f.width+l[1]+l[3],h=f.height+l[0]+l[2],v=a.align;v==="right"&&(p[0]-=c),v==="center"&&(p[0]-=c/2);var d=a.verticalAlign;d==="bottom"&&(p[1]-=h),d==="middle"&&(p[1]-=h/2),w7(p,c,h,i);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),r.label={x:p[0],y:p[1],style:Vt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function w7(r,e,t,i){var a=i.getWidth(),n=i.getHeight();r[0]=Math.min(r[0]+e,a)-e,r[1]=Math.min(r[1]+t,n)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function L1(r,e,t,i,a){r=e.scale.parse(r);var n=e.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:ep(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};w(i,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,p=u&&u.getDataParams(f);p&&s.seriesData.push(p)}),B(o)?n=o.replace("{value}",n):X(o)&&(n=o(s))}return n}function Pp(r,e,t){var i=ge();return cr(i,i,t.rotation),We(i,i,t.position),Je([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],i)}function Gd(r,e,t,i,a,n){var o=er.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),M1(e,i,a,n,{position:Pp(i.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function hu(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function Hd(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function I1(r,e,t,i,a,n){return{cx:r,cy:e,r0:t,r:i,startAngle:a,endAngle:n,clockwise:!0}}var T7=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,a,n,o){var s=a.axis,l=s.grid,u=n.get("type"),f=NO(l,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var c=cu(n),h=C7[u](s,p,f);h.style=c,t.graphicKey=h.type,t.pointer=h}var v=vp(l.model,a);Gd(i,t,v,a,n,o)},e.prototype.getHandleTransform=function(t,i,a){var n=vp(i.axis.grid.model,i,{labelInside:!1});n.labelMargin=a.get(["handle","margin"]);var o=Pp(i.axis,t,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,i,a,n){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=NO(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,p=[t.x,t.y];p[f]+=i[f],p[f]=Math.min(l[1],p[f]),p[f]=Math.max(l[0],p[f]);var c=(u[1]+u[0])/2,h=[c,c];h[f]=p[f];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:p[0],y:p[1],rotation:t.rotation,cursorPoint:h,tooltipOption:v[f]}},e}(pu);function NO(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var C7={line:function(r,e,t){var i=hu([e,t[0]],[e,t[1]],zO(r));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(r,e,t){var i=Math.max(1,r.getBandWidth()),a=t[1]-t[0];return{type:"Rect",shape:Hd([e-i/2,t[0]],[i,a],zO(r))}}};function zO(r){return r.dim==="x"?0:1}var kO=T7;var A7=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}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:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",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:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(gt),VO=A7;var fn=st(),D7=w;function Yd(r,e,t){if(!bt.node){var i=e.getZr();fn(i).records||(fn(i).records={}),M7(i,e);var a=fn(i).records[r]||(fn(i).records[r]={});a.handler=t}}function M7(r,e){if(fn(r).initialized)return;fn(r).initialized=!0,t("click",et(UO,"click")),t("mousemove",et(UO,"mousemove")),t("globalout",I7);function t(i,a){r.on(i,function(n){var o=E7(e);D7(fn(r).records,function(s){s&&a(s,n,o.dispatchAction)}),L7(o.pendings,e)})}}function L7(r,e){var t=r.showTip.length,i=r.hideTip.length,a;t?a=r.showTip[t-1]:i&&(a=r.hideTip[i-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function I7(r,e,t){r.handler("leave",null,t)}function UO(r,e,t,i){e.handler(r,t,i)}function E7(r){var e={showTip:[],hideTip:[]},t=function(i){var a=e[i.type];a?a.push(i):(i.dispatchAction=t,r.dispatchAction(i))};return{dispatchAction:t,pendings:e}}function Rp(r,e){if(!bt.node){var t=e.getZr(),i=(fn(t).records||{})[r];i&&(fn(t).records[r]=null)}}var P7=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n=i.getComponent("tooltip"),o=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";Yd("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(t,i){Rp("axisPointer",i)},e.prototype.dispose=function(t,i){Rp("axisPointer",i)},e.type="axisPointer",e}(Et),FO=P7;function Op(r,e){var t=[],i=r.seriesIndex,a;if(i==null||!(a=e.getSeriesByIndex(i)))return{point:[]};var n=a.getData(),o=vi(n,r);if(o==null||o<0||z(o))return{point:[]};var s=n.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),p=f.dim,c=u.dim,h=p==="x"||p==="radius"?1:0,v=n.mapDimension(c),d=[];d[h]=n.get(v,o),d[1-h]=n.get(n.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(d)||[]}else t=l.dataToPoint(n.getValues(k(l.dimensions,function(g){return n.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),t=[m.x+m.width/2,m.y+m.height/2]}return{point:t,el:s}}var GO=st();function E1(r,e,t){var i=r.currTrigger,a=[r.x,r.y],n=r,o=r.dispatchAction||H(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Zd(a)&&(a=Op({seriesIndex:n.seriesIndex,dataIndex:n.dataIndex},e).point);var l=Zd(a),u=n.axesInfo,f=s.axesInfo,p=i==="leave"||Zd(a),c={},h={},v={list:[],map:{}},d={showPointer:et(O7,h),showTooltip:et(N7,v)};w(s.coordSysMap,function(g,y){var x=l||g.containPoint(a);w(s.coordSysAxesInfo[y],function(_,b){var S=_.axis,T=U7(u,_);if(!p&&x&&(!u||T)){var C=T&&T.value;C==null&&!l&&(C=S.pointToData(a)),C!=null&&HO(_,C,d,!1,c)}})});var m={};return w(f,function(g,y){var x=g.linkGroup;x&&!h[y]&&w(x.axesInfo,function(_,b){var S=h[b];if(_!==g&&S){var T=S.value;x.mapper&&(T=g.axis.scale.parse(x.mapper(T,WO(_),WO(g)))),m[g.key]=T}})}),w(m,function(g,y){HO(f[y],g,d,!0,c)}),z7(h,f,c),k7(v,a,r,o),V7(f,o,t),c}}function HO(r,e,t,i,a){var n=r.axis;if(!(n.scale.isBlank()||!n.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=R7(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&N(a,s[0]),!i&&r.snap&&n.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function R7(r,e){var t=e.axis,i=t.dim,a=r,n=[],o=Number.MAX_VALUE,s=-1;return w(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),p,c;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,r,t);c=h.dataIndices,p=h.nestestValue}else{if(c=l.getData().indicesOfNearest(f[0],r,t.type==="category"?.5:null),!c.length)return;p=l.getData().get(f[0],c[0])}if(!(p==null||!isFinite(p))){var v=r-p,d=Math.abs(v);d<=o&&((d=0&&s<0)&&(o=d,s=v,a=p,n.length=0),w(c,function(m){n.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:n,snapToValue:a}}function O7(r,e,t,i){r[e.key]={value:t,payloadBatch:i}}function N7(r,e,t,i){var a=t.payloadBatch,n=e.axis,o=n.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=Hl(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.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 z7(r,e,t){var i=t.axesInfo=[];w(e,function(a,n){var o=a.axisPointerModel.option,s=r[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 k7(r,e,t,i){if(Zd(e)||!r.list.length){i({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function V7(r,e,t){var i=t.getZr(),a="axisPointerLastHighlights",n=GO(i)[a]||{},o=GO(i)[a]={};w(r,function(u,f){var p=u.axisPointerModel.option;p.status==="show"&&u.triggerEmphasis&&w(p.seriesDataIndices,function(c){var h=c.seriesIndex+" | "+c.dataIndex;o[h]=c})});var s=[],l=[];w(n,function(u,f){!o[f]&&l.push(u)}),w(o,function(u,f){!n[f]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function U7(r,e){for(var t=0;t<(r||[]).length;t++){var i=r[t];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function WO(r){var e=r.axis.model,t={},i=t.axisDim=r.axis.dim;return t.axisIndex=t[i+"AxisIndex"]=e.componentIndex,t.axisName=t[i+"AxisName"]=e.name,t.axisId=t[i+"AxisId"]=e.id,t}function Zd(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function aa(r){Yr.registerAxisPointerClass("CartesianAxisPointer",kO),r.registerComponentModel(VO),r.registerComponentView(FO),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!z(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=gE(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},E1)}function P1(r){_t(od),_t(aa)}var B7=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,a,n,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),p=s.dataToCoord(i),c=n.get("type");if(c&&c!=="none"){var h=cu(n),v=G7[c](s,l,p,f);v.style=h,t.graphicKey=v.type,t.pointer=v}var d=n.get(["label","margin"]),m=F7(i,a,n,l,d);M1(t,a,n,o,m)},e}(pu);function F7(r,e,t,i,a){var n=e.axis,o=n.dataToCoord(r),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=i.getRadiusAxis().getExtent(),u,f,p;if(n.dim==="radius"){var c=ge();cr(c,c,s),We(c,c,[i.cx,i.cy]),u=Je([o,-a],c);var h=e.getModel("axisLabel").get("rotate")||0,v=er.innerTextLayout(s,h*Math.PI/180,-1);f=v.textAlign,p=v.textVerticalAlign}else{var d=l[1];u=i.coordToPoint([d+a,o]);var m=i.cx,g=i.cy;f=Math.abs(u[0]-m)/d<.3?"center":u[0]>m?"left":"right",p=Math.abs(u[1]-g)/d<.3?"middle":u[1]>g?"top":"bottom"}return{position:u,align:f,verticalAlign:p}}var G7={line:function(r,e,t,i){return r.dim==="angle"?{type:"Line",shape:hu(e.coordToPoint([i[0],t]),e.coordToPoint([i[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,i){var a=Math.max(1,r.getBandWidth()),n=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:I1(e.cx,e.cy,i[0],i[1],(-t-a/2)*n,(-t+a/2)*n)}:{type:"Sector",shape:I1(e.cx,e.cy,t-a/2,t+a/2,0,Math.PI*2)}}},YO=B7;var H7=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var i,a=this.ecModel;return a.eachComponent(t,function(n){n.getCoordSysModel()===this&&(i=n)},this),i},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(gt),ZO=H7;var R1=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Xt).models[0]},e.type="polarAxis",e}(gt);Wt(R1,Li);var XO=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(R1);var qO=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(R1);var O1=function(r){E(e,r);function e(t,i){return r.call(this,"radius",t,i)||this}return e.prototype.pointToData=function(t,i){return this.polar.pointToData(t,i)[this.dim==="radius"?0:1]},e}(Fe);O1.prototype.dataToRadius=Fe.prototype.dataToCoord;O1.prototype.radiusToData=Fe.prototype.coordToData;var KO=O1;var W7=st(),N1=function(r){E(e,r);function e(t,i){return r.call(this,"angle",t,i||[0,360])||this}return e.prototype.pointToData=function(t,i){return this.polar.pointToData(t,i)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,i=t.getLabelModel(),a=t.scale,n=a.getExtent(),o=a.count();if(n[1]-n[0]<1)return 0;var s=n[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),f=la(s==null?"":s+"",i.getFont(),"center","top"),p=Math.max(f.height,7),c=p/u;isNaN(c)&&(c=1/0);var h=Math.max(0,Math.floor(c)),v=W7(t.model),d=v.lastAutoInterval,m=v.lastTickCount;return d!=null&&m!=null&&Math.abs(d-h)<=1&&Math.abs(m-o)<=1&&d>h?h=d:(v.lastTickCount=o,v.lastAutoInterval=h),h},e}(Fe);N1.prototype.dataToAngle=Fe.prototype.dataToCoord;N1.prototype.angleToData=Fe.prototype.coordToData;var jO=N1;var z1=["radius","angle"],Y7=function(){function r(e){this.dimensions=z1,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new KO,this._angleAxis=new jO,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],i=this._angleAxis,a=this._radiusAxis;return i.scale.type===e&&t.push(i),a.scale.type===e&&t.push(a),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},r.prototype.pointToData=function(e,t){var i=this.pointToCoord(e);return[this._radiusAxis.radiusToData(i[0],t),this._angleAxis.angleToData(i[1],t)]},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,i=e[1]-this.cy,a=this.getAngleAxis(),n=a.getExtent(),o=Math.min(n[0],n[1]),s=Math.max(n[0],n[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+i*i);t/=l,i/=l;for(var u=Math.atan2(-i,t)/Math.PI*180,f=us;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(e){var t=e[0],i=e[1]/180*Math.PI,a=Math.cos(i)*t+this.cx,n=-Math.sin(i)*t+this.cy;return[a,n]},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),i=t.getExtent().slice();i[0]>i[1]&&i.reverse();var a=e.getExtent(),n=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:i[0],r:i[1],startAngle:-a[0]*n,endAngle:-a[1]*n,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,f=l*l+u*u-1e-4,p=this.r,c=this.r0;return f<=p*p&&f>=c*c}}},r.prototype.convertToPixel=function(e,t,i){var a=JO(t);return a===this?this.dataToPoint(i):null},r.prototype.convertFromPixel=function(e,t,i){var a=JO(t);return a===this?this.pointToData(i):null},r}();function JO(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}var QO=Y7;function Z7(r,e,t){var i=e.get("center"),a=t.getWidth(),n=t.getHeight();r.cx=W(i[0],a),r.cy=W(i[1],n);var o=r.getRadiusAxis(),s=Math.min(a,n)/2,l=e.get("radius");l==null?l=[0,"100%"]:z(l)||(l=[0,l]);var u=[W(l[0],s),W(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function X7(r,e){var t=this,i=t.getAngleAxis(),a=t.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();w(kl(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),w(kl(l,"angle"),function(u){i.scale.unionExtentFromData(l,u)})}}),Mi(i.scale,i.model),Mi(a.scale,a.model),i.type==="category"&&!i.onBand){var n=i.getExtent(),o=360/i.scale.count();i.inverse?n[1]+=o:n[1]-=o,i.setExtent(n[0],n[1])}}function q7(r){return r.mainType==="angleAxis"}function $O(r,e){var t;if(r.type=e.get("type"),r.scale=ya(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),q7(e)){r.inverse=r.inverse!==e.get("clockwise");var i=e.get("startAngle"),a=(t=e.get("endAngle"))!==null&&t!==void 0?t:i+(r.inverse?-360:360);r.setExtent(i,a)}e.axis=r,r.model=e}var K7={dimensions:z1,create:function(r,e){var t=[];return r.eachComponent("polar",function(i,a){var n=new QO(a+"");n.update=X7;var o=n.getRadiusAxis(),s=n.getAngleAxis(),l=i.findAxisModel("radiusAxis"),u=i.findAxisModel("angleAxis");$O(o,l),$O(s,u),Z7(n,i,e),t.push(n),i.coordinateSystem=n,n.model=i}),r.eachSeries(function(i){if(i.get("coordinateSystem")==="polar"){var a=i.getReferringComponents("polar",Xt).models[0];i.coordinateSystem=a.coordinateSystem}}),t}},tN=K7;var j7=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Xd(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var i=r.coordToPoint([e[0],t]),a=r.coordToPoint([e[1],t]);return{x1:i[0],y1:i[1],x2:a[0],y2:a[1]}}function qd(r){var e=r.getRadiusAxis();return e.inverse?0:1}function eN(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var J7=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,i){if(this.group.removeAll(),!!t.get("show")){var a=t.axis,n=a.polar,o=n.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=k(a.getViewLabels(),function(f){f=Q(f);var p=a.scale,c=p.type==="ordinal"?p.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=a.dataToCoord(c),f});eN(u),eN(s),w(j7,function(f){t.get([f,"show"])&&(!a.scale.isBlank()||f==="axisLine")&&Q7[f](this.group,t,n,s,l,o,u)},this)}},e.type="angleAxis",e}(Yr),Q7={axisLine:function(r,e,t,i,a,n){var o=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=qd(t),p=f?0:1,c,h=Math.abs(u[1]-u[0])===360?"Circle":"Arc";n[p]===0?c=new mt[h]({shape:{cx:t.cx,cy:t.cy,r:n[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):c=new Ya({shape:{cx:t.cx,cy:t.cy,r:n[f],r0:n[p]},style:o.getLineStyle(),z2:1,silent:!0}),c.style.fill=null,r.add(c)},axisTick:function(r,e,t,i,a,n){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=n[qd(t)],u=k(i,function(f){return new re({shape:Xd(t,[l,l+s],f.coord)})});r.add(Ye(u,{style:q(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,i,a,n){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=n[qd(t)],f=[],p=0;pg?"left":"right",_=Math.abs(m[1]-y)/d<.3?"middle":m[1]>y?"top":"bottom";if(s&&s[v]){var b=s[v];K(b)&&b.textStyle&&(h=new Mt(b.textStyle,l,l.ecModel))}var S=new dt({silent:er.isLabelSilent(e),style:Vt(h,{x:m[0],y:m[1],fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:p.formattedLabel,align:x,verticalAlign:_})});if(r.add(S),f){var T=er.makeAxisEventDataBase(e);T.targetType="axisLabel",T.value=p.rawLabel,tt(S).eventData=T}},this)},splitLine:function(r,e,t,i,a,n){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],p=0;p=0?"p":"n",I=T;b&&(i[f][M]||(i[f][M]={p:T,n:T}),I=i[f][M][L]);var P=void 0,R=void 0,O=void 0,U=void 0;if(v.dim==="radius"){var V=v.dataToCoord(D)-T,F=l.dataToCoord(M);Math.abs(V)=U})}}})}function n9(r){var e={};w(r,function(i,a){var n=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=nN(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/n.count(),p=e[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=p.stacks;e[l]=p;var h=aN(i);c[h]||p.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var v=W(i.get("barWidth"),f),d=W(i.get("barMaxWidth"),f),m=i.get("barGap"),g=i.get("barCategoryGap");v&&!c[h].width&&(v=Math.min(p.remainedWidth,v),c[h].width=v,p.remainedWidth-=v),d&&(c[h].maxWidth=d),m!=null&&(p.gap=m),g!=null&&(p.categoryGap=g)});var t={};return w(e,function(i,a){t[a]={};var n=i.stacks,o=i.bandWidth,s=W(i.categoryGap,o),l=W(i.gap,1),u=i.remainedWidth,f=i.autoWidthCount,p=(u-s)/(f+(f-1)*l);p=Math.max(p,0),w(n,function(d,m){var g=d.maxWidth;g&&g=t.y&&e[1]<=t.y+t.height:i.contain(i.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(e){var t=this.getAxis(),i=this.getRect(),a=[],n=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),a[n]=t.toGlobalCoord(t.dataToCoord(+e)),a[1-n]=n===0?i.y+i.height/2:i.x+i.width/2,a},r.prototype.convertToPixel=function(e,t,i){var a=pN(t);return a===this?this.dataToPoint(i):null},r.prototype.convertFromPixel=function(e,t,i){var a=pN(t);return a===this?this.pointToData(i):null},r}();function pN(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}var cN=v9;function d9(r,e){var t=[];return r.eachComponent("singleAxis",function(i,a){var n=new cN(i,r,e);n.name="single_"+a,n.resize(i,e),i.coordinateSystem=n,t.push(n)}),r.eachSeries(function(i){if(i.get("coordinateSystem")==="singleAxis"){var a=i.getReferringComponents("singleAxis",Xt).models[0];i.coordinateSystem=a&&a.coordinateSystem}}),t}var m9={create:d9,dimensions:V1},hN=m9;var vN=["x","y"],g9=["width","height"],y9=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,a,n,o){var s=a.axis,l=s.coordinateSystem,u=U1(l,1-jd(s)),f=l.dataToPoint(i)[0],p=n.get("type");if(p&&p!=="none"){var c=cu(n),h=x9[p](s,f,u);h.style=c,t.graphicKey=h.type,t.pointer=h}var v=Np(a);Gd(i,t,v,a,n,o)},e.prototype.getHandleTransform=function(t,i,a){var n=Np(i,{labelInside:!1});n.labelMargin=a.get(["handle","margin"]);var o=Pp(i.axis,t,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,i,a,n){var o=a.axis,s=o.coordinateSystem,l=jd(o),u=U1(s,l),f=[t.x,t.y];f[l]+=i[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var p=U1(s,1-l),c=(p[1]+p[0])/2,h=[c,c];return h[l]=f[l],{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(pu),x9={line:function(r,e,t){var i=hu([e,t[0]],[e,t[1]],jd(r));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(r,e,t){var i=r.getBandWidth(),a=t[1]-t[0];return{type:"Rect",shape:Hd([e-i/2,t[0]],[i,a],jd(r))}}};function jd(r){return r.isHorizontal()?0:1}function U1(r,e){var t=r.getRect();return[t[vN[e]],t[vN[e]]+t[g9[e]]]}var dN=y9;var _9=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(Et);function B1(r){_t(aa),Yr.registerAxisPointerClass("SingleAxisPointer",dN),r.registerComponentView(_9),r.registerComponentView(lN),r.registerComponentModel(Kd),ia(r,"single",Kd,Kd.defaultOption),r.registerCoordinateSystem("single",hN)}var S9=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i,a){var n=Si(t);r.prototype.init.apply(this,arguments),mN(t,n)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),mN(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(gt);function mN(r,e){var t=r.cellSize,i;z(t)?i=t:i=r.cellSize=[t,t],i.length===1&&(i[1]=i[0]);var a=k([0,1],function(n){return EA(e,n)&&(i[n]="auto"),i[n]!=null&&i[n]!=="auto"});Ur(r,e,{type:"box",ignoreSize:a})}var gN=S9;var b9=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n=this.group;n.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=i.getLocaleModel();this._renderDayRect(t,s,n),this._renderLines(t,s,l,n),this._renderYearText(t,s,l,n),this._renderMonthText(t,u,l,n),this._renderWeekText(t,u,s,l,n)},e.prototype._renderDayRect=function(t,i,a){for(var n=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=n.getCellWidth(),l=n.getCellHeight(),u=i.start.time;u<=i.end.time;u=n.getNextNDay(u,1).time){var f=n.dataToRect([u],!1).tl,p=new pt({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});a.add(p)}},e.prototype._renderLines=function(t,i,a,n){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var p=i.start,c=0;p.time<=i.end.time;c++){v(p.formatedDate),c===0&&(p=s.getDateInfo(i.start.y+"-"+i.start.m));var h=p.date;h.setMonth(h.getMonth()+1),p=s.getDateInfo(h)}v(s.getNextNDay(i.end.time,1).formatedDate);function v(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToRect([d],!1).tl);var m=o._getLinePointsOfOneWeek(t,d,a);o._tlpoints.push(m[0]),o._blpoints.push(m[m.length-1]),u&&o._drawSplitline(m,l,n)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,a),l,n),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,a),l,n)},e.prototype._getEdgesPoints=function(t,i,a){var n=[t[0].slice(),t[t.length-1].slice()],o=a==="horizontal"?0:1;return n[0][o]=n[0][o]-i/2,n[1][o]=n[1][o]+i/2,n},e.prototype._drawSplitline=function(t,i,a){var n=new ae({z2:20,shape:{points:t},style:i});a.add(n)},e.prototype._getLinePointsOfOneWeek=function(t,i,a){for(var n=t.coordinateSystem,o=n.getDateInfo(i),s=[],l=0;l<7;l++){var u=n.getNextNDay(o.time,l),f=n.dataToRect([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[a==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,i){return B(t)&&t?DA(t,i):X(t)?t(i):i.nameMap},e.prototype._yearTextPositionControl=function(t,i,a,n,o){var s=i[0],l=i[1],u=["center","bottom"];n==="bottom"?(l+=o,u=["center","top"]):n==="left"?s-=o:n==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(n==="left"||n==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,i,a,n){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,p=(u[0][1]+u[1][1])/2,c=a==="horizontal"?0:1,h={top:[f,u[c][1]],bottom:[f,u[1-c][1]],left:[u[1-c][0],p],right:[u[c][0],p]},v=i.start.y;+i.end.y>+i.start.y&&(v=v+"-"+i.end.y);var d=o.get("formatter"),m={start:i.start.y,end:i.end.y,nameMap:v},g=this._formatterLabel(d,m),y=new dt({z2:30,style:Vt(o,{text:g})});y.attr(this._yearTextPositionControl(y,h[l],a,l,s)),n.add(y)}},e.prototype._monthTextPositionControl=function(t,i,a,n,o){var s="left",l="top",u=t[0],f=t[1];return a==="horizontal"?(f=f+o,i&&(s="center"),n==="start"&&(l="bottom")):(u=u+o,i&&(l="middle"),n==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,i,a,n){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),p=[this._tlpoints,this._blpoints];(!s||B(s))&&(s&&(i=yf(s)||i),s=i.get(["time","monthAbbr"])||[]);var c=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var v=f==="center",d=0;d=a.start.time&&i.times.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],i;t[0].time>t[1].time&&(i=!0,t.reverse());var a=Math.floor(t[1].time/F1)-Math.floor(t[0].time/F1)+1,n=new Date(t[0].time),o=n.getDate(),s=t[1].date.getDate();n.setDate(o+a-1);var l=n.getDate();if(l!==s)for(var u=n.getTime()-t[1].time>0?1:-1;(l=n.getDate())!==s&&(n.getTime()-t[1].time)*u>0;)a-=u,n.setDate(l-u);var f=Math.floor((a+t[0].day+6)/7),p=i?-f+1:f-1;return i&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:a,weeks:f,nthWeek:p,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,i){var a=this._getRangeInfo(i);if(e>a.weeks||e===0&&ta.lweek)return null;var n=(e-1)*7-a.fweek+t,o=new Date(a.start.time);return o.setDate(+a.start.d+n),this.getDateInfo(o)},r.create=function(e,t){var i=[];return e.eachComponent("calendar",function(a){var n=new r(a,e,t);i.push(n),a.coordinateSystem=n}),e.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=i[a.get("calendarIndex")||0])}),i},r.dimensions=["time","value"],r}();function xN(r){var e=r.calendarModel,t=r.seriesModel,i=e?e.coordinateSystem:t?t.coordinateSystem:null;return i}var _N=w9;function G1(r){r.registerComponentModel(gN),r.registerComponentView(yN),r.registerCoordinateSystem("calendar",_N)}function T9(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var i=e.parentOption;i?e.parentId=i.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function SN(r,e){var t;return w(e,function(i){r[i]!=null&&r[i]!=="auto"&&(t=!0)}),t}function C9(r,e,t){var i=N({},t),a=r[e],n=t.$action||"merge";if(n==="merge")if(a){if(0)var o;ot(a,i,!0),Ur(a,i,{ignoreSize:!0}),Gy(t,a),Jd(t,a),Jd(t,a,"shape"),Jd(t,a,"style"),Jd(t,a,"extra"),t.clipPath=a.clipPath}else r[e]=i;else n==="replace"?r[e]=i:n==="remove"&&a&&(r[e]=null)}var bN=["transition","enterFrom","leaveTo"],A9=bN.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Jd(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var i=t?bN:A9,a=0;a=0;f--){var p=a[f],c=ie(p.id,null),h=c!=null?o.get(c):null;if(h){var v=h.parent,g=Ni(v),y=v===n?{width:s,height:l}:{width:g.width,height:g.height},x={},_=Nn(h,p,y,null,{hv:p.hv,boundingMode:p.bounding},x);if(!Ni(h).isNew&&_){for(var b=p.transition,S={},T=0;T=0)?S[C]=A:h[C]=A}yt(h,S,t,0)}else h.attr(x)}}},e.prototype._clear=function(){var t=this,i=this._elMap;i.each(function(a){Qd(a,Ni(a).option,i,t._lastGraphicModel)}),this._elMap=Y()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Et);function H1(r){var e=$(TN,r)?TN[r]:es(r),t=new e({});return Ni(t).type=r,t}function CN(r,e,t,i){var a=H1(t);return e.add(a),i.set(r,a),Ni(a).id=r,Ni(a).isNew=!0,a}function Qd(r,e,t,i){var a=r&&r.parent;a&&(r.type==="group"&&r.traverse(function(n){Qd(n,e,t,i)}),uu(r,e,i),t.removeKey(Ni(r).id))}function AN(r,e,t,i){r.isGroup||w([["cursor",xe.prototype.cursor],["zlevel",i||0],["z",t||0],["z2",0]],function(a){var n=a[0];$(e,n)?r[n]=nt(e[n],a[1]):r[n]==null&&(r[n]=a[1])}),w(ft(e),function(a){if(a.indexOf("on")===0){var n=e[a];r[a]=X(n)?n:null}}),$(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function M9(r){return r=N({},r),w(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(By),function(e){delete r[e]}),r}function L9(r,e,t){var i=tt(r).eventData;!r.silent&&!r.ignore&&!i&&(i=tt(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),i&&(i.info=t.info)}function W1(r){r.registerComponentModel(wN),r.registerComponentView(DN),r.registerPreprocessor(function(e){var t=e.graphic;z(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var Y1=["x","y","radius","angle","single"],I9=["cartesian2d","polar","singleAxis"];function MN(r){var e=r.get("coordinateSystem");return it(I9,e)>=0}function zi(r){return r+"Axis"}function LN(r,e){var t=Y(),i=[],a=Y();r.eachComponent({mainType:"dataZoom",query:e},function(f){a.get(f.uid)||s(f)});var n;do n=!1,r.eachComponent("dataZoom",o);while(n);function o(f){!a.get(f.uid)&&l(f)&&(s(f),n=!0)}function s(f){a.set(f.uid,!0),i.push(f),u(f)}function l(f){var p=!1;return f.eachTargetAxis(function(c,h){var v=t.get(c);v&&v[h]&&(p=!0)}),p}function u(f){f.eachTargetAxis(function(p,c){(t.get(p)||t.set(p,[]))[c]=!0})}return i}function $d(r){var e=r.ecModel,t={infoList:[],infoMap:Y()};return r.eachTargetAxis(function(i,a){var n=e.getComponent(zi(i),a);if(n){var o=n.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(n)}}}),t}var Z1=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r}(),E9=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,i,a){var n=IN(t);this.settledOption=n,this.mergeDefaultAndTheme(t,a),this._doInit(n)},e.prototype.mergeOption=function(t){var i=IN(t);ot(this.option,t,!0),ot(this.settledOption,i,!0),this._doInit(i)},e.prototype._doInit=function(t){var i=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;w([["start","startValue"],["end","endValue"]],function(n,o){this._rangePropMode[o]==="value"&&(i[n[0]]=a[n[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),i=this._targetAxisInfoMap=Y(),a=this._fillSpecifiedTargetAxis(i);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(i,this._orient)),this._noTarget=!0,i.each(function(n){n.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var i=!1;return w(Y1,function(a){var n=this.getReferringComponents(zi(a),bT);if(n.specified){i=!0;var o=new Z1;w(n.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),i},e.prototype._fillAutoTargetAxisByOrient=function(t,i){var a=this.ecModel,n=!0;if(n){var o=i==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(n){var s=a.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===i}});l(s,"single")}function l(u,f){var p=u[0];if(p){var c=new Z1;if(c.add(p.componentIndex),t.set(f,c),n=!1,f==="x"||f==="y"){var h=p.getReferringComponents("grid",Xt).models[0];h&&w(u,function(v){p.componentIndex!==v.componentIndex&&h===v.getReferringComponents("grid",Xt).models[0]&&c.add(v.componentIndex)})}}}n&&w(Y1,function(u){if(n){var f=a.findComponents({mainType:zi(u),filter:function(c){return c.get("type",!0)==="category"}});if(f[0]){var p=new Z1;p.add(f[0].componentIndex),t.set(u,p),n=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(i){!t&&(t=i)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var i=this.ecModel.option;this.option.throttle=i.animation&&i.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var i=this._rangePropMode,a=this.get("rangeMode");w([["start","startValue"],["end","endValue"]],function(n,o){var s=t[n[0]]!=null,l=t[n[1]]!=null;s&&!l?i[o]="percent":!s&&l?i[o]="value":a?i[o]=a[o]:s&&(i[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(i,a){t==null&&(t=this.ecModel.getComponent(zi(i),a))},this),t},e.prototype.eachTargetAxis=function(t,i){this._targetAxisInfoMap.each(function(a,n){w(a.indexList,function(o){t.call(i,n,o)})})},e.prototype.getAxisProxy=function(t,i){var a=this.getAxisModel(t,i);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(t,i){var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[i])return this.ecModel.getComponent(zi(t),i)},e.prototype.setRawRange=function(t){var i=this.option,a=this.settledOption;w([["start","startValue"],["end","endValue"]],function(n){(t[n[0]]!=null||t[n[1]]!=null)&&(i[n[0]]=a[n[0]]=t[n[0]],i[n[1]]=a[n[1]]=t[n[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var i=this.option;w(["start","startValue","end","endValue"],function(a){i[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,i){if(t==null&&i==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(t,i).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var i,a=this._targetAxisInfoMap.keys(),n=0;no[1];if(x&&!_&&!b)return!0;x&&(m=!0),_&&(v=!0),b&&(d=!0)}return m&&v&&d})}else du(f,function(h){if(n==="empty")l.setData(u=u.map(h,function(d){return s(d)?d:NaN}));else{var v={};v[h]=o,u.selectRange(v)}});du(f,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,i=this._dataExtent;du(["min","max"],function(a){var n=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?n=zt(i[0]+o,i,[0,100],!0):n!=null&&(o=zt(n,[0,100],i,!0)-i[0]),e[a+"Span"]=n,e[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,i=this._valueWindow;if(t){var a=Qs(i,[0,500]);a=Math.min(a,20);var n=e.axis.scale.rawExtentInfo;t[0]!==0&&n.setDeterminedMinMax("min",+i[0].toFixed(a)),t[1]!==100&&n.setDeterminedMinMax("max",+i[1].toFixed(a)),n.freeze()}},r}();function z9(r,e,t){var i=[1/0,-1/0];du(t,function(o){gL(i,o.getData(),e)});var a=r.getAxisModel(),n=Av(a.axis.scale,a,i).calculate();return[n.min,n.max]}var ON=N9;var k9={getTargetSeries:function(r){function e(a){r.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(o,s){var l=r.getComponent(zi(o),s);a(o,s,l,n)})})}e(function(a,n,o,s){o.__dzAxisProxy=null});var t=[];e(function(a,n,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new ON(a,n,s,r),t.push(o.__dzAxisProxy))});var i=Y();return w(t,function(a){w(a.getTargetSeriesModels(),function(n){i.set(n.uid,n)})}),i},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(i,a){t.getAxisProxy(i,a).reset(t)}),t.eachTargetAxis(function(i,a){t.getAxisProxy(i,a).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var i=t.findRepresentativeAxisProxy();if(i){var a=i.getDataPercentWindow(),n=i.getDataValueWindow();t.setCalculatedRange({start:a[0],end:a[1],startValue:n[0],endValue:n[1]})}})}},NN=k9;function X1(r){r.registerAction("dataZoom",function(e,t){var i=LN(t,e);w(i,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var zN=!1;function Ps(r){zN||(zN=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,NN),X1(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function kN(r){r.registerComponentModel(EN),r.registerComponentView(PN),Ps(r)}var Ge=function(){function r(){}return r}();var VN={};function so(r,e){VN[r]=e}function tm(r){return VN[r]}var U9=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;w(this.option.feature,function(i,a){var n=tm(a);n&&(n.getDefaultOption&&(n.defaultOption=n.getDefaultOption(t)),ot(i,n.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(gt),UN=U9;function BN(r,e,t){var i=e.getBoxLayoutParams(),a=e.get("padding"),n={width:t.getWidth(),height:t.getHeight()},o=Gt(i,n,a);Zi(e.get("orient"),r,e.get("itemGap"),o.width,o.height),Nn(r,i,n,a)}function em(r,e){var t=ri(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),r=new pt({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1}),r}var F9=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,i,a,n){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},f=this._features||(this._features={}),p=[];w(u,function(v,d){p.push(d)}),new tr(this._featureNames||[],p).add(c).update(c).remove(et(c,null)).execute(),this._featureNames=p;function c(v,d){var m=p[v],g=p[d],y=u[m],x=new Mt(y,t,t.ecModel),_;if(n&&n.newTitle!=null&&n.featureName===m&&(y.title=n.newTitle),m&&!g){if(G9(m))_={onclick:x.option.onclick,featureName:m};else{var b=tm(m);if(!b)return;_=new b}f[m]=_}else if(_=f[g],!_)return;_.uid=_i("toolbox-feature"),_.model=x,_.ecModel=i,_.api=a;var S=_ instanceof Ge;if(!m&&g){S&&_.dispose&&_.dispose(i,a);return}if(!x.get("show")||S&&_.unusable){S&&_.remove&&_.remove(i,a);return}h(x,_,m),x.setIconStatus=function(T,C){var A=this.option,D=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[T]=C,D[T]&&(C==="emphasis"?ir:ar)(D[T])},_ instanceof Ge&&_.render&&_.render(x,i,a,n)}function h(v,d,m){var g=v.getModel("iconStyle"),y=v.getModel(["emphasis","iconStyle"]),x=d instanceof Ge&&d.getIcons?d.getIcons():v.get("icon"),_=v.get("title")||{},b,S;B(x)?(b={},b[m]=x):b=x,B(_)?(S={},S[m]=_):S=_;var T=v.iconPaths={};w(b,function(C,A){var D=Hi(C,{},{x:-s/2,y:-s/2,width:s,height:s});D.setStyle(g.getItemStyle());var M=D.ensureState("emphasis");M.style=y.getItemStyle();var L=new dt({style:{text:S[A],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null,font:gl({fontStyle:y.get("textFontStyle"),fontFamily:y.get("textFontFamily"),fontSize:y.get("textFontSize"),fontWeight:y.get("textFontWeight")},i)},ignore:!0});D.setTextContent(L),Wi({el:D,componentModel:t,itemName:A,formatterParamsExtra:{title:S[A]}}),D.__title=S[A],D.on("mouseover",function(){var I=y.getItemStyle(),P=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";L.setStyle({fill:y.get("textFill")||I.fill||I.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),D.setTextConfig({position:y.get("textPosition")||P}),L.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){v.get(["iconStatus",A])!=="emphasis"&&a.leaveEmphasis(this),L.hide()}),(v.get(["iconStatus",A])==="emphasis"?ir:ar)(D),o.add(D),D.on("click",H(d.onclick,d,i,a,A)),T[A]=D})}BN(o,t,a),o.add(em(o.getBoundingRect(),t)),l||o.eachChild(function(v){var d=v.__title,m=v.ensureState("emphasis"),g=m.textConfig||(m.textConfig={}),y=v.getTextContent(),x=y&&y.ensureState("emphasis");if(x&&!X(x)&&d){var _=x.style||(x.style={}),b=la(d,dt.makeFont(_)),S=v.x+o.x,T=v.y+o.y+s,C=!1;T+b.height>a.getHeight()&&(g.position="top",C=!0);var A=C?-5-b.height:s+10;S+b.width/2>a.getWidth()?(g.position=["100%",A],_.align="right"):S-b.width/2<0&&(g.position=[0,A],_.align="left")}})},e.prototype.updateView=function(t,i,a,n){w(this._features,function(o){o instanceof Ge&&o.updateView&&o.updateView(o.model,i,a,n)})},e.prototype.remove=function(t,i){w(this._features,function(a){a instanceof Ge&&a.remove&&a.remove(t,i)}),this.group.removeAll()},e.prototype.dispose=function(t,i){w(this._features,function(a){a instanceof Ge&&a.dispose&&a.dispose(t,i)})},e.type="toolbox",e}(Et);function G9(r){return r.indexOf("my")===0}var FN=F9;var H9=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){var a=this.model,n=a.get("name")||t.get("title.0.text")||"echarts",o=i.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=i.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=bt.browser;if(X(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=n+"."+s,f.target="_blank",f.href=l;var p=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(p)}else if(window.navigator.msSaveOrOpenBlob||o){var c=l.split(","),h=c[0].indexOf("base64")>-1,v=o?decodeURIComponent(c[1]):c[1];h&&(v=window.atob(v));var d=n+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=v.length,g=new Uint8Array(m);m--;)g[m]=v.charCodeAt(m);var y=new Blob([g]);window.navigator.msSaveOrOpenBlob(y,d)}else{var x=document.createElement("iframe");document.body.appendChild(x);var _=x.contentWindow,b=_.document;b.open("image/svg+xml","replace"),b.write(v),b.close(),_.focus(),b.execCommand("SaveAs",!0,d),document.body.removeChild(x)}}else{var S=a.get("lang"),T='',C=window.open();C.document.write(T),C.document.title=n}},e.getDefaultOption=function(t){var i={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return i},e}(Ge),GN=H9;var HN="__ec_magicType_stack__";var W9=[["line","bar"],["stack"]],Y9=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,i=t.get("icon"),a={};return w(t.get("type"),function(n){i[n]&&(a[n]=i[n])}),a},e.getDefaultOption=function(t){var i={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return i},e.prototype.onclick=function(t,i,a){var n=this.model,o=n.get(["seriesIndex",a]);if(WN[a]){var s={series:[]},l=function(p){var c=p.subType,h=p.id,v=WN[a](c,h,p,n);v&&(q(v,p.option),s.series.push(v));var d=p.coordinateSystem;if(d&&d.type==="cartesian2d"&&(a==="line"||a==="bar")){var m=d.getAxesByScale("ordinal")[0];if(m){var g=m.dim,y=g+"Axis",x=p.getReferringComponents(y,Xt).models[0],_=x.componentIndex;s[y]=s[y]||[];for(var b=0;b<=_;b++)s[y][_]=s[y][_]||{};s[y][_].boundaryGap=a==="bar"}}};w(W9,function(p){it(p,a)>=0&&w(p,function(c){n.setIconStatus(c,"normal")})}),n.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=a;a==="stack"&&(u=ot({stack:n.option.title.tiled,tiled:n.option.title.stack},n.option.title),n.get(["iconStatus",a])!=="emphasis"&&(f="tiled")),i.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},e}(Ge),WN={line:function(r,e,t,i){if(r==="bar")return ot({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(r,e,t,i){if(r==="line")return ot({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(r,e,t,i){var a=t.get("stack")===HN;if(r==="line"||r==="bar")return i.setIconStatus("stack",a?"normal":"emphasis"),ot({id:e,stack:a?"":HN},i.get(["option","stack"])||{},!0)}};gr({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var YN=Y9;var im=new Array(60).join("-"),mu=" ";function Z9(r){var e={},t=[],i=[];return r.eachRawSeries(function(a){var n=a.coordinateSystem;if(n&&(n.type==="cartesian2d"||n.type==="polar")){var o=n.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:n.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:i}}function X9(r){var e=[];return w(r,function(t,i){var a=t.categoryAxis,n=t.valueAxis,o=n.dim,s=[" "].concat(k(t.series,function(h){return h.name})),l=[a.model.getCategories()];w(t.series,function(h){var v=h.getRawData();l.push(h.getRawData().mapArray(v.mapDimension(o),function(d){return d}))});for(var u=[s.join(mu)],f=0;f=0)return!0}var q1=new RegExp("["+mu+"]+","g");function J9(r){for(var e=r.split(/\n+/g),t=rm(e.shift()).split(q1),i=[],a=k(t,function(l){return{name:l,data:[]}}),n=0;n=0;n--){var o=t[n];if(o[a])break}if(n<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();t[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),t.push(e)}function jN(r){var e=K1(r),t=e[e.length-1];e.length>1&&e.pop();var i={};return XN(t,function(a,n){for(var o=e.length-1;o>=0;o--)if(a=e[o][n],a){i[n]=a;break}}),i}function JN(r){qN(r).snapshots=null}function QN(r){return K1(r).length}function K1(r){var e=qN(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var rX=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){JN(t),i.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var i={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return i},e}(Ge);gr({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var tz=rX;var iX=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],aX=function(){function r(e,t,i){var a=this;this._targetInfoList=[];var n=ez(t,e);w(nX,function(o,s){(!i||!i.include||it(i.include,s)>=0)&&o(n,a._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(i,a,n){if((i.coordRanges||(i.coordRanges=[])).push(a),!i.coordRange){i.coordRange=a;var o=j1[i.brushType](0,n,a);i.__rangeOffset={offset:nz[i.brushType](o.values,i.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,i){w(e,function(a){var n=this.findTargetInfo(a,t);n&&n!==!0&&w(n.coordSyses,function(o){var s=j1[a.brushType](1,o,a.range,!0);i(a,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){w(e,function(i){var a=this.findTargetInfo(i,t);if(i.range=i.range||[],a&&a!==!0){i.panelId=a.panelId;var n=j1[i.brushType](0,a.coordSys,i.coordRange),o=i.__rangeOffset;i.range=o?nz[i.brushType](n.values,o.offset,oX(n.xyMinMax,o.xyMinMax)):n.values}},this)},r.prototype.makePanelOpts=function(e,t){return k(this._targetInfoList,function(i){var a=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:t?t(i):null,clipPath:Md(a),isTargetByCursor:Id(a,e,i.coordSysModel),getLinearBrushOtherExtent:Ld(a)}})},r.prototype.controlSeries=function(e,t,i){var a=this.findTargetInfo(e,i);return a===!0||a&&it(a.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var i=this._targetInfoList,a=ez(t,e),n=0;nr[1]&&r.reverse(),r}function ez(r,e){return wn(r,e,{includeMainTypes:iX})}var nX={grid:function(r,e){var t=r.xAxisModels,i=r.yAxisModels,a=r.gridModels,n=Y(),o={},s={};!t&&!i&&!a||(w(t,function(l){var u=l.axis.grid.model;n.set(u.id,u),o[u.id]=!0}),w(i,function(l){var u=l.axis.grid.model;n.set(u.id,u),s[u.id]=!0}),w(a,function(l){n.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),n.each(function(l){var u=l.coordinateSystem,f=[];w(u.getCartesians(),function(p,c){(it(t,p.getAxis("x").model)>=0||it(i,p.getAxis("y").model)>=0)&&f.push(p)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:iz.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){w(r.geoModels,function(t){var i=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:i,coordSyses:[i],getPanelRect:iz.geo})})}},rz=[function(r,e){var t=r.xAxisModel,i=r.yAxisModel,a=r.gridModel;return!a&&t&&(a=t.axis.grid.model),!a&&i&&(a=i.axis.grid.model),a&&a===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],iz={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(ti(r)),e}},j1={lineX:et(az,0),lineY:et(az,1),rect:function(r,e,t,i){var a=r?e.pointToData([t[0][0],t[1][0]],i):e.dataToPoint([t[0][0],t[1][0]],i),n=r?e.pointToData([t[0][1],t[1][1]],i):e.dataToPoint([t[0][1],t[1][1]],i),o=[J1([a[0],n[0]]),J1([a[1],n[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,i){var a=[[1/0,-1/0],[1/0,-1/0]],n=k(t,function(o){var s=r?e.pointToData(o,i):e.dataToPoint(o,i);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:n,xyMinMax:a}}};function az(r,e,t,i){var a=t.getAxis(["x","y"][r]),n=J1(k([0,1],function(s){return e?a.coordToData(a.toLocalCoord(i[s]),!0):a.toGlobalCoord(a.dataToCoord(i[s]))})),o=[];return o[r]=n,o[1-r]=[NaN,NaN],{values:n,xyMinMax:o}}var nz={lineX:et(oz,0),lineY:et(oz,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return k(r,function(i,a){return[i[0]-t[0]*e[a][0],i[1]-t[1]*e[a][1]]})}};function oz(r,e,t,i){return[e[0]-i[r]*t[0],e[1]-i[r]*t[1]]}function oX(r,e){var t=sz(r),i=sz(e),a=[t[0]/i[0],t[1]/i[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function sz(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var zp=aX;var Q1=w,sX=xT("toolbox-dataZoom_");var lX=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,i,a,n){this._brushController||(this._brushController=new nu(a.getZr()),this._brushController.on("brush",H(this._onBrush,this)).mount()),pX(t,i,this,n,a),fX(t,i)},e.prototype.onclick=function(t,i,a){uX[a].call(this)},e.prototype.remove=function(t,i){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,i){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var i=t.areas;if(!t.isEnd||!i.length)return;var a={},n=this.ecModel;this._brushController.updateCovers([]);var o=new zp($1(this.model),n,{include:["grid"]});o.matchOutputRanges(i,n,function(u,f,p){if(p.type==="cartesian2d"){var c=u.brushType;c==="rect"?(s("x",p,f[0]),s("y",p,f[1])):s({lineX:"x",lineY:"y"}[c],p,f)}}),KN(n,a),this._dispatchZoomAction(a);function s(u,f,p){var c=f.getAxis(u),h=c.model,v=l(u,h,n),d=v.findRepresentativeAxisProxy(h).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(p=Zr(0,p.slice(),c.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),v&&(a[v.id]={dataZoomId:v.id,startValue:p[0],endValue:p[1]})}function l(u,f,p){var c;return p.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var v=h.getAxisModel(u,f.componentIndex);v&&(c=h)}),c}},e.prototype._dispatchZoomAction=function(t){var i=[];Q1(t,function(a,n){i.push(Q(a))}),i.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:i})},e.getDefaultOption=function(t){var i={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return i},e}(Ge),uX={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(jN(this.ecModel))}};function $1(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function fX(r,e){r.setIconStatus("back",QN(e)>1?"emphasis":"normal")}function pX(r,e,t,i,a){var n=t._isZoomActive;i&&i.type==="takeGlobalCursor"&&(n=i.key==="dataZoomSelect"?i.dataZoomSelectActive:!1),t._isZoomActive=n,r.setIconStatus("zoom",n?"emphasis":"normal");var o=new zp($1(r),e,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(n&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}VA("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var i=e.getModel(t),a=[],n=$1(i),o=wn(r,n);Q1(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Q1(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var p=l.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:sX+u+p};c[f]=p,a.push(c)}return a});var lz=lX;function tb(r){r.registerComponentModel(UN),r.registerComponentView(FN),so("saveAsImage",GN),so("magicType",YN),so("dataView",ZN),so("dataZoom",lz),so("restore",tz),_t(kN)}var cX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(gt),uz=cX;function am(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function fz(r){if(bt.domSupported){for(var e=document.documentElement.style,t=0,i=r.length;t-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,p=o+a,c=p*Math.abs(Math.cos(f))+p*Math.abs(Math.sin(f)),h=Math.round(((c-Math.SQRT2*a)/2+Math.SQRT2*a-(c-p)/2)*100)/100;s+=";"+n+":-"+h+"px";var v=e+" solid "+a+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+i+";"];return'
'}function gX(r,e){var t="cubic-bezier(0.23,1,0.32,1)",i=" "+r/2+"s "+t,a="opacity"+i+",visibility"+i;return e||(i=" "+r+"s "+t,a+=bt.transformSupported?","+ib+i:",left"+i+",top"+i),hX+":"+a}function hz(r,e,t){var i=r.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!bt.transformSupported)return t?"top:"+a+";left:"+i+";":[["top",a],["left",i]];var n=bt.transform3dSupported,o="translate"+(n?"3d":"")+"("+i+","+a+(n?",0":"")+")";return t?"top:0;left:0;"+ib+":"+o+";":[["top",0],["left",0],[eb,o]]}function yX(r){var e=[],t=r.get("fontSize"),i=r.getTextColor();i&&e.push("color:"+i),e.push("font:"+r.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var a=r.get("textShadowColor"),n=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return a&&n&&e.push("text-shadow:"+o+"px "+s+"px "+n+"px "+a),w(["decoration","align"],function(l){var u=r.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function xX(r,e,t){var i=[],a=r.get("transitionDuration"),n=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),p=Hh(r,"html"),c=l+"px "+u+"px "+o+"px "+s;return i.push("box-shadow:"+c),e&&a&&i.push(gX(a,t)),n&&i.push("background-color:"+n),w(["width","color","radius"],function(h){var v="border-"+h,d=Sl(v),m=r.get(d);m!=null&&i.push(v+":"+m+(h==="color"?"":"px"))}),i.push(yX(f)),p!=null&&i.push("padding:"+ri(p).join("px ")+"px"),i.join(";")+";"}function vz(r,e,t,i,a){var n=e&&e.painter;if(t){var o=n&&n.getViewportRoot();o&&lw(r,o,t,i,a)}else{r[0]=i,r[1]=a;var s=n&&n.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var _X=function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,bt.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=e.getZr(),n=t.appendTo,o=n&&(B(n)?document.querySelector(n):Pa(n)?n:X(n)&&n(e.getDom()));vz(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();Dr(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),i=cz(t,"position"),a=t.style;a.position!=="absolute"&&i!=="absolute"&&(a.position="relative")}var n=e.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,a=i.style,n=this._styleCoord;i.innerHTML?a.cssText=vX+xX(e,!this._firstShow,this._longHide)+hz(n[0],n[1],!0)+("border-color:"+Yi(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,i,a,n){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(B(n)&&i.get("trigger")==="item"&&!am(i)&&(s=mX(i,a,n)),B(e))o.innerHTML=e+s;else if(e){o.innerHTML="",z(e)||(e=[e]);for(var l=0;l=0?this._tryShow(n,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,i=this._ecModel,a=this._api,n=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&n!=="none"&&n!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(t,i,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,i,a,n){if(!(n.from===this.uid||bt.node||!a.getDom())){var o=xz(n,a);this._ticket="";var s=n.dataByCoordSys,l=DX(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=bX;f.x=n.x,f.y=n.y,f.update(),tt(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(t,i,a,n))return;var p=Op(n,i),c=p.point[0],h=p.point[1];c!=null&&h!=null&&this._tryShow({offsetX:c,offsetY:h,target:p.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(t,i,a,n){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,n.from!==this.uid&&this._hide(xz(n,a))},e.prototype._manuallyAxisShowTip=function(t,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(),p=kp([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(p.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:n.position}),!0}}},e.prototype._tryShow=function(t,i){var a=t.target,n=this._tooltipModel;if(n){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(a){var s=tt(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;qi(a,function(f){if(tt(f).dataIndex!=null)return l=f,!0;if(tt(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(t,l,i):u?this._showComponentItemTooltip(t,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},e.prototype._showOrMove=function(t,i){var a=t.get("showDelay");i=H(i,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(i,a):i()},e.prototype._showAxisTooltip=function(t,i){var a=this._ecModel,n=this._tooltipModel,o=[i.offsetX,i.offsetY],s=kp([i.tooltipOption],n),l=this._renderMode,u=[],f=$t("section",{blocks:[],noHeader:!0}),p=[],c=new Wh;w(t,function(y){w(y.dataByAxis,function(x){var _=a.getComponent(x.axisDim+"Axis",x.axisIndex),b=x.value;if(!(!_||b==null)){var S=L1(b,_.axis,a,x.seriesDataIndices,x.valueLabelOpt),T=$t("section",{header:S,noHeader:!Ie(S),sortBlocks:!0,blocks:[]});f.blocks.push(T),w(x.seriesDataIndices,function(C){var A=a.getSeriesByIndex(C.seriesIndex),D=C.dataIndexInside,M=A.getDataParams(D);if(!(M.dataIndex<0)){M.axisDim=x.axisDim,M.axisIndex=x.axisIndex,M.axisType=x.axisType,M.axisId=x.axisId,M.axisValue=ep(_.axis,{value:b}),M.axisValueLabel=S,M.marker=c.makeTooltipMarker("item",Yi(M.color),l);var L=r0(A.formatTooltip(D,!0,null)),I=L.frag;if(I){var P=kp([A],n).get("valueFormatter");T.blocks.push(P?N({valueFormatter:P},I):I)}L.text&&p.push(L.text),u.push(M)}})}})}),f.blocks.reverse(),p.reverse();var h=i.position,v=s.get("order"),d=u0(f,c,l,v,a.get("useUTC"),s.get("textStyle"));d&&p.unshift(d);var m=l==="richText"?` + +`:"
",g=p.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,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,c)})},e.prototype._showSeriesItemTooltip=function(t,i,a){var n=this._ecModel,o=tt(i),s=o.seriesIndex,l=n.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,p=o.dataType,c=u.getData(p),h=this._renderMode,v=t.positionDefault,d=kp([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),m=d.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(f,p),y=new Wh;g.marker=y.makeTooltipMarker("item",Yi(g.color),h);var x=r0(u.formatTooltip(f,!1,p)),_=d.get("order"),b=d.get("valueFormatter"),S=x.frag,T=S?u0(b?N({valueFormatter:b},S):S,y,h,_,n.get("useUTC"),d.get("textStyle")):x.text,C="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,T,g,C,t.offsetX,t.offsetY,t.position,t.target,y)}),a({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,i,a){var n=tt(i),o=n.tooltipConfig,s=o.option||{};if(B(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(n.componentMainType,n.componentIndex);f&&u.push(f),u.push({formatter:s.content});var p=t.positionDefault,c=kp(u,this._tooltipModel,p?{position:p}:null),h=c.get("content"),v=Math.random()+"",d=new Wh;this._showOrMove(c,function(){var m=Q(c.get("formatterParams")||{});this._showTooltipContent(c,h,m,v,t.offsetX,t.offsetY,t.position,i,d)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,i,a,n,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var p=this._tooltipContent;p.setEnterable(t.get("enterable"));var c=t.get("formatter");l=l||t.get("position");var h=i,v=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor")),d=v.color;if(c)if(B(c)){var m=t.ecModel.get("useUTC"),g=z(a)?a[0]:a,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=c,y&&(h=Qa(g.axisValue,h,m)),h=bl(h,a,!0)}else if(X(c)){var x=H(function(_,b){_===this._ticket&&(p.setContent(b,f,t,d,l),this._updatePosition(t,l,o,s,p,a,u))},this);this._ticket=n,h=c(a,n,x)}else h=c;p.setContent(h,f,t,d,l),p.show(t,d),this._updatePosition(t,l,o,s,p,a,u)}},e.prototype._getNearestPoint=function(t,i,a,n){if(a==="axis"||z(i))return{color:n||(this._renderMode==="html"?"#fff":"none")};if(!z(i))return{color:n||i.color||i.borderColor}},e.prototype._updatePosition=function(t,i,a,n,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||t.get("position");var p=o.getSize(),c=t.get("align"),h=t.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),X(i)&&(i=i([a,n],s,o.el,v,{viewSize:[u,f],contentSize:p.slice()})),z(i))a=W(i[0],u),n=W(i[1],f);else if(K(i)){var d=i;d.width=p[0],d.height=p[1];var m=Gt(d,{width:u,height:f});a=m.x,n=m.y,c=null,h=null}else if(B(i)&&l){var g=AX(i,v,p,t.get("borderWidth"));a=g[0],n=g[1]}else{var g=TX(a,n,o,u,f,c?null:20,h?null:20);a=g[0],n=g[1]}if(c&&(a-=_z(c)?p[0]/2:c==="right"?p[0]:0),h&&(n-=_z(h)?p[1]/2:h==="bottom"?p[1]:0),am(t)){var g=CX(a,n,o,u,f);a=g[0],n=g[1]}o.moveTo(a,n)},e.prototype._updateContentNotChangedOnAxis=function(t,i){var a=this._lastDataByCoordSys,n=this._cbParamsList,o=!!a&&a.length===t.length;return o&&w(a,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},p=f.dataByAxis||[];o=o&&u.length===p.length,o&&w(u,function(c,h){var v=p[h]||{},d=c.seriesDataIndices||[],m=v.seriesDataIndices||[];o=o&&c.value===v.value&&c.axisType===v.axisType&&c.axisId===v.axisId&&d.length===m.length,o&&w(d,function(g,y){var x=m[y];o=o&&g.seriesIndex===x.seriesIndex&&g.dataIndex===x.dataIndex}),n&&w(c.seriesDataIndices,function(g){var y=g.seriesIndex,x=i[y],_=n[y];x&&_&&_.data!==x.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=i,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,i){bt.node||!i.getDom()||(rn(this,"_updatePosition"),this._tooltipContent.dispose(),Rp("itemTooltip",i))},e.type="tooltip",e}(Et);function kp(r,e,t){var i=e.ecModel,a;t?(a=new Mt(t,i,i),a=new Mt(e.option,a,i)):a=e;for(var n=r.length-1;n>=0;n--){var o=r[n];o&&(o instanceof Mt&&(o=o.get("tooltip",!0)),B(o)&&(o={formatter:o}),o&&(a=new Mt(o,a,i)))}return a}function xz(r,e){return r.dispatchAction||H(e.dispatchAction,e)}function TX(r,e,t,i,a,n,o){var s=t.getSize(),l=s[0],u=s[1];return n!=null&&(r+l+n+2>i?r-=l+n:r+=n),o!=null&&(e+u+o>a?e-=u+o:e+=o),[r,e]}function CX(r,e,t,i,a){var n=t.getSize(),o=n[0],s=n[1];return r=Math.min(r+o,i)-o,e=Math.min(e+s,a)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function AX(r,e,t,i){var a=t[0],n=t[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,f=e.height;switch(r){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 _z(r){return r==="center"||r==="middle"}function DX(r,e,t){var i=$u(r).queryOptionMap,a=i.keys()[0];if(!(!a||a==="series")){var n=Tn(e,a,i.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=n.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=tt(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}var Sz=wX;function ab(r){_t(aa),r.registerComponentModel(uz),r.registerComponentView(Sz),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},qt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},qt)}var MX=["rect","polygon","keep","clear"];function nb(r,e){var t=Ot(r?r.brush:[]);if(t.length){var i=[];w(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(i=i.concat(u))});var a=r&&r.toolbox;z(a)&&(a=a[0]),a||(a={feature:{}},r.toolbox=[a]);var n=a.feature||(a.feature={}),o=n.brush||(n.brush={}),s=o.type||(o.type=[]);s.push.apply(s,i),LX(s),e&&!s.length&&s.push.apply(s,MX)}}function LX(r){var e={};w(r,function(t){e[t]=1}),r.length=0,w(e,function(t,i){r.push(i)})}var bz=w;function wz(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function Vp(r,e,t){var i={};return bz(e,function(n){var o=i[n]=a();bz(r[n],function(s,l){if(ve.isValidType(l)){var u={type:l,visual:s};t&&t(u,n),o[l]=new ve(u),l==="opacity"&&(u=Q(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new ve(u))}})}),i;function a(){var n=function(){};n.prototype.__hidden=n.prototype;var o=new n;return o}}function nm(r,e,t){var i;w(t,function(a){e.hasOwnProperty(a)&&wz(e[a])&&(i=!0)}),i&&w(t,function(a){e.hasOwnProperty(a)&&wz(e[a])?r[a]=Q(e[a]):delete r[a]})}function Tz(r,e,t,i,a,n){var o={};w(r,function(p){var c=ve.prepareVisualTypes(e[p]);o[p]=c});var s;function l(p){return Vf(t,s,p)}function u(p,c){m0(t,s,p,c)}n==null?t.each(f):t.each([n],f);function f(p,c){s=n==null?p:c;var h=t.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var v=i.call(a,p),d=e[v],m=o[v],g=0,y=m.length;ge[0][1]&&(e[0][1]=n[0]),n[1]e[1][1]&&(e[1][1]=n[1])}return e&&Ez(e)}};function Ez(r){return new rt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var OX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){this.ecModel=t,this.api=i,this.model,(this._brushController=new nu(i.getZr())).on("brush",H(this._onBrush,this)).mount()},e.prototype.render=function(t,i,a,n){this.model=t,this._updateController(t,i,a,n)},e.prototype.updateTransform=function(t,i,a,n){lb(i),this._updateController(t,i,a,n)},e.prototype.updateVisual=function(t,i,a,n){this.updateTransform(t,i,a,n)},e.prototype.updateView=function(t,i,a,n){this._updateController(t,i,a,n)},e.prototype._updateController=function(t,i,a,n){(!n||n.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(a)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var i=this.model.id,a=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:Q(a),$from:i}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:i,areas:Q(a),$from:i})},e.type="brush",e}(Et),Pz=OX;var NX="#ddd",zX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,i){var a=this.option;!i&&nm(a,t,["inBrush","outOfBrush"]);var n=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:NX},n.hasOwnProperty("liftZ")||(n.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=k(t,function(i){return Rz(this.option,i)},this))},e.prototype.setBrushOption=function(t){this.brushOption=Rz(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(gt);function Rz(r,e){return ot({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Mt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}var Oz=zX;var kX=["rect","polygon","lineX","lineY","keep","clear"],VX=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,i,a){var n,o,s;i.eachComponent({mainType:"brush"},function(l){n=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=n,this._brushMode=o,w(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===n)?"emphasis":"normal")})},e.prototype.updateView=function(t,i,a){this.render(t,i,a)},e.prototype.getIcons=function(){var t=this.model,i=t.get("icon",!0),a={};return w(t.get("type",!0),function(n){i[n]&&(a[n]=i[n])}),a},e.prototype.onclick=function(t,i,a){var n=this._brushType,o=this._brushMode;a==="clear"?(i.dispatchAction({type:"axisAreaSelect",intervals:[]}),i.dispatchAction({type:"brush",command:"clear",areas:[]})):i.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?n:n===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var i={show:!0,type:kX.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return i},e}(Ge),Nz=VX;function fb(r){r.registerComponentView(Pz),r.registerComponentModel(Oz),r.registerPreprocessor(nb),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,ub),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(i){i.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},qt),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},qt),so("brush",Nz)}var UX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(gt),BX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){if(this.group.removeAll(),!!t.get("show")){var n=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=nt(t.get("textBaseline"),t.get("textVerticalAlign")),f=new dt({style:Vt(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),p=f.getBoundingRect(),c=t.get("subtext"),h=new dt({style:Vt(s,{text:c,fill:s.getTextColor(),y:p.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=t.get("link"),d=t.get("sublink"),m=t.get("triggerEvent",!0);f.silent=!v&&!m,h.silent=!d&&!m,v&&f.on("click",function(){os(v,"_"+t.get("target"))}),d&&h.on("click",function(){os(d,"_"+t.get("subtarget"))}),tt(f).eventData=tt(h).eventData=m?{componentType:"title",componentIndex:t.componentIndex}:null,n.add(f),c&&n.add(h);var g=n.getBoundingRect(),y=t.getBoxLayoutParams();y.width=g.width,y.height=g.height;var x=Gt(y,{width:a.getWidth(),height:a.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),n.x=x.x,n.y=x.y,n.markRedraw();var _={align:l,verticalAlign:u};f.setStyle(_),h.setStyle(_),g=n.getBoundingRect();var b=x.margin,S=t.getItemStyle(["color","opacity"]);S.fill=t.get("backgroundColor");var T=new pt({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g.height+b[0]+b[2],r:t.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});n.add(T)}},e.type="title",e}(Et);function pb(r){r.registerComponentModel(UX),r.registerComponentView(BX)}var FX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,i,a){this.mergeDefaultAndTheme(t,a),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var i=this._data.count();this.option.loop?t=(t%i+i)%i:(t>=i&&(t=i-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,i=t.data||[],a=t.axisType,n=this._names=[],o;a==="category"?(o=[],w(i,function(u,f){var p=ie(Bi(u),""),c;K(u)?(c=Q(u),c.value=f):c=f,o.push(c),n.push(p)})):o=i;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new se([{name:"value",type:s}],this);l.initData(o,n)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(gt),cb=FX;var zz=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=or(cb.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(cb);Wt(zz,Ml.prototype);var kz=zz;var GX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(Et),Vz=GX;var HX=function(r){E(e,r);function e(t,i,a,n){var o=r.call(this,t,i,a)||this;return o.type=n||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(Fe),Uz=HX;var hb=Math.PI,Bz=st(),WX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){this.api=i},e.prototype.render=function(t,i,a){if(this.model=t,this.api=a,this.ecModel=i,this.group.removeAll(),t.get("show",!0)){var n=this._layout(t,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(n,t);t.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return $t("nameValue",{noName:!0,value:f})},w(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](n,o,l,t)},this),this._renderAxisLabel(n,s,l,t),this._position(n,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,i){var a=t.get(["label","position"]),n=t.get("orient"),o=ZX(t,i),s;a==null||a==="auto"?s=n==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:hb/2},p=n==="vertical"?o.height:o.width,c=t.getModel("controlStyle"),h=c.get("show",!0),v=h?c.get("itemSize"):0,d=h?c.get("itemGap"):0,m=v+d,g=t.get(["label","rotate"])||0;g=g*hb/180;var y,x,_,b=c.get("position",!0),S=h&&c.get("showPlayBtn",!0),T=h&&c.get("showPrevBtn",!0),C=h&&c.get("showNextBtn",!0),A=0,D=p;b==="left"||b==="bottom"?(S&&(y=[0,0],A+=m),T&&(x=[A,0],A+=m),C&&(_=[D-v,0],D-=m)):(S&&(y=[D-v,0],D-=m),T&&(x=[0,0],A+=m),C&&(_=[D-v,0],D-=m));var M=[A,D];return t.get("inverse")&&M.reverse(),{viewRect:o,mainLength:p,orient:n,rotation:f[n],labelRotation:g,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[n],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[n],playPosition:y,prevBtnPosition:x,nextBtnPosition:_,axisExtent:M,controlSize:v,controlGap:d}},e.prototype._position=function(t,i){var a=this._mainGroup,n=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=ge(),l=o.x,u=o.y+o.height;We(s,s,[-l,-u]),cr(s,s,-hb/2),We(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=y(o),p=y(a.getBoundingRect()),c=y(n.getBoundingRect()),h=[a.x,a.y],v=[n.x,n.y];v[0]=h[0]=f[0][0];var d=t.labelPosOpt;if(d==null||B(d)){var m=d==="+"?0:1;x(h,p,f,1,m),x(v,c,f,1,1-m)}else{var m=d>=0?0:1;x(h,p,f,1,m),v[1]=h[1]+d}a.setPosition(h),n.setPosition(v),a.rotation=n.rotation=t.rotation,g(a),g(n);function g(_){_.originX=f[0][0]-_.x,_.originY=f[1][0]-_.y}function y(_){return[[_.x,_.x+_.width],[_.y,_.y+_.height]]}function x(_,b,S,T,C){_[T]+=S[T][C]-b[T][C]}},e.prototype._createAxis=function(t,i){var a=i.getData(),n=i.get("axisType"),o=YX(i,n);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new Uz("value",o,t.axisExtent,n);return l.model=i,l},e.prototype._createGroup=function(t){var i=this[t]=new j;return this.group.add(i),i},e.prototype._renderAxisLine=function(t,i,a,n){var o=a.getExtent();if(n.get(["lineStyle","show"])){var s=new re({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:N({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});i.add(s);var l=this._progressLine=new re({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:q({lineCap:"round",lineWidth:s.style.lineWidth},n.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});i.add(l)}},e.prototype._renderAxisTick=function(t,i,a,n){var o=this,s=n.getData(),l=a.scale.getTicks();this._tickSymbols=[],w(l,function(u){var f=a.dataToCoord(u.value),p=s.getItemModel(u.value),c=p.getModel("itemStyle"),h=p.getModel(["emphasis","itemStyle"]),v=p.getModel(["progress","itemStyle"]),d={x:f,y:0,onclick:H(o._changeTimeline,o,u.value)},m=Fz(p,c,i,d);m.ensureState("emphasis").style=h.getItemStyle(),m.ensureState("progress").style=v.getItemStyle(),gi(m);var g=tt(m);p.get("tooltip")?(g.dataIndex=u.value,g.dataModel=n):g.dataIndex=g.dataModel=null,o._tickSymbols.push(m)})},e.prototype._renderAxisLabel=function(t,i,a,n){var o=this,s=a.getLabelModel();if(s.get("show")){var l=n.getData(),u=a.getViewLabels();this._tickLabels=[],w(u,function(f){var p=f.tickValue,c=l.getItemModel(p),h=c.getModel("label"),v=c.getModel(["emphasis","label"]),d=c.getModel(["progress","label"]),m=a.dataToCoord(f.tickValue),g=new dt({x:m,y:0,rotation:t.labelRotation-t.rotation,onclick:H(o._changeTimeline,o,p),silent:!1,style:Vt(h,{text:f.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});g.ensureState("emphasis").style=Vt(v),g.ensureState("progress").style=Vt(d),i.add(g),gi(g),Bz(g).dataIndex=p,o._tickLabels.push(g)})}},e.prototype._renderControl=function(t,i,a,n){var o=t.controlSize,s=t.rotation,l=n.getModel("controlStyle").getItemStyle(),u=n.getModel(["emphasis","controlStyle"]).getItemStyle(),f=n.getPlayState(),p=n.get("inverse",!0);c(t.nextBtnPosition,"next",H(this._changeTimeline,this,p?"-":"+")),c(t.prevBtnPosition,"prev",H(this._changeTimeline,this,p?"+":"-")),c(t.playPosition,f?"stop":"play",H(this._handlePlayClick,this,!f),!0);function c(h,v,d,m){if(h){var g=Xe(nt(n.get(["controlStyle",v+"BtnSize"]),o),o),y=[0,-g/2,g,g],x=XX(n,v+"Icon",y,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:d});x.ensureState("emphasis").style=u,i.add(x),gi(x)}}},e.prototype._renderCurrentPointer=function(t,i,a,n){var o=n.getData(),s=n.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(p){p.draggable=!0,p.drift=H(u._handlePointerDrag,u),p.ondragend=H(u._handlePointerDragend,u),Gz(p,u._progressLine,s,a,n,!0)},onUpdate:function(p){Gz(p,u._progressLine,s,a,n)}};this._currentPointer=Fz(l,l,this._mainGroup,{},this._currentPointer,f)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,i,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,i){var a=this._toAxisCoord(t)[0],n=this._axis,o=_e(n.getExtent().slice());a>o[1]&&(a=o[1]),a=0&&(o[n]=+o[n].toFixed(c)),[o,p]}var mb={min:et(um,"min"),max:et(um,"max"),average:et(um,"average"),median:et(um,"median")};function uo(r,e){if(e){var t=r.getData(),i=r.coordinateSystem,a=i&&i.dimensions;if(!jX(e)&&!z(e.coord)&&z(a)){var n=yb(e,t,i,r);if(e=Q(e),e.type&&mb[e.type]&&n.baseAxis&&n.valueAxis){var o=it(a,n.baseAxis.dim),s=it(a,n.valueAxis.dim),l=mb[e.type](t,n.baseDataDim,n.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!z(a))e.coord=[];else for(var u=e.coord,f=0;f<2;f++)mb[u[f]]&&(u[f]=pm(t,t.mapDimension(a[f]),u[f]));return e}}function yb(r,e,t,i){var a={};return r.valueIndex!=null||r.valueDim!=null?(a.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,a.valueAxis=t.getAxis(JX(i,a.valueDataDim)),a.baseAxis=t.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=i.getBaseAxis(),a.valueAxis=t.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function JX(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function fo(r,e){return r&&r.containData&&e.coord&&!gb(e)?r.containData(e.coord):!0}function qz(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!gb(e)&&!gb(t)?r.containZone(e.coord,t.coord):!0}function fm(r,e){return r?function(t,i,a,n){var o=n<2?t.coord&&t.coord[n]:t.value;return wi(o,e[n])}:function(t,i,a,n){return wi(t.value,e[n])}}function pm(r,e,t){if(t==="average"){var i=0,a=0;return r.each(e,function(n,o){isNaN(n)||(i+=n,a++)}),i/a}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var _b=st(),QX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=Y()},e.prototype.render=function(t,i,a){var n=this,o=this.markerGroupMap;o.each(function(s){_b(s).keep=!1}),i.eachSeries(function(s){var l=wr.getMarkerModelFromSeries(s,n.type);l&&n.renderSeries(s,l,i,a)}),o.each(function(s){!_b(s).keep&&n.group.remove(s.group)})},e.prototype.markKeep=function(t){_b(t).keep=!0},e.prototype.toggleBlurSeries=function(t,i){var a=this;w(t,function(n){var o=wr.getMarkerModelFromSeries(n,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(i?jc(l):ff(l))})}})},e.type="marker",e}(Et),gu=QX;function Kz(r,e,t){var i=e.coordinateSystem;r.each(function(a){var n=r.getItemModel(a),o,s=W(n.get("x"),t.getWidth()),l=W(n.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(r.getValues(r.dimensions,a));else if(i){var u=r.get(i.dimensions[0],a),f=r.get(i.dimensions[1],a);o=i.dataToPoint([u,f])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(a,o)})}var $X=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,a){i.eachSeries(function(n){var o=wr.getMarkerModelFromSeries(n,"markPoint");o&&(Kz(o.getData(),n,a),this.markerGroupMap.get(n.id).updateLayout())},this)},e.prototype.renderSeries=function(t,i,a,n){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new ba),p=tq(o,t,i);i.setData(p),Kz(i.getData(),t,n),p.each(function(c){var h=p.getItemModel(c),v=h.getShallow("symbol"),d=h.getShallow("symbolSize"),m=h.getShallow("symbolRotate"),g=h.getShallow("symbolOffset"),y=h.getShallow("symbolKeepAspect");if(X(v)||X(d)||X(m)||X(g)){var x=i.getRawValue(c),_=i.getDataParams(c);X(v)&&(v=v(x,_)),X(d)&&(d=d(x,_)),X(m)&&(m=m(x,_)),X(g)&&(g=g(x,_))}var b=h.getModel("itemStyle").getItemStyle(),S=ga(l,"color");b.fill||(b.fill=S),p.setItemVisual(c,{symbol:v,symbolSize:d,symbolRotate:m,symbolOffset:g,symbolKeepAspect:y,style:b})}),f.updateData(p),this.group.add(f.group),p.eachItemGraphicEl(function(c){c.traverse(function(h){tt(h).dataModel=i})}),this.markKeep(f),f.group.silent=i.get("silent")||t.get("silent")},e.type="markPoint",e}(gu);function tq(r,e,t){var i;r?i=k(r&&r.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return N(N({},l),{name:s,ordinalMeta:null})}):i=[{name:"value",type:"float"}];var a=new se(i,t),n=k(t.get("data"),et(uo,e));r&&(n=wt(n,et(fo,r)));var o=fm(!!r,i);return a.initData(n,null,o),a}var jz=$X;function Sb(r){r.registerComponentModel(Xz),r.registerComponentView(jz),r.registerPreprocessor(function(e){Os(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var eq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,i,a){return new e(t,i,a)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(wr),Jz=eq;var cm=st(),rq=function(r,e,t,i){var a=r.getData(),n;if(z(i))n=i;else{var o=i.type;if(o==="min"||o==="max"||o==="average"||o==="median"||i.xAxis!=null||i.yAxis!=null){var s=void 0,l=void 0;if(i.yAxis!=null||i.xAxis!=null)s=e.getAxis(i.yAxis!=null?"y":"x"),l=Jt(i.yAxis,i.xAxis);else{var u=yb(i,a,e,r);s=u.valueAxis;var f=Nl(a,u.valueDataDim);l=pm(a,f,o)}var p=s.dim==="x"?0:1,c=1-p,h=Q(i),v={coord:[]};h.type=null,h.coord=[],h.coord[c]=-1/0,v.coord[c]=1/0;var d=t.get("precision");d>=0&&vt(l)&&(l=+l.toFixed(Math.min(d,20))),h.coord[p]=v.coord[p]=l,n=[h,v,{type:o,valueIndex:i.valueIndex,value:l}]}else n=[]}var m=[uo(r,n[0]),uo(r,n[1]),N({},n[2])];return m[2].type=m[2].type||null,ot(m[2],m[0]),ot(m[2],m[1]),m};function hm(r){return!isNaN(r)&&!isFinite(r)}function Qz(r,e,t,i){var a=1-r,n=i.dimensions[r];return hm(e[a])&&hm(t[a])&&e[r]===t[r]&&i.getAxis(n).containData(e[r])}function iq(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,i=e[1].coord;if(t&&i&&(Qz(1,t,i,r)||Qz(0,t,i,r)))return!0}return fo(r,e[0])&&fo(r,e[1])}function bb(r,e,t,i,a){var n=i.coordinateSystem,o=r.getItemModel(e),s,l=W(o.get("x"),a.getWidth()),u=W(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(i.getMarkerPosition)s=i.getMarkerPosition(r.getValues(r.dimensions,e));else{var f=n.dimensions,p=r.get(f[0],e),c=r.get(f[1],e);s=n.dataToPoint([p,c])}if(Ii(n,"cartesian2d")){var h=n.getAxis("x"),v=n.getAxis("y"),f=n.dimensions;hm(r.get(f[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[t?0:1]):hm(r.get(f[1],e))&&(s[1]=v.toGlobalCoord(v.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var aq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,a){i.eachSeries(function(n){var o=wr.getMarkerModelFromSeries(n,"markLine");if(o){var s=o.getData(),l=cm(o).from,u=cm(o).to;l.each(function(f){bb(l,f,!0,n,a),bb(u,f,!1,n,a)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(n.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,i,a,n){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new tu);this.group.add(f.group);var p=nq(o,t,i),c=p.from,h=p.to,v=p.line;cm(i).from=c,cm(i).to=h,i.setData(v);var d=i.get("symbol"),m=i.get("symbolSize"),g=i.get("symbolRotate"),y=i.get("symbolOffset");z(d)||(d=[d,d]),z(m)||(m=[m,m]),z(g)||(g=[g,g]),z(y)||(y=[y,y]),p.from.each(function(_){x(c,_,!0),x(h,_,!1)}),v.each(function(_){var b=v.getItemModel(_).getModel("lineStyle").getLineStyle();v.setItemLayout(_,[c.getItemLayout(_),h.getItemLayout(_)]),b.stroke==null&&(b.stroke=c.getItemVisual(_,"style").fill),v.setItemVisual(_,{fromSymbolKeepAspect:c.getItemVisual(_,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(_,"symbolOffset"),fromSymbolRotate:c.getItemVisual(_,"symbolRotate"),fromSymbolSize:c.getItemVisual(_,"symbolSize"),fromSymbol:c.getItemVisual(_,"symbol"),toSymbolKeepAspect:h.getItemVisual(_,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(_,"symbolOffset"),toSymbolRotate:h.getItemVisual(_,"symbolRotate"),toSymbolSize:h.getItemVisual(_,"symbolSize"),toSymbol:h.getItemVisual(_,"symbol"),style:b})}),f.updateData(v),p.line.eachItemGraphicEl(function(_){tt(_).dataModel=i,_.traverse(function(b){tt(b).dataModel=i})});function x(_,b,S){var T=_.getItemModel(b);bb(_,b,S,t,n);var C=T.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=ga(l,"color")),_.setItemVisual(b,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:nt(T.get("symbolOffset",!0),y[S?0:1]),symbolRotate:nt(T.get("symbolRotate",!0),g[S?0:1]),symbolSize:nt(T.get("symbolSize"),m[S?0:1]),symbol:nt(T.get("symbol",!0),d[S?0:1]),style:C})}this.markKeep(f),f.group.silent=i.get("silent")||t.get("silent")},e.type="markLine",e}(gu);function nq(r,e,t){var i;r?i=k(r&&r.dimensions,function(u){var f=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return N(N({},f),{name:u,ordinalMeta:null})}):i=[{name:"value",type:"float"}];var a=new se(i,t),n=new se(i,t),o=new se([],t),s=k(t.get("data"),et(rq,e,r,t));r&&(s=wt(s,et(iq,r)));var l=fm(!!r,i);return a.initData(k(s,function(u){return u[0]}),null,l),n.initData(k(s,function(u){return u[1]}),null,l),o.initData(k(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:n,line:o}}var $z=aq;function wb(r){r.registerComponentModel(Jz),r.registerComponentView($z),r.registerPreprocessor(function(e){Os(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var oq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,i,a){return new e(t,i,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(wr),tk=oq;var vm=st(),sq=function(r,e,t,i){var a=i[0],n=i[1];if(!(!a||!n)){var o=uo(r,a),s=uo(r,n),l=o.coord,u=s.coord;l[0]=Jt(l[0],-1/0),l[1]=Jt(l[1],-1/0),u[0]=Jt(u[0],1/0),u[1]=Jt(u[1],1/0);var f=vo([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function dm(r){return!isNaN(r)&&!isFinite(r)}function ek(r,e,t,i){var a=1-r;return dm(e[a])&&dm(t[a])}function lq(r,e){var t=e.coord[0],i=e.coord[1],a={coord:t,x:e.x0,y:e.y0},n={coord:i,x:e.x1,y:e.y1};return Ii(r,"cartesian2d")?t&&i&&(ek(1,t,i,r)||ek(0,t,i,r))?!0:qz(r,a,n):fo(r,a)||fo(r,n)}function rk(r,e,t,i,a){var n=i.coordinateSystem,o=r.getItemModel(e),s,l=W(o.get(t[0]),a.getWidth()),u=W(o.get(t[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(i.getMarkerPosition){var f=r.getValues(["x0","y0"],e),p=r.getValues(["x1","y1"],e),c=n.clampData(f),h=n.clampData(p),v=[];t[0]==="x0"?v[0]=c[0]>h[0]?p[0]:f[0]:v[0]=c[0]>h[0]?f[0]:p[0],t[1]==="y0"?v[1]=c[1]>h[1]?p[1]:f[1]:v[1]=c[1]>h[1]?f[1]:p[1],s=i.getMarkerPosition(v,t,!0)}else{var d=r.get(t[0],e),m=r.get(t[1],e),g=[d,m];n.clampData&&n.clampData(g,g),s=n.dataToPoint(g,!0)}if(Ii(n,"cartesian2d")){var y=n.getAxis("x"),x=n.getAxis("y"),d=r.get(t[0],e),m=r.get(t[1],e);dm(d)?s[0]=y.toGlobalCoord(y.getExtent()[t[0]==="x0"?0:1]):dm(m)&&(s[1]=x.toGlobalCoord(x.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var ik=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],uq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,a){i.eachSeries(function(n){var o=wr.getMarkerModelFromSeries(n,"markArea");if(o){var s=o.getData();s.each(function(l){var u=k(ik,function(p){return rk(s,l,p,n,a)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,i,a,n){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new j});this.group.add(f.group),this.markKeep(f);var p=fq(o,t,i);i.setData(p),p.each(function(c){var h=k(ik,function(C){return rk(p,c,C,t,n)}),v=o.getAxis("x").scale,d=o.getAxis("y").scale,m=v.getExtent(),g=d.getExtent(),y=[v.parse(p.get("x0",c)),v.parse(p.get("x1",c))],x=[d.parse(p.get("y0",c)),d.parse(p.get("y1",c))];_e(y),_e(x);var _=!(m[0]>y[1]||m[1]x[1]||g[1]=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(gt),Bp=cq;var yu=et,Cb=w,mm=j,hq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new mm),this.group.add(this._selectorGroup=new mm),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,i,a){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,i,a,l,s,u);var f=t.getBoxLayoutParams(),p={width:a.getWidth(),height:a.getHeight()},c=t.get("padding"),h=Gt(f,p,c),v=this.layoutInner(t,o,h,n,l,u),d=Gt(q({width:v.width,height:v.height},f),p,c);this.group.x=d.x-v.x,this.group.y=d.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=em(v,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,i,a,n,o,s,l){var u=this.getContentGroup(),f=Y(),p=i.get("selectedMode"),c=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&c.push(h.id)}),Cb(i.getData(),function(h,v){var d=h.get("name");if(!this.newlineDisabled&&(d===""||d===` +`)){var m=new mm;m.newline=!0,u.add(m);return}var g=a.getSeriesByName(d)[0];if(!f.get(d))if(g){var y=g.getData(),x=y.getVisual("legendLineStyle")||{},_=y.getVisual("legendIcon"),b=y.getVisual("style"),S=this._createItem(g,d,v,h,i,t,x,b,_,p,n);S.on("click",yu(nk,d,null,n,c)).on("mouseover",yu(Ab,g.name,null,n,c)).on("mouseout",yu(Db,g.name,null,n,c)),a.ssr&&S.eachChild(function(T){var C=tt(T);C.seriesIndex=g.seriesIndex,C.dataIndex=v,C.ssrType="legend"}),f.set(d,!0)}else a.eachRawSeries(function(T){if(!f.get(d)&&T.legendVisualProvider){var C=T.legendVisualProvider;if(!C.containName(d))return;var A=C.indexOfName(d),D=C.getItemVisual(A,"style"),M=C.getItemVisual(A,"legendIcon"),L=Re(D.fill);L&&L[3]===0&&(L[3]=.2,D=N(N({},D),{fill:Lr(L,"rgba")}));var I=this._createItem(T,d,v,h,i,t,{},D,M,p,n);I.on("click",yu(nk,null,d,n,c)).on("mouseover",yu(Ab,null,d,n,c)).on("mouseout",yu(Db,null,d,n,c)),a.ssr&&I.eachChild(function(P){var R=tt(P);R.seriesIndex=T.seriesIndex,R.dataIndex=v,R.ssrType="legend"}),f.set(d,!0)}},this)},this),o&&this._createSelector(o,i,n,s,l)},e.prototype._createSelector=function(t,i,a,n,o){var s=this.getSelectorGroup();Cb(t,function(u){var f=u.type,p=new dt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(p);var c=i.getModel("selectorLabel"),h=i.getModel(["emphasis","selectorLabel"]);jt(p,{normal:c,emphasis:h},{defaultText:u.title}),gi(p)})},e.prototype._createItem=function(t,i,a,n,o,s,l,u,f,p,c){var h=t.visualDrawType,v=o.get("itemWidth"),d=o.get("itemHeight"),m=o.isSelected(i),g=n.get("symbolRotate"),y=n.get("symbolKeepAspect"),x=n.get("icon");f=x||f||"roundRect";var _=vq(f,n,l,u,h,m,c),b=new mm,S=n.getModel("textStyle");if(X(t.getLegendIcon)&&(!x||x==="inherit"))b.add(t.getLegendIcon({itemWidth:v,itemHeight:d,icon:f,iconRotate:g,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:y}));else{var T=x==="inherit"&&t.getData().getVisual("symbol")?g==="inherit"?t.getData().getVisual("symbolRotate"):g:0;b.add(dq({itemWidth:v,itemHeight:d,icon:f,iconRotate:T,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:y}))}var C=s==="left"?v+5:-5,A=s,D=o.get("formatter"),M=i;B(D)&&D?M=D.replace("{name}",i??""):X(D)&&(M=D(i));var L=m?S.getTextColor():n.get("inactiveColor");b.add(new dt({style:Vt(S,{text:M,x:C,y:d/2,fill:L,align:A,verticalAlign:"middle"},{inheritColor:L})}));var I=new pt({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=n.getModel("tooltip");return P.get("show")&&Wi({el:I,componentModel:o,itemName:i,itemTooltipOption:P.option}),b.add(I),b.eachChild(function(R){R.silent=!0}),I.silent=!p,this.getContentGroup().add(b),gi(b),b.__legendDataIndex=a,b},e.prototype.layoutInner=function(t,i,a,n,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Zi(t.get("orient"),l,t.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),p=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Zi("horizontal",u,t.get("selectorItemGap",!0));var c=u.getBoundingRect(),h=[-c.x,-c.y],v=t.get("selectorButtonGap",!0),d=t.getOrient().index,m=d===0?"width":"height",g=d===0?"height":"width",y=d===0?"y":"x";s==="end"?h[d]+=f[m]+v:p[d]+=c[m]+v,h[1-d]+=f[g]/2-c[g]/2,u.x=h[0],u.y=h[1],l.x=p[0],l.y=p[1];var x={x:0,y:0};return x[m]=f[m]+v+c[m],x[g]=Math.max(f[g],c[g]),x[y]=Math.min(0,c[y]+h[1-d]),x}else return l.x=p[0],l.y=p[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Et);function vq(r,e,t,i,a,n,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),Cb(m,function(y,x){m[x]==="inherit"&&(m[x]=g[x])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",p=l.getShallow("decal");u.decal=!p||p==="inherit"?i.decal:ji(p,o),u.fill==="inherit"&&(u.fill=i[a]),u.stroke==="inherit"&&(u.stroke=i[f]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?i:t).opacity),s(u,i);var c=e.getModel("lineStyle"),h=c.getLineStyle();if(s(h,t),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),h.stroke==="auto"&&(h.stroke=i.fill),!n){var v=e.get("inactiveBorderWidth"),d=u[f];u.lineWidth=v==="auto"?i.lineWidth>0&&d?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=c.get("inactiveColor"),h.lineWidth=c.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function dq(r){var e=r.icon||"roundRect",t=Ht(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function nk(r,e,t,i){Db(r,e,t,i),t.dispatchAction({type:"legendToggleSelect",name:r??e}),Ab(r,e,t,i)}function ok(r){for(var e=r.getZr().storage.getDisplayList(),t,i=0,a=e.length;ia[o],m=[-h.x,-h.y];i||(m[n]=f[u]);var g=[0,0],y=[-v.x,-v.y],x=nt(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var _=t.get("pageButtonPosition",!0);_==="end"?y[n]+=a[o]-v[o]:g[n]+=v[o]+x}y[1-n]+=h[s]/2-v[s]/2,f.setPosition(m),p.setPosition(g),c.setPosition(y);var b={x:0,y:0};if(b[o]=d?a[o]:h[o],b[s]=Math.max(h[s],v[s]),b[l]=Math.min(0,v[l]+y[1-n]),p.__rectSize=a[o],d){var S={x:0,y:0};S[o]=Math.max(a[o]-v[o]-x,0),S[s]=b[s],p.setClipPath(new pt({shape:S})),p.__rectSize=S[o]}else c.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(t);return T.pageIndex!=null&&yt(f,{x:T.contentPosition[0],y:T.contentPosition[1]},d?t:null),this._updatePageInfoView(t,T),b},e.prototype._pageGo=function(t,i,a){var n=this._getPageInfo(i)[t];n!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:i.id})},e.prototype._updatePageInfoView=function(t,i){var a=this._controllerGroup;w(["pagePrev","pageNext"],function(f){var p=f+"DataIndex",c=i[p]!=null,h=a.childOfName(f);h&&(h.setStyle("fill",c?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),h.cursor=c?"pointer":"default")});var n=a.childOfName("pageText"),o=t.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;n&&o&&n.setStyle("text",B(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var i=t.get("scrollDataIndex",!0),a=this.getContentGroup(),n=this._containerGroup.__rectSize,o=t.getOrient().index,s=Lb[o],l=Ib[o],u=this._findTargetItemIndex(i),f=a.children(),p=f[u],c=f.length,h=c?1:0,v={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!p)return v;var d=_(p);v.contentPosition[o]=-d.s;for(var m=u+1,g=d,y=d,x=null;m<=c;++m)x=_(f[m]),(!x&&y.e>g.s+n||x&&!b(x,g.s))&&(y.i>g.i?g=y:g=x,g&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=g.i),++v.pageCount)),y=x;for(var m=u-1,g=d,y=d,x=null;m>=-1;--m)x=_(f[m]),(!x||!b(y,x.s))&&g.i=T&&S.s<=T+n}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var i,a=this.getContentGroup(),n;return a.eachChild(function(o,s){var l=o.__legendDataIndex;n==null&&l!=null&&(n=s),l===t&&(i=s)}),i??n},e.type="legend.scroll",e}(gm),pk=gq;function Eb(r){r.registerAction("legendScroll","legendscroll",function(e,t){var i=e.scrollDataIndex;i!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(i)})})}function ck(r){_t(ym),r.registerComponentModel(uk),r.registerComponentView(pk),Eb(r)}function Pb(r){_t(ym),_t(ck)}var yq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=or(oo.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(oo),hk=yq;var Rb=st();function vk(r,e,t){Rb(r).coordSysRecordMap.each(function(i){var a=i.dataZoomInfoMap.get(e.uid);a&&(a.getRange=t)})}function dk(r,e){for(var t=Rb(r).coordSysRecordMap,i=t.keys(),a=0;ai[t+e]&&(e=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function gk(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var i=Rb(t),a=i.coordSysRecordMap||(i.coordSysRecordMap=Y());a.each(function(n){n.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(n){var o=$d(n);w(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,xq(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=Y());f.set(n.uid,{dzReferCoordSysInfo:s,model:n,getRange:null})})}),a.each(function(n){var o=n.controller,s,l=n.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){mk(a,n);return}var f=bq(l);o.enable(f.controlType,f.opt),o.setPointerChecker(n.containsPoint),Ti(n,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Tq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,i,a){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),vk(a,t,{pan:H(Ob.pan,this),zoom:H(Ob.zoom,this),scrollMove:H(Ob.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){dk(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(vu),Ob={zoom:function(r,e,t,i){var a=this.range,n=a.slice(),o=r.axisModels[0];if(o){var s=Nb[e](null,[i.originX,i.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(n[1]-n[0])+n[0],u=Math.max(1/i.scale,0);n[0]=(n[0]-l)*u+l,n[1]=(n[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Zr(0,n,[0,100],0,f.minSpan,f.maxSpan),this.range=n,a[0]!==n[0]||a[1]!==n[1])return n}},pan:yk(function(r,e,t,i,a,n){var o=Nb[i]([n.oldX,n.oldY],[n.newX,n.newY],e,a,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:yk(function(r,e,t,i,a,n){var o=Nb[i]([0,0],[n.scrollDelta,n.scrollDelta],e,a,t);return o.signal*(r[1]-r[0])*n.scrollDelta})};function yk(r){return function(e,t,i,a){var n=this.range,o=n.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,i,a);if(Zr(l,o,[0,100],"all"),this.range=o,n[0]!==o[0]||n[1]!==o[1])return o}}}var Nb={grid:function(r,e,t,i,a){var n=t.axis,o={},s=a.model.coordinateSystem.getRect();return r=r||[0,0],n.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=n.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=n.inverse?-1:1),o},polar:function(r,e,t,i,a){var n=t.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=n.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=n.inverse?-1:1),o},singleAxis:function(r,e,t,i,a){var n=t.axis,o=a.model.coordinateSystem.getRect(),s={};return r=r||[0,0],n.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=n.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=n.inverse?-1:1),s}},xk=Tq;function Gp(r){Ps(r),r.registerComponentModel(hk),r.registerComponentView(xk),gk(r)}var Cq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=or(oo.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(oo),_k=Cq;var Hp=pt,Sk=7,Aq=1,zb=30,Dq=7,Wp="horizontal",bk="vertical",Mq=5,Lq=["line","bar","candlestick","scatter"],Iq={easing:"cubicOut",duration:100,delay:0},Eq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,i){this.api=i,this._onBrush=H(this._onBrush,this),this._onBrushEnd=H(this._onBrushEnd,this)},e.prototype.render=function(t,i,a,n){if(r.prototype.render.apply(this,arguments),Ti(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!n||n.type!=="dataZoom"||n.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){rn(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var i=this._displayables.sliderGroup=new j;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(i),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,i=this.api,a=t.get("brushSelect"),n=a?Dq:0,o=this._findCoordRect(),s={width:i.getWidth(),height:i.getHeight()},l=this._orient===Wp?{right:s.width-o.x-o.width,top:s.height-zb-Sk-n,width:o.width,height:zb}:{right:Sk,top:o.y,width:zb,height:o.height},u=Si(t.option);w(["right","top","width","height"],function(p){u[p]==="ph"&&(u[p]=l[p])});var f=Gt(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===bk&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,i=this._location,a=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),o=n&&n.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===Wp&&!o?{scaleY:l?1:-1,scaleX:1}:a===Wp&&o?{scaleY:l?1:-1,scaleX:-1}:a===bk&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=i.x-u.x,t.y=i.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,i=this._size,a=this._displayables.sliderGroup,n=t.get("brushSelect");a.add(new Hp({silent:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new Hp({shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:"transparent"},z2:0,onclick:H(this._onClickPanel,this)}),s=this.api.getZr();n?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var i=this._size,a=this._shadowSize||[],n=t.series,o=n.getRawData(),s=n.getShadowDim&&n.getShadowDim(),l=s&&o.getDimensionInfo(s)?n.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||i[0]!==a[0]||i[1]!==a[1]){var p=o.getDataExtent(l),c=(p[1]-p[0])*.3;p=[p[0]-c,p[1]+c];var h=[0,i[1]],v=[0,i[0]],d=[[i[0],0],[0,0]],m=[],g=v[1]/(o.count()-1),y=0,x=Math.round(o.count()/i[0]),_;o.each([l],function(A,D){if(x>0&&D%x){y+=g;return}var M=A==null||isNaN(A)||A==="",L=M?0:zt(A,p,h,!0);M&&!_&&D?(d.push([d[d.length-1][0],0]),m.push([m[m.length-1][0],0])):!M&&_&&(d.push([y,0]),m.push([y,0])),d.push([y,L]),m.push([y,L]),y+=g,_=M}),u=this._shadowPolygonPts=d,f=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[i[0],i[1]];var b=this.dataZoomModel;function S(A){var D=b.getModel(A?"selectedDataBackground":"dataBackground"),M=new j,L=new oe({shape:{points:u},segmentIgnoreThreshold:1,style:D.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new ae({shape:{points:f},segmentIgnoreThreshold:1,style:D.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(L),M.add(I),M}for(var T=0;T<3;T++){var C=S(T===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,i=t.get("showDataShadow");if(i!==!1){var a,n=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();w(l,function(u){if(!a&&!(i!==!0&&it(Lq,u.get("type"))<0)){var f=n.getComponent(zi(o),s).axis,p=Pq(o),c,h=u.coordinateSystem;p!=null&&h.getOtherAxis&&(c=h.getOtherAxis(f).inverse),p=u.getData().mapDimension(p),a={thisAxis:f,series:u,thisDim:o,otherDim:p,otherAxisInverse:c}}},this)},this),a}},e.prototype._renderHandle=function(){var t=this.group,i=this._displayables,a=i.handles=[null,null],n=i.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,p=l.get("brushSelect"),c=i.filler=new Hp({silent:p,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(c),o.add(new Hp({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Aq,fill:"rgba(0,0,0,0)"}})),w([0,1],function(x){var _=l.get("handleIcon");!Uf[_]&&_.indexOf("path://")<0&&_.indexOf("image://")<0&&(_="path://"+_);var b=Ht(_,-1,0,2,2,null,!0);b.attr({cursor:wk(this._orient),draggable:!0,drift:H(this._onDragMove,this,x),ondragend:H(this._onDragEnd,this),onmouseover:H(this._showDataInfo,this,!0),onmouseout:H(this._showDataInfo,this,!1),z2:5});var S=b.getBoundingRect(),T=l.get("handleSize");this._handleHeight=W(T,this._size[1]),this._handleWidth=S.width/S.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),gi(b);var C=l.get("handleColor");C!=null&&(b.style.fill=C),o.add(a[x]=b);var A=l.getModel("textStyle");t.add(n[x]=new dt({silent:!0,invisible:!0,style:Vt(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var h=c;if(p){var v=W(l.get("moveHandleSize"),s[1]),d=i.moveHandle=new pt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),m=v*.8,g=i.moveHandleIcon=Ht(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);g.silent=!0,g.y=s[1]+v/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(v,10));h=i.moveZone=new pt({invisible:!0,shape:{y:s[1]-y,height:v+y}}),h.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(g),o.add(h)}h.attr({draggable:!0,cursor:wk(this._orient),drift:H(this._onDragMove,this,"all"),ondragstart:H(this._showDataInfo,this,!0),ondragend:H(this._onDragEnd,this),onmouseover:H(this._showDataInfo,this,!0),onmouseout:H(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),i=this._getViewExtent();this._handleEnds=[zt(t[0],[0,100],i,!0),zt(t[1],[0,100],i,!0)]},e.prototype._updateInterval=function(t,i){var a=this.dataZoomModel,n=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Zr(i,n,o,a.get("zoomLock")?"all":t,s.minSpan!=null?zt(s.minSpan,l,o,!0):null,s.maxSpan!=null?zt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=_e([zt(n[0],o,l,!0),zt(n[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var i=this._displayables,a=this._handleEnds,n=_e(a.slice()),o=this._size;w([0,1],function(h){var v=i.handles[h],d=this._handleHeight;v.attr({scaleX:d/2,scaleY:d/2,x:a[h]+(h?-1:1),y:o[1]/2-d/2})},this),i.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:o[1]});var s={x:n[0],width:n[1]-n[0]};i.moveHandle&&(i.moveHandle.setShape(s),i.moveZone.setShape(s),i.moveZone.getBoundingRect(),i.moveHandleIcon&&i.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=i.dataShadowSegs,u=[0,n[0],n[1],o[0]],f=0;fi[0]||a[1]<0||a[1]>i[1])){var n=this._handleEnds,o=(n[0]+n[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var i=t.offsetX,a=t.offsetY;this._brushStart=new St(i,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var i=this._displayables.brushRect;if(this._brushing=!1,!!i){i.attr("ignore",!0);var a=i.shape,n=+new Date;if(!(n-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=_e([zt(a.x,o,s,!0),zt(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Mr(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,i){var a=this._displayables,n=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new Hp({silent:!0,style:n.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,i),f=l.transformCoordToLocal(s.x,s.y),p=this._size;u[0]=Math.max(Math.min(p[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:p[1]})},e.prototype._dispatchZoomAction=function(t){var i=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?Iq:null,start:i[0],end:i[1]})},e.prototype._findCoordRect=function(){var t,i=$d(this.dataZoomModel).infoList;if(!t&&i.length){var a=i[0].model.coordinateSystem;t=a.getRect&&a.getRect()}if(!t){var n=this.api.getWidth(),o=this.api.getHeight();t={x:n*.2,y:o*.2,width:n*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(vu);function Pq(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function wk(r){return r==="vertical"?"ns-resize":"ew-resize"}var Tk=Eq;function Yp(r){r.registerComponentModel(_k),r.registerComponentView(Tk),Ps(r)}function kb(r){_t(Gp),_t(Yp)}var Rq={get:function(r,e,t){var i=Q((Oq[r]||{})[e]);return t&&z(i)?i[i.length-1]:i}},Oq={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},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]}},xm=Rq;var Ck=ve.mapVisual,Nq=ve.eachVisual,zq=z,Ak=w,kq=_e,Vq=zt,Uq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,i,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,i){var a=this.option;!i&&nm(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var i=this.stateList;t=H(t,this),this.controllerVisuals=Vp(this.option.controller,i,t),this.targetVisuals=Vp(this.option.target,i,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,i=[];return t==null||t==="all"?this.ecModel.eachSeries(function(a,n){i.push(n)}):i=Ot(t),i},e.prototype.eachTargetSeries=function(t,i){w(this.getTargetSeriesIndices(),function(a){var n=this.ecModel.getSeriesByIndex(a);n&&t.call(i,n)},this)},e.prototype.isTargetSeries=function(t){var i=!1;return this.eachTargetSeries(function(a){a===t&&(i=!0)}),i},e.prototype.formatValueText=function(t,i,a){var n=this.option,o=n.precision,s=this.dataBound,l=n.formatter,u;a=a||["<",">"],z(t)&&(t=t.slice(),u=!0);var f=i?t:u?[p(t[0]),p(t[1])]:p(t);if(B(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(X(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?a[0]+" "+f[1]:t[1]===s[1]?a[1]+" "+f[0]:f[0]+" - "+f[1];return f;function p(c){return c===s[0]?"min":c===s[1]?"max":(+c).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,i=kq([t.min,t.max]);this._dataExtent=i},e.prototype.getDataDimensionIndex=function(t){var i=this.option.dimension;if(i!=null)return t.getDimensionIndex(i);for(var a=t.dimensions,n=a.length-1;n>=0;n--){var o=a[n],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,i=this.option,a={inRange:i.inRange,outOfRange:i.outOfRange},n=i.target||(i.target={}),o=i.controller||(i.controller={});ot(n,a),ot(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(p){zq(i.color)&&!p.inRange&&(p.inRange={color:i.color.slice().reverse()}),p.inRange=p.inRange||{color:t.get("gradientColor")}}function u(p,c,h){var v=p[c],d=p[h];v&&!d&&(d=p[h]={},Ak(v,function(m,g){if(ve.isValidType(g)){var y=xm.get(g,"inactive",s);y!=null&&(d[g]=y,g==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function f(p){var c=(p.inRange||{}).symbol||(p.outOfRange||{}).symbol,h=(p.inRange||{}).symbolSize||(p.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),d=this.getItemSymbol(),m=d||"roundRect";Ak(this.stateList,function(g){var y=this.itemSize,x=p[g];x||(x=p[g]={color:s?v:[v]}),x.symbol==null&&(x.symbol=c&&Q(c)||(s?m:[m])),x.symbolSize==null&&(x.symbolSize=h&&Q(h)||(s?y[0]:[y[0],y[0]])),x.symbol=Ck(x.symbol,function(S){return S==="none"?m:S});var _=x.symbolSize;if(_!=null){var b=-1/0;Nq(_,function(S){S>b&&(b=S)}),x.symbolSize=Ck(_,function(S){return Vq(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(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(gt),xu=Uq;var Dk=[20,140],Bq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,i){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=Dk[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=Dk[1])},e.prototype._resetRange=function(){var t=this.getExtent(),i=this.option.range;!i||i.auto?(t.auto=1,this.option.range=t):z(i)&&(i[0]>i[1]&&i.reverse(),i[0]=Math.max(i[0],t[0]),i[1]=Math.min(i[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),w(this.stateList,function(t){var i=this.option.controller[t].symbolSize;i&&i[0]!==i[1]&&(i[0]=i[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),i=_e((this.get("range")||[]).slice());return i[0]>t[1]&&(i[0]=t[1]),i[1]>t[1]&&(i[1]=t[1]),i[0]=a[1]||t<=i[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var i=[];return this.eachTargetSeries(function(a){var n=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&n.push(l)},this),i.push({seriesId:a.id,dataIndex:n})},this),i},e.prototype.getVisualMeta=function(t){var i=Mk(this,"outOfRange",this.getExtent()),a=Mk(this,"inRange",this.option.range.slice()),n=[];function o(h,v){n.push({value:h,color:t(h,v)})}for(var s=0,l=0,u=a.length,f=i.length;lt[1])break;n.push({color:this.getControllerVisual(l,"color",i),offset:s/a})}return n.push({color:this.getControllerVisual(t[1],"color",i),offset:1}),n},e.prototype._createBarPoints=function(t,i){var a=this.visualMapModel.itemSize;return[[a[0]-i[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-i[1],t[1]]]},e.prototype._createBarGroup=function(t){var i=this._orient,a=this.visualMapModel.get("inverse");return new j(i==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:i==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:i==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,i){if(this._useHandle){var a=this._shapes,n=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=n.itemSize,u=n.getExtent();Gq([0,1],function(f){var p=o[f];p.setStyle("fill",i.handlesColor[f]),p.y=t[f];var c=La(t[f],[0,l[1]],u,!0),h=this.getControllerVisual(c,"symbolSize");p.scaleX=p.scaleY=h/l[0],p.x=l[0]-h/2;var v=Je(a.handleLabelPoints[f],ti(p,this.group));s[f].setStyle({x:v[0],y:v[1],text:n.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,i,a,n){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,p=f.indicator;if(p){p.attr("invisible",!1);var c={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",c),v=this.getControllerVisual(t,"symbolSize"),d=La(t,s,u,!0),m=l[0]-v/2,g={x:p.x,y:p.y};p.y=d,p.x=m;var y=Je(f.indicatorLabelPoint,ti(p,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 T={x:m,y:d,style:{fill:h}},C={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};p.x=g.x,p.y=g.y,p.animateTo(T,A),x.animateTo(C,A)}else p.attr(T),x.attr(C);this._firstShowIndicator=!1;var D=this._shapes.handleLabels;if(D)for(var M=0;Mo[1]&&(p[1]=1/0),i&&(p[0]===-1/0?this._showIndicator(f,p[1],"< ",l):p[1]===1/0?this._showIndicator(f,p[0],"> ",l):this._showIndicator(f,f,"\u2248 ",l));var c=this._hoverLinkDataIndices,h=[];(i||Ok(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(p));var v=ST(c,h);this._dispatchHighDown("downplay",_u(v[0],a)),this._dispatchHighDown("highlight",_u(v[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var i;if(qi(t.target,function(l){var u=tt(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 t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var i=this._shapes.handleLabels;if(i)for(var a=0;a=0&&(n.dimension=o,i.push(n))}}),r.getData().setVisual("visualMeta",i)}}];function Xq(r,e,t,i){for(var a=e.targetVisuals[i],n=ve.prepareVisualTypes(a),o={color:ga(r.getData(),"color")},s=0,l=n.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(kk,Vk),w(Uk,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(Ub))}function Xp(r){r.registerComponentModel(Lk),r.registerComponentView(zk),Zp(r)}var qq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,i){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Kq[this._mode].call(this,this._pieceList),this._resetSelected(t,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=k(this._pieceList,function(l){return l=Q(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,i={},a=ve.listVisualTypes(),n=this.isCategory();w(t.pieces,function(s){w(a,function(l){s.hasOwnProperty(l)&&(i[l]=1)})}),w(i,function(s,l){var u=!1;w(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&w(this.stateList,function(f){(t[f]||(t[f]={}))[l]=xm.get(l,f==="inRange"?"active":"inactive",n)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,i){var a=this.option,n=this._pieceList,o=(i?a:t).selected||{};if(a.selected=o,w(n,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),a.selectedMode==="single"){var s=!1;w(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(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=Q(t)},e.prototype.getValueState=function(t){var i=ve.findPieceIndex(t,this._pieceList);return i!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[i])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){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=ve.findPieceIndex(l,a);f===t&&o.push(u)},this),i.push({seriesId:n.id,dataIndex:o})},this),i},e.prototype.getRepresentValue=function(t){var i;if(this.isCategory())i=t.value;else if(t.value!=null)i=t.value;else{var a=t.interval||[];i=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return i},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var i=[],a=["",""],n=this;function o(f,p){var c=n.getRepresentValue({interval:f});p||(p=n.getValueState(c));var h=t(c,p);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 w(s,function(f){var p=f.interval;p&&(p[0]>u&&o([u,p[0]],"outOfRange"),o(p.slice()),u=p[1])},this),{stops:i,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=or(xu.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}(xu),Kq={splitNumber:function(r){var e=this.option,t=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(t)!==n&&t<5;)t++;e.precision=t,n=+n.toFixed(t),e.minOpen&&r.push({interval:[-1/0,i[0]],close:[0,0]});for(var o=0,s=i[0];o","\u2265"][i[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function Gk(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var Hk=qq;var jq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var i=this.visualMapModel,a=i.get("textGap"),n=i.textStyleModel,o=n.getFont(),s=n.getTextColor(),l=this._getItemAlign(),u=i.itemSize,f=this._getViewData(),p=f.endsText,c=Jt(i.get("showLabel",!0),!p);p&&this._renderEndsText(t,p[0],u,c,l),w(f.viewPieceList,function(h){var v=h.piece,d=new j;d.onclick=H(this._onItemClick,this,v),this._enableHoverLink(d,h.indexInModelPieceList);var m=i.getRepresentValue(v);if(this._createItemSymbol(d,m,[0,0,u[0],u[1]]),c){var g=this.visualMapModel.getValueState(m);d.add(new dt({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:v.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:g==="outOfRange"?.5:1}}))}t.add(d)},this),p&&this._renderEndsText(t,p[1],u,c,l),Zi(i.get("orient"),t,i.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,i){var a=this;t.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:_u(s.findTargetDataIndices(i),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,i=t.option;if(i.orient==="vertical")return Sm(t,this.api,t.itemSize);var a=i.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,i,a,n,o){if(i){var s=new j,l=this.visualMapModel.textStyleModel;s.add(new dt({style:Vt(l,{x:n?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:n?o:"center",text:i})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,i=k(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=t.get("text"),n=t.get("orient"),o=t.get("inverse");return(n==="horizontal"?o:!o)?i.reverse():a&&(a=a.slice().reverse()),{viewPieceList:i,endsText:a}},e.prototype._createItemSymbol=function(t,i,a){t.add(Ht(this.getControllerVisual(i,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(i,"color")))},e.prototype._onItemClick=function(t){var i=this.visualMapModel,a=i.option,n=a.selectedMode;if(n){var o=Q(a.selected),s=i.getSelectedMapKey(t);n==="single"||n===!0?(o[s]=!0,w(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}(_m),Wk=jq;function qp(r){r.registerComponentModel(Hk),r.registerComponentView(Wk),Zp(r)}function Bb(r){_t(Xp),_t(qp)}var Jq={label:{enabled:!0},decal:{show:!1}},Yk=st(),Qq={};function Fb(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var i=Q(Jq);ot(i.label,r.getLocaleModel().get("aria"),!1),ot(t.option,i,!1),a(),n();function a(){var u=t.getModel("decal"),f=u.get("show");if(f){var p=Y();r.eachSeries(function(c){if(!c.isColorBySeries()){var h=p.get(c.type);h||(h={},p.set(c.type,h)),Yk(c).scope=h}}),r.eachRawSeries(function(c){if(r.isSeriesFiltered(c))return;if(X(c.enableAriaDecal)){c.enableAriaDecal();return}var h=c.getData();if(c.isColorBySeries()){var y=Df(c.ecModel,c.name,Qq,r.getSeriesCount()),x=h.getVisual("decal");h.setVisual("decal",_(x,y))}else{var v=c.getRawData(),d={},m=Yk(c).scope;h.each(function(b){var S=h.getRawIndex(b);d[S]=b});var g=v.count();v.each(function(b){var S=d[b],T=v.getName(b)||b+"",C=Df(c.ecModel,T,m,g),A=h.getItemVisual(S,"decal");h.setItemVisual(S,"decal",_(A,C))})}function _(b,S){var T=b?N(N({},S),b):S;return T.dirty=!0,T}})}}function n(){var u=r.getLocaleModel().get("aria"),f=t.getModel("label");if(f.option=q(f.option,u),!!f.get("enabled")){var p=e.getZr().dom;if(f.get("description")){p.setAttribute("aria-label",f.get("description"));return}var c=r.getSeriesCount(),h=f.get(["data","maxCount"])||10,v=f.get(["series","maxCount"])||10,d=Math.min(c,v),m;if(!(c<1)){var g=s();if(g){var y=f.get(["general","withTitle"]);m=o(y,{title:g})}else m=f.get(["general","withoutTitle"]);var x=[],_=c>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);m+=o(_,{seriesCount:c}),r.eachSeries(function(C,A){if(A1?f.get(["series","multiple",L]):f.get(["series","single",L]),D=o(D,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var I=C.getData();if(I.count()>h){var P=f.get(["data","partialData"]);D+=o(P,{displayCnt:h})}else D+=f.get(["data","allData"]);for(var R=f.get(["data","separator","middle"]),O=f.get(["data","separator","end"]),U=[],V=0;V":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},$q=function(){function r(e){var t=this._condVal=B(e)?new RegExp(e):km(e)?e:null;if(t==null){var i="";Bt(i)}}return r.prototype.evaluate=function(e){var t=typeof e;return B(t)?this._condVal.test(e):vt(t)?this._condVal.test(e+""):!1},r}(),tK=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),eK=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&i.push(a),a=[I,P]}function f(I,P,R,O){bu(I,R)&&bu(P,O)||a.push(I,P,R,O,R,O)}function p(I,P,R,O,U,V){var F=Math.abs(P-I),Z=Math.tan(F/4)*4/3,J=PC:M2&&i.push(a),i}function Xb(r,e,t,i,a,n,o,s,l,u){if(bu(r,t)&&bu(e,i)&&bu(a,o)&&bu(n,s)){l.push(o,s);return}var f=2/u,p=f*f,c=o-r,h=s-e,v=Math.sqrt(c*c+h*h);c/=v,h/=v;var d=t-r,m=i-e,g=a-o,y=n-s,x=d*d+m*m,_=g*g+y*y;if(x=0&&C=0){l.push(o,s);return}var A=[],D=[];ci(r,t,a,o,.5,A),ci(e,i,n,s,.5,D),Xb(A[0],D[0],A[1],D[1],A[2],D[2],A[3],D[3],l,u),Xb(A[4],D[4],A[5],D[5],A[6],D[6],A[7],D[7],l,u)}function Qk(r,e){var t=bm(r),i=[];e=e||1;for(var a=0;a0)for(var u=0;uMath.abs(u),p=rV([l,u],f?0:1,e),c=(f?s:u)/p.length,h=0;ha,o=rV([i,a],n?0:1,e),s=n?"width":"height",l=n?"height":"width",u=n?"x":"y",f=n?"y":"x",p=r[s]/o.length,c=0;c1?null:new St(d*l+r,d*u+e)}function cK(r,e,t){var i=new St;St.sub(i,t,e),i.normalize();var a=new St;St.sub(a,r,e);var n=a.dot(i);return n}function wu(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function hK(r,e,t){for(var i=r.length,a=[],n=0;no?(u.x=f.x=s+n/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+n),hK(e,u,f)}function wm(r,e,t,i){if(t===1)i.push(e);else{var a=Math.floor(t/2),n=r(e);wm(r,n[0],a,i),wm(r,n[1],t-a,i)}return i}function vK(r,e){for(var t=[],i=0;i0)for(var b=i/t,S=-i/2;S<=i/2;S+=b){for(var T=Math.sin(S),C=Math.cos(S),A=0,x=0;x0;u/=2){var f=0,p=0;(r&u)>0&&(f=1),(e&u)>0&&(p=1),s+=u*u*(3*f^p),p===0&&(f===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function Cm(r){var e=1/0,t=1/0,i=-1/0,a=-1/0,n=k(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),p=l.y+l.height/2+(u?u[5]:0);return e=Math.min(f,e),t=Math.min(p,t),i=Math.max(f,i),a=Math.max(p,a),[f,p]}),o=k(n,function(s,l){return{cp:s,z:bK(s[0],s[1],e,t,i,a),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function uV(r){return iV(r.path,r.count)}function qb(){return{fromIndividuals:[],toIndividuals:[],count:0}}function fV(r,e,t){var i=[];function a(b){for(var S=0;S=0;a--)if(!t[a].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var n=l.length,u=Math.ceil(n/2);t[a].many=l.slice(u,n),t[s].many=l.slice(0,u),s++}return t}var wK={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),i=0;i0))return;var s=i.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;cV(r)&&(u=r,f=e),cV(e)&&(u=e,f=r);function p(g,y,x,_,b){var S=g.many,T=g.one;if(S.length===1&&!b){var C=y?S[0]:T,A=y?T:S[0];if(jp(C))p({many:[C],one:A},!0,x,_,!0);else{var D=s?q({delay:s(x,_)},l):l;Am(C,A,D),n(C,A,C,A,D)}}else for(var M=q({dividePath:wK[t],individualDelay:s&&function(U,V,F,Z){return s(U+x,_)}},l),L=y?fV(S,T,M):pV(T,S,M),I=L.fromIndividuals,P=L.toIndividuals,R=I.length,O=0;Oe.length,h=u?hV(f,u):hV(c?e:r,[c?r:e]),v=0,d=0;dSV))for(var n=i.getIndices(),o=0;o0&&S.group.traverse(function(C){C instanceof at&&!C.animators.length&&C.animateFrom({style:{opacity:0}},T)})})}function yV(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function xV(r){return z(r)?r.sort().join(","):r}function co(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function IK(r,e){var t=Y(),i=Y(),a=Y();w(r.oldSeries,function(o,s){var l=r.oldDataGroupIds[s],u=r.oldData[s],f=yV(o),p=xV(f);i.set(p,{dataGroupId:l,data:u}),z(f)&&w(f,function(c){a.set(c,{key:p,dataGroupId:l,data:u})})});function n(o){t.get(o)&&hT("Duplicated seriesKey in universalTransition "+o)}return w(e.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),u=yV(o),f=xV(u),p=i.get(f);if(p)t.set(f,{oldSeries:[{dataGroupId:p.dataGroupId,divide:co(p.data),data:p.data}],newSeries:[{dataGroupId:s,divide:co(l),data:l}]});else if(z(u)){var c=[];w(u,function(d){var m=i.get(d);m.data&&c.push({dataGroupId:m.dataGroupId,divide:co(m.data),data:m.data})}),c.length&&t.set(f,{oldSeries:c,newSeries:[{dataGroupId:s,data:l,divide:co(l)}]})}else{var h=a.get(u);if(h){var v=t.get(h.key);v||(v={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:co(h.data)}],newSeries:[]},t.set(h.key,v)),v.newSeries.push({dataGroupId:s,data:l,divide:co(l)})}}}}),t}function _V(r,e){for(var t=0;t=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:co(e.oldData[s]),groupIdDim:o.dimension})}),w(Ot(r.to),function(o){var s=_V(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();n.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:co(l),groupIdDim:o.dimension})}}),a.length>0&&n.length>0&&bV(a,n,i)}function Jb(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,i){w(Ot(i.seriesTransition),function(a){w(Ot(a.to),function(n){for(var o=i.updatedSeries,s=0;s - - + + - + diff --git a/main-WAETTA7O.js b/main-PMYUNFRD.js similarity index 62% rename from main-WAETTA7O.js rename to main-PMYUNFRD.js index 76d2875..bef0280 100644 --- a/main-WAETTA7O.js +++ b/main-PMYUNFRD.js @@ -1 +1 @@ -import{I as i,W as p,da as n,ea as a,fa as m,ha as s,ia as c,ja as d,m as r}from"./chunk-N6S5G56Y.js";import"./chunk-JMZ7DUBM.js";var l=[{path:"",pathMatch:"full",loadChildren:()=>import("./chunk-H7PNCXRX.js")},{path:"projects",loadChildren:()=>import("./chunk-PJMPK5QW.js")},{path:"pid",loadChildren:()=>import("./chunk-663WIKLP.js")},{path:"**",redirectTo:""}];var f={providers:[s(l,d(),c())]};var u=(()=>{let o=class o{};o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=r({type:o,selectors:[["app-root"]],standalone:!0,features:[p],decls:1,vars:0,template:function(e,C){e&1&&i(0,"router-outlet")},dependencies:[n,m]});let t=o;return t})();a(u,f).catch(t=>console.error(t)); +import{I as i,W as p,da as n,ea as a,fa as m,ha as s,ia as c,ja as d,m as r}from"./chunk-HRLUZBMJ.js";import"./chunk-F6SUT7E5.js";var l=[{path:"",pathMatch:"full",loadChildren:()=>import("./chunk-N52VNUF3.js")},{path:"projects",loadChildren:()=>import("./chunk-B334KIAV.js")},{path:"pid",loadChildren:()=>import("./chunk-KZ7UGLZ5.js")},{path:"**",redirectTo:""}];var f={providers:[s(l,d(),c())]};var u=(()=>{let o=class o{};o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=r({type:o,selectors:[["app-root"]],standalone:!0,features:[p],decls:1,vars:0,template:function(e,C){e&1&&i(0,"router-outlet")},dependencies:[n,m]});let t=o;return t})();a(u,f).catch(t=>console.error(t)); diff --git a/polyfills-A7MJM4D4.js b/polyfills-A7MJM4D4.js new file mode 100644 index 0000000..cf92250 --- /dev/null +++ b/polyfills-A7MJM4D4.js @@ -0,0 +1,2 @@ +var ie=globalThis;function ee(e){return(ie.__Zone_symbol_prefix||"__zone_symbol__")+e}function ut(){let e=ie.performance;function n(j){e&&e.mark&&e.mark(j)}function a(j,r){e&&e.measure&&e.measure(j,r)}n("Zone");let Y=class Y{static assertZonePatched(){if(ie.Promise!==N.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let r=Y.current;for(;r.parent;)r=r.parent;return r}static get current(){return p.zone}static get currentTask(){return O}static __load_patch(r,i,s=!1){if(N.hasOwnProperty(r)){let v=ie[ee("forceDuplicateZoneCheck")]===!0;if(!s&&v)throw Error("Already loaded patch: "+r)}else if(!ie["__Zone_disable_"+r]){let v="Zone:"+r;n(v),N[r]=i(ie,Y,R),a(v,v)}}get parent(){return this._parent}get name(){return this._name}constructor(r,i){this._parent=r,this._name=i?i.name||"unnamed":"",this._properties=i&&i.properties||{},this._zoneDelegate=new u(this,this._parent&&this._parent._zoneDelegate,i)}get(r){let i=this.getZoneWith(r);if(i)return i._properties[r]}getZoneWith(r){let i=this;for(;i;){if(i._properties.hasOwnProperty(r))return i;i=i._parent}return null}fork(r){if(!r)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,r)}wrap(r,i){if(typeof r!="function")throw new Error("Expecting function got: "+r);let s=this._zoneDelegate.intercept(this,r,i),v=this;return function(){return v.runGuarded(s,this,arguments,i)}}run(r,i,s,v){p={parent:p,zone:this};try{return this._zoneDelegate.invoke(this,r,i,s,v)}finally{p=p.parent}}runGuarded(r,i=null,s,v){p={parent:p,zone:this};try{try{return this._zoneDelegate.invoke(this,r,i,s,v)}catch(x){if(this._zoneDelegate.handleError(this,x))throw x}}finally{p=p.parent}}runTask(r,i,s){if(r.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(r.zone||ne).name+"; Execution: "+this.name+")");if(r.state===z&&(r.type===F||r.type===g))return;let v=r.state!=G;v&&r._transitionTo(G,d),r.runCount++;let x=O;O=r,p={parent:p,zone:this};try{r.type==g&&r.data&&!r.data.isPeriodic&&(r.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,r,i,s)}catch(L){if(this._zoneDelegate.handleError(this,L))throw L}}finally{r.state!==z&&r.state!==X&&(r.type==F||r.data&&r.data.isPeriodic?v&&r._transitionTo(d,G):(r.runCount=0,this._updateTaskCount(r,-1),v&&r._transitionTo(z,G,z))),p=p.parent,O=x}}scheduleTask(r){if(r.zone&&r.zone!==this){let s=this;for(;s;){if(s===r.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${r.zone.name}`);s=s.parent}}r._transitionTo(k,z);let i=[];r._zoneDelegates=i,r._zone=this;try{r=this._zoneDelegate.scheduleTask(this,r)}catch(s){throw r._transitionTo(X,k,z),this._zoneDelegate.handleError(this,s),s}return r._zoneDelegates===i&&this._updateTaskCount(r,1),r.state==k&&r._transitionTo(d,k),r}scheduleMicroTask(r,i,s,v){return this.scheduleTask(new _(V,r,i,s,v,void 0))}scheduleMacroTask(r,i,s,v,x){return this.scheduleTask(new _(g,r,i,s,v,x))}scheduleEventTask(r,i,s,v,x){return this.scheduleTask(new _(F,r,i,s,v,x))}cancelTask(r){if(r.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(r.zone||ne).name+"; Execution: "+this.name+")");if(!(r.state!==d&&r.state!==G)){r._transitionTo(W,d,G);try{this._zoneDelegate.cancelTask(this,r)}catch(i){throw r._transitionTo(X,W),this._zoneDelegate.handleError(this,i),i}return this._updateTaskCount(r,-1),r._transitionTo(z,W),r.runCount=0,r}}_updateTaskCount(r,i){let s=r._zoneDelegates;i==-1&&(r._zoneDelegates=null);for(let v=0;vj.hasTask(i,s),onScheduleTask:(j,r,i,s)=>j.scheduleTask(i,s),onInvokeTask:(j,r,i,s,v,x)=>j.invokeTask(i,s,v,x),onCancelTask:(j,r,i,s)=>j.cancelTask(i,s)};class u{get zone(){return this._zone}constructor(r,i,s){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=r,this._parentDelegate=i,this._forkZS=s&&(s&&s.onFork?s:i._forkZS),this._forkDlgt=s&&(s.onFork?i:i._forkDlgt),this._forkCurrZone=s&&(s.onFork?this._zone:i._forkCurrZone),this._interceptZS=s&&(s.onIntercept?s:i._interceptZS),this._interceptDlgt=s&&(s.onIntercept?i:i._interceptDlgt),this._interceptCurrZone=s&&(s.onIntercept?this._zone:i._interceptCurrZone),this._invokeZS=s&&(s.onInvoke?s:i._invokeZS),this._invokeDlgt=s&&(s.onInvoke?i:i._invokeDlgt),this._invokeCurrZone=s&&(s.onInvoke?this._zone:i._invokeCurrZone),this._handleErrorZS=s&&(s.onHandleError?s:i._handleErrorZS),this._handleErrorDlgt=s&&(s.onHandleError?i:i._handleErrorDlgt),this._handleErrorCurrZone=s&&(s.onHandleError?this._zone:i._handleErrorCurrZone),this._scheduleTaskZS=s&&(s.onScheduleTask?s:i._scheduleTaskZS),this._scheduleTaskDlgt=s&&(s.onScheduleTask?i:i._scheduleTaskDlgt),this._scheduleTaskCurrZone=s&&(s.onScheduleTask?this._zone:i._scheduleTaskCurrZone),this._invokeTaskZS=s&&(s.onInvokeTask?s:i._invokeTaskZS),this._invokeTaskDlgt=s&&(s.onInvokeTask?i:i._invokeTaskDlgt),this._invokeTaskCurrZone=s&&(s.onInvokeTask?this._zone:i._invokeTaskCurrZone),this._cancelTaskZS=s&&(s.onCancelTask?s:i._cancelTaskZS),this._cancelTaskDlgt=s&&(s.onCancelTask?i:i._cancelTaskDlgt),this._cancelTaskCurrZone=s&&(s.onCancelTask?this._zone:i._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let v=s&&s.onHasTask,x=i&&i._hasTaskZS;(v||x)&&(this._hasTaskZS=v?s:c,this._hasTaskDlgt=i,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,s.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=i,this._scheduleTaskCurrZone=this._zone),s.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=i,this._invokeTaskCurrZone=this._zone),s.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=i,this._cancelTaskCurrZone=this._zone))}fork(r,i){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,r,i):new t(r,i)}intercept(r,i,s){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,r,i,s):i}invoke(r,i,s,v,x){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,r,i,s,v,x):i.apply(s,v)}handleError(r,i){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,r,i):!0}scheduleTask(r,i){let s=i;if(this._scheduleTaskZS)this._hasTaskZS&&s._zoneDelegates.push(this._hasTaskDlgtOwner),s=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,r,i),s||(s=i);else if(i.scheduleFn)i.scheduleFn(i);else if(i.type==V)U(i);else throw new Error("Task is missing scheduleFn.");return s}invokeTask(r,i,s,v){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,r,i,s,v):i.callback.apply(s,v)}cancelTask(r,i){let s;if(this._cancelTaskZS)s=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,r,i);else{if(!i.cancelFn)throw Error("Task is not cancelable");s=i.cancelFn(i)}return s}hasTask(r,i){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,r,i)}catch(s){this.handleError(r,s)}}_updateTaskCount(r,i){let s=this._taskCounts,v=s[r],x=s[r]=v+i;if(x<0)throw new Error("More tasks executed then were scheduled.");if(v==0||x==0){let L={microTask:s.microTask>0,macroTask:s.macroTask>0,eventTask:s.eventTask>0,change:r};this.hasTask(this._zone,L)}}}class _{constructor(r,i,s,v,x,L){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=r,this.source=i,this.data=v,this.scheduleFn=x,this.cancelFn=L,!s)throw new Error("callback is not defined");this.callback=s;let de=this;r===F&&v&&v.useG?this.invoke=_.invokeTask:this.invoke=function(){return _.invokeTask.call(ie,de,this,arguments)}}static invokeTask(r,i,s){r||(r=this),K++;try{return r.runCount++,r.zone.runTask(r,i,s)}finally{K==1&&A(),K--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(z,k)}_transitionTo(r,i,s){if(this._state===i||this._state===s)this._state=r,r==z&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${r}', expecting state '${i}'${s?" or '"+s+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let E=ee("setTimeout"),y=ee("Promise"),C=ee("then"),T=[],I=!1,w;function Z(j){if(w||ie[y]&&(w=ie[y].resolve(0)),w){let r=w[C];r||(r=w.then),r.call(w,j)}else ie[E](j,0)}function U(j){K===0&&T.length===0&&Z(A),j&&T.push(j)}function A(){if(!I){for(I=!0;T.length;){let j=T;T=[];for(let r=0;rp,onUnhandledError:q,microtaskDrainDone:q,scheduleMicroTask:U,showUncaughtError:()=>!t[ee("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:q,patchMethod:()=>q,bindArguments:()=>[],patchThen:()=>q,patchMacroTask:()=>q,patchEventPrototype:()=>q,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>q,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>q,wrapWithCurrentZone:()=>q,filterProperties:()=>[],attachOriginToPatched:()=>q,_redefineProperty:()=>q,patchCallbacks:()=>q,nativeScheduleMicroTask:Z},p={parent:null,zone:new t(null,null)},O=null,K=0;function q(){}return a("Zone","Zone"),t}function ft(){let e=globalThis,n=e[ee("forceDuplicateZoneCheck")]===!0;if(e.Zone&&(n||typeof e.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return e.Zone??=ut(),e.Zone}var ke=Object.getOwnPropertyDescriptor,Ze=Object.defineProperty,Ae=Object.getPrototypeOf,ht=Object.create,dt=Array.prototype.slice,je="addEventListener",He="removeEventListener",Ne=ee(je),Ie=ee(He),ce="true",ae="false",ve=ee("");function xe(e,n){return Zone.current.wrap(e,n)}function Ge(e,n,a,t,c){return Zone.current.scheduleMacroTask(e,n,a,t,c)}var H=ee,Ce=typeof window<"u",ye=Ce?window:void 0,J=Ce&&ye||globalThis,_t="removeAttribute";function Ve(e,n){for(let a=e.length-1;a>=0;a--)typeof e[a]=="function"&&(e[a]=xe(e[a],n+"_"+a));return e}function Et(e,n){let a=e.constructor.name;for(let t=0;t{let y=function(){return E.apply(this,Ve(arguments,a+"."+c))};return ue(y,E),y})(u)}}}function Ke(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var Qe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Se=!("nw"in J)&&typeof J.process<"u"&&J.process.toString()==="[object process]",Fe=!Se&&!Qe&&!!(Ce&&ye.HTMLElement),et=typeof J.process<"u"&&J.process.toString()==="[object process]"&&!Qe&&!!(Ce&&ye.HTMLElement),Re={},Xe=function(e){if(e=e||J.event,!e)return;let n=Re[e.type];n||(n=Re[e.type]=H("ON_PROPERTY"+e.type));let a=this||e.target||J,t=a[n],c;if(Fe&&a===ye&&e.type==="error"){let u=e;c=t&&t.call(this,u.message,u.filename,u.lineno,u.colno,u.error),c===!0&&e.preventDefault()}else c=t&&t.apply(this,arguments),c!=null&&!c&&e.preventDefault();return c};function Ye(e,n,a){let t=ke(e,n);if(!t&&a&&ke(a,n)&&(t={enumerable:!0,configurable:!0}),!t||!t.configurable)return;let c=H("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete t.writable,delete t.value;let u=t.get,_=t.set,E=n.slice(2),y=Re[E];y||(y=Re[E]=H("ON_PROPERTY"+E)),t.set=function(C){let T=this;if(!T&&e===J&&(T=J),!T)return;typeof T[y]=="function"&&T.removeEventListener(E,Xe),_&&_.call(T,null),T[y]=C,typeof C=="function"&&T.addEventListener(E,Xe,!1)},t.get=function(){let C=this;if(!C&&e===J&&(C=J),!C)return null;let T=C[y];if(T)return T;if(u){let I=u.call(this);if(I)return t.set.call(this,I),typeof C[_t]=="function"&&C.removeAttribute(n),I}return null},Ze(e,n,t),e[c]=!0}function tt(e,n,a){if(n)for(let t=0;tfunction(_,E){let y=a(_,E);return y.cbIdx>=0&&typeof E[y.cbIdx]=="function"?Ge(y.name,E[y.cbIdx],y,c):u.apply(_,E)})}function ue(e,n){e[H("OriginalDelegate")]=n}var $e=!1,Le=!1;function gt(){try{let e=ye.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function yt(){if($e)return Le;$e=!0;try{let e=ye.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Le=!0)}catch{}return Le}var ge=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){ge=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{ge=!1}var mt={useG:!0},te={},nt={},rt=new RegExp("^"+ve+"(\\w+)(true|false)$"),ot=H("propagationStopped");function st(e,n){let a=(n?n(e):e)+ae,t=(n?n(e):e)+ce,c=ve+a,u=ve+t;te[e]={},te[e][ae]=c,te[e][ce]=u}function pt(e,n,a,t){let c=t&&t.add||je,u=t&&t.rm||He,_=t&&t.listeners||"eventListeners",E=t&&t.rmAll||"removeAllListeners",y=H(c),C="."+c+":",T="prependListener",I="."+T+":",w=function(k,d,G){if(k.isRemoved)return;let W=k.callback;typeof W=="object"&&W.handleEvent&&(k.callback=g=>W.handleEvent(g),k.originalDelegate=W);let X;try{k.invoke(k,d,[G])}catch(g){X=g}let V=k.options;if(V&&typeof V=="object"&&V.once){let g=k.originalDelegate?k.originalDelegate:k.callback;d[u].call(d,G.type,g,V)}return X};function Z(k,d,G){if(d=d||e.event,!d)return;let W=k||d.target||e,X=W[te[d.type][G?ce:ae]];if(X){let V=[];if(X.length===1){let g=w(X[0],W,d);g&&V.push(g)}else{let g=X.slice();for(let F=0;F{throw F})}}}let U=function(k){return Z(this,k,!1)},A=function(k){return Z(this,k,!0)};function ne(k,d){if(!k)return!1;let G=!0;d&&d.useG!==void 0&&(G=d.useG);let W=d&&d.vh,X=!0;d&&d.chkDup!==void 0&&(X=d.chkDup);let V=!1;d&&d.rt!==void 0&&(V=d.rt);let g=k;for(;g&&!g.hasOwnProperty(c);)g=Ae(g);if(!g&&k[c]&&(g=k),!g||g[y])return!1;let F=d&&d.eventNameToString,N={},R=g[y]=g[c],p=g[H(u)]=g[u],O=g[H(_)]=g[_],K=g[H(E)]=g[E],q;d&&d.prepend&&(q=g[H(d.prepend)]=g[d.prepend]);function Y(o,l){return!ge&&typeof o=="object"&&o?!!o.capture:!ge||!l?o:typeof o=="boolean"?{capture:o,passive:!0}:o?typeof o=="object"&&o.passive!==!1?{...o,passive:!0}:o:{passive:!0}}let j=function(o){if(!N.isExisting)return R.call(N.target,N.eventName,N.capture?A:U,N.options)},r=function(o){if(!o.isRemoved){let l=te[o.eventName],h;l&&(h=l[o.capture?ce:ae]);let b=h&&o.target[h];if(b){for(let S=0;Soe.zone.cancelTask(oe);o.call(_e,"abort",se,{once:!0}),he&&(he.removeAbortListener=()=>_e.removeEventListener("abort",se))}if(N.target=null,he&&(he.taskData=null),Be&&(Q.once=!0),!ge&&typeof oe.options=="boolean"||(oe.options=Q),oe.target=P,oe.capture=De,oe.eventName=D,B&&(oe.originalDelegate=M),m?Ee.unshift(oe):Ee.push(oe),S)return P}};return g[c]=f(R,C,x,L,V),q&&(g[T]=f(q,I,s,L,V,!0)),g[u]=function(){let o=this||e,l=arguments[0];d&&d.transferEventName&&(l=d.transferEventName(l));let h=arguments[2],b=h?typeof h=="boolean"?!0:h.capture:!1,S=arguments[1];if(!S)return p.apply(this,arguments);if(W&&!W(p,S,o,arguments))return;let m=te[l],P;m&&(P=m[b?ce:ae]);let D=P&&o[P];if(D)for(let M=0;Mfunction(c,u){c[ot]=!0,t&&t.apply(c,u)})}function vt(e,n){n.patchMethod(e,"queueMicrotask",a=>function(t,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}var we=H("zoneTask");function Te(e,n,a,t){let c=null,u=null;n+=t,a+=t;let _={};function E(C){let T=C.data;return T.args[0]=function(){return C.invoke.apply(this,arguments)},T.handleId=c.apply(e,T.args),C}function y(C){return u.call(e,C.data.handleId)}c=le(e,n,C=>function(T,I){if(typeof I[0]=="function"){let w={isPeriodic:t==="Interval",delay:t==="Timeout"||t==="Interval"?I[1]||0:void 0,args:I},Z=I[0];I[0]=function(){try{return Z.apply(this,arguments)}finally{w.isPeriodic||(typeof w.handleId=="number"?delete _[w.handleId]:w.handleId&&(w.handleId[we]=null))}};let U=Ge(n,I[0],w,E,y);if(!U)return U;let A=U.data.handleId;return typeof A=="number"?_[A]=U:A&&(A[we]=U),A&&A.ref&&A.unref&&typeof A.ref=="function"&&typeof A.unref=="function"&&(U.ref=A.ref.bind(A),U.unref=A.unref.bind(A)),typeof A=="number"||A?A:U}else return C.apply(e,I)}),u=le(e,a,C=>function(T,I){let w=I[0],Z;typeof w=="number"?Z=_[w]:(Z=w&&w[we],Z||(Z=w)),Z&&typeof Z.type=="string"?Z.state!=="notScheduled"&&(Z.cancelFn&&Z.data.isPeriodic||Z.runCount===0)&&(typeof w=="number"?delete _[w]:w&&(w[we]=null),Z.zone.cancelTask(Z)):C.apply(e,I)})}function bt(e,n){let{isBrowser:a,isMix:t}=n.getGlobalObjects();if(!a&&!t||!e.customElements||!("customElements"in e))return;let c=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];n.patchCallbacks(n,e.customElements,"customElements","define",c)}function Pt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:a,zoneSymbolEventNames:t,TRUE_STR:c,FALSE_STR:u,ZONE_SYMBOL_PREFIX:_}=n.getGlobalObjects();for(let y=0;yu.target===e);if(!t||t.length===0)return n;let c=t[0].ignoreProperties;return n.filter(u=>c.indexOf(u)===-1)}function Je(e,n,a,t){if(!e)return;let c=ct(e,n,a);tt(e,c,t)}function Me(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function Rt(e,n){if(Se&&!et||Zone[e.symbol("patchEvents")])return;let a=n.__Zone_ignore_on_properties,t=[];if(Fe){let c=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let u=gt()?[{target:c,ignoreProperties:["error"]}]:[];Je(c,Me(c),a&&a.concat(u),Ae(c))}t=t.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{let a=n[e.__symbol__("legacyPatch")];a&&a()}),e.__load_patch("timers",n=>{let a="set",t="clear";Te(n,a,t,"Timeout"),Te(n,a,t,"Interval"),Te(n,a,t,"Immediate")}),e.__load_patch("requestAnimationFrame",n=>{Te(n,"request","cancel","AnimationFrame"),Te(n,"mozRequest","mozCancel","AnimationFrame"),Te(n,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(n,a)=>{let t=["alert","prompt","confirm"];for(let c=0;cfunction(C,T){return a.current.run(_,n,T,y)})}}),e.__load_patch("EventTarget",(n,a,t)=>{wt(n,t),Pt(n,t);let c=n.XMLHttpRequestEventTarget;c&&c.prototype&&t.patchEventTarget(n,t,[c.prototype])}),e.__load_patch("MutationObserver",(n,a,t)=>{pe("MutationObserver"),pe("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(n,a,t)=>{pe("IntersectionObserver")}),e.__load_patch("FileReader",(n,a,t)=>{pe("FileReader")}),e.__load_patch("on_property",(n,a,t)=>{Rt(t,n)}),e.__load_patch("customElements",(n,a,t)=>{bt(n,t)}),e.__load_patch("XHR",(n,a)=>{C(n);let t=H("xhrTask"),c=H("xhrSync"),u=H("xhrListener"),_=H("xhrScheduled"),E=H("xhrURL"),y=H("xhrErrorBeforeScheduled");function C(T){let I=T.XMLHttpRequest;if(!I)return;let w=I.prototype;function Z(R){return R[t]}let U=w[Ne],A=w[Ie];if(!U){let R=T.XMLHttpRequestEventTarget;if(R){let p=R.prototype;U=p[Ne],A=p[Ie]}}let ne="readystatechange",z="scheduled";function k(R){let p=R.data,O=p.target;O[_]=!1,O[y]=!1;let K=O[u];U||(U=O[Ne],A=O[Ie]),K&&A.call(O,ne,K);let q=O[u]=()=>{if(O.readyState===O.DONE)if(!p.aborted&&O[_]&&R.state===z){let j=O[a.__symbol__("loadfalse")];if(O.status!==0&&j&&j.length>0){let r=R.invoke;R.invoke=function(){let i=O[a.__symbol__("loadfalse")];for(let s=0;sfunction(R,p){return R[c]=p[2]==!1,R[E]=p[1],W.apply(R,p)}),X="XMLHttpRequest.send",V=H("fetchTaskAborting"),g=H("fetchTaskScheduling"),F=le(w,"send",()=>function(R,p){if(a.current[g]===!0||R[c])return F.apply(R,p);{let O={target:R,url:R[E],isPeriodic:!1,args:p,aborted:!1},K=Ge(X,d,O,k,G);R&&R[y]===!0&&!O.aborted&&K.state===z&&K.invoke()}}),N=le(w,"abort",()=>function(R,p){let O=Z(R);if(O&&typeof O.type=="string"){if(O.cancelFn==null||O.data&&O.data.aborted)return;O.zone.cancelTask(O)}else if(a.current[V]===!0)return N.apply(R,p)})}}),e.__load_patch("geolocation",n=>{n.navigator&&n.navigator.geolocation&&Et(n.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(n,a)=>{function t(c){return function(u){it(n,c).forEach(E=>{let y=n.PromiseRejectionEvent;if(y){let C=new y(c,{promise:u.promise,reason:u.rejection});E.invoke(C)}})}}n.PromiseRejectionEvent&&(a[H("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),a[H("rejectionHandledHandler")]=t("rejectionhandled"))}),e.__load_patch("queueMicrotask",(n,a,t)=>{vt(n,t)})}function St(e){e.__load_patch("ZoneAwarePromise",(n,a,t)=>{let c=Object.getOwnPropertyDescriptor,u=Object.defineProperty;function _(f){if(f&&f.toString===Object.prototype.toString){let o=f.constructor&&f.constructor.name;return(o||"")+": "+JSON.stringify(f)}return f?f.toString():Object.prototype.toString.call(f)}let E=t.symbol,y=[],C=n[E("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,T=E("Promise"),I=E("then"),w="__creationTrace__";t.onUnhandledError=f=>{if(t.showUncaughtError()){let o=f&&f.rejection;o?console.error("Unhandled Promise rejection:",o instanceof Error?o.message:o,"; Zone:",f.zone.name,"; Task:",f.task&&f.task.source,"; Value:",o,o instanceof Error?o.stack:void 0):console.error(f)}},t.microtaskDrainDone=()=>{for(;y.length;){let f=y.shift();try{f.zone.runGuarded(()=>{throw f.throwOriginal?f.rejection:f})}catch(o){U(o)}}};let Z=E("unhandledPromiseRejectionHandler");function U(f){t.onUnhandledError(f);try{let o=a[Z];typeof o=="function"&&o.call(this,f)}catch{}}function A(f){return f&&f.then}function ne(f){return f}function z(f){return L.reject(f)}let k=E("state"),d=E("value"),G=E("finally"),W=E("parentPromiseValue"),X=E("parentPromiseState"),V="Promise.then",g=null,F=!0,N=!1,R=0;function p(f,o){return l=>{try{Y(f,o,l)}catch(h){Y(f,!1,h)}}}let O=function(){let f=!1;return function(l){return function(){f||(f=!0,l.apply(null,arguments))}}},K="Promise resolved with itself",q=E("currentTaskTrace");function Y(f,o,l){let h=O();if(f===l)throw new TypeError(K);if(f[k]===g){let b=null;try{(typeof l=="object"||typeof l=="function")&&(b=l&&l.then)}catch(S){return h(()=>{Y(f,!1,S)})(),f}if(o!==N&&l instanceof L&&l.hasOwnProperty(k)&&l.hasOwnProperty(d)&&l[k]!==g)r(l),Y(f,l[k],l[d]);else if(o!==N&&typeof b=="function")try{b.call(l,h(p(f,o)),h(p(f,!1)))}catch(S){h(()=>{Y(f,!1,S)})()}else{f[k]=o;let S=f[d];if(f[d]=l,f[G]===G&&o===F&&(f[k]=f[X],f[d]=f[W]),o===N&&l instanceof Error){let m=a.currentTask&&a.currentTask.data&&a.currentTask.data[w];m&&u(l,q,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m{try{let P=f[d],D=!!l&&G===l[G];D&&(l[W]=P,l[X]=S);let M=o.run(m,void 0,D&&m!==z&&m!==ne?[]:[P]);Y(l,!0,M)}catch(P){Y(l,!1,P)}},l)}let s="function ZoneAwarePromise() { [native code] }",v=function(){},x=n.AggregateError;class L{static toString(){return s}static resolve(o){return o instanceof L?o:Y(new this(null),F,o)}static reject(o){return Y(new this(null),N,o)}static withResolvers(){let o={};return o.promise=new L((l,h)=>{o.resolve=l,o.reject=h}),o}static any(o){if(!o||typeof o[Symbol.iterator]!="function")return Promise.reject(new x([],"All promises were rejected"));let l=[],h=0;try{for(let m of o)h++,l.push(L.resolve(m))}catch{return Promise.reject(new x([],"All promises were rejected"))}if(h===0)return Promise.reject(new x([],"All promises were rejected"));let b=!1,S=[];return new L((m,P)=>{for(let D=0;D{b||(b=!0,m(M))},M=>{S.push(M),h--,h===0&&(b=!0,P(new x(S,"All promises were rejected")))})})}static race(o){let l,h,b=new this((P,D)=>{l=P,h=D});function S(P){l(P)}function m(P){h(P)}for(let P of o)A(P)||(P=this.resolve(P)),P.then(S,m);return b}static all(o){return L.allWithCallback(o)}static allSettled(o){return(this&&this.prototype instanceof L?this:L).allWithCallback(o,{thenCallback:h=>({status:"fulfilled",value:h}),errorCallback:h=>({status:"rejected",reason:h})})}static allWithCallback(o,l){let h,b,S=new this((M,B)=>{h=M,b=B}),m=2,P=0,D=[];for(let M of o){A(M)||(M=this.resolve(M));let B=P;try{M.then($=>{D[B]=l?l.thenCallback($):$,m--,m===0&&h(D)},$=>{l?(D[B]=l.errorCallback($),m--,m===0&&h(D)):b($)})}catch($){b($)}m++,P++}return m-=2,m===0&&h(D),S}constructor(o){let l=this;if(!(l instanceof L))throw new Error("Must be an instanceof Promise.");l[k]=g,l[d]=[];try{let h=O();o&&o(h(p(l,F)),h(p(l,N)))}catch(h){Y(l,!1,h)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return L}then(o,l){let h=this.constructor?.[Symbol.species];(!h||typeof h!="function")&&(h=this.constructor||L);let b=new h(v),S=a.current;return this[k]==g?this[d].push(S,b,o,l):i(this,S,b,o,l),b}catch(o){return this.then(null,o)}finally(o){let l=this.constructor?.[Symbol.species];(!l||typeof l!="function")&&(l=L);let h=new l(v);h[G]=G;let b=a.current;return this[k]==g?this[d].push(b,h,o,o):i(this,b,h,o,o),h}}L.resolve=L.resolve,L.reject=L.reject,L.race=L.race,L.all=L.all;let de=n[T]=n.Promise;n.Promise=L;let me=E("thenPatched");function fe(f){let o=f.prototype,l=c(o,"then");if(l&&(l.writable===!1||!l.configurable))return;let h=o.then;o[I]=h,f.prototype.then=function(b,S){return new L((P,D)=>{h.call(this,P,D)}).then(b,S)},f[me]=!0}t.patchThen=fe;function be(f){return function(o,l){let h=f.apply(o,l);if(h instanceof L)return h;let b=h.constructor;return b[me]||fe(b),h}}return de&&(fe(de),le(n,"fetch",f=>be(f))),Promise[a.__symbol__("uncaughtPromiseErrors")]=y,L})}function Dt(e){e.__load_patch("toString",n=>{let a=Function.prototype.toString,t=H("OriginalDelegate"),c=H("Promise"),u=H("Error"),_=function(){if(typeof this=="function"){let T=this[t];if(T)return typeof T=="function"?a.call(T):Object.prototype.toString.call(T);if(this===Promise){let I=n[c];if(I)return a.call(I)}if(this===Error){let I=n[u];if(I)return a.call(I)}}return a.call(this)};_[t]=a,Function.prototype.toString=_;let E=Object.prototype.toString,y="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?y:E.call(this)}})}function Ot(e,n,a,t,c){let u=Zone.__symbol__(t);if(n[u])return;let _=n[u]=n[t];n[t]=function(E,y,C){return y&&y.prototype&&c.forEach(function(T){let I=`${a}.${t}::`+T,w=y.prototype;try{if(w.hasOwnProperty(T)){let Z=e.ObjectGetOwnPropertyDescriptor(w,T);Z&&Z.value?(Z.value=e.wrapWithCurrentZone(Z.value,I),e._redefineProperty(y.prototype,T,Z)):w[T]&&(w[T]=e.wrapWithCurrentZone(w[T],I))}else w[T]&&(w[T]=e.wrapWithCurrentZone(w[T],I))}catch{}}),_.call(n,E,y,C)},e.attachOriginToPatched(n[t],_)}function Nt(e){e.__load_patch("util",(n,a,t)=>{let c=Me(n);t.patchOnProperties=tt,t.patchMethod=le,t.bindArguments=Ve,t.patchMacroTask=Tt;let u=a.__symbol__("BLACK_LISTED_EVENTS"),_=a.__symbol__("UNPATCHED_EVENTS");n[_]&&(n[u]=n[_]),n[u]&&(a[u]=a[_]=n[u]),t.patchEventPrototype=kt,t.patchEventTarget=pt,t.isIEOrEdge=yt,t.ObjectDefineProperty=Ze,t.ObjectGetOwnPropertyDescriptor=ke,t.ObjectCreate=ht,t.ArraySlice=dt,t.patchClass=pe,t.wrapWithCurrentZone=xe,t.filterProperties=ct,t.attachOriginToPatched=ue,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Ot,t.getGlobalObjects=()=>({globalSources:nt,zoneSymbolEventNames:te,eventNames:c,isBrowser:Fe,isMix:et,isNode:Se,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:ve,ADD_EVENT_LISTENER_STR:je,REMOVE_EVENT_LISTENER_STR:He})})}function It(e){St(e),Dt(e),Nt(e)}var at=ft();It(at);Ct(at); diff --git a/polyfills-LZBJRJJE.js b/polyfills-LZBJRJJE.js deleted file mode 100644 index 57d4c33..0000000 --- a/polyfills-LZBJRJJE.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(e){let n=e.performance;function c(L){n&&n.mark&&n.mark(L)}function r(L,t){n&&n.measure&&n.measure(L,t)}c("Zone");let a=e.__Zone_symbol_prefix||"__zone_symbol__";function l(L){return a+L}let y=e[l("forceDuplicateZoneCheck")]===!0;if(e.Zone){if(y||typeof e.Zone.__symbol__!="function")throw new Error("Zone already loaded.");return e.Zone}let oe=class oe{static assertZonePatched(){if(e.Promise!==re.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=oe.current;for(;t.parent;)t=t.parent;return t}static get current(){return U.zone}static get currentTask(){return te}static __load_patch(t,s,o=!1){if(re.hasOwnProperty(t)){if(!o&&y)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){let v="Zone:"+t;c(v),re[t]=s(e,oe,z),r(v,v)}}get parent(){return this._parent}get name(){return this._name}constructor(t,s){this._parent=t,this._name=s?s.name||"unnamed":"",this._properties=s&&s.properties||{},this._zoneDelegate=new k(this,this._parent&&this._parent._zoneDelegate,s)}get(t){let s=this.getZoneWith(t);if(s)return s._properties[t]}getZoneWith(t){let s=this;for(;s;){if(s._properties.hasOwnProperty(t))return s;s=s._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,s){if(typeof t!="function")throw new Error("Expecting function got: "+t);let o=this._zoneDelegate.intercept(this,t,s),v=this;return function(){return v.runGuarded(o,this,arguments,s)}}run(t,s,o,v){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,t,s,o,v)}finally{U=U.parent}}runGuarded(t,s=null,o,v){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,t,s,o,v)}catch(F){if(this._zoneDelegate.handleError(this,F))throw F}}finally{U=U.parent}}runTask(t,s,o){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||$).name+"; Execution: "+this.name+")");if(t.state===H&&(t.type===K||t.type===P))return;let v=t.state!=T;v&&t._transitionTo(T,M),t.runCount++;let F=te;te=t,U={parent:U,zone:this};try{t.type==P&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,s,o)}catch(u){if(this._zoneDelegate.handleError(this,u))throw u}}finally{t.state!==H&&t.state!==d&&(t.type==K||t.data&&t.data.isPeriodic?v&&t._transitionTo(M,T):(t.runCount=0,this._updateTaskCount(t,-1),v&&t._transitionTo(H,T,H))),U=U.parent,te=F}}scheduleTask(t){if(t.zone&&t.zone!==this){let o=this;for(;o;){if(o===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);o=o.parent}}t._transitionTo(X,H);let s=[];t._zoneDelegates=s,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(o){throw t._transitionTo(d,X,H),this._zoneDelegate.handleError(this,o),o}return t._zoneDelegates===s&&this._updateTaskCount(t,1),t.state==X&&t._transitionTo(M,X),t}scheduleMicroTask(t,s,o,v){return this.scheduleTask(new m(N,t,s,o,v,void 0))}scheduleMacroTask(t,s,o,v,F){return this.scheduleTask(new m(P,t,s,o,v,F))}scheduleEventTask(t,s,o,v,F){return this.scheduleTask(new m(K,t,s,o,v,F))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||$).name+"; Execution: "+this.name+")");if(!(t.state!==M&&t.state!==T)){t._transitionTo(x,M,T);try{this._zoneDelegate.cancelTask(this,t)}catch(s){throw t._transitionTo(d,x),this._zoneDelegate.handleError(this,s),s}return this._updateTaskCount(t,-1),t._transitionTo(H,x),t.runCount=0,t}}_updateTaskCount(t,s){let o=t._zoneDelegates;s==-1&&(t._zoneDelegates=null);for(let v=0;vL.hasTask(s,o),onScheduleTask:(L,t,s,o)=>L.scheduleTask(s,o),onInvokeTask:(L,t,s,o,v,F)=>L.invokeTask(s,o,v,F),onCancelTask:(L,t,s,o)=>L.cancelTask(s,o)};class k{constructor(t,s,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=t,this._parentDelegate=s,this._forkZS=o&&(o&&o.onFork?o:s._forkZS),this._forkDlgt=o&&(o.onFork?s:s._forkDlgt),this._forkCurrZone=o&&(o.onFork?this.zone:s._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:s._interceptZS),this._interceptDlgt=o&&(o.onIntercept?s:s._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this.zone:s._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:s._invokeZS),this._invokeDlgt=o&&(o.onInvoke?s:s._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this.zone:s._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:s._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?s:s._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this.zone:s._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:s._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?s:s._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this.zone:s._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:s._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?s:s._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this.zone:s._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:s._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?s:s._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this.zone:s._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let v=o&&o.onHasTask,F=s&&s._hasTaskZS;(v||F)&&(this._hasTaskZS=v?o:b,this._hasTaskDlgt=s,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=t,o.onScheduleTask||(this._scheduleTaskZS=b,this._scheduleTaskDlgt=s,this._scheduleTaskCurrZone=this.zone),o.onInvokeTask||(this._invokeTaskZS=b,this._invokeTaskDlgt=s,this._invokeTaskCurrZone=this.zone),o.onCancelTask||(this._cancelTaskZS=b,this._cancelTaskDlgt=s,this._cancelTaskCurrZone=this.zone))}fork(t,s){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,t,s):new _(t,s)}intercept(t,s,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,t,s,o):s}invoke(t,s,o,v,F){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,t,s,o,v,F):s.apply(o,v)}handleError(t,s){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,t,s):!0}scheduleTask(t,s){let o=s;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,t,s),o||(o=s);else if(s.scheduleFn)s.scheduleFn(s);else if(s.type==N)R(s);else throw new Error("Task is missing scheduleFn.");return o}invokeTask(t,s,o,v){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,t,s,o,v):s.callback.apply(o,v)}cancelTask(t,s){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,t,s);else{if(!s.cancelFn)throw Error("Task is not cancelable");o=s.cancelFn(s)}return o}hasTask(t,s){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,t,s)}catch(o){this.handleError(t,o)}}_updateTaskCount(t,s){let o=this._taskCounts,v=o[t],F=o[t]=v+s;if(F<0)throw new Error("More tasks executed then were scheduled.");if(v==0||F==0){let u={microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:t};this.hasTask(this.zone,u)}}}class m{constructor(t,s,o,v,F,u){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=t,this.source=s,this.data=v,this.scheduleFn=F,this.cancelFn=u,!o)throw new Error("callback is not defined");this.callback=o;let f=this;t===K&&v&&v.useG?this.invoke=m.invokeTask:this.invoke=function(){return m.invokeTask.call(e,f,this,arguments)}}static invokeTask(t,s,o){t||(t=this),Q++;try{return t.runCount++,t.zone.runTask(t,s,o)}finally{Q==1&&E(),Q--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(H,X)}_transitionTo(t,s,o){if(this._state===s||this._state===o)this._state=t,t==H&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${t}', expecting state '${s}'${o?" or '"+o+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let I=l("setTimeout"),Z=l("Promise"),O=l("then"),B=[],A=!1,J;function q(L){if(J||e[Z]&&(J=e[Z].resolve(0)),J){let t=J[O];t||(t=J.then),t.call(J,L)}else e[I](L,0)}function R(L){Q===0&&B.length===0&&q(E),L&&B.push(L)}function E(){if(!A){for(A=!0;B.length;){let L=B;B=[];for(let t=0;tU,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!_[l("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:q},U={parent:null,zone:new _(null,null)},te=null,Q=0;function W(){}return r("Zone","Zone"),e.Zone=_})(globalThis);var me=Object.getOwnPropertyDescriptor,Ne=Object.defineProperty,Ie=Object.getPrototypeOf,it=Object.create,ct=Array.prototype.slice,Me="addEventListener",Le="removeEventListener",Se=Zone.__symbol__(Me),De=Zone.__symbol__(Le),ie="true",ce="false",pe=Zone.__symbol__("");function Ae(e,n){return Zone.current.wrap(e,n)}function je(e,n,c,r,a){return Zone.current.scheduleMacroTask(e,n,c,r,a)}var j=Zone.__symbol__,Pe=typeof window<"u",Te=Pe?window:void 0,Y=Pe&&Te||globalThis,at="removeAttribute";function He(e,n){for(let c=e.length-1;c>=0;c--)typeof e[c]=="function"&&(e[c]=Ae(e[c],n+"_"+c));return e}function lt(e,n){let c=e.constructor.name;for(let r=0;r{let b=function(){return _.apply(this,He(arguments,c+"."+a))};return ae(b,_),b})(l)}}}function Ye(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var $e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,we=!("nw"in Y)&&typeof Y.process<"u"&&{}.toString.call(Y.process)==="[object process]",xe=!we&&!$e&&!!(Pe&&Te.HTMLElement),Je=typeof Y.process<"u"&&{}.toString.call(Y.process)==="[object process]"&&!$e&&!!(Pe&&Te.HTMLElement),be={},We=function(e){if(e=e||Y.event,!e)return;let n=be[e.type];n||(n=be[e.type]=j("ON_PROPERTY"+e.type));let c=this||e.target||Y,r=c[n],a;if(xe&&c===Te&&e.type==="error"){let l=e;a=r&&r.call(this,l.message,l.filename,l.lineno,l.colno,l.error),a===!0&&e.preventDefault()}else a=r&&r.apply(this,arguments),a!=null&&!a&&e.preventDefault();return a};function qe(e,n,c){let r=me(e,n);if(!r&&c&&me(c,n)&&(r={enumerable:!0,configurable:!0}),!r||!r.configurable)return;let a=j("on"+n+"patched");if(e.hasOwnProperty(a)&&e[a])return;delete r.writable,delete r.value;let l=r.get,y=r.set,_=n.slice(2),b=be[_];b||(b=be[_]=j("ON_PROPERTY"+_)),r.set=function(k){let m=this;if(!m&&e===Y&&(m=Y),!m)return;typeof m[b]=="function"&&m.removeEventListener(_,We),y&&y.call(m,null),m[b]=k,typeof k=="function"&&m.addEventListener(_,We,!1)},r.get=function(){let k=this;if(!k&&e===Y&&(k=Y),!k)return null;let m=k[b];if(m)return m;if(l){let I=l.call(this);if(I)return r.set.call(this,I),typeof k[at]=="function"&&k.removeAttribute(n),I}return null},Ne(e,n,r),e[a]=!0}function Ke(e,n,c){if(n)for(let r=0;rfunction(y,_){let b=c(y,_);return b.cbIdx>=0&&typeof _[b.cbIdx]=="function"?je(b.name,_[b.cbIdx],b,a):l.apply(y,_)})}function ae(e,n){e[j("OriginalDelegate")]=n}var Xe=!1,Ze=!1;function ft(){try{let e=Te.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function ht(){if(Xe)return Ze;Xe=!0;try{let e=Te.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Ze=!0)}catch{}return Ze}Zone.__load_patch("ZoneAwarePromise",(e,n,c)=>{let r=Object.getOwnPropertyDescriptor,a=Object.defineProperty;function l(u){if(u&&u.toString===Object.prototype.toString){let f=u.constructor&&u.constructor.name;return(f||"")+": "+JSON.stringify(u)}return u?u.toString():Object.prototype.toString.call(u)}let y=c.symbol,_=[],b=e[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,k=y("Promise"),m=y("then"),I="__creationTrace__";c.onUnhandledError=u=>{if(c.showUncaughtError()){let f=u&&u.rejection;f?console.error("Unhandled Promise rejection:",f instanceof Error?f.message:f,"; Zone:",u.zone.name,"; Task:",u.task&&u.task.source,"; Value:",f,f instanceof Error?f.stack:void 0):console.error(u)}},c.microtaskDrainDone=()=>{for(;_.length;){let u=_.shift();try{u.zone.runGuarded(()=>{throw u.throwOriginal?u.rejection:u})}catch(f){O(f)}}};let Z=y("unhandledPromiseRejectionHandler");function O(u){c.onUnhandledError(u);try{let f=n[Z];typeof f=="function"&&f.call(this,u)}catch{}}function B(u){return u&&u.then}function A(u){return u}function J(u){return t.reject(u)}let q=y("state"),R=y("value"),E=y("finally"),$=y("parentPromiseValue"),H=y("parentPromiseState"),X="Promise.then",M=null,T=!0,x=!1,d=0;function N(u,f){return i=>{try{z(u,f,i)}catch(h){z(u,!1,h)}}}let P=function(){let u=!1;return function(i){return function(){u||(u=!0,i.apply(null,arguments))}}},K="Promise resolved with itself",re=y("currentTaskTrace");function z(u,f,i){let h=P();if(u===i)throw new TypeError(K);if(u[q]===M){let g=null;try{(typeof i=="object"||typeof i=="function")&&(g=i&&i.then)}catch(w){return h(()=>{z(u,!1,w)})(),u}if(f!==x&&i instanceof t&&i.hasOwnProperty(q)&&i.hasOwnProperty(R)&&i[q]!==M)te(i),z(u,i[q],i[R]);else if(f!==x&&typeof g=="function")try{g.call(i,h(N(u,f)),h(N(u,!1)))}catch(w){h(()=>{z(u,!1,w)})()}else{u[q]=f;let w=u[R];if(u[R]=i,u[E]===E&&f===T&&(u[q]=u[H],u[R]=u[$]),f===x&&i instanceof Error){let p=n.currentTask&&n.currentTask.data&&n.currentTask.data[I];p&&a(i,re,{configurable:!0,enumerable:!1,writable:!0,value:p})}for(let p=0;p{try{let C=u[R],S=!!i&&E===i[E];S&&(i[$]=C,i[H]=w);let D=f.run(p,void 0,S&&p!==J&&p!==A?[]:[C]);z(i,!0,D)}catch(C){z(i,!1,C)}},i)}let W="function ZoneAwarePromise() { [native code] }",oe=function(){},L=e.AggregateError;class t{static toString(){return W}static resolve(f){return z(new this(null),T,f)}static reject(f){return z(new this(null),x,f)}static any(f){if(!f||typeof f[Symbol.iterator]!="function")return Promise.reject(new L([],"All promises were rejected"));let i=[],h=0;try{for(let p of f)h++,i.push(t.resolve(p))}catch{return Promise.reject(new L([],"All promises were rejected"))}if(h===0)return Promise.reject(new L([],"All promises were rejected"));let g=!1,w=[];return new t((p,C)=>{for(let S=0;S{g||(g=!0,p(D))},D=>{w.push(D),h--,h===0&&(g=!0,C(new L(w,"All promises were rejected")))})})}static race(f){let i,h,g=new this((C,S)=>{i=C,h=S});function w(C){i(C)}function p(C){h(C)}for(let C of f)B(C)||(C=this.resolve(C)),C.then(w,p);return g}static all(f){return t.allWithCallback(f)}static allSettled(f){return(this&&this.prototype instanceof t?this:t).allWithCallback(f,{thenCallback:h=>({status:"fulfilled",value:h}),errorCallback:h=>({status:"rejected",reason:h})})}static allWithCallback(f,i){let h,g,w=new this((D,G)=>{h=D,g=G}),p=2,C=0,S=[];for(let D of f){B(D)||(D=this.resolve(D));let G=C;try{D.then(V=>{S[G]=i?i.thenCallback(V):V,p--,p===0&&h(S)},V=>{i?(S[G]=i.errorCallback(V),p--,p===0&&h(S)):g(V)})}catch(V){g(V)}p++,C++}return p-=2,p===0&&h(S),w}constructor(f){let i=this;if(!(i instanceof t))throw new Error("Must be an instanceof Promise.");i[q]=M,i[R]=[];try{let h=P();f&&f(h(N(i,T)),h(N(i,x)))}catch(h){z(i,!1,h)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(f,i){let h=this.constructor?.[Symbol.species];(!h||typeof h!="function")&&(h=this.constructor||t);let g=new h(oe),w=n.current;return this[q]==M?this[R].push(w,g,f,i):Q(this,w,g,f,i),g}catch(f){return this.then(null,f)}finally(f){let i=this.constructor?.[Symbol.species];(!i||typeof i!="function")&&(i=t);let h=new i(oe);h[E]=E;let g=n.current;return this[q]==M?this[R].push(g,h,f,f):Q(this,g,h,f,f),h}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;let s=e[k]=e.Promise;e.Promise=t;let o=y("thenPatched");function v(u){let f=u.prototype,i=r(f,"then");if(i&&(i.writable===!1||!i.configurable))return;let h=f.then;f[m]=h,u.prototype.then=function(g,w){return new t((C,S)=>{h.call(this,C,S)}).then(g,w)},u[o]=!0}c.patchThen=v;function F(u){return function(f,i){let h=u.apply(f,i);if(h instanceof t)return h;let g=h.constructor;return g[o]||v(g),h}}return s&&(v(s),le(e,"fetch",u=>F(u))),Promise[n.__symbol__("uncaughtPromiseErrors")]=_,t});Zone.__load_patch("toString",e=>{let n=Function.prototype.toString,c=j("OriginalDelegate"),r=j("Promise"),a=j("Error"),l=function(){if(typeof this=="function"){let k=this[c];if(k)return typeof k=="function"?n.call(k):Object.prototype.toString.call(k);if(this===Promise){let m=e[r];if(m)return n.call(m)}if(this===Error){let m=e[a];if(m)return n.call(m)}}return n.call(this)};l[c]=n,Function.prototype.toString=l;let y=Object.prototype.toString,_="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?_:y.call(this)}});var _e=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){_e=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{_e=!1}var dt={useG:!0},ee={},Qe={},et=new RegExp("^"+pe+"(\\w+)(true|false)$"),tt=j("propagationStopped");function nt(e,n){let c=(n?n(e):e)+ce,r=(n?n(e):e)+ie,a=pe+c,l=pe+r;ee[e]={},ee[e][ce]=a,ee[e][ie]=l}function _t(e,n,c,r){let a=r&&r.add||Me,l=r&&r.rm||Le,y=r&&r.listeners||"eventListeners",_=r&&r.rmAll||"removeAllListeners",b=j(a),k="."+a+":",m="prependListener",I="."+m+":",Z=function(R,E,$){if(R.isRemoved)return;let H=R.callback;typeof H=="object"&&H.handleEvent&&(R.callback=T=>H.handleEvent(T),R.originalDelegate=H);let X;try{R.invoke(R,E,[$])}catch(T){X=T}let M=R.options;if(M&&typeof M=="object"&&M.once){let T=R.originalDelegate?R.originalDelegate:R.callback;E[l].call(E,$.type,T,M)}return X};function O(R,E,$){if(E=E||e.event,!E)return;let H=R||E.target||e,X=H[ee[E.type][$?ie:ce]];if(X){let M=[];if(X.length===1){let T=Z(X[0],H,E);T&&M.push(T)}else{let T=X.slice();for(let x=0;x{throw x})}}}let B=function(R){return O(this,R,!1)},A=function(R){return O(this,R,!0)};function J(R,E){if(!R)return!1;let $=!0;E&&E.useG!==void 0&&($=E.useG);let H=E&&E.vh,X=!0;E&&E.chkDup!==void 0&&(X=E.chkDup);let M=!1;E&&E.rt!==void 0&&(M=E.rt);let T=R;for(;T&&!T.hasOwnProperty(a);)T=Ie(T);if(!T&&R[a]&&(T=R),!T||T[b])return!1;let x=E&&E.eventNameToString,d={},N=T[b]=T[a],P=T[j(l)]=T[l],K=T[j(y)]=T[y],re=T[j(_)]=T[_],z;E&&E.prepend&&(z=T[j(E.prepend)]=T[E.prepend]);function U(i,h){return!_e&&typeof i=="object"&&i?!!i.capture:!_e||!h?i:typeof i=="boolean"?{capture:i,passive:!0}:i?typeof i=="object"&&i.passive!==!1?{...i,passive:!0}:i:{passive:!0}}let te=function(i){if(!d.isExisting)return N.call(d.target,d.eventName,d.capture?A:B,d.options)},Q=function(i){if(!i.isRemoved){let h=ee[i.eventName],g;h&&(g=h[i.capture?ie:ce]);let w=g&&i.target[g];if(w){for(let p=0;pfunction(a,l){a[tt]=!0,r&&r.apply(a,l)})}function Tt(e,n,c,r,a){let l=Zone.__symbol__(r);if(n[l])return;let y=n[l]=n[r];n[r]=function(_,b,k){return b&&b.prototype&&a.forEach(function(m){let I=`${c}.${r}::`+m,Z=b.prototype;try{if(Z.hasOwnProperty(m)){let O=e.ObjectGetOwnPropertyDescriptor(Z,m);O&&O.value?(O.value=e.wrapWithCurrentZone(O.value,I),e._redefineProperty(b.prototype,m,O)):Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],I))}else Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],I))}catch{}}),y.call(n,_,b,k)},e.attachOriginToPatched(n[r],y)}function ot(e,n,c){if(!c||c.length===0)return n;let r=c.filter(l=>l.target===e);if(!r||r.length===0)return n;let a=r[0].ignoreProperties;return n.filter(l=>a.indexOf(l)===-1)}function ze(e,n,c,r){if(!e)return;let a=ot(e,n,c);Ke(e,a,r)}function Oe(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function yt(e,n){if(we&&!Je||Zone[e.symbol("patchEvents")])return;let c=n.__Zone_ignore_on_properties,r=[];if(xe){let a=window;r=r.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let l=ft()?[{target:a,ignoreProperties:["error"]}]:[];ze(a,Oe(a),c&&c.concat(l),Ie(a))}r=r.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let a=0;a{let r=Oe(e);c.patchOnProperties=Ke,c.patchMethod=le,c.bindArguments=He,c.patchMacroTask=ut;let a=n.__symbol__("BLACK_LISTED_EVENTS"),l=n.__symbol__("UNPATCHED_EVENTS");e[l]&&(e[a]=e[l]),e[a]&&(n[a]=n[l]=e[a]),c.patchEventPrototype=Et,c.patchEventTarget=_t,c.isIEOrEdge=ht,c.ObjectDefineProperty=Ne,c.ObjectGetOwnPropertyDescriptor=me,c.ObjectCreate=it,c.ArraySlice=ct,c.patchClass=ge,c.wrapWithCurrentZone=Ae,c.filterProperties=ot,c.attachOriginToPatched=ae,c._redefineProperty=Object.defineProperty,c.patchCallbacks=Tt,c.getGlobalObjects=()=>({globalSources:Qe,zoneSymbolEventNames:ee,eventNames:r,isBrowser:xe,isMix:Je,isNode:we,TRUE_STR:ie,FALSE_STR:ce,ZONE_SYMBOL_PREFIX:pe,ADD_EVENT_LISTENER_STR:Me,REMOVE_EVENT_LISTENER_STR:Le})});function mt(e,n){n.patchMethod(e,"queueMicrotask",c=>function(r,a){Zone.current.scheduleMicroTask("queueMicrotask",a[0])})}var ve=j("zoneTask");function Ee(e,n,c,r){let a=null,l=null;n+=r,c+=r;let y={};function _(k){let m=k.data;return m.args[0]=function(){return k.invoke.apply(this,arguments)},m.handleId=a.apply(e,m.args),k}function b(k){return l.call(e,k.data.handleId)}a=le(e,n,k=>function(m,I){if(typeof I[0]=="function"){let Z={isPeriodic:r==="Interval",delay:r==="Timeout"||r==="Interval"?I[1]||0:void 0,args:I},O=I[0];I[0]=function(){try{return O.apply(this,arguments)}finally{Z.isPeriodic||(typeof Z.handleId=="number"?delete y[Z.handleId]:Z.handleId&&(Z.handleId[ve]=null))}};let B=je(n,I[0],Z,_,b);if(!B)return B;let A=B.data.handleId;return typeof A=="number"?y[A]=B:A&&(A[ve]=B),A&&A.ref&&A.unref&&typeof A.ref=="function"&&typeof A.unref=="function"&&(B.ref=A.ref.bind(A),B.unref=A.unref.bind(A)),typeof A=="number"||A?A:B}else return k.apply(e,I)}),l=le(e,c,k=>function(m,I){let Z=I[0],O;typeof Z=="number"?O=y[Z]:(O=Z&&Z[ve],O||(O=Z)),O&&typeof O.type=="string"?O.state!=="notScheduled"&&(O.cancelFn&&O.data.isPeriodic||O.runCount===0)&&(typeof Z=="number"?delete y[Z]:Z&&(Z[ve]=null),O.zone.cancelTask(O)):k.apply(e,I)})}function pt(e,n){let{isBrowser:c,isMix:r}=n.getGlobalObjects();if(!c&&!r||!e.customElements||!("customElements"in e))return;let a=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"];n.patchCallbacks(n,e.customElements,"customElements","define",a)}function gt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:c,zoneSymbolEventNames:r,TRUE_STR:a,FALSE_STR:l,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let b=0;b{let n=e[Zone.__symbol__("legacyPatch")];n&&n()});Zone.__load_patch("timers",e=>{let n="set",c="clear";Ee(e,n,c,"Timeout"),Ee(e,n,c,"Interval"),Ee(e,n,c,"Immediate")});Zone.__load_patch("requestAnimationFrame",e=>{Ee(e,"request","cancel","AnimationFrame"),Ee(e,"mozRequest","mozCancel","AnimationFrame"),Ee(e,"webkitRequest","webkitCancel","AnimationFrame")});Zone.__load_patch("blocking",(e,n)=>{let c=["alert","prompt","confirm"];for(let r=0;rfunction(b,k){return n.current.run(l,e,k,_)})}});Zone.__load_patch("EventTarget",(e,n,c)=>{kt(e,c),gt(e,c);let r=e.XMLHttpRequestEventTarget;r&&r.prototype&&c.patchEventTarget(e,c,[r.prototype])});Zone.__load_patch("MutationObserver",(e,n,c)=>{ge("MutationObserver"),ge("WebKitMutationObserver")});Zone.__load_patch("IntersectionObserver",(e,n,c)=>{ge("IntersectionObserver")});Zone.__load_patch("FileReader",(e,n,c)=>{ge("FileReader")});Zone.__load_patch("on_property",(e,n,c)=>{yt(c,e)});Zone.__load_patch("customElements",(e,n,c)=>{pt(e,c)});Zone.__load_patch("XHR",(e,n)=>{b(e);let c=j("xhrTask"),r=j("xhrSync"),a=j("xhrListener"),l=j("xhrScheduled"),y=j("xhrURL"),_=j("xhrErrorBeforeScheduled");function b(k){let m=k.XMLHttpRequest;if(!m)return;let I=m.prototype;function Z(d){return d[c]}let O=I[Se],B=I[De];if(!O){let d=k.XMLHttpRequestEventTarget;if(d){let N=d.prototype;O=N[Se],B=N[De]}}let A="readystatechange",J="scheduled";function q(d){let N=d.data,P=N.target;P[l]=!1,P[_]=!1;let K=P[a];O||(O=P[Se],B=P[De]),K&&B.call(P,A,K);let re=P[a]=()=>{if(P.readyState===P.DONE)if(!N.aborted&&P[l]&&d.state===J){let U=P[n.__symbol__("loadfalse")];if(P.status!==0&&U&&U.length>0){let te=d.invoke;d.invoke=function(){let Q=P[n.__symbol__("loadfalse")];for(let W=0;Wfunction(d,N){return d[r]=N[2]==!1,d[y]=N[1],$.apply(d,N)}),H="XMLHttpRequest.send",X=j("fetchTaskAborting"),M=j("fetchTaskScheduling"),T=le(I,"send",()=>function(d,N){if(n.current[M]===!0||d[r])return T.apply(d,N);{let P={target:d,url:d[y],isPeriodic:!1,args:N,aborted:!1},K=je(H,R,P,q,E);d&&d[_]===!0&&!P.aborted&&K.state===J&&K.invoke()}}),x=le(I,"abort",()=>function(d,N){let P=Z(d);if(P&&typeof P.type=="string"){if(P.cancelFn==null||P.data&&P.data.aborted)return;P.zone.cancelTask(P)}else if(n.current[X]===!0)return x.apply(d,N)})}});Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&<(e.navigator.geolocation,["getCurrentPosition","watchPosition"])});Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function c(r){return function(a){rt(e,r).forEach(y=>{let _=e.PromiseRejectionEvent;if(_){let b=new _(r,{promise:a.promise,reason:a.rejection});y.invoke(b)}})}}e.PromiseRejectionEvent&&(n[j("unhandledPromiseRejectionHandler")]=c("unhandledrejection"),n[j("rejectionHandledHandler")]=c("rejectionhandled"))});Zone.__load_patch("queueMicrotask",(e,n,c)=>{mt(e,c)}); diff --git a/styles-CSV2LVKF.css b/styles-CSV2LVKF.css new file mode 100644 index 0000000..9c71709 --- /dev/null +++ b/styles-CSV2LVKF.css @@ -0,0 +1 @@ +@charset "UTF-8";*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.bottom-0\.5{bottom:.125rem}.left-0{left:0}.right-0{right:0}.top-0{top:0}.float-right{float:right}.m-1{margin:.25rem}.m-2{margin:.5rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-auto{margin-left:auto;margin-right:auto}.my-auto{margin-top:auto;margin-bottom:auto}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.ml-3{margin-left:.75rem}.mr-0{margin-right:0}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mt-3{margin-top:.75rem}.mt-6{margin-top:1.5rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.hidden{display:none}.h-full{height:100%}.h-screen{height:100vh}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-full{width:100%}.w-screen{width:100vw}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.list-inside{list-style-position:inside}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.self-end{align-self:flex-end}.overflow-y-hidden{overflow-y:hidden}.p-2{padding:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.pb-1{padding-bottom:.25rem}.pl-0{padding-left:0}.pr-0{padding-right:0}.text-center{text-align:center}.text-end{text-align:end}.font-semibold{font-weight:600}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}:root{color-scheme:dark;overflow-x:hidden}html{color:#1d222a;font:1.15rem Urbanist,arial,sans-serif;min-height:100vh;width:100vw}img,.skeleton{border-radius:.2rem}@keyframes enter{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes exit{0%{transform:translateY(0)}to{transform:translateY(-100vh)}}::view-transition-old(root){animation:exit .1s ease 0s 1 normal forwards}::view-transition-new(root){animation:enter .1s ease 0s 1 normal forwards}h1{font-size:2rem;font-weight:600}h2{font-size:1.5rem;font-weight:600}h3{font-size:1rem;font-weight:600}a[routerLink]{cursor:pointer}@media screen and (prefers-reduced-motion: reduce){*{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}@supports (background-clip: text){.clip-text{-moz-background-clip:text;-webkit-background-clip:text;background-clip:text!important;color:transparent}}.color-feature{color:#f7941e}.color-dark{color:#1d222a}.color-medium{color:#d4c5b7}.color-light{color:#f8f8f8}.bg-color-feature{background-color:#f7941e}.bg-color-dark{background-color:#1d222a}.bg-color-medium{background-color:#d4c5b7}.bg-color-light{background-color:#f8f8f8}.bg-gradient-feature{background:#f7941e;background:linear-gradient(45deg,#f7941e,#ee2824)}.bg-gradient-feature-short{background:#f7941e;background:linear-gradient(45deg,#f7941e,#f25621)}.bg-gradient-dark{background:#1d222a;background:linear-gradient(45deg,#1d222a,#0f263f)}.bg-gradient-medium{background:#d4c5b7;background:linear-gradient(45deg,#d4c5b7,#efe5d7)}.bg-gradient-light{background:#f8f8f8;background:linear-gradient(45deg,#f8f8f8 0% 100%)}.maskable{height:100%;width:100%;-webkit-mask-size:100%;mask-size:100%}.github-mask{-webkit-mask-image:url("./media/github-56TBZHIW.png");mask-image:url("./media/github-56TBZHIW.png")}.github-filled-mask{-webkit-mask-image:url("./media/github-filled-KIYCZYFH.png");mask-image:url("./media/github-filled-KIYCZYFH.png")}.flask-mask{-webkit-mask-image:url("./media/flask-36HTQUV4.png");mask-image:url("./media/flask-36HTQUV4.png")}.flask-filled-mask{-webkit-mask-image:url("./media/flask-filled-LOGG3XBW.png");mask-image:url("./media/flask-filled-LOGG3XBW.png")}.printer-mask{-webkit-mask-image:url("./media/3d-printer-LHKGDNHF.png");mask-image:url("./media/3d-printer-LHKGDNHF.png")}.printer-filled-mask{-webkit-mask-image:url("./media/3d-printer-filled-CGQWJJ5J.png");mask-image:url("./media/3d-printer-filled-CGQWJJ5J.png")}.horizontal-rule{width:100%;height:.1rem;border-radius:.05rem}ul{list-style:none}ul li:before{content:"\25cf";color:#f7941e;font-size:.7rem;display:inline-block;width:.75rem;vertical-align:top;margin-top:.25em}.nav-container{position:relative;height:1.5rem;width:1.5rem}.nav-container .nav-item{transition:opacity .1s ease-in-out}.nav-container .nav-item:not(.hoverable){opacity:1}.nav-container .nav-item:not(.hoverable):hover,.nav-container .nav-item:not(.hoverable).active{opacity:0}.nav-container .nav-item.hoverable{position:absolute;top:0;opacity:0}.nav-container .nav-item.hoverable:hover,.nav-container .nav-item.hoverable.active{opacity:1}.skeleton{background:repeating-linear-gradient(-45deg,#d4c5b726,#d4c5b726 2.5%,#d4c5b780 22.5% 27.5%,#d4c5b726 47.5% 50%);background-size:200% 200%;-webkit-animation:skeleton 5s ease-in-out infinite;-moz-animation:skeleton 5s ease-in-out infinite;animation:skeleton 5s ease-in-out infinite;box-shadow:0 0 0 .1rem #d4c5b726 inset;border-radius:.4rem}@-webkit-keyframes skeleton{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@-moz-keyframes skeleton{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes skeleton{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@media (pointer: fine){.underline-feature-gradient{position:relative}.underline-feature-gradient:after{content:"";position:absolute;bottom:3px;left:0;width:100%;border-image-source:linear-gradient(90deg,rgb(247,148,30),rgb(242,86,33));border-left:0;border-right:0;border-top:0;border-width:1px;border-image-slice:1;opacity:0;transition:opacity .1s ease-in-out}.underline-feature-gradient:hover:after{opacity:1}}@media (min-width: 768px){.md\:mx-3{margin-left:.75rem;margin-right:.75rem}.md\:mx-4{margin-left:1rem;margin-right:1rem}.md\:pl-3{padding-left:.75rem}.md\:pr-3{padding-right:.75rem}}@media (min-width: 1024px){.lg\:mt-6{margin-top:1.5rem}.lg\:block{display:block}.lg\:hidden{display:none}}@media (min-width: 1280px){.xl\:block{display:block}.xl\:hidden{display:none}} diff --git a/styles-ZWHZHSU6.css b/styles-ZWHZHSU6.css deleted file mode 100644 index c4f4f8b..0000000 --- a/styles-ZWHZHSU6.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.bottom-0\.5{bottom:.125rem}.left-0{left:0}.right-0{right:0}.top-0{top:0}.float-right{float:right}.m-1{margin:.25rem}.m-2{margin:.5rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-auto{margin-left:auto;margin-right:auto}.my-auto{margin-top:auto;margin-bottom:auto}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.ml-3{margin-left:.75rem}.mr-0{margin-right:0}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mt-3{margin-top:.75rem}.mt-6{margin-top:1.5rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.hidden{display:none}.h-full{height:100%}.h-screen{height:100vh}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-full{width:100%}.w-screen{width:100vw}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.list-inside{list-style-position:inside}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.self-end{align-self:flex-end}.overflow-y-hidden{overflow-y:hidden}.p-2{padding:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.pb-1{padding-bottom:.25rem}.pl-0{padding-left:0}.pr-0{padding-right:0}.text-center{text-align:center}.text-end{text-align:end}.font-semibold{font-weight:600}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}:root{color-scheme:dark;overflow-x:hidden}html{color:#1d222a;font:1.15rem Urbanist,arial,sans-serif;min-height:100vh;width:100vw}img,.skeleton{border-radius:.2rem}@keyframes enter{0%{transform:translateY(100vh)}to{transform:translateY(0)}}@keyframes exit{0%{transform:translateY(0)}to{transform:translateY(-100vh)}}::view-transition-old(root){animation:exit .1s ease 0s 1 normal forwards}::view-transition-new(root){animation:enter .1s ease 0s 1 normal forwards}h1{font-size:2rem;font-weight:600}h2{font-size:1.5rem;font-weight:600}h3{font-size:1rem;font-weight:600}a[routerLink]{cursor:pointer}@media screen and (prefers-reduced-motion: reduce){*{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}@supports (background-clip: text){.clip-text{-moz-background-clip:text;-webkit-background-clip:text;background-clip:text!important;color:transparent}}.color-feature{color:#f7941e}.color-dark{color:#1d222a}.color-medium{color:#d4c5b7}.color-light{color:#f8f8f8}.bg-color-feature{background-color:#f7941e}.bg-color-dark{background-color:#1d222a}.bg-color-medium{background-color:#d4c5b7}.bg-color-light{background-color:#f8f8f8}.bg-gradient-feature{background:#f7941e;background:linear-gradient(45deg,#f7941e,#ee2824)}.bg-gradient-feature-short{background:#f7941e;background:linear-gradient(45deg,#f7941e,#f25621)}.bg-gradient-dark{background:#1d222a;background:linear-gradient(45deg,#1d222a,#0f263f)}.bg-gradient-medium{background:#d4c5b7;background:linear-gradient(45deg,#d4c5b7,#efe5d7)}.bg-gradient-light{background:#f8f8f8;background:linear-gradient(45deg,#f8f8f8 0% 100%)}.maskable{height:100%;width:100%;-webkit-mask-size:100%;mask-size:100%}.github-mask{-webkit-mask-image:url("./media/github-56TBZHIW.png");mask-image:url("./media/github-56TBZHIW.png")}.github-filled-mask{-webkit-mask-image:url("./media/github-filled-KIYCZYFH.png");mask-image:url("./media/github-filled-KIYCZYFH.png")}.flask-mask{-webkit-mask-image:url("./media/flask-36HTQUV4.png");mask-image:url("./media/flask-36HTQUV4.png")}.flask-filled-mask{-webkit-mask-image:url("./media/flask-filled-LOGG3XBW.png");mask-image:url("./media/flask-filled-LOGG3XBW.png")}.printer-mask{-webkit-mask-image:url("./media/3d-printer-LHKGDNHF.png");mask-image:url("./media/3d-printer-LHKGDNHF.png")}.printer-filled-mask{-webkit-mask-image:url("./media/3d-printer-filled-CGQWJJ5J.png");mask-image:url("./media/3d-printer-filled-CGQWJJ5J.png")}.horizontal-rule{width:100%;height:.1rem;border-radius:.05rem}ul{list-style:none}ul li:before{content:"\25cf";color:#f7941e;font-size:.7rem;display:inline-block;width:.75rem;vertical-align:top;margin-top:.25em}.nav-container{position:relative;height:1.5rem;width:1.5rem}.nav-container .nav-item{transition:opacity .1s ease-in-out}.nav-container .nav-item:not(.hoverable){opacity:1}.nav-container .nav-item:not(.hoverable):hover,.nav-container .nav-item:not(.hoverable).active{opacity:0}.nav-container .nav-item.hoverable{position:absolute;top:0;opacity:0}.nav-container .nav-item.hoverable:hover,.nav-container .nav-item.hoverable.active{opacity:1}.skeleton{background:repeating-linear-gradient(-45deg,#d4c5b726,#d4c5b726 2.5%,#d4c5b780 22.5% 27.5%,#d4c5b726 47.5% 50%);background-size:200% 200%;-webkit-animation:skeleton 5s ease-in-out infinite;-moz-animation:skeleton 5s ease-in-out infinite;animation:skeleton 5s ease-in-out infinite;box-shadow:0 0 0 .1rem #d4c5b726 inset;border-radius:.4rem}@-webkit-keyframes skeleton{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@-moz-keyframes skeleton{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes skeleton{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@media (pointer: fine){.underline-feature-gradient{position:relative}.underline-feature-gradient:after{content:"";position:absolute;bottom:3px;left:0;width:100%;border-image-source:linear-gradient(90deg,rgb(247,148,30),rgb(242,86,33));border-left:0;border-right:0;border-top:0;border-width:1px;border-image-slice:1;opacity:0;transition:opacity .1s ease-in-out}.underline-feature-gradient:hover:after{opacity:1}}@media (min-width: 768px){.md\:mx-3{margin-left:.75rem;margin-right:.75rem}.md\:mx-4{margin-left:1rem;margin-right:1rem}.md\:pl-3{padding-left:.75rem}.md\:pr-3{padding-right:.75rem}}@media (min-width: 1024px){.lg\:mt-6{margin-top:1.5rem}.lg\:block{display:block}.lg\:hidden{display:none}}@media (min-width: 1280px){.xl\:block{display:block}.xl\:hidden{display:none}}